@univerjs-pro/docs-shape-ui 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +23 -23
- package/lib/types/commands/command/update-doc-drawing-metadata.command.d.ts +0 -15
- package/lib/types/commands/menu/object-list.menu.d.ts +0 -4
- package/lib/types/view-model/shape-data-model.d.ts +0 -8
- package/lib/types/views/ShapeOptions.d.ts +0 -26
- package/lib/types/views/shape-editor-panel/ShapeLineEditor.d.ts +0 -12
- package/lib/types/views/shape-editor-panel/index.d.ts +0 -1
- package/lib/types/views/shape-floating-toolbar/shape-floating-toolbar-utils.d.ts +0 -1
- package/lib/types/views/shape-text-editor/ShapeTextFloatToolbar.d.ts +0 -2
- package/lib/types/views/shapes.d.ts +0 -58
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2b58b8=_0x73b8;(function(_0x2f8989,_0x267d73){const _0x155858=_0x73b8,_0x784576=_0x2f8989();while(!![]){try{const _0x1f5e37=parseInt(_0x155858(0x1ad))/0x1*(-parseInt(_0x155858(0x22a))/0x2)+parseInt(_0x155858(0x37d))/0x3+-parseInt(_0x155858(0x337))/0x4*(-parseInt(_0x155858(0x30f))/0x5)+-parseInt(_0x155858(0x159))/0x6+-parseInt(_0x155858(0x117))/0x7*(-parseInt(_0x155858(0x355))/0x8)+parseInt(_0x155858(0x2e9))/0x9+parseInt(_0x155858(0x2c8))/0xa*(-parseInt(_0x155858(0x266))/0xb);if(_0x1f5e37===_0x267d73)break;else _0x784576['push'](_0x784576['shift']());}catch(_0x226d17){_0x784576['push'](_0x784576['shift']());}}}(_0x3bfd,0x38591));import{FormulaShapeAnimationController as _0x4df99d,MobileShapeEditorControls as _0x406ee5,MobileShapeEditorService as _0x4b38a4,MobileShapePickerPanel as _0xe027d8,SHAPE_CHANGE_PICKER_COMPONENT as _0x342b81,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x48d4bb,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x199a5b,ShapeEditPanel as _0x11d750,ShapeFloatingToolbar as _0x1ee75a,ShapeFloatingToolbarService as _0x54ad5c,ShapeFloatingToolbarToggleFactory as _0x17729f,ShapeFormulaRibbonControl as _0x38d486,ShapeGroupEnum as _0x1aea6e,ShapePickerDropdown as _0x43ddc3,ShapePickerPanel as _0x4d11e9,ShapeQuickStyleGallery as _0x11cbb8,ShapeStyleRibbonControl as _0x5de1c8,ShapeTextEditorContainer as _0x4573e8,ShapeTextFloatMenuRenderControllerBase as _0x4f9593,ShapeTextFloatToolbar as _0x2439df,ShapeTextHyperLinkHoverController as _0x436d06,ShapeTextHyperLinkInfo as _0x1151ff,ShapeTextHyperLinkPopupService as _0x1edd14,ShapeTextRibbonControl as _0x21ece6,ToggleShapeFloatingToolbarOperation as _0x5bf1e4,UniverShapeEditorMobileUIPlugin as _0x3b9966,UniverShapeEditorUIPlugin as _0x21cd82,activateDrawingObject as _0x30f783,bindRenderTransformerLifecycle as _0x59c4f1,buildShapeTextDataUpdate as _0x4b7a9f,clearActiveDrawingObjects as _0x168dd8,createShapeTextHyperLinkRegions as _0x269858,drawFormulaShapeAnimationLayers as _0x1ecc92,getDrawingTypeNameKey as _0x29fa97,getTextModel as _0xf92dc,getTextStyle as _0x2f8313,normalizeShapeTextModel as _0x361202,plainShapeTextToDocumentData as _0x20f7f3,prepareShapeTextDocumentData as _0x1bee13,prepareShapeTextDocumentData as _0x3b74bd,registerShapeFormatPainter as _0x3dbd87,resolveFormulaShapeAutoFitSize as _0x57aa48,resolveShapeContextualRibbonHostMode as _0x5387c5,resolveShapeTextDocumentPageHeight as _0x261110,resolveShapeTextDocumentRenderLayout as _0x1e51d4,resolveShapeTextEditorBehaviorShapeData as _0x1e45b8,resolveShapeTextEditorWrapStrategy as _0x46d47a,resolveShapeTextHyperLinkAt as _0xccb99c,resolveShapeTextHyperLinkObject as _0xb163f0,shouldAllowShapeTextEditorHostSizeShrink as _0x37cf60,shouldClipShapeTextDocument as _0x3440f6,useFormulaShapeToolbar as _0x4bb66f}from'@univerjs-pro/shape-editor-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0x191d2f,DOC_CONTENT_INSERT_MENU_ID as _0x53ef11,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x906c27,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x2b37e1,DocCanvasPopManagerService as _0x44b27e,DocEventManagerService as _0x20631e,DocLayoutInteractionService as _0x4c3397,DocParagraphMenuService as _0x11940c,DocPrintInterceptorService as _0x50c28a,DocRenderController as _0x2215d8,DocSelectionRenderService as _0x56a574,EMPTY_PARAGRAPH_MENU_ID as _0x3a423f,INSERT_BELLOW_MENU_ID as _0xcccbbd,UniverDocsMobileUIPlugin as _0x4a5d16,UniverDocsUIPlugin as _0x191fd8,VIEWPORT_KEY as _0x59aab8}from'@univerjs/docs-ui';import{BuiltInUIPart as _0xf47892,ComponentManager as _0x391057,ContextMenuGroup as _0xbc21b0,ContextMenuPosition as _0x519876,FloatingObjectToolbarPosition as _0x825cf2,FormatPainterSessionService as _0x292d84,IMenuManagerService as _0x955a33,IRibbonService as _0x16839e,ISidebarService as _0x4bee7b,IUIPartsService as _0x4050f2,IconManager as _0x3fa0b0,MenuItemType as _0x56fa91,MenuManagerPosition as _0x23e24a,MobileMenu as _0x2cf0e1,ObjectPermissionButton as _0x3d2d26,RibbonInsertGroup as _0x4dd0cf,connectInjector as _0x370dd2,getMenuHiddenObservable as _0x26c4d6,useDependency as _0x16858b,useObservable as _0x104db2}from'@univerjs/ui';import{DEFAULT_DOC_SHAPE_HEIGHT as _0x2e80b2,DEFAULT_DOC_SHAPE_WIDTH as _0x2a901a,DocShapeAnchorPosition as _0x24ab2d,DocsShapeService as _0xc58a76,InsertDocShapeCommand as _0x1b7b6a,UniverDocsShapePlugin as _0x33aa0d,UpdateDocDrawingMetadataCommand as _0x155b37,UpdateDocShapeDataCommand as _0x544402,UpdateDocShapeDataMutation as _0x3d4cfc}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x34e787,ShapeArrowSizeEnum as _0xf89a84,ShapeArrowTypeEnum as _0x1c38b1,ShapeDefaultConfig as _0xda9354,ShapeFillEnum as _0x377cba,ShapeLineTypeEnum as _0x52f7da,ShapeModel as _0x211894,ShapeRenderModeEnum as _0x1f70b1,ShapeTextAutoFitType as _0x52fc4f,ShapeTypeEnum as _0x32c60e,isConnectorShape as _0x3a6b70,resolveShapeTextBodyBehavior as _0x49519b}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x13f23d,UniverShapeEditorPlugin as _0x4f835e,applyQuickStyleToShapeData as _0x92fd7b,cloneShapeDataForType as _0x41e0ce,createShapeFormulaDocument as _0x5273c3,createShapeTextBoxShapeData as _0x42690e,getShapeQuickStylePreset as _0x1a66ee,getShapeQuickStyleType as _0x42e968,resolveActiveShapeQuickStylePresetId as _0x1547f4}from'@univerjs-pro/shape-editor';import{ArrangeTypeEnum as _0x3963c4,BooleanNumber as _0x562bb0,CommandType as _0x1d6912,DependentOn as _0x5d76b8,Disposable as _0x587b62,DisposableCollection as _0x5570bd,DocumentDataModel as _0x4107fb,DrawingTypeEnum as _0x11efaa,FOCUSING_COMMON_DRAWINGS as _0x1ec544,FOCUSING_SHAPE_TEXT_EDITOR as _0x386d22,HorizontalAlign as _0x5cdaf0,ICommandService as _0x5f3c0a,IConfigService as _0x2f3c71,IContextService as _0x311686,IImageIoService as _0x1ec634,IPermissionService as _0x562515,IURLImageService as _0x57ea26,IUniverInstanceService as _0x52a285,Inject as _0xbdb0e2,Injector as _0x57c331,LocaleService as _0x5af3e2,Plugin as _0x2f0f12,PositionedObjectLayoutType as _0x292c91,UniverInstanceType as _0x19a5e9,VerticalAlign as _0x41d65f,createInternalEditorID as _0x3abe1f,generateRandomId as _0x205d4b,getParagraphContentStartOffset as _0x9501d0,merge as _0x4cbbbe,registerDependencies as _0x4136fc,toDisposable as _0x390b1,touchDependencies as _0x44a503}from'@univerjs/core';import{DocInterceptorService as _0x267fb9,DocSelectionManagerService as _0x30b345,RichTextEditingMutation as _0x2dba6b,SetDocumentPermissionCommand as _0x2ba39d,UniverDocsPlugin as _0x2627bb,canEditDocumentTargets as _0x353611,getDocumentDrawingSegmentId as _0x384956,getDocumentEntityParentPermissionObjectIds as _0x4fa6cb,getDocumentEntityPermissionObjectId as _0x418902,getDocumentPermissionValue as _0x196f76}from'@univerjs/docs';import{IDocDrawingService as _0x1c6928,RemoveDocDrawingCommand as _0x6ceb84,SetDocDrawingArrangeCommand as _0x441b4f,TextWrappingStyle as _0x31600f,UpdateDocDrawingWrappingStyleCommand as _0x210103,UpdateDrawingDocTransformCommand as _0x2f3fc9}from'@univerjs/docs-drawing';import{CURSOR_TYPE as _0x5c1434,Circle as _0x20e69b,DRAWING_OBJECT_LAYER_INDEX as _0x59670b,DocumentSkeleton as _0x297bbe,DocumentViewModel as _0x2f6ee9,Documents as _0x501bdc,IRenderManagerService as _0x5479fc,RENDER_CLASS_TYPE as _0x585778,Shape as _0x55a1bf,Transform as _0x4b5d71,UniverRenderEnginePlugin as _0xd9d11,Vector2 as _0xd9a358,getLastLine as _0x5abd28,setDocsCustomBlockRenderViewportProvider as _0x3e088f}from'@univerjs/engine-render';import{IDrawingManagerService as _0x1f1d2f,SetDrawingSelectedOperation as _0x2aa15c,UniverDrawingPlugin as _0x224c4f,getDrawingShapeKeyByDrawingSearch as _0x3ac7e0}from'@univerjs/drawing';function _0x3bfd(){const _0x118904=['canvas','_closeShapeEditPanel','add$','_hide','setSrcRect','docs-shape-ui.shape-format.style-ribbon-control','fallbackWidth','applyPoint','_registerDrawingTransformHandler','_contextService','pages','Rect','MoveDownIcon','_transformCalculateSrcRect','_registerIcons','_getShapePopup','visible','docs-shape-ui.crop.shape','getState','refreshAdjustControls','adjHandleFill','find','_unitId','_attachAdjustEvent','forEach','408715BisTtX','some','paragraphMenuPlacement','docs-shape-ui.mobile.style','_popupTargetKeys','docs-shape-ui.ribbon.shape-format.arrange-back','getPresentation','_shapeRenderController','isEditing','_addShapeAdjustControl','getTransformerByCreate','docs-shape-ui.ribbon.shape-format.text-control','drawing-ui.objectListPanel.sectionCanvas','CROSSHAIR','docs-shape-ui.textWrap.topAndBottom','clearAdjustValue','getAdjustValueByName','_sidebarDisposable','subscribeEvent','WRAP_SQUARE','componentKey','_drawingManagerService','_getShapeInfo','type','actualHeight','formulaBinding','_disposePopupsByUnit','docs-shape-ui.textWrap.inFrontText','DRAWING_DOM','_isShouldShowDrawingShapeAdjust','disposeWithMe','Line','_baseShapeWidth','getRealBound','calculate','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','0.14','fillType','push','_transform','20QJmKkc','univer-grid\x20univer-gap-5\x20univer-p-3','params','_adjustPointObjects','buildClipPath','span','drawing-ui.objectListPanel.empty','drawing','_docsShapeService','endArrow','draw','beginPath','doc.shape.object-list.panel','objects','horizontal','error','getValue','getShapeModel','getDrawingEffectBounds','_initUIPart','rect','COMMAND','_commandService','_menuManagerService','_popupMenuListener','context-bar','_activeAdjustInfo','shape-editor-ui.arrange.back','onPointerDown$','docs-shape-ui.mobile.text','7144DDVoGU','changeEnd$','drawing-ui.objectListPanel.hide','drawing-ui.objectListPanel.descriptionPlaceholder','VIEW_MAIN','hasDefault','splice','_renderManagerService','_measure','gradientEndColor','drawing-ui.objectListPanel.description','startArrow','drawing-ui.objectListPanel.filterLocked','executeCommand','syncExecuteCommand','length','clearControl$','registerComponent','drawing-ui.objectListPanel.title','_shapeEditPanelVersion','onDblclick$','DocsShapeWrapTopBottomIcon','getSkeletonData','doc','URL','_getActiveDrawingShape','drawWith','transformByState','editingParams$','clipHeight','getInterceptPoints','DocsShapeWrapInFrontOfTextIcon','restore','_shapeFormulaService','_visible','doc-shape-adjust-point-','docs-shape-ui.textWrap.inline','changing$','svg','_subUnitId','1313130wnQQYN','_isOpenedShapeEditPanel','_context','refreshShapeFillImage','drawing-ui.objectListPanel.typeNames.','setCursor','unitId','_getActiveDrawingParam','div','addObject','_activeShapeAdjustPointList','formulaPresentation','isRenderLinePointsMode','_lastEditingShapeKey','contentVerticalOffset','symbol','register','drawing-ui.objectListPanel.close','scene','back','text','DocsShapeTextEditorContainer','translate','getSnapshot','skeFooters','left','get','top-bottom','BEHIND_TEXT','getMatrix','644sfkCtr','layoutType','None','add','oKey','-layout','getSelectedObjectMap','docs-shape-ui.insertShape','getShapeType','sectionCanvas','_permissionService','_registerComponents','_initPrinting','getSelfOrHeaderFooterModel','entries','_isStartAdjusting','order','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','animationEnabled','_getSceneByUnitId','shape-editor-ui.arrange.backward','_registerDrawingFocusChangeHandler','DOCS_SHAPE_UI_PLUGIN','top','dispose','intercept','presetId','_update','getActualSize','_updateAdjustControlPositions','style','fillImageSource','offsetX','subscribe','getPageDrawingIds','behindText','getVisible','Arrow','_updateShape','moveRange','shape-editor-ui.toolbar.changeShape','_toScenePoint','fallbackHeight','drawingType','warn','shapeKey','getShapeTextData','resize','_baseShapeTop','getBody','doc.shape.edit.panel','default','DocsShapeWrapInlineIcon','_componentManager','adjHandleSize','isInGroup','DRAWING_SHAPE','RIBBON','packageName','getShapeDataById','invert','setConfig','behind','_applyFormulaAutoFitSize','menu','stopPropagation','1279014bvqaWJ','docs-shape-ui.ribbon.shape-format.formula-control','_initMenu','docs-shape-ui.ribbon.shape-format.style-control','_activeShapeInfo','docs-shape-ui.ribbon.shape-format.wrapping-style','1.0.4','drawingId','_getDependencies','0\x200\x2020\x2020','_canEdit','_docLayoutInteractionService','_univerInstanceService','map','headerLayoutKey','subtle','panel','_formulaKey','_drawRichText','_editingParams$','_clipService','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','filter','getShapeData','_getDisposePopups','title','drawing-ui.objectListPanel.unlock','height','bottom','cells','width','WRAP_NONE','version','docs-shape-ui.quickStyles','label','shapeModel','drawing-ui.objectListPanel.unlockAll','prstGeom','popup','fill','_injector','multiply','name','setCollapsedIds','Path','backward','_getShapeAdjustPointListById','shapeText','disableObjectsEvent','featurePluginUpdateNotification','with','string','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','flipY','presentationChanged$','call','stroke','DocsShapeWrapSquareIcon','createControl$','current','function','composeMatrix','getDrawingSearch','_adjHandlerPointerUp','values','setCanUseShapeClip','_iconManager','object','getAutoFitPresentations','onCommandExecuted','ancestorTransform','canDispose','doc.operation.close-doc-shape-format-panel','delete','getDrawingPoints','drawings','animateFormulaPresentation','onStarting','shapeId','drawing-ui.objectListPanel.collapse','skeHeaders','_shapeTextEditingService','pageWidth','getShapeTypeById','13gidtUU','shapeData','_clearCompletionFrame','skeTables','wrapStrategy','_insertShapes','refreshTransform$','drawing-ui.objectListPanel.noSelection','getUnitType','PictureFill','SolidLine','startOffset','_activeShapeId','TopmostIcon','footerId','forward','_getShapeAdjustInfosById','contentHeight','setAdjustValueByName','drawing-ui.objectListPanel.hideAll','srcRect','setShapeData','docs-shape-ui.hidePanel','#2563EB','updateShapeFillImage','drawing-ui.objectListPanel.moveForward','doc.operation.apply-shape-quick-style','true','getRenderUnitById','FromArray','_refreshShapeData','Image','create','renderDrawingShape','drawing-ui.objectListPanel.lockHint','_handleCreateControl','front','TOP','max','1.2','drawing-ui.objectListPanel.expand','shapeType','clearAdjustControls','getParent','@univerjs-pro/docs-shape-ui','selectable','INLINE','value','set','unsubscribe','setPrstGeom','_adjName','interceptor','_drawShapeText','drawing-ui.objectListPanel.showAll','trim','inline','clear','save','_mobileEditorService','path','icon','_clearPopups','getDrawingOrder','getOwnPropertyDescriptor','clip','5.5','strokeWidth','_canEditShape','cos','1em','_shapeId','docs-shape-ui.deleteShape','scale','TRUE','updateContext','asObservable','drawing-ui.objectListPanel.lockAll','LAYOUT','transformForAngle','PaintIcon','docs-shape-ui.mobile.delete','getDrawingVisible','_getRenderModules','docs-shape-format-font-family-menu','getObjectIncludeInGroup','DocumentEntity','_localeService','LEFT','_baseShapeHeight','doc.operation.open-shape-object-list-panel','setPresentation','currentAdjustValues','onPointerUp$','docs-shape-ui.textWrap.square','isHorizontal','getDrawingEditable','onPointerMove$','marginTop','docs-shape-text-','_urlImageService','_docDrawingShapeRenderController','getDrawingData','close','getTransformer','_layoutInteraction','PRINTING_COMPONENT_COLLECT','registerRenderModule','drawing-ui.objectListPanel.unlockHint','_initCommands','pluginName','render','below','subUnitId','univer-box-border\x20univer-px-4\x20univer-text-sm','_setTransForm','getViewports','segmentId','classType','refreshFormulaPresentation','next','update$','parent','getCurrentTypeOfUnit$','_renderWithCache','26414UoTtgv','_drawSimpleText','PARAGRAPH','currentColor','DRAWING_IMAGE','_shapeFloatingToolbarService','transformVector2SceneCoord','iterator','canvasElement','isFinite','UNIVER_DOC','onRendered','endOffset','getContextValue','UUID','beginInteraction','_formulaAnimation','attachTransformerTo','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getActiveTextRange','data','drawing-ui.objectListPanel.details','spaceBelowApply','_draw','enhanceParams','extensionGroups','mergeMenu','clip-','description','getDrawingByParam','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','_ribbonService','_registerImageShapeClipDelegate','drawing-ui.objectListPanel.filterHidden','none','flipX','onload','shape-editor-ui.arrange.front','toPrimitive','defineProperty','drawing-ui.objectListPanel.filterAll','_imageIoService','vertical-center','Medium','decorate','docs-shape-ui.shape-format.text-ribbon-control','docs-shape-ui.ribbon.shape-format','src','drawing-ui.objectListPanel.nameInput','sheet.image-clip.shape-picker.component','has','_configService','dataModel','size','complete','docs-shape-ui.ribbon.shape-format.arrange-forward','getFocusDrawings','footerLayoutKey','drawing-ui.objectListPanel.search','clipByShape','11DYYbnJ','_registerPickers','debounceRefreshControls','resolveHyperLinkAt','Copy','WRAP_TOP_AND_BOTTOM','_updateShapeAdjustControls','docs-shape-ui.openPanel','completeEditing','behindDoc','_config','_completionFrame','getDrawingDataForUnit','getImage','getUnitId','_loadAndSetImage','angle','transform','ObjectLayersIcon','keys','autoFitType','shape-text-','_initEvents','getActiveViewportByCoord','OPERATION','permissionPointUpdate$','BUTTON','_instanceService','MEDIA','getUnit','square','SELECTOR','_hyperLinkRegions','showContextualTab','updateDocumentStyle','_updateSrcRectByTransform','_baseShapeLeft','MoveUpIcon','UNIVER_SHEET','drawing-ui.objectListPanel.lock','docs-shape-ui.textWrap.behindText','IN_FRONT_OF_TEXT','doc.shape.floating-toolbar','enableObjectsEvent','_endLayoutInteraction','setFillImage','attachPopupToObject','SHAPE_TEXT','doc.operation.update-shape-type','SpAutoFit','getAllRenderersOfType','isHit','isMainScene','prototype','offsetY','sectionFloating','docs-shape-ui.formatShape','drawing-ui.objectListPanel.name','fillImageSourceType','hidden','getDrawingOKey','clone','_formulaShapes','_sidebarService','getShapePopupMenus','BottomIcon','_createShapeAdjustControls','setFallbackVisible','_adjHandlerPointerMove','docs-shape-ui.objectListPanel.title','top-center','localeService','docs-shape-ui.shape-format.quick-style-gallery','color','_registerOperations','docs-shape-contextual-ribbon','isLineShape','constructor','custom','setFormulaPresentation','getCurrentUnitOfType','docs-shape-ui.objectListPanel.open','round','getShapeTextRect','isRichText','_onSavingEditorData$','_toVisualAdjustPoint','_props','headerId','_docPrintInterceptorService','_registerObjectListPanel','paragraph','drawing-ui.objectListPanel.locate','ShapeFormatSettingIcon','disableShapeOption','getEditing','adjName','extraProps','4254790CzjEtR','updateDocumentDataMargin','open','cancelEditing','docs-shape-ui.ribbon.shape-format.arrange-front','_clearShapeAdjustControls','SHAPE','sin','_docCanvasPopManagerService','setContextValue','drawing-ui.objectListPanel.show','getInverseCoord','drawing-ui.objectListPanel.sectionFloating','reverse','M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','_releaseRenderCache','calcAdjValues','translateWithPrecision','shape-editor-ui.toolbar.quickStyles','clipTop','changeStart$','_activeShapeModel','adjHandleStroke','_loadShapePictureFill','_getFocusedShapeAtPoint','_init','pick','getImageSourceCache','image','focusDrawing','_initEditingParams','vertical','setEditing','1013031xzAjQU','docs-shape-ui.shape-format.wrapping-style-label','_openShapeEditPanel','addImageSourceCache','DocsShapeWrapBehindTextIcon','makeDirty','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','isDrawingObject','_registerFloatingToolbar','remove$','focus$','onReady','OTHERS'];_0x3bfd=function(){return _0x118904;};return _0x3bfd();}import{DrawingCommonPanel as _0x45ca4b,DrawingImageClipService as _0x20d505,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x2c1395,MobileObjectListPanel as _0x4bf5db,OBJECT_LIST_FLOATING_SECTION_ID as _0xa72627,ObjectListPanelBase as _0x77d035,UniverDrawingMobileUIPlugin as _0x10c85b,UniverDrawingUIPlugin as _0x38457f,getObjectListPanelSectionIdForDrawingType as _0x590bb6,insertGroupObject as _0xfd7c86}from'@univerjs/drawing-ui';import{Fragment as _0x18996c,jsx as _0x9daf1d,jsxs as _0x29ba63}from'react/jsx-runtime';import{BehaviorSubject as _0x4ac5d9,Observable as _0x15ba3b,distinctUntilChanged as _0x325f40,map as _0x41dd31,merge as _0x3f58bc,of as _0x156e35,startWith as _0x19f0b7}from'rxjs';import{UniverLicensePlugin as _0x23a3e9}from'@univerjs-pro/license';import{DocDrawingPosition as _0x1adf5f,DocDrawingTextWrap as _0x4fb651,MobileDocDrawingPosition as _0x3ac16a,MobileDocDrawingTextWrap as _0x44ac19,UniverDocsDrawingMobileUIPlugin as _0x5994c3,UniverDocsDrawingUIPlugin as _0x26ca13}from'@univerjs/docs-drawing-ui';import{BottomIcon as _0x30111e,MoreDownIcon as _0x4067c9,MoreUpIcon as _0x1f633b,MoveDownIcon as _0x23588f,MoveUpIcon as _0x50d193,ObjectLayersIcon as _0x7b836,ShapeFormatSettingIcon as _0x38092e,TextWrapShapeIcon as _0x5e10e7,TopmostIcon as _0x37e31f}from'@univerjs/icons';import{MobileActionRow as _0x1cbd0b}from'@univerjs/design';import{memo as _0x4417c9,useEffect as _0x2951cf,useMemo as _0x17c0eb,useReducer as _0x3f2dd0,useState as _0x1960d6}from'react';import{UnitAction as _0x5c2975,UnitObject as _0xb843b5}from'@univerjs/protocol';function wr(_0xd08d52,_0x170c5a){const _0x452e40=_0x73b8;if(_0x170c5a){if(_0x3a6b70(_0xd08d52)&&(_0x170c5a[_0x452e40(0x360)]||_0x170c5a[_0x452e40(0x340)]))return{'ln':{'startArrow':_0x170c5a['startArrow']?{'type':_0x1c38b1[_0x452e40(0x13c)],'size':_0xf89a84[_0x452e40(0x255)]}:void 0x0,'endArrow':_0x170c5a['endArrow']?{'type':_0x1c38b1[_0x452e40(0x13c)],'size':_0xf89a84['Large']}:void 0x0}};if(_0xd08d52===_0x32c60e[_0x452e40(0x301)]&&(_0x170c5a['horizontal']||_0x170c5a[_0x452e40(0x2e7)]))return _0x42690e({'fill':{'fillType':_0x377cba['SolidFill'],'color':'#3B82F6'},'isHorizontal':!!_0x170c5a[_0x452e40(0x345)],'stroke':{'lineStrokeType':_0x52f7da[_0x452e40(0x1b7)],'width':0x1,'color':_0x452e40(0x1c4)}});}}function Tr(_0x1a532a,_0x2ea3c5){const _0x5a889e=_0x73b8;var _0x163cd4;let _0xc731d3=_0x2ea3c5[_0x5a889e(0x222)]??'',_0x53a4f3=(_0x163cd4=_0x1a532a[_0x5a889e(0x124)](_0xc731d3))==null?void 0x0:_0x163cd4[_0x5a889e(0x148)]();if(!_0x53a4f3)return null;let _0x3f580d=_0x53a4f3['paragraphs']??[],_0xb72fc9=_0x3f580d[_0x5a889e(0x30b)](_0x5a1fe5=>{const _0x3e5dc7=_0x5a889e;let _0x27c1d4=_0x9501d0(_0x53a4f3,_0x5a1fe5);return _0x2ea3c5[_0x3e5dc7(0x1b8)]>=_0x27c1d4&&_0x2ea3c5[_0x3e5dc7(0x1b8)]<=_0x5a1fe5['startIndex'];})??_0x3f580d[_0x3f580d[_0x5a889e(0x364)]-0x1];return _0xb72fc9?{'paragraphId':_0xb72fc9['paragraphId'],'segmentId':_0xc731d3,'position':_0x24ab2d['OFFSET'],'offset':_0x2ea3c5['startOffset']-_0x9501d0(_0x53a4f3,_0xb72fc9)}:null;}function Er(_0x324ea0,_0x848faf,_0x9a58f8){const _0x249fc3=_0x73b8;var _0x5e8cfe,_0x203564;if(!_0x9a58f8)return null;let _0x5ca359=(_0x5e8cfe=_0x324ea0[_0x249fc3(0x113)](_0x5479fc)[_0x249fc3(0x1c9)](_0x848faf))==null?void 0x0:_0x5e8cfe[_0x249fc3(0x18b)](_0x11940c)['activeTarget'];if(!_0x5ca359)return null;let _0x21c35f=_0x9a58f8===_0x249fc3(0x21d)?{'startOffset':_0x5ca359[_0x249fc3(0x13e)][_0x249fc3(0x236)],'endOffset':_0x5ca359[_0x249fc3(0x13e)][_0x249fc3(0x236)]}:_0x5ca359['menuRange'];return{'startOffset':_0x21c35f[_0x249fc3(0x1b8)],'endOffset':_0x21c35f['endOffset'],'collapsed':_0x21c35f[_0x249fc3(0x1b8)]===_0x21c35f[_0x249fc3(0x236)],'segmentId':((_0x203564=_0x5ca359[_0x249fc3(0x2c1)])==null?void 0x0:_0x203564['segmentId'])??''};}const U={'type':_0x1d6912['COMMAND'],'id':'doc.command.menu-insert-shape','handler':async(_0x3e0818,_0x2faaf7)=>{const _0x5d3208=_0x73b8;let _0x3326c4=_0x3e0818[_0x5d3208(0x113)](_0x52a285)['getCurrentUnitOfType'](_0x19a5e9[_0x5d3208(0x234)]);if(!_0x3326c4)return!0x1;let _0x4f5d9f=_0x3e0818[_0x5d3208(0x113)](_0x5f3c0a),_0x519f4c=_0x3326c4[_0x5d3208(0x274)](),_0x219091=_0x2faaf7['shapeId']??_0x205d4b(),_0x36c836=_0x2faaf7[_0x5d3208(0x177)]??_0x2a901a,_0x9250fa=_0x2faaf7[_0x5d3208(0x174)]??_0x2e80b2,_0x228e0f=_0x2faaf7[_0x5d3208(0x1ae)]??wr(_0x2faaf7['value'],_0x2faaf7[_0x5d3208(0x242)]),_0x53dd53=Er(_0x3e0818,_0x519f4c,_0x2faaf7[_0x5d3208(0x311)])??_0x3e0818[_0x5d3208(0x113)](_0x30b345)[_0x5d3208(0x23d)]();if(!_0x53dd53)return!0x1;let _0x63dc1d=Tr(_0x3326c4,_0x53dd53);return _0x63dc1d?!!_0x4f5d9f[_0x5d3208(0x363)](_0x1b7b6a['id'],{'unitId':_0x519f4c,'shapeId':_0x219091,'shapeType':_0x2faaf7[_0x5d3208(0x1dc)],'shapeData':_0x228e0f,'transform':{'width':_0x36c836,'height':_0x9250fa},'placement':{'wrappingStyle':_0x31600f[_0x5d3208(0x1db)],'anchor':_0x63dc1d}}):!0x1;}},W=_0x2b58b8(0x149),Dr=_0x2b58b8(0x258),Or=_0x2b58b8(0x343),kr=_0x3abe1f(_0x2b58b8(0x295)),Ar='doc.shape.text.float-menu',jr=_0x2b58b8(0x10e),Mr={'id':_0x2b58b8(0x207),'type':_0x1d6912[_0x2b58b8(0x34c)],'handler':(_0x14b044,_0x185a15)=>{const _0x5c4fef=_0x2b58b8;let _0x125435=_0x14b044['get'](_0x4bee7b),_0x3f8f52=_0x14b044['get'](_0x5af3e2),_0x5b1624=_0x14b044[_0x5c4fef(0x113)](_0x1f1d2f);return(_0x185a15==null?void 0x0:_0x185a15[_0x5c4fef(0x1dc)])===_0x5c4fef(0x214)?(_0x125435[_0x5c4fef(0x214)](Or),!0x0):(_0x125435[_0x5c4fef(0x2ca)]({'id':Or,'header':{'title':_0x3f8f52['t'](_0x5c4fef(0x2ab))},'children':{'label':Or},'onClose':()=>{_0x5b1624['focusDrawing'](null);},'width':0x168}),!0x0);}},G={'type':_0x1d6912['OPERATION'],'id':'doc.operation.open-doc-shape-format-panel','handler'(){return!0x0;}};function Nr(_0x70cd97){const _0x2c67ad=_0x2b58b8;let _0x218e67=_0x70cd97[_0x2c67ad(0x113)](_0x1f1d2f)[_0x2c67ad(0x262)](),_0x16be9f=_0x218e67[_0x2c67ad(0x364)]===0x1?_0x218e67[0x0]:null;if(!_0x16be9f||_0x16be9f[_0x2c67ad(0x142)]!==_0x11efaa[_0x2c67ad(0x14f)])return null;let _0x4a82da=_0x70cd97['get'](_0xc58a76),_0x169f5f=_0x4a82da[_0x2c67ad(0x1ac)](_0x16be9f[_0x2c67ad(0x383)],_0x16be9f[_0x2c67ad(0x21e)],_0x16be9f[_0x2c67ad(0x160)]),_0x37e65d=_0x4a82da['getShapeDataById'](_0x16be9f[_0x2c67ad(0x383)],_0x16be9f[_0x2c67ad(0x21e)],_0x16be9f[_0x2c67ad(0x160)]);return _0x169f5f===void 0x0||!_0x37e65d?null:{'drawing':_0x16be9f,'shapeData':_0x37e65d,'shapeType':_0x169f5f};}const Pr={'id':_0x2b58b8(0x1c7),'type':_0x1d6912[_0x2b58b8(0x27e)],'handler':(_0x4dd916,_0x1217e7)=>{const _0x35a749=_0x2b58b8;let _0x526900=Nr(_0x4dd916),_0x4681e1=_0x1a66ee((_0x1217e7==null?void 0x0:_0x1217e7[_0x35a749(0x131)])??(_0x1217e7==null?void 0x0:_0x1217e7['value'])??'');if(!_0x526900||!_0x4681e1||_0x4681e1[_0x35a749(0x326)]!==_0x42e968(_0x526900[_0x35a749(0x1ae)]))return!0x1;let _0x11e3df=_0x92fd7b(_0x526900[_0x35a749(0x1ae)],_0x4681e1);if(!_0x11e3df)return!0x1;let {drawing:_0x4a5b04}=_0x526900;return _0x4dd916[_0x35a749(0x113)](_0x5f3c0a)['executeCommand'](_0x544402['id'],{'unitId':_0x4a5b04[_0x35a749(0x383)],'shapeId':_0x4a5b04['drawingId'],'shapeData':_0x11e3df,'oldShapeJSON':{'oldShapeData':_0x526900[_0x35a749(0x1ae)]}});}},Fr={'id':_0x2b58b8(0x296),'type':_0x1d6912[_0x2b58b8(0x27e)],'handler':(_0x37d12f,_0x40b1cf)=>{const _0x3156d2=_0x2b58b8;let _0x514da0=Nr(_0x37d12f),_0x259b68=(_0x40b1cf==null?void 0x0:_0x40b1cf[_0x3156d2(0x1d6)])??(_0x40b1cf==null?void 0x0:_0x40b1cf[_0x3156d2(0x1dc)]);if(!_0x514da0||!_0x259b68||_0x3a6b70(_0x514da0[_0x3156d2(0x1d6)])||_0x3a6b70(_0x259b68))return!0x1;let _0x3f91ad=_0x41e0ce(_0x514da0[_0x3156d2(0x1ae)],_0x259b68);if(!_0x3f91ad)return!0x1;let {drawing:_0xda6f5e}=_0x514da0;return _0x37d12f[_0x3156d2(0x113)](_0x5f3c0a)['executeCommand'](_0x544402['id'],{'unitId':_0xda6f5e[_0x3156d2(0x383)],'shapeId':_0xda6f5e[_0x3156d2(0x160)],'shapeType':_0x259b68,'shapeData':_0x3f91ad,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x514da0[_0x3156d2(0x1d6)],'oldShapeData':_0x514da0['shapeData']}});}};function K(_0x468cdc,_0x1a3cce){return function(_0x4cc2da,_0x21e181){_0x1a3cce(_0x4cc2da,_0x21e181,_0x468cdc);};}function q(_0x5b2194,_0x4281c8,_0x36ad47,_0x5d4b4e){const _0x4ec3c4=_0x2b58b8;var _0x4ae443=arguments['length'],_0x2fdcf0=_0x4ae443<0x3?_0x4281c8:_0x5d4b4e===null?_0x5d4b4e=Object[_0x4ec3c4(0x1ed)](_0x4281c8,_0x36ad47):_0x5d4b4e,_0xa62003;if(typeof Reflect=='object'&&typeof Reflect[_0x4ec3c4(0x256)]==_0x4ec3c4(0x195))_0x2fdcf0=Reflect[_0x4ec3c4(0x256)](_0x5b2194,_0x4281c8,_0x36ad47,_0x5d4b4e);else{for(var _0x15f513=_0x5b2194['length']-0x1;_0x15f513>=0x0;_0x15f513--)(_0xa62003=_0x5b2194[_0x15f513])&&(_0x2fdcf0=(_0x4ae443<0x3?_0xa62003(_0x2fdcf0):_0x4ae443>0x3?_0xa62003(_0x4281c8,_0x36ad47,_0x2fdcf0):_0xa62003(_0x4281c8,_0x36ad47))||_0x2fdcf0);}return _0x4ae443>0x3&&_0x2fdcf0&&Object[_0x4ec3c4(0x251)](_0x4281c8,_0x36ad47,_0x2fdcf0),_0x2fdcf0;}let Ir=class extends _0x587b62{constructor(_0x90164a,_0x59f8b0){const _0x34b91f=_0x2b58b8;super(),this[_0x34b91f(0x16d)]=_0x90164a,this[_0x34b91f(0x324)]=_0x59f8b0,this['_registerImageShapeClipDelegate'](),this[_0x34b91f(0x16d)][_0x34b91f(0x19a)](!0x0),this[_0x34b91f(0x32d)]({'dispose':()=>this[_0x34b91f(0x16d)][_0x34b91f(0x19a)](!0x1)});}[_0x2b58b8(0x24a)](){const _0x52582b=_0x2b58b8;let _0x1cefb9=new Map(),_0x19ace3=this[_0x52582b(0x16d)]['registerClipDelegate']((_0x35c704,_0x556a94,_0x596bd7,_0x29282b,_0x3a81e1)=>{const _0x198561=_0x52582b;let _0xbbe077=_0x556a94;if(_0xbbe077===_0x32c60e[_0x198561(0x119)]||_0x556a94===_0x198561(0x2b4))return!0x1;try{let _0x37b6aa=_0x1cefb9[_0x198561(0x113)](_0x556a94);return _0x37b6aa||(_0x37b6aa=new _0x211894(_0xbbe077,_0x198561(0x245)+_0x556a94),_0x1cefb9[_0x198561(0x1dd)](_0x556a94,_0x37b6aa)),_0x37b6aa[_0x198561(0x31e)](),_0x3a81e1&&Object['keys'](_0x3a81e1)[_0x198561(0x364)]>0x0&&_0x37b6aa[_0x198561(0x1c2)]({'adjustValues':_0x3a81e1},!0x0),_0x37b6aa[_0x198561(0x1f8)]({'width':_0x596bd7,'height':_0x29282b}),_0x37b6aa[_0x198561(0x33b)](_0x35c704,{'left':0x0,'top':0x0,'width':_0x596bd7,'height':_0x29282b});}catch{return!0x1;}});this[_0x52582b(0x32d)](_0x19ace3),this[_0x52582b(0x32d)]({'dispose':()=>_0x1cefb9[_0x52582b(0x1e6)]()});}['clipByShape'](_0x569d57,_0x392185,_0x52605a,_0x42a169,_0x40daab){const _0x22db48=_0x2b58b8;let _0x3d76ac=this[_0x22db48(0x324)][_0x22db48(0x213)](_0x569d57,_0x392185)[_0x52605a];_0x3d76ac&&_0x3d76ac['drawingType']===_0x11efaa['DRAWING_IMAGE']&&this[_0x22db48(0x324)][_0x22db48(0x18a)]([{..._0x3d76ac,'prstGeom':_0x42a169,'adjustValues':_0x40daab}]);}};Ir=q([K(0x0,_0xbdb0e2(_0x20d505)),K(0x1,_0xbdb0e2(_0x1f1d2f))],Ir);const Lr='doc.shape.picker.component',Rr='doc.image-clip.shape-picker.component';function zr({onShapeClick:_0x1ff170,excludeGroups:_0x17de3e}){const _0x3737de=_0x2b58b8;return _0x9daf1d(_0x4d11e9,{'excludeGroups':_0x17de3e,'onShapeClick':_0x1ff170,'scrollContainer':_0x3737de(0x227)});}function Br(){let _0x59f1c5=_0x16858b(_0x1f1d2f),_0x15992c=_0x16858b(Ir);return _0x590fe7=>{const _0x4bb1e2=_0x73b8;let _0x22a186=_0x59f1c5[_0x4bb1e2(0x262)]()[_0x4bb1e2(0x30b)](_0xc87c72=>_0xc87c72['drawingType']===_0x11efaa[_0x4bb1e2(0x22e)]);_0x22a186&&_0x15992c[_0x4bb1e2(0x265)](_0x22a186[_0x4bb1e2(0x383)],_0x22a186[_0x4bb1e2(0x21e)],_0x22a186[_0x4bb1e2(0x160)],_0x590fe7[_0x4bb1e2(0x326)]);};}function Vr(){const _0x1bf7a3=_0x2b58b8;let _0x5762f5=Br();return _0x9daf1d(_0x43ddc3,{'buttonLabel':_0x1bf7a3(0x307),'excludeGroups':[_0x1aea6e[_0x1bf7a3(0x32e)]],'onShapeClick':_0x5762f5});}function Hr(){const _0x117a27=_0x2b58b8;let _0x2ebce8=_0x16858b(_0x391057),_0x1591a9=_0x16858b(_0x1f1d2f),_0x250366=_0x16858b(_0x52a285),_0xd2fcae=_0x1591a9[_0x117a27(0x262)]()[0x0],_0x40f7bc=_0xd2fcae?_0x250366[_0x117a27(0x1b5)](_0xd2fcae[_0x117a27(0x383)]):void 0x0,_0x1f68f9=_0x40f7bc===_0x19a5e9[_0x117a27(0x234)]?Rr:_0x40f7bc===_0x19a5e9[_0x117a27(0x28c)]?_0x117a27(0x25b):void 0x0,_0x497fab=_0x1f68f9?_0x2ebce8[_0x117a27(0x113)](_0x1f68f9):void 0x0;return _0x497fab?_0x9daf1d(_0x497fab,{}):null;}function Ur({paragraphMenuPlacement:_0x313d48,PickerComponent:_0x3ce292=zr}){let _0xa31034=_0x16858b(_0x5f3c0a);return _0x9daf1d(_0x3ce292,{'onShapeClick':_0x377c7d=>{const _0x17656a=_0x73b8;_0xa31034[_0x17656a(0x362)](U['id'],{'paragraphMenuPlacement':_0x313d48,'value':_0x377c7d['type'],'enhanceParams':{'endArrow':_0x377c7d[_0x17656a(0x340)],'startArrow':_0x377c7d[_0x17656a(0x360)],'horizontal':_0x377c7d[_0x17656a(0x345)],'vertical':_0x377c7d[_0x17656a(0x2e7)]}});}});}function Wr(_0x1227a6){const _0x3e107d=_0x2b58b8;return _0x1b73dc=>({'id':U['id'],'type':_0x56fa91['SELECTOR'],'selections':[{'label':{'name':Lr,'hoverable':!0x1,'selectable':!0x1,'props':_0x1227a6?{'id':U['id'],'paragraphMenuPlacement':_0x1227a6}:{'id':U['id']}}}],'icon':'ShapeIcon','title':'docs-shape-ui.insertShape','tooltip':_0x3e107d(0x11e),'hidden$':_0x26c4d6(_0x1b73dc,_0x19a5e9[_0x3e107d(0x234)])});}const Gr=Wr(),Kr=Wr(_0x2b58b8(0x21d)),qr=Wr('target');function Jr(_0x52f6bf){const _0x31474f=_0x2b58b8;return{'id':Mr['id'],'type':_0x56fa91[_0x31474f(0x280)],'icon':_0x31474f(0x278),'title':_0x31474f(0x2b7),'tooltip':_0x31474f(0x2b7),'hidden$':_0x26c4d6(_0x52f6bf,_0x19a5e9['UNIVER_DOC'])};}function Yr(_0x268ac4,_0x2f6f55,_0x40dc72,_0x423572,_0x536099,_0x4fb03b){const _0x2e8782=_0x2b58b8;let _0x1f090a={'unitId':_0x2f6f55,'shapeId':_0x423572,'shapeData':_0x4fb03b,'oldShapeJSON':_0x536099};return _0x268ac4[_0x2e8782(0x362)](_0x544402['id'],_0x1f090a);}function Xr(_0x599ccf,_0x25e856,_0x28d66f,_0x45e26a,_0x491dbb,_0x3648a4){let _0x5d37fe={'unitId':_0x25e856,'shapeId':_0x45e26a,'shapeData':_0x3648a4,'oldShapeJSON':_0x491dbb};return _0x599ccf['executeCommand'](_0x544402['id'],_0x5d37fe);}const Zr=_0x2b58b8(0x2ae),Qr=_0x2b58b8(0x2fb),$r=_0x2b58b8(0x257),ei='docs-shape-ui.shape-format.formula-ribbon-control',ti=_0x2b58b8(0x2ea),ni=[{'value':_0x31600f[_0x2b58b8(0x1db)],'label':_0x2b58b8(0x379),'icon':_0x2b58b8(0x14b)},{'value':_0x31600f['WRAP_SQUARE'],'label':'docs-shape-ui.textWrap.square','icon':_0x2b58b8(0x192)},{'value':_0x31600f['WRAP_TOP_AND_BOTTOM'],'label':_0x2b58b8(0x31d),'icon':_0x2b58b8(0x36a)},{'value':_0x31600f['BEHIND_TEXT'],'label':_0x2b58b8(0x28e),'icon':_0x2b58b8(0x2ed)},{'value':_0x31600f[_0x2b58b8(0x28f)],'label':_0x2b58b8(0x32a),'icon':_0x2b58b8(0x374)}];function ri(){let _0x299f86=_0x16858b(_0x5f3c0a),_0x4a6b63=_0x16858b(_0x1f1d2f),_0x3b909a=_0x16858b(_0xc58a76),_0x4ab3a6=()=>{const _0x29cf9f=_0x73b8;var _0x2a865f;let _0x4b1459=_0x4a6b63[_0x29cf9f(0x262)]();if(_0x4b1459[_0x29cf9f(0x364)]!==0x1||((_0x2a865f=_0x4b1459[0x0])==null?void 0x0:_0x2a865f[_0x29cf9f(0x142)])!==_0x11efaa[_0x29cf9f(0x14f)])return null;let {unitId:_0x3a631c,subUnitId:_0x53856a,drawingId:_0x3251b6}=_0x4b1459[0x0],_0x311f1a=_0x3b909a['getShapeTypeById'](_0x3a631c,_0x53856a,_0x3251b6),_0x5399f8=_0x3b909a[_0x29cf9f(0x152)](_0x3a631c,_0x53856a,_0x3251b6);return _0x311f1a===void 0x0||!_0x5399f8?null:{'unitId':_0x3a631c,'subUnitId':_0x53856a,'drawingId':_0x3251b6,'shapeType':_0x311f1a,'shapeData':_0x5399f8};},_0x586918=_0x104db2(()=>new _0x15ba3b(_0x2d0ead=>{const _0x40ad0c=_0x73b8;let _0x2f51fe=()=>_0x2d0ead[_0x40ad0c(0x225)](_0x4ab3a6()),_0x33fad5=_0x4a6b63[_0x40ad0c(0x2f3)][_0x40ad0c(0x138)](_0x2f51fe),_0x4b665d=_0x299f86[_0x40ad0c(0x19e)](_0x37a467=>{_0x37a467['id']===_0x3d4cfc['id']&&_0x2f51fe();});return _0x2f51fe(),()=>{const _0x4a938d=_0x40ad0c;_0x33fad5[_0x4a938d(0x1de)](),_0x4b665d['dispose']();};}),_0x4ab3a6(),!0x1,[_0x299f86,_0x3b909a,_0x4a6b63]);return{'selection':_0x586918,'updateShapeData':_0x261aca=>{const _0x345f08=_0x73b8;_0x586918&&Yr(_0x299f86,_0x586918['unitId'],_0x586918[_0x345f08(0x21e)],_0x586918[_0x345f08(0x160)],{'oldShapeData':_0x586918[_0x345f08(0x1ae)]},_0x261aca);}};}function ii(){const _0x184994=_0x2b58b8;let {selection:_0x459657,updateShapeData:_0x5d6b9b}=ri();return _0x459657?_0x9daf1d(_0x5de1c8,{'shapeData':_0x459657[_0x184994(0x1ae)],'shapeType':_0x459657['shapeType'],'onUpdateShapeData':_0x5d6b9b}):null;}function ai(){const _0x11cd8d=_0x2b58b8;let _0x41451c=_0x16858b(_0x5f3c0a),_0x37da9a=_0x16858b(_0x5af3e2),{selection:_0x5c1507}=ri();return _0x5c1507?_0x9daf1d(_0x11cbb8,{'type':_0x42e968(_0x5c1507['shapeData']),'ariaLabel':_0x37da9a['t'](_0x11cd8d(0x17a)),'activePresetId':_0x1547f4(_0x5c1507[_0x11cd8d(0x1ae)]),'onSelect':_0x239c21=>_0x41451c[_0x11cd8d(0x362)](Pr['id'],{'presetId':_0x239c21})}):null;}function oi(){const _0x4d176e=_0x2b58b8;let {selection:_0xa61126,updateShapeData:_0x50bb23}=ri();return _0xa61126?_0x9daf1d(_0x21ece6,{'fontFamilyPopupDataComponent':_0x4d176e(0x201),'shapeData':_0xa61126[_0x4d176e(0x1ae)],'onUpdateShapeData':_0x50bb23}):null;}function si(){const _0x5ab714=_0x2b58b8;var _0x45e70d;let {selection:_0x3e7804,updateShapeData:_0x59d9c2}=ri(),_0x5cbad0=_0x4bb66f({'hostType':_0x19a5e9[_0x5ab714(0x234)],'unitId':(_0x3e7804==null?void 0x0:_0x3e7804['unitId'])??'','subUnitId':(_0x3e7804==null?void 0x0:_0x3e7804[_0x5ab714(0x21e)])??'','shapeId':(_0x3e7804==null?void 0x0:_0x3e7804[_0x5ab714(0x160)])??'','shapeData':_0x3e7804==null?void 0x0:_0x3e7804[_0x5ab714(0x1ae)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x5ab714(0x175),'onUpdateBinding':_0x3de2c6=>_0x59d9c2({'formulaBinding':_0x3de2c6})}),_0x3868ec=((_0x45e70d=_0x5cbad0[_0x5ab714(0x243)])==null?void 0x0:_0x45e70d['flatMap'](_0x3cdab6=>_0x3cdab6['actions'])[_0x5ab714(0x16f)](_0x5124e9=>_0x5124e9[_0x5ab714(0x306)]!==!0x1))??[];return _0x3e7804!=null&&_0x3e7804['shapeData'][_0x5ab714(0x328)]?_0x9daf1d(_0x38d486,{'actions':_0x3868ec,'panel':_0x5cbad0[_0x5ab714(0x169)]}):null;}function ci({value:_0x189cf3}){const _0x1b4f09=_0x2b58b8;let _0x5c2841=_0x16858b(_0x5af3e2),_0x26f7e5=ni[_0x1b4f09(0x30b)](_0x2eeead=>_0x2eeead['value']===_0x189cf3)??ni[0x0];return _0x26f7e5?_0x9daf1d(_0x1b4f09(0x33c),{'children':_0x5c2841['t'](_0x26f7e5[_0x1b4f09(0x17b)])}):null;}const li=_0x2b58b8(0x15c),ui=_0x2b58b8(0x31a),di=_0x2b58b8(0x15a),fi=_0x2b58b8(0x261),pi='docs-shape-ui.ribbon.shape-format.arrange-backward',mi=_0x2b58b8(0x2cc),hi=_0x2b58b8(0x314),gi=_0x2b58b8(0x15e);function _i(_0x2979fc){const _0x3757bc=_0x2b58b8;let _0xffaa0d=_0x2979fc[_0x3757bc(0x113)](_0x5f3c0a),_0x1ee158=_0x2979fc[_0x3757bc(0x113)](_0x1f1d2f),_0x3ebcda=_0x2979fc[_0x3757bc(0x113)](_0xc58a76);return new _0x15ba3b(_0x2d3a18=>{const _0x438f2c=_0x3757bc;let _0xc105a0=()=>{const _0x3d3f3a=_0x73b8;let _0x40085a=vi(_0x2979fc),_0x1f7fec=_0x40085a?_0x3ebcda[_0x3d3f3a(0x152)](_0x40085a[_0x3d3f3a(0x383)],_0x40085a[_0x3d3f3a(0x21e)],_0x40085a[_0x3d3f3a(0x160)]):null;_0x2d3a18[_0x3d3f3a(0x225)](_0x1f7fec?_0x1547f4(_0x1f7fec)??'':'');},_0x17fcab=_0x1ee158[_0x438f2c(0x2f3)][_0x438f2c(0x138)](_0xc105a0),_0x3a1188=_0xffaa0d[_0x438f2c(0x19e)](_0x329f79=>{_0x329f79['id']===_0x3d4cfc['id']&&_0xc105a0();});return _0xc105a0(),()=>{const _0xd23df8=_0x438f2c;_0x17fcab[_0xd23df8(0x1de)](),_0x3a1188['dispose']();};});}function vi(_0x1c765e){const _0x1f3cb0=_0x2b58b8;var _0x299007;let _0x148afd=_0x1c765e[_0x1f3cb0(0x113)](_0x1f1d2f)['getFocusDrawings']();return _0x148afd[_0x1f3cb0(0x364)]===0x1&&((_0x299007=_0x148afd[0x0])==null?void 0x0:_0x299007[_0x1f3cb0(0x142)])===_0x11efaa[_0x1f3cb0(0x14f)]?_0x148afd[0x0]:null;}function yi(_0x215bec){const _0x4c8944=_0x2b58b8;return(_0x215bec==null?void 0x0:_0x215bec[_0x4c8944(0x118)])===_0x292c91[_0x4c8944(0x178)]?_0x215bec['behindDoc']===_0x562bb0['TRUE']?_0x31600f['BEHIND_TEXT']:_0x31600f[_0x4c8944(0x28f)]:(_0x215bec==null?void 0x0:_0x215bec[_0x4c8944(0x118)])===_0x292c91[_0x4c8944(0x322)]?_0x31600f[_0x4c8944(0x322)]:(_0x215bec==null?void 0x0:_0x215bec[_0x4c8944(0x118)])===_0x292c91['WRAP_TOP_AND_BOTTOM']?_0x31600f['WRAP_TOP_AND_BOTTOM']:_0x31600f[_0x4c8944(0x1db)];}function bi(_0x4c7574){const _0x5405d8=_0x2b58b8;let _0x1fb748=_0x4c7574[_0x5405d8(0x113)](_0x5f3c0a),_0x138e86=_0x4c7574['get'](_0x1f1d2f),_0x26d5fa=_0x4c7574[_0x5405d8(0x113)](_0x52a285);return new _0x15ba3b(_0x5a02af=>{const _0x903a63=_0x5405d8;let _0x41c7d4=()=>{const _0x146628=_0x73b8;var _0x172ab6;let _0x3d6d98=vi(_0x4c7574),_0x294ce6=_0x3d6d98?_0x26d5fa['getUnit'](_0x3d6d98[_0x146628(0x383)],_0x19a5e9['UNIVER_DOC']):void 0x0;_0x5a02af[_0x146628(0x225)](yi(_0x3d6d98?_0x294ce6==null||(_0x172ab6=_0x294ce6[_0x146628(0x110)]()[_0x146628(0x1a4)])==null?void 0x0:_0x172ab6[_0x3d6d98[_0x146628(0x160)]]:void 0x0));},_0x11f614=_0x138e86[_0x903a63(0x2f3)]['subscribe'](_0x41c7d4),_0x413f41=_0x1fb748[_0x903a63(0x19e)](_0x33ba9d=>{_0x33ba9d['id']===_0x2dba6b['id']&&_0x41c7d4();});return _0x41c7d4(),()=>{const _0x357e9b=_0x903a63;_0x11f614[_0x357e9b(0x1de)](),_0x413f41['dispose']();};})['pipe'](_0x325f40());}function xi(_0x2cecf9,_0x313a76=!0x1){const _0x576213=_0x2b58b8;let _0x240902=_0x2cecf9[_0x576213(0x113)](_0x5f3c0a),_0x24c33b=_0x2cecf9[_0x576213(0x113)](_0x1f1d2f),_0x372ebb=_0x2cecf9[_0x576213(0x113)](_0xc58a76);return new _0x15ba3b(_0x31f6da=>{const _0x285017=_0x576213;let _0x4aed76=()=>{const _0x5831fd=_0x73b8;let _0x2474b4=vi(_0x2cecf9);if(!_0x2474b4){_0x31f6da[_0x5831fd(0x225)](!0x0);return;}let _0x1203e3=_0x372ebb['getShapeDataById'](_0x2474b4[_0x5831fd(0x383)],_0x2474b4[_0x5831fd(0x21e)],_0x2474b4['drawingId']);_0x31f6da[_0x5831fd(0x225)](!_0x1203e3||_0x313a76&&_0x1203e3[_0x5831fd(0x328)]==null);},_0x47a0a7=_0x24c33b[_0x285017(0x2f3)][_0x285017(0x138)](_0x4aed76),_0x54d454=_0x240902['onCommandExecuted'](_0x15cd30=>{_0x15cd30['id']===_0x3d4cfc['id']&&_0x4aed76();});return _0x4aed76(),()=>{const _0x5d3e29=_0x285017;_0x47a0a7[_0x5d3e29(0x1de)](),_0x54d454[_0x5d3e29(0x12f)]();};});}function Si(_0x2a39a8){const _0x47674c=_0x2b58b8;let _0x5063fd=_0x2a39a8['get'](_0x1f1d2f),_0x11ca84=_0x2a39a8['get'](_0xc58a76);return _0x5063fd[_0x47674c(0x2f3)]['pipe'](_0x19f0b7(_0x5063fd[_0x47674c(0x262)]()),_0x41dd31(()=>{const _0x2c5a67=_0x47674c;let _0x526b36=vi(_0x2a39a8),_0x3d4f4d=_0x526b36?_0x11ca84[_0x2c5a67(0x1ac)](_0x526b36['unitId'],_0x526b36[_0x2c5a67(0x21e)],_0x526b36[_0x2c5a67(0x160)]):void 0x0;return _0x3d4f4d===void 0x0||_0x3a6b70(_0x3d4f4d);}));}function Ci(_0x555136){const _0x36b857=_0x2b58b8;return{'id':Pr['id'],'type':_0x56fa91['SELECTOR'],'icon':_0x36b857(0x1fd),'title':_0x36b857(0x2da),'tooltip':_0x36b857(0x2da),'selections':[{'label':{'name':Zr,'hoverable':!0x1,'selectable':!0x1}}],'value$':_i(_0x555136),'hidden$':xi(_0x555136)};}function wi(_0x2d5cbb){const _0x3c91f2=_0x2b58b8;return{'id':Fr['id'],'type':_0x56fa91[_0x3c91f2(0x285)],'icon':'ShapeIcon','title':_0x3c91f2(0x13f),'tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':_0x342b81,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Si(_0x2d5cbb)};}function Ti(_0x16558c,_0x875e74,_0x1e39d8=!0x1){const _0x18b9d3=_0x2b58b8;return _0x34325d=>({'id':_0x16558c,'type':_0x56fa91[_0x18b9d3(0x280)],'label':{'name':_0x875e74,'hoverable':!0x1,'selectable':!0x1},'hidden$':xi(_0x34325d,_0x1e39d8)});}const Ei=Ti(li,Qr),Di=Ti(ui,$r),Oi=Ti(di,ei,!0x0);function ki(_0x2e1034){const _0x476dc5=_0x2b58b8;return{'id':gi,'type':_0x56fa91[_0x476dc5(0x285)],'icon':ni[0x0][_0x476dc5(0x1ea)],'label':ti,'selectionsCommandId':_0x210103['id'],'selections':ni[_0x476dc5(0x166)](({icon:_0xb84669,label:_0x1fe12e,value:_0x10d0b3})=>({'value':_0x10d0b3,'label':_0x1fe12e,'icon':_0xb84669,'params':()=>{const _0x1a0485=_0x476dc5;let _0x3c4d24=vi(_0x2e1034);return _0x3c4d24?{'unitId':_0x3c4d24[_0x1a0485(0x383)],'subUnitId':_0x3c4d24[_0x1a0485(0x21e)],'drawings':[{'unitId':_0x3c4d24[_0x1a0485(0x383)],'subUnitId':_0x3c4d24[_0x1a0485(0x21e)],'drawingId':_0x3c4d24[_0x1a0485(0x160)]}],'wrappingStyle':_0x10d0b3}:void 0x0;}})),'value$':bi(_0x2e1034),'hidden$':xi(_0x2e1034)};}function Ai(_0x2d1def,_0x20ac4b,_0x2797f,_0x584037){return _0x340d46=>({'id':_0x2d1def,'commandId':_0x441b4f['id'],'type':_0x56fa91['BUTTON'],'icon':_0x2797f,'title':_0x584037,'tooltip':_0x584037,'hidden$':xi(_0x340d46),'params':()=>{const _0x47372a=_0x73b8;let _0x52609f=vi(_0x340d46);return _0x52609f?{'unitId':_0x52609f[_0x47372a(0x383)],'subUnitId':_0x52609f[_0x47372a(0x21e)],'drawingIds':[_0x52609f[_0x47372a(0x160)]],'arrangeType':_0x20ac4b}:void 0x0;}});}const ji=Ai(fi,_0x3963c4[_0x2b58b8(0x1bc)],_0x2b58b8(0x28b),'shape-editor-ui.arrange.forward'),Mi=Ai(pi,_0x3963c4[_0x2b58b8(0x186)],_0x2b58b8(0x302),_0x2b58b8(0x12b)),Ni=Ai(mi,_0x3963c4[_0x2b58b8(0x1d1)],_0x2b58b8(0x1ba),_0x2b58b8(0x24f)),Pi=Ai(hi,_0x3963c4[_0x2b58b8(0x10c)],_0x2b58b8(0x2a7),_0x2b58b8(0x352));function Fi(_0x3fac19){const _0x674d7a=_0x2b58b8;return{'id':G['id'],'type':_0x56fa91['BUTTON'],'icon':'ShapeFormatSettingIcon','title':_0x674d7a(0x29e),'tooltip':_0x674d7a(0x29e),'hidden$':xi(_0x3fac19),'params':()=>{const _0x37dd57=_0x674d7a;let _0x1f1e03=vi(_0x3fac19);return _0x1f1e03?{'unitId':_0x1f1e03[_0x37dd57(0x383)],'subUnitId':_0x1f1e03[_0x37dd57(0x21e)],'drawingId':_0x1f1e03[_0x37dd57(0x160)]}:void 0x0;}};}const Ii={[_0x23e24a[_0x2b58b8(0x150)]]:{[Dr]:{'order':0x64,'title':'docs-shape-ui.formatShape','contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Pr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ci},[Fr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':wi}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[li]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ei}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[ui]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Di}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[gi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':ki},[fi]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':ji},[pi]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Mi},[mi]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':Ni},[hi]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':Pi}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[di]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Oi}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[G['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Fi},[_0x5bf1e4['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x17729f}}}}},Li={[_0x4dd0cf[_0x2b58b8(0x282)]]:{[U['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x577281=>({...Gr(_0x577281),'title':void 0x0})}},[_0x4dd0cf[_0x2b58b8(0x2f5)]]:{[Mr['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Jr}},[_0x519876[_0x2b58b8(0x22c)]]:{[_0xbc21b0[_0x2b58b8(0x1fb)]]:{[_0xcccbbd]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x53ef11]:{[_0xbc21b0[_0x2b58b8(0x1fb)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x3a423f]:{[_0xbc21b0[_0x2b58b8(0x1fb)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':qr}}},[_0x2b37e1]:{'insert':{[U['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':Gr}}},[_0x906c27]:{'insert':{[U['id']+'.below']:{'replace':!0x0,'order':0x2,'menuItemFactory':Kr}}}}};var Ri=_0x2b58b8(0x1d9),zi=_0x2b58b8(0x15f);const Bi={'type':_0x1d6912[_0x2b58b8(0x27e)],'id':_0x2b58b8(0x1a1),'handler'(){return!0x0;}},Vi='docs-shape-ui.config',Hi={};function Ui(_0x3b9178){'@babel/helpers - typeof';const _0x2c7b46=_0x2b58b8;return Ui=typeof Symbol==_0x2c7b46(0x195)&&typeof Symbol[_0x2c7b46(0x231)]==_0x2c7b46(0x108)?function(_0x39c47d){return typeof _0x39c47d;}:function(_0x2ac11d){const _0x4ca8b3=_0x2c7b46;return _0x2ac11d&&typeof Symbol=='function'&&_0x2ac11d[_0x4ca8b3(0x2b3)]===Symbol&&_0x2ac11d!==Symbol[_0x4ca8b3(0x29b)]?'symbol':typeof _0x2ac11d;},Ui(_0x3b9178);}function Wi(_0x20ca1f,_0x3c378b){const _0x57c17b=_0x2b58b8;if(Ui(_0x20ca1f)!=_0x57c17b(0x19c)||!_0x20ca1f)return _0x20ca1f;var _0x35bb92=_0x20ca1f[Symbol[_0x57c17b(0x250)]];if(_0x35bb92!==void 0x0){var _0x2ec30e=_0x35bb92[_0x57c17b(0x190)](_0x20ca1f,_0x3c378b||_0x57c17b(0x14a));if(Ui(_0x2ec30e)!=_0x57c17b(0x19c))return _0x2ec30e;throw TypeError(_0x57c17b(0x23c));}return(_0x3c378b===_0x57c17b(0x18c)?String:Number)(_0x20ca1f);}function Gi(_0x38a4ca){const _0x1952b5=_0x2b58b8;var _0x5f4440=Wi(_0x38a4ca,_0x1952b5(0x18c));return Ui(_0x5f4440)==_0x1952b5(0x108)?_0x5f4440:_0x5f4440+'';}function J(_0x757c2d,_0x3e2d6f,_0x291de1){const _0x2c035f=_0x2b58b8;return(_0x3e2d6f=Gi(_0x3e2d6f))in _0x757c2d?Object[_0x2c035f(0x251)](_0x757c2d,_0x3e2d6f,{'value':_0x291de1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x757c2d[_0x3e2d6f]=_0x291de1,_0x757c2d;}var Ki=class extends _0x55a1bf{constructor(_0x411342,_0xaf1707){const _0x13f879=_0x2b58b8;super(_0x411342,_0xaf1707),J(this,_0x13f879(0x1f4),null),J(this,'_adjName',null),J(this,_0x13f879(0x30c),null),J(this,_0x13f879(0x37c),null),_0xaf1707&&this['setShapeProps'](_0xaf1707);}[_0x2b58b8(0x197)](){const _0xd6be48=_0x2b58b8;return{'unitId':this['_unitId'],'subUnitId':this[_0xd6be48(0x37c)],'drawingId':this[_0xd6be48(0x1f4)]};}['setShapeProps'](_0x44590f){const _0x16c210=_0x2b58b8;_0x44590f['shapeId']!==void 0x0&&(this[_0x16c210(0x1f4)]=_0x44590f[_0x16c210(0x1a7)]),_0x44590f[_0x16c210(0x2c6)]!==void 0x0&&(this[_0x16c210(0x1e0)]=_0x44590f[_0x16c210(0x2c6)]),_0x44590f[_0x16c210(0x383)]!==void 0x0&&(this[_0x16c210(0x30c)]=_0x44590f['unitId']),_0x44590f[_0x16c210(0x21e)]!==void 0x0&&(this[_0x16c210(0x37c)]=_0x44590f[_0x16c210(0x21e)]),this[_0x16c210(0x370)]({'width':_0x44590f[_0x16c210(0x177)],'height':_0x44590f[_0x16c210(0x174)]});}[_0x2b58b8(0x241)](_0x59c58f){const _0x457fea=_0x2b58b8;_0x20e69b[_0x457fea(0x36f)](_0x59c58f,{'radius':_0xda9354['adjHandleSize'],'fill':_0xda9354[_0x457fea(0x30a)],'stroke':_0xda9354[_0x457fea(0x2de)],'strokeWidth':0x1,'evented':!0x0});}};function qi(_0x280eed,_0x199da6,_0x51280c){const _0x25392e=_0x2b58b8;let _0x34743d={..._0x199da6,'dataModel':{..._0x199da6[_0x25392e(0x25e)]??{},..._0x51280c?{'doc':_0x51280c}:null}},_0x47cf78=_0x1e45b8(_0x280eed,_0x34743d),_0x2e1f0c=_0x46d47a(_0x47cf78);return{'clip':_0x3440f6(_0x47cf78,_0x2e1f0c),'wrapStrategy':_0x2e1f0c};}var Y=class extends _0x55a1bf{constructor(_0x2d219b,_0x809869){const _0x5b8eeb=_0x2b58b8;super(_0x2d219b,_0x809869),J(this,_0x5b8eeb(0x286),[]),J(this,_0x5b8eeb(0x2bd),void 0x0),J(this,_0x5b8eeb(0x23a),new _0x4df99d(()=>this['makeDirty'](!0x0),()=>this['_applyFormulaAutoFitSize']())),J(this,_0x5b8eeb(0x303),!0x0),J(this,'_drawingType',_0x11efaa[_0x5b8eeb(0x14f)]),J(this,_0x5b8eeb(0x2f0),!0x0),this[_0x5b8eeb(0x2bd)]={..._0x809869},this[_0x5b8eeb(0x23a)]['setPresentation'](_0x809869[_0x5b8eeb(0x388)],_0x809869[_0x5b8eeb(0x1a5)]!==!0x1),this['_init'](),this[_0x5b8eeb(0x156)]();}[_0x2b58b8(0x2e1)](){this['onTransformChange$']['subscribeEvent'](_0x3e108c=>{const _0x4b9a70=_0x73b8;this[_0x4b9a70(0x289)](_0x3e108c);});}['setPrstGeom'](_0x39780c){const _0x392051=_0x2b58b8;this[_0x392051(0x2bd)][_0x392051(0x17e)]=_0x39780c;}[_0x2b58b8(0x269)](_0xdc4841){const _0x52e272=_0x2b58b8;if(this[_0x52e272(0x2bd)][_0x52e272(0x317)])return null;let _0x28acc3=this[_0x52e272(0x2d3)](_0xdc4841),{width:_0x330a45,height:_0x8f7a74}=this[_0x52e272(0x330)]();return _0xccb99c(this[_0x52e272(0x286)],{'x':(this[_0x52e272(0x24d)]?-_0x28acc3['x']:_0x28acc3['x'])+_0x330a45/0x2,'y':_0x28acc3['y']+_0x8f7a74/0x2});}['setEditing'](_0x2ea7e9){const _0x250193=_0x2b58b8;this['_props'][_0x250193(0x317)]=_0x2ea7e9,this['makeDirty'](!0x0);}[_0x2b58b8(0x2b5)](_0x15431c,_0x1ec61c=!0x0){const _0x32c67a=_0x2b58b8;this[_0x32c67a(0x23a)][_0x32c67a(0x208)](_0x15431c,_0x1ec61c),this[_0x32c67a(0x2bd)]['formulaPresentation']=_0x15431c,this[_0x32c67a(0x156)](),this[_0x32c67a(0x2ee)](!0x0);}['_applyFormulaAutoFitSize'](){const _0x49d004=_0x2b58b8;let _0x296bf9=this[_0x49d004(0x2bd)]['shapeModel'],_0x23242f=_0x296bf9['getShapeTextData'](),_0x553985=_0x361202(_0x23242f==null?void 0x0:_0x23242f[_0x49d004(0x25e)]),_0x132509=_0x553985==null?void 0x0:_0x553985[_0x49d004(0x36c)],_0x3806e3=this[_0x49d004(0x23a)][_0x49d004(0x19d)]();if(!_0x132509||_0x3806e3[_0x49d004(0x364)]===0x0)return;_0x296bf9[_0x49d004(0x1f8)]({'width':this[_0x49d004(0x177)],'height':this['height']});let _0x41f4f6=_0x57aa48({'documentData':_0x3806e3['map'](_0x39c91f=>_0x5273c3(_0x132509,_0x39c91f)),'height':this[_0x49d004(0x174)],'shapeData':_0x296bf9[_0x49d004(0x170)](),'textRect':_0x296bf9[_0x49d004(0x2b9)]({'left':0x0,'top':0x0,'width':this[_0x49d004(0x177)],'height':this[_0x49d004(0x174)]}),'width':this[_0x49d004(0x177)]});if(_0x41f4f6){var _0x3a3df5;this[_0x49d004(0x146)](_0x41f4f6[_0x49d004(0x177)],_0x41f4f6[_0x49d004(0x174)]),(_0x3a3df5=this['getScene']())==null||(_0x3a3df5=_0x3a3df5[_0x49d004(0x215)]())==null||_0x3a3df5[_0x49d004(0x268)]();}}get[_0x2b58b8(0x383)](){const _0x31f29a=_0x2b58b8;return this[_0x31f29a(0x2bd)][_0x31f29a(0x383)];}get[_0x2b58b8(0x21e)](){const _0x5881c1=_0x2b58b8;return this[_0x5881c1(0x2bd)]['subUnitId'];}[_0x2b58b8(0x289)](_0x12fa19){const _0x20d287=_0x2b58b8;if(this[_0x20d287(0x2bd)][_0x20d287(0x1c1)]==null||!this[_0x20d287(0x303)])return;let {width:_0x4ae5d4,height:_0x3caa04}=this,{width:_0x2ae24f=0x0,height:_0x4249d7=0x0}=_0x12fa19['preValue'],{left:_0x327fe0=0x0,top:_0x4c195a=0x0,right:_0x275b74=0x0,bottom:_0xdcdf83=0x0}=this[_0x20d287(0x2bd)]['srcRect'],_0x1e471e=_0x327fe0,_0x208aef=_0x4c195a,_0x365b19=_0x275b74,_0x1edde3=_0xdcdf83,_0x7fc285=!0x1;if(_0x2ae24f!==0x0&&_0x2ae24f!==_0x4ae5d4){let _0x5398c9=_0x327fe0/_0x2ae24f,_0x6ec884=_0x275b74/_0x2ae24f;_0x1e471e=_0x4ae5d4*_0x5398c9,_0x365b19=_0x4ae5d4*_0x6ec884,_0x7fc285=!0x0;}if(_0x4249d7!==0x0&&_0x4249d7!==_0x3caa04){let _0x407d76=_0x4c195a/_0x4249d7,_0x59cc7d=_0xdcdf83/_0x4249d7;_0x208aef=_0x3caa04*_0x407d76,_0x1edde3=_0x3caa04*_0x59cc7d,_0x7fc285=!0x0;}_0x7fc285&&this[_0x20d287(0x2fa)]({'left':_0x1e471e,'top':_0x208aef,'right':_0x365b19,'bottom':_0x1edde3});}['setSrcRect'](_0x469b48){const _0xdb10c5=_0x2b58b8;this[_0xdb10c5(0x2bd)][_0xdb10c5(0x1c1)]=_0x469b48,this['makeDirty'](!0x0);}[_0x2b58b8(0x293)](_0x46d698){const _0x2641f5=_0x2b58b8;this['_props'][_0x2641f5(0x2e4)]=_0x46d698,this[_0x2641f5(0x2ee)](!0x0);}set[_0x2b58b8(0x277)](_0x460a95){const _0x44012a=_0x2b58b8;this[_0x44012a(0x336)]=_0x460a95;}get[_0x2b58b8(0x277)](){const _0x96f8d2=_0x2b58b8;this['_transform']||this[_0x96f8d2(0x220)]();let _0x36ad64=this[_0x96f8d2(0x336)][_0x96f8d2(0x2a3)]();return this[_0x96f8d2(0x1fc)](_0x36ad64);}get[_0x2b58b8(0x17c)](){const _0x10153b=_0x2b58b8;return this[_0x10153b(0x2bd)][_0x10153b(0x17c)];}get[_0x2b58b8(0x1a7)](){const _0x39c9b5=_0x2b58b8;return this['_props'][_0x39c9b5(0x1a7)];}get[_0x2b58b8(0x223)](){const _0xa3a93c=_0x2b58b8;return _0x585778[_0xa3a93c(0x2ce)];}[_0x2b58b8(0x241)](_0x2acb6b,_0x5444fe,_0x12b136,_0x3c114e){const _0x1c8606=_0x2b58b8;let _0x48ca76=this[_0x1c8606(0x2bd)][_0x1c8606(0x17c)];if(!_0x48ca76||!_0x5444fe)return;let _0xa2f530=_0x12b136??this[_0x1c8606(0x177)],_0x25375d=_0x3c114e??this[_0x1c8606(0x174)],_0x10f2a1={'shapeType':_0x48ca76[_0x1c8606(0x11f)](),'width':_0xa2f530,'height':_0x25375d},_0x1ff0f2={'renderMode':_0x1f70b1[_0x1c8606(0x185)],'oKey':this[_0x1c8606(0x11b)],'image':this[_0x1c8606(0x2bd)][_0x1c8606(0x2e4)],'angle':this[_0x1c8606(0x276)]};_0x48ca76[_0x1c8606(0x1f8)](_0x10f2a1),_0x2acb6b[_0x1c8606(0x1e7)]();let _0x19e978={'top':0x0,'left':0x0,'width':_0xa2f530,'height':_0x25375d},_0x44b5fe=_0x48ca76[_0x1c8606(0x349)](_0x19e978);_0x44b5fe?this[_0x1c8606(0x229)](_0x2acb6b,_0x44b5fe,_0x5ca6f3=>{const _0x5c259d=_0x1c8606;_0x48ca76[_0x5c259d(0x21c)](_0x5ca6f3,_0x19e978,_0x1ff0f2);}):(this[_0x1c8606(0x2d7)](),_0x48ca76[_0x1c8606(0x21c)](_0x2acb6b,_0x19e978,_0x1ff0f2)),_0x2acb6b['restore']();let _0x1982b6=_0x48ca76[_0x1c8606(0x145)](),_0x467e61=_0x48ca76['getShapeTextRect'](_0x19e978),_0xb5e946=_0x48ca76[_0x1c8606(0x2b2)]();if(_0x1982b6&&_0x467e61&&!_0xb5e946){_0x2acb6b[_0x1c8606(0x1e7)](),this[_0x1c8606(0x308)]()[_0x1c8606(0x24d)]&&_0x2acb6b[_0x1c8606(0x1f6)](-0x1,0x1);let _0x411aa9=_0xa2f530/0x2,_0x16f7ba=_0x25375d/0x2;_0x2acb6b[_0x1c8606(0x10f)](-_0x411aa9,-_0x16f7ba),_0x2acb6b[_0x1c8606(0x342)](),this[_0x1c8606(0x1e2)](_0x2acb6b,_0x1982b6,_0x467e61),_0x2acb6b[_0x1c8606(0x375)]();}}[_0x2b58b8(0x1a3)](_0x326a06){}[_0x2b58b8(0x1e2)](_0x244d24,_0x260cff,_0x25c327){const _0x5dac3b=_0x2b58b8;var _0xdf25fa;this[_0x5dac3b(0x286)]=[],!this[_0x5dac3b(0x2bd)][_0x5dac3b(0x317)]&&(!((_0xdf25fa=_0x260cff[_0x5dac3b(0x25e)])!=null&&_0xdf25fa[_0x5dac3b(0x36c)])&&_0x5dac3b(0x2ba)in _0x260cff&&_0x260cff[_0x5dac3b(0x2ba)]===!0x1?this[_0x5dac3b(0x22b)](_0x244d24,_0x260cff,_0x25c327):this[_0x5dac3b(0x16b)](_0x244d24,_0x260cff,_0x25c327));}[_0x2b58b8(0x22b)](_0x56206a,_0x52a0a0,_0x5b16d3){const _0x513ecc=_0x2b58b8;this[_0x513ecc(0x16b)](_0x56206a,{..._0x52a0a0,'text':_0x52a0a0[_0x513ecc(0x10d)]??'','dataModel':{'doc':_0x20f7f3(_0x52a0a0,_0x513ecc(0x210)+this['oKey'])}},_0x5b16d3);}[_0x2b58b8(0x16b)](_0x1ef1e8,_0xccd309,_0x5b8028){const _0x3e9b54=_0x2b58b8;_0x1ecc92(_0x1ef1e8,this[_0x3e9b54(0x23a)],(_0xe58a1b,_0x480082,_0x300b41)=>{const _0x39bf2e=_0x3e9b54;this['_drawRichTextLayer'](_0xe58a1b,_0xccd309,_0x5b8028,_0x480082,_0x300b41===_0x39bf2e(0x194));});}['_drawRichTextLayer'](_0x2336a7,_0xcfd96b,_0x2d5583,_0x12cb18,_0x2a1079){const _0xb64857=_0x2b58b8;let _0x1f50f1=this['_props'][_0xb64857(0x2ad)];if(!_0xcfd96b[_0xb64857(0x25e)]||!_0x1f50f1){_0x1f50f1||console[_0xb64857(0x143)](_0xb64857(0x128));return;}let _0x163060=_0x361202(_0xcfd96b[_0xb64857(0x25e)]);if(!_0x163060)return;let _0x5e0280=_0x163060[_0xb64857(0x36c)];if(!_0x5e0280)return;let _0x14745d=_0x5273c3(_0x5e0280,_0x12cb18),_0x250d64=_0x163060['va']??_0x41d65f[_0xb64857(0x1d2)],_0x4d6d10=_0x163060['ha']??_0x5cdaf0[_0xb64857(0x205)],_0x175e6a=qi(this[_0xb64857(0x2bd)]['shapeModel']['getShapeData'](),_0xcfd96b,_0x14745d),_0x59eb61=_0xcfd96b[_0xb64857(0x20c)],_0x35415f=_0x3b74bd(_0x14745d,{'isHorizontal':_0x59eb61!==!0x1,'textRect':_0x2d5583,'verticalAlign':_0x250d64,'horizontalAlign':_0x4d6d10,'wrapStrategy':_0x175e6a[_0xb64857(0x1b1)]}),_0x1e539c=new _0x4107fb(_0x35415f),_0x29815e=new _0x2f6ee9(_0x1e539c),_0x4220c9=_0x297bbe[_0xb64857(0x1cd)](_0x29815e,_0x1f50f1);_0x4220c9[_0xb64857(0x331)]();let _0x231503=_0x4220c9[_0xb64857(0x133)]()['actualHeight'],_0x535ab1=_0x1e51d4({'contentHeight':_0x231503,'verticalAlign':_0x250d64,'viewportHeight':_0x2d5583[_0xb64857(0x174)]});_0x1e539c[_0xb64857(0x288)]({'pageSize':{'width':_0x59eb61===!0x1?_0x2d5583['height']:_0x2d5583[_0xb64857(0x177)],'height':_0x261110(_0x14745d,_0x535ab1[_0xb64857(0x1be)])}}),_0x1e539c[_0xb64857(0x2c9)]({'t':_0x535ab1[_0xb64857(0x20f)]}),_0x4220c9[_0xb64857(0x331)]();let _0x5e7a10=new _0x501bdc(_0xb64857(0x27b)+this[_0xb64857(0x11b)],_0x4220c9,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0xb64857(0x2ee)](!0x0)});_0x5e7a10['resize'](_0x2d5583[_0xb64857(0x177)],_0x535ab1[_0xb64857(0x1be)]),_0x2336a7['save'](),_0x2336a7[_0xb64857(0x2d9)](_0x2d5583['left'],_0x2d5583[_0xb64857(0x12e)]),_0x175e6a['clip']&&(_0x2336a7['beginPath'](),_0x2336a7[_0xb64857(0x34b)](0x0,_0x535ab1[_0xb64857(0x2db)],_0x2d5583[_0xb64857(0x177)],_0x535ab1[_0xb64857(0x372)]),_0x2336a7[_0xb64857(0x1ee)]()),_0x535ab1['contentVerticalOffset']&&_0x2336a7[_0xb64857(0x2d9)](0x0,_0x535ab1[_0xb64857(0x107)]),_0x5e7a10[_0xb64857(0x341)](_0x2336a7),_0x2a1079&&(this['_hyperLinkRegions']=_0x269858(_0x5e7a10,{'left':_0x2d5583[_0xb64857(0x112)],'top':_0x2d5583[_0xb64857(0x12e)]+_0x535ab1[_0xb64857(0x107)]},_0x175e6a['clip']?{'left':_0x2d5583[_0xb64857(0x112)],'right':_0x2d5583[_0xb64857(0x112)]+_0x2d5583[_0xb64857(0x177)],'top':_0x2d5583[_0xb64857(0x12e)]+_0x535ab1[_0xb64857(0x2db)],'bottom':_0x2d5583['top']+_0x535ab1[_0xb64857(0x2db)]+_0x535ab1[_0xb64857(0x372)]}:void 0x0)),_0x2336a7[_0xb64857(0x375)](),_0x5e7a10[_0xb64857(0x12f)](),_0x4220c9[_0xb64857(0x12f)](),_0x29815e[_0xb64857(0x12f)](),_0x1e539c[_0xb64857(0x12f)]();}[_0x2b58b8(0x21c)](_0x2c50fb,_0xb5eec7,_0x16cd02=!0x1){const _0x219b65=_0x2b58b8;if(!this[_0x219b65(0x306)])return this[_0x219b65(0x2ee)](!0x1),this;let {width:_0x44ae79,height:_0x2a5721,left:_0x51cb27,top:_0x573dbd}=this,_0x5404ce=this[_0x219b65(0x330)]();if(_0x44ae79=_0x5404ce[_0x219b65(0x177)],_0x2a5721=_0x5404ce['height'],_0x51cb27=_0x5404ce[_0x219b65(0x112)],_0x573dbd=_0x5404ce[_0x219b65(0x12e)],this['isRender'](_0xb5eec7)){let {top:_0x14d5b2,left:_0x1a0197,bottom:_0x23f800,right:_0x51f7c4}=_0xb5eec7['viewBound'];if(_0x44ae79+this['strokeWidth']+_0x51cb27<_0x1a0197||_0x51f7c4<_0x51cb27||_0x2a5721+this['strokeWidth']+_0x573dbd<_0x14d5b2||_0x23f800<_0x573dbd)return this;}let _0x174e64=_0x51cb27+_0x44ae79/0x2,_0x318648=_0x573dbd+_0x2a5721/0x2,_0x8dffb9=this[_0x219b65(0x277)][_0x219b65(0x116)]();if(this['_props'][_0x219b65(0x317)]){let _0x2db6d4=this[_0x219b65(0x308)](),_0x2a0d3f=new _0x4b5d71();_0x2a0d3f[_0x219b65(0x196)]({..._0x2db6d4}),_0x8dffb9=_0x2a0d3f[_0x219b65(0x116)]();}return _0x2c50fb[_0x219b65(0x1e7)](),this[_0x219b65(0x2bd)][_0x219b65(0x17c)][_0x219b65(0x105)]===!0x0||_0x2c50fb[_0x219b65(0x277)](_0x8dffb9[0x0],_0x8dffb9[0x1],_0x8dffb9[0x2],_0x8dffb9[0x3],_0x174e64,_0x318648),this['_draw'](_0x2c50fb,_0xb5eec7,_0x44ae79,_0x2a5721),_0x2c50fb['restore'](),this[_0x219b65(0x2ee)](!0x1),this;}['getInverseCoord'](_0x21ea2a){const _0x372889=_0x2b58b8;let {left:_0x52c66f,top:_0x3a81bf,width:_0x342608,height:_0x53c9a7}=this[_0x372889(0x330)](),_0x3b0bdb=this[_0x372889(0x277)]['getMatrix'](),_0x5a9a63=_0x52c66f+_0x342608/0x2,_0x31cb53=_0x3a81bf+_0x53c9a7/0x2,_0x68a663=new _0x4b5d71([_0x3b0bdb[0x0],_0x3b0bdb[0x1],_0x3b0bdb[0x2],_0x3b0bdb[0x3],_0x5a9a63,_0x31cb53]),_0x1ebe17=this[_0x372889(0x1d8)]();return(this[_0x372889(0x14e)]&&(_0x1ebe17==null?void 0x0:_0x1ebe17[_0x372889(0x223)])===_0x585778['GROUP']?_0x1ebe17[_0x372889(0x19f)]['multiply'](_0x68a663):_0x68a663)[_0x372889(0x153)]()[_0x372889(0x2fd)](_0x21ea2a);}[_0x2b58b8(0x299)](_0x5824c3){const _0x2b6759=_0x2b58b8;let {left:_0x5e4df4,top:_0x4494f9,width:_0x3fa643,height:_0x2c0364}=this['getRealBound'](),_0x265c36=_0x5e4df4+_0x3fa643/0x2,_0x4c0a0f=_0x4494f9+_0x2c0364/0x2,_0x1e7949=this[_0x2b6759(0x277)][_0x2b6759(0x116)](),_0x44403e=new _0x4b5d71([_0x1e7949[0x0],_0x1e7949[0x1],_0x1e7949[0x2],_0x1e7949[0x3],_0x265c36,_0x4c0a0f]),_0x2f3fe5=this['getParent'](),_0x1f0780=(this['isInGroup']&&(_0x2f3fe5==null?void 0x0:_0x2f3fe5[_0x2b6759(0x223)])===_0x585778['GROUP']?_0x2f3fe5[_0x2b6759(0x19f)][_0x2b6759(0x182)](_0x44403e):_0x44403e)[_0x2b6759(0x153)]()[_0x2b6759(0x2fd)](_0x5824c3),_0x4a6254=_0x3fa643/0x2,_0x2ec4b7=_0x2c0364/0x2,_0x66c889=this['_props']['shapeModel'];return _0x66c889&&_0x66c889[_0x2b6759(0x2b2)]()?_0x66c889['isHitLine'](_0x1f0780['x'],_0x1f0780['y'],_0x3fa643,_0x2c0364):_0x1f0780['x']>=-_0x4a6254-this[_0x2b6759(0x1f0)]/0x2&&_0x1f0780['x']<=_0x4a6254+this[_0x2b6759(0x1f0)]/0x2&&_0x1f0780['y']>=-_0x2ec4b7-this[_0x2b6759(0x1f0)]/0x2&&_0x1f0780['y']<=_0x2ec4b7+this['strokeWidth']/0x2;}['dispose'](){const _0x3942d3=_0x2b58b8;this['_formulaAnimation']['dispose'](),this['_props'][_0x3942d3(0x17c)]=null,super[_0x3942d3(0x12f)]();}};let Ji=class extends _0x587b62{constructor(_0x8f166d,_0x2d5812,_0x1319a1,_0x12bb1a){const _0x2066d6=_0x2b58b8;super(),this[_0x2066d6(0x37f)]=_0x8f166d,this[_0x2066d6(0x324)]=_0x2d5812,this['_docsShapeService']=_0x1319a1,this[_0x2066d6(0x34d)]=_0x12bb1a,J(this,'_activeShapeId',null),J(this,_0x2066d6(0x30c),null),J(this,_0x2066d6(0x37c),null),J(this,_0x2066d6(0x387),void 0x0),J(this,_0x2066d6(0x33a),[]),J(this,_0x2066d6(0x28a),0x0),J(this,_0x2066d6(0x147),0x0),J(this,'_baseShapeWidth',0x0),J(this,_0x2066d6(0x206),0x0),J(this,_0x2066d6(0x126),!0x1),J(this,'_isShouldShowDrawingShapeAdjust',!0x1),J(this,_0x2066d6(0x351),void 0x0),J(this,_0x2066d6(0x2dd),void 0x0),J(this,_0x2066d6(0x2aa),void 0x0),J(this,_0x2066d6(0x198),void 0x0),this[_0x2066d6(0x12c)](),this[_0x2066d6(0x2fe)]();}[_0x2b58b8(0x1d7)](){const _0x21d77c=_0x2b58b8;this[_0x21d77c(0x2cd)]();}['refreshAdjustControls'](){const _0x1c8e46=_0x2b58b8;this[_0x1c8e46(0x26c)](!0x0);}['_getShapeAdjustPointListById'](_0x1d6529,_0x12d8e1,_0x55d1a8){const _0x2b7275=_0x2b58b8;var _0x256c00;return(_0x256c00=this['_docsShapeService'][_0x2b7275(0x348)](_0x1d6529,_0x12d8e1,_0x55d1a8))==null?void 0x0:_0x256c00[_0x2b7275(0x1a3)]();}[_0x2b58b8(0x1bd)](_0x31664c,_0xcf64ac,_0x44ed60,_0x7f725f){const _0x1a80a5=_0x2b58b8;var _0x1cb3e9;return(_0x1cb3e9=this[_0x1a80a5(0x33f)][_0x1a80a5(0x348)](_0x31664c,_0xcf64ac,_0x44ed60))==null?void 0x0:_0x1cb3e9['getAdjustInfoByName'](_0x7f725f);}[_0x2b58b8(0x384)](){const _0x311690=_0x2b58b8;return this['_unitId']===null||this['_subUnitId']===null||this[_0x311690(0x1b9)]===null?null:this[_0x311690(0x324)]['getDrawingByParam']({'unitId':this[_0x311690(0x30c)],'subUnitId':this[_0x311690(0x37c)],'drawingId':this[_0x311690(0x1b9)]})??null;}[_0x2b58b8(0x36e)](_0x3ea397){const _0x18cb47=_0x2b58b8;if(this[_0x18cb47(0x30c)]===null||this[_0x18cb47(0x37c)]===null||this[_0x18cb47(0x1b9)]===null)return null;let _0x1057e9=_0x3ac7e0({'unitId':this['_unitId'],'subUnitId':this[_0x18cb47(0x37c)],'drawingId':this[_0x18cb47(0x1b9)]}),_0xce073a=_0x3ea397[_0x18cb47(0x202)](_0x1057e9);return _0xce073a instanceof Y?_0xce073a:null;}[_0x2b58b8(0x2a8)](_0x263769=!0x1){const _0x38263b=_0x2b58b8;if(this[_0x38263b(0x30c)]===null||this[_0x38263b(0x37c)]===null||this[_0x38263b(0x1b9)]===null)return;let _0x556d72=this[_0x38263b(0x384)]();if((_0x556d72==null?void 0x0:_0x556d72[_0x38263b(0x142)])!==_0x11efaa[_0x38263b(0x14f)]||!_0x556d72[_0x38263b(0x277)])return;let _0x210d23=this['_docsShapeService'][_0x38263b(0x348)](this[_0x38263b(0x30c)],this[_0x38263b(0x37c)],this['_activeShapeId']);if(!_0x210d23||_0x210d23[_0x38263b(0x2b2)]())return;let {left:_0xabf71f=0x0,top:_0x11fa0b=0x0,width:_0x355cea=0x0,height:_0x1bb0f2=0x0,flipX:_0x297355,flipY:_0x5ccaa8,angle:_0x5a9f40=0x0}=_0x556d72[_0x38263b(0x277)];(_0x263769||!this[_0x38263b(0x387)])&&(_0x210d23[_0x38263b(0x1f8)]({'width':_0x355cea,'height':_0x1bb0f2}),this['_activeShapeAdjustPointList']=_0x210d23[_0x38263b(0x1a3)]());let _0x47e303=this[_0x38263b(0x387)];if(!(_0x47e303!=null&&_0x47e303[_0x38263b(0x364)]))return;let {scene:_0x48f1c7}=this[_0x38263b(0x37f)];for(let _0x565f13 of _0x47e303){let _0x470662=this[_0x38263b(0x2bc)](_0x565f13,_0x355cea,_0x1bb0f2,!!_0x297355,!!_0x5ccaa8,_0x5a9f40);this[_0x38263b(0x318)](_0x48f1c7,_0x470662,_0x470662[_0x38263b(0x2c6)],_0xabf71f,_0x11fa0b,this['_unitId'],this[_0x38263b(0x37c)]);}}[_0x2b58b8(0x2bc)](_0x4ace78,_0x10c0ac,_0x5eedb6,_0x59c664,_0x865ce4,_0x5ce92e){const _0x8f80c9=_0x2b58b8;let _0x140fd9=_0x4ace78['x'],_0x52c480=_0x4ace78['y'];if(_0x59c664&&(_0x140fd9=_0x10c0ac-_0x140fd9),_0x865ce4&&(_0x52c480=_0x5eedb6-_0x52c480),_0x5ce92e!==0x0){let _0x2e8f7c=_0x10c0ac/0x2,_0x539109=_0x5eedb6/0x2,_0x5e7b6c=_0x5ce92e*Math['PI']/0xb4,_0xec0a3=Math[_0x8f80c9(0x1f2)](_0x5e7b6c),_0x57004c=Math[_0x8f80c9(0x2cf)](_0x5e7b6c),_0x4d5c77=_0x140fd9-_0x2e8f7c,_0x281f69=_0x52c480-_0x539109;_0x140fd9=_0x2e8f7c+(_0x4d5c77*_0xec0a3-_0x281f69*_0x57004c),_0x52c480=_0x539109+(_0x4d5c77*_0x57004c+_0x281f69*_0xec0a3);}return{'x':_0x140fd9,'y':_0x52c480,'adjName':_0x4ace78['adjName']};}[_0x2b58b8(0x26c)](_0x1487e9=!0x1){const _0x1ce24e=_0x2b58b8;_0x1487e9&&this[_0x1ce24e(0x2cd)](),this[_0x1ce24e(0x2a8)](_0x1487e9);}[_0x2b58b8(0x318)](_0x48fb63,_0x17ce2a,_0x2a7d19,_0x3a343d,_0x5771ff,_0x35e9d7,_0x2487ae){const _0x966ce3=_0x2b58b8;if(!this[_0x966ce3(0x1b9)])return;let _0x12815d=_0x966ce3(0x378)+this['_activeShapeId']+'-'+_0x2a7d19,_0x102cf4=_0x48fb63[_0x966ce3(0x202)](_0x12815d);if(_0x102cf4){_0x102cf4['transformByState']({'left':_0x17ce2a['x']+_0x3a343d-_0xda9354['adjHandleSize'],'top':_0x17ce2a['y']+_0x5771ff-_0xda9354['adjHandleSize']}),_0x102cf4['makeDirty'](!0x0);return;}let _0x581167=new Ki(_0x12815d,{'left':_0x17ce2a['x']+_0x3a343d-_0xda9354['adjHandleSize'],'top':_0x17ce2a['y']+_0x5771ff-_0xda9354[_0x966ce3(0x14d)],'adjName':_0x2a7d19,'shapeId':this['_activeShapeId'],'unitId':_0x35e9d7,'subUnitId':_0x2487ae,'width':_0xda9354[_0x966ce3(0x14d)]+0x8,'height':_0xda9354['adjHandleSize']+0x8,'zIndex':_0x59670b+0x1,'evented':!0x0});this['_adjustPointObjects']['push'](_0x581167),this[_0x966ce3(0x30d)](_0x581167,_0x48fb63,_0x2a7d19),_0x48fb63[_0x966ce3(0x386)](_0x581167,_0x59670b+0x1);}[_0x2b58b8(0x2cd)](){const _0x4d6386=_0x2b58b8;this['_adjustPointObjects'][_0x4d6386(0x30e)](_0x30e0c8=>_0x30e0c8[_0x4d6386(0x12f)]()),this[_0x4d6386(0x33a)]=[];}['_updateAdjustControlPositions'](){const _0x49a7b9=_0x2b58b8;this[_0x49a7b9(0x2a8)]();}[_0x2b58b8(0x140)](_0x1a3194,_0x4bcfed,_0x23ae0f){const _0x26c20c=_0x2b58b8;let _0x444d74=_0xd9a358['FromArray']([_0x4bcfed,_0x23ae0f]),_0xa4d856=_0x1a3194['getActiveViewportByCoord'](_0x444d74)??_0x1a3194[_0x26c20c(0x221)]()[0x0];return(_0xa4d856==null?void 0x0:_0xa4d856['transformVector2SceneCoord'](_0x444d74))??_0x444d74;}[_0x2b58b8(0x30d)](_0x4722b3,_0x467cb6,_0x27ba1d){const _0x48a438=_0x2b58b8;this['disposeWithMe'](_0x390b1(_0x4722b3[_0x48a438(0x353)][_0x48a438(0x321)]((_0x99148b,_0x1a6785)=>{const _0x34ba63=_0x48a438;var _0x2e06bc;let _0x3cd680=_0x4722b3['getDrawingSearch']();this[_0x34ba63(0x351)]=this[_0x34ba63(0x1bd)](_0x3cd680[_0x34ba63(0x383)],_0x3cd680[_0x34ba63(0x21e)],_0x3cd680[_0x34ba63(0x160)],_0x27ba1d),this[_0x34ba63(0x2dd)]=this[_0x34ba63(0x33f)]['getShapeModel'](_0x3cd680[_0x34ba63(0x383)],_0x3cd680['subUnitId'],_0x3cd680[_0x34ba63(0x160)]);let _0x286b2d=this[_0x34ba63(0x384)](),_0x702fa8=_0x286b2d==null?void 0x0:_0x286b2d['transform'];if(!_0x286b2d||!_0x702fa8||!this[_0x34ba63(0x2dd)])return;this[_0x34ba63(0x28a)]=_0x702fa8[_0x34ba63(0x112)]||0x0,this[_0x34ba63(0x147)]=_0x702fa8[_0x34ba63(0x12e)]||0x0,this[_0x34ba63(0x32f)]=_0x702fa8['width']||0x0,this['_baseShapeHeight']=_0x702fa8[_0x34ba63(0x174)]||0x0;let _0x352b3c=!!_0x702fa8[_0x34ba63(0x24d)],_0x1d99aa=!!_0x702fa8[_0x34ba63(0x18e)],_0x529684=_0x702fa8[_0x34ba63(0x276)]||0x0,_0x259bcb={...((_0x2e06bc=this[_0x34ba63(0x351)])==null?void 0x0:_0x2e06bc['currentAdjustValues'])??{}};this['_isStartAdjusting']=!0x0,_0x467cb6[_0x34ba63(0x189)](),this['_adjHandlerPointerMove']=_0x467cb6[_0x34ba63(0x20e)][_0x34ba63(0x321)]((_0x7f0e06,_0x53c067)=>{const _0x12a393=_0x34ba63;var _0x178014;if(!this[_0x12a393(0x126)]||!this[_0x12a393(0x2dd)]||!this[_0x12a393(0x351)])return;_0x467cb6[_0x12a393(0x189)](),_0x467cb6[_0x12a393(0x382)](_0x5c1434[_0x12a393(0x31c)]);let _0x4e9b53=this[_0x12a393(0x140)](_0x467cb6,_0x7f0e06[_0x12a393(0x137)],_0x7f0e06['offsetY']),_0x2ca111=_0x4e9b53['x']-this['_baseShapeLeft'],_0x14f89e=_0x4e9b53['y']-this['_baseShapeTop'];if(_0x529684!==0x0){let _0xee0f7c=this['_baseShapeWidth']/0x2,_0x325245=this[_0x12a393(0x206)]/0x2,_0x13a132=_0x529684*Math['PI']/0xb4,_0x17d43b=Math['cos'](_0x13a132),_0x1c7d3f=Math[_0x12a393(0x2cf)](_0x13a132),_0x132ceb=_0x2ca111-_0xee0f7c,_0x3ac161=_0x14f89e-_0x325245;_0x2ca111=_0xee0f7c+(_0x132ceb*_0x17d43b+_0x3ac161*_0x1c7d3f),_0x14f89e=_0x325245+(-_0x132ceb*_0x1c7d3f+_0x3ac161*_0x17d43b);}_0x352b3c&&(_0x2ca111=this['_baseShapeWidth']-_0x2ca111),_0x1d99aa&&(_0x14f89e=this[_0x12a393(0x206)]-_0x14f89e);let _0x1d2625={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0x12a393(0x206)]},_0x5571e9=this[_0x12a393(0x2dd)][_0x12a393(0x2d8)](_0x1d2625,{'x':_0x2ca111,'y':_0x14f89e},this[_0x12a393(0x351)],_0x352b3c,_0x1d99aa);if(Object['keys'](_0x5571e9)['length']!==0x0){for(let [_0x47bd83,_0x22f683]of Object[_0x12a393(0x125)](_0x5571e9))this[_0x12a393(0x2dd)][_0x12a393(0x1bf)](_0x47bd83,_0x22f683);this[_0x12a393(0x2dd)][_0x12a393(0x1f8)]({'width':this[_0x12a393(0x32f)],'height':this['_baseShapeHeight']}),(_0x178014=this[_0x12a393(0x36e)](_0x467cb6))==null||_0x178014[_0x12a393(0x2ee)](!0x0),this[_0x12a393(0x387)]=this['_getShapeAdjustPointListById'](_0x3cd680[_0x12a393(0x383)],_0x3cd680['subUnitId'],_0x3cd680['drawingId']),this[_0x12a393(0x134)](),_0x53c067[_0x12a393(0x158)]();}}),this[_0x34ba63(0x198)]=_0x467cb6['onPointerUp$']['subscribeEvent']((_0x27d032,_0xce1d16)=>{const _0x237715=_0x34ba63;var _0x3d913c,_0x1576b3;(_0x3d913c=this[_0x237715(0x2aa)])==null||_0x3d913c[_0x237715(0x1de)](),(_0x1576b3=this[_0x237715(0x198)])==null||_0x1576b3['unsubscribe'](),_0x467cb6['resetCursor']();let _0x2a538f=this[_0x237715(0x351)];if(_0x2a538f&&this['_activeShapeModel']){let _0x2aad20={};for(let _0x3d0390 of Object['keys'](_0x2a538f[_0x237715(0x209)])){let _0x32a1aa=this[_0x237715(0x2dd)][_0x237715(0x31f)](_0x3d0390);_0x32a1aa!==void 0x0&&(_0x2aad20[_0x3d0390]=_0x32a1aa);}Object[_0x237715(0x279)](_0x2aad20)[_0x237715(0x364)]>0x0&&Yr(this['_commandService'],_0x3cd680[_0x237715(0x383)],_0x3cd680[_0x237715(0x21e)],_0x3cd680[_0x237715(0x160)],{'oldShapeData':{'adjustValues':_0x259bcb}},{'adjustValues':_0x2aad20});}this['_activeAdjustInfo']=void 0x0,this[_0x237715(0x2dd)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x467cb6[_0x237715(0x291)](),_0xce1d16[_0x237715(0x158)]();}),_0x1a6785[_0x34ba63(0x158)]();})));}[_0x2b58b8(0x2fe)](){const _0x1c0219=_0x2b58b8;let {scene:_0x5a2c1d}=this[_0x1c0219(0x37f)],_0x462800=_0x5a2c1d[_0x1c0219(0x319)]();this[_0x1c0219(0x32d)](_0x462800[_0x1c0219(0x2dc)]['subscribe'](_0x55d30f=>{const _0x137ae=_0x1c0219;this[_0x137ae(0x2a8)](),_0x55d30f[_0x137ae(0x344)]!==null&&_0x55d30f['objects'][_0x137ae(0x25f)]===0x1&&_0x55d30f[_0x137ae(0x344)][_0x137ae(0x199)]()['next']()[_0x137ae(0x1dc)]instanceof Y&&(this[_0x137ae(0x32c)]=!0x0);})),this[_0x1c0219(0x32d)](_0x462800['changing$'][_0x1c0219(0x138)](()=>{const _0x104274=_0x1c0219;this[_0x104274(0x32c)]&&this[_0x104274(0x2cd)]();})),this[_0x1c0219(0x32d)](_0x5a2c1d[_0x1c0219(0x20a)][_0x1c0219(0x321)](()=>{const _0x2eda05=_0x1c0219;this[_0x2eda05(0x32c)]&&(this[_0x2eda05(0x32c)]=!0x1,this[_0x2eda05(0x2a8)]());})),this[_0x1c0219(0x32d)](_0x462800[_0x1c0219(0x356)][_0x1c0219(0x138)](()=>{const _0x5b523e=_0x1c0219;this['_unitId']&&this[_0x5b523e(0x37c)]&&this[_0x5b523e(0x1b9)]&&(this[_0x5b523e(0x387)]=this[_0x5b523e(0x187)](this['_unitId'],this[_0x5b523e(0x37c)],this[_0x5b523e(0x1b9)]),this[_0x5b523e(0x134)]());}));}['_registerDrawingFocusChangeHandler'](){const _0x1ab318=_0x2b58b8;this[_0x1ab318(0x32d)](this['_commandService'][_0x1ab318(0x19e)](_0xb4eb8a=>{const _0x2c52db=_0x1ab318;if(_0xb4eb8a['id']!==_0x3d4cfc['id'])return;let {unitId:_0x216300,shapeId:_0x4b8b25}=_0xb4eb8a[_0x2c52db(0x339)];_0x216300===this[_0x2c52db(0x30c)]&&_0x4b8b25===this['_activeShapeId']&&this[_0x2c52db(0x309)]();})),this[_0x1ab318(0x32d)](this[_0x1ab318(0x324)][_0x1ab318(0x2f3)][_0x1ab318(0x138)](_0x27285e=>{const _0x489a1f=_0x1ab318;if(_0x27285e[_0x489a1f(0x364)]===0x1){let _0x185115=_0x27285e[0x0],_0x1333b5=this['_drawingManagerService']['getDrawingByParam'](_0x185115);if((_0x1333b5==null?void 0x0:_0x1333b5[_0x489a1f(0x142)])===_0x11efaa[_0x489a1f(0x14f)]){this[_0x489a1f(0x1b9)]=_0x185115[_0x489a1f(0x160)],this[_0x489a1f(0x30c)]=_0x185115['unitId'],this[_0x489a1f(0x37c)]=_0x185115[_0x489a1f(0x21e)],this[_0x489a1f(0x387)]=this['_getShapeAdjustPointListById'](_0x185115[_0x489a1f(0x383)],_0x185115[_0x489a1f(0x21e)],_0x185115[_0x489a1f(0x160)]),this[_0x489a1f(0x2cd)](),this[_0x489a1f(0x2a8)]();return;}}this[_0x489a1f(0x1b9)]=null,this[_0x489a1f(0x387)]=void 0x0,this[_0x489a1f(0x30c)]=null,this[_0x489a1f(0x37c)]=null,this['_clearShapeAdjustControls']();})),this[_0x1ab318(0x32d)](_0x3f58bc(this[_0x1ab318(0x324)]['update$'],this[_0x1ab318(0x324)][_0x1ab318(0x1b3)])[_0x1ab318(0x138)](_0x231f81=>{const _0x23ff20=_0x1ab318;var _0x50b722;let _0x4170b1=_0x231f81['find'](_0xd66d1=>_0xd66d1[_0x23ff20(0x160)]===this[_0x23ff20(0x1b9)]&&_0xd66d1[_0x23ff20(0x383)]===this['_unitId']&&_0xd66d1[_0x23ff20(0x21e)]===this[_0x23ff20(0x37c)]);_0x4170b1&&((_0x50b722=this[_0x23ff20(0x324)]['getDrawingByParam'](_0x4170b1))==null?void 0x0:_0x50b722[_0x23ff20(0x142)])===_0x11efaa['DRAWING_SHAPE']&&this[_0x23ff20(0x26c)](!0x0);})),this[_0x1ab318(0x32d)](this[_0x1ab318(0x324)][_0x1ab318(0x2f2)][_0x1ab318(0x138)](_0x52c3e3=>{const _0x410136=_0x1ab318;for(let _0x196d09 of _0x52c3e3)this['_activeShapeId']===_0x196d09[_0x410136(0x160)]&&(this[_0x410136(0x1b9)]=null,this[_0x410136(0x387)]=void 0x0,this[_0x410136(0x30c)]=null,this[_0x410136(0x37c)]=null,this[_0x410136(0x2cd)]());}));}};Ji=q([K(0x1,_0x1f1d2f),K(0x2,_0xbdb0e2(_0xc58a76)),K(0x3,_0x5f3c0a)],Ji);let X=class extends _0x587b62{constructor(_0x3189ee,_0x3ebc1f){const _0x372cae=_0x2b58b8;super(),this[_0x372cae(0x121)]=_0x3189ee,this[_0x372cae(0x281)]=_0x3ebc1f,J(this,_0x372cae(0x16c),new _0x4ac5d9(null)),J(this,_0x372cae(0x371),this['_editingParams$'][_0x372cae(0x1f9)]()),J(this,_0x372cae(0x2bb),new _0x4ac5d9(!0x1)),J(this,'onSavingEditorData$',this[_0x372cae(0x2bb)][_0x372cae(0x1f9)]()),J(this,'_completionFrame',void 0x0),this[_0x372cae(0x32d)](this[_0x372cae(0x121)][_0x372cae(0x27f)][_0x372cae(0x138)](()=>{const _0x3f803f=_0x372cae;let _0x1503f0=this[_0x3f803f(0x2c5)]();_0x1503f0!=null&&_0x1503f0[_0x3f803f(0x306)]&&!this[_0x3f803f(0x163)](_0x1503f0)&&this['setEditing'](null);}));}[_0x2b58b8(0x12f)](){const _0x28cd4a=_0x2b58b8;this[_0x28cd4a(0x1af)](),this['_editingParams$'][_0x28cd4a(0x225)](null),this[_0x28cd4a(0x16c)][_0x28cd4a(0x260)](),this[_0x28cd4a(0x2bb)][_0x28cd4a(0x225)](!0x1),this['_onSavingEditorData$'][_0x28cd4a(0x260)](),super['dispose']();}[_0x2b58b8(0x2e8)](_0x4b22ce){const _0x48270f=_0x2b58b8;(_0x4b22ce==null||!_0x4b22ce[_0x48270f(0x306)]||this[_0x48270f(0x163)](_0x4b22ce))&&(this[_0x48270f(0x1af)](),this['_editingParams$'][_0x48270f(0x225)](_0x4b22ce),(_0x4b22ce==null||_0x4b22ce[_0x48270f(0x306)]&&this['_onSavingEditorData$'][_0x48270f(0x347)]())&&this['_onSavingEditorData$'][_0x48270f(0x225)](!0x1));}['setOnSavingEditorData'](_0x4eb8e3){const _0x2c4750=_0x2b58b8;this[_0x2c4750(0x2bb)][_0x2c4750(0x225)](_0x4eb8e3);}[_0x2b58b8(0x2c5)](){return this['_editingParams$']['getValue']();}[_0x2b58b8(0x163)](_0x47e97f){const _0x4c8896=_0x2b58b8;let _0x4f1f3d=this[_0x4c8896(0x281)]['getUnit'](_0x47e97f[_0x4c8896(0x383)],_0x19a5e9[_0x4c8896(0x234)]);if(!_0x4f1f3d)return!0x0;let _0x2091bb=_0x384956(_0x4f1f3d,_0x47e97f[_0x4c8896(0x1a7)]);return _0x353611(this[_0x4c8896(0x121)],_0x47e97f[_0x4c8896(0x383)],[..._0x4fa6cb(_0x4f1f3d,_0x2091bb,_0x4c8896(0x33e),_0x47e97f[_0x4c8896(0x1a7)]),_0x418902(_0x2091bb,_0x4c8896(0x33e),_0x47e97f[_0x4c8896(0x1a7)])]);}['completeEditing'](_0x41b202){const _0x34a219=_0x2b58b8;let _0x1bede8=this[_0x34a219(0x2c5)]();_0x1bede8&&this[_0x34a219(0x271)]===void 0x0&&(this['setOnSavingEditorData'](!0x0),this[_0x34a219(0x271)]=requestAnimationFrame(()=>{const _0x55f227=_0x34a219;this['_completionFrame']=void 0x0,this[_0x55f227(0x2c5)]()===_0x1bede8&&this[_0x55f227(0x2e8)](null);}));}[_0x2b58b8(0x1af)](){const _0x515253=_0x2b58b8;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this[_0x515253(0x271)]),this['_completionFrame']=void 0x0);}[_0x2b58b8(0x2cb)](){const _0x276035=_0x2b58b8;this[_0x276035(0x2c5)]()&&this[_0x276035(0x2e8)](null);}};X=q([K(0x0,_0x562515),K(0x1,_0x52a285)],X);function Yi(_0x43353c){const _0x25724e=_0x2b58b8;return _0x43353c['behindText']===!0x0||_0x43353c[_0x25724e(0x13a)]===_0x562bb0['TRUE']||_0x43353c[_0x25724e(0x118)]===_0x292c91['WRAP_NONE']&&_0x43353c[_0x25724e(0x26f)]===_0x562bb0['TRUE']?_0x191d2f-0x1:_0x59670b;}let Z=class extends _0x587b62{constructor(_0x44c43e,_0x20fcd7,_0x15a84c,_0x533693,_0x3b3d66,_0xcad525,_0xe2d148){const _0x224d6a=_0x2b58b8;super(),this[_0x224d6a(0x324)]=_0x44c43e,this[_0x224d6a(0x33f)]=_0x20fcd7,this[_0x224d6a(0x204)]=_0x15a84c,this['_imageIoService']=_0x533693,this[_0x224d6a(0x211)]=_0x3b3d66,this[_0x224d6a(0x1aa)]=_0xcad525,this['_shapeFormulaService']=_0xe2d148,J(this,_0x224d6a(0x2a4),new Map()),this[_0x224d6a(0x32d)](this[_0x224d6a(0x376)][_0x224d6a(0x18f)][_0x224d6a(0x138)](_0x401c2e=>{const _0x15f068=_0x224d6a;var _0x243c22;(_0x243c22=this['_formulaShapes'][_0x15f068(0x113)](this['_formulaKey'](_0x401c2e[_0x15f068(0x383)],_0x401c2e[_0x15f068(0x21e)],_0x401c2e[_0x15f068(0x1a7)])))==null||_0x243c22[_0x15f068(0x30e)](_0x548d11=>_0x548d11[_0x15f068(0x2b5)](_0x401c2e['presentation'],_0x401c2e[_0x15f068(0x129)]));})),this['disposeWithMe'](this['_drawingManagerService']['remove$']['subscribe'](_0x3daa66=>{const _0x2d01f3=_0x224d6a;_0x3daa66[_0x2d01f3(0x30e)](_0x5770bf=>{const _0x3adbbb=_0x2d01f3;this['_shapeFormulaService']['unregister']({'unitId':_0x5770bf[_0x3adbbb(0x383)],'subUnitId':_0x5770bf[_0x3adbbb(0x21e)],'shapeId':_0x5770bf[_0x3adbbb(0x160)]}),this[_0x3adbbb(0x2a4)]['delete'](this[_0x3adbbb(0x16a)](_0x5770bf['unitId'],_0x5770bf[_0x3adbbb(0x21e)],_0x5770bf[_0x3adbbb(0x160)]));});}));}[_0x2b58b8(0x1ce)](_0x2f5668,_0x6969d2){const _0x5c64a4=_0x2b58b8;let {transform:_0x8e8678,drawingType:_0x26f5dc,srcRect:_0x4407e2,prstGeom:_0x2497d8,groupId:_0x6ebbe6,unitId:_0x496ba9,subUnitId:_0x45afc5,drawingId:_0x25f9b6,isMultiTransform:_0x143927,transforms:_0x2595df,hidden:_0x1a6f40,selectable:_0x37ae7f}=_0x2f5668;if(_0x26f5dc!==_0x11efaa[_0x5c64a4(0x14f)]||!this[_0x5c64a4(0x324)][_0x5c64a4(0x1ff)]()||_0x8e8678==null)return;let _0x30e5dc=this['_drawingManagerService'][_0x5c64a4(0x20d)](),_0x5a4a3f=_0x143927&&_0x2595df?_0x2595df:[_0x8e8678],_0x4c7f98=[];for(let [_0x35d5fd,_0x5ae1c3]of _0x5a4a3f['entries']()){let {left:_0x48d536,top:_0x3af56b,width:_0x59d2b0,height:_0x4e6df8,angle:_0x4c6a41,flipX:_0x29a9ee,flipY:_0x25a8ee,skewX:_0x31593a,skewY:_0x46135d}=_0x5ae1c3,_0x512767=_0x3ac7e0({'unitId':_0x496ba9,'subUnitId':_0x45afc5,'drawingId':_0x25f9b6},_0x143927?_0x35d5fd:void 0x0),_0x150037=_0x6969d2[_0x5c64a4(0x202)](_0x512767);if(_0x150037!=null){let _0x1129e3={'unitId':_0x496ba9,'subUnitId':_0x45afc5,'shapeId':_0x25f9b6};_0x150037 instanceof Y&&this[_0x5c64a4(0x224)](_0x150037,_0x1129e3),_0x150037['transformByState']({'left':_0x48d536,'top':_0x3af56b,'width':_0x59d2b0,'height':_0x4e6df8,'angle':_0x4c6a41,'flipX':_0x29a9ee,'flipY':_0x25a8ee,'skewX':_0x31593a,'skewY':_0x46135d});continue;}let _0x1074d0=this[_0x5c64a4(0x324)][_0x5c64a4(0x1ec)](_0x496ba9,_0x45afc5),_0x1be685=_0x1074d0['indexOf'](_0x25f9b6);if(_0x6969d2[_0x5c64a4(0x202)](_0x512767)||!this[_0x5c64a4(0x324)][_0x5c64a4(0x1ff)]())continue;let _0x10094c=this[_0x5c64a4(0x33f)]['getShapeModel'](_0x496ba9,_0x45afc5,_0x25f9b6);if(!_0x10094c)continue;let _0x37a7b8=_0x3a6b70(_0x10094c[_0x5c64a4(0x11f)]())?{..._0x48d4bb,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x48d4bb,_0x215767=_0x10094c['getShapeData']()[_0x5c64a4(0x328)],_0x5da622={'unitId':_0x496ba9,'subUnitId':_0x45afc5,'shapeId':_0x25f9b6};_0x215767&&this[_0x5c64a4(0x376)][_0x5c64a4(0x109)](_0x5da622,_0x215767);let _0x4d45f2=new Y(_0x512767,{..._0x5ae1c3,'zIndex':_0x1be685===-0x1?_0x1074d0[_0x5c64a4(0x364)]-0x1:_0x1be685,'shapeModel':_0x10094c,'localeService':this[_0x5c64a4(0x204)],'shapeId':_0x25f9b6,'unitId':_0x496ba9,'subUnitId':_0x45afc5,'visible':_0x1a6f40!==!0x0,'evented':_0x37ae7f!==!0x1,'formulaPresentation':_0x215767?this[_0x5c64a4(0x376)][_0x5c64a4(0x315)](_0x5da622):void 0x0,'animateFormulaPresentation':(_0x215767==null?void 0x0:_0x215767[_0x5c64a4(0x129)])!==!0x1,'transformerConfig':_0x37a7b8});if(_0x215767){let _0x39b098=this['_formulaKey'](_0x496ba9,_0x45afc5,_0x25f9b6),_0x4cc6c7=this[_0x5c64a4(0x2a4)][_0x5c64a4(0x113)](_0x39b098)??new Set();_0x4cc6c7[_0x5c64a4(0x11a)](_0x4d45f2),this['_formulaShapes'][_0x5c64a4(0x1dd)](_0x39b098,_0x4cc6c7);}this['disposeWithMe'](_0x390b1(_0x4d45f2[_0x5c64a4(0x369)]['subscribeEvent']((_0x37d832,_0x13baaa)=>{const _0x5a9c7a=_0x5c64a4;_0x10094c[_0x5a9c7a(0x2b2)]()||_0x215767||(this['_shapeTextEditingService']['setEditing']({'visible':!0x0,'unitId':_0x496ba9,'subUnitId':_0x45afc5,'shapeId':_0x25f9b6,'shapeKey':_0x4d45f2[_0x5a9c7a(0x11b)]}),_0x13baaa['stopPropagation']());}))),_0x6969d2[_0x5c64a4(0x386)](_0x4d45f2,Yi(_0x2f5668)),_0x30e5dc&&_0x6969d2[_0x5c64a4(0x23b)](_0x4d45f2),_0x6ebbe6&&_0xfd7c86({'drawingId':_0x6ebbe6,'unitId':_0x496ba9,'subUnitId':_0x45afc5},_0x4d45f2,_0x6969d2,this[_0x5c64a4(0x324)],_0x143927?_0x35d5fd:void 0x0),_0x2497d8!=null&&_0x4d45f2['setPrstGeom'](_0x2497d8),_0x4407e2!=null&&_0x4d45f2[_0x5c64a4(0x2fa)](_0x4407e2),this[_0x5c64a4(0x2df)](_0x4d45f2,_0x10094c[_0x5c64a4(0x170)]()),_0x4c7f98['push'](_0x4d45f2);}return _0x4c7f98;}[_0x2b58b8(0x16a)](_0x2d61c9,_0x33936f,_0x436c9c){return _0x2d61c9+'\x00'+_0x33936f+'\x00'+_0x436c9c;}[_0x2b58b8(0x224)](_0x6e5971,_0x2be3f0){const _0x147a43=_0x2b58b8;let _0x321693=this[_0x147a43(0x33f)][_0x147a43(0x348)](_0x2be3f0[_0x147a43(0x383)],_0x2be3f0[_0x147a43(0x21e)],_0x2be3f0[_0x147a43(0x1a7)]),_0x4c8908=_0x321693==null?void 0x0:_0x321693[_0x147a43(0x170)]()[_0x147a43(0x328)],_0x8d4529=this[_0x147a43(0x16a)](_0x2be3f0[_0x147a43(0x383)],_0x2be3f0[_0x147a43(0x21e)],_0x2be3f0[_0x147a43(0x1a7)]);if(_0x4c8908){this[_0x147a43(0x376)]['register'](_0x2be3f0,_0x4c8908);let _0x51c852=this[_0x147a43(0x2a4)][_0x147a43(0x113)](_0x8d4529)??new Set();_0x51c852[_0x147a43(0x11a)](_0x6e5971),this[_0x147a43(0x2a4)][_0x147a43(0x1dd)](_0x8d4529,_0x51c852);}else{var _0x25efa0;this[_0x147a43(0x376)]['unregister'](_0x2be3f0),(_0x25efa0=this[_0x147a43(0x2a4)][_0x147a43(0x113)](_0x8d4529))==null||_0x25efa0[_0x147a43(0x1a2)](_0x6e5971);}_0x6e5971['setFormulaPresentation'](_0x4c8908?this['_shapeFormulaService'][_0x147a43(0x315)](_0x2be3f0):void 0x0,(_0x4c8908==null?void 0x0:_0x4c8908['animationEnabled'])!==!0x1);}[_0x2b58b8(0x380)](_0x2d9439){const _0x5e71b4=_0x2b58b8;let _0xa2713b=_0x2d9439[_0x5e71b4(0x17c)]['getShapeData'](),_0x41fbb4=_0xa2713b[_0x5e71b4(0x180)];if(!_0x41fbb4||_0x41fbb4[_0x5e71b4(0x334)]!==_0x377cba[_0x5e71b4(0x1b6)]||!_0x41fbb4[_0x5e71b4(0x136)]){_0x2d9439['setFillImage'](void 0x0);return;}this[_0x5e71b4(0x2df)](_0x2d9439,_0xa2713b);}[_0x2b58b8(0x2df)](_0xc71f70,_0x32b6a3){const _0x20bc64=_0x2b58b8;let _0x18f95a=_0x32b6a3[_0x20bc64(0x180)];if(!_0x18f95a||_0x18f95a[_0x20bc64(0x334)]!==_0x377cba[_0x20bc64(0x1b6)]||!_0x18f95a[_0x20bc64(0x136)])return;let _0x10abfd=_0x18f95a[_0x20bc64(0x136)],_0x35081f=_0x18f95a[_0x20bc64(0x2a0)]??_0x34e787[_0x20bc64(0x36d)],_0x4db42f=this['_imageIoService'][_0x20bc64(0x2e3)](_0x10abfd,_0x35081f);if(_0x4db42f){_0xc71f70[_0x20bc64(0x293)](_0x4db42f);return;}this[_0x20bc64(0x275)](_0xc71f70,_0x10abfd,_0x35081f);}async[_0x2b58b8(0x275)](_0x1b04d2,_0x47f4af,_0x3fa949){const _0x4f4482=_0x2b58b8;let _0x14bbe9;try{if(_0x3fa949===_0x34e787[_0x4f4482(0x238)])_0x14bbe9=await this[_0x4f4482(0x253)][_0x4f4482(0x273)](_0x47f4af);else{if(_0x3fa949===_0x34e787[_0x4f4482(0x36d)])try{_0x14bbe9=await this[_0x4f4482(0x211)][_0x4f4482(0x273)](_0x47f4af);}catch{_0x14bbe9=_0x47f4af;}else _0x14bbe9=_0x47f4af;}}catch(_0x1d3b5d){console[_0x4f4482(0x346)](_0x4f4482(0x332),_0x1d3b5d);return;}let _0x4ec56e=new window[(_0x4f4482(0x1cc))]();_0x4ec56e[_0x4f4482(0x24e)]=()=>{const _0x1090b3=_0x4f4482;this[_0x1090b3(0x253)][_0x1090b3(0x2ec)](_0x47f4af,_0x3fa949,_0x4ec56e),_0x1b04d2[_0x1090b3(0x293)](_0x4ec56e);},_0x4ec56e['onerror']=()=>{const _0x4b0fb6=_0x4f4482;console[_0x4b0fb6(0x346)](_0x4b0fb6(0x16e),_0x47f4af);},_0x4ec56e[_0x4f4482(0x259)]=_0x14bbe9;}};Z=q([K(0x0,_0x1f1d2f),K(0x1,_0xbdb0e2(_0xc58a76)),K(0x2,_0xbdb0e2(_0x5af3e2)),K(0x3,_0x1ec634),K(0x4,_0x57ea26),K(0x5,_0xbdb0e2(X)),K(0x6,_0xbdb0e2(_0x13f23d))],Z);let Xi=class extends _0x587b62{constructor(_0x1dc795,_0x41c511,_0x3d7643){const _0x35fe22=_0x2b58b8;super(),this[_0x35fe22(0x2bf)]=_0x1dc795,this[_0x35fe22(0x324)]=_0x41c511,this[_0x35fe22(0x316)]=_0x3d7643,this[_0x35fe22(0x123)]();}['_initPrinting'](){const _0x31b1d4=_0x2b58b8;this[_0x31b1d4(0x32d)](this[_0x31b1d4(0x2bf)][_0x31b1d4(0x1e1)][_0x31b1d4(0x130)](this[_0x31b1d4(0x2bf)][_0x31b1d4(0x1e1)][_0x31b1d4(0x373)]()[_0x31b1d4(0x217)],{'handler':(_0x1787c3,_0x3ce185,_0x6d5c66)=>{const _0x4adcc0=_0x31b1d4;var _0x12eb01;let {unitId:_0x682242,scene:_0x37a417,skeleton:_0x2f3f6e}=_0x3ce185,{pageIndex:_0x3f8c56}=_0x3ce185,_0x39d8c9=(_0x12eb01=this[_0x4adcc0(0x324)][_0x4adcc0(0x272)](_0x682242))==null?void 0x0:_0x12eb01[_0x682242],_0x2c6ac0=Zi(this[_0x4adcc0(0x2bf)],_0x2f3f6e,_0x3f8c56);return _0x39d8c9==null||_0x39d8c9[_0x4adcc0(0x127)][_0x4adcc0(0x30e)](_0x19fde7=>{const _0x3eb1cf=_0x4adcc0;if(_0x2c6ac0&&!_0x2c6ac0[_0x3eb1cf(0x25c)](_0x19fde7))return;let _0x2e9934=_0x39d8c9[_0x3eb1cf(0x23e)][_0x19fde7];_0x2e9934[_0x3eb1cf(0x142)]===_0x11efaa[_0x3eb1cf(0x14f)]&&!_0x2e9934['hidden']&&this[_0x3eb1cf(0x316)][_0x3eb1cf(0x1ce)](_0x2e9934,_0x37a417);}),_0x6d5c66(_0x1787c3);}}));}};Xi=q([K(0x0,_0xbdb0e2(_0x50c28a)),K(0x1,_0x1f1d2f),K(0x2,_0xbdb0e2(Z))],Xi);function Zi(_0x578ce9,_0x458a22,_0x3c552f){const _0x3e12c4=_0x2b58b8;var _0xd1e80b,_0x10c09f;let _0x19ebec=_0x578ce9;if(_0x19ebec['getPageDrawingIds'])return _0x19ebec[_0x3e12c4(0x139)](_0x458a22,_0x3c552f);let _0x435adb=_0x458a22[_0x3e12c4(0x36b)]();if(!_0x435adb||_0x435adb[_0x3e12c4(0x300)][_0x3e12c4(0x364)]<=0x1||_0x3c552f==null)return null;let _0x15a90a=new Set(),_0x3b0daf=_0x435adb[_0x3e12c4(0x300)][_0x3c552f];if(!_0x3b0daf)return _0x15a90a;Qi(_0x3b0daf,_0x15a90a);let _0x4bb6a9=(_0xd1e80b=_0x435adb[_0x3e12c4(0x1a9)][_0x3e12c4(0x113)](_0x3b0daf[_0x3e12c4(0x2be)]))==null?void 0x0:_0xd1e80b[_0x3e12c4(0x113)](_0x3b0daf[_0x3e12c4(0x167)]??_0x3b0daf[_0x3e12c4(0x1ab)]),_0x1a0c1c=(_0x10c09f=_0x435adb[_0x3e12c4(0x111)]['get'](_0x3b0daf[_0x3e12c4(0x1bb)]))==null?void 0x0:_0x10c09f[_0x3e12c4(0x113)](_0x3b0daf[_0x3e12c4(0x263)]??_0x3b0daf['pageWidth']);return _0x4bb6a9&&Qi(_0x4bb6a9,_0x15a90a),_0x1a0c1c&&Qi(_0x1a0c1c,_0x15a90a),_0x15a90a;}function Qi(_0x541383,_0xab12ba){const _0x1a8d83=_0x2b58b8;for(let _0x1796fe of _0x541383['skeDrawings'][_0x1a8d83(0x279)]())_0xab12ba[_0x1a8d83(0x11a)](_0x1796fe);for(let _0x1bbaa9 of _0x541383[_0x1a8d83(0x1b0)][_0x1a8d83(0x199)]())for(let _0x2d822b of _0x1bbaa9['rows'])for(let _0x4f7417 of _0x2d822b[_0x1a8d83(0x176)])Qi(_0x4f7417,_0xab12ba);}function $i(_0x5709fd){return _0x9daf1d(Ur,{..._0x5709fd,'PickerComponent':_0xe027d8});}function ea(){const _0x421c24=_0x2b58b8;let _0x4a5d90=_0x16858b(_0x5af3e2),_0x27f654=Br(),[_0x9aca3,_0x15e41f]=_0x1960d6(!0x1);return _0x29ba63(_0x421c24(0x385),{'className':'univer-grid\x20univer-gap-3','children':[_0x9daf1d(_0x1cbd0b,{'title':_0x4a5d90['t']('docs-shape-ui.crop.shape'),'aria-expanded':_0x9aca3,'variant':_0x421c24(0x168),'trailing':_0x9daf1d(_0x9aca3?_0x1f633b:_0x4067c9,{}),'onClick':()=>_0x15e41f(_0x36cd5b=>!_0x36cd5b)}),_0x9aca3&&_0x9daf1d(_0xe027d8,{'excludeGroups':[_0x1aea6e[_0x421c24(0x32e)]],'onShapeClick':_0x200a78=>{_0x27f654(_0x200a78),_0x15e41f(!0x1);}})]});}function ta(_0x299cbf){return _0x299cbf['trim']()||void 0x0;}function na(_0x3d5ece,_0x237ce6,_0x4d35b3){const _0x55b798=_0x2b58b8;var _0x2b45fd,_0x21c82e;return((_0x2b45fd=_0x3d5ece[_0x55b798(0x183)])==null?void 0x0:_0x2b45fd[_0x55b798(0x1e4)]())||((_0x21c82e=_0x3d5ece['title'])==null?void 0x0:_0x21c82e[_0x55b798(0x1e4)]())||_0x4d35b3['t'](_0x55b798(0x381)+_0x29fa97(_0x3d5ece[_0x55b798(0x142)]))+'\x20'+(_0x237ce6+0x1);}function ra({PanelComponent:_0x334045=_0x77d035}){const _0x36908f=_0x2b58b8;let _0x7a3f78=_0x16858b(_0x5af3e2),_0x25e8b9={'title':_0x7a3f78['t'](_0x36908f(0x367)),'empty':_0x7a3f78['t'](_0x36908f(0x33d)),'showAll':_0x7a3f78['t'](_0x36908f(0x1e3)),'hideAll':_0x7a3f78['t'](_0x36908f(0x1c0)),'lockAll':_0x7a3f78['t'](_0x36908f(0x1fa)),'unlockAll':_0x7a3f78['t'](_0x36908f(0x17d)),'moveForward':_0x7a3f78['t'](_0x36908f(0x1c6)),'moveBackward':_0x7a3f78['t']('drawing-ui.objectListPanel.moveBackward'),'close':_0x7a3f78['t'](_0x36908f(0x10a)),'show':_0x7a3f78['t'](_0x36908f(0x2d2)),'hide':_0x7a3f78['t'](_0x36908f(0x357)),'lock':_0x7a3f78['t'](_0x36908f(0x28d)),'unlock':_0x7a3f78['t'](_0x36908f(0x173)),'lockHint':_0x7a3f78['t'](_0x36908f(0x1cf)),'unlockHint':_0x7a3f78['t'](_0x36908f(0x219)),'name':_0x7a3f78['t'](_0x36908f(0x29f)),'nameInput':_0x7a3f78['t'](_0x36908f(0x25a)),'description':_0x7a3f78['t'](_0x36908f(0x35f)),'descriptionPlaceholder':_0x7a3f78['t'](_0x36908f(0x358)),'details':_0x7a3f78['t'](_0x36908f(0x23f)),'noSelection':_0x7a3f78['t'](_0x36908f(0x1b4)),'locate':_0x7a3f78['t'](_0x36908f(0x2c2)),'expand':_0x7a3f78['t'](_0x36908f(0x1d5)),'collapse':_0x7a3f78['t'](_0x36908f(0x1a8)),'dragToReorder':_0x7a3f78['t']('drawing-ui.objectListPanel.dragToReorder'),'search':_0x7a3f78['t'](_0x36908f(0x264)),'filterAll':_0x7a3f78['t'](_0x36908f(0x252)),'filterHidden':_0x7a3f78['t'](_0x36908f(0x24b)),'filterLocked':_0x7a3f78['t'](_0x36908f(0x361)),'sectionCanvas':_0x7a3f78['t'](_0x36908f(0x31b)),'sectionFloating':_0x7a3f78['t'](_0x36908f(0x2d4))},_0x22d8c1=_0x16858b(_0x5f3c0a),_0x291e8a=_0x16858b(_0x52a285),_0xc16b18=_0x16858b(_0x1c6928),_0x1b3e99=_0x16858b(_0x1f1d2f),_0x4679fa=_0x16858b(_0x5479fc),[,_0x1f38cd]=_0x3f2dd0(_0x1430ee=>_0x1430ee+0x1,0x0),_0x43cb8d=_0x291e8a[_0x36908f(0x2b6)](_0x19a5e9['UNIVER_DOC']),_0x34cbb4=(_0x43cb8d==null?void 0x0:_0x43cb8d[_0x36908f(0x274)]())??'',_0x45d489=_0x34cbb4,_0x268e31=_0x104db2(()=>_0x1b3e99['focus$'],_0x1b3e99[_0x36908f(0x262)](),!0x1,[_0x1b3e99]);_0x2951cf(()=>{const _0x2abb08=_0x36908f;let _0x5036d2=_0x22d8c1['onCommandExecuted'](()=>_0x1f38cd());return()=>_0x5036d2[_0x2abb08(0x12f)]();},[_0x22d8c1]);let _0x27735e=_0x34cbb4?_0xc16b18[_0x36908f(0x213)](_0x34cbb4,_0x45d489):{},_0x237a15=(_0x34cbb4?_0xc16b18[_0x36908f(0x1ec)](_0x34cbb4,_0x45d489):[])['map'](_0x4b7c40=>_0x27735e[_0x4b7c40])[_0x36908f(0x16f)](_0x708e1f=>!!_0x708e1f)[_0x36908f(0x2d5)](),_0x2ec814=_0x237a15['reduce']((_0x2ca533,_0x30907e)=>(_0x2ca533[_0x590bb6(_0x30907e[_0x36908f(0x142)])]+=0x1,_0x2ca533),{'canvas':0x0,'floating':0x0}),_0x370abb={'canvas':0x0,'floating':0x0},_0x4803cc=_0x237a15[_0x36908f(0x166)]((_0x213131,_0x493c76)=>{const _0x367af0=_0x36908f;let _0x308704=_0x590bb6(_0x213131['drawingType']),_0xace63c=_0x308704===_0xa72627,_0x5add61=_0x370abb[_0x308704]++;return{'id':_0x213131[_0x367af0(0x160)],'name':na(_0x213131,_0x493c76,_0x7a3f78),'description':_0x213131[_0x367af0(0x246)],'visible':_0x213131[_0x367af0(0x2a1)]!==!0x0,'selectable':_0x213131['selectable']!==!0x1,'sectionId':_0x308704,'sectionTitle':_0xace63c?_0x25e8b9[_0x367af0(0x29d)]:_0x25e8b9[_0x367af0(0x120)],'capabilities':_0xace63c?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0xace63c&&_0x5add61>0x0,'canMoveBackward':!_0xace63c&&_0x5add61<_0x2ec814[_0x367af0(0x2f6)]-0x1,'canReorder':!_0xace63c};}),_0x50351d=_0x17c0eb(()=>(_0x268e31??[])[_0x36908f(0x16f)](_0x294fa6=>_0x294fa6[_0x36908f(0x383)]===_0x34cbb4&&_0x294fa6[_0x36908f(0x21e)]===_0x45d489)['map'](_0x14a50c=>_0x14a50c[_0x36908f(0x160)]),[_0x268e31,_0x45d489,_0x34cbb4]),_0x18e08f=_0x50351d[_0x50351d[_0x36908f(0x364)]-0x1]??null,_0x595942=_0x5d0240=>_0xc16b18[_0x36908f(0x247)]({'unitId':_0x34cbb4,'subUnitId':_0x45d489,'drawingId':_0x5d0240})??null,_0x2777ad=async _0x195c8d=>{const _0x22defb=_0x36908f;_0x34cbb4&&_0x195c8d[_0x22defb(0x364)]&&await _0x22d8c1[_0x22defb(0x362)](_0x155b37['id'],{'unitId':_0x34cbb4,'patches':_0x195c8d});},_0x458042=(_0x1ac0ec,_0x22ae2d)=>{const _0x2c9af9=_0x36908f;if(!_0x34cbb4)return;let _0x5057f5=_0x22ae2d?_0x50351d['includes'](_0x1ac0ec)?_0x50351d[_0x2c9af9(0x16f)](_0x18ddc9=>_0x18ddc9!==_0x1ac0ec):[..._0x50351d,_0x1ac0ec]:[_0x1ac0ec];_0x22d8c1[_0x2c9af9(0x363)](_0x2aa15c['id'],_0x5057f5[_0x2c9af9(0x166)](_0x542376=>({'unitId':_0x34cbb4,'subUnitId':_0x45d489,'drawingId':_0x542376})));let _0x43d22a=_0x5057f5[_0x5057f5[_0x2c9af9(0x364)]-0x1];_0x43d22a?_0x30f783(_0x4679fa,{'unitId':_0x34cbb4,'subUnitId':_0x45d489,'drawingId':_0x43d22a}):_0x168dd8(_0x4679fa,_0x34cbb4);},_0x12b583=async(_0x1390d3,_0x307c1d)=>{const _0x5920d7=_0x36908f;await _0x2777ad(_0x1390d3[_0x5920d7(0x166)](_0x5abd0a=>_0x595942(_0x5abd0a))['filter'](_0x41a3d3=>!!_0x41a3d3)[_0x5920d7(0x16f)](_0x5bf0d0=>_0x5bf0d0[_0x5920d7(0x2a1)]!==!0x0!==_0x307c1d)[_0x5920d7(0x166)](_0x4c3129=>({'drawingId':_0x4c3129[_0x5920d7(0x160)],'hidden':!_0x307c1d})));},_0xdb595e=async(_0x134b70,_0x3d17ca)=>{const _0x48a57c=_0x36908f;await _0x2777ad(_0x134b70['map'](_0x4723b0=>_0x595942(_0x4723b0))[_0x48a57c(0x16f)](_0x481923=>!!_0x481923)['filter'](_0x396623=>_0x396623[_0x48a57c(0x1da)]!==!0x1!==_0x3d17ca)[_0x48a57c(0x166)](_0x50e59f=>({'drawingId':_0x50e59f[_0x48a57c(0x160)],'selectable':_0x3d17ca})));},_0x1d9ac8=_0xe1a804=>{const _0x4e7e26=_0x36908f;let _0x51f169=_0x595942(_0xe1a804);if(_0x51f169)return _0xdb595e([_0xe1a804],_0x51f169[_0x4e7e26(0x1da)]===!0x1);},_0x14ea6c=async(_0x5a7f20,_0x109be2)=>{const _0x145ff7=_0x36908f;let _0x31459a=_0x595942(_0x5a7f20),_0x564a08=ta(_0x109be2);!_0x31459a||(_0x31459a[_0x145ff7(0x183)]??void 0x0)===_0x564a08&&(_0x31459a[_0x145ff7(0x172)]||void 0x0)===_0x564a08||await _0x2777ad([{'drawingId':_0x5a7f20,'name':_0x564a08,'title':_0x564a08}]);},_0x45b411=async(_0x1505b5,_0x2492bf)=>{const _0x1e00bc=_0x36908f;let _0x3f2f1a=_0x595942(_0x1505b5),_0x5a66db=ta(_0x2492bf);_0x3f2f1a&&(_0x3f2f1a[_0x1e00bc(0x246)]??void 0x0)!==_0x5a66db&&await _0x2777ad([{'drawingId':_0x1505b5,'description':_0x5a66db}]);},_0x504af9=async(_0x50d24f,_0x4c6f78)=>{const _0x1fea44=_0x36908f;_0x34cbb4&&await _0x22d8c1[_0x1fea44(0x362)](_0x441b4f['id'],{'unitId':_0x34cbb4,'subUnitId':_0x45d489,'drawingIds':[_0x50d24f],'arrangeType':_0x4c6f78});};return _0x34cbb4?_0x9daf1d(_0x334045,{'labels':_0x25e8b9,'renderPermissionAction':_0x475326=>_0x43cb8d?_0x9daf1d(_0x3d2d26,{'target':{'unitId':_0x34cbb4,'objectId':_0x418902(_0x384956(_0x43cb8d,_0x475326['id']),_0x36908f(0x33e),_0x475326['id']),'objectType':_0xb843b5[_0x36908f(0x203)]},'name':_0x475326[_0x36908f(0x183)],'commandId':_0x2ba39d['id'],'exists':()=>!!_0x595942(_0x475326['id'])},_0x34cbb4+'/'+_0x475326['id']):null,'items':_0x4803cc,'selectedIds':_0x50351d,'focusedId':_0x18e08f,'showHeader':!0x1,'onSelect':_0x458042,'onSetVisible':_0x12b583,'onSetSelectable':_0xdb595e,'onCommitName':_0x14ea6c,'onCommitDescription':_0x45b411,'onMoveForward':async _0x511752=>_0x504af9(_0x511752,_0x3963c4[_0x36908f(0x1bc)]),'onMoveBackward':async _0x5154e4=>_0x504af9(_0x5154e4,_0x3963c4[_0x36908f(0x186)]),'onToggleSelectable':_0x1d9ac8}):_0x9daf1d(_0x36908f(0x385),{'className':_0x36908f(0x248),'children':_0x25e8b9[_0x36908f(0x172)]});}function ia(){return _0x9daf1d(ra,{'PanelComponent':_0x4bf5db});}let aa=class{constructor(_0x2dd0b7){const _0x406eb0=_0x2b58b8;this[_0x406eb0(0x35c)]=_0x2dd0b7;}[_0x2b58b8(0x1c5)](_0x970028,_0x28668e){const _0x11d2a6=_0x2b58b8;let _0x5e5bd8=this[_0x11d2a6(0x35c)][_0x11d2a6(0x1c9)](_0x970028[_0x11d2a6(0x383)]),_0x25e82a=_0x5e5bd8==null?void 0x0:_0x5e5bd8[_0x11d2a6(0x10b)];if(!_0x25e82a)return;let _0x5ba697=_0x3ac7e0(_0x970028),_0x1e5fe8=_0x25e82a[_0x11d2a6(0x202)](_0x5ba697);_0x1e5fe8==null||_0x1e5fe8['setFillImage'](_0x28668e);}};aa=q([K(0x0,_0x5479fc)],aa);function oa(){const _0x42fb6d=_0x2b58b8;let _0x497f45=_0x16858b(_0x1f1d2f),_0x39433a=_0x104db2(()=>_0x497f45[_0x42fb6d(0x2f3)],_0x497f45['getFocusDrawings'](),!0x1,[_0x497f45]);return _0x39433a[_0x42fb6d(0x364)]===0x0?null:_0x9daf1d(_0x42fb6d(0x385),{'children':_0x29ba63(_0x42fb6d(0x385),{'className':_0x42fb6d(0x21f),'children':[_0x9daf1d(_0x45ca4b,{'drawings':_0x39433a,'hasCropper':!0x1}),_0x9daf1d(_0x4fb651,{'drawings':_0x39433a}),_0x9daf1d(_0x1adf5f,{'drawings':_0x39433a})]})});}function sa(_0x23e905){let {unitId:_0x88c620,subUnitId:_0xfaf7fe,shapeId:_0x5ac31a,PositionComponent:_0x43a911=oa}=_0x23e905,_0x5b2847=_0x16858b(_0x5f3c0a),_0x226718=_0x16858b(aa);return _0x9daf1d(_0x11d750,{..._0x23e905,'positionEditor':_0x9daf1d(_0x43a911,{}),'onUpdateShapeData':(_0x2b0f6a,_0x5c6d33)=>{Yr(_0x5b2847,_0x88c620,_0xfaf7fe,_0x5ac31a,_0x2b0f6a,_0x5c6d33);},'onUpdateLineShapeData':(_0x4c37f0,_0x5782e5)=>{Xr(_0x5b2847,_0x88c620,_0xfaf7fe,_0x5ac31a,_0x4c37f0,_0x5782e5);},'onUpdateShapeFillImage':_0xa3a936=>{_0x226718['updateShapeFillImage']({'unitId':_0x88c620,'subUnitId':_0xfaf7fe,'drawingId':_0x5ac31a},_0xa3a936);}});}function ca(){const _0x10facb=_0x2b58b8;let _0x571500=_0x16858b(_0x1f1d2f),_0x440c8f=_0x104db2(_0x571500[_0x10facb(0x2f3)],_0x571500[_0x10facb(0x262)]());return _0x440c8f[_0x10facb(0x364)]===0x0?null:_0x29ba63(_0x10facb(0x385),{'className':_0x10facb(0x338),'children':[_0x9daf1d(_0x45ca4b,{'drawings':_0x440c8f,'hasCropper':!0x1}),_0x9daf1d(_0x44ac19,{'drawings':_0x440c8f}),_0x9daf1d(_0x3ac16a,{'drawings':_0x440c8f})]});}function la(_0x542521){return _0x9daf1d(_0x406ee5,{'children':_0x9daf1d(sa,{..._0x542521,'PositionComponent':ca})});}function ua({popup:_0x5347cf}){const _0x5a6061=_0x2b58b8;let _0x3c0173=_0x16858b(_0x5af3e2),{shapeType:_0x26ce75,onText:_0x5b5999,onStyle:_0xdc2c85,onDelete:_0x5ad0c0}=_0x5347cf[_0x5a6061(0x2c7)],_0x511e79=[{'key':_0x5a6061(0x10d),'order':0x0,'item':{'id':'text','type':_0x56fa91['BUTTON'],'title':_0x3c0173['t'](_0x5a6061(0x354)),'disabled$':_0x156e35(_0x3a6b70(_0x26ce75))}},{'key':_0x5a6061(0x135),'order':0x1,'item':{'id':_0x5a6061(0x135),'type':_0x56fa91['BUTTON'],'title':_0x3c0173['t'](_0x5a6061(0x312))}},{'key':_0x5a6061(0x1a2),'order':0x2,'item':{'id':_0x5a6061(0x1a2),'type':_0x56fa91['BUTTON'],'title':_0x3c0173['t'](_0x5a6061(0x1fe))}}];return _0x9daf1d(_0x2cf0e1,{'schemas':_0x511e79,'presentation':_0x5a6061(0x350),'onOptionSelect':async({id:_0x3a423b})=>{const _0x3a4608=_0x5a6061;_0x3a423b===_0x3a4608(0x10d)?await _0x5b5999():_0x3a423b===_0x3a4608(0x135)?await _0xdc2c85():_0x3a423b===_0x3a4608(0x1a2)&&await _0x5ad0c0();}});}const da=_0x2b58b8(0x290);function fa(_0xe1805a,_0x286006){const _0x2db006=_0x2b58b8;var _0xa351cd;let _0x264005=_0xe1805a==null||(_0xa351cd=_0xe1805a[_0x2db006(0x110)]()[_0x2db006(0x1a4)])==null?void 0x0:_0xa351cd[_0x286006];return _0x264005?_0x264005[_0x2db006(0x118)]===_0x292c91[_0x2db006(0x178)]?_0x264005[_0x2db006(0x26f)]===_0x562bb0[_0x2db006(0x1f7)]?_0x31600f[_0x2db006(0x115)]:_0x31600f[_0x2db006(0x28f)]:_0x264005[_0x2db006(0x118)]===_0x292c91[_0x2db006(0x322)]?_0x31600f[_0x2db006(0x322)]:_0x264005[_0x2db006(0x118)]===_0x292c91[_0x2db006(0x26b)]?_0x31600f[_0x2db006(0x26b)]:_0x31600f[_0x2db006(0x1db)]:_0x31600f[_0x2db006(0x1db)];}function pa(_0x2384ce){const _0x464a93=_0x2b58b8;let _0x11a175=_0x16858b(_0x54ad5c),_0x2adf0a=_0x104db2(()=>_0x11a175['visible$'],_0x11a175[_0x464a93(0x13b)](),!0x1,[_0x11a175]),_0x2a7cf8=_0x2384ce[_0x464a93(0x17f)][_0x464a93(0x2c7)];return _0x2adf0a?_0x9daf1d(ma,{..._0x2a7cf8,'canvasElement':_0x2384ce['popup'][_0x464a93(0x232)]}):null;}function ma(_0x5e38db){const _0x42a935=_0x2b58b8;let _0x44e8e0=_0x16858b(_0x5f3c0a),_0x314853=_0x16858b(_0x5af3e2),_0x485309=_0x16858b(_0xc58a76),_0x1d236e=_0x16858b(_0x52a285),{unitId:_0x2ef3de,subUnitId:_0x293725,drawingId:_0x17d1a5,shapeType:_0x4b123b}=_0x5e38db,[_0x3a1243,_0x52f4ab]=_0x1960d6(_0x5e38db[_0x42a935(0x1ae)]),_0x1afa68=_0x1d236e[_0x42a935(0x283)](_0x2ef3de,_0x19a5e9[_0x42a935(0x234)])??void 0x0,[_0x3449c1,_0x1f45af]=_0x1960d6(()=>fa(_0x1afa68,_0x17d1a5)),_0x3f7891=_0x17c0eb(()=>_0x2f8313(_0x3a1243),[_0x3a1243]),_0xfd48f7=_0x17c0eb(()=>_0xf92dc(_0x3a1243),[_0x3a1243]);_0x2951cf(()=>{const _0x4a5e5c=_0x42a935;let _0xab3a33=_0x44e8e0[_0x4a5e5c(0x19e)](_0x311b20=>{const _0x309aa4=_0x4a5e5c;if(_0x311b20['id']!==_0x3d4cfc['id'])return;let _0x48806b=_0x485309[_0x309aa4(0x152)](_0x2ef3de,_0x293725,_0x17d1a5);_0x48806b&&_0x52f4ab(_0x48806b);});return()=>_0xab3a33[_0x4a5e5c(0x12f)]();},[_0x44e8e0,_0x485309,_0x17d1a5,_0x293725,_0x2ef3de]);let _0x1eefe6=_0x234773=>{_0x52f4ab(_0x3193ac=>({..._0x3193ac,..._0x234773}));},_0x444cdc=_0x521f11=>{const _0x589a79=_0x42a935;let _0x24df7a=_0x4b7a9f(_0x3a1243,_0x521f11);Yr(_0x44e8e0,_0x2ef3de,_0x293725,_0x17d1a5,{'oldShapeData':{'shapeText':_0x3a1243[_0x589a79(0x188)]}},_0x24df7a),_0x1eefe6(_0x24df7a);},_0x2cee01=_0x4b54f3=>{_0x1f45af(_0x4b54f3),_0x44e8e0['executeCommand'](_0x210103['id'],{'unitId':_0x2ef3de,'subUnitId':_0x293725,'drawings':[{'unitId':_0x2ef3de,'subUnitId':_0x293725,'drawingId':_0x17d1a5}],'wrappingStyle':_0x4b54f3});},_0x482394=_0x4bb66f({'hostType':_0x19a5e9[_0x42a935(0x234)],'unitId':_0x2ef3de,'subUnitId':_0x293725,'shapeId':_0x17d1a5,'shapeData':_0x3a1243,'onUpdateBinding':_0x3c915a=>{let _0xc6ac0a={'formulaBinding':_0x3c915a};Yr(_0x44e8e0,_0x2ef3de,_0x293725,_0x17d1a5,{'oldShapeData':{'formulaBinding':_0x3a1243['formulaBinding']}},_0xc6ac0a),_0x1eefe6(_0xc6ac0a);}}),_0x21d203=[{'label':_0x314853['t'](_0x42a935(0x379)),'value':_0x31600f[_0x42a935(0x1db)],'icon':_0x9daf1d(_0x5e10e7,{})},{'label':_0x314853['t'](_0x42a935(0x20b)),'value':_0x31600f['WRAP_SQUARE'],'icon':_0x9daf1d(_0x5e10e7,{})},{'label':_0x314853['t']('docs-shape-ui.textWrap.topAndBottom'),'value':_0x31600f[_0x42a935(0x26b)],'icon':_0x9daf1d(_0x5e10e7,{})},{'label':_0x314853['t'](_0x42a935(0x28e)),'value':_0x31600f[_0x42a935(0x115)],'icon':_0x9daf1d(_0x5e10e7,{})},{'label':_0x314853['t']('docs-shape-ui.textWrap.inFrontText'),'value':_0x31600f[_0x42a935(0x28f)],'icon':_0x9daf1d(_0x5e10e7,{})}];return _0x29ba63(_0x18996c,{'children':[_0x9daf1d(_0x1ee75a,{'canvasElement':_0x5e38db[_0x42a935(0x232)],'shapeData':_0x3a1243,'shapeType':_0x4b123b,'textStyle':{'ff':_0xda9354[_0x42a935(0x188)]['fontFamily'],'fs':_0xda9354['shapeText']['fontSize'],'cl':{'rgb':_0xda9354[_0x42a935(0x188)][_0x42a935(0x2af)]},..._0x3f7891},'textModel':_0xfd48f7?{'ha':_0xfd48f7['ha']??_0x5cdaf0[_0x42a935(0x205)],'va':_0xfd48f7['va']??_0x41d65f['TOP']}:null,'wrappingStyle':_0x3449c1,'wrappingStyleOptions':_0x21d203,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0xda9354['fill'],'defaultGradientEndColor':_0xda9354[_0x42a935(0x35e)],'defaultStrokeColor':_0xda9354[_0x42a935(0x191)],'extensionGroups':_0x482394[_0x42a935(0x243)],'floatingObjectToolbarPosition':_0x825cf2['DOC'],'onUpdateShapeData':(_0x589e04,_0x41d8da)=>{Yr(_0x44e8e0,_0x2ef3de,_0x293725,_0x17d1a5,_0x589e04,_0x41d8da),_0x41d8da&&_0x1eefe6(_0x41d8da);},'onUpdateText':_0x444cdc,'onUpdateWrappingStyle':_0x7f8d64=>_0x2cee01(_0x7f8d64),'onOpenPanel':()=>{const _0x2c1859=_0x42a935;_0x44e8e0[_0x2c1859(0x362)](G['id'],{'unitId':_0x2ef3de,'subUnitId':_0x293725,'drawingId':_0x17d1a5});},'onDelete':()=>{_0x44e8e0['executeCommand'](_0x6ceb84['id'],{'unitId':_0x2ef3de,'drawings':[{'unitId':_0x2ef3de,'subUnitId':_0x293725,'drawingId':_0x17d1a5}]});}}),_0x482394[_0x42a935(0x169)]]});}function ha({variant:_0x86348,extend:_0x385342,..._0x53e7d3}){const _0x4f6a74=_0x2b58b8;let _0xb5f7bf=_0x9daf1d(_0x4f6a74(0x34b),{'x':'7','y':_0x4f6a74(0x1ef),'width':'6','height':'9','rx':'1','fill':'currentColor','fillOpacity':_0x4f6a74(0x333),'stroke':_0x4f6a74(0x22d),'strokeWidth':'1.2'});return _0x29ba63(_0x4f6a74(0x37b),{'aria-hidden':_0x4f6a74(0x1c8),'fill':_0x4f6a74(0x24c),'height':_0x4f6a74(0x1f3),'viewBox':_0x4f6a74(0x162),'width':_0x4f6a74(0x1f3),..._0x53e7d3,'children':[_0x86348===_0x4f6a74(0x1e5)&&_0x29ba63(_0x18996c,{'children':[_0x9daf1d('path',{'d':_0x4f6a74(0x2d6),'stroke':_0x4f6a74(0x22d),'strokeLinecap':_0x4f6a74(0x2b8),'strokeWidth':_0x4f6a74(0x1d4)}),_0x9daf1d('rect',{'x':'8','y':'7','width':'4','height':'6','rx':'0.8','fill':'currentColor','fillOpacity':_0x4f6a74(0x333),'stroke':'currentColor','strokeWidth':'1.2'})]}),_0x86348==='square'&&_0x29ba63(_0x18996c,{'children':[_0x9daf1d(_0x4f6a74(0x1e9),{'d':_0x4f6a74(0x2ef),'stroke':_0x4f6a74(0x22d),'strokeLinecap':_0x4f6a74(0x2b8),'strokeWidth':_0x4f6a74(0x1d4)}),_0xb5f7bf]}),_0x86348===_0x4f6a74(0x114)&&_0x29ba63(_0x18996c,{'children':[_0x9daf1d(_0x4f6a74(0x1e9),{'d':'M2\x203h16M2\x2017h16','stroke':'currentColor','strokeLinecap':_0x4f6a74(0x2b8),'strokeWidth':_0x4f6a74(0x1d4)}),_0xb5f7bf]}),_0x86348===_0x4f6a74(0x155)&&_0x29ba63(_0x18996c,{'children':[_0xb5f7bf,_0x9daf1d(_0x4f6a74(0x1e9),{'d':_0x4f6a74(0x18d),'stroke':_0x4f6a74(0x22d),'strokeLinecap':_0x4f6a74(0x2b8),'strokeWidth':'1.2'})]}),_0x86348===_0x4f6a74(0x1d1)&&_0x29ba63(_0x18996c,{'children':[_0x9daf1d(_0x4f6a74(0x1e9),{'d':_0x4f6a74(0x18d),'stroke':'currentColor','strokeLinecap':_0x4f6a74(0x2b8),'strokeWidth':'1.2'}),_0x9daf1d('rect',{'x':'7','y':'5.5','width':'6','height':'9','rx':'1','fill':_0x4f6a74(0x22d)})]})]});}const ga=_0x10ed21=>_0x30c780=>_0x9daf1d(ha,{..._0x30c780,'variant':_0x10ed21}),_a={'DocsShapeWrapInlineIcon':ga(_0x2b58b8(0x1e5)),'DocsShapeWrapSquareIcon':ga(_0x2b58b8(0x284)),'DocsShapeWrapTopBottomIcon':ga('top-bottom'),'DocsShapeWrapBehindTextIcon':ga(_0x2b58b8(0x155)),'DocsShapeWrapInFrontOfTextIcon':ga(_0x2b58b8(0x1d1))},va=_0x4417c9(()=>{const _0x91215c=_0x2b58b8;let _0x528fe5=_0x16858b(X),_0x566d8f=_0x16858b(_0xc58a76),_0xd20f83=_0x16858b(_0x1f1d2f),_0x5ccc1e=_0x16858b(_0x5f3c0a),_0x1ba832=_0x17c0eb(()=>({'getShapeModel':(_0x17ade3,_0x36ff79,_0x23423f)=>_0x566d8f[_0x91215c(0x348)](_0x17ade3,_0x36ff79,_0x23423f),'getShapeData':(_0x100254,_0x4b1c46,_0x40dcc7)=>_0x566d8f[_0x91215c(0x152)](_0x100254,_0x4b1c46,_0x40dcc7),'getDrawingTransform':(_0x140815,_0x43490f,_0x201869)=>{const _0x3de243=_0x91215c;let _0x2d85c8=_0xd20f83[_0x3de243(0x247)]({'unitId':_0x140815,'subUnitId':_0x43490f,'drawingId':_0x201869});return _0x2d85c8==null?void 0x0:_0x2d85c8[_0x3de243(0x277)];},'updateShapeText':({unitId:_0x3ac69a,shapeId:_0x23d6e4,shapeText:_0x400b67,oldShapeText:_0x280d00})=>{const _0x4ab78a=_0x91215c;_0x5ccc1e[_0x4ab78a(0x362)](_0x544402['id'],{'unitId':_0x3ac69a,'shapeId':_0x23d6e4,'shapeData':{'shapeText':_0x400b67},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x280d00}}});},'updateHostSize':({unitId:_0x4794e9,subUnitId:_0x1c24a7,shapeId:_0x896b5,width:_0xe2d6d4,height:_0x5dbb29})=>{const _0x902888=_0x91215c;_0x5ccc1e[_0x902888(0x362)](_0x2f3fc9['id'],{'unitId':_0x4794e9,'subUnitId':_0x1c24a7,'drawings':[{'drawingId':_0x896b5,'key':_0x902888(0x25f),'value':{'width':_0xe2d6d4,'height':_0x5dbb29}}]});},'allowHostSizeShrink':({unitId:_0x3915bd,subUnitId:_0x41172f,shapeId:_0x1f71a6})=>_0x37cf60(_0x566d8f[_0x91215c(0x152)](_0x3915bd,_0x41172f,_0x1f71a6))}),[_0x5ccc1e,_0x566d8f,_0xd20f83]),_0x4cba35=_0x17c0eb(()=>({'viewportKeys':{'main':_0x59aab8[_0x91215c(0x359)]}}),[]);return _0x9daf1d(_0x4573e8,{'adapter':_0x1ba832,'editingService':_0x528fe5,'editorUnitId':kr,'positionOptions':_0x4cba35});});let ya=class extends _0x587b62{constructor(_0x34a911,_0xc7f499){const _0x2b3c79=_0x2b58b8;super(),this[_0x2b3c79(0x14c)]=_0x34a911,this['_iconManager']=_0xc7f499,this['_registerIcons'](),this[_0x2b3c79(0x122)]();}[_0x2b58b8(0x304)](){const _0x29cd43=_0x2b58b8;this['_iconManager']['has'](_0x29cd43(0x278))||this[_0x29cd43(0x32d)](this[_0x29cd43(0x19b)]['register']({'ObjectLayersIcon':_0x7b836})),this[_0x29cd43(0x19b)][_0x29cd43(0x25c)](_0x29cd43(0x2a7))||this[_0x29cd43(0x32d)](this[_0x29cd43(0x19b)][_0x29cd43(0x109)]({'BottomIcon':_0x30111e})),this[_0x29cd43(0x19b)]['has'](_0x29cd43(0x302))||this[_0x29cd43(0x32d)](this['_iconManager'][_0x29cd43(0x109)]({'MoveDownIcon':_0x23588f})),this[_0x29cd43(0x19b)][_0x29cd43(0x25c)](_0x29cd43(0x28b))||this[_0x29cd43(0x32d)](this[_0x29cd43(0x19b)][_0x29cd43(0x109)]({'MoveUpIcon':_0x50d193})),this[_0x29cd43(0x19b)][_0x29cd43(0x25c)](_0x29cd43(0x2c3))||this[_0x29cd43(0x32d)](this[_0x29cd43(0x19b)][_0x29cd43(0x109)]({'ShapeFormatSettingIcon':_0x38092e})),this[_0x29cd43(0x19b)][_0x29cd43(0x25c)]('TopmostIcon')||this[_0x29cd43(0x32d)](this['_iconManager'][_0x29cd43(0x109)]({'TopmostIcon':_0x37e31f})),this[_0x29cd43(0x32d)](this[_0x29cd43(0x19b)][_0x29cd43(0x109)](_a));}[_0x2b58b8(0x122)](){const _0x11a294=_0x2b58b8;this['disposeWithMe'](this[_0x11a294(0x14c)]['register'](W,la)),this['_registerObjectListPanel'](),this[_0x11a294(0x2f1)](),this[_0x11a294(0x32d)](this[_0x11a294(0x14c)][_0x11a294(0x109)](Qr,ii)),this[_0x11a294(0x32d)](this[_0x11a294(0x14c)][_0x11a294(0x109)](Zr,ai)),this[_0x11a294(0x32d)](this[_0x11a294(0x14c)][_0x11a294(0x109)]($r,oi)),this[_0x11a294(0x32d)](this[_0x11a294(0x14c)]['register'](ei,si)),this[_0x11a294(0x32d)](this['_componentManager'][_0x11a294(0x109)](ti,ci)),this[_0x11a294(0x32d)](this[_0x11a294(0x14c)][_0x11a294(0x109)](Ar,_0x2439df)),this[_0x11a294(0x267)](),this[_0x11a294(0x14c)]['hasDefault'](_0x2c1395)||this[_0x11a294(0x32d)](this[_0x11a294(0x14c)][_0x11a294(0x109)](_0x2c1395,Hr)),this['disposeWithMe'](this[_0x11a294(0x14c)][_0x11a294(0x109)](jr,va));}['_registerObjectListPanel'](){const _0x5e9121=_0x2b58b8;this[_0x5e9121(0x32d)](this[_0x5e9121(0x14c)][_0x5e9121(0x109)](Or,ia));}[_0x2b58b8(0x2f1)](){const _0x217622=_0x2b58b8;this[_0x217622(0x32d)](this[_0x217622(0x14c)][_0x217622(0x109)](da,ua));}[_0x2b58b8(0x267)](){const _0x43c47c=_0x2b58b8;this['disposeWithMe'](this[_0x43c47c(0x14c)][_0x43c47c(0x109)](Lr,$i)),this[_0x43c47c(0x32d)](this['_componentManager'][_0x43c47c(0x109)](Rr,ea));}};ya=q([K(0x0,_0xbdb0e2(_0x391057)),K(0x1,_0xbdb0e2(_0x3fa0b0))],ya);let ba=class extends _0x587b62{constructor(_0x281761,_0x3f4092,_0x33b4a4,_0x2dd95e,_0x501ecb,_0x3a0cb3,_0x2ac4c4,_0x18579b,_0x3ac66b,_0x56aa8b,_0x4d6443,_0x599ccc,_0x4b8896){const _0x2707a9=_0x2b58b8;super(),this[_0x2707a9(0x165)]=_0x281761,this[_0x2707a9(0x2a5)]=_0x3f4092,this[_0x2707a9(0x34e)]=_0x33b4a4,this[_0x2707a9(0x33f)]=_0x2dd95e,this[_0x2707a9(0x204)]=_0x501ecb,this[_0x2707a9(0x34d)]=_0x3a0cb3,this['_drawingManagerService']=_0x2ac4c4,this[_0x2707a9(0x2d0)]=_0x18579b,this[_0x2707a9(0x35c)]=_0x3ac66b,this['_contextService']=_0x56aa8b,this[_0x2707a9(0x1aa)]=_0x4d6443,this[_0x2707a9(0x121)]=_0x599ccc,this[_0x2707a9(0x1e8)]=_0x4b8896,J(this,_0x2707a9(0x320),null),J(this,_0x2707a9(0x15d),null),J(this,_0x2707a9(0x37e),!0x1),J(this,_0x2707a9(0x368),0x0),J(this,_0x2707a9(0x329),new Map()),J(this,_0x2707a9(0x313),new Map()),this[_0x2707a9(0x15b)](),this['disposeWithMe'](this[_0x2707a9(0x165)][_0x2707a9(0x228)](_0x19a5e9[_0x2707a9(0x234)])[_0x2707a9(0x138)](_0x927b67=>{const _0x1e7c7a=_0x2707a9;if(!_0x927b67){var _0x4a17c3;(_0x4a17c3=this[_0x1e7c7a(0x320)])==null||_0x4a17c3[_0x1e7c7a(0x12f)]();}})),this['_registerOperations'](),this[_0x2707a9(0x32d)](_0x59c4f1(this['_renderManagerService'],_0x19a5e9[_0x2707a9(0x234)],_0x57e90a=>this['_popupMenuListener'](_0x57e90a))),this[_0x2707a9(0x32d)](this[_0x2707a9(0x1aa)][_0x2707a9(0x371)]['subscribe'](_0x152931=>{const _0x1b2931=_0x2707a9;_0x152931&&this[_0x1b2931(0x1eb)](void 0x0,!0x0);})),this[_0x2707a9(0x32d)](this[_0x2707a9(0x121)][_0x2707a9(0x27f)][_0x2707a9(0x138)](()=>{const _0x3675ec=_0x2707a9;this[_0x3675ec(0x324)][_0x3675ec(0x262)]()[_0x3675ec(0x310)](_0x386fc6=>_0x386fc6[_0x3675ec(0x142)]===_0x11efaa['DRAWING_SHAPE']&&this['_univerInstanceService'][_0x3675ec(0x1b5)](_0x386fc6['unitId'])===_0x19a5e9[_0x3675ec(0x234)]&&!this['_canEditShape'](_0x386fc6[_0x3675ec(0x383)],_0x386fc6['drawingId']))&&(this[_0x3675ec(0x1eb)](void 0x0,!0x0),this[_0x3675ec(0x2f7)]());}));}[_0x2b58b8(0x2a6)](_0x843b4b,_0x3e6211,_0x4a03f4,_0x5cb7dc){const _0x5d62e8=_0x2b58b8;return[{'label':_0x5d62e8(0x26d),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x843b4b,'subUnitId':_0x3e6211,'drawingId':_0x4a03f4},'disable':_0x5cb7dc===_0x11efaa[_0x5d62e8(0x32b)]},{'label':_0x5d62e8(0x1f5),'index':0x1,'commandId':_0x6ceb84['id'],'commandParams':{'unitId':_0x843b4b,'drawings':[{'unitId':_0x843b4b,'subUnitId':_0x3e6211,'drawingId':_0x4a03f4}]},'disable':!0x1},{'label':_0x5d62e8(0x1c3),'index':0x2,'commandId':Bi['id'],'commandParams':{'unitId':_0x843b4b,'subUnitId':_0x3e6211,'drawingId':_0x4a03f4},'disable':!0x1}];}[_0x2b58b8(0x15b)](){this['_menuManagerService']['mergeMenu'](Li);}[_0x2b58b8(0x325)](_0x7ce41,_0x30465c,_0x5d0423){const _0x7e9eef=_0x2b58b8;let _0xfd7bd3=this[_0x7e9eef(0x33f)][_0x7e9eef(0x1ac)](_0x7ce41,_0x30465c,_0x5d0423),_0x5f07a3=this[_0x7e9eef(0x33f)][_0x7e9eef(0x152)](_0x7ce41,_0x30465c,_0x5d0423);return _0xfd7bd3===void 0x0||_0x5f07a3===void 0x0?null:{'shapeData':_0x5f07a3,'shapeId':_0x5d0423,'shapeType':_0xfd7bd3,'unitId':_0x7ce41,'subUnitId':_0x30465c,'version':this[_0x7e9eef(0x368)],'disableShapeOption':!0x1};}[_0x2b58b8(0x1eb)](_0xbc3a94,_0x1e77a5=!0x1){const _0x569339=_0x2b58b8;if(_0xbc3a94==null){[...this[_0x569339(0x329)]['keys']()][_0x569339(0x30e)](_0x2e673e=>this[_0x569339(0x1eb)](_0x2e673e,_0x1e77a5));return;}let _0xaaa34e=this[_0x569339(0x329)][_0x569339(0x113)](_0xbc3a94);if(_0xaaa34e){for(let _0x2bb704=_0xaaa34e[_0x569339(0x364)]-0x1;_0x2bb704>=0x0;--_0x2bb704){let _0x931a3a=_0xaaa34e[_0x2bb704];(_0x1e77a5||_0x931a3a[_0x569339(0x1a0)]())&&(_0x931a3a['dispose'](),_0xaaa34e[_0x569339(0x35b)](_0x2bb704,0x1));}_0xaaa34e['length']===0x0&&(this['_disposePopupsByUnit'][_0x569339(0x1a2)](_0xbc3a94),this['_popupTargetKeys'][_0x569339(0x1a2)](_0xbc3a94));}}['_getDisposePopups'](_0x3efbc){const _0x390981=_0x2b58b8;let _0x2910a2=this[_0x390981(0x329)][_0x390981(0x113)](_0x3efbc);if(_0x2910a2)return _0x2910a2;let _0x498689=[];return this[_0x390981(0x329)]['set'](_0x3efbc,_0x498689),_0x498689;}[_0x2b58b8(0x34f)](_0x5990b1){const _0x21e4a9=_0x2b58b8;var _0x52afb2;let _0x9e8597=new _0x5570bd(),_0x151299=(_0x52afb2=this[_0x21e4a9(0x35c)]['getAllRenderersOfType'](_0x19a5e9['UNIVER_DOC'])[_0x21e4a9(0x30b)](_0x571d37=>_0x571d37[_0x21e4a9(0x10b)]['getTransformerByCreate']()===_0x5990b1))==null?void 0x0:_0x52afb2['unitId'];return _0x151299?(_0x9e8597['add'](_0x5990b1[_0x21e4a9(0x193)][_0x21e4a9(0x138)](()=>this[_0x21e4a9(0x1d0)](_0x5990b1,_0x151299))),_0x9e8597[_0x21e4a9(0x11a)](_0x5990b1[_0x21e4a9(0x365)][_0x21e4a9(0x138)](()=>{const _0x595a78=_0x21e4a9;this[_0x595a78(0x1eb)](_0x151299),queueMicrotask(()=>{const _0x198709=_0x595a78;_0x5990b1[_0x198709(0x11d)]()[_0x198709(0x25f)]>0x0||!this[_0x198709(0x324)]['getFocusDrawings']()['some'](_0x2c9c13=>_0x2c9c13[_0x198709(0x383)]===_0x151299)||(this[_0x198709(0x2ff)][_0x198709(0x2d1)](_0x1ec544,!0x1),this[_0x198709(0x324)][_0x198709(0x2e5)](null));});})),_0x9e8597[_0x21e4a9(0x11a)](_0x5990b1[_0x21e4a9(0x37a)][_0x21e4a9(0x138)](()=>{this['_clearPopups'](_0x151299,!0x0);})),_0x9e8597):_0x9e8597;}[_0x2b58b8(0x1d0)](_0x1baaf6,_0x567849){const _0x3cfe1a=_0x2b58b8;let _0x6b1f5f=_0x1baaf6[_0x3cfe1a(0x11d)]();if(this[_0x3cfe1a(0x37e)]){this[_0x3cfe1a(0x1eb)](_0x567849,!0x0);return;}if(_0x6b1f5f['size']>0x1){this[_0x3cfe1a(0x1eb)](_0x567849);return;}let _0x1a0060=_0x6b1f5f[_0x3cfe1a(0x199)]()[_0x3cfe1a(0x225)]()[_0x3cfe1a(0x1dc)];if(!_0x1a0060){this['_clearPopups'](_0x567849);return;}let _0x4abbaa=this['_drawingManagerService']['getDrawingOKey'](_0x1a0060[_0x3cfe1a(0x11b)]);if(!_0x4abbaa||_0x4abbaa[_0x3cfe1a(0x142)]!==_0x11efaa[_0x3cfe1a(0x14f)]){this[_0x3cfe1a(0x1eb)](_0x567849);return;}let {unitId:_0x4a8731,subUnitId:_0x4d1f7e,drawingId:_0x110e85}=_0x4abbaa;if(!this[_0x3cfe1a(0x1f1)](_0x4a8731,_0x110e85)){this['_clearPopups'](_0x567849,!0x0);return;}let _0x31574c=this[_0x3cfe1a(0x325)](_0x4a8731,_0x4d1f7e,_0x110e85);if(!_0x31574c){this['_clearPopups'](_0x567849);return;}let _0x4a4aca=this[_0x3cfe1a(0x329)][_0x3cfe1a(0x113)](_0x567849),_0x4d60ec=_0x4a8731+':'+_0x4d1f7e+':'+_0x110e85;if(this[_0x3cfe1a(0x313)]['get'](_0x567849)===_0x4d60ec&&_0x4a4aca!=null&&_0x4a4aca[_0x3cfe1a(0x364)])return;this[_0x3cfe1a(0x1eb)](_0x567849);let _0x3bdc4d=this[_0x3cfe1a(0x35c)][_0x3cfe1a(0x1c9)](_0x4a8731),_0x158120=((_0x3bdc4d==null?void 0x0:_0x3bdc4d[_0x3cfe1a(0x29a)])===!0x1?_0x3bdc4d[_0x3cfe1a(0x18b)](_0x44b27e):this[_0x3cfe1a(0x2d0)])[_0x3cfe1a(0x294)](_0x1a0060,this[_0x3cfe1a(0x305)](_0x31574c,()=>this['_clearPopups'](_0x567849,!0x0)),_0x4a8731);this[_0x3cfe1a(0x32d)](_0x158120),this[_0x3cfe1a(0x171)](_0x567849)[_0x3cfe1a(0x335)](_0x158120),this['_popupTargetKeys'][_0x3cfe1a(0x1dd)](_0x567849,_0x4d60ec),this['_drawingManagerService'][_0x3cfe1a(0x262)]()['some'](_0x4c643b=>_0x4c643b[_0x3cfe1a(0x383)]===_0x4a8731&&_0x4c643b[_0x3cfe1a(0x21e)]===_0x4d1f7e&&_0x4c643b['drawingId']===_0x110e85)||this[_0x3cfe1a(0x324)]['focusDrawing']([{'unitId':_0x4a8731,'subUnitId':_0x4d1f7e,'drawingId':_0x110e85}]);}[_0x2b58b8(0x305)](_0x52f97,_0x57b116){const _0x2d2add=_0x2b58b8;let {unitId:_0x2f3e6c,subUnitId:_0x2c3b33,shapeId:_0x3e9310}=_0x52f97,_0xb9b053={'hostType':_0x19a5e9[_0x2d2add(0x234)],'unitId':_0x2f3e6c,'subUnitId':_0x2c3b33,'shapeId':_0x3e9310};return{'componentKey':da,'direction':'top-center','offset':[0x0,0x8],'extraProps':{'shapeType':_0x52f97[_0x2d2add(0x1d6)],'onText':()=>{const _0x549315=_0x2d2add;_0x57b116(),this[_0x549315(0x1e8)][_0x549315(0x2ca)](_0x549315(0x10d),_0xb9b053);},'onStyle':()=>{const _0x5df95b=_0x2d2add;_0x57b116(),this[_0x5df95b(0x1e8)][_0x5df95b(0x2ca)]('style',_0xb9b053);},'onDelete':()=>this[_0x2d2add(0x34d)]['executeCommand'](_0x6ceb84['id'],{'unitId':_0x2f3e6c,'drawings':[{'unitId':_0x2f3e6c,'subUnitId':_0x2c3b33,'drawingId':_0x3e9310}]})}};}[_0x2b58b8(0x1f1)](_0x4aabd4,_0x4837ab){const _0x469e55=_0x2b58b8;let _0x3558d8=this[_0x469e55(0x165)][_0x469e55(0x283)](_0x4aabd4,_0x19a5e9[_0x469e55(0x234)]);if(!_0x3558d8)return!0x1;let _0x33948e=_0x384956(_0x3558d8,_0x4837ab);return _0x353611(this[_0x469e55(0x121)],_0x4aabd4,[..._0x4fa6cb(_0x3558d8,_0x33948e,_0x469e55(0x33e),_0x4837ab),_0x418902(_0x33948e,'drawing',_0x4837ab)]);}['_registerOperations'](){const _0x3ff816=_0x2b58b8;this[_0x3ff816(0x32d)](this[_0x3ff816(0x34d)]['onCommandExecuted'](_0x123a10=>{const _0x49a44e=_0x3ff816;if(_0x123a10['id']===G['id']){let {unitId:_0x23ad05,subUnitId:_0x678a48,drawingId:_0x471c35}=_0x123a10[_0x49a44e(0x339)];this[_0x49a44e(0x368)]+=0x1,this[_0x49a44e(0x15d)]=this[_0x49a44e(0x325)](_0x23ad05,_0x678a48,_0x471c35),this['_clearPopups'](void 0x0,!0x0),this[_0x49a44e(0x2eb)]();}if(_0x123a10['id']===Bi['id']&&(this[_0x49a44e(0x15d)]=null,this['_closeShapeEditPanel']()),_0x123a10['id']===_0x3d4cfc['id']){var _0x500244;let {unitId:_0x4264e8,shapeId:_0x3c87c1}=_0x123a10[_0x49a44e(0x339)];if(((_0x500244=this['_activeShapeInfo'])==null?void 0x0:_0x500244['shapeId'])===_0x3c87c1){let _0x2477a9=this['_getShapeInfo'](_0x4264e8,this[_0x49a44e(0x15d)]['subUnitId'],_0x3c87c1);_0x2477a9&&(this[_0x49a44e(0x368)]+=0x1,_0x2477a9[_0x49a44e(0x179)]=this['_shapeEditPanelVersion'],this[_0x49a44e(0x15d)]=_0x2477a9,this[_0x49a44e(0x37e)]&&this[_0x49a44e(0x2eb)]());}}})),this[_0x3ff816(0x32d)](this[_0x3ff816(0x324)][_0x3ff816(0x2f3)][_0x3ff816(0x138)](_0x344942=>{const _0x39964f=_0x3ff816;if(!this[_0x39964f(0x37e)])return;if(_0x344942['length']===0x0){this['_activeShapeInfo']=null,this[_0x39964f(0x2f7)]();return;}if(_0x344942[_0x39964f(0x364)]===0x1&&_0x344942[0x0][_0x39964f(0x142)]===_0x11efaa[_0x39964f(0x14f)]&&(this[_0x39964f(0x368)]+=0x1,this[_0x39964f(0x15d)]=this[_0x39964f(0x325)](_0x344942[0x0]['unitId'],_0x344942[0x0]['subUnitId'],_0x344942[0x0]['drawingId']),this[_0x39964f(0x15d)])){this[_0x39964f(0x2eb)]();return;}let _0x43770a=_0x344942[_0x39964f(0x16f)](_0x3679ae=>_0x3679ae[_0x39964f(0x142)]===_0x11efaa[_0x39964f(0x14f)]);if(this[_0x39964f(0x368)]+=0x1,this['_activeShapeInfo']=this[_0x39964f(0x325)](_0x344942[0x0][_0x39964f(0x383)],_0x344942[0x0][_0x39964f(0x21e)],_0x344942[0x0][_0x39964f(0x160)]),this['_activeShapeInfo']&&_0x344942[_0x39964f(0x364)]>0x1&&_0x43770a[_0x39964f(0x364)]===_0x344942[_0x39964f(0x364)]){this['_openShapeEditPanel']();return;}if(this[_0x39964f(0x15d)]&&_0x43770a[_0x39964f(0x364)]!==_0x344942[_0x39964f(0x364)]){this[_0x39964f(0x15d)]['disableShapeOption']=!0x0,this['_openShapeEditPanel']();return;}this[_0x39964f(0x2f7)]();}));}[_0x2b58b8(0x2eb)](){const _0x17fe4e=_0x2b58b8;this['_activeShapeInfo']&&(this[_0x17fe4e(0x320)]=this[_0x17fe4e(0x2a5)][_0x17fe4e(0x2ca)]({'id':W,'header':{'title':this['_localeService']['t']('docs-shape-ui.formatShape')},'width':0x184,'children':{'label':W,...this['_activeShapeInfo']},'onClose':()=>{const _0x45391b=_0x17fe4e;this[_0x45391b(0x324)][_0x45391b(0x2e5)](null),this['_contextService'][_0x45391b(0x2d1)](_0x1ec544,!0x1),this[_0x45391b(0x320)]=null;}}),this[_0x17fe4e(0x37e)]=!0x0);}[_0x2b58b8(0x2f7)](){const _0x40e7d4=_0x2b58b8;this[_0x40e7d4(0x37e)]=!0x1,this[_0x40e7d4(0x2a5)][_0x40e7d4(0x214)](W),this['_sidebarDisposable']=null,this['_contextService']['setContextValue'](_0x1ec544,!0x1),this[_0x40e7d4(0x324)]['focusDrawing'](null);}};ba=q([K(0x0,_0x52a285),K(0x1,_0xbdb0e2(_0x4bee7b)),K(0x2,_0x955a33),K(0x3,_0xbdb0e2(_0xc58a76)),K(0x4,_0xbdb0e2(_0x5af3e2)),K(0x5,_0x5f3c0a),K(0x6,_0x1f1d2f),K(0x7,_0xbdb0e2(_0x44b27e)),K(0x8,_0x5479fc),K(0x9,_0x311686),K(0xa,_0xbdb0e2(X)),K(0xb,_0x562515),K(0xc,_0xbdb0e2(_0x4b38a4))],ba);const xa=_0x2b58b8(0x2b1);let Sa=class extends _0x587b62{constructor(_0x5e74c5,_0x1edb81,_0x5d0bf1,_0x496b16,_0x25dbb4,_0x2e3bdb){const _0x11b257=_0x2b58b8;super(),this[_0x11b257(0x34e)]=_0x5e74c5,this[_0x11b257(0x249)]=_0x1edb81,this['_drawingManagerService']=_0x5d0bf1,this[_0x11b257(0x165)]=_0x496b16,this[_0x11b257(0x35c)]=_0x25dbb4,this[_0x11b257(0x22f)]=_0x2e3bdb,J(this,_0x11b257(0x377),!0x1),this[_0x11b257(0x34e)][_0x11b257(0x244)](Ii),this['disposeWithMe'](_0x390b1(this['_drawingManagerService'][_0x11b257(0x2f3)][_0x11b257(0x138)](()=>this[_0x11b257(0x132)]()))),this[_0x11b257(0x132)]();}[_0x2b58b8(0x12f)](){const _0x1ebc33=_0x2b58b8;this[_0x1ebc33(0x22f)]['setFallbackVisible'](!0x1,xa),this[_0x1ebc33(0x2f9)](),super[_0x1ebc33(0x12f)]();}[_0x2b58b8(0x132)](){const _0x54ba1b=_0x2b58b8;var _0x137e4d;let _0xc4d82e=this['_drawingManagerService'][_0x54ba1b(0x262)](),_0x49c827=_0xc4d82e['length']===0x1?_0xc4d82e[0x0]:void 0x0;if((_0x49c827==null?void 0x0:_0x49c827[_0x54ba1b(0x142)])!==_0x11efaa['DRAWING_SHAPE']||this['_univerInstanceService']['getUnitType'](_0x49c827['unitId'])!==_0x19a5e9[_0x54ba1b(0x234)]){this[_0x54ba1b(0x22f)]['setFallbackVisible'](!0x1,xa),this[_0x54ba1b(0x2f9)]();return;}let _0x191585=(_0x137e4d=this[_0x54ba1b(0x35c)][_0x54ba1b(0x1c9)](_0x49c827['unitId']))==null?void 0x0:_0x137e4d['engine']['getCanvasElement'](),_0x5a8b5e=_0x5387c5(_0x191585)==='isolated';if(this[_0x54ba1b(0x22f)][_0x54ba1b(0x2a9)](_0x5a8b5e,xa),_0x5a8b5e){this[_0x54ba1b(0x2f9)]();return;}this['_visible']=!0x0,this[_0x54ba1b(0x249)][_0x54ba1b(0x287)](Dr,{'activate':!0x0});}[_0x2b58b8(0x2f9)](){const _0x3dada0=_0x2b58b8;this[_0x3dada0(0x377)]&&(this[_0x3dada0(0x377)]=!0x1,this[_0x3dada0(0x249)]['hideContextualTab'](Dr),this[_0x3dada0(0x249)][_0x3dada0(0x184)]([]));}};Sa=q([K(0x0,_0x955a33),K(0x1,_0x16839e),K(0x2,_0x1f1d2f),K(0x3,_0x52a285),K(0x4,_0x5479fc),K(0x5,_0xbdb0e2(_0x54ad5c))],Sa);let Ca=class extends _0x587b62{constructor(_0x2a8c6b,_0x28ee80,_0x288800,_0x39d526){const _0x30bcdd=_0x2b58b8;super(),this[_0x30bcdd(0x34d)]=_0x2a8c6b,this[_0x30bcdd(0x35c)]=_0x28ee80,this[_0x30bcdd(0x324)]=_0x288800,this[_0x30bcdd(0x212)]=_0x39d526,this['_initialize']();}['_initialize'](){const _0x5e75a4=_0x2b58b8;this[_0x5e75a4(0x32d)](this[_0x5e75a4(0x324)][_0x5e75a4(0x2f8)]['subscribe'](_0x151d78=>this[_0x5e75a4(0x1b2)](_0x151d78))),this[_0x5e75a4(0x32d)](this[_0x5e75a4(0x324)][_0x5e75a4(0x226)][_0x5e75a4(0x138)](_0x5ddec4=>{const _0x225aeb=_0x5e75a4;_0x5ddec4[_0x225aeb(0x30e)](_0x19e1f0=>this['_updateShape'](_0x19e1f0));})),this[_0x5e75a4(0x32d)](this['_commandService']['onCommandExecuted'](_0x3a2de2=>{const _0x381fcd=_0x5e75a4;if(_0x3a2de2['id']!==_0x3d4cfc['id'])return;let {unitId:_0x322c2e,shapeId:_0x3f5228}=_0x3a2de2[_0x381fcd(0x339)];this[_0x381fcd(0x1cb)]({'unitId':_0x322c2e,'subUnitId':_0x322c2e,'drawingId':_0x3f5228});}));}[_0x2b58b8(0x1b2)](_0x22c10b){_0x22c10b['forEach'](_0x110751=>{const _0x7cf17c=_0x73b8;let _0x1b55b9=this[_0x7cf17c(0x12a)](_0x110751[_0x7cf17c(0x383)]);if(!_0x1b55b9)return;let _0x2f7d1a=this[_0x7cf17c(0x324)]['getDrawingByParam'](_0x110751);(_0x2f7d1a==null?void 0x0:_0x2f7d1a['drawingType'])===_0x11efaa[_0x7cf17c(0x14f)]&&this['_docDrawingShapeRenderController'][_0x7cf17c(0x1ce)](_0x2f7d1a,_0x1b55b9[_0x7cf17c(0x10b)]);});}[_0x2b58b8(0x13d)](_0x1c3e11){const _0x303ca1=_0x2b58b8;let _0x2b8e8f=this[_0x303ca1(0x324)][_0x303ca1(0x247)](_0x1c3e11);if((_0x2b8e8f==null?void 0x0:_0x2b8e8f[_0x303ca1(0x142)])!==_0x11efaa['DRAWING_SHAPE'])return;let _0xdb6979=this[_0x303ca1(0x12a)](_0x1c3e11[_0x303ca1(0x383)]);if(!_0xdb6979||_0x2b8e8f['transform']==null)return;let _0x46009f=_0x3ac7e0(_0x1c3e11),_0xe0fe10=_0xdb6979[_0x303ca1(0x10b)][_0x303ca1(0x202)](_0x46009f);_0xe0fe10&&(_0xe0fe10[_0x303ca1(0x2fa)](_0x2b8e8f['srcRect']),_0xe0fe10[_0x303ca1(0x1df)](_0x2b8e8f[_0x303ca1(0x17e)]),_0xe0fe10[_0x303ca1(0x2ee)](!0x0));}['_refreshShapeData'](_0x33f6e5){const _0x82d73b=_0x2b58b8;let _0x2af9ae=this[_0x82d73b(0x12a)](_0x33f6e5[_0x82d73b(0x383)]);if(!_0x2af9ae)return;let _0x821294=_0x3ac7e0(_0x33f6e5),_0x29ff4b=_0x2af9ae['scene'][_0x82d73b(0x202)](_0x821294);_0x29ff4b&&(this[_0x82d73b(0x212)]['refreshShapeFillImage'](_0x29ff4b),this['_docDrawingShapeRenderController'][_0x82d73b(0x224)](_0x29ff4b,{'unitId':_0x33f6e5[_0x82d73b(0x383)],'subUnitId':_0x33f6e5[_0x82d73b(0x21e)],'shapeId':_0x33f6e5[_0x82d73b(0x160)]}),_0x29ff4b[_0x82d73b(0x2ee)](!0x0));}['_getSceneByUnitId'](_0x2eaff6){const _0x4069ba=_0x2b58b8;if(_0x2eaff6==null)return null;let _0x4e62a8=this[_0x4069ba(0x35c)][_0x4069ba(0x1c9)](_0x2eaff6),_0x32dd8b=_0x4e62a8==null?void 0x0:_0x4e62a8[_0x4069ba(0x10b)];return _0x32dd8b==null?null:{'scene':_0x32dd8b};}};Ca=q([K(0x0,_0x5f3c0a),K(0x1,_0x5479fc),K(0x2,_0x1f1d2f),K(0x3,_0xbdb0e2(Z))],Ca);let Q=class extends _0x2f0f12{constructor(_0xd1be00=Hi,_0x5f1c78,_0x734bbf,_0x29c18c,_0x1509a4){const _0x60ccf5=_0x2b58b8;super(),this[_0x60ccf5(0x270)]=_0xd1be00,this[_0x60ccf5(0x181)]=_0x5f1c78,this[_0x60ccf5(0x34d)]=_0x734bbf,this['_configService']=_0x29c18c,this[_0x60ccf5(0x35c)]=_0x1509a4;let {menu:_0x14d13e,..._0x4e2c09}=_0x4cbbbe({},Hi,this['_config']);_0x14d13e&&this[_0x60ccf5(0x25d)][_0x60ccf5(0x154)](_0x60ccf5(0x157),_0x14d13e,{'merge':!0x0}),this[_0x60ccf5(0x25d)][_0x60ccf5(0x154)](Vi,_0x4e2c09),[U,Bi,G,Mr,Pr,Fr][_0x60ccf5(0x30e)](_0x2bc1d0=>this[_0x60ccf5(0x32d)](this[_0x60ccf5(0x34d)]['registerCommand'](_0x2bc1d0)));}[_0x2b58b8(0x1a6)](){const _0x467d3a=_0x2b58b8;let _0x1a71d7=[[ya],[ba],[Ca],[Z],[Xi],[Ji],[Ir],[aa],[X],[Sa]];_0x4136fc(this['_injector'],_0x1a71d7),this[_0x467d3a(0x181)]['get'](ya);}['onReady'](){const _0x5deb2c=_0x2b58b8;this[_0x5deb2c(0x32d)](this[_0x5deb2c(0x35c)][_0x5deb2c(0x218)](_0x19a5e9[_0x5deb2c(0x234)],[Ji])),_0x44a503(this[_0x5deb2c(0x181)],[[ba],[Ca],[Z],[Xi],[Ir],[aa],[X],[Sa]]);}};J(Q,_0x2b58b8(0x326),_0x19a5e9[_0x2b58b8(0x234)]),J(Q,_0x2b58b8(0x21b),_0x2b58b8(0x12d)),J(Q,_0x2b58b8(0x151),Ri),J(Q,_0x2b58b8(0x179),zi),Q=q([_0x5d76b8(_0x23a3e9,_0x2627bb,_0x224c4f,_0x10c85b,_0xd9d11,_0x4a5d16,_0x4f835e,_0x5994c3,_0x33aa0d,_0x3b9966),K(0x1,_0xbdb0e2(_0x57c331)),K(0x2,_0x5f3c0a),K(0x3,_0x2f3c71),K(0x4,_0x5479fc)],Q);let wa=class extends _0x587b62{constructor(_0x3c4e60,_0x2cf552){const _0x30f7fb=_0x2b58b8;super(),this[_0x30f7fb(0x14c)]=_0x3c4e60,this[_0x30f7fb(0x19b)]=_0x2cf552,this[_0x30f7fb(0x304)](),this[_0x30f7fb(0x122)]();}[_0x2b58b8(0x304)](){const _0x31338d=_0x2b58b8;this[_0x31338d(0x19b)][_0x31338d(0x25c)](_0x31338d(0x278))||this[_0x31338d(0x32d)](this[_0x31338d(0x19b)][_0x31338d(0x109)]({'ObjectLayersIcon':_0x7b836})),this[_0x31338d(0x19b)]['has'](_0x31338d(0x2a7))||this[_0x31338d(0x32d)](this[_0x31338d(0x19b)][_0x31338d(0x109)]({'BottomIcon':_0x30111e})),this['_iconManager'][_0x31338d(0x25c)]('MoveDownIcon')||this[_0x31338d(0x32d)](this[_0x31338d(0x19b)][_0x31338d(0x109)]({'MoveDownIcon':_0x23588f})),this[_0x31338d(0x19b)][_0x31338d(0x25c)](_0x31338d(0x28b))||this['disposeWithMe'](this[_0x31338d(0x19b)][_0x31338d(0x109)]({'MoveUpIcon':_0x50d193})),this[_0x31338d(0x19b)][_0x31338d(0x25c)]('ShapeFormatSettingIcon')||this[_0x31338d(0x32d)](this['_iconManager'][_0x31338d(0x109)]({'ShapeFormatSettingIcon':_0x38092e})),this[_0x31338d(0x19b)][_0x31338d(0x25c)](_0x31338d(0x1ba))||this[_0x31338d(0x32d)](this[_0x31338d(0x19b)]['register']({'TopmostIcon':_0x37e31f})),this[_0x31338d(0x32d)](this[_0x31338d(0x19b)]['register'](_a));}[_0x2b58b8(0x122)](){const _0x528df0=_0x2b58b8;this['disposeWithMe'](this[_0x528df0(0x14c)][_0x528df0(0x109)](W,sa)),this['_registerObjectListPanel'](),this[_0x528df0(0x2f1)](),this[_0x528df0(0x32d)](this[_0x528df0(0x14c)]['register'](Qr,ii)),this[_0x528df0(0x32d)](this[_0x528df0(0x14c)]['register'](Zr,ai)),this[_0x528df0(0x32d)](this['_componentManager'][_0x528df0(0x109)]($r,oi)),this['disposeWithMe'](this[_0x528df0(0x14c)][_0x528df0(0x109)](ei,si)),this[_0x528df0(0x32d)](this['_componentManager'][_0x528df0(0x109)](ti,ci)),this['disposeWithMe'](this['_componentManager']['register'](Ar,_0x2439df)),this[_0x528df0(0x267)](),this[_0x528df0(0x14c)][_0x528df0(0x35a)](_0x2c1395)||this[_0x528df0(0x32d)](this[_0x528df0(0x14c)][_0x528df0(0x109)](_0x2c1395,Hr)),this[_0x528df0(0x32d)](this[_0x528df0(0x14c)][_0x528df0(0x109)](jr,va));}[_0x2b58b8(0x2c0)](){const _0x87c3b0=_0x2b58b8;this[_0x87c3b0(0x32d)](this['_componentManager']['register'](Or,ra));}['_registerFloatingToolbar'](){const _0x5a0c8f=_0x2b58b8;this[_0x5a0c8f(0x32d)](this['_componentManager'][_0x5a0c8f(0x109)](da,pa));}[_0x2b58b8(0x267)](){const _0x3cec8a=_0x2b58b8;this[_0x3cec8a(0x32d)](this[_0x3cec8a(0x14c)][_0x3cec8a(0x109)](Lr,Ur)),this[_0x3cec8a(0x32d)](this['_componentManager'][_0x3cec8a(0x109)](Rr,Vr));}};function _0x73b8(_0x392d80,_0x2066fc){_0x392d80=_0x392d80-0x105;const _0x3bfd31=_0x3bfd();let _0x73b804=_0x3bfd31[_0x392d80];return _0x73b804;}wa=q([K(0x0,_0xbdb0e2(_0x391057)),K(0x1,_0xbdb0e2(_0x3fa0b0))],wa);let Ta=class extends _0x587b62{constructor(_0x3b92d1,_0x3fa2ca,_0x5c9f34,_0x5b0abb,_0x2e20b5,_0x55e7ae,_0x1c5ade,_0x23f16c,_0x421e7b){const _0x165e2f=_0x2b58b8;super();let _0x332297=_0x3af52b=>{const _0x2c797a=_0x73b8;let _0x317a92=_0x55e7ae[_0x2c797a(0x283)](_0x3af52b['unitId'],_0x19a5e9[_0x2c797a(0x234)]),_0x2e2ad0=_0x317a92?_0x384956(_0x317a92,_0x3af52b['shapeId']):'';return!!_0x317a92&&_0x353611(_0x23f16c,_0x3af52b['unitId'],[_0x418902(_0x2e2ad0,'drawing',_0x3af52b[_0x2c797a(0x1a7)]),..._0x4fa6cb(_0x317a92,_0x2e2ad0,'drawing',_0x3af52b[_0x2c797a(0x1a7)])]);},_0x3cf0fb=_0x28dc51=>_0x28dc51[_0x165e2f(0x1a7)]&&_0x332297(_0x28dc51)?_0x5c9f34[_0x165e2f(0x152)](_0x28dc51[_0x165e2f(0x383)],_0x28dc51['shapeId'])??null:null,_0x3b32d2=()=>{const _0x59e8aa=_0x165e2f;let _0x8464be=_0x2e20b5[_0x59e8aa(0x262)](),_0x1d289b=_0x8464be[_0x59e8aa(0x364)]===0x1?_0x8464be[0x0]:null;return(_0x1d289b==null?void 0x0:_0x1d289b[_0x59e8aa(0x142)])===_0x11efaa['DRAWING_SHAPE']&&_0x1d289b[_0x59e8aa(0x383)]===_0x3b92d1[_0x59e8aa(0x383)]?{'unitId':_0x1d289b[_0x59e8aa(0x383)],'subUnitId':_0x1d289b[_0x59e8aa(0x21e)],'shapeId':_0x1d289b[_0x59e8aa(0x160)]}:null;};this[_0x165e2f(0x32d)](_0x3dbd87(_0x3b92d1,_0x3fa2ca,{'changes$':_0x3f58bc(_0x2e20b5[_0x165e2f(0x2f3)],_0x5b0abb['editingParams$'],_0x23f16c[_0x165e2f(0x27f)]),'isActive':()=>{const _0x34728f=_0x165e2f;var _0x237122;return((_0x237122=_0x55e7ae['getFocusedUnit']())==null?void 0x0:_0x237122['getUnitId']())===_0x3b92d1['unitId']&&!_0x1c5ade[_0x34728f(0x237)](_0x386d22)&&_0x2e20b5[_0x34728f(0x262)]()['some'](_0x2cf2cb=>_0x2cf2cb[_0x34728f(0x383)]===_0x3b92d1['unitId']);},'getSelectedTarget':_0x3b32d2,'getSource':()=>{let _0x39fec1=_0x3b32d2();return _0x39fec1?_0x3cf0fb(_0x39fec1):null;},'getTarget':_0x4a8d53=>{const _0x9413=_0x165e2f;let _0x1f28e9=_0x3b92d1[_0x9413(0x10b)][_0x9413(0x2e2)](new _0xd9a358(_0x4a8d53[_0x9413(0x137)],_0x4a8d53['offsetY']));if(!(_0x1f28e9 instanceof Y))return null;let _0x3c1aec={'unitId':_0x3b92d1[_0x9413(0x383)],'subUnitId':_0x3b92d1[_0x9413(0x383)],'shapeId':_0x1f28e9['shapeId']};return _0x332297(_0x3c1aec)?_0x3c1aec:null;},'getShape':_0x3cf0fb,'update':(_0x4a1c0c,_0x41da53,_0x46df68)=>_0x421e7b[_0x165e2f(0x362)](_0x544402['id'],{..._0x4a1c0c,'shapeData':_0x46df68,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x41da53}})}));}};Ta=q([K(0x1,_0xbdb0e2(_0x292d84)),K(0x2,_0xbdb0e2(_0xc58a76)),K(0x3,_0xbdb0e2(X)),K(0x4,_0x1f1d2f),K(0x5,_0x52a285),K(0x6,_0x311686),K(0x7,_0x562515),K(0x8,_0x5f3c0a)],Ta);function Ea(_0x10589e,_0x28148e){const _0x2ad5dd=_0x2b58b8;let _0x5f463f=_0x10589e;for(;_0x5f463f;){if(_0x28148e(_0x5f463f))return _0x5f463f;_0x5f463f=typeof _0x5f463f[_0x2ad5dd(0x1d8)]==_0x2ad5dd(0x195)?_0x5f463f[_0x2ad5dd(0x1d8)]():null;}return null;}function Da(_0x2601e9){return Ea(_0x2601e9,_0x1f7b0b=>_0x1f7b0b instanceof Y);}function Oa(_0x4d0000){const _0x40293a=_0x2b58b8;return(_0x4d0000==null?void 0x0:_0x4d0000[_0x40293a(0x328)])==null;}let ka=class extends _0x587b62{constructor(_0x124265,_0x5448e7,_0x199e7e,_0x525c51,_0x58641a){const _0x2717ef=_0x2b58b8;super(),this[_0x2717ef(0x37f)]=_0x124265,this['_shapeTextEditingService']=_0x5448e7,this[_0x2717ef(0x324)]=_0x199e7e,this[_0x2717ef(0x164)]=_0x525c51,this['_docsShapeService']=_0x58641a,J(this,_0x2717ef(0x106),null),J(this,_0x2717ef(0x216),null),this[_0x2717ef(0x27c)](),this['_initSelection'](),this[_0x2717ef(0x2e6)]();}[_0x2b58b8(0x12f)](){this['_endLayoutInteraction'](),super['dispose']();}['_initEvents'](){const _0x33ce20=_0x2b58b8;let {scene:_0x5030f9}=this[_0x33ce20(0x37f)];this['disposeWithMe'](_0x5030f9[_0x33ce20(0x369)][_0x33ce20(0x321)]((_0x9ac695,_0x2e9e02)=>{const _0x327e86=_0x33ce20;let {offsetX:_0x2fcfdb,offsetY:_0x2710fb}=_0x9ac695,_0x3cc421=_0xd9a358[_0x327e86(0x1ca)]([_0x2fcfdb,_0x2710fb]),_0x19f6a0=Da(_0x5030f9[_0x327e86(0x2e2)](_0x3cc421))??this[_0x327e86(0x2e0)](_0x3cc421);if(_0x19f6a0){_0x2e9e02[_0x327e86(0x158)]();let _0x3ba83a=this[_0x327e86(0x33f)]['getShapeModel'](_0x19f6a0[_0x327e86(0x383)],_0x19f6a0[_0x327e86(0x21e)],_0x19f6a0[_0x327e86(0x1a7)]);if(!_0x3ba83a||_0x3a6b70(_0x3ba83a[_0x327e86(0x11f)]())||!Oa(_0x3ba83a[_0x327e86(0x170)]()))return;this[_0x327e86(0x1aa)][_0x327e86(0x2e8)]({'visible':!0x0,'unitId':_0x19f6a0[_0x327e86(0x383)],'subUnitId':_0x19f6a0[_0x327e86(0x21e)],'shapeId':_0x19f6a0[_0x327e86(0x1a7)],'shapeKey':_0x19f6a0[_0x327e86(0x11b)]});}}));}[_0x2b58b8(0x2e0)](_0xb25c9c){const _0x557774=_0x2b58b8;let {scene:_0x2ee3b3}=this[_0x557774(0x37f)];return this[_0x557774(0x324)][_0x557774(0x262)]()['map'](_0x2195bd=>_0x2ee3b3[_0x557774(0x202)](_0x3ac7e0(_0x2195bd)))[_0x557774(0x30b)](_0x241d89=>_0x241d89 instanceof Y&&_0x241d89[_0x557774(0x299)](_0xb25c9c))??null;}['_initSelection'](){const _0x39b96f=_0x2b58b8;this[_0x39b96f(0x32d)](this[_0x39b96f(0x324)][_0x39b96f(0x2f3)]['subscribe'](_0x160ce9=>{const _0x571ece=_0x39b96f;if(_0x160ce9[_0x571ece(0x364)]===0x1){let _0x3ef938=_0x160ce9[0x0],_0x3fca97=this[_0x571ece(0x324)][_0x571ece(0x247)](_0x3ef938);if((_0x3fca97==null?void 0x0:_0x3fca97[_0x571ece(0x142)])===_0x11efaa['DRAWING_SHAPE']){let _0x4b9a33=this['_shapeTextEditingService'][_0x571ece(0x2c5)]();if((_0x4b9a33==null?void 0x0:_0x4b9a33[_0x571ece(0x1a7)])===_0x3ef938[_0x571ece(0x160)]&&_0x4b9a33['visible'])return;_0x3a6b70(this[_0x571ece(0x33f)][_0x571ece(0x11f)](_0x3ef938[_0x571ece(0x383)],_0x3ef938[_0x571ece(0x21e)],_0x3ef938[_0x571ece(0x160)]))&&this[_0x571ece(0x1aa)][_0x571ece(0x2e8)](null);}else this[_0x571ece(0x1aa)][_0x571ece(0x26e)]();}else this[_0x571ece(0x1aa)][_0x571ece(0x26e)]();})),this[_0x39b96f(0x32d)](this[_0x39b96f(0x324)]['remove$'][_0x39b96f(0x138)](_0x47349d=>{const _0x397196=_0x39b96f;let _0xbc1219=this[_0x397196(0x1aa)][_0x397196(0x2c5)]();_0xbc1219&&_0x47349d[_0x397196(0x310)](_0x27bd3e=>_0x27bd3e[_0x397196(0x160)]===_0xbc1219['shapeId'])&&this[_0x397196(0x1aa)][_0x397196(0x2e8)](null);}));}[_0x2b58b8(0x2e6)](){const _0x5f34c3=_0x2b58b8;this[_0x5f34c3(0x32d)](this['_shapeTextEditingService'][_0x5f34c3(0x371)][_0x5f34c3(0x138)](_0x4a06e1=>{const _0x29304e=_0x5f34c3;(_0x4a06e1==null?void 0x0:_0x4a06e1[_0x29304e(0x306)])===!0x0&&_0x4a06e1['unitId']===this['_context'][_0x29304e(0x383)]?this[_0x29304e(0x216)]??=this[_0x29304e(0x164)][_0x29304e(0x239)]():this[_0x29304e(0x292)]();let {scene:_0x8645a9}=this['_context'];if(this['_lastEditingShapeKey']){let _0x59dc8a=_0x8645a9['getObjectIncludeInGroup'](this[_0x29304e(0x106)]);_0x59dc8a&&_0x59dc8a[_0x29304e(0x2e8)](!0x1);}if(_0x4a06e1){let _0x38a044=!!_0x4a06e1[_0x29304e(0x306)],_0x4a65a9=_0x8645a9[_0x29304e(0x202)](_0x4a06e1[_0x29304e(0x144)]);_0x4a65a9&&(_0x4a65a9[_0x29304e(0x2e8)](_0x38a044),this[_0x29304e(0x106)]=_0x4a06e1[_0x29304e(0x144)]);}else this[_0x29304e(0x106)]=null;}));}['_endLayoutInteraction'](){const _0xa5f135=_0x2b58b8;var _0x4e5bfe;(_0x4e5bfe=this['_layoutInteraction'])==null||_0x4e5bfe['dispose'](),this[_0xa5f135(0x216)]=null;}};ka=q([K(0x1,_0xbdb0e2(X)),K(0x2,_0x1f1d2f),K(0x3,_0xbdb0e2(_0x4c3397)),K(0x4,_0xbdb0e2(_0xc58a76))],ka);let Aa=class extends _0x4f9593{constructor(_0x513081,_0x36b6c1,_0xba0ef2,_0x15c7d7,_0x24dc24,_0x5da567,_0x11fe83,_0x3d73f8,_0x82f99f,_0x4c7a63){super(_0x513081,_0x36b6c1,_0xba0ef2,_0x15c7d7,_0x24dc24,_0x5da567,_0x11fe83,_0x3d73f8,_0x82f99f,_0x4c7a63,{'componentKey':Ar,'editorUnitId':kr});}};Aa=q([K(0x1,_0xbdb0e2(_0x30b345)),K(0x2,_0xbdb0e2(_0x44b27e)),K(0x3,_0xbdb0e2(_0x56a574)),K(0x4,_0x5f3c0a),K(0x5,_0xbdb0e2(_0x20631e)),K(0x6,_0xbdb0e2(_0x1edd14)),K(0x7,_0xbdb0e2(_0x267fb9)),K(0x8,_0xbdb0e2(_0x2215d8)),K(0x9,_0xbdb0e2(X))],Aa);let ja=class extends _0x436d06{constructor(_0x690a70,_0x2131d4,_0x529f0b,_0x552a7c,_0x1915a3){const _0x2e1d1d=_0x2b58b8;super(_0x690a70,_0x2131d4,{'editing$':_0x529f0b[_0x2e1d1d(0x371)],'resolve':_0x14e620=>{const _0x2564f4=_0x2e1d1d;var _0x3f34fc;let _0x217fed=new _0xd9a358(_0x14e620[_0x2564f4(0x137)],_0x14e620[_0x2564f4(0x29c)]),_0x4295c6=((_0x3f34fc=_0x690a70[_0x2564f4(0x10b)][_0x2564f4(0x27d)](_0x217fed))==null?void 0x0:_0x3f34fc[_0x2564f4(0x230)](_0x217fed))??_0x217fed,_0xe9a916=_0xb163f0(_0x690a70['scene'][_0x2564f4(0x2e2)](_0x217fed)??null,_0x4295c6);if(!(_0xe9a916 instanceof Y))return null;let _0x44a6aa=_0xe9a916[_0x2564f4(0x269)](_0x4295c6);if(!_0x44a6aa)return null;let _0x542bac=_0xe9a916,_0x18e794={'componentKey':_0x1151ff[_0x2564f4(0x323)],'direction':_0x2564f4(0x2ac),'offset':[0x0,0xa],'onClickOutside':()=>_0x2131d4['hideInfoPopup']()};return{'object':_0xe9a916,'info':{..._0x44a6aa,'unitId':_0xe9a916[_0x2564f4(0x383)],'subUnitId':_0xe9a916[_0x2564f4(0x21e)],'shapeKey':_0xe9a916[_0x2564f4(0x11b)],'readonly':!0x0,'copyable':_0x196f76(_0x1915a3,_0xe9a916[_0x2564f4(0x383)],_0xe9a916['unitId'],_0x5c2975[_0x2564f4(0x26a)])},'attachPopup':()=>_0x552a7c['attachPopupToObject'](_0x542bac,_0x18e794,_0x542bac['unitId'])};}});}};ja=q([K(0x1,_0xbdb0e2(_0x1edd14)),K(0x2,_0xbdb0e2(X)),K(0x3,_0xbdb0e2(_0x44b27e)),K(0x4,_0x562515)],ja);let Ma=class extends _0x587b62{constructor(_0xeef241,_0x213bc6,_0x4cc73f,_0x1ded50,_0xf90252,_0x21aab0,_0x18adb6,_0x191735,_0x2749dd,_0x4f44a7,_0x2537b8,_0x24cf81){const _0x4ef146=_0x2b58b8;super(),this[_0x4ef146(0x165)]=_0xeef241,this[_0x4ef146(0x2a5)]=_0x213bc6,this['_menuManagerService']=_0x4cc73f,this[_0x4ef146(0x33f)]=_0x1ded50,this[_0x4ef146(0x204)]=_0xf90252,this[_0x4ef146(0x34d)]=_0x21aab0,this['_drawingManagerService']=_0x18adb6,this[_0x4ef146(0x2d0)]=_0x191735,this[_0x4ef146(0x35c)]=_0x2749dd,this['_contextService']=_0x4f44a7,this[_0x4ef146(0x1aa)]=_0x2537b8,this['_permissionService']=_0x24cf81,J(this,_0x4ef146(0x320),null),J(this,_0x4ef146(0x15d),null),J(this,'_isOpenedShapeEditPanel',!0x1),J(this,_0x4ef146(0x368),0x0),J(this,_0x4ef146(0x329),new Map()),J(this,_0x4ef146(0x313),new Map()),this[_0x4ef146(0x15b)](),this[_0x4ef146(0x32d)](this[_0x4ef146(0x165)][_0x4ef146(0x228)](_0x19a5e9[_0x4ef146(0x234)])['subscribe'](_0x415839=>{const _0x93267=_0x4ef146;if(!_0x415839){var _0x2c5830;(_0x2c5830=this[_0x93267(0x320)])==null||_0x2c5830[_0x93267(0x12f)]();}})),this['_registerOperations'](),this['disposeWithMe'](_0x59c4f1(this[_0x4ef146(0x35c)],_0x19a5e9['UNIVER_DOC'],_0x330f2f=>this[_0x4ef146(0x34f)](_0x330f2f))),this['disposeWithMe'](this[_0x4ef146(0x1aa)][_0x4ef146(0x371)][_0x4ef146(0x138)](_0x51d387=>{const _0x5da3ce=_0x4ef146;_0x51d387&&this[_0x5da3ce(0x1eb)](void 0x0,!0x0);})),this[_0x4ef146(0x32d)](this[_0x4ef146(0x121)][_0x4ef146(0x27f)][_0x4ef146(0x138)](()=>{const _0x1d7c2d=_0x4ef146;this['_drawingManagerService'][_0x1d7c2d(0x262)]()[_0x1d7c2d(0x310)](_0x3928e4=>_0x3928e4['drawingType']===_0x11efaa['DRAWING_SHAPE']&&this[_0x1d7c2d(0x165)][_0x1d7c2d(0x1b5)](_0x3928e4[_0x1d7c2d(0x383)])===_0x19a5e9[_0x1d7c2d(0x234)]&&!this[_0x1d7c2d(0x1f1)](_0x3928e4[_0x1d7c2d(0x383)],_0x3928e4['drawingId']))&&(this['_clearPopups'](void 0x0,!0x0),this[_0x1d7c2d(0x2f7)]());}));}[_0x2b58b8(0x15b)](){const _0x3c4c89=_0x2b58b8;this[_0x3c4c89(0x34e)]['mergeMenu'](Li);}[_0x2b58b8(0x2a6)](_0x5f47c9,_0x2b7218,_0x1e07fb,_0x4b516f){const _0x33005f=_0x2b58b8;return[{'label':_0x33005f(0x26d),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x5f47c9,'subUnitId':_0x2b7218,'drawingId':_0x1e07fb},'disable':_0x4b516f===_0x11efaa[_0x33005f(0x32b)]},{'label':_0x33005f(0x1f5),'index':0x1,'commandId':_0x6ceb84['id'],'commandParams':{'unitId':_0x5f47c9,'drawings':[{'unitId':_0x5f47c9,'subUnitId':_0x2b7218,'drawingId':_0x1e07fb}]},'disable':!0x1},{'label':_0x33005f(0x1c3),'index':0x2,'commandId':Bi['id'],'commandParams':{'unitId':_0x5f47c9,'subUnitId':_0x2b7218,'drawingId':_0x1e07fb},'disable':!0x1}];}[_0x2b58b8(0x325)](_0x3bc161,_0x1e7f40,_0x116d72){const _0x88bd43=_0x2b58b8;let _0x2e7bf6=this[_0x88bd43(0x33f)][_0x88bd43(0x1ac)](_0x3bc161,_0x1e7f40,_0x116d72),_0x269505=this[_0x88bd43(0x33f)][_0x88bd43(0x152)](_0x3bc161,_0x1e7f40,_0x116d72);return _0x2e7bf6!==void 0x0&&_0x269505!==void 0x0?{'shapeData':_0x269505,'shapeId':_0x116d72,'shapeType':_0x2e7bf6,'unitId':_0x3bc161,'subUnitId':_0x1e7f40,'version':this[_0x88bd43(0x368)],'disableShapeOption':!0x1}:null;}[_0x2b58b8(0x1eb)](_0x2751b7,_0x5b7a4c=!0x1){const _0x57ea49=_0x2b58b8;if(_0x2751b7==null){[...this['_disposePopupsByUnit'][_0x57ea49(0x279)]()]['forEach'](_0x2e6c44=>this[_0x57ea49(0x1eb)](_0x2e6c44,_0x5b7a4c));return;}let _0x224138=this[_0x57ea49(0x329)][_0x57ea49(0x113)](_0x2751b7);if(_0x224138){for(let _0x4bb27e=_0x224138[_0x57ea49(0x364)]-0x1;_0x4bb27e>=0x0;--_0x4bb27e){let _0x354d3b=_0x224138[_0x4bb27e];(_0x5b7a4c||_0x354d3b[_0x57ea49(0x1a0)]())&&(_0x354d3b['dispose'](),_0x224138['splice'](_0x4bb27e,0x1));}_0x224138[_0x57ea49(0x364)]===0x0&&(this[_0x57ea49(0x329)][_0x57ea49(0x1a2)](_0x2751b7),this['_popupTargetKeys'][_0x57ea49(0x1a2)](_0x2751b7));}}[_0x2b58b8(0x171)](_0x2b8097){const _0x4ee8e0=_0x2b58b8;let _0x29b573=this[_0x4ee8e0(0x329)]['get'](_0x2b8097);if(_0x29b573)return _0x29b573;let _0x2397b0=[];return this[_0x4ee8e0(0x329)][_0x4ee8e0(0x1dd)](_0x2b8097,_0x2397b0),_0x2397b0;}[_0x2b58b8(0x34f)](_0x2f1293){const _0x49ed95=_0x2b58b8;var _0x261f98;let _0x309086=new _0x5570bd(),_0xf181d=(_0x261f98=this[_0x49ed95(0x35c)][_0x49ed95(0x298)](_0x19a5e9[_0x49ed95(0x234)])[_0x49ed95(0x30b)](_0x27493b=>_0x27493b['scene'][_0x49ed95(0x319)]()===_0x2f1293))==null?void 0x0:_0x261f98['unitId'];return _0xf181d?(_0x309086[_0x49ed95(0x11a)](_0x2f1293['createControl$'][_0x49ed95(0x138)](()=>this[_0x49ed95(0x1d0)](_0x2f1293,_0xf181d))),_0x309086[_0x49ed95(0x11a)](_0x2f1293[_0x49ed95(0x365)][_0x49ed95(0x138)](()=>{this['_clearPopups'](_0xf181d),queueMicrotask(()=>{const _0x486dd9=_0x73b8;_0x2f1293[_0x486dd9(0x11d)]()[_0x486dd9(0x25f)]>0x0||!this['_drawingManagerService'][_0x486dd9(0x262)]()['some'](_0x214de0=>_0x214de0[_0x486dd9(0x383)]===_0xf181d)||(this[_0x486dd9(0x2ff)][_0x486dd9(0x2d1)](_0x1ec544,!0x1),this[_0x486dd9(0x324)]['focusDrawing'](null));});})),_0x309086[_0x49ed95(0x11a)](_0x2f1293[_0x49ed95(0x37a)][_0x49ed95(0x138)](()=>{this['_clearPopups'](_0xf181d,!0x0);})),_0x309086):_0x309086;}[_0x2b58b8(0x1d0)](_0x63f8e7,_0x3a8a8d){const _0x4b73ea=_0x2b58b8;let _0x1180d8=_0x63f8e7[_0x4b73ea(0x11d)]();if(this[_0x4b73ea(0x37e)]){this[_0x4b73ea(0x1eb)](_0x3a8a8d,!0x0);return;}if(_0x1180d8['size']>0x1){this['_clearPopups'](_0x3a8a8d);return;}let _0x386315=_0x1180d8[_0x4b73ea(0x199)]()[_0x4b73ea(0x225)]()['value'];if(!_0x386315){this[_0x4b73ea(0x1eb)](_0x3a8a8d);return;}let _0x270874=this[_0x4b73ea(0x324)][_0x4b73ea(0x2a2)](_0x386315['oKey']);if(!_0x270874||_0x270874['drawingType']!==_0x11efaa[_0x4b73ea(0x14f)]){this[_0x4b73ea(0x1eb)](_0x3a8a8d);return;}let {unitId:_0x285db7,subUnitId:_0x42a460,drawingId:_0x490f5a,drawingType:_0x26b6fc}=_0x270874;if(!this[_0x4b73ea(0x1f1)](_0x285db7,_0x490f5a)){this[_0x4b73ea(0x1eb)](_0x3a8a8d,!0x0);return;}let _0x28b0e6=this[_0x4b73ea(0x325)](_0x285db7,_0x42a460,_0x490f5a);if(!_0x28b0e6){this[_0x4b73ea(0x1eb)](_0x3a8a8d);return;}let _0x46b96f=this[_0x4b73ea(0x329)]['get'](_0x3a8a8d),_0x31dc1a=_0x285db7+':'+_0x42a460+':'+_0x490f5a;if(this[_0x4b73ea(0x313)][_0x4b73ea(0x113)](_0x3a8a8d)===_0x31dc1a&&_0x46b96f&&_0x46b96f[_0x4b73ea(0x364)]>0x0)return;this['_clearPopups'](_0x3a8a8d);let _0x4ed101=this[_0x4b73ea(0x35c)][_0x4b73ea(0x1c9)](_0x285db7),_0x4dd1c6=((_0x4ed101==null?void 0x0:_0x4ed101[_0x4b73ea(0x29a)])===!0x1?_0x4ed101[_0x4b73ea(0x18b)](_0x44b27e):this[_0x4b73ea(0x2d0)])['attachPopupToObject'](_0x386315,this[_0x4b73ea(0x305)](_0x28b0e6,_0x26b6fc),_0x285db7);this[_0x4b73ea(0x32d)](_0x4dd1c6),this['_getDisposePopups'](_0x3a8a8d)[_0x4b73ea(0x335)](_0x4dd1c6),this[_0x4b73ea(0x313)][_0x4b73ea(0x1dd)](_0x3a8a8d,_0x31dc1a),this[_0x4b73ea(0x324)][_0x4b73ea(0x262)]()['some'](_0x36937f=>_0x36937f[_0x4b73ea(0x383)]===_0x285db7&&_0x36937f[_0x4b73ea(0x21e)]===_0x42a460&&_0x36937f[_0x4b73ea(0x160)]===_0x490f5a)||this['_drawingManagerService'][_0x4b73ea(0x2e5)]([{'unitId':_0x285db7,'subUnitId':_0x42a460,'drawingId':_0x490f5a}]);}[_0x2b58b8(0x305)](_0x8aed6d,_0x531dd7){const _0x1c9fbc=_0x2b58b8;return{'componentKey':da,'direction':_0x1c9fbc(0x254),'offset':[0x0,_0x199a5b],'extraProps':{'unitId':_0x8aed6d[_0x1c9fbc(0x383)],'subUnitId':_0x8aed6d['subUnitId'],'drawingId':_0x8aed6d[_0x1c9fbc(0x1a7)],'drawingType':_0x531dd7,'shapeType':_0x8aed6d[_0x1c9fbc(0x1d6)],'shapeData':_0x8aed6d[_0x1c9fbc(0x1ae)]}};}['_canEditShape'](_0xf75ae0,_0x170ee1){const _0x474ce6=_0x2b58b8;let _0x253d41=this['_univerInstanceService'][_0x474ce6(0x283)](_0xf75ae0,_0x19a5e9[_0x474ce6(0x234)]);if(!_0x253d41)return!0x1;let _0x4e1b52=_0x384956(_0x253d41,_0x170ee1);return _0x353611(this[_0x474ce6(0x121)],_0xf75ae0,[..._0x4fa6cb(_0x253d41,_0x4e1b52,'drawing',_0x170ee1),_0x418902(_0x4e1b52,_0x474ce6(0x33e),_0x170ee1)]);}[_0x2b58b8(0x2b0)](){const _0x19fee1=_0x2b58b8;this[_0x19fee1(0x32d)](this['_commandService'][_0x19fee1(0x19e)](_0x2f59c9=>{const _0x4c1d5e=_0x19fee1;if(_0x2f59c9['id']===G['id']){let {unitId:_0x3d62e8,subUnitId:_0xb6c18b,drawingId:_0x109a7b}=_0x2f59c9['params'];this[_0x4c1d5e(0x368)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x3d62e8,_0xb6c18b,_0x109a7b),this[_0x4c1d5e(0x1eb)](void 0x0,!0x0),this[_0x4c1d5e(0x2eb)]();}if(_0x2f59c9['id']===Bi['id']&&(this[_0x4c1d5e(0x15d)]=null,this[_0x4c1d5e(0x2f7)]()),_0x2f59c9['id']===_0x3d4cfc['id']){let {unitId:_0x52bba4,shapeId:_0x447678}=_0x2f59c9['params'];if(this['_activeShapeInfo']&&this[_0x4c1d5e(0x15d)]['shapeId']===_0x447678){let _0xb408c6=this['_getShapeInfo'](_0x52bba4,this[_0x4c1d5e(0x15d)][_0x4c1d5e(0x21e)],_0x447678);_0xb408c6&&(this['_shapeEditPanelVersion']+=0x1,_0xb408c6[_0x4c1d5e(0x179)]=this[_0x4c1d5e(0x368)],this[_0x4c1d5e(0x15d)]=_0xb408c6,this[_0x4c1d5e(0x37e)]&&this[_0x4c1d5e(0x2eb)]());}}})),this['disposeWithMe'](this['_drawingManagerService'][_0x19fee1(0x2f3)][_0x19fee1(0x138)](_0x550bed=>{const _0x4b5ed6=_0x19fee1;if(this[_0x4b5ed6(0x37e)]===!0x1)return;if(_0x550bed[_0x4b5ed6(0x364)]===0x0){this[_0x4b5ed6(0x15d)]=null,this[_0x4b5ed6(0x2f7)]();return;}if(_0x550bed['length']===0x1&&_0x550bed[0x0]['drawingType']===_0x11efaa[_0x4b5ed6(0x14f)]&&(this[_0x4b5ed6(0x368)]+=0x1,this[_0x4b5ed6(0x15d)]=this[_0x4b5ed6(0x325)](_0x550bed[0x0][_0x4b5ed6(0x383)],_0x550bed[0x0][_0x4b5ed6(0x21e)],_0x550bed[0x0][_0x4b5ed6(0x160)]),this[_0x4b5ed6(0x15d)])){this[_0x4b5ed6(0x2eb)]();return;}let _0x1e1aac=_0x550bed['filter'](_0xbc0036=>_0xbc0036[_0x4b5ed6(0x142)]===_0x11efaa[_0x4b5ed6(0x14f)]);if(_0x550bed[_0x4b5ed6(0x364)]>0x1&&_0x1e1aac[_0x4b5ed6(0x364)]===_0x550bed['length']){if(this[_0x4b5ed6(0x368)]+=0x1,this[_0x4b5ed6(0x15d)]=this['_getShapeInfo'](_0x550bed[0x0][_0x4b5ed6(0x383)],_0x550bed[0x0][_0x4b5ed6(0x21e)],_0x550bed[0x0][_0x4b5ed6(0x160)]),this['_activeShapeInfo']){this[_0x4b5ed6(0x2eb)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x4b5ed6(0x15d)]=this[_0x4b5ed6(0x325)](_0x550bed[0x0]['unitId'],_0x550bed[0x0][_0x4b5ed6(0x21e)],_0x550bed[0x0][_0x4b5ed6(0x160)]),this[_0x4b5ed6(0x15d)]){this['_activeShapeInfo'][_0x4b5ed6(0x2c4)]=!0x0,this[_0x4b5ed6(0x2eb)]();return;}}this['_closeShapeEditPanel']();}));}['_openShapeEditPanel'](){const _0x11e08b=_0x2b58b8;this['_activeShapeInfo']&&(this[_0x11e08b(0x320)]=this[_0x11e08b(0x2a5)][_0x11e08b(0x2ca)]({'id':W,'header':{'title':this[_0x11e08b(0x204)]['t'](_0x11e08b(0x29e))},'width':0x184,'children':{'label':W,...this[_0x11e08b(0x15d)]},'onClose':()=>{const _0x4ff980=_0x11e08b;this[_0x4ff980(0x324)]['focusDrawing'](null),this[_0x4ff980(0x2ff)][_0x4ff980(0x2d1)](_0x1ec544,!0x1),this[_0x4ff980(0x320)]=null;}}),this[_0x11e08b(0x37e)]=!0x0);}['_closeShapeEditPanel'](){const _0x1a9eb2=_0x2b58b8;this[_0x1a9eb2(0x37e)]=!0x1,this[_0x1a9eb2(0x2a5)][_0x1a9eb2(0x214)](W),this['_sidebarDisposable']=null,this[_0x1a9eb2(0x2ff)][_0x1a9eb2(0x2d1)](_0x1ec544,!0x1),this['_drawingManagerService'][_0x1a9eb2(0x2e5)](null);}};Ma=q([K(0x0,_0x52a285),K(0x1,_0xbdb0e2(_0x4bee7b)),K(0x2,_0x955a33),K(0x3,_0xbdb0e2(_0xc58a76)),K(0x4,_0xbdb0e2(_0x5af3e2)),K(0x5,_0x5f3c0a),K(0x6,_0x1f1d2f),K(0x7,_0xbdb0e2(_0x44b27e)),K(0x8,_0x5479fc),K(0x9,_0x311686),K(0xa,_0xbdb0e2(X)),K(0xb,_0x562515)],Ma);let Na=class extends _0x587b62{constructor(_0x99c53f,_0x5ed2e7){const _0x8ad870=_0x2b58b8;super(),this[_0x8ad870(0x33f)]=_0x99c53f,this['_localeService']=_0x5ed2e7,this[_0x8ad870(0x32d)](_0x390b1(_0x3e088f((_0x5cc37f,_0x5f025e,_0x1aba4f)=>this['_measure'](_0x5cc37f,_0x5f025e,_0x1aba4f))));}[_0x2b58b8(0x35d)](_0xc274e,_0x52900e,_0x366cb3){const _0x493fde=_0x2b58b8;let _0xaa6f0d=this[_0x493fde(0x33f)][_0x493fde(0x348)](_0xc274e,_0x52900e);if(!_0xaa6f0d)return null;let _0x1c85ef=_0xaa6f0d[_0x493fde(0x170)](),_0x3c46cd=_0x49519b(_0x1c85ef),_0x406c93=_0x1c85ef['shapeText'];if(!_0x406c93||_0x3c46cd[_0x493fde(0x27a)]!==_0x52fc4f[_0x493fde(0x297)])return null;let _0x2168ca=_0x366cb3[_0x493fde(0x2fc)],_0x1e7eb6=_0x366cb3[_0x493fde(0x141)];_0xaa6f0d['updateContext']({'width':_0x2168ca,'height':_0x1e7eb6});let _0x390669=_0xaa6f0d['getShapeTextRect']({'left':0x0,'top':0x0,'width':_0x2168ca,'height':_0x1e7eb6}),_0x5a1926=_0x361202(_0x493fde(0x25e)in _0x406c93?_0x406c93[_0x493fde(0x25e)]:void 0x0),_0x427f80=(_0x5a1926==null?void 0x0:_0x5a1926[_0x493fde(0x36c)])??('isRichText'in _0x406c93?_0x20f7f3(_0x406c93,_0x52900e+_0x493fde(0x11c)):null);if(!_0x427f80)return null;let _0x1c7a2d=_0x57aa48({'documentData':_0x427f80,'height':_0x1e7eb6,'shapeData':_0x1c85ef,'textRect':_0x390669,'width':_0x2168ca,'widthBuffer':0x0});_0x1c7a2d&&({width:_0x2168ca,height:_0x1e7eb6}=_0x1c7a2d,_0xaa6f0d['updateContext']({'width':_0x2168ca,'height':_0x1e7eb6}),_0x390669=_0xaa6f0d[_0x493fde(0x2b9)]({'left':0x0,'top':0x0,'width':_0x2168ca,'height':_0x1e7eb6}));let _0x34cc85=_0x406c93[_0x493fde(0x20c)]!==!0x1,_0x4b51e3=_0x1bee13(_0x427f80,{'isHorizontal':_0x34cc85,'textRect':_0x390669,'verticalAlign':_0x5a1926==null?void 0x0:_0x5a1926['va'],'horizontalAlign':_0x5a1926==null?void 0x0:_0x5a1926['ha'],'wrapStrategy':_0x46d47a(_0x1c85ef)}),_0x1db65c=new _0x4107fb(_0x4b51e3),_0x33bcaa=new _0x2f6ee9(_0x1db65c),_0x5d470c=_0x297bbe[_0x493fde(0x1cd)](_0x33bcaa,this[_0x493fde(0x204)]);try{var _0x30b954,_0x25b200;_0x5d470c['calculate']();let _0xd47b8f=((_0x30b954=_0x5d470c['getSkeletonData']())==null?void 0x0:_0x30b954['pages'])??[],_0x4a9e0b=_0xd47b8f[_0xd47b8f['length']-0x1],_0x5378f0=_0x4a9e0b?Math[_0x493fde(0x1d3)](0x0,((_0x25b200=_0x5abd28(_0x4a9e0b))==null?void 0x0:_0x25b200[_0x493fde(0x240)])??0x0):0x0,_0x3fb210=_0x5d470c[_0x493fde(0x133)]()[_0x493fde(0x327)]+_0x5378f0-(_0x34cc85?_0x390669[_0x493fde(0x174)]:_0x390669[_0x493fde(0x177)]);return Number[_0x493fde(0x233)](_0x3fb210)?_0x34cc85?{'width':_0x2168ca,'height':Math[_0x493fde(0x1d3)](0x1,_0x1e7eb6+_0x3fb210)}:{'width':Math['max'](0x1,_0x2168ca+_0x3fb210),'height':_0x1e7eb6}:null;}finally{_0x5d470c[_0x493fde(0x12f)](),_0x33bcaa[_0x493fde(0x12f)](),_0x1db65c[_0x493fde(0x12f)]();}}};Na=q([K(0x0,_0xbdb0e2(_0xc58a76)),K(0x1,_0xbdb0e2(_0x5af3e2))],Na);let $=class extends _0x2f0f12{constructor(_0x33674d=Hi,_0x327e93,_0x57e6d4,_0x273e79,_0x3c085b){const _0x5da4f2=_0x2b58b8;super(),this[_0x5da4f2(0x270)]=_0x33674d,this['_injector']=_0x327e93,this['_commandService']=_0x57e6d4,this[_0x5da4f2(0x25d)]=_0x273e79,this[_0x5da4f2(0x35c)]=_0x3c085b;let {menu:_0xb05b2d,..._0x467322}=_0x4cbbbe({},Hi,this[_0x5da4f2(0x270)]);_0xb05b2d&&this['_configService'][_0x5da4f2(0x154)](_0x5da4f2(0x157),_0xb05b2d,{'merge':!0x0}),this[_0x5da4f2(0x25d)][_0x5da4f2(0x154)](Vi,_0x467322),this[_0x5da4f2(0x21a)]();}[_0x2b58b8(0x1a6)](){const _0x27aac7=_0x2b58b8;_0x4136fc(this[_0x27aac7(0x181)],this[_0x27aac7(0x161)]()),this[_0x27aac7(0x181)][_0x27aac7(0x113)](wa),this[_0x27aac7(0x34a)]();}['_getDependencies'](){return[[wa],[Ma],[Ca],[Z],[Xi],[Ji],[Ir],[aa],[Na],[X],[Sa]];}[_0x2b58b8(0x2f4)](){const _0x556e9b=_0x2b58b8;this[_0x556e9b(0x200)]()[_0x556e9b(0x30e)](_0x429cd5=>{const _0xce37c2=_0x556e9b;this[_0xce37c2(0x32d)](this['_renderManagerService'][_0xce37c2(0x218)](_0x19a5e9[_0xce37c2(0x234)],_0x429cd5));}),_0x44a503(this['_injector'],[[Ma],[Ca],[Z],[Xi],[Ir],[aa],[Na],[X],[Sa]]);}[_0x2b58b8(0x200)](){return[[Ji],[ka],[ja],[Ta]];}[_0x2b58b8(0x235)](){const _0x23d16c=_0x2b58b8;this['disposeWithMe'](this[_0x23d16c(0x35c)][_0x23d16c(0x218)](_0x19a5e9[_0x23d16c(0x234)],[Aa]));}[_0x2b58b8(0x21a)](){const _0x4e44e8=_0x2b58b8;[U,Bi,G,Mr,Pr,Fr][_0x4e44e8(0x30e)](_0x1b344f=>this[_0x4e44e8(0x32d)](this[_0x4e44e8(0x34d)]['registerCommand'](_0x1b344f)));}['_initUIPart'](){const _0xb231f3=_0x2b58b8;let _0x195066=this[_0xb231f3(0x181)],_0x64af41=_0x195066[_0xb231f3(0x113)](_0x4050f2);this[_0xb231f3(0x32d)](_0x64af41[_0xb231f3(0x366)](_0xf47892['CONTENT'],()=>_0x370dd2(va,_0x195066)));}};J($,_0x2b58b8(0x326),_0x19a5e9['UNIVER_DOC']),J($,_0x2b58b8(0x21b),_0x2b58b8(0x12d)),J($,'packageName',Ri),J($,_0x2b58b8(0x179),zi),$=q([_0x5d76b8(_0x23a3e9,_0x2627bb,_0x224c4f,_0x38457f,_0xd9d11,_0x191fd8,_0x4f835e,_0x26ca13,_0x33aa0d,_0x21cd82),K(0x1,_0xbdb0e2(_0x57c331)),K(0x2,_0x5f3c0a),K(0x3,_0x2f3c71),K(0x4,_0x5479fc)],$);export{Li as DocsShapeUIMenuSchema,Q as UniverDocsShapeMobileUIPlugin,$ as UniverDocsShapeUIPlugin};
|
|
1
|
+
const _0x43e8a4=_0xe027;(function(_0xf5f981,_0x37c09a){const _0x375de0=_0xe027,_0x2a99a9=_0xf5f981();while(!![]){try{const _0x336c43=-parseInt(_0x375de0(0xb4))/0x1+-parseInt(_0x375de0(0x1dc))/0x2+-parseInt(_0x375de0(0x1b7))/0x3*(-parseInt(_0x375de0(0x17d))/0x4)+parseInt(_0x375de0(0x1a8))/0x5+-parseInt(_0x375de0(0x2cc))/0x6+parseInt(_0x375de0(0x195))/0x7*(parseInt(_0x375de0(0x1ec))/0x8)+parseInt(_0x375de0(0xfa))/0x9*(parseInt(_0x375de0(0x112))/0xa);if(_0x336c43===_0x37c09a)break;else _0x2a99a9['push'](_0x2a99a9['shift']());}catch(_0x4ef567){_0x2a99a9['push'](_0x2a99a9['shift']());}}}(_0x3d03,0x8d0b8));import{FormulaShapeAnimationController as _0x41ef0b,MobileShapeEditorControls as _0x4ab532,MobileShapeEditorService as _0x1c4e81,MobileShapePickerPanel as _0x8f16d9,SHAPE_CHANGE_PICKER_COMPONENT as _0x12e18b,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x3257bd,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x274783,ShapeEditPanel as _0x4daa70,ShapeFloatingToolbar as _0x198192,ShapeFloatingToolbarService as _0x9377b1,ShapeFloatingToolbarToggleFactory as _0x374e3e,ShapeFormulaRibbonControl as _0xcdf079,ShapeGroupEnum as _0x29b383,ShapePickerDropdown as _0x1c6a88,ShapePickerPanel as _0x1a369d,ShapeQuickStyleGallery as _0x51195d,ShapeStyleRibbonControl as _0xd6f3ea,ShapeTextEditorContainer as _0x8f7333,ShapeTextFloatMenuRenderControllerBase as _0x4b2f89,ShapeTextFloatToolbar as _0x4eb1a6,ShapeTextHyperLinkHoverController as _0x34514a,ShapeTextHyperLinkInfo as _0x100f36,ShapeTextHyperLinkPopupService as _0x478335,ShapeTextRibbonControl as _0x473bd6,ToggleShapeFloatingToolbarOperation as _0x10dcc9,UniverShapeEditorMobileUIPlugin as _0x54a90e,UniverShapeEditorUIPlugin as _0x40cd8a,activateDrawingObject as _0x2aeb4f,bindRenderTransformerLifecycle as _0x1d984c,buildShapeTextDataUpdate as _0x2fe1a2,clearActiveDrawingObjects as _0x482003,createShapeTextHyperLinkRegions as _0x32283e,drawFormulaShapeAnimationLayers as _0x2b587f,getDrawingTypeNameKey as _0x36d1e2,getTextModel as _0x46bcad,getTextStyle as _0x11e2fa,normalizeShapeTextModel as _0x33266c,plainShapeTextToDocumentData as _0x5e99a9,prepareShapeTextDocumentData as _0x26bed1,prepareShapeTextDocumentData as _0x18300c,registerShapeFormatPainter as _0x3c87e0,resolveFormulaShapeAutoFitSize as _0x4b8d5f,resolveShapeContextualRibbonHostMode as _0x3c6397,resolveShapeTextDocumentPageHeight as _0x30a506,resolveShapeTextDocumentRenderLayout as _0x4f930a,resolveShapeTextEditorBehaviorShapeData as _0x17c928,resolveShapeTextEditorWrapStrategy as _0xd357af,resolveShapeTextHyperLinkAt as _0x436b63,resolveShapeTextHyperLinkObject as _0x2c5cc5,shouldAllowShapeTextEditorHostSizeShrink as _0x1574e0,shouldClipShapeTextDocument as _0x1c7d20,useFormulaShapeToolbar as _0x29c39b}from'@univerjs-pro/shape-editor-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0x4df301,DOC_CONTENT_INSERT_MENU_ID as _0x3f6de3,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0xdfd9ae,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x5e7691,DocCanvasPopManagerService as _0x58fb7f,DocEventManagerService as _0x21724d,DocLayoutInteractionService as _0xf6bc99,DocParagraphMenuService as _0x4b5937,DocPrintInterceptorService as _0x3197e2,DocRenderController as _0x3f802a,DocSelectionRenderService as _0x161ebd,EMPTY_PARAGRAPH_MENU_ID as _0x23a7e9,INSERT_BELLOW_MENU_ID as _0x4203e1,UniverDocsMobileUIPlugin as _0x3a37cf,UniverDocsUIPlugin as _0x4a2dcb,VIEWPORT_KEY as _0x28fe54}from'@univerjs/docs-ui';import{BuiltInUIPart as _0x40e763,ComponentManager as _0x5974e5,ContextMenuGroup as _0x57116b,ContextMenuPosition as _0x26c1b2,FloatingObjectToolbarPosition as _0x7e4a12,FormatPainterSessionService as _0x22cfa6,IMenuManagerService as _0x354de5,IRibbonService as _0x1989ad,ISidebarService as _0x5cd437,IUIPartsService as _0x4c7e7e,IconManager as _0x358fdb,MenuItemType as _0x3c5886,MenuManagerPosition as _0x242878,MobileMenu as _0xab6cb4,ObjectPermissionButton as _0x6fcfc4,RibbonInsertGroup as _0x59a1a7,connectInjector as _0x3697e2,getMenuHiddenObservable as _0x546425,useDependency as _0x2f1968,useObservable as _0x24248b}from'@univerjs/ui';import{DEFAULT_DOC_SHAPE_HEIGHT as _0x4111fb,DEFAULT_DOC_SHAPE_WIDTH as _0x5c3f4d,DocShapeAnchorPosition as _0x822ec2,DocsShapeService as _0x3e6ec4,InsertDocShapeCommand as _0x3ff9f6,UniverDocsShapePlugin as _0x2e07fc,UpdateDocDrawingMetadataCommand as _0x4054f5,UpdateDocShapeDataCommand as _0xc5bd8e,UpdateDocShapeDataMutation as _0x4aaefb}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x3423a9,ShapeArrowSizeEnum as _0x3a63cf,ShapeArrowTypeEnum as _0x42e35b,ShapeDefaultConfig as _0x1f925b,ShapeFillEnum as _0x5ea484,ShapeLineTypeEnum as _0x3f4778,ShapeModel as _0x5d1466,ShapeRenderModeEnum as _0x17498a,ShapeTextAutoFitType as _0x4b45c6,ShapeTypeEnum as _0x90f8ed,isConnectorShape as _0x3a8d31,resolveShapeTextBodyBehavior as _0x94d984}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x1fb743,UniverShapeEditorPlugin as _0x2830ac,applyQuickStyleToShapeData as _0x22ba98,cloneShapeDataForType as _0x147fa8,createShapeFormulaDocument as _0x59b1ab,createShapeTextBoxShapeData as _0x4be474,getShapeQuickStylePreset as _0x4fe810,getShapeQuickStyleType as _0x4bc092,resolveActiveShapeQuickStylePresetId as _0x3d44c4}from'@univerjs-pro/shape-editor';import{ArrangeTypeEnum as _0x1f6748,BooleanNumber as _0x2eeb60,CommandType as _0x5e8815,DependentOn as _0x1a58e1,Disposable as _0x143425,DisposableCollection as _0x4bf1ef,DocumentDataModel as _0x2925ba,DrawingTypeEnum as _0x1652cd,FOCUSING_COMMON_DRAWINGS as _0x2f74ce,FOCUSING_SHAPE_TEXT_EDITOR as _0x1e386f,HorizontalAlign as _0x19f481,ICommandService as _0x5d4fd5,IConfigService as _0x47ac1d,IContextService as _0x46b73a,IImageIoService as _0x42c7d6,IPermissionService as _0x1b33f3,IURLImageService as _0x1d2e00,IUniverInstanceService as _0x58ad01,Inject as _0x376ec2,Injector as _0x3fea17,LocaleService as _0x474b31,Plugin as _0x48417e,PositionedObjectLayoutType as _0x5e65d5,UniverInstanceType as _0x37d2f3,VerticalAlign as _0xfc8006,createInternalEditorID as _0x320a48,generateRandomId as _0x539aae,getParagraphContentStartOffset as _0x51b222,merge as _0x77c685,registerDependencies as _0x1fed5b,toDisposable as _0x44b80c,touchDependencies as _0xd342cc}from'@univerjs/core';import{DocInterceptorService as _0x106c33,DocSelectionManagerService as _0x2e2dde,RichTextEditingMutation as _0x387c40,SetDocumentPermissionCommand as _0x2502f6,UniverDocsPlugin as _0x3dc614,canEditDocumentTargets as _0xaad49,getDocumentDrawingSegmentId as _0x34c0dc,getDocumentEntityParentPermissionObjectIds as _0x1ed368,getDocumentEntityPermissionObjectId as _0x17c75c,getDocumentPermissionValue as _0x29792c}from'@univerjs/docs';import{IDocDrawingService as _0x3b1588,RemoveDocDrawingCommand as _0x1dc354,SetDocDrawingArrangeCommand as _0x3c4545,TextWrappingStyle as _0x4e8b32,UpdateDocDrawingWrappingStyleCommand as _0x35bcca,UpdateDrawingDocTransformCommand as _0x5c08e6}from'@univerjs/docs-drawing';import{CURSOR_TYPE as _0x1b2d0c,Circle as _0x5d9ad7,DRAWING_OBJECT_LAYER_INDEX as _0x19be61,DocumentSkeleton as _0x122642,DocumentViewModel as _0x4be549,Documents as _0x321da8,IRenderManagerService as _0x20175c,RENDER_CLASS_TYPE as _0x5ccc48,Shape as _0x479a18,Transform as _0x4d0b24,UniverRenderEnginePlugin as _0x55fd02,Vector2 as _0x7e1ba8,getLastLine as _0x5d8276,setDocsCustomBlockRenderViewportProvider as _0x387221}from'@univerjs/engine-render';import{IDrawingManagerService as _0x4ed84c,SetDrawingSelectedOperation as _0x342bee,UniverDrawingPlugin as _0x41fe11,getDrawingShapeKeyByDrawingSearch as _0x33c05c}from'@univerjs/drawing';import{DrawingCommonPanel as _0x2438ba,DrawingImageClipService as _0x453a2,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x1efce9,MobileObjectListPanel as _0x2b8d3a,OBJECT_LIST_FLOATING_SECTION_ID as _0x1722f4,ObjectListPanelBase as _0xb10e3b,UniverDrawingMobileUIPlugin as _0x1a2f56,UniverDrawingUIPlugin as _0x1896a6,getObjectListPanelSectionIdForDrawingType as _0x3f7cdb,insertGroupObject as _0x54a7ec}from'@univerjs/drawing-ui';import{Fragment as _0xafd52b,jsx as _0x5619d4,jsxs as _0x48a5b6}from'react/jsx-runtime';import{BehaviorSubject as _0xe789cb,Observable as _0x1f9019,distinctUntilChanged as _0x598686,map as _0x573771,merge as _0x3018f6,of as _0x477cfd,startWith as _0x45bea4}from'rxjs';import{UniverLicensePlugin as _0x1f5858}from'@univerjs-pro/license';import{DocDrawingPosition as _0x328b21,DocDrawingTextWrap as _0x7f317e,MobileDocDrawingPosition as _0x10704b,MobileDocDrawingTextWrap as _0xa7fe3c,UniverDocsDrawingMobileUIPlugin as _0x1727f1,UniverDocsDrawingUIPlugin as _0x34d5cc}from'@univerjs/docs-drawing-ui';import{BottomIcon as _0x463d79,MoreDownIcon as _0x5df7dc,MoreUpIcon as _0x383f97,MoveDownIcon as _0x13639d,MoveUpIcon as _0x384086,ObjectLayersIcon as _0x362b77,ShapeFormatSettingIcon as _0x306814,TextWrapShapeIcon as _0x1e873d,TopmostIcon as _0x1b36a9}from'@univerjs/icons';import{MobileActionRow as _0x478cdc}from'@univerjs/design';import{memo as _0x5889ae,useEffect as _0x5b0cfd,useMemo as _0x39da17,useReducer as _0x597582,useState as _0x1f778c}from'react';import{UnitAction as _0x19e39f,UnitObject as _0x3314c2}from'@univerjs/protocol';function wr(_0x1782d0,_0x11f03b){const _0x544c78=_0xe027;if(_0x11f03b){if(_0x3a8d31(_0x1782d0)&&(_0x11f03b[_0x544c78(0x1a6)]||_0x11f03b['endArrow']))return{'ln':{'startArrow':_0x11f03b[_0x544c78(0x1a6)]?{'type':_0x42e35b[_0x544c78(0x191)],'size':_0x3a63cf[_0x544c78(0x28a)]}:void 0x0,'endArrow':_0x11f03b['endArrow']?{'type':_0x42e35b['Arrow'],'size':_0x3a63cf[_0x544c78(0x2a0)]}:void 0x0}};if(_0x1782d0===_0x90f8ed['Rect']&&(_0x11f03b['horizontal']||_0x11f03b[_0x544c78(0xdf)]))return _0x4be474({'fill':{'fillType':_0x5ea484[_0x544c78(0x11e)],'color':'#3B82F6'},'isHorizontal':!!_0x11f03b[_0x544c78(0x19a)],'stroke':{'lineStrokeType':_0x3f4778[_0x544c78(0xb5)],'width':0x1,'color':_0x544c78(0x15e)}});}}function Tr(_0x2fae29,_0x1b4e9d){const _0x109106=_0xe027;var _0x1f64dd;let _0x3f3f04=_0x1b4e9d[_0x109106(0x2ae)]??'',_0x41c085=(_0x1f64dd=_0x2fae29[_0x109106(0x1d6)](_0x3f3f04))==null?void 0x0:_0x1f64dd[_0x109106(0xb7)]();if(!_0x41c085)return null;let _0x462cb2=_0x41c085[_0x109106(0x16e)]??[],_0xd28db7=_0x462cb2[_0x109106(0x2d0)](_0x304ff1=>{const _0x2c2f45=_0x109106;let _0x5a96e9=_0x51b222(_0x41c085,_0x304ff1);return _0x1b4e9d[_0x2c2f45(0x1d3)]>=_0x5a96e9&&_0x1b4e9d[_0x2c2f45(0x1d3)]<=_0x304ff1[_0x2c2f45(0x184)];})??_0x462cb2[_0x462cb2[_0x109106(0x1ee)]-0x1];return _0xd28db7?{'paragraphId':_0xd28db7[_0x109106(0x12e)],'segmentId':_0x3f3f04,'position':_0x822ec2[_0x109106(0x149)],'offset':_0x1b4e9d[_0x109106(0x1d3)]-_0x51b222(_0x41c085,_0xd28db7)}:null;}function Er(_0xff7fc7,_0x398d81,_0x188671){const _0x5b9ccf=_0xe027;var _0x4e90c6,_0x2fd36a;if(!_0x188671)return null;let _0x73cd38=(_0x4e90c6=_0xff7fc7['get'](_0x20175c)[_0x5b9ccf(0x2b0)](_0x398d81))==null?void 0x0:_0x4e90c6[_0x5b9ccf(0x178)](_0x4b5937)[_0x5b9ccf(0x117)];if(!_0x73cd38)return null;let _0x417e3e=_0x188671==='below'?{'startOffset':_0x73cd38[_0x5b9ccf(0xea)][_0x5b9ccf(0x253)],'endOffset':_0x73cd38[_0x5b9ccf(0xea)][_0x5b9ccf(0x253)]}:_0x73cd38['menuRange'];return{'startOffset':_0x417e3e['startOffset'],'endOffset':_0x417e3e[_0x5b9ccf(0x253)],'collapsed':_0x417e3e[_0x5b9ccf(0x1d3)]===_0x417e3e[_0x5b9ccf(0x253)],'segmentId':((_0x2fd36a=_0x73cd38[_0x5b9ccf(0x1e8)])==null?void 0x0:_0x2fd36a[_0x5b9ccf(0x2ae)])??''};}const U={'type':_0x5e8815[_0x43e8a4(0x2a6)],'id':'doc.command.menu-insert-shape','handler':async(_0x46723c,_0x69ab55)=>{const _0x2060e5=_0x43e8a4;let _0xed64b2=_0x46723c[_0x2060e5(0x7a)](_0x58ad01)[_0x2060e5(0x248)](_0x37d2f3[_0x2060e5(0x10d)]);if(!_0xed64b2)return!0x1;let _0xd20fae=_0x46723c[_0x2060e5(0x7a)](_0x5d4fd5),_0x1f978a=_0xed64b2[_0x2060e5(0xe2)](),_0x43e8a7=_0x69ab55[_0x2060e5(0x1a5)]??_0x539aae(),_0x221af5=_0x69ab55['width']??_0x5c3f4d,_0x4a6410=_0x69ab55[_0x2060e5(0x204)]??_0x4111fb,_0x5f24e5=_0x69ab55[_0x2060e5(0x240)]??wr(_0x69ab55['value'],_0x69ab55[_0x2060e5(0x229)]),_0x39a93b=Er(_0x46723c,_0x1f978a,_0x69ab55[_0x2060e5(0x90)])??_0x46723c['get'](_0x2e2dde)[_0x2060e5(0x69)]();if(!_0x39a93b)return!0x1;let _0xe7e9da=Tr(_0xed64b2,_0x39a93b);return _0xe7e9da?!!_0xd20fae[_0x2060e5(0x27a)](_0x3ff9f6['id'],{'unitId':_0x1f978a,'shapeId':_0x43e8a7,'shapeType':_0x69ab55['value'],'shapeData':_0x5f24e5,'transform':{'width':_0x221af5,'height':_0x4a6410},'placement':{'wrappingStyle':_0x4e8b32[_0x2060e5(0x91)],'anchor':_0xe7e9da}}):!0x1;}},W=_0x43e8a4(0x138),Dr=_0x43e8a4(0x93),Or=_0x43e8a4(0x21e),kr=_0x320a48('SHAPE_TEXT'),Ar='doc.shape.text.float-menu',jr=_0x43e8a4(0xd3),Mr={'id':_0x43e8a4(0x225),'type':_0x5e8815['COMMAND'],'handler':(_0x24cdd8,_0x1b28c0)=>{const _0x3dfacc=_0x43e8a4;let _0x4b12e0=_0x24cdd8[_0x3dfacc(0x7a)](_0x5cd437),_0x48856e=_0x24cdd8[_0x3dfacc(0x7a)](_0x474b31),_0x41b80b=_0x24cdd8[_0x3dfacc(0x7a)](_0x4ed84c);return(_0x1b28c0==null?void 0x0:_0x1b28c0[_0x3dfacc(0x152)])===_0x3dfacc(0x234)?(_0x4b12e0[_0x3dfacc(0x234)](Or),!0x0):(_0x4b12e0[_0x3dfacc(0x29c)]({'id':Or,'header':{'title':_0x48856e['t'](_0x3dfacc(0x243))},'children':{'label':Or},'onClose':()=>{const _0x3d1372=_0x3dfacc;_0x41b80b[_0x3d1372(0xd9)](null);},'width':0x168}),!0x0);}},G={'type':_0x5e8815[_0x43e8a4(0xa5)],'id':'doc.operation.open-doc-shape-format-panel','handler'(){return!0x0;}};function Nr(_0x9cba6a){const _0x4c6472=_0x43e8a4;let _0x278885=_0x9cba6a[_0x4c6472(0x7a)](_0x4ed84c)[_0x4c6472(0x2bf)](),_0x1d185c=_0x278885['length']===0x1?_0x278885[0x0]:null;if(!_0x1d185c||_0x1d185c[_0x4c6472(0x119)]!==_0x1652cd[_0x4c6472(0x156)])return null;let _0x19d7ae=_0x9cba6a[_0x4c6472(0x7a)](_0x3e6ec4),_0x432618=_0x19d7ae[_0x4c6472(0x20c)](_0x1d185c[_0x4c6472(0xa2)],_0x1d185c['subUnitId'],_0x1d185c[_0x4c6472(0x198)]),_0x56bf23=_0x19d7ae[_0x4c6472(0x274)](_0x1d185c[_0x4c6472(0xa2)],_0x1d185c['subUnitId'],_0x1d185c['drawingId']);return _0x432618===void 0x0||!_0x56bf23?null:{'drawing':_0x1d185c,'shapeData':_0x56bf23,'shapeType':_0x432618};}const Pr={'id':_0x43e8a4(0x6c),'type':_0x5e8815[_0x43e8a4(0xa5)],'handler':(_0x14fb3c,_0x4a5a97)=>{const _0x2de703=_0x43e8a4;let _0x2d1f6d=Nr(_0x14fb3c),_0x44e34c=_0x4fe810((_0x4a5a97==null?void 0x0:_0x4a5a97[_0x2de703(0x2ab)])??(_0x4a5a97==null?void 0x0:_0x4a5a97['value'])??'');if(!_0x2d1f6d||!_0x44e34c||_0x44e34c[_0x2de703(0x297)]!==_0x4bc092(_0x2d1f6d[_0x2de703(0x240)]))return!0x1;let _0x1efc61=_0x22ba98(_0x2d1f6d[_0x2de703(0x240)],_0x44e34c);if(!_0x1efc61)return!0x1;let {drawing:_0x4c814b}=_0x2d1f6d;return _0x14fb3c[_0x2de703(0x7a)](_0x5d4fd5)[_0x2de703(0x2cf)](_0xc5bd8e['id'],{'unitId':_0x4c814b['unitId'],'shapeId':_0x4c814b[_0x2de703(0x198)],'shapeData':_0x1efc61,'oldShapeJSON':{'oldShapeData':_0x2d1f6d[_0x2de703(0x240)]}});}},Fr={'id':'doc.operation.update-shape-type','type':_0x5e8815[_0x43e8a4(0xa5)],'handler':(_0x41b21d,_0x5a74cf)=>{const _0x211ff7=_0x43e8a4;let _0x17b925=Nr(_0x41b21d),_0x1330da=(_0x5a74cf==null?void 0x0:_0x5a74cf[_0x211ff7(0x6d)])??(_0x5a74cf==null?void 0x0:_0x5a74cf[_0x211ff7(0x152)]);if(!_0x17b925||!_0x1330da||_0x3a8d31(_0x17b925[_0x211ff7(0x6d)])||_0x3a8d31(_0x1330da))return!0x1;let _0x34c9e1=_0x147fa8(_0x17b925[_0x211ff7(0x240)],_0x1330da);if(!_0x34c9e1)return!0x1;let {drawing:_0x5da53d}=_0x17b925;return _0x41b21d[_0x211ff7(0x7a)](_0x5d4fd5)['executeCommand'](_0xc5bd8e['id'],{'unitId':_0x5da53d[_0x211ff7(0xa2)],'shapeId':_0x5da53d['drawingId'],'shapeType':_0x1330da,'shapeData':_0x34c9e1,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x17b925['shapeType'],'oldShapeData':_0x17b925[_0x211ff7(0x240)]}});}};function K(_0x481e5f,_0x382c7b){return function(_0x3ed2e0,_0x474523){_0x382c7b(_0x3ed2e0,_0x474523,_0x481e5f);};}function q(_0x1c4574,_0x57683b,_0x16020f,_0x2bb7aa){const _0x2276fe=_0x43e8a4;var _0x7988c0=arguments['length'],_0x4aa91e=_0x7988c0<0x3?_0x57683b:_0x2bb7aa===null?_0x2bb7aa=Object[_0x2276fe(0x135)](_0x57683b,_0x16020f):_0x2bb7aa,_0x47144b;if(typeof Reflect=='object'&&typeof Reflect[_0x2276fe(0x23c)]==_0x2276fe(0xb9))_0x4aa91e=Reflect['decorate'](_0x1c4574,_0x57683b,_0x16020f,_0x2bb7aa);else{for(var _0x20b721=_0x1c4574[_0x2276fe(0x1ee)]-0x1;_0x20b721>=0x0;_0x20b721--)(_0x47144b=_0x1c4574[_0x20b721])&&(_0x4aa91e=(_0x7988c0<0x3?_0x47144b(_0x4aa91e):_0x7988c0>0x3?_0x47144b(_0x57683b,_0x16020f,_0x4aa91e):_0x47144b(_0x57683b,_0x16020f))||_0x4aa91e);}return _0x7988c0>0x3&&_0x4aa91e&&Object[_0x2276fe(0xac)](_0x57683b,_0x16020f,_0x4aa91e),_0x4aa91e;}let Ir=class extends _0x143425{constructor(_0x97b8ad,_0x1a19dd){const _0x17a223=_0x43e8a4;super(),this[_0x17a223(0x26d)]=_0x97b8ad,this['_drawingManagerService']=_0x1a19dd,this['_registerImageShapeClipDelegate'](),this['_clipService'][_0x17a223(0x2c8)](!0x0),this[_0x17a223(0xb3)]({'dispose':()=>this[_0x17a223(0x26d)]['setCanUseShapeClip'](!0x1)});}[_0x43e8a4(0x27d)](){const _0x2ae39b=_0x43e8a4;let _0x2eeae3=new Map(),_0x253ace=this[_0x2ae39b(0x26d)][_0x2ae39b(0x285)]((_0x5e742b,_0x188169,_0x2dcc81,_0x2e4d86,_0x4dfe74)=>{const _0x121f9f=_0x2ae39b;let _0x279a7c=_0x188169;if(_0x279a7c===_0x90f8ed[_0x121f9f(0x79)]||_0x188169===_0x121f9f(0x228))return!0x1;try{let _0x5c5dfc=_0x2eeae3[_0x121f9f(0x7a)](_0x188169);return _0x5c5dfc||(_0x5c5dfc=new _0x5d1466(_0x279a7c,'clip-'+_0x188169),_0x2eeae3[_0x121f9f(0x290)](_0x188169,_0x5c5dfc)),_0x5c5dfc[_0x121f9f(0x9d)](),_0x4dfe74&&Object[_0x121f9f(0x20d)](_0x4dfe74)[_0x121f9f(0x1ee)]>0x0&&_0x5c5dfc[_0x121f9f(0x1b6)]({'adjustValues':_0x4dfe74},!0x0),_0x5c5dfc[_0x121f9f(0x2bc)]({'width':_0x2dcc81,'height':_0x2e4d86}),_0x5c5dfc[_0x121f9f(0x1b5)](_0x5e742b,{'left':0x0,'top':0x0,'width':_0x2dcc81,'height':_0x2e4d86});}catch{return!0x1;}});this[_0x2ae39b(0xb3)](_0x253ace),this[_0x2ae39b(0xb3)]({'dispose':()=>_0x2eeae3[_0x2ae39b(0x189)]()});}[_0x43e8a4(0x168)](_0x33af87,_0x35d853,_0x44cd5f,_0x3992a6,_0x2fec0a){const _0x49c4b0=_0x43e8a4;let _0x10a77e=this[_0x49c4b0(0x282)][_0x49c4b0(0xaa)](_0x33af87,_0x35d853)[_0x44cd5f];_0x10a77e&&_0x10a77e['drawingType']===_0x1652cd[_0x49c4b0(0x24e)]&&this['_drawingManagerService'][_0x49c4b0(0x1eb)]([{..._0x10a77e,'prstGeom':_0x3992a6,'adjustValues':_0x2fec0a}]);}};Ir=q([K(0x0,_0x376ec2(_0x453a2)),K(0x1,_0x376ec2(_0x4ed84c))],Ir);const Lr=_0x43e8a4(0x1fc),Rr='doc.image-clip.shape-picker.component';function zr({onShapeClick:_0x4a16c9,excludeGroups:_0x5f12f5}){return _0x5619d4(_0x1a369d,{'excludeGroups':_0x5f12f5,'onShapeClick':_0x4a16c9,'scrollContainer':'parent'});}function Br(){let _0x589883=_0x2f1968(_0x4ed84c),_0x569a8e=_0x2f1968(Ir);return _0x55a9c7=>{const _0x2bfaa2=_0xe027;let _0x232721=_0x589883[_0x2bfaa2(0x2bf)]()[_0x2bfaa2(0x2d0)](_0x76613=>_0x76613[_0x2bfaa2(0x119)]===_0x1652cd[_0x2bfaa2(0x24e)]);_0x232721&&_0x569a8e[_0x2bfaa2(0x168)](_0x232721[_0x2bfaa2(0xa2)],_0x232721[_0x2bfaa2(0x2d2)],_0x232721[_0x2bfaa2(0x198)],_0x55a9c7[_0x2bfaa2(0x297)]);};}function Vr(){const _0x3f0b76=_0x43e8a4;let _0x50553d=Br();return _0x5619d4(_0x1c6a88,{'buttonLabel':'docs-shape-ui.crop.shape','excludeGroups':[_0x29b383[_0x3f0b76(0x8c)]],'onShapeClick':_0x50553d});}function Hr(){const _0x534ad2=_0x43e8a4;let _0x3201a8=_0x2f1968(_0x5974e5),_0x32e0e4=_0x2f1968(_0x4ed84c),_0x2c2be5=_0x2f1968(_0x58ad01),_0x40a524=_0x32e0e4[_0x534ad2(0x2bf)]()[0x0],_0x325db9=_0x40a524?_0x2c2be5[_0x534ad2(0x177)](_0x40a524[_0x534ad2(0xa2)]):void 0x0,_0xc08db=_0x325db9===_0x37d2f3[_0x534ad2(0x10d)]?Rr:_0x325db9===_0x37d2f3[_0x534ad2(0x84)]?_0x534ad2(0x2c4):void 0x0,_0x4e1655=_0xc08db?_0x3201a8['get'](_0xc08db):void 0x0;return _0x4e1655?_0x5619d4(_0x4e1655,{}):null;}function Ur({paragraphMenuPlacement:_0x5d8f72,PickerComponent:_0x5c6731=zr}){let _0x6e8cf6=_0x2f1968(_0x5d4fd5);return _0x5619d4(_0x5c6731,{'onShapeClick':_0x3c5980=>{const _0x5d0027=_0xe027;_0x6e8cf6[_0x5d0027(0x2cf)](U['id'],{'paragraphMenuPlacement':_0x5d8f72,'value':_0x3c5980[_0x5d0027(0x297)],'enhanceParams':{'endArrow':_0x3c5980[_0x5d0027(0xad)],'startArrow':_0x3c5980[_0x5d0027(0x1a6)],'horizontal':_0x3c5980[_0x5d0027(0x19a)],'vertical':_0x3c5980[_0x5d0027(0xdf)]}});}});}function Wr(_0x372393){const _0x132f10=_0x43e8a4;return _0x51df66=>({'id':U['id'],'type':_0x3c5886['SELECTOR'],'selections':[{'label':{'name':Lr,'hoverable':!0x1,'selectable':!0x1,'props':_0x372393?{'id':U['id'],'paragraphMenuPlacement':_0x372393}:{'id':U['id']}}}],'icon':_0x132f10(0x96),'title':_0x132f10(0x217),'tooltip':_0x132f10(0x217),'hidden$':_0x546425(_0x51df66,_0x37d2f3[_0x132f10(0x10d)])});}const Gr=Wr(),Kr=Wr(_0x43e8a4(0xeb)),qr=Wr(_0x43e8a4(0x10b));function Jr(_0x13e691){const _0x3f9964=_0x43e8a4;return{'id':Mr['id'],'type':_0x3c5886['BUTTON'],'icon':_0x3f9964(0x27e),'title':_0x3f9964(0x1f8),'tooltip':_0x3f9964(0x1f8),'hidden$':_0x546425(_0x13e691,_0x37d2f3[_0x3f9964(0x10d)])};}function Yr(_0x2dc88c,_0x267c39,_0x4ecba7,_0x240e86,_0x3e27fb,_0x5e82ca){let _0x15cc0e={'unitId':_0x267c39,'shapeId':_0x240e86,'shapeData':_0x5e82ca,'oldShapeJSON':_0x3e27fb};return _0x2dc88c['executeCommand'](_0xc5bd8e['id'],_0x15cc0e);}function Xr(_0x161e16,_0x5443fc,_0x30ec0e,_0x11e284,_0x181dd3,_0x86445e){const _0x490553=_0x43e8a4;let _0x5a9a32={'unitId':_0x5443fc,'shapeId':_0x11e284,'shapeData':_0x86445e,'oldShapeJSON':_0x181dd3};return _0x161e16[_0x490553(0x2cf)](_0xc5bd8e['id'],_0x5a9a32);}const Zr=_0x43e8a4(0x86),Qr=_0x43e8a4(0x25b),$r=_0x43e8a4(0x2c7),ei=_0x43e8a4(0x291),ti=_0x43e8a4(0x213),ni=[{'value':_0x4e8b32[_0x43e8a4(0x91)],'label':_0x43e8a4(0x76),'icon':'DocsShapeWrapInlineIcon'},{'value':_0x4e8b32[_0x43e8a4(0xbd)],'label':_0x43e8a4(0x146),'icon':_0x43e8a4(0x1a1)},{'value':_0x4e8b32['WRAP_TOP_AND_BOTTOM'],'label':_0x43e8a4(0x1c5),'icon':_0x43e8a4(0x255)},{'value':_0x4e8b32[_0x43e8a4(0x221)],'label':_0x43e8a4(0x2c5),'icon':_0x43e8a4(0x286)},{'value':_0x4e8b32[_0x43e8a4(0x85)],'label':'docs-shape-ui.textWrap.inFrontText','icon':_0x43e8a4(0x24f)}];function ri(){let _0x4df5c6=_0x2f1968(_0x5d4fd5),_0x77728=_0x2f1968(_0x4ed84c),_0xee6238=_0x2f1968(_0x3e6ec4),_0x4e600f=()=>{const _0x4d5536=_0xe027;var _0x27cfa2;let _0x348e06=_0x77728[_0x4d5536(0x2bf)]();if(_0x348e06[_0x4d5536(0x1ee)]!==0x1||((_0x27cfa2=_0x348e06[0x0])==null?void 0x0:_0x27cfa2['drawingType'])!==_0x1652cd[_0x4d5536(0x156)])return null;let {unitId:_0x41418f,subUnitId:_0x327800,drawingId:_0x2b1d55}=_0x348e06[0x0],_0x5988aa=_0xee6238['getShapeTypeById'](_0x41418f,_0x327800,_0x2b1d55),_0x493d55=_0xee6238[_0x4d5536(0x274)](_0x41418f,_0x327800,_0x2b1d55);return _0x5988aa===void 0x0||!_0x493d55?null:{'unitId':_0x41418f,'subUnitId':_0x327800,'drawingId':_0x2b1d55,'shapeType':_0x5988aa,'shapeData':_0x493d55};},_0x1a98da=_0x24248b(()=>new _0x1f9019(_0x158c5a=>{const _0x42fd72=_0xe027;let _0x306a6d=()=>_0x158c5a[_0x42fd72(0xbb)](_0x4e600f()),_0x98bde1=_0x77728['focus$'][_0x42fd72(0x120)](_0x306a6d),_0x1662c3=_0x4df5c6[_0x42fd72(0x1b3)](_0x1ce79d=>{_0x1ce79d['id']===_0x4aaefb['id']&&_0x306a6d();});return _0x306a6d(),()=>{const _0x2c8d3f=_0x42fd72;_0x98bde1[_0x2c8d3f(0x28b)](),_0x1662c3[_0x2c8d3f(0xb0)]();};}),_0x4e600f(),!0x1,[_0x4df5c6,_0xee6238,_0x77728]);return{'selection':_0x1a98da,'updateShapeData':_0x15c162=>{const _0x1b123f=_0xe027;_0x1a98da&&Yr(_0x4df5c6,_0x1a98da[_0x1b123f(0xa2)],_0x1a98da[_0x1b123f(0x2d2)],_0x1a98da[_0x1b123f(0x198)],{'oldShapeData':_0x1a98da[_0x1b123f(0x240)]},_0x15c162);}};}function _0x3d03(){const _0x223612=['pick','getShapeModel','sectionCanvas','transformByState','getSelectedObjectMap','drawing-ui.objectListPanel.lock','adjName','add','_adjName','fillType','getImageSourceCache','permissionPointUpdate$','target','_commandService','UNIVER_DOC','_openShapeEditPanel','pluginName','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','_getFocusedShapeAtPoint','6441230yMVkRw','round','getDrawingEffectBounds','headerLayoutKey','_baseShapeTop','activeTarget','_getDisposePopups','drawingType','docs-shape-ui.quickStyles','onDblclick$','PARAGRAPH','_drawSimpleText','SolidFill','makeDirty','subscribe','filter','LAYOUT','docs-shape-ui.ribbon.shape-format.arrange-forward','angle','_docPrintInterceptorService','setFallbackVisible','PictureFill','drawing-ui.objectListPanel.name','getDrawingDataForUnit','isEditing','svg','string','strokeWidth','paragraphId','inline','_baseShapeHeight','getShapeTextRect','params','_getShapeAdjustPointListById','_attachAdjustEvent','getOwnPropertyDescriptor','translate','restore','doc.shape.edit.panel','invert','constructor','drawing-ui.objectListPanel.filterAll','delete','_adjHandlerPointerMove','_renderWithCache','onPointerMove$','_draw','onerror','FromArray','_activeAdjustInfo','focus$','isRichText','docs-shape-ui.textWrap.square','title','getPageDrawingIds','OFFSET','_registerIcons','registerComponent','register','back','toPrimitive','drawing-ui.objectListPanel.unlockHint','resolveHyperLinkAt','_refreshShapeData','value','drawing-ui.objectListPanel.hide','WRAP_TOP_AND_BOTTOM','prototype','DRAWING_SHAPE','addObject','mergeMenu','onSavingEditorData$','setEditing','RIBBON','asObservable','create','#2563EB','classType','_initUIPart','doc-shape-adjust-point-','drawing-ui.objectListPanel.lockAll','dataModel','docs-shape-format-font-family-menu','offsetX','shapeKey','sectionFloating','clipByShape','refreshFormulaPresentation','symbol','srcRect','render','drawing-ui.objectListPanel.title','paragraphs','_activeShapeAdjustPointList','none','square','updateDocumentDataMargin','drawing-ui.objectListPanel.hideAll','localeService','fill','preValue','getUnitType','with','_componentManager','draw','getObjectIncludeInGroup','drawing-ui.objectListPanel.nameInput','4ANmlPq','disableObjectsEvent','_docsShapeService','splice','getPresentation','_initEditingParams','getAllRenderersOfType','startIndex','doc.shape.floating-toolbar','transformForAngle','true','getState','clear','_formulaAnimation','_drawingType','top-bottom','clip','hideInfoPopup','docs-shape-contextual-ribbon','changing$','Arrow','setShapeProps','isMainScene','_layoutInteraction','1519665DYUHml','_urlImageService','_insertShapes','drawingId','actualHeight','horizontal','_formulaKey','formulaBinding','shapeModel','transformVector2SceneCoord','_shapeFloatingToolbarService','BottomIcon','DocsShapeWrapSquareIcon','getEditing','presentation','DocumentEntity','shapeId','startArrow','drawing-ui.objectListPanel.dragToReorder','212025JwlKOC','autoFitType','docs-shape-ui.hidePanel','_setTransForm','createControl$','extensionGroups','_injector','refreshShapeFillImage','cos','_activeShapeInfo','registerRenderModule','onCommandExecuted','visible','buildClipPath','setShapeData','2559501oxxuNI','updateDocumentStyle','getInterceptPoints','getMatrix','_drawRichTextLayer','getShapePopupMenus','version','drawing-ui.objectListPanel.description','isRenderLinePointsMode','data','complete','_isStartAdjusting','clearControl$','packageName','docs-shape-ui.textWrap.topAndBottom','_transform','refreshTransform$','CONTENT','_sidebarService','drawing-ui.objectListPanel.moveBackward','_updateAdjustControlPositions','disableShapeOption','_drawShapeText','contentHeight','updateShapeFillImage','_endLayoutInteraction','actions','drawing-ui.objectListPanel.unlockAll','startOffset','offsetY','shapeText','getSelfOrHeaderFooterModel','setSrcRect','enableObjectsEvent','onload','has','docs-shape-ui.mobile.delete','378972Jdmxxk','_props','div','top-center','shape-editor-ui.arrange.back','docs-shape-ui.config','OTHERS','shape-text-','map','getDrawingOrder','5.5','skeFooters','paragraph','skeTables','stopPropagation','featurePluginUpdateNotification','8EOXoBA','_transformCalculateSrcRect','length','setPrstGeom','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','@univerjs-pro/docs-shape-ui','attachPopupToObject','_configService','onPointerDown$','some','fillImageSource','drawings','docs-shape-ui.objectListPanel.open','isRender','_getRenderModules','_shapeId','doc.shape.picker.component','behind','_activeShapeId','backward','panel','drawing-ui.objectListPanel.descriptionPlaceholder','current','_ribbonService','height','setFillImage','layoutType','onPointerUp$','skeHeaders','completeEditing','Copy','adjHandleSize','getShapeTypeById','keys','docs-shape-ui.ribbon.shape-format.text-control','shape-editor-ui.arrange.forward','WRAP_NONE','setConfig','getShapeTextData','docs-shape-ui.shape-format.wrapping-style-label','docs-shape-ui.crop.shape','_loadShapePictureFill','MoveDownIcon','docs-shape-ui.insertShape','_permissionService','_canEdit','_isOpenedShapeEditPanel','adjHandleFill','currentColor','docs-shape-ui.formatShape','doc.shape.object-list.panel','_update','_initPrinting','BEHIND_TEXT','drawing-ui.objectListPanel.showAll','_getShapeAdjustInfosById','description','doc.operation.open-shape-object-list-panel','_lastEditingShapeKey','docs-shape-text-','custom','enhanceParams','_getDependencies','onReady','1em','values','docs-shape-ui.mobile.style','forward','_baseShapeWidth','_shapeEditPanelVersion','M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','.below','close','bottom','Image','SHAPE','getSkeletonData','_addShapeAdjustControl','drawing-ui.objectListPanel.unlock','CROSSHAIR','decorate','_updateShapeAdjustControls','_initMenu','_registerPickers','shapeData','push','DOC','docs-shape-ui.objectListPanel.title','shape-editor-ui.toolbar.quickStyles','_popupTargetKeys','_registerObjectListPanel','visible$','getCurrentUnitOfType','TOP','_updateShape','drawing-ui.objectListPanel.expand','_activeShapeModel','path','DRAWING_IMAGE','DocsShapeWrapInFrontOfTextIcon','getRealBound','order','drawing-ui.objectListPanel.locate','endOffset','getUnit','DocsShapeWrapTopBottomIcon','componentKey','onStarting','getInverseCoord','docs-shape-ui.ribbon.shape-format.arrange-backward','fontFamily','docs-shape-ui.shape-format.style-ribbon-control','setContextValue','_toVisualAdjustPoint','_completionFrame','PRINTING_COMPONENT_COLLECT','transform','update$','isInGroup','SpAutoFit','_registerDrawingFocusChangeHandler','_adjustPointObjects','addImageSourceCache','_localeService','object','_drawRichText','extraProps','_releaseRenderCache','_applyFormulaAutoFitSize','_clipService','presentationChanged$','viewBound','getDrawingVisible','DRAWING_DOM','_docDrawingShapeRenderController','setPresentation','getShapeDataById','skeDrawings','_baseShapeLeft','_getShapeInfo','_init','getTransformerByCreate','syncExecuteCommand','clone','univer-grid\x20univer-gap-3','_registerImageShapeClipDelegate','ObjectLayersIcon','_createShapeAdjustControls','_initEvents','_editingParams$','_drawingManagerService','_getActiveDrawingParam','_initSelection','registerClipDelegate','DocsShapeWrapBehindTextIcon','MoveUpIcon','_clearShapeAdjustControls','default','Medium','unsubscribe','_unitId','_config','_docCanvasPopManagerService','TRUE','set','docs-shape-ui.shape-format.formula-ribbon-control','drawing','SELECTOR','drawing-ui.objectListPanel.search','selectable','_registerDrawingTransformHandler','type','docs-shape-ui.ribbon.shape-format.style-control','getShapeData','save','image','open','_isShouldShowDrawingShapeAdjust','getDrawingPoints','doc.operation.close-doc-shape-format-panel','Large','prstGeom','translateWithPrecision','changeStart$','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','icon','COMMAND','fallbackHeight','_shapeFormulaService','trim','isLineShape','presetId','docs-shape-ui.ribbon.shape-format.formula-control','BUTTON','segmentId','animationEnabled','getRenderUnitById','headerId','_iconManager','isHit','setCollapsedIds','getSnapshot','canDispose','_menuManagerService','top','drawing-ui.objectListPanel.empty','_updateSrcRectByTransform','popup','updateContext','_closeShapeEditPanel','URL','getFocusDrawings','_clearPopups','_imageIoService','getCurrentTypeOfUnit$','getContextValue','sheet.image-clip.shape-picker.component','docs-shape-ui.textWrap.behindText','getAdjustInfoByName','docs-shape-ui.shape-format.text-ribbon-control','setCanUseShapeClip','M2\x203h16M2\x2017h16','getActiveViewportByCoord','isHorizontal','3303786YBAMJw','applyPoint','composeMatrix','executeCommand','find','getShapeType','subUnitId','_registerOperations','shape-editor-ui.toolbar.changeShape','sin','style','getActiveTextRange','_docLayoutInteractionService','reduce','doc.operation.apply-shape-quick-style','shapeType','refreshAdjustControls','_loadAndSetImage','registerCommand','scene','_shapeTextEditingService','size','multiply','max','docs-shape-ui.textWrap.inline','_formulaShapes','_measure','None','get','_univerInstanceService','GROUP','width','objects','behindDoc','editingParams$','doc','_clearCompletionFrame','onTransformChange$','UNIVER_SHEET','IN_FRONT_OF_TEXT','docs-shape-ui.shape-format.quick-style-gallery','drawing-ui.objectListPanel.close','stroke','_adjHandlerPointerUp','_onSavingEditorData$','cancelEditing','Line','context-bar','_getActiveDrawingShape','menu','paragraphMenuPlacement','INLINE','pipe','docs-shape-ui.ribbon.shape-format','contentVerticalOffset','scale','ShapeIcon','docs-shape-ui.ribbon.shape-format.arrange-front','text','getCanvasElement','PaintIcon','_sidebarDisposable','hidden','clearAdjustValue','getAutoFitPresentations','_mobileEditorService','call','getImage','unitId','_renderManagerService','remove$','OPERATION','renderDrawingShape','setOnSavingEditorData','docs-shape-ui.openPanel','_handleCreateControl','getDrawingData','clipTop','defineProperty','endArrow','resetCursor','left','dispose','changeEnd$','_subUnitId','disposeWithMe','438953aIPpbk','SolidLine','_registerComponents','getBody','0.8','function','name','next','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','WRAP_SQUARE','front','pages','flipX','canvasElement','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','_visible','setFormulaPresentation','1.2','getDrawingOKey','_hyperLinkRegions','fallbackWidth','error','hideContextualTab','formulaPresentation','hasDefault','subscribeEvent','rect','_canEditShape','docs-shape-ui.deleteShape','spaceBelowApply','_getShapePopup','DocsShapeTextEditorContainer','getValue','univer-box-border\x20univer-px-4\x20univer-text-sm','forEach','beginPath','_popupMenuListener','focusDrawing','getFocusedUnit','getTransformer','_disposePopupsByUnit','TopmostIcon','_registerFloatingToolbar','vertical','gradientEndColor','entries','getUnitId','getDrawingSearch','setAdjustValueByName','drawWith','wrapStrategy','span','_getSceneByUnitId','color','moveRange','below','getViewports','_context','ShapeFormatSettingIcon','oKey','getActualSize','clipHeight','_hide','calculate','pageWidth','VIEW_MAIN','_instanceService','getParent','isDrawingObject','_initialize','9UJAndD','Path','_contextService','getDrawingByParam','attachTransformerTo'];_0x3d03=function(){return _0x223612;};return _0x3d03();}function ii(){const _0x1eade5=_0x43e8a4;let {selection:_0x637ef4,updateShapeData:_0x1c9f43}=ri();return _0x637ef4?_0x5619d4(_0xd6f3ea,{'shapeData':_0x637ef4[_0x1eade5(0x240)],'shapeType':_0x637ef4[_0x1eade5(0x6d)],'onUpdateShapeData':_0x1c9f43}):null;}function ai(){const _0x19d34e=_0x43e8a4;let _0xfe8be4=_0x2f1968(_0x5d4fd5),_0x255657=_0x2f1968(_0x474b31),{selection:_0x72d87d}=ri();return _0x72d87d?_0x5619d4(_0x51195d,{'type':_0x4bc092(_0x72d87d[_0x19d34e(0x240)]),'ariaLabel':_0x255657['t'](_0x19d34e(0x11a)),'activePresetId':_0x3d44c4(_0x72d87d[_0x19d34e(0x240)]),'onSelect':_0x4804cc=>_0xfe8be4[_0x19d34e(0x2cf)](Pr['id'],{'presetId':_0x4804cc})}):null;}function oi(){const _0x3c3fe0=_0x43e8a4;let {selection:_0x1d74d9,updateShapeData:_0x91f1df}=ri();return _0x1d74d9?_0x5619d4(_0x473bd6,{'fontFamilyPopupDataComponent':_0x3c3fe0(0x164),'shapeData':_0x1d74d9['shapeData'],'onUpdateShapeData':_0x91f1df}):null;}function si(){const _0x41910d=_0x43e8a4;var _0x1c206c;let {selection:_0x3a1806,updateShapeData:_0x436f3a}=ri(),_0x10a1f4=_0x29c39b({'hostType':_0x37d2f3[_0x41910d(0x10d)],'unitId':(_0x3a1806==null?void 0x0:_0x3a1806['unitId'])??'','subUnitId':(_0x3a1806==null?void 0x0:_0x3a1806[_0x41910d(0x2d2)])??'','shapeId':(_0x3a1806==null?void 0x0:_0x3a1806[_0x41910d(0x198)])??'','shapeData':_0x3a1806==null?void 0x0:_0x3a1806[_0x41910d(0x240)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x41910d(0x235),'onUpdateBinding':_0x2e3478=>_0x436f3a({'formulaBinding':_0x2e3478})}),_0x55b57d=((_0x1c206c=_0x10a1f4[_0x41910d(0x1ad)])==null?void 0x0:_0x1c206c['flatMap'](_0x352be7=>_0x352be7[_0x41910d(0x1d1)])['filter'](_0x8c8680=>_0x8c8680['visible']!==!0x1))??[];return _0x3a1806!=null&&_0x3a1806['shapeData'][_0x41910d(0x19c)]?_0x5619d4(_0xcdf079,{'actions':_0x55b57d,'panel':_0x10a1f4[_0x41910d(0x200)]}):null;}function ci({value:_0x40cab1}){const _0x44c3ed=_0x43e8a4;let _0x3b84e6=_0x2f1968(_0x474b31),_0x527b88=ni[_0x44c3ed(0x2d0)](_0x577fdf=>_0x577fdf[_0x44c3ed(0x152)]===_0x40cab1)??ni[0x0];return _0x527b88?_0x5619d4(_0x44c3ed(0xe7),{'children':_0x3b84e6['t'](_0x527b88['label'])}):null;}const li=_0x43e8a4(0x298),ui=_0x43e8a4(0x20e),di=_0x43e8a4(0x2ac),fi=_0x43e8a4(0x123),pi=_0x43e8a4(0x259),mi=_0x43e8a4(0x97),hi='docs-shape-ui.ribbon.shape-format.arrange-back',gi='docs-shape-ui.ribbon.shape-format.wrapping-style';function _i(_0x318a17){const _0x2de3fa=_0x43e8a4;let _0x2cd502=_0x318a17['get'](_0x5d4fd5),_0x1c7c63=_0x318a17[_0x2de3fa(0x7a)](_0x4ed84c),_0x109ba9=_0x318a17[_0x2de3fa(0x7a)](_0x3e6ec4);return new _0x1f9019(_0x2c4cdc=>{const _0xf7f6fb=_0x2de3fa;let _0x146e45=()=>{const _0x37aa9b=_0xe027;let _0x9ed10f=vi(_0x318a17),_0x1b680f=_0x9ed10f?_0x109ba9[_0x37aa9b(0x274)](_0x9ed10f['unitId'],_0x9ed10f[_0x37aa9b(0x2d2)],_0x9ed10f[_0x37aa9b(0x198)]):null;_0x2c4cdc['next'](_0x1b680f?_0x3d44c4(_0x1b680f)??'':'');},_0x25c476=_0x1c7c63[_0xf7f6fb(0x144)][_0xf7f6fb(0x120)](_0x146e45),_0x37a80e=_0x2cd502['onCommandExecuted'](_0x4f4230=>{_0x4f4230['id']===_0x4aaefb['id']&&_0x146e45();});return _0x146e45(),()=>{const _0x59d8cb=_0xf7f6fb;_0x25c476[_0x59d8cb(0x28b)](),_0x37a80e['dispose']();};});}function vi(_0x2c3717){const _0x33767a=_0x43e8a4;var _0x28ab6f;let _0x50750f=_0x2c3717[_0x33767a(0x7a)](_0x4ed84c)[_0x33767a(0x2bf)]();return _0x50750f[_0x33767a(0x1ee)]===0x1&&((_0x28ab6f=_0x50750f[0x0])==null?void 0x0:_0x28ab6f[_0x33767a(0x119)])===_0x1652cd[_0x33767a(0x156)]?_0x50750f[0x0]:null;}function yi(_0x6925d8){const _0xe43553=_0x43e8a4;return(_0x6925d8==null?void 0x0:_0x6925d8[_0xe43553(0x206)])===_0x5e65d5[_0xe43553(0x210)]?_0x6925d8[_0xe43553(0x7f)]===_0x2eeb60['TRUE']?_0x4e8b32[_0xe43553(0x221)]:_0x4e8b32['IN_FRONT_OF_TEXT']:(_0x6925d8==null?void 0x0:_0x6925d8[_0xe43553(0x206)])===_0x5e65d5[_0xe43553(0xbd)]?_0x4e8b32[_0xe43553(0xbd)]:(_0x6925d8==null?void 0x0:_0x6925d8[_0xe43553(0x206)])===_0x5e65d5['WRAP_TOP_AND_BOTTOM']?_0x4e8b32[_0xe43553(0x154)]:_0x4e8b32[_0xe43553(0x91)];}function bi(_0x77eab5){const _0x5c9101=_0x43e8a4;let _0x4089d4=_0x77eab5['get'](_0x5d4fd5),_0x3b291a=_0x77eab5[_0x5c9101(0x7a)](_0x4ed84c),_0x17b880=_0x77eab5['get'](_0x58ad01);return new _0x1f9019(_0x4e274d=>{const _0x26d24b=_0x5c9101;let _0x2798ac=()=>{const _0x503618=_0xe027;var _0x6f6b76;let _0x791841=vi(_0x77eab5),_0x1739d2=_0x791841?_0x17b880[_0x503618(0x254)](_0x791841[_0x503618(0xa2)],_0x37d2f3[_0x503618(0x10d)]):void 0x0;_0x4e274d[_0x503618(0xbb)](yi(_0x791841?_0x1739d2==null||(_0x6f6b76=_0x1739d2[_0x503618(0x2b5)]()[_0x503618(0x1f7)])==null?void 0x0:_0x6f6b76[_0x791841[_0x503618(0x198)]]:void 0x0));},_0x21f2b3=_0x3b291a[_0x26d24b(0x144)][_0x26d24b(0x120)](_0x2798ac),_0x1d02d8=_0x4089d4[_0x26d24b(0x1b3)](_0x3f8b31=>{_0x3f8b31['id']===_0x387c40['id']&&_0x2798ac();});return _0x2798ac(),()=>{_0x21f2b3['unsubscribe'](),_0x1d02d8['dispose']();};})[_0x5c9101(0x92)](_0x598686());}function xi(_0x16100d,_0x129cdc=!0x1){const _0x331d53=_0x43e8a4;let _0x49f38a=_0x16100d['get'](_0x5d4fd5),_0x25e30c=_0x16100d['get'](_0x4ed84c),_0x1759d9=_0x16100d[_0x331d53(0x7a)](_0x3e6ec4);return new _0x1f9019(_0x3a4e31=>{const _0x307a18=_0x331d53;let _0x49de18=()=>{const _0x42d351=_0xe027;let _0xb526ba=vi(_0x16100d);if(!_0xb526ba){_0x3a4e31[_0x42d351(0xbb)](!0x0);return;}let _0x30ebba=_0x1759d9[_0x42d351(0x274)](_0xb526ba[_0x42d351(0xa2)],_0xb526ba[_0x42d351(0x2d2)],_0xb526ba[_0x42d351(0x198)]);_0x3a4e31[_0x42d351(0xbb)](!_0x30ebba||_0x129cdc&&_0x30ebba[_0x42d351(0x19c)]==null);},_0x450abb=_0x25e30c[_0x307a18(0x144)]['subscribe'](_0x49de18),_0x437920=_0x49f38a[_0x307a18(0x1b3)](_0x5e892a=>{_0x5e892a['id']===_0x4aaefb['id']&&_0x49de18();});return _0x49de18(),()=>{const _0x3ea996=_0x307a18;_0x450abb[_0x3ea996(0x28b)](),_0x437920[_0x3ea996(0xb0)]();};});}function Si(_0x4e2060){const _0x2cd690=_0x43e8a4;let _0x23d3d2=_0x4e2060[_0x2cd690(0x7a)](_0x4ed84c),_0x53f746=_0x4e2060['get'](_0x3e6ec4);return _0x23d3d2[_0x2cd690(0x144)][_0x2cd690(0x92)](_0x45bea4(_0x23d3d2['getFocusDrawings']()),_0x573771(()=>{const _0x225032=_0x2cd690;let _0x1ad070=vi(_0x4e2060),_0x377053=_0x1ad070?_0x53f746[_0x225032(0x20c)](_0x1ad070['unitId'],_0x1ad070[_0x225032(0x2d2)],_0x1ad070['drawingId']):void 0x0;return _0x377053===void 0x0||_0x3a8d31(_0x377053);}));}function Ci(_0x5bb36a){const _0x52e122=_0x43e8a4;return{'id':Pr['id'],'type':_0x3c5886[_0x52e122(0x293)],'icon':_0x52e122(0x9a),'title':_0x52e122(0x244),'tooltip':_0x52e122(0x244),'selections':[{'label':{'name':Zr,'hoverable':!0x1,'selectable':!0x1}}],'value$':_i(_0x5bb36a),'hidden$':xi(_0x5bb36a)};}function wi(_0x326d1e){const _0x4eb04d=_0x43e8a4;return{'id':Fr['id'],'type':_0x3c5886['SELECTOR'],'icon':_0x4eb04d(0x96),'title':_0x4eb04d(0x2d4),'tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':_0x12e18b,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Si(_0x326d1e)};}function Ti(_0x15b202,_0x1d2abd,_0x41c09a=!0x1){const _0x4ae7ee=_0x43e8a4;return _0x4d8212=>({'id':_0x15b202,'type':_0x3c5886[_0x4ae7ee(0x2ad)],'label':{'name':_0x1d2abd,'hoverable':!0x1,'selectable':!0x1},'hidden$':xi(_0x4d8212,_0x41c09a)});}const Ei=Ti(li,Qr),Di=Ti(ui,$r),Oi=Ti(di,ei,!0x0);function ki(_0x8d854f){const _0x1a0763=_0x43e8a4;return{'id':gi,'type':_0x3c5886[_0x1a0763(0x293)],'icon':ni[0x0][_0x1a0763(0x2a5)],'label':ti,'selectionsCommandId':_0x35bcca['id'],'selections':ni[_0x1a0763(0x1e4)](({icon:_0x6bda1c,label:_0x5b1832,value:_0x209e74})=>({'value':_0x209e74,'label':_0x5b1832,'icon':_0x6bda1c,'params':()=>{const _0x24b47f=_0x1a0763;let _0x155677=vi(_0x8d854f);return _0x155677?{'unitId':_0x155677['unitId'],'subUnitId':_0x155677[_0x24b47f(0x2d2)],'drawings':[{'unitId':_0x155677[_0x24b47f(0xa2)],'subUnitId':_0x155677[_0x24b47f(0x2d2)],'drawingId':_0x155677[_0x24b47f(0x198)]}],'wrappingStyle':_0x209e74}:void 0x0;}})),'value$':bi(_0x8d854f),'hidden$':xi(_0x8d854f)};}function Ai(_0x2c8e4,_0x50db02,_0x3e142e,_0x13cc7e){const _0x4db5e7=_0x43e8a4;return _0x5884fd=>({'id':_0x2c8e4,'commandId':_0x3c4545['id'],'type':_0x3c5886[_0x4db5e7(0x2ad)],'icon':_0x3e142e,'title':_0x13cc7e,'tooltip':_0x13cc7e,'hidden$':xi(_0x5884fd),'params':()=>{const _0x1bbc8a=_0x4db5e7;let _0x5bafc6=vi(_0x5884fd);return _0x5bafc6?{'unitId':_0x5bafc6[_0x1bbc8a(0xa2)],'subUnitId':_0x5bafc6[_0x1bbc8a(0x2d2)],'drawingIds':[_0x5bafc6[_0x1bbc8a(0x198)]],'arrangeType':_0x50db02}:void 0x0;}});}const ji=Ai(fi,_0x1f6748[_0x43e8a4(0x22f)],'MoveUpIcon',_0x43e8a4(0x20f)),Mi=Ai(pi,_0x1f6748[_0x43e8a4(0x1ff)],_0x43e8a4(0x216),'shape-editor-ui.arrange.backward'),Ni=Ai(mi,_0x1f6748['front'],_0x43e8a4(0xdd),'shape-editor-ui.arrange.front'),Pi=Ai(hi,_0x1f6748[_0x43e8a4(0x14d)],'BottomIcon',_0x43e8a4(0x1e0));function Fi(_0x26848f){const _0x3f650c=_0x43e8a4;return{'id':G['id'],'type':_0x3c5886['BUTTON'],'icon':'ShapeFormatSettingIcon','title':'docs-shape-ui.formatShape','tooltip':_0x3f650c(0x21d),'hidden$':xi(_0x26848f),'params':()=>{const _0x3dd8f0=_0x3f650c;let _0x23b654=vi(_0x26848f);return _0x23b654?{'unitId':_0x23b654[_0x3dd8f0(0xa2)],'subUnitId':_0x23b654[_0x3dd8f0(0x2d2)],'drawingId':_0x23b654[_0x3dd8f0(0x198)]}:void 0x0;}};}const Ii={[_0x242878[_0x43e8a4(0x15b)]]:{[Dr]:{'order':0x64,'title':'docs-shape-ui.formatShape','contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Pr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ci},[Fr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':wi}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[li]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ei}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[ui]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Di}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[gi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':ki},[fi]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':ji},[pi]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Mi},[mi]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':Ni},[hi]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':Pi}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[di]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Oi}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[G['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Fi},[_0x10dcc9['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x374e3e}}}}},Li={[_0x59a1a7['MEDIA']]:{[U['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x36964b=>({...Gr(_0x36964b),'title':void 0x0})}},[_0x59a1a7[_0x43e8a4(0x1e2)]]:{[Mr['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Jr}},[_0x26c1b2[_0x43e8a4(0x11c)]]:{[_0x57116b[_0x43e8a4(0x122)]]:{[_0x4203e1]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x3f6de3]:{[_0x57116b['LAYOUT']]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x23a7e9]:{[_0x57116b[_0x43e8a4(0x122)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':qr}}},[_0x5e7691]:{'insert':{[U['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':Gr}}},[_0xdfd9ae]:{'insert':{[U['id']+_0x43e8a4(0x233)]:{'replace':!0x0,'order':0x2,'menuItemFactory':Kr}}}}};var Ri=_0x43e8a4(0x1f1),zi='1.1.0';const Bi={'type':_0x5e8815['OPERATION'],'id':_0x43e8a4(0x29f),'handler'(){return!0x0;}},Vi=_0x43e8a4(0x1e1),Hi={};function Ui(_0x5b6f76){'@babel/helpers - typeof';const _0x182071=_0x43e8a4;return Ui=typeof Symbol==_0x182071(0xb9)&&typeof Symbol['iterator']==_0x182071(0x16a)?function(_0x214abd){return typeof _0x214abd;}:function(_0x44fc8b){const _0x4e8e3b=_0x182071;return _0x44fc8b&&typeof Symbol=='function'&&_0x44fc8b[_0x4e8e3b(0x13a)]===Symbol&&_0x44fc8b!==Symbol[_0x4e8e3b(0x155)]?_0x4e8e3b(0x16a):typeof _0x44fc8b;},Ui(_0x5b6f76);}function Wi(_0x4c45b2,_0x2cdadb){const _0x53b88e=_0x43e8a4;if(Ui(_0x4c45b2)!=_0x53b88e(0x268)||!_0x4c45b2)return _0x4c45b2;var _0x191c78=_0x4c45b2[Symbol[_0x53b88e(0x14e)]];if(_0x191c78!==void 0x0){var _0x389171=_0x191c78[_0x53b88e(0xa0)](_0x4c45b2,_0x2cdadb||_0x53b88e(0x289));if(Ui(_0x389171)!='object')return _0x389171;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2cdadb===_0x53b88e(0x12c)?String:Number)(_0x4c45b2);}function Gi(_0x5093aa){const _0x369d17=_0x43e8a4;var _0x36ef36=Wi(_0x5093aa,_0x369d17(0x12c));return Ui(_0x36ef36)==_0x369d17(0x16a)?_0x36ef36:_0x36ef36+'';}function J(_0x114860,_0x2ef095,_0x3b0a44){const _0x3e30fb=_0x43e8a4;return(_0x2ef095=Gi(_0x2ef095))in _0x114860?Object[_0x3e30fb(0xac)](_0x114860,_0x2ef095,{'value':_0x3b0a44,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x114860[_0x2ef095]=_0x3b0a44,_0x114860;}var Ki=class extends _0x479a18{constructor(_0x280e57,_0x59c50d){const _0x1ad754=_0x43e8a4;super(_0x280e57,_0x59c50d),J(this,_0x1ad754(0x1fb),null),J(this,_0x1ad754(0x107),null),J(this,'_unitId',null),J(this,_0x1ad754(0xb2),null),_0x59c50d&&this[_0x1ad754(0x192)](_0x59c50d);}[_0x43e8a4(0xe3)](){const _0x11d9e5=_0x43e8a4;return{'unitId':this['_unitId'],'subUnitId':this[_0x11d9e5(0xb2)],'drawingId':this[_0x11d9e5(0x1fb)]};}[_0x43e8a4(0x192)](_0x1aefbc){const _0x23bc69=_0x43e8a4;_0x1aefbc[_0x23bc69(0x1a5)]!==void 0x0&&(this[_0x23bc69(0x1fb)]=_0x1aefbc[_0x23bc69(0x1a5)]),_0x1aefbc[_0x23bc69(0x105)]!==void 0x0&&(this[_0x23bc69(0x107)]=_0x1aefbc[_0x23bc69(0x105)]),_0x1aefbc[_0x23bc69(0xa2)]!==void 0x0&&(this[_0x23bc69(0x28c)]=_0x1aefbc[_0x23bc69(0xa2)]),_0x1aefbc['subUnitId']!==void 0x0&&(this['_subUnitId']=_0x1aefbc[_0x23bc69(0x2d2)]),this[_0x23bc69(0x102)]({'width':_0x1aefbc[_0x23bc69(0x7d)],'height':_0x1aefbc['height']});}[_0x43e8a4(0x140)](_0x20b9a5){const _0x4a91da=_0x43e8a4;_0x5d9ad7[_0x4a91da(0xe5)](_0x20b9a5,{'radius':_0x1f925b[_0x4a91da(0x20b)],'fill':_0x1f925b[_0x4a91da(0x21b)],'stroke':_0x1f925b['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function qi(_0x3bf224,_0x38472d,_0x14bee7){const _0xa713ff=_0x43e8a4;let _0x4c50cd={..._0x38472d,'dataModel':{..._0x38472d[_0xa713ff(0x163)]??{},..._0x14bee7?{'doc':_0x14bee7}:null}},_0x472b4a=_0x17c928(_0x3bf224,_0x4c50cd),_0x49a10b=_0xd357af(_0x472b4a);return{'clip':_0x1c7d20(_0x472b4a,_0x49a10b),'wrapStrategy':_0x49a10b};}var Y=class extends _0x479a18{constructor(_0x5c5290,_0x2f5cf9){const _0x552356=_0x43e8a4;super(_0x5c5290,_0x2f5cf9),J(this,_0x552356(0xc7),[]),J(this,_0x552356(0x1dd),void 0x0),J(this,'_formulaAnimation',new _0x41ef0b(()=>this['makeDirty'](!0x0),()=>this['_applyFormulaAutoFitSize']())),J(this,'_transformCalculateSrcRect',!0x0),J(this,_0x552356(0x18b),_0x1652cd['DRAWING_SHAPE']),J(this,_0x552356(0xf8),!0x0),this[_0x552356(0x1dd)]={..._0x2f5cf9},this['_formulaAnimation'][_0x552356(0x273)](_0x2f5cf9[_0x552356(0xcb)],_0x2f5cf9['animateFormulaPresentation']!==!0x1),this[_0x552356(0x278)](),this[_0x552356(0x26c)]();}['_init'](){const _0x44113a=_0x43e8a4;this[_0x44113a(0x83)][_0x44113a(0xcd)](_0x6652c0=>{const _0x34b078=_0x44113a;this[_0x34b078(0x2ba)](_0x6652c0);});}[_0x43e8a4(0x1ef)](_0x1ae12c){const _0xab1588=_0x43e8a4;this[_0xab1588(0x1dd)][_0xab1588(0x2a1)]=_0x1ae12c;}['resolveHyperLinkAt'](_0x39dcb8){const _0x93c6df=_0x43e8a4;if(this['_props'][_0x93c6df(0x12a)])return null;let _0xc5bff6=this[_0x93c6df(0x258)](_0x39dcb8),{width:_0x4b7592,height:_0x529126}=this[_0x93c6df(0x250)]();return _0x436b63(this[_0x93c6df(0xc7)],{'x':(this[_0x93c6df(0xc0)]?-_0xc5bff6['x']:_0xc5bff6['x'])+_0x4b7592/0x2,'y':_0xc5bff6['y']+_0x529126/0x2});}[_0x43e8a4(0x15a)](_0x548241){const _0x17721d=_0x43e8a4;this['_props'][_0x17721d(0x12a)]=_0x548241,this[_0x17721d(0x11f)](!0x0);}[_0x43e8a4(0xc4)](_0x4876ae,_0x139935=!0x0){const _0x56d107=_0x43e8a4;this[_0x56d107(0x18a)]['setPresentation'](_0x4876ae,_0x139935),this[_0x56d107(0x1dd)][_0x56d107(0xcb)]=_0x4876ae,this[_0x56d107(0x26c)](),this[_0x56d107(0x11f)](!0x0);}[_0x43e8a4(0x26c)](){const _0x13a163=_0x43e8a4;let _0xa11a3e=this[_0x13a163(0x1dd)]['shapeModel'],_0x5773f8=_0xa11a3e[_0x13a163(0x212)](),_0x3b0d52=_0x33266c(_0x5773f8==null?void 0x0:_0x5773f8[_0x13a163(0x163)]),_0x98c2cb=_0x3b0d52==null?void 0x0:_0x3b0d52[_0x13a163(0x81)],_0x5ef685=this[_0x13a163(0x18a)][_0x13a163(0x9e)]();if(!_0x98c2cb||_0x5ef685[_0x13a163(0x1ee)]===0x0)return;_0xa11a3e[_0x13a163(0x2bc)]({'width':this[_0x13a163(0x7d)],'height':this[_0x13a163(0x204)]});let _0x27114d=_0x4b8d5f({'documentData':_0x5ef685[_0x13a163(0x1e4)](_0x12e11e=>_0x59b1ab(_0x98c2cb,_0x12e11e)),'height':this[_0x13a163(0x204)],'shapeData':_0xa11a3e[_0x13a163(0x299)](),'textRect':_0xa11a3e[_0x13a163(0x131)]({'left':0x0,'top':0x0,'width':this[_0x13a163(0x7d)],'height':this[_0x13a163(0x204)]}),'width':this[_0x13a163(0x7d)]});if(_0x27114d){var _0xed22ec;this['resize'](_0x27114d[_0x13a163(0x7d)],_0x27114d[_0x13a163(0x204)]),(_0xed22ec=this['getScene']())==null||(_0xed22ec=_0xed22ec[_0x13a163(0xdb)]())==null||_0xed22ec['debounceRefreshControls']();}}get['unitId'](){return this['_props']['unitId'];}get[_0x43e8a4(0x2d2)](){const _0x5c4f57=_0x43e8a4;return this['_props'][_0x5c4f57(0x2d2)];}[_0x43e8a4(0x2ba)](_0x1dab22){const _0x34034f=_0x43e8a4;if(this[_0x34034f(0x1dd)][_0x34034f(0x16b)]==null||!this[_0x34034f(0x1ed)])return;let {width:_0x1fd54e,height:_0x223257}=this,{width:_0xa300d6=0x0,height:_0x9e2573=0x0}=_0x1dab22[_0x34034f(0x176)],{left:_0xd71235=0x0,top:_0x56c4db=0x0,right:_0x5d5538=0x0,bottom:_0x2db8c1=0x0}=this[_0x34034f(0x1dd)][_0x34034f(0x16b)],_0x5003b1=_0xd71235,_0x4438ff=_0x56c4db,_0x58e234=_0x5d5538,_0x5c9ea9=_0x2db8c1,_0x355495=!0x1;if(_0xa300d6!==0x0&&_0xa300d6!==_0x1fd54e){let _0x564482=_0xd71235/_0xa300d6,_0x2e7465=_0x5d5538/_0xa300d6;_0x5003b1=_0x1fd54e*_0x564482,_0x58e234=_0x1fd54e*_0x2e7465,_0x355495=!0x0;}if(_0x9e2573!==0x0&&_0x9e2573!==_0x223257){let _0xda409c=_0x56c4db/_0x9e2573,_0x3a00f0=_0x2db8c1/_0x9e2573;_0x4438ff=_0x223257*_0xda409c,_0x5c9ea9=_0x223257*_0x3a00f0,_0x355495=!0x0;}_0x355495&&this[_0x34034f(0x1d7)]({'left':_0x5003b1,'top':_0x4438ff,'right':_0x58e234,'bottom':_0x5c9ea9});}[_0x43e8a4(0x1d7)](_0x47b319){const _0x211e7d=_0x43e8a4;this['_props']['srcRect']=_0x47b319,this[_0x211e7d(0x11f)](!0x0);}[_0x43e8a4(0x205)](_0x2b0860){const _0x29ac12=_0x43e8a4;this[_0x29ac12(0x1dd)][_0x29ac12(0x29b)]=_0x2b0860,this[_0x29ac12(0x11f)](!0x0);}set[_0x43e8a4(0x260)](_0x233018){const _0x54743f=_0x43e8a4;this[_0x54743f(0x1c6)]=_0x233018;}get['transform'](){const _0x35bde3=_0x43e8a4;this[_0x35bde3(0x1c6)]||this[_0x35bde3(0x1ab)]();let _0x9c4bea=this[_0x35bde3(0x1c6)][_0x35bde3(0x27b)]();return this[_0x35bde3(0x186)](_0x9c4bea);}get['shapeModel'](){const _0x142410=_0x43e8a4;return this[_0x142410(0x1dd)]['shapeModel'];}get[_0x43e8a4(0x1a5)](){const _0x5e9b9c=_0x43e8a4;return this['_props'][_0x5e9b9c(0x1a5)];}get[_0x43e8a4(0x15f)](){const _0x2b9230=_0x43e8a4;return _0x5ccc48[_0x2b9230(0x237)];}[_0x43e8a4(0x140)](_0x4d096d,_0x559378,_0x2a2a3b,_0xf21f6){const _0x55fbe3=_0x43e8a4;let _0x2aa0b7=this['_props'][_0x55fbe3(0x19d)];if(!_0x2aa0b7||!_0x559378)return;let _0x37e222=_0x2a2a3b??this[_0x55fbe3(0x7d)],_0x44597c=_0xf21f6??this[_0x55fbe3(0x204)],_0x1c6047={'shapeType':_0x2aa0b7[_0x55fbe3(0x2d1)](),'width':_0x37e222,'height':_0x44597c},_0x330e24={'renderMode':_0x17498a[_0x55fbe3(0xfb)],'oKey':this[_0x55fbe3(0xef)],'image':this['_props'][_0x55fbe3(0x29b)],'angle':this['angle']};_0x2aa0b7['updateContext'](_0x1c6047),_0x4d096d[_0x55fbe3(0x29a)]();let _0x51580c={'top':0x0,'left':0x0,'width':_0x37e222,'height':_0x44597c},_0x353d51=_0x2aa0b7[_0x55fbe3(0x114)](_0x51580c);_0x353d51?this[_0x55fbe3(0x13e)](_0x4d096d,_0x353d51,_0x5f564c=>{_0x2aa0b7['render'](_0x5f564c,_0x51580c,_0x330e24);}):(this[_0x55fbe3(0x26b)](),_0x2aa0b7[_0x55fbe3(0x16c)](_0x4d096d,_0x51580c,_0x330e24)),_0x4d096d[_0x55fbe3(0x137)]();let _0x277afd=_0x2aa0b7['getShapeTextData'](),_0x4e228c=_0x2aa0b7[_0x55fbe3(0x131)](_0x51580c),_0x4ff5a9=_0x2aa0b7[_0x55fbe3(0x2aa)]();if(_0x277afd&&_0x4e228c&&!_0x4ff5a9){_0x4d096d[_0x55fbe3(0x29a)](),this['getState']()[_0x55fbe3(0xc0)]&&_0x4d096d[_0x55fbe3(0x95)](-0x1,0x1);let _0x212233=_0x37e222/0x2,_0x2d044a=_0x44597c/0x2;_0x4d096d[_0x55fbe3(0x136)](-_0x212233,-_0x2d044a),_0x4d096d[_0x55fbe3(0xd7)](),this[_0x55fbe3(0x1cd)](_0x4d096d,_0x277afd,_0x4e228c),_0x4d096d[_0x55fbe3(0x137)]();}}['getDrawingPoints'](_0x146ff0){}['_drawShapeText'](_0x147eff,_0x5583a1,_0x134d66){const _0x38cd66=_0x43e8a4;var _0x3b94cf;this[_0x38cd66(0xc7)]=[],!this[_0x38cd66(0x1dd)][_0x38cd66(0x12a)]&&(!((_0x3b94cf=_0x5583a1['dataModel'])!=null&&_0x3b94cf[_0x38cd66(0x81)])&&'isRichText'in _0x5583a1&&_0x5583a1[_0x38cd66(0x145)]===!0x1?this[_0x38cd66(0x11d)](_0x147eff,_0x5583a1,_0x134d66):this[_0x38cd66(0x269)](_0x147eff,_0x5583a1,_0x134d66));}[_0x43e8a4(0x11d)](_0x102a10,_0x16c4d2,_0x707721){const _0x319d04=_0x43e8a4;this[_0x319d04(0x269)](_0x102a10,{..._0x16c4d2,'text':_0x16c4d2['text']??'','dataModel':{'doc':_0x5e99a9(_0x16c4d2,_0x319d04(0x227)+this[_0x319d04(0xef)])}},_0x707721);}['_drawRichText'](_0x242a47,_0x3fe3e7,_0xab1864){const _0x46a03a=_0x43e8a4;_0x2b587f(_0x242a47,this[_0x46a03a(0x18a)],(_0xc78800,_0x223dc2,_0x3e6ea2)=>{const _0x30325f=_0x46a03a;this['_drawRichTextLayer'](_0xc78800,_0x3fe3e7,_0xab1864,_0x223dc2,_0x3e6ea2===_0x30325f(0x202));});}[_0x43e8a4(0x1bb)](_0x48277e,_0x6bbb4e,_0x42c06c,_0x4f1fbf,_0x14fd6b){const _0x46b882=_0x43e8a4;let _0x34fd68=this[_0x46b882(0x1dd)][_0x46b882(0x174)];if(!_0x6bbb4e[_0x46b882(0x163)]||!_0x34fd68){_0x34fd68||console['warn']('[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering');return;}let _0x1e0233=_0x33266c(_0x6bbb4e[_0x46b882(0x163)]);if(!_0x1e0233)return;let _0x2c6213=_0x1e0233[_0x46b882(0x81)];if(!_0x2c6213)return;let _0x3d5692=_0x59b1ab(_0x2c6213,_0x4f1fbf),_0x3c88cb=_0x1e0233['va']??_0xfc8006[_0x46b882(0x249)],_0x4a947b=_0x1e0233['ha']??_0x19f481['LEFT'],_0x453e31=qi(this[_0x46b882(0x1dd)][_0x46b882(0x19d)][_0x46b882(0x299)](),_0x6bbb4e,_0x3d5692),_0x57d425=_0x6bbb4e[_0x46b882(0x2cb)],_0x433573=_0x18300c(_0x3d5692,{'isHorizontal':_0x57d425!==!0x1,'textRect':_0x42c06c,'verticalAlign':_0x3c88cb,'horizontalAlign':_0x4a947b,'wrapStrategy':_0x453e31[_0x46b882(0xe6)]}),_0xb5f4eb=new _0x2925ba(_0x433573),_0x4fdf68=new _0x4be549(_0xb5f4eb),_0xa67c18=_0x122642[_0x46b882(0x15d)](_0x4fdf68,_0x34fd68);_0xa67c18['calculate']();let _0x5acdb4=_0xa67c18['getActualSize']()[_0x46b882(0x199)],_0x349a06=_0x4f930a({'contentHeight':_0x5acdb4,'verticalAlign':_0x3c88cb,'viewportHeight':_0x42c06c[_0x46b882(0x204)]});_0xb5f4eb[_0x46b882(0x1b8)]({'pageSize':{'width':_0x57d425===!0x1?_0x42c06c[_0x46b882(0x204)]:_0x42c06c['width'],'height':_0x30a506(_0x3d5692,_0x349a06['contentHeight'])}}),_0xb5f4eb[_0x46b882(0x172)]({'t':_0x349a06['marginTop']}),_0xa67c18[_0x46b882(0xf3)]();let _0x82b132=new _0x321da8(_0x46b882(0x1e3)+this[_0x46b882(0xef)],_0xa67c18,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this['makeDirty'](!0x0)});_0x82b132['resize'](_0x42c06c[_0x46b882(0x7d)],_0x349a06[_0x46b882(0x1ce)]),_0x48277e[_0x46b882(0x29a)](),_0x48277e[_0x46b882(0x2a2)](_0x42c06c['left'],_0x42c06c[_0x46b882(0x2b8)]),_0x453e31[_0x46b882(0x18d)]&&(_0x48277e[_0x46b882(0xd7)](),_0x48277e[_0x46b882(0xce)](0x0,_0x349a06[_0x46b882(0xab)],_0x42c06c[_0x46b882(0x7d)],_0x349a06[_0x46b882(0xf1)]),_0x48277e['clip']()),_0x349a06[_0x46b882(0x94)]&&_0x48277e[_0x46b882(0x2a2)](0x0,_0x349a06[_0x46b882(0x94)]),_0x82b132[_0x46b882(0x17a)](_0x48277e),_0x14fd6b&&(this['_hyperLinkRegions']=_0x32283e(_0x82b132,{'left':_0x42c06c[_0x46b882(0xaf)],'top':_0x42c06c[_0x46b882(0x2b8)]+_0x349a06['contentVerticalOffset']},_0x453e31[_0x46b882(0x18d)]?{'left':_0x42c06c[_0x46b882(0xaf)],'right':_0x42c06c[_0x46b882(0xaf)]+_0x42c06c[_0x46b882(0x7d)],'top':_0x42c06c[_0x46b882(0x2b8)]+_0x349a06[_0x46b882(0xab)],'bottom':_0x42c06c[_0x46b882(0x2b8)]+_0x349a06['clipTop']+_0x349a06[_0x46b882(0xf1)]}:void 0x0)),_0x48277e[_0x46b882(0x137)](),_0x82b132[_0x46b882(0xb0)](),_0xa67c18[_0x46b882(0xb0)](),_0x4fdf68[_0x46b882(0xb0)](),_0xb5f4eb[_0x46b882(0xb0)]();}[_0x43e8a4(0x16c)](_0x115d8e,_0x37819a,_0x4ef972=!0x1){const _0x4fe97e=_0x43e8a4;if(!this[_0x4fe97e(0x1b4)])return this[_0x4fe97e(0x11f)](!0x1),this;let {width:_0x1300d3,height:_0x56a197,left:_0x43f9da,top:_0x52b64d}=this,_0x38a059=this[_0x4fe97e(0x250)]();if(_0x1300d3=_0x38a059[_0x4fe97e(0x7d)],_0x56a197=_0x38a059[_0x4fe97e(0x204)],_0x43f9da=_0x38a059[_0x4fe97e(0xaf)],_0x52b64d=_0x38a059[_0x4fe97e(0x2b8)],this[_0x4fe97e(0x1f9)](_0x37819a)){let {top:_0x2fdc3e,left:_0x267d9f,bottom:_0x3bd038,right:_0x170d4a}=_0x37819a[_0x4fe97e(0x26f)];if(_0x1300d3+this[_0x4fe97e(0x12d)]+_0x43f9da<_0x267d9f||_0x170d4a<_0x43f9da||_0x56a197+this['strokeWidth']+_0x52b64d<_0x2fdc3e||_0x3bd038<_0x52b64d)return this;}let _0x50aae9=_0x43f9da+_0x1300d3/0x2,_0x5f4691=_0x52b64d+_0x56a197/0x2,_0x179769=this[_0x4fe97e(0x260)][_0x4fe97e(0x1ba)]();if(this[_0x4fe97e(0x1dd)]['isEditing']){let _0x4d4b06=this[_0x4fe97e(0x188)](),_0x3ee8d4=new _0x4d0b24();_0x3ee8d4[_0x4fe97e(0x2ce)]({..._0x4d4b06}),_0x179769=_0x3ee8d4['getMatrix']();}return _0x115d8e['save'](),this[_0x4fe97e(0x1dd)][_0x4fe97e(0x19d)][_0x4fe97e(0x1bf)]===!0x0||_0x115d8e[_0x4fe97e(0x260)](_0x179769[0x0],_0x179769[0x1],_0x179769[0x2],_0x179769[0x3],_0x50aae9,_0x5f4691),this['_draw'](_0x115d8e,_0x37819a,_0x1300d3,_0x56a197),_0x115d8e['restore'](),this[_0x4fe97e(0x11f)](!0x1),this;}[_0x43e8a4(0x258)](_0x509918){const _0x3abecb=_0x43e8a4;let {left:_0x4590cd,top:_0x9a6ae2,width:_0x228816,height:_0x2defda}=this[_0x3abecb(0x250)](),_0x34c255=this[_0x3abecb(0x260)][_0x3abecb(0x1ba)](),_0x13ad08=_0x4590cd+_0x228816/0x2,_0x4fa435=_0x9a6ae2+_0x2defda/0x2,_0x4c3336=new _0x4d0b24([_0x34c255[0x0],_0x34c255[0x1],_0x34c255[0x2],_0x34c255[0x3],_0x13ad08,_0x4fa435]),_0x2d257f=this[_0x3abecb(0xf7)]();return(this[_0x3abecb(0x262)]&&(_0x2d257f==null?void 0x0:_0x2d257f[_0x3abecb(0x15f)])===_0x5ccc48['GROUP']?_0x2d257f['ancestorTransform'][_0x3abecb(0x74)](_0x4c3336):_0x4c3336)['invert']()[_0x3abecb(0x2cd)](_0x509918);}[_0x43e8a4(0x2b3)](_0x530bbc){const _0x561b73=_0x43e8a4;let {left:_0x5aa716,top:_0x3795f2,width:_0x5a4920,height:_0xff574}=this[_0x561b73(0x250)](),_0x374d2c=_0x5aa716+_0x5a4920/0x2,_0x409b0c=_0x3795f2+_0xff574/0x2,_0x55cbbe=this['transform'][_0x561b73(0x1ba)](),_0x221a0a=new _0x4d0b24([_0x55cbbe[0x0],_0x55cbbe[0x1],_0x55cbbe[0x2],_0x55cbbe[0x3],_0x374d2c,_0x409b0c]),_0x4d1501=this[_0x561b73(0xf7)](),_0x14e673=(this[_0x561b73(0x262)]&&(_0x4d1501==null?void 0x0:_0x4d1501[_0x561b73(0x15f)])===_0x5ccc48[_0x561b73(0x7c)]?_0x4d1501['ancestorTransform'][_0x561b73(0x74)](_0x221a0a):_0x221a0a)[_0x561b73(0x139)]()[_0x561b73(0x2cd)](_0x530bbc),_0x389794=_0x5a4920/0x2,_0xfb543f=_0xff574/0x2,_0x3d8f4a=this[_0x561b73(0x1dd)]['shapeModel'];return _0x3d8f4a&&_0x3d8f4a['isLineShape']()?_0x3d8f4a['isHitLine'](_0x14e673['x'],_0x14e673['y'],_0x5a4920,_0xff574):_0x14e673['x']>=-_0x389794-this[_0x561b73(0x12d)]/0x2&&_0x14e673['x']<=_0x389794+this['strokeWidth']/0x2&&_0x14e673['y']>=-_0xfb543f-this[_0x561b73(0x12d)]/0x2&&_0x14e673['y']<=_0xfb543f+this['strokeWidth']/0x2;}[_0x43e8a4(0xb0)](){const _0x126999=_0x43e8a4;this['_formulaAnimation'][_0x126999(0xb0)](),this[_0x126999(0x1dd)][_0x126999(0x19d)]=null,super[_0x126999(0xb0)]();}};let Ji=class extends _0x143425{constructor(_0x395cc9,_0x3ba4bc,_0xd17344,_0x52f159){const _0x4ab592=_0x43e8a4;super(),this['_context']=_0x395cc9,this[_0x4ab592(0x282)]=_0x3ba4bc,this[_0x4ab592(0x17f)]=_0xd17344,this['_commandService']=_0x52f159,J(this,_0x4ab592(0x1fe),null),J(this,_0x4ab592(0x28c),null),J(this,_0x4ab592(0xb2),null),J(this,_0x4ab592(0x16f),void 0x0),J(this,_0x4ab592(0x265),[]),J(this,_0x4ab592(0x276),0x0),J(this,'_baseShapeTop',0x0),J(this,_0x4ab592(0x230),0x0),J(this,_0x4ab592(0x130),0x0),J(this,_0x4ab592(0x1c2),!0x1),J(this,_0x4ab592(0x29d),!0x1),J(this,_0x4ab592(0x143),void 0x0),J(this,_0x4ab592(0x24c),void 0x0),J(this,_0x4ab592(0x13d),void 0x0),J(this,_0x4ab592(0x89),void 0x0),this[_0x4ab592(0x264)](),this[_0x4ab592(0x296)]();}['clearAdjustControls'](){const _0x137526=_0x43e8a4;this[_0x137526(0x288)]();}[_0x43e8a4(0x6e)](){const _0x282336=_0x43e8a4;this[_0x282336(0x23d)](!0x0);}[_0x43e8a4(0x133)](_0x27a855,_0x249b59,_0x2ca449){const _0x3cff91=_0x43e8a4;var _0xbee5e1;return(_0xbee5e1=this['_docsShapeService'][_0x3cff91(0x100)](_0x27a855,_0x249b59,_0x2ca449))==null?void 0x0:_0xbee5e1['getDrawingPoints']();}[_0x43e8a4(0x223)](_0x28b232,_0x44aaba,_0x57c289,_0x48f1f5){const _0x45907f=_0x43e8a4;var _0x1df0db;return(_0x1df0db=this['_docsShapeService']['getShapeModel'](_0x28b232,_0x44aaba,_0x57c289))==null?void 0x0:_0x1df0db[_0x45907f(0x2c6)](_0x48f1f5);}[_0x43e8a4(0x283)](){const _0x43ad60=_0x43e8a4;return this[_0x43ad60(0x28c)]===null||this[_0x43ad60(0xb2)]===null||this[_0x43ad60(0x1fe)]===null?null:this[_0x43ad60(0x282)][_0x43ad60(0xfd)]({'unitId':this['_unitId'],'subUnitId':this[_0x43ad60(0xb2)],'drawingId':this[_0x43ad60(0x1fe)]})??null;}['_getActiveDrawingShape'](_0x4455fa){const _0x3d7fd6=_0x43e8a4;if(this['_unitId']===null||this['_subUnitId']===null||this['_activeShapeId']===null)return null;let _0xea8430=_0x33c05c({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x3d7fd6(0x1fe)]}),_0x4cd9bd=_0x4455fa[_0x3d7fd6(0x17b)](_0xea8430);return _0x4cd9bd instanceof Y?_0x4cd9bd:null;}[_0x43e8a4(0x27f)](_0x30bcf3=!0x1){const _0x51c31f=_0x43e8a4;if(this[_0x51c31f(0x28c)]===null||this[_0x51c31f(0xb2)]===null||this[_0x51c31f(0x1fe)]===null)return;let _0x2eeb78=this[_0x51c31f(0x283)]();if((_0x2eeb78==null?void 0x0:_0x2eeb78['drawingType'])!==_0x1652cd['DRAWING_SHAPE']||!_0x2eeb78[_0x51c31f(0x260)])return;let _0x312c9b=this[_0x51c31f(0x17f)][_0x51c31f(0x100)](this[_0x51c31f(0x28c)],this[_0x51c31f(0xb2)],this[_0x51c31f(0x1fe)]);if(!_0x312c9b||_0x312c9b[_0x51c31f(0x2aa)]())return;let {left:_0x12bb04=0x0,top:_0x9468d1=0x0,width:_0x16d0e9=0x0,height:_0x558119=0x0,flipX:_0xbf4dd5,flipY:_0x289aab,angle:_0x47588d=0x0}=_0x2eeb78[_0x51c31f(0x260)];(_0x30bcf3||!this[_0x51c31f(0x16f)])&&(_0x312c9b[_0x51c31f(0x2bc)]({'width':_0x16d0e9,'height':_0x558119}),this[_0x51c31f(0x16f)]=_0x312c9b[_0x51c31f(0x29e)]());let _0x2aa054=this['_activeShapeAdjustPointList'];if(!(_0x2aa054!=null&&_0x2aa054[_0x51c31f(0x1ee)]))return;let {scene:_0x30c042}=this[_0x51c31f(0xed)];for(let _0x2d9bb3 of _0x2aa054){let _0x160c51=this[_0x51c31f(0x25d)](_0x2d9bb3,_0x16d0e9,_0x558119,!!_0xbf4dd5,!!_0x289aab,_0x47588d);this[_0x51c31f(0x239)](_0x30c042,_0x160c51,_0x160c51[_0x51c31f(0x105)],_0x12bb04,_0x9468d1,this[_0x51c31f(0x28c)],this[_0x51c31f(0xb2)]);}}[_0x43e8a4(0x25d)](_0x1b19d5,_0x87d244,_0x4227ff,_0xde21c3,_0x252721,_0x2819ff){const _0x4773f9=_0x43e8a4;let _0x3d9ad2=_0x1b19d5['x'],_0x12c1f7=_0x1b19d5['y'];if(_0xde21c3&&(_0x3d9ad2=_0x87d244-_0x3d9ad2),_0x252721&&(_0x12c1f7=_0x4227ff-_0x12c1f7),_0x2819ff!==0x0){let _0x2cab27=_0x87d244/0x2,_0x1d87b4=_0x4227ff/0x2,_0x5bae27=_0x2819ff*Math['PI']/0xb4,_0x539fbf=Math[_0x4773f9(0x1b0)](_0x5bae27),_0x3a8105=Math['sin'](_0x5bae27),_0x4f2941=_0x3d9ad2-_0x2cab27,_0x343be1=_0x12c1f7-_0x1d87b4;_0x3d9ad2=_0x2cab27+(_0x4f2941*_0x539fbf-_0x343be1*_0x3a8105),_0x12c1f7=_0x1d87b4+(_0x4f2941*_0x3a8105+_0x343be1*_0x539fbf);}return{'x':_0x3d9ad2,'y':_0x12c1f7,'adjName':_0x1b19d5[_0x4773f9(0x105)]};}[_0x43e8a4(0x23d)](_0x3b2afa=!0x1){const _0x14887d=_0x43e8a4;_0x3b2afa&&this[_0x14887d(0x288)](),this[_0x14887d(0x27f)](_0x3b2afa);}['_addShapeAdjustControl'](_0x4a3a2a,_0x1ea49e,_0x3e36ad,_0x342ec9,_0x12cd20,_0x390181,_0x3a5a77){const _0x3ca69a=_0x43e8a4;if(!this[_0x3ca69a(0x1fe)])return;let _0x1a0442=_0x3ca69a(0x161)+this['_activeShapeId']+'-'+_0x3e36ad,_0x539a65=_0x4a3a2a[_0x3ca69a(0x17b)](_0x1a0442);if(_0x539a65){_0x539a65['transformByState']({'left':_0x1ea49e['x']+_0x342ec9-_0x1f925b[_0x3ca69a(0x20b)],'top':_0x1ea49e['y']+_0x12cd20-_0x1f925b[_0x3ca69a(0x20b)]}),_0x539a65[_0x3ca69a(0x11f)](!0x0);return;}let _0x2e79cc=new Ki(_0x1a0442,{'left':_0x1ea49e['x']+_0x342ec9-_0x1f925b[_0x3ca69a(0x20b)],'top':_0x1ea49e['y']+_0x12cd20-_0x1f925b['adjHandleSize'],'adjName':_0x3e36ad,'shapeId':this[_0x3ca69a(0x1fe)],'unitId':_0x390181,'subUnitId':_0x3a5a77,'width':_0x1f925b[_0x3ca69a(0x20b)]+0x8,'height':_0x1f925b[_0x3ca69a(0x20b)]+0x8,'zIndex':_0x19be61+0x1,'evented':!0x0});this['_adjustPointObjects']['push'](_0x2e79cc),this[_0x3ca69a(0x134)](_0x2e79cc,_0x4a3a2a,_0x3e36ad),_0x4a3a2a['addObject'](_0x2e79cc,_0x19be61+0x1);}[_0x43e8a4(0x288)](){const _0x344f1f=_0x43e8a4;this[_0x344f1f(0x265)][_0x344f1f(0xd6)](_0x40111b=>_0x40111b['dispose']()),this[_0x344f1f(0x265)]=[];}['_updateAdjustControlPositions'](){const _0x3acdb0=_0x43e8a4;this[_0x3acdb0(0x27f)]();}['_toScenePoint'](_0x2beb00,_0x980c25,_0x3b1330){const _0x4a8f78=_0x43e8a4;let _0x3c573b=_0x7e1ba8[_0x4a8f78(0x142)]([_0x980c25,_0x3b1330]),_0x50ae73=_0x2beb00[_0x4a8f78(0x2ca)](_0x3c573b)??_0x2beb00[_0x4a8f78(0xec)]()[0x0];return(_0x50ae73==null?void 0x0:_0x50ae73['transformVector2SceneCoord'](_0x3c573b))??_0x3c573b;}[_0x43e8a4(0x134)](_0x4419f3,_0x4b6a30,_0xe05f27){const _0x5257a8=_0x43e8a4;this['disposeWithMe'](_0x44b80c(_0x4419f3[_0x5257a8(0x1f4)][_0x5257a8(0xcd)]((_0x52fbbf,_0x2bdb23)=>{const _0x44ed37=_0x5257a8;var _0xf39ab3;let _0x138257=_0x4419f3[_0x44ed37(0xe3)]();this[_0x44ed37(0x143)]=this[_0x44ed37(0x223)](_0x138257['unitId'],_0x138257['subUnitId'],_0x138257['drawingId'],_0xe05f27),this[_0x44ed37(0x24c)]=this[_0x44ed37(0x17f)]['getShapeModel'](_0x138257[_0x44ed37(0xa2)],_0x138257[_0x44ed37(0x2d2)],_0x138257[_0x44ed37(0x198)]);let _0x1904a1=this[_0x44ed37(0x283)](),_0x404121=_0x1904a1==null?void 0x0:_0x1904a1[_0x44ed37(0x260)];if(!_0x1904a1||!_0x404121||!this[_0x44ed37(0x24c)])return;this['_baseShapeLeft']=_0x404121[_0x44ed37(0xaf)]||0x0,this[_0x44ed37(0x116)]=_0x404121[_0x44ed37(0x2b8)]||0x0,this['_baseShapeWidth']=_0x404121[_0x44ed37(0x7d)]||0x0,this[_0x44ed37(0x130)]=_0x404121[_0x44ed37(0x204)]||0x0;let _0x4fd948=!!_0x404121['flipX'],_0x45e49c=!!_0x404121['flipY'],_0x488770=_0x404121[_0x44ed37(0x124)]||0x0,_0x161aa9={...((_0xf39ab3=this['_activeAdjustInfo'])==null?void 0x0:_0xf39ab3['currentAdjustValues'])??{}};this[_0x44ed37(0x1c2)]=!0x0,_0x4b6a30[_0x44ed37(0x17e)](),this[_0x44ed37(0x13d)]=_0x4b6a30[_0x44ed37(0x13f)][_0x44ed37(0xcd)]((_0x35323e,_0x5e5367)=>{const _0x39ef2f=_0x44ed37;var _0xe150cd;if(!this['_isStartAdjusting']||!this[_0x39ef2f(0x24c)]||!this['_activeAdjustInfo'])return;_0x4b6a30[_0x39ef2f(0x17e)](),_0x4b6a30['setCursor'](_0x1b2d0c[_0x39ef2f(0x23b)]);let _0x23aeea=this['_toScenePoint'](_0x4b6a30,_0x35323e[_0x39ef2f(0x165)],_0x35323e[_0x39ef2f(0x1d4)]),_0x42272a=_0x23aeea['x']-this['_baseShapeLeft'],_0x132172=_0x23aeea['y']-this[_0x39ef2f(0x116)];if(_0x488770!==0x0){let _0x5e7d43=this[_0x39ef2f(0x230)]/0x2,_0x592162=this[_0x39ef2f(0x130)]/0x2,_0x2d52b2=_0x488770*Math['PI']/0xb4,_0x230b32=Math['cos'](_0x2d52b2),_0x64f17a=Math[_0x39ef2f(0x67)](_0x2d52b2),_0x27f77d=_0x42272a-_0x5e7d43,_0x5ed496=_0x132172-_0x592162;_0x42272a=_0x5e7d43+(_0x27f77d*_0x230b32+_0x5ed496*_0x64f17a),_0x132172=_0x592162+(-_0x27f77d*_0x64f17a+_0x5ed496*_0x230b32);}_0x4fd948&&(_0x42272a=this[_0x39ef2f(0x230)]-_0x42272a),_0x45e49c&&(_0x132172=this[_0x39ef2f(0x130)]-_0x132172);let _0xd3e714={'left':0x0,'top':0x0,'width':this[_0x39ef2f(0x230)],'height':this['_baseShapeHeight']},_0x43d564=this['_activeShapeModel']['calcAdjValues'](_0xd3e714,{'x':_0x42272a,'y':_0x132172},this[_0x39ef2f(0x143)],_0x4fd948,_0x45e49c);if(Object[_0x39ef2f(0x20d)](_0x43d564)[_0x39ef2f(0x1ee)]!==0x0){for(let [_0x27b4ff,_0x4ad07c]of Object[_0x39ef2f(0xe1)](_0x43d564))this[_0x39ef2f(0x24c)][_0x39ef2f(0xe4)](_0x27b4ff,_0x4ad07c);this['_activeShapeModel'][_0x39ef2f(0x2bc)]({'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']}),(_0xe150cd=this[_0x39ef2f(0x8e)](_0x4b6a30))==null||_0xe150cd[_0x39ef2f(0x11f)](!0x0),this['_activeShapeAdjustPointList']=this[_0x39ef2f(0x133)](_0x138257['unitId'],_0x138257[_0x39ef2f(0x2d2)],_0x138257[_0x39ef2f(0x198)]),this[_0x39ef2f(0x1cb)](),_0x5e5367[_0x39ef2f(0x1ea)]();}}),this[_0x44ed37(0x89)]=_0x4b6a30[_0x44ed37(0x207)][_0x44ed37(0xcd)]((_0x22db44,_0x32a58c)=>{const _0x4feb1e=_0x44ed37;var _0x45a958,_0x4d694b;(_0x45a958=this[_0x4feb1e(0x13d)])==null||_0x45a958[_0x4feb1e(0x28b)](),(_0x4d694b=this['_adjHandlerPointerUp'])==null||_0x4d694b['unsubscribe'](),_0x4b6a30[_0x4feb1e(0xae)]();let _0x56bc40=this[_0x4feb1e(0x143)];if(_0x56bc40&&this[_0x4feb1e(0x24c)]){let _0x23f762={};for(let _0x2b70d4 of Object[_0x4feb1e(0x20d)](_0x56bc40['currentAdjustValues'])){let _0x137aef=this['_activeShapeModel']['getAdjustValueByName'](_0x2b70d4);_0x137aef!==void 0x0&&(_0x23f762[_0x2b70d4]=_0x137aef);}Object['keys'](_0x23f762)[_0x4feb1e(0x1ee)]>0x0&&Yr(this[_0x4feb1e(0x10c)],_0x138257[_0x4feb1e(0xa2)],_0x138257[_0x4feb1e(0x2d2)],_0x138257[_0x4feb1e(0x198)],{'oldShapeData':{'adjustValues':_0x161aa9}},{'adjustValues':_0x23f762});}this[_0x4feb1e(0x143)]=void 0x0,this[_0x4feb1e(0x24c)]=void 0x0,this[_0x4feb1e(0x1c2)]=!0x1,_0x4b6a30[_0x4feb1e(0x1d8)](),_0x32a58c[_0x4feb1e(0x1ea)]();}),_0x2bdb23[_0x44ed37(0x1ea)]();})));}[_0x43e8a4(0x296)](){const _0x56dbe2=_0x43e8a4;let {scene:_0x3a7c15}=this[_0x56dbe2(0xed)],_0xc848f3=_0x3a7c15[_0x56dbe2(0x279)]();this[_0x56dbe2(0xb3)](_0xc848f3[_0x56dbe2(0x2a3)][_0x56dbe2(0x120)](_0x40ffa3=>{const _0x2baf4d=_0x56dbe2;this[_0x2baf4d(0x27f)](),_0x40ffa3[_0x2baf4d(0x7e)]!==null&&_0x40ffa3['objects'][_0x2baf4d(0x73)]===0x1&&_0x40ffa3['objects'][_0x2baf4d(0x22d)]()['next']()[_0x2baf4d(0x152)]instanceof Y&&(this[_0x2baf4d(0x29d)]=!0x0);})),this[_0x56dbe2(0xb3)](_0xc848f3[_0x56dbe2(0x190)][_0x56dbe2(0x120)](()=>{const _0x2d006f=_0x56dbe2;this[_0x2d006f(0x29d)]&&this[_0x2d006f(0x288)]();})),this[_0x56dbe2(0xb3)](_0x3a7c15[_0x56dbe2(0x207)][_0x56dbe2(0xcd)](()=>{const _0x413961=_0x56dbe2;this[_0x413961(0x29d)]&&(this[_0x413961(0x29d)]=!0x1,this[_0x413961(0x27f)]());})),this['disposeWithMe'](_0xc848f3[_0x56dbe2(0xb1)][_0x56dbe2(0x120)](()=>{const _0x4f3899=_0x56dbe2;this[_0x4f3899(0x28c)]&&this[_0x4f3899(0xb2)]&&this['_activeShapeId']&&(this[_0x4f3899(0x16f)]=this[_0x4f3899(0x133)](this[_0x4f3899(0x28c)],this['_subUnitId'],this[_0x4f3899(0x1fe)]),this[_0x4f3899(0x1cb)]());}));}[_0x43e8a4(0x264)](){const _0x2fa4fc=_0x43e8a4;this['disposeWithMe'](this[_0x2fa4fc(0x10c)]['onCommandExecuted'](_0x544928=>{const _0x17d3af=_0x2fa4fc;if(_0x544928['id']!==_0x4aaefb['id'])return;let {unitId:_0x55882b,shapeId:_0x3f31f3}=_0x544928[_0x17d3af(0x132)];_0x55882b===this['_unitId']&&_0x3f31f3===this[_0x17d3af(0x1fe)]&&this['refreshAdjustControls']();})),this[_0x2fa4fc(0xb3)](this[_0x2fa4fc(0x282)][_0x2fa4fc(0x144)][_0x2fa4fc(0x120)](_0x3687c8=>{const _0x4cc5d3=_0x2fa4fc;if(_0x3687c8[_0x4cc5d3(0x1ee)]===0x1){let _0xe2d1e4=_0x3687c8[0x0],_0x15177d=this[_0x4cc5d3(0x282)][_0x4cc5d3(0xfd)](_0xe2d1e4);if((_0x15177d==null?void 0x0:_0x15177d[_0x4cc5d3(0x119)])===_0x1652cd[_0x4cc5d3(0x156)]){this[_0x4cc5d3(0x1fe)]=_0xe2d1e4[_0x4cc5d3(0x198)],this[_0x4cc5d3(0x28c)]=_0xe2d1e4[_0x4cc5d3(0xa2)],this[_0x4cc5d3(0xb2)]=_0xe2d1e4[_0x4cc5d3(0x2d2)],this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](_0xe2d1e4[_0x4cc5d3(0xa2)],_0xe2d1e4[_0x4cc5d3(0x2d2)],_0xe2d1e4[_0x4cc5d3(0x198)]),this[_0x4cc5d3(0x288)](),this[_0x4cc5d3(0x27f)]();return;}}this[_0x4cc5d3(0x1fe)]=null,this[_0x4cc5d3(0x16f)]=void 0x0,this[_0x4cc5d3(0x28c)]=null,this[_0x4cc5d3(0xb2)]=null,this[_0x4cc5d3(0x288)]();})),this[_0x2fa4fc(0xb3)](_0x3018f6(this[_0x2fa4fc(0x282)][_0x2fa4fc(0x261)],this[_0x2fa4fc(0x282)][_0x2fa4fc(0x1c7)])[_0x2fa4fc(0x120)](_0x434001=>{const _0x190641=_0x2fa4fc;var _0x4d2c8d;let _0x368440=_0x434001[_0x190641(0x2d0)](_0x3b2181=>_0x3b2181['drawingId']===this[_0x190641(0x1fe)]&&_0x3b2181['unitId']===this['_unitId']&&_0x3b2181[_0x190641(0x2d2)]===this[_0x190641(0xb2)]);_0x368440&&((_0x4d2c8d=this[_0x190641(0x282)][_0x190641(0xfd)](_0x368440))==null?void 0x0:_0x4d2c8d[_0x190641(0x119)])===_0x1652cd['DRAWING_SHAPE']&&this[_0x190641(0x23d)](!0x0);})),this['disposeWithMe'](this[_0x2fa4fc(0x282)][_0x2fa4fc(0xa4)][_0x2fa4fc(0x120)](_0x1d4ce8=>{const _0x2a9efe=_0x2fa4fc;for(let _0x2e8751 of _0x1d4ce8)this[_0x2a9efe(0x1fe)]===_0x2e8751[_0x2a9efe(0x198)]&&(this[_0x2a9efe(0x1fe)]=null,this[_0x2a9efe(0x16f)]=void 0x0,this[_0x2a9efe(0x28c)]=null,this[_0x2a9efe(0xb2)]=null,this[_0x2a9efe(0x288)]());}));}};Ji=q([K(0x1,_0x4ed84c),K(0x2,_0x376ec2(_0x3e6ec4)),K(0x3,_0x5d4fd5)],Ji);let X=class extends _0x143425{constructor(_0x50fcf2,_0x1e56de){const _0xe5532b=_0x43e8a4;super(),this['_permissionService']=_0x50fcf2,this[_0xe5532b(0xf6)]=_0x1e56de,J(this,_0xe5532b(0x281),new _0xe789cb(null)),J(this,_0xe5532b(0x80),this[_0xe5532b(0x281)][_0xe5532b(0x15c)]()),J(this,_0xe5532b(0x8a),new _0xe789cb(!0x1)),J(this,_0xe5532b(0x159),this[_0xe5532b(0x8a)][_0xe5532b(0x15c)]()),J(this,'_completionFrame',void 0x0),this[_0xe5532b(0xb3)](this[_0xe5532b(0x218)][_0xe5532b(0x10a)][_0xe5532b(0x120)](()=>{const _0x31dc6a=_0xe5532b;let _0x545729=this[_0x31dc6a(0x1a2)]();_0x545729!=null&&_0x545729[_0x31dc6a(0x1b4)]&&!this[_0x31dc6a(0x219)](_0x545729)&&this[_0x31dc6a(0x15a)](null);}));}[_0x43e8a4(0xb0)](){const _0x54ac15=_0x43e8a4;this['_clearCompletionFrame'](),this[_0x54ac15(0x281)][_0x54ac15(0xbb)](null),this[_0x54ac15(0x281)][_0x54ac15(0x1c1)](),this[_0x54ac15(0x8a)][_0x54ac15(0xbb)](!0x1),this[_0x54ac15(0x8a)][_0x54ac15(0x1c1)](),super[_0x54ac15(0xb0)]();}[_0x43e8a4(0x15a)](_0x5db0ef){const _0x1585fe=_0x43e8a4;(_0x5db0ef==null||!_0x5db0ef['visible']||this['_canEdit'](_0x5db0ef))&&(this[_0x1585fe(0x82)](),this[_0x1585fe(0x281)][_0x1585fe(0xbb)](_0x5db0ef),(_0x5db0ef==null||_0x5db0ef[_0x1585fe(0x1b4)]&&this[_0x1585fe(0x8a)][_0x1585fe(0xd4)]())&&this['_onSavingEditorData$']['next'](!0x1));}[_0x43e8a4(0xa7)](_0x2973ac){const _0x274769=_0x43e8a4;this['_onSavingEditorData$'][_0x274769(0xbb)](_0x2973ac);}['getEditing'](){return this['_editingParams$']['getValue']();}[_0x43e8a4(0x219)](_0x2d1f61){const _0x25c08b=_0x43e8a4;let _0x41acfc=this[_0x25c08b(0xf6)][_0x25c08b(0x254)](_0x2d1f61[_0x25c08b(0xa2)],_0x37d2f3[_0x25c08b(0x10d)]);if(!_0x41acfc)return!0x0;let _0x25149e=_0x34c0dc(_0x41acfc,_0x2d1f61[_0x25c08b(0x1a5)]);return _0xaad49(this['_permissionService'],_0x2d1f61['unitId'],[..._0x1ed368(_0x41acfc,_0x25149e,_0x25c08b(0x292),_0x2d1f61[_0x25c08b(0x1a5)]),_0x17c75c(_0x25149e,_0x25c08b(0x292),_0x2d1f61['shapeId'])]);}['completeEditing'](_0x40e332){const _0x4fb66e=_0x43e8a4;let _0x1f4e90=this[_0x4fb66e(0x1a2)]();_0x1f4e90&&this[_0x4fb66e(0x25e)]===void 0x0&&(this[_0x4fb66e(0xa7)](!0x0),this[_0x4fb66e(0x25e)]=requestAnimationFrame(()=>{const _0x3b8b64=_0x4fb66e;this[_0x3b8b64(0x25e)]=void 0x0,this[_0x3b8b64(0x1a2)]()===_0x1f4e90&&this[_0x3b8b64(0x15a)](null);}));}[_0x43e8a4(0x82)](){const _0x226642=_0x43e8a4;this[_0x226642(0x25e)]!==void 0x0&&(cancelAnimationFrame(this[_0x226642(0x25e)]),this['_completionFrame']=void 0x0);}[_0x43e8a4(0x8b)](){const _0x5dc6d5=_0x43e8a4;this[_0x5dc6d5(0x1a2)]()&&this[_0x5dc6d5(0x15a)](null);}};X=q([K(0x0,_0x1b33f3),K(0x1,_0x58ad01)],X);function Yi(_0x3f66b3){const _0x7f9fbe=_0x43e8a4;return _0x3f66b3['behindText']===!0x0||_0x3f66b3['behindText']===_0x2eeb60[_0x7f9fbe(0x28f)]||_0x3f66b3[_0x7f9fbe(0x206)]===_0x5e65d5['WRAP_NONE']&&_0x3f66b3[_0x7f9fbe(0x7f)]===_0x2eeb60[_0x7f9fbe(0x28f)]?_0x4df301-0x1:_0x19be61;}let Z=class extends _0x143425{constructor(_0x1923d4,_0x51911b,_0xa97061,_0x53d162,_0x30341a,_0x5a6cc0,_0x233e7d){const _0x1aab36=_0x43e8a4;super(),this['_drawingManagerService']=_0x1923d4,this[_0x1aab36(0x17f)]=_0x51911b,this[_0x1aab36(0x267)]=_0xa97061,this[_0x1aab36(0x2c1)]=_0x53d162,this['_urlImageService']=_0x30341a,this[_0x1aab36(0x72)]=_0x5a6cc0,this['_shapeFormulaService']=_0x233e7d,J(this,_0x1aab36(0x77),new Map()),this['disposeWithMe'](this[_0x1aab36(0x2a8)][_0x1aab36(0x26e)][_0x1aab36(0x120)](_0x11339f=>{const _0x473a72=_0x1aab36;var _0x4a7416;(_0x4a7416=this['_formulaShapes'][_0x473a72(0x7a)](this[_0x473a72(0x19b)](_0x11339f[_0x473a72(0xa2)],_0x11339f[_0x473a72(0x2d2)],_0x11339f['shapeId'])))==null||_0x4a7416['forEach'](_0xc31a67=>_0xc31a67[_0x473a72(0xc4)](_0x11339f[_0x473a72(0x1a3)],_0x11339f[_0x473a72(0x2af)]));})),this['disposeWithMe'](this['_drawingManagerService'][_0x1aab36(0xa4)][_0x1aab36(0x120)](_0x37924d=>{_0x37924d['forEach'](_0x33126f=>{const _0x492bae=_0xe027;this['_shapeFormulaService']['unregister']({'unitId':_0x33126f[_0x492bae(0xa2)],'subUnitId':_0x33126f[_0x492bae(0x2d2)],'shapeId':_0x33126f[_0x492bae(0x198)]}),this['_formulaShapes']['delete'](this['_formulaKey'](_0x33126f[_0x492bae(0xa2)],_0x33126f[_0x492bae(0x2d2)],_0x33126f['drawingId']));});}));}[_0x43e8a4(0xa6)](_0x22e251,_0xac98d5){const _0x4b3537=_0x43e8a4;let {transform:_0x3b6196,drawingType:_0x8a0778,srcRect:_0x47b1fe,prstGeom:_0x531408,groupId:_0x158756,unitId:_0x5063b2,subUnitId:_0x5140f6,drawingId:_0x396d2d,isMultiTransform:_0x4c29df,transforms:_0x344aee,hidden:_0x5a94bc,selectable:_0xb2fa72}=_0x22e251;if(_0x8a0778!==_0x1652cd[_0x4b3537(0x156)]||!this[_0x4b3537(0x282)][_0x4b3537(0x270)]()||_0x3b6196==null)return;let _0x1f0008=this[_0x4b3537(0x282)]['getDrawingEditable'](),_0x46b18b=_0x4c29df&&_0x344aee?_0x344aee:[_0x3b6196],_0xb3e4aa=[];for(let [_0xe8621c,_0x4bbfce]of _0x46b18b[_0x4b3537(0xe1)]()){let {left:_0x3563d2,top:_0x53307b,width:_0x2db7bf,height:_0x59577f,angle:_0x21d48a,flipX:_0x17e465,flipY:_0x227ac4,skewX:_0x37faf9,skewY:_0x3a2df1}=_0x4bbfce,_0x3fda6e=_0x33c05c({'unitId':_0x5063b2,'subUnitId':_0x5140f6,'drawingId':_0x396d2d},_0x4c29df?_0xe8621c:void 0x0),_0x3536f8=_0xac98d5[_0x4b3537(0x17b)](_0x3fda6e);if(_0x3536f8!=null){let _0x1a576d={'unitId':_0x5063b2,'subUnitId':_0x5140f6,'shapeId':_0x396d2d};_0x3536f8 instanceof Y&&this[_0x4b3537(0x169)](_0x3536f8,_0x1a576d),_0x3536f8['transformByState']({'left':_0x3563d2,'top':_0x53307b,'width':_0x2db7bf,'height':_0x59577f,'angle':_0x21d48a,'flipX':_0x17e465,'flipY':_0x227ac4,'skewX':_0x37faf9,'skewY':_0x3a2df1});continue;}let _0x6993e5=this[_0x4b3537(0x282)][_0x4b3537(0x1e5)](_0x5063b2,_0x5140f6),_0x5b7ca3=_0x6993e5['indexOf'](_0x396d2d);if(_0xac98d5[_0x4b3537(0x17b)](_0x3fda6e)||!this[_0x4b3537(0x282)][_0x4b3537(0x270)]())continue;let _0xa3e0e2=this['_docsShapeService'][_0x4b3537(0x100)](_0x5063b2,_0x5140f6,_0x396d2d);if(!_0xa3e0e2)continue;let _0x243f71=_0x3a8d31(_0xa3e0e2[_0x4b3537(0x2d1)]())?{..._0x3257bd,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x3257bd,_0x3a6e88=_0xa3e0e2[_0x4b3537(0x299)]()[_0x4b3537(0x19c)],_0x57fe5c={'unitId':_0x5063b2,'subUnitId':_0x5140f6,'shapeId':_0x396d2d};_0x3a6e88&&this[_0x4b3537(0x2a8)]['register'](_0x57fe5c,_0x3a6e88);let _0x5383c7=new Y(_0x3fda6e,{..._0x4bbfce,'zIndex':_0x5b7ca3===-0x1?_0x6993e5[_0x4b3537(0x1ee)]-0x1:_0x5b7ca3,'shapeModel':_0xa3e0e2,'localeService':this[_0x4b3537(0x267)],'shapeId':_0x396d2d,'unitId':_0x5063b2,'subUnitId':_0x5140f6,'visible':_0x5a94bc!==!0x0,'evented':_0xb2fa72!==!0x1,'formulaPresentation':_0x3a6e88?this[_0x4b3537(0x2a8)][_0x4b3537(0x181)](_0x57fe5c):void 0x0,'animateFormulaPresentation':(_0x3a6e88==null?void 0x0:_0x3a6e88[_0x4b3537(0x2af)])!==!0x1,'transformerConfig':_0x243f71});if(_0x3a6e88){let _0x9090ca=this[_0x4b3537(0x19b)](_0x5063b2,_0x5140f6,_0x396d2d),_0x10b547=this[_0x4b3537(0x77)][_0x4b3537(0x7a)](_0x9090ca)??new Set();_0x10b547[_0x4b3537(0x106)](_0x5383c7),this['_formulaShapes'][_0x4b3537(0x290)](_0x9090ca,_0x10b547);}this['disposeWithMe'](_0x44b80c(_0x5383c7['onDblclick$']['subscribeEvent']((_0x588669,_0x113e0b)=>{const _0x242f92=_0x4b3537;_0xa3e0e2[_0x242f92(0x2aa)]()||_0x3a6e88||(this[_0x242f92(0x72)][_0x242f92(0x15a)]({'visible':!0x0,'unitId':_0x5063b2,'subUnitId':_0x5140f6,'shapeId':_0x396d2d,'shapeKey':_0x5383c7[_0x242f92(0xef)]}),_0x113e0b[_0x242f92(0x1ea)]());}))),_0xac98d5[_0x4b3537(0x157)](_0x5383c7,Yi(_0x22e251)),_0x1f0008&&_0xac98d5[_0x4b3537(0xfe)](_0x5383c7),_0x158756&&_0x54a7ec({'drawingId':_0x158756,'unitId':_0x5063b2,'subUnitId':_0x5140f6},_0x5383c7,_0xac98d5,this[_0x4b3537(0x282)],_0x4c29df?_0xe8621c:void 0x0),_0x531408!=null&&_0x5383c7[_0x4b3537(0x1ef)](_0x531408),_0x47b1fe!=null&&_0x5383c7[_0x4b3537(0x1d7)](_0x47b1fe),this[_0x4b3537(0x215)](_0x5383c7,_0xa3e0e2[_0x4b3537(0x299)]()),_0xb3e4aa[_0x4b3537(0x241)](_0x5383c7);}return _0xb3e4aa;}[_0x43e8a4(0x19b)](_0x55a267,_0x1de76c,_0x5f56a5){return _0x55a267+'\x00'+_0x1de76c+'\x00'+_0x5f56a5;}[_0x43e8a4(0x169)](_0x53007b,_0x5db5c5){const _0x22462d=_0x43e8a4;let _0x332cab=this[_0x22462d(0x17f)][_0x22462d(0x100)](_0x5db5c5[_0x22462d(0xa2)],_0x5db5c5[_0x22462d(0x2d2)],_0x5db5c5['shapeId']),_0x497bec=_0x332cab==null?void 0x0:_0x332cab[_0x22462d(0x299)]()['formulaBinding'],_0x3ce472=this[_0x22462d(0x19b)](_0x5db5c5[_0x22462d(0xa2)],_0x5db5c5[_0x22462d(0x2d2)],_0x5db5c5[_0x22462d(0x1a5)]);if(_0x497bec){this['_shapeFormulaService'][_0x22462d(0x14c)](_0x5db5c5,_0x497bec);let _0x5aa5dd=this['_formulaShapes'][_0x22462d(0x7a)](_0x3ce472)??new Set();_0x5aa5dd[_0x22462d(0x106)](_0x53007b),this[_0x22462d(0x77)][_0x22462d(0x290)](_0x3ce472,_0x5aa5dd);}else{var _0x293ea3;this[_0x22462d(0x2a8)]['unregister'](_0x5db5c5),(_0x293ea3=this[_0x22462d(0x77)][_0x22462d(0x7a)](_0x3ce472))==null||_0x293ea3[_0x22462d(0x13c)](_0x53007b);}_0x53007b['setFormulaPresentation'](_0x497bec?this[_0x22462d(0x2a8)][_0x22462d(0x181)](_0x5db5c5):void 0x0,(_0x497bec==null?void 0x0:_0x497bec[_0x22462d(0x2af)])!==!0x1);}[_0x43e8a4(0x1af)](_0x3201ff){const _0x387769=_0x43e8a4;let _0x3b3a8d=_0x3201ff[_0x387769(0x19d)][_0x387769(0x299)](),_0x563a14=_0x3b3a8d[_0x387769(0x175)];!_0x563a14||_0x563a14[_0x387769(0x108)]!==_0x5ea484[_0x387769(0x127)]||!_0x563a14[_0x387769(0x1f6)]?_0x3201ff[_0x387769(0x205)](void 0x0):this[_0x387769(0x215)](_0x3201ff,_0x3b3a8d);}[_0x43e8a4(0x215)](_0x423cc4,_0x136275){const _0x2ce3d5=_0x43e8a4;let _0x2b7a0d=_0x136275['fill'];if(!_0x2b7a0d||_0x2b7a0d[_0x2ce3d5(0x108)]!==_0x5ea484[_0x2ce3d5(0x127)]||!_0x2b7a0d['fillImageSource'])return;let _0x3d039f=_0x2b7a0d[_0x2ce3d5(0x1f6)],_0x268e52=_0x2b7a0d['fillImageSourceType']??_0x3423a9[_0x2ce3d5(0x2be)],_0x3e798e=this[_0x2ce3d5(0x2c1)][_0x2ce3d5(0x109)](_0x3d039f,_0x268e52);_0x3e798e?_0x423cc4[_0x2ce3d5(0x205)](_0x3e798e):this[_0x2ce3d5(0x6f)](_0x423cc4,_0x3d039f,_0x268e52);}async['_loadAndSetImage'](_0x43e42c,_0x2bf887,_0x155d6c){const _0x2c7625=_0x43e8a4;let _0x334087;try{if(_0x155d6c===_0x3423a9['UUID'])_0x334087=await this[_0x2c7625(0x2c1)][_0x2c7625(0xa1)](_0x2bf887);else{if(_0x155d6c===_0x3423a9[_0x2c7625(0x2be)])try{_0x334087=await this[_0x2c7625(0x196)][_0x2c7625(0xa1)](_0x2bf887);}catch{_0x334087=_0x2bf887;}else _0x334087=_0x2bf887;}}catch(_0x9ea658){console[_0x2c7625(0xc9)](_0x2c7625(0x2a4),_0x9ea658);return;}let _0x29c2ba=new window[(_0x2c7625(0x236))]();_0x29c2ba[_0x2c7625(0x1d9)]=()=>{const _0x15f66b=_0x2c7625;this[_0x15f66b(0x2c1)][_0x15f66b(0x266)](_0x2bf887,_0x155d6c,_0x29c2ba),_0x43e42c['setFillImage'](_0x29c2ba);},_0x29c2ba[_0x2c7625(0x141)]=()=>{const _0x3f41e1=_0x2c7625;console['error'](_0x3f41e1(0xbc),_0x2bf887);},_0x29c2ba['src']=_0x334087;}};Z=q([K(0x0,_0x4ed84c),K(0x1,_0x376ec2(_0x3e6ec4)),K(0x2,_0x376ec2(_0x474b31)),K(0x3,_0x42c7d6),K(0x4,_0x1d2e00),K(0x5,_0x376ec2(X)),K(0x6,_0x376ec2(_0x1fb743))],Z);let Xi=class extends _0x143425{constructor(_0x516153,_0xa0bddf,_0x1ff762){const _0x355ffd=_0x43e8a4;super(),this[_0x355ffd(0x125)]=_0x516153,this['_drawingManagerService']=_0xa0bddf,this['_shapeRenderController']=_0x1ff762,this[_0x355ffd(0x220)]();}[_0x43e8a4(0x220)](){const _0x42fdd1=_0x43e8a4;this['disposeWithMe'](this['_docPrintInterceptorService']['interceptor']['intercept'](this[_0x42fdd1(0x125)]['interceptor'][_0x42fdd1(0x1b9)]()[_0x42fdd1(0x25f)],{'handler':(_0x3983d4,_0xbd4445,_0x4c4b9e)=>{const _0x59ff4e=_0x42fdd1;var _0x4a18aa;let {unitId:_0x3ac9bd,scene:_0x58f18c,skeleton:_0x2d2e00}=_0xbd4445,{pageIndex:_0xbd78a9}=_0xbd4445,_0x38fdb6=(_0x4a18aa=this[_0x59ff4e(0x282)][_0x59ff4e(0x129)](_0x3ac9bd))==null?void 0x0:_0x4a18aa[_0x3ac9bd],_0x2076ef=Zi(this[_0x59ff4e(0x125)],_0x2d2e00,_0xbd78a9);return _0x38fdb6==null||_0x38fdb6[_0x59ff4e(0x251)][_0x59ff4e(0xd6)](_0x391623=>{const _0x4d7e32=_0x59ff4e;if(_0x2076ef&&!_0x2076ef[_0x4d7e32(0x1da)](_0x391623))return;let _0x35414a=_0x38fdb6[_0x4d7e32(0x1c0)][_0x391623];_0x35414a[_0x4d7e32(0x119)]===_0x1652cd[_0x4d7e32(0x156)]&&!_0x35414a[_0x4d7e32(0x9c)]&&this['_shapeRenderController'][_0x4d7e32(0xa6)](_0x35414a,_0x58f18c);}),_0x4c4b9e(_0x3983d4);}}));}};Xi=q([K(0x0,_0x376ec2(_0x3197e2)),K(0x1,_0x4ed84c),K(0x2,_0x376ec2(Z))],Xi);function Zi(_0x21f2f2,_0x34a9d8,_0x2cc0e6){const _0x2822af=_0x43e8a4;var _0x59986c,_0xb48571;let _0x5f49d0=_0x21f2f2;if(_0x5f49d0[_0x2822af(0x148)])return _0x5f49d0[_0x2822af(0x148)](_0x34a9d8,_0x2cc0e6);let _0x2f90dc=_0x34a9d8[_0x2822af(0x238)]();if(!_0x2f90dc||_0x2f90dc['pages'][_0x2822af(0x1ee)]<=0x1||_0x2cc0e6==null)return null;let _0x2f2b48=new Set(),_0x1b89d2=_0x2f90dc[_0x2822af(0xbf)][_0x2cc0e6];if(!_0x1b89d2)return _0x2f2b48;Qi(_0x1b89d2,_0x2f2b48);let _0x319ac1=(_0x59986c=_0x2f90dc[_0x2822af(0x208)][_0x2822af(0x7a)](_0x1b89d2[_0x2822af(0x2b1)]))==null?void 0x0:_0x59986c['get'](_0x1b89d2[_0x2822af(0x115)]??_0x1b89d2['pageWidth']),_0x291b36=(_0xb48571=_0x2f90dc[_0x2822af(0x1e7)][_0x2822af(0x7a)](_0x1b89d2['footerId']))==null?void 0x0:_0xb48571[_0x2822af(0x7a)](_0x1b89d2['footerLayoutKey']??_0x1b89d2[_0x2822af(0xf4)]);return _0x319ac1&&Qi(_0x319ac1,_0x2f2b48),_0x291b36&&Qi(_0x291b36,_0x2f2b48),_0x2f2b48;}function Qi(_0x4b6358,_0x5c7f8d){const _0x2d054e=_0x43e8a4;for(let _0x2933fd of _0x4b6358[_0x2d054e(0x275)]['keys']())_0x5c7f8d[_0x2d054e(0x106)](_0x2933fd);for(let _0x2f2027 of _0x4b6358[_0x2d054e(0x1e9)][_0x2d054e(0x22d)]())for(let _0x204e05 of _0x2f2027['rows'])for(let _0xca97a0 of _0x204e05['cells'])Qi(_0xca97a0,_0x5c7f8d);}function $i(_0x53954d){return _0x5619d4(Ur,{..._0x53954d,'PickerComponent':_0x8f16d9});}function ea(){const _0x41b4e6=_0x43e8a4;let _0xa64c1b=_0x2f1968(_0x474b31),_0x424449=Br(),[_0x529dfc,_0x4881f2]=_0x1f778c(!0x1);return _0x48a5b6('div',{'className':_0x41b4e6(0x27c),'children':[_0x5619d4(_0x478cdc,{'title':_0xa64c1b['t'](_0x41b4e6(0x214)),'aria-expanded':_0x529dfc,'variant':'subtle','trailing':_0x5619d4(_0x529dfc?_0x383f97:_0x5df7dc,{}),'onClick':()=>_0x4881f2(_0x3a8fa1=>!_0x3a8fa1)}),_0x529dfc&&_0x5619d4(_0x8f16d9,{'excludeGroups':[_0x29b383[_0x41b4e6(0x8c)]],'onShapeClick':_0x1cbe0e=>{_0x424449(_0x1cbe0e),_0x4881f2(!0x1);}})]});}function ta(_0x70166e){const _0x30fae9=_0x43e8a4;return _0x70166e[_0x30fae9(0x2a9)]()||void 0x0;}function na(_0x37ca02,_0x214ae8,_0x4d91c5){const _0x24084a=_0x43e8a4;var _0x20cf08,_0x296dcc;return((_0x20cf08=_0x37ca02['name'])==null?void 0x0:_0x20cf08[_0x24084a(0x2a9)]())||((_0x296dcc=_0x37ca02[_0x24084a(0x147)])==null?void 0x0:_0x296dcc[_0x24084a(0x2a9)]())||_0x4d91c5['t']('drawing-ui.objectListPanel.typeNames.'+_0x36d1e2(_0x37ca02[_0x24084a(0x119)]))+'\x20'+(_0x214ae8+0x1);}function ra({PanelComponent:_0xebfc1b=_0xb10e3b}){const _0x329c6f=_0x43e8a4;let _0x30d714=_0x2f1968(_0x474b31),_0x176a2a={'title':_0x30d714['t'](_0x329c6f(0x16d)),'empty':_0x30d714['t'](_0x329c6f(0x2b9)),'showAll':_0x30d714['t'](_0x329c6f(0x222)),'hideAll':_0x30d714['t'](_0x329c6f(0x173)),'lockAll':_0x30d714['t'](_0x329c6f(0x162)),'unlockAll':_0x30d714['t'](_0x329c6f(0x1d2)),'moveForward':_0x30d714['t']('drawing-ui.objectListPanel.moveForward'),'moveBackward':_0x30d714['t'](_0x329c6f(0x1ca)),'close':_0x30d714['t'](_0x329c6f(0x87)),'show':_0x30d714['t']('drawing-ui.objectListPanel.show'),'hide':_0x30d714['t'](_0x329c6f(0x153)),'lock':_0x30d714['t'](_0x329c6f(0x104)),'unlock':_0x30d714['t'](_0x329c6f(0x23a)),'lockHint':_0x30d714['t']('drawing-ui.objectListPanel.lockHint'),'unlockHint':_0x30d714['t'](_0x329c6f(0x14f)),'name':_0x30d714['t'](_0x329c6f(0x128)),'nameInput':_0x30d714['t'](_0x329c6f(0x17c)),'description':_0x30d714['t'](_0x329c6f(0x1be)),'descriptionPlaceholder':_0x30d714['t'](_0x329c6f(0x201)),'details':_0x30d714['t']('drawing-ui.objectListPanel.details'),'noSelection':_0x30d714['t']('drawing-ui.objectListPanel.noSelection'),'locate':_0x30d714['t'](_0x329c6f(0x252)),'expand':_0x30d714['t'](_0x329c6f(0x24b)),'collapse':_0x30d714['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0x30d714['t'](_0x329c6f(0x1a7)),'search':_0x30d714['t'](_0x329c6f(0x294)),'filterAll':_0x30d714['t'](_0x329c6f(0x13b)),'filterHidden':_0x30d714['t']('drawing-ui.objectListPanel.filterHidden'),'filterLocked':_0x30d714['t']('drawing-ui.objectListPanel.filterLocked'),'sectionCanvas':_0x30d714['t']('drawing-ui.objectListPanel.sectionCanvas'),'sectionFloating':_0x30d714['t']('drawing-ui.objectListPanel.sectionFloating')},_0x169b6e=_0x2f1968(_0x5d4fd5),_0x7f0384=_0x2f1968(_0x58ad01),_0x5e998d=_0x2f1968(_0x3b1588),_0x5c0dbf=_0x2f1968(_0x4ed84c),_0x4c6b2b=_0x2f1968(_0x20175c),[,_0x2177ae]=_0x597582(_0x168ad8=>_0x168ad8+0x1,0x0),_0x3572fa=_0x7f0384['getCurrentUnitOfType'](_0x37d2f3[_0x329c6f(0x10d)]),_0x1a9763=(_0x3572fa==null?void 0x0:_0x3572fa[_0x329c6f(0xe2)]())??'',_0x24a4da=_0x1a9763,_0x2ff29c=_0x24248b(()=>_0x5c0dbf[_0x329c6f(0x144)],_0x5c0dbf['getFocusDrawings'](),!0x1,[_0x5c0dbf]);_0x5b0cfd(()=>{const _0x4224a3=_0x329c6f;let _0xfa0943=_0x169b6e[_0x4224a3(0x1b3)](()=>_0x2177ae());return()=>_0xfa0943[_0x4224a3(0xb0)]();},[_0x169b6e]);let _0x1a4820=_0x1a9763?_0x5e998d[_0x329c6f(0xaa)](_0x1a9763,_0x24a4da):{},_0x450080=(_0x1a9763?_0x5e998d[_0x329c6f(0x1e5)](_0x1a9763,_0x24a4da):[])[_0x329c6f(0x1e4)](_0x3709f0=>_0x1a4820[_0x3709f0])[_0x329c6f(0x121)](_0x35f479=>!!_0x35f479)['reverse'](),_0x350258=_0x450080[_0x329c6f(0x6b)]((_0x49faae,_0x88a92b)=>(_0x49faae[_0x3f7cdb(_0x88a92b[_0x329c6f(0x119)])]+=0x1,_0x49faae),{'canvas':0x0,'floating':0x0}),_0x501281={'canvas':0x0,'floating':0x0},_0x336369=_0x450080[_0x329c6f(0x1e4)]((_0x5ac944,_0x52220b)=>{const _0x36619d=_0x329c6f;let _0x1242a2=_0x3f7cdb(_0x5ac944[_0x36619d(0x119)]),_0x5284cf=_0x1242a2===_0x1722f4,_0x284ba6=_0x501281[_0x1242a2]++;return{'id':_0x5ac944['drawingId'],'name':na(_0x5ac944,_0x52220b,_0x30d714),'description':_0x5ac944['description'],'visible':_0x5ac944['hidden']!==!0x0,'selectable':_0x5ac944[_0x36619d(0x295)]!==!0x1,'sectionId':_0x1242a2,'sectionTitle':_0x5284cf?_0x176a2a[_0x36619d(0x167)]:_0x176a2a[_0x36619d(0x101)],'capabilities':_0x5284cf?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x5284cf&&_0x284ba6>0x0,'canMoveBackward':!_0x5284cf&&_0x284ba6<_0x350258['canvas']-0x1,'canReorder':!_0x5284cf};}),_0x13b8f6=_0x39da17(()=>(_0x2ff29c??[])['filter'](_0x43ea5f=>_0x43ea5f[_0x329c6f(0xa2)]===_0x1a9763&&_0x43ea5f['subUnitId']===_0x24a4da)[_0x329c6f(0x1e4)](_0xf09900=>_0xf09900[_0x329c6f(0x198)]),[_0x2ff29c,_0x24a4da,_0x1a9763]),_0x1fa029=_0x13b8f6[_0x13b8f6[_0x329c6f(0x1ee)]-0x1]??null,_0x3c2577=_0x381a15=>_0x5e998d[_0x329c6f(0xfd)]({'unitId':_0x1a9763,'subUnitId':_0x24a4da,'drawingId':_0x381a15})??null,_0x6ce5dd=async _0xe908c4=>{const _0x26da4e=_0x329c6f;_0x1a9763&&_0xe908c4['length']&&await _0x169b6e[_0x26da4e(0x2cf)](_0x4054f5['id'],{'unitId':_0x1a9763,'patches':_0xe908c4});},_0x4a05fc=(_0x2514b0,_0x2359f2)=>{const _0x3fb134=_0x329c6f;if(!_0x1a9763)return;let _0x4a564b=_0x2359f2?_0x13b8f6['includes'](_0x2514b0)?_0x13b8f6['filter'](_0x333667=>_0x333667!==_0x2514b0):[..._0x13b8f6,_0x2514b0]:[_0x2514b0];_0x169b6e[_0x3fb134(0x27a)](_0x342bee['id'],_0x4a564b[_0x3fb134(0x1e4)](_0x3e0f74=>({'unitId':_0x1a9763,'subUnitId':_0x24a4da,'drawingId':_0x3e0f74})));let _0x2a2a10=_0x4a564b[_0x4a564b['length']-0x1];_0x2a2a10?_0x2aeb4f(_0x4c6b2b,{'unitId':_0x1a9763,'subUnitId':_0x24a4da,'drawingId':_0x2a2a10}):_0x482003(_0x4c6b2b,_0x1a9763);},_0x2f9b39=async(_0x5c6028,_0x19f5e9)=>{const _0x1e89b1=_0x329c6f;await _0x6ce5dd(_0x5c6028['map'](_0x22aa54=>_0x3c2577(_0x22aa54))[_0x1e89b1(0x121)](_0x1c6309=>!!_0x1c6309)['filter'](_0x58b48c=>_0x58b48c[_0x1e89b1(0x9c)]!==!0x0!==_0x19f5e9)[_0x1e89b1(0x1e4)](_0x4e4741=>({'drawingId':_0x4e4741['drawingId'],'hidden':!_0x19f5e9})));},_0x1b7b41=async(_0x1380ed,_0x10842b)=>{const _0x4c54e6=_0x329c6f;await _0x6ce5dd(_0x1380ed[_0x4c54e6(0x1e4)](_0x16eca2=>_0x3c2577(_0x16eca2))['filter'](_0x281814=>!!_0x281814)[_0x4c54e6(0x121)](_0x88aa4f=>_0x88aa4f['selectable']!==!0x1!==_0x10842b)[_0x4c54e6(0x1e4)](_0x2bd54e=>({'drawingId':_0x2bd54e['drawingId'],'selectable':_0x10842b})));},_0x8dc47d=_0xda5315=>{const _0xf32a83=_0x329c6f;let _0x31e317=_0x3c2577(_0xda5315);if(_0x31e317)return _0x1b7b41([_0xda5315],_0x31e317[_0xf32a83(0x295)]===!0x1);},_0x3e2c52=async(_0x19866e,_0x426ac6)=>{const _0x3e9502=_0x329c6f;let _0x3819ba=_0x3c2577(_0x19866e),_0x24ff3f=ta(_0x426ac6);!_0x3819ba||(_0x3819ba['name']??void 0x0)===_0x24ff3f&&(_0x3819ba[_0x3e9502(0x147)]||void 0x0)===_0x24ff3f||await _0x6ce5dd([{'drawingId':_0x19866e,'name':_0x24ff3f,'title':_0x24ff3f}]);},_0x3acf37=async(_0x1dbb7d,_0x26a0fe)=>{const _0x48e74d=_0x329c6f;let _0x372e0d=_0x3c2577(_0x1dbb7d),_0xa4e0a8=ta(_0x26a0fe);_0x372e0d&&(_0x372e0d[_0x48e74d(0x224)]??void 0x0)!==_0xa4e0a8&&await _0x6ce5dd([{'drawingId':_0x1dbb7d,'description':_0xa4e0a8}]);},_0x302ebf=async(_0x4b2897,_0x5ed68b)=>{const _0xde65ff=_0x329c6f;_0x1a9763&&await _0x169b6e[_0xde65ff(0x2cf)](_0x3c4545['id'],{'unitId':_0x1a9763,'subUnitId':_0x24a4da,'drawingIds':[_0x4b2897],'arrangeType':_0x5ed68b});};return _0x1a9763?_0x5619d4(_0xebfc1b,{'labels':_0x176a2a,'renderPermissionAction':_0x2f18d4=>_0x3572fa?_0x5619d4(_0x6fcfc4,{'target':{'unitId':_0x1a9763,'objectId':_0x17c75c(_0x34c0dc(_0x3572fa,_0x2f18d4['id']),_0x329c6f(0x292),_0x2f18d4['id']),'objectType':_0x3314c2[_0x329c6f(0x1a4)]},'name':_0x2f18d4[_0x329c6f(0xba)],'commandId':_0x2502f6['id'],'exists':()=>!!_0x3c2577(_0x2f18d4['id'])},_0x1a9763+'/'+_0x2f18d4['id']):null,'items':_0x336369,'selectedIds':_0x13b8f6,'focusedId':_0x1fa029,'showHeader':!0x1,'onSelect':_0x4a05fc,'onSetVisible':_0x2f9b39,'onSetSelectable':_0x1b7b41,'onCommitName':_0x3e2c52,'onCommitDescription':_0x3acf37,'onMoveForward':async _0x593c93=>_0x302ebf(_0x593c93,_0x1f6748[_0x329c6f(0x22f)]),'onMoveBackward':async _0x5eaf31=>_0x302ebf(_0x5eaf31,_0x1f6748[_0x329c6f(0x1ff)]),'onToggleSelectable':_0x8dc47d}):_0x5619d4(_0x329c6f(0x1de),{'className':_0x329c6f(0x110),'children':_0x176a2a[_0x329c6f(0x147)]});}function ia(){return _0x5619d4(ra,{'PanelComponent':_0x2b8d3a});}let aa=class{constructor(_0x11b6f1){const _0x579ea2=_0x43e8a4;this[_0x579ea2(0xa3)]=_0x11b6f1;}[_0x43e8a4(0x1cf)](_0x97a2aa,_0x1cb265){const _0xb86dfc=_0x43e8a4;let _0x592ed7=this[_0xb86dfc(0xa3)][_0xb86dfc(0x2b0)](_0x97a2aa[_0xb86dfc(0xa2)]),_0x4c4fa4=_0x592ed7==null?void 0x0:_0x592ed7[_0xb86dfc(0x71)];if(!_0x4c4fa4)return;let _0x19412f=_0x33c05c(_0x97a2aa),_0x39d001=_0x4c4fa4[_0xb86dfc(0x17b)](_0x19412f);_0x39d001==null||_0x39d001['setFillImage'](_0x1cb265);}};aa=q([K(0x0,_0x20175c)],aa);function oa(){const _0x49be00=_0x43e8a4;let _0x2442d4=_0x2f1968(_0x4ed84c),_0xc183a3=_0x24248b(()=>_0x2442d4[_0x49be00(0x144)],_0x2442d4[_0x49be00(0x2bf)](),!0x1,[_0x2442d4]);return _0xc183a3[_0x49be00(0x1ee)]===0x0?null:_0x5619d4('div',{'children':_0x48a5b6('div',{'className':_0x49be00(0xd5),'children':[_0x5619d4(_0x2438ba,{'drawings':_0xc183a3,'hasCropper':!0x1}),_0x5619d4(_0x7f317e,{'drawings':_0xc183a3}),_0x5619d4(_0x328b21,{'drawings':_0xc183a3})]})});}function sa(_0x294378){let {unitId:_0x585619,subUnitId:_0x2a364b,shapeId:_0xe6a38e,PositionComponent:_0x312f13=oa}=_0x294378,_0x253fd2=_0x2f1968(_0x5d4fd5),_0x3831aa=_0x2f1968(aa);return _0x5619d4(_0x4daa70,{..._0x294378,'positionEditor':_0x5619d4(_0x312f13,{}),'onUpdateShapeData':(_0x2bfdb1,_0x3a0300)=>{Yr(_0x253fd2,_0x585619,_0x2a364b,_0xe6a38e,_0x2bfdb1,_0x3a0300);},'onUpdateLineShapeData':(_0x1a85ee,_0x387f37)=>{Xr(_0x253fd2,_0x585619,_0x2a364b,_0xe6a38e,_0x1a85ee,_0x387f37);},'onUpdateShapeFillImage':_0x4654c8=>{const _0x40b4ee=_0xe027;_0x3831aa[_0x40b4ee(0x1cf)]({'unitId':_0x585619,'subUnitId':_0x2a364b,'drawingId':_0xe6a38e},_0x4654c8);}});}function ca(){const _0x5b8a6f=_0x43e8a4;let _0x2c7e75=_0x2f1968(_0x4ed84c),_0x12952d=_0x24248b(_0x2c7e75[_0x5b8a6f(0x144)],_0x2c7e75[_0x5b8a6f(0x2bf)]());return _0x12952d[_0x5b8a6f(0x1ee)]===0x0?null:_0x48a5b6(_0x5b8a6f(0x1de),{'className':'univer-grid\x20univer-gap-5\x20univer-p-3','children':[_0x5619d4(_0x2438ba,{'drawings':_0x12952d,'hasCropper':!0x1}),_0x5619d4(_0xa7fe3c,{'drawings':_0x12952d}),_0x5619d4(_0x10704b,{'drawings':_0x12952d})]});}function la(_0x2fdefe){return _0x5619d4(_0x4ab532,{'children':_0x5619d4(sa,{..._0x2fdefe,'PositionComponent':ca})});}function ua({popup:_0x4edaba}){const _0x4bb66f=_0x43e8a4;let _0xeac83b=_0x2f1968(_0x474b31),{shapeType:_0xaa5a22,onText:_0x11bb2b,onStyle:_0x1194c0,onDelete:_0x1bf469}=_0x4edaba[_0x4bb66f(0x26a)],_0xa0503d=[{'key':_0x4bb66f(0x98),'order':0x0,'item':{'id':'text','type':_0x3c5886[_0x4bb66f(0x2ad)],'title':_0xeac83b['t']('docs-shape-ui.mobile.text'),'disabled$':_0x477cfd(_0x3a8d31(_0xaa5a22))}},{'key':'style','order':0x1,'item':{'id':_0x4bb66f(0x68),'type':_0x3c5886[_0x4bb66f(0x2ad)],'title':_0xeac83b['t'](_0x4bb66f(0x22e))}},{'key':_0x4bb66f(0x13c),'order':0x2,'item':{'id':_0x4bb66f(0x13c),'type':_0x3c5886[_0x4bb66f(0x2ad)],'title':_0xeac83b['t'](_0x4bb66f(0x1db))}}];return _0x5619d4(_0xab6cb4,{'schemas':_0xa0503d,'presentation':_0x4bb66f(0x8d),'onOptionSelect':async({id:_0x201b3d})=>{const _0x185810=_0x4bb66f;_0x201b3d==='text'?await _0x11bb2b():_0x201b3d===_0x185810(0x68)?await _0x1194c0():_0x201b3d===_0x185810(0x13c)&&await _0x1bf469();}});}const da=_0x43e8a4(0x185);function fa(_0x1a28c7,_0x448acb){const _0x3b4b9e=_0x43e8a4;var _0x35ad66;let _0x433cd2=_0x1a28c7==null||(_0x35ad66=_0x1a28c7[_0x3b4b9e(0x2b5)]()[_0x3b4b9e(0x1f7)])==null?void 0x0:_0x35ad66[_0x448acb];return _0x433cd2?_0x433cd2[_0x3b4b9e(0x206)]===_0x5e65d5[_0x3b4b9e(0x210)]?_0x433cd2[_0x3b4b9e(0x7f)]===_0x2eeb60['TRUE']?_0x4e8b32[_0x3b4b9e(0x221)]:_0x4e8b32[_0x3b4b9e(0x85)]:_0x433cd2[_0x3b4b9e(0x206)]===_0x5e65d5[_0x3b4b9e(0xbd)]?_0x4e8b32[_0x3b4b9e(0xbd)]:_0x433cd2[_0x3b4b9e(0x206)]===_0x5e65d5['WRAP_TOP_AND_BOTTOM']?_0x4e8b32[_0x3b4b9e(0x154)]:_0x4e8b32[_0x3b4b9e(0x91)]:_0x4e8b32[_0x3b4b9e(0x91)];}function pa(_0x596d23){const _0x30ff32=_0x43e8a4;let _0x2e1432=_0x2f1968(_0x9377b1),_0x566305=_0x24248b(()=>_0x2e1432[_0x30ff32(0x247)],_0x2e1432['getVisible'](),!0x1,[_0x2e1432]),_0x2f6cfa=_0x596d23[_0x30ff32(0x2bb)][_0x30ff32(0x26a)];return _0x566305?_0x5619d4(ma,{..._0x2f6cfa,'canvasElement':_0x596d23[_0x30ff32(0x2bb)][_0x30ff32(0xc1)]}):null;}function ma(_0x4dc6d2){const _0x294e97=_0x43e8a4;let _0xdf95e=_0x2f1968(_0x5d4fd5),_0x35fe32=_0x2f1968(_0x474b31),_0x8f81d6=_0x2f1968(_0x3e6ec4),_0x20b2d6=_0x2f1968(_0x58ad01),{unitId:_0x99de2e,subUnitId:_0x5445e2,drawingId:_0x564fc1,shapeType:_0x493fc7}=_0x4dc6d2,[_0x23b536,_0x63e7db]=_0x1f778c(_0x4dc6d2[_0x294e97(0x240)]),_0x28235a=_0x20b2d6['getUnit'](_0x99de2e,_0x37d2f3[_0x294e97(0x10d)])??void 0x0,[_0x56c47f,_0x41aa13]=_0x1f778c(()=>fa(_0x28235a,_0x564fc1)),_0x45eb85=_0x39da17(()=>_0x11e2fa(_0x23b536),[_0x23b536]),_0x442c39=_0x39da17(()=>_0x46bcad(_0x23b536),[_0x23b536]);_0x5b0cfd(()=>{const _0x24dd93=_0x294e97;let _0x343d38=_0xdf95e[_0x24dd93(0x1b3)](_0x56e95b=>{const _0x5909fa=_0x24dd93;if(_0x56e95b['id']!==_0x4aaefb['id'])return;let _0x5d61e0=_0x8f81d6[_0x5909fa(0x274)](_0x99de2e,_0x5445e2,_0x564fc1);_0x5d61e0&&_0x63e7db(_0x5d61e0);});return()=>_0x343d38[_0x24dd93(0xb0)]();},[_0xdf95e,_0x8f81d6,_0x564fc1,_0x5445e2,_0x99de2e]);let _0x4245d5=_0x321ee2=>{_0x63e7db(_0x5784f3=>({..._0x5784f3,..._0x321ee2}));},_0x3d8f37=_0x4871b4=>{const _0x3d1460=_0x294e97;let _0x55bfad=_0x2fe1a2(_0x23b536,_0x4871b4);Yr(_0xdf95e,_0x99de2e,_0x5445e2,_0x564fc1,{'oldShapeData':{'shapeText':_0x23b536[_0x3d1460(0x1d5)]}},_0x55bfad),_0x4245d5(_0x55bfad);},_0x4f4502=_0x10d626=>{const _0x32cf45=_0x294e97;_0x41aa13(_0x10d626),_0xdf95e[_0x32cf45(0x2cf)](_0x35bcca['id'],{'unitId':_0x99de2e,'subUnitId':_0x5445e2,'drawings':[{'unitId':_0x99de2e,'subUnitId':_0x5445e2,'drawingId':_0x564fc1}],'wrappingStyle':_0x10d626});},_0x41d217=_0x29c39b({'hostType':_0x37d2f3[_0x294e97(0x10d)],'unitId':_0x99de2e,'subUnitId':_0x5445e2,'shapeId':_0x564fc1,'shapeData':_0x23b536,'onUpdateBinding':_0x16cc84=>{const _0x4ae7a5=_0x294e97;let _0x488674={'formulaBinding':_0x16cc84};Yr(_0xdf95e,_0x99de2e,_0x5445e2,_0x564fc1,{'oldShapeData':{'formulaBinding':_0x23b536[_0x4ae7a5(0x19c)]}},_0x488674),_0x4245d5(_0x488674);}}),_0x590685=[{'label':_0x35fe32['t'](_0x294e97(0x76)),'value':_0x4e8b32[_0x294e97(0x91)],'icon':_0x5619d4(_0x1e873d,{})},{'label':_0x35fe32['t'](_0x294e97(0x146)),'value':_0x4e8b32[_0x294e97(0xbd)],'icon':_0x5619d4(_0x1e873d,{})},{'label':_0x35fe32['t']('docs-shape-ui.textWrap.topAndBottom'),'value':_0x4e8b32[_0x294e97(0x154)],'icon':_0x5619d4(_0x1e873d,{})},{'label':_0x35fe32['t'](_0x294e97(0x2c5)),'value':_0x4e8b32[_0x294e97(0x221)],'icon':_0x5619d4(_0x1e873d,{})},{'label':_0x35fe32['t']('docs-shape-ui.textWrap.inFrontText'),'value':_0x4e8b32[_0x294e97(0x85)],'icon':_0x5619d4(_0x1e873d,{})}];return _0x48a5b6(_0xafd52b,{'children':[_0x5619d4(_0x198192,{'canvasElement':_0x4dc6d2['canvasElement'],'shapeData':_0x23b536,'shapeType':_0x493fc7,'textStyle':{'ff':_0x1f925b['shapeText'][_0x294e97(0x25a)],'fs':_0x1f925b['shapeText']['fontSize'],'cl':{'rgb':_0x1f925b[_0x294e97(0x1d5)][_0x294e97(0xe9)]},..._0x45eb85},'textModel':_0x442c39?{'ha':_0x442c39['ha']??_0x19f481['LEFT'],'va':_0x442c39['va']??_0xfc8006['TOP']}:null,'wrappingStyle':_0x56c47f,'wrappingStyleOptions':_0x590685,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x1f925b['fill'],'defaultGradientEndColor':_0x1f925b[_0x294e97(0xe0)],'defaultStrokeColor':_0x1f925b[_0x294e97(0x88)],'extensionGroups':_0x41d217['extensionGroups'],'floatingObjectToolbarPosition':_0x7e4a12[_0x294e97(0x242)],'onUpdateShapeData':(_0x4c31a7,_0xcef183)=>{Yr(_0xdf95e,_0x99de2e,_0x5445e2,_0x564fc1,_0x4c31a7,_0xcef183),_0xcef183&&_0x4245d5(_0xcef183);},'onUpdateText':_0x3d8f37,'onUpdateWrappingStyle':_0x1e4ea0=>_0x4f4502(_0x1e4ea0),'onOpenPanel':()=>{const _0x331574=_0x294e97;_0xdf95e[_0x331574(0x2cf)](G['id'],{'unitId':_0x99de2e,'subUnitId':_0x5445e2,'drawingId':_0x564fc1});},'onDelete':()=>{const _0x500463=_0x294e97;_0xdf95e[_0x500463(0x2cf)](_0x1dc354['id'],{'unitId':_0x99de2e,'drawings':[{'unitId':_0x99de2e,'subUnitId':_0x5445e2,'drawingId':_0x564fc1}]});}}),_0x41d217[_0x294e97(0x200)]]});}function ha({variant:_0x1d1e96,extend:_0x3a0db8,..._0x2fba53}){const _0x4df0b2=_0x43e8a4;let _0x329db8=_0x5619d4(_0x4df0b2(0xce),{'x':'7','y':_0x4df0b2(0x1e6),'width':'6','height':'9','rx':'1','fill':_0x4df0b2(0x21c),'fillOpacity':'0.14','stroke':_0x4df0b2(0x21c),'strokeWidth':_0x4df0b2(0xc5)});return _0x48a5b6(_0x4df0b2(0x12b),{'aria-hidden':_0x4df0b2(0x187),'fill':_0x4df0b2(0x170),'height':'1em','viewBox':'0\x200\x2020\x2020','width':_0x4df0b2(0x22c),..._0x2fba53,'children':[_0x1d1e96===_0x4df0b2(0x12f)&&_0x48a5b6(_0xafd52b,{'children':[_0x5619d4(_0x4df0b2(0x24d),{'d':_0x4df0b2(0x232),'stroke':_0x4df0b2(0x21c),'strokeLinecap':_0x4df0b2(0x113),'strokeWidth':'1.2'}),_0x5619d4(_0x4df0b2(0xce),{'x':'8','y':'7','width':'4','height':'6','rx':_0x4df0b2(0xb8),'fill':_0x4df0b2(0x21c),'fillOpacity':'0.14','stroke':'currentColor','strokeWidth':_0x4df0b2(0xc5)})]}),_0x1d1e96===_0x4df0b2(0x171)&&_0x48a5b6(_0xafd52b,{'children':[_0x5619d4(_0x4df0b2(0x24d),{'d':_0x4df0b2(0x1f0),'stroke':_0x4df0b2(0x21c),'strokeLinecap':_0x4df0b2(0x113),'strokeWidth':_0x4df0b2(0xc5)}),_0x329db8]}),_0x1d1e96===_0x4df0b2(0x18c)&&_0x48a5b6(_0xafd52b,{'children':[_0x5619d4(_0x4df0b2(0x24d),{'d':_0x4df0b2(0x2c9),'stroke':'currentColor','strokeLinecap':_0x4df0b2(0x113),'strokeWidth':'1.2'}),_0x329db8]}),_0x1d1e96===_0x4df0b2(0x1fd)&&_0x48a5b6(_0xafd52b,{'children':[_0x329db8,_0x5619d4(_0x4df0b2(0x24d),{'d':_0x4df0b2(0xc2),'stroke':'currentColor','strokeLinecap':_0x4df0b2(0x113),'strokeWidth':'1.2'})]}),_0x1d1e96===_0x4df0b2(0xbe)&&_0x48a5b6(_0xafd52b,{'children':[_0x5619d4(_0x4df0b2(0x24d),{'d':_0x4df0b2(0xc2),'stroke':_0x4df0b2(0x21c),'strokeLinecap':_0x4df0b2(0x113),'strokeWidth':_0x4df0b2(0xc5)}),_0x5619d4(_0x4df0b2(0xce),{'x':'7','y':_0x4df0b2(0x1e6),'width':'6','height':'9','rx':'1','fill':_0x4df0b2(0x21c)})]})]});}const ga=_0x3f8b0c=>_0x313fce=>_0x5619d4(ha,{..._0x313fce,'variant':_0x3f8b0c}),_a={'DocsShapeWrapInlineIcon':ga('inline'),'DocsShapeWrapSquareIcon':ga(_0x43e8a4(0x171)),'DocsShapeWrapTopBottomIcon':ga(_0x43e8a4(0x18c)),'DocsShapeWrapBehindTextIcon':ga(_0x43e8a4(0x1fd)),'DocsShapeWrapInFrontOfTextIcon':ga(_0x43e8a4(0xbe))},va=_0x5889ae(()=>{const _0xc9151f=_0x43e8a4;let _0xa9a5b4=_0x2f1968(X),_0x445617=_0x2f1968(_0x3e6ec4),_0x571d94=_0x2f1968(_0x4ed84c),_0x378625=_0x2f1968(_0x5d4fd5),_0x2a7bcb=_0x39da17(()=>({'getShapeModel':(_0x10f872,_0x3ecfa0,_0x4567a8)=>_0x445617[_0xc9151f(0x100)](_0x10f872,_0x3ecfa0,_0x4567a8),'getShapeData':(_0x345057,_0x484de0,_0x41d38c)=>_0x445617['getShapeDataById'](_0x345057,_0x484de0,_0x41d38c),'getDrawingTransform':(_0x34e742,_0x51d767,_0x5e68f2)=>{const _0x569418=_0xc9151f;let _0xa1e40b=_0x571d94['getDrawingByParam']({'unitId':_0x34e742,'subUnitId':_0x51d767,'drawingId':_0x5e68f2});return _0xa1e40b==null?void 0x0:_0xa1e40b[_0x569418(0x260)];},'updateShapeText':({unitId:_0x171317,shapeId:_0x45fbd2,shapeText:_0x27893c,oldShapeText:_0xb8c4a9})=>{const _0x574b37=_0xc9151f;_0x378625[_0x574b37(0x2cf)](_0xc5bd8e['id'],{'unitId':_0x171317,'shapeId':_0x45fbd2,'shapeData':{'shapeText':_0x27893c},'oldShapeJSON':{'oldShapeData':{'shapeText':_0xb8c4a9}}});},'updateHostSize':({unitId:_0x19c893,subUnitId:_0xb20f53,shapeId:_0x139489,width:_0x5a245d,height:_0x4e537d})=>{const _0x27b386=_0xc9151f;_0x378625[_0x27b386(0x2cf)](_0x5c08e6['id'],{'unitId':_0x19c893,'subUnitId':_0xb20f53,'drawings':[{'drawingId':_0x139489,'key':_0x27b386(0x73),'value':{'width':_0x5a245d,'height':_0x4e537d}}]});},'allowHostSizeShrink':({unitId:_0x46e3cf,subUnitId:_0x5043db,shapeId:_0x3b6891})=>_0x1574e0(_0x445617[_0xc9151f(0x274)](_0x46e3cf,_0x5043db,_0x3b6891))}),[_0x378625,_0x445617,_0x571d94]),_0x45ed02=_0x39da17(()=>({'viewportKeys':{'main':_0x28fe54[_0xc9151f(0xf5)]}}),[]);return _0x5619d4(_0x8f7333,{'adapter':_0x2a7bcb,'editingService':_0xa9a5b4,'editorUnitId':kr,'positionOptions':_0x45ed02});});let ya=class extends _0x143425{constructor(_0x3ef877,_0x11c87d){const _0x34f5f2=_0x43e8a4;super(),this[_0x34f5f2(0x179)]=_0x3ef877,this['_iconManager']=_0x11c87d,this['_registerIcons'](),this['_registerComponents']();}[_0x43e8a4(0x14a)](){const _0x15a62f=_0x43e8a4;this[_0x15a62f(0x2b2)][_0x15a62f(0x1da)](_0x15a62f(0x27e))||this[_0x15a62f(0xb3)](this[_0x15a62f(0x2b2)][_0x15a62f(0x14c)]({'ObjectLayersIcon':_0x362b77})),this[_0x15a62f(0x2b2)][_0x15a62f(0x1da)]('BottomIcon')||this['disposeWithMe'](this[_0x15a62f(0x2b2)]['register']({'BottomIcon':_0x463d79})),this[_0x15a62f(0x2b2)][_0x15a62f(0x1da)](_0x15a62f(0x216))||this[_0x15a62f(0xb3)](this[_0x15a62f(0x2b2)][_0x15a62f(0x14c)]({'MoveDownIcon':_0x13639d})),this[_0x15a62f(0x2b2)]['has'](_0x15a62f(0x287))||this[_0x15a62f(0xb3)](this[_0x15a62f(0x2b2)]['register']({'MoveUpIcon':_0x384086})),this[_0x15a62f(0x2b2)][_0x15a62f(0x1da)](_0x15a62f(0xee))||this[_0x15a62f(0xb3)](this[_0x15a62f(0x2b2)]['register']({'ShapeFormatSettingIcon':_0x306814})),this['_iconManager']['has'](_0x15a62f(0xdd))||this['disposeWithMe'](this[_0x15a62f(0x2b2)][_0x15a62f(0x14c)]({'TopmostIcon':_0x1b36a9})),this[_0x15a62f(0xb3)](this['_iconManager']['register'](_a));}[_0x43e8a4(0xb6)](){const _0x42a571=_0x43e8a4;this[_0x42a571(0xb3)](this[_0x42a571(0x179)]['register'](W,la)),this[_0x42a571(0x246)](),this['_registerFloatingToolbar'](),this[_0x42a571(0xb3)](this[_0x42a571(0x179)][_0x42a571(0x14c)](Qr,ii)),this[_0x42a571(0xb3)](this[_0x42a571(0x179)][_0x42a571(0x14c)](Zr,ai)),this[_0x42a571(0xb3)](this['_componentManager']['register']($r,oi)),this[_0x42a571(0xb3)](this[_0x42a571(0x179)]['register'](ei,si)),this[_0x42a571(0xb3)](this[_0x42a571(0x179)][_0x42a571(0x14c)](ti,ci)),this[_0x42a571(0xb3)](this['_componentManager'][_0x42a571(0x14c)](Ar,_0x4eb1a6)),this[_0x42a571(0x23f)](),this[_0x42a571(0x179)][_0x42a571(0xcc)](_0x1efce9)||this[_0x42a571(0xb3)](this['_componentManager']['register'](_0x1efce9,Hr)),this[_0x42a571(0xb3)](this[_0x42a571(0x179)][_0x42a571(0x14c)](jr,va));}[_0x43e8a4(0x246)](){const _0x425f44=_0x43e8a4;this[_0x425f44(0xb3)](this['_componentManager'][_0x425f44(0x14c)](Or,ia));}[_0x43e8a4(0xde)](){const _0x16b5cf=_0x43e8a4;this[_0x16b5cf(0xb3)](this[_0x16b5cf(0x179)]['register'](da,ua));}['_registerPickers'](){const _0x1636fb=_0x43e8a4;this[_0x1636fb(0xb3)](this['_componentManager']['register'](Lr,$i)),this[_0x1636fb(0xb3)](this[_0x1636fb(0x179)]['register'](Rr,ea));}};ya=q([K(0x0,_0x376ec2(_0x5974e5)),K(0x1,_0x376ec2(_0x358fdb))],ya);let ba=class extends _0x143425{constructor(_0x146e68,_0x375b79,_0x29f8bb,_0x1dcf86,_0x4b7687,_0x20d0de,_0x576061,_0x447e08,_0x4f31a5,_0x114014,_0x6f302c,_0x2fc6c7,_0x24d110){const _0x1f3662=_0x43e8a4;super(),this[_0x1f3662(0x7b)]=_0x146e68,this[_0x1f3662(0x1c9)]=_0x375b79,this[_0x1f3662(0x2b7)]=_0x29f8bb,this[_0x1f3662(0x17f)]=_0x1dcf86,this[_0x1f3662(0x267)]=_0x4b7687,this[_0x1f3662(0x10c)]=_0x20d0de,this['_drawingManagerService']=_0x576061,this['_docCanvasPopManagerService']=_0x447e08,this['_renderManagerService']=_0x4f31a5,this['_contextService']=_0x114014,this[_0x1f3662(0x72)]=_0x6f302c,this[_0x1f3662(0x218)]=_0x2fc6c7,this[_0x1f3662(0x9f)]=_0x24d110,J(this,_0x1f3662(0x9b),null),J(this,_0x1f3662(0x1b1),null),J(this,_0x1f3662(0x21a),!0x1),J(this,_0x1f3662(0x231),0x0),J(this,'_disposePopupsByUnit',new Map()),J(this,_0x1f3662(0x245),new Map()),this[_0x1f3662(0x23e)](),this['disposeWithMe'](this[_0x1f3662(0x7b)][_0x1f3662(0x2c2)](_0x37d2f3[_0x1f3662(0x10d)])[_0x1f3662(0x120)](_0x3001aa=>{const _0x28f898=_0x1f3662;if(!_0x3001aa){var _0x53b365;(_0x53b365=this[_0x28f898(0x9b)])==null||_0x53b365['dispose']();}})),this['_registerOperations'](),this[_0x1f3662(0xb3)](this[_0x1f3662(0x282)]['remove$'][_0x1f3662(0x120)](_0x57a0c2=>{const _0x8d9d65=_0x1f3662;for(let _0x589584 of _0x57a0c2){let _0x2e80e1=_0x589584[_0x8d9d65(0xa2)]+':'+_0x589584[_0x8d9d65(0x2d2)]+':'+_0x589584[_0x8d9d65(0x198)];for(let [_0x3fc72e,_0xea3c68]of this['_popupTargetKeys'])_0xea3c68===_0x2e80e1&&this[_0x8d9d65(0x2c0)](_0x3fc72e,!0x0);}})),this['disposeWithMe'](_0x1d984c(this[_0x1f3662(0xa3)],_0x37d2f3[_0x1f3662(0x10d)],_0x1bc558=>this[_0x1f3662(0xd8)](_0x1bc558))),this[_0x1f3662(0xb3)](this[_0x1f3662(0x72)][_0x1f3662(0x80)][_0x1f3662(0x120)](_0x45e841=>{_0x45e841&&this['_clearPopups'](void 0x0,!0x0);})),this[_0x1f3662(0xb3)](this[_0x1f3662(0x218)][_0x1f3662(0x10a)][_0x1f3662(0x120)](()=>{const _0x48c43d=_0x1f3662;this[_0x48c43d(0x282)][_0x48c43d(0x2bf)]()[_0x48c43d(0x1f5)](_0x10b52c=>_0x10b52c[_0x48c43d(0x119)]===_0x1652cd[_0x48c43d(0x156)]&&this[_0x48c43d(0x7b)][_0x48c43d(0x177)](_0x10b52c[_0x48c43d(0xa2)])===_0x37d2f3[_0x48c43d(0x10d)]&&!this[_0x48c43d(0xcf)](_0x10b52c['unitId'],_0x10b52c['drawingId']))&&(this['_clearPopups'](void 0x0,!0x0),this[_0x48c43d(0x2bd)]());}));}[_0x43e8a4(0x1bc)](_0x57aa7c,_0xdb3530,_0xa2f9e,_0x2c5ddd){const _0x5cccf1=_0x43e8a4;return[{'label':_0x5cccf1(0xa8),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x57aa7c,'subUnitId':_0xdb3530,'drawingId':_0xa2f9e},'disable':_0x2c5ddd===_0x1652cd[_0x5cccf1(0x271)]},{'label':_0x5cccf1(0xd0),'index':0x1,'commandId':_0x1dc354['id'],'commandParams':{'unitId':_0x57aa7c,'drawings':[{'unitId':_0x57aa7c,'subUnitId':_0xdb3530,'drawingId':_0xa2f9e}]},'disable':!0x1},{'label':_0x5cccf1(0x1aa),'index':0x2,'commandId':Bi['id'],'commandParams':{'unitId':_0x57aa7c,'subUnitId':_0xdb3530,'drawingId':_0xa2f9e},'disable':!0x1}];}[_0x43e8a4(0x23e)](){const _0x5e3644=_0x43e8a4;this[_0x5e3644(0x2b7)]['mergeMenu'](Li);}[_0x43e8a4(0x277)](_0x15dee3,_0x35d7dc,_0x341e22){const _0x4427eb=_0x43e8a4;let _0x30563d=this[_0x4427eb(0x17f)]['getShapeTypeById'](_0x15dee3,_0x35d7dc,_0x341e22),_0x492a33=this[_0x4427eb(0x17f)][_0x4427eb(0x274)](_0x15dee3,_0x35d7dc,_0x341e22);return _0x30563d===void 0x0||_0x492a33===void 0x0?null:{'shapeData':_0x492a33,'shapeId':_0x341e22,'shapeType':_0x30563d,'unitId':_0x15dee3,'subUnitId':_0x35d7dc,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1};}[_0x43e8a4(0x2c0)](_0x30df34,_0x42b0d3=!0x1){const _0x26fd9d=_0x43e8a4;if(_0x30df34==null){[...this[_0x26fd9d(0xdc)][_0x26fd9d(0x20d)]()][_0x26fd9d(0xd6)](_0x3669e7=>this[_0x26fd9d(0x2c0)](_0x3669e7,_0x42b0d3));return;}let _0x1e759c=this[_0x26fd9d(0xdc)][_0x26fd9d(0x7a)](_0x30df34);if(_0x1e759c){for(let _0x4fcad5=_0x1e759c[_0x26fd9d(0x1ee)]-0x1;_0x4fcad5>=0x0;--_0x4fcad5){let _0x4f5fbd=_0x1e759c[_0x4fcad5];(_0x42b0d3||_0x4f5fbd[_0x26fd9d(0x2b6)]())&&(_0x4f5fbd[_0x26fd9d(0xb0)](),_0x1e759c[_0x26fd9d(0x180)](_0x4fcad5,0x1));}_0x1e759c[_0x26fd9d(0x1ee)]===0x0&&(this[_0x26fd9d(0xdc)][_0x26fd9d(0x13c)](_0x30df34),this[_0x26fd9d(0x245)][_0x26fd9d(0x13c)](_0x30df34));}}['_getDisposePopups'](_0x4ee30e){const _0x566e28=_0x43e8a4;let _0x2d34c2=this[_0x566e28(0xdc)][_0x566e28(0x7a)](_0x4ee30e);if(_0x2d34c2)return _0x2d34c2;let _0x3c6799=[];return this[_0x566e28(0xdc)][_0x566e28(0x290)](_0x4ee30e,_0x3c6799),_0x3c6799;}['_popupMenuListener'](_0x14627b){const _0x1f5e14=_0x43e8a4;var _0x262ced;let _0x4abd74=new _0x4bf1ef(),_0x56c2af=(_0x262ced=this[_0x1f5e14(0xa3)]['getAllRenderersOfType'](_0x37d2f3[_0x1f5e14(0x10d)])[_0x1f5e14(0x2d0)](_0x22fe94=>_0x22fe94[_0x1f5e14(0x71)]['getTransformerByCreate']()===_0x14627b))==null?void 0x0:_0x262ced[_0x1f5e14(0xa2)];return _0x56c2af&&(_0x4abd74[_0x1f5e14(0x106)](_0x14627b[_0x1f5e14(0x1ac)][_0x1f5e14(0x120)](()=>this['_handleCreateControl'](_0x14627b,_0x56c2af))),_0x4abd74[_0x1f5e14(0x106)](_0x14627b[_0x1f5e14(0x1c3)][_0x1f5e14(0x120)](()=>{const _0x36777c=_0x1f5e14;this[_0x36777c(0x2c0)](_0x56c2af),queueMicrotask(()=>{const _0x1fcf01=_0x36777c;_0x14627b['getSelectedObjectMap']()[_0x1fcf01(0x73)]>0x0||!this[_0x1fcf01(0x282)][_0x1fcf01(0x2bf)]()['some'](_0x5f58cb=>_0x5f58cb['unitId']===_0x56c2af)||(this[_0x1fcf01(0xfc)]['setContextValue'](_0x2f74ce,!0x1),this[_0x1fcf01(0x282)][_0x1fcf01(0xd9)](null));});})),_0x4abd74[_0x1f5e14(0x106)](_0x14627b[_0x1f5e14(0x190)][_0x1f5e14(0x120)](()=>{const _0x431488=_0x1f5e14;this[_0x431488(0x2c0)](_0x56c2af,!0x0);}))),_0x4abd74;}[_0x43e8a4(0xa9)](_0x32a1af,_0x193120){const _0x24c86e=_0x43e8a4;let _0x57123b=_0x32a1af[_0x24c86e(0x103)]();if(this[_0x24c86e(0x21a)]){this[_0x24c86e(0x2c0)](_0x193120,!0x0);return;}if(_0x57123b['size']>0x1){this[_0x24c86e(0x2c0)](_0x193120);return;}let _0x3b6ce2=_0x57123b[_0x24c86e(0x22d)]()['next']()[_0x24c86e(0x152)];if(!_0x3b6ce2){this['_clearPopups'](_0x193120);return;}let _0x3239b4=this[_0x24c86e(0x282)]['getDrawingOKey'](_0x3b6ce2[_0x24c86e(0xef)]);if(!_0x3239b4||_0x3239b4['drawingType']!==_0x1652cd[_0x24c86e(0x156)]){this[_0x24c86e(0x2c0)](_0x193120);return;}let {unitId:_0x4c0be6,subUnitId:_0x418017,drawingId:_0x48b8bf}=_0x3239b4;if(!this[_0x24c86e(0xcf)](_0x4c0be6,_0x48b8bf)){this[_0x24c86e(0x2c0)](_0x193120,!0x0);return;}let _0x106c34=this[_0x24c86e(0x277)](_0x4c0be6,_0x418017,_0x48b8bf);if(!_0x106c34){this['_clearPopups'](_0x193120);return;}let _0x60d8f9=this[_0x24c86e(0xdc)][_0x24c86e(0x7a)](_0x193120),_0x3f3b48=_0x4c0be6+':'+_0x418017+':'+_0x48b8bf;if(this[_0x24c86e(0x245)]['get'](_0x193120)===_0x3f3b48&&_0x60d8f9!=null&&_0x60d8f9[_0x24c86e(0x1ee)])return;this[_0x24c86e(0x2c0)](_0x193120);let _0x583431=this['_renderManagerService']['getRenderUnitById'](_0x4c0be6),_0x444794=((_0x583431==null?void 0x0:_0x583431[_0x24c86e(0x193)])===!0x1?_0x583431[_0x24c86e(0x178)](_0x58fb7f):this[_0x24c86e(0x28e)])['attachPopupToObject'](_0x3b6ce2,this[_0x24c86e(0xd2)](_0x106c34,()=>this[_0x24c86e(0x2c0)](_0x193120,!0x0)),_0x4c0be6);this[_0x24c86e(0xb3)](_0x444794),this[_0x24c86e(0x118)](_0x193120)['push'](_0x444794),this[_0x24c86e(0x245)][_0x24c86e(0x290)](_0x193120,_0x3f3b48),this[_0x24c86e(0x282)][_0x24c86e(0x2bf)]()[_0x24c86e(0x1f5)](_0x4b2472=>_0x4b2472['unitId']===_0x4c0be6&&_0x4b2472['subUnitId']===_0x418017&&_0x4b2472['drawingId']===_0x48b8bf)||this[_0x24c86e(0x282)][_0x24c86e(0xd9)]([{'unitId':_0x4c0be6,'subUnitId':_0x418017,'drawingId':_0x48b8bf}]);}[_0x43e8a4(0xd2)](_0x598c50,_0x129a96){const _0x45e76a=_0x43e8a4;let {unitId:_0x3cd78e,subUnitId:_0x481275,shapeId:_0x5146a1}=_0x598c50,_0x54f92d={'hostType':_0x37d2f3[_0x45e76a(0x10d)],'unitId':_0x3cd78e,'subUnitId':_0x481275,'shapeId':_0x5146a1};return{'componentKey':da,'requiresStableLayout':!0x1,'direction':_0x45e76a(0x1df),'offset':[0x0,0x8],'extraProps':{'shapeType':_0x598c50[_0x45e76a(0x6d)],'onText':()=>{const _0x539054=_0x45e76a;_0x129a96(),this['_mobileEditorService'][_0x539054(0x29c)](_0x539054(0x98),_0x54f92d);},'onStyle':()=>{const _0x2aaf86=_0x45e76a;_0x129a96(),this[_0x2aaf86(0x9f)][_0x2aaf86(0x29c)](_0x2aaf86(0x68),_0x54f92d);},'onDelete':()=>this['_commandService'][_0x45e76a(0x2cf)](_0x1dc354['id'],{'unitId':_0x3cd78e,'drawings':[{'unitId':_0x3cd78e,'subUnitId':_0x481275,'drawingId':_0x5146a1}]})}};}[_0x43e8a4(0xcf)](_0x5851da,_0x1c740f){const _0x3fd079=_0x43e8a4;let _0x5cf5a4=this[_0x3fd079(0x7b)]['getUnit'](_0x5851da,_0x37d2f3[_0x3fd079(0x10d)]);if(!_0x5cf5a4)return!0x1;let _0x39d0d5=_0x34c0dc(_0x5cf5a4,_0x1c740f);return _0xaad49(this[_0x3fd079(0x218)],_0x5851da,[..._0x1ed368(_0x5cf5a4,_0x39d0d5,_0x3fd079(0x292),_0x1c740f),_0x17c75c(_0x39d0d5,_0x3fd079(0x292),_0x1c740f)]);}[_0x43e8a4(0x2d3)](){const _0x55f4a8=_0x43e8a4;this['disposeWithMe'](this['_commandService'][_0x55f4a8(0x1b3)](_0x13b876=>{const _0x21cfda=_0x55f4a8;if(_0x13b876['id']===G['id']){let {unitId:_0x79cab9,subUnitId:_0x7fa758,drawingId:_0xaaee80}=_0x13b876[_0x21cfda(0x132)];this['_shapeEditPanelVersion']+=0x1,this[_0x21cfda(0x1b1)]=this['_getShapeInfo'](_0x79cab9,_0x7fa758,_0xaaee80),this[_0x21cfda(0x2c0)](void 0x0,!0x0),this[_0x21cfda(0x10e)]();}if(_0x13b876['id']===Bi['id']&&(this[_0x21cfda(0x1b1)]=null,this['_closeShapeEditPanel']()),_0x13b876['id']===_0x4aaefb['id']){var _0x588190;let {unitId:_0x15c45d,shapeId:_0x7898f8}=_0x13b876[_0x21cfda(0x132)];if(((_0x588190=this[_0x21cfda(0x1b1)])==null?void 0x0:_0x588190[_0x21cfda(0x1a5)])===_0x7898f8){let _0x290988=this['_getShapeInfo'](_0x15c45d,this[_0x21cfda(0x1b1)]['subUnitId'],_0x7898f8);_0x290988&&(this[_0x21cfda(0x231)]+=0x1,_0x290988[_0x21cfda(0x1bd)]=this['_shapeEditPanelVersion'],this['_activeShapeInfo']=_0x290988,this[_0x21cfda(0x21a)]&&this[_0x21cfda(0x10e)]());}}})),this[_0x55f4a8(0xb3)](this[_0x55f4a8(0x282)]['focus$'][_0x55f4a8(0x120)](_0x1a84d2=>{const _0x3d778e=_0x55f4a8;if(!this[_0x3d778e(0x21a)])return;if(_0x1a84d2[_0x3d778e(0x1ee)]===0x0){this['_activeShapeInfo']=null,this[_0x3d778e(0x2bd)]();return;}if(_0x1a84d2[_0x3d778e(0x1ee)]===0x1&&_0x1a84d2[0x0][_0x3d778e(0x119)]===_0x1652cd[_0x3d778e(0x156)]&&(this[_0x3d778e(0x231)]+=0x1,this[_0x3d778e(0x1b1)]=this[_0x3d778e(0x277)](_0x1a84d2[0x0]['unitId'],_0x1a84d2[0x0]['subUnitId'],_0x1a84d2[0x0][_0x3d778e(0x198)]),this['_activeShapeInfo'])){this['_openShapeEditPanel']();return;}let _0x2f4ad5=_0x1a84d2[_0x3d778e(0x121)](_0x372340=>_0x372340[_0x3d778e(0x119)]===_0x1652cd['DRAWING_SHAPE']);this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x3d778e(0x277)](_0x1a84d2[0x0][_0x3d778e(0xa2)],_0x1a84d2[0x0][_0x3d778e(0x2d2)],_0x1a84d2[0x0][_0x3d778e(0x198)]),this[_0x3d778e(0x1b1)]&&_0x1a84d2[_0x3d778e(0x1ee)]>0x1&&_0x2f4ad5[_0x3d778e(0x1ee)]===_0x1a84d2[_0x3d778e(0x1ee)]?this[_0x3d778e(0x10e)]():this['_activeShapeInfo']&&_0x2f4ad5['length']!==_0x1a84d2[_0x3d778e(0x1ee)]?(this[_0x3d778e(0x1b1)]['disableShapeOption']=!0x0,this[_0x3d778e(0x10e)]()):this[_0x3d778e(0x2bd)]();}));}['_openShapeEditPanel'](){const _0x2e34b2=_0x43e8a4;this['_activeShapeInfo']&&(this[_0x2e34b2(0x9b)]=this[_0x2e34b2(0x1c9)]['open']({'id':W,'header':{'title':this[_0x2e34b2(0x267)]['t'](_0x2e34b2(0x21d))},'width':0x184,'children':{'label':W,...this['_activeShapeInfo']},'onClose':()=>{const _0x365aeb=_0x2e34b2;this[_0x365aeb(0x282)]['focusDrawing'](null),this[_0x365aeb(0xfc)][_0x365aeb(0x25c)](_0x2f74ce,!0x1),this['_sidebarDisposable']=null;}}),this[_0x2e34b2(0x21a)]=!0x0);}['_closeShapeEditPanel'](){const _0x2f92d9=_0x43e8a4;this[_0x2f92d9(0x21a)]=!0x1,this['_sidebarService'][_0x2f92d9(0x234)](W),this['_sidebarDisposable']=null,this[_0x2f92d9(0xfc)][_0x2f92d9(0x25c)](_0x2f74ce,!0x1),this[_0x2f92d9(0x282)]['focusDrawing'](null);}};ba=q([K(0x0,_0x58ad01),K(0x1,_0x376ec2(_0x5cd437)),K(0x2,_0x354de5),K(0x3,_0x376ec2(_0x3e6ec4)),K(0x4,_0x376ec2(_0x474b31)),K(0x5,_0x5d4fd5),K(0x6,_0x4ed84c),K(0x7,_0x376ec2(_0x58fb7f)),K(0x8,_0x20175c),K(0x9,_0x46b73a),K(0xa,_0x376ec2(X)),K(0xb,_0x1b33f3),K(0xc,_0x376ec2(_0x1c4e81))],ba);const xa=_0x43e8a4(0x18f);let Sa=class extends _0x143425{constructor(_0x3295b3,_0x3eef1a,_0x5a5132,_0x347c58,_0x53912e,_0x21f35a){const _0x54b608=_0x43e8a4;super(),this[_0x54b608(0x2b7)]=_0x3295b3,this[_0x54b608(0x203)]=_0x3eef1a,this[_0x54b608(0x282)]=_0x5a5132,this[_0x54b608(0x7b)]=_0x347c58,this['_renderManagerService']=_0x53912e,this[_0x54b608(0x19f)]=_0x21f35a,J(this,'_visible',!0x1),this[_0x54b608(0x2b7)][_0x54b608(0x158)](Ii),this[_0x54b608(0xb3)](_0x44b80c(this[_0x54b608(0x282)][_0x54b608(0x144)][_0x54b608(0x120)](()=>this[_0x54b608(0x21f)]()))),this[_0x54b608(0x21f)]();}[_0x43e8a4(0xb0)](){const _0x125e01=_0x43e8a4;this[_0x125e01(0x19f)][_0x125e01(0x126)](!0x1,xa),this[_0x125e01(0xf2)](),super[_0x125e01(0xb0)]();}[_0x43e8a4(0x21f)](){const _0x176a99=_0x43e8a4;var _0x2e3e38;let _0x414920=this[_0x176a99(0x282)][_0x176a99(0x2bf)](),_0x1e32c1=_0x414920[_0x176a99(0x1ee)]===0x1?_0x414920[0x0]:void 0x0;if((_0x1e32c1==null?void 0x0:_0x1e32c1[_0x176a99(0x119)])!==_0x1652cd[_0x176a99(0x156)]||this[_0x176a99(0x7b)][_0x176a99(0x177)](_0x1e32c1['unitId'])!==_0x37d2f3[_0x176a99(0x10d)]){this[_0x176a99(0x19f)][_0x176a99(0x126)](!0x1,xa),this[_0x176a99(0xf2)]();return;}let _0x58b771=(_0x2e3e38=this[_0x176a99(0xa3)][_0x176a99(0x2b0)](_0x1e32c1['unitId']))==null?void 0x0:_0x2e3e38['engine'][_0x176a99(0x99)](),_0x1901ab=_0x3c6397(_0x58b771)==='isolated';this['_shapeFloatingToolbarService']['setFallbackVisible'](_0x1901ab,xa),_0x1901ab?this[_0x176a99(0xf2)]():(this['_visible']=!0x0,this['_ribbonService']['showContextualTab'](Dr,{'activate':!0x0}));}[_0x43e8a4(0xf2)](){const _0x262391=_0x43e8a4;this[_0x262391(0xc3)]&&(this[_0x262391(0xc3)]=!0x1,this[_0x262391(0x203)][_0x262391(0xca)](Dr),this['_ribbonService'][_0x262391(0x2b4)]([]));}};Sa=q([K(0x0,_0x354de5),K(0x1,_0x1989ad),K(0x2,_0x4ed84c),K(0x3,_0x58ad01),K(0x4,_0x20175c),K(0x5,_0x376ec2(_0x9377b1))],Sa);let Ca=class extends _0x143425{constructor(_0x2e5fce,_0x45326d,_0x64d07b,_0x249f1a){const _0x1a4c06=_0x43e8a4;super(),this[_0x1a4c06(0x10c)]=_0x2e5fce,this['_renderManagerService']=_0x45326d,this[_0x1a4c06(0x282)]=_0x64d07b,this['_docDrawingShapeRenderController']=_0x249f1a,this[_0x1a4c06(0xf9)]();}['_initialize'](){const _0x2add24=_0x43e8a4;this[_0x2add24(0xb3)](this['_drawingManagerService']['add$']['subscribe'](_0x3a8c33=>this[_0x2add24(0x197)](_0x3a8c33))),this[_0x2add24(0xb3)](this[_0x2add24(0x282)][_0x2add24(0x261)][_0x2add24(0x120)](_0x5c6a7b=>{const _0x57ae3d=_0x2add24;_0x5c6a7b[_0x57ae3d(0xd6)](_0x5f5b4a=>this[_0x57ae3d(0x24a)](_0x5f5b4a));})),this[_0x2add24(0xb3)](this[_0x2add24(0x10c)][_0x2add24(0x1b3)](_0x23fc90=>{const _0x29f28a=_0x2add24;if(_0x23fc90['id']!==_0x4aaefb['id'])return;let {unitId:_0x2db78f,shapeId:_0x4b635d}=_0x23fc90[_0x29f28a(0x132)];this[_0x29f28a(0x151)]({'unitId':_0x2db78f,'subUnitId':_0x2db78f,'drawingId':_0x4b635d});}));}['_insertShapes'](_0x573cfa){_0x573cfa['forEach'](_0x7f9092=>{const _0x4806c8=_0xe027;let _0xd6efce=this[_0x4806c8(0xe8)](_0x7f9092[_0x4806c8(0xa2)]);if(!_0xd6efce)return;let _0x26d728=this['_drawingManagerService'][_0x4806c8(0xfd)](_0x7f9092);(_0x26d728==null?void 0x0:_0x26d728[_0x4806c8(0x119)])===_0x1652cd['DRAWING_SHAPE']&&this[_0x4806c8(0x272)][_0x4806c8(0xa6)](_0x26d728,_0xd6efce[_0x4806c8(0x71)]);});}[_0x43e8a4(0x24a)](_0x16a4ec){const _0x619492=_0x43e8a4;let _0x29750a=this[_0x619492(0x282)]['getDrawingByParam'](_0x16a4ec);if((_0x29750a==null?void 0x0:_0x29750a[_0x619492(0x119)])!==_0x1652cd[_0x619492(0x156)])return;let _0x5eb442=this[_0x619492(0xe8)](_0x16a4ec['unitId']);if(!_0x5eb442||_0x29750a[_0x619492(0x260)]==null)return;let _0x54d980=_0x33c05c(_0x16a4ec),_0x3ac1ab=_0x5eb442[_0x619492(0x71)][_0x619492(0x17b)](_0x54d980);_0x3ac1ab&&(_0x3ac1ab[_0x619492(0x1d7)](_0x29750a['srcRect']),_0x3ac1ab[_0x619492(0x1ef)](_0x29750a[_0x619492(0x2a1)]),_0x3ac1ab[_0x619492(0x11f)](!0x0));}[_0x43e8a4(0x151)](_0x179b03){const _0x452975=_0x43e8a4;let _0x54f9e3=this[_0x452975(0xe8)](_0x179b03[_0x452975(0xa2)]);if(!_0x54f9e3)return;let _0x4d4ad6=_0x33c05c(_0x179b03),_0x142503=_0x54f9e3['scene']['getObjectIncludeInGroup'](_0x4d4ad6);_0x142503&&(this['_docDrawingShapeRenderController'][_0x452975(0x1af)](_0x142503),this[_0x452975(0x272)]['refreshFormulaPresentation'](_0x142503,{'unitId':_0x179b03['unitId'],'subUnitId':_0x179b03[_0x452975(0x2d2)],'shapeId':_0x179b03['drawingId']}),_0x142503[_0x452975(0x11f)](!0x0));}[_0x43e8a4(0xe8)](_0x1570fd){const _0x265219=_0x43e8a4;if(_0x1570fd==null)return null;let _0x20591c=this[_0x265219(0xa3)]['getRenderUnitById'](_0x1570fd),_0xfce0ea=_0x20591c==null?void 0x0:_0x20591c[_0x265219(0x71)];return _0xfce0ea==null?null:{'scene':_0xfce0ea};}};Ca=q([K(0x0,_0x5d4fd5),K(0x1,_0x20175c),K(0x2,_0x4ed84c),K(0x3,_0x376ec2(Z))],Ca);let Q=class extends _0x48417e{constructor(_0x5134cc=Hi,_0xd4bc56,_0x511d8d,_0x35aadc,_0xa5a830){const _0x3e839e=_0x43e8a4;super(),this[_0x3e839e(0x28d)]=_0x5134cc,this[_0x3e839e(0x1ae)]=_0xd4bc56,this[_0x3e839e(0x10c)]=_0x511d8d,this[_0x3e839e(0x1f3)]=_0x35aadc,this[_0x3e839e(0xa3)]=_0xa5a830;let {menu:_0x5029e2,..._0x673a70}=_0x77c685({},Hi,this['_config']);_0x5029e2&&this['_configService'][_0x3e839e(0x211)](_0x3e839e(0x8f),_0x5029e2,{'merge':!0x0}),this[_0x3e839e(0x1f3)]['setConfig'](Vi,_0x673a70),[U,Bi,G,Mr,Pr,Fr][_0x3e839e(0xd6)](_0x34fb49=>this['disposeWithMe'](this[_0x3e839e(0x10c)]['registerCommand'](_0x34fb49)));}[_0x43e8a4(0x257)](){const _0x31ccde=_0x43e8a4;let _0x58e0ed=[[ya],[ba],[Ca],[Z],[Xi],[Ji],[Ir],[aa],[X],[Sa]];_0x1fed5b(this['_injector'],_0x58e0ed),this[_0x31ccde(0x1ae)][_0x31ccde(0x7a)](ya);}['onReady'](){const _0x940d9e=_0x43e8a4;this[_0x940d9e(0xb3)](this['_renderManagerService'][_0x940d9e(0x1b2)](_0x37d2f3['UNIVER_DOC'],[Ji])),_0xd342cc(this[_0x940d9e(0x1ae)],[[ba],[Ca],[Z],[Xi],[Ir],[aa],[X],[Sa]]);}};J(Q,_0x43e8a4(0x297),_0x37d2f3['UNIVER_DOC']),J(Q,'pluginName','DOCS_SHAPE_UI_PLUGIN'),J(Q,'packageName',Ri),J(Q,_0x43e8a4(0x1bd),zi),Q=q([_0x1a58e1(_0x1f5858,_0x3dc614,_0x41fe11,_0x1a2f56,_0x55fd02,_0x3a37cf,_0x2830ac,_0x1727f1,_0x2e07fc,_0x54a90e),K(0x1,_0x376ec2(_0x3fea17)),K(0x2,_0x5d4fd5),K(0x3,_0x47ac1d),K(0x4,_0x20175c)],Q);let wa=class extends _0x143425{constructor(_0x4186e6,_0x2dc274){const _0x5172f2=_0x43e8a4;super(),this[_0x5172f2(0x179)]=_0x4186e6,this[_0x5172f2(0x2b2)]=_0x2dc274,this[_0x5172f2(0x14a)](),this[_0x5172f2(0xb6)]();}[_0x43e8a4(0x14a)](){const _0x5a7060=_0x43e8a4;this[_0x5a7060(0x2b2)][_0x5a7060(0x1da)]('ObjectLayersIcon')||this[_0x5a7060(0xb3)](this[_0x5a7060(0x2b2)]['register']({'ObjectLayersIcon':_0x362b77})),this[_0x5a7060(0x2b2)]['has'](_0x5a7060(0x1a0))||this['disposeWithMe'](this[_0x5a7060(0x2b2)][_0x5a7060(0x14c)]({'BottomIcon':_0x463d79})),this[_0x5a7060(0x2b2)][_0x5a7060(0x1da)]('MoveDownIcon')||this['disposeWithMe'](this[_0x5a7060(0x2b2)]['register']({'MoveDownIcon':_0x13639d})),this[_0x5a7060(0x2b2)]['has'](_0x5a7060(0x287))||this['disposeWithMe'](this['_iconManager']['register']({'MoveUpIcon':_0x384086})),this[_0x5a7060(0x2b2)]['has'](_0x5a7060(0xee))||this[_0x5a7060(0xb3)](this[_0x5a7060(0x2b2)][_0x5a7060(0x14c)]({'ShapeFormatSettingIcon':_0x306814})),this['_iconManager'][_0x5a7060(0x1da)](_0x5a7060(0xdd))||this[_0x5a7060(0xb3)](this[_0x5a7060(0x2b2)][_0x5a7060(0x14c)]({'TopmostIcon':_0x1b36a9})),this[_0x5a7060(0xb3)](this['_iconManager']['register'](_a));}[_0x43e8a4(0xb6)](){const _0x33b7da=_0x43e8a4;this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)]['register'](W,sa)),this['_registerObjectListPanel'](),this[_0x33b7da(0xde)](),this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)][_0x33b7da(0x14c)](Qr,ii)),this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)]['register'](Zr,ai)),this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)]['register']($r,oi)),this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)]['register'](ei,si)),this[_0x33b7da(0xb3)](this['_componentManager'][_0x33b7da(0x14c)](ti,ci)),this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)]['register'](Ar,_0x4eb1a6)),this[_0x33b7da(0x23f)](),this['_componentManager'][_0x33b7da(0xcc)](_0x1efce9)||this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)][_0x33b7da(0x14c)](_0x1efce9,Hr)),this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)][_0x33b7da(0x14c)](jr,va));}[_0x43e8a4(0x246)](){const _0xa729=_0x43e8a4;this[_0xa729(0xb3)](this[_0xa729(0x179)][_0xa729(0x14c)](Or,ra));}[_0x43e8a4(0xde)](){const _0x2c7efc=_0x43e8a4;this[_0x2c7efc(0xb3)](this[_0x2c7efc(0x179)][_0x2c7efc(0x14c)](da,pa));}[_0x43e8a4(0x23f)](){const _0x1cfb10=_0x43e8a4;this[_0x1cfb10(0xb3)](this[_0x1cfb10(0x179)][_0x1cfb10(0x14c)](Lr,Ur)),this[_0x1cfb10(0xb3)](this[_0x1cfb10(0x179)][_0x1cfb10(0x14c)](Rr,Vr));}};wa=q([K(0x0,_0x376ec2(_0x5974e5)),K(0x1,_0x376ec2(_0x358fdb))],wa);let Ta=class extends _0x143425{constructor(_0x99c93b,_0xf31f0e,_0x545900,_0x5c2f48,_0x232223,_0x247ac9,_0x3d7447,_0x13a511,_0x54e32b){const _0x2dcfb5=_0x43e8a4;super();let _0x499f18=_0x25e218=>{const _0x3c0220=_0xe027;let _0xfb04c5=_0x247ac9[_0x3c0220(0x254)](_0x25e218[_0x3c0220(0xa2)],_0x37d2f3[_0x3c0220(0x10d)]),_0x5e2760=_0xfb04c5?_0x34c0dc(_0xfb04c5,_0x25e218[_0x3c0220(0x1a5)]):'';return!!_0xfb04c5&&_0xaad49(_0x13a511,_0x25e218[_0x3c0220(0xa2)],[_0x17c75c(_0x5e2760,'drawing',_0x25e218[_0x3c0220(0x1a5)]),..._0x1ed368(_0xfb04c5,_0x5e2760,_0x3c0220(0x292),_0x25e218[_0x3c0220(0x1a5)])]);},_0x172d05=_0x195106=>_0x195106[_0x2dcfb5(0x1a5)]&&_0x499f18(_0x195106)?_0x545900[_0x2dcfb5(0x274)](_0x195106[_0x2dcfb5(0xa2)],_0x195106[_0x2dcfb5(0x1a5)])??null:null,_0x3ec9d5=()=>{const _0x49f461=_0x2dcfb5;let _0x369f55=_0x232223[_0x49f461(0x2bf)](),_0x5a96b=_0x369f55[_0x49f461(0x1ee)]===0x1?_0x369f55[0x0]:null;return(_0x5a96b==null?void 0x0:_0x5a96b[_0x49f461(0x119)])===_0x1652cd['DRAWING_SHAPE']&&_0x5a96b[_0x49f461(0xa2)]===_0x99c93b[_0x49f461(0xa2)]?{'unitId':_0x5a96b[_0x49f461(0xa2)],'subUnitId':_0x5a96b[_0x49f461(0x2d2)],'shapeId':_0x5a96b[_0x49f461(0x198)]}:null;};this[_0x2dcfb5(0xb3)](_0x3c87e0(_0x99c93b,_0xf31f0e,{'changes$':_0x3018f6(_0x232223[_0x2dcfb5(0x144)],_0x5c2f48['editingParams$'],_0x13a511['permissionPointUpdate$']),'isActive':()=>{const _0x1d38ad=_0x2dcfb5;var _0x492135;return((_0x492135=_0x247ac9[_0x1d38ad(0xda)]())==null?void 0x0:_0x492135['getUnitId']())===_0x99c93b[_0x1d38ad(0xa2)]&&!_0x3d7447[_0x1d38ad(0x2c3)](_0x1e386f)&&_0x232223['getFocusDrawings']()['some'](_0x3f65ea=>_0x3f65ea['unitId']===_0x99c93b['unitId']);},'getSelectedTarget':_0x3ec9d5,'getSource':()=>{let _0x506cb3=_0x3ec9d5();return _0x506cb3?_0x172d05(_0x506cb3):null;},'getTarget':_0x1320e9=>{const _0x38fe4d=_0x2dcfb5;let _0x216898=_0x99c93b[_0x38fe4d(0x71)][_0x38fe4d(0xff)](new _0x7e1ba8(_0x1320e9[_0x38fe4d(0x165)],_0x1320e9[_0x38fe4d(0x1d4)]));if(!(_0x216898 instanceof Y))return null;let _0x3b6fb1={'unitId':_0x99c93b[_0x38fe4d(0xa2)],'subUnitId':_0x99c93b['unitId'],'shapeId':_0x216898[_0x38fe4d(0x1a5)]};return _0x499f18(_0x3b6fb1)?_0x3b6fb1:null;},'getShape':_0x172d05,'update':(_0x59e4b7,_0x14f8ff,_0x28a315)=>_0x54e32b[_0x2dcfb5(0x2cf)](_0xc5bd8e['id'],{..._0x59e4b7,'shapeData':_0x28a315,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x14f8ff}})}));}};Ta=q([K(0x1,_0x376ec2(_0x22cfa6)),K(0x2,_0x376ec2(_0x3e6ec4)),K(0x3,_0x376ec2(X)),K(0x4,_0x4ed84c),K(0x5,_0x58ad01),K(0x6,_0x46b73a),K(0x7,_0x1b33f3),K(0x8,_0x5d4fd5)],Ta);function Ea(_0x585f44,_0x255212){const _0x4061d6=_0x43e8a4;let _0x275694=_0x585f44;for(;_0x275694;){if(_0x255212(_0x275694))return _0x275694;_0x275694=typeof _0x275694[_0x4061d6(0xf7)]==_0x4061d6(0xb9)?_0x275694[_0x4061d6(0xf7)]():null;}return null;}function Da(_0x272b88){return Ea(_0x272b88,_0x54c020=>_0x54c020 instanceof Y);}function Oa(_0x1f4bcd){return(_0x1f4bcd==null?void 0x0:_0x1f4bcd['formulaBinding'])==null;}let ka=class extends _0x143425{constructor(_0x2ad464,_0x1e50fd,_0x3586af,_0x1ea211,_0x342f25){const _0x30ece7=_0x43e8a4;super(),this[_0x30ece7(0xed)]=_0x2ad464,this[_0x30ece7(0x72)]=_0x1e50fd,this[_0x30ece7(0x282)]=_0x3586af,this['_docLayoutInteractionService']=_0x1ea211,this[_0x30ece7(0x17f)]=_0x342f25,J(this,_0x30ece7(0x226),null),J(this,_0x30ece7(0x194),null),this[_0x30ece7(0x280)](),this[_0x30ece7(0x284)](),this[_0x30ece7(0x182)]();}[_0x43e8a4(0xb0)](){const _0xd56e78=_0x43e8a4;this[_0xd56e78(0x1d0)](),super['dispose']();}['_initEvents'](){const _0x7f8725=_0x43e8a4;let {scene:_0x271b8f}=this[_0x7f8725(0xed)];this[_0x7f8725(0xb3)](_0x271b8f[_0x7f8725(0x11b)][_0x7f8725(0xcd)]((_0x5ea1f1,_0xf47765)=>{const _0x4a6a76=_0x7f8725;let {offsetX:_0x219430,offsetY:_0x11c043}=_0x5ea1f1,_0x34524a=_0x7e1ba8[_0x4a6a76(0x142)]([_0x219430,_0x11c043]),_0x1ab20d=Da(_0x271b8f[_0x4a6a76(0xff)](_0x34524a))??this[_0x4a6a76(0x111)](_0x34524a);if(_0x1ab20d){_0xf47765[_0x4a6a76(0x1ea)]();let _0x2cf0a8=this[_0x4a6a76(0x17f)][_0x4a6a76(0x100)](_0x1ab20d[_0x4a6a76(0xa2)],_0x1ab20d[_0x4a6a76(0x2d2)],_0x1ab20d[_0x4a6a76(0x1a5)]);if(!_0x2cf0a8||_0x3a8d31(_0x2cf0a8[_0x4a6a76(0x2d1)]())||!Oa(_0x2cf0a8[_0x4a6a76(0x299)]()))return;this[_0x4a6a76(0x72)]['setEditing']({'visible':!0x0,'unitId':_0x1ab20d[_0x4a6a76(0xa2)],'subUnitId':_0x1ab20d[_0x4a6a76(0x2d2)],'shapeId':_0x1ab20d[_0x4a6a76(0x1a5)],'shapeKey':_0x1ab20d[_0x4a6a76(0xef)]});}}));}[_0x43e8a4(0x111)](_0x578e24){const _0x4e4792=_0x43e8a4;let {scene:_0x225509}=this[_0x4e4792(0xed)];return this[_0x4e4792(0x282)][_0x4e4792(0x2bf)]()[_0x4e4792(0x1e4)](_0x360f09=>_0x225509[_0x4e4792(0x17b)](_0x33c05c(_0x360f09)))[_0x4e4792(0x2d0)](_0x3262aa=>_0x3262aa instanceof Y&&_0x3262aa[_0x4e4792(0x2b3)](_0x578e24))??null;}[_0x43e8a4(0x284)](){const _0x36743d=_0x43e8a4;this[_0x36743d(0xb3)](this[_0x36743d(0x282)]['focus$'][_0x36743d(0x120)](_0x520595=>{const _0x5218a8=_0x36743d;if(_0x520595[_0x5218a8(0x1ee)]===0x1){let _0x15f348=_0x520595[0x0],_0x28f45a=this['_drawingManagerService'][_0x5218a8(0xfd)](_0x15f348);if((_0x28f45a==null?void 0x0:_0x28f45a[_0x5218a8(0x119)])===_0x1652cd[_0x5218a8(0x156)]){let _0x9b07ad=this[_0x5218a8(0x72)][_0x5218a8(0x1a2)]();if((_0x9b07ad==null?void 0x0:_0x9b07ad[_0x5218a8(0x1a5)])===_0x15f348['drawingId']&&_0x9b07ad[_0x5218a8(0x1b4)])return;_0x3a8d31(this[_0x5218a8(0x17f)][_0x5218a8(0x2d1)](_0x15f348[_0x5218a8(0xa2)],_0x15f348[_0x5218a8(0x2d2)],_0x15f348[_0x5218a8(0x198)]))&&this['_shapeTextEditingService'][_0x5218a8(0x15a)](null);}else this[_0x5218a8(0x72)]['completeEditing']();}else this[_0x5218a8(0x72)][_0x5218a8(0x209)]();})),this[_0x36743d(0xb3)](this[_0x36743d(0x282)]['remove$'][_0x36743d(0x120)](_0x5db538=>{const _0x34cf1d=_0x36743d;let _0x48efdb=this['_shapeTextEditingService']['getEditing']();_0x48efdb&&_0x5db538['some'](_0x1c94cb=>_0x1c94cb['drawingId']===_0x48efdb[_0x34cf1d(0x1a5)])&&this['_shapeTextEditingService']['setEditing'](null);}));}[_0x43e8a4(0x182)](){const _0x1da622=_0x43e8a4;this['disposeWithMe'](this[_0x1da622(0x72)][_0x1da622(0x80)][_0x1da622(0x120)](_0x42bf08=>{const _0x213a71=_0x1da622;(_0x42bf08==null?void 0x0:_0x42bf08['visible'])===!0x0&&_0x42bf08[_0x213a71(0xa2)]===this[_0x213a71(0xed)][_0x213a71(0xa2)]?this[_0x213a71(0x194)]??=this[_0x213a71(0x6a)]['beginInteraction']():this['_endLayoutInteraction']();let {scene:_0x1789ac}=this[_0x213a71(0xed)];if(this[_0x213a71(0x226)]){let _0x5abbcf=_0x1789ac[_0x213a71(0x17b)](this[_0x213a71(0x226)]);_0x5abbcf&&_0x5abbcf[_0x213a71(0x15a)](!0x1);}if(_0x42bf08){let _0x157ac2=!!_0x42bf08['visible'],_0x19dc33=_0x1789ac['getObjectIncludeInGroup'](_0x42bf08[_0x213a71(0x166)]);_0x19dc33&&(_0x19dc33[_0x213a71(0x15a)](_0x157ac2),this[_0x213a71(0x226)]=_0x42bf08[_0x213a71(0x166)]);}else this[_0x213a71(0x226)]=null;}));}['_endLayoutInteraction'](){const _0x1aecaf=_0x43e8a4;var _0x47250b;(_0x47250b=this[_0x1aecaf(0x194)])==null||_0x47250b[_0x1aecaf(0xb0)](),this[_0x1aecaf(0x194)]=null;}};ka=q([K(0x1,_0x376ec2(X)),K(0x2,_0x4ed84c),K(0x3,_0x376ec2(_0xf6bc99)),K(0x4,_0x376ec2(_0x3e6ec4))],ka);let Aa=class extends _0x4b2f89{constructor(_0x291bcc,_0x2e2cde,_0x4607ae,_0x5a6361,_0x587a8e,_0x44b2b8,_0x2cec19,_0x87d41f,_0x57f14b,_0x391077){super(_0x291bcc,_0x2e2cde,_0x4607ae,_0x5a6361,_0x587a8e,_0x44b2b8,_0x2cec19,_0x87d41f,_0x57f14b,_0x391077,{'componentKey':Ar,'editorUnitId':kr});}};Aa=q([K(0x1,_0x376ec2(_0x2e2dde)),K(0x2,_0x376ec2(_0x58fb7f)),K(0x3,_0x376ec2(_0x161ebd)),K(0x4,_0x5d4fd5),K(0x5,_0x376ec2(_0x21724d)),K(0x6,_0x376ec2(_0x478335)),K(0x7,_0x376ec2(_0x106c33)),K(0x8,_0x376ec2(_0x3f802a)),K(0x9,_0x376ec2(X))],Aa);let ja=class extends _0x34514a{constructor(_0x2bb791,_0x241c06,_0x3c1d79,_0xf82fac,_0x5a87f5){super(_0x2bb791,_0x241c06,{'editing$':_0x3c1d79['editingParams$'],'resolve':_0xb2d5a3=>{const _0xdd517=_0xe027;var _0x2f90af;let _0x373cab=new _0x7e1ba8(_0xb2d5a3[_0xdd517(0x165)],_0xb2d5a3['offsetY']),_0xb6af2e=((_0x2f90af=_0x2bb791['scene']['getActiveViewportByCoord'](_0x373cab))==null?void 0x0:_0x2f90af[_0xdd517(0x19e)](_0x373cab))??_0x373cab,_0x573b17=_0x2c5cc5(_0x2bb791[_0xdd517(0x71)]['pick'](_0x373cab)??null,_0xb6af2e);if(!(_0x573b17 instanceof Y))return null;let _0x4c6211=_0x573b17[_0xdd517(0x150)](_0xb6af2e);if(!_0x4c6211)return null;let _0x96fa7d=_0x573b17,_0x4f6d90={'componentKey':_0x100f36[_0xdd517(0x256)],'direction':_0xdd517(0x1df),'offset':[0x0,0xa],'onClickOutside':()=>_0x241c06[_0xdd517(0x18e)]()};return{'object':_0x573b17,'info':{..._0x4c6211,'unitId':_0x573b17[_0xdd517(0xa2)],'subUnitId':_0x573b17[_0xdd517(0x2d2)],'shapeKey':_0x573b17[_0xdd517(0xef)],'readonly':!0x0,'copyable':_0x29792c(_0x5a87f5,_0x573b17[_0xdd517(0xa2)],_0x573b17['unitId'],_0x19e39f[_0xdd517(0x20a)])},'attachPopup':()=>_0xf82fac[_0xdd517(0x1f2)](_0x96fa7d,_0x4f6d90,_0x96fa7d[_0xdd517(0xa2)])};}});}};ja=q([K(0x1,_0x376ec2(_0x478335)),K(0x2,_0x376ec2(X)),K(0x3,_0x376ec2(_0x58fb7f)),K(0x4,_0x1b33f3)],ja);let Ma=class extends _0x143425{constructor(_0x20f21e,_0x13c1b8,_0x41525e,_0x63de8e,_0xf405bc,_0x298570,_0x5157de,_0x471456,_0x3de8bd,_0x4f2844,_0x40e5cd,_0x2089e3){const _0x491d96=_0x43e8a4;super(),this[_0x491d96(0x7b)]=_0x20f21e,this[_0x491d96(0x1c9)]=_0x13c1b8,this[_0x491d96(0x2b7)]=_0x41525e,this[_0x491d96(0x17f)]=_0x63de8e,this[_0x491d96(0x267)]=_0xf405bc,this[_0x491d96(0x10c)]=_0x298570,this[_0x491d96(0x282)]=_0x5157de,this[_0x491d96(0x28e)]=_0x471456,this[_0x491d96(0xa3)]=_0x3de8bd,this[_0x491d96(0xfc)]=_0x4f2844,this[_0x491d96(0x72)]=_0x40e5cd,this[_0x491d96(0x218)]=_0x2089e3,J(this,_0x491d96(0x9b),null),J(this,_0x491d96(0x1b1),null),J(this,'_isOpenedShapeEditPanel',!0x1),J(this,'_shapeEditPanelVersion',0x0),J(this,'_disposePopupsByUnit',new Map()),J(this,_0x491d96(0x245),new Map()),this['_initMenu'](),this['disposeWithMe'](this['_univerInstanceService'][_0x491d96(0x2c2)](_0x37d2f3[_0x491d96(0x10d)])[_0x491d96(0x120)](_0x2d75ba=>{const _0x4e8e36=_0x491d96;if(!_0x2d75ba){var _0x859a1c;(_0x859a1c=this[_0x4e8e36(0x9b)])==null||_0x859a1c[_0x4e8e36(0xb0)]();}})),this['_registerOperations'](),this[_0x491d96(0xb3)](this['_drawingManagerService'][_0x491d96(0xa4)][_0x491d96(0x120)](_0x489a08=>{const _0x53238e=_0x491d96;for(let _0x47a100 of _0x489a08){let _0x1034b3=_0x47a100[_0x53238e(0xa2)]+':'+_0x47a100[_0x53238e(0x2d2)]+':'+_0x47a100['drawingId'];for(let [_0x1ff9fa,_0x346000]of this[_0x53238e(0x245)])_0x346000===_0x1034b3&&this[_0x53238e(0x2c0)](_0x1ff9fa,!0x0);}})),this['disposeWithMe'](_0x1d984c(this[_0x491d96(0xa3)],_0x37d2f3[_0x491d96(0x10d)],_0x4337df=>this['_popupMenuListener'](_0x4337df))),this['disposeWithMe'](this[_0x491d96(0x72)][_0x491d96(0x80)][_0x491d96(0x120)](_0x401dbf=>{const _0x4fbbb=_0x491d96;_0x401dbf&&this[_0x4fbbb(0x2c0)](void 0x0,!0x0);})),this[_0x491d96(0xb3)](this[_0x491d96(0x218)][_0x491d96(0x10a)]['subscribe'](()=>{const _0x204061=_0x491d96;this[_0x204061(0x282)]['getFocusDrawings']()['some'](_0xe8a444=>_0xe8a444[_0x204061(0x119)]===_0x1652cd['DRAWING_SHAPE']&&this[_0x204061(0x7b)][_0x204061(0x177)](_0xe8a444[_0x204061(0xa2)])===_0x37d2f3[_0x204061(0x10d)]&&!this[_0x204061(0xcf)](_0xe8a444[_0x204061(0xa2)],_0xe8a444[_0x204061(0x198)]))&&(this[_0x204061(0x2c0)](void 0x0,!0x0),this[_0x204061(0x2bd)]());}));}[_0x43e8a4(0x23e)](){const _0x8de1a4=_0x43e8a4;this[_0x8de1a4(0x2b7)]['mergeMenu'](Li);}[_0x43e8a4(0x1bc)](_0x2f2a44,_0x115419,_0x178c05,_0x5e48e3){const _0x5ee824=_0x43e8a4;return[{'label':_0x5ee824(0xa8),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x2f2a44,'subUnitId':_0x115419,'drawingId':_0x178c05},'disable':_0x5e48e3===_0x1652cd[_0x5ee824(0x271)]},{'label':_0x5ee824(0xd0),'index':0x1,'commandId':_0x1dc354['id'],'commandParams':{'unitId':_0x2f2a44,'drawings':[{'unitId':_0x2f2a44,'subUnitId':_0x115419,'drawingId':_0x178c05}]},'disable':!0x1},{'label':'docs-shape-ui.hidePanel','index':0x2,'commandId':Bi['id'],'commandParams':{'unitId':_0x2f2a44,'subUnitId':_0x115419,'drawingId':_0x178c05},'disable':!0x1}];}['_getShapeInfo'](_0x3ea9b9,_0x10442a,_0x53939b){const _0xe76051=_0x43e8a4;let _0x11a521=this[_0xe76051(0x17f)][_0xe76051(0x20c)](_0x3ea9b9,_0x10442a,_0x53939b),_0x316ce0=this['_docsShapeService'][_0xe76051(0x274)](_0x3ea9b9,_0x10442a,_0x53939b);return _0x11a521!==void 0x0&&_0x316ce0!==void 0x0?{'shapeData':_0x316ce0,'shapeId':_0x53939b,'shapeType':_0x11a521,'unitId':_0x3ea9b9,'subUnitId':_0x10442a,'version':this[_0xe76051(0x231)],'disableShapeOption':!0x1}:null;}[_0x43e8a4(0x2c0)](_0x590c05,_0x3f9890=!0x1){const _0x55537b=_0x43e8a4;if(_0x590c05==null){[...this[_0x55537b(0xdc)][_0x55537b(0x20d)]()][_0x55537b(0xd6)](_0x9ae27c=>this[_0x55537b(0x2c0)](_0x9ae27c,_0x3f9890));return;}let _0x5880cd=this[_0x55537b(0xdc)][_0x55537b(0x7a)](_0x590c05);if(_0x5880cd){for(let _0x4d9785=_0x5880cd[_0x55537b(0x1ee)]-0x1;_0x4d9785>=0x0;--_0x4d9785){let _0x1ea5b4=_0x5880cd[_0x4d9785];(_0x3f9890||_0x1ea5b4['canDispose']())&&(_0x1ea5b4['dispose'](),_0x5880cd[_0x55537b(0x180)](_0x4d9785,0x1));}_0x5880cd[_0x55537b(0x1ee)]===0x0&&(this['_disposePopupsByUnit'][_0x55537b(0x13c)](_0x590c05),this['_popupTargetKeys'][_0x55537b(0x13c)](_0x590c05));}}[_0x43e8a4(0x118)](_0x3493c8){const _0x1c1146=_0x43e8a4;let _0x476a10=this[_0x1c1146(0xdc)][_0x1c1146(0x7a)](_0x3493c8);if(_0x476a10)return _0x476a10;let _0x1b67c9=[];return this[_0x1c1146(0xdc)][_0x1c1146(0x290)](_0x3493c8,_0x1b67c9),_0x1b67c9;}['_popupMenuListener'](_0x3a7fe1){const _0x570f22=_0x43e8a4;var _0xfe51af;let _0x2b8969=new _0x4bf1ef(),_0x1c6518=(_0xfe51af=this['_renderManagerService'][_0x570f22(0x183)](_0x37d2f3[_0x570f22(0x10d)])[_0x570f22(0x2d0)](_0x404bd7=>_0x404bd7['scene']['getTransformerByCreate']()===_0x3a7fe1))==null?void 0x0:_0xfe51af[_0x570f22(0xa2)];return _0x1c6518&&(_0x2b8969[_0x570f22(0x106)](_0x3a7fe1[_0x570f22(0x1ac)]['subscribe'](()=>this[_0x570f22(0xa9)](_0x3a7fe1,_0x1c6518))),_0x2b8969[_0x570f22(0x106)](_0x3a7fe1['clearControl$']['subscribe'](()=>{const _0x4b91eb=_0x570f22;this[_0x4b91eb(0x2c0)](_0x1c6518),queueMicrotask(()=>{const _0x121fb6=_0x4b91eb;_0x3a7fe1[_0x121fb6(0x103)]()[_0x121fb6(0x73)]>0x0||!this['_drawingManagerService'][_0x121fb6(0x2bf)]()[_0x121fb6(0x1f5)](_0x4d7485=>_0x4d7485['unitId']===_0x1c6518)||(this[_0x121fb6(0xfc)][_0x121fb6(0x25c)](_0x2f74ce,!0x1),this[_0x121fb6(0x282)][_0x121fb6(0xd9)](null));});})),_0x2b8969[_0x570f22(0x106)](_0x3a7fe1[_0x570f22(0x190)]['subscribe'](()=>{const _0xb7d87e=_0x570f22;this[_0xb7d87e(0x2c0)](_0x1c6518,!0x0);}))),_0x2b8969;}[_0x43e8a4(0xa9)](_0x539cd6,_0x459758){const _0x38774b=_0x43e8a4;let _0x49103a=_0x539cd6['getSelectedObjectMap']();if(this['_isOpenedShapeEditPanel']){this[_0x38774b(0x2c0)](_0x459758,!0x0);return;}if(_0x49103a[_0x38774b(0x73)]>0x1){this[_0x38774b(0x2c0)](_0x459758);return;}let _0x36618b=_0x49103a[_0x38774b(0x22d)]()['next']()[_0x38774b(0x152)];if(!_0x36618b){this[_0x38774b(0x2c0)](_0x459758);return;}let _0x2bfa03=this[_0x38774b(0x282)][_0x38774b(0xc6)](_0x36618b[_0x38774b(0xef)]);if(!_0x2bfa03||_0x2bfa03[_0x38774b(0x119)]!==_0x1652cd[_0x38774b(0x156)]){this[_0x38774b(0x2c0)](_0x459758);return;}let {unitId:_0x303bdb,subUnitId:_0x26b744,drawingId:_0x504273,drawingType:_0x4a6890}=_0x2bfa03;if(!this[_0x38774b(0xcf)](_0x303bdb,_0x504273)){this[_0x38774b(0x2c0)](_0x459758,!0x0);return;}let _0x51457e=this[_0x38774b(0x277)](_0x303bdb,_0x26b744,_0x504273);if(!_0x51457e){this['_clearPopups'](_0x459758);return;}let _0x26b56b=this[_0x38774b(0xdc)][_0x38774b(0x7a)](_0x459758),_0x434a3e=_0x303bdb+':'+_0x26b744+':'+_0x504273;if(this[_0x38774b(0x245)][_0x38774b(0x7a)](_0x459758)===_0x434a3e&&_0x26b56b&&_0x26b56b[_0x38774b(0x1ee)]>0x0)return;this[_0x38774b(0x2c0)](_0x459758);let _0x1f39e0=this[_0x38774b(0xa3)]['getRenderUnitById'](_0x303bdb),_0x3a2319=((_0x1f39e0==null?void 0x0:_0x1f39e0[_0x38774b(0x193)])===!0x1?_0x1f39e0[_0x38774b(0x178)](_0x58fb7f):this[_0x38774b(0x28e)])[_0x38774b(0x1f2)](_0x36618b,this[_0x38774b(0xd2)](_0x51457e,_0x4a6890),_0x303bdb);this[_0x38774b(0xb3)](_0x3a2319),this[_0x38774b(0x118)](_0x459758)[_0x38774b(0x241)](_0x3a2319),this[_0x38774b(0x245)][_0x38774b(0x290)](_0x459758,_0x434a3e),this[_0x38774b(0x282)][_0x38774b(0x2bf)]()[_0x38774b(0x1f5)](_0x408445=>_0x408445[_0x38774b(0xa2)]===_0x303bdb&&_0x408445['subUnitId']===_0x26b744&&_0x408445[_0x38774b(0x198)]===_0x504273)||this[_0x38774b(0x282)][_0x38774b(0xd9)]([{'unitId':_0x303bdb,'subUnitId':_0x26b744,'drawingId':_0x504273}]);}[_0x43e8a4(0xd2)](_0x121418,_0x6846f9){const _0x567d61=_0x43e8a4;return{'componentKey':da,'requiresStableLayout':!0x1,'direction':'vertical-center','offset':[0x0,_0x274783],'extraProps':{'unitId':_0x121418[_0x567d61(0xa2)],'subUnitId':_0x121418['subUnitId'],'drawingId':_0x121418[_0x567d61(0x1a5)],'drawingType':_0x6846f9,'shapeType':_0x121418[_0x567d61(0x6d)],'shapeData':_0x121418[_0x567d61(0x240)]}};}['_canEditShape'](_0x19fbb9,_0x179d1e){const _0x4b4fd0=_0x43e8a4;let _0x201b1b=this[_0x4b4fd0(0x7b)][_0x4b4fd0(0x254)](_0x19fbb9,_0x37d2f3[_0x4b4fd0(0x10d)]);if(!_0x201b1b)return!0x1;let _0x18106f=_0x34c0dc(_0x201b1b,_0x179d1e);return _0xaad49(this['_permissionService'],_0x19fbb9,[..._0x1ed368(_0x201b1b,_0x18106f,_0x4b4fd0(0x292),_0x179d1e),_0x17c75c(_0x18106f,_0x4b4fd0(0x292),_0x179d1e)]);}[_0x43e8a4(0x2d3)](){const _0x4949e6=_0x43e8a4;this[_0x4949e6(0xb3)](this[_0x4949e6(0x10c)][_0x4949e6(0x1b3)](_0x1e7b77=>{const _0x57954e=_0x4949e6;if(_0x1e7b77['id']===G['id']){let {unitId:_0x32222c,subUnitId:_0x155de5,drawingId:_0x4f34af}=_0x1e7b77[_0x57954e(0x132)];this[_0x57954e(0x231)]+=0x1,this[_0x57954e(0x1b1)]=this[_0x57954e(0x277)](_0x32222c,_0x155de5,_0x4f34af),this[_0x57954e(0x2c0)](void 0x0,!0x0),this['_openShapeEditPanel']();}if(_0x1e7b77['id']===Bi['id']&&(this[_0x57954e(0x1b1)]=null,this[_0x57954e(0x2bd)]()),_0x1e7b77['id']===_0x4aaefb['id']){let {unitId:_0x501939,shapeId:_0x38e981}=_0x1e7b77['params'];if(this['_activeShapeInfo']&&this[_0x57954e(0x1b1)][_0x57954e(0x1a5)]===_0x38e981){let _0x44ca83=this[_0x57954e(0x277)](_0x501939,this[_0x57954e(0x1b1)][_0x57954e(0x2d2)],_0x38e981);_0x44ca83&&(this[_0x57954e(0x231)]+=0x1,_0x44ca83[_0x57954e(0x1bd)]=this[_0x57954e(0x231)],this[_0x57954e(0x1b1)]=_0x44ca83,this[_0x57954e(0x21a)]&&this[_0x57954e(0x10e)]());}}})),this[_0x4949e6(0xb3)](this[_0x4949e6(0x282)]['focus$'][_0x4949e6(0x120)](_0xb2d469=>{const _0xc25e90=_0x4949e6;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0xb2d469['length']===0x0){this[_0xc25e90(0x1b1)]=null,this[_0xc25e90(0x2bd)]();return;}if(_0xb2d469[_0xc25e90(0x1ee)]===0x1&&_0xb2d469[0x0][_0xc25e90(0x119)]===_0x1652cd[_0xc25e90(0x156)]&&(this[_0xc25e90(0x231)]+=0x1,this[_0xc25e90(0x1b1)]=this[_0xc25e90(0x277)](_0xb2d469[0x0][_0xc25e90(0xa2)],_0xb2d469[0x0][_0xc25e90(0x2d2)],_0xb2d469[0x0][_0xc25e90(0x198)]),this[_0xc25e90(0x1b1)])){this[_0xc25e90(0x10e)]();return;}let _0x5b416d=_0xb2d469['filter'](_0x43cb03=>_0x43cb03[_0xc25e90(0x119)]===_0x1652cd[_0xc25e90(0x156)]);if(_0xb2d469[_0xc25e90(0x1ee)]>0x1&&_0x5b416d[_0xc25e90(0x1ee)]===_0xb2d469[_0xc25e90(0x1ee)]){if(this[_0xc25e90(0x231)]+=0x1,this[_0xc25e90(0x1b1)]=this[_0xc25e90(0x277)](_0xb2d469[0x0]['unitId'],_0xb2d469[0x0][_0xc25e90(0x2d2)],_0xb2d469[0x0][_0xc25e90(0x198)]),this['_activeShapeInfo']){this[_0xc25e90(0x10e)]();return;}}else{if(this[_0xc25e90(0x231)]+=0x1,this[_0xc25e90(0x1b1)]=this['_getShapeInfo'](_0xb2d469[0x0][_0xc25e90(0xa2)],_0xb2d469[0x0][_0xc25e90(0x2d2)],_0xb2d469[0x0][_0xc25e90(0x198)]),this[_0xc25e90(0x1b1)]){this[_0xc25e90(0x1b1)][_0xc25e90(0x1cc)]=!0x0,this[_0xc25e90(0x10e)]();return;}}this[_0xc25e90(0x2bd)]();}));}[_0x43e8a4(0x10e)](){const _0x33a63b=_0x43e8a4;this[_0x33a63b(0x1b1)]&&(this[_0x33a63b(0x9b)]=this[_0x33a63b(0x1c9)]['open']({'id':W,'header':{'title':this[_0x33a63b(0x267)]['t'](_0x33a63b(0x21d))},'width':0x184,'children':{'label':W,...this['_activeShapeInfo']},'onClose':()=>{const _0x103062=_0x33a63b;this[_0x103062(0x282)][_0x103062(0xd9)](null),this[_0x103062(0xfc)][_0x103062(0x25c)](_0x2f74ce,!0x1),this[_0x103062(0x9b)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0x43e8a4(0x2bd)](){const _0x363556=_0x43e8a4;this[_0x363556(0x21a)]=!0x1,this[_0x363556(0x1c9)]['close'](W),this[_0x363556(0x9b)]=null,this[_0x363556(0xfc)][_0x363556(0x25c)](_0x2f74ce,!0x1),this['_drawingManagerService']['focusDrawing'](null);}};Ma=q([K(0x0,_0x58ad01),K(0x1,_0x376ec2(_0x5cd437)),K(0x2,_0x354de5),K(0x3,_0x376ec2(_0x3e6ec4)),K(0x4,_0x376ec2(_0x474b31)),K(0x5,_0x5d4fd5),K(0x6,_0x4ed84c),K(0x7,_0x376ec2(_0x58fb7f)),K(0x8,_0x20175c),K(0x9,_0x46b73a),K(0xa,_0x376ec2(X)),K(0xb,_0x1b33f3)],Ma);let Na=class extends _0x143425{constructor(_0x189f1d,_0x43b57b){const _0x2c4fa1=_0x43e8a4;super(),this[_0x2c4fa1(0x17f)]=_0x189f1d,this[_0x2c4fa1(0x267)]=_0x43b57b,this[_0x2c4fa1(0xb3)](_0x44b80c(_0x387221((_0x4f8b75,_0x3481d8,_0x1fca2f)=>this[_0x2c4fa1(0x78)](_0x4f8b75,_0x3481d8,_0x1fca2f))));}[_0x43e8a4(0x78)](_0x14b2e4,_0x2f4b9f,_0x4ff36f){const _0xa42022=_0x43e8a4;let _0x390107=this[_0xa42022(0x17f)][_0xa42022(0x100)](_0x14b2e4,_0x2f4b9f);if(!_0x390107)return null;let _0x5a2945=_0x390107[_0xa42022(0x299)](),_0x4be86e=_0x94d984(_0x5a2945),_0x5aef33=_0x5a2945['shapeText'];if(!_0x5aef33||_0x4be86e[_0xa42022(0x1a9)]!==_0x4b45c6[_0xa42022(0x263)])return null;let _0x39582b=_0x4ff36f[_0xa42022(0xc8)],_0x2fec33=_0x4ff36f[_0xa42022(0x2a7)];_0x390107[_0xa42022(0x2bc)]({'width':_0x39582b,'height':_0x2fec33});let _0x431e7a=_0x390107[_0xa42022(0x131)]({'left':0x0,'top':0x0,'width':_0x39582b,'height':_0x2fec33}),_0x66e563=_0x33266c('dataModel'in _0x5aef33?_0x5aef33['dataModel']:void 0x0),_0x4adb9e=(_0x66e563==null?void 0x0:_0x66e563['doc'])??(_0xa42022(0x145)in _0x5aef33?_0x5e99a9(_0x5aef33,_0x2f4b9f+'-layout'):null);if(!_0x4adb9e)return null;let _0x226690=_0x4b8d5f({'documentData':_0x4adb9e,'height':_0x2fec33,'shapeData':_0x5a2945,'textRect':_0x431e7a,'width':_0x39582b,'widthBuffer':0x0});_0x226690&&({width:_0x39582b,height:_0x2fec33}=_0x226690,_0x390107[_0xa42022(0x2bc)]({'width':_0x39582b,'height':_0x2fec33}),_0x431e7a=_0x390107[_0xa42022(0x131)]({'left':0x0,'top':0x0,'width':_0x39582b,'height':_0x2fec33}));let _0x29b09a=_0x5aef33[_0xa42022(0x2cb)]!==!0x1,_0x116990=_0x26bed1(_0x4adb9e,{'isHorizontal':_0x29b09a,'textRect':_0x431e7a,'verticalAlign':_0x66e563==null?void 0x0:_0x66e563['va'],'horizontalAlign':_0x66e563==null?void 0x0:_0x66e563['ha'],'wrapStrategy':_0xd357af(_0x5a2945)}),_0x55155d=new _0x2925ba(_0x116990),_0x39a1bf=new _0x4be549(_0x55155d),_0x3bf27b=_0x122642['create'](_0x39a1bf,this['_localeService']);try{var _0x55adb5,_0x275868;_0x3bf27b[_0xa42022(0xf3)]();let _0x19e971=((_0x55adb5=_0x3bf27b[_0xa42022(0x238)]())==null?void 0x0:_0x55adb5['pages'])??[],_0x4e0d25=_0x19e971[_0x19e971[_0xa42022(0x1ee)]-0x1],_0x2a0ed7=_0x4e0d25?Math['max'](0x0,((_0x275868=_0x5d8276(_0x4e0d25))==null?void 0x0:_0x275868[_0xa42022(0xd1)])??0x0):0x0,_0x30130a=_0x3bf27b[_0xa42022(0xf0)]()[_0xa42022(0x199)]+_0x2a0ed7-(_0x29b09a?_0x431e7a[_0xa42022(0x204)]:_0x431e7a[_0xa42022(0x7d)]);return Number['isFinite'](_0x30130a)?_0x29b09a?{'width':_0x39582b,'height':Math[_0xa42022(0x75)](0x1,_0x2fec33+_0x30130a)}:{'width':Math[_0xa42022(0x75)](0x1,_0x39582b+_0x30130a),'height':_0x2fec33}:null;}finally{_0x3bf27b[_0xa42022(0xb0)](),_0x39a1bf['dispose'](),_0x55155d[_0xa42022(0xb0)]();}}};Na=q([K(0x0,_0x376ec2(_0x3e6ec4)),K(0x1,_0x376ec2(_0x474b31))],Na);function _0xe027(_0x1f4139,_0x427651){_0x1f4139=_0x1f4139-0x67;const _0x3d03bb=_0x3d03();let _0xe02794=_0x3d03bb[_0x1f4139];return _0xe02794;}let $=class extends _0x48417e{constructor(_0xc9c907=Hi,_0x5a997b,_0x5c8c7e,_0x4bdcee,_0x15851e){const _0x23ad2e=_0x43e8a4;super(),this[_0x23ad2e(0x28d)]=_0xc9c907,this[_0x23ad2e(0x1ae)]=_0x5a997b,this[_0x23ad2e(0x10c)]=_0x5c8c7e,this[_0x23ad2e(0x1f3)]=_0x4bdcee,this[_0x23ad2e(0xa3)]=_0x15851e;let {menu:_0x23b168,..._0x3fd391}=_0x77c685({},Hi,this['_config']);_0x23b168&&this[_0x23ad2e(0x1f3)]['setConfig']('menu',_0x23b168,{'merge':!0x0}),this[_0x23ad2e(0x1f3)][_0x23ad2e(0x211)](Vi,_0x3fd391),this['_initCommands']();}[_0x43e8a4(0x257)](){const _0x59f9b6=_0x43e8a4;_0x1fed5b(this['_injector'],this['_getDependencies']()),this[_0x59f9b6(0x1ae)][_0x59f9b6(0x7a)](wa),this[_0x59f9b6(0x160)]();}[_0x43e8a4(0x22a)](){return[[wa],[Ma],[Ca],[Z],[Xi],[Ji],[Ir],[aa],[Na],[X],[Sa]];}[_0x43e8a4(0x22b)](){const _0x5cc64e=_0x43e8a4;this[_0x5cc64e(0x1fa)]()['forEach'](_0x2679a1=>{const _0x5da197=_0x5cc64e;this[_0x5da197(0xb3)](this[_0x5da197(0xa3)]['registerRenderModule'](_0x37d2f3[_0x5da197(0x10d)],_0x2679a1));}),_0xd342cc(this['_injector'],[[Ma],[Ca],[Z],[Xi],[Ir],[aa],[Na],[X],[Sa]]);}['_getRenderModules'](){return[[Ji],[ka],[ja],[Ta]];}['onRendered'](){const _0x44c44a=_0x43e8a4;this['disposeWithMe'](this[_0x44c44a(0xa3)][_0x44c44a(0x1b2)](_0x37d2f3['UNIVER_DOC'],[Aa]));}['_initCommands'](){const _0x128220=_0x43e8a4;[U,Bi,G,Mr,Pr,Fr]['forEach'](_0x3f5291=>this['disposeWithMe'](this[_0x128220(0x10c)][_0x128220(0x70)](_0x3f5291)));}[_0x43e8a4(0x160)](){const _0x5c7364=_0x43e8a4;let _0xe2e0db=this[_0x5c7364(0x1ae)],_0x3a0b08=_0xe2e0db['get'](_0x4c7e7e);this['disposeWithMe'](_0x3a0b08[_0x5c7364(0x14b)](_0x40e763[_0x5c7364(0x1c8)],()=>_0x3697e2(va,_0xe2e0db)));}};J($,_0x43e8a4(0x297),_0x37d2f3[_0x43e8a4(0x10d)]),J($,_0x43e8a4(0x10f),'DOCS_SHAPE_UI_PLUGIN'),J($,_0x43e8a4(0x1c4),Ri),J($,_0x43e8a4(0x1bd),zi),$=q([_0x1a58e1(_0x1f5858,_0x3dc614,_0x41fe11,_0x1896a6,_0x55fd02,_0x4a2dcb,_0x2830ac,_0x34d5cc,_0x2e07fc,_0x40cd8a),K(0x1,_0x376ec2(_0x3fea17)),K(0x2,_0x5d4fd5),K(0x3,_0x47ac1d),K(0x4,_0x20175c)],$);export{Li as DocsShapeUIMenuSchema,Q as UniverDocsShapeMobileUIPlugin,$ as UniverDocsShapeUIPlugin};
|