@univerjs-pro/docs-shape-ui 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/commands/command/update-doc-drawing-metadata.command.d.ts +15 -0
- package/lib/types/commands/menu/object-list.menu.d.ts +4 -0
- package/lib/types/controllers/shape-text-hyper-link.render-controller.d.ts +9 -0
- package/lib/types/view-model/drawing-shape.d.ts +2 -0
- package/lib/types/view-model/shape-data-model.d.ts +8 -0
- package/lib/types/views/ShapeOptions.d.ts +26 -0
- package/lib/types/views/shape-editor-panel/ShapeLineEditor.d.ts +12 -0
- package/lib/types/views/shape-editor-panel/index.d.ts +1 -0
- package/lib/types/views/shape-floating-toolbar/shape-floating-toolbar-utils.d.ts +1 -0
- package/lib/types/views/shape-text-editor/ShapeTextFloatToolbar.d.ts +2 -0
- package/lib/types/views/shapes.d.ts +58 -0
- 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 +20 -20
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1ed081=_0x5aa0;(function(_0x1ba713,_0x25b889){const _0x5d924f=_0x5aa0,_0x4dec90=_0x1ba713();while(!![]){try{const _0x4e89ce=parseInt(_0x5d924f(0x282))/0x1*(-parseInt(_0x5d924f(0x391))/0x2)+-parseInt(_0x5d924f(0x319))/0x3+parseInt(_0x5d924f(0x3ca))/0x4+-parseInt(_0x5d924f(0x404))/0x5*(parseInt(_0x5d924f(0x422))/0x6)+-parseInt(_0x5d924f(0x44e))/0x7*(-parseInt(_0x5d924f(0x448))/0x8)+parseInt(_0x5d924f(0x229))/0x9+parseInt(_0x5d924f(0x3f0))/0xa;if(_0x4e89ce===_0x25b889)break;else _0x4dec90['push'](_0x4dec90['shift']());}catch(_0x47abc5){_0x4dec90['push'](_0x4dec90['shift']());}}}(_0x4208,0xa86fe));import{FormulaShapeAnimationController as _0x297674,MobileShapeEditorControls as _0x3de1f7,MobileShapeEditorService as _0x1adc39,MobileShapePickerPanel as _0x28df4e,SHAPE_CHANGE_PICKER_COMPONENT as _0x528b39,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x45b1c1,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x1fa496,ShapeEditPanel as _0x528db9,ShapeFloatingToolbar as _0x28d84d,ShapeFloatingToolbarService as _0xd408b5,ShapeFloatingToolbarToggleFactory as _0x290bb3,ShapeFormulaRibbonControl as _0x1c996f,ShapeGroupEnum as _0x4f9fa7,ShapePickerDropdown as _0x506c5f,ShapePickerPanel as _0x104054,ShapeQuickStyleGallery as _0x3c43fb,ShapeStyleRibbonControl as _0x4f30f7,ShapeTextEditorContainer as _0x3e1e99,ShapeTextFloatMenuRenderControllerBase as _0x4fa01d,ShapeTextFloatToolbar as _0x1ff31b,ShapeTextHyperLinkPopupService as _0x491613,ShapeTextRibbonControl as _0xb93f52,ToggleShapeFloatingToolbarOperation as _0x1c8b61,UniverShapeEditorMobileUIPlugin as _0x2f7ef7,UniverShapeEditorUIPlugin as _0xf08f8c,activateDrawingObject as _0x58d512,bindRenderTransformerLifecycle as _0x40ac78,buildShapeTextDataUpdate as _0x4aa220,clearActiveDrawingObjects as _0x55746c,drawFormulaShapeAnimationLayers as _0xbd9d06,getDrawingTypeNameKey as _0x58a6be,getTextModel as _0x11d450,getTextStyle as _0x1257eb,normalizeShapeTextModel as _0x2e2427,plainShapeTextToDocumentData as _0x105325,prepareShapeTextDocumentData as _0x25ec96,prepareShapeTextDocumentData as _0x2bb33c,registerShapeFormatPainter as _0x688a39,resolveFormulaShapeAutoFitSize as _0x209b99,resolveShapeContextualRibbonHostMode as _0x557f66,resolveShapeTextDocumentPageHeight as _0x5a1b24,resolveShapeTextDocumentRenderLayout as _0x191558,resolveShapeTextEditorBehaviorShapeData as _0xe70f41,resolveShapeTextEditorWrapStrategy as _0x55fcc9,shouldAllowShapeTextEditorHostSizeShrink as _0x345c86,shouldClipShapeTextDocument as _0x2b8d55,useFormulaShapeToolbar as _0x4f9d08}from'@univerjs-pro/shape-editor-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0x47a510,DOC_CONTENT_INSERT_MENU_ID as _0x551466,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x31fd56,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x3e65d4,DocCanvasPopManagerService as _0xe084e0,DocEventManagerService as _0x4420fc,DocLayoutInteractionService as _0x23c4ef,DocParagraphMenuService as _0x33fce6,DocPrintInterceptorService as _0x10ee9c,DocRenderController as _0x299248,DocSelectionRenderService as _0x3272e9,EMPTY_PARAGRAPH_MENU_ID as _0x2babac,INSERT_BELLOW_MENU_ID as _0xb3dfee,UniverDocsMobileUIPlugin as _0x4ba3d5,UniverDocsUIPlugin as _0x44d973,VIEWPORT_KEY as _0x384053}from'@univerjs/docs-ui';import{BuiltInUIPart as _0x32804c,ComponentManager as _0x1bfb02,ContextMenuGroup as _0x40e83e,ContextMenuPosition as _0x4bb22c,FloatingObjectToolbarPosition as _0x2b3178,FormatPainterSessionService as _0x2cd412,IMenuManagerService as _0x206d0b,IRibbonService as _0x356848,ISidebarService as _0x1357e7,IUIPartsService as _0x4e8829,IconManager as _0x2a264a,MenuItemType as _0x2f080a,MenuManagerPosition as _0x548c7b,MobileMenu as _0xc85ff4,ObjectPermissionButton as _0x54a7e7,RibbonInsertGroup as _0x2d4568,connectInjector as _0x30129e,getMenuHiddenObservable as _0x513eb1,useDependency as _0x5c5c3d,useObservable as _0x2f0836}from'@univerjs/ui';import{DEFAULT_DOC_SHAPE_HEIGHT as _0x4ea882,DEFAULT_DOC_SHAPE_WIDTH as _0x313d3d,DocShapeAnchorPosition as _0x4b20f2,DocsShapeService as _0x39396e,InsertDocShapeCommand as _0xc29dcd,UniverDocsShapePlugin as _0x2d0bed,UpdateDocDrawingMetadataCommand as _0x3f9a11,UpdateDocShapeDataCommand as _0x46dc48,UpdateDocShapeDataMutation as _0xbcf5de}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x2fdab0,ShapeArrowSizeEnum as _0xb4e302,ShapeArrowTypeEnum as _0xc61596,ShapeDefaultConfig as _0x127ad4,ShapeFillEnum as _0x81ceb,ShapeLineTypeEnum as _0xbdeefa,ShapeModel as _0x7b3953,ShapeRenderModeEnum as _0x3cb180,ShapeTextAutoFitType as _0x44ef7a,ShapeTypeEnum as _0x23c14c,isConnectorShape as _0x238e4e,resolveShapeTextBodyBehavior as _0x1a4698}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x44c530,UniverShapeEditorPlugin as _0xd2d2e,applyQuickStyleToShapeData as _0x3e6302,cloneShapeDataForType as _0x54b1f4,createShapeFormulaDocument as _0x347dfc,createShapeTextBoxShapeData as _0x9be148,getShapeQuickStylePreset as _0x35d5ae,getShapeQuickStyleType as _0x384a1e,resolveActiveShapeQuickStylePresetId as _0x4ee18b}from'@univerjs-pro/shape-editor';import{ArrangeTypeEnum as _0x30db5e,BooleanNumber as _0x1fdcb8,CommandType as _0x500db0,DependentOn as _0x2e6e62,Disposable as _0x5721ff,DisposableCollection as _0x153c14,DocumentDataModel as _0x3b3dfb,DrawingTypeEnum as _0x690970,FOCUSING_COMMON_DRAWINGS as _0x5ad933,FOCUSING_SHAPE_TEXT_EDITOR as _0x5fd016,HorizontalAlign as _0x2381fc,ICommandService as _0x582229,IConfigService as _0x280fd7,IContextService as _0x268075,IImageIoService as _0x272990,IPermissionService as _0x49aab3,IURLImageService as _0x2d26b4,IUniverInstanceService as _0x357598,Inject as _0x4e9d1c,Injector as _0x3d54b6,LocaleService as _0x4b811c,Plugin as _0x30ce8,PositionedObjectLayoutType as _0x1ef66e,UniverInstanceType as _0x436dd9,VerticalAlign as _0x36ee41,createInternalEditorID as _0x4f25d9,generateRandomId as _0xb695a5,getParagraphContentStartOffset as _0x29a058,merge as _0x381591,registerDependencies as _0x25479e,toDisposable as _0xfac87e,touchDependencies as _0x3d6461}from'@univerjs/core';import{DocInterceptorService as _0x3a4b97,DocSelectionManagerService as _0x2325c6,RichTextEditingMutation as _0x4c133e,SetDocumentPermissionCommand as _0x4a71fc,UniverDocsPlugin as _0x4e3d23,canEditDocumentTargets as _0x47555f,getDocumentDrawingSegmentId as _0x1fc7f8,getDocumentEntityParentPermissionObjectIds as _0x1a179a,getDocumentEntityPermissionObjectId as _0x5462ea}from'@univerjs/docs';import{IDocDrawingService as _0x5f2715,RemoveDocDrawingCommand as _0x3723c7,SetDocDrawingArrangeCommand as _0x5dc4dd,TextWrappingStyle as _0x4b1e43,UpdateDocDrawingWrappingStyleCommand as _0xdbdd89,UpdateDrawingDocTransformCommand as _0x53a1f6}from'@univerjs/docs-drawing';import{CURSOR_TYPE as _0x13100c,Circle as _0x738e8c,DRAWING_OBJECT_LAYER_INDEX as _0x8e9c78,DocumentSkeleton as _0x44a5a2,DocumentViewModel as _0x514bbc,Documents as _0x407a64,IRenderManagerService as _0x1b5744,RENDER_CLASS_TYPE as _0x29eaa6,Shape as _0x9fb59e,Transform as _0x3cb6b6,UniverRenderEnginePlugin as _0x338f29,Vector2 as _0x2ede79,getLastLine as _0x14e5f4,setDocsCustomBlockRenderViewportProvider as _0x357255}from'@univerjs/engine-render';import{IDrawingManagerService as _0x4cc4c4,SetDrawingSelectedOperation as _0x4216b5,UniverDrawingPlugin as _0x4249ea,getDrawingShapeKeyByDrawingSearch as _0x54547b}from'@univerjs/drawing';import{DrawingCommonPanel as _0xe08cbd,DrawingImageClipService as _0x4775b9,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x3de7d6,MobileObjectListPanel as _0x49b254,OBJECT_LIST_FLOATING_SECTION_ID as _0x4887bf,ObjectListPanelBase as _0x92c98e,UniverDrawingMobileUIPlugin as _0x4ec3f0,UniverDrawingUIPlugin as _0x26805d,getObjectListPanelSectionIdForDrawingType as _0x3c8fa2,insertGroupObject as _0x514f17}from'@univerjs/drawing-ui';import{Fragment as _0x29f7de,jsx as _0x20be44,jsxs as _0x56d981}from'react/jsx-runtime';import{BehaviorSubject as _0x4246c4,Observable as _0x3fafbe,distinctUntilChanged as _0x19e0f8,map as _0x5cfa63,merge as _0xfc549c,of as _0x13712d,startWith as _0x2c09e4}from'rxjs';import{UniverLicensePlugin as _0x1319ac}from'@univerjs-pro/license';import{DocDrawingPosition as _0x397b36,DocDrawingTextWrap as _0x19e2da,MobileDocDrawingPosition as _0x3ccd8d,MobileDocDrawingTextWrap as _0x416f6b,UniverDocsDrawingMobileUIPlugin as _0x4ca735,UniverDocsDrawingUIPlugin as _0x5efad2}from'@univerjs/docs-drawing-ui';import{BottomIcon as _0x10f104,MoreDownIcon as _0x5c6907,MoreUpIcon as _0x19b22a,MoveDownIcon as _0x863eb7,MoveUpIcon as _0x1fa84b,ObjectLayersIcon as _0x2d9e5a,ShapeFormatSettingIcon as _0x51d8f6,TextWrapShapeIcon as _0x1a2dfc,TopmostIcon as _0x88dd38}from'@univerjs/icons';import{MobileActionRow as _0x37d12d}from'@univerjs/design';import{memo as _0x470956,useEffect as _0x3e40cc,useMemo as _0x108bd4,useReducer as _0x4aee64,useState as _0x5d63ba}from'react';import{UnitObject as _0x3d15f1}from'@univerjs/protocol';function hr(_0x20ec2e,_0x1f45c2){const _0x385c42=_0x5aa0;if(_0x1f45c2){if(_0x238e4e(_0x20ec2e)&&(_0x1f45c2[_0x385c42(0x2ce)]||_0x1f45c2[_0x385c42(0x441)]))return{'ln':{'startArrow':_0x1f45c2['startArrow']?{'type':_0xc61596[_0x385c42(0x29d)],'size':_0xb4e302[_0x385c42(0x3d7)]}:void 0x0,'endArrow':_0x1f45c2['endArrow']?{'type':_0xc61596['Arrow'],'size':_0xb4e302[_0x385c42(0x2e9)]}:void 0x0}};if(_0x20ec2e===_0x23c14c[_0x385c42(0x387)]&&(_0x1f45c2[_0x385c42(0x2f5)]||_0x1f45c2[_0x385c42(0x1e2)]))return _0x9be148({'fill':{'fillType':_0x81ceb[_0x385c42(0x433)],'color':_0x385c42(0x33d)},'isHorizontal':!!_0x1f45c2[_0x385c42(0x2f5)],'stroke':{'lineStrokeType':_0xbdeefa[_0x385c42(0x34d)],'width':0x1,'color':_0x385c42(0x233)}});}}function gr(_0x10cfd7,_0x1a31bf){const _0x552cad=_0x5aa0;var _0x2edd91;let _0x3b0289=_0x1a31bf['segmentId']??'',_0x317889=(_0x2edd91=_0x10cfd7[_0x552cad(0x2a2)](_0x3b0289))==null?void 0x0:_0x2edd91[_0x552cad(0x2be)]();if(!_0x317889)return null;let _0x911d4e=_0x317889['paragraphs']??[],_0x56be5e=_0x911d4e[_0x552cad(0x2ec)](_0x2598ab=>{const _0x52f348=_0x552cad;let _0x4d6829=_0x29a058(_0x317889,_0x2598ab);return _0x1a31bf[_0x52f348(0x304)]>=_0x4d6829&&_0x1a31bf[_0x52f348(0x304)]<=_0x2598ab[_0x52f348(0x36c)];})??_0x911d4e[_0x911d4e[_0x552cad(0x43c)]-0x1];return _0x56be5e?{'paragraphId':_0x56be5e['paragraphId'],'segmentId':_0x3b0289,'position':_0x4b20f2[_0x552cad(0x27f)],'offset':_0x1a31bf[_0x552cad(0x304)]-_0x29a058(_0x317889,_0x56be5e)}:null;}function _r(_0x44ad22,_0x3bf4cb,_0x5187c1){const _0x4b219b=_0x5aa0;var _0x43e807,_0x579bb5;if(!_0x5187c1)return null;let _0x3a5aa5=(_0x43e807=_0x44ad22['get'](_0x1b5744)[_0x4b219b(0x30a)](_0x3bf4cb))==null?void 0x0:_0x43e807[_0x4b219b(0x34e)](_0x33fce6)[_0x4b219b(0x393)];if(!_0x3a5aa5)return null;let _0x2fd5d0=_0x5187c1==='below'?{'startOffset':_0x3a5aa5[_0x4b219b(0x2f4)]['endOffset'],'endOffset':_0x3a5aa5['moveRange'][_0x4b219b(0x31b)]}:_0x3a5aa5[_0x4b219b(0x321)];return{'startOffset':_0x2fd5d0[_0x4b219b(0x304)],'endOffset':_0x2fd5d0[_0x4b219b(0x31b)],'collapsed':_0x2fd5d0[_0x4b219b(0x304)]===_0x2fd5d0['endOffset'],'segmentId':((_0x579bb5=_0x3a5aa5[_0x4b219b(0x3f5)])==null?void 0x0:_0x579bb5[_0x4b219b(0x2ae)])??''};}const G={'type':_0x500db0['COMMAND'],'id':_0x1ed081(0x378),'handler':async(_0x3115ac,_0x38a788)=>{const _0x24461f=_0x1ed081;let _0x3dcf3b=_0x3115ac[_0x24461f(0x410)](_0x357598)[_0x24461f(0x3c3)](_0x436dd9['UNIVER_DOC']);if(!_0x3dcf3b)return!0x1;let _0x377e16=_0x3115ac['get'](_0x582229),_0x4e54e8=_0x3dcf3b['getUnitId'](),_0x5ddebe=_0x38a788[_0x24461f(0x317)]??_0xb695a5(),_0x13ef9e=_0x38a788[_0x24461f(0x421)]??_0x313d3d,_0x36a14e=_0x38a788[_0x24461f(0x3e1)]??_0x4ea882,_0xf622aa=_0x38a788[_0x24461f(0x2ba)]??hr(_0x38a788[_0x24461f(0x439)],_0x38a788[_0x24461f(0x35f)]),_0xc20da8=_r(_0x3115ac,_0x4e54e8,_0x38a788[_0x24461f(0x22a)])??_0x3115ac[_0x24461f(0x410)](_0x2325c6)[_0x24461f(0x3fd)]();if(!_0xc20da8)return!0x1;let _0x411bab=gr(_0x3dcf3b,_0xc20da8);return _0x411bab?!!_0x377e16['syncExecuteCommand'](_0xc29dcd['id'],{'unitId':_0x4e54e8,'shapeId':_0x5ddebe,'shapeType':_0x38a788[_0x24461f(0x439)],'shapeData':_0xf622aa,'transform':{'width':_0x13ef9e,'height':_0x36a14e},'placement':{'wrappingStyle':_0x4b1e43[_0x24461f(0x211)],'anchor':_0x411bab}}):!0x1;}},K='doc.shape.edit.panel',vr=_0x1ed081(0x3db),yr=_0x1ed081(0x424),br=_0x4f25d9(_0x1ed081(0x23b)),xr=_0x1ed081(0x325),Sr='DocsShapeTextEditorContainer',Cr={'id':_0x1ed081(0x39d),'type':_0x500db0['COMMAND'],'handler':(_0xcb9cf9,_0xa87edc)=>{const _0x3d5658=_0x1ed081;let _0x57212c=_0xcb9cf9[_0x3d5658(0x410)](_0x1357e7),_0x1ead21=_0xcb9cf9[_0x3d5658(0x410)](_0x4b811c),_0x3fc132=_0xcb9cf9[_0x3d5658(0x410)](_0x4cc4c4);return(_0xa87edc==null?void 0x0:_0xa87edc['value'])===_0x3d5658(0x360)?(_0x57212c[_0x3d5658(0x360)](yr),!0x0):(_0x57212c[_0x3d5658(0x44d)]({'id':yr,'header':{'title':_0x1ead21['t']('docs-shape-ui.objectListPanel.title')},'children':{'label':yr},'onClose':()=>{const _0xc81ad5=_0x3d5658;_0x3fc132[_0xc81ad5(0x1ea)](null);},'width':0x168}),!0x0);}},q={'type':_0x500db0[_0x1ed081(0x2ea)],'id':_0x1ed081(0x27a),'handler'(){return!0x0;}};function wr(_0x3ad2b3){const _0x1dcf68=_0x1ed081;let _0x15769a=_0x3ad2b3[_0x1dcf68(0x410)](_0x4cc4c4)[_0x1dcf68(0x2a0)](),_0xf1f1e5=_0x15769a[_0x1dcf68(0x43c)]===0x1?_0x15769a[0x0]:null;if(!_0xf1f1e5||_0xf1f1e5[_0x1dcf68(0x234)]!==_0x690970['DRAWING_SHAPE'])return null;let _0x33565c=_0x3ad2b3[_0x1dcf68(0x410)](_0x39396e),_0x227e24=_0x33565c[_0x1dcf68(0x363)](_0xf1f1e5[_0x1dcf68(0x355)],_0xf1f1e5[_0x1dcf68(0x203)],_0xf1f1e5['drawingId']),_0x19875d=_0x33565c[_0x1dcf68(0x2e4)](_0xf1f1e5[_0x1dcf68(0x355)],_0xf1f1e5[_0x1dcf68(0x203)],_0xf1f1e5[_0x1dcf68(0x210)]);return _0x227e24===void 0x0||!_0x19875d?null:{'drawing':_0xf1f1e5,'shapeData':_0x19875d,'shapeType':_0x227e24};}const Tr={'id':_0x1ed081(0x32d),'type':_0x500db0[_0x1ed081(0x2ea)],'handler':(_0x56da25,_0x3d5489)=>{const _0x5655b4=_0x1ed081;let _0x4b11b3=wr(_0x56da25),_0x12d0aa=_0x35d5ae((_0x3d5489==null?void 0x0:_0x3d5489[_0x5655b4(0x2b1)])??(_0x3d5489==null?void 0x0:_0x3d5489['value'])??'');if(!_0x4b11b3||!_0x12d0aa||_0x12d0aa['type']!==_0x384a1e(_0x4b11b3[_0x5655b4(0x2ba)]))return!0x1;let _0x102fec=_0x3e6302(_0x4b11b3[_0x5655b4(0x2ba)],_0x12d0aa);if(!_0x102fec)return!0x1;let {drawing:_0x5c329e}=_0x4b11b3;return _0x56da25['get'](_0x582229)[_0x5655b4(0x402)](_0x46dc48['id'],{'unitId':_0x5c329e[_0x5655b4(0x355)],'shapeId':_0x5c329e[_0x5655b4(0x210)],'shapeData':_0x102fec,'oldShapeJSON':{'oldShapeData':_0x4b11b3[_0x5655b4(0x2ba)]}});}},Er={'id':'doc.operation.update-shape-type','type':_0x500db0[_0x1ed081(0x2ea)],'handler':(_0x3b6c5e,_0x12727d)=>{const _0x1a3374=_0x1ed081;let _0x475602=wr(_0x3b6c5e),_0x257478=(_0x12727d==null?void 0x0:_0x12727d['shapeType'])??(_0x12727d==null?void 0x0:_0x12727d['value']);if(!_0x475602||!_0x257478||_0x238e4e(_0x475602[_0x1a3374(0x2e0)])||_0x238e4e(_0x257478))return!0x1;let _0x3a1d35=_0x54b1f4(_0x475602[_0x1a3374(0x2ba)],_0x257478);if(!_0x3a1d35)return!0x1;let {drawing:_0x112837}=_0x475602;return _0x3b6c5e['get'](_0x582229)['executeCommand'](_0x46dc48['id'],{'unitId':_0x112837[_0x1a3374(0x355)],'shapeId':_0x112837[_0x1a3374(0x210)],'shapeType':_0x257478,'shapeData':_0x3a1d35,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x475602['shapeType'],'oldShapeData':_0x475602[_0x1a3374(0x2ba)]}});}};function J(_0x59a0f1,_0xf8a1ca){return function(_0x4bf945,_0x3e7d0a){_0xf8a1ca(_0x4bf945,_0x3e7d0a,_0x59a0f1);};}function Y(_0xc21633,_0xa1329f,_0x4179f4,_0x59d064){const _0xedf491=_0x1ed081;var _0x27869d=arguments[_0xedf491(0x43c)],_0x1fd84f=_0x27869d<0x3?_0xa1329f:_0x59d064===null?_0x59d064=Object[_0xedf491(0x249)](_0xa1329f,_0x4179f4):_0x59d064,_0x23b041;if(typeof Reflect==_0xedf491(0x39b)&&typeof Reflect[_0xedf491(0x3f1)]==_0xedf491(0x341))_0x1fd84f=Reflect[_0xedf491(0x3f1)](_0xc21633,_0xa1329f,_0x4179f4,_0x59d064);else{for(var _0x29679d=_0xc21633[_0xedf491(0x43c)]-0x1;_0x29679d>=0x0;_0x29679d--)(_0x23b041=_0xc21633[_0x29679d])&&(_0x1fd84f=(_0x27869d<0x3?_0x23b041(_0x1fd84f):_0x27869d>0x3?_0x23b041(_0xa1329f,_0x4179f4,_0x1fd84f):_0x23b041(_0xa1329f,_0x4179f4))||_0x1fd84f);}return _0x27869d>0x3&&_0x1fd84f&&Object[_0xedf491(0x247)](_0xa1329f,_0x4179f4,_0x1fd84f),_0x1fd84f;}let X=class extends _0x5721ff{constructor(_0x1b1ea9,_0x30d974){const _0x110d18=_0x1ed081;super(),this[_0x110d18(0x263)]=_0x1b1ea9,this['_drawingManagerService']=_0x30d974,this[_0x110d18(0x3d5)](),this[_0x110d18(0x263)][_0x110d18(0x386)](!0x0),this[_0x110d18(0x2fd)]({'dispose':()=>this[_0x110d18(0x263)][_0x110d18(0x386)](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x17e76=_0x1ed081;let _0x117d5c=new Map(),_0x5a45f3=this[_0x17e76(0x263)]['registerClipDelegate']((_0x3f37eb,_0x2a288b,_0x4733a2,_0x3cb4f1,_0x356672)=>{const _0x4d4878=_0x17e76;let _0x406aae=_0x2a288b;if(_0x406aae===_0x23c14c['None']||_0x2a288b===_0x4d4878(0x35e))return!0x1;try{let _0x3df888=_0x117d5c['get'](_0x2a288b);return _0x3df888||(_0x3df888=new _0x7b3953(_0x406aae,_0x4d4878(0x332)+_0x2a288b),_0x117d5c[_0x4d4878(0x2e7)](_0x2a288b,_0x3df888)),_0x3df888['clearAdjustValue'](),_0x356672&&Object[_0x4d4878(0x303)](_0x356672)[_0x4d4878(0x43c)]>0x0&&_0x3df888[_0x4d4878(0x3b7)]({'adjustValues':_0x356672},!0x0),_0x3df888[_0x4d4878(0x31a)]({'width':_0x4733a2,'height':_0x3cb4f1}),_0x3df888[_0x4d4878(0x43a)](_0x3f37eb,{'left':0x0,'top':0x0,'width':_0x4733a2,'height':_0x3cb4f1});}catch{return!0x1;}});this[_0x17e76(0x2fd)](_0x5a45f3),this['disposeWithMe']({'dispose':()=>_0x117d5c['clear']()});}[_0x1ed081(0x275)](_0x246b25,_0x46777c,_0x53e950,_0x9055e5,_0xa8c6f7){const _0x5b0403=_0x1ed081;let _0x3a8247=this['_drawingManagerService'][_0x5b0403(0x426)](_0x246b25,_0x46777c)[_0x53e950];_0x3a8247&&_0x3a8247[_0x5b0403(0x234)]===_0x690970[_0x5b0403(0x202)]&&this[_0x5b0403(0x291)][_0x5b0403(0x399)]([{..._0x3a8247,'prstGeom':_0x9055e5,'adjustValues':_0xa8c6f7}]);}};X=Y([J(0x0,_0x4e9d1c(_0x4775b9)),J(0x1,_0x4e9d1c(_0x4cc4c4))],X);const Dr=_0x1ed081(0x3ea),Or=_0x1ed081(0x405);function kr({onShapeClick:_0x59f75e,excludeGroups:_0x45f4f3}){return _0x20be44(_0x104054,{'excludeGroups':_0x45f4f3,'onShapeClick':_0x59f75e,'scrollContainer':'parent'});}function Ar(){let _0x2774b2=_0x5c5c3d(_0x4cc4c4),_0x1f712c=_0x5c5c3d(X);return _0x55d710=>{const _0x5e344e=_0x5aa0;let _0x524dbb=_0x2774b2[_0x5e344e(0x2a0)]()[_0x5e344e(0x2ec)](_0x58a690=>_0x58a690[_0x5e344e(0x234)]===_0x690970[_0x5e344e(0x202)]);_0x524dbb&&_0x1f712c['clipByShape'](_0x524dbb[_0x5e344e(0x355)],_0x524dbb[_0x5e344e(0x203)],_0x524dbb['drawingId'],_0x55d710[_0x5e344e(0x37d)]);};}function jr(){const _0x32b872=_0x1ed081;let _0x26ea88=Ar();return _0x20be44(_0x506c5f,{'buttonLabel':_0x32b872(0x434),'excludeGroups':[_0x4f9fa7[_0x32b872(0x239)]],'onShapeClick':_0x26ea88});}function Mr(){const _0x547ad6=_0x1ed081;let _0x46872c=_0x5c5c3d(_0x1bfb02),_0x3e3c81=_0x5c5c3d(_0x4cc4c4),_0x10b323=_0x5c5c3d(_0x357598),_0x492cbf=_0x3e3c81[_0x547ad6(0x2a0)]()[0x0],_0x4fb832=_0x492cbf?_0x10b323[_0x547ad6(0x39e)](_0x492cbf[_0x547ad6(0x355)]):void 0x0,_0x47f4df=_0x4fb832===_0x436dd9[_0x547ad6(0x335)]?Or:_0x4fb832===_0x436dd9[_0x547ad6(0x407)]?_0x547ad6(0x2c9):void 0x0,_0x25fbeb=_0x47f4df?_0x46872c[_0x547ad6(0x410)](_0x47f4df):void 0x0;return _0x25fbeb?_0x20be44(_0x25fbeb,{}):null;}function _0x5aa0(_0x37500d,_0x1a52eb){_0x37500d=_0x37500d-0x1e2;const _0x420813=_0x4208();let _0x5aa06d=_0x420813[_0x37500d];return _0x5aa06d;}function Nr({paragraphMenuPlacement:_0x5b3688,PickerComponent:_0x4f53fd=kr}){let _0x413695=_0x5c5c3d(_0x582229);return _0x20be44(_0x4f53fd,{'onShapeClick':_0x587bbd=>{const _0x217f3a=_0x5aa0;_0x413695[_0x217f3a(0x402)](G['id'],{'paragraphMenuPlacement':_0x5b3688,'value':_0x587bbd['type'],'enhanceParams':{'endArrow':_0x587bbd[_0x217f3a(0x441)],'startArrow':_0x587bbd[_0x217f3a(0x2ce)],'horizontal':_0x587bbd[_0x217f3a(0x2f5)],'vertical':_0x587bbd[_0x217f3a(0x1e2)]}});}});}function Pr(_0x56aa72){const _0x2a418a=_0x1ed081;return _0x3c246c=>({'id':G['id'],'type':_0x2f080a[_0x2a418a(0x255)],'selections':[{'label':{'name':Dr,'hoverable':!0x1,'selectable':!0x1,'props':_0x56aa72?{'id':G['id'],'paragraphMenuPlacement':_0x56aa72}:{'id':G['id']}}}],'icon':_0x2a418a(0x21f),'title':_0x2a418a(0x3a9),'tooltip':_0x2a418a(0x3a9),'hidden$':_0x513eb1(_0x3c246c,_0x436dd9['UNIVER_DOC'])});}const Fr=Pr(),Ir=Pr(_0x1ed081(0x31f)),Lr=Pr(_0x1ed081(0x425));function Rr(_0x1e4f75){const _0x1e0f3f=_0x1ed081;return{'id':Cr['id'],'type':_0x2f080a['BUTTON'],'icon':_0x1e0f3f(0x22c),'title':'docs-shape-ui.objectListPanel.open','tooltip':_0x1e0f3f(0x2fe),'hidden$':_0x513eb1(_0x1e4f75,_0x436dd9[_0x1e0f3f(0x335)])};}function zr(_0x250525,_0xdf191c,_0x4a632f,_0x35971a,_0x2b863b,_0x12a912){let _0xb845ff={'unitId':_0xdf191c,'shapeId':_0x35971a,'shapeData':_0x12a912,'oldShapeJSON':_0x2b863b};return _0x250525['executeCommand'](_0x46dc48['id'],_0xb845ff);}function Br(_0x20ab4c,_0x5a091b,_0x47da19,_0x2bef29,_0x5c38f7,_0x23de89){const _0x3eee23=_0x1ed081;let _0x586b53={'unitId':_0x5a091b,'shapeId':_0x2bef29,'shapeData':_0x23de89,'oldShapeJSON':_0x5c38f7};return _0x20ab4c[_0x3eee23(0x402)](_0x46dc48['id'],_0x586b53);}const Vr=_0x1ed081(0x2f0),Hr=_0x1ed081(0x328),Ur=_0x1ed081(0x2ef),Wr=_0x1ed081(0x2d7),Gr='docs-shape-ui.shape-format.wrapping-style-label',Kr=[{'value':_0x4b1e43[_0x1ed081(0x211)],'label':_0x1ed081(0x236),'icon':_0x1ed081(0x342)},{'value':_0x4b1e43[_0x1ed081(0x2af)],'label':_0x1ed081(0x23d),'icon':_0x1ed081(0x40c)},{'value':_0x4b1e43[_0x1ed081(0x2b6)],'label':_0x1ed081(0x351),'icon':'DocsShapeWrapTopBottomIcon'},{'value':_0x4b1e43[_0x1ed081(0x318)],'label':'docs-shape-ui.textWrap.behindText','icon':_0x1ed081(0x449)},{'value':_0x4b1e43[_0x1ed081(0x3c0)],'label':_0x1ed081(0x365),'icon':_0x1ed081(0x3ba)}];function qr(){let _0x1454b6=_0x5c5c3d(_0x582229),_0x515c66=_0x5c5c3d(_0x4cc4c4),_0x235a25=_0x5c5c3d(_0x39396e),_0x4e4e3e=()=>{const _0x54e95e=_0x5aa0;var _0x38e783;let _0xf59c9=_0x515c66[_0x54e95e(0x2a0)]();if(_0xf59c9['length']!==0x1||((_0x38e783=_0xf59c9[0x0])==null?void 0x0:_0x38e783[_0x54e95e(0x234)])!==_0x690970['DRAWING_SHAPE'])return null;let {unitId:_0x1c8b64,subUnitId:_0x4fb17e,drawingId:_0x4e4b07}=_0xf59c9[0x0],_0x5c2377=_0x235a25[_0x54e95e(0x363)](_0x1c8b64,_0x4fb17e,_0x4e4b07),_0x455354=_0x235a25[_0x54e95e(0x2e4)](_0x1c8b64,_0x4fb17e,_0x4e4b07);return _0x5c2377===void 0x0||!_0x455354?null:{'unitId':_0x1c8b64,'subUnitId':_0x4fb17e,'drawingId':_0x4e4b07,'shapeType':_0x5c2377,'shapeData':_0x455354};},_0x40f24d=_0x2f0836(()=>new _0x3fafbe(_0xa2f63a=>{const _0x9c6712=_0x5aa0;let _0x26efaa=()=>_0xa2f63a[_0x9c6712(0x2d8)](_0x4e4e3e()),_0x4c25b5=_0x515c66['focus$'][_0x9c6712(0x251)](_0x26efaa),_0x7e3587=_0x1454b6['onCommandExecuted'](_0x19c10f=>{_0x19c10f['id']===_0xbcf5de['id']&&_0x26efaa();});return _0x26efaa(),()=>{const _0x3d9389=_0x9c6712;_0x4c25b5[_0x3d9389(0x36d)](),_0x7e3587['dispose']();};}),_0x4e4e3e(),!0x1,[_0x1454b6,_0x235a25,_0x515c66]);return{'selection':_0x40f24d,'updateShapeData':_0x585966=>{const _0x2b42d6=_0x5aa0;_0x40f24d&&zr(_0x1454b6,_0x40f24d[_0x2b42d6(0x355)],_0x40f24d[_0x2b42d6(0x203)],_0x40f24d[_0x2b42d6(0x210)],{'oldShapeData':_0x40f24d['shapeData']},_0x585966);}};}function Jr(){let {selection:_0x2e24d4,updateShapeData:_0x1c6c78}=qr();return _0x2e24d4?_0x20be44(_0x4f30f7,{'shapeData':_0x2e24d4['shapeData'],'shapeType':_0x2e24d4['shapeType'],'onUpdateShapeData':_0x1c6c78}):null;}function Yr(){const _0x2c9fe2=_0x1ed081;let _0x253212=_0x5c5c3d(_0x582229),_0x32dc2d=_0x5c5c3d(_0x4b811c),{selection:_0x40f09b}=qr();return _0x40f09b?_0x20be44(_0x3c43fb,{'type':_0x384a1e(_0x40f09b[_0x2c9fe2(0x2ba)]),'ariaLabel':_0x32dc2d['t'](_0x2c9fe2(0x413)),'activePresetId':_0x4ee18b(_0x40f09b[_0x2c9fe2(0x2ba)]),'onSelect':_0x5a8854=>_0x253212[_0x2c9fe2(0x402)](Tr['id'],{'presetId':_0x5a8854})}):null;}function Xr(){const _0x39dbed=_0x1ed081;let {selection:_0x4a5ae7,updateShapeData:_0x29dc2f}=qr();return _0x4a5ae7?_0x20be44(_0xb93f52,{'fontFamilyPopupDataComponent':'docs-shape-format-font-family-menu','shapeData':_0x4a5ae7[_0x39dbed(0x2ba)],'onUpdateShapeData':_0x29dc2f}):null;}function _0x4208(){const _0x38f2c1=['_loadShapePictureFill','getMatrix','LAYOUT','startIndex','unsubscribe','_transform','getTransformerByCreate','getAdjustInfoByName','applyPoint','setEditing','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','cells','_getSceneByUnitId','_isStartAdjusting','_instanceService','doc.command.menu-insert-shape','image','classType','render','intercept','type','_activeShapeAdjustPointList','onPointerDown$','isMainScene','getShapeModel','_permissionService','_clearCompletionFrame','MoveUpIcon','getScene','setCanUseShapeClip','Rect','getParent','offsetY','registerCommand','_setTransForm','svg','getActualSize','CROSSHAIR','getInterceptPoints','flatMap','466uXbiTK','onerror','activeTarget','GROUP','drawing-ui.objectListPanel.search','behindText','vertical-center','getImageSourceCache','featurePluginUpdateNotification','1em','object','push','doc.operation.open-shape-object-list-panel','getUnitType','delete','drawing-ui.objectListPanel.dragToReorder','0.14','PictureFill','getContextValue','getAdjustValueByName','drawing-ui.objectListPanel.locate','warn','docs-shape-ui.openPanel','contentVerticalOffset','docs-shape-ui.insertShape','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','doc.operation.close-doc-shape-format-panel','calcAdjValues','drawing-ui.objectListPanel.hide','getDrawingOrder','permissionPointUpdate$','restore','contentHeight','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','drawing-ui.objectListPanel.unlockHint','URL','setContextValue','extraProps','setShapeData','presentation','_layoutInteraction','DocsShapeWrapInFrontOfTextIcon','getPresentation','front','_drawRichTextLayer','transformByState','docs-shape-ui.mobile.style','IN_FRONT_OF_TEXT','angle','getShapeData','getCurrentUnitOfType','docs-shape-ui.textWrap.behindText','_menuManagerService','translateWithPrecision','save','_updateAdjustControlPositions','_popupMenuListener','3017104IuByLd','docs-shape-ui.ribbon.shape-format.formula-control','completeEditing','getValue','getPageDrawingIds','some','drawing-ui.objectListPanel.noSelection','_registerObjectListPanel','shape-editor-ui.toolbar.changeShape','getUnit','1.2','_registerImageShapeClipDelegate','clone','Medium','multiply','currentColor','_configService','docs-shape-ui.ribbon.shape-format','animationEnabled','behind','getShapePopupMenus','rows','drawing-ui.objectListPanel.lock','height','dataModel','_mobileEditorService','round','skeTables','_releaseRenderCache','0\x200\x2020\x2020','order','getImage','doc.shape.picker.component','M2\x203h16M2\x2017h16','PARAGRAPH','fallbackHeight','_toVisualAdjustPoint','calculate','17976410tzkpbB','decorate','currentAdjustValues','doc.shape.floating-toolbar','isInGroup','paragraph','drawings','_registerOperations','BUTTON','unregister','getObjectIncludeInGroup','isRichText','pages','getActiveTextRange','_shapeRenderController','complete','fillImageSourceType','_shapeFormulaService','executeCommand','drawing-ui.objectListPanel.hideAll','73290FUBzAT','doc.image-clip.shape-picker.component','create','UNIVER_SHEET','_drawShapeText','_hide','isHit','getShapeType','DocsShapeWrapSquareIcon','_activeShapeModel','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','refreshFormulaPresentation','get','_adjustPointObjects','beginInteraction','docs-shape-ui.quickStyles','indexOf','title','extensionGroups','_docPrintInterceptorService','_formulaAnimation','_draw','getDrawingEffectBounds','_getShapePopup','_transformCalculateSrcRect','drawing-ui.objectListPanel.descriptionPlaceholder','params','registerComponent','objects','width','300dHaGhG','fillType','doc.shape.object-list.panel','target','getDrawingData','map','onPointerUp$','_isOpenedShapeEditPanel','adjHandleSize','_getDependencies','_getFocusedShapeAtPoint','getSnapshot','_context','ancestorTransform','setSrcRect','getCurrentTypeOfUnit$','subscribeEvent','SolidFill','docs-shape-ui.crop.shape','_init','_canEditShape','_localeService','fillImageSource','value','buildClipPath','visible$','length','drawing-ui.objectListPanel.filterHidden','adjName','isHitLine','drawing-ui.objectListPanel.filterAll','endArrow','mergeMenu','_adjHandlerPointerMove','_shapeEditPanelVersion','isDrawingObject','subtle','left','12184yCdiBq','DocsShapeWrapBehindTextIcon','CONTENT','version','_getDisposePopups','open','791uvDamh','vertical','getRealBound','symbol','_getActiveDrawingParam','formulaPresentation','setConfig','oKey','size','focusDrawing','actualHeight','_injector','getDrawingSearch','_baseShapeHeight','cos','_onSavingEditorData$','showContextualTab','canDispose','refreshAdjustControls','drawing-ui.objectListPanel.nameInput','formulaBinding','trim','name','drawing-ui.objectListPanel.moveForward','TRUE','toPrimitive','_editingParams$','drawing-ui.objectListPanel.empty','top','5.5','onload','createControl$','_docDrawingShapeRenderController','DRAWING_IMAGE','subUnitId','onPointerMove$','_registerIcons','_toScenePoint','getDrawingByParam','dispose','string','DRAWING_DOM','shape-editor-ui.toolbar.quickStyles','disableObjectsEvent','DRAWING_SHAPE','PRINTING_COMPONENT_COLLECT','_getShapeAdjustInfosById','drawingId','INLINE','_activeAdjustInfo','docs-shape-ui.ribbon.shape-format.arrange-back','_updateSrcRectByTransform','square','reduce','refreshTransform$','_initMenu','_getRenderModules','hidden','prstGeom','getFocusedUnit','refreshShapeFillImage','OTHERS','ShapeIcon','getSkeletonData','_univerInstanceService','srcRect','onRendered','none','_activeShapeInfo','preValue','canvas','includes','7478505OQCWVo','paragraphMenuPlacement','pick','ObjectLayersIcon','_commandService','_createShapeAdjustControls','_shapeFloatingToolbarService','_shapeTextEditingService','drawing-ui.objectListPanel.close','visible','#2563EB','drawingType','flipX','docs-shape-ui.textWrap.inline','getDrawingVisible','isHorizontal','Line','getSelectedObjectMap','SHAPE_TEXT','max','docs-shape-ui.textWrap.square','_attachAdjustEvent','univer-box-border\x20univer-px-4\x20univer-text-sm','_ribbonService','MoveDownIcon','skeFooters','actions','default','_handleCreateControl','docs-shape-ui.config','defineProperty','isLineShape','getOwnPropertyDescriptor','docs-shape-ui.mobile.text','drawing-ui.objectListPanel.title','getEditing','univer-grid\x20univer-gap-3','drawing-ui.objectListPanel.sectionFloating','inline','clip','subscribe','filter','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','getDrawingDataForUnit','SELECTOR','update$','_shapeId','entries','behindDoc','_initPrinting','docs-shape-ui.formatShape','invert','setFillImage','LEFT','sin','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','docs-shape-ui.ribbon.shape-format.style-control','getShapeTextRect','_clipService','doc-shape-adjust-point-','univer-grid\x20univer-gap-5\x20univer-p-3','color','@univerjs-pro/docs-shape-ui','hideContextualTab','getDrawingOKey','shape-editor-ui.arrange.forward','_initUIPart','_docsShapeService','_initCommands','_completionFrame','docs-shape-ui.ribbon.shape-format.arrange-front','_registerPickers','_registerDrawingTransformHandler','_clearPopups','focus$','animateFormulaPresentation','clipByShape','drawing-ui.objectListPanel.filterLocked','isolated','_initEditingParams','_isShouldShowDrawingShapeAdjust','doc.operation.open-doc-shape-format-panel','setFormulaPresentation','engine','_initEvents','scene','OFFSET','shapeText','drawing-ui.objectListPanel.expand','5729YQVmwJ','_renderManagerService','_popupTargetKeys','getVisible','src','shape-editor-ui.arrange.back','error','_componentManager','updateDocumentStyle','style','FromArray','add','attachPopupToObject','setCursor','docs-shape-text-','_drawingManagerService','_updateShapeAdjustControls','editingParams$','add$','M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','icon','_sidebarDisposable','bottom','splice','getActiveViewportByCoord','div','setPrstGeom','Arrow','_adjHandlerPointerUp','layoutType','getFocusDrawings','_canEdit','getSelfOrHeaderFooterModel','drawing-ui.objectListPanel.collapse','popup','isFinite','backward','spaceBelowApply','adjHandleFill','_unitId','_visible','drawing-ui.objectListPanel.unlockAll','constructor','_contextService','segmentId','WRAP_SQUARE','-layout','presetId','_formulaShapes','_initSelection','_closeShapeEditPanel','getState','WRAP_TOP_AND_BOTTOM','debounceRefreshControls','onStarting','marginTop','shapeData','isEditing','drawing-ui.objectListPanel.show','forward','getBody','translate','_activeShapeId','offsetX','values','_updateShape','getInverseCoord','has','getDrawingEditable','_update','onReady','sheet.image-clip.shape-picker.component','doc','packageName','disableShapeOption','_baseShapeLeft','startArrow','makeDirty','beginPath','setFallbackVisible','_openShapeEditPanel','_sidebarService','shapeModel','adjHandleStroke','_drawRichText','docs-shape-ui.shape-format.formula-ribbon-control','next','_measure','_addShapeAdjustControl','_applyFormulaAutoFitSize','_insertShapes','ShapeFormatSettingIcon','getShapeTextData','renderDrawingShape','shapeType','setAdjustValueByName','interceptor','syncExecuteCommand','getShapeDataById','docs-shape-ui.hidePanel','_props','set','drawing-ui.objectListPanel.name','Large','OPERATION','drawing-ui.objectListPanel.showAll','find','addObject','_baseShapeTop','docs-shape-ui.shape-format.text-ribbon-control','docs-shape-ui.shape-format.quick-style-gallery','viewBound','description','BottomIcon','moveRange','horizontal','composeMatrix','_endLayoutInteraction','resetCursor','docs-shape-ui.ribbon.shape-format.arrange-backward','drawing','_baseShapeWidth','_subUnitId','disposeWithMe','docs-shape-ui.objectListPanel.open','_imageIoService','clearControl$','pipe','WRAP_NONE','keys','startOffset','span','selectable','top-bottom','Path','_iconManager','getRenderUnitById','_refreshShapeData','_loadAndSetImage','updateDocumentDataMargin','DOCS_SHAPE_UI_PLUGIN','PaintIcon','onDblclick$','setOnSavingEditorData','_drawSimpleText','getCanvasElement','register','drawing-ui.objectListPanel.typeNames.','registerRenderModule','shapeId','BEHIND_TEXT','2391858MansVC','updateContext','endOffset','docs-shape-ui.deleteShape','getAllRenderersOfType','scale','below','onCommandExecuted','menuRange','1.0.2','forEach','_registerDrawingFocusChangeHandler','doc.shape.text.float-menu','clipHeight','updateShapeFillImage','docs-shape-ui.shape-format.style-ribbon-control','fill','_urlImageService','changeEnd$','SHAPE','doc.operation.apply-shape-quick-style','MEDIA','rect','_config','canvasElement','clip-','label','_disposePopupsByUnit','UNIVER_DOC','getUnitId','_renderWithCache','RIBBON','panel','_getShapeAdjustPointListById','_registerFloatingToolbar','draw','#3B82F6','setShapeProps','_formulaKey','clearAdjustControls','function','DocsShapeWrapInlineIcon','asObservable','_getShapeInfo','headerId','_drawingType','_registerComponents','text','onSavingEditorData$','menu','getDrawingPoints','_clearShapeAdjustControls','SolidLine','with','call','_lastEditingShapeKey','docs-shape-ui.textWrap.topAndBottom','TopmostIcon','drawing-ui.objectListPanel.lockHint','remove$','unitId','strokeWidth','_getActiveDrawingShape','docs-shape-ui.ribbon.shape-format.text-control','docs-shape-ui.ribbon.shape-format.arrange-forward','autoFitType','changing$','_adjName','transform','custom','enhanceParams','close','_docCanvasPopManagerService','shapeKey','getShapeTypeById','_docLayoutInteractionService','docs-shape-ui.textWrap.inFrontText','DOC','stopPropagation','path'];_0x4208=function(){return _0x38f2c1;};return _0x4208();}function Zr(){const _0x51698c=_0x1ed081;var _0x50ef5d;let {selection:_0x3a62fb,updateShapeData:_0x5968d5}=qr(),_0x4ed926=_0x4f9d08({'hostType':_0x436dd9[_0x51698c(0x335)],'unitId':(_0x3a62fb==null?void 0x0:_0x3a62fb[_0x51698c(0x355)])??'','subUnitId':(_0x3a62fb==null?void 0x0:_0x3a62fb[_0x51698c(0x203)])??'','shapeId':(_0x3a62fb==null?void 0x0:_0x3a62fb['drawingId'])??'','shapeData':_0x3a62fb==null?void 0x0:_0x3a62fb[_0x51698c(0x2ba)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x51698c(0x298),'onUpdateBinding':_0x9799fb=>_0x5968d5({'formulaBinding':_0x9799fb})}),_0x1647f8=((_0x50ef5d=_0x4ed926[_0x51698c(0x416)])==null?void 0x0:_0x50ef5d[_0x51698c(0x390)](_0x1f9f91=>_0x1f9f91[_0x51698c(0x243)])[_0x51698c(0x252)](_0x3c98f5=>_0x3c98f5[_0x51698c(0x232)]!==!0x1))??[];return _0x3a62fb!=null&&_0x3a62fb[_0x51698c(0x2ba)][_0x51698c(0x1f5)]?_0x20be44(_0x1c996f,{'actions':_0x1647f8,'panel':_0x4ed926['panel']}):null;}function Qr({value:_0x2e2031}){const _0x58c95d=_0x1ed081;let _0x3fdef8=_0x5c5c3d(_0x4b811c),_0x536624=Kr[_0x58c95d(0x2ec)](_0x25d2b3=>_0x25d2b3['value']===_0x2e2031)??Kr[0x0];return _0x536624?_0x20be44(_0x58c95d(0x305),{'children':_0x3fdef8['t'](_0x536624[_0x58c95d(0x333)])}):null;}const $r=_0x1ed081(0x261),ei=_0x1ed081(0x358),ti=_0x1ed081(0x3cb),ni=_0x1ed081(0x359),ri=_0x1ed081(0x2f9),ii=_0x1ed081(0x26f),ai=_0x1ed081(0x213),oi='docs-shape-ui.ribbon.shape-format.wrapping-style';function si(_0x4202d4){const _0x44bb48=_0x1ed081;let _0x2a5ddc=_0x4202d4['get'](_0x582229),_0x3c07b4=_0x4202d4['get'](_0x4cc4c4),_0x183276=_0x4202d4[_0x44bb48(0x410)](_0x39396e);return new _0x3fafbe(_0x4ec8a4=>{const _0x5161d4=_0x44bb48;let _0x3f8f7c=()=>{const _0x13d16e=_0x5aa0;let _0xeec2b1=ci(_0x4202d4),_0x33cdc6=_0xeec2b1?_0x183276['getShapeDataById'](_0xeec2b1['unitId'],_0xeec2b1[_0x13d16e(0x203)],_0xeec2b1[_0x13d16e(0x210)]):null;_0x4ec8a4[_0x13d16e(0x2d8)](_0x33cdc6?_0x4ee18b(_0x33cdc6)??'':'');},_0x4a72e9=_0x3c07b4['focus$'][_0x5161d4(0x251)](_0x3f8f7c),_0x151dc5=_0x2a5ddc[_0x5161d4(0x320)](_0x54d0bd=>{_0x54d0bd['id']===_0xbcf5de['id']&&_0x3f8f7c();});return _0x3f8f7c(),()=>{const _0x5b1a07=_0x5161d4;_0x4a72e9['unsubscribe'](),_0x151dc5[_0x5b1a07(0x208)]();};});}function ci(_0x3ca4b0){const _0x3a5ed5=_0x1ed081;var _0xc9d06a;let _0x5a9f0e=_0x3ca4b0['get'](_0x4cc4c4)[_0x3a5ed5(0x2a0)]();return _0x5a9f0e[_0x3a5ed5(0x43c)]===0x1&&((_0xc9d06a=_0x5a9f0e[0x0])==null?void 0x0:_0xc9d06a[_0x3a5ed5(0x234)])===_0x690970[_0x3a5ed5(0x20d)]?_0x5a9f0e[0x0]:null;}function li(_0x54b5da){const _0x10d823=_0x1ed081;return(_0x54b5da==null?void 0x0:_0x54b5da['layoutType'])===_0x1ef66e[_0x10d823(0x302)]?_0x54b5da[_0x10d823(0x259)]===_0x1fdcb8[_0x10d823(0x1f9)]?_0x4b1e43[_0x10d823(0x318)]:_0x4b1e43[_0x10d823(0x3c0)]:(_0x54b5da==null?void 0x0:_0x54b5da[_0x10d823(0x29f)])===_0x1ef66e['WRAP_SQUARE']?_0x4b1e43['WRAP_SQUARE']:(_0x54b5da==null?void 0x0:_0x54b5da[_0x10d823(0x29f)])===_0x1ef66e['WRAP_TOP_AND_BOTTOM']?_0x4b1e43['WRAP_TOP_AND_BOTTOM']:_0x4b1e43[_0x10d823(0x211)];}function ui(_0x41b4da){const _0xb0970d=_0x1ed081;let _0x3f5fee=_0x41b4da['get'](_0x582229),_0x57e84b=_0x41b4da['get'](_0x4cc4c4),_0x393600=_0x41b4da[_0xb0970d(0x410)](_0x357598);return new _0x3fafbe(_0xc702ea=>{const _0x2a30aa=_0xb0970d;let _0x464221=()=>{const _0x446217=_0x5aa0;var _0xe2d236;let _0x1a5c59=ci(_0x41b4da),_0x1f33f8=_0x1a5c59?_0x393600[_0x446217(0x3d3)](_0x1a5c59[_0x446217(0x355)],_0x436dd9[_0x446217(0x335)]):void 0x0;_0xc702ea[_0x446217(0x2d8)](li(_0x1a5c59?_0x1f33f8==null||(_0xe2d236=_0x1f33f8['getSnapshot']()[_0x446217(0x3f6)])==null?void 0x0:_0xe2d236[_0x1a5c59['drawingId']]:void 0x0));},_0x457764=_0x57e84b[_0x2a30aa(0x273)][_0x2a30aa(0x251)](_0x464221),_0x1004a6=_0x3f5fee[_0x2a30aa(0x320)](_0x502d68=>{_0x502d68['id']===_0x4c133e['id']&&_0x464221();});return _0x464221(),()=>{const _0x39eca6=_0x2a30aa;_0x457764['unsubscribe'](),_0x1004a6[_0x39eca6(0x208)]();};})[_0xb0970d(0x301)](_0x19e0f8());}function di(_0xd34c35,_0x344685=!0x1){const _0x21ff6a=_0x1ed081;let _0x57dbd0=_0xd34c35['get'](_0x582229),_0x198520=_0xd34c35[_0x21ff6a(0x410)](_0x4cc4c4),_0x74ae82=_0xd34c35[_0x21ff6a(0x410)](_0x39396e);return new _0x3fafbe(_0x1eb839=>{const _0x373daf=_0x21ff6a;let _0x4836bf=()=>{const _0x1b53a3=_0x5aa0;let _0x164aa0=ci(_0xd34c35);if(!_0x164aa0){_0x1eb839[_0x1b53a3(0x2d8)](!0x0);return;}let _0x4fd048=_0x74ae82[_0x1b53a3(0x2e4)](_0x164aa0[_0x1b53a3(0x355)],_0x164aa0['subUnitId'],_0x164aa0['drawingId']);_0x1eb839[_0x1b53a3(0x2d8)](!_0x4fd048||_0x344685&&_0x4fd048[_0x1b53a3(0x1f5)]==null);},_0xd327f=_0x198520[_0x373daf(0x273)]['subscribe'](_0x4836bf),_0x30b95f=_0x57dbd0[_0x373daf(0x320)](_0x54acc3=>{_0x54acc3['id']===_0xbcf5de['id']&&_0x4836bf();});return _0x4836bf(),()=>{const _0x29d0d2=_0x373daf;_0xd327f['unsubscribe'](),_0x30b95f[_0x29d0d2(0x208)]();};});}function fi(_0x2bc761){const _0x53a969=_0x1ed081;let _0x2e0527=_0x2bc761['get'](_0x4cc4c4),_0x2351f0=_0x2bc761[_0x53a969(0x410)](_0x39396e);return _0x2e0527[_0x53a969(0x273)][_0x53a969(0x301)](_0x2c09e4(_0x2e0527['getFocusDrawings']()),_0x5cfa63(()=>{const _0x4d2cd5=_0x53a969;let _0x5e8f4d=ci(_0x2bc761),_0x2db076=_0x5e8f4d?_0x2351f0[_0x4d2cd5(0x363)](_0x5e8f4d[_0x4d2cd5(0x355)],_0x5e8f4d[_0x4d2cd5(0x203)],_0x5e8f4d['drawingId']):void 0x0;return _0x2db076===void 0x0||_0x238e4e(_0x2db076);}));}function pi(_0x4c4e6a){const _0x1800ab=_0x1ed081;return{'id':Tr['id'],'type':_0x2f080a[_0x1800ab(0x255)],'icon':_0x1800ab(0x30f),'title':_0x1800ab(0x20b),'tooltip':'shape-editor-ui.toolbar.quickStyles','selections':[{'label':{'name':Vr,'hoverable':!0x1,'selectable':!0x1}}],'value$':si(_0x4c4e6a),'hidden$':di(_0x4c4e6a)};}function mi(_0x504679){const _0x3ae536=_0x1ed081;return{'id':Er['id'],'type':_0x2f080a['SELECTOR'],'icon':_0x3ae536(0x21f),'title':'shape-editor-ui.toolbar.changeShape','tooltip':_0x3ae536(0x3d2),'slot':!0x0,'selections':[{'label':{'name':_0x528b39,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':fi(_0x504679)};}function hi(_0x52947f,_0xf66239,_0x5b9837=!0x1){return _0x240b88=>({'id':_0x52947f,'type':_0x2f080a['BUTTON'],'label':{'name':_0xf66239,'hoverable':!0x1,'selectable':!0x1},'hidden$':di(_0x240b88,_0x5b9837)});}const gi=hi($r,Hr),_i=hi(ei,Ur),vi=hi(ti,Wr,!0x0);function yi(_0x2d8033){const _0x51559c=_0x1ed081;return{'id':oi,'type':_0x2f080a['SELECTOR'],'icon':Kr[0x0][_0x51559c(0x296)],'label':Gr,'selectionsCommandId':_0xdbdd89['id'],'selections':Kr['map'](({icon:_0x2504e6,label:_0x46b290,value:_0x3526f0})=>({'value':_0x3526f0,'label':_0x46b290,'icon':_0x2504e6,'params':()=>{const _0x4ebffd=_0x51559c;let _0x31a708=ci(_0x2d8033);return _0x31a708?{'unitId':_0x31a708['unitId'],'subUnitId':_0x31a708['subUnitId'],'drawings':[{'unitId':_0x31a708[_0x4ebffd(0x355)],'subUnitId':_0x31a708[_0x4ebffd(0x203)],'drawingId':_0x31a708['drawingId']}],'wrappingStyle':_0x3526f0}:void 0x0;}})),'value$':ui(_0x2d8033),'hidden$':di(_0x2d8033)};}function bi(_0x80cf32,_0x484a70,_0x19e7ef,_0x26a4ea){const _0x28891c=_0x1ed081;return _0x256ba4=>({'id':_0x80cf32,'commandId':_0x5dc4dd['id'],'type':_0x2f080a[_0x28891c(0x3f8)],'icon':_0x19e7ef,'title':_0x26a4ea,'tooltip':_0x26a4ea,'hidden$':di(_0x256ba4),'params':()=>{const _0x408d01=_0x28891c;let _0x5ac71f=ci(_0x256ba4);return _0x5ac71f?{'unitId':_0x5ac71f['unitId'],'subUnitId':_0x5ac71f[_0x408d01(0x203)],'drawingIds':[_0x5ac71f[_0x408d01(0x210)]],'arrangeType':_0x484a70}:void 0x0;}});}const xi=bi(ni,_0x30db5e[_0x1ed081(0x2bd)],'MoveUpIcon',_0x1ed081(0x26a)),Si=bi(ri,_0x30db5e[_0x1ed081(0x2a6)],_0x1ed081(0x241),'shape-editor-ui.arrange.backward'),Ci=bi(ii,_0x30db5e[_0x1ed081(0x3bc)],'TopmostIcon','shape-editor-ui.arrange.front'),wi=bi(ai,_0x30db5e['back'],'BottomIcon',_0x1ed081(0x287));function Ti(_0x607a3a){const _0x3855c3=_0x1ed081;return{'id':q['id'],'type':_0x2f080a['BUTTON'],'icon':_0x3855c3(0x2dd),'title':_0x3855c3(0x25b),'tooltip':'docs-shape-ui.formatShape','hidden$':di(_0x607a3a),'params':()=>{const _0x15e9a9=_0x3855c3;let _0x57990d=ci(_0x607a3a);return _0x57990d?{'unitId':_0x57990d[_0x15e9a9(0x355)],'subUnitId':_0x57990d[_0x15e9a9(0x203)],'drawingId':_0x57990d[_0x15e9a9(0x210)]}:void 0x0;}};}const Ei={[_0x548c7b[_0x1ed081(0x338)]]:{[vr]:{'order':0x64,'title':_0x1ed081(0x25b),'contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Tr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':pi},[Er['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':mi}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[$r]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':gi}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[ei]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':_i}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[oi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':yi},[ni]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':xi},[ri]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Si},[ii]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':Ci},[ai]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':wi}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[ti]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':vi}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[q['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ti},[_0x1c8b61['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x290bb3}}}}},Di={[_0x2d4568[_0x1ed081(0x32e)]]:{[G['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x2a9bf4=>({...Fr(_0x2a9bf4),'title':void 0x0})}},[_0x2d4568[_0x1ed081(0x21e)]]:{[Cr['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Rr}},[_0x4bb22c[_0x1ed081(0x3ec)]]:{[_0x40e83e[_0x1ed081(0x36b)]]:{[_0xb3dfee]:{[G['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Ir}}},[_0x551466]:{[_0x40e83e[_0x1ed081(0x36b)]]:{[G['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Ir}}},[_0x2babac]:{[_0x40e83e[_0x1ed081(0x36b)]]:{[G['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Lr}}},[_0x3e65d4]:{'insert':{[G['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':Fr}}},[_0x31fd56]:{'insert':{[G['id']+'.below']:{'replace':!0x0,'order':0x2,'menuItemFactory':Ir}}}}};var Oi=_0x1ed081(0x267),ki=_0x1ed081(0x322);const Ai={'type':_0x500db0[_0x1ed081(0x2ea)],'id':_0x1ed081(0x3ab),'handler'(){return!0x0;}},ji=_0x1ed081(0x246),Mi={};function Ni(_0x30d0fc){'@babel/helpers - typeof';const _0x395444=_0x1ed081;return Ni=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x395444(0x1e4)?function(_0x4b20ae){return typeof _0x4b20ae;}:function(_0x28d01f){const _0x112fdf=_0x395444;return _0x28d01f&&typeof Symbol==_0x112fdf(0x341)&&_0x28d01f[_0x112fdf(0x2ac)]===Symbol&&_0x28d01f!==Symbol['prototype']?'symbol':typeof _0x28d01f;},Ni(_0x30d0fc);}function Pi(_0x28aa25,_0x4b1820){const _0x31c2d9=_0x1ed081;if(Ni(_0x28aa25)!=_0x31c2d9(0x39b)||!_0x28aa25)return _0x28aa25;var _0x5a0bf4=_0x28aa25[Symbol[_0x31c2d9(0x1fa)]];if(_0x5a0bf4!==void 0x0){var _0x3b53a0=_0x5a0bf4[_0x31c2d9(0x34f)](_0x28aa25,_0x4b1820||_0x31c2d9(0x244));if(Ni(_0x3b53a0)!=_0x31c2d9(0x39b))return _0x3b53a0;throw TypeError(_0x31c2d9(0x373));}return(_0x4b1820==='string'?String:Number)(_0x28aa25);}function Fi(_0x418c1f){const _0x3c8a04=_0x1ed081;var _0xdcf171=Pi(_0x418c1f,_0x3c8a04(0x209));return Ni(_0xdcf171)==_0x3c8a04(0x1e4)?_0xdcf171:_0xdcf171+'';}function Z(_0x58f768,_0x3bc367,_0x18c7c5){const _0x92bfc2=_0x1ed081;return(_0x3bc367=Fi(_0x3bc367))in _0x58f768?Object[_0x92bfc2(0x247)](_0x58f768,_0x3bc367,{'value':_0x18c7c5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x58f768[_0x3bc367]=_0x18c7c5,_0x58f768;}var Ii=class extends _0x9fb59e{constructor(_0x128700,_0x5e7c0e){const _0x26d072=_0x1ed081;super(_0x128700,_0x5e7c0e),Z(this,'_shapeId',null),Z(this,_0x26d072(0x35c),null),Z(this,_0x26d072(0x2a9),null),Z(this,_0x26d072(0x2fc),null),_0x5e7c0e&&this['setShapeProps'](_0x5e7c0e);}['getDrawingSearch'](){const _0x875075=_0x1ed081;return{'unitId':this['_unitId'],'subUnitId':this[_0x875075(0x2fc)],'drawingId':this['_shapeId']};}[_0x1ed081(0x33e)](_0x24b76c){const _0x5679d2=_0x1ed081;_0x24b76c[_0x5679d2(0x317)]!==void 0x0&&(this[_0x5679d2(0x257)]=_0x24b76c[_0x5679d2(0x317)]),_0x24b76c[_0x5679d2(0x43e)]!==void 0x0&&(this[_0x5679d2(0x35c)]=_0x24b76c['adjName']),_0x24b76c[_0x5679d2(0x355)]!==void 0x0&&(this[_0x5679d2(0x2a9)]=_0x24b76c[_0x5679d2(0x355)]),_0x24b76c[_0x5679d2(0x203)]!==void 0x0&&(this['_subUnitId']=_0x24b76c['subUnitId']),this[_0x5679d2(0x3be)]({'width':_0x24b76c[_0x5679d2(0x421)],'height':_0x24b76c[_0x5679d2(0x3e1)]});}[_0x1ed081(0x419)](_0x5a815a){const _0x31e499=_0x1ed081;_0x738e8c['drawWith'](_0x5a815a,{'radius':_0x127ad4[_0x31e499(0x42a)],'fill':_0x127ad4[_0x31e499(0x2a8)],'stroke':_0x127ad4[_0x31e499(0x2d5)],'strokeWidth':0x1,'evented':!0x0});}};function Li(_0x451224,_0x458389,_0x3dd22c){const _0x5df600=_0x1ed081;let _0x3b2ddb={..._0x458389,'dataModel':{..._0x458389[_0x5df600(0x3e2)]??{},..._0x3dd22c?{'doc':_0x3dd22c}:null}},_0x347d03=_0xe70f41(_0x451224,_0x3b2ddb),_0x18d3fb=_0x55fcc9(_0x347d03);return{'clip':_0x2b8d55(_0x347d03,_0x18d3fb),'wrapStrategy':_0x18d3fb};}var Ri=class extends _0x9fb59e{constructor(_0x4d9cd2,_0x775f6b){const _0x20ec42=_0x1ed081;super(_0x4d9cd2,_0x775f6b),Z(this,'_props',void 0x0),Z(this,_0x20ec42(0x418),new _0x297674(()=>this[_0x20ec42(0x2cf)](!0x0),()=>this[_0x20ec42(0x2db)]())),Z(this,_0x20ec42(0x41c),!0x0),Z(this,_0x20ec42(0x346),_0x690970[_0x20ec42(0x20d)]),Z(this,_0x20ec42(0x445),!0x0),this[_0x20ec42(0x2e6)]={..._0x775f6b},this['_formulaAnimation']['setPresentation'](_0x775f6b[_0x20ec42(0x1e6)],_0x775f6b[_0x20ec42(0x274)]!==!0x1),this['_init'](),this[_0x20ec42(0x2db)]();}[_0x1ed081(0x435)](){this['onTransformChange$']['subscribeEvent'](_0x2aa114=>{const _0x100f9c=_0x5aa0;this[_0x100f9c(0x214)](_0x2aa114);});}[_0x1ed081(0x29c)](_0x912306){const _0x325e4c=_0x1ed081;this[_0x325e4c(0x2e6)][_0x325e4c(0x21b)]=_0x912306;}[_0x1ed081(0x372)](_0x56a52a){const _0xa56a37=_0x1ed081;this[_0xa56a37(0x2e6)]['isEditing']=_0x56a52a,this[_0xa56a37(0x2cf)](!0x0);}[_0x1ed081(0x27b)](_0x1f55f,_0x2ad77b=!0x0){const _0x389781=_0x1ed081;this[_0x389781(0x418)]['setPresentation'](_0x1f55f,_0x2ad77b),this[_0x389781(0x2e6)][_0x389781(0x1e6)]=_0x1f55f,this[_0x389781(0x2db)](),this['makeDirty'](!0x0);}[_0x1ed081(0x2db)](){const _0x45147d=_0x1ed081;let _0x14066a=this['_props'][_0x45147d(0x2d4)],_0x30364c=_0x14066a['getShapeTextData'](),_0x105053=_0x2e2427(_0x30364c==null?void 0x0:_0x30364c['dataModel']),_0x5f467b=_0x105053==null?void 0x0:_0x105053[_0x45147d(0x2ca)],_0x42359d=this[_0x45147d(0x418)]['getAutoFitPresentations']();if(!_0x5f467b||_0x42359d['length']===0x0)return;_0x14066a[_0x45147d(0x31a)]({'width':this[_0x45147d(0x421)],'height':this[_0x45147d(0x3e1)]});let _0x5f44b7=_0x209b99({'documentData':_0x42359d['map'](_0x4697c8=>_0x347dfc(_0x5f467b,_0x4697c8)),'height':this[_0x45147d(0x3e1)],'shapeData':_0x14066a[_0x45147d(0x3c2)](),'textRect':_0x14066a['getShapeTextRect']({'left':0x0,'top':0x0,'width':this['width'],'height':this[_0x45147d(0x3e1)]}),'width':this['width']});if(_0x5f44b7){var _0x143aa6;this['resize'](_0x5f44b7[_0x45147d(0x421)],_0x5f44b7['height']),(_0x143aa6=this[_0x45147d(0x385)]())==null||(_0x143aa6=_0x143aa6['getTransformer']())==null||_0x143aa6[_0x45147d(0x2b7)]();}}get['unitId'](){const _0x500b8e=_0x1ed081;return this[_0x500b8e(0x2e6)][_0x500b8e(0x355)];}get[_0x1ed081(0x203)](){const _0x3a7365=_0x1ed081;return this[_0x3a7365(0x2e6)]['subUnitId'];}['_updateSrcRectByTransform'](_0x2c2f6f){const _0x4d81ab=_0x1ed081;if(this['_props'][_0x4d81ab(0x222)]==null||!this[_0x4d81ab(0x41c)])return;let {width:_0x1be501,height:_0x1532d6}=this,{width:_0x586478=0x0,height:_0x5b4428=0x0}=_0x2c2f6f[_0x4d81ab(0x226)],{left:_0x5cac18=0x0,top:_0x47cabe=0x0,right:_0x96bad3=0x0,bottom:_0x2206f7=0x0}=this[_0x4d81ab(0x2e6)][_0x4d81ab(0x222)],_0x5ae710=_0x5cac18,_0x57d959=_0x47cabe,_0x156ceb=_0x96bad3,_0x1f710b=_0x2206f7,_0x4f3510=!0x1;if(_0x586478!==0x0&&_0x586478!==_0x1be501){let _0x3188e3=_0x5cac18/_0x586478,_0x52cd8f=_0x96bad3/_0x586478;_0x5ae710=_0x1be501*_0x3188e3,_0x156ceb=_0x1be501*_0x52cd8f,_0x4f3510=!0x0;}if(_0x5b4428!==0x0&&_0x5b4428!==_0x1532d6){let _0x376f46=_0x47cabe/_0x5b4428,_0x4979e3=_0x2206f7/_0x5b4428;_0x57d959=_0x1532d6*_0x376f46,_0x1f710b=_0x1532d6*_0x4979e3,_0x4f3510=!0x0;}_0x4f3510&&this['setSrcRect']({'left':_0x5ae710,'top':_0x57d959,'right':_0x156ceb,'bottom':_0x1f710b});}[_0x1ed081(0x430)](_0x1a3637){const _0x15240b=_0x1ed081;this[_0x15240b(0x2e6)]['srcRect']=_0x1a3637,this[_0x15240b(0x2cf)](!0x0);}[_0x1ed081(0x25d)](_0x99855){const _0x12f378=_0x1ed081;this[_0x12f378(0x2e6)]['image']=_0x99855,this[_0x12f378(0x2cf)](!0x0);}set[_0x1ed081(0x35d)](_0x277efb){this['_transform']=_0x277efb;}get[_0x1ed081(0x35d)](){const _0x4304eb=_0x1ed081;this[_0x4304eb(0x36e)]||this[_0x4304eb(0x38b)]();let _0x2f0ce4=this[_0x4304eb(0x36e)][_0x4304eb(0x3d6)]();return this['transformForAngle'](_0x2f0ce4);}get[_0x1ed081(0x2d4)](){const _0x215a7d=_0x1ed081;return this[_0x215a7d(0x2e6)]['shapeModel'];}get[_0x1ed081(0x317)](){const _0x21b8a9=_0x1ed081;return this[_0x21b8a9(0x2e6)]['shapeId'];}get[_0x1ed081(0x37a)](){const _0x487404=_0x1ed081;return _0x29eaa6[_0x487404(0x32c)];}[_0x1ed081(0x419)](_0x5e7fa6,_0x347ee2,_0x21a447,_0x379d6f){const _0x413b44=_0x1ed081;let _0x368d6c=this[_0x413b44(0x2e6)][_0x413b44(0x2d4)];if(!_0x368d6c||!_0x347ee2)return;let _0x5690cb=_0x21a447??this[_0x413b44(0x421)],_0x5e6eec=_0x379d6f??this[_0x413b44(0x3e1)],_0x182b79={'shapeType':_0x368d6c[_0x413b44(0x40b)](),'width':_0x5690cb,'height':_0x5e6eec},_0x1756a3={'renderMode':_0x3cb180[_0x413b44(0x308)],'oKey':this[_0x413b44(0x1e8)],'image':this[_0x413b44(0x2e6)][_0x413b44(0x379)],'angle':this[_0x413b44(0x3c1)]};_0x368d6c[_0x413b44(0x31a)](_0x182b79),_0x5e7fa6[_0x413b44(0x3c7)]();let _0x1b525d={'top':0x0,'left':0x0,'width':_0x5690cb,'height':_0x5e6eec},_0x6c41ca=_0x368d6c[_0x413b44(0x41a)](_0x1b525d);_0x6c41ca?this[_0x413b44(0x337)](_0x5e7fa6,_0x6c41ca,_0x5c4916=>{const _0x21b509=_0x413b44;_0x368d6c[_0x21b509(0x37b)](_0x5c4916,_0x1b525d,_0x1756a3);}):(this[_0x413b44(0x3e6)](),_0x368d6c[_0x413b44(0x37b)](_0x5e7fa6,_0x1b525d,_0x1756a3)),_0x5e7fa6[_0x413b44(0x3b0)]();let _0x571b09=_0x368d6c[_0x413b44(0x2de)](),_0x1e8b04=_0x368d6c[_0x413b44(0x262)](_0x1b525d),_0x1c4a35=_0x368d6c[_0x413b44(0x248)]();if(_0x571b09&&_0x1e8b04&&!_0x1c4a35){_0x5e7fa6[_0x413b44(0x3c7)](),this['getState']()['flipX']&&_0x5e7fa6[_0x413b44(0x31e)](-0x1,0x1);let _0x6eb6c5=_0x5690cb/0x2,_0x1e2c3b=_0x5e6eec/0x2;_0x5e7fa6[_0x413b44(0x2bf)](-_0x6eb6c5,-_0x1e2c3b),_0x5e7fa6['beginPath'](),this[_0x413b44(0x408)](_0x5e7fa6,_0x571b09,_0x1e8b04),_0x5e7fa6[_0x413b44(0x3b0)]();}}[_0x1ed081(0x34b)](_0x549455){}[_0x1ed081(0x408)](_0x133f05,_0x32b64d,_0x255a0a){const _0x4e6843=_0x1ed081;var _0xe48d2e;this['_props']['isEditing']||(!((_0xe48d2e=_0x32b64d[_0x4e6843(0x3e2)])!=null&&_0xe48d2e[_0x4e6843(0x2ca)])&&_0x4e6843(0x3fb)in _0x32b64d&&_0x32b64d[_0x4e6843(0x3fb)]===!0x1?this[_0x4e6843(0x312)](_0x133f05,_0x32b64d,_0x255a0a):this[_0x4e6843(0x2d6)](_0x133f05,_0x32b64d,_0x255a0a));}['_drawSimpleText'](_0x5ab799,_0x17355b,_0x9e74f){const _0x2b9a49=_0x1ed081;this[_0x2b9a49(0x2d6)](_0x5ab799,{..._0x17355b,'text':_0x17355b[_0x2b9a49(0x348)]??'','dataModel':{'doc':_0x105325(_0x17355b,_0x2b9a49(0x290)+this[_0x2b9a49(0x1e8)])}},_0x9e74f);}[_0x1ed081(0x2d6)](_0x49f414,_0x5c6178,_0x29fb82){const _0x233f8a=_0x1ed081;_0xbd9d06(_0x49f414,this[_0x233f8a(0x418)],(_0x4996a0,_0x162eab)=>{this['_drawRichTextLayer'](_0x4996a0,_0x5c6178,_0x29fb82,_0x162eab);});}[_0x1ed081(0x3bd)](_0x37f725,_0x2cbc80,_0x1346e1,_0x2e8080){const _0x40b4d2=_0x1ed081;let _0x1bb07f=this['_props']['localeService'];if(!_0x2cbc80['dataModel']||!_0x1bb07f){_0x1bb07f||console[_0x40b4d2(0x3a6)](_0x40b4d2(0x3aa));return;}let _0x37f5df=_0x2e2427(_0x2cbc80[_0x40b4d2(0x3e2)]);if(!_0x37f5df)return;let _0x10ac5e=_0x37f5df[_0x40b4d2(0x2ca)];if(!_0x10ac5e)return;let _0x3251b7=_0x347dfc(_0x10ac5e,_0x2e8080),_0x1e37a5=_0x37f5df['va']??_0x36ee41['TOP'],_0x231216=_0x37f5df['ha']??_0x2381fc[_0x40b4d2(0x25e)],_0xd32a84=Li(this[_0x40b4d2(0x2e6)]['shapeModel'][_0x40b4d2(0x3c2)](),_0x2cbc80,_0x3251b7),_0x4a3b7a=_0x2cbc80[_0x40b4d2(0x238)],_0x3b0b61=_0x2bb33c(_0x3251b7,{'isHorizontal':_0x4a3b7a!==!0x1,'textRect':_0x1346e1,'verticalAlign':_0x1e37a5,'horizontalAlign':_0x231216,'wrapStrategy':_0xd32a84['wrapStrategy']}),_0x37f8a0=new _0x3b3dfb(_0x3b0b61),_0x2aa9d1=new _0x514bbc(_0x37f8a0),_0x3e63b0=_0x44a5a2['create'](_0x2aa9d1,_0x1bb07f);_0x3e63b0[_0x40b4d2(0x3ef)]();let _0x294fd1=_0x3e63b0[_0x40b4d2(0x38d)]()[_0x40b4d2(0x1eb)],_0x366e04=_0x191558({'contentHeight':_0x294fd1,'verticalAlign':_0x1e37a5,'viewportHeight':_0x1346e1['height']});_0x37f8a0[_0x40b4d2(0x28a)]({'pageSize':{'width':_0x4a3b7a===!0x1?_0x1346e1['height']:_0x1346e1[_0x40b4d2(0x421)],'height':_0x5a1b24(_0x3251b7,_0x366e04[_0x40b4d2(0x3b1)])}}),_0x37f8a0[_0x40b4d2(0x30d)]({'t':_0x366e04[_0x40b4d2(0x2b9)]}),_0x3e63b0[_0x40b4d2(0x3ef)]();let _0x484499=new _0x407a64('shape-text-'+this[_0x40b4d2(0x1e8)],_0x3e63b0,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this['makeDirty'](!0x0)});_0x484499['resize'](_0x1346e1['width'],_0x366e04['contentHeight']),_0x37f725[_0x40b4d2(0x3c7)](),_0x37f725[_0x40b4d2(0x3c6)](_0x1346e1[_0x40b4d2(0x447)],_0x1346e1[_0x40b4d2(0x1fd)]),_0xd32a84[_0x40b4d2(0x250)]&&(_0x37f725[_0x40b4d2(0x2d0)](),_0x37f725[_0x40b4d2(0x32f)](0x0,_0x366e04['clipTop'],_0x1346e1[_0x40b4d2(0x421)],_0x366e04[_0x40b4d2(0x326)]),_0x37f725['clip']()),_0x366e04['contentVerticalOffset']&&_0x37f725[_0x40b4d2(0x3c6)](0x0,_0x366e04[_0x40b4d2(0x3a8)]),_0x484499[_0x40b4d2(0x33c)](_0x37f725),_0x37f725[_0x40b4d2(0x3b0)](),_0x484499[_0x40b4d2(0x208)](),_0x3e63b0[_0x40b4d2(0x208)](),_0x2aa9d1[_0x40b4d2(0x208)](),_0x37f8a0[_0x40b4d2(0x208)]();}[_0x1ed081(0x37b)](_0x549778,_0x4e7ff2,_0x64586c=!0x1){const _0x1e8586=_0x1ed081;if(!this[_0x1e8586(0x232)])return this['makeDirty'](!0x1),this;let {width:_0x48875a,height:_0x12c313,left:_0x1cf3c5,top:_0x1bee99}=this,_0x245a8a=this[_0x1e8586(0x1e3)]();if(_0x48875a=_0x245a8a[_0x1e8586(0x421)],_0x12c313=_0x245a8a[_0x1e8586(0x3e1)],_0x1cf3c5=_0x245a8a[_0x1e8586(0x447)],_0x1bee99=_0x245a8a['top'],this['isRender'](_0x4e7ff2)){let {top:_0x2f1f2d,left:_0xbc6621,bottom:_0x51c87e,right:_0x597c43}=_0x4e7ff2[_0x1e8586(0x2f1)];if(_0x48875a+this['strokeWidth']+_0x1cf3c5<_0xbc6621||_0x597c43<_0x1cf3c5||_0x12c313+this[_0x1e8586(0x356)]+_0x1bee99<_0x2f1f2d||_0x51c87e<_0x1bee99)return this;}let _0x38ea23=_0x1cf3c5+_0x48875a/0x2,_0x5e9eae=_0x1bee99+_0x12c313/0x2,_0x41e58f=this['transform'][_0x1e8586(0x36a)]();if(this[_0x1e8586(0x2e6)][_0x1e8586(0x2bb)]){let _0x4d67ed=this[_0x1e8586(0x2b5)](),_0x2704bd=new _0x3cb6b6();_0x2704bd[_0x1e8586(0x2f6)]({..._0x4d67ed}),_0x41e58f=_0x2704bd[_0x1e8586(0x36a)]();}return _0x549778['save'](),this[_0x1e8586(0x2e6)][_0x1e8586(0x2d4)]['isRenderLinePointsMode']===!0x0||_0x549778[_0x1e8586(0x35d)](_0x41e58f[0x0],_0x41e58f[0x1],_0x41e58f[0x2],_0x41e58f[0x3],_0x38ea23,_0x5e9eae),this[_0x1e8586(0x419)](_0x549778,_0x4e7ff2,_0x48875a,_0x12c313),_0x549778[_0x1e8586(0x3b0)](),this[_0x1e8586(0x2cf)](!0x1),this;}[_0x1ed081(0x2c4)](_0x52f1fa){const _0x11aec3=_0x1ed081;let {left:_0xadc810,top:_0x10b900,width:_0x12c1fa,height:_0x357d00}=this['getRealBound'](),_0x44e716=this[_0x11aec3(0x35d)][_0x11aec3(0x36a)](),_0x548c4a=_0xadc810+_0x12c1fa/0x2,_0x425aba=_0x10b900+_0x357d00/0x2,_0x2eea3f=new _0x3cb6b6([_0x44e716[0x0],_0x44e716[0x1],_0x44e716[0x2],_0x44e716[0x3],_0x548c4a,_0x425aba]),_0x5ea2b6=this[_0x11aec3(0x388)]();return(this[_0x11aec3(0x3f4)]&&(_0x5ea2b6==null?void 0x0:_0x5ea2b6[_0x11aec3(0x37a)])===_0x29eaa6[_0x11aec3(0x394)]?_0x5ea2b6[_0x11aec3(0x42f)][_0x11aec3(0x3d8)](_0x2eea3f):_0x2eea3f)[_0x11aec3(0x25c)]()[_0x11aec3(0x371)](_0x52f1fa);}[_0x1ed081(0x40a)](_0x923b5b){const _0x46185e=_0x1ed081;let {left:_0x164ef2,top:_0x4bdfb0,width:_0x4c16da,height:_0x443da8}=this[_0x46185e(0x1e3)](),_0x13b6c6=_0x164ef2+_0x4c16da/0x2,_0x587451=_0x4bdfb0+_0x443da8/0x2,_0x5dc731=this[_0x46185e(0x35d)][_0x46185e(0x36a)](),_0x43bc74=new _0x3cb6b6([_0x5dc731[0x0],_0x5dc731[0x1],_0x5dc731[0x2],_0x5dc731[0x3],_0x13b6c6,_0x587451]),_0x2e0dd8=this[_0x46185e(0x388)](),_0x3499c8=(this[_0x46185e(0x3f4)]&&(_0x2e0dd8==null?void 0x0:_0x2e0dd8[_0x46185e(0x37a)])===_0x29eaa6['GROUP']?_0x2e0dd8[_0x46185e(0x42f)][_0x46185e(0x3d8)](_0x43bc74):_0x43bc74)['invert']()[_0x46185e(0x371)](_0x923b5b),_0x263e21=_0x4c16da/0x2,_0x3be28f=_0x443da8/0x2,_0xd1ac5e=this[_0x46185e(0x2e6)][_0x46185e(0x2d4)];return _0xd1ac5e&&_0xd1ac5e[_0x46185e(0x248)]()?_0xd1ac5e[_0x46185e(0x43f)](_0x3499c8['x'],_0x3499c8['y'],_0x4c16da,_0x443da8):_0x3499c8['x']>=-_0x263e21-this['strokeWidth']/0x2&&_0x3499c8['x']<=_0x263e21+this[_0x46185e(0x356)]/0x2&&_0x3499c8['y']>=-_0x3be28f-this[_0x46185e(0x356)]/0x2&&_0x3499c8['y']<=_0x3be28f+this['strokeWidth']/0x2;}['dispose'](){const _0x455eb9=_0x1ed081;this[_0x455eb9(0x418)][_0x455eb9(0x208)](),this[_0x455eb9(0x2e6)][_0x455eb9(0x2d4)]=null,super[_0x455eb9(0x208)]();}};let zi=class extends _0x5721ff{constructor(_0x2a588a,_0x3733ef,_0x59f995,_0x451d04){const _0xbdf674=_0x1ed081;super(),this[_0xbdf674(0x42e)]=_0x2a588a,this[_0xbdf674(0x291)]=_0x3733ef,this['_docsShapeService']=_0x59f995,this[_0xbdf674(0x22d)]=_0x451d04,Z(this,_0xbdf674(0x2c0),null),Z(this,_0xbdf674(0x2a9),null),Z(this,_0xbdf674(0x2fc),null),Z(this,'_activeShapeAdjustPointList',void 0x0),Z(this,_0xbdf674(0x411),[]),Z(this,'_baseShapeLeft',0x0),Z(this,'_baseShapeTop',0x0),Z(this,_0xbdf674(0x2fb),0x0),Z(this,_0xbdf674(0x1ee),0x0),Z(this,'_isStartAdjusting',!0x1),Z(this,_0xbdf674(0x279),!0x1),Z(this,_0xbdf674(0x212),void 0x0),Z(this,'_activeShapeModel',void 0x0),Z(this,'_adjHandlerPointerMove',void 0x0),Z(this,'_adjHandlerPointerUp',void 0x0),this[_0xbdf674(0x324)](),this[_0xbdf674(0x271)]();}[_0x1ed081(0x340)](){this['_clearShapeAdjustControls']();}[_0x1ed081(0x1f3)](){const _0x52ac7f=_0x1ed081;this[_0x52ac7f(0x292)](!0x0);}[_0x1ed081(0x33a)](_0x58761f,_0x308e19,_0x2e87f2){const _0x93761e=_0x1ed081;var _0x1168fd;return(_0x1168fd=this[_0x93761e(0x26c)][_0x93761e(0x381)](_0x58761f,_0x308e19,_0x2e87f2))==null?void 0x0:_0x1168fd[_0x93761e(0x34b)]();}[_0x1ed081(0x20f)](_0x522dd7,_0x4b1f2e,_0x5761b1,_0x315c05){const _0x1eaa08=_0x1ed081;var _0x2b1b75;return(_0x2b1b75=this[_0x1eaa08(0x26c)][_0x1eaa08(0x381)](_0x522dd7,_0x4b1f2e,_0x5761b1))==null?void 0x0:_0x2b1b75[_0x1eaa08(0x370)](_0x315c05);}[_0x1ed081(0x1e5)](){const _0x5bdecc=_0x1ed081;return this[_0x5bdecc(0x2a9)]===null||this[_0x5bdecc(0x2fc)]===null||this[_0x5bdecc(0x2c0)]===null?null:this[_0x5bdecc(0x291)][_0x5bdecc(0x207)]({'unitId':this['_unitId'],'subUnitId':this[_0x5bdecc(0x2fc)],'drawingId':this['_activeShapeId']})??null;}[_0x1ed081(0x357)](_0x5eaf74){const _0x3390f5=_0x1ed081;if(this[_0x3390f5(0x2a9)]===null||this[_0x3390f5(0x2fc)]===null||this[_0x3390f5(0x2c0)]===null)return null;let _0xa0640d=_0x54547b({'unitId':this['_unitId'],'subUnitId':this[_0x3390f5(0x2fc)],'drawingId':this['_activeShapeId']}),_0x30d550=_0x5eaf74['getObjectIncludeInGroup'](_0xa0640d);return _0x30d550 instanceof Ri?_0x30d550:null;}[_0x1ed081(0x22e)](_0xaa5b40=!0x1){const _0x46d9e4=_0x1ed081;if(this['_unitId']===null||this[_0x46d9e4(0x2fc)]===null||this[_0x46d9e4(0x2c0)]===null)return;let _0x13b358=this[_0x46d9e4(0x1e5)]();if((_0x13b358==null?void 0x0:_0x13b358[_0x46d9e4(0x234)])!==_0x690970[_0x46d9e4(0x20d)]||!_0x13b358[_0x46d9e4(0x35d)])return;let _0x5a9e91=this[_0x46d9e4(0x26c)][_0x46d9e4(0x381)](this[_0x46d9e4(0x2a9)],this[_0x46d9e4(0x2fc)],this[_0x46d9e4(0x2c0)]);if(!_0x5a9e91||_0x5a9e91[_0x46d9e4(0x248)]())return;let {left:_0x354ec4=0x0,top:_0x3baf35=0x0,width:_0x3421a6=0x0,height:_0x2d39dc=0x0,flipX:_0x37b18a,flipY:_0x30a7f9,angle:_0x3558b9=0x0}=_0x13b358[_0x46d9e4(0x35d)];(_0xaa5b40||!this[_0x46d9e4(0x37e)])&&(_0x5a9e91[_0x46d9e4(0x31a)]({'width':_0x3421a6,'height':_0x2d39dc}),this['_activeShapeAdjustPointList']=_0x5a9e91[_0x46d9e4(0x34b)]());let _0x47b174=this[_0x46d9e4(0x37e)];if(!(_0x47b174!=null&&_0x47b174[_0x46d9e4(0x43c)]))return;let {scene:_0x5e57cc}=this[_0x46d9e4(0x42e)];for(let _0x2e041e of _0x47b174){let _0x7586dc=this[_0x46d9e4(0x3ee)](_0x2e041e,_0x3421a6,_0x2d39dc,!!_0x37b18a,!!_0x30a7f9,_0x3558b9);this[_0x46d9e4(0x2da)](_0x5e57cc,_0x7586dc,_0x7586dc[_0x46d9e4(0x43e)],_0x354ec4,_0x3baf35,this['_unitId'],this[_0x46d9e4(0x2fc)]);}}[_0x1ed081(0x3ee)](_0x308129,_0x139a4c,_0x2074ba,_0x32656f,_0x316142,_0x3184c9){const _0x399126=_0x1ed081;let _0x99aa6=_0x308129['x'],_0x5a5963=_0x308129['y'];if(_0x32656f&&(_0x99aa6=_0x139a4c-_0x99aa6),_0x316142&&(_0x5a5963=_0x2074ba-_0x5a5963),_0x3184c9!==0x0){let _0x427436=_0x139a4c/0x2,_0xe90283=_0x2074ba/0x2,_0x41b133=_0x3184c9*Math['PI']/0xb4,_0x1d7e98=Math[_0x399126(0x1ef)](_0x41b133),_0x25c957=Math['sin'](_0x41b133),_0x36c9d9=_0x99aa6-_0x427436,_0x29b08a=_0x5a5963-_0xe90283;_0x99aa6=_0x427436+(_0x36c9d9*_0x1d7e98-_0x29b08a*_0x25c957),_0x5a5963=_0xe90283+(_0x36c9d9*_0x25c957+_0x29b08a*_0x1d7e98);}return{'x':_0x99aa6,'y':_0x5a5963,'adjName':_0x308129[_0x399126(0x43e)]};}['_updateShapeAdjustControls'](_0x5916ff=!0x1){const _0x3ca55a=_0x1ed081;_0x5916ff&&this[_0x3ca55a(0x34c)](),this['_createShapeAdjustControls'](_0x5916ff);}[_0x1ed081(0x2da)](_0x5f507a,_0x5d64bb,_0x51ef36,_0x5844d4,_0x49868c,_0x567fad,_0x4a19b1){const _0x3d9c12=_0x1ed081;if(!this[_0x3d9c12(0x2c0)])return;let _0x11ab21=_0x3d9c12(0x264)+this[_0x3d9c12(0x2c0)]+'-'+_0x51ef36,_0x96e5c1=_0x5f507a[_0x3d9c12(0x3fa)](_0x11ab21);if(_0x96e5c1){_0x96e5c1[_0x3d9c12(0x3be)]({'left':_0x5d64bb['x']+_0x5844d4-_0x127ad4[_0x3d9c12(0x42a)],'top':_0x5d64bb['y']+_0x49868c-_0x127ad4[_0x3d9c12(0x42a)]}),_0x96e5c1[_0x3d9c12(0x2cf)](!0x0);return;}let _0xf17003=new Ii(_0x11ab21,{'left':_0x5d64bb['x']+_0x5844d4-_0x127ad4['adjHandleSize'],'top':_0x5d64bb['y']+_0x49868c-_0x127ad4[_0x3d9c12(0x42a)],'adjName':_0x51ef36,'shapeId':this[_0x3d9c12(0x2c0)],'unitId':_0x567fad,'subUnitId':_0x4a19b1,'width':_0x127ad4[_0x3d9c12(0x42a)]+0x8,'height':_0x127ad4[_0x3d9c12(0x42a)]+0x8,'zIndex':_0x8e9c78+0x1,'evented':!0x0});this[_0x3d9c12(0x411)][_0x3d9c12(0x39c)](_0xf17003),this[_0x3d9c12(0x23e)](_0xf17003,_0x5f507a,_0x51ef36),_0x5f507a[_0x3d9c12(0x2ed)](_0xf17003,_0x8e9c78+0x1);}[_0x1ed081(0x34c)](){const _0x5e07bc=_0x1ed081;this[_0x5e07bc(0x411)][_0x5e07bc(0x323)](_0x33f610=>_0x33f610['dispose']()),this[_0x5e07bc(0x411)]=[];}['_updateAdjustControlPositions'](){const _0x1c90d2=_0x1ed081;this[_0x1c90d2(0x22e)]();}[_0x1ed081(0x206)](_0x480d65,_0x4dcb96,_0x23952c){const _0x21a722=_0x1ed081;let _0x38e94f=_0x2ede79[_0x21a722(0x28c)]([_0x4dcb96,_0x23952c]),_0xbe2ff2=_0x480d65[_0x21a722(0x29a)](_0x38e94f)??_0x480d65['getViewports']()[0x0];return(_0xbe2ff2==null?void 0x0:_0xbe2ff2['transformVector2SceneCoord'](_0x38e94f))??_0x38e94f;}[_0x1ed081(0x23e)](_0x5e9248,_0x20f853,_0x39db83){const _0xe23a7b=_0x1ed081;this[_0xe23a7b(0x2fd)](_0xfac87e(_0x5e9248[_0xe23a7b(0x37f)][_0xe23a7b(0x432)]((_0x2c7e74,_0x27fc0d)=>{const _0x928f78=_0xe23a7b;var _0x262842;let _0x3eb6bd=_0x5e9248[_0x928f78(0x1ed)]();this['_activeAdjustInfo']=this['_getShapeAdjustInfosById'](_0x3eb6bd[_0x928f78(0x355)],_0x3eb6bd[_0x928f78(0x203)],_0x3eb6bd[_0x928f78(0x210)],_0x39db83),this[_0x928f78(0x40d)]=this[_0x928f78(0x26c)][_0x928f78(0x381)](_0x3eb6bd[_0x928f78(0x355)],_0x3eb6bd[_0x928f78(0x203)],_0x3eb6bd[_0x928f78(0x210)]);let _0x5802b9=this[_0x928f78(0x1e5)](),_0x44352f=_0x5802b9==null?void 0x0:_0x5802b9['transform'];if(!_0x5802b9||!_0x44352f||!this[_0x928f78(0x40d)])return;this['_baseShapeLeft']=_0x44352f['left']||0x0,this[_0x928f78(0x2ee)]=_0x44352f[_0x928f78(0x1fd)]||0x0,this['_baseShapeWidth']=_0x44352f[_0x928f78(0x421)]||0x0,this[_0x928f78(0x1ee)]=_0x44352f[_0x928f78(0x3e1)]||0x0;let _0x593cca=!!_0x44352f[_0x928f78(0x235)],_0x21ecaa=!!_0x44352f['flipY'],_0x2f97da=_0x44352f[_0x928f78(0x3c1)]||0x0,_0x224801={...((_0x262842=this[_0x928f78(0x212)])==null?void 0x0:_0x262842['currentAdjustValues'])??{}};this[_0x928f78(0x376)]=!0x0,_0x20f853[_0x928f78(0x20c)](),this[_0x928f78(0x443)]=_0x20f853[_0x928f78(0x204)][_0x928f78(0x432)]((_0x5ec559,_0x2c2a92)=>{const _0x2671ca=_0x928f78;var _0x51de79;if(!this['_isStartAdjusting']||!this[_0x2671ca(0x40d)]||!this['_activeAdjustInfo'])return;_0x20f853[_0x2671ca(0x20c)](),_0x20f853[_0x2671ca(0x28f)](_0x13100c[_0x2671ca(0x38e)]);let _0x3f75c5=this['_toScenePoint'](_0x20f853,_0x5ec559['offsetX'],_0x5ec559[_0x2671ca(0x389)]),_0x173989=_0x3f75c5['x']-this[_0x2671ca(0x2cd)],_0x188d10=_0x3f75c5['y']-this['_baseShapeTop'];if(_0x2f97da!==0x0){let _0x13f190=this['_baseShapeWidth']/0x2,_0x1cae59=this[_0x2671ca(0x1ee)]/0x2,_0x5b43ed=_0x2f97da*Math['PI']/0xb4,_0x175eb9=Math['cos'](_0x5b43ed),_0x416eac=Math[_0x2671ca(0x25f)](_0x5b43ed),_0x129e0a=_0x173989-_0x13f190,_0x203409=_0x188d10-_0x1cae59;_0x173989=_0x13f190+(_0x129e0a*_0x175eb9+_0x203409*_0x416eac),_0x188d10=_0x1cae59+(-_0x129e0a*_0x416eac+_0x203409*_0x175eb9);}_0x593cca&&(_0x173989=this[_0x2671ca(0x2fb)]-_0x173989),_0x21ecaa&&(_0x188d10=this[_0x2671ca(0x1ee)]-_0x188d10);let _0x151f52={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']},_0xb8e4dc=this[_0x2671ca(0x40d)][_0x2671ca(0x3ac)](_0x151f52,{'x':_0x173989,'y':_0x188d10},this['_activeAdjustInfo'],_0x593cca,_0x21ecaa);if(Object[_0x2671ca(0x303)](_0xb8e4dc)[_0x2671ca(0x43c)]!==0x0){for(let [_0x54f8cd,_0x348265]of Object['entries'](_0xb8e4dc))this[_0x2671ca(0x40d)][_0x2671ca(0x2e1)](_0x54f8cd,_0x348265);this[_0x2671ca(0x40d)]['updateContext']({'width':this[_0x2671ca(0x2fb)],'height':this[_0x2671ca(0x1ee)]}),(_0x51de79=this[_0x2671ca(0x357)](_0x20f853))==null||_0x51de79[_0x2671ca(0x2cf)](!0x0),this[_0x2671ca(0x37e)]=this[_0x2671ca(0x33a)](_0x3eb6bd[_0x2671ca(0x355)],_0x3eb6bd[_0x2671ca(0x203)],_0x3eb6bd[_0x2671ca(0x210)]),this['_updateAdjustControlPositions'](),_0x2c2a92[_0x2671ca(0x367)]();}}),this['_adjHandlerPointerUp']=_0x20f853[_0x928f78(0x428)]['subscribeEvent']((_0xfcbe47,_0x8e6786)=>{const _0x3a9776=_0x928f78;var _0x52a788,_0x48b072;(_0x52a788=this[_0x3a9776(0x443)])==null||_0x52a788[_0x3a9776(0x36d)](),(_0x48b072=this[_0x3a9776(0x29e)])==null||_0x48b072[_0x3a9776(0x36d)](),_0x20f853[_0x3a9776(0x2f8)]();let _0x13cdda=this[_0x3a9776(0x212)];if(_0x13cdda&&this['_activeShapeModel']){let _0x157ed6={};for(let _0x55d754 of Object[_0x3a9776(0x303)](_0x13cdda[_0x3a9776(0x3f2)])){let _0x14d5b4=this[_0x3a9776(0x40d)][_0x3a9776(0x3a4)](_0x55d754);_0x14d5b4!==void 0x0&&(_0x157ed6[_0x55d754]=_0x14d5b4);}Object[_0x3a9776(0x303)](_0x157ed6)['length']>0x0&&zr(this[_0x3a9776(0x22d)],_0x3eb6bd[_0x3a9776(0x355)],_0x3eb6bd[_0x3a9776(0x203)],_0x3eb6bd[_0x3a9776(0x210)],{'oldShapeData':{'adjustValues':_0x224801}},{'adjustValues':_0x157ed6});}this['_activeAdjustInfo']=void 0x0,this[_0x3a9776(0x40d)]=void 0x0,this[_0x3a9776(0x376)]=!0x1,_0x20f853['enableObjectsEvent'](),_0x8e6786[_0x3a9776(0x367)]();}),_0x27fc0d[_0x928f78(0x367)]();})));}[_0x1ed081(0x271)](){const _0x270e84=_0x1ed081;let {scene:_0x429736}=this[_0x270e84(0x42e)],_0x18d1ec=_0x429736[_0x270e84(0x36f)]();this[_0x270e84(0x2fd)](_0x18d1ec['changeStart$'][_0x270e84(0x251)](_0x364bbc=>{const _0x4ea426=_0x270e84;this[_0x4ea426(0x22e)](),_0x364bbc[_0x4ea426(0x420)]!==null&&_0x364bbc[_0x4ea426(0x420)]['size']===0x1&&_0x364bbc['objects'][_0x4ea426(0x2c2)]()[_0x4ea426(0x2d8)]()[_0x4ea426(0x439)]instanceof Ri&&(this[_0x4ea426(0x279)]=!0x0);})),this[_0x270e84(0x2fd)](_0x18d1ec[_0x270e84(0x35b)][_0x270e84(0x251)](()=>{const _0x5bdcce=_0x270e84;this['_isShouldShowDrawingShapeAdjust']&&this[_0x5bdcce(0x34c)]();})),this['disposeWithMe'](_0x429736[_0x270e84(0x428)][_0x270e84(0x432)](()=>{const _0x3ea271=_0x270e84;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x3ea271(0x279)]=!0x1,this['_createShapeAdjustControls']());})),this[_0x270e84(0x2fd)](_0x18d1ec[_0x270e84(0x32b)][_0x270e84(0x251)](()=>{const _0x313835=_0x270e84;this['_unitId']&&this[_0x313835(0x2fc)]&&this[_0x313835(0x2c0)]&&(this[_0x313835(0x37e)]=this[_0x313835(0x33a)](this[_0x313835(0x2a9)],this[_0x313835(0x2fc)],this[_0x313835(0x2c0)]),this[_0x313835(0x3c8)]());}));}[_0x1ed081(0x324)](){const _0x443c30=_0x1ed081;this[_0x443c30(0x2fd)](this['_commandService']['onCommandExecuted'](_0x22543b=>{const _0x83d556=_0x443c30;if(_0x22543b['id']!==_0xbcf5de['id'])return;let {unitId:_0x400c73,shapeId:_0x58ae31}=_0x22543b[_0x83d556(0x41e)];_0x400c73===this[_0x83d556(0x2a9)]&&_0x58ae31===this[_0x83d556(0x2c0)]&&this['refreshAdjustControls']();})),this['disposeWithMe'](this[_0x443c30(0x291)][_0x443c30(0x273)][_0x443c30(0x251)](_0x584489=>{const _0x40fa44=_0x443c30;if(_0x584489['length']===0x1){let _0x31f4be=_0x584489[0x0],_0x10df3c=this[_0x40fa44(0x291)][_0x40fa44(0x207)](_0x31f4be);if((_0x10df3c==null?void 0x0:_0x10df3c[_0x40fa44(0x234)])===_0x690970[_0x40fa44(0x20d)]){this[_0x40fa44(0x2c0)]=_0x31f4be[_0x40fa44(0x210)],this[_0x40fa44(0x2a9)]=_0x31f4be[_0x40fa44(0x355)],this[_0x40fa44(0x2fc)]=_0x31f4be['subUnitId'],this[_0x40fa44(0x37e)]=this[_0x40fa44(0x33a)](_0x31f4be[_0x40fa44(0x355)],_0x31f4be[_0x40fa44(0x203)],_0x31f4be[_0x40fa44(0x210)]),this[_0x40fa44(0x34c)](),this[_0x40fa44(0x22e)]();return;}}this['_activeShapeId']=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x40fa44(0x2a9)]=null,this[_0x40fa44(0x2fc)]=null,this[_0x40fa44(0x34c)]();})),this[_0x443c30(0x2fd)](_0xfc549c(this[_0x443c30(0x291)][_0x443c30(0x256)],this[_0x443c30(0x291)][_0x443c30(0x217)])[_0x443c30(0x251)](_0x82db28=>{const _0xab19d0=_0x443c30;var _0x37c358;let _0x2d1ac1=_0x82db28[_0xab19d0(0x2ec)](_0x4885c2=>_0x4885c2[_0xab19d0(0x210)]===this['_activeShapeId']&&_0x4885c2['unitId']===this[_0xab19d0(0x2a9)]&&_0x4885c2['subUnitId']===this[_0xab19d0(0x2fc)]);_0x2d1ac1&&((_0x37c358=this['_drawingManagerService'][_0xab19d0(0x207)](_0x2d1ac1))==null?void 0x0:_0x37c358[_0xab19d0(0x234)])===_0x690970['DRAWING_SHAPE']&&this['_updateShapeAdjustControls'](!0x0);})),this[_0x443c30(0x2fd)](this['_drawingManagerService'][_0x443c30(0x354)][_0x443c30(0x251)](_0x910068=>{const _0x12ade9=_0x443c30;for(let _0x47f0d3 of _0x910068)this[_0x12ade9(0x2c0)]===_0x47f0d3[_0x12ade9(0x210)]&&(this[_0x12ade9(0x2c0)]=null,this[_0x12ade9(0x37e)]=void 0x0,this[_0x12ade9(0x2a9)]=null,this[_0x12ade9(0x2fc)]=null,this[_0x12ade9(0x34c)]());}));}};zi=Y([J(0x1,_0x4cc4c4),J(0x2,_0x4e9d1c(_0x39396e)),J(0x3,_0x582229)],zi);let Q=class extends _0x5721ff{constructor(_0x4b4491,_0x2537d7){const _0x4e0629=_0x1ed081;super(),this[_0x4e0629(0x382)]=_0x4b4491,this[_0x4e0629(0x377)]=_0x2537d7,Z(this,'_editingParams$',new _0x4246c4(null)),Z(this,_0x4e0629(0x293),this['_editingParams$'][_0x4e0629(0x343)]()),Z(this,'_onSavingEditorData$',new _0x4246c4(!0x1)),Z(this,_0x4e0629(0x349),this['_onSavingEditorData$'][_0x4e0629(0x343)]()),Z(this,_0x4e0629(0x26e),void 0x0),this[_0x4e0629(0x2fd)](this[_0x4e0629(0x382)][_0x4e0629(0x3af)][_0x4e0629(0x251)](()=>{const _0x287b0b=_0x4e0629;let _0x1cd4e3=this['getEditing']();_0x1cd4e3!=null&&_0x1cd4e3[_0x287b0b(0x232)]&&!this['_canEdit'](_0x1cd4e3)&&this[_0x287b0b(0x372)](null);}));}['dispose'](){const _0x3ab73d=_0x1ed081;this[_0x3ab73d(0x383)](),this[_0x3ab73d(0x1fb)][_0x3ab73d(0x2d8)](null),this[_0x3ab73d(0x1fb)][_0x3ab73d(0x3ff)](),this[_0x3ab73d(0x1f0)][_0x3ab73d(0x2d8)](!0x1),this[_0x3ab73d(0x1f0)][_0x3ab73d(0x3ff)](),super[_0x3ab73d(0x208)]();}[_0x1ed081(0x372)](_0x189af4){const _0x5950c=_0x1ed081;(_0x189af4==null||!_0x189af4[_0x5950c(0x232)]||this[_0x5950c(0x2a1)](_0x189af4))&&(this[_0x5950c(0x383)](),this[_0x5950c(0x1fb)][_0x5950c(0x2d8)](_0x189af4),(_0x189af4==null||_0x189af4['visible']&&this[_0x5950c(0x1f0)][_0x5950c(0x3cd)]())&&this[_0x5950c(0x1f0)][_0x5950c(0x2d8)](!0x1));}[_0x1ed081(0x311)](_0x4b9b4a){const _0x164d87=_0x1ed081;this[_0x164d87(0x1f0)][_0x164d87(0x2d8)](_0x4b9b4a);}[_0x1ed081(0x24c)](){const _0x932d=_0x1ed081;return this[_0x932d(0x1fb)][_0x932d(0x3cd)]();}[_0x1ed081(0x2a1)](_0x1de03c){const _0x2967fa=_0x1ed081;let _0x2a99f5=this[_0x2967fa(0x377)][_0x2967fa(0x3d3)](_0x1de03c[_0x2967fa(0x355)],_0x436dd9[_0x2967fa(0x335)]);if(!_0x2a99f5)return!0x0;let _0x7921de=_0x1fc7f8(_0x2a99f5,_0x1de03c['shapeId']);return _0x47555f(this[_0x2967fa(0x382)],_0x1de03c[_0x2967fa(0x355)],[..._0x1a179a(_0x2a99f5,_0x7921de,'drawing',_0x1de03c[_0x2967fa(0x317)]),_0x5462ea(_0x7921de,_0x2967fa(0x2fa),_0x1de03c[_0x2967fa(0x317)])]);}[_0x1ed081(0x3cc)](_0x58de5f){const _0x255614=_0x1ed081;let _0x497b46=this[_0x255614(0x24c)]();_0x497b46&&this['_completionFrame']===void 0x0&&(this[_0x255614(0x311)](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x5d492a=_0x255614;this[_0x5d492a(0x26e)]=void 0x0,this[_0x5d492a(0x24c)]()===_0x497b46&&this[_0x5d492a(0x372)](null);}));}[_0x1ed081(0x383)](){const _0x1b85fc=_0x1ed081;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this[_0x1b85fc(0x26e)]),this[_0x1b85fc(0x26e)]=void 0x0);}['cancelEditing'](){const _0x52f407=_0x1ed081;this[_0x52f407(0x24c)]()&&this[_0x52f407(0x372)](null);}};Q=Y([J(0x0,_0x49aab3),J(0x1,_0x357598)],Q);function Bi(_0x975de3){const _0xa3d236=_0x1ed081;return _0x975de3[_0xa3d236(0x396)]===!0x0||_0x975de3[_0xa3d236(0x396)]===_0x1fdcb8[_0xa3d236(0x1f9)]||_0x975de3[_0xa3d236(0x29f)]===_0x1ef66e['WRAP_NONE']&&_0x975de3[_0xa3d236(0x259)]===_0x1fdcb8[_0xa3d236(0x1f9)]?_0x47a510-0x1:_0x8e9c78;}let $=class extends _0x5721ff{constructor(_0x2ab307,_0x5a8741,_0x36116a,_0x5c3af5,_0x235519,_0xcabf0f,_0x366b8a){const _0x16ae0c=_0x1ed081;super(),this[_0x16ae0c(0x291)]=_0x2ab307,this[_0x16ae0c(0x26c)]=_0x5a8741,this[_0x16ae0c(0x437)]=_0x36116a,this[_0x16ae0c(0x2ff)]=_0x5c3af5,this[_0x16ae0c(0x32a)]=_0x235519,this['_shapeTextEditingService']=_0xcabf0f,this[_0x16ae0c(0x401)]=_0x366b8a,Z(this,_0x16ae0c(0x2b2),new Map()),this['disposeWithMe'](this[_0x16ae0c(0x401)]['presentationChanged$'][_0x16ae0c(0x251)](_0x7f4ace=>{const _0x5acd2e=_0x16ae0c;var _0x37ec92;(_0x37ec92=this[_0x5acd2e(0x2b2)]['get'](this[_0x5acd2e(0x33f)](_0x7f4ace['unitId'],_0x7f4ace[_0x5acd2e(0x203)],_0x7f4ace[_0x5acd2e(0x317)])))==null||_0x37ec92['forEach'](_0x5e9e9a=>_0x5e9e9a[_0x5acd2e(0x27b)](_0x7f4ace[_0x5acd2e(0x3b8)],_0x7f4ace[_0x5acd2e(0x3dc)]));})),this[_0x16ae0c(0x2fd)](this[_0x16ae0c(0x291)]['remove$'][_0x16ae0c(0x251)](_0x1319b1=>{const _0x253cf6=_0x16ae0c;_0x1319b1[_0x253cf6(0x323)](_0x436006=>{const _0x4f0d28=_0x253cf6;this['_shapeFormulaService']['unregister']({'unitId':_0x436006[_0x4f0d28(0x355)],'subUnitId':_0x436006[_0x4f0d28(0x203)],'shapeId':_0x436006[_0x4f0d28(0x210)]}),this[_0x4f0d28(0x2b2)][_0x4f0d28(0x39f)](this['_formulaKey'](_0x436006['unitId'],_0x436006[_0x4f0d28(0x203)],_0x436006['drawingId']));});}));}[_0x1ed081(0x2df)](_0x439578,_0x39069a){const _0x39dbbd=_0x1ed081;let {transform:_0x3351b6,drawingType:_0x1e8c21,srcRect:_0x337fdb,prstGeom:_0x74fc89,groupId:_0x492bfc,unitId:_0x5c45f8,subUnitId:_0x4abff9,drawingId:_0x29e51c,isMultiTransform:_0x14842a,transforms:_0x5f033b,hidden:_0x594c35,selectable:_0x1622c3}=_0x439578;if(_0x1e8c21!==_0x690970[_0x39dbbd(0x20d)]||!this[_0x39dbbd(0x291)]['getDrawingVisible']()||_0x3351b6==null)return;let _0x9cf6d7=this[_0x39dbbd(0x291)][_0x39dbbd(0x2c6)](),_0x5f182c=_0x14842a&&_0x5f033b?_0x5f033b:[_0x3351b6],_0x730e44=[];for(let [_0x4a5838,_0x486789]of _0x5f182c[_0x39dbbd(0x258)]()){let {left:_0x361d07,top:_0x175242,width:_0x56ed74,height:_0x14c0b6,angle:_0x35ada6,flipX:_0x2c1f5c,flipY:_0x73cff,skewX:_0xa321ac,skewY:_0x4e2611}=_0x486789,_0x58c789=_0x54547b({'unitId':_0x5c45f8,'subUnitId':_0x4abff9,'drawingId':_0x29e51c},_0x14842a?_0x4a5838:void 0x0),_0x4aeb89=_0x39069a['getObjectIncludeInGroup'](_0x58c789);if(_0x4aeb89!=null){let _0x4018f0={'unitId':_0x5c45f8,'subUnitId':_0x4abff9,'shapeId':_0x29e51c};_0x4aeb89 instanceof Ri&&this[_0x39dbbd(0x40f)](_0x4aeb89,_0x4018f0),_0x4aeb89[_0x39dbbd(0x3be)]({'left':_0x361d07,'top':_0x175242,'width':_0x56ed74,'height':_0x14c0b6,'angle':_0x35ada6,'flipX':_0x2c1f5c,'flipY':_0x73cff,'skewX':_0xa321ac,'skewY':_0x4e2611});continue;}let _0xc93dde=this['_drawingManagerService'][_0x39dbbd(0x3ae)](_0x5c45f8,_0x4abff9),_0x582d98=_0xc93dde[_0x39dbbd(0x414)](_0x29e51c);if(_0x39069a[_0x39dbbd(0x3fa)](_0x58c789)||!this[_0x39dbbd(0x291)][_0x39dbbd(0x237)]())continue;let _0x1594f3=this[_0x39dbbd(0x26c)]['getShapeModel'](_0x5c45f8,_0x4abff9,_0x29e51c);if(!_0x1594f3)continue;let _0x1a75c2=_0x238e4e(_0x1594f3[_0x39dbbd(0x40b)]())?{..._0x45b1c1,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x45b1c1,_0x52119b=_0x1594f3[_0x39dbbd(0x3c2)]()[_0x39dbbd(0x1f5)],_0x12761e={'unitId':_0x5c45f8,'subUnitId':_0x4abff9,'shapeId':_0x29e51c};_0x52119b&&this[_0x39dbbd(0x401)][_0x39dbbd(0x314)](_0x12761e,_0x52119b);let _0x67366a=new Ri(_0x58c789,{..._0x486789,'zIndex':_0x582d98===-0x1?_0xc93dde[_0x39dbbd(0x43c)]-0x1:_0x582d98,'shapeModel':_0x1594f3,'localeService':this[_0x39dbbd(0x437)],'shapeId':_0x29e51c,'unitId':_0x5c45f8,'subUnitId':_0x4abff9,'visible':_0x594c35!==!0x0,'evented':_0x1622c3!==!0x1,'formulaPresentation':_0x52119b?this[_0x39dbbd(0x401)][_0x39dbbd(0x3bb)](_0x12761e):void 0x0,'animateFormulaPresentation':(_0x52119b==null?void 0x0:_0x52119b[_0x39dbbd(0x3dc)])!==!0x1,'transformerConfig':_0x1a75c2});if(_0x52119b){let _0x6facf6=this['_formulaKey'](_0x5c45f8,_0x4abff9,_0x29e51c),_0xbeb95f=this[_0x39dbbd(0x2b2)]['get'](_0x6facf6)??new Set();_0xbeb95f['add'](_0x67366a),this[_0x39dbbd(0x2b2)][_0x39dbbd(0x2e7)](_0x6facf6,_0xbeb95f);}this[_0x39dbbd(0x2fd)](_0xfac87e(_0x67366a[_0x39dbbd(0x310)]['subscribeEvent']((_0x48c4ed,_0x2d2ede)=>{const _0x2e7f0b=_0x39dbbd;_0x1594f3[_0x2e7f0b(0x248)]()||_0x52119b||(this[_0x2e7f0b(0x230)][_0x2e7f0b(0x372)]({'visible':!0x0,'unitId':_0x5c45f8,'subUnitId':_0x4abff9,'shapeId':_0x29e51c,'shapeKey':_0x67366a[_0x2e7f0b(0x1e8)]}),_0x2d2ede[_0x2e7f0b(0x367)]());}))),_0x39069a[_0x39dbbd(0x2ed)](_0x67366a,Bi(_0x439578)),_0x9cf6d7&&_0x39069a['attachTransformerTo'](_0x67366a),_0x492bfc&&_0x514f17({'drawingId':_0x492bfc,'unitId':_0x5c45f8,'subUnitId':_0x4abff9},_0x67366a,_0x39069a,this[_0x39dbbd(0x291)],_0x14842a?_0x4a5838:void 0x0),_0x74fc89!=null&&_0x67366a[_0x39dbbd(0x29c)](_0x74fc89),_0x337fdb!=null&&_0x67366a[_0x39dbbd(0x430)](_0x337fdb),this[_0x39dbbd(0x369)](_0x67366a,_0x1594f3[_0x39dbbd(0x3c2)]()),_0x730e44[_0x39dbbd(0x39c)](_0x67366a);}return _0x730e44;}['_formulaKey'](_0x47a34d,_0x277a2b,_0x574c81){return _0x47a34d+'\x00'+_0x277a2b+'\x00'+_0x574c81;}[_0x1ed081(0x40f)](_0x517030,_0x5872ff){const _0x41fcca=_0x1ed081;let _0x4d534a=this[_0x41fcca(0x26c)][_0x41fcca(0x381)](_0x5872ff[_0x41fcca(0x355)],_0x5872ff[_0x41fcca(0x203)],_0x5872ff[_0x41fcca(0x317)]),_0x165005=_0x4d534a==null?void 0x0:_0x4d534a[_0x41fcca(0x3c2)]()[_0x41fcca(0x1f5)],_0x9e2cd3=this[_0x41fcca(0x33f)](_0x5872ff[_0x41fcca(0x355)],_0x5872ff['subUnitId'],_0x5872ff['shapeId']);if(_0x165005){this[_0x41fcca(0x401)][_0x41fcca(0x314)](_0x5872ff,_0x165005);let _0x1d4f2e=this['_formulaShapes'][_0x41fcca(0x410)](_0x9e2cd3)??new Set();_0x1d4f2e[_0x41fcca(0x28d)](_0x517030),this['_formulaShapes']['set'](_0x9e2cd3,_0x1d4f2e);}else{var _0x19e8f4;this[_0x41fcca(0x401)][_0x41fcca(0x3f9)](_0x5872ff),(_0x19e8f4=this[_0x41fcca(0x2b2)]['get'](_0x9e2cd3))==null||_0x19e8f4[_0x41fcca(0x39f)](_0x517030);}_0x517030[_0x41fcca(0x27b)](_0x165005?this['_shapeFormulaService']['getPresentation'](_0x5872ff):void 0x0,(_0x165005==null?void 0x0:_0x165005['animationEnabled'])!==!0x1);}[_0x1ed081(0x21d)](_0x21d411){const _0x172a73=_0x1ed081;let _0x9996e4=_0x21d411[_0x172a73(0x2d4)][_0x172a73(0x3c2)](),_0x1c313a=_0x9996e4[_0x172a73(0x329)];if(!_0x1c313a||_0x1c313a['fillType']!==_0x81ceb[_0x172a73(0x3a2)]||!_0x1c313a[_0x172a73(0x438)]){_0x21d411['setFillImage'](void 0x0);return;}this[_0x172a73(0x369)](_0x21d411,_0x9996e4);}[_0x1ed081(0x369)](_0x25339e,_0x47617a){const _0x3fccc2=_0x1ed081;let _0x316d26=_0x47617a[_0x3fccc2(0x329)];if(!_0x316d26||_0x316d26[_0x3fccc2(0x423)]!==_0x81ceb[_0x3fccc2(0x3a2)]||!_0x316d26[_0x3fccc2(0x438)])return;let _0x25798a=_0x316d26[_0x3fccc2(0x438)],_0x29955a=_0x316d26[_0x3fccc2(0x400)]??_0x2fdab0[_0x3fccc2(0x3b4)],_0x50b307=this[_0x3fccc2(0x2ff)][_0x3fccc2(0x398)](_0x25798a,_0x29955a);if(_0x50b307){_0x25339e[_0x3fccc2(0x25d)](_0x50b307);return;}this[_0x3fccc2(0x30c)](_0x25339e,_0x25798a,_0x29955a);}async['_loadAndSetImage'](_0x1d38e3,_0x1a6f55,_0x4dca7e){const _0x14dedf=_0x1ed081;let _0x81bb19;try{if(_0x4dca7e===_0x2fdab0['UUID'])_0x81bb19=await this[_0x14dedf(0x2ff)][_0x14dedf(0x3e9)](_0x1a6f55);else{if(_0x4dca7e===_0x2fdab0[_0x14dedf(0x3b4)])try{_0x81bb19=await this['_urlImageService'][_0x14dedf(0x3e9)](_0x1a6f55);}catch{_0x81bb19=_0x1a6f55;}else _0x81bb19=_0x1a6f55;}}catch(_0x4073d3){console[_0x14dedf(0x288)](_0x14dedf(0x260),_0x4073d3);return;}let _0x195880=new window['Image']();_0x195880[_0x14dedf(0x1ff)]=()=>{const _0x320b15=_0x14dedf;this[_0x320b15(0x2ff)]['addImageSourceCache'](_0x1a6f55,_0x4dca7e,_0x195880),_0x1d38e3[_0x320b15(0x25d)](_0x195880);},_0x195880[_0x14dedf(0x392)]=()=>{const _0x4d65e5=_0x14dedf;console[_0x4d65e5(0x288)](_0x4d65e5(0x40e),_0x1a6f55);},_0x195880[_0x14dedf(0x286)]=_0x81bb19;}};$=Y([J(0x0,_0x4cc4c4),J(0x1,_0x4e9d1c(_0x39396e)),J(0x2,_0x4e9d1c(_0x4b811c)),J(0x3,_0x272990),J(0x4,_0x2d26b4),J(0x5,_0x4e9d1c(Q)),J(0x6,_0x4e9d1c(_0x44c530))],$);let Vi=class extends _0x5721ff{constructor(_0x1b1c55,_0x1d2f23,_0x11d315){const _0x506d21=_0x1ed081;super(),this[_0x506d21(0x417)]=_0x1b1c55,this[_0x506d21(0x291)]=_0x1d2f23,this[_0x506d21(0x3fe)]=_0x11d315,this['_initPrinting']();}[_0x1ed081(0x25a)](){const _0x646805=_0x1ed081;this['disposeWithMe'](this[_0x646805(0x417)][_0x646805(0x2e2)][_0x646805(0x37c)](this[_0x646805(0x417)][_0x646805(0x2e2)][_0x646805(0x38f)]()[_0x646805(0x20e)],{'handler':(_0x5171d7,_0x396c77,_0x48e025)=>{const _0xd8fd7=_0x646805;var _0x543bd2;let {unitId:_0x494f1a,scene:_0x4c7a02,skeleton:_0x112af9}=_0x396c77,{pageIndex:_0x48133a}=_0x396c77,_0x39b73d=(_0x543bd2=this[_0xd8fd7(0x291)][_0xd8fd7(0x254)](_0x494f1a))==null?void 0x0:_0x543bd2[_0x494f1a],_0x291ca1=Hi(this[_0xd8fd7(0x417)],_0x112af9,_0x48133a);return _0x39b73d==null||_0x39b73d[_0xd8fd7(0x3e8)][_0xd8fd7(0x323)](_0x3d857a=>{const _0x1ee408=_0xd8fd7;if(_0x291ca1&&!_0x291ca1[_0x1ee408(0x2c5)](_0x3d857a))return;let _0x7679a4=_0x39b73d['data'][_0x3d857a];_0x7679a4['drawingType']===_0x690970[_0x1ee408(0x20d)]&&!_0x7679a4[_0x1ee408(0x21a)]&&this[_0x1ee408(0x3fe)][_0x1ee408(0x2df)](_0x7679a4,_0x4c7a02);}),_0x48e025(_0x5171d7);}}));}};Vi=Y([J(0x0,_0x4e9d1c(_0x10ee9c)),J(0x1,_0x4cc4c4),J(0x2,_0x4e9d1c($))],Vi);function Hi(_0x4d4656,_0x57b5c5,_0x4c544b){const _0x10e325=_0x1ed081;var _0x57982e,_0x4f127f;let _0x3fed02=_0x4d4656;if(_0x3fed02[_0x10e325(0x3ce)])return _0x3fed02[_0x10e325(0x3ce)](_0x57b5c5,_0x4c544b);let _0x2cbcf4=_0x57b5c5[_0x10e325(0x220)]();if(!_0x2cbcf4||_0x2cbcf4[_0x10e325(0x3fc)]['length']<=0x1||_0x4c544b==null)return null;let _0x409759=new Set(),_0x4a9c40=_0x2cbcf4[_0x10e325(0x3fc)][_0x4c544b];if(!_0x4a9c40)return _0x409759;Ui(_0x4a9c40,_0x409759);let _0x19849e=(_0x57982e=_0x2cbcf4['skeHeaders'][_0x10e325(0x410)](_0x4a9c40[_0x10e325(0x345)]))==null?void 0x0:_0x57982e[_0x10e325(0x410)](_0x4a9c40['pageWidth']),_0x5e9935=(_0x4f127f=_0x2cbcf4[_0x10e325(0x242)][_0x10e325(0x410)](_0x4a9c40['footerId']))==null?void 0x0:_0x4f127f[_0x10e325(0x410)](_0x4a9c40['pageWidth']);return _0x19849e&&Ui(_0x19849e,_0x409759),_0x5e9935&&Ui(_0x5e9935,_0x409759),_0x409759;}function Ui(_0x4cda65,_0x19cce3){const _0x5e2e44=_0x1ed081;for(let _0x2e676d of _0x4cda65['skeDrawings']['keys']())_0x19cce3[_0x5e2e44(0x28d)](_0x2e676d);for(let _0x85151e of _0x4cda65[_0x5e2e44(0x3e5)][_0x5e2e44(0x2c2)]())for(let _0x150a5d of _0x85151e[_0x5e2e44(0x3df)])for(let _0x143cc6 of _0x150a5d[_0x5e2e44(0x374)])Ui(_0x143cc6,_0x19cce3);}function Wi(_0x572687){return _0x20be44(Nr,{..._0x572687,'PickerComponent':_0x28df4e});}function Gi(){const _0x4e7c00=_0x1ed081;let _0x26e57f=_0x5c5c3d(_0x4b811c),_0x22f362=Ar(),[_0x4f797f,_0x5d37d1]=_0x5d63ba(!0x1);return _0x56d981(_0x4e7c00(0x29b),{'className':_0x4e7c00(0x24d),'children':[_0x20be44(_0x37d12d,{'title':_0x26e57f['t'](_0x4e7c00(0x434)),'aria-expanded':_0x4f797f,'variant':_0x4e7c00(0x446),'trailing':_0x20be44(_0x4f797f?_0x19b22a:_0x5c6907,{}),'onClick':()=>_0x5d37d1(_0x2266ed=>!_0x2266ed)}),_0x4f797f&&_0x20be44(_0x28df4e,{'excludeGroups':[_0x4f9fa7[_0x4e7c00(0x239)]],'onShapeClick':_0xc0a1d2=>{_0x22f362(_0xc0a1d2),_0x5d37d1(!0x1);}})]});}function Ki(_0x4cb6d5){const _0x5f1bdf=_0x1ed081;return _0x4cb6d5[_0x5f1bdf(0x1f6)]()||void 0x0;}function qi(_0x95761b,_0xbba491,_0x55d0d2){const _0xd7a3af=_0x1ed081;var _0x5e254e,_0x58b84e;return((_0x5e254e=_0x95761b['name'])==null?void 0x0:_0x5e254e[_0xd7a3af(0x1f6)]())||((_0x58b84e=_0x95761b['title'])==null?void 0x0:_0x58b84e[_0xd7a3af(0x1f6)]())||_0x55d0d2['t'](_0xd7a3af(0x315)+_0x58a6be(_0x95761b[_0xd7a3af(0x234)]))+'\x20'+(_0xbba491+0x1);}function Ji({PanelComponent:_0x36a83d=_0x92c98e}){const _0x4a9a5e=_0x1ed081;let _0x173e95=_0x5c5c3d(_0x4b811c),_0x1d006c={'title':_0x173e95['t'](_0x4a9a5e(0x24b)),'empty':_0x173e95['t'](_0x4a9a5e(0x1fc)),'showAll':_0x173e95['t'](_0x4a9a5e(0x2eb)),'hideAll':_0x173e95['t'](_0x4a9a5e(0x403)),'lockAll':_0x173e95['t']('drawing-ui.objectListPanel.lockAll'),'unlockAll':_0x173e95['t'](_0x4a9a5e(0x2ab)),'moveForward':_0x173e95['t'](_0x4a9a5e(0x1f8)),'moveBackward':_0x173e95['t']('drawing-ui.objectListPanel.moveBackward'),'close':_0x173e95['t'](_0x4a9a5e(0x231)),'show':_0x173e95['t'](_0x4a9a5e(0x2bc)),'hide':_0x173e95['t'](_0x4a9a5e(0x3ad)),'lock':_0x173e95['t'](_0x4a9a5e(0x3e0)),'unlock':_0x173e95['t']('drawing-ui.objectListPanel.unlock'),'lockHint':_0x173e95['t'](_0x4a9a5e(0x353)),'unlockHint':_0x173e95['t'](_0x4a9a5e(0x3b3)),'name':_0x173e95['t'](_0x4a9a5e(0x2e8)),'nameInput':_0x173e95['t'](_0x4a9a5e(0x1f4)),'description':_0x173e95['t']('drawing-ui.objectListPanel.description'),'descriptionPlaceholder':_0x173e95['t'](_0x4a9a5e(0x41d)),'details':_0x173e95['t']('drawing-ui.objectListPanel.details'),'noSelection':_0x173e95['t'](_0x4a9a5e(0x3d0)),'locate':_0x173e95['t'](_0x4a9a5e(0x3a5)),'expand':_0x173e95['t'](_0x4a9a5e(0x281)),'collapse':_0x173e95['t'](_0x4a9a5e(0x2a3)),'dragToReorder':_0x173e95['t'](_0x4a9a5e(0x3a0)),'search':_0x173e95['t'](_0x4a9a5e(0x395)),'filterAll':_0x173e95['t'](_0x4a9a5e(0x440)),'filterHidden':_0x173e95['t'](_0x4a9a5e(0x43d)),'filterLocked':_0x173e95['t'](_0x4a9a5e(0x276)),'sectionCanvas':_0x173e95['t']('drawing-ui.objectListPanel.sectionCanvas'),'sectionFloating':_0x173e95['t'](_0x4a9a5e(0x24e))},_0xe517f7=_0x5c5c3d(_0x582229),_0x1d9e9e=_0x5c5c3d(_0x357598),_0x553c45=_0x5c5c3d(_0x5f2715),_0x20f9d2=_0x5c5c3d(_0x4cc4c4),_0x46bfca=_0x5c5c3d(_0x1b5744),[,_0x241105]=_0x4aee64(_0x20e714=>_0x20e714+0x1,0x0),_0x9ce88f=_0x1d9e9e[_0x4a9a5e(0x3c3)](_0x436dd9['UNIVER_DOC']),_0x1fe0c7=(_0x9ce88f==null?void 0x0:_0x9ce88f[_0x4a9a5e(0x336)]())??'',_0x5ba642=_0x1fe0c7,_0x219e15=_0x2f0836(()=>_0x20f9d2[_0x4a9a5e(0x273)],_0x20f9d2[_0x4a9a5e(0x2a0)](),!0x1,[_0x20f9d2]);_0x3e40cc(()=>{const _0x4dac30=_0x4a9a5e;let _0x1dc22b=_0xe517f7['onCommandExecuted'](()=>_0x241105());return()=>_0x1dc22b[_0x4dac30(0x208)]();},[_0xe517f7]);let _0x508680=_0x1fe0c7?_0x553c45['getDrawingData'](_0x1fe0c7,_0x5ba642):{},_0x3baaf9=(_0x1fe0c7?_0x553c45[_0x4a9a5e(0x3ae)](_0x1fe0c7,_0x5ba642):[])['map'](_0x5c2338=>_0x508680[_0x5c2338])[_0x4a9a5e(0x252)](_0x5d48d2=>!!_0x5d48d2)['reverse'](),_0x385675=_0x3baaf9[_0x4a9a5e(0x216)]((_0x3bb7d9,_0x427bc5)=>(_0x3bb7d9[_0x3c8fa2(_0x427bc5[_0x4a9a5e(0x234)])]+=0x1,_0x3bb7d9),{'canvas':0x0,'floating':0x0}),_0x2e94cf={'canvas':0x0,'floating':0x0},_0x166505=_0x3baaf9[_0x4a9a5e(0x427)]((_0x294816,_0x2a0874)=>{const _0x141600=_0x4a9a5e;let _0x55b57f=_0x3c8fa2(_0x294816[_0x141600(0x234)]),_0x2a3dae=_0x55b57f===_0x4887bf,_0x2afd62=_0x2e94cf[_0x55b57f]++;return{'id':_0x294816['drawingId'],'name':qi(_0x294816,_0x2a0874,_0x173e95),'description':_0x294816['description'],'visible':_0x294816[_0x141600(0x21a)]!==!0x0,'selectable':_0x294816[_0x141600(0x306)]!==!0x1,'sectionId':_0x55b57f,'sectionTitle':_0x2a3dae?_0x1d006c['sectionFloating']:_0x1d006c['sectionCanvas'],'capabilities':_0x2a3dae?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x2a3dae&&_0x2afd62>0x0,'canMoveBackward':!_0x2a3dae&&_0x2afd62<_0x385675[_0x141600(0x227)]-0x1,'canReorder':!_0x2a3dae};}),_0x2eb9c5=_0x108bd4(()=>(_0x219e15??[])[_0x4a9a5e(0x252)](_0x224f46=>_0x224f46[_0x4a9a5e(0x355)]===_0x1fe0c7&&_0x224f46[_0x4a9a5e(0x203)]===_0x5ba642)['map'](_0x457c85=>_0x457c85['drawingId']),[_0x219e15,_0x5ba642,_0x1fe0c7]),_0x31fa8b=_0x2eb9c5[_0x2eb9c5['length']-0x1]??null,_0x2932c7=_0x5cdb4e=>_0x553c45[_0x4a9a5e(0x207)]({'unitId':_0x1fe0c7,'subUnitId':_0x5ba642,'drawingId':_0x5cdb4e})??null,_0x570887=async _0x58d23f=>{const _0x783b5b=_0x4a9a5e;_0x1fe0c7&&_0x58d23f[_0x783b5b(0x43c)]&&await _0xe517f7[_0x783b5b(0x402)](_0x3f9a11['id'],{'unitId':_0x1fe0c7,'patches':_0x58d23f});},_0x462d1b=(_0x186952,_0x463e6c)=>{const _0x43415f=_0x4a9a5e;if(!_0x1fe0c7)return;let _0x4e1726=_0x463e6c?_0x2eb9c5[_0x43415f(0x228)](_0x186952)?_0x2eb9c5[_0x43415f(0x252)](_0xe3d3ef=>_0xe3d3ef!==_0x186952):[..._0x2eb9c5,_0x186952]:[_0x186952];_0xe517f7[_0x43415f(0x2e3)](_0x4216b5['id'],_0x4e1726['map'](_0x2968fa=>({'unitId':_0x1fe0c7,'subUnitId':_0x5ba642,'drawingId':_0x2968fa})));let _0x577564=_0x4e1726[_0x4e1726[_0x43415f(0x43c)]-0x1];_0x577564?_0x58d512(_0x46bfca,{'unitId':_0x1fe0c7,'subUnitId':_0x5ba642,'drawingId':_0x577564}):_0x55746c(_0x46bfca,_0x1fe0c7);},_0x2f35cd=async(_0x232cb4,_0x30d057)=>{const _0x55896a=_0x4a9a5e;await _0x570887(_0x232cb4[_0x55896a(0x427)](_0x1dae02=>_0x2932c7(_0x1dae02))[_0x55896a(0x252)](_0x582af5=>!!_0x582af5)[_0x55896a(0x252)](_0x4d6187=>_0x4d6187[_0x55896a(0x21a)]!==!0x0!==_0x30d057)[_0x55896a(0x427)](_0x3b2351=>({'drawingId':_0x3b2351[_0x55896a(0x210)],'hidden':!_0x30d057})));},_0x2cb868=async(_0xbc50d2,_0x264105)=>{const _0x5095aa=_0x4a9a5e;await _0x570887(_0xbc50d2[_0x5095aa(0x427)](_0x1d85fc=>_0x2932c7(_0x1d85fc))[_0x5095aa(0x252)](_0x30bec4=>!!_0x30bec4)[_0x5095aa(0x252)](_0xbefbbe=>_0xbefbbe[_0x5095aa(0x306)]!==!0x1!==_0x264105)[_0x5095aa(0x427)](_0x50c79e=>({'drawingId':_0x50c79e['drawingId'],'selectable':_0x264105})));},_0x41ecd0=_0x42aa2b=>{const _0x1e223f=_0x4a9a5e;let _0xa7c6c6=_0x2932c7(_0x42aa2b);if(_0xa7c6c6)return _0x2cb868([_0x42aa2b],_0xa7c6c6[_0x1e223f(0x306)]===!0x1);},_0x5db648=async(_0x34ab8c,_0xd43510)=>{const _0x271bf6=_0x4a9a5e;let _0x23c22d=_0x2932c7(_0x34ab8c),_0x5bc3d9=Ki(_0xd43510);!_0x23c22d||(_0x23c22d[_0x271bf6(0x1f7)]??void 0x0)===_0x5bc3d9&&(_0x23c22d[_0x271bf6(0x415)]||void 0x0)===_0x5bc3d9||await _0x570887([{'drawingId':_0x34ab8c,'name':_0x5bc3d9,'title':_0x5bc3d9}]);},_0x4c8b72=async(_0x4a11b2,_0x52fc3d)=>{const _0x300851=_0x4a9a5e;let _0x42c7a1=_0x2932c7(_0x4a11b2),_0xa7eec4=Ki(_0x52fc3d);_0x42c7a1&&(_0x42c7a1[_0x300851(0x2f2)]??void 0x0)!==_0xa7eec4&&await _0x570887([{'drawingId':_0x4a11b2,'description':_0xa7eec4}]);},_0x41a100=async(_0x174a6b,_0xf2f595)=>{const _0x55a8ba=_0x4a9a5e;_0x1fe0c7&&await _0xe517f7[_0x55a8ba(0x402)](_0x5dc4dd['id'],{'unitId':_0x1fe0c7,'subUnitId':_0x5ba642,'drawingIds':[_0x174a6b],'arrangeType':_0xf2f595});};return _0x1fe0c7?_0x20be44(_0x36a83d,{'labels':_0x1d006c,'renderPermissionAction':_0x3c4752=>_0x9ce88f?_0x20be44(_0x54a7e7,{'target':{'unitId':_0x1fe0c7,'objectId':_0x5462ea(_0x1fc7f8(_0x9ce88f,_0x3c4752['id']),_0x4a9a5e(0x2fa),_0x3c4752['id']),'objectType':_0x3d15f1['DocumentEntity']},'name':_0x3c4752['name'],'commandId':_0x4a71fc['id'],'exists':()=>!!_0x2932c7(_0x3c4752['id'])},_0x1fe0c7+'/'+_0x3c4752['id']):null,'items':_0x166505,'selectedIds':_0x2eb9c5,'focusedId':_0x31fa8b,'showHeader':!0x1,'onSelect':_0x462d1b,'onSetVisible':_0x2f35cd,'onSetSelectable':_0x2cb868,'onCommitName':_0x5db648,'onCommitDescription':_0x4c8b72,'onMoveForward':async _0x26d782=>_0x41a100(_0x26d782,_0x30db5e[_0x4a9a5e(0x2bd)]),'onMoveBackward':async _0xc9ad4a=>_0x41a100(_0xc9ad4a,_0x30db5e[_0x4a9a5e(0x2a6)]),'onToggleSelectable':_0x41ecd0}):_0x20be44(_0x4a9a5e(0x29b),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x1d006c[_0x4a9a5e(0x415)]});}function Yi(){return _0x20be44(Ji,{'PanelComponent':_0x49b254});}let Xi=class{constructor(_0x1aab72){const _0x179e7b=_0x1ed081;this[_0x179e7b(0x283)]=_0x1aab72;}[_0x1ed081(0x327)](_0x3518e1,_0x1213f9){const _0x2d943c=_0x1ed081;let _0x47137c=this['_renderManagerService']['getRenderUnitById'](_0x3518e1[_0x2d943c(0x355)]),_0x825ff5=_0x47137c==null?void 0x0:_0x47137c[_0x2d943c(0x27e)];if(!_0x825ff5)return;let _0x1b3a56=_0x54547b(_0x3518e1),_0x4b623f=_0x825ff5['getObjectIncludeInGroup'](_0x1b3a56);_0x4b623f==null||_0x4b623f[_0x2d943c(0x25d)](_0x1213f9);}};Xi=Y([J(0x0,_0x1b5744)],Xi);function Zi(){const _0x49d260=_0x1ed081;let _0x1fca96=_0x5c5c3d(_0x4cc4c4),_0x3a2087=_0x2f0836(()=>_0x1fca96['focus$'],_0x1fca96[_0x49d260(0x2a0)](),!0x1,[_0x1fca96]);return _0x3a2087['length']===0x0?null:_0x20be44(_0x49d260(0x29b),{'children':_0x56d981(_0x49d260(0x29b),{'className':_0x49d260(0x23f),'children':[_0x20be44(_0xe08cbd,{'drawings':_0x3a2087,'hasCropper':!0x1}),_0x20be44(_0x19e2da,{'drawings':_0x3a2087}),_0x20be44(_0x397b36,{'drawings':_0x3a2087})]})});}function Qi(_0x15147c){let {unitId:_0x479b15,subUnitId:_0x41c58a,shapeId:_0x4c45a4,PositionComponent:_0x6e12d7=Zi}=_0x15147c,_0x59ad28=_0x5c5c3d(_0x582229),_0x1690b2=_0x5c5c3d(Xi);return _0x20be44(_0x528db9,{..._0x15147c,'positionEditor':_0x20be44(_0x6e12d7,{}),'onUpdateShapeData':(_0x4068bc,_0x200614)=>{zr(_0x59ad28,_0x479b15,_0x41c58a,_0x4c45a4,_0x4068bc,_0x200614);},'onUpdateLineShapeData':(_0x4d83e3,_0x507ef4)=>{Br(_0x59ad28,_0x479b15,_0x41c58a,_0x4c45a4,_0x4d83e3,_0x507ef4);},'onUpdateShapeFillImage':_0x24a74e=>{_0x1690b2['updateShapeFillImage']({'unitId':_0x479b15,'subUnitId':_0x41c58a,'drawingId':_0x4c45a4},_0x24a74e);}});}function $i(){const _0x66d3ac=_0x1ed081;let _0x3a97b1=_0x5c5c3d(_0x4cc4c4),_0x10a5a4=_0x2f0836(_0x3a97b1[_0x66d3ac(0x273)],_0x3a97b1[_0x66d3ac(0x2a0)]());return _0x10a5a4[_0x66d3ac(0x43c)]===0x0?null:_0x56d981(_0x66d3ac(0x29b),{'className':_0x66d3ac(0x265),'children':[_0x20be44(_0xe08cbd,{'drawings':_0x10a5a4,'hasCropper':!0x1}),_0x20be44(_0x416f6b,{'drawings':_0x10a5a4}),_0x20be44(_0x3ccd8d,{'drawings':_0x10a5a4})]});}function ea(_0x1f5862){return _0x20be44(_0x3de1f7,{'children':_0x20be44(Qi,{..._0x1f5862,'PositionComponent':$i})});}function ta({popup:_0x332760}){const _0x9b4388=_0x1ed081;let _0x2e40c8=_0x5c5c3d(_0x4b811c),{shapeType:_0x187e48,onText:_0x2285a6,onStyle:_0x51f850,onDelete:_0x3db312}=_0x332760['extraProps'],_0x38f1e9=[{'key':_0x9b4388(0x348),'order':0x0,'item':{'id':_0x9b4388(0x348),'type':_0x2f080a['BUTTON'],'title':_0x2e40c8['t'](_0x9b4388(0x24a)),'disabled$':_0x13712d(_0x238e4e(_0x187e48))}},{'key':_0x9b4388(0x28b),'order':0x1,'item':{'id':'style','type':_0x2f080a['BUTTON'],'title':_0x2e40c8['t'](_0x9b4388(0x3bf))}},{'key':_0x9b4388(0x39f),'order':0x2,'item':{'id':_0x9b4388(0x39f),'type':_0x2f080a[_0x9b4388(0x3f8)],'title':_0x2e40c8['t']('docs-shape-ui.mobile.delete')}}];return _0x20be44(_0xc85ff4,{'schemas':_0x38f1e9,'presentation':'context-bar','onOptionSelect':async({id:_0x5c1b0a})=>{const _0x27f430=_0x9b4388;_0x5c1b0a===_0x27f430(0x348)?await _0x2285a6():_0x5c1b0a===_0x27f430(0x28b)?await _0x51f850():_0x5c1b0a==='delete'&&await _0x3db312();}});}const na=_0x1ed081(0x3f3);function ra(_0x47194c,_0x17a903){const _0x404f57=_0x1ed081;var _0x377d6d;let _0x4a8f9b=_0x47194c==null||(_0x377d6d=_0x47194c[_0x404f57(0x42d)]()['drawings'])==null?void 0x0:_0x377d6d[_0x17a903];return _0x4a8f9b?_0x4a8f9b[_0x404f57(0x29f)]===_0x1ef66e[_0x404f57(0x302)]?_0x4a8f9b['behindDoc']===_0x1fdcb8[_0x404f57(0x1f9)]?_0x4b1e43[_0x404f57(0x318)]:_0x4b1e43[_0x404f57(0x3c0)]:_0x4a8f9b['layoutType']===_0x1ef66e[_0x404f57(0x2af)]?_0x4b1e43['WRAP_SQUARE']:_0x4a8f9b[_0x404f57(0x29f)]===_0x1ef66e[_0x404f57(0x2b6)]?_0x4b1e43[_0x404f57(0x2b6)]:_0x4b1e43[_0x404f57(0x211)]:_0x4b1e43[_0x404f57(0x211)];}function ia(_0x2e2e1b){const _0x448ecc=_0x1ed081;let _0x2288f9=_0x5c5c3d(_0xd408b5),_0x2c8ae5=_0x2f0836(()=>_0x2288f9[_0x448ecc(0x43b)],_0x2288f9[_0x448ecc(0x285)](),!0x1,[_0x2288f9]),_0x210a16=_0x2e2e1b['popup'][_0x448ecc(0x3b6)];return _0x2c8ae5?_0x20be44(aa,{..._0x210a16,'canvasElement':_0x2e2e1b[_0x448ecc(0x2a4)]['canvasElement']}):null;}function aa(_0x4c80d7){const _0x1deb25=_0x1ed081;let _0x2f6728=_0x5c5c3d(_0x582229),_0x4ad36a=_0x5c5c3d(_0x4b811c),_0x3e2019=_0x5c5c3d(_0x39396e),_0x4cf841=_0x5c5c3d(_0x357598),{unitId:_0x3ca729,subUnitId:_0x4907b3,drawingId:_0x3621ea,shapeType:_0x3a0c37}=_0x4c80d7,[_0x4e6329,_0x514227]=_0x5d63ba(_0x4c80d7[_0x1deb25(0x2ba)]),_0x45c107=_0x4cf841[_0x1deb25(0x3d3)](_0x3ca729,_0x436dd9[_0x1deb25(0x335)])??void 0x0,[_0x2788b3,_0x5c6185]=_0x5d63ba(()=>ra(_0x45c107,_0x3621ea)),_0x3e370e=_0x108bd4(()=>_0x1257eb(_0x4e6329),[_0x4e6329]),_0x4d0f7c=_0x108bd4(()=>_0x11d450(_0x4e6329),[_0x4e6329]);_0x3e40cc(()=>{const _0x3e4b22=_0x1deb25;let _0x1e6e3b=_0x2f6728[_0x3e4b22(0x320)](_0x12ea30=>{if(_0x12ea30['id']!==_0xbcf5de['id'])return;let _0x2861be=_0x3e2019['getShapeDataById'](_0x3ca729,_0x4907b3,_0x3621ea);_0x2861be&&_0x514227(_0x2861be);});return()=>_0x1e6e3b[_0x3e4b22(0x208)]();},[_0x2f6728,_0x3e2019,_0x3621ea,_0x4907b3,_0x3ca729]);let _0x40e6b5=_0x5d8176=>{_0x514227(_0x2011a1=>({..._0x2011a1,..._0x5d8176}));},_0x1cceac=_0x31f6a1=>{const _0x355aa9=_0x1deb25;let _0x37c083=_0x4aa220(_0x4e6329,_0x31f6a1);zr(_0x2f6728,_0x3ca729,_0x4907b3,_0x3621ea,{'oldShapeData':{'shapeText':_0x4e6329[_0x355aa9(0x280)]}},_0x37c083),_0x40e6b5(_0x37c083);},_0x876ffa=_0x17e1f3=>{const _0x3e7238=_0x1deb25;_0x5c6185(_0x17e1f3),_0x2f6728[_0x3e7238(0x402)](_0xdbdd89['id'],{'unitId':_0x3ca729,'subUnitId':_0x4907b3,'drawings':[{'unitId':_0x3ca729,'subUnitId':_0x4907b3,'drawingId':_0x3621ea}],'wrappingStyle':_0x17e1f3});},_0x51c364=_0x4f9d08({'hostType':_0x436dd9[_0x1deb25(0x335)],'unitId':_0x3ca729,'subUnitId':_0x4907b3,'shapeId':_0x3621ea,'shapeData':_0x4e6329,'onUpdateBinding':_0x242ab5=>{let _0x325095={'formulaBinding':_0x242ab5};zr(_0x2f6728,_0x3ca729,_0x4907b3,_0x3621ea,{'oldShapeData':{'formulaBinding':_0x4e6329['formulaBinding']}},_0x325095),_0x40e6b5(_0x325095);}}),_0x5af67a=[{'label':_0x4ad36a['t']('docs-shape-ui.textWrap.inline'),'value':_0x4b1e43[_0x1deb25(0x211)],'icon':_0x20be44(_0x1a2dfc,{})},{'label':_0x4ad36a['t'](_0x1deb25(0x23d)),'value':_0x4b1e43[_0x1deb25(0x2af)],'icon':_0x20be44(_0x1a2dfc,{})},{'label':_0x4ad36a['t'](_0x1deb25(0x351)),'value':_0x4b1e43[_0x1deb25(0x2b6)],'icon':_0x20be44(_0x1a2dfc,{})},{'label':_0x4ad36a['t'](_0x1deb25(0x3c4)),'value':_0x4b1e43[_0x1deb25(0x318)],'icon':_0x20be44(_0x1a2dfc,{})},{'label':_0x4ad36a['t']('docs-shape-ui.textWrap.inFrontText'),'value':_0x4b1e43['IN_FRONT_OF_TEXT'],'icon':_0x20be44(_0x1a2dfc,{})}];return _0x56d981(_0x29f7de,{'children':[_0x20be44(_0x28d84d,{'canvasElement':_0x4c80d7[_0x1deb25(0x331)],'shapeData':_0x4e6329,'shapeType':_0x3a0c37,'textStyle':{'ff':_0x127ad4[_0x1deb25(0x280)]['fontFamily'],'fs':_0x127ad4[_0x1deb25(0x280)]['fontSize'],'cl':{'rgb':_0x127ad4[_0x1deb25(0x280)][_0x1deb25(0x266)]},..._0x3e370e},'textModel':_0x4d0f7c?{'ha':_0x4d0f7c['ha']??_0x2381fc['LEFT'],'va':_0x4d0f7c['va']??_0x36ee41['TOP']}:null,'wrappingStyle':_0x2788b3,'wrappingStyleOptions':_0x5af67a,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x127ad4[_0x1deb25(0x329)],'defaultGradientEndColor':_0x127ad4['gradientEndColor'],'defaultStrokeColor':_0x127ad4['stroke'],'extensionGroups':_0x51c364['extensionGroups'],'floatingObjectToolbarPosition':_0x2b3178[_0x1deb25(0x366)],'onUpdateShapeData':(_0x6c1bd1,_0x18c35a)=>{zr(_0x2f6728,_0x3ca729,_0x4907b3,_0x3621ea,_0x6c1bd1,_0x18c35a),_0x18c35a&&_0x40e6b5(_0x18c35a);},'onUpdateText':_0x1cceac,'onUpdateWrappingStyle':_0xa39d93=>_0x876ffa(_0xa39d93),'onOpenPanel':()=>{const _0x318e5e=_0x1deb25;_0x2f6728[_0x318e5e(0x402)](q['id'],{'unitId':_0x3ca729,'subUnitId':_0x4907b3,'drawingId':_0x3621ea});},'onDelete':()=>{_0x2f6728['executeCommand'](_0x3723c7['id'],{'unitId':_0x3ca729,'drawings':[{'unitId':_0x3ca729,'subUnitId':_0x4907b3,'drawingId':_0x3621ea}]});}}),_0x51c364[_0x1deb25(0x339)]]});}function oa({variant:_0x50da5f,extend:_0x50a243,..._0x2c3556}){const _0x18dd02=_0x1ed081;let _0x52fdcc=_0x20be44(_0x18dd02(0x32f),{'x':'7','y':'5.5','width':'6','height':'9','rx':'1','fill':_0x18dd02(0x3d9),'fillOpacity':_0x18dd02(0x3a1),'stroke':_0x18dd02(0x3d9),'strokeWidth':_0x18dd02(0x3d4)});return _0x56d981(_0x18dd02(0x38c),{'aria-hidden':'true','fill':_0x18dd02(0x224),'height':'1em','viewBox':_0x18dd02(0x3e7),'width':_0x18dd02(0x39a),..._0x2c3556,'children':[_0x50da5f===_0x18dd02(0x24f)&&_0x56d981(_0x29f7de,{'children':[_0x20be44(_0x18dd02(0x368),{'d':_0x18dd02(0x295),'stroke':_0x18dd02(0x3d9),'strokeLinecap':_0x18dd02(0x3e4),'strokeWidth':'1.2'}),_0x20be44(_0x18dd02(0x32f),{'x':'8','y':'7','width':'4','height':'6','rx':'0.8','fill':'currentColor','fillOpacity':_0x18dd02(0x3a1),'stroke':_0x18dd02(0x3d9),'strokeWidth':_0x18dd02(0x3d4)})]}),_0x50da5f==='square'&&_0x56d981(_0x29f7de,{'children':[_0x20be44(_0x18dd02(0x368),{'d':_0x18dd02(0x253),'stroke':'currentColor','strokeLinecap':_0x18dd02(0x3e4),'strokeWidth':_0x18dd02(0x3d4)}),_0x52fdcc]}),_0x50da5f===_0x18dd02(0x307)&&_0x56d981(_0x29f7de,{'children':[_0x20be44(_0x18dd02(0x368),{'d':_0x18dd02(0x3eb),'stroke':_0x18dd02(0x3d9),'strokeLinecap':_0x18dd02(0x3e4),'strokeWidth':_0x18dd02(0x3d4)}),_0x52fdcc]}),_0x50da5f===_0x18dd02(0x3dd)&&_0x56d981(_0x29f7de,{'children':[_0x52fdcc,_0x20be44(_0x18dd02(0x368),{'d':_0x18dd02(0x3b2),'stroke':_0x18dd02(0x3d9),'strokeLinecap':_0x18dd02(0x3e4),'strokeWidth':_0x18dd02(0x3d4)})]}),_0x50da5f===_0x18dd02(0x3bc)&&_0x56d981(_0x29f7de,{'children':[_0x20be44('path',{'d':_0x18dd02(0x3b2),'stroke':'currentColor','strokeLinecap':'round','strokeWidth':_0x18dd02(0x3d4)}),_0x20be44(_0x18dd02(0x32f),{'x':'7','y':_0x18dd02(0x1fe),'width':'6','height':'9','rx':'1','fill':_0x18dd02(0x3d9)})]})]});}const sa=_0x3e993f=>_0x57608f=>_0x20be44(oa,{..._0x57608f,'variant':_0x3e993f}),ca={'DocsShapeWrapInlineIcon':sa(_0x1ed081(0x24f)),'DocsShapeWrapSquareIcon':sa(_0x1ed081(0x215)),'DocsShapeWrapTopBottomIcon':sa(_0x1ed081(0x307)),'DocsShapeWrapBehindTextIcon':sa(_0x1ed081(0x3dd)),'DocsShapeWrapInFrontOfTextIcon':sa(_0x1ed081(0x3bc))},la=_0x470956(()=>{const _0x4f9c79=_0x1ed081;let _0x3d8ce2=_0x5c5c3d(Q),_0x200ebd=_0x5c5c3d(_0x39396e),_0x194110=_0x5c5c3d(_0x4cc4c4),_0x177b7a=_0x5c5c3d(_0x582229),_0x48eeef=_0x108bd4(()=>({'getShapeModel':(_0x10c556,_0x38f71f,_0x41126c)=>_0x200ebd['getShapeModel'](_0x10c556,_0x38f71f,_0x41126c),'getShapeData':(_0x943ca,_0x34f84d,_0x3305a9)=>_0x200ebd[_0x4f9c79(0x2e4)](_0x943ca,_0x34f84d,_0x3305a9),'getDrawingTransform':(_0x1be73d,_0x26b496,_0x1e4888)=>{const _0x3e1425=_0x4f9c79;let _0x2cc0eb=_0x194110[_0x3e1425(0x207)]({'unitId':_0x1be73d,'subUnitId':_0x26b496,'drawingId':_0x1e4888});return _0x2cc0eb==null?void 0x0:_0x2cc0eb[_0x3e1425(0x35d)];},'updateShapeText':({unitId:_0x1105a2,shapeId:_0x399280,shapeText:_0x4a9d10,oldShapeText:_0x71f6ca})=>{const _0x222e07=_0x4f9c79;_0x177b7a[_0x222e07(0x402)](_0x46dc48['id'],{'unitId':_0x1105a2,'shapeId':_0x399280,'shapeData':{'shapeText':_0x4a9d10},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x71f6ca}}});},'updateHostSize':({unitId:_0x483c72,subUnitId:_0x490992,shapeId:_0x17b9ad,width:_0x559e2d,height:_0xa25a2c})=>{const _0x2a2487=_0x4f9c79;_0x177b7a[_0x2a2487(0x402)](_0x53a1f6['id'],{'unitId':_0x483c72,'subUnitId':_0x490992,'drawings':[{'drawingId':_0x17b9ad,'key':_0x2a2487(0x1e9),'value':{'width':_0x559e2d,'height':_0xa25a2c}}]});},'allowHostSizeShrink':({unitId:_0x5e3d20,subUnitId:_0x34183d,shapeId:_0x66d5ee})=>_0x345c86(_0x200ebd[_0x4f9c79(0x2e4)](_0x5e3d20,_0x34183d,_0x66d5ee))}),[_0x177b7a,_0x200ebd,_0x194110]),_0x5f524e=_0x108bd4(()=>({'viewportKeys':{'main':_0x384053['VIEW_MAIN']}}),[]);return _0x20be44(_0x3e1e99,{'adapter':_0x48eeef,'editingService':_0x3d8ce2,'editorUnitId':br,'positionOptions':_0x5f524e});});let ua=class extends _0x5721ff{constructor(_0xcab961,_0x57e888){const _0x4d9f30=_0x1ed081;super(),this[_0x4d9f30(0x289)]=_0xcab961,this['_iconManager']=_0x57e888,this[_0x4d9f30(0x205)](),this[_0x4d9f30(0x347)]();}['_registerIcons'](){const _0x3cf4c1=_0x1ed081;this['_iconManager'][_0x3cf4c1(0x2c5)](_0x3cf4c1(0x22c))||this['disposeWithMe'](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)]({'ObjectLayersIcon':_0x2d9e5a})),this[_0x3cf4c1(0x309)][_0x3cf4c1(0x2c5)]('BottomIcon')||this[_0x3cf4c1(0x2fd)](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)]({'BottomIcon':_0x10f104})),this[_0x3cf4c1(0x309)][_0x3cf4c1(0x2c5)](_0x3cf4c1(0x241))||this[_0x3cf4c1(0x2fd)](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)]({'MoveDownIcon':_0x863eb7})),this[_0x3cf4c1(0x309)]['has'](_0x3cf4c1(0x384))||this['disposeWithMe'](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)]({'MoveUpIcon':_0x1fa84b})),this['_iconManager'][_0x3cf4c1(0x2c5)](_0x3cf4c1(0x2dd))||this[_0x3cf4c1(0x2fd)](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)]({'ShapeFormatSettingIcon':_0x51d8f6})),this[_0x3cf4c1(0x309)][_0x3cf4c1(0x2c5)](_0x3cf4c1(0x352))||this[_0x3cf4c1(0x2fd)](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)]({'TopmostIcon':_0x88dd38})),this[_0x3cf4c1(0x2fd)](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)](ca));}[_0x1ed081(0x347)](){const _0x10b93c=_0x1ed081;this['disposeWithMe'](this['_componentManager'][_0x10b93c(0x314)](K,ea)),this[_0x10b93c(0x3d1)](),this[_0x10b93c(0x33b)](),this['disposeWithMe'](this[_0x10b93c(0x289)]['register'](Hr,Jr)),this['disposeWithMe'](this[_0x10b93c(0x289)][_0x10b93c(0x314)](Vr,Yr)),this[_0x10b93c(0x2fd)](this[_0x10b93c(0x289)][_0x10b93c(0x314)](Ur,Xr)),this['disposeWithMe'](this[_0x10b93c(0x289)][_0x10b93c(0x314)](Wr,Zr)),this[_0x10b93c(0x2fd)](this['_componentManager']['register'](Gr,Qr)),this[_0x10b93c(0x2fd)](this[_0x10b93c(0x289)][_0x10b93c(0x314)](xr,_0x1ff31b)),this[_0x10b93c(0x270)](),this[_0x10b93c(0x289)][_0x10b93c(0x410)](_0x3de7d6)||this[_0x10b93c(0x2fd)](this['_componentManager'][_0x10b93c(0x314)](_0x3de7d6,Mr)),this[_0x10b93c(0x2fd)](this[_0x10b93c(0x289)][_0x10b93c(0x314)](Sr,la));}['_registerObjectListPanel'](){const _0x5a0444=_0x1ed081;this[_0x5a0444(0x2fd)](this['_componentManager'][_0x5a0444(0x314)](yr,Yi));}['_registerFloatingToolbar'](){const _0x2846e8=_0x1ed081;this[_0x2846e8(0x2fd)](this[_0x2846e8(0x289)][_0x2846e8(0x314)](na,ta));}[_0x1ed081(0x270)](){const _0x3f4371=_0x1ed081;this['disposeWithMe'](this[_0x3f4371(0x289)][_0x3f4371(0x314)](Dr,Wi)),this['disposeWithMe'](this[_0x3f4371(0x289)]['register'](Or,Gi));}};ua=Y([J(0x0,_0x4e9d1c(_0x1bfb02)),J(0x1,_0x4e9d1c(_0x2a264a))],ua);let da=class extends _0x5721ff{constructor(_0x2d3cd1,_0x16d447,_0xd7c20f,_0x51381d,_0x1796aa,_0x7b7379,_0xa1e322,_0x1f6f4b,_0x4e02f3,_0x50f69f,_0x5b27e8,_0xe4f268,_0x29ef58){const _0x1b0f72=_0x1ed081;super(),this[_0x1b0f72(0x221)]=_0x2d3cd1,this['_sidebarService']=_0x16d447,this[_0x1b0f72(0x3c5)]=_0xd7c20f,this[_0x1b0f72(0x26c)]=_0x51381d,this[_0x1b0f72(0x437)]=_0x1796aa,this[_0x1b0f72(0x22d)]=_0x7b7379,this[_0x1b0f72(0x291)]=_0xa1e322,this[_0x1b0f72(0x361)]=_0x1f6f4b,this['_renderManagerService']=_0x4e02f3,this[_0x1b0f72(0x2ad)]=_0x50f69f,this[_0x1b0f72(0x230)]=_0x5b27e8,this[_0x1b0f72(0x382)]=_0xe4f268,this[_0x1b0f72(0x3e3)]=_0x29ef58,Z(this,_0x1b0f72(0x297),null),Z(this,_0x1b0f72(0x225),null),Z(this,_0x1b0f72(0x429),!0x1),Z(this,'_shapeEditPanelVersion',0x0),Z(this,_0x1b0f72(0x334),new Map()),Z(this,_0x1b0f72(0x284),new Map()),this[_0x1b0f72(0x218)](),this[_0x1b0f72(0x2fd)](this[_0x1b0f72(0x221)][_0x1b0f72(0x431)](_0x436dd9['UNIVER_DOC'])[_0x1b0f72(0x251)](_0x2da5ab=>{const _0x15b7d4=_0x1b0f72;if(!_0x2da5ab){var _0x47831b;(_0x47831b=this[_0x15b7d4(0x297)])==null||_0x47831b[_0x15b7d4(0x208)]();}})),this['_registerOperations'](),this[_0x1b0f72(0x2fd)](_0x40ac78(this[_0x1b0f72(0x283)],_0x436dd9[_0x1b0f72(0x335)],_0x3cf0e3=>this[_0x1b0f72(0x3c9)](_0x3cf0e3))),this[_0x1b0f72(0x2fd)](this[_0x1b0f72(0x230)]['editingParams$'][_0x1b0f72(0x251)](_0x32d4c9=>{const _0x12c4bc=_0x1b0f72;_0x32d4c9&&this[_0x12c4bc(0x272)](void 0x0,!0x0);})),this[_0x1b0f72(0x2fd)](this['_permissionService']['permissionPointUpdate$'][_0x1b0f72(0x251)](()=>{const _0x1fb391=_0x1b0f72;this['_drawingManagerService'][_0x1fb391(0x2a0)]()[_0x1fb391(0x3cf)](_0x2b0298=>_0x2b0298[_0x1fb391(0x234)]===_0x690970['DRAWING_SHAPE']&&this[_0x1fb391(0x221)][_0x1fb391(0x39e)](_0x2b0298[_0x1fb391(0x355)])===_0x436dd9[_0x1fb391(0x335)]&&!this[_0x1fb391(0x436)](_0x2b0298[_0x1fb391(0x355)],_0x2b0298[_0x1fb391(0x210)]))&&(this['_clearPopups'](void 0x0,!0x0),this[_0x1fb391(0x2b4)]());}));}['getShapePopupMenus'](_0x3965da,_0x47130c,_0x162a4e,_0x245778){const _0x330ed6=_0x1ed081;return[{'label':'docs-shape-ui.openPanel','index':0x0,'commandId':q['id'],'commandParams':{'unitId':_0x3965da,'subUnitId':_0x47130c,'drawingId':_0x162a4e},'disable':_0x245778===_0x690970[_0x330ed6(0x20a)]},{'label':_0x330ed6(0x31c),'index':0x1,'commandId':_0x3723c7['id'],'commandParams':{'unitId':_0x3965da,'drawings':[{'unitId':_0x3965da,'subUnitId':_0x47130c,'drawingId':_0x162a4e}]},'disable':!0x1},{'label':_0x330ed6(0x2e5),'index':0x2,'commandId':Ai['id'],'commandParams':{'unitId':_0x3965da,'subUnitId':_0x47130c,'drawingId':_0x162a4e},'disable':!0x1}];}[_0x1ed081(0x218)](){const _0x1f977a=_0x1ed081;this['_menuManagerService'][_0x1f977a(0x442)](Di);}[_0x1ed081(0x344)](_0x367443,_0xb71b7,_0x43b40e){const _0x3db491=_0x1ed081;let _0x18016a=this[_0x3db491(0x26c)]['getShapeTypeById'](_0x367443,_0xb71b7,_0x43b40e),_0x504bc8=this[_0x3db491(0x26c)][_0x3db491(0x2e4)](_0x367443,_0xb71b7,_0x43b40e);return _0x18016a===void 0x0||_0x504bc8===void 0x0?null:{'shapeData':_0x504bc8,'shapeId':_0x43b40e,'shapeType':_0x18016a,'unitId':_0x367443,'subUnitId':_0xb71b7,'version':this[_0x3db491(0x444)],'disableShapeOption':!0x1};}[_0x1ed081(0x272)](_0x1a4021,_0x274247=!0x1){const _0x4fca42=_0x1ed081;if(_0x1a4021==null){[...this[_0x4fca42(0x334)][_0x4fca42(0x303)]()]['forEach'](_0x4caf3e=>this['_clearPopups'](_0x4caf3e,_0x274247));return;}let _0x3396fc=this[_0x4fca42(0x334)][_0x4fca42(0x410)](_0x1a4021);if(_0x3396fc){for(let _0x36387c=_0x3396fc[_0x4fca42(0x43c)]-0x1;_0x36387c>=0x0;--_0x36387c){let _0x35c418=_0x3396fc[_0x36387c];(_0x274247||_0x35c418[_0x4fca42(0x1f2)]())&&(_0x35c418[_0x4fca42(0x208)](),_0x3396fc[_0x4fca42(0x299)](_0x36387c,0x1));}_0x3396fc[_0x4fca42(0x43c)]===0x0&&(this[_0x4fca42(0x334)][_0x4fca42(0x39f)](_0x1a4021),this[_0x4fca42(0x284)][_0x4fca42(0x39f)](_0x1a4021));}}['_getDisposePopups'](_0x234b05){const _0x1d9027=_0x1ed081;let _0x537f06=this[_0x1d9027(0x334)][_0x1d9027(0x410)](_0x234b05);if(_0x537f06)return _0x537f06;let _0x3c64d6=[];return this['_disposePopupsByUnit']['set'](_0x234b05,_0x3c64d6),_0x3c64d6;}[_0x1ed081(0x3c9)](_0x26eb99){const _0x341660=_0x1ed081;var _0x5b7efe;let _0x1d5793=new _0x153c14(),_0x27a477=(_0x5b7efe=this[_0x341660(0x283)]['getAllRenderersOfType'](_0x436dd9[_0x341660(0x335)])[_0x341660(0x2ec)](_0x3dc3ff=>_0x3dc3ff[_0x341660(0x27e)][_0x341660(0x36f)]()===_0x26eb99))==null?void 0x0:_0x5b7efe[_0x341660(0x355)];return _0x27a477?(_0x1d5793[_0x341660(0x28d)](_0x26eb99[_0x341660(0x200)]['subscribe'](()=>this[_0x341660(0x245)](_0x26eb99,_0x27a477))),_0x1d5793[_0x341660(0x28d)](_0x26eb99[_0x341660(0x300)][_0x341660(0x251)](()=>{const _0x3688b1=_0x341660;this[_0x3688b1(0x272)](_0x27a477),queueMicrotask(()=>{const _0x1b1d9=_0x3688b1;_0x26eb99[_0x1b1d9(0x23a)]()[_0x1b1d9(0x1e9)]>0x0||(this[_0x1b1d9(0x2ad)][_0x1b1d9(0x3b5)](_0x5ad933,!0x1),this['_drawingManagerService'][_0x1b1d9(0x1ea)](null));});})),_0x1d5793['add'](_0x26eb99[_0x341660(0x35b)][_0x341660(0x251)](()=>{this['_clearPopups'](_0x27a477,!0x0);})),_0x1d5793):_0x1d5793;}[_0x1ed081(0x245)](_0x1937a2,_0x12f8cd){const _0x245f48=_0x1ed081;let _0x35895d=_0x1937a2['getSelectedObjectMap']();if(this[_0x245f48(0x429)]){this['_clearPopups'](_0x12f8cd,!0x0);return;}if(_0x35895d[_0x245f48(0x1e9)]>0x1){this[_0x245f48(0x272)](_0x12f8cd);return;}let _0x443689=_0x35895d[_0x245f48(0x2c2)]()['next']()[_0x245f48(0x439)];if(!_0x443689){this['_clearPopups'](_0x12f8cd);return;}let _0x3e37e6=this[_0x245f48(0x291)]['getDrawingOKey'](_0x443689[_0x245f48(0x1e8)]);if(!_0x3e37e6||_0x3e37e6[_0x245f48(0x234)]!==_0x690970[_0x245f48(0x20d)]){this[_0x245f48(0x272)](_0x12f8cd);return;}let {unitId:_0x5707f8,subUnitId:_0x5df6d3,drawingId:_0x44490a}=_0x3e37e6;if(!this[_0x245f48(0x436)](_0x5707f8,_0x44490a)){this[_0x245f48(0x272)](_0x12f8cd,!0x0);return;}let _0x52f5a5=this[_0x245f48(0x344)](_0x5707f8,_0x5df6d3,_0x44490a);if(!_0x52f5a5){this[_0x245f48(0x272)](_0x12f8cd);return;}let _0x50bea7=this[_0x245f48(0x334)][_0x245f48(0x410)](_0x12f8cd),_0x97d311=_0x5707f8+':'+_0x5df6d3+':'+_0x44490a;if(this[_0x245f48(0x284)]['get'](_0x12f8cd)===_0x97d311&&_0x50bea7!=null&&_0x50bea7[_0x245f48(0x43c)])return;this[_0x245f48(0x272)](_0x12f8cd);let _0x349f52=this[_0x245f48(0x283)]['getRenderUnitById'](_0x5707f8),_0x2b08a1=((_0x349f52==null?void 0x0:_0x349f52[_0x245f48(0x380)])===!0x1?_0x349f52['with'](_0xe084e0):this[_0x245f48(0x361)])[_0x245f48(0x28e)](_0x443689,this[_0x245f48(0x41b)](_0x52f5a5,()=>this[_0x245f48(0x272)](_0x12f8cd,!0x0)),_0x5707f8);this[_0x245f48(0x2fd)](_0x2b08a1),this[_0x245f48(0x44c)](_0x12f8cd)['push'](_0x2b08a1),this[_0x245f48(0x284)]['set'](_0x12f8cd,_0x97d311),this['_drawingManagerService'][_0x245f48(0x2a0)]()[_0x245f48(0x3cf)](_0x32965=>_0x32965[_0x245f48(0x355)]===_0x5707f8&&_0x32965[_0x245f48(0x203)]===_0x5df6d3&&_0x32965[_0x245f48(0x210)]===_0x44490a)||this['_drawingManagerService'][_0x245f48(0x1ea)]([{'unitId':_0x5707f8,'subUnitId':_0x5df6d3,'drawingId':_0x44490a}]);}[_0x1ed081(0x41b)](_0xd0a395,_0x2d5185){const _0x186cf8=_0x1ed081;let {unitId:_0x4aff24,subUnitId:_0x2162e5,shapeId:_0xa20206}=_0xd0a395,_0x370ab5={'hostType':_0x436dd9[_0x186cf8(0x335)],'unitId':_0x4aff24,'subUnitId':_0x2162e5,'shapeId':_0xa20206};return{'componentKey':na,'direction':'top-center','offset':[0x0,0x8],'extraProps':{'shapeType':_0xd0a395[_0x186cf8(0x2e0)],'onText':()=>{const _0x1c1456=_0x186cf8;_0x2d5185(),this[_0x1c1456(0x3e3)][_0x1c1456(0x44d)](_0x1c1456(0x348),_0x370ab5);},'onStyle':()=>{const _0x4ebf1c=_0x186cf8;_0x2d5185(),this[_0x4ebf1c(0x3e3)][_0x4ebf1c(0x44d)]('style',_0x370ab5);},'onDelete':()=>this['_commandService'][_0x186cf8(0x402)](_0x3723c7['id'],{'unitId':_0x4aff24,'drawings':[{'unitId':_0x4aff24,'subUnitId':_0x2162e5,'drawingId':_0xa20206}]})}};}[_0x1ed081(0x436)](_0x5d9fa8,_0x20020e){const _0x1a61c3=_0x1ed081;let _0x57bc43=this['_univerInstanceService'][_0x1a61c3(0x3d3)](_0x5d9fa8,_0x436dd9[_0x1a61c3(0x335)]);if(!_0x57bc43)return!0x1;let _0x8e42d7=_0x1fc7f8(_0x57bc43,_0x20020e);return _0x47555f(this[_0x1a61c3(0x382)],_0x5d9fa8,[..._0x1a179a(_0x57bc43,_0x8e42d7,_0x1a61c3(0x2fa),_0x20020e),_0x5462ea(_0x8e42d7,_0x1a61c3(0x2fa),_0x20020e)]);}['_registerOperations'](){const _0x34597a=_0x1ed081;this[_0x34597a(0x2fd)](this[_0x34597a(0x22d)]['onCommandExecuted'](_0x1527c0=>{const _0x171ce1=_0x34597a;if(_0x1527c0['id']===q['id']){let {unitId:_0x479a3d,subUnitId:_0x1dbc80,drawingId:_0x3429ef}=_0x1527c0[_0x171ce1(0x41e)];this[_0x171ce1(0x444)]+=0x1,this[_0x171ce1(0x225)]=this[_0x171ce1(0x344)](_0x479a3d,_0x1dbc80,_0x3429ef),this[_0x171ce1(0x272)](void 0x0,!0x0),this[_0x171ce1(0x2d2)]();}if(_0x1527c0['id']===Ai['id']&&(this[_0x171ce1(0x225)]=null,this[_0x171ce1(0x2b4)]()),_0x1527c0['id']===_0xbcf5de['id']){var _0x3d4b49;let {unitId:_0x4b709a,shapeId:_0x9f20a8}=_0x1527c0[_0x171ce1(0x41e)];if(((_0x3d4b49=this[_0x171ce1(0x225)])==null?void 0x0:_0x3d4b49[_0x171ce1(0x317)])===_0x9f20a8){let _0x5c263b=this[_0x171ce1(0x344)](_0x4b709a,this[_0x171ce1(0x225)]['subUnitId'],_0x9f20a8);_0x5c263b&&(this[_0x171ce1(0x444)]+=0x1,_0x5c263b[_0x171ce1(0x44b)]=this['_shapeEditPanelVersion'],this[_0x171ce1(0x225)]=_0x5c263b,this['_isOpenedShapeEditPanel']&&this[_0x171ce1(0x2d2)]());}}})),this['disposeWithMe'](this[_0x34597a(0x291)][_0x34597a(0x273)][_0x34597a(0x251)](_0x4a96dd=>{const _0x3dd527=_0x34597a;if(!this[_0x3dd527(0x429)])return;if(_0x4a96dd[_0x3dd527(0x43c)]===0x0){this[_0x3dd527(0x225)]=null,this[_0x3dd527(0x2b4)]();return;}if(_0x4a96dd[_0x3dd527(0x43c)]===0x1&&_0x4a96dd[0x0]['drawingType']===_0x690970[_0x3dd527(0x20d)]&&(this[_0x3dd527(0x444)]+=0x1,this[_0x3dd527(0x225)]=this[_0x3dd527(0x344)](_0x4a96dd[0x0][_0x3dd527(0x355)],_0x4a96dd[0x0][_0x3dd527(0x203)],_0x4a96dd[0x0][_0x3dd527(0x210)]),this[_0x3dd527(0x225)])){this['_openShapeEditPanel']();return;}let _0x307908=_0x4a96dd[_0x3dd527(0x252)](_0x4be853=>_0x4be853['drawingType']===_0x690970[_0x3dd527(0x20d)]);if(this['_shapeEditPanelVersion']+=0x1,this[_0x3dd527(0x225)]=this[_0x3dd527(0x344)](_0x4a96dd[0x0][_0x3dd527(0x355)],_0x4a96dd[0x0][_0x3dd527(0x203)],_0x4a96dd[0x0][_0x3dd527(0x210)]),this['_activeShapeInfo']&&_0x4a96dd[_0x3dd527(0x43c)]>0x1&&_0x307908[_0x3dd527(0x43c)]===_0x4a96dd['length']){this[_0x3dd527(0x2d2)]();return;}if(this[_0x3dd527(0x225)]&&_0x307908['length']!==_0x4a96dd['length']){this[_0x3dd527(0x225)][_0x3dd527(0x2cc)]=!0x0,this['_openShapeEditPanel']();return;}this[_0x3dd527(0x2b4)]();}));}[_0x1ed081(0x2d2)](){const _0xd810a6=_0x1ed081;this[_0xd810a6(0x225)]&&(this[_0xd810a6(0x297)]=this['_sidebarService'][_0xd810a6(0x44d)]({'id':K,'header':{'title':this[_0xd810a6(0x437)]['t'](_0xd810a6(0x25b))},'width':0x184,'children':{'label':K,...this[_0xd810a6(0x225)]},'onClose':()=>{const _0x6eafea=_0xd810a6;this[_0x6eafea(0x291)]['focusDrawing'](null),this['_contextService'][_0x6eafea(0x3b5)](_0x5ad933,!0x1),this[_0x6eafea(0x297)]=null;}}),this[_0xd810a6(0x429)]=!0x0);}[_0x1ed081(0x2b4)](){const _0x4031ab=_0x1ed081;this[_0x4031ab(0x429)]=!0x1,this[_0x4031ab(0x2d3)][_0x4031ab(0x360)](K),this['_sidebarDisposable']=null,this['_contextService'][_0x4031ab(0x3b5)](_0x5ad933,!0x1),this[_0x4031ab(0x291)]['focusDrawing'](null);}};da=Y([J(0x0,_0x357598),J(0x1,_0x4e9d1c(_0x1357e7)),J(0x2,_0x206d0b),J(0x3,_0x4e9d1c(_0x39396e)),J(0x4,_0x4e9d1c(_0x4b811c)),J(0x5,_0x582229),J(0x6,_0x4cc4c4),J(0x7,_0x4e9d1c(_0xe084e0)),J(0x8,_0x1b5744),J(0x9,_0x268075),J(0xa,_0x4e9d1c(Q)),J(0xb,_0x49aab3),J(0xc,_0x4e9d1c(_0x1adc39))],da);const fa='docs-shape-contextual-ribbon';let pa=class extends _0x5721ff{constructor(_0x3e64be,_0x21d8ed,_0x1389f4,_0x276b7b,_0x3eb856,_0x5226df){const _0x144031=_0x1ed081;super(),this[_0x144031(0x3c5)]=_0x3e64be,this[_0x144031(0x240)]=_0x21d8ed,this[_0x144031(0x291)]=_0x1389f4,this[_0x144031(0x221)]=_0x276b7b,this[_0x144031(0x283)]=_0x3eb856,this[_0x144031(0x22f)]=_0x5226df,Z(this,_0x144031(0x2aa),!0x1),this[_0x144031(0x3c5)]['mergeMenu'](Ei),this[_0x144031(0x2fd)](_0xfac87e(this[_0x144031(0x291)][_0x144031(0x273)][_0x144031(0x251)](()=>this[_0x144031(0x2c7)]()))),this[_0x144031(0x2c7)]();}['dispose'](){const _0xaae6e6=_0x1ed081;this['_shapeFloatingToolbarService'][_0xaae6e6(0x2d1)](!0x1,fa),this['_hide'](),super[_0xaae6e6(0x208)]();}[_0x1ed081(0x2c7)](){const _0x5519e2=_0x1ed081;var _0x290cc5;let _0x289b3e=this[_0x5519e2(0x291)][_0x5519e2(0x2a0)](),_0xb49721=_0x289b3e[_0x5519e2(0x43c)]===0x1?_0x289b3e[0x0]:void 0x0;if((_0xb49721==null?void 0x0:_0xb49721[_0x5519e2(0x234)])!==_0x690970[_0x5519e2(0x20d)]||this[_0x5519e2(0x221)][_0x5519e2(0x39e)](_0xb49721[_0x5519e2(0x355)])!==_0x436dd9['UNIVER_DOC']){this[_0x5519e2(0x22f)]['setFallbackVisible'](!0x1,fa),this[_0x5519e2(0x409)]();return;}let _0x5acf84=(_0x290cc5=this[_0x5519e2(0x283)]['getRenderUnitById'](_0xb49721['unitId']))==null?void 0x0:_0x290cc5[_0x5519e2(0x27c)][_0x5519e2(0x313)](),_0x1c1626=_0x557f66(_0x5acf84)===_0x5519e2(0x277);if(this[_0x5519e2(0x22f)][_0x5519e2(0x2d1)](_0x1c1626,fa),_0x1c1626){this[_0x5519e2(0x409)]();return;}this[_0x5519e2(0x2aa)]||(this[_0x5519e2(0x2aa)]=!0x0,this['_ribbonService'][_0x5519e2(0x1f1)](vr,{'activate':!0x0}));}[_0x1ed081(0x409)](){const _0x3aee19=_0x1ed081;this[_0x3aee19(0x2aa)]&&(this[_0x3aee19(0x2aa)]=!0x1,this[_0x3aee19(0x240)][_0x3aee19(0x268)](vr),this[_0x3aee19(0x240)]['setCollapsedIds']([]));}};pa=Y([J(0x0,_0x206d0b),J(0x1,_0x356848),J(0x2,_0x4cc4c4),J(0x3,_0x357598),J(0x4,_0x1b5744),J(0x5,_0x4e9d1c(_0xd408b5))],pa);let ma=class extends _0x5721ff{constructor(_0x4ee64f,_0x27325b,_0x2bd32e,_0x314b79){const _0x184d98=_0x1ed081;super(),this['_commandService']=_0x4ee64f,this[_0x184d98(0x283)]=_0x27325b,this[_0x184d98(0x291)]=_0x2bd32e,this[_0x184d98(0x201)]=_0x314b79,this['_initialize']();}['_initialize'](){const _0xced8b7=_0x1ed081;this['disposeWithMe'](this[_0xced8b7(0x291)][_0xced8b7(0x294)][_0xced8b7(0x251)](_0x4736ba=>this['_insertShapes'](_0x4736ba))),this[_0xced8b7(0x2fd)](this[_0xced8b7(0x291)][_0xced8b7(0x256)][_0xced8b7(0x251)](_0xeb7279=>{const _0x43b070=_0xced8b7;_0xeb7279['forEach'](_0x5befed=>this[_0x43b070(0x2c3)](_0x5befed));})),this['disposeWithMe'](this[_0xced8b7(0x22d)][_0xced8b7(0x320)](_0x22812b=>{const _0x57351a=_0xced8b7;if(_0x22812b['id']!==_0xbcf5de['id'])return;let {unitId:_0x55387d,shapeId:_0x1a2c84}=_0x22812b[_0x57351a(0x41e)];this[_0x57351a(0x30b)]({'unitId':_0x55387d,'subUnitId':_0x55387d,'drawingId':_0x1a2c84});}));}[_0x1ed081(0x2dc)](_0x5eb2e8){const _0x3f3ba6=_0x1ed081;_0x5eb2e8[_0x3f3ba6(0x323)](_0x5ed9d2=>{const _0x5aa4fe=_0x3f3ba6;let _0x5558bf=this[_0x5aa4fe(0x375)](_0x5ed9d2[_0x5aa4fe(0x355)]);if(!_0x5558bf)return;let _0x4acad9=this['_drawingManagerService'][_0x5aa4fe(0x207)](_0x5ed9d2);(_0x4acad9==null?void 0x0:_0x4acad9[_0x5aa4fe(0x234)])===_0x690970[_0x5aa4fe(0x20d)]&&this[_0x5aa4fe(0x201)][_0x5aa4fe(0x2df)](_0x4acad9,_0x5558bf[_0x5aa4fe(0x27e)]);});}[_0x1ed081(0x2c3)](_0x27f83e){const _0x5e38e9=_0x1ed081;let _0x20f063=this['_drawingManagerService'][_0x5e38e9(0x207)](_0x27f83e);if((_0x20f063==null?void 0x0:_0x20f063['drawingType'])!==_0x690970[_0x5e38e9(0x20d)])return;let _0x3bc74e=this[_0x5e38e9(0x375)](_0x27f83e[_0x5e38e9(0x355)]);if(!_0x3bc74e||_0x20f063[_0x5e38e9(0x35d)]==null)return;let _0x4679a4=_0x54547b(_0x27f83e),_0x4b00c9=_0x3bc74e[_0x5e38e9(0x27e)][_0x5e38e9(0x3fa)](_0x4679a4);_0x4b00c9&&(_0x4b00c9[_0x5e38e9(0x430)](_0x20f063['srcRect']),_0x4b00c9[_0x5e38e9(0x29c)](_0x20f063['prstGeom']),_0x4b00c9[_0x5e38e9(0x2cf)](!0x0));}[_0x1ed081(0x30b)](_0x108e99){const _0x10dbbb=_0x1ed081;let _0x5ebc13=this[_0x10dbbb(0x375)](_0x108e99['unitId']);if(!_0x5ebc13)return;let _0x5ba902=_0x54547b(_0x108e99),_0x1f6e20=_0x5ebc13['scene']['getObjectIncludeInGroup'](_0x5ba902);_0x1f6e20&&(this[_0x10dbbb(0x201)][_0x10dbbb(0x21d)](_0x1f6e20),this[_0x10dbbb(0x201)][_0x10dbbb(0x40f)](_0x1f6e20,{'unitId':_0x108e99['unitId'],'subUnitId':_0x108e99[_0x10dbbb(0x203)],'shapeId':_0x108e99['drawingId']}),_0x1f6e20[_0x10dbbb(0x2cf)](!0x0));}[_0x1ed081(0x375)](_0x4e3cee){const _0x5bc1eb=_0x1ed081;if(_0x4e3cee==null)return null;let _0x3678f0=this[_0x5bc1eb(0x283)]['getRenderUnitById'](_0x4e3cee),_0x2b438c=_0x3678f0==null?void 0x0:_0x3678f0[_0x5bc1eb(0x27e)];return _0x2b438c==null?null:{'scene':_0x2b438c};}};ma=Y([J(0x0,_0x582229),J(0x1,_0x1b5744),J(0x2,_0x4cc4c4),J(0x3,_0x4e9d1c($))],ma);let ha=class extends _0x30ce8{constructor(_0x5cf4ba=Mi,_0x3bf6a0,_0xea0af4,_0x1355b1,_0x133b7a){const _0x35a018=_0x1ed081;super(),this[_0x35a018(0x330)]=_0x5cf4ba,this[_0x35a018(0x1ec)]=_0x3bf6a0,this[_0x35a018(0x22d)]=_0xea0af4,this[_0x35a018(0x3da)]=_0x1355b1,this[_0x35a018(0x283)]=_0x133b7a;let {menu:_0x351bb2,..._0x5653a8}=_0x381591({},Mi,this[_0x35a018(0x330)]);_0x351bb2&&this[_0x35a018(0x3da)]['setConfig'](_0x35a018(0x34a),_0x351bb2,{'merge':!0x0}),this[_0x35a018(0x3da)][_0x35a018(0x1e7)](ji,_0x5653a8),[G,Ai,q,Cr,Tr,Er]['forEach'](_0x28b59a=>this['disposeWithMe'](this[_0x35a018(0x22d)][_0x35a018(0x38a)](_0x28b59a)));}[_0x1ed081(0x2b8)](){const _0x2031f5=_0x1ed081;let _0x3be482=[[ua],[da],[ma],[$],[Vi],[zi],[X],[Xi],[Q],[pa]];_0x25479e(this['_injector'],_0x3be482),this[_0x2031f5(0x1ec)]['get'](ua);}[_0x1ed081(0x2c8)](){const _0x472492=_0x1ed081;this[_0x472492(0x2fd)](this['_renderManagerService'][_0x472492(0x316)](_0x436dd9[_0x472492(0x335)],[zi])),_0x3d6461(this[_0x472492(0x1ec)],[[da],[ma],[$],[Vi],[X],[Xi],[Q],[pa]]);}};Z(ha,_0x1ed081(0x37d),_0x436dd9[_0x1ed081(0x335)]),Z(ha,'pluginName',_0x1ed081(0x30e)),Z(ha,'packageName',Oi),Z(ha,'version',ki),ha=Y([_0x2e6e62(_0x1319ac,_0x4e3d23,_0x4249ea,_0x4ec3f0,_0x338f29,_0x4ba3d5,_0xd2d2e,_0x4ca735,_0x2d0bed,_0x2f7ef7),J(0x1,_0x4e9d1c(_0x3d54b6)),J(0x2,_0x582229),J(0x3,_0x280fd7),J(0x4,_0x1b5744)],ha);let ga=class extends _0x5721ff{constructor(_0x48faad,_0x1fec85){const _0x4308a4=_0x1ed081;super(),this['_componentManager']=_0x48faad,this[_0x4308a4(0x309)]=_0x1fec85,this[_0x4308a4(0x205)](),this[_0x4308a4(0x347)]();}['_registerIcons'](){const _0xeb1582=_0x1ed081;this[_0xeb1582(0x309)][_0xeb1582(0x2c5)](_0xeb1582(0x22c))||this[_0xeb1582(0x2fd)](this[_0xeb1582(0x309)][_0xeb1582(0x314)]({'ObjectLayersIcon':_0x2d9e5a})),this[_0xeb1582(0x309)][_0xeb1582(0x2c5)](_0xeb1582(0x2f3))||this[_0xeb1582(0x2fd)](this[_0xeb1582(0x309)][_0xeb1582(0x314)]({'BottomIcon':_0x10f104})),this[_0xeb1582(0x309)]['has'](_0xeb1582(0x241))||this[_0xeb1582(0x2fd)](this['_iconManager'][_0xeb1582(0x314)]({'MoveDownIcon':_0x863eb7})),this[_0xeb1582(0x309)]['has'](_0xeb1582(0x384))||this['disposeWithMe'](this[_0xeb1582(0x309)][_0xeb1582(0x314)]({'MoveUpIcon':_0x1fa84b})),this[_0xeb1582(0x309)]['has'](_0xeb1582(0x2dd))||this[_0xeb1582(0x2fd)](this[_0xeb1582(0x309)]['register']({'ShapeFormatSettingIcon':_0x51d8f6})),this[_0xeb1582(0x309)]['has']('TopmostIcon')||this['disposeWithMe'](this[_0xeb1582(0x309)][_0xeb1582(0x314)]({'TopmostIcon':_0x88dd38})),this[_0xeb1582(0x2fd)](this['_iconManager'][_0xeb1582(0x314)](ca));}[_0x1ed081(0x347)](){const _0x32eb43=_0x1ed081;this[_0x32eb43(0x2fd)](this['_componentManager'][_0x32eb43(0x314)](K,Qi)),this['_registerObjectListPanel'](),this[_0x32eb43(0x33b)](),this[_0x32eb43(0x2fd)](this[_0x32eb43(0x289)][_0x32eb43(0x314)](Hr,Jr)),this['disposeWithMe'](this[_0x32eb43(0x289)][_0x32eb43(0x314)](Vr,Yr)),this[_0x32eb43(0x2fd)](this[_0x32eb43(0x289)][_0x32eb43(0x314)](Ur,Xr)),this[_0x32eb43(0x2fd)](this[_0x32eb43(0x289)][_0x32eb43(0x314)](Wr,Zr)),this['disposeWithMe'](this['_componentManager'][_0x32eb43(0x314)](Gr,Qr)),this[_0x32eb43(0x2fd)](this[_0x32eb43(0x289)][_0x32eb43(0x314)](xr,_0x1ff31b)),this[_0x32eb43(0x270)](),this[_0x32eb43(0x289)][_0x32eb43(0x410)](_0x3de7d6)||this['disposeWithMe'](this[_0x32eb43(0x289)]['register'](_0x3de7d6,Mr)),this[_0x32eb43(0x2fd)](this[_0x32eb43(0x289)]['register'](Sr,la));}['_registerObjectListPanel'](){const _0x1ffbcd=_0x1ed081;this[_0x1ffbcd(0x2fd)](this['_componentManager'][_0x1ffbcd(0x314)](yr,Ji));}[_0x1ed081(0x33b)](){const _0x683836=_0x1ed081;this['disposeWithMe'](this[_0x683836(0x289)]['register'](na,ia));}[_0x1ed081(0x270)](){const _0x446025=_0x1ed081;this[_0x446025(0x2fd)](this['_componentManager'][_0x446025(0x314)](Dr,Nr)),this['disposeWithMe'](this[_0x446025(0x289)]['register'](Or,jr));}};ga=Y([J(0x0,_0x4e9d1c(_0x1bfb02)),J(0x1,_0x4e9d1c(_0x2a264a))],ga);let _a=class extends _0x5721ff{constructor(_0x5a4bde,_0x53126a,_0x325abc,_0x2e7513,_0x3770c0,_0x3e3899,_0x4b3ba9,_0x3d3d3d,_0x5e05e4){const _0x49ce83=_0x1ed081;super();let _0x1ddfa2=_0x8c89bc=>{const _0x3cb89f=_0x5aa0;let _0x5c7345=_0x3e3899[_0x3cb89f(0x3d3)](_0x8c89bc['unitId'],_0x436dd9['UNIVER_DOC']),_0x2b1397=_0x5c7345?_0x1fc7f8(_0x5c7345,_0x8c89bc[_0x3cb89f(0x317)]):'';return!!_0x5c7345&&_0x47555f(_0x3d3d3d,_0x8c89bc[_0x3cb89f(0x355)],[_0x5462ea(_0x2b1397,_0x3cb89f(0x2fa),_0x8c89bc['shapeId']),..._0x1a179a(_0x5c7345,_0x2b1397,_0x3cb89f(0x2fa),_0x8c89bc[_0x3cb89f(0x317)])]);},_0x16b1eb=_0x5a07e0=>_0x5a07e0[_0x49ce83(0x317)]&&_0x1ddfa2(_0x5a07e0)?_0x325abc['getShapeDataById'](_0x5a07e0[_0x49ce83(0x355)],_0x5a07e0['shapeId'])??null:null,_0xa6d308=()=>{const _0x683ceb=_0x49ce83;let _0x3c5c02=_0x3770c0[_0x683ceb(0x2a0)](),_0x39f4cf=_0x3c5c02[_0x683ceb(0x43c)]===0x1?_0x3c5c02[0x0]:null;return(_0x39f4cf==null?void 0x0:_0x39f4cf[_0x683ceb(0x234)])===_0x690970[_0x683ceb(0x20d)]&&_0x39f4cf['unitId']===_0x5a4bde['unitId']?{'unitId':_0x39f4cf[_0x683ceb(0x355)],'subUnitId':_0x39f4cf['subUnitId'],'shapeId':_0x39f4cf['drawingId']}:null;};this[_0x49ce83(0x2fd)](_0x688a39(_0x5a4bde,_0x53126a,{'changes$':_0xfc549c(_0x3770c0[_0x49ce83(0x273)],_0x2e7513[_0x49ce83(0x293)],_0x3d3d3d[_0x49ce83(0x3af)]),'isActive':()=>{const _0x2c5f3b=_0x49ce83;var _0x42bc26;return((_0x42bc26=_0x3e3899[_0x2c5f3b(0x21c)]())==null?void 0x0:_0x42bc26[_0x2c5f3b(0x336)]())===_0x5a4bde['unitId']&&!_0x4b3ba9[_0x2c5f3b(0x3a3)](_0x5fd016)&&_0x3770c0[_0x2c5f3b(0x2a0)]()[_0x2c5f3b(0x3cf)](_0x2d9a49=>_0x2d9a49[_0x2c5f3b(0x355)]===_0x5a4bde[_0x2c5f3b(0x355)]);},'getSelectedTarget':_0xa6d308,'getSource':()=>{let _0x3609e1=_0xa6d308();return _0x3609e1?_0x16b1eb(_0x3609e1):null;},'getTarget':_0x57a85f=>{const _0x561a22=_0x49ce83;let _0x142481=_0x5a4bde[_0x561a22(0x27e)][_0x561a22(0x22b)](new _0x2ede79(_0x57a85f[_0x561a22(0x2c1)],_0x57a85f['offsetY']));if(!(_0x142481 instanceof Ri))return null;let _0x2b4b5b={'unitId':_0x5a4bde[_0x561a22(0x355)],'subUnitId':_0x5a4bde[_0x561a22(0x355)],'shapeId':_0x142481[_0x561a22(0x317)]};return _0x1ddfa2(_0x2b4b5b)?_0x2b4b5b:null;},'getShape':_0x16b1eb,'update':(_0x538208,_0x3866fd,_0x3341ff)=>_0x5e05e4[_0x49ce83(0x402)](_0x46dc48['id'],{..._0x538208,'shapeData':_0x3341ff,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x3866fd}})}));}};_a=Y([J(0x1,_0x4e9d1c(_0x2cd412)),J(0x2,_0x4e9d1c(_0x39396e)),J(0x3,_0x4e9d1c(Q)),J(0x4,_0x4cc4c4),J(0x5,_0x357598),J(0x6,_0x268075),J(0x7,_0x49aab3),J(0x8,_0x582229)],_a);function va(_0x5eec15,_0x17a17e){const _0x5531e3=_0x1ed081;let _0x4ebcc9=_0x5eec15;for(;_0x4ebcc9;){if(_0x17a17e(_0x4ebcc9))return _0x4ebcc9;_0x4ebcc9=typeof _0x4ebcc9[_0x5531e3(0x388)]==_0x5531e3(0x341)?_0x4ebcc9[_0x5531e3(0x388)]():null;}return null;}function ya(_0x31959d){return va(_0x31959d,_0x2e9d8c=>_0x2e9d8c instanceof Ri);}function ba(_0x342bfd){const _0x2a81ec=_0x1ed081;return(_0x342bfd==null?void 0x0:_0x342bfd[_0x2a81ec(0x1f5)])==null;}let xa=class extends _0x5721ff{constructor(_0x36c206,_0x5adb8a,_0x20159e,_0x12ecf8,_0x1a3bbd,_0x598987){const _0x597456=_0x1ed081;super(),this[_0x597456(0x42e)]=_0x36c206,this[_0x597456(0x230)]=_0x5adb8a,this[_0x597456(0x291)]=_0x20159e,this[_0x597456(0x2ad)]=_0x12ecf8,this[_0x597456(0x364)]=_0x1a3bbd,this[_0x597456(0x26c)]=_0x598987,Z(this,'_lastEditingShapeKey',null),Z(this,'_layoutInteraction',null),this[_0x597456(0x27d)](),this['_initSelection'](),this[_0x597456(0x278)]();}[_0x1ed081(0x208)](){const _0x2af216=_0x1ed081;this[_0x2af216(0x2f7)](),super['dispose']();}[_0x1ed081(0x27d)](){const _0x4e8032=_0x1ed081;let {scene:_0x32052b}=this[_0x4e8032(0x42e)];this['disposeWithMe'](_0x32052b[_0x4e8032(0x310)][_0x4e8032(0x432)]((_0x58b1fc,_0x507fad)=>{const _0x4e07b3=_0x4e8032;let {offsetX:_0x2e71f8,offsetY:_0x2ce0b7}=_0x58b1fc,_0x4ab415=_0x2ede79['FromArray']([_0x2e71f8,_0x2ce0b7]),_0x45fb45=ya(_0x32052b[_0x4e07b3(0x22b)](_0x4ab415))??this[_0x4e07b3(0x42c)](_0x4ab415);if(_0x45fb45){_0x507fad[_0x4e07b3(0x367)]();let _0xdecaa0=this[_0x4e07b3(0x26c)][_0x4e07b3(0x381)](_0x45fb45['unitId'],_0x45fb45[_0x4e07b3(0x203)],_0x45fb45[_0x4e07b3(0x317)]);if(!_0xdecaa0||_0x238e4e(_0xdecaa0['getShapeType']())||!ba(_0xdecaa0[_0x4e07b3(0x3c2)]()))return;this[_0x4e07b3(0x230)]['setEditing']({'visible':!0x0,'unitId':_0x45fb45['unitId'],'subUnitId':_0x45fb45[_0x4e07b3(0x203)],'shapeId':_0x45fb45[_0x4e07b3(0x317)],'shapeKey':_0x45fb45['oKey']});}}));}['_getFocusedShapeAtPoint'](_0x232234){const _0x3ba098=_0x1ed081;let {scene:_0x54fc22}=this[_0x3ba098(0x42e)];return this[_0x3ba098(0x291)][_0x3ba098(0x2a0)]()['map'](_0x25d3f2=>_0x54fc22['getObjectIncludeInGroup'](_0x54547b(_0x25d3f2)))[_0x3ba098(0x2ec)](_0xcf97f5=>_0xcf97f5 instanceof Ri&&_0xcf97f5[_0x3ba098(0x40a)](_0x232234))??null;}[_0x1ed081(0x2b3)](){const _0x3a0166=_0x1ed081;this[_0x3a0166(0x2fd)](this[_0x3a0166(0x291)][_0x3a0166(0x273)][_0x3a0166(0x251)](_0x13766f=>{const _0x46a567=_0x3a0166;if(_0x13766f[_0x46a567(0x43c)]===0x1){let _0x4ae1fc=_0x13766f[0x0],_0x9c75ea=this[_0x46a567(0x291)]['getDrawingByParam'](_0x4ae1fc);if((_0x9c75ea==null?void 0x0:_0x9c75ea[_0x46a567(0x234)])===_0x690970[_0x46a567(0x20d)]){let _0x95407c=this['_shapeTextEditingService'][_0x46a567(0x24c)]();if((_0x95407c==null?void 0x0:_0x95407c[_0x46a567(0x317)])===_0x4ae1fc['drawingId']&&_0x95407c[_0x46a567(0x232)])return;_0x238e4e(this[_0x46a567(0x26c)][_0x46a567(0x40b)](_0x4ae1fc[_0x46a567(0x355)],_0x4ae1fc[_0x46a567(0x203)],_0x4ae1fc[_0x46a567(0x210)]))&&this['_shapeTextEditingService'][_0x46a567(0x372)](null);}else this[_0x46a567(0x230)]['completeEditing']();}else this[_0x46a567(0x230)][_0x46a567(0x3cc)]();})),this[_0x3a0166(0x2fd)](this[_0x3a0166(0x291)][_0x3a0166(0x354)][_0x3a0166(0x251)](_0x177abf=>{const _0x126e23=_0x3a0166;let _0x369a39=this['_shapeTextEditingService']['getEditing']();_0x369a39&&_0x177abf[_0x126e23(0x3cf)](_0x1956e0=>_0x1956e0[_0x126e23(0x210)]===_0x369a39[_0x126e23(0x317)])&&this[_0x126e23(0x230)][_0x126e23(0x372)](null);}));}[_0x1ed081(0x278)](){this['disposeWithMe'](this['_shapeTextEditingService']['editingParams$']['subscribe'](_0x1ccea1=>{const _0x58537e=_0x5aa0;(_0x1ccea1==null?void 0x0:_0x1ccea1[_0x58537e(0x232)])===!0x0&&_0x1ccea1['unitId']===this[_0x58537e(0x42e)][_0x58537e(0x355)]?this[_0x58537e(0x3b9)]??=this[_0x58537e(0x364)][_0x58537e(0x412)]():this[_0x58537e(0x2f7)]();let {scene:_0x2413be}=this[_0x58537e(0x42e)];if(this[_0x58537e(0x350)]){let _0x4b6ed5=_0x2413be[_0x58537e(0x3fa)](this[_0x58537e(0x350)]);_0x4b6ed5&&_0x4b6ed5['setEditing'](!0x1);}if(_0x1ccea1){let _0x39353a=!!_0x1ccea1[_0x58537e(0x232)],_0x595b3d=_0x2413be[_0x58537e(0x3fa)](_0x1ccea1[_0x58537e(0x362)]);_0x595b3d&&(_0x595b3d[_0x58537e(0x372)](_0x39353a),this['_lastEditingShapeKey']=_0x1ccea1[_0x58537e(0x362)]),this[_0x58537e(0x2ad)]['setContextValue'](_0x5fd016,_0x39353a);}else this[_0x58537e(0x350)]=null,this['_contextService'][_0x58537e(0x3b5)](_0x5fd016,!0x1);}));}[_0x1ed081(0x2f7)](){const _0x4e8ad6=_0x1ed081;var _0x403dfa;(_0x403dfa=this['_layoutInteraction'])==null||_0x403dfa[_0x4e8ad6(0x208)](),this[_0x4e8ad6(0x3b9)]=null;}};xa=Y([J(0x1,_0x4e9d1c(Q)),J(0x2,_0x4cc4c4),J(0x3,_0x268075),J(0x4,_0x4e9d1c(_0x23c4ef)),J(0x5,_0x4e9d1c(_0x39396e))],xa);let Sa=class extends _0x4fa01d{constructor(_0x5b9f32,_0x562da8,_0x5836c7,_0x18137f,_0x2bd0f6,_0x1b409c,_0x187c31,_0x245c3f,_0x1f25b9,_0x140d38){super(_0x5b9f32,_0x562da8,_0x5836c7,_0x18137f,_0x2bd0f6,_0x1b409c,_0x187c31,_0x245c3f,_0x1f25b9,_0x140d38,{'componentKey':xr,'editorUnitId':br});}};Sa=Y([J(0x1,_0x4e9d1c(_0x2325c6)),J(0x2,_0x4e9d1c(_0xe084e0)),J(0x3,_0x4e9d1c(_0x3272e9)),J(0x4,_0x582229),J(0x5,_0x4e9d1c(_0x4420fc)),J(0x6,_0x4e9d1c(_0x491613)),J(0x7,_0x4e9d1c(_0x3a4b97)),J(0x8,_0x4e9d1c(_0x299248)),J(0x9,_0x4e9d1c(Q))],Sa);let Ca=class extends _0x5721ff{constructor(_0x37024b,_0x4027c2,_0x416e4c,_0x2fddb6,_0x1dbfb,_0xe5696a,_0x39c1cb,_0x4eeed3,_0x5c7dd9,_0x4b1636,_0x11bead,_0x531ac8){const _0x214d7a=_0x1ed081;super(),this[_0x214d7a(0x221)]=_0x37024b,this['_sidebarService']=_0x4027c2,this['_menuManagerService']=_0x416e4c,this[_0x214d7a(0x26c)]=_0x2fddb6,this['_localeService']=_0x1dbfb,this[_0x214d7a(0x22d)]=_0xe5696a,this['_drawingManagerService']=_0x39c1cb,this['_docCanvasPopManagerService']=_0x4eeed3,this[_0x214d7a(0x283)]=_0x5c7dd9,this[_0x214d7a(0x2ad)]=_0x4b1636,this[_0x214d7a(0x230)]=_0x11bead,this[_0x214d7a(0x382)]=_0x531ac8,Z(this,_0x214d7a(0x297),null),Z(this,'_activeShapeInfo',null),Z(this,_0x214d7a(0x429),!0x1),Z(this,'_shapeEditPanelVersion',0x0),Z(this,'_disposePopupsByUnit',new Map()),Z(this,_0x214d7a(0x284),new Map()),this[_0x214d7a(0x218)](),this[_0x214d7a(0x2fd)](this['_univerInstanceService'][_0x214d7a(0x431)](_0x436dd9[_0x214d7a(0x335)])['subscribe'](_0x2acc16=>{const _0xef0dd0=_0x214d7a;if(!_0x2acc16){var _0x3d9d40;(_0x3d9d40=this[_0xef0dd0(0x297)])==null||_0x3d9d40[_0xef0dd0(0x208)]();}})),this[_0x214d7a(0x3f7)](),this['disposeWithMe'](_0x40ac78(this[_0x214d7a(0x283)],_0x436dd9[_0x214d7a(0x335)],_0x15d25e=>this[_0x214d7a(0x3c9)](_0x15d25e))),this[_0x214d7a(0x2fd)](this[_0x214d7a(0x230)][_0x214d7a(0x293)][_0x214d7a(0x251)](_0x3b81b1=>{_0x3b81b1&&this['_clearPopups'](void 0x0,!0x0);})),this[_0x214d7a(0x2fd)](this['_permissionService']['permissionPointUpdate$'][_0x214d7a(0x251)](()=>{const _0x398d3d=_0x214d7a;this[_0x398d3d(0x291)][_0x398d3d(0x2a0)]()['some'](_0x526981=>_0x526981['drawingType']===_0x690970['DRAWING_SHAPE']&&this[_0x398d3d(0x221)]['getUnitType'](_0x526981[_0x398d3d(0x355)])===_0x436dd9['UNIVER_DOC']&&!this['_canEditShape'](_0x526981[_0x398d3d(0x355)],_0x526981[_0x398d3d(0x210)]))&&(this[_0x398d3d(0x272)](void 0x0,!0x0),this[_0x398d3d(0x2b4)]());}));}[_0x1ed081(0x218)](){const _0x465476=_0x1ed081;this['_menuManagerService'][_0x465476(0x442)](Di);}[_0x1ed081(0x3de)](_0x4f3190,_0x39bff7,_0xe3006,_0x2d0653){const _0x2a46b9=_0x1ed081;return[{'label':_0x2a46b9(0x3a7),'index':0x0,'commandId':q['id'],'commandParams':{'unitId':_0x4f3190,'subUnitId':_0x39bff7,'drawingId':_0xe3006},'disable':_0x2d0653===_0x690970[_0x2a46b9(0x20a)]},{'label':_0x2a46b9(0x31c),'index':0x1,'commandId':_0x3723c7['id'],'commandParams':{'unitId':_0x4f3190,'drawings':[{'unitId':_0x4f3190,'subUnitId':_0x39bff7,'drawingId':_0xe3006}]},'disable':!0x1},{'label':_0x2a46b9(0x2e5),'index':0x2,'commandId':Ai['id'],'commandParams':{'unitId':_0x4f3190,'subUnitId':_0x39bff7,'drawingId':_0xe3006},'disable':!0x1}];}[_0x1ed081(0x344)](_0x30d313,_0x4bb13f,_0x2aabfa){const _0x21f471=_0x1ed081;let _0x2c6a02=this[_0x21f471(0x26c)][_0x21f471(0x363)](_0x30d313,_0x4bb13f,_0x2aabfa),_0x521cf7=this[_0x21f471(0x26c)]['getShapeDataById'](_0x30d313,_0x4bb13f,_0x2aabfa);return _0x2c6a02!==void 0x0&&_0x521cf7!==void 0x0?{'shapeData':_0x521cf7,'shapeId':_0x2aabfa,'shapeType':_0x2c6a02,'unitId':_0x30d313,'subUnitId':_0x4bb13f,'version':this[_0x21f471(0x444)],'disableShapeOption':!0x1}:null;}[_0x1ed081(0x272)](_0x3ac361,_0x38f06f=!0x1){const _0x10ac76=_0x1ed081;if(_0x3ac361==null){[...this['_disposePopupsByUnit'][_0x10ac76(0x303)]()]['forEach'](_0x57a6c5=>this[_0x10ac76(0x272)](_0x57a6c5,_0x38f06f));return;}let _0x1f3ed6=this[_0x10ac76(0x334)][_0x10ac76(0x410)](_0x3ac361);if(_0x1f3ed6){for(let _0x2cae8f=_0x1f3ed6['length']-0x1;_0x2cae8f>=0x0;--_0x2cae8f){let _0x11032f=_0x1f3ed6[_0x2cae8f];(_0x38f06f||_0x11032f[_0x10ac76(0x1f2)]())&&(_0x11032f['dispose'](),_0x1f3ed6['splice'](_0x2cae8f,0x1));}_0x1f3ed6[_0x10ac76(0x43c)]===0x0&&(this[_0x10ac76(0x334)][_0x10ac76(0x39f)](_0x3ac361),this['_popupTargetKeys'][_0x10ac76(0x39f)](_0x3ac361));}}[_0x1ed081(0x44c)](_0x3feb01){const _0x4d32e2=_0x1ed081;let _0x5055b1=this[_0x4d32e2(0x334)][_0x4d32e2(0x410)](_0x3feb01);if(_0x5055b1)return _0x5055b1;let _0x5293c0=[];return this[_0x4d32e2(0x334)][_0x4d32e2(0x2e7)](_0x3feb01,_0x5293c0),_0x5293c0;}[_0x1ed081(0x3c9)](_0x485d24){const _0x17ee05=_0x1ed081;var _0x545d2b;let _0x30926f=new _0x153c14(),_0x42c665=(_0x545d2b=this[_0x17ee05(0x283)][_0x17ee05(0x31d)](_0x436dd9[_0x17ee05(0x335)])[_0x17ee05(0x2ec)](_0x5e2fd9=>_0x5e2fd9[_0x17ee05(0x27e)][_0x17ee05(0x36f)]()===_0x485d24))==null?void 0x0:_0x545d2b['unitId'];return _0x42c665?(_0x30926f[_0x17ee05(0x28d)](_0x485d24[_0x17ee05(0x200)][_0x17ee05(0x251)](()=>this[_0x17ee05(0x245)](_0x485d24,_0x42c665))),_0x30926f['add'](_0x485d24[_0x17ee05(0x300)]['subscribe'](()=>{const _0x5b7431=_0x17ee05;this[_0x5b7431(0x272)](_0x42c665),queueMicrotask(()=>{const _0x2b3e47=_0x5b7431;_0x485d24[_0x2b3e47(0x23a)]()[_0x2b3e47(0x1e9)]>0x0||(this[_0x2b3e47(0x2ad)]['setContextValue'](_0x5ad933,!0x1),this[_0x2b3e47(0x291)][_0x2b3e47(0x1ea)](null));});})),_0x30926f[_0x17ee05(0x28d)](_0x485d24[_0x17ee05(0x35b)][_0x17ee05(0x251)](()=>{this['_clearPopups'](_0x42c665,!0x0);})),_0x30926f):_0x30926f;}[_0x1ed081(0x245)](_0x126a5c,_0x1a63c6){const _0x4816a7=_0x1ed081;let _0x280dae=_0x126a5c[_0x4816a7(0x23a)]();if(this['_isOpenedShapeEditPanel']){this[_0x4816a7(0x272)](_0x1a63c6,!0x0);return;}if(_0x280dae[_0x4816a7(0x1e9)]>0x1){this[_0x4816a7(0x272)](_0x1a63c6);return;}let _0x312359=_0x280dae['values']()[_0x4816a7(0x2d8)]()['value'];if(!_0x312359){this['_clearPopups'](_0x1a63c6);return;}let _0x449700=this[_0x4816a7(0x291)][_0x4816a7(0x269)](_0x312359[_0x4816a7(0x1e8)]);if(!_0x449700||_0x449700[_0x4816a7(0x234)]!==_0x690970[_0x4816a7(0x20d)]){this['_clearPopups'](_0x1a63c6);return;}let {unitId:_0x147d37,subUnitId:_0x1fd4b4,drawingId:_0x39d36e,drawingType:_0x2597c2}=_0x449700;if(!this[_0x4816a7(0x436)](_0x147d37,_0x39d36e)){this[_0x4816a7(0x272)](_0x1a63c6,!0x0);return;}let _0x5f5467=this[_0x4816a7(0x344)](_0x147d37,_0x1fd4b4,_0x39d36e);if(!_0x5f5467){this[_0x4816a7(0x272)](_0x1a63c6);return;}let _0xed16f8=this['_disposePopupsByUnit'][_0x4816a7(0x410)](_0x1a63c6),_0x19eff8=_0x147d37+':'+_0x1fd4b4+':'+_0x39d36e;if(this[_0x4816a7(0x284)][_0x4816a7(0x410)](_0x1a63c6)===_0x19eff8&&_0xed16f8&&_0xed16f8[_0x4816a7(0x43c)]>0x0)return;this[_0x4816a7(0x272)](_0x1a63c6);let _0x14d2d5=this[_0x4816a7(0x283)][_0x4816a7(0x30a)](_0x147d37),_0x5d0bdc=((_0x14d2d5==null?void 0x0:_0x14d2d5[_0x4816a7(0x380)])===!0x1?_0x14d2d5[_0x4816a7(0x34e)](_0xe084e0):this[_0x4816a7(0x361)])[_0x4816a7(0x28e)](_0x312359,this[_0x4816a7(0x41b)](_0x5f5467,_0x2597c2),_0x147d37);this[_0x4816a7(0x2fd)](_0x5d0bdc),this[_0x4816a7(0x44c)](_0x1a63c6)[_0x4816a7(0x39c)](_0x5d0bdc),this[_0x4816a7(0x284)]['set'](_0x1a63c6,_0x19eff8),this[_0x4816a7(0x291)][_0x4816a7(0x2a0)]()[_0x4816a7(0x3cf)](_0x367b03=>_0x367b03[_0x4816a7(0x355)]===_0x147d37&&_0x367b03['subUnitId']===_0x1fd4b4&&_0x367b03[_0x4816a7(0x210)]===_0x39d36e)||this[_0x4816a7(0x291)]['focusDrawing']([{'unitId':_0x147d37,'subUnitId':_0x1fd4b4,'drawingId':_0x39d36e}]);}[_0x1ed081(0x41b)](_0x15676a,_0x4da931){const _0x4c1091=_0x1ed081;return{'componentKey':na,'direction':_0x4c1091(0x397),'offset':[0x0,_0x1fa496],'extraProps':{'unitId':_0x15676a[_0x4c1091(0x355)],'subUnitId':_0x15676a['subUnitId'],'drawingId':_0x15676a['shapeId'],'drawingType':_0x4da931,'shapeType':_0x15676a[_0x4c1091(0x2e0)],'shapeData':_0x15676a[_0x4c1091(0x2ba)]}};}[_0x1ed081(0x436)](_0x368c25,_0xd0f819){const _0x331950=_0x1ed081;let _0x37f431=this[_0x331950(0x221)][_0x331950(0x3d3)](_0x368c25,_0x436dd9[_0x331950(0x335)]);if(!_0x37f431)return!0x1;let _0x5ecc67=_0x1fc7f8(_0x37f431,_0xd0f819);return _0x47555f(this['_permissionService'],_0x368c25,[..._0x1a179a(_0x37f431,_0x5ecc67,_0x331950(0x2fa),_0xd0f819),_0x5462ea(_0x5ecc67,_0x331950(0x2fa),_0xd0f819)]);}[_0x1ed081(0x3f7)](){const _0x5ce752=_0x1ed081;this['disposeWithMe'](this[_0x5ce752(0x22d)]['onCommandExecuted'](_0x101cbd=>{const _0x8db220=_0x5ce752;if(_0x101cbd['id']===q['id']){let {unitId:_0x55944e,subUnitId:_0x1e2d77,drawingId:_0x11547c}=_0x101cbd[_0x8db220(0x41e)];this[_0x8db220(0x444)]+=0x1,this[_0x8db220(0x225)]=this['_getShapeInfo'](_0x55944e,_0x1e2d77,_0x11547c),this[_0x8db220(0x272)](void 0x0,!0x0),this[_0x8db220(0x2d2)]();}if(_0x101cbd['id']===Ai['id']&&(this['_activeShapeInfo']=null,this[_0x8db220(0x2b4)]()),_0x101cbd['id']===_0xbcf5de['id']){let {unitId:_0x1dc078,shapeId:_0x144d8b}=_0x101cbd['params'];if(this[_0x8db220(0x225)]&&this[_0x8db220(0x225)][_0x8db220(0x317)]===_0x144d8b){let _0x8c1a1d=this[_0x8db220(0x344)](_0x1dc078,this[_0x8db220(0x225)]['subUnitId'],_0x144d8b);_0x8c1a1d&&(this['_shapeEditPanelVersion']+=0x1,_0x8c1a1d[_0x8db220(0x44b)]=this[_0x8db220(0x444)],this['_activeShapeInfo']=_0x8c1a1d,this[_0x8db220(0x429)]&&this['_openShapeEditPanel']());}}})),this[_0x5ce752(0x2fd)](this['_drawingManagerService']['focus$'][_0x5ce752(0x251)](_0x376295=>{const _0xbd3732=_0x5ce752;if(this[_0xbd3732(0x429)]===!0x1)return;if(_0x376295[_0xbd3732(0x43c)]===0x0){this[_0xbd3732(0x225)]=null,this[_0xbd3732(0x2b4)]();return;}if(_0x376295['length']===0x1&&_0x376295[0x0]['drawingType']===_0x690970[_0xbd3732(0x20d)]&&(this[_0xbd3732(0x444)]+=0x1,this[_0xbd3732(0x225)]=this['_getShapeInfo'](_0x376295[0x0][_0xbd3732(0x355)],_0x376295[0x0][_0xbd3732(0x203)],_0x376295[0x0]['drawingId']),this['_activeShapeInfo'])){this[_0xbd3732(0x2d2)]();return;}let _0x1db8d6=_0x376295[_0xbd3732(0x252)](_0x2cc9c0=>_0x2cc9c0[_0xbd3732(0x234)]===_0x690970[_0xbd3732(0x20d)]);if(_0x376295[_0xbd3732(0x43c)]>0x1&&_0x1db8d6[_0xbd3732(0x43c)]===_0x376295[_0xbd3732(0x43c)]){if(this[_0xbd3732(0x444)]+=0x1,this['_activeShapeInfo']=this[_0xbd3732(0x344)](_0x376295[0x0][_0xbd3732(0x355)],_0x376295[0x0]['subUnitId'],_0x376295[0x0]['drawingId']),this['_activeShapeInfo']){this[_0xbd3732(0x2d2)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0xbd3732(0x225)]=this['_getShapeInfo'](_0x376295[0x0][_0xbd3732(0x355)],_0x376295[0x0][_0xbd3732(0x203)],_0x376295[0x0][_0xbd3732(0x210)]),this[_0xbd3732(0x225)]){this['_activeShapeInfo']['disableShapeOption']=!0x0,this[_0xbd3732(0x2d2)]();return;}}this[_0xbd3732(0x2b4)]();}));}[_0x1ed081(0x2d2)](){const _0x4228a1=_0x1ed081;this[_0x4228a1(0x225)]&&(this['_sidebarDisposable']=this[_0x4228a1(0x2d3)][_0x4228a1(0x44d)]({'id':K,'header':{'title':this[_0x4228a1(0x437)]['t'](_0x4228a1(0x25b))},'width':0x184,'children':{'label':K,...this[_0x4228a1(0x225)]},'onClose':()=>{const _0xdc9506=_0x4228a1;this[_0xdc9506(0x291)][_0xdc9506(0x1ea)](null),this[_0xdc9506(0x2ad)]['setContextValue'](_0x5ad933,!0x1),this['_sidebarDisposable']=null;}}),this[_0x4228a1(0x429)]=!0x0);}[_0x1ed081(0x2b4)](){const _0x357ff3=_0x1ed081;this['_isOpenedShapeEditPanel']=!0x1,this[_0x357ff3(0x2d3)]['close'](K),this['_sidebarDisposable']=null,this[_0x357ff3(0x2ad)]['setContextValue'](_0x5ad933,!0x1),this['_drawingManagerService']['focusDrawing'](null);}};Ca=Y([J(0x0,_0x357598),J(0x1,_0x4e9d1c(_0x1357e7)),J(0x2,_0x206d0b),J(0x3,_0x4e9d1c(_0x39396e)),J(0x4,_0x4e9d1c(_0x4b811c)),J(0x5,_0x582229),J(0x6,_0x4cc4c4),J(0x7,_0x4e9d1c(_0xe084e0)),J(0x8,_0x1b5744),J(0x9,_0x268075),J(0xa,_0x4e9d1c(Q)),J(0xb,_0x49aab3)],Ca);let wa=class extends _0x5721ff{constructor(_0x111c22,_0x3489f6){const _0x86b536=_0x1ed081;super(),this['_docsShapeService']=_0x111c22,this['_localeService']=_0x3489f6,this[_0x86b536(0x2fd)](_0xfac87e(_0x357255((_0x527943,_0x1892e8,_0x58f68a)=>this['_measure'](_0x527943,_0x1892e8,_0x58f68a))));}[_0x1ed081(0x2d9)](_0x44ec7a,_0x4f52f9,_0x174f34){const _0xd23d7c=_0x1ed081;let _0x1c43cc=this[_0xd23d7c(0x26c)][_0xd23d7c(0x381)](_0x44ec7a,_0x4f52f9);if(!_0x1c43cc)return null;let _0x268b9d=_0x1c43cc[_0xd23d7c(0x3c2)](),_0x5bb3cd=_0x1a4698(_0x268b9d),_0x5a9dfa=_0x268b9d['shapeText'];if(!_0x5a9dfa||_0x5bb3cd[_0xd23d7c(0x35a)]!==_0x44ef7a['SpAutoFit'])return null;let _0x5b640a=_0x174f34['fallbackWidth'],_0x2c2e7c=_0x174f34[_0xd23d7c(0x3ed)];_0x1c43cc['updateContext']({'width':_0x5b640a,'height':_0x2c2e7c});let _0x15dda6=_0x1c43cc[_0xd23d7c(0x262)]({'left':0x0,'top':0x0,'width':_0x5b640a,'height':_0x2c2e7c}),_0x52aeca=_0x2e2427(_0xd23d7c(0x3e2)in _0x5a9dfa?_0x5a9dfa[_0xd23d7c(0x3e2)]:void 0x0),_0x192104=(_0x52aeca==null?void 0x0:_0x52aeca[_0xd23d7c(0x2ca)])??(_0xd23d7c(0x3fb)in _0x5a9dfa?_0x105325(_0x5a9dfa,_0x4f52f9+_0xd23d7c(0x2b0)):null);if(!_0x192104)return null;let _0x24c2ff=_0x209b99({'documentData':_0x192104,'height':_0x2c2e7c,'shapeData':_0x268b9d,'textRect':_0x15dda6,'width':_0x5b640a,'widthBuffer':0x0});_0x24c2ff&&({width:_0x5b640a,height:_0x2c2e7c}=_0x24c2ff,_0x1c43cc[_0xd23d7c(0x31a)]({'width':_0x5b640a,'height':_0x2c2e7c}),_0x15dda6=_0x1c43cc[_0xd23d7c(0x262)]({'left':0x0,'top':0x0,'width':_0x5b640a,'height':_0x2c2e7c}));let _0x39c265=_0x5a9dfa['isHorizontal']!==!0x1,_0x348c15=_0x25ec96(_0x192104,{'isHorizontal':_0x39c265,'textRect':_0x15dda6,'verticalAlign':_0x52aeca==null?void 0x0:_0x52aeca['va'],'horizontalAlign':_0x52aeca==null?void 0x0:_0x52aeca['ha'],'wrapStrategy':_0x55fcc9(_0x268b9d)}),_0x8eca77=new _0x3b3dfb(_0x348c15),_0x2b2d31=new _0x514bbc(_0x8eca77),_0x293ee4=_0x44a5a2[_0xd23d7c(0x406)](_0x2b2d31,this[_0xd23d7c(0x437)]);try{var _0x3dde40,_0x4245e8;_0x293ee4[_0xd23d7c(0x3ef)]();let _0x10850b=((_0x3dde40=_0x293ee4[_0xd23d7c(0x220)]())==null?void 0x0:_0x3dde40[_0xd23d7c(0x3fc)])??[],_0x29dd75=_0x10850b[_0x10850b[_0xd23d7c(0x43c)]-0x1],_0x3f783a=_0x29dd75?Math[_0xd23d7c(0x23c)](0x0,((_0x4245e8=_0x14e5f4(_0x29dd75))==null?void 0x0:_0x4245e8[_0xd23d7c(0x2a7)])??0x0):0x0,_0x249acc=_0x293ee4[_0xd23d7c(0x38d)]()[_0xd23d7c(0x1eb)]+_0x3f783a-(_0x39c265?_0x15dda6[_0xd23d7c(0x3e1)]:_0x15dda6[_0xd23d7c(0x421)]);return Number[_0xd23d7c(0x2a5)](_0x249acc)?_0x39c265?{'width':_0x5b640a,'height':Math[_0xd23d7c(0x23c)](0x1,_0x2c2e7c+_0x249acc)}:{'width':Math['max'](0x1,_0x5b640a+_0x249acc),'height':_0x2c2e7c}:null;}finally{_0x293ee4[_0xd23d7c(0x208)](),_0x2b2d31[_0xd23d7c(0x208)](),_0x8eca77[_0xd23d7c(0x208)]();}}};wa=Y([J(0x0,_0x4e9d1c(_0x39396e)),J(0x1,_0x4e9d1c(_0x4b811c))],wa);let Ta=class extends _0x30ce8{constructor(_0x4cf939=Mi,_0x55e771,_0x56e081,_0x4027df,_0x5e330d){const _0x70cbbe=_0x1ed081;super(),this['_config']=_0x4cf939,this[_0x70cbbe(0x1ec)]=_0x55e771,this[_0x70cbbe(0x22d)]=_0x56e081,this['_configService']=_0x4027df,this[_0x70cbbe(0x283)]=_0x5e330d;let {menu:_0x257cdb,..._0xff364d}=_0x381591({},Mi,this[_0x70cbbe(0x330)]);_0x257cdb&&this['_configService'][_0x70cbbe(0x1e7)](_0x70cbbe(0x34a),_0x257cdb,{'merge':!0x0}),this[_0x70cbbe(0x3da)][_0x70cbbe(0x1e7)](ji,_0xff364d),this[_0x70cbbe(0x26d)]();}[_0x1ed081(0x2b8)](){const _0x52a525=_0x1ed081;_0x25479e(this['_injector'],this[_0x52a525(0x42b)]()),this[_0x52a525(0x1ec)][_0x52a525(0x410)](ga),this[_0x52a525(0x26b)]();}[_0x1ed081(0x42b)](){return[[ga],[Ca],[ma],[$],[Vi],[zi],[X],[Xi],[wa],[Q],[pa]];}[_0x1ed081(0x2c8)](){const _0x32a76e=_0x1ed081;this[_0x32a76e(0x219)]()[_0x32a76e(0x323)](_0x28172f=>{const _0x44570f=_0x32a76e;this[_0x44570f(0x2fd)](this[_0x44570f(0x283)]['registerRenderModule'](_0x436dd9[_0x44570f(0x335)],_0x28172f));}),_0x3d6461(this[_0x32a76e(0x1ec)],[[Ca],[ma],[$],[Vi],[X],[Xi],[wa],[Q],[pa]]);}[_0x1ed081(0x219)](){return[[zi],[xa],[_a]];}[_0x1ed081(0x223)](){const _0x42be24=_0x1ed081;this[_0x42be24(0x2fd)](this[_0x42be24(0x283)][_0x42be24(0x316)](_0x436dd9[_0x42be24(0x335)],[Sa]));}[_0x1ed081(0x26d)](){const _0x2e2468=_0x1ed081;[G,Ai,q,Cr,Tr,Er][_0x2e2468(0x323)](_0x5126c4=>this[_0x2e2468(0x2fd)](this['_commandService']['registerCommand'](_0x5126c4)));}['_initUIPart'](){const _0x29ea3a=_0x1ed081;let _0x34eafb=this[_0x29ea3a(0x1ec)],_0x2ff9b6=_0x34eafb[_0x29ea3a(0x410)](_0x4e8829);this[_0x29ea3a(0x2fd)](_0x2ff9b6[_0x29ea3a(0x41f)](_0x32804c[_0x29ea3a(0x44a)],()=>_0x30129e(la,_0x34eafb)));}};Z(Ta,'type',_0x436dd9[_0x1ed081(0x335)]),Z(Ta,'pluginName','DOCS_SHAPE_UI_PLUGIN'),Z(Ta,_0x1ed081(0x2cb),Oi),Z(Ta,_0x1ed081(0x44b),ki),Ta=Y([_0x2e6e62(_0x1319ac,_0x4e3d23,_0x4249ea,_0x26805d,_0x338f29,_0x44d973,_0xd2d2e,_0x5efad2,_0x2d0bed,_0xf08f8c),J(0x1,_0x4e9d1c(_0x3d54b6)),J(0x2,_0x582229),J(0x3,_0x280fd7),J(0x4,_0x1b5744)],Ta);export{Di as DocsShapeUIMenuSchema,ha as UniverDocsShapeMobileUIPlugin,Ta as UniverDocsShapeUIPlugin};
|
|
1
|
+
const _0xb07969=_0x56ec;(function(_0x189a64,_0x306af1){const _0x2b6ddc=_0x56ec,_0x3267f7=_0x189a64();while(!![]){try{const _0x50e89b=-parseInt(_0x2b6ddc(0x240))/0x1+parseInt(_0x2b6ddc(0x1fc))/0x2+-parseInt(_0x2b6ddc(0x230))/0x3*(-parseInt(_0x2b6ddc(0x26f))/0x4)+-parseInt(_0x2b6ddc(0x307))/0x5*(parseInt(_0x2b6ddc(0x1c4))/0x6)+parseInt(_0x2b6ddc(0x308))/0x7*(parseInt(_0x2b6ddc(0x25a))/0x8)+parseInt(_0x2b6ddc(0x179))/0x9*(-parseInt(_0x2b6ddc(0x17d))/0xa)+-parseInt(_0x2b6ddc(0x252))/0xb*(parseInt(_0x2b6ddc(0x26d))/0xc);if(_0x50e89b===_0x306af1)break;else _0x3267f7['push'](_0x3267f7['shift']());}catch(_0x5f4f02){_0x3267f7['push'](_0x3267f7['shift']());}}}(_0x5727,0x94c67));import{FormulaShapeAnimationController as _0x2f0b11,MobileShapeEditorControls as _0x5613de,MobileShapeEditorService as _0x21d080,MobileShapePickerPanel as _0x507df6,SHAPE_CHANGE_PICKER_COMPONENT as _0x157fc3,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0xdd8679,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x4971b5,ShapeEditPanel as _0x5b0408,ShapeFloatingToolbar as _0x497eb4,ShapeFloatingToolbarService as _0x4df6ac,ShapeFloatingToolbarToggleFactory as _0x44248c,ShapeFormulaRibbonControl as _0x110de0,ShapeGroupEnum as _0x4d18eb,ShapePickerDropdown as _0x406cd8,ShapePickerPanel as _0x18a741,ShapeQuickStyleGallery as _0xaf4c0c,ShapeStyleRibbonControl as _0x329e07,ShapeTextEditorContainer as _0x215be5,ShapeTextFloatMenuRenderControllerBase as _0xeb3327,ShapeTextFloatToolbar as _0x4d68c4,ShapeTextHyperLinkHoverController as _0x334c84,ShapeTextHyperLinkInfo as _0x2d1f69,ShapeTextHyperLinkPopupService as _0x343e38,ShapeTextRibbonControl as _0x2e3acf,ToggleShapeFloatingToolbarOperation as _0x55323c,UniverShapeEditorMobileUIPlugin as _0x5d698b,UniverShapeEditorUIPlugin as _0x16bd14,activateDrawingObject as _0x5e88aa,bindRenderTransformerLifecycle as _0x26417c,buildShapeTextDataUpdate as _0x6f0257,clearActiveDrawingObjects as _0x1c8463,createShapeTextHyperLinkRegions as _0x24c9f8,drawFormulaShapeAnimationLayers as _0x307919,getDrawingTypeNameKey as _0x41e6a6,getTextModel as _0x1fbf5e,getTextStyle as _0x4a5c45,normalizeShapeTextModel as _0x16437f,plainShapeTextToDocumentData as _0x1503a7,prepareShapeTextDocumentData as _0x27fe9f,prepareShapeTextDocumentData as _0x31f136,registerShapeFormatPainter as _0x4f9cea,resolveFormulaShapeAutoFitSize as _0x59eb5a,resolveShapeContextualRibbonHostMode as _0x413b71,resolveShapeTextDocumentPageHeight as _0x4db670,resolveShapeTextDocumentRenderLayout as _0x455dbb,resolveShapeTextEditorBehaviorShapeData as _0x36fd1c,resolveShapeTextEditorWrapStrategy as _0x4e5632,resolveShapeTextHyperLinkAt as _0x197d1c,resolveShapeTextHyperLinkObject as _0x407e0f,shouldAllowShapeTextEditorHostSizeShrink as _0x3fe775,shouldClipShapeTextDocument as _0x4e8641,useFormulaShapeToolbar as _0x5f4d7f}from'@univerjs-pro/shape-editor-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0xad1241,DOC_CONTENT_INSERT_MENU_ID as _0x37f8c8,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x194cd6,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x29427a,DocCanvasPopManagerService as _0x114264,DocEventManagerService as _0x3f17e2,DocLayoutInteractionService as _0xbebd3f,DocParagraphMenuService as _0x250f54,DocPrintInterceptorService as _0x20923d,DocRenderController as _0x5bdc30,DocSelectionRenderService as _0x43d68e,EMPTY_PARAGRAPH_MENU_ID as _0x31b9c3,INSERT_BELLOW_MENU_ID as _0x449e25,UniverDocsMobileUIPlugin as _0x4a4e38,UniverDocsUIPlugin as _0x58cd09,VIEWPORT_KEY as _0x348953}from'@univerjs/docs-ui';import{BuiltInUIPart as _0xcc1654,ComponentManager as _0x2f6cfe,ContextMenuGroup as _0x15d011,ContextMenuPosition as _0x130606,FloatingObjectToolbarPosition as _0xe54cac,FormatPainterSessionService as _0x128469,IMenuManagerService as _0x867b4e,IRibbonService as _0x454476,ISidebarService as _0x60917c,IUIPartsService as _0x35439e,IconManager as _0x16de22,MenuItemType as _0x80d687,MenuManagerPosition as _0x18b81e,MobileMenu as _0x6ccfb9,ObjectPermissionButton as _0x7ed924,RibbonInsertGroup as _0x169de6,connectInjector as _0x4f06fa,getMenuHiddenObservable as _0x3b476c,useDependency as _0x2c5b17,useObservable as _0x291a35}from'@univerjs/ui';import{DEFAULT_DOC_SHAPE_HEIGHT as _0x303ee9,DEFAULT_DOC_SHAPE_WIDTH as _0x4a0d43,DocShapeAnchorPosition as _0x4f5378,DocsShapeService as _0x36af82,InsertDocShapeCommand as _0xbe5f5b,UniverDocsShapePlugin as _0x2d499a,UpdateDocDrawingMetadataCommand as _0x4541aa,UpdateDocShapeDataCommand as _0x45ff60,UpdateDocShapeDataMutation as _0x493300}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x2c3528,ShapeArrowSizeEnum as _0x49e0aa,ShapeArrowTypeEnum as _0xec48d5,ShapeDefaultConfig as _0x5d831c,ShapeFillEnum as _0x32374d,ShapeLineTypeEnum as _0x2f6ee5,ShapeModel as _0x142a4d,ShapeRenderModeEnum as _0x40d6a8,ShapeTextAutoFitType as _0x4d280d,ShapeTypeEnum as _0x18c5ac,isConnectorShape as _0x1c9494,resolveShapeTextBodyBehavior as _0x4bf978}from'@univerjs-pro/engine-shape';function _0x5727(){const _0xaa3067=['docs-shape-ui.shape-format.style-ribbon-control','isHorizontal','shape-editor-ui.arrange.front','decorate','height','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','drawing-ui.objectListPanel.moveBackward','moveRange','1348911PplrtU','Path','docs-shape-ui.quickStyles','wrapStrategy','50IDNGBM','adjHandleFill','angle','onDblclick$','_adjustPointObjects','width','square','backward','presetId','docs-shape-ui.shape-format.quick-style-gallery','attachPopupToObject','drawing-ui.objectListPanel.unlockAll','getDrawingOrder','actions','_canEditShape','TRUE','cancelEditing','order','_drawSimpleText','#3B82F6','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','layoutType','top-bottom','_closeShapeEditPanel','pick','0.8','getFocusDrawings','_drawingManagerService','_toVisualAdjustPoint','refreshTransform$','getImageSourceCache','restore','getDrawingData','univer-grid\x20univer-gap-3','SHAPE','renderDrawingShape','data','getShapeDataById','_ribbonService','add$','docs-shape-ui.objectListPanel.open','drawings','label','hideInfoPopup','setShapeData','getInverseCoord','DocsShapeWrapInFrontOfTextIcon','getRenderUnitById','front','_init','get','drawing-ui.objectListPanel.description','_adjHandlerPointerUp','clipByShape','DocumentEntity','_baseShapeHeight','isMainScene','doc','registerComponent','DRAWING_SHAPE','segmentId','version','doc.operation.update-shape-type','currentAdjustValues','getActiveTextRange','_props','params','showContextualTab','canDispose','parent','_draw','126552fEwFQi','src','resize','classType','getRealBound','panel','symbol','find','max','getPresentation','_docsShapeService','custom','onPointerMove$','setEditing','SpAutoFit','startIndex','focus$','_updateAdjustControlPositions','docs-shape-ui.crop.shape','spaceBelowApply','getState','permissionPointUpdate$','prototype','popup','doc.image-clip.shape-picker.component','getParent','docs-shape-ui.ribbon.shape-format.arrange-back','drawing-ui.objectListPanel.descriptionPlaceholder','_hyperLinkRegions','_docCanvasPopManagerService','unitId','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','clip-','value','_registerOperations','docs-shape-text-','beginPath','getObjectIncludeInGroup','oKey','doc.shape.text.float-menu','SHAPE_TEXT','getCurrentUnitOfType','offsetX','Arrow','shapeId','_toScenePoint','getUnit','_initPrinting','_update','fontFamily','visible','type','dispose','sheet.image-clip.shape-picker.component','LAYOUT','isDrawingObject','2391094zNdLRz','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','svg','onStarting','remove$','disableObjectsEvent','drawing-ui.objectListPanel.close','srcRect','getSelectedObjectMap','isRenderLinePointsMode','registerCommand','buildClipPath','_shapeTextEditingService','extensionGroups','flipX','_renderWithCache','back','getShapeData','_initUIPart','text','_context','_updateShape','DOCS_SHAPE_UI_PLUGIN','startOffset','registerClipDelegate','footerId','drawing-ui.objectListPanel.expand','paragraph','OFFSET','registerRenderModule','executeCommand','cells','isLineShape','_docDrawingShapeRenderController','flipY','DocsShapeWrapSquareIcon','set','_updateSrcRectByTransform','setFillImage','setContextValue','Rect','paragraphMenuPlacement','inline','_registerFloatingToolbar','getDrawingByParam','trim','_drawShapeText','icon','horizontal','_insertShapes','behindDoc','getContextValue','3GFEjDo','extraProps','_mobileEditorService','top-center','drawing-ui.objectListPanel.showAll','contentHeight','complete','refreshShapeFillImage','shapeModel','map','_config','_menuManagerService','.below','isInGroup','_applyFormulaAutoFitSize','_openShapeEditPanel','728666xxUMCG','_shapeId','_imageIoService','_getShapeInfo','updateContext','skeHeaders','getDrawingOKey','drawing-ui.objectListPanel.dragToReorder','_onSavingEditorData$','image','enableObjectsEvent','docs-shape-format-font-family-menu','getFocusedUnit','OTHERS','setPresentation','drawing-ui.objectListPanel.unlockHint','_disposePopupsByUnit','sectionFloating','763301UrJDgA','_baseShapeWidth','_completionFrame','getShapeTypeById','VIEW_MAIN','visible$','applyPoint','rect','88wTQRGg','size','DocsShapeWrapTopBottomIcon','onload','contentVerticalOffset','setOnSavingEditorData','_activeShapeModel','save','_configService','setCanUseShapeClip','refreshFormulaPresentation','stroke','onerror','vertical-center','PictureFill','sin','changeEnd$','getEditing','drawing-ui.objectListPanel.lockHint','12sUDNvo','SolidLine','3978308KgdMSX','getImage','adjHandleSize','docs-shape-ui.hidePanel','bottom','makeDirty','RIBBON','getViewports','transformVector2SceneCoord','Image','doc.operation.open-shape-object-list-panel','scene','sectionCanvas','_transform','onRendered','docs-shape-ui.textWrap.inline','doc.shape.floating-toolbar','_getActiveDrawingParam','_shapeFormulaService','Copy','includes','LEFT','docs-shape-ui.ribbon.shape-format.formula-control','function','adjName','_isShouldShowDrawingShapeAdjust','forward','pageWidth','values','getBody','getPageDrawingIds','string','0.14','OPERATION','left','skeFooters','isRichText','shape-editor-ui.arrange.forward','constructor','COMMAND','drawingType','setConfig','style','update$','_popupTargetKeys','clip','shapeText','transformByState','M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','_activeShapeInfo','GROUP','_getShapePopup','setSrcRect','UNIVER_SHEET','doc.shape.object-list.panel','object','isHit','5.5','_endLayoutInteraction','IN_FRONT_OF_TEXT','DRAWING_DOM','getTransformerByCreate','onCommandExecuted','subUnitId','menuRange','SELECTOR','drawing-ui.objectListPanel.filterLocked','default','offsetY','shapeKey','DocsShapeWrapInlineIcon','fallbackWidth','_isOpenedShapeEditPanel','behind','dataModel','_initSelection','actualHeight','BUTTON','docs-shape-ui.ribbon.shape-format.wrapping-style','stopPropagation','open','fillType','#2563EB','_injector','presentation','pluginName','univer-box-border\x20univer-px-4\x20univer-text-sm','_sidebarService','transform','docs-shape-ui.mobile.style','fill','rows','updateDocumentDataMargin','_clipService','add','getShapeType','resetCursor','drawing-ui.objectListPanel.unlock','getDrawingVisible','docs-shape-ui.textWrap.inFrontText','_instanceService','_urlImageService','doc.operation.open-doc-shape-format-panel','_contextService','forEach','render','_registerDrawingTransformHandler','_drawRichTextLayer','drawing-ui.objectListPanel.lockAll','interceptor','flatMap','_lastEditingShapeKey','getShapeTextData','docs-shape-ui.insertShape','packageName','register','componentKey','getSnapshot','asObservable','paragraphId','clear','intercept','resolveHyperLinkAt','animationEnabled','drawingId','drawing','WRAP_NONE','BottomIcon','_registerDrawingFocusChangeHandler','doc.command.menu-insert-shape','_loadShapePictureFill','has','call','getAllRenderersOfType','shape-editor-ui.arrange.back','drawing-ui.objectListPanel.details','_loadAndSetImage','_getDependencies','_componentManager','docs-shape-ui.textWrap.behindText','0\x200\x2020\x2020','shape-editor-ui.toolbar.changeShape','getShapeTextRect','_getSceneByUnitId','some','drawing-ui.objectListPanel.show','_activeShapeAdjustPointList','1.0.3','next','getSelfOrHeaderFooterModel','prstGeom','_iconManager','80QsXCqr','193571bEpYjn','WRAP_TOP_AND_BOTTOM','endOffset','docs-shape-ui.objectListPanel.title','close','featurePluginUpdateNotification','getDrawingSearch','disposeWithMe','round','_transformCalculateSrcRect','TOP','addObject','drawing-ui.objectListPanel.sectionFloating','_univerInstanceService','marginTop','_canEdit','drawing-ui.objectListPanel.title','_baseShapeTop','_layoutInteraction','isHitLine','_clearShapeAdjustControls','_commandService','push','hideContextualTab','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','docs-shape-ui.textWrap.topAndBottom','isEditing','_formulaAnimation','description','below','length','clearControl$','_shapeFloatingToolbarService','formulaPresentation','currentColor','unregister','Line','getDrawingEffectBounds','skeTables','_docPrintInterceptorService','drawing-ui.objectListPanel.hide','getShapeModel','clipHeight','create','_formulaKey','doc.shape.edit.panel','changing$','subscribe','drawing-ui.objectListPanel.sectionCanvas','_adjHandlerPointerMove','UNIVER_DOC','doc.shape.picker.component','getAutoFitPresentations','_activeAdjustInfo','getDrawingDataForUnit','docs-shape-ui.ribbon.shape-format.style-control','name','_getShapeAdjustPointListById','indexOf','getTransformer','headerId','_registerPickers','getDrawingPoints','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','_releaseRenderCache','PaintIcon','setAdjustValueByName','docs-shape-ui.mobile.delete','drawing-ui.objectListPanel.typeNames.','getShapePopupMenus','cos','keys','pages','focusDrawing','top','getSkeletonData','onPointerUp$','translateWithPrecision','path','docs-shape-ui.deleteShape','span','shape-editor-ui.toolbar.quickStyles','getCurrentTypeOfUnit$','formulaBinding','UUID','_getShapeAdjustInfosById','_initMenu','transformForAngle','MoveUpIcon','DocsShapeTextEditorContainer','completeEditing','getActiveViewportByCoord','_updateShapeAdjustControls','setFormulaPresentation','endArrow','startArrow','_setTransForm','ShapeIcon','shape-text-','setPrstGeom','shapeType','editingParams$','_adjName','_baseShapeLeft','INLINE','_sidebarDisposable','setShapeProps','color','filter','SolidFill','getInterceptPoints','_editingParams$','getUnitId','composeMatrix','getValue','animateFormulaPresentation','getVisible','entries','getAdjustInfoByName','docs-shape-ui.shape-format.formula-ribbon-control','docs-shape-ui.ribbon.shape-format.arrange-front','behindText','_getDisposePopups','_shapeEditPanelVersion','updateShapeFillImage','fillImageSource','disableShapeOption','-layout','subscribeEvent','target','_drawRichText','setCursor','_hide','drawing-ui.objectListPanel.moveForward','getMatrix','drawing-ui.objectListPanel.noSelection','_getFocusedShapeAtPoint','docs-shape-ui.openPanel','canvas','engine','_registerObjectListPanel','current','_getActiveDrawingShape','div','with','_renderManagerService','_registerIcons','getDrawingEditable','docs-shape-ui.textWrap.square','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','error','1.2','_visible','1em','localeService','onSavingEditorData$','reduce','defineProperty','onReady','changeStart$','_registerComponents','_popupMenuListener','warn','_subUnitId','_getRenderModules','getUnitType','draw','clipTop','setCollapsedIds','FromArray','refreshAdjustControls','WRAP_SQUARE','getCanvasElement','_docLayoutInteractionService','attachTransformerTo','ObjectLayersIcon','doc-shape-adjust-point-','skeDrawings','unsubscribe','shapeData','doc.operation.close-doc-shape-format-panel','_createShapeAdjustControls','invert','getAdjustValueByName','splice','delete','pipe','_unitId','_handleCreateControl','syncExecuteCommand','_initialize','calcAdjValues','docs-shape-ui.ribbon.shape-format.text-control','calculate','_activeShapeId','createControl$','_isStartAdjusting','_permissionService','_shapeRenderController','_clearCompletionFrame','DRAWING_IMAGE','CONTENT','context-bar','getActualSize','TopmostIcon','selectable','BEHIND_TEXT','docs-shape-ui.formatShape','_refreshShapeData','_initCommands','title','_clearPopups','objects','strokeWidth','_formulaShapes','_localeService','ShapeFormatSettingIcon','viewBound','setFallbackVisible','MoveDownIcon'];_0x5727=function(){return _0xaa3067;};return _0x5727();}import{ShapeFormulaService as _0x184033,UniverShapeEditorPlugin as _0x17866d,applyQuickStyleToShapeData as _0x23cb6b,cloneShapeDataForType as _0x11a9b5,createShapeFormulaDocument as _0x316dd3,createShapeTextBoxShapeData as _0x506c52,getShapeQuickStylePreset as _0x5d2fab,getShapeQuickStyleType as _0x4a3830,resolveActiveShapeQuickStylePresetId as _0x60290e}from'@univerjs-pro/shape-editor';import{ArrangeTypeEnum as _0x3c626a,BooleanNumber as _0x16c0b3,CommandType as _0x443e82,DependentOn as _0x3e509d,Disposable as _0x47cfe0,DisposableCollection as _0x4f92f4,DocumentDataModel as _0x320bf5,DrawingTypeEnum as _0x507337,FOCUSING_COMMON_DRAWINGS as _0x6e7cbb,FOCUSING_SHAPE_TEXT_EDITOR as _0x58fefd,HorizontalAlign as _0x22763e,ICommandService as _0x4e68a9,IConfigService as _0x12f4ed,IContextService as _0x244f46,IImageIoService as _0x9eb47c,IPermissionService as _0x52503b,IURLImageService as _0x501ca3,IUniverInstanceService as _0x97a100,Inject as _0x4e047b,Injector as _0x27c23b,LocaleService as _0xe303eb,Plugin as _0x3dcd10,PositionedObjectLayoutType as _0x1fafc0,UniverInstanceType as _0x1b3194,VerticalAlign as _0x4bcf3d,createInternalEditorID as _0x303f18,generateRandomId as _0x42095d,getParagraphContentStartOffset as _0x2f7fdc,merge as _0x504bfd,registerDependencies as _0x5ee79c,toDisposable as _0x35b1c9,touchDependencies as _0x28e47e}from'@univerjs/core';import{DocInterceptorService as _0x3d1cb9,DocSelectionManagerService as _0x4eb510,RichTextEditingMutation as _0x505338,SetDocumentPermissionCommand as _0x21ace8,UniverDocsPlugin as _0x408d49,canEditDocumentTargets as _0x33aa98,getDocumentDrawingSegmentId as _0x502f97,getDocumentEntityParentPermissionObjectIds as _0x57f81a,getDocumentEntityPermissionObjectId as _0x4ecdaa,getDocumentPermissionValue as _0x56d289}from'@univerjs/docs';import{IDocDrawingService as _0x15a612,RemoveDocDrawingCommand as _0x5bac08,SetDocDrawingArrangeCommand as _0x51e9f9,TextWrappingStyle as _0x2db77a,UpdateDocDrawingWrappingStyleCommand as _0x3e0463,UpdateDrawingDocTransformCommand as _0x457e80}from'@univerjs/docs-drawing';import{CURSOR_TYPE as _0x29a1b3,Circle as _0x2c973b,DRAWING_OBJECT_LAYER_INDEX as _0x2958d1,DocumentSkeleton as _0x51294b,DocumentViewModel as _0x74ae6b,Documents as _0x159cfc,IRenderManagerService as _0x2de7f2,RENDER_CLASS_TYPE as _0x23ec4c,Shape as _0x58cf13,Transform as _0x416f20,UniverRenderEnginePlugin as _0x5797e3,Vector2 as _0x22f150,getLastLine as _0x54e01c,setDocsCustomBlockRenderViewportProvider as _0x145692}from'@univerjs/engine-render';import{IDrawingManagerService as _0x5e0832,SetDrawingSelectedOperation as _0x3eea09,UniverDrawingPlugin as _0x47a564,getDrawingShapeKeyByDrawingSearch as _0x4dbb43}from'@univerjs/drawing';import{DrawingCommonPanel as _0x314a33,DrawingImageClipService as _0x421fa3,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x10fa33,MobileObjectListPanel as _0x1c1392,OBJECT_LIST_FLOATING_SECTION_ID as _0x218ad6,ObjectListPanelBase as _0x3aafaf,UniverDrawingMobileUIPlugin as _0x64eb9d,UniverDrawingUIPlugin as _0x56cb01,getObjectListPanelSectionIdForDrawingType as _0x3c3b87,insertGroupObject as _0x3cac50}from'@univerjs/drawing-ui';import{Fragment as _0x488761,jsx as _0x3ae1d4,jsxs as _0x3f77f7}from'react/jsx-runtime';import{BehaviorSubject as _0x1e3b2d,Observable as _0x5eb731,distinctUntilChanged as _0x21b986,map as _0x456f26,merge as _0x50281f,of as _0x3b3dbe,startWith as _0xc4c7f}from'rxjs';import{UniverLicensePlugin as _0x2270d5}from'@univerjs-pro/license';import{DocDrawingPosition as _0x4b41dd,DocDrawingTextWrap as _0x297d86,MobileDocDrawingPosition as _0x3c7de0,MobileDocDrawingTextWrap as _0x1b9c40,UniverDocsDrawingMobileUIPlugin as _0x1fbb81,UniverDocsDrawingUIPlugin as _0x403f8a}from'@univerjs/docs-drawing-ui';import{BottomIcon as _0x191e47,MoreDownIcon as _0x5e6b79,MoreUpIcon as _0x5250f0,MoveDownIcon as _0x54d043,MoveUpIcon as _0x42135f,ObjectLayersIcon as _0x11cff1,ShapeFormatSettingIcon as _0x3eea86,TextWrapShapeIcon as _0x58b7bb,TopmostIcon as _0x3f3ea3}from'@univerjs/icons';import{MobileActionRow as _0x53dacb}from'@univerjs/design';import{memo as _0xfc0b1e,useEffect as _0x25db27,useMemo as _0x25a507,useReducer as _0x144fd5,useState as _0x32384b}from'react';import{UnitAction as _0x472897,UnitObject as _0x43baa7}from'@univerjs/protocol';function _0x56ec(_0x1bcb20,_0x4e8497){_0x1bcb20=_0x1bcb20-0x9a;const _0x572750=_0x5727();let _0x56ec06=_0x572750[_0x1bcb20];return _0x56ec06;}function wr(_0x5d432b,_0x45de07){const _0x176f1f=_0x56ec;if(_0x45de07){if(_0x1c9494(_0x5d432b)&&(_0x45de07[_0x176f1f(0xf4)]||_0x45de07[_0x176f1f(0xf3)]))return{'ln':{'startArrow':_0x45de07[_0x176f1f(0xf4)]?{'type':_0xec48d5[_0x176f1f(0x1ef)],'size':_0x49e0aa['Medium']}:void 0x0,'endArrow':_0x45de07['endArrow']?{'type':_0xec48d5[_0x176f1f(0x1ef)],'size':_0x49e0aa['Large']}:void 0x0}};if(_0x5d432b===_0x18c5ac[_0x176f1f(0x224)]&&(_0x45de07[_0x176f1f(0x22c)]||_0x45de07['vertical']))return _0x506c52({'fill':{'fillType':_0x32374d[_0x176f1f(0x102)],'color':_0x176f1f(0x190)},'isHorizontal':!!_0x45de07['horizontal'],'stroke':{'lineStrokeType':_0x2f6ee5[_0x176f1f(0x26e)],'width':0x1,'color':_0x176f1f(0x2c1)}});}}function Tr(_0x26a5e4,_0x31709c){const _0x553e1f=_0x56ec;var _0xb6be94;let _0x81a26a=_0x31709c['segmentId']??'',_0x4cd77e=(_0xb6be94=_0x26a5e4[_0x553e1f(0x304)](_0x81a26a))==null?void 0x0:_0xb6be94[_0x553e1f(0x28c)]();if(!_0x4cd77e)return null;let _0x356b19=_0x4cd77e['paragraphs']??[],_0x2c0f25=_0x356b19[_0x553e1f(0x1cb)](_0x1f6c97=>{const _0x1b9028=_0x553e1f;let _0x1207e2=_0x2f7fdc(_0x4cd77e,_0x1f6c97);return _0x31709c['startOffset']>=_0x1207e2&&_0x31709c['startOffset']<=_0x1f6c97[_0x1b9028(0x1d3)];})??_0x356b19[_0x356b19[_0x553e1f(0xb3)]-0x1];return _0x2c0f25?{'paragraphId':_0x2c0f25[_0x553e1f(0x2e6)],'segmentId':_0x81a26a,'position':_0x4f5378[_0x553e1f(0x218)],'offset':_0x31709c[_0x553e1f(0x213)]-_0x2f7fdc(_0x4cd77e,_0x2c0f25)}:null;}function Er(_0x4b90e2,_0x332e36,_0x4ae7c6){const _0x99e92c=_0x56ec;var _0x338141,_0x364101;if(!_0x4ae7c6)return null;let _0x391b49=(_0x338141=_0x4b90e2[_0x99e92c(0x1af)](_0x2de7f2)[_0x99e92c(0x1ac)](_0x332e36))==null?void 0x0:_0x338141[_0x99e92c(0x125)](_0x250f54)['activeTarget'];if(!_0x391b49)return null;let _0x258cae=_0x4ae7c6===_0x99e92c(0xb2)?{'startOffset':_0x391b49[_0x99e92c(0x178)][_0x99e92c(0x30a)],'endOffset':_0x391b49[_0x99e92c(0x178)][_0x99e92c(0x30a)]}:_0x391b49[_0x99e92c(0x2af)];return{'startOffset':_0x258cae[_0x99e92c(0x213)],'endOffset':_0x258cae[_0x99e92c(0x30a)],'collapsed':_0x258cae[_0x99e92c(0x213)]===_0x258cae[_0x99e92c(0x30a)],'segmentId':((_0x364101=_0x391b49[_0x99e92c(0x217)])==null?void 0x0:_0x364101[_0x99e92c(0x1b9)])??''};}const U={'type':_0x443e82[_0xb07969(0x296)],'id':_0xb07969(0x2f0),'handler':async(_0x5f1ae8,_0x477512)=>{const _0x4a1d7b=_0xb07969;let _0x13779c=_0x5f1ae8['get'](_0x97a100)[_0x4a1d7b(0x1ed)](_0x1b3194[_0x4a1d7b(0xc7)]);if(!_0x13779c)return!0x1;let _0xb08d07=_0x5f1ae8[_0x4a1d7b(0x1af)](_0x4e68a9),_0x27780b=_0x13779c['getUnitId'](),_0xdf24d=_0x477512[_0x4a1d7b(0x1f0)]??_0x42095d(),_0x389fbf=_0x477512[_0x4a1d7b(0x182)]??_0x4a0d43,_0x28c245=_0x477512['height']??_0x303ee9,_0x441ba1=_0x477512['shapeData']??wr(_0x477512[_0x4a1d7b(0x1e5)],_0x477512['enhanceParams']),_0x54e49e=Er(_0x5f1ae8,_0x27780b,_0x477512[_0x4a1d7b(0x225)])??_0x5f1ae8[_0x4a1d7b(0x1af)](_0x4eb510)[_0x4a1d7b(0x1bd)]();if(!_0x54e49e)return!0x1;let _0x2c4efa=Tr(_0x13779c,_0x54e49e);return _0x2c4efa?!!_0xb08d07[_0x4a1d7b(0x152)](_0xbe5f5b['id'],{'unitId':_0x27780b,'shapeId':_0xdf24d,'shapeType':_0x477512[_0x4a1d7b(0x1e5)],'shapeData':_0x441ba1,'transform':{'width':_0x389fbf,'height':_0x28c245},'placement':{'wrappingStyle':_0x2db77a['INLINE'],'anchor':_0x2c4efa}}):!0x1;}},W=_0xb07969(0xc2),Dr='docs-shape-ui.ribbon.shape-format',Or=_0xb07969(0x2a5),kr=_0x303f18(_0xb07969(0x1ec)),Ar=_0xb07969(0x1eb),jr=_0xb07969(0xee),Mr={'id':_0xb07969(0x279),'type':_0x443e82['COMMAND'],'handler':(_0x33df8d,_0x5c22ef)=>{const _0xc3a0ad=_0xb07969;let _0x526598=_0x33df8d[_0xc3a0ad(0x1af)](_0x60917c),_0x5ae547=_0x33df8d[_0xc3a0ad(0x1af)](_0xe303eb),_0x2fd6e1=_0x33df8d[_0xc3a0ad(0x1af)](_0x5e0832);return(_0x5c22ef==null?void 0x0:_0x5c22ef[_0xc3a0ad(0x1e5)])==='close'?(_0x526598[_0xc3a0ad(0x30c)](Or),!0x0):(_0x526598[_0xc3a0ad(0x2bf)]({'id':Or,'header':{'title':_0x5ae547['t'](_0xc3a0ad(0x30b))},'children':{'label':Or},'onClose':()=>{const _0x4d2691=_0xc3a0ad;_0x2fd6e1[_0x4d2691(0xde)](null);},'width':0x168}),!0x0);}},G={'type':_0x443e82[_0xb07969(0x290)],'id':_0xb07969(0x2d5),'handler'(){return!0x0;}};function Nr(_0x20c6bd){const _0x2d8469=_0xb07969;let _0x314f6a=_0x20c6bd[_0x2d8469(0x1af)](_0x5e0832)[_0x2d8469(0x197)](),_0x4f2a03=_0x314f6a[_0x2d8469(0xb3)]===0x1?_0x314f6a[0x0]:null;if(!_0x4f2a03||_0x4f2a03[_0x2d8469(0x297)]!==_0x507337['DRAWING_SHAPE'])return null;let _0x4a5916=_0x20c6bd[_0x2d8469(0x1af)](_0x36af82),_0x38f171=_0x4a5916[_0x2d8469(0x255)](_0x4f2a03['unitId'],_0x4f2a03['subUnitId'],_0x4f2a03['drawingId']),_0x3fa244=_0x4a5916[_0x2d8469(0x1a2)](_0x4f2a03['unitId'],_0x4f2a03[_0x2d8469(0x2ae)],_0x4f2a03['drawingId']);return _0x38f171===void 0x0||!_0x3fa244?null:{'drawing':_0x4f2a03,'shapeData':_0x3fa244,'shapeType':_0x38f171};}const Pr={'id':'doc.operation.apply-shape-quick-style','type':_0x443e82[_0xb07969(0x290)],'handler':(_0x1c4afc,_0x2f9f21)=>{const _0x37ed84=_0xb07969;let _0x480a16=Nr(_0x1c4afc),_0x331137=_0x5d2fab((_0x2f9f21==null?void 0x0:_0x2f9f21[_0x37ed84(0x185)])??(_0x2f9f21==null?void 0x0:_0x2f9f21['value'])??'');if(!_0x480a16||!_0x331137||_0x331137['type']!==_0x4a3830(_0x480a16[_0x37ed84(0x148)]))return!0x1;let _0x51bcbd=_0x23cb6b(_0x480a16[_0x37ed84(0x148)],_0x331137);if(!_0x51bcbd)return!0x1;let {drawing:_0x2b92a7}=_0x480a16;return _0x1c4afc['get'](_0x4e68a9)['executeCommand'](_0x45ff60['id'],{'unitId':_0x2b92a7[_0x37ed84(0x1e2)],'shapeId':_0x2b92a7[_0x37ed84(0x2eb)],'shapeData':_0x51bcbd,'oldShapeJSON':{'oldShapeData':_0x480a16[_0x37ed84(0x148)]}});}},Fr={'id':_0xb07969(0x1bb),'type':_0x443e82[_0xb07969(0x290)],'handler':(_0x59bc77,_0x5d91c2)=>{const _0x256b9d=_0xb07969;let _0x4826b2=Nr(_0x59bc77),_0x250f48=(_0x5d91c2==null?void 0x0:_0x5d91c2[_0x256b9d(0xf9)])??(_0x5d91c2==null?void 0x0:_0x5d91c2[_0x256b9d(0x1e5)]);if(!_0x4826b2||!_0x250f48||_0x1c9494(_0x4826b2[_0x256b9d(0xf9)])||_0x1c9494(_0x250f48))return!0x1;let _0x58385e=_0x11a9b5(_0x4826b2['shapeData'],_0x250f48);if(!_0x58385e)return!0x1;let {drawing:_0x47fbfb}=_0x4826b2;return _0x59bc77[_0x256b9d(0x1af)](_0x4e68a9)[_0x256b9d(0x21a)](_0x45ff60['id'],{'unitId':_0x47fbfb['unitId'],'shapeId':_0x47fbfb[_0x256b9d(0x2eb)],'shapeType':_0x250f48,'shapeData':_0x58385e,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x4826b2[_0x256b9d(0xf9)],'oldShapeData':_0x4826b2[_0x256b9d(0x148)]}});}};function K(_0x3c8313,_0x5723a1){return function(_0x4a374e,_0x40771c){_0x5723a1(_0x4a374e,_0x40771c,_0x3c8313);};}function q(_0x4beed9,_0x28aa55,_0x3860bb,_0x3baa85){const _0x17edb7=_0xb07969;var _0x4efef7=arguments['length'],_0x1c589b=_0x4efef7<0x3?_0x28aa55:_0x3baa85===null?_0x3baa85=Object['getOwnPropertyDescriptor'](_0x28aa55,_0x3860bb):_0x3baa85,_0x30ca3a;if(typeof Reflect==_0x17edb7(0x2a6)&&typeof Reflect['decorate']==_0x17edb7(0x286))_0x1c589b=Reflect[_0x17edb7(0x174)](_0x4beed9,_0x28aa55,_0x3860bb,_0x3baa85);else{for(var _0x11f906=_0x4beed9[_0x17edb7(0xb3)]-0x1;_0x11f906>=0x0;_0x11f906--)(_0x30ca3a=_0x4beed9[_0x11f906])&&(_0x1c589b=(_0x4efef7<0x3?_0x30ca3a(_0x1c589b):_0x4efef7>0x3?_0x30ca3a(_0x28aa55,_0x3860bb,_0x1c589b):_0x30ca3a(_0x28aa55,_0x3860bb))||_0x1c589b);}return _0x4efef7>0x3&&_0x1c589b&&Object[_0x17edb7(0x132)](_0x28aa55,_0x3860bb,_0x1c589b),_0x1c589b;}let J=class extends _0x47cfe0{constructor(_0x169c0b,_0x1626bc){const _0x34c1fc=_0xb07969;super(),this[_0x34c1fc(0x2cc)]=_0x169c0b,this[_0x34c1fc(0x198)]=_0x1626bc,this['_registerImageShapeClipDelegate'](),this[_0x34c1fc(0x2cc)][_0x34c1fc(0x263)](!0x0),this[_0x34c1fc(0x9c)]({'dispose':()=>this[_0x34c1fc(0x2cc)]['setCanUseShapeClip'](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x337215=_0xb07969;let _0x9cd2e2=new Map(),_0x2b20fa=this[_0x337215(0x2cc)][_0x337215(0x214)]((_0x2aacce,_0x51c7cf,_0xf77202,_0x3f4eed,_0x3b79fb)=>{const _0x1fff60=_0x337215;let _0x562fb8=_0x51c7cf;if(_0x562fb8===_0x18c5ac['None']||_0x51c7cf===_0x1fff60(0x1cf))return!0x1;try{let _0x2157dc=_0x9cd2e2['get'](_0x51c7cf);return _0x2157dc||(_0x2157dc=new _0x142a4d(_0x562fb8,_0x1fff60(0x1e4)+_0x51c7cf),_0x9cd2e2['set'](_0x51c7cf,_0x2157dc)),_0x2157dc['clearAdjustValue'](),_0x3b79fb&&Object[_0x1fff60(0xdc)](_0x3b79fb)[_0x1fff60(0xb3)]>0x0&&_0x2157dc[_0x1fff60(0x1a9)]({'adjustValues':_0x3b79fb},!0x0),_0x2157dc[_0x1fff60(0x244)]({'width':_0xf77202,'height':_0x3f4eed}),_0x2157dc[_0x1fff60(0x207)](_0x2aacce,{'left':0x0,'top':0x0,'width':_0xf77202,'height':_0x3f4eed});}catch{return!0x1;}});this[_0x337215(0x9c)](_0x2b20fa),this[_0x337215(0x9c)]({'dispose':()=>_0x9cd2e2[_0x337215(0x2e7)]()});}[_0xb07969(0x1b2)](_0x1c0b91,_0x997e84,_0xcc42fc,_0x3e6df7,_0x637a3b){const _0x56929b=_0xb07969;let _0x4ea002=this[_0x56929b(0x198)][_0x56929b(0x19d)](_0x1c0b91,_0x997e84)[_0xcc42fc];_0x4ea002&&_0x4ea002[_0x56929b(0x297)]===_0x507337[_0x56929b(0x15d)]&&this['_drawingManagerService'][_0x56929b(0x9a)]([{..._0x4ea002,'prstGeom':_0x3e6df7,'adjustValues':_0x637a3b}]);}};J=q([K(0x0,_0x4e047b(_0x421fa3)),K(0x1,_0x4e047b(_0x5e0832))],J);const Ir=_0xb07969(0xc8),Lr=_0xb07969(0x1dc);function Rr({onShapeClick:_0x4825d1,excludeGroups:_0x7a40ba}){const _0x46748d=_0xb07969;return _0x3ae1d4(_0x18a741,{'excludeGroups':_0x7a40ba,'onShapeClick':_0x4825d1,'scrollContainer':_0x46748d(0x1c2)});}function zr(){let _0x3cd390=_0x2c5b17(_0x5e0832),_0x1036d7=_0x2c5b17(J);return _0x31c7a8=>{const _0x19cc98=_0x56ec;let _0x37fd53=_0x3cd390[_0x19cc98(0x197)]()['find'](_0x29cab9=>_0x29cab9['drawingType']===_0x507337[_0x19cc98(0x15d)]);_0x37fd53&&_0x1036d7['clipByShape'](_0x37fd53[_0x19cc98(0x1e2)],_0x37fd53['subUnitId'],_0x37fd53[_0x19cc98(0x2eb)],_0x31c7a8[_0x19cc98(0x1f7)]);};}function Br(){const _0x1a7076=_0xb07969;let _0x4ee574=zr();return _0x3ae1d4(_0x406cd8,{'buttonLabel':_0x1a7076(0x1d6),'excludeGroups':[_0x4d18eb[_0x1a7076(0xb9)]],'onShapeClick':_0x4ee574});}function Vr(){const _0x329064=_0xb07969;let _0x22be19=_0x2c5b17(_0x2f6cfe),_0x30f968=_0x2c5b17(_0x5e0832),_0x5c2275=_0x2c5b17(_0x97a100),_0x4880ab=_0x30f968[_0x329064(0x197)]()[0x0],_0x1a2bcc=_0x4880ab?_0x5c2275[_0x329064(0x13a)](_0x4880ab[_0x329064(0x1e2)]):void 0x0,_0x2eb748=_0x1a2bcc===_0x1b3194[_0x329064(0xc7)]?Lr:_0x1a2bcc===_0x1b3194[_0x329064(0x2a4)]?_0x329064(0x1f9):void 0x0,_0x55735f=_0x2eb748?_0x22be19[_0x329064(0x1af)](_0x2eb748):void 0x0;return _0x55735f?_0x3ae1d4(_0x55735f,{}):null;}function Hr({paragraphMenuPlacement:_0x2930e2,PickerComponent:_0xbb534b=Rr}){let _0x4f36f8=_0x2c5b17(_0x4e68a9);return _0x3ae1d4(_0xbb534b,{'onShapeClick':_0x104b0f=>{const _0x1bff1c=_0x56ec;_0x4f36f8[_0x1bff1c(0x21a)](U['id'],{'paragraphMenuPlacement':_0x2930e2,'value':_0x104b0f['type'],'enhanceParams':{'endArrow':_0x104b0f['endArrow'],'startArrow':_0x104b0f['startArrow'],'horizontal':_0x104b0f[_0x1bff1c(0x22c)],'vertical':_0x104b0f['vertical']}});}});}function Ur(_0x5b87dc){const _0x4e0c35=_0xb07969;return _0x42c353=>({'id':U['id'],'type':_0x80d687[_0x4e0c35(0x2b0)],'selections':[{'label':{'name':Ir,'hoverable':!0x1,'selectable':!0x1,'props':_0x5b87dc?{'id':U['id'],'paragraphMenuPlacement':_0x5b87dc}:{'id':U['id']}}}],'icon':_0x4e0c35(0xf6),'title':_0x4e0c35(0x2e0),'tooltip':_0x4e0c35(0x2e0),'hidden$':_0x3b476c(_0x42c353,_0x1b3194['UNIVER_DOC'])});}const Wr=Ur(),Gr=Ur(_0xb07969(0xb2)),Kr=Ur(_0xb07969(0x116));function qr(_0x2abec5){const _0x474fff=_0xb07969;return{'id':Mr['id'],'type':_0x80d687[_0x474fff(0x2bc)],'icon':'ObjectLayersIcon','title':_0x474fff(0x1a5),'tooltip':_0x474fff(0x1a5),'hidden$':_0x3b476c(_0x2abec5,_0x1b3194[_0x474fff(0xc7)])};}function Jr(_0x158cc9,_0x3c5ad9,_0x123f2a,_0x55f1cf,_0x14842e,_0x23f9e2){let _0x30b6fc={'unitId':_0x3c5ad9,'shapeId':_0x55f1cf,'shapeData':_0x23f9e2,'oldShapeJSON':_0x14842e};return _0x158cc9['executeCommand'](_0x45ff60['id'],_0x30b6fc);}function Yr(_0x32cf67,_0x1a9958,_0x158061,_0x28c83b,_0x9471c9,_0x3c2e48){const _0x7a5fce=_0xb07969;let _0x3827a5={'unitId':_0x1a9958,'shapeId':_0x28c83b,'shapeData':_0x3c2e48,'oldShapeJSON':_0x9471c9};return _0x32cf67[_0x7a5fce(0x21a)](_0x45ff60['id'],_0x3827a5);}const Xr=_0xb07969(0x186),Zr=_0xb07969(0x171),Qr='docs-shape-ui.shape-format.text-ribbon-control',$r=_0xb07969(0x10c),ei='docs-shape-ui.shape-format.wrapping-style-label',ti=[{'value':_0x2db77a[_0xb07969(0xfd)],'label':_0xb07969(0x27e),'icon':_0xb07969(0x2b5)},{'value':_0x2db77a[_0xb07969(0x140)],'label':'docs-shape-ui.textWrap.square','icon':_0xb07969(0x21f)},{'value':_0x2db77a['WRAP_TOP_AND_BOTTOM'],'label':_0xb07969(0xae),'icon':_0xb07969(0x25c)},{'value':_0x2db77a[_0xb07969(0x163)],'label':_0xb07969(0x2fa),'icon':'DocsShapeWrapBehindTextIcon'},{'value':_0x2db77a['IN_FRONT_OF_TEXT'],'label':'docs-shape-ui.textWrap.inFrontText','icon':_0xb07969(0x1ab)}];function ni(){let _0x345da8=_0x2c5b17(_0x4e68a9),_0x2f463f=_0x2c5b17(_0x5e0832),_0x424866=_0x2c5b17(_0x36af82),_0x24188e=()=>{const _0x44cd98=_0x56ec;var _0x45a37a;let _0x287ca1=_0x2f463f[_0x44cd98(0x197)]();if(_0x287ca1['length']!==0x1||((_0x45a37a=_0x287ca1[0x0])==null?void 0x0:_0x45a37a['drawingType'])!==_0x507337['DRAWING_SHAPE'])return null;let {unitId:_0x1576dc,subUnitId:_0x4a6be9,drawingId:_0x480ebd}=_0x287ca1[0x0],_0x4dc36a=_0x424866[_0x44cd98(0x255)](_0x1576dc,_0x4a6be9,_0x480ebd),_0xebfb49=_0x424866[_0x44cd98(0x1a2)](_0x1576dc,_0x4a6be9,_0x480ebd);return _0x4dc36a===void 0x0||!_0xebfb49?null:{'unitId':_0x1576dc,'subUnitId':_0x4a6be9,'drawingId':_0x480ebd,'shapeType':_0x4dc36a,'shapeData':_0xebfb49};},_0x13aa1a=_0x291a35(()=>new _0x5eb731(_0x104938=>{const _0x36d383=_0x56ec;let _0x2afa95=()=>_0x104938[_0x36d383(0x303)](_0x24188e()),_0x35656e=_0x2f463f[_0x36d383(0x1d4)][_0x36d383(0xc4)](_0x2afa95),_0x17596c=_0x345da8[_0x36d383(0x2ad)](_0x12f82b=>{_0x12f82b['id']===_0x493300['id']&&_0x2afa95();});return _0x2afa95(),()=>{const _0x19c6d8=_0x36d383;_0x35656e['unsubscribe'](),_0x17596c[_0x19c6d8(0x1f8)]();};}),_0x24188e(),!0x1,[_0x345da8,_0x424866,_0x2f463f]);return{'selection':_0x13aa1a,'updateShapeData':_0x54a2a0=>{const _0x50b5c0=_0x56ec;_0x13aa1a&&Jr(_0x345da8,_0x13aa1a[_0x50b5c0(0x1e2)],_0x13aa1a[_0x50b5c0(0x2ae)],_0x13aa1a[_0x50b5c0(0x2eb)],{'oldShapeData':_0x13aa1a[_0x50b5c0(0x148)]},_0x54a2a0);}};}function ri(){const _0xebab98=_0xb07969;let {selection:_0x17b6f1,updateShapeData:_0x5e83e4}=ni();return _0x17b6f1?_0x3ae1d4(_0x329e07,{'shapeData':_0x17b6f1['shapeData'],'shapeType':_0x17b6f1[_0xebab98(0xf9)],'onUpdateShapeData':_0x5e83e4}):null;}function ii(){const _0x3c8536=_0xb07969;let _0x5e584e=_0x2c5b17(_0x4e68a9),_0x447007=_0x2c5b17(_0xe303eb),{selection:_0x346ea1}=ni();return _0x346ea1?_0x3ae1d4(_0xaf4c0c,{'type':_0x4a3830(_0x346ea1[_0x3c8536(0x148)]),'ariaLabel':_0x447007['t'](_0x3c8536(0x17b)),'activePresetId':_0x60290e(_0x346ea1['shapeData']),'onSelect':_0x5f4d9b=>_0x5e584e[_0x3c8536(0x21a)](Pr['id'],{'presetId':_0x5f4d9b})}):null;}function ai(){const _0x53b9be=_0xb07969;let {selection:_0x7a8ce8,updateShapeData:_0xe192c}=ni();return _0x7a8ce8?_0x3ae1d4(_0x2e3acf,{'fontFamilyPopupDataComponent':_0x53b9be(0x24b),'shapeData':_0x7a8ce8['shapeData'],'onUpdateShapeData':_0xe192c}):null;}function oi(){const _0x4f0f80=_0xb07969;var _0x4dfbce;let {selection:_0x1b8b03,updateShapeData:_0x14e541}=ni(),_0x6cbfd8=_0x5f4d7f({'hostType':_0x1b3194[_0x4f0f80(0xc7)],'unitId':(_0x1b8b03==null?void 0x0:_0x1b8b03[_0x4f0f80(0x1e2)])??'','subUnitId':(_0x1b8b03==null?void 0x0:_0x1b8b03[_0x4f0f80(0x2ae)])??'','shapeId':(_0x1b8b03==null?void 0x0:_0x1b8b03[_0x4f0f80(0x2eb)])??'','shapeData':_0x1b8b03==null?void 0x0:_0x1b8b03[_0x4f0f80(0x148)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x4f0f80(0x273),'onUpdateBinding':_0x4fd389=>_0x14e541({'formulaBinding':_0x4fd389})}),_0x521b0a=((_0x4dfbce=_0x6cbfd8['extensionGroups'])==null?void 0x0:_0x4dfbce[_0x4f0f80(0x2dd)](_0x4f09c9=>_0x4f09c9[_0x4f0f80(0x18a)])['filter'](_0x129712=>_0x129712[_0x4f0f80(0x1f6)]!==!0x1))??[];return _0x1b8b03!=null&&_0x1b8b03[_0x4f0f80(0x148)][_0x4f0f80(0xe8)]?_0x3ae1d4(_0x110de0,{'actions':_0x521b0a,'panel':_0x6cbfd8['panel']}):null;}function si({value:_0x3843d3}){const _0x30ed10=_0xb07969;let _0x3262f1=_0x2c5b17(_0xe303eb),_0x31b09a=ti['find'](_0x22d060=>_0x22d060['value']===_0x3843d3)??ti[0x0];return _0x31b09a?_0x3ae1d4(_0x30ed10(0xe5),{'children':_0x3262f1['t'](_0x31b09a[_0x30ed10(0x1a7)])}):null;}const ci=_0xb07969(0xcc),li=_0xb07969(0x155),ui=_0xb07969(0x285),di='docs-shape-ui.ribbon.shape-format.arrange-forward',fi='docs-shape-ui.ribbon.shape-format.arrange-backward',pi=_0xb07969(0x10d),mi=_0xb07969(0x1de),hi=_0xb07969(0x2bd);function gi(_0x2c253f){const _0x264a12=_0xb07969;let _0x35f733=_0x2c253f['get'](_0x4e68a9),_0xe46f62=_0x2c253f[_0x264a12(0x1af)](_0x5e0832),_0x5f1fb1=_0x2c253f[_0x264a12(0x1af)](_0x36af82);return new _0x5eb731(_0x4ed373=>{const _0x56f028=_0x264a12;let _0x13362c=()=>{const _0xcb02c2=_0x56ec;let _0x3b06fd=Y(_0x2c253f),_0x32756b=_0x3b06fd?_0x5f1fb1[_0xcb02c2(0x1a2)](_0x3b06fd[_0xcb02c2(0x1e2)],_0x3b06fd[_0xcb02c2(0x2ae)],_0x3b06fd[_0xcb02c2(0x2eb)]):null;_0x4ed373['next'](_0x32756b?_0x60290e(_0x32756b)??'':'');},_0x401f7b=_0xe46f62[_0x56f028(0x1d4)]['subscribe'](_0x13362c),_0x3569f9=_0x35f733[_0x56f028(0x2ad)](_0x2b2c4e=>{_0x2b2c4e['id']===_0x493300['id']&&_0x13362c();});return _0x13362c(),()=>{const _0x17b4f0=_0x56f028;_0x401f7b[_0x17b4f0(0x147)](),_0x3569f9[_0x17b4f0(0x1f8)]();};});}function Y(_0x4630a2){const _0x558026=_0xb07969;var _0x2b0435;let _0x279c50=_0x4630a2[_0x558026(0x1af)](_0x5e0832)['getFocusDrawings']();return _0x279c50[_0x558026(0xb3)]===0x1&&((_0x2b0435=_0x279c50[0x0])==null?void 0x0:_0x2b0435['drawingType'])===_0x507337['DRAWING_SHAPE']?_0x279c50[0x0]:null;}function _i(_0x2177c1){const _0x350d1b=_0xb07969;return(_0x2177c1==null?void 0x0:_0x2177c1[_0x350d1b(0x192)])===_0x1fafc0[_0x350d1b(0x2ed)]?_0x2177c1['behindDoc']===_0x16c0b3[_0x350d1b(0x18c)]?_0x2db77a[_0x350d1b(0x163)]:_0x2db77a['IN_FRONT_OF_TEXT']:(_0x2177c1==null?void 0x0:_0x2177c1['layoutType'])===_0x1fafc0[_0x350d1b(0x140)]?_0x2db77a[_0x350d1b(0x140)]:(_0x2177c1==null?void 0x0:_0x2177c1['layoutType'])===_0x1fafc0[_0x350d1b(0x309)]?_0x2db77a[_0x350d1b(0x309)]:_0x2db77a['INLINE'];}function vi(_0x263d56){const _0x21df53=_0xb07969;let _0x28b79b=_0x263d56[_0x21df53(0x1af)](_0x4e68a9),_0x2382fa=_0x263d56[_0x21df53(0x1af)](_0x5e0832),_0x451365=_0x263d56[_0x21df53(0x1af)](_0x97a100);return new _0x5eb731(_0x45afe3=>{const _0x230ec2=_0x21df53;let _0x34d231=()=>{const _0x448b26=_0x56ec;var _0xb602d9;let _0x91b720=Y(_0x263d56),_0x3418ab=_0x91b720?_0x451365[_0x448b26(0x1f2)](_0x91b720[_0x448b26(0x1e2)],_0x1b3194[_0x448b26(0xc7)]):void 0x0;_0x45afe3[_0x448b26(0x303)](_i(_0x91b720?_0x3418ab==null||(_0xb602d9=_0x3418ab[_0x448b26(0x2e4)]()[_0x448b26(0x1a6)])==null?void 0x0:_0xb602d9[_0x91b720[_0x448b26(0x2eb)]]:void 0x0));},_0x133f53=_0x2382fa['focus$'][_0x230ec2(0xc4)](_0x34d231),_0x583e1d=_0x28b79b['onCommandExecuted'](_0x2b38aa=>{_0x2b38aa['id']===_0x505338['id']&&_0x34d231();});return _0x34d231(),()=>{const _0x477ca0=_0x230ec2;_0x133f53[_0x477ca0(0x147)](),_0x583e1d['dispose']();};})[_0x21df53(0x14f)](_0x21b986());}function yi(_0xf0038c,_0x35a970=!0x1){const _0x268dca=_0xb07969;let _0x5bf430=_0xf0038c[_0x268dca(0x1af)](_0x4e68a9),_0x448ed7=_0xf0038c['get'](_0x5e0832),_0x13f4c8=_0xf0038c[_0x268dca(0x1af)](_0x36af82);return new _0x5eb731(_0xd9db4a=>{const _0x4f2d9b=_0x268dca;let _0x8ea602=()=>{const _0x25974a=_0x56ec;let _0x7b0d2a=Y(_0xf0038c);if(!_0x7b0d2a){_0xd9db4a[_0x25974a(0x303)](!0x0);return;}let _0x1d0e35=_0x13f4c8[_0x25974a(0x1a2)](_0x7b0d2a[_0x25974a(0x1e2)],_0x7b0d2a[_0x25974a(0x2ae)],_0x7b0d2a['drawingId']);_0xd9db4a[_0x25974a(0x303)](!_0x1d0e35||_0x35a970&&_0x1d0e35['formulaBinding']==null);},_0x4ed013=_0x448ed7[_0x4f2d9b(0x1d4)][_0x4f2d9b(0xc4)](_0x8ea602),_0xbb6ce1=_0x5bf430[_0x4f2d9b(0x2ad)](_0x4bbdc2=>{_0x4bbdc2['id']===_0x493300['id']&&_0x8ea602();});return _0x8ea602(),()=>{const _0x45177f=_0x4f2d9b;_0x4ed013[_0x45177f(0x147)](),_0xbb6ce1[_0x45177f(0x1f8)]();};});}function bi(_0x1d267b){const _0x3f18b6=_0xb07969;let _0x41028b=_0x1d267b[_0x3f18b6(0x1af)](_0x5e0832),_0x21be32=_0x1d267b[_0x3f18b6(0x1af)](_0x36af82);return _0x41028b[_0x3f18b6(0x1d4)][_0x3f18b6(0x14f)](_0xc4c7f(_0x41028b['getFocusDrawings']()),_0x456f26(()=>{const _0x103cf0=_0x3f18b6;let _0x83a539=Y(_0x1d267b),_0x3f365f=_0x83a539?_0x21be32[_0x103cf0(0x255)](_0x83a539[_0x103cf0(0x1e2)],_0x83a539[_0x103cf0(0x2ae)],_0x83a539[_0x103cf0(0x2eb)]):void 0x0;return _0x3f365f===void 0x0||_0x1c9494(_0x3f365f);}));}function xi(_0x487fc0){const _0x20dff7=_0xb07969;return{'id':Pr['id'],'type':_0x80d687['SELECTOR'],'icon':_0x20dff7(0xd6),'title':_0x20dff7(0xe6),'tooltip':_0x20dff7(0xe6),'selections':[{'label':{'name':Xr,'hoverable':!0x1,'selectable':!0x1}}],'value$':gi(_0x487fc0),'hidden$':yi(_0x487fc0)};}function Si(_0x5b0f67){const _0x26b4fb=_0xb07969;return{'id':Fr['id'],'type':_0x80d687[_0x26b4fb(0x2b0)],'icon':_0x26b4fb(0xf6),'title':_0x26b4fb(0x2fc),'tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':_0x157fc3,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':bi(_0x5b0f67)};}function Ci(_0x4c8f63,_0x2dbc23,_0x5c5b29=!0x1){const _0x1b3e37=_0xb07969;return _0x37b9cf=>({'id':_0x4c8f63,'type':_0x80d687[_0x1b3e37(0x2bc)],'label':{'name':_0x2dbc23,'hoverable':!0x1,'selectable':!0x1},'hidden$':yi(_0x37b9cf,_0x5c5b29)});}const wi=Ci(ci,Zr),Ti=Ci(li,Qr),Ei=Ci(ui,$r,!0x0);function Di(_0x59017e){const _0x2c801f=_0xb07969;return{'id':hi,'type':_0x80d687[_0x2c801f(0x2b0)],'icon':ti[0x0][_0x2c801f(0x22b)],'label':ei,'selectionsCommandId':_0x3e0463['id'],'selections':ti[_0x2c801f(0x239)](({icon:_0x3bcacb,label:_0x43ea46,value:_0x109130})=>({'value':_0x109130,'label':_0x43ea46,'icon':_0x3bcacb,'params':()=>{const _0x33b9c3=_0x2c801f;let _0x3be665=Y(_0x59017e);return _0x3be665?{'unitId':_0x3be665[_0x33b9c3(0x1e2)],'subUnitId':_0x3be665[_0x33b9c3(0x2ae)],'drawings':[{'unitId':_0x3be665[_0x33b9c3(0x1e2)],'subUnitId':_0x3be665[_0x33b9c3(0x2ae)],'drawingId':_0x3be665[_0x33b9c3(0x2eb)]}],'wrappingStyle':_0x109130}:void 0x0;}})),'value$':vi(_0x59017e),'hidden$':yi(_0x59017e)};}function Oi(_0x3ec4f5,_0x3f0681,_0x4c024c,_0x1e7f43){return _0x592e8e=>({'id':_0x3ec4f5,'commandId':_0x51e9f9['id'],'type':_0x80d687['BUTTON'],'icon':_0x4c024c,'title':_0x1e7f43,'tooltip':_0x1e7f43,'hidden$':yi(_0x592e8e),'params':()=>{const _0x2413b7=_0x56ec;let _0x50533d=Y(_0x592e8e);return _0x50533d?{'unitId':_0x50533d[_0x2413b7(0x1e2)],'subUnitId':_0x50533d['subUnitId'],'drawingIds':[_0x50533d[_0x2413b7(0x2eb)]],'arrangeType':_0x3f0681}:void 0x0;}});}const ki=Oi(di,_0x3c626a[_0xb07969(0x289)],_0xb07969(0xed),_0xb07969(0x294)),Ai=Oi(fi,_0x3c626a[_0xb07969(0x184)],_0xb07969(0x170),'shape-editor-ui.arrange.backward'),ji=Oi(pi,_0x3c626a[_0xb07969(0x1ad)],_0xb07969(0x161),_0xb07969(0x173)),Mi=Oi(mi,_0x3c626a[_0xb07969(0x20c)],_0xb07969(0x2ee),_0xb07969(0x2f5));function Ni(_0x391801){const _0x235342=_0xb07969;return{'id':G['id'],'type':_0x80d687[_0x235342(0x2bc)],'icon':_0x235342(0x16d),'title':'docs-shape-ui.formatShape','tooltip':_0x235342(0x164),'hidden$':yi(_0x391801),'params':()=>{const _0x3c777b=_0x235342;let _0x201dae=Y(_0x391801);return _0x201dae?{'unitId':_0x201dae[_0x3c777b(0x1e2)],'subUnitId':_0x201dae['subUnitId'],'drawingId':_0x201dae[_0x3c777b(0x2eb)]}:void 0x0;}};}const Pi={[_0x18b81e[_0xb07969(0x275)]]:{[Dr]:{'order':0x64,'title':_0xb07969(0x164),'contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Pr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':xi},[Fr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Si}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[ci]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':wi}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[li]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Ti}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[hi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':Di},[di]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':ki},[fi]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Ai},[pi]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':ji},[mi]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':Mi}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[ui]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Ei}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[G['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ni},[_0x55323c['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x44248c}}}}},Fi={[_0x169de6['MEDIA']]:{[U['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x423db3=>({...Wr(_0x423db3),'title':void 0x0})}},[_0x169de6[_0xb07969(0x24d)]]:{[Mr['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':qr}},[_0x130606['PARAGRAPH']]:{[_0x15d011[_0xb07969(0x1fa)]]:{[_0x449e25]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Gr}}},[_0x37f8c8]:{[_0x15d011[_0xb07969(0x1fa)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Gr}}},[_0x31b9c3]:{[_0x15d011[_0xb07969(0x1fa)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x29427a]:{'insert':{[U['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':Wr}}},[_0x194cd6]:{'insert':{[U['id']+_0xb07969(0x23c)]:{'replace':!0x0,'order':0x2,'menuItemFactory':Gr}}}}};var Ii='@univerjs-pro/docs-shape-ui',Li=_0xb07969(0x302);const Ri={'type':_0x443e82[_0xb07969(0x290)],'id':_0xb07969(0x149),'handler'(){return!0x0;}},zi='docs-shape-ui.config',Bi={};function Vi(_0x2b56b0){'@babel/helpers - typeof';const _0x1eb074=_0xb07969;return Vi=typeof Symbol==_0x1eb074(0x286)&&typeof Symbol['iterator']==_0x1eb074(0x1ca)?function(_0x408ada){return typeof _0x408ada;}:function(_0x501879){const _0x5f0e64=_0x1eb074;return _0x501879&&typeof Symbol==_0x5f0e64(0x286)&&_0x501879[_0x5f0e64(0x295)]===Symbol&&_0x501879!==Symbol[_0x5f0e64(0x1da)]?_0x5f0e64(0x1ca):typeof _0x501879;},Vi(_0x2b56b0);}function Hi(_0x47b235,_0x2684d6){const _0x320777=_0xb07969;if(Vi(_0x47b235)!=_0x320777(0x2a6)||!_0x47b235)return _0x47b235;var _0x27086e=_0x47b235[Symbol['toPrimitive']];if(_0x27086e!==void 0x0){var _0x1ca46c=_0x27086e[_0x320777(0x2f3)](_0x47b235,_0x2684d6||_0x320777(0x2b2));if(Vi(_0x1ca46c)!='object')return _0x1ca46c;throw TypeError(_0x320777(0x12a));}return(_0x2684d6===_0x320777(0x28e)?String:Number)(_0x47b235);}function Ui(_0x409051){const _0x3e428c=_0xb07969;var _0x1b2e87=Hi(_0x409051,_0x3e428c(0x28e));return Vi(_0x1b2e87)=='symbol'?_0x1b2e87:_0x1b2e87+'';}function X(_0x11cd4b,_0x410765,_0x1023e1){const _0x5e9f97=_0xb07969;return(_0x410765=Ui(_0x410765))in _0x11cd4b?Object[_0x5e9f97(0x132)](_0x11cd4b,_0x410765,{'value':_0x1023e1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x11cd4b[_0x410765]=_0x1023e1,_0x11cd4b;}var Wi=class extends _0x58cf13{constructor(_0x14bc5b,_0x2a4220){const _0x663fc1=_0xb07969;super(_0x14bc5b,_0x2a4220),X(this,'_shapeId',null),X(this,_0x663fc1(0xfb),null),X(this,_0x663fc1(0x150),null),X(this,'_subUnitId',null),_0x2a4220&&this[_0x663fc1(0xff)](_0x2a4220);}[_0xb07969(0x9b)](){const _0x209781=_0xb07969;return{'unitId':this[_0x209781(0x150)],'subUnitId':this[_0x209781(0x138)],'drawingId':this['_shapeId']};}[_0xb07969(0xff)](_0x5f452a){const _0x5c94ab=_0xb07969;_0x5f452a['shapeId']!==void 0x0&&(this[_0x5c94ab(0x241)]=_0x5f452a[_0x5c94ab(0x1f0)]),_0x5f452a[_0x5c94ab(0x287)]!==void 0x0&&(this[_0x5c94ab(0xfb)]=_0x5f452a[_0x5c94ab(0x287)]),_0x5f452a[_0x5c94ab(0x1e2)]!==void 0x0&&(this[_0x5c94ab(0x150)]=_0x5f452a[_0x5c94ab(0x1e2)]),_0x5f452a[_0x5c94ab(0x2ae)]!==void 0x0&&(this[_0x5c94ab(0x138)]=_0x5f452a[_0x5c94ab(0x2ae)]),this[_0x5c94ab(0x29e)]({'width':_0x5f452a[_0x5c94ab(0x182)],'height':_0x5f452a[_0x5c94ab(0x175)]});}[_0xb07969(0x1c3)](_0x918559){const _0x20c28d=_0xb07969;_0x2c973b['drawWith'](_0x918559,{'radius':_0x5d831c['adjHandleSize'],'fill':_0x5d831c[_0x20c28d(0x17e)],'stroke':_0x5d831c['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function Gi(_0x3845b9,_0x10402b,_0x25cfd0){const _0x8309a2=_0xb07969;let _0x394510={..._0x10402b,'dataModel':{..._0x10402b[_0x8309a2(0x2b9)]??{},..._0x25cfd0?{'doc':_0x25cfd0}:null}},_0x53b9f1=_0x36fd1c(_0x3845b9,_0x394510),_0xa836e9=_0x4e5632(_0x53b9f1);return{'clip':_0x4e8641(_0x53b9f1,_0xa836e9),'wrapStrategy':_0xa836e9};}var Z=class extends _0x58cf13{constructor(_0x3221ab,_0x5f3e28){const _0x5e8c04=_0xb07969;super(_0x3221ab,_0x5f3e28),X(this,'_hyperLinkRegions',[]),X(this,_0x5e8c04(0x1be),void 0x0),X(this,_0x5e8c04(0xb0),new _0x2f0b11(()=>this['makeDirty'](!0x0),()=>this[_0x5e8c04(0x23e)]())),X(this,_0x5e8c04(0x9e),!0x0),X(this,'_drawingType',_0x507337[_0x5e8c04(0x1b8)]),X(this,_0x5e8c04(0x1fb),!0x0),this[_0x5e8c04(0x1be)]={..._0x5f3e28},this[_0x5e8c04(0xb0)][_0x5e8c04(0x24e)](_0x5f3e28[_0x5e8c04(0xb6)],_0x5f3e28[_0x5e8c04(0x108)]!==!0x1),this[_0x5e8c04(0x1ae)](),this[_0x5e8c04(0x23e)]();}[_0xb07969(0x1ae)](){const _0x4b7fa1=_0xb07969;this['onTransformChange$'][_0x4b7fa1(0x115)](_0x370d5b=>{const _0x3bf1d7=_0x4b7fa1;this[_0x3bf1d7(0x221)](_0x370d5b);});}[_0xb07969(0xf8)](_0x35b6f6){this['_props']['prstGeom']=_0x35b6f6;}[_0xb07969(0x2e9)](_0x48bbb7){const _0x187445=_0xb07969;if(this[_0x187445(0x1be)]['isEditing'])return null;let _0x3155ca=this[_0x187445(0x1aa)](_0x48bbb7),{width:_0x2e84df,height:_0x1c1675}=this[_0x187445(0x1c8)]();return _0x197d1c(this[_0x187445(0x1e0)],{'x':(this['flipX']?-_0x3155ca['x']:_0x3155ca['x'])+_0x2e84df/0x2,'y':_0x3155ca['y']+_0x1c1675/0x2});}[_0xb07969(0x1d1)](_0x5a1032){const _0x1a1c26=_0xb07969;this[_0x1a1c26(0x1be)][_0x1a1c26(0xaf)]=_0x5a1032,this[_0x1a1c26(0x274)](!0x0);}['setFormulaPresentation'](_0x341f1a,_0x1531b1=!0x0){const _0x2db340=_0xb07969;this[_0x2db340(0xb0)][_0x2db340(0x24e)](_0x341f1a,_0x1531b1),this[_0x2db340(0x1be)][_0x2db340(0xb6)]=_0x341f1a,this[_0x2db340(0x23e)](),this[_0x2db340(0x274)](!0x0);}[_0xb07969(0x23e)](){const _0x1db6a8=_0xb07969;let _0x66242=this[_0x1db6a8(0x1be)]['shapeModel'],_0x4a2ab6=_0x66242['getShapeTextData'](),_0x448874=_0x16437f(_0x4a2ab6==null?void 0x0:_0x4a2ab6['dataModel']),_0x5af748=_0x448874==null?void 0x0:_0x448874['doc'],_0x1b3462=this[_0x1db6a8(0xb0)][_0x1db6a8(0xc9)]();if(!_0x5af748||_0x1b3462[_0x1db6a8(0xb3)]===0x0)return;_0x66242[_0x1db6a8(0x244)]({'width':this['width'],'height':this[_0x1db6a8(0x175)]});let _0x5b59c3=_0x59eb5a({'documentData':_0x1b3462[_0x1db6a8(0x239)](_0x4348b0=>_0x316dd3(_0x5af748,_0x4348b0)),'height':this[_0x1db6a8(0x175)],'shapeData':_0x66242['getShapeData'](),'textRect':_0x66242[_0x1db6a8(0x2fd)]({'left':0x0,'top':0x0,'width':this[_0x1db6a8(0x182)],'height':this[_0x1db6a8(0x175)]}),'width':this[_0x1db6a8(0x182)]});if(_0x5b59c3){var _0x51872e;this[_0x1db6a8(0x1c6)](_0x5b59c3[_0x1db6a8(0x182)],_0x5b59c3[_0x1db6a8(0x175)]),(_0x51872e=this['getScene']())==null||(_0x51872e=_0x51872e[_0x1db6a8(0xd0)]())==null||_0x51872e['debounceRefreshControls']();}}get[_0xb07969(0x1e2)](){const _0x23d04c=_0xb07969;return this['_props'][_0x23d04c(0x1e2)];}get['subUnitId'](){const _0x57686e=_0xb07969;return this[_0x57686e(0x1be)][_0x57686e(0x2ae)];}[_0xb07969(0x221)](_0x2336cc){const _0x42822f=_0xb07969;if(this[_0x42822f(0x1be)]['srcRect']==null||!this['_transformCalculateSrcRect'])return;let {width:_0x2df1a3,height:_0x2f4449}=this,{width:_0x4030e3=0x0,height:_0x32b3b5=0x0}=_0x2336cc['preValue'],{left:_0xed042a=0x0,top:_0x5f3661=0x0,right:_0x5e5969=0x0,bottom:_0x20b740=0x0}=this[_0x42822f(0x1be)][_0x42822f(0x203)],_0x23bd23=_0xed042a,_0x54579b=_0x5f3661,_0x5cc09c=_0x5e5969,_0xa2a0bf=_0x20b740,_0x12062c=!0x1;if(_0x4030e3!==0x0&&_0x4030e3!==_0x2df1a3){let _0x3a3fcf=_0xed042a/_0x4030e3,_0xc58aa2=_0x5e5969/_0x4030e3;_0x23bd23=_0x2df1a3*_0x3a3fcf,_0x5cc09c=_0x2df1a3*_0xc58aa2,_0x12062c=!0x0;}if(_0x32b3b5!==0x0&&_0x32b3b5!==_0x2f4449){let _0x1a42ed=_0x5f3661/_0x32b3b5,_0x5d2d16=_0x20b740/_0x32b3b5;_0x54579b=_0x2f4449*_0x1a42ed,_0xa2a0bf=_0x2f4449*_0x5d2d16,_0x12062c=!0x0;}_0x12062c&&this['setSrcRect']({'left':_0x23bd23,'top':_0x54579b,'right':_0x5cc09c,'bottom':_0xa2a0bf});}['setSrcRect'](_0x483cef){const _0x3af847=_0xb07969;this[_0x3af847(0x1be)]['srcRect']=_0x483cef,this[_0x3af847(0x274)](!0x0);}[_0xb07969(0x222)](_0x447682){const _0x5335f5=_0xb07969;this[_0x5335f5(0x1be)][_0x5335f5(0x249)]=_0x447682,this[_0x5335f5(0x274)](!0x0);}set[_0xb07969(0x2c7)](_0x24417d){const _0x5aab64=_0xb07969;this[_0x5aab64(0x27c)]=_0x24417d;}get[_0xb07969(0x2c7)](){const _0x595080=_0xb07969;this[_0x595080(0x27c)]||this[_0x595080(0xf5)]();let _0x15657b=this[_0x595080(0x27c)]['clone']();return this[_0x595080(0xec)](_0x15657b);}get['shapeModel'](){const _0x179ce6=_0xb07969;return this[_0x179ce6(0x1be)][_0x179ce6(0x238)];}get[_0xb07969(0x1f0)](){const _0x5a0c41=_0xb07969;return this[_0x5a0c41(0x1be)]['shapeId'];}get[_0xb07969(0x1c7)](){const _0x13a0cb=_0xb07969;return _0x23ec4c[_0x13a0cb(0x19f)];}[_0xb07969(0x1c3)](_0x32749b,_0x4ca895,_0x4517e0,_0x4ee9aa){const _0x396402=_0xb07969;let _0x54f638=this[_0x396402(0x1be)][_0x396402(0x238)];if(!_0x54f638||!_0x4ca895)return;let _0x210165=_0x4517e0??this[_0x396402(0x182)],_0x3c8392=_0x4ee9aa??this[_0x396402(0x175)],_0x3047d5={'shapeType':_0x54f638['getShapeType'](),'width':_0x210165,'height':_0x3c8392},_0x226fc0={'renderMode':_0x40d6a8[_0x396402(0x17a)],'oKey':this[_0x396402(0x1ea)],'image':this['_props'][_0x396402(0x249)],'angle':this[_0x396402(0x17f)]};_0x54f638[_0x396402(0x244)](_0x3047d5),_0x32749b[_0x396402(0x261)]();let _0x489435={'top':0x0,'left':0x0,'width':_0x210165,'height':_0x3c8392},_0x4a1af1=_0x54f638[_0x396402(0xba)](_0x489435);_0x4a1af1?this[_0x396402(0x20b)](_0x32749b,_0x4a1af1,_0x1efe73=>{const _0x1f14cc=_0x396402;_0x54f638[_0x1f14cc(0x2d8)](_0x1efe73,_0x489435,_0x226fc0);}):(this[_0x396402(0xd5)](),_0x54f638['render'](_0x32749b,_0x489435,_0x226fc0)),_0x32749b['restore']();let _0x12d6bb=_0x54f638[_0x396402(0x2df)](),_0x588431=_0x54f638[_0x396402(0x2fd)](_0x489435),_0x3e24bb=_0x54f638[_0x396402(0x21c)]();if(_0x12d6bb&&_0x588431&&!_0x3e24bb){_0x32749b[_0x396402(0x261)](),this[_0x396402(0x1d8)]()[_0x396402(0x20a)]&&_0x32749b['scale'](-0x1,0x1);let _0x25a759=_0x210165/0x2,_0x1d7d9d=_0x3c8392/0x2;_0x32749b['translate'](-_0x25a759,-_0x1d7d9d),_0x32749b[_0x396402(0x1e8)](),this[_0x396402(0x22a)](_0x32749b,_0x12d6bb,_0x588431),_0x32749b[_0x396402(0x19c)]();}}[_0xb07969(0xd3)](_0xd99b5c){}['_drawShapeText'](_0x5d12cf,_0x22fdf5,_0x520afd){const _0x130f80=_0xb07969;var _0x2c9d89;this['_hyperLinkRegions']=[],!this[_0x130f80(0x1be)]['isEditing']&&(!((_0x2c9d89=_0x22fdf5[_0x130f80(0x2b9)])!=null&&_0x2c9d89[_0x130f80(0x1b6)])&&'isRichText'in _0x22fdf5&&_0x22fdf5[_0x130f80(0x293)]===!0x1?this['_drawSimpleText'](_0x5d12cf,_0x22fdf5,_0x520afd):this[_0x130f80(0x117)](_0x5d12cf,_0x22fdf5,_0x520afd));}[_0xb07969(0x18f)](_0x46129b,_0x134363,_0x444188){const _0xf7a3b0=_0xb07969;this[_0xf7a3b0(0x117)](_0x46129b,{..._0x134363,'text':_0x134363[_0xf7a3b0(0x20f)]??'','dataModel':{'doc':_0x1503a7(_0x134363,_0xf7a3b0(0x1e7)+this['oKey'])}},_0x444188);}['_drawRichText'](_0x49b82b,_0x484d99,_0x19bb17){const _0x5755b6=_0xb07969;_0x307919(_0x49b82b,this[_0x5755b6(0xb0)],(_0x160c0f,_0x45bfd3,_0x59eab3)=>{const _0x222caf=_0x5755b6;this[_0x222caf(0x2da)](_0x160c0f,_0x484d99,_0x19bb17,_0x45bfd3,_0x59eab3===_0x222caf(0x122));});}[_0xb07969(0x2da)](_0x51c352,_0x184e9e,_0x8547ac,_0x35c870,_0x1bfe8c){const _0x15b94d=_0xb07969;let _0x5a7562=this['_props'][_0x15b94d(0x12f)];if(!_0x184e9e['dataModel']||!_0x5a7562){_0x5a7562||console[_0x15b94d(0x137)](_0x15b94d(0x1e3));return;}let _0x5eeb55=_0x16437f(_0x184e9e[_0x15b94d(0x2b9)]);if(!_0x5eeb55)return;let _0x3071fd=_0x5eeb55['doc'];if(!_0x3071fd)return;let _0x115db1=_0x316dd3(_0x3071fd,_0x35c870),_0x293ee8=_0x5eeb55['va']??_0x4bcf3d[_0x15b94d(0x9f)],_0x209523=_0x5eeb55['ha']??_0x22763e[_0x15b94d(0x284)],_0x5f2971=Gi(this[_0x15b94d(0x1be)][_0x15b94d(0x238)][_0x15b94d(0x20d)](),_0x184e9e,_0x115db1),_0x464fc0=_0x184e9e[_0x15b94d(0x172)],_0x30011f=_0x31f136(_0x115db1,{'isHorizontal':_0x464fc0!==!0x1,'textRect':_0x8547ac,'verticalAlign':_0x293ee8,'horizontalAlign':_0x209523,'wrapStrategy':_0x5f2971[_0x15b94d(0x17c)]}),_0x32aaf9=new _0x320bf5(_0x30011f),_0x538dc4=new _0x74ae6b(_0x32aaf9),_0x3f1015=_0x51294b[_0x15b94d(0xc0)](_0x538dc4,_0x5a7562);_0x3f1015[_0x15b94d(0x156)]();let _0x36cdba=_0x3f1015['getActualSize']()[_0x15b94d(0x2bb)],_0x488c4c=_0x455dbb({'contentHeight':_0x36cdba,'verticalAlign':_0x293ee8,'viewportHeight':_0x8547ac[_0x15b94d(0x175)]});_0x32aaf9['updateDocumentStyle']({'pageSize':{'width':_0x464fc0===!0x1?_0x8547ac[_0x15b94d(0x175)]:_0x8547ac[_0x15b94d(0x182)],'height':_0x4db670(_0x115db1,_0x488c4c[_0x15b94d(0x235)])}}),_0x32aaf9[_0x15b94d(0x2cb)]({'t':_0x488c4c[_0x15b94d(0xa3)]}),_0x3f1015[_0x15b94d(0x156)]();let _0x13b440=new _0x159cfc(_0x15b94d(0xf7)+this[_0x15b94d(0x1ea)],_0x3f1015,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x15b94d(0x274)](!0x0)});_0x13b440[_0x15b94d(0x1c6)](_0x8547ac[_0x15b94d(0x182)],_0x488c4c[_0x15b94d(0x235)]),_0x51c352[_0x15b94d(0x261)](),_0x51c352['translateWithPrecision'](_0x8547ac[_0x15b94d(0x291)],_0x8547ac[_0x15b94d(0xdf)]),_0x5f2971['clip']&&(_0x51c352[_0x15b94d(0x1e8)](),_0x51c352[_0x15b94d(0x259)](0x0,_0x488c4c[_0x15b94d(0x13c)],_0x8547ac[_0x15b94d(0x182)],_0x488c4c[_0x15b94d(0xbf)]),_0x51c352['clip']()),_0x488c4c[_0x15b94d(0x25e)]&&_0x51c352[_0x15b94d(0xe2)](0x0,_0x488c4c[_0x15b94d(0x25e)]),_0x13b440[_0x15b94d(0x13b)](_0x51c352),_0x1bfe8c&&(this[_0x15b94d(0x1e0)]=_0x24c9f8(_0x13b440,{'left':_0x8547ac[_0x15b94d(0x291)],'top':_0x8547ac[_0x15b94d(0xdf)]+_0x488c4c[_0x15b94d(0x25e)]},_0x5f2971[_0x15b94d(0x29c)]?{'left':_0x8547ac[_0x15b94d(0x291)],'right':_0x8547ac[_0x15b94d(0x291)]+_0x8547ac['width'],'top':_0x8547ac[_0x15b94d(0xdf)]+_0x488c4c[_0x15b94d(0x13c)],'bottom':_0x8547ac[_0x15b94d(0xdf)]+_0x488c4c['clipTop']+_0x488c4c[_0x15b94d(0xbf)]}:void 0x0)),_0x51c352[_0x15b94d(0x19c)](),_0x13b440[_0x15b94d(0x1f8)](),_0x3f1015[_0x15b94d(0x1f8)](),_0x538dc4[_0x15b94d(0x1f8)](),_0x32aaf9[_0x15b94d(0x1f8)]();}[_0xb07969(0x2d8)](_0x5b74d1,_0x40fa3f,_0x48dc23=!0x1){const _0x395eee=_0xb07969;if(!this[_0x395eee(0x1f6)])return this['makeDirty'](!0x1),this;let {width:_0xacb97c,height:_0x270303,left:_0x4b954a,top:_0x427bd5}=this,_0x3ce6c5=this[_0x395eee(0x1c8)]();if(_0xacb97c=_0x3ce6c5[_0x395eee(0x182)],_0x270303=_0x3ce6c5['height'],_0x4b954a=_0x3ce6c5[_0x395eee(0x291)],_0x427bd5=_0x3ce6c5['top'],this['isRender'](_0x40fa3f)){let {top:_0x3ec256,left:_0x450568,bottom:_0x165980,right:_0x2b8cff}=_0x40fa3f[_0x395eee(0x16e)];if(_0xacb97c+this[_0x395eee(0x16a)]+_0x4b954a<_0x450568||_0x2b8cff<_0x4b954a||_0x270303+this['strokeWidth']+_0x427bd5<_0x3ec256||_0x165980<_0x427bd5)return this;}let _0x3c276a=_0x4b954a+_0xacb97c/0x2,_0x2b838b=_0x427bd5+_0x270303/0x2,_0x253419=this['transform'][_0x395eee(0x11b)]();if(this['_props']['isEditing']){let _0x1d1bd4=this[_0x395eee(0x1d8)](),_0x161e6c=new _0x416f20();_0x161e6c[_0x395eee(0x106)]({..._0x1d1bd4}),_0x253419=_0x161e6c['getMatrix']();}return _0x5b74d1['save'](),this[_0x395eee(0x1be)][_0x395eee(0x238)][_0x395eee(0x205)]===!0x0||_0x5b74d1[_0x395eee(0x2c7)](_0x253419[0x0],_0x253419[0x1],_0x253419[0x2],_0x253419[0x3],_0x3c276a,_0x2b838b),this[_0x395eee(0x1c3)](_0x5b74d1,_0x40fa3f,_0xacb97c,_0x270303),_0x5b74d1[_0x395eee(0x19c)](),this[_0x395eee(0x274)](!0x1),this;}[_0xb07969(0x1aa)](_0x5cc1f3){const _0x1dc658=_0xb07969;let {left:_0x5ba2be,top:_0x139a6b,width:_0x5baf35,height:_0x1afec0}=this[_0x1dc658(0x1c8)](),_0xe9d248=this['transform'][_0x1dc658(0x11b)](),_0x389ef2=_0x5ba2be+_0x5baf35/0x2,_0x5e81d4=_0x139a6b+_0x1afec0/0x2,_0x2e7a70=new _0x416f20([_0xe9d248[0x0],_0xe9d248[0x1],_0xe9d248[0x2],_0xe9d248[0x3],_0x389ef2,_0x5e81d4]),_0x4b9b38=this[_0x1dc658(0x1dd)]();return(this[_0x1dc658(0x23d)]&&(_0x4b9b38==null?void 0x0:_0x4b9b38[_0x1dc658(0x1c7)])===_0x23ec4c[_0x1dc658(0x2a1)]?_0x4b9b38['ancestorTransform']['multiply'](_0x2e7a70):_0x2e7a70)[_0x1dc658(0x14b)]()[_0x1dc658(0x258)](_0x5cc1f3);}[_0xb07969(0x2a7)](_0x56875f){const _0x3e580d=_0xb07969;let {left:_0x10277b,top:_0x2dee24,width:_0x32939c,height:_0x3656ff}=this[_0x3e580d(0x1c8)](),_0x37f92d=_0x10277b+_0x32939c/0x2,_0x52ec12=_0x2dee24+_0x3656ff/0x2,_0x40a7b6=this[_0x3e580d(0x2c7)][_0x3e580d(0x11b)](),_0x5042ad=new _0x416f20([_0x40a7b6[0x0],_0x40a7b6[0x1],_0x40a7b6[0x2],_0x40a7b6[0x3],_0x37f92d,_0x52ec12]),_0x31d341=this[_0x3e580d(0x1dd)](),_0x8953f4=(this[_0x3e580d(0x23d)]&&(_0x31d341==null?void 0x0:_0x31d341[_0x3e580d(0x1c7)])===_0x23ec4c[_0x3e580d(0x2a1)]?_0x31d341['ancestorTransform']['multiply'](_0x5042ad):_0x5042ad)[_0x3e580d(0x14b)]()['applyPoint'](_0x56875f),_0x2e0019=_0x32939c/0x2,_0x50b73e=_0x3656ff/0x2,_0x2f2d16=this[_0x3e580d(0x1be)][_0x3e580d(0x238)];return _0x2f2d16&&_0x2f2d16[_0x3e580d(0x21c)]()?_0x2f2d16[_0x3e580d(0xa8)](_0x8953f4['x'],_0x8953f4['y'],_0x32939c,_0x3656ff):_0x8953f4['x']>=-_0x2e0019-this[_0x3e580d(0x16a)]/0x2&&_0x8953f4['x']<=_0x2e0019+this[_0x3e580d(0x16a)]/0x2&&_0x8953f4['y']>=-_0x50b73e-this[_0x3e580d(0x16a)]/0x2&&_0x8953f4['y']<=_0x50b73e+this[_0x3e580d(0x16a)]/0x2;}[_0xb07969(0x1f8)](){const _0xbe6d42=_0xb07969;this['_formulaAnimation'][_0xbe6d42(0x1f8)](),this[_0xbe6d42(0x1be)][_0xbe6d42(0x238)]=null,super[_0xbe6d42(0x1f8)]();}};let Ki=class extends _0x47cfe0{constructor(_0x3c1945,_0x90acf7,_0x213823,_0x480e00){const _0x4004bd=_0xb07969;super(),this[_0x4004bd(0x210)]=_0x3c1945,this[_0x4004bd(0x198)]=_0x90acf7,this['_docsShapeService']=_0x213823,this[_0x4004bd(0xaa)]=_0x480e00,X(this,_0x4004bd(0x157),null),X(this,_0x4004bd(0x150),null),X(this,_0x4004bd(0x138),null),X(this,'_activeShapeAdjustPointList',void 0x0),X(this,_0x4004bd(0x181),[]),X(this,_0x4004bd(0xfc),0x0),X(this,'_baseShapeTop',0x0),X(this,_0x4004bd(0x253),0x0),X(this,_0x4004bd(0x1b4),0x0),X(this,'_isStartAdjusting',!0x1),X(this,_0x4004bd(0x288),!0x1),X(this,_0x4004bd(0xca),void 0x0),X(this,_0x4004bd(0x260),void 0x0),X(this,_0x4004bd(0xc6),void 0x0),X(this,_0x4004bd(0x1b1),void 0x0),this[_0x4004bd(0x2ef)](),this[_0x4004bd(0x2d9)]();}['clearAdjustControls'](){const _0x200810=_0xb07969;this[_0x200810(0xa9)]();}[_0xb07969(0x13f)](){const _0x30a4d6=_0xb07969;this[_0x30a4d6(0xf1)](!0x0);}['_getShapeAdjustPointListById'](_0x51d8dc,_0x3c44a5,_0x4873f){const _0x59942d=_0xb07969;var _0xb493e;return(_0xb493e=this[_0x59942d(0x1ce)][_0x59942d(0xbe)](_0x51d8dc,_0x3c44a5,_0x4873f))==null?void 0x0:_0xb493e[_0x59942d(0xd3)]();}[_0xb07969(0xea)](_0x36deb0,_0x563e46,_0x23b3ba,_0x5d86e7){const _0xffd50f=_0xb07969;var _0x28b285;return(_0x28b285=this[_0xffd50f(0x1ce)][_0xffd50f(0xbe)](_0x36deb0,_0x563e46,_0x23b3ba))==null?void 0x0:_0x28b285[_0xffd50f(0x10b)](_0x5d86e7);}[_0xb07969(0x280)](){const _0x127507=_0xb07969;return this[_0x127507(0x150)]===null||this[_0x127507(0x138)]===null||this[_0x127507(0x157)]===null?null:this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x127507(0x150)],'subUnitId':this[_0x127507(0x138)],'drawingId':this[_0x127507(0x157)]})??null;}[_0xb07969(0x123)](_0x4f885d){const _0x1f1442=_0xb07969;if(this[_0x1f1442(0x150)]===null||this[_0x1f1442(0x138)]===null||this[_0x1f1442(0x157)]===null)return null;let _0x14af22=_0x4dbb43({'unitId':this[_0x1f1442(0x150)],'subUnitId':this[_0x1f1442(0x138)],'drawingId':this[_0x1f1442(0x157)]}),_0x283a81=_0x4f885d[_0x1f1442(0x1e9)](_0x14af22);return _0x283a81 instanceof Z?_0x283a81:null;}[_0xb07969(0x14a)](_0x3f7bb9=!0x1){const _0x7f02da=_0xb07969;if(this['_unitId']===null||this['_subUnitId']===null||this['_activeShapeId']===null)return;let _0x3c2f76=this[_0x7f02da(0x280)]();if((_0x3c2f76==null?void 0x0:_0x3c2f76[_0x7f02da(0x297)])!==_0x507337[_0x7f02da(0x1b8)]||!_0x3c2f76[_0x7f02da(0x2c7)])return;let _0x75cf21=this[_0x7f02da(0x1ce)][_0x7f02da(0xbe)](this[_0x7f02da(0x150)],this['_subUnitId'],this['_activeShapeId']);if(!_0x75cf21||_0x75cf21[_0x7f02da(0x21c)]())return;let {left:_0x2a3ef7=0x0,top:_0x56491e=0x0,width:_0x3753b2=0x0,height:_0x4fcfbf=0x0,flipX:_0x27c92b,flipY:_0xf41d7a,angle:_0x2cd083=0x0}=_0x3c2f76[_0x7f02da(0x2c7)];(_0x3f7bb9||!this[_0x7f02da(0x301)])&&(_0x75cf21[_0x7f02da(0x244)]({'width':_0x3753b2,'height':_0x4fcfbf}),this[_0x7f02da(0x301)]=_0x75cf21[_0x7f02da(0xd3)]());let _0x3f143a=this[_0x7f02da(0x301)];if(!(_0x3f143a!=null&&_0x3f143a[_0x7f02da(0xb3)]))return;let {scene:_0x503feb}=this['_context'];for(let _0x5e788b of _0x3f143a){let _0x272c8c=this[_0x7f02da(0x199)](_0x5e788b,_0x3753b2,_0x4fcfbf,!!_0x27c92b,!!_0xf41d7a,_0x2cd083);this['_addShapeAdjustControl'](_0x503feb,_0x272c8c,_0x272c8c[_0x7f02da(0x287)],_0x2a3ef7,_0x56491e,this['_unitId'],this[_0x7f02da(0x138)]);}}[_0xb07969(0x199)](_0x23c1db,_0x2642a5,_0x9525f1,_0x20165e,_0x367780,_0x4d7e95){const _0x2e6c94=_0xb07969;let _0x3a180a=_0x23c1db['x'],_0x2dc9c7=_0x23c1db['y'];if(_0x20165e&&(_0x3a180a=_0x2642a5-_0x3a180a),_0x367780&&(_0x2dc9c7=_0x9525f1-_0x2dc9c7),_0x4d7e95!==0x0){let _0x55e03f=_0x2642a5/0x2,_0x176ca5=_0x9525f1/0x2,_0x3a3cd0=_0x4d7e95*Math['PI']/0xb4,_0x56f758=Math[_0x2e6c94(0xdb)](_0x3a3cd0),_0x482101=Math['sin'](_0x3a3cd0),_0x228be9=_0x3a180a-_0x55e03f,_0x4f9079=_0x2dc9c7-_0x176ca5;_0x3a180a=_0x55e03f+(_0x228be9*_0x56f758-_0x4f9079*_0x482101),_0x2dc9c7=_0x176ca5+(_0x228be9*_0x482101+_0x4f9079*_0x56f758);}return{'x':_0x3a180a,'y':_0x2dc9c7,'adjName':_0x23c1db[_0x2e6c94(0x287)]};}[_0xb07969(0xf1)](_0x5cfd05=!0x1){const _0x460f06=_0xb07969;_0x5cfd05&&this[_0x460f06(0xa9)](),this[_0x460f06(0x14a)](_0x5cfd05);}['_addShapeAdjustControl'](_0x55b437,_0x104ff2,_0x26bbd2,_0x457808,_0x6c8571,_0xafc404,_0x55925a){const _0x2ef1b0=_0xb07969;if(!this['_activeShapeId'])return;let _0x949229=_0x2ef1b0(0x145)+this[_0x2ef1b0(0x157)]+'-'+_0x26bbd2,_0x5b9077=_0x55b437[_0x2ef1b0(0x1e9)](_0x949229);if(_0x5b9077){_0x5b9077[_0x2ef1b0(0x29e)]({'left':_0x104ff2['x']+_0x457808-_0x5d831c[_0x2ef1b0(0x271)],'top':_0x104ff2['y']+_0x6c8571-_0x5d831c['adjHandleSize']}),_0x5b9077[_0x2ef1b0(0x274)](!0x0);return;}let _0x346e2b=new Wi(_0x949229,{'left':_0x104ff2['x']+_0x457808-_0x5d831c[_0x2ef1b0(0x271)],'top':_0x104ff2['y']+_0x6c8571-_0x5d831c[_0x2ef1b0(0x271)],'adjName':_0x26bbd2,'shapeId':this['_activeShapeId'],'unitId':_0xafc404,'subUnitId':_0x55925a,'width':_0x5d831c[_0x2ef1b0(0x271)]+0x8,'height':_0x5d831c[_0x2ef1b0(0x271)]+0x8,'zIndex':_0x2958d1+0x1,'evented':!0x0});this[_0x2ef1b0(0x181)][_0x2ef1b0(0xab)](_0x346e2b),this['_attachAdjustEvent'](_0x346e2b,_0x55b437,_0x26bbd2),_0x55b437[_0x2ef1b0(0xa0)](_0x346e2b,_0x2958d1+0x1);}[_0xb07969(0xa9)](){const _0x4b4d04=_0xb07969;this[_0x4b4d04(0x181)][_0x4b4d04(0x2d7)](_0x2b27b8=>_0x2b27b8['dispose']()),this['_adjustPointObjects']=[];}[_0xb07969(0x1d5)](){const _0x5032f9=_0xb07969;this[_0x5032f9(0x14a)]();}[_0xb07969(0x1f1)](_0x2c1f49,_0x508f06,_0x2ab420){const _0x1ce518=_0xb07969;let _0x177d86=_0x22f150[_0x1ce518(0x13e)]([_0x508f06,_0x2ab420]),_0x31d907=_0x2c1f49[_0x1ce518(0xf0)](_0x177d86)??_0x2c1f49[_0x1ce518(0x276)]()[0x0];return(_0x31d907==null?void 0x0:_0x31d907[_0x1ce518(0x277)](_0x177d86))??_0x177d86;}['_attachAdjustEvent'](_0x3594fc,_0x53a228,_0x3bcd10){const _0x16277f=_0xb07969;this[_0x16277f(0x9c)](_0x35b1c9(_0x3594fc['onPointerDown$']['subscribeEvent']((_0x17d6a9,_0x43cefa)=>{const _0x53c4dd=_0x16277f;var _0xb87f1b;let _0x2dd13c=_0x3594fc['getDrawingSearch']();this[_0x53c4dd(0xca)]=this[_0x53c4dd(0xea)](_0x2dd13c[_0x53c4dd(0x1e2)],_0x2dd13c['subUnitId'],_0x2dd13c['drawingId'],_0x3bcd10),this[_0x53c4dd(0x260)]=this['_docsShapeService'][_0x53c4dd(0xbe)](_0x2dd13c[_0x53c4dd(0x1e2)],_0x2dd13c[_0x53c4dd(0x2ae)],_0x2dd13c[_0x53c4dd(0x2eb)]);let _0x5da4c8=this[_0x53c4dd(0x280)](),_0x351a21=_0x5da4c8==null?void 0x0:_0x5da4c8[_0x53c4dd(0x2c7)];if(!_0x5da4c8||!_0x351a21||!this[_0x53c4dd(0x260)])return;this[_0x53c4dd(0xfc)]=_0x351a21[_0x53c4dd(0x291)]||0x0,this[_0x53c4dd(0xa6)]=_0x351a21['top']||0x0,this[_0x53c4dd(0x253)]=_0x351a21[_0x53c4dd(0x182)]||0x0,this[_0x53c4dd(0x1b4)]=_0x351a21[_0x53c4dd(0x175)]||0x0;let _0x297275=!!_0x351a21[_0x53c4dd(0x20a)],_0x4a6c65=!!_0x351a21[_0x53c4dd(0x21e)],_0x5d2e34=_0x351a21[_0x53c4dd(0x17f)]||0x0,_0x5290e0={...((_0xb87f1b=this[_0x53c4dd(0xca)])==null?void 0x0:_0xb87f1b[_0x53c4dd(0x1bc)])??{}};this[_0x53c4dd(0x159)]=!0x0,_0x53a228[_0x53c4dd(0x201)](),this[_0x53c4dd(0xc6)]=_0x53a228[_0x53c4dd(0x1d0)][_0x53c4dd(0x115)]((_0x50b371,_0x2b9f5b)=>{const _0x24e948=_0x53c4dd;var _0x4813ca;if(!this['_isStartAdjusting']||!this[_0x24e948(0x260)]||!this[_0x24e948(0xca)])return;_0x53a228['disableObjectsEvent'](),_0x53a228[_0x24e948(0x118)](_0x29a1b3['CROSSHAIR']);let _0x2b0dca=this[_0x24e948(0x1f1)](_0x53a228,_0x50b371[_0x24e948(0x1ee)],_0x50b371[_0x24e948(0x2b3)]),_0x797013=_0x2b0dca['x']-this[_0x24e948(0xfc)],_0x5ce73c=_0x2b0dca['y']-this[_0x24e948(0xa6)];if(_0x5d2e34!==0x0){let _0x5117fd=this['_baseShapeWidth']/0x2,_0x1375ae=this['_baseShapeHeight']/0x2,_0x44c060=_0x5d2e34*Math['PI']/0xb4,_0x809ced=Math[_0x24e948(0xdb)](_0x44c060),_0x43433b=Math[_0x24e948(0x269)](_0x44c060),_0x2c77e8=_0x797013-_0x5117fd,_0x58df7c=_0x5ce73c-_0x1375ae;_0x797013=_0x5117fd+(_0x2c77e8*_0x809ced+_0x58df7c*_0x43433b),_0x5ce73c=_0x1375ae+(-_0x2c77e8*_0x43433b+_0x58df7c*_0x809ced);}_0x297275&&(_0x797013=this[_0x24e948(0x253)]-_0x797013),_0x4a6c65&&(_0x5ce73c=this[_0x24e948(0x1b4)]-_0x5ce73c);let _0x59d823={'left':0x0,'top':0x0,'width':this[_0x24e948(0x253)],'height':this[_0x24e948(0x1b4)]},_0x3006b2=this[_0x24e948(0x260)][_0x24e948(0x154)](_0x59d823,{'x':_0x797013,'y':_0x5ce73c},this['_activeAdjustInfo'],_0x297275,_0x4a6c65);if(Object['keys'](_0x3006b2)[_0x24e948(0xb3)]!==0x0){for(let [_0x18aa83,_0xbb0266]of Object[_0x24e948(0x10a)](_0x3006b2))this['_activeShapeModel'][_0x24e948(0xd7)](_0x18aa83,_0xbb0266);this['_activeShapeModel'][_0x24e948(0x244)]({'width':this['_baseShapeWidth'],'height':this[_0x24e948(0x1b4)]}),(_0x4813ca=this[_0x24e948(0x123)](_0x53a228))==null||_0x4813ca['makeDirty'](!0x0),this[_0x24e948(0x301)]=this[_0x24e948(0xce)](_0x2dd13c[_0x24e948(0x1e2)],_0x2dd13c['subUnitId'],_0x2dd13c[_0x24e948(0x2eb)]),this[_0x24e948(0x1d5)](),_0x2b9f5b[_0x24e948(0x2be)]();}}),this[_0x53c4dd(0x1b1)]=_0x53a228[_0x53c4dd(0xe1)][_0x53c4dd(0x115)]((_0xd873cd,_0xca9f3a)=>{const _0x1147f1=_0x53c4dd;var _0xf72f7a,_0x41856a;(_0xf72f7a=this[_0x1147f1(0xc6)])==null||_0xf72f7a[_0x1147f1(0x147)](),(_0x41856a=this[_0x1147f1(0x1b1)])==null||_0x41856a[_0x1147f1(0x147)](),_0x53a228[_0x1147f1(0x2cf)]();let _0x3b52da=this['_activeAdjustInfo'];if(_0x3b52da&&this[_0x1147f1(0x260)]){let _0x44e307={};for(let _0x10e07f of Object[_0x1147f1(0xdc)](_0x3b52da[_0x1147f1(0x1bc)])){let _0x368d9a=this[_0x1147f1(0x260)][_0x1147f1(0x14c)](_0x10e07f);_0x368d9a!==void 0x0&&(_0x44e307[_0x10e07f]=_0x368d9a);}Object[_0x1147f1(0xdc)](_0x44e307)[_0x1147f1(0xb3)]>0x0&&Jr(this['_commandService'],_0x2dd13c[_0x1147f1(0x1e2)],_0x2dd13c['subUnitId'],_0x2dd13c[_0x1147f1(0x2eb)],{'oldShapeData':{'adjustValues':_0x5290e0}},{'adjustValues':_0x44e307});}this[_0x1147f1(0xca)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x1147f1(0x159)]=!0x1,_0x53a228[_0x1147f1(0x24a)](),_0xca9f3a[_0x1147f1(0x2be)]();}),_0x43cefa[_0x53c4dd(0x2be)]();})));}[_0xb07969(0x2d9)](){const _0x4cdbb9=_0xb07969;let {scene:_0x125b99}=this[_0x4cdbb9(0x210)],_0x38ea00=_0x125b99['getTransformerByCreate']();this[_0x4cdbb9(0x9c)](_0x38ea00[_0x4cdbb9(0x134)]['subscribe'](_0x16e15c=>{const _0x4232b8=_0x4cdbb9;this['_createShapeAdjustControls'](),_0x16e15c[_0x4232b8(0x169)]!==null&&_0x16e15c[_0x4232b8(0x169)][_0x4232b8(0x25b)]===0x1&&_0x16e15c['objects'][_0x4232b8(0x28b)]()[_0x4232b8(0x303)]()[_0x4232b8(0x1e5)]instanceof Z&&(this[_0x4232b8(0x288)]=!0x0);})),this[_0x4cdbb9(0x9c)](_0x38ea00['changing$']['subscribe'](()=>{const _0x3dba2a=_0x4cdbb9;this[_0x3dba2a(0x288)]&&this[_0x3dba2a(0xa9)]();})),this[_0x4cdbb9(0x9c)](_0x125b99[_0x4cdbb9(0xe1)][_0x4cdbb9(0x115)](()=>{const _0x49f2c6=_0x4cdbb9;this[_0x49f2c6(0x288)]&&(this[_0x49f2c6(0x288)]=!0x1,this[_0x49f2c6(0x14a)]());})),this[_0x4cdbb9(0x9c)](_0x38ea00[_0x4cdbb9(0x26a)]['subscribe'](()=>{const _0x2ad2eb=_0x4cdbb9;this[_0x2ad2eb(0x150)]&&this[_0x2ad2eb(0x138)]&&this[_0x2ad2eb(0x157)]&&(this[_0x2ad2eb(0x301)]=this[_0x2ad2eb(0xce)](this['_unitId'],this[_0x2ad2eb(0x138)],this[_0x2ad2eb(0x157)]),this[_0x2ad2eb(0x1d5)]());}));}[_0xb07969(0x2ef)](){const _0xfc4dfe=_0xb07969;this['disposeWithMe'](this[_0xfc4dfe(0xaa)][_0xfc4dfe(0x2ad)](_0x2a5578=>{const _0x585b77=_0xfc4dfe;if(_0x2a5578['id']!==_0x493300['id'])return;let {unitId:_0x303d12,shapeId:_0x555873}=_0x2a5578[_0x585b77(0x1bf)];_0x303d12===this[_0x585b77(0x150)]&&_0x555873===this['_activeShapeId']&&this[_0x585b77(0x13f)]();})),this[_0xfc4dfe(0x9c)](this['_drawingManagerService'][_0xfc4dfe(0x1d4)][_0xfc4dfe(0xc4)](_0x1c0d17=>{const _0x867a11=_0xfc4dfe;if(_0x1c0d17[_0x867a11(0xb3)]===0x1){let _0x68047e=_0x1c0d17[0x0],_0x4c45f8=this[_0x867a11(0x198)][_0x867a11(0x228)](_0x68047e);if((_0x4c45f8==null?void 0x0:_0x4c45f8['drawingType'])===_0x507337[_0x867a11(0x1b8)]){this['_activeShapeId']=_0x68047e['drawingId'],this[_0x867a11(0x150)]=_0x68047e[_0x867a11(0x1e2)],this[_0x867a11(0x138)]=_0x68047e[_0x867a11(0x2ae)],this[_0x867a11(0x301)]=this[_0x867a11(0xce)](_0x68047e['unitId'],_0x68047e[_0x867a11(0x2ae)],_0x68047e[_0x867a11(0x2eb)]),this[_0x867a11(0xa9)](),this[_0x867a11(0x14a)]();return;}}this[_0x867a11(0x157)]=null,this[_0x867a11(0x301)]=void 0x0,this[_0x867a11(0x150)]=null,this[_0x867a11(0x138)]=null,this[_0x867a11(0xa9)]();})),this[_0xfc4dfe(0x9c)](_0x50281f(this[_0xfc4dfe(0x198)][_0xfc4dfe(0x29a)],this[_0xfc4dfe(0x198)][_0xfc4dfe(0x19a)])['subscribe'](_0x53c93b=>{const _0x2303f1=_0xfc4dfe;var _0x2f2018;let _0x5d4d83=_0x53c93b['find'](_0x2a0eb9=>_0x2a0eb9['drawingId']===this[_0x2303f1(0x157)]&&_0x2a0eb9[_0x2303f1(0x1e2)]===this[_0x2303f1(0x150)]&&_0x2a0eb9[_0x2303f1(0x2ae)]===this['_subUnitId']);_0x5d4d83&&((_0x2f2018=this[_0x2303f1(0x198)]['getDrawingByParam'](_0x5d4d83))==null?void 0x0:_0x2f2018['drawingType'])===_0x507337[_0x2303f1(0x1b8)]&&this[_0x2303f1(0xf1)](!0x0);})),this[_0xfc4dfe(0x9c)](this[_0xfc4dfe(0x198)][_0xfc4dfe(0x200)]['subscribe'](_0x26cd35=>{const _0x407af7=_0xfc4dfe;for(let _0x3281c4 of _0x26cd35)this['_activeShapeId']===_0x3281c4[_0x407af7(0x2eb)]&&(this['_activeShapeId']=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x407af7(0x150)]=null,this[_0x407af7(0x138)]=null,this['_clearShapeAdjustControls']());}));}};Ki=q([K(0x1,_0x5e0832),K(0x2,_0x4e047b(_0x36af82)),K(0x3,_0x4e68a9)],Ki);let Q=class extends _0x47cfe0{constructor(_0x3410b9,_0x4417f0){const _0x42ee89=_0xb07969;super(),this[_0x42ee89(0x15a)]=_0x3410b9,this[_0x42ee89(0x2d3)]=_0x4417f0,X(this,_0x42ee89(0x104),new _0x1e3b2d(null)),X(this,'editingParams$',this[_0x42ee89(0x104)][_0x42ee89(0x2e5)]()),X(this,'_onSavingEditorData$',new _0x1e3b2d(!0x1)),X(this,_0x42ee89(0x130),this[_0x42ee89(0x248)][_0x42ee89(0x2e5)]()),X(this,_0x42ee89(0x254),void 0x0),this[_0x42ee89(0x9c)](this[_0x42ee89(0x15a)][_0x42ee89(0x1d9)]['subscribe'](()=>{const _0x81da13=_0x42ee89;let _0x19c460=this['getEditing']();_0x19c460!=null&&_0x19c460['visible']&&!this[_0x81da13(0xa4)](_0x19c460)&&this[_0x81da13(0x1d1)](null);}));}['dispose'](){const _0x389834=_0xb07969;this[_0x389834(0x15c)](),this[_0x389834(0x104)][_0x389834(0x303)](null),this[_0x389834(0x104)][_0x389834(0x236)](),this[_0x389834(0x248)][_0x389834(0x303)](!0x1),this['_onSavingEditorData$'][_0x389834(0x236)](),super['dispose']();}[_0xb07969(0x1d1)](_0x4a1a44){const _0x513364=_0xb07969;(_0x4a1a44==null||!_0x4a1a44[_0x513364(0x1f6)]||this[_0x513364(0xa4)](_0x4a1a44))&&(this[_0x513364(0x15c)](),this[_0x513364(0x104)][_0x513364(0x303)](_0x4a1a44),(_0x4a1a44==null||_0x4a1a44['visible']&&this[_0x513364(0x248)][_0x513364(0x107)]())&&this['_onSavingEditorData$'][_0x513364(0x303)](!0x1));}[_0xb07969(0x25f)](_0x546a3e){const _0x313beb=_0xb07969;this[_0x313beb(0x248)][_0x313beb(0x303)](_0x546a3e);}[_0xb07969(0x26b)](){const _0x3904f1=_0xb07969;return this[_0x3904f1(0x104)]['getValue']();}['_canEdit'](_0x1c3906){const _0x23ea64=_0xb07969;let _0x782b9=this[_0x23ea64(0x2d3)]['getUnit'](_0x1c3906[_0x23ea64(0x1e2)],_0x1b3194['UNIVER_DOC']);if(!_0x782b9)return!0x0;let _0x5d5876=_0x502f97(_0x782b9,_0x1c3906['shapeId']);return _0x33aa98(this[_0x23ea64(0x15a)],_0x1c3906[_0x23ea64(0x1e2)],[..._0x57f81a(_0x782b9,_0x5d5876,_0x23ea64(0x2ec),_0x1c3906[_0x23ea64(0x1f0)]),_0x4ecdaa(_0x5d5876,_0x23ea64(0x2ec),_0x1c3906[_0x23ea64(0x1f0)])]);}['completeEditing'](_0x582f07){const _0x2c2ec8=_0xb07969;let _0x4aafb7=this[_0x2c2ec8(0x26b)]();_0x4aafb7&&this['_completionFrame']===void 0x0&&(this['setOnSavingEditorData'](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x44688e=_0x2c2ec8;this[_0x44688e(0x254)]=void 0x0,this[_0x44688e(0x26b)]()===_0x4aafb7&&this['setEditing'](null);}));}[_0xb07969(0x15c)](){const _0x28c8b6=_0xb07969;this[_0x28c8b6(0x254)]!==void 0x0&&(cancelAnimationFrame(this[_0x28c8b6(0x254)]),this['_completionFrame']=void 0x0);}[_0xb07969(0x18d)](){const _0x1d5288=_0xb07969;this['getEditing']()&&this[_0x1d5288(0x1d1)](null);}};Q=q([K(0x0,_0x52503b),K(0x1,_0x97a100)],Q);function qi(_0x386c56){const _0x3024ab=_0xb07969;return _0x386c56[_0x3024ab(0x10e)]===!0x0||_0x386c56[_0x3024ab(0x10e)]===_0x16c0b3[_0x3024ab(0x18c)]||_0x386c56[_0x3024ab(0x192)]===_0x1fafc0[_0x3024ab(0x2ed)]&&_0x386c56[_0x3024ab(0x22e)]===_0x16c0b3[_0x3024ab(0x18c)]?_0xad1241-0x1:_0x2958d1;}let $=class extends _0x47cfe0{constructor(_0x27137c,_0x1a3f35,_0x1ac993,_0x2cd27f,_0xa469e,_0x11ef24,_0x23eda2){const _0x142f9e=_0xb07969;super(),this['_drawingManagerService']=_0x27137c,this[_0x142f9e(0x1ce)]=_0x1a3f35,this[_0x142f9e(0x16c)]=_0x1ac993,this[_0x142f9e(0x242)]=_0x2cd27f,this[_0x142f9e(0x2d4)]=_0xa469e,this[_0x142f9e(0x208)]=_0x11ef24,this[_0x142f9e(0x281)]=_0x23eda2,X(this,_0x142f9e(0x16b),new Map()),this['disposeWithMe'](this[_0x142f9e(0x281)]['presentationChanged$'][_0x142f9e(0xc4)](_0x1b97a5=>{const _0x2281c8=_0x142f9e;var _0x3d5dab;(_0x3d5dab=this[_0x2281c8(0x16b)][_0x2281c8(0x1af)](this[_0x2281c8(0xc1)](_0x1b97a5['unitId'],_0x1b97a5['subUnitId'],_0x1b97a5[_0x2281c8(0x1f0)])))==null||_0x3d5dab[_0x2281c8(0x2d7)](_0x39a4c9=>_0x39a4c9[_0x2281c8(0xf2)](_0x1b97a5[_0x2281c8(0x2c3)],_0x1b97a5['animationEnabled']));})),this['disposeWithMe'](this[_0x142f9e(0x198)]['remove$']['subscribe'](_0x1a1c39=>{_0x1a1c39['forEach'](_0x5ca237=>{const _0x15ad4f=_0x56ec;this['_shapeFormulaService'][_0x15ad4f(0xb8)]({'unitId':_0x5ca237['unitId'],'subUnitId':_0x5ca237[_0x15ad4f(0x2ae)],'shapeId':_0x5ca237[_0x15ad4f(0x2eb)]}),this[_0x15ad4f(0x16b)][_0x15ad4f(0x14e)](this[_0x15ad4f(0xc1)](_0x5ca237[_0x15ad4f(0x1e2)],_0x5ca237[_0x15ad4f(0x2ae)],_0x5ca237[_0x15ad4f(0x2eb)]));});}));}[_0xb07969(0x1a0)](_0x4b0cca,_0x42e79d){const _0x10229c=_0xb07969;let {transform:_0x2713cb,drawingType:_0x4dabb4,srcRect:_0x4b1b9f,prstGeom:_0x20c083,groupId:_0x3bfd8d,unitId:_0xcc984e,subUnitId:_0x142b7e,drawingId:_0x2ae1a5,isMultiTransform:_0x3d6cc6,transforms:_0x11b6bf,hidden:_0x162db0,selectable:_0x4330af}=_0x4b0cca;if(_0x4dabb4!==_0x507337[_0x10229c(0x1b8)]||!this[_0x10229c(0x198)][_0x10229c(0x2d1)]()||_0x2713cb==null)return;let _0x432e95=this[_0x10229c(0x198)][_0x10229c(0x128)](),_0x223314=_0x3d6cc6&&_0x11b6bf?_0x11b6bf:[_0x2713cb],_0x37be73=[];for(let [_0x4b1b17,_0x8a5b93]of _0x223314['entries']()){let {left:_0x3902f0,top:_0x3ebe1a,width:_0x5a4cbf,height:_0x4b1504,angle:_0x5b3ed8,flipX:_0xb7f5bf,flipY:_0x2a127a,skewX:_0x4b6c79,skewY:_0x4782bc}=_0x8a5b93,_0x7171ed=_0x4dbb43({'unitId':_0xcc984e,'subUnitId':_0x142b7e,'drawingId':_0x2ae1a5},_0x3d6cc6?_0x4b1b17:void 0x0),_0x622e0c=_0x42e79d[_0x10229c(0x1e9)](_0x7171ed);if(_0x622e0c!=null){let _0x2ffc41={'unitId':_0xcc984e,'subUnitId':_0x142b7e,'shapeId':_0x2ae1a5};_0x622e0c instanceof Z&&this[_0x10229c(0x264)](_0x622e0c,_0x2ffc41),_0x622e0c[_0x10229c(0x29e)]({'left':_0x3902f0,'top':_0x3ebe1a,'width':_0x5a4cbf,'height':_0x4b1504,'angle':_0x5b3ed8,'flipX':_0xb7f5bf,'flipY':_0x2a127a,'skewX':_0x4b6c79,'skewY':_0x4782bc});continue;}let _0x50ad7d=this['_drawingManagerService'][_0x10229c(0x189)](_0xcc984e,_0x142b7e),_0x4f782f=_0x50ad7d[_0x10229c(0xcf)](_0x2ae1a5);if(_0x42e79d['getObjectIncludeInGroup'](_0x7171ed)||!this['_drawingManagerService'][_0x10229c(0x2d1)]())continue;let _0x47e2de=this[_0x10229c(0x1ce)][_0x10229c(0xbe)](_0xcc984e,_0x142b7e,_0x2ae1a5);if(!_0x47e2de)continue;let _0x3b6c5d=_0x1c9494(_0x47e2de[_0x10229c(0x2ce)]())?{..._0xdd8679,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0xdd8679,_0x15c8bc=_0x47e2de[_0x10229c(0x20d)]()[_0x10229c(0xe8)],_0x4fb712={'unitId':_0xcc984e,'subUnitId':_0x142b7e,'shapeId':_0x2ae1a5};_0x15c8bc&&this[_0x10229c(0x281)][_0x10229c(0x2e2)](_0x4fb712,_0x15c8bc);let _0x255fa9=new Z(_0x7171ed,{..._0x8a5b93,'zIndex':_0x4f782f===-0x1?_0x50ad7d[_0x10229c(0xb3)]-0x1:_0x4f782f,'shapeModel':_0x47e2de,'localeService':this[_0x10229c(0x16c)],'shapeId':_0x2ae1a5,'unitId':_0xcc984e,'subUnitId':_0x142b7e,'visible':_0x162db0!==!0x0,'evented':_0x4330af!==!0x1,'formulaPresentation':_0x15c8bc?this[_0x10229c(0x281)][_0x10229c(0x1cd)](_0x4fb712):void 0x0,'animateFormulaPresentation':(_0x15c8bc==null?void 0x0:_0x15c8bc[_0x10229c(0x2ea)])!==!0x1,'transformerConfig':_0x3b6c5d});if(_0x15c8bc){let _0x9cb24a=this['_formulaKey'](_0xcc984e,_0x142b7e,_0x2ae1a5),_0x4b50a0=this['_formulaShapes'][_0x10229c(0x1af)](_0x9cb24a)??new Set();_0x4b50a0[_0x10229c(0x2cd)](_0x255fa9),this[_0x10229c(0x16b)][_0x10229c(0x220)](_0x9cb24a,_0x4b50a0);}this['disposeWithMe'](_0x35b1c9(_0x255fa9['onDblclick$']['subscribeEvent']((_0x481fd8,_0x3178ee)=>{const _0x5b3e2e=_0x10229c;_0x47e2de[_0x5b3e2e(0x21c)]()||_0x15c8bc||(this[_0x5b3e2e(0x208)][_0x5b3e2e(0x1d1)]({'visible':!0x0,'unitId':_0xcc984e,'subUnitId':_0x142b7e,'shapeId':_0x2ae1a5,'shapeKey':_0x255fa9[_0x5b3e2e(0x1ea)]}),_0x3178ee['stopPropagation']());}))),_0x42e79d[_0x10229c(0xa0)](_0x255fa9,qi(_0x4b0cca)),_0x432e95&&_0x42e79d[_0x10229c(0x143)](_0x255fa9),_0x3bfd8d&&_0x3cac50({'drawingId':_0x3bfd8d,'unitId':_0xcc984e,'subUnitId':_0x142b7e},_0x255fa9,_0x42e79d,this[_0x10229c(0x198)],_0x3d6cc6?_0x4b1b17:void 0x0),_0x20c083!=null&&_0x255fa9[_0x10229c(0xf8)](_0x20c083),_0x4b1b9f!=null&&_0x255fa9['setSrcRect'](_0x4b1b9f),this[_0x10229c(0x2f1)](_0x255fa9,_0x47e2de[_0x10229c(0x20d)]()),_0x37be73[_0x10229c(0xab)](_0x255fa9);}return _0x37be73;}[_0xb07969(0xc1)](_0x3715c0,_0x53edc3,_0x5d3398){return _0x3715c0+'\x00'+_0x53edc3+'\x00'+_0x5d3398;}[_0xb07969(0x264)](_0x4db3c4,_0xec3426){const _0x2cfde9=_0xb07969;let _0xed579d=this[_0x2cfde9(0x1ce)][_0x2cfde9(0xbe)](_0xec3426[_0x2cfde9(0x1e2)],_0xec3426[_0x2cfde9(0x2ae)],_0xec3426[_0x2cfde9(0x1f0)]),_0x50e67b=_0xed579d==null?void 0x0:_0xed579d['getShapeData']()[_0x2cfde9(0xe8)],_0x441569=this[_0x2cfde9(0xc1)](_0xec3426[_0x2cfde9(0x1e2)],_0xec3426[_0x2cfde9(0x2ae)],_0xec3426['shapeId']);if(_0x50e67b){this[_0x2cfde9(0x281)][_0x2cfde9(0x2e2)](_0xec3426,_0x50e67b);let _0x3d29e0=this['_formulaShapes'][_0x2cfde9(0x1af)](_0x441569)??new Set();_0x3d29e0[_0x2cfde9(0x2cd)](_0x4db3c4),this[_0x2cfde9(0x16b)]['set'](_0x441569,_0x3d29e0);}else{var _0x725efb;this['_shapeFormulaService'][_0x2cfde9(0xb8)](_0xec3426),(_0x725efb=this['_formulaShapes']['get'](_0x441569))==null||_0x725efb[_0x2cfde9(0x14e)](_0x4db3c4);}_0x4db3c4[_0x2cfde9(0xf2)](_0x50e67b?this[_0x2cfde9(0x281)][_0x2cfde9(0x1cd)](_0xec3426):void 0x0,(_0x50e67b==null?void 0x0:_0x50e67b['animationEnabled'])!==!0x1);}[_0xb07969(0x237)](_0x106a46){const _0x42df79=_0xb07969;let _0x6eb5d6=_0x106a46[_0x42df79(0x238)][_0x42df79(0x20d)](),_0x20d85e=_0x6eb5d6[_0x42df79(0x2c9)];if(!_0x20d85e||_0x20d85e[_0x42df79(0x2c0)]!==_0x32374d['PictureFill']||!_0x20d85e['fillImageSource']){_0x106a46[_0x42df79(0x222)](void 0x0);return;}this[_0x42df79(0x2f1)](_0x106a46,_0x6eb5d6);}[_0xb07969(0x2f1)](_0x5b90d6,_0x142795){const _0x44f851=_0xb07969;let _0x2d3c66=_0x142795[_0x44f851(0x2c9)];if(!_0x2d3c66||_0x2d3c66[_0x44f851(0x2c0)]!==_0x32374d[_0x44f851(0x268)]||!_0x2d3c66[_0x44f851(0x112)])return;let _0x1424dc=_0x2d3c66[_0x44f851(0x112)],_0x124141=_0x2d3c66['fillImageSourceType']??_0x2c3528['URL'],_0xa29e3=this['_imageIoService'][_0x44f851(0x19b)](_0x1424dc,_0x124141);if(_0xa29e3){_0x5b90d6[_0x44f851(0x222)](_0xa29e3);return;}this['_loadAndSetImage'](_0x5b90d6,_0x1424dc,_0x124141);}async[_0xb07969(0x2f7)](_0x168d3c,_0x36cb56,_0x4fab10){const _0x517b1d=_0xb07969;let _0x1b2d44;try{if(_0x4fab10===_0x2c3528[_0x517b1d(0xe9)])_0x1b2d44=await this[_0x517b1d(0x242)][_0x517b1d(0x270)](_0x36cb56);else{if(_0x4fab10===_0x2c3528['URL'])try{_0x1b2d44=await this['_urlImageService'][_0x517b1d(0x270)](_0x36cb56);}catch{_0x1b2d44=_0x36cb56;}else _0x1b2d44=_0x36cb56;}}catch(_0x40aa1d){console[_0x517b1d(0x12b)](_0x517b1d(0x176),_0x40aa1d);return;}let _0x5ca4fa=new window[(_0x517b1d(0x278))]();_0x5ca4fa[_0x517b1d(0x25d)]=()=>{this['_imageIoService']['addImageSourceCache'](_0x36cb56,_0x4fab10,_0x5ca4fa),_0x168d3c['setFillImage'](_0x5ca4fa);},_0x5ca4fa[_0x517b1d(0x266)]=()=>{const _0x2aece4=_0x517b1d;console[_0x2aece4(0x12b)](_0x2aece4(0xd4),_0x36cb56);},_0x5ca4fa[_0x517b1d(0x1c5)]=_0x1b2d44;}};$=q([K(0x0,_0x5e0832),K(0x1,_0x4e047b(_0x36af82)),K(0x2,_0x4e047b(_0xe303eb)),K(0x3,_0x9eb47c),K(0x4,_0x501ca3),K(0x5,_0x4e047b(Q)),K(0x6,_0x4e047b(_0x184033))],$);let Ji=class extends _0x47cfe0{constructor(_0x1b60df,_0x58afc9,_0x8dce7a){const _0x110bbf=_0xb07969;super(),this[_0x110bbf(0xbc)]=_0x1b60df,this[_0x110bbf(0x198)]=_0x58afc9,this[_0x110bbf(0x15b)]=_0x8dce7a,this[_0x110bbf(0x1f3)]();}[_0xb07969(0x1f3)](){const _0x59dc11=_0xb07969;this['disposeWithMe'](this['_docPrintInterceptorService'][_0x59dc11(0x2dc)][_0x59dc11(0x2e8)](this[_0x59dc11(0xbc)]['interceptor'][_0x59dc11(0x103)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x1c27cc,_0x427302,_0x475b7a)=>{const _0x4c6251=_0x59dc11;var _0x4d4b30;let {unitId:_0x492624,scene:_0x809368,skeleton:_0x16d06e}=_0x427302,{pageIndex:_0x4b26d5}=_0x427302,_0x131d6c=(_0x4d4b30=this[_0x4c6251(0x198)][_0x4c6251(0xcb)](_0x492624))==null?void 0x0:_0x4d4b30[_0x492624],_0x2fd9ad=Yi(this['_docPrintInterceptorService'],_0x16d06e,_0x4b26d5);return _0x131d6c==null||_0x131d6c[_0x4c6251(0x18e)][_0x4c6251(0x2d7)](_0x5b1067=>{const _0x441a14=_0x4c6251;if(_0x2fd9ad&&!_0x2fd9ad[_0x441a14(0x2f2)](_0x5b1067))return;let _0x2185eb=_0x131d6c[_0x441a14(0x1a1)][_0x5b1067];_0x2185eb[_0x441a14(0x297)]===_0x507337[_0x441a14(0x1b8)]&&!_0x2185eb['hidden']&&this[_0x441a14(0x15b)][_0x441a14(0x1a0)](_0x2185eb,_0x809368);}),_0x475b7a(_0x1c27cc);}}));}};Ji=q([K(0x0,_0x4e047b(_0x20923d)),K(0x1,_0x5e0832),K(0x2,_0x4e047b($))],Ji);function Yi(_0x9e5bd9,_0x3edfef,_0x16ad49){const _0xba41c9=_0xb07969;var _0x5717f0,_0x44c168;let _0x4ab11c=_0x9e5bd9;if(_0x4ab11c[_0xba41c9(0x28d)])return _0x4ab11c['getPageDrawingIds'](_0x3edfef,_0x16ad49);let _0x585ce4=_0x3edfef[_0xba41c9(0xe0)]();if(!_0x585ce4||_0x585ce4[_0xba41c9(0xdd)][_0xba41c9(0xb3)]<=0x1||_0x16ad49==null)return null;let _0x52a03c=new Set(),_0x10e39c=_0x585ce4[_0xba41c9(0xdd)][_0x16ad49];if(!_0x10e39c)return _0x52a03c;Xi(_0x10e39c,_0x52a03c);let _0x3d9847=(_0x5717f0=_0x585ce4[_0xba41c9(0x245)]['get'](_0x10e39c[_0xba41c9(0xd1)]))==null?void 0x0:_0x5717f0[_0xba41c9(0x1af)](_0x10e39c[_0xba41c9(0x28a)]),_0x42080a=(_0x44c168=_0x585ce4[_0xba41c9(0x292)][_0xba41c9(0x1af)](_0x10e39c[_0xba41c9(0x215)]))==null?void 0x0:_0x44c168['get'](_0x10e39c['pageWidth']);return _0x3d9847&&Xi(_0x3d9847,_0x52a03c),_0x42080a&&Xi(_0x42080a,_0x52a03c),_0x52a03c;}function Xi(_0x1e0a89,_0x3260ce){const _0x4cba2b=_0xb07969;for(let _0x214c39 of _0x1e0a89[_0x4cba2b(0x146)][_0x4cba2b(0xdc)]())_0x3260ce[_0x4cba2b(0x2cd)](_0x214c39);for(let _0x23fe0c of _0x1e0a89[_0x4cba2b(0xbb)][_0x4cba2b(0x28b)]())for(let _0x37feab of _0x23fe0c[_0x4cba2b(0x2ca)])for(let _0x4669db of _0x37feab[_0x4cba2b(0x21b)])Xi(_0x4669db,_0x3260ce);}function Zi(_0x1fece4){return _0x3ae1d4(Hr,{..._0x1fece4,'PickerComponent':_0x507df6});}function Qi(){const _0x1ad9ed=_0xb07969;let _0x3f3600=_0x2c5b17(_0xe303eb),_0xddd6ac=zr(),[_0x18af3a,_0x8a70e4]=_0x32384b(!0x1);return _0x3f77f7('div',{'className':_0x1ad9ed(0x19e),'children':[_0x3ae1d4(_0x53dacb,{'title':_0x3f3600['t'](_0x1ad9ed(0x1d6)),'aria-expanded':_0x18af3a,'variant':'subtle','trailing':_0x3ae1d4(_0x18af3a?_0x5250f0:_0x5e6b79,{}),'onClick':()=>_0x8a70e4(_0x58bdd8=>!_0x58bdd8)}),_0x18af3a&&_0x3ae1d4(_0x507df6,{'excludeGroups':[_0x4d18eb[_0x1ad9ed(0xb9)]],'onShapeClick':_0x2acfec=>{_0xddd6ac(_0x2acfec),_0x8a70e4(!0x1);}})]});}function $i(_0x327afb){const _0x575aff=_0xb07969;return _0x327afb[_0x575aff(0x229)]()||void 0x0;}function ea(_0x5f72fa,_0x2edbb1,_0x40b213){const _0x28a56e=_0xb07969;var _0x1a5273,_0x446054;return((_0x1a5273=_0x5f72fa[_0x28a56e(0xcd)])==null?void 0x0:_0x1a5273[_0x28a56e(0x229)]())||((_0x446054=_0x5f72fa[_0x28a56e(0x167)])==null?void 0x0:_0x446054[_0x28a56e(0x229)]())||_0x40b213['t'](_0x28a56e(0xd9)+_0x41e6a6(_0x5f72fa['drawingType']))+'\x20'+(_0x2edbb1+0x1);}function ta({PanelComponent:_0x51d060=_0x3aafaf}){const _0x36a468=_0xb07969;let _0x15974c=_0x2c5b17(_0xe303eb),_0x2508b3={'title':_0x15974c['t'](_0x36a468(0xa5)),'empty':_0x15974c['t']('drawing-ui.objectListPanel.empty'),'showAll':_0x15974c['t'](_0x36a468(0x234)),'hideAll':_0x15974c['t']('drawing-ui.objectListPanel.hideAll'),'lockAll':_0x15974c['t'](_0x36a468(0x2db)),'unlockAll':_0x15974c['t'](_0x36a468(0x188)),'moveForward':_0x15974c['t'](_0x36a468(0x11a)),'moveBackward':_0x15974c['t'](_0x36a468(0x177)),'close':_0x15974c['t'](_0x36a468(0x202)),'show':_0x15974c['t'](_0x36a468(0x300)),'hide':_0x15974c['t'](_0x36a468(0xbd)),'lock':_0x15974c['t']('drawing-ui.objectListPanel.lock'),'unlock':_0x15974c['t'](_0x36a468(0x2d0)),'lockHint':_0x15974c['t'](_0x36a468(0x26c)),'unlockHint':_0x15974c['t'](_0x36a468(0x24f)),'name':_0x15974c['t']('drawing-ui.objectListPanel.name'),'nameInput':_0x15974c['t']('drawing-ui.objectListPanel.nameInput'),'description':_0x15974c['t'](_0x36a468(0x1b0)),'descriptionPlaceholder':_0x15974c['t'](_0x36a468(0x1df)),'details':_0x15974c['t'](_0x36a468(0x2f6)),'noSelection':_0x15974c['t'](_0x36a468(0x11c)),'locate':_0x15974c['t']('drawing-ui.objectListPanel.locate'),'expand':_0x15974c['t'](_0x36a468(0x216)),'collapse':_0x15974c['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0x15974c['t'](_0x36a468(0x247)),'search':_0x15974c['t']('drawing-ui.objectListPanel.search'),'filterAll':_0x15974c['t']('drawing-ui.objectListPanel.filterAll'),'filterHidden':_0x15974c['t']('drawing-ui.objectListPanel.filterHidden'),'filterLocked':_0x15974c['t'](_0x36a468(0x2b1)),'sectionCanvas':_0x15974c['t'](_0x36a468(0xc5)),'sectionFloating':_0x15974c['t'](_0x36a468(0xa1))},_0x2472aa=_0x2c5b17(_0x4e68a9),_0x3ffd88=_0x2c5b17(_0x97a100),_0x177a1a=_0x2c5b17(_0x15a612),_0xec8fe0=_0x2c5b17(_0x5e0832),_0x39e018=_0x2c5b17(_0x2de7f2),[,_0x5de4c8]=_0x144fd5(_0x3e559e=>_0x3e559e+0x1,0x0),_0x3c4539=_0x3ffd88['getCurrentUnitOfType'](_0x1b3194[_0x36a468(0xc7)]),_0x56f095=(_0x3c4539==null?void 0x0:_0x3c4539['getUnitId']())??'',_0xeac5c2=_0x56f095,_0x3c1a8c=_0x291a35(()=>_0xec8fe0['focus$'],_0xec8fe0[_0x36a468(0x197)](),!0x1,[_0xec8fe0]);_0x25db27(()=>{const _0x97e0e0=_0x36a468;let _0x57f1e4=_0x2472aa[_0x97e0e0(0x2ad)](()=>_0x5de4c8());return()=>_0x57f1e4[_0x97e0e0(0x1f8)]();},[_0x2472aa]);let _0x2233e6=_0x56f095?_0x177a1a[_0x36a468(0x19d)](_0x56f095,_0xeac5c2):{},_0x217bf7=(_0x56f095?_0x177a1a[_0x36a468(0x189)](_0x56f095,_0xeac5c2):[])[_0x36a468(0x239)](_0x533d34=>_0x2233e6[_0x533d34])['filter'](_0x69534=>!!_0x69534)['reverse'](),_0x4c29d4=_0x217bf7[_0x36a468(0x131)]((_0x4ee69f,_0x5ed34d)=>(_0x4ee69f[_0x3c3b87(_0x5ed34d[_0x36a468(0x297)])]+=0x1,_0x4ee69f),{'canvas':0x0,'floating':0x0}),_0x2155fa={'canvas':0x0,'floating':0x0},_0x1c437a=_0x217bf7['map']((_0x7c16ca,_0x2d99bd)=>{const _0xf73b24=_0x36a468;let _0x5db569=_0x3c3b87(_0x7c16ca[_0xf73b24(0x297)]),_0x56d3f5=_0x5db569===_0x218ad6,_0x56e4a9=_0x2155fa[_0x5db569]++;return{'id':_0x7c16ca[_0xf73b24(0x2eb)],'name':ea(_0x7c16ca,_0x2d99bd,_0x15974c),'description':_0x7c16ca[_0xf73b24(0xb1)],'visible':_0x7c16ca['hidden']!==!0x0,'selectable':_0x7c16ca[_0xf73b24(0x162)]!==!0x1,'sectionId':_0x5db569,'sectionTitle':_0x56d3f5?_0x2508b3[_0xf73b24(0x251)]:_0x2508b3[_0xf73b24(0x27b)],'capabilities':_0x56d3f5?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x56d3f5&&_0x56e4a9>0x0,'canMoveBackward':!_0x56d3f5&&_0x56e4a9<_0x4c29d4[_0xf73b24(0x11f)]-0x1,'canReorder':!_0x56d3f5};}),_0x4d4d61=_0x25a507(()=>(_0x3c1a8c??[])[_0x36a468(0x101)](_0x3f7a4a=>_0x3f7a4a['unitId']===_0x56f095&&_0x3f7a4a[_0x36a468(0x2ae)]===_0xeac5c2)['map'](_0x441cd5=>_0x441cd5[_0x36a468(0x2eb)]),[_0x3c1a8c,_0xeac5c2,_0x56f095]),_0x3c0915=_0x4d4d61[_0x4d4d61[_0x36a468(0xb3)]-0x1]??null,_0x2e2538=_0x17b9a8=>_0x177a1a[_0x36a468(0x228)]({'unitId':_0x56f095,'subUnitId':_0xeac5c2,'drawingId':_0x17b9a8})??null,_0x5ebcbc=async _0x17d098=>{const _0x4b0216=_0x36a468;_0x56f095&&_0x17d098[_0x4b0216(0xb3)]&&await _0x2472aa[_0x4b0216(0x21a)](_0x4541aa['id'],{'unitId':_0x56f095,'patches':_0x17d098});},_0x105313=(_0x1748c0,_0x43f638)=>{const _0x34225e=_0x36a468;if(!_0x56f095)return;let _0x50c07d=_0x43f638?_0x4d4d61[_0x34225e(0x283)](_0x1748c0)?_0x4d4d61[_0x34225e(0x101)](_0x40cdda=>_0x40cdda!==_0x1748c0):[..._0x4d4d61,_0x1748c0]:[_0x1748c0];_0x2472aa[_0x34225e(0x152)](_0x3eea09['id'],_0x50c07d['map'](_0x2d5c19=>({'unitId':_0x56f095,'subUnitId':_0xeac5c2,'drawingId':_0x2d5c19})));let _0x372e89=_0x50c07d[_0x50c07d['length']-0x1];_0x372e89?_0x5e88aa(_0x39e018,{'unitId':_0x56f095,'subUnitId':_0xeac5c2,'drawingId':_0x372e89}):_0x1c8463(_0x39e018,_0x56f095);},_0x3e27fc=async(_0x50b073,_0xba5f8e)=>{const _0x1c148f=_0x36a468;await _0x5ebcbc(_0x50b073[_0x1c148f(0x239)](_0x2231ec=>_0x2e2538(_0x2231ec))[_0x1c148f(0x101)](_0xa1d102=>!!_0xa1d102)[_0x1c148f(0x101)](_0x8430d9=>_0x8430d9['hidden']!==!0x0!==_0xba5f8e)[_0x1c148f(0x239)](_0x1bca39=>({'drawingId':_0x1bca39[_0x1c148f(0x2eb)],'hidden':!_0xba5f8e})));},_0x44422b=async(_0x475adb,_0x5433d6)=>{const _0x349d5d=_0x36a468;await _0x5ebcbc(_0x475adb['map'](_0xf0c6a9=>_0x2e2538(_0xf0c6a9))['filter'](_0x2c32bc=>!!_0x2c32bc)[_0x349d5d(0x101)](_0x5753d6=>_0x5753d6['selectable']!==!0x1!==_0x5433d6)[_0x349d5d(0x239)](_0xa643e8=>({'drawingId':_0xa643e8[_0x349d5d(0x2eb)],'selectable':_0x5433d6})));},_0x92791e=_0x282eb9=>{const _0x1de59c=_0x36a468;let _0xfe1143=_0x2e2538(_0x282eb9);if(_0xfe1143)return _0x44422b([_0x282eb9],_0xfe1143[_0x1de59c(0x162)]===!0x1);},_0x575795=async(_0x25e00d,_0x4d7147)=>{const _0x2a1581=_0x36a468;let _0x255b2d=_0x2e2538(_0x25e00d),_0x56e5db=$i(_0x4d7147);!_0x255b2d||(_0x255b2d[_0x2a1581(0xcd)]??void 0x0)===_0x56e5db&&(_0x255b2d[_0x2a1581(0x167)]||void 0x0)===_0x56e5db||await _0x5ebcbc([{'drawingId':_0x25e00d,'name':_0x56e5db,'title':_0x56e5db}]);},_0x48f7c3=async(_0x5d1ff4,_0x4d54b4)=>{let _0x269929=_0x2e2538(_0x5d1ff4),_0x59a272=$i(_0x4d54b4);_0x269929&&(_0x269929['description']??void 0x0)!==_0x59a272&&await _0x5ebcbc([{'drawingId':_0x5d1ff4,'description':_0x59a272}]);},_0x444b60=async(_0x4f0651,_0x1d487c)=>{const _0x58f82c=_0x36a468;_0x56f095&&await _0x2472aa[_0x58f82c(0x21a)](_0x51e9f9['id'],{'unitId':_0x56f095,'subUnitId':_0xeac5c2,'drawingIds':[_0x4f0651],'arrangeType':_0x1d487c});};return _0x56f095?_0x3ae1d4(_0x51d060,{'labels':_0x2508b3,'renderPermissionAction':_0x29301c=>_0x3c4539?_0x3ae1d4(_0x7ed924,{'target':{'unitId':_0x56f095,'objectId':_0x4ecdaa(_0x502f97(_0x3c4539,_0x29301c['id']),_0x36a468(0x2ec),_0x29301c['id']),'objectType':_0x43baa7[_0x36a468(0x1b3)]},'name':_0x29301c[_0x36a468(0xcd)],'commandId':_0x21ace8['id'],'exists':()=>!!_0x2e2538(_0x29301c['id'])},_0x56f095+'/'+_0x29301c['id']):null,'items':_0x1c437a,'selectedIds':_0x4d4d61,'focusedId':_0x3c0915,'showHeader':!0x1,'onSelect':_0x105313,'onSetVisible':_0x3e27fc,'onSetSelectable':_0x44422b,'onCommitName':_0x575795,'onCommitDescription':_0x48f7c3,'onMoveForward':async _0x4473f0=>_0x444b60(_0x4473f0,_0x3c626a[_0x36a468(0x289)]),'onMoveBackward':async _0x411b07=>_0x444b60(_0x411b07,_0x3c626a[_0x36a468(0x184)]),'onToggleSelectable':_0x92791e}):_0x3ae1d4(_0x36a468(0x124),{'className':_0x36a468(0xad),'children':_0x2508b3['title']});}function na(){return _0x3ae1d4(ta,{'PanelComponent':_0x1c1392});}let ra=class{constructor(_0x1f2580){const _0x161cd3=_0xb07969;this[_0x161cd3(0x126)]=_0x1f2580;}[_0xb07969(0x111)](_0x2ae7f2,_0x33bdec){const _0x4d12a2=_0xb07969;let _0x45b43b=this[_0x4d12a2(0x126)][_0x4d12a2(0x1ac)](_0x2ae7f2['unitId']),_0xf5111c=_0x45b43b==null?void 0x0:_0x45b43b[_0x4d12a2(0x27a)];if(!_0xf5111c)return;let _0x8c5cdc=_0x4dbb43(_0x2ae7f2),_0x1b4f2a=_0xf5111c[_0x4d12a2(0x1e9)](_0x8c5cdc);_0x1b4f2a==null||_0x1b4f2a[_0x4d12a2(0x222)](_0x33bdec);}};ra=q([K(0x0,_0x2de7f2)],ra);function ia(){const _0x4358f0=_0xb07969;let _0x74dee8=_0x2c5b17(_0x5e0832),_0x4c0345=_0x291a35(()=>_0x74dee8['focus$'],_0x74dee8[_0x4358f0(0x197)](),!0x1,[_0x74dee8]);return _0x4c0345[_0x4358f0(0xb3)]===0x0?null:_0x3ae1d4('div',{'children':_0x3f77f7(_0x4358f0(0x124),{'className':_0x4358f0(0x2c5),'children':[_0x3ae1d4(_0x314a33,{'drawings':_0x4c0345,'hasCropper':!0x1}),_0x3ae1d4(_0x297d86,{'drawings':_0x4c0345}),_0x3ae1d4(_0x4b41dd,{'drawings':_0x4c0345})]})});}function aa(_0x1c78c2){let {unitId:_0x438732,subUnitId:_0x1f6be3,shapeId:_0x176bbf,PositionComponent:_0x4bbda9=ia}=_0x1c78c2,_0x5c6226=_0x2c5b17(_0x4e68a9),_0x588899=_0x2c5b17(ra);return _0x3ae1d4(_0x5b0408,{..._0x1c78c2,'positionEditor':_0x3ae1d4(_0x4bbda9,{}),'onUpdateShapeData':(_0x6a2f03,_0x577134)=>{Jr(_0x5c6226,_0x438732,_0x1f6be3,_0x176bbf,_0x6a2f03,_0x577134);},'onUpdateLineShapeData':(_0x24982f,_0xb2907d)=>{Yr(_0x5c6226,_0x438732,_0x1f6be3,_0x176bbf,_0x24982f,_0xb2907d);},'onUpdateShapeFillImage':_0x29c409=>{_0x588899['updateShapeFillImage']({'unitId':_0x438732,'subUnitId':_0x1f6be3,'drawingId':_0x176bbf},_0x29c409);}});}function oa(){const _0x2f8157=_0xb07969;let _0x4ee580=_0x2c5b17(_0x5e0832),_0x2caee6=_0x291a35(_0x4ee580[_0x2f8157(0x1d4)],_0x4ee580[_0x2f8157(0x197)]());return _0x2caee6[_0x2f8157(0xb3)]===0x0?null:_0x3f77f7(_0x2f8157(0x124),{'className':'univer-grid\x20univer-gap-5\x20univer-p-3','children':[_0x3ae1d4(_0x314a33,{'drawings':_0x2caee6,'hasCropper':!0x1}),_0x3ae1d4(_0x1b9c40,{'drawings':_0x2caee6}),_0x3ae1d4(_0x3c7de0,{'drawings':_0x2caee6})]});}function sa(_0x4f26aa){return _0x3ae1d4(_0x5613de,{'children':_0x3ae1d4(aa,{..._0x4f26aa,'PositionComponent':oa})});}function ca({popup:_0x233fe3}){const _0x2a3b00=_0xb07969;let _0x5172ef=_0x2c5b17(_0xe303eb),{shapeType:_0x4aa553,onText:_0x382c21,onStyle:_0x339db1,onDelete:_0xf8ab45}=_0x233fe3[_0x2a3b00(0x231)],_0x2a1cbb=[{'key':'text','order':0x0,'item':{'id':_0x2a3b00(0x20f),'type':_0x80d687['BUTTON'],'title':_0x5172ef['t']('docs-shape-ui.mobile.text'),'disabled$':_0x3b3dbe(_0x1c9494(_0x4aa553))}},{'key':_0x2a3b00(0x299),'order':0x1,'item':{'id':_0x2a3b00(0x299),'type':_0x80d687[_0x2a3b00(0x2bc)],'title':_0x5172ef['t'](_0x2a3b00(0x2c8))}},{'key':'delete','order':0x2,'item':{'id':_0x2a3b00(0x14e),'type':_0x80d687['BUTTON'],'title':_0x5172ef['t'](_0x2a3b00(0xd8))}}];return _0x3ae1d4(_0x6ccfb9,{'schemas':_0x2a1cbb,'presentation':_0x2a3b00(0x15f),'onOptionSelect':async({id:_0x4fa340})=>{const _0x520af8=_0x2a3b00;_0x4fa340===_0x520af8(0x20f)?await _0x382c21():_0x4fa340==='style'?await _0x339db1():_0x4fa340===_0x520af8(0x14e)&&await _0xf8ab45();}});}const la=_0xb07969(0x27f);function ua(_0x51cf3b,_0x1937b6){const _0x207755=_0xb07969;var _0x51c1ef;let _0x52cb85=_0x51cf3b==null||(_0x51c1ef=_0x51cf3b['getSnapshot']()[_0x207755(0x1a6)])==null?void 0x0:_0x51c1ef[_0x1937b6];return _0x52cb85?_0x52cb85['layoutType']===_0x1fafc0[_0x207755(0x2ed)]?_0x52cb85[_0x207755(0x22e)]===_0x16c0b3[_0x207755(0x18c)]?_0x2db77a[_0x207755(0x163)]:_0x2db77a[_0x207755(0x2aa)]:_0x52cb85[_0x207755(0x192)]===_0x1fafc0[_0x207755(0x140)]?_0x2db77a[_0x207755(0x140)]:_0x52cb85[_0x207755(0x192)]===_0x1fafc0[_0x207755(0x309)]?_0x2db77a[_0x207755(0x309)]:_0x2db77a['INLINE']:_0x2db77a[_0x207755(0xfd)];}function da(_0xa4f791){const _0x3ebca5=_0xb07969;let _0x303334=_0x2c5b17(_0x4df6ac),_0x1ea859=_0x291a35(()=>_0x303334[_0x3ebca5(0x257)],_0x303334[_0x3ebca5(0x109)](),!0x1,[_0x303334]),_0x482c33=_0xa4f791[_0x3ebca5(0x1db)]['extraProps'];return _0x1ea859?_0x3ae1d4(fa,{..._0x482c33,'canvasElement':_0xa4f791['popup']['canvasElement']}):null;}function fa(_0x1136d4){const _0x2de82c=_0xb07969;let _0x3ceba1=_0x2c5b17(_0x4e68a9),_0x3192ff=_0x2c5b17(_0xe303eb),_0x171c3f=_0x2c5b17(_0x36af82),_0x59dbf5=_0x2c5b17(_0x97a100),{unitId:_0x15fe6c,subUnitId:_0x34af6b,drawingId:_0xe0f046,shapeType:_0x2f3cca}=_0x1136d4,[_0x42292f,_0x594b22]=_0x32384b(_0x1136d4[_0x2de82c(0x148)]),_0x1b7225=_0x59dbf5[_0x2de82c(0x1f2)](_0x15fe6c,_0x1b3194['UNIVER_DOC'])??void 0x0,[_0xe0c000,_0x4305c8]=_0x32384b(()=>ua(_0x1b7225,_0xe0f046)),_0x54af24=_0x25a507(()=>_0x4a5c45(_0x42292f),[_0x42292f]),_0x494632=_0x25a507(()=>_0x1fbf5e(_0x42292f),[_0x42292f]);_0x25db27(()=>{const _0x179736=_0x2de82c;let _0x5a8d52=_0x3ceba1[_0x179736(0x2ad)](_0x191f66=>{const _0x3d1d53=_0x179736;if(_0x191f66['id']!==_0x493300['id'])return;let _0x51bb31=_0x171c3f[_0x3d1d53(0x1a2)](_0x15fe6c,_0x34af6b,_0xe0f046);_0x51bb31&&_0x594b22(_0x51bb31);});return()=>_0x5a8d52['dispose']();},[_0x3ceba1,_0x171c3f,_0xe0f046,_0x34af6b,_0x15fe6c]);let _0x3aebc2=_0x32a395=>{_0x594b22(_0x1079f8=>({..._0x1079f8,..._0x32a395}));},_0x579b2f=_0x405161=>{const _0x15b663=_0x2de82c;let _0xe0d580=_0x6f0257(_0x42292f,_0x405161);Jr(_0x3ceba1,_0x15fe6c,_0x34af6b,_0xe0f046,{'oldShapeData':{'shapeText':_0x42292f[_0x15b663(0x29d)]}},_0xe0d580),_0x3aebc2(_0xe0d580);},_0x3d8601=_0x2ad6d7=>{const _0x4b1478=_0x2de82c;_0x4305c8(_0x2ad6d7),_0x3ceba1[_0x4b1478(0x21a)](_0x3e0463['id'],{'unitId':_0x15fe6c,'subUnitId':_0x34af6b,'drawings':[{'unitId':_0x15fe6c,'subUnitId':_0x34af6b,'drawingId':_0xe0f046}],'wrappingStyle':_0x2ad6d7});},_0x57627c=_0x5f4d7f({'hostType':_0x1b3194['UNIVER_DOC'],'unitId':_0x15fe6c,'subUnitId':_0x34af6b,'shapeId':_0xe0f046,'shapeData':_0x42292f,'onUpdateBinding':_0x33c86c=>{let _0x5b2a52={'formulaBinding':_0x33c86c};Jr(_0x3ceba1,_0x15fe6c,_0x34af6b,_0xe0f046,{'oldShapeData':{'formulaBinding':_0x42292f['formulaBinding']}},_0x5b2a52),_0x3aebc2(_0x5b2a52);}}),_0x3c49c7=[{'label':_0x3192ff['t'](_0x2de82c(0x27e)),'value':_0x2db77a[_0x2de82c(0xfd)],'icon':_0x3ae1d4(_0x58b7bb,{})},{'label':_0x3192ff['t'](_0x2de82c(0x129)),'value':_0x2db77a[_0x2de82c(0x140)],'icon':_0x3ae1d4(_0x58b7bb,{})},{'label':_0x3192ff['t']('docs-shape-ui.textWrap.topAndBottom'),'value':_0x2db77a['WRAP_TOP_AND_BOTTOM'],'icon':_0x3ae1d4(_0x58b7bb,{})},{'label':_0x3192ff['t'](_0x2de82c(0x2fa)),'value':_0x2db77a['BEHIND_TEXT'],'icon':_0x3ae1d4(_0x58b7bb,{})},{'label':_0x3192ff['t'](_0x2de82c(0x2d2)),'value':_0x2db77a[_0x2de82c(0x2aa)],'icon':_0x3ae1d4(_0x58b7bb,{})}];return _0x3f77f7(_0x488761,{'children':[_0x3ae1d4(_0x497eb4,{'canvasElement':_0x1136d4['canvasElement'],'shapeData':_0x42292f,'shapeType':_0x2f3cca,'textStyle':{'ff':_0x5d831c[_0x2de82c(0x29d)][_0x2de82c(0x1f5)],'fs':_0x5d831c['shapeText']['fontSize'],'cl':{'rgb':_0x5d831c[_0x2de82c(0x29d)][_0x2de82c(0x100)]},..._0x54af24},'textModel':_0x494632?{'ha':_0x494632['ha']??_0x22763e[_0x2de82c(0x284)],'va':_0x494632['va']??_0x4bcf3d['TOP']}:null,'wrappingStyle':_0xe0c000,'wrappingStyleOptions':_0x3c49c7,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x5d831c[_0x2de82c(0x2c9)],'defaultGradientEndColor':_0x5d831c['gradientEndColor'],'defaultStrokeColor':_0x5d831c[_0x2de82c(0x265)],'extensionGroups':_0x57627c[_0x2de82c(0x209)],'floatingObjectToolbarPosition':_0xe54cac['DOC'],'onUpdateShapeData':(_0x184966,_0x260a89)=>{Jr(_0x3ceba1,_0x15fe6c,_0x34af6b,_0xe0f046,_0x184966,_0x260a89),_0x260a89&&_0x3aebc2(_0x260a89);},'onUpdateText':_0x579b2f,'onUpdateWrappingStyle':_0x201f4c=>_0x3d8601(_0x201f4c),'onOpenPanel':()=>{const _0x20f4e4=_0x2de82c;_0x3ceba1[_0x20f4e4(0x21a)](G['id'],{'unitId':_0x15fe6c,'subUnitId':_0x34af6b,'drawingId':_0xe0f046});},'onDelete':()=>{const _0x52188f=_0x2de82c;_0x3ceba1[_0x52188f(0x21a)](_0x5bac08['id'],{'unitId':_0x15fe6c,'drawings':[{'unitId':_0x15fe6c,'subUnitId':_0x34af6b,'drawingId':_0xe0f046}]});}}),_0x57627c[_0x2de82c(0x1c9)]]});}function pa({variant:_0x2f8ef0,extend:_0x48eb87,..._0x2b9651}){const _0xb90356=_0xb07969;let _0x5ab890=_0x3ae1d4(_0xb90356(0x259),{'x':'7','y':_0xb90356(0x2a8),'width':'6','height':'9','rx':'1','fill':_0xb90356(0xb7),'fillOpacity':_0xb90356(0x28f),'stroke':_0xb90356(0xb7),'strokeWidth':_0xb90356(0x12c)});return _0x3f77f7(_0xb90356(0x1fe),{'aria-hidden':'true','fill':'none','height':_0xb90356(0x12e),'viewBox':_0xb90356(0x2fb),'width':'1em',..._0x2b9651,'children':[_0x2f8ef0===_0xb90356(0x226)&&_0x3f77f7(_0x488761,{'children':[_0x3ae1d4(_0xb90356(0xe3),{'d':_0xb90356(0x29f),'stroke':'currentColor','strokeLinecap':'round','strokeWidth':_0xb90356(0x12c)}),_0x3ae1d4('rect',{'x':'8','y':'7','width':'4','height':'6','rx':_0xb90356(0x196),'fill':'currentColor','fillOpacity':_0xb90356(0x28f),'stroke':_0xb90356(0xb7),'strokeWidth':_0xb90356(0x12c)})]}),_0x2f8ef0===_0xb90356(0x183)&&_0x3f77f7(_0x488761,{'children':[_0x3ae1d4(_0xb90356(0xe3),{'d':_0xb90356(0x191),'stroke':'currentColor','strokeLinecap':_0xb90356(0x9d),'strokeWidth':_0xb90356(0x12c)}),_0x5ab890]}),_0x2f8ef0===_0xb90356(0x193)&&_0x3f77f7(_0x488761,{'children':[_0x3ae1d4(_0xb90356(0xe3),{'d':'M2\x203h16M2\x2017h16','stroke':_0xb90356(0xb7),'strokeLinecap':_0xb90356(0x9d),'strokeWidth':'1.2'}),_0x5ab890]}),_0x2f8ef0==='behind'&&_0x3f77f7(_0x488761,{'children':[_0x5ab890,_0x3ae1d4(_0xb90356(0xe3),{'d':_0xb90356(0x1fd),'stroke':_0xb90356(0xb7),'strokeLinecap':'round','strokeWidth':_0xb90356(0x12c)})]}),_0x2f8ef0==='front'&&_0x3f77f7(_0x488761,{'children':[_0x3ae1d4('path',{'d':_0xb90356(0x1fd),'stroke':_0xb90356(0xb7),'strokeLinecap':_0xb90356(0x9d),'strokeWidth':'1.2'}),_0x3ae1d4(_0xb90356(0x259),{'x':'7','y':_0xb90356(0x2a8),'width':'6','height':'9','rx':'1','fill':_0xb90356(0xb7)})]})]});}const ma=_0x53e4d4=>_0x1245f5=>_0x3ae1d4(pa,{..._0x1245f5,'variant':_0x53e4d4}),ha={'DocsShapeWrapInlineIcon':ma(_0xb07969(0x226)),'DocsShapeWrapSquareIcon':ma('square'),'DocsShapeWrapTopBottomIcon':ma(_0xb07969(0x193)),'DocsShapeWrapBehindTextIcon':ma(_0xb07969(0x2b8)),'DocsShapeWrapInFrontOfTextIcon':ma(_0xb07969(0x1ad))},ga=_0xfc0b1e(()=>{const _0x223c1f=_0xb07969;let _0x20115c=_0x2c5b17(Q),_0x594351=_0x2c5b17(_0x36af82),_0x34c7c4=_0x2c5b17(_0x5e0832),_0xcab6bf=_0x2c5b17(_0x4e68a9),_0x1b642c=_0x25a507(()=>({'getShapeModel':(_0x468eb2,_0xe5173f,_0x3670b2)=>_0x594351[_0x223c1f(0xbe)](_0x468eb2,_0xe5173f,_0x3670b2),'getShapeData':(_0x2f59b5,_0x573079,_0x49917e)=>_0x594351[_0x223c1f(0x1a2)](_0x2f59b5,_0x573079,_0x49917e),'getDrawingTransform':(_0x5c979e,_0x93d679,_0x40d2cc)=>{const _0x1f351a=_0x223c1f;let _0x56b480=_0x34c7c4[_0x1f351a(0x228)]({'unitId':_0x5c979e,'subUnitId':_0x93d679,'drawingId':_0x40d2cc});return _0x56b480==null?void 0x0:_0x56b480['transform'];},'updateShapeText':({unitId:_0x418667,shapeId:_0x28c004,shapeText:_0x13e122,oldShapeText:_0x1d49e5})=>{_0xcab6bf['executeCommand'](_0x45ff60['id'],{'unitId':_0x418667,'shapeId':_0x28c004,'shapeData':{'shapeText':_0x13e122},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x1d49e5}}});},'updateHostSize':({unitId:_0x573c6f,subUnitId:_0x2c95f,shapeId:_0x7e4169,width:_0x5c9b15,height:_0xfb9d63})=>{const _0x451303=_0x223c1f;_0xcab6bf[_0x451303(0x21a)](_0x457e80['id'],{'unitId':_0x573c6f,'subUnitId':_0x2c95f,'drawings':[{'drawingId':_0x7e4169,'key':'size','value':{'width':_0x5c9b15,'height':_0xfb9d63}}]});},'allowHostSizeShrink':({unitId:_0x3dc1c5,subUnitId:_0x333509,shapeId:_0x5aac4b})=>_0x3fe775(_0x594351['getShapeDataById'](_0x3dc1c5,_0x333509,_0x5aac4b))}),[_0xcab6bf,_0x594351,_0x34c7c4]),_0x33dc71=_0x25a507(()=>({'viewportKeys':{'main':_0x348953[_0x223c1f(0x256)]}}),[]);return _0x3ae1d4(_0x215be5,{'adapter':_0x1b642c,'editingService':_0x20115c,'editorUnitId':kr,'positionOptions':_0x33dc71});});let _a=class extends _0x47cfe0{constructor(_0x5f190b,_0x3cdd6c){const _0x34a8f8=_0xb07969;super(),this['_componentManager']=_0x5f190b,this[_0x34a8f8(0x306)]=_0x3cdd6c,this[_0x34a8f8(0x127)](),this[_0x34a8f8(0x135)]();}['_registerIcons'](){const _0xf277fa=_0xb07969;this['_iconManager']['has'](_0xf277fa(0x144))||this[_0xf277fa(0x9c)](this[_0xf277fa(0x306)][_0xf277fa(0x2e2)]({'ObjectLayersIcon':_0x11cff1})),this[_0xf277fa(0x306)][_0xf277fa(0x2f2)](_0xf277fa(0x2ee))||this[_0xf277fa(0x9c)](this[_0xf277fa(0x306)][_0xf277fa(0x2e2)]({'BottomIcon':_0x191e47})),this[_0xf277fa(0x306)]['has'](_0xf277fa(0x170))||this[_0xf277fa(0x9c)](this[_0xf277fa(0x306)]['register']({'MoveDownIcon':_0x54d043})),this[_0xf277fa(0x306)][_0xf277fa(0x2f2)](_0xf277fa(0xed))||this[_0xf277fa(0x9c)](this['_iconManager'][_0xf277fa(0x2e2)]({'MoveUpIcon':_0x42135f})),this[_0xf277fa(0x306)][_0xf277fa(0x2f2)]('ShapeFormatSettingIcon')||this[_0xf277fa(0x9c)](this[_0xf277fa(0x306)]['register']({'ShapeFormatSettingIcon':_0x3eea86})),this[_0xf277fa(0x306)][_0xf277fa(0x2f2)](_0xf277fa(0x161))||this[_0xf277fa(0x9c)](this[_0xf277fa(0x306)][_0xf277fa(0x2e2)]({'TopmostIcon':_0x3f3ea3})),this[_0xf277fa(0x9c)](this['_iconManager'][_0xf277fa(0x2e2)](ha));}[_0xb07969(0x135)](){const _0x5b7f58=_0xb07969;this[_0x5b7f58(0x9c)](this[_0x5b7f58(0x2f9)][_0x5b7f58(0x2e2)](W,sa)),this[_0x5b7f58(0x121)](),this[_0x5b7f58(0x227)](),this[_0x5b7f58(0x9c)](this[_0x5b7f58(0x2f9)][_0x5b7f58(0x2e2)](Zr,ri)),this[_0x5b7f58(0x9c)](this[_0x5b7f58(0x2f9)][_0x5b7f58(0x2e2)](Xr,ii)),this['disposeWithMe'](this['_componentManager'][_0x5b7f58(0x2e2)](Qr,ai)),this[_0x5b7f58(0x9c)](this['_componentManager'][_0x5b7f58(0x2e2)]($r,oi)),this[_0x5b7f58(0x9c)](this[_0x5b7f58(0x2f9)]['register'](ei,si)),this['disposeWithMe'](this[_0x5b7f58(0x2f9)]['register'](Ar,_0x4d68c4)),this['_registerPickers'](),this[_0x5b7f58(0x2f9)][_0x5b7f58(0x1af)](_0x10fa33)||this[_0x5b7f58(0x9c)](this[_0x5b7f58(0x2f9)][_0x5b7f58(0x2e2)](_0x10fa33,Vr)),this[_0x5b7f58(0x9c)](this[_0x5b7f58(0x2f9)][_0x5b7f58(0x2e2)](jr,ga));}[_0xb07969(0x121)](){const _0x25f106=_0xb07969;this[_0x25f106(0x9c)](this[_0x25f106(0x2f9)][_0x25f106(0x2e2)](Or,na));}[_0xb07969(0x227)](){const _0x5bd246=_0xb07969;this[_0x5bd246(0x9c)](this[_0x5bd246(0x2f9)]['register'](la,ca));}[_0xb07969(0xd2)](){const _0x3e869a=_0xb07969;this[_0x3e869a(0x9c)](this['_componentManager'][_0x3e869a(0x2e2)](Ir,Zi)),this[_0x3e869a(0x9c)](this['_componentManager']['register'](Lr,Qi));}};_a=q([K(0x0,_0x4e047b(_0x2f6cfe)),K(0x1,_0x4e047b(_0x16de22))],_a);let va=class extends _0x47cfe0{constructor(_0x199151,_0x16449f,_0x1243a8,_0x75457e,_0x1727e0,_0x1b1f0e,_0x110e00,_0x266d8a,_0x82d80d,_0x3b1f1f,_0x1c6d44,_0x2b3471,_0x5c18ab){const _0x48b809=_0xb07969;super(),this[_0x48b809(0xa2)]=_0x199151,this[_0x48b809(0x2c6)]=_0x16449f,this['_menuManagerService']=_0x1243a8,this[_0x48b809(0x1ce)]=_0x75457e,this['_localeService']=_0x1727e0,this[_0x48b809(0xaa)]=_0x1b1f0e,this[_0x48b809(0x198)]=_0x110e00,this[_0x48b809(0x1e1)]=_0x266d8a,this['_renderManagerService']=_0x82d80d,this[_0x48b809(0x2d6)]=_0x3b1f1f,this['_shapeTextEditingService']=_0x1c6d44,this['_permissionService']=_0x2b3471,this[_0x48b809(0x232)]=_0x5c18ab,X(this,_0x48b809(0xfe),null),X(this,'_activeShapeInfo',null),X(this,_0x48b809(0x2b7),!0x1),X(this,_0x48b809(0x110),0x0),X(this,_0x48b809(0x250),new Map()),X(this,_0x48b809(0x29b),new Map()),this[_0x48b809(0xeb)](),this[_0x48b809(0x9c)](this[_0x48b809(0xa2)][_0x48b809(0xe7)](_0x1b3194['UNIVER_DOC'])[_0x48b809(0xc4)](_0x39528c=>{const _0x32408c=_0x48b809;if(!_0x39528c){var _0x55c399;(_0x55c399=this[_0x32408c(0xfe)])==null||_0x55c399['dispose']();}})),this[_0x48b809(0x1e6)](),this['disposeWithMe'](_0x26417c(this['_renderManagerService'],_0x1b3194[_0x48b809(0xc7)],_0xdb333c=>this[_0x48b809(0x136)](_0xdb333c))),this[_0x48b809(0x9c)](this['_shapeTextEditingService'][_0x48b809(0xfa)]['subscribe'](_0x1f094a=>{const _0xf14349=_0x48b809;_0x1f094a&&this[_0xf14349(0x168)](void 0x0,!0x0);})),this[_0x48b809(0x9c)](this[_0x48b809(0x15a)][_0x48b809(0x1d9)]['subscribe'](()=>{const _0x3586ab=_0x48b809;this['_drawingManagerService']['getFocusDrawings']()['some'](_0x420060=>_0x420060[_0x3586ab(0x297)]===_0x507337[_0x3586ab(0x1b8)]&&this[_0x3586ab(0xa2)][_0x3586ab(0x13a)](_0x420060[_0x3586ab(0x1e2)])===_0x1b3194[_0x3586ab(0xc7)]&&!this[_0x3586ab(0x18b)](_0x420060['unitId'],_0x420060[_0x3586ab(0x2eb)]))&&(this['_clearPopups'](void 0x0,!0x0),this[_0x3586ab(0x194)]());}));}[_0xb07969(0xda)](_0x3c4384,_0xefa357,_0x42a688,_0x21d67d){const _0x3e8508=_0xb07969;return[{'label':_0x3e8508(0x11e),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x3c4384,'subUnitId':_0xefa357,'drawingId':_0x42a688},'disable':_0x21d67d===_0x507337[_0x3e8508(0x2ab)]},{'label':_0x3e8508(0xe4),'index':0x1,'commandId':_0x5bac08['id'],'commandParams':{'unitId':_0x3c4384,'drawings':[{'unitId':_0x3c4384,'subUnitId':_0xefa357,'drawingId':_0x42a688}]},'disable':!0x1},{'label':'docs-shape-ui.hidePanel','index':0x2,'commandId':Ri['id'],'commandParams':{'unitId':_0x3c4384,'subUnitId':_0xefa357,'drawingId':_0x42a688},'disable':!0x1}];}[_0xb07969(0xeb)](){const _0x44fa30=_0xb07969;this[_0x44fa30(0x23b)]['mergeMenu'](Fi);}[_0xb07969(0x243)](_0x21cab9,_0x520c54,_0x38bc72){const _0x33526b=_0xb07969;let _0xd2f348=this[_0x33526b(0x1ce)][_0x33526b(0x255)](_0x21cab9,_0x520c54,_0x38bc72),_0x1a460b=this['_docsShapeService']['getShapeDataById'](_0x21cab9,_0x520c54,_0x38bc72);return _0xd2f348===void 0x0||_0x1a460b===void 0x0?null:{'shapeData':_0x1a460b,'shapeId':_0x38bc72,'shapeType':_0xd2f348,'unitId':_0x21cab9,'subUnitId':_0x520c54,'version':this[_0x33526b(0x110)],'disableShapeOption':!0x1};}['_clearPopups'](_0xca5e22,_0x30d577=!0x1){const _0x58ca18=_0xb07969;if(_0xca5e22==null){[...this[_0x58ca18(0x250)][_0x58ca18(0xdc)]()][_0x58ca18(0x2d7)](_0x21920d=>this[_0x58ca18(0x168)](_0x21920d,_0x30d577));return;}let _0x4c2075=this[_0x58ca18(0x250)][_0x58ca18(0x1af)](_0xca5e22);if(_0x4c2075){for(let _0x5f0679=_0x4c2075[_0x58ca18(0xb3)]-0x1;_0x5f0679>=0x0;--_0x5f0679){let _0x3bf6ec=_0x4c2075[_0x5f0679];(_0x30d577||_0x3bf6ec[_0x58ca18(0x1c1)]())&&(_0x3bf6ec[_0x58ca18(0x1f8)](),_0x4c2075[_0x58ca18(0x14d)](_0x5f0679,0x1));}_0x4c2075[_0x58ca18(0xb3)]===0x0&&(this[_0x58ca18(0x250)][_0x58ca18(0x14e)](_0xca5e22),this[_0x58ca18(0x29b)][_0x58ca18(0x14e)](_0xca5e22));}}[_0xb07969(0x10f)](_0x31d07d){const _0x4a3166=_0xb07969;let _0xbe8d12=this['_disposePopupsByUnit'][_0x4a3166(0x1af)](_0x31d07d);if(_0xbe8d12)return _0xbe8d12;let _0x543f0c=[];return this[_0x4a3166(0x250)][_0x4a3166(0x220)](_0x31d07d,_0x543f0c),_0x543f0c;}['_popupMenuListener'](_0x184667){const _0x187a5d=_0xb07969;var _0x2b98e5;let _0x482cd6=new _0x4f92f4(),_0x6dd3d2=(_0x2b98e5=this[_0x187a5d(0x126)][_0x187a5d(0x2f4)](_0x1b3194[_0x187a5d(0xc7)])[_0x187a5d(0x1cb)](_0x4dae62=>_0x4dae62[_0x187a5d(0x27a)][_0x187a5d(0x2ac)]()===_0x184667))==null?void 0x0:_0x2b98e5[_0x187a5d(0x1e2)];return _0x6dd3d2?(_0x482cd6[_0x187a5d(0x2cd)](_0x184667[_0x187a5d(0x158)]['subscribe'](()=>this['_handleCreateControl'](_0x184667,_0x6dd3d2))),_0x482cd6[_0x187a5d(0x2cd)](_0x184667[_0x187a5d(0xb4)]['subscribe'](()=>{this['_clearPopups'](_0x6dd3d2),queueMicrotask(()=>{const _0x2fabc0=_0x56ec;_0x184667[_0x2fabc0(0x204)]()[_0x2fabc0(0x25b)]>0x0||!this[_0x2fabc0(0x198)]['getFocusDrawings']()['some'](_0x5a8475=>_0x5a8475[_0x2fabc0(0x1e2)]===_0x6dd3d2)||(this[_0x2fabc0(0x2d6)][_0x2fabc0(0x223)](_0x6e7cbb,!0x1),this[_0x2fabc0(0x198)]['focusDrawing'](null));});})),_0x482cd6[_0x187a5d(0x2cd)](_0x184667['changing$'][_0x187a5d(0xc4)](()=>{const _0x1ec63d=_0x187a5d;this[_0x1ec63d(0x168)](_0x6dd3d2,!0x0);})),_0x482cd6):_0x482cd6;}['_handleCreateControl'](_0x57b17b,_0x482405){const _0x309c64=_0xb07969;let _0x1f8944=_0x57b17b[_0x309c64(0x204)]();if(this[_0x309c64(0x2b7)]){this['_clearPopups'](_0x482405,!0x0);return;}if(_0x1f8944['size']>0x1){this[_0x309c64(0x168)](_0x482405);return;}let _0x5f5973=_0x1f8944[_0x309c64(0x28b)]()['next']()[_0x309c64(0x1e5)];if(!_0x5f5973){this['_clearPopups'](_0x482405);return;}let _0x3bfc2e=this[_0x309c64(0x198)][_0x309c64(0x246)](_0x5f5973[_0x309c64(0x1ea)]);if(!_0x3bfc2e||_0x3bfc2e[_0x309c64(0x297)]!==_0x507337[_0x309c64(0x1b8)]){this[_0x309c64(0x168)](_0x482405);return;}let {unitId:_0x1c4808,subUnitId:_0x711437,drawingId:_0xf4d44}=_0x3bfc2e;if(!this[_0x309c64(0x18b)](_0x1c4808,_0xf4d44)){this[_0x309c64(0x168)](_0x482405,!0x0);return;}let _0x40acf1=this[_0x309c64(0x243)](_0x1c4808,_0x711437,_0xf4d44);if(!_0x40acf1){this[_0x309c64(0x168)](_0x482405);return;}let _0x103373=this['_disposePopupsByUnit']['get'](_0x482405),_0x2abac4=_0x1c4808+':'+_0x711437+':'+_0xf4d44;if(this[_0x309c64(0x29b)][_0x309c64(0x1af)](_0x482405)===_0x2abac4&&_0x103373!=null&&_0x103373[_0x309c64(0xb3)])return;this['_clearPopups'](_0x482405);let _0x2d545f=this[_0x309c64(0x126)][_0x309c64(0x1ac)](_0x1c4808),_0x324785=((_0x2d545f==null?void 0x0:_0x2d545f[_0x309c64(0x1b5)])===!0x1?_0x2d545f[_0x309c64(0x125)](_0x114264):this[_0x309c64(0x1e1)])[_0x309c64(0x187)](_0x5f5973,this[_0x309c64(0x2a2)](_0x40acf1,()=>this[_0x309c64(0x168)](_0x482405,!0x0)),_0x1c4808);this[_0x309c64(0x9c)](_0x324785),this[_0x309c64(0x10f)](_0x482405)[_0x309c64(0xab)](_0x324785),this[_0x309c64(0x29b)][_0x309c64(0x220)](_0x482405,_0x2abac4),this[_0x309c64(0x198)]['getFocusDrawings']()[_0x309c64(0x2ff)](_0x33c0df=>_0x33c0df[_0x309c64(0x1e2)]===_0x1c4808&&_0x33c0df['subUnitId']===_0x711437&&_0x33c0df[_0x309c64(0x2eb)]===_0xf4d44)||this[_0x309c64(0x198)][_0x309c64(0xde)]([{'unitId':_0x1c4808,'subUnitId':_0x711437,'drawingId':_0xf4d44}]);}[_0xb07969(0x2a2)](_0x519cf3,_0x3d660a){const _0x387103=_0xb07969;let {unitId:_0x48d903,subUnitId:_0x108b59,shapeId:_0x4c6f81}=_0x519cf3,_0x22264d={'hostType':_0x1b3194['UNIVER_DOC'],'unitId':_0x48d903,'subUnitId':_0x108b59,'shapeId':_0x4c6f81};return{'componentKey':la,'direction':_0x387103(0x233),'offset':[0x0,0x8],'extraProps':{'shapeType':_0x519cf3[_0x387103(0xf9)],'onText':()=>{const _0x5b941d=_0x387103;_0x3d660a(),this[_0x5b941d(0x232)]['open'](_0x5b941d(0x20f),_0x22264d);},'onStyle':()=>{const _0xf69cd1=_0x387103;_0x3d660a(),this[_0xf69cd1(0x232)]['open'](_0xf69cd1(0x299),_0x22264d);},'onDelete':()=>this[_0x387103(0xaa)][_0x387103(0x21a)](_0x5bac08['id'],{'unitId':_0x48d903,'drawings':[{'unitId':_0x48d903,'subUnitId':_0x108b59,'drawingId':_0x4c6f81}]})}};}[_0xb07969(0x18b)](_0xc2f04e,_0x1fd40f){const _0x2b679a=_0xb07969;let _0x1cfdab=this[_0x2b679a(0xa2)][_0x2b679a(0x1f2)](_0xc2f04e,_0x1b3194['UNIVER_DOC']);if(!_0x1cfdab)return!0x1;let _0x318964=_0x502f97(_0x1cfdab,_0x1fd40f);return _0x33aa98(this[_0x2b679a(0x15a)],_0xc2f04e,[..._0x57f81a(_0x1cfdab,_0x318964,'drawing',_0x1fd40f),_0x4ecdaa(_0x318964,_0x2b679a(0x2ec),_0x1fd40f)]);}['_registerOperations'](){const _0x321bc3=_0xb07969;this['disposeWithMe'](this[_0x321bc3(0xaa)][_0x321bc3(0x2ad)](_0x3f6fb4=>{const _0x15d28c=_0x321bc3;if(_0x3f6fb4['id']===G['id']){let {unitId:_0x49796d,subUnitId:_0x5d72be,drawingId:_0x5cb720}=_0x3f6fb4[_0x15d28c(0x1bf)];this[_0x15d28c(0x110)]+=0x1,this[_0x15d28c(0x2a0)]=this['_getShapeInfo'](_0x49796d,_0x5d72be,_0x5cb720),this[_0x15d28c(0x168)](void 0x0,!0x0),this['_openShapeEditPanel']();}if(_0x3f6fb4['id']===Ri['id']&&(this[_0x15d28c(0x2a0)]=null,this[_0x15d28c(0x194)]()),_0x3f6fb4['id']===_0x493300['id']){var _0x4d100d;let {unitId:_0x297a6f,shapeId:_0x14e7bc}=_0x3f6fb4['params'];if(((_0x4d100d=this[_0x15d28c(0x2a0)])==null?void 0x0:_0x4d100d[_0x15d28c(0x1f0)])===_0x14e7bc){let _0x58a053=this[_0x15d28c(0x243)](_0x297a6f,this['_activeShapeInfo'][_0x15d28c(0x2ae)],_0x14e7bc);_0x58a053&&(this['_shapeEditPanelVersion']+=0x1,_0x58a053[_0x15d28c(0x1ba)]=this['_shapeEditPanelVersion'],this[_0x15d28c(0x2a0)]=_0x58a053,this[_0x15d28c(0x2b7)]&&this[_0x15d28c(0x23f)]());}}})),this[_0x321bc3(0x9c)](this['_drawingManagerService'][_0x321bc3(0x1d4)][_0x321bc3(0xc4)](_0x475d86=>{const _0x5894f1=_0x321bc3;if(!this[_0x5894f1(0x2b7)])return;if(_0x475d86['length']===0x0){this[_0x5894f1(0x2a0)]=null,this[_0x5894f1(0x194)]();return;}if(_0x475d86[_0x5894f1(0xb3)]===0x1&&_0x475d86[0x0][_0x5894f1(0x297)]===_0x507337['DRAWING_SHAPE']&&(this[_0x5894f1(0x110)]+=0x1,this[_0x5894f1(0x2a0)]=this[_0x5894f1(0x243)](_0x475d86[0x0][_0x5894f1(0x1e2)],_0x475d86[0x0][_0x5894f1(0x2ae)],_0x475d86[0x0][_0x5894f1(0x2eb)]),this[_0x5894f1(0x2a0)])){this[_0x5894f1(0x23f)]();return;}let _0x2baba5=_0x475d86[_0x5894f1(0x101)](_0xcbb1c8=>_0xcbb1c8[_0x5894f1(0x297)]===_0x507337[_0x5894f1(0x1b8)]);if(this[_0x5894f1(0x110)]+=0x1,this[_0x5894f1(0x2a0)]=this['_getShapeInfo'](_0x475d86[0x0][_0x5894f1(0x1e2)],_0x475d86[0x0][_0x5894f1(0x2ae)],_0x475d86[0x0][_0x5894f1(0x2eb)]),this['_activeShapeInfo']&&_0x475d86['length']>0x1&&_0x2baba5[_0x5894f1(0xb3)]===_0x475d86[_0x5894f1(0xb3)]){this['_openShapeEditPanel']();return;}if(this['_activeShapeInfo']&&_0x2baba5[_0x5894f1(0xb3)]!==_0x475d86[_0x5894f1(0xb3)]){this[_0x5894f1(0x2a0)][_0x5894f1(0x113)]=!0x0,this[_0x5894f1(0x23f)]();return;}this[_0x5894f1(0x194)]();}));}['_openShapeEditPanel'](){const _0x3c4546=_0xb07969;this['_activeShapeInfo']&&(this[_0x3c4546(0xfe)]=this['_sidebarService'][_0x3c4546(0x2bf)]({'id':W,'header':{'title':this[_0x3c4546(0x16c)]['t']('docs-shape-ui.formatShape')},'width':0x184,'children':{'label':W,...this[_0x3c4546(0x2a0)]},'onClose':()=>{const _0x123927=_0x3c4546;this[_0x123927(0x198)]['focusDrawing'](null),this[_0x123927(0x2d6)][_0x123927(0x223)](_0x6e7cbb,!0x1),this['_sidebarDisposable']=null;}}),this[_0x3c4546(0x2b7)]=!0x0);}['_closeShapeEditPanel'](){const _0x4ac653=_0xb07969;this[_0x4ac653(0x2b7)]=!0x1,this[_0x4ac653(0x2c6)][_0x4ac653(0x30c)](W),this[_0x4ac653(0xfe)]=null,this[_0x4ac653(0x2d6)][_0x4ac653(0x223)](_0x6e7cbb,!0x1),this[_0x4ac653(0x198)][_0x4ac653(0xde)](null);}};va=q([K(0x0,_0x97a100),K(0x1,_0x4e047b(_0x60917c)),K(0x2,_0x867b4e),K(0x3,_0x4e047b(_0x36af82)),K(0x4,_0x4e047b(_0xe303eb)),K(0x5,_0x4e68a9),K(0x6,_0x5e0832),K(0x7,_0x4e047b(_0x114264)),K(0x8,_0x2de7f2),K(0x9,_0x244f46),K(0xa,_0x4e047b(Q)),K(0xb,_0x52503b),K(0xc,_0x4e047b(_0x21d080))],va);const ya='docs-shape-contextual-ribbon';let ba=class extends _0x47cfe0{constructor(_0x54a3c6,_0x5752bc,_0x260453,_0x4c8ce9,_0x47a892,_0x349573){const _0x5e9fab=_0xb07969;super(),this['_menuManagerService']=_0x54a3c6,this[_0x5e9fab(0x1a3)]=_0x5752bc,this[_0x5e9fab(0x198)]=_0x260453,this[_0x5e9fab(0xa2)]=_0x4c8ce9,this['_renderManagerService']=_0x47a892,this[_0x5e9fab(0xb5)]=_0x349573,X(this,_0x5e9fab(0x12d),!0x1),this[_0x5e9fab(0x23b)]['mergeMenu'](Pi),this['disposeWithMe'](_0x35b1c9(this['_drawingManagerService'][_0x5e9fab(0x1d4)][_0x5e9fab(0xc4)](()=>this[_0x5e9fab(0x1f4)]()))),this[_0x5e9fab(0x1f4)]();}[_0xb07969(0x1f8)](){const _0x4d4540=_0xb07969;this[_0x4d4540(0xb5)]['setFallbackVisible'](!0x1,ya),this[_0x4d4540(0x119)](),super[_0x4d4540(0x1f8)]();}[_0xb07969(0x1f4)](){const _0x43cae7=_0xb07969;var _0x4b726b;let _0x532b13=this[_0x43cae7(0x198)][_0x43cae7(0x197)](),_0xa1bef6=_0x532b13[_0x43cae7(0xb3)]===0x1?_0x532b13[0x0]:void 0x0;if((_0xa1bef6==null?void 0x0:_0xa1bef6[_0x43cae7(0x297)])!==_0x507337[_0x43cae7(0x1b8)]||this['_univerInstanceService']['getUnitType'](_0xa1bef6[_0x43cae7(0x1e2)])!==_0x1b3194['UNIVER_DOC']){this[_0x43cae7(0xb5)][_0x43cae7(0x16f)](!0x1,ya),this[_0x43cae7(0x119)]();return;}let _0x1bc40a=(_0x4b726b=this[_0x43cae7(0x126)]['getRenderUnitById'](_0xa1bef6[_0x43cae7(0x1e2)]))==null?void 0x0:_0x4b726b[_0x43cae7(0x120)][_0x43cae7(0x141)](),_0x2b3cb7=_0x413b71(_0x1bc40a)==='isolated';if(this['_shapeFloatingToolbarService'][_0x43cae7(0x16f)](_0x2b3cb7,ya),_0x2b3cb7){this[_0x43cae7(0x119)]();return;}this['_visible']=!0x0,this[_0x43cae7(0x1a3)][_0x43cae7(0x1c0)](Dr,{'activate':!0x0});}[_0xb07969(0x119)](){const _0x323173=_0xb07969;this[_0x323173(0x12d)]&&(this[_0x323173(0x12d)]=!0x1,this['_ribbonService'][_0x323173(0xac)](Dr),this[_0x323173(0x1a3)][_0x323173(0x13d)]([]));}};ba=q([K(0x0,_0x867b4e),K(0x1,_0x454476),K(0x2,_0x5e0832),K(0x3,_0x97a100),K(0x4,_0x2de7f2),K(0x5,_0x4e047b(_0x4df6ac))],ba);let xa=class extends _0x47cfe0{constructor(_0x55b7b2,_0x14a6d6,_0x59e87b,_0x5e4ac1){const _0x1dde5a=_0xb07969;super(),this[_0x1dde5a(0xaa)]=_0x55b7b2,this['_renderManagerService']=_0x14a6d6,this[_0x1dde5a(0x198)]=_0x59e87b,this['_docDrawingShapeRenderController']=_0x5e4ac1,this[_0x1dde5a(0x153)]();}['_initialize'](){const _0x33537b=_0xb07969;this[_0x33537b(0x9c)](this['_drawingManagerService'][_0x33537b(0x1a4)]['subscribe'](_0xae62a0=>this[_0x33537b(0x22d)](_0xae62a0))),this[_0x33537b(0x9c)](this['_drawingManagerService'][_0x33537b(0x29a)]['subscribe'](_0x25fdee=>{const _0x1e02dc=_0x33537b;_0x25fdee[_0x1e02dc(0x2d7)](_0x51f7ca=>this[_0x1e02dc(0x211)](_0x51f7ca));})),this[_0x33537b(0x9c)](this[_0x33537b(0xaa)][_0x33537b(0x2ad)](_0x2b7d02=>{const _0x575b5f=_0x33537b;if(_0x2b7d02['id']!==_0x493300['id'])return;let {unitId:_0x2b5c6e,shapeId:_0x43ed60}=_0x2b7d02[_0x575b5f(0x1bf)];this[_0x575b5f(0x165)]({'unitId':_0x2b5c6e,'subUnitId':_0x2b5c6e,'drawingId':_0x43ed60});}));}[_0xb07969(0x22d)](_0x396c37){const _0xfee4fa=_0xb07969;_0x396c37[_0xfee4fa(0x2d7)](_0x5a2d38=>{const _0x1b4052=_0xfee4fa;let _0x5ab309=this[_0x1b4052(0x2fe)](_0x5a2d38['unitId']);if(!_0x5ab309)return;let _0x4a23b9=this[_0x1b4052(0x198)]['getDrawingByParam'](_0x5a2d38);(_0x4a23b9==null?void 0x0:_0x4a23b9['drawingType'])===_0x507337[_0x1b4052(0x1b8)]&&this[_0x1b4052(0x21d)][_0x1b4052(0x1a0)](_0x4a23b9,_0x5ab309['scene']);});}[_0xb07969(0x211)](_0x55aab7){const _0x5426ae=_0xb07969;let _0x24b596=this[_0x5426ae(0x198)]['getDrawingByParam'](_0x55aab7);if((_0x24b596==null?void 0x0:_0x24b596[_0x5426ae(0x297)])!==_0x507337[_0x5426ae(0x1b8)])return;let _0x45a813=this['_getSceneByUnitId'](_0x55aab7[_0x5426ae(0x1e2)]);if(!_0x45a813||_0x24b596[_0x5426ae(0x2c7)]==null)return;let _0x28306d=_0x4dbb43(_0x55aab7),_0x4acf0b=_0x45a813[_0x5426ae(0x27a)][_0x5426ae(0x1e9)](_0x28306d);_0x4acf0b&&(_0x4acf0b[_0x5426ae(0x2a3)](_0x24b596[_0x5426ae(0x203)]),_0x4acf0b['setPrstGeom'](_0x24b596[_0x5426ae(0x305)]),_0x4acf0b[_0x5426ae(0x274)](!0x0));}[_0xb07969(0x165)](_0x340011){const _0x1ba4e1=_0xb07969;let _0x2fb671=this[_0x1ba4e1(0x2fe)](_0x340011[_0x1ba4e1(0x1e2)]);if(!_0x2fb671)return;let _0x1c0808=_0x4dbb43(_0x340011),_0xf15310=_0x2fb671['scene'][_0x1ba4e1(0x1e9)](_0x1c0808);_0xf15310&&(this[_0x1ba4e1(0x21d)][_0x1ba4e1(0x237)](_0xf15310),this[_0x1ba4e1(0x21d)]['refreshFormulaPresentation'](_0xf15310,{'unitId':_0x340011['unitId'],'subUnitId':_0x340011['subUnitId'],'shapeId':_0x340011[_0x1ba4e1(0x2eb)]}),_0xf15310[_0x1ba4e1(0x274)](!0x0));}[_0xb07969(0x2fe)](_0x24a0db){const _0x138ca4=_0xb07969;if(_0x24a0db==null)return null;let _0x1f9dd2=this[_0x138ca4(0x126)]['getRenderUnitById'](_0x24a0db),_0x2cb33d=_0x1f9dd2==null?void 0x0:_0x1f9dd2[_0x138ca4(0x27a)];return _0x2cb33d==null?null:{'scene':_0x2cb33d};}};xa=q([K(0x0,_0x4e68a9),K(0x1,_0x2de7f2),K(0x2,_0x5e0832),K(0x3,_0x4e047b($))],xa);let Sa=class extends _0x3dcd10{constructor(_0x35fa03=Bi,_0x354a69,_0x51f1e2,_0x582126,_0x38c72b){const _0x4ac9a3=_0xb07969;super(),this[_0x4ac9a3(0x23a)]=_0x35fa03,this['_injector']=_0x354a69,this[_0x4ac9a3(0xaa)]=_0x51f1e2,this[_0x4ac9a3(0x262)]=_0x582126,this[_0x4ac9a3(0x126)]=_0x38c72b;let {menu:_0x37ef1a,..._0x4f0b7a}=_0x504bfd({},Bi,this['_config']);_0x37ef1a&&this[_0x4ac9a3(0x262)][_0x4ac9a3(0x298)]('menu',_0x37ef1a,{'merge':!0x0}),this[_0x4ac9a3(0x262)]['setConfig'](zi,_0x4f0b7a),[U,Ri,G,Mr,Pr,Fr]['forEach'](_0x576e1c=>this[_0x4ac9a3(0x9c)](this['_commandService'][_0x4ac9a3(0x206)](_0x576e1c)));}[_0xb07969(0x1ff)](){const _0x5b3d22=_0xb07969;let _0x2051f8=[[_a],[va],[xa],[$],[Ji],[Ki],[J],[ra],[Q],[ba]];_0x5ee79c(this[_0x5b3d22(0x2c2)],_0x2051f8),this[_0x5b3d22(0x2c2)]['get'](_a);}[_0xb07969(0x133)](){const _0x38349c=_0xb07969;this[_0x38349c(0x9c)](this['_renderManagerService'][_0x38349c(0x219)](_0x1b3194[_0x38349c(0xc7)],[Ki])),_0x28e47e(this[_0x38349c(0x2c2)],[[va],[xa],[$],[Ji],[J],[ra],[Q],[ba]]);}};X(Sa,_0xb07969(0x1f7),_0x1b3194[_0xb07969(0xc7)]),X(Sa,_0xb07969(0x2c4),_0xb07969(0x212)),X(Sa,_0xb07969(0x2e1),Ii),X(Sa,_0xb07969(0x1ba),Li),Sa=q([_0x3e509d(_0x2270d5,_0x408d49,_0x47a564,_0x64eb9d,_0x5797e3,_0x4a4e38,_0x17866d,_0x1fbb81,_0x2d499a,_0x5d698b),K(0x1,_0x4e047b(_0x27c23b)),K(0x2,_0x4e68a9),K(0x3,_0x12f4ed),K(0x4,_0x2de7f2)],Sa);let Ca=class extends _0x47cfe0{constructor(_0x63c419,_0x57d0c4){const _0x1d5a1f=_0xb07969;super(),this[_0x1d5a1f(0x2f9)]=_0x63c419,this[_0x1d5a1f(0x306)]=_0x57d0c4,this[_0x1d5a1f(0x127)](),this[_0x1d5a1f(0x135)]();}[_0xb07969(0x127)](){const _0x7e82eb=_0xb07969;this[_0x7e82eb(0x306)][_0x7e82eb(0x2f2)](_0x7e82eb(0x144))||this[_0x7e82eb(0x9c)](this[_0x7e82eb(0x306)][_0x7e82eb(0x2e2)]({'ObjectLayersIcon':_0x11cff1})),this[_0x7e82eb(0x306)][_0x7e82eb(0x2f2)]('BottomIcon')||this[_0x7e82eb(0x9c)](this[_0x7e82eb(0x306)][_0x7e82eb(0x2e2)]({'BottomIcon':_0x191e47})),this['_iconManager'][_0x7e82eb(0x2f2)](_0x7e82eb(0x170))||this[_0x7e82eb(0x9c)](this['_iconManager']['register']({'MoveDownIcon':_0x54d043})),this[_0x7e82eb(0x306)][_0x7e82eb(0x2f2)](_0x7e82eb(0xed))||this[_0x7e82eb(0x9c)](this[_0x7e82eb(0x306)][_0x7e82eb(0x2e2)]({'MoveUpIcon':_0x42135f})),this[_0x7e82eb(0x306)]['has']('ShapeFormatSettingIcon')||this[_0x7e82eb(0x9c)](this[_0x7e82eb(0x306)][_0x7e82eb(0x2e2)]({'ShapeFormatSettingIcon':_0x3eea86})),this[_0x7e82eb(0x306)][_0x7e82eb(0x2f2)](_0x7e82eb(0x161))||this[_0x7e82eb(0x9c)](this['_iconManager'][_0x7e82eb(0x2e2)]({'TopmostIcon':_0x3f3ea3})),this[_0x7e82eb(0x9c)](this[_0x7e82eb(0x306)]['register'](ha));}['_registerComponents'](){const _0x22104d=_0xb07969;this[_0x22104d(0x9c)](this[_0x22104d(0x2f9)][_0x22104d(0x2e2)](W,aa)),this[_0x22104d(0x121)](),this[_0x22104d(0x227)](),this[_0x22104d(0x9c)](this[_0x22104d(0x2f9)][_0x22104d(0x2e2)](Zr,ri)),this[_0x22104d(0x9c)](this['_componentManager']['register'](Xr,ii)),this[_0x22104d(0x9c)](this['_componentManager'][_0x22104d(0x2e2)](Qr,ai)),this[_0x22104d(0x9c)](this[_0x22104d(0x2f9)][_0x22104d(0x2e2)]($r,oi)),this[_0x22104d(0x9c)](this[_0x22104d(0x2f9)][_0x22104d(0x2e2)](ei,si)),this[_0x22104d(0x9c)](this['_componentManager']['register'](Ar,_0x4d68c4)),this[_0x22104d(0xd2)](),this['_componentManager'][_0x22104d(0x1af)](_0x10fa33)||this[_0x22104d(0x9c)](this[_0x22104d(0x2f9)][_0x22104d(0x2e2)](_0x10fa33,Vr)),this[_0x22104d(0x9c)](this[_0x22104d(0x2f9)][_0x22104d(0x2e2)](jr,ga));}[_0xb07969(0x121)](){const _0x3f434e=_0xb07969;this[_0x3f434e(0x9c)](this['_componentManager'][_0x3f434e(0x2e2)](Or,ta));}['_registerFloatingToolbar'](){const _0x46d676=_0xb07969;this[_0x46d676(0x9c)](this[_0x46d676(0x2f9)][_0x46d676(0x2e2)](la,da));}['_registerPickers'](){const _0xbc830f=_0xb07969;this[_0xbc830f(0x9c)](this[_0xbc830f(0x2f9)][_0xbc830f(0x2e2)](Ir,Hr)),this[_0xbc830f(0x9c)](this[_0xbc830f(0x2f9)][_0xbc830f(0x2e2)](Lr,Br));}};Ca=q([K(0x0,_0x4e047b(_0x2f6cfe)),K(0x1,_0x4e047b(_0x16de22))],Ca);let wa=class extends _0x47cfe0{constructor(_0x5c38a9,_0x563558,_0x3b45f0,_0xf4966d,_0x889b15,_0x545a38,_0x5327f2,_0x5a522f,_0x469c1f){const _0x41c7df=_0xb07969;super();let _0x1202c9=_0x4c4cf1=>{const _0x59efef=_0x56ec;let _0x226e57=_0x545a38[_0x59efef(0x1f2)](_0x4c4cf1['unitId'],_0x1b3194[_0x59efef(0xc7)]),_0x1fd5d7=_0x226e57?_0x502f97(_0x226e57,_0x4c4cf1['shapeId']):'';return!!_0x226e57&&_0x33aa98(_0x5a522f,_0x4c4cf1[_0x59efef(0x1e2)],[_0x4ecdaa(_0x1fd5d7,'drawing',_0x4c4cf1[_0x59efef(0x1f0)]),..._0x57f81a(_0x226e57,_0x1fd5d7,_0x59efef(0x2ec),_0x4c4cf1[_0x59efef(0x1f0)])]);},_0x3dd54c=_0x144176=>_0x144176['shapeId']&&_0x1202c9(_0x144176)?_0x3b45f0[_0x41c7df(0x1a2)](_0x144176[_0x41c7df(0x1e2)],_0x144176[_0x41c7df(0x1f0)])??null:null,_0x19deb1=()=>{const _0x32e708=_0x41c7df;let _0x379d0a=_0x889b15['getFocusDrawings'](),_0x38e92d=_0x379d0a[_0x32e708(0xb3)]===0x1?_0x379d0a[0x0]:null;return(_0x38e92d==null?void 0x0:_0x38e92d[_0x32e708(0x297)])===_0x507337[_0x32e708(0x1b8)]&&_0x38e92d['unitId']===_0x5c38a9[_0x32e708(0x1e2)]?{'unitId':_0x38e92d[_0x32e708(0x1e2)],'subUnitId':_0x38e92d[_0x32e708(0x2ae)],'shapeId':_0x38e92d[_0x32e708(0x2eb)]}:null;};this['disposeWithMe'](_0x4f9cea(_0x5c38a9,_0x563558,{'changes$':_0x50281f(_0x889b15[_0x41c7df(0x1d4)],_0xf4966d[_0x41c7df(0xfa)],_0x5a522f[_0x41c7df(0x1d9)]),'isActive':()=>{const _0xa8be57=_0x41c7df;var _0x3f6f1a;return((_0x3f6f1a=_0x545a38[_0xa8be57(0x24c)]())==null?void 0x0:_0x3f6f1a[_0xa8be57(0x105)]())===_0x5c38a9[_0xa8be57(0x1e2)]&&!_0x5327f2[_0xa8be57(0x22f)](_0x58fefd)&&_0x889b15[_0xa8be57(0x197)]()[_0xa8be57(0x2ff)](_0x4c47ed=>_0x4c47ed[_0xa8be57(0x1e2)]===_0x5c38a9[_0xa8be57(0x1e2)]);},'getSelectedTarget':_0x19deb1,'getSource':()=>{let _0x468632=_0x19deb1();return _0x468632?_0x3dd54c(_0x468632):null;},'getTarget':_0x1ddb8e=>{const _0x443447=_0x41c7df;let _0x3d1031=_0x5c38a9[_0x443447(0x27a)][_0x443447(0x195)](new _0x22f150(_0x1ddb8e['offsetX'],_0x1ddb8e[_0x443447(0x2b3)]));if(!(_0x3d1031 instanceof Z))return null;let _0x1f3440={'unitId':_0x5c38a9[_0x443447(0x1e2)],'subUnitId':_0x5c38a9[_0x443447(0x1e2)],'shapeId':_0x3d1031['shapeId']};return _0x1202c9(_0x1f3440)?_0x1f3440:null;},'getShape':_0x3dd54c,'update':(_0x2909ec,_0x2d0a6c,_0x3b9bf7)=>_0x469c1f[_0x41c7df(0x21a)](_0x45ff60['id'],{..._0x2909ec,'shapeData':_0x3b9bf7,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x2d0a6c}})}));}};wa=q([K(0x1,_0x4e047b(_0x128469)),K(0x2,_0x4e047b(_0x36af82)),K(0x3,_0x4e047b(Q)),K(0x4,_0x5e0832),K(0x5,_0x97a100),K(0x6,_0x244f46),K(0x7,_0x52503b),K(0x8,_0x4e68a9)],wa);function Ta(_0x2e7e89,_0x909d9f){const _0xace127=_0xb07969;let _0x1951ce=_0x2e7e89;for(;_0x1951ce;){if(_0x909d9f(_0x1951ce))return _0x1951ce;_0x1951ce=typeof _0x1951ce[_0xace127(0x1dd)]=='function'?_0x1951ce['getParent']():null;}return null;}function Ea(_0xc66b60){return Ta(_0xc66b60,_0x26c129=>_0x26c129 instanceof Z);}function Da(_0x17bebc){return(_0x17bebc==null?void 0x0:_0x17bebc['formulaBinding'])==null;}let Oa=class extends _0x47cfe0{constructor(_0x1d96db,_0x40b922,_0x5db17c,_0x28c8cb,_0x17dff4,_0x3fa08c){const _0x34027a=_0xb07969;super(),this[_0x34027a(0x210)]=_0x1d96db,this[_0x34027a(0x208)]=_0x40b922,this[_0x34027a(0x198)]=_0x5db17c,this['_contextService']=_0x28c8cb,this['_docLayoutInteractionService']=_0x17dff4,this[_0x34027a(0x1ce)]=_0x3fa08c,X(this,_0x34027a(0x2de),null),X(this,'_layoutInteraction',null),this['_initEvents'](),this['_initSelection'](),this['_initEditingParams']();}[_0xb07969(0x1f8)](){const _0x2d5830=_0xb07969;this[_0x2d5830(0x2a9)](),super[_0x2d5830(0x1f8)]();}['_initEvents'](){const _0x5952f0=_0xb07969;let {scene:_0xbb72dc}=this[_0x5952f0(0x210)];this[_0x5952f0(0x9c)](_0xbb72dc[_0x5952f0(0x180)][_0x5952f0(0x115)]((_0x11bdfe,_0x58e0ff)=>{const _0x917fe8=_0x5952f0;let {offsetX:_0x3aef06,offsetY:_0x5f0fba}=_0x11bdfe,_0x1da555=_0x22f150[_0x917fe8(0x13e)]([_0x3aef06,_0x5f0fba]),_0xc3d362=Ea(_0xbb72dc[_0x917fe8(0x195)](_0x1da555))??this[_0x917fe8(0x11d)](_0x1da555);if(_0xc3d362){_0x58e0ff[_0x917fe8(0x2be)]();let _0x49fe65=this[_0x917fe8(0x1ce)][_0x917fe8(0xbe)](_0xc3d362[_0x917fe8(0x1e2)],_0xc3d362[_0x917fe8(0x2ae)],_0xc3d362[_0x917fe8(0x1f0)]);if(!_0x49fe65||_0x1c9494(_0x49fe65[_0x917fe8(0x2ce)]())||!Da(_0x49fe65[_0x917fe8(0x20d)]()))return;this[_0x917fe8(0x208)][_0x917fe8(0x1d1)]({'visible':!0x0,'unitId':_0xc3d362['unitId'],'subUnitId':_0xc3d362[_0x917fe8(0x2ae)],'shapeId':_0xc3d362[_0x917fe8(0x1f0)],'shapeKey':_0xc3d362[_0x917fe8(0x1ea)]});}}));}[_0xb07969(0x11d)](_0x4a3daa){const _0x596ab8=_0xb07969;let {scene:_0x100230}=this[_0x596ab8(0x210)];return this[_0x596ab8(0x198)][_0x596ab8(0x197)]()[_0x596ab8(0x239)](_0x1da5ea=>_0x100230['getObjectIncludeInGroup'](_0x4dbb43(_0x1da5ea)))['find'](_0xaf67dd=>_0xaf67dd instanceof Z&&_0xaf67dd['isHit'](_0x4a3daa))??null;}[_0xb07969(0x2ba)](){const _0x48dff6=_0xb07969;this[_0x48dff6(0x9c)](this[_0x48dff6(0x198)][_0x48dff6(0x1d4)][_0x48dff6(0xc4)](_0x7379d6=>{const _0x2ad969=_0x48dff6;if(_0x7379d6[_0x2ad969(0xb3)]===0x1){let _0x2ebb8d=_0x7379d6[0x0],_0x4e6ba5=this['_drawingManagerService'][_0x2ad969(0x228)](_0x2ebb8d);if((_0x4e6ba5==null?void 0x0:_0x4e6ba5[_0x2ad969(0x297)])===_0x507337[_0x2ad969(0x1b8)]){let _0x122fe3=this[_0x2ad969(0x208)][_0x2ad969(0x26b)]();if((_0x122fe3==null?void 0x0:_0x122fe3[_0x2ad969(0x1f0)])===_0x2ebb8d[_0x2ad969(0x2eb)]&&_0x122fe3['visible'])return;_0x1c9494(this[_0x2ad969(0x1ce)][_0x2ad969(0x2ce)](_0x2ebb8d['unitId'],_0x2ebb8d[_0x2ad969(0x2ae)],_0x2ebb8d[_0x2ad969(0x2eb)]))&&this[_0x2ad969(0x208)]['setEditing'](null);}else this['_shapeTextEditingService'][_0x2ad969(0xef)]();}else this[_0x2ad969(0x208)]['completeEditing']();})),this[_0x48dff6(0x9c)](this[_0x48dff6(0x198)][_0x48dff6(0x200)][_0x48dff6(0xc4)](_0x2ebb38=>{const _0x40dc0e=_0x48dff6;let _0x23cc27=this[_0x40dc0e(0x208)][_0x40dc0e(0x26b)]();_0x23cc27&&_0x2ebb38[_0x40dc0e(0x2ff)](_0x57c72b=>_0x57c72b[_0x40dc0e(0x2eb)]===_0x23cc27[_0x40dc0e(0x1f0)])&&this[_0x40dc0e(0x208)][_0x40dc0e(0x1d1)](null);}));}['_initEditingParams'](){const _0x223bba=_0xb07969;this[_0x223bba(0x9c)](this[_0x223bba(0x208)][_0x223bba(0xfa)][_0x223bba(0xc4)](_0x3c7f97=>{const _0x2b0593=_0x223bba;(_0x3c7f97==null?void 0x0:_0x3c7f97[_0x2b0593(0x1f6)])===!0x0&&_0x3c7f97[_0x2b0593(0x1e2)]===this[_0x2b0593(0x210)]['unitId']?this[_0x2b0593(0xa7)]??=this[_0x2b0593(0x142)]['beginInteraction']():this[_0x2b0593(0x2a9)]();let {scene:_0x15312f}=this[_0x2b0593(0x210)];if(this['_lastEditingShapeKey']){let _0x4a74a7=_0x15312f[_0x2b0593(0x1e9)](this['_lastEditingShapeKey']);_0x4a74a7&&_0x4a74a7[_0x2b0593(0x1d1)](!0x1);}if(_0x3c7f97){let _0x4d3a4e=!!_0x3c7f97[_0x2b0593(0x1f6)],_0x4442e0=_0x15312f[_0x2b0593(0x1e9)](_0x3c7f97['shapeKey']);_0x4442e0&&(_0x4442e0[_0x2b0593(0x1d1)](_0x4d3a4e),this['_lastEditingShapeKey']=_0x3c7f97[_0x2b0593(0x2b4)]),this[_0x2b0593(0x2d6)][_0x2b0593(0x223)](_0x58fefd,_0x4d3a4e);}else this[_0x2b0593(0x2de)]=null,this['_contextService'][_0x2b0593(0x223)](_0x58fefd,!0x1);}));}['_endLayoutInteraction'](){const _0x3e5f46=_0xb07969;var _0x395f17;(_0x395f17=this[_0x3e5f46(0xa7)])==null||_0x395f17[_0x3e5f46(0x1f8)](),this[_0x3e5f46(0xa7)]=null;}};Oa=q([K(0x1,_0x4e047b(Q)),K(0x2,_0x5e0832),K(0x3,_0x244f46),K(0x4,_0x4e047b(_0xbebd3f)),K(0x5,_0x4e047b(_0x36af82))],Oa);let ka=class extends _0xeb3327{constructor(_0x5a0dd5,_0x32082a,_0x27d8d6,_0x1df181,_0x4bcac1,_0x37c8ce,_0x515dd9,_0x46e5a6,_0x3ad1b7,_0x1f695f){super(_0x5a0dd5,_0x32082a,_0x27d8d6,_0x1df181,_0x4bcac1,_0x37c8ce,_0x515dd9,_0x46e5a6,_0x3ad1b7,_0x1f695f,{'componentKey':Ar,'editorUnitId':kr});}};ka=q([K(0x1,_0x4e047b(_0x4eb510)),K(0x2,_0x4e047b(_0x114264)),K(0x3,_0x4e047b(_0x43d68e)),K(0x4,_0x4e68a9),K(0x5,_0x4e047b(_0x3f17e2)),K(0x6,_0x4e047b(_0x343e38)),K(0x7,_0x4e047b(_0x3d1cb9)),K(0x8,_0x4e047b(_0x5bdc30)),K(0x9,_0x4e047b(Q))],ka);let Aa=class extends _0x334c84{constructor(_0x1ffc5c,_0x1c1421,_0x18cc30,_0x304193,_0x3097ad){const _0x2b8502=_0xb07969;super(_0x1ffc5c,_0x1c1421,{'editing$':_0x18cc30[_0x2b8502(0xfa)],'resolve':_0x56c4a9=>{const _0x3f5b7a=_0x2b8502;var _0x19ab5d;let _0x720899=new _0x22f150(_0x56c4a9[_0x3f5b7a(0x1ee)],_0x56c4a9['offsetY']),_0x22a53f=((_0x19ab5d=_0x1ffc5c[_0x3f5b7a(0x27a)][_0x3f5b7a(0xf0)](_0x720899))==null?void 0x0:_0x19ab5d['transformVector2SceneCoord'](_0x720899))??_0x720899,_0x15567f=_0x407e0f(_0x1ffc5c[_0x3f5b7a(0x27a)]['pick'](_0x720899)??null,_0x22a53f);if(!(_0x15567f instanceof Z))return null;let _0x5109ef=_0x15567f['resolveHyperLinkAt'](_0x22a53f);if(!_0x5109ef)return null;let _0x13f30d=_0x15567f,_0x3f30a9={'componentKey':_0x2d1f69[_0x3f5b7a(0x2e3)],'direction':_0x3f5b7a(0x233),'offset':[0x0,0xa],'onClickOutside':()=>_0x1c1421[_0x3f5b7a(0x1a8)]()};return{'object':_0x15567f,'info':{..._0x5109ef,'unitId':_0x15567f[_0x3f5b7a(0x1e2)],'subUnitId':_0x15567f[_0x3f5b7a(0x2ae)],'shapeKey':_0x15567f[_0x3f5b7a(0x1ea)],'readonly':!0x0,'copyable':_0x56d289(_0x3097ad,_0x15567f[_0x3f5b7a(0x1e2)],_0x15567f[_0x3f5b7a(0x1e2)],_0x472897[_0x3f5b7a(0x282)])},'attachPopup':()=>_0x304193[_0x3f5b7a(0x187)](_0x13f30d,_0x3f30a9,_0x13f30d[_0x3f5b7a(0x1e2)])};}});}};Aa=q([K(0x1,_0x4e047b(_0x343e38)),K(0x2,_0x4e047b(Q)),K(0x3,_0x4e047b(_0x114264)),K(0x4,_0x52503b)],Aa);let ja=class extends _0x47cfe0{constructor(_0x339771,_0x3a6f47,_0x282d2e,_0x425f15,_0x3ab328,_0x3c6f95,_0x3004bd,_0x5dce4c,_0x271889,_0x1adaef,_0x2adad4,_0xd21ce){const _0x33bfb7=_0xb07969;super(),this[_0x33bfb7(0xa2)]=_0x339771,this[_0x33bfb7(0x2c6)]=_0x3a6f47,this[_0x33bfb7(0x23b)]=_0x282d2e,this[_0x33bfb7(0x1ce)]=_0x425f15,this[_0x33bfb7(0x16c)]=_0x3ab328,this[_0x33bfb7(0xaa)]=_0x3c6f95,this[_0x33bfb7(0x198)]=_0x3004bd,this[_0x33bfb7(0x1e1)]=_0x5dce4c,this[_0x33bfb7(0x126)]=_0x271889,this['_contextService']=_0x1adaef,this[_0x33bfb7(0x208)]=_0x2adad4,this['_permissionService']=_0xd21ce,X(this,_0x33bfb7(0xfe),null),X(this,'_activeShapeInfo',null),X(this,_0x33bfb7(0x2b7),!0x1),X(this,_0x33bfb7(0x110),0x0),X(this,'_disposePopupsByUnit',new Map()),X(this,_0x33bfb7(0x29b),new Map()),this[_0x33bfb7(0xeb)](),this[_0x33bfb7(0x9c)](this[_0x33bfb7(0xa2)][_0x33bfb7(0xe7)](_0x1b3194['UNIVER_DOC'])[_0x33bfb7(0xc4)](_0x15a697=>{const _0x4c18b9=_0x33bfb7;if(!_0x15a697){var _0x40b8a3;(_0x40b8a3=this['_sidebarDisposable'])==null||_0x40b8a3[_0x4c18b9(0x1f8)]();}})),this[_0x33bfb7(0x1e6)](),this[_0x33bfb7(0x9c)](_0x26417c(this['_renderManagerService'],_0x1b3194[_0x33bfb7(0xc7)],_0xb9c054=>this[_0x33bfb7(0x136)](_0xb9c054))),this[_0x33bfb7(0x9c)](this[_0x33bfb7(0x208)][_0x33bfb7(0xfa)][_0x33bfb7(0xc4)](_0x533a5d=>{const _0x56739d=_0x33bfb7;_0x533a5d&&this[_0x56739d(0x168)](void 0x0,!0x0);})),this[_0x33bfb7(0x9c)](this[_0x33bfb7(0x15a)][_0x33bfb7(0x1d9)]['subscribe'](()=>{const _0x299072=_0x33bfb7;this[_0x299072(0x198)][_0x299072(0x197)]()[_0x299072(0x2ff)](_0x411dac=>_0x411dac['drawingType']===_0x507337[_0x299072(0x1b8)]&&this['_univerInstanceService'][_0x299072(0x13a)](_0x411dac[_0x299072(0x1e2)])===_0x1b3194[_0x299072(0xc7)]&&!this['_canEditShape'](_0x411dac[_0x299072(0x1e2)],_0x411dac['drawingId']))&&(this[_0x299072(0x168)](void 0x0,!0x0),this[_0x299072(0x194)]());}));}[_0xb07969(0xeb)](){const _0x469a2c=_0xb07969;this[_0x469a2c(0x23b)]['mergeMenu'](Fi);}[_0xb07969(0xda)](_0x3c4ca6,_0x1728eb,_0x50e4fb,_0x2edd13){const _0x5dd2a9=_0xb07969;return[{'label':_0x5dd2a9(0x11e),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x3c4ca6,'subUnitId':_0x1728eb,'drawingId':_0x50e4fb},'disable':_0x2edd13===_0x507337[_0x5dd2a9(0x2ab)]},{'label':_0x5dd2a9(0xe4),'index':0x1,'commandId':_0x5bac08['id'],'commandParams':{'unitId':_0x3c4ca6,'drawings':[{'unitId':_0x3c4ca6,'subUnitId':_0x1728eb,'drawingId':_0x50e4fb}]},'disable':!0x1},{'label':_0x5dd2a9(0x272),'index':0x2,'commandId':Ri['id'],'commandParams':{'unitId':_0x3c4ca6,'subUnitId':_0x1728eb,'drawingId':_0x50e4fb},'disable':!0x1}];}[_0xb07969(0x243)](_0x2eb982,_0x4e8dcb,_0x51abf1){const _0xe12f5c=_0xb07969;let _0x483ade=this['_docsShapeService'][_0xe12f5c(0x255)](_0x2eb982,_0x4e8dcb,_0x51abf1),_0x25db0f=this[_0xe12f5c(0x1ce)]['getShapeDataById'](_0x2eb982,_0x4e8dcb,_0x51abf1);return _0x483ade!==void 0x0&&_0x25db0f!==void 0x0?{'shapeData':_0x25db0f,'shapeId':_0x51abf1,'shapeType':_0x483ade,'unitId':_0x2eb982,'subUnitId':_0x4e8dcb,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}[_0xb07969(0x168)](_0x5a1422,_0x4df8c7=!0x1){const _0x24ddcd=_0xb07969;if(_0x5a1422==null){[...this[_0x24ddcd(0x250)][_0x24ddcd(0xdc)]()][_0x24ddcd(0x2d7)](_0x9e4baf=>this[_0x24ddcd(0x168)](_0x9e4baf,_0x4df8c7));return;}let _0x46fbe5=this[_0x24ddcd(0x250)]['get'](_0x5a1422);if(_0x46fbe5){for(let _0x1e3b75=_0x46fbe5[_0x24ddcd(0xb3)]-0x1;_0x1e3b75>=0x0;--_0x1e3b75){let _0x22cdfd=_0x46fbe5[_0x1e3b75];(_0x4df8c7||_0x22cdfd['canDispose']())&&(_0x22cdfd[_0x24ddcd(0x1f8)](),_0x46fbe5[_0x24ddcd(0x14d)](_0x1e3b75,0x1));}_0x46fbe5[_0x24ddcd(0xb3)]===0x0&&(this['_disposePopupsByUnit'][_0x24ddcd(0x14e)](_0x5a1422),this['_popupTargetKeys'][_0x24ddcd(0x14e)](_0x5a1422));}}[_0xb07969(0x10f)](_0x5ed886){const _0x3a8260=_0xb07969;let _0x1ed0e6=this[_0x3a8260(0x250)]['get'](_0x5ed886);if(_0x1ed0e6)return _0x1ed0e6;let _0x544f74=[];return this['_disposePopupsByUnit'][_0x3a8260(0x220)](_0x5ed886,_0x544f74),_0x544f74;}[_0xb07969(0x136)](_0x48ad46){const _0x4decf1=_0xb07969;var _0x38a93e;let _0x301343=new _0x4f92f4(),_0x47a03e=(_0x38a93e=this[_0x4decf1(0x126)][_0x4decf1(0x2f4)](_0x1b3194[_0x4decf1(0xc7)])[_0x4decf1(0x1cb)](_0x365b69=>_0x365b69['scene']['getTransformerByCreate']()===_0x48ad46))==null?void 0x0:_0x38a93e[_0x4decf1(0x1e2)];return _0x47a03e?(_0x301343['add'](_0x48ad46[_0x4decf1(0x158)][_0x4decf1(0xc4)](()=>this[_0x4decf1(0x151)](_0x48ad46,_0x47a03e))),_0x301343['add'](_0x48ad46[_0x4decf1(0xb4)][_0x4decf1(0xc4)](()=>{const _0x473f06=_0x4decf1;this[_0x473f06(0x168)](_0x47a03e),queueMicrotask(()=>{const _0x5743d0=_0x473f06;_0x48ad46[_0x5743d0(0x204)]()[_0x5743d0(0x25b)]>0x0||!this[_0x5743d0(0x198)][_0x5743d0(0x197)]()[_0x5743d0(0x2ff)](_0x594e0a=>_0x594e0a[_0x5743d0(0x1e2)]===_0x47a03e)||(this[_0x5743d0(0x2d6)]['setContextValue'](_0x6e7cbb,!0x1),this['_drawingManagerService'][_0x5743d0(0xde)](null));});})),_0x301343[_0x4decf1(0x2cd)](_0x48ad46[_0x4decf1(0xc3)][_0x4decf1(0xc4)](()=>{const _0x101df9=_0x4decf1;this[_0x101df9(0x168)](_0x47a03e,!0x0);})),_0x301343):_0x301343;}[_0xb07969(0x151)](_0x33173f,_0x5f2b3d){const _0x5a6d0f=_0xb07969;let _0x1ff3db=_0x33173f['getSelectedObjectMap']();if(this[_0x5a6d0f(0x2b7)]){this[_0x5a6d0f(0x168)](_0x5f2b3d,!0x0);return;}if(_0x1ff3db[_0x5a6d0f(0x25b)]>0x1){this[_0x5a6d0f(0x168)](_0x5f2b3d);return;}let _0x6bcc82=_0x1ff3db[_0x5a6d0f(0x28b)]()[_0x5a6d0f(0x303)]()[_0x5a6d0f(0x1e5)];if(!_0x6bcc82){this[_0x5a6d0f(0x168)](_0x5f2b3d);return;}let _0x69d74e=this[_0x5a6d0f(0x198)][_0x5a6d0f(0x246)](_0x6bcc82[_0x5a6d0f(0x1ea)]);if(!_0x69d74e||_0x69d74e[_0x5a6d0f(0x297)]!==_0x507337['DRAWING_SHAPE']){this[_0x5a6d0f(0x168)](_0x5f2b3d);return;}let {unitId:_0x1cf65f,subUnitId:_0x4b6ba8,drawingId:_0x63545d,drawingType:_0x1354ef}=_0x69d74e;if(!this['_canEditShape'](_0x1cf65f,_0x63545d)){this[_0x5a6d0f(0x168)](_0x5f2b3d,!0x0);return;}let _0x463c1f=this['_getShapeInfo'](_0x1cf65f,_0x4b6ba8,_0x63545d);if(!_0x463c1f){this[_0x5a6d0f(0x168)](_0x5f2b3d);return;}let _0x4bf05c=this[_0x5a6d0f(0x250)][_0x5a6d0f(0x1af)](_0x5f2b3d),_0x4b9d6a=_0x1cf65f+':'+_0x4b6ba8+':'+_0x63545d;if(this[_0x5a6d0f(0x29b)][_0x5a6d0f(0x1af)](_0x5f2b3d)===_0x4b9d6a&&_0x4bf05c&&_0x4bf05c[_0x5a6d0f(0xb3)]>0x0)return;this[_0x5a6d0f(0x168)](_0x5f2b3d);let _0x4548e4=this[_0x5a6d0f(0x126)][_0x5a6d0f(0x1ac)](_0x1cf65f),_0xaf3cde=((_0x4548e4==null?void 0x0:_0x4548e4['isMainScene'])===!0x1?_0x4548e4['with'](_0x114264):this['_docCanvasPopManagerService'])[_0x5a6d0f(0x187)](_0x6bcc82,this[_0x5a6d0f(0x2a2)](_0x463c1f,_0x1354ef),_0x1cf65f);this['disposeWithMe'](_0xaf3cde),this[_0x5a6d0f(0x10f)](_0x5f2b3d)[_0x5a6d0f(0xab)](_0xaf3cde),this[_0x5a6d0f(0x29b)]['set'](_0x5f2b3d,_0x4b9d6a),this[_0x5a6d0f(0x198)][_0x5a6d0f(0x197)]()[_0x5a6d0f(0x2ff)](_0x3b8f8e=>_0x3b8f8e['unitId']===_0x1cf65f&&_0x3b8f8e[_0x5a6d0f(0x2ae)]===_0x4b6ba8&&_0x3b8f8e[_0x5a6d0f(0x2eb)]===_0x63545d)||this[_0x5a6d0f(0x198)][_0x5a6d0f(0xde)]([{'unitId':_0x1cf65f,'subUnitId':_0x4b6ba8,'drawingId':_0x63545d}]);}[_0xb07969(0x2a2)](_0x300339,_0x97e78){const _0x4606fb=_0xb07969;return{'componentKey':la,'direction':_0x4606fb(0x267),'offset':[0x0,_0x4971b5],'extraProps':{'unitId':_0x300339[_0x4606fb(0x1e2)],'subUnitId':_0x300339[_0x4606fb(0x2ae)],'drawingId':_0x300339[_0x4606fb(0x1f0)],'drawingType':_0x97e78,'shapeType':_0x300339['shapeType'],'shapeData':_0x300339[_0x4606fb(0x148)]}};}[_0xb07969(0x18b)](_0x253194,_0x2bd830){const _0x5a013e=_0xb07969;let _0x344361=this['_univerInstanceService'][_0x5a013e(0x1f2)](_0x253194,_0x1b3194['UNIVER_DOC']);if(!_0x344361)return!0x1;let _0x504e9a=_0x502f97(_0x344361,_0x2bd830);return _0x33aa98(this[_0x5a013e(0x15a)],_0x253194,[..._0x57f81a(_0x344361,_0x504e9a,_0x5a013e(0x2ec),_0x2bd830),_0x4ecdaa(_0x504e9a,_0x5a013e(0x2ec),_0x2bd830)]);}[_0xb07969(0x1e6)](){const _0x57bde1=_0xb07969;this[_0x57bde1(0x9c)](this[_0x57bde1(0xaa)]['onCommandExecuted'](_0xff98a3=>{const _0x1ecb83=_0x57bde1;if(_0xff98a3['id']===G['id']){let {unitId:_0xb8b13c,subUnitId:_0x1742d1,drawingId:_0x5c016b}=_0xff98a3['params'];this[_0x1ecb83(0x110)]+=0x1,this[_0x1ecb83(0x2a0)]=this[_0x1ecb83(0x243)](_0xb8b13c,_0x1742d1,_0x5c016b),this['_clearPopups'](void 0x0,!0x0),this[_0x1ecb83(0x23f)]();}if(_0xff98a3['id']===Ri['id']&&(this[_0x1ecb83(0x2a0)]=null,this[_0x1ecb83(0x194)]()),_0xff98a3['id']===_0x493300['id']){let {unitId:_0x33f360,shapeId:_0x44e61f}=_0xff98a3['params'];if(this[_0x1ecb83(0x2a0)]&&this[_0x1ecb83(0x2a0)][_0x1ecb83(0x1f0)]===_0x44e61f){let _0x4ea8fe=this[_0x1ecb83(0x243)](_0x33f360,this[_0x1ecb83(0x2a0)][_0x1ecb83(0x2ae)],_0x44e61f);_0x4ea8fe&&(this[_0x1ecb83(0x110)]+=0x1,_0x4ea8fe['version']=this[_0x1ecb83(0x110)],this[_0x1ecb83(0x2a0)]=_0x4ea8fe,this['_isOpenedShapeEditPanel']&&this[_0x1ecb83(0x23f)]());}}})),this['disposeWithMe'](this[_0x57bde1(0x198)][_0x57bde1(0x1d4)]['subscribe'](_0xc3523=>{const _0x9daef6=_0x57bde1;if(this[_0x9daef6(0x2b7)]===!0x1)return;if(_0xc3523[_0x9daef6(0xb3)]===0x0){this[_0x9daef6(0x2a0)]=null,this['_closeShapeEditPanel']();return;}if(_0xc3523[_0x9daef6(0xb3)]===0x1&&_0xc3523[0x0][_0x9daef6(0x297)]===_0x507337[_0x9daef6(0x1b8)]&&(this[_0x9daef6(0x110)]+=0x1,this[_0x9daef6(0x2a0)]=this['_getShapeInfo'](_0xc3523[0x0]['unitId'],_0xc3523[0x0][_0x9daef6(0x2ae)],_0xc3523[0x0][_0x9daef6(0x2eb)]),this['_activeShapeInfo'])){this['_openShapeEditPanel']();return;}let _0x13fa4b=_0xc3523[_0x9daef6(0x101)](_0x15cd6d=>_0x15cd6d['drawingType']===_0x507337[_0x9daef6(0x1b8)]);if(_0xc3523[_0x9daef6(0xb3)]>0x1&&_0x13fa4b[_0x9daef6(0xb3)]===_0xc3523['length']){if(this['_shapeEditPanelVersion']+=0x1,this[_0x9daef6(0x2a0)]=this[_0x9daef6(0x243)](_0xc3523[0x0][_0x9daef6(0x1e2)],_0xc3523[0x0][_0x9daef6(0x2ae)],_0xc3523[0x0]['drawingId']),this[_0x9daef6(0x2a0)]){this[_0x9daef6(0x23f)]();return;}}else{if(this[_0x9daef6(0x110)]+=0x1,this[_0x9daef6(0x2a0)]=this['_getShapeInfo'](_0xc3523[0x0][_0x9daef6(0x1e2)],_0xc3523[0x0][_0x9daef6(0x2ae)],_0xc3523[0x0]['drawingId']),this['_activeShapeInfo']){this[_0x9daef6(0x2a0)][_0x9daef6(0x113)]=!0x0,this[_0x9daef6(0x23f)]();return;}}this[_0x9daef6(0x194)]();}));}[_0xb07969(0x23f)](){const _0xaf0ce3=_0xb07969;this[_0xaf0ce3(0x2a0)]&&(this[_0xaf0ce3(0xfe)]=this['_sidebarService'][_0xaf0ce3(0x2bf)]({'id':W,'header':{'title':this[_0xaf0ce3(0x16c)]['t']('docs-shape-ui.formatShape')},'width':0x184,'children':{'label':W,...this[_0xaf0ce3(0x2a0)]},'onClose':()=>{const _0x56c14a=_0xaf0ce3;this['_drawingManagerService'][_0x56c14a(0xde)](null),this[_0x56c14a(0x2d6)][_0x56c14a(0x223)](_0x6e7cbb,!0x1),this[_0x56c14a(0xfe)]=null;}}),this[_0xaf0ce3(0x2b7)]=!0x0);}[_0xb07969(0x194)](){const _0x49d17e=_0xb07969;this['_isOpenedShapeEditPanel']=!0x1,this[_0x49d17e(0x2c6)]['close'](W),this['_sidebarDisposable']=null,this['_contextService'][_0x49d17e(0x223)](_0x6e7cbb,!0x1),this[_0x49d17e(0x198)]['focusDrawing'](null);}};ja=q([K(0x0,_0x97a100),K(0x1,_0x4e047b(_0x60917c)),K(0x2,_0x867b4e),K(0x3,_0x4e047b(_0x36af82)),K(0x4,_0x4e047b(_0xe303eb)),K(0x5,_0x4e68a9),K(0x6,_0x5e0832),K(0x7,_0x4e047b(_0x114264)),K(0x8,_0x2de7f2),K(0x9,_0x244f46),K(0xa,_0x4e047b(Q)),K(0xb,_0x52503b)],ja);let Ma=class extends _0x47cfe0{constructor(_0x4e0546,_0x59c137){const _0x39be92=_0xb07969;super(),this[_0x39be92(0x1ce)]=_0x4e0546,this['_localeService']=_0x59c137,this[_0x39be92(0x9c)](_0x35b1c9(_0x145692((_0x5daf63,_0x3fe7ca,_0x353ac9)=>this['_measure'](_0x5daf63,_0x3fe7ca,_0x353ac9))));}['_measure'](_0x5016ed,_0x342b3e,_0x53940f){const _0x11730a=_0xb07969;let _0x139089=this[_0x11730a(0x1ce)][_0x11730a(0xbe)](_0x5016ed,_0x342b3e);if(!_0x139089)return null;let _0x3f58fc=_0x139089[_0x11730a(0x20d)](),_0x4d89f4=_0x4bf978(_0x3f58fc),_0x47999b=_0x3f58fc[_0x11730a(0x29d)];if(!_0x47999b||_0x4d89f4['autoFitType']!==_0x4d280d[_0x11730a(0x1d2)])return null;let _0x171dc7=_0x53940f[_0x11730a(0x2b6)],_0x243d92=_0x53940f['fallbackHeight'];_0x139089[_0x11730a(0x244)]({'width':_0x171dc7,'height':_0x243d92});let _0x5966b6=_0x139089[_0x11730a(0x2fd)]({'left':0x0,'top':0x0,'width':_0x171dc7,'height':_0x243d92}),_0x3cac6d=_0x16437f(_0x11730a(0x2b9)in _0x47999b?_0x47999b[_0x11730a(0x2b9)]:void 0x0),_0x15b534=(_0x3cac6d==null?void 0x0:_0x3cac6d[_0x11730a(0x1b6)])??(_0x11730a(0x293)in _0x47999b?_0x1503a7(_0x47999b,_0x342b3e+_0x11730a(0x114)):null);if(!_0x15b534)return null;let _0x571b11=_0x59eb5a({'documentData':_0x15b534,'height':_0x243d92,'shapeData':_0x3f58fc,'textRect':_0x5966b6,'width':_0x171dc7,'widthBuffer':0x0});_0x571b11&&({width:_0x171dc7,height:_0x243d92}=_0x571b11,_0x139089[_0x11730a(0x244)]({'width':_0x171dc7,'height':_0x243d92}),_0x5966b6=_0x139089[_0x11730a(0x2fd)]({'left':0x0,'top':0x0,'width':_0x171dc7,'height':_0x243d92}));let _0x4f3d0f=_0x47999b['isHorizontal']!==!0x1,_0x59e566=_0x27fe9f(_0x15b534,{'isHorizontal':_0x4f3d0f,'textRect':_0x5966b6,'verticalAlign':_0x3cac6d==null?void 0x0:_0x3cac6d['va'],'horizontalAlign':_0x3cac6d==null?void 0x0:_0x3cac6d['ha'],'wrapStrategy':_0x4e5632(_0x3f58fc)}),_0x53eb1e=new _0x320bf5(_0x59e566),_0x3b0ad2=new _0x74ae6b(_0x53eb1e),_0x562123=_0x51294b[_0x11730a(0xc0)](_0x3b0ad2,this[_0x11730a(0x16c)]);try{var _0x568fbe,_0xcd6dfb;_0x562123[_0x11730a(0x156)]();let _0x294c37=((_0x568fbe=_0x562123['getSkeletonData']())==null?void 0x0:_0x568fbe['pages'])??[],_0x3875e2=_0x294c37[_0x294c37[_0x11730a(0xb3)]-0x1],_0x4113bf=_0x3875e2?Math['max'](0x0,((_0xcd6dfb=_0x54e01c(_0x3875e2))==null?void 0x0:_0xcd6dfb[_0x11730a(0x1d7)])??0x0):0x0,_0x5c8e0a=_0x562123[_0x11730a(0x160)]()[_0x11730a(0x2bb)]+_0x4113bf-(_0x4f3d0f?_0x5966b6[_0x11730a(0x175)]:_0x5966b6[_0x11730a(0x182)]);return Number['isFinite'](_0x5c8e0a)?_0x4f3d0f?{'width':_0x171dc7,'height':Math[_0x11730a(0x1cc)](0x1,_0x243d92+_0x5c8e0a)}:{'width':Math[_0x11730a(0x1cc)](0x1,_0x171dc7+_0x5c8e0a),'height':_0x243d92}:null;}finally{_0x562123[_0x11730a(0x1f8)](),_0x3b0ad2['dispose'](),_0x53eb1e[_0x11730a(0x1f8)]();}}};Ma=q([K(0x0,_0x4e047b(_0x36af82)),K(0x1,_0x4e047b(_0xe303eb))],Ma);let Na=class extends _0x3dcd10{constructor(_0x45425b=Bi,_0x31507d,_0x534075,_0x3e1817,_0x4b890d){const _0x11e7a9=_0xb07969;super(),this['_config']=_0x45425b,this['_injector']=_0x31507d,this[_0x11e7a9(0xaa)]=_0x534075,this[_0x11e7a9(0x262)]=_0x3e1817,this['_renderManagerService']=_0x4b890d;let {menu:_0x819b13,..._0x16cec4}=_0x504bfd({},Bi,this[_0x11e7a9(0x23a)]);_0x819b13&&this[_0x11e7a9(0x262)]['setConfig']('menu',_0x819b13,{'merge':!0x0}),this['_configService'][_0x11e7a9(0x298)](zi,_0x16cec4),this[_0x11e7a9(0x166)]();}['onStarting'](){const _0x206538=_0xb07969;_0x5ee79c(this[_0x206538(0x2c2)],this[_0x206538(0x2f8)]()),this[_0x206538(0x2c2)][_0x206538(0x1af)](Ca),this[_0x206538(0x20e)]();}[_0xb07969(0x2f8)](){return[[Ca],[ja],[xa],[$],[Ji],[Ki],[J],[ra],[Ma],[Q],[ba]];}[_0xb07969(0x133)](){const _0x7be3fc=_0xb07969;this[_0x7be3fc(0x139)]()[_0x7be3fc(0x2d7)](_0x3d3bdd=>{const _0x47738c=_0x7be3fc;this[_0x47738c(0x9c)](this['_renderManagerService'][_0x47738c(0x219)](_0x1b3194[_0x47738c(0xc7)],_0x3d3bdd));}),_0x28e47e(this[_0x7be3fc(0x2c2)],[[ja],[xa],[$],[Ji],[J],[ra],[Ma],[Q],[ba]]);}[_0xb07969(0x139)](){return[[Ki],[Oa],[Aa],[wa]];}[_0xb07969(0x27d)](){const _0x1a6657=_0xb07969;this['disposeWithMe'](this[_0x1a6657(0x126)][_0x1a6657(0x219)](_0x1b3194[_0x1a6657(0xc7)],[ka]));}[_0xb07969(0x166)](){const _0x2f3edb=_0xb07969;[U,Ri,G,Mr,Pr,Fr][_0x2f3edb(0x2d7)](_0xc0820e=>this[_0x2f3edb(0x9c)](this[_0x2f3edb(0xaa)]['registerCommand'](_0xc0820e)));}['_initUIPart'](){const _0xce084b=_0xb07969;let _0x16294e=this[_0xce084b(0x2c2)],_0x181069=_0x16294e[_0xce084b(0x1af)](_0x35439e);this[_0xce084b(0x9c)](_0x181069[_0xce084b(0x1b7)](_0xcc1654[_0xce084b(0x15e)],()=>_0x4f06fa(ga,_0x16294e)));}};X(Na,_0xb07969(0x1f7),_0x1b3194[_0xb07969(0xc7)]),X(Na,_0xb07969(0x2c4),_0xb07969(0x212)),X(Na,'packageName',Ii),X(Na,_0xb07969(0x1ba),Li),Na=q([_0x3e509d(_0x2270d5,_0x408d49,_0x47a564,_0x56cb01,_0x5797e3,_0x58cd09,_0x17866d,_0x403f8a,_0x2d499a,_0x16bd14),K(0x1,_0x4e047b(_0x27c23b)),K(0x2,_0x4e68a9),K(0x3,_0x12f4ed),K(0x4,_0x2de7f2)],Na);export{Fi as DocsShapeUIMenuSchema,Sa as UniverDocsShapeMobileUIPlugin,Na as UniverDocsShapeUIPlugin};
|