@univerjs-pro/docs-shape-ui 1.4.0 → 1.5.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/README.md +7 -7
- 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.css +5 -4
- 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 +22 -22
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2c096c=_0x210f;(function(_0x50b20e,_0x27dcbc){const _0x446ac4=_0x210f,_0x1e6f4d=_0x50b20e();while(!![]){try{const _0x1c9b95=-parseInt(_0x446ac4(0x25b))/0x1*(parseInt(_0x446ac4(0x45c))/0x2)+parseInt(_0x446ac4(0x281))/0x3*(-parseInt(_0x446ac4(0x1ed))/0x4)+parseInt(_0x446ac4(0x41d))/0x5+-parseInt(_0x446ac4(0x49a))/0x6*(-parseInt(_0x446ac4(0x2e3))/0x7)+parseInt(_0x446ac4(0x458))/0x8+parseInt(_0x446ac4(0x28d))/0x9*(parseInt(_0x446ac4(0x2d5))/0xa)+parseInt(_0x446ac4(0x1de))/0xb*(-parseInt(_0x446ac4(0x420))/0xc);if(_0x1c9b95===_0x27dcbc)break;else _0x1e6f4d['push'](_0x1e6f4d['shift']());}catch(_0x3ed4d9){_0x1e6f4d['push'](_0x1e6f4d['shift']());}}}(_0x3a82,0x7dfb3),Object[_0x2c096c(0x44e)](exports,Symbol[_0x2c096c(0x3d3)],{'value':'Module'}));let e=require('@univerjs-pro/shape-editor-ui'),t=require('@univerjs/docs-ui'),n=require('@univerjs/ui'),r=require('@univerjs-pro/docs-shape'),i=require('@univerjs-pro/engine-shape'),a=require('@univerjs-pro/shape-editor'),o=require('@univerjs/core'),s=require('@univerjs/docs'),c=require('@univerjs/docs-drawing'),l=require('@univerjs/engine-render'),u=require('@univerjs/drawing'),d=require('@univerjs/drawing-ui'),f=require('react/jsx-runtime'),p=require('rxjs'),m=require('@univerjs-pro/license'),h=require('@univerjs/docs-drawing-ui'),g=require('@univerjs/icons'),_=require('@univerjs/design'),v=require('react'),y=require('@univerjs/protocol');function b(_0x467ddf,_0x34f354){const _0x1baead=_0x2c096c;if(_0x34f354){if((0x0,i[_0x1baead(0x4b0)])(_0x467ddf)&&(_0x34f354[_0x1baead(0x2eb)]||_0x34f354[_0x1baead(0x31a)]))return{'ln':{'startArrow':_0x34f354[_0x1baead(0x2eb)]?{'type':i[_0x1baead(0x418)]['Arrow'],'size':i[_0x1baead(0x31f)][_0x1baead(0x42b)]}:void 0x0,'endArrow':_0x34f354['endArrow']?{'type':i[_0x1baead(0x418)][_0x1baead(0x38e)],'size':i[_0x1baead(0x31f)][_0x1baead(0x1e0)]}:void 0x0}};if(_0x467ddf===i['ShapeTypeEnum'][_0x1baead(0x1c1)]&&(_0x34f354[_0x1baead(0x305)]||_0x34f354[_0x1baead(0x2e8)]))return(0x0,a[_0x1baead(0x3f6)])({'fill':{'fillType':i[_0x1baead(0x38b)][_0x1baead(0x2a6)],'color':_0x1baead(0x2dc)},'isHorizontal':!!_0x34f354['horizontal'],'stroke':{'lineStrokeType':i[_0x1baead(0x1e8)]['SolidLine'],'width':0x1,'color':_0x1baead(0x2ae)}});}}function x(_0x568244,_0x42484a){const _0x3b2689=_0x2c096c;var _0x40f144;let _0x1d1e7d=_0x42484a['segmentId']??'',_0xfa945d=(_0x40f144=_0x568244['getSelfOrHeaderFooterModel'](_0x1d1e7d))==null?void 0x0:_0x40f144[_0x3b2689(0x350)]();if(!_0xfa945d)return null;let _0x14ae32=_0xfa945d[_0x3b2689(0x337)]??[],_0x375e06=_0x14ae32[_0x3b2689(0x3cb)](_0x50cab0=>{const _0x3eacf8=_0x3b2689;let _0x48489d=(0x0,o[_0x3eacf8(0x2b5)])(_0xfa945d,_0x50cab0);return _0x42484a[_0x3eacf8(0x357)]>=_0x48489d&&_0x42484a[_0x3eacf8(0x357)]<=_0x50cab0[_0x3eacf8(0x255)];})??_0x14ae32[_0x14ae32[_0x3b2689(0x472)]-0x1];return _0x375e06?{'paragraphId':_0x375e06[_0x3b2689(0x2e2)],'segmentId':_0x1d1e7d,'position':r[_0x3b2689(0x359)][_0x3b2689(0x431)],'offset':_0x42484a[_0x3b2689(0x357)]-(0x0,o[_0x3b2689(0x2b5)])(_0xfa945d,_0x375e06)}:null;}function S(_0x104ffd,_0x4bacbd,_0x534fae){const _0x37f962=_0x2c096c;var _0x56392b,_0x3f9e88;if(!_0x534fae)return null;let _0x478efe=(_0x56392b=_0x104ffd[_0x37f962(0x328)](l[_0x37f962(0x285)])[_0x37f962(0x233)](_0x4bacbd))==null?void 0x0:_0x56392b[_0x37f962(0x33e)](t[_0x37f962(0x449)])[_0x37f962(0x486)];if(!_0x478efe)return null;let _0x4b55fc=_0x534fae===_0x37f962(0x1b9)?{'startOffset':_0x478efe[_0x37f962(0x3ab)]['endOffset'],'endOffset':_0x478efe[_0x37f962(0x3ab)][_0x37f962(0x4be)]}:_0x478efe[_0x37f962(0x246)];return{'startOffset':_0x4b55fc[_0x37f962(0x357)],'endOffset':_0x4b55fc[_0x37f962(0x4be)],'collapsed':_0x4b55fc[_0x37f962(0x357)]===_0x4b55fc[_0x37f962(0x4be)],'segmentId':((_0x3f9e88=_0x478efe['paragraph'])==null?void 0x0:_0x3f9e88[_0x37f962(0x394)])??''};}const C={'type':o[_0x2c096c(0x1b6)][_0x2c096c(0x1e9)],'id':'doc.command.menu-insert-shape','handler':async(_0x38a31b,_0x2b1abb)=>{const _0x5d0330=_0x2c096c;let _0x5bf40f=_0x38a31b['get'](o[_0x5d0330(0x3a2)])[_0x5d0330(0x289)](o['UniverInstanceType']['UNIVER_DOC']);if(!_0x5bf40f)return!0x1;let _0xbbcf87=_0x38a31b[_0x5d0330(0x328)](o[_0x5d0330(0x2b2)]),_0x3e7863=_0x5bf40f[_0x5d0330(0x201)](),_0x52a22c=_0x2b1abb[_0x5d0330(0x275)]??(0x0,o[_0x5d0330(0x483)])(),_0x2d3eef=_0x2b1abb[_0x5d0330(0x4a9)]??r['DEFAULT_DOC_SHAPE_WIDTH'],_0xecf48c=_0x2b1abb['height']??r[_0x5d0330(0x2c8)],_0x44f1fe=_0x2b1abb[_0x5d0330(0x49c)]??b(_0x2b1abb['value'],_0x2b1abb[_0x5d0330(0x439)]),_0x502d6f=S(_0x38a31b,_0x3e7863,_0x2b1abb[_0x5d0330(0x3c1)])??_0x38a31b[_0x5d0330(0x328)](s[_0x5d0330(0x297)])[_0x5d0330(0x3b0)]();if(!_0x502d6f)return!0x1;let _0x590c1f=x(_0x5bf40f,_0x502d6f);return _0x590c1f?!!_0xbbcf87[_0x5d0330(0x2ee)](r[_0x5d0330(0x32d)]['id'],{'unitId':_0x3e7863,'shapeId':_0x52a22c,'shapeType':_0x2b1abb[_0x5d0330(0x1e4)],'shapeData':_0x44f1fe,'transform':{'width':_0x2d3eef,'height':_0xecf48c},'placement':{'wrappingStyle':c[_0x5d0330(0x241)][_0x5d0330(0x323)],'anchor':_0x590c1f}}):!0x1;}},w='doc.shape.edit.panel',T=_0x2c096c(0x27d),E=_0x2c096c(0x314),D=(0x0,o[_0x2c096c(0x226)])(_0x2c096c(0x360)),O=_0x2c096c(0x2cf),k='DocsShapeTextEditorContainer',A={'id':_0x2c096c(0x2ca),'type':o[_0x2c096c(0x1b6)][_0x2c096c(0x1e9)],'handler':(_0x9d21fa,_0x16d4be)=>{const _0x6e9f26=_0x2c096c;let _0x2dcc20=_0x9d21fa[_0x6e9f26(0x328)](n[_0x6e9f26(0x2ce)]),_0x585186=_0x9d21fa[_0x6e9f26(0x328)](o[_0x6e9f26(0x3dc)]),_0x27ac56=_0x9d21fa[_0x6e9f26(0x328)](u[_0x6e9f26(0x482)]);return(_0x16d4be==null?void 0x0:_0x16d4be[_0x6e9f26(0x1e4)])===_0x6e9f26(0x22b)?(_0x2dcc20['close'](E),!0x0):(_0x2dcc20['open']({'id':E,'header':{'title':_0x585186['t']('docs-shape-ui.objectListPanel.title')},'children':{'label':E},'onClose':()=>{const _0x5f12c4=_0x6e9f26;_0x27ac56[_0x5f12c4(0x45e)](null);},'width':0x168}),!0x0);}},j={'type':o[_0x2c096c(0x1b6)][_0x2c096c(0x3d5)],'id':_0x2c096c(0x3ee),'handler'(){return!0x0;}};function M(_0x5c4fd9){const _0x47d5e4=_0x2c096c;let _0x5a4830=_0x5c4fd9[_0x47d5e4(0x328)](u[_0x47d5e4(0x482)])[_0x47d5e4(0x263)](),_0x309070=_0x5a4830[_0x47d5e4(0x472)]===0x1?_0x5a4830[0x0]:null;if(!_0x309070||_0x309070[_0x47d5e4(0x249)]!==o[_0x47d5e4(0x37c)][_0x47d5e4(0x27e)])return null;let _0x24fede=_0x5c4fd9[_0x47d5e4(0x328)](r['DocsShapeService']),_0x43766e=_0x24fede[_0x47d5e4(0x271)](_0x309070[_0x47d5e4(0x385)],_0x309070['subUnitId'],_0x309070[_0x47d5e4(0x40c)]),_0x351ecc=_0x24fede[_0x47d5e4(0x3c7)](_0x309070[_0x47d5e4(0x385)],_0x309070['subUnitId'],_0x309070[_0x47d5e4(0x40c)]);return _0x43766e===void 0x0||!_0x351ecc?null:{'drawing':_0x309070,'shapeData':_0x351ecc,'shapeType':_0x43766e};}function _0x3a82(){const _0x37d0ff=['fallbackHeight','doc.shape.object-list.panel','onPointerUp$','WRAP_TOP_AND_BOTTOM','_instanceService','docs-shape-ui.deleteShape','permissionPointUpdate$','endArrow','Injector','featurePluginUpdateNotification','URL','_docDrawingShapeRenderController','ShapeArrowSizeEnum','_attachAdjustEvent','DocDrawingTextWrap','forEach','INLINE','forward','getLastLine','_config','getObjectListPanelSectionIdForDrawingType','get','docs-shape-ui.textWrap.square','doc','_contextService','createControl$','InsertDocShapeCommand','fillType','scale','setAdjustValueByName','_toScenePoint','OTHERS','splice','image','docs-shape-ui.shape-format.style-ribbon-control','ShapeFormulaRibbonControl','paragraphs','.below','ArrangeTypeEnum','span','setDocsCustomBlockRenderViewportProvider','getObjectIncludeInGroup','1.2','with','subtle','_adjHandlerPointerUp','_componentManager','getImage','getEditing','clone','ShapeIcon','ShapeFormatSettingIcon','ShapeTextAutoFitType','_docPrintInterceptorService','getScene','useObservable','getTextStyle','srcRect','_initEditingParams','description','GROUP','getBody','front','open','Path','getState','ShapeGroupEnum','setCursor','startOffset','ShapeTextFloatToolbar','DocShapeAnchorPosition','getShapeTextData','isHorizontal','DocsShapeWrapSquareIcon','docs-shape-ui.shape-format.formula-ribbon-control','_props','_docCanvasPopManagerService','SHAPE_TEXT','_menuManagerService','canvas','sheet.image-clip.shape-picker.component','clearActiveDrawingObjects','MoveDownIcon','getDrawingSearch','isHitLine','_completionFrame','drawWith','DisposableCollection','UniverDrawingUIPlugin','_draw','ContextMenuGroup','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_sidebarService','backward','offsetX','DocumentSkeleton','setShapeData','_baseShapeLeft','CONTENT','entries','resolveHyperLinkAt','WRAP_SQUARE','UniverRenderEnginePlugin','dataModel','getMatrix','DrawingTypeEnum','getInverseCoord','getUnitType','label','getDrawingDataForUnit','RibbonInsertGroup','UniverShapeEditorUIPlugin','cancelEditing','isHit','unitId','oKey','disposeWithMe','useMemo','_popupTargetKeys','canDispose','ShapeFillEnum','onRendered','transform','Arrow','clipTop','_imageIoService','getDrawingShapeKeyByDrawingSearch','_handleCreateControl','docs-shape-ui.quickStyles','segmentId','DRAWING_DOM','drawing-ui.objectListPanel.hide','MobileShapeEditorService','UpdateDocShapeDataMutation','getDrawingTypeNameKey','createShapeFormulaDocument','_urlImageService','sectionCanvas','_context','onerror','onDblclick$','executeCommand','clip','IUniverInstanceService','getTransformer','RemoveDocDrawingCommand','_initSelection','fontFamily','shouldAllowShapeTextEditorHostSizeShrink','drawing','_getShapeAdjustInfosById','showContextualTab','moveRange','drawing-ui.objectListPanel.unlockAll','MoveUpIcon','headerLayoutKey','docs-shape-ui.textWrap.inline','getActiveTextRange','Plugin','scene','1em','getDrawingVisible','getShapePopupMenus','DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID','round','debounceRefreshControls','_drawingManagerService','drawing-ui.objectListPanel.close','_releaseRenderCache','Documents','extensionGroups','FormatPainterSessionService','0.14','_baseShapeWidth','paragraphMenuPlacement','connectInjector','getShapeData','FOCUSING_COMMON_DRAWINGS','RichTextEditingMutation','DrawingImageClipService','getShapeDataById','focus$','Inject','SHAPE_CHANGE_PICKER_COMPONENT','find','_getShapePopup','true','_getDependencies','SHAPE_EDITOR_TRANSFORMER_CONFIG','ShapeTextRibbonControl','hasDefault','isRenderLinePointsMode','toStringTag','onStarting','OPERATION','IconManager','reverse','title','UpdateDocDrawingWrappingStyleCommand','getSkeletonData','clearAdjustValue','LocaleService','_canEditShape','panel','animateFormulaPresentation','UpdateDocShapeDataCommand','setConfig','setContextValue','_registerComponents','getDocumentDrawingSegmentId','_drawingType','getPageDrawingIds','_docLayoutInteractionService','clipHeight','svg','canEditDocumentTargets','pluginName','footerId','registerComponent','doc.operation.open-doc-shape-format-panel','shape-text-','object','0\x200\x2020\x2020','_drawSimpleText','getUnit','clearControl$','_canEdit','createShapeTextBoxShapeData','_layoutInteraction','ShapeQuickStyleGallery','fillImageSource','setFallbackVisible','componentKey','docs-shape-ui.ribbon.shape-format.formula-control','_initialize','setFormulaPresentation','actualHeight','rows','docs-shape-ui.shape-format.quick-style-gallery','_visible','_shapeFloatingToolbarService','shapeModel','_commandService','classType','cos','_univerInstanceService','skeDrawings','canvasElement','MenuManagerPosition','drawingId','RENDER_CLASS_TYPE','_activeShapeAdjustPointList','save','shape-editor-ui.toolbar.quickStyles','unsubscribe','onCommandExecuted','BehaviorSubject','shape-editor-ui.toolbar.changeShape','left','-layout','updateShapeFillImage','ShapeArrowTypeEnum','DocEventManagerService','type','DocumentDataModel','adjName','4016020UvLZbr','_clipService','registerRenderModule','12NrTuRR','registerClipDelegate','applyQuickStyleToShapeData','useFormulaShapeToolbar','docs-shape-text-','isRichText','render','updateDocumentDataMargin','height','DocsShapeWrapInlineIcon','_isStartAdjusting','Medium','drawing-ui.objectListPanel.empty','next','_endLayoutInteraction','_onSavingEditorData$','_unitId','OFFSET','error','includes','invert','indexOf','resolveFormulaShapeAutoFitSize','_getFocusedShapeAtPoint','_adjName','enhanceParams','FromArray','register','disableObjectsEvent','icon','touchDependencies','drawing-ui.objectListPanel.unlock','startWith','_shapeEditPanelVersion','addObject','_initCommands','M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','drawing-ui.objectListPanel.filterAll','_disposePopupsByUnit','useDependency','max','DocParagraphMenuService','beginInteraction','getDrawingPoints','ContextMenuPosition','ancestorTransform','defineProperty','_activeShapeInfo','refreshFormulaPresentation','isInGroup','_updateShapeAdjustControls','_getShapeAdjustPointListById','enableObjectsEvent','onPointerMove$','ObjectPermissionButton','shapeText','2574296SPtvfn','refreshShapeFillImage','filter','Fragment','11550LgMGVh','TRUE','focusDrawing','_popupMenuListener','changing$','getAutoFitPresentations','_formulaAnimation','_adjustPointObjects','refreshAdjustControls','getCurrentTypeOfUnit$','bindRenderTransformerLifecycle','subUnitId','UniverDrawingMobileUIPlugin','useEffect','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','src','PARAGRAPH','_editingParams$','_renderWithCache','UniverDrawingPlugin','UniverShapeEditorMobileUIPlugin','unregister','length','getInterceptPoints','clear','options','BUTTON','engine','currentAdjustValues','_activeShapeModel','DocsShapeWrapInFrontOfTextIcon','DocumentEntity','PositionedObjectLayoutType','ShapeRenderModeEnum','UniverDocsPlugin','push','IURLImageService','prepareShapeTextDocumentData','IDrawingManagerService','generateRandomId','docs-shape-ui.mobile.text','getDrawingOrder','activeTarget','_iconManager','_registerOperations','string','MobileDocDrawingTextWrap','docs-shape-ui.mobile.style','_transformCalculateSrcRect','drawing-ui.objectListPanel.details','isolated','resolveShapeTextEditorWrapStrategy','subscribeEvent','getDocumentEntityParentPermissionObjectIds','_mobileEditorService','setCanUseShapeClip','defer','refreshTransform$','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','UniverDocsDrawingMobileUIPlugin','_getDisposePopups','applyPoint','6SgfibQ','getActualSize','shapeData','changeEnd$','UpdateDocDrawingMetadataCommand','updateContext','_baseShapeTop','IContextService','shapeType','fill','_configService','docs-shape-ui.ribbon.shape-format.wrapping-style','composeMatrix','_loadShapePictureFill','getPresentation','width','merge','resolveShapeTextHyperLinkAt','onReady','ShapeDefaultConfig','drawings','resize','isConnectorShape','isFinite','drawing-ui.objectListPanel.typeNames.','ShapeFloatingToolbarToggleFactory','multiply','calculate','offsetY','_openShapeEditPanel','_updateSrcRectByTransform','getDrawingOKey','resolveShapeTextBodyBehavior','univer-box-border\x20univer-px-4\x20univer-text-sm','OBJECT_LIST_FLOATING_SECTION_ID','drawing-ui.objectListPanel.lock','endOffset','stroke','wrapStrategy','drawing-ui.objectListPanel.dragToReorder','disableShapeOption','_registerDrawingTransformHandler','LEFT','docs-shape-ui.textWrap.inFrontText','_shapeRenderController','_isShouldShowDrawingShapeAdjust','memo','IN_FRONT_OF_TEXT','_formulaShapes','fillImageSourceType','CommandType','doc.shape.picker.component','vertical-center','below','VerticalAlign','ToggleShapeFloatingToolbarOperation','docs-shape-format-font-family-menu','DocDrawingPosition','getShapeTextRect','drawing-ui.objectListPanel.lockHint','isEditing','Rect','getShapeQuickStyleType','_getRenderModules','adjHandleStroke','autoFitType','DOCS_COMPONENT_MAIN_LAYER_INDEX','some','TextWrapShapeIcon','SetDocDrawingArrangeCommand','normalizeShapeTextModel','_shapeTextEditingService','getDrawingByParam','_clearPopups','remove$','SHAPE','IPermissionService','formulaBinding','subscribe','add$','stopPropagation','addImageSourceCache','getShapeModel','function','toDisposable','VIEWPORT_KEY','square','DocumentViewModel','pick','Transform','917081eXXHhO','getOwnPropertyDescriptor','Large','back','createShapeTextHyperLinkRegions','_permissionService','value','setOnSavingEditorData','doc.operation.close-doc-shape-format-panel','_activeShapeId','ShapeLineTypeEnum','COMMAND','flipY','objects','doc-shape-adjust-point-','18412GGvsmB','_docsShapeService','docs-shape-ui.hidePanel','docs-shape-ui.insertShape','BuiltInUIPart','_renderManagerService','UniverDocsShapeMobileUIPlugin','path','_formulaKey','_closeShapeEditPanel','_registerImageShapeClipDelegate','_getActiveDrawingParam','_clearCompletionFrame','getDrawingData','top','values','ShapeTextFloatMenuRenderControllerBase','_registerIcons','setPresentation','_getActiveDrawingShape','getUnitId','TOP','isLineShape','_drawShapeText','UniverDocsShapePlugin','_sidebarDisposable','drawing-ui.objectListPanel.show','FloatingObjectToolbarPosition','flipX','keys','skeTables','text','complete','DRAWING_OBJECT_LAYER_INDEX','drawing-ui.objectListPanel.search','useState','BottomIcon','update$','_init','_drawRichTextLayer','getSnapshot','MenuItemType','ImageSourceTypeEnum','UniverLicensePlugin','_updateAdjustControlPositions','UpdateDrawingDocTransformCommand','flatMap','drawing-ui.objectListPanel.lockAll','add','_subUnitId','_ribbonService','attachTransformerTo','_createShapeAdjustControls','marginTop','5.5','_baseShapeHeight','layoutType','createInternalEditorID','ObjectLayersIcon','spaceBelowApply','clearAdjustControls','presentation','close','contentHeight','transformByState','call','top-bottom','pipe','getDocumentEntityPermissionObjectId','getShapeQuickStylePreset','getRenderUnitById','version','DocsShapeService','Line','drawing-ui.objectListPanel.moveForward','visible','hidden','behind','Image','adjHandleSize','currentColor','color','has','selectable','TextWrappingStyle','clip-','preValue','footerLayoutKey','MobileMenu','menuRange','hideInfoPopup','_injector','drawingType','trim','_hide','getRealBound','MobileShapeEditorControls','_clearShapeAdjustControls','onload','rect','isRender','getCanvasElement','behindDoc','resolveShapeTextDocumentRenderLayout','startIndex','name','docs-shape-ui.textWrap.behindText','CROSSHAIR','1.4.0','skeHeaders','15gsmAaf','updateDocumentStyle','resolveActiveShapeQuickStylePresetId','popup','translateWithPrecision','contentVerticalOffset','adjHandleFill','0.8','getFocusDrawings','resolveShapeTextEditorBehaviorShapeData','_transform','IConfigService','getTextModel','DocsShapeUIMenuSchema','angle','BEHIND_TEXT','jsx','makeDirty','UniverDocsUIPlugin','pageWidth','_adjHandlerPointerMove','dispose','getShapeTypeById','activateDrawingObject','UniverInstanceType','TopmostIcon','shapeId','getImageSourceCache','Shape','PictureFill','_hyperLinkRegions','style','DOCS_SHAPE_UI_PLUGIN','mergeMenu','docs-shape-ui.ribbon.shape-format','DRAWING_SHAPE','jsxs','distinctUntilChanged','618YMJNti','bottom','ShapeFloatingToolbar','ShapeEditPanel','IRenderManagerService','setShapeProps','getAllRenderersOfType','_measure','getCurrentUnitOfType','DocInterceptorService','DocSelectionRenderService','current','999fHfllK','Circle','resetCursor','DrawingCommonPanel','decorate','MobileActionRow','_lastEditingShapeKey','delete','getParent','pages','DocSelectionManagerService','docs-shape-ui.formatShape','getShapeType','restore','prstGeom','DocCanvasPopManagerService','drawing-ui.objectListPanel.sectionFloating','_initMenu','MoreUpIcon','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','docs-shape-ui.crop.shape','DOC_CONTENT_INSERT_MENU_ID','inline','_drawRichText','menu','SolidFill','_getShapeInfo','_initPrinting','UniverDocsMobileUIPlugin','toPrimitive','params','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','packageName','#2563EB','attachPopupToObject','symbol','animationEnabled','ICommandService','_shapeId','onTransformChange$','getParagraphContentStartOffset','map','_updateShape','drawing-ui.objectListPanel.locate','drawing-ui.objectListPanel.collapse','size','SELECTOR','reduce','Observable','_localeService','completeEditing','_shapeFormulaService','_registerDrawingFocusChangeHandler','transformVector2SceneCoord','_loadAndSetImage','plainShapeTextToDocumentData','docs-shape-ui.openPanel','HorizontalAlign','docs-shape-ui.objectListPanel.open','DEFAULT_DOC_SHAPE_HEIGHT','Disposable','doc.operation.open-shape-object-list-panel','getSelectedObjectMap','insertGroupObject','DRAWING_IMAGE','ISidebarService','doc.shape.text.float-menu','UniverDocsShapeUIPlugin','getDrawingEffectBounds','_initEvents','setCollapsedIds','doc.operation.apply-shape-quick-style','21450twCPyB','onPointerDown$','_isOpenedShapeEditPanel','IUIPartsService','data','LAYOUT','_applyFormulaAutoFitSize','#3B82F6','set','MEDIA','ObjectListPanelBase','ShapeFloatingToolbarService','getTransformerByCreate','paragraphId','1898029DmNdUu','MobileShapePickerPanel','drawing-ui.objectListPanel.nameInput','docs-shape-ui.config','UniverDocsDrawingUIPlugin','vertical','registerCommand','parent','startArrow','setFillImage','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','syncExecuteCommand','ShapeTextHyperLinkInfo','Vector2','BooleanNumber','setPrstGeom','docs-shape-ui.shape-format.wrapping-style-label','useReducer','UNIVER_DOC','beginPath','interceptor','_getSceneByUnitId','resolveShapeTextHyperLinkObject','IMenuManagerService','strokeWidth','_activeAdjustInfo','drawFormulaShapeAnimationLayers','shapeKey','UniverShapeEditorPlugin','setSrcRect','EMPTY_PARAGRAPH_MENU_ID','div','_addShapeAdjustControl','DOC_PARAGRAPH_T_INSERT_MENU_ID','horizontal','draw','DocLayoutInteractionService','editingParams$','_initUIPart','_refreshShapeData','doc.shape.edit.panel','sidebarOptions$','behindText','registerDependencies','asObservable','WRAP_NONE','viewBound','setEditing'];_0x3a82=function(){return _0x37d0ff;};return _0x3a82();}const N={'id':_0x2c096c(0x2d4),'type':o['CommandType'][_0x2c096c(0x3d5)],'handler':(_0xc4a07a,_0x110fd6)=>{const _0x498967=_0x2c096c;let _0x399e28=M(_0xc4a07a),_0x4ee123=(0x0,a[_0x498967(0x232)])((_0x110fd6==null?void 0x0:_0x110fd6['presetId'])??(_0x110fd6==null?void 0x0:_0x110fd6['value'])??'');if(!_0x399e28||!_0x4ee123||_0x4ee123['type']!==(0x0,a[_0x498967(0x1c2)])(_0x399e28['shapeData']))return!0x1;let _0x42ad2f=(0x0,a[_0x498967(0x422)])(_0x399e28[_0x498967(0x49c)],_0x4ee123);if(!_0x42ad2f)return!0x1;let {drawing:_0x187f1}=_0x399e28;return _0xc4a07a['get'](o['ICommandService'])[_0x498967(0x3a0)](r[_0x498967(0x3e0)]['id'],{'unitId':_0x187f1[_0x498967(0x385)],'shapeId':_0x187f1[_0x498967(0x40c)],'shapeData':_0x42ad2f,'oldShapeJSON':{'oldShapeData':_0x399e28[_0x498967(0x49c)]}});}},P={'id':'doc.operation.update-shape-type','type':o[_0x2c096c(0x1b6)][_0x2c096c(0x3d5)],'handler':(_0x1e47e0,_0xea2e39)=>{const _0x38c077=_0x2c096c;let _0x14a811=M(_0x1e47e0),_0x50e546=(_0xea2e39==null?void 0x0:_0xea2e39[_0x38c077(0x4a2)])??(_0xea2e39==null?void 0x0:_0xea2e39[_0x38c077(0x1e4)]);if(!_0x14a811||!_0x50e546||(0x0,i[_0x38c077(0x4b0)])(_0x14a811[_0x38c077(0x4a2)])||(0x0,i['isConnectorShape'])(_0x50e546))return!0x1;let _0x43a924=(0x0,a['cloneShapeDataForType'])(_0x14a811['shapeData'],_0x50e546);if(!_0x43a924)return!0x1;let {drawing:_0xa9a133}=_0x14a811;return _0x1e47e0[_0x38c077(0x328)](o[_0x38c077(0x2b2)])[_0x38c077(0x3a0)](r[_0x38c077(0x3e0)]['id'],{'unitId':_0xa9a133['unitId'],'shapeId':_0xa9a133[_0x38c077(0x40c)],'shapeType':_0x50e546,'shapeData':_0x43a924,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x14a811[_0x38c077(0x4a2)],'oldShapeData':_0x14a811[_0x38c077(0x49c)]}});}};function F(_0x3a0ec2,_0x183a8d){return function(_0x2eb6cd,_0x66d670){_0x183a8d(_0x2eb6cd,_0x66d670,_0x3a0ec2);};}function I(_0x5a3022,_0x58d25a,_0x24ddd3,_0x304d8b){const _0x5e79f0=_0x2c096c;var _0x1216ac=arguments[_0x5e79f0(0x472)],_0x466376=_0x1216ac<0x3?_0x58d25a:_0x304d8b===null?_0x304d8b=Object[_0x5e79f0(0x1df)](_0x58d25a,_0x24ddd3):_0x304d8b,_0x460f15;if(typeof Reflect==_0x5e79f0(0x3f0)&&typeof Reflect[_0x5e79f0(0x291)]==_0x5e79f0(0x1d7))_0x466376=Reflect[_0x5e79f0(0x291)](_0x5a3022,_0x58d25a,_0x24ddd3,_0x304d8b);else{for(var _0x43b9b2=_0x5a3022['length']-0x1;_0x43b9b2>=0x0;_0x43b9b2--)(_0x460f15=_0x5a3022[_0x43b9b2])&&(_0x466376=(_0x1216ac<0x3?_0x460f15(_0x466376):_0x1216ac>0x3?_0x460f15(_0x58d25a,_0x24ddd3,_0x466376):_0x460f15(_0x58d25a,_0x24ddd3))||_0x466376);}return _0x1216ac>0x3&&_0x466376&&Object[_0x5e79f0(0x44e)](_0x58d25a,_0x24ddd3,_0x466376),_0x466376;}let L=class extends o['Disposable']{constructor(_0x46e86e,_0x5c4ba8){const _0x271037=_0x2c096c;super(),this[_0x271037(0x41e)]=_0x46e86e,this[_0x271037(0x3b9)]=_0x5c4ba8,this[_0x271037(0x1f7)](),this[_0x271037(0x41e)][_0x271037(0x493)](!0x0),this[_0x271037(0x387)]({'dispose':()=>this[_0x271037(0x41e)][_0x271037(0x493)](!0x1)});}[_0x2c096c(0x1f7)](){const _0x27c283=_0x2c096c;let _0x272f8e=new Map(),_0x1449f9=this[_0x27c283(0x41e)][_0x27c283(0x421)]((_0x431a56,_0x1a127d,_0x388505,_0x4ce7c2,_0x6835c5)=>{const _0x472aee=_0x27c283;let _0x28d5ab=_0x1a127d;if(_0x28d5ab===i['ShapeTypeEnum']['None']||_0x1a127d==='custom')return!0x1;try{let _0x1828e9=_0x272f8e['get'](_0x1a127d);return _0x1828e9||(_0x1828e9=new i['ShapeModel'](_0x28d5ab,_0x472aee(0x242)+_0x1a127d),_0x272f8e[_0x472aee(0x2dd)](_0x1a127d,_0x1828e9)),_0x1828e9[_0x472aee(0x3db)](),_0x6835c5&&Object[_0x472aee(0x20a)](_0x6835c5)[_0x472aee(0x472)]>0x0&&_0x1828e9[_0x472aee(0x373)]({'adjustValues':_0x6835c5},!0x0),_0x1828e9[_0x472aee(0x49f)]({'width':_0x388505,'height':_0x4ce7c2}),_0x1828e9['buildClipPath'](_0x431a56,{'left':0x0,'top':0x0,'width':_0x388505,'height':_0x4ce7c2});}catch{return!0x1;}});this['disposeWithMe'](_0x1449f9),this[_0x27c283(0x387)]({'dispose':()=>_0x272f8e[_0x27c283(0x474)]()});}['clipByShape'](_0x289aff,_0xd46d9c,_0x2d7404,_0x226914,_0x3bddcd){const _0x4f7c8c=_0x2c096c;let _0x564d49=this[_0x4f7c8c(0x3b9)][_0x4f7c8c(0x1fa)](_0x289aff,_0xd46d9c)[_0x2d7404];_0x564d49&&_0x564d49[_0x4f7c8c(0x249)]===o[_0x4f7c8c(0x37c)]['DRAWING_IMAGE']&&this['_drawingManagerService'][_0x4f7c8c(0x31c)]([{..._0x564d49,'prstGeom':_0x226914,'adjustValues':_0x3bddcd}]);}};L=I([F(0x0,(0x0,o['Inject'])(d[_0x2c096c(0x3c6)])),F(0x1,(0x0,o[_0x2c096c(0x3c9)])(u[_0x2c096c(0x482)]))],L);const ee=_0x2c096c(0x1b7),te='doc.image-clip.shape-picker.component';function ne({onShapeClick:_0x380921,excludeGroups:_0x182808}){const _0x424185=_0x2c096c;return(0x0,f[_0x424185(0x26b)])(e['ShapePickerPanel'],{'excludeGroups':_0x182808,'onShapeClick':_0x380921,'scrollContainer':_0x424185(0x2ea)});}function re(){const _0x48bdcf=_0x2c096c;let _0x24d974=(0x0,n[_0x48bdcf(0x447)])(u[_0x48bdcf(0x482)]),_0x21a5dd=(0x0,n['useDependency'])(L);return _0x32df10=>{const _0x48ff66=_0x48bdcf;let _0x573f1e=_0x24d974[_0x48ff66(0x263)]()[_0x48ff66(0x3cb)](_0x13c4f2=>_0x13c4f2[_0x48ff66(0x249)]===o[_0x48ff66(0x37c)][_0x48ff66(0x2cd)]);_0x573f1e&&_0x21a5dd['clipByShape'](_0x573f1e[_0x48ff66(0x385)],_0x573f1e[_0x48ff66(0x467)],_0x573f1e[_0x48ff66(0x40c)],_0x32df10['type']);};}function ie(){const _0x1ded8=_0x2c096c;let _0x4a6ff8=re();return(0x0,f[_0x1ded8(0x26b)])(e['ShapePickerDropdown'],{'buttonLabel':_0x1ded8(0x2a1),'excludeGroups':[e[_0x1ded8(0x355)][_0x1ded8(0x236)]],'onShapeClick':_0x4a6ff8});}function ae(){const _0x1d4108=_0x2c096c;let _0x53abc1=(0x0,n[_0x1d4108(0x447)])(n['ComponentManager']),_0x2cecec=(0x0,n[_0x1d4108(0x447)])(u['IDrawingManagerService']),_0x3d9ee7=(0x0,n['useDependency'])(o[_0x1d4108(0x3a2)]),_0x43232e=_0x2cecec[_0x1d4108(0x263)]()[0x0],_0xb3ac96=_0x43232e?_0x3d9ee7[_0x1d4108(0x37e)](_0x43232e['unitId']):void 0x0,_0x5f6fa8=_0xb3ac96===o[_0x1d4108(0x273)][_0x1d4108(0x2f5)]?te:_0xb3ac96===o['UniverInstanceType']['UNIVER_SHEET']?_0x1d4108(0x363):void 0x0,_0x1ad394=_0x5f6fa8?_0x53abc1[_0x1d4108(0x328)](_0x5f6fa8):void 0x0;return _0x1ad394?(0x0,f[_0x1d4108(0x26b)])(_0x1ad394,{}):null;}function oe({paragraphMenuPlacement:_0x1024d9,PickerComponent:_0x1dd9d8=ne}){const _0x41c826=_0x2c096c;let _0x502f13=(0x0,n[_0x41c826(0x447)])(o['ICommandService']);return(0x0,f['jsx'])(_0x1dd9d8,{'onShapeClick':_0x452c1f=>{const _0x1dfbf8=_0x41c826;_0x502f13[_0x1dfbf8(0x3a0)](C['id'],{'paragraphMenuPlacement':_0x1024d9,'value':_0x452c1f[_0x1dfbf8(0x41a)],'enhanceParams':{'endArrow':_0x452c1f[_0x1dfbf8(0x31a)],'startArrow':_0x452c1f['startArrow'],'horizontal':_0x452c1f[_0x1dfbf8(0x305)],'vertical':_0x452c1f[_0x1dfbf8(0x2e8)]}});}});}function se(_0x439b80){const _0x4584ea=_0x2c096c;return _0x286bec=>({'id':C['id'],'type':n[_0x4584ea(0x216)][_0x4584ea(0x2bb)],'selections':[{'label':{'name':ee,'hoverable':!0x1,'selectable':!0x1,'props':_0x439b80?{'id':C['id'],'paragraphMenuPlacement':_0x439b80}:{'id':C['id']}}}],'icon':_0x4584ea(0x345),'title':'docs-shape-ui.insertShape','tooltip':_0x4584ea(0x1f0),'hidden$':(0x0,n['getMenuHiddenObservable'])(_0x286bec,o[_0x4584ea(0x273)][_0x4584ea(0x2f5)])});}const ce=se(),le=se('below'),ue=se('target');function de(_0x3209bc){const _0x229f40=_0x2c096c;let _0x5eea99=_0x3209bc[_0x229f40(0x328)](n[_0x229f40(0x2ce)]);return{'id':A['id'],'type':n[_0x229f40(0x216)][_0x229f40(0x476)],'icon':'ObjectLayersIcon','title':_0x229f40(0x2c7),'tooltip':_0x229f40(0x2c7),'activated$':(0x0,p[_0x229f40(0x494)])(()=>_0x5eea99[_0x229f40(0x30c)][_0x229f40(0x230)]((0x0,p[_0x229f40(0x440)])(_0x5eea99[_0x229f40(0x475)]),(0x0,p['map'])(_0xacf715=>_0xacf715[_0x229f40(0x238)]===!0x0&&_0xacf715['id']===_0x229f40(0x314)),(0x0,p[_0x229f40(0x280)])())),'hidden$':(0x0,n['getMenuHiddenObservable'])(_0x3209bc,o['UniverInstanceType'][_0x229f40(0x2f5)])};}function R(_0x5948f5,_0x4ed131,_0x38949c,_0xdba607,_0x18a6b7,_0x40df38){const _0x28288b=_0x2c096c;let _0x1399aa={'unitId':_0x4ed131,'shapeId':_0xdba607,'shapeData':_0x40df38,'oldShapeJSON':_0x18a6b7};return _0x5948f5[_0x28288b(0x3a0)](r[_0x28288b(0x3e0)]['id'],_0x1399aa);}function fe(_0x1eb67e,_0x2a4a78,_0x4dccbb,_0x47c7fe,_0x1e1cf6,_0x3a56e3){const _0x2b581b=_0x2c096c;let _0x352189={'unitId':_0x2a4a78,'shapeId':_0x47c7fe,'shapeData':_0x3a56e3,'oldShapeJSON':_0x1e1cf6};return _0x1eb67e[_0x2b581b(0x3a0)](r[_0x2b581b(0x3e0)]['id'],_0x352189);}const pe=_0x2c096c(0x401),me=_0x2c096c(0x335),he='docs-shape-ui.shape-format.text-ribbon-control',ge=_0x2c096c(0x35d),_e=_0x2c096c(0x2f3),ve=[{'value':c[_0x2c096c(0x241)][_0x2c096c(0x323)],'label':'docs-shape-ui.textWrap.inline','icon':_0x2c096c(0x429)},{'value':c['TextWrappingStyle'][_0x2c096c(0x378)],'label':_0x2c096c(0x329),'icon':_0x2c096c(0x35c)},{'value':c['TextWrappingStyle']['WRAP_TOP_AND_BOTTOM'],'label':'docs-shape-ui.textWrap.topAndBottom','icon':'DocsShapeWrapTopBottomIcon'},{'value':c[_0x2c096c(0x241)]['BEHIND_TEXT'],'label':_0x2c096c(0x257),'icon':'DocsShapeWrapBehindTextIcon'},{'value':c[_0x2c096c(0x241)][_0x2c096c(0x1b3)],'label':_0x2c096c(0x4c5),'icon':_0x2c096c(0x47a)}];function ye(){const _0xe932a1=_0x2c096c;let _0x3faca6=(0x0,n['useDependency'])(o[_0xe932a1(0x2b2)]),_0x4868dd=(0x0,n[_0xe932a1(0x447)])(u[_0xe932a1(0x482)]),_0x4eee67=(0x0,n[_0xe932a1(0x447)])(r['DocsShapeService']),_0x1b0ab3=()=>{const _0x5a1589=_0xe932a1;var _0x150baf;let _0x37dc78=_0x4868dd[_0x5a1589(0x263)]();if(_0x37dc78[_0x5a1589(0x472)]!==0x1||((_0x150baf=_0x37dc78[0x0])==null?void 0x0:_0x150baf[_0x5a1589(0x249)])!==o['DrawingTypeEnum']['DRAWING_SHAPE'])return null;let {unitId:_0x2a2837,subUnitId:_0x213345,drawingId:_0x3f23a3}=_0x37dc78[0x0],_0x578c83=_0x4eee67[_0x5a1589(0x271)](_0x2a2837,_0x213345,_0x3f23a3),_0xc7e73c=_0x4eee67[_0x5a1589(0x3c7)](_0x2a2837,_0x213345,_0x3f23a3);return _0x578c83===void 0x0||!_0xc7e73c?null:{'unitId':_0x2a2837,'subUnitId':_0x213345,'drawingId':_0x3f23a3,'shapeType':_0x578c83,'shapeData':_0xc7e73c};},_0x4f96d4=(0x0,n[_0xe932a1(0x34a)])(()=>new p['Observable'](_0x45ac36=>{const _0x57915b=_0xe932a1;let _0x3e92fa=()=>_0x45ac36[_0x57915b(0x42d)](_0x1b0ab3()),_0x409763=_0x4868dd[_0x57915b(0x3c8)][_0x57915b(0x1d2)](_0x3e92fa),_0x159c52=_0x3faca6['onCommandExecuted'](_0x3bf9ce=>{const _0x5443df=_0x57915b;_0x3bf9ce['id']===r[_0x5443df(0x398)]['id']&&_0x3e92fa();});return _0x3e92fa(),()=>{const _0xa641d=_0x57915b;_0x409763[_0xa641d(0x411)](),_0x159c52[_0xa641d(0x270)]();};}),_0x1b0ab3(),!0x1,[_0x3faca6,_0x4eee67,_0x4868dd]);return{'selection':_0x4f96d4,'updateShapeData':_0x2f15d7=>{const _0x134c25=_0xe932a1;_0x4f96d4&&R(_0x3faca6,_0x4f96d4['unitId'],_0x4f96d4[_0x134c25(0x467)],_0x4f96d4[_0x134c25(0x40c)],{'oldShapeData':_0x4f96d4[_0x134c25(0x49c)]},_0x2f15d7);}};}function be(){const _0x4147e8=_0x2c096c;let {selection:_0x4d4682,updateShapeData:_0x3ca977}=ye();return _0x4d4682?(0x0,f['jsx'])(e['ShapeStyleRibbonControl'],{'shapeData':_0x4d4682[_0x4147e8(0x49c)],'shapeType':_0x4d4682[_0x4147e8(0x4a2)],'onUpdateShapeData':_0x3ca977}):null;}function xe(){const _0x3c6329=_0x2c096c;let _0x504c71=(0x0,n[_0x3c6329(0x447)])(o[_0x3c6329(0x2b2)]),_0x5a5cbf=(0x0,n[_0x3c6329(0x447)])(o['LocaleService']),{selection:_0x28efe3}=ye();return _0x28efe3?(0x0,f[_0x3c6329(0x26b)])(e[_0x3c6329(0x3f8)],{'type':(0x0,a[_0x3c6329(0x1c2)])(_0x28efe3[_0x3c6329(0x49c)]),'ariaLabel':_0x5a5cbf['t'](_0x3c6329(0x393)),'activePresetId':(0x0,a[_0x3c6329(0x25d)])(_0x28efe3[_0x3c6329(0x49c)]),'onSelect':_0x110b0d=>_0x504c71['executeCommand'](N['id'],{'presetId':_0x110b0d})}):null;}function Se(){const _0x740c90=_0x2c096c;let {selection:_0x2a990a,updateShapeData:_0x4ec257}=ye();return _0x2a990a?(0x0,f[_0x740c90(0x26b)])(e[_0x740c90(0x3d0)],{'fontFamilyPopupDataComponent':_0x740c90(0x1bc),'shapeData':_0x2a990a[_0x740c90(0x49c)],'onUpdateShapeData':_0x4ec257}):null;}function Ce(){const _0xbb0e9=_0x2c096c;var _0x6eaa5c;let {selection:_0x273518,updateShapeData:_0x345bcc}=ye(),_0x33364c=(0x0,e[_0xbb0e9(0x423)])({'hostType':o[_0xbb0e9(0x273)]['UNIVER_DOC'],'unitId':(_0x273518==null?void 0x0:_0x273518['unitId'])??'','subUnitId':(_0x273518==null?void 0x0:_0x273518[_0xbb0e9(0x467)])??'','shapeId':(_0x273518==null?void 0x0:_0x273518['drawingId'])??'','shapeData':_0x273518==null?void 0x0:_0x273518['shapeData'],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0xbb0e9(0x282),'onUpdateBinding':_0x1756cd=>_0x345bcc({'formulaBinding':_0x1756cd})}),_0x47e1e2=((_0x6eaa5c=_0x33364c[_0xbb0e9(0x3bd)])==null?void 0x0:_0x6eaa5c[_0xbb0e9(0x21b)](_0x33753d=>_0x33753d['actions'])[_0xbb0e9(0x45a)](_0x31f538=>_0x31f538[_0xbb0e9(0x238)]!==!0x1))??[];return _0x273518!=null&&_0x273518[_0xbb0e9(0x49c)][_0xbb0e9(0x1d1)]?(0x0,f[_0xbb0e9(0x26b)])(e[_0xbb0e9(0x336)],{'actions':_0x47e1e2,'panel':_0x33364c[_0xbb0e9(0x3de)]}):null;}function we({value:_0x364088}){const _0x2a6e99=_0x2c096c;let _0x27f937=(0x0,n['useDependency'])(o['LocaleService']),_0x280ed8=ve[_0x2a6e99(0x3cb)](_0x3952ef=>_0x3952ef['value']===_0x364088)??ve[0x0];return _0x280ed8?(0x0,f['jsx'])(_0x2a6e99(0x33a),{'children':_0x27f937['t'](_0x280ed8[_0x2a6e99(0x37f)])}):null;}const Te='docs-shape-ui.ribbon.shape-format.style-control',Ee='docs-shape-ui.ribbon.shape-format.text-control',De=_0x2c096c(0x3fc),Oe='docs-shape-ui.ribbon.shape-format.arrange-forward',ke='docs-shape-ui.ribbon.shape-format.arrange-backward',Ae='docs-shape-ui.ribbon.shape-format.arrange-front',je='docs-shape-ui.ribbon.shape-format.arrange-back',Me=_0x2c096c(0x4a5);function Ne(_0x145f10){const _0x37f873=_0x2c096c;let _0x1374a1=_0x145f10[_0x37f873(0x328)](o[_0x37f873(0x2b2)]),_0x455a73=_0x145f10[_0x37f873(0x328)](u[_0x37f873(0x482)]),_0x15c516=_0x145f10['get'](r['DocsShapeService']);return new p[(_0x37f873(0x2bd))](_0x2ef07e=>{const _0x5d4fb0=_0x37f873;let _0x47f1dc=()=>{const _0x46bf5a=_0x210f;let _0x45f63e=z(_0x145f10),_0x16e442=_0x45f63e?_0x15c516[_0x46bf5a(0x3c7)](_0x45f63e[_0x46bf5a(0x385)],_0x45f63e[_0x46bf5a(0x467)],_0x45f63e[_0x46bf5a(0x40c)]):null;_0x2ef07e[_0x46bf5a(0x42d)](_0x16e442?(0x0,a[_0x46bf5a(0x25d)])(_0x16e442)??'':'');},_0x4faf2f=_0x455a73['focus$'][_0x5d4fb0(0x1d2)](_0x47f1dc),_0x10d82f=_0x1374a1[_0x5d4fb0(0x412)](_0x5a6648=>{_0x5a6648['id']===r['UpdateDocShapeDataMutation']['id']&&_0x47f1dc();});return _0x47f1dc(),()=>{const _0x68bf6e=_0x5d4fb0;_0x4faf2f['unsubscribe'](),_0x10d82f[_0x68bf6e(0x270)]();};});}function z(_0x5098d4){const _0x4b99f2=_0x2c096c;var _0x1c53f4;let _0x2f7af8=_0x5098d4[_0x4b99f2(0x328)](u[_0x4b99f2(0x482)])[_0x4b99f2(0x263)]();return _0x2f7af8[_0x4b99f2(0x472)]===0x1&&((_0x1c53f4=_0x2f7af8[0x0])==null?void 0x0:_0x1c53f4[_0x4b99f2(0x249)])===o[_0x4b99f2(0x37c)][_0x4b99f2(0x27e)]?_0x2f7af8[0x0]:null;}function Pe(_0x4fe275){const _0x1c9cd6=_0x2c096c;return(_0x4fe275==null?void 0x0:_0x4fe275[_0x1c9cd6(0x225)])===o['PositionedObjectLayoutType'][_0x1c9cd6(0x310)]?_0x4fe275[_0x1c9cd6(0x253)]===o[_0x1c9cd6(0x2f1)][_0x1c9cd6(0x45d)]?c[_0x1c9cd6(0x241)][_0x1c9cd6(0x26a)]:c[_0x1c9cd6(0x241)]['IN_FRONT_OF_TEXT']:(_0x4fe275==null?void 0x0:_0x4fe275['layoutType'])===o[_0x1c9cd6(0x47c)][_0x1c9cd6(0x378)]?c[_0x1c9cd6(0x241)][_0x1c9cd6(0x378)]:(_0x4fe275==null?void 0x0:_0x4fe275['layoutType'])===o[_0x1c9cd6(0x47c)][_0x1c9cd6(0x316)]?c[_0x1c9cd6(0x241)]['WRAP_TOP_AND_BOTTOM']:c[_0x1c9cd6(0x241)][_0x1c9cd6(0x323)];}function Fe(_0x131dbd){const _0x34829c=_0x2c096c;let _0x427a97=_0x131dbd[_0x34829c(0x328)](o['ICommandService']),_0xb86955=_0x131dbd[_0x34829c(0x328)](u[_0x34829c(0x482)]),_0x8c390a=_0x131dbd['get'](o[_0x34829c(0x3a2)]);return new p[(_0x34829c(0x2bd))](_0x4839ff=>{const _0x3ff2f5=_0x34829c;let _0x3adeef=()=>{const _0xe784c4=_0x210f;var _0x120764;let _0x337094=z(_0x131dbd),_0x145473=_0x337094?_0x8c390a['getUnit'](_0x337094[_0xe784c4(0x385)],o['UniverInstanceType'][_0xe784c4(0x2f5)]):void 0x0;_0x4839ff[_0xe784c4(0x42d)](Pe(_0x337094?_0x145473==null||(_0x120764=_0x145473[_0xe784c4(0x215)]()[_0xe784c4(0x4ae)])==null?void 0x0:_0x120764[_0x337094[_0xe784c4(0x40c)]]:void 0x0));},_0x1519ce=_0xb86955[_0x3ff2f5(0x3c8)]['subscribe'](_0x3adeef),_0x6ea3a4=_0x427a97['onCommandExecuted'](_0x5a3692=>{const _0x3bf0a0=_0x3ff2f5;_0x5a3692['id']===s[_0x3bf0a0(0x3c5)]['id']&&_0x3adeef();});return _0x3adeef(),()=>{const _0x3557ec=_0x3ff2f5;_0x1519ce['unsubscribe'](),_0x6ea3a4[_0x3557ec(0x270)]();};})[_0x34829c(0x230)]((0x0,p[_0x34829c(0x280)])());}function Ie(_0x53ef17,_0x4534af=!0x1){const _0x5744ef=_0x2c096c;let _0x1e666f=_0x53ef17[_0x5744ef(0x328)](o[_0x5744ef(0x2b2)]),_0x169acf=_0x53ef17['get'](u['IDrawingManagerService']),_0x41ebc6=_0x53ef17[_0x5744ef(0x328)](r['DocsShapeService']);return new p[(_0x5744ef(0x2bd))](_0x86e709=>{const _0x56a283=_0x5744ef;let _0x2742c0=()=>{const _0x11a532=_0x210f;let _0x4dfeb6=z(_0x53ef17);if(!_0x4dfeb6){_0x86e709[_0x11a532(0x42d)](!0x0);return;}let _0xe0d1d7=_0x41ebc6['getShapeDataById'](_0x4dfeb6[_0x11a532(0x385)],_0x4dfeb6['subUnitId'],_0x4dfeb6[_0x11a532(0x40c)]);_0x86e709[_0x11a532(0x42d)](!_0xe0d1d7||_0x4534af&&_0xe0d1d7['formulaBinding']==null);},_0x4e7be7=_0x169acf[_0x56a283(0x3c8)][_0x56a283(0x1d2)](_0x2742c0),_0x296424=_0x1e666f[_0x56a283(0x412)](_0xa5b59e=>{const _0x2474f2=_0x56a283;_0xa5b59e['id']===r[_0x2474f2(0x398)]['id']&&_0x2742c0();});return _0x2742c0(),()=>{const _0x402345=_0x56a283;_0x4e7be7[_0x402345(0x411)](),_0x296424[_0x402345(0x270)]();};});}function Le(_0x1c75fa){const _0x239a49=_0x2c096c;let _0x505d02=_0x1c75fa['get'](u[_0x239a49(0x482)]),_0x5a8874=_0x1c75fa[_0x239a49(0x328)](r[_0x239a49(0x235)]);return _0x505d02['focus$'][_0x239a49(0x230)]((0x0,p[_0x239a49(0x440)])(_0x505d02[_0x239a49(0x263)]()),(0x0,p[_0x239a49(0x2b6)])(()=>{const _0x2e12fb=_0x239a49;let _0x2b3245=z(_0x1c75fa),_0x1ccf57=_0x2b3245?_0x5a8874['getShapeTypeById'](_0x2b3245[_0x2e12fb(0x385)],_0x2b3245[_0x2e12fb(0x467)],_0x2b3245[_0x2e12fb(0x40c)]):void 0x0;return _0x1ccf57===void 0x0||(0x0,i[_0x2e12fb(0x4b0)])(_0x1ccf57);}));}function Re(_0x418331){const _0x324b7b=_0x2c096c;return{'id':N['id'],'type':n[_0x324b7b(0x216)][_0x324b7b(0x2bb)],'icon':'PaintIcon','title':'shape-editor-ui.toolbar.quickStyles','tooltip':_0x324b7b(0x410),'selections':[{'label':{'name':pe,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ne(_0x418331),'hidden$':Ie(_0x418331)};}function ze(_0x315df7){const _0x1a64ac=_0x2c096c;return{'id':P['id'],'type':n[_0x1a64ac(0x216)]['SELECTOR'],'icon':'ShapeIcon','title':_0x1a64ac(0x414),'tooltip':_0x1a64ac(0x414),'slot':!0x0,'selections':[{'label':{'name':e[_0x1a64ac(0x3ca)],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Le(_0x315df7)};}function Be(_0x377f8d,_0x10a082,_0x356303=!0x1){const _0x29d90c=_0x2c096c;return _0x56e2e5=>({'id':_0x377f8d,'type':n[_0x29d90c(0x216)]['BUTTON'],'label':{'name':_0x10a082,'hoverable':!0x1,'selectable':!0x1},'hidden$':Ie(_0x56e2e5,_0x356303)});}const Ve=Be(Te,me),He=Be(Ee,he),Ue=Be(De,ge,!0x0);function We(_0x53375f){const _0x4b8c41=_0x2c096c;return{'id':Me,'type':n['MenuItemType'][_0x4b8c41(0x2bb)],'icon':ve[0x0][_0x4b8c41(0x43d)],'label':_e,'selectionsCommandId':c['UpdateDocDrawingWrappingStyleCommand']['id'],'selections':ve[_0x4b8c41(0x2b6)](({icon:_0x453781,label:_0x4486e7,value:_0x5bdf1f})=>({'value':_0x5bdf1f,'label':_0x4486e7,'icon':_0x453781,'params':()=>{const _0xc0f006=_0x4b8c41;let _0x22e7a9=z(_0x53375f);return _0x22e7a9?{'unitId':_0x22e7a9[_0xc0f006(0x385)],'subUnitId':_0x22e7a9['subUnitId'],'drawings':[{'unitId':_0x22e7a9[_0xc0f006(0x385)],'subUnitId':_0x22e7a9[_0xc0f006(0x467)],'drawingId':_0x22e7a9[_0xc0f006(0x40c)]}],'wrappingStyle':_0x5bdf1f}:void 0x0;}})),'value$':Fe(_0x53375f),'hidden$':Ie(_0x53375f)};}function Ge(_0xbce68f,_0x14dc9b,_0x364393,_0x285aed){const _0x216acf=_0x2c096c;return _0x3ed274=>({'id':_0xbce68f,'commandId':c[_0x216acf(0x1c9)]['id'],'type':n['MenuItemType'][_0x216acf(0x476)],'icon':_0x364393,'title':_0x285aed,'tooltip':_0x285aed,'hidden$':Ie(_0x3ed274),'params':()=>{const _0x3a9996=_0x216acf;let _0x18033d=z(_0x3ed274);return _0x18033d?{'unitId':_0x18033d[_0x3a9996(0x385)],'subUnitId':_0x18033d[_0x3a9996(0x467)],'drawingIds':[_0x18033d[_0x3a9996(0x40c)]],'arrangeType':_0x14dc9b}:void 0x0;}});}const Ke=Ge(Oe,o[_0x2c096c(0x339)][_0x2c096c(0x324)],_0x2c096c(0x3ad),'shape-editor-ui.arrange.forward'),qe=Ge(ke,o[_0x2c096c(0x339)][_0x2c096c(0x370)],'MoveDownIcon','shape-editor-ui.arrange.backward'),Je=Ge(Ae,o[_0x2c096c(0x339)][_0x2c096c(0x351)],_0x2c096c(0x274),'shape-editor-ui.arrange.front'),Ye=Ge(je,o[_0x2c096c(0x339)][_0x2c096c(0x1e1)],'BottomIcon','shape-editor-ui.arrange.back');function Xe(_0x4911dd){const _0x30b6bc=_0x2c096c;let _0x151ad8=_0x4911dd[_0x30b6bc(0x328)](n[_0x30b6bc(0x2ce)]);return{'activated$':(0x0,p[_0x30b6bc(0x494)])(()=>_0x151ad8['sidebarOptions$'][_0x30b6bc(0x230)]((0x0,p[_0x30b6bc(0x440)])(_0x151ad8['options']),(0x0,p[_0x30b6bc(0x2b6)])(_0x5d4b4d=>_0x5d4b4d[_0x30b6bc(0x238)]===!0x0&&_0x5d4b4d['id']===_0x30b6bc(0x30b)),(0x0,p[_0x30b6bc(0x280)])())),'id':j['id'],'type':n['MenuItemType'][_0x30b6bc(0x476)],'icon':_0x30b6bc(0x346),'title':'docs-shape-ui.formatShape','tooltip':'docs-shape-ui.formatShape','hidden$':Ie(_0x4911dd),'params':()=>{const _0x5acb55=_0x30b6bc;let _0x571ecc=z(_0x4911dd);return _0x571ecc?{'unitId':_0x571ecc['unitId'],'subUnitId':_0x571ecc[_0x5acb55(0x467)],'drawingId':_0x571ecc[_0x5acb55(0x40c)]}:void 0x0;}};}const Ze={[n[_0x2c096c(0x40b)]['RIBBON']]:{[T]:{'order':0x64,'title':_0x2c096c(0x298),'contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[N['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Re},[P['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ze}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[Te]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ve}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[Ee]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':He}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[Me]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':We},[Oe]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Ke},[ke]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':qe},[Ae]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':Je},[je]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':Ye}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[De]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Ue}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[j['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Xe},[e[_0x2c096c(0x1bb)]['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':e[_0x2c096c(0x4b3)]}}}}},Qe={[n['RibbonInsertGroup'][_0x2c096c(0x2de)]]:{[C['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x218d95=>({...ce(_0x218d95),'title':void 0x0})}},[n[_0x2c096c(0x381)][_0x2c096c(0x332)]]:{[A['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':de}},[n[_0x2c096c(0x44c)][_0x2c096c(0x46c)]]:{[n[_0x2c096c(0x36d)][_0x2c096c(0x2da)]]:{[t['INSERT_BELLOW_MENU_ID']]:{[C['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':le}}},[t[_0x2c096c(0x2a2)]]:{[n[_0x2c096c(0x36d)][_0x2c096c(0x2da)]]:{[C['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':le}}},[t[_0x2c096c(0x301)]]:{[n[_0x2c096c(0x36d)][_0x2c096c(0x2da)]]:{[C['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':ue}}},[t[_0x2c096c(0x304)]]:{'insert':{[C['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':ce}}},[t[_0x2c096c(0x3b6)]]:{'insert':{[C['id']+_0x2c096c(0x338)]:{'replace':!0x0,'order':0x2,'menuItemFactory':le}}}}};var $e='@univerjs-pro/docs-shape-ui',et=_0x2c096c(0x259);const B={'type':o[_0x2c096c(0x1b6)][_0x2c096c(0x3d5)],'id':_0x2c096c(0x1e6),'handler'(){return!0x0;}},tt=_0x2c096c(0x2e6),nt={};function V(_0x476e91){'@babel/helpers - typeof';const _0x443a6c=_0x2c096c;return V=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x443a6c(0x2b0)?function(_0xd1f24d){return typeof _0xd1f24d;}:function(_0x2839d4){const _0x7e607d=_0x443a6c;return _0x2839d4&&typeof Symbol=='function'&&_0x2839d4['constructor']===Symbol&&_0x2839d4!==Symbol['prototype']?_0x7e607d(0x2b0):typeof _0x2839d4;},V(_0x476e91);}function rt(_0x330555,_0x314919){const _0x5df72c=_0x2c096c;if(V(_0x330555)!=_0x5df72c(0x3f0)||!_0x330555)return _0x330555;var _0x4fc227=_0x330555[Symbol[_0x5df72c(0x2aa)]];if(_0x4fc227!==void 0x0){var _0x8103e3=_0x4fc227[_0x5df72c(0x22e)](_0x330555,_0x314919||'default');if(V(_0x8103e3)!=_0x5df72c(0x3f0))return _0x8103e3;throw TypeError(_0x5df72c(0x36e));}return(_0x314919===_0x5df72c(0x489)?String:Number)(_0x330555);}function it(_0x4db73c){var _0x15326=rt(_0x4db73c,'string');return V(_0x15326)=='symbol'?_0x15326:_0x15326+'';}function H(_0x3cc808,_0x22d5e8,_0x36908d){const _0x33251a=_0x2c096c;return(_0x22d5e8=it(_0x22d5e8))in _0x3cc808?Object[_0x33251a(0x44e)](_0x3cc808,_0x22d5e8,{'value':_0x36908d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3cc808[_0x22d5e8]=_0x36908d,_0x3cc808;}var at=class extends l[_0x2c096c(0x277)]{constructor(_0x9401df,_0x39f61c){const _0x490838=_0x2c096c;super(_0x9401df,_0x39f61c),H(this,_0x490838(0x2b3),null),H(this,_0x490838(0x438),null),H(this,_0x490838(0x430),null),H(this,'_subUnitId',null),_0x39f61c&&this[_0x490838(0x286)](_0x39f61c);}[_0x2c096c(0x366)](){const _0x2c4aa2=_0x2c096c;return{'unitId':this[_0x2c4aa2(0x430)],'subUnitId':this[_0x2c4aa2(0x21e)],'drawingId':this[_0x2c4aa2(0x2b3)]};}[_0x2c096c(0x286)](_0x2a302e){const _0x21aa62=_0x2c096c;_0x2a302e[_0x21aa62(0x275)]!==void 0x0&&(this[_0x21aa62(0x2b3)]=_0x2a302e[_0x21aa62(0x275)]),_0x2a302e[_0x21aa62(0x41c)]!==void 0x0&&(this[_0x21aa62(0x438)]=_0x2a302e[_0x21aa62(0x41c)]),_0x2a302e[_0x21aa62(0x385)]!==void 0x0&&(this['_unitId']=_0x2a302e['unitId']),_0x2a302e['subUnitId']!==void 0x0&&(this[_0x21aa62(0x21e)]=_0x2a302e[_0x21aa62(0x467)]),this[_0x21aa62(0x22d)]({'width':_0x2a302e[_0x21aa62(0x4a9)],'height':_0x2a302e[_0x21aa62(0x428)]});}[_0x2c096c(0x36c)](_0x296ddb){const _0x305b73=_0x2c096c;l[_0x305b73(0x28e)][_0x305b73(0x369)](_0x296ddb,{'radius':i[_0x305b73(0x4ad)][_0x305b73(0x23c)],'fill':i[_0x305b73(0x4ad)][_0x305b73(0x261)],'stroke':i[_0x305b73(0x4ad)][_0x305b73(0x1c4)],'strokeWidth':0x1,'evented':!0x0});}};function ot(_0x167f4f,_0x2a9159,_0x209485){const _0x2e8a3b=_0x2c096c;let _0x12b422={..._0x2a9159,'dataModel':{..._0x2a9159[_0x2e8a3b(0x37a)]??{},..._0x209485?{'doc':_0x209485}:null}},_0x5ea5aa=(0x0,e[_0x2e8a3b(0x264)])(_0x167f4f,_0x12b422),_0x358bbe=(0x0,e[_0x2e8a3b(0x48f)])(_0x5ea5aa);return{'clip':(0x0,e['shouldClipShapeTextDocument'])(_0x5ea5aa,_0x358bbe),'wrapStrategy':_0x358bbe};}var U=class extends l[_0x2c096c(0x277)]{constructor(_0x3b300b,_0x233dbc){const _0xbecb6d=_0x2c096c;super(_0x3b300b,_0x233dbc),H(this,_0xbecb6d(0x279),[]),H(this,'_props',void 0x0),H(this,_0xbecb6d(0x462),new e['FormulaShapeAnimationController'](()=>this[_0xbecb6d(0x26c)](!0x0),()=>this[_0xbecb6d(0x2db)]())),H(this,_0xbecb6d(0x48c),!0x0),H(this,_0xbecb6d(0x3e5),o[_0xbecb6d(0x37c)]['DRAWING_SHAPE']),H(this,'isDrawingObject',!0x0),this[_0xbecb6d(0x35e)]={..._0x233dbc},this[_0xbecb6d(0x462)][_0xbecb6d(0x1ff)](_0x233dbc['formulaPresentation'],_0x233dbc[_0xbecb6d(0x3df)]!==!0x1),this[_0xbecb6d(0x213)](),this[_0xbecb6d(0x2db)]();}[_0x2c096c(0x213)](){const _0x597146=_0x2c096c;this[_0x597146(0x2b4)][_0x597146(0x490)](_0x53178e=>{const _0x35d327=_0x597146;this[_0x35d327(0x4b8)](_0x53178e);});}[_0x2c096c(0x2f2)](_0x5b039d){const _0x9dd015=_0x2c096c;this[_0x9dd015(0x35e)][_0x9dd015(0x29b)]=_0x5b039d;}['resolveHyperLinkAt'](_0x1a11de){const _0x1ee6c9=_0x2c096c;if(this['_props'][_0x1ee6c9(0x1c0)])return null;let _0x3ac6f5=this[_0x1ee6c9(0x37d)](_0x1a11de),{width:_0x5ab896,height:_0x5e775f}=this[_0x1ee6c9(0x24c)]();return(0x0,e[_0x1ee6c9(0x4ab)])(this[_0x1ee6c9(0x279)],{'x':(this[_0x1ee6c9(0x209)]?-_0x3ac6f5['x']:_0x3ac6f5['x'])+_0x5ab896/0x2,'y':_0x3ac6f5['y']+_0x5e775f/0x2});}['setEditing'](_0x4b1f83){const _0x35c71a=_0x2c096c;this['_props'][_0x35c71a(0x1c0)]=_0x4b1f83,this['makeDirty'](!0x0);}[_0x2c096c(0x3fe)](_0x2bb450,_0x1bdd12=!0x0){const _0x56a25c=_0x2c096c;this[_0x56a25c(0x462)][_0x56a25c(0x1ff)](_0x2bb450,_0x1bdd12),this[_0x56a25c(0x35e)]['formulaPresentation']=_0x2bb450,this[_0x56a25c(0x2db)](),this[_0x56a25c(0x26c)](!0x0);}[_0x2c096c(0x2db)](){const _0x4fb130=_0x2c096c;let _0x426f53=this[_0x4fb130(0x35e)][_0x4fb130(0x404)],_0xb58e13=_0x426f53[_0x4fb130(0x35a)](),_0xdad5d0=(0x0,e['normalizeShapeTextModel'])(_0xb58e13==null?void 0x0:_0xb58e13[_0x4fb130(0x37a)]),_0x5b93bb=_0xdad5d0==null?void 0x0:_0xdad5d0[_0x4fb130(0x32a)],_0x7f2414=this[_0x4fb130(0x462)][_0x4fb130(0x461)]();if(!_0x5b93bb||_0x7f2414[_0x4fb130(0x472)]===0x0)return;_0x426f53[_0x4fb130(0x49f)]({'width':this[_0x4fb130(0x4a9)],'height':this[_0x4fb130(0x428)]});let _0x4e3737=(0x0,e[_0x4fb130(0x436)])({'documentData':_0x7f2414['map'](_0x45b9d7=>(0x0,a[_0x4fb130(0x39a)])(_0x5b93bb,_0x45b9d7)),'height':this[_0x4fb130(0x428)],'shapeData':_0x426f53[_0x4fb130(0x3c3)](),'textRect':_0x426f53[_0x4fb130(0x1be)]({'left':0x0,'top':0x0,'width':this[_0x4fb130(0x4a9)],'height':this['height']}),'width':this[_0x4fb130(0x4a9)]});if(_0x4e3737){var _0x1489e2;this[_0x4fb130(0x4af)](_0x4e3737[_0x4fb130(0x4a9)],_0x4e3737[_0x4fb130(0x428)]),(_0x1489e2=this[_0x4fb130(0x349)]())==null||(_0x1489e2=_0x1489e2[_0x4fb130(0x3a3)]())==null||_0x1489e2[_0x4fb130(0x3b8)]();}}get['unitId'](){const _0xf5c139=_0x2c096c;return this[_0xf5c139(0x35e)][_0xf5c139(0x385)];}get[_0x2c096c(0x467)](){const _0x42ed93=_0x2c096c;return this[_0x42ed93(0x35e)][_0x42ed93(0x467)];}[_0x2c096c(0x4b8)](_0x5e9287){const _0x1f7bb5=_0x2c096c;if(this[_0x1f7bb5(0x35e)][_0x1f7bb5(0x34c)]==null||!this[_0x1f7bb5(0x48c)])return;let {width:_0x21d830,height:_0x1a39ef}=this,{width:_0x174c89=0x0,height:_0x3afc50=0x0}=_0x5e9287[_0x1f7bb5(0x243)],{left:_0x548c09=0x0,top:_0x375976=0x0,right:_0x1ed3d6=0x0,bottom:_0x5884d4=0x0}=this['_props'][_0x1f7bb5(0x34c)],_0x19a3a2=_0x548c09,_0x29b4b4=_0x375976,_0x5770ab=_0x1ed3d6,_0x5c4c69=_0x5884d4,_0x32110c=!0x1;if(_0x174c89!==0x0&&_0x174c89!==_0x21d830){let _0x36d647=_0x548c09/_0x174c89,_0x792e03=_0x1ed3d6/_0x174c89;_0x19a3a2=_0x21d830*_0x36d647,_0x5770ab=_0x21d830*_0x792e03,_0x32110c=!0x0;}if(_0x3afc50!==0x0&&_0x3afc50!==_0x1a39ef){let _0x13a190=_0x375976/_0x3afc50,_0x274e42=_0x5884d4/_0x3afc50;_0x29b4b4=_0x1a39ef*_0x13a190,_0x5c4c69=_0x1a39ef*_0x274e42,_0x32110c=!0x0;}_0x32110c&&this[_0x1f7bb5(0x300)]({'left':_0x19a3a2,'top':_0x29b4b4,'right':_0x5770ab,'bottom':_0x5c4c69});}[_0x2c096c(0x300)](_0x3b9aff){const _0x306592=_0x2c096c;this['_props'][_0x306592(0x34c)]=_0x3b9aff,this['makeDirty'](!0x0);}[_0x2c096c(0x2ec)](_0x433613){const _0x4c3060=_0x2c096c;this['_props']['image']=_0x433613,this[_0x4c3060(0x26c)](!0x0);}set['transform'](_0x262c66){const _0x4ce44a=_0x2c096c;this[_0x4ce44a(0x265)]=_0x262c66;}get['transform'](){const _0xa8dd5c=_0x2c096c;this[_0xa8dd5c(0x265)]||this['_setTransForm']();let _0x5cdd1f=this[_0xa8dd5c(0x265)][_0xa8dd5c(0x344)]();return this['transformForAngle'](_0x5cdd1f);}get['shapeModel'](){const _0x394164=_0x2c096c;return this[_0x394164(0x35e)][_0x394164(0x404)];}get[_0x2c096c(0x275)](){const _0x1f432a=_0x2c096c;return this['_props'][_0x1f432a(0x275)];}get[_0x2c096c(0x406)](){const _0x41f0c6=_0x2c096c;return l['RENDER_CLASS_TYPE'][_0x41f0c6(0x1cf)];}[_0x2c096c(0x36c)](_0x122295,_0xe21113,_0x2119e0,_0x6e1a59){const _0x22fa8c=_0x2c096c;let _0x449fea=this['_props']['shapeModel'];if(!_0x449fea||!_0xe21113)return;let _0x2a6970=_0x2119e0??this[_0x22fa8c(0x4a9)],_0x3f5bdd=_0x6e1a59??this[_0x22fa8c(0x428)],_0x425fbd={'shapeType':_0x449fea['getShapeType'](),'width':_0x2a6970,'height':_0x3f5bdd},_0xcae12b={'renderMode':i[_0x22fa8c(0x47d)][_0x22fa8c(0x353)],'oKey':this[_0x22fa8c(0x386)],'image':this[_0x22fa8c(0x35e)][_0x22fa8c(0x334)],'angle':this[_0x22fa8c(0x269)]};_0x449fea[_0x22fa8c(0x49f)](_0x425fbd),_0x122295[_0x22fa8c(0x40f)]();let _0x5ae296={'top':0x0,'left':0x0,'width':_0x2a6970,'height':_0x3f5bdd},_0x4bda60=_0x449fea[_0x22fa8c(0x2d1)](_0x5ae296);_0x4bda60?this[_0x22fa8c(0x46e)](_0x122295,_0x4bda60,_0x7fb4cc=>{const _0x2f8644=_0x22fa8c;_0x449fea[_0x2f8644(0x426)](_0x7fb4cc,_0x5ae296,_0xcae12b);}):(this[_0x22fa8c(0x3bb)](),_0x449fea[_0x22fa8c(0x426)](_0x122295,_0x5ae296,_0xcae12b)),_0x122295['restore']();let _0x130696=_0x449fea[_0x22fa8c(0x35a)](),_0x462703=_0x449fea[_0x22fa8c(0x1be)](_0x5ae296),_0x479aae=_0x449fea[_0x22fa8c(0x203)]();if(_0x130696&&_0x462703&&!_0x479aae){_0x122295[_0x22fa8c(0x40f)](),this[_0x22fa8c(0x354)]()[_0x22fa8c(0x209)]&&_0x122295[_0x22fa8c(0x32f)](-0x1,0x1);let _0x261d70=_0x2a6970/0x2,_0x412793=_0x3f5bdd/0x2;_0x122295['translate'](-_0x261d70,-_0x412793),_0x122295[_0x22fa8c(0x2f6)](),this[_0x22fa8c(0x204)](_0x122295,_0x130696,_0x462703),_0x122295[_0x22fa8c(0x29a)]();}}[_0x2c096c(0x44b)](_0x2d3a52){}['_drawShapeText'](_0x17b4e,_0x84e2dc,_0x26d200){const _0xf1e417=_0x2c096c;var _0x3cb057;this[_0xf1e417(0x279)]=[],this['_props'][_0xf1e417(0x1c0)]||(!((_0x3cb057=_0x84e2dc[_0xf1e417(0x37a)])!=null&&_0x3cb057[_0xf1e417(0x32a)])&&'isRichText'in _0x84e2dc&&_0x84e2dc['isRichText']===!0x1?this[_0xf1e417(0x3f2)](_0x17b4e,_0x84e2dc,_0x26d200):this['_drawRichText'](_0x17b4e,_0x84e2dc,_0x26d200));}[_0x2c096c(0x3f2)](_0x3db448,_0x4cc895,_0x3ac314){const _0x5109b9=_0x2c096c;this[_0x5109b9(0x2a4)](_0x3db448,{..._0x4cc895,'text':_0x4cc895[_0x5109b9(0x20c)]??'','dataModel':{'doc':(0x0,e[_0x5109b9(0x2c4)])(_0x4cc895,_0x5109b9(0x424)+this[_0x5109b9(0x386)])}},_0x3ac314);}['_drawRichText'](_0x36b5fb,_0x11ef7a,_0x449a5f){const _0x273863=_0x2c096c;(0x0,e[_0x273863(0x2fd)])(_0x36b5fb,this['_formulaAnimation'],(_0x52fcc4,_0x5f46b9,_0x1c9387)=>{const _0x494769=_0x273863;this[_0x494769(0x214)](_0x52fcc4,_0x11ef7a,_0x449a5f,_0x5f46b9,_0x1c9387===_0x494769(0x28c));});}[_0x2c096c(0x214)](_0x3b73d1,_0x311433,_0x517304,_0x4c48da,_0x59936c){const _0x12435a=_0x2c096c;let _0x287e3e=this[_0x12435a(0x35e)]['localeService'];if(!_0x311433['dataModel']||!_0x287e3e){_0x287e3e||console['warn'](_0x12435a(0x46a));return;}let _0x287a65=(0x0,e[_0x12435a(0x1ca)])(_0x311433[_0x12435a(0x37a)]);if(!_0x287a65)return;let _0x3c4988=_0x287a65[_0x12435a(0x32a)];if(!_0x3c4988)return;let _0x10e069=(0x0,a[_0x12435a(0x39a)])(_0x3c4988,_0x4c48da),_0x570ae1=_0x287a65['va']??o[_0x12435a(0x1ba)][_0x12435a(0x202)],_0x2dc2c8=_0x287a65['ha']??o[_0x12435a(0x2c6)][_0x12435a(0x4c4)],_0x27a2ae=ot(this[_0x12435a(0x35e)][_0x12435a(0x404)]['getShapeData'](),_0x311433,_0x10e069),_0x5a4795=_0x311433[_0x12435a(0x35b)],_0x6e4b5=(0x0,e[_0x12435a(0x481)])(_0x10e069,{'isHorizontal':_0x5a4795!==!0x1,'textRect':_0x517304,'verticalAlign':_0x570ae1,'horizontalAlign':_0x2dc2c8,'wrapStrategy':_0x27a2ae[_0x12435a(0x4c0)]}),_0xfdba97=new o[(_0x12435a(0x41b))](_0x6e4b5),_0x383cd7=new l[(_0x12435a(0x1db))](_0xfdba97),_0x19de24=l[_0x12435a(0x372)]['create'](_0x383cd7,_0x287e3e);_0x19de24[_0x12435a(0x4b5)]();let _0x148426=_0x19de24['getActualSize']()[_0x12435a(0x3ff)],_0x1b1bd1=(0x0,e[_0x12435a(0x254)])({'contentHeight':_0x148426,'verticalAlign':_0x570ae1,'viewportHeight':_0x517304['height']});_0xfdba97[_0x12435a(0x25c)]({'pageSize':{'width':_0x5a4795===!0x1?_0x517304[_0x12435a(0x428)]:_0x517304[_0x12435a(0x4a9)],'height':(0x0,e['resolveShapeTextDocumentPageHeight'])(_0x10e069,_0x1b1bd1[_0x12435a(0x22c)])}}),_0xfdba97[_0x12435a(0x427)]({'t':_0x1b1bd1[_0x12435a(0x222)]}),_0x19de24['calculate']();let _0x58cffd=new l[(_0x12435a(0x3bc))](_0x12435a(0x3ef)+this[_0x12435a(0x386)],_0x19de24,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x12435a(0x26c)](!0x0)});_0x58cffd['resize'](_0x517304[_0x12435a(0x4a9)],_0x1b1bd1[_0x12435a(0x22c)]),_0x3b73d1[_0x12435a(0x40f)](),_0x3b73d1['translateWithPrecision'](_0x517304[_0x12435a(0x415)],_0x517304['top']),_0x27a2ae['clip']&&(_0x3b73d1[_0x12435a(0x2f6)](),_0x3b73d1[_0x12435a(0x250)](0x0,_0x1b1bd1[_0x12435a(0x38f)],_0x517304[_0x12435a(0x4a9)],_0x1b1bd1[_0x12435a(0x3e8)]),_0x3b73d1['clip']()),_0x1b1bd1[_0x12435a(0x260)]&&_0x3b73d1[_0x12435a(0x25f)](0x0,_0x1b1bd1[_0x12435a(0x260)]),_0x58cffd[_0x12435a(0x306)](_0x3b73d1),_0x59936c&&(this['_hyperLinkRegions']=(0x0,e[_0x12435a(0x1e2)])(_0x58cffd,{'left':_0x517304[_0x12435a(0x415)],'top':_0x517304[_0x12435a(0x1fb)]+_0x1b1bd1[_0x12435a(0x260)]},_0x27a2ae[_0x12435a(0x3a1)]?{'left':_0x517304['left'],'right':_0x517304[_0x12435a(0x415)]+_0x517304['width'],'top':_0x517304[_0x12435a(0x1fb)]+_0x1b1bd1[_0x12435a(0x38f)],'bottom':_0x517304[_0x12435a(0x1fb)]+_0x1b1bd1[_0x12435a(0x38f)]+_0x1b1bd1[_0x12435a(0x3e8)]}:void 0x0)),_0x3b73d1[_0x12435a(0x29a)](),_0x58cffd['dispose'](),_0x19de24['dispose'](),_0x383cd7[_0x12435a(0x270)](),_0xfdba97[_0x12435a(0x270)]();}['render'](_0x133d9e,_0x3c91a8,_0x3a0ff1=!0x1){const _0x2f7c90=_0x2c096c;if(!this[_0x2f7c90(0x238)])return this[_0x2f7c90(0x26c)](!0x1),this;let {width:_0x1181a7,height:_0x4fbbde,left:_0xd9e6c6,top:_0x4ba65d}=this,_0x33e6cc=this[_0x2f7c90(0x24c)]();if(_0x1181a7=_0x33e6cc[_0x2f7c90(0x4a9)],_0x4fbbde=_0x33e6cc[_0x2f7c90(0x428)],_0xd9e6c6=_0x33e6cc[_0x2f7c90(0x415)],_0x4ba65d=_0x33e6cc[_0x2f7c90(0x1fb)],this[_0x2f7c90(0x251)](_0x3c91a8)){let {top:_0x4012d1,left:_0x384cd1,bottom:_0x2b4ec1,right:_0x1c8bb4}=_0x3c91a8[_0x2f7c90(0x311)];if(_0x1181a7+this['strokeWidth']+_0xd9e6c6<_0x384cd1||_0x1c8bb4<_0xd9e6c6||_0x4fbbde+this[_0x2f7c90(0x2fb)]+_0x4ba65d<_0x4012d1||_0x2b4ec1<_0x4ba65d)return this;}let _0x2cd402=_0xd9e6c6+_0x1181a7/0x2,_0x531af8=_0x4ba65d+_0x4fbbde/0x2,_0x1e0813=this['transform'][_0x2f7c90(0x37b)]();if(this[_0x2f7c90(0x35e)][_0x2f7c90(0x1c0)]){let _0x525de9=this[_0x2f7c90(0x354)](),_0x53fa1f=new l[(_0x2f7c90(0x1dd))]();_0x53fa1f[_0x2f7c90(0x4a6)]({..._0x525de9}),_0x1e0813=_0x53fa1f[_0x2f7c90(0x37b)]();}return _0x133d9e[_0x2f7c90(0x40f)](),this[_0x2f7c90(0x35e)][_0x2f7c90(0x404)][_0x2f7c90(0x3d2)]===!0x0||_0x133d9e[_0x2f7c90(0x38d)](_0x1e0813[0x0],_0x1e0813[0x1],_0x1e0813[0x2],_0x1e0813[0x3],_0x2cd402,_0x531af8),this['_draw'](_0x133d9e,_0x3c91a8,_0x1181a7,_0x4fbbde),_0x133d9e[_0x2f7c90(0x29a)](),this[_0x2f7c90(0x26c)](!0x1),this;}[_0x2c096c(0x37d)](_0x3409bd){const _0x5f4d51=_0x2c096c;let {left:_0x4c6e8e,top:_0x29fddd,width:_0xb401fd,height:_0x169321}=this[_0x5f4d51(0x24c)](),_0x13180c=this[_0x5f4d51(0x38d)][_0x5f4d51(0x37b)](),_0x3e2b6a=_0x4c6e8e+_0xb401fd/0x2,_0x3983fa=_0x29fddd+_0x169321/0x2,_0x294abe=new l['Transform']([_0x13180c[0x0],_0x13180c[0x1],_0x13180c[0x2],_0x13180c[0x3],_0x3e2b6a,_0x3983fa]),_0x4465e3=this[_0x5f4d51(0x295)]();return(this[_0x5f4d51(0x451)]&&(_0x4465e3==null?void 0x0:_0x4465e3['classType'])===l[_0x5f4d51(0x40d)][_0x5f4d51(0x34f)]?_0x4465e3[_0x5f4d51(0x44d)][_0x5f4d51(0x4b4)](_0x294abe):_0x294abe)[_0x5f4d51(0x434)]()['applyPoint'](_0x3409bd);}[_0x2c096c(0x384)](_0x17df5){const _0x187dff=_0x2c096c;let {left:_0x2911ce,top:_0x557403,width:_0x35d8ab,height:_0x12c15f}=this[_0x187dff(0x24c)](),_0x573141=_0x2911ce+_0x35d8ab/0x2,_0xc4b659=_0x557403+_0x12c15f/0x2,_0x3c7e1c=this[_0x187dff(0x38d)][_0x187dff(0x37b)](),_0x16bcef=new l[(_0x187dff(0x1dd))]([_0x3c7e1c[0x0],_0x3c7e1c[0x1],_0x3c7e1c[0x2],_0x3c7e1c[0x3],_0x573141,_0xc4b659]),_0x3b26fc=this[_0x187dff(0x295)](),_0x541062=(this[_0x187dff(0x451)]&&(_0x3b26fc==null?void 0x0:_0x3b26fc[_0x187dff(0x406)])===l[_0x187dff(0x40d)][_0x187dff(0x34f)]?_0x3b26fc[_0x187dff(0x44d)][_0x187dff(0x4b4)](_0x16bcef):_0x16bcef)[_0x187dff(0x434)]()[_0x187dff(0x499)](_0x17df5),_0x2a4197=_0x35d8ab/0x2,_0x2dfee2=_0x12c15f/0x2,_0x45c319=this[_0x187dff(0x35e)][_0x187dff(0x404)];return _0x45c319&&_0x45c319['isLineShape']()?_0x45c319[_0x187dff(0x367)](_0x541062['x'],_0x541062['y'],_0x35d8ab,_0x12c15f):_0x541062['x']>=-_0x2a4197-this[_0x187dff(0x2fb)]/0x2&&_0x541062['x']<=_0x2a4197+this[_0x187dff(0x2fb)]/0x2&&_0x541062['y']>=-_0x2dfee2-this[_0x187dff(0x2fb)]/0x2&&_0x541062['y']<=_0x2dfee2+this[_0x187dff(0x2fb)]/0x2;}['dispose'](){const _0x635df2=_0x2c096c;this[_0x635df2(0x462)][_0x635df2(0x270)](),this[_0x635df2(0x35e)][_0x635df2(0x404)]=null,super[_0x635df2(0x270)]();}};let W=class extends o['Disposable']{constructor(_0x1404f8,_0x52d013,_0x48022b,_0x17a8f6){const _0x36e37e=_0x2c096c;super(),this[_0x36e37e(0x39d)]=_0x1404f8,this[_0x36e37e(0x3b9)]=_0x52d013,this[_0x36e37e(0x1ee)]=_0x48022b,this[_0x36e37e(0x405)]=_0x17a8f6,H(this,_0x36e37e(0x1e7),null),H(this,_0x36e37e(0x430),null),H(this,_0x36e37e(0x21e),null),H(this,'_activeShapeAdjustPointList',void 0x0),H(this,_0x36e37e(0x463),[]),H(this,'_baseShapeLeft',0x0),H(this,'_baseShapeTop',0x0),H(this,_0x36e37e(0x3c0),0x0),H(this,_0x36e37e(0x224),0x0),H(this,_0x36e37e(0x42a),!0x1),H(this,_0x36e37e(0x4c7),!0x1),H(this,_0x36e37e(0x2fc),void 0x0),H(this,_0x36e37e(0x479),void 0x0),H(this,_0x36e37e(0x26f),void 0x0),H(this,'_adjHandlerPointerUp',void 0x0),this[_0x36e37e(0x2c1)](),this[_0x36e37e(0x4c3)]();}[_0x2c096c(0x229)](){const _0x38b2c0=_0x2c096c;this[_0x38b2c0(0x24e)]();}['refreshAdjustControls'](){const _0x5b47db=_0x2c096c;this[_0x5b47db(0x452)](!0x0);}[_0x2c096c(0x453)](_0x7a54c7,_0x59bf18,_0xbf6c75){const _0x5a01c8=_0x2c096c;var _0x3c57b6;return(_0x3c57b6=this[_0x5a01c8(0x1ee)]['getShapeModel'](_0x7a54c7,_0x59bf18,_0xbf6c75))==null?void 0x0:_0x3c57b6[_0x5a01c8(0x44b)]();}[_0x2c096c(0x3a9)](_0x543e55,_0x15ad7b,_0x1b00ac,_0xef2215){const _0x3d7d29=_0x2c096c;var _0x55807c;return(_0x55807c=this[_0x3d7d29(0x1ee)][_0x3d7d29(0x1d6)](_0x543e55,_0x15ad7b,_0x1b00ac))==null?void 0x0:_0x55807c['getAdjustInfoByName'](_0xef2215);}[_0x2c096c(0x1f8)](){const _0x3de555=_0x2c096c;return this[_0x3de555(0x430)]===null||this[_0x3de555(0x21e)]===null||this[_0x3de555(0x1e7)]===null?null:this[_0x3de555(0x3b9)]['getDrawingByParam']({'unitId':this[_0x3de555(0x430)],'subUnitId':this[_0x3de555(0x21e)],'drawingId':this['_activeShapeId']})??null;}[_0x2c096c(0x200)](_0xaaffdb){const _0x512e18=_0x2c096c;if(this[_0x512e18(0x430)]===null||this[_0x512e18(0x21e)]===null||this[_0x512e18(0x1e7)]===null)return null;let _0x326846=(0x0,u[_0x512e18(0x391)])({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x512e18(0x1e7)]}),_0x4da76a=_0xaaffdb[_0x512e18(0x33c)](_0x326846);return _0x4da76a instanceof U?_0x4da76a:null;}[_0x2c096c(0x221)](_0x2912c3=!0x1){const _0xc00e72=_0x2c096c;if(this[_0xc00e72(0x430)]===null||this[_0xc00e72(0x21e)]===null||this[_0xc00e72(0x1e7)]===null)return;let _0x1ca4ed=this['_getActiveDrawingParam']();if((_0x1ca4ed==null?void 0x0:_0x1ca4ed['drawingType'])!==o['DrawingTypeEnum'][_0xc00e72(0x27e)]||!_0x1ca4ed[_0xc00e72(0x38d)])return;let _0x168119=this[_0xc00e72(0x1ee)]['getShapeModel'](this[_0xc00e72(0x430)],this[_0xc00e72(0x21e)],this[_0xc00e72(0x1e7)]);if(!_0x168119||_0x168119['isLineShape']())return;let {left:_0x6d4cae=0x0,top:_0x3a4e28=0x0,width:_0x5e7cfd=0x0,height:_0x536a1c=0x0,flipX:_0xe9d5eb,flipY:_0x16674a,angle:_0x40e36b=0x0}=_0x1ca4ed[_0xc00e72(0x38d)];(_0x2912c3||!this[_0xc00e72(0x40e)])&&(_0x168119[_0xc00e72(0x49f)]({'width':_0x5e7cfd,'height':_0x536a1c}),this[_0xc00e72(0x40e)]=_0x168119[_0xc00e72(0x44b)]());let _0x9db4a9=this[_0xc00e72(0x40e)];if(!(_0x9db4a9!=null&&_0x9db4a9[_0xc00e72(0x472)]))return;let {scene:_0x4ceb09}=this[_0xc00e72(0x39d)];for(let _0x4b143d of _0x9db4a9){let _0x1a192c=this['_toVisualAdjustPoint'](_0x4b143d,_0x5e7cfd,_0x536a1c,!!_0xe9d5eb,!!_0x16674a,_0x40e36b);this[_0xc00e72(0x303)](_0x4ceb09,_0x1a192c,_0x1a192c[_0xc00e72(0x41c)],_0x6d4cae,_0x3a4e28,this[_0xc00e72(0x430)],this[_0xc00e72(0x21e)]);}}['_toVisualAdjustPoint'](_0x29fe2e,_0xf7c7a2,_0xb23fc7,_0x3f1007,_0x30420c,_0x5e2fa3){const _0x2c5b80=_0x2c096c;let _0x5c46f4=_0x29fe2e['x'],_0x18d733=_0x29fe2e['y'];if(_0x3f1007&&(_0x5c46f4=_0xf7c7a2-_0x5c46f4),_0x30420c&&(_0x18d733=_0xb23fc7-_0x18d733),_0x5e2fa3!==0x0){let _0x1bb0d8=_0xf7c7a2/0x2,_0x3210bb=_0xb23fc7/0x2,_0x576440=_0x5e2fa3*Math['PI']/0xb4,_0x149a28=Math[_0x2c5b80(0x407)](_0x576440),_0x37592a=Math['sin'](_0x576440),_0x2e3505=_0x5c46f4-_0x1bb0d8,_0x3fc6ae=_0x18d733-_0x3210bb;_0x5c46f4=_0x1bb0d8+(_0x2e3505*_0x149a28-_0x3fc6ae*_0x37592a),_0x18d733=_0x3210bb+(_0x2e3505*_0x37592a+_0x3fc6ae*_0x149a28);}return{'x':_0x5c46f4,'y':_0x18d733,'adjName':_0x29fe2e[_0x2c5b80(0x41c)]};}[_0x2c096c(0x452)](_0x37f8ae=!0x1){const _0x5d3d09=_0x2c096c;_0x37f8ae&&this[_0x5d3d09(0x24e)](),this[_0x5d3d09(0x221)](_0x37f8ae);}[_0x2c096c(0x303)](_0x1a049d,_0x47a96f,_0x5ca3d9,_0x91250a,_0x1f5fe3,_0x545090,_0x1f4f07){const _0x46d598=_0x2c096c;if(!this[_0x46d598(0x1e7)])return;let _0xce599b=_0x46d598(0x1ec)+this[_0x46d598(0x1e7)]+'-'+_0x5ca3d9,_0x2c7ac2=_0x1a049d['getObjectIncludeInGroup'](_0xce599b);if(_0x2c7ac2){_0x2c7ac2[_0x46d598(0x22d)]({'left':_0x47a96f['x']+_0x91250a-i[_0x46d598(0x4ad)][_0x46d598(0x23c)],'top':_0x47a96f['y']+_0x1f5fe3-i[_0x46d598(0x4ad)][_0x46d598(0x23c)]}),_0x2c7ac2[_0x46d598(0x26c)](!0x0);return;}let _0x2962e8=new at(_0xce599b,{'left':_0x47a96f['x']+_0x91250a-i['ShapeDefaultConfig']['adjHandleSize'],'top':_0x47a96f['y']+_0x1f5fe3-i['ShapeDefaultConfig'][_0x46d598(0x23c)],'adjName':_0x5ca3d9,'shapeId':this[_0x46d598(0x1e7)],'unitId':_0x545090,'subUnitId':_0x1f4f07,'width':i[_0x46d598(0x4ad)][_0x46d598(0x23c)]+0x8,'height':i[_0x46d598(0x4ad)][_0x46d598(0x23c)]+0x8,'zIndex':l['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0x46d598(0x463)][_0x46d598(0x47f)](_0x2962e8),this[_0x46d598(0x320)](_0x2962e8,_0x1a049d,_0x5ca3d9),_0x1a049d[_0x46d598(0x442)](_0x2962e8,l[_0x46d598(0x20e)]+0x1);}['_clearShapeAdjustControls'](){const _0x197bdb=_0x2c096c;this[_0x197bdb(0x463)][_0x197bdb(0x322)](_0x2cb053=>_0x2cb053[_0x197bdb(0x270)]()),this[_0x197bdb(0x463)]=[];}[_0x2c096c(0x219)](){this['_createShapeAdjustControls']();}[_0x2c096c(0x331)](_0x403471,_0x5eba1f,_0x4fbe91){const _0xeb21bf=_0x2c096c;let _0x10b103=l[_0xeb21bf(0x2f0)][_0xeb21bf(0x43a)]([_0x5eba1f,_0x4fbe91]),_0x2132d4=_0x403471['getActiveViewportByCoord'](_0x10b103)??_0x403471['getViewports']()[0x0];return(_0x2132d4==null?void 0x0:_0x2132d4[_0xeb21bf(0x2c2)](_0x10b103))??_0x10b103;}[_0x2c096c(0x320)](_0x41d1b9,_0x431920,_0x58484f){const _0x2077ea=_0x2c096c;this[_0x2077ea(0x387)]((0x0,o['toDisposable'])(_0x41d1b9[_0x2077ea(0x2d6)]['subscribeEvent']((_0x2e3052,_0x20db5a)=>{const _0xf4ac17=_0x2077ea;var _0x237c04;let _0x71f8ef=_0x41d1b9[_0xf4ac17(0x366)]();this[_0xf4ac17(0x2fc)]=this[_0xf4ac17(0x3a9)](_0x71f8ef[_0xf4ac17(0x385)],_0x71f8ef[_0xf4ac17(0x467)],_0x71f8ef['drawingId'],_0x58484f),this[_0xf4ac17(0x479)]=this[_0xf4ac17(0x1ee)][_0xf4ac17(0x1d6)](_0x71f8ef[_0xf4ac17(0x385)],_0x71f8ef[_0xf4ac17(0x467)],_0x71f8ef['drawingId']);let _0x5ecf18=this['_getActiveDrawingParam'](),_0x46729c=_0x5ecf18==null?void 0x0:_0x5ecf18[_0xf4ac17(0x38d)];if(!_0x5ecf18||!_0x46729c||!this['_activeShapeModel'])return;this[_0xf4ac17(0x374)]=_0x46729c[_0xf4ac17(0x415)]||0x0,this[_0xf4ac17(0x4a0)]=_0x46729c[_0xf4ac17(0x1fb)]||0x0,this[_0xf4ac17(0x3c0)]=_0x46729c[_0xf4ac17(0x4a9)]||0x0,this[_0xf4ac17(0x224)]=_0x46729c['height']||0x0;let _0x5b4247=!!_0x46729c['flipX'],_0x27393a=!!_0x46729c[_0xf4ac17(0x1ea)],_0x26fba9=_0x46729c[_0xf4ac17(0x269)]||0x0,_0x461a80={...((_0x237c04=this['_activeAdjustInfo'])==null?void 0x0:_0x237c04[_0xf4ac17(0x478)])??{}};this[_0xf4ac17(0x42a)]=!0x0,_0x431920[_0xf4ac17(0x43c)](),this[_0xf4ac17(0x26f)]=_0x431920[_0xf4ac17(0x455)]['subscribeEvent']((_0x150c33,_0x50d748)=>{const _0x97d158=_0xf4ac17;var _0xfb5759;if(!this[_0x97d158(0x42a)]||!this[_0x97d158(0x479)]||!this[_0x97d158(0x2fc)])return;_0x431920[_0x97d158(0x43c)](),_0x431920[_0x97d158(0x356)](l['CURSOR_TYPE'][_0x97d158(0x258)]);let _0x2089e8=this[_0x97d158(0x331)](_0x431920,_0x150c33[_0x97d158(0x371)],_0x150c33[_0x97d158(0x4b6)]),_0x5ec7a7=_0x2089e8['x']-this[_0x97d158(0x374)],_0xdcd22a=_0x2089e8['y']-this[_0x97d158(0x4a0)];if(_0x26fba9!==0x0){let _0x5bfb5a=this[_0x97d158(0x3c0)]/0x2,_0x247293=this[_0x97d158(0x224)]/0x2,_0x2ff0ae=_0x26fba9*Math['PI']/0xb4,_0x3efa31=Math[_0x97d158(0x407)](_0x2ff0ae),_0x5a1508=Math['sin'](_0x2ff0ae),_0x4e60b1=_0x5ec7a7-_0x5bfb5a,_0x2fb318=_0xdcd22a-_0x247293;_0x5ec7a7=_0x5bfb5a+(_0x4e60b1*_0x3efa31+_0x2fb318*_0x5a1508),_0xdcd22a=_0x247293+(-_0x4e60b1*_0x5a1508+_0x2fb318*_0x3efa31);}_0x5b4247&&(_0x5ec7a7=this[_0x97d158(0x3c0)]-_0x5ec7a7),_0x27393a&&(_0xdcd22a=this['_baseShapeHeight']-_0xdcd22a);let _0xc52854={'left':0x0,'top':0x0,'width':this[_0x97d158(0x3c0)],'height':this[_0x97d158(0x224)]},_0x5041a6=this[_0x97d158(0x479)]['calcAdjValues'](_0xc52854,{'x':_0x5ec7a7,'y':_0xdcd22a},this['_activeAdjustInfo'],_0x5b4247,_0x27393a);if(Object[_0x97d158(0x20a)](_0x5041a6)['length']!==0x0){for(let [_0x48b042,_0x1b5b62]of Object[_0x97d158(0x376)](_0x5041a6))this['_activeShapeModel'][_0x97d158(0x330)](_0x48b042,_0x1b5b62);this[_0x97d158(0x479)][_0x97d158(0x49f)]({'width':this['_baseShapeWidth'],'height':this[_0x97d158(0x224)]}),(_0xfb5759=this[_0x97d158(0x200)](_0x431920))==null||_0xfb5759[_0x97d158(0x26c)](!0x0),this[_0x97d158(0x40e)]=this[_0x97d158(0x453)](_0x71f8ef['unitId'],_0x71f8ef[_0x97d158(0x467)],_0x71f8ef[_0x97d158(0x40c)]),this[_0x97d158(0x219)](),_0x50d748['stopPropagation']();}}),this[_0xf4ac17(0x340)]=_0x431920[_0xf4ac17(0x315)][_0xf4ac17(0x490)]((_0x26d529,_0x30d65a)=>{const _0x31264e=_0xf4ac17;var _0x3a331,_0x4621b3;(_0x3a331=this['_adjHandlerPointerMove'])==null||_0x3a331['unsubscribe'](),(_0x4621b3=this[_0x31264e(0x340)])==null||_0x4621b3[_0x31264e(0x411)](),_0x431920[_0x31264e(0x28f)]();let _0x3a5652=this[_0x31264e(0x2fc)];if(_0x3a5652&&this[_0x31264e(0x479)]){let _0x23fc15={};for(let _0x2b4d5d of Object[_0x31264e(0x20a)](_0x3a5652[_0x31264e(0x478)])){let _0x39d5aa=this[_0x31264e(0x479)]['getAdjustValueByName'](_0x2b4d5d);_0x39d5aa!==void 0x0&&(_0x23fc15[_0x2b4d5d]=_0x39d5aa);}Object['keys'](_0x23fc15)[_0x31264e(0x472)]>0x0&&R(this[_0x31264e(0x405)],_0x71f8ef['unitId'],_0x71f8ef['subUnitId'],_0x71f8ef['drawingId'],{'oldShapeData':{'adjustValues':_0x461a80}},{'adjustValues':_0x23fc15});}this[_0x31264e(0x2fc)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x31264e(0x42a)]=!0x1,_0x431920[_0x31264e(0x454)](),_0x30d65a[_0x31264e(0x1d4)]();}),_0x20db5a[_0xf4ac17(0x1d4)]();})));}[_0x2c096c(0x4c3)](){const _0x3fcba8=_0x2c096c;let {scene:_0x89f40c}=this[_0x3fcba8(0x39d)],_0x19e73f=_0x89f40c[_0x3fcba8(0x2e1)]();this[_0x3fcba8(0x387)](_0x19e73f['changeStart$'][_0x3fcba8(0x1d2)](_0x30f777=>{const _0x555863=_0x3fcba8;this['_createShapeAdjustControls'](),_0x30f777[_0x555863(0x1eb)]!==null&&_0x30f777['objects']['size']===0x1&&_0x30f777[_0x555863(0x1eb)]['values']()[_0x555863(0x42d)]()[_0x555863(0x1e4)]instanceof U&&(this['_isShouldShowDrawingShapeAdjust']=!0x0);})),this[_0x3fcba8(0x387)](_0x19e73f[_0x3fcba8(0x460)]['subscribe'](()=>{const _0x512efe=_0x3fcba8;this[_0x512efe(0x4c7)]&&this[_0x512efe(0x24e)]();})),this[_0x3fcba8(0x387)](_0x89f40c[_0x3fcba8(0x315)][_0x3fcba8(0x490)](()=>{const _0x491b5e=_0x3fcba8;this[_0x491b5e(0x4c7)]&&(this[_0x491b5e(0x4c7)]=!0x1,this[_0x491b5e(0x221)]());})),this[_0x3fcba8(0x387)](_0x19e73f[_0x3fcba8(0x49d)][_0x3fcba8(0x1d2)](()=>{const _0x15a68a=_0x3fcba8;this[_0x15a68a(0x430)]&&this[_0x15a68a(0x21e)]&&this[_0x15a68a(0x1e7)]&&(this['_activeShapeAdjustPointList']=this[_0x15a68a(0x453)](this['_unitId'],this[_0x15a68a(0x21e)],this[_0x15a68a(0x1e7)]),this[_0x15a68a(0x219)]());}));}[_0x2c096c(0x2c1)](){const _0x105c43=_0x2c096c;this[_0x105c43(0x387)](this[_0x105c43(0x405)]['onCommandExecuted'](_0x1f0787=>{const _0x1424d2=_0x105c43;if(_0x1f0787['id']!==r[_0x1424d2(0x398)]['id'])return;let {unitId:_0x2369cc,shapeId:_0x1604b9}=_0x1f0787[_0x1424d2(0x2ab)];_0x2369cc===this[_0x1424d2(0x430)]&&_0x1604b9===this[_0x1424d2(0x1e7)]&&this[_0x1424d2(0x464)]();})),this[_0x105c43(0x387)](this[_0x105c43(0x3b9)][_0x105c43(0x3c8)][_0x105c43(0x1d2)](_0x500b17=>{const _0xc9524a=_0x105c43;if(_0x500b17[_0xc9524a(0x472)]===0x1){let _0x2e5f24=_0x500b17[0x0],_0x1104dd=this[_0xc9524a(0x3b9)][_0xc9524a(0x1cc)](_0x2e5f24);if((_0x1104dd==null?void 0x0:_0x1104dd[_0xc9524a(0x249)])===o['DrawingTypeEnum']['DRAWING_SHAPE']){this[_0xc9524a(0x1e7)]=_0x2e5f24['drawingId'],this[_0xc9524a(0x430)]=_0x2e5f24['unitId'],this[_0xc9524a(0x21e)]=_0x2e5f24[_0xc9524a(0x467)],this[_0xc9524a(0x40e)]=this[_0xc9524a(0x453)](_0x2e5f24['unitId'],_0x2e5f24[_0xc9524a(0x467)],_0x2e5f24[_0xc9524a(0x40c)]),this[_0xc9524a(0x24e)](),this[_0xc9524a(0x221)]();return;}}this['_activeShapeId']=null,this[_0xc9524a(0x40e)]=void 0x0,this[_0xc9524a(0x430)]=null,this['_subUnitId']=null,this[_0xc9524a(0x24e)]();})),this['disposeWithMe']((0x0,p[_0x105c43(0x4aa)])(this['_drawingManagerService'][_0x105c43(0x212)],this['_drawingManagerService'][_0x105c43(0x495)])[_0x105c43(0x1d2)](_0x5b70ba=>{const _0x252b14=_0x105c43;var _0x3bb569;let _0xe38918=_0x5b70ba['find'](_0x517443=>_0x517443[_0x252b14(0x40c)]===this[_0x252b14(0x1e7)]&&_0x517443['unitId']===this[_0x252b14(0x430)]&&_0x517443[_0x252b14(0x467)]===this[_0x252b14(0x21e)]);_0xe38918&&((_0x3bb569=this['_drawingManagerService']['getDrawingByParam'](_0xe38918))==null?void 0x0:_0x3bb569['drawingType'])===o[_0x252b14(0x37c)][_0x252b14(0x27e)]&&this['_updateShapeAdjustControls'](!0x0);})),this['disposeWithMe'](this['_drawingManagerService']['remove$'][_0x105c43(0x1d2)](_0x322dcf=>{const _0x308b93=_0x105c43;for(let _0x104586 of _0x322dcf)this[_0x308b93(0x1e7)]===_0x104586['drawingId']&&(this[_0x308b93(0x1e7)]=null,this[_0x308b93(0x40e)]=void 0x0,this['_unitId']=null,this[_0x308b93(0x21e)]=null,this['_clearShapeAdjustControls']());}));}};W=I([F(0x1,u['IDrawingManagerService']),F(0x2,(0x0,o['Inject'])(r[_0x2c096c(0x235)])),F(0x3,o[_0x2c096c(0x2b2)])],W);let G=class extends o[_0x2c096c(0x2c9)]{constructor(_0x5a7d97,_0xf5c9b8){const _0x270518=_0x2c096c;super(),this[_0x270518(0x1e3)]=_0x5a7d97,this['_instanceService']=_0xf5c9b8,H(this,'_editingParams$',new p[(_0x270518(0x413))](null)),H(this,_0x270518(0x308),this['_editingParams$']['asObservable']()),H(this,_0x270518(0x42f),new p[(_0x270518(0x413))](!0x1)),H(this,'onSavingEditorData$',this[_0x270518(0x42f)][_0x270518(0x30f)]()),H(this,'_completionFrame',void 0x0),this['disposeWithMe'](this['_permissionService'][_0x270518(0x319)]['subscribe'](()=>{const _0x33bba5=_0x270518;let _0x35b0db=this['getEditing']();_0x35b0db!=null&&_0x35b0db[_0x33bba5(0x238)]&&!this[_0x33bba5(0x3f5)](_0x35b0db)&&this[_0x33bba5(0x312)](null);}));}[_0x2c096c(0x270)](){const _0x1702ff=_0x2c096c;this[_0x1702ff(0x1f9)](),this[_0x1702ff(0x46d)][_0x1702ff(0x42d)](null),this[_0x1702ff(0x46d)][_0x1702ff(0x20d)](),this[_0x1702ff(0x42f)][_0x1702ff(0x42d)](!0x1),this['_onSavingEditorData$'][_0x1702ff(0x20d)](),super[_0x1702ff(0x270)]();}[_0x2c096c(0x312)](_0x5b40a9){const _0x5e447b=_0x2c096c;(_0x5b40a9==null||!_0x5b40a9['visible']||this[_0x5e447b(0x3f5)](_0x5b40a9))&&(this[_0x5e447b(0x1f9)](),this['_editingParams$'][_0x5e447b(0x42d)](_0x5b40a9),(_0x5b40a9==null||_0x5b40a9[_0x5e447b(0x238)]&&this['_onSavingEditorData$']['getValue']())&&this[_0x5e447b(0x42f)][_0x5e447b(0x42d)](!0x1));}['setOnSavingEditorData'](_0x3a5c59){this['_onSavingEditorData$']['next'](_0x3a5c59);}[_0x2c096c(0x343)](){const _0x4902b6=_0x2c096c;return this[_0x4902b6(0x46d)]['getValue']();}[_0x2c096c(0x3f5)](_0x56ffe8){const _0x4f70bf=_0x2c096c;let _0x2c87d7=this[_0x4f70bf(0x317)][_0x4f70bf(0x3f3)](_0x56ffe8[_0x4f70bf(0x385)],o[_0x4f70bf(0x273)][_0x4f70bf(0x2f5)]);if(!_0x2c87d7)return!0x0;let _0x1e1dc9=(0x0,s[_0x4f70bf(0x3e4)])(_0x2c87d7,_0x56ffe8[_0x4f70bf(0x275)]);return(0x0,s[_0x4f70bf(0x3ea)])(this['_permissionService'],_0x56ffe8[_0x4f70bf(0x385)],[...(0x0,s[_0x4f70bf(0x491)])(_0x2c87d7,_0x1e1dc9,_0x4f70bf(0x3a8),_0x56ffe8[_0x4f70bf(0x275)]),(0x0,s['getDocumentEntityPermissionObjectId'])(_0x1e1dc9,_0x4f70bf(0x3a8),_0x56ffe8[_0x4f70bf(0x275)])]);}['completeEditing'](_0x17c044){const _0x28bd75=_0x2c096c;let _0x2592e0=this[_0x28bd75(0x343)]();_0x2592e0&&this['_completionFrame']===void 0x0&&(this[_0x28bd75(0x1e5)](!0x0),this[_0x28bd75(0x368)]=requestAnimationFrame(()=>{const _0x3bd19b=_0x28bd75;this[_0x3bd19b(0x368)]=void 0x0,this[_0x3bd19b(0x343)]()===_0x2592e0&&this['setEditing'](null);}));}[_0x2c096c(0x1f9)](){const _0x22c8c1=_0x2c096c;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this[_0x22c8c1(0x368)]),this[_0x22c8c1(0x368)]=void 0x0);}[_0x2c096c(0x383)](){const _0x1d7b50=_0x2c096c;this['getEditing']()&&this[_0x1d7b50(0x312)](null);}};G=I([F(0x0,o[_0x2c096c(0x1d0)]),F(0x1,o[_0x2c096c(0x3a2)])],G);function st(_0x8c2db5){const _0x14c312=_0x2c096c;return _0x8c2db5[_0x14c312(0x30d)]===!0x0||_0x8c2db5[_0x14c312(0x30d)]===o['BooleanNumber'][_0x14c312(0x45d)]||_0x8c2db5['layoutType']===o[_0x14c312(0x47c)][_0x14c312(0x310)]&&_0x8c2db5[_0x14c312(0x253)]===o[_0x14c312(0x2f1)][_0x14c312(0x45d)]?t[_0x14c312(0x1c6)]-0x1:l[_0x14c312(0x20e)];}let K=class extends o[_0x2c096c(0x2c9)]{constructor(_0x5c0b0d,_0x3969a0,_0x217051,_0x164cfe,_0x1103cb,_0x36065c,_0x348968){const _0x79c870=_0x2c096c;super(),this[_0x79c870(0x3b9)]=_0x5c0b0d,this[_0x79c870(0x1ee)]=_0x3969a0,this[_0x79c870(0x2be)]=_0x217051,this[_0x79c870(0x390)]=_0x164cfe,this[_0x79c870(0x39b)]=_0x1103cb,this[_0x79c870(0x1cb)]=_0x36065c,this[_0x79c870(0x2c0)]=_0x348968,H(this,_0x79c870(0x1b4),new Map()),this[_0x79c870(0x387)](this['_shapeFormulaService']['presentationChanged$'][_0x79c870(0x1d2)](_0x5ad4cd=>{const _0x3f464f=_0x79c870;var _0x1dc194;(_0x1dc194=this[_0x3f464f(0x1b4)]['get'](this['_formulaKey'](_0x5ad4cd['unitId'],_0x5ad4cd[_0x3f464f(0x467)],_0x5ad4cd[_0x3f464f(0x275)])))==null||_0x1dc194[_0x3f464f(0x322)](_0x127073=>_0x127073[_0x3f464f(0x3fe)](_0x5ad4cd[_0x3f464f(0x22a)],_0x5ad4cd[_0x3f464f(0x2b1)]));})),this[_0x79c870(0x387)](this['_drawingManagerService'][_0x79c870(0x1ce)][_0x79c870(0x1d2)](_0x5fffad=>{const _0xb9bd0d=_0x79c870;_0x5fffad[_0xb9bd0d(0x322)](_0x33842f=>{const _0x3aca43=_0xb9bd0d;this[_0x3aca43(0x2c0)][_0x3aca43(0x471)]({'unitId':_0x33842f[_0x3aca43(0x385)],'subUnitId':_0x33842f['subUnitId'],'shapeId':_0x33842f[_0x3aca43(0x40c)]}),this['_formulaShapes'][_0x3aca43(0x294)](this[_0x3aca43(0x1f5)](_0x33842f[_0x3aca43(0x385)],_0x33842f['subUnitId'],_0x33842f[_0x3aca43(0x40c)]));});}));}['renderDrawingShape'](_0x402f35,_0x327c26){const _0x48470f=_0x2c096c;let {transform:_0x4e27dd,drawingType:_0x5605ca,srcRect:_0x34b995,prstGeom:_0x47c53a,groupId:_0x236f03,unitId:_0x5780c1,subUnitId:_0xd407a7,drawingId:_0x4e2fad,isMultiTransform:_0x35bf2c,transforms:_0x48e9d0,hidden:_0x38e468,selectable:_0x13373a}=_0x402f35;if(_0x5605ca!==o[_0x48470f(0x37c)][_0x48470f(0x27e)]||!this[_0x48470f(0x3b9)][_0x48470f(0x3b4)]()||_0x4e27dd==null)return;let _0x36cca1=this['_drawingManagerService']['getDrawingEditable'](),_0x4ace60=_0x35bf2c&&_0x48e9d0?_0x48e9d0:[_0x4e27dd],_0x2cee3f=[];for(let [_0x5ba2f1,_0x8d774d]of _0x4ace60[_0x48470f(0x376)]()){let {left:_0x24e8dd,top:_0x2fbe83,width:_0xd64d25,height:_0x55b517,angle:_0xe8c64e,flipX:_0x54d027,flipY:_0x4313d0,skewX:_0x20c9cb,skewY:_0x4c7c9d}=_0x8d774d,_0x1f6a86=(0x0,u[_0x48470f(0x391)])({'unitId':_0x5780c1,'subUnitId':_0xd407a7,'drawingId':_0x4e2fad},_0x35bf2c?_0x5ba2f1:void 0x0),_0x312495=_0x327c26['getObjectIncludeInGroup'](_0x1f6a86);if(_0x312495!=null){let _0x186f3e={'unitId':_0x5780c1,'subUnitId':_0xd407a7,'shapeId':_0x4e2fad};_0x312495 instanceof U&&this[_0x48470f(0x450)](_0x312495,_0x186f3e),_0x312495['transformByState']({'left':_0x24e8dd,'top':_0x2fbe83,'width':_0xd64d25,'height':_0x55b517,'angle':_0xe8c64e,'flipX':_0x54d027,'flipY':_0x4313d0,'skewX':_0x20c9cb,'skewY':_0x4c7c9d});continue;}let _0x2ddaaf=this[_0x48470f(0x3b9)][_0x48470f(0x485)](_0x5780c1,_0xd407a7),_0x93fa97=_0x2ddaaf[_0x48470f(0x435)](_0x4e2fad);if(_0x327c26['getObjectIncludeInGroup'](_0x1f6a86)||!this[_0x48470f(0x3b9)][_0x48470f(0x3b4)]())continue;let _0x5adda7=this['_docsShapeService']['getShapeModel'](_0x5780c1,_0xd407a7,_0x4e2fad);if(!_0x5adda7)continue;let _0x20ef9f=(0x0,i[_0x48470f(0x4b0)])(_0x5adda7[_0x48470f(0x299)]())?{...e[_0x48470f(0x3cf)],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:e[_0x48470f(0x3cf)],_0x411340=_0x5adda7['getShapeData']()['formulaBinding'],_0x222d72={'unitId':_0x5780c1,'subUnitId':_0xd407a7,'shapeId':_0x4e2fad};_0x411340&&this[_0x48470f(0x2c0)][_0x48470f(0x43b)](_0x222d72,_0x411340);let _0x11a954=new U(_0x1f6a86,{..._0x8d774d,'zIndex':_0x93fa97===-0x1?_0x2ddaaf[_0x48470f(0x472)]-0x1:_0x93fa97,'shapeModel':_0x5adda7,'localeService':this['_localeService'],'shapeId':_0x4e2fad,'unitId':_0x5780c1,'subUnitId':_0xd407a7,'visible':_0x38e468!==!0x0,'evented':_0x13373a!==!0x1,'formulaPresentation':_0x411340?this[_0x48470f(0x2c0)][_0x48470f(0x4a8)](_0x222d72):void 0x0,'animateFormulaPresentation':(_0x411340==null?void 0x0:_0x411340[_0x48470f(0x2b1)])!==!0x1,'transformerConfig':_0x20ef9f});if(_0x411340){let _0x339a38=this[_0x48470f(0x1f5)](_0x5780c1,_0xd407a7,_0x4e2fad),_0x5dfc42=this['_formulaShapes'][_0x48470f(0x328)](_0x339a38)??new Set();_0x5dfc42[_0x48470f(0x21d)](_0x11a954),this['_formulaShapes'][_0x48470f(0x2dd)](_0x339a38,_0x5dfc42);}this[_0x48470f(0x387)]((0x0,o[_0x48470f(0x1d8)])(_0x11a954[_0x48470f(0x39f)][_0x48470f(0x490)]((_0x384d93,_0x10e8bc)=>{const _0x515a5b=_0x48470f;_0x5adda7['isLineShape']()||_0x411340||(this[_0x515a5b(0x1cb)]['setEditing']({'visible':!0x0,'unitId':_0x5780c1,'subUnitId':_0xd407a7,'shapeId':_0x4e2fad,'shapeKey':_0x11a954[_0x515a5b(0x386)]}),_0x10e8bc['stopPropagation']());}))),_0x327c26[_0x48470f(0x442)](_0x11a954,st(_0x402f35)),_0x36cca1&&_0x327c26[_0x48470f(0x220)](_0x11a954),_0x236f03&&(0x0,d[_0x48470f(0x2cc)])({'drawingId':_0x236f03,'unitId':_0x5780c1,'subUnitId':_0xd407a7},_0x11a954,_0x327c26,this['_drawingManagerService'],_0x35bf2c?_0x5ba2f1:void 0x0),_0x47c53a!=null&&_0x11a954[_0x48470f(0x2f2)](_0x47c53a),_0x34b995!=null&&_0x11a954[_0x48470f(0x300)](_0x34b995),this[_0x48470f(0x4a7)](_0x11a954,_0x5adda7[_0x48470f(0x3c3)]()),_0x2cee3f[_0x48470f(0x47f)](_0x11a954);}return _0x2cee3f;}[_0x2c096c(0x1f5)](_0x30aa30,_0x9837bc,_0x2eb456){return _0x30aa30+'\x00'+_0x9837bc+'\x00'+_0x2eb456;}['refreshFormulaPresentation'](_0x2e2ed9,_0x3a6e17){const _0x2f1ee3=_0x2c096c;let _0x55519e=this[_0x2f1ee3(0x1ee)][_0x2f1ee3(0x1d6)](_0x3a6e17[_0x2f1ee3(0x385)],_0x3a6e17[_0x2f1ee3(0x467)],_0x3a6e17['shapeId']),_0x18007f=_0x55519e==null?void 0x0:_0x55519e[_0x2f1ee3(0x3c3)]()[_0x2f1ee3(0x1d1)],_0x47a6a2=this['_formulaKey'](_0x3a6e17[_0x2f1ee3(0x385)],_0x3a6e17[_0x2f1ee3(0x467)],_0x3a6e17[_0x2f1ee3(0x275)]);if(_0x18007f){this[_0x2f1ee3(0x2c0)][_0x2f1ee3(0x43b)](_0x3a6e17,_0x18007f);let _0x54414d=this[_0x2f1ee3(0x1b4)]['get'](_0x47a6a2)??new Set();_0x54414d[_0x2f1ee3(0x21d)](_0x2e2ed9),this[_0x2f1ee3(0x1b4)][_0x2f1ee3(0x2dd)](_0x47a6a2,_0x54414d);}else{var _0xb9b18;this['_shapeFormulaService'][_0x2f1ee3(0x471)](_0x3a6e17),(_0xb9b18=this[_0x2f1ee3(0x1b4)][_0x2f1ee3(0x328)](_0x47a6a2))==null||_0xb9b18[_0x2f1ee3(0x294)](_0x2e2ed9);}_0x2e2ed9[_0x2f1ee3(0x3fe)](_0x18007f?this[_0x2f1ee3(0x2c0)][_0x2f1ee3(0x4a8)](_0x3a6e17):void 0x0,(_0x18007f==null?void 0x0:_0x18007f[_0x2f1ee3(0x2b1)])!==!0x1);}['refreshShapeFillImage'](_0x240724){const _0x4ba758=_0x2c096c;let _0xe8babf=_0x240724[_0x4ba758(0x404)][_0x4ba758(0x3c3)](),_0x120ef8=_0xe8babf[_0x4ba758(0x4a3)];!_0x120ef8||_0x120ef8[_0x4ba758(0x32e)]!==i['ShapeFillEnum'][_0x4ba758(0x278)]||!_0x120ef8['fillImageSource']?_0x240724[_0x4ba758(0x2ec)](void 0x0):this[_0x4ba758(0x4a7)](_0x240724,_0xe8babf);}[_0x2c096c(0x4a7)](_0x4d6148,_0x4bf0a3){const _0x4c41c9=_0x2c096c;let _0x29ad26=_0x4bf0a3[_0x4c41c9(0x4a3)];if(!_0x29ad26||_0x29ad26['fillType']!==i[_0x4c41c9(0x38b)]['PictureFill']||!_0x29ad26[_0x4c41c9(0x3f9)])return;let _0x2c1a04=_0x29ad26['fillImageSource'],_0x341ae4=_0x29ad26[_0x4c41c9(0x1b5)]??i['ImageSourceTypeEnum'][_0x4c41c9(0x31d)],_0x38912a=this['_imageIoService'][_0x4c41c9(0x276)](_0x2c1a04,_0x341ae4);_0x38912a?_0x4d6148['setFillImage'](_0x38912a):this[_0x4c41c9(0x2c3)](_0x4d6148,_0x2c1a04,_0x341ae4);}async[_0x2c096c(0x2c3)](_0x2e66d2,_0x3dee48,_0x241e10){const _0x113d8b=_0x2c096c;let _0x3233cb;try{if(_0x241e10===i[_0x113d8b(0x217)]['UUID'])_0x3233cb=await this[_0x113d8b(0x390)][_0x113d8b(0x342)](_0x3dee48);else{if(_0x241e10===i[_0x113d8b(0x217)][_0x113d8b(0x31d)])try{_0x3233cb=await this[_0x113d8b(0x39b)][_0x113d8b(0x342)](_0x3dee48);}catch{_0x3233cb=_0x3dee48;}else _0x3233cb=_0x3dee48;}}catch(_0x577bc1){console[_0x113d8b(0x432)]('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x577bc1);return;}let _0xd1da7b=new window[(_0x113d8b(0x23b))]();_0xd1da7b[_0x113d8b(0x24f)]=()=>{const _0x46ee28=_0x113d8b;this[_0x46ee28(0x390)][_0x46ee28(0x1d5)](_0x3dee48,_0x241e10,_0xd1da7b),_0x2e66d2[_0x46ee28(0x2ec)](_0xd1da7b);},_0xd1da7b[_0x113d8b(0x39e)]=()=>{const _0x43038c=_0x113d8b;console[_0x43038c(0x432)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x3dee48);},_0xd1da7b[_0x113d8b(0x46b)]=_0x3233cb;}};K=I([F(0x0,u[_0x2c096c(0x482)]),F(0x1,(0x0,o[_0x2c096c(0x3c9)])(r['DocsShapeService'])),F(0x2,(0x0,o[_0x2c096c(0x3c9)])(o[_0x2c096c(0x3dc)])),F(0x3,o['IImageIoService']),F(0x4,o[_0x2c096c(0x480)]),F(0x5,(0x0,o[_0x2c096c(0x3c9)])(G)),F(0x6,(0x0,o['Inject'])(a['ShapeFormulaService']))],K);let q=class extends o['Disposable']{constructor(_0x28a2fe,_0x4cee7f,_0x501084){const _0x3f044e=_0x2c096c;super(),this[_0x3f044e(0x348)]=_0x28a2fe,this[_0x3f044e(0x3b9)]=_0x4cee7f,this[_0x3f044e(0x4c6)]=_0x501084,this[_0x3f044e(0x2a8)]();}[_0x2c096c(0x2a8)](){const _0x142ca7=_0x2c096c;this[_0x142ca7(0x387)](this['_docPrintInterceptorService'][_0x142ca7(0x2f7)]['intercept'](this[_0x142ca7(0x348)][_0x142ca7(0x2f7)][_0x142ca7(0x473)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x1029ce,_0x4a9ae5,_0x38673f)=>{const _0x313b5e=_0x142ca7;var _0x39e004;let {unitId:_0x498107,scene:_0x3e7401,skeleton:_0x1da782}=_0x4a9ae5,{pageIndex:_0x57e596}=_0x4a9ae5,_0x23fb32=(_0x39e004=this[_0x313b5e(0x3b9)][_0x313b5e(0x380)](_0x498107))==null?void 0x0:_0x39e004[_0x498107],_0x158c4c=ct(this[_0x313b5e(0x348)],_0x1da782,_0x57e596);return _0x23fb32==null||_0x23fb32['order'][_0x313b5e(0x322)](_0x3de917=>{const _0x3a7d36=_0x313b5e;if(_0x158c4c&&!_0x158c4c[_0x3a7d36(0x23f)](_0x3de917))return;let _0x566a40=_0x23fb32[_0x3a7d36(0x2d9)][_0x3de917];_0x566a40[_0x3a7d36(0x249)]===o[_0x3a7d36(0x37c)]['DRAWING_SHAPE']&&!_0x566a40[_0x3a7d36(0x239)]&&this[_0x3a7d36(0x4c6)]['renderDrawingShape'](_0x566a40,_0x3e7401);}),_0x38673f(_0x1029ce);}}));}};q=I([F(0x0,(0x0,o['Inject'])(t['DocPrintInterceptorService'])),F(0x1,u[_0x2c096c(0x482)]),F(0x2,(0x0,o[_0x2c096c(0x3c9)])(K))],q);function ct(_0x228f48,_0x591361,_0x1aaa8f){const _0x24c7f7=_0x2c096c;var _0x25cd38,_0x33b8c6;let _0x485e54=_0x228f48;if(_0x485e54[_0x24c7f7(0x3e6)])return _0x485e54['getPageDrawingIds'](_0x591361,_0x1aaa8f);let _0x31e7c8=_0x591361['getSkeletonData']();if(!_0x31e7c8||_0x31e7c8[_0x24c7f7(0x296)][_0x24c7f7(0x472)]<=0x1||_0x1aaa8f==null)return null;let _0x5563f0=new Set(),_0x2896ec=_0x31e7c8[_0x24c7f7(0x296)][_0x1aaa8f];if(!_0x2896ec)return _0x5563f0;lt(_0x2896ec,_0x5563f0);let _0x2d62a0=(_0x25cd38=_0x31e7c8[_0x24c7f7(0x25a)][_0x24c7f7(0x328)](_0x2896ec['headerId']))==null?void 0x0:_0x25cd38[_0x24c7f7(0x328)](_0x2896ec[_0x24c7f7(0x3ae)]??_0x2896ec[_0x24c7f7(0x26e)]),_0x273937=(_0x33b8c6=_0x31e7c8['skeFooters'][_0x24c7f7(0x328)](_0x2896ec[_0x24c7f7(0x3ec)]))==null?void 0x0:_0x33b8c6['get'](_0x2896ec[_0x24c7f7(0x244)]??_0x2896ec[_0x24c7f7(0x26e)]);return _0x2d62a0&<(_0x2d62a0,_0x5563f0),_0x273937&<(_0x273937,_0x5563f0),_0x5563f0;}function lt(_0x1ab4da,_0x14b442){const _0x2a9b94=_0x2c096c;for(let _0x53e213 of _0x1ab4da[_0x2a9b94(0x409)][_0x2a9b94(0x20a)]())_0x14b442['add'](_0x53e213);for(let _0x2cff52 of _0x1ab4da[_0x2a9b94(0x20b)][_0x2a9b94(0x1fc)]())for(let _0x4d9b95 of _0x2cff52[_0x2a9b94(0x400)])for(let _0xa655bc of _0x4d9b95['cells'])lt(_0xa655bc,_0x14b442);}function ut(_0x434a05){const _0x555065=_0x2c096c;return(0x0,f['jsx'])(oe,{..._0x434a05,'PickerComponent':e[_0x555065(0x2e4)]});}function dt(){const _0x389677=_0x2c096c;let _0x16ba3a=(0x0,n['useDependency'])(o[_0x389677(0x3dc)]),_0x4524dd=re(),[_0xa9da4a,_0x55cea4]=(0x0,v[_0x389677(0x210)])(!0x1);return(0x0,f[_0x389677(0x27f)])(_0x389677(0x302),{'className':'univer-grid\x20univer-gap-3','children':[(0x0,f[_0x389677(0x26b)])(_[_0x389677(0x292)],{'title':_0x16ba3a['t'](_0x389677(0x2a1)),'aria-expanded':_0xa9da4a,'variant':_0x389677(0x33f),'trailing':_0xa9da4a?(0x0,f[_0x389677(0x26b)])(g[_0x389677(0x29f)],{}):(0x0,f[_0x389677(0x26b)])(g['MoreDownIcon'],{}),'onClick':()=>_0x55cea4(_0x8d8314=>!_0x8d8314)}),_0xa9da4a&&(0x0,f['jsx'])(e['MobileShapePickerPanel'],{'excludeGroups':[e[_0x389677(0x355)]['Line']],'onShapeClick':_0xe3d921=>{_0x4524dd(_0xe3d921),_0x55cea4(!0x1);}})]});}function ft(_0x292c48){const _0x528685=_0x2c096c;return _0x292c48[_0x528685(0x24a)]()||void 0x0;}function pt(_0x879b0,_0x32933d,_0x59da0a){const _0x348193=_0x2c096c;var _0xa844cd,_0x82555d;return((_0xa844cd=_0x879b0[_0x348193(0x256)])==null?void 0x0:_0xa844cd['trim']())||((_0x82555d=_0x879b0[_0x348193(0x3d8)])==null?void 0x0:_0x82555d['trim']())||_0x59da0a['t'](_0x348193(0x4b2)+(0x0,e[_0x348193(0x399)])(_0x879b0[_0x348193(0x249)]))+'\x20'+(_0x32933d+0x1);}function mt({PanelComponent:_0x22ed0f=d[_0x2c096c(0x2df)]}){const _0x468d64=_0x2c096c;let _0x2c2469=(0x0,n[_0x468d64(0x447)])(o[_0x468d64(0x3dc)]),_0x453234={'title':_0x2c2469['t']('drawing-ui.objectListPanel.title'),'empty':_0x2c2469['t'](_0x468d64(0x42c)),'showAll':_0x2c2469['t']('drawing-ui.objectListPanel.showAll'),'hideAll':_0x2c2469['t']('drawing-ui.objectListPanel.hideAll'),'lockAll':_0x2c2469['t'](_0x468d64(0x21c)),'unlockAll':_0x2c2469['t'](_0x468d64(0x3ac)),'moveForward':_0x2c2469['t'](_0x468d64(0x237)),'moveBackward':_0x2c2469['t']('drawing-ui.objectListPanel.moveBackward'),'close':_0x2c2469['t'](_0x468d64(0x3ba)),'show':_0x2c2469['t'](_0x468d64(0x207)),'hide':_0x2c2469['t'](_0x468d64(0x396)),'lock':_0x2c2469['t'](_0x468d64(0x4bd)),'unlock':_0x2c2469['t'](_0x468d64(0x43f)),'lockHint':_0x2c2469['t'](_0x468d64(0x1bf)),'unlockHint':_0x2c2469['t']('drawing-ui.objectListPanel.unlockHint'),'name':_0x2c2469['t']('drawing-ui.objectListPanel.name'),'nameInput':_0x2c2469['t'](_0x468d64(0x2e5)),'description':_0x2c2469['t']('drawing-ui.objectListPanel.description'),'descriptionPlaceholder':_0x2c2469['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0x2c2469['t'](_0x468d64(0x48d)),'noSelection':_0x2c2469['t']('drawing-ui.objectListPanel.noSelection'),'locate':_0x2c2469['t'](_0x468d64(0x2b8)),'expand':_0x2c2469['t']('drawing-ui.objectListPanel.expand'),'collapse':_0x2c2469['t'](_0x468d64(0x2b9)),'dragToReorder':_0x2c2469['t'](_0x468d64(0x4c1)),'search':_0x2c2469['t'](_0x468d64(0x20f)),'filterAll':_0x2c2469['t'](_0x468d64(0x445)),'filterHidden':_0x2c2469['t']('drawing-ui.objectListPanel.filterHidden'),'filterLocked':_0x2c2469['t']('drawing-ui.objectListPanel.filterLocked'),'sectionCanvas':_0x2c2469['t']('drawing-ui.objectListPanel.sectionCanvas'),'sectionFloating':_0x2c2469['t'](_0x468d64(0x29d))},_0x15f27e=(0x0,n['useDependency'])(o[_0x468d64(0x2b2)]),_0x23c4e2=(0x0,n['useDependency'])(o[_0x468d64(0x3a2)]),_0x483220=(0x0,n[_0x468d64(0x447)])(c['IDocDrawingService']),_0x27a527=(0x0,n['useDependency'])(u['IDrawingManagerService']),_0x2541bc=(0x0,n[_0x468d64(0x447)])(l[_0x468d64(0x285)]),[,_0xd1978]=(0x0,v[_0x468d64(0x2f4)])(_0x509ad1=>_0x509ad1+0x1,0x0),_0x4ebd98=_0x23c4e2[_0x468d64(0x289)](o[_0x468d64(0x273)][_0x468d64(0x2f5)]),_0x354768=(_0x4ebd98==null?void 0x0:_0x4ebd98['getUnitId']())??'',_0x4bda07=_0x354768,_0x3eb771=(0x0,n['useObservable'])(()=>_0x27a527['focus$'],_0x27a527[_0x468d64(0x263)](),!0x1,[_0x27a527]);(0x0,v[_0x468d64(0x469)])(()=>{const _0x2372a6=_0x468d64;let _0x572453=_0x15f27e[_0x2372a6(0x412)](()=>_0xd1978());return()=>_0x572453[_0x2372a6(0x270)]();},[_0x15f27e]);let _0x71995e=_0x354768?_0x483220[_0x468d64(0x1fa)](_0x354768,_0x4bda07):{},_0x4783bc=(_0x354768?_0x483220[_0x468d64(0x485)](_0x354768,_0x4bda07):[])['map'](_0x3eff5d=>_0x71995e[_0x3eff5d])[_0x468d64(0x45a)](_0x51368f=>!!_0x51368f)[_0x468d64(0x3d7)](),_0x358ae7=_0x4783bc[_0x468d64(0x2bc)]((_0x1a7079,_0x22592a)=>(_0x1a7079[(0x0,d[_0x468d64(0x327)])(_0x22592a[_0x468d64(0x249)])]+=0x1,_0x1a7079),{'canvas':0x0,'floating':0x0}),_0x41d394={'canvas':0x0,'floating':0x0},_0x294ecb=_0x4783bc[_0x468d64(0x2b6)]((_0x3d815c,_0x11b39d)=>{const _0x5e0d16=_0x468d64;let _0x5a2346=(0x0,d[_0x5e0d16(0x327)])(_0x3d815c[_0x5e0d16(0x249)]),_0x7ce2a5=_0x5a2346===d[_0x5e0d16(0x4bc)],_0x2cfdc1=_0x41d394[_0x5a2346]++;return{'id':_0x3d815c[_0x5e0d16(0x40c)],'name':pt(_0x3d815c,_0x11b39d,_0x2c2469),'description':_0x3d815c[_0x5e0d16(0x34e)],'visible':_0x3d815c[_0x5e0d16(0x239)]!==!0x0,'selectable':_0x3d815c[_0x5e0d16(0x240)]!==!0x1,'sectionId':_0x5a2346,'sectionTitle':_0x7ce2a5?_0x453234['sectionFloating']:_0x453234[_0x5e0d16(0x39c)],'capabilities':_0x7ce2a5?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x7ce2a5&&_0x2cfdc1>0x0,'canMoveBackward':!_0x7ce2a5&&_0x2cfdc1<_0x358ae7[_0x5e0d16(0x362)]-0x1,'canReorder':!_0x7ce2a5};}),_0x412233=(0x0,v[_0x468d64(0x388)])(()=>(_0x3eb771??[])[_0x468d64(0x45a)](_0x5d8b0c=>_0x5d8b0c['unitId']===_0x354768&&_0x5d8b0c['subUnitId']===_0x4bda07)[_0x468d64(0x2b6)](_0x85c7a0=>_0x85c7a0['drawingId']),[_0x3eb771,_0x4bda07,_0x354768]),_0x551c5a=_0x412233[_0x412233['length']-0x1]??null,_0x322320=_0x3912e5=>_0x483220[_0x468d64(0x1cc)]({'unitId':_0x354768,'subUnitId':_0x4bda07,'drawingId':_0x3912e5})??null,_0x47bc44=async _0x3388f4=>{const _0x7b0278=_0x468d64;_0x354768&&_0x3388f4[_0x7b0278(0x472)]&&await _0x15f27e['executeCommand'](r[_0x7b0278(0x49e)]['id'],{'unitId':_0x354768,'patches':_0x3388f4});},_0x5f2eb2=(_0x2ab182,_0x36af15)=>{const _0x42f9b1=_0x468d64;if(!_0x354768)return;let _0x1163f5=_0x36af15?_0x412233[_0x42f9b1(0x433)](_0x2ab182)?_0x412233[_0x42f9b1(0x45a)](_0x1f9742=>_0x1f9742!==_0x2ab182):[..._0x412233,_0x2ab182]:[_0x2ab182];_0x15f27e[_0x42f9b1(0x2ee)](u['SetDrawingSelectedOperation']['id'],_0x1163f5[_0x42f9b1(0x2b6)](_0x94b5c2=>({'unitId':_0x354768,'subUnitId':_0x4bda07,'drawingId':_0x94b5c2})));let _0x11db7e=_0x1163f5[_0x1163f5[_0x42f9b1(0x472)]-0x1];_0x11db7e?(0x0,e[_0x42f9b1(0x272)])(_0x2541bc,{'unitId':_0x354768,'subUnitId':_0x4bda07,'drawingId':_0x11db7e}):(0x0,e[_0x42f9b1(0x364)])(_0x2541bc,_0x354768);},_0x41746e=async(_0x449181,_0x55b17d)=>{const _0x9e4b84=_0x468d64;await _0x47bc44(_0x449181[_0x9e4b84(0x2b6)](_0x28f14a=>_0x322320(_0x28f14a))[_0x9e4b84(0x45a)](_0x10a42e=>!!_0x10a42e)[_0x9e4b84(0x45a)](_0x81e188=>_0x81e188[_0x9e4b84(0x239)]!==!0x0!==_0x55b17d)[_0x9e4b84(0x2b6)](_0x2aaddd=>({'drawingId':_0x2aaddd['drawingId'],'hidden':!_0x55b17d})));},_0x432929=async(_0x55ea4c,_0x3e24d3)=>{const _0x3fee5f=_0x468d64;await _0x47bc44(_0x55ea4c[_0x3fee5f(0x2b6)](_0x1bbfa2=>_0x322320(_0x1bbfa2))[_0x3fee5f(0x45a)](_0x3f0bb2=>!!_0x3f0bb2)['filter'](_0x2ecf28=>_0x2ecf28['selectable']!==!0x1!==_0x3e24d3)['map'](_0x4c9d6e=>({'drawingId':_0x4c9d6e[_0x3fee5f(0x40c)],'selectable':_0x3e24d3})));},_0x262f91=_0x105cc2=>{const _0x2523e2=_0x468d64;let _0x5149d4=_0x322320(_0x105cc2);if(_0x5149d4)return _0x432929([_0x105cc2],_0x5149d4[_0x2523e2(0x240)]===!0x1);},_0x1e0cea=async(_0x24c9a1,_0x2a647f)=>{const _0x136b83=_0x468d64;let _0x320896=_0x322320(_0x24c9a1),_0x4dc7dc=ft(_0x2a647f);!_0x320896||(_0x320896[_0x136b83(0x256)]??void 0x0)===_0x4dc7dc&&(_0x320896[_0x136b83(0x3d8)]||void 0x0)===_0x4dc7dc||await _0x47bc44([{'drawingId':_0x24c9a1,'name':_0x4dc7dc,'title':_0x4dc7dc}]);},_0x119fb3=async(_0x136d89,_0x21b5e6)=>{const _0x21eea3=_0x468d64;let _0x10e0c5=_0x322320(_0x136d89),_0x13283b=ft(_0x21b5e6);_0x10e0c5&&(_0x10e0c5[_0x21eea3(0x34e)]??void 0x0)!==_0x13283b&&await _0x47bc44([{'drawingId':_0x136d89,'description':_0x13283b}]);},_0x3d534d=async(_0x412a59,_0x37f3c4)=>{const _0x1fa62c=_0x468d64;_0x354768&&await _0x15f27e['executeCommand'](c[_0x1fa62c(0x1c9)]['id'],{'unitId':_0x354768,'subUnitId':_0x4bda07,'drawingIds':[_0x412a59],'arrangeType':_0x37f3c4});};return _0x354768?(0x0,f[_0x468d64(0x26b)])(_0x22ed0f,{'labels':_0x453234,'renderPermissionAction':_0x3e2368=>_0x4ebd98?(0x0,f[_0x468d64(0x26b)])(n[_0x468d64(0x456)],{'target':{'unitId':_0x354768,'objectId':(0x0,s[_0x468d64(0x231)])((0x0,s[_0x468d64(0x3e4)])(_0x4ebd98,_0x3e2368['id']),_0x468d64(0x3a8),_0x3e2368['id']),'objectType':y['UnitObject'][_0x468d64(0x47b)]},'name':_0x3e2368[_0x468d64(0x256)],'commandId':s['SetDocumentPermissionCommand']['id'],'exists':()=>!!_0x322320(_0x3e2368['id'])},_0x354768+'/'+_0x3e2368['id']):null,'items':_0x294ecb,'selectedIds':_0x412233,'focusedId':_0x551c5a,'showHeader':!0x1,'onSelect':_0x5f2eb2,'onSetVisible':_0x41746e,'onSetSelectable':_0x432929,'onCommitName':_0x1e0cea,'onCommitDescription':_0x119fb3,'onMoveForward':async _0xc844c2=>_0x3d534d(_0xc844c2,o[_0x468d64(0x339)][_0x468d64(0x324)]),'onMoveBackward':async _0x30e05f=>_0x3d534d(_0x30e05f,o[_0x468d64(0x339)][_0x468d64(0x370)]),'onToggleSelectable':_0x262f91}):(0x0,f[_0x468d64(0x26b)])(_0x468d64(0x302),{'className':_0x468d64(0x2ac),'children':_0x453234[_0x468d64(0x3d8)]});}function ht(){const _0x826664=_0x2c096c;return(0x0,f[_0x826664(0x26b)])(mt,{'PanelComponent':d['MobileObjectListPanel']});}let J=class{constructor(_0x18fe46){const _0x315664=_0x2c096c;this[_0x315664(0x1f2)]=_0x18fe46;}[_0x2c096c(0x417)](_0x1dd24d,_0x30bf0e){const _0xde4c60=_0x2c096c;let _0x1eac46=this[_0xde4c60(0x1f2)]['getRenderUnitById'](_0x1dd24d['unitId']),_0x31a495=_0x1eac46==null?void 0x0:_0x1eac46[_0xde4c60(0x3b2)];if(!_0x31a495)return;let _0x31dcf3=(0x0,u[_0xde4c60(0x391)])(_0x1dd24d),_0x4e7dd3=_0x31a495[_0xde4c60(0x33c)](_0x31dcf3);_0x4e7dd3==null||_0x4e7dd3['setFillImage'](_0x30bf0e);}};J=I([F(0x0,l[_0x2c096c(0x285)])],J);function gt(){const _0x11ab26=_0x2c096c;let _0x30c792=(0x0,n[_0x11ab26(0x447)])(u[_0x11ab26(0x482)]),_0x6f4e32=(0x0,n[_0x11ab26(0x34a)])(()=>_0x30c792[_0x11ab26(0x3c8)],_0x30c792[_0x11ab26(0x263)](),!0x1,[_0x30c792]);return _0x6f4e32['length']===0x0?null:(0x0,f[_0x11ab26(0x26b)])(_0x11ab26(0x302),{'children':(0x0,f['jsxs'])(_0x11ab26(0x302),{'className':_0x11ab26(0x4bb),'children':[(0x0,f[_0x11ab26(0x26b)])(d[_0x11ab26(0x290)],{'drawings':_0x6f4e32,'hasCropper':!0x1}),(0x0,f['jsx'])(h[_0x11ab26(0x321)],{'drawings':_0x6f4e32}),(0x0,f[_0x11ab26(0x26b)])(h[_0x11ab26(0x1bd)],{'drawings':_0x6f4e32})]})});}function _t(_0x5e6d2a){const _0x5e5c4e=_0x2c096c;let {unitId:_0xc9ba3b,subUnitId:_0x1e7fad,shapeId:_0x1325ca,PositionComponent:_0xe132d2=gt}=_0x5e6d2a,_0x4e913e=(0x0,n['useDependency'])(o[_0x5e5c4e(0x2b2)]),_0x41aa61=(0x0,n[_0x5e5c4e(0x447)])(J);return(0x0,f['jsx'])(e[_0x5e5c4e(0x284)],{..._0x5e6d2a,'positionEditor':(0x0,f[_0x5e5c4e(0x26b)])(_0xe132d2,{}),'onUpdateShapeData':(_0x4cbbab,_0x36ab4c)=>{R(_0x4e913e,_0xc9ba3b,_0x1e7fad,_0x1325ca,_0x4cbbab,_0x36ab4c);},'onUpdateLineShapeData':(_0x39cdab,_0x49fccf)=>{fe(_0x4e913e,_0xc9ba3b,_0x1e7fad,_0x1325ca,_0x39cdab,_0x49fccf);},'onUpdateShapeFillImage':_0x329f74=>{const _0x3a42f4=_0x5e5c4e;_0x41aa61[_0x3a42f4(0x417)]({'unitId':_0xc9ba3b,'subUnitId':_0x1e7fad,'drawingId':_0x1325ca},_0x329f74);}});}function vt(){const _0x80e62d=_0x2c096c;let _0x1e562a=(0x0,n[_0x80e62d(0x447)])(u[_0x80e62d(0x482)]),_0x31ddc6=(0x0,n['useObservable'])(_0x1e562a[_0x80e62d(0x3c8)],_0x1e562a[_0x80e62d(0x263)]());return _0x31ddc6[_0x80e62d(0x472)]===0x0?null:(0x0,f[_0x80e62d(0x27f)])(_0x80e62d(0x302),{'className':'univer-grid\x20univer-gap-5\x20univer-p-3','children':[(0x0,f[_0x80e62d(0x26b)])(d[_0x80e62d(0x290)],{'drawings':_0x31ddc6,'hasCropper':!0x1}),(0x0,f[_0x80e62d(0x26b)])(h[_0x80e62d(0x48a)],{'drawings':_0x31ddc6}),(0x0,f[_0x80e62d(0x26b)])(h['MobileDocDrawingPosition'],{'drawings':_0x31ddc6})]});}function yt(_0x353b8a){const _0xa58c13=_0x2c096c;return(0x0,f[_0xa58c13(0x26b)])(e[_0xa58c13(0x24d)],{'children':(0x0,f[_0xa58c13(0x26b)])(_t,{..._0x353b8a,'PositionComponent':vt})});}function bt({popup:_0x2b9b1d}){const _0x117dc3=_0x2c096c;let _0x2e68c8=(0x0,n[_0x117dc3(0x447)])(o[_0x117dc3(0x3dc)]),{shapeType:_0x31d117,onText:_0x5d6174,onStyle:_0x5d5ca5,onDelete:_0x1912b8}=_0x2b9b1d['extraProps'],_0x2df52b=[{'key':_0x117dc3(0x20c),'order':0x0,'item':{'id':_0x117dc3(0x20c),'type':n[_0x117dc3(0x216)][_0x117dc3(0x476)],'title':_0x2e68c8['t'](_0x117dc3(0x484)),'disabled$':(0x0,p['of'])((0x0,i[_0x117dc3(0x4b0)])(_0x31d117))}},{'key':_0x117dc3(0x27a),'order':0x1,'item':{'id':_0x117dc3(0x27a),'type':n['MenuItemType']['BUTTON'],'title':_0x2e68c8['t'](_0x117dc3(0x48b))}},{'key':'delete','order':0x2,'item':{'id':_0x117dc3(0x294),'type':n[_0x117dc3(0x216)]['BUTTON'],'title':_0x2e68c8['t']('docs-shape-ui.mobile.delete')}}];return(0x0,f[_0x117dc3(0x26b)])(n[_0x117dc3(0x245)],{'schemas':_0x2df52b,'presentation':'context-bar','onOptionSelect':async({id:_0x565d30})=>{const _0x402db1=_0x117dc3;_0x565d30===_0x402db1(0x20c)?await _0x5d6174():_0x565d30===_0x402db1(0x27a)?await _0x5d5ca5():_0x565d30===_0x402db1(0x294)&&await _0x1912b8();}});}const xt='doc.shape.floating-toolbar';function St(_0x4dca88,_0x4a0d5c){const _0x15fce1=_0x2c096c;var _0x4a9837;let _0x222774=_0x4dca88==null||(_0x4a9837=_0x4dca88[_0x15fce1(0x215)]()[_0x15fce1(0x4ae)])==null?void 0x0:_0x4a9837[_0x4a0d5c];return _0x222774?_0x222774['layoutType']===o[_0x15fce1(0x47c)]['WRAP_NONE']?_0x222774[_0x15fce1(0x253)]===o['BooleanNumber'][_0x15fce1(0x45d)]?c[_0x15fce1(0x241)][_0x15fce1(0x26a)]:c[_0x15fce1(0x241)][_0x15fce1(0x1b3)]:_0x222774[_0x15fce1(0x225)]===o[_0x15fce1(0x47c)][_0x15fce1(0x378)]?c[_0x15fce1(0x241)]['WRAP_SQUARE']:_0x222774[_0x15fce1(0x225)]===o['PositionedObjectLayoutType'][_0x15fce1(0x316)]?c[_0x15fce1(0x241)][_0x15fce1(0x316)]:c[_0x15fce1(0x241)][_0x15fce1(0x323)]:c[_0x15fce1(0x241)][_0x15fce1(0x323)];}function Ct(_0x277fba){const _0x4bc813=_0x2c096c;let _0x10f7bb=(0x0,n[_0x4bc813(0x447)])(e[_0x4bc813(0x2e0)]),_0x106c04=(0x0,n[_0x4bc813(0x34a)])(()=>_0x10f7bb['visible$'],_0x10f7bb['getVisible'](),!0x1,[_0x10f7bb]),_0x4618ec=_0x277fba[_0x4bc813(0x25e)]['extraProps'];return _0x106c04?(0x0,f[_0x4bc813(0x26b)])(wt,{..._0x4618ec,'canvasElement':_0x277fba[_0x4bc813(0x25e)][_0x4bc813(0x40a)]}):null;}function wt(_0x5bb543){const _0x35c441=_0x2c096c;let _0x3cc5f7=(0x0,n[_0x35c441(0x447)])(o[_0x35c441(0x2b2)]),_0x3462f2=(0x0,n[_0x35c441(0x447)])(o[_0x35c441(0x3dc)]),_0x49540f=(0x0,n[_0x35c441(0x447)])(r[_0x35c441(0x235)]),_0x5ff2ab=(0x0,n[_0x35c441(0x447)])(o[_0x35c441(0x3a2)]),{unitId:_0x4a3d14,subUnitId:_0x11b421,drawingId:_0x3cbf6e,shapeType:_0x1951b3}=_0x5bb543,[_0xb232ea,_0x38df35]=(0x0,v['useState'])(_0x5bb543['shapeData']),_0x7f0c0d=_0x5ff2ab[_0x35c441(0x3f3)](_0x4a3d14,o[_0x35c441(0x273)]['UNIVER_DOC'])??void 0x0,[_0x3bb402,_0x1b9451]=(0x0,v[_0x35c441(0x210)])(()=>St(_0x7f0c0d,_0x3cbf6e)),_0x1addc8=(0x0,v[_0x35c441(0x388)])(()=>(0x0,e[_0x35c441(0x34b)])(_0xb232ea),[_0xb232ea]),_0x428fad=(0x0,v['useMemo'])(()=>(0x0,e[_0x35c441(0x267)])(_0xb232ea),[_0xb232ea]);(0x0,v['useEffect'])(()=>{const _0x18c156=_0x35c441;let _0x57df1d=_0x3cc5f7[_0x18c156(0x412)](_0x1f61f3=>{const _0x4e6712=_0x18c156;if(_0x1f61f3['id']!==r[_0x4e6712(0x398)]['id'])return;let _0x467d67=_0x49540f['getShapeDataById'](_0x4a3d14,_0x11b421,_0x3cbf6e);_0x467d67&&_0x38df35(_0x467d67);});return()=>_0x57df1d[_0x18c156(0x270)]();},[_0x3cc5f7,_0x49540f,_0x3cbf6e,_0x11b421,_0x4a3d14]);let _0x7abf9f=_0xb8fa28=>{_0x38df35(_0x36fb8e=>({..._0x36fb8e,..._0xb8fa28}));},_0x31f275=_0x4dfedf=>{const _0x1b8ce4=_0x35c441;let _0x99ba63=(0x0,e['buildShapeTextDataUpdate'])(_0xb232ea,_0x4dfedf);R(_0x3cc5f7,_0x4a3d14,_0x11b421,_0x3cbf6e,{'oldShapeData':{'shapeText':_0xb232ea[_0x1b8ce4(0x457)]}},_0x99ba63),_0x7abf9f(_0x99ba63);},_0x1b9f8c=_0x3035ea=>{const _0x4e13a3=_0x35c441;_0x1b9451(_0x3035ea),_0x3cc5f7['executeCommand'](c[_0x4e13a3(0x3d9)]['id'],{'unitId':_0x4a3d14,'subUnitId':_0x11b421,'drawings':[{'unitId':_0x4a3d14,'subUnitId':_0x11b421,'drawingId':_0x3cbf6e}],'wrappingStyle':_0x3035ea});},_0x21790e=(0x0,e[_0x35c441(0x423)])({'hostType':o[_0x35c441(0x273)]['UNIVER_DOC'],'unitId':_0x4a3d14,'subUnitId':_0x11b421,'shapeId':_0x3cbf6e,'shapeData':_0xb232ea,'onUpdateBinding':_0x58e8a0=>{const _0x3fe48d=_0x35c441;let _0x1c2057={'formulaBinding':_0x58e8a0};R(_0x3cc5f7,_0x4a3d14,_0x11b421,_0x3cbf6e,{'oldShapeData':{'formulaBinding':_0xb232ea[_0x3fe48d(0x1d1)]}},_0x1c2057),_0x7abf9f(_0x1c2057);}}),_0x4a1b14=[{'label':_0x3462f2['t'](_0x35c441(0x3af)),'value':c[_0x35c441(0x241)][_0x35c441(0x323)],'icon':(0x0,f[_0x35c441(0x26b)])(g[_0x35c441(0x1c8)],{})},{'label':_0x3462f2['t'](_0x35c441(0x329)),'value':c[_0x35c441(0x241)][_0x35c441(0x378)],'icon':(0x0,f[_0x35c441(0x26b)])(g[_0x35c441(0x1c8)],{})},{'label':_0x3462f2['t']('docs-shape-ui.textWrap.topAndBottom'),'value':c[_0x35c441(0x241)][_0x35c441(0x316)],'icon':(0x0,f[_0x35c441(0x26b)])(g['TextWrapShapeIcon'],{})},{'label':_0x3462f2['t'](_0x35c441(0x257)),'value':c['TextWrappingStyle'][_0x35c441(0x26a)],'icon':(0x0,f[_0x35c441(0x26b)])(g[_0x35c441(0x1c8)],{})},{'label':_0x3462f2['t'](_0x35c441(0x4c5)),'value':c['TextWrappingStyle'][_0x35c441(0x1b3)],'icon':(0x0,f[_0x35c441(0x26b)])(g[_0x35c441(0x1c8)],{})}];return(0x0,f[_0x35c441(0x27f)])(f['Fragment'],{'children':[(0x0,f[_0x35c441(0x26b)])(e[_0x35c441(0x283)],{'canvasElement':_0x5bb543[_0x35c441(0x40a)],'shapeData':_0xb232ea,'shapeType':_0x1951b3,'textStyle':{'ff':i[_0x35c441(0x4ad)][_0x35c441(0x457)][_0x35c441(0x3a6)],'fs':i[_0x35c441(0x4ad)]['shapeText']['fontSize'],'cl':{'rgb':i[_0x35c441(0x4ad)]['shapeText'][_0x35c441(0x23e)]},..._0x1addc8},'textModel':_0x428fad?{'ha':_0x428fad['ha']??o[_0x35c441(0x2c6)]['LEFT'],'va':_0x428fad['va']??o[_0x35c441(0x1ba)][_0x35c441(0x202)]}:null,'wrappingStyle':_0x3bb402,'wrappingStyleOptions':_0x4a1b14,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':i[_0x35c441(0x4ad)][_0x35c441(0x4a3)],'defaultGradientEndColor':i['ShapeDefaultConfig']['gradientEndColor'],'defaultStrokeColor':i[_0x35c441(0x4ad)][_0x35c441(0x4bf)],'extensionGroups':_0x21790e[_0x35c441(0x3bd)],'floatingObjectToolbarPosition':n[_0x35c441(0x208)]['DOC'],'onUpdateShapeData':(_0x4656b3,_0x59106d)=>{R(_0x3cc5f7,_0x4a3d14,_0x11b421,_0x3cbf6e,_0x4656b3,_0x59106d),_0x59106d&&_0x7abf9f(_0x59106d);},'onUpdateText':_0x31f275,'onUpdateWrappingStyle':_0x5a7998=>_0x1b9f8c(_0x5a7998),'onOpenPanel':()=>{const _0x58afb7=_0x35c441;_0x3cc5f7[_0x58afb7(0x3a0)](j['id'],{'unitId':_0x4a3d14,'subUnitId':_0x11b421,'drawingId':_0x3cbf6e});},'onDelete':()=>{const _0x598e3c=_0x35c441;_0x3cc5f7[_0x598e3c(0x3a0)](c[_0x598e3c(0x3a4)]['id'],{'unitId':_0x4a3d14,'drawings':[{'unitId':_0x4a3d14,'subUnitId':_0x11b421,'drawingId':_0x3cbf6e}]});}}),_0x21790e[_0x35c441(0x3de)]]});}function Tt({variant:_0x4c6ec8,extend:_0x322ef5,..._0x4509f4}){const _0x5e7f50=_0x2c096c;let _0x4eddbd=(0x0,f[_0x5e7f50(0x26b)])(_0x5e7f50(0x250),{'x':'7','y':_0x5e7f50(0x223),'width':'6','height':'9','rx':'1','fill':_0x5e7f50(0x23d),'fillOpacity':_0x5e7f50(0x3bf),'stroke':'currentColor','strokeWidth':'1.2'});return(0x0,f['jsxs'])(_0x5e7f50(0x3e9),{'aria-hidden':_0x5e7f50(0x3cd),'fill':'none','height':_0x5e7f50(0x3b3),'viewBox':_0x5e7f50(0x3f1),'width':'1em',..._0x4509f4,'children':[_0x4c6ec8===_0x5e7f50(0x2a3)&&(0x0,f[_0x5e7f50(0x27f)])(f[_0x5e7f50(0x45b)],{'children':[(0x0,f[_0x5e7f50(0x26b)])(_0x5e7f50(0x1f4),{'d':_0x5e7f50(0x444),'stroke':_0x5e7f50(0x23d),'strokeLinecap':'round','strokeWidth':'1.2'}),(0x0,f[_0x5e7f50(0x26b)])('rect',{'x':'8','y':'7','width':'4','height':'6','rx':_0x5e7f50(0x262),'fill':'currentColor','fillOpacity':_0x5e7f50(0x3bf),'stroke':'currentColor','strokeWidth':_0x5e7f50(0x33d)})]}),_0x4c6ec8===_0x5e7f50(0x1da)&&(0x0,f[_0x5e7f50(0x27f)])(f[_0x5e7f50(0x45b)],{'children':[(0x0,f[_0x5e7f50(0x26b)])(_0x5e7f50(0x1f4),{'d':'M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','stroke':'currentColor','strokeLinecap':_0x5e7f50(0x3b7),'strokeWidth':_0x5e7f50(0x33d)}),_0x4eddbd]}),_0x4c6ec8===_0x5e7f50(0x22f)&&(0x0,f[_0x5e7f50(0x27f)])(f[_0x5e7f50(0x45b)],{'children':[(0x0,f['jsx'])(_0x5e7f50(0x1f4),{'d':'M2\x203h16M2\x2017h16','stroke':'currentColor','strokeLinecap':_0x5e7f50(0x3b7),'strokeWidth':_0x5e7f50(0x33d)}),_0x4eddbd]}),_0x4c6ec8===_0x5e7f50(0x23a)&&(0x0,f[_0x5e7f50(0x27f)])(f[_0x5e7f50(0x45b)],{'children':[_0x4eddbd,(0x0,f['jsx'])(_0x5e7f50(0x1f4),{'d':'M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','stroke':_0x5e7f50(0x23d),'strokeLinecap':'round','strokeWidth':'1.2'})]}),_0x4c6ec8==='front'&&(0x0,f[_0x5e7f50(0x27f)])(f[_0x5e7f50(0x45b)],{'children':[(0x0,f[_0x5e7f50(0x26b)])('path',{'d':_0x5e7f50(0x2a0),'stroke':'currentColor','strokeLinecap':_0x5e7f50(0x3b7),'strokeWidth':_0x5e7f50(0x33d)}),(0x0,f[_0x5e7f50(0x26b)])(_0x5e7f50(0x250),{'x':'7','y':_0x5e7f50(0x223),'width':'6','height':'9','rx':'1','fill':'currentColor'})]})]});}const Y=_0x555a3f=>_0x6ddc13=>(0x0,f[_0x2c096c(0x26b)])(Tt,{..._0x6ddc13,'variant':_0x555a3f}),Et={'DocsShapeWrapInlineIcon':Y(_0x2c096c(0x2a3)),'DocsShapeWrapSquareIcon':Y(_0x2c096c(0x1da)),'DocsShapeWrapTopBottomIcon':Y(_0x2c096c(0x22f)),'DocsShapeWrapBehindTextIcon':Y(_0x2c096c(0x23a)),'DocsShapeWrapInFrontOfTextIcon':Y(_0x2c096c(0x351))},Dt=(0x0,v[_0x2c096c(0x4c8)])(()=>{const _0x58fde4=_0x2c096c;let _0x201ade=(0x0,n['useDependency'])(G),_0x5e1622=(0x0,n[_0x58fde4(0x447)])(r[_0x58fde4(0x235)]),_0x4dc907=(0x0,n[_0x58fde4(0x447)])(u[_0x58fde4(0x482)]),_0x3c9287=(0x0,n[_0x58fde4(0x447)])(o[_0x58fde4(0x2b2)]),_0x2a84ae=(0x0,v[_0x58fde4(0x388)])(()=>({'getShapeModel':(_0xedc089,_0x57201c,_0x14a491)=>_0x5e1622['getShapeModel'](_0xedc089,_0x57201c,_0x14a491),'getShapeData':(_0x2fbaf7,_0x168a29,_0x50f8d9)=>_0x5e1622[_0x58fde4(0x3c7)](_0x2fbaf7,_0x168a29,_0x50f8d9),'getDrawingTransform':(_0x260b37,_0x36b64d,_0xd6c1b2)=>{const _0x558297=_0x58fde4;let _0x57d3a1=_0x4dc907[_0x558297(0x1cc)]({'unitId':_0x260b37,'subUnitId':_0x36b64d,'drawingId':_0xd6c1b2});return _0x57d3a1==null?void 0x0:_0x57d3a1[_0x558297(0x38d)];},'updateShapeText':({unitId:_0x4f83aa,shapeId:_0x5180b7,shapeText:_0x2a8351,oldShapeText:_0x55a223})=>{const _0x3536d9=_0x58fde4;_0x3c9287['executeCommand'](r[_0x3536d9(0x3e0)]['id'],{'unitId':_0x4f83aa,'shapeId':_0x5180b7,'shapeData':{'shapeText':_0x2a8351},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x55a223}}});},'updateHostSize':({unitId:_0x21b3f1,subUnitId:_0x5d1246,shapeId:_0x4b1dbc,width:_0x17e875,height:_0x2d27da})=>{const _0x38d044=_0x58fde4;_0x3c9287['executeCommand'](c[_0x38d044(0x21a)]['id'],{'unitId':_0x21b3f1,'subUnitId':_0x5d1246,'drawings':[{'drawingId':_0x4b1dbc,'key':_0x38d044(0x2ba),'value':{'width':_0x17e875,'height':_0x2d27da}}]});},'allowHostSizeShrink':({unitId:_0x1e96f9,subUnitId:_0x16cad0,shapeId:_0x43eb6b})=>(0x0,e[_0x58fde4(0x3a7)])(_0x5e1622[_0x58fde4(0x3c7)](_0x1e96f9,_0x16cad0,_0x43eb6b))}),[_0x3c9287,_0x5e1622,_0x4dc907]),_0xb8a4dd=(0x0,v[_0x58fde4(0x388)])(()=>({'viewportKeys':{'main':t[_0x58fde4(0x1d9)]['VIEW_MAIN']}}),[]);return(0x0,f['jsx'])(e['ShapeTextEditorContainer'],{'adapter':_0x2a84ae,'editingService':_0x201ade,'editorUnitId':D,'positionOptions':_0xb8a4dd});});let Ot=class extends o[_0x2c096c(0x2c9)]{constructor(_0x1e9907,_0x59cf55){const _0x4bc5e8=_0x2c096c;super(),this['_componentManager']=_0x1e9907,this[_0x4bc5e8(0x487)]=_0x59cf55,this[_0x4bc5e8(0x1fe)](),this['_registerComponents']();}[_0x2c096c(0x1fe)](){const _0x4867fc=_0x2c096c;this['_iconManager'][_0x4867fc(0x23f)]('ObjectLayersIcon')||this['disposeWithMe'](this[_0x4867fc(0x487)][_0x4867fc(0x43b)]({'ObjectLayersIcon':g[_0x4867fc(0x227)]})),this[_0x4867fc(0x487)][_0x4867fc(0x23f)](_0x4867fc(0x211))||this['disposeWithMe'](this[_0x4867fc(0x487)]['register']({'BottomIcon':g[_0x4867fc(0x211)]})),this[_0x4867fc(0x487)][_0x4867fc(0x23f)](_0x4867fc(0x365))||this[_0x4867fc(0x387)](this['_iconManager'][_0x4867fc(0x43b)]({'MoveDownIcon':g[_0x4867fc(0x365)]})),this[_0x4867fc(0x487)][_0x4867fc(0x23f)]('MoveUpIcon')||this[_0x4867fc(0x387)](this[_0x4867fc(0x487)][_0x4867fc(0x43b)]({'MoveUpIcon':g[_0x4867fc(0x3ad)]})),this[_0x4867fc(0x487)]['has'](_0x4867fc(0x346))||this[_0x4867fc(0x387)](this[_0x4867fc(0x487)][_0x4867fc(0x43b)]({'ShapeFormatSettingIcon':g[_0x4867fc(0x346)]})),this[_0x4867fc(0x487)]['has'](_0x4867fc(0x274))||this[_0x4867fc(0x387)](this[_0x4867fc(0x487)][_0x4867fc(0x43b)]({'TopmostIcon':g[_0x4867fc(0x274)]})),this[_0x4867fc(0x387)](this[_0x4867fc(0x487)][_0x4867fc(0x43b)](Et));}['_registerComponents'](){const _0x10cb1b=_0x2c096c;this[_0x10cb1b(0x387)](this['_componentManager'][_0x10cb1b(0x43b)](w,yt)),this[_0x10cb1b(0x387)](this[_0x10cb1b(0x341)][_0x10cb1b(0x43b)](E,ht)),this[_0x10cb1b(0x387)](this['_componentManager'][_0x10cb1b(0x43b)](xt,bt)),this[_0x10cb1b(0x387)](this['_componentManager'][_0x10cb1b(0x43b)](me,be)),this[_0x10cb1b(0x387)](this[_0x10cb1b(0x341)][_0x10cb1b(0x43b)](pe,xe)),this[_0x10cb1b(0x387)](this[_0x10cb1b(0x341)][_0x10cb1b(0x43b)](he,Se)),this[_0x10cb1b(0x387)](this[_0x10cb1b(0x341)][_0x10cb1b(0x43b)](ge,Ce)),this[_0x10cb1b(0x387)](this[_0x10cb1b(0x341)][_0x10cb1b(0x43b)](_e,we)),this[_0x10cb1b(0x387)](this[_0x10cb1b(0x341)][_0x10cb1b(0x43b)](O,e[_0x10cb1b(0x358)])),this[_0x10cb1b(0x387)](this[_0x10cb1b(0x341)][_0x10cb1b(0x43b)](ee,ut)),this['disposeWithMe'](this['_componentManager'][_0x10cb1b(0x43b)](te,dt)),this['_componentManager'][_0x10cb1b(0x3d1)](d[_0x10cb1b(0x496)])||this[_0x10cb1b(0x387)](this[_0x10cb1b(0x341)][_0x10cb1b(0x43b)](d[_0x10cb1b(0x496)],ae)),this[_0x10cb1b(0x387)](this[_0x10cb1b(0x341)][_0x10cb1b(0x43b)](k,Dt));}};Ot=I([F(0x0,(0x0,o[_0x2c096c(0x3c9)])(n['ComponentManager'])),F(0x1,(0x0,o[_0x2c096c(0x3c9)])(n[_0x2c096c(0x3d6)]))],Ot);let kt=class extends o['Disposable']{constructor(_0xe70f61,_0x1d86ef,_0x590e58,_0x501b1f,_0x209f97,_0x28c142,_0x17c43f,_0x3bec2c,_0x54db09,_0x1fd467,_0x1cdada,_0x1c9403,_0x38a3c4){const _0x58fef5=_0x2c096c;super(),this['_univerInstanceService']=_0xe70f61,this[_0x58fef5(0x36f)]=_0x1d86ef,this['_menuManagerService']=_0x590e58,this[_0x58fef5(0x1ee)]=_0x501b1f,this[_0x58fef5(0x2be)]=_0x209f97,this[_0x58fef5(0x405)]=_0x28c142,this['_drawingManagerService']=_0x17c43f,this[_0x58fef5(0x35f)]=_0x3bec2c,this[_0x58fef5(0x1f2)]=_0x54db09,this[_0x58fef5(0x32b)]=_0x1fd467,this['_shapeTextEditingService']=_0x1cdada,this[_0x58fef5(0x1e3)]=_0x1c9403,this[_0x58fef5(0x492)]=_0x38a3c4,H(this,_0x58fef5(0x206),null),H(this,'_activeShapeInfo',null),H(this,_0x58fef5(0x2d7),!0x1),H(this,_0x58fef5(0x441),0x0),H(this,_0x58fef5(0x446),new Map()),H(this,_0x58fef5(0x389),new Map()),this['_initMenu'](),this[_0x58fef5(0x387)](this[_0x58fef5(0x408)][_0x58fef5(0x465)](o['UniverInstanceType'][_0x58fef5(0x2f5)])[_0x58fef5(0x1d2)](_0x5ab2fa=>{const _0x555d0b=_0x58fef5;if(!_0x5ab2fa){var _0x9e291c;(_0x9e291c=this[_0x555d0b(0x206)])==null||_0x9e291c[_0x555d0b(0x270)]();}})),this[_0x58fef5(0x488)](),this[_0x58fef5(0x387)](this['_drawingManagerService'][_0x58fef5(0x1ce)][_0x58fef5(0x1d2)](_0x1c9a28=>{const _0x520390=_0x58fef5;for(let _0x3de1c8 of _0x1c9a28){let _0x79c04d=_0x3de1c8['unitId']+':'+_0x3de1c8[_0x520390(0x467)]+':'+_0x3de1c8[_0x520390(0x40c)];for(let [_0x449b4a,_0x430b3e]of this[_0x520390(0x389)])_0x430b3e===_0x79c04d&&this['_clearPopups'](_0x449b4a,!0x0);}})),this['disposeWithMe']((0x0,e[_0x58fef5(0x466)])(this[_0x58fef5(0x1f2)],o['UniverInstanceType'][_0x58fef5(0x2f5)],_0x186421=>this[_0x58fef5(0x45f)](_0x186421))),this[_0x58fef5(0x387)](this[_0x58fef5(0x1cb)][_0x58fef5(0x308)][_0x58fef5(0x1d2)](_0x44eced=>{const _0x59822e=_0x58fef5;_0x44eced&&this[_0x59822e(0x1cd)](void 0x0,!0x0);})),this[_0x58fef5(0x387)](this[_0x58fef5(0x1e3)][_0x58fef5(0x319)][_0x58fef5(0x1d2)](()=>{const _0x4d7ca3=_0x58fef5;this[_0x4d7ca3(0x3b9)][_0x4d7ca3(0x263)]()[_0x4d7ca3(0x1c7)](_0x53780e=>_0x53780e[_0x4d7ca3(0x249)]===o[_0x4d7ca3(0x37c)]['DRAWING_SHAPE']&&this[_0x4d7ca3(0x408)][_0x4d7ca3(0x37e)](_0x53780e[_0x4d7ca3(0x385)])===o[_0x4d7ca3(0x273)]['UNIVER_DOC']&&!this[_0x4d7ca3(0x3dd)](_0x53780e[_0x4d7ca3(0x385)],_0x53780e[_0x4d7ca3(0x40c)]))&&(this['_clearPopups'](void 0x0,!0x0),this[_0x4d7ca3(0x1f6)]());}));}[_0x2c096c(0x3b5)](_0x4d8d58,_0xd432d0,_0x10a220,_0x5c83e4){const _0x5a6e6a=_0x2c096c;return[{'label':'docs-shape-ui.openPanel','index':0x0,'commandId':j['id'],'commandParams':{'unitId':_0x4d8d58,'subUnitId':_0xd432d0,'drawingId':_0x10a220},'disable':_0x5c83e4===o[_0x5a6e6a(0x37c)][_0x5a6e6a(0x395)]},{'label':'docs-shape-ui.deleteShape','index':0x1,'commandId':c[_0x5a6e6a(0x3a4)]['id'],'commandParams':{'unitId':_0x4d8d58,'drawings':[{'unitId':_0x4d8d58,'subUnitId':_0xd432d0,'drawingId':_0x10a220}]},'disable':!0x1},{'label':_0x5a6e6a(0x1ef),'index':0x2,'commandId':B['id'],'commandParams':{'unitId':_0x4d8d58,'subUnitId':_0xd432d0,'drawingId':_0x10a220},'disable':!0x1}];}[_0x2c096c(0x29e)](){const _0x13cef3=_0x2c096c;this[_0x13cef3(0x361)][_0x13cef3(0x27c)](Qe);}['_getShapeInfo'](_0x680bf6,_0x5c0dda,_0x457c4f){const _0x305039=_0x2c096c;let _0xb8fb4=this[_0x305039(0x1ee)][_0x305039(0x271)](_0x680bf6,_0x5c0dda,_0x457c4f),_0x2a6a13=this[_0x305039(0x1ee)][_0x305039(0x3c7)](_0x680bf6,_0x5c0dda,_0x457c4f);return _0xb8fb4===void 0x0||_0x2a6a13===void 0x0?null:{'shapeData':_0x2a6a13,'shapeId':_0x457c4f,'shapeType':_0xb8fb4,'unitId':_0x680bf6,'subUnitId':_0x5c0dda,'version':this[_0x305039(0x441)],'disableShapeOption':!0x1};}['_clearPopups'](_0x264f2c,_0x25c3b5=!0x1){const _0x27b69b=_0x2c096c;if(_0x264f2c==null){[...this[_0x27b69b(0x446)]['keys']()]['forEach'](_0x348bd3=>this[_0x27b69b(0x1cd)](_0x348bd3,_0x25c3b5));return;}let _0x596177=this['_disposePopupsByUnit'][_0x27b69b(0x328)](_0x264f2c);if(_0x596177){for(let _0xb37cd7=_0x596177['length']-0x1;_0xb37cd7>=0x0;--_0xb37cd7){let _0x168e5f=_0x596177[_0xb37cd7];(_0x25c3b5||_0x168e5f[_0x27b69b(0x38a)]())&&(_0x168e5f[_0x27b69b(0x270)](),_0x596177['splice'](_0xb37cd7,0x1));}_0x596177['length']===0x0&&(this[_0x27b69b(0x446)][_0x27b69b(0x294)](_0x264f2c),this[_0x27b69b(0x389)][_0x27b69b(0x294)](_0x264f2c));}}[_0x2c096c(0x498)](_0x2ada29){const _0x30b615=_0x2c096c;let _0x193451=this[_0x30b615(0x446)][_0x30b615(0x328)](_0x2ada29);if(_0x193451)return _0x193451;let _0x1358b5=[];return this[_0x30b615(0x446)][_0x30b615(0x2dd)](_0x2ada29,_0x1358b5),_0x1358b5;}[_0x2c096c(0x45f)](_0x503af1){const _0x1665a0=_0x2c096c;var _0x238d70;let _0x1326d4=new o[(_0x1665a0(0x36a))](),_0x3401f7=(_0x238d70=this[_0x1665a0(0x1f2)][_0x1665a0(0x287)](o[_0x1665a0(0x273)][_0x1665a0(0x2f5)])['find'](_0x106b3c=>_0x106b3c[_0x1665a0(0x3b2)][_0x1665a0(0x2e1)]()===_0x503af1))==null?void 0x0:_0x238d70['unitId'];return _0x3401f7&&(_0x1326d4[_0x1665a0(0x21d)](_0x503af1[_0x1665a0(0x32c)]['subscribe'](()=>this[_0x1665a0(0x392)](_0x503af1,_0x3401f7))),_0x1326d4[_0x1665a0(0x21d)](_0x503af1[_0x1665a0(0x3f4)][_0x1665a0(0x1d2)](()=>{const _0x32d469=_0x1665a0;this[_0x32d469(0x1cd)](_0x3401f7),queueMicrotask(()=>{const _0x483a71=_0x32d469;_0x503af1[_0x483a71(0x2cb)]()[_0x483a71(0x2ba)]>0x0||!this['_drawingManagerService'][_0x483a71(0x263)]()['some'](_0xc8feb6=>_0xc8feb6[_0x483a71(0x385)]===_0x3401f7)||(this[_0x483a71(0x32b)]['setContextValue'](o['FOCUSING_COMMON_DRAWINGS'],!0x1),this['_drawingManagerService']['focusDrawing'](null));});})),_0x1326d4[_0x1665a0(0x21d)](_0x503af1['changing$']['subscribe'](()=>{const _0x3c08dc=_0x1665a0;this[_0x3c08dc(0x1cd)](_0x3401f7,!0x0);}))),_0x1326d4;}['_handleCreateControl'](_0x5eca34,_0x214b9d){const _0x2a336a=_0x2c096c;let _0x4d4fcb=_0x5eca34['getSelectedObjectMap']();if(this[_0x2a336a(0x2d7)]){this[_0x2a336a(0x1cd)](_0x214b9d,!0x0);return;}if(_0x4d4fcb[_0x2a336a(0x2ba)]>0x1){this[_0x2a336a(0x1cd)](_0x214b9d);return;}let _0x2015a6=_0x4d4fcb[_0x2a336a(0x1fc)]()[_0x2a336a(0x42d)]()[_0x2a336a(0x1e4)];if(!_0x2015a6){this[_0x2a336a(0x1cd)](_0x214b9d);return;}let _0x1f8195=this[_0x2a336a(0x3b9)]['getDrawingOKey'](_0x2015a6[_0x2a336a(0x386)]);if(!_0x1f8195||_0x1f8195[_0x2a336a(0x249)]!==o[_0x2a336a(0x37c)][_0x2a336a(0x27e)]){this[_0x2a336a(0x1cd)](_0x214b9d);return;}let {unitId:_0xa5bf20,subUnitId:_0x21c175,drawingId:_0x5cb176}=_0x1f8195;if(!this[_0x2a336a(0x3dd)](_0xa5bf20,_0x5cb176)){this[_0x2a336a(0x1cd)](_0x214b9d,!0x0);return;}let _0x19e67c=this['_getShapeInfo'](_0xa5bf20,_0x21c175,_0x5cb176);if(!_0x19e67c){this[_0x2a336a(0x1cd)](_0x214b9d);return;}let _0x35d43c=this[_0x2a336a(0x446)][_0x2a336a(0x328)](_0x214b9d),_0x5806db=_0xa5bf20+':'+_0x21c175+':'+_0x5cb176;if(this[_0x2a336a(0x389)][_0x2a336a(0x328)](_0x214b9d)===_0x5806db&&_0x35d43c!=null&&_0x35d43c[_0x2a336a(0x472)])return;this[_0x2a336a(0x1cd)](_0x214b9d);let _0x1d6534=this[_0x2a336a(0x1f2)][_0x2a336a(0x233)](_0xa5bf20),_0xa2ceae=((_0x1d6534==null?void 0x0:_0x1d6534['isMainScene'])===!0x1?_0x1d6534['with'](t[_0x2a336a(0x29c)]):this[_0x2a336a(0x35f)])['attachPopupToObject'](_0x2015a6,this['_getShapePopup'](_0x19e67c,()=>this[_0x2a336a(0x1cd)](_0x214b9d,!0x0)),_0xa5bf20);this[_0x2a336a(0x387)](_0xa2ceae),this[_0x2a336a(0x498)](_0x214b9d)[_0x2a336a(0x47f)](_0xa2ceae),this[_0x2a336a(0x389)][_0x2a336a(0x2dd)](_0x214b9d,_0x5806db),this[_0x2a336a(0x3b9)][_0x2a336a(0x263)]()[_0x2a336a(0x1c7)](_0x14323e=>_0x14323e[_0x2a336a(0x385)]===_0xa5bf20&&_0x14323e[_0x2a336a(0x467)]===_0x21c175&&_0x14323e[_0x2a336a(0x40c)]===_0x5cb176)||this[_0x2a336a(0x3b9)][_0x2a336a(0x45e)]([{'unitId':_0xa5bf20,'subUnitId':_0x21c175,'drawingId':_0x5cb176}]);}[_0x2c096c(0x3cc)](_0x115ea2,_0x4d59bc){const _0x1baf90=_0x2c096c;let {unitId:_0x21f0ca,subUnitId:_0x26ffe2,shapeId:_0x4fdfd8}=_0x115ea2,_0x3d87f3={'hostType':o[_0x1baf90(0x273)]['UNIVER_DOC'],'unitId':_0x21f0ca,'subUnitId':_0x26ffe2,'shapeId':_0x4fdfd8};return{'componentKey':xt,'requiresStableLayout':!0x1,'direction':'top-center','offset':[0x0,0x8],'extraProps':{'shapeType':_0x115ea2['shapeType'],'onText':()=>{const _0x55d949=_0x1baf90;_0x4d59bc(),this['_mobileEditorService'][_0x55d949(0x352)](_0x55d949(0x20c),_0x3d87f3);},'onStyle':()=>{const _0x52e390=_0x1baf90;_0x4d59bc(),this[_0x52e390(0x492)]['open'](_0x52e390(0x27a),_0x3d87f3);},'onDelete':()=>this[_0x1baf90(0x405)][_0x1baf90(0x3a0)](c[_0x1baf90(0x3a4)]['id'],{'unitId':_0x21f0ca,'drawings':[{'unitId':_0x21f0ca,'subUnitId':_0x26ffe2,'drawingId':_0x4fdfd8}]})}};}['_canEditShape'](_0x44a7fd,_0x5a73e4){const _0x412bf7=_0x2c096c;let _0x55444b=this[_0x412bf7(0x408)][_0x412bf7(0x3f3)](_0x44a7fd,o[_0x412bf7(0x273)][_0x412bf7(0x2f5)]);if(!_0x55444b)return!0x1;let _0x31e09a=(0x0,s[_0x412bf7(0x3e4)])(_0x55444b,_0x5a73e4);return(0x0,s[_0x412bf7(0x3ea)])(this[_0x412bf7(0x1e3)],_0x44a7fd,[...(0x0,s[_0x412bf7(0x491)])(_0x55444b,_0x31e09a,_0x412bf7(0x3a8),_0x5a73e4),(0x0,s[_0x412bf7(0x231)])(_0x31e09a,_0x412bf7(0x3a8),_0x5a73e4)]);}[_0x2c096c(0x488)](){const _0x4df3cf=_0x2c096c;this['disposeWithMe'](this[_0x4df3cf(0x405)][_0x4df3cf(0x412)](_0x5b611e=>{const _0x1346cc=_0x4df3cf;if(_0x5b611e['id']===j['id']){let {unitId:_0x4df715,subUnitId:_0x5a74c2,drawingId:_0x3fc3f7}=_0x5b611e[_0x1346cc(0x2ab)];this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x1346cc(0x2a7)](_0x4df715,_0x5a74c2,_0x3fc3f7),this[_0x1346cc(0x1cd)](void 0x0,!0x0),this[_0x1346cc(0x4b7)]();}if(_0x5b611e['id']===B['id']&&(this[_0x1346cc(0x44f)]=null,this[_0x1346cc(0x1f6)]()),_0x5b611e['id']===r[_0x1346cc(0x398)]['id']){var _0x12d2a5;let {unitId:_0x7d2b6b,shapeId:_0x50e429}=_0x5b611e['params'];if(((_0x12d2a5=this['_activeShapeInfo'])==null?void 0x0:_0x12d2a5[_0x1346cc(0x275)])===_0x50e429){let _0x5c8146=this['_getShapeInfo'](_0x7d2b6b,this[_0x1346cc(0x44f)][_0x1346cc(0x467)],_0x50e429);_0x5c8146&&(this['_shapeEditPanelVersion']+=0x1,_0x5c8146['version']=this['_shapeEditPanelVersion'],this[_0x1346cc(0x44f)]=_0x5c8146,this[_0x1346cc(0x2d7)]&&this[_0x1346cc(0x4b7)]());}}})),this['disposeWithMe'](this[_0x4df3cf(0x3b9)]['focus$'][_0x4df3cf(0x1d2)](_0x5c38bc=>{const _0xab6bb7=_0x4df3cf;if(!this[_0xab6bb7(0x2d7)])return;if(_0x5c38bc[_0xab6bb7(0x472)]===0x0){this['_activeShapeInfo']=null,this['_closeShapeEditPanel']();return;}if(_0x5c38bc['length']===0x1&&_0x5c38bc[0x0][_0xab6bb7(0x249)]===o[_0xab6bb7(0x37c)]['DRAWING_SHAPE']&&(this['_shapeEditPanelVersion']+=0x1,this[_0xab6bb7(0x44f)]=this['_getShapeInfo'](_0x5c38bc[0x0][_0xab6bb7(0x385)],_0x5c38bc[0x0]['subUnitId'],_0x5c38bc[0x0][_0xab6bb7(0x40c)]),this[_0xab6bb7(0x44f)])){this['_openShapeEditPanel']();return;}let _0x42852e=_0x5c38bc[_0xab6bb7(0x45a)](_0xb5598a=>_0xb5598a['drawingType']===o[_0xab6bb7(0x37c)][_0xab6bb7(0x27e)]);this[_0xab6bb7(0x441)]+=0x1,this[_0xab6bb7(0x44f)]=this['_getShapeInfo'](_0x5c38bc[0x0][_0xab6bb7(0x385)],_0x5c38bc[0x0][_0xab6bb7(0x467)],_0x5c38bc[0x0][_0xab6bb7(0x40c)]),this[_0xab6bb7(0x44f)]&&_0x5c38bc[_0xab6bb7(0x472)]>0x1&&_0x42852e[_0xab6bb7(0x472)]===_0x5c38bc[_0xab6bb7(0x472)]?this[_0xab6bb7(0x4b7)]():this[_0xab6bb7(0x44f)]&&_0x42852e[_0xab6bb7(0x472)]!==_0x5c38bc[_0xab6bb7(0x472)]?(this[_0xab6bb7(0x44f)]['disableShapeOption']=!0x0,this[_0xab6bb7(0x4b7)]()):this[_0xab6bb7(0x1f6)]();}));}[_0x2c096c(0x4b7)](){const _0x35fc8e=_0x2c096c;this[_0x35fc8e(0x44f)]&&(this[_0x35fc8e(0x206)]=this['_sidebarService'][_0x35fc8e(0x352)]({'id':w,'header':{'title':this[_0x35fc8e(0x2be)]['t'](_0x35fc8e(0x298))},'width':0x184,'children':{'label':w,...this[_0x35fc8e(0x44f)]},'onClose':()=>{const _0x501818=_0x35fc8e;this['_drawingManagerService'][_0x501818(0x45e)](null),this['_contextService'][_0x501818(0x3e2)](o[_0x501818(0x3c4)],!0x1),this[_0x501818(0x206)]=null;}}),this[_0x35fc8e(0x2d7)]=!0x0);}[_0x2c096c(0x1f6)](){const _0x57f290=_0x2c096c;this[_0x57f290(0x2d7)]=!0x1,this['_sidebarService'][_0x57f290(0x22b)](w),this['_sidebarDisposable']=null,this[_0x57f290(0x32b)][_0x57f290(0x3e2)](o['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x57f290(0x3b9)]['focusDrawing'](null);}};kt=I([F(0x0,o[_0x2c096c(0x3a2)]),F(0x1,(0x0,o[_0x2c096c(0x3c9)])(n[_0x2c096c(0x2ce)])),F(0x2,n[_0x2c096c(0x2fa)]),F(0x3,(0x0,o[_0x2c096c(0x3c9)])(r[_0x2c096c(0x235)])),F(0x4,(0x0,o[_0x2c096c(0x3c9)])(o['LocaleService'])),F(0x5,o[_0x2c096c(0x2b2)]),F(0x6,u[_0x2c096c(0x482)]),F(0x7,(0x0,o['Inject'])(t[_0x2c096c(0x29c)])),F(0x8,l['IRenderManagerService']),F(0x9,o['IContextService']),F(0xa,(0x0,o['Inject'])(G)),F(0xb,o['IPermissionService']),F(0xc,(0x0,o['Inject'])(e[_0x2c096c(0x397)]))],kt);function _0x210f(_0x2459df,_0x4c0984){_0x2459df=_0x2459df-0x1b3;const _0x3a82ca=_0x3a82();let _0x210f0d=_0x3a82ca[_0x2459df];return _0x210f0d;}const At='docs-shape-contextual-ribbon';let X=class extends o['Disposable']{constructor(_0x23dc20,_0x50a3ee,_0x2b98a2,_0x48205c,_0x1d034b,_0x1526b0){const _0x5349fd=_0x2c096c;super(),this[_0x5349fd(0x361)]=_0x23dc20,this[_0x5349fd(0x21f)]=_0x50a3ee,this[_0x5349fd(0x3b9)]=_0x2b98a2,this[_0x5349fd(0x408)]=_0x48205c,this[_0x5349fd(0x1f2)]=_0x1d034b,this[_0x5349fd(0x403)]=_0x1526b0,H(this,'_visible',!0x1),this[_0x5349fd(0x361)][_0x5349fd(0x27c)](Ze),this[_0x5349fd(0x387)]((0x0,o[_0x5349fd(0x1d8)])(this[_0x5349fd(0x3b9)][_0x5349fd(0x3c8)][_0x5349fd(0x1d2)](()=>this['_update']()))),this['_update']();}[_0x2c096c(0x270)](){const _0x313562=_0x2c096c;this['_shapeFloatingToolbarService'][_0x313562(0x3fa)](!0x1,At),this['_hide'](),super['dispose']();}['_update'](){const _0x1fe5b9=_0x2c096c;var _0x2bfc98;let _0x2e647e=this[_0x1fe5b9(0x3b9)][_0x1fe5b9(0x263)](),_0x17c12a=_0x2e647e[_0x1fe5b9(0x472)]===0x1?_0x2e647e[0x0]:void 0x0;if((_0x17c12a==null?void 0x0:_0x17c12a[_0x1fe5b9(0x249)])!==o[_0x1fe5b9(0x37c)][_0x1fe5b9(0x27e)]||this['_univerInstanceService'][_0x1fe5b9(0x37e)](_0x17c12a['unitId'])!==o[_0x1fe5b9(0x273)][_0x1fe5b9(0x2f5)]){this['_shapeFloatingToolbarService'][_0x1fe5b9(0x3fa)](!0x1,At),this['_hide']();return;}let _0x5a3827=(_0x2bfc98=this[_0x1fe5b9(0x1f2)][_0x1fe5b9(0x233)](_0x17c12a[_0x1fe5b9(0x385)]))==null?void 0x0:_0x2bfc98[_0x1fe5b9(0x477)][_0x1fe5b9(0x252)](),_0x272456=(0x0,e['resolveShapeContextualRibbonHostMode'])(_0x5a3827)===_0x1fe5b9(0x48e);this['_shapeFloatingToolbarService'][_0x1fe5b9(0x3fa)](_0x272456,At),_0x272456?this[_0x1fe5b9(0x24b)]():(this['_visible']=!0x0,this[_0x1fe5b9(0x21f)][_0x1fe5b9(0x3aa)](T,{'activate':!0x0}));}[_0x2c096c(0x24b)](){const _0x53f2b9=_0x2c096c;this['_visible']&&(this[_0x53f2b9(0x402)]=!0x1,this[_0x53f2b9(0x21f)]['hideContextualTab'](T),this[_0x53f2b9(0x21f)][_0x53f2b9(0x2d3)]([]));}};X=I([F(0x0,n[_0x2c096c(0x2fa)]),F(0x1,n['IRibbonService']),F(0x2,u['IDrawingManagerService']),F(0x3,o[_0x2c096c(0x3a2)]),F(0x4,l[_0x2c096c(0x285)]),F(0x5,(0x0,o['Inject'])(e[_0x2c096c(0x2e0)]))],X);let Z=class extends o['Disposable']{constructor(_0x247ee4,_0x2a2288,_0x1dc19c,_0x2d39f3){const _0x4ae9cf=_0x2c096c;super(),this['_commandService']=_0x247ee4,this[_0x4ae9cf(0x1f2)]=_0x2a2288,this[_0x4ae9cf(0x3b9)]=_0x1dc19c,this[_0x4ae9cf(0x31e)]=_0x2d39f3,this[_0x4ae9cf(0x3fd)]();}[_0x2c096c(0x3fd)](){const _0x13549a=_0x2c096c;this[_0x13549a(0x387)](this[_0x13549a(0x3b9)][_0x13549a(0x1d3)][_0x13549a(0x1d2)](_0x122c00=>this['_insertShapes'](_0x122c00))),this['disposeWithMe'](this[_0x13549a(0x3b9)][_0x13549a(0x212)][_0x13549a(0x1d2)](_0x298e15=>{const _0x3e60ba=_0x13549a;_0x298e15[_0x3e60ba(0x322)](_0x2bd51d=>this['_updateShape'](_0x2bd51d));})),this[_0x13549a(0x387)](this['_commandService'][_0x13549a(0x412)](_0x1ea8ce=>{const _0x1e6b9f=_0x13549a;if(_0x1ea8ce['id']!==r[_0x1e6b9f(0x398)]['id'])return;let {unitId:_0x244bb6,shapeId:_0x5001bd}=_0x1ea8ce[_0x1e6b9f(0x2ab)];this['_refreshShapeData']({'unitId':_0x244bb6,'subUnitId':_0x244bb6,'drawingId':_0x5001bd});}));}['_insertShapes'](_0x1df9fc){const _0x15821e=_0x2c096c;_0x1df9fc[_0x15821e(0x322)](_0x502d49=>{const _0x33a007=_0x15821e;let _0x596fb9=this['_getSceneByUnitId'](_0x502d49[_0x33a007(0x385)]);if(!_0x596fb9)return;let _0x4b6798=this[_0x33a007(0x3b9)][_0x33a007(0x1cc)](_0x502d49);(_0x4b6798==null?void 0x0:_0x4b6798[_0x33a007(0x249)])===o[_0x33a007(0x37c)][_0x33a007(0x27e)]&&this[_0x33a007(0x31e)]['renderDrawingShape'](_0x4b6798,_0x596fb9['scene']);});}[_0x2c096c(0x2b7)](_0x421489){const _0x403e27=_0x2c096c;let _0x5866e1=this['_drawingManagerService']['getDrawingByParam'](_0x421489);if((_0x5866e1==null?void 0x0:_0x5866e1['drawingType'])!==o[_0x403e27(0x37c)][_0x403e27(0x27e)])return;let _0x2ceeb1=this['_getSceneByUnitId'](_0x421489[_0x403e27(0x385)]);if(!_0x2ceeb1||_0x5866e1['transform']==null)return;let _0x2fca04=(0x0,u[_0x403e27(0x391)])(_0x421489),_0x20f267=_0x2ceeb1['scene'][_0x403e27(0x33c)](_0x2fca04);_0x20f267&&(_0x20f267[_0x403e27(0x300)](_0x5866e1['srcRect']),_0x20f267['setPrstGeom'](_0x5866e1[_0x403e27(0x29b)]),_0x20f267[_0x403e27(0x26c)](!0x0));}[_0x2c096c(0x30a)](_0x2ca677){const _0x51e5a8=_0x2c096c;let _0x18acdc=this[_0x51e5a8(0x2f8)](_0x2ca677[_0x51e5a8(0x385)]);if(!_0x18acdc)return;let _0x469785=(0x0,u['getDrawingShapeKeyByDrawingSearch'])(_0x2ca677),_0x5d5d31=_0x18acdc[_0x51e5a8(0x3b2)][_0x51e5a8(0x33c)](_0x469785);_0x5d5d31&&(this['_docDrawingShapeRenderController'][_0x51e5a8(0x459)](_0x5d5d31),this[_0x51e5a8(0x31e)]['refreshFormulaPresentation'](_0x5d5d31,{'unitId':_0x2ca677[_0x51e5a8(0x385)],'subUnitId':_0x2ca677[_0x51e5a8(0x467)],'shapeId':_0x2ca677[_0x51e5a8(0x40c)]}),_0x5d5d31[_0x51e5a8(0x26c)](!0x0));}[_0x2c096c(0x2f8)](_0x686515){const _0xeb7467=_0x2c096c;if(_0x686515==null)return null;let _0x14f95a=this[_0xeb7467(0x1f2)][_0xeb7467(0x233)](_0x686515),_0x138ed5=_0x14f95a==null?void 0x0:_0x14f95a[_0xeb7467(0x3b2)];return _0x138ed5==null?null:{'scene':_0x138ed5};}};Z=I([F(0x0,o[_0x2c096c(0x2b2)]),F(0x1,l[_0x2c096c(0x285)]),F(0x2,u[_0x2c096c(0x482)]),F(0x3,(0x0,o[_0x2c096c(0x3c9)])(K))],Z);let Q=class extends o[_0x2c096c(0x3b1)]{constructor(_0x225c4d=nt,_0x24be19,_0x590849,_0x4a30df,_0x132828){const _0x2d2cc0=_0x2c096c;super(),this[_0x2d2cc0(0x326)]=_0x225c4d,this[_0x2d2cc0(0x248)]=_0x24be19,this[_0x2d2cc0(0x405)]=_0x590849,this['_configService']=_0x4a30df,this[_0x2d2cc0(0x1f2)]=_0x132828;let {menu:_0x302a32,..._0x349e06}=(0x0,o[_0x2d2cc0(0x4aa)])({},nt,this[_0x2d2cc0(0x326)]);_0x302a32&&this[_0x2d2cc0(0x4a4)][_0x2d2cc0(0x3e1)](_0x2d2cc0(0x2a5),_0x302a32,{'merge':!0x0}),this[_0x2d2cc0(0x4a4)][_0x2d2cc0(0x3e1)](tt,_0x349e06),[C,B,j,A,N,P][_0x2d2cc0(0x322)](_0x4cdb4c=>this['disposeWithMe'](this[_0x2d2cc0(0x405)][_0x2d2cc0(0x2e9)](_0x4cdb4c)));}[_0x2c096c(0x3d4)](){const _0x45d32f=_0x2c096c;let _0x38b9d7=[[Ot],[kt],[Z],[K],[q],[W],[L],[J],[G],[X]];(0x0,o[_0x45d32f(0x30e)])(this[_0x45d32f(0x248)],_0x38b9d7),this[_0x45d32f(0x248)][_0x45d32f(0x328)](Ot);}[_0x2c096c(0x4ac)](){const _0x3a5426=_0x2c096c;this[_0x3a5426(0x387)](this[_0x3a5426(0x1f2)]['registerRenderModule'](o[_0x3a5426(0x273)][_0x3a5426(0x2f5)],[W])),(0x0,o[_0x3a5426(0x43e)])(this['_injector'],[[kt],[Z],[K],[q],[L],[J],[G],[X]]);}};H(Q,_0x2c096c(0x41a),o[_0x2c096c(0x273)][_0x2c096c(0x2f5)]),H(Q,_0x2c096c(0x3eb),_0x2c096c(0x27b)),H(Q,_0x2c096c(0x2ad),$e),H(Q,'version',et),Q=I([(0x0,o['DependentOn'])(m[_0x2c096c(0x218)],s[_0x2c096c(0x47e)],u[_0x2c096c(0x46f)],d[_0x2c096c(0x468)],l[_0x2c096c(0x379)],t[_0x2c096c(0x2a9)],a['UniverShapeEditorPlugin'],h[_0x2c096c(0x497)],r[_0x2c096c(0x205)],e[_0x2c096c(0x470)]),F(0x1,(0x0,o[_0x2c096c(0x3c9)])(o[_0x2c096c(0x31b)])),F(0x2,o[_0x2c096c(0x2b2)]),F(0x3,o[_0x2c096c(0x266)]),F(0x4,l[_0x2c096c(0x285)])],Q);let jt=class extends o[_0x2c096c(0x2c9)]{constructor(_0x11a6fd,_0xeae421){const _0x43d391=_0x2c096c;super(),this[_0x43d391(0x341)]=_0x11a6fd,this['_iconManager']=_0xeae421,this[_0x43d391(0x1fe)](),this[_0x43d391(0x3e3)]();}[_0x2c096c(0x1fe)](){const _0x3403c2=_0x2c096c;this['_iconManager']['has'](_0x3403c2(0x227))||this[_0x3403c2(0x387)](this[_0x3403c2(0x487)][_0x3403c2(0x43b)]({'ObjectLayersIcon':g[_0x3403c2(0x227)]})),this[_0x3403c2(0x487)]['has']('BottomIcon')||this['disposeWithMe'](this['_iconManager'][_0x3403c2(0x43b)]({'BottomIcon':g[_0x3403c2(0x211)]})),this[_0x3403c2(0x487)][_0x3403c2(0x23f)](_0x3403c2(0x365))||this['disposeWithMe'](this[_0x3403c2(0x487)][_0x3403c2(0x43b)]({'MoveDownIcon':g[_0x3403c2(0x365)]})),this[_0x3403c2(0x487)][_0x3403c2(0x23f)](_0x3403c2(0x3ad))||this['disposeWithMe'](this[_0x3403c2(0x487)][_0x3403c2(0x43b)]({'MoveUpIcon':g[_0x3403c2(0x3ad)]})),this[_0x3403c2(0x487)][_0x3403c2(0x23f)](_0x3403c2(0x346))||this[_0x3403c2(0x387)](this[_0x3403c2(0x487)][_0x3403c2(0x43b)]({'ShapeFormatSettingIcon':g[_0x3403c2(0x346)]})),this[_0x3403c2(0x487)][_0x3403c2(0x23f)](_0x3403c2(0x274))||this[_0x3403c2(0x387)](this[_0x3403c2(0x487)][_0x3403c2(0x43b)]({'TopmostIcon':g[_0x3403c2(0x274)]})),this[_0x3403c2(0x387)](this[_0x3403c2(0x487)][_0x3403c2(0x43b)](Et));}['_registerComponents'](){const _0x5636cd=_0x2c096c;this['disposeWithMe'](this[_0x5636cd(0x341)][_0x5636cd(0x43b)](w,_t)),this['disposeWithMe'](this['_componentManager'][_0x5636cd(0x43b)](E,mt)),this[_0x5636cd(0x387)](this[_0x5636cd(0x341)][_0x5636cd(0x43b)](xt,Ct)),this['disposeWithMe'](this[_0x5636cd(0x341)][_0x5636cd(0x43b)](me,be)),this[_0x5636cd(0x387)](this[_0x5636cd(0x341)][_0x5636cd(0x43b)](pe,xe)),this[_0x5636cd(0x387)](this[_0x5636cd(0x341)]['register'](he,Se)),this['disposeWithMe'](this['_componentManager']['register'](ge,Ce)),this[_0x5636cd(0x387)](this['_componentManager']['register'](_e,we)),this[_0x5636cd(0x387)](this[_0x5636cd(0x341)]['register'](O,e[_0x5636cd(0x358)])),this[_0x5636cd(0x387)](this[_0x5636cd(0x341)]['register'](ee,oe)),this[_0x5636cd(0x387)](this[_0x5636cd(0x341)]['register'](te,ie)),this['_componentManager'][_0x5636cd(0x3d1)](d[_0x5636cd(0x496)])||this[_0x5636cd(0x387)](this['_componentManager'][_0x5636cd(0x43b)](d[_0x5636cd(0x496)],ae)),this[_0x5636cd(0x387)](this['_componentManager']['register'](k,Dt));}};jt=I([F(0x0,(0x0,o[_0x2c096c(0x3c9)])(n['ComponentManager'])),F(0x1,(0x0,o[_0x2c096c(0x3c9)])(n[_0x2c096c(0x3d6)]))],jt);let Mt=class extends o['Disposable']{constructor(_0x21144d,_0x1b6814,_0x3a039a,_0x52ea40,_0x3ce634,_0x58c803,_0x4c31bb,_0x38281b,_0x342cf2){const _0x3ae6f8=_0x2c096c;super();let _0x5c573c=_0x20a9bd=>{const _0x4514bf=_0x210f;let _0xb0745e=_0x58c803['getUnit'](_0x20a9bd[_0x4514bf(0x385)],o[_0x4514bf(0x273)][_0x4514bf(0x2f5)]),_0x94e1ce=_0xb0745e?(0x0,s[_0x4514bf(0x3e4)])(_0xb0745e,_0x20a9bd[_0x4514bf(0x275)]):'';return!!_0xb0745e&&(0x0,s[_0x4514bf(0x3ea)])(_0x38281b,_0x20a9bd['unitId'],[(0x0,s[_0x4514bf(0x231)])(_0x94e1ce,'drawing',_0x20a9bd['shapeId']),...(0x0,s['getDocumentEntityParentPermissionObjectIds'])(_0xb0745e,_0x94e1ce,'drawing',_0x20a9bd['shapeId'])]);},_0x2c3209=_0x2ce6b9=>_0x2ce6b9['shapeId']&&_0x5c573c(_0x2ce6b9)?_0x3a039a[_0x3ae6f8(0x3c7)](_0x2ce6b9['unitId'],_0x2ce6b9[_0x3ae6f8(0x275)])??null:null,_0x53cc2f=()=>{const _0x4dfd19=_0x3ae6f8;let _0x4150fd=_0x3ce634[_0x4dfd19(0x263)](),_0x1c0682=_0x4150fd[_0x4dfd19(0x472)]===0x1?_0x4150fd[0x0]:null;return(_0x1c0682==null?void 0x0:_0x1c0682[_0x4dfd19(0x249)])===o[_0x4dfd19(0x37c)][_0x4dfd19(0x27e)]&&_0x1c0682['unitId']===_0x21144d[_0x4dfd19(0x385)]?{'unitId':_0x1c0682[_0x4dfd19(0x385)],'subUnitId':_0x1c0682[_0x4dfd19(0x467)],'shapeId':_0x1c0682['drawingId']}:null;};this[_0x3ae6f8(0x387)]((0x0,e['registerShapeFormatPainter'])(_0x21144d,_0x1b6814,{'changes$':(0x0,p[_0x3ae6f8(0x4aa)])(_0x3ce634[_0x3ae6f8(0x3c8)],_0x52ea40[_0x3ae6f8(0x308)],_0x38281b['permissionPointUpdate$']),'isActive':()=>{const _0x620c8c=_0x3ae6f8;var _0x1c5789;return((_0x1c5789=_0x58c803['getFocusedUnit']())==null?void 0x0:_0x1c5789['getUnitId']())===_0x21144d[_0x620c8c(0x385)]&&!_0x4c31bb['getContextValue'](o['FOCUSING_SHAPE_TEXT_EDITOR'])&&_0x3ce634['getFocusDrawings']()[_0x620c8c(0x1c7)](_0x3b4d68=>_0x3b4d68[_0x620c8c(0x385)]===_0x21144d[_0x620c8c(0x385)]);},'getSelectedTarget':_0x53cc2f,'getSource':()=>{let _0x59d440=_0x53cc2f();return _0x59d440?_0x2c3209(_0x59d440):null;},'getTarget':_0x4d8c28=>{const _0x2087ac=_0x3ae6f8;let _0x26ff4a=_0x21144d['scene']['pick'](new l['Vector2'](_0x4d8c28[_0x2087ac(0x371)],_0x4d8c28[_0x2087ac(0x4b6)]));if(!(_0x26ff4a instanceof U))return null;let _0x422547={'unitId':_0x21144d[_0x2087ac(0x385)],'subUnitId':_0x21144d[_0x2087ac(0x385)],'shapeId':_0x26ff4a[_0x2087ac(0x275)]};return _0x5c573c(_0x422547)?_0x422547:null;},'getShape':_0x2c3209,'update':(_0x2c549a,_0x3a678e,_0x3fb449)=>_0x342cf2[_0x3ae6f8(0x3a0)](r[_0x3ae6f8(0x3e0)]['id'],{..._0x2c549a,'shapeData':_0x3fb449,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x3a678e}})}));}};Mt=I([F(0x1,(0x0,o[_0x2c096c(0x3c9)])(n[_0x2c096c(0x3be)])),F(0x2,(0x0,o[_0x2c096c(0x3c9)])(r['DocsShapeService'])),F(0x3,(0x0,o[_0x2c096c(0x3c9)])(G)),F(0x4,u[_0x2c096c(0x482)]),F(0x5,o[_0x2c096c(0x3a2)]),F(0x6,o['IContextService']),F(0x7,o[_0x2c096c(0x1d0)]),F(0x8,o['ICommandService'])],Mt);function Nt(_0x1a9da1,_0x5e2e15){const _0x4978cb=_0x2c096c;let _0x51bb3e=_0x1a9da1;for(;_0x51bb3e;){if(_0x5e2e15(_0x51bb3e))return _0x51bb3e;_0x51bb3e=typeof _0x51bb3e[_0x4978cb(0x295)]=='function'?_0x51bb3e['getParent']():null;}return null;}function Pt(_0x1c6d70){return Nt(_0x1c6d70,_0x3dd8a8=>_0x3dd8a8 instanceof U);}function Ft(_0x363ee2){return(_0x363ee2==null?void 0x0:_0x363ee2['formulaBinding'])==null;}let It=class extends o[_0x2c096c(0x2c9)]{constructor(_0x1cb69c,_0x56b601,_0x35f021,_0x1b74a8,_0x50311a){const _0x455921=_0x2c096c;super(),this[_0x455921(0x39d)]=_0x1cb69c,this[_0x455921(0x1cb)]=_0x56b601,this[_0x455921(0x3b9)]=_0x35f021,this['_docLayoutInteractionService']=_0x1b74a8,this[_0x455921(0x1ee)]=_0x50311a,H(this,_0x455921(0x293),null),H(this,_0x455921(0x3f7),null),this[_0x455921(0x2d2)](),this[_0x455921(0x3a5)](),this[_0x455921(0x34d)]();}[_0x2c096c(0x270)](){const _0x211f02=_0x2c096c;this[_0x211f02(0x42e)](),super[_0x211f02(0x270)]();}['_initEvents'](){const _0x32b2d0=_0x2c096c;let {scene:_0x11a9da}=this[_0x32b2d0(0x39d)];this[_0x32b2d0(0x387)](_0x11a9da[_0x32b2d0(0x39f)][_0x32b2d0(0x490)]((_0x4bd7d2,_0x10236b)=>{const _0x3792e0=_0x32b2d0;let {offsetX:_0x34320a,offsetY:_0x21976d}=_0x4bd7d2,_0x2a20e2=l[_0x3792e0(0x2f0)][_0x3792e0(0x43a)]([_0x34320a,_0x21976d]),_0x18d67a=Pt(_0x11a9da['pick'](_0x2a20e2))??this['_getFocusedShapeAtPoint'](_0x2a20e2);if(_0x18d67a){_0x10236b[_0x3792e0(0x1d4)]();let _0x4aceec=this[_0x3792e0(0x1ee)][_0x3792e0(0x1d6)](_0x18d67a['unitId'],_0x18d67a[_0x3792e0(0x467)],_0x18d67a[_0x3792e0(0x275)]);if(!_0x4aceec||(0x0,i[_0x3792e0(0x4b0)])(_0x4aceec['getShapeType']())||!Ft(_0x4aceec[_0x3792e0(0x3c3)]()))return;this['_shapeTextEditingService']['setEditing']({'visible':!0x0,'unitId':_0x18d67a['unitId'],'subUnitId':_0x18d67a[_0x3792e0(0x467)],'shapeId':_0x18d67a[_0x3792e0(0x275)],'shapeKey':_0x18d67a[_0x3792e0(0x386)]});}}));}[_0x2c096c(0x437)](_0x220010){const _0x2447c5=_0x2c096c;let {scene:_0x25bdda}=this[_0x2447c5(0x39d)];return this[_0x2447c5(0x3b9)]['getFocusDrawings']()[_0x2447c5(0x2b6)](_0x4b0084=>_0x25bdda[_0x2447c5(0x33c)]((0x0,u['getDrawingShapeKeyByDrawingSearch'])(_0x4b0084)))[_0x2447c5(0x3cb)](_0x189c1c=>_0x189c1c instanceof U&&_0x189c1c['isHit'](_0x220010))??null;}['_initSelection'](){const _0x16f57c=_0x2c096c;this['disposeWithMe'](this['_drawingManagerService'][_0x16f57c(0x3c8)][_0x16f57c(0x1d2)](_0x2bb588=>{const _0x32c146=_0x16f57c;if(_0x2bb588['length']===0x1){let _0x22a455=_0x2bb588[0x0],_0x4d19a9=this[_0x32c146(0x3b9)][_0x32c146(0x1cc)](_0x22a455);if((_0x4d19a9==null?void 0x0:_0x4d19a9[_0x32c146(0x249)])===o[_0x32c146(0x37c)]['DRAWING_SHAPE']){let _0x28d2e0=this[_0x32c146(0x1cb)][_0x32c146(0x343)]();if((_0x28d2e0==null?void 0x0:_0x28d2e0[_0x32c146(0x275)])===_0x22a455[_0x32c146(0x40c)]&&_0x28d2e0['visible'])return;(0x0,i[_0x32c146(0x4b0)])(this[_0x32c146(0x1ee)]['getShapeType'](_0x22a455['unitId'],_0x22a455[_0x32c146(0x467)],_0x22a455[_0x32c146(0x40c)]))&&this['_shapeTextEditingService']['setEditing'](null);}else this['_shapeTextEditingService'][_0x32c146(0x2bf)]();}else this['_shapeTextEditingService'][_0x32c146(0x2bf)]();})),this[_0x16f57c(0x387)](this[_0x16f57c(0x3b9)][_0x16f57c(0x1ce)]['subscribe'](_0x5882a8=>{const _0x4b1d59=_0x16f57c;let _0x1ae664=this[_0x4b1d59(0x1cb)][_0x4b1d59(0x343)]();_0x1ae664&&_0x5882a8[_0x4b1d59(0x1c7)](_0x445a19=>_0x445a19[_0x4b1d59(0x40c)]===_0x1ae664['shapeId'])&&this[_0x4b1d59(0x1cb)][_0x4b1d59(0x312)](null);}));}['_initEditingParams'](){const _0x4936d0=_0x2c096c;this['disposeWithMe'](this[_0x4936d0(0x1cb)][_0x4936d0(0x308)]['subscribe'](_0x20da9e=>{const _0x396433=_0x4936d0;(_0x20da9e==null?void 0x0:_0x20da9e[_0x396433(0x238)])===!0x0&&_0x20da9e[_0x396433(0x385)]===this[_0x396433(0x39d)][_0x396433(0x385)]?this[_0x396433(0x3f7)]??=this[_0x396433(0x3e7)][_0x396433(0x44a)]():this['_endLayoutInteraction']();let {scene:_0xd85909}=this['_context'];if(this['_lastEditingShapeKey']){let _0x817454=_0xd85909[_0x396433(0x33c)](this[_0x396433(0x293)]);_0x817454&&_0x817454['setEditing'](!0x1);}if(_0x20da9e){let _0x5627d1=!!_0x20da9e[_0x396433(0x238)],_0x423ead=_0xd85909[_0x396433(0x33c)](_0x20da9e[_0x396433(0x2fe)]);_0x423ead&&(_0x423ead['setEditing'](_0x5627d1),this[_0x396433(0x293)]=_0x20da9e[_0x396433(0x2fe)]);}else this[_0x396433(0x293)]=null;}));}[_0x2c096c(0x42e)](){const _0x174c00=_0x2c096c;var _0x5dce42;(_0x5dce42=this[_0x174c00(0x3f7)])==null||_0x5dce42[_0x174c00(0x270)](),this[_0x174c00(0x3f7)]=null;}};It=I([F(0x1,(0x0,o[_0x2c096c(0x3c9)])(G)),F(0x2,u['IDrawingManagerService']),F(0x3,(0x0,o[_0x2c096c(0x3c9)])(t[_0x2c096c(0x307)])),F(0x4,(0x0,o['Inject'])(r[_0x2c096c(0x235)]))],It);let Lt=class extends e[_0x2c096c(0x1fd)]{constructor(_0x2b27fa,_0x2fff89,_0x5b0825,_0x5147ab,_0x4d686b,_0x23f1b5,_0xc665a4,_0x24d189,_0xb1c0ba,_0x58870e){super(_0x2b27fa,_0x2fff89,_0x5b0825,_0x5147ab,_0x4d686b,_0x23f1b5,_0xc665a4,_0x24d189,_0xb1c0ba,_0x58870e,{'componentKey':O,'editorUnitId':D});}};Lt=I([F(0x1,(0x0,o[_0x2c096c(0x3c9)])(s[_0x2c096c(0x297)])),F(0x2,(0x0,o[_0x2c096c(0x3c9)])(t[_0x2c096c(0x29c)])),F(0x3,(0x0,o['Inject'])(t[_0x2c096c(0x28b)])),F(0x4,o[_0x2c096c(0x2b2)]),F(0x5,(0x0,o[_0x2c096c(0x3c9)])(t[_0x2c096c(0x419)])),F(0x6,(0x0,o[_0x2c096c(0x3c9)])(e['ShapeTextHyperLinkPopupService'])),F(0x7,(0x0,o[_0x2c096c(0x3c9)])(s[_0x2c096c(0x28a)])),F(0x8,(0x0,o[_0x2c096c(0x3c9)])(t['DocRenderController'])),F(0x9,(0x0,o[_0x2c096c(0x3c9)])(G))],Lt);let Rt=class extends e['ShapeTextHyperLinkHoverController']{constructor(_0x2adf08,_0x372e42,_0x5d63ee,_0x4c10db,_0x10b115){super(_0x2adf08,_0x372e42,{'editing$':_0x5d63ee['editingParams$'],'resolve':_0x35f35c=>{const _0x1cdf7e=_0x210f;var _0x4fbb7d;let _0x2ad6f2=new l[(_0x1cdf7e(0x2f0))](_0x35f35c[_0x1cdf7e(0x371)],_0x35f35c[_0x1cdf7e(0x4b6)]),_0x8d0997=((_0x4fbb7d=_0x2adf08[_0x1cdf7e(0x3b2)]['getActiveViewportByCoord'](_0x2ad6f2))==null?void 0x0:_0x4fbb7d[_0x1cdf7e(0x2c2)](_0x2ad6f2))??_0x2ad6f2,_0xe4090f=(0x0,e[_0x1cdf7e(0x2f9)])(_0x2adf08['scene'][_0x1cdf7e(0x1dc)](_0x2ad6f2)??null,_0x8d0997);if(!(_0xe4090f instanceof U))return null;let _0x2f6935=_0xe4090f[_0x1cdf7e(0x377)](_0x8d0997);if(!_0x2f6935)return null;let _0x17b513=_0xe4090f,_0x7d60d3={'componentKey':e[_0x1cdf7e(0x2ef)][_0x1cdf7e(0x3fb)],'direction':'top-center','offset':[0x0,0xa],'onClickOutside':()=>_0x372e42[_0x1cdf7e(0x247)]()};return{'object':_0xe4090f,'info':{..._0x2f6935,'unitId':_0xe4090f[_0x1cdf7e(0x385)],'subUnitId':_0xe4090f[_0x1cdf7e(0x467)],'shapeKey':_0xe4090f[_0x1cdf7e(0x386)],'readonly':!0x0,'copyable':(0x0,s['getDocumentPermissionValue'])(_0x10b115,_0xe4090f[_0x1cdf7e(0x385)],_0xe4090f[_0x1cdf7e(0x385)],y['UnitAction']['Copy'])},'attachPopup':()=>_0x4c10db[_0x1cdf7e(0x2af)](_0x17b513,_0x7d60d3,_0x17b513[_0x1cdf7e(0x385)])};}});}};Rt=I([F(0x1,(0x0,o[_0x2c096c(0x3c9)])(e['ShapeTextHyperLinkPopupService'])),F(0x2,(0x0,o[_0x2c096c(0x3c9)])(G)),F(0x3,(0x0,o[_0x2c096c(0x3c9)])(t[_0x2c096c(0x29c)])),F(0x4,o[_0x2c096c(0x1d0)])],Rt);let zt=class extends o[_0x2c096c(0x2c9)]{constructor(_0x4065cc,_0x4dd0da,_0x28273e,_0x351996,_0x25dfc5,_0x2f3117,_0x5e1d2d,_0x448c2b,_0x52a7dc,_0x58882d,_0xd0e4a1,_0x1cbf57){const _0x5be4a9=_0x2c096c;super(),this['_univerInstanceService']=_0x4065cc,this[_0x5be4a9(0x36f)]=_0x4dd0da,this[_0x5be4a9(0x361)]=_0x28273e,this[_0x5be4a9(0x1ee)]=_0x351996,this[_0x5be4a9(0x2be)]=_0x25dfc5,this[_0x5be4a9(0x405)]=_0x2f3117,this[_0x5be4a9(0x3b9)]=_0x5e1d2d,this[_0x5be4a9(0x35f)]=_0x448c2b,this[_0x5be4a9(0x1f2)]=_0x52a7dc,this['_contextService']=_0x58882d,this['_shapeTextEditingService']=_0xd0e4a1,this[_0x5be4a9(0x1e3)]=_0x1cbf57,H(this,_0x5be4a9(0x206),null),H(this,'_activeShapeInfo',null),H(this,_0x5be4a9(0x2d7),!0x1),H(this,_0x5be4a9(0x441),0x0),H(this,_0x5be4a9(0x446),new Map()),H(this,'_popupTargetKeys',new Map()),this[_0x5be4a9(0x29e)](),this[_0x5be4a9(0x387)](this[_0x5be4a9(0x408)]['getCurrentTypeOfUnit$'](o[_0x5be4a9(0x273)][_0x5be4a9(0x2f5)])[_0x5be4a9(0x1d2)](_0x4ea93e=>{const _0x632467=_0x5be4a9;if(!_0x4ea93e){var _0x31e02d;(_0x31e02d=this[_0x632467(0x206)])==null||_0x31e02d[_0x632467(0x270)]();}})),this[_0x5be4a9(0x488)](),this[_0x5be4a9(0x387)](this[_0x5be4a9(0x3b9)][_0x5be4a9(0x1ce)]['subscribe'](_0x13cf8e=>{const _0x7aed5c=_0x5be4a9;for(let _0x5f3e2a of _0x13cf8e){let _0x496e97=_0x5f3e2a[_0x7aed5c(0x385)]+':'+_0x5f3e2a[_0x7aed5c(0x467)]+':'+_0x5f3e2a['drawingId'];for(let [_0x54bf49,_0x251061]of this[_0x7aed5c(0x389)])_0x251061===_0x496e97&&this[_0x7aed5c(0x1cd)](_0x54bf49,!0x0);}})),this[_0x5be4a9(0x387)]((0x0,e[_0x5be4a9(0x466)])(this[_0x5be4a9(0x1f2)],o[_0x5be4a9(0x273)][_0x5be4a9(0x2f5)],_0x1ffa52=>this[_0x5be4a9(0x45f)](_0x1ffa52))),this['disposeWithMe'](this[_0x5be4a9(0x1cb)][_0x5be4a9(0x308)][_0x5be4a9(0x1d2)](_0x5d477b=>{const _0x3ac629=_0x5be4a9;_0x5d477b&&this[_0x3ac629(0x1cd)](void 0x0,!0x0);})),this['disposeWithMe'](this[_0x5be4a9(0x1e3)]['permissionPointUpdate$']['subscribe'](()=>{const _0x2c44a1=_0x5be4a9;this['_drawingManagerService']['getFocusDrawings']()[_0x2c44a1(0x1c7)](_0x190d2b=>_0x190d2b['drawingType']===o[_0x2c44a1(0x37c)][_0x2c44a1(0x27e)]&&this[_0x2c44a1(0x408)]['getUnitType'](_0x190d2b[_0x2c44a1(0x385)])===o[_0x2c44a1(0x273)][_0x2c44a1(0x2f5)]&&!this[_0x2c44a1(0x3dd)](_0x190d2b['unitId'],_0x190d2b[_0x2c44a1(0x40c)]))&&(this[_0x2c44a1(0x1cd)](void 0x0,!0x0),this[_0x2c44a1(0x1f6)]());}));}[_0x2c096c(0x29e)](){const _0x2409c8=_0x2c096c;this[_0x2409c8(0x361)][_0x2409c8(0x27c)](Qe);}[_0x2c096c(0x3b5)](_0x16bb65,_0x5b59f9,_0x2f4381,_0xfa8b52){const _0x33e2f0=_0x2c096c;return[{'label':_0x33e2f0(0x2c5),'index':0x0,'commandId':j['id'],'commandParams':{'unitId':_0x16bb65,'subUnitId':_0x5b59f9,'drawingId':_0x2f4381},'disable':_0xfa8b52===o[_0x33e2f0(0x37c)][_0x33e2f0(0x395)]},{'label':_0x33e2f0(0x318),'index':0x1,'commandId':c['RemoveDocDrawingCommand']['id'],'commandParams':{'unitId':_0x16bb65,'drawings':[{'unitId':_0x16bb65,'subUnitId':_0x5b59f9,'drawingId':_0x2f4381}]},'disable':!0x1},{'label':'docs-shape-ui.hidePanel','index':0x2,'commandId':B['id'],'commandParams':{'unitId':_0x16bb65,'subUnitId':_0x5b59f9,'drawingId':_0x2f4381},'disable':!0x1}];}['_getShapeInfo'](_0x4c2595,_0x18fd51,_0x4072f2){const _0x17392f=_0x2c096c;let _0x539c4e=this[_0x17392f(0x1ee)][_0x17392f(0x271)](_0x4c2595,_0x18fd51,_0x4072f2),_0x12b29a=this[_0x17392f(0x1ee)]['getShapeDataById'](_0x4c2595,_0x18fd51,_0x4072f2);return _0x539c4e!==void 0x0&&_0x12b29a!==void 0x0?{'shapeData':_0x12b29a,'shapeId':_0x4072f2,'shapeType':_0x539c4e,'unitId':_0x4c2595,'subUnitId':_0x18fd51,'version':this[_0x17392f(0x441)],'disableShapeOption':!0x1}:null;}['_clearPopups'](_0xf71042,_0x1e973a=!0x1){const _0x1834c2=_0x2c096c;if(_0xf71042==null){[...this[_0x1834c2(0x446)][_0x1834c2(0x20a)]()][_0x1834c2(0x322)](_0x503c6c=>this[_0x1834c2(0x1cd)](_0x503c6c,_0x1e973a));return;}let _0x53bdf7=this[_0x1834c2(0x446)][_0x1834c2(0x328)](_0xf71042);if(_0x53bdf7){for(let _0x168df7=_0x53bdf7[_0x1834c2(0x472)]-0x1;_0x168df7>=0x0;--_0x168df7){let _0x34d270=_0x53bdf7[_0x168df7];(_0x1e973a||_0x34d270[_0x1834c2(0x38a)]())&&(_0x34d270[_0x1834c2(0x270)](),_0x53bdf7[_0x1834c2(0x333)](_0x168df7,0x1));}_0x53bdf7[_0x1834c2(0x472)]===0x0&&(this[_0x1834c2(0x446)][_0x1834c2(0x294)](_0xf71042),this[_0x1834c2(0x389)][_0x1834c2(0x294)](_0xf71042));}}['_getDisposePopups'](_0x333731){const _0x4298e8=_0x2c096c;let _0x5774f3=this['_disposePopupsByUnit']['get'](_0x333731);if(_0x5774f3)return _0x5774f3;let _0x526ada=[];return this['_disposePopupsByUnit'][_0x4298e8(0x2dd)](_0x333731,_0x526ada),_0x526ada;}['_popupMenuListener'](_0x180774){const _0x3b8003=_0x2c096c;var _0x361a81;let _0x2b84f9=new o[(_0x3b8003(0x36a))](),_0x2845c8=(_0x361a81=this[_0x3b8003(0x1f2)][_0x3b8003(0x287)](o['UniverInstanceType'][_0x3b8003(0x2f5)])['find'](_0x385b5f=>_0x385b5f[_0x3b8003(0x3b2)][_0x3b8003(0x2e1)]()===_0x180774))==null?void 0x0:_0x361a81[_0x3b8003(0x385)];return _0x2845c8&&(_0x2b84f9['add'](_0x180774[_0x3b8003(0x32c)][_0x3b8003(0x1d2)](()=>this[_0x3b8003(0x392)](_0x180774,_0x2845c8))),_0x2b84f9['add'](_0x180774[_0x3b8003(0x3f4)][_0x3b8003(0x1d2)](()=>{const _0x1037da=_0x3b8003;this[_0x1037da(0x1cd)](_0x2845c8),queueMicrotask(()=>{const _0x5a8258=_0x1037da;_0x180774[_0x5a8258(0x2cb)]()[_0x5a8258(0x2ba)]>0x0||!this[_0x5a8258(0x3b9)][_0x5a8258(0x263)]()[_0x5a8258(0x1c7)](_0x583a07=>_0x583a07[_0x5a8258(0x385)]===_0x2845c8)||(this[_0x5a8258(0x32b)][_0x5a8258(0x3e2)](o['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x5a8258(0x3b9)]['focusDrawing'](null));});})),_0x2b84f9[_0x3b8003(0x21d)](_0x180774[_0x3b8003(0x460)][_0x3b8003(0x1d2)](()=>{const _0x3beac4=_0x3b8003;this[_0x3beac4(0x1cd)](_0x2845c8,!0x0);}))),_0x2b84f9;}[_0x2c096c(0x392)](_0x166b96,_0x577901){const _0x3d461f=_0x2c096c;let _0x4ef394=_0x166b96[_0x3d461f(0x2cb)]();if(this[_0x3d461f(0x2d7)]){this[_0x3d461f(0x1cd)](_0x577901,!0x0);return;}if(_0x4ef394[_0x3d461f(0x2ba)]>0x1){this[_0x3d461f(0x1cd)](_0x577901);return;}let _0x185b69=_0x4ef394['values']()[_0x3d461f(0x42d)]()[_0x3d461f(0x1e4)];if(!_0x185b69){this['_clearPopups'](_0x577901);return;}let _0xb6892a=this[_0x3d461f(0x3b9)][_0x3d461f(0x4b9)](_0x185b69[_0x3d461f(0x386)]);if(!_0xb6892a||_0xb6892a['drawingType']!==o['DrawingTypeEnum'][_0x3d461f(0x27e)]){this[_0x3d461f(0x1cd)](_0x577901);return;}let {unitId:_0x453cab,subUnitId:_0x3f1c86,drawingId:_0x2eb1d3,drawingType:_0x3b4beb}=_0xb6892a;if(!this[_0x3d461f(0x3dd)](_0x453cab,_0x2eb1d3)){this[_0x3d461f(0x1cd)](_0x577901,!0x0);return;}let _0x545919=this[_0x3d461f(0x2a7)](_0x453cab,_0x3f1c86,_0x2eb1d3);if(!_0x545919){this[_0x3d461f(0x1cd)](_0x577901);return;}let _0x1393f9=this[_0x3d461f(0x446)][_0x3d461f(0x328)](_0x577901),_0x396fcc=_0x453cab+':'+_0x3f1c86+':'+_0x2eb1d3;if(this['_popupTargetKeys'][_0x3d461f(0x328)](_0x577901)===_0x396fcc&&_0x1393f9&&_0x1393f9['length']>0x0)return;this[_0x3d461f(0x1cd)](_0x577901);let _0x16af2f=this[_0x3d461f(0x1f2)][_0x3d461f(0x233)](_0x453cab),_0x2205e9=((_0x16af2f==null?void 0x0:_0x16af2f['isMainScene'])===!0x1?_0x16af2f[_0x3d461f(0x33e)](t[_0x3d461f(0x29c)]):this[_0x3d461f(0x35f)])[_0x3d461f(0x2af)](_0x185b69,this[_0x3d461f(0x3cc)](_0x545919,_0x3b4beb),_0x453cab);this[_0x3d461f(0x387)](_0x2205e9),this['_getDisposePopups'](_0x577901)[_0x3d461f(0x47f)](_0x2205e9),this['_popupTargetKeys'][_0x3d461f(0x2dd)](_0x577901,_0x396fcc),this[_0x3d461f(0x3b9)][_0x3d461f(0x263)]()['some'](_0x8d5ed3=>_0x8d5ed3[_0x3d461f(0x385)]===_0x453cab&&_0x8d5ed3[_0x3d461f(0x467)]===_0x3f1c86&&_0x8d5ed3[_0x3d461f(0x40c)]===_0x2eb1d3)||this[_0x3d461f(0x3b9)][_0x3d461f(0x45e)]([{'unitId':_0x453cab,'subUnitId':_0x3f1c86,'drawingId':_0x2eb1d3}]);}['_getShapePopup'](_0x2f8f7a,_0x35beba){const _0x4dda19=_0x2c096c;return{'componentKey':xt,'requiresStableLayout':!0x1,'direction':_0x4dda19(0x1b8),'offset':[0x0,e[_0x4dda19(0x2ed)]],'extraProps':{'unitId':_0x2f8f7a[_0x4dda19(0x385)],'subUnitId':_0x2f8f7a[_0x4dda19(0x467)],'drawingId':_0x2f8f7a[_0x4dda19(0x275)],'drawingType':_0x35beba,'shapeType':_0x2f8f7a[_0x4dda19(0x4a2)],'shapeData':_0x2f8f7a['shapeData']}};}[_0x2c096c(0x3dd)](_0x26ec72,_0x481eed){const _0x9864c4=_0x2c096c;let _0x21780b=this[_0x9864c4(0x408)][_0x9864c4(0x3f3)](_0x26ec72,o['UniverInstanceType'][_0x9864c4(0x2f5)]);if(!_0x21780b)return!0x1;let _0x462237=(0x0,s['getDocumentDrawingSegmentId'])(_0x21780b,_0x481eed);return(0x0,s['canEditDocumentTargets'])(this[_0x9864c4(0x1e3)],_0x26ec72,[...(0x0,s['getDocumentEntityParentPermissionObjectIds'])(_0x21780b,_0x462237,'drawing',_0x481eed),(0x0,s['getDocumentEntityPermissionObjectId'])(_0x462237,'drawing',_0x481eed)]);}[_0x2c096c(0x488)](){const _0x56ca20=_0x2c096c;this['disposeWithMe'](this[_0x56ca20(0x405)]['onCommandExecuted'](_0x2c9e22=>{const _0x18b632=_0x56ca20;if(_0x2c9e22['id']===j['id']){let {unitId:_0x5eaddb,subUnitId:_0x3082e0,drawingId:_0x5e5c68}=_0x2c9e22[_0x18b632(0x2ab)];this[_0x18b632(0x441)]+=0x1,this[_0x18b632(0x44f)]=this[_0x18b632(0x2a7)](_0x5eaddb,_0x3082e0,_0x5e5c68),this[_0x18b632(0x1cd)](void 0x0,!0x0),this[_0x18b632(0x4b7)]();}if(_0x2c9e22['id']===B['id']&&(this['_activeShapeInfo']=null,this['_closeShapeEditPanel']()),_0x2c9e22['id']===r[_0x18b632(0x398)]['id']){let {unitId:_0x1033f4,shapeId:_0x6c867c}=_0x2c9e22[_0x18b632(0x2ab)];if(this['_activeShapeInfo']&&this[_0x18b632(0x44f)][_0x18b632(0x275)]===_0x6c867c){let _0x5567b6=this[_0x18b632(0x2a7)](_0x1033f4,this[_0x18b632(0x44f)][_0x18b632(0x467)],_0x6c867c);_0x5567b6&&(this[_0x18b632(0x441)]+=0x1,_0x5567b6['version']=this[_0x18b632(0x441)],this[_0x18b632(0x44f)]=_0x5567b6,this[_0x18b632(0x2d7)]&&this['_openShapeEditPanel']());}}})),this[_0x56ca20(0x387)](this[_0x56ca20(0x3b9)][_0x56ca20(0x3c8)][_0x56ca20(0x1d2)](_0x29e6fd=>{const _0x5cfdd3=_0x56ca20;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x29e6fd[_0x5cfdd3(0x472)]===0x0){this[_0x5cfdd3(0x44f)]=null,this[_0x5cfdd3(0x1f6)]();return;}if(_0x29e6fd[_0x5cfdd3(0x472)]===0x1&&_0x29e6fd[0x0][_0x5cfdd3(0x249)]===o[_0x5cfdd3(0x37c)]['DRAWING_SHAPE']&&(this[_0x5cfdd3(0x441)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x29e6fd[0x0][_0x5cfdd3(0x385)],_0x29e6fd[0x0][_0x5cfdd3(0x467)],_0x29e6fd[0x0][_0x5cfdd3(0x40c)]),this[_0x5cfdd3(0x44f)])){this['_openShapeEditPanel']();return;}let _0x314c99=_0x29e6fd[_0x5cfdd3(0x45a)](_0x6bd067=>_0x6bd067[_0x5cfdd3(0x249)]===o[_0x5cfdd3(0x37c)][_0x5cfdd3(0x27e)]);if(_0x29e6fd['length']>0x1&&_0x314c99[_0x5cfdd3(0x472)]===_0x29e6fd['length']){if(this[_0x5cfdd3(0x441)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x29e6fd[0x0][_0x5cfdd3(0x385)],_0x29e6fd[0x0]['subUnitId'],_0x29e6fd[0x0][_0x5cfdd3(0x40c)]),this['_activeShapeInfo']){this[_0x5cfdd3(0x4b7)]();return;}}else{if(this[_0x5cfdd3(0x441)]+=0x1,this[_0x5cfdd3(0x44f)]=this['_getShapeInfo'](_0x29e6fd[0x0][_0x5cfdd3(0x385)],_0x29e6fd[0x0][_0x5cfdd3(0x467)],_0x29e6fd[0x0][_0x5cfdd3(0x40c)]),this[_0x5cfdd3(0x44f)]){this['_activeShapeInfo'][_0x5cfdd3(0x4c2)]=!0x0,this[_0x5cfdd3(0x4b7)]();return;}}this[_0x5cfdd3(0x1f6)]();}));}[_0x2c096c(0x4b7)](){const _0x43e752=_0x2c096c;this[_0x43e752(0x44f)]&&(this[_0x43e752(0x206)]=this['_sidebarService'][_0x43e752(0x352)]({'id':w,'header':{'title':this[_0x43e752(0x2be)]['t'](_0x43e752(0x298))},'width':0x184,'children':{'label':w,...this[_0x43e752(0x44f)]},'onClose':()=>{const _0x39fe64=_0x43e752;this['_drawingManagerService'][_0x39fe64(0x45e)](null),this['_contextService'][_0x39fe64(0x3e2)](o[_0x39fe64(0x3c4)],!0x1),this['_sidebarDisposable']=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}['_closeShapeEditPanel'](){const _0x13d27d=_0x2c096c;this[_0x13d27d(0x2d7)]=!0x1,this['_sidebarService']['close'](w),this[_0x13d27d(0x206)]=null,this['_contextService']['setContextValue'](o['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x13d27d(0x3b9)][_0x13d27d(0x45e)](null);}};zt=I([F(0x0,o[_0x2c096c(0x3a2)]),F(0x1,(0x0,o[_0x2c096c(0x3c9)])(n[_0x2c096c(0x2ce)])),F(0x2,n[_0x2c096c(0x2fa)]),F(0x3,(0x0,o[_0x2c096c(0x3c9)])(r[_0x2c096c(0x235)])),F(0x4,(0x0,o[_0x2c096c(0x3c9)])(o[_0x2c096c(0x3dc)])),F(0x5,o[_0x2c096c(0x2b2)]),F(0x6,u[_0x2c096c(0x482)]),F(0x7,(0x0,o[_0x2c096c(0x3c9)])(t[_0x2c096c(0x29c)])),F(0x8,l[_0x2c096c(0x285)]),F(0x9,o[_0x2c096c(0x4a1)]),F(0xa,(0x0,o[_0x2c096c(0x3c9)])(G)),F(0xb,o[_0x2c096c(0x1d0)])],zt);let Bt=class extends o[_0x2c096c(0x2c9)]{constructor(_0x39bba6,_0x116ee0){const _0x2559d6=_0x2c096c;super(),this[_0x2559d6(0x1ee)]=_0x39bba6,this[_0x2559d6(0x2be)]=_0x116ee0,this[_0x2559d6(0x387)]((0x0,o[_0x2559d6(0x1d8)])((0x0,l[_0x2559d6(0x33b)])((_0x5af1f3,_0x45289f,_0x47ebc8)=>this[_0x2559d6(0x288)](_0x5af1f3,_0x45289f,_0x47ebc8))));}[_0x2c096c(0x288)](_0x21aa75,_0xf600ef,_0x5b2eee){const _0x1e116a=_0x2c096c;let _0x170d22=this['_docsShapeService'][_0x1e116a(0x1d6)](_0x21aa75,_0xf600ef);if(!_0x170d22)return null;let _0x5f48ec=_0x170d22['getShapeData'](),_0x1921d1=(0x0,i[_0x1e116a(0x4ba)])(_0x5f48ec),_0xd81643=_0x5f48ec[_0x1e116a(0x457)];if(!_0xd81643||_0x1921d1[_0x1e116a(0x1c5)]!==i[_0x1e116a(0x347)]['SpAutoFit'])return null;let _0x587c86=_0x5b2eee['fallbackWidth'],_0x1ebd78=_0x5b2eee[_0x1e116a(0x313)];_0x170d22[_0x1e116a(0x49f)]({'width':_0x587c86,'height':_0x1ebd78});let _0x519618=_0x170d22[_0x1e116a(0x1be)]({'left':0x0,'top':0x0,'width':_0x587c86,'height':_0x1ebd78}),_0x3a2f35=(0x0,e[_0x1e116a(0x1ca)])(_0x1e116a(0x37a)in _0xd81643?_0xd81643['dataModel']:void 0x0),_0x5f4b6f=(_0x3a2f35==null?void 0x0:_0x3a2f35['doc'])??(_0x1e116a(0x425)in _0xd81643?(0x0,e[_0x1e116a(0x2c4)])(_0xd81643,_0xf600ef+_0x1e116a(0x416)):null);if(!_0x5f4b6f)return null;let _0x9a3fb0=(0x0,e['resolveFormulaShapeAutoFitSize'])({'documentData':_0x5f4b6f,'height':_0x1ebd78,'shapeData':_0x5f48ec,'textRect':_0x519618,'width':_0x587c86,'widthBuffer':0x0});_0x9a3fb0&&({width:_0x587c86,height:_0x1ebd78}=_0x9a3fb0,_0x170d22[_0x1e116a(0x49f)]({'width':_0x587c86,'height':_0x1ebd78}),_0x519618=_0x170d22['getShapeTextRect']({'left':0x0,'top':0x0,'width':_0x587c86,'height':_0x1ebd78}));let _0x70944d=_0xd81643[_0x1e116a(0x35b)]!==!0x1,_0x168985=(0x0,e[_0x1e116a(0x481)])(_0x5f4b6f,{'isHorizontal':_0x70944d,'textRect':_0x519618,'verticalAlign':_0x3a2f35==null?void 0x0:_0x3a2f35['va'],'horizontalAlign':_0x3a2f35==null?void 0x0:_0x3a2f35['ha'],'wrapStrategy':(0x0,e[_0x1e116a(0x48f)])(_0x5f48ec)}),_0x5a574d=new o['DocumentDataModel'](_0x168985),_0x2649bd=new l[(_0x1e116a(0x1db))](_0x5a574d),_0x22bcd1=l[_0x1e116a(0x372)]['create'](_0x2649bd,this[_0x1e116a(0x2be)]);try{var _0x2d1334,_0x3e2218;_0x22bcd1[_0x1e116a(0x4b5)]();let _0x577d57=((_0x2d1334=_0x22bcd1[_0x1e116a(0x3da)]())==null?void 0x0:_0x2d1334[_0x1e116a(0x296)])??[],_0x361a50=_0x577d57[_0x577d57['length']-0x1],_0x18f87d=_0x361a50?Math[_0x1e116a(0x448)](0x0,((_0x3e2218=(0x0,l[_0x1e116a(0x325)])(_0x361a50))==null?void 0x0:_0x3e2218[_0x1e116a(0x228)])??0x0):0x0,_0x3df138=_0x22bcd1[_0x1e116a(0x49b)]()[_0x1e116a(0x3ff)]+_0x18f87d-(_0x70944d?_0x519618['height']:_0x519618[_0x1e116a(0x4a9)]);return Number[_0x1e116a(0x4b1)](_0x3df138)?_0x70944d?{'width':_0x587c86,'height':Math[_0x1e116a(0x448)](0x1,_0x1ebd78+_0x3df138)}:{'width':Math[_0x1e116a(0x448)](0x1,_0x587c86+_0x3df138),'height':_0x1ebd78}:null;}finally{_0x22bcd1[_0x1e116a(0x270)](),_0x2649bd[_0x1e116a(0x270)](),_0x5a574d[_0x1e116a(0x270)]();}}};Bt=I([F(0x0,(0x0,o[_0x2c096c(0x3c9)])(r[_0x2c096c(0x235)])),F(0x1,(0x0,o[_0x2c096c(0x3c9)])(o[_0x2c096c(0x3dc)]))],Bt);let $=class extends o[_0x2c096c(0x3b1)]{constructor(_0x5e3e79=nt,_0x13e48c,_0x2c8136,_0x1bf675,_0x234e7e){const _0x1853ac=_0x2c096c;super(),this[_0x1853ac(0x326)]=_0x5e3e79,this[_0x1853ac(0x248)]=_0x13e48c,this[_0x1853ac(0x405)]=_0x2c8136,this['_configService']=_0x1bf675,this[_0x1853ac(0x1f2)]=_0x234e7e;let {menu:_0x355702,..._0x35e596}=(0x0,o[_0x1853ac(0x4aa)])({},nt,this[_0x1853ac(0x326)]);_0x355702&&this[_0x1853ac(0x4a4)]['setConfig'](_0x1853ac(0x2a5),_0x355702,{'merge':!0x0}),this[_0x1853ac(0x4a4)][_0x1853ac(0x3e1)](tt,_0x35e596),this[_0x1853ac(0x443)]();}[_0x2c096c(0x3d4)](){const _0x5700a5=_0x2c096c;(0x0,o['registerDependencies'])(this['_injector'],this[_0x5700a5(0x3ce)]()),this[_0x5700a5(0x248)][_0x5700a5(0x328)](jt),this[_0x5700a5(0x309)]();}['_getDependencies'](){return[[jt],[zt],[Z],[K],[q],[W],[L],[J],[Bt],[G],[X]];}[_0x2c096c(0x4ac)](){const _0x1bb783=_0x2c096c;this[_0x1bb783(0x1c3)]()['forEach'](_0x20465a=>{const _0x1e3a8e=_0x1bb783;this[_0x1e3a8e(0x387)](this[_0x1e3a8e(0x1f2)][_0x1e3a8e(0x41f)](o[_0x1e3a8e(0x273)]['UNIVER_DOC'],_0x20465a));}),(0x0,o[_0x1bb783(0x43e)])(this['_injector'],[[zt],[Z],[K],[q],[L],[J],[Bt],[G],[X]]);}[_0x2c096c(0x1c3)](){return[[W],[It],[Rt],[Mt]];}[_0x2c096c(0x38c)](){const _0x37a09b=_0x2c096c;this[_0x37a09b(0x387)](this[_0x37a09b(0x1f2)][_0x37a09b(0x41f)](o[_0x37a09b(0x273)][_0x37a09b(0x2f5)],[Lt]));}[_0x2c096c(0x443)](){const _0x41fa17=_0x2c096c;[C,B,j,A,N,P][_0x41fa17(0x322)](_0x2a900e=>this[_0x41fa17(0x387)](this[_0x41fa17(0x405)][_0x41fa17(0x2e9)](_0x2a900e)));}[_0x2c096c(0x309)](){const _0x1fa269=_0x2c096c;let _0x2ca3b9=this['_injector'],_0x4cd7f6=_0x2ca3b9[_0x1fa269(0x328)](n[_0x1fa269(0x2d8)]);this[_0x1fa269(0x387)](_0x4cd7f6[_0x1fa269(0x3ed)](n[_0x1fa269(0x1f1)][_0x1fa269(0x375)],()=>(0x0,n[_0x1fa269(0x3c2)])(Dt,_0x2ca3b9)));}};H($,'type',o[_0x2c096c(0x273)]['UNIVER_DOC']),H($,_0x2c096c(0x3eb),_0x2c096c(0x27b)),H($,'packageName',$e),H($,_0x2c096c(0x234),et),$=I([(0x0,o['DependentOn'])(m[_0x2c096c(0x218)],s[_0x2c096c(0x47e)],u[_0x2c096c(0x46f)],d[_0x2c096c(0x36b)],l[_0x2c096c(0x379)],t[_0x2c096c(0x26d)],a[_0x2c096c(0x2ff)],h[_0x2c096c(0x2e7)],r[_0x2c096c(0x205)],e[_0x2c096c(0x382)]),F(0x1,(0x0,o['Inject'])(o[_0x2c096c(0x31b)])),F(0x2,o[_0x2c096c(0x2b2)]),F(0x3,o[_0x2c096c(0x266)]),F(0x4,l[_0x2c096c(0x285)])],$),exports[_0x2c096c(0x268)]=Qe,Object[_0x2c096c(0x44e)](exports,_0x2c096c(0x1f3),{'enumerable':!0x0,'get':function(){return Q;}}),Object[_0x2c096c(0x44e)](exports,_0x2c096c(0x2d0),{'enumerable':!0x0,'get':function(){return $;}});
|
|
1
|
+
const _0xac088e=_0xa70b;(function(_0x1ebfaf,_0x436864){const _0x3d8022=_0xa70b,_0x9379dd=_0x1ebfaf();while(!![]){try{const _0x2638a2=parseInt(_0x3d8022(0x445))/0x1*(parseInt(_0x3d8022(0x2d9))/0x2)+parseInt(_0x3d8022(0x272))/0x3+-parseInt(_0x3d8022(0x45b))/0x4+parseInt(_0x3d8022(0x39f))/0x5+parseInt(_0x3d8022(0x377))/0x6+-parseInt(_0x3d8022(0x4a7))/0x7*(parseInt(_0x3d8022(0x3d5))/0x8)+-parseInt(_0x3d8022(0x1d6))/0x9*(-parseInt(_0x3d8022(0x297))/0xa);if(_0x2638a2===_0x436864)break;else _0x9379dd['push'](_0x9379dd['shift']());}catch(_0x2de193){_0x9379dd['push'](_0x9379dd['shift']());}}}(_0x404d,0x783fa),Object[_0xac088e(0x2e7)](exports,Symbol[_0xac088e(0x2c2)],{'value':_0xac088e(0x2ce)}));let e=require('@univerjs-pro/shape-editor-ui'),t=require('@univerjs/docs-ui'),n=require('@univerjs/ui'),r=require('@univerjs-pro/docs-shape'),i=require('@univerjs-pro/engine-shape'),a=require('@univerjs-pro/shape-editor'),o=require('@univerjs/core'),s=require('@univerjs/docs'),c=require('@univerjs/docs-drawing'),l=require('@univerjs/engine-render'),u=require('@univerjs/drawing'),d=require('@univerjs/drawing-ui'),f=require('react/jsx-runtime'),p=require('rxjs'),m=require('@univerjs-pro/license'),h=require('@univerjs/docs-drawing-ui'),g=require('@univerjs/icons'),_=require('@univerjs/design'),v=require('react'),y=require('@univerjs/protocol');function b(_0x61f37b,_0x2c74df){const _0x40f6a4=_0xac088e;if(_0x2c74df){if((0x0,i[_0x40f6a4(0x471)])(_0x61f37b)&&(_0x2c74df['startArrow']||_0x2c74df['endArrow']))return{'ln':{'startArrow':_0x2c74df[_0x40f6a4(0x40b)]?{'type':i[_0x40f6a4(0x1f2)][_0x40f6a4(0x3d2)],'size':i[_0x40f6a4(0x26e)][_0x40f6a4(0x216)]}:void 0x0,'endArrow':_0x2c74df[_0x40f6a4(0x349)]?{'type':i[_0x40f6a4(0x1f2)]['Arrow'],'size':i[_0x40f6a4(0x26e)]['Large']}:void 0x0}};if(_0x61f37b===i['ShapeTypeEnum'][_0x40f6a4(0x245)]&&(_0x2c74df['horizontal']||_0x2c74df['vertical']))return(0x0,a[_0x40f6a4(0x265)])({'fill':{'fillType':i[_0x40f6a4(0x484)][_0x40f6a4(0x334)],'color':'#3B82F6'},'isHorizontal':!!_0x2c74df[_0x40f6a4(0x4a5)],'stroke':{'lineStrokeType':i['ShapeLineTypeEnum']['SolidLine'],'width':0x1,'color':_0x40f6a4(0x352)}});}}function x(_0x735293,_0x54e9d4){const _0x4428c1=_0xac088e;var _0x28965f;let _0x2135a7=_0x54e9d4[_0x4428c1(0x256)]??'',_0x1fc100=(_0x28965f=_0x735293[_0x4428c1(0x28a)](_0x2135a7))==null?void 0x0:_0x28965f['getBody']();if(!_0x1fc100)return null;let _0x4c1cb6=_0x1fc100['paragraphs']??[],_0x175100=_0x4c1cb6[_0x4428c1(0x41f)](_0xd9ff67=>{const _0x5c083b=_0x4428c1;let _0x21bf9a=(0x0,o[_0x5c083b(0x247)])(_0x1fc100,_0xd9ff67);return _0x54e9d4[_0x5c083b(0x28d)]>=_0x21bf9a&&_0x54e9d4[_0x5c083b(0x28d)]<=_0xd9ff67[_0x5c083b(0x4ae)];})??_0x4c1cb6[_0x4c1cb6[_0x4428c1(0x1ee)]-0x1];return _0x175100?{'paragraphId':_0x175100[_0x4428c1(0x3e0)],'segmentId':_0x2135a7,'position':r[_0x4428c1(0x34f)][_0x4428c1(0x222)],'offset':_0x54e9d4[_0x4428c1(0x28d)]-(0x0,o[_0x4428c1(0x247)])(_0x1fc100,_0x175100)}:null;}function S(_0x3b58d8,_0x25ccc3,_0x352d94){const _0x128f34=_0xac088e;var _0x24be67,_0x2dff8f;if(!_0x352d94)return null;let _0x51bbf4=(_0x24be67=_0x3b58d8[_0x128f34(0x314)](l['IRenderManagerService'])[_0x128f34(0x4bd)](_0x25ccc3))==null?void 0x0:_0x24be67[_0x128f34(0x3e6)](t['DocParagraphMenuService'])[_0x128f34(0x3d1)];if(!_0x51bbf4)return null;let _0x55dd64=_0x352d94===_0x128f34(0x421)?{'startOffset':_0x51bbf4[_0x128f34(0x2d8)]['endOffset'],'endOffset':_0x51bbf4['moveRange'][_0x128f34(0x494)]}:_0x51bbf4[_0x128f34(0x31c)];return{'startOffset':_0x55dd64[_0x128f34(0x28d)],'endOffset':_0x55dd64[_0x128f34(0x494)],'collapsed':_0x55dd64['startOffset']===_0x55dd64[_0x128f34(0x494)],'segmentId':((_0x2dff8f=_0x51bbf4['paragraph'])==null?void 0x0:_0x2dff8f[_0x128f34(0x256)])??''};}const C={'type':o[_0xac088e(0x3b5)][_0xac088e(0x2c9)],'id':'doc.command.menu-insert-shape','handler':async(_0x2c5821,_0x2cb995)=>{const _0x567ce8=_0xac088e;let _0x111f3e=_0x2c5821[_0x567ce8(0x314)](o[_0x567ce8(0x257)])[_0x567ce8(0x3c7)](o[_0x567ce8(0x230)][_0x567ce8(0x2ba)]);if(!_0x111f3e)return!0x1;let _0x6d80f5=_0x2c5821['get'](o[_0x567ce8(0x2cf)]),_0x12d429=_0x111f3e[_0x567ce8(0x389)](),_0x393090=_0x2cb995['shapeId']??(0x0,o['generateRandomId'])(),_0x4bb7ce=_0x2cb995[_0x567ce8(0x4b0)]??r[_0x567ce8(0x1de)],_0x7a4f5b=_0x2cb995[_0x567ce8(0x3ed)]??r['DEFAULT_DOC_SHAPE_HEIGHT'],_0x203004=_0x2cb995['shapeData']??b(_0x2cb995[_0x567ce8(0x201)],_0x2cb995[_0x567ce8(0x498)]),_0x272e8a=S(_0x2c5821,_0x12d429,_0x2cb995['paragraphMenuPlacement'])??_0x2c5821[_0x567ce8(0x314)](s['DocSelectionManagerService'])[_0x567ce8(0x232)]();if(!_0x272e8a)return!0x1;let _0x302de7=x(_0x111f3e,_0x272e8a);return _0x302de7?!!_0x6d80f5[_0x567ce8(0x1e1)](r[_0x567ce8(0x1eb)]['id'],{'unitId':_0x12d429,'shapeId':_0x393090,'shapeType':_0x2cb995[_0x567ce8(0x201)],'shapeData':_0x203004,'transform':{'width':_0x4bb7ce,'height':_0x7a4f5b},'placement':{'wrappingStyle':c['TextWrappingStyle'][_0x567ce8(0x255)],'anchor':_0x302de7}}):!0x1;}},w=_0xac088e(0x31b),T='docs-shape-ui.ribbon.shape-format',E=_0xac088e(0x369),D=(0x0,o[_0xac088e(0x4f4)])('SHAPE_TEXT'),O=_0xac088e(0x42e),k='DocsShapeTextEditorContainer',A={'id':_0xac088e(0x400),'type':o[_0xac088e(0x3b5)][_0xac088e(0x2c9)],'handler':(_0x14564a,_0x3b84dc)=>{const _0x40463c=_0xac088e;let _0x315032=_0x14564a[_0x40463c(0x314)](n[_0x40463c(0x309)]),_0x20c9aa=_0x14564a[_0x40463c(0x314)](o[_0x40463c(0x2e2)]),_0x17d51b=_0x14564a['get'](u[_0x40463c(0x4ba)]);return(_0x3b84dc==null?void 0x0:_0x3b84dc[_0x40463c(0x201)])==='close'?(_0x315032['close'](E),!0x0):(_0x315032[_0x40463c(0x487)]({'id':E,'header':{'title':_0x20c9aa['t'](_0x40463c(0x4f9))},'children':{'label':E},'onClose':()=>{const _0x32097f=_0x40463c;_0x17d51b[_0x32097f(0x2c7)](null);},'width':0x168}),!0x0);}},j={'type':o[_0xac088e(0x3b5)]['OPERATION'],'id':_0xac088e(0x4b6),'handler'(){return!0x0;}};function M(_0x35f97a){const _0x2e03b9=_0xac088e;let _0x2446cc=_0x35f97a['get'](u['IDrawingManagerService'])[_0x2e03b9(0x2f0)](),_0x36733c=_0x2446cc['length']===0x1?_0x2446cc[0x0]:null;if(!_0x36733c||_0x36733c[_0x2e03b9(0x37c)]!==o['DrawingTypeEnum']['DRAWING_SHAPE'])return null;let _0x44f00c=_0x35f97a[_0x2e03b9(0x314)](r[_0x2e03b9(0x326)]),_0x383fcd=_0x44f00c[_0x2e03b9(0x3c2)](_0x36733c[_0x2e03b9(0x2e6)],_0x36733c['subUnitId'],_0x36733c[_0x2e03b9(0x270)]),_0x5a15c7=_0x44f00c[_0x2e03b9(0x4d8)](_0x36733c[_0x2e03b9(0x2e6)],_0x36733c[_0x2e03b9(0x390)],_0x36733c[_0x2e03b9(0x270)]);return _0x383fcd===void 0x0||!_0x5a15c7?null:{'drawing':_0x36733c,'shapeData':_0x5a15c7,'shapeType':_0x383fcd};}const N={'id':_0xac088e(0x4da),'type':o[_0xac088e(0x3b5)][_0xac088e(0x20a)],'handler':(_0xb439c9,_0x62c78c)=>{const _0x22b4b3=_0xac088e;let _0x1614d4=M(_0xb439c9),_0x1efdf5=(0x0,a[_0x22b4b3(0x1ff)])((_0x62c78c==null?void 0x0:_0x62c78c[_0x22b4b3(0x320)])??(_0x62c78c==null?void 0x0:_0x62c78c[_0x22b4b3(0x201)])??'');if(!_0x1614d4||!_0x1efdf5||_0x1efdf5[_0x22b4b3(0x348)]!==(0x0,a[_0x22b4b3(0x2fe)])(_0x1614d4[_0x22b4b3(0x485)]))return!0x1;let _0x182780=(0x0,a['applyQuickStyleToShapeData'])(_0x1614d4[_0x22b4b3(0x485)],_0x1efdf5);if(!_0x182780)return!0x1;let {drawing:_0x27cb34}=_0x1614d4;return _0xb439c9[_0x22b4b3(0x314)](o[_0x22b4b3(0x2cf)])[_0x22b4b3(0x290)](r[_0x22b4b3(0x218)]['id'],{'unitId':_0x27cb34['unitId'],'shapeId':_0x27cb34[_0x22b4b3(0x270)],'shapeData':_0x182780,'oldShapeJSON':{'oldShapeData':_0x1614d4[_0x22b4b3(0x485)]}});}},P={'id':'doc.operation.update-shape-type','type':o['CommandType'][_0xac088e(0x20a)],'handler':(_0x4b20fb,_0x3d7500)=>{const _0x4369c6=_0xac088e;let _0x35a9e7=M(_0x4b20fb),_0x186a6b=(_0x3d7500==null?void 0x0:_0x3d7500[_0x4369c6(0x492)])??(_0x3d7500==null?void 0x0:_0x3d7500[_0x4369c6(0x201)]);if(!_0x35a9e7||!_0x186a6b||(0x0,i[_0x4369c6(0x471)])(_0x35a9e7[_0x4369c6(0x492)])||(0x0,i[_0x4369c6(0x471)])(_0x186a6b))return!0x1;let _0x51ed27=(0x0,a['cloneShapeDataForType'])(_0x35a9e7[_0x4369c6(0x485)],_0x186a6b);if(!_0x51ed27)return!0x1;let {drawing:_0x37ac4f}=_0x35a9e7;return _0x4b20fb[_0x4369c6(0x314)](o[_0x4369c6(0x2cf)])['executeCommand'](r[_0x4369c6(0x218)]['id'],{'unitId':_0x37ac4f[_0x4369c6(0x2e6)],'shapeId':_0x37ac4f[_0x4369c6(0x270)],'shapeType':_0x186a6b,'shapeData':_0x51ed27,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x35a9e7[_0x4369c6(0x492)],'oldShapeData':_0x35a9e7[_0x4369c6(0x485)]}});}};function F(_0x44e3b5,_0x523302){return function(_0x5e86a5,_0x326164){_0x523302(_0x5e86a5,_0x326164,_0x44e3b5);};}function I(_0x161573,_0x2116df,_0x54f001,_0x2ca466){const _0x3a7391=_0xac088e;var _0x3617c2=arguments[_0x3a7391(0x1ee)],_0x249925=_0x3617c2<0x3?_0x2116df:_0x2ca466===null?_0x2ca466=Object[_0x3a7391(0x2fd)](_0x2116df,_0x54f001):_0x2ca466,_0x1cd7f4;if(typeof Reflect==_0x3a7391(0x4c0)&&typeof Reflect[_0x3a7391(0x1df)]==_0x3a7391(0x481))_0x249925=Reflect[_0x3a7391(0x1df)](_0x161573,_0x2116df,_0x54f001,_0x2ca466);else{for(var _0x41e001=_0x161573['length']-0x1;_0x41e001>=0x0;_0x41e001--)(_0x1cd7f4=_0x161573[_0x41e001])&&(_0x249925=(_0x3617c2<0x3?_0x1cd7f4(_0x249925):_0x3617c2>0x3?_0x1cd7f4(_0x2116df,_0x54f001,_0x249925):_0x1cd7f4(_0x2116df,_0x54f001))||_0x249925);}return _0x3617c2>0x3&&_0x249925&&Object[_0x3a7391(0x2e7)](_0x2116df,_0x54f001,_0x249925),_0x249925;}let L=class extends o[_0xac088e(0x1d9)]{constructor(_0x566955,_0x1366d3){const _0x27cf55=_0xac088e;super(),this['_clipService']=_0x566955,this[_0x27cf55(0x31f)]=_0x1366d3,this[_0x27cf55(0x480)](),this['_clipService'][_0x27cf55(0x3bb)](!0x0),this['disposeWithMe']({'dispose':()=>this['_clipService'][_0x27cf55(0x3bb)](!0x1)});}[_0xac088e(0x480)](){const _0x119e93=_0xac088e;let _0x500e29=new Map(),_0x161f91=this[_0x119e93(0x46c)][_0x119e93(0x347)]((_0x1f86e8,_0xfc4536,_0x1a8d8e,_0x7f4f42,_0x461707)=>{const _0x343c32=_0x119e93;let _0x5b9153=_0xfc4536;if(_0x5b9153===i[_0x343c32(0x436)][_0x343c32(0x467)]||_0xfc4536===_0x343c32(0x3be))return!0x1;try{let _0x279f6c=_0x500e29[_0x343c32(0x314)](_0xfc4536);return _0x279f6c||(_0x279f6c=new i[(_0x343c32(0x48e))](_0x5b9153,_0x343c32(0x396)+_0xfc4536),_0x500e29[_0x343c32(0x373)](_0xfc4536,_0x279f6c)),_0x279f6c[_0x343c32(0x4c7)](),_0x461707&&Object[_0x343c32(0x460)](_0x461707)['length']>0x0&&_0x279f6c[_0x343c32(0x2cd)]({'adjustValues':_0x461707},!0x0),_0x279f6c['updateContext']({'width':_0x1a8d8e,'height':_0x7f4f42}),_0x279f6c[_0x343c32(0x463)](_0x1f86e8,{'left':0x0,'top':0x0,'width':_0x1a8d8e,'height':_0x7f4f42});}catch{return!0x1;}});this[_0x119e93(0x38a)](_0x161f91),this[_0x119e93(0x38a)]({'dispose':()=>_0x500e29[_0x119e93(0x27d)]()});}[_0xac088e(0x269)](_0x2e3ca6,_0x273e63,_0x54d330,_0x54670e,_0x38f417){const _0x1d283f=_0xac088e;let _0x5b8ff4=this['_drawingManagerService']['getDrawingData'](_0x2e3ca6,_0x273e63)[_0x54d330];_0x5b8ff4&&_0x5b8ff4[_0x1d283f(0x37c)]===o['DrawingTypeEnum']['DRAWING_IMAGE']&&this[_0x1d283f(0x31f)][_0x1d283f(0x228)]([{..._0x5b8ff4,'prstGeom':_0x54670e,'adjustValues':_0x38f417}]);}};L=I([F(0x0,(0x0,o[_0xac088e(0x383)])(d['DrawingImageClipService'])),F(0x1,(0x0,o['Inject'])(u[_0xac088e(0x4ba)]))],L);const ee=_0xac088e(0x500),te=_0xac088e(0x4d2);function ne({onShapeClick:_0x406c8e,excludeGroups:_0x3a5e9a}){const _0x369233=_0xac088e;return(0x0,f[_0x369233(0x4de)])(e[_0x369233(0x44c)],{'excludeGroups':_0x3a5e9a,'onShapeClick':_0x406c8e,'scrollContainer':_0x369233(0x378)});}function re(){const _0x29dfd9=_0xac088e;let _0x3246ec=(0x0,n[_0x29dfd9(0x46d)])(u[_0x29dfd9(0x4ba)]),_0x2ff50c=(0x0,n[_0x29dfd9(0x46d)])(L);return _0x47d4f1=>{const _0x11a876=_0x29dfd9;let _0x3adc3c=_0x3246ec[_0x11a876(0x2f0)]()['find'](_0x106036=>_0x106036[_0x11a876(0x37c)]===o['DrawingTypeEnum'][_0x11a876(0x1e5)]);_0x3adc3c&&_0x2ff50c[_0x11a876(0x269)](_0x3adc3c[_0x11a876(0x2e6)],_0x3adc3c['subUnitId'],_0x3adc3c[_0x11a876(0x270)],_0x47d4f1[_0x11a876(0x348)]);};}function ie(){const _0x27f669=_0xac088e;let _0x345483=re();return(0x0,f[_0x27f669(0x4de)])(e[_0x27f669(0x3dc)],{'buttonLabel':_0x27f669(0x322),'excludeGroups':[e[_0x27f669(0x1e2)][_0x27f669(0x3c9)]],'onShapeClick':_0x345483});}function ae(){const _0x8ddc38=_0xac088e;let _0x255e45=(0x0,n[_0x8ddc38(0x46d)])(n[_0x8ddc38(0x2ea)]),_0x210742=(0x0,n[_0x8ddc38(0x46d)])(u[_0x8ddc38(0x4ba)]),_0xc1dc82=(0x0,n[_0x8ddc38(0x46d)])(o[_0x8ddc38(0x257)]),_0x2a91dd=_0x210742[_0x8ddc38(0x2f0)]()[0x0],_0x431b59=_0x2a91dd?_0xc1dc82[_0x8ddc38(0x24e)](_0x2a91dd['unitId']):void 0x0,_0x57b341=_0x431b59===o[_0x8ddc38(0x230)]['UNIVER_DOC']?te:_0x431b59===o[_0x8ddc38(0x230)][_0x8ddc38(0x367)]?_0x8ddc38(0x4f8):void 0x0,_0x3218e0=_0x57b341?_0x255e45[_0x8ddc38(0x314)](_0x57b341):void 0x0;return _0x3218e0?(0x0,f['jsx'])(_0x3218e0,{}):null;}function oe({paragraphMenuPlacement:_0x3ea645,PickerComponent:_0x224cca=ne}){const _0x443162=_0xac088e;let _0x2de72a=(0x0,n[_0x443162(0x46d)])(o[_0x443162(0x2cf)]);return(0x0,f[_0x443162(0x4de)])(_0x224cca,{'onShapeClick':_0x483a36=>{const _0xe531f8=_0x443162;_0x2de72a[_0xe531f8(0x290)](C['id'],{'paragraphMenuPlacement':_0x3ea645,'value':_0x483a36[_0xe531f8(0x348)],'enhanceParams':{'endArrow':_0x483a36[_0xe531f8(0x349)],'startArrow':_0x483a36[_0xe531f8(0x40b)],'horizontal':_0x483a36[_0xe531f8(0x4a5)],'vertical':_0x483a36[_0xe531f8(0x499)]}});}});}function se(_0x5b69e1){const _0x187d84=_0xac088e;return _0x5862fb=>({'id':C['id'],'type':n[_0x187d84(0x2e0)][_0x187d84(0x3a1)],'selections':[{'label':{'name':ee,'hoverable':!0x1,'selectable':!0x1,'props':_0x5b69e1?{'id':C['id'],'paragraphMenuPlacement':_0x5b69e1}:{'id':C['id']}}}],'icon':_0x187d84(0x408),'title':_0x187d84(0x2a8),'tooltip':_0x187d84(0x2a8),'hidden$':(0x0,n[_0x187d84(0x3c3)])(_0x5862fb,o[_0x187d84(0x230)]['UNIVER_DOC'])});}const ce=se(),le=se(_0xac088e(0x421)),ue=se(_0xac088e(0x3c0));function de(_0x1a8aac){const _0x4a6b74=_0xac088e;let _0x5b8e02=_0x1a8aac['get'](n[_0x4a6b74(0x309)]);return{'id':A['id'],'type':n['MenuItemType'][_0x4a6b74(0x3c1)],'icon':_0x4a6b74(0x2bc),'title':_0x4a6b74(0x259),'tooltip':_0x4a6b74(0x259),'activated$':(0x0,p[_0x4a6b74(0x23a)])(()=>_0x5b8e02[_0x4a6b74(0x1ea)][_0x4a6b74(0x424)]((0x0,p[_0x4a6b74(0x3a4)])(_0x5b8e02['options']),(0x0,p[_0x4a6b74(0x2a4)])(_0x17dfb5=>_0x17dfb5[_0x4a6b74(0x416)]===!0x0&&_0x17dfb5['id']===_0x4a6b74(0x369)),(0x0,p[_0x4a6b74(0x3bd)])())),'hidden$':(0x0,n['getMenuHiddenObservable'])(_0x1a8aac,o['UniverInstanceType'][_0x4a6b74(0x2ba)])};}function R(_0x43431e,_0x468cf9,_0x46eff7,_0x2ca1af,_0x27849d,_0x137a5b){const _0x1004b5=_0xac088e;let _0x1a8f79={'unitId':_0x468cf9,'shapeId':_0x2ca1af,'shapeData':_0x137a5b,'oldShapeJSON':_0x27849d};return _0x43431e[_0x1004b5(0x290)](r[_0x1004b5(0x218)]['id'],_0x1a8f79);}function fe(_0x45645f,_0x2cc0fe,_0x531b35,_0x480b3e,_0x3236c0,_0x452e02){const _0x8da599=_0xac088e;let _0x602aca={'unitId':_0x2cc0fe,'shapeId':_0x480b3e,'shapeData':_0x452e02,'oldShapeJSON':_0x3236c0};return _0x45645f[_0x8da599(0x290)](r['UpdateDocShapeDataCommand']['id'],_0x602aca);}const pe='docs-shape-ui.shape-format.quick-style-gallery',me=_0xac088e(0x310),he=_0xac088e(0x48f),ge='docs-shape-ui.shape-format.formula-ribbon-control',_e=_0xac088e(0x36b),ve=[{'value':c['TextWrappingStyle'][_0xac088e(0x255)],'label':_0xac088e(0x1fd),'icon':_0xac088e(0x46b)},{'value':c[_0xac088e(0x4d5)][_0xac088e(0x330)],'label':'docs-shape-ui.textWrap.square','icon':_0xac088e(0x266)},{'value':c[_0xac088e(0x4d5)][_0xac088e(0x4ab)],'label':_0xac088e(0x30c),'icon':_0xac088e(0x3b9)},{'value':c[_0xac088e(0x4d5)][_0xac088e(0x2a1)],'label':_0xac088e(0x2b5),'icon':_0xac088e(0x495)},{'value':c[_0xac088e(0x4d5)][_0xac088e(0x285)],'label':_0xac088e(0x46a),'icon':_0xac088e(0x3ab)}];function ye(){const _0x9a2cf4=_0xac088e;let _0x450851=(0x0,n[_0x9a2cf4(0x46d)])(o[_0x9a2cf4(0x2cf)]),_0x4d121a=(0x0,n[_0x9a2cf4(0x46d)])(u[_0x9a2cf4(0x4ba)]),_0x289352=(0x0,n['useDependency'])(r[_0x9a2cf4(0x326)]),_0x1c70f2=()=>{const _0x3c2596=_0x9a2cf4;var _0x33e528;let _0x3d7126=_0x4d121a[_0x3c2596(0x2f0)]();if(_0x3d7126['length']!==0x1||((_0x33e528=_0x3d7126[0x0])==null?void 0x0:_0x33e528[_0x3c2596(0x37c)])!==o[_0x3c2596(0x440)][_0x3c2596(0x2bf)])return null;let {unitId:_0x770cb2,subUnitId:_0x1b61c1,drawingId:_0x237ccd}=_0x3d7126[0x0],_0x21c47b=_0x289352[_0x3c2596(0x3c2)](_0x770cb2,_0x1b61c1,_0x237ccd),_0x559285=_0x289352[_0x3c2596(0x4d8)](_0x770cb2,_0x1b61c1,_0x237ccd);return _0x21c47b===void 0x0||!_0x559285?null:{'unitId':_0x770cb2,'subUnitId':_0x1b61c1,'drawingId':_0x237ccd,'shapeType':_0x21c47b,'shapeData':_0x559285};},_0xa4f10=(0x0,n[_0x9a2cf4(0x3f6)])(()=>new p[(_0x9a2cf4(0x221))](_0x6aea88=>{const _0x50c9fe=_0x9a2cf4;let _0x192af1=()=>_0x6aea88[_0x50c9fe(0x1f1)](_0x1c70f2()),_0x238a97=_0x4d121a['focus$'][_0x50c9fe(0x43a)](_0x192af1),_0x29bf3d=_0x450851[_0x50c9fe(0x25e)](_0xa1a42=>{_0xa1a42['id']===r['UpdateDocShapeDataMutation']['id']&&_0x192af1();});return _0x192af1(),()=>{const _0x2ab657=_0x50c9fe;_0x238a97[_0x2ab657(0x226)](),_0x29bf3d['dispose']();};}),_0x1c70f2(),!0x1,[_0x450851,_0x289352,_0x4d121a]);return{'selection':_0xa4f10,'updateShapeData':_0x59c1f3=>{const _0x53650c=_0x9a2cf4;_0xa4f10&&R(_0x450851,_0xa4f10[_0x53650c(0x2e6)],_0xa4f10[_0x53650c(0x390)],_0xa4f10[_0x53650c(0x270)],{'oldShapeData':_0xa4f10['shapeData']},_0x59c1f3);}};}function be(){const _0x13714e=_0xac088e;let {selection:_0x37a15e,updateShapeData:_0x2dce0a}=ye();return _0x37a15e?(0x0,f[_0x13714e(0x4de)])(e['ShapeStyleRibbonControl'],{'shapeData':_0x37a15e['shapeData'],'shapeType':_0x37a15e[_0x13714e(0x492)],'onUpdateShapeData':_0x2dce0a}):null;}function xe(){const _0x7fd899=_0xac088e;let _0x6cb3c8=(0x0,n[_0x7fd899(0x46d)])(o[_0x7fd899(0x2cf)]),_0x360fc7=(0x0,n[_0x7fd899(0x46d)])(o[_0x7fd899(0x2e2)]),{selection:_0x47533d}=ye();return _0x47533d?(0x0,f[_0x7fd899(0x4de)])(e[_0x7fd899(0x258)],{'type':(0x0,a[_0x7fd899(0x2fe)])(_0x47533d[_0x7fd899(0x485)]),'ariaLabel':_0x360fc7['t'](_0x7fd899(0x243)),'activePresetId':(0x0,a[_0x7fd899(0x4e1)])(_0x47533d[_0x7fd899(0x485)]),'onSelect':_0x29f65a=>_0x6cb3c8[_0x7fd899(0x290)](N['id'],{'presetId':_0x29f65a})}):null;}function Se(){const _0x1dc69d=_0xac088e;let {selection:_0x53da9b,updateShapeData:_0x57db94}=ye();return _0x53da9b?(0x0,f['jsx'])(e['ShapeTextRibbonControl'],{'fontFamilyPopupDataComponent':_0x1dc69d(0x414),'shapeData':_0x53da9b[_0x1dc69d(0x485)],'onUpdateShapeData':_0x57db94}):null;}function Ce(){const _0x274724=_0xac088e;var _0x921520;let {selection:_0x1e61a5,updateShapeData:_0xc6fd24}=ye(),_0x26d377=(0x0,e[_0x274724(0x304)])({'hostType':o['UniverInstanceType'][_0x274724(0x2ba)],'unitId':(_0x1e61a5==null?void 0x0:_0x1e61a5[_0x274724(0x2e6)])??'','subUnitId':(_0x1e61a5==null?void 0x0:_0x1e61a5[_0x274724(0x390)])??'','shapeId':(_0x1e61a5==null?void 0x0:_0x1e61a5[_0x274724(0x270)])??'','shapeData':_0x1e61a5==null?void 0x0:_0x1e61a5[_0x274724(0x485)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x274724(0x205),'onUpdateBinding':_0x2b72c7=>_0xc6fd24({'formulaBinding':_0x2b72c7})}),_0x404e52=((_0x921520=_0x26d377[_0x274724(0x301)])==null?void 0x0:_0x921520[_0x274724(0x36f)](_0x44b969=>_0x44b969[_0x274724(0x30a)])[_0x274724(0x399)](_0x1ddad2=>_0x1ddad2[_0x274724(0x416)]!==!0x1))??[];return _0x1e61a5!=null&&_0x1e61a5[_0x274724(0x485)][_0x274724(0x3f7)]?(0x0,f[_0x274724(0x4de)])(e[_0x274724(0x23f)],{'actions':_0x404e52,'panel':_0x26d377['panel']}):null;}function we({value:_0x21d70b}){const _0x823023=_0xac088e;let _0x254c3c=(0x0,n[_0x823023(0x46d)])(o[_0x823023(0x2e2)]),_0x24f227=ve[_0x823023(0x41f)](_0x45df89=>_0x45df89[_0x823023(0x201)]===_0x21d70b)??ve[0x0];return _0x24f227?(0x0,f['jsx'])(_0x823023(0x3ae),{'children':_0x254c3c['t'](_0x24f227['label'])}):null;}const Te=_0xac088e(0x433),Ee=_0xac088e(0x28f),De='docs-shape-ui.ribbon.shape-format.formula-control',Oe=_0xac088e(0x453),ke=_0xac088e(0x4db),Ae=_0xac088e(0x4d6),je='docs-shape-ui.ribbon.shape-format.arrange-back',Me=_0xac088e(0x1f3);function Ne(_0x5f168b){const _0xf63a65=_0xac088e;let _0x27af86=_0x5f168b[_0xf63a65(0x314)](o[_0xf63a65(0x2cf)]),_0xe87547=_0x5f168b['get'](u[_0xf63a65(0x4ba)]),_0x110452=_0x5f168b[_0xf63a65(0x314)](r[_0xf63a65(0x326)]);return new p[(_0xf63a65(0x221))](_0x31578f=>{const _0x3cd73e=_0xf63a65;let _0x381dbb=()=>{const _0x5eb185=_0xa70b;let _0x546e06=z(_0x5f168b),_0x282e39=_0x546e06?_0x110452[_0x5eb185(0x4d8)](_0x546e06[_0x5eb185(0x2e6)],_0x546e06['subUnitId'],_0x546e06['drawingId']):null;_0x31578f[_0x5eb185(0x1f1)](_0x282e39?(0x0,a[_0x5eb185(0x4e1)])(_0x282e39)??'':'');},_0x5c4fec=_0xe87547['focus$'][_0x3cd73e(0x43a)](_0x381dbb),_0x1e69d6=_0x27af86[_0x3cd73e(0x25e)](_0x3930e8=>{const _0x1b9234=_0x3cd73e;_0x3930e8['id']===r[_0x1b9234(0x28b)]['id']&&_0x381dbb();});return _0x381dbb(),()=>{const _0x306aa2=_0x3cd73e;_0x5c4fec['unsubscribe'](),_0x1e69d6[_0x306aa2(0x45f)]();};});}function z(_0x452cf1){const _0x447660=_0xac088e;var _0x440de3;let _0x4985c9=_0x452cf1[_0x447660(0x314)](u[_0x447660(0x4ba)])[_0x447660(0x2f0)]();return _0x4985c9[_0x447660(0x1ee)]===0x1&&((_0x440de3=_0x4985c9[0x0])==null?void 0x0:_0x440de3[_0x447660(0x37c)])===o[_0x447660(0x440)][_0x447660(0x2bf)]?_0x4985c9[0x0]:null;}function Pe(_0x367149){const _0x893ac4=_0xac088e;return(_0x367149==null?void 0x0:_0x367149['layoutType'])===o[_0x893ac4(0x2c1)][_0x893ac4(0x1e6)]?_0x367149[_0x893ac4(0x4c4)]===o[_0x893ac4(0x4a9)]['TRUE']?c[_0x893ac4(0x4d5)][_0x893ac4(0x2a1)]:c[_0x893ac4(0x4d5)][_0x893ac4(0x285)]:(_0x367149==null?void 0x0:_0x367149[_0x893ac4(0x39e)])===o[_0x893ac4(0x2c1)][_0x893ac4(0x330)]?c['TextWrappingStyle'][_0x893ac4(0x330)]:(_0x367149==null?void 0x0:_0x367149['layoutType'])===o[_0x893ac4(0x2c1)]['WRAP_TOP_AND_BOTTOM']?c[_0x893ac4(0x4d5)][_0x893ac4(0x4ab)]:c[_0x893ac4(0x4d5)][_0x893ac4(0x255)];}function Fe(_0x2b97c4){const _0x46053e=_0xac088e;let _0x4e5937=_0x2b97c4[_0x46053e(0x314)](o[_0x46053e(0x2cf)]),_0x4e48d4=_0x2b97c4['get'](u['IDrawingManagerService']),_0x1c6b9d=_0x2b97c4['get'](o[_0x46053e(0x257)]);return new p[(_0x46053e(0x221))](_0x1f17a5=>{let _0x25be57=()=>{const _0x229905=_0xa70b;var _0x1eaa22;let _0x1ae6fc=z(_0x2b97c4),_0x290a81=_0x1ae6fc?_0x1c6b9d['getUnit'](_0x1ae6fc[_0x229905(0x2e6)],o['UniverInstanceType'][_0x229905(0x2ba)]):void 0x0;_0x1f17a5[_0x229905(0x1f1)](Pe(_0x1ae6fc?_0x290a81==null||(_0x1eaa22=_0x290a81['getSnapshot']()[_0x229905(0x2f9)])==null?void 0x0:_0x1eaa22[_0x1ae6fc[_0x229905(0x270)]]:void 0x0));},_0x39f16e=_0x4e48d4['focus$']['subscribe'](_0x25be57),_0x58a9ee=_0x4e5937['onCommandExecuted'](_0x74693d=>{const _0x5dea14=_0xa70b;_0x74693d['id']===s[_0x5dea14(0x372)]['id']&&_0x25be57();});return _0x25be57(),()=>{const _0x33028f=_0xa70b;_0x39f16e[_0x33028f(0x226)](),_0x58a9ee[_0x33028f(0x45f)]();};})[_0x46053e(0x424)]((0x0,p['distinctUntilChanged'])());}function Ie(_0x4119d6,_0x3c7a19=!0x1){const _0x37a8c5=_0xac088e;let _0x53ed0a=_0x4119d6[_0x37a8c5(0x314)](o['ICommandService']),_0x2b5c8b=_0x4119d6[_0x37a8c5(0x314)](u['IDrawingManagerService']),_0x55c64e=_0x4119d6[_0x37a8c5(0x314)](r['DocsShapeService']);return new p[(_0x37a8c5(0x221))](_0x3d2637=>{const _0x5e8683=_0x37a8c5;let _0xb4e8ee=()=>{const _0x5a0092=_0xa70b;let _0x498a3f=z(_0x4119d6);if(!_0x498a3f){_0x3d2637[_0x5a0092(0x1f1)](!0x0);return;}let _0x195e63=_0x55c64e[_0x5a0092(0x4d8)](_0x498a3f[_0x5a0092(0x2e6)],_0x498a3f[_0x5a0092(0x390)],_0x498a3f['drawingId']);_0x3d2637[_0x5a0092(0x1f1)](!_0x195e63||_0x3c7a19&&_0x195e63['formulaBinding']==null);},_0xb4ca8f=_0x2b5c8b[_0x5e8683(0x22d)]['subscribe'](_0xb4e8ee),_0x4734e4=_0x53ed0a[_0x5e8683(0x25e)](_0x538a57=>{_0x538a57['id']===r['UpdateDocShapeDataMutation']['id']&&_0xb4e8ee();});return _0xb4e8ee(),()=>{const _0xe8f9a1=_0x5e8683;_0xb4ca8f['unsubscribe'](),_0x4734e4[_0xe8f9a1(0x45f)]();};});}function Le(_0x295bcb){const _0x583636=_0xac088e;let _0x394753=_0x295bcb[_0x583636(0x314)](u[_0x583636(0x4ba)]),_0x43a1c0=_0x295bcb[_0x583636(0x314)](r[_0x583636(0x326)]);return _0x394753[_0x583636(0x22d)][_0x583636(0x424)]((0x0,p['startWith'])(_0x394753[_0x583636(0x2f0)]()),(0x0,p[_0x583636(0x2a4)])(()=>{const _0x280635=_0x583636;let _0x2ce122=z(_0x295bcb),_0x27114f=_0x2ce122?_0x43a1c0['getShapeTypeById'](_0x2ce122[_0x280635(0x2e6)],_0x2ce122[_0x280635(0x390)],_0x2ce122[_0x280635(0x270)]):void 0x0;return _0x27114f===void 0x0||(0x0,i[_0x280635(0x471)])(_0x27114f);}));}function Re(_0x535185){const _0x14f3af=_0xac088e;return{'id':N['id'],'type':n['MenuItemType'][_0x14f3af(0x3a1)],'icon':_0x14f3af(0x262),'title':_0x14f3af(0x202),'tooltip':_0x14f3af(0x202),'selections':[{'label':{'name':pe,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ne(_0x535185),'hidden$':Ie(_0x535185)};}function ze(_0x55f0cc){const _0x3d8ea7=_0xac088e;return{'id':P['id'],'type':n['MenuItemType'][_0x3d8ea7(0x3a1)],'icon':_0x3d8ea7(0x408),'title':_0x3d8ea7(0x4f0),'tooltip':_0x3d8ea7(0x4f0),'slot':!0x0,'selections':[{'label':{'name':e[_0x3d8ea7(0x21c)],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Le(_0x55f0cc)};}function Be(_0x5ba544,_0x5001ae,_0x5bce79=!0x1){const _0x9835ab=_0xac088e;return _0x454ee4=>({'id':_0x5ba544,'type':n[_0x9835ab(0x2e0)][_0x9835ab(0x3c1)],'label':{'name':_0x5001ae,'hoverable':!0x1,'selectable':!0x1},'hidden$':Ie(_0x454ee4,_0x5bce79)});}const Ve=Be(Te,me),He=Be(Ee,he),Ue=Be(De,ge,!0x0);function _0x404d(){const _0x39b7fb=['_hyperLinkRegions','drawing-ui.objectListPanel.showAll','attachPopupToObject','getDrawingOrder','doc','MobileShapeEditorService','refreshAdjustControls','drawing-ui.objectListPanel.descriptionPlaceholder','IURLImageService','setPresentation','drawing-ui.objectListPanel.moveForward','registerClipDelegate','type','endArrow','_baseShapeTop','TOP','refreshFormulaPresentation','_ribbonService','presentationChanged$','DocShapeAnchorPosition','warn','fallbackWidth','#2563EB','sectionCanvas','TopmostIcon','getDrawingSearch','remove$','beginPath','drawing-ui.objectListPanel.unlockAll','params','contentHeight','PRINTING_COMPONENT_COLLECT','addImageSourceCache','entries','refreshTransform$','marginTop','ShapeFloatingToolbar','sin','_activeShapeInfo','splice','shape-editor-ui.arrange.front','ShapeTextFloatMenuRenderControllerBase','_drawingType','UNIVER_SHEET','docs-shape-ui.mobile.text','doc.shape.object-list.panel','MEDIA','docs-shape-ui.shape-format.wrapping-style-label','clone','offsetX','_getDependencies','flatMap','fillImageSource','_baseShapeLeft','RichTextEditingMutation','set','univer-grid\x20univer-gap-3','prstGeom','canEditDocumentTargets','3891744xiTriJ','parent','isRenderLinePointsMode','_getShapePopup','ShapeFloatingToolbarService','drawingType','getAutoFitPresentations','text','values','getSkeletonData','setFormulaPresentation','clearAdjustControls','Inject','_insertShapes','createControl$','footerId','beginInteraction','ObjectPermissionButton','getUnitId','disposeWithMe','HorizontalAlign','isRender','front','_shapeFormulaService','register','subUnitId','error','ImageSourceTypeEnum','DocumentViewModel','docs-shape-ui.formatShape','resolveShapeTextHyperLinkObject','clip-','_config','clipHeight','filter','ShapeTextFloatToolbar','_urlImageService','transform','_draw','layoutType','1394920ervNfT','drawWith','SELECTOR','DependentOn','getSelectedObjectMap','startWith','fill','resolveShapeTextBodyBehavior','getShapeModel','bindRenderTransformerLifecycle','objects','DocRenderController','DocsShapeWrapInFrontOfTextIcon','DRAWING_DOM','currentAdjustValues','span','ContextMenuGroup','add','headerId','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','isLineShape','DocDrawingTextWrap','CommandType','packageName','_getFocusedShapeAtPoint','version','DocsShapeWrapTopBottomIcon','getDrawingTypeNameKey','setCanUseShapeClip','1.2','distinctUntilChanged','custom','srcRect','target','BUTTON','getShapeTypeById','getMenuHiddenObservable','updateContext','.below','Vector2','getCurrentUnitOfType','_registerDrawingFocusChangeHandler','Line','forEach','DocumentSkeleton','getCanvasElement','canvas','animationEnabled','MobileObjectListPanel','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','activeTarget','Arrow','pageWidth','TRUE','9232dPlKTI','current','getViewports','skeTables','asObservable','top-bottom','drawing-ui.objectListPanel.hide','ShapePickerDropdown','_context','onReady','docs-shape-ui.textWrap.square','paragraphId','_shapeEditPanelVersion','disableObjectsEvent','_update','path','_hide','with','isEditing','description','_configService','title','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','MobileShapeEditorControls','height','_closeShapeEditPanel','image','setPrstGeom','jsxs','OBJECT_LIST_FLOATING_SECTION_ID','DisposableCollection','call','getSnapshot','useObservable','formulaBinding','hasDefault','some','UniverDocsShapeUIPlugin','toDisposable','flipY','ShapeTextAutoFitType','UpdateDocDrawingMetadataCommand','toPrimitive','doc.operation.open-shape-object-list-panel','_updateSrcRectByTransform','_isOpenedShapeEditPanel','getValue','style','_baseShapeHeight','adjHandleFill','RENDER_CLASS_TYPE','ShapeIcon','getLastLine','_drawSimpleText','startArrow','size','getEditing','cos','canvasElement','doc.shape.floating-toolbar','close','_initSelection','shapeModel','docs-shape-format-font-family-menu','LAYOUT','visible','drawing-ui.objectListPanel.unlockHint','VIEWPORT_KEY','intercept','order','pick','_props','resetCursor','Transform','find','DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID','below','_initEditingParams','_visible','pipe','getPresentation','setFallbackVisible','BehaviorSubject','skeDrawings','drawing-ui.objectListPanel.show','drawing-ui.objectListPanel.lock','merge','isDrawingObject','EMPTY_PARAGRAPH_MENU_ID','doc.shape.text.float-menu','MoreUpIcon','_docCanvasPopManagerService','Injector','transformForAngle','docs-shape-ui.ribbon.shape-format.style-control','transformVector2SceneCoord','DocsShapeUIMenuSchema','ShapeTypeEnum','UpdateDocDrawingWrappingStyleCommand','getDocumentPermissionValue','preValue','subscribe','drawing-ui.objectListPanel.sectionFloating','_registerDrawingTransformHandler','debounceRefreshControls','doc-shape-adjust-point-','changing$','DrawingTypeEnum','_imageIoService','wrapStrategy','setOnSavingEditorData','_contextService','1ANsIcC','_docsShapeService','registerRenderModule','resolveShapeTextEditorBehaviorShapeData','calculate','setFillImage','_getSceneByUnitId','ShapePickerPanel','drawing-ui.objectListPanel.nameInput','visible$','spaceBelowApply','_loadAndSetImage','createShapeFormulaDocument','useMemo','docs-shape-ui.ribbon.shape-format.arrange-forward','actualHeight','clearControl$','back','drawFormulaShapeAnimationLayers','ShapeDefaultConfig','currentColor','complete','3572372MRRqXx','MoveUpIcon','skeHeaders','_init','dispose','keys','univer-box-border\x20univer-px-4\x20univer-text-sm','_permissionService','buildClipPath','M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','FromArray','None','Plugin','registerCommand','docs-shape-ui.textWrap.inFrontText','DocsShapeWrapInlineIcon','_clipService','useDependency','getMatrix','useState','Circle','isConnectorShape','setConfig','GROUP','push','disableShapeOption','indexOf','resolveShapeTextDocumentPageHeight','drawing-ui.objectListPanel.lockHint','_adjName','setSrcRect','pages','extraProps','UniverDocsDrawingMobileUIPlugin','UniverDocsShapePlugin','isHorizontal','_registerImageShapeClipDelegate','function','FormatPainterSessionService','_commandService','ShapeFillEnum','shapeData','IContextService','open','delete','behind','VerticalAlign','UnitObject','prototype','useEffect','ShapeModel','docs-shape-ui.shape-format.text-ribbon-control','_initialize','BottomIcon','shapeType','connectInjector','endOffset','DocsShapeWrapBehindTextIcon','getDrawingOKey','_shapeFloatingToolbarService','enhanceParams','vertical','popup','setEditing','drawing-ui.objectListPanel.hideAll','SetDrawingSelectedOperation','drawing-ui.objectListPanel.lockAll','INSERT_BELLOW_MENU_ID','invert','getObjectIncludeInGroup','_mobileEditorService','headerLayoutKey','context-bar','horizontal','DocPrintInterceptorService','1281kZysRG','IConfigService','BooleanNumber','selectable','WRAP_TOP_AND_BOTTOM','shape-text-','getDrawingPoints','startIndex','vertical-center','width','name','getActualSize','_localeService','Fragment','Copy','doc.operation.open-doc-shape-format-panel','ShapeFormulaService','_docLayoutInteractionService','resolveShapeTextHyperLinkAt','IDrawingManagerService','shapeText','drawing-ui.objectListPanel.collapse','getRenderUnitById','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','presentation','object','CURSOR_TYPE','strokeWidth','DocSelectionRenderService','behindDoc','inline','DocCanvasPopManagerService','clearAdjustValue','5.5','options','getActiveViewportByCoord','univer-grid\x20univer-gap-5\x20univer-px-4\x20univer-py-3','scene','symbol','ArrangeTypeEnum','setAdjustValueByName','DrawingCommonPanel','IImageIoService','doc.image-clip.shape-picker.component','_drawShapeText','square','TextWrappingStyle','docs-shape-ui.ribbon.shape-format.arrange-front','setDocsCustomBlockRenderViewportProvider','getShapeDataById','_injector','doc.operation.apply-shape-quick-style','docs-shape-ui.ribbon.shape-format.arrange-backward','_lastEditingShapeKey','ShapeTextHyperLinkPopupService','jsx','isInGroup','registerDependencies','resolveActiveShapeQuickStylePresetId','_baseShapeWidth','color','hideContextualTab','menu','getParent','contentVerticalOffset','_getDisposePopups','MoveDownIcon','MenuManagerPosition','enableObjectsEvent','0.14','getShapeTextData','docs-shape-ui.openPanel','reverse','shape-editor-ui.toolbar.changeShape','makeDirty','_formulaShapes','fillImageSourceType','createInternalEditorID','UUID','getState','ancestorTransform','sheet.image-clip.shape-picker.component','docs-shape-ui.objectListPanel.title','isMainScene','stroke','none','_clearCompletionFrame','permissionPointUpdate$','_isStartAdjusting','doc.shape.picker.component','_instanceService','render','_initCommands','getPageDrawingIds','getScene','create','componentKey','133173GpzfSi','resolveShapeTextDocumentRenderLayout','@univerjs-pro/docs-shape-ui','Disposable','_menuManagerService','_docDrawingShapeRenderController','getImage','SetDocDrawingArrangeCommand','DEFAULT_DOC_SHAPE_WIDTH','decorate','_drawRichText','syncExecuteCommand','ShapeGroupEnum','fontSize','drawing','DRAWING_IMAGE','WRAP_NONE','onPointerUp$','_activeAdjustInfo','URL','sidebarOptions$','InsertDocShapeCommand','BuiltInUIPart','flipX','length','RibbonInsertGroup','getTextModel','next','ShapeArrowTypeEnum','docs-shape-ui.ribbon.shape-format.wrapping-style','IRenderManagerService','_activeShapeAdjustPointList','transformByState','setCollapsedIds','CROSSHAIR','dataModel','LEFT','update$','drawing-ui.objectListPanel.expand','docs-shape-ui.textWrap.inline','getDocumentEntityPermissionObjectId','getShapeQuickStylePreset','RemoveDocDrawingCommand','value','shape-editor-ui.toolbar.quickStyles','_measure','restore','bottom','isHit','ObjectListPanelBase','OTHERS','getDrawingEffectBounds','OPERATION','_adjHandlerPointerUp','_subUnitId','subscribeEvent','left','touchDependencies','_unitId','top','TextWrapShapeIcon','round','skeFooters','0.8','Medium','formulaPresentation','UpdateDocShapeDataCommand','_activeShapeId','isRichText','string','SHAPE_CHANGE_PICKER_COMPONENT','getAdjustInfoByName','PictureFill','_clearPopups','IMenuManagerService','Observable','OFFSET','_initMenu','shape-editor-ui.arrange.back','updateDocumentStyle','unsubscribe','_openShapeEditPanel','featurePluginUpdateNotification','trim','_registerComponents','adjHandleSize','shapeKey','focus$','UniverRenderEnginePlugin','MobileDocDrawingTextWrap','UniverInstanceType','_addShapeAdjustControl','getActiveTextRange','buildShapeTextDataUpdate','drawing-ui.objectListPanel.unlock','shouldClipShapeTextDocument','ShapeEditPanel','hideInfoPopup','top-center','_updateShape','defer','onSavingEditorData$','has','drawing-ui.objectListPanel.filterLocked','IPermissionService','ShapeFormulaRibbonControl','UniverShapeEditorPlugin','onPointerDown$','updateDocumentDataMargin','docs-shape-ui.quickStyles','docs-shape-text-','Rect','ToggleShapeFloatingToolbarOperation','getParagraphContentStartOffset','Path','prepareShapeTextDocumentData','_getActiveDrawingShape','classType','DocumentDataModel','FOCUSING_COMMON_DRAWINGS','getUnitType','_loadShapePictureFill','MobileActionRow','_activeShapeModel','DOCS_COMPONENT_MAIN_LAYER_INDEX','MobileShapePickerPanel','getAllRenderersOfType','INLINE','segmentId','IUniverInstanceService','ShapeQuickStyleGallery','docs-shape-ui.objectListPanel.open','resolveShapeTextEditorWrapStrategy','drawing-ui.objectListPanel.description','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','offsetY','onCommandExecuted','shapeId','clipTop','_getActiveDrawingParam','PaintIcon','add$','onTransformChange$','createShapeTextBoxShapeData','DocsShapeWrapSquareIcon','createShapeTextHyperLinkRegions','_disposePopupsByUnit','clipByShape','docs-shape-contextual-ribbon','drawing-ui.objectListPanel.empty','gradientEndColor','getShapeType','ShapeArrowSizeEnum','clip','drawingId','docs-shape-ui.mobile.style','1118598rahwJt','getFocusedUnit','div','onDblclick$','_drawRichTextLayer','getShapePopupMenus','_univerInstanceService','DocInterceptorService','angle','_getShapeAdjustPointListById','Shape','clear','_onSavingEditorData$','_canEdit','getAdjustValueByName','_updateAdjustControlPositions','_transformCalculateSrcRect','setContextValue','mergeMenu','IN_FRONT_OF_TEXT','_adjustPointObjects','resolveHyperLinkAt','ShapeRenderModeEnum','shape-editor-ui.arrange.forward','getSelfOrHeaderFooterModel','UpdateDocShapeDataMutation','data','startOffset','_toScenePoint','docs-shape-ui.ribbon.shape-format.text-control','executeCommand','ShapeFormatSettingIcon','_editingParams$','_docPrintInterceptorService','_registerIcons','_formulaKey','getShapeData','200fltycV','_formulaAnimation','oKey','changeStart$','_updateShapeAdjustControls','sectionFloating','_clearShapeAdjustControls','DRAWING_OBJECT_LAYER_INDEX','_adjHandlerPointerMove','memo','BEHIND_TEXT','_toVisualAdjustPoint','changeEnd$','map','_shapeTextEditingService','_canEditShape','_renderManagerService','docs-shape-ui.insertShape','docs-shape-ui.deleteShape','getDrawingDataForUnit','DocumentEntity','setCursor','draw','docs-shape-ui.hidePanel','_isShouldShowDrawingShapeAdjust','localeService','resize','MoreDownIcon','showContextualTab','applyPoint','docs-shape-ui.textWrap.behindText','getDocumentDrawingSegmentId','getDocumentEntityParentPermissionObjectIds','renderDrawingShape','ShapeTextHyperLinkInfo','UNIVER_DOC','_popupMenuListener','ObjectLayersIcon','onPointerMove$','autoFitType','DRAWING_SHAPE','DOCS_SHAPE_UI_PLUGIN','PositionedObjectLayoutType','toStringTag','_transform','_registerOperations','_completionFrame','_createShapeAdjustControls','focusDrawing','_renderWithCache','COMMAND','refreshShapeFillImage','composeMatrix','getUnit','setShapeData','Module','ICommandService','useReducer','_sidebarDisposable','getObjectListPanelSectionIdForDrawingType','drawing-ui.objectListPanel.close','_endLayoutInteraction','Documents','_initPrinting','calcAdjValues','moveRange','798fcYReV','scale','DocSelectionManagerService','getDrawingVisible','_iconManager','FloatingObjectToolbarPosition','getTransformerByCreate','MenuItemType','animateFormulaPresentation','LocaleService','drawing-ui.objectListPanel.dragToReorder','hidden','_layoutInteraction','unitId','defineProperty','getShapeTextRect','isolated','ComponentManager','onStarting','forward','getDrawingShapeKeyByDrawingSearch','resolveFormulaShapeAutoFitSize','PARAGRAPH','getFocusDrawings','_sidebarService','registerShapeFormatPainter','_shapeId','IconManager','backward','_getShapeInfo','editingParams$','getInverseCoord','drawings','getCurrentTypeOfUnit$','_handleCreateControl','_componentManager','getOwnPropertyDescriptor','getShapeQuickStyleType','0\x200\x2020\x2020','SpAutoFit','extensionGroups','addObject','onerror','useFormulaShapeToolbar','translateWithPrecision','stopPropagation','svg','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','ISidebarService','actions','save','docs-shape-ui.textWrap.topAndBottom','_getRenderModules','registerComponent','UniverDocsShapeMobileUIPlugin','docs-shape-ui.shape-format.style-ribbon-control','UniverShapeEditorMobileUIPlugin','SetDocumentPermissionCommand','canDispose','get','clearActiveDrawingObjects','UniverDocsPlugin','drawing-ui.objectListPanel.moveBackward','completeEditing','_applyFormulaAutoFitSize','_popupTargetKeys','doc.shape.edit.panel','menuRange','_initUIPart','IDocDrawingService','_drawingManagerService','presetId','1em','docs-shape-ui.crop.shape','unregister','UniverDrawingUIPlugin','normalizeShapeTextModel','DocsShapeService','max','IUIPartsService','footerLayoutKey','getVisible','_attachAdjustEvent','rect','interceptor','ShapeTextHyperLinkHoverController','_shapeRenderController','WRAP_SQUARE','getDrawingByParam','adjName','setShapeProps','SolidFill','default','drawing-ui.objectListPanel.noSelection','drawing-ui.objectListPanel.filterHidden','drawing-ui.objectListPanel.locate','IRibbonService','activateDrawingObject','fillType'];_0x404d=function(){return _0x39b7fb;};return _0x404d();}function We(_0x43218d){const _0xecd617=_0xac088e;return{'id':Me,'type':n[_0xecd617(0x2e0)][_0xecd617(0x3a1)],'icon':ve[0x0]['icon'],'label':_e,'selectionsCommandId':c[_0xecd617(0x437)]['id'],'selections':ve[_0xecd617(0x2a4)](({icon:_0x4fbf9b,label:_0x518049,value:_0x32a026})=>({'value':_0x32a026,'label':_0x518049,'icon':_0x4fbf9b,'params':()=>{const _0x1c3d0a=_0xecd617;let _0x4df502=z(_0x43218d);return _0x4df502?{'unitId':_0x4df502['unitId'],'subUnitId':_0x4df502[_0x1c3d0a(0x390)],'drawings':[{'unitId':_0x4df502[_0x1c3d0a(0x2e6)],'subUnitId':_0x4df502[_0x1c3d0a(0x390)],'drawingId':_0x4df502[_0x1c3d0a(0x270)]}],'wrappingStyle':_0x32a026}:void 0x0;}})),'value$':Fe(_0x43218d),'hidden$':Ie(_0x43218d)};}function Ge(_0x62cbf1,_0x99d0c9,_0x5d33e5,_0x1d02d0){const _0x119c5c=_0xac088e;return _0x2bd621=>({'id':_0x62cbf1,'commandId':c[_0x119c5c(0x1dd)]['id'],'type':n[_0x119c5c(0x2e0)][_0x119c5c(0x3c1)],'icon':_0x5d33e5,'title':_0x1d02d0,'tooltip':_0x1d02d0,'hidden$':Ie(_0x2bd621),'params':()=>{const _0x482541=_0x119c5c;let _0x1a83ed=z(_0x2bd621);return _0x1a83ed?{'unitId':_0x1a83ed[_0x482541(0x2e6)],'subUnitId':_0x1a83ed[_0x482541(0x390)],'drawingIds':[_0x1a83ed[_0x482541(0x270)]],'arrangeType':_0x99d0c9}:void 0x0;}});}const Ke=Ge(Oe,o[_0xac088e(0x4ce)][_0xac088e(0x2ec)],_0xac088e(0x45c),_0xac088e(0x289)),qe=Ge(ke,o[_0xac088e(0x4ce)][_0xac088e(0x2f5)],_0xac088e(0x4e9),'shape-editor-ui.arrange.backward'),Je=Ge(Ae,o['ArrangeTypeEnum'][_0xac088e(0x38d)],'TopmostIcon',_0xac088e(0x364)),Ye=Ge(je,o[_0xac088e(0x4ce)][_0xac088e(0x456)],'BottomIcon',_0xac088e(0x224));function Xe(_0x4c2498){const _0x52487f=_0xac088e;let _0xedc175=_0x4c2498[_0x52487f(0x314)](n[_0x52487f(0x309)]);return{'activated$':(0x0,p[_0x52487f(0x23a)])(()=>_0xedc175[_0x52487f(0x1ea)]['pipe']((0x0,p[_0x52487f(0x3a4)])(_0xedc175[_0x52487f(0x4c9)]),(0x0,p['map'])(_0x5a6489=>_0x5a6489[_0x52487f(0x416)]===!0x0&&_0x5a6489['id']==='doc.shape.edit.panel'),(0x0,p['distinctUntilChanged'])())),'id':j['id'],'type':n[_0x52487f(0x2e0)][_0x52487f(0x3c1)],'icon':'ShapeFormatSettingIcon','title':'docs-shape-ui.formatShape','tooltip':_0x52487f(0x394),'hidden$':Ie(_0x4c2498),'params':()=>{const _0x5ea06f=_0x52487f;let _0x40200b=z(_0x4c2498);return _0x40200b?{'unitId':_0x40200b[_0x5ea06f(0x2e6)],'subUnitId':_0x40200b[_0x5ea06f(0x390)],'drawingId':_0x40200b[_0x5ea06f(0x270)]}:void 0x0;}};}const Ze={[n[_0xac088e(0x4ea)]['RIBBON']]:{[T]:{'order':0x64,'title':_0xac088e(0x394),'contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[N['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Re},[P['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ze}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[Te]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ve}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[Ee]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':He}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[Me]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':We},[Oe]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Ke},[ke]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':qe},[Ae]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':Je},[je]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':Ye}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[De]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Ue}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[j['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Xe},[e[_0xac088e(0x246)]['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':e['ShapeFloatingToolbarToggleFactory']}}}}},Qe={[n['RibbonInsertGroup'][_0xac088e(0x36a)]]:{[C['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x5ce1aa=>({...ce(_0x5ce1aa),'title':void 0x0})}},[n[_0xac088e(0x1ef)][_0xac088e(0x208)]]:{[A['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':de}},[n['ContextMenuPosition'][_0xac088e(0x2ef)]]:{[n[_0xac088e(0x3af)][_0xac088e(0x415)]]:{[t[_0xac088e(0x49f)]]:{[C['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':le}}},[t['DOC_CONTENT_INSERT_MENU_ID']]:{[n[_0xac088e(0x3af)][_0xac088e(0x415)]]:{[C['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':le}}},[t[_0xac088e(0x42d)]]:{[n[_0xac088e(0x3af)]['LAYOUT']]:{[C['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':ue}}},[t['DOC_PARAGRAPH_T_INSERT_MENU_ID']]:{'insert':{[C['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':ce}}},[t[_0xac088e(0x420)]]:{'insert':{[C['id']+_0xac088e(0x3c5)]:{'replace':!0x0,'order':0x2,'menuItemFactory':le}}}}};var $e=_0xac088e(0x1d8),et='1.5.0';const B={'type':o[_0xac088e(0x3b5)][_0xac088e(0x20a)],'id':'doc.operation.close-doc-shape-format-panel','handler'(){return!0x0;}},tt='docs-shape-ui.config',nt={};function V(_0x395b68){'@babel/helpers - typeof';const _0x351d87=_0xac088e;return V=typeof Symbol==_0x351d87(0x481)&&typeof Symbol['iterator']=='symbol'?function(_0x161f60){return typeof _0x161f60;}:function(_0x133ae5){const _0x4013d1=_0x351d87;return _0x133ae5&&typeof Symbol==_0x4013d1(0x481)&&_0x133ae5['constructor']===Symbol&&_0x133ae5!==Symbol[_0x4013d1(0x48c)]?_0x4013d1(0x4cd):typeof _0x133ae5;},V(_0x395b68);}function rt(_0xe8273f,_0x36b498){const _0x527f31=_0xac088e;if(V(_0xe8273f)!=_0x527f31(0x4c0)||!_0xe8273f)return _0xe8273f;var _0x55266f;if(typeof Symbol<'u'&&(_0x55266f=_0xe8273f[Symbol[_0x527f31(0x3ff)]])!==void 0x0){var _0xa48730=_0x55266f[_0x527f31(0x3f4)](_0xe8273f,_0x36b498||_0x527f31(0x335));if(V(_0xa48730)!='object')return _0xa48730;throw TypeError(_0x527f31(0x465));}return(_0x36b498===_0x527f31(0x21b)?String:Number)(_0xe8273f);}function it(_0x5985e0){const _0x42004b=_0xac088e;var _0x5b79e4=rt(_0x5985e0,_0x42004b(0x21b));return V(_0x5b79e4)==_0x42004b(0x4cd)?_0x5b79e4:_0x5b79e4+'';}function H(_0xfdb017,_0x22d10b,_0x3d3b08){const _0x592792=_0xac088e;return(_0x22d10b=it(_0x22d10b))in _0xfdb017?Object[_0x592792(0x2e7)](_0xfdb017,_0x22d10b,{'value':_0x3d3b08,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xfdb017[_0x22d10b]=_0x3d3b08,_0xfdb017;}var at=class extends l[_0xac088e(0x27c)]{constructor(_0x284b6b,_0x20c409){const _0x411884=_0xac088e;super(_0x284b6b,_0x20c409),H(this,_0x411884(0x2f3),null),H(this,'_adjName',null),H(this,'_unitId',null),H(this,'_subUnitId',null),_0x20c409&&this[_0x411884(0x333)](_0x20c409);}[_0xac088e(0x355)](){const _0x376ef0=_0xac088e;return{'unitId':this[_0x376ef0(0x210)],'subUnitId':this[_0x376ef0(0x20c)],'drawingId':this[_0x376ef0(0x2f3)]};}[_0xac088e(0x333)](_0x594375){const _0x4a2e1f=_0xac088e;_0x594375[_0x4a2e1f(0x25f)]!==void 0x0&&(this['_shapeId']=_0x594375['shapeId']),_0x594375[_0x4a2e1f(0x332)]!==void 0x0&&(this[_0x4a2e1f(0x479)]=_0x594375[_0x4a2e1f(0x332)]),_0x594375[_0x4a2e1f(0x2e6)]!==void 0x0&&(this['_unitId']=_0x594375[_0x4a2e1f(0x2e6)]),_0x594375[_0x4a2e1f(0x390)]!==void 0x0&&(this[_0x4a2e1f(0x20c)]=_0x594375[_0x4a2e1f(0x390)]),this[_0x4a2e1f(0x1f6)]({'width':_0x594375['width'],'height':_0x594375[_0x4a2e1f(0x3ed)]});}['_draw'](_0x4df6dc){const _0x2068a7=_0xac088e;l[_0x2068a7(0x470)][_0x2068a7(0x3a0)](_0x4df6dc,{'radius':i[_0x2068a7(0x458)][_0x2068a7(0x22b)],'fill':i[_0x2068a7(0x458)][_0x2068a7(0x406)],'stroke':i[_0x2068a7(0x458)]['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function ot(_0x5a23db,_0x52a1dc,_0x240944){const _0x4c64b0=_0xac088e;let _0x516367={..._0x52a1dc,'dataModel':{..._0x52a1dc[_0x4c64b0(0x1f9)]??{},..._0x240944?{'doc':_0x240944}:null}},_0x53ffe5=(0x0,e[_0x4c64b0(0x448)])(_0x5a23db,_0x516367),_0x2f7be5=(0x0,e[_0x4c64b0(0x25a)])(_0x53ffe5);return{'clip':(0x0,e[_0x4c64b0(0x235)])(_0x53ffe5,_0x2f7be5),'wrapStrategy':_0x2f7be5};}var U=class extends l[_0xac088e(0x27c)]{constructor(_0x3376af,_0x2c382a){const _0x41a75e=_0xac088e;super(_0x3376af,_0x2c382a),H(this,'_hyperLinkRegions',[]),H(this,_0x41a75e(0x41c),void 0x0),H(this,_0x41a75e(0x298),new e['FormulaShapeAnimationController'](()=>this[_0x41a75e(0x4f1)](!0x0),()=>this[_0x41a75e(0x319)]())),H(this,'_transformCalculateSrcRect',!0x0),H(this,_0x41a75e(0x366),o['DrawingTypeEnum']['DRAWING_SHAPE']),H(this,_0x41a75e(0x42c),!0x0),this[_0x41a75e(0x41c)]={..._0x2c382a},this['_formulaAnimation']['setPresentation'](_0x2c382a['formulaPresentation'],_0x2c382a[_0x41a75e(0x2e1)]!==!0x1),this['_init'](),this['_applyFormulaAutoFitSize']();}[_0xac088e(0x45e)](){const _0x365921=_0xac088e;this[_0x365921(0x264)][_0x365921(0x20d)](_0x4bb056=>{const _0x29f126=_0x365921;this[_0x29f126(0x401)](_0x4bb056);});}[_0xac088e(0x3f0)](_0x2e6f64){const _0x23dba3=_0xac088e;this[_0x23dba3(0x41c)][_0x23dba3(0x375)]=_0x2e6f64;}[_0xac088e(0x287)](_0x396b4e){const _0x53cf3e=_0xac088e;if(this[_0x53cf3e(0x41c)][_0x53cf3e(0x3e7)])return null;let _0x3e6aed=this[_0x53cf3e(0x2f8)](_0x396b4e),{width:_0x310701,height:_0x7fabab}=this['getRealBound']();return(0x0,e[_0x53cf3e(0x4b9)])(this['_hyperLinkRegions'],{'x':(this[_0x53cf3e(0x1ed)]?-_0x3e6aed['x']:_0x3e6aed['x'])+_0x310701/0x2,'y':_0x3e6aed['y']+_0x7fabab/0x2});}['setEditing'](_0x56f145){const _0x5a9e30=_0xac088e;this[_0x5a9e30(0x41c)][_0x5a9e30(0x3e7)]=_0x56f145,this[_0x5a9e30(0x4f1)](!0x0);}[_0xac088e(0x381)](_0x34fbfc,_0x330fdd=!0x0){const _0x4ec93d=_0xac088e;this[_0x4ec93d(0x298)][_0x4ec93d(0x345)](_0x34fbfc,_0x330fdd),this[_0x4ec93d(0x41c)][_0x4ec93d(0x217)]=_0x34fbfc,this[_0x4ec93d(0x319)](),this[_0x4ec93d(0x4f1)](!0x0);}[_0xac088e(0x319)](){const _0x4a954a=_0xac088e;let _0x4bd367=this[_0x4a954a(0x41c)][_0x4a954a(0x413)],_0x165e99=_0x4bd367[_0x4a954a(0x4ed)](),_0x5e459b=(0x0,e['normalizeShapeTextModel'])(_0x165e99==null?void 0x0:_0x165e99[_0x4a954a(0x1f9)]),_0x7041cb=_0x5e459b==null?void 0x0:_0x5e459b[_0x4a954a(0x340)],_0x4cbe95=this[_0x4a954a(0x298)][_0x4a954a(0x37d)]();if(!_0x7041cb||_0x4cbe95['length']===0x0)return;_0x4bd367[_0x4a954a(0x3c4)]({'width':this[_0x4a954a(0x4b0)],'height':this[_0x4a954a(0x3ed)]});let _0x56b38b=(0x0,e[_0x4a954a(0x2ee)])({'documentData':_0x4cbe95[_0x4a954a(0x2a4)](_0x30ca20=>(0x0,a[_0x4a954a(0x451)])(_0x7041cb,_0x30ca20)),'height':this[_0x4a954a(0x3ed)],'shapeData':_0x4bd367[_0x4a954a(0x296)](),'textRect':_0x4bd367[_0x4a954a(0x2e8)]({'left':0x0,'top':0x0,'width':this[_0x4a954a(0x4b0)],'height':this['height']}),'width':this[_0x4a954a(0x4b0)]});if(_0x56b38b){var _0x3432c9;this['resize'](_0x56b38b[_0x4a954a(0x4b0)],_0x56b38b[_0x4a954a(0x3ed)]),(_0x3432c9=this[_0x4a954a(0x505)]())==null||(_0x3432c9=_0x3432c9['getTransformer']())==null||_0x3432c9[_0x4a954a(0x43d)]();}}get[_0xac088e(0x2e6)](){const _0x498d7c=_0xac088e;return this[_0x498d7c(0x41c)][_0x498d7c(0x2e6)];}get[_0xac088e(0x390)](){const _0x4fc74f=_0xac088e;return this[_0x4fc74f(0x41c)][_0x4fc74f(0x390)];}['_updateSrcRectByTransform'](_0xff7ac0){const _0xf4c2c4=_0xac088e;if(this['_props']['srcRect']==null||!this[_0xf4c2c4(0x282)])return;let {width:_0x48fbb3,height:_0x57aaa2}=this,{width:_0x16503c=0x0,height:_0x1be709=0x0}=_0xff7ac0[_0xf4c2c4(0x439)],{left:_0x54f2ed=0x0,top:_0xbaa83e=0x0,right:_0x303d84=0x0,bottom:_0x247625=0x0}=this[_0xf4c2c4(0x41c)]['srcRect'],_0x5d14f9=_0x54f2ed,_0x77d7a0=_0xbaa83e,_0x34762f=_0x303d84,_0x4b53f2=_0x247625,_0x247cab=!0x1;if(_0x16503c!==0x0&&_0x16503c!==_0x48fbb3){let _0x3851ba=_0x54f2ed/_0x16503c,_0x1b2dc1=_0x303d84/_0x16503c;_0x5d14f9=_0x48fbb3*_0x3851ba,_0x34762f=_0x48fbb3*_0x1b2dc1,_0x247cab=!0x0;}if(_0x1be709!==0x0&&_0x1be709!==_0x57aaa2){let _0x534f9d=_0xbaa83e/_0x1be709,_0x5115c2=_0x247625/_0x1be709;_0x77d7a0=_0x57aaa2*_0x534f9d,_0x4b53f2=_0x57aaa2*_0x5115c2,_0x247cab=!0x0;}_0x247cab&&this[_0xf4c2c4(0x47a)]({'left':_0x5d14f9,'top':_0x77d7a0,'right':_0x34762f,'bottom':_0x4b53f2});}[_0xac088e(0x47a)](_0x49bcab){const _0x38cb70=_0xac088e;this[_0x38cb70(0x41c)][_0x38cb70(0x3bf)]=_0x49bcab,this['makeDirty'](!0x0);}[_0xac088e(0x44a)](_0x48f9aa){const _0x180905=_0xac088e;this[_0x180905(0x41c)][_0x180905(0x3ef)]=_0x48f9aa,this[_0x180905(0x4f1)](!0x0);}set[_0xac088e(0x39c)](_0x6d8dec){this['_transform']=_0x6d8dec;}get['transform'](){const _0x34ab52=_0xac088e;this[_0x34ab52(0x2c3)]||this['_setTransForm']();let _0x2d7bce=this[_0x34ab52(0x2c3)][_0x34ab52(0x36c)]();return this[_0x34ab52(0x432)](_0x2d7bce);}get[_0xac088e(0x413)](){const _0x2ffbee=_0xac088e;return this['_props'][_0x2ffbee(0x413)];}get[_0xac088e(0x25f)](){const _0x3e12c8=_0xac088e;return this[_0x3e12c8(0x41c)]['shapeId'];}get['classType'](){const _0x5d6b22=_0xac088e;return l[_0x5d6b22(0x407)]['SHAPE'];}['_draw'](_0x53cd73,_0x2b2ff3,_0x3ca2d8,_0x59628b){const _0x4b23a5=_0xac088e;let _0x4d2e3e=this[_0x4b23a5(0x41c)][_0x4b23a5(0x413)];if(!_0x4d2e3e||!_0x2b2ff3)return;let _0x2c1aa1=_0x3ca2d8??this[_0x4b23a5(0x4b0)],_0x5ab652=_0x59628b??this['height'],_0x4fcace={'shapeType':_0x4d2e3e[_0x4b23a5(0x26d)](),'width':_0x2c1aa1,'height':_0x5ab652},_0x13e6aa={'renderMode':i[_0x4b23a5(0x288)][_0x4b23a5(0x248)],'oKey':this[_0x4b23a5(0x299)],'image':this[_0x4b23a5(0x41c)][_0x4b23a5(0x3ef)],'angle':this[_0x4b23a5(0x27a)]};_0x4d2e3e[_0x4b23a5(0x3c4)](_0x4fcace),_0x53cd73[_0x4b23a5(0x30b)]();let _0x55c5dd={'top':0x0,'left':0x0,'width':_0x2c1aa1,'height':_0x5ab652},_0x32d003=_0x4d2e3e[_0x4b23a5(0x209)](_0x55c5dd);_0x32d003?this[_0x4b23a5(0x2c8)](_0x53cd73,_0x32d003,_0x1dec9b=>{_0x4d2e3e['render'](_0x1dec9b,_0x55c5dd,_0x13e6aa);}):(this['_releaseRenderCache'](),_0x4d2e3e[_0x4b23a5(0x502)](_0x53cd73,_0x55c5dd,_0x13e6aa)),_0x53cd73['restore']();let _0x2bd740=_0x4d2e3e[_0x4b23a5(0x4ed)](),_0x3e2b10=_0x4d2e3e[_0x4b23a5(0x2e8)](_0x55c5dd),_0x539c3c=_0x4d2e3e['isLineShape']();if(_0x2bd740&&_0x3e2b10&&!_0x539c3c){_0x53cd73[_0x4b23a5(0x30b)](),this[_0x4b23a5(0x4f6)]()[_0x4b23a5(0x1ed)]&&_0x53cd73[_0x4b23a5(0x2da)](-0x1,0x1);let _0x29f5f9=_0x2c1aa1/0x2,_0x563090=_0x5ab652/0x2;_0x53cd73['translate'](-_0x29f5f9,-_0x563090),_0x53cd73[_0x4b23a5(0x357)](),this['_drawShapeText'](_0x53cd73,_0x2bd740,_0x3e2b10),_0x53cd73[_0x4b23a5(0x204)]();}}['getDrawingPoints'](_0x2db342){}[_0xac088e(0x4d3)](_0x53cc2e,_0x1ead0c,_0x4da217){const _0xcb5ab7=_0xac088e;var _0x3001ec;this[_0xcb5ab7(0x33c)]=[],this[_0xcb5ab7(0x41c)]['isEditing']||(!((_0x3001ec=_0x1ead0c['dataModel'])!=null&&_0x3001ec[_0xcb5ab7(0x340)])&&_0xcb5ab7(0x21a)in _0x1ead0c&&_0x1ead0c[_0xcb5ab7(0x21a)]===!0x1?this['_drawSimpleText'](_0x53cc2e,_0x1ead0c,_0x4da217):this[_0xcb5ab7(0x1e0)](_0x53cc2e,_0x1ead0c,_0x4da217));}[_0xac088e(0x40a)](_0x9ea244,_0x3907c5,_0x78f9d6){const _0x5c0d33=_0xac088e;this['_drawRichText'](_0x9ea244,{..._0x3907c5,'text':_0x3907c5['text']??'','dataModel':{'doc':(0x0,e['plainShapeTextToDocumentData'])(_0x3907c5,_0x5c0d33(0x244)+this['oKey'])}},_0x78f9d6);}[_0xac088e(0x1e0)](_0x784de1,_0x1f1e2c,_0x12c083){const _0x1b2f2b=_0xac088e;(0x0,e[_0x1b2f2b(0x457)])(_0x784de1,this[_0x1b2f2b(0x298)],(_0x1cc39c,_0xa84490,_0x1b67c6)=>{const _0x2a3e37=_0x1b2f2b;this[_0x2a3e37(0x276)](_0x1cc39c,_0x1f1e2c,_0x12c083,_0xa84490,_0x1b67c6===_0x2a3e37(0x3d6));});}[_0xac088e(0x276)](_0x23662c,_0x5640c7,_0x207fc8,_0x347b7a,_0x9c6217){const _0x361f8a=_0xac088e;let _0x563cd0=this[_0x361f8a(0x41c)][_0x361f8a(0x2b0)];if(!_0x5640c7[_0x361f8a(0x1f9)]||!_0x563cd0){_0x563cd0||console[_0x361f8a(0x350)](_0x361f8a(0x3eb));return;}let _0x4c44fa=(0x0,e['normalizeShapeTextModel'])(_0x5640c7[_0x361f8a(0x1f9)]);if(!_0x4c44fa)return;let _0x644544=_0x4c44fa[_0x361f8a(0x340)];if(!_0x644544)return;let _0x11c3fd=(0x0,a['createShapeFormulaDocument'])(_0x644544,_0x347b7a),_0x1b14ee=_0x4c44fa['va']??o[_0x361f8a(0x48a)][_0x361f8a(0x34b)],_0x575639=_0x4c44fa['ha']??o[_0x361f8a(0x38b)][_0x361f8a(0x1fa)],_0x1cd51a=ot(this['_props'][_0x361f8a(0x413)][_0x361f8a(0x296)](),_0x5640c7,_0x11c3fd),_0x6b3551=_0x5640c7[_0x361f8a(0x47f)],_0x35cee4=(0x0,e['prepareShapeTextDocumentData'])(_0x11c3fd,{'isHorizontal':_0x6b3551!==!0x1,'textRect':_0x207fc8,'verticalAlign':_0x1b14ee,'horizontalAlign':_0x575639,'wrapStrategy':_0x1cd51a[_0x361f8a(0x442)]}),_0x24aef5=new o[(_0x361f8a(0x24c))](_0x35cee4),_0x24b336=new l['DocumentViewModel'](_0x24aef5),_0x5428dd=l[_0x361f8a(0x3cb)][_0x361f8a(0x506)](_0x24b336,_0x563cd0);_0x5428dd[_0x361f8a(0x449)]();let _0x32473e=_0x5428dd['getActualSize']()['actualHeight'],_0x167c61=(0x0,e[_0x361f8a(0x1d7)])({'contentHeight':_0x32473e,'verticalAlign':_0x1b14ee,'viewportHeight':_0x207fc8[_0x361f8a(0x3ed)]});_0x24aef5[_0x361f8a(0x225)]({'pageSize':{'width':_0x6b3551===!0x1?_0x207fc8[_0x361f8a(0x3ed)]:_0x207fc8[_0x361f8a(0x4b0)],'height':(0x0,e[_0x361f8a(0x477)])(_0x11c3fd,_0x167c61['contentHeight'])}}),_0x24aef5[_0x361f8a(0x242)]({'t':_0x167c61[_0x361f8a(0x35f)]}),_0x5428dd[_0x361f8a(0x449)]();let _0x90466a=new l[(_0x361f8a(0x2d5))](_0x361f8a(0x4ac)+this['oKey'],_0x5428dd,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x361f8a(0x4f1)](!0x0)});_0x90466a[_0x361f8a(0x2b1)](_0x207fc8[_0x361f8a(0x4b0)],_0x167c61[_0x361f8a(0x35a)]),_0x23662c[_0x361f8a(0x30b)](),_0x23662c[_0x361f8a(0x305)](_0x207fc8[_0x361f8a(0x20e)],_0x207fc8[_0x361f8a(0x211)]),_0x1cd51a[_0x361f8a(0x26f)]&&(_0x23662c['beginPath'](),_0x23662c[_0x361f8a(0x32c)](0x0,_0x167c61['clipTop'],_0x207fc8[_0x361f8a(0x4b0)],_0x167c61[_0x361f8a(0x398)]),_0x23662c['clip']()),_0x167c61[_0x361f8a(0x4e7)]&&_0x23662c['translateWithPrecision'](0x0,_0x167c61['contentVerticalOffset']),_0x90466a[_0x361f8a(0x2ad)](_0x23662c),_0x9c6217&&(this['_hyperLinkRegions']=(0x0,e[_0x361f8a(0x267)])(_0x90466a,{'left':_0x207fc8[_0x361f8a(0x20e)],'top':_0x207fc8[_0x361f8a(0x211)]+_0x167c61['contentVerticalOffset']},_0x1cd51a[_0x361f8a(0x26f)]?{'left':_0x207fc8['left'],'right':_0x207fc8[_0x361f8a(0x20e)]+_0x207fc8[_0x361f8a(0x4b0)],'top':_0x207fc8[_0x361f8a(0x211)]+_0x167c61[_0x361f8a(0x260)],'bottom':_0x207fc8[_0x361f8a(0x211)]+_0x167c61[_0x361f8a(0x260)]+_0x167c61[_0x361f8a(0x398)]}:void 0x0)),_0x23662c[_0x361f8a(0x204)](),_0x90466a['dispose'](),_0x5428dd[_0x361f8a(0x45f)](),_0x24b336[_0x361f8a(0x45f)](),_0x24aef5[_0x361f8a(0x45f)]();}[_0xac088e(0x502)](_0x58534f,_0x36821c,_0x49a628=!0x1){const _0x5bb9da=_0xac088e;if(!this[_0x5bb9da(0x416)])return this[_0x5bb9da(0x4f1)](!0x1),this;let {width:_0x1609e0,height:_0x29adfc,left:_0x850d02,top:_0x481561}=this,_0x2b3cf4=this['getRealBound']();if(_0x1609e0=_0x2b3cf4[_0x5bb9da(0x4b0)],_0x29adfc=_0x2b3cf4[_0x5bb9da(0x3ed)],_0x850d02=_0x2b3cf4[_0x5bb9da(0x20e)],_0x481561=_0x2b3cf4[_0x5bb9da(0x211)],this[_0x5bb9da(0x38c)](_0x36821c)){let {top:_0x54feba,left:_0x26e1f8,bottom:_0x396030,right:_0x34b2aa}=_0x36821c['viewBound'];if(_0x1609e0+this[_0x5bb9da(0x4c2)]+_0x850d02<_0x26e1f8||_0x34b2aa<_0x850d02||_0x29adfc+this[_0x5bb9da(0x4c2)]+_0x481561<_0x54feba||_0x396030<_0x481561)return this;}let _0x55a44f=_0x850d02+_0x1609e0/0x2,_0x17824d=_0x481561+_0x29adfc/0x2,_0x501333=this[_0x5bb9da(0x39c)]['getMatrix']();if(this[_0x5bb9da(0x41c)][_0x5bb9da(0x3e7)]){let _0x5c1b34=this[_0x5bb9da(0x4f6)](),_0x37e5b5=new l[(_0x5bb9da(0x41e))]();_0x37e5b5[_0x5bb9da(0x2cb)]({..._0x5c1b34}),_0x501333=_0x37e5b5[_0x5bb9da(0x46e)]();}return _0x58534f[_0x5bb9da(0x30b)](),this['_props']['shapeModel'][_0x5bb9da(0x379)]===!0x0||_0x58534f[_0x5bb9da(0x39c)](_0x501333[0x0],_0x501333[0x1],_0x501333[0x2],_0x501333[0x3],_0x55a44f,_0x17824d),this[_0x5bb9da(0x39d)](_0x58534f,_0x36821c,_0x1609e0,_0x29adfc),_0x58534f[_0x5bb9da(0x204)](),this[_0x5bb9da(0x4f1)](!0x1),this;}[_0xac088e(0x2f8)](_0xff9e6e){const _0x1925c9=_0xac088e;let {left:_0x219c9e,top:_0x282e55,width:_0x83eb23,height:_0x29083b}=this['getRealBound'](),_0x5454b4=this[_0x1925c9(0x39c)]['getMatrix'](),_0x273683=_0x219c9e+_0x83eb23/0x2,_0x2889b6=_0x282e55+_0x29083b/0x2,_0x27bc17=new l[(_0x1925c9(0x41e))]([_0x5454b4[0x0],_0x5454b4[0x1],_0x5454b4[0x2],_0x5454b4[0x3],_0x273683,_0x2889b6]),_0x226ac7=this[_0x1925c9(0x4e6)]();return(this[_0x1925c9(0x4df)]&&(_0x226ac7==null?void 0x0:_0x226ac7[_0x1925c9(0x24b)])===l['RENDER_CLASS_TYPE']['GROUP']?_0x226ac7[_0x1925c9(0x4f7)]['multiply'](_0x27bc17):_0x27bc17)['invert']()[_0x1925c9(0x2b4)](_0xff9e6e);}[_0xac088e(0x206)](_0x525d30){const _0x532a65=_0xac088e;let {left:_0x3555ff,top:_0xd6ad30,width:_0x103165,height:_0x275f8b}=this['getRealBound'](),_0x1fac89=_0x3555ff+_0x103165/0x2,_0x57f652=_0xd6ad30+_0x275f8b/0x2,_0x3610ae=this[_0x532a65(0x39c)][_0x532a65(0x46e)](),_0x168ca3=new l[(_0x532a65(0x41e))]([_0x3610ae[0x0],_0x3610ae[0x1],_0x3610ae[0x2],_0x3610ae[0x3],_0x1fac89,_0x57f652]),_0x506ffa=this[_0x532a65(0x4e6)](),_0x106d2b=(this['isInGroup']&&(_0x506ffa==null?void 0x0:_0x506ffa[_0x532a65(0x24b)])===l[_0x532a65(0x407)][_0x532a65(0x473)]?_0x506ffa[_0x532a65(0x4f7)]['multiply'](_0x168ca3):_0x168ca3)[_0x532a65(0x4a0)]()[_0x532a65(0x2b4)](_0x525d30),_0x109fbf=_0x103165/0x2,_0x38f57f=_0x275f8b/0x2,_0x17a494=this['_props']['shapeModel'];return _0x17a494&&_0x17a494[_0x532a65(0x3b3)]()?_0x17a494['isHitLine'](_0x106d2b['x'],_0x106d2b['y'],_0x103165,_0x275f8b):_0x106d2b['x']>=-_0x109fbf-this[_0x532a65(0x4c2)]/0x2&&_0x106d2b['x']<=_0x109fbf+this[_0x532a65(0x4c2)]/0x2&&_0x106d2b['y']>=-_0x38f57f-this[_0x532a65(0x4c2)]/0x2&&_0x106d2b['y']<=_0x38f57f+this[_0x532a65(0x4c2)]/0x2;}[_0xac088e(0x45f)](){const _0x119cc4=_0xac088e;this[_0x119cc4(0x298)][_0x119cc4(0x45f)](),this['_props']['shapeModel']=null,super[_0x119cc4(0x45f)]();}};let W=class extends o[_0xac088e(0x1d9)]{constructor(_0x24121b,_0x44637f,_0x51e977,_0x15671f){const _0x378126=_0xac088e;super(),this[_0x378126(0x3dd)]=_0x24121b,this[_0x378126(0x31f)]=_0x44637f,this['_docsShapeService']=_0x51e977,this[_0x378126(0x483)]=_0x15671f,H(this,'_activeShapeId',null),H(this,'_unitId',null),H(this,_0x378126(0x20c),null),H(this,_0x378126(0x1f5),void 0x0),H(this,_0x378126(0x286),[]),H(this,_0x378126(0x371),0x0),H(this,_0x378126(0x34a),0x0),H(this,_0x378126(0x4e2),0x0),H(this,_0x378126(0x405),0x0),H(this,_0x378126(0x4ff),!0x1),H(this,_0x378126(0x2af),!0x1),H(this,'_activeAdjustInfo',void 0x0),H(this,_0x378126(0x251),void 0x0),H(this,_0x378126(0x29f),void 0x0),H(this,_0x378126(0x20b),void 0x0),this[_0x378126(0x3c8)](),this[_0x378126(0x43c)]();}[_0xac088e(0x382)](){const _0x4949a4=_0xac088e;this[_0x4949a4(0x29d)]();}[_0xac088e(0x342)](){this['_updateShapeAdjustControls'](!0x0);}[_0xac088e(0x27b)](_0x1ec699,_0x1ee773,_0x412fb){const _0x2414ba=_0xac088e;var _0x67eabc;return(_0x67eabc=this[_0x2414ba(0x446)][_0x2414ba(0x3a7)](_0x1ec699,_0x1ee773,_0x412fb))==null?void 0x0:_0x67eabc[_0x2414ba(0x4ad)]();}['_getShapeAdjustInfosById'](_0x1bbe01,_0x21a4e0,_0x77071f,_0x445de4){const _0x279835=_0xac088e;var _0x46e86c;return(_0x46e86c=this[_0x279835(0x446)]['getShapeModel'](_0x1bbe01,_0x21a4e0,_0x77071f))==null?void 0x0:_0x46e86c[_0x279835(0x21d)](_0x445de4);}[_0xac088e(0x261)](){const _0x2379d4=_0xac088e;return this[_0x2379d4(0x210)]===null||this[_0x2379d4(0x20c)]===null||this[_0x2379d4(0x219)]===null?null:this[_0x2379d4(0x31f)]['getDrawingByParam']({'unitId':this[_0x2379d4(0x210)],'subUnitId':this[_0x2379d4(0x20c)],'drawingId':this['_activeShapeId']})??null;}[_0xac088e(0x24a)](_0x45016c){const _0x559179=_0xac088e;if(this[_0x559179(0x210)]===null||this['_subUnitId']===null||this[_0x559179(0x219)]===null)return null;let _0x9acab8=(0x0,u[_0x559179(0x2ed)])({'unitId':this[_0x559179(0x210)],'subUnitId':this[_0x559179(0x20c)],'drawingId':this[_0x559179(0x219)]}),_0x5d8762=_0x45016c[_0x559179(0x4a1)](_0x9acab8);return _0x5d8762 instanceof U?_0x5d8762:null;}['_createShapeAdjustControls'](_0x2faf1e=!0x1){const _0x42ee7c=_0xac088e;if(this[_0x42ee7c(0x210)]===null||this[_0x42ee7c(0x20c)]===null||this[_0x42ee7c(0x219)]===null)return;let _0xfe8820=this[_0x42ee7c(0x261)]();if((_0xfe8820==null?void 0x0:_0xfe8820[_0x42ee7c(0x37c)])!==o[_0x42ee7c(0x440)]['DRAWING_SHAPE']||!_0xfe8820[_0x42ee7c(0x39c)])return;let _0x5e8bca=this['_docsShapeService'][_0x42ee7c(0x3a7)](this[_0x42ee7c(0x210)],this[_0x42ee7c(0x20c)],this[_0x42ee7c(0x219)]);if(!_0x5e8bca||_0x5e8bca[_0x42ee7c(0x3b3)]())return;let {left:_0x4af635=0x0,top:_0x2f207b=0x0,width:_0x2cfd6b=0x0,height:_0xc80948=0x0,flipX:_0x4e03f5,flipY:_0x179c8e,angle:_0x2417f0=0x0}=_0xfe8820[_0x42ee7c(0x39c)];(_0x2faf1e||!this[_0x42ee7c(0x1f5)])&&(_0x5e8bca['updateContext']({'width':_0x2cfd6b,'height':_0xc80948}),this[_0x42ee7c(0x1f5)]=_0x5e8bca[_0x42ee7c(0x4ad)]());let _0x44e10c=this[_0x42ee7c(0x1f5)];if(!(_0x44e10c!=null&&_0x44e10c[_0x42ee7c(0x1ee)]))return;let {scene:_0x435d9d}=this[_0x42ee7c(0x3dd)];for(let _0x31f491 of _0x44e10c){let _0x22b4b5=this[_0x42ee7c(0x2a2)](_0x31f491,_0x2cfd6b,_0xc80948,!!_0x4e03f5,!!_0x179c8e,_0x2417f0);this[_0x42ee7c(0x231)](_0x435d9d,_0x22b4b5,_0x22b4b5[_0x42ee7c(0x332)],_0x4af635,_0x2f207b,this[_0x42ee7c(0x210)],this[_0x42ee7c(0x20c)]);}}['_toVisualAdjustPoint'](_0xedb660,_0x5b1a8b,_0x1cef02,_0x2d242c,_0x3d3764,_0x32d015){const _0x3cb0f7=_0xac088e;let _0x5c8f31=_0xedb660['x'],_0x49a5c6=_0xedb660['y'];if(_0x2d242c&&(_0x5c8f31=_0x5b1a8b-_0x5c8f31),_0x3d3764&&(_0x49a5c6=_0x1cef02-_0x49a5c6),_0x32d015!==0x0){let _0x5f3eac=_0x5b1a8b/0x2,_0x35e23b=_0x1cef02/0x2,_0x48c3ba=_0x32d015*Math['PI']/0xb4,_0x3852bb=Math[_0x3cb0f7(0x40e)](_0x48c3ba),_0x1e8b62=Math[_0x3cb0f7(0x361)](_0x48c3ba),_0x106374=_0x5c8f31-_0x5f3eac,_0x58dcf9=_0x49a5c6-_0x35e23b;_0x5c8f31=_0x5f3eac+(_0x106374*_0x3852bb-_0x58dcf9*_0x1e8b62),_0x49a5c6=_0x35e23b+(_0x106374*_0x1e8b62+_0x58dcf9*_0x3852bb);}return{'x':_0x5c8f31,'y':_0x49a5c6,'adjName':_0xedb660[_0x3cb0f7(0x332)]};}[_0xac088e(0x29b)](_0x3fbb2f=!0x1){const _0x1df9e5=_0xac088e;_0x3fbb2f&&this['_clearShapeAdjustControls'](),this[_0x1df9e5(0x2c6)](_0x3fbb2f);}['_addShapeAdjustControl'](_0x2489b2,_0x2b3a16,_0x581333,_0x1c37d0,_0x2721e5,_0x2e5a94,_0x55b853){const _0x28d816=_0xac088e;if(!this[_0x28d816(0x219)])return;let _0x59b9a2=_0x28d816(0x43e)+this[_0x28d816(0x219)]+'-'+_0x581333,_0x16bde8=_0x2489b2['getObjectIncludeInGroup'](_0x59b9a2);if(_0x16bde8){_0x16bde8[_0x28d816(0x1f6)]({'left':_0x2b3a16['x']+_0x1c37d0-i[_0x28d816(0x458)][_0x28d816(0x22b)],'top':_0x2b3a16['y']+_0x2721e5-i[_0x28d816(0x458)][_0x28d816(0x22b)]}),_0x16bde8[_0x28d816(0x4f1)](!0x0);return;}let _0x5cb1fb=new at(_0x59b9a2,{'left':_0x2b3a16['x']+_0x1c37d0-i[_0x28d816(0x458)][_0x28d816(0x22b)],'top':_0x2b3a16['y']+_0x2721e5-i[_0x28d816(0x458)][_0x28d816(0x22b)],'adjName':_0x581333,'shapeId':this['_activeShapeId'],'unitId':_0x2e5a94,'subUnitId':_0x55b853,'width':i[_0x28d816(0x458)]['adjHandleSize']+0x8,'height':i[_0x28d816(0x458)][_0x28d816(0x22b)]+0x8,'zIndex':l[_0x28d816(0x29e)]+0x1,'evented':!0x0});this[_0x28d816(0x286)][_0x28d816(0x474)](_0x5cb1fb),this[_0x28d816(0x32b)](_0x5cb1fb,_0x2489b2,_0x581333),_0x2489b2[_0x28d816(0x302)](_0x5cb1fb,l['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0xac088e(0x29d)](){const _0x231e8d=_0xac088e;this['_adjustPointObjects'][_0x231e8d(0x3ca)](_0x38e55f=>_0x38e55f[_0x231e8d(0x45f)]()),this['_adjustPointObjects']=[];}[_0xac088e(0x281)](){const _0x2e039d=_0xac088e;this[_0x2e039d(0x2c6)]();}[_0xac088e(0x28e)](_0x41f56d,_0x31a1b1,_0x587c2e){const _0xd98339=_0xac088e;let _0x2347f5=l[_0xd98339(0x3c6)][_0xd98339(0x466)]([_0x31a1b1,_0x587c2e]),_0x424f7e=_0x41f56d[_0xd98339(0x4ca)](_0x2347f5)??_0x41f56d[_0xd98339(0x3d7)]()[0x0];return(_0x424f7e==null?void 0x0:_0x424f7e[_0xd98339(0x434)](_0x2347f5))??_0x2347f5;}['_attachAdjustEvent'](_0x164038,_0x32cd04,_0x38da7e){const _0x2ffd15=_0xac088e;this['disposeWithMe']((0x0,o[_0x2ffd15(0x3fb)])(_0x164038[_0x2ffd15(0x241)][_0x2ffd15(0x20d)]((_0x287369,_0x132c66)=>{const _0x543660=_0x2ffd15;var _0x371cd9;let _0xbdaeea=_0x164038[_0x543660(0x355)]();this['_activeAdjustInfo']=this['_getShapeAdjustInfosById'](_0xbdaeea[_0x543660(0x2e6)],_0xbdaeea[_0x543660(0x390)],_0xbdaeea[_0x543660(0x270)],_0x38da7e),this[_0x543660(0x251)]=this[_0x543660(0x446)][_0x543660(0x3a7)](_0xbdaeea[_0x543660(0x2e6)],_0xbdaeea[_0x543660(0x390)],_0xbdaeea[_0x543660(0x270)]);let _0x5608b9=this[_0x543660(0x261)](),_0x3524f7=_0x5608b9==null?void 0x0:_0x5608b9[_0x543660(0x39c)];if(!_0x5608b9||!_0x3524f7||!this[_0x543660(0x251)])return;this['_baseShapeLeft']=_0x3524f7['left']||0x0,this['_baseShapeTop']=_0x3524f7[_0x543660(0x211)]||0x0,this['_baseShapeWidth']=_0x3524f7[_0x543660(0x4b0)]||0x0,this[_0x543660(0x405)]=_0x3524f7['height']||0x0;let _0x26453f=!!_0x3524f7[_0x543660(0x1ed)],_0x3f9a76=!!_0x3524f7[_0x543660(0x3fc)],_0x409033=_0x3524f7[_0x543660(0x27a)]||0x0,_0x2a59fc={...((_0x371cd9=this[_0x543660(0x1e8)])==null?void 0x0:_0x371cd9['currentAdjustValues'])??{}};this[_0x543660(0x4ff)]=!0x0,_0x32cd04['disableObjectsEvent'](),this['_adjHandlerPointerMove']=_0x32cd04[_0x543660(0x2bd)]['subscribeEvent']((_0x2a382e,_0x4db0a1)=>{const _0x2c5ed4=_0x543660;var _0x3a56a5;if(!this[_0x2c5ed4(0x4ff)]||!this['_activeShapeModel']||!this[_0x2c5ed4(0x1e8)])return;_0x32cd04[_0x2c5ed4(0x3e2)](),_0x32cd04[_0x2c5ed4(0x2ac)](l[_0x2c5ed4(0x4c1)][_0x2c5ed4(0x1f8)]);let _0x394c35=this['_toScenePoint'](_0x32cd04,_0x2a382e[_0x2c5ed4(0x36d)],_0x2a382e[_0x2c5ed4(0x25d)]),_0x2b3c21=_0x394c35['x']-this[_0x2c5ed4(0x371)],_0xaf5751=_0x394c35['y']-this['_baseShapeTop'];if(_0x409033!==0x0){let _0x58d5e1=this[_0x2c5ed4(0x4e2)]/0x2,_0x402346=this['_baseShapeHeight']/0x2,_0x144de0=_0x409033*Math['PI']/0xb4,_0x927800=Math[_0x2c5ed4(0x40e)](_0x144de0),_0x2adac1=Math[_0x2c5ed4(0x361)](_0x144de0),_0x8aac8e=_0x2b3c21-_0x58d5e1,_0x1f07ec=_0xaf5751-_0x402346;_0x2b3c21=_0x58d5e1+(_0x8aac8e*_0x927800+_0x1f07ec*_0x2adac1),_0xaf5751=_0x402346+(-_0x8aac8e*_0x2adac1+_0x1f07ec*_0x927800);}_0x26453f&&(_0x2b3c21=this[_0x2c5ed4(0x4e2)]-_0x2b3c21),_0x3f9a76&&(_0xaf5751=this[_0x2c5ed4(0x405)]-_0xaf5751);let _0x8411d={'left':0x0,'top':0x0,'width':this[_0x2c5ed4(0x4e2)],'height':this[_0x2c5ed4(0x405)]},_0x17fbc2=this[_0x2c5ed4(0x251)][_0x2c5ed4(0x2d7)](_0x8411d,{'x':_0x2b3c21,'y':_0xaf5751},this[_0x2c5ed4(0x1e8)],_0x26453f,_0x3f9a76);if(Object[_0x2c5ed4(0x460)](_0x17fbc2)['length']!==0x0){for(let [_0x1437f9,_0x9de9f7]of Object[_0x2c5ed4(0x35d)](_0x17fbc2))this[_0x2c5ed4(0x251)][_0x2c5ed4(0x4cf)](_0x1437f9,_0x9de9f7);this['_activeShapeModel'][_0x2c5ed4(0x3c4)]({'width':this[_0x2c5ed4(0x4e2)],'height':this[_0x2c5ed4(0x405)]}),(_0x3a56a5=this['_getActiveDrawingShape'](_0x32cd04))==null||_0x3a56a5['makeDirty'](!0x0),this[_0x2c5ed4(0x1f5)]=this[_0x2c5ed4(0x27b)](_0xbdaeea['unitId'],_0xbdaeea[_0x2c5ed4(0x390)],_0xbdaeea[_0x2c5ed4(0x270)]),this[_0x2c5ed4(0x281)](),_0x4db0a1[_0x2c5ed4(0x306)]();}}),this[_0x543660(0x20b)]=_0x32cd04['onPointerUp$'][_0x543660(0x20d)]((_0x44f40a,_0x3b31f6)=>{const _0xb6853d=_0x543660;var _0x5c55a3,_0x305ea2;(_0x5c55a3=this[_0xb6853d(0x29f)])==null||_0x5c55a3[_0xb6853d(0x226)](),(_0x305ea2=this[_0xb6853d(0x20b)])==null||_0x305ea2[_0xb6853d(0x226)](),_0x32cd04[_0xb6853d(0x41d)]();let _0x3c48b7=this[_0xb6853d(0x1e8)];if(_0x3c48b7&&this['_activeShapeModel']){let _0x730b5e={};for(let _0x3dcf46 of Object['keys'](_0x3c48b7[_0xb6853d(0x3ad)])){let _0x3ad6db=this[_0xb6853d(0x251)][_0xb6853d(0x280)](_0x3dcf46);_0x3ad6db!==void 0x0&&(_0x730b5e[_0x3dcf46]=_0x3ad6db);}Object[_0xb6853d(0x460)](_0x730b5e)[_0xb6853d(0x1ee)]>0x0&&R(this[_0xb6853d(0x483)],_0xbdaeea[_0xb6853d(0x2e6)],_0xbdaeea[_0xb6853d(0x390)],_0xbdaeea[_0xb6853d(0x270)],{'oldShapeData':{'adjustValues':_0x2a59fc}},{'adjustValues':_0x730b5e});}this[_0xb6853d(0x1e8)]=void 0x0,this[_0xb6853d(0x251)]=void 0x0,this[_0xb6853d(0x4ff)]=!0x1,_0x32cd04[_0xb6853d(0x4eb)](),_0x3b31f6[_0xb6853d(0x306)]();}),_0x132c66['stopPropagation']();})));}[_0xac088e(0x43c)](){const _0x2002d2=_0xac088e;let {scene:_0x416694}=this[_0x2002d2(0x3dd)],_0x4d322f=_0x416694[_0x2002d2(0x2df)]();this['disposeWithMe'](_0x4d322f[_0x2002d2(0x29a)]['subscribe'](_0x1f6a40=>{const _0x418edc=_0x2002d2;this['_createShapeAdjustControls'](),_0x1f6a40['objects']!==null&&_0x1f6a40[_0x418edc(0x3a9)][_0x418edc(0x40c)]===0x1&&_0x1f6a40[_0x418edc(0x3a9)]['values']()[_0x418edc(0x1f1)]()[_0x418edc(0x201)]instanceof U&&(this['_isShouldShowDrawingShapeAdjust']=!0x0);})),this[_0x2002d2(0x38a)](_0x4d322f[_0x2002d2(0x43f)][_0x2002d2(0x43a)](()=>{const _0x3f9c06=_0x2002d2;this[_0x3f9c06(0x2af)]&&this[_0x3f9c06(0x29d)]();})),this[_0x2002d2(0x38a)](_0x416694[_0x2002d2(0x1e7)][_0x2002d2(0x20d)](()=>{const _0x124e4f=_0x2002d2;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x124e4f(0x2af)]=!0x1,this[_0x124e4f(0x2c6)]());})),this[_0x2002d2(0x38a)](_0x4d322f[_0x2002d2(0x2a3)]['subscribe'](()=>{const _0x4e1856=_0x2002d2;this[_0x4e1856(0x210)]&&this['_subUnitId']&&this[_0x4e1856(0x219)]&&(this[_0x4e1856(0x1f5)]=this[_0x4e1856(0x27b)](this[_0x4e1856(0x210)],this[_0x4e1856(0x20c)],this[_0x4e1856(0x219)]),this[_0x4e1856(0x281)]());}));}[_0xac088e(0x3c8)](){const _0x3574c7=_0xac088e;this[_0x3574c7(0x38a)](this['_commandService'][_0x3574c7(0x25e)](_0x466ee1=>{const _0x48171e=_0x3574c7;if(_0x466ee1['id']!==r['UpdateDocShapeDataMutation']['id'])return;let {unitId:_0x4228bf,shapeId:_0x1a0316}=_0x466ee1[_0x48171e(0x359)];_0x4228bf===this['_unitId']&&_0x1a0316===this['_activeShapeId']&&this[_0x48171e(0x342)]();})),this['disposeWithMe'](this[_0x3574c7(0x31f)][_0x3574c7(0x22d)][_0x3574c7(0x43a)](_0x5f178e=>{const _0x419f97=_0x3574c7;if(_0x5f178e[_0x419f97(0x1ee)]===0x1){let _0x28c695=_0x5f178e[0x0],_0xf9c3f6=this[_0x419f97(0x31f)][_0x419f97(0x331)](_0x28c695);if((_0xf9c3f6==null?void 0x0:_0xf9c3f6[_0x419f97(0x37c)])===o[_0x419f97(0x440)][_0x419f97(0x2bf)]){this[_0x419f97(0x219)]=_0x28c695['drawingId'],this[_0x419f97(0x210)]=_0x28c695['unitId'],this[_0x419f97(0x20c)]=_0x28c695['subUnitId'],this[_0x419f97(0x1f5)]=this[_0x419f97(0x27b)](_0x28c695[_0x419f97(0x2e6)],_0x28c695['subUnitId'],_0x28c695[_0x419f97(0x270)]),this['_clearShapeAdjustControls'](),this['_createShapeAdjustControls']();return;}}this[_0x419f97(0x219)]=null,this[_0x419f97(0x1f5)]=void 0x0,this[_0x419f97(0x210)]=null,this['_subUnitId']=null,this[_0x419f97(0x29d)]();})),this[_0x3574c7(0x38a)]((0x0,p['merge'])(this[_0x3574c7(0x31f)]['update$'],this[_0x3574c7(0x31f)][_0x3574c7(0x35e)])[_0x3574c7(0x43a)](_0x4ec50a=>{const _0x561d89=_0x3574c7;var _0x3d356d;let _0x1ff5e5=_0x4ec50a['find'](_0x193ad2=>_0x193ad2[_0x561d89(0x270)]===this['_activeShapeId']&&_0x193ad2['unitId']===this[_0x561d89(0x210)]&&_0x193ad2[_0x561d89(0x390)]===this[_0x561d89(0x20c)]);_0x1ff5e5&&((_0x3d356d=this['_drawingManagerService'][_0x561d89(0x331)](_0x1ff5e5))==null?void 0x0:_0x3d356d['drawingType'])===o['DrawingTypeEnum'][_0x561d89(0x2bf)]&&this['_updateShapeAdjustControls'](!0x0);})),this[_0x3574c7(0x38a)](this[_0x3574c7(0x31f)][_0x3574c7(0x356)][_0x3574c7(0x43a)](_0x23cb2f=>{const _0x130b7d=_0x3574c7;for(let _0x443ceb of _0x23cb2f)this['_activeShapeId']===_0x443ceb[_0x130b7d(0x270)]&&(this[_0x130b7d(0x219)]=null,this[_0x130b7d(0x1f5)]=void 0x0,this[_0x130b7d(0x210)]=null,this[_0x130b7d(0x20c)]=null,this[_0x130b7d(0x29d)]());}));}};W=I([F(0x1,u['IDrawingManagerService']),F(0x2,(0x0,o[_0xac088e(0x383)])(r[_0xac088e(0x326)])),F(0x3,o[_0xac088e(0x2cf)])],W);let G=class extends o['Disposable']{constructor(_0x25f3dd,_0x48e8bd){const _0x16916c=_0xac088e;super(),this['_permissionService']=_0x25f3dd,this['_instanceService']=_0x48e8bd,H(this,_0x16916c(0x292),new p[(_0x16916c(0x427))](null)),H(this,'editingParams$',this[_0x16916c(0x292)][_0x16916c(0x3d9)]()),H(this,_0x16916c(0x27e),new p[(_0x16916c(0x427))](!0x1)),H(this,_0x16916c(0x23b),this[_0x16916c(0x27e)][_0x16916c(0x3d9)]()),H(this,_0x16916c(0x2c5),void 0x0),this[_0x16916c(0x38a)](this[_0x16916c(0x462)][_0x16916c(0x4fe)][_0x16916c(0x43a)](()=>{const _0xfb3313=_0x16916c;let _0x4c32dd=this[_0xfb3313(0x40d)]();_0x4c32dd!=null&&_0x4c32dd['visible']&&!this[_0xfb3313(0x27f)](_0x4c32dd)&&this[_0xfb3313(0x49b)](null);}));}[_0xac088e(0x45f)](){const _0x7deea6=_0xac088e;this[_0x7deea6(0x4fd)](),this[_0x7deea6(0x292)][_0x7deea6(0x1f1)](null),this['_editingParams$']['complete'](),this['_onSavingEditorData$'][_0x7deea6(0x1f1)](!0x1),this[_0x7deea6(0x27e)][_0x7deea6(0x45a)](),super[_0x7deea6(0x45f)]();}[_0xac088e(0x49b)](_0x49fa65){const _0x3fc663=_0xac088e;(_0x49fa65==null||!_0x49fa65[_0x3fc663(0x416)]||this[_0x3fc663(0x27f)](_0x49fa65))&&(this[_0x3fc663(0x4fd)](),this['_editingParams$']['next'](_0x49fa65),(_0x49fa65==null||_0x49fa65[_0x3fc663(0x416)]&&this[_0x3fc663(0x27e)]['getValue']())&&this[_0x3fc663(0x27e)][_0x3fc663(0x1f1)](!0x1));}[_0xac088e(0x443)](_0x2b08cd){const _0x43cc19=_0xac088e;this[_0x43cc19(0x27e)][_0x43cc19(0x1f1)](_0x2b08cd);}[_0xac088e(0x40d)](){const _0x93bd3d=_0xac088e;return this[_0x93bd3d(0x292)][_0x93bd3d(0x403)]();}[_0xac088e(0x27f)](_0x40443f){const _0x190d57=_0xac088e;let _0x4ffcb0=this[_0x190d57(0x501)][_0x190d57(0x2cc)](_0x40443f[_0x190d57(0x2e6)],o[_0x190d57(0x230)]['UNIVER_DOC']);if(!_0x4ffcb0)return!0x0;let _0x7c8be6=(0x0,s[_0x190d57(0x2b6)])(_0x4ffcb0,_0x40443f[_0x190d57(0x25f)]);return(0x0,s[_0x190d57(0x376)])(this[_0x190d57(0x462)],_0x40443f[_0x190d57(0x2e6)],[...(0x0,s[_0x190d57(0x2b7)])(_0x4ffcb0,_0x7c8be6,_0x190d57(0x1e4),_0x40443f['shapeId']),(0x0,s[_0x190d57(0x1fe)])(_0x7c8be6,'drawing',_0x40443f[_0x190d57(0x25f)])]);}[_0xac088e(0x318)](_0x49c77d){const _0x6bd3e4=_0xac088e;let _0x5a24ba=this[_0x6bd3e4(0x40d)]();_0x5a24ba&&this['_completionFrame']===void 0x0&&(this['setOnSavingEditorData'](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x4a525c=_0x6bd3e4;this[_0x4a525c(0x2c5)]=void 0x0,this[_0x4a525c(0x40d)]()===_0x5a24ba&&this['setEditing'](null);}));}['_clearCompletionFrame'](){const _0x2c41ed=_0xac088e;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this['_completionFrame']),this[_0x2c41ed(0x2c5)]=void 0x0);}['cancelEditing'](){const _0x11efa7=_0xac088e;this['getEditing']()&&this[_0x11efa7(0x49b)](null);}};G=I([F(0x0,o[_0xac088e(0x23e)]),F(0x1,o[_0xac088e(0x257)])],G);function _0xa70b(_0x255067,_0x25044f){_0x255067=_0x255067-0x1d6;const _0x404d3d=_0x404d();let _0xa70be1=_0x404d3d[_0x255067];return _0xa70be1;}function st(_0x11aa4f){const _0x10face=_0xac088e;return _0x11aa4f['behindText']===!0x0||_0x11aa4f['behindText']===o[_0x10face(0x4a9)][_0x10face(0x3d4)]||_0x11aa4f[_0x10face(0x39e)]===o['PositionedObjectLayoutType'][_0x10face(0x1e6)]&&_0x11aa4f[_0x10face(0x4c4)]===o[_0x10face(0x4a9)][_0x10face(0x3d4)]?t[_0x10face(0x252)]-0x1:l['DRAWING_OBJECT_LAYER_INDEX'];}let K=class extends o[_0xac088e(0x1d9)]{constructor(_0x586e01,_0x1b33f2,_0x18569a,_0x35ed2a,_0x3aaf82,_0x2aac21,_0x3bf955){const _0x11fb12=_0xac088e;super(),this[_0x11fb12(0x31f)]=_0x586e01,this[_0x11fb12(0x446)]=_0x1b33f2,this[_0x11fb12(0x4b3)]=_0x18569a,this['_imageIoService']=_0x35ed2a,this['_urlImageService']=_0x3aaf82,this[_0x11fb12(0x2a5)]=_0x2aac21,this[_0x11fb12(0x38e)]=_0x3bf955,H(this,_0x11fb12(0x4f2),new Map()),this[_0x11fb12(0x38a)](this[_0x11fb12(0x38e)][_0x11fb12(0x34e)][_0x11fb12(0x43a)](_0x4cb9ba=>{const _0x29f358=_0x11fb12;var _0x4da8ff;(_0x4da8ff=this[_0x29f358(0x4f2)][_0x29f358(0x314)](this['_formulaKey'](_0x4cb9ba['unitId'],_0x4cb9ba[_0x29f358(0x390)],_0x4cb9ba[_0x29f358(0x25f)])))==null||_0x4da8ff[_0x29f358(0x3ca)](_0x2b4a19=>_0x2b4a19[_0x29f358(0x381)](_0x4cb9ba[_0x29f358(0x4bf)],_0x4cb9ba[_0x29f358(0x3ce)]));})),this[_0x11fb12(0x38a)](this[_0x11fb12(0x31f)][_0x11fb12(0x356)]['subscribe'](_0x113ff6=>{_0x113ff6['forEach'](_0x535d1e=>{const _0x7a197=_0xa70b;this[_0x7a197(0x38e)]['unregister']({'unitId':_0x535d1e['unitId'],'subUnitId':_0x535d1e[_0x7a197(0x390)],'shapeId':_0x535d1e['drawingId']}),this[_0x7a197(0x4f2)][_0x7a197(0x488)](this[_0x7a197(0x295)](_0x535d1e[_0x7a197(0x2e6)],_0x535d1e[_0x7a197(0x390)],_0x535d1e[_0x7a197(0x270)]));});}));}[_0xac088e(0x2b8)](_0x3716fa,_0x10a0ad){const _0x3d9912=_0xac088e;let {transform:_0x56dab9,drawingType:_0x4d9f39,srcRect:_0x262043,prstGeom:_0x3e7635,groupId:_0x820a0c,unitId:_0x2910cd,subUnitId:_0x4c7ce9,drawingId:_0x15121b,isMultiTransform:_0x352f51,transforms:_0x583813,hidden:_0x690404,selectable:_0x4e8432}=_0x3716fa;if(_0x4d9f39!==o['DrawingTypeEnum'][_0x3d9912(0x2bf)]||!this['_drawingManagerService'][_0x3d9912(0x2dc)]()||_0x56dab9==null)return;let _0x61493a=this['_drawingManagerService']['getDrawingEditable'](),_0x3abe2c=_0x352f51&&_0x583813?_0x583813:[_0x56dab9],_0x2acb31=[];for(let [_0x5e9549,_0x2878da]of _0x3abe2c[_0x3d9912(0x35d)]()){let {left:_0x2b34a2,top:_0x574b8b,width:_0x1bb77c,height:_0x195d57,angle:_0x333b0b,flipX:_0x472c5d,flipY:_0x5cc092,skewX:_0x2addc7,skewY:_0x4672d7}=_0x2878da,_0x1faf20=(0x0,u['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x2910cd,'subUnitId':_0x4c7ce9,'drawingId':_0x15121b},_0x352f51?_0x5e9549:void 0x0),_0x486fa7=_0x10a0ad['getObjectIncludeInGroup'](_0x1faf20);if(_0x486fa7!=null){let _0xefca1f={'unitId':_0x2910cd,'subUnitId':_0x4c7ce9,'shapeId':_0x15121b};_0x486fa7 instanceof U&&this['refreshFormulaPresentation'](_0x486fa7,_0xefca1f),_0x486fa7[_0x3d9912(0x1f6)]({'left':_0x2b34a2,'top':_0x574b8b,'width':_0x1bb77c,'height':_0x195d57,'angle':_0x333b0b,'flipX':_0x472c5d,'flipY':_0x5cc092,'skewX':_0x2addc7,'skewY':_0x4672d7});continue;}let _0x356f54=this['_drawingManagerService'][_0x3d9912(0x33f)](_0x2910cd,_0x4c7ce9),_0x31ca05=_0x356f54[_0x3d9912(0x476)](_0x15121b);if(_0x10a0ad[_0x3d9912(0x4a1)](_0x1faf20)||!this['_drawingManagerService'][_0x3d9912(0x2dc)]())continue;let _0x478b9a=this[_0x3d9912(0x446)][_0x3d9912(0x3a7)](_0x2910cd,_0x4c7ce9,_0x15121b);if(!_0x478b9a)continue;let _0xc4346d=(0x0,i[_0x3d9912(0x471)])(_0x478b9a[_0x3d9912(0x26d)]())?{...e['SHAPE_EDITOR_TRANSFORMER_CONFIG'],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:e['SHAPE_EDITOR_TRANSFORMER_CONFIG'],_0x1a966f=_0x478b9a[_0x3d9912(0x296)]()[_0x3d9912(0x3f7)],_0x1e0155={'unitId':_0x2910cd,'subUnitId':_0x4c7ce9,'shapeId':_0x15121b};_0x1a966f&&this['_shapeFormulaService']['register'](_0x1e0155,_0x1a966f);let _0x3a90d5=new U(_0x1faf20,{..._0x2878da,'zIndex':_0x31ca05===-0x1?_0x356f54[_0x3d9912(0x1ee)]-0x1:_0x31ca05,'shapeModel':_0x478b9a,'localeService':this['_localeService'],'shapeId':_0x15121b,'unitId':_0x2910cd,'subUnitId':_0x4c7ce9,'visible':_0x690404!==!0x0,'evented':_0x4e8432!==!0x1,'formulaPresentation':_0x1a966f?this[_0x3d9912(0x38e)][_0x3d9912(0x425)](_0x1e0155):void 0x0,'animateFormulaPresentation':(_0x1a966f==null?void 0x0:_0x1a966f[_0x3d9912(0x3ce)])!==!0x1,'transformerConfig':_0xc4346d});if(_0x1a966f){let _0x3c2a44=this['_formulaKey'](_0x2910cd,_0x4c7ce9,_0x15121b),_0x4359ba=this[_0x3d9912(0x4f2)]['get'](_0x3c2a44)??new Set();_0x4359ba[_0x3d9912(0x3b0)](_0x3a90d5),this[_0x3d9912(0x4f2)][_0x3d9912(0x373)](_0x3c2a44,_0x4359ba);}this['disposeWithMe']((0x0,o[_0x3d9912(0x3fb)])(_0x3a90d5[_0x3d9912(0x275)]['subscribeEvent']((_0x438c74,_0x95fb2f)=>{const _0x460bda=_0x3d9912;_0x478b9a['isLineShape']()||_0x1a966f||(this[_0x460bda(0x2a5)][_0x460bda(0x49b)]({'visible':!0x0,'unitId':_0x2910cd,'subUnitId':_0x4c7ce9,'shapeId':_0x15121b,'shapeKey':_0x3a90d5[_0x460bda(0x299)]}),_0x95fb2f[_0x460bda(0x306)]());}))),_0x10a0ad['addObject'](_0x3a90d5,st(_0x3716fa)),_0x61493a&&_0x10a0ad['attachTransformerTo'](_0x3a90d5),_0x820a0c&&(0x0,d['insertGroupObject'])({'drawingId':_0x820a0c,'unitId':_0x2910cd,'subUnitId':_0x4c7ce9},_0x3a90d5,_0x10a0ad,this[_0x3d9912(0x31f)],_0x352f51?_0x5e9549:void 0x0),_0x3e7635!=null&&_0x3a90d5[_0x3d9912(0x3f0)](_0x3e7635),_0x262043!=null&&_0x3a90d5[_0x3d9912(0x47a)](_0x262043),this[_0x3d9912(0x24f)](_0x3a90d5,_0x478b9a[_0x3d9912(0x296)]()),_0x2acb31[_0x3d9912(0x474)](_0x3a90d5);}return _0x2acb31;}['_formulaKey'](_0x124b76,_0x21bd46,_0x40b64c){return _0x124b76+'\x00'+_0x21bd46+'\x00'+_0x40b64c;}[_0xac088e(0x34c)](_0x5e3f4a,_0xf18cff){const _0x558fb0=_0xac088e;let _0x55d56c=this[_0x558fb0(0x446)][_0x558fb0(0x3a7)](_0xf18cff[_0x558fb0(0x2e6)],_0xf18cff['subUnitId'],_0xf18cff[_0x558fb0(0x25f)]),_0x4a0061=_0x55d56c==null?void 0x0:_0x55d56c[_0x558fb0(0x296)]()['formulaBinding'],_0x723f07=this['_formulaKey'](_0xf18cff[_0x558fb0(0x2e6)],_0xf18cff['subUnitId'],_0xf18cff[_0x558fb0(0x25f)]);if(_0x4a0061){this[_0x558fb0(0x38e)]['register'](_0xf18cff,_0x4a0061);let _0x3d9b0d=this[_0x558fb0(0x4f2)][_0x558fb0(0x314)](_0x723f07)??new Set();_0x3d9b0d[_0x558fb0(0x3b0)](_0x5e3f4a),this[_0x558fb0(0x4f2)]['set'](_0x723f07,_0x3d9b0d);}else{var _0xf79b2;this[_0x558fb0(0x38e)][_0x558fb0(0x323)](_0xf18cff),(_0xf79b2=this[_0x558fb0(0x4f2)][_0x558fb0(0x314)](_0x723f07))==null||_0xf79b2[_0x558fb0(0x488)](_0x5e3f4a);}_0x5e3f4a[_0x558fb0(0x381)](_0x4a0061?this['_shapeFormulaService'][_0x558fb0(0x425)](_0xf18cff):void 0x0,(_0x4a0061==null?void 0x0:_0x4a0061['animationEnabled'])!==!0x1);}[_0xac088e(0x2ca)](_0x447937){const _0xa6345b=_0xac088e;let _0x5347d0=_0x447937[_0xa6345b(0x413)][_0xa6345b(0x296)](),_0x2051e4=_0x5347d0[_0xa6345b(0x3a5)];!_0x2051e4||_0x2051e4[_0xa6345b(0x33b)]!==i[_0xa6345b(0x484)][_0xa6345b(0x21e)]||!_0x2051e4['fillImageSource']?_0x447937[_0xa6345b(0x44a)](void 0x0):this[_0xa6345b(0x24f)](_0x447937,_0x5347d0);}[_0xac088e(0x24f)](_0x1c0b74,_0x519424){const _0x5da8c2=_0xac088e;let _0x5d7896=_0x519424[_0x5da8c2(0x3a5)];if(!_0x5d7896||_0x5d7896['fillType']!==i['ShapeFillEnum'][_0x5da8c2(0x21e)]||!_0x5d7896[_0x5da8c2(0x370)])return;let _0x44fa50=_0x5d7896[_0x5da8c2(0x370)],_0xe50964=_0x5d7896[_0x5da8c2(0x4f3)]??i[_0x5da8c2(0x392)][_0x5da8c2(0x1e9)],_0x4e7c53=this[_0x5da8c2(0x441)]['getImageSourceCache'](_0x44fa50,_0xe50964);_0x4e7c53?_0x1c0b74[_0x5da8c2(0x44a)](_0x4e7c53):this[_0x5da8c2(0x450)](_0x1c0b74,_0x44fa50,_0xe50964);}async[_0xac088e(0x450)](_0x16ea02,_0x337832,_0x218968){const _0xd04383=_0xac088e;let _0x5bc539;try{if(_0x218968===i[_0xd04383(0x392)][_0xd04383(0x4f5)])_0x5bc539=await this[_0xd04383(0x441)][_0xd04383(0x1dc)](_0x337832);else{if(_0x218968===i[_0xd04383(0x392)][_0xd04383(0x1e9)])try{_0x5bc539=await this[_0xd04383(0x39b)][_0xd04383(0x1dc)](_0x337832);}catch{_0x5bc539=_0x337832;}else _0x5bc539=_0x337832;}}catch(_0x3ab38b){console[_0xd04383(0x391)]('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x3ab38b);return;}let _0xe5fd7b=new window['Image']();_0xe5fd7b['onload']=()=>{const _0x13ec0d=_0xd04383;this[_0x13ec0d(0x441)][_0x13ec0d(0x35c)](_0x337832,_0x218968,_0xe5fd7b),_0x16ea02[_0x13ec0d(0x44a)](_0xe5fd7b);},_0xe5fd7b[_0xd04383(0x303)]=()=>{const _0x5cc5d9=_0xd04383;console[_0x5cc5d9(0x391)](_0x5cc5d9(0x3d0),_0x337832);},_0xe5fd7b['src']=_0x5bc539;}};K=I([F(0x0,u[_0xac088e(0x4ba)]),F(0x1,(0x0,o[_0xac088e(0x383)])(r[_0xac088e(0x326)])),F(0x2,(0x0,o['Inject'])(o['LocaleService'])),F(0x3,o[_0xac088e(0x4d1)]),F(0x4,o[_0xac088e(0x344)]),F(0x5,(0x0,o[_0xac088e(0x383)])(G)),F(0x6,(0x0,o[_0xac088e(0x383)])(a[_0xac088e(0x4b7)]))],K);let q=class extends o[_0xac088e(0x1d9)]{constructor(_0x56ad1e,_0x152de3,_0x1a8e57){const _0x1c0633=_0xac088e;super(),this[_0x1c0633(0x293)]=_0x56ad1e,this[_0x1c0633(0x31f)]=_0x152de3,this[_0x1c0633(0x32f)]=_0x1a8e57,this[_0x1c0633(0x2d6)]();}[_0xac088e(0x2d6)](){const _0x43a348=_0xac088e;this[_0x43a348(0x38a)](this[_0x43a348(0x293)][_0x43a348(0x32d)][_0x43a348(0x419)](this[_0x43a348(0x293)]['interceptor']['getInterceptPoints']()[_0x43a348(0x35b)],{'handler':(_0x2dd871,_0x193f83,_0x416a1c)=>{const _0x53d108=_0x43a348;var _0x38478d;let {unitId:_0xe43293,scene:_0x34ae70,skeleton:_0x260f53}=_0x193f83,{pageIndex:_0xa85f78}=_0x193f83,_0x237cd6=(_0x38478d=this[_0x53d108(0x31f)][_0x53d108(0x2aa)](_0xe43293))==null?void 0x0:_0x38478d[_0xe43293],_0x5a751d=ct(this[_0x53d108(0x293)],_0x260f53,_0xa85f78);return _0x237cd6==null||_0x237cd6[_0x53d108(0x41a)]['forEach'](_0x365cc1=>{const _0x3797c3=_0x53d108;if(_0x5a751d&&!_0x5a751d[_0x3797c3(0x23c)](_0x365cc1))return;let _0x3fca58=_0x237cd6[_0x3797c3(0x28c)][_0x365cc1];_0x3fca58[_0x3797c3(0x37c)]===o[_0x3797c3(0x440)][_0x3797c3(0x2bf)]&&!_0x3fca58[_0x3797c3(0x2e4)]&&this['_shapeRenderController'][_0x3797c3(0x2b8)](_0x3fca58,_0x34ae70);}),_0x416a1c(_0x2dd871);}}));}};q=I([F(0x0,(0x0,o['Inject'])(t[_0xac088e(0x4a6)])),F(0x1,u[_0xac088e(0x4ba)]),F(0x2,(0x0,o[_0xac088e(0x383)])(K))],q);function ct(_0x43f4c8,_0x50c75d,_0x136361){const _0x4f4169=_0xac088e;var _0x291ea6,_0x138eaa;let _0x229fea=_0x43f4c8;if(_0x229fea[_0x4f4169(0x504)])return _0x229fea['getPageDrawingIds'](_0x50c75d,_0x136361);let _0x4a36e0=_0x50c75d[_0x4f4169(0x380)]();if(!_0x4a36e0||_0x4a36e0[_0x4f4169(0x47b)][_0x4f4169(0x1ee)]<=0x1||_0x136361==null)return null;let _0x3b843c=new Set(),_0x24d421=_0x4a36e0[_0x4f4169(0x47b)][_0x136361];if(!_0x24d421)return _0x3b843c;lt(_0x24d421,_0x3b843c);let _0x2561dd=(_0x291ea6=_0x4a36e0[_0x4f4169(0x45d)][_0x4f4169(0x314)](_0x24d421[_0x4f4169(0x3b1)]))==null?void 0x0:_0x291ea6[_0x4f4169(0x314)](_0x24d421[_0x4f4169(0x4a3)]??_0x24d421[_0x4f4169(0x3d3)]),_0x4b2bcd=(_0x138eaa=_0x4a36e0[_0x4f4169(0x214)]['get'](_0x24d421[_0x4f4169(0x386)]))==null?void 0x0:_0x138eaa[_0x4f4169(0x314)](_0x24d421[_0x4f4169(0x329)]??_0x24d421[_0x4f4169(0x3d3)]);return _0x2561dd&<(_0x2561dd,_0x3b843c),_0x4b2bcd&<(_0x4b2bcd,_0x3b843c),_0x3b843c;}function lt(_0x1b4d9c,_0x5e324a){const _0x1a4763=_0xac088e;for(let _0x581790 of _0x1b4d9c[_0x1a4763(0x428)]['keys']())_0x5e324a['add'](_0x581790);for(let _0x41c3a6 of _0x1b4d9c[_0x1a4763(0x3d8)]['values']())for(let _0x2cacb5 of _0x41c3a6['rows'])for(let _0x14ba26 of _0x2cacb5['cells'])lt(_0x14ba26,_0x5e324a);}function ut(_0x1e37e1){const _0x2250b3=_0xac088e;return(0x0,f[_0x2250b3(0x4de)])(oe,{..._0x1e37e1,'PickerComponent':e[_0x2250b3(0x253)]});}function dt(){const _0x1f6cd9=_0xac088e;let _0x48a31a=(0x0,n[_0x1f6cd9(0x46d)])(o[_0x1f6cd9(0x2e2)]),_0x1623b4=re(),[_0x48f2df,_0x515346]=(0x0,v[_0x1f6cd9(0x46f)])(!0x1);return(0x0,f[_0x1f6cd9(0x3f1)])(_0x1f6cd9(0x274),{'className':_0x1f6cd9(0x374),'children':[(0x0,f[_0x1f6cd9(0x4de)])(_[_0x1f6cd9(0x250)],{'title':_0x48a31a['t'](_0x1f6cd9(0x322)),'aria-expanded':_0x48f2df,'variant':'subtle','trailing':_0x48f2df?(0x0,f[_0x1f6cd9(0x4de)])(g[_0x1f6cd9(0x42f)],{}):(0x0,f[_0x1f6cd9(0x4de)])(g[_0x1f6cd9(0x2b2)],{}),'onClick':()=>_0x515346(_0x1ad771=>!_0x1ad771)}),_0x48f2df&&(0x0,f[_0x1f6cd9(0x4de)])(e[_0x1f6cd9(0x253)],{'excludeGroups':[e[_0x1f6cd9(0x1e2)][_0x1f6cd9(0x3c9)]],'onShapeClick':_0xe946fa=>{_0x1623b4(_0xe946fa),_0x515346(!0x1);}})]});}function ft(_0x52da28){return _0x52da28['trim']()||void 0x0;}function pt(_0x5cd979,_0x5cfb34,_0x1a90c1){const _0x18d4c9=_0xac088e;var _0x162c7a,_0x49bb03;return((_0x162c7a=_0x5cd979['name'])==null?void 0x0:_0x162c7a[_0x18d4c9(0x229)]())||((_0x49bb03=_0x5cd979['title'])==null?void 0x0:_0x49bb03[_0x18d4c9(0x229)]())||_0x1a90c1['t']('drawing-ui.objectListPanel.typeNames.'+(0x0,e[_0x18d4c9(0x3ba)])(_0x5cd979[_0x18d4c9(0x37c)]))+'\x20'+(_0x5cfb34+0x1);}function mt({PanelComponent:_0x3b18b9=d[_0xac088e(0x207)]}){const _0x5dffc1=_0xac088e;let _0x5a532b=(0x0,n['useDependency'])(o[_0x5dffc1(0x2e2)]),_0x55c1cc={'title':_0x5a532b['t']('drawing-ui.objectListPanel.title'),'empty':_0x5a532b['t'](_0x5dffc1(0x26b)),'showAll':_0x5a532b['t'](_0x5dffc1(0x33d)),'hideAll':_0x5a532b['t'](_0x5dffc1(0x49c)),'lockAll':_0x5a532b['t'](_0x5dffc1(0x49e)),'unlockAll':_0x5a532b['t'](_0x5dffc1(0x358)),'moveForward':_0x5a532b['t'](_0x5dffc1(0x346)),'moveBackward':_0x5a532b['t'](_0x5dffc1(0x317)),'close':_0x5a532b['t'](_0x5dffc1(0x2d3)),'show':_0x5a532b['t'](_0x5dffc1(0x429)),'hide':_0x5a532b['t'](_0x5dffc1(0x3db)),'lock':_0x5a532b['t'](_0x5dffc1(0x42a)),'unlock':_0x5a532b['t'](_0x5dffc1(0x234)),'lockHint':_0x5a532b['t'](_0x5dffc1(0x478)),'unlockHint':_0x5a532b['t'](_0x5dffc1(0x417)),'name':_0x5a532b['t']('drawing-ui.objectListPanel.name'),'nameInput':_0x5a532b['t'](_0x5dffc1(0x44d)),'description':_0x5a532b['t'](_0x5dffc1(0x25b)),'descriptionPlaceholder':_0x5a532b['t'](_0x5dffc1(0x343)),'details':_0x5a532b['t']('drawing-ui.objectListPanel.details'),'noSelection':_0x5a532b['t'](_0x5dffc1(0x336)),'locate':_0x5a532b['t'](_0x5dffc1(0x338)),'expand':_0x5a532b['t'](_0x5dffc1(0x1fc)),'collapse':_0x5a532b['t'](_0x5dffc1(0x4bc)),'dragToReorder':_0x5a532b['t'](_0x5dffc1(0x2e3)),'search':_0x5a532b['t']('drawing-ui.objectListPanel.search'),'filterAll':_0x5a532b['t']('drawing-ui.objectListPanel.filterAll'),'filterHidden':_0x5a532b['t'](_0x5dffc1(0x337)),'filterLocked':_0x5a532b['t'](_0x5dffc1(0x23d)),'sectionCanvas':_0x5a532b['t']('drawing-ui.objectListPanel.sectionCanvas'),'sectionFloating':_0x5a532b['t'](_0x5dffc1(0x43b))},_0x40d849=(0x0,n[_0x5dffc1(0x46d)])(o[_0x5dffc1(0x2cf)]),_0x22b3c8=(0x0,n[_0x5dffc1(0x46d)])(o[_0x5dffc1(0x257)]),_0x237bc7=(0x0,n[_0x5dffc1(0x46d)])(c[_0x5dffc1(0x31e)]),_0x3a596a=(0x0,n['useDependency'])(u['IDrawingManagerService']),_0x11789a=(0x0,n[_0x5dffc1(0x46d)])(l[_0x5dffc1(0x1f4)]),[,_0x330f62]=(0x0,v[_0x5dffc1(0x2d0)])(_0x2c8622=>_0x2c8622+0x1,0x0),_0x4114ef=_0x22b3c8[_0x5dffc1(0x3c7)](o[_0x5dffc1(0x230)]['UNIVER_DOC']),_0x4510f3=(_0x4114ef==null?void 0x0:_0x4114ef[_0x5dffc1(0x389)]())??'',_0x2cf5c9=_0x4510f3,_0x3af058=(0x0,n['useObservable'])(()=>_0x3a596a['focus$'],_0x3a596a['getFocusDrawings'](),!0x1,[_0x3a596a]);(0x0,v[_0x5dffc1(0x48d)])(()=>{let _0xf86c53=_0x40d849['onCommandExecuted'](()=>_0x330f62());return()=>_0xf86c53['dispose']();},[_0x40d849]);let _0x47968d=_0x4510f3?_0x237bc7['getDrawingData'](_0x4510f3,_0x2cf5c9):{},_0x23a82b=(_0x4510f3?_0x237bc7[_0x5dffc1(0x33f)](_0x4510f3,_0x2cf5c9):[])[_0x5dffc1(0x2a4)](_0xa05ed=>_0x47968d[_0xa05ed])[_0x5dffc1(0x399)](_0x3239c9=>!!_0x3239c9)[_0x5dffc1(0x4ef)](),_0x3b37e1=_0x23a82b['reduce']((_0x1dda06,_0x554672)=>(_0x1dda06[(0x0,d['getObjectListPanelSectionIdForDrawingType'])(_0x554672[_0x5dffc1(0x37c)])]+=0x1,_0x1dda06),{'canvas':0x0,'floating':0x0}),_0x44f5ea={'canvas':0x0,'floating':0x0},_0x53ec84=_0x23a82b[_0x5dffc1(0x2a4)]((_0x29e1a2,_0x374964)=>{const _0xfe33be=_0x5dffc1;let _0xed35b2=(0x0,d[_0xfe33be(0x2d2)])(_0x29e1a2[_0xfe33be(0x37c)]),_0xa59d1f=_0xed35b2===d[_0xfe33be(0x3f2)],_0x14272c=_0x44f5ea[_0xed35b2]++;return{'id':_0x29e1a2[_0xfe33be(0x270)],'name':pt(_0x29e1a2,_0x374964,_0x5a532b),'description':_0x29e1a2[_0xfe33be(0x3e8)],'visible':_0x29e1a2['hidden']!==!0x0,'selectable':_0x29e1a2[_0xfe33be(0x4aa)]!==!0x1,'sectionId':_0xed35b2,'sectionTitle':_0xa59d1f?_0x55c1cc[_0xfe33be(0x29c)]:_0x55c1cc[_0xfe33be(0x353)],'capabilities':_0xa59d1f?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0xa59d1f&&_0x14272c>0x0,'canMoveBackward':!_0xa59d1f&&_0x14272c<_0x3b37e1[_0xfe33be(0x3cd)]-0x1,'canReorder':!_0xa59d1f};}),_0xc3fc87=(0x0,v[_0x5dffc1(0x452)])(()=>(_0x3af058??[])[_0x5dffc1(0x399)](_0x1d217a=>_0x1d217a[_0x5dffc1(0x2e6)]===_0x4510f3&&_0x1d217a[_0x5dffc1(0x390)]===_0x2cf5c9)[_0x5dffc1(0x2a4)](_0x1b3d0d=>_0x1b3d0d[_0x5dffc1(0x270)]),[_0x3af058,_0x2cf5c9,_0x4510f3]),_0x496fbb=_0xc3fc87[_0xc3fc87[_0x5dffc1(0x1ee)]-0x1]??null,_0x1a6356=_0x31ee3d=>_0x237bc7[_0x5dffc1(0x331)]({'unitId':_0x4510f3,'subUnitId':_0x2cf5c9,'drawingId':_0x31ee3d})??null,_0x232c44=async _0x2547f7=>{const _0x38638=_0x5dffc1;_0x4510f3&&_0x2547f7[_0x38638(0x1ee)]&&await _0x40d849[_0x38638(0x290)](r[_0x38638(0x3fe)]['id'],{'unitId':_0x4510f3,'patches':_0x2547f7});},_0x59cc0f=(_0xb73000,_0x3dcae6)=>{const _0x471546=_0x5dffc1;if(!_0x4510f3)return;let _0x51b8a9=_0x3dcae6?_0xc3fc87['includes'](_0xb73000)?_0xc3fc87[_0x471546(0x399)](_0x18789a=>_0x18789a!==_0xb73000):[..._0xc3fc87,_0xb73000]:[_0xb73000];_0x40d849[_0x471546(0x1e1)](u[_0x471546(0x49d)]['id'],_0x51b8a9['map'](_0x424b34=>({'unitId':_0x4510f3,'subUnitId':_0x2cf5c9,'drawingId':_0x424b34})));let _0x5116f0=_0x51b8a9[_0x51b8a9['length']-0x1];_0x5116f0?(0x0,e[_0x471546(0x33a)])(_0x11789a,{'unitId':_0x4510f3,'subUnitId':_0x2cf5c9,'drawingId':_0x5116f0}):(0x0,e[_0x471546(0x315)])(_0x11789a,_0x4510f3);},_0xd8a1fe=async(_0x60d0e4,_0x16e9be)=>{const _0x12d99a=_0x5dffc1;await _0x232c44(_0x60d0e4[_0x12d99a(0x2a4)](_0x529807=>_0x1a6356(_0x529807))[_0x12d99a(0x399)](_0xed51ae=>!!_0xed51ae)['filter'](_0x32666c=>_0x32666c[_0x12d99a(0x2e4)]!==!0x0!==_0x16e9be)[_0x12d99a(0x2a4)](_0x138874=>({'drawingId':_0x138874['drawingId'],'hidden':!_0x16e9be})));},_0x17e4ad=async(_0x1a61b9,_0xe21464)=>{const _0x461ea5=_0x5dffc1;await _0x232c44(_0x1a61b9['map'](_0x42bbb3=>_0x1a6356(_0x42bbb3))['filter'](_0x1c726a=>!!_0x1c726a)[_0x461ea5(0x399)](_0x2edd29=>_0x2edd29[_0x461ea5(0x4aa)]!==!0x1!==_0xe21464)[_0x461ea5(0x2a4)](_0x4a2c1b=>({'drawingId':_0x4a2c1b[_0x461ea5(0x270)],'selectable':_0xe21464})));},_0x257fa5=_0x2b8571=>{const _0x4347a6=_0x5dffc1;let _0x2a4d1a=_0x1a6356(_0x2b8571);if(_0x2a4d1a)return _0x17e4ad([_0x2b8571],_0x2a4d1a[_0x4347a6(0x4aa)]===!0x1);},_0x23ac8d=async(_0x39a17d,_0x5d7d00)=>{const _0x5759f5=_0x5dffc1;let _0x2e1b82=_0x1a6356(_0x39a17d),_0x411101=ft(_0x5d7d00);!_0x2e1b82||(_0x2e1b82['name']??void 0x0)===_0x411101&&(_0x2e1b82[_0x5759f5(0x3ea)]||void 0x0)===_0x411101||await _0x232c44([{'drawingId':_0x39a17d,'name':_0x411101,'title':_0x411101}]);},_0x14db0d=async(_0x5e9c64,_0x3021cc)=>{const _0x625f13=_0x5dffc1;let _0xfa9c43=_0x1a6356(_0x5e9c64),_0x3dd209=ft(_0x3021cc);_0xfa9c43&&(_0xfa9c43[_0x625f13(0x3e8)]??void 0x0)!==_0x3dd209&&await _0x232c44([{'drawingId':_0x5e9c64,'description':_0x3dd209}]);},_0x523401=async(_0x4a5746,_0x7bc81c)=>{const _0x1d9feb=_0x5dffc1;_0x4510f3&&await _0x40d849[_0x1d9feb(0x290)](c[_0x1d9feb(0x1dd)]['id'],{'unitId':_0x4510f3,'subUnitId':_0x2cf5c9,'drawingIds':[_0x4a5746],'arrangeType':_0x7bc81c});};return _0x4510f3?(0x0,f[_0x5dffc1(0x4de)])(_0x3b18b9,{'labels':_0x55c1cc,'renderPermissionAction':_0x255791=>_0x4114ef?(0x0,f[_0x5dffc1(0x4de)])(n[_0x5dffc1(0x388)],{'target':{'unitId':_0x4510f3,'objectId':(0x0,s[_0x5dffc1(0x1fe)])((0x0,s['getDocumentDrawingSegmentId'])(_0x4114ef,_0x255791['id']),_0x5dffc1(0x1e4),_0x255791['id']),'objectType':y[_0x5dffc1(0x48b)][_0x5dffc1(0x2ab)]},'name':_0x255791[_0x5dffc1(0x4b1)],'commandId':s[_0x5dffc1(0x312)]['id'],'exists':()=>!!_0x1a6356(_0x255791['id'])},_0x4510f3+'/'+_0x255791['id']):null,'items':_0x53ec84,'selectedIds':_0xc3fc87,'focusedId':_0x496fbb,'showHeader':!0x1,'onSelect':_0x59cc0f,'onSetVisible':_0xd8a1fe,'onSetSelectable':_0x17e4ad,'onCommitName':_0x23ac8d,'onCommitDescription':_0x14db0d,'onMoveForward':async _0x381acc=>_0x523401(_0x381acc,o['ArrangeTypeEnum'][_0x5dffc1(0x2ec)]),'onMoveBackward':async _0x11f891=>_0x523401(_0x11f891,o[_0x5dffc1(0x4ce)]['backward']),'onToggleSelectable':_0x257fa5}):(0x0,f['jsx'])('div',{'className':_0x5dffc1(0x308),'children':_0x55c1cc[_0x5dffc1(0x3ea)]});}function ht(){const _0x51168d=_0xac088e;return(0x0,f[_0x51168d(0x4de)])(mt,{'PanelComponent':d[_0x51168d(0x3cf)]});}let J=class{constructor(_0x464531){const _0x41eb0d=_0xac088e;this[_0x41eb0d(0x2a7)]=_0x464531;}['updateShapeFillImage'](_0x2f6449,_0x3cb6e4){const _0x5072b7=_0xac088e;let _0x1d382d=this['_renderManagerService'][_0x5072b7(0x4bd)](_0x2f6449[_0x5072b7(0x2e6)]),_0x4b91a0=_0x1d382d==null?void 0x0:_0x1d382d[_0x5072b7(0x4cc)];if(!_0x4b91a0)return;let _0x5a489e=(0x0,u['getDrawingShapeKeyByDrawingSearch'])(_0x2f6449),_0x2fb487=_0x4b91a0[_0x5072b7(0x4a1)](_0x5a489e);_0x2fb487==null||_0x2fb487['setFillImage'](_0x3cb6e4);}};J=I([F(0x0,l[_0xac088e(0x1f4)])],J);function gt(){const _0x1a74ca=_0xac088e;let _0x36d834=(0x0,n[_0x1a74ca(0x46d)])(u[_0x1a74ca(0x4ba)]),_0x143dbb=(0x0,n['useObservable'])(()=>_0x36d834['focus$'],_0x36d834[_0x1a74ca(0x2f0)](),!0x1,[_0x36d834]);return _0x143dbb['length']===0x0?null:(0x0,f['jsx'])(_0x1a74ca(0x274),{'children':(0x0,f[_0x1a74ca(0x3f1)])(_0x1a74ca(0x274),{'className':_0x1a74ca(0x461),'children':[(0x0,f[_0x1a74ca(0x4de)])(d[_0x1a74ca(0x4d0)],{'drawings':_0x143dbb,'hasCropper':!0x1}),(0x0,f['jsx'])(h[_0x1a74ca(0x3b4)],{'drawings':_0x143dbb}),(0x0,f[_0x1a74ca(0x4de)])(h['DocDrawingPosition'],{'drawings':_0x143dbb})]})});}function _t(_0x3351a8){const _0x24e2e0=_0xac088e;let {unitId:_0x293e5c,subUnitId:_0x53ee45,shapeId:_0x5b7e05,PositionComponent:_0x19d2ed=gt}=_0x3351a8,_0x237abb=(0x0,n['useDependency'])(o[_0x24e2e0(0x2cf)]),_0x1e331d=(0x0,n[_0x24e2e0(0x46d)])(J);return(0x0,f[_0x24e2e0(0x4de)])(e[_0x24e2e0(0x236)],{..._0x3351a8,'positionEditor':(0x0,f[_0x24e2e0(0x4de)])(_0x19d2ed,{}),'onUpdateShapeData':(_0x23e196,_0xcbb3eb)=>{R(_0x237abb,_0x293e5c,_0x53ee45,_0x5b7e05,_0x23e196,_0xcbb3eb);},'onUpdateLineShapeData':(_0x4ffc06,_0x252004)=>{fe(_0x237abb,_0x293e5c,_0x53ee45,_0x5b7e05,_0x4ffc06,_0x252004);},'onUpdateShapeFillImage':_0x5ef067=>{_0x1e331d['updateShapeFillImage']({'unitId':_0x293e5c,'subUnitId':_0x53ee45,'drawingId':_0x5b7e05},_0x5ef067);}});}function vt(){const _0x51117f=_0xac088e;let _0x3038d3=(0x0,n[_0x51117f(0x46d)])(u['IDrawingManagerService']),_0x55a55d=(0x0,n[_0x51117f(0x3f6)])(_0x3038d3[_0x51117f(0x22d)],_0x3038d3[_0x51117f(0x2f0)]());return _0x55a55d[_0x51117f(0x1ee)]===0x0?null:(0x0,f[_0x51117f(0x3f1)])(_0x51117f(0x274),{'className':_0x51117f(0x4cb),'children':[(0x0,f[_0x51117f(0x4de)])(d[_0x51117f(0x4d0)],{'drawings':_0x55a55d,'hasCropper':!0x1}),(0x0,f[_0x51117f(0x4de)])(h[_0x51117f(0x22f)],{'drawings':_0x55a55d}),(0x0,f[_0x51117f(0x4de)])(h['MobileDocDrawingPosition'],{'drawings':_0x55a55d})]});}function yt(_0x4f855a){const _0x23ae63=_0xac088e;return(0x0,f[_0x23ae63(0x4de)])(e[_0x23ae63(0x3ec)],{'children':(0x0,f['jsx'])(_t,{..._0x4f855a,'PositionComponent':vt})});}function bt({popup:_0x483ac5}){const _0x52e3d4=_0xac088e;let _0x2d6c4c=(0x0,n[_0x52e3d4(0x46d)])(o[_0x52e3d4(0x2e2)]),{shapeType:_0x2dd5c1,onText:_0x50e493,onStyle:_0x2b4abe,onDelete:_0x5435cd}=_0x483ac5['extraProps'],_0x3be674=[{'key':_0x52e3d4(0x37e),'order':0x0,'item':{'id':_0x52e3d4(0x37e),'type':n[_0x52e3d4(0x2e0)][_0x52e3d4(0x3c1)],'title':_0x2d6c4c['t'](_0x52e3d4(0x368)),'disabled$':(0x0,p['of'])((0x0,i[_0x52e3d4(0x471)])(_0x2dd5c1))}},{'key':_0x52e3d4(0x404),'order':0x1,'item':{'id':_0x52e3d4(0x404),'type':n[_0x52e3d4(0x2e0)][_0x52e3d4(0x3c1)],'title':_0x2d6c4c['t'](_0x52e3d4(0x271))}},{'key':'delete','order':0x2,'item':{'id':_0x52e3d4(0x488),'type':n[_0x52e3d4(0x2e0)][_0x52e3d4(0x3c1)],'title':_0x2d6c4c['t']('docs-shape-ui.mobile.delete')}}];return(0x0,f['jsx'])(n['MobileMenu'],{'schemas':_0x3be674,'presentation':_0x52e3d4(0x4a4),'onOptionSelect':async({id:_0x21d54a})=>{const _0x395f61=_0x52e3d4;_0x21d54a===_0x395f61(0x37e)?await _0x50e493():_0x21d54a===_0x395f61(0x404)?await _0x2b4abe():_0x21d54a===_0x395f61(0x488)&&await _0x5435cd();}});}const xt=_0xac088e(0x410);function St(_0x185af9,_0x3f7c5f){const _0x52df0f=_0xac088e;var _0x929fe2;let _0x12c11a=_0x185af9==null||(_0x929fe2=_0x185af9[_0x52df0f(0x3f5)]()[_0x52df0f(0x2f9)])==null?void 0x0:_0x929fe2[_0x3f7c5f];return _0x12c11a?_0x12c11a[_0x52df0f(0x39e)]===o[_0x52df0f(0x2c1)][_0x52df0f(0x1e6)]?_0x12c11a['behindDoc']===o['BooleanNumber'][_0x52df0f(0x3d4)]?c[_0x52df0f(0x4d5)][_0x52df0f(0x2a1)]:c[_0x52df0f(0x4d5)][_0x52df0f(0x285)]:_0x12c11a[_0x52df0f(0x39e)]===o[_0x52df0f(0x2c1)][_0x52df0f(0x330)]?c[_0x52df0f(0x4d5)][_0x52df0f(0x330)]:_0x12c11a[_0x52df0f(0x39e)]===o[_0x52df0f(0x2c1)]['WRAP_TOP_AND_BOTTOM']?c[_0x52df0f(0x4d5)][_0x52df0f(0x4ab)]:c[_0x52df0f(0x4d5)][_0x52df0f(0x255)]:c['TextWrappingStyle'][_0x52df0f(0x255)];}function Ct(_0x13d04e){const _0x307530=_0xac088e;let _0x328d88=(0x0,n[_0x307530(0x46d)])(e[_0x307530(0x37b)]),_0x36c8d0=(0x0,n[_0x307530(0x3f6)])(()=>_0x328d88[_0x307530(0x44e)],_0x328d88[_0x307530(0x32a)](),!0x1,[_0x328d88]),_0x33104d=_0x13d04e[_0x307530(0x49a)][_0x307530(0x47c)];return _0x36c8d0?(0x0,f['jsx'])(wt,{..._0x33104d,'canvasElement':_0x13d04e[_0x307530(0x49a)][_0x307530(0x40f)]}):null;}function wt(_0x5d26c7){const _0x2bccf3=_0xac088e;let _0x472e21=(0x0,n['useDependency'])(o['ICommandService']),_0x27d293=(0x0,n[_0x2bccf3(0x46d)])(o['LocaleService']),_0xb59405=(0x0,n[_0x2bccf3(0x46d)])(r[_0x2bccf3(0x326)]),_0x1d9025=(0x0,n[_0x2bccf3(0x46d)])(o['IUniverInstanceService']),{unitId:_0x3b13d8,subUnitId:_0x30e020,drawingId:_0x4425b4,shapeType:_0x3cc926}=_0x5d26c7,[_0x2605f5,_0x3e091f]=(0x0,v[_0x2bccf3(0x46f)])(_0x5d26c7[_0x2bccf3(0x485)]),_0x193346=_0x1d9025[_0x2bccf3(0x2cc)](_0x3b13d8,o['UniverInstanceType'][_0x2bccf3(0x2ba)])??void 0x0,[_0x2fda7a,_0x495b58]=(0x0,v[_0x2bccf3(0x46f)])(()=>St(_0x193346,_0x4425b4)),_0x3b6ed0=(0x0,v['useMemo'])(()=>(0x0,e['getTextStyle'])(_0x2605f5),[_0x2605f5]),_0xf5cb8c=(0x0,v[_0x2bccf3(0x452)])(()=>(0x0,e[_0x2bccf3(0x1f0)])(_0x2605f5),[_0x2605f5]);(0x0,v['useEffect'])(()=>{const _0x1e0a72=_0x2bccf3;let _0x488860=_0x472e21[_0x1e0a72(0x25e)](_0x2a2830=>{const _0xb59aff=_0x1e0a72;if(_0x2a2830['id']!==r[_0xb59aff(0x28b)]['id'])return;let _0x408d6e=_0xb59405['getShapeDataById'](_0x3b13d8,_0x30e020,_0x4425b4);_0x408d6e&&_0x3e091f(_0x408d6e);});return()=>_0x488860[_0x1e0a72(0x45f)]();},[_0x472e21,_0xb59405,_0x4425b4,_0x30e020,_0x3b13d8]);let _0x1a69f8=_0x225fde=>{_0x3e091f(_0x54dca7=>({..._0x54dca7,..._0x225fde}));},_0x3b40e1=_0x49e248=>{const _0xd6e720=_0x2bccf3;let _0x5b5f3f=(0x0,e[_0xd6e720(0x233)])(_0x2605f5,_0x49e248);R(_0x472e21,_0x3b13d8,_0x30e020,_0x4425b4,{'oldShapeData':{'shapeText':_0x2605f5['shapeText']}},_0x5b5f3f),_0x1a69f8(_0x5b5f3f);},_0xea71a=_0x24ca01=>{const _0x4fab3d=_0x2bccf3;_0x495b58(_0x24ca01),_0x472e21[_0x4fab3d(0x290)](c[_0x4fab3d(0x437)]['id'],{'unitId':_0x3b13d8,'subUnitId':_0x30e020,'drawings':[{'unitId':_0x3b13d8,'subUnitId':_0x30e020,'drawingId':_0x4425b4}],'wrappingStyle':_0x24ca01});},_0x3ab06e=(0x0,e[_0x2bccf3(0x304)])({'hostType':o[_0x2bccf3(0x230)][_0x2bccf3(0x2ba)],'unitId':_0x3b13d8,'subUnitId':_0x30e020,'shapeId':_0x4425b4,'shapeData':_0x2605f5,'onUpdateBinding':_0x4ebcb4=>{const _0x2870d8=_0x2bccf3;let _0x3738a0={'formulaBinding':_0x4ebcb4};R(_0x472e21,_0x3b13d8,_0x30e020,_0x4425b4,{'oldShapeData':{'formulaBinding':_0x2605f5[_0x2870d8(0x3f7)]}},_0x3738a0),_0x1a69f8(_0x3738a0);}}),_0x214f22=[{'label':_0x27d293['t'](_0x2bccf3(0x1fd)),'value':c[_0x2bccf3(0x4d5)][_0x2bccf3(0x255)],'icon':(0x0,f[_0x2bccf3(0x4de)])(g[_0x2bccf3(0x212)],{})},{'label':_0x27d293['t'](_0x2bccf3(0x3df)),'value':c[_0x2bccf3(0x4d5)][_0x2bccf3(0x330)],'icon':(0x0,f[_0x2bccf3(0x4de)])(g['TextWrapShapeIcon'],{})},{'label':_0x27d293['t'](_0x2bccf3(0x30c)),'value':c[_0x2bccf3(0x4d5)][_0x2bccf3(0x4ab)],'icon':(0x0,f[_0x2bccf3(0x4de)])(g[_0x2bccf3(0x212)],{})},{'label':_0x27d293['t'](_0x2bccf3(0x2b5)),'value':c[_0x2bccf3(0x4d5)][_0x2bccf3(0x2a1)],'icon':(0x0,f[_0x2bccf3(0x4de)])(g[_0x2bccf3(0x212)],{})},{'label':_0x27d293['t'](_0x2bccf3(0x46a)),'value':c['TextWrappingStyle'][_0x2bccf3(0x285)],'icon':(0x0,f[_0x2bccf3(0x4de)])(g[_0x2bccf3(0x212)],{})}];return(0x0,f['jsxs'])(f['Fragment'],{'children':[(0x0,f[_0x2bccf3(0x4de)])(e[_0x2bccf3(0x360)],{'canvasElement':_0x5d26c7[_0x2bccf3(0x40f)],'shapeData':_0x2605f5,'shapeType':_0x3cc926,'textStyle':{'ff':i[_0x2bccf3(0x458)]['shapeText']['fontFamily'],'fs':i[_0x2bccf3(0x458)][_0x2bccf3(0x4bb)][_0x2bccf3(0x1e3)],'cl':{'rgb':i['ShapeDefaultConfig']['shapeText'][_0x2bccf3(0x4e3)]},..._0x3b6ed0},'textModel':_0xf5cb8c?{'ha':_0xf5cb8c['ha']??o['HorizontalAlign'][_0x2bccf3(0x1fa)],'va':_0xf5cb8c['va']??o[_0x2bccf3(0x48a)][_0x2bccf3(0x34b)]}:null,'wrappingStyle':_0x2fda7a,'wrappingStyleOptions':_0x214f22,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':i[_0x2bccf3(0x458)][_0x2bccf3(0x3a5)],'defaultGradientEndColor':i['ShapeDefaultConfig'][_0x2bccf3(0x26c)],'defaultStrokeColor':i['ShapeDefaultConfig'][_0x2bccf3(0x4fb)],'extensionGroups':_0x3ab06e[_0x2bccf3(0x301)],'floatingObjectToolbarPosition':n[_0x2bccf3(0x2de)]['DOC'],'onUpdateShapeData':(_0x15af74,_0xa96554)=>{R(_0x472e21,_0x3b13d8,_0x30e020,_0x4425b4,_0x15af74,_0xa96554),_0xa96554&&_0x1a69f8(_0xa96554);},'onUpdateText':_0x3b40e1,'onUpdateWrappingStyle':_0x55ed42=>_0xea71a(_0x55ed42),'onOpenPanel':()=>{_0x472e21['executeCommand'](j['id'],{'unitId':_0x3b13d8,'subUnitId':_0x30e020,'drawingId':_0x4425b4});},'onDelete':()=>{_0x472e21['executeCommand'](c['RemoveDocDrawingCommand']['id'],{'unitId':_0x3b13d8,'drawings':[{'unitId':_0x3b13d8,'subUnitId':_0x30e020,'drawingId':_0x4425b4}]});}}),_0x3ab06e['panel']]});}function Tt({variant:_0x361a7d,extend:_0x970e4b,..._0x7f0779}){const _0x394717=_0xac088e;let _0x58d345=(0x0,f['jsx'])('rect',{'x':'7','y':_0x394717(0x4c8),'width':'6','height':'9','rx':'1','fill':_0x394717(0x459),'fillOpacity':_0x394717(0x4ec),'stroke':_0x394717(0x459),'strokeWidth':_0x394717(0x3bc)});return(0x0,f[_0x394717(0x3f1)])(_0x394717(0x307),{'aria-hidden':'true','fill':_0x394717(0x4fc),'height':_0x394717(0x321),'viewBox':_0x394717(0x2ff),'width':_0x394717(0x321),..._0x7f0779,'children':[_0x361a7d===_0x394717(0x4c5)&&(0x0,f[_0x394717(0x3f1)])(f[_0x394717(0x4b4)],{'children':[(0x0,f[_0x394717(0x4de)])('path',{'d':_0x394717(0x464),'stroke':_0x394717(0x459),'strokeLinecap':'round','strokeWidth':'1.2'}),(0x0,f[_0x394717(0x4de)])(_0x394717(0x32c),{'x':'8','y':'7','width':'4','height':'6','rx':_0x394717(0x215),'fill':'currentColor','fillOpacity':_0x394717(0x4ec),'stroke':_0x394717(0x459),'strokeWidth':_0x394717(0x3bc)})]}),_0x361a7d===_0x394717(0x4d4)&&(0x0,f[_0x394717(0x3f1)])(f[_0x394717(0x4b4)],{'children':[(0x0,f[_0x394717(0x4de)])('path',{'d':_0x394717(0x3b2),'stroke':_0x394717(0x459),'strokeLinecap':_0x394717(0x213),'strokeWidth':_0x394717(0x3bc)}),_0x58d345]}),_0x361a7d===_0x394717(0x3da)&&(0x0,f[_0x394717(0x3f1)])(f[_0x394717(0x4b4)],{'children':[(0x0,f[_0x394717(0x4de)])(_0x394717(0x3e4),{'d':'M2\x203h16M2\x2017h16','stroke':_0x394717(0x459),'strokeLinecap':_0x394717(0x213),'strokeWidth':'1.2'}),_0x58d345]}),_0x361a7d===_0x394717(0x489)&&(0x0,f['jsxs'])(f[_0x394717(0x4b4)],{'children':[_0x58d345,(0x0,f[_0x394717(0x4de)])(_0x394717(0x3e4),{'d':'M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','stroke':_0x394717(0x459),'strokeLinecap':'round','strokeWidth':_0x394717(0x3bc)})]}),_0x361a7d==='front'&&(0x0,f[_0x394717(0x3f1)])(f['Fragment'],{'children':[(0x0,f[_0x394717(0x4de)])('path',{'d':_0x394717(0x4be),'stroke':_0x394717(0x459),'strokeLinecap':_0x394717(0x213),'strokeWidth':_0x394717(0x3bc)}),(0x0,f[_0x394717(0x4de)])(_0x394717(0x32c),{'x':'7','y':_0x394717(0x4c8),'width':'6','height':'9','rx':'1','fill':_0x394717(0x459)})]})]});}const Y=_0x33718d=>_0x4af264=>(0x0,f['jsx'])(Tt,{..._0x4af264,'variant':_0x33718d}),Et={'DocsShapeWrapInlineIcon':Y(_0xac088e(0x4c5)),'DocsShapeWrapSquareIcon':Y(_0xac088e(0x4d4)),'DocsShapeWrapTopBottomIcon':Y(_0xac088e(0x3da)),'DocsShapeWrapBehindTextIcon':Y(_0xac088e(0x489)),'DocsShapeWrapInFrontOfTextIcon':Y('front')},Dt=(0x0,v[_0xac088e(0x2a0)])(()=>{const _0x23c878=_0xac088e;let _0x2cb84d=(0x0,n[_0x23c878(0x46d)])(G),_0x1e4caa=(0x0,n[_0x23c878(0x46d)])(r[_0x23c878(0x326)]),_0x55e6c6=(0x0,n['useDependency'])(u[_0x23c878(0x4ba)]),_0x40bed4=(0x0,n[_0x23c878(0x46d)])(o['ICommandService']),_0x47ba63=(0x0,v['useMemo'])(()=>({'getShapeModel':(_0x576ace,_0x3696b3,_0x1b03e9)=>_0x1e4caa[_0x23c878(0x3a7)](_0x576ace,_0x3696b3,_0x1b03e9),'getShapeData':(_0x39e562,_0x490363,_0x4e2b9b)=>_0x1e4caa[_0x23c878(0x4d8)](_0x39e562,_0x490363,_0x4e2b9b),'getDrawingTransform':(_0x53be2e,_0x4d421c,_0x307dae)=>{const _0x2fa881=_0x23c878;let _0x315887=_0x55e6c6[_0x2fa881(0x331)]({'unitId':_0x53be2e,'subUnitId':_0x4d421c,'drawingId':_0x307dae});return _0x315887==null?void 0x0:_0x315887[_0x2fa881(0x39c)];},'updateShapeText':({unitId:_0x3433c9,shapeId:_0x1c6b6c,shapeText:_0x5fd64f,oldShapeText:_0x2b1c70})=>{const _0x1442a4=_0x23c878;_0x40bed4[_0x1442a4(0x290)](r[_0x1442a4(0x218)]['id'],{'unitId':_0x3433c9,'shapeId':_0x1c6b6c,'shapeData':{'shapeText':_0x5fd64f},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x2b1c70}}});},'updateHostSize':({unitId:_0x2c8e59,subUnitId:_0x72b3a8,shapeId:_0x972877,width:_0x17f2bf,height:_0x47a30d})=>{const _0x38d432=_0x23c878;_0x40bed4[_0x38d432(0x290)](c['UpdateDrawingDocTransformCommand']['id'],{'unitId':_0x2c8e59,'subUnitId':_0x72b3a8,'drawings':[{'drawingId':_0x972877,'key':_0x38d432(0x40c),'value':{'width':_0x17f2bf,'height':_0x47a30d}}]});},'allowHostSizeShrink':({unitId:_0x35d622,subUnitId:_0x27f6ab,shapeId:_0x100de9})=>(0x0,e['shouldAllowShapeTextEditorHostSizeShrink'])(_0x1e4caa['getShapeDataById'](_0x35d622,_0x27f6ab,_0x100de9))}),[_0x40bed4,_0x1e4caa,_0x55e6c6]),_0x5dffcc=(0x0,v[_0x23c878(0x452)])(()=>({'viewportKeys':{'main':t[_0x23c878(0x418)]['VIEW_MAIN']}}),[]);return(0x0,f['jsx'])(e['ShapeTextEditorContainer'],{'adapter':_0x47ba63,'editingService':_0x2cb84d,'editorUnitId':D,'positionOptions':_0x5dffcc});});let Ot=class extends o[_0xac088e(0x1d9)]{constructor(_0x1e464f,_0x41775a){const _0x332cbf=_0xac088e;super(),this[_0x332cbf(0x2fc)]=_0x1e464f,this['_iconManager']=_0x41775a,this[_0x332cbf(0x294)](),this[_0x332cbf(0x22a)]();}[_0xac088e(0x294)](){const _0x1fea04=_0xac088e;this[_0x1fea04(0x2dd)]['has']('ObjectLayersIcon')||this['disposeWithMe'](this[_0x1fea04(0x2dd)][_0x1fea04(0x38f)]({'ObjectLayersIcon':g['ObjectLayersIcon']})),this[_0x1fea04(0x2dd)][_0x1fea04(0x23c)]('BottomIcon')||this[_0x1fea04(0x38a)](this['_iconManager']['register']({'BottomIcon':g['BottomIcon']})),this[_0x1fea04(0x2dd)][_0x1fea04(0x23c)]('MoveDownIcon')||this['disposeWithMe'](this['_iconManager']['register']({'MoveDownIcon':g[_0x1fea04(0x4e9)]})),this[_0x1fea04(0x2dd)][_0x1fea04(0x23c)]('MoveUpIcon')||this[_0x1fea04(0x38a)](this[_0x1fea04(0x2dd)][_0x1fea04(0x38f)]({'MoveUpIcon':g[_0x1fea04(0x45c)]})),this['_iconManager'][_0x1fea04(0x23c)](_0x1fea04(0x291))||this[_0x1fea04(0x38a)](this['_iconManager'][_0x1fea04(0x38f)]({'ShapeFormatSettingIcon':g['ShapeFormatSettingIcon']})),this[_0x1fea04(0x2dd)][_0x1fea04(0x23c)](_0x1fea04(0x354))||this[_0x1fea04(0x38a)](this[_0x1fea04(0x2dd)][_0x1fea04(0x38f)]({'TopmostIcon':g[_0x1fea04(0x354)]})),this['disposeWithMe'](this[_0x1fea04(0x2dd)][_0x1fea04(0x38f)](Et));}[_0xac088e(0x22a)](){const _0x386ab6=_0xac088e;this[_0x386ab6(0x38a)](this['_componentManager'][_0x386ab6(0x38f)](w,yt)),this[_0x386ab6(0x38a)](this['_componentManager'][_0x386ab6(0x38f)](E,ht)),this[_0x386ab6(0x38a)](this[_0x386ab6(0x2fc)][_0x386ab6(0x38f)](xt,bt)),this['disposeWithMe'](this[_0x386ab6(0x2fc)]['register'](me,be)),this[_0x386ab6(0x38a)](this['_componentManager']['register'](pe,xe)),this[_0x386ab6(0x38a)](this['_componentManager'][_0x386ab6(0x38f)](he,Se)),this[_0x386ab6(0x38a)](this[_0x386ab6(0x2fc)]['register'](ge,Ce)),this[_0x386ab6(0x38a)](this[_0x386ab6(0x2fc)][_0x386ab6(0x38f)](_e,we)),this[_0x386ab6(0x38a)](this[_0x386ab6(0x2fc)]['register'](O,e['ShapeTextFloatToolbar'])),this[_0x386ab6(0x38a)](this['_componentManager'][_0x386ab6(0x38f)](ee,ut)),this[_0x386ab6(0x38a)](this[_0x386ab6(0x2fc)]['register'](te,dt)),this[_0x386ab6(0x2fc)][_0x386ab6(0x3f8)](d[_0x386ab6(0x25c)])||this[_0x386ab6(0x38a)](this['_componentManager']['register'](d[_0x386ab6(0x25c)],ae)),this[_0x386ab6(0x38a)](this['_componentManager'][_0x386ab6(0x38f)](k,Dt));}};Ot=I([F(0x0,(0x0,o['Inject'])(n['ComponentManager'])),F(0x1,(0x0,o[_0xac088e(0x383)])(n[_0xac088e(0x2f4)]))],Ot);let kt=class extends o[_0xac088e(0x1d9)]{constructor(_0x4fe3ef,_0x8d16f9,_0x41aedc,_0x59090a,_0x49679f,_0x1c94dc,_0x35f923,_0x5e70ea,_0x4fb29f,_0x4eac1a,_0x148e61,_0x4079f3,_0x5284f3){const _0x229a51=_0xac088e;super(),this['_univerInstanceService']=_0x4fe3ef,this['_sidebarService']=_0x8d16f9,this[_0x229a51(0x1da)]=_0x41aedc,this[_0x229a51(0x446)]=_0x59090a,this[_0x229a51(0x4b3)]=_0x49679f,this[_0x229a51(0x483)]=_0x1c94dc,this[_0x229a51(0x31f)]=_0x35f923,this[_0x229a51(0x430)]=_0x5e70ea,this['_renderManagerService']=_0x4fb29f,this[_0x229a51(0x444)]=_0x4eac1a,this[_0x229a51(0x2a5)]=_0x148e61,this[_0x229a51(0x462)]=_0x4079f3,this[_0x229a51(0x4a2)]=_0x5284f3,H(this,_0x229a51(0x2d1),null),H(this,_0x229a51(0x362),null),H(this,_0x229a51(0x402),!0x1),H(this,_0x229a51(0x3e1),0x0),H(this,'_disposePopupsByUnit',new Map()),H(this,'_popupTargetKeys',new Map()),this[_0x229a51(0x223)](),this[_0x229a51(0x38a)](this[_0x229a51(0x278)][_0x229a51(0x2fa)](o[_0x229a51(0x230)][_0x229a51(0x2ba)])[_0x229a51(0x43a)](_0x12cf4c=>{const _0x2ce02a=_0x229a51;if(!_0x12cf4c){var _0x18a798;(_0x18a798=this[_0x2ce02a(0x2d1)])==null||_0x18a798[_0x2ce02a(0x45f)]();}})),this[_0x229a51(0x2c4)](),this['disposeWithMe'](this[_0x229a51(0x31f)]['remove$'][_0x229a51(0x43a)](_0x575633=>{const _0x2ffb75=_0x229a51;for(let _0x337431 of _0x575633){let _0xd83270=_0x337431[_0x2ffb75(0x2e6)]+':'+_0x337431[_0x2ffb75(0x390)]+':'+_0x337431[_0x2ffb75(0x270)];for(let [_0x12e762,_0x4a300d]of this['_popupTargetKeys'])_0x4a300d===_0xd83270&&this[_0x2ffb75(0x21f)](_0x12e762,!0x0);}})),this[_0x229a51(0x38a)]((0x0,e['bindRenderTransformerLifecycle'])(this[_0x229a51(0x2a7)],o[_0x229a51(0x230)][_0x229a51(0x2ba)],_0x238152=>this[_0x229a51(0x2bb)](_0x238152))),this[_0x229a51(0x38a)](this[_0x229a51(0x2a5)]['editingParams$'][_0x229a51(0x43a)](_0x28f732=>{_0x28f732&&this['_clearPopups'](void 0x0,!0x0);})),this['disposeWithMe'](this[_0x229a51(0x462)][_0x229a51(0x4fe)]['subscribe'](()=>{const _0x52d34f=_0x229a51;this[_0x52d34f(0x31f)][_0x52d34f(0x2f0)]()['some'](_0x21269b=>_0x21269b[_0x52d34f(0x37c)]===o[_0x52d34f(0x440)][_0x52d34f(0x2bf)]&&this[_0x52d34f(0x278)][_0x52d34f(0x24e)](_0x21269b[_0x52d34f(0x2e6)])===o[_0x52d34f(0x230)]['UNIVER_DOC']&&!this['_canEditShape'](_0x21269b[_0x52d34f(0x2e6)],_0x21269b[_0x52d34f(0x270)]))&&(this[_0x52d34f(0x21f)](void 0x0,!0x0),this[_0x52d34f(0x3ee)]());}));}[_0xac088e(0x277)](_0x570d9c,_0x10f622,_0x4c1074,_0x1a2c27){const _0x460646=_0xac088e;return[{'label':_0x460646(0x4ee),'index':0x0,'commandId':j['id'],'commandParams':{'unitId':_0x570d9c,'subUnitId':_0x10f622,'drawingId':_0x4c1074},'disable':_0x1a2c27===o[_0x460646(0x440)][_0x460646(0x3ac)]},{'label':_0x460646(0x2a9),'index':0x1,'commandId':c[_0x460646(0x200)]['id'],'commandParams':{'unitId':_0x570d9c,'drawings':[{'unitId':_0x570d9c,'subUnitId':_0x10f622,'drawingId':_0x4c1074}]},'disable':!0x1},{'label':_0x460646(0x2ae),'index':0x2,'commandId':B['id'],'commandParams':{'unitId':_0x570d9c,'subUnitId':_0x10f622,'drawingId':_0x4c1074},'disable':!0x1}];}[_0xac088e(0x223)](){const _0x566c00=_0xac088e;this['_menuManagerService'][_0x566c00(0x284)](Qe);}[_0xac088e(0x2f6)](_0x2989e2,_0x14c50f,_0x221591){const _0x4b9d72=_0xac088e;let _0x1777f4=this['_docsShapeService']['getShapeTypeById'](_0x2989e2,_0x14c50f,_0x221591),_0x4ce385=this[_0x4b9d72(0x446)][_0x4b9d72(0x4d8)](_0x2989e2,_0x14c50f,_0x221591);return _0x1777f4===void 0x0||_0x4ce385===void 0x0?null:{'shapeData':_0x4ce385,'shapeId':_0x221591,'shapeType':_0x1777f4,'unitId':_0x2989e2,'subUnitId':_0x14c50f,'version':this[_0x4b9d72(0x3e1)],'disableShapeOption':!0x1};}[_0xac088e(0x21f)](_0x50f40b,_0x1cfb26=!0x1){const _0x54bef3=_0xac088e;if(_0x50f40b==null){[...this[_0x54bef3(0x268)][_0x54bef3(0x460)]()]['forEach'](_0x5426df=>this['_clearPopups'](_0x5426df,_0x1cfb26));return;}let _0x56c962=this['_disposePopupsByUnit'][_0x54bef3(0x314)](_0x50f40b);if(_0x56c962){for(let _0x3d1ee5=_0x56c962[_0x54bef3(0x1ee)]-0x1;_0x3d1ee5>=0x0;--_0x3d1ee5){let _0x2f200b=_0x56c962[_0x3d1ee5];(_0x1cfb26||_0x2f200b['canDispose']())&&(_0x2f200b[_0x54bef3(0x45f)](),_0x56c962['splice'](_0x3d1ee5,0x1));}_0x56c962['length']===0x0&&(this['_disposePopupsByUnit'][_0x54bef3(0x488)](_0x50f40b),this['_popupTargetKeys'][_0x54bef3(0x488)](_0x50f40b));}}[_0xac088e(0x4e8)](_0x53a77b){const _0x2cbf6e=_0xac088e;let _0x4d7daf=this[_0x2cbf6e(0x268)]['get'](_0x53a77b);if(_0x4d7daf)return _0x4d7daf;let _0x55ae98=[];return this['_disposePopupsByUnit'][_0x2cbf6e(0x373)](_0x53a77b,_0x55ae98),_0x55ae98;}[_0xac088e(0x2bb)](_0xbf3a56){const _0x349446=_0xac088e;var _0x28ee51;let _0x1205f1=new o[(_0x349446(0x3f3))](),_0x1b6cae=(_0x28ee51=this['_renderManagerService'][_0x349446(0x254)](o[_0x349446(0x230)]['UNIVER_DOC'])[_0x349446(0x41f)](_0x25ba9d=>_0x25ba9d[_0x349446(0x4cc)][_0x349446(0x2df)]()===_0xbf3a56))==null?void 0x0:_0x28ee51[_0x349446(0x2e6)];return _0x1b6cae&&(_0x1205f1['add'](_0xbf3a56[_0x349446(0x385)][_0x349446(0x43a)](()=>this[_0x349446(0x2fb)](_0xbf3a56,_0x1b6cae))),_0x1205f1['add'](_0xbf3a56[_0x349446(0x455)][_0x349446(0x43a)](()=>{this['_clearPopups'](_0x1b6cae),queueMicrotask(()=>{const _0x212f7e=_0xa70b;_0xbf3a56['getSelectedObjectMap']()[_0x212f7e(0x40c)]>0x0||!this[_0x212f7e(0x31f)][_0x212f7e(0x2f0)]()[_0x212f7e(0x3f9)](_0x3beac7=>_0x3beac7[_0x212f7e(0x2e6)]===_0x1b6cae)||(this['_contextService'][_0x212f7e(0x283)](o[_0x212f7e(0x24d)],!0x1),this['_drawingManagerService'][_0x212f7e(0x2c7)](null));});})),_0x1205f1['add'](_0xbf3a56[_0x349446(0x43f)][_0x349446(0x43a)](()=>{const _0x25613b=_0x349446;this[_0x25613b(0x21f)](_0x1b6cae,!0x0);}))),_0x1205f1;}['_handleCreateControl'](_0x32a92a,_0x4fa17d){const _0x49f2f2=_0xac088e;let _0x337aca=_0x32a92a[_0x49f2f2(0x3a3)]();if(this[_0x49f2f2(0x402)]){this['_clearPopups'](_0x4fa17d,!0x0);return;}if(_0x337aca[_0x49f2f2(0x40c)]>0x1){this[_0x49f2f2(0x21f)](_0x4fa17d);return;}let _0x4767c1=_0x337aca[_0x49f2f2(0x37f)]()[_0x49f2f2(0x1f1)]()[_0x49f2f2(0x201)];if(!_0x4767c1){this['_clearPopups'](_0x4fa17d);return;}let _0x1e2a84=this[_0x49f2f2(0x31f)][_0x49f2f2(0x496)](_0x4767c1[_0x49f2f2(0x299)]);if(!_0x1e2a84||_0x1e2a84[_0x49f2f2(0x37c)]!==o[_0x49f2f2(0x440)][_0x49f2f2(0x2bf)]){this[_0x49f2f2(0x21f)](_0x4fa17d);return;}let {unitId:_0x41ad73,subUnitId:_0x192576,drawingId:_0x1c3bb2}=_0x1e2a84;if(!this['_canEditShape'](_0x41ad73,_0x1c3bb2)){this[_0x49f2f2(0x21f)](_0x4fa17d,!0x0);return;}let _0x14ad7d=this['_getShapeInfo'](_0x41ad73,_0x192576,_0x1c3bb2);if(!_0x14ad7d){this[_0x49f2f2(0x21f)](_0x4fa17d);return;}let _0x44000d=this[_0x49f2f2(0x268)][_0x49f2f2(0x314)](_0x4fa17d),_0x32ca8a=_0x41ad73+':'+_0x192576+':'+_0x1c3bb2;if(this[_0x49f2f2(0x31a)][_0x49f2f2(0x314)](_0x4fa17d)===_0x32ca8a&&_0x44000d!=null&&_0x44000d['length'])return;this[_0x49f2f2(0x21f)](_0x4fa17d);let _0x3eb052=this[_0x49f2f2(0x2a7)][_0x49f2f2(0x4bd)](_0x41ad73),_0x5c659d=((_0x3eb052==null?void 0x0:_0x3eb052['isMainScene'])===!0x1?_0x3eb052[_0x49f2f2(0x3e6)](t[_0x49f2f2(0x4c6)]):this[_0x49f2f2(0x430)])[_0x49f2f2(0x33e)](_0x4767c1,this[_0x49f2f2(0x37a)](_0x14ad7d,()=>this[_0x49f2f2(0x21f)](_0x4fa17d,!0x0)),_0x41ad73);this['disposeWithMe'](_0x5c659d),this['_getDisposePopups'](_0x4fa17d)[_0x49f2f2(0x474)](_0x5c659d),this[_0x49f2f2(0x31a)]['set'](_0x4fa17d,_0x32ca8a),this[_0x49f2f2(0x31f)][_0x49f2f2(0x2f0)]()[_0x49f2f2(0x3f9)](_0x232352=>_0x232352['unitId']===_0x41ad73&&_0x232352[_0x49f2f2(0x390)]===_0x192576&&_0x232352['drawingId']===_0x1c3bb2)||this[_0x49f2f2(0x31f)][_0x49f2f2(0x2c7)]([{'unitId':_0x41ad73,'subUnitId':_0x192576,'drawingId':_0x1c3bb2}]);}[_0xac088e(0x37a)](_0x3fb919,_0x3893fe){const _0x3c1717=_0xac088e;let {unitId:_0x591f25,subUnitId:_0x3fdac,shapeId:_0x23cae0}=_0x3fb919,_0x2c0767={'hostType':o[_0x3c1717(0x230)][_0x3c1717(0x2ba)],'unitId':_0x591f25,'subUnitId':_0x3fdac,'shapeId':_0x23cae0};return{'componentKey':xt,'requiresStableLayout':!0x1,'direction':_0x3c1717(0x238),'offset':[0x0,0x8],'extraProps':{'shapeType':_0x3fb919[_0x3c1717(0x492)],'onText':()=>{const _0x84c527=_0x3c1717;_0x3893fe(),this[_0x84c527(0x4a2)][_0x84c527(0x487)](_0x84c527(0x37e),_0x2c0767);},'onStyle':()=>{const _0x51d648=_0x3c1717;_0x3893fe(),this[_0x51d648(0x4a2)][_0x51d648(0x487)](_0x51d648(0x404),_0x2c0767);},'onDelete':()=>this['_commandService'][_0x3c1717(0x290)](c[_0x3c1717(0x200)]['id'],{'unitId':_0x591f25,'drawings':[{'unitId':_0x591f25,'subUnitId':_0x3fdac,'drawingId':_0x23cae0}]})}};}['_canEditShape'](_0x3e01be,_0x6d96ec){const _0x50eb39=_0xac088e;let _0x222ea2=this['_univerInstanceService'][_0x50eb39(0x2cc)](_0x3e01be,o[_0x50eb39(0x230)][_0x50eb39(0x2ba)]);if(!_0x222ea2)return!0x1;let _0x5a52f0=(0x0,s[_0x50eb39(0x2b6)])(_0x222ea2,_0x6d96ec);return(0x0,s[_0x50eb39(0x376)])(this[_0x50eb39(0x462)],_0x3e01be,[...(0x0,s[_0x50eb39(0x2b7)])(_0x222ea2,_0x5a52f0,'drawing',_0x6d96ec),(0x0,s[_0x50eb39(0x1fe)])(_0x5a52f0,_0x50eb39(0x1e4),_0x6d96ec)]);}[_0xac088e(0x2c4)](){const _0x5f4861=_0xac088e;this[_0x5f4861(0x38a)](this[_0x5f4861(0x483)]['onCommandExecuted'](_0x5214eb=>{const _0x1fce6b=_0x5f4861;if(_0x5214eb['id']===j['id']){let {unitId:_0x27dcbe,subUnitId:_0x55730b,drawingId:_0x33f60b}=_0x5214eb[_0x1fce6b(0x359)];this[_0x1fce6b(0x3e1)]+=0x1,this[_0x1fce6b(0x362)]=this['_getShapeInfo'](_0x27dcbe,_0x55730b,_0x33f60b),this[_0x1fce6b(0x21f)](void 0x0,!0x0),this['_openShapeEditPanel']();}if(_0x5214eb['id']===B['id']&&(this[_0x1fce6b(0x362)]=null,this[_0x1fce6b(0x3ee)]()),_0x5214eb['id']===r[_0x1fce6b(0x28b)]['id']){var _0x451448;let {unitId:_0x3644b4,shapeId:_0x52ff6b}=_0x5214eb['params'];if(((_0x451448=this['_activeShapeInfo'])==null?void 0x0:_0x451448[_0x1fce6b(0x25f)])===_0x52ff6b){let _0x510bd9=this['_getShapeInfo'](_0x3644b4,this[_0x1fce6b(0x362)][_0x1fce6b(0x390)],_0x52ff6b);_0x510bd9&&(this['_shapeEditPanelVersion']+=0x1,_0x510bd9[_0x1fce6b(0x3b8)]=this[_0x1fce6b(0x3e1)],this[_0x1fce6b(0x362)]=_0x510bd9,this[_0x1fce6b(0x402)]&&this[_0x1fce6b(0x227)]());}}})),this[_0x5f4861(0x38a)](this['_drawingManagerService'][_0x5f4861(0x22d)]['subscribe'](_0x130c2a=>{const _0x47c1d6=_0x5f4861;if(!this[_0x47c1d6(0x402)])return;if(_0x130c2a[_0x47c1d6(0x1ee)]===0x0){this['_activeShapeInfo']=null,this[_0x47c1d6(0x3ee)]();return;}if(_0x130c2a[_0x47c1d6(0x1ee)]===0x1&&_0x130c2a[0x0][_0x47c1d6(0x37c)]===o[_0x47c1d6(0x440)][_0x47c1d6(0x2bf)]&&(this['_shapeEditPanelVersion']+=0x1,this[_0x47c1d6(0x362)]=this[_0x47c1d6(0x2f6)](_0x130c2a[0x0]['unitId'],_0x130c2a[0x0][_0x47c1d6(0x390)],_0x130c2a[0x0][_0x47c1d6(0x270)]),this[_0x47c1d6(0x362)])){this[_0x47c1d6(0x227)]();return;}let _0x232848=_0x130c2a[_0x47c1d6(0x399)](_0x2ef6e9=>_0x2ef6e9[_0x47c1d6(0x37c)]===o[_0x47c1d6(0x440)][_0x47c1d6(0x2bf)]);this[_0x47c1d6(0x3e1)]+=0x1,this[_0x47c1d6(0x362)]=this[_0x47c1d6(0x2f6)](_0x130c2a[0x0][_0x47c1d6(0x2e6)],_0x130c2a[0x0]['subUnitId'],_0x130c2a[0x0][_0x47c1d6(0x270)]),this[_0x47c1d6(0x362)]&&_0x130c2a[_0x47c1d6(0x1ee)]>0x1&&_0x232848[_0x47c1d6(0x1ee)]===_0x130c2a[_0x47c1d6(0x1ee)]?this['_openShapeEditPanel']():this['_activeShapeInfo']&&_0x232848[_0x47c1d6(0x1ee)]!==_0x130c2a[_0x47c1d6(0x1ee)]?(this[_0x47c1d6(0x362)][_0x47c1d6(0x475)]=!0x0,this[_0x47c1d6(0x227)]()):this['_closeShapeEditPanel']();}));}[_0xac088e(0x227)](){const _0x3bbd72=_0xac088e;this[_0x3bbd72(0x362)]&&(this['_sidebarDisposable']=this['_sidebarService'][_0x3bbd72(0x487)]({'id':w,'header':{'title':this[_0x3bbd72(0x4b3)]['t']('docs-shape-ui.formatShape')},'width':0x184,'children':{'label':w,...this['_activeShapeInfo']},'onClose':()=>{const _0x942301=_0x3bbd72;this['_drawingManagerService']['focusDrawing'](null),this['_contextService'][_0x942301(0x283)](o[_0x942301(0x24d)],!0x1),this[_0x942301(0x2d1)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}['_closeShapeEditPanel'](){const _0x3b3378=_0xac088e;this[_0x3b3378(0x402)]=!0x1,this[_0x3b3378(0x2f1)][_0x3b3378(0x411)](w),this[_0x3b3378(0x2d1)]=null,this[_0x3b3378(0x444)][_0x3b3378(0x283)](o['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x3b3378(0x31f)][_0x3b3378(0x2c7)](null);}};kt=I([F(0x0,o[_0xac088e(0x257)]),F(0x1,(0x0,o[_0xac088e(0x383)])(n['ISidebarService'])),F(0x2,n['IMenuManagerService']),F(0x3,(0x0,o[_0xac088e(0x383)])(r[_0xac088e(0x326)])),F(0x4,(0x0,o[_0xac088e(0x383)])(o[_0xac088e(0x2e2)])),F(0x5,o[_0xac088e(0x2cf)]),F(0x6,u[_0xac088e(0x4ba)]),F(0x7,(0x0,o['Inject'])(t[_0xac088e(0x4c6)])),F(0x8,l['IRenderManagerService']),F(0x9,o[_0xac088e(0x486)]),F(0xa,(0x0,o[_0xac088e(0x383)])(G)),F(0xb,o[_0xac088e(0x23e)]),F(0xc,(0x0,o['Inject'])(e[_0xac088e(0x341)]))],kt);const At=_0xac088e(0x26a);let X=class extends o[_0xac088e(0x1d9)]{constructor(_0x514640,_0x4c9a40,_0x8d12ef,_0x3540ce,_0x13fb26,_0x7420ff){const _0x5ee48a=_0xac088e;super(),this[_0x5ee48a(0x1da)]=_0x514640,this[_0x5ee48a(0x34d)]=_0x4c9a40,this[_0x5ee48a(0x31f)]=_0x8d12ef,this['_univerInstanceService']=_0x3540ce,this['_renderManagerService']=_0x13fb26,this[_0x5ee48a(0x497)]=_0x7420ff,H(this,_0x5ee48a(0x423),!0x1),this[_0x5ee48a(0x1da)][_0x5ee48a(0x284)](Ze),this['disposeWithMe']((0x0,o[_0x5ee48a(0x3fb)])(this[_0x5ee48a(0x31f)][_0x5ee48a(0x22d)][_0x5ee48a(0x43a)](()=>this[_0x5ee48a(0x3e3)]()))),this[_0x5ee48a(0x3e3)]();}[_0xac088e(0x45f)](){const _0x48e350=_0xac088e;this['_shapeFloatingToolbarService']['setFallbackVisible'](!0x1,At),this[_0x48e350(0x3e5)](),super['dispose']();}[_0xac088e(0x3e3)](){const _0x25fd6e=_0xac088e;var _0x33ac36;let _0x24400b=this[_0x25fd6e(0x31f)]['getFocusDrawings'](),_0x102869=_0x24400b[_0x25fd6e(0x1ee)]===0x1?_0x24400b[0x0]:void 0x0;if((_0x102869==null?void 0x0:_0x102869[_0x25fd6e(0x37c)])!==o[_0x25fd6e(0x440)][_0x25fd6e(0x2bf)]||this[_0x25fd6e(0x278)][_0x25fd6e(0x24e)](_0x102869['unitId'])!==o[_0x25fd6e(0x230)][_0x25fd6e(0x2ba)]){this[_0x25fd6e(0x497)][_0x25fd6e(0x426)](!0x1,At),this[_0x25fd6e(0x3e5)]();return;}let _0x16bf4a=(_0x33ac36=this[_0x25fd6e(0x2a7)]['getRenderUnitById'](_0x102869[_0x25fd6e(0x2e6)]))==null?void 0x0:_0x33ac36['engine'][_0x25fd6e(0x3cc)](),_0xdee5ef=(0x0,e['resolveShapeContextualRibbonHostMode'])(_0x16bf4a)===_0x25fd6e(0x2e9);this[_0x25fd6e(0x497)][_0x25fd6e(0x426)](_0xdee5ef,At),_0xdee5ef?this[_0x25fd6e(0x3e5)]():(this[_0x25fd6e(0x423)]=!0x0,this[_0x25fd6e(0x34d)][_0x25fd6e(0x2b3)](T,{'activate':!0x0}));}[_0xac088e(0x3e5)](){const _0x4ccbd4=_0xac088e;this[_0x4ccbd4(0x423)]&&(this[_0x4ccbd4(0x423)]=!0x1,this[_0x4ccbd4(0x34d)][_0x4ccbd4(0x4e4)](T),this[_0x4ccbd4(0x34d)][_0x4ccbd4(0x1f7)]([]));}};X=I([F(0x0,n['IMenuManagerService']),F(0x1,n[_0xac088e(0x339)]),F(0x2,u[_0xac088e(0x4ba)]),F(0x3,o[_0xac088e(0x257)]),F(0x4,l['IRenderManagerService']),F(0x5,(0x0,o['Inject'])(e[_0xac088e(0x37b)]))],X);let Z=class extends o[_0xac088e(0x1d9)]{constructor(_0x153ecd,_0x4f30b4,_0x50c53f,_0x3850cf){const _0x5af0a6=_0xac088e;super(),this[_0x5af0a6(0x483)]=_0x153ecd,this['_renderManagerService']=_0x4f30b4,this['_drawingManagerService']=_0x50c53f,this[_0x5af0a6(0x1db)]=_0x3850cf,this[_0x5af0a6(0x490)]();}['_initialize'](){const _0x90c591=_0xac088e;this[_0x90c591(0x38a)](this[_0x90c591(0x31f)][_0x90c591(0x263)]['subscribe'](_0x1e0b00=>this[_0x90c591(0x384)](_0x1e0b00))),this[_0x90c591(0x38a)](this[_0x90c591(0x31f)][_0x90c591(0x1fb)][_0x90c591(0x43a)](_0x70e69a=>{const _0x2b5d5c=_0x90c591;_0x70e69a['forEach'](_0x5183ba=>this[_0x2b5d5c(0x239)](_0x5183ba));})),this['disposeWithMe'](this['_commandService'][_0x90c591(0x25e)](_0x1926c7=>{const _0x102638=_0x90c591;if(_0x1926c7['id']!==r[_0x102638(0x28b)]['id'])return;let {unitId:_0x3f94ce,shapeId:_0x4b39b8}=_0x1926c7[_0x102638(0x359)];this['_refreshShapeData']({'unitId':_0x3f94ce,'subUnitId':_0x3f94ce,'drawingId':_0x4b39b8});}));}['_insertShapes'](_0x2f1f4b){const _0x281465=_0xac088e;_0x2f1f4b[_0x281465(0x3ca)](_0x5e64cd=>{const _0x2d42cc=_0x281465;let _0x2590d4=this[_0x2d42cc(0x44b)](_0x5e64cd['unitId']);if(!_0x2590d4)return;let _0x1e8906=this['_drawingManagerService'][_0x2d42cc(0x331)](_0x5e64cd);(_0x1e8906==null?void 0x0:_0x1e8906[_0x2d42cc(0x37c)])===o[_0x2d42cc(0x440)][_0x2d42cc(0x2bf)]&&this[_0x2d42cc(0x1db)][_0x2d42cc(0x2b8)](_0x1e8906,_0x2590d4[_0x2d42cc(0x4cc)]);});}[_0xac088e(0x239)](_0x192b54){const _0x1f83c1=_0xac088e;let _0x3097d1=this['_drawingManagerService'][_0x1f83c1(0x331)](_0x192b54);if((_0x3097d1==null?void 0x0:_0x3097d1[_0x1f83c1(0x37c)])!==o['DrawingTypeEnum'][_0x1f83c1(0x2bf)])return;let _0x121200=this[_0x1f83c1(0x44b)](_0x192b54[_0x1f83c1(0x2e6)]);if(!_0x121200||_0x3097d1[_0x1f83c1(0x39c)]==null)return;let _0x1a8336=(0x0,u[_0x1f83c1(0x2ed)])(_0x192b54),_0x4ded61=_0x121200[_0x1f83c1(0x4cc)][_0x1f83c1(0x4a1)](_0x1a8336);_0x4ded61&&(_0x4ded61[_0x1f83c1(0x47a)](_0x3097d1['srcRect']),_0x4ded61[_0x1f83c1(0x3f0)](_0x3097d1[_0x1f83c1(0x375)]),_0x4ded61[_0x1f83c1(0x4f1)](!0x0));}['_refreshShapeData'](_0x37fa4a){const _0x542a46=_0xac088e;let _0x2a2a88=this['_getSceneByUnitId'](_0x37fa4a['unitId']);if(!_0x2a2a88)return;let _0x104735=(0x0,u['getDrawingShapeKeyByDrawingSearch'])(_0x37fa4a),_0x1d9110=_0x2a2a88[_0x542a46(0x4cc)][_0x542a46(0x4a1)](_0x104735);_0x1d9110&&(this[_0x542a46(0x1db)][_0x542a46(0x2ca)](_0x1d9110),this[_0x542a46(0x1db)][_0x542a46(0x34c)](_0x1d9110,{'unitId':_0x37fa4a[_0x542a46(0x2e6)],'subUnitId':_0x37fa4a[_0x542a46(0x390)],'shapeId':_0x37fa4a[_0x542a46(0x270)]}),_0x1d9110['makeDirty'](!0x0));}[_0xac088e(0x44b)](_0x4931e1){const _0x1ddcd3=_0xac088e;if(_0x4931e1==null)return null;let _0x47f19d=this[_0x1ddcd3(0x2a7)][_0x1ddcd3(0x4bd)](_0x4931e1),_0x22f73c=_0x47f19d==null?void 0x0:_0x47f19d[_0x1ddcd3(0x4cc)];return _0x22f73c==null?null:{'scene':_0x22f73c};}};Z=I([F(0x0,o[_0xac088e(0x2cf)]),F(0x1,l[_0xac088e(0x1f4)]),F(0x2,u['IDrawingManagerService']),F(0x3,(0x0,o[_0xac088e(0x383)])(K))],Z);let Q=class extends o[_0xac088e(0x468)]{constructor(_0x2bc82a=nt,_0x450a6a,_0x4be720,_0x110b0e,_0x4e4fb1){const _0x5aaa71=_0xac088e;super(),this[_0x5aaa71(0x397)]=_0x2bc82a,this['_injector']=_0x450a6a,this[_0x5aaa71(0x483)]=_0x4be720,this[_0x5aaa71(0x3e9)]=_0x110b0e,this[_0x5aaa71(0x2a7)]=_0x4e4fb1;let {menu:_0xf6c7b4,..._0x215b08}=(0x0,o[_0x5aaa71(0x42b)])({},nt,this['_config']);_0xf6c7b4&&this[_0x5aaa71(0x3e9)][_0x5aaa71(0x472)](_0x5aaa71(0x4e5),_0xf6c7b4,{'merge':!0x0}),this['_configService'][_0x5aaa71(0x472)](tt,_0x215b08),[C,B,j,A,N,P][_0x5aaa71(0x3ca)](_0xfa169d=>this[_0x5aaa71(0x38a)](this[_0x5aaa71(0x483)]['registerCommand'](_0xfa169d)));}[_0xac088e(0x2eb)](){const _0x3dc585=_0xac088e;let _0xad886=[[Ot],[kt],[Z],[K],[q],[W],[L],[J],[G],[X]];(0x0,o[_0x3dc585(0x4e0)])(this[_0x3dc585(0x4d9)],_0xad886),this[_0x3dc585(0x4d9)][_0x3dc585(0x314)](Ot);}[_0xac088e(0x3de)](){const _0x29f98c=_0xac088e;this['disposeWithMe'](this[_0x29f98c(0x2a7)][_0x29f98c(0x447)](o['UniverInstanceType'][_0x29f98c(0x2ba)],[W])),(0x0,o[_0x29f98c(0x20f)])(this[_0x29f98c(0x4d9)],[[kt],[Z],[K],[q],[L],[J],[G],[X]]);}};H(Q,_0xac088e(0x348),o[_0xac088e(0x230)][_0xac088e(0x2ba)]),H(Q,'pluginName','DOCS_SHAPE_UI_PLUGIN'),H(Q,'packageName',$e),H(Q,_0xac088e(0x3b8),et),Q=I([(0x0,o[_0xac088e(0x3a2)])(m['UniverLicensePlugin'],s['UniverDocsPlugin'],u['UniverDrawingPlugin'],d['UniverDrawingMobileUIPlugin'],l[_0xac088e(0x22e)],t['UniverDocsMobileUIPlugin'],a[_0xac088e(0x240)],h[_0xac088e(0x47d)],r['UniverDocsShapePlugin'],e[_0xac088e(0x311)]),F(0x1,(0x0,o[_0xac088e(0x383)])(o['Injector'])),F(0x2,o['ICommandService']),F(0x3,o[_0xac088e(0x4a8)]),F(0x4,l[_0xac088e(0x1f4)])],Q);let jt=class extends o[_0xac088e(0x1d9)]{constructor(_0xa8892,_0x4d3b8e){const _0x351b40=_0xac088e;super(),this[_0x351b40(0x2fc)]=_0xa8892,this[_0x351b40(0x2dd)]=_0x4d3b8e,this['_registerIcons'](),this['_registerComponents']();}[_0xac088e(0x294)](){const _0x14abec=_0xac088e;this[_0x14abec(0x2dd)][_0x14abec(0x23c)](_0x14abec(0x2bc))||this[_0x14abec(0x38a)](this[_0x14abec(0x2dd)][_0x14abec(0x38f)]({'ObjectLayersIcon':g[_0x14abec(0x2bc)]})),this[_0x14abec(0x2dd)][_0x14abec(0x23c)](_0x14abec(0x491))||this['disposeWithMe'](this[_0x14abec(0x2dd)][_0x14abec(0x38f)]({'BottomIcon':g['BottomIcon']})),this['_iconManager'][_0x14abec(0x23c)](_0x14abec(0x4e9))||this[_0x14abec(0x38a)](this['_iconManager'][_0x14abec(0x38f)]({'MoveDownIcon':g[_0x14abec(0x4e9)]})),this[_0x14abec(0x2dd)]['has'](_0x14abec(0x45c))||this[_0x14abec(0x38a)](this['_iconManager'][_0x14abec(0x38f)]({'MoveUpIcon':g[_0x14abec(0x45c)]})),this['_iconManager'][_0x14abec(0x23c)](_0x14abec(0x291))||this[_0x14abec(0x38a)](this['_iconManager']['register']({'ShapeFormatSettingIcon':g[_0x14abec(0x291)]})),this[_0x14abec(0x2dd)][_0x14abec(0x23c)](_0x14abec(0x354))||this['disposeWithMe'](this['_iconManager'][_0x14abec(0x38f)]({'TopmostIcon':g[_0x14abec(0x354)]})),this[_0x14abec(0x38a)](this[_0x14abec(0x2dd)]['register'](Et));}['_registerComponents'](){const _0x5fa068=_0xac088e;this[_0x5fa068(0x38a)](this['_componentManager']['register'](w,_t)),this['disposeWithMe'](this[_0x5fa068(0x2fc)]['register'](E,mt)),this[_0x5fa068(0x38a)](this[_0x5fa068(0x2fc)][_0x5fa068(0x38f)](xt,Ct)),this['disposeWithMe'](this[_0x5fa068(0x2fc)][_0x5fa068(0x38f)](me,be)),this[_0x5fa068(0x38a)](this['_componentManager'][_0x5fa068(0x38f)](pe,xe)),this[_0x5fa068(0x38a)](this['_componentManager'][_0x5fa068(0x38f)](he,Se)),this[_0x5fa068(0x38a)](this[_0x5fa068(0x2fc)][_0x5fa068(0x38f)](ge,Ce)),this[_0x5fa068(0x38a)](this[_0x5fa068(0x2fc)][_0x5fa068(0x38f)](_e,we)),this[_0x5fa068(0x38a)](this[_0x5fa068(0x2fc)][_0x5fa068(0x38f)](O,e[_0x5fa068(0x39a)])),this['disposeWithMe'](this[_0x5fa068(0x2fc)]['register'](ee,oe)),this[_0x5fa068(0x38a)](this['_componentManager']['register'](te,ie)),this['_componentManager'][_0x5fa068(0x3f8)](d[_0x5fa068(0x25c)])||this[_0x5fa068(0x38a)](this[_0x5fa068(0x2fc)]['register'](d[_0x5fa068(0x25c)],ae)),this[_0x5fa068(0x38a)](this[_0x5fa068(0x2fc)][_0x5fa068(0x38f)](k,Dt));}};jt=I([F(0x0,(0x0,o['Inject'])(n['ComponentManager'])),F(0x1,(0x0,o[_0xac088e(0x383)])(n[_0xac088e(0x2f4)]))],jt);let Mt=class extends o['Disposable']{constructor(_0x13cb63,_0x152928,_0x4a8368,_0x38bc98,_0x3c8f7a,_0x7c30d3,_0x1cbfa7,_0x38f5b7,_0xb174d2){const _0x15b1a3=_0xac088e;super();let _0x26192c=_0x57af43=>{const _0x120e93=_0xa70b;let _0x4fc2d2=_0x7c30d3[_0x120e93(0x2cc)](_0x57af43[_0x120e93(0x2e6)],o['UniverInstanceType'][_0x120e93(0x2ba)]),_0x3dbb42=_0x4fc2d2?(0x0,s[_0x120e93(0x2b6)])(_0x4fc2d2,_0x57af43[_0x120e93(0x25f)]):'';return!!_0x4fc2d2&&(0x0,s[_0x120e93(0x376)])(_0x38f5b7,_0x57af43[_0x120e93(0x2e6)],[(0x0,s[_0x120e93(0x1fe)])(_0x3dbb42,_0x120e93(0x1e4),_0x57af43['shapeId']),...(0x0,s[_0x120e93(0x2b7)])(_0x4fc2d2,_0x3dbb42,_0x120e93(0x1e4),_0x57af43['shapeId'])]);},_0x40fc74=_0x1480dc=>_0x1480dc['shapeId']&&_0x26192c(_0x1480dc)?_0x4a8368[_0x15b1a3(0x4d8)](_0x1480dc['unitId'],_0x1480dc[_0x15b1a3(0x25f)])??null:null,_0x1369d0=()=>{const _0x1fe81d=_0x15b1a3;let _0x1b0eb3=_0x3c8f7a[_0x1fe81d(0x2f0)](),_0x393572=_0x1b0eb3[_0x1fe81d(0x1ee)]===0x1?_0x1b0eb3[0x0]:null;return(_0x393572==null?void 0x0:_0x393572[_0x1fe81d(0x37c)])===o[_0x1fe81d(0x440)][_0x1fe81d(0x2bf)]&&_0x393572[_0x1fe81d(0x2e6)]===_0x13cb63['unitId']?{'unitId':_0x393572[_0x1fe81d(0x2e6)],'subUnitId':_0x393572['subUnitId'],'shapeId':_0x393572[_0x1fe81d(0x270)]}:null;};this[_0x15b1a3(0x38a)]((0x0,e[_0x15b1a3(0x2f2)])(_0x13cb63,_0x152928,{'changes$':(0x0,p['merge'])(_0x3c8f7a[_0x15b1a3(0x22d)],_0x38bc98[_0x15b1a3(0x2f7)],_0x38f5b7[_0x15b1a3(0x4fe)]),'isActive':()=>{const _0x573fd8=_0x15b1a3;var _0x24add5;return((_0x24add5=_0x7c30d3[_0x573fd8(0x273)]())==null?void 0x0:_0x24add5[_0x573fd8(0x389)]())===_0x13cb63[_0x573fd8(0x2e6)]&&!_0x1cbfa7['getContextValue'](o['FOCUSING_SHAPE_TEXT_EDITOR'])&&_0x3c8f7a[_0x573fd8(0x2f0)]()[_0x573fd8(0x3f9)](_0x17444d=>_0x17444d[_0x573fd8(0x2e6)]===_0x13cb63[_0x573fd8(0x2e6)]);},'getSelectedTarget':_0x1369d0,'getSource':()=>{let _0x43fb37=_0x1369d0();return _0x43fb37?_0x40fc74(_0x43fb37):null;},'getTarget':_0x2747c0=>{const _0xd4810c=_0x15b1a3;let _0x29e2ae=_0x13cb63['scene'][_0xd4810c(0x41b)](new l[(_0xd4810c(0x3c6))](_0x2747c0[_0xd4810c(0x36d)],_0x2747c0['offsetY']));if(!(_0x29e2ae instanceof U))return null;let _0x4bc400={'unitId':_0x13cb63[_0xd4810c(0x2e6)],'subUnitId':_0x13cb63[_0xd4810c(0x2e6)],'shapeId':_0x29e2ae[_0xd4810c(0x25f)]};return _0x26192c(_0x4bc400)?_0x4bc400:null;},'getShape':_0x40fc74,'update':(_0xd72828,_0x490555,_0x555c50)=>_0xb174d2[_0x15b1a3(0x290)](r[_0x15b1a3(0x218)]['id'],{..._0xd72828,'shapeData':_0x555c50,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x490555}})}));}};Mt=I([F(0x1,(0x0,o[_0xac088e(0x383)])(n[_0xac088e(0x482)])),F(0x2,(0x0,o['Inject'])(r['DocsShapeService'])),F(0x3,(0x0,o[_0xac088e(0x383)])(G)),F(0x4,u['IDrawingManagerService']),F(0x5,o['IUniverInstanceService']),F(0x6,o[_0xac088e(0x486)]),F(0x7,o[_0xac088e(0x23e)]),F(0x8,o[_0xac088e(0x2cf)])],Mt);function Nt(_0x5ecbd3,_0x55b4c7){const _0xa21d5e=_0xac088e;let _0x1d4ddd=_0x5ecbd3;for(;_0x1d4ddd;){if(_0x55b4c7(_0x1d4ddd))return _0x1d4ddd;_0x1d4ddd=typeof _0x1d4ddd[_0xa21d5e(0x4e6)]==_0xa21d5e(0x481)?_0x1d4ddd[_0xa21d5e(0x4e6)]():null;}return null;}function Pt(_0x3b069d){return Nt(_0x3b069d,_0x1b1e0e=>_0x1b1e0e instanceof U);}function Ft(_0x279d56){const _0x19f769=_0xac088e;return(_0x279d56==null?void 0x0:_0x279d56[_0x19f769(0x3f7)])==null;}let It=class extends o[_0xac088e(0x1d9)]{constructor(_0x453836,_0x2f1a7c,_0x3e4f23,_0x5b169b,_0x154dcd){const _0x5992c8=_0xac088e;super(),this[_0x5992c8(0x3dd)]=_0x453836,this['_shapeTextEditingService']=_0x2f1a7c,this[_0x5992c8(0x31f)]=_0x3e4f23,this[_0x5992c8(0x4b8)]=_0x5b169b,this[_0x5992c8(0x446)]=_0x154dcd,H(this,_0x5992c8(0x4dc),null),H(this,_0x5992c8(0x2e5),null),this['_initEvents'](),this[_0x5992c8(0x412)](),this[_0x5992c8(0x422)]();}[_0xac088e(0x45f)](){const _0x7ec0b2=_0xac088e;this[_0x7ec0b2(0x2d4)](),super[_0x7ec0b2(0x45f)]();}['_initEvents'](){const _0xef39e2=_0xac088e;let {scene:_0xfc6833}=this[_0xef39e2(0x3dd)];this[_0xef39e2(0x38a)](_0xfc6833[_0xef39e2(0x275)][_0xef39e2(0x20d)]((_0x13bcb7,_0x21bf88)=>{const _0x3dac83=_0xef39e2;let {offsetX:_0x4d0df5,offsetY:_0x5eb888}=_0x13bcb7,_0x447fd8=l[_0x3dac83(0x3c6)][_0x3dac83(0x466)]([_0x4d0df5,_0x5eb888]),_0xb8b87f=Pt(_0xfc6833[_0x3dac83(0x41b)](_0x447fd8))??this[_0x3dac83(0x3b7)](_0x447fd8);if(_0xb8b87f){_0x21bf88[_0x3dac83(0x306)]();let _0x3bb2c6=this[_0x3dac83(0x446)]['getShapeModel'](_0xb8b87f['unitId'],_0xb8b87f[_0x3dac83(0x390)],_0xb8b87f['shapeId']);if(!_0x3bb2c6||(0x0,i[_0x3dac83(0x471)])(_0x3bb2c6['getShapeType']())||!Ft(_0x3bb2c6[_0x3dac83(0x296)]()))return;this[_0x3dac83(0x2a5)][_0x3dac83(0x49b)]({'visible':!0x0,'unitId':_0xb8b87f[_0x3dac83(0x2e6)],'subUnitId':_0xb8b87f[_0x3dac83(0x390)],'shapeId':_0xb8b87f[_0x3dac83(0x25f)],'shapeKey':_0xb8b87f[_0x3dac83(0x299)]});}}));}[_0xac088e(0x3b7)](_0x13b389){const _0x467bfd=_0xac088e;let {scene:_0x1f8fa4}=this[_0x467bfd(0x3dd)];return this[_0x467bfd(0x31f)][_0x467bfd(0x2f0)]()['map'](_0xeb133c=>_0x1f8fa4[_0x467bfd(0x4a1)]((0x0,u[_0x467bfd(0x2ed)])(_0xeb133c)))['find'](_0x50ba9f=>_0x50ba9f instanceof U&&_0x50ba9f[_0x467bfd(0x206)](_0x13b389))??null;}[_0xac088e(0x412)](){const _0x41bce4=_0xac088e;this[_0x41bce4(0x38a)](this[_0x41bce4(0x31f)][_0x41bce4(0x22d)][_0x41bce4(0x43a)](_0x13996a=>{const _0x5afd50=_0x41bce4;if(_0x13996a[_0x5afd50(0x1ee)]===0x1){let _0x345127=_0x13996a[0x0],_0x2f21a7=this[_0x5afd50(0x31f)][_0x5afd50(0x331)](_0x345127);if((_0x2f21a7==null?void 0x0:_0x2f21a7[_0x5afd50(0x37c)])===o[_0x5afd50(0x440)][_0x5afd50(0x2bf)]){let _0x3d86ed=this[_0x5afd50(0x2a5)][_0x5afd50(0x40d)]();if((_0x3d86ed==null?void 0x0:_0x3d86ed['shapeId'])===_0x345127[_0x5afd50(0x270)]&&_0x3d86ed[_0x5afd50(0x416)])return;(0x0,i[_0x5afd50(0x471)])(this['_docsShapeService'][_0x5afd50(0x26d)](_0x345127[_0x5afd50(0x2e6)],_0x345127[_0x5afd50(0x390)],_0x345127['drawingId']))&&this[_0x5afd50(0x2a5)][_0x5afd50(0x49b)](null);}else this[_0x5afd50(0x2a5)]['completeEditing']();}else this[_0x5afd50(0x2a5)]['completeEditing']();})),this[_0x41bce4(0x38a)](this[_0x41bce4(0x31f)][_0x41bce4(0x356)]['subscribe'](_0x26b399=>{const _0x32b2f1=_0x41bce4;let _0x4a2dc1=this['_shapeTextEditingService'][_0x32b2f1(0x40d)]();_0x4a2dc1&&_0x26b399[_0x32b2f1(0x3f9)](_0x18fb6a=>_0x18fb6a[_0x32b2f1(0x270)]===_0x4a2dc1['shapeId'])&&this[_0x32b2f1(0x2a5)][_0x32b2f1(0x49b)](null);}));}[_0xac088e(0x422)](){const _0x31f5e0=_0xac088e;this[_0x31f5e0(0x38a)](this['_shapeTextEditingService'][_0x31f5e0(0x2f7)]['subscribe'](_0x25f7ad=>{const _0x4d90b2=_0x31f5e0;(_0x25f7ad==null?void 0x0:_0x25f7ad['visible'])===!0x0&&_0x25f7ad['unitId']===this[_0x4d90b2(0x3dd)][_0x4d90b2(0x2e6)]?this['_layoutInteraction']??=this['_docLayoutInteractionService'][_0x4d90b2(0x387)]():this['_endLayoutInteraction']();let {scene:_0x4bb899}=this[_0x4d90b2(0x3dd)];if(this[_0x4d90b2(0x4dc)]){let _0x3ca72c=_0x4bb899[_0x4d90b2(0x4a1)](this[_0x4d90b2(0x4dc)]);_0x3ca72c&&_0x3ca72c[_0x4d90b2(0x49b)](!0x1);}if(_0x25f7ad){let _0x45c5bb=!!_0x25f7ad[_0x4d90b2(0x416)],_0x419b00=_0x4bb899[_0x4d90b2(0x4a1)](_0x25f7ad[_0x4d90b2(0x22c)]);_0x419b00&&(_0x419b00[_0x4d90b2(0x49b)](_0x45c5bb),this[_0x4d90b2(0x4dc)]=_0x25f7ad['shapeKey']);}else this['_lastEditingShapeKey']=null;}));}[_0xac088e(0x2d4)](){const _0x411a51=_0xac088e;var _0x34f205;(_0x34f205=this[_0x411a51(0x2e5)])==null||_0x34f205[_0x411a51(0x45f)](),this['_layoutInteraction']=null;}};It=I([F(0x1,(0x0,o['Inject'])(G)),F(0x2,u[_0xac088e(0x4ba)]),F(0x3,(0x0,o[_0xac088e(0x383)])(t['DocLayoutInteractionService'])),F(0x4,(0x0,o[_0xac088e(0x383)])(r['DocsShapeService']))],It);let Lt=class extends e[_0xac088e(0x365)]{constructor(_0x542869,_0x4103ac,_0x4b0dec,_0x1d4910,_0x5d426b,_0x49305c,_0x12df86,_0x2b480a,_0x1d0b4b,_0x1cc65c){super(_0x542869,_0x4103ac,_0x4b0dec,_0x1d4910,_0x5d426b,_0x49305c,_0x12df86,_0x2b480a,_0x1d0b4b,_0x1cc65c,{'componentKey':O,'editorUnitId':D});}};Lt=I([F(0x1,(0x0,o[_0xac088e(0x383)])(s[_0xac088e(0x2db)])),F(0x2,(0x0,o[_0xac088e(0x383)])(t[_0xac088e(0x4c6)])),F(0x3,(0x0,o[_0xac088e(0x383)])(t[_0xac088e(0x4c3)])),F(0x4,o[_0xac088e(0x2cf)]),F(0x5,(0x0,o[_0xac088e(0x383)])(t['DocEventManagerService'])),F(0x6,(0x0,o[_0xac088e(0x383)])(e['ShapeTextHyperLinkPopupService'])),F(0x7,(0x0,o[_0xac088e(0x383)])(s[_0xac088e(0x279)])),F(0x8,(0x0,o[_0xac088e(0x383)])(t[_0xac088e(0x3aa)])),F(0x9,(0x0,o[_0xac088e(0x383)])(G))],Lt);let Rt=class extends e[_0xac088e(0x32e)]{constructor(_0x2809db,_0x4b454e,_0xa0b5d7,_0x59ccb9,_0x42053b){const _0x23b183=_0xac088e;super(_0x2809db,_0x4b454e,{'editing$':_0xa0b5d7[_0x23b183(0x2f7)],'resolve':_0xc4ef0d=>{const _0x4cd5d6=_0x23b183;var _0x48e3a9;let _0xf19f60=new l[(_0x4cd5d6(0x3c6))](_0xc4ef0d[_0x4cd5d6(0x36d)],_0xc4ef0d[_0x4cd5d6(0x25d)]),_0x57bdd9=((_0x48e3a9=_0x2809db[_0x4cd5d6(0x4cc)][_0x4cd5d6(0x4ca)](_0xf19f60))==null?void 0x0:_0x48e3a9['transformVector2SceneCoord'](_0xf19f60))??_0xf19f60,_0x313543=(0x0,e[_0x4cd5d6(0x395)])(_0x2809db[_0x4cd5d6(0x4cc)][_0x4cd5d6(0x41b)](_0xf19f60)??null,_0x57bdd9);if(!(_0x313543 instanceof U))return null;let _0x5aa630=_0x313543[_0x4cd5d6(0x287)](_0x57bdd9);if(!_0x5aa630)return null;let _0x16f08c=_0x313543,_0x44e3bd={'componentKey':e[_0x4cd5d6(0x2b9)][_0x4cd5d6(0x507)],'direction':_0x4cd5d6(0x238),'offset':[0x0,0xa],'onClickOutside':()=>_0x4b454e[_0x4cd5d6(0x237)]()};return{'object':_0x313543,'info':{..._0x5aa630,'unitId':_0x313543[_0x4cd5d6(0x2e6)],'subUnitId':_0x313543['subUnitId'],'shapeKey':_0x313543[_0x4cd5d6(0x299)],'readonly':!0x0,'copyable':(0x0,s[_0x4cd5d6(0x438)])(_0x42053b,_0x313543['unitId'],_0x313543[_0x4cd5d6(0x2e6)],y['UnitAction'][_0x4cd5d6(0x4b5)])},'attachPopup':()=>_0x59ccb9[_0x4cd5d6(0x33e)](_0x16f08c,_0x44e3bd,_0x16f08c[_0x4cd5d6(0x2e6)])};}});}};Rt=I([F(0x1,(0x0,o[_0xac088e(0x383)])(e[_0xac088e(0x4dd)])),F(0x2,(0x0,o[_0xac088e(0x383)])(G)),F(0x3,(0x0,o['Inject'])(t[_0xac088e(0x4c6)])),F(0x4,o['IPermissionService'])],Rt);let zt=class extends o['Disposable']{constructor(_0x3bc92f,_0x33c387,_0x5f9b3e,_0x469771,_0x5be8c9,_0x91664d,_0x5bb4a7,_0x3fac82,_0x4bddaa,_0x585664,_0x4e652d,_0x53305d){const _0x1246a7=_0xac088e;super(),this[_0x1246a7(0x278)]=_0x3bc92f,this[_0x1246a7(0x2f1)]=_0x33c387,this['_menuManagerService']=_0x5f9b3e,this[_0x1246a7(0x446)]=_0x469771,this[_0x1246a7(0x4b3)]=_0x5be8c9,this[_0x1246a7(0x483)]=_0x91664d,this[_0x1246a7(0x31f)]=_0x5bb4a7,this[_0x1246a7(0x430)]=_0x3fac82,this[_0x1246a7(0x2a7)]=_0x4bddaa,this['_contextService']=_0x585664,this[_0x1246a7(0x2a5)]=_0x4e652d,this[_0x1246a7(0x462)]=_0x53305d,H(this,_0x1246a7(0x2d1),null),H(this,_0x1246a7(0x362),null),H(this,_0x1246a7(0x402),!0x1),H(this,_0x1246a7(0x3e1),0x0),H(this,'_disposePopupsByUnit',new Map()),H(this,'_popupTargetKeys',new Map()),this[_0x1246a7(0x223)](),this[_0x1246a7(0x38a)](this[_0x1246a7(0x278)][_0x1246a7(0x2fa)](o[_0x1246a7(0x230)][_0x1246a7(0x2ba)])['subscribe'](_0x45ef7b=>{const _0x4efd2c=_0x1246a7;if(!_0x45ef7b){var _0x515be8;(_0x515be8=this[_0x4efd2c(0x2d1)])==null||_0x515be8['dispose']();}})),this['_registerOperations'](),this[_0x1246a7(0x38a)](this[_0x1246a7(0x31f)]['remove$'][_0x1246a7(0x43a)](_0x45a6ba=>{const _0x4c110d=_0x1246a7;for(let _0x1cff7c of _0x45a6ba){let _0x36ad7e=_0x1cff7c['unitId']+':'+_0x1cff7c[_0x4c110d(0x390)]+':'+_0x1cff7c['drawingId'];for(let [_0x199c04,_0x353369]of this[_0x4c110d(0x31a)])_0x353369===_0x36ad7e&&this[_0x4c110d(0x21f)](_0x199c04,!0x0);}})),this['disposeWithMe']((0x0,e[_0x1246a7(0x3a8)])(this[_0x1246a7(0x2a7)],o[_0x1246a7(0x230)][_0x1246a7(0x2ba)],_0x1a0e56=>this[_0x1246a7(0x2bb)](_0x1a0e56))),this['disposeWithMe'](this['_shapeTextEditingService']['editingParams$'][_0x1246a7(0x43a)](_0x552e04=>{const _0x1de5e0=_0x1246a7;_0x552e04&&this[_0x1de5e0(0x21f)](void 0x0,!0x0);})),this[_0x1246a7(0x38a)](this[_0x1246a7(0x462)][_0x1246a7(0x4fe)][_0x1246a7(0x43a)](()=>{const _0x5c20d6=_0x1246a7;this[_0x5c20d6(0x31f)][_0x5c20d6(0x2f0)]()[_0x5c20d6(0x3f9)](_0xc2255e=>_0xc2255e[_0x5c20d6(0x37c)]===o['DrawingTypeEnum'][_0x5c20d6(0x2bf)]&&this[_0x5c20d6(0x278)][_0x5c20d6(0x24e)](_0xc2255e['unitId'])===o['UniverInstanceType'][_0x5c20d6(0x2ba)]&&!this[_0x5c20d6(0x2a6)](_0xc2255e[_0x5c20d6(0x2e6)],_0xc2255e[_0x5c20d6(0x270)]))&&(this['_clearPopups'](void 0x0,!0x0),this[_0x5c20d6(0x3ee)]());}));}[_0xac088e(0x223)](){const _0xaaab27=_0xac088e;this[_0xaaab27(0x1da)][_0xaaab27(0x284)](Qe);}['getShapePopupMenus'](_0x2c8ac8,_0xd1a658,_0x1a9a9b,_0x1621a3){const _0x56b772=_0xac088e;return[{'label':'docs-shape-ui.openPanel','index':0x0,'commandId':j['id'],'commandParams':{'unitId':_0x2c8ac8,'subUnitId':_0xd1a658,'drawingId':_0x1a9a9b},'disable':_0x1621a3===o['DrawingTypeEnum'][_0x56b772(0x3ac)]},{'label':_0x56b772(0x2a9),'index':0x1,'commandId':c['RemoveDocDrawingCommand']['id'],'commandParams':{'unitId':_0x2c8ac8,'drawings':[{'unitId':_0x2c8ac8,'subUnitId':_0xd1a658,'drawingId':_0x1a9a9b}]},'disable':!0x1},{'label':_0x56b772(0x2ae),'index':0x2,'commandId':B['id'],'commandParams':{'unitId':_0x2c8ac8,'subUnitId':_0xd1a658,'drawingId':_0x1a9a9b},'disable':!0x1}];}[_0xac088e(0x2f6)](_0x2b0a32,_0x5ea5c5,_0x11432e){const _0x371445=_0xac088e;let _0x5f469f=this[_0x371445(0x446)][_0x371445(0x3c2)](_0x2b0a32,_0x5ea5c5,_0x11432e),_0x3d2a72=this['_docsShapeService'][_0x371445(0x4d8)](_0x2b0a32,_0x5ea5c5,_0x11432e);return _0x5f469f!==void 0x0&&_0x3d2a72!==void 0x0?{'shapeData':_0x3d2a72,'shapeId':_0x11432e,'shapeType':_0x5f469f,'unitId':_0x2b0a32,'subUnitId':_0x5ea5c5,'version':this[_0x371445(0x3e1)],'disableShapeOption':!0x1}:null;}['_clearPopups'](_0xd240b3,_0x3ee204=!0x1){const _0x520bc2=_0xac088e;if(_0xd240b3==null){[...this[_0x520bc2(0x268)]['keys']()][_0x520bc2(0x3ca)](_0x589a70=>this[_0x520bc2(0x21f)](_0x589a70,_0x3ee204));return;}let _0x281a48=this['_disposePopupsByUnit'][_0x520bc2(0x314)](_0xd240b3);if(_0x281a48){for(let _0x40ed56=_0x281a48[_0x520bc2(0x1ee)]-0x1;_0x40ed56>=0x0;--_0x40ed56){let _0x501702=_0x281a48[_0x40ed56];(_0x3ee204||_0x501702[_0x520bc2(0x313)]())&&(_0x501702[_0x520bc2(0x45f)](),_0x281a48[_0x520bc2(0x363)](_0x40ed56,0x1));}_0x281a48['length']===0x0&&(this[_0x520bc2(0x268)][_0x520bc2(0x488)](_0xd240b3),this[_0x520bc2(0x31a)]['delete'](_0xd240b3));}}[_0xac088e(0x4e8)](_0x203c8a){const _0x5a1612=_0xac088e;let _0x5df69=this[_0x5a1612(0x268)][_0x5a1612(0x314)](_0x203c8a);if(_0x5df69)return _0x5df69;let _0x2d1632=[];return this[_0x5a1612(0x268)]['set'](_0x203c8a,_0x2d1632),_0x2d1632;}[_0xac088e(0x2bb)](_0x294735){const _0x4eace1=_0xac088e;var _0x4922c4;let _0x31f62d=new o[(_0x4eace1(0x3f3))](),_0x54319c=(_0x4922c4=this[_0x4eace1(0x2a7)][_0x4eace1(0x254)](o['UniverInstanceType'][_0x4eace1(0x2ba)])['find'](_0x5404e4=>_0x5404e4[_0x4eace1(0x4cc)]['getTransformerByCreate']()===_0x294735))==null?void 0x0:_0x4922c4[_0x4eace1(0x2e6)];return _0x54319c&&(_0x31f62d[_0x4eace1(0x3b0)](_0x294735[_0x4eace1(0x385)][_0x4eace1(0x43a)](()=>this[_0x4eace1(0x2fb)](_0x294735,_0x54319c))),_0x31f62d['add'](_0x294735[_0x4eace1(0x455)]['subscribe'](()=>{const _0x38f4b2=_0x4eace1;this[_0x38f4b2(0x21f)](_0x54319c),queueMicrotask(()=>{const _0x536ccd=_0x38f4b2;_0x294735[_0x536ccd(0x3a3)]()['size']>0x0||!this[_0x536ccd(0x31f)][_0x536ccd(0x2f0)]()['some'](_0x1f2e8f=>_0x1f2e8f[_0x536ccd(0x2e6)]===_0x54319c)||(this[_0x536ccd(0x444)][_0x536ccd(0x283)](o[_0x536ccd(0x24d)],!0x1),this[_0x536ccd(0x31f)]['focusDrawing'](null));});})),_0x31f62d['add'](_0x294735[_0x4eace1(0x43f)]['subscribe'](()=>{const _0x4b21e6=_0x4eace1;this[_0x4b21e6(0x21f)](_0x54319c,!0x0);}))),_0x31f62d;}['_handleCreateControl'](_0xaef75,_0xd09541){const _0x44ef22=_0xac088e;let _0x17b9c9=_0xaef75[_0x44ef22(0x3a3)]();if(this[_0x44ef22(0x402)]){this['_clearPopups'](_0xd09541,!0x0);return;}if(_0x17b9c9[_0x44ef22(0x40c)]>0x1){this[_0x44ef22(0x21f)](_0xd09541);return;}let _0x115c39=_0x17b9c9[_0x44ef22(0x37f)]()[_0x44ef22(0x1f1)]()[_0x44ef22(0x201)];if(!_0x115c39){this['_clearPopups'](_0xd09541);return;}let _0x2c9131=this[_0x44ef22(0x31f)][_0x44ef22(0x496)](_0x115c39[_0x44ef22(0x299)]);if(!_0x2c9131||_0x2c9131[_0x44ef22(0x37c)]!==o[_0x44ef22(0x440)][_0x44ef22(0x2bf)]){this[_0x44ef22(0x21f)](_0xd09541);return;}let {unitId:_0x3a5b1d,subUnitId:_0x15b9f1,drawingId:_0x1dda84,drawingType:_0x53dacd}=_0x2c9131;if(!this['_canEditShape'](_0x3a5b1d,_0x1dda84)){this['_clearPopups'](_0xd09541,!0x0);return;}let _0x26f09a=this[_0x44ef22(0x2f6)](_0x3a5b1d,_0x15b9f1,_0x1dda84);if(!_0x26f09a){this['_clearPopups'](_0xd09541);return;}let _0x5d4683=this[_0x44ef22(0x268)][_0x44ef22(0x314)](_0xd09541),_0xdfc601=_0x3a5b1d+':'+_0x15b9f1+':'+_0x1dda84;if(this[_0x44ef22(0x31a)][_0x44ef22(0x314)](_0xd09541)===_0xdfc601&&_0x5d4683&&_0x5d4683[_0x44ef22(0x1ee)]>0x0)return;this[_0x44ef22(0x21f)](_0xd09541);let _0x43df7d=this[_0x44ef22(0x2a7)][_0x44ef22(0x4bd)](_0x3a5b1d),_0x4f472a=((_0x43df7d==null?void 0x0:_0x43df7d[_0x44ef22(0x4fa)])===!0x1?_0x43df7d[_0x44ef22(0x3e6)](t['DocCanvasPopManagerService']):this['_docCanvasPopManagerService'])[_0x44ef22(0x33e)](_0x115c39,this[_0x44ef22(0x37a)](_0x26f09a,_0x53dacd),_0x3a5b1d);this['disposeWithMe'](_0x4f472a),this[_0x44ef22(0x4e8)](_0xd09541)[_0x44ef22(0x474)](_0x4f472a),this['_popupTargetKeys'][_0x44ef22(0x373)](_0xd09541,_0xdfc601),this['_drawingManagerService'][_0x44ef22(0x2f0)]()[_0x44ef22(0x3f9)](_0x2dc3fe=>_0x2dc3fe[_0x44ef22(0x2e6)]===_0x3a5b1d&&_0x2dc3fe['subUnitId']===_0x15b9f1&&_0x2dc3fe['drawingId']===_0x1dda84)||this[_0x44ef22(0x31f)][_0x44ef22(0x2c7)]([{'unitId':_0x3a5b1d,'subUnitId':_0x15b9f1,'drawingId':_0x1dda84}]);}[_0xac088e(0x37a)](_0x402e7e,_0x4a6a3e){const _0x2def86=_0xac088e;return{'componentKey':xt,'requiresStableLayout':!0x1,'direction':_0x2def86(0x4af),'offset':[0x0,e['SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET']],'extraProps':{'unitId':_0x402e7e[_0x2def86(0x2e6)],'subUnitId':_0x402e7e[_0x2def86(0x390)],'drawingId':_0x402e7e[_0x2def86(0x25f)],'drawingType':_0x4a6a3e,'shapeType':_0x402e7e[_0x2def86(0x492)],'shapeData':_0x402e7e[_0x2def86(0x485)]}};}[_0xac088e(0x2a6)](_0x134a9c,_0x397ca1){const _0x56e30e=_0xac088e;let _0x492382=this[_0x56e30e(0x278)][_0x56e30e(0x2cc)](_0x134a9c,o['UniverInstanceType'][_0x56e30e(0x2ba)]);if(!_0x492382)return!0x1;let _0x474a07=(0x0,s['getDocumentDrawingSegmentId'])(_0x492382,_0x397ca1);return(0x0,s[_0x56e30e(0x376)])(this[_0x56e30e(0x462)],_0x134a9c,[...(0x0,s['getDocumentEntityParentPermissionObjectIds'])(_0x492382,_0x474a07,_0x56e30e(0x1e4),_0x397ca1),(0x0,s[_0x56e30e(0x1fe)])(_0x474a07,_0x56e30e(0x1e4),_0x397ca1)]);}['_registerOperations'](){const _0x535bb2=_0xac088e;this[_0x535bb2(0x38a)](this['_commandService'][_0x535bb2(0x25e)](_0x3ddc95=>{const _0x10741d=_0x535bb2;if(_0x3ddc95['id']===j['id']){let {unitId:_0x182eb8,subUnitId:_0x47c08e,drawingId:_0xed68a9}=_0x3ddc95['params'];this[_0x10741d(0x3e1)]+=0x1,this[_0x10741d(0x362)]=this['_getShapeInfo'](_0x182eb8,_0x47c08e,_0xed68a9),this[_0x10741d(0x21f)](void 0x0,!0x0),this['_openShapeEditPanel']();}if(_0x3ddc95['id']===B['id']&&(this[_0x10741d(0x362)]=null,this[_0x10741d(0x3ee)]()),_0x3ddc95['id']===r['UpdateDocShapeDataMutation']['id']){let {unitId:_0x1e5ee7,shapeId:_0x13214b}=_0x3ddc95[_0x10741d(0x359)];if(this[_0x10741d(0x362)]&&this[_0x10741d(0x362)]['shapeId']===_0x13214b){let _0x229caa=this[_0x10741d(0x2f6)](_0x1e5ee7,this['_activeShapeInfo']['subUnitId'],_0x13214b);_0x229caa&&(this[_0x10741d(0x3e1)]+=0x1,_0x229caa[_0x10741d(0x3b8)]=this['_shapeEditPanelVersion'],this[_0x10741d(0x362)]=_0x229caa,this['_isOpenedShapeEditPanel']&&this[_0x10741d(0x227)]());}}})),this[_0x535bb2(0x38a)](this[_0x535bb2(0x31f)][_0x535bb2(0x22d)][_0x535bb2(0x43a)](_0x139954=>{const _0xf624da=_0x535bb2;if(this[_0xf624da(0x402)]===!0x1)return;if(_0x139954[_0xf624da(0x1ee)]===0x0){this[_0xf624da(0x362)]=null,this[_0xf624da(0x3ee)]();return;}if(_0x139954[_0xf624da(0x1ee)]===0x1&&_0x139954[0x0]['drawingType']===o['DrawingTypeEnum']['DRAWING_SHAPE']&&(this[_0xf624da(0x3e1)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x139954[0x0]['unitId'],_0x139954[0x0][_0xf624da(0x390)],_0x139954[0x0]['drawingId']),this['_activeShapeInfo'])){this[_0xf624da(0x227)]();return;}let _0x5aa8bb=_0x139954['filter'](_0x5abc54=>_0x5abc54[_0xf624da(0x37c)]===o[_0xf624da(0x440)][_0xf624da(0x2bf)]);if(_0x139954[_0xf624da(0x1ee)]>0x1&&_0x5aa8bb[_0xf624da(0x1ee)]===_0x139954[_0xf624da(0x1ee)]){if(this[_0xf624da(0x3e1)]+=0x1,this[_0xf624da(0x362)]=this[_0xf624da(0x2f6)](_0x139954[0x0]['unitId'],_0x139954[0x0]['subUnitId'],_0x139954[0x0][_0xf624da(0x270)]),this[_0xf624da(0x362)]){this['_openShapeEditPanel']();return;}}else{if(this[_0xf624da(0x3e1)]+=0x1,this[_0xf624da(0x362)]=this[_0xf624da(0x2f6)](_0x139954[0x0]['unitId'],_0x139954[0x0][_0xf624da(0x390)],_0x139954[0x0][_0xf624da(0x270)]),this[_0xf624da(0x362)]){this[_0xf624da(0x362)]['disableShapeOption']=!0x0,this[_0xf624da(0x227)]();return;}}this['_closeShapeEditPanel']();}));}[_0xac088e(0x227)](){const _0x4d8b7=_0xac088e;this['_activeShapeInfo']&&(this[_0x4d8b7(0x2d1)]=this[_0x4d8b7(0x2f1)][_0x4d8b7(0x487)]({'id':w,'header':{'title':this[_0x4d8b7(0x4b3)]['t'](_0x4d8b7(0x394))},'width':0x184,'children':{'label':w,...this['_activeShapeInfo']},'onClose':()=>{const _0x10e109=_0x4d8b7;this[_0x10e109(0x31f)]['focusDrawing'](null),this['_contextService'][_0x10e109(0x283)](o['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x10e109(0x2d1)]=null;}}),this[_0x4d8b7(0x402)]=!0x0);}[_0xac088e(0x3ee)](){const _0x349883=_0xac088e;this[_0x349883(0x402)]=!0x1,this[_0x349883(0x2f1)][_0x349883(0x411)](w),this[_0x349883(0x2d1)]=null,this[_0x349883(0x444)][_0x349883(0x283)](o[_0x349883(0x24d)],!0x1),this[_0x349883(0x31f)][_0x349883(0x2c7)](null);}};zt=I([F(0x0,o[_0xac088e(0x257)]),F(0x1,(0x0,o[_0xac088e(0x383)])(n[_0xac088e(0x309)])),F(0x2,n[_0xac088e(0x220)]),F(0x3,(0x0,o['Inject'])(r[_0xac088e(0x326)])),F(0x4,(0x0,o[_0xac088e(0x383)])(o[_0xac088e(0x2e2)])),F(0x5,o[_0xac088e(0x2cf)]),F(0x6,u[_0xac088e(0x4ba)]),F(0x7,(0x0,o[_0xac088e(0x383)])(t['DocCanvasPopManagerService'])),F(0x8,l[_0xac088e(0x1f4)]),F(0x9,o[_0xac088e(0x486)]),F(0xa,(0x0,o[_0xac088e(0x383)])(G)),F(0xb,o[_0xac088e(0x23e)])],zt);let Bt=class extends o['Disposable']{constructor(_0x9d874e,_0x29235f){const _0x190be8=_0xac088e;super(),this[_0x190be8(0x446)]=_0x9d874e,this[_0x190be8(0x4b3)]=_0x29235f,this[_0x190be8(0x38a)]((0x0,o['toDisposable'])((0x0,l[_0x190be8(0x4d7)])((_0x4f290a,_0xcf6387,_0x5ab2a7)=>this[_0x190be8(0x203)](_0x4f290a,_0xcf6387,_0x5ab2a7))));}[_0xac088e(0x203)](_0x337009,_0x5af14b,_0x4d6b1d){const _0x3a20e4=_0xac088e;let _0x52031c=this[_0x3a20e4(0x446)][_0x3a20e4(0x3a7)](_0x337009,_0x5af14b);if(!_0x52031c)return null;let _0x35653a=_0x52031c[_0x3a20e4(0x296)](),_0x4ad631=(0x0,i[_0x3a20e4(0x3a6)])(_0x35653a),_0xad8858=_0x35653a[_0x3a20e4(0x4bb)];if(!_0xad8858||_0x4ad631[_0x3a20e4(0x2be)]!==i[_0x3a20e4(0x3fd)][_0x3a20e4(0x300)])return null;let _0x361e03=_0x4d6b1d[_0x3a20e4(0x351)],_0x8e7d54=_0x4d6b1d['fallbackHeight'];_0x52031c[_0x3a20e4(0x3c4)]({'width':_0x361e03,'height':_0x8e7d54});let _0x56a938=_0x52031c[_0x3a20e4(0x2e8)]({'left':0x0,'top':0x0,'width':_0x361e03,'height':_0x8e7d54}),_0x2c0aee=(0x0,e[_0x3a20e4(0x325)])(_0x3a20e4(0x1f9)in _0xad8858?_0xad8858[_0x3a20e4(0x1f9)]:void 0x0),_0x302723=(_0x2c0aee==null?void 0x0:_0x2c0aee[_0x3a20e4(0x340)])??(_0x3a20e4(0x21a)in _0xad8858?(0x0,e['plainShapeTextToDocumentData'])(_0xad8858,_0x5af14b+'-layout'):null);if(!_0x302723)return null;let _0x5d8abd=(0x0,e[_0x3a20e4(0x2ee)])({'documentData':_0x302723,'height':_0x8e7d54,'shapeData':_0x35653a,'textRect':_0x56a938,'width':_0x361e03,'widthBuffer':0x0});_0x5d8abd&&({width:_0x361e03,height:_0x8e7d54}=_0x5d8abd,_0x52031c[_0x3a20e4(0x3c4)]({'width':_0x361e03,'height':_0x8e7d54}),_0x56a938=_0x52031c[_0x3a20e4(0x2e8)]({'left':0x0,'top':0x0,'width':_0x361e03,'height':_0x8e7d54}));let _0x380fce=_0xad8858[_0x3a20e4(0x47f)]!==!0x1,_0x14d453=(0x0,e[_0x3a20e4(0x249)])(_0x302723,{'isHorizontal':_0x380fce,'textRect':_0x56a938,'verticalAlign':_0x2c0aee==null?void 0x0:_0x2c0aee['va'],'horizontalAlign':_0x2c0aee==null?void 0x0:_0x2c0aee['ha'],'wrapStrategy':(0x0,e[_0x3a20e4(0x25a)])(_0x35653a)}),_0x268d85=new o[(_0x3a20e4(0x24c))](_0x14d453),_0x3b8a83=new l[(_0x3a20e4(0x393))](_0x268d85),_0x124779=l[_0x3a20e4(0x3cb)][_0x3a20e4(0x506)](_0x3b8a83,this[_0x3a20e4(0x4b3)]);try{var _0x284ca0,_0x1e663e;_0x124779[_0x3a20e4(0x449)]();let _0x15d828=((_0x284ca0=_0x124779[_0x3a20e4(0x380)]())==null?void 0x0:_0x284ca0['pages'])??[],_0x2bf571=_0x15d828[_0x15d828[_0x3a20e4(0x1ee)]-0x1],_0xe4f0a=_0x2bf571?Math[_0x3a20e4(0x327)](0x0,((_0x1e663e=(0x0,l[_0x3a20e4(0x409)])(_0x2bf571))==null?void 0x0:_0x1e663e[_0x3a20e4(0x44f)])??0x0):0x0,_0x51e4db=_0x124779[_0x3a20e4(0x4b2)]()[_0x3a20e4(0x454)]+_0xe4f0a-(_0x380fce?_0x56a938['height']:_0x56a938[_0x3a20e4(0x4b0)]);return Number['isFinite'](_0x51e4db)?_0x380fce?{'width':_0x361e03,'height':Math[_0x3a20e4(0x327)](0x1,_0x8e7d54+_0x51e4db)}:{'width':Math['max'](0x1,_0x361e03+_0x51e4db),'height':_0x8e7d54}:null;}finally{_0x124779['dispose'](),_0x3b8a83[_0x3a20e4(0x45f)](),_0x268d85['dispose']();}}};Bt=I([F(0x0,(0x0,o[_0xac088e(0x383)])(r[_0xac088e(0x326)])),F(0x1,(0x0,o[_0xac088e(0x383)])(o[_0xac088e(0x2e2)]))],Bt);let $=class extends o['Plugin']{constructor(_0x320f07=nt,_0x148883,_0x27416e,_0x17b277,_0x4c6c68){const _0x2bf191=_0xac088e;super(),this[_0x2bf191(0x397)]=_0x320f07,this['_injector']=_0x148883,this[_0x2bf191(0x483)]=_0x27416e,this['_configService']=_0x17b277,this[_0x2bf191(0x2a7)]=_0x4c6c68;let {menu:_0x3605db,..._0x52f54c}=(0x0,o['merge'])({},nt,this[_0x2bf191(0x397)]);_0x3605db&&this[_0x2bf191(0x3e9)][_0x2bf191(0x472)](_0x2bf191(0x4e5),_0x3605db,{'merge':!0x0}),this['_configService'][_0x2bf191(0x472)](tt,_0x52f54c),this[_0x2bf191(0x503)]();}['onStarting'](){const _0x5d39ec=_0xac088e;(0x0,o['registerDependencies'])(this['_injector'],this['_getDependencies']()),this['_injector'][_0x5d39ec(0x314)](jt),this[_0x5d39ec(0x31d)]();}[_0xac088e(0x36e)](){return[[jt],[zt],[Z],[K],[q],[W],[L],[J],[Bt],[G],[X]];}['onReady'](){const _0x595c55=_0xac088e;this[_0x595c55(0x30d)]()[_0x595c55(0x3ca)](_0xf0391f=>{const _0x487c79=_0x595c55;this[_0x487c79(0x38a)](this['_renderManagerService']['registerRenderModule'](o[_0x487c79(0x230)][_0x487c79(0x2ba)],_0xf0391f));}),(0x0,o[_0x595c55(0x20f)])(this['_injector'],[[zt],[Z],[K],[q],[L],[J],[Bt],[G],[X]]);}['_getRenderModules'](){return[[W],[It],[Rt],[Mt]];}['onRendered'](){const _0x1115e9=_0xac088e;this[_0x1115e9(0x38a)](this[_0x1115e9(0x2a7)][_0x1115e9(0x447)](o[_0x1115e9(0x230)]['UNIVER_DOC'],[Lt]));}['_initCommands'](){const _0x49c221=_0xac088e;[C,B,j,A,N,P][_0x49c221(0x3ca)](_0x2ea379=>this[_0x49c221(0x38a)](this[_0x49c221(0x483)][_0x49c221(0x469)](_0x2ea379)));}[_0xac088e(0x31d)](){const _0x3532b2=_0xac088e;let _0x334927=this[_0x3532b2(0x4d9)],_0x346d5d=_0x334927[_0x3532b2(0x314)](n[_0x3532b2(0x328)]);this[_0x3532b2(0x38a)](_0x346d5d[_0x3532b2(0x30e)](n[_0x3532b2(0x1ec)]['CONTENT'],()=>(0x0,n[_0x3532b2(0x493)])(Dt,_0x334927)));}};H($,_0xac088e(0x348),o[_0xac088e(0x230)][_0xac088e(0x2ba)]),H($,'pluginName',_0xac088e(0x2c0)),H($,_0xac088e(0x3b6),$e),H($,'version',et),$=I([(0x0,o[_0xac088e(0x3a2)])(m['UniverLicensePlugin'],s[_0xac088e(0x316)],u['UniverDrawingPlugin'],d[_0xac088e(0x324)],l[_0xac088e(0x22e)],t['UniverDocsUIPlugin'],a[_0xac088e(0x240)],h['UniverDocsDrawingUIPlugin'],r[_0xac088e(0x47e)],e['UniverShapeEditorUIPlugin']),F(0x1,(0x0,o[_0xac088e(0x383)])(o[_0xac088e(0x431)])),F(0x2,o[_0xac088e(0x2cf)]),F(0x3,o[_0xac088e(0x4a8)]),F(0x4,l['IRenderManagerService'])],$),exports[_0xac088e(0x435)]=Qe,Object[_0xac088e(0x2e7)](exports,_0xac088e(0x30f),{'enumerable':!0x0,'get':function(){return Q;}}),Object['defineProperty'](exports,_0xac088e(0x3fa),{'enumerable':!0x0,'get':function(){return $;}});
|