@univerjs-pro/sheets-shape-ui 1.0.0-alpha.5 → 1.0.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -1
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +1 -1
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +1 -1
  50. package/lib/locale/it-IT.js +1 -1
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +1 -1
  54. package/lib/locale/pt-BR.js +1 -1
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +1 -1
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/types/controllers/sheet-shape-render.controller.d.ts +7 -1
  62. package/lib/types/view-model/drawing-shape.d.ts +7 -0
  63. package/lib/umd/index.js +1 -1
  64. package/lib/umd/locale/ar-SA.js +1 -1
  65. package/lib/umd/locale/ca-ES.js +1 -1
  66. package/lib/umd/locale/de-DE.js +1 -1
  67. package/lib/umd/locale/en-US.js +1 -1
  68. package/lib/umd/locale/es-ES.js +1 -1
  69. package/lib/umd/locale/fa-IR.js +1 -1
  70. package/lib/umd/locale/fr-FR.js +1 -1
  71. package/lib/umd/locale/id-ID.js +1 -1
  72. package/lib/umd/locale/it-IT.js +1 -1
  73. package/lib/umd/locale/ja-JP.js +1 -1
  74. package/lib/umd/locale/ko-KR.js +1 -1
  75. package/lib/umd/locale/pl-PL.js +1 -1
  76. package/lib/umd/locale/pt-BR.js +1 -1
  77. package/lib/umd/locale/ru-RU.js +1 -1
  78. package/lib/umd/locale/sk-SK.js +1 -1
  79. package/lib/umd/locale/vi-VN.js +1 -1
  80. package/lib/umd/locale/zh-CN.js +1 -1
  81. package/lib/umd/locale/zh-HK.js +1 -1
  82. package/lib/umd/locale/zh-TW.js +1 -1
  83. package/package.json +19 -18
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5874(){const _0x2a6e11=['setOnSavingEditorData','SetDrawingArrangeCommand','close','_focusedDrawings','DRAWING_OBJECT_LAYER_INDEX','gdRefAng','SheetsShapeService','getSkeleton','getState','ancestorTransform','clone','onCommandExecuted','_clearShapeAdjustControls','stroke','hidden','SheetSkeletonService','VIEW_MAIN','getCurrentSkeleton','completeEditing','setShapeProps','sheet.shape.text.float-menu','entries','_draw','sheets-shape-ui.rotateRight90','SetDrawingApplyMutation','http://www.w3.org/2000/svg','from','None','gradientEndColor','cxnIndex','UniverProShapeEditorUi','SetDrawingSelectedOperation','rotation','getRenderById','targetShapeId','end','_sheetInterceptorService','_drawSimpleText','SheetPrintInterceptorService','viewportScrollY','drawWith','_clipService','touchDependencies','0\x200\x2016\x2016','UNIVER_DOC','_shapeId','_generateCutPasteMutations','_lastEditingShapeKey','IURLImageService','canvas','has','focusDrawing','_baseShapeTop','disposeWithMe','skeleton','cos','PictureFill','_clearConnectionSites','_registerShapeMenu','left','disableObjectsEvent','draw','top','UniverCore','getDrawingOKey','FromArray','clearControl$','_context','order','getDrawingEditable','getInterceptPoints','useObservable','discreteRangeToRange','index','createShapeTextBoxShapeData','_drawShapeText','fontFamily','#4285f4','@univerjs-pro/shape-editor-ui','getObjectListPanelSectionIdForDrawingType','COMMAND','oKey','@univerjs-pro/sheets-shape-ui','getTextModel','_activeAdjustInfo','height','#bcbcbc','InsertSheetsShapeMutation','UniverIcon','fillImageSource','chart','Circle','attachPopupToObject','@univerjs/sheets','_updateSrcRectByTransform','updateLinePoints','_index','UpdateConnectorRelationCommand','5111487nySOku','adjHandleFill','updateDocumentStyle','IUndoRedoService','ShapeLineTypeEnum','useDependency','Inject','path','DrawingCommonPanel','updateConnectionDetection','asObservable','SheetsShapeUIMenuSchema','_urlImageService','_cxnIndex','getInverseCoord','shape-adjust-point-','InsertShapeCommand','getDrawingSearch','activateDrawingObject','UniverInstanceType','RENDER_CLASS_TYPE','getDrawingShapeKeyByDrawingSearch','multiply','_executeConnectedRouteResizeCommand','_shapeTextEditingService','SheetsDrawingGroupCopyPasteController','interceptor','getCurrentScrollState','shapeId','clearAdjustControls','adjHandleSize','_getOrCreateShapeModel','VerticalAlign','getDrawingVisible','_cxtHandlerPointerMove','map','executeCommand','StraightConnector1','text','_sidebarService','_shapeUpdateListener','_shapes','DrawingApplyType','UniverProSheetsShape','_baseWidth','_cxtHandlerPointerUp','next','syncExecuteCommand','IImageIoService','onStarting','getUnit','_localeService','focus$','M1.33203\x205.40015C1.33203\x204.55622\x202.01618\x203.87207\x202.86011\x203.87207H10.5998C11.4437\x203.87207\x2012.1278\x204.55622\x2012.1278\x205.40015V13.1398C12.1278\x2013.9837\x2011.4437\x2014.6679\x2010.5998\x2014.6679H2.86011C2.01618\x2014.6679\x201.33203\x2013.9837\x201.33203\x2013.1398V5.40015ZM2.86011\x205.14217C2.71763\x205.14217\x202.60213\x205.25767\x202.60213\x205.40015V13.1398C2.60213\x2013.2823\x202.71763\x2013.3978\x202.86011\x2013.3978H10.5998C10.7422\x2013.3978\x2010.8577\x2013.2823\x2010.8577\x2013.1398V5.40015C10.8577\x205.25767\x2010.7422\x205.14217\x2010.5998\x205.14217H2.86011Z','_getScrollInfo','sheets-shape-ui.objectListPanel.open','DependentOn','fontSize','_openShapeEditPanel','plainShapeTextToDocumentData','@univerjs/drawing','version','addImageSourceCache','attrs','ComponentManager','_registerDrawingMoveHandler','sheet.shape.edit.panel','Rect','_registerOperations','UniverSheetsShapePlugin','isHighlighted','415199IkMtSP','UniverSheetsDrawingUIPlugin','subUnitId','sheet.image-clip.shape-picker.component','random','_isDrawingShapePointDown','clipHeight','SetShapeDrawingDataCommand','UniverSheetsDrawingUi','objects','clip-','shape','Disposable','vertical','DocCanvasPopManagerService','getBatchAddOp','getShapeTypeById','ISheetClipboardService','getImageSourceCache','DrawingRenderService','_currentScene','scale','getEndConnectInfo','_imageIoService','changeShapeType','restore','ConnectorCoordinateTransform','_shapeService','translateWithPrecision','_drawingType','_updateAdjustControlPositions','isHit','_config','DocumentViewModel','_popupMenuListener','deriveStateFromActiveSheet$','_reset','includes','INSERT','SHAPE_TEXT','setHighlighted','blockExecuteWithoutPermission','getAdjustValueByName','univer-box-border\x20univer-px-4\x20univer-text-sm','getCurrentTypeOfUnit$','drawingId','FOCUSING_SHAPE_TEXT_EDITOR','5565780ayLKsi','_iconManager','onPointerMove$','LocaleService','video','getImage','backward','complete','rxjs','top-center','evenodd','DRAWING_SMART_ART','ShapeEditPanel','PRINTING_COMPONENT_COLLECT','getObjectListPanelLabels','pick','UniverProEngineShape','DRAWING_CHART','value','_univerInstanceService','_registerImageShapeClipDelegate','_initEditingParams','@univerjs-pro/license','get','translate','sheetViewStartRow','ShapeModel','getParent','ToggleSheetsShapeFlipCommand','clipByShape','5idGjdA','_sheetSkeletonService','getTransformer','clipTop','contentVerticalOffset','getAdjustInfoByName','_registerDrawingFocusChangeHandler','_setTransForm','getAllUnitsForType','1em','_highlightedSiteIndex','_clearShapeConnectorHandlerObjects','_registerMoveHandler','default','_connectionSiteObjects','sheets-shape-ui.toggleFlipV','CommandType','_activeShapeInfo','getShapeType','stringify','src','register','HorizontalAlign','Image','push','DRAWING_TABLE','endArrow','sheet.command.menu-insert-shape','shapeText','_addShapeConnectorHandlerObjects','DRAWING_SHAPE','jsx','MenuItemType','start','angle','isCurvedConnectorShape','clip-adj-','use','getConnectorLinePoints','UniverProSheetsShapeUi','REMOVE','_drawingAddListener','gdRefX','sheets-shape-ui.config','_createShapePopupMenu','_commandService','sheets-shape-ui.insertShape','getAdjustNames','getActualSize','subscribeEvent','setCanUseShapeClip','_registerIcons','getRealBound','_executeConnectedRouteConnectionCommand','sheets-shape-ui.deleteShape','_sheetDrawingService','startArrow','getMenuHiddenObservable','changing$','_attachConnectorObjectEvent','updateDocumentDataMargin','scene','_handleBasicShapeUpdateConnectorLineShape','dispose','substring','_adjHandlerPointerMove','_initEvents','sectionCanvas','_showConnectionSites','SheetScrollManagerService','_generateCopyPasteMutations','getCurrentRangeDisable$','CUT','_initPermission','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_baseShapeWidth','CopySheetCommand','registerRenderModule','updateShapeFillImage','react/jsx-runtime','invert','342246vDaYxo','isHorizontal','cxnPointRadius','ShapeTypeEnum','_initializedShapePopupMenu','_activeShapeId','tag','editingParams$','horizontal','svg','calcAdjValue','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','refreshTransform','_handleFreeEndpointMove','localToWorld','xlink:href','1.0.0-alpha.5','_isShouldShowDrawingShapeAdjust','shape-text-','function','shapeType','currentColor','redo','sheets-shape-ui.rotateLeft90','packageName','DocSelectionRenderService','sheets-shape-ui.imagePanel.crop.shape','CopyDoubleIcon','_adjHandlerPointerUp','44292ZzbeRR','registerClipDelegate','cxnPointStrokeWidth','extraProps','SHEET_VIEWPORT_KEY','decorate','IDrawingManagerService','getObject','getSelectedObjectMap','lineShapeId','@univerjs/docs-ui','@univerjs/sheets-drawing-ui','setShouldShowAdjust','_initPrinting','RemoveSheetCommand','_getZoomRatio','useEffect','memo','length','params','shouldAllowShapeTextEditorHostSizeShrink','indexOf','getUnitId','1169MBjUVj','image-clip-adjust-point-','title','getFocusDrawings','_initCommands','add$','@univerjs/docs','worldPoint','parse','ShapeTextFloatMenuRenderControllerBase','DRAWING_VIDEO','getDrawingOrder','_handleConnectedEndpointMove','TOP','name','resolveShapeTextEditorWrapStrategy','getCurrentLastSelection','_sheetDrawingShapeRenderController','unsubscribe','CROSSHAIR','assign','FOCUSING_COMMON_DRAWINGS','getConnectionSiteList','remove$','sheets-shape-ui.objectListPanel.title','reverse','selectable','_transformCalculateSrcRect','ICommandService','keys','attachRangeWithCoord','toDisposable','_contextService','save','getBatchUpdateOp','SheetInterceptorService','onTransformChange$','abs','_drawRichText','UniverSheetsUi','getObjectIncludeInGroup','isInGroup','_activeTargetShapeId','offsetY','Line','ShapeRenderModeEnum','transform','_baseDrawingRect','Shape','onPointerUp$','_groupCopyPasteController','getViewportByCell','_shapeRenderController','_isOpenedShapeEditPanel','Vector2','cxnPointStroke','toString','UpdateSheetsShapeDataMutation','Arrow','axisAlignSheetTransform','jsxs','useMemo','_findNearestConnectionSite','_updateTransform','isLineShape','UniverLicensePlugin','_activeShapeModel','_baseLeft','setPrstGeom','changeEnd$','createControl$','values','open','rect','_getShapeInfo','_initialize','_updateShapeAdjustControls','sheetViewStartColumn','adjustValues','setSrcRect','ShapeDefaultConfig','adjHandleStroke','attachTransformerTo','clip','DEFAULT_PASTE','refreshAdjustControls','COPY_TYPE','transformToAxisAlignPosition','IConfigService','#FFFFFF','ShapeArrowTypeEnum','_registerFocusChangeHandler','current','width','GROUP','UniverEngineRender','_sheetBasicShapeConnectionPointController','colorChannel1','13998LGggFA','generateRandomId','_menuManagerService','create','Large','gdRefR','_isStartAdjusting','_disposePopups','sheets-shape-text-','computeConnectorResizeLayout','_hasReset','normalizeShapeTextModel','trim','exports','_imageShapeClipController','isRichText','lineType','onPointerDown$','prepareShapeTextDocumentData','@univerjs-pro/sheets-shape','RemoveSheetsShapeMutation','_renderManagerService','find','_activeAdjustPointList','pipe','_targetShapeId','size','sheets-shape-ui.formatShape','React','getShapeDataById','error','UPDATE','getCurrentUnitOfType','_executeResizeCommand','_onSavingEditorData$','isRenderLinePointsMode','_currentConnectionTarget','resetCursor','UNIVER_SHEET','wrapStrategy','useReducer','subscribe','strokeWidth','onRendered','_createControls','_getImagePrstGeom','@univerjs/engine-render','setPrstGeomAdjValues','_isImagePointerDown','SolidLine','_transform','_sheetsShapeService','refreshShapeFillImage','worldRect','SHAPE_EDITOR_TRANSFORMER_CONFIG','_registerComponents','_copyInfo','getDrawingDataForUnit','custom','getShapeData','_componentManager','getObjectListPanelTypeName','group','transformByState','LEFT','_getShapeAdjustInfosById','sheets-shape-ui.openPanel','set','isStartConnectorPoint','shapeData','featurePluginUpdateNotification','getStartConnectInfo','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','insertGroupObject','removeLinePoints','url(#$1','image','UniverSheets','useState','ShapeArrowSizeEnum','OPERATION','dataModel','_insertShapes','shapeKey','forward','flipY','contentHeight','SetSheetsShapeRotateCommand','interceptCommand','_updateImageAdjValues','PREDEFINED_HOOK_NAME','@univerjs-pro/engine-shape','_moveConnectorWithShape','_attachAdjustEvent','BehaviorSubject','drawingType','_initCopyPaste','_editingParams$','sheets-shape-ui','getShapeModel','routeConnectorLineShape','_sheetClipboardService','UniverDrawing','_adjName','some','mask','_init','_initMenu','DRAWING_IMAGE','getEditing','amd','getTransformerByCreate','sheet.shape.object-list.panel','@univerjs/drawing-ui','data','MEDIA','sheets-shape-ui.hidePanel','getConnectionInfo','_clearControls','getSheetCommandTarget','SheetSkeletonManagerService','_findShapeAtPoint','_sheetCanvasPopManagerService','getBentTypeFromPoints','ShapeTextFloatToolbar','_configService','computeStraightConnectorLayout','_baseShapeLeft','ArrangeTypeEnum','symbol','resize','object','SolidFill','worldPoints','ShapePickerPanel','onload','getZoomRatio','fillType','_activeImageId','endConnectionDetection','point','ISheetDrawingService','Observable','idSuffix','UniverDrawingUi','_injector','getBatchRemoveOp','undo','initShapePopupMenu','getSheetBySheetId','startX','sheetTransform','_addControl','_shapeEditPanelVersion','4FwEbNQ','_sidebarDisposable','@univerjs/sheets-ui','SELECTOR','_drawingManagerService','UniverSheetsDrawing','EMPTY','_baseShapeHeight','merge','activeAnObject','IUniverInstanceService','SetSheetDrawingCommand','unit','_getConnectionSiteAngle','activeSheet$','addObject','_clearPopups','constructor','11JSGyVW','cxnPointFill','_getSceneAndTransformerByDrawingSearch','_props','_executeConnectionCommand','gdRefY','_getDrawingRect','Transform','prstGeom','react','getSkeletonParam','shouldClipShapeTextDocument','initTransformer','_connectorObjects','VIEW_MAIN_LEFT_TOP','Medium','render','createElement','call','12420612ZlWTIh','_getImageDrawingInfo','URL','_insertingShapeKeys','startConnectionDetection','@univerjs/core','UniverShapeEditorUIPlugin','adjName','srcRect','highlighted','filter','children','UniverSheetsShapeUIPlugin','getBasicShapeRotateBound','_closeShapeEditPanel','visible','calculate','setAdjustValueByName','enableObjectsEvent','ShapeFillEnum','beginPath','setContextValue','_sheetPermissionCheckController','unitId','cancelEditing','beforeCommandExecuted','_sheetPrintInterceptorService','_initSheetChange','UniverDocsUi','marginTop','_baseHeight','permissionCheckWithoutRange','buildClipPath','relation','_calculateFreeEndpointAngle','isHitLine','isEditing','smartArt','_createShapeAdjustControls','defs','_addShapeConnectorHandlerObject','_subUnitId','string','forEach','DRAWING_GROUP','setConfig','toStringTag','IRenderManagerService','_initSelection','classType','flipX','CURSOR_TYPE','registerFeatureMenuOffset','transformToDrawingPosition','_activeShapeAdjustPointList','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','toPrimitive','8UwbDaJ','update$','IconManager','RibbonInsertGroup','UUID','SetSheetsShapeTextVerticalToggleCommand','type','RemoveSheetDrawingCommand','ImageSourceTypeEnum','DrawingTypeEnum','_baseTop','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','_draggingConnectorId','offsetX','defineProperty','isArray','changeStart$','Path','_createCopyInfoByRange','add','getShapePopupMenus','switchMap','setFillImage','connection-site-','_unitId','_currentUniverService','_handleConnectedEndpointPointerUp','_resetState','copyType','VIEW_MAIN_LEFT','mergeMenu','updateContext','getDrawingPoints','_getShapeAdjustPointListById','ShapePickerDropdown','div','ISidebarService','_isConnecting','popup','getDrawingData','getDrawingByParam','_loadAndSetImage','IContextService','clearAdjustValue','_getConnectPointInfo','stopPropagation','setEditing','#1a73e8','defIds','sin','pushUndoRedo','_generatePasteMutations','startY','delete','_isHighlighted','sheets-shape-ui.toggleFlipH','fill','with','renderDrawingShape','sqrt','isDrawingObject','_handleFreeEndpointPointerUp','_sheetShapeAdjustController','UniverProLicense','shapeModel','DRAWING_DOM','getMatrix','isConnectorShape','bind','makeDirty','resolveShapeTextEditorBehaviorShapeData','getShapeTextRect','computeConnectorRouteLayout','_handleConnectorPointerUp','DocSelectionManagerService','viewportScrollX','DocumentDataModel'];_0x5874=function(){return _0x2a6e11;};return _0x5874();}function _0x3642(_0x4759d9,_0x3a3277){_0x4759d9=_0x4759d9-0x188;const _0x5874b4=_0x5874();let _0x364244=_0x5874b4[_0x4759d9];return _0x364244;}(function(_0x428b9c,_0x12ee91){const _0x3c5148=_0x3642,_0x22d2fe=_0x428b9c();while(!![]){try{const _0x17e87a=parseInt(_0x3c5148(0x47f))/0x1+parseInt(_0x3c5148(0x32b))/0x2*(parseInt(_0x3c5148(0x1fb))/0x3)+parseInt(_0x3c5148(0x218))/0x4*(parseInt(_0x3c5148(0x1aa))/0x5)+parseInt(_0x3c5148(0x291))/0x6*(-parseInt(_0x3c5148(0x22f))/0x7)+parseInt(_0x3c5148(0x389))/0x8*(parseInt(_0x3c5148(0x438))/0x9)+parseInt(_0x3c5148(0x18c))/0xa+parseInt(_0x3c5148(0x33d))/0xb*(-parseInt(_0x3c5148(0x350))/0xc);if(_0x17e87a===_0x12ee91)break;else _0x22d2fe['push'](_0x22d2fe['shift']());}catch(_0x5a4eb0){_0x22d2fe['push'](_0x22d2fe['shift']());}}}(_0x5874,0x567f7),function(_0x511577,_0x3fbfa7){const _0x344650=_0x3642;typeof exports==_0x344650(0x314)&&typeof module<'u'?_0x3fbfa7(exports,require('@univerjs/ui'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/shape-editor-ui'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/drawing'),require('@univerjs/engine-render'),require('@univerjs/sheets-ui'),require('rxjs'),require('@univerjs/drawing-ui'),require('react/jsx-runtime'),require('@univerjs-pro/license'),require('@univerjs/sheets-drawing-ui'),require('react'),require('@univerjs/sheets-drawing'),require('@univerjs/docs'),require('@univerjs/docs-ui')):typeof define==_0x344650(0x20e)&&define[_0x344650(0x2ff)]?define([_0x344650(0x29e),'@univerjs/ui',_0x344650(0x2ec),_0x344650(0x424),_0x344650(0x2a4),_0x344650(0x355),_0x344650(0x433),_0x344650(0x474),_0x344650(0x2bf),_0x344650(0x32d),'rxjs',_0x344650(0x302),_0x344650(0x1f9),_0x344650(0x1a2),_0x344650(0x223),_0x344650(0x346),'@univerjs/sheets-drawing',_0x344650(0x235),_0x344650(0x222)],_0x3fbfa7):(_0x511577=typeof globalThis<'u'?globalThis:_0x511577||self,_0x3fbfa7(_0x511577[_0x344650(0x1d1)]={},_0x511577['UniverUi'],_0x511577[_0x344650(0x19c)],_0x511577[_0x344650(0x3f4)],_0x511577[_0x344650(0x463)],_0x511577[_0x344650(0x415)],_0x511577[_0x344650(0x2de)],_0x511577[_0x344650(0x2f7)],_0x511577[_0x344650(0x28e)],_0x511577[_0x344650(0x256)],_0x511577[_0x344650(0x194)],_0x511577[_0x344650(0x321)],_0x511577[_0x344650(0x2ad)],_0x511577[_0x344650(0x3c8)],_0x511577[_0x344650(0x487)],_0x511577[_0x344650(0x2ad)],_0x511577[_0x344650(0x330)],_0x511577['UniverDocs'],_0x511577[_0x344650(0x36c)]));}(this,function(_0x4f30a0,_0x23402e,_0x8713ee,_0x2a5532,_0xe63f5c,_0xa2ae07,_0x2042f3,_0x2c1288,_0x5663a2,_0xe965b,_0x50bd3e,_0x5e919d,_0x1fa7e6,_0x3a0fb2,_0x300372,_0x437a9d,_0x3f4b55,_0x3ae947,_0x75d37d){const _0x30c533=_0x3642;Object[_0x30c533(0x397)](_0x4f30a0,Symbol[_0x30c533(0x37e)],{'value':'Module'});function _0x318ba4(_0x4b9813,_0x5dcef4){const _0x5ed359=_0x30c533;let _0xdab36e={};for(let _0x204232 of Object[_0x5ed359(0x24c)](_0x5dcef4)){let _0x395c1f=_0x5dcef4[_0x204232],_0x970c92=_0x4b9813[_0x204232];if(_0x395c1f!==void 0x0){if(_0x970c92===void 0x0){_0xdab36e[_0x204232]=void 0x0;continue;}typeof _0x395c1f==_0x5ed359(0x314)&&_0x395c1f&&!Array[_0x5ed359(0x398)](_0x395c1f)&&typeof _0x970c92==_0x5ed359(0x314)&&_0x970c92&&!Array[_0x5ed359(0x398)](_0x970c92)?_0xdab36e[_0x204232]=_0x318ba4(_0x970c92,_0x395c1f):_0xdab36e[_0x204232]=_0x970c92;}}return _0xdab36e;}let _0xc12450={'type':_0xa2ae07[_0x30c533(0x1ba)][_0x30c533(0x426)],'id':'sheet.command.update-shape-data','handler':(_0x336ec0,_0x5a19d6)=>{const _0x2167b8=_0x30c533;let _0x45def7=_0x336ec0[_0x2167b8(0x1a3)](_0xe63f5c[_0x2167b8(0x3dc)]),{unitId:_0x3e6418,subUnitId:_0x508cdc,shapeType:_0x56db54,shapeId:_0x446a78,shapeData:_0x5e4a24,oldShapeJSON:_0x2f795f}=_0x5a19d6;if(!_0x45def7[_0x2167b8(0x2f4)](_0x3e6418,_0x508cdc,_0x446a78))return!0x1;let _0x398b39=_0x336ec0['get'](_0xa2ae07['ICommandService']),_0x4b6466=_0x336ec0[_0x2167b8(0x1a3)](_0xa2ae07[_0x2167b8(0x43b)]),{oldShapeType:_0x154799,oldShapeData:_0x3966ac={}}=_0x2f795f,_0x25e4c5=_0x318ba4(_0x3966ac,_0x5e4a24||{}),_0x1eb1c6={'id':_0xe63f5c[_0x2167b8(0x268)]['id'],'params':{'unitId':_0x3e6418,'subUnitId':_0x508cdc,'shapeId':_0x446a78,'shapeType':_0x56db54,'shapeData':_0x5e4a24}},_0x38d28b={'id':_0xe63f5c[_0x2167b8(0x268)]['id'],'params':{'unitId':_0x3e6418,'subUnitId':_0x508cdc,'shapeId':_0x446a78,'shapeType':_0x154799,'shapeData':_0x25e4c5}};return _0x398b39[_0x2167b8(0x467)](_0x1eb1c6['id'],_0x1eb1c6[_0x2167b8(0x22b)])?(_0x4b6466[_0x2167b8(0x3bb)]({'unitID':_0x3e6418,'undoMutations':[_0x38d28b],'redoMutations':[_0x1eb1c6]}),!0x0):!0x1;}};function _0x2a12a7(_0x1bef15,_0x554b6f,_0x23777d,_0x2b28f5,_0x29b530,_0x52eeb1){let _0x8702e7={'unitId':_0x554b6f,'subUnitId':_0x23777d,'shapeId':_0x2b28f5,'shapeData':_0x52eeb1,'oldShapeJSON':_0x29b530};return _0x1bef15['executeCommand'](_0xc12450['id'],_0x8702e7);}function _0x11404e(_0x16c001,_0x98d1b,_0x29bec0,_0x36366d,_0x3ed13c,_0x922001){let _0x28404f={'unitId':_0x98d1b,'subUnitId':_0x29bec0,'shapeId':_0x36366d,'shapeData':_0x922001,'oldShapeJSON':_0x3ed13c};return _0x16c001['executeCommand'](_0xc12450['id'],_0x28404f);}function _0x2ae425(_0x556b2c){'@babel/helpers - typeof';const _0x1a5dea=_0x30c533;return _0x2ae425=typeof Symbol==_0x1a5dea(0x20e)&&typeof Symbol['iterator']=='symbol'?function(_0x3c49b3){return typeof _0x3c49b3;}:function(_0x2133df){const _0x33f38f=_0x1a5dea;return _0x2133df&&typeof Symbol==_0x33f38f(0x20e)&&_0x2133df[_0x33f38f(0x33c)]===Symbol&&_0x2133df!==Symbol['prototype']?_0x33f38f(0x312):typeof _0x2133df;},_0x2ae425(_0x556b2c);}function _0x118e81(_0x53b5f6,_0x484584){const _0xcd5bab=_0x30c533;if(_0x2ae425(_0x53b5f6)!=_0xcd5bab(0x314)||!_0x53b5f6)return _0x53b5f6;var _0x30ec5a=_0x53b5f6[Symbol[_0xcd5bab(0x388)]];if(_0x30ec5a!==void 0x0){var _0x59ac32=_0x30ec5a[_0xcd5bab(0x34f)](_0x53b5f6,_0x484584||_0xcd5bab(0x1b7));if(_0x2ae425(_0x59ac32)!=_0xcd5bab(0x314))return _0x59ac32;throw TypeError(_0xcd5bab(0x1f4));}return(_0x484584===_0xcd5bab(0x37a)?String:Number)(_0x53b5f6);}function _0x42d4d1(_0xf1e209){var _0x48c0ab=_0x118e81(_0xf1e209,'string');return _0x2ae425(_0x48c0ab)=='symbol'?_0x48c0ab:_0x48c0ab+'';}function _0x54eac0(_0x21f5ef,_0xe5dc3,_0x57a498){const _0x525940=_0x30c533;return(_0xe5dc3=_0x42d4d1(_0xe5dc3))in _0x21f5ef?Object[_0x525940(0x397)](_0x21f5ef,_0xe5dc3,{'value':_0x57a498,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x21f5ef[_0xe5dc3]=_0x57a498,_0x21f5ef;}function _0x5877ed(_0x4374cb,_0x12f80a,_0x1ad9c8){const _0x42f353=_0x30c533;var _0x5ecf83;let _0x22041f=(0x0,_0x2a5532[_0x42f353(0x3cf)])(_0x4374cb,{..._0x12f80a,'dataModel':{...(_0x5ecf83=_0x12f80a[_0x42f353(0x2e2)])==null?{}:_0x5ecf83,..._0x1ad9c8?{'doc':_0x1ad9c8}:null}}),_0x5742e6=(0x0,_0x2a5532[_0x42f353(0x23e)])(_0x22041f);return{'clip':(0x0,_0x2a5532[_0x42f353(0x348)])(_0x22041f,_0x5742e6),'wrapStrategy':_0x5742e6};}var _0x4da10f=class extends _0x5663a2[_0x30c533(0x25f)]{constructor(_0x54786a,_0x38ba39){const _0x18ad2b=_0x30c533;super(_0x54786a,_0x38ba39),_0x54eac0(this,_0x18ad2b(0x340),void 0x0),_0x54eac0(this,_0x18ad2b(0x24a),!0x0),_0x54eac0(this,_0x18ad2b(0x49c),_0xa2ae07[_0x18ad2b(0x392)]['DRAWING_SHAPE']),_0x54eac0(this,_0x18ad2b(0x3c5),!0x0),this[_0x18ad2b(0x340)]={..._0x38ba39},this[_0x18ad2b(0x2fb)]();}[_0x30c533(0x2fb)](){const _0x21b5a0=_0x30c533;this[_0x21b5a0(0x253)][_0x21b5a0(0x1db)](_0x2d11dc=>{this['_updateSrcRectByTransform'](_0x2d11dc);});}[_0x30c533(0x273)](_0x2879e0){const _0x32adb1=_0x30c533;this[_0x32adb1(0x340)][_0x32adb1(0x345)]=_0x2879e0;}[_0x30c533(0x3b7)](_0x258994){const _0x3d542a=_0x30c533;this['_props'][_0x3d542a(0x374)]=_0x258994,this['makeDirty'](!0x0);}get['unitId'](){return this['_props']['unitId'];}get[_0x30c533(0x481)](){const _0xc82682=_0x30c533;return this[_0xc82682(0x340)][_0xc82682(0x481)];}[_0x30c533(0x434)](_0xbd401b){const _0x368f86=_0x30c533;if(this[_0x368f86(0x340)]['srcRect']==null||!this[_0x368f86(0x24a)])return;let {width:_0x53c3d2,height:_0x252dc7}=this,{width:_0x1fb480=0x0,height:_0x34442f=0x0}=_0xbd401b['preValue'],{left:_0x4161b9=0x0,top:_0x44c1bc=0x0,right:_0x4ca845=0x0,bottom:_0x31d169=0x0}=this[_0x368f86(0x340)][_0x368f86(0x358)],_0x1f04f5=_0x4161b9,_0x57d301=_0x44c1bc,_0x908b53=_0x4ca845,_0x53ec24=_0x31d169,_0x5619e9=!0x1;if(_0x1fb480!==0x0&&_0x1fb480!==_0x53c3d2){let _0x270737=_0x4161b9/_0x1fb480,_0x58c00d=_0x4ca845/_0x1fb480;_0x1f04f5=_0x53c3d2*_0x270737,_0x908b53=_0x53c3d2*_0x58c00d,_0x5619e9=!0x0;}if(_0x34442f!==0x0&&_0x34442f!==_0x252dc7){let _0x5a775a=_0x44c1bc/_0x34442f,_0x2ee8a8=_0x31d169/_0x34442f;_0x57d301=_0x252dc7*_0x5a775a,_0x53ec24=_0x252dc7*_0x2ee8a8,_0x5619e9=!0x0;}_0x5619e9&&this[_0x368f86(0x27e)]({'left':_0x1f04f5,'top':_0x57d301,'right':_0x908b53,'bottom':_0x53ec24});}[_0x30c533(0x27e)](_0xe7d901){const _0x4d78c7=_0x30c533;this[_0x4d78c7(0x340)][_0x4d78c7(0x358)]=_0xe7d901,this[_0x4d78c7(0x3ce)](!0x0);}['setFillImage'](_0xadf6c0){const _0x290bfe=_0x30c533;this[_0x290bfe(0x340)][_0x290bfe(0x2dd)]=_0xadf6c0,this['makeDirty'](!0x0);}set[_0x30c533(0x25d)](_0x20f5c3){this['_transform']=_0x20f5c3;}get[_0x30c533(0x25d)](){const _0x140e89=_0x30c533;this[_0x140e89(0x2c3)]||this[_0x140e89(0x1b1)]();let _0x211985=this[_0x140e89(0x2c3)][_0x140e89(0x3e0)]();return this['transformForAngle'](_0x211985);}get[_0x30c533(0x3c9)](){const _0x41e9e1=_0x30c533;return this[_0x41e9e1(0x340)][_0x41e9e1(0x3c9)];}get[_0x30c533(0x454)](){const _0x2bdac1=_0x30c533;return this[_0x2bdac1(0x340)][_0x2bdac1(0x454)];}get[_0x30c533(0x381)](){const _0x88fd91=_0x30c533;return _0x5663a2[_0x88fd91(0x44c)]['SHAPE'];}['_draw'](_0x339647,_0x571dd1,_0x422cb5,_0x107999){const _0x4bfcdc=_0x30c533;let _0x2e8e15=this['_props'][_0x4bfcdc(0x3c9)];if(!_0x2e8e15||!_0x571dd1)return;let _0x1a15a3=_0x422cb5==null?this['width']:_0x422cb5,_0x4109f1=_0x107999==null?this[_0x4bfcdc(0x42b)]:_0x107999,_0x24f040={'shapeType':_0x2e8e15['getShapeType'](),'width':_0x1a15a3,'height':_0x4109f1},_0x176769={'renderMode':_0x8713ee[_0x4bfcdc(0x25c)][_0x4bfcdc(0x39a)],'oKey':this[_0x4bfcdc(0x427)],'image':this[_0x4bfcdc(0x340)][_0x4bfcdc(0x2dd)],'angle':this['angle']};_0x2e8e15[_0x4bfcdc(0x3a8)](_0x24f040),_0x339647[_0x4bfcdc(0x250)]();let _0x4e71f2={'top':0x0,'left':0x0,'width':_0x1a15a3,'height':_0x4109f1};_0x2e8e15['render'](_0x339647,_0x4e71f2,_0x176769),_0x339647['restore']();let _0x32c3f8=_0x2e8e15['getShapeTextData'](),_0x278423=_0x2e8e15[_0x4bfcdc(0x3d0)](_0x4e71f2),_0x146e8c=_0x2e8e15[_0x4bfcdc(0x26f)]();if(_0x32c3f8&&_0x278423&&!_0x146e8c){_0x339647[_0x4bfcdc(0x250)](),this['getState']()['flipX']&&_0x339647[_0x4bfcdc(0x494)](-0x1,0x1);let _0x361ad0=_0x1a15a3/0x2,_0x3b63a3=_0x4109f1/0x2;_0x339647[_0x4bfcdc(0x1a4)](-_0x361ad0,-_0x3b63a3),_0x339647['beginPath'](),this['_drawShapeText'](_0x339647,_0x32c3f8,_0x278423),_0x339647[_0x4bfcdc(0x498)]();}}[_0x30c533(0x3a9)](_0x3f1f8b){}[_0x30c533(0x421)](_0x432feb,_0x415dff,_0x4bbe04){const _0x337e19=_0x30c533;var _0xa948d1;this[_0x337e19(0x340)][_0x337e19(0x374)]||(!((_0xa948d1=_0x415dff['dataModel'])!=null&&_0xa948d1['doc'])&&_0x337e19(0x2a0)in _0x415dff&&_0x415dff[_0x337e19(0x2a0)]===!0x1?this[_0x337e19(0x3fb)](_0x432feb,_0x415dff,_0x4bbe04):this['_drawRichText'](_0x432feb,_0x415dff,_0x4bbe04));}[_0x30c533(0x3fb)](_0x20eb7d,_0x1722e4,_0xe135dc){const _0x21834d=_0x30c533;var _0x73f4a2;this[_0x21834d(0x255)](_0x20eb7d,{..._0x1722e4,'text':(_0x73f4a2=_0x1722e4[_0x21834d(0x45e)])==null?'':_0x73f4a2,'dataModel':{'doc':(0x0,_0x2a5532[_0x21834d(0x473)])(_0x1722e4,_0x21834d(0x299)+this[_0x21834d(0x427)])}},_0xe135dc);}['_drawRichText'](_0x569788,_0xa8a9c5,_0x4f1bce){const _0x5a88a8=_0x30c533;var _0x438b58,_0x3b5532;let _0x36f1c8=this[_0x5a88a8(0x340)]['localeService'];if(!_0xa8a9c5[_0x5a88a8(0x2e2)]||!_0x36f1c8)return;let _0x38cb2d=(0x0,_0x2a5532[_0x5a88a8(0x29c)])(_0xa8a9c5[_0x5a88a8(0x2e2)]);if(!_0x38cb2d)return;let _0x406083=_0x38cb2d['doc'];if(!_0x406083)return;let _0x5c8ab1=(_0x438b58=_0x38cb2d['va'])==null?_0xa2ae07[_0x5a88a8(0x458)][_0x5a88a8(0x23c)]:_0x438b58,_0x678dc3=(_0x3b5532=_0x38cb2d['ha'])==null?_0xa2ae07[_0x5a88a8(0x1c0)][_0x5a88a8(0x2d1)]:_0x3b5532,_0x67e407=_0x5877ed(this[_0x5a88a8(0x340)][_0x5a88a8(0x3c9)]['getShapeData'](),_0xa8a9c5,_0x406083),_0x97838f=_0xa8a9c5[_0x5a88a8(0x1fc)],_0x2ac7b7=new _0xa2ae07[(_0x5a88a8(0x3d5))]((0x0,_0x2a5532[_0x5a88a8(0x2a3)])(_0x406083,{'isHorizontal':_0x97838f!==!0x1,'textRect':_0x4f1bce,'verticalAlign':_0x5c8ab1,'horizontalAlign':_0x678dc3,'wrapStrategy':_0x67e407[_0x5a88a8(0x2b8)]})),_0x36f918=new _0x5663a2[(_0x5a88a8(0x4a0))](_0x2ac7b7),_0x207d68=_0x5663a2['DocumentSkeleton'][_0x5a88a8(0x294)](_0x36f918,_0x36f1c8);_0x207d68[_0x5a88a8(0x360)]();let _0x1f3ec6=_0x207d68[_0x5a88a8(0x1da)]()['actualHeight'],_0x89fa80=(0x0,_0x2a5532['resolveShapeTextDocumentRenderLayout'])({'contentHeight':_0x1f3ec6,'verticalAlign':_0x5c8ab1,'viewportHeight':_0x4f1bce['height']});_0x2ac7b7[_0x5a88a8(0x43a)]({'pageSize':{'width':_0x97838f===!0x1?_0x4f1bce[_0x5a88a8(0x42b)]:_0x4f1bce[_0x5a88a8(0x28c)],'height':_0x89fa80[_0x5a88a8(0x2e7)]}}),_0x2ac7b7[_0x5a88a8(0x1e6)]({'t':_0x89fa80[_0x5a88a8(0x36d)]}),_0x207d68[_0x5a88a8(0x360)]();let _0x5c830d=new _0x5663a2['Documents'](_0x5a88a8(0x20d)+this[_0x5a88a8(0x427)],_0x207d68,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x5a88a8(0x3ce)](!0x0)});_0x5c830d[_0x5a88a8(0x313)](_0x4f1bce['width'],_0x89fa80[_0x5a88a8(0x2e7)]),_0x569788[_0x5a88a8(0x250)](),_0x569788[_0x5a88a8(0x49b)](_0x4f1bce[_0x5a88a8(0x411)],_0x4f1bce[_0x5a88a8(0x414)]),_0x67e407[_0x5a88a8(0x282)]&&(_0x569788[_0x5a88a8(0x364)](),_0x569788[_0x5a88a8(0x278)](0x0,_0x89fa80[_0x5a88a8(0x1ad)],_0x4f1bce[_0x5a88a8(0x28c)],_0x89fa80[_0x5a88a8(0x485)]),_0x569788['clip']()),_0x89fa80['contentVerticalOffset']&&_0x569788['translateWithPrecision'](0x0,_0x89fa80[_0x5a88a8(0x1ae)]),_0x5c830d[_0x5a88a8(0x413)](_0x569788),_0x569788[_0x5a88a8(0x498)](),_0x5c830d[_0x5a88a8(0x1e9)](),_0x207d68[_0x5a88a8(0x1e9)](),_0x36f918[_0x5a88a8(0x1e9)](),_0x2ac7b7[_0x5a88a8(0x1e9)]();}[_0x30c533(0x34d)](_0x5636a8,_0x4d7120,_0x37c4bd=!0x1){const _0x4bd2ac=_0x30c533;if(!this[_0x4bd2ac(0x35f)])return this[_0x4bd2ac(0x3ce)](!0x1),this;let {width:_0x148776,height:_0x7b2eb2,left:_0x133eeb,top:_0x94433b}=this,_0x19aa35=this[_0x4bd2ac(0x1de)]();if(_0x148776=_0x19aa35[_0x4bd2ac(0x28c)],_0x7b2eb2=_0x19aa35[_0x4bd2ac(0x42b)],_0x133eeb=_0x19aa35['left'],_0x94433b=_0x19aa35[_0x4bd2ac(0x414)],this['isRender'](_0x4d7120)){let {top:_0x335bb0,left:_0xe8d201,bottom:_0x54d046,right:_0x111b3e}=_0x4d7120['viewBound'];if(_0x148776+this[_0x4bd2ac(0x2bb)]+_0x133eeb<_0xe8d201||_0x111b3e<_0x133eeb||_0x7b2eb2+this[_0x4bd2ac(0x2bb)]+_0x94433b<_0x335bb0||_0x54d046<_0x94433b)return this;}let _0x44fd05=_0x133eeb+_0x148776/0x2,_0x233b27=_0x94433b+_0x7b2eb2/0x2,_0x1e817f=this['transform'][_0x4bd2ac(0x3cb)]();if(this[_0x4bd2ac(0x340)]['isEditing']){let _0x5665dc=this[_0x4bd2ac(0x3de)](),_0x4ff717=new _0x5663a2[(_0x4bd2ac(0x344))]();_0x4ff717['composeMatrix']({..._0x5665dc}),_0x1e817f=_0x4ff717[_0x4bd2ac(0x3cb)]();}return _0x5636a8[_0x4bd2ac(0x250)](),this[_0x4bd2ac(0x340)][_0x4bd2ac(0x3c9)][_0x4bd2ac(0x2b4)]===!0x0||_0x5636a8['transform'](_0x1e817f[0x0],_0x1e817f[0x1],_0x1e817f[0x2],_0x1e817f[0x3],_0x44fd05,_0x233b27),this['_draw'](_0x5636a8,_0x4d7120,_0x148776,_0x7b2eb2),_0x5636a8['restore'](),this[_0x4bd2ac(0x3ce)](!0x1),this;}[_0x30c533(0x446)](_0x42d9b1){const _0x2587a2=_0x30c533;let {left:_0x2a4c21,top:_0x2fa6b9,width:_0x5bdb1d,height:_0xe59e1e}=this[_0x2587a2(0x1de)](),_0x6fbd3c=this['transform'][_0x2587a2(0x3cb)](),_0x4315b7=_0x2a4c21+_0x5bdb1d/0x2,_0x546110=_0x2fa6b9+_0xe59e1e/0x2,_0x40d247=new _0x5663a2['Transform']([_0x6fbd3c[0x0],_0x6fbd3c[0x1],_0x6fbd3c[0x2],_0x6fbd3c[0x3],_0x4315b7,_0x546110]),_0x3d3af8=this[_0x2587a2(0x1a7)]();return(this['isInGroup']&&(_0x3d3af8==null?void 0x0:_0x3d3af8[_0x2587a2(0x381)])===_0x5663a2[_0x2587a2(0x44c)][_0x2587a2(0x28d)]?_0x3d3af8[_0x2587a2(0x3df)][_0x2587a2(0x44e)](_0x40d247):_0x40d247)[_0x2587a2(0x1fa)]()['applyPoint'](_0x42d9b1);}[_0x30c533(0x49e)](_0x53b6d8){const _0x46262=_0x30c533;let {left:_0x3278cb,top:_0x5b5b73,width:_0x239661,height:_0x5ae5e7}=this[_0x46262(0x1de)](),_0x1bdfa9=_0x3278cb+_0x239661/0x2,_0x3739f5=_0x5b5b73+_0x5ae5e7/0x2,_0xee2f8=this['transform']['getMatrix'](),_0x1cee15=new _0x5663a2[(_0x46262(0x344))]([_0xee2f8[0x0],_0xee2f8[0x1],_0xee2f8[0x2],_0xee2f8[0x3],_0x1bdfa9,_0x3739f5]),_0x4cbed1=this[_0x46262(0x1a7)](),_0x3e800e=(this[_0x46262(0x258)]&&(_0x4cbed1==null?void 0x0:_0x4cbed1[_0x46262(0x381)])===_0x5663a2[_0x46262(0x44c)][_0x46262(0x28d)]?_0x4cbed1[_0x46262(0x3df)][_0x46262(0x44e)](_0x1cee15):_0x1cee15)[_0x46262(0x1fa)]()['applyPoint'](_0x53b6d8),_0x425fed=_0x239661/0x2,_0x18d0e2=_0x5ae5e7/0x2,_0x373153=this['_props'][_0x46262(0x3c9)];return _0x373153&&_0x373153[_0x46262(0x26f)]()?_0x373153[_0x46262(0x373)](_0x3e800e['x'],_0x3e800e['y'],_0x239661,_0x5ae5e7):_0x3e800e['x']>=-_0x425fed-this[_0x46262(0x2bb)]/0x2&&_0x3e800e['x']<=_0x425fed+this[_0x46262(0x2bb)]/0x2&&_0x3e800e['y']>=-_0x18d0e2-this[_0x46262(0x2bb)]/0x2&&_0x3e800e['y']<=_0x18d0e2+this[_0x46262(0x2bb)]/0x2;}[_0x30c533(0x1e9)](){const _0x362bd3=_0x30c533;this[_0x362bd3(0x340)]['shapeModel']=null,super[_0x362bd3(0x1e9)]();}},_0x44d757=class extends _0x5663a2[_0x30c533(0x25f)]{constructor(_0x3db88e,_0x118023){const _0x5b5dda=_0x30c533;super(_0x3db88e,_0x118023),_0x54eac0(this,'_shapeId',null),_0x54eac0(this,_0x5b5dda(0x2f8),null),_0x54eac0(this,_0x5b5dda(0x3a1),null),_0x54eac0(this,_0x5b5dda(0x379),null),_0x118023&&this[_0x5b5dda(0x3e9)](_0x118023);}[_0x30c533(0x449)](){const _0x226b1a=_0x30c533;return{'unitId':this[_0x226b1a(0x3a1)],'subUnitId':this[_0x226b1a(0x379)],'drawingId':this[_0x226b1a(0x403)]};}['setShapeProps'](_0x276cd3){const _0x252981=_0x30c533;_0x276cd3[_0x252981(0x454)]!==void 0x0&&(this[_0x252981(0x403)]=_0x276cd3['shapeId']),_0x276cd3[_0x252981(0x357)]!==void 0x0&&(this[_0x252981(0x2f8)]=_0x276cd3[_0x252981(0x357)]),_0x276cd3[_0x252981(0x367)]!==void 0x0&&(this[_0x252981(0x3a1)]=_0x276cd3[_0x252981(0x367)]),_0x276cd3[_0x252981(0x481)]!==void 0x0&&(this[_0x252981(0x379)]=_0x276cd3[_0x252981(0x481)]),this['transformByState']({'width':_0x276cd3[_0x252981(0x28c)],'height':_0x276cd3[_0x252981(0x42b)]});}[_0x30c533(0x3ec)](_0xfb3781){const _0x4caf4f=_0x30c533;_0x5663a2[_0x4caf4f(0x431)]['drawWith'](_0xfb3781,{'radius':_0x8713ee[_0x4caf4f(0x27f)][_0x4caf4f(0x456)],'fill':_0x8713ee[_0x4caf4f(0x27f)][_0x4caf4f(0x439)],'stroke':_0x8713ee[_0x4caf4f(0x27f)][_0x4caf4f(0x280)],'strokeWidth':0x1,'evented':!0x0});}};function _0x4fa083(_0x105721,_0x51b7db){return function(_0x149e5a,_0x1b0512){_0x51b7db(_0x149e5a,_0x1b0512,_0x105721);};}function _0x164126(_0xdfb111,_0x183660,_0xb21de2,_0x34f750){const _0xc5e1e8=_0x30c533;var _0x5f162b=arguments[_0xc5e1e8(0x22a)],_0x14c3d5=_0x5f162b<0x3?_0x183660:_0x34f750===null?_0x34f750=Object['getOwnPropertyDescriptor'](_0x183660,_0xb21de2):_0x34f750,_0x2613bc;if(typeof Reflect==_0xc5e1e8(0x314)&&typeof Reflect[_0xc5e1e8(0x21d)]=='function')_0x14c3d5=Reflect[_0xc5e1e8(0x21d)](_0xdfb111,_0x183660,_0xb21de2,_0x34f750);else{for(var _0x3e18e7=_0xdfb111[_0xc5e1e8(0x22a)]-0x1;_0x3e18e7>=0x0;_0x3e18e7--)(_0x2613bc=_0xdfb111[_0x3e18e7])&&(_0x14c3d5=(_0x5f162b<0x3?_0x2613bc(_0x14c3d5):_0x5f162b>0x3?_0x2613bc(_0x183660,_0xb21de2,_0x14c3d5):_0x2613bc(_0x183660,_0xb21de2))||_0x14c3d5);}return _0x5f162b>0x3&&_0x14c3d5&&Object[_0xc5e1e8(0x397)](_0x183660,_0xb21de2,_0x14c3d5),_0x14c3d5;}let _0x568a7c=class extends _0xa2ae07['Disposable']{constructor(_0x3a9416,_0x57cbf8,_0xf48383,_0x61092e,_0x48de46){const _0x425db5=_0x30c533;super(),this[_0x425db5(0x32f)]=_0x3a9416,this[_0x425db5(0x2c4)]=_0x57cbf8,this[_0x425db5(0x46b)]=_0xf48383,this[_0x425db5(0x496)]=_0x61092e,this[_0x425db5(0x444)]=_0x48de46;}[_0x30c533(0x3c3)](_0x1fdba4,_0x48e3ce,_0x7ed450){const _0x20cebf=_0x30c533;let {transform:_0x1d4180,drawingType:_0x59c50e,srcRect:_0x173bd3,prstGeom:_0x40cbf5,groupId:_0x8d6543,unitId:_0xb02922,subUnitId:_0x3f3dc4,drawingId:_0x262d13,isMultiTransform:_0x2f0997,transforms:_0x1beff2,hidden:_0x4a5a94,selectable:_0xb0b2c6}=_0x1fdba4;if(_0x59c50e!==_0xa2ae07[_0x20cebf(0x392)]['DRAWING_SHAPE']||!this[_0x20cebf(0x32f)]['getDrawingVisible']()||_0x1d4180==null)return;let _0x38cb86=this[_0x20cebf(0x32f)][_0x20cebf(0x41b)]();_0x38cb86&&_0x48e3ce[_0x20cebf(0x349)](_0x2a5532[_0x20cebf(0x2c7)]);let _0x46095b=_0x2f0997&&_0x1beff2?_0x1beff2:[_0x1d4180],_0x378bdb=[];for(let _0x5c58d9 of _0x46095b){let {left:_0x5dca50,top:_0x18f209,width:_0x49e0ba,height:_0x4351a7,angle:_0x36e27c,flipX:_0x42a41f,flipY:_0x373672,skewX:_0x48bf68,skewY:_0x52ea46}=_0x5c58d9,_0x14b9f1=_0x46095b['indexOf'](_0x5c58d9),_0x43f23b=(0x0,_0x2c1288[_0x20cebf(0x44d)])({'unitId':_0xb02922,'subUnitId':_0x3f3dc4,'drawingId':_0x262d13},_0x2f0997?_0x14b9f1:void 0x0),_0x26aad7=_0x48e3ce[_0x20cebf(0x257)](_0x43f23b);if(_0x26aad7!=null){_0x26aad7[_0x20cebf(0x2d0)]({'left':_0x5dca50,'top':_0x18f209,'width':_0x49e0ba,'height':_0x4351a7,'angle':_0x36e27c,'flipX':_0x42a41f,'flipY':_0x373672,'skewX':_0x48bf68,'skewY':_0x52ea46});continue;}let _0x593eed=this['_drawingManagerService']['getDrawingOrder'](_0xb02922,_0x3f3dc4),_0x35aaf7=_0x593eed[_0x20cebf(0x22d)](_0x262d13);if(_0x48e3ce['getObjectIncludeInGroup'](_0x43f23b)||!this['_drawingManagerService'][_0x20cebf(0x459)]())continue;let _0x365cc8=this['_sheetsShapeService']['getShapeModel'](_0xb02922,_0x3f3dc4,_0x262d13);if(!_0x365cc8)continue;let _0x5c7903=new _0x4da10f(_0x43f23b,{...(0x0,_0x8713ee['isConnectorShape'])(_0x365cc8[_0x20cebf(0x1bc)]())?{..._0x5c58d9,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x5c58d9},'zIndex':_0x35aaf7===-0x1?_0x593eed[_0x20cebf(0x22a)]-0x1:_0x35aaf7,'shapeModel':_0x365cc8,'localeService':this[_0x20cebf(0x46b)],'shapeId':_0x262d13,'unitId':_0xb02922,'subUnitId':_0x3f3dc4,'visible':_0x4a5a94!==!0x0,'evented':_0xb0b2c6!==!0x1});_0x48e3ce[_0x20cebf(0x33a)](_0x5c7903,_0x5663a2[_0x20cebf(0x3da)]),_0x38cb86&&_0x48e3ce[_0x20cebf(0x281)](_0x5c7903),_0x8d6543&&(0x0,_0x5e919d[_0x20cebf(0x2da)])({'drawingId':_0x8d6543,'unitId':_0xb02922,'subUnitId':_0x3f3dc4},_0x5c7903,_0x48e3ce,this['_drawingManagerService']),_0x40cbf5!=null&&_0x5c7903[_0x20cebf(0x273)](_0x40cbf5),_0x173bd3!=null&&_0x5c7903[_0x20cebf(0x27e)](_0x173bd3);let _0x416869=this['_loadShapePictureFill'](_0x5c7903,_0x365cc8['getShapeData']());if(_0x416869){var _0x5dc21d;_0x7ed450==null||(_0x5dc21d=_0x7ed450['resourceCollector'])==null||_0x5dc21d[_0x20cebf(0x39c)](_0x416869);}_0x378bdb[_0x20cebf(0x1c2)](_0x5c7903);}return _0x378bdb;}[_0x30c533(0x2c5)](_0x1df37f){const _0x5e0a7a=_0x30c533;let _0xc30096=_0x1df37f[_0x5e0a7a(0x3c9)][_0x5e0a7a(0x2cc)](),_0x5822c5=_0xc30096[_0x5e0a7a(0x3c1)];if(!_0x5822c5||_0x5822c5['fillType']!==_0x8713ee[_0x5e0a7a(0x363)][_0x5e0a7a(0x40e)]||!_0x5822c5['fillImageSource']){_0x1df37f['setFillImage'](void 0x0);return;}this['_loadShapePictureFill'](_0x1df37f,_0xc30096);}['_loadShapePictureFill'](_0x4a3672,_0x376477){const _0x56b07b=_0x30c533;var _0x38d36a;let _0xdbdcf6=_0x376477[_0x56b07b(0x3c1)];if(!_0xdbdcf6||_0xdbdcf6[_0x56b07b(0x31a)]!==_0x8713ee[_0x56b07b(0x363)][_0x56b07b(0x40e)]||!_0xdbdcf6['fillImageSource'])return;let _0x34d97f=_0xdbdcf6[_0x56b07b(0x42f)],_0x17a79d=(_0x38d36a=_0xdbdcf6['fillImageSourceType'])==null?_0x8713ee[_0x56b07b(0x391)][_0x56b07b(0x352)]:_0x38d36a,_0x1c881f=this['_imageIoService'][_0x56b07b(0x491)](_0x34d97f,_0x17a79d);if(_0x1c881f){_0x4a3672[_0x56b07b(0x39f)](_0x1c881f);return;}return this[_0x56b07b(0x3b2)](_0x4a3672,_0x34d97f,_0x17a79d);}async[_0x30c533(0x3b2)](_0x14e815,_0x3a7516,_0x43139b){const _0x30a661=_0x30c533;let _0x1a8d8e;try{if(_0x43139b===_0x8713ee['ImageSourceTypeEnum'][_0x30a661(0x38d)])_0x1a8d8e=await this[_0x30a661(0x496)][_0x30a661(0x191)](_0x3a7516);else{if(_0x43139b===_0x8713ee['ImageSourceTypeEnum'][_0x30a661(0x352)])try{_0x1a8d8e=await this[_0x30a661(0x444)]['getImage'](_0x3a7516);}catch{_0x1a8d8e=_0x3a7516;}else _0x1a8d8e=_0x3a7516;}}catch(_0x10845a){console[_0x30a661(0x2af)](_0x30a661(0x387),_0x10845a);return;}await new Promise(_0x491a6d=>{const _0x390272=_0x30a661;let _0x2c6255=new window['Image']();_0x2c6255[_0x390272(0x318)]=()=>{const _0x4b5886=_0x390272;this[_0x4b5886(0x496)][_0x4b5886(0x476)](_0x3a7516,_0x43139b,_0x2c6255),_0x14e815[_0x4b5886(0x39f)](_0x2c6255),_0x491a6d();},_0x2c6255['onerror']=()=>{const _0x4cdaa5=_0x390272;console[_0x4cdaa5(0x2af)](_0x4cdaa5(0x2d9),_0x3a7516),_0x491a6d();},_0x2c6255[_0x390272(0x1be)]=_0x1a8d8e;});}};_0x568a7c=_0x164126([_0x4fa083(0x0,_0x2c1288['IDrawingManagerService']),_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xe63f5c[_0x30c533(0x3dc)])),_0x4fa083(0x2,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xa2ae07[_0x30c533(0x18f)])),_0x4fa083(0x3,_0xa2ae07[_0x30c533(0x468)]),_0x4fa083(0x4,_0xa2ae07[_0x30c533(0x406)])],_0x568a7c);let _0x3dd7d6=class extends _0xa2ae07[_0x30c533(0x48b)]{constructor(_0x182acc,_0x5b10a6,_0x209efc,_0x5c778b,_0x47cc8b,_0x35894d){const _0x3912ef=_0x30c533;super(),this[_0x3912ef(0x32f)]=_0x182acc,this[_0x3912ef(0x2c4)]=_0x5b10a6,this[_0x3912ef(0x2a6)]=_0x209efc,this['_sheetDrawingShapeRenderController']=_0x5c778b,this[_0x3912ef(0x19f)]=_0x47cc8b,this[_0x3912ef(0x1d7)]=_0x35894d,_0x54eac0(this,'_activeShapeId',null),_0x54eac0(this,_0x3912ef(0x3a1),null),_0x54eac0(this,_0x3912ef(0x379),null),_0x54eac0(this,'_activeShapeAdjustPointList',void 0x0),_0x54eac0(this,'_shapes',[]),_0x54eac0(this,_0x3912ef(0x310),0x0),_0x54eac0(this,_0x3912ef(0x40a),0x0),_0x54eac0(this,_0x3912ef(0x1f5),0x0),_0x54eac0(this,_0x3912ef(0x332),0x0),_0x54eac0(this,_0x3912ef(0x297),!0x1),_0x54eac0(this,_0x3912ef(0x42a),void 0x0),_0x54eac0(this,_0x3912ef(0x271),void 0x0),_0x54eac0(this,'_adjHandlerPointerMove',void 0x0),_0x54eac0(this,'_adjHandlerPointerUp',void 0x0),_0x54eac0(this,_0x3912ef(0x20c),!0x1),this[_0x3912ef(0x1b0)](),this[_0x3912ef(0x479)]();}['_getShapeAdjustPointListById'](_0x2afa52,_0x3f0b4f,_0x3625c3){const _0x55e6eb=_0x30c533;let _0x185a78=this[_0x55e6eb(0x2c4)][_0x55e6eb(0x2f4)](_0x2afa52,_0x3f0b4f,_0x3625c3);if(_0x185a78)return _0x185a78[_0x55e6eb(0x3a9)]();}[_0x30c533(0x455)](){this['_clearShapeAdjustControls']();}[_0x30c533(0x284)](){this['_updateShapeAdjustControls'](!0x0);}[_0x30c533(0x224)](_0x141ad2){const _0x373ca2=_0x30c533;this[_0x373ca2(0x20c)]=_0x141ad2;}[_0x30c533(0x2d2)](_0x70d6a1,_0x5d1534,_0x20a4fb,_0x1c49e0){const _0x401df2=_0x30c533;let _0x31d8f2=this[_0x401df2(0x2c4)][_0x401df2(0x2f4)](_0x70d6a1,_0x5d1534,_0x20a4fb);if(_0x31d8f2)return _0x31d8f2[_0x401df2(0x1af)](_0x1c49e0);}[_0x30c533(0x376)](_0x3fcdf2=!0x1){const _0x36738c=_0x30c533;if(this['_unitId']===null||this[_0x36738c(0x379)]===null||this[_0x36738c(0x200)]===null)return;let _0x2aeef4=this['_renderManagerService']['getRenderById'](this[_0x36738c(0x3a1)]);if(!_0x2aeef4||!_0x2aeef4[_0x36738c(0x3c2)](_0xe965b[_0x36738c(0x309)])['getCurrentSkeleton']())return;let {scene:_0x6f4ff6}=_0x2aeef4,_0x4d5ecb={'unitId':this['_unitId'],'subUnitId':this[_0x36738c(0x379)],'drawingId':this['_activeShapeId']},_0x3a6cad=this[_0x36738c(0x32f)]['getDrawingByParam'](_0x4d5ecb),{transform:_0x20c5cb}=_0x3a6cad;if(!_0x20c5cb||_0x3a6cad[_0x36738c(0x2f0)]!==_0xa2ae07[_0x36738c(0x392)]['DRAWING_SHAPE'])return;let {left:_0x25361b,top:_0x1dcadc,width:_0x575081,height:_0x59ff7b,flipX:_0x50f153,flipY:_0x320052,angle:_0x5f18e8=0x0}=_0x20c5cb;if(_0x25361b===void 0x0||_0x1dcadc===void 0x0)return;_0x3fcdf2&&(this['_activeShapeAdjustPointList']=this[_0x36738c(0x3aa)](this[_0x36738c(0x3a1)],this['_subUnitId'],this[_0x36738c(0x200)]));let _0x307eb0=this[_0x36738c(0x386)];for(let _0x2552c7=0x0;_0x2552c7<_0x307eb0['length'];_0x2552c7++){let _0x3dfce8=_0x307eb0[_0x2552c7],_0x5ef66d=_0x3dfce8['x'],_0x3c21d1=_0x3dfce8['y'];if(_0x50f153&&(_0x5ef66d=(_0x575081||0x0)-_0x5ef66d),_0x320052&&(_0x3c21d1=(_0x59ff7b||0x0)-_0x3c21d1),_0x5f18e8!==0x0){let _0x2c3a76=(_0x575081||0x0)/0x2,_0x415909=(_0x59ff7b||0x0)/0x2,_0x4502ee=_0x5f18e8*Math['PI']/0xb4,_0x9f8f29=Math[_0x36738c(0x40d)](_0x4502ee),_0x3311c9=Math[_0x36738c(0x3ba)](_0x4502ee),_0x1f5ba3=_0x5ef66d-_0x2c3a76,_0x78cb91=_0x3c21d1-_0x415909;_0x5ef66d=_0x2c3a76+(_0x1f5ba3*_0x9f8f29-_0x78cb91*_0x3311c9),_0x3c21d1=_0x415909+(_0x1f5ba3*_0x3311c9+_0x78cb91*_0x9f8f29);}let _0xaa1815={'x':_0x5ef66d,'y':_0x3c21d1,'adjName':_0x3dfce8[_0x36738c(0x357)]};this['_addShapeAdjustControl'](_0x6f4ff6,_0xaa1815,_0xaa1815['adjName'],_0x25361b,_0x1dcadc,this[_0x36738c(0x3a1)],this[_0x36738c(0x379)]);}}[_0x30c533(0x27b)](_0x1aa529=!0x1){const _0xdfbb89=_0x30c533;_0x1aa529&&(this[_0xdfbb89(0x3e2)](),this[_0xdfbb89(0x376)](_0x1aa529));}['_addShapeAdjustControl'](_0x32ba5e,_0x38939b,_0x135ecb,_0x15a8d0,_0x6a250c,_0x250662,_0x320bd0){const _0x22b5a1=_0x30c533;if(!this['_activeShapeId'])return;let _0xb40591=_0x32ba5e[_0x22b5a1(0x257)]('shape-adjust-point-'+this[_0x22b5a1(0x200)]+'-'+_0x135ecb);if(_0xb40591){_0xb40591[_0x22b5a1(0x2d0)]({'left':_0x38939b['x']+_0x15a8d0-_0x8713ee[_0x22b5a1(0x27f)]['adjHandleSize'],'top':_0x38939b['y']+_0x6a250c-_0x8713ee[_0x22b5a1(0x27f)]['adjHandleSize']});return;}let _0x5eb31e={'left':_0x38939b['x']+_0x15a8d0-_0x8713ee[_0x22b5a1(0x27f)][_0x22b5a1(0x456)],'top':_0x38939b['y']+_0x6a250c-_0x8713ee[_0x22b5a1(0x27f)][_0x22b5a1(0x456)],'adjName':_0x135ecb,'shapeId':this[_0x22b5a1(0x200)],'unitId':_0x250662,'subUnitId':_0x320bd0,'width':_0x8713ee[_0x22b5a1(0x27f)][_0x22b5a1(0x456)]+0x8,'height':_0x8713ee['ShapeDefaultConfig']['adjHandleSize']+0x8,'zIndex':_0x5663a2[_0x22b5a1(0x3da)]+0x1,'evented':!0x0},_0xb9ed25=new _0x44d757(_0x22b5a1(0x447)+this[_0x22b5a1(0x200)]+'-'+_0x135ecb,_0x5eb31e);this['_shapes'][_0x22b5a1(0x1c2)](_0xb9ed25),this[_0x22b5a1(0x2ee)](_0xb9ed25,_0x32ba5e,_0x135ecb),_0x32ba5e['addObject'](_0xb9ed25,_0x5663a2[_0x22b5a1(0x3da)]+0x1);}[_0x30c533(0x3e2)](){const _0xa077ef=_0x30c533;this[_0xa077ef(0x461)][_0xa077ef(0x22a)]!==0x0&&(this[_0xa077ef(0x461)][_0xa077ef(0x37b)](_0x46857d=>{const _0x300320=_0xa077ef;_0x46857d[_0x300320(0x1e9)]();}),this[_0xa077ef(0x461)]=[]);}[_0x30c533(0x49d)](){const _0x16ec18=_0x30c533;this[_0x16ec18(0x376)]();}[_0x30c533(0x46e)](_0x3e2b52,_0x5a8491){const _0x4a6e9d=_0x30c533;var _0x39680a;let _0x1d671e={'x':0x0,'y':0x0};if(!_0x3e2b52||!_0x5a8491)return _0x1d671e;let _0x4b3af9=this[_0x4a6e9d(0x2a6)][_0x4a6e9d(0x3f7)](_0x3e2b52);if(!_0x4b3af9||!_0x4b3af9['with'](_0xe965b['SheetSkeletonManagerService'])['getSkeleton'](_0x5a8491))return _0x1d671e;let _0x3f73d3=_0x4b3af9[_0x4a6e9d(0x3c2)](_0xe965b['SheetScrollManagerService']),_0x71504b=_0x3f73d3==null?void 0x0:_0x3f73d3[_0x4a6e9d(0x453)]();if(!_0x71504b)return _0x1d671e;let _0x336226=(_0x39680a=this[_0x4a6e9d(0x19f)]['getUnit'](_0x3e2b52))==null?void 0x0:_0x39680a['getSheetBySheetId'](_0x5a8491);if(!_0x336226)return _0x1d671e;let _0x49c521=(0x0,_0xe965b[_0x4a6e9d(0x262)])(_0x71504b['sheetViewStartRow'],_0x71504b[_0x4a6e9d(0x27c)],_0x4b3af9[_0x4a6e9d(0x1e7)],_0x336226);return _0x49c521?{'x':_0x49c521[_0x4a6e9d(0x3d4)],'y':_0x49c521[_0x4a6e9d(0x3fd)]}:_0x1d671e;}['_getZoomRatio'](_0x955695,_0x446d03){const _0x1c54ca=_0x30c533;var _0x5eaffe,_0x5989f3;let _0x306697=(_0x5eaffe=this[_0x1c54ca(0x19f)]['getUnit'](_0x955695))==null?void 0x0:_0x5eaffe[_0x1c54ca(0x326)](_0x446d03);return(_0x5989f3=_0x306697==null?void 0x0:_0x306697[_0x1c54ca(0x319)]())==null?0x1:_0x5989f3;}[_0x30c533(0x2ee)](_0x205df8,_0x352ede,_0x2254ae){const _0x37b4cf=_0x30c533;this[_0x37b4cf(0x40b)]((0x0,_0xa2ae07[_0x37b4cf(0x24e)])(_0x205df8['onPointerDown$'][_0x37b4cf(0x1db)]((_0xff51ac,_0x2a76a9)=>{const _0x31e4e0=_0x37b4cf;var _0x25630b,_0x30a56e,_0x4f6b1a,_0x1cb03d;let _0x45cb47=_0x205df8['getDrawingSearch']();this['_activeAdjustInfo']=this[_0x31e4e0(0x2d2)](_0x45cb47[_0x31e4e0(0x367)],_0x45cb47[_0x31e4e0(0x481)],_0x45cb47[_0x31e4e0(0x18a)],_0x2254ae),this[_0x31e4e0(0x271)]=this[_0x31e4e0(0x2c4)]['getShapeModel'](_0x45cb47['unitId'],_0x45cb47['subUnitId'],_0x45cb47['drawingId']);let _0x52789b=this[_0x31e4e0(0x32f)]['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this[_0x31e4e0(0x379)],'drawingId':this[_0x31e4e0(0x200)]}),{transform:_0x20f7bc}=_0x52789b;if(_0x20f7bc){let {left:_0x3e4948,top:_0x4d662c,width:_0x376535,height:_0x3b1df2}=_0x20f7bc;this['_baseShapeLeft']=_0x3e4948||0x0,this[_0x31e4e0(0x40a)]=_0x4d662c||0x0,this['_baseShapeWidth']=_0x376535||0x0,this[_0x31e4e0(0x332)]=_0x3b1df2||0x0;}let _0x4c96df=!!((_0x25630b=_0x52789b[_0x31e4e0(0x25d)])!=null&&_0x25630b['flipX']),_0xf825fb=!!((_0x30a56e=_0x52789b[_0x31e4e0(0x25d)])!=null&&_0x30a56e[_0x31e4e0(0x2e6)]),_0x131c86=((_0x4f6b1a=_0x52789b[_0x31e4e0(0x25d)])==null?void 0x0:_0x4f6b1a[_0x31e4e0(0x1cc)])||0x0;this[_0x31e4e0(0x297)]=!0x0,_0x352ede[_0x31e4e0(0x412)]();let _0x21632b=(_0x1cb03d=this['_activeShapeModel'])==null?void 0x0:_0x1cb03d[_0x31e4e0(0x4a9)](_0x2254ae),_0x23120a={[_0x2254ae]:_0x21632b};this[_0x31e4e0(0x1eb)]=_0x352ede[_0x31e4e0(0x18e)][_0x31e4e0(0x1db)]((_0x3d0d5c,_0x25ad4e)=>{const _0x1e5979=_0x31e4e0;if(!this['_isStartAdjusting'])return;let {offsetX:_0x4de4af,offsetY:_0x261968}=_0x3d0d5c,_0x38312d=this[_0x1e5979(0x42a)];if(this[_0x1e5979(0x271)]&&_0x38312d){_0x352ede[_0x1e5979(0x412)](),_0x352ede['setCursor'](_0x5663a2[_0x1e5979(0x383)][_0x1e5979(0x242)]);let _0x5458f2={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0x1e5979(0x332)]},_0x35ca29=this[_0x1e5979(0x46e)](this['_unitId'],this[_0x1e5979(0x379)]),_0x4c1b90=this[_0x1e5979(0x227)](this[_0x1e5979(0x3a1)],this[_0x1e5979(0x379)]),_0x5e5d93=_0x4de4af/_0x4c1b90+_0x35ca29['x']-this[_0x1e5979(0x310)],_0x498bce=_0x261968/_0x4c1b90+_0x35ca29['y']-this['_baseShapeTop'];if(_0x131c86!==0x0){let _0x387576=this['_baseShapeWidth']/0x2,_0x2a1bdc=this['_baseShapeHeight']/0x2,_0x5bb8a7=_0x131c86*Math['PI']/0xb4,_0x1629a9=Math[_0x1e5979(0x40d)](_0x5bb8a7),_0x376f57=Math[_0x1e5979(0x3ba)](_0x5bb8a7),_0x2a6348=_0x5e5d93-_0x387576,_0x39c5ae=_0x498bce-_0x2a1bdc;_0x5e5d93=_0x387576+(_0x2a6348*_0x1629a9+_0x39c5ae*_0x376f57),_0x498bce=_0x2a1bdc+(-_0x2a6348*_0x376f57+_0x39c5ae*_0x1629a9);}_0x4c96df&&(_0x5e5d93=this[_0x1e5979(0x1f5)]-_0x5e5d93),_0xf825fb&&(_0x498bce=this[_0x1e5979(0x332)]-_0x498bce);let _0x3600b2={'x':_0x5e5d93,'y':_0x498bce},_0x5c444d=this[_0x1e5979(0x271)]['calcAdjValue'](_0x5458f2,_0x3600b2,_0x38312d,_0x4c96df,_0xf825fb),_0x3a266d=_0x38312d[_0x1e5979(0x1d4)]||_0x38312d[_0x1e5979(0x342)]||_0x38312d['gdRefAng']||_0x38312d[_0x1e5979(0x296)];if(_0x3a266d===void 0x0)return;this[_0x1e5979(0x271)][_0x1e5979(0x361)](_0x3a266d,_0x5c444d);let _0x1b490a=this[_0x1e5979(0x32f)][_0x1e5979(0x3b1)]({'unitId':_0x45cb47[_0x1e5979(0x367)],'subUnitId':_0x45cb47['subUnitId'],'drawingId':_0x45cb47[_0x1e5979(0x18a)]});_0x1b490a&&(this[_0x1e5979(0x240)][_0x1e5979(0x3c3)](_0x1b490a,_0x352ede),this[_0x1e5979(0x386)]=this['_getShapeAdjustPointListById'](_0x45cb47[_0x1e5979(0x367)],_0x45cb47[_0x1e5979(0x481)],_0x45cb47[_0x1e5979(0x18a)]),this[_0x1e5979(0x49d)]());}_0x25ad4e[_0x1e5979(0x3b6)]();}),this['_adjHandlerPointerUp']=_0x352ede['onPointerUp$'][_0x31e4e0(0x1db)]((_0x1298d5,_0x4074d5)=>{const _0x5516e3=_0x31e4e0;this[_0x5516e3(0x1eb)][_0x5516e3(0x241)](),this[_0x5516e3(0x217)]['unsubscribe'](),_0x352ede[_0x5516e3(0x2b6)]();let _0x3a56ed=this['_activeAdjustInfo'];if(_0x3a56ed){let _0xf7c9ff=_0x45cb47['unitId'],_0x4950d6=_0x45cb47[_0x5516e3(0x481)],_0x13abe9=_0x45cb47['drawingId'],_0x43a0d8=_0x3a56ed[_0x5516e3(0x1d4)]||_0x3a56ed['gdRefY']||_0x3a56ed[_0x5516e3(0x3db)]||_0x3a56ed[_0x5516e3(0x296)];if(_0x43a0d8!==void 0x0){var _0x255b4b;let _0x589441=(_0x255b4b=this[_0x5516e3(0x271)])==null?void 0x0:_0x255b4b[_0x5516e3(0x4a9)](_0x43a0d8);_0x589441!==void 0x0&&_0x2a12a7(this[_0x5516e3(0x1d7)],_0xf7c9ff,_0x4950d6,_0x13abe9,{'oldShapeData':{'adjustValues':_0x23120a}},{'adjustValues':{[_0x43a0d8]:_0x589441}});}}this['_activeAdjustInfo']=void 0x0,this[_0x5516e3(0x271)]=void 0x0,this[_0x5516e3(0x297)]=!0x1,_0x4074d5[_0x5516e3(0x3b6)](),_0x352ede[_0x5516e3(0x362)]();}),_0x2a76a9['stopPropagation']();})));}['_registerDrawingMoveHandler'](){const _0x5b9603=_0x30c533;let _0x4828f0=this[_0x5b9603(0x19f)][_0x5b9603(0x189)](_0xa2ae07[_0x5b9603(0x44b)]['UNIVER_SHEET']);this['disposeWithMe'](_0x4828f0[_0x5b9603(0x2a9)]((0x0,_0x50bd3e[_0x5b9603(0x39e)])(_0x4eb1fd=>_0x4eb1fd?_0x4eb1fd['activeSheet$']['pipe']((0x0,_0x50bd3e[_0x5b9603(0x39e)])(_0x43b78e=>{const _0x219b6c=_0x5b9603;if(!_0x43b78e)return _0x50bd3e[_0x219b6c(0x331)];let _0xa53b98=_0x4eb1fd[_0x219b6c(0x22e)](),_0x44b9ed=this[_0x219b6c(0x2a6)]['getRenderById'](_0xa53b98),_0x2d9a47=_0x44b9ed==null?void 0x0:_0x44b9ed[_0x219b6c(0x1e7)];return _0x2d9a47?(0x0,_0x50bd3e['of'])(_0x2d9a47):_0x50bd3e[_0x219b6c(0x331)];})):_0x50bd3e[_0x5b9603(0x331)]))[_0x5b9603(0x2ba)](_0x44818e=>{const _0x29a9ae=_0x5b9603;let _0x5bd06b=_0x44818e[_0x29a9ae(0x300)]();this[_0x29a9ae(0x40b)](_0x44818e['onPointerMove$'][_0x29a9ae(0x1db)](()=>{const _0x460792=_0x29a9ae;this[_0x460792(0x20c)];})),this[_0x29a9ae(0x40b)](_0x5bd06b['changeStart$'][_0x29a9ae(0x2ba)](_0x20db06=>{const _0x45fabc=_0x29a9ae;let {objects:_0x21956a}=_0x20db06;this[_0x45fabc(0x376)](),_0x21956a!==null&&_0x21956a[_0x45fabc(0x2ab)]===0x1&&_0x21956a['values']()['next']()[_0x45fabc(0x19e)]instanceof _0x4da10f&&this[_0x45fabc(0x224)](!0x0);})),this['disposeWithMe'](_0x5bd06b[_0x29a9ae(0x1e4)]['subscribe'](()=>{const _0x449e44=_0x29a9ae;this[_0x449e44(0x20c)]&&this[_0x449e44(0x3e2)]();})),this['disposeWithMe'](_0x44818e[_0x29a9ae(0x260)][_0x29a9ae(0x1db)](()=>{const _0xabfdeb=_0x29a9ae;this[_0xabfdeb(0x20c)]&&(this['setShouldShowAdjust'](!0x1),this[_0xabfdeb(0x376)]());})),this['disposeWithMe'](_0x5bd06b[_0x29a9ae(0x274)]['subscribe'](()=>{const _0x17b45a=_0x29a9ae;this['_unitId']&&this[_0x17b45a(0x379)]&&this[_0x17b45a(0x200)]&&this[_0x17b45a(0x32f)][_0x17b45a(0x3b1)]({'unitId':this[_0x17b45a(0x3a1)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x17b45a(0x200)]})&&(this[_0x17b45a(0x386)]=this['_getShapeAdjustPointListById'](this[_0x17b45a(0x3a1)],this[_0x17b45a(0x379)],this[_0x17b45a(0x200)]),this[_0x17b45a(0x49d)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x5f06b8=_0x30c533;this[_0x5f06b8(0x40b)](this['_drawingManagerService'][_0x5f06b8(0x46c)]['subscribe'](_0x561a85=>{const _0x249ffb=_0x5f06b8;if(_0x561a85[_0x249ffb(0x22a)]===0x1){let _0x8717fa=_0x561a85[0x0];if(_0x8717fa[_0x249ffb(0x2f0)]===_0xa2ae07[_0x249ffb(0x392)][_0x249ffb(0x1c8)]){this['_activeShapeId']=_0x8717fa[_0x249ffb(0x18a)];let {unitId:_0x5e60fd,subUnitId:_0xd1b2c8}=_0x8717fa;this[_0x249ffb(0x386)]=this[_0x249ffb(0x3aa)](_0x5e60fd,_0xd1b2c8,this[_0x249ffb(0x200)]),this[_0x249ffb(0x3a1)]=_0x5e60fd,this['_subUnitId']=_0xd1b2c8,this[_0x249ffb(0x3e2)](),this[_0x249ffb(0x376)]();}else this['_activeShapeId']=null,this[_0x249ffb(0x386)]=void 0x0,this['_unitId']=null,this[_0x249ffb(0x379)]=null,this[_0x249ffb(0x3e2)]();}(_0x561a85[_0x249ffb(0x22a)]>0x1||_0x561a85[_0x249ffb(0x22a)]===0x0)&&(this['_activeShapeId']=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x249ffb(0x3a1)]=null,this[_0x249ffb(0x379)]=null,this['_clearShapeAdjustControls']());})),this['disposeWithMe'](this[_0x5f06b8(0x32f)]['update$'][_0x5f06b8(0x2ba)](_0x33127a=>{const _0x23544a=_0x5f06b8;if(_0x33127a[_0x23544a(0x22a)]===0x1){var _0x2bd045;let _0x2a71f6=_0x33127a[0x0];((_0x2bd045=this[_0x23544a(0x32f)][_0x23544a(0x3b1)](_0x2a71f6))==null?void 0x0:_0x2bd045[_0x23544a(0x2f0)])===_0xa2ae07['DrawingTypeEnum'][_0x23544a(0x1c8)]&&this[_0x23544a(0x27b)](!0x0);}})),this[_0x5f06b8(0x40b)](this[_0x5f06b8(0x32f)][_0x5f06b8(0x246)]['subscribe'](_0x2a8648=>{const _0x4f0905=_0x5f06b8;for(let _0x3a87f2 of _0x2a8648)this['_activeShapeId']===_0x3a87f2['drawingId']&&(this[_0x4f0905(0x200)]=null,this[_0x4f0905(0x386)]=void 0x0,this[_0x4f0905(0x3a1)]=null,this[_0x4f0905(0x379)]=null,this[_0x4f0905(0x3e2)]());}));}};_0x3dd7d6=_0x164126([_0x4fa083(0x0,_0x2c1288[_0x30c533(0x21e)]),_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xe63f5c[_0x30c533(0x3dc)])),_0x4fa083(0x2,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x5663a2['IRenderManagerService'])),_0x4fa083(0x3,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x568a7c)),_0x4fa083(0x4,_0xa2ae07['IUniverInstanceService']),_0x4fa083(0x5,_0xa2ae07[_0x30c533(0x24b)])],_0x3dd7d6);let _0x2f0931={'id':'drawing.operation.set-drawing-active','type':_0xa2ae07[_0x30c533(0x1ba)]['OPERATION'],'handler':(_0x15a7f0,_0x1931e9)=>{const _0x134871=_0x30c533;let _0x50288b=_0x15a7f0[_0x134871(0x1a3)](_0x2c1288[_0x134871(0x21e)]),_0xd88cfc=_0x15a7f0[_0x134871(0x1a3)](_0x5663a2[_0x134871(0x37f)]),_0x186096=_0x15a7f0[_0x134871(0x1a3)](_0x3dd7d6);if(_0x1931e9==null)return!0x0;if(_0x1931e9[_0x134871(0x22a)]>0x0){var _0x2f8b38;let _0x55f8d3=(_0x2f8b38=_0xd88cfc[_0x134871(0x3f7)](_0x1931e9[0x0][_0x134871(0x367)]))==null?void 0x0:_0x2f8b38[_0x134871(0x1e7)];if(_0x55f8d3){let {unitId:_0x47f6ec,subUnitId:_0x4068ea,drawingId:_0x538304}=_0x1931e9[0x0],_0x5674d6=(0x0,_0x2c1288[_0x134871(0x44d)])({'unitId':_0x47f6ec,'subUnitId':_0x4068ea,'drawingId':_0x538304},void 0x0),_0x2d25ed=_0x55f8d3[_0x134871(0x257)](_0x5674d6);if(_0x2d25ed){var _0xf53af6;(_0xf53af6=_0xd88cfc[_0x134871(0x3f7)](_0x1931e9[0x0][_0x134871(0x367)]))==null||(_0xf53af6=_0xf53af6['scene'][_0x134871(0x1ac)]())==null||_0xf53af6[_0x134871(0x334)](_0x2d25ed);}}_0x50288b['focusDrawing'](_0x1931e9),_0x186096[_0x134871(0x224)](!0x1);}return!0x0;}},_0x9938a3={'type':_0xa2ae07[_0x30c533(0x1ba)][_0x30c533(0x426)],'id':_0x30c533(0x1c5),'handler':async(_0x22aaf0,_0x172d32)=>{const _0x171434=_0x30c533;let _0x60e82b=(0x0,_0x2042f3[_0x171434(0x308)])(_0x22aaf0['get'](_0xa2ae07[_0x171434(0x335)]));if(!_0x60e82b)return!0x1;let _0x1b174c=_0x22aaf0[_0x171434(0x1a3)](_0x2042f3['SheetsSelectionsService'])[_0x171434(0x23f)]();if(!_0x1b174c)return!0x1;let _0x486b55=_0x22aaf0[_0x171434(0x1a3)](_0xa2ae07[_0x171434(0x24b)]),{unitId:_0x360735,subUnitId:_0x1e9e57}=_0x60e82b,{value:_0x54c834,enhanceParams:_0x32aabb}=_0x172d32,{range:_0x379470}=_0x1b174c,_0x1cc53f={'unitId':_0x360735,'subUnitId':_0x1e9e57,'shapeType':_0x54c834,'range':_0x379470,'shapeId':(0x0,_0xa2ae07['generateRandomId'])()};if(_0x32aabb){let _0x1ac9e=(0x0,_0x8713ee['isConnectorShape'])(_0x54c834),_0x1596d2=_0x54c834===_0x8713ee[_0x171434(0x1fe)][_0x171434(0x47b)];_0x1ac9e&&(_0x32aabb[_0x171434(0x1e2)]||_0x32aabb['endArrow'])&&(_0x1cc53f[_0x171434(0x2d6)]={'ln':{'startArrow':_0x32aabb[_0x171434(0x1e2)]?{'type':_0x8713ee[_0x171434(0x289)][_0x171434(0x269)],'size':_0x8713ee[_0x171434(0x2e0)][_0x171434(0x34c)]}:void 0x0,'endArrow':_0x32aabb['endArrow']?{'type':_0x8713ee[_0x171434(0x289)][_0x171434(0x269)],'size':_0x8713ee[_0x171434(0x2e0)][_0x171434(0x295)]}:void 0x0}}),_0x1596d2&&(_0x32aabb[_0x171434(0x203)]||_0x32aabb['vertical'])&&(_0x1cc53f['shapeData']=(0x0,_0x2a5532[_0x171434(0x420)])({'fill':{'fillType':_0x8713ee[_0x171434(0x363)][_0x171434(0x315)],'color':_0x171434(0x288)},'isHorizontal':!!_0x32aabb['horizontal'],'stroke':{'lineStrokeType':_0x8713ee[_0x171434(0x43c)][_0x171434(0x2c2)],'width':0x1,'color':_0x171434(0x42c)}}));}let _0x361fe3=_0x486b55[_0x171434(0x467)](_0xe63f5c[_0x171434(0x448)]['id'],_0x1cc53f);return setTimeout(()=>{const _0x546a00=_0x171434;_0x486b55['executeCommand'](_0x2f0931['id'],[{'unitId':_0x360735,'subUnitId':_0x1e9e57,'drawingId':_0x1cc53f[_0x546a00(0x454)]}]);},0xc8),_0x361fe3;}},_0x24cb15=_0x30c533(0x47a),_0x4512d8=_0x30c533(0x301),_0x339a89='sheet.shape.floating-toolbar',_0x5a56de=(0x0,_0xa2ae07['createInternalEditorID'])(_0x30c533(0x4a6)),_0x367d65=_0x30c533(0x3ea),_0xebe58f={'id':'sheet.operation.open-shape-object-list-panel','type':_0xa2ae07['CommandType'][_0x30c533(0x426)],'handler':(_0x2aa3da,_0xfd6e34)=>{const _0x6f394=_0x30c533;let _0x50475b=_0x2aa3da['get'](_0x23402e['ISidebarService']),_0x32dd5b=_0x2aa3da[_0x6f394(0x1a3)](_0xa2ae07[_0x6f394(0x18f)]),_0x2180b0=_0x2aa3da[_0x6f394(0x1a3)](_0xa2ae07[_0x6f394(0x335)]),_0x58fdc8=_0x2aa3da['get'](_0xa2ae07[_0x6f394(0x24b)]);return(0x0,_0x2042f3[_0x6f394(0x308)])(_0x2180b0)?(_0xfd6e34==null?void 0x0:_0xfd6e34[_0x6f394(0x19e)])===_0x6f394(0x3d8)?(_0x50475b[_0x6f394(0x3d8)](_0x4512d8),!0x0):(_0x50475b[_0x6f394(0x277)]({'id':_0x4512d8,'header':{'title':_0x32dd5b['t'](_0x6f394(0x247))},'children':{'label':_0x4512d8},'onClose':()=>{const _0x381a96=_0x6f394;_0x58fdc8[_0x381a96(0x467)](_0x2c1288['SetDrawingSelectedOperation']['id'],[]);},'width':0x168}),!0x0):!0x1;}},_0x319800=class extends _0xa2ae07[_0x30c533(0x48b)]{constructor(_0x3c1906,_0x3ec5d0){const _0x5ca1aa=_0x30c533;super(),this['_clipService']=_0x3c1906,this[_0x5ca1aa(0x32f)]=_0x3ec5d0,this[_0x5ca1aa(0x1a0)](),this['_clipService'][_0x5ca1aa(0x1dc)](!0x0),this[_0x5ca1aa(0x40b)]({'dispose':()=>this[_0x5ca1aa(0x3ff)][_0x5ca1aa(0x1dc)](!0x1)});}[_0x30c533(0x1a0)](){const _0x5d6674=_0x30c533;let _0x2117cf=this['_clipService'],_0x2ce18e=new Map(),_0x473ac1=_0x2117cf[_0x5d6674(0x219)]((_0x5de999,_0x1233bc,_0x467656,_0x52d625,_0x3faa2e)=>{const _0x218caf=_0x5d6674;let _0x333b75=_0x1233bc;if(_0x333b75===_0x8713ee[_0x218caf(0x1fe)]['None']||_0x1233bc===_0x218caf(0x2cb))return!0x1;try{let _0x424fa1=_0x2ce18e[_0x218caf(0x1a3)](_0x1233bc);return _0x424fa1||(_0x424fa1=new _0x8713ee[(_0x218caf(0x1a6))](_0x333b75,_0x218caf(0x489)+_0x1233bc),_0x2ce18e[_0x218caf(0x2d4)](_0x1233bc,_0x424fa1)),_0x3faa2e&&_0x424fa1['setShapeData']({'adjustValues':_0x3faa2e},!0x0),_0x424fa1[_0x218caf(0x3a8)]({'width':_0x467656,'height':_0x52d625}),_0x424fa1[_0x218caf(0x370)](_0x5de999,{'left':0x0,'top':0x0,'width':_0x467656,'height':_0x52d625});}catch{return!0x1;}});this[_0x5d6674(0x40b)](_0x473ac1),this['disposeWithMe']({'dispose':()=>_0x2ce18e['clear']()});}[_0x30c533(0x1a9)](_0x166ad4,_0x47a790,_0x322f33,_0x4a483f,_0x12e667){const _0x571c77=_0x30c533;let _0x27e561=this[_0x571c77(0x32f)]['getDrawingData'](_0x166ad4,_0x47a790);if(!_0x27e561[_0x322f33])return;let _0x5593d4={..._0x27e561[_0x322f33],'prstGeom':_0x4a483f,'adjustValues':_0x12e667};this[_0x571c77(0x32f)][_0x571c77(0x2d7)]([_0x5593d4]);}};_0x319800=_0x164126([_0x4fa083(0x0,(0x0,_0xa2ae07['Inject'])(_0x5e919d['DrawingImageClipService'])),_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x2c1288[_0x30c533(0x21e)]))],_0x319800);let _0x18c58e='sheet.shape.picker.component',_0x5365fe=_0x30c533(0x482);function _0x1891b8({onShapeClick:_0xb00ddb,excludeGroups:_0x3d5439}){const _0x5c71be=_0x30c533;return(0x0,_0x1fa7e6[_0x5c71be(0x1c9)])(_0x2a5532[_0x5c71be(0x317)],{'excludeGroups':_0x3d5439,'onShapeClick':_0xb00ddb,'scrollContainer':'parent'});}function _0x172a78(){const _0x56bd6f=_0x30c533;let _0x296dd9=(0x0,_0x23402e['useDependency'])(_0x2c1288[_0x56bd6f(0x21e)]),_0x1d75fb=(0x0,_0x23402e[_0x56bd6f(0x43d)])(_0x319800);return(0x0,_0x1fa7e6[_0x56bd6f(0x1c9)])(_0x2a5532[_0x56bd6f(0x3ab)],{'buttonLabel':_0x56bd6f(0x215),'excludeGroups':[_0x2a5532['ShapeGroupEnum'][_0x56bd6f(0x25b)]],'onShapeClick':_0x5d85c7=>{const _0x4002a1=_0x56bd6f;let _0x48f412=_0x296dd9[_0x4002a1(0x232)]()[_0x4002a1(0x2a7)](_0x18f956=>_0x18f956[_0x4002a1(0x2f0)]===_0xa2ae07[_0x4002a1(0x392)][_0x4002a1(0x2fd)]);if(!_0x48f412)return;let {unitId:_0x3269f2,subUnitId:_0x82cb95,drawingId:_0x3ff14d}=_0x48f412;_0x1d75fb['clipByShape'](_0x3269f2,_0x82cb95,_0x3ff14d,_0x5d85c7[_0x4002a1(0x38f)]);}});}function _0x1d657b(){const _0x2b1351=_0x30c533;let _0x3ad40e=(0x0,_0x23402e['useDependency'])(_0x23402e[_0x2b1351(0x478)]),_0x437f76=(0x0,_0x23402e[_0x2b1351(0x43d)])(_0x2c1288[_0x2b1351(0x21e)]),_0x676aaa=(0x0,_0x23402e[_0x2b1351(0x43d)])(_0xa2ae07[_0x2b1351(0x335)]),_0x137503=_0x437f76[_0x2b1351(0x232)]()[0x0],_0x37ab16=_0x137503?_0x676aaa['getUnitType'](_0x137503[_0x2b1351(0x367)]):void 0x0,_0x30c7f8=_0x37ab16===_0xa2ae07['UniverInstanceType']['UNIVER_DOC']?'doc.image-clip.shape-picker.component':_0x37ab16===_0xa2ae07[_0x2b1351(0x44b)][_0x2b1351(0x2b7)]?_0x5365fe:void 0x0,_0x707bb5=_0x30c7f8?_0x3ad40e['get'](_0x30c7f8):void 0x0;return _0x707bb5?(0x0,_0x1fa7e6[_0x2b1351(0x1c9)])(_0x707bb5,{}):null;}function _0x3d1388(){const _0x45b77d=_0x30c533;let _0x11be86=(0x0,_0x23402e['useDependency'])(_0xa2ae07['ICommandService']);return(0x0,_0x1fa7e6[_0x45b77d(0x1c9)])(_0x1891b8,{'onShapeClick':_0x37cd33=>{const _0x2c06e8=_0x45b77d;_0x11be86['executeCommand'](_0x9938a3['id'],{'value':_0x37cd33[_0x2c06e8(0x38f)],'enhanceParams':{'endArrow':_0x37cd33[_0x2c06e8(0x1c4)],'startArrow':_0x37cd33[_0x2c06e8(0x1e2)],'horizontal':_0x37cd33[_0x2c06e8(0x203)],'vertical':_0x37cd33[_0x2c06e8(0x48c)]}});}});}function _0x3dec83(_0x72f66f){const _0x5b22f3=_0x30c533;let _0x31d4c9=_0x72f66f['get'](_0xa2ae07['IUniverInstanceService']);return{'id':_0x9938a3['id'],'type':_0x23402e['MenuItemType'][_0x5b22f3(0x32e)],'selections':[{'label':{'name':_0x18c58e,'hoverable':!0x1,'selectable':!0x1,'props':{'id':_0x9938a3['id']}}}],'icon':'ShapeIcon','tooltip':_0x5b22f3(0x1d8),'activated$':(0x0,_0xe965b['deriveStateFromActiveSheet$'])(_0x31d4c9,!0x1,()=>new _0x50bd3e[(_0x5b22f3(0x31f))](_0x1c3da5=>{const _0x5a626c=_0x5b22f3;_0x1c3da5[_0x5a626c(0x466)](!0x1);})),'hidden$':(0x0,_0x23402e[_0x5b22f3(0x1e3)])(_0x72f66f,_0xa2ae07[_0x5b22f3(0x44b)][_0x5b22f3(0x2b7)]),'disabled$':(0x0,_0xe965b['getCurrentRangeDisable$'])(_0x72f66f)};}function _0x147461(_0x92d59){const _0x45242c=_0x30c533;let _0x461329=_0x92d59[_0x45242c(0x1a3)](_0xa2ae07[_0x45242c(0x335)]);return{'id':_0xebe58f['id'],'type':_0x23402e[_0x45242c(0x1ca)]['BUTTON'],'icon':_0x45242c(0x216),'title':'sheets-shape-ui.objectListPanel.open','tooltip':_0x45242c(0x46f),'activated$':(0x0,_0xe965b[_0x45242c(0x4a2)])(_0x461329,!0x1,()=>new _0x50bd3e[(_0x45242c(0x31f))](_0x22b3e4=>{_0x22b3e4['next'](!0x1);})),'hidden$':(0x0,_0x23402e[_0x45242c(0x1e3)])(_0x92d59,_0xa2ae07['UniverInstanceType'][_0x45242c(0x2b7)]),'disabled$':(0x0,_0xe965b[_0x45242c(0x1f1)])(_0x92d59)};}let _0x8aef12={[_0x23402e[_0x30c533(0x38c)][_0x30c533(0x304)]]:{[_0x9938a3['id']]:{'order':0x4,'menuItemFactory':_0x3dec83},[_0xebe58f['id']]:{'order':4.1,'menuItemFactory':_0x147461}}};var _0x3d8ba4=_0x30c533(0x428),_0x13a4b6=_0x30c533(0x20b);let _0x2ae476={'type':_0xa2ae07[_0x30c533(0x1ba)][_0x30c533(0x2e1)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}},_0x3a4b3e={'type':_0xa2ae07[_0x30c533(0x1ba)]['OPERATION'],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!0x0;}},_0x1a263c={};function _0x54df8b({ref:_0x28266f,..._0x524c1c}){const _0x347190=_0x30c533;let {icon:_0x347fdd,id:_0x522908,className:_0x22a0d2,extend:_0x408855,..._0xc18224}=_0x524c1c,_0xaf43be=('univerjs-icon\x20univerjs-icon-'+_0x522908+'\x20'+(_0x22a0d2||''))[_0x347190(0x29d)](),_0x4d0939=(0x0,_0x437a9d['useRef'])('_'+_0x425260());return _0x52fd02(_0x347fdd,''+_0x522908,{'defIds':_0x347fdd[_0x347190(0x3b9)],'idSuffix':_0x4d0939[_0x347190(0x28b)]},{'ref':_0x28266f,'className':_0xaf43be,..._0xc18224},_0x408855);}function _0x52fd02(_0x83b59f,_0x522f4e,_0x506538,_0x3cbb3f,_0x10e824){const _0x328a8d=_0x30c533;return(0x0,_0x437a9d[_0x328a8d(0x34e)])(_0x83b59f[_0x328a8d(0x201)],{'key':_0x522f4e,..._0x2e7c3b(_0x83b59f,_0x506538,_0x10e824),..._0x3cbb3f},(_0x387b8a(_0x83b59f,_0x506538)[_0x328a8d(0x35b)]||[])[_0x328a8d(0x45b)]((_0x59d325,_0x2c2561)=>_0x52fd02(_0x59d325,_0x522f4e+'-'+_0x83b59f[_0x328a8d(0x201)]+'-'+_0x2c2561,_0x506538,void 0x0,_0x10e824)));}function _0x2e7c3b(_0x52ceea,_0x41235b,_0x54bd85){const _0x451e71=_0x30c533;let _0x2f5ade={..._0x52ceea['attrs']};_0x54bd85!=null&&_0x54bd85[_0x451e71(0x290)]&&_0x2f5ade['fill']===_0x451e71(0x290)&&(_0x2f5ade[_0x451e71(0x3c1)]=_0x54bd85[_0x451e71(0x290)]),_0x54bd85!=null&&_0x54bd85[_0x451e71(0x290)]&&_0x2f5ade['stroke']===_0x451e71(0x290)&&(_0x2f5ade['stroke']=_0x54bd85[_0x451e71(0x290)]),_0x52ceea[_0x451e71(0x201)]==='mask'&&_0x2f5ade['id']&&(_0x2f5ade['id']+=_0x41235b[_0x451e71(0x320)]),Object[_0x451e71(0x3eb)](_0x2f5ade)[_0x451e71(0x37b)](([_0x2efac5,_0x2dd950])=>{const _0x5a23de=_0x451e71;_0x2efac5===_0x5a23de(0x2fa)&&typeof _0x2dd950==_0x5a23de(0x37a)&&(_0x2f5ade[_0x2efac5]=_0x2dd950['replace'](/url\(#(.*)\)/,_0x5a23de(0x2dc)+_0x41235b['idSuffix']+')'));});let {defIds:_0x5daaa5}=_0x41235b;return!_0x5daaa5||_0x5daaa5[_0x451e71(0x22a)]===0x0?_0x2f5ade:(_0x52ceea[_0x451e71(0x201)]===_0x451e71(0x1cf)&&_0x2f5ade['xlink:href']&&(_0x2f5ade[_0x451e71(0x20a)]+=_0x41235b[_0x451e71(0x320)]),Object[_0x451e71(0x3eb)](_0x2f5ade)[_0x451e71(0x37b)](([_0x110f9c,_0x4289a1])=>{const _0x1c0c1e=_0x451e71;typeof _0x4289a1=='string'&&(_0x2f5ade[_0x110f9c]=_0x4289a1['replace'](/url\(#(.*)\)/,_0x1c0c1e(0x2dc)+_0x41235b[_0x1c0c1e(0x320)]+')'));}),_0x2f5ade);}function _0x387b8a(_0x146e3e,_0x27411d){const _0x50dc73=_0x30c533;var _0x44d75d;let {defIds:_0x269801}=_0x27411d;return!_0x269801||_0x269801['length']===0x0?_0x146e3e:_0x146e3e['tag']===_0x50dc73(0x377)&&(_0x44d75d=_0x146e3e['children'])!=null&&_0x44d75d[_0x50dc73(0x22a)]?{..._0x146e3e,'children':_0x146e3e[_0x50dc73(0x35b)][_0x50dc73(0x45b)](_0x5df265=>typeof _0x5df265['attrs']['id']==_0x50dc73(0x37a)&&_0x269801&&_0x269801['includes'](_0x5df265[_0x50dc73(0x477)]['id'])?{..._0x5df265,'attrs':{..._0x5df265[_0x50dc73(0x477)],'id':_0x5df265[_0x50dc73(0x477)]['id']+_0x27411d[_0x50dc73(0x320)]}}:_0x5df265)}:_0x146e3e;}function _0x425260(){const _0xa90364=_0x30c533;return Math[_0xa90364(0x483)]()[_0xa90364(0x267)](0x24)[_0xa90364(0x1ea)](0x2,0x8);}_0x54df8b['displayName']=_0x30c533(0x42e);let _0x2a94ca={'tag':_0x30c533(0x204),'attrs':{'xmlns':_0x30c533(0x3ef),'fill':'none','viewBox':_0x30c533(0x401),'width':_0x30c533(0x1b3),'height':_0x30c533(0x1b3)},'children':[{'tag':_0x30c533(0x43f),'attrs':{'fill':'colorChannel1','d':'M5.4004\x202.60213C5.25792\x202.60213\x205.14241\x202.71763\x205.14241\x202.86011V4.32679C5.14241\x204.67752\x204.85809\x204.96184\x204.50736\x204.96184C4.15663\x204.96184\x203.87231\x204.67752\x203.87231\x204.32679V2.86011C3.87231\x202.01618\x204.55646\x201.33203\x205.4004\x201.33203H13.14C13.984\x201.33203\x2014.6681\x202.01618\x2014.6681\x202.86011V10.5998C14.6681\x2011.4437\x2013.984\x2012.1278\x2013.14\x2012.1278H11.6568C11.3061\x2012.1278\x2011.0218\x2011.8435\x2011.0218\x2011.4928C11.0218\x2011.1421\x2011.3061\x2010.8577\x2011.6568\x2010.8577H13.14C13.2825\x2010.8577\x2013.398\x2010.7422\x2013.398\x2010.5998V2.86011C13.398\x202.71763\x2013.2825\x202.60213\x2013.14\x202.60213H5.4004Z','fillRule':_0x30c533(0x196),'clipRule':_0x30c533(0x196)}},{'tag':_0x30c533(0x43f),'attrs':{'fill':_0x30c533(0x210),'d':_0x30c533(0x46d),'fillRule':'evenodd','clipRule':'evenodd'}}]},_0x52e7b=(0x0,_0x437a9d['forwardRef'])(function(_0x267de6,_0x3c7abe){const _0x4d4828=_0x30c533;return(0x0,_0x437a9d[_0x4d4828(0x34e)])(_0x54df8b,Object[_0x4d4828(0x243)]({},_0x267de6,{'id':'copy-double-icon','ref':_0x3c7abe,'icon':_0x2a94ca}));});_0x52e7b['displayName']=_0x30c533(0x216);function _0x94c393(_0x168584){const _0x22f9fc=_0x30c533;return _0x168584[_0x22f9fc(0x29d)]()||void 0x0;}function _0x4ef245(_0x4cffa9){const _0xc9303d=_0x30c533;switch(_0x4cffa9[_0xc9303d(0x2f0)]){case _0xa2ae07[_0xc9303d(0x392)][_0xc9303d(0x2fd)]:return _0xc9303d(0x2dd);case _0xa2ae07[_0xc9303d(0x392)][_0xc9303d(0x19d)]:return _0xc9303d(0x430);case _0xa2ae07['DrawingTypeEnum'][_0xc9303d(0x1c3)]:return'table';case _0xa2ae07[_0xc9303d(0x392)][_0xc9303d(0x197)]:return _0xc9303d(0x375);case _0xa2ae07[_0xc9303d(0x392)][_0xc9303d(0x239)]:return _0xc9303d(0x190);case _0xa2ae07[_0xc9303d(0x392)][_0xc9303d(0x37c)]:return _0xc9303d(0x2cf);case _0xa2ae07['DrawingTypeEnum']['DRAWING_UNIT']:return _0xc9303d(0x337);case _0xa2ae07[_0xc9303d(0x392)]['DRAWING_DOM']:return'dom';case _0xa2ae07[_0xc9303d(0x392)][_0xc9303d(0x1c8)]:return _0xc9303d(0x48a);default:return _0xc9303d(0x314);}}function _0x1c7c60(_0x1761c7,_0xc2fa2a,_0x24bac0){const _0x10f81c=_0x30c533;var _0x4b4434;return((_0x4b4434=_0x1761c7[_0x10f81c(0x23d)])==null?void 0x0:_0x4b4434[_0x10f81c(0x29d)]())||(0x0,_0x5e919d[_0x10f81c(0x2ce)])(_0x24bac0,_0x4ef245(_0x1761c7))+'\x20'+(_0xc2fa2a+0x1);}function _0x2844ad(){const _0x107327=_0x30c533;var _0x2990d9,_0x3b96c2,_0x24511d,_0x1ae811;let _0x4d58b1=(0x0,_0x23402e[_0x107327(0x43d)])(_0xa2ae07[_0x107327(0x18f)]),_0x260599=(0x0,_0x23402e[_0x107327(0x43d)])(_0xa2ae07[_0x107327(0x24b)]),_0x5f228f=(0x0,_0x23402e[_0x107327(0x43d)])(_0xa2ae07[_0x107327(0x335)]),_0x57ad54=(0x0,_0x23402e['useDependency'])(_0x3f4b55[_0x107327(0x31e)]),_0x4a1b88=(0x0,_0x23402e[_0x107327(0x43d)])(_0x2c1288[_0x107327(0x21e)]),_0x23f30f=(0x0,_0x23402e[_0x107327(0x43d)])(_0x5663a2[_0x107327(0x37f)]),[,_0x5451cf]=(0x0,_0x437a9d[_0x107327(0x2b9)])(_0x192418=>_0x192418+0x1,0x0),_0x351361=_0x5f228f[_0x107327(0x2b1)](_0xa2ae07[_0x107327(0x44b)]['UNIVER_SHEET']),_0x45ca19=(_0x2990d9=_0x351361==null?void 0x0:_0x351361[_0x107327(0x22e)]())==null?'':_0x2990d9,_0x315d6e=(_0x3b96c2=_0x351361==null||(_0x24511d=_0x351361['getActiveSheet']())==null?void 0x0:_0x24511d['getSheetId']())==null?'':_0x3b96c2,_0x167ee0=(0x0,_0x23402e[_0x107327(0x41d)])(()=>_0x4a1b88['focus$'],_0x4a1b88[_0x107327(0x232)](),!0x1,[_0x4a1b88]);(0x0,_0x437a9d[_0x107327(0x228)])(()=>{const _0x18b7c9=_0x107327;let _0x5216f7=_0x260599[_0x18b7c9(0x3e1)](()=>_0x5451cf());return()=>_0x5216f7[_0x18b7c9(0x1e9)]();},[_0x260599]);let _0x1751b3=_0x45ca19&&_0x315d6e?_0x57ad54[_0x107327(0x3b0)](_0x45ca19,_0x315d6e):{},_0x427711=_0x45ca19&&_0x315d6e?_0x57ad54[_0x107327(0x23a)](_0x45ca19,_0x315d6e):[],_0x1980b9=(0x0,_0x437a9d[_0x107327(0x26c)])(()=>(0x0,_0x5e919d[_0x107327(0x19a)])(_0x4d58b1),[_0x4d58b1]),_0x588083=(0x0,_0x437a9d[_0x107327(0x26c)])(()=>{const _0x135ed7=_0x107327;let _0xaf8a58=_0x427711[_0x135ed7(0x45b)](_0x1c74db=>_0x1751b3[_0x1c74db])[_0x135ed7(0x35a)](_0x1e9cd3=>!!_0x1e9cd3)[_0x135ed7(0x248)](),_0x3c32ac=_0xaf8a58['reduce']((_0x5bb792,_0x4a2161)=>(_0x5bb792[(0x0,_0x5e919d['getObjectListPanelSectionIdForDrawingType'])(_0x4a2161[_0x135ed7(0x2f0)])]+=0x1,_0x5bb792),{'canvas':0x0,'floating':0x0}),_0x3ffcd3={'canvas':0x0,'floating':0x0};return _0xaf8a58[_0x135ed7(0x45b)]((_0xbd49ff,_0x491bd2)=>{const _0x106fe2=_0x135ed7;let _0x359509=(0x0,_0x5e919d[_0x106fe2(0x425)])(_0xbd49ff[_0x106fe2(0x2f0)]),_0x152902=_0x359509===_0x5e919d['OBJECT_LIST_FLOATING_SECTION_ID'],_0x369877=_0x3ffcd3[_0x359509]++;return{'id':_0xbd49ff[_0x106fe2(0x18a)],'name':_0x1c7c60(_0xbd49ff,_0x491bd2,_0x4d58b1),'description':_0xbd49ff['description'],'visible':_0xbd49ff[_0x106fe2(0x3e4)]!==!0x0,'selectable':_0xbd49ff[_0x106fe2(0x249)]!==!0x1,'sectionId':_0x359509,'sectionTitle':_0x152902?_0x1980b9['sectionFloating']:_0x1980b9['sectionCanvas'],'capabilities':_0x152902?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x152902&&_0x369877>0x0,'canMoveBackward':!_0x152902&&_0x369877<_0x3c32ac[_0x106fe2(0x407)]-0x1,'canReorder':!_0x152902};});},[_0x1751b3,_0x427711,_0x1980b9[_0x107327(0x1ed)],_0x1980b9['sectionFloating'],_0x4d58b1]),_0x414015=(0x0,_0x437a9d['useMemo'])(()=>(_0x167ee0==null?[]:_0x167ee0)[_0x107327(0x35a)](_0x40f164=>_0x40f164[_0x107327(0x367)]===_0x45ca19&&_0x40f164['subUnitId']===_0x315d6e)[_0x107327(0x45b)](_0xf4da74=>_0xf4da74[_0x107327(0x18a)]),[_0x167ee0,_0x315d6e,_0x45ca19]),_0x33f169=(_0x1ae811=_0x414015[_0x414015[_0x107327(0x22a)]-0x1])==null?null:_0x1ae811,_0x204930=_0x2ac0fe=>{const _0x5b27f3=_0x107327;var _0x3fb03c;return(_0x3fb03c=_0x57ad54[_0x5b27f3(0x3b1)]({'unitId':_0x45ca19,'subUnitId':_0x315d6e,'drawingId':_0x2ac0fe}))==null?null:_0x3fb03c;},_0x1b0ecf=_0x355a6f=>{const _0x2f4063=_0x107327;!_0x45ca19||!_0x355a6f['length']||_0x260599['executeCommand'](_0x3f4b55[_0x2f4063(0x336)]['id'],{'unitId':_0x45ca19,'drawings':_0x355a6f});},_0x585a7c=(_0x537455,_0x45b9dd)=>{_0x204930(_0x537455)&&_0x1b0ecf([{'unitId':_0x45ca19,'subUnitId':_0x315d6e,'drawingId':_0x537455,..._0x45b9dd}]);},_0x2f58db=(_0x1745b4,_0x3d4cd3)=>{const _0xa969ed=_0x107327;if(!_0x45ca19||!_0x315d6e)return;let _0x54ffd1=_0x3d4cd3?_0x414015[_0xa969ed(0x4a4)](_0x1745b4)?_0x414015['filter'](_0x16cb45=>_0x16cb45!==_0x1745b4):[..._0x414015,_0x1745b4]:[_0x1745b4];_0x260599[_0xa969ed(0x467)](_0x2c1288[_0xa969ed(0x3f5)]['id'],_0x54ffd1[_0xa969ed(0x45b)](_0x199ae5=>({'unitId':_0x45ca19,'subUnitId':_0x315d6e,'drawingId':_0x199ae5})));let _0x224880=_0x54ffd1[_0x54ffd1[_0xa969ed(0x22a)]-0x1];_0x224880?(0x0,_0x2a5532[_0xa969ed(0x44a)])(_0x23f30f,{'unitId':_0x45ca19,'subUnitId':_0x315d6e,'drawingId':_0x224880}):(0x0,_0x2a5532['clearActiveDrawingObjects'])(_0x23f30f,_0x45ca19);},_0x1aca09=(_0x4b1d68,_0x474304)=>{const _0x4ef103=_0x107327;_0x1b0ecf(_0x4b1d68['map'](_0x376f0=>_0x204930(_0x376f0))[_0x4ef103(0x35a)](_0x2abb73=>!!_0x2abb73)['filter'](_0x596931=>_0x596931[_0x4ef103(0x3e4)]!==!0x0!==_0x474304)[_0x4ef103(0x45b)](_0x3510a1=>({'unitId':_0x45ca19,'subUnitId':_0x315d6e,'drawingId':_0x3510a1['drawingId'],'hidden':!_0x474304})));},_0x44eb10=_0x1e2aae=>{let _0x1eb4d6=_0x204930(_0x1e2aae);_0x1eb4d6&&_0x585a7c(_0x1e2aae,{'selectable':_0x1eb4d6['selectable']===!0x1?void 0x0:!0x1});},_0x151215=(_0x24b981,_0x2e9eca)=>{const _0x5912f5=_0x107327;var _0x38f14d,_0x102339;let _0x55a827=_0x94c393(_0x2e9eca);((_0x38f14d=(_0x102339=_0x204930(_0x24b981))==null?void 0x0:_0x102339[_0x5912f5(0x23d)])==null?void 0x0:_0x38f14d)!==_0x55a827&&_0x585a7c(_0x24b981,{'name':_0x55a827});},_0x52ef47=(_0x3cb011,_0x36c449)=>{var _0x1ffe3e,_0x1b19f8;let _0x1acc2f=_0x94c393(_0x36c449);((_0x1ffe3e=(_0x1b19f8=_0x204930(_0x3cb011))==null?void 0x0:_0x1b19f8['description'])==null?void 0x0:_0x1ffe3e)!==_0x1acc2f&&_0x585a7c(_0x3cb011,{'description':_0x1acc2f});},_0xf4e9d1=(_0x46a58c,_0x51ebfd)=>{const _0x3d606c=_0x107327;!_0x45ca19||!_0x315d6e||_0x260599[_0x3d606c(0x45c)](_0x3f4b55[_0x3d606c(0x3d7)]['id'],{'unitId':_0x45ca19,'subUnitId':_0x315d6e,'drawingIds':[_0x46a58c],'arrangeType':_0x51ebfd});};return!_0x45ca19||!_0x315d6e?(0x0,_0x1fa7e6[_0x107327(0x1c9)])(_0x107327(0x3ac),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x1980b9[_0x107327(0x231)]}):(0x0,_0x1fa7e6[_0x107327(0x1c9)])(_0x5e919d['ObjectListPanelBase'],{'items':_0x588083,'selectedIds':_0x414015,'focusedId':_0x33f169,'labels':_0x1980b9,'onSelect':_0x2f58db,'onSetVisible':_0x1aca09,'onCommitName':_0x151215,'onCommitDescription':_0x52ef47,'onMoveForward':_0x5e121b=>_0xf4e9d1(_0x5e121b,_0xa2ae07[_0x107327(0x311)][_0x107327(0x2e5)]),'onMoveBackward':_0x2d05ea=>_0xf4e9d1(_0x2d05ea,_0xa2ae07[_0x107327(0x311)][_0x107327(0x192)]),'onToggleSelectable':_0x44eb10});}let _0x5e4c74=class{constructor(_0x119445){const _0x1a6f76=_0x30c533;this[_0x1a6f76(0x2a6)]=_0x119445;}['updateShapeFillImage'](_0x2b6306,_0x2615dd){const _0x163412=_0x30c533;let _0x261a7a=this[_0x163412(0x2a6)][_0x163412(0x3f7)](_0x2b6306[_0x163412(0x367)]),_0x4010ab=_0x261a7a==null?void 0x0:_0x261a7a[_0x163412(0x1e7)];if(!_0x4010ab)return;let _0x2209e1=(0x0,_0x2c1288['getDrawingShapeKeyByDrawingSearch'])(_0x2b6306),_0x4ad8e0=_0x4010ab[_0x163412(0x257)](_0x2209e1);_0x4ad8e0==null||_0x4ad8e0[_0x163412(0x39f)](_0x2615dd);}};_0x5e4c74=_0x164126([_0x4fa083(0x0,_0x5663a2[_0x30c533(0x37f)])],_0x5e4c74);function _0x11e4a2(){const _0x55a023=_0x30c533;let _0x282b7a=(0x0,_0x23402e[_0x55a023(0x43d)])(_0x2c1288[_0x55a023(0x21e)]),_0x8a7b0=(0x0,_0x23402e[_0x55a023(0x41d)])(()=>_0x282b7a[_0x55a023(0x46c)],_0x282b7a['getFocusDrawings'](),!0x1,[_0x282b7a]);return _0x8a7b0[_0x55a023(0x22a)]===0x0?null:(0x0,_0x1fa7e6[_0x55a023(0x1c9)])('div',{'children':(0x0,_0x1fa7e6[_0x55a023(0x26b)])(_0x55a023(0x3ac),{'className':_0x55a023(0x188),'children':[(0x0,_0x1fa7e6[_0x55a023(0x1c9)])(_0x5e919d[_0x55a023(0x440)],{'drawings':_0x8a7b0,'hasCropper':!0x1}),(0x0,_0x1fa7e6['jsx'])(_0x300372['SheetDrawingAnchor'],{'drawings':_0x8a7b0})]})});}function _0x4d67f5(_0x12bc99){const _0x1c429e=_0x30c533;let {unitId:_0x5cfab6,subUnitId:_0x3eee69,shapeId:_0x462cd7}=_0x12bc99,_0x595b59=(0x0,_0x23402e[_0x1c429e(0x43d)])(_0xa2ae07[_0x1c429e(0x24b)]),_0x1cf85b=(0x0,_0x23402e['useDependency'])(_0x5e4c74);return(0x0,_0x1fa7e6[_0x1c429e(0x1c9)])(_0x2a5532[_0x1c429e(0x198)],{..._0x12bc99,'positionEditor':(0x0,_0x1fa7e6[_0x1c429e(0x1c9)])(_0x11e4a2,{}),'onUpdateShapeData':(_0x23bc3a,_0xcbe937)=>{_0x2a12a7(_0x595b59,_0x5cfab6,_0x3eee69,_0x462cd7,_0x23bc3a,_0xcbe937);},'onUpdateLineShapeData':(_0x24f764,_0x1b9161)=>{_0x11404e(_0x595b59,_0x5cfab6,_0x3eee69,_0x462cd7,_0x24f764,_0x1b9161);},'onUpdateShapeFillImage':_0x1924fd=>{const _0x3269c9=_0x1c429e;_0x1cf85b[_0x3269c9(0x1f8)]({'unitId':_0x5cfab6,'subUnitId':_0x3eee69,'drawingId':_0x462cd7},_0x1924fd);}});}function _0x1ecbff(_0x1ff74a){const _0x4687fa=_0x30c533;let _0x92d7c4=_0x1ff74a[_0x4687fa(0x3af)][_0x4687fa(0x21b)];return _0x92d7c4?(0x0,_0x1fa7e6[_0x4687fa(0x1c9)])(_0xc9aaaf,{..._0x92d7c4}):null;}function _0xc9aaaf(_0x528130){const _0x570447=_0x30c533;var _0x54f45b,_0x123e1f;let _0x5b86b3=(0x0,_0x23402e[_0x570447(0x43d)])(_0xa2ae07[_0x570447(0x24b)]),_0x3b6d37=(0x0,_0x23402e['useDependency'])(_0xe63f5c[_0x570447(0x3dc)]),{unitId:_0x572041,subUnitId:_0x25bd52,drawingId:_0x543fe4,drawingType:_0x1764f7,shapeType:_0xf649f9}=_0x528130,[_0x15c4eb,_0x17c5d4]=(0x0,_0x437a9d[_0x570447(0x2df)])(_0x528130[_0x570447(0x2d6)]),_0x10a158=(0x0,_0x437a9d[_0x570447(0x26c)])(()=>(0x0,_0x2a5532['getTextStyle'])(_0x15c4eb),[_0x15c4eb]),_0x224885=(0x0,_0x437a9d[_0x570447(0x26c)])(()=>(0x0,_0x2a5532[_0x570447(0x429)])(_0x15c4eb),[_0x15c4eb]);(0x0,_0x437a9d[_0x570447(0x228)])(()=>{const _0x4c505a=_0x570447;let _0x134c23=_0x5b86b3[_0x4c505a(0x3e1)](_0x27e0fd=>{const _0xea41c2=_0x4c505a;if(_0x27e0fd['id']!==_0xe63f5c[_0xea41c2(0x268)]['id'])return;let _0x62465a=_0x3b6d37[_0xea41c2(0x2ae)](_0x572041,_0x25bd52,_0x543fe4);_0x62465a&&_0x17c5d4(_0x62465a);});return()=>_0x134c23[_0x4c505a(0x1e9)]();},[_0x5b86b3,_0x543fe4,_0x3b6d37,_0x25bd52,_0x572041]);let _0x5697fb=_0xad2cae=>{_0x17c5d4(_0x39ad6f=>({..._0x39ad6f,..._0xad2cae}));},_0x363bcd=_0x57df02=>{const _0x2ea6bf=_0x570447;let _0x55726d=(0x0,_0x2a5532['buildShapeTextDataUpdate'])(_0x15c4eb,_0x57df02);_0x2a12a7(_0x5b86b3,_0x572041,_0x25bd52,_0x543fe4,{'oldShapeData':{'shapeText':_0x15c4eb[_0x2ea6bf(0x1c6)]}},_0x55726d),_0x5697fb(_0x55726d);};return(0x0,_0x1fa7e6[_0x570447(0x1c9)])(_0x2a5532['ShapeFloatingToolbar'],{'shapeData':_0x15c4eb,'shapeType':_0xf649f9,'textStyle':{'ff':_0x8713ee[_0x570447(0x27f)][_0x570447(0x1c6)][_0x570447(0x422)],'fs':_0x8713ee[_0x570447(0x27f)][_0x570447(0x1c6)][_0x570447(0x471)],'cl':{'rgb':_0x8713ee[_0x570447(0x27f)][_0x570447(0x1c6)]['color']},..._0x10a158},'textModel':_0x224885?{'ha':(_0x54f45b=_0x224885['ha'])==null?_0xa2ae07[_0x570447(0x1c0)][_0x570447(0x2d1)]:_0x54f45b,'va':(_0x123e1f=_0x224885['va'])==null?_0xa2ae07['VerticalAlign'][_0x570447(0x23c)]:_0x123e1f}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x8713ee[_0x570447(0x27f)][_0x570447(0x3c1)],'defaultGradientEndColor':_0x8713ee[_0x570447(0x27f)][_0x570447(0x3f2)],'defaultStrokeColor':_0x8713ee[_0x570447(0x27f)][_0x570447(0x3e3)],'onUpdateShapeData':(_0x3fb198,_0x1f8e74)=>{_0x2a12a7(_0x5b86b3,_0x572041,_0x25bd52,_0x543fe4,_0x3fb198,_0x1f8e74),_0x1f8e74&&_0x5697fb(_0x1f8e74);},'onUpdateText':_0x363bcd,'onOpenPanel':()=>{_0x5b86b3['executeCommand'](_0x3a4b3e['id'],{'unitId':_0x572041,'subUnitId':_0x25bd52,'drawingId':_0x543fe4});},'onDelete':()=>{const _0x48e404=_0x570447;_0x5b86b3[_0x48e404(0x45c)](_0x3f4b55[_0x48e404(0x390)]['id'],{'unitId':_0x572041,'drawings':[{'unitId':_0x572041,'subUnitId':_0x25bd52,'drawingId':_0x543fe4,'drawingType':_0x1764f7}]});}});}var _0x580c45=class extends _0xa2ae07[_0x30c533(0x48b)]{constructor(..._0x534809){const _0x1af843=_0x30c533;super(..._0x534809),_0x54eac0(this,_0x1af843(0x2f2),new _0x50bd3e[(_0x1af843(0x2ef))](null)),_0x54eac0(this,_0x1af843(0x202),this['_editingParams$'][_0x1af843(0x442)]()),_0x54eac0(this,_0x1af843(0x2b3),new _0x50bd3e[(_0x1af843(0x2ef))](!0x1)),_0x54eac0(this,'onSavingEditorData$',this[_0x1af843(0x2b3)]['asObservable']());}['dispose'](){const _0x3db228=_0x30c533;this['_editingParams$']['next'](null),this[_0x3db228(0x2f2)][_0x3db228(0x193)](),this[_0x3db228(0x2b3)][_0x3db228(0x466)](!0x1),this[_0x3db228(0x2b3)]['complete'](),super[_0x3db228(0x1e9)]();}[_0x30c533(0x3b7)](_0x7446ba){const _0x3c960b=_0x30c533;this[_0x3c960b(0x2f2)][_0x3c960b(0x466)](_0x7446ba),_0x7446ba==null&&this['_onSavingEditorData$']['next'](!0x1);}['setOnSavingEditorData'](_0xea139c){const _0x33ae39=_0x30c533;this[_0x33ae39(0x2b3)]['next'](_0xea139c);}[_0x30c533(0x2fe)](){return this['_editingParams$']['getValue']();}[_0x30c533(0x3e8)](_0x50ddf8){const _0x1801ed=_0x30c533;this[_0x1801ed(0x2fe)]()&&(this[_0x1801ed(0x3d6)](!0x0),requestAnimationFrame(()=>{this['setEditing'](null);}));}[_0x30c533(0x368)](){const _0x24e31b=_0x30c533;this[_0x24e31b(0x2fe)]()&&this[_0x24e31b(0x3b7)](null);}};let _0x52b989=(0x0,_0x437a9d[_0x30c533(0x229)])(()=>{const _0x251afd=_0x30c533;let _0x481c03=(0x0,_0x23402e[_0x251afd(0x43d)])(_0x580c45),_0x1e17bd=(0x0,_0x23402e[_0x251afd(0x43d)])(_0xe63f5c[_0x251afd(0x3dc)]),_0x46d949=(0x0,_0x23402e[_0x251afd(0x43d)])(_0x2c1288['IDrawingManagerService']),_0x31c58f=(0x0,_0x23402e[_0x251afd(0x43d)])(_0xa2ae07['ICommandService']),_0x26c662=(0x0,_0x23402e[_0x251afd(0x43d)])(_0x5663a2[_0x251afd(0x37f)]);return(0x0,_0x1fa7e6[_0x251afd(0x1c9)])(_0x2a5532['ShapeTextEditorContainer'],{'adapter':(0x0,_0x437a9d['useMemo'])(()=>({'getShapeModel':(_0x366b6b,_0x563443,_0x14b0bd)=>_0x1e17bd[_0x251afd(0x2f4)](_0x366b6b,_0x563443,_0x14b0bd),'getShapeData':(_0x48228f,_0x344364,_0x5dede2)=>_0x1e17bd[_0x251afd(0x2ae)](_0x48228f,_0x344364,_0x5dede2),'getDrawingTransform':(_0x42cd78,_0x55edea,_0x1a5d3f)=>{const _0x221374=_0x251afd;let _0x541f24=_0x46d949[_0x221374(0x3b1)]({'unitId':_0x42cd78,'subUnitId':_0x55edea,'drawingId':_0x1a5d3f});return _0x541f24==null?void 0x0:_0x541f24[_0x221374(0x25d)];},'updateShapeText':({unitId:_0xe7ce2f,subUnitId:_0x6ab8c8,shapeId:_0x518930,shapeText:_0x14d3b1,oldShapeText:_0x1540c2})=>{const _0x4020c8=_0x251afd;_0x31c58f[_0x4020c8(0x45c)](_0xc12450['id'],{'unitId':_0xe7ce2f,'subUnitId':_0x6ab8c8,'shapeId':_0x518930,'shapeData':{'shapeText':_0x14d3b1},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x1540c2}}});},'updateHostSize':({unitId:_0x3fbf5e,subUnitId:_0x199e6a,shapeId:_0x4caed5,width:_0x464177,height:_0x594f78})=>{const _0x16bd34=_0x251afd;var _0xb6729f,_0x40e2f6,_0x2cab32;let _0x4403bb=_0x46d949['getDrawingByParam']({'unitId':_0x3fbf5e,'subUnitId':_0x199e6a,'drawingId':_0x4caed5}),_0x4ab3f3=_0x4403bb==null?void 0x0:_0x4403bb[_0x16bd34(0x25d)];if(!_0x4403bb||!_0x4ab3f3)return;let _0x1d5407={..._0x4ab3f3,'width':_0x464177,'height':_0x594f78},_0x5286d6=(_0xb6729f=_0x26c662[_0x16bd34(0x3f7)](_0x3fbf5e))==null||(_0xb6729f=_0xb6729f[_0x16bd34(0x3c2)](_0xe965b[_0x16bd34(0x309)])[_0x16bd34(0x347)](_0x199e6a))==null?void 0x0:_0xb6729f[_0x16bd34(0x40c)],_0x426d8e=_0x5286d6?(_0x40e2f6=(0x0,_0x3f4b55[_0x16bd34(0x385)])(_0x1d5407,_0x5286d6))==null?_0x4403bb[_0x16bd34(0x328)]:_0x40e2f6:_0x4403bb[_0x16bd34(0x328)],_0x5daf05=_0x5286d6?(_0x2cab32=(0x0,_0x3f4b55[_0x16bd34(0x286)])(_0x1d5407,_0x5286d6))==null?_0x4403bb[_0x16bd34(0x26a)]:_0x2cab32:_0x4403bb['axisAlignSheetTransform'];_0x31c58f['executeCommand'](_0x3f4b55[_0x16bd34(0x336)]['id'],{'unitId':_0x3fbf5e,'drawings':[{..._0x4403bb,'transform':_0x1d5407,'sheetTransform':_0x426d8e,'axisAlignSheetTransform':_0x5daf05}]});},'allowHostSizeShrink':({unitId:_0x31386a,subUnitId:_0x335fe1,shapeId:_0x5d7b23})=>(0x0,_0x2a5532[_0x251afd(0x22c)])(_0x1e17bd[_0x251afd(0x2ae)](_0x31386a,_0x335fe1,_0x5d7b23))}),[_0x31c58f,_0x46d949,_0x26c662,_0x1e17bd]),'editingService':_0x481c03,'editorUnitId':_0x5a56de,'positionOptions':(0x0,_0x437a9d[_0x251afd(0x26c)])(()=>({'viewportKeys':{'main':_0x5663a2['SHEET_VIEWPORT_KEY'][_0x251afd(0x3e6)],'leftTop':_0x5663a2['SHEET_VIEWPORT_KEY'][_0x251afd(0x34b)],'top':_0x5663a2[_0x251afd(0x21c)]['VIEW_MAIN_TOP'],'left':_0x5663a2[_0x251afd(0x21c)][_0x251afd(0x3a6)]},'getSkeleton':(_0xf84cda,_0x3ab8f7)=>{const _0x3a841d=_0x251afd;var _0x379fbc,_0x20c1f8;return(_0x379fbc=(_0x20c1f8=_0xf84cda['with'](_0xe965b[_0x3a841d(0x309)])[_0x3a841d(0x347)](_0x3ab8f7[_0x3a841d(0x481)]))==null?void 0x0:_0x20c1f8[_0x3a841d(0x40c)])==null?null:_0x379fbc;}}),[])});}),_0x3a8708=class extends _0xa2ae07[_0x30c533(0x48b)]{constructor(_0x1b4a47,_0x4907e4){const _0x4aeb7d=_0x30c533;super(),this[_0x4aeb7d(0x2cd)]=_0x1b4a47,this['_iconManager']=_0x4907e4,this[_0x4aeb7d(0x1dd)](),this[_0x4aeb7d(0x2c8)]();}[_0x30c533(0x1dd)](){const _0x248678=_0x30c533;this[_0x248678(0x18d)]['has']('CopyDoubleIcon')||this['disposeWithMe'](this[_0x248678(0x18d)][_0x248678(0x1bf)]({'CopyDoubleIcon':_0x52e7b}));}[_0x30c533(0x2c8)](){const _0x5b4810=_0x30c533;this[_0x5b4810(0x40b)](this[_0x5b4810(0x2cd)][_0x5b4810(0x1bf)](_0x24cb15,_0x4d67f5)),this['disposeWithMe'](this['_componentManager'][_0x5b4810(0x1bf)](_0x4512d8,_0x2844ad)),this[_0x5b4810(0x40b)](this[_0x5b4810(0x2cd)]['register'](_0x18c58e,_0x3d1388)),this[_0x5b4810(0x40b)](this[_0x5b4810(0x2cd)][_0x5b4810(0x1bf)](_0x5365fe,_0x172a78)),this['_componentManager'][_0x5b4810(0x1a3)](_0x5e919d['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'])||this['disposeWithMe'](this['_componentManager'][_0x5b4810(0x1bf)](_0x5e919d[_0x5b4810(0x206)],_0x1d657b)),this[_0x5b4810(0x40b)](this['_componentManager'][_0x5b4810(0x1bf)](_0x339a89,_0x1ecbff)),this[_0x5b4810(0x40b)](this[_0x5b4810(0x2cd)][_0x5b4810(0x1bf)](_0x367d65,_0x2a5532[_0x5b4810(0x30d)])),this['disposeWithMe'](this[_0x5b4810(0x2cd)][_0x5b4810(0x1bf)]('SheetShapeTextEditorContainer',_0x52b989));}};_0x3a8708=_0x164126([_0x4fa083(0x0,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x23402e[_0x30c533(0x478)])),_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x23402e[_0x30c533(0x38b)]))],_0x3a8708);let _0x16b33d=class extends _0xa2ae07['Disposable']{constructor(_0x1d57a6,_0x413324,_0x1b2c5c,_0x1ff26f,_0x515f16){const _0x2e3485=_0x30c533;super(),this[_0x2e3485(0x419)]=_0x1d57a6,this[_0x2e3485(0x32f)]=_0x413324,this[_0x2e3485(0x2a6)]=_0x1b2c5c,this['_univerInstanceService']=_0x1ff26f,this[_0x2e3485(0x29f)]=_0x515f16,_0x54eac0(this,_0x2e3485(0x31b),null),_0x54eac0(this,_0x2e3485(0x3a1),null),_0x54eac0(this,_0x2e3485(0x379),null),_0x54eac0(this,'_activeAdjustPointList',void 0x0),_0x54eac0(this,_0x2e3485(0x461),[]),_0x54eac0(this,'_baseLeft',0x0),_0x54eac0(this,_0x2e3485(0x393),0x0),_0x54eac0(this,'_baseWidth',0x0),_0x54eac0(this,_0x2e3485(0x36e),0x0),_0x54eac0(this,'_isStartAdjusting',!0x1),_0x54eac0(this,_0x2e3485(0x42a),void 0x0),_0x54eac0(this,'_activeShapeModel',void 0x0),_0x54eac0(this,_0x2e3485(0x1eb),void 0x0),_0x54eac0(this,_0x2e3485(0x217),void 0x0),_0x54eac0(this,_0x2e3485(0x2c1),!0x1),this['_registerFocusChangeHandler'](),this[_0x2e3485(0x1b6)]();}['clearAdjustControls'](){this['_clearControls']();}[_0x30c533(0x284)](){const _0x360d0e=_0x30c533;this[_0x360d0e(0x307)](),this[_0x360d0e(0x2bd)](!0x0);}[_0x30c533(0x457)](_0x287858,_0x71ca08,_0x5ead50,_0x178b9a){const _0x37b8b0=_0x30c533;let _0x4cc5cf=_0x287858;if(!(_0x4cc5cf===_0x8713ee[_0x37b8b0(0x1fe)][_0x37b8b0(0x3f1)]||_0x287858==='custom'))try{let _0x157941=new _0x8713ee['ShapeModel'](_0x4cc5cf,_0x37b8b0(0x1ce)+_0x287858);return _0x178b9a&&_0x157941['setShapeData']({'adjustValues':_0x178b9a},!0x0),_0x157941[_0x37b8b0(0x3a8)]({'width':_0x71ca08,'height':_0x5ead50}),_0x157941;}catch{return;}}[_0x30c533(0x351)](_0x33bea0,_0x1ed2de,_0x410c0a){const _0x40b4f6=_0x30c533;let _0x49f0e3={'unitId':_0x33bea0,'subUnitId':_0x1ed2de,'drawingId':_0x410c0a},_0x4c66ab=this[_0x40b4f6(0x32f)][_0x40b4f6(0x3b1)](_0x49f0e3);if(!(!_0x4c66ab||_0x4c66ab[_0x40b4f6(0x2f0)]!==_0xa2ae07[_0x40b4f6(0x392)][_0x40b4f6(0x2fd)]))return _0x4c66ab;}[_0x30c533(0x2be)](_0x2c20a6,_0x2bcc05,_0x398838){const _0x305f3b=_0x30c533;let _0x379453=this[_0x305f3b(0x2a6)][_0x305f3b(0x3f7)](_0x2c20a6);if(!_0x379453)return;let {scene:_0x5e396e}=_0x379453,_0x57871a=(0x0,_0x2c1288[_0x305f3b(0x44d)])({'unitId':_0x2c20a6,'subUnitId':_0x2bcc05,'drawingId':_0x398838}),_0x13bd7b=_0x5e396e[_0x305f3b(0x21f)](_0x57871a);if(_0x13bd7b instanceof _0x5663a2[_0x305f3b(0x1c1)]){let _0x4492e7=_0x13bd7b['prstGeom'];if(_0x4492e7)return{'prstGeom':_0x4492e7,'adjustValues':_0x13bd7b['prstGeomAdjValues']};}}[_0x30c533(0x2bd)](_0x1ede9f=!0x1){const _0xe31959=_0x30c533;if(!this[_0xe31959(0x3a1)]||!this['_subUnitId']||!this['_activeImageId'])return;let _0x4c6a6c=this[_0xe31959(0x2a6)]['getRenderById'](this['_unitId']);if(!_0x4c6a6c||!_0x4c6a6c[_0xe31959(0x3c2)](_0xe965b['SheetSkeletonManagerService'])[_0xe31959(0x3e7)]())return;let {scene:_0x4f7293}=_0x4c6a6c,_0xa14fb4=this[_0xe31959(0x351)](this['_unitId'],this['_subUnitId'],this['_activeImageId']);if(!_0xa14fb4)return;let {transform:_0x517d7a}=_0xa14fb4;if(!_0x517d7a)return;let {left:_0xb3ec08,top:_0x4c3c79,width:_0x4d0b38,height:_0x2f28ac,flipX:_0x4b23b7,flipY:_0x379c4d,angle:_0x55cd9d=0x0}=_0x517d7a;if(_0xb3ec08===void 0x0||_0x4c3c79===void 0x0)return;let _0x5afdbd=this[_0xe31959(0x2be)](this[_0xe31959(0x3a1)],this[_0xe31959(0x379)],this[_0xe31959(0x31b)]);if(!_0x5afdbd)return;if(_0x1ede9f){let _0x463d05=this[_0xe31959(0x457)](_0x5afdbd[_0xe31959(0x345)],_0x4d0b38||0x0,_0x2f28ac||0x0,_0x5afdbd[_0xe31959(0x27d)]);if(!_0x463d05)return;this[_0xe31959(0x2a8)]=_0x463d05[_0xe31959(0x3a9)]();}let _0x11226e=this[_0xe31959(0x2a8)];if(!(!_0x11226e||_0x11226e[_0xe31959(0x22a)]===0x0))for(let _0x517957=0x0;_0x517957<_0x11226e[_0xe31959(0x22a)];_0x517957++){let _0x8e0eb1=_0x11226e[_0x517957],_0xaaa9f9=_0x8e0eb1['x'],_0x29a37b=_0x8e0eb1['y'];if(_0x4b23b7&&(_0xaaa9f9=(_0x4d0b38||0x0)-_0xaaa9f9),_0x379c4d&&(_0x29a37b=(_0x2f28ac||0x0)-_0x29a37b),_0x55cd9d!==0x0){let _0x679b2b=(_0x4d0b38||0x0)/0x2,_0x6a3af0=(_0x2f28ac||0x0)/0x2,_0x4891c9=_0x55cd9d*Math['PI']/0xb4,_0x5499c3=Math[_0xe31959(0x40d)](_0x4891c9),_0x1dfb26=Math[_0xe31959(0x3ba)](_0x4891c9),_0xe7fd9b=_0xaaa9f9-_0x679b2b,_0x35e8b6=_0x29a37b-_0x6a3af0;_0xaaa9f9=_0x679b2b+(_0xe7fd9b*_0x5499c3-_0x35e8b6*_0x1dfb26),_0x29a37b=_0x6a3af0+(_0xe7fd9b*_0x1dfb26+_0x35e8b6*_0x5499c3);}let _0xf20714={'x':_0xaaa9f9,'y':_0x29a37b,'adjName':_0x8e0eb1[_0xe31959(0x357)]};this[_0xe31959(0x329)](_0x4f7293,_0xf20714,_0xf20714[_0xe31959(0x357)],_0xb3ec08,_0x4c3c79,this[_0xe31959(0x3a1)],this[_0xe31959(0x379)]);}}[_0x30c533(0x329)](_0x4cd5ee,_0x39c5ef,_0x3e3736,_0x5989a3,_0x37e6c6,_0x5656de,_0xed7624){const _0x56d691=_0x30c533;if(!this[_0x56d691(0x31b)])return;let _0x177225=_0x56d691(0x230)+this[_0x56d691(0x31b)]+'-'+_0x3e3736,_0x33996a=_0x4cd5ee[_0x56d691(0x257)](_0x177225);if(_0x33996a){_0x33996a['transformByState']({'left':_0x39c5ef['x']+_0x5989a3-_0x8713ee['ShapeDefaultConfig'][_0x56d691(0x456)],'top':_0x39c5ef['y']+_0x37e6c6-_0x8713ee[_0x56d691(0x27f)]['adjHandleSize']});return;}let _0x2720d4=new _0x44d757(_0x177225,{'left':_0x39c5ef['x']+_0x5989a3-_0x8713ee[_0x56d691(0x27f)]['adjHandleSize'],'top':_0x39c5ef['y']+_0x37e6c6-_0x8713ee['ShapeDefaultConfig'][_0x56d691(0x456)],'adjName':_0x3e3736,'shapeId':this[_0x56d691(0x31b)],'unitId':_0x5656de,'subUnitId':_0xed7624,'width':_0x8713ee[_0x56d691(0x27f)][_0x56d691(0x456)]+0x8,'height':_0x8713ee[_0x56d691(0x27f)]['adjHandleSize']+0x8,'zIndex':_0x5663a2[_0x56d691(0x3da)]+0x1,'evented':!0x0});this['_shapes'][_0x56d691(0x1c2)](_0x2720d4),this[_0x56d691(0x2ee)](_0x2720d4,_0x4cd5ee,_0x3e3736),_0x4cd5ee[_0x56d691(0x33a)](_0x2720d4,_0x5663a2[_0x56d691(0x3da)]+0x1);}[_0x30c533(0x307)](){const _0x303a66=_0x30c533;this['_shapes'][_0x303a66(0x22a)]!==0x0&&(this[_0x303a66(0x461)][_0x303a66(0x37b)](_0x4c8bb1=>_0x4c8bb1[_0x303a66(0x1e9)]()),this[_0x303a66(0x461)]=[]);}[_0x30c533(0x46e)](_0x1fdfef,_0x4d5a96){const _0xf7b385=_0x30c533;var _0x5d22ec;let _0x1c0d05={'x':0x0,'y':0x0},_0x44ba92=this[_0xf7b385(0x2a6)]['getRenderById'](_0x1fdfef);if(!_0x44ba92||!_0x44ba92[_0xf7b385(0x3c2)](_0xe965b['SheetSkeletonManagerService'])['getSkeleton'](_0x4d5a96))return _0x1c0d05;let _0x131485=_0x44ba92[_0xf7b385(0x3c2)](_0xe965b[_0xf7b385(0x1ef)]),_0x286112=_0x131485==null?void 0x0:_0x131485['getCurrentScrollState']();if(!_0x286112)return _0x1c0d05;let _0x20c9b4=(_0x5d22ec=this['_univerInstanceService']['getUnit'](_0x1fdfef))==null?void 0x0:_0x5d22ec['getSheetBySheetId'](_0x4d5a96);if(!_0x20c9b4)return _0x1c0d05;let _0x22b57a=(0x0,_0xe965b[_0xf7b385(0x262)])(_0x286112[_0xf7b385(0x1a5)],_0x286112[_0xf7b385(0x27c)],_0x44ba92[_0xf7b385(0x1e7)],_0x20c9b4);return _0x22b57a?{'x':_0x22b57a[_0xf7b385(0x3d4)],'y':_0x22b57a[_0xf7b385(0x3fd)]}:_0x1c0d05;}[_0x30c533(0x227)](_0x4ce568,_0x405c20){const _0x185a39=_0x30c533;var _0x5f58d4,_0xaab397;let _0x547382=(_0x5f58d4=this[_0x185a39(0x19f)][_0x185a39(0x46a)](_0x4ce568))==null?void 0x0:_0x5f58d4[_0x185a39(0x326)](_0x405c20);return(_0xaab397=_0x547382==null?void 0x0:_0x547382['getZoomRatio']())==null?0x1:_0xaab397;}[_0x30c533(0x2ee)](_0x5ded29,_0x185430,_0x284b19){const _0x7f459=_0x30c533;this[_0x7f459(0x40b)]((0x0,_0xa2ae07[_0x7f459(0x24e)])(_0x5ded29[_0x7f459(0x2a2)][_0x7f459(0x1db)]((_0x28a2a,_0x3f0b47)=>{const _0x19de7f=_0x7f459;var _0x50058d,_0x108243,_0x5dfe90;let {unitId:_0x23abf2,subUnitId:_0x24ed35,drawingId:_0x56e3a8}=_0x5ded29[_0x19de7f(0x449)](),_0x264e3f=this[_0x19de7f(0x351)](_0x23abf2,_0x24ed35,_0x56e3a8);if(!(_0x264e3f!=null&&_0x264e3f[_0x19de7f(0x25d)]))return;let {left:_0x3d3a17,top:_0x27e80e,width:_0x2aad7c,height:_0x2a875b}=_0x264e3f[_0x19de7f(0x25d)];this['_baseLeft']=_0x3d3a17||0x0,this['_baseTop']=_0x27e80e||0x0,this[_0x19de7f(0x464)]=_0x2aad7c||0x0,this[_0x19de7f(0x36e)]=_0x2a875b||0x0;let _0x1ec943=!!((_0x50058d=_0x264e3f['transform'])!=null&&_0x50058d[_0x19de7f(0x382)]),_0xd05c5c=!!((_0x108243=_0x264e3f[_0x19de7f(0x25d)])!=null&&_0x108243[_0x19de7f(0x2e6)]),_0x2e8f98=((_0x5dfe90=_0x264e3f[_0x19de7f(0x25d)])==null?void 0x0:_0x5dfe90[_0x19de7f(0x1cc)])||0x0,_0x376be4=this[_0x19de7f(0x2be)](_0x23abf2,_0x24ed35,_0x56e3a8);if(!_0x376be4)return;let _0x3f13c5=this[_0x19de7f(0x457)](_0x376be4[_0x19de7f(0x345)],this[_0x19de7f(0x464)],this['_baseHeight'],_0x376be4['adjustValues']);if(!_0x3f13c5||(this[_0x19de7f(0x271)]=_0x3f13c5,this[_0x19de7f(0x42a)]=_0x3f13c5[_0x19de7f(0x1af)](_0x284b19),!this[_0x19de7f(0x42a)]))return;this[_0x19de7f(0x297)]=!0x0,_0x185430[_0x19de7f(0x412)]();let _0x4e87c4=_0x376be4[_0x19de7f(0x345)];this[_0x19de7f(0x1eb)]=_0x185430[_0x19de7f(0x18e)]['subscribeEvent']((_0x2bd12f,_0x12225d)=>{const _0x48b010=_0x19de7f;if(!this[_0x48b010(0x297)])return;let {offsetX:_0x52ed73,offsetY:_0x3d2f8d}=_0x2bd12f,_0x54fb84=this[_0x48b010(0x42a)];if(!this[_0x48b010(0x271)]||!_0x54fb84)return;_0x185430[_0x48b010(0x412)](),_0x185430['setCursor'](_0x5663a2[_0x48b010(0x383)][_0x48b010(0x242)]);let _0x375bf2={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this[_0x48b010(0x36e)]},_0x2c6f5f=this['_getScrollInfo'](_0x23abf2,_0x24ed35),_0x2d72bd=this['_getZoomRatio'](_0x23abf2,_0x24ed35),_0x3851f9=_0x52ed73/_0x2d72bd+_0x2c6f5f['x']-this[_0x48b010(0x272)],_0x491c5d=_0x3d2f8d/_0x2d72bd+_0x2c6f5f['y']-this[_0x48b010(0x393)];if(_0x2e8f98!==0x0){let _0x292271=this[_0x48b010(0x464)]/0x2,_0x1d4ad3=this[_0x48b010(0x36e)]/0x2,_0x4b5311=_0x2e8f98*Math['PI']/0xb4,_0xbc7013=Math['cos'](_0x4b5311),_0x10e8b6=Math['sin'](_0x4b5311),_0xd975a2=_0x3851f9-_0x292271,_0x5b418d=_0x491c5d-_0x1d4ad3;_0x3851f9=_0x292271+(_0xd975a2*_0xbc7013+_0x5b418d*_0x10e8b6),_0x491c5d=_0x1d4ad3+(-_0xd975a2*_0x10e8b6+_0x5b418d*_0xbc7013);}_0x1ec943&&(_0x3851f9=this[_0x48b010(0x464)]-_0x3851f9),_0xd05c5c&&(_0x491c5d=this[_0x48b010(0x36e)]-_0x491c5d);let _0x2db28c=this['_activeShapeModel'][_0x48b010(0x205)](_0x375bf2,{'x':_0x3851f9,'y':_0x491c5d},_0x54fb84,_0x1ec943,_0xd05c5c),_0x23d366=_0x54fb84[_0x48b010(0x1d4)]||_0x54fb84[_0x48b010(0x342)]||_0x54fb84[_0x48b010(0x3db)]||_0x54fb84['gdRefR'];_0x23d366!==void 0x0&&(this[_0x48b010(0x271)][_0x48b010(0x361)](_0x23d366,_0x2db28c),this[_0x48b010(0x271)][_0x48b010(0x3a8)]({'width':this[_0x48b010(0x464)],'height':this['_baseHeight']}),this[_0x48b010(0x2ea)](_0x23abf2,_0x24ed35,_0x56e3a8,_0x23d366,_0x2db28c),this['_activeAdjustPointList']=this[_0x48b010(0x271)][_0x48b010(0x3a9)](),this[_0x48b010(0x42a)]=this[_0x48b010(0x271)][_0x48b010(0x1af)](_0x284b19),this[_0x48b010(0x2bd)](),_0x12225d[_0x48b010(0x3b6)]());}),this[_0x19de7f(0x217)]=_0x185430[_0x19de7f(0x260)][_0x19de7f(0x1db)]((_0x541fe9,_0x37b59d)=>{const _0x52458f=_0x19de7f;if(this['_adjHandlerPointerMove'][_0x52458f(0x241)](),this[_0x52458f(0x217)][_0x52458f(0x241)](),_0x185430['resetCursor'](),this[_0x52458f(0x271)]){let _0x3b72be=this[_0x52458f(0x271)][_0x52458f(0x1d9)](),_0x5dc480={};for(let _0x2e89f2 of _0x3b72be){let _0x3ccadf=this['_activeShapeModel'][_0x52458f(0x4a9)](_0x2e89f2);_0x3ccadf!==void 0x0&&(_0x5dc480[_0x2e89f2]=_0x3ccadf);}this['_imageShapeClipController'][_0x52458f(0x1a9)](_0x23abf2,_0x24ed35,_0x56e3a8,_0x4e87c4,_0x5dc480);}this[_0x52458f(0x42a)]=void 0x0,this[_0x52458f(0x271)]=void 0x0,this[_0x52458f(0x297)]=!0x1,_0x37b59d[_0x52458f(0x3b6)](),_0x185430[_0x52458f(0x362)]();}),_0x3f0b47[_0x19de7f(0x3b6)]();})));}['_updateImageAdjValues'](_0x2089c8,_0x354ded,_0x53f546,_0x1f5fb2,_0x5cbdb5){const _0x3e75ee=_0x30c533;let _0x443542=this[_0x3e75ee(0x2a6)]['getRenderById'](_0x2089c8);if(!_0x443542)return;let {scene:_0x386be9}=_0x443542,_0x568c5a=(0x0,_0x2c1288[_0x3e75ee(0x44d)])({'unitId':_0x2089c8,'subUnitId':_0x354ded,'drawingId':_0x53f546}),_0x1dd835=_0x386be9[_0x3e75ee(0x21f)](_0x568c5a);if(_0x1dd835 instanceof _0x5663a2['Image']){var _0xa3ebb4;let _0xbed68a=(_0xa3ebb4=_0x1dd835['prstGeomAdjValues'])==null?{}:_0xa3ebb4;_0x1dd835[_0x3e75ee(0x2c0)]({..._0xbed68a,[_0x1f5fb2]:_0x5cbdb5}),_0x1dd835[_0x3e75ee(0x3ce)](!0x0);}}[_0x30c533(0x1b6)](){const _0x45b9c3=_0x30c533;let _0xe586f2=this[_0x45b9c3(0x19f)][_0x45b9c3(0x189)](_0xa2ae07[_0x45b9c3(0x44b)][_0x45b9c3(0x2b7)]);this[_0x45b9c3(0x40b)](_0xe586f2[_0x45b9c3(0x2a9)]((0x0,_0x50bd3e['switchMap'])(_0x509bd8=>_0x509bd8?_0x509bd8[_0x45b9c3(0x339)][_0x45b9c3(0x2a9)]((0x0,_0x50bd3e[_0x45b9c3(0x39e)])(_0x2a74b0=>{const _0x59163c=_0x45b9c3;if(!_0x2a74b0)return _0x50bd3e[_0x59163c(0x331)];let _0x5a8298=_0x509bd8[_0x59163c(0x22e)](),_0x395fb4=this[_0x59163c(0x2a6)]['getRenderById'](_0x5a8298),_0x3b6aa0=_0x395fb4==null?void 0x0:_0x395fb4['scene'];return _0x3b6aa0?(0x0,_0x50bd3e['of'])(_0x3b6aa0):_0x50bd3e['EMPTY'];})):_0x50bd3e[_0x45b9c3(0x331)]))[_0x45b9c3(0x2ba)](_0x3b07c1=>{const _0x51883d=_0x45b9c3;let _0x1cf3d4=_0x3b07c1[_0x51883d(0x300)]();this[_0x51883d(0x40b)](_0x3b07c1['onPointerMove$'][_0x51883d(0x1db)](()=>{const _0x24b789=_0x51883d;this[_0x24b789(0x2c1)]&&this[_0x24b789(0x307)]();})),this[_0x51883d(0x40b)](_0x1cf3d4[_0x51883d(0x399)][_0x51883d(0x2ba)](_0x5cb076=>{const _0x1cccfb=_0x51883d;let {objects:_0x29e293}=_0x5cb076;if(this[_0x1cccfb(0x2bd)](),_0x29e293!==null&&_0x29e293[_0x1cccfb(0x2ab)]===0x1){let _0x467112=_0x29e293[_0x1cccfb(0x276)]()[_0x1cccfb(0x466)]()[_0x1cccfb(0x19e)];_0x467112 instanceof _0x5663a2[_0x1cccfb(0x1c1)]&&_0x467112[_0x1cccfb(0x345)]&&(this[_0x1cccfb(0x2c1)]=!0x0);}})),this['disposeWithMe'](_0x1cf3d4[_0x51883d(0x1e4)][_0x51883d(0x2ba)](()=>{const _0x4abb3e=_0x51883d;this[_0x4abb3e(0x2c1)]&&this[_0x4abb3e(0x307)]();})),this[_0x51883d(0x40b)](_0x3b07c1[_0x51883d(0x260)][_0x51883d(0x1db)](()=>{const _0x42507f=_0x51883d;this[_0x42507f(0x2c1)]&&(this['_isImagePointerDown']=!0x1,this['_createControls']());})),this[_0x51883d(0x40b)](_0x1cf3d4[_0x51883d(0x274)][_0x51883d(0x2ba)](()=>{const _0xce3ef0=_0x51883d;if(this['_unitId']&&this[_0xce3ef0(0x379)]&&this['_activeImageId']){let _0x21fce7=this['_getImagePrstGeom'](this['_unitId'],this[_0xce3ef0(0x379)],this[_0xce3ef0(0x31b)]);if(_0x21fce7){var _0x17ed1d,_0x1d550c;let _0x1f0379=this[_0xce3ef0(0x351)](this[_0xce3ef0(0x3a1)],this[_0xce3ef0(0x379)],this[_0xce3ef0(0x31b)]),_0x305995=(_0x1f0379==null||(_0x17ed1d=_0x1f0379[_0xce3ef0(0x25d)])==null?void 0x0:_0x17ed1d[_0xce3ef0(0x28c)])||0x0,_0x4c8c48=(_0x1f0379==null||(_0x1d550c=_0x1f0379[_0xce3ef0(0x25d)])==null?void 0x0:_0x1d550c[_0xce3ef0(0x42b)])||0x0,_0x16bbeb=this[_0xce3ef0(0x457)](_0x21fce7[_0xce3ef0(0x345)],_0x305995,_0x4c8c48,_0x21fce7[_0xce3ef0(0x27d)]);_0x16bbeb&&(this[_0xce3ef0(0x2a8)]=_0x16bbeb[_0xce3ef0(0x3a9)](),this[_0xce3ef0(0x307)](),this[_0xce3ef0(0x2bd)](!0x0));}}}));}));}[_0x30c533(0x28a)](){const _0x1db1d=_0x30c533;this[_0x1db1d(0x40b)](this[_0x1db1d(0x32f)][_0x1db1d(0x46c)][_0x1db1d(0x2ba)](_0x4e5a69=>{const _0xd76ebe=_0x1db1d;if(_0x4e5a69[_0xd76ebe(0x22a)]===0x1){let _0x1a41d1=_0x4e5a69[0x0];if(_0x1a41d1[_0xd76ebe(0x2f0)]===_0xa2ae07[_0xd76ebe(0x392)][_0xd76ebe(0x2fd)]){let {unitId:_0x51c0e9,subUnitId:_0x3d7016,drawingId:_0x28d506}=_0x1a41d1,_0x47fd3d=this['_getImagePrstGeom'](_0x51c0e9,_0x3d7016,_0x28d506);if(_0x47fd3d){var _0xaaf26f,_0x4d3ed2;this[_0xd76ebe(0x31b)]=_0x28d506,this[_0xd76ebe(0x3a1)]=_0x51c0e9,this['_subUnitId']=_0x3d7016;let _0x29bba4=this['_getImageDrawingInfo'](_0x51c0e9,_0x3d7016,_0x28d506),_0x2366ae=(_0x29bba4==null||(_0xaaf26f=_0x29bba4[_0xd76ebe(0x25d)])==null?void 0x0:_0xaaf26f[_0xd76ebe(0x28c)])||0x0,_0x507409=(_0x29bba4==null||(_0x4d3ed2=_0x29bba4[_0xd76ebe(0x25d)])==null?void 0x0:_0x4d3ed2[_0xd76ebe(0x42b)])||0x0,_0x293c0a=this[_0xd76ebe(0x457)](_0x47fd3d[_0xd76ebe(0x345)],_0x2366ae,_0x507409,_0x47fd3d[_0xd76ebe(0x27d)]);_0x293c0a&&(this[_0xd76ebe(0x2a8)]=_0x293c0a[_0xd76ebe(0x3a9)]()),this[_0xd76ebe(0x307)](),this['_createControls'](!0x0);}else this[_0xd76ebe(0x3a4)]();}else this[_0xd76ebe(0x3a4)]();}else this[_0xd76ebe(0x3a4)]();})),this[_0x1db1d(0x40b)](this[_0x1db1d(0x32f)][_0x1db1d(0x38a)][_0x1db1d(0x2ba)](_0x5de948=>{const _0x285ac0=_0x1db1d;if(_0x5de948[_0x285ac0(0x22a)]===0x1){let _0x4d3460=_0x5de948[0x0],_0x22654a=this[_0x285ac0(0x32f)][_0x285ac0(0x3b1)](_0x4d3460);(_0x22654a==null?void 0x0:_0x22654a[_0x285ac0(0x2f0)])===_0xa2ae07[_0x285ac0(0x392)][_0x285ac0(0x2fd)]&&this[_0x285ac0(0x31b)]===_0x4d3460[_0x285ac0(0x18a)]&&(this[_0x285ac0(0x307)](),this[_0x285ac0(0x2bd)](!0x0));}})),this[_0x1db1d(0x40b)](this[_0x1db1d(0x32f)][_0x1db1d(0x246)][_0x1db1d(0x2ba)](_0x565abe=>{const _0x511291=_0x1db1d;for(let _0x3ca146 of _0x565abe)this['_activeImageId']===_0x3ca146['drawingId']&&this[_0x511291(0x3a4)]();}));}['_resetState'](){const _0x8fbfbf=_0x30c533;this['_activeImageId']=null,this['_unitId']=null,this[_0x8fbfbf(0x379)]=null,this[_0x8fbfbf(0x2a8)]=void 0x0,this[_0x8fbfbf(0x307)]();}};_0x16b33d=_0x164126([_0x4fa083(0x1,_0x2c1288['IDrawingManagerService']),_0x4fa083(0x2,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x5663a2[_0x30c533(0x37f)])),_0x4fa083(0x3,_0xa2ae07[_0x30c533(0x335)]),_0x4fa083(0x4,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x319800))],_0x16b33d);let _0x1d9a43=class extends _0xa2ae07[_0x30c533(0x48b)]{constructor(_0x10636e,_0xbb0c2d,_0x173f5e,_0x3249ee){const _0x1591d2=_0x30c533;super(),this['_univerInstanceService']=_0x10636e,this[_0x1591d2(0x3fa)]=_0xbb0c2d,this[_0x1591d2(0x1e1)]=_0x173f5e,this[_0x1591d2(0x2c4)]=_0x3249ee,this[_0x1591d2(0x36b)]();}['_initSheetChange'](){const _0x473e91=_0x30c533;this[_0x473e91(0x40b)](this[_0x473e91(0x3fa)][_0x473e91(0x2e9)]({'getMutations':_0x256d3b=>{const _0x221011=_0x473e91;if(_0x256d3b['id']===_0x2042f3[_0x221011(0x226)]['id']){let _0x17025e=(0x0,_0x2042f3['getSheetCommandTarget'])(this[_0x221011(0x19f)],_0x256d3b['params']);if(!_0x17025e)return{'redos':[],'undos':[]};let {unitId:_0x464316,subUnitId:_0x4ec33e}=_0x17025e,_0x241b86=this['_sheetDrawingService'][_0x221011(0x3b0)](_0x464316,_0x4ec33e),_0x2d6b4a=Object['values'](_0x241b86)[_0x221011(0x35a)](_0x5733d2=>_0x5733d2[_0x221011(0x2f0)]===_0xa2ae07['DrawingTypeEnum']['DRAWING_SHAPE']);if(_0x2d6b4a[_0x221011(0x22a)]===0x0)return{'redos':[],'undos':[]};let _0x69ac28=[],_0x1f147c=[];for(let _0x53063e=0x0;_0x53063e<_0x2d6b4a[_0x221011(0x22a)];_0x53063e++){let _0x51287f=_0x2d6b4a[_0x53063e],_0x3b1fce=this[_0x221011(0x2c4)][_0x221011(0x2f4)](_0x51287f[_0x221011(0x367)],_0x51287f[_0x221011(0x481)],_0x51287f[_0x221011(0x18a)]);if(!_0x3b1fce)continue;let {redo:_0x3e268b,undo:_0x56c98b,objects:_0x12adde}=this[_0x221011(0x1e1)][_0x221011(0x323)]([_0x51287f]);_0x69ac28[_0x221011(0x1c2)]({'id':_0xe63f5c[_0x221011(0x2a5)]['id'],'params':{'unitId':_0x464316,'subUnitId':_0x4ec33e,'shapeId':_0x51287f[_0x221011(0x18a)]}}),_0x69ac28['push']({'id':_0x3f4b55['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x464316,'subUnitId':_0x4ec33e,'type':_0x3f4b55[_0x221011(0x462)][_0x221011(0x1d2)],'op':_0x3e268b,'objects':_0x12adde}}),_0x1f147c[_0x221011(0x1c2)]({'id':_0x3f4b55[_0x221011(0x3ee)]['id'],'params':{'unitId':_0x464316,'subUnitId':_0x4ec33e,'type':_0x3f4b55[_0x221011(0x462)][_0x221011(0x4a5)],'op':_0x56c98b,'objects':_0x12adde}}),_0x1f147c[_0x221011(0x1c2)]({'id':_0xe63f5c[_0x221011(0x42d)]['id'],'params':{'unitId':_0x464316,'subUnitId':_0x4ec33e,'shapeId':_0x51287f[_0x221011(0x18a)],'shapeType':_0x3b1fce['getShapeType'](),'shapeData':JSON['parse'](JSON[_0x221011(0x1bd)](_0x3b1fce[_0x221011(0x2cc)]()))}});}return{'redos':_0x69ac28,'undos':_0x1f147c};}else{if(_0x256d3b['id']===_0x2042f3[_0x221011(0x1f6)]['id']){let {unitId:_0x31926e,subUnitId:_0x4badcd,targetSubUnitId:_0x5d5b51}=_0x256d3b[_0x221011(0x22b)];if(!_0x31926e||!_0x4badcd||!_0x5d5b51)return{'redos':[],'undos':[]};let _0x1622a4=this[_0x221011(0x1e1)][_0x221011(0x3b0)](_0x31926e,_0x4badcd),_0x46b4bf=Object['values'](_0x1622a4)['filter'](_0x614619=>_0x614619['drawingType']===_0xa2ae07[_0x221011(0x392)][_0x221011(0x1c8)]);if(_0x46b4bf[_0x221011(0x22a)]===0x0)return{'redos':[],'undos':[]};let _0x5ade38=[],_0x1b5d2f=[];for(let _0x5c2f8e=0x0;_0x5c2f8e<_0x46b4bf[_0x221011(0x22a)];_0x5c2f8e++){let _0x21a5fa=_0x46b4bf[_0x5c2f8e],_0x16f9fc=this[_0x221011(0x2c4)]['getShapeModel'](_0x21a5fa[_0x221011(0x367)],_0x21a5fa['subUnitId'],_0x21a5fa[_0x221011(0x18a)]);if(!_0x16f9fc)continue;let _0x527438=(0x0,_0xa2ae07['generateRandomId'])(),_0x5f2c7a={..._0x21a5fa,'unitId':_0x31926e,'subUnitId':_0x5d5b51,'drawingId':_0x527438},{redo:_0x272a39,undo:_0x4abd36,objects:_0x42f437}=this[_0x221011(0x1e1)][_0x221011(0x48e)]([_0x5f2c7a]);_0x5ade38['push']({'id':_0x3f4b55[_0x221011(0x3ee)]['id'],'params':{'unitId':_0x31926e,'subUnitId':_0x5d5b51,'type':_0x3f4b55[_0x221011(0x462)]['INSERT'],'op':_0x272a39,'objects':_0x42f437}}),_0x5ade38['push']({'id':_0xe63f5c[_0x221011(0x42d)]['id'],'params':{'unitId':_0x31926e,'subUnitId':_0x5d5b51,'shapeId':_0x527438,'shapeType':_0x16f9fc[_0x221011(0x1bc)](),'shapeData':JSON['parse'](JSON[_0x221011(0x1bd)](_0x16f9fc[_0x221011(0x2cc)]()))}}),_0x1b5d2f['push']({'id':_0xe63f5c[_0x221011(0x2a5)]['id'],'params':{'unitId':_0x31926e,'subUnitId':_0x5d5b51,'shapeId':_0x527438}}),_0x1b5d2f[_0x221011(0x1c2)]({'id':_0x3f4b55[_0x221011(0x3ee)]['id'],'params':{'unitId':_0x31926e,'subUnitId':_0x5d5b51,'type':_0x3f4b55['DrawingApplyType'][_0x221011(0x1d2)],'op':_0x4abd36,'objects':_0x42f437}});}return{'redos':_0x5ade38,'undos':_0x1b5d2f};}}return{'redos':[],'undos':[]};}}));}};_0x1d9a43=_0x164126([_0x4fa083(0x0,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xa2ae07[_0x30c533(0x335)])),_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x2042f3[_0x30c533(0x252)])),_0x4fa083(0x2,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x3f4b55[_0x30c533(0x31e)])),_0x4fa083(0x3,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xe63f5c[_0x30c533(0x3dc)]))],_0x1d9a43);let _0x3659ed=class extends _0xa2ae07['Disposable']{constructor(_0x225035,_0x444a67,_0xd6ce71,_0x53f798,_0x2e55a6){const _0x1152f1=_0x30c533;super(),this[_0x1152f1(0x419)]=_0x225035,this[_0x1152f1(0x450)]=_0x444a67,this[_0x1152f1(0x32f)]=_0xd6ce71,this[_0x1152f1(0x24f)]=_0x53f798,this[_0x1152f1(0x2c4)]=_0x2e55a6,_0x54eac0(this,_0x1152f1(0x405),null),this[_0x1152f1(0x1ec)](),this[_0x1152f1(0x380)](),this[_0x1152f1(0x1a1)]();}[_0x30c533(0x1ec)](){const _0x3de72b=_0x30c533;let {scene:_0x45d094}=this[_0x3de72b(0x419)];this['disposeWithMe'](_0x45d094['onDblclick$'][_0x3de72b(0x1db)](_0xdc2c38=>{const _0xd8df47=_0x3de72b;let {offsetX:_0x8af80f,offsetY:_0x140ff3}=_0xdc2c38,_0x50ea34=_0x45d094[_0xd8df47(0x19b)](_0x5663a2[_0xd8df47(0x265)][_0xd8df47(0x417)]([_0x8af80f,_0x140ff3]));if(_0x50ea34 instanceof _0x4da10f){if((0x0,_0x8713ee['isConnectorShape'])(this[_0xd8df47(0x2c4)][_0xd8df47(0x1bc)](_0x50ea34[_0xd8df47(0x367)],_0x50ea34[_0xd8df47(0x481)],_0x50ea34[_0xd8df47(0x454)])))return;this[_0xd8df47(0x450)][_0xd8df47(0x3b7)]({'visible':!0x0,'unitId':_0x50ea34[_0xd8df47(0x367)],'subUnitId':_0x50ea34[_0xd8df47(0x481)],'shapeId':_0x50ea34[_0xd8df47(0x454)],'shapeKey':_0x50ea34[_0xd8df47(0x427)]});}}));}['_initSelection'](){const _0x1544c3=_0x30c533;this[_0x1544c3(0x40b)](this[_0x1544c3(0x32f)][_0x1544c3(0x46c)][_0x1544c3(0x2ba)](_0x4ae98e=>{const _0x454ee5=_0x1544c3;if(_0x4ae98e['length']===0x1){let _0x2eeb16=_0x4ae98e[0x0],_0x1fce9d=this[_0x454ee5(0x32f)][_0x454ee5(0x3b1)](_0x2eeb16);if((_0x1fce9d==null?void 0x0:_0x1fce9d[_0x454ee5(0x2f0)])===_0xa2ae07[_0x454ee5(0x392)][_0x454ee5(0x1c8)]){let _0x18795d=this['_shapeTextEditingService'][_0x454ee5(0x2fe)]();if((_0x18795d==null?void 0x0:_0x18795d[_0x454ee5(0x454)])===_0x2eeb16[_0x454ee5(0x18a)]&&_0x18795d[_0x454ee5(0x35f)])return;(0x0,_0x8713ee[_0x454ee5(0x3cc)])(this[_0x454ee5(0x2c4)][_0x454ee5(0x1bc)](_0x2eeb16[_0x454ee5(0x367)],_0x2eeb16['subUnitId'],_0x2eeb16[_0x454ee5(0x18a)]))&&this[_0x454ee5(0x450)][_0x454ee5(0x3b7)](null);}else this['_shapeTextEditingService'][_0x454ee5(0x2fe)]()&&(this['_shapeTextEditingService']['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x51c5c8=_0x454ee5;this[_0x51c5c8(0x450)][_0x51c5c8(0x3b7)](null);}));}else this[_0x454ee5(0x450)][_0x454ee5(0x2fe)]()&&(this['_shapeTextEditingService'][_0x454ee5(0x3d6)](!0x0),requestAnimationFrame(()=>{const _0xc27c37=_0x454ee5;this[_0xc27c37(0x450)]['setEditing'](null);}));})),this[_0x1544c3(0x40b)](this[_0x1544c3(0x32f)]['remove$'][_0x1544c3(0x2ba)](_0x506e5f=>{const _0x50386d=_0x1544c3;let _0x56f1b0=this['_shapeTextEditingService'][_0x50386d(0x2fe)]();_0x56f1b0&&_0x506e5f[_0x50386d(0x2f9)](_0x1cfb47=>_0x1cfb47[_0x50386d(0x18a)]===_0x56f1b0[_0x50386d(0x454)])&&this[_0x50386d(0x450)][_0x50386d(0x3b7)](null);}));}[_0x30c533(0x1a1)](){const _0x4d4279=_0x30c533;this[_0x4d4279(0x40b)](this[_0x4d4279(0x450)][_0x4d4279(0x202)][_0x4d4279(0x2ba)](_0x4696df=>{const _0x315596=_0x4d4279;let {scene:_0x528129}=this[_0x315596(0x419)];if(this['_lastEditingShapeKey']){let _0x1d4d5f=_0x528129[_0x315596(0x257)](this[_0x315596(0x405)]);_0x1d4d5f&&_0x1d4d5f[_0x315596(0x3b7)](!0x1);}if(_0x4696df){let _0x3d5ef1=!!_0x4696df[_0x315596(0x35f)],_0x493c2e=_0x528129[_0x315596(0x257)](_0x4696df[_0x315596(0x2e4)]);_0x493c2e&&(_0x493c2e[_0x315596(0x3b7)](_0x3d5ef1),this[_0x315596(0x405)]=_0x4696df[_0x315596(0x2e4)]),this[_0x315596(0x24f)][_0x315596(0x365)](_0xa2ae07[_0x315596(0x18b)],_0x3d5ef1);}else this['_lastEditingShapeKey']=null,this[_0x315596(0x24f)][_0x315596(0x365)](_0xa2ae07['FOCUSING_SHAPE_TEXT_EDITOR'],!0x1);}));}};_0x3659ed=_0x164126([_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x580c45)),_0x4fa083(0x2,_0x2c1288[_0x30c533(0x21e)]),_0x4fa083(0x3,_0xa2ae07['IContextService']),_0x4fa083(0x4,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xe63f5c['SheetsShapeService']))],_0x3659ed);let _0x2a1cdb=class extends _0x2a5532[_0x30c533(0x238)]{constructor(_0x12fc5b,_0x2c2f6c,_0xf5b061,_0xd3fdc9){super(_0x12fc5b,_0x2c2f6c,_0xf5b061,_0xd3fdc9,{'componentKey':_0x367d65,'editorUnitId':_0x5a56de});}};_0x2a1cdb=_0x164126([_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x3ae947[_0x30c533(0x3d3)])),_0x4fa083(0x2,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x75d37d[_0x30c533(0x48d)])),_0x4fa083(0x3,(0x0,_0xa2ae07['Inject'])(_0x75d37d[_0x30c533(0x214)]))],_0x2a1cdb);let _0x9c314e=class extends _0xa2ae07[_0x30c533(0x48b)]{constructor(_0x2c7c33,_0x4e8bae,_0x31f69a,_0x4637c4,_0x37a925,_0x1e71b5){const _0x5958ec=_0x30c533;super(),this['_commandService']=_0x2c7c33,this[_0x5958ec(0x2a6)]=_0x4e8bae,this['_drawingManagerService']=_0x31f69a,this[_0x5958ec(0x3a2)]=_0x4637c4,this['_drawingRenderService']=_0x37a925,this[_0x5958ec(0x240)]=_0x1e71b5,_0x54eac0(this,_0x5958ec(0x353),new Set()),this[_0x5958ec(0x27a)]();}[_0x30c533(0x27a)](){const _0xe878d0=_0x30c533;this[_0xe878d0(0x1d3)](),this['_commandExecutedListener'](),this[_0xe878d0(0x460)]();}[_0x30c533(0x1d3)](){const _0x22df42=_0x30c533;this['disposeWithMe'](this[_0x22df42(0x32f)][_0x22df42(0x234)][_0x22df42(0x2ba)](_0x1242cb=>{const _0x1bb02f=_0x22df42;this[_0x1bb02f(0x2e3)](_0x1242cb);}));}['_commandExecutedListener'](){const _0x3ade8b=_0x30c533;this[_0x3ade8b(0x40b)](this[_0x3ade8b(0x1d7)][_0x3ade8b(0x3e1)](_0x12f900=>{const _0x168818=_0x3ade8b;if(_0x12f900['id']===_0xe63f5c[_0x168818(0x268)]['id']){let {unitId:_0x1b7feb,subUnitId:_0x30bd22,shapeId:_0x477929}=_0x12f900[_0x168818(0x22b)],_0x9c6c80=this[_0x168818(0x33f)](_0x1b7feb),_0x5851f9=(0x0,_0x2c1288[_0x168818(0x44d)])({'unitId':_0x1b7feb,'subUnitId':_0x30bd22,'drawingId':_0x477929}),_0x596a9b=_0x9c6c80==null?void 0x0:_0x9c6c80[_0x168818(0x1e7)][_0x168818(0x257)](_0x5851f9);_0x596a9b&&(this['_sheetDrawingShapeRenderController']['refreshShapeFillImage'](_0x596a9b),_0x596a9b[_0x168818(0x3ce)](!0x0));return;}if(_0x12f900['id']===_0xe63f5c[_0x168818(0x42d)]['id']){var _0x3c6ffb;let {unitId:_0x11e166,subUnitId:_0x5e4459,shapeId:_0x302cb0}=_0x12f900['params'],_0x42a843=this[_0x168818(0x33f)](_0x11e166);if(_0x42a843==null)return;let {scene:_0x5d344a}=_0x42a843,_0x5f3197=(0x0,_0x2c1288[_0x168818(0x44d)])({'unitId':_0x11e166,'subUnitId':_0x5e4459,'drawingId':_0x302cb0}),_0x1cd6e5=_0x5d344a[_0x168818(0x257)](_0x5f3197);if(!((_0x3c6ffb=this[_0x168818(0x2a6)][_0x168818(0x3f7)](_0x11e166))!=null&&_0x3c6ffb[_0x168818(0x3c2)](_0xe965b['SheetSkeletonManagerService'])[_0x168818(0x3dd)](_0x5e4459)))return!0x1;if(_0x1cd6e5)return;this['_insertShapes']([{'unitId':_0x11e166,'subUnitId':_0x5e4459,'drawingId':_0x302cb0}]);}}));}[_0x30c533(0x460)](){const _0x39d78e=_0x30c533;this[_0x39d78e(0x40b)](this[_0x39d78e(0x32f)][_0x39d78e(0x38a)][_0x39d78e(0x2ba)](_0x1d541f=>{const _0x5149f6=_0x39d78e;_0x1d541f[_0x5149f6(0x37b)](_0x16fec5=>{const _0x3d3a5b=_0x5149f6;let {unitId:_0x2ef1f1,subUnitId:_0x2bd731,drawingId:_0x46e06d}=_0x16fec5,_0xdfc818=this[_0x3d3a5b(0x32f)][_0x3d3a5b(0x3b1)](_0x16fec5);if(_0xdfc818==null)return;let {transform:_0x112fe7,drawingType:_0x2ea148,srcRect:_0x990da0,prstGeom:_0x507a62}=_0xdfc818;if(_0x2ea148!==_0xa2ae07[_0x3d3a5b(0x392)][_0x3d3a5b(0x1c8)])return;let _0x4ac51c=this['_getSceneAndTransformerByDrawingSearch'](_0x2ef1f1);if(_0x4ac51c==null)return;let {scene:_0x4d86db,transformer:_0x13d75e}=_0x4ac51c;if(_0x112fe7==null)return!0x0;let _0x2dbaa4=(0x0,_0x2c1288[_0x3d3a5b(0x44d)])({'unitId':_0x2ef1f1,'subUnitId':_0x2bd731,'drawingId':_0x46e06d}),_0x5763f9=_0x4d86db[_0x3d3a5b(0x257)](_0x2dbaa4);if(_0x5763f9==null)return!0x0;_0x5763f9[_0x3d3a5b(0x27e)](_0x990da0),_0x5763f9['setPrstGeom'](_0x507a62);});}));}[_0x30c533(0x2e3)](_0x405368){const _0x320cc3=_0x30c533;for(let _0x42ac56 of _0x405368){var _0x5cfccc;let {unitId:_0x441dae,subUnitId:_0x4db4f2,drawingId:_0x277bd6}=_0x42ac56,_0x2cc04a=this[_0x320cc3(0x33f)](_0x441dae),_0x44271e=(_0x5cfccc=(0x0,_0x5e919d['getCurrentUnitInfo'])(this[_0x320cc3(0x3a2)],_0x441dae))==null?void 0x0:_0x5cfccc[_0x320cc3(0x481)];if(_0x2cc04a==null||_0x44271e!==_0x4db4f2)return;let _0x482f4c=(0x0,_0x2c1288[_0x320cc3(0x44d)])({'unitId':_0x441dae,'subUnitId':_0x4db4f2,'drawingId':_0x277bd6});if(this['_insertingShapeKeys'][_0x320cc3(0x408)](_0x482f4c)||_0x2cc04a['scene'][_0x320cc3(0x257)](_0x482f4c)!=null)return;let _0x4c8cae=this[_0x320cc3(0x32f)][_0x320cc3(0x3b1)](_0x42ac56);if(_0x4c8cae==null||_0x4c8cae[_0x320cc3(0x2f0)]!==_0xa2ae07[_0x320cc3(0x392)][_0x320cc3(0x1c8)])return;if((0x0,_0x8713ee['isConnectorShape'])((_0x4c8cae[_0x320cc3(0x303)]||{})[_0x320cc3(0x20f)])){let _0x38d869=_0x4c8cae['transform'];_0x38d869&&(_0x4c8cae['transform']={..._0x38d869,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x320cc3(0x353)][_0x320cc3(0x39c)](_0x482f4c);try{this[_0x320cc3(0x240)][_0x320cc3(0x3c3)](_0x4c8cae,_0x2cc04a[_0x320cc3(0x1e7)]);}finally{this[_0x320cc3(0x353)][_0x320cc3(0x3be)](_0x482f4c);}queueMicrotask(()=>{const _0x1dd46f=_0x320cc3;if(this['_disposed'])return;let _0x37f427=(0x0,_0x2c1288[_0x1dd46f(0x44d)])(_0x42ac56);if(!_0x2cc04a[_0x1dd46f(0x1e7)][_0x1dd46f(0x257)](_0x37f427))return;let _0x414999=this[_0x1dd46f(0x32f)]['getDrawingByParam'](_0x42ac56);_0x414999&&this[_0x1dd46f(0x32f)][_0x1dd46f(0x207)]([_0x414999]);});}}[_0x30c533(0x33f)](_0x3f08c9){const _0x50c3c4=_0x30c533;if(_0x3f08c9==null)return;let _0x4aae75=this[_0x50c3c4(0x2a6)]['getRenderById'](_0x3f08c9),_0x457214=_0x4aae75==null?void 0x0:_0x4aae75[_0x50c3c4(0x1e7)];return _0x457214==null?null:{'scene':_0x457214,'transformer':_0x457214[_0x50c3c4(0x300)]()};}};_0x9c314e=_0x164126([_0x4fa083(0x0,_0xa2ae07[_0x30c533(0x24b)]),_0x4fa083(0x1,_0x5663a2[_0x30c533(0x37f)]),_0x4fa083(0x2,_0x2c1288['IDrawingManagerService']),_0x4fa083(0x3,_0xa2ae07[_0x30c533(0x335)]),_0x4fa083(0x4,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x5e919d[_0x30c533(0x492)])),_0x4fa083(0x5,(0x0,_0xa2ae07['Inject'])(_0x568a7c))],_0x9c314e);let _0x3c55a1={'normal':{'fill':_0x8713ee[_0x30c533(0x27f)][_0x30c533(0x33e)],'stroke':_0x8713ee['ShapeDefaultConfig'][_0x30c533(0x266)],'strokeWidth':_0x8713ee[_0x30c533(0x27f)][_0x30c533(0x21a)]},'highlighted':{'fill':_0x30c533(0x423),'stroke':_0x30c533(0x3b8),'strokeWidth':0x2}};var _0x1a8d00=class extends _0x5663a2[_0x30c533(0x25f)]{constructor(_0x3da296,_0x10bb84){const _0x4c633b=_0x30c533;super(_0x3da296,_0x10bb84),_0x54eac0(this,'_targetShapeId',''),_0x54eac0(this,_0x4c633b(0x445),-0x1),_0x54eac0(this,_0x4c633b(0x3a1),''),_0x54eac0(this,_0x4c633b(0x379),''),_0x54eac0(this,'_isHighlighted',!0x1),_0x10bb84&&this[_0x4c633b(0x3e9)](_0x10bb84);}['getConnectionInfo'](){const _0x57ac9a=_0x30c533;return{'unitId':this[_0x57ac9a(0x3a1)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x57ac9a(0x2aa)],'cxnIndex':this['_cxnIndex']};}[_0x30c533(0x4a7)](_0x20cd24){const _0x19ecec=_0x30c533;this['_isHighlighted']!==_0x20cd24&&(this['_isHighlighted']=_0x20cd24,this[_0x19ecec(0x3ce)](!0x0));}['isHighlighted'](){return this['_isHighlighted'];}[_0x30c533(0x3e9)](_0x4d01f2){const _0x9f018a=_0x30c533;var _0x3c5bfe,_0x5804a0;_0x4d01f2['targetShapeId']!==void 0x0&&(this[_0x9f018a(0x2aa)]=_0x4d01f2[_0x9f018a(0x3f8)]),_0x4d01f2['cxnIndex']!==void 0x0&&(this[_0x9f018a(0x445)]=_0x4d01f2[_0x9f018a(0x3f3)]),_0x4d01f2[_0x9f018a(0x367)]!==void 0x0&&(this[_0x9f018a(0x3a1)]=_0x4d01f2[_0x9f018a(0x367)]),_0x4d01f2['subUnitId']!==void 0x0&&(this['_subUnitId']=_0x4d01f2[_0x9f018a(0x481)]),_0x4d01f2[_0x9f018a(0x47e)]!==void 0x0&&(this[_0x9f018a(0x3bf)]=_0x4d01f2[_0x9f018a(0x47e)]),this[_0x9f018a(0x2d0)]({'width':(_0x3c5bfe=_0x4d01f2[_0x9f018a(0x28c)])==null?_0x8713ee[_0x9f018a(0x27f)][_0x9f018a(0x1fd)]*0x2:_0x3c5bfe,'height':(_0x5804a0=_0x4d01f2[_0x9f018a(0x42b)])==null?_0x8713ee[_0x9f018a(0x27f)][_0x9f018a(0x1fd)]*0x2:_0x5804a0});}['_draw'](_0x39ae42){const _0x2b866a=_0x30c533;let _0x2774ec=this[_0x2b866a(0x3bf)]?_0x3c55a1[_0x2b866a(0x359)]:_0x3c55a1['normal'];_0x5663a2['Circle'][_0x2b866a(0x3fe)](_0x39ae42,{'radius':_0x8713ee['ShapeDefaultConfig']['cxnPointRadius'],'fill':_0x2774ec[_0x2b866a(0x3c1)],'stroke':_0x2774ec[_0x2b866a(0x3e3)],'strokeWidth':_0x2774ec[_0x2b866a(0x2bb)],'evented':!0x0});}};let _0x507830=class extends _0xa2ae07[_0x30c533(0x48b)]{constructor(_0x2620c3,_0x2350e3,_0x46fda7,_0x5a9b9e){const _0x290d36=_0x30c533;super(),this['_context']=_0x2620c3,this['_renderManagerService']=_0x2350e3,this[_0x290d36(0x32f)]=_0x46fda7,this[_0x290d36(0x2c4)]=_0x5a9b9e,_0x54eac0(this,_0x290d36(0x1b8),[]),_0x54eac0(this,_0x290d36(0x259),null),_0x54eac0(this,_0x290d36(0x1b4),-0x1),_0x54eac0(this,_0x290d36(0x493),null),_0x54eac0(this,_0x290d36(0x3a1),''),_0x54eac0(this,_0x290d36(0x379),''),_0x54eac0(this,'_draggingConnectorId',null);}[_0x30c533(0x354)](_0x8f3166,_0x2f5138,_0x146ebd,_0x400718){const _0x5674e8=_0x30c533;this[_0x5674e8(0x493)]=_0x8f3166,this[_0x5674e8(0x3a1)]=_0x2f5138,this[_0x5674e8(0x379)]=_0x146ebd,this[_0x5674e8(0x395)]=_0x400718;}[_0x30c533(0x441)](_0x393c3c){const _0x2b3816=_0x30c533;if(!this[_0x2b3816(0x493)])return null;let _0x4d8b04=this[_0x2b3816(0x30a)](_0x393c3c);return _0x4d8b04?(this['_activeTargetShapeId']!==_0x4d8b04[_0x2b3816(0x454)]&&(this[_0x2b3816(0x40f)](),this[_0x2b3816(0x1ee)](_0x4d8b04['shapeId'],_0x4d8b04[_0x2b3816(0x3c9)]),this[_0x2b3816(0x259)]=_0x4d8b04['shapeId']),this[_0x2b3816(0x26d)](_0x393c3c)):(this[_0x2b3816(0x259)]!==null&&(this['_clearConnectionSites'](),this['_activeTargetShapeId']=null),null);}[_0x30c533(0x31c)](){const _0x44d2f2=_0x30c533;this[_0x44d2f2(0x40f)](),this[_0x44d2f2(0x493)]=null,this[_0x44d2f2(0x259)]=null,this['_highlightedSiteIndex']=-0x1,this[_0x44d2f2(0x395)]=null;}['getConnectionRelation'](){const _0x124f70=_0x30c533;return this['_activeTargetShapeId']===null||this[_0x124f70(0x1b4)]<0x0?null:{'shapeId':this[_0x124f70(0x259)],'cxnIndex':this[_0x124f70(0x1b4)]};}[_0x30c533(0x30a)](_0x14fc16){const _0x3a3882=_0x30c533;let _0x3372fe=this[_0x3a3882(0x32f)]['getDrawingData'](this[_0x3a3882(0x3a1)],this[_0x3a3882(0x379)]);for(let _0x37f105 of Object['keys'](_0x3372fe)){if(_0x37f105===this['_draggingConnectorId']||_0x3372fe[_0x37f105][_0x3a3882(0x2f0)]!==_0xa2ae07[_0x3a3882(0x392)][_0x3a3882(0x1c8)])continue;let _0x2bfe70=this[_0x3a3882(0x2c4)][_0x3a3882(0x2f4)](this['_unitId'],this['_subUnitId'],_0x37f105);if(!_0x2bfe70||(0x0,_0x8713ee[_0x3a3882(0x3cc)])(_0x2bfe70[_0x3a3882(0x1bc)]())||_0x2bfe70['getConnectionSiteList']()['length']===0x0||!this[_0x3a3882(0x493)])continue;let _0xf7f8b=(0x0,_0x2c1288[_0x3a3882(0x44d)])({'unitId':this[_0x3a3882(0x3a1)],'subUnitId':this[_0x3a3882(0x379)],'drawingId':_0x37f105}),_0x30e0cd=this[_0x3a3882(0x493)][_0x3a3882(0x257)](_0xf7f8b);if(!_0x30e0cd)continue;let {left:_0x563616,top:_0x139e17,width:_0x470400,height:_0x1d0f97}=_0x30e0cd[_0x3a3882(0x1de)](),_0x513bae=_0x563616+_0x470400/0x2,_0x5bf8b3=_0x139e17+_0x1d0f97/0x2,_0x2f7c8d=_0x30e0cd[_0x3a3882(0x25d)][_0x3a3882(0x3cb)](),_0x630d6c=new _0x5663a2['Transform']([_0x2f7c8d[0x0],_0x2f7c8d[0x1],_0x2f7c8d[0x2],_0x2f7c8d[0x3],_0x513bae,_0x5bf8b3]),_0x2942ef=_0x30e0cd[_0x3a3882(0x1a7)](),_0x2af94e=(_0x30e0cd[_0x3a3882(0x258)]&&(_0x2942ef==null?void 0x0:_0x2942ef[_0x3a3882(0x381)])===_0x5663a2[_0x3a3882(0x44c)]['GROUP']?_0x2942ef[_0x3a3882(0x3df)][_0x3a3882(0x44e)](_0x630d6c):_0x630d6c)['invert']()['applyPoint'](_0x14fc16),_0x19dfbd=_0x470400/0x2,_0x35a3bb=_0x1d0f97/0x2;if(_0x2af94e['x']>=-_0x19dfbd-0x5&&_0x2af94e['x']<=_0x19dfbd+0x5&&_0x2af94e['y']>=-_0x35a3bb-0x5&&_0x2af94e['y']<=_0x35a3bb+0x5)return{'shapeId':_0x37f105,'shapeModel':_0x2bfe70};}return null;}[_0x30c533(0x1ee)](_0x24d912,_0x1cff8d){const _0x22103e=_0x30c533;if(!this['_currentScene'])return;let _0x4fa5e1=(0x0,_0x2c1288['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0x22103e(0x3a1)],'subUnitId':this[_0x22103e(0x379)],'drawingId':_0x24d912}),_0x2a72ab=this[_0x22103e(0x493)][_0x22103e(0x257)](_0x4fa5e1);if(!_0x2a72ab)return;let {left:_0x2d5a1c,top:_0x19ae48,width:_0x1eb86c,height:_0x4a6279}=_0x2a72ab[_0x22103e(0x1de)](),_0x3c0f4c=_0x2d5a1c+_0x1eb86c/0x2,_0xbf47f1=_0x19ae48+_0x4a6279/0x2,_0x6db83d=_0x2a72ab[_0x22103e(0x25d)][_0x22103e(0x3cb)](),_0x3c659c=new _0x5663a2[(_0x22103e(0x344))]([_0x6db83d[0x0],_0x6db83d[0x1],_0x6db83d[0x2],_0x6db83d[0x3],_0x3c0f4c,_0xbf47f1]),_0x3aba88=_0x2a72ab[_0x22103e(0x1a7)](),_0x386d2a=_0x2a72ab[_0x22103e(0x258)]&&(_0x3aba88==null?void 0x0:_0x3aba88[_0x22103e(0x381)])===_0x5663a2[_0x22103e(0x44c)][_0x22103e(0x28d)]?_0x3aba88[_0x22103e(0x3df)][_0x22103e(0x44e)](_0x3c659c):_0x3c659c;_0x1cff8d[_0x22103e(0x3a8)]({'width':_0x1eb86c,'height':_0x4a6279});let _0x3c3941=_0x1cff8d[_0x22103e(0x245)]();for(let _0x31f621 of _0x3c3941){let _0xdbfdc4=_0x31f621['x']-_0x1eb86c/0x2,_0x53eabb=_0x31f621['y']-_0x4a6279/0x2,_0x2aef1f=_0x386d2a['applyPoint']({'x':_0xdbfdc4,'y':_0x53eabb}),_0x3470b7=_0x2aef1f['x'],_0x45a710=_0x2aef1f['y'],_0x17b8ab=new _0x1a8d00(_0x22103e(0x3a0)+_0x24d912+'-'+_0x31f621[_0x22103e(0x41f)],{'left':_0x3470b7-_0x8713ee[_0x22103e(0x27f)]['cxnPointRadius'],'top':_0x45a710-_0x8713ee[_0x22103e(0x27f)]['cxnPointRadius'],'targetShapeId':_0x24d912,'cxnIndex':_0x31f621['index'],'unitId':this['_unitId'],'subUnitId':this[_0x22103e(0x379)],'width':_0x8713ee[_0x22103e(0x27f)][_0x22103e(0x1fd)]*0x2,'height':_0x8713ee[_0x22103e(0x27f)][_0x22103e(0x1fd)]*0x2,'zIndex':_0x5663a2[_0x22103e(0x3da)]+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x22103e(0x1c2)](_0x17b8ab),this[_0x22103e(0x493)][_0x22103e(0x33a)](_0x17b8ab,_0x5663a2[_0x22103e(0x3da)]+0x2);}}[_0x30c533(0x26d)](_0x309d5e){const _0x501dfb=_0x30c533;let _0xf96062=null,_0x392b21=0x1/0x0,_0x3cd124=null;for(let _0x367a27 of this[_0x501dfb(0x1b8)]){let _0xdcb0d=_0x367a27[_0x501dfb(0x411)]+_0x8713ee[_0x501dfb(0x27f)][_0x501dfb(0x1fd)],_0x3cbb8b=_0x367a27['top']+_0x8713ee[_0x501dfb(0x27f)]['cxnPointRadius'],_0x36579a=_0x309d5e['x']-_0xdcb0d,_0x595fec=_0x309d5e['y']-_0x3cbb8b,_0x2a0b13=Math[_0x501dfb(0x3c4)](_0x36579a*_0x36579a+_0x595fec*_0x595fec);_0x2a0b13<_0x392b21&&(_0x392b21=_0x2a0b13,_0xf96062=_0x367a27,_0x3cd124={'x':_0xdcb0d,'y':_0x3cbb8b});}let _0x18d04b=_0x392b21<=0xa&&_0xf96062?_0xf96062[_0x501dfb(0x306)]()['cxnIndex']:-0x1;if(_0x18d04b!==this[_0x501dfb(0x1b4)]){for(let _0x577667 of this[_0x501dfb(0x1b8)]){let _0xc3bd99=_0x577667[_0x501dfb(0x306)]();_0x577667['setHighlighted'](_0xc3bd99[_0x501dfb(0x3f3)]===_0x18d04b);}this[_0x501dfb(0x1b4)]=_0x18d04b;}if(_0x392b21<=0xa&&_0xf96062&&_0x3cd124){let _0x406da1=_0xf96062[_0x501dfb(0x306)](),_0x333696=this[_0x501dfb(0x338)](_0x406da1['shapeId'],_0x406da1[_0x501dfb(0x3f3)]);return{'shapeId':_0x406da1[_0x501dfb(0x454)],'cxnIndex':_0x406da1[_0x501dfb(0x3f3)],'unitId':_0x406da1['unitId'],'subUnitId':_0x406da1['subUnitId'],'worldPoint':_0x3cd124,'angle':_0x333696};}return null;}['_getConnectionSiteAngle'](_0x4949f1,_0x4316cd){const _0x54af62=_0x30c533;let _0x1bc670=this['_sheetsShapeService'][_0x54af62(0x2f4)](this[_0x54af62(0x3a1)],this[_0x54af62(0x379)],_0x4949f1);if(!_0x1bc670)return 0x0;let _0x1d1f30=this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x54af62(0x3a1)],'subUnitId':this[_0x54af62(0x379)],'drawingId':_0x4949f1});if(!(_0x1d1f30!=null&&_0x1d1f30['transform']))return 0x0;let {width:_0x23ff60=0x0,height:_0x238fce=0x0,flipX:_0xf6548=!0x1,flipY:_0x14eefc=!0x1}=_0x1d1f30[_0x54af62(0x25d)];_0x1bc670['updateContext']({'width':_0x23ff60,'height':_0x238fce});let _0x23ab64=_0x1bc670[_0x54af62(0x245)]()[_0x54af62(0x2a7)](_0x38298b=>_0x38298b[_0x54af62(0x41f)]===_0x4316cd);if(!_0x23ab64)return 0x0;let _0x1626f2=_0x23ab64['ang']/0xea60;return _0xf6548&&(_0x1626f2=0xb4-_0x1626f2),_0x14eefc&&(_0x1626f2=-_0x1626f2),_0x1626f2=(_0x1626f2%0x168+0x168)%0x168,_0x1626f2;}[_0x30c533(0x40f)](){const _0xe5fa78=_0x30c533;for(let _0x11d5b8 of this[_0xe5fa78(0x1b8)])_0x11d5b8[_0xe5fa78(0x1e9)]();this[_0xe5fa78(0x1b8)]=[],this[_0xe5fa78(0x1b4)]=-0x1;}[_0x30c533(0x1e9)](){const _0x32c26c=_0x30c533;this[_0x32c26c(0x40f)](),super[_0x32c26c(0x1e9)]();}};_0x507830=_0x164126([_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x5663a2[_0x30c533(0x37f)])),_0x4fa083(0x2,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x2c1288[_0x30c533(0x21e)])),_0x4fa083(0x3,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xe63f5c[_0x30c533(0x3dc)]))],_0x507830);let _0x1e8b99=class extends _0xa2ae07['Disposable']{constructor(_0x23fa56,_0x5b798c,_0x12db41,_0xc2e743,_0x3c3a3c){const _0x186081=_0x30c533;super(),this[_0x186081(0x1ab)]=_0x23fa56,this[_0x186081(0x2f6)]=_0x5b798c,this[_0x186081(0x1e1)]=_0x12db41,this['_shapeService']=_0xc2e743,this[_0x186081(0x261)]=_0x3c3a3c,_0x54eac0(this,'_copyInfo',void 0x0),this['_initCopyPaste'](),this['_registerGroupFeaturePasteHook']();}get[_0x30c533(0x3d9)](){const _0x3cad40=_0x30c533;return this[_0x3cad40(0x1e1)]['getFocusDrawings']();}['_registerGroupFeaturePasteHook'](){const _0x367ea4=_0x30c533;this[_0x367ea4(0x261)]['registerFeaturePasteHook'](({fromUnitId:_0x315505,fromSubUnitId:_0x348415,toUnitId:_0x143224,toSubUnitId:_0x4fe269,idMap:_0x3a5b47})=>{const _0x5a7024=_0x367ea4;let _0x859fca=[],_0x4872dc=[];for(let [_0x2dd615,_0x470640]of _0x3a5b47[_0x5a7024(0x3eb)]()){let _0x120876=this[_0x5a7024(0x49a)][_0x5a7024(0x2f4)](_0x315505,_0x348415,_0x2dd615);if(!_0x120876)continue;let _0x55b15c=_0x120876[_0x5a7024(0x1bc)](),_0x1a9f24=JSON[_0x5a7024(0x237)](JSON['stringify'](_0x120876['getShapeData']()));if(_0x1a9f24[_0x5a7024(0x371)]){var _0x1b163e,_0x4a3088;let _0x34053b=(_0x1b163e=_0x1a9f24[_0x5a7024(0x371)][_0x5a7024(0x3f0)])==null?void 0x0:_0x1b163e[_0x5a7024(0x454)],_0x4b9de5=(_0x4a3088=_0x1a9f24['relation']['to'])==null?void 0x0:_0x4a3088[_0x5a7024(0x454)],_0x421cf5=_0x34053b?_0x3a5b47[_0x5a7024(0x408)](_0x34053b):!0x0,_0x4d9dc0=_0x4b9de5?_0x3a5b47['has'](_0x4b9de5):!0x0;_0x421cf5&&_0x34053b&&_0x1a9f24['relation']['from']?_0x1a9f24['relation'][_0x5a7024(0x3f0)]={..._0x1a9f24[_0x5a7024(0x371)][_0x5a7024(0x3f0)],'shapeId':_0x3a5b47[_0x5a7024(0x1a3)](_0x34053b)}:_0x1a9f24[_0x5a7024(0x371)][_0x5a7024(0x3f0)]=void 0x0,_0x4d9dc0&&_0x4b9de5&&_0x1a9f24['relation']['to']?_0x1a9f24[_0x5a7024(0x371)]['to']={..._0x1a9f24[_0x5a7024(0x371)]['to'],'shapeId':_0x3a5b47['get'](_0x4b9de5)}:_0x1a9f24[_0x5a7024(0x371)]['to']=void 0x0;}_0x859fca[_0x5a7024(0x1c2)]({'id':_0xe63f5c[_0x5a7024(0x42d)]['id'],'params':{'unitId':_0x143224,'subUnitId':_0x4fe269,'shapeId':_0x470640,'shapeType':_0x55b15c,'shapeData':_0x1a9f24}}),_0x4872dc[_0x5a7024(0x1c2)]({'id':_0xe63f5c[_0x5a7024(0x2a5)]['id'],'params':{'unitId':_0x143224,'subUnitId':_0x4fe269,'shapeId':_0x470640}});}return{'redos':_0x859fca,'undos':_0x4872dc};});}[_0x30c533(0x2f1)](){const _0xfcfa20=_0x30c533;this[_0xfcfa20(0x40b)](this[_0xfcfa20(0x2f6)]['addClipboardHook']({'id':_0xfcfa20(0x2f3),'onBeforeCopy':(_0x1bc21b,_0x3bf1c9,_0x534ed9,_0x5a55e8)=>{const _0x3c61ae=_0xfcfa20;this[_0x3c61ae(0x2c9)]=null;let _0x1d5155=this['_focusedDrawings'];if(_0x1d5155[_0x3c61ae(0x22a)]){let _0x33b7e5=_0x1d5155['filter'](_0x4eacf9=>_0x4eacf9[_0x3c61ae(0x2f0)]===_0xa2ae07[_0x3c61ae(0x392)][_0x3c61ae(0x1c8)]);if(_0x33b7e5[_0x3c61ae(0x22a)]===0x0)return;this[_0x3c61ae(0x2c9)]={'unitId':_0x1bc21b,'subUnitId':_0x3bf1c9,'copyType':_0x5a55e8,'drawings':_0x33b7e5};}else this[_0x3c61ae(0x39b)](_0x1bc21b,_0x3bf1c9,_0x534ed9,_0x5a55e8);},'onPasteCells':(_0x382d6a,_0x40e9e4,_0x45600f,_0x1d2c27)=>{const _0x130ee5=_0xfcfa20;if(!this[_0x130ee5(0x2c9)])return{'redos':[],'undos':[]};let {pasteType:_0x888471}=_0x1d2c27;return _0x888471===_0xe965b[_0x130ee5(0x2eb)][_0x130ee5(0x283)]?this[_0x130ee5(0x3bc)](_0x40e9e4,this['_copyInfo'][_0x130ee5(0x3a5)]===_0xe965b[_0x130ee5(0x285)][_0x130ee5(0x1f2)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x554871=>this['_copyInfo']?this['_generatePasteMutations'](_0x554871,this[_0xfcfa20(0x2c9)][_0xfcfa20(0x3a5)]===_0xe965b['COPY_TYPE'][_0xfcfa20(0x1f2)]):{'redos':[],'undos':[]}}));}[_0x30c533(0x39b)](_0x339485,_0x335316,_0x4e7236,_0x3d9352){const _0x111bfa=_0x30c533;let _0x1d471c=this[_0x111bfa(0x1ab)]['getSkeleton'](_0x339485,_0x335316);if(!_0x1d471c)return;let _0x3bb2de=(0x0,_0x2042f3['attachRangeWithCoord'])(_0x1d471c,_0x4e7236);if(!_0x3bb2de)return;let {startX:_0x29cf4f,endX:_0x5c1220,startY:_0x219815,endY:_0x5dbf79}=_0x3bb2de,_0x1e13cd=this[_0x111bfa(0x1e1)][_0x111bfa(0x3b0)](_0x339485,_0x335316),_0x29083f=this[_0x111bfa(0x3d9)]['slice']();for(let [_0x433d85,_0x6b6ccb]of Object[_0x111bfa(0x3eb)](_0x1e13cd)){if(_0x6b6ccb[_0x111bfa(0x2f0)]!==_0xa2ae07[_0x111bfa(0x392)][_0x111bfa(0x1c8)])continue;let {transform:_0x3cae9b}=_0x6b6ccb;if(!_0x3cae9b)continue;let {left:_0x261440=0x0,top:_0x149388=0x0,width:_0x3e9c8f=0x0,height:_0x2a99df=0x0}=_0x3cae9b;_0x29cf4f<=_0x261440&&_0x5c1220>=_0x261440+_0x3e9c8f&&_0x219815<=_0x149388&&_0x5dbf79>=_0x149388+_0x2a99df&&_0x29083f[_0x111bfa(0x1c2)](_0x6b6ccb);}_0x29083f['length']>0x0&&(this[_0x111bfa(0x2c9)]={'unitId':_0x339485,'subUnitId':_0x335316,'copyType':_0x3d9352,'copyRange':_0x4e7236,'drawings':_0x29083f});}[_0x30c533(0x3bc)](_0x3e28f4,_0x398665){const _0x29c8d9=_0x30c533;let {unitId:_0x204f55,subUnitId:_0x815f38,range:_0x5a1285}=_0x3e28f4,_0x206913=this['_sheetSkeletonService']['getSkeleton'](_0x204f55,_0x815f38);if(!_0x206913)return{'redos':[],'undos':[]};let _0x101da2=(0x0,_0x2042f3[_0x29c8d9(0x41e)])(_0x5a1285),{unitId:_0x1b94e8,subUnitId:_0x51a9c4,copyRange:_0x49c245,drawings:_0x517de4}=this[_0x29c8d9(0x2c9)],_0x391fda=this[_0x29c8d9(0x1ab)][_0x29c8d9(0x3dd)](_0x1b94e8,_0x51a9c4);if(!_0x391fda)return{'redos':[],'undos':[]};let _0x594753;if(!_0x49c245){let _0x5759b1=0x1/0x0,_0xec2707=0x1/0x0;for(let _0x58f9e0 of _0x517de4){var _0x39a4ba;let {left:_0x122140=0x0,top:_0x160235=0x0}=(_0x39a4ba=_0x58f9e0[_0x29c8d9(0x25d)])==null?{}:_0x39a4ba;_0x122140<_0x5759b1&&(_0x5759b1=_0x122140),_0x160235<_0xec2707&&(_0xec2707=_0x160235);}_0x5759b1!==0x1/0x0&&_0xec2707!==0x1/0x0&&(_0x594753={'left':_0x5759b1,'top':_0xec2707});}let _0x2e9e06=new Map();if(!_0x398665){for(let _0x53d6e7 of _0x517de4)_0x2e9e06[_0x29c8d9(0x2d4)](_0x53d6e7[_0x29c8d9(0x18a)],(0x0,_0xa2ae07[_0x29c8d9(0x292)])());}let _0x298f43=[],_0x287bd8=[];for(let _0x3eb085 of _0x517de4){let {drawingId:_0x1c0187,transform:_0x20b5ef,sheetTransform:_0x3e22a1}=_0x3eb085;if(!_0x20b5ef||!_0x3e22a1)continue;let _0x29748a=this[_0x29c8d9(0x26e)]({'transform':_0x20b5ef,'sheetTransform':_0x3e22a1},{'skeleton':_0x391fda,'range':_0x49c245},{'skeleton':_0x206913,'range':_0x101da2},_0x594753);if(_0x398665){let {redos:_0x4636bc,undos:_0x424340}=this[_0x29c8d9(0x404)]({'fromUnitId':_0x1b94e8,'fromSubUnitId':_0x51a9c4,'toUnitId':_0x204f55,'toSubUnitId':_0x815f38,'drawing':_0x3eb085,'newTransforms':_0x29748a});_0x298f43[_0x29c8d9(0x1c2)](..._0x4636bc),_0x287bd8['push'](..._0x424340);continue;}let {redos:_0x417e80,undos:_0x1c3297}=this[_0x29c8d9(0x1f0)]({'toUnitId':_0x204f55,'toSubUnitId':_0x815f38,'drawing':_0x3eb085,'newTransforms':_0x29748a,'newDrawingId':_0x2e9e06[_0x29c8d9(0x1a3)](_0x1c0187),'idMap':_0x2e9e06});_0x298f43['push'](..._0x417e80),_0x287bd8['push'](..._0x1c3297);}return{'redos':_0x298f43,'undos':_0x287bd8};}[_0x30c533(0x404)](_0x296bd3){const _0xecdf61=_0x30c533;let {fromUnitId:_0x485f55,fromSubUnitId:_0x3e865f,toUnitId:_0x4b9ca6,toSubUnitId:_0x244bc4,drawing:_0x1d32d2,newTransforms:_0x5a9dda}=_0x296bd3,_0x3cde67={..._0x1d32d2,'unitId':_0x4b9ca6,'subUnitId':_0x244bc4,'transform':_0x5a9dda['transform'],'sheetTransform':_0x5a9dda[_0xecdf61(0x328)]};if(_0x4b9ca6===_0x485f55&&_0x244bc4===_0x3e865f){let {redo:_0x182cb9,undo:_0x3749a1,objects:_0x1d3dc9}=this['_sheetDrawingService'][_0xecdf61(0x251)]([_0x3cde67]);return{'redos':[{'id':_0x3f4b55['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4b9ca6,'subUnitId':_0x244bc4,'type':_0x3f4b55[_0xecdf61(0x462)][_0xecdf61(0x2b0)],'op':_0x182cb9,'objects':_0x1d3dc9}}],'undos':[{'id':_0x3f4b55[_0xecdf61(0x3ee)]['id'],'params':{'unitId':_0x4b9ca6,'subUnitId':_0x244bc4,'type':_0x3f4b55[_0xecdf61(0x462)][_0xecdf61(0x2b0)],'op':_0x3749a1,'objects':_0x1d3dc9}}]};}else{let _0x1d4830=this['_sheetDrawingService'][_0xecdf61(0x323)]([_0x1d32d2]),_0x1f3d9=this[_0xecdf61(0x1e1)][_0xecdf61(0x48e)]([_0x3cde67]),_0x385b07=this[_0xecdf61(0x49a)][_0xecdf61(0x2f4)](_0x1d32d2[_0xecdf61(0x367)],_0x1d32d2[_0xecdf61(0x481)],_0x1d32d2['drawingId']);if(!_0x385b07)return{'redos':[],'undos':[]};let _0x13415b=_0x385b07['getShapeType'](),_0x2a22c9=JSON[_0xecdf61(0x237)](JSON[_0xecdf61(0x1bd)](_0x385b07[_0xecdf61(0x2cc)]()));return{'redos':[{'id':_0x3f4b55[_0xecdf61(0x3ee)]['id'],'params':{'unitId':_0x485f55,'subUnitId':_0x3e865f,'type':_0x3f4b55['DrawingApplyType'][_0xecdf61(0x1d2)],'op':_0x1d4830['redo'],'objects':_0x1d4830[_0xecdf61(0x488)]}},{'id':_0xe63f5c['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x485f55,'subUnitId':_0x3e865f,'shapeId':_0x1d32d2[_0xecdf61(0x18a)]}},{'id':_0x3f4b55['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4b9ca6,'subUnitId':_0x244bc4,'type':_0x3f4b55[_0xecdf61(0x462)][_0xecdf61(0x4a5)],'op':_0x1f3d9[_0xecdf61(0x211)],'objects':_0x1f3d9[_0xecdf61(0x488)]}},{'id':_0xe63f5c['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x4b9ca6,'subUnitId':_0x244bc4,'shapeId':_0x1d32d2[_0xecdf61(0x18a)],'shapeType':_0x13415b,'shapeData':_0x2a22c9}}],'undos':[{'id':_0x3f4b55['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x485f55,'subUnitId':_0x3e865f,'type':_0x3f4b55['DrawingApplyType'][_0xecdf61(0x4a5)],'op':_0x1d4830[_0xecdf61(0x324)],'objects':_0x1d4830[_0xecdf61(0x488)]}},{'id':_0xe63f5c[_0xecdf61(0x42d)]['id'],'params':{'unitId':_0x485f55,'subUnitId':_0x3e865f,'shapeId':_0x1d32d2[_0xecdf61(0x18a)],'shapeType':_0x13415b,'shapeData':_0x2a22c9}},{'id':_0x3f4b55[_0xecdf61(0x3ee)]['id'],'params':{'unitId':_0x4b9ca6,'subUnitId':_0x244bc4,'type':_0x3f4b55['DrawingApplyType'][_0xecdf61(0x1d2)],'op':_0x1f3d9[_0xecdf61(0x324)],'objects':_0x1f3d9['objects']}},{'id':_0xe63f5c[_0xecdf61(0x2a5)]['id'],'params':{'unitId':_0x4b9ca6,'subUnitId':_0x244bc4,'shapeId':_0x1d32d2['drawingId']}}]};}}[_0x30c533(0x1f0)](_0x51b8ba){const _0xbee0=_0x30c533;let {toUnitId:_0x160064,toSubUnitId:_0x571478,drawing:_0x9f3483,newTransforms:_0x1360b9,newDrawingId:_0x3fc26a,idMap:_0x3c07a3}=_0x51b8ba,_0x2b50c2={..._0x9f3483,'unitId':_0x160064,'subUnitId':_0x571478,'drawingId':_0x3fc26a,'transform':_0x1360b9[_0xbee0(0x25d)],'sheetTransform':_0x1360b9[_0xbee0(0x328)]},{redo:_0x175cc8,undo:_0x23299d,objects:_0x42140a}=this[_0xbee0(0x1e1)][_0xbee0(0x48e)]([_0x2b50c2]),_0x33996f=this['_shapeService']['getShapeModel'](_0x9f3483[_0xbee0(0x367)],_0x9f3483['subUnitId'],_0x9f3483['drawingId']);if(!_0x33996f)return{'redos':[],'undos':[]};let _0x39ed86=_0x33996f[_0xbee0(0x1bc)](),_0x19fec1=JSON[_0xbee0(0x237)](JSON[_0xbee0(0x1bd)](_0x33996f[_0xbee0(0x2cc)]()));if(_0x19fec1[_0xbee0(0x371)]){var _0x39b05c,_0x523b40;let _0x3f0bea=(_0x39b05c=_0x19fec1['relation'][_0xbee0(0x3f0)])==null?void 0x0:_0x39b05c['shapeId'],_0x364ea6=(_0x523b40=_0x19fec1[_0xbee0(0x371)]['to'])==null?void 0x0:_0x523b40[_0xbee0(0x454)],_0xad632f=_0x3f0bea?_0x3c07a3[_0xbee0(0x408)](_0x3f0bea):!0x0,_0x2cbbd6=_0x364ea6?_0x3c07a3['has'](_0x364ea6):!0x0;_0xad632f&&_0x3f0bea&&_0x19fec1[_0xbee0(0x371)][_0xbee0(0x3f0)]?_0x19fec1[_0xbee0(0x371)][_0xbee0(0x3f0)]={..._0x19fec1[_0xbee0(0x371)][_0xbee0(0x3f0)],'shapeId':_0x3c07a3[_0xbee0(0x1a3)](_0x3f0bea)}:_0x19fec1[_0xbee0(0x371)][_0xbee0(0x3f0)]=void 0x0,_0x2cbbd6&&_0x364ea6&&_0x19fec1[_0xbee0(0x371)]['to']?_0x19fec1[_0xbee0(0x371)]['to']={..._0x19fec1['relation']['to'],'shapeId':_0x3c07a3['get'](_0x364ea6)}:_0x19fec1[_0xbee0(0x371)]['to']=void 0x0;}return{'redos':[{'id':_0x3f4b55[_0xbee0(0x3ee)]['id'],'params':{'unitId':_0x160064,'subUnitId':_0x571478,'type':_0x3f4b55['DrawingApplyType'][_0xbee0(0x4a5)],'op':_0x175cc8,'objects':_0x42140a}},{'id':_0xe63f5c['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x160064,'subUnitId':_0x571478,'shapeId':_0x3fc26a,'shapeType':_0x39ed86,'shapeData':_0x19fec1}}],'undos':[{'id':_0x3f4b55[_0xbee0(0x3ee)]['id'],'params':{'unitId':_0x160064,'subUnitId':_0x571478,'type':_0x3f4b55['DrawingApplyType'][_0xbee0(0x1d2)],'op':_0x23299d,'objects':_0x42140a}},{'id':_0xe63f5c[_0xbee0(0x2a5)]['id'],'params':{'unitId':_0x160064,'subUnitId':_0x571478,'shapeId':_0x3fc26a}}]};}[_0x30c533(0x26e)](_0x3101ba,_0x4f0fc1,_0xdee569,_0x53bf2){const _0x19ae51=_0x30c533;var _0x480ded;let {range:_0x4ffb0d,skeleton:_0x1401fc}=_0x4f0fc1,{range:_0x13273f,skeleton:_0x6e08fc}=_0xdee569,{transform:_0x572ff1,sheetTransform:_0x8a57eb}=_0x3101ba,_0x4d45d6={..._0x572ff1};if(_0x4ffb0d){let _0x1d199d=(0x0,_0x2042f3['attachRangeWithCoord'])(_0x1401fc,_0x4ffb0d),_0x3e86c3=(0x0,_0x2042f3[_0x19ae51(0x24d)])(_0x6e08fc,_0x13273f);if(_0x1d199d&&_0x3e86c3){var _0x282315,_0x2e8b22;let _0x407979=_0x3e86c3['startX']-_0x1d199d[_0x19ae51(0x327)],_0x358f06=_0x3e86c3['startY']-_0x1d199d[_0x19ae51(0x3bd)];_0x4d45d6['left']=((_0x282315=_0x4d45d6[_0x19ae51(0x411)])==null?0x0:_0x282315)+_0x407979,_0x4d45d6[_0x19ae51(0x414)]=((_0x2e8b22=_0x4d45d6['top'])==null?0x0:_0x2e8b22)+_0x358f06;}}else{let _0x3f8216=(0x0,_0x2042f3[_0x19ae51(0x24d)])(_0x6e08fc,_0x13273f);if(_0x53bf2&&_0x3f8216){var _0x58f352,_0xa9964d;let _0x15143c=((_0x58f352=_0x4d45d6[_0x19ae51(0x411)])==null?0x0:_0x58f352)-_0x53bf2[_0x19ae51(0x411)],_0x41df4b=((_0xa9964d=_0x4d45d6['top'])==null?0x0:_0xa9964d)-_0x53bf2['top'];_0x4d45d6['left']=_0x3f8216[_0x19ae51(0x327)]+_0x15143c,_0x4d45d6[_0x19ae51(0x414)]=_0x3f8216[_0x19ae51(0x3bd)]+_0x41df4b;}else _0x4d45d6[_0x19ae51(0x411)]=_0x3f8216==null?void 0x0:_0x3f8216[_0x19ae51(0x327)],_0x4d45d6['top']=_0x3f8216==null?void 0x0:_0x3f8216[_0x19ae51(0x3bd)];}return{'transform':_0x4d45d6,'sheetTransform':(_0x480ded=(0x0,_0x3f4b55['transformToDrawingPosition'])(_0x4d45d6,_0x6e08fc))==null?_0x8a57eb:_0x480ded};}};_0x1e8b99=_0x164126([_0x4fa083(0x0,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x2042f3[_0x30c533(0x3e5)])),_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xe965b[_0x30c533(0x490)])),_0x4fa083(0x2,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x3f4b55[_0x30c533(0x31e)])),_0x4fa083(0x3,(0x0,_0xa2ae07['Inject'])(_0xe63f5c[_0x30c533(0x3dc)])),_0x4fa083(0x4,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x300372[_0x30c533(0x451)]))],_0x1e8b99);var _0x4edf9a=class extends _0x5663a2[_0x30c533(0x25f)]{constructor(_0x5ed7ca,_0x1156a9){const _0x4b01b6=_0x30c533;super(_0x5ed7ca,_0x1156a9),_0x54eac0(this,'_shapeId',null),_0x54eac0(this,_0x4b01b6(0x436),null),_0x54eac0(this,_0x4b01b6(0x3a1),null),_0x54eac0(this,_0x4b01b6(0x379),null),_0x54eac0(this,'_isStartConnectorPoint',!0x1),_0x1156a9&&this[_0x4b01b6(0x3e9)](_0x1156a9);}[_0x30c533(0x449)](){const _0x5112db=_0x30c533;return{'unitId':this[_0x5112db(0x3a1)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x5112db(0x403)]};}[_0x30c533(0x3e9)](_0x475d7a){const _0x337bcc=_0x30c533;_0x475d7a[_0x337bcc(0x454)]!==void 0x0&&(this[_0x337bcc(0x403)]=_0x475d7a['shapeId']),_0x475d7a[_0x337bcc(0x367)]!==void 0x0&&(this[_0x337bcc(0x3a1)]=_0x475d7a[_0x337bcc(0x367)]),_0x475d7a[_0x337bcc(0x481)]!==void 0x0&&(this[_0x337bcc(0x379)]=_0x475d7a['subUnitId']),_0x475d7a['isStartConnectorPoint']!==void 0x0&&(this['_isStartConnectorPoint']=_0x475d7a[_0x337bcc(0x2d5)]),this[_0x337bcc(0x2d0)]({'width':_0x475d7a['width'],'height':_0x475d7a[_0x337bcc(0x42b)]});}['_draw'](_0x21da8f){const _0x297af4=_0x30c533;_0x5663a2[_0x297af4(0x431)]['drawWith'](_0x21da8f,{'radius':_0x8713ee[_0x297af4(0x27f)][_0x297af4(0x1fd)],'fill':_0x8713ee[_0x297af4(0x27f)]['cxnPointFill'],'stroke':_0x8713ee[_0x297af4(0x27f)][_0x297af4(0x266)],'strokeWidth':_0x8713ee[_0x297af4(0x27f)][_0x297af4(0x21a)],'evented':!0x0});}};let _0x9291ab=class extends _0xa2ae07[_0x30c533(0x48b)]{constructor(_0x1d72f7,_0x1e3e73,_0x467486,_0x2d1d21,_0x1a69a8,_0x1281f2,_0x2c1418,_0x26e895){const _0x491b08=_0x30c533;super(),this['_context']=_0x1d72f7,this[_0x491b08(0x1d7)]=_0x1e3e73,this[_0x491b08(0x2a6)]=_0x467486,this[_0x491b08(0x32f)]=_0x2d1d21,this['_univerInstanceService']=_0x1a69a8,this[_0x491b08(0x2c4)]=_0x1281f2,this['_sheetShapeAdjustController']=_0x2c1418,this[_0x491b08(0x28f)]=_0x26e895,_0x54eac0(this,_0x491b08(0x200),void 0x0),_0x54eac0(this,_0x491b08(0x3a1),void 0x0),_0x54eac0(this,_0x491b08(0x379),void 0x0),_0x54eac0(this,_0x491b08(0x34a),[]),_0x54eac0(this,_0x491b08(0x25e),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),_0x54eac0(this,_0x491b08(0x271),void 0x0),_0x54eac0(this,_0x491b08(0x3ae),!0x1),_0x54eac0(this,_0x491b08(0x484),!0x1),_0x54eac0(this,_0x491b08(0x29b),!0x1),_0x54eac0(this,_0x491b08(0x45a),void 0x0),_0x54eac0(this,_0x491b08(0x465),void 0x0),_0x54eac0(this,_0x491b08(0x2b5),null),this['_initialize']();}[_0x30c533(0x27a)](){const _0x31f5c8=_0x30c533;this[_0x31f5c8(0x1b0)](),this[_0x31f5c8(0x479)]();}['_getDrawingRect'](){const _0x4c9f7d=_0x30c533;if(!this[_0x4c9f7d(0x3a1)]||!this[_0x4c9f7d(0x379)]||!this['_activeShapeId'])return;let _0x5d2bdd={'unitId':this['_unitId'],'subUnitId':this[_0x4c9f7d(0x379)],'drawingId':this[_0x4c9f7d(0x200)]},{transform:_0x3fda22}=this[_0x4c9f7d(0x32f)][_0x4c9f7d(0x3b1)](_0x5d2bdd);if(_0x3fda22)return{'left':_0x3fda22['left']||0x0,'top':_0x3fda22[_0x4c9f7d(0x414)]||0x0,'width':_0x3fda22[_0x4c9f7d(0x28c)]||0x0,'height':_0x3fda22[_0x4c9f7d(0x42b)]||0x0,'flipX':_0x3fda22[_0x4c9f7d(0x382)]||!0x1,'flipY':_0x3fda22['flipY']||!0x1,'angle':_0x3fda22['angle']};}[_0x30c533(0x1c7)](){const _0x5a0660=_0x30c533;if(this[_0x5a0660(0x3a1)]===void 0x0||this['_subUnitId']===void 0x0||this[_0x5a0660(0x200)]===void 0x0)return;let _0x38673c=this[_0x5a0660(0x2a6)]['getRenderById'](this[_0x5a0660(0x3a1)]);if(!_0x38673c||!_0x38673c[_0x5a0660(0x3c2)](_0xe965b[_0x5a0660(0x309)])['getCurrentSkeleton']())return;let {scene:_0xd9bc44}=_0x38673c,_0x205045=this[_0x5a0660(0x343)]();if(!_0x205045)return;let _0x5a159f=this[_0x5a0660(0x2c4)][_0x5a0660(0x2f4)](this['_unitId'],this['_subUnitId'],this[_0x5a0660(0x200)]);if(!_0x5a159f||!(0x0,_0x8713ee[_0x5a0660(0x3cc)])(_0x5a159f[_0x5a0660(0x1bc)]()))return;let _0x1bc713=_0x5a159f['getConnectorLinePoints']();if(_0x1bc713[_0x5a0660(0x22a)]<0x2)return;let _0x5eb6fe=new _0x8713ee['ConnectorCoordinateTransform'](_0x205045),_0x577db0=_0x1bc713[0x0],_0x273661=_0x1bc713[_0x1bc713[_0x5a0660(0x22a)]-0x1],_0x2f5050=_0x5eb6fe[_0x5a0660(0x209)](_0x577db0),_0x3e6945=_0x5eb6fe[_0x5a0660(0x209)](_0x273661);this['_addShapeConnectorHandlerObject'](_0xd9bc44,{..._0x2f5050},!0x0),this[_0x5a0660(0x378)](_0xd9bc44,{..._0x3e6945},!0x1);}['_addShapeConnectorHandlerObject'](_0x22ef86,_0x38130d,_0x6e5294){const _0x15441a=_0x30c533;if(this[_0x15441a(0x200)]===void 0x0||this[_0x15441a(0x3a1)]===void 0x0||this[_0x15441a(0x379)]===void 0x0)return;let _0x486a0d='connector-handler-'+this[_0x15441a(0x3a1)]+'-'+this[_0x15441a(0x379)]+'-'+this[_0x15441a(0x200)]+'-'+(_0x6e5294?_0x15441a(0x1cb):_0x15441a(0x3f9)),_0x4d78c3=_0x22ef86[_0x15441a(0x257)](_0x486a0d);if(_0x4d78c3){_0x4d78c3[_0x15441a(0x2d0)]({'left':_0x38130d['x']-_0x8713ee[_0x15441a(0x27f)][_0x15441a(0x1fd)],'top':_0x38130d['y']-_0x8713ee[_0x15441a(0x27f)][_0x15441a(0x1fd)]});return;}let _0x3765f3=new _0x4edf9a(_0x486a0d,{'left':_0x38130d['x']-_0x8713ee['ShapeDefaultConfig'][_0x15441a(0x1fd)],'top':_0x38130d['y']-_0x8713ee[_0x15441a(0x27f)]['cxnPointRadius'],'shapeId':this[_0x15441a(0x200)],'unitId':this[_0x15441a(0x3a1)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x6e5294,'width':_0x8713ee['ShapeDefaultConfig'][_0x15441a(0x1fd)]*0x2,'height':_0x8713ee['ShapeDefaultConfig'][_0x15441a(0x1fd)]*0x2,'zIndex':_0x5663a2['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this['_connectorObjects'][_0x15441a(0x1c2)](_0x3765f3),this[_0x15441a(0x1e5)](_0x3765f3,_0x22ef86,_0x6e5294),_0x22ef86['addObject'](_0x3765f3,_0x5663a2[_0x15441a(0x3da)]+0x1);}[_0x30c533(0x46e)](_0x5731e8,_0x133f5b){const _0x39b2ff=_0x30c533;var _0x282a32;let _0xd97856={'x':0x0,'y':0x0};if(!_0x5731e8||!_0x133f5b)return _0xd97856;let _0x9d0c9e=this[_0x39b2ff(0x2a6)][_0x39b2ff(0x3f7)](_0x5731e8);if(!_0x9d0c9e||!_0x9d0c9e[_0x39b2ff(0x3c2)](_0xe965b['SheetSkeletonManagerService'])[_0x39b2ff(0x3dd)](_0x133f5b))return _0xd97856;let _0x5abe65=_0x9d0c9e['with'](_0xe965b[_0x39b2ff(0x1ef)]),_0x2807c0=_0x5abe65==null?void 0x0:_0x5abe65['getCurrentScrollState']();if(!_0x2807c0)return _0xd97856;let _0x1cb85c=(_0x282a32=this[_0x39b2ff(0x19f)]['getUnit'](_0x5731e8))==null?void 0x0:_0x282a32[_0x39b2ff(0x326)](_0x133f5b);if(!_0x1cb85c)return _0xd97856;let _0x491459=(0x0,_0xe965b[_0x39b2ff(0x262)])(_0x2807c0[_0x39b2ff(0x1a5)],_0x2807c0['sheetViewStartColumn'],_0x9d0c9e[_0x39b2ff(0x1e7)],_0x1cb85c);return _0x491459?{'x':_0x491459[_0x39b2ff(0x3d4)],'y':_0x491459[_0x39b2ff(0x3fd)]}:_0xd97856;}[_0x30c533(0x227)](_0x8dda9e,_0x5be437){const _0x2a96cf=_0x30c533;var _0x43a7d3,_0x3f7e1e;let _0x429a30=(_0x43a7d3=this[_0x2a96cf(0x19f)][_0x2a96cf(0x46a)](_0x8dda9e))==null?void 0x0:_0x43a7d3[_0x2a96cf(0x326)](_0x5be437);return(_0x3f7e1e=_0x429a30==null?void 0x0:_0x429a30[_0x2a96cf(0x319)]())==null?0x1:_0x3f7e1e;}[_0x30c533(0x3d2)](_0x67a5ac,_0x296c18,_0x1c292c,_0x44e141,_0x58f0d3){const _0x2c9dbc=_0x30c533;this[_0x2c9dbc(0x45a)][_0x2c9dbc(0x241)](),this[_0x2c9dbc(0x465)][_0x2c9dbc(0x241)](),this[_0x2c9dbc(0x3c7)][_0x2c9dbc(0x284)]();let _0x17fca9=this[_0x2c9dbc(0x2b5)];this['_sheetBasicShapeConnectionPointController'][_0x2c9dbc(0x31c)]();let _0x114919=this[_0x2c9dbc(0x46e)](this[_0x2c9dbc(0x3a1)],this[_0x2c9dbc(0x379)]),_0x20a8d5=this['_getZoomRatio'](this[_0x2c9dbc(0x3a1)],this[_0x2c9dbc(0x379)]),_0x2e4bf6={'x':_0x1c292c[_0x2c9dbc(0x396)]/_0x20a8d5+_0x114919['x'],'y':_0x1c292c[_0x2c9dbc(0x25a)]/_0x20a8d5+_0x114919['y']},_0x316db5=_0x17fca9?_0x17fca9[_0x2c9dbc(0x236)]:_0x2e4bf6,_0x3e86a1=_0x44e141?this[_0x2c9dbc(0x271)][_0x2c9dbc(0x495)]():this[_0x2c9dbc(0x271)][_0x2c9dbc(0x2d8)](),_0x3e0d13=this['_activeShapeModel'][_0x2c9dbc(0x1bc)]();_0x3e86a1?this[_0x2c9dbc(0x3a3)](_0x3e86a1,_0x316db5,_0x44e141,_0x17fca9,_0x58f0d3):this[_0x2c9dbc(0x3c6)](_0x296c18,_0x316db5,_0x44e141,_0x17fca9,_0x58f0d3,_0x3e0d13),this[_0x2c9dbc(0x3ae)]=!0x1,this[_0x2c9dbc(0x29b)]=!0x1,this[_0x2c9dbc(0x2b5)]=null,_0x67a5ac[_0x2c9dbc(0x362)]();}['_handleFreeEndpointPointerUp'](_0x5c16ca,_0x3a3b76,_0x2b31c3,_0xe731ed,_0x4884ea,_0x5e513b){const _0x55240d=_0x30c533;let _0x399a67=_0x5e513b===_0x8713ee['ShapeTypeEnum'][_0x55240d(0x25b)]||_0x5e513b===_0x8713ee[_0x55240d(0x1fe)][_0x55240d(0x45d)],_0x3a5259=_0x2b31c3?_0x3a3b76:_0x5c16ca,_0xa0573c=_0x2b31c3?_0x5c16ca:_0x3a3b76,_0x3cfa5f=this['_activeShapeModel'][_0x55240d(0x1d0)](),_0xdabbad=(0x0,_0x8713ee[_0x55240d(0x1cd)])(this[_0x55240d(0x271)][_0x55240d(0x1bc)]()),_0xd1f17=_0x8713ee['ConnectorCoordinateTransform'][_0x55240d(0x30c)](_0x3cfa5f,_0xdabbad),_0x243c96=_0x399a67?_0x8713ee[_0x55240d(0x499)][_0x55240d(0x30f)](_0x3a5259,_0xa0573c):_0x8713ee[_0x55240d(0x499)][_0x55240d(0x29a)](_0x5c16ca,_0x3a3b76,_0x2b31c3,_0xd1f17);_0xe731ed?this['_executeConnectionCommand'](_0x243c96,_0xe731ed,_0x2b31c3,_0x4884ea):this[_0x55240d(0x2b2)](_0x243c96,_0x4884ea);}[_0x30c533(0x3a3)](_0x1282e9,_0x1bcd94,_0x141e25,_0x4d4adc,_0x2d3f32){const _0x32b6ac=_0x30c533;let _0x4a802=this[_0x32b6ac(0x3b5)](_0x1282e9);if(!_0x4a802)return;let _0x1041fa=_0x4d4adc?_0x4d4adc[_0x32b6ac(0x1cc)]:this[_0x32b6ac(0x372)](_0x4a802['point'],_0x1bcd94),_0x6f3d9d;if(_0x4d4adc){let _0x307bf2=this['_drawingManagerService'][_0x32b6ac(0x3b1)]({'unitId':_0x4d4adc['unitId'],'subUnitId':_0x4d4adc[_0x32b6ac(0x481)],'drawingId':_0x4d4adc[_0x32b6ac(0x454)]});if(_0x307bf2!=null&&_0x307bf2[_0x32b6ac(0x25d)]){let {left:_0x3c3520=0x0,top:_0x5270b5=0x0,width:_0x30cb9=0x0,height:_0x1093b4=0x0,angle:_0x4e8e1f}=_0x307bf2[_0x32b6ac(0x25d)];_0x6f3d9d=(0x0,_0x8713ee[_0x32b6ac(0x35d)])({'left':_0x3c3520,'top':_0x5270b5,'width':_0x30cb9,'height':_0x1093b4},_0x4e8e1f||0x0);}else _0x6f3d9d={'left':_0x1bcd94['x'],'top':_0x1bcd94['y'],'width':0x0,'height':0x0};}else _0x6f3d9d={'left':_0x1bcd94['x'],'top':_0x1bcd94['y'],'width':0x0,'height':0x0};let _0x5840a8={'point':_0x1bcd94,'angle':_0x1041fa,'bounds':_0x6f3d9d},_0x4e0fd4=_0x141e25?_0x5840a8:_0x4a802,_0x15ab16=_0x141e25?_0x4a802:_0x5840a8,_0x2de6ec=this['_activeShapeModel'][_0x32b6ac(0x1bc)](),_0x5eec83=(0x0,_0x8713ee[_0x32b6ac(0x2f5)])(_0x4e0fd4,_0x15ab16,_0x2de6ec);this[_0x32b6ac(0x271)][_0x32b6ac(0x2db)]();let _0xb0071d=(0x0,_0x8713ee['computeConnectorRouteLayout'])(_0x5eec83,_0x2de6ec);_0x4d4adc?this[_0x32b6ac(0x1df)](_0xb0071d,_0x4d4adc,_0x1282e9,_0x141e25,_0x2d3f32):this[_0x32b6ac(0x44f)](_0xb0071d,_0x1282e9,_0x141e25,_0x2d3f32);}[_0x30c533(0x341)](_0x4170db,_0x38642b,_0xb3f02e,_0x1a0cf9){const _0x1f20ef=_0x30c533;let _0x3ca642=this[_0x1f20ef(0x271)][_0x1f20ef(0x2cc)]()['relation'],_0x55fb3a={..._0x3ca642},_0x233e62={'shapeId':_0x38642b[_0x1f20ef(0x454)],'cxnIndex':_0x38642b[_0x1f20ef(0x3f3)]};_0xb3f02e?_0x55fb3a[_0x1f20ef(0x3f0)]=_0x233e62:_0x55fb3a['to']=_0x233e62;let _0x3b02e4=this['_activeShapeModel']['getShapeType'](),_0x1c9865=(0x0,_0x8713ee['computeConnectorRouteLayout'])(_0x4170db[_0x1f20ef(0x316)],_0x3b02e4),_0x4348d3={'unitId':this[_0x1f20ef(0x3a1)],'subUnitId':this[_0x1f20ef(0x379)],'connectorShapeId':this[_0x1f20ef(0x200)],'width':_0x4170db['worldRect'][_0x1f20ef(0x28c)],'height':_0x4170db[_0x1f20ef(0x2c6)]['height'],'left':_0x4170db[_0x1f20ef(0x2c6)][_0x1f20ef(0x411)],'top':_0x4170db[_0x1f20ef(0x2c6)][_0x1f20ef(0x414)],'flipX':_0x4170db[_0x1f20ef(0x2c6)][_0x1f20ef(0x382)]||!0x1,'flipY':_0x4170db[_0x1f20ef(0x2c6)][_0x1f20ef(0x2e6)]||!0x1,'newAdjustValues':_0x1c9865['adjustValues'],'oldAdjustValues':_0x1a0cf9,'oldRelation':_0x3ca642,'newRelation':_0x55fb3a,'newLineType':_0x1c9865[_0x1f20ef(0x2a1)],'oldLineType':_0x3b02e4};this['_commandService'][_0x1f20ef(0x45c)](_0xe63f5c[_0x1f20ef(0x437)]['id'],_0x4348d3);}[_0x30c533(0x2b2)](_0x10496e,_0xb7bbad){const _0x549038=_0x30c533;let _0x2c21ca=this['_activeShapeModel'][_0x549038(0x1bc)](),_0x1f514b=(0x0,_0x8713ee[_0x549038(0x3d1)])(_0x10496e[_0x549038(0x316)],_0x2c21ca),_0x2c2d49={'unitId':this[_0x549038(0x3a1)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x549038(0x200)],'width':_0x10496e[_0x549038(0x2c6)][_0x549038(0x28c)],'height':_0x10496e['worldRect'][_0x549038(0x42b)],'left':_0x10496e[_0x549038(0x2c6)]['left'],'top':_0x10496e[_0x549038(0x2c6)][_0x549038(0x414)],'flipX':_0x10496e['worldRect'][_0x549038(0x382)]||!0x1,'flipY':_0x10496e[_0x549038(0x2c6)][_0x549038(0x2e6)]||!0x1,'angle':_0x10496e[_0x549038(0x2c6)][_0x549038(0x1cc)]||0x0,'newAdjustValues':_0x1f514b[_0x549038(0x27d)],'oldAdjustValues':_0xb7bbad,'newLineType':_0x1f514b[_0x549038(0x2a1)],'oldLineType':_0x2c21ca};this[_0x549038(0x1d7)]['executeCommand'](_0xe63f5c['UpdateLineShapeResizeCommand']['id'],_0x2c2d49);}['_executeConnectedRouteConnectionCommand'](_0x30b245,_0x5b5d4a,_0x5de45f,_0x165a56,_0x26dbcc){const _0x43c06d=_0x30c533;let _0x19237e=this[_0x43c06d(0x271)]['getShapeData']()['relation'],_0x1bde52={..._0x19237e},_0x4195d8={'shapeId':_0x5b5d4a[_0x43c06d(0x454)],'cxnIndex':_0x5b5d4a['cxnIndex']};_0x165a56?(_0x1bde52['from']=_0x4195d8,_0x1bde52['to']=_0x5de45f):(_0x1bde52['from']=_0x5de45f,_0x1bde52['to']=_0x4195d8);let _0x1f2f51={'unitId':this[_0x43c06d(0x3a1)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x43c06d(0x200)],'width':_0x30b245[_0x43c06d(0x2c6)]['width'],'height':_0x30b245[_0x43c06d(0x2c6)][_0x43c06d(0x42b)],'left':_0x30b245[_0x43c06d(0x2c6)]['left'],'top':_0x30b245[_0x43c06d(0x2c6)]['top'],'flipX':_0x30b245['worldRect']['flipX']||!0x1,'flipY':_0x30b245[_0x43c06d(0x2c6)][_0x43c06d(0x2e6)]||!0x1,'oldAdjustValues':_0x26dbcc,'newAdjustValues':_0x30b245[_0x43c06d(0x27d)],'newLineType':_0x30b245['lineType'],'rotation':_0x30b245[_0x43c06d(0x3f6)],'oldRelation':_0x19237e,'newRelation':_0x1bde52};this['_commandService'][_0x43c06d(0x45c)](_0xe63f5c[_0x43c06d(0x437)]['id'],_0x1f2f51);}[_0x30c533(0x44f)](_0x30c1e7,_0x25a7bd,_0x508458,_0x3eec7c){const _0x501ded=_0x30c533;let _0x1b6f0f=this[_0x501ded(0x271)]['getShapeData']()[_0x501ded(0x371)],_0x12d70b={};_0x508458?(_0x12d70b['to']=_0x25a7bd,_0x12d70b[_0x501ded(0x3f0)]=void 0x0):(_0x12d70b[_0x501ded(0x3f0)]=_0x25a7bd,_0x12d70b['to']=void 0x0);let _0x3f12ce={'unitId':this[_0x501ded(0x3a1)],'subUnitId':this['_subUnitId'],'connectorShapeId':this['_activeShapeId'],'width':_0x30c1e7[_0x501ded(0x2c6)][_0x501ded(0x28c)],'height':_0x30c1e7['worldRect']['height'],'left':_0x30c1e7[_0x501ded(0x2c6)][_0x501ded(0x411)],'top':_0x30c1e7[_0x501ded(0x2c6)][_0x501ded(0x414)],'flipX':_0x30c1e7[_0x501ded(0x2c6)][_0x501ded(0x382)]||!0x1,'flipY':_0x30c1e7[_0x501ded(0x2c6)][_0x501ded(0x2e6)]||!0x1,'oldAdjustValues':_0x3eec7c,'newAdjustValues':_0x30c1e7[_0x501ded(0x27d)],'newLineType':_0x30c1e7['lineType'],'rotation':_0x30c1e7['rotation'],'oldRelation':_0x1b6f0f,'newRelation':_0x12d70b};this[_0x501ded(0x1d7)][_0x501ded(0x45c)](_0xe63f5c[_0x501ded(0x437)]['id'],_0x3f12ce);}[_0x30c533(0x1e5)](_0x1d1600,_0x317f94,_0x4ae0a8){const _0x3bcbf1=_0x30c533;this[_0x3bcbf1(0x40b)]((0x0,_0xa2ae07[_0x3bcbf1(0x24e)])(_0x1d1600[_0x3bcbf1(0x2a2)][_0x3bcbf1(0x1db)]((_0x1667e7,_0x263ae9)=>{const _0x5c55c1=_0x3bcbf1;let _0x3ed85e=_0x1d1600[_0x5c55c1(0x449)]();if(this['_activeShapeModel']=this[_0x5c55c1(0x2c4)]['getShapeModel'](_0x3ed85e[_0x5c55c1(0x367)],_0x3ed85e['subUnitId'],_0x3ed85e[_0x5c55c1(0x18a)]),!this['_activeShapeModel'])return;let _0x16ad5b={};this[_0x5c55c1(0x271)]['getAdjustNames']()[_0x5c55c1(0x37b)](_0x39c778=>{const _0x31257c=_0x5c55c1;let _0x2d4cd2=this[_0x31257c(0x271)][_0x31257c(0x4a9)](_0x39c778);_0x2d4cd2!==void 0x0&&(_0x16ad5b[_0x39c778]=_0x2d4cd2);});let _0x4fd3b2=this['_getDrawingRect']();if(!_0x4fd3b2)return;this[_0x5c55c1(0x25e)]={..._0x4fd3b2};let _0x3114de=new _0x8713ee[(_0x5c55c1(0x499))](this['_baseDrawingRect']),_0x4dfced=(0x0,_0x2c1288[_0x5c55c1(0x44d)])({'unitId':this['_unitId'],'subUnitId':this[_0x5c55c1(0x379)],'drawingId':this[_0x5c55c1(0x200)]}),_0xd59df8=_0x317f94[_0x5c55c1(0x257)](_0x4dfced);this[_0x5c55c1(0x3ae)]=!0x0,_0x317f94['disableObjectsEvent'](),this[_0x5c55c1(0x28f)][_0x5c55c1(0x354)](_0x317f94,this[_0x5c55c1(0x3a1)],this[_0x5c55c1(0x379)],this['_activeShapeId']),this[_0x5c55c1(0x2b5)]=null;let _0x54a805=this['_activeShapeModel'][_0x5c55c1(0x1d0)](),_0x29282c=_0x54a805[0x0],_0x139270=_0x54a805[_0x54a805['length']-0x1],_0x46908e=_0x4ae0a8?_0x3114de[_0x5c55c1(0x209)](_0x139270):_0x3114de[_0x5c55c1(0x209)](_0x29282c);this[_0x5c55c1(0x45a)]=_0x317f94[_0x5c55c1(0x18e)][_0x5c55c1(0x1db)]((_0x4a0913,_0x3820cb)=>{const _0x50fd34=_0x5c55c1;if(!this[_0x50fd34(0x3ae)]||!this[_0x50fd34(0x271)])return;this[_0x50fd34(0x29b)]||(this['_sheetShapeAdjustController'][_0x50fd34(0x455)](),this[_0x50fd34(0x271)][_0x50fd34(0x3b4)](),this[_0x50fd34(0x29b)]=!0x0);let _0x330bf0=this[_0x50fd34(0x46e)](this[_0x50fd34(0x3a1)],this[_0x50fd34(0x379)]),_0x274fdb=this[_0x50fd34(0x227)](this[_0x50fd34(0x3a1)],this[_0x50fd34(0x379)]),_0x5d578c={'x':_0x4a0913['offsetX']/_0x274fdb+_0x330bf0['x'],'y':_0x4a0913[_0x50fd34(0x25a)]/_0x274fdb+_0x330bf0['y']},_0xe61e42=this[_0x50fd34(0x28f)]['updateConnectionDetection'](_0x5d578c);if(_0xe61e42){let {shapeId:_0x22167f,unitId:_0x3faec0,subUnitId:_0x48aa94}=_0xe61e42;if(_0x22167f&&_0x3faec0&&_0x48aa94){let _0x3235ae=(0x0,_0x2c1288['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x3faec0,'subUnitId':_0x48aa94,'drawingId':_0x22167f});_0xe61e42[_0x50fd34(0x1cc)]=(_0x317f94[_0x50fd34(0x257)](_0x3235ae)[_0x50fd34(0x1cc)]||0x0)+_0xe61e42[_0x50fd34(0x1cc)];}}this[_0x50fd34(0x2b5)]=_0xe61e42;let _0x4c546f=_0x4ae0a8?this[_0x50fd34(0x271)][_0x50fd34(0x495)]():this['_activeShapeModel']['getStartConnectInfo']();if(_0x4c546f){this[_0x50fd34(0x23b)](_0x4c546f,_0x5d578c,_0x4ae0a8,_0xd59df8,_0x1d1600);return;}this[_0x50fd34(0x208)](_0x5d578c,_0x46908e,_0x4ae0a8,_0xd59df8,_0x1d1600);}),this['_cxtHandlerPointerUp']=_0x317f94[_0x5c55c1(0x260)]['subscribeEvent']((_0x5b78ad,_0x68c22c)=>{this['_handleConnectorPointerUp'](_0x317f94,_0x46908e,_0x5b78ad,_0x4ae0a8,_0x16ad5b);}),_0x263ae9['stopPropagation']();})));}[_0x30c533(0x1e8)](_0x3d8b1c,_0x3c0468,_0x28f8c6){const _0x5968bf=_0x30c533;let _0x906f67=this[_0x5968bf(0x2c4)]['getBasicShapeRelation'](_0x3d8b1c,_0x3c0468,_0x28f8c6);if(!_0x906f67||_0x906f67[_0x5968bf(0x22a)]===0x0)return;let _0x29136f=this['_renderManagerService']['getRenderById'](_0x3d8b1c);if(!_0x29136f)return;let {scene:_0x5b6003}=_0x29136f;for(let _0x3008e4 of _0x906f67){let _0x5ddc45=_0x3008e4[_0x5968bf(0x221)],_0x40abaf=this['_sheetsShapeService'][_0x5968bf(0x2f4)](_0x3d8b1c,_0x3c0468,_0x5ddc45);if(!_0x40abaf)continue;let _0x43efaf=_0x40abaf[_0x5968bf(0x2d8)](),_0x2f682f=_0x40abaf['getEndConnectInfo'](),_0x36d2c5=(_0x43efaf==null?void 0x0:_0x43efaf['shapeId'])===_0x28f8c6,_0x16591c=(0x0,_0x2c1288[_0x5968bf(0x44d)])({'unitId':_0x3d8b1c,'subUnitId':_0x3c0468,'drawingId':_0x5ddc45}),_0x13f4e0=_0x5b6003['getObjectIncludeInGroup'](_0x16591c);if(!_0x13f4e0)continue;let _0x125161=this[_0x5968bf(0x32f)][_0x5968bf(0x3b1)]({'unitId':_0x3d8b1c,'subUnitId':_0x3c0468,'drawingId':_0x5ddc45});_0x125161!=null&&_0x125161['transform']&&(_0x43efaf&&_0x2f682f?this['_rerouteConnectorLine'](_0x3d8b1c,_0x3c0468,_0x5ddc45,_0x40abaf,_0x43efaf,_0x2f682f,_0x13f4e0):this[_0x5968bf(0x2ed)](_0x3d8b1c,_0x3c0468,_0x5ddc45,_0x40abaf,_0x36d2c5?_0x43efaf:_0x2f682f,_0x36d2c5,_0x125161,_0x13f4e0));}}['_rerouteConnectorLine'](_0x50e946,_0x4e1f54,_0x1f5fa7,_0x398b00,_0x20a2f6,_0x38aca9,_0x49284d){const _0x553364=_0x30c533;let _0x3ac76b=this['_unitId'],_0x1f8974=this['_subUnitId'];this[_0x553364(0x3a1)]=_0x50e946,this[_0x553364(0x379)]=_0x4e1f54;let _0x54a9c6=this[_0x553364(0x3b5)](_0x20a2f6),_0x7e2c0f=this[_0x553364(0x3b5)](_0x38aca9);if(this[_0x553364(0x3a1)]=_0x3ac76b,this[_0x553364(0x379)]=_0x1f8974,!_0x54a9c6||!_0x7e2c0f)return;let _0x5cc787=_0x398b00['getShapeType'](),_0x2824a1=(0x0,_0x8713ee['routeConnectorLineShape'])(_0x54a9c6,_0x7e2c0f,_0x5cc787);_0x2824a1&&_0x398b00['updateLinePoints'](_0x2824a1);let _0x2d236b=(0x0,_0x8713ee[_0x553364(0x3d1)])(_0x2824a1,_0x5cc787);_0x2d236b[_0x553364(0x2a1)]!==_0x5cc787&&_0x398b00[_0x553364(0x497)](_0x2d236b[_0x553364(0x2a1)]),_0x398b00[_0x553364(0x3b4)]();for(let [_0x5df672,_0x511dea]of Object[_0x553364(0x3eb)](_0x2d236b[_0x553364(0x27d)]))_0x398b00[_0x553364(0x361)](_0x5df672,_0x511dea);_0x398b00[_0x553364(0x3a8)]({'width':_0x2d236b[_0x553364(0x2c6)][_0x553364(0x28c)],'height':_0x2d236b['worldRect'][_0x553364(0x42b)]}),_0x49284d[_0x553364(0x2d0)]({'flipX':_0x2d236b[_0x553364(0x2c6)][_0x553364(0x382)],'flipY':_0x2d236b['worldRect'][_0x553364(0x2e6)],'left':_0x2d236b[_0x553364(0x2c6)][_0x553364(0x411)],'top':_0x2d236b[_0x553364(0x2c6)][_0x553364(0x414)],'width':_0x2d236b[_0x553364(0x2c6)][_0x553364(0x28c)],'height':_0x2d236b[_0x553364(0x2c6)][_0x553364(0x42b)],'angle':_0x2d236b[_0x553364(0x3f6)]}),_0x398b00[_0x553364(0x2db)]();}[_0x30c533(0x2ed)](_0x145bf7,_0x2c7152,_0x636542,_0x3f1d32,_0x2c927f,_0x3b27c7,_0x39a5b6,_0x42ece9){const _0x169c63=_0x30c533;let _0x25fd57=this[_0x169c63(0x3a1)],_0x4cc8c3=this['_subUnitId'];this[_0x169c63(0x3a1)]=_0x145bf7,this[_0x169c63(0x379)]=_0x2c7152;let _0x33c982=this[_0x169c63(0x3b5)](_0x2c927f);if(this[_0x169c63(0x3a1)]=_0x25fd57,this[_0x169c63(0x379)]=_0x4cc8c3,!_0x33c982)return;let {left:_0x349f62=0x0,top:_0x487531=0x0,width:_0x565d4e=0x0,height:_0x1f35d6=0x0,flipX:_0x4ebcdc=!0x1,flipY:_0x37d917=!0x1}=_0x39a5b6[_0x169c63(0x25d)],_0x4abffd=_0x3f1d32[_0x169c63(0x1d0)]();if(_0x4abffd[_0x169c63(0x22a)]<0x2)return;let _0x2c00f1=new _0x8713ee[(_0x169c63(0x499))]({'left':_0x349f62,'top':_0x487531,'width':_0x565d4e,'height':_0x1f35d6,'flipX':_0x4ebcdc,'flipY':_0x37d917}),_0x119efa=_0x3b27c7?_0x4abffd[_0x4abffd['length']-0x1]:_0x4abffd[0x0],_0x21f3fd=_0x2c00f1[_0x169c63(0x209)](_0x119efa),_0x28fdd0=_0x8713ee[_0x169c63(0x499)][_0x169c63(0x29a)](_0x21f3fd,_0x33c982[_0x169c63(0x31d)],!_0x3b27c7);_0x42ece9[_0x169c63(0x2d0)]({'flipX':_0x28fdd0[_0x169c63(0x2c6)][_0x169c63(0x382)],'flipY':_0x28fdd0[_0x169c63(0x2c6)]['flipY'],'left':_0x28fdd0[_0x169c63(0x2c6)][_0x169c63(0x411)],'top':_0x28fdd0[_0x169c63(0x2c6)][_0x169c63(0x414)],'width':_0x28fdd0[_0x169c63(0x2c6)][_0x169c63(0x28c)],'height':_0x28fdd0[_0x169c63(0x2c6)][_0x169c63(0x42b)],'angle':_0x28fdd0['worldRect'][_0x169c63(0x1cc)]}),_0x42ece9[_0x169c63(0x3ce)](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0x4bd213=_0x30c533;this[_0x4bd213(0x34a)][_0x4bd213(0x22a)]!==0x0&&(this[_0x4bd213(0x34a)][_0x4bd213(0x37b)](_0x29e0bc=>{const _0x3c043f=_0x4bd213;_0x29e0bc[_0x3c043f(0x1e9)]();}),this['_connectorObjects']=[]);}[_0x30c533(0x479)](){const _0x454ced=_0x30c533;let _0x577cdc=this[_0x454ced(0x19f)][_0x454ced(0x189)](_0xa2ae07['UniverInstanceType'][_0x454ced(0x2b7)]);this['disposeWithMe'](_0x577cdc['pipe']((0x0,_0x50bd3e[_0x454ced(0x39e)])(_0x4cd83e=>_0x4cd83e?_0x4cd83e[_0x454ced(0x339)]['pipe']((0x0,_0x50bd3e['switchMap'])(_0x37e4fc=>{const _0x1c567f=_0x454ced;if(!_0x37e4fc)return _0x50bd3e[_0x1c567f(0x331)];let _0x54b7f3=_0x4cd83e['getUnitId'](),_0x317ccb=this[_0x1c567f(0x2a6)][_0x1c567f(0x3f7)](_0x54b7f3),_0x2e9841=_0x317ccb==null?void 0x0:_0x317ccb[_0x1c567f(0x1e7)];return _0x2e9841?(0x0,_0x50bd3e['of'])(_0x2e9841):_0x50bd3e[_0x1c567f(0x331)];})):_0x50bd3e['EMPTY']))[_0x454ced(0x2ba)](_0x423a9c=>{const _0x20fd09=_0x454ced;let _0x22385c=_0x423a9c[_0x20fd09(0x300)]();this['disposeWithMe'](_0x423a9c[_0x20fd09(0x18e)][_0x20fd09(0x1db)](_0xd9ee62=>{const _0x2c30bb=_0x20fd09;this['_isDrawingShapePointDown']&&this['_activeShapeId']&&this[_0x2c30bb(0x1b5)]();})),this['disposeWithMe'](_0x22385c['changeStart$'][_0x20fd09(0x2ba)](_0x7c4f1e=>{const _0x4e51a5=_0x20fd09;let {objects:_0x497469}=_0x7c4f1e;this[_0x4e51a5(0x1b5)](),_0x497469!==null&&_0x497469[_0x4e51a5(0x2ab)]===0x1&&_0x497469[_0x4e51a5(0x276)]()[_0x4e51a5(0x466)]()['value']instanceof _0x4da10f&&(this[_0x4e51a5(0x484)]=!0x0);})),this['disposeWithMe'](_0x22385c['changing$'][_0x20fd09(0x2ba)](_0x3ec77e=>{const _0x486743=_0x20fd09;this[_0x486743(0x484)]&&this[_0x486743(0x1b5)]();})),this[_0x20fd09(0x40b)](_0x423a9c[_0x20fd09(0x260)][_0x20fd09(0x1db)](()=>{const _0x331142=_0x20fd09;this[_0x331142(0x484)]&&(this['_isDrawingShapePointDown']=!0x1,this['_addShapeConnectorHandlerObjects']());})),this[_0x20fd09(0x40b)](_0x22385c['changeEnd$'][_0x20fd09(0x2ba)](()=>{const _0x4507fe=_0x20fd09;this[_0x4507fe(0x3a1)]&&this[_0x4507fe(0x379)]&&this[_0x4507fe(0x200)]&&this[_0x4507fe(0x32f)][_0x4507fe(0x3b1)]({'unitId':this['_unitId'],'subUnitId':this[_0x4507fe(0x379)],'drawingId':this[_0x4507fe(0x200)]})&&(this[_0x4507fe(0x1b5)](),this[_0x4507fe(0x1c7)]());}));}));}[_0x30c533(0x1b0)](){const _0x3b3e25=_0x30c533;this[_0x3b3e25(0x40b)](this[_0x3b3e25(0x32f)][_0x3b3e25(0x46c)][_0x3b3e25(0x2ba)](_0xc24b7a=>{const _0x1a260b=_0x3b3e25;if(_0xc24b7a[_0x1a260b(0x22a)]===0x1){let _0x2f8331=_0xc24b7a[0x0];if(_0x2f8331[_0x1a260b(0x2f0)]===_0xa2ae07[_0x1a260b(0x392)][_0x1a260b(0x1c8)]){let _0x52960a=this[_0x1a260b(0x2c4)]['getShapeModel'](_0x2f8331[_0x1a260b(0x367)],_0x2f8331[_0x1a260b(0x481)],_0x2f8331[_0x1a260b(0x18a)]);if(_0x52960a&&(0x0,_0x8713ee[_0x1a260b(0x3cc)])(_0x52960a[_0x1a260b(0x1bc)]())){this[_0x1a260b(0x200)]=_0x2f8331[_0x1a260b(0x18a)],this['_unitId']=_0x2f8331[_0x1a260b(0x367)],this[_0x1a260b(0x379)]=_0x2f8331[_0x1a260b(0x481)],this[_0x1a260b(0x1b5)](),this[_0x1a260b(0x1c7)]();return;}}}this[_0x1a260b(0x200)]=void 0x0,this[_0x1a260b(0x3a1)]=void 0x0,this[_0x1a260b(0x379)]=void 0x0,this[_0x1a260b(0x1b5)]();})),this['disposeWithMe'](this[_0x3b3e25(0x32f)][_0x3b3e25(0x38a)][_0x3b3e25(0x2ba)](_0x193092=>{const _0x579275=_0x3b3e25;if(_0x193092[_0x579275(0x22a)]===0x1){var _0x7882c9;let _0x2d69db=_0x193092[0x0],_0x2d55f3=(_0x7882c9=this[_0x579275(0x32f)][_0x579275(0x3b1)](_0x2d69db))==null?void 0x0:_0x7882c9[_0x579275(0x2f0)];_0x2d55f3===_0xa2ae07['DrawingTypeEnum'][_0x579275(0x1c8)]&&_0x2d69db[_0x579275(0x18a)]===this['_activeShapeId']?(this[_0x579275(0x1b5)](),this[_0x579275(0x1c7)]()):!this['_activeShapeId']&&_0x2d55f3===_0xa2ae07[_0x579275(0x392)]['DRAWING_SHAPE']&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x2d69db['unitId'],_0x2d69db[_0x579275(0x481)],_0x2d69db[_0x579275(0x18a)]);}})),this[_0x3b3e25(0x40b)](this[_0x3b3e25(0x32f)][_0x3b3e25(0x246)][_0x3b3e25(0x2ba)](_0x3c6cee=>{const _0x300db4=_0x3b3e25;for(let _0x5ef2ec of _0x3c6cee){let {drawingId:_0x38496b}=_0x5ef2ec;if(this[_0x300db4(0x200)]===_0x38496b){this[_0x300db4(0x4a3)]();return;}}}));}[_0x30c533(0x23b)](_0x54069d,_0x4806bc,_0x2fad2b,_0x21925d,_0x5b28de){const _0x701e48=_0x30c533;var _0x350afb,_0x12d22b;if(!this['_activeShapeModel'])return;let _0x1acb20=this[_0x701e48(0x3b5)](_0x54069d);if(!_0x1acb20)return;let _0x1f5ae0=this[_0x701e48(0x2b5)]?this[_0x701e48(0x2b5)][_0x701e48(0x236)]:_0x4806bc,_0x3cc440=this[_0x701e48(0x2b5)]?this[_0x701e48(0x2b5)][_0x701e48(0x1cc)]:this[_0x701e48(0x372)](_0x1acb20[_0x701e48(0x31d)],_0x1f5ae0),_0x5b29c0;if(this['_currentConnectionTarget']){let _0x580d72=this[_0x701e48(0x32f)][_0x701e48(0x3b1)]({'unitId':this[_0x701e48(0x2b5)]['unitId'],'subUnitId':this[_0x701e48(0x2b5)]['subUnitId'],'drawingId':this[_0x701e48(0x2b5)][_0x701e48(0x454)]});if(_0x580d72!=null&&_0x580d72[_0x701e48(0x25d)]){let {left:_0x3bf210=0x0,top:_0x588369=0x0,width:_0x36d359=0x0,height:_0x4c3d93=0x0,angle:_0x2aa657}=_0x580d72['transform'];_0x5b29c0=(0x0,_0x8713ee[_0x701e48(0x35d)])({'left':_0x3bf210,'top':_0x588369,'width':_0x36d359,'height':_0x4c3d93},_0x2aa657||0x0);}else _0x5b29c0={'left':_0x1f5ae0['x'],'top':_0x1f5ae0['y'],'width':0x0,'height':0x0};}else _0x5b29c0={'left':_0x1f5ae0['x'],'top':_0x1f5ae0['y'],'width':0x0,'height':0x0};let _0xf20c8f={'point':_0x1f5ae0,'angle':_0x3cc440,'bounds':_0x5b29c0},_0x3efeb5=_0x2fad2b?_0xf20c8f:_0x1acb20,_0x4b6745=_0x2fad2b?_0x1acb20:_0xf20c8f,_0x4247f=this[_0x701e48(0x271)][_0x701e48(0x1bc)](),_0x569db9=(0x0,_0x8713ee['routeConnectorLineShape'])(_0x3efeb5,_0x4b6745,_0x4247f);_0x569db9&&this[_0x701e48(0x271)][_0x701e48(0x435)](_0x569db9);let _0x18d535=(0x0,_0x8713ee[_0x701e48(0x3d1)])(_0x569db9,_0x4247f);_0x18d535[_0x701e48(0x2a1)]!==_0x4247f&&this['_activeShapeModel']['changeShapeType'](_0x18d535[_0x701e48(0x2a1)]);for(let [_0x23e164,_0x1cbd86]of Object[_0x701e48(0x3eb)](_0x18d535[_0x701e48(0x27d)]))this['_activeShapeModel']['setAdjustValueByName'](_0x23e164,_0x1cbd86);this[_0x701e48(0x271)][_0x701e48(0x3a8)]({'width':_0x18d535[_0x701e48(0x2c6)][_0x701e48(0x28c)],'height':_0x18d535[_0x701e48(0x2c6)][_0x701e48(0x42b)]}),_0x21925d['transformByState']({'flipX':_0x18d535['worldRect'][_0x701e48(0x382)],'flipY':_0x18d535[_0x701e48(0x2c6)][_0x701e48(0x2e6)],'left':_0x18d535[_0x701e48(0x2c6)][_0x701e48(0x411)],'top':_0x18d535[_0x701e48(0x2c6)]['top'],'width':_0x18d535[_0x701e48(0x2c6)][_0x701e48(0x28c)],'height':_0x18d535['worldRect']['height'],'angle':_0x18d535[_0x701e48(0x3f6)]}),_0x21925d['makeDirty'](!0x0);let _0x3e6f2d=(_0x350afb=(_0x12d22b=this[_0x701e48(0x2b5)])==null?void 0x0:_0x12d22b[_0x701e48(0x236)])==null?_0x4806bc:_0x350afb;_0x5b28de[_0x701e48(0x2d0)]({'left':_0x3e6f2d['x']-_0x8713ee[_0x701e48(0x27f)][_0x701e48(0x1fd)],'top':_0x3e6f2d['y']-_0x8713ee[_0x701e48(0x27f)][_0x701e48(0x1fd)]});}[_0x30c533(0x208)](_0x3f7f98,_0x395ccb,_0x26977c,_0x70cc9e,_0x562610){const _0x16e43b=_0x30c533;var _0x45204b,_0x3c1ae0,_0x262a84,_0x3936fa;let _0x2a34e5=(_0x45204b=(_0x3c1ae0=this[_0x16e43b(0x2b5)])==null?void 0x0:_0x3c1ae0[_0x16e43b(0x236)])==null?_0x3f7f98:_0x45204b,_0x44a6bd=_0x8713ee['ConnectorCoordinateTransform'][_0x16e43b(0x29a)](_0x395ccb,_0x2a34e5,_0x26977c);_0x70cc9e[_0x16e43b(0x2d0)]({'flipX':_0x44a6bd[_0x16e43b(0x2c6)][_0x16e43b(0x382)],'flipY':_0x44a6bd[_0x16e43b(0x2c6)][_0x16e43b(0x2e6)],'left':_0x44a6bd[_0x16e43b(0x2c6)][_0x16e43b(0x411)],'top':_0x44a6bd['worldRect'][_0x16e43b(0x414)],'width':_0x44a6bd[_0x16e43b(0x2c6)]['width'],'height':_0x44a6bd['worldRect'][_0x16e43b(0x42b)],'angle':_0x44a6bd[_0x16e43b(0x2c6)][_0x16e43b(0x1cc)]});let _0x31daaa=(_0x262a84=(_0x3936fa=this[_0x16e43b(0x2b5)])==null?void 0x0:_0x3936fa['worldPoint'])==null?_0x3f7f98:_0x262a84;_0x562610[_0x16e43b(0x2d0)]({'left':_0x31daaa['x']-_0x8713ee['ShapeDefaultConfig']['cxnPointRadius'],'top':_0x31daaa['y']-_0x8713ee[_0x16e43b(0x27f)]['cxnPointRadius']});}['_getConnectPointInfo'](_0x347b98){const _0x1fb3c6=_0x30c533;if(!this[_0x1fb3c6(0x3a1)]||!this[_0x1fb3c6(0x379)])return null;let {shapeId:_0x3cc053,cxnIndex:_0x588fa6}=_0x347b98,_0xb560e2=this[_0x1fb3c6(0x2c4)][_0x1fb3c6(0x2f4)](this[_0x1fb3c6(0x3a1)],this[_0x1fb3c6(0x379)],_0x3cc053);if(!_0xb560e2)return null;let _0x258cb8=this[_0x1fb3c6(0x32f)]['getDrawingByParam']({'unitId':this[_0x1fb3c6(0x3a1)],'subUnitId':this[_0x1fb3c6(0x379)],'drawingId':_0x3cc053});if(!(_0x258cb8!=null&&_0x258cb8['transform']))return null;let {left:_0x2988a1=0x0,top:_0x4af56f=0x0,width:_0x1dd437=0x0,height:_0x200002=0x0,flipX:_0x11d424=!0x1,flipY:_0xca00d3=!0x1,angle:_0x2b9f1d}=_0x258cb8[_0x1fb3c6(0x25d)];_0xb560e2['updateContext']({'width':_0x1dd437,'height':_0x200002});let _0x357108=_0xb560e2[_0x1fb3c6(0x245)]()[_0x1fb3c6(0x2a7)](_0x29e21e=>_0x29e21e[_0x1fb3c6(0x41f)]===_0x588fa6);if(!_0x357108)return null;let _0x100ecd=_0x11d424?_0x1dd437-_0x357108['x']:_0x357108['x'],_0x11daec=_0xca00d3?_0x200002-_0x357108['y']:_0x357108['y'];if(_0x2b9f1d!==0x0&&_0x2b9f1d!=null){let _0x5320c3=_0x2b9f1d*Math['PI']/0xb4,_0x253600=Math[_0x1fb3c6(0x40d)](_0x5320c3),_0x2d07e3=Math[_0x1fb3c6(0x3ba)](_0x5320c3),_0x9e2781=_0x1dd437/0x2,_0x2e7b1c=_0x200002/0x2,_0x210a53=_0x100ecd-_0x9e2781,_0x8cefc2=_0x11daec-_0x2e7b1c;_0x100ecd=_0x9e2781+_0x210a53*_0x253600-_0x8cefc2*_0x2d07e3,_0x11daec=_0x2e7b1c+_0x210a53*_0x2d07e3+_0x8cefc2*_0x253600;}_0x100ecd+=_0x2988a1,_0x11daec+=_0x4af56f;let _0x41abab=_0x357108['ang']/0xea60;_0x11d424&&(_0x41abab=0xb4-_0x41abab),_0xca00d3&&(_0x41abab=-_0x41abab),_0x41abab+=_0x2b9f1d||0x0,_0x41abab=(_0x41abab%0x168+0x168)%0x168;let _0x415729=(0x0,_0x8713ee[_0x1fb3c6(0x35d)])({'left':_0x2988a1,'top':_0x4af56f,'width':_0x1dd437,'height':_0x200002},_0x2b9f1d||0x0);return{'point':{'x':_0x100ecd,'y':_0x11daec},'angle':_0x41abab,'bounds':_0x415729};}[_0x30c533(0x372)](_0x40ee57,_0x34f153){const _0x5777d3=_0x30c533;let _0x90b97=_0x34f153['x']-_0x40ee57['x'],_0x130c10=_0x34f153['y']-_0x40ee57['y'];return Math[_0x5777d3(0x254)](_0x90b97)>=Math[_0x5777d3(0x254)](_0x130c10)?_0x90b97>=0x0?0xb4:0x0:_0x130c10>=0x0?0x10e:0x5a;}['_reset'](){const _0xb13297=_0x30c533;this[_0xb13297(0x200)]=void 0x0,this[_0xb13297(0x3a1)]=void 0x0,this[_0xb13297(0x379)]=void 0x0,this[_0xb13297(0x1b5)]();}[_0x30c533(0x1e9)](){const _0x8f4b8d=_0x30c533;this['_clearShapeConnectorHandlerObjects'](),super[_0x8f4b8d(0x1e9)]();}};_0x9291ab=_0x164126([_0x4fa083(0x1,_0xa2ae07['ICommandService']),_0x4fa083(0x2,_0x5663a2[_0x30c533(0x37f)]),_0x4fa083(0x3,_0x2c1288[_0x30c533(0x21e)]),_0x4fa083(0x4,_0xa2ae07[_0x30c533(0x335)]),_0x4fa083(0x5,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xe63f5c['SheetsShapeService'])),_0x4fa083(0x6,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x3dd7d6)),_0x4fa083(0x7,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x507830))],_0x9291ab);let _0x1ac36f=class extends _0xa2ae07['Disposable']{constructor(_0x2836bf,_0x27c407,_0x214d40){const _0x1f15d3=_0x30c533;super(),this[_0x1f15d3(0x36a)]=_0x2836bf,this[_0x1f15d3(0x32f)]=_0x27c407,this[_0x1f15d3(0x263)]=_0x214d40,this[_0x1f15d3(0x225)]();}[_0x30c533(0x225)](){const _0x3b9a6b=_0x30c533;this[_0x3b9a6b(0x40b)](this['_sheetPrintInterceptorService'][_0x3b9a6b(0x452)]['intercept'](this[_0x3b9a6b(0x36a)][_0x3b9a6b(0x452)][_0x3b9a6b(0x41c)]()[_0x3b9a6b(0x199)],{'handler':(_0x3f857e,_0x14a328,_0x2a868c)=>{const _0x477226=_0x3b9a6b;var _0x3008c3;let {unitId:_0x34ade9,subUnitId:_0x2739d7,scene:_0x1c2d90,resourceCollector:_0x21023e}=_0x14a328,_0x233d59=(_0x3008c3=this[_0x477226(0x32f)][_0x477226(0x2ca)](_0x34ade9))==null?void 0x0:_0x3008c3[_0x2739d7];return _0x233d59==null||_0x233d59[_0x477226(0x41a)][_0x477226(0x37b)](_0x5ac95a=>{const _0x26b1a3=_0x477226;let _0x903509=_0x233d59['data'][_0x5ac95a];_0x903509[_0x26b1a3(0x2f0)]===_0xa2ae07[_0x26b1a3(0x392)]['DRAWING_SHAPE']&&!_0x903509[_0x26b1a3(0x3e4)]&&this['_shapeRenderController'][_0x26b1a3(0x3c3)](_0x903509,_0x1c2d90,{'resourceCollector':_0x21023e});}),_0x2a868c(_0x3f857e);}}));}};_0x1ac36f=_0x164126([_0x4fa083(0x0,(0x0,_0xa2ae07['Inject'])(_0xe965b[_0x30c533(0x3fc)])),_0x4fa083(0x1,_0x2c1288[_0x30c533(0x21e)]),_0x4fa083(0x2,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x568a7c))],_0x1ac36f);let _0x107f86=class extends _0xa2ae07['Disposable']{constructor(_0x2e92b4,_0x228a16,_0x57d3ba){const _0x3e7bc2=_0x30c533;super(),this['_commandService']=_0x2e92b4,this[_0x3e7bc2(0x46b)]=_0x228a16,this[_0x3e7bc2(0x366)]=_0x57d3ba,this[_0x3e7bc2(0x1f3)]();}['_initPermission'](){const _0x15ed08=_0x30c533;this[_0x15ed08(0x40b)](this[_0x15ed08(0x1d7)][_0x15ed08(0x369)](_0x438191=>{const _0x4f5d3a=_0x15ed08;let _0x36952b,_0x363fb8;if(_0x438191['id']===_0xe63f5c[_0x4f5d3a(0x448)]['id']||_0x438191['id']===_0xe63f5c[_0x4f5d3a(0x486)]['id']||_0x438191['id']===_0xe63f5c[_0x4f5d3a(0x437)]['id']){let _0x333273=_0x438191[_0x4f5d3a(0x22b)];_0x36952b=_0x333273['unitId'],_0x363fb8=_0x333273[_0x4f5d3a(0x481)];}!_0x36952b||!_0x363fb8||this[_0x4f5d3a(0x366)][_0x4f5d3a(0x36f)]({'workbookTypes':[_0x2042f3['WorkbookEditablePermission']],'worksheetTypes':[_0x2042f3['WorksheetEditPermission']]},_0x36952b,_0x363fb8)||this[_0x4f5d3a(0x366)][_0x4f5d3a(0x4a8)](this[_0x4f5d3a(0x46b)]['t']('sheets-shape-ui.permission.editErr'));}));}};_0x107f86=_0x164126([_0x4fa083(0x0,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xa2ae07[_0x30c533(0x24b)])),_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xa2ae07['LocaleService'])),_0x4fa083(0x2,(0x0,_0xa2ae07['Inject'])(_0x2042f3['SheetPermissionCheckController']))],_0x107f86);let _0x290b8b=class extends _0xa2ae07[_0x30c533(0x48b)]{constructor(_0x5b6d99,_0x773a47,_0x560e65,_0x360ff8,_0x66f468,_0x345149,_0x3ef40f,_0x3543c4,_0x290e24,_0x2eb2de,_0x2b491e){const _0x34e74c=_0x30c533;super(),this[_0x34e74c(0x19f)]=_0x5b6d99,this[_0x34e74c(0x45f)]=_0x773a47,this[_0x34e74c(0x293)]=_0x560e65,this[_0x34e74c(0x2c4)]=_0x360ff8,this[_0x34e74c(0x46b)]=_0x66f468,this[_0x34e74c(0x1d7)]=_0x345149,this[_0x34e74c(0x32f)]=_0x3ef40f,this[_0x34e74c(0x30b)]=_0x3543c4,this[_0x34e74c(0x24f)]=_0x290e24,this[_0x34e74c(0x2a6)]=_0x2eb2de,this[_0x34e74c(0x450)]=_0x2b491e,_0x54eac0(this,_0x34e74c(0x32c),null),_0x54eac0(this,_0x34e74c(0x1bb),null),_0x54eac0(this,_0x34e74c(0x264),!0x1),_0x54eac0(this,_0x34e74c(0x32a),0x0),_0x54eac0(this,_0x34e74c(0x1ff),new Set()),_0x54eac0(this,_0x34e74c(0x298),[]),this[_0x34e74c(0x2fc)](),this[_0x34e74c(0x40b)](this[_0x34e74c(0x19f)][_0x34e74c(0x189)](_0xa2ae07['UniverInstanceType'][_0x34e74c(0x2b7)])[_0x34e74c(0x2ba)](_0x478978=>{const _0x44a572=_0x34e74c;if(!_0x478978){var _0x22b516;(_0x22b516=this['_sidebarDisposable'])==null||_0x22b516['dispose']();return;}this[_0x44a572(0x1d6)](_0x478978);})),this['_registerOperations'](),this[_0x34e74c(0x410)](),this['initShapePopupMenu'](),this[_0x34e74c(0x40b)](this['_shapeTextEditingService'][_0x34e74c(0x202)][_0x34e74c(0x2ba)](_0x3426f1=>{const _0x5c7d84=_0x34e74c;_0x3426f1&&this[_0x5c7d84(0x33b)]();}));}['_initMenu'](){const _0xc9c677=_0x30c533;this[_0xc9c677(0x293)][_0xc9c677(0x3a7)](_0x8aef12);}[_0x30c533(0x410)](){const _0x727924=_0x30c533;this[_0x727924(0x30b)]['registerFeatureMenu'](_0xa2ae07[_0x727924(0x392)][_0x727924(0x1c8)],this[_0x727924(0x39d)][_0x727924(0x3cd)](this)),this[_0x727924(0x30b)][_0x727924(0x384)](_0xa2ae07[_0x727924(0x392)][_0x727924(0x1c8)],0x6,0x4);}[_0x30c533(0x325)](){const _0x167c31=_0x30c533;this[_0x167c31(0x19f)][_0x167c31(0x1b2)](_0xa2ae07[_0x167c31(0x44b)]['UNIVER_SHEET'])[_0x167c31(0x37b)](_0x2f33f7=>this['_createShapePopupMenu'](_0x2f33f7));}[_0x30c533(0x39d)](_0x4348ee,_0x12bd52,_0x3d21ac,_0x4a053){const _0x1380f0=_0x30c533;return[{'label':_0x1380f0(0x2d3),'index':0x0,'commandId':_0x3a4b3e['id'],'commandParams':{'unitId':_0x4348ee,'subUnitId':_0x12bd52,'drawingId':_0x3d21ac},'disable':_0x4a053===_0xa2ae07[_0x1380f0(0x392)][_0x1380f0(0x3ca)]},{'label':_0x1380f0(0x1e0),'index':0x1,'commandId':_0x3f4b55[_0x1380f0(0x390)]['id'],'commandParams':{'unitId':_0x4348ee,'drawings':[{'unitId':_0x4348ee,'subUnitId':_0x12bd52,'drawingId':_0x3d21ac,'drawingType':_0x4a053}]},'disable':!0x1},{'label':_0x1380f0(0x305),'index':0x2,'commandId':_0x2ae476['id'],'commandParams':{'unitId':_0x4348ee,'subUnitId':_0x12bd52,'drawingId':_0x3d21ac},'disable':!0x1},{'label':_0x1380f0(0x3c0),'index':0x3,'commandId':_0xe63f5c[_0x1380f0(0x1a8)]['id'],'commandParams':{'unitId':_0x4348ee,'subUnitId':_0x12bd52,'shapeId':_0x3d21ac,'flipH':!0x0},'disable':!0x1},{'label':_0x1380f0(0x1b9),'index':0x4,'commandId':_0xe63f5c['ToggleSheetsShapeFlipCommand']['id'],'commandParams':{'unitId':_0x4348ee,'subUnitId':_0x12bd52,'shapeId':_0x3d21ac,'flipV':!0x0},'disable':!0x1},{'label':_0x1380f0(0x3ed),'index':0x4,'commandId':_0xe63f5c[_0x1380f0(0x2e8)]['id'],'commandParams':{'unitId':_0x4348ee,'subUnitId':_0x12bd52,'shapeId':_0x3d21ac,'rotate':0x5a},'disable':!0x1},{'label':_0x1380f0(0x212),'index':0x4,'commandId':_0xe63f5c[_0x1380f0(0x2e8)]['id'],'commandParams':{'unitId':_0x4348ee,'subUnitId':_0x12bd52,'shapeId':_0x3d21ac,'rotate':-0x5a},'disable':!0x1},{'label':'sheets-shape-ui.toggleTextVertical','index':0x4,'commandId':_0xe63f5c[_0x1380f0(0x38e)]['id'],'commandParams':{'unitId':_0x4348ee,'subUnitId':_0x12bd52,'shapeId':_0x3d21ac},'disable':!0x1}];}[_0x30c533(0x279)](_0x4aa413,_0xaeb48,_0x4f736a){const _0x1cc9f7=_0x30c533;let _0x5f0469=this[_0x1cc9f7(0x2c4)][_0x1cc9f7(0x48f)](_0x4aa413,_0xaeb48,_0x4f736a),_0x27c310=this[_0x1cc9f7(0x2c4)]['getShapeDataById'](_0x4aa413,_0xaeb48,_0x4f736a);return _0x5f0469!==void 0x0&&_0x27c310!==void 0x0?{'shapeData':_0x27c310,'shapeId':_0x4f736a,'shapeType':_0x5f0469,'unitId':_0x4aa413,'subUnitId':_0xaeb48,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}[_0x30c533(0x1d6)](_0x4c8f7f){const _0x48f329=_0x30c533;if(!_0x4c8f7f)return;let _0x3a5c89=_0x4c8f7f[_0x48f329(0x22e)]();this[_0x48f329(0x2a6)][_0x48f329(0x408)](_0x3a5c89)&&!this[_0x48f329(0x1ff)][_0x48f329(0x408)](_0x3a5c89)&&(this[_0x48f329(0x4a1)](_0x3a5c89),this[_0x48f329(0x1ff)][_0x48f329(0x39c)](_0x3a5c89));}['_clearPopups'](){const _0x457ce4=_0x30c533;this[_0x457ce4(0x298)][_0x457ce4(0x37b)](_0x87eda8=>_0x87eda8[_0x457ce4(0x1e9)]()),this[_0x457ce4(0x298)][_0x457ce4(0x22a)]=0x0;}[_0x30c533(0x4a1)](_0x429812){const _0x35f9b7=_0x30c533;var _0x4c2f30;let _0x48aedb=(_0x4c2f30=this[_0x35f9b7(0x2a6)]['getRenderById'](_0x429812))==null?void 0x0:_0x4c2f30['scene'],_0x1c2b54=_0x48aedb==null?void 0x0:_0x48aedb[_0x35f9b7(0x300)]();!_0x48aedb||!_0x1c2b54||(this['disposeWithMe'](_0x1c2b54[_0x35f9b7(0x275)]['subscribe'](()=>{const _0x28d654=_0x35f9b7;let _0x2edf00=_0x1c2b54[_0x28d654(0x220)]();if(this[_0x28d654(0x33b)](),this[_0x28d654(0x264)]||_0x2edf00[_0x28d654(0x2ab)]>0x1)return;let _0x99bb1c=_0x2edf00['values']()[_0x28d654(0x466)]()[_0x28d654(0x19e)];if(!_0x99bb1c)return;let _0x3f2336=this[_0x28d654(0x32f)][_0x28d654(0x416)](_0x99bb1c[_0x28d654(0x427)]);if(!_0x3f2336||_0x3f2336[_0x28d654(0x2f0)]!==_0xa2ae07['DrawingTypeEnum'][_0x28d654(0x1c8)])return;let {unitId:_0x1fba4e,subUnitId:_0x10091e,drawingId:_0x39866a,drawingType:_0x275cb3}=_0x3f2336,_0x4d7f0a=this[_0x28d654(0x279)](_0x1fba4e,_0x10091e,_0x39866a);if(!_0x4d7f0a)return;this[_0x28d654(0x24f)][_0x28d654(0x365)](_0xa2ae07[_0x28d654(0x244)],!0x0);let _0x36f273=this[_0x28d654(0x30b)][_0x28d654(0x432)](_0x99bb1c,{'componentKey':_0x339a89,'direction':_0x28d654(0x195),'offset':[0x0,_0x2a5532[_0x28d654(0x394)]],'extraProps':{'unitId':_0x1fba4e,'subUnitId':_0x10091e,'drawingId':_0x39866a,'drawingType':_0x275cb3,'shapeType':_0x4d7f0a[_0x28d654(0x20f)],'shapeData':_0x4d7f0a[_0x28d654(0x2d6)]}});this[_0x28d654(0x298)]['push'](this[_0x28d654(0x40b)](_0x36f273)),this[_0x28d654(0x32f)]['getFocusDrawings']()[_0x28d654(0x2a7)](_0x2fb13d=>_0x2fb13d[_0x28d654(0x367)]===_0x1fba4e&&_0x2fb13d[_0x28d654(0x481)]===_0x10091e&&_0x2fb13d['drawingId']===_0x39866a)||this[_0x28d654(0x32f)]['focusDrawing']([{'unitId':_0x1fba4e,'subUnitId':_0x10091e,'drawingId':_0x39866a}]);})),this['disposeWithMe'](_0x1c2b54[_0x35f9b7(0x418)]['subscribe'](()=>{const _0x39039b=_0x35f9b7;this[_0x39039b(0x33b)](),this[_0x39039b(0x24f)]['setContextValue'](_0xa2ae07['FOCUSING_COMMON_DRAWINGS'],!0x1),this['_drawingManagerService'][_0x39039b(0x409)](null);})),this[_0x35f9b7(0x40b)](_0x1c2b54[_0x35f9b7(0x1e4)][_0x35f9b7(0x2ba)](()=>{const _0x347d8f=_0x35f9b7;this[_0x347d8f(0x33b)]();})),this[_0x35f9b7(0x40b)](_0x1c2b54['changeStart$']['subscribe'](()=>{const _0x141e2c=_0x35f9b7;this[_0x141e2c(0x33b)]();})));}[_0x30c533(0x47c)](){const _0x1f0056=_0x30c533;this['disposeWithMe'](this[_0x1f0056(0x1d7)][_0x1f0056(0x3e1)](_0x229475=>{const _0x5069bd=_0x1f0056;if(_0x229475['id']===_0x3a4b3e['id']){let {unitId:_0x33b411,subUnitId:_0x89503e,drawingId:_0x37fee0}=_0x229475[_0x5069bd(0x22b)];this[_0x5069bd(0x32a)]+=0x1,this[_0x5069bd(0x1bb)]=this[_0x5069bd(0x279)](_0x33b411,_0x89503e,_0x37fee0),this[_0x5069bd(0x33b)](),this[_0x5069bd(0x472)]();}if(_0x229475['id']===_0x2ae476['id']&&(this['_activeShapeInfo']=null,this[_0x5069bd(0x35e)]()),_0x229475['id']===_0xe63f5c[_0x5069bd(0x268)]['id']){let {unitId:_0x270675,subUnitId:_0x5854c8,shapeId:_0x2f1cd7}=_0x229475[_0x5069bd(0x22b)];if(this[_0x5069bd(0x1bb)]&&this[_0x5069bd(0x1bb)][_0x5069bd(0x454)]===_0x2f1cd7){let _0x36a721=this['_getShapeInfo'](_0x270675,_0x5854c8,_0x2f1cd7);_0x36a721&&(this[_0x5069bd(0x32a)]+=0x1,_0x36a721['version']=this['_shapeEditPanelVersion'],this[_0x5069bd(0x1bb)]=_0x36a721,this[_0x5069bd(0x264)]&&this[_0x5069bd(0x472)]());}}})),this[_0x1f0056(0x40b)](this['_drawingManagerService'][_0x1f0056(0x46c)][_0x1f0056(0x2ba)](_0x250bd5=>{const _0x483df3=_0x1f0056;if(this[_0x483df3(0x264)]===!0x1)return;if(_0x250bd5[_0x483df3(0x22a)]===0x0){this[_0x483df3(0x1bb)]=null,this[_0x483df3(0x35e)]();return;}if(_0x250bd5[_0x483df3(0x22a)]===0x1&&_0x250bd5[0x0][_0x483df3(0x2f0)]===_0xa2ae07[_0x483df3(0x392)][_0x483df3(0x1c8)]&&(this[_0x483df3(0x32a)]+=0x1,this[_0x483df3(0x1bb)]=this['_getShapeInfo'](_0x250bd5[0x0][_0x483df3(0x367)],_0x250bd5[0x0][_0x483df3(0x481)],_0x250bd5[0x0]['drawingId']),this[_0x483df3(0x1bb)])){this['_openShapeEditPanel']();return;}let _0x20ba7c=_0x250bd5[_0x483df3(0x35a)](_0x5d8100=>_0x5d8100[_0x483df3(0x2f0)]===_0xa2ae07['DrawingTypeEnum'][_0x483df3(0x1c8)]);if(_0x250bd5['length']>0x1&&_0x20ba7c[_0x483df3(0x22a)]===_0x250bd5['length']){if(this[_0x483df3(0x32a)]+=0x1,this['_activeShapeInfo']=this[_0x483df3(0x279)](_0x250bd5[0x0]['unitId'],_0x250bd5[0x0]['subUnitId'],_0x250bd5[0x0]['drawingId']),this[_0x483df3(0x1bb)]){this['_openShapeEditPanel']();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x483df3(0x1bb)]=this[_0x483df3(0x279)](_0x250bd5[0x0]['unitId'],_0x250bd5[0x0][_0x483df3(0x481)],_0x250bd5[0x0]['drawingId']),this[_0x483df3(0x1bb)]){this[_0x483df3(0x1bb)]['disableShapeOption']=!0x0,this[_0x483df3(0x472)]();return;}}this[_0x483df3(0x35e)]();}));}[_0x30c533(0x472)](){const _0x471225=_0x30c533;this[_0x471225(0x1bb)]&&(this[_0x471225(0x32c)]=this[_0x471225(0x45f)][_0x471225(0x277)]({'id':_0x24cb15,'header':{'title':this['_localeService']['t'](_0x471225(0x2ac))},'width':0x184,'children':{'label':_0x24cb15,...this[_0x471225(0x1bb)]},'onClose':()=>{const _0x487455=_0x471225;this[_0x487455(0x32f)][_0x487455(0x409)](null),this[_0x487455(0x24f)][_0x487455(0x365)](_0xa2ae07[_0x487455(0x244)],!0x1),this[_0x487455(0x32c)]=null;}}),this[_0x471225(0x264)]=!0x0);}[_0x30c533(0x35e)](){const _0x4b04bc=_0x30c533;this[_0x4b04bc(0x264)]=!0x1,this[_0x4b04bc(0x45f)][_0x4b04bc(0x3d8)](_0x24cb15),this[_0x4b04bc(0x32c)]=null,this[_0x4b04bc(0x24f)]['setContextValue'](_0xa2ae07[_0x4b04bc(0x244)],!0x1),this['_drawingManagerService']['focusDrawing'](null);}};_0x290b8b=_0x164126([_0x4fa083(0x0,_0xa2ae07[_0x30c533(0x335)]),_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x23402e[_0x30c533(0x3ad)])),_0x4fa083(0x2,_0x23402e['IMenuManagerService']),_0x4fa083(0x3,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xe63f5c['SheetsShapeService'])),_0x4fa083(0x4,(0x0,_0xa2ae07['Inject'])(_0xa2ae07[_0x30c533(0x18f)])),_0x4fa083(0x5,_0xa2ae07[_0x30c533(0x24b)]),_0x4fa083(0x6,_0x2c1288['IDrawingManagerService']),_0x4fa083(0x7,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xe965b['SheetCanvasPopManagerService'])),_0x4fa083(0x8,_0xa2ae07[_0x30c533(0x3b3)]),_0x4fa083(0x9,_0x5663a2['IRenderManagerService']),_0x4fa083(0xa,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x580c45))],_0x290b8b);let _0x261eb8=class extends _0xa2ae07['Plugin']{constructor(_0x2dbcfb=_0x1a263c,_0x2e7a56,_0x3684f9,_0x564ad5,_0x55bbab){const _0x534ec6=_0x30c533;super(),this[_0x534ec6(0x49f)]=_0x2dbcfb,this[_0x534ec6(0x322)]=_0x2e7a56,this[_0x534ec6(0x1d7)]=_0x3684f9,this[_0x534ec6(0x30e)]=_0x564ad5,this[_0x534ec6(0x2a6)]=_0x55bbab;let {..._0x3bdde1}=(0x0,_0xa2ae07[_0x534ec6(0x333)])({},_0x1a263c,this[_0x534ec6(0x49f)]);this[_0x534ec6(0x30e)][_0x534ec6(0x37d)](_0x534ec6(0x1d5),_0x3bdde1),this[_0x534ec6(0x233)]();}[_0x30c533(0x2bc)](){const _0x33e4bd=_0x30c533;(0x0,_0xa2ae07[_0x33e4bd(0x400)])(this[_0x33e4bd(0x322)],[[_0x290b8b],[_0x9c314e],[_0x568a7c],[_0x1ac36f]]);}['onSteady'](){const _0x5c4308=_0x30c533;this[_0x5c4308(0x322)][_0x5c4308(0x1a3)](_0x290b8b)[_0x5c4308(0x325)]();}['onReady'](){const _0x1fdd4c=_0x30c533;[[_0x507830],[_0x3dd7d6],[_0x1e8b99]][_0x1fdd4c(0x37b)](_0x2a10ca=>this[_0x1fdd4c(0x322)]['add'](_0x2a10ca)),(0x0,_0xa2ae07[_0x1fdd4c(0x400)])(this[_0x1fdd4c(0x322)],[[_0x1e8b99],[_0x3dd7d6]]),this[_0x1fdd4c(0x2a6)][_0x1fdd4c(0x1f7)](_0xa2ae07[_0x1fdd4c(0x44b)][_0x1fdd4c(0x2b7)],[_0x507830]),this['_renderManagerService']['registerRenderModule'](_0xa2ae07[_0x1fdd4c(0x44b)]['UNIVER_SHEET'],[_0x16b33d]),this['_renderManagerService'][_0x1fdd4c(0x1f7)](_0xa2ae07[_0x1fdd4c(0x44b)][_0x1fdd4c(0x2b7)],[_0x9291ab]),this[_0x1fdd4c(0x2a6)]['registerRenderModule'](_0xa2ae07[_0x1fdd4c(0x44b)][_0x1fdd4c(0x2b7)],[_0x3659ed]),this[_0x1fdd4c(0x2a6)]['registerRenderModule'](_0xa2ae07[_0x1fdd4c(0x44b)][_0x1fdd4c(0x402)],[_0x2a1cdb]);}[_0x30c533(0x469)](){const _0x4bb275=_0x30c533;this[_0x4bb275(0x322)][_0x4bb275(0x39c)]([_0x3a8708]),this[_0x4bb275(0x322)][_0x4bb275(0x1a3)](_0x3a8708);let _0x42a808=this[_0x4bb275(0x322)];[[_0x290b8b],[_0x9c314e],[_0x568a7c],[_0x1ac36f],[_0x5e4c74],[_0x580c45],[_0x1d9a43],[_0x319800],[_0x107f86]]['forEach'](_0x12bbdb=>_0x42a808[_0x4bb275(0x39c)](_0x12bbdb)),(0x0,_0xa2ae07[_0x4bb275(0x400)])(this[_0x4bb275(0x322)],[[_0x290b8b],[_0x9c314e],[_0x568a7c],[_0x5e4c74],[_0x580c45],[_0x1d9a43],[_0x319800],[_0x107f86]]);}['_initCommands'](){const _0x24060a=_0x30c533;[_0x9938a3,_0xc12450,_0x2ae476,_0x3a4b3e,_0xebe58f,_0x2f0931][_0x24060a(0x37b)](_0x5f403f=>this['disposeWithMe'](this[_0x24060a(0x1d7)]['registerCommand'](_0x5f403f)));}};_0x54eac0(_0x261eb8,_0x30c533(0x38f),_0xa2ae07[_0x30c533(0x44b)][_0x30c533(0x2b7)]),_0x54eac0(_0x261eb8,'pluginName','SHEET_SHAPE_UI_PLUGIN'),_0x54eac0(_0x261eb8,_0x30c533(0x213),_0x3d8ba4),_0x54eac0(_0x261eb8,_0x30c533(0x475),_0x13a4b6),_0x261eb8=_0x164126([(0x0,_0xa2ae07[_0x30c533(0x470)])(_0x3a0fb2[_0x30c533(0x270)],_0x2a5532[_0x30c533(0x356)],_0x300372[_0x30c533(0x480)],_0xe63f5c[_0x30c533(0x47d)]),_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xa2ae07['Injector'])),_0x4fa083(0x2,_0xa2ae07['ICommandService']),_0x4fa083(0x3,_0xa2ae07[_0x30c533(0x287)]),_0x4fa083(0x4,_0x5663a2[_0x30c533(0x37f)])],_0x261eb8),_0x4f30a0[_0x30c533(0x443)]=_0x8aef12,Object[_0x30c533(0x397)](_0x4f30a0,_0x30c533(0x35c),{'enumerable':!0x0,'get':function(){return _0x261eb8;}});}));
1
+ function _0x3901(){const _0x5c1c13=['clear','MEDIA','DrawingCommonPanel','CROSSHAIR','_adjHandlerPointerMove','_updateShapeAdjustControls','StraightConnector1','IUniverInstanceService','_loadShapePictureFill','asObservable','iterator','SELECTOR','getTransformer','_init','IconManager','824612kinpZb','getConnectionInfo','_shapeTextEditingService','SetDrawingApplyMutation','_handleConnectedEndpointMove','gdRefR','getDrawingOrder','_sheetCanvasPopManagerService','path','_setTransForm','_transformCalculateSrcRect','setSrcRect','ToggleSheetsShapeFlipCommand','formulaBinding','slice','_configService','animationEnabled','registerRenderModule','_baseWidth','close','div','discreteRangeToRange','_sheetSkeletonService','UniverProSheetsShapeUi','decorate','@univerjs/sheets-drawing','useState','_addShapeConnectorHandlerObjects','_calculateFreeEndpointAngle','@univerjs-pro/license','_createCopyInfoByRange','IUndoRedoService','_isShouldShowDrawingShapeAdjust','cos','_registerFocusChangeHandler','_initCommands','PREDEFINED_HOOK_NAME','interceptor','scene','_showConnectionSites','transformToDrawingPosition','computeConnectorResizeLayout','ISheetClipboardService','UniverCore','smartArt','getZoomRatio','flipY','ShapeFormulaService','_initSelection','_isOpenedShapeEditPanel','Observable','Large','MenuItemType','sectionCanvas','insertGroupObject','subscribeEvent','oKey','createShapeFormulaDocument','memo','OTHERS','_urlImageService','VIEW_MAIN_LEFT_TOP','REMOVE','OBJECT_LIST_FLOATING_SECTION_ID','createInternalEditorID','_baseShapeTop','DrawingTypeEnum','getSheetBySheetId','DrawingImageClipService','Injector','forwardRef','_drawSimpleText','rect','getDrawingSearch','useRef','isHit','selectable','function','Vector2','_getSceneAndTransformerByDrawingSearch','getCurrentScrollState','_currentConnectionTarget','object','multiply','error','_loadAndSetImage','_baseShapeLeft','RemoveSheetCommand','createControl$','ISidebarService','remove$','_drawRichText','_getOrCreateShapeModel','BehaviorSubject','table','fontSize','@univerjs/docs','_disposePopups','computeConnectorRouteLayout','_isImagePointerDown','_createControls','src','ShapeDefaultConfig','_menuManagerService','getOwnPropertyDescriptor','has','some','plainShapeTextToDocumentData','OPERATION','SHAPE_TEXT','ShapeArrowTypeEnum','resolveShapeTextDocumentRenderLayout','getBatchAddOp','targetShapeId','_attachConnectorObjectEvent','DocCanvasPopManagerService','_transform','defIds','buildShapeTextDataUpdate','_adjName','sectionFloating','ShapeTextFloatToolbar','_activeShapeId','_sheetPrintInterceptorService','_copyInfo','InsertShapeCommand','getConnectionRelation','svg','DocSelectionRenderService','filter','vertical','ShapeFloatingToolbar','unregister','getDrawingShapeKeyByDrawingSearch','@univerjs/core','scale','_clearConnectionSites','@univerjs-pro/shape-editor','worldPoints','RENDER_CLASS_TYPE','getObjectListPanelTypeName','startConnectionDetection','_contextService','getImageSourceCache','clip-','CopySheetCommand','isConnectorShape','UniverDocs','fill','ShapeFillEnum','call','sheets-shape-ui.toggleFlipV','width','getUnitType','_resetState','resetCursor','getUnitId','getSheetCommandTarget','sheets-shape-ui','getFocusDrawings','@univerjs-pro/sheets-shape','drawWith','ShapeArrowSizeEnum','size','SheetPrintInterceptorService','invert','getAdjustNames','isHighlighted','#4285f4','useObservable','create','_drawingRenderService','cancelEditing','#FFFFFF','_baseTop','popup','_iconManager','_isHighlighted','onDblclick$','14174970JWqvjz','_cxnIndex','updateDocumentStyle','horizontal','shape','displayName','shapeId','1.0.0-alpha.7','UpdateConnectorRelationCommand','disposeWithMe','getShapeTextRect','VIEW_MAIN','SHAPE_EDITOR_TRANSFORMER_CONFIG','Rect','onerror','PictureFill','LocaleService','sheets-shape-ui.objectListPanel.open','drawingType','DrawingApplyType','shapeKey','FromArray','SetSheetsShapeTextVerticalToggleCommand','push','ang','setShapeData','stringify','image-clip-adjust-point-','_insertShapes','UniverProShapeEditor','_drawShapeText','univer-box-border\x20univer-px-4\x20univer-text-sm','syncExecuteCommand','image','Circle','_clearShapeAdjustControls','updateConnectionDetection','SheetInterceptorService','_createShapeAdjustControls','replace','adjHandleSize','getShapeTextData','applyPoint','beforeCommandExecuted','set','activeSheet$','setOnSavingEditorData','getObjectListPanelLabels','getState','draw','ShapeTextFloatMenuRenderControllerBase','clearAdjustControls','_closeShapeEditPanel','sheetTransform','rotation','_renderManagerService','getSkeletonParam','_adjHandlerPointerUp','getDrawingOKey','UniverSheets','_formulaKey','_componentManager','highlighted','_formulaShapes','string','data','_sheetShapeAdjustController','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','getDrawingPoints','InsertSheetsShapeMutation','fillImageSource','gradientEndColor','sheet.shape.picker.component','ShapeGroupEnum','_sidebarService','getPresentation','IMenuManagerService','_registerGroupFeaturePasteHook','refreshAdjustControls','delete','_isStartConnectorPoint','1427336rbMCIr','getValue','Documents','_isConnecting','_reset','worldPoint','disableShapeOption','getConnectionSiteList','UniverDocsUi','UniverProSheetsShape','DRAWING_IMAGE','render','React','sheet.operation.open-shape-object-list-panel','SetShapeDrawingDataCommand','getConnectorLinePoints','actualHeight','backward','_shapeRenderController','redo','attrs','_sheetDrawingService','angle','relation','use','getCurrentRangeDisable$','unitId','resolveShapeTextEditorBehaviorShapeData','_sheetPermissionCheckController','ImageSourceTypeEnum','getSelectedObjectMap','_executeConnectionCommand','translateWithPrecision','sheets-shape-ui.rotateLeft90','add','_initializedShapePopupMenu','36200rcslfN','update$','_activeAdjustInfo','from','complete','DocumentDataModel','with','react','_registerDrawingFocusChangeHandler','isCurvedConnectorShape','ShapePickerPanel','_registerIcons','_registerMoveHandler','SheetSkeletonService','_targetShapeId','setAdjustValueByName','version','tag','gdRefX','@univerjs/ui','formulaPresentation','FormulaShapeAnimationController','_shapes','transformByState','toPrimitive','video','register','computeStraightConnectorLayout','startArrow','onPointerMove$','none','dispose','prstGeom','changeShapeType','gdRefAng','_clipService','onStarting','_baseShapeWidth','_imageShapeClipController','_index','sheets-shape-text-','_registerDrawingMoveHandler','dataModel','UPDATE','sheetViewStartColumn','shouldAllowShapeTextEditorHostSizeShrink','presentationChanged$','lineShapeId','sheets-shape-ui.config','_initialize','RibbonInsertGroup','_executeResizeCommand','Inject','sheet.operation.close-sheet-shape-format-panel','copyType','abs','COPY_TYPE','ConnectorCoordinateTransform','_handleBasicShapeUpdateConnectorLineShape','clearAdjustValue','_attachAdjustEvent','_sheetsShapeService','_subUnitId','gdRefY','objects','extraProps','_updateTransform','_isDrawingShapePointDown','strokeWidth','getMatrix','_addShapeAdjustControl','Shape','sheets-shape-ui.deleteShape','_executeConnectedRouteResizeCommand','getInterceptPoints','defineProperty','colorChannel1','height','cxnIndex','idSuffix','sheets-shape-ui.permission.editErr','point','getParent','merge','panel','_cxtHandlerPointerUp','enableObjectsEvent','assign','attachRangeWithCoord','routeConnectorLineShape','LEFT','clip','#bcbcbc','rxjs','children','shapeModel','onPointerUp$','offsetY','getBasicShapeRotateBound','registerCommand','_sheetDrawingShapeRenderController','getShapeType','_getDrawingRect','getShapeModel','DRAWING_UNIT','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','getImage','visible','getShapePopupMenus','sheets-shape-ui.toggleTextVertical','UNIVER_DOC','isLineShape','Image','_registerImageShapeClipDelegate','getStartConnectInfo','@univerjs/docs-ui','GROUP','fillType','isRichText','_getShapeAdjustPointListById','chart','setCanUseShapeClip','ICommandService','DRAWING_CHART','localeService','doc','isRenderLinePointsMode','presentation','pluginName','onCommandExecuted','get','228FYkmhM','canvas','_getShapeAdjustInfosById','substring','left','subscribe','shapeData','getMenuHiddenObservable','_connectorObjects','changeEnd$','Module','srcRect','_drawingAddListener','_updateAdjustControlPositions','_activeImageId','getAdjustInfoByName','useEffect','_baseLeft','axisAlignSheetTransform','sin','_handleFreeEndpointPointerUp','sheet.shape.text.float-menu','_findNearestConnectionSite','_drawingManagerService','_moveConnectorWithShape','onSavingEditorData$','changing$','_sheetClipboardService','_config','resolveFormulaShapeAutoFitSize','endConnectionDetection','_highlightedSiteIndex','_formulaAnimation','9dHEkWH','CommandType','_currentUniverService','_draggingConnectorId','entries','_onSavingEditorData$','_sheetBasicShapeConnectionPointController','IContextService','useDependency','getShapeTypeById','amd','DependentOn','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','_insertingShapeKeys','_getConnectionSiteAngle','DRAWING_SHAPE','trim','VIEW_MAIN_TOP','_sheetInterceptorService','adjustValues','Path','sheets-shape-ui.toggleFlipH','pushUndoRedo','transformForAngle','executeCommand','Plugin','SHAPE','ShapeIcon','DRAWING_TABLE','deriveStateFromActiveSheet$','TOP','@univerjs/sheets','Transform','UniverUi','isArray','VerticalAlign','Medium','DEFAULT_PASTE','index','_initCopyPaste','viewportScrollX','getTextStyle','addObject','Fragment','viewBound','marginTop','values','start','title','contentHeight','_shapeService','sheets-shape-ui.hidePanel','_initMenu','parse','constructor','keys','getCurrentUnitInfo','attachPopupToObject','touchDependencies','stroke','_initPrinting','SHEET_VIEWPORT_KEY','exports','intercept','259144MoZrkw','restore','getEndConnectInfo','cxnPointRadius','getCurrentLastSelection','_addControl','@univerjs/drawing','startY','updateLinePoints','fillImageSourceType','clone','initShapePopupMenu','UniverSheetsDrawingUi','SheetScrollManagerService','pipe','disableObjectsEvent','contentVerticalOffset','_generateCopyPasteMutations','None','shapeText','UniverLicensePlugin','DocumentSkeleton','_initEvents','_clearControls','generateRandomId','getDrawingByParam','buildClipPath','currentColor','isHitLine','cxnPointStroke','ShapeTextEditorContainer','preValue','getAdjustValueByName','@univerjs-pro/shape-editor-ui','setShapeProps','useFormulaShapeToolbar','toStringTag','_initEditingParams','UniverDrawing','_currentScene','_registerComponents','initTransformer','UniverSheetsShapeUIPlugin','_handleConnectorPointerUp','DRAWING_DOM','SetSheetsShapeRotateCommand','refreshShapeFillImage','onPointerDown$','CURSOR_TYPE','getShapeData','shape-adjust-point-','SHEET_SHAPE_UI_PLUGIN','_activeAdjustPointList','WorkbookEditablePermission','getObject','completeEditing','getObjectIncludeInGroup','_disposed','getUnit','_context','animateFormulaPresentation','sheetViewStartRow','_drawRichTextLayer','setPrstGeom','sheet.operation.open-sheet-shape-format-panel','_activeTargetShapeId','order','Line','_baseDrawingRect','getCurrentSkeleton','IDrawingManagerService','_activeShapeModel','ShapeLineTypeEnum','undo','end','_generatePasteMutations','FOCUSING_COMMON_DRAWINGS','_commandService','next','SheetSkeletonManagerService','useMemo','_getConnectPointInfo','clipByShape','removeLinePoints','getEditing','setCursor','round','univerjs-icon\x20univerjs-icon-','switchMap','description','setFillImage','RemoveSheetsShapeMutation','_hasReset','forEach','COMMAND','_initPermission','594282pdaVWl','getRealBound','UniverShapeEditorUIPlugin','setShouldShowAdjust','_drawingType','group','adjName','top','mask','URL','makeDirty','INSERT','shouldClipShapeTextDocument','ShapePickerDropdown','jsx','getTransformerByCreate','drawFormulaShapeAnimationLayers','SheetsShapeService','_connectionSiteObjects','map','transform','object-layers-icon','setConfig','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','getCurrentTypeOfUnit$','indexOf','sheets-shape-ui.openPanel','toString','getObjectListPanelSectionIdForDrawingType','onTransformChange$','_baseShapeHeight','connection-site-','UpdateSheetsShapeDataMutation','includes','changeStart$','UniverInstanceType','_clearShapeConnectorHandlerObjects','_isStartAdjusting','ArrangeTypeEnum','_injector','parent','getShapeDataById','unsubscribe','@univerjs-pro/engine-shape','DRAWING_OBJECT_LAYER_INDEX','getActiveSheet','_sidebarDisposable','_cxtHandlerPointerMove','50jSSyCb','FOCUSING_SHAPE_TEXT_EDITOR','beginPath','calculate','renderDrawingShape','onRendered','_commandExecutedListener','#1a73e8','addClipboardHook','packageName','0\x200\x2016\x2016','_shapeId','length','getDrawingEditable','clearActiveDrawingObjects','_shapeEditPanelVersion','bind','setPresentation','UNIVER_SHEET','setFormulaPresentation','ShapeTypeEnum','symbol','worldRect','_groupCopyPasteController','hidden','_getZoomRatio','setContextValue','_focusedDrawings','skeleton','editingParams$','_clearPopups','activeAnObject','_initSheetChange','SheetsShapeUIMenuSchema','startX','focus$','_registerOperations','_getScrollInfo','_draw','_getImagePrstGeom','getTextModel','ComponentManager','_activeShapeInfo','CUT','UpdateLineShapeResizeCommand','_addShapeConnectorHandlerObject','localToWorld','_rerouteConnectorLine','url(#$1','value','save','stopPropagation','SetDrawingSelectedOperation','ISheetDrawingService','_editingParams$','IRenderManagerService','isEditing','adjHandleFill','find','_univerInstanceService','_activeShapeAdjustPointList','_shapeUpdateListener','updateContext','_props','registerFeaturePasteHook','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_executeConnectedRouteConnectionCommand','ancestorTransform','params','resize','_getShapeInfo','getDrawingVisible','1em','WorksheetEditPermission','open','Disposable','calcAdjValue','EMPTY','_lastEditingShapeKey','toDisposable','SetSheetDrawingCommand','reduce','setHighlighted','_findShapeAtPoint','M2\x204.75\x208\x201.8l6\x202.95L8\x207.7\x202\x204.75Z','flipX','getSkeleton','viewportScrollY','_shapeFormulaService','UniverSheetsUi','setEditing','_localeService','updateDocumentDataMargin','xlink:href','UniverProEngineShape','refreshFormulaPresentation','_updateImageAdjValues','_handleFreeEndpointMove','IURLImageService','SheetPermissionCheckController','ShapeModel','createElement','drawingId','HorizontalAlign','sheet.command.update-shape-data','4090674lHxVju','isInGroup','resourceCollector','prepareShapeTextDocumentData','Arrow','getBatchUpdateOp','_generateCutPasteMutations','@univerjs/engine-render','ObjectLayersIcon','type','offsetX','getRenderById','_applyFormulaAutoFitSize','blockExecuteWithoutPermission','custom','normalizeShapeTextModel','_createShapePopupMenu','getDrawingData','subUnitId','classType','DrawingRenderService','sheet.shape.floating-toolbar','SheetCanvasPopManagerService','_getImageDrawingInfo','isRender','endArrow','add$','registerFeatureMenuOffset','lineType','BUTTON','@univerjs/drawing-ui','name','DRAWING_VIDEO','jsxs','_unitId','_openShapeEditPanel','focusDrawing','getBentTypeFromPoints','_baseHeight','react/jsx-runtime'];_0x3901=function(){return _0x5c1c13;};return _0x3901();}function _0x45fb(_0x34db8f,_0x429791){_0x34db8f=_0x34db8f-0x1cc;const _0x390101=_0x3901();let _0x45fb2a=_0x390101[_0x34db8f];return _0x45fb2a;}(function(_0x34445c,_0x362e6b){const _0x22365b=_0x45fb,_0x332425=_0x34445c();while(!![]){try{const _0x250625=parseInt(_0x22365b(0x323))/0x1+-parseInt(_0x22365b(0x427))/0x2+-parseInt(_0x22365b(0x4ce))/0x3*(-parseInt(_0x22365b(0x44b))/0x4)+-parseInt(_0x22365b(0x283))/0x5*(-parseInt(_0x22365b(0x253))/0x6)+parseInt(_0x22365b(0x2ec))/0x7+-parseInt(_0x22365b(0x1f3))/0x8*(-parseInt(_0x22365b(0x4ef))/0x9)+-parseInt(_0x22365b(0x3d6))/0xa;if(_0x250625===_0x362e6b)break;else _0x332425['push'](_0x332425['shift']());}catch(_0x5e086a){_0x332425['push'](_0x332425['shift']());}}}(_0x3901,0xf154c),function(_0x204849,_0x91840d){const _0x25e093=_0x45fb;typeof exports==_0x25e093(0x375)&&typeof module<'u'?_0x91840d(exports,require('@univerjs/ui'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/shape-editor'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/drawing'),require('@univerjs/engine-render'),require('@univerjs/sheets-ui'),require('rxjs'),require('@univerjs-pro/shape-editor-ui'),require('@univerjs/drawing-ui'),require('react/jsx-runtime'),require('@univerjs-pro/license'),require('@univerjs/sheets-drawing-ui'),require('react'),require('@univerjs/sheets-drawing'),require('@univerjs/docs'),require('@univerjs/docs-ui')):typeof define==_0x25e093(0x370)&&define[_0x25e093(0x4f9)]?define([_0x25e093(0x1f1),_0x25e093(0x45e),_0x25e093(0x27e),_0x25e093(0x3ac),_0x25e093(0x3c3),_0x25e093(0x3a9),_0x25e093(0x1d2),_0x25e093(0x1f9),_0x25e093(0x2f3),'@univerjs/sheets-ui',_0x25e093(0x4a8),_0x25e093(0x214),_0x25e093(0x30a),_0x25e093(0x313),_0x25e093(0x340),'@univerjs/sheets-drawing-ui',_0x25e093(0x452),_0x25e093(0x33c),_0x25e093(0x383),_0x25e093(0x4be)],_0x91840d):(_0x204849=typeof globalThis<'u'?globalThis:_0x204849||self,_0x91840d(_0x204849[_0x25e093(0x33a)]={},_0x204849[_0x25e093(0x1d4)],_0x204849[_0x25e093(0x2e1)],_0x204849[_0x25e093(0x3f3)],_0x204849[_0x25e093(0x430)],_0x204849[_0x25e093(0x34e)],_0x204849[_0x25e093(0x411)],_0x204849[_0x25e093(0x219)],_0x204849['UniverEngineRender'],_0x204849[_0x25e093(0x2dc)],_0x204849[_0x25e093(0x4a8)],_0x204849['UniverProShapeEditorUi'],_0x204849['UniverDrawingUi'],_0x204849[_0x25e093(0x433)],_0x204849['UniverProLicense'],_0x204849[_0x25e093(0x1ff)],_0x204849[_0x25e093(0x433)],_0x204849['UniverSheetsDrawing'],_0x204849[_0x25e093(0x3b6)],_0x204849[_0x25e093(0x42f)]));}(this,function(_0x11b69c,_0xa9133b,_0x5b6709,_0x5a6548,_0x4eb2ab,_0x49d30a,_0x4fbea5,_0x510035,_0x40dd84,_0x100e66,_0x230aed,_0xa40d9e,_0xceb6c3,_0x208661,_0x9f095,_0x4c7223,_0x4ff626,_0x28a390,_0x2bba01,_0x31dab3){const _0x209063=_0x45fb;Object[_0x209063(0x496)](_0x11b69c,Symbol[_0x209063(0x217)],{'value':_0x209063(0x4d8)});function _0x7bb43(_0x184c86,_0x559e40){const _0x3a88bb=_0x209063;let _0x34fff7={};for(let _0x1ea294 of Object[_0x3a88bb(0x1ea)](_0x559e40)){let _0x247331=_0x559e40[_0x1ea294],_0x491242=_0x184c86[_0x1ea294];if(_0x247331!==void 0x0){if(_0x491242===void 0x0){_0x34fff7[_0x1ea294]=void 0x0;continue;}typeof _0x247331=='object'&&_0x247331&&!Array[_0x3a88bb(0x1d5)](_0x247331)&&typeof _0x491242=='object'&&_0x491242&&!Array[_0x3a88bb(0x1d5)](_0x491242)?_0x34fff7[_0x1ea294]=_0x7bb43(_0x491242,_0x247331):_0x34fff7[_0x1ea294]=_0x491242;}}return _0x34fff7;}let _0x39f376={'type':_0x49d30a['CommandType'][_0x209063(0x251)],'id':_0x209063(0x2eb),'handler':(_0x418ff4,_0x833116)=>{const _0x19e5a3=_0x209063;let _0x5dbe63=_0x418ff4[_0x19e5a3(0x4cd)](_0x4eb2ab[_0x19e5a3(0x264)]),{unitId:_0x2bf6b5,subUnitId:_0x587ef6,shapeType:_0x564bdc,shapeId:_0x2912d9,shapeData:_0x5ab0d8,oldShapeJSON:_0x5d7ca8}=_0x833116;if(!_0x5dbe63[_0x19e5a3(0x4b2)](_0x2bf6b5,_0x587ef6,_0x2912d9))return!0x1;let _0x5bd167=_0x418ff4[_0x19e5a3(0x4cd)](_0x49d30a[_0x19e5a3(0x4c5)]),_0x1adf76=_0x418ff4[_0x19e5a3(0x4cd)](_0x49d30a[_0x19e5a3(0x342)]),{oldShapeType:_0x4bc825,oldShapeData:_0x1b8257={}}=_0x5d7ca8,_0x41b4c2=_0x7bb43(_0x1b8257,_0x5ab0d8||{}),_0x4d0026={'id':_0x4eb2ab[_0x19e5a3(0x273)]['id'],'params':{'unitId':_0x2bf6b5,'subUnitId':_0x587ef6,'shapeId':_0x2912d9,'shapeType':_0x564bdc,'shapeData':_0x5ab0d8}},_0x344279={'id':_0x4eb2ab[_0x19e5a3(0x273)]['id'],'params':{'unitId':_0x2bf6b5,'subUnitId':_0x587ef6,'shapeId':_0x2912d9,'shapeType':_0x4bc825,'shapeData':_0x41b4c2}};return _0x5bd167['syncExecuteCommand'](_0x4d0026['id'],_0x4d0026[_0x19e5a3(0x2c7)])?(_0x1adf76[_0x19e5a3(0x505)]({'unitID':_0x2bf6b5,'undoMutations':[_0x344279],'redoMutations':[_0x4d0026]}),!0x0):!0x1;}};function _0x407767(_0x424776,_0x45284b,_0x449074,_0x357483,_0x302be7,_0x5cf8ba){const _0x30d48c=_0x209063;let _0x3502b3={'unitId':_0x45284b,'subUnitId':_0x449074,'shapeId':_0x357483,'shapeData':_0x5cf8ba,'oldShapeJSON':_0x302be7};return _0x424776[_0x30d48c(0x507)](_0x39f376['id'],_0x3502b3);}function _0x2583c5(_0x43557e,_0x2e9d7e,_0x49ce80,_0x51c577,_0xa0cdcc,_0x2359a6){const _0x39af62=_0x209063;let _0x2ffd6d={'unitId':_0x2e9d7e,'subUnitId':_0x49ce80,'shapeId':_0x51c577,'shapeData':_0x2359a6,'oldShapeJSON':_0xa0cdcc};return _0x43557e[_0x39af62(0x507)](_0x39f376['id'],_0x2ffd6d);}function _0x15400d(_0x31f8f6){'@babel/helpers - typeof';const _0x274cc0=_0x209063;return _0x15400d=typeof Symbol==_0x274cc0(0x370)&&typeof Symbol[_0x274cc0(0x31e)]==_0x274cc0(0x298)?function(_0x137c2a){return typeof _0x137c2a;}:function(_0x303cf6){const _0x174d20=_0x274cc0;return _0x303cf6&&typeof Symbol==_0x174d20(0x370)&&_0x303cf6[_0x174d20(0x1e9)]===Symbol&&_0x303cf6!==Symbol['prototype']?_0x174d20(0x298):typeof _0x303cf6;},_0x15400d(_0x31f8f6);}function _0x224c7e(_0x79031d,_0x5c8c42){const _0x4cb775=_0x209063;if(_0x15400d(_0x79031d)!=_0x4cb775(0x375)||!_0x79031d)return _0x79031d;var _0x46a9a6=_0x79031d[Symbol[_0x4cb775(0x463)]];if(_0x46a9a6!==void 0x0){var _0x36527c=_0x46a9a6[_0x4cb775(0x3b9)](_0x79031d,_0x5c8c42||'default');if(_0x15400d(_0x36527c)!=_0x4cb775(0x375))return _0x36527c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5c8c42===_0x4cb775(0x416)?String:Number)(_0x79031d);}function _0x275d4f(_0xab4ae3){const _0x56e20d=_0x209063;var _0x165c4d=_0x224c7e(_0xab4ae3,_0x56e20d(0x416));return _0x15400d(_0x165c4d)==_0x56e20d(0x298)?_0x165c4d:_0x165c4d+'';}function _0x28368a(_0x53f700,_0x538bfb,_0x23cade){return(_0x538bfb=_0x275d4f(_0x538bfb))in _0x53f700?Object['defineProperty'](_0x53f700,_0x538bfb,{'value':_0x23cade,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53f700[_0x538bfb]=_0x23cade,_0x53f700;}function _0x35312a(_0x4119cb,_0x179963,_0x46f3d0){const _0x352c35=_0x209063;var _0x51bb2a;let _0x1be1a9=(0x0,_0xa40d9e[_0x352c35(0x442)])(_0x4119cb,{..._0x179963,'dataModel':{...(_0x51bb2a=_0x179963['dataModel'])==null?{}:_0x51bb2a,..._0x46f3d0?{'doc':_0x46f3d0}:null}}),_0xbda7eb=(0x0,_0xa40d9e['resolveShapeTextEditorWrapStrategy'])(_0x1be1a9);return{'clip':(0x0,_0xa40d9e[_0x352c35(0x25f)])(_0x1be1a9,_0xbda7eb),'wrapStrategy':_0xbda7eb};}var _0x642241=class extends _0x40dd84[_0x209063(0x492)]{constructor(_0x401f21,_0x17ba38){const _0x1bce8e=_0x209063;super(_0x401f21,_0x17ba38),_0x28368a(this,'_props',void 0x0),_0x28368a(this,'_formulaAnimation',new _0xa40d9e[(_0x1bce8e(0x460))](()=>this[_0x1bce8e(0x25d)](!0x0),()=>this[_0x1bce8e(0x2f8)]())),_0x28368a(this,_0x1bce8e(0x32d),!0x0),_0x28368a(this,_0x1bce8e(0x257),_0x49d30a[_0x1bce8e(0x365)][_0x1bce8e(0x4fe)]),_0x28368a(this,'isDrawingObject',!0x0),this[_0x1bce8e(0x2c2)]={..._0x17ba38},this[_0x1bce8e(0x4ee)]['setPresentation'](_0x17ba38[_0x1bce8e(0x45f)],_0x17ba38[_0x1bce8e(0x22f)]!==!0x1),this[_0x1bce8e(0x321)](),this['_applyFormulaAutoFitSize']();}[_0x209063(0x321)](){const _0x314450=_0x209063;this[_0x314450(0x270)][_0x314450(0x35a)](_0x1e9fcd=>{this['_updateSrcRectByTransform'](_0x1e9fcd);});}[_0x209063(0x232)](_0x13af58){const _0x3cccc4=_0x209063;this[_0x3cccc4(0x2c2)]['prstGeom']=_0x13af58;}[_0x209063(0x2dd)](_0x405061){const _0x3f8dce=_0x209063;this[_0x3f8dce(0x2c2)][_0x3f8dce(0x2bb)]=_0x405061,this[_0x3f8dce(0x25d)](!0x0);}['setFormulaPresentation'](_0x4c0872,_0x493f2c=!0x0){const _0x47bada=_0x209063;this['_formulaAnimation'][_0x47bada(0x294)](_0x4c0872,_0x493f2c),this[_0x47bada(0x2c2)][_0x47bada(0x45f)]=_0x4c0872,this[_0x47bada(0x2f8)](),this[_0x47bada(0x25d)](!0x0);}[_0x209063(0x2f8)](){const _0x4f4424=_0x209063;let _0x591290=this[_0x4f4424(0x2c2)][_0x4f4424(0x4aa)],_0x40dfb7=_0x591290['getShapeTextData'](),_0x18174a=(0x0,_0xa40d9e['normalizeShapeTextModel'])(_0x40dfb7==null?void 0x0:_0x40dfb7[_0x4f4424(0x475)]),_0x4606f4=_0x18174a==null?void 0x0:_0x18174a['doc'],_0x394852=this[_0x4f4424(0x4ee)]['getAutoFitPresentations']();if(!_0x4606f4||_0x394852[_0x4f4424(0x28f)]===0x0)return;_0x591290[_0x4f4424(0x2c1)]({'width':this['width'],'height':this[_0x4f4424(0x498)]});let _0x5e3a30=(0x0,_0xa40d9e[_0x4f4424(0x4eb)])({'documentData':_0x394852[_0x4f4424(0x266)](_0x5da123=>(0x0,_0x5a6548[_0x4f4424(0x35c)])(_0x4606f4,_0x5da123)),'height':this['height'],'shapeData':_0x591290[_0x4f4424(0x224)](),'textRect':_0x591290[_0x4f4424(0x3e0)]({'left':0x0,'top':0x0,'width':this['width'],'height':this[_0x4f4424(0x498)]}),'width':this[_0x4f4424(0x3bb)]});if(_0x5e3a30){var _0x3754b5;this[_0x4f4424(0x2c8)](_0x5e3a30[_0x4f4424(0x3bb)],_0x5e3a30[_0x4f4424(0x498)]),(_0x3754b5=this['getScene']())==null||(_0x3754b5=_0x3754b5[_0x4f4424(0x320)]())==null||_0x3754b5['debounceRefreshControls']();}}get[_0x209063(0x441)](){const _0xa20091=_0x209063;return this[_0xa20091(0x2c2)][_0xa20091(0x441)];}get[_0x209063(0x2fe)](){const _0x2ea507=_0x209063;return this[_0x2ea507(0x2c2)]['subUnitId'];}['_updateSrcRectByTransform'](_0x596d26){const _0x51aa3c=_0x209063;if(this[_0x51aa3c(0x2c2)][_0x51aa3c(0x4d9)]==null||!this[_0x51aa3c(0x32d)])return;let {width:_0x5b859c,height:_0x1e3358}=this,{width:_0x1949e0=0x0,height:_0x18ca78=0x0}=_0x596d26[_0x51aa3c(0x212)],{left:_0x33a055=0x0,top:_0x140072=0x0,right:_0x220401=0x0,bottom:_0xf0b607=0x0}=this[_0x51aa3c(0x2c2)][_0x51aa3c(0x4d9)],_0x586b56=_0x33a055,_0x2db230=_0x140072,_0x104316=_0x220401,_0xcc0209=_0xf0b607,_0x4d7576=!0x1;if(_0x1949e0!==0x0&&_0x1949e0!==_0x5b859c){let _0x1a45b2=_0x33a055/_0x1949e0,_0x5f2e62=_0x220401/_0x1949e0;_0x586b56=_0x5b859c*_0x1a45b2,_0x104316=_0x5b859c*_0x5f2e62,_0x4d7576=!0x0;}if(_0x18ca78!==0x0&&_0x18ca78!==_0x1e3358){let _0x2db832=_0x140072/_0x18ca78,_0x1d38d7=_0xf0b607/_0x18ca78;_0x2db230=_0x1e3358*_0x2db832,_0xcc0209=_0x1e3358*_0x1d38d7,_0x4d7576=!0x0;}_0x4d7576&&this['setSrcRect']({'left':_0x586b56,'top':_0x2db230,'right':_0x104316,'bottom':_0xcc0209});}[_0x209063(0x32e)](_0xdd26fe){const _0x6ca0b8=_0x209063;this[_0x6ca0b8(0x2c2)][_0x6ca0b8(0x4d9)]=_0xdd26fe,this['makeDirty'](!0x0);}[_0x209063(0x24d)](_0x3b3624){const _0x2f975b=_0x209063;this[_0x2f975b(0x2c2)][_0x2f975b(0x3f7)]=_0x3b3624,this[_0x2f975b(0x25d)](!0x0);}set[_0x209063(0x267)](_0x4375df){const _0x25b0a3=_0x209063;this[_0x25b0a3(0x397)]=_0x4375df;}get[_0x209063(0x267)](){const _0x53a5e0=_0x209063;this[_0x53a5e0(0x397)]||this[_0x53a5e0(0x32c)]();let _0x1b5f79=this[_0x53a5e0(0x397)][_0x53a5e0(0x1fd)]();return this[_0x53a5e0(0x506)](_0x1b5f79);}get['shapeModel'](){const _0x3b95a1=_0x209063;return this[_0x3b95a1(0x2c2)][_0x3b95a1(0x4aa)];}get[_0x209063(0x3dc)](){const _0x243aeb=_0x209063;return this[_0x243aeb(0x2c2)]['shapeId'];}get[_0x209063(0x2ff)](){const _0x16e699=_0x209063;return _0x40dd84[_0x16e699(0x3ae)][_0x16e699(0x1cd)];}['_draw'](_0x1494c,_0x2c9ee7,_0x404825,_0x1ce873){const _0x35daca=_0x209063;let _0x29c442=this[_0x35daca(0x2c2)][_0x35daca(0x4aa)];if(!_0x29c442||!_0x2c9ee7)return;let _0x3477e5=_0x404825==null?this[_0x35daca(0x3bb)]:_0x404825,_0x278d05=_0x1ce873==null?this['height']:_0x1ce873,_0x17d7ed={'shapeType':_0x29c442['getShapeType'](),'width':_0x3477e5,'height':_0x278d05},_0x3582d0={'renderMode':_0x5b6709['ShapeRenderModeEnum'][_0x35daca(0x503)],'oKey':this[_0x35daca(0x35b)],'image':this['_props']['image'],'angle':this[_0x35daca(0x43d)]};_0x29c442[_0x35daca(0x2c1)](_0x17d7ed),_0x1494c[_0x35daca(0x2b5)]();let _0x142b4d={'top':0x0,'left':0x0,'width':_0x3477e5,'height':_0x278d05};_0x29c442[_0x35daca(0x432)](_0x1494c,_0x142b4d,_0x3582d0),_0x1494c['restore']();let _0x3650d8=_0x29c442[_0x35daca(0x3ff)](),_0x136b50=_0x29c442['getShapeTextRect'](_0x142b4d),_0x1124eb=_0x29c442[_0x35daca(0x4ba)]();if(_0x3650d8&&_0x136b50&&!_0x1124eb){_0x1494c['save'](),this[_0x35daca(0x406)]()['flipX']&&_0x1494c[_0x35daca(0x3aa)](-0x1,0x1);let _0x4cba15=_0x3477e5/0x2,_0x16ba25=_0x278d05/0x2;_0x1494c['translate'](-_0x4cba15,-_0x16ba25),_0x1494c['beginPath'](),this[_0x35daca(0x3f4)](_0x1494c,_0x3650d8,_0x136b50),_0x1494c[_0x35daca(0x1f4)]();}}['getDrawingPoints'](_0x3c39c9){}['_drawShapeText'](_0x524c47,_0x24f024,_0x1875eb){const _0x383a44=_0x209063;var _0x66dbe1;this[_0x383a44(0x2c2)][_0x383a44(0x2bb)]||(!((_0x66dbe1=_0x24f024[_0x383a44(0x475)])!=null&&_0x66dbe1[_0x383a44(0x4c8)])&&'isRichText'in _0x24f024&&_0x24f024[_0x383a44(0x4c1)]===!0x1?this['_drawSimpleText'](_0x524c47,_0x24f024,_0x1875eb):this[_0x383a44(0x37e)](_0x524c47,_0x24f024,_0x1875eb));}[_0x209063(0x36a)](_0x8d2b8c,_0x1b336a,_0x49d94b){const _0x3ec430=_0x209063;var _0x44fb4b;this['_drawRichText'](_0x8d2b8c,{..._0x1b336a,'text':(_0x44fb4b=_0x1b336a['text'])==null?'':_0x44fb4b,'dataModel':{'doc':(0x0,_0xa40d9e[_0x3ec430(0x38e)])(_0x1b336a,_0x3ec430(0x473)+this[_0x3ec430(0x35b)])}},_0x49d94b);}['_drawRichText'](_0x17ff1d,_0x2fa589,_0x436cb6){const _0x5b8cec=_0x209063;(0x0,_0xa40d9e[_0x5b8cec(0x263)])(_0x17ff1d,this[_0x5b8cec(0x4ee)],(_0x323fbd,_0xd5b682)=>{const _0x5d4edf=_0x5b8cec;this[_0x5d4edf(0x231)](_0x323fbd,_0x2fa589,_0x436cb6,_0xd5b682);});}[_0x209063(0x231)](_0x13028d,_0x419d48,_0x5cdf08,_0x3da884){const _0x5cb14a=_0x209063;var _0x3efef1,_0x4190ea;let _0x29a701=this[_0x5cb14a(0x2c2)][_0x5cb14a(0x4c7)];if(!_0x419d48[_0x5cb14a(0x475)]||!_0x29a701)return;let _0x466ae7=(0x0,_0xa40d9e[_0x5cb14a(0x2fb)])(_0x419d48[_0x5cb14a(0x475)]);if(!_0x466ae7)return;let _0x3ce464=_0x466ae7[_0x5cb14a(0x4c8)];if(!_0x3ce464)return;let _0x2a1c55=(0x0,_0x5a6548[_0x5cb14a(0x35c)])(_0x3ce464,_0x3da884),_0x572e5c=(_0x3efef1=_0x466ae7['va'])==null?_0x49d30a[_0x5cb14a(0x1d6)][_0x5cb14a(0x1d1)]:_0x3efef1,_0x15fd40=(_0x4190ea=_0x466ae7['ha'])==null?_0x49d30a[_0x5cb14a(0x2ea)][_0x5cb14a(0x4a5)]:_0x4190ea,_0x380445=_0x35312a(this['_props'][_0x5cb14a(0x4aa)][_0x5cb14a(0x224)](),_0x419d48,_0x2a1c55),_0xb7d257=_0x419d48['isHorizontal'],_0x5e79d1=new _0x49d30a[(_0x5cb14a(0x450))]((0x0,_0xa40d9e[_0x5cb14a(0x2ef)])(_0x2a1c55,{'isHorizontal':_0xb7d257!==!0x1,'textRect':_0x5cdf08,'verticalAlign':_0x572e5c,'horizontalAlign':_0x15fd40,'wrapStrategy':_0x380445['wrapStrategy']})),_0x21bc78=new _0x40dd84['DocumentViewModel'](_0x5e79d1),_0x5e6ae8=_0x40dd84[_0x5cb14a(0x208)][_0x5cb14a(0x3cd)](_0x21bc78,_0x29a701);_0x5e6ae8[_0x5cb14a(0x286)]();let _0x614fb3=_0x5e6ae8['getActualSize']()[_0x5cb14a(0x437)],_0x512fcd=(0x0,_0xa40d9e[_0x5cb14a(0x392)])({'contentHeight':_0x614fb3,'verticalAlign':_0x572e5c,'viewportHeight':_0x5cdf08[_0x5cb14a(0x498)]});_0x5e79d1[_0x5cb14a(0x3d8)]({'pageSize':{'width':_0xb7d257===!0x1?_0x5cdf08['height']:_0x5cdf08[_0x5cb14a(0x3bb)],'height':_0x512fcd[_0x5cb14a(0x1e4)]}}),_0x5e79d1[_0x5cb14a(0x2df)]({'t':_0x512fcd[_0x5cb14a(0x1e0)]}),_0x5e6ae8[_0x5cb14a(0x286)]();let _0x5d6929=new _0x40dd84[(_0x5cb14a(0x429))]('shape-text-'+this['oKey'],_0x5e6ae8,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x5cb14a(0x25d)](!0x0)});_0x5d6929[_0x5cb14a(0x2c8)](_0x5cdf08[_0x5cb14a(0x3bb)],_0x512fcd['contentHeight']),_0x13028d[_0x5cb14a(0x2b5)](),_0x13028d[_0x5cb14a(0x447)](_0x5cdf08[_0x5cb14a(0x4d2)],_0x5cdf08[_0x5cb14a(0x25a)]),_0x380445[_0x5cb14a(0x4a6)]&&(_0x13028d[_0x5cb14a(0x285)](),_0x13028d[_0x5cb14a(0x36b)](0x0,_0x512fcd['clipTop'],_0x5cdf08['width'],_0x512fcd['clipHeight']),_0x13028d[_0x5cb14a(0x4a6)]()),_0x512fcd[_0x5cb14a(0x203)]&&_0x13028d[_0x5cb14a(0x447)](0x0,_0x512fcd['contentVerticalOffset']),_0x5d6929[_0x5cb14a(0x407)](_0x13028d),_0x13028d[_0x5cb14a(0x1f4)](),_0x5d6929[_0x5cb14a(0x46a)](),_0x5e6ae8[_0x5cb14a(0x46a)](),_0x21bc78[_0x5cb14a(0x46a)](),_0x5e79d1['dispose']();}[_0x209063(0x432)](_0x11b311,_0x12be51,_0x4888fb=!0x1){const _0x77f5bd=_0x209063;if(!this['visible'])return this[_0x77f5bd(0x25d)](!0x1),this;let {width:_0xc42ee5,height:_0x4b578f,left:_0x2f2f3b,top:_0x2b6c5e}=this,_0x131bd7=this['getRealBound']();if(_0xc42ee5=_0x131bd7[_0x77f5bd(0x3bb)],_0x4b578f=_0x131bd7[_0x77f5bd(0x498)],_0x2f2f3b=_0x131bd7[_0x77f5bd(0x4d2)],_0x2b6c5e=_0x131bd7[_0x77f5bd(0x25a)],this[_0x77f5bd(0x304)](_0x12be51)){let {top:_0x5244be,left:_0x5e567e,bottom:_0x5d34bc,right:_0x5119ce}=_0x12be51[_0x77f5bd(0x1df)];if(_0xc42ee5+this[_0x77f5bd(0x48f)]+_0x2f2f3b<_0x5e567e||_0x5119ce<_0x2f2f3b||_0x4b578f+this[_0x77f5bd(0x48f)]+_0x2b6c5e<_0x5244be||_0x5d34bc<_0x2b6c5e)return this;}let _0x573b3c=_0x2f2f3b+_0xc42ee5/0x2,_0x471a27=_0x2b6c5e+_0x4b578f/0x2,_0x3bbf31=this[_0x77f5bd(0x267)][_0x77f5bd(0x490)]();if(this[_0x77f5bd(0x2c2)]['isEditing']){let _0x18a0a3=this[_0x77f5bd(0x406)](),_0x28c070=new _0x40dd84['Transform']();_0x28c070['composeMatrix']({..._0x18a0a3}),_0x3bbf31=_0x28c070[_0x77f5bd(0x490)]();}return _0x11b311['save'](),this[_0x77f5bd(0x2c2)][_0x77f5bd(0x4aa)][_0x77f5bd(0x4c9)]===!0x0||_0x11b311[_0x77f5bd(0x267)](_0x3bbf31[0x0],_0x3bbf31[0x1],_0x3bbf31[0x2],_0x3bbf31[0x3],_0x573b3c,_0x471a27),this['_draw'](_0x11b311,_0x12be51,_0xc42ee5,_0x4b578f),_0x11b311[_0x77f5bd(0x1f4)](),this[_0x77f5bd(0x25d)](!0x1),this;}['getInverseCoord'](_0x1723bf){const _0x1ac42d=_0x209063;let {left:_0x1d19cb,top:_0xa13a52,width:_0x1f0755,height:_0x2d23af}=this[_0x1ac42d(0x254)](),_0x16e08a=this[_0x1ac42d(0x267)][_0x1ac42d(0x490)](),_0x32e5a6=_0x1d19cb+_0x1f0755/0x2,_0xa9ed89=_0xa13a52+_0x2d23af/0x2,_0x26f342=new _0x40dd84[(_0x1ac42d(0x1d3))]([_0x16e08a[0x0],_0x16e08a[0x1],_0x16e08a[0x2],_0x16e08a[0x3],_0x32e5a6,_0xa9ed89]),_0x1f7b78=this[_0x1ac42d(0x49d)]();return(this[_0x1ac42d(0x2ed)]&&(_0x1f7b78==null?void 0x0:_0x1f7b78['classType'])===_0x40dd84[_0x1ac42d(0x3ae)]['GROUP']?_0x1f7b78['ancestorTransform'][_0x1ac42d(0x376)](_0x26f342):_0x26f342)[_0x1ac42d(0x3c8)]()[_0x1ac42d(0x400)](_0x1723bf);}[_0x209063(0x36e)](_0x519261){const _0x1ceffe=_0x209063;let {left:_0x1f5ff3,top:_0x364d5c,width:_0xbd01f6,height:_0x2120db}=this[_0x1ceffe(0x254)](),_0x3de6d5=_0x1f5ff3+_0xbd01f6/0x2,_0x17d0be=_0x364d5c+_0x2120db/0x2,_0x4189fb=this['transform'][_0x1ceffe(0x490)](),_0xbefebf=new _0x40dd84[(_0x1ceffe(0x1d3))]([_0x4189fb[0x0],_0x4189fb[0x1],_0x4189fb[0x2],_0x4189fb[0x3],_0x3de6d5,_0x17d0be]),_0x3d6f62=this[_0x1ceffe(0x49d)](),_0x3ef2c9=(this[_0x1ceffe(0x2ed)]&&(_0x3d6f62==null?void 0x0:_0x3d6f62[_0x1ceffe(0x2ff)])===_0x40dd84[_0x1ceffe(0x3ae)]['GROUP']?_0x3d6f62['ancestorTransform'][_0x1ceffe(0x376)](_0xbefebf):_0xbefebf)['invert']()[_0x1ceffe(0x400)](_0x519261),_0x7bb365=_0xbd01f6/0x2,_0x4d4e3d=_0x2120db/0x2,_0x511ba3=this[_0x1ceffe(0x2c2)][_0x1ceffe(0x4aa)];return _0x511ba3&&_0x511ba3[_0x1ceffe(0x4ba)]()?_0x511ba3[_0x1ceffe(0x20f)](_0x3ef2c9['x'],_0x3ef2c9['y'],_0xbd01f6,_0x2120db):_0x3ef2c9['x']>=-_0x7bb365-this[_0x1ceffe(0x48f)]/0x2&&_0x3ef2c9['x']<=_0x7bb365+this[_0x1ceffe(0x48f)]/0x2&&_0x3ef2c9['y']>=-_0x4d4e3d-this[_0x1ceffe(0x48f)]/0x2&&_0x3ef2c9['y']<=_0x4d4e3d+this[_0x1ceffe(0x48f)]/0x2;}[_0x209063(0x46a)](){const _0x2eb5ce=_0x209063;this[_0x2eb5ce(0x4ee)][_0x2eb5ce(0x46a)](),this[_0x2eb5ce(0x2c2)][_0x2eb5ce(0x4aa)]=null,super[_0x2eb5ce(0x46a)]();}},_0xa97e9e=class extends _0x40dd84[_0x209063(0x492)]{constructor(_0x2f859e,_0x46c39c){const _0x5ca532=_0x209063;super(_0x2f859e,_0x46c39c),_0x28368a(this,_0x5ca532(0x28e),null),_0x28368a(this,_0x5ca532(0x39a),null),_0x28368a(this,_0x5ca532(0x30e),null),_0x28368a(this,_0x5ca532(0x489),null),_0x46c39c&&this['setShapeProps'](_0x46c39c);}[_0x209063(0x36c)](){const _0x2d6e33=_0x209063;return{'unitId':this[_0x2d6e33(0x30e)],'subUnitId':this[_0x2d6e33(0x489)],'drawingId':this['_shapeId']};}[_0x209063(0x215)](_0x5e0e98){const _0xa3039b=_0x209063;_0x5e0e98[_0xa3039b(0x3dc)]!==void 0x0&&(this['_shapeId']=_0x5e0e98[_0xa3039b(0x3dc)]),_0x5e0e98[_0xa3039b(0x259)]!==void 0x0&&(this[_0xa3039b(0x39a)]=_0x5e0e98[_0xa3039b(0x259)]),_0x5e0e98[_0xa3039b(0x441)]!==void 0x0&&(this[_0xa3039b(0x30e)]=_0x5e0e98['unitId']),_0x5e0e98[_0xa3039b(0x2fe)]!==void 0x0&&(this[_0xa3039b(0x489)]=_0x5e0e98[_0xa3039b(0x2fe)]),this[_0xa3039b(0x462)]({'width':_0x5e0e98[_0xa3039b(0x3bb)],'height':_0x5e0e98[_0xa3039b(0x498)]});}[_0x209063(0x2a9)](_0xc26ece){const _0x1f7d6e=_0x209063;_0x40dd84['Circle'][_0x1f7d6e(0x3c4)](_0xc26ece,{'radius':_0x5b6709[_0x1f7d6e(0x389)][_0x1f7d6e(0x3fe)],'fill':_0x5b6709['ShapeDefaultConfig'][_0x1f7d6e(0x2bc)],'stroke':_0x5b6709['ShapeDefaultConfig']['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function _0x3cbe95(_0x4d4eff,_0x573670){return function(_0x1b7518,_0x39370e){_0x573670(_0x1b7518,_0x39370e,_0x4d4eff);};}function _0x276893(_0x319d71,_0x500e69,_0x18847a,_0x40935e){const _0x19530a=_0x209063;var _0x45623c=arguments['length'],_0x59abfb=_0x45623c<0x3?_0x500e69:_0x40935e===null?_0x40935e=Object[_0x19530a(0x38b)](_0x500e69,_0x18847a):_0x40935e,_0x3447b1;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x59abfb=Reflect[_0x19530a(0x33b)](_0x319d71,_0x500e69,_0x18847a,_0x40935e);else{for(var _0x2a8cad=_0x319d71['length']-0x1;_0x2a8cad>=0x0;_0x2a8cad--)(_0x3447b1=_0x319d71[_0x2a8cad])&&(_0x59abfb=(_0x45623c<0x3?_0x3447b1(_0x59abfb):_0x45623c>0x3?_0x3447b1(_0x500e69,_0x18847a,_0x59abfb):_0x3447b1(_0x500e69,_0x18847a))||_0x59abfb);}return _0x45623c>0x3&&_0x59abfb&&Object[_0x19530a(0x496)](_0x500e69,_0x18847a,_0x59abfb),_0x59abfb;}let _0x4fc7b5=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(_0x4ec986,_0x317a73,_0x59a54c,_0x4f1d16,_0x20c912,_0x4d445d){const _0xd03e38=_0x209063;super(),this['_drawingManagerService']=_0x4ec986,this['_sheetsShapeService']=_0x317a73,this[_0xd03e38(0x2de)]=_0x59a54c,this['_imageIoService']=_0x4f1d16,this[_0xd03e38(0x35f)]=_0x20c912,this[_0xd03e38(0x2db)]=_0x4d445d,_0x28368a(this,_0xd03e38(0x415),new Map()),this[_0xd03e38(0x3df)](this['_shapeFormulaService'][_0xd03e38(0x479)][_0xd03e38(0x4d3)](_0x2ccc33=>{const _0x79e59a=_0xd03e38;var _0x5c732b;(_0x5c732b=this[_0x79e59a(0x415)][_0x79e59a(0x4cd)](this[_0x79e59a(0x412)](_0x2ccc33[_0x79e59a(0x441)],_0x2ccc33[_0x79e59a(0x2fe)],_0x2ccc33[_0x79e59a(0x3dc)])))==null||_0x5c732b[_0x79e59a(0x250)](_0x3bb82a=>_0x3bb82a[_0x79e59a(0x296)](_0x2ccc33[_0x79e59a(0x4ca)],_0x2ccc33[_0x79e59a(0x333)]));})),this[_0xd03e38(0x3df)](this['_drawingManagerService'][_0xd03e38(0x37d)][_0xd03e38(0x4d3)](_0x1d4d72=>{const _0x39540b=_0xd03e38;_0x1d4d72[_0x39540b(0x250)](_0x561526=>{const _0x489e79=_0x39540b;this['_shapeFormulaService']['unregister']({'unitId':_0x561526[_0x489e79(0x441)],'subUnitId':_0x561526['subUnitId'],'shapeId':_0x561526[_0x489e79(0x2e9)]}),this['_formulaShapes']['delete'](this[_0x489e79(0x412)](_0x561526[_0x489e79(0x441)],_0x561526[_0x489e79(0x2fe)],_0x561526[_0x489e79(0x2e9)]));});}));}[_0x209063(0x287)](_0x1872ad,_0x340326,_0xa4a4ba){const _0x3b117b=_0x209063;let {transform:_0x1846ab,drawingType:_0x461e03,srcRect:_0x36ed5f,prstGeom:_0x1843c6,groupId:_0x2ba368,unitId:_0x329c09,subUnitId:_0x31cf64,drawingId:_0xb2561c,isMultiTransform:_0xabaef5,transforms:_0x4d5aa4,hidden:_0x10294d,selectable:_0x38bdbd}=_0x1872ad;if(_0x461e03!==_0x49d30a['DrawingTypeEnum'][_0x3b117b(0x4fe)]||!this[_0x3b117b(0x4e5)]['getDrawingVisible']()||_0x1846ab==null)return;let _0x58f689=this['_drawingManagerService'][_0x3b117b(0x290)]();_0x58f689&&_0x340326[_0x3b117b(0x21c)](_0xa40d9e[_0x3b117b(0x3e2)]);let _0xd07b03=_0xabaef5&&_0x4d5aa4?_0x4d5aa4:[_0x1846ab],_0x3ddc46=[];for(let _0x239580 of _0xd07b03){let {left:_0x4f2102,top:_0x1811f1,width:_0xb4dbb6,height:_0x11d945,angle:_0x50e1fb,flipX:_0x2e2502,flipY:_0x1e3b1c,skewX:_0x4e93c3,skewY:_0x2f82cd}=_0x239580,_0x76a5a=_0xd07b03['indexOf'](_0x239580),_0x24fddf=(0x0,_0x510035[_0x3b117b(0x3a8)])({'unitId':_0x329c09,'subUnitId':_0x31cf64,'drawingId':_0xb2561c},_0xabaef5?_0x76a5a:void 0x0),_0x5c7fc8=_0x340326[_0x3b117b(0x22b)](_0x24fddf);if(_0x5c7fc8!=null){let _0x219cfb={'unitId':_0x329c09,'subUnitId':_0x31cf64,'shapeId':_0xb2561c};_0x5c7fc8 instanceof _0x642241&&this[_0x3b117b(0x2e2)](_0x5c7fc8,_0x219cfb),_0x5c7fc8[_0x3b117b(0x462)]({'left':_0x4f2102,'top':_0x1811f1,'width':_0xb4dbb6,'height':_0x11d945,'angle':_0x50e1fb,'flipX':_0x2e2502,'flipY':_0x1e3b1c,'skewX':_0x4e93c3,'skewY':_0x2f82cd});continue;}let _0x5c5193=this[_0x3b117b(0x4e5)][_0x3b117b(0x329)](_0x329c09,_0x31cf64),_0x58108f=_0x5c5193[_0x3b117b(0x26c)](_0xb2561c);if(_0x340326[_0x3b117b(0x22b)](_0x24fddf)||!this[_0x3b117b(0x4e5)][_0x3b117b(0x2ca)]())continue;let _0x2c3c01=this['_sheetsShapeService'][_0x3b117b(0x4b2)](_0x329c09,_0x31cf64,_0xb2561c);if(!_0x2c3c01)continue;let _0x909470=(0x0,_0x5b6709['isConnectorShape'])(_0x2c3c01[_0x3b117b(0x4b0)]()),_0x2208fd=_0x2c3c01[_0x3b117b(0x224)]()[_0x3b117b(0x330)],_0x266187={'unitId':_0x329c09,'subUnitId':_0x31cf64,'shapeId':_0xb2561c};_0x2208fd&&this[_0x3b117b(0x2db)][_0x3b117b(0x465)](_0x266187,_0x2208fd);let _0x5e97f7=new _0x642241(_0x24fddf,{..._0x909470?{..._0x239580,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x239580},'zIndex':_0x58108f===-0x1?_0x5c5193['length']-0x1:_0x58108f,'shapeModel':_0x2c3c01,'localeService':this[_0x3b117b(0x2de)],'shapeId':_0xb2561c,'unitId':_0x329c09,'subUnitId':_0x31cf64,'visible':_0x10294d!==!0x0,'evented':_0x38bdbd!==!0x1,'formulaPresentation':_0x2208fd?this['_shapeFormulaService'][_0x3b117b(0x421)](_0x266187):void 0x0,'animateFormulaPresentation':(_0x2208fd==null?void 0x0:_0x2208fd[_0x3b117b(0x333)])!==!0x1});if(_0x2208fd){var _0x7177f;let _0x38adc9=this[_0x3b117b(0x412)](_0x329c09,_0x31cf64,_0xb2561c),_0x223eb2=(_0x7177f=this[_0x3b117b(0x415)][_0x3b117b(0x4cd)](_0x38adc9))==null?new Set():_0x7177f;_0x223eb2[_0x3b117b(0x449)](_0x5e97f7),this['_formulaShapes'][_0x3b117b(0x402)](_0x38adc9,_0x223eb2);}_0x340326[_0x3b117b(0x1dd)](_0x5e97f7,_0x40dd84['DRAWING_OBJECT_LAYER_INDEX']),_0x58f689&&_0x340326['attachTransformerTo'](_0x5e97f7),_0x2ba368&&(0x0,_0xceb6c3[_0x3b117b(0x359)])({'drawingId':_0x2ba368,'unitId':_0x329c09,'subUnitId':_0x31cf64},_0x5e97f7,_0x340326,this[_0x3b117b(0x4e5)]),_0x1843c6!=null&&_0x5e97f7['setPrstGeom'](_0x1843c6),_0x36ed5f!=null&&_0x5e97f7[_0x3b117b(0x32e)](_0x36ed5f);let _0x176568=this['_loadShapePictureFill'](_0x5e97f7,_0x2c3c01[_0x3b117b(0x224)]());if(_0x176568){var _0x18064d;_0xa4a4ba==null||(_0x18064d=_0xa4a4ba[_0x3b117b(0x2ee)])==null||_0x18064d['add'](_0x176568);}_0x3ddc46[_0x3b117b(0x3ed)](_0x5e97f7);}return _0x3ddc46;}[_0x209063(0x412)](_0x37947d,_0x20d3fd,_0x2629cc){return _0x37947d+'\x00'+_0x20d3fd+'\x00'+_0x2629cc;}[_0x209063(0x2e2)](_0x396abd,_0x1e29f0){const _0x17af01=_0x209063;let _0x21103e=this['_sheetsShapeService'][_0x17af01(0x4b2)](_0x1e29f0['unitId'],_0x1e29f0[_0x17af01(0x2fe)],_0x1e29f0['shapeId']),_0x3228e0=_0x21103e==null?void 0x0:_0x21103e[_0x17af01(0x224)]()[_0x17af01(0x330)],_0x179bde=this['_formulaKey'](_0x1e29f0['unitId'],_0x1e29f0[_0x17af01(0x2fe)],_0x1e29f0[_0x17af01(0x3dc)]);if(_0x3228e0){var _0x5ec6f3;this['_shapeFormulaService'][_0x17af01(0x465)](_0x1e29f0,_0x3228e0);let _0x2a2e20=(_0x5ec6f3=this['_formulaShapes'][_0x17af01(0x4cd)](_0x179bde))==null?new Set():_0x5ec6f3;_0x2a2e20['add'](_0x396abd),this[_0x17af01(0x415)][_0x17af01(0x402)](_0x179bde,_0x2a2e20);}else{var _0x90e1b2;this[_0x17af01(0x2db)][_0x17af01(0x3a7)](_0x1e29f0),(_0x90e1b2=this['_formulaShapes'][_0x17af01(0x4cd)](_0x179bde))==null||_0x90e1b2[_0x17af01(0x425)](_0x396abd);}_0x396abd[_0x17af01(0x296)](_0x3228e0?this[_0x17af01(0x2db)][_0x17af01(0x421)](_0x1e29f0):void 0x0,(_0x3228e0==null?void 0x0:_0x3228e0[_0x17af01(0x333)])!==!0x1);}[_0x209063(0x221)](_0x40884c){const _0x41b2e6=_0x209063;let _0x17b742=_0x40884c[_0x41b2e6(0x4aa)][_0x41b2e6(0x224)](),_0x55a841=_0x17b742[_0x41b2e6(0x3b7)];if(!_0x55a841||_0x55a841['fillType']!==_0x5b6709[_0x41b2e6(0x3b8)][_0x41b2e6(0x3e5)]||!_0x55a841['fillImageSource']){_0x40884c[_0x41b2e6(0x24d)](void 0x0);return;}this[_0x41b2e6(0x31c)](_0x40884c,_0x17b742);}[_0x209063(0x31c)](_0x4e9ac7,_0x3d0847){const _0x33f2aa=_0x209063;var _0x25036f;let _0xe7d57c=_0x3d0847[_0x33f2aa(0x3b7)];if(!_0xe7d57c||_0xe7d57c[_0x33f2aa(0x4c0)]!==_0x5b6709['ShapeFillEnum'][_0x33f2aa(0x3e5)]||!_0xe7d57c[_0x33f2aa(0x41c)])return;let _0x1b258f=_0xe7d57c[_0x33f2aa(0x41c)],_0x4bac00=(_0x25036f=_0xe7d57c[_0x33f2aa(0x1fc)])==null?_0x5b6709[_0x33f2aa(0x444)][_0x33f2aa(0x25c)]:_0x25036f,_0x37897d=this['_imageIoService'][_0x33f2aa(0x3b2)](_0x1b258f,_0x4bac00);if(_0x37897d){_0x4e9ac7['setFillImage'](_0x37897d);return;}return this[_0x33f2aa(0x378)](_0x4e9ac7,_0x1b258f,_0x4bac00);}async[_0x209063(0x378)](_0x28affb,_0x156bb8,_0x516357){const _0x5c39cb=_0x209063;let _0x4dfcf8;try{if(_0x516357===_0x5b6709[_0x5c39cb(0x444)]['UUID'])_0x4dfcf8=await this['_imageIoService'][_0x5c39cb(0x4b5)](_0x156bb8);else{if(_0x516357===_0x5b6709[_0x5c39cb(0x444)][_0x5c39cb(0x25c)])try{_0x4dfcf8=await this[_0x5c39cb(0x35f)][_0x5c39cb(0x4b5)](_0x156bb8);}catch{_0x4dfcf8=_0x156bb8;}else _0x4dfcf8=_0x156bb8;}}catch(_0x42fd16){console[_0x5c39cb(0x377)](_0x5c39cb(0x2c4),_0x42fd16);return;}await new Promise(_0x34e133=>{const _0x43543d=_0x5c39cb;let _0x347969=new window[(_0x43543d(0x4bb))]();_0x347969['onload']=()=>{const _0x20aa79=_0x43543d;this['_imageIoService']['addImageSourceCache'](_0x156bb8,_0x516357,_0x347969),_0x28affb[_0x20aa79(0x24d)](_0x347969),_0x34e133();},_0x347969[_0x43543d(0x3e4)]=()=>{const _0x1ca317=_0x43543d;console[_0x1ca317(0x377)](_0x1ca317(0x419),_0x156bb8),_0x34e133();},_0x347969[_0x43543d(0x388)]=_0x4dfcf8;});}};_0x4fc7b5=_0x276893([_0x3cbe95(0x0,_0x510035[_0x209063(0x239)]),_0x3cbe95(0x1,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x4eb2ab['SheetsShapeService'])),_0x3cbe95(0x2,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x49d30a['LocaleService'])),_0x3cbe95(0x3,_0x49d30a['IImageIoService']),_0x3cbe95(0x4,_0x49d30a[_0x209063(0x2e5)]),_0x3cbe95(0x5,(0x0,_0x49d30a['Inject'])(_0x5a6548[_0x209063(0x352)]))],_0x4fc7b5);let _0x54179a=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(_0x560c5a,_0x383015,_0x421787,_0x5e2be7,_0x49aa93,_0x3173b9){const _0x30fbbb=_0x209063;super(),this[_0x30fbbb(0x4e5)]=_0x560c5a,this[_0x30fbbb(0x488)]=_0x383015,this[_0x30fbbb(0x40d)]=_0x421787,this[_0x30fbbb(0x4af)]=_0x5e2be7,this['_univerInstanceService']=_0x49aa93,this[_0x30fbbb(0x240)]=_0x3173b9,_0x28368a(this,_0x30fbbb(0x39d),null),_0x28368a(this,_0x30fbbb(0x30e),null),_0x28368a(this,'_subUnitId',null),_0x28368a(this,_0x30fbbb(0x2bf),void 0x0),_0x28368a(this,_0x30fbbb(0x461),[]),_0x28368a(this,_0x30fbbb(0x379),0x0),_0x28368a(this,_0x30fbbb(0x364),0x0),_0x28368a(this,_0x30fbbb(0x470),0x0),_0x28368a(this,'_baseShapeHeight',0x0),_0x28368a(this,'_isStartAdjusting',!0x1),_0x28368a(this,_0x30fbbb(0x44d),void 0x0),_0x28368a(this,_0x30fbbb(0x23a),void 0x0),_0x28368a(this,_0x30fbbb(0x318),void 0x0),_0x28368a(this,_0x30fbbb(0x40f),void 0x0),_0x28368a(this,_0x30fbbb(0x343),!0x1),this[_0x30fbbb(0x453)](),this[_0x30fbbb(0x474)]();}[_0x209063(0x4c2)](_0x815a9f,_0x8e5f61,_0x285487){const _0x139c75=_0x209063;let _0x337a37=this['_sheetsShapeService'][_0x139c75(0x4b2)](_0x815a9f,_0x8e5f61,_0x285487);if(_0x337a37)return _0x337a37['getDrawingPoints']();}[_0x209063(0x409)](){const _0xb72df5=_0x209063;this[_0xb72df5(0x3f9)]();}[_0x209063(0x424)](){const _0x135ef0=_0x209063;this[_0x135ef0(0x319)](!0x0);}[_0x209063(0x256)](_0x411c1a){const _0x555885=_0x209063;this[_0x555885(0x343)]=_0x411c1a;}[_0x209063(0x4d0)](_0x120942,_0x40489a,_0x40843c,_0x3ed655){const _0x2a7a71=_0x209063;let _0x5b9097=this[_0x2a7a71(0x488)]['getShapeModel'](_0x120942,_0x40489a,_0x40843c);if(_0x5b9097)return _0x5b9097[_0x2a7a71(0x4dd)](_0x3ed655);}[_0x209063(0x3fc)](_0x5b9b01=!0x1){const _0x2a13ae=_0x209063;if(this[_0x2a13ae(0x30e)]===null||this[_0x2a13ae(0x489)]===null||this[_0x2a13ae(0x39d)]===null)return;let _0x57324d=this[_0x2a13ae(0x40d)][_0x2a13ae(0x2f7)](this['_unitId']);if(!_0x57324d||!_0x57324d[_0x2a13ae(0x451)](_0x100e66[_0x2a13ae(0x242)])[_0x2a13ae(0x238)]())return;let {scene:_0x1c393f}=_0x57324d,_0x310913={'unitId':this['_unitId'],'subUnitId':this[_0x2a13ae(0x489)],'drawingId':this[_0x2a13ae(0x39d)]},_0x349583=this[_0x2a13ae(0x4e5)][_0x2a13ae(0x20c)](_0x310913),{transform:_0x513a6d}=_0x349583;if(!_0x513a6d||_0x349583[_0x2a13ae(0x3e8)]!==_0x49d30a['DrawingTypeEnum']['DRAWING_SHAPE'])return;let {left:_0x2c0019,top:_0x443d61,width:_0x43105d,height:_0x2a1496,flipX:_0x19864c,flipY:_0x1fb0f3,angle:_0x397b5a=0x0}=_0x513a6d;if(_0x2c0019===void 0x0||_0x443d61===void 0x0)return;_0x5b9b01&&(this['_activeShapeAdjustPointList']=this[_0x2a13ae(0x4c2)](this['_unitId'],this[_0x2a13ae(0x489)],this[_0x2a13ae(0x39d)]));let _0x1e465a=this[_0x2a13ae(0x2bf)];for(let _0x5ee64c=0x0;_0x5ee64c<_0x1e465a[_0x2a13ae(0x28f)];_0x5ee64c++){let _0x2662fe=_0x1e465a[_0x5ee64c],_0x5483ca=_0x2662fe['x'],_0x1071ea=_0x2662fe['y'];if(_0x19864c&&(_0x5483ca=(_0x43105d||0x0)-_0x5483ca),_0x1fb0f3&&(_0x1071ea=(_0x2a1496||0x0)-_0x1071ea),_0x397b5a!==0x0){let _0x2728b6=(_0x43105d||0x0)/0x2,_0x1a4067=(_0x2a1496||0x0)/0x2,_0x27f4a4=_0x397b5a*Math['PI']/0xb4,_0x545d17=Math[_0x2a13ae(0x344)](_0x27f4a4),_0xd2e096=Math[_0x2a13ae(0x4e1)](_0x27f4a4),_0x5a6458=_0x5483ca-_0x2728b6,_0xef46a3=_0x1071ea-_0x1a4067;_0x5483ca=_0x2728b6+(_0x5a6458*_0x545d17-_0xef46a3*_0xd2e096),_0x1071ea=_0x1a4067+(_0x5a6458*_0xd2e096+_0xef46a3*_0x545d17);}let _0x48e965={'x':_0x5483ca,'y':_0x1071ea,'adjName':_0x2662fe[_0x2a13ae(0x259)]};this[_0x2a13ae(0x491)](_0x1c393f,_0x48e965,_0x48e965['adjName'],_0x2c0019,_0x443d61,this[_0x2a13ae(0x30e)],this[_0x2a13ae(0x489)]);}}['_updateShapeAdjustControls'](_0x4fed1e=!0x1){const _0x5d1d2c=_0x209063;_0x4fed1e&&(this[_0x5d1d2c(0x3f9)](),this[_0x5d1d2c(0x3fc)](_0x4fed1e));}['_addShapeAdjustControl'](_0x5c417d,_0x44b55b,_0x587b6c,_0x830790,_0x1c7974,_0x483987,_0xb8a841){const _0x4bda45=_0x209063;if(!this['_activeShapeId'])return;let _0x39618e=_0x5c417d[_0x4bda45(0x22b)](_0x4bda45(0x225)+this[_0x4bda45(0x39d)]+'-'+_0x587b6c);if(_0x39618e){_0x39618e[_0x4bda45(0x462)]({'left':_0x44b55b['x']+_0x830790-_0x5b6709[_0x4bda45(0x389)][_0x4bda45(0x3fe)],'top':_0x44b55b['y']+_0x1c7974-_0x5b6709[_0x4bda45(0x389)][_0x4bda45(0x3fe)]});return;}let _0x39d703={'left':_0x44b55b['x']+_0x830790-_0x5b6709[_0x4bda45(0x389)][_0x4bda45(0x3fe)],'top':_0x44b55b['y']+_0x1c7974-_0x5b6709[_0x4bda45(0x389)][_0x4bda45(0x3fe)],'adjName':_0x587b6c,'shapeId':this[_0x4bda45(0x39d)],'unitId':_0x483987,'subUnitId':_0xb8a841,'width':_0x5b6709[_0x4bda45(0x389)][_0x4bda45(0x3fe)]+0x8,'height':_0x5b6709[_0x4bda45(0x389)][_0x4bda45(0x3fe)]+0x8,'zIndex':_0x40dd84[_0x4bda45(0x27f)]+0x1,'evented':!0x0},_0x36d253=new _0xa97e9e(_0x4bda45(0x225)+this['_activeShapeId']+'-'+_0x587b6c,_0x39d703);this[_0x4bda45(0x461)]['push'](_0x36d253),this[_0x4bda45(0x487)](_0x36d253,_0x5c417d,_0x587b6c),_0x5c417d['addObject'](_0x36d253,_0x40dd84[_0x4bda45(0x27f)]+0x1);}[_0x209063(0x3f9)](){const _0xc853a4=_0x209063;this['_shapes'][_0xc853a4(0x28f)]!==0x0&&(this[_0xc853a4(0x461)]['forEach'](_0x1dadf5=>{const _0x40c993=_0xc853a4;_0x1dadf5[_0x40c993(0x46a)]();}),this[_0xc853a4(0x461)]=[]);}[_0x209063(0x4db)](){const _0x5499ea=_0x209063;this[_0x5499ea(0x3fc)]();}[_0x209063(0x2a8)](_0x1db63b,_0x4a67e0){const _0x274006=_0x209063;var _0x56882f;let _0x469202={'x':0x0,'y':0x0};if(!_0x1db63b||!_0x4a67e0)return _0x469202;let _0x94d9f9=this[_0x274006(0x40d)][_0x274006(0x2f7)](_0x1db63b);if(!_0x94d9f9||!_0x94d9f9[_0x274006(0x451)](_0x100e66['SheetSkeletonManagerService'])['getSkeleton'](_0x4a67e0))return _0x469202;let _0x386f49=_0x94d9f9[_0x274006(0x451)](_0x100e66[_0x274006(0x200)]),_0xe9151e=_0x386f49==null?void 0x0:_0x386f49['getCurrentScrollState']();if(!_0xe9151e)return _0x469202;let _0x6f048=(_0x56882f=this[_0x274006(0x2be)][_0x274006(0x22d)](_0x1db63b))==null?void 0x0:_0x56882f['getSheetBySheetId'](_0x4a67e0);if(!_0x6f048)return _0x469202;let _0x5ec706=(0x0,_0x100e66['getViewportByCell'])(_0xe9151e[_0x274006(0x230)],_0xe9151e[_0x274006(0x477)],_0x94d9f9[_0x274006(0x349)],_0x6f048);return _0x5ec706?{'x':_0x5ec706[_0x274006(0x1db)],'y':_0x5ec706[_0x274006(0x2da)]}:_0x469202;}[_0x209063(0x29c)](_0x424ba1,_0x425547){const _0x2bd719=_0x209063;var _0xc8f417,_0x46cdc5;let _0x1fbf15=(_0xc8f417=this[_0x2bd719(0x2be)][_0x2bd719(0x22d)](_0x424ba1))==null?void 0x0:_0xc8f417['getSheetBySheetId'](_0x425547);return(_0x46cdc5=_0x1fbf15==null?void 0x0:_0x1fbf15[_0x2bd719(0x350)]())==null?0x1:_0x46cdc5;}[_0x209063(0x487)](_0x2c2c09,_0x3012cf,_0x29b390){const _0x163dd4=_0x209063;this[_0x163dd4(0x3df)]((0x0,_0x49d30a['toDisposable'])(_0x2c2c09[_0x163dd4(0x222)][_0x163dd4(0x35a)]((_0x39f7f0,_0x5a8cd2)=>{const _0x4ef6c7=_0x163dd4;var _0x34efb7,_0x336bb6,_0x2f2b8a,_0x4aa4d4;let _0x4073f9=_0x2c2c09[_0x4ef6c7(0x36c)]();this['_activeAdjustInfo']=this[_0x4ef6c7(0x4d0)](_0x4073f9['unitId'],_0x4073f9['subUnitId'],_0x4073f9[_0x4ef6c7(0x2e9)],_0x29b390),this[_0x4ef6c7(0x23a)]=this['_sheetsShapeService'][_0x4ef6c7(0x4b2)](_0x4073f9[_0x4ef6c7(0x441)],_0x4073f9['subUnitId'],_0x4073f9[_0x4ef6c7(0x2e9)]);let _0x391c8f=this[_0x4ef6c7(0x4e5)][_0x4ef6c7(0x20c)]({'unitId':this['_unitId'],'subUnitId':this[_0x4ef6c7(0x489)],'drawingId':this['_activeShapeId']}),{transform:_0xb3d407}=_0x391c8f;if(_0xb3d407){let {left:_0x366847,top:_0x23e460,width:_0x1a2fd8,height:_0x38f85e}=_0xb3d407;this[_0x4ef6c7(0x379)]=_0x366847||0x0,this['_baseShapeTop']=_0x23e460||0x0,this['_baseShapeWidth']=_0x1a2fd8||0x0,this[_0x4ef6c7(0x271)]=_0x38f85e||0x0;}let _0x5108b0=!!((_0x34efb7=_0x391c8f['transform'])!=null&&_0x34efb7[_0x4ef6c7(0x2d8)]),_0x23f700=!!((_0x336bb6=_0x391c8f[_0x4ef6c7(0x267)])!=null&&_0x336bb6['flipY']),_0x44be95=((_0x2f2b8a=_0x391c8f[_0x4ef6c7(0x267)])==null?void 0x0:_0x2f2b8a[_0x4ef6c7(0x43d)])||0x0;this[_0x4ef6c7(0x278)]=!0x0,_0x3012cf[_0x4ef6c7(0x202)]();let _0x2e55be=(_0x4aa4d4=this['_activeShapeModel'])==null?void 0x0:_0x4aa4d4[_0x4ef6c7(0x213)](_0x29b390),_0x29ca4a={[_0x29b390]:_0x2e55be};this['_adjHandlerPointerMove']=_0x3012cf[_0x4ef6c7(0x468)]['subscribeEvent']((_0x12c064,_0x3e84c5)=>{const _0x2997d9=_0x4ef6c7;if(!this[_0x2997d9(0x278)])return;let {offsetX:_0x7a9009,offsetY:_0x2e0486}=_0x12c064,_0x2e9dfb=this[_0x2997d9(0x44d)];if(this[_0x2997d9(0x23a)]&&_0x2e9dfb){_0x3012cf['disableObjectsEvent'](),_0x3012cf[_0x2997d9(0x248)](_0x40dd84[_0x2997d9(0x223)][_0x2997d9(0x317)]);let _0x25331e={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0x2997d9(0x271)]},_0x42711c=this[_0x2997d9(0x2a8)](this[_0x2997d9(0x30e)],this['_subUnitId']),_0x4420f1=this[_0x2997d9(0x29c)](this[_0x2997d9(0x30e)],this[_0x2997d9(0x489)]),_0x4fff96=_0x7a9009/_0x4420f1+_0x42711c['x']-this[_0x2997d9(0x379)],_0x2c9a57=_0x2e0486/_0x4420f1+_0x42711c['y']-this[_0x2997d9(0x364)];if(_0x44be95!==0x0){let _0x15cf3b=this['_baseShapeWidth']/0x2,_0x4b17f5=this[_0x2997d9(0x271)]/0x2,_0x17b01e=_0x44be95*Math['PI']/0xb4,_0x33413b=Math['cos'](_0x17b01e),_0x1ace90=Math[_0x2997d9(0x4e1)](_0x17b01e),_0x5d25b4=_0x4fff96-_0x15cf3b,_0x2d5772=_0x2c9a57-_0x4b17f5;_0x4fff96=_0x15cf3b+(_0x5d25b4*_0x33413b+_0x2d5772*_0x1ace90),_0x2c9a57=_0x4b17f5+(-_0x5d25b4*_0x1ace90+_0x2d5772*_0x33413b);}_0x5108b0&&(_0x4fff96=this[_0x2997d9(0x470)]-_0x4fff96),_0x23f700&&(_0x2c9a57=this['_baseShapeHeight']-_0x2c9a57);let _0xf69bbe={'x':_0x4fff96,'y':_0x2c9a57},_0x39e05f=this[_0x2997d9(0x23a)][_0x2997d9(0x2cf)](_0x25331e,_0xf69bbe,_0x2e9dfb,_0x5108b0,_0x23f700),_0x11c99b=_0x2e9dfb[_0x2997d9(0x45d)]||_0x2e9dfb[_0x2997d9(0x48a)]||_0x2e9dfb[_0x2997d9(0x46d)]||_0x2e9dfb['gdRefR'];if(_0x11c99b===void 0x0)return;this[_0x2997d9(0x23a)][_0x2997d9(0x45a)](_0x11c99b,_0x39e05f);let _0x3a1dc7=this[_0x2997d9(0x4e5)][_0x2997d9(0x20c)]({'unitId':_0x4073f9[_0x2997d9(0x441)],'subUnitId':_0x4073f9[_0x2997d9(0x2fe)],'drawingId':_0x4073f9['drawingId']});_0x3a1dc7&&(this[_0x2997d9(0x4af)][_0x2997d9(0x287)](_0x3a1dc7,_0x3012cf),this[_0x2997d9(0x2bf)]=this[_0x2997d9(0x4c2)](_0x4073f9[_0x2997d9(0x441)],_0x4073f9[_0x2997d9(0x2fe)],_0x4073f9[_0x2997d9(0x2e9)]),this[_0x2997d9(0x4db)]());}_0x3e84c5[_0x2997d9(0x2b6)]();}),this[_0x4ef6c7(0x40f)]=_0x3012cf['onPointerUp$']['subscribeEvent']((_0x420e9a,_0x116c75)=>{const _0x3b3937=_0x4ef6c7;this[_0x3b3937(0x318)][_0x3b3937(0x27d)](),this[_0x3b3937(0x40f)][_0x3b3937(0x27d)](),_0x3012cf[_0x3b3937(0x3be)]();let _0x4b62e8=this[_0x3b3937(0x44d)];if(_0x4b62e8){let _0x17e311=_0x4073f9[_0x3b3937(0x441)],_0x25920c=_0x4073f9['subUnitId'],_0x292adb=_0x4073f9[_0x3b3937(0x2e9)],_0x57a2fd=_0x4b62e8[_0x3b3937(0x45d)]||_0x4b62e8[_0x3b3937(0x48a)]||_0x4b62e8['gdRefAng']||_0x4b62e8[_0x3b3937(0x328)];if(_0x57a2fd!==void 0x0){var _0x14a965;let _0x46c9ac=(_0x14a965=this[_0x3b3937(0x23a)])==null?void 0x0:_0x14a965[_0x3b3937(0x213)](_0x57a2fd);_0x46c9ac!==void 0x0&&_0x407767(this[_0x3b3937(0x240)],_0x17e311,_0x25920c,_0x292adb,{'oldShapeData':{'adjustValues':_0x29ca4a}},{'adjustValues':{[_0x57a2fd]:_0x46c9ac}});}}this[_0x3b3937(0x44d)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x3b3937(0x278)]=!0x1,_0x116c75[_0x3b3937(0x2b6)](),_0x3012cf[_0x3b3937(0x4a1)]();}),_0x5a8cd2['stopPropagation']();})));}[_0x209063(0x474)](){const _0x1b3d58=_0x209063;let _0x28560f=this[_0x1b3d58(0x2be)]['getCurrentTypeOfUnit$'](_0x49d30a['UniverInstanceType']['UNIVER_SHEET']);this[_0x1b3d58(0x3df)](_0x28560f[_0x1b3d58(0x201)]((0x0,_0x230aed[_0x1b3d58(0x24b)])(_0x500200=>_0x500200?_0x500200['activeSheet$'][_0x1b3d58(0x201)]((0x0,_0x230aed['switchMap'])(_0x497539=>{const _0x29f2e1=_0x1b3d58;if(!_0x497539)return _0x230aed['EMPTY'];let _0x8a18f4=_0x500200['getUnitId'](),_0x5779f8=this['_renderManagerService']['getRenderById'](_0x8a18f4),_0x59982f=_0x5779f8==null?void 0x0:_0x5779f8[_0x29f2e1(0x349)];return _0x59982f?(0x0,_0x230aed['of'])(_0x59982f):_0x230aed[_0x29f2e1(0x2d0)];})):_0x230aed[_0x1b3d58(0x2d0)]))[_0x1b3d58(0x4d3)](_0x518dad=>{const _0x22e598=_0x1b3d58;let _0x80a756=_0x518dad[_0x22e598(0x262)]();this[_0x22e598(0x3df)](_0x518dad[_0x22e598(0x468)][_0x22e598(0x35a)](()=>{this['_isShouldShowDrawingShapeAdjust'];})),this[_0x22e598(0x3df)](_0x80a756[_0x22e598(0x275)]['subscribe'](_0x1b9ff6=>{const _0xd7af8b=_0x22e598;let {objects:_0x48f94b}=_0x1b9ff6;this[_0xd7af8b(0x3fc)](),_0x48f94b!==null&&_0x48f94b[_0xd7af8b(0x3c6)]===0x1&&_0x48f94b[_0xd7af8b(0x1e1)]()['next']()[_0xd7af8b(0x2b4)]instanceof _0x642241&&this[_0xd7af8b(0x256)](!0x0);})),this[_0x22e598(0x3df)](_0x80a756['changing$']['subscribe'](()=>{const _0x1590e5=_0x22e598;this[_0x1590e5(0x343)]&&this[_0x1590e5(0x3f9)]();})),this[_0x22e598(0x3df)](_0x518dad['onPointerUp$'][_0x22e598(0x35a)](()=>{const _0x3e20f0=_0x22e598;this[_0x3e20f0(0x343)]&&(this['setShouldShowAdjust'](!0x1),this[_0x3e20f0(0x3fc)]());})),this['disposeWithMe'](_0x80a756[_0x22e598(0x4d7)][_0x22e598(0x4d3)](()=>{const _0x10d014=_0x22e598;this[_0x10d014(0x30e)]&&this['_subUnitId']&&this[_0x10d014(0x39d)]&&this[_0x10d014(0x4e5)][_0x10d014(0x20c)]({'unitId':this['_unitId'],'subUnitId':this[_0x10d014(0x489)],'drawingId':this[_0x10d014(0x39d)]})&&(this[_0x10d014(0x2bf)]=this[_0x10d014(0x4c2)](this['_unitId'],this[_0x10d014(0x489)],this['_activeShapeId']),this[_0x10d014(0x4db)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x5e7b51=_0x209063;this[_0x5e7b51(0x3df)](this[_0x5e7b51(0x4e5)]['focus$']['subscribe'](_0xb429b4=>{const _0x206ad8=_0x5e7b51;if(_0xb429b4[_0x206ad8(0x28f)]===0x1){let _0x4067b9=_0xb429b4[0x0];if(_0x4067b9[_0x206ad8(0x3e8)]===_0x49d30a[_0x206ad8(0x365)]['DRAWING_SHAPE']){this[_0x206ad8(0x39d)]=_0x4067b9[_0x206ad8(0x2e9)];let {unitId:_0x3a6904,subUnitId:_0x7b3691}=_0x4067b9;this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](_0x3a6904,_0x7b3691,this[_0x206ad8(0x39d)]),this[_0x206ad8(0x30e)]=_0x3a6904,this[_0x206ad8(0x489)]=_0x7b3691,this[_0x206ad8(0x3f9)](),this['_createShapeAdjustControls']();}else this['_activeShapeId']=null,this[_0x206ad8(0x2bf)]=void 0x0,this[_0x206ad8(0x30e)]=null,this[_0x206ad8(0x489)]=null,this[_0x206ad8(0x3f9)]();}(_0xb429b4['length']>0x1||_0xb429b4[_0x206ad8(0x28f)]===0x0)&&(this[_0x206ad8(0x39d)]=null,this['_activeShapeAdjustPointList']=void 0x0,this['_unitId']=null,this[_0x206ad8(0x489)]=null,this[_0x206ad8(0x3f9)]());})),this['disposeWithMe'](this[_0x5e7b51(0x4e5)][_0x5e7b51(0x44c)][_0x5e7b51(0x4d3)](_0x9079f2=>{const _0x349af7=_0x5e7b51;if(_0x9079f2[_0x349af7(0x28f)]===0x1){var _0x209e47;let _0x1b63b0=_0x9079f2[0x0];((_0x209e47=this[_0x349af7(0x4e5)]['getDrawingByParam'](_0x1b63b0))==null?void 0x0:_0x209e47[_0x349af7(0x3e8)])===_0x49d30a[_0x349af7(0x365)][_0x349af7(0x4fe)]&&this[_0x349af7(0x319)](!0x0);}})),this[_0x5e7b51(0x3df)](this[_0x5e7b51(0x4e5)][_0x5e7b51(0x37d)]['subscribe'](_0x50deaa=>{const _0x2fba60=_0x5e7b51;for(let _0x32a074 of _0x50deaa)this[_0x2fba60(0x39d)]===_0x32a074['drawingId']&&(this['_activeShapeId']=null,this[_0x2fba60(0x2bf)]=void 0x0,this['_unitId']=null,this[_0x2fba60(0x489)]=null,this[_0x2fba60(0x3f9)]());}));}};_0x54179a=_0x276893([_0x3cbe95(0x0,_0x510035[_0x209063(0x239)]),_0x3cbe95(0x1,(0x0,_0x49d30a['Inject'])(_0x4eb2ab[_0x209063(0x264)])),_0x3cbe95(0x2,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x40dd84[_0x209063(0x2ba)])),_0x3cbe95(0x3,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x4fc7b5)),_0x3cbe95(0x4,_0x49d30a['IUniverInstanceService']),_0x3cbe95(0x5,_0x49d30a['ICommandService'])],_0x54179a);let _0x2d736f={'id':'drawing.operation.set-drawing-active','type':_0x49d30a['CommandType'][_0x209063(0x38f)],'handler':(_0x4af4f6,_0x1f515b)=>{const _0x577004=_0x209063;let _0x72afcb=_0x4af4f6[_0x577004(0x4cd)](_0x510035['IDrawingManagerService']),_0x3ef45c=_0x4af4f6['get'](_0x40dd84[_0x577004(0x2ba)]),_0xef3961=_0x4af4f6[_0x577004(0x4cd)](_0x54179a);if(_0x1f515b==null)return!0x0;if(_0x1f515b[_0x577004(0x28f)]>0x0){var _0x2758c1;let _0x2d1026=(_0x2758c1=_0x3ef45c[_0x577004(0x2f7)](_0x1f515b[0x0][_0x577004(0x441)]))==null?void 0x0:_0x2758c1[_0x577004(0x349)];if(_0x2d1026){let {unitId:_0x423845,subUnitId:_0x267f2a,drawingId:_0x2b04f7}=_0x1f515b[0x0],_0x579552=(0x0,_0x510035['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x423845,'subUnitId':_0x267f2a,'drawingId':_0x2b04f7},void 0x0),_0x2ee236=_0x2d1026['getObjectIncludeInGroup'](_0x579552);if(_0x2ee236){var _0x55569f;(_0x55569f=_0x3ef45c[_0x577004(0x2f7)](_0x1f515b[0x0]['unitId']))==null||(_0x55569f=_0x55569f['scene']['getTransformer']())==null||_0x55569f[_0x577004(0x2a2)](_0x2ee236);}}_0x72afcb[_0x577004(0x310)](_0x1f515b),_0xef3961[_0x577004(0x256)](!0x1);}return!0x0;}},_0x454166={'type':_0x49d30a[_0x209063(0x4f0)]['COMMAND'],'id':'sheet.command.menu-insert-shape','handler':async(_0x284ae4,_0x3aabca)=>{const _0x29b3c2=_0x209063;let _0x17fce9=(0x0,_0x4fbea5[_0x29b3c2(0x3c0)])(_0x284ae4[_0x29b3c2(0x4cd)](_0x49d30a['IUniverInstanceService']));if(!_0x17fce9)return!0x1;let _0x58fd19=_0x284ae4[_0x29b3c2(0x4cd)](_0x4fbea5['SheetsSelectionsService'])[_0x29b3c2(0x1f7)]();if(!_0x58fd19)return!0x1;let _0x1e6d1a=_0x284ae4['get'](_0x49d30a[_0x29b3c2(0x4c5)]),{unitId:_0x44d87c,subUnitId:_0x462dde}=_0x17fce9,{value:_0x281614,enhanceParams:_0x1741b0}=_0x3aabca,{range:_0x1c7672}=_0x58fd19,_0x472685={'unitId':_0x44d87c,'subUnitId':_0x462dde,'shapeType':_0x281614,'range':_0x1c7672,'shapeId':(0x0,_0x49d30a[_0x29b3c2(0x20b)])()};if(_0x1741b0){let _0x3b5494=(0x0,_0x5b6709[_0x29b3c2(0x3b5)])(_0x281614),_0x3c7a7d=_0x281614===_0x5b6709[_0x29b3c2(0x297)][_0x29b3c2(0x3e3)];_0x3b5494&&(_0x1741b0[_0x29b3c2(0x467)]||_0x1741b0[_0x29b3c2(0x305)])&&(_0x472685['shapeData']={'ln':{'startArrow':_0x1741b0[_0x29b3c2(0x467)]?{'type':_0x5b6709['ShapeArrowTypeEnum'][_0x29b3c2(0x2f0)],'size':_0x5b6709[_0x29b3c2(0x3c5)][_0x29b3c2(0x1d7)]}:void 0x0,'endArrow':_0x1741b0[_0x29b3c2(0x305)]?{'type':_0x5b6709[_0x29b3c2(0x391)][_0x29b3c2(0x2f0)],'size':_0x5b6709[_0x29b3c2(0x3c5)][_0x29b3c2(0x356)]}:void 0x0}}),_0x3c7a7d&&(_0x1741b0['horizontal']||_0x1741b0[_0x29b3c2(0x3a5)])&&(_0x472685[_0x29b3c2(0x4d4)]=(0x0,_0x5a6548['createShapeTextBoxShapeData'])({'fill':{'fillType':_0x5b6709[_0x29b3c2(0x3b8)]['SolidFill'],'color':_0x29b3c2(0x3d0)},'isHorizontal':!!_0x1741b0[_0x29b3c2(0x3d9)],'stroke':{'lineStrokeType':_0x5b6709[_0x29b3c2(0x23b)]['SolidLine'],'width':0x1,'color':_0x29b3c2(0x4a7)}}));}let _0x276ca8=_0x1e6d1a['syncExecuteCommand'](_0x4eb2ab[_0x29b3c2(0x3a0)]['id'],_0x472685);return setTimeout(()=>{const _0x56621b=_0x29b3c2;_0x1e6d1a['executeCommand'](_0x2d736f['id'],[{'unitId':_0x44d87c,'subUnitId':_0x462dde,'drawingId':_0x472685[_0x56621b(0x3dc)]}]);},0xc8),_0x276ca8;}},_0x1e65b6='sheet.shape.edit.panel',_0xd78f5f='sheet.shape.object-list.panel',_0x15b03d=_0x209063(0x301),_0x1e912e=(0x0,_0x49d30a[_0x209063(0x363)])(_0x209063(0x390)),_0x3c71d3=_0x209063(0x4e3),_0x3dd6d4={'id':_0x209063(0x434),'type':_0x49d30a[_0x209063(0x4f0)][_0x209063(0x251)],'handler':(_0x53f8b5,_0x415a69)=>{const _0x524d3d=_0x209063;let _0x474797=_0x53f8b5[_0x524d3d(0x4cd)](_0xa9133b[_0x524d3d(0x37c)]),_0x6495c1=_0x53f8b5['get'](_0x49d30a[_0x524d3d(0x3e6)]),_0x4e8ba2=_0x53f8b5[_0x524d3d(0x4cd)](_0x49d30a['IUniverInstanceService']),_0x2cdadf=_0x53f8b5[_0x524d3d(0x4cd)](_0x49d30a[_0x524d3d(0x4c5)]);return(0x0,_0x4fbea5['getSheetCommandTarget'])(_0x4e8ba2)?(_0x415a69==null?void 0x0:_0x415a69['value'])===_0x524d3d(0x336)?(_0x474797['close'](_0xd78f5f),!0x0):(_0x474797[_0x524d3d(0x2cd)]({'id':_0xd78f5f,'header':{'title':_0x6495c1['t']('sheets-shape-ui.objectListPanel.title')},'children':{'label':_0xd78f5f},'onClose':()=>{const _0x316a3b=_0x524d3d;_0x2cdadf[_0x316a3b(0x3f6)](_0x510035[_0x316a3b(0x2b7)]['id'],[]);},'width':0x168}),!0x0):!0x1;}},_0x43d42e=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(_0x1425fc,_0x3dbf18){const _0x41006f=_0x209063;super(),this[_0x41006f(0x46e)]=_0x1425fc,this[_0x41006f(0x4e5)]=_0x3dbf18,this[_0x41006f(0x4bc)](),this[_0x41006f(0x46e)]['setCanUseShapeClip'](!0x0),this[_0x41006f(0x3df)]({'dispose':()=>this[_0x41006f(0x46e)][_0x41006f(0x4c4)](!0x1)});}[_0x209063(0x4bc)](){const _0x2cc359=_0x209063;let _0x46b651=this[_0x2cc359(0x46e)],_0x939ca9=new Map(),_0x1ef8d5=_0x46b651['registerClipDelegate']((_0x1a21bd,_0x4c9074,_0x2adb2b,_0x4fb6f7,_0x11389d)=>{const _0x3fe521=_0x2cc359;let _0x2efbc3=_0x4c9074;if(_0x2efbc3===_0x5b6709[_0x3fe521(0x297)]['None']||_0x4c9074==='custom')return!0x1;try{let _0x566dd7=_0x939ca9[_0x3fe521(0x4cd)](_0x4c9074);return _0x566dd7||(_0x566dd7=new _0x5b6709[(_0x3fe521(0x2e7))](_0x2efbc3,_0x3fe521(0x3b3)+_0x4c9074),_0x939ca9[_0x3fe521(0x402)](_0x4c9074,_0x566dd7)),_0x11389d&&_0x566dd7['setShapeData']({'adjustValues':_0x11389d},!0x0),_0x566dd7[_0x3fe521(0x2c1)]({'width':_0x2adb2b,'height':_0x4fb6f7}),_0x566dd7[_0x3fe521(0x20d)](_0x1a21bd,{'left':0x0,'top':0x0,'width':_0x2adb2b,'height':_0x4fb6f7});}catch{return!0x1;}});this[_0x2cc359(0x3df)](_0x1ef8d5),this[_0x2cc359(0x3df)]({'dispose':()=>_0x939ca9[_0x2cc359(0x314)]()});}[_0x209063(0x245)](_0x500f98,_0x4c0369,_0xd32ddf,_0x11ca58,_0x538085){const _0x4270d4=_0x209063;let _0x298626=this['_drawingManagerService']['getDrawingData'](_0x500f98,_0x4c0369);if(!_0x298626[_0xd32ddf])return;let _0x43df73={..._0x298626[_0xd32ddf],'prstGeom':_0x11ca58,'adjustValues':_0x538085};this[_0x4270d4(0x4e5)]['featurePluginUpdateNotification']([_0x43df73]);}};_0x43d42e=_0x276893([_0x3cbe95(0x0,(0x0,_0x49d30a[_0x209063(0x47f)])(_0xceb6c3[_0x209063(0x367)])),_0x3cbe95(0x1,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x510035[_0x209063(0x239)]))],_0x43d42e);let _0x172a63=_0x209063(0x41e),_0x5e4e34='sheet.image-clip.shape-picker.component';function _0x40ae00({onShapeClick:_0x1d9627,excludeGroups:_0x2ba985}){const _0x3a530b=_0x209063;return(0x0,_0x208661[_0x3a530b(0x261)])(_0xa40d9e[_0x3a530b(0x455)],{'excludeGroups':_0x2ba985,'onShapeClick':_0x1d9627,'scrollContainer':_0x3a530b(0x27b)});}function _0x4926c6(){const _0xb9acad=_0x209063;let _0x1a821c=(0x0,_0xa9133b[_0xb9acad(0x4f7)])(_0x510035[_0xb9acad(0x239)]),_0x3a527e=(0x0,_0xa9133b[_0xb9acad(0x4f7)])(_0x43d42e);return(0x0,_0x208661['jsx'])(_0xa40d9e[_0xb9acad(0x260)],{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0xa40d9e[_0xb9acad(0x41f)][_0xb9acad(0x236)]],'onShapeClick':_0x374e44=>{const _0x351652=_0xb9acad;let _0x5e59fc=_0x1a821c[_0x351652(0x3c2)]()['find'](_0x32993a=>_0x32993a[_0x351652(0x3e8)]===_0x49d30a['DrawingTypeEnum'][_0x351652(0x431)]);if(!_0x5e59fc)return;let {unitId:_0x4dbc68,subUnitId:_0x13cd6a,drawingId:_0x174804}=_0x5e59fc;_0x3a527e['clipByShape'](_0x4dbc68,_0x13cd6a,_0x174804,_0x374e44['type']);}});}function _0x344e7e(){const _0x10de08=_0x209063;let _0x52287a=(0x0,_0xa9133b[_0x10de08(0x4f7)])(_0xa9133b['ComponentManager']),_0x426db0=(0x0,_0xa9133b[_0x10de08(0x4f7)])(_0x510035['IDrawingManagerService']),_0x1749ed=(0x0,_0xa9133b[_0x10de08(0x4f7)])(_0x49d30a[_0x10de08(0x31b)]),_0x4245df=_0x426db0[_0x10de08(0x3c2)]()[0x0],_0x23f72c=_0x4245df?_0x1749ed[_0x10de08(0x3bc)](_0x4245df[_0x10de08(0x441)]):void 0x0,_0x3d8d35=_0x23f72c===_0x49d30a[_0x10de08(0x276)]['UNIVER_DOC']?'doc.image-clip.shape-picker.component':_0x23f72c===_0x49d30a[_0x10de08(0x276)][_0x10de08(0x295)]?_0x5e4e34:void 0x0,_0x4e3103=_0x3d8d35?_0x52287a[_0x10de08(0x4cd)](_0x3d8d35):void 0x0;return _0x4e3103?(0x0,_0x208661[_0x10de08(0x261)])(_0x4e3103,{}):null;}function _0x2945f1(){const _0x47e630=_0x209063;let _0x11d997=(0x0,_0xa9133b[_0x47e630(0x4f7)])(_0x49d30a[_0x47e630(0x4c5)]);return(0x0,_0x208661['jsx'])(_0x40ae00,{'onShapeClick':_0x3c6a88=>{const _0x1adf4e=_0x47e630;_0x11d997[_0x1adf4e(0x507)](_0x454166['id'],{'value':_0x3c6a88[_0x1adf4e(0x2f5)],'enhanceParams':{'endArrow':_0x3c6a88[_0x1adf4e(0x305)],'startArrow':_0x3c6a88['startArrow'],'horizontal':_0x3c6a88['horizontal'],'vertical':_0x3c6a88[_0x1adf4e(0x3a5)]}});}});}function _0x148c64(_0x4b72c0){const _0x2dd851=_0x209063;let _0xc5a6d8=_0x4b72c0[_0x2dd851(0x4cd)](_0x49d30a[_0x2dd851(0x31b)]);return{'id':_0x454166['id'],'type':_0xa9133b[_0x2dd851(0x357)][_0x2dd851(0x31f)],'selections':[{'label':{'name':_0x172a63,'hoverable':!0x1,'selectable':!0x1,'props':{'id':_0x454166['id']}}}],'icon':_0x2dd851(0x1ce),'tooltip':'sheets-shape-ui.insertShape','activated$':(0x0,_0x100e66['deriveStateFromActiveSheet$'])(_0xc5a6d8,!0x1,()=>new _0x230aed[(_0x2dd851(0x355))](_0x393e93=>{_0x393e93['next'](!0x1);})),'hidden$':(0x0,_0xa9133b['getMenuHiddenObservable'])(_0x4b72c0,_0x49d30a[_0x2dd851(0x276)]['UNIVER_SHEET']),'disabled$':(0x0,_0x100e66[_0x2dd851(0x440)])(_0x4b72c0)};}function _0x3a44ab(_0x2fea12){const _0x1e7bc6=_0x209063;let _0x165c0d=_0x2fea12['get'](_0x49d30a[_0x1e7bc6(0x31b)]);return{'id':_0x3dd6d4['id'],'type':_0xa9133b[_0x1e7bc6(0x357)][_0x1e7bc6(0x309)],'icon':'ObjectLayersIcon','title':_0x1e7bc6(0x3e7),'tooltip':_0x1e7bc6(0x3e7),'activated$':(0x0,_0x100e66[_0x1e7bc6(0x1d0)])(_0x165c0d,!0x1,()=>new _0x230aed[(_0x1e7bc6(0x355))](_0xb19b12=>{const _0x21302d=_0x1e7bc6;_0xb19b12[_0x21302d(0x241)](!0x1);})),'hidden$':(0x0,_0xa9133b[_0x1e7bc6(0x4d5)])(_0x2fea12,_0x49d30a[_0x1e7bc6(0x276)][_0x1e7bc6(0x295)]),'disabled$':(0x0,_0x100e66[_0x1e7bc6(0x440)])(_0x2fea12)};}let _0xbe3a61={[_0xa9133b['RibbonInsertGroup'][_0x209063(0x315)]]:{[_0x454166['id']]:{'order':0x4,'menuItemFactory':_0x148c64}},[_0xa9133b[_0x209063(0x47d)][_0x209063(0x35e)]]:{[_0x3dd6d4['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':_0x3a44ab}}};var _0x102c9e='@univerjs-pro/sheets-shape-ui',_0x2234cd=_0x209063(0x3dd);let _0x1810f4={'type':_0x49d30a[_0x209063(0x4f0)][_0x209063(0x38f)],'id':_0x209063(0x480),'handler'(){return!0x0;}},_0x5e6950={'type':_0x49d30a[_0x209063(0x4f0)]['OPERATION'],'id':_0x209063(0x233),'handler'(){return!0x0;}},_0x3d157b={};function _0x11d47d({ref:_0x56de8d,..._0x409efd}){const _0x58227a=_0x209063;let {icon:_0x2292df,id:_0x200f92,className:_0x384bae,extend:_0x5878f3,..._0x8e2a4d}=_0x409efd,_0x3fe1f7=(_0x58227a(0x24a)+_0x200f92+'\x20'+(_0x384bae||''))[_0x58227a(0x4ff)](),_0x55b2c6=(0x0,_0x4ff626[_0x58227a(0x36d)])('_'+_0x4c6c06());return _0xb2015a(_0x2292df,''+_0x200f92,{'defIds':_0x2292df[_0x58227a(0x398)],'idSuffix':_0x55b2c6['current']},{'ref':_0x56de8d,'className':_0x3fe1f7,..._0x8e2a4d},_0x5878f3);}function _0xb2015a(_0x503fd5,_0x524ea5,_0x3d65e9,_0x466bb5,_0x5e1b08){return(0x0,_0x4ff626['createElement'])(_0x503fd5['tag'],{'key':_0x524ea5,..._0x147ed5(_0x503fd5,_0x3d65e9,_0x5e1b08),..._0x466bb5},(_0xf77cc8(_0x503fd5,_0x3d65e9)['children']||[])['map']((_0x455149,_0x371be2)=>_0xb2015a(_0x455149,_0x524ea5+'-'+_0x503fd5['tag']+'-'+_0x371be2,_0x3d65e9,void 0x0,_0x5e1b08)));}function _0x147ed5(_0x34364a,_0x13e668,_0x1219b2){const _0x48008e=_0x209063;let _0xdcce72={..._0x34364a[_0x48008e(0x43b)]};_0x1219b2!=null&&_0x1219b2['colorChannel1']&&_0xdcce72['fill']===_0x48008e(0x497)&&(_0xdcce72[_0x48008e(0x3b7)]=_0x1219b2['colorChannel1']),_0x1219b2!=null&&_0x1219b2[_0x48008e(0x497)]&&_0xdcce72[_0x48008e(0x1ee)]===_0x48008e(0x497)&&(_0xdcce72[_0x48008e(0x1ee)]=_0x1219b2[_0x48008e(0x497)]),_0x34364a['tag']===_0x48008e(0x25b)&&_0xdcce72['id']&&(_0xdcce72['id']+=_0x13e668[_0x48008e(0x49a)]),Object[_0x48008e(0x4f3)](_0xdcce72)[_0x48008e(0x250)](([_0x586d12,_0x618ba0])=>{const _0x2d8016=_0x48008e;_0x586d12===_0x2d8016(0x25b)&&typeof _0x618ba0==_0x2d8016(0x416)&&(_0xdcce72[_0x586d12]=_0x618ba0[_0x2d8016(0x3fd)](/url\(#(.*)\)/,_0x2d8016(0x2b3)+_0x13e668[_0x2d8016(0x49a)]+')'));});let {defIds:_0x1bef09}=_0x13e668;return!_0x1bef09||_0x1bef09[_0x48008e(0x28f)]===0x0?_0xdcce72:(_0x34364a[_0x48008e(0x45c)]===_0x48008e(0x43f)&&_0xdcce72[_0x48008e(0x2e0)]&&(_0xdcce72[_0x48008e(0x2e0)]+=_0x13e668[_0x48008e(0x49a)]),Object['entries'](_0xdcce72)[_0x48008e(0x250)](([_0x734a5e,_0x2285c7])=>{const _0x45ffaf=_0x48008e;typeof _0x2285c7==_0x45ffaf(0x416)&&(_0xdcce72[_0x734a5e]=_0x2285c7[_0x45ffaf(0x3fd)](/url\(#(.*)\)/,_0x45ffaf(0x2b3)+_0x13e668[_0x45ffaf(0x49a)]+')'));}),_0xdcce72);}function _0xf77cc8(_0x307815,_0x1eb14f){const _0x50113a=_0x209063;var _0x4cfb55;let {defIds:_0x34cc43}=_0x1eb14f;return!_0x34cc43||_0x34cc43[_0x50113a(0x28f)]===0x0?_0x307815:_0x307815[_0x50113a(0x45c)]==='defs'&&(_0x4cfb55=_0x307815[_0x50113a(0x4a9)])!=null&&_0x4cfb55[_0x50113a(0x28f)]?{..._0x307815,'children':_0x307815[_0x50113a(0x4a9)][_0x50113a(0x266)](_0x557461=>typeof _0x557461[_0x50113a(0x43b)]['id']==_0x50113a(0x416)&&_0x34cc43&&_0x34cc43[_0x50113a(0x274)](_0x557461['attrs']['id'])?{..._0x557461,'attrs':{..._0x557461[_0x50113a(0x43b)],'id':_0x557461['attrs']['id']+_0x1eb14f[_0x50113a(0x49a)]}}:_0x557461)}:_0x307815;}function _0x4c6c06(){const _0x1e6ab2=_0x209063;return Math['random']()[_0x1e6ab2(0x26e)](0x24)[_0x1e6ab2(0x4d1)](0x2,0x8);}_0x11d47d[_0x209063(0x3db)]='UniverIcon';let _0x1ededf={'tag':_0x209063(0x3a2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x209063(0x469),'viewBox':_0x209063(0x28d),'width':_0x209063(0x2cb),'height':_0x209063(0x2cb)},'children':[{'tag':_0x209063(0x32b),'attrs':{'stroke':_0x209063(0x20e),'d':_0x209063(0x2d7),'strokeLinecap':_0x209063(0x249),'strokeLinejoin':_0x209063(0x249),'strokeWidth':1.3}},{'tag':_0x209063(0x32b),'attrs':{'stroke':'currentColor','d':'m2\x207.75\x206\x202.95\x206-2.95M2\x2010.75l6\x202.95\x206-2.95','strokeLinecap':_0x209063(0x249),'strokeLinejoin':_0x209063(0x249),'strokeWidth':1.3}}]},_0x11e83e=(0x0,_0x4ff626[_0x209063(0x369)])(function(_0x984857,_0x27c920){const _0x8e0b4b=_0x209063;return(0x0,_0x4ff626[_0x8e0b4b(0x2e8)])(_0x11d47d,Object[_0x8e0b4b(0x4a2)]({},_0x984857,{'id':_0x8e0b4b(0x268),'ref':_0x27c920,'icon':_0x1ededf}));});_0x11e83e[_0x209063(0x3db)]=_0x209063(0x2f4);function _0x1764b0(_0x3b1255){const _0x5888f0=_0x209063;return _0x3b1255[_0x5888f0(0x4ff)]()||void 0x0;}function _0x58f127(_0x70de5d){const _0x2b3b35=_0x209063;switch(_0x70de5d[_0x2b3b35(0x3e8)]){case _0x49d30a[_0x2b3b35(0x365)]['DRAWING_IMAGE']:return'image';case _0x49d30a['DrawingTypeEnum'][_0x2b3b35(0x4c6)]:return _0x2b3b35(0x4c3);case _0x49d30a[_0x2b3b35(0x365)][_0x2b3b35(0x1cf)]:return _0x2b3b35(0x381);case _0x49d30a[_0x2b3b35(0x365)]['DRAWING_SMART_ART']:return _0x2b3b35(0x34f);case _0x49d30a[_0x2b3b35(0x365)][_0x2b3b35(0x30c)]:return _0x2b3b35(0x464);case _0x49d30a[_0x2b3b35(0x365)]['DRAWING_GROUP']:return _0x2b3b35(0x258);case _0x49d30a[_0x2b3b35(0x365)][_0x2b3b35(0x4b3)]:return'unit';case _0x49d30a[_0x2b3b35(0x365)][_0x2b3b35(0x21f)]:return'dom';case _0x49d30a['DrawingTypeEnum'][_0x2b3b35(0x4fe)]:return _0x2b3b35(0x3da);default:return _0x2b3b35(0x375);}}function _0x178118(_0x34c661,_0x4a0bc1,_0x62efd9){const _0x7aee7a=_0x209063;var _0x49b436;return((_0x49b436=_0x34c661[_0x7aee7a(0x30b)])==null?void 0x0:_0x49b436['trim']())||(0x0,_0xceb6c3[_0x7aee7a(0x3af)])(_0x62efd9,_0x58f127(_0x34c661))+'\x20'+(_0x4a0bc1+0x1);}function _0x111ad8(){const _0x20020c=_0x209063;var _0x1be82a,_0x4a3557,_0x4dab76,_0x48a766;let _0x164b3c=(0x0,_0xa9133b[_0x20020c(0x4f7)])(_0x49d30a['LocaleService']),_0x1f43d0=(0x0,_0xa9133b['useDependency'])(_0x49d30a['ICommandService']),_0x473917=(0x0,_0xa9133b[_0x20020c(0x4f7)])(_0x49d30a['IUniverInstanceService']),_0x4af0b6=(0x0,_0xa9133b['useDependency'])(_0x28a390[_0x20020c(0x2b8)]),_0x1b8ed9=(0x0,_0xa9133b[_0x20020c(0x4f7)])(_0x510035[_0x20020c(0x239)]),_0x17e6ad=(0x0,_0xa9133b[_0x20020c(0x4f7)])(_0x40dd84[_0x20020c(0x2ba)]),[,_0x4f9fa7]=(0x0,_0x4ff626['useReducer'])(_0x4488b5=>_0x4488b5+0x1,0x0),_0x18ece2=_0x473917['getCurrentUnitOfType'](_0x49d30a['UniverInstanceType'][_0x20020c(0x295)]),_0x4d2f87=(_0x1be82a=_0x18ece2==null?void 0x0:_0x18ece2[_0x20020c(0x3bf)]())==null?'':_0x1be82a,_0x2ebfed=(_0x4a3557=_0x18ece2==null||(_0x4dab76=_0x18ece2[_0x20020c(0x280)]())==null?void 0x0:_0x4dab76['getSheetId']())==null?'':_0x4a3557,_0x4233be=(0x0,_0xa9133b[_0x20020c(0x3cc)])(()=>_0x1b8ed9[_0x20020c(0x2a6)],_0x1b8ed9[_0x20020c(0x3c2)](),!0x1,[_0x1b8ed9]);(0x0,_0x4ff626['useEffect'])(()=>{const _0x301023=_0x20020c;let _0x3c9c6a=_0x1f43d0[_0x301023(0x4cc)](()=>_0x4f9fa7());return()=>_0x3c9c6a['dispose']();},[_0x1f43d0]);let _0x15db0b=_0x4d2f87&&_0x2ebfed?_0x4af0b6[_0x20020c(0x2fd)](_0x4d2f87,_0x2ebfed):{},_0x26e3b7=_0x4d2f87&&_0x2ebfed?_0x4af0b6[_0x20020c(0x329)](_0x4d2f87,_0x2ebfed):[],_0x4ebb54=(0x0,_0x4ff626['useMemo'])(()=>(0x0,_0xceb6c3[_0x20020c(0x405)])(_0x164b3c),[_0x164b3c]),_0x2c7d53=(0x0,_0x4ff626[_0x20020c(0x243)])(()=>{const _0x4e6eaf=_0x20020c;let _0x1e9c87=_0x26e3b7[_0x4e6eaf(0x266)](_0x356b02=>_0x15db0b[_0x356b02])['filter'](_0x36323d=>!!_0x36323d)['reverse'](),_0x4ccb74=_0x1e9c87[_0x4e6eaf(0x2d4)]((_0x105a8c,_0x505eb7)=>(_0x105a8c[(0x0,_0xceb6c3['getObjectListPanelSectionIdForDrawingType'])(_0x505eb7['drawingType'])]+=0x1,_0x105a8c),{'canvas':0x0,'floating':0x0}),_0x5d61ef={'canvas':0x0,'floating':0x0};return _0x1e9c87[_0x4e6eaf(0x266)]((_0x3bf4ba,_0xe89f3c)=>{const _0x3e0413=_0x4e6eaf;let _0x12dd18=(0x0,_0xceb6c3[_0x3e0413(0x26f)])(_0x3bf4ba[_0x3e0413(0x3e8)]),_0x1b0710=_0x12dd18===_0xceb6c3[_0x3e0413(0x362)],_0x21f08d=_0x5d61ef[_0x12dd18]++;return{'id':_0x3bf4ba[_0x3e0413(0x2e9)],'name':_0x178118(_0x3bf4ba,_0xe89f3c,_0x164b3c),'description':_0x3bf4ba[_0x3e0413(0x24c)],'visible':_0x3bf4ba[_0x3e0413(0x29b)]!==!0x0,'selectable':_0x3bf4ba[_0x3e0413(0x36f)]!==!0x1,'sectionId':_0x12dd18,'sectionTitle':_0x1b0710?_0x4ebb54[_0x3e0413(0x39b)]:_0x4ebb54['sectionCanvas'],'capabilities':_0x1b0710?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x1b0710&&_0x21f08d>0x0,'canMoveBackward':!_0x1b0710&&_0x21f08d<_0x4ccb74[_0x3e0413(0x4cf)]-0x1,'canReorder':!_0x1b0710};});},[_0x15db0b,_0x26e3b7,_0x4ebb54[_0x20020c(0x358)],_0x4ebb54[_0x20020c(0x39b)],_0x164b3c]),_0x2e582c=(0x0,_0x4ff626[_0x20020c(0x243)])(()=>(_0x4233be==null?[]:_0x4233be)['filter'](_0x6e4a5=>_0x6e4a5[_0x20020c(0x441)]===_0x4d2f87&&_0x6e4a5['subUnitId']===_0x2ebfed)[_0x20020c(0x266)](_0x23ef42=>_0x23ef42[_0x20020c(0x2e9)]),[_0x4233be,_0x2ebfed,_0x4d2f87]),_0x4cc25d=(_0x48a766=_0x2e582c[_0x2e582c[_0x20020c(0x28f)]-0x1])==null?null:_0x48a766,_0x115b5f=_0x298714=>{const _0x3101b9=_0x20020c;var _0x1fdbdc;return(_0x1fdbdc=_0x4af0b6[_0x3101b9(0x20c)]({'unitId':_0x4d2f87,'subUnitId':_0x2ebfed,'drawingId':_0x298714}))==null?null:_0x1fdbdc;},_0x29302a=_0x5996bc=>{const _0x574fba=_0x20020c;!_0x4d2f87||!_0x5996bc[_0x574fba(0x28f)]||_0x1f43d0[_0x574fba(0x507)](_0x28a390[_0x574fba(0x2d3)]['id'],{'unitId':_0x4d2f87,'drawings':_0x5996bc});},_0x3be4b0=(_0x4ceb02,_0x36f350)=>{_0x115b5f(_0x4ceb02)&&_0x29302a([{'unitId':_0x4d2f87,'subUnitId':_0x2ebfed,'drawingId':_0x4ceb02,..._0x36f350}]);},_0x596461=(_0x296b66,_0x567c6d)=>{const _0x4cf04d=_0x20020c;if(!_0x4d2f87||!_0x2ebfed)return;let _0x2ad915=_0x567c6d?_0x2e582c[_0x4cf04d(0x274)](_0x296b66)?_0x2e582c['filter'](_0x2c8043=>_0x2c8043!==_0x296b66):[..._0x2e582c,_0x296b66]:[_0x296b66];_0x1f43d0['syncExecuteCommand'](_0x510035[_0x4cf04d(0x2b7)]['id'],_0x2ad915[_0x4cf04d(0x266)](_0x401b76=>({'unitId':_0x4d2f87,'subUnitId':_0x2ebfed,'drawingId':_0x401b76})));let _0x54d328=_0x2ad915[_0x2ad915['length']-0x1];_0x54d328?(0x0,_0xa40d9e['activateDrawingObject'])(_0x17e6ad,{'unitId':_0x4d2f87,'subUnitId':_0x2ebfed,'drawingId':_0x54d328}):(0x0,_0xa40d9e[_0x4cf04d(0x291)])(_0x17e6ad,_0x4d2f87);},_0x360cc2=(_0x29e064,_0x3077f1)=>{const _0xf0c97d=_0x20020c;_0x29302a(_0x29e064[_0xf0c97d(0x266)](_0x397f4d=>_0x115b5f(_0x397f4d))[_0xf0c97d(0x3a4)](_0x577749=>!!_0x577749)[_0xf0c97d(0x3a4)](_0x3ad211=>_0x3ad211[_0xf0c97d(0x29b)]!==!0x0!==_0x3077f1)[_0xf0c97d(0x266)](_0x462d2c=>({'unitId':_0x4d2f87,'subUnitId':_0x2ebfed,'drawingId':_0x462d2c[_0xf0c97d(0x2e9)],'hidden':!_0x3077f1})));},_0x391030=_0x26e755=>{const _0x4f8417=_0x20020c;let _0x2f1786=_0x115b5f(_0x26e755);_0x2f1786&&_0x3be4b0(_0x26e755,{'selectable':_0x2f1786[_0x4f8417(0x36f)]===!0x1?void 0x0:!0x1});},_0x2c0d79=(_0x1177a2,_0x1a3682)=>{var _0x3d3301,_0x116321;let _0x34b66e=_0x1764b0(_0x1a3682);((_0x3d3301=(_0x116321=_0x115b5f(_0x1177a2))==null?void 0x0:_0x116321['name'])==null?void 0x0:_0x3d3301)!==_0x34b66e&&_0x3be4b0(_0x1177a2,{'name':_0x34b66e});},_0x1670e4=(_0x4eb1ce,_0x9239e7)=>{const _0x534fe4=_0x20020c;var _0x57eee6,_0x53a578;let _0x5f1a75=_0x1764b0(_0x9239e7);((_0x57eee6=(_0x53a578=_0x115b5f(_0x4eb1ce))==null?void 0x0:_0x53a578[_0x534fe4(0x24c)])==null?void 0x0:_0x57eee6)!==_0x5f1a75&&_0x3be4b0(_0x4eb1ce,{'description':_0x5f1a75});},_0x5b1092=(_0x42af81,_0x359edc)=>{const _0x58dc9f=_0x20020c;!_0x4d2f87||!_0x2ebfed||_0x1f43d0[_0x58dc9f(0x507)](_0x28a390['SetDrawingArrangeCommand']['id'],{'unitId':_0x4d2f87,'subUnitId':_0x2ebfed,'drawingIds':[_0x42af81],'arrangeType':_0x359edc});};return!_0x4d2f87||!_0x2ebfed?(0x0,_0x208661[_0x20020c(0x261)])(_0x20020c(0x337),{'className':_0x20020c(0x4b4),'children':_0x4ebb54[_0x20020c(0x1e3)]}):(0x0,_0x208661['jsx'])(_0xceb6c3['ObjectListPanelBase'],{'items':_0x2c7d53,'selectedIds':_0x2e582c,'focusedId':_0x4cc25d,'labels':_0x4ebb54,'onSelect':_0x596461,'onSetVisible':_0x360cc2,'onCommitName':_0x2c0d79,'onCommitDescription':_0x1670e4,'onMoveForward':_0x16acd2=>_0x5b1092(_0x16acd2,_0x49d30a[_0x20020c(0x279)]['forward']),'onMoveBackward':_0x3a251e=>_0x5b1092(_0x3a251e,_0x49d30a[_0x20020c(0x279)][_0x20020c(0x438)]),'onToggleSelectable':_0x391030});}let _0x4aab0f=class{constructor(_0x3fe845){const _0x4ed8f1=_0x209063;this[_0x4ed8f1(0x40d)]=_0x3fe845;}['updateShapeFillImage'](_0x590176,_0x454517){const _0x114c0b=_0x209063;let _0x45f8c9=this[_0x114c0b(0x40d)][_0x114c0b(0x2f7)](_0x590176[_0x114c0b(0x441)]),_0x4662e9=_0x45f8c9==null?void 0x0:_0x45f8c9['scene'];if(!_0x4662e9)return;let _0x12d222=(0x0,_0x510035[_0x114c0b(0x3a8)])(_0x590176),_0x24f8f2=_0x4662e9['getObjectIncludeInGroup'](_0x12d222);_0x24f8f2==null||_0x24f8f2[_0x114c0b(0x24d)](_0x454517);}};_0x4aab0f=_0x276893([_0x3cbe95(0x0,_0x40dd84[_0x209063(0x2ba)])],_0x4aab0f);function _0x30b6ae(){const _0x594c76=_0x209063;let _0x913893=(0x0,_0xa9133b['useDependency'])(_0x510035['IDrawingManagerService']),_0x27a8c9=(0x0,_0xa9133b[_0x594c76(0x3cc)])(()=>_0x913893['focus$'],_0x913893['getFocusDrawings'](),!0x1,[_0x913893]);return _0x27a8c9[_0x594c76(0x28f)]===0x0?null:(0x0,_0x208661['jsx'])(_0x594c76(0x337),{'children':(0x0,_0x208661[_0x594c76(0x30d)])(_0x594c76(0x337),{'className':_0x594c76(0x3f5),'children':[(0x0,_0x208661['jsx'])(_0xceb6c3[_0x594c76(0x316)],{'drawings':_0x27a8c9,'hasCropper':!0x1}),(0x0,_0x208661['jsx'])(_0x4c7223['SheetDrawingAnchor'],{'drawings':_0x27a8c9})]})});}function _0x5d9b51(_0x555485){const _0xd85207=_0x209063;let {unitId:_0x31f749,subUnitId:_0x145ed5,shapeId:_0x548157}=_0x555485,_0x2ef533=(0x0,_0xa9133b[_0xd85207(0x4f7)])(_0x49d30a[_0xd85207(0x4c5)]),_0x2b5568=(0x0,_0xa9133b[_0xd85207(0x4f7)])(_0x4aab0f);return(0x0,_0x208661[_0xd85207(0x261)])(_0xa40d9e['ShapeEditPanel'],{..._0x555485,'positionEditor':(0x0,_0x208661['jsx'])(_0x30b6ae,{}),'onUpdateShapeData':(_0x1fbe5d,_0x231877)=>{_0x407767(_0x2ef533,_0x31f749,_0x145ed5,_0x548157,_0x1fbe5d,_0x231877);},'onUpdateLineShapeData':(_0x4d73ae,_0x387c86)=>{_0x2583c5(_0x2ef533,_0x31f749,_0x145ed5,_0x548157,_0x4d73ae,_0x387c86);},'onUpdateShapeFillImage':_0x4e9724=>{_0x2b5568['updateShapeFillImage']({'unitId':_0x31f749,'subUnitId':_0x145ed5,'drawingId':_0x548157},_0x4e9724);}});}function _0x18b2ad(_0x54347e){const _0x29e7b0=_0x209063;let _0x1b6aa8=_0x54347e[_0x29e7b0(0x3d2)][_0x29e7b0(0x48c)];return _0x1b6aa8?(0x0,_0x208661['jsx'])(_0x4d1f75,{..._0x1b6aa8}):null;}function _0x4d1f75(_0x587d0a){const _0x4b8c83=_0x209063;var _0x1e2825,_0x4579b5;let _0xa06900=(0x0,_0xa9133b[_0x4b8c83(0x4f7)])(_0x49d30a[_0x4b8c83(0x4c5)]),_0x189f9a=(0x0,_0xa9133b[_0x4b8c83(0x4f7)])(_0x4eb2ab[_0x4b8c83(0x264)]),{unitId:_0x5206e6,subUnitId:_0x4a3a0e,drawingId:_0x311f32,drawingType:_0x3fe674,shapeType:_0x593e62}=_0x587d0a,[_0x4dd62f,_0x118749]=(0x0,_0x4ff626[_0x4b8c83(0x33d)])(_0x587d0a[_0x4b8c83(0x4d4)]),_0x5a5aba=(0x0,_0x4ff626[_0x4b8c83(0x243)])(()=>(0x0,_0xa40d9e[_0x4b8c83(0x1dc)])(_0x4dd62f),[_0x4dd62f]),_0x45786e=(0x0,_0x4ff626[_0x4b8c83(0x243)])(()=>(0x0,_0xa40d9e[_0x4b8c83(0x2ab)])(_0x4dd62f),[_0x4dd62f]);(0x0,_0x4ff626[_0x4b8c83(0x4de)])(()=>{const _0x2f4abb=_0x4b8c83;let _0xd8c1ab=_0xa06900['onCommandExecuted'](_0x499f2b=>{if(_0x499f2b['id']!==_0x4eb2ab['UpdateSheetsShapeDataMutation']['id'])return;let _0x22c690=_0x189f9a['getShapeDataById'](_0x5206e6,_0x4a3a0e,_0x311f32);_0x22c690&&_0x118749(_0x22c690);});return()=>_0xd8c1ab[_0x2f4abb(0x46a)]();},[_0xa06900,_0x311f32,_0x189f9a,_0x4a3a0e,_0x5206e6]);let _0x1f023e=_0x11b96e=>{_0x118749(_0x40921b=>({..._0x40921b,..._0x11b96e}));},_0x5c17f2=_0x1c3d05=>{const _0x3a5923=_0x4b8c83;let _0xa17f09=(0x0,_0xa40d9e[_0x3a5923(0x399)])(_0x4dd62f,_0x1c3d05);_0x407767(_0xa06900,_0x5206e6,_0x4a3a0e,_0x311f32,{'oldShapeData':{'shapeText':_0x4dd62f[_0x3a5923(0x206)]}},_0xa17f09),_0x1f023e(_0xa17f09);},_0x2aa0c0=(0x0,_0xa40d9e[_0x4b8c83(0x216)])({'unitId':_0x5206e6,'subUnitId':_0x4a3a0e,'shapeId':_0x311f32,'shapeData':_0x4dd62f,'onUpdateBinding':_0x2787b4=>{const _0x5f42f1=_0x4b8c83;let _0x5a8600={'formulaBinding':_0x2787b4};_0x407767(_0xa06900,_0x5206e6,_0x4a3a0e,_0x311f32,{'oldShapeData':{'formulaBinding':_0x4dd62f[_0x5f42f1(0x330)]}},_0x5a8600),_0x1f023e(_0x5a8600);}});return(0x0,_0x208661[_0x4b8c83(0x30d)])(_0x208661[_0x4b8c83(0x1de)],{'children':[(0x0,_0x208661[_0x4b8c83(0x261)])(_0xa40d9e[_0x4b8c83(0x3a6)],{'shapeData':_0x4dd62f,'shapeType':_0x593e62,'textStyle':{'ff':_0x5b6709[_0x4b8c83(0x389)]['shapeText']['fontFamily'],'fs':_0x5b6709['ShapeDefaultConfig'][_0x4b8c83(0x206)][_0x4b8c83(0x382)],'cl':{'rgb':_0x5b6709[_0x4b8c83(0x389)][_0x4b8c83(0x206)]['color']},..._0x5a5aba},'textModel':_0x45786e?{'ha':(_0x1e2825=_0x45786e['ha'])==null?_0x49d30a[_0x4b8c83(0x2ea)][_0x4b8c83(0x4a5)]:_0x1e2825,'va':(_0x4579b5=_0x45786e['va'])==null?_0x49d30a[_0x4b8c83(0x1d6)][_0x4b8c83(0x1d1)]:_0x4579b5}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x5b6709['ShapeDefaultConfig']['fill'],'defaultGradientEndColor':_0x5b6709[_0x4b8c83(0x389)][_0x4b8c83(0x41d)],'defaultStrokeColor':_0x5b6709[_0x4b8c83(0x389)][_0x4b8c83(0x1ee)],'extensionGroups':_0x2aa0c0['extensionGroups'],'onUpdateShapeData':(_0x4c3737,_0x154481)=>{_0x407767(_0xa06900,_0x5206e6,_0x4a3a0e,_0x311f32,_0x4c3737,_0x154481),_0x154481&&_0x1f023e(_0x154481);},'onUpdateText':_0x5c17f2,'onOpenPanel':()=>{const _0x5c45f0=_0x4b8c83;_0xa06900[_0x5c45f0(0x507)](_0x5e6950['id'],{'unitId':_0x5206e6,'subUnitId':_0x4a3a0e,'drawingId':_0x311f32});},'onDelete':()=>{const _0x282d4a=_0x4b8c83;_0xa06900[_0x282d4a(0x507)](_0x28a390['RemoveSheetDrawingCommand']['id'],{'unitId':_0x5206e6,'drawings':[{'unitId':_0x5206e6,'subUnitId':_0x4a3a0e,'drawingId':_0x311f32,'drawingType':_0x3fe674}]});}}),_0x2aa0c0[_0x4b8c83(0x49f)]]});}var _0x3da7be=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(..._0x1302cc){const _0x73bceb=_0x209063;super(..._0x1302cc),_0x28368a(this,_0x73bceb(0x2b9),new _0x230aed[(_0x73bceb(0x380))](null)),_0x28368a(this,_0x73bceb(0x2a0),this[_0x73bceb(0x2b9)][_0x73bceb(0x31d)]()),_0x28368a(this,_0x73bceb(0x4f4),new _0x230aed[(_0x73bceb(0x380))](!0x1)),_0x28368a(this,_0x73bceb(0x4e7),this['_onSavingEditorData$'][_0x73bceb(0x31d)]());}[_0x209063(0x46a)](){const _0x32dbb3=_0x209063;this[_0x32dbb3(0x2b9)][_0x32dbb3(0x241)](null),this[_0x32dbb3(0x2b9)][_0x32dbb3(0x44f)](),this[_0x32dbb3(0x4f4)]['next'](!0x1),this['_onSavingEditorData$'][_0x32dbb3(0x44f)](),super[_0x32dbb3(0x46a)]();}[_0x209063(0x2dd)](_0x13cd5c){const _0x27e32a=_0x209063;this[_0x27e32a(0x2b9)][_0x27e32a(0x241)](_0x13cd5c),_0x13cd5c==null&&this['_onSavingEditorData$'][_0x27e32a(0x241)](!0x1);}['setOnSavingEditorData'](_0x557dfe){const _0x5a1ed7=_0x209063;this[_0x5a1ed7(0x4f4)][_0x5a1ed7(0x241)](_0x557dfe);}[_0x209063(0x247)](){const _0x10c488=_0x209063;return this[_0x10c488(0x2b9)][_0x10c488(0x428)]();}[_0x209063(0x22a)](_0x30f812){this['getEditing']()&&(this['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x2736bc=_0x45fb;this[_0x2736bc(0x2dd)](null);}));}[_0x209063(0x3cf)](){const _0x5e40c9=_0x209063;this[_0x5e40c9(0x247)]()&&this['setEditing'](null);}};let _0x411310=(0x0,_0x4ff626[_0x209063(0x35d)])(()=>{const _0x481a86=_0x209063;let _0x547fb3=(0x0,_0xa9133b[_0x481a86(0x4f7)])(_0x3da7be),_0x267c47=(0x0,_0xa9133b['useDependency'])(_0x4eb2ab[_0x481a86(0x264)]),_0x1e6733=(0x0,_0xa9133b[_0x481a86(0x4f7)])(_0x510035[_0x481a86(0x239)]),_0x552c79=(0x0,_0xa9133b['useDependency'])(_0x49d30a['ICommandService']),_0x8344ef=(0x0,_0xa9133b[_0x481a86(0x4f7)])(_0x40dd84[_0x481a86(0x2ba)]);return(0x0,_0x208661[_0x481a86(0x261)])(_0xa40d9e[_0x481a86(0x211)],{'adapter':(0x0,_0x4ff626['useMemo'])(()=>({'getShapeModel':(_0x36d21b,_0xdab15b,_0x20a90e)=>_0x267c47['getShapeModel'](_0x36d21b,_0xdab15b,_0x20a90e),'getShapeData':(_0x3b7da1,_0x1236a2,_0x37101e)=>_0x267c47[_0x481a86(0x27c)](_0x3b7da1,_0x1236a2,_0x37101e),'getDrawingTransform':(_0x5d3119,_0x1d6420,_0x5195e5)=>{const _0x2090af=_0x481a86;let _0x1ac99c=_0x1e6733['getDrawingByParam']({'unitId':_0x5d3119,'subUnitId':_0x1d6420,'drawingId':_0x5195e5});return _0x1ac99c==null?void 0x0:_0x1ac99c[_0x2090af(0x267)];},'updateShapeText':({unitId:_0x4c0d28,subUnitId:_0x1b44ea,shapeId:_0x29f3d3,shapeText:_0x387688,oldShapeText:_0x6948c2})=>{const _0x4cd7ad=_0x481a86;_0x552c79[_0x4cd7ad(0x507)](_0x39f376['id'],{'unitId':_0x4c0d28,'subUnitId':_0x1b44ea,'shapeId':_0x29f3d3,'shapeData':{'shapeText':_0x387688},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x6948c2}}});},'updateHostSize':({unitId:_0x2b76e6,subUnitId:_0x1fdca3,shapeId:_0x299045,width:_0x5831b1,height:_0x42fa6c})=>{const _0x4c53eb=_0x481a86;var _0xd5c970,_0x4994b7,_0x21b858;let _0x148cef=_0x1e6733[_0x4c53eb(0x20c)]({'unitId':_0x2b76e6,'subUnitId':_0x1fdca3,'drawingId':_0x299045}),_0x3953f3=_0x148cef==null?void 0x0:_0x148cef[_0x4c53eb(0x267)];if(!_0x148cef||!_0x3953f3)return;let _0x3263d6={..._0x3953f3,'width':_0x5831b1,'height':_0x42fa6c},_0x59d2c9=(_0xd5c970=_0x8344ef[_0x4c53eb(0x2f7)](_0x2b76e6))==null||(_0xd5c970=_0xd5c970[_0x4c53eb(0x451)](_0x100e66['SheetSkeletonManagerService'])[_0x4c53eb(0x40e)](_0x1fdca3))==null?void 0x0:_0xd5c970[_0x4c53eb(0x29f)],_0x1e7166=_0x59d2c9?(_0x4994b7=(0x0,_0x28a390[_0x4c53eb(0x34b)])(_0x3263d6,_0x59d2c9))==null?_0x148cef[_0x4c53eb(0x40b)]:_0x4994b7:_0x148cef[_0x4c53eb(0x40b)],_0x4de4e8=_0x59d2c9?(_0x21b858=(0x0,_0x28a390['transformToAxisAlignPosition'])(_0x3263d6,_0x59d2c9))==null?_0x148cef[_0x4c53eb(0x4e0)]:_0x21b858:_0x148cef[_0x4c53eb(0x4e0)];_0x552c79['executeCommand'](_0x28a390[_0x4c53eb(0x2d3)]['id'],{'unitId':_0x2b76e6,'drawings':[{..._0x148cef,'transform':_0x3263d6,'sheetTransform':_0x1e7166,'axisAlignSheetTransform':_0x4de4e8}]});},'allowHostSizeShrink':({unitId:_0x5505e8,subUnitId:_0x27e45b,shapeId:_0x22ddbf})=>(0x0,_0xa40d9e[_0x481a86(0x478)])(_0x267c47[_0x481a86(0x27c)](_0x5505e8,_0x27e45b,_0x22ddbf))}),[_0x552c79,_0x1e6733,_0x8344ef,_0x267c47]),'editingService':_0x547fb3,'editorUnitId':_0x1e912e,'positionOptions':(0x0,_0x4ff626['useMemo'])(()=>({'viewportKeys':{'main':_0x40dd84[_0x481a86(0x1f0)][_0x481a86(0x3e1)],'leftTop':_0x40dd84['SHEET_VIEWPORT_KEY'][_0x481a86(0x360)],'top':_0x40dd84['SHEET_VIEWPORT_KEY'][_0x481a86(0x500)],'left':_0x40dd84['SHEET_VIEWPORT_KEY']['VIEW_MAIN_LEFT']},'getSkeleton':(_0x21ac4c,_0x3d7609)=>{const _0x2d1330=_0x481a86;var _0x53e746,_0x7bd866;return(_0x53e746=(_0x7bd866=_0x21ac4c[_0x2d1330(0x451)](_0x100e66['SheetSkeletonManagerService'])['getSkeletonParam'](_0x3d7609[_0x2d1330(0x2fe)]))==null?void 0x0:_0x7bd866[_0x2d1330(0x29f)])==null?null:_0x53e746;}}),[])});}),_0x58c754=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(_0x190314,_0x29a32b){const _0x30301b=_0x209063;super(),this[_0x30301b(0x413)]=_0x190314,this['_iconManager']=_0x29a32b,this[_0x30301b(0x456)](),this[_0x30301b(0x21b)]();}['_registerIcons'](){const _0x43fd4e=_0x209063;this[_0x43fd4e(0x3d3)][_0x43fd4e(0x38c)]('ObjectLayersIcon')||this[_0x43fd4e(0x3df)](this[_0x43fd4e(0x3d3)][_0x43fd4e(0x465)]({'ObjectLayersIcon':_0x11e83e}));}[_0x209063(0x21b)](){const _0x5b9bdc=_0x209063;this[_0x5b9bdc(0x3df)](this[_0x5b9bdc(0x413)]['register'](_0x1e65b6,_0x5d9b51)),this[_0x5b9bdc(0x3df)](this[_0x5b9bdc(0x413)][_0x5b9bdc(0x465)](_0xd78f5f,_0x111ad8)),this['disposeWithMe'](this[_0x5b9bdc(0x413)]['register'](_0x172a63,_0x2945f1)),this[_0x5b9bdc(0x3df)](this[_0x5b9bdc(0x413)][_0x5b9bdc(0x465)](_0x5e4e34,_0x4926c6)),this['_componentManager']['get'](_0xceb6c3[_0x5b9bdc(0x4fb)])||this['disposeWithMe'](this[_0x5b9bdc(0x413)][_0x5b9bdc(0x465)](_0xceb6c3[_0x5b9bdc(0x4fb)],_0x344e7e)),this[_0x5b9bdc(0x3df)](this['_componentManager'][_0x5b9bdc(0x465)](_0x15b03d,_0x18b2ad)),this[_0x5b9bdc(0x3df)](this[_0x5b9bdc(0x413)]['register'](_0x3c71d3,_0xa40d9e[_0x5b9bdc(0x39c)])),this[_0x5b9bdc(0x3df)](this['_componentManager'][_0x5b9bdc(0x465)]('SheetShapeTextEditorContainer',_0x411310));}};_0x58c754=_0x276893([_0x3cbe95(0x0,(0x0,_0x49d30a[_0x209063(0x47f)])(_0xa9133b[_0x209063(0x2ac)])),_0x3cbe95(0x1,(0x0,_0x49d30a[_0x209063(0x47f)])(_0xa9133b[_0x209063(0x322)]))],_0x58c754);let _0x43f6ab=class extends _0x49d30a['Disposable']{constructor(_0x262a46,_0x134fd,_0x4d4d55,_0x5ed83f,_0x1431cb){const _0x172eec=_0x209063;super(),this['_context']=_0x262a46,this[_0x172eec(0x4e5)]=_0x134fd,this[_0x172eec(0x40d)]=_0x4d4d55,this['_univerInstanceService']=_0x5ed83f,this[_0x172eec(0x471)]=_0x1431cb,_0x28368a(this,_0x172eec(0x4dc),null),_0x28368a(this,'_unitId',null),_0x28368a(this,_0x172eec(0x489),null),_0x28368a(this,_0x172eec(0x227),void 0x0),_0x28368a(this,_0x172eec(0x461),[]),_0x28368a(this,_0x172eec(0x4df),0x0),_0x28368a(this,'_baseTop',0x0),_0x28368a(this,_0x172eec(0x335),0x0),_0x28368a(this,_0x172eec(0x312),0x0),_0x28368a(this,_0x172eec(0x278),!0x1),_0x28368a(this,_0x172eec(0x44d),void 0x0),_0x28368a(this,_0x172eec(0x23a),void 0x0),_0x28368a(this,_0x172eec(0x318),void 0x0),_0x28368a(this,_0x172eec(0x40f),void 0x0),_0x28368a(this,_0x172eec(0x386),!0x1),this[_0x172eec(0x345)](),this[_0x172eec(0x457)]();}[_0x209063(0x409)](){const _0x1108f3=_0x209063;this[_0x1108f3(0x20a)]();}[_0x209063(0x424)](){const _0x568b1e=_0x209063;this['_clearControls'](),this[_0x568b1e(0x387)](!0x0);}[_0x209063(0x37f)](_0x192284,_0x8752c6,_0x519d22,_0x5dce8b){const _0x3f4505=_0x209063;let _0x1d3f01=_0x192284;if(!(_0x1d3f01===_0x5b6709[_0x3f4505(0x297)][_0x3f4505(0x205)]||_0x192284===_0x3f4505(0x2fa)))try{let _0x10d5ab=new _0x5b6709[(_0x3f4505(0x2e7))](_0x1d3f01,'clip-adj-'+_0x192284);return _0x5dce8b&&_0x10d5ab[_0x3f4505(0x3ef)]({'adjustValues':_0x5dce8b},!0x0),_0x10d5ab[_0x3f4505(0x2c1)]({'width':_0x8752c6,'height':_0x519d22}),_0x10d5ab;}catch{return;}}[_0x209063(0x303)](_0x5b2ea2,_0x10e41b,_0x1d3879){const _0x3aced3=_0x209063;let _0x444d41={'unitId':_0x5b2ea2,'subUnitId':_0x10e41b,'drawingId':_0x1d3879},_0x891bb9=this[_0x3aced3(0x4e5)][_0x3aced3(0x20c)](_0x444d41);if(!(!_0x891bb9||_0x891bb9[_0x3aced3(0x3e8)]!==_0x49d30a[_0x3aced3(0x365)][_0x3aced3(0x431)]))return _0x891bb9;}[_0x209063(0x2aa)](_0x42adb4,_0x91f7f2,_0x3b962d){const _0x36e8f1=_0x209063;let _0x2367ab=this[_0x36e8f1(0x40d)][_0x36e8f1(0x2f7)](_0x42adb4);if(!_0x2367ab)return;let {scene:_0x5da988}=_0x2367ab,_0x155104=(0x0,_0x510035[_0x36e8f1(0x3a8)])({'unitId':_0x42adb4,'subUnitId':_0x91f7f2,'drawingId':_0x3b962d}),_0x2ee22a=_0x5da988[_0x36e8f1(0x229)](_0x155104);if(_0x2ee22a instanceof _0x40dd84[_0x36e8f1(0x4bb)]){let _0x191f8b=_0x2ee22a['prstGeom'];if(_0x191f8b)return{'prstGeom':_0x191f8b,'adjustValues':_0x2ee22a['prstGeomAdjValues']};}}[_0x209063(0x387)](_0x1d760f=!0x1){const _0x6d195=_0x209063;if(!this[_0x6d195(0x30e)]||!this[_0x6d195(0x489)]||!this['_activeImageId'])return;let _0x2d6a9c=this[_0x6d195(0x40d)][_0x6d195(0x2f7)](this[_0x6d195(0x30e)]);if(!_0x2d6a9c||!_0x2d6a9c[_0x6d195(0x451)](_0x100e66[_0x6d195(0x242)])[_0x6d195(0x238)]())return;let {scene:_0x4f4b5e}=_0x2d6a9c,_0x1dfda1=this[_0x6d195(0x303)](this[_0x6d195(0x30e)],this['_subUnitId'],this[_0x6d195(0x4dc)]);if(!_0x1dfda1)return;let {transform:_0xcdca56}=_0x1dfda1;if(!_0xcdca56)return;let {left:_0x1f8265,top:_0x351b79,width:_0x52204a,height:_0x1a1b61,flipX:_0x3412c0,flipY:_0x38e83d,angle:_0x44f51f=0x0}=_0xcdca56;if(_0x1f8265===void 0x0||_0x351b79===void 0x0)return;let _0x4fa4e2=this[_0x6d195(0x2aa)](this[_0x6d195(0x30e)],this[_0x6d195(0x489)],this[_0x6d195(0x4dc)]);if(!_0x4fa4e2)return;if(_0x1d760f){let _0x384e25=this[_0x6d195(0x37f)](_0x4fa4e2[_0x6d195(0x46b)],_0x52204a||0x0,_0x1a1b61||0x0,_0x4fa4e2[_0x6d195(0x502)]);if(!_0x384e25)return;this[_0x6d195(0x227)]=_0x384e25[_0x6d195(0x41a)]();}let _0x430c51=this[_0x6d195(0x227)];if(!(!_0x430c51||_0x430c51[_0x6d195(0x28f)]===0x0))for(let _0x1ebb1d=0x0;_0x1ebb1d<_0x430c51[_0x6d195(0x28f)];_0x1ebb1d++){let _0x2b6ded=_0x430c51[_0x1ebb1d],_0xb05f42=_0x2b6ded['x'],_0x177a15=_0x2b6ded['y'];if(_0x3412c0&&(_0xb05f42=(_0x52204a||0x0)-_0xb05f42),_0x38e83d&&(_0x177a15=(_0x1a1b61||0x0)-_0x177a15),_0x44f51f!==0x0){let _0x8bb71e=(_0x52204a||0x0)/0x2,_0x231de8=(_0x1a1b61||0x0)/0x2,_0x477e70=_0x44f51f*Math['PI']/0xb4,_0x50932a=Math[_0x6d195(0x344)](_0x477e70),_0x456736=Math[_0x6d195(0x4e1)](_0x477e70),_0x311a0f=_0xb05f42-_0x8bb71e,_0x4b33c8=_0x177a15-_0x231de8;_0xb05f42=_0x8bb71e+(_0x311a0f*_0x50932a-_0x4b33c8*_0x456736),_0x177a15=_0x231de8+(_0x311a0f*_0x456736+_0x4b33c8*_0x50932a);}let _0x51ab21={'x':_0xb05f42,'y':_0x177a15,'adjName':_0x2b6ded['adjName']};this[_0x6d195(0x1f8)](_0x4f4b5e,_0x51ab21,_0x51ab21[_0x6d195(0x259)],_0x1f8265,_0x351b79,this['_unitId'],this[_0x6d195(0x489)]);}}[_0x209063(0x1f8)](_0x101d04,_0x19de21,_0x45e929,_0x16543a,_0xb9ff6b,_0x5e1df9,_0x43f777){const _0x28bd76=_0x209063;if(!this[_0x28bd76(0x4dc)])return;let _0x4cfc87=_0x28bd76(0x3f1)+this[_0x28bd76(0x4dc)]+'-'+_0x45e929,_0x3023c2=_0x101d04[_0x28bd76(0x22b)](_0x4cfc87);if(_0x3023c2){_0x3023c2[_0x28bd76(0x462)]({'left':_0x19de21['x']+_0x16543a-_0x5b6709[_0x28bd76(0x389)]['adjHandleSize'],'top':_0x19de21['y']+_0xb9ff6b-_0x5b6709['ShapeDefaultConfig'][_0x28bd76(0x3fe)]});return;}let _0x383f09=new _0xa97e9e(_0x4cfc87,{'left':_0x19de21['x']+_0x16543a-_0x5b6709[_0x28bd76(0x389)]['adjHandleSize'],'top':_0x19de21['y']+_0xb9ff6b-_0x5b6709[_0x28bd76(0x389)][_0x28bd76(0x3fe)],'adjName':_0x45e929,'shapeId':this[_0x28bd76(0x4dc)],'unitId':_0x5e1df9,'subUnitId':_0x43f777,'width':_0x5b6709[_0x28bd76(0x389)][_0x28bd76(0x3fe)]+0x8,'height':_0x5b6709['ShapeDefaultConfig'][_0x28bd76(0x3fe)]+0x8,'zIndex':_0x40dd84['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this['_shapes']['push'](_0x383f09),this[_0x28bd76(0x487)](_0x383f09,_0x101d04,_0x45e929),_0x101d04['addObject'](_0x383f09,_0x40dd84[_0x28bd76(0x27f)]+0x1);}[_0x209063(0x20a)](){const _0x575711=_0x209063;this['_shapes'][_0x575711(0x28f)]!==0x0&&(this['_shapes'][_0x575711(0x250)](_0x5e91c6=>_0x5e91c6[_0x575711(0x46a)]()),this[_0x575711(0x461)]=[]);}[_0x209063(0x2a8)](_0x27768e,_0x38b415){const _0x1adc9c=_0x209063;var _0x3ca44b;let _0x55ce64={'x':0x0,'y':0x0},_0x4eded1=this[_0x1adc9c(0x40d)][_0x1adc9c(0x2f7)](_0x27768e);if(!_0x4eded1||!_0x4eded1['with'](_0x100e66[_0x1adc9c(0x242)])['getSkeleton'](_0x38b415))return _0x55ce64;let _0x33e58c=_0x4eded1[_0x1adc9c(0x451)](_0x100e66[_0x1adc9c(0x200)]),_0x3b94d8=_0x33e58c==null?void 0x0:_0x33e58c[_0x1adc9c(0x373)]();if(!_0x3b94d8)return _0x55ce64;let _0x3b3475=(_0x3ca44b=this[_0x1adc9c(0x2be)][_0x1adc9c(0x22d)](_0x27768e))==null?void 0x0:_0x3ca44b[_0x1adc9c(0x366)](_0x38b415);if(!_0x3b3475)return _0x55ce64;let _0x596b4f=(0x0,_0x100e66['getViewportByCell'])(_0x3b94d8[_0x1adc9c(0x230)],_0x3b94d8[_0x1adc9c(0x477)],_0x4eded1[_0x1adc9c(0x349)],_0x3b3475);return _0x596b4f?{'x':_0x596b4f[_0x1adc9c(0x1db)],'y':_0x596b4f[_0x1adc9c(0x2da)]}:_0x55ce64;}[_0x209063(0x29c)](_0x128d4a,_0x1d8723){const _0x2b27dd=_0x209063;var _0x50399b,_0x536343;let _0x21be48=(_0x50399b=this[_0x2b27dd(0x2be)][_0x2b27dd(0x22d)](_0x128d4a))==null?void 0x0:_0x50399b[_0x2b27dd(0x366)](_0x1d8723);return(_0x536343=_0x21be48==null?void 0x0:_0x21be48[_0x2b27dd(0x350)]())==null?0x1:_0x536343;}[_0x209063(0x487)](_0x430afd,_0x1103a0,_0x2c18ab){const _0x51da9b=_0x209063;this[_0x51da9b(0x3df)]((0x0,_0x49d30a[_0x51da9b(0x2d2)])(_0x430afd[_0x51da9b(0x222)][_0x51da9b(0x35a)]((_0x1f8aca,_0x2b91fe)=>{const _0x37e60e=_0x51da9b;var _0x297682,_0x562998,_0x35d40d;let {unitId:_0x62ec61,subUnitId:_0x17c4e6,drawingId:_0x66e74c}=_0x430afd[_0x37e60e(0x36c)](),_0x379524=this[_0x37e60e(0x303)](_0x62ec61,_0x17c4e6,_0x66e74c);if(!(_0x379524!=null&&_0x379524['transform']))return;let {left:_0x333743,top:_0x36273b,width:_0x2365a0,height:_0x2a73e4}=_0x379524[_0x37e60e(0x267)];this['_baseLeft']=_0x333743||0x0,this[_0x37e60e(0x3d1)]=_0x36273b||0x0,this[_0x37e60e(0x335)]=_0x2365a0||0x0,this[_0x37e60e(0x312)]=_0x2a73e4||0x0;let _0x43073b=!!((_0x297682=_0x379524[_0x37e60e(0x267)])!=null&&_0x297682[_0x37e60e(0x2d8)]),_0x34b44d=!!((_0x562998=_0x379524[_0x37e60e(0x267)])!=null&&_0x562998['flipY']),_0x33d7d4=((_0x35d40d=_0x379524[_0x37e60e(0x267)])==null?void 0x0:_0x35d40d[_0x37e60e(0x43d)])||0x0,_0x37cb79=this[_0x37e60e(0x2aa)](_0x62ec61,_0x17c4e6,_0x66e74c);if(!_0x37cb79)return;let _0x5d3752=this['_getOrCreateShapeModel'](_0x37cb79[_0x37e60e(0x46b)],this[_0x37e60e(0x335)],this[_0x37e60e(0x312)],_0x37cb79[_0x37e60e(0x502)]);if(!_0x5d3752||(this[_0x37e60e(0x23a)]=_0x5d3752,this[_0x37e60e(0x44d)]=_0x5d3752[_0x37e60e(0x4dd)](_0x2c18ab),!this['_activeAdjustInfo']))return;this[_0x37e60e(0x278)]=!0x0,_0x1103a0[_0x37e60e(0x202)]();let _0x5f10cc=_0x37cb79[_0x37e60e(0x46b)];this['_adjHandlerPointerMove']=_0x1103a0[_0x37e60e(0x468)]['subscribeEvent']((_0x3bc869,_0x40498a)=>{const _0x5d881e=_0x37e60e;if(!this['_isStartAdjusting'])return;let {offsetX:_0x9ff36b,offsetY:_0x361835}=_0x3bc869,_0x252506=this['_activeAdjustInfo'];if(!this[_0x5d881e(0x23a)]||!_0x252506)return;_0x1103a0[_0x5d881e(0x202)](),_0x1103a0[_0x5d881e(0x248)](_0x40dd84[_0x5d881e(0x223)][_0x5d881e(0x317)]);let _0x8dd332={'left':0x0,'top':0x0,'width':this[_0x5d881e(0x335)],'height':this['_baseHeight']},_0x5a8e20=this[_0x5d881e(0x2a8)](_0x62ec61,_0x17c4e6),_0x3f63e5=this[_0x5d881e(0x29c)](_0x62ec61,_0x17c4e6),_0x416deb=_0x9ff36b/_0x3f63e5+_0x5a8e20['x']-this[_0x5d881e(0x4df)],_0x444dec=_0x361835/_0x3f63e5+_0x5a8e20['y']-this[_0x5d881e(0x3d1)];if(_0x33d7d4!==0x0){let _0x38b0a5=this[_0x5d881e(0x335)]/0x2,_0x57ebca=this[_0x5d881e(0x312)]/0x2,_0x16e36d=_0x33d7d4*Math['PI']/0xb4,_0x42160e=Math['cos'](_0x16e36d),_0x4cc53c=Math[_0x5d881e(0x4e1)](_0x16e36d),_0x49a655=_0x416deb-_0x38b0a5,_0x44fcdf=_0x444dec-_0x57ebca;_0x416deb=_0x38b0a5+(_0x49a655*_0x42160e+_0x44fcdf*_0x4cc53c),_0x444dec=_0x57ebca+(-_0x49a655*_0x4cc53c+_0x44fcdf*_0x42160e);}_0x43073b&&(_0x416deb=this[_0x5d881e(0x335)]-_0x416deb),_0x34b44d&&(_0x444dec=this[_0x5d881e(0x312)]-_0x444dec);let _0x3c3e44=this['_activeShapeModel']['calcAdjValue'](_0x8dd332,{'x':_0x416deb,'y':_0x444dec},_0x252506,_0x43073b,_0x34b44d),_0x28fb55=_0x252506[_0x5d881e(0x45d)]||_0x252506[_0x5d881e(0x48a)]||_0x252506[_0x5d881e(0x46d)]||_0x252506['gdRefR'];_0x28fb55!==void 0x0&&(this[_0x5d881e(0x23a)][_0x5d881e(0x45a)](_0x28fb55,_0x3c3e44),this[_0x5d881e(0x23a)][_0x5d881e(0x2c1)]({'width':this[_0x5d881e(0x335)],'height':this['_baseHeight']}),this[_0x5d881e(0x2e3)](_0x62ec61,_0x17c4e6,_0x66e74c,_0x28fb55,_0x3c3e44),this[_0x5d881e(0x227)]=this['_activeShapeModel']['getDrawingPoints'](),this[_0x5d881e(0x44d)]=this[_0x5d881e(0x23a)][_0x5d881e(0x4dd)](_0x2c18ab),this[_0x5d881e(0x387)](),_0x40498a[_0x5d881e(0x2b6)]());}),this[_0x37e60e(0x40f)]=_0x1103a0[_0x37e60e(0x4ab)][_0x37e60e(0x35a)]((_0xfb734f,_0x40b0f0)=>{const _0x17c90d=_0x37e60e;if(this[_0x17c90d(0x318)][_0x17c90d(0x27d)](),this['_adjHandlerPointerUp'][_0x17c90d(0x27d)](),_0x1103a0[_0x17c90d(0x3be)](),this['_activeShapeModel']){let _0x4b3efd=this[_0x17c90d(0x23a)][_0x17c90d(0x3c9)](),_0x4cefbe={};for(let _0x3339e8 of _0x4b3efd){let _0x5d0094=this[_0x17c90d(0x23a)][_0x17c90d(0x213)](_0x3339e8);_0x5d0094!==void 0x0&&(_0x4cefbe[_0x3339e8]=_0x5d0094);}this[_0x17c90d(0x471)][_0x17c90d(0x245)](_0x62ec61,_0x17c4e6,_0x66e74c,_0x5f10cc,_0x4cefbe);}this[_0x17c90d(0x44d)]=void 0x0,this[_0x17c90d(0x23a)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x40b0f0[_0x17c90d(0x2b6)](),_0x1103a0[_0x17c90d(0x4a1)]();}),_0x2b91fe[_0x37e60e(0x2b6)]();})));}[_0x209063(0x2e3)](_0x4cadaa,_0xff72f4,_0x132442,_0x5f5b40,_0x45f58c){const _0x154eb1=_0x209063;let _0x599364=this['_renderManagerService']['getRenderById'](_0x4cadaa);if(!_0x599364)return;let {scene:_0x5db11c}=_0x599364,_0x42648e=(0x0,_0x510035[_0x154eb1(0x3a8)])({'unitId':_0x4cadaa,'subUnitId':_0xff72f4,'drawingId':_0x132442}),_0x1b34c5=_0x5db11c[_0x154eb1(0x229)](_0x42648e);if(_0x1b34c5 instanceof _0x40dd84[_0x154eb1(0x4bb)]){var _0x63b49a;let _0x246f63=(_0x63b49a=_0x1b34c5['prstGeomAdjValues'])==null?{}:_0x63b49a;_0x1b34c5['setPrstGeomAdjValues']({..._0x246f63,[_0x5f5b40]:_0x45f58c}),_0x1b34c5[_0x154eb1(0x25d)](!0x0);}}[_0x209063(0x457)](){const _0x3a7e7e=_0x209063;let _0x7c67ce=this[_0x3a7e7e(0x2be)][_0x3a7e7e(0x26b)](_0x49d30a[_0x3a7e7e(0x276)][_0x3a7e7e(0x295)]);this[_0x3a7e7e(0x3df)](_0x7c67ce[_0x3a7e7e(0x201)]((0x0,_0x230aed[_0x3a7e7e(0x24b)])(_0x85664d=>_0x85664d?_0x85664d[_0x3a7e7e(0x403)][_0x3a7e7e(0x201)]((0x0,_0x230aed[_0x3a7e7e(0x24b)])(_0x48fb12=>{const _0x5aa487=_0x3a7e7e;if(!_0x48fb12)return _0x230aed[_0x5aa487(0x2d0)];let _0x3c579f=_0x85664d[_0x5aa487(0x3bf)](),_0x3c69f7=this[_0x5aa487(0x40d)][_0x5aa487(0x2f7)](_0x3c579f),_0x32acd5=_0x3c69f7==null?void 0x0:_0x3c69f7[_0x5aa487(0x349)];return _0x32acd5?(0x0,_0x230aed['of'])(_0x32acd5):_0x230aed[_0x5aa487(0x2d0)];})):_0x230aed[_0x3a7e7e(0x2d0)]))[_0x3a7e7e(0x4d3)](_0x113fd5=>{const _0x4401c4=_0x3a7e7e;let _0x6a275a=_0x113fd5[_0x4401c4(0x262)]();this[_0x4401c4(0x3df)](_0x113fd5[_0x4401c4(0x468)][_0x4401c4(0x35a)](()=>{const _0x56b0ab=_0x4401c4;this['_isImagePointerDown']&&this[_0x56b0ab(0x20a)]();})),this[_0x4401c4(0x3df)](_0x6a275a[_0x4401c4(0x275)][_0x4401c4(0x4d3)](_0x27daf4=>{const _0x1a24a7=_0x4401c4;let {objects:_0x4a7ec2}=_0x27daf4;if(this[_0x1a24a7(0x387)](),_0x4a7ec2!==null&&_0x4a7ec2[_0x1a24a7(0x3c6)]===0x1){let _0x5d4df1=_0x4a7ec2[_0x1a24a7(0x1e1)]()[_0x1a24a7(0x241)]()[_0x1a24a7(0x2b4)];_0x5d4df1 instanceof _0x40dd84[_0x1a24a7(0x4bb)]&&_0x5d4df1[_0x1a24a7(0x46b)]&&(this[_0x1a24a7(0x386)]=!0x0);}})),this[_0x4401c4(0x3df)](_0x6a275a[_0x4401c4(0x4e8)][_0x4401c4(0x4d3)](()=>{const _0x90b837=_0x4401c4;this['_isImagePointerDown']&&this[_0x90b837(0x20a)]();})),this['disposeWithMe'](_0x113fd5['onPointerUp$'][_0x4401c4(0x35a)](()=>{const _0x5d1511=_0x4401c4;this[_0x5d1511(0x386)]&&(this['_isImagePointerDown']=!0x1,this[_0x5d1511(0x387)]());})),this['disposeWithMe'](_0x6a275a[_0x4401c4(0x4d7)][_0x4401c4(0x4d3)](()=>{const _0x28e6f2=_0x4401c4;if(this[_0x28e6f2(0x30e)]&&this['_subUnitId']&&this[_0x28e6f2(0x4dc)]){let _0x4c3171=this[_0x28e6f2(0x2aa)](this[_0x28e6f2(0x30e)],this[_0x28e6f2(0x489)],this[_0x28e6f2(0x4dc)]);if(_0x4c3171){var _0xff246f,_0x266327;let _0x3e927b=this['_getImageDrawingInfo'](this['_unitId'],this[_0x28e6f2(0x489)],this[_0x28e6f2(0x4dc)]),_0x470914=(_0x3e927b==null||(_0xff246f=_0x3e927b['transform'])==null?void 0x0:_0xff246f[_0x28e6f2(0x3bb)])||0x0,_0x4c4fb3=(_0x3e927b==null||(_0x266327=_0x3e927b[_0x28e6f2(0x267)])==null?void 0x0:_0x266327['height'])||0x0,_0x487991=this[_0x28e6f2(0x37f)](_0x4c3171[_0x28e6f2(0x46b)],_0x470914,_0x4c4fb3,_0x4c3171[_0x28e6f2(0x502)]);_0x487991&&(this[_0x28e6f2(0x227)]=_0x487991[_0x28e6f2(0x41a)](),this[_0x28e6f2(0x20a)](),this['_createControls'](!0x0));}}}));}));}[_0x209063(0x345)](){const _0x3bedf8=_0x209063;this['disposeWithMe'](this[_0x3bedf8(0x4e5)][_0x3bedf8(0x2a6)][_0x3bedf8(0x4d3)](_0x23fc99=>{const _0x141ebd=_0x3bedf8;if(_0x23fc99['length']===0x1){let _0x3ef1ed=_0x23fc99[0x0];if(_0x3ef1ed[_0x141ebd(0x3e8)]===_0x49d30a[_0x141ebd(0x365)][_0x141ebd(0x431)]){let {unitId:_0x1ac214,subUnitId:_0x150313,drawingId:_0x8b56fa}=_0x3ef1ed,_0x4a9687=this[_0x141ebd(0x2aa)](_0x1ac214,_0x150313,_0x8b56fa);if(_0x4a9687){var _0x3ab0a1,_0xd71749;this['_activeImageId']=_0x8b56fa,this['_unitId']=_0x1ac214,this[_0x141ebd(0x489)]=_0x150313;let _0x2a22c5=this[_0x141ebd(0x303)](_0x1ac214,_0x150313,_0x8b56fa),_0xc64be1=(_0x2a22c5==null||(_0x3ab0a1=_0x2a22c5[_0x141ebd(0x267)])==null?void 0x0:_0x3ab0a1[_0x141ebd(0x3bb)])||0x0,_0x377f59=(_0x2a22c5==null||(_0xd71749=_0x2a22c5[_0x141ebd(0x267)])==null?void 0x0:_0xd71749[_0x141ebd(0x498)])||0x0,_0x12853c=this['_getOrCreateShapeModel'](_0x4a9687[_0x141ebd(0x46b)],_0xc64be1,_0x377f59,_0x4a9687['adjustValues']);_0x12853c&&(this[_0x141ebd(0x227)]=_0x12853c[_0x141ebd(0x41a)]()),this[_0x141ebd(0x20a)](),this[_0x141ebd(0x387)](!0x0);}else this['_resetState']();}else this[_0x141ebd(0x3bd)]();}else this[_0x141ebd(0x3bd)]();})),this['disposeWithMe'](this[_0x3bedf8(0x4e5)][_0x3bedf8(0x44c)]['subscribe'](_0x409b80=>{const _0x3ff3db=_0x3bedf8;if(_0x409b80['length']===0x1){let _0x3407a1=_0x409b80[0x0],_0x16d865=this['_drawingManagerService'][_0x3ff3db(0x20c)](_0x3407a1);(_0x16d865==null?void 0x0:_0x16d865['drawingType'])===_0x49d30a[_0x3ff3db(0x365)]['DRAWING_IMAGE']&&this[_0x3ff3db(0x4dc)]===_0x3407a1[_0x3ff3db(0x2e9)]&&(this[_0x3ff3db(0x20a)](),this[_0x3ff3db(0x387)](!0x0));}})),this[_0x3bedf8(0x3df)](this[_0x3bedf8(0x4e5)][_0x3bedf8(0x37d)][_0x3bedf8(0x4d3)](_0x17d8e5=>{const _0x2e25b6=_0x3bedf8;for(let _0x2d5d04 of _0x17d8e5)this[_0x2e25b6(0x4dc)]===_0x2d5d04[_0x2e25b6(0x2e9)]&&this['_resetState']();}));}[_0x209063(0x3bd)](){const _0x2a5ea5=_0x209063;this[_0x2a5ea5(0x4dc)]=null,this[_0x2a5ea5(0x30e)]=null,this[_0x2a5ea5(0x489)]=null,this[_0x2a5ea5(0x227)]=void 0x0,this[_0x2a5ea5(0x20a)]();}};_0x43f6ab=_0x276893([_0x3cbe95(0x1,_0x510035[_0x209063(0x239)]),_0x3cbe95(0x2,(0x0,_0x49d30a['Inject'])(_0x40dd84[_0x209063(0x2ba)])),_0x3cbe95(0x3,_0x49d30a[_0x209063(0x31b)]),_0x3cbe95(0x4,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x43d42e))],_0x43f6ab);let _0x19f29c=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(_0x43b4eb,_0x310d98,_0x5dbad4,_0x1a4c60){const _0x8ae9a9=_0x209063;super(),this['_univerInstanceService']=_0x43b4eb,this[_0x8ae9a9(0x501)]=_0x310d98,this[_0x8ae9a9(0x43c)]=_0x5dbad4,this[_0x8ae9a9(0x488)]=_0x1a4c60,this[_0x8ae9a9(0x2a3)]();}[_0x209063(0x2a3)](){this['disposeWithMe'](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x5a4f23=>{const _0x446cc0=_0x45fb;if(_0x5a4f23['id']===_0x4fbea5[_0x446cc0(0x37a)]['id']){let _0x1ad89c=(0x0,_0x4fbea5[_0x446cc0(0x3c0)])(this[_0x446cc0(0x2be)],_0x5a4f23[_0x446cc0(0x2c7)]);if(!_0x1ad89c)return{'redos':[],'undos':[]};let {unitId:_0x5afca4,subUnitId:_0x4ed431}=_0x1ad89c,_0x389c13=this[_0x446cc0(0x43c)]['getDrawingData'](_0x5afca4,_0x4ed431),_0xe6d933=Object[_0x446cc0(0x1e1)](_0x389c13)[_0x446cc0(0x3a4)](_0x2e23ef=>_0x2e23ef['drawingType']===_0x49d30a['DrawingTypeEnum'][_0x446cc0(0x4fe)]);if(_0xe6d933[_0x446cc0(0x28f)]===0x0)return{'redos':[],'undos':[]};let _0x384064=[],_0x20e61b=[];for(let _0x5f6f58=0x0;_0x5f6f58<_0xe6d933[_0x446cc0(0x28f)];_0x5f6f58++){let _0x164d41=_0xe6d933[_0x5f6f58],_0x1241be=this[_0x446cc0(0x488)][_0x446cc0(0x4b2)](_0x164d41[_0x446cc0(0x441)],_0x164d41[_0x446cc0(0x2fe)],_0x164d41[_0x446cc0(0x2e9)]);if(!_0x1241be)continue;let {redo:_0x38d766,undo:_0x59d551,objects:_0x454389}=this[_0x446cc0(0x43c)]['getBatchRemoveOp']([_0x164d41]);_0x384064['push']({'id':_0x4eb2ab['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x5afca4,'subUnitId':_0x4ed431,'shapeId':_0x164d41[_0x446cc0(0x2e9)]}}),_0x384064[_0x446cc0(0x3ed)]({'id':_0x28a390[_0x446cc0(0x326)]['id'],'params':{'unitId':_0x5afca4,'subUnitId':_0x4ed431,'type':_0x28a390[_0x446cc0(0x3e9)]['REMOVE'],'op':_0x38d766,'objects':_0x454389}}),_0x20e61b[_0x446cc0(0x3ed)]({'id':_0x28a390[_0x446cc0(0x326)]['id'],'params':{'unitId':_0x5afca4,'subUnitId':_0x4ed431,'type':_0x28a390[_0x446cc0(0x3e9)][_0x446cc0(0x25e)],'op':_0x59d551,'objects':_0x454389}}),_0x20e61b[_0x446cc0(0x3ed)]({'id':_0x4eb2ab[_0x446cc0(0x41b)]['id'],'params':{'unitId':_0x5afca4,'subUnitId':_0x4ed431,'shapeId':_0x164d41[_0x446cc0(0x2e9)],'shapeType':_0x1241be[_0x446cc0(0x4b0)](),'shapeData':JSON[_0x446cc0(0x1e8)](JSON['stringify'](_0x1241be[_0x446cc0(0x224)]()))}});}return{'redos':_0x384064,'undos':_0x20e61b};}else{if(_0x5a4f23['id']===_0x4fbea5[_0x446cc0(0x3b4)]['id']){let {unitId:_0x12dbb3,subUnitId:_0x24924d,targetSubUnitId:_0x4b3be0}=_0x5a4f23[_0x446cc0(0x2c7)];if(!_0x12dbb3||!_0x24924d||!_0x4b3be0)return{'redos':[],'undos':[]};let _0x4063f0=this[_0x446cc0(0x43c)][_0x446cc0(0x2fd)](_0x12dbb3,_0x24924d),_0x3738bb=Object['values'](_0x4063f0)[_0x446cc0(0x3a4)](_0x5ea7b7=>_0x5ea7b7[_0x446cc0(0x3e8)]===_0x49d30a[_0x446cc0(0x365)][_0x446cc0(0x4fe)]);if(_0x3738bb[_0x446cc0(0x28f)]===0x0)return{'redos':[],'undos':[]};let _0x5a130d=[],_0x459ffe=[];for(let _0x32ecd5=0x0;_0x32ecd5<_0x3738bb[_0x446cc0(0x28f)];_0x32ecd5++){let _0x4d9803=_0x3738bb[_0x32ecd5],_0x312501=this['_sheetsShapeService'][_0x446cc0(0x4b2)](_0x4d9803[_0x446cc0(0x441)],_0x4d9803[_0x446cc0(0x2fe)],_0x4d9803[_0x446cc0(0x2e9)]);if(!_0x312501)continue;let _0x5441f8=(0x0,_0x49d30a['generateRandomId'])(),_0x4a8880={..._0x4d9803,'unitId':_0x12dbb3,'subUnitId':_0x4b3be0,'drawingId':_0x5441f8},{redo:_0x2e34f0,undo:_0x2df7a4,objects:_0x3ba659}=this['_sheetDrawingService']['getBatchAddOp']([_0x4a8880]);_0x5a130d[_0x446cc0(0x3ed)]({'id':_0x28a390[_0x446cc0(0x326)]['id'],'params':{'unitId':_0x12dbb3,'subUnitId':_0x4b3be0,'type':_0x28a390['DrawingApplyType']['INSERT'],'op':_0x2e34f0,'objects':_0x3ba659}}),_0x5a130d[_0x446cc0(0x3ed)]({'id':_0x4eb2ab['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x12dbb3,'subUnitId':_0x4b3be0,'shapeId':_0x5441f8,'shapeType':_0x312501[_0x446cc0(0x4b0)](),'shapeData':JSON[_0x446cc0(0x1e8)](JSON['stringify'](_0x312501[_0x446cc0(0x224)]()))}}),_0x459ffe[_0x446cc0(0x3ed)]({'id':_0x4eb2ab[_0x446cc0(0x24e)]['id'],'params':{'unitId':_0x12dbb3,'subUnitId':_0x4b3be0,'shapeId':_0x5441f8}}),_0x459ffe[_0x446cc0(0x3ed)]({'id':_0x28a390[_0x446cc0(0x326)]['id'],'params':{'unitId':_0x12dbb3,'subUnitId':_0x4b3be0,'type':_0x28a390['DrawingApplyType'][_0x446cc0(0x361)],'op':_0x2df7a4,'objects':_0x3ba659}});}return{'redos':_0x5a130d,'undos':_0x459ffe};}}return{'redos':[],'undos':[]};}}));}};_0x19f29c=_0x276893([_0x3cbe95(0x0,(0x0,_0x49d30a['Inject'])(_0x49d30a[_0x209063(0x31b)])),_0x3cbe95(0x1,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x4fbea5[_0x209063(0x3fb)])),_0x3cbe95(0x2,(0x0,_0x49d30a['Inject'])(_0x28a390[_0x209063(0x2b8)])),_0x3cbe95(0x3,(0x0,_0x49d30a['Inject'])(_0x4eb2ab[_0x209063(0x264)]))],_0x19f29c);let _0x312b3e=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(_0x59ecee,_0x5a4818,_0x1fbbde,_0x30dad6,_0x4cb2c4){const _0x1e0f5c=_0x209063;super(),this['_context']=_0x59ecee,this[_0x1e0f5c(0x325)]=_0x5a4818,this[_0x1e0f5c(0x4e5)]=_0x1fbbde,this[_0x1e0f5c(0x3b1)]=_0x30dad6,this['_sheetsShapeService']=_0x4cb2c4,_0x28368a(this,_0x1e0f5c(0x2d1),null),this['_initEvents'](),this[_0x1e0f5c(0x353)](),this[_0x1e0f5c(0x218)]();}[_0x209063(0x209)](){const _0x3e57af=_0x209063;let {scene:_0x404557}=this['_context'];this['disposeWithMe'](_0x404557[_0x3e57af(0x3d5)]['subscribeEvent'](_0x2c6a1e=>{const _0x488cb3=_0x3e57af;let {offsetX:_0x42fe7e,offsetY:_0xfbd185}=_0x2c6a1e,_0x117679=_0x404557['pick'](_0x40dd84[_0x488cb3(0x371)][_0x488cb3(0x3eb)]([_0x42fe7e,_0xfbd185]));if(_0x117679 instanceof _0x642241){let _0x56e9f1=this[_0x488cb3(0x488)]['getShapeModel'](_0x117679[_0x488cb3(0x441)],_0x117679[_0x488cb3(0x2fe)],_0x117679['shapeId']);if(_0x56e9f1!=null&&_0x56e9f1[_0x488cb3(0x224)]()[_0x488cb3(0x330)]||(0x0,_0x5b6709[_0x488cb3(0x3b5)])(this[_0x488cb3(0x488)][_0x488cb3(0x4b0)](_0x117679['unitId'],_0x117679[_0x488cb3(0x2fe)],_0x117679[_0x488cb3(0x3dc)])))return;this[_0x488cb3(0x325)][_0x488cb3(0x2dd)]({'visible':!0x0,'unitId':_0x117679[_0x488cb3(0x441)],'subUnitId':_0x117679[_0x488cb3(0x2fe)],'shapeId':_0x117679[_0x488cb3(0x3dc)],'shapeKey':_0x117679[_0x488cb3(0x35b)]});}}));}[_0x209063(0x353)](){const _0x1c770f=_0x209063;this[_0x1c770f(0x3df)](this[_0x1c770f(0x4e5)]['focus$'][_0x1c770f(0x4d3)](_0x41faa2=>{const _0x4b0a61=_0x1c770f;if(_0x41faa2[_0x4b0a61(0x28f)]===0x1){let _0x59aabb=_0x41faa2[0x0],_0xfdf60e=this[_0x4b0a61(0x4e5)][_0x4b0a61(0x20c)](_0x59aabb);if((_0xfdf60e==null?void 0x0:_0xfdf60e[_0x4b0a61(0x3e8)])===_0x49d30a[_0x4b0a61(0x365)][_0x4b0a61(0x4fe)]){var _0x4165f8;let _0x4b8c94=this[_0x4b0a61(0x325)][_0x4b0a61(0x247)]();if((_0x4b8c94==null?void 0x0:_0x4b8c94[_0x4b0a61(0x3dc)])===_0x59aabb[_0x4b0a61(0x2e9)]&&_0x4b8c94[_0x4b0a61(0x4b6)])return;let _0x3f7338=(0x0,_0x5b6709[_0x4b0a61(0x3b5)])(this[_0x4b0a61(0x488)]['getShapeType'](_0x59aabb[_0x4b0a61(0x441)],_0x59aabb[_0x4b0a61(0x2fe)],_0x59aabb[_0x4b0a61(0x2e9)])),_0x4a0ea5=!!((_0x4165f8=this['_sheetsShapeService'][_0x4b0a61(0x4b2)](_0x59aabb[_0x4b0a61(0x441)],_0x59aabb[_0x4b0a61(0x2fe)],_0x59aabb[_0x4b0a61(0x2e9)]))!=null&&_0x4165f8[_0x4b0a61(0x224)]()[_0x4b0a61(0x330)]);(_0x3f7338||_0x4a0ea5)&&this[_0x4b0a61(0x325)][_0x4b0a61(0x2dd)](null);}else this[_0x4b0a61(0x325)][_0x4b0a61(0x247)]()&&(this[_0x4b0a61(0x325)][_0x4b0a61(0x404)](!0x0),requestAnimationFrame(()=>{const _0x4f78be=_0x4b0a61;this[_0x4f78be(0x325)][_0x4f78be(0x2dd)](null);}));}else this['_shapeTextEditingService'][_0x4b0a61(0x247)]()&&(this['_shapeTextEditingService']['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x2cd45f=_0x4b0a61;this[_0x2cd45f(0x325)]['setEditing'](null);}));})),this[_0x1c770f(0x3df)](this['_drawingManagerService'][_0x1c770f(0x37d)]['subscribe'](_0x164da1=>{const _0x5470bf=_0x1c770f;let _0x2528a3=this[_0x5470bf(0x325)][_0x5470bf(0x247)]();_0x2528a3&&_0x164da1[_0x5470bf(0x38d)](_0x406042=>_0x406042['drawingId']===_0x2528a3[_0x5470bf(0x3dc)])&&this[_0x5470bf(0x325)][_0x5470bf(0x2dd)](null);}));}[_0x209063(0x218)](){const _0x4cd925=_0x209063;this[_0x4cd925(0x3df)](this[_0x4cd925(0x325)]['editingParams$']['subscribe'](_0x11d71d=>{const _0x6190d3=_0x4cd925;let {scene:_0xb4748}=this[_0x6190d3(0x22e)];if(this[_0x6190d3(0x2d1)]){let _0x48667d=_0xb4748['getObjectIncludeInGroup'](this['_lastEditingShapeKey']);_0x48667d&&_0x48667d[_0x6190d3(0x2dd)](!0x1);}if(_0x11d71d){let _0x4f4a25=!!_0x11d71d[_0x6190d3(0x4b6)],_0x45240b=_0xb4748[_0x6190d3(0x22b)](_0x11d71d[_0x6190d3(0x3ea)]);_0x45240b&&(_0x45240b['setEditing'](_0x4f4a25),this['_lastEditingShapeKey']=_0x11d71d[_0x6190d3(0x3ea)]),this[_0x6190d3(0x3b1)]['setContextValue'](_0x49d30a['FOCUSING_SHAPE_TEXT_EDITOR'],_0x4f4a25);}else this[_0x6190d3(0x2d1)]=null,this[_0x6190d3(0x3b1)][_0x6190d3(0x29d)](_0x49d30a[_0x6190d3(0x284)],!0x1);}));}};_0x312b3e=_0x276893([_0x3cbe95(0x1,(0x0,_0x49d30a['Inject'])(_0x3da7be)),_0x3cbe95(0x2,_0x510035[_0x209063(0x239)]),_0x3cbe95(0x3,_0x49d30a[_0x209063(0x4f6)]),_0x3cbe95(0x4,(0x0,_0x49d30a['Inject'])(_0x4eb2ab[_0x209063(0x264)]))],_0x312b3e);let _0x24a7bf=class extends _0xa40d9e[_0x209063(0x408)]{constructor(_0x679e4e,_0x156030,_0x321e30,_0x54016d){super(_0x679e4e,_0x156030,_0x321e30,_0x54016d,{'componentKey':_0x3c71d3,'editorUnitId':_0x1e912e});}};_0x24a7bf=_0x276893([_0x3cbe95(0x1,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x2bba01['DocSelectionManagerService'])),_0x3cbe95(0x2,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x31dab3[_0x209063(0x396)])),_0x3cbe95(0x3,(0x0,_0x49d30a['Inject'])(_0x31dab3[_0x209063(0x3a3)]))],_0x24a7bf);let _0x2d94be=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(_0xcd583c,_0x479b16,_0x119e85,_0x359e00,_0x118804,_0x541e64){const _0x1843ed=_0x209063;super(),this[_0x1843ed(0x240)]=_0xcd583c,this[_0x1843ed(0x40d)]=_0x479b16,this[_0x1843ed(0x4e5)]=_0x119e85,this[_0x1843ed(0x4f1)]=_0x359e00,this[_0x1843ed(0x3ce)]=_0x118804,this[_0x1843ed(0x4af)]=_0x541e64,_0x28368a(this,_0x1843ed(0x4fc),new Set()),this[_0x1843ed(0x47c)]();}[_0x209063(0x47c)](){const _0x16596c=_0x209063;this[_0x16596c(0x4da)](),this[_0x16596c(0x289)](),this['_shapeUpdateListener']();}[_0x209063(0x4da)](){const _0x200fc5=_0x209063;this[_0x200fc5(0x3df)](this[_0x200fc5(0x4e5)][_0x200fc5(0x306)][_0x200fc5(0x4d3)](_0x395ef3=>{const _0x25b40f=_0x200fc5;this[_0x25b40f(0x3f2)](_0x395ef3);}));}[_0x209063(0x289)](){const _0x12796b=_0x209063;this['disposeWithMe'](this[_0x12796b(0x240)][_0x12796b(0x4cc)](_0x4d88e1=>{const _0x3c3a58=_0x12796b;if(_0x4d88e1['id']===_0x4eb2ab['UpdateSheetsShapeDataMutation']['id']){let {unitId:_0x147b4b,subUnitId:_0x329b38,shapeId:_0x38f8ba}=_0x4d88e1[_0x3c3a58(0x2c7)],_0x26c3f4=this[_0x3c3a58(0x372)](_0x147b4b),_0xb549d3=(0x0,_0x510035[_0x3c3a58(0x3a8)])({'unitId':_0x147b4b,'subUnitId':_0x329b38,'drawingId':_0x38f8ba}),_0x11df5e=_0x26c3f4==null?void 0x0:_0x26c3f4['scene'][_0x3c3a58(0x22b)](_0xb549d3);_0x11df5e&&(this[_0x3c3a58(0x4af)][_0x3c3a58(0x221)](_0x11df5e),this[_0x3c3a58(0x4af)]['refreshFormulaPresentation'](_0x11df5e,{'unitId':_0x147b4b,'subUnitId':_0x329b38,'shapeId':_0x38f8ba}),_0x11df5e[_0x3c3a58(0x25d)](!0x0));return;}if(_0x4d88e1['id']===_0x4eb2ab['InsertSheetsShapeMutation']['id']){var _0x2a71b0;let {unitId:_0x33f067,subUnitId:_0x38b1dd,shapeId:_0x5b9628}=_0x4d88e1[_0x3c3a58(0x2c7)],_0x41b954=this[_0x3c3a58(0x372)](_0x33f067);if(_0x41b954==null)return;let {scene:_0x51a9b0}=_0x41b954,_0x22ebcb=(0x0,_0x510035[_0x3c3a58(0x3a8)])({'unitId':_0x33f067,'subUnitId':_0x38b1dd,'drawingId':_0x5b9628}),_0x39ea5b=_0x51a9b0['getObjectIncludeInGroup'](_0x22ebcb);if(!((_0x2a71b0=this['_renderManagerService']['getRenderById'](_0x33f067))!=null&&_0x2a71b0[_0x3c3a58(0x451)](_0x100e66[_0x3c3a58(0x242)])[_0x3c3a58(0x2d9)](_0x38b1dd)))return!0x1;if(_0x39ea5b)return;this[_0x3c3a58(0x3f2)]([{'unitId':_0x33f067,'subUnitId':_0x38b1dd,'drawingId':_0x5b9628}]);}}));}[_0x209063(0x2c0)](){const _0x48261d=_0x209063;this[_0x48261d(0x3df)](this[_0x48261d(0x4e5)][_0x48261d(0x44c)]['subscribe'](_0x2f3215=>{const _0x4292a9=_0x48261d;_0x2f3215[_0x4292a9(0x250)](_0x445b13=>{const _0xacf65d=_0x4292a9;let {unitId:_0x2cfa8a,subUnitId:_0x11c347,drawingId:_0x36f31d}=_0x445b13,_0x386daf=this[_0xacf65d(0x4e5)][_0xacf65d(0x20c)](_0x445b13);if(_0x386daf==null)return;let {transform:_0xd750f2,drawingType:_0x598c6d,srcRect:_0x99e764,prstGeom:_0x12cab}=_0x386daf;if(_0x598c6d!==_0x49d30a['DrawingTypeEnum']['DRAWING_SHAPE'])return;let _0x2fb0e9=this[_0xacf65d(0x372)](_0x2cfa8a);if(_0x2fb0e9==null)return;let {scene:_0x3e3fa1,transformer:_0xd1011c}=_0x2fb0e9;if(_0xd750f2==null)return!0x0;let _0x162b3d=(0x0,_0x510035[_0xacf65d(0x3a8)])({'unitId':_0x2cfa8a,'subUnitId':_0x11c347,'drawingId':_0x36f31d}),_0x654b8f=_0x3e3fa1[_0xacf65d(0x22b)](_0x162b3d);if(_0x654b8f==null)return!0x0;_0x654b8f[_0xacf65d(0x32e)](_0x99e764),_0x654b8f['setPrstGeom'](_0x12cab);});}));}[_0x209063(0x3f2)](_0x298eab){const _0x5dfe0e=_0x209063;for(let _0x3ad709 of _0x298eab){var _0x211f88;let {unitId:_0x3a7aa8,subUnitId:_0x1d34a5,drawingId:_0x3c25c5}=_0x3ad709,_0x7f9d92=this[_0x5dfe0e(0x372)](_0x3a7aa8),_0x19ac49=(_0x211f88=(0x0,_0xceb6c3[_0x5dfe0e(0x1eb)])(this[_0x5dfe0e(0x4f1)],_0x3a7aa8))==null?void 0x0:_0x211f88[_0x5dfe0e(0x2fe)];if(_0x7f9d92==null||_0x19ac49!==_0x1d34a5)return;let _0xaf7e2b=(0x0,_0x510035[_0x5dfe0e(0x3a8)])({'unitId':_0x3a7aa8,'subUnitId':_0x1d34a5,'drawingId':_0x3c25c5});if(this[_0x5dfe0e(0x4fc)][_0x5dfe0e(0x38c)](_0xaf7e2b)||_0x7f9d92[_0x5dfe0e(0x349)][_0x5dfe0e(0x22b)](_0xaf7e2b)!=null)return;let _0x5c19d9=this['_drawingManagerService'][_0x5dfe0e(0x20c)](_0x3ad709);if(_0x5c19d9==null||_0x5c19d9[_0x5dfe0e(0x3e8)]!==_0x49d30a[_0x5dfe0e(0x365)][_0x5dfe0e(0x4fe)])return;if((0x0,_0x5b6709[_0x5dfe0e(0x3b5)])((_0x5c19d9['data']||{})['shapeType'])){let _0x5ba9e1=_0x5c19d9[_0x5dfe0e(0x267)];_0x5ba9e1&&(_0x5c19d9[_0x5dfe0e(0x267)]={..._0x5ba9e1,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x5dfe0e(0x4fc)][_0x5dfe0e(0x449)](_0xaf7e2b);try{this[_0x5dfe0e(0x4af)]['renderDrawingShape'](_0x5c19d9,_0x7f9d92['scene']);}finally{this[_0x5dfe0e(0x4fc)][_0x5dfe0e(0x425)](_0xaf7e2b);}queueMicrotask(()=>{const _0x3d8522=_0x5dfe0e;if(this[_0x3d8522(0x22c)])return;let _0x17ce2b=(0x0,_0x510035[_0x3d8522(0x3a8)])(_0x3ad709);if(!_0x7f9d92['scene'][_0x3d8522(0x22b)](_0x17ce2b))return;let _0x25b10b=this['_drawingManagerService'][_0x3d8522(0x20c)](_0x3ad709);_0x25b10b&&this['_drawingManagerService']['refreshTransform']([_0x25b10b]);});}}[_0x209063(0x372)](_0x2f1ad1){const _0x48af94=_0x209063;if(_0x2f1ad1==null)return;let _0x1067d1=this[_0x48af94(0x40d)][_0x48af94(0x2f7)](_0x2f1ad1),_0x6f6a1=_0x1067d1==null?void 0x0:_0x1067d1[_0x48af94(0x349)];return _0x6f6a1==null?null:{'scene':_0x6f6a1,'transformer':_0x6f6a1[_0x48af94(0x262)]()};}};_0x2d94be=_0x276893([_0x3cbe95(0x0,_0x49d30a[_0x209063(0x4c5)]),_0x3cbe95(0x1,_0x40dd84['IRenderManagerService']),_0x3cbe95(0x2,_0x510035[_0x209063(0x239)]),_0x3cbe95(0x3,_0x49d30a[_0x209063(0x31b)]),_0x3cbe95(0x4,(0x0,_0x49d30a[_0x209063(0x47f)])(_0xceb6c3[_0x209063(0x300)])),_0x3cbe95(0x5,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x4fc7b5))],_0x2d94be);let _0x4ac129={'normal':{'fill':_0x5b6709[_0x209063(0x389)]['cxnPointFill'],'stroke':_0x5b6709[_0x209063(0x389)][_0x209063(0x210)],'strokeWidth':_0x5b6709[_0x209063(0x389)]['cxnPointStrokeWidth']},'highlighted':{'fill':_0x209063(0x3cb),'stroke':_0x209063(0x28a),'strokeWidth':0x2}};var _0x29516a=class extends _0x40dd84['Shape']{constructor(_0xe536b8,_0x3365bc){const _0x137731=_0x209063;super(_0xe536b8,_0x3365bc),_0x28368a(this,'_targetShapeId',''),_0x28368a(this,_0x137731(0x3d7),-0x1),_0x28368a(this,_0x137731(0x30e),''),_0x28368a(this,_0x137731(0x489),''),_0x28368a(this,_0x137731(0x3d4),!0x1),_0x3365bc&&this[_0x137731(0x215)](_0x3365bc);}[_0x209063(0x324)](){const _0xd3b465=_0x209063;return{'unitId':this[_0xd3b465(0x30e)],'subUnitId':this[_0xd3b465(0x489)],'shapeId':this[_0xd3b465(0x459)],'cxnIndex':this['_cxnIndex']};}[_0x209063(0x2d5)](_0x18eb0a){const _0x100b37=_0x209063;this[_0x100b37(0x3d4)]!==_0x18eb0a&&(this[_0x100b37(0x3d4)]=_0x18eb0a,this[_0x100b37(0x25d)](!0x0));}[_0x209063(0x3ca)](){const _0x2a7898=_0x209063;return this[_0x2a7898(0x3d4)];}[_0x209063(0x215)](_0x22d364){const _0x27a5f3=_0x209063;var _0x2288bc,_0x2d9c57;_0x22d364[_0x27a5f3(0x394)]!==void 0x0&&(this[_0x27a5f3(0x459)]=_0x22d364['targetShapeId']),_0x22d364[_0x27a5f3(0x499)]!==void 0x0&&(this[_0x27a5f3(0x3d7)]=_0x22d364[_0x27a5f3(0x499)]),_0x22d364['unitId']!==void 0x0&&(this[_0x27a5f3(0x30e)]=_0x22d364[_0x27a5f3(0x441)]),_0x22d364['subUnitId']!==void 0x0&&(this[_0x27a5f3(0x489)]=_0x22d364['subUnitId']),_0x22d364['isHighlighted']!==void 0x0&&(this[_0x27a5f3(0x3d4)]=_0x22d364[_0x27a5f3(0x3ca)]),this[_0x27a5f3(0x462)]({'width':(_0x2288bc=_0x22d364[_0x27a5f3(0x3bb)])==null?_0x5b6709['ShapeDefaultConfig'][_0x27a5f3(0x1f6)]*0x2:_0x2288bc,'height':(_0x2d9c57=_0x22d364[_0x27a5f3(0x498)])==null?_0x5b6709[_0x27a5f3(0x389)]['cxnPointRadius']*0x2:_0x2d9c57});}[_0x209063(0x2a9)](_0x71c0f6){const _0x34c0d0=_0x209063;let _0x5055d4=this['_isHighlighted']?_0x4ac129[_0x34c0d0(0x414)]:_0x4ac129['normal'];_0x40dd84[_0x34c0d0(0x3f8)]['drawWith'](_0x71c0f6,{'radius':_0x5b6709[_0x34c0d0(0x389)]['cxnPointRadius'],'fill':_0x5055d4[_0x34c0d0(0x3b7)],'stroke':_0x5055d4['stroke'],'strokeWidth':_0x5055d4[_0x34c0d0(0x48f)],'evented':!0x0});}};let _0x2b6d77=class extends _0x49d30a['Disposable']{constructor(_0x2f2c58,_0x56b36e,_0x2f1c38,_0x4abc1f){const _0x254f62=_0x209063;super(),this[_0x254f62(0x22e)]=_0x2f2c58,this['_renderManagerService']=_0x56b36e,this[_0x254f62(0x4e5)]=_0x2f1c38,this['_sheetsShapeService']=_0x4abc1f,_0x28368a(this,_0x254f62(0x265),[]),_0x28368a(this,_0x254f62(0x234),null),_0x28368a(this,_0x254f62(0x4ed),-0x1),_0x28368a(this,'_currentScene',null),_0x28368a(this,_0x254f62(0x30e),''),_0x28368a(this,_0x254f62(0x489),''),_0x28368a(this,_0x254f62(0x4f2),null);}[_0x209063(0x3b0)](_0xc35e58,_0x29127b,_0x536b4e,_0x38af96){const _0x2a9c7a=_0x209063;this[_0x2a9c7a(0x21a)]=_0xc35e58,this[_0x2a9c7a(0x30e)]=_0x29127b,this[_0x2a9c7a(0x489)]=_0x536b4e,this[_0x2a9c7a(0x4f2)]=_0x38af96;}[_0x209063(0x3fa)](_0x40da7b){const _0x252ceb=_0x209063;if(!this['_currentScene'])return null;let _0x2788a4=this[_0x252ceb(0x2d6)](_0x40da7b);return _0x2788a4?(this[_0x252ceb(0x234)]!==_0x2788a4[_0x252ceb(0x3dc)]&&(this[_0x252ceb(0x3ab)](),this['_showConnectionSites'](_0x2788a4[_0x252ceb(0x3dc)],_0x2788a4['shapeModel']),this[_0x252ceb(0x234)]=_0x2788a4['shapeId']),this[_0x252ceb(0x4e4)](_0x40da7b)):(this[_0x252ceb(0x234)]!==null&&(this[_0x252ceb(0x3ab)](),this['_activeTargetShapeId']=null),null);}[_0x209063(0x4ec)](){const _0x40ca17=_0x209063;this[_0x40ca17(0x3ab)](),this[_0x40ca17(0x21a)]=null,this['_activeTargetShapeId']=null,this[_0x40ca17(0x4ed)]=-0x1,this['_draggingConnectorId']=null;}[_0x209063(0x3a1)](){const _0x31d899=_0x209063;return this[_0x31d899(0x234)]===null||this[_0x31d899(0x4ed)]<0x0?null:{'shapeId':this[_0x31d899(0x234)],'cxnIndex':this['_highlightedSiteIndex']};}[_0x209063(0x2d6)](_0xf26251){const _0x513214=_0x209063;let _0x3e0b6a=this[_0x513214(0x4e5)][_0x513214(0x2fd)](this['_unitId'],this['_subUnitId']);for(let _0x39a9a4 of Object[_0x513214(0x1ea)](_0x3e0b6a)){if(_0x39a9a4===this[_0x513214(0x4f2)]||_0x3e0b6a[_0x39a9a4][_0x513214(0x3e8)]!==_0x49d30a[_0x513214(0x365)][_0x513214(0x4fe)])continue;let _0x31c511=this[_0x513214(0x488)]['getShapeModel'](this[_0x513214(0x30e)],this[_0x513214(0x489)],_0x39a9a4);if(!_0x31c511||(0x0,_0x5b6709['isConnectorShape'])(_0x31c511['getShapeType']())||_0x31c511[_0x513214(0x42e)]()['length']===0x0||!this['_currentScene'])continue;let _0x9ac74d=(0x0,_0x510035[_0x513214(0x3a8)])({'unitId':this[_0x513214(0x30e)],'subUnitId':this[_0x513214(0x489)],'drawingId':_0x39a9a4}),_0x4e7c62=this[_0x513214(0x21a)][_0x513214(0x22b)](_0x9ac74d);if(!_0x4e7c62)continue;let {left:_0x4b0829,top:_0x3603a5,width:_0x3b7641,height:_0x557b71}=_0x4e7c62[_0x513214(0x254)](),_0x55b89a=_0x4b0829+_0x3b7641/0x2,_0x5bc6a5=_0x3603a5+_0x557b71/0x2,_0x1222dd=_0x4e7c62[_0x513214(0x267)]['getMatrix'](),_0x38fb35=new _0x40dd84[(_0x513214(0x1d3))]([_0x1222dd[0x0],_0x1222dd[0x1],_0x1222dd[0x2],_0x1222dd[0x3],_0x55b89a,_0x5bc6a5]),_0x309228=_0x4e7c62['getParent'](),_0x60abb4=(_0x4e7c62[_0x513214(0x2ed)]&&(_0x309228==null?void 0x0:_0x309228[_0x513214(0x2ff)])===_0x40dd84[_0x513214(0x3ae)][_0x513214(0x4bf)]?_0x309228['ancestorTransform']['multiply'](_0x38fb35):_0x38fb35)[_0x513214(0x3c8)]()[_0x513214(0x400)](_0xf26251),_0x25c4ce=_0x3b7641/0x2,_0x5b11ae=_0x557b71/0x2;if(_0x60abb4['x']>=-_0x25c4ce-0x5&&_0x60abb4['x']<=_0x25c4ce+0x5&&_0x60abb4['y']>=-_0x5b11ae-0x5&&_0x60abb4['y']<=_0x5b11ae+0x5)return{'shapeId':_0x39a9a4,'shapeModel':_0x31c511};}return null;}[_0x209063(0x34a)](_0x16f1fb,_0x52f5da){const _0x485bbb=_0x209063;if(!this['_currentScene'])return;let _0x3bb534=(0x0,_0x510035[_0x485bbb(0x3a8)])({'unitId':this[_0x485bbb(0x30e)],'subUnitId':this['_subUnitId'],'drawingId':_0x16f1fb}),_0x2bfb0e=this['_currentScene'][_0x485bbb(0x22b)](_0x3bb534);if(!_0x2bfb0e)return;let {left:_0x26c30a,top:_0x59de61,width:_0x8d656,height:_0x580757}=_0x2bfb0e['getRealBound'](),_0x3e99fe=_0x26c30a+_0x8d656/0x2,_0x3e4a67=_0x59de61+_0x580757/0x2,_0x225862=_0x2bfb0e[_0x485bbb(0x267)]['getMatrix'](),_0x50e844=new _0x40dd84[(_0x485bbb(0x1d3))]([_0x225862[0x0],_0x225862[0x1],_0x225862[0x2],_0x225862[0x3],_0x3e99fe,_0x3e4a67]),_0x4c60a2=_0x2bfb0e[_0x485bbb(0x49d)](),_0x4ccdc0=_0x2bfb0e[_0x485bbb(0x2ed)]&&(_0x4c60a2==null?void 0x0:_0x4c60a2[_0x485bbb(0x2ff)])===_0x40dd84[_0x485bbb(0x3ae)][_0x485bbb(0x4bf)]?_0x4c60a2[_0x485bbb(0x2c6)]['multiply'](_0x50e844):_0x50e844;_0x52f5da[_0x485bbb(0x2c1)]({'width':_0x8d656,'height':_0x580757});let _0x273632=_0x52f5da['getConnectionSiteList']();for(let _0x19d144 of _0x273632){let _0x501a15=_0x19d144['x']-_0x8d656/0x2,_0x5b0207=_0x19d144['y']-_0x580757/0x2,_0x267320=_0x4ccdc0[_0x485bbb(0x400)]({'x':_0x501a15,'y':_0x5b0207}),_0xd863b=_0x267320['x'],_0x325180=_0x267320['y'],_0x5bd524=new _0x29516a(_0x485bbb(0x272)+_0x16f1fb+'-'+_0x19d144[_0x485bbb(0x1d9)],{'left':_0xd863b-_0x5b6709['ShapeDefaultConfig'][_0x485bbb(0x1f6)],'top':_0x325180-_0x5b6709[_0x485bbb(0x389)]['cxnPointRadius'],'targetShapeId':_0x16f1fb,'cxnIndex':_0x19d144[_0x485bbb(0x1d9)],'unitId':this[_0x485bbb(0x30e)],'subUnitId':this[_0x485bbb(0x489)],'width':_0x5b6709[_0x485bbb(0x389)][_0x485bbb(0x1f6)]*0x2,'height':_0x5b6709[_0x485bbb(0x389)][_0x485bbb(0x1f6)]*0x2,'zIndex':_0x40dd84[_0x485bbb(0x27f)]+0x2,'evented':!0x1});this[_0x485bbb(0x265)]['push'](_0x5bd524),this[_0x485bbb(0x21a)][_0x485bbb(0x1dd)](_0x5bd524,_0x40dd84[_0x485bbb(0x27f)]+0x2);}}[_0x209063(0x4e4)](_0x34b3a7){const _0x1aad81=_0x209063;let _0x58cb41=null,_0x951ca8=0x1/0x0,_0x342f53=null;for(let _0x2c3469 of this[_0x1aad81(0x265)]){let _0x1ea3a2=_0x2c3469[_0x1aad81(0x4d2)]+_0x5b6709[_0x1aad81(0x389)][_0x1aad81(0x1f6)],_0x5634ef=_0x2c3469['top']+_0x5b6709['ShapeDefaultConfig']['cxnPointRadius'],_0x222586=_0x34b3a7['x']-_0x1ea3a2,_0x107b66=_0x34b3a7['y']-_0x5634ef,_0x1c1053=Math['sqrt'](_0x222586*_0x222586+_0x107b66*_0x107b66);_0x1c1053<_0x951ca8&&(_0x951ca8=_0x1c1053,_0x58cb41=_0x2c3469,_0x342f53={'x':_0x1ea3a2,'y':_0x5634ef});}let _0x9fee74=_0x951ca8<=0xa&&_0x58cb41?_0x58cb41[_0x1aad81(0x324)]()['cxnIndex']:-0x1;if(_0x9fee74!==this[_0x1aad81(0x4ed)]){for(let _0x1499f6 of this['_connectionSiteObjects']){let _0x2518ac=_0x1499f6[_0x1aad81(0x324)]();_0x1499f6[_0x1aad81(0x2d5)](_0x2518ac[_0x1aad81(0x499)]===_0x9fee74);}this[_0x1aad81(0x4ed)]=_0x9fee74;}if(_0x951ca8<=0xa&&_0x58cb41&&_0x342f53){let _0x2cc85f=_0x58cb41[_0x1aad81(0x324)](),_0x4244dc=this[_0x1aad81(0x4fd)](_0x2cc85f[_0x1aad81(0x3dc)],_0x2cc85f['cxnIndex']);return{'shapeId':_0x2cc85f[_0x1aad81(0x3dc)],'cxnIndex':_0x2cc85f['cxnIndex'],'unitId':_0x2cc85f[_0x1aad81(0x441)],'subUnitId':_0x2cc85f[_0x1aad81(0x2fe)],'worldPoint':_0x342f53,'angle':_0x4244dc};}return null;}[_0x209063(0x4fd)](_0x4eaf48,_0x7718a0){const _0x1a4b00=_0x209063;let _0x25774c=this[_0x1a4b00(0x488)][_0x1a4b00(0x4b2)](this[_0x1a4b00(0x30e)],this[_0x1a4b00(0x489)],_0x4eaf48);if(!_0x25774c)return 0x0;let _0x2ef041=this[_0x1a4b00(0x4e5)][_0x1a4b00(0x20c)]({'unitId':this[_0x1a4b00(0x30e)],'subUnitId':this[_0x1a4b00(0x489)],'drawingId':_0x4eaf48});if(!(_0x2ef041!=null&&_0x2ef041[_0x1a4b00(0x267)]))return 0x0;let {width:_0x39482b=0x0,height:_0xd979d7=0x0,flipX:_0xf1f972=!0x1,flipY:_0x67e19c=!0x1}=_0x2ef041['transform'];_0x25774c[_0x1a4b00(0x2c1)]({'width':_0x39482b,'height':_0xd979d7});let _0x23128b=_0x25774c[_0x1a4b00(0x42e)]()[_0x1a4b00(0x2bd)](_0x4f6b68=>_0x4f6b68[_0x1a4b00(0x1d9)]===_0x7718a0);if(!_0x23128b)return 0x0;let _0x1c1108=_0x23128b['ang']/0xea60;return _0xf1f972&&(_0x1c1108=0xb4-_0x1c1108),_0x67e19c&&(_0x1c1108=-_0x1c1108),_0x1c1108=(_0x1c1108%0x168+0x168)%0x168,_0x1c1108;}['_clearConnectionSites'](){const _0x10d782=_0x209063;for(let _0x4584b5 of this[_0x10d782(0x265)])_0x4584b5['dispose']();this['_connectionSiteObjects']=[],this[_0x10d782(0x4ed)]=-0x1;}[_0x209063(0x46a)](){this['_clearConnectionSites'](),super['dispose']();}};_0x2b6d77=_0x276893([_0x3cbe95(0x1,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x40dd84[_0x209063(0x2ba)])),_0x3cbe95(0x2,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x510035[_0x209063(0x239)])),_0x3cbe95(0x3,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x4eb2ab['SheetsShapeService']))],_0x2b6d77);let _0x21fb53=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(_0x1c52d6,_0x2615cb,_0x2f5f47,_0x577cd4,_0x1cb9c0){const _0x22fc0a=_0x209063;super(),this[_0x22fc0a(0x339)]=_0x1c52d6,this[_0x22fc0a(0x4e9)]=_0x2615cb,this[_0x22fc0a(0x43c)]=_0x2f5f47,this['_shapeService']=_0x577cd4,this[_0x22fc0a(0x29a)]=_0x1cb9c0,_0x28368a(this,'_copyInfo',void 0x0),this[_0x22fc0a(0x1da)](),this[_0x22fc0a(0x423)]();}get[_0x209063(0x29e)](){const _0x57e8dd=_0x209063;return this[_0x57e8dd(0x43c)]['getFocusDrawings']();}[_0x209063(0x423)](){const _0x3dda24=_0x209063;this[_0x3dda24(0x29a)][_0x3dda24(0x2c3)](({fromUnitId:_0x53d3c0,fromSubUnitId:_0x36095f,toUnitId:_0x22dc11,toSubUnitId:_0x56e4e5,idMap:_0x2e48a3})=>{const _0x5906f8=_0x3dda24;let _0x17a6c1=[],_0x5bf72c=[];for(let [_0x3d1d84,_0x5aae3e]of _0x2e48a3[_0x5906f8(0x4f3)]()){let _0x2c1ba3=this[_0x5906f8(0x1e5)]['getShapeModel'](_0x53d3c0,_0x36095f,_0x3d1d84);if(!_0x2c1ba3)continue;let _0x41ed4c=_0x2c1ba3[_0x5906f8(0x4b0)](),_0x463378=JSON[_0x5906f8(0x1e8)](JSON[_0x5906f8(0x3f0)](_0x2c1ba3[_0x5906f8(0x224)]()));if(_0x463378[_0x5906f8(0x43e)]){var _0x1a30e7,_0x49d591;let _0x4e833f=(_0x1a30e7=_0x463378[_0x5906f8(0x43e)][_0x5906f8(0x44e)])==null?void 0x0:_0x1a30e7['shapeId'],_0x1ce2af=(_0x49d591=_0x463378[_0x5906f8(0x43e)]['to'])==null?void 0x0:_0x49d591[_0x5906f8(0x3dc)],_0x3f6845=_0x4e833f?_0x2e48a3[_0x5906f8(0x38c)](_0x4e833f):!0x0,_0x2bc607=_0x1ce2af?_0x2e48a3[_0x5906f8(0x38c)](_0x1ce2af):!0x0;_0x3f6845&&_0x4e833f&&_0x463378[_0x5906f8(0x43e)][_0x5906f8(0x44e)]?_0x463378[_0x5906f8(0x43e)][_0x5906f8(0x44e)]={..._0x463378['relation']['from'],'shapeId':_0x2e48a3[_0x5906f8(0x4cd)](_0x4e833f)}:_0x463378[_0x5906f8(0x43e)]['from']=void 0x0,_0x2bc607&&_0x1ce2af&&_0x463378['relation']['to']?_0x463378[_0x5906f8(0x43e)]['to']={..._0x463378['relation']['to'],'shapeId':_0x2e48a3[_0x5906f8(0x4cd)](_0x1ce2af)}:_0x463378['relation']['to']=void 0x0;}_0x17a6c1['push']({'id':_0x4eb2ab[_0x5906f8(0x41b)]['id'],'params':{'unitId':_0x22dc11,'subUnitId':_0x56e4e5,'shapeId':_0x5aae3e,'shapeType':_0x41ed4c,'shapeData':_0x463378}}),_0x5bf72c['push']({'id':_0x4eb2ab[_0x5906f8(0x24e)]['id'],'params':{'unitId':_0x22dc11,'subUnitId':_0x56e4e5,'shapeId':_0x5aae3e}});}return{'redos':_0x17a6c1,'undos':_0x5bf72c};});}[_0x209063(0x1da)](){const _0x2867cf=_0x209063;this['disposeWithMe'](this[_0x2867cf(0x4e9)][_0x2867cf(0x28b)]({'id':_0x2867cf(0x3c1),'onBeforeCopy':(_0x2d7c8e,_0x56a097,_0x474b0a,_0x332a2e)=>{const _0x32448f=_0x2867cf;this[_0x32448f(0x39f)]=null;let _0x33b49a=this[_0x32448f(0x29e)];if(_0x33b49a[_0x32448f(0x28f)]){let _0x588a50=_0x33b49a[_0x32448f(0x3a4)](_0x5f4d02=>_0x5f4d02[_0x32448f(0x3e8)]===_0x49d30a[_0x32448f(0x365)][_0x32448f(0x4fe)]);if(_0x588a50[_0x32448f(0x28f)]===0x0)return;this[_0x32448f(0x39f)]={'unitId':_0x2d7c8e,'subUnitId':_0x56a097,'copyType':_0x332a2e,'drawings':_0x588a50};}else this[_0x32448f(0x341)](_0x2d7c8e,_0x56a097,_0x474b0a,_0x332a2e);},'onPasteCells':(_0x192012,_0x518005,_0x1c7ec0,_0x130b20)=>{const _0x241529=_0x2867cf;if(!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x54ccc0}=_0x130b20;return _0x54ccc0===_0x100e66[_0x241529(0x347)][_0x241529(0x1d8)]?this[_0x241529(0x23e)](_0x518005,this[_0x241529(0x39f)]['copyType']===_0x100e66['COPY_TYPE'][_0x241529(0x2ae)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x26e1f1=>this[_0x2867cf(0x39f)]?this[_0x2867cf(0x23e)](_0x26e1f1,this[_0x2867cf(0x39f)][_0x2867cf(0x481)]===_0x100e66[_0x2867cf(0x483)]['CUT']):{'redos':[],'undos':[]}}));}['_createCopyInfoByRange'](_0x1288ac,_0xdae729,_0x101ebc,_0x2deb80){const _0x4df269=_0x209063;let _0x5309f1=this['_sheetSkeletonService'][_0x4df269(0x2d9)](_0x1288ac,_0xdae729);if(!_0x5309f1)return;let _0xe5727f=(0x0,_0x4fbea5[_0x4df269(0x4a3)])(_0x5309f1,_0x101ebc);if(!_0xe5727f)return;let {startX:_0x2e44b8,endX:_0x278bdb,startY:_0x37ab30,endY:_0x3e51e0}=_0xe5727f,_0x414357=this[_0x4df269(0x43c)]['getDrawingData'](_0x1288ac,_0xdae729),_0x1a5d1c=this[_0x4df269(0x29e)][_0x4df269(0x331)]();for(let [_0x29065c,_0x26c01a]of Object[_0x4df269(0x4f3)](_0x414357)){if(_0x26c01a['drawingType']!==_0x49d30a[_0x4df269(0x365)]['DRAWING_SHAPE'])continue;let {transform:_0x3a6ba5}=_0x26c01a;if(!_0x3a6ba5)continue;let {left:_0x331a64=0x0,top:_0x30348f=0x0,width:_0x441aea=0x0,height:_0x16f1b8=0x0}=_0x3a6ba5;_0x2e44b8<=_0x331a64&&_0x278bdb>=_0x331a64+_0x441aea&&_0x37ab30<=_0x30348f&&_0x3e51e0>=_0x30348f+_0x16f1b8&&_0x1a5d1c[_0x4df269(0x3ed)](_0x26c01a);}_0x1a5d1c[_0x4df269(0x28f)]>0x0&&(this[_0x4df269(0x39f)]={'unitId':_0x1288ac,'subUnitId':_0xdae729,'copyType':_0x2deb80,'copyRange':_0x101ebc,'drawings':_0x1a5d1c});}['_generatePasteMutations'](_0x5ed899,_0x2bef61){const _0x30902e=_0x209063;let {unitId:_0x1186ae,subUnitId:_0xb7c407,range:_0x39e8df}=_0x5ed899,_0x4eefe2=this[_0x30902e(0x339)][_0x30902e(0x2d9)](_0x1186ae,_0xb7c407);if(!_0x4eefe2)return{'redos':[],'undos':[]};let _0x5685e9=(0x0,_0x4fbea5[_0x30902e(0x338)])(_0x39e8df),{unitId:_0x152b3f,subUnitId:_0x508b89,copyRange:_0x2815ff,drawings:_0x33fb12}=this['_copyInfo'],_0x486008=this[_0x30902e(0x339)]['getSkeleton'](_0x152b3f,_0x508b89);if(!_0x486008)return{'redos':[],'undos':[]};let _0x228275;if(!_0x2815ff){let _0x345bf0=0x1/0x0,_0x3cfb0a=0x1/0x0;for(let _0x2a1e83 of _0x33fb12){var _0x1cd4d2;let {left:_0x2d46a4=0x0,top:_0x25da83=0x0}=(_0x1cd4d2=_0x2a1e83['transform'])==null?{}:_0x1cd4d2;_0x2d46a4<_0x345bf0&&(_0x345bf0=_0x2d46a4),_0x25da83<_0x3cfb0a&&(_0x3cfb0a=_0x25da83);}_0x345bf0!==0x1/0x0&&_0x3cfb0a!==0x1/0x0&&(_0x228275={'left':_0x345bf0,'top':_0x3cfb0a});}let _0x36a104=new Map();if(!_0x2bef61){for(let _0x1b2b0d of _0x33fb12)_0x36a104[_0x30902e(0x402)](_0x1b2b0d[_0x30902e(0x2e9)],(0x0,_0x49d30a[_0x30902e(0x20b)])());}let _0x1af55=[],_0xb9d9a4=[];for(let _0x1d58a5 of _0x33fb12){let {drawingId:_0x3315f9,transform:_0x28d1a2,sheetTransform:_0x535a62}=_0x1d58a5;if(!_0x28d1a2||!_0x535a62)continue;let _0x46ea8d=this[_0x30902e(0x48d)]({'transform':_0x28d1a2,'sheetTransform':_0x535a62},{'skeleton':_0x486008,'range':_0x2815ff},{'skeleton':_0x4eefe2,'range':_0x5685e9},_0x228275);if(_0x2bef61){let {redos:_0x414255,undos:_0x8331f6}=this[_0x30902e(0x2f2)]({'fromUnitId':_0x152b3f,'fromSubUnitId':_0x508b89,'toUnitId':_0x1186ae,'toSubUnitId':_0xb7c407,'drawing':_0x1d58a5,'newTransforms':_0x46ea8d});_0x1af55[_0x30902e(0x3ed)](..._0x414255),_0xb9d9a4['push'](..._0x8331f6);continue;}let {redos:_0x31c8f8,undos:_0x5cc480}=this[_0x30902e(0x204)]({'toUnitId':_0x1186ae,'toSubUnitId':_0xb7c407,'drawing':_0x1d58a5,'newTransforms':_0x46ea8d,'newDrawingId':_0x36a104[_0x30902e(0x4cd)](_0x3315f9),'idMap':_0x36a104});_0x1af55[_0x30902e(0x3ed)](..._0x31c8f8),_0xb9d9a4[_0x30902e(0x3ed)](..._0x5cc480);}return{'redos':_0x1af55,'undos':_0xb9d9a4};}[_0x209063(0x2f2)](_0x108a3a){const _0x5a4df6=_0x209063;let {fromUnitId:_0x2ea90c,fromSubUnitId:_0x33ecc1,toUnitId:_0x4f1713,toSubUnitId:_0x530deb,drawing:_0x2e411d,newTransforms:_0xb29a2c}=_0x108a3a,_0x73201a={..._0x2e411d,'unitId':_0x4f1713,'subUnitId':_0x530deb,'transform':_0xb29a2c[_0x5a4df6(0x267)],'sheetTransform':_0xb29a2c[_0x5a4df6(0x40b)]};if(_0x4f1713===_0x2ea90c&&_0x530deb===_0x33ecc1){let {redo:_0x53e3d8,undo:_0x423a52,objects:_0x1cc29b}=this[_0x5a4df6(0x43c)][_0x5a4df6(0x2f1)]([_0x73201a]);return{'redos':[{'id':_0x28a390[_0x5a4df6(0x326)]['id'],'params':{'unitId':_0x4f1713,'subUnitId':_0x530deb,'type':_0x28a390[_0x5a4df6(0x3e9)][_0x5a4df6(0x476)],'op':_0x53e3d8,'objects':_0x1cc29b}}],'undos':[{'id':_0x28a390[_0x5a4df6(0x326)]['id'],'params':{'unitId':_0x4f1713,'subUnitId':_0x530deb,'type':_0x28a390[_0x5a4df6(0x3e9)][_0x5a4df6(0x476)],'op':_0x423a52,'objects':_0x1cc29b}}]};}else{let _0x4bec4c=this['_sheetDrawingService']['getBatchRemoveOp']([_0x2e411d]),_0x4d91fd=this[_0x5a4df6(0x43c)][_0x5a4df6(0x393)]([_0x73201a]),_0x518bd6=this['_shapeService'][_0x5a4df6(0x4b2)](_0x2e411d[_0x5a4df6(0x441)],_0x2e411d['subUnitId'],_0x2e411d[_0x5a4df6(0x2e9)]);if(!_0x518bd6)return{'redos':[],'undos':[]};let _0x3110a9=_0x518bd6['getShapeType'](),_0x52a910=JSON[_0x5a4df6(0x1e8)](JSON[_0x5a4df6(0x3f0)](_0x518bd6['getShapeData']()));return{'redos':[{'id':_0x28a390['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2ea90c,'subUnitId':_0x33ecc1,'type':_0x28a390[_0x5a4df6(0x3e9)][_0x5a4df6(0x361)],'op':_0x4bec4c[_0x5a4df6(0x43a)],'objects':_0x4bec4c[_0x5a4df6(0x48b)]}},{'id':_0x4eb2ab[_0x5a4df6(0x24e)]['id'],'params':{'unitId':_0x2ea90c,'subUnitId':_0x33ecc1,'shapeId':_0x2e411d[_0x5a4df6(0x2e9)]}},{'id':_0x28a390[_0x5a4df6(0x326)]['id'],'params':{'unitId':_0x4f1713,'subUnitId':_0x530deb,'type':_0x28a390[_0x5a4df6(0x3e9)][_0x5a4df6(0x25e)],'op':_0x4d91fd[_0x5a4df6(0x43a)],'objects':_0x4d91fd[_0x5a4df6(0x48b)]}},{'id':_0x4eb2ab[_0x5a4df6(0x41b)]['id'],'params':{'unitId':_0x4f1713,'subUnitId':_0x530deb,'shapeId':_0x2e411d[_0x5a4df6(0x2e9)],'shapeType':_0x3110a9,'shapeData':_0x52a910}}],'undos':[{'id':_0x28a390[_0x5a4df6(0x326)]['id'],'params':{'unitId':_0x2ea90c,'subUnitId':_0x33ecc1,'type':_0x28a390[_0x5a4df6(0x3e9)][_0x5a4df6(0x25e)],'op':_0x4bec4c[_0x5a4df6(0x23c)],'objects':_0x4bec4c[_0x5a4df6(0x48b)]}},{'id':_0x4eb2ab['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x2ea90c,'subUnitId':_0x33ecc1,'shapeId':_0x2e411d['drawingId'],'shapeType':_0x3110a9,'shapeData':_0x52a910}},{'id':_0x28a390[_0x5a4df6(0x326)]['id'],'params':{'unitId':_0x4f1713,'subUnitId':_0x530deb,'type':_0x28a390[_0x5a4df6(0x3e9)]['REMOVE'],'op':_0x4d91fd[_0x5a4df6(0x23c)],'objects':_0x4d91fd[_0x5a4df6(0x48b)]}},{'id':_0x4eb2ab[_0x5a4df6(0x24e)]['id'],'params':{'unitId':_0x4f1713,'subUnitId':_0x530deb,'shapeId':_0x2e411d['drawingId']}}]};}}[_0x209063(0x204)](_0x18f160){const _0x38f9ef=_0x209063;let {toUnitId:_0xefbf7b,toSubUnitId:_0x37d4c0,drawing:_0x7d8fca,newTransforms:_0x57d227,newDrawingId:_0x274160,idMap:_0x3f2e2f}=_0x18f160,_0x15ef32={..._0x7d8fca,'unitId':_0xefbf7b,'subUnitId':_0x37d4c0,'drawingId':_0x274160,'transform':_0x57d227[_0x38f9ef(0x267)],'sheetTransform':_0x57d227[_0x38f9ef(0x40b)]},{redo:_0x591bac,undo:_0x2dc3a9,objects:_0x68813c}=this[_0x38f9ef(0x43c)][_0x38f9ef(0x393)]([_0x15ef32]),_0x2563e5=this[_0x38f9ef(0x1e5)][_0x38f9ef(0x4b2)](_0x7d8fca[_0x38f9ef(0x441)],_0x7d8fca['subUnitId'],_0x7d8fca['drawingId']);if(!_0x2563e5)return{'redos':[],'undos':[]};let _0xc36bf1=_0x2563e5[_0x38f9ef(0x4b0)](),_0x24c612=JSON[_0x38f9ef(0x1e8)](JSON['stringify'](_0x2563e5['getShapeData']()));if(_0x24c612[_0x38f9ef(0x43e)]){var _0x7156ca,_0x3b4d62;let _0x195ad0=(_0x7156ca=_0x24c612['relation']['from'])==null?void 0x0:_0x7156ca[_0x38f9ef(0x3dc)],_0x4d262f=(_0x3b4d62=_0x24c612[_0x38f9ef(0x43e)]['to'])==null?void 0x0:_0x3b4d62[_0x38f9ef(0x3dc)],_0x45929e=_0x195ad0?_0x3f2e2f[_0x38f9ef(0x38c)](_0x195ad0):!0x0,_0x5398e8=_0x4d262f?_0x3f2e2f['has'](_0x4d262f):!0x0;_0x45929e&&_0x195ad0&&_0x24c612['relation'][_0x38f9ef(0x44e)]?_0x24c612[_0x38f9ef(0x43e)]['from']={..._0x24c612[_0x38f9ef(0x43e)][_0x38f9ef(0x44e)],'shapeId':_0x3f2e2f['get'](_0x195ad0)}:_0x24c612['relation'][_0x38f9ef(0x44e)]=void 0x0,_0x5398e8&&_0x4d262f&&_0x24c612[_0x38f9ef(0x43e)]['to']?_0x24c612[_0x38f9ef(0x43e)]['to']={..._0x24c612['relation']['to'],'shapeId':_0x3f2e2f['get'](_0x4d262f)}:_0x24c612[_0x38f9ef(0x43e)]['to']=void 0x0;}return{'redos':[{'id':_0x28a390['SetDrawingApplyMutation']['id'],'params':{'unitId':_0xefbf7b,'subUnitId':_0x37d4c0,'type':_0x28a390[_0x38f9ef(0x3e9)][_0x38f9ef(0x25e)],'op':_0x591bac,'objects':_0x68813c}},{'id':_0x4eb2ab[_0x38f9ef(0x41b)]['id'],'params':{'unitId':_0xefbf7b,'subUnitId':_0x37d4c0,'shapeId':_0x274160,'shapeType':_0xc36bf1,'shapeData':_0x24c612}}],'undos':[{'id':_0x28a390['SetDrawingApplyMutation']['id'],'params':{'unitId':_0xefbf7b,'subUnitId':_0x37d4c0,'type':_0x28a390[_0x38f9ef(0x3e9)][_0x38f9ef(0x361)],'op':_0x2dc3a9,'objects':_0x68813c}},{'id':_0x4eb2ab['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0xefbf7b,'subUnitId':_0x37d4c0,'shapeId':_0x274160}}]};}[_0x209063(0x48d)](_0x1396f7,_0x4567c5,_0x5f9d92,_0x39c316){const _0x65abd0=_0x209063;var _0x41dbd6;let {range:_0x5784dc,skeleton:_0x2bf73b}=_0x4567c5,{range:_0x2f2b68,skeleton:_0x5b3407}=_0x5f9d92,{transform:_0x76c4bd,sheetTransform:_0x26665c}=_0x1396f7,_0x336aa7={..._0x76c4bd};if(_0x5784dc){let _0x4d6cc0=(0x0,_0x4fbea5['attachRangeWithCoord'])(_0x2bf73b,_0x5784dc),_0x354173=(0x0,_0x4fbea5[_0x65abd0(0x4a3)])(_0x5b3407,_0x2f2b68);if(_0x4d6cc0&&_0x354173){var _0x40b25a,_0x765318;let _0x32f1f6=_0x354173[_0x65abd0(0x2a5)]-_0x4d6cc0[_0x65abd0(0x2a5)],_0x3dc670=_0x354173[_0x65abd0(0x1fa)]-_0x4d6cc0[_0x65abd0(0x1fa)];_0x336aa7[_0x65abd0(0x4d2)]=((_0x40b25a=_0x336aa7['left'])==null?0x0:_0x40b25a)+_0x32f1f6,_0x336aa7['top']=((_0x765318=_0x336aa7['top'])==null?0x0:_0x765318)+_0x3dc670;}}else{let _0x194c59=(0x0,_0x4fbea5[_0x65abd0(0x4a3)])(_0x5b3407,_0x2f2b68);if(_0x39c316&&_0x194c59){var _0x45c96c,_0x2a28da;let _0x392fb2=((_0x45c96c=_0x336aa7['left'])==null?0x0:_0x45c96c)-_0x39c316[_0x65abd0(0x4d2)],_0x1754da=((_0x2a28da=_0x336aa7[_0x65abd0(0x25a)])==null?0x0:_0x2a28da)-_0x39c316[_0x65abd0(0x25a)];_0x336aa7[_0x65abd0(0x4d2)]=_0x194c59['startX']+_0x392fb2,_0x336aa7[_0x65abd0(0x25a)]=_0x194c59[_0x65abd0(0x1fa)]+_0x1754da;}else _0x336aa7[_0x65abd0(0x4d2)]=_0x194c59==null?void 0x0:_0x194c59['startX'],_0x336aa7[_0x65abd0(0x25a)]=_0x194c59==null?void 0x0:_0x194c59[_0x65abd0(0x1fa)];}return{'transform':_0x336aa7,'sheetTransform':(_0x41dbd6=(0x0,_0x28a390[_0x65abd0(0x34b)])(_0x336aa7,_0x5b3407))==null?_0x26665c:_0x41dbd6};}};_0x21fb53=_0x276893([_0x3cbe95(0x0,(0x0,_0x49d30a['Inject'])(_0x4fbea5[_0x209063(0x458)])),_0x3cbe95(0x1,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x100e66[_0x209063(0x34d)])),_0x3cbe95(0x2,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x28a390[_0x209063(0x2b8)])),_0x3cbe95(0x3,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x4eb2ab[_0x209063(0x264)])),_0x3cbe95(0x4,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x4c7223['SheetsDrawingGroupCopyPasteController']))],_0x21fb53);var _0x41f573=class extends _0x40dd84[_0x209063(0x492)]{constructor(_0x270ede,_0x50361f){const _0x41a691=_0x209063;super(_0x270ede,_0x50361f),_0x28368a(this,_0x41a691(0x28e),null),_0x28368a(this,_0x41a691(0x472),null),_0x28368a(this,'_unitId',null),_0x28368a(this,_0x41a691(0x489),null),_0x28368a(this,_0x41a691(0x426),!0x1),_0x50361f&&this[_0x41a691(0x215)](_0x50361f);}[_0x209063(0x36c)](){const _0x1a07f6=_0x209063;return{'unitId':this[_0x1a07f6(0x30e)],'subUnitId':this[_0x1a07f6(0x489)],'drawingId':this['_shapeId']};}[_0x209063(0x215)](_0x91ef7){const _0x46f4a1=_0x209063;_0x91ef7[_0x46f4a1(0x3dc)]!==void 0x0&&(this[_0x46f4a1(0x28e)]=_0x91ef7[_0x46f4a1(0x3dc)]),_0x91ef7[_0x46f4a1(0x441)]!==void 0x0&&(this['_unitId']=_0x91ef7[_0x46f4a1(0x441)]),_0x91ef7[_0x46f4a1(0x2fe)]!==void 0x0&&(this[_0x46f4a1(0x489)]=_0x91ef7[_0x46f4a1(0x2fe)]),_0x91ef7['isStartConnectorPoint']!==void 0x0&&(this[_0x46f4a1(0x426)]=_0x91ef7['isStartConnectorPoint']),this[_0x46f4a1(0x462)]({'width':_0x91ef7['width'],'height':_0x91ef7[_0x46f4a1(0x498)]});}[_0x209063(0x2a9)](_0x1a8148){const _0x49afc6=_0x209063;_0x40dd84[_0x49afc6(0x3f8)][_0x49afc6(0x3c4)](_0x1a8148,{'radius':_0x5b6709[_0x49afc6(0x389)][_0x49afc6(0x1f6)],'fill':_0x5b6709[_0x49afc6(0x389)]['cxnPointFill'],'stroke':_0x5b6709[_0x49afc6(0x389)][_0x49afc6(0x210)],'strokeWidth':_0x5b6709[_0x49afc6(0x389)]['cxnPointStrokeWidth'],'evented':!0x0});}};let _0x38186c=class extends _0x49d30a['Disposable']{constructor(_0xe21a56,_0x5a68cf,_0x4f9b1c,_0x246d8f,_0x4b1314,_0xdbe337,_0x1c9f10,_0x1c12f6){const _0x2f60c9=_0x209063;super(),this['_context']=_0xe21a56,this[_0x2f60c9(0x240)]=_0x5a68cf,this['_renderManagerService']=_0x4f9b1c,this[_0x2f60c9(0x4e5)]=_0x246d8f,this[_0x2f60c9(0x2be)]=_0x4b1314,this['_sheetsShapeService']=_0xdbe337,this[_0x2f60c9(0x418)]=_0x1c9f10,this[_0x2f60c9(0x4f5)]=_0x1c12f6,_0x28368a(this,_0x2f60c9(0x39d),void 0x0),_0x28368a(this,_0x2f60c9(0x30e),void 0x0),_0x28368a(this,_0x2f60c9(0x489),void 0x0),_0x28368a(this,_0x2f60c9(0x4d6),[]),_0x28368a(this,_0x2f60c9(0x237),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),_0x28368a(this,_0x2f60c9(0x23a),void 0x0),_0x28368a(this,_0x2f60c9(0x42a),!0x1),_0x28368a(this,_0x2f60c9(0x48e),!0x1),_0x28368a(this,_0x2f60c9(0x24f),!0x1),_0x28368a(this,_0x2f60c9(0x282),void 0x0),_0x28368a(this,_0x2f60c9(0x4a0),void 0x0),_0x28368a(this,_0x2f60c9(0x374),null),this['_initialize']();}['_initialize'](){const _0x1da66d=_0x209063;this[_0x1da66d(0x453)](),this[_0x1da66d(0x474)]();}[_0x209063(0x4b1)](){const _0x46da30=_0x209063;if(!this[_0x46da30(0x30e)]||!this[_0x46da30(0x489)]||!this[_0x46da30(0x39d)])return;let _0x2c7914={'unitId':this[_0x46da30(0x30e)],'subUnitId':this[_0x46da30(0x489)],'drawingId':this[_0x46da30(0x39d)]},{transform:_0xa9adab}=this['_drawingManagerService']['getDrawingByParam'](_0x2c7914);if(_0xa9adab)return{'left':_0xa9adab['left']||0x0,'top':_0xa9adab[_0x46da30(0x25a)]||0x0,'width':_0xa9adab[_0x46da30(0x3bb)]||0x0,'height':_0xa9adab['height']||0x0,'flipX':_0xa9adab['flipX']||!0x1,'flipY':_0xa9adab[_0x46da30(0x351)]||!0x1,'angle':_0xa9adab[_0x46da30(0x43d)]};}[_0x209063(0x33e)](){const _0x4c8dfe=_0x209063;if(this[_0x4c8dfe(0x30e)]===void 0x0||this[_0x4c8dfe(0x489)]===void 0x0||this[_0x4c8dfe(0x39d)]===void 0x0)return;let _0x3d81a5=this[_0x4c8dfe(0x40d)]['getRenderById'](this['_unitId']);if(!_0x3d81a5||!_0x3d81a5['with'](_0x100e66[_0x4c8dfe(0x242)])[_0x4c8dfe(0x238)]())return;let {scene:_0x22c340}=_0x3d81a5,_0xb760c5=this[_0x4c8dfe(0x4b1)]();if(!_0xb760c5)return;let _0x3ba3c8=this[_0x4c8dfe(0x488)][_0x4c8dfe(0x4b2)](this[_0x4c8dfe(0x30e)],this[_0x4c8dfe(0x489)],this['_activeShapeId']);if(!_0x3ba3c8||!(0x0,_0x5b6709[_0x4c8dfe(0x3b5)])(_0x3ba3c8[_0x4c8dfe(0x4b0)]()))return;let _0x393dc4=_0x3ba3c8[_0x4c8dfe(0x436)]();if(_0x393dc4['length']<0x2)return;let _0x236856=new _0x5b6709['ConnectorCoordinateTransform'](_0xb760c5),_0x6b0a19=_0x393dc4[0x0],_0x36b281=_0x393dc4[_0x393dc4['length']-0x1],_0x5d3300=_0x236856[_0x4c8dfe(0x2b1)](_0x6b0a19),_0x9b0fa3=_0x236856[_0x4c8dfe(0x2b1)](_0x36b281);this[_0x4c8dfe(0x2b0)](_0x22c340,{..._0x5d3300},!0x0),this[_0x4c8dfe(0x2b0)](_0x22c340,{..._0x9b0fa3},!0x1);}['_addShapeConnectorHandlerObject'](_0x1e2f1c,_0x34cb95,_0x1f2800){const _0x370dc7=_0x209063;if(this['_activeShapeId']===void 0x0||this['_unitId']===void 0x0||this['_subUnitId']===void 0x0)return;let _0x38ca39='connector-handler-'+this[_0x370dc7(0x30e)]+'-'+this['_subUnitId']+'-'+this['_activeShapeId']+'-'+(_0x1f2800?_0x370dc7(0x1e2):_0x370dc7(0x23d)),_0x57a8f8=_0x1e2f1c[_0x370dc7(0x22b)](_0x38ca39);if(_0x57a8f8){_0x57a8f8[_0x370dc7(0x462)]({'left':_0x34cb95['x']-_0x5b6709['ShapeDefaultConfig'][_0x370dc7(0x1f6)],'top':_0x34cb95['y']-_0x5b6709[_0x370dc7(0x389)][_0x370dc7(0x1f6)]});return;}let _0x3a53e1=new _0x41f573(_0x38ca39,{'left':_0x34cb95['x']-_0x5b6709[_0x370dc7(0x389)][_0x370dc7(0x1f6)],'top':_0x34cb95['y']-_0x5b6709[_0x370dc7(0x389)]['cxnPointRadius'],'shapeId':this[_0x370dc7(0x39d)],'unitId':this[_0x370dc7(0x30e)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x1f2800,'width':_0x5b6709[_0x370dc7(0x389)]['cxnPointRadius']*0x2,'height':_0x5b6709[_0x370dc7(0x389)][_0x370dc7(0x1f6)]*0x2,'zIndex':_0x40dd84[_0x370dc7(0x27f)]+0x1,'evented':!0x0});this[_0x370dc7(0x4d6)]['push'](_0x3a53e1),this[_0x370dc7(0x395)](_0x3a53e1,_0x1e2f1c,_0x1f2800),_0x1e2f1c['addObject'](_0x3a53e1,_0x40dd84[_0x370dc7(0x27f)]+0x1);}[_0x209063(0x2a8)](_0xabf570,_0x1d1988){const _0x10ed70=_0x209063;var _0x5166b2;let _0x4813f2={'x':0x0,'y':0x0};if(!_0xabf570||!_0x1d1988)return _0x4813f2;let _0x9a5c0b=this[_0x10ed70(0x40d)][_0x10ed70(0x2f7)](_0xabf570);if(!_0x9a5c0b||!_0x9a5c0b[_0x10ed70(0x451)](_0x100e66[_0x10ed70(0x242)])[_0x10ed70(0x2d9)](_0x1d1988))return _0x4813f2;let _0x37072a=_0x9a5c0b[_0x10ed70(0x451)](_0x100e66[_0x10ed70(0x200)]),_0x25bfc5=_0x37072a==null?void 0x0:_0x37072a[_0x10ed70(0x373)]();if(!_0x25bfc5)return _0x4813f2;let _0x19ec87=(_0x5166b2=this['_univerInstanceService'][_0x10ed70(0x22d)](_0xabf570))==null?void 0x0:_0x5166b2['getSheetBySheetId'](_0x1d1988);if(!_0x19ec87)return _0x4813f2;let _0x354d16=(0x0,_0x100e66['getViewportByCell'])(_0x25bfc5[_0x10ed70(0x230)],_0x25bfc5[_0x10ed70(0x477)],_0x9a5c0b['scene'],_0x19ec87);return _0x354d16?{'x':_0x354d16[_0x10ed70(0x1db)],'y':_0x354d16['viewportScrollY']}:_0x4813f2;}['_getZoomRatio'](_0x3c5c7f,_0x2c6d2c){const _0x436da4=_0x209063;var _0x5cc0e4,_0x4ff64f;let _0xd5626c=(_0x5cc0e4=this[_0x436da4(0x2be)][_0x436da4(0x22d)](_0x3c5c7f))==null?void 0x0:_0x5cc0e4[_0x436da4(0x366)](_0x2c6d2c);return(_0x4ff64f=_0xd5626c==null?void 0x0:_0xd5626c[_0x436da4(0x350)]())==null?0x1:_0x4ff64f;}[_0x209063(0x21e)](_0xe0cd50,_0x1a4786,_0x1eab12,_0x4abe6d,_0x2552f3){const _0x2d2639=_0x209063;this['_cxtHandlerPointerMove'][_0x2d2639(0x27d)](),this[_0x2d2639(0x4a0)]['unsubscribe'](),this[_0x2d2639(0x418)]['refreshAdjustControls']();let _0x69a59c=this[_0x2d2639(0x374)];this['_sheetBasicShapeConnectionPointController'][_0x2d2639(0x4ec)]();let _0x4088ef=this[_0x2d2639(0x2a8)](this[_0x2d2639(0x30e)],this['_subUnitId']),_0x5918be=this[_0x2d2639(0x29c)](this[_0x2d2639(0x30e)],this[_0x2d2639(0x489)]),_0x3e3d6b={'x':_0x1eab12[_0x2d2639(0x2f6)]/_0x5918be+_0x4088ef['x'],'y':_0x1eab12['offsetY']/_0x5918be+_0x4088ef['y']},_0x5c686a=_0x69a59c?_0x69a59c['worldPoint']:_0x3e3d6b,_0x482d51=_0x4abe6d?this['_activeShapeModel'][_0x2d2639(0x1f5)]():this[_0x2d2639(0x23a)][_0x2d2639(0x4bd)](),_0x5b5519=this[_0x2d2639(0x23a)][_0x2d2639(0x4b0)]();_0x482d51?this['_handleConnectedEndpointPointerUp'](_0x482d51,_0x5c686a,_0x4abe6d,_0x69a59c,_0x2552f3):this[_0x2d2639(0x4e2)](_0x1a4786,_0x5c686a,_0x4abe6d,_0x69a59c,_0x2552f3,_0x5b5519),this[_0x2d2639(0x42a)]=!0x1,this[_0x2d2639(0x24f)]=!0x1,this[_0x2d2639(0x374)]=null,_0xe0cd50['enableObjectsEvent']();}[_0x209063(0x4e2)](_0x40ddf3,_0xa027f0,_0x4705f2,_0x37b166,_0x351fd7,_0x4e070e){const _0x2f1660=_0x209063;let _0x407216=_0x4e070e===_0x5b6709[_0x2f1660(0x297)][_0x2f1660(0x236)]||_0x4e070e===_0x5b6709['ShapeTypeEnum'][_0x2f1660(0x31a)],_0x12d659=_0x4705f2?_0xa027f0:_0x40ddf3,_0x590871=_0x4705f2?_0x40ddf3:_0xa027f0,_0x2f92ed=this['_activeShapeModel'][_0x2f1660(0x436)](),_0x531a10=(0x0,_0x5b6709[_0x2f1660(0x454)])(this[_0x2f1660(0x23a)][_0x2f1660(0x4b0)]()),_0x17ca1b=_0x5b6709[_0x2f1660(0x484)][_0x2f1660(0x311)](_0x2f92ed,_0x531a10),_0x99800c=_0x407216?_0x5b6709[_0x2f1660(0x484)][_0x2f1660(0x466)](_0x12d659,_0x590871):_0x5b6709[_0x2f1660(0x484)][_0x2f1660(0x34c)](_0x40ddf3,_0xa027f0,_0x4705f2,_0x17ca1b);_0x37b166?this[_0x2f1660(0x446)](_0x99800c,_0x37b166,_0x4705f2,_0x351fd7):this[_0x2f1660(0x47e)](_0x99800c,_0x351fd7);}['_handleConnectedEndpointPointerUp'](_0x2abb23,_0x139c9d,_0xad4732,_0x2ae8e0,_0x19233e){const _0x425ca6=_0x209063;let _0x39b7ec=this[_0x425ca6(0x244)](_0x2abb23);if(!_0x39b7ec)return;let _0x1a966f=_0x2ae8e0?_0x2ae8e0[_0x425ca6(0x43d)]:this[_0x425ca6(0x33f)](_0x39b7ec[_0x425ca6(0x49c)],_0x139c9d),_0x2cd528;if(_0x2ae8e0){let _0x291c73=this[_0x425ca6(0x4e5)][_0x425ca6(0x20c)]({'unitId':_0x2ae8e0[_0x425ca6(0x441)],'subUnitId':_0x2ae8e0[_0x425ca6(0x2fe)],'drawingId':_0x2ae8e0[_0x425ca6(0x3dc)]});if(_0x291c73!=null&&_0x291c73[_0x425ca6(0x267)]){let {left:_0x890594=0x0,top:_0x257e59=0x0,width:_0x47eb3e=0x0,height:_0x18f4bc=0x0,angle:_0x7182d9}=_0x291c73['transform'];_0x2cd528=(0x0,_0x5b6709[_0x425ca6(0x4ad)])({'left':_0x890594,'top':_0x257e59,'width':_0x47eb3e,'height':_0x18f4bc},_0x7182d9||0x0);}else _0x2cd528={'left':_0x139c9d['x'],'top':_0x139c9d['y'],'width':0x0,'height':0x0};}else _0x2cd528={'left':_0x139c9d['x'],'top':_0x139c9d['y'],'width':0x0,'height':0x0};let _0x5afaa4={'point':_0x139c9d,'angle':_0x1a966f,'bounds':_0x2cd528},_0x4f5d4a=_0xad4732?_0x5afaa4:_0x39b7ec,_0x9906e2=_0xad4732?_0x39b7ec:_0x5afaa4,_0x310e3=this[_0x425ca6(0x23a)][_0x425ca6(0x4b0)](),_0x3d5994=(0x0,_0x5b6709[_0x425ca6(0x4a4)])(_0x4f5d4a,_0x9906e2,_0x310e3);this['_activeShapeModel']['removeLinePoints']();let _0xf8e4d8=(0x0,_0x5b6709[_0x425ca6(0x385)])(_0x3d5994,_0x310e3);_0x2ae8e0?this[_0x425ca6(0x2c5)](_0xf8e4d8,_0x2ae8e0,_0x2abb23,_0xad4732,_0x19233e):this[_0x425ca6(0x494)](_0xf8e4d8,_0x2abb23,_0xad4732,_0x19233e);}[_0x209063(0x446)](_0x3448db,_0x2a6ca6,_0x5e83f1,_0x4a1c81){const _0x12e4b9=_0x209063;let _0x1742d4=this[_0x12e4b9(0x23a)][_0x12e4b9(0x224)]()['relation'],_0x135a16={..._0x1742d4},_0x212946={'shapeId':_0x2a6ca6[_0x12e4b9(0x3dc)],'cxnIndex':_0x2a6ca6[_0x12e4b9(0x499)]};_0x5e83f1?_0x135a16['from']=_0x212946:_0x135a16['to']=_0x212946;let _0x28e09d=this[_0x12e4b9(0x23a)][_0x12e4b9(0x4b0)](),_0x32a0fb=(0x0,_0x5b6709['computeConnectorRouteLayout'])(_0x3448db['worldPoints'],_0x28e09d),_0x48c004={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'connectorShapeId':this['_activeShapeId'],'width':_0x3448db[_0x12e4b9(0x299)][_0x12e4b9(0x3bb)],'height':_0x3448db['worldRect']['height'],'left':_0x3448db[_0x12e4b9(0x299)][_0x12e4b9(0x4d2)],'top':_0x3448db[_0x12e4b9(0x299)][_0x12e4b9(0x25a)],'flipX':_0x3448db[_0x12e4b9(0x299)]['flipX']||!0x1,'flipY':_0x3448db[_0x12e4b9(0x299)]['flipY']||!0x1,'newAdjustValues':_0x32a0fb['adjustValues'],'oldAdjustValues':_0x4a1c81,'oldRelation':_0x1742d4,'newRelation':_0x135a16,'newLineType':_0x32a0fb['lineType'],'oldLineType':_0x28e09d};this[_0x12e4b9(0x240)][_0x12e4b9(0x507)](_0x4eb2ab[_0x12e4b9(0x3de)]['id'],_0x48c004);}[_0x209063(0x47e)](_0x243ff5,_0x27642a){const _0x13e9c6=_0x209063;let _0x27454e=this[_0x13e9c6(0x23a)]['getShapeType'](),_0x586ee5=(0x0,_0x5b6709[_0x13e9c6(0x385)])(_0x243ff5[_0x13e9c6(0x3ad)],_0x27454e),_0xd95ad6={'unitId':this[_0x13e9c6(0x30e)],'subUnitId':this['_subUnitId'],'shapeId':this['_activeShapeId'],'width':_0x243ff5['worldRect']['width'],'height':_0x243ff5[_0x13e9c6(0x299)][_0x13e9c6(0x498)],'left':_0x243ff5[_0x13e9c6(0x299)][_0x13e9c6(0x4d2)],'top':_0x243ff5[_0x13e9c6(0x299)][_0x13e9c6(0x25a)],'flipX':_0x243ff5['worldRect'][_0x13e9c6(0x2d8)]||!0x1,'flipY':_0x243ff5[_0x13e9c6(0x299)]['flipY']||!0x1,'angle':_0x243ff5[_0x13e9c6(0x299)][_0x13e9c6(0x43d)]||0x0,'newAdjustValues':_0x586ee5[_0x13e9c6(0x502)],'oldAdjustValues':_0x27642a,'newLineType':_0x586ee5['lineType'],'oldLineType':_0x27454e};this[_0x13e9c6(0x240)][_0x13e9c6(0x507)](_0x4eb2ab[_0x13e9c6(0x2af)]['id'],_0xd95ad6);}[_0x209063(0x2c5)](_0x38f092,_0x44d976,_0xb6288e,_0x358012,_0x243834){const _0x1beba0=_0x209063;let _0x24ed19=this[_0x1beba0(0x23a)][_0x1beba0(0x224)]()[_0x1beba0(0x43e)],_0x20ad36={..._0x24ed19},_0x4d8a25={'shapeId':_0x44d976[_0x1beba0(0x3dc)],'cxnIndex':_0x44d976['cxnIndex']};_0x358012?(_0x20ad36[_0x1beba0(0x44e)]=_0x4d8a25,_0x20ad36['to']=_0xb6288e):(_0x20ad36[_0x1beba0(0x44e)]=_0xb6288e,_0x20ad36['to']=_0x4d8a25);let _0x1f66be={'unitId':this[_0x1beba0(0x30e)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x1beba0(0x39d)],'width':_0x38f092[_0x1beba0(0x299)][_0x1beba0(0x3bb)],'height':_0x38f092[_0x1beba0(0x299)]['height'],'left':_0x38f092['worldRect']['left'],'top':_0x38f092[_0x1beba0(0x299)][_0x1beba0(0x25a)],'flipX':_0x38f092['worldRect'][_0x1beba0(0x2d8)]||!0x1,'flipY':_0x38f092[_0x1beba0(0x299)][_0x1beba0(0x351)]||!0x1,'oldAdjustValues':_0x243834,'newAdjustValues':_0x38f092['adjustValues'],'newLineType':_0x38f092[_0x1beba0(0x308)],'rotation':_0x38f092[_0x1beba0(0x40c)],'oldRelation':_0x24ed19,'newRelation':_0x20ad36};this[_0x1beba0(0x240)][_0x1beba0(0x507)](_0x4eb2ab[_0x1beba0(0x3de)]['id'],_0x1f66be);}[_0x209063(0x494)](_0x4aef13,_0x4e9d28,_0x3fd0b0,_0x5bd984){const _0x274d64=_0x209063;let _0x40143d=this[_0x274d64(0x23a)][_0x274d64(0x224)]()[_0x274d64(0x43e)],_0x5349c2={};_0x3fd0b0?(_0x5349c2['to']=_0x4e9d28,_0x5349c2[_0x274d64(0x44e)]=void 0x0):(_0x5349c2['from']=_0x4e9d28,_0x5349c2['to']=void 0x0);let _0x378a47={'unitId':this[_0x274d64(0x30e)],'subUnitId':this[_0x274d64(0x489)],'connectorShapeId':this[_0x274d64(0x39d)],'width':_0x4aef13['worldRect'][_0x274d64(0x3bb)],'height':_0x4aef13[_0x274d64(0x299)][_0x274d64(0x498)],'left':_0x4aef13[_0x274d64(0x299)][_0x274d64(0x4d2)],'top':_0x4aef13[_0x274d64(0x299)][_0x274d64(0x25a)],'flipX':_0x4aef13[_0x274d64(0x299)]['flipX']||!0x1,'flipY':_0x4aef13[_0x274d64(0x299)][_0x274d64(0x351)]||!0x1,'oldAdjustValues':_0x5bd984,'newAdjustValues':_0x4aef13[_0x274d64(0x502)],'newLineType':_0x4aef13['lineType'],'rotation':_0x4aef13[_0x274d64(0x40c)],'oldRelation':_0x40143d,'newRelation':_0x5349c2};this['_commandService']['executeCommand'](_0x4eb2ab['UpdateConnectorRelationCommand']['id'],_0x378a47);}['_attachConnectorObjectEvent'](_0x413297,_0x3edfac,_0x4ede52){const _0x3a3314=_0x209063;this[_0x3a3314(0x3df)]((0x0,_0x49d30a['toDisposable'])(_0x413297[_0x3a3314(0x222)]['subscribeEvent']((_0x4c647b,_0xe8111d)=>{const _0x50bf64=_0x3a3314;let _0x35ddc9=_0x413297[_0x50bf64(0x36c)]();if(this['_activeShapeModel']=this['_sheetsShapeService']['getShapeModel'](_0x35ddc9['unitId'],_0x35ddc9['subUnitId'],_0x35ddc9[_0x50bf64(0x2e9)]),!this[_0x50bf64(0x23a)])return;let _0x363550={};this[_0x50bf64(0x23a)][_0x50bf64(0x3c9)]()['forEach'](_0x1c4b13=>{const _0x2eb437=_0x50bf64;let _0x32c8b5=this[_0x2eb437(0x23a)][_0x2eb437(0x213)](_0x1c4b13);_0x32c8b5!==void 0x0&&(_0x363550[_0x1c4b13]=_0x32c8b5);});let _0x4f868c=this[_0x50bf64(0x4b1)]();if(!_0x4f868c)return;this[_0x50bf64(0x237)]={..._0x4f868c};let _0xf2a220=new _0x5b6709[(_0x50bf64(0x484))](this[_0x50bf64(0x237)]),_0x46aa09=(0x0,_0x510035[_0x50bf64(0x3a8)])({'unitId':this[_0x50bf64(0x30e)],'subUnitId':this[_0x50bf64(0x489)],'drawingId':this[_0x50bf64(0x39d)]}),_0x30c9d9=_0x3edfac['getObjectIncludeInGroup'](_0x46aa09);this[_0x50bf64(0x42a)]=!0x0,_0x3edfac[_0x50bf64(0x202)](),this['_sheetBasicShapeConnectionPointController']['startConnectionDetection'](_0x3edfac,this[_0x50bf64(0x30e)],this['_subUnitId'],this[_0x50bf64(0x39d)]),this[_0x50bf64(0x374)]=null;let _0x143c12=this['_activeShapeModel'][_0x50bf64(0x436)](),_0x54c1ff=_0x143c12[0x0],_0x27f896=_0x143c12[_0x143c12[_0x50bf64(0x28f)]-0x1],_0x5d7eea=_0x4ede52?_0xf2a220[_0x50bf64(0x2b1)](_0x27f896):_0xf2a220[_0x50bf64(0x2b1)](_0x54c1ff);this[_0x50bf64(0x282)]=_0x3edfac[_0x50bf64(0x468)]['subscribeEvent']((_0x32e7e2,_0x16d04f)=>{const _0x3733e4=_0x50bf64;if(!this[_0x3733e4(0x42a)]||!this[_0x3733e4(0x23a)])return;this[_0x3733e4(0x24f)]||(this['_sheetShapeAdjustController'][_0x3733e4(0x409)](),this[_0x3733e4(0x23a)][_0x3733e4(0x486)](),this[_0x3733e4(0x24f)]=!0x0);let _0x1b70e5=this[_0x3733e4(0x2a8)](this['_unitId'],this[_0x3733e4(0x489)]),_0x46bca6=this[_0x3733e4(0x29c)](this[_0x3733e4(0x30e)],this['_subUnitId']),_0x9653e0={'x':_0x32e7e2[_0x3733e4(0x2f6)]/_0x46bca6+_0x1b70e5['x'],'y':_0x32e7e2[_0x3733e4(0x4ac)]/_0x46bca6+_0x1b70e5['y']},_0x3421a2=this[_0x3733e4(0x4f5)][_0x3733e4(0x3fa)](_0x9653e0);if(_0x3421a2){let {shapeId:_0xd9b8ba,unitId:_0x1b53f5,subUnitId:_0x5d1e6e}=_0x3421a2;if(_0xd9b8ba&&_0x1b53f5&&_0x5d1e6e){let _0x13d9bc=(0x0,_0x510035[_0x3733e4(0x3a8)])({'unitId':_0x1b53f5,'subUnitId':_0x5d1e6e,'drawingId':_0xd9b8ba});_0x3421a2['angle']=(_0x3edfac[_0x3733e4(0x22b)](_0x13d9bc)[_0x3733e4(0x43d)]||0x0)+_0x3421a2[_0x3733e4(0x43d)];}}this[_0x3733e4(0x374)]=_0x3421a2;let _0xb128f7=_0x4ede52?this[_0x3733e4(0x23a)][_0x3733e4(0x1f5)]():this[_0x3733e4(0x23a)]['getStartConnectInfo']();if(_0xb128f7){this[_0x3733e4(0x327)](_0xb128f7,_0x9653e0,_0x4ede52,_0x30c9d9,_0x413297);return;}this[_0x3733e4(0x2e4)](_0x9653e0,_0x5d7eea,_0x4ede52,_0x30c9d9,_0x413297);}),this[_0x50bf64(0x4a0)]=_0x3edfac[_0x50bf64(0x4ab)][_0x50bf64(0x35a)]((_0x44ef62,_0x2b92ab)=>{const _0x74a6dd=_0x50bf64;this[_0x74a6dd(0x21e)](_0x3edfac,_0x5d7eea,_0x44ef62,_0x4ede52,_0x363550);}),_0xe8111d['stopPropagation']();})));}[_0x209063(0x485)](_0x7236fa,_0x1dbc52,_0x955543){const _0x333a78=_0x209063;let _0x36746b=this[_0x333a78(0x488)]['getBasicShapeRelation'](_0x7236fa,_0x1dbc52,_0x955543);if(!_0x36746b||_0x36746b[_0x333a78(0x28f)]===0x0)return;let _0x38812a=this['_renderManagerService'][_0x333a78(0x2f7)](_0x7236fa);if(!_0x38812a)return;let {scene:_0x42e2c2}=_0x38812a;for(let _0x5b199b of _0x36746b){let _0x1a10d0=_0x5b199b[_0x333a78(0x47a)],_0x34b7dc=this[_0x333a78(0x488)][_0x333a78(0x4b2)](_0x7236fa,_0x1dbc52,_0x1a10d0);if(!_0x34b7dc)continue;let _0x58d4ec=_0x34b7dc['getStartConnectInfo'](),_0x31f1d9=_0x34b7dc[_0x333a78(0x1f5)](),_0x2ace22=(_0x58d4ec==null?void 0x0:_0x58d4ec[_0x333a78(0x3dc)])===_0x955543,_0x1539a4=(0x0,_0x510035['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x7236fa,'subUnitId':_0x1dbc52,'drawingId':_0x1a10d0}),_0x567284=_0x42e2c2[_0x333a78(0x22b)](_0x1539a4);if(!_0x567284)continue;let _0x431b96=this[_0x333a78(0x4e5)][_0x333a78(0x20c)]({'unitId':_0x7236fa,'subUnitId':_0x1dbc52,'drawingId':_0x1a10d0});_0x431b96!=null&&_0x431b96['transform']&&(_0x58d4ec&&_0x31f1d9?this[_0x333a78(0x2b2)](_0x7236fa,_0x1dbc52,_0x1a10d0,_0x34b7dc,_0x58d4ec,_0x31f1d9,_0x567284):this[_0x333a78(0x4e6)](_0x7236fa,_0x1dbc52,_0x1a10d0,_0x34b7dc,_0x2ace22?_0x58d4ec:_0x31f1d9,_0x2ace22,_0x431b96,_0x567284));}}[_0x209063(0x2b2)](_0x584e17,_0x25adea,_0x19f794,_0x425370,_0x1abf64,_0x10a14e,_0x33b566){const _0x1d97b3=_0x209063;let _0x1ed733=this['_unitId'],_0x5e8ab2=this[_0x1d97b3(0x489)];this[_0x1d97b3(0x30e)]=_0x584e17,this['_subUnitId']=_0x25adea;let _0x7a7e1b=this[_0x1d97b3(0x244)](_0x1abf64),_0x5b4120=this['_getConnectPointInfo'](_0x10a14e);if(this[_0x1d97b3(0x30e)]=_0x1ed733,this['_subUnitId']=_0x5e8ab2,!_0x7a7e1b||!_0x5b4120)return;let _0x432286=_0x425370[_0x1d97b3(0x4b0)](),_0x3bfce0=(0x0,_0x5b6709[_0x1d97b3(0x4a4)])(_0x7a7e1b,_0x5b4120,_0x432286);_0x3bfce0&&_0x425370['updateLinePoints'](_0x3bfce0);let _0x4dc97d=(0x0,_0x5b6709[_0x1d97b3(0x385)])(_0x3bfce0,_0x432286);_0x4dc97d[_0x1d97b3(0x308)]!==_0x432286&&_0x425370['changeShapeType'](_0x4dc97d['lineType']),_0x425370['clearAdjustValue']();for(let [_0x3e6521,_0x5eaace]of Object[_0x1d97b3(0x4f3)](_0x4dc97d[_0x1d97b3(0x502)]))_0x425370[_0x1d97b3(0x45a)](_0x3e6521,_0x5eaace);_0x425370[_0x1d97b3(0x2c1)]({'width':_0x4dc97d[_0x1d97b3(0x299)][_0x1d97b3(0x3bb)],'height':_0x4dc97d[_0x1d97b3(0x299)]['height']}),_0x33b566[_0x1d97b3(0x462)]({'flipX':_0x4dc97d[_0x1d97b3(0x299)]['flipX'],'flipY':_0x4dc97d[_0x1d97b3(0x299)]['flipY'],'left':_0x4dc97d['worldRect'][_0x1d97b3(0x4d2)],'top':_0x4dc97d[_0x1d97b3(0x299)][_0x1d97b3(0x25a)],'width':_0x4dc97d[_0x1d97b3(0x299)][_0x1d97b3(0x3bb)],'height':_0x4dc97d[_0x1d97b3(0x299)][_0x1d97b3(0x498)],'angle':_0x4dc97d['rotation']}),_0x425370[_0x1d97b3(0x246)]();}[_0x209063(0x4e6)](_0x7a85c9,_0x5087be,_0x362f76,_0x159046,_0x1ce3a6,_0x5d1606,_0x123e99,_0x45fc83){const _0x1602b9=_0x209063;let _0x484616=this['_unitId'],_0x4875ae=this[_0x1602b9(0x489)];this[_0x1602b9(0x30e)]=_0x7a85c9,this[_0x1602b9(0x489)]=_0x5087be;let _0x369202=this[_0x1602b9(0x244)](_0x1ce3a6);if(this['_unitId']=_0x484616,this[_0x1602b9(0x489)]=_0x4875ae,!_0x369202)return;let {left:_0x4b3567=0x0,top:_0x2d9cea=0x0,width:_0x5c39fa=0x0,height:_0x368877=0x0,flipX:_0x3b67bb=!0x1,flipY:_0x396f65=!0x1}=_0x123e99['transform'],_0x1e976b=_0x159046[_0x1602b9(0x436)]();if(_0x1e976b[_0x1602b9(0x28f)]<0x2)return;let _0x353793=new _0x5b6709['ConnectorCoordinateTransform']({'left':_0x4b3567,'top':_0x2d9cea,'width':_0x5c39fa,'height':_0x368877,'flipX':_0x3b67bb,'flipY':_0x396f65}),_0x4b2649=_0x5d1606?_0x1e976b[_0x1e976b[_0x1602b9(0x28f)]-0x1]:_0x1e976b[0x0],_0x26b9d7=_0x353793[_0x1602b9(0x2b1)](_0x4b2649),_0x5e5d13=_0x5b6709[_0x1602b9(0x484)][_0x1602b9(0x34c)](_0x26b9d7,_0x369202[_0x1602b9(0x49c)],!_0x5d1606);_0x45fc83[_0x1602b9(0x462)]({'flipX':_0x5e5d13[_0x1602b9(0x299)][_0x1602b9(0x2d8)],'flipY':_0x5e5d13[_0x1602b9(0x299)]['flipY'],'left':_0x5e5d13['worldRect'][_0x1602b9(0x4d2)],'top':_0x5e5d13[_0x1602b9(0x299)][_0x1602b9(0x25a)],'width':_0x5e5d13['worldRect']['width'],'height':_0x5e5d13['worldRect'][_0x1602b9(0x498)],'angle':_0x5e5d13[_0x1602b9(0x299)][_0x1602b9(0x43d)]}),_0x45fc83[_0x1602b9(0x25d)](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0x1a63c5=_0x209063;this['_connectorObjects']['length']!==0x0&&(this[_0x1a63c5(0x4d6)][_0x1a63c5(0x250)](_0x23330c=>{_0x23330c['dispose']();}),this[_0x1a63c5(0x4d6)]=[]);}[_0x209063(0x474)](){const _0x1cedc9=_0x209063;let _0x15a768=this['_univerInstanceService'][_0x1cedc9(0x26b)](_0x49d30a[_0x1cedc9(0x276)][_0x1cedc9(0x295)]);this[_0x1cedc9(0x3df)](_0x15a768[_0x1cedc9(0x201)]((0x0,_0x230aed[_0x1cedc9(0x24b)])(_0x26a6ad=>_0x26a6ad?_0x26a6ad['activeSheet$'][_0x1cedc9(0x201)]((0x0,_0x230aed['switchMap'])(_0x39abb5=>{const _0x1117a8=_0x1cedc9;if(!_0x39abb5)return _0x230aed['EMPTY'];let _0x59268c=_0x26a6ad['getUnitId'](),_0x17c2ec=this['_renderManagerService'][_0x1117a8(0x2f7)](_0x59268c),_0x384612=_0x17c2ec==null?void 0x0:_0x17c2ec[_0x1117a8(0x349)];return _0x384612?(0x0,_0x230aed['of'])(_0x384612):_0x230aed[_0x1117a8(0x2d0)];})):_0x230aed[_0x1cedc9(0x2d0)]))[_0x1cedc9(0x4d3)](_0x2cd670=>{const _0x38090c=_0x1cedc9;let _0x5da36f=_0x2cd670[_0x38090c(0x262)]();this[_0x38090c(0x3df)](_0x2cd670[_0x38090c(0x468)][_0x38090c(0x35a)](_0x268961=>{const _0x5a6cac=_0x38090c;this[_0x5a6cac(0x48e)]&&this[_0x5a6cac(0x39d)]&&this[_0x5a6cac(0x277)]();})),this['disposeWithMe'](_0x5da36f[_0x38090c(0x275)]['subscribe'](_0x5d45c4=>{const _0x25b93d=_0x38090c;let {objects:_0x5d4fdc}=_0x5d45c4;this[_0x25b93d(0x277)](),_0x5d4fdc!==null&&_0x5d4fdc[_0x25b93d(0x3c6)]===0x1&&_0x5d4fdc[_0x25b93d(0x1e1)]()[_0x25b93d(0x241)]()[_0x25b93d(0x2b4)]instanceof _0x642241&&(this[_0x25b93d(0x48e)]=!0x0);})),this[_0x38090c(0x3df)](_0x5da36f[_0x38090c(0x4e8)][_0x38090c(0x4d3)](_0x5ed529=>{const _0x151737=_0x38090c;this[_0x151737(0x48e)]&&this[_0x151737(0x277)]();})),this[_0x38090c(0x3df)](_0x2cd670[_0x38090c(0x4ab)][_0x38090c(0x35a)](()=>{const _0x198bb5=_0x38090c;this[_0x198bb5(0x48e)]&&(this[_0x198bb5(0x48e)]=!0x1,this['_addShapeConnectorHandlerObjects']());})),this[_0x38090c(0x3df)](_0x5da36f[_0x38090c(0x4d7)][_0x38090c(0x4d3)](()=>{const _0x4d7ac2=_0x38090c;this[_0x4d7ac2(0x30e)]&&this['_subUnitId']&&this[_0x4d7ac2(0x39d)]&&this['_drawingManagerService'][_0x4d7ac2(0x20c)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x4d7ac2(0x39d)]})&&(this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x209063(0x453)](){const _0x4aed85=_0x209063;this['disposeWithMe'](this[_0x4aed85(0x4e5)][_0x4aed85(0x2a6)][_0x4aed85(0x4d3)](_0x573955=>{const _0x20153c=_0x4aed85;if(_0x573955[_0x20153c(0x28f)]===0x1){let _0x426b4b=_0x573955[0x0];if(_0x426b4b[_0x20153c(0x3e8)]===_0x49d30a[_0x20153c(0x365)][_0x20153c(0x4fe)]){let _0x46749e=this[_0x20153c(0x488)]['getShapeModel'](_0x426b4b[_0x20153c(0x441)],_0x426b4b['subUnitId'],_0x426b4b[_0x20153c(0x2e9)]);if(_0x46749e&&(0x0,_0x5b6709['isConnectorShape'])(_0x46749e['getShapeType']())){this[_0x20153c(0x39d)]=_0x426b4b[_0x20153c(0x2e9)],this[_0x20153c(0x30e)]=_0x426b4b['unitId'],this[_0x20153c(0x489)]=_0x426b4b[_0x20153c(0x2fe)],this[_0x20153c(0x277)](),this[_0x20153c(0x33e)]();return;}}}this[_0x20153c(0x39d)]=void 0x0,this['_unitId']=void 0x0,this[_0x20153c(0x489)]=void 0x0,this[_0x20153c(0x277)]();})),this[_0x4aed85(0x3df)](this[_0x4aed85(0x4e5)][_0x4aed85(0x44c)][_0x4aed85(0x4d3)](_0x3701fb=>{const _0x133e39=_0x4aed85;if(_0x3701fb[_0x133e39(0x28f)]===0x1){var _0x2fe9ee;let _0x1d2afd=_0x3701fb[0x0],_0xfa8b85=(_0x2fe9ee=this[_0x133e39(0x4e5)][_0x133e39(0x20c)](_0x1d2afd))==null?void 0x0:_0x2fe9ee[_0x133e39(0x3e8)];_0xfa8b85===_0x49d30a[_0x133e39(0x365)][_0x133e39(0x4fe)]&&_0x1d2afd[_0x133e39(0x2e9)]===this['_activeShapeId']?(this[_0x133e39(0x277)](),this['_addShapeConnectorHandlerObjects']()):!this[_0x133e39(0x39d)]&&_0xfa8b85===_0x49d30a[_0x133e39(0x365)][_0x133e39(0x4fe)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x1d2afd[_0x133e39(0x441)],_0x1d2afd[_0x133e39(0x2fe)],_0x1d2afd[_0x133e39(0x2e9)]);}})),this[_0x4aed85(0x3df)](this[_0x4aed85(0x4e5)]['remove$'][_0x4aed85(0x4d3)](_0xb19b6b=>{const _0x402cb6=_0x4aed85;for(let _0x6763d8 of _0xb19b6b){let {drawingId:_0xf4aba2}=_0x6763d8;if(this[_0x402cb6(0x39d)]===_0xf4aba2){this[_0x402cb6(0x42b)]();return;}}}));}[_0x209063(0x327)](_0x339d7b,_0x13be08,_0x447f72,_0x4f8bde,_0x262eac){const _0x17cb04=_0x209063;var _0x685fc5,_0x346081;if(!this[_0x17cb04(0x23a)])return;let _0x293e70=this['_getConnectPointInfo'](_0x339d7b);if(!_0x293e70)return;let _0x1e7cd7=this['_currentConnectionTarget']?this[_0x17cb04(0x374)][_0x17cb04(0x42c)]:_0x13be08,_0x14222e=this[_0x17cb04(0x374)]?this['_currentConnectionTarget']['angle']:this[_0x17cb04(0x33f)](_0x293e70[_0x17cb04(0x49c)],_0x1e7cd7),_0x14188b;if(this[_0x17cb04(0x374)]){let _0x2bb162=this[_0x17cb04(0x4e5)][_0x17cb04(0x20c)]({'unitId':this[_0x17cb04(0x374)]['unitId'],'subUnitId':this['_currentConnectionTarget'][_0x17cb04(0x2fe)],'drawingId':this['_currentConnectionTarget'][_0x17cb04(0x3dc)]});if(_0x2bb162!=null&&_0x2bb162[_0x17cb04(0x267)]){let {left:_0x5aa0ba=0x0,top:_0x1fb8da=0x0,width:_0x44f0c9=0x0,height:_0x557235=0x0,angle:_0x4b3e0a}=_0x2bb162[_0x17cb04(0x267)];_0x14188b=(0x0,_0x5b6709['getBasicShapeRotateBound'])({'left':_0x5aa0ba,'top':_0x1fb8da,'width':_0x44f0c9,'height':_0x557235},_0x4b3e0a||0x0);}else _0x14188b={'left':_0x1e7cd7['x'],'top':_0x1e7cd7['y'],'width':0x0,'height':0x0};}else _0x14188b={'left':_0x1e7cd7['x'],'top':_0x1e7cd7['y'],'width':0x0,'height':0x0};let _0x6615a5={'point':_0x1e7cd7,'angle':_0x14222e,'bounds':_0x14188b},_0xee68ee=_0x447f72?_0x6615a5:_0x293e70,_0x2ad996=_0x447f72?_0x293e70:_0x6615a5,_0x1dadb2=this[_0x17cb04(0x23a)]['getShapeType'](),_0x108c87=(0x0,_0x5b6709[_0x17cb04(0x4a4)])(_0xee68ee,_0x2ad996,_0x1dadb2);_0x108c87&&this[_0x17cb04(0x23a)][_0x17cb04(0x1fb)](_0x108c87);let _0x306ac3=(0x0,_0x5b6709[_0x17cb04(0x385)])(_0x108c87,_0x1dadb2);_0x306ac3['lineType']!==_0x1dadb2&&this[_0x17cb04(0x23a)][_0x17cb04(0x46c)](_0x306ac3[_0x17cb04(0x308)]);for(let [_0x227afc,_0x3535d7]of Object[_0x17cb04(0x4f3)](_0x306ac3[_0x17cb04(0x502)]))this[_0x17cb04(0x23a)][_0x17cb04(0x45a)](_0x227afc,_0x3535d7);this[_0x17cb04(0x23a)][_0x17cb04(0x2c1)]({'width':_0x306ac3[_0x17cb04(0x299)][_0x17cb04(0x3bb)],'height':_0x306ac3['worldRect']['height']}),_0x4f8bde['transformByState']({'flipX':_0x306ac3['worldRect'][_0x17cb04(0x2d8)],'flipY':_0x306ac3['worldRect'][_0x17cb04(0x351)],'left':_0x306ac3[_0x17cb04(0x299)][_0x17cb04(0x4d2)],'top':_0x306ac3[_0x17cb04(0x299)][_0x17cb04(0x25a)],'width':_0x306ac3[_0x17cb04(0x299)][_0x17cb04(0x3bb)],'height':_0x306ac3['worldRect']['height'],'angle':_0x306ac3[_0x17cb04(0x40c)]}),_0x4f8bde[_0x17cb04(0x25d)](!0x0);let _0x262954=(_0x685fc5=(_0x346081=this[_0x17cb04(0x374)])==null?void 0x0:_0x346081[_0x17cb04(0x42c)])==null?_0x13be08:_0x685fc5;_0x262eac[_0x17cb04(0x462)]({'left':_0x262954['x']-_0x5b6709[_0x17cb04(0x389)][_0x17cb04(0x1f6)],'top':_0x262954['y']-_0x5b6709[_0x17cb04(0x389)][_0x17cb04(0x1f6)]});}[_0x209063(0x2e4)](_0x1261b9,_0x4a7fd6,_0x213d06,_0x2b4e18,_0x50e177){const _0x4a11c7=_0x209063;var _0x294663,_0x530441,_0x5caf01,_0x18eb12;let _0x55858e=(_0x294663=(_0x530441=this[_0x4a11c7(0x374)])==null?void 0x0:_0x530441[_0x4a11c7(0x42c)])==null?_0x1261b9:_0x294663,_0x8f2849=_0x5b6709['ConnectorCoordinateTransform'][_0x4a11c7(0x34c)](_0x4a7fd6,_0x55858e,_0x213d06);_0x2b4e18[_0x4a11c7(0x462)]({'flipX':_0x8f2849[_0x4a11c7(0x299)][_0x4a11c7(0x2d8)],'flipY':_0x8f2849[_0x4a11c7(0x299)][_0x4a11c7(0x351)],'left':_0x8f2849[_0x4a11c7(0x299)][_0x4a11c7(0x4d2)],'top':_0x8f2849[_0x4a11c7(0x299)][_0x4a11c7(0x25a)],'width':_0x8f2849['worldRect'][_0x4a11c7(0x3bb)],'height':_0x8f2849[_0x4a11c7(0x299)]['height'],'angle':_0x8f2849[_0x4a11c7(0x299)][_0x4a11c7(0x43d)]});let _0x489ba3=(_0x5caf01=(_0x18eb12=this['_currentConnectionTarget'])==null?void 0x0:_0x18eb12[_0x4a11c7(0x42c)])==null?_0x1261b9:_0x5caf01;_0x50e177[_0x4a11c7(0x462)]({'left':_0x489ba3['x']-_0x5b6709[_0x4a11c7(0x389)]['cxnPointRadius'],'top':_0x489ba3['y']-_0x5b6709[_0x4a11c7(0x389)]['cxnPointRadius']});}[_0x209063(0x244)](_0x302ff7){const _0xb0a045=_0x209063;if(!this['_unitId']||!this[_0xb0a045(0x489)])return null;let {shapeId:_0x260f4e,cxnIndex:_0x47bb3a}=_0x302ff7,_0x7cc723=this[_0xb0a045(0x488)]['getShapeModel'](this[_0xb0a045(0x30e)],this[_0xb0a045(0x489)],_0x260f4e);if(!_0x7cc723)return null;let _0x55363e=this[_0xb0a045(0x4e5)]['getDrawingByParam']({'unitId':this[_0xb0a045(0x30e)],'subUnitId':this[_0xb0a045(0x489)],'drawingId':_0x260f4e});if(!(_0x55363e!=null&&_0x55363e[_0xb0a045(0x267)]))return null;let {left:_0x27d594=0x0,top:_0x250308=0x0,width:_0x42720c=0x0,height:_0x3893e3=0x0,flipX:_0xa1d509=!0x1,flipY:_0x2053f8=!0x1,angle:_0x516386}=_0x55363e[_0xb0a045(0x267)];_0x7cc723['updateContext']({'width':_0x42720c,'height':_0x3893e3});let _0x3de815=_0x7cc723[_0xb0a045(0x42e)]()[_0xb0a045(0x2bd)](_0x3d0058=>_0x3d0058[_0xb0a045(0x1d9)]===_0x47bb3a);if(!_0x3de815)return null;let _0x382f0f=_0xa1d509?_0x42720c-_0x3de815['x']:_0x3de815['x'],_0x1d5f1e=_0x2053f8?_0x3893e3-_0x3de815['y']:_0x3de815['y'];if(_0x516386!==0x0&&_0x516386!=null){let _0x3aa705=_0x516386*Math['PI']/0xb4,_0x1259fa=Math['cos'](_0x3aa705),_0x25fd4f=Math['sin'](_0x3aa705),_0x437770=_0x42720c/0x2,_0x32c76b=_0x3893e3/0x2,_0x246285=_0x382f0f-_0x437770,_0x4f1c36=_0x1d5f1e-_0x32c76b;_0x382f0f=_0x437770+_0x246285*_0x1259fa-_0x4f1c36*_0x25fd4f,_0x1d5f1e=_0x32c76b+_0x246285*_0x25fd4f+_0x4f1c36*_0x1259fa;}_0x382f0f+=_0x27d594,_0x1d5f1e+=_0x250308;let _0x28c304=_0x3de815[_0xb0a045(0x3ee)]/0xea60;_0xa1d509&&(_0x28c304=0xb4-_0x28c304),_0x2053f8&&(_0x28c304=-_0x28c304),_0x28c304+=_0x516386||0x0,_0x28c304=(_0x28c304%0x168+0x168)%0x168;let _0x4b6b69=(0x0,_0x5b6709[_0xb0a045(0x4ad)])({'left':_0x27d594,'top':_0x250308,'width':_0x42720c,'height':_0x3893e3},_0x516386||0x0);return{'point':{'x':_0x382f0f,'y':_0x1d5f1e},'angle':_0x28c304,'bounds':_0x4b6b69};}[_0x209063(0x33f)](_0x3f3230,_0x36364d){const _0x322ab8=_0x209063;let _0x2e1811=_0x36364d['x']-_0x3f3230['x'],_0x4daa19=_0x36364d['y']-_0x3f3230['y'];return Math[_0x322ab8(0x482)](_0x2e1811)>=Math[_0x322ab8(0x482)](_0x4daa19)?_0x2e1811>=0x0?0xb4:0x0:_0x4daa19>=0x0?0x10e:0x5a;}[_0x209063(0x42b)](){const _0x1d8afd=_0x209063;this[_0x1d8afd(0x39d)]=void 0x0,this['_unitId']=void 0x0,this[_0x1d8afd(0x489)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();}['dispose'](){const _0x2d1f4e=_0x209063;this[_0x2d1f4e(0x277)](),super[_0x2d1f4e(0x46a)]();}};_0x38186c=_0x276893([_0x3cbe95(0x1,_0x49d30a['ICommandService']),_0x3cbe95(0x2,_0x40dd84[_0x209063(0x2ba)]),_0x3cbe95(0x3,_0x510035['IDrawingManagerService']),_0x3cbe95(0x4,_0x49d30a[_0x209063(0x31b)]),_0x3cbe95(0x5,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x4eb2ab[_0x209063(0x264)])),_0x3cbe95(0x6,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x54179a)),_0x3cbe95(0x7,(0x0,_0x49d30a['Inject'])(_0x2b6d77))],_0x38186c);let _0x3d9ac3=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(_0x2c5762,_0x28b24b,_0x2283a2){const _0xd703f4=_0x209063;super(),this[_0xd703f4(0x39e)]=_0x2c5762,this['_drawingManagerService']=_0x28b24b,this[_0xd703f4(0x439)]=_0x2283a2,this[_0xd703f4(0x1ef)]();}['_initPrinting'](){const _0x30856d=_0x209063;this[_0x30856d(0x3df)](this['_sheetPrintInterceptorService'][_0x30856d(0x348)][_0x30856d(0x1f2)](this[_0x30856d(0x39e)]['interceptor'][_0x30856d(0x495)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x1cb567,_0x4fced3,_0x378326)=>{const _0x32f82a=_0x30856d;var _0x141b53;let {unitId:_0x1a97fe,subUnitId:_0xae5523,scene:_0x55ba6e,resourceCollector:_0x4003a2}=_0x4fced3,_0x24c60f=(_0x141b53=this[_0x32f82a(0x4e5)]['getDrawingDataForUnit'](_0x1a97fe))==null?void 0x0:_0x141b53[_0xae5523];return _0x24c60f==null||_0x24c60f[_0x32f82a(0x235)]['forEach'](_0x401e16=>{const _0x371079=_0x32f82a;let _0x397d9f=_0x24c60f[_0x371079(0x417)][_0x401e16];_0x397d9f[_0x371079(0x3e8)]===_0x49d30a[_0x371079(0x365)][_0x371079(0x4fe)]&&!_0x397d9f[_0x371079(0x29b)]&&this[_0x371079(0x439)][_0x371079(0x287)](_0x397d9f,_0x55ba6e,{'resourceCollector':_0x4003a2});}),_0x378326(_0x1cb567);}}));}};_0x3d9ac3=_0x276893([_0x3cbe95(0x0,(0x0,_0x49d30a['Inject'])(_0x100e66[_0x209063(0x3c7)])),_0x3cbe95(0x1,_0x510035[_0x209063(0x239)]),_0x3cbe95(0x2,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x4fc7b5))],_0x3d9ac3);let _0x54b75c=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(_0x3a71dd,_0x45e7d2,_0x387f17){const _0x2eb91a=_0x209063;super(),this['_commandService']=_0x3a71dd,this[_0x2eb91a(0x2de)]=_0x45e7d2,this[_0x2eb91a(0x443)]=_0x387f17,this[_0x2eb91a(0x252)]();}['_initPermission'](){const _0x4e0317=_0x209063;this[_0x4e0317(0x3df)](this[_0x4e0317(0x240)][_0x4e0317(0x401)](_0x5a1951=>{const _0x2497a0=_0x4e0317;let _0x512df6,_0x32f5d6;if(_0x5a1951['id']===_0x4eb2ab['InsertShapeCommand']['id']||_0x5a1951['id']===_0x4eb2ab[_0x2497a0(0x435)]['id']||_0x5a1951['id']===_0x4eb2ab[_0x2497a0(0x3de)]['id']){let _0x4e51e4=_0x5a1951[_0x2497a0(0x2c7)];_0x512df6=_0x4e51e4[_0x2497a0(0x441)],_0x32f5d6=_0x4e51e4[_0x2497a0(0x2fe)];}!_0x512df6||!_0x32f5d6||this['_sheetPermissionCheckController']['permissionCheckWithoutRange']({'workbookTypes':[_0x4fbea5[_0x2497a0(0x228)]],'worksheetTypes':[_0x4fbea5[_0x2497a0(0x2cc)]]},_0x512df6,_0x32f5d6)||this['_sheetPermissionCheckController'][_0x2497a0(0x2f9)](this[_0x2497a0(0x2de)]['t'](_0x2497a0(0x49b)));}));}};_0x54b75c=_0x276893([_0x3cbe95(0x0,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x49d30a['ICommandService'])),_0x3cbe95(0x1,(0x0,_0x49d30a['Inject'])(_0x49d30a[_0x209063(0x3e6)])),_0x3cbe95(0x2,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x4fbea5[_0x209063(0x2e6)]))],_0x54b75c);let _0xed137=class extends _0x49d30a['Disposable']{constructor(_0x3d5769,_0x573d0d,_0x13abeb,_0x136f42,_0x16677d,_0x4024b4,_0x1c93a2,_0x778a4a,_0x355501,_0x8bb5e5,_0x4b9601){const _0x3f3b8b=_0x209063;super(),this['_univerInstanceService']=_0x3d5769,this[_0x3f3b8b(0x420)]=_0x573d0d,this[_0x3f3b8b(0x38a)]=_0x13abeb,this[_0x3f3b8b(0x488)]=_0x136f42,this['_localeService']=_0x16677d,this[_0x3f3b8b(0x240)]=_0x4024b4,this[_0x3f3b8b(0x4e5)]=_0x1c93a2,this[_0x3f3b8b(0x32a)]=_0x778a4a,this[_0x3f3b8b(0x3b1)]=_0x355501,this[_0x3f3b8b(0x40d)]=_0x8bb5e5,this[_0x3f3b8b(0x325)]=_0x4b9601,_0x28368a(this,'_sidebarDisposable',null),_0x28368a(this,_0x3f3b8b(0x2ad),null),_0x28368a(this,_0x3f3b8b(0x354),!0x1),_0x28368a(this,_0x3f3b8b(0x292),0x0),_0x28368a(this,_0x3f3b8b(0x44a),new Set()),_0x28368a(this,'_disposePopups',[]),this[_0x3f3b8b(0x1e7)](),this[_0x3f3b8b(0x3df)](this[_0x3f3b8b(0x2be)]['getCurrentTypeOfUnit$'](_0x49d30a[_0x3f3b8b(0x276)][_0x3f3b8b(0x295)])[_0x3f3b8b(0x4d3)](_0x478d68=>{if(!_0x478d68){var _0x427410;(_0x427410=this['_sidebarDisposable'])==null||_0x427410['dispose']();return;}this['_createShapePopupMenu'](_0x478d68);})),this[_0x3f3b8b(0x2a7)](),this['_registerShapeMenu'](),this[_0x3f3b8b(0x1fe)](),this[_0x3f3b8b(0x3df)](this['_shapeTextEditingService']['editingParams$'][_0x3f3b8b(0x4d3)](_0x5e7fbc=>{const _0x1e02ae=_0x3f3b8b;_0x5e7fbc&&this[_0x1e02ae(0x2a1)]();}));}[_0x209063(0x1e7)](){const _0x510d1d=_0x209063;this[_0x510d1d(0x38a)]['mergeMenu'](_0xbe3a61);}['_registerShapeMenu'](){const _0x4b5d0d=_0x209063;this[_0x4b5d0d(0x32a)]['registerFeatureMenu'](_0x49d30a[_0x4b5d0d(0x365)]['DRAWING_SHAPE'],this[_0x4b5d0d(0x4b7)][_0x4b5d0d(0x293)](this)),this['_sheetCanvasPopManagerService'][_0x4b5d0d(0x307)](_0x49d30a[_0x4b5d0d(0x365)][_0x4b5d0d(0x4fe)],0x6,0x4);}[_0x209063(0x1fe)](){const _0x186a94=_0x209063;this[_0x186a94(0x2be)]['getAllUnitsForType'](_0x49d30a[_0x186a94(0x276)]['UNIVER_SHEET'])[_0x186a94(0x250)](_0x384b25=>this[_0x186a94(0x2fc)](_0x384b25));}[_0x209063(0x4b7)](_0x5c262a,_0x2266a3,_0x372e89,_0x4066f1){const _0x53e4a2=_0x209063;return[{'label':_0x53e4a2(0x26d),'index':0x0,'commandId':_0x5e6950['id'],'commandParams':{'unitId':_0x5c262a,'subUnitId':_0x2266a3,'drawingId':_0x372e89},'disable':_0x4066f1===_0x49d30a['DrawingTypeEnum'][_0x53e4a2(0x21f)]},{'label':_0x53e4a2(0x493),'index':0x1,'commandId':_0x28a390['RemoveSheetDrawingCommand']['id'],'commandParams':{'unitId':_0x5c262a,'drawings':[{'unitId':_0x5c262a,'subUnitId':_0x2266a3,'drawingId':_0x372e89,'drawingType':_0x4066f1}]},'disable':!0x1},{'label':_0x53e4a2(0x1e6),'index':0x2,'commandId':_0x1810f4['id'],'commandParams':{'unitId':_0x5c262a,'subUnitId':_0x2266a3,'drawingId':_0x372e89},'disable':!0x1},{'label':_0x53e4a2(0x504),'index':0x3,'commandId':_0x4eb2ab['ToggleSheetsShapeFlipCommand']['id'],'commandParams':{'unitId':_0x5c262a,'subUnitId':_0x2266a3,'shapeId':_0x372e89,'flipH':!0x0},'disable':!0x1},{'label':_0x53e4a2(0x3ba),'index':0x4,'commandId':_0x4eb2ab[_0x53e4a2(0x32f)]['id'],'commandParams':{'unitId':_0x5c262a,'subUnitId':_0x2266a3,'shapeId':_0x372e89,'flipV':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.rotateRight90','index':0x4,'commandId':_0x4eb2ab[_0x53e4a2(0x220)]['id'],'commandParams':{'unitId':_0x5c262a,'subUnitId':_0x2266a3,'shapeId':_0x372e89,'rotate':0x5a},'disable':!0x1},{'label':_0x53e4a2(0x448),'index':0x4,'commandId':_0x4eb2ab[_0x53e4a2(0x220)]['id'],'commandParams':{'unitId':_0x5c262a,'subUnitId':_0x2266a3,'shapeId':_0x372e89,'rotate':-0x5a},'disable':!0x1},{'label':_0x53e4a2(0x4b8),'index':0x4,'commandId':_0x4eb2ab[_0x53e4a2(0x3ec)]['id'],'commandParams':{'unitId':_0x5c262a,'subUnitId':_0x2266a3,'shapeId':_0x372e89},'disable':!0x1}];}['_getShapeInfo'](_0x3c9afc,_0x43c003,_0x462f57){const _0x4c702b=_0x209063;let _0x5cee1e=this[_0x4c702b(0x488)][_0x4c702b(0x4f8)](_0x3c9afc,_0x43c003,_0x462f57),_0x5745d7=this[_0x4c702b(0x488)][_0x4c702b(0x27c)](_0x3c9afc,_0x43c003,_0x462f57);return _0x5cee1e!==void 0x0&&_0x5745d7!==void 0x0?{'shapeData':_0x5745d7,'shapeId':_0x462f57,'shapeType':_0x5cee1e,'unitId':_0x3c9afc,'subUnitId':_0x43c003,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}['_createShapePopupMenu'](_0x43f7b1){const _0x370285=_0x209063;if(!_0x43f7b1)return;let _0xedd5db=_0x43f7b1['getUnitId']();this[_0x370285(0x40d)][_0x370285(0x38c)](_0xedd5db)&&!this[_0x370285(0x44a)][_0x370285(0x38c)](_0xedd5db)&&(this['_popupMenuListener'](_0xedd5db),this[_0x370285(0x44a)][_0x370285(0x449)](_0xedd5db));}['_clearPopups'](){const _0x3ad881=_0x209063;this[_0x3ad881(0x384)][_0x3ad881(0x250)](_0x17f0e7=>_0x17f0e7[_0x3ad881(0x46a)]()),this[_0x3ad881(0x384)][_0x3ad881(0x28f)]=0x0;}['_popupMenuListener'](_0x34d460){const _0x2c3b6f=_0x209063;var _0x3ea3aa;let _0x53d226=(_0x3ea3aa=this[_0x2c3b6f(0x40d)][_0x2c3b6f(0x2f7)](_0x34d460))==null?void 0x0:_0x3ea3aa[_0x2c3b6f(0x349)],_0x510de7=_0x53d226==null?void 0x0:_0x53d226['getTransformerByCreate']();!_0x53d226||!_0x510de7||(this[_0x2c3b6f(0x3df)](_0x510de7[_0x2c3b6f(0x37b)][_0x2c3b6f(0x4d3)](()=>{const _0xa27a7=_0x2c3b6f;let _0x5b29a5=_0x510de7[_0xa27a7(0x445)]();if(this[_0xa27a7(0x2a1)](),this[_0xa27a7(0x354)]||_0x5b29a5['size']>0x1)return;let _0x46249c=_0x5b29a5[_0xa27a7(0x1e1)]()[_0xa27a7(0x241)]()[_0xa27a7(0x2b4)];if(!_0x46249c)return;let _0x46ef7e=this[_0xa27a7(0x4e5)][_0xa27a7(0x410)](_0x46249c[_0xa27a7(0x35b)]);if(!_0x46ef7e||_0x46ef7e['drawingType']!==_0x49d30a[_0xa27a7(0x365)]['DRAWING_SHAPE'])return;let {unitId:_0x58d1da,subUnitId:_0x18eab2,drawingId:_0x56ca21,drawingType:_0x54200a}=_0x46ef7e,_0x4a9446=this[_0xa27a7(0x2c9)](_0x58d1da,_0x18eab2,_0x56ca21);if(!_0x4a9446)return;this[_0xa27a7(0x3b1)][_0xa27a7(0x29d)](_0x49d30a['FOCUSING_COMMON_DRAWINGS'],!0x0);let _0x32c226=this['_sheetCanvasPopManagerService'][_0xa27a7(0x1ec)](_0x46249c,{'componentKey':_0x15b03d,'direction':'top-center','offset':[0x0,_0xa40d9e[_0xa27a7(0x26a)]],'extraProps':{'unitId':_0x58d1da,'subUnitId':_0x18eab2,'drawingId':_0x56ca21,'drawingType':_0x54200a,'shapeType':_0x4a9446['shapeType'],'shapeData':_0x4a9446[_0xa27a7(0x4d4)]}});this[_0xa27a7(0x384)]['push'](this[_0xa27a7(0x3df)](_0x32c226)),this[_0xa27a7(0x4e5)][_0xa27a7(0x3c2)]()[_0xa27a7(0x2bd)](_0x17c7c7=>_0x17c7c7[_0xa27a7(0x441)]===_0x58d1da&&_0x17c7c7[_0xa27a7(0x2fe)]===_0x18eab2&&_0x17c7c7[_0xa27a7(0x2e9)]===_0x56ca21)||this[_0xa27a7(0x4e5)][_0xa27a7(0x310)]([{'unitId':_0x58d1da,'subUnitId':_0x18eab2,'drawingId':_0x56ca21}]);})),this['disposeWithMe'](_0x510de7['clearControl$']['subscribe'](()=>{const _0x4e2a5a=_0x2c3b6f;this[_0x4e2a5a(0x2a1)](),this['_contextService'][_0x4e2a5a(0x29d)](_0x49d30a[_0x4e2a5a(0x23f)],!0x1),this['_drawingManagerService'][_0x4e2a5a(0x310)](null);})),this['disposeWithMe'](_0x510de7['changing$'][_0x2c3b6f(0x4d3)](()=>{this['_clearPopups']();})),this['disposeWithMe'](_0x510de7[_0x2c3b6f(0x275)][_0x2c3b6f(0x4d3)](()=>{this['_clearPopups']();})));}[_0x209063(0x2a7)](){const _0x1a45a7=_0x209063;this[_0x1a45a7(0x3df)](this['_commandService'][_0x1a45a7(0x4cc)](_0x327847=>{const _0x4fedc2=_0x1a45a7;if(_0x327847['id']===_0x5e6950['id']){let {unitId:_0x34437f,subUnitId:_0x4a44b2,drawingId:_0x15fd94}=_0x327847[_0x4fedc2(0x2c7)];this['_shapeEditPanelVersion']+=0x1,this[_0x4fedc2(0x2ad)]=this[_0x4fedc2(0x2c9)](_0x34437f,_0x4a44b2,_0x15fd94),this['_clearPopups'](),this['_openShapeEditPanel']();}if(_0x327847['id']===_0x1810f4['id']&&(this[_0x4fedc2(0x2ad)]=null,this['_closeShapeEditPanel']()),_0x327847['id']===_0x4eb2ab[_0x4fedc2(0x273)]['id']){let {unitId:_0x2d1d81,subUnitId:_0x1e9e65,shapeId:_0x207533}=_0x327847[_0x4fedc2(0x2c7)];if(this['_activeShapeInfo']&&this[_0x4fedc2(0x2ad)]['shapeId']===_0x207533){let _0x23704c=this[_0x4fedc2(0x2c9)](_0x2d1d81,_0x1e9e65,_0x207533);_0x23704c&&(this[_0x4fedc2(0x292)]+=0x1,_0x23704c[_0x4fedc2(0x45b)]=this[_0x4fedc2(0x292)],this[_0x4fedc2(0x2ad)]=_0x23704c,this[_0x4fedc2(0x354)]&&this[_0x4fedc2(0x30f)]());}}})),this[_0x1a45a7(0x3df)](this['_drawingManagerService']['focus$']['subscribe'](_0x4d22af=>{const _0x544f08=_0x1a45a7;if(this[_0x544f08(0x354)]===!0x1)return;if(_0x4d22af[_0x544f08(0x28f)]===0x0){this[_0x544f08(0x2ad)]=null,this[_0x544f08(0x40a)]();return;}if(_0x4d22af[_0x544f08(0x28f)]===0x1&&_0x4d22af[0x0][_0x544f08(0x3e8)]===_0x49d30a[_0x544f08(0x365)][_0x544f08(0x4fe)]&&(this[_0x544f08(0x292)]+=0x1,this[_0x544f08(0x2ad)]=this[_0x544f08(0x2c9)](_0x4d22af[0x0][_0x544f08(0x441)],_0x4d22af[0x0][_0x544f08(0x2fe)],_0x4d22af[0x0]['drawingId']),this['_activeShapeInfo'])){this[_0x544f08(0x30f)]();return;}let _0x381ca4=_0x4d22af[_0x544f08(0x3a4)](_0x36dcae=>_0x36dcae[_0x544f08(0x3e8)]===_0x49d30a[_0x544f08(0x365)]['DRAWING_SHAPE']);if(_0x4d22af[_0x544f08(0x28f)]>0x1&&_0x381ca4[_0x544f08(0x28f)]===_0x4d22af[_0x544f08(0x28f)]){if(this['_shapeEditPanelVersion']+=0x1,this[_0x544f08(0x2ad)]=this[_0x544f08(0x2c9)](_0x4d22af[0x0][_0x544f08(0x441)],_0x4d22af[0x0][_0x544f08(0x2fe)],_0x4d22af[0x0][_0x544f08(0x2e9)]),this[_0x544f08(0x2ad)]){this[_0x544f08(0x30f)]();return;}}else{if(this[_0x544f08(0x292)]+=0x1,this[_0x544f08(0x2ad)]=this['_getShapeInfo'](_0x4d22af[0x0][_0x544f08(0x441)],_0x4d22af[0x0][_0x544f08(0x2fe)],_0x4d22af[0x0]['drawingId']),this[_0x544f08(0x2ad)]){this[_0x544f08(0x2ad)][_0x544f08(0x42d)]=!0x0,this[_0x544f08(0x30f)]();return;}}this[_0x544f08(0x40a)]();}));}[_0x209063(0x30f)](){const _0x2ab053=_0x209063;this[_0x2ab053(0x2ad)]&&(this[_0x2ab053(0x281)]=this[_0x2ab053(0x420)][_0x2ab053(0x2cd)]({'id':_0x1e65b6,'header':{'title':this[_0x2ab053(0x2de)]['t']('sheets-shape-ui.formatShape')},'width':0x184,'children':{'label':_0x1e65b6,...this[_0x2ab053(0x2ad)]},'onClose':()=>{const _0x21e86b=_0x2ab053;this[_0x21e86b(0x4e5)][_0x21e86b(0x310)](null),this[_0x21e86b(0x3b1)]['setContextValue'](_0x49d30a['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x21e86b(0x281)]=null;}}),this[_0x2ab053(0x354)]=!0x0);}[_0x209063(0x40a)](){const _0x487feb=_0x209063;this[_0x487feb(0x354)]=!0x1,this['_sidebarService'][_0x487feb(0x336)](_0x1e65b6),this[_0x487feb(0x281)]=null,this['_contextService'][_0x487feb(0x29d)](_0x49d30a['FOCUSING_COMMON_DRAWINGS'],!0x1),this['_drawingManagerService'][_0x487feb(0x310)](null);}};_0xed137=_0x276893([_0x3cbe95(0x0,_0x49d30a[_0x209063(0x31b)]),_0x3cbe95(0x1,(0x0,_0x49d30a['Inject'])(_0xa9133b[_0x209063(0x37c)])),_0x3cbe95(0x2,_0xa9133b[_0x209063(0x422)]),_0x3cbe95(0x3,(0x0,_0x49d30a['Inject'])(_0x4eb2ab[_0x209063(0x264)])),_0x3cbe95(0x4,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x49d30a['LocaleService'])),_0x3cbe95(0x5,_0x49d30a['ICommandService']),_0x3cbe95(0x6,_0x510035[_0x209063(0x239)]),_0x3cbe95(0x7,(0x0,_0x49d30a['Inject'])(_0x100e66[_0x209063(0x302)])),_0x3cbe95(0x8,_0x49d30a[_0x209063(0x4f6)]),_0x3cbe95(0x9,_0x40dd84[_0x209063(0x2ba)]),_0x3cbe95(0xa,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x3da7be))],_0xed137);let _0x412986=class extends _0x49d30a[_0x209063(0x1cc)]{constructor(_0x1e4d12=_0x3d157b,_0x130bd9,_0x10b77d,_0x559c51,_0xd145fa){const _0x48635f=_0x209063;super(),this[_0x48635f(0x4ea)]=_0x1e4d12,this['_injector']=_0x130bd9,this[_0x48635f(0x240)]=_0x10b77d,this[_0x48635f(0x332)]=_0x559c51,this[_0x48635f(0x40d)]=_0xd145fa;let {..._0x2b9487}=(0x0,_0x49d30a[_0x48635f(0x49e)])({},_0x3d157b,this[_0x48635f(0x4ea)]);this[_0x48635f(0x332)][_0x48635f(0x269)](_0x48635f(0x47b),_0x2b9487),this[_0x48635f(0x346)]();}[_0x209063(0x288)](){const _0x5d2331=_0x209063;(0x0,_0x49d30a[_0x5d2331(0x1ed)])(this[_0x5d2331(0x27a)],[[_0xed137],[_0x2d94be],[_0x4fc7b5],[_0x3d9ac3]]);}['onSteady'](){const _0x517366=_0x209063;this[_0x517366(0x27a)][_0x517366(0x4cd)](_0xed137)[_0x517366(0x1fe)]();}['onReady'](){const _0xc7f959=_0x209063;[[_0x2b6d77],[_0x54179a],[_0x21fb53]][_0xc7f959(0x250)](_0x56d616=>this[_0xc7f959(0x27a)][_0xc7f959(0x449)](_0x56d616)),(0x0,_0x49d30a[_0xc7f959(0x1ed)])(this['_injector'],[[_0x21fb53],[_0x54179a]]),this[_0xc7f959(0x40d)][_0xc7f959(0x334)](_0x49d30a['UniverInstanceType'][_0xc7f959(0x295)],[_0x2b6d77]),this['_renderManagerService']['registerRenderModule'](_0x49d30a[_0xc7f959(0x276)]['UNIVER_SHEET'],[_0x43f6ab]),this['_renderManagerService']['registerRenderModule'](_0x49d30a[_0xc7f959(0x276)][_0xc7f959(0x295)],[_0x38186c]),this[_0xc7f959(0x40d)][_0xc7f959(0x334)](_0x49d30a[_0xc7f959(0x276)][_0xc7f959(0x295)],[_0x312b3e]),this[_0xc7f959(0x40d)][_0xc7f959(0x334)](_0x49d30a[_0xc7f959(0x276)][_0xc7f959(0x4b9)],[_0x24a7bf]);}[_0x209063(0x46f)](){const _0x593e15=_0x209063;this[_0x593e15(0x27a)][_0x593e15(0x449)]([_0x58c754]),this['_injector'][_0x593e15(0x4cd)](_0x58c754);let _0x407638=this[_0x593e15(0x27a)];[[_0xed137],[_0x2d94be],[_0x4fc7b5],[_0x3d9ac3],[_0x4aab0f],[_0x3da7be],[_0x19f29c],[_0x43d42e],[_0x54b75c]]['forEach'](_0x237498=>_0x407638[_0x593e15(0x449)](_0x237498)),(0x0,_0x49d30a[_0x593e15(0x1ed)])(this[_0x593e15(0x27a)],[[_0xed137],[_0x2d94be],[_0x4fc7b5],[_0x4aab0f],[_0x3da7be],[_0x19f29c],[_0x43d42e],[_0x54b75c]]);}[_0x209063(0x346)](){const _0x49bf95=_0x209063;[_0x454166,_0x39f376,_0x1810f4,_0x5e6950,_0x3dd6d4,_0x2d736f][_0x49bf95(0x250)](_0x447740=>this[_0x49bf95(0x3df)](this['_commandService'][_0x49bf95(0x4ae)](_0x447740)));}};_0x28368a(_0x412986,_0x209063(0x2f5),_0x49d30a[_0x209063(0x276)]['UNIVER_SHEET']),_0x28368a(_0x412986,_0x209063(0x4cb),_0x209063(0x226)),_0x28368a(_0x412986,_0x209063(0x28c),_0x102c9e),_0x28368a(_0x412986,_0x209063(0x45b),_0x2234cd),_0x412986=_0x276893([(0x0,_0x49d30a[_0x209063(0x4fa)])(_0x9f095[_0x209063(0x207)],_0xa40d9e[_0x209063(0x255)],_0x4c7223['UniverSheetsDrawingUIPlugin'],_0x4eb2ab['UniverSheetsShapePlugin']),_0x3cbe95(0x1,(0x0,_0x49d30a['Inject'])(_0x49d30a[_0x209063(0x368)])),_0x3cbe95(0x2,_0x49d30a[_0x209063(0x4c5)]),_0x3cbe95(0x3,_0x49d30a['IConfigService']),_0x3cbe95(0x4,_0x40dd84[_0x209063(0x2ba)])],_0x412986),_0x11b69c[_0x209063(0x2a4)]=_0xbe3a61,Object[_0x209063(0x496)](_0x11b69c,_0x209063(0x21d),{'enumerable':!0x0,'get':function(){return _0x412986;}});}));