@univerjs-pro/docs-shape-ui 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +21 -21
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x43e8a4=_0xe027;(function(_0xf5f981,_0x37c09a){const _0x375de0=_0xe027,_0x2a99a9=_0xf5f981();while(!![]){try{const _0x336c43=-parseInt(_0x375de0(0xb4))/0x1+-parseInt(_0x375de0(0x1dc))/0x2+-parseInt(_0x375de0(0x1b7))/0x3*(-parseInt(_0x375de0(0x17d))/0x4)+parseInt(_0x375de0(0x1a8))/0x5+-parseInt(_0x375de0(0x2cc))/0x6+parseInt(_0x375de0(0x195))/0x7*(parseInt(_0x375de0(0x1ec))/0x8)+parseInt(_0x375de0(0xfa))/0x9*(parseInt(_0x375de0(0x112))/0xa);if(_0x336c43===_0x37c09a)break;else _0x2a99a9['push'](_0x2a99a9['shift']());}catch(_0x4ef567){_0x2a99a9['push'](_0x2a99a9['shift']());}}}(_0x3d03,0x8d0b8));import{FormulaShapeAnimationController as _0x41ef0b,MobileShapeEditorControls as _0x4ab532,MobileShapeEditorService as _0x1c4e81,MobileShapePickerPanel as _0x8f16d9,SHAPE_CHANGE_PICKER_COMPONENT as _0x12e18b,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x3257bd,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x274783,ShapeEditPanel as _0x4daa70,ShapeFloatingToolbar as _0x198192,ShapeFloatingToolbarService as _0x9377b1,ShapeFloatingToolbarToggleFactory as _0x374e3e,ShapeFormulaRibbonControl as _0xcdf079,ShapeGroupEnum as _0x29b383,ShapePickerDropdown as _0x1c6a88,ShapePickerPanel as _0x1a369d,ShapeQuickStyleGallery as _0x51195d,ShapeStyleRibbonControl as _0xd6f3ea,ShapeTextEditorContainer as _0x8f7333,ShapeTextFloatMenuRenderControllerBase as _0x4b2f89,ShapeTextFloatToolbar as _0x4eb1a6,ShapeTextHyperLinkHoverController as _0x34514a,ShapeTextHyperLinkInfo as _0x100f36,ShapeTextHyperLinkPopupService as _0x478335,ShapeTextRibbonControl as _0x473bd6,ToggleShapeFloatingToolbarOperation as _0x10dcc9,UniverShapeEditorMobileUIPlugin as _0x54a90e,UniverShapeEditorUIPlugin as _0x40cd8a,activateDrawingObject as _0x2aeb4f,bindRenderTransformerLifecycle as _0x1d984c,buildShapeTextDataUpdate as _0x2fe1a2,clearActiveDrawingObjects as _0x482003,createShapeTextHyperLinkRegions as _0x32283e,drawFormulaShapeAnimationLayers as _0x2b587f,getDrawingTypeNameKey as _0x36d1e2,getTextModel as _0x46bcad,getTextStyle as _0x11e2fa,normalizeShapeTextModel as _0x33266c,plainShapeTextToDocumentData as _0x5e99a9,prepareShapeTextDocumentData as _0x26bed1,prepareShapeTextDocumentData as _0x18300c,registerShapeFormatPainter as _0x3c87e0,resolveFormulaShapeAutoFitSize as _0x4b8d5f,resolveShapeContextualRibbonHostMode as _0x3c6397,resolveShapeTextDocumentPageHeight as _0x30a506,resolveShapeTextDocumentRenderLayout as _0x4f930a,resolveShapeTextEditorBehaviorShapeData as _0x17c928,resolveShapeTextEditorWrapStrategy as _0xd357af,resolveShapeTextHyperLinkAt as _0x436b63,resolveShapeTextHyperLinkObject as _0x2c5cc5,shouldAllowShapeTextEditorHostSizeShrink as _0x1574e0,shouldClipShapeTextDocument as _0x1c7d20,useFormulaShapeToolbar as _0x29c39b}from'@univerjs-pro/shape-editor-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0x4df301,DOC_CONTENT_INSERT_MENU_ID as _0x3f6de3,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0xdfd9ae,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x5e7691,DocCanvasPopManagerService as _0x58fb7f,DocEventManagerService as _0x21724d,DocLayoutInteractionService as _0xf6bc99,DocParagraphMenuService as _0x4b5937,DocPrintInterceptorService as _0x3197e2,DocRenderController as _0x3f802a,DocSelectionRenderService as _0x161ebd,EMPTY_PARAGRAPH_MENU_ID as _0x23a7e9,INSERT_BELLOW_MENU_ID as _0x4203e1,UniverDocsMobileUIPlugin as _0x3a37cf,UniverDocsUIPlugin as _0x4a2dcb,VIEWPORT_KEY as _0x28fe54}from'@univerjs/docs-ui';import{BuiltInUIPart as _0x40e763,ComponentManager as _0x5974e5,ContextMenuGroup as _0x57116b,ContextMenuPosition as _0x26c1b2,FloatingObjectToolbarPosition as _0x7e4a12,FormatPainterSessionService as _0x22cfa6,IMenuManagerService as _0x354de5,IRibbonService as _0x1989ad,ISidebarService as _0x5cd437,IUIPartsService as _0x4c7e7e,IconManager as _0x358fdb,MenuItemType as _0x3c5886,MenuManagerPosition as _0x242878,MobileMenu as _0xab6cb4,ObjectPermissionButton as _0x6fcfc4,RibbonInsertGroup as _0x59a1a7,connectInjector as _0x3697e2,getMenuHiddenObservable as _0x546425,useDependency as _0x2f1968,useObservable as _0x24248b}from'@univerjs/ui';import{DEFAULT_DOC_SHAPE_HEIGHT as _0x4111fb,DEFAULT_DOC_SHAPE_WIDTH as _0x5c3f4d,DocShapeAnchorPosition as _0x822ec2,DocsShapeService as _0x3e6ec4,InsertDocShapeCommand as _0x3ff9f6,UniverDocsShapePlugin as _0x2e07fc,UpdateDocDrawingMetadataCommand as _0x4054f5,UpdateDocShapeDataCommand as _0xc5bd8e,UpdateDocShapeDataMutation as _0x4aaefb}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x3423a9,ShapeArrowSizeEnum as _0x3a63cf,ShapeArrowTypeEnum as _0x42e35b,ShapeDefaultConfig as _0x1f925b,ShapeFillEnum as _0x5ea484,ShapeLineTypeEnum as _0x3f4778,ShapeModel as _0x5d1466,ShapeRenderModeEnum as _0x17498a,ShapeTextAutoFitType as _0x4b45c6,ShapeTypeEnum as _0x90f8ed,isConnectorShape as _0x3a8d31,resolveShapeTextBodyBehavior as _0x94d984}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x1fb743,UniverShapeEditorPlugin as _0x2830ac,applyQuickStyleToShapeData as _0x22ba98,cloneShapeDataForType as _0x147fa8,createShapeFormulaDocument as _0x59b1ab,createShapeTextBoxShapeData as _0x4be474,getShapeQuickStylePreset as _0x4fe810,getShapeQuickStyleType as _0x4bc092,resolveActiveShapeQuickStylePresetId as _0x3d44c4}from'@univerjs-pro/shape-editor';import{ArrangeTypeEnum as _0x1f6748,BooleanNumber as _0x2eeb60,CommandType as _0x5e8815,DependentOn as _0x1a58e1,Disposable as _0x143425,DisposableCollection as _0x4bf1ef,DocumentDataModel as _0x2925ba,DrawingTypeEnum as _0x1652cd,FOCUSING_COMMON_DRAWINGS as _0x2f74ce,FOCUSING_SHAPE_TEXT_EDITOR as _0x1e386f,HorizontalAlign as _0x19f481,ICommandService as _0x5d4fd5,IConfigService as _0x47ac1d,IContextService as _0x46b73a,IImageIoService as _0x42c7d6,IPermissionService as _0x1b33f3,IURLImageService as _0x1d2e00,IUniverInstanceService as _0x58ad01,Inject as _0x376ec2,Injector as _0x3fea17,LocaleService as _0x474b31,Plugin as _0x48417e,PositionedObjectLayoutType as _0x5e65d5,UniverInstanceType as _0x37d2f3,VerticalAlign as _0xfc8006,createInternalEditorID as _0x320a48,generateRandomId as _0x539aae,getParagraphContentStartOffset as _0x51b222,merge as _0x77c685,registerDependencies as _0x1fed5b,toDisposable as _0x44b80c,touchDependencies as _0xd342cc}from'@univerjs/core';import{DocInterceptorService as _0x106c33,DocSelectionManagerService as _0x2e2dde,RichTextEditingMutation as _0x387c40,SetDocumentPermissionCommand as _0x2502f6,UniverDocsPlugin as _0x3dc614,canEditDocumentTargets as _0xaad49,getDocumentDrawingSegmentId as _0x34c0dc,getDocumentEntityParentPermissionObjectIds as _0x1ed368,getDocumentEntityPermissionObjectId as _0x17c75c,getDocumentPermissionValue as _0x29792c}from'@univerjs/docs';import{IDocDrawingService as _0x3b1588,RemoveDocDrawingCommand as _0x1dc354,SetDocDrawingArrangeCommand as _0x3c4545,TextWrappingStyle as _0x4e8b32,UpdateDocDrawingWrappingStyleCommand as _0x35bcca,UpdateDrawingDocTransformCommand as _0x5c08e6}from'@univerjs/docs-drawing';import{CURSOR_TYPE as _0x1b2d0c,Circle as _0x5d9ad7,DRAWING_OBJECT_LAYER_INDEX as _0x19be61,DocumentSkeleton as _0x122642,DocumentViewModel as _0x4be549,Documents as _0x321da8,IRenderManagerService as _0x20175c,RENDER_CLASS_TYPE as _0x5ccc48,Shape as _0x479a18,Transform as _0x4d0b24,UniverRenderEnginePlugin as _0x55fd02,Vector2 as _0x7e1ba8,getLastLine as _0x5d8276,setDocsCustomBlockRenderViewportProvider as _0x387221}from'@univerjs/engine-render';import{IDrawingManagerService as _0x4ed84c,SetDrawingSelectedOperation as _0x342bee,UniverDrawingPlugin as _0x41fe11,getDrawingShapeKeyByDrawingSearch as _0x33c05c}from'@univerjs/drawing';import{DrawingCommonPanel as _0x2438ba,DrawingImageClipService as _0x453a2,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x1efce9,MobileObjectListPanel as _0x2b8d3a,OBJECT_LIST_FLOATING_SECTION_ID as _0x1722f4,ObjectListPanelBase as _0xb10e3b,UniverDrawingMobileUIPlugin as _0x1a2f56,UniverDrawingUIPlugin as _0x1896a6,getObjectListPanelSectionIdForDrawingType as _0x3f7cdb,insertGroupObject as _0x54a7ec}from'@univerjs/drawing-ui';import{Fragment as _0xafd52b,jsx as _0x5619d4,jsxs as _0x48a5b6}from'react/jsx-runtime';import{BehaviorSubject as _0xe789cb,Observable as _0x1f9019,distinctUntilChanged as _0x598686,map as _0x573771,merge as _0x3018f6,of as _0x477cfd,startWith as _0x45bea4}from'rxjs';import{UniverLicensePlugin as _0x1f5858}from'@univerjs-pro/license';import{DocDrawingPosition as _0x328b21,DocDrawingTextWrap as _0x7f317e,MobileDocDrawingPosition as _0x10704b,MobileDocDrawingTextWrap as _0xa7fe3c,UniverDocsDrawingMobileUIPlugin as _0x1727f1,UniverDocsDrawingUIPlugin as _0x34d5cc}from'@univerjs/docs-drawing-ui';import{BottomIcon as _0x463d79,MoreDownIcon as _0x5df7dc,MoreUpIcon as _0x383f97,MoveDownIcon as _0x13639d,MoveUpIcon as _0x384086,ObjectLayersIcon as _0x362b77,ShapeFormatSettingIcon as _0x306814,TextWrapShapeIcon as _0x1e873d,TopmostIcon as _0x1b36a9}from'@univerjs/icons';import{MobileActionRow as _0x478cdc}from'@univerjs/design';import{memo as _0x5889ae,useEffect as _0x5b0cfd,useMemo as _0x39da17,useReducer as _0x597582,useState as _0x1f778c}from'react';import{UnitAction as _0x19e39f,UnitObject as _0x3314c2}from'@univerjs/protocol';function wr(_0x1782d0,_0x11f03b){const _0x544c78=_0xe027;if(_0x11f03b){if(_0x3a8d31(_0x1782d0)&&(_0x11f03b[_0x544c78(0x1a6)]||_0x11f03b['endArrow']))return{'ln':{'startArrow':_0x11f03b[_0x544c78(0x1a6)]?{'type':_0x42e35b[_0x544c78(0x191)],'size':_0x3a63cf[_0x544c78(0x28a)]}:void 0x0,'endArrow':_0x11f03b['endArrow']?{'type':_0x42e35b['Arrow'],'size':_0x3a63cf[_0x544c78(0x2a0)]}:void 0x0}};if(_0x1782d0===_0x90f8ed['Rect']&&(_0x11f03b['horizontal']||_0x11f03b[_0x544c78(0xdf)]))return _0x4be474({'fill':{'fillType':_0x5ea484[_0x544c78(0x11e)],'color':'#3B82F6'},'isHorizontal':!!_0x11f03b[_0x544c78(0x19a)],'stroke':{'lineStrokeType':_0x3f4778[_0x544c78(0xb5)],'width':0x1,'color':_0x544c78(0x15e)}});}}function Tr(_0x2fae29,_0x1b4e9d){const _0x109106=_0xe027;var _0x1f64dd;let _0x3f3f04=_0x1b4e9d[_0x109106(0x2ae)]??'',_0x41c085=(_0x1f64dd=_0x2fae29[_0x109106(0x1d6)](_0x3f3f04))==null?void 0x0:_0x1f64dd[_0x109106(0xb7)]();if(!_0x41c085)return null;let _0x462cb2=_0x41c085[_0x109106(0x16e)]??[],_0xd28db7=_0x462cb2[_0x109106(0x2d0)](_0x304ff1=>{const _0x2c2f45=_0x109106;let _0x5a96e9=_0x51b222(_0x41c085,_0x304ff1);return _0x1b4e9d[_0x2c2f45(0x1d3)]>=_0x5a96e9&&_0x1b4e9d[_0x2c2f45(0x1d3)]<=_0x304ff1[_0x2c2f45(0x184)];})??_0x462cb2[_0x462cb2[_0x109106(0x1ee)]-0x1];return _0xd28db7?{'paragraphId':_0xd28db7[_0x109106(0x12e)],'segmentId':_0x3f3f04,'position':_0x822ec2[_0x109106(0x149)],'offset':_0x1b4e9d[_0x109106(0x1d3)]-_0x51b222(_0x41c085,_0xd28db7)}:null;}function Er(_0xff7fc7,_0x398d81,_0x188671){const _0x5b9ccf=_0xe027;var _0x4e90c6,_0x2fd36a;if(!_0x188671)return null;let _0x73cd38=(_0x4e90c6=_0xff7fc7['get'](_0x20175c)[_0x5b9ccf(0x2b0)](_0x398d81))==null?void 0x0:_0x4e90c6[_0x5b9ccf(0x178)](_0x4b5937)[_0x5b9ccf(0x117)];if(!_0x73cd38)return null;let _0x417e3e=_0x188671==='below'?{'startOffset':_0x73cd38[_0x5b9ccf(0xea)][_0x5b9ccf(0x253)],'endOffset':_0x73cd38[_0x5b9ccf(0xea)][_0x5b9ccf(0x253)]}:_0x73cd38['menuRange'];return{'startOffset':_0x417e3e['startOffset'],'endOffset':_0x417e3e[_0x5b9ccf(0x253)],'collapsed':_0x417e3e[_0x5b9ccf(0x1d3)]===_0x417e3e[_0x5b9ccf(0x253)],'segmentId':((_0x2fd36a=_0x73cd38[_0x5b9ccf(0x1e8)])==null?void 0x0:_0x2fd36a[_0x5b9ccf(0x2ae)])??''};}const U={'type':_0x5e8815[_0x43e8a4(0x2a6)],'id':'doc.command.menu-insert-shape','handler':async(_0x46723c,_0x69ab55)=>{const _0x2060e5=_0x43e8a4;let _0xed64b2=_0x46723c[_0x2060e5(0x7a)](_0x58ad01)[_0x2060e5(0x248)](_0x37d2f3[_0x2060e5(0x10d)]);if(!_0xed64b2)return!0x1;let _0xd20fae=_0x46723c[_0x2060e5(0x7a)](_0x5d4fd5),_0x1f978a=_0xed64b2[_0x2060e5(0xe2)](),_0x43e8a7=_0x69ab55[_0x2060e5(0x1a5)]??_0x539aae(),_0x221af5=_0x69ab55['width']??_0x5c3f4d,_0x4a6410=_0x69ab55[_0x2060e5(0x204)]??_0x4111fb,_0x5f24e5=_0x69ab55[_0x2060e5(0x240)]??wr(_0x69ab55['value'],_0x69ab55[_0x2060e5(0x229)]),_0x39a93b=Er(_0x46723c,_0x1f978a,_0x69ab55[_0x2060e5(0x90)])??_0x46723c['get'](_0x2e2dde)[_0x2060e5(0x69)]();if(!_0x39a93b)return!0x1;let _0xe7e9da=Tr(_0xed64b2,_0x39a93b);return _0xe7e9da?!!_0xd20fae[_0x2060e5(0x27a)](_0x3ff9f6['id'],{'unitId':_0x1f978a,'shapeId':_0x43e8a7,'shapeType':_0x69ab55['value'],'shapeData':_0x5f24e5,'transform':{'width':_0x221af5,'height':_0x4a6410},'placement':{'wrappingStyle':_0x4e8b32[_0x2060e5(0x91)],'anchor':_0xe7e9da}}):!0x1;}},W=_0x43e8a4(0x138),Dr=_0x43e8a4(0x93),Or=_0x43e8a4(0x21e),kr=_0x320a48('SHAPE_TEXT'),Ar='doc.shape.text.float-menu',jr=_0x43e8a4(0xd3),Mr={'id':_0x43e8a4(0x225),'type':_0x5e8815['COMMAND'],'handler':(_0x24cdd8,_0x1b28c0)=>{const _0x3dfacc=_0x43e8a4;let _0x4b12e0=_0x24cdd8[_0x3dfacc(0x7a)](_0x5cd437),_0x48856e=_0x24cdd8[_0x3dfacc(0x7a)](_0x474b31),_0x41b80b=_0x24cdd8[_0x3dfacc(0x7a)](_0x4ed84c);return(_0x1b28c0==null?void 0x0:_0x1b28c0[_0x3dfacc(0x152)])===_0x3dfacc(0x234)?(_0x4b12e0[_0x3dfacc(0x234)](Or),!0x0):(_0x4b12e0[_0x3dfacc(0x29c)]({'id':Or,'header':{'title':_0x48856e['t'](_0x3dfacc(0x243))},'children':{'label':Or},'onClose':()=>{const _0x3d1372=_0x3dfacc;_0x41b80b[_0x3d1372(0xd9)](null);},'width':0x168}),!0x0);}},G={'type':_0x5e8815[_0x43e8a4(0xa5)],'id':'doc.operation.open-doc-shape-format-panel','handler'(){return!0x0;}};function Nr(_0x9cba6a){const _0x4c6472=_0x43e8a4;let _0x278885=_0x9cba6a[_0x4c6472(0x7a)](_0x4ed84c)[_0x4c6472(0x2bf)](),_0x1d185c=_0x278885['length']===0x1?_0x278885[0x0]:null;if(!_0x1d185c||_0x1d185c[_0x4c6472(0x119)]!==_0x1652cd[_0x4c6472(0x156)])return null;let _0x19d7ae=_0x9cba6a[_0x4c6472(0x7a)](_0x3e6ec4),_0x432618=_0x19d7ae[_0x4c6472(0x20c)](_0x1d185c[_0x4c6472(0xa2)],_0x1d185c['subUnitId'],_0x1d185c[_0x4c6472(0x198)]),_0x56bf23=_0x19d7ae[_0x4c6472(0x274)](_0x1d185c[_0x4c6472(0xa2)],_0x1d185c['subUnitId'],_0x1d185c['drawingId']);return _0x432618===void 0x0||!_0x56bf23?null:{'drawing':_0x1d185c,'shapeData':_0x56bf23,'shapeType':_0x432618};}const Pr={'id':_0x43e8a4(0x6c),'type':_0x5e8815[_0x43e8a4(0xa5)],'handler':(_0x14fb3c,_0x4a5a97)=>{const _0x2de703=_0x43e8a4;let _0x2d1f6d=Nr(_0x14fb3c),_0x44e34c=_0x4fe810((_0x4a5a97==null?void 0x0:_0x4a5a97[_0x2de703(0x2ab)])??(_0x4a5a97==null?void 0x0:_0x4a5a97['value'])??'');if(!_0x2d1f6d||!_0x44e34c||_0x44e34c[_0x2de703(0x297)]!==_0x4bc092(_0x2d1f6d[_0x2de703(0x240)]))return!0x1;let _0x1efc61=_0x22ba98(_0x2d1f6d[_0x2de703(0x240)],_0x44e34c);if(!_0x1efc61)return!0x1;let {drawing:_0x4c814b}=_0x2d1f6d;return _0x14fb3c[_0x2de703(0x7a)](_0x5d4fd5)[_0x2de703(0x2cf)](_0xc5bd8e['id'],{'unitId':_0x4c814b['unitId'],'shapeId':_0x4c814b[_0x2de703(0x198)],'shapeData':_0x1efc61,'oldShapeJSON':{'oldShapeData':_0x2d1f6d[_0x2de703(0x240)]}});}},Fr={'id':'doc.operation.update-shape-type','type':_0x5e8815[_0x43e8a4(0xa5)],'handler':(_0x41b21d,_0x5a74cf)=>{const _0x211ff7=_0x43e8a4;let _0x17b925=Nr(_0x41b21d),_0x1330da=(_0x5a74cf==null?void 0x0:_0x5a74cf[_0x211ff7(0x6d)])??(_0x5a74cf==null?void 0x0:_0x5a74cf[_0x211ff7(0x152)]);if(!_0x17b925||!_0x1330da||_0x3a8d31(_0x17b925[_0x211ff7(0x6d)])||_0x3a8d31(_0x1330da))return!0x1;let _0x34c9e1=_0x147fa8(_0x17b925[_0x211ff7(0x240)],_0x1330da);if(!_0x34c9e1)return!0x1;let {drawing:_0x5da53d}=_0x17b925;return _0x41b21d[_0x211ff7(0x7a)](_0x5d4fd5)['executeCommand'](_0xc5bd8e['id'],{'unitId':_0x5da53d[_0x211ff7(0xa2)],'shapeId':_0x5da53d['drawingId'],'shapeType':_0x1330da,'shapeData':_0x34c9e1,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x17b925['shapeType'],'oldShapeData':_0x17b925[_0x211ff7(0x240)]}});}};function K(_0x481e5f,_0x382c7b){return function(_0x3ed2e0,_0x474523){_0x382c7b(_0x3ed2e0,_0x474523,_0x481e5f);};}function q(_0x1c4574,_0x57683b,_0x16020f,_0x2bb7aa){const _0x2276fe=_0x43e8a4;var _0x7988c0=arguments['length'],_0x4aa91e=_0x7988c0<0x3?_0x57683b:_0x2bb7aa===null?_0x2bb7aa=Object[_0x2276fe(0x135)](_0x57683b,_0x16020f):_0x2bb7aa,_0x47144b;if(typeof Reflect=='object'&&typeof Reflect[_0x2276fe(0x23c)]==_0x2276fe(0xb9))_0x4aa91e=Reflect['decorate'](_0x1c4574,_0x57683b,_0x16020f,_0x2bb7aa);else{for(var _0x20b721=_0x1c4574[_0x2276fe(0x1ee)]-0x1;_0x20b721>=0x0;_0x20b721--)(_0x47144b=_0x1c4574[_0x20b721])&&(_0x4aa91e=(_0x7988c0<0x3?_0x47144b(_0x4aa91e):_0x7988c0>0x3?_0x47144b(_0x57683b,_0x16020f,_0x4aa91e):_0x47144b(_0x57683b,_0x16020f))||_0x4aa91e);}return _0x7988c0>0x3&&_0x4aa91e&&Object[_0x2276fe(0xac)](_0x57683b,_0x16020f,_0x4aa91e),_0x4aa91e;}let Ir=class extends _0x143425{constructor(_0x97b8ad,_0x1a19dd){const _0x17a223=_0x43e8a4;super(),this[_0x17a223(0x26d)]=_0x97b8ad,this['_drawingManagerService']=_0x1a19dd,this['_registerImageShapeClipDelegate'](),this['_clipService'][_0x17a223(0x2c8)](!0x0),this[_0x17a223(0xb3)]({'dispose':()=>this[_0x17a223(0x26d)]['setCanUseShapeClip'](!0x1)});}[_0x43e8a4(0x27d)](){const _0x2ae39b=_0x43e8a4;let _0x2eeae3=new Map(),_0x253ace=this[_0x2ae39b(0x26d)][_0x2ae39b(0x285)]((_0x5e742b,_0x188169,_0x2dcc81,_0x2e4d86,_0x4dfe74)=>{const _0x121f9f=_0x2ae39b;let _0x279a7c=_0x188169;if(_0x279a7c===_0x90f8ed[_0x121f9f(0x79)]||_0x188169===_0x121f9f(0x228))return!0x1;try{let _0x5c5dfc=_0x2eeae3[_0x121f9f(0x7a)](_0x188169);return _0x5c5dfc||(_0x5c5dfc=new _0x5d1466(_0x279a7c,'clip-'+_0x188169),_0x2eeae3[_0x121f9f(0x290)](_0x188169,_0x5c5dfc)),_0x5c5dfc[_0x121f9f(0x9d)](),_0x4dfe74&&Object[_0x121f9f(0x20d)](_0x4dfe74)[_0x121f9f(0x1ee)]>0x0&&_0x5c5dfc[_0x121f9f(0x1b6)]({'adjustValues':_0x4dfe74},!0x0),_0x5c5dfc[_0x121f9f(0x2bc)]({'width':_0x2dcc81,'height':_0x2e4d86}),_0x5c5dfc[_0x121f9f(0x1b5)](_0x5e742b,{'left':0x0,'top':0x0,'width':_0x2dcc81,'height':_0x2e4d86});}catch{return!0x1;}});this[_0x2ae39b(0xb3)](_0x253ace),this[_0x2ae39b(0xb3)]({'dispose':()=>_0x2eeae3[_0x2ae39b(0x189)]()});}[_0x43e8a4(0x168)](_0x33af87,_0x35d853,_0x44cd5f,_0x3992a6,_0x2fec0a){const _0x49c4b0=_0x43e8a4;let _0x10a77e=this[_0x49c4b0(0x282)][_0x49c4b0(0xaa)](_0x33af87,_0x35d853)[_0x44cd5f];_0x10a77e&&_0x10a77e['drawingType']===_0x1652cd[_0x49c4b0(0x24e)]&&this['_drawingManagerService'][_0x49c4b0(0x1eb)]([{..._0x10a77e,'prstGeom':_0x3992a6,'adjustValues':_0x2fec0a}]);}};Ir=q([K(0x0,_0x376ec2(_0x453a2)),K(0x1,_0x376ec2(_0x4ed84c))],Ir);const Lr=_0x43e8a4(0x1fc),Rr='doc.image-clip.shape-picker.component';function zr({onShapeClick:_0x4a16c9,excludeGroups:_0x5f12f5}){return _0x5619d4(_0x1a369d,{'excludeGroups':_0x5f12f5,'onShapeClick':_0x4a16c9,'scrollContainer':'parent'});}function Br(){let _0x589883=_0x2f1968(_0x4ed84c),_0x569a8e=_0x2f1968(Ir);return _0x55a9c7=>{const _0x2bfaa2=_0xe027;let _0x232721=_0x589883[_0x2bfaa2(0x2bf)]()[_0x2bfaa2(0x2d0)](_0x76613=>_0x76613[_0x2bfaa2(0x119)]===_0x1652cd[_0x2bfaa2(0x24e)]);_0x232721&&_0x569a8e[_0x2bfaa2(0x168)](_0x232721[_0x2bfaa2(0xa2)],_0x232721[_0x2bfaa2(0x2d2)],_0x232721[_0x2bfaa2(0x198)],_0x55a9c7[_0x2bfaa2(0x297)]);};}function Vr(){const _0x3f0b76=_0x43e8a4;let _0x50553d=Br();return _0x5619d4(_0x1c6a88,{'buttonLabel':'docs-shape-ui.crop.shape','excludeGroups':[_0x29b383[_0x3f0b76(0x8c)]],'onShapeClick':_0x50553d});}function Hr(){const _0x534ad2=_0x43e8a4;let _0x3201a8=_0x2f1968(_0x5974e5),_0x32e0e4=_0x2f1968(_0x4ed84c),_0x2c2be5=_0x2f1968(_0x58ad01),_0x40a524=_0x32e0e4[_0x534ad2(0x2bf)]()[0x0],_0x325db9=_0x40a524?_0x2c2be5[_0x534ad2(0x177)](_0x40a524[_0x534ad2(0xa2)]):void 0x0,_0xc08db=_0x325db9===_0x37d2f3[_0x534ad2(0x10d)]?Rr:_0x325db9===_0x37d2f3[_0x534ad2(0x84)]?_0x534ad2(0x2c4):void 0x0,_0x4e1655=_0xc08db?_0x3201a8['get'](_0xc08db):void 0x0;return _0x4e1655?_0x5619d4(_0x4e1655,{}):null;}function Ur({paragraphMenuPlacement:_0x5d8f72,PickerComponent:_0x5c6731=zr}){let _0x6e8cf6=_0x2f1968(_0x5d4fd5);return _0x5619d4(_0x5c6731,{'onShapeClick':_0x3c5980=>{const _0x5d0027=_0xe027;_0x6e8cf6[_0x5d0027(0x2cf)](U['id'],{'paragraphMenuPlacement':_0x5d8f72,'value':_0x3c5980[_0x5d0027(0x297)],'enhanceParams':{'endArrow':_0x3c5980[_0x5d0027(0xad)],'startArrow':_0x3c5980[_0x5d0027(0x1a6)],'horizontal':_0x3c5980[_0x5d0027(0x19a)],'vertical':_0x3c5980[_0x5d0027(0xdf)]}});}});}function Wr(_0x372393){const _0x132f10=_0x43e8a4;return _0x51df66=>({'id':U['id'],'type':_0x3c5886['SELECTOR'],'selections':[{'label':{'name':Lr,'hoverable':!0x1,'selectable':!0x1,'props':_0x372393?{'id':U['id'],'paragraphMenuPlacement':_0x372393}:{'id':U['id']}}}],'icon':_0x132f10(0x96),'title':_0x132f10(0x217),'tooltip':_0x132f10(0x217),'hidden$':_0x546425(_0x51df66,_0x37d2f3[_0x132f10(0x10d)])});}const Gr=Wr(),Kr=Wr(_0x43e8a4(0xeb)),qr=Wr(_0x43e8a4(0x10b));function Jr(_0x13e691){const _0x3f9964=_0x43e8a4;return{'id':Mr['id'],'type':_0x3c5886['BUTTON'],'icon':_0x3f9964(0x27e),'title':_0x3f9964(0x1f8),'tooltip':_0x3f9964(0x1f8),'hidden$':_0x546425(_0x13e691,_0x37d2f3[_0x3f9964(0x10d)])};}function Yr(_0x2dc88c,_0x267c39,_0x4ecba7,_0x240e86,_0x3e27fb,_0x5e82ca){let _0x15cc0e={'unitId':_0x267c39,'shapeId':_0x240e86,'shapeData':_0x5e82ca,'oldShapeJSON':_0x3e27fb};return _0x2dc88c['executeCommand'](_0xc5bd8e['id'],_0x15cc0e);}function Xr(_0x161e16,_0x5443fc,_0x30ec0e,_0x11e284,_0x181dd3,_0x86445e){const _0x490553=_0x43e8a4;let _0x5a9a32={'unitId':_0x5443fc,'shapeId':_0x11e284,'shapeData':_0x86445e,'oldShapeJSON':_0x181dd3};return _0x161e16[_0x490553(0x2cf)](_0xc5bd8e['id'],_0x5a9a32);}const Zr=_0x43e8a4(0x86),Qr=_0x43e8a4(0x25b),$r=_0x43e8a4(0x2c7),ei=_0x43e8a4(0x291),ti=_0x43e8a4(0x213),ni=[{'value':_0x4e8b32[_0x43e8a4(0x91)],'label':_0x43e8a4(0x76),'icon':'DocsShapeWrapInlineIcon'},{'value':_0x4e8b32[_0x43e8a4(0xbd)],'label':_0x43e8a4(0x146),'icon':_0x43e8a4(0x1a1)},{'value':_0x4e8b32['WRAP_TOP_AND_BOTTOM'],'label':_0x43e8a4(0x1c5),'icon':_0x43e8a4(0x255)},{'value':_0x4e8b32[_0x43e8a4(0x221)],'label':_0x43e8a4(0x2c5),'icon':_0x43e8a4(0x286)},{'value':_0x4e8b32[_0x43e8a4(0x85)],'label':'docs-shape-ui.textWrap.inFrontText','icon':_0x43e8a4(0x24f)}];function ri(){let _0x4df5c6=_0x2f1968(_0x5d4fd5),_0x77728=_0x2f1968(_0x4ed84c),_0xee6238=_0x2f1968(_0x3e6ec4),_0x4e600f=()=>{const _0x4d5536=_0xe027;var _0x27cfa2;let _0x348e06=_0x77728[_0x4d5536(0x2bf)]();if(_0x348e06[_0x4d5536(0x1ee)]!==0x1||((_0x27cfa2=_0x348e06[0x0])==null?void 0x0:_0x27cfa2['drawingType'])!==_0x1652cd[_0x4d5536(0x156)])return null;let {unitId:_0x41418f,subUnitId:_0x327800,drawingId:_0x2b1d55}=_0x348e06[0x0],_0x5988aa=_0xee6238['getShapeTypeById'](_0x41418f,_0x327800,_0x2b1d55),_0x493d55=_0xee6238[_0x4d5536(0x274)](_0x41418f,_0x327800,_0x2b1d55);return _0x5988aa===void 0x0||!_0x493d55?null:{'unitId':_0x41418f,'subUnitId':_0x327800,'drawingId':_0x2b1d55,'shapeType':_0x5988aa,'shapeData':_0x493d55};},_0x1a98da=_0x24248b(()=>new _0x1f9019(_0x158c5a=>{const _0x42fd72=_0xe027;let _0x306a6d=()=>_0x158c5a[_0x42fd72(0xbb)](_0x4e600f()),_0x98bde1=_0x77728['focus$'][_0x42fd72(0x120)](_0x306a6d),_0x1662c3=_0x4df5c6[_0x42fd72(0x1b3)](_0x1ce79d=>{_0x1ce79d['id']===_0x4aaefb['id']&&_0x306a6d();});return _0x306a6d(),()=>{const _0x2c8d3f=_0x42fd72;_0x98bde1[_0x2c8d3f(0x28b)](),_0x1662c3[_0x2c8d3f(0xb0)]();};}),_0x4e600f(),!0x1,[_0x4df5c6,_0xee6238,_0x77728]);return{'selection':_0x1a98da,'updateShapeData':_0x15c162=>{const _0x1b123f=_0xe027;_0x1a98da&&Yr(_0x4df5c6,_0x1a98da[_0x1b123f(0xa2)],_0x1a98da[_0x1b123f(0x2d2)],_0x1a98da[_0x1b123f(0x198)],{'oldShapeData':_0x1a98da[_0x1b123f(0x240)]},_0x15c162);}};}function _0x3d03(){const _0x223612=['pick','getShapeModel','sectionCanvas','transformByState','getSelectedObjectMap','drawing-ui.objectListPanel.lock','adjName','add','_adjName','fillType','getImageSourceCache','permissionPointUpdate$','target','_commandService','UNIVER_DOC','_openShapeEditPanel','pluginName','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','_getFocusedShapeAtPoint','6441230yMVkRw','round','getDrawingEffectBounds','headerLayoutKey','_baseShapeTop','activeTarget','_getDisposePopups','drawingType','docs-shape-ui.quickStyles','onDblclick$','PARAGRAPH','_drawSimpleText','SolidFill','makeDirty','subscribe','filter','LAYOUT','docs-shape-ui.ribbon.shape-format.arrange-forward','angle','_docPrintInterceptorService','setFallbackVisible','PictureFill','drawing-ui.objectListPanel.name','getDrawingDataForUnit','isEditing','svg','string','strokeWidth','paragraphId','inline','_baseShapeHeight','getShapeTextRect','params','_getShapeAdjustPointListById','_attachAdjustEvent','getOwnPropertyDescriptor','translate','restore','doc.shape.edit.panel','invert','constructor','drawing-ui.objectListPanel.filterAll','delete','_adjHandlerPointerMove','_renderWithCache','onPointerMove$','_draw','onerror','FromArray','_activeAdjustInfo','focus$','isRichText','docs-shape-ui.textWrap.square','title','getPageDrawingIds','OFFSET','_registerIcons','registerComponent','register','back','toPrimitive','drawing-ui.objectListPanel.unlockHint','resolveHyperLinkAt','_refreshShapeData','value','drawing-ui.objectListPanel.hide','WRAP_TOP_AND_BOTTOM','prototype','DRAWING_SHAPE','addObject','mergeMenu','onSavingEditorData$','setEditing','RIBBON','asObservable','create','#2563EB','classType','_initUIPart','doc-shape-adjust-point-','drawing-ui.objectListPanel.lockAll','dataModel','docs-shape-format-font-family-menu','offsetX','shapeKey','sectionFloating','clipByShape','refreshFormulaPresentation','symbol','srcRect','render','drawing-ui.objectListPanel.title','paragraphs','_activeShapeAdjustPointList','none','square','updateDocumentDataMargin','drawing-ui.objectListPanel.hideAll','localeService','fill','preValue','getUnitType','with','_componentManager','draw','getObjectIncludeInGroup','drawing-ui.objectListPanel.nameInput','4ANmlPq','disableObjectsEvent','_docsShapeService','splice','getPresentation','_initEditingParams','getAllRenderersOfType','startIndex','doc.shape.floating-toolbar','transformForAngle','true','getState','clear','_formulaAnimation','_drawingType','top-bottom','clip','hideInfoPopup','docs-shape-contextual-ribbon','changing$','Arrow','setShapeProps','isMainScene','_layoutInteraction','1519665DYUHml','_urlImageService','_insertShapes','drawingId','actualHeight','horizontal','_formulaKey','formulaBinding','shapeModel','transformVector2SceneCoord','_shapeFloatingToolbarService','BottomIcon','DocsShapeWrapSquareIcon','getEditing','presentation','DocumentEntity','shapeId','startArrow','drawing-ui.objectListPanel.dragToReorder','212025JwlKOC','autoFitType','docs-shape-ui.hidePanel','_setTransForm','createControl$','extensionGroups','_injector','refreshShapeFillImage','cos','_activeShapeInfo','registerRenderModule','onCommandExecuted','visible','buildClipPath','setShapeData','2559501oxxuNI','updateDocumentStyle','getInterceptPoints','getMatrix','_drawRichTextLayer','getShapePopupMenus','version','drawing-ui.objectListPanel.description','isRenderLinePointsMode','data','complete','_isStartAdjusting','clearControl$','packageName','docs-shape-ui.textWrap.topAndBottom','_transform','refreshTransform$','CONTENT','_sidebarService','drawing-ui.objectListPanel.moveBackward','_updateAdjustControlPositions','disableShapeOption','_drawShapeText','contentHeight','updateShapeFillImage','_endLayoutInteraction','actions','drawing-ui.objectListPanel.unlockAll','startOffset','offsetY','shapeText','getSelfOrHeaderFooterModel','setSrcRect','enableObjectsEvent','onload','has','docs-shape-ui.mobile.delete','378972Jdmxxk','_props','div','top-center','shape-editor-ui.arrange.back','docs-shape-ui.config','OTHERS','shape-text-','map','getDrawingOrder','5.5','skeFooters','paragraph','skeTables','stopPropagation','featurePluginUpdateNotification','8EOXoBA','_transformCalculateSrcRect','length','setPrstGeom','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','@univerjs-pro/docs-shape-ui','attachPopupToObject','_configService','onPointerDown$','some','fillImageSource','drawings','docs-shape-ui.objectListPanel.open','isRender','_getRenderModules','_shapeId','doc.shape.picker.component','behind','_activeShapeId','backward','panel','drawing-ui.objectListPanel.descriptionPlaceholder','current','_ribbonService','height','setFillImage','layoutType','onPointerUp$','skeHeaders','completeEditing','Copy','adjHandleSize','getShapeTypeById','keys','docs-shape-ui.ribbon.shape-format.text-control','shape-editor-ui.arrange.forward','WRAP_NONE','setConfig','getShapeTextData','docs-shape-ui.shape-format.wrapping-style-label','docs-shape-ui.crop.shape','_loadShapePictureFill','MoveDownIcon','docs-shape-ui.insertShape','_permissionService','_canEdit','_isOpenedShapeEditPanel','adjHandleFill','currentColor','docs-shape-ui.formatShape','doc.shape.object-list.panel','_update','_initPrinting','BEHIND_TEXT','drawing-ui.objectListPanel.showAll','_getShapeAdjustInfosById','description','doc.operation.open-shape-object-list-panel','_lastEditingShapeKey','docs-shape-text-','custom','enhanceParams','_getDependencies','onReady','1em','values','docs-shape-ui.mobile.style','forward','_baseShapeWidth','_shapeEditPanelVersion','M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','.below','close','bottom','Image','SHAPE','getSkeletonData','_addShapeAdjustControl','drawing-ui.objectListPanel.unlock','CROSSHAIR','decorate','_updateShapeAdjustControls','_initMenu','_registerPickers','shapeData','push','DOC','docs-shape-ui.objectListPanel.title','shape-editor-ui.toolbar.quickStyles','_popupTargetKeys','_registerObjectListPanel','visible$','getCurrentUnitOfType','TOP','_updateShape','drawing-ui.objectListPanel.expand','_activeShapeModel','path','DRAWING_IMAGE','DocsShapeWrapInFrontOfTextIcon','getRealBound','order','drawing-ui.objectListPanel.locate','endOffset','getUnit','DocsShapeWrapTopBottomIcon','componentKey','onStarting','getInverseCoord','docs-shape-ui.ribbon.shape-format.arrange-backward','fontFamily','docs-shape-ui.shape-format.style-ribbon-control','setContextValue','_toVisualAdjustPoint','_completionFrame','PRINTING_COMPONENT_COLLECT','transform','update$','isInGroup','SpAutoFit','_registerDrawingFocusChangeHandler','_adjustPointObjects','addImageSourceCache','_localeService','object','_drawRichText','extraProps','_releaseRenderCache','_applyFormulaAutoFitSize','_clipService','presentationChanged$','viewBound','getDrawingVisible','DRAWING_DOM','_docDrawingShapeRenderController','setPresentation','getShapeDataById','skeDrawings','_baseShapeLeft','_getShapeInfo','_init','getTransformerByCreate','syncExecuteCommand','clone','univer-grid\x20univer-gap-3','_registerImageShapeClipDelegate','ObjectLayersIcon','_createShapeAdjustControls','_initEvents','_editingParams$','_drawingManagerService','_getActiveDrawingParam','_initSelection','registerClipDelegate','DocsShapeWrapBehindTextIcon','MoveUpIcon','_clearShapeAdjustControls','default','Medium','unsubscribe','_unitId','_config','_docCanvasPopManagerService','TRUE','set','docs-shape-ui.shape-format.formula-ribbon-control','drawing','SELECTOR','drawing-ui.objectListPanel.search','selectable','_registerDrawingTransformHandler','type','docs-shape-ui.ribbon.shape-format.style-control','getShapeData','save','image','open','_isShouldShowDrawingShapeAdjust','getDrawingPoints','doc.operation.close-doc-shape-format-panel','Large','prstGeom','translateWithPrecision','changeStart$','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','icon','COMMAND','fallbackHeight','_shapeFormulaService','trim','isLineShape','presetId','docs-shape-ui.ribbon.shape-format.formula-control','BUTTON','segmentId','animationEnabled','getRenderUnitById','headerId','_iconManager','isHit','setCollapsedIds','getSnapshot','canDispose','_menuManagerService','top','drawing-ui.objectListPanel.empty','_updateSrcRectByTransform','popup','updateContext','_closeShapeEditPanel','URL','getFocusDrawings','_clearPopups','_imageIoService','getCurrentTypeOfUnit$','getContextValue','sheet.image-clip.shape-picker.component','docs-shape-ui.textWrap.behindText','getAdjustInfoByName','docs-shape-ui.shape-format.text-ribbon-control','setCanUseShapeClip','M2\x203h16M2\x2017h16','getActiveViewportByCoord','isHorizontal','3303786YBAMJw','applyPoint','composeMatrix','executeCommand','find','getShapeType','subUnitId','_registerOperations','shape-editor-ui.toolbar.changeShape','sin','style','getActiveTextRange','_docLayoutInteractionService','reduce','doc.operation.apply-shape-quick-style','shapeType','refreshAdjustControls','_loadAndSetImage','registerCommand','scene','_shapeTextEditingService','size','multiply','max','docs-shape-ui.textWrap.inline','_formulaShapes','_measure','None','get','_univerInstanceService','GROUP','width','objects','behindDoc','editingParams$','doc','_clearCompletionFrame','onTransformChange$','UNIVER_SHEET','IN_FRONT_OF_TEXT','docs-shape-ui.shape-format.quick-style-gallery','drawing-ui.objectListPanel.close','stroke','_adjHandlerPointerUp','_onSavingEditorData$','cancelEditing','Line','context-bar','_getActiveDrawingShape','menu','paragraphMenuPlacement','INLINE','pipe','docs-shape-ui.ribbon.shape-format','contentVerticalOffset','scale','ShapeIcon','docs-shape-ui.ribbon.shape-format.arrange-front','text','getCanvasElement','PaintIcon','_sidebarDisposable','hidden','clearAdjustValue','getAutoFitPresentations','_mobileEditorService','call','getImage','unitId','_renderManagerService','remove$','OPERATION','renderDrawingShape','setOnSavingEditorData','docs-shape-ui.openPanel','_handleCreateControl','getDrawingData','clipTop','defineProperty','endArrow','resetCursor','left','dispose','changeEnd$','_subUnitId','disposeWithMe','438953aIPpbk','SolidLine','_registerComponents','getBody','0.8','function','name','next','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','WRAP_SQUARE','front','pages','flipX','canvasElement','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','_visible','setFormulaPresentation','1.2','getDrawingOKey','_hyperLinkRegions','fallbackWidth','error','hideContextualTab','formulaPresentation','hasDefault','subscribeEvent','rect','_canEditShape','docs-shape-ui.deleteShape','spaceBelowApply','_getShapePopup','DocsShapeTextEditorContainer','getValue','univer-box-border\x20univer-px-4\x20univer-text-sm','forEach','beginPath','_popupMenuListener','focusDrawing','getFocusedUnit','getTransformer','_disposePopupsByUnit','TopmostIcon','_registerFloatingToolbar','vertical','gradientEndColor','entries','getUnitId','getDrawingSearch','setAdjustValueByName','drawWith','wrapStrategy','span','_getSceneByUnitId','color','moveRange','below','getViewports','_context','ShapeFormatSettingIcon','oKey','getActualSize','clipHeight','_hide','calculate','pageWidth','VIEW_MAIN','_instanceService','getParent','isDrawingObject','_initialize','9UJAndD','Path','_contextService','getDrawingByParam','attachTransformerTo'];_0x3d03=function(){return _0x223612;};return _0x3d03();}function ii(){const _0x1eade5=_0x43e8a4;let {selection:_0x637ef4,updateShapeData:_0x1c9f43}=ri();return _0x637ef4?_0x5619d4(_0xd6f3ea,{'shapeData':_0x637ef4[_0x1eade5(0x240)],'shapeType':_0x637ef4[_0x1eade5(0x6d)],'onUpdateShapeData':_0x1c9f43}):null;}function ai(){const _0x19d34e=_0x43e8a4;let _0xfe8be4=_0x2f1968(_0x5d4fd5),_0x255657=_0x2f1968(_0x474b31),{selection:_0x72d87d}=ri();return _0x72d87d?_0x5619d4(_0x51195d,{'type':_0x4bc092(_0x72d87d[_0x19d34e(0x240)]),'ariaLabel':_0x255657['t'](_0x19d34e(0x11a)),'activePresetId':_0x3d44c4(_0x72d87d[_0x19d34e(0x240)]),'onSelect':_0x4804cc=>_0xfe8be4[_0x19d34e(0x2cf)](Pr['id'],{'presetId':_0x4804cc})}):null;}function oi(){const _0x3c3fe0=_0x43e8a4;let {selection:_0x1d74d9,updateShapeData:_0x91f1df}=ri();return _0x1d74d9?_0x5619d4(_0x473bd6,{'fontFamilyPopupDataComponent':_0x3c3fe0(0x164),'shapeData':_0x1d74d9['shapeData'],'onUpdateShapeData':_0x91f1df}):null;}function si(){const _0x41910d=_0x43e8a4;var _0x1c206c;let {selection:_0x3a1806,updateShapeData:_0x436f3a}=ri(),_0x10a1f4=_0x29c39b({'hostType':_0x37d2f3[_0x41910d(0x10d)],'unitId':(_0x3a1806==null?void 0x0:_0x3a1806['unitId'])??'','subUnitId':(_0x3a1806==null?void 0x0:_0x3a1806[_0x41910d(0x2d2)])??'','shapeId':(_0x3a1806==null?void 0x0:_0x3a1806[_0x41910d(0x198)])??'','shapeData':_0x3a1806==null?void 0x0:_0x3a1806[_0x41910d(0x240)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x41910d(0x235),'onUpdateBinding':_0x2e3478=>_0x436f3a({'formulaBinding':_0x2e3478})}),_0x55b57d=((_0x1c206c=_0x10a1f4[_0x41910d(0x1ad)])==null?void 0x0:_0x1c206c['flatMap'](_0x352be7=>_0x352be7[_0x41910d(0x1d1)])['filter'](_0x8c8680=>_0x8c8680['visible']!==!0x1))??[];return _0x3a1806!=null&&_0x3a1806['shapeData'][_0x41910d(0x19c)]?_0x5619d4(_0xcdf079,{'actions':_0x55b57d,'panel':_0x10a1f4[_0x41910d(0x200)]}):null;}function ci({value:_0x40cab1}){const _0x44c3ed=_0x43e8a4;let _0x3b84e6=_0x2f1968(_0x474b31),_0x527b88=ni[_0x44c3ed(0x2d0)](_0x577fdf=>_0x577fdf[_0x44c3ed(0x152)]===_0x40cab1)??ni[0x0];return _0x527b88?_0x5619d4(_0x44c3ed(0xe7),{'children':_0x3b84e6['t'](_0x527b88['label'])}):null;}const li=_0x43e8a4(0x298),ui=_0x43e8a4(0x20e),di=_0x43e8a4(0x2ac),fi=_0x43e8a4(0x123),pi=_0x43e8a4(0x259),mi=_0x43e8a4(0x97),hi='docs-shape-ui.ribbon.shape-format.arrange-back',gi='docs-shape-ui.ribbon.shape-format.wrapping-style';function _i(_0x318a17){const _0x2de3fa=_0x43e8a4;let _0x2cd502=_0x318a17['get'](_0x5d4fd5),_0x1c7c63=_0x318a17[_0x2de3fa(0x7a)](_0x4ed84c),_0x109ba9=_0x318a17[_0x2de3fa(0x7a)](_0x3e6ec4);return new _0x1f9019(_0x2c4cdc=>{const _0xf7f6fb=_0x2de3fa;let _0x146e45=()=>{const _0x37aa9b=_0xe027;let _0x9ed10f=vi(_0x318a17),_0x1b680f=_0x9ed10f?_0x109ba9[_0x37aa9b(0x274)](_0x9ed10f['unitId'],_0x9ed10f[_0x37aa9b(0x2d2)],_0x9ed10f[_0x37aa9b(0x198)]):null;_0x2c4cdc['next'](_0x1b680f?_0x3d44c4(_0x1b680f)??'':'');},_0x25c476=_0x1c7c63[_0xf7f6fb(0x144)][_0xf7f6fb(0x120)](_0x146e45),_0x37a80e=_0x2cd502['onCommandExecuted'](_0x4f4230=>{_0x4f4230['id']===_0x4aaefb['id']&&_0x146e45();});return _0x146e45(),()=>{const _0x59d8cb=_0xf7f6fb;_0x25c476[_0x59d8cb(0x28b)](),_0x37a80e['dispose']();};});}function vi(_0x2c3717){const _0x33767a=_0x43e8a4;var _0x28ab6f;let _0x50750f=_0x2c3717[_0x33767a(0x7a)](_0x4ed84c)[_0x33767a(0x2bf)]();return _0x50750f[_0x33767a(0x1ee)]===0x1&&((_0x28ab6f=_0x50750f[0x0])==null?void 0x0:_0x28ab6f[_0x33767a(0x119)])===_0x1652cd[_0x33767a(0x156)]?_0x50750f[0x0]:null;}function yi(_0x6925d8){const _0xe43553=_0x43e8a4;return(_0x6925d8==null?void 0x0:_0x6925d8[_0xe43553(0x206)])===_0x5e65d5[_0xe43553(0x210)]?_0x6925d8[_0xe43553(0x7f)]===_0x2eeb60['TRUE']?_0x4e8b32[_0xe43553(0x221)]:_0x4e8b32['IN_FRONT_OF_TEXT']:(_0x6925d8==null?void 0x0:_0x6925d8[_0xe43553(0x206)])===_0x5e65d5[_0xe43553(0xbd)]?_0x4e8b32[_0xe43553(0xbd)]:(_0x6925d8==null?void 0x0:_0x6925d8[_0xe43553(0x206)])===_0x5e65d5['WRAP_TOP_AND_BOTTOM']?_0x4e8b32[_0xe43553(0x154)]:_0x4e8b32[_0xe43553(0x91)];}function bi(_0x77eab5){const _0x5c9101=_0x43e8a4;let _0x4089d4=_0x77eab5['get'](_0x5d4fd5),_0x3b291a=_0x77eab5[_0x5c9101(0x7a)](_0x4ed84c),_0x17b880=_0x77eab5['get'](_0x58ad01);return new _0x1f9019(_0x4e274d=>{const _0x26d24b=_0x5c9101;let _0x2798ac=()=>{const _0x503618=_0xe027;var _0x6f6b76;let _0x791841=vi(_0x77eab5),_0x1739d2=_0x791841?_0x17b880[_0x503618(0x254)](_0x791841[_0x503618(0xa2)],_0x37d2f3[_0x503618(0x10d)]):void 0x0;_0x4e274d[_0x503618(0xbb)](yi(_0x791841?_0x1739d2==null||(_0x6f6b76=_0x1739d2[_0x503618(0x2b5)]()[_0x503618(0x1f7)])==null?void 0x0:_0x6f6b76[_0x791841[_0x503618(0x198)]]:void 0x0));},_0x21f2b3=_0x3b291a[_0x26d24b(0x144)][_0x26d24b(0x120)](_0x2798ac),_0x1d02d8=_0x4089d4[_0x26d24b(0x1b3)](_0x3f8b31=>{_0x3f8b31['id']===_0x387c40['id']&&_0x2798ac();});return _0x2798ac(),()=>{_0x21f2b3['unsubscribe'](),_0x1d02d8['dispose']();};})[_0x5c9101(0x92)](_0x598686());}function xi(_0x16100d,_0x129cdc=!0x1){const _0x331d53=_0x43e8a4;let _0x49f38a=_0x16100d['get'](_0x5d4fd5),_0x25e30c=_0x16100d['get'](_0x4ed84c),_0x1759d9=_0x16100d[_0x331d53(0x7a)](_0x3e6ec4);return new _0x1f9019(_0x3a4e31=>{const _0x307a18=_0x331d53;let _0x49de18=()=>{const _0x42d351=_0xe027;let _0xb526ba=vi(_0x16100d);if(!_0xb526ba){_0x3a4e31[_0x42d351(0xbb)](!0x0);return;}let _0x30ebba=_0x1759d9[_0x42d351(0x274)](_0xb526ba[_0x42d351(0xa2)],_0xb526ba[_0x42d351(0x2d2)],_0xb526ba[_0x42d351(0x198)]);_0x3a4e31[_0x42d351(0xbb)](!_0x30ebba||_0x129cdc&&_0x30ebba[_0x42d351(0x19c)]==null);},_0x450abb=_0x25e30c[_0x307a18(0x144)]['subscribe'](_0x49de18),_0x437920=_0x49f38a[_0x307a18(0x1b3)](_0x5e892a=>{_0x5e892a['id']===_0x4aaefb['id']&&_0x49de18();});return _0x49de18(),()=>{const _0x3ea996=_0x307a18;_0x450abb[_0x3ea996(0x28b)](),_0x437920[_0x3ea996(0xb0)]();};});}function Si(_0x4e2060){const _0x2cd690=_0x43e8a4;let _0x23d3d2=_0x4e2060[_0x2cd690(0x7a)](_0x4ed84c),_0x53f746=_0x4e2060['get'](_0x3e6ec4);return _0x23d3d2[_0x2cd690(0x144)][_0x2cd690(0x92)](_0x45bea4(_0x23d3d2['getFocusDrawings']()),_0x573771(()=>{const _0x225032=_0x2cd690;let _0x1ad070=vi(_0x4e2060),_0x377053=_0x1ad070?_0x53f746[_0x225032(0x20c)](_0x1ad070['unitId'],_0x1ad070[_0x225032(0x2d2)],_0x1ad070['drawingId']):void 0x0;return _0x377053===void 0x0||_0x3a8d31(_0x377053);}));}function Ci(_0x5bb36a){const _0x52e122=_0x43e8a4;return{'id':Pr['id'],'type':_0x3c5886[_0x52e122(0x293)],'icon':_0x52e122(0x9a),'title':_0x52e122(0x244),'tooltip':_0x52e122(0x244),'selections':[{'label':{'name':Zr,'hoverable':!0x1,'selectable':!0x1}}],'value$':_i(_0x5bb36a),'hidden$':xi(_0x5bb36a)};}function wi(_0x326d1e){const _0x4eb04d=_0x43e8a4;return{'id':Fr['id'],'type':_0x3c5886['SELECTOR'],'icon':_0x4eb04d(0x96),'title':_0x4eb04d(0x2d4),'tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':_0x12e18b,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Si(_0x326d1e)};}function Ti(_0x15b202,_0x1d2abd,_0x41c09a=!0x1){const _0x4ae7ee=_0x43e8a4;return _0x4d8212=>({'id':_0x15b202,'type':_0x3c5886[_0x4ae7ee(0x2ad)],'label':{'name':_0x1d2abd,'hoverable':!0x1,'selectable':!0x1},'hidden$':xi(_0x4d8212,_0x41c09a)});}const Ei=Ti(li,Qr),Di=Ti(ui,$r),Oi=Ti(di,ei,!0x0);function ki(_0x8d854f){const _0x1a0763=_0x43e8a4;return{'id':gi,'type':_0x3c5886[_0x1a0763(0x293)],'icon':ni[0x0][_0x1a0763(0x2a5)],'label':ti,'selectionsCommandId':_0x35bcca['id'],'selections':ni[_0x1a0763(0x1e4)](({icon:_0x6bda1c,label:_0x5b1832,value:_0x209e74})=>({'value':_0x209e74,'label':_0x5b1832,'icon':_0x6bda1c,'params':()=>{const _0x24b47f=_0x1a0763;let _0x155677=vi(_0x8d854f);return _0x155677?{'unitId':_0x155677['unitId'],'subUnitId':_0x155677[_0x24b47f(0x2d2)],'drawings':[{'unitId':_0x155677[_0x24b47f(0xa2)],'subUnitId':_0x155677[_0x24b47f(0x2d2)],'drawingId':_0x155677[_0x24b47f(0x198)]}],'wrappingStyle':_0x209e74}:void 0x0;}})),'value$':bi(_0x8d854f),'hidden$':xi(_0x8d854f)};}function Ai(_0x2c8e4,_0x50db02,_0x3e142e,_0x13cc7e){const _0x4db5e7=_0x43e8a4;return _0x5884fd=>({'id':_0x2c8e4,'commandId':_0x3c4545['id'],'type':_0x3c5886[_0x4db5e7(0x2ad)],'icon':_0x3e142e,'title':_0x13cc7e,'tooltip':_0x13cc7e,'hidden$':xi(_0x5884fd),'params':()=>{const _0x1bbc8a=_0x4db5e7;let _0x5bafc6=vi(_0x5884fd);return _0x5bafc6?{'unitId':_0x5bafc6[_0x1bbc8a(0xa2)],'subUnitId':_0x5bafc6[_0x1bbc8a(0x2d2)],'drawingIds':[_0x5bafc6[_0x1bbc8a(0x198)]],'arrangeType':_0x50db02}:void 0x0;}});}const ji=Ai(fi,_0x1f6748[_0x43e8a4(0x22f)],'MoveUpIcon',_0x43e8a4(0x20f)),Mi=Ai(pi,_0x1f6748[_0x43e8a4(0x1ff)],_0x43e8a4(0x216),'shape-editor-ui.arrange.backward'),Ni=Ai(mi,_0x1f6748['front'],_0x43e8a4(0xdd),'shape-editor-ui.arrange.front'),Pi=Ai(hi,_0x1f6748[_0x43e8a4(0x14d)],'BottomIcon',_0x43e8a4(0x1e0));function Fi(_0x26848f){const _0x3f650c=_0x43e8a4;return{'id':G['id'],'type':_0x3c5886['BUTTON'],'icon':'ShapeFormatSettingIcon','title':'docs-shape-ui.formatShape','tooltip':_0x3f650c(0x21d),'hidden$':xi(_0x26848f),'params':()=>{const _0x3dd8f0=_0x3f650c;let _0x23b654=vi(_0x26848f);return _0x23b654?{'unitId':_0x23b654[_0x3dd8f0(0xa2)],'subUnitId':_0x23b654[_0x3dd8f0(0x2d2)],'drawingId':_0x23b654[_0x3dd8f0(0x198)]}:void 0x0;}};}const Ii={[_0x242878[_0x43e8a4(0x15b)]]:{[Dr]:{'order':0x64,'title':'docs-shape-ui.formatShape','contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Pr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ci},[Fr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':wi}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[li]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ei}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[ui]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Di}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[gi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':ki},[fi]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':ji},[pi]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Mi},[mi]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':Ni},[hi]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':Pi}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[di]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Oi}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[G['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Fi},[_0x10dcc9['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x374e3e}}}}},Li={[_0x59a1a7['MEDIA']]:{[U['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x36964b=>({...Gr(_0x36964b),'title':void 0x0})}},[_0x59a1a7[_0x43e8a4(0x1e2)]]:{[Mr['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Jr}},[_0x26c1b2[_0x43e8a4(0x11c)]]:{[_0x57116b[_0x43e8a4(0x122)]]:{[_0x4203e1]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x3f6de3]:{[_0x57116b['LAYOUT']]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x23a7e9]:{[_0x57116b[_0x43e8a4(0x122)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':qr}}},[_0x5e7691]:{'insert':{[U['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':Gr}}},[_0xdfd9ae]:{'insert':{[U['id']+_0x43e8a4(0x233)]:{'replace':!0x0,'order':0x2,'menuItemFactory':Kr}}}}};var Ri=_0x43e8a4(0x1f1),zi='1.1.0';const Bi={'type':_0x5e8815['OPERATION'],'id':_0x43e8a4(0x29f),'handler'(){return!0x0;}},Vi=_0x43e8a4(0x1e1),Hi={};function Ui(_0x5b6f76){'@babel/helpers - typeof';const _0x182071=_0x43e8a4;return Ui=typeof Symbol==_0x182071(0xb9)&&typeof Symbol['iterator']==_0x182071(0x16a)?function(_0x214abd){return typeof _0x214abd;}:function(_0x44fc8b){const _0x4e8e3b=_0x182071;return _0x44fc8b&&typeof Symbol=='function'&&_0x44fc8b[_0x4e8e3b(0x13a)]===Symbol&&_0x44fc8b!==Symbol[_0x4e8e3b(0x155)]?_0x4e8e3b(0x16a):typeof _0x44fc8b;},Ui(_0x5b6f76);}function Wi(_0x4c45b2,_0x2cdadb){const _0x53b88e=_0x43e8a4;if(Ui(_0x4c45b2)!=_0x53b88e(0x268)||!_0x4c45b2)return _0x4c45b2;var _0x191c78=_0x4c45b2[Symbol[_0x53b88e(0x14e)]];if(_0x191c78!==void 0x0){var _0x389171=_0x191c78[_0x53b88e(0xa0)](_0x4c45b2,_0x2cdadb||_0x53b88e(0x289));if(Ui(_0x389171)!='object')return _0x389171;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2cdadb===_0x53b88e(0x12c)?String:Number)(_0x4c45b2);}function Gi(_0x5093aa){const _0x369d17=_0x43e8a4;var _0x36ef36=Wi(_0x5093aa,_0x369d17(0x12c));return Ui(_0x36ef36)==_0x369d17(0x16a)?_0x36ef36:_0x36ef36+'';}function J(_0x114860,_0x2ef095,_0x3b0a44){const _0x3e30fb=_0x43e8a4;return(_0x2ef095=Gi(_0x2ef095))in _0x114860?Object[_0x3e30fb(0xac)](_0x114860,_0x2ef095,{'value':_0x3b0a44,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x114860[_0x2ef095]=_0x3b0a44,_0x114860;}var Ki=class extends _0x479a18{constructor(_0x280e57,_0x59c50d){const _0x1ad754=_0x43e8a4;super(_0x280e57,_0x59c50d),J(this,_0x1ad754(0x1fb),null),J(this,_0x1ad754(0x107),null),J(this,'_unitId',null),J(this,_0x1ad754(0xb2),null),_0x59c50d&&this[_0x1ad754(0x192)](_0x59c50d);}[_0x43e8a4(0xe3)](){const _0x11d9e5=_0x43e8a4;return{'unitId':this['_unitId'],'subUnitId':this[_0x11d9e5(0xb2)],'drawingId':this[_0x11d9e5(0x1fb)]};}[_0x43e8a4(0x192)](_0x1aefbc){const _0x23bc69=_0x43e8a4;_0x1aefbc[_0x23bc69(0x1a5)]!==void 0x0&&(this[_0x23bc69(0x1fb)]=_0x1aefbc[_0x23bc69(0x1a5)]),_0x1aefbc[_0x23bc69(0x105)]!==void 0x0&&(this[_0x23bc69(0x107)]=_0x1aefbc[_0x23bc69(0x105)]),_0x1aefbc[_0x23bc69(0xa2)]!==void 0x0&&(this[_0x23bc69(0x28c)]=_0x1aefbc[_0x23bc69(0xa2)]),_0x1aefbc['subUnitId']!==void 0x0&&(this['_subUnitId']=_0x1aefbc[_0x23bc69(0x2d2)]),this[_0x23bc69(0x102)]({'width':_0x1aefbc[_0x23bc69(0x7d)],'height':_0x1aefbc['height']});}[_0x43e8a4(0x140)](_0x20b9a5){const _0x4a91da=_0x43e8a4;_0x5d9ad7[_0x4a91da(0xe5)](_0x20b9a5,{'radius':_0x1f925b[_0x4a91da(0x20b)],'fill':_0x1f925b[_0x4a91da(0x21b)],'stroke':_0x1f925b['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function qi(_0x3bf224,_0x38472d,_0x14bee7){const _0xa713ff=_0x43e8a4;let _0x4c50cd={..._0x38472d,'dataModel':{..._0x38472d[_0xa713ff(0x163)]??{},..._0x14bee7?{'doc':_0x14bee7}:null}},_0x472b4a=_0x17c928(_0x3bf224,_0x4c50cd),_0x49a10b=_0xd357af(_0x472b4a);return{'clip':_0x1c7d20(_0x472b4a,_0x49a10b),'wrapStrategy':_0x49a10b};}var Y=class extends _0x479a18{constructor(_0x5c5290,_0x2f5cf9){const _0x552356=_0x43e8a4;super(_0x5c5290,_0x2f5cf9),J(this,_0x552356(0xc7),[]),J(this,_0x552356(0x1dd),void 0x0),J(this,'_formulaAnimation',new _0x41ef0b(()=>this['makeDirty'](!0x0),()=>this['_applyFormulaAutoFitSize']())),J(this,'_transformCalculateSrcRect',!0x0),J(this,_0x552356(0x18b),_0x1652cd['DRAWING_SHAPE']),J(this,_0x552356(0xf8),!0x0),this[_0x552356(0x1dd)]={..._0x2f5cf9},this['_formulaAnimation'][_0x552356(0x273)](_0x2f5cf9[_0x552356(0xcb)],_0x2f5cf9['animateFormulaPresentation']!==!0x1),this[_0x552356(0x278)](),this[_0x552356(0x26c)]();}['_init'](){const _0x44113a=_0x43e8a4;this[_0x44113a(0x83)][_0x44113a(0xcd)](_0x6652c0=>{const _0x34b078=_0x44113a;this[_0x34b078(0x2ba)](_0x6652c0);});}[_0x43e8a4(0x1ef)](_0x1ae12c){const _0xab1588=_0x43e8a4;this[_0xab1588(0x1dd)][_0xab1588(0x2a1)]=_0x1ae12c;}['resolveHyperLinkAt'](_0x39dcb8){const _0x93c6df=_0x43e8a4;if(this['_props'][_0x93c6df(0x12a)])return null;let _0xc5bff6=this[_0x93c6df(0x258)](_0x39dcb8),{width:_0x4b7592,height:_0x529126}=this[_0x93c6df(0x250)]();return _0x436b63(this[_0x93c6df(0xc7)],{'x':(this[_0x93c6df(0xc0)]?-_0xc5bff6['x']:_0xc5bff6['x'])+_0x4b7592/0x2,'y':_0xc5bff6['y']+_0x529126/0x2});}[_0x43e8a4(0x15a)](_0x548241){const _0x17721d=_0x43e8a4;this['_props'][_0x17721d(0x12a)]=_0x548241,this[_0x17721d(0x11f)](!0x0);}[_0x43e8a4(0xc4)](_0x4876ae,_0x139935=!0x0){const _0x56d107=_0x43e8a4;this[_0x56d107(0x18a)]['setPresentation'](_0x4876ae,_0x139935),this[_0x56d107(0x1dd)][_0x56d107(0xcb)]=_0x4876ae,this[_0x56d107(0x26c)](),this[_0x56d107(0x11f)](!0x0);}[_0x43e8a4(0x26c)](){const _0x13a163=_0x43e8a4;let _0xa11a3e=this[_0x13a163(0x1dd)]['shapeModel'],_0x5773f8=_0xa11a3e[_0x13a163(0x212)](),_0x3b0d52=_0x33266c(_0x5773f8==null?void 0x0:_0x5773f8[_0x13a163(0x163)]),_0x98c2cb=_0x3b0d52==null?void 0x0:_0x3b0d52[_0x13a163(0x81)],_0x5ef685=this[_0x13a163(0x18a)][_0x13a163(0x9e)]();if(!_0x98c2cb||_0x5ef685[_0x13a163(0x1ee)]===0x0)return;_0xa11a3e[_0x13a163(0x2bc)]({'width':this[_0x13a163(0x7d)],'height':this[_0x13a163(0x204)]});let _0x27114d=_0x4b8d5f({'documentData':_0x5ef685[_0x13a163(0x1e4)](_0x12e11e=>_0x59b1ab(_0x98c2cb,_0x12e11e)),'height':this[_0x13a163(0x204)],'shapeData':_0xa11a3e[_0x13a163(0x299)](),'textRect':_0xa11a3e[_0x13a163(0x131)]({'left':0x0,'top':0x0,'width':this[_0x13a163(0x7d)],'height':this[_0x13a163(0x204)]}),'width':this[_0x13a163(0x7d)]});if(_0x27114d){var _0xed22ec;this['resize'](_0x27114d[_0x13a163(0x7d)],_0x27114d[_0x13a163(0x204)]),(_0xed22ec=this['getScene']())==null||(_0xed22ec=_0xed22ec[_0x13a163(0xdb)]())==null||_0xed22ec['debounceRefreshControls']();}}get['unitId'](){return this['_props']['unitId'];}get[_0x43e8a4(0x2d2)](){const _0x5c4f57=_0x43e8a4;return this['_props'][_0x5c4f57(0x2d2)];}[_0x43e8a4(0x2ba)](_0x1dab22){const _0x34034f=_0x43e8a4;if(this[_0x34034f(0x1dd)][_0x34034f(0x16b)]==null||!this[_0x34034f(0x1ed)])return;let {width:_0x1fd54e,height:_0x223257}=this,{width:_0xa300d6=0x0,height:_0x9e2573=0x0}=_0x1dab22[_0x34034f(0x176)],{left:_0xd71235=0x0,top:_0x56c4db=0x0,right:_0x5d5538=0x0,bottom:_0x2db8c1=0x0}=this[_0x34034f(0x1dd)][_0x34034f(0x16b)],_0x5003b1=_0xd71235,_0x4438ff=_0x56c4db,_0x58e234=_0x5d5538,_0x5c9ea9=_0x2db8c1,_0x355495=!0x1;if(_0xa300d6!==0x0&&_0xa300d6!==_0x1fd54e){let _0x564482=_0xd71235/_0xa300d6,_0x2e7465=_0x5d5538/_0xa300d6;_0x5003b1=_0x1fd54e*_0x564482,_0x58e234=_0x1fd54e*_0x2e7465,_0x355495=!0x0;}if(_0x9e2573!==0x0&&_0x9e2573!==_0x223257){let _0xda409c=_0x56c4db/_0x9e2573,_0x3a00f0=_0x2db8c1/_0x9e2573;_0x4438ff=_0x223257*_0xda409c,_0x5c9ea9=_0x223257*_0x3a00f0,_0x355495=!0x0;}_0x355495&&this[_0x34034f(0x1d7)]({'left':_0x5003b1,'top':_0x4438ff,'right':_0x58e234,'bottom':_0x5c9ea9});}[_0x43e8a4(0x1d7)](_0x47b319){const _0x211e7d=_0x43e8a4;this['_props']['srcRect']=_0x47b319,this[_0x211e7d(0x11f)](!0x0);}[_0x43e8a4(0x205)](_0x2b0860){const _0x29ac12=_0x43e8a4;this[_0x29ac12(0x1dd)][_0x29ac12(0x29b)]=_0x2b0860,this[_0x29ac12(0x11f)](!0x0);}set[_0x43e8a4(0x260)](_0x233018){const _0x54743f=_0x43e8a4;this[_0x54743f(0x1c6)]=_0x233018;}get['transform'](){const _0x35bde3=_0x43e8a4;this[_0x35bde3(0x1c6)]||this[_0x35bde3(0x1ab)]();let _0x9c4bea=this[_0x35bde3(0x1c6)][_0x35bde3(0x27b)]();return this[_0x35bde3(0x186)](_0x9c4bea);}get['shapeModel'](){const _0x142410=_0x43e8a4;return this[_0x142410(0x1dd)]['shapeModel'];}get[_0x43e8a4(0x1a5)](){const _0x5e9b9c=_0x43e8a4;return this['_props'][_0x5e9b9c(0x1a5)];}get[_0x43e8a4(0x15f)](){const _0x2b9230=_0x43e8a4;return _0x5ccc48[_0x2b9230(0x237)];}[_0x43e8a4(0x140)](_0x4d096d,_0x559378,_0x2a2a3b,_0xf21f6){const _0x55fbe3=_0x43e8a4;let _0x2aa0b7=this['_props'][_0x55fbe3(0x19d)];if(!_0x2aa0b7||!_0x559378)return;let _0x37e222=_0x2a2a3b??this[_0x55fbe3(0x7d)],_0x44597c=_0xf21f6??this[_0x55fbe3(0x204)],_0x1c6047={'shapeType':_0x2aa0b7[_0x55fbe3(0x2d1)](),'width':_0x37e222,'height':_0x44597c},_0x330e24={'renderMode':_0x17498a[_0x55fbe3(0xfb)],'oKey':this[_0x55fbe3(0xef)],'image':this['_props'][_0x55fbe3(0x29b)],'angle':this['angle']};_0x2aa0b7['updateContext'](_0x1c6047),_0x4d096d[_0x55fbe3(0x29a)]();let _0x51580c={'top':0x0,'left':0x0,'width':_0x37e222,'height':_0x44597c},_0x353d51=_0x2aa0b7[_0x55fbe3(0x114)](_0x51580c);_0x353d51?this[_0x55fbe3(0x13e)](_0x4d096d,_0x353d51,_0x5f564c=>{_0x2aa0b7['render'](_0x5f564c,_0x51580c,_0x330e24);}):(this[_0x55fbe3(0x26b)](),_0x2aa0b7[_0x55fbe3(0x16c)](_0x4d096d,_0x51580c,_0x330e24)),_0x4d096d[_0x55fbe3(0x137)]();let _0x277afd=_0x2aa0b7['getShapeTextData'](),_0x4e228c=_0x2aa0b7[_0x55fbe3(0x131)](_0x51580c),_0x4ff5a9=_0x2aa0b7[_0x55fbe3(0x2aa)]();if(_0x277afd&&_0x4e228c&&!_0x4ff5a9){_0x4d096d[_0x55fbe3(0x29a)](),this['getState']()[_0x55fbe3(0xc0)]&&_0x4d096d[_0x55fbe3(0x95)](-0x1,0x1);let _0x212233=_0x37e222/0x2,_0x2d044a=_0x44597c/0x2;_0x4d096d[_0x55fbe3(0x136)](-_0x212233,-_0x2d044a),_0x4d096d[_0x55fbe3(0xd7)](),this[_0x55fbe3(0x1cd)](_0x4d096d,_0x277afd,_0x4e228c),_0x4d096d[_0x55fbe3(0x137)]();}}['getDrawingPoints'](_0x146ff0){}['_drawShapeText'](_0x147eff,_0x5583a1,_0x134d66){const _0x38cd66=_0x43e8a4;var _0x3b94cf;this[_0x38cd66(0xc7)]=[],!this[_0x38cd66(0x1dd)][_0x38cd66(0x12a)]&&(!((_0x3b94cf=_0x5583a1['dataModel'])!=null&&_0x3b94cf[_0x38cd66(0x81)])&&'isRichText'in _0x5583a1&&_0x5583a1[_0x38cd66(0x145)]===!0x1?this[_0x38cd66(0x11d)](_0x147eff,_0x5583a1,_0x134d66):this[_0x38cd66(0x269)](_0x147eff,_0x5583a1,_0x134d66));}[_0x43e8a4(0x11d)](_0x102a10,_0x16c4d2,_0x707721){const _0x319d04=_0x43e8a4;this[_0x319d04(0x269)](_0x102a10,{..._0x16c4d2,'text':_0x16c4d2['text']??'','dataModel':{'doc':_0x5e99a9(_0x16c4d2,_0x319d04(0x227)+this[_0x319d04(0xef)])}},_0x707721);}['_drawRichText'](_0x242a47,_0x3fe3e7,_0xab1864){const _0x46a03a=_0x43e8a4;_0x2b587f(_0x242a47,this[_0x46a03a(0x18a)],(_0xc78800,_0x223dc2,_0x3e6ea2)=>{const _0x30325f=_0x46a03a;this['_drawRichTextLayer'](_0xc78800,_0x3fe3e7,_0xab1864,_0x223dc2,_0x3e6ea2===_0x30325f(0x202));});}[_0x43e8a4(0x1bb)](_0x48277e,_0x6bbb4e,_0x42c06c,_0x4f1fbf,_0x14fd6b){const _0x46b882=_0x43e8a4;let _0x34fd68=this[_0x46b882(0x1dd)][_0x46b882(0x174)];if(!_0x6bbb4e[_0x46b882(0x163)]||!_0x34fd68){_0x34fd68||console['warn']('[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering');return;}let _0x1e0233=_0x33266c(_0x6bbb4e[_0x46b882(0x163)]);if(!_0x1e0233)return;let _0x2c6213=_0x1e0233[_0x46b882(0x81)];if(!_0x2c6213)return;let _0x3d5692=_0x59b1ab(_0x2c6213,_0x4f1fbf),_0x3c88cb=_0x1e0233['va']??_0xfc8006[_0x46b882(0x249)],_0x4a947b=_0x1e0233['ha']??_0x19f481['LEFT'],_0x453e31=qi(this[_0x46b882(0x1dd)][_0x46b882(0x19d)][_0x46b882(0x299)](),_0x6bbb4e,_0x3d5692),_0x57d425=_0x6bbb4e[_0x46b882(0x2cb)],_0x433573=_0x18300c(_0x3d5692,{'isHorizontal':_0x57d425!==!0x1,'textRect':_0x42c06c,'verticalAlign':_0x3c88cb,'horizontalAlign':_0x4a947b,'wrapStrategy':_0x453e31[_0x46b882(0xe6)]}),_0xb5f4eb=new _0x2925ba(_0x433573),_0x4fdf68=new _0x4be549(_0xb5f4eb),_0xa67c18=_0x122642[_0x46b882(0x15d)](_0x4fdf68,_0x34fd68);_0xa67c18['calculate']();let _0x5acdb4=_0xa67c18['getActualSize']()[_0x46b882(0x199)],_0x349a06=_0x4f930a({'contentHeight':_0x5acdb4,'verticalAlign':_0x3c88cb,'viewportHeight':_0x42c06c[_0x46b882(0x204)]});_0xb5f4eb[_0x46b882(0x1b8)]({'pageSize':{'width':_0x57d425===!0x1?_0x42c06c[_0x46b882(0x204)]:_0x42c06c['width'],'height':_0x30a506(_0x3d5692,_0x349a06['contentHeight'])}}),_0xb5f4eb[_0x46b882(0x172)]({'t':_0x349a06['marginTop']}),_0xa67c18[_0x46b882(0xf3)]();let _0x82b132=new _0x321da8(_0x46b882(0x1e3)+this[_0x46b882(0xef)],_0xa67c18,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this['makeDirty'](!0x0)});_0x82b132['resize'](_0x42c06c[_0x46b882(0x7d)],_0x349a06[_0x46b882(0x1ce)]),_0x48277e[_0x46b882(0x29a)](),_0x48277e[_0x46b882(0x2a2)](_0x42c06c['left'],_0x42c06c[_0x46b882(0x2b8)]),_0x453e31[_0x46b882(0x18d)]&&(_0x48277e[_0x46b882(0xd7)](),_0x48277e[_0x46b882(0xce)](0x0,_0x349a06[_0x46b882(0xab)],_0x42c06c[_0x46b882(0x7d)],_0x349a06[_0x46b882(0xf1)]),_0x48277e['clip']()),_0x349a06[_0x46b882(0x94)]&&_0x48277e[_0x46b882(0x2a2)](0x0,_0x349a06[_0x46b882(0x94)]),_0x82b132[_0x46b882(0x17a)](_0x48277e),_0x14fd6b&&(this['_hyperLinkRegions']=_0x32283e(_0x82b132,{'left':_0x42c06c[_0x46b882(0xaf)],'top':_0x42c06c[_0x46b882(0x2b8)]+_0x349a06['contentVerticalOffset']},_0x453e31[_0x46b882(0x18d)]?{'left':_0x42c06c[_0x46b882(0xaf)],'right':_0x42c06c[_0x46b882(0xaf)]+_0x42c06c[_0x46b882(0x7d)],'top':_0x42c06c[_0x46b882(0x2b8)]+_0x349a06[_0x46b882(0xab)],'bottom':_0x42c06c[_0x46b882(0x2b8)]+_0x349a06['clipTop']+_0x349a06[_0x46b882(0xf1)]}:void 0x0)),_0x48277e[_0x46b882(0x137)](),_0x82b132[_0x46b882(0xb0)](),_0xa67c18[_0x46b882(0xb0)](),_0x4fdf68[_0x46b882(0xb0)](),_0xb5f4eb[_0x46b882(0xb0)]();}[_0x43e8a4(0x16c)](_0x115d8e,_0x37819a,_0x4ef972=!0x1){const _0x4fe97e=_0x43e8a4;if(!this[_0x4fe97e(0x1b4)])return this[_0x4fe97e(0x11f)](!0x1),this;let {width:_0x1300d3,height:_0x56a197,left:_0x43f9da,top:_0x52b64d}=this,_0x38a059=this[_0x4fe97e(0x250)]();if(_0x1300d3=_0x38a059[_0x4fe97e(0x7d)],_0x56a197=_0x38a059[_0x4fe97e(0x204)],_0x43f9da=_0x38a059[_0x4fe97e(0xaf)],_0x52b64d=_0x38a059[_0x4fe97e(0x2b8)],this[_0x4fe97e(0x1f9)](_0x37819a)){let {top:_0x2fdc3e,left:_0x267d9f,bottom:_0x3bd038,right:_0x170d4a}=_0x37819a[_0x4fe97e(0x26f)];if(_0x1300d3+this[_0x4fe97e(0x12d)]+_0x43f9da<_0x267d9f||_0x170d4a<_0x43f9da||_0x56a197+this['strokeWidth']+_0x52b64d<_0x2fdc3e||_0x3bd038<_0x52b64d)return this;}let _0x50aae9=_0x43f9da+_0x1300d3/0x2,_0x5f4691=_0x52b64d+_0x56a197/0x2,_0x179769=this[_0x4fe97e(0x260)][_0x4fe97e(0x1ba)]();if(this[_0x4fe97e(0x1dd)]['isEditing']){let _0x4d4b06=this[_0x4fe97e(0x188)](),_0x3ee8d4=new _0x4d0b24();_0x3ee8d4[_0x4fe97e(0x2ce)]({..._0x4d4b06}),_0x179769=_0x3ee8d4['getMatrix']();}return _0x115d8e['save'](),this[_0x4fe97e(0x1dd)][_0x4fe97e(0x19d)][_0x4fe97e(0x1bf)]===!0x0||_0x115d8e[_0x4fe97e(0x260)](_0x179769[0x0],_0x179769[0x1],_0x179769[0x2],_0x179769[0x3],_0x50aae9,_0x5f4691),this['_draw'](_0x115d8e,_0x37819a,_0x1300d3,_0x56a197),_0x115d8e['restore'](),this[_0x4fe97e(0x11f)](!0x1),this;}[_0x43e8a4(0x258)](_0x509918){const _0x3abecb=_0x43e8a4;let {left:_0x4590cd,top:_0x9a6ae2,width:_0x228816,height:_0x2defda}=this[_0x3abecb(0x250)](),_0x34c255=this[_0x3abecb(0x260)][_0x3abecb(0x1ba)](),_0x13ad08=_0x4590cd+_0x228816/0x2,_0x4fa435=_0x9a6ae2+_0x2defda/0x2,_0x4c3336=new _0x4d0b24([_0x34c255[0x0],_0x34c255[0x1],_0x34c255[0x2],_0x34c255[0x3],_0x13ad08,_0x4fa435]),_0x2d257f=this[_0x3abecb(0xf7)]();return(this[_0x3abecb(0x262)]&&(_0x2d257f==null?void 0x0:_0x2d257f[_0x3abecb(0x15f)])===_0x5ccc48['GROUP']?_0x2d257f['ancestorTransform'][_0x3abecb(0x74)](_0x4c3336):_0x4c3336)['invert']()[_0x3abecb(0x2cd)](_0x509918);}[_0x43e8a4(0x2b3)](_0x530bbc){const _0x561b73=_0x43e8a4;let {left:_0x5aa716,top:_0x3795f2,width:_0x5a4920,height:_0xff574}=this[_0x561b73(0x250)](),_0x374d2c=_0x5aa716+_0x5a4920/0x2,_0x409b0c=_0x3795f2+_0xff574/0x2,_0x55cbbe=this['transform'][_0x561b73(0x1ba)](),_0x221a0a=new _0x4d0b24([_0x55cbbe[0x0],_0x55cbbe[0x1],_0x55cbbe[0x2],_0x55cbbe[0x3],_0x374d2c,_0x409b0c]),_0x4d1501=this[_0x561b73(0xf7)](),_0x14e673=(this[_0x561b73(0x262)]&&(_0x4d1501==null?void 0x0:_0x4d1501[_0x561b73(0x15f)])===_0x5ccc48[_0x561b73(0x7c)]?_0x4d1501['ancestorTransform'][_0x561b73(0x74)](_0x221a0a):_0x221a0a)[_0x561b73(0x139)]()[_0x561b73(0x2cd)](_0x530bbc),_0x389794=_0x5a4920/0x2,_0xfb543f=_0xff574/0x2,_0x3d8f4a=this[_0x561b73(0x1dd)]['shapeModel'];return _0x3d8f4a&&_0x3d8f4a['isLineShape']()?_0x3d8f4a['isHitLine'](_0x14e673['x'],_0x14e673['y'],_0x5a4920,_0xff574):_0x14e673['x']>=-_0x389794-this[_0x561b73(0x12d)]/0x2&&_0x14e673['x']<=_0x389794+this['strokeWidth']/0x2&&_0x14e673['y']>=-_0xfb543f-this[_0x561b73(0x12d)]/0x2&&_0x14e673['y']<=_0xfb543f+this['strokeWidth']/0x2;}[_0x43e8a4(0xb0)](){const _0x126999=_0x43e8a4;this['_formulaAnimation'][_0x126999(0xb0)](),this[_0x126999(0x1dd)][_0x126999(0x19d)]=null,super[_0x126999(0xb0)]();}};let Ji=class extends _0x143425{constructor(_0x395cc9,_0x3ba4bc,_0xd17344,_0x52f159){const _0x4ab592=_0x43e8a4;super(),this['_context']=_0x395cc9,this[_0x4ab592(0x282)]=_0x3ba4bc,this[_0x4ab592(0x17f)]=_0xd17344,this['_commandService']=_0x52f159,J(this,_0x4ab592(0x1fe),null),J(this,_0x4ab592(0x28c),null),J(this,_0x4ab592(0xb2),null),J(this,_0x4ab592(0x16f),void 0x0),J(this,_0x4ab592(0x265),[]),J(this,_0x4ab592(0x276),0x0),J(this,'_baseShapeTop',0x0),J(this,_0x4ab592(0x230),0x0),J(this,_0x4ab592(0x130),0x0),J(this,_0x4ab592(0x1c2),!0x1),J(this,_0x4ab592(0x29d),!0x1),J(this,_0x4ab592(0x143),void 0x0),J(this,_0x4ab592(0x24c),void 0x0),J(this,_0x4ab592(0x13d),void 0x0),J(this,_0x4ab592(0x89),void 0x0),this[_0x4ab592(0x264)](),this[_0x4ab592(0x296)]();}['clearAdjustControls'](){const _0x137526=_0x43e8a4;this[_0x137526(0x288)]();}[_0x43e8a4(0x6e)](){const _0x282336=_0x43e8a4;this[_0x282336(0x23d)](!0x0);}[_0x43e8a4(0x133)](_0x27a855,_0x249b59,_0x2ca449){const _0x3cff91=_0x43e8a4;var _0xbee5e1;return(_0xbee5e1=this['_docsShapeService'][_0x3cff91(0x100)](_0x27a855,_0x249b59,_0x2ca449))==null?void 0x0:_0xbee5e1['getDrawingPoints']();}[_0x43e8a4(0x223)](_0x28b232,_0x44aaba,_0x57c289,_0x48f1f5){const _0x45907f=_0x43e8a4;var _0x1df0db;return(_0x1df0db=this['_docsShapeService']['getShapeModel'](_0x28b232,_0x44aaba,_0x57c289))==null?void 0x0:_0x1df0db[_0x45907f(0x2c6)](_0x48f1f5);}[_0x43e8a4(0x283)](){const _0x43ad60=_0x43e8a4;return this[_0x43ad60(0x28c)]===null||this[_0x43ad60(0xb2)]===null||this[_0x43ad60(0x1fe)]===null?null:this[_0x43ad60(0x282)][_0x43ad60(0xfd)]({'unitId':this['_unitId'],'subUnitId':this[_0x43ad60(0xb2)],'drawingId':this[_0x43ad60(0x1fe)]})??null;}['_getActiveDrawingShape'](_0x4455fa){const _0x3d7fd6=_0x43e8a4;if(this['_unitId']===null||this['_subUnitId']===null||this['_activeShapeId']===null)return null;let _0xea8430=_0x33c05c({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x3d7fd6(0x1fe)]}),_0x4cd9bd=_0x4455fa[_0x3d7fd6(0x17b)](_0xea8430);return _0x4cd9bd instanceof Y?_0x4cd9bd:null;}[_0x43e8a4(0x27f)](_0x30bcf3=!0x1){const _0x51c31f=_0x43e8a4;if(this[_0x51c31f(0x28c)]===null||this[_0x51c31f(0xb2)]===null||this[_0x51c31f(0x1fe)]===null)return;let _0x2eeb78=this[_0x51c31f(0x283)]();if((_0x2eeb78==null?void 0x0:_0x2eeb78['drawingType'])!==_0x1652cd['DRAWING_SHAPE']||!_0x2eeb78[_0x51c31f(0x260)])return;let _0x312c9b=this[_0x51c31f(0x17f)][_0x51c31f(0x100)](this[_0x51c31f(0x28c)],this[_0x51c31f(0xb2)],this[_0x51c31f(0x1fe)]);if(!_0x312c9b||_0x312c9b[_0x51c31f(0x2aa)]())return;let {left:_0x12bb04=0x0,top:_0x9468d1=0x0,width:_0x16d0e9=0x0,height:_0x558119=0x0,flipX:_0xbf4dd5,flipY:_0x289aab,angle:_0x47588d=0x0}=_0x2eeb78[_0x51c31f(0x260)];(_0x30bcf3||!this[_0x51c31f(0x16f)])&&(_0x312c9b[_0x51c31f(0x2bc)]({'width':_0x16d0e9,'height':_0x558119}),this[_0x51c31f(0x16f)]=_0x312c9b[_0x51c31f(0x29e)]());let _0x2aa054=this['_activeShapeAdjustPointList'];if(!(_0x2aa054!=null&&_0x2aa054[_0x51c31f(0x1ee)]))return;let {scene:_0x30c042}=this[_0x51c31f(0xed)];for(let _0x2d9bb3 of _0x2aa054){let _0x160c51=this[_0x51c31f(0x25d)](_0x2d9bb3,_0x16d0e9,_0x558119,!!_0xbf4dd5,!!_0x289aab,_0x47588d);this[_0x51c31f(0x239)](_0x30c042,_0x160c51,_0x160c51[_0x51c31f(0x105)],_0x12bb04,_0x9468d1,this[_0x51c31f(0x28c)],this[_0x51c31f(0xb2)]);}}[_0x43e8a4(0x25d)](_0x1b19d5,_0x87d244,_0x4227ff,_0xde21c3,_0x252721,_0x2819ff){const _0x4773f9=_0x43e8a4;let _0x3d9ad2=_0x1b19d5['x'],_0x12c1f7=_0x1b19d5['y'];if(_0xde21c3&&(_0x3d9ad2=_0x87d244-_0x3d9ad2),_0x252721&&(_0x12c1f7=_0x4227ff-_0x12c1f7),_0x2819ff!==0x0){let _0x2cab27=_0x87d244/0x2,_0x1d87b4=_0x4227ff/0x2,_0x5bae27=_0x2819ff*Math['PI']/0xb4,_0x539fbf=Math[_0x4773f9(0x1b0)](_0x5bae27),_0x3a8105=Math['sin'](_0x5bae27),_0x4f2941=_0x3d9ad2-_0x2cab27,_0x343be1=_0x12c1f7-_0x1d87b4;_0x3d9ad2=_0x2cab27+(_0x4f2941*_0x539fbf-_0x343be1*_0x3a8105),_0x12c1f7=_0x1d87b4+(_0x4f2941*_0x3a8105+_0x343be1*_0x539fbf);}return{'x':_0x3d9ad2,'y':_0x12c1f7,'adjName':_0x1b19d5[_0x4773f9(0x105)]};}[_0x43e8a4(0x23d)](_0x3b2afa=!0x1){const _0x14887d=_0x43e8a4;_0x3b2afa&&this[_0x14887d(0x288)](),this[_0x14887d(0x27f)](_0x3b2afa);}['_addShapeAdjustControl'](_0x4a3a2a,_0x1ea49e,_0x3e36ad,_0x342ec9,_0x12cd20,_0x390181,_0x3a5a77){const _0x3ca69a=_0x43e8a4;if(!this[_0x3ca69a(0x1fe)])return;let _0x1a0442=_0x3ca69a(0x161)+this['_activeShapeId']+'-'+_0x3e36ad,_0x539a65=_0x4a3a2a[_0x3ca69a(0x17b)](_0x1a0442);if(_0x539a65){_0x539a65['transformByState']({'left':_0x1ea49e['x']+_0x342ec9-_0x1f925b[_0x3ca69a(0x20b)],'top':_0x1ea49e['y']+_0x12cd20-_0x1f925b[_0x3ca69a(0x20b)]}),_0x539a65[_0x3ca69a(0x11f)](!0x0);return;}let _0x2e79cc=new Ki(_0x1a0442,{'left':_0x1ea49e['x']+_0x342ec9-_0x1f925b[_0x3ca69a(0x20b)],'top':_0x1ea49e['y']+_0x12cd20-_0x1f925b['adjHandleSize'],'adjName':_0x3e36ad,'shapeId':this[_0x3ca69a(0x1fe)],'unitId':_0x390181,'subUnitId':_0x3a5a77,'width':_0x1f925b[_0x3ca69a(0x20b)]+0x8,'height':_0x1f925b[_0x3ca69a(0x20b)]+0x8,'zIndex':_0x19be61+0x1,'evented':!0x0});this['_adjustPointObjects']['push'](_0x2e79cc),this[_0x3ca69a(0x134)](_0x2e79cc,_0x4a3a2a,_0x3e36ad),_0x4a3a2a['addObject'](_0x2e79cc,_0x19be61+0x1);}[_0x43e8a4(0x288)](){const _0x344f1f=_0x43e8a4;this[_0x344f1f(0x265)][_0x344f1f(0xd6)](_0x40111b=>_0x40111b['dispose']()),this[_0x344f1f(0x265)]=[];}['_updateAdjustControlPositions'](){const _0x3acdb0=_0x43e8a4;this[_0x3acdb0(0x27f)]();}['_toScenePoint'](_0x2beb00,_0x980c25,_0x3b1330){const _0x4a8f78=_0x43e8a4;let _0x3c573b=_0x7e1ba8[_0x4a8f78(0x142)]([_0x980c25,_0x3b1330]),_0x50ae73=_0x2beb00[_0x4a8f78(0x2ca)](_0x3c573b)??_0x2beb00[_0x4a8f78(0xec)]()[0x0];return(_0x50ae73==null?void 0x0:_0x50ae73['transformVector2SceneCoord'](_0x3c573b))??_0x3c573b;}[_0x43e8a4(0x134)](_0x4419f3,_0x4b6a30,_0xe05f27){const _0x5257a8=_0x43e8a4;this['disposeWithMe'](_0x44b80c(_0x4419f3[_0x5257a8(0x1f4)][_0x5257a8(0xcd)]((_0x52fbbf,_0x2bdb23)=>{const _0x44ed37=_0x5257a8;var _0xf39ab3;let _0x138257=_0x4419f3[_0x44ed37(0xe3)]();this[_0x44ed37(0x143)]=this[_0x44ed37(0x223)](_0x138257['unitId'],_0x138257['subUnitId'],_0x138257['drawingId'],_0xe05f27),this[_0x44ed37(0x24c)]=this[_0x44ed37(0x17f)]['getShapeModel'](_0x138257[_0x44ed37(0xa2)],_0x138257[_0x44ed37(0x2d2)],_0x138257[_0x44ed37(0x198)]);let _0x1904a1=this[_0x44ed37(0x283)](),_0x404121=_0x1904a1==null?void 0x0:_0x1904a1[_0x44ed37(0x260)];if(!_0x1904a1||!_0x404121||!this[_0x44ed37(0x24c)])return;this['_baseShapeLeft']=_0x404121[_0x44ed37(0xaf)]||0x0,this[_0x44ed37(0x116)]=_0x404121[_0x44ed37(0x2b8)]||0x0,this['_baseShapeWidth']=_0x404121[_0x44ed37(0x7d)]||0x0,this[_0x44ed37(0x130)]=_0x404121[_0x44ed37(0x204)]||0x0;let _0x4fd948=!!_0x404121['flipX'],_0x45e49c=!!_0x404121['flipY'],_0x488770=_0x404121[_0x44ed37(0x124)]||0x0,_0x161aa9={...((_0xf39ab3=this['_activeAdjustInfo'])==null?void 0x0:_0xf39ab3['currentAdjustValues'])??{}};this[_0x44ed37(0x1c2)]=!0x0,_0x4b6a30[_0x44ed37(0x17e)](),this[_0x44ed37(0x13d)]=_0x4b6a30[_0x44ed37(0x13f)][_0x44ed37(0xcd)]((_0x35323e,_0x5e5367)=>{const _0x39ef2f=_0x44ed37;var _0xe150cd;if(!this['_isStartAdjusting']||!this[_0x39ef2f(0x24c)]||!this['_activeAdjustInfo'])return;_0x4b6a30[_0x39ef2f(0x17e)](),_0x4b6a30['setCursor'](_0x1b2d0c[_0x39ef2f(0x23b)]);let _0x23aeea=this['_toScenePoint'](_0x4b6a30,_0x35323e[_0x39ef2f(0x165)],_0x35323e[_0x39ef2f(0x1d4)]),_0x42272a=_0x23aeea['x']-this['_baseShapeLeft'],_0x132172=_0x23aeea['y']-this[_0x39ef2f(0x116)];if(_0x488770!==0x0){let _0x5e7d43=this[_0x39ef2f(0x230)]/0x2,_0x592162=this[_0x39ef2f(0x130)]/0x2,_0x2d52b2=_0x488770*Math['PI']/0xb4,_0x230b32=Math['cos'](_0x2d52b2),_0x64f17a=Math[_0x39ef2f(0x67)](_0x2d52b2),_0x27f77d=_0x42272a-_0x5e7d43,_0x5ed496=_0x132172-_0x592162;_0x42272a=_0x5e7d43+(_0x27f77d*_0x230b32+_0x5ed496*_0x64f17a),_0x132172=_0x592162+(-_0x27f77d*_0x64f17a+_0x5ed496*_0x230b32);}_0x4fd948&&(_0x42272a=this[_0x39ef2f(0x230)]-_0x42272a),_0x45e49c&&(_0x132172=this[_0x39ef2f(0x130)]-_0x132172);let _0xd3e714={'left':0x0,'top':0x0,'width':this[_0x39ef2f(0x230)],'height':this['_baseShapeHeight']},_0x43d564=this['_activeShapeModel']['calcAdjValues'](_0xd3e714,{'x':_0x42272a,'y':_0x132172},this[_0x39ef2f(0x143)],_0x4fd948,_0x45e49c);if(Object[_0x39ef2f(0x20d)](_0x43d564)[_0x39ef2f(0x1ee)]!==0x0){for(let [_0x27b4ff,_0x4ad07c]of Object[_0x39ef2f(0xe1)](_0x43d564))this[_0x39ef2f(0x24c)][_0x39ef2f(0xe4)](_0x27b4ff,_0x4ad07c);this['_activeShapeModel'][_0x39ef2f(0x2bc)]({'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']}),(_0xe150cd=this[_0x39ef2f(0x8e)](_0x4b6a30))==null||_0xe150cd[_0x39ef2f(0x11f)](!0x0),this['_activeShapeAdjustPointList']=this[_0x39ef2f(0x133)](_0x138257['unitId'],_0x138257[_0x39ef2f(0x2d2)],_0x138257[_0x39ef2f(0x198)]),this[_0x39ef2f(0x1cb)](),_0x5e5367[_0x39ef2f(0x1ea)]();}}),this[_0x44ed37(0x89)]=_0x4b6a30[_0x44ed37(0x207)][_0x44ed37(0xcd)]((_0x22db44,_0x32a58c)=>{const _0x4feb1e=_0x44ed37;var _0x45a958,_0x4d694b;(_0x45a958=this[_0x4feb1e(0x13d)])==null||_0x45a958[_0x4feb1e(0x28b)](),(_0x4d694b=this['_adjHandlerPointerUp'])==null||_0x4d694b['unsubscribe'](),_0x4b6a30[_0x4feb1e(0xae)]();let _0x56bc40=this[_0x4feb1e(0x143)];if(_0x56bc40&&this[_0x4feb1e(0x24c)]){let _0x23f762={};for(let _0x2b70d4 of Object[_0x4feb1e(0x20d)](_0x56bc40['currentAdjustValues'])){let _0x137aef=this['_activeShapeModel']['getAdjustValueByName'](_0x2b70d4);_0x137aef!==void 0x0&&(_0x23f762[_0x2b70d4]=_0x137aef);}Object['keys'](_0x23f762)[_0x4feb1e(0x1ee)]>0x0&&Yr(this[_0x4feb1e(0x10c)],_0x138257[_0x4feb1e(0xa2)],_0x138257[_0x4feb1e(0x2d2)],_0x138257[_0x4feb1e(0x198)],{'oldShapeData':{'adjustValues':_0x161aa9}},{'adjustValues':_0x23f762});}this[_0x4feb1e(0x143)]=void 0x0,this[_0x4feb1e(0x24c)]=void 0x0,this[_0x4feb1e(0x1c2)]=!0x1,_0x4b6a30[_0x4feb1e(0x1d8)](),_0x32a58c[_0x4feb1e(0x1ea)]();}),_0x2bdb23[_0x44ed37(0x1ea)]();})));}[_0x43e8a4(0x296)](){const _0x56dbe2=_0x43e8a4;let {scene:_0x3a7c15}=this[_0x56dbe2(0xed)],_0xc848f3=_0x3a7c15[_0x56dbe2(0x279)]();this[_0x56dbe2(0xb3)](_0xc848f3[_0x56dbe2(0x2a3)][_0x56dbe2(0x120)](_0x40ffa3=>{const _0x2baf4d=_0x56dbe2;this[_0x2baf4d(0x27f)](),_0x40ffa3[_0x2baf4d(0x7e)]!==null&&_0x40ffa3['objects'][_0x2baf4d(0x73)]===0x1&&_0x40ffa3['objects'][_0x2baf4d(0x22d)]()['next']()[_0x2baf4d(0x152)]instanceof Y&&(this[_0x2baf4d(0x29d)]=!0x0);})),this[_0x56dbe2(0xb3)](_0xc848f3[_0x56dbe2(0x190)][_0x56dbe2(0x120)](()=>{const _0x2d006f=_0x56dbe2;this[_0x2d006f(0x29d)]&&this[_0x2d006f(0x288)]();})),this[_0x56dbe2(0xb3)](_0x3a7c15[_0x56dbe2(0x207)][_0x56dbe2(0xcd)](()=>{const _0x413961=_0x56dbe2;this[_0x413961(0x29d)]&&(this[_0x413961(0x29d)]=!0x1,this[_0x413961(0x27f)]());})),this['disposeWithMe'](_0xc848f3[_0x56dbe2(0xb1)][_0x56dbe2(0x120)](()=>{const _0x4f3899=_0x56dbe2;this[_0x4f3899(0x28c)]&&this[_0x4f3899(0xb2)]&&this['_activeShapeId']&&(this[_0x4f3899(0x16f)]=this[_0x4f3899(0x133)](this[_0x4f3899(0x28c)],this['_subUnitId'],this[_0x4f3899(0x1fe)]),this[_0x4f3899(0x1cb)]());}));}[_0x43e8a4(0x264)](){const _0x2fa4fc=_0x43e8a4;this['disposeWithMe'](this[_0x2fa4fc(0x10c)]['onCommandExecuted'](_0x544928=>{const _0x17d3af=_0x2fa4fc;if(_0x544928['id']!==_0x4aaefb['id'])return;let {unitId:_0x55882b,shapeId:_0x3f31f3}=_0x544928[_0x17d3af(0x132)];_0x55882b===this['_unitId']&&_0x3f31f3===this[_0x17d3af(0x1fe)]&&this['refreshAdjustControls']();})),this[_0x2fa4fc(0xb3)](this[_0x2fa4fc(0x282)][_0x2fa4fc(0x144)][_0x2fa4fc(0x120)](_0x3687c8=>{const _0x4cc5d3=_0x2fa4fc;if(_0x3687c8[_0x4cc5d3(0x1ee)]===0x1){let _0xe2d1e4=_0x3687c8[0x0],_0x15177d=this[_0x4cc5d3(0x282)][_0x4cc5d3(0xfd)](_0xe2d1e4);if((_0x15177d==null?void 0x0:_0x15177d[_0x4cc5d3(0x119)])===_0x1652cd[_0x4cc5d3(0x156)]){this[_0x4cc5d3(0x1fe)]=_0xe2d1e4[_0x4cc5d3(0x198)],this[_0x4cc5d3(0x28c)]=_0xe2d1e4[_0x4cc5d3(0xa2)],this[_0x4cc5d3(0xb2)]=_0xe2d1e4[_0x4cc5d3(0x2d2)],this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](_0xe2d1e4[_0x4cc5d3(0xa2)],_0xe2d1e4[_0x4cc5d3(0x2d2)],_0xe2d1e4[_0x4cc5d3(0x198)]),this[_0x4cc5d3(0x288)](),this[_0x4cc5d3(0x27f)]();return;}}this[_0x4cc5d3(0x1fe)]=null,this[_0x4cc5d3(0x16f)]=void 0x0,this[_0x4cc5d3(0x28c)]=null,this[_0x4cc5d3(0xb2)]=null,this[_0x4cc5d3(0x288)]();})),this[_0x2fa4fc(0xb3)](_0x3018f6(this[_0x2fa4fc(0x282)][_0x2fa4fc(0x261)],this[_0x2fa4fc(0x282)][_0x2fa4fc(0x1c7)])[_0x2fa4fc(0x120)](_0x434001=>{const _0x190641=_0x2fa4fc;var _0x4d2c8d;let _0x368440=_0x434001[_0x190641(0x2d0)](_0x3b2181=>_0x3b2181['drawingId']===this[_0x190641(0x1fe)]&&_0x3b2181['unitId']===this['_unitId']&&_0x3b2181[_0x190641(0x2d2)]===this[_0x190641(0xb2)]);_0x368440&&((_0x4d2c8d=this[_0x190641(0x282)][_0x190641(0xfd)](_0x368440))==null?void 0x0:_0x4d2c8d[_0x190641(0x119)])===_0x1652cd['DRAWING_SHAPE']&&this[_0x190641(0x23d)](!0x0);})),this['disposeWithMe'](this[_0x2fa4fc(0x282)][_0x2fa4fc(0xa4)][_0x2fa4fc(0x120)](_0x1d4ce8=>{const _0x2a9efe=_0x2fa4fc;for(let _0x2e8751 of _0x1d4ce8)this[_0x2a9efe(0x1fe)]===_0x2e8751[_0x2a9efe(0x198)]&&(this[_0x2a9efe(0x1fe)]=null,this[_0x2a9efe(0x16f)]=void 0x0,this[_0x2a9efe(0x28c)]=null,this[_0x2a9efe(0xb2)]=null,this[_0x2a9efe(0x288)]());}));}};Ji=q([K(0x1,_0x4ed84c),K(0x2,_0x376ec2(_0x3e6ec4)),K(0x3,_0x5d4fd5)],Ji);let X=class extends _0x143425{constructor(_0x50fcf2,_0x1e56de){const _0xe5532b=_0x43e8a4;super(),this['_permissionService']=_0x50fcf2,this[_0xe5532b(0xf6)]=_0x1e56de,J(this,_0xe5532b(0x281),new _0xe789cb(null)),J(this,_0xe5532b(0x80),this[_0xe5532b(0x281)][_0xe5532b(0x15c)]()),J(this,_0xe5532b(0x8a),new _0xe789cb(!0x1)),J(this,_0xe5532b(0x159),this[_0xe5532b(0x8a)][_0xe5532b(0x15c)]()),J(this,'_completionFrame',void 0x0),this[_0xe5532b(0xb3)](this[_0xe5532b(0x218)][_0xe5532b(0x10a)][_0xe5532b(0x120)](()=>{const _0x31dc6a=_0xe5532b;let _0x545729=this[_0x31dc6a(0x1a2)]();_0x545729!=null&&_0x545729[_0x31dc6a(0x1b4)]&&!this[_0x31dc6a(0x219)](_0x545729)&&this[_0x31dc6a(0x15a)](null);}));}[_0x43e8a4(0xb0)](){const _0x54ac15=_0x43e8a4;this['_clearCompletionFrame'](),this[_0x54ac15(0x281)][_0x54ac15(0xbb)](null),this[_0x54ac15(0x281)][_0x54ac15(0x1c1)](),this[_0x54ac15(0x8a)][_0x54ac15(0xbb)](!0x1),this[_0x54ac15(0x8a)][_0x54ac15(0x1c1)](),super[_0x54ac15(0xb0)]();}[_0x43e8a4(0x15a)](_0x5db0ef){const _0x1585fe=_0x43e8a4;(_0x5db0ef==null||!_0x5db0ef['visible']||this['_canEdit'](_0x5db0ef))&&(this[_0x1585fe(0x82)](),this[_0x1585fe(0x281)][_0x1585fe(0xbb)](_0x5db0ef),(_0x5db0ef==null||_0x5db0ef[_0x1585fe(0x1b4)]&&this[_0x1585fe(0x8a)][_0x1585fe(0xd4)]())&&this['_onSavingEditorData$']['next'](!0x1));}[_0x43e8a4(0xa7)](_0x2973ac){const _0x274769=_0x43e8a4;this['_onSavingEditorData$'][_0x274769(0xbb)](_0x2973ac);}['getEditing'](){return this['_editingParams$']['getValue']();}[_0x43e8a4(0x219)](_0x2d1f61){const _0x25c08b=_0x43e8a4;let _0x41acfc=this[_0x25c08b(0xf6)][_0x25c08b(0x254)](_0x2d1f61[_0x25c08b(0xa2)],_0x37d2f3[_0x25c08b(0x10d)]);if(!_0x41acfc)return!0x0;let _0x25149e=_0x34c0dc(_0x41acfc,_0x2d1f61[_0x25c08b(0x1a5)]);return _0xaad49(this['_permissionService'],_0x2d1f61['unitId'],[..._0x1ed368(_0x41acfc,_0x25149e,_0x25c08b(0x292),_0x2d1f61[_0x25c08b(0x1a5)]),_0x17c75c(_0x25149e,_0x25c08b(0x292),_0x2d1f61['shapeId'])]);}['completeEditing'](_0x40e332){const _0x4fb66e=_0x43e8a4;let _0x1f4e90=this[_0x4fb66e(0x1a2)]();_0x1f4e90&&this[_0x4fb66e(0x25e)]===void 0x0&&(this[_0x4fb66e(0xa7)](!0x0),this[_0x4fb66e(0x25e)]=requestAnimationFrame(()=>{const _0x3b8b64=_0x4fb66e;this[_0x3b8b64(0x25e)]=void 0x0,this[_0x3b8b64(0x1a2)]()===_0x1f4e90&&this[_0x3b8b64(0x15a)](null);}));}[_0x43e8a4(0x82)](){const _0x226642=_0x43e8a4;this[_0x226642(0x25e)]!==void 0x0&&(cancelAnimationFrame(this[_0x226642(0x25e)]),this['_completionFrame']=void 0x0);}[_0x43e8a4(0x8b)](){const _0x5dc6d5=_0x43e8a4;this[_0x5dc6d5(0x1a2)]()&&this[_0x5dc6d5(0x15a)](null);}};X=q([K(0x0,_0x1b33f3),K(0x1,_0x58ad01)],X);function Yi(_0x3f66b3){const _0x7f9fbe=_0x43e8a4;return _0x3f66b3['behindText']===!0x0||_0x3f66b3['behindText']===_0x2eeb60[_0x7f9fbe(0x28f)]||_0x3f66b3[_0x7f9fbe(0x206)]===_0x5e65d5['WRAP_NONE']&&_0x3f66b3[_0x7f9fbe(0x7f)]===_0x2eeb60[_0x7f9fbe(0x28f)]?_0x4df301-0x1:_0x19be61;}let Z=class extends _0x143425{constructor(_0x1923d4,_0x51911b,_0xa97061,_0x53d162,_0x30341a,_0x5a6cc0,_0x233e7d){const _0x1aab36=_0x43e8a4;super(),this['_drawingManagerService']=_0x1923d4,this[_0x1aab36(0x17f)]=_0x51911b,this[_0x1aab36(0x267)]=_0xa97061,this[_0x1aab36(0x2c1)]=_0x53d162,this['_urlImageService']=_0x30341a,this[_0x1aab36(0x72)]=_0x5a6cc0,this['_shapeFormulaService']=_0x233e7d,J(this,_0x1aab36(0x77),new Map()),this['disposeWithMe'](this[_0x1aab36(0x2a8)][_0x1aab36(0x26e)][_0x1aab36(0x120)](_0x11339f=>{const _0x473a72=_0x1aab36;var _0x4a7416;(_0x4a7416=this['_formulaShapes'][_0x473a72(0x7a)](this[_0x473a72(0x19b)](_0x11339f[_0x473a72(0xa2)],_0x11339f[_0x473a72(0x2d2)],_0x11339f['shapeId'])))==null||_0x4a7416['forEach'](_0xc31a67=>_0xc31a67[_0x473a72(0xc4)](_0x11339f[_0x473a72(0x1a3)],_0x11339f[_0x473a72(0x2af)]));})),this['disposeWithMe'](this['_drawingManagerService'][_0x1aab36(0xa4)][_0x1aab36(0x120)](_0x37924d=>{_0x37924d['forEach'](_0x33126f=>{const _0x492bae=_0xe027;this['_shapeFormulaService']['unregister']({'unitId':_0x33126f[_0x492bae(0xa2)],'subUnitId':_0x33126f[_0x492bae(0x2d2)],'shapeId':_0x33126f[_0x492bae(0x198)]}),this['_formulaShapes']['delete'](this['_formulaKey'](_0x33126f[_0x492bae(0xa2)],_0x33126f[_0x492bae(0x2d2)],_0x33126f['drawingId']));});}));}[_0x43e8a4(0xa6)](_0x22e251,_0xac98d5){const _0x4b3537=_0x43e8a4;let {transform:_0x3b6196,drawingType:_0x8a0778,srcRect:_0x47b1fe,prstGeom:_0x531408,groupId:_0x158756,unitId:_0x5063b2,subUnitId:_0x5140f6,drawingId:_0x396d2d,isMultiTransform:_0x4c29df,transforms:_0x344aee,hidden:_0x5a94bc,selectable:_0xb2fa72}=_0x22e251;if(_0x8a0778!==_0x1652cd[_0x4b3537(0x156)]||!this[_0x4b3537(0x282)][_0x4b3537(0x270)]()||_0x3b6196==null)return;let _0x1f0008=this[_0x4b3537(0x282)]['getDrawingEditable'](),_0x46b18b=_0x4c29df&&_0x344aee?_0x344aee:[_0x3b6196],_0xb3e4aa=[];for(let [_0xe8621c,_0x4bbfce]of _0x46b18b[_0x4b3537(0xe1)]()){let {left:_0x3563d2,top:_0x53307b,width:_0x2db7bf,height:_0x59577f,angle:_0x21d48a,flipX:_0x17e465,flipY:_0x227ac4,skewX:_0x37faf9,skewY:_0x3a2df1}=_0x4bbfce,_0x3fda6e=_0x33c05c({'unitId':_0x5063b2,'subUnitId':_0x5140f6,'drawingId':_0x396d2d},_0x4c29df?_0xe8621c:void 0x0),_0x3536f8=_0xac98d5[_0x4b3537(0x17b)](_0x3fda6e);if(_0x3536f8!=null){let _0x1a576d={'unitId':_0x5063b2,'subUnitId':_0x5140f6,'shapeId':_0x396d2d};_0x3536f8 instanceof Y&&this[_0x4b3537(0x169)](_0x3536f8,_0x1a576d),_0x3536f8['transformByState']({'left':_0x3563d2,'top':_0x53307b,'width':_0x2db7bf,'height':_0x59577f,'angle':_0x21d48a,'flipX':_0x17e465,'flipY':_0x227ac4,'skewX':_0x37faf9,'skewY':_0x3a2df1});continue;}let _0x6993e5=this[_0x4b3537(0x282)][_0x4b3537(0x1e5)](_0x5063b2,_0x5140f6),_0x5b7ca3=_0x6993e5['indexOf'](_0x396d2d);if(_0xac98d5[_0x4b3537(0x17b)](_0x3fda6e)||!this[_0x4b3537(0x282)][_0x4b3537(0x270)]())continue;let _0xa3e0e2=this['_docsShapeService'][_0x4b3537(0x100)](_0x5063b2,_0x5140f6,_0x396d2d);if(!_0xa3e0e2)continue;let _0x243f71=_0x3a8d31(_0xa3e0e2[_0x4b3537(0x2d1)]())?{..._0x3257bd,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x3257bd,_0x3a6e88=_0xa3e0e2[_0x4b3537(0x299)]()[_0x4b3537(0x19c)],_0x57fe5c={'unitId':_0x5063b2,'subUnitId':_0x5140f6,'shapeId':_0x396d2d};_0x3a6e88&&this[_0x4b3537(0x2a8)]['register'](_0x57fe5c,_0x3a6e88);let _0x5383c7=new Y(_0x3fda6e,{..._0x4bbfce,'zIndex':_0x5b7ca3===-0x1?_0x6993e5[_0x4b3537(0x1ee)]-0x1:_0x5b7ca3,'shapeModel':_0xa3e0e2,'localeService':this[_0x4b3537(0x267)],'shapeId':_0x396d2d,'unitId':_0x5063b2,'subUnitId':_0x5140f6,'visible':_0x5a94bc!==!0x0,'evented':_0xb2fa72!==!0x1,'formulaPresentation':_0x3a6e88?this[_0x4b3537(0x2a8)][_0x4b3537(0x181)](_0x57fe5c):void 0x0,'animateFormulaPresentation':(_0x3a6e88==null?void 0x0:_0x3a6e88[_0x4b3537(0x2af)])!==!0x1,'transformerConfig':_0x243f71});if(_0x3a6e88){let _0x9090ca=this[_0x4b3537(0x19b)](_0x5063b2,_0x5140f6,_0x396d2d),_0x10b547=this[_0x4b3537(0x77)][_0x4b3537(0x7a)](_0x9090ca)??new Set();_0x10b547[_0x4b3537(0x106)](_0x5383c7),this['_formulaShapes'][_0x4b3537(0x290)](_0x9090ca,_0x10b547);}this['disposeWithMe'](_0x44b80c(_0x5383c7['onDblclick$']['subscribeEvent']((_0x588669,_0x113e0b)=>{const _0x242f92=_0x4b3537;_0xa3e0e2[_0x242f92(0x2aa)]()||_0x3a6e88||(this[_0x242f92(0x72)][_0x242f92(0x15a)]({'visible':!0x0,'unitId':_0x5063b2,'subUnitId':_0x5140f6,'shapeId':_0x396d2d,'shapeKey':_0x5383c7[_0x242f92(0xef)]}),_0x113e0b[_0x242f92(0x1ea)]());}))),_0xac98d5[_0x4b3537(0x157)](_0x5383c7,Yi(_0x22e251)),_0x1f0008&&_0xac98d5[_0x4b3537(0xfe)](_0x5383c7),_0x158756&&_0x54a7ec({'drawingId':_0x158756,'unitId':_0x5063b2,'subUnitId':_0x5140f6},_0x5383c7,_0xac98d5,this[_0x4b3537(0x282)],_0x4c29df?_0xe8621c:void 0x0),_0x531408!=null&&_0x5383c7[_0x4b3537(0x1ef)](_0x531408),_0x47b1fe!=null&&_0x5383c7[_0x4b3537(0x1d7)](_0x47b1fe),this[_0x4b3537(0x215)](_0x5383c7,_0xa3e0e2[_0x4b3537(0x299)]()),_0xb3e4aa[_0x4b3537(0x241)](_0x5383c7);}return _0xb3e4aa;}[_0x43e8a4(0x19b)](_0x55a267,_0x1de76c,_0x5f56a5){return _0x55a267+'\x00'+_0x1de76c+'\x00'+_0x5f56a5;}[_0x43e8a4(0x169)](_0x53007b,_0x5db5c5){const _0x22462d=_0x43e8a4;let _0x332cab=this[_0x22462d(0x17f)][_0x22462d(0x100)](_0x5db5c5[_0x22462d(0xa2)],_0x5db5c5[_0x22462d(0x2d2)],_0x5db5c5['shapeId']),_0x497bec=_0x332cab==null?void 0x0:_0x332cab[_0x22462d(0x299)]()['formulaBinding'],_0x3ce472=this[_0x22462d(0x19b)](_0x5db5c5[_0x22462d(0xa2)],_0x5db5c5[_0x22462d(0x2d2)],_0x5db5c5[_0x22462d(0x1a5)]);if(_0x497bec){this['_shapeFormulaService'][_0x22462d(0x14c)](_0x5db5c5,_0x497bec);let _0x5aa5dd=this['_formulaShapes'][_0x22462d(0x7a)](_0x3ce472)??new Set();_0x5aa5dd[_0x22462d(0x106)](_0x53007b),this[_0x22462d(0x77)][_0x22462d(0x290)](_0x3ce472,_0x5aa5dd);}else{var _0x293ea3;this[_0x22462d(0x2a8)]['unregister'](_0x5db5c5),(_0x293ea3=this[_0x22462d(0x77)][_0x22462d(0x7a)](_0x3ce472))==null||_0x293ea3[_0x22462d(0x13c)](_0x53007b);}_0x53007b['setFormulaPresentation'](_0x497bec?this[_0x22462d(0x2a8)][_0x22462d(0x181)](_0x5db5c5):void 0x0,(_0x497bec==null?void 0x0:_0x497bec[_0x22462d(0x2af)])!==!0x1);}[_0x43e8a4(0x1af)](_0x3201ff){const _0x387769=_0x43e8a4;let _0x3b3a8d=_0x3201ff[_0x387769(0x19d)][_0x387769(0x299)](),_0x563a14=_0x3b3a8d[_0x387769(0x175)];!_0x563a14||_0x563a14[_0x387769(0x108)]!==_0x5ea484[_0x387769(0x127)]||!_0x563a14[_0x387769(0x1f6)]?_0x3201ff[_0x387769(0x205)](void 0x0):this[_0x387769(0x215)](_0x3201ff,_0x3b3a8d);}[_0x43e8a4(0x215)](_0x423cc4,_0x136275){const _0x2ce3d5=_0x43e8a4;let _0x2b7a0d=_0x136275['fill'];if(!_0x2b7a0d||_0x2b7a0d[_0x2ce3d5(0x108)]!==_0x5ea484[_0x2ce3d5(0x127)]||!_0x2b7a0d['fillImageSource'])return;let _0x3d039f=_0x2b7a0d[_0x2ce3d5(0x1f6)],_0x268e52=_0x2b7a0d['fillImageSourceType']??_0x3423a9[_0x2ce3d5(0x2be)],_0x3e798e=this[_0x2ce3d5(0x2c1)][_0x2ce3d5(0x109)](_0x3d039f,_0x268e52);_0x3e798e?_0x423cc4[_0x2ce3d5(0x205)](_0x3e798e):this[_0x2ce3d5(0x6f)](_0x423cc4,_0x3d039f,_0x268e52);}async['_loadAndSetImage'](_0x43e42c,_0x2bf887,_0x155d6c){const _0x2c7625=_0x43e8a4;let _0x334087;try{if(_0x155d6c===_0x3423a9['UUID'])_0x334087=await this[_0x2c7625(0x2c1)][_0x2c7625(0xa1)](_0x2bf887);else{if(_0x155d6c===_0x3423a9[_0x2c7625(0x2be)])try{_0x334087=await this[_0x2c7625(0x196)][_0x2c7625(0xa1)](_0x2bf887);}catch{_0x334087=_0x2bf887;}else _0x334087=_0x2bf887;}}catch(_0x9ea658){console[_0x2c7625(0xc9)](_0x2c7625(0x2a4),_0x9ea658);return;}let _0x29c2ba=new window[(_0x2c7625(0x236))]();_0x29c2ba[_0x2c7625(0x1d9)]=()=>{const _0x15f66b=_0x2c7625;this[_0x15f66b(0x2c1)][_0x15f66b(0x266)](_0x2bf887,_0x155d6c,_0x29c2ba),_0x43e42c['setFillImage'](_0x29c2ba);},_0x29c2ba[_0x2c7625(0x141)]=()=>{const _0x3f41e1=_0x2c7625;console['error'](_0x3f41e1(0xbc),_0x2bf887);},_0x29c2ba['src']=_0x334087;}};Z=q([K(0x0,_0x4ed84c),K(0x1,_0x376ec2(_0x3e6ec4)),K(0x2,_0x376ec2(_0x474b31)),K(0x3,_0x42c7d6),K(0x4,_0x1d2e00),K(0x5,_0x376ec2(X)),K(0x6,_0x376ec2(_0x1fb743))],Z);let Xi=class extends _0x143425{constructor(_0x516153,_0xa0bddf,_0x1ff762){const _0x355ffd=_0x43e8a4;super(),this[_0x355ffd(0x125)]=_0x516153,this['_drawingManagerService']=_0xa0bddf,this['_shapeRenderController']=_0x1ff762,this[_0x355ffd(0x220)]();}[_0x43e8a4(0x220)](){const _0x42fdd1=_0x43e8a4;this['disposeWithMe'](this['_docPrintInterceptorService']['interceptor']['intercept'](this[_0x42fdd1(0x125)]['interceptor'][_0x42fdd1(0x1b9)]()[_0x42fdd1(0x25f)],{'handler':(_0x3983d4,_0xbd4445,_0x4c4b9e)=>{const _0x59ff4e=_0x42fdd1;var _0x4a18aa;let {unitId:_0x3ac9bd,scene:_0x58f18c,skeleton:_0x2d2e00}=_0xbd4445,{pageIndex:_0xbd78a9}=_0xbd4445,_0x38fdb6=(_0x4a18aa=this[_0x59ff4e(0x282)][_0x59ff4e(0x129)](_0x3ac9bd))==null?void 0x0:_0x4a18aa[_0x3ac9bd],_0x2076ef=Zi(this[_0x59ff4e(0x125)],_0x2d2e00,_0xbd78a9);return _0x38fdb6==null||_0x38fdb6[_0x59ff4e(0x251)][_0x59ff4e(0xd6)](_0x391623=>{const _0x4d7e32=_0x59ff4e;if(_0x2076ef&&!_0x2076ef[_0x4d7e32(0x1da)](_0x391623))return;let _0x35414a=_0x38fdb6[_0x4d7e32(0x1c0)][_0x391623];_0x35414a[_0x4d7e32(0x119)]===_0x1652cd[_0x4d7e32(0x156)]&&!_0x35414a[_0x4d7e32(0x9c)]&&this['_shapeRenderController'][_0x4d7e32(0xa6)](_0x35414a,_0x58f18c);}),_0x4c4b9e(_0x3983d4);}}));}};Xi=q([K(0x0,_0x376ec2(_0x3197e2)),K(0x1,_0x4ed84c),K(0x2,_0x376ec2(Z))],Xi);function Zi(_0x21f2f2,_0x34a9d8,_0x2cc0e6){const _0x2822af=_0x43e8a4;var _0x59986c,_0xb48571;let _0x5f49d0=_0x21f2f2;if(_0x5f49d0[_0x2822af(0x148)])return _0x5f49d0[_0x2822af(0x148)](_0x34a9d8,_0x2cc0e6);let _0x2f90dc=_0x34a9d8[_0x2822af(0x238)]();if(!_0x2f90dc||_0x2f90dc['pages'][_0x2822af(0x1ee)]<=0x1||_0x2cc0e6==null)return null;let _0x2f2b48=new Set(),_0x1b89d2=_0x2f90dc[_0x2822af(0xbf)][_0x2cc0e6];if(!_0x1b89d2)return _0x2f2b48;Qi(_0x1b89d2,_0x2f2b48);let _0x319ac1=(_0x59986c=_0x2f90dc[_0x2822af(0x208)][_0x2822af(0x7a)](_0x1b89d2[_0x2822af(0x2b1)]))==null?void 0x0:_0x59986c['get'](_0x1b89d2[_0x2822af(0x115)]??_0x1b89d2['pageWidth']),_0x291b36=(_0xb48571=_0x2f90dc[_0x2822af(0x1e7)][_0x2822af(0x7a)](_0x1b89d2['footerId']))==null?void 0x0:_0xb48571[_0x2822af(0x7a)](_0x1b89d2['footerLayoutKey']??_0x1b89d2[_0x2822af(0xf4)]);return _0x319ac1&&Qi(_0x319ac1,_0x2f2b48),_0x291b36&&Qi(_0x291b36,_0x2f2b48),_0x2f2b48;}function Qi(_0x4b6358,_0x5c7f8d){const _0x2d054e=_0x43e8a4;for(let _0x2933fd of _0x4b6358[_0x2d054e(0x275)]['keys']())_0x5c7f8d[_0x2d054e(0x106)](_0x2933fd);for(let _0x2f2027 of _0x4b6358[_0x2d054e(0x1e9)][_0x2d054e(0x22d)]())for(let _0x204e05 of _0x2f2027['rows'])for(let _0xca97a0 of _0x204e05['cells'])Qi(_0xca97a0,_0x5c7f8d);}function $i(_0x53954d){return _0x5619d4(Ur,{..._0x53954d,'PickerComponent':_0x8f16d9});}function ea(){const _0x41b4e6=_0x43e8a4;let _0xa64c1b=_0x2f1968(_0x474b31),_0x424449=Br(),[_0x529dfc,_0x4881f2]=_0x1f778c(!0x1);return _0x48a5b6('div',{'className':_0x41b4e6(0x27c),'children':[_0x5619d4(_0x478cdc,{'title':_0xa64c1b['t'](_0x41b4e6(0x214)),'aria-expanded':_0x529dfc,'variant':'subtle','trailing':_0x5619d4(_0x529dfc?_0x383f97:_0x5df7dc,{}),'onClick':()=>_0x4881f2(_0x3a8fa1=>!_0x3a8fa1)}),_0x529dfc&&_0x5619d4(_0x8f16d9,{'excludeGroups':[_0x29b383[_0x41b4e6(0x8c)]],'onShapeClick':_0x1cbe0e=>{_0x424449(_0x1cbe0e),_0x4881f2(!0x1);}})]});}function ta(_0x70166e){const _0x30fae9=_0x43e8a4;return _0x70166e[_0x30fae9(0x2a9)]()||void 0x0;}function na(_0x37ca02,_0x214ae8,_0x4d91c5){const _0x24084a=_0x43e8a4;var _0x20cf08,_0x296dcc;return((_0x20cf08=_0x37ca02['name'])==null?void 0x0:_0x20cf08[_0x24084a(0x2a9)]())||((_0x296dcc=_0x37ca02[_0x24084a(0x147)])==null?void 0x0:_0x296dcc[_0x24084a(0x2a9)]())||_0x4d91c5['t']('drawing-ui.objectListPanel.typeNames.'+_0x36d1e2(_0x37ca02[_0x24084a(0x119)]))+'\x20'+(_0x214ae8+0x1);}function ra({PanelComponent:_0xebfc1b=_0xb10e3b}){const _0x329c6f=_0x43e8a4;let _0x30d714=_0x2f1968(_0x474b31),_0x176a2a={'title':_0x30d714['t'](_0x329c6f(0x16d)),'empty':_0x30d714['t'](_0x329c6f(0x2b9)),'showAll':_0x30d714['t'](_0x329c6f(0x222)),'hideAll':_0x30d714['t'](_0x329c6f(0x173)),'lockAll':_0x30d714['t'](_0x329c6f(0x162)),'unlockAll':_0x30d714['t'](_0x329c6f(0x1d2)),'moveForward':_0x30d714['t']('drawing-ui.objectListPanel.moveForward'),'moveBackward':_0x30d714['t'](_0x329c6f(0x1ca)),'close':_0x30d714['t'](_0x329c6f(0x87)),'show':_0x30d714['t']('drawing-ui.objectListPanel.show'),'hide':_0x30d714['t'](_0x329c6f(0x153)),'lock':_0x30d714['t'](_0x329c6f(0x104)),'unlock':_0x30d714['t'](_0x329c6f(0x23a)),'lockHint':_0x30d714['t']('drawing-ui.objectListPanel.lockHint'),'unlockHint':_0x30d714['t'](_0x329c6f(0x14f)),'name':_0x30d714['t'](_0x329c6f(0x128)),'nameInput':_0x30d714['t'](_0x329c6f(0x17c)),'description':_0x30d714['t'](_0x329c6f(0x1be)),'descriptionPlaceholder':_0x30d714['t'](_0x329c6f(0x201)),'details':_0x30d714['t']('drawing-ui.objectListPanel.details'),'noSelection':_0x30d714['t']('drawing-ui.objectListPanel.noSelection'),'locate':_0x30d714['t'](_0x329c6f(0x252)),'expand':_0x30d714['t'](_0x329c6f(0x24b)),'collapse':_0x30d714['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0x30d714['t'](_0x329c6f(0x1a7)),'search':_0x30d714['t'](_0x329c6f(0x294)),'filterAll':_0x30d714['t'](_0x329c6f(0x13b)),'filterHidden':_0x30d714['t']('drawing-ui.objectListPanel.filterHidden'),'filterLocked':_0x30d714['t']('drawing-ui.objectListPanel.filterLocked'),'sectionCanvas':_0x30d714['t']('drawing-ui.objectListPanel.sectionCanvas'),'sectionFloating':_0x30d714['t']('drawing-ui.objectListPanel.sectionFloating')},_0x169b6e=_0x2f1968(_0x5d4fd5),_0x7f0384=_0x2f1968(_0x58ad01),_0x5e998d=_0x2f1968(_0x3b1588),_0x5c0dbf=_0x2f1968(_0x4ed84c),_0x4c6b2b=_0x2f1968(_0x20175c),[,_0x2177ae]=_0x597582(_0x168ad8=>_0x168ad8+0x1,0x0),_0x3572fa=_0x7f0384['getCurrentUnitOfType'](_0x37d2f3[_0x329c6f(0x10d)]),_0x1a9763=(_0x3572fa==null?void 0x0:_0x3572fa[_0x329c6f(0xe2)]())??'',_0x24a4da=_0x1a9763,_0x2ff29c=_0x24248b(()=>_0x5c0dbf[_0x329c6f(0x144)],_0x5c0dbf['getFocusDrawings'](),!0x1,[_0x5c0dbf]);_0x5b0cfd(()=>{const _0x4224a3=_0x329c6f;let _0xfa0943=_0x169b6e[_0x4224a3(0x1b3)](()=>_0x2177ae());return()=>_0xfa0943[_0x4224a3(0xb0)]();},[_0x169b6e]);let _0x1a4820=_0x1a9763?_0x5e998d[_0x329c6f(0xaa)](_0x1a9763,_0x24a4da):{},_0x450080=(_0x1a9763?_0x5e998d[_0x329c6f(0x1e5)](_0x1a9763,_0x24a4da):[])[_0x329c6f(0x1e4)](_0x3709f0=>_0x1a4820[_0x3709f0])[_0x329c6f(0x121)](_0x35f479=>!!_0x35f479)['reverse'](),_0x350258=_0x450080[_0x329c6f(0x6b)]((_0x49faae,_0x88a92b)=>(_0x49faae[_0x3f7cdb(_0x88a92b[_0x329c6f(0x119)])]+=0x1,_0x49faae),{'canvas':0x0,'floating':0x0}),_0x501281={'canvas':0x0,'floating':0x0},_0x336369=_0x450080[_0x329c6f(0x1e4)]((_0x5ac944,_0x52220b)=>{const _0x36619d=_0x329c6f;let _0x1242a2=_0x3f7cdb(_0x5ac944[_0x36619d(0x119)]),_0x5284cf=_0x1242a2===_0x1722f4,_0x284ba6=_0x501281[_0x1242a2]++;return{'id':_0x5ac944['drawingId'],'name':na(_0x5ac944,_0x52220b,_0x30d714),'description':_0x5ac944['description'],'visible':_0x5ac944['hidden']!==!0x0,'selectable':_0x5ac944[_0x36619d(0x295)]!==!0x1,'sectionId':_0x1242a2,'sectionTitle':_0x5284cf?_0x176a2a[_0x36619d(0x167)]:_0x176a2a[_0x36619d(0x101)],'capabilities':_0x5284cf?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x5284cf&&_0x284ba6>0x0,'canMoveBackward':!_0x5284cf&&_0x284ba6<_0x350258['canvas']-0x1,'canReorder':!_0x5284cf};}),_0x13b8f6=_0x39da17(()=>(_0x2ff29c??[])['filter'](_0x43ea5f=>_0x43ea5f[_0x329c6f(0xa2)]===_0x1a9763&&_0x43ea5f['subUnitId']===_0x24a4da)[_0x329c6f(0x1e4)](_0xf09900=>_0xf09900[_0x329c6f(0x198)]),[_0x2ff29c,_0x24a4da,_0x1a9763]),_0x1fa029=_0x13b8f6[_0x13b8f6[_0x329c6f(0x1ee)]-0x1]??null,_0x3c2577=_0x381a15=>_0x5e998d[_0x329c6f(0xfd)]({'unitId':_0x1a9763,'subUnitId':_0x24a4da,'drawingId':_0x381a15})??null,_0x6ce5dd=async _0xe908c4=>{const _0x26da4e=_0x329c6f;_0x1a9763&&_0xe908c4['length']&&await _0x169b6e[_0x26da4e(0x2cf)](_0x4054f5['id'],{'unitId':_0x1a9763,'patches':_0xe908c4});},_0x4a05fc=(_0x2514b0,_0x2359f2)=>{const _0x3fb134=_0x329c6f;if(!_0x1a9763)return;let _0x4a564b=_0x2359f2?_0x13b8f6['includes'](_0x2514b0)?_0x13b8f6['filter'](_0x333667=>_0x333667!==_0x2514b0):[..._0x13b8f6,_0x2514b0]:[_0x2514b0];_0x169b6e[_0x3fb134(0x27a)](_0x342bee['id'],_0x4a564b[_0x3fb134(0x1e4)](_0x3e0f74=>({'unitId':_0x1a9763,'subUnitId':_0x24a4da,'drawingId':_0x3e0f74})));let _0x2a2a10=_0x4a564b[_0x4a564b['length']-0x1];_0x2a2a10?_0x2aeb4f(_0x4c6b2b,{'unitId':_0x1a9763,'subUnitId':_0x24a4da,'drawingId':_0x2a2a10}):_0x482003(_0x4c6b2b,_0x1a9763);},_0x2f9b39=async(_0x5c6028,_0x19f5e9)=>{const _0x1e89b1=_0x329c6f;await _0x6ce5dd(_0x5c6028['map'](_0x22aa54=>_0x3c2577(_0x22aa54))[_0x1e89b1(0x121)](_0x1c6309=>!!_0x1c6309)['filter'](_0x58b48c=>_0x58b48c[_0x1e89b1(0x9c)]!==!0x0!==_0x19f5e9)[_0x1e89b1(0x1e4)](_0x4e4741=>({'drawingId':_0x4e4741['drawingId'],'hidden':!_0x19f5e9})));},_0x1b7b41=async(_0x1380ed,_0x10842b)=>{const _0x4c54e6=_0x329c6f;await _0x6ce5dd(_0x1380ed[_0x4c54e6(0x1e4)](_0x16eca2=>_0x3c2577(_0x16eca2))['filter'](_0x281814=>!!_0x281814)[_0x4c54e6(0x121)](_0x88aa4f=>_0x88aa4f['selectable']!==!0x1!==_0x10842b)[_0x4c54e6(0x1e4)](_0x2bd54e=>({'drawingId':_0x2bd54e['drawingId'],'selectable':_0x10842b})));},_0x8dc47d=_0xda5315=>{const _0xf32a83=_0x329c6f;let _0x31e317=_0x3c2577(_0xda5315);if(_0x31e317)return _0x1b7b41([_0xda5315],_0x31e317[_0xf32a83(0x295)]===!0x1);},_0x3e2c52=async(_0x19866e,_0x426ac6)=>{const _0x3e9502=_0x329c6f;let _0x3819ba=_0x3c2577(_0x19866e),_0x24ff3f=ta(_0x426ac6);!_0x3819ba||(_0x3819ba['name']??void 0x0)===_0x24ff3f&&(_0x3819ba[_0x3e9502(0x147)]||void 0x0)===_0x24ff3f||await _0x6ce5dd([{'drawingId':_0x19866e,'name':_0x24ff3f,'title':_0x24ff3f}]);},_0x3acf37=async(_0x1dbb7d,_0x26a0fe)=>{const _0x48e74d=_0x329c6f;let _0x372e0d=_0x3c2577(_0x1dbb7d),_0xa4e0a8=ta(_0x26a0fe);_0x372e0d&&(_0x372e0d[_0x48e74d(0x224)]??void 0x0)!==_0xa4e0a8&&await _0x6ce5dd([{'drawingId':_0x1dbb7d,'description':_0xa4e0a8}]);},_0x302ebf=async(_0x4b2897,_0x5ed68b)=>{const _0xde65ff=_0x329c6f;_0x1a9763&&await _0x169b6e[_0xde65ff(0x2cf)](_0x3c4545['id'],{'unitId':_0x1a9763,'subUnitId':_0x24a4da,'drawingIds':[_0x4b2897],'arrangeType':_0x5ed68b});};return _0x1a9763?_0x5619d4(_0xebfc1b,{'labels':_0x176a2a,'renderPermissionAction':_0x2f18d4=>_0x3572fa?_0x5619d4(_0x6fcfc4,{'target':{'unitId':_0x1a9763,'objectId':_0x17c75c(_0x34c0dc(_0x3572fa,_0x2f18d4['id']),_0x329c6f(0x292),_0x2f18d4['id']),'objectType':_0x3314c2[_0x329c6f(0x1a4)]},'name':_0x2f18d4[_0x329c6f(0xba)],'commandId':_0x2502f6['id'],'exists':()=>!!_0x3c2577(_0x2f18d4['id'])},_0x1a9763+'/'+_0x2f18d4['id']):null,'items':_0x336369,'selectedIds':_0x13b8f6,'focusedId':_0x1fa029,'showHeader':!0x1,'onSelect':_0x4a05fc,'onSetVisible':_0x2f9b39,'onSetSelectable':_0x1b7b41,'onCommitName':_0x3e2c52,'onCommitDescription':_0x3acf37,'onMoveForward':async _0x593c93=>_0x302ebf(_0x593c93,_0x1f6748[_0x329c6f(0x22f)]),'onMoveBackward':async _0x5eaf31=>_0x302ebf(_0x5eaf31,_0x1f6748[_0x329c6f(0x1ff)]),'onToggleSelectable':_0x8dc47d}):_0x5619d4(_0x329c6f(0x1de),{'className':_0x329c6f(0x110),'children':_0x176a2a[_0x329c6f(0x147)]});}function ia(){return _0x5619d4(ra,{'PanelComponent':_0x2b8d3a});}let aa=class{constructor(_0x11b6f1){const _0x579ea2=_0x43e8a4;this[_0x579ea2(0xa3)]=_0x11b6f1;}[_0x43e8a4(0x1cf)](_0x97a2aa,_0x1cb265){const _0xb86dfc=_0x43e8a4;let _0x592ed7=this[_0xb86dfc(0xa3)][_0xb86dfc(0x2b0)](_0x97a2aa[_0xb86dfc(0xa2)]),_0x4c4fa4=_0x592ed7==null?void 0x0:_0x592ed7[_0xb86dfc(0x71)];if(!_0x4c4fa4)return;let _0x19412f=_0x33c05c(_0x97a2aa),_0x39d001=_0x4c4fa4[_0xb86dfc(0x17b)](_0x19412f);_0x39d001==null||_0x39d001['setFillImage'](_0x1cb265);}};aa=q([K(0x0,_0x20175c)],aa);function oa(){const _0x49be00=_0x43e8a4;let _0x2442d4=_0x2f1968(_0x4ed84c),_0xc183a3=_0x24248b(()=>_0x2442d4[_0x49be00(0x144)],_0x2442d4[_0x49be00(0x2bf)](),!0x1,[_0x2442d4]);return _0xc183a3[_0x49be00(0x1ee)]===0x0?null:_0x5619d4('div',{'children':_0x48a5b6('div',{'className':_0x49be00(0xd5),'children':[_0x5619d4(_0x2438ba,{'drawings':_0xc183a3,'hasCropper':!0x1}),_0x5619d4(_0x7f317e,{'drawings':_0xc183a3}),_0x5619d4(_0x328b21,{'drawings':_0xc183a3})]})});}function sa(_0x294378){let {unitId:_0x585619,subUnitId:_0x2a364b,shapeId:_0xe6a38e,PositionComponent:_0x312f13=oa}=_0x294378,_0x253fd2=_0x2f1968(_0x5d4fd5),_0x3831aa=_0x2f1968(aa);return _0x5619d4(_0x4daa70,{..._0x294378,'positionEditor':_0x5619d4(_0x312f13,{}),'onUpdateShapeData':(_0x2bfdb1,_0x3a0300)=>{Yr(_0x253fd2,_0x585619,_0x2a364b,_0xe6a38e,_0x2bfdb1,_0x3a0300);},'onUpdateLineShapeData':(_0x1a85ee,_0x387f37)=>{Xr(_0x253fd2,_0x585619,_0x2a364b,_0xe6a38e,_0x1a85ee,_0x387f37);},'onUpdateShapeFillImage':_0x4654c8=>{const _0x40b4ee=_0xe027;_0x3831aa[_0x40b4ee(0x1cf)]({'unitId':_0x585619,'subUnitId':_0x2a364b,'drawingId':_0xe6a38e},_0x4654c8);}});}function ca(){const _0x5b8a6f=_0x43e8a4;let _0x2c7e75=_0x2f1968(_0x4ed84c),_0x12952d=_0x24248b(_0x2c7e75[_0x5b8a6f(0x144)],_0x2c7e75[_0x5b8a6f(0x2bf)]());return _0x12952d[_0x5b8a6f(0x1ee)]===0x0?null:_0x48a5b6(_0x5b8a6f(0x1de),{'className':'univer-grid\x20univer-gap-5\x20univer-p-3','children':[_0x5619d4(_0x2438ba,{'drawings':_0x12952d,'hasCropper':!0x1}),_0x5619d4(_0xa7fe3c,{'drawings':_0x12952d}),_0x5619d4(_0x10704b,{'drawings':_0x12952d})]});}function la(_0x2fdefe){return _0x5619d4(_0x4ab532,{'children':_0x5619d4(sa,{..._0x2fdefe,'PositionComponent':ca})});}function ua({popup:_0x4edaba}){const _0x4bb66f=_0x43e8a4;let _0xeac83b=_0x2f1968(_0x474b31),{shapeType:_0xaa5a22,onText:_0x11bb2b,onStyle:_0x1194c0,onDelete:_0x1bf469}=_0x4edaba[_0x4bb66f(0x26a)],_0xa0503d=[{'key':_0x4bb66f(0x98),'order':0x0,'item':{'id':'text','type':_0x3c5886[_0x4bb66f(0x2ad)],'title':_0xeac83b['t']('docs-shape-ui.mobile.text'),'disabled$':_0x477cfd(_0x3a8d31(_0xaa5a22))}},{'key':'style','order':0x1,'item':{'id':_0x4bb66f(0x68),'type':_0x3c5886[_0x4bb66f(0x2ad)],'title':_0xeac83b['t'](_0x4bb66f(0x22e))}},{'key':_0x4bb66f(0x13c),'order':0x2,'item':{'id':_0x4bb66f(0x13c),'type':_0x3c5886[_0x4bb66f(0x2ad)],'title':_0xeac83b['t'](_0x4bb66f(0x1db))}}];return _0x5619d4(_0xab6cb4,{'schemas':_0xa0503d,'presentation':_0x4bb66f(0x8d),'onOptionSelect':async({id:_0x201b3d})=>{const _0x185810=_0x4bb66f;_0x201b3d==='text'?await _0x11bb2b():_0x201b3d===_0x185810(0x68)?await _0x1194c0():_0x201b3d===_0x185810(0x13c)&&await _0x1bf469();}});}const da=_0x43e8a4(0x185);function fa(_0x1a28c7,_0x448acb){const _0x3b4b9e=_0x43e8a4;var _0x35ad66;let _0x433cd2=_0x1a28c7==null||(_0x35ad66=_0x1a28c7[_0x3b4b9e(0x2b5)]()[_0x3b4b9e(0x1f7)])==null?void 0x0:_0x35ad66[_0x448acb];return _0x433cd2?_0x433cd2[_0x3b4b9e(0x206)]===_0x5e65d5[_0x3b4b9e(0x210)]?_0x433cd2[_0x3b4b9e(0x7f)]===_0x2eeb60['TRUE']?_0x4e8b32[_0x3b4b9e(0x221)]:_0x4e8b32[_0x3b4b9e(0x85)]:_0x433cd2[_0x3b4b9e(0x206)]===_0x5e65d5[_0x3b4b9e(0xbd)]?_0x4e8b32[_0x3b4b9e(0xbd)]:_0x433cd2[_0x3b4b9e(0x206)]===_0x5e65d5['WRAP_TOP_AND_BOTTOM']?_0x4e8b32[_0x3b4b9e(0x154)]:_0x4e8b32[_0x3b4b9e(0x91)]:_0x4e8b32[_0x3b4b9e(0x91)];}function pa(_0x596d23){const _0x30ff32=_0x43e8a4;let _0x2e1432=_0x2f1968(_0x9377b1),_0x566305=_0x24248b(()=>_0x2e1432[_0x30ff32(0x247)],_0x2e1432['getVisible'](),!0x1,[_0x2e1432]),_0x2f6cfa=_0x596d23[_0x30ff32(0x2bb)][_0x30ff32(0x26a)];return _0x566305?_0x5619d4(ma,{..._0x2f6cfa,'canvasElement':_0x596d23[_0x30ff32(0x2bb)][_0x30ff32(0xc1)]}):null;}function ma(_0x4dc6d2){const _0x294e97=_0x43e8a4;let _0xdf95e=_0x2f1968(_0x5d4fd5),_0x35fe32=_0x2f1968(_0x474b31),_0x8f81d6=_0x2f1968(_0x3e6ec4),_0x20b2d6=_0x2f1968(_0x58ad01),{unitId:_0x99de2e,subUnitId:_0x5445e2,drawingId:_0x564fc1,shapeType:_0x493fc7}=_0x4dc6d2,[_0x23b536,_0x63e7db]=_0x1f778c(_0x4dc6d2[_0x294e97(0x240)]),_0x28235a=_0x20b2d6['getUnit'](_0x99de2e,_0x37d2f3[_0x294e97(0x10d)])??void 0x0,[_0x56c47f,_0x41aa13]=_0x1f778c(()=>fa(_0x28235a,_0x564fc1)),_0x45eb85=_0x39da17(()=>_0x11e2fa(_0x23b536),[_0x23b536]),_0x442c39=_0x39da17(()=>_0x46bcad(_0x23b536),[_0x23b536]);_0x5b0cfd(()=>{const _0x24dd93=_0x294e97;let _0x343d38=_0xdf95e[_0x24dd93(0x1b3)](_0x56e95b=>{const _0x5909fa=_0x24dd93;if(_0x56e95b['id']!==_0x4aaefb['id'])return;let _0x5d61e0=_0x8f81d6[_0x5909fa(0x274)](_0x99de2e,_0x5445e2,_0x564fc1);_0x5d61e0&&_0x63e7db(_0x5d61e0);});return()=>_0x343d38[_0x24dd93(0xb0)]();},[_0xdf95e,_0x8f81d6,_0x564fc1,_0x5445e2,_0x99de2e]);let _0x4245d5=_0x321ee2=>{_0x63e7db(_0x5784f3=>({..._0x5784f3,..._0x321ee2}));},_0x3d8f37=_0x4871b4=>{const _0x3d1460=_0x294e97;let _0x55bfad=_0x2fe1a2(_0x23b536,_0x4871b4);Yr(_0xdf95e,_0x99de2e,_0x5445e2,_0x564fc1,{'oldShapeData':{'shapeText':_0x23b536[_0x3d1460(0x1d5)]}},_0x55bfad),_0x4245d5(_0x55bfad);},_0x4f4502=_0x10d626=>{const _0x32cf45=_0x294e97;_0x41aa13(_0x10d626),_0xdf95e[_0x32cf45(0x2cf)](_0x35bcca['id'],{'unitId':_0x99de2e,'subUnitId':_0x5445e2,'drawings':[{'unitId':_0x99de2e,'subUnitId':_0x5445e2,'drawingId':_0x564fc1}],'wrappingStyle':_0x10d626});},_0x41d217=_0x29c39b({'hostType':_0x37d2f3[_0x294e97(0x10d)],'unitId':_0x99de2e,'subUnitId':_0x5445e2,'shapeId':_0x564fc1,'shapeData':_0x23b536,'onUpdateBinding':_0x16cc84=>{const _0x4ae7a5=_0x294e97;let _0x488674={'formulaBinding':_0x16cc84};Yr(_0xdf95e,_0x99de2e,_0x5445e2,_0x564fc1,{'oldShapeData':{'formulaBinding':_0x23b536[_0x4ae7a5(0x19c)]}},_0x488674),_0x4245d5(_0x488674);}}),_0x590685=[{'label':_0x35fe32['t'](_0x294e97(0x76)),'value':_0x4e8b32[_0x294e97(0x91)],'icon':_0x5619d4(_0x1e873d,{})},{'label':_0x35fe32['t'](_0x294e97(0x146)),'value':_0x4e8b32[_0x294e97(0xbd)],'icon':_0x5619d4(_0x1e873d,{})},{'label':_0x35fe32['t']('docs-shape-ui.textWrap.topAndBottom'),'value':_0x4e8b32[_0x294e97(0x154)],'icon':_0x5619d4(_0x1e873d,{})},{'label':_0x35fe32['t'](_0x294e97(0x2c5)),'value':_0x4e8b32[_0x294e97(0x221)],'icon':_0x5619d4(_0x1e873d,{})},{'label':_0x35fe32['t']('docs-shape-ui.textWrap.inFrontText'),'value':_0x4e8b32[_0x294e97(0x85)],'icon':_0x5619d4(_0x1e873d,{})}];return _0x48a5b6(_0xafd52b,{'children':[_0x5619d4(_0x198192,{'canvasElement':_0x4dc6d2['canvasElement'],'shapeData':_0x23b536,'shapeType':_0x493fc7,'textStyle':{'ff':_0x1f925b['shapeText'][_0x294e97(0x25a)],'fs':_0x1f925b['shapeText']['fontSize'],'cl':{'rgb':_0x1f925b[_0x294e97(0x1d5)][_0x294e97(0xe9)]},..._0x45eb85},'textModel':_0x442c39?{'ha':_0x442c39['ha']??_0x19f481['LEFT'],'va':_0x442c39['va']??_0xfc8006['TOP']}:null,'wrappingStyle':_0x56c47f,'wrappingStyleOptions':_0x590685,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x1f925b['fill'],'defaultGradientEndColor':_0x1f925b[_0x294e97(0xe0)],'defaultStrokeColor':_0x1f925b[_0x294e97(0x88)],'extensionGroups':_0x41d217['extensionGroups'],'floatingObjectToolbarPosition':_0x7e4a12[_0x294e97(0x242)],'onUpdateShapeData':(_0x4c31a7,_0xcef183)=>{Yr(_0xdf95e,_0x99de2e,_0x5445e2,_0x564fc1,_0x4c31a7,_0xcef183),_0xcef183&&_0x4245d5(_0xcef183);},'onUpdateText':_0x3d8f37,'onUpdateWrappingStyle':_0x1e4ea0=>_0x4f4502(_0x1e4ea0),'onOpenPanel':()=>{const _0x331574=_0x294e97;_0xdf95e[_0x331574(0x2cf)](G['id'],{'unitId':_0x99de2e,'subUnitId':_0x5445e2,'drawingId':_0x564fc1});},'onDelete':()=>{const _0x500463=_0x294e97;_0xdf95e[_0x500463(0x2cf)](_0x1dc354['id'],{'unitId':_0x99de2e,'drawings':[{'unitId':_0x99de2e,'subUnitId':_0x5445e2,'drawingId':_0x564fc1}]});}}),_0x41d217[_0x294e97(0x200)]]});}function ha({variant:_0x1d1e96,extend:_0x3a0db8,..._0x2fba53}){const _0x4df0b2=_0x43e8a4;let _0x329db8=_0x5619d4(_0x4df0b2(0xce),{'x':'7','y':_0x4df0b2(0x1e6),'width':'6','height':'9','rx':'1','fill':_0x4df0b2(0x21c),'fillOpacity':'0.14','stroke':_0x4df0b2(0x21c),'strokeWidth':_0x4df0b2(0xc5)});return _0x48a5b6(_0x4df0b2(0x12b),{'aria-hidden':_0x4df0b2(0x187),'fill':_0x4df0b2(0x170),'height':'1em','viewBox':'0\x200\x2020\x2020','width':_0x4df0b2(0x22c),..._0x2fba53,'children':[_0x1d1e96===_0x4df0b2(0x12f)&&_0x48a5b6(_0xafd52b,{'children':[_0x5619d4(_0x4df0b2(0x24d),{'d':_0x4df0b2(0x232),'stroke':_0x4df0b2(0x21c),'strokeLinecap':_0x4df0b2(0x113),'strokeWidth':'1.2'}),_0x5619d4(_0x4df0b2(0xce),{'x':'8','y':'7','width':'4','height':'6','rx':_0x4df0b2(0xb8),'fill':_0x4df0b2(0x21c),'fillOpacity':'0.14','stroke':'currentColor','strokeWidth':_0x4df0b2(0xc5)})]}),_0x1d1e96===_0x4df0b2(0x171)&&_0x48a5b6(_0xafd52b,{'children':[_0x5619d4(_0x4df0b2(0x24d),{'d':_0x4df0b2(0x1f0),'stroke':_0x4df0b2(0x21c),'strokeLinecap':_0x4df0b2(0x113),'strokeWidth':_0x4df0b2(0xc5)}),_0x329db8]}),_0x1d1e96===_0x4df0b2(0x18c)&&_0x48a5b6(_0xafd52b,{'children':[_0x5619d4(_0x4df0b2(0x24d),{'d':_0x4df0b2(0x2c9),'stroke':'currentColor','strokeLinecap':_0x4df0b2(0x113),'strokeWidth':'1.2'}),_0x329db8]}),_0x1d1e96===_0x4df0b2(0x1fd)&&_0x48a5b6(_0xafd52b,{'children':[_0x329db8,_0x5619d4(_0x4df0b2(0x24d),{'d':_0x4df0b2(0xc2),'stroke':'currentColor','strokeLinecap':_0x4df0b2(0x113),'strokeWidth':'1.2'})]}),_0x1d1e96===_0x4df0b2(0xbe)&&_0x48a5b6(_0xafd52b,{'children':[_0x5619d4(_0x4df0b2(0x24d),{'d':_0x4df0b2(0xc2),'stroke':_0x4df0b2(0x21c),'strokeLinecap':_0x4df0b2(0x113),'strokeWidth':_0x4df0b2(0xc5)}),_0x5619d4(_0x4df0b2(0xce),{'x':'7','y':_0x4df0b2(0x1e6),'width':'6','height':'9','rx':'1','fill':_0x4df0b2(0x21c)})]})]});}const ga=_0x3f8b0c=>_0x313fce=>_0x5619d4(ha,{..._0x313fce,'variant':_0x3f8b0c}),_a={'DocsShapeWrapInlineIcon':ga('inline'),'DocsShapeWrapSquareIcon':ga(_0x43e8a4(0x171)),'DocsShapeWrapTopBottomIcon':ga(_0x43e8a4(0x18c)),'DocsShapeWrapBehindTextIcon':ga(_0x43e8a4(0x1fd)),'DocsShapeWrapInFrontOfTextIcon':ga(_0x43e8a4(0xbe))},va=_0x5889ae(()=>{const _0xc9151f=_0x43e8a4;let _0xa9a5b4=_0x2f1968(X),_0x445617=_0x2f1968(_0x3e6ec4),_0x571d94=_0x2f1968(_0x4ed84c),_0x378625=_0x2f1968(_0x5d4fd5),_0x2a7bcb=_0x39da17(()=>({'getShapeModel':(_0x10f872,_0x3ecfa0,_0x4567a8)=>_0x445617[_0xc9151f(0x100)](_0x10f872,_0x3ecfa0,_0x4567a8),'getShapeData':(_0x345057,_0x484de0,_0x41d38c)=>_0x445617['getShapeDataById'](_0x345057,_0x484de0,_0x41d38c),'getDrawingTransform':(_0x34e742,_0x51d767,_0x5e68f2)=>{const _0x569418=_0xc9151f;let _0xa1e40b=_0x571d94['getDrawingByParam']({'unitId':_0x34e742,'subUnitId':_0x51d767,'drawingId':_0x5e68f2});return _0xa1e40b==null?void 0x0:_0xa1e40b[_0x569418(0x260)];},'updateShapeText':({unitId:_0x171317,shapeId:_0x45fbd2,shapeText:_0x27893c,oldShapeText:_0xb8c4a9})=>{const _0x574b37=_0xc9151f;_0x378625[_0x574b37(0x2cf)](_0xc5bd8e['id'],{'unitId':_0x171317,'shapeId':_0x45fbd2,'shapeData':{'shapeText':_0x27893c},'oldShapeJSON':{'oldShapeData':{'shapeText':_0xb8c4a9}}});},'updateHostSize':({unitId:_0x19c893,subUnitId:_0xb20f53,shapeId:_0x139489,width:_0x5a245d,height:_0x4e537d})=>{const _0x27b386=_0xc9151f;_0x378625[_0x27b386(0x2cf)](_0x5c08e6['id'],{'unitId':_0x19c893,'subUnitId':_0xb20f53,'drawings':[{'drawingId':_0x139489,'key':_0x27b386(0x73),'value':{'width':_0x5a245d,'height':_0x4e537d}}]});},'allowHostSizeShrink':({unitId:_0x46e3cf,subUnitId:_0x5043db,shapeId:_0x3b6891})=>_0x1574e0(_0x445617[_0xc9151f(0x274)](_0x46e3cf,_0x5043db,_0x3b6891))}),[_0x378625,_0x445617,_0x571d94]),_0x45ed02=_0x39da17(()=>({'viewportKeys':{'main':_0x28fe54[_0xc9151f(0xf5)]}}),[]);return _0x5619d4(_0x8f7333,{'adapter':_0x2a7bcb,'editingService':_0xa9a5b4,'editorUnitId':kr,'positionOptions':_0x45ed02});});let ya=class extends _0x143425{constructor(_0x3ef877,_0x11c87d){const _0x34f5f2=_0x43e8a4;super(),this[_0x34f5f2(0x179)]=_0x3ef877,this['_iconManager']=_0x11c87d,this['_registerIcons'](),this['_registerComponents']();}[_0x43e8a4(0x14a)](){const _0x15a62f=_0x43e8a4;this[_0x15a62f(0x2b2)][_0x15a62f(0x1da)](_0x15a62f(0x27e))||this[_0x15a62f(0xb3)](this[_0x15a62f(0x2b2)][_0x15a62f(0x14c)]({'ObjectLayersIcon':_0x362b77})),this[_0x15a62f(0x2b2)][_0x15a62f(0x1da)]('BottomIcon')||this['disposeWithMe'](this[_0x15a62f(0x2b2)]['register']({'BottomIcon':_0x463d79})),this[_0x15a62f(0x2b2)][_0x15a62f(0x1da)](_0x15a62f(0x216))||this[_0x15a62f(0xb3)](this[_0x15a62f(0x2b2)][_0x15a62f(0x14c)]({'MoveDownIcon':_0x13639d})),this[_0x15a62f(0x2b2)]['has'](_0x15a62f(0x287))||this[_0x15a62f(0xb3)](this[_0x15a62f(0x2b2)]['register']({'MoveUpIcon':_0x384086})),this[_0x15a62f(0x2b2)][_0x15a62f(0x1da)](_0x15a62f(0xee))||this[_0x15a62f(0xb3)](this[_0x15a62f(0x2b2)]['register']({'ShapeFormatSettingIcon':_0x306814})),this['_iconManager']['has'](_0x15a62f(0xdd))||this['disposeWithMe'](this[_0x15a62f(0x2b2)][_0x15a62f(0x14c)]({'TopmostIcon':_0x1b36a9})),this[_0x15a62f(0xb3)](this['_iconManager']['register'](_a));}[_0x43e8a4(0xb6)](){const _0x42a571=_0x43e8a4;this[_0x42a571(0xb3)](this[_0x42a571(0x179)]['register'](W,la)),this[_0x42a571(0x246)](),this['_registerFloatingToolbar'](),this[_0x42a571(0xb3)](this[_0x42a571(0x179)][_0x42a571(0x14c)](Qr,ii)),this[_0x42a571(0xb3)](this[_0x42a571(0x179)][_0x42a571(0x14c)](Zr,ai)),this[_0x42a571(0xb3)](this['_componentManager']['register']($r,oi)),this[_0x42a571(0xb3)](this[_0x42a571(0x179)]['register'](ei,si)),this[_0x42a571(0xb3)](this[_0x42a571(0x179)][_0x42a571(0x14c)](ti,ci)),this[_0x42a571(0xb3)](this['_componentManager'][_0x42a571(0x14c)](Ar,_0x4eb1a6)),this[_0x42a571(0x23f)](),this[_0x42a571(0x179)][_0x42a571(0xcc)](_0x1efce9)||this[_0x42a571(0xb3)](this['_componentManager']['register'](_0x1efce9,Hr)),this[_0x42a571(0xb3)](this[_0x42a571(0x179)][_0x42a571(0x14c)](jr,va));}[_0x43e8a4(0x246)](){const _0x425f44=_0x43e8a4;this[_0x425f44(0xb3)](this['_componentManager'][_0x425f44(0x14c)](Or,ia));}[_0x43e8a4(0xde)](){const _0x16b5cf=_0x43e8a4;this[_0x16b5cf(0xb3)](this[_0x16b5cf(0x179)]['register'](da,ua));}['_registerPickers'](){const _0x1636fb=_0x43e8a4;this[_0x1636fb(0xb3)](this['_componentManager']['register'](Lr,$i)),this[_0x1636fb(0xb3)](this[_0x1636fb(0x179)]['register'](Rr,ea));}};ya=q([K(0x0,_0x376ec2(_0x5974e5)),K(0x1,_0x376ec2(_0x358fdb))],ya);let ba=class extends _0x143425{constructor(_0x146e68,_0x375b79,_0x29f8bb,_0x1dcf86,_0x4b7687,_0x20d0de,_0x576061,_0x447e08,_0x4f31a5,_0x114014,_0x6f302c,_0x2fc6c7,_0x24d110){const _0x1f3662=_0x43e8a4;super(),this[_0x1f3662(0x7b)]=_0x146e68,this[_0x1f3662(0x1c9)]=_0x375b79,this[_0x1f3662(0x2b7)]=_0x29f8bb,this[_0x1f3662(0x17f)]=_0x1dcf86,this[_0x1f3662(0x267)]=_0x4b7687,this[_0x1f3662(0x10c)]=_0x20d0de,this['_drawingManagerService']=_0x576061,this['_docCanvasPopManagerService']=_0x447e08,this['_renderManagerService']=_0x4f31a5,this['_contextService']=_0x114014,this[_0x1f3662(0x72)]=_0x6f302c,this[_0x1f3662(0x218)]=_0x2fc6c7,this[_0x1f3662(0x9f)]=_0x24d110,J(this,_0x1f3662(0x9b),null),J(this,_0x1f3662(0x1b1),null),J(this,_0x1f3662(0x21a),!0x1),J(this,_0x1f3662(0x231),0x0),J(this,'_disposePopupsByUnit',new Map()),J(this,_0x1f3662(0x245),new Map()),this[_0x1f3662(0x23e)](),this['disposeWithMe'](this[_0x1f3662(0x7b)][_0x1f3662(0x2c2)](_0x37d2f3[_0x1f3662(0x10d)])[_0x1f3662(0x120)](_0x3001aa=>{const _0x28f898=_0x1f3662;if(!_0x3001aa){var _0x53b365;(_0x53b365=this[_0x28f898(0x9b)])==null||_0x53b365['dispose']();}})),this['_registerOperations'](),this[_0x1f3662(0xb3)](this[_0x1f3662(0x282)]['remove$'][_0x1f3662(0x120)](_0x57a0c2=>{const _0x8d9d65=_0x1f3662;for(let _0x589584 of _0x57a0c2){let _0x2e80e1=_0x589584[_0x8d9d65(0xa2)]+':'+_0x589584[_0x8d9d65(0x2d2)]+':'+_0x589584[_0x8d9d65(0x198)];for(let [_0x3fc72e,_0xea3c68]of this['_popupTargetKeys'])_0xea3c68===_0x2e80e1&&this[_0x8d9d65(0x2c0)](_0x3fc72e,!0x0);}})),this['disposeWithMe'](_0x1d984c(this[_0x1f3662(0xa3)],_0x37d2f3[_0x1f3662(0x10d)],_0x1bc558=>this[_0x1f3662(0xd8)](_0x1bc558))),this[_0x1f3662(0xb3)](this[_0x1f3662(0x72)][_0x1f3662(0x80)][_0x1f3662(0x120)](_0x45e841=>{_0x45e841&&this['_clearPopups'](void 0x0,!0x0);})),this[_0x1f3662(0xb3)](this[_0x1f3662(0x218)][_0x1f3662(0x10a)][_0x1f3662(0x120)](()=>{const _0x48c43d=_0x1f3662;this[_0x48c43d(0x282)][_0x48c43d(0x2bf)]()[_0x48c43d(0x1f5)](_0x10b52c=>_0x10b52c[_0x48c43d(0x119)]===_0x1652cd[_0x48c43d(0x156)]&&this[_0x48c43d(0x7b)][_0x48c43d(0x177)](_0x10b52c[_0x48c43d(0xa2)])===_0x37d2f3[_0x48c43d(0x10d)]&&!this[_0x48c43d(0xcf)](_0x10b52c['unitId'],_0x10b52c['drawingId']))&&(this['_clearPopups'](void 0x0,!0x0),this[_0x48c43d(0x2bd)]());}));}[_0x43e8a4(0x1bc)](_0x57aa7c,_0xdb3530,_0xa2f9e,_0x2c5ddd){const _0x5cccf1=_0x43e8a4;return[{'label':_0x5cccf1(0xa8),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x57aa7c,'subUnitId':_0xdb3530,'drawingId':_0xa2f9e},'disable':_0x2c5ddd===_0x1652cd[_0x5cccf1(0x271)]},{'label':_0x5cccf1(0xd0),'index':0x1,'commandId':_0x1dc354['id'],'commandParams':{'unitId':_0x57aa7c,'drawings':[{'unitId':_0x57aa7c,'subUnitId':_0xdb3530,'drawingId':_0xa2f9e}]},'disable':!0x1},{'label':_0x5cccf1(0x1aa),'index':0x2,'commandId':Bi['id'],'commandParams':{'unitId':_0x57aa7c,'subUnitId':_0xdb3530,'drawingId':_0xa2f9e},'disable':!0x1}];}[_0x43e8a4(0x23e)](){const _0x5e3644=_0x43e8a4;this[_0x5e3644(0x2b7)]['mergeMenu'](Li);}[_0x43e8a4(0x277)](_0x15dee3,_0x35d7dc,_0x341e22){const _0x4427eb=_0x43e8a4;let _0x30563d=this[_0x4427eb(0x17f)]['getShapeTypeById'](_0x15dee3,_0x35d7dc,_0x341e22),_0x492a33=this[_0x4427eb(0x17f)][_0x4427eb(0x274)](_0x15dee3,_0x35d7dc,_0x341e22);return _0x30563d===void 0x0||_0x492a33===void 0x0?null:{'shapeData':_0x492a33,'shapeId':_0x341e22,'shapeType':_0x30563d,'unitId':_0x15dee3,'subUnitId':_0x35d7dc,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1};}[_0x43e8a4(0x2c0)](_0x30df34,_0x42b0d3=!0x1){const _0x26fd9d=_0x43e8a4;if(_0x30df34==null){[...this[_0x26fd9d(0xdc)][_0x26fd9d(0x20d)]()][_0x26fd9d(0xd6)](_0x3669e7=>this[_0x26fd9d(0x2c0)](_0x3669e7,_0x42b0d3));return;}let _0x1e759c=this[_0x26fd9d(0xdc)][_0x26fd9d(0x7a)](_0x30df34);if(_0x1e759c){for(let _0x4fcad5=_0x1e759c[_0x26fd9d(0x1ee)]-0x1;_0x4fcad5>=0x0;--_0x4fcad5){let _0x4f5fbd=_0x1e759c[_0x4fcad5];(_0x42b0d3||_0x4f5fbd[_0x26fd9d(0x2b6)]())&&(_0x4f5fbd[_0x26fd9d(0xb0)](),_0x1e759c[_0x26fd9d(0x180)](_0x4fcad5,0x1));}_0x1e759c[_0x26fd9d(0x1ee)]===0x0&&(this[_0x26fd9d(0xdc)][_0x26fd9d(0x13c)](_0x30df34),this[_0x26fd9d(0x245)][_0x26fd9d(0x13c)](_0x30df34));}}['_getDisposePopups'](_0x4ee30e){const _0x566e28=_0x43e8a4;let _0x2d34c2=this[_0x566e28(0xdc)][_0x566e28(0x7a)](_0x4ee30e);if(_0x2d34c2)return _0x2d34c2;let _0x3c6799=[];return this[_0x566e28(0xdc)][_0x566e28(0x290)](_0x4ee30e,_0x3c6799),_0x3c6799;}['_popupMenuListener'](_0x14627b){const _0x1f5e14=_0x43e8a4;var _0x262ced;let _0x4abd74=new _0x4bf1ef(),_0x56c2af=(_0x262ced=this[_0x1f5e14(0xa3)]['getAllRenderersOfType'](_0x37d2f3[_0x1f5e14(0x10d)])[_0x1f5e14(0x2d0)](_0x22fe94=>_0x22fe94[_0x1f5e14(0x71)]['getTransformerByCreate']()===_0x14627b))==null?void 0x0:_0x262ced[_0x1f5e14(0xa2)];return _0x56c2af&&(_0x4abd74[_0x1f5e14(0x106)](_0x14627b[_0x1f5e14(0x1ac)][_0x1f5e14(0x120)](()=>this['_handleCreateControl'](_0x14627b,_0x56c2af))),_0x4abd74[_0x1f5e14(0x106)](_0x14627b[_0x1f5e14(0x1c3)][_0x1f5e14(0x120)](()=>{const _0x36777c=_0x1f5e14;this[_0x36777c(0x2c0)](_0x56c2af),queueMicrotask(()=>{const _0x1fcf01=_0x36777c;_0x14627b['getSelectedObjectMap']()[_0x1fcf01(0x73)]>0x0||!this[_0x1fcf01(0x282)][_0x1fcf01(0x2bf)]()['some'](_0x5f58cb=>_0x5f58cb['unitId']===_0x56c2af)||(this[_0x1fcf01(0xfc)]['setContextValue'](_0x2f74ce,!0x1),this[_0x1fcf01(0x282)][_0x1fcf01(0xd9)](null));});})),_0x4abd74[_0x1f5e14(0x106)](_0x14627b[_0x1f5e14(0x190)][_0x1f5e14(0x120)](()=>{const _0x431488=_0x1f5e14;this[_0x431488(0x2c0)](_0x56c2af,!0x0);}))),_0x4abd74;}[_0x43e8a4(0xa9)](_0x32a1af,_0x193120){const _0x24c86e=_0x43e8a4;let _0x57123b=_0x32a1af[_0x24c86e(0x103)]();if(this[_0x24c86e(0x21a)]){this[_0x24c86e(0x2c0)](_0x193120,!0x0);return;}if(_0x57123b['size']>0x1){this[_0x24c86e(0x2c0)](_0x193120);return;}let _0x3b6ce2=_0x57123b[_0x24c86e(0x22d)]()['next']()[_0x24c86e(0x152)];if(!_0x3b6ce2){this['_clearPopups'](_0x193120);return;}let _0x3239b4=this[_0x24c86e(0x282)]['getDrawingOKey'](_0x3b6ce2[_0x24c86e(0xef)]);if(!_0x3239b4||_0x3239b4['drawingType']!==_0x1652cd[_0x24c86e(0x156)]){this[_0x24c86e(0x2c0)](_0x193120);return;}let {unitId:_0x4c0be6,subUnitId:_0x418017,drawingId:_0x48b8bf}=_0x3239b4;if(!this[_0x24c86e(0xcf)](_0x4c0be6,_0x48b8bf)){this[_0x24c86e(0x2c0)](_0x193120,!0x0);return;}let _0x106c34=this[_0x24c86e(0x277)](_0x4c0be6,_0x418017,_0x48b8bf);if(!_0x106c34){this['_clearPopups'](_0x193120);return;}let _0x60d8f9=this[_0x24c86e(0xdc)][_0x24c86e(0x7a)](_0x193120),_0x3f3b48=_0x4c0be6+':'+_0x418017+':'+_0x48b8bf;if(this[_0x24c86e(0x245)]['get'](_0x193120)===_0x3f3b48&&_0x60d8f9!=null&&_0x60d8f9[_0x24c86e(0x1ee)])return;this[_0x24c86e(0x2c0)](_0x193120);let _0x583431=this['_renderManagerService']['getRenderUnitById'](_0x4c0be6),_0x444794=((_0x583431==null?void 0x0:_0x583431[_0x24c86e(0x193)])===!0x1?_0x583431[_0x24c86e(0x178)](_0x58fb7f):this[_0x24c86e(0x28e)])['attachPopupToObject'](_0x3b6ce2,this[_0x24c86e(0xd2)](_0x106c34,()=>this[_0x24c86e(0x2c0)](_0x193120,!0x0)),_0x4c0be6);this[_0x24c86e(0xb3)](_0x444794),this[_0x24c86e(0x118)](_0x193120)['push'](_0x444794),this[_0x24c86e(0x245)][_0x24c86e(0x290)](_0x193120,_0x3f3b48),this[_0x24c86e(0x282)][_0x24c86e(0x2bf)]()[_0x24c86e(0x1f5)](_0x4b2472=>_0x4b2472['unitId']===_0x4c0be6&&_0x4b2472['subUnitId']===_0x418017&&_0x4b2472['drawingId']===_0x48b8bf)||this[_0x24c86e(0x282)][_0x24c86e(0xd9)]([{'unitId':_0x4c0be6,'subUnitId':_0x418017,'drawingId':_0x48b8bf}]);}[_0x43e8a4(0xd2)](_0x598c50,_0x129a96){const _0x45e76a=_0x43e8a4;let {unitId:_0x3cd78e,subUnitId:_0x481275,shapeId:_0x5146a1}=_0x598c50,_0x54f92d={'hostType':_0x37d2f3[_0x45e76a(0x10d)],'unitId':_0x3cd78e,'subUnitId':_0x481275,'shapeId':_0x5146a1};return{'componentKey':da,'requiresStableLayout':!0x1,'direction':_0x45e76a(0x1df),'offset':[0x0,0x8],'extraProps':{'shapeType':_0x598c50[_0x45e76a(0x6d)],'onText':()=>{const _0x539054=_0x45e76a;_0x129a96(),this['_mobileEditorService'][_0x539054(0x29c)](_0x539054(0x98),_0x54f92d);},'onStyle':()=>{const _0x2aaf86=_0x45e76a;_0x129a96(),this[_0x2aaf86(0x9f)][_0x2aaf86(0x29c)](_0x2aaf86(0x68),_0x54f92d);},'onDelete':()=>this['_commandService'][_0x45e76a(0x2cf)](_0x1dc354['id'],{'unitId':_0x3cd78e,'drawings':[{'unitId':_0x3cd78e,'subUnitId':_0x481275,'drawingId':_0x5146a1}]})}};}[_0x43e8a4(0xcf)](_0x5851da,_0x1c740f){const _0x3fd079=_0x43e8a4;let _0x5cf5a4=this[_0x3fd079(0x7b)]['getUnit'](_0x5851da,_0x37d2f3[_0x3fd079(0x10d)]);if(!_0x5cf5a4)return!0x1;let _0x39d0d5=_0x34c0dc(_0x5cf5a4,_0x1c740f);return _0xaad49(this[_0x3fd079(0x218)],_0x5851da,[..._0x1ed368(_0x5cf5a4,_0x39d0d5,_0x3fd079(0x292),_0x1c740f),_0x17c75c(_0x39d0d5,_0x3fd079(0x292),_0x1c740f)]);}[_0x43e8a4(0x2d3)](){const _0x55f4a8=_0x43e8a4;this['disposeWithMe'](this['_commandService'][_0x55f4a8(0x1b3)](_0x13b876=>{const _0x21cfda=_0x55f4a8;if(_0x13b876['id']===G['id']){let {unitId:_0x79cab9,subUnitId:_0x7fa758,drawingId:_0xaaee80}=_0x13b876[_0x21cfda(0x132)];this['_shapeEditPanelVersion']+=0x1,this[_0x21cfda(0x1b1)]=this['_getShapeInfo'](_0x79cab9,_0x7fa758,_0xaaee80),this[_0x21cfda(0x2c0)](void 0x0,!0x0),this[_0x21cfda(0x10e)]();}if(_0x13b876['id']===Bi['id']&&(this[_0x21cfda(0x1b1)]=null,this['_closeShapeEditPanel']()),_0x13b876['id']===_0x4aaefb['id']){var _0x588190;let {unitId:_0x15c45d,shapeId:_0x7898f8}=_0x13b876[_0x21cfda(0x132)];if(((_0x588190=this[_0x21cfda(0x1b1)])==null?void 0x0:_0x588190[_0x21cfda(0x1a5)])===_0x7898f8){let _0x290988=this['_getShapeInfo'](_0x15c45d,this[_0x21cfda(0x1b1)]['subUnitId'],_0x7898f8);_0x290988&&(this[_0x21cfda(0x231)]+=0x1,_0x290988[_0x21cfda(0x1bd)]=this['_shapeEditPanelVersion'],this['_activeShapeInfo']=_0x290988,this[_0x21cfda(0x21a)]&&this[_0x21cfda(0x10e)]());}}})),this[_0x55f4a8(0xb3)](this[_0x55f4a8(0x282)]['focus$'][_0x55f4a8(0x120)](_0x1a84d2=>{const _0x3d778e=_0x55f4a8;if(!this[_0x3d778e(0x21a)])return;if(_0x1a84d2[_0x3d778e(0x1ee)]===0x0){this['_activeShapeInfo']=null,this[_0x3d778e(0x2bd)]();return;}if(_0x1a84d2[_0x3d778e(0x1ee)]===0x1&&_0x1a84d2[0x0][_0x3d778e(0x119)]===_0x1652cd[_0x3d778e(0x156)]&&(this[_0x3d778e(0x231)]+=0x1,this[_0x3d778e(0x1b1)]=this[_0x3d778e(0x277)](_0x1a84d2[0x0]['unitId'],_0x1a84d2[0x0]['subUnitId'],_0x1a84d2[0x0][_0x3d778e(0x198)]),this['_activeShapeInfo'])){this['_openShapeEditPanel']();return;}let _0x2f4ad5=_0x1a84d2[_0x3d778e(0x121)](_0x372340=>_0x372340[_0x3d778e(0x119)]===_0x1652cd['DRAWING_SHAPE']);this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x3d778e(0x277)](_0x1a84d2[0x0][_0x3d778e(0xa2)],_0x1a84d2[0x0][_0x3d778e(0x2d2)],_0x1a84d2[0x0][_0x3d778e(0x198)]),this[_0x3d778e(0x1b1)]&&_0x1a84d2[_0x3d778e(0x1ee)]>0x1&&_0x2f4ad5[_0x3d778e(0x1ee)]===_0x1a84d2[_0x3d778e(0x1ee)]?this[_0x3d778e(0x10e)]():this['_activeShapeInfo']&&_0x2f4ad5['length']!==_0x1a84d2[_0x3d778e(0x1ee)]?(this[_0x3d778e(0x1b1)]['disableShapeOption']=!0x0,this[_0x3d778e(0x10e)]()):this[_0x3d778e(0x2bd)]();}));}['_openShapeEditPanel'](){const _0x2e34b2=_0x43e8a4;this['_activeShapeInfo']&&(this[_0x2e34b2(0x9b)]=this[_0x2e34b2(0x1c9)]['open']({'id':W,'header':{'title':this[_0x2e34b2(0x267)]['t'](_0x2e34b2(0x21d))},'width':0x184,'children':{'label':W,...this['_activeShapeInfo']},'onClose':()=>{const _0x365aeb=_0x2e34b2;this[_0x365aeb(0x282)]['focusDrawing'](null),this[_0x365aeb(0xfc)][_0x365aeb(0x25c)](_0x2f74ce,!0x1),this['_sidebarDisposable']=null;}}),this[_0x2e34b2(0x21a)]=!0x0);}['_closeShapeEditPanel'](){const _0x2f92d9=_0x43e8a4;this[_0x2f92d9(0x21a)]=!0x1,this['_sidebarService'][_0x2f92d9(0x234)](W),this['_sidebarDisposable']=null,this[_0x2f92d9(0xfc)][_0x2f92d9(0x25c)](_0x2f74ce,!0x1),this[_0x2f92d9(0x282)]['focusDrawing'](null);}};ba=q([K(0x0,_0x58ad01),K(0x1,_0x376ec2(_0x5cd437)),K(0x2,_0x354de5),K(0x3,_0x376ec2(_0x3e6ec4)),K(0x4,_0x376ec2(_0x474b31)),K(0x5,_0x5d4fd5),K(0x6,_0x4ed84c),K(0x7,_0x376ec2(_0x58fb7f)),K(0x8,_0x20175c),K(0x9,_0x46b73a),K(0xa,_0x376ec2(X)),K(0xb,_0x1b33f3),K(0xc,_0x376ec2(_0x1c4e81))],ba);const xa=_0x43e8a4(0x18f);let Sa=class extends _0x143425{constructor(_0x3295b3,_0x3eef1a,_0x5a5132,_0x347c58,_0x53912e,_0x21f35a){const _0x54b608=_0x43e8a4;super(),this[_0x54b608(0x2b7)]=_0x3295b3,this[_0x54b608(0x203)]=_0x3eef1a,this[_0x54b608(0x282)]=_0x5a5132,this[_0x54b608(0x7b)]=_0x347c58,this['_renderManagerService']=_0x53912e,this[_0x54b608(0x19f)]=_0x21f35a,J(this,'_visible',!0x1),this[_0x54b608(0x2b7)][_0x54b608(0x158)](Ii),this[_0x54b608(0xb3)](_0x44b80c(this[_0x54b608(0x282)][_0x54b608(0x144)][_0x54b608(0x120)](()=>this[_0x54b608(0x21f)]()))),this[_0x54b608(0x21f)]();}[_0x43e8a4(0xb0)](){const _0x125e01=_0x43e8a4;this[_0x125e01(0x19f)][_0x125e01(0x126)](!0x1,xa),this[_0x125e01(0xf2)](),super[_0x125e01(0xb0)]();}[_0x43e8a4(0x21f)](){const _0x176a99=_0x43e8a4;var _0x2e3e38;let _0x414920=this[_0x176a99(0x282)][_0x176a99(0x2bf)](),_0x1e32c1=_0x414920[_0x176a99(0x1ee)]===0x1?_0x414920[0x0]:void 0x0;if((_0x1e32c1==null?void 0x0:_0x1e32c1[_0x176a99(0x119)])!==_0x1652cd[_0x176a99(0x156)]||this[_0x176a99(0x7b)][_0x176a99(0x177)](_0x1e32c1['unitId'])!==_0x37d2f3[_0x176a99(0x10d)]){this[_0x176a99(0x19f)][_0x176a99(0x126)](!0x1,xa),this[_0x176a99(0xf2)]();return;}let _0x58b771=(_0x2e3e38=this[_0x176a99(0xa3)][_0x176a99(0x2b0)](_0x1e32c1['unitId']))==null?void 0x0:_0x2e3e38['engine'][_0x176a99(0x99)](),_0x1901ab=_0x3c6397(_0x58b771)==='isolated';this['_shapeFloatingToolbarService']['setFallbackVisible'](_0x1901ab,xa),_0x1901ab?this[_0x176a99(0xf2)]():(this['_visible']=!0x0,this['_ribbonService']['showContextualTab'](Dr,{'activate':!0x0}));}[_0x43e8a4(0xf2)](){const _0x262391=_0x43e8a4;this[_0x262391(0xc3)]&&(this[_0x262391(0xc3)]=!0x1,this[_0x262391(0x203)][_0x262391(0xca)](Dr),this['_ribbonService'][_0x262391(0x2b4)]([]));}};Sa=q([K(0x0,_0x354de5),K(0x1,_0x1989ad),K(0x2,_0x4ed84c),K(0x3,_0x58ad01),K(0x4,_0x20175c),K(0x5,_0x376ec2(_0x9377b1))],Sa);let Ca=class extends _0x143425{constructor(_0x2e5fce,_0x45326d,_0x64d07b,_0x249f1a){const _0x1a4c06=_0x43e8a4;super(),this[_0x1a4c06(0x10c)]=_0x2e5fce,this['_renderManagerService']=_0x45326d,this[_0x1a4c06(0x282)]=_0x64d07b,this['_docDrawingShapeRenderController']=_0x249f1a,this[_0x1a4c06(0xf9)]();}['_initialize'](){const _0x2add24=_0x43e8a4;this[_0x2add24(0xb3)](this['_drawingManagerService']['add$']['subscribe'](_0x3a8c33=>this[_0x2add24(0x197)](_0x3a8c33))),this[_0x2add24(0xb3)](this[_0x2add24(0x282)][_0x2add24(0x261)][_0x2add24(0x120)](_0x5c6a7b=>{const _0x57ae3d=_0x2add24;_0x5c6a7b[_0x57ae3d(0xd6)](_0x5f5b4a=>this[_0x57ae3d(0x24a)](_0x5f5b4a));})),this[_0x2add24(0xb3)](this[_0x2add24(0x10c)][_0x2add24(0x1b3)](_0x23fc90=>{const _0x29f28a=_0x2add24;if(_0x23fc90['id']!==_0x4aaefb['id'])return;let {unitId:_0x2db78f,shapeId:_0x4b635d}=_0x23fc90[_0x29f28a(0x132)];this[_0x29f28a(0x151)]({'unitId':_0x2db78f,'subUnitId':_0x2db78f,'drawingId':_0x4b635d});}));}['_insertShapes'](_0x573cfa){_0x573cfa['forEach'](_0x7f9092=>{const _0x4806c8=_0xe027;let _0xd6efce=this[_0x4806c8(0xe8)](_0x7f9092[_0x4806c8(0xa2)]);if(!_0xd6efce)return;let _0x26d728=this['_drawingManagerService'][_0x4806c8(0xfd)](_0x7f9092);(_0x26d728==null?void 0x0:_0x26d728[_0x4806c8(0x119)])===_0x1652cd['DRAWING_SHAPE']&&this[_0x4806c8(0x272)][_0x4806c8(0xa6)](_0x26d728,_0xd6efce[_0x4806c8(0x71)]);});}[_0x43e8a4(0x24a)](_0x16a4ec){const _0x619492=_0x43e8a4;let _0x29750a=this[_0x619492(0x282)]['getDrawingByParam'](_0x16a4ec);if((_0x29750a==null?void 0x0:_0x29750a[_0x619492(0x119)])!==_0x1652cd[_0x619492(0x156)])return;let _0x5eb442=this[_0x619492(0xe8)](_0x16a4ec['unitId']);if(!_0x5eb442||_0x29750a[_0x619492(0x260)]==null)return;let _0x54d980=_0x33c05c(_0x16a4ec),_0x3ac1ab=_0x5eb442[_0x619492(0x71)][_0x619492(0x17b)](_0x54d980);_0x3ac1ab&&(_0x3ac1ab[_0x619492(0x1d7)](_0x29750a['srcRect']),_0x3ac1ab[_0x619492(0x1ef)](_0x29750a[_0x619492(0x2a1)]),_0x3ac1ab[_0x619492(0x11f)](!0x0));}[_0x43e8a4(0x151)](_0x179b03){const _0x452975=_0x43e8a4;let _0x54f9e3=this[_0x452975(0xe8)](_0x179b03[_0x452975(0xa2)]);if(!_0x54f9e3)return;let _0x4d4ad6=_0x33c05c(_0x179b03),_0x142503=_0x54f9e3['scene']['getObjectIncludeInGroup'](_0x4d4ad6);_0x142503&&(this['_docDrawingShapeRenderController'][_0x452975(0x1af)](_0x142503),this[_0x452975(0x272)]['refreshFormulaPresentation'](_0x142503,{'unitId':_0x179b03['unitId'],'subUnitId':_0x179b03[_0x452975(0x2d2)],'shapeId':_0x179b03['drawingId']}),_0x142503[_0x452975(0x11f)](!0x0));}[_0x43e8a4(0xe8)](_0x1570fd){const _0x265219=_0x43e8a4;if(_0x1570fd==null)return null;let _0x20591c=this[_0x265219(0xa3)]['getRenderUnitById'](_0x1570fd),_0xfce0ea=_0x20591c==null?void 0x0:_0x20591c[_0x265219(0x71)];return _0xfce0ea==null?null:{'scene':_0xfce0ea};}};Ca=q([K(0x0,_0x5d4fd5),K(0x1,_0x20175c),K(0x2,_0x4ed84c),K(0x3,_0x376ec2(Z))],Ca);let Q=class extends _0x48417e{constructor(_0x5134cc=Hi,_0xd4bc56,_0x511d8d,_0x35aadc,_0xa5a830){const _0x3e839e=_0x43e8a4;super(),this[_0x3e839e(0x28d)]=_0x5134cc,this[_0x3e839e(0x1ae)]=_0xd4bc56,this[_0x3e839e(0x10c)]=_0x511d8d,this[_0x3e839e(0x1f3)]=_0x35aadc,this[_0x3e839e(0xa3)]=_0xa5a830;let {menu:_0x5029e2,..._0x673a70}=_0x77c685({},Hi,this['_config']);_0x5029e2&&this['_configService'][_0x3e839e(0x211)](_0x3e839e(0x8f),_0x5029e2,{'merge':!0x0}),this[_0x3e839e(0x1f3)]['setConfig'](Vi,_0x673a70),[U,Bi,G,Mr,Pr,Fr][_0x3e839e(0xd6)](_0x34fb49=>this['disposeWithMe'](this[_0x3e839e(0x10c)]['registerCommand'](_0x34fb49)));}[_0x43e8a4(0x257)](){const _0x31ccde=_0x43e8a4;let _0x58e0ed=[[ya],[ba],[Ca],[Z],[Xi],[Ji],[Ir],[aa],[X],[Sa]];_0x1fed5b(this['_injector'],_0x58e0ed),this[_0x31ccde(0x1ae)][_0x31ccde(0x7a)](ya);}['onReady'](){const _0x940d9e=_0x43e8a4;this[_0x940d9e(0xb3)](this['_renderManagerService'][_0x940d9e(0x1b2)](_0x37d2f3['UNIVER_DOC'],[Ji])),_0xd342cc(this[_0x940d9e(0x1ae)],[[ba],[Ca],[Z],[Xi],[Ir],[aa],[X],[Sa]]);}};J(Q,_0x43e8a4(0x297),_0x37d2f3['UNIVER_DOC']),J(Q,'pluginName','DOCS_SHAPE_UI_PLUGIN'),J(Q,'packageName',Ri),J(Q,_0x43e8a4(0x1bd),zi),Q=q([_0x1a58e1(_0x1f5858,_0x3dc614,_0x41fe11,_0x1a2f56,_0x55fd02,_0x3a37cf,_0x2830ac,_0x1727f1,_0x2e07fc,_0x54a90e),K(0x1,_0x376ec2(_0x3fea17)),K(0x2,_0x5d4fd5),K(0x3,_0x47ac1d),K(0x4,_0x20175c)],Q);let wa=class extends _0x143425{constructor(_0x4186e6,_0x2dc274){const _0x5172f2=_0x43e8a4;super(),this[_0x5172f2(0x179)]=_0x4186e6,this[_0x5172f2(0x2b2)]=_0x2dc274,this[_0x5172f2(0x14a)](),this[_0x5172f2(0xb6)]();}[_0x43e8a4(0x14a)](){const _0x5a7060=_0x43e8a4;this[_0x5a7060(0x2b2)][_0x5a7060(0x1da)]('ObjectLayersIcon')||this[_0x5a7060(0xb3)](this[_0x5a7060(0x2b2)]['register']({'ObjectLayersIcon':_0x362b77})),this[_0x5a7060(0x2b2)]['has'](_0x5a7060(0x1a0))||this['disposeWithMe'](this[_0x5a7060(0x2b2)][_0x5a7060(0x14c)]({'BottomIcon':_0x463d79})),this[_0x5a7060(0x2b2)][_0x5a7060(0x1da)]('MoveDownIcon')||this['disposeWithMe'](this[_0x5a7060(0x2b2)]['register']({'MoveDownIcon':_0x13639d})),this[_0x5a7060(0x2b2)]['has'](_0x5a7060(0x287))||this['disposeWithMe'](this['_iconManager']['register']({'MoveUpIcon':_0x384086})),this[_0x5a7060(0x2b2)]['has'](_0x5a7060(0xee))||this[_0x5a7060(0xb3)](this[_0x5a7060(0x2b2)][_0x5a7060(0x14c)]({'ShapeFormatSettingIcon':_0x306814})),this['_iconManager'][_0x5a7060(0x1da)](_0x5a7060(0xdd))||this[_0x5a7060(0xb3)](this[_0x5a7060(0x2b2)][_0x5a7060(0x14c)]({'TopmostIcon':_0x1b36a9})),this[_0x5a7060(0xb3)](this['_iconManager']['register'](_a));}[_0x43e8a4(0xb6)](){const _0x33b7da=_0x43e8a4;this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)]['register'](W,sa)),this['_registerObjectListPanel'](),this[_0x33b7da(0xde)](),this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)][_0x33b7da(0x14c)](Qr,ii)),this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)]['register'](Zr,ai)),this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)]['register']($r,oi)),this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)]['register'](ei,si)),this[_0x33b7da(0xb3)](this['_componentManager'][_0x33b7da(0x14c)](ti,ci)),this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)]['register'](Ar,_0x4eb1a6)),this[_0x33b7da(0x23f)](),this['_componentManager'][_0x33b7da(0xcc)](_0x1efce9)||this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)][_0x33b7da(0x14c)](_0x1efce9,Hr)),this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)][_0x33b7da(0x14c)](jr,va));}[_0x43e8a4(0x246)](){const _0xa729=_0x43e8a4;this[_0xa729(0xb3)](this[_0xa729(0x179)][_0xa729(0x14c)](Or,ra));}[_0x43e8a4(0xde)](){const _0x2c7efc=_0x43e8a4;this[_0x2c7efc(0xb3)](this[_0x2c7efc(0x179)][_0x2c7efc(0x14c)](da,pa));}[_0x43e8a4(0x23f)](){const _0x1cfb10=_0x43e8a4;this[_0x1cfb10(0xb3)](this[_0x1cfb10(0x179)][_0x1cfb10(0x14c)](Lr,Ur)),this[_0x1cfb10(0xb3)](this[_0x1cfb10(0x179)][_0x1cfb10(0x14c)](Rr,Vr));}};wa=q([K(0x0,_0x376ec2(_0x5974e5)),K(0x1,_0x376ec2(_0x358fdb))],wa);let Ta=class extends _0x143425{constructor(_0x99c93b,_0xf31f0e,_0x545900,_0x5c2f48,_0x232223,_0x247ac9,_0x3d7447,_0x13a511,_0x54e32b){const _0x2dcfb5=_0x43e8a4;super();let _0x499f18=_0x25e218=>{const _0x3c0220=_0xe027;let _0xfb04c5=_0x247ac9[_0x3c0220(0x254)](_0x25e218[_0x3c0220(0xa2)],_0x37d2f3[_0x3c0220(0x10d)]),_0x5e2760=_0xfb04c5?_0x34c0dc(_0xfb04c5,_0x25e218[_0x3c0220(0x1a5)]):'';return!!_0xfb04c5&&_0xaad49(_0x13a511,_0x25e218[_0x3c0220(0xa2)],[_0x17c75c(_0x5e2760,'drawing',_0x25e218[_0x3c0220(0x1a5)]),..._0x1ed368(_0xfb04c5,_0x5e2760,_0x3c0220(0x292),_0x25e218[_0x3c0220(0x1a5)])]);},_0x172d05=_0x195106=>_0x195106[_0x2dcfb5(0x1a5)]&&_0x499f18(_0x195106)?_0x545900[_0x2dcfb5(0x274)](_0x195106[_0x2dcfb5(0xa2)],_0x195106[_0x2dcfb5(0x1a5)])??null:null,_0x3ec9d5=()=>{const _0x49f461=_0x2dcfb5;let _0x369f55=_0x232223[_0x49f461(0x2bf)](),_0x5a96b=_0x369f55[_0x49f461(0x1ee)]===0x1?_0x369f55[0x0]:null;return(_0x5a96b==null?void 0x0:_0x5a96b[_0x49f461(0x119)])===_0x1652cd['DRAWING_SHAPE']&&_0x5a96b[_0x49f461(0xa2)]===_0x99c93b[_0x49f461(0xa2)]?{'unitId':_0x5a96b[_0x49f461(0xa2)],'subUnitId':_0x5a96b[_0x49f461(0x2d2)],'shapeId':_0x5a96b[_0x49f461(0x198)]}:null;};this[_0x2dcfb5(0xb3)](_0x3c87e0(_0x99c93b,_0xf31f0e,{'changes$':_0x3018f6(_0x232223[_0x2dcfb5(0x144)],_0x5c2f48['editingParams$'],_0x13a511['permissionPointUpdate$']),'isActive':()=>{const _0x1d38ad=_0x2dcfb5;var _0x492135;return((_0x492135=_0x247ac9[_0x1d38ad(0xda)]())==null?void 0x0:_0x492135['getUnitId']())===_0x99c93b[_0x1d38ad(0xa2)]&&!_0x3d7447[_0x1d38ad(0x2c3)](_0x1e386f)&&_0x232223['getFocusDrawings']()['some'](_0x3f65ea=>_0x3f65ea['unitId']===_0x99c93b['unitId']);},'getSelectedTarget':_0x3ec9d5,'getSource':()=>{let _0x506cb3=_0x3ec9d5();return _0x506cb3?_0x172d05(_0x506cb3):null;},'getTarget':_0x1320e9=>{const _0x38fe4d=_0x2dcfb5;let _0x216898=_0x99c93b[_0x38fe4d(0x71)][_0x38fe4d(0xff)](new _0x7e1ba8(_0x1320e9[_0x38fe4d(0x165)],_0x1320e9[_0x38fe4d(0x1d4)]));if(!(_0x216898 instanceof Y))return null;let _0x3b6fb1={'unitId':_0x99c93b[_0x38fe4d(0xa2)],'subUnitId':_0x99c93b['unitId'],'shapeId':_0x216898[_0x38fe4d(0x1a5)]};return _0x499f18(_0x3b6fb1)?_0x3b6fb1:null;},'getShape':_0x172d05,'update':(_0x59e4b7,_0x14f8ff,_0x28a315)=>_0x54e32b[_0x2dcfb5(0x2cf)](_0xc5bd8e['id'],{..._0x59e4b7,'shapeData':_0x28a315,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x14f8ff}})}));}};Ta=q([K(0x1,_0x376ec2(_0x22cfa6)),K(0x2,_0x376ec2(_0x3e6ec4)),K(0x3,_0x376ec2(X)),K(0x4,_0x4ed84c),K(0x5,_0x58ad01),K(0x6,_0x46b73a),K(0x7,_0x1b33f3),K(0x8,_0x5d4fd5)],Ta);function Ea(_0x585f44,_0x255212){const _0x4061d6=_0x43e8a4;let _0x275694=_0x585f44;for(;_0x275694;){if(_0x255212(_0x275694))return _0x275694;_0x275694=typeof _0x275694[_0x4061d6(0xf7)]==_0x4061d6(0xb9)?_0x275694[_0x4061d6(0xf7)]():null;}return null;}function Da(_0x272b88){return Ea(_0x272b88,_0x54c020=>_0x54c020 instanceof Y);}function Oa(_0x1f4bcd){return(_0x1f4bcd==null?void 0x0:_0x1f4bcd['formulaBinding'])==null;}let ka=class extends _0x143425{constructor(_0x2ad464,_0x1e50fd,_0x3586af,_0x1ea211,_0x342f25){const _0x30ece7=_0x43e8a4;super(),this[_0x30ece7(0xed)]=_0x2ad464,this[_0x30ece7(0x72)]=_0x1e50fd,this[_0x30ece7(0x282)]=_0x3586af,this['_docLayoutInteractionService']=_0x1ea211,this[_0x30ece7(0x17f)]=_0x342f25,J(this,_0x30ece7(0x226),null),J(this,_0x30ece7(0x194),null),this[_0x30ece7(0x280)](),this[_0x30ece7(0x284)](),this[_0x30ece7(0x182)]();}[_0x43e8a4(0xb0)](){const _0xd56e78=_0x43e8a4;this[_0xd56e78(0x1d0)](),super['dispose']();}['_initEvents'](){const _0x7f8725=_0x43e8a4;let {scene:_0x271b8f}=this[_0x7f8725(0xed)];this[_0x7f8725(0xb3)](_0x271b8f[_0x7f8725(0x11b)][_0x7f8725(0xcd)]((_0x5ea1f1,_0xf47765)=>{const _0x4a6a76=_0x7f8725;let {offsetX:_0x219430,offsetY:_0x11c043}=_0x5ea1f1,_0x34524a=_0x7e1ba8[_0x4a6a76(0x142)]([_0x219430,_0x11c043]),_0x1ab20d=Da(_0x271b8f[_0x4a6a76(0xff)](_0x34524a))??this[_0x4a6a76(0x111)](_0x34524a);if(_0x1ab20d){_0xf47765[_0x4a6a76(0x1ea)]();let _0x2cf0a8=this[_0x4a6a76(0x17f)][_0x4a6a76(0x100)](_0x1ab20d[_0x4a6a76(0xa2)],_0x1ab20d[_0x4a6a76(0x2d2)],_0x1ab20d[_0x4a6a76(0x1a5)]);if(!_0x2cf0a8||_0x3a8d31(_0x2cf0a8[_0x4a6a76(0x2d1)]())||!Oa(_0x2cf0a8[_0x4a6a76(0x299)]()))return;this[_0x4a6a76(0x72)]['setEditing']({'visible':!0x0,'unitId':_0x1ab20d[_0x4a6a76(0xa2)],'subUnitId':_0x1ab20d[_0x4a6a76(0x2d2)],'shapeId':_0x1ab20d[_0x4a6a76(0x1a5)],'shapeKey':_0x1ab20d[_0x4a6a76(0xef)]});}}));}[_0x43e8a4(0x111)](_0x578e24){const _0x4e4792=_0x43e8a4;let {scene:_0x225509}=this[_0x4e4792(0xed)];return this[_0x4e4792(0x282)][_0x4e4792(0x2bf)]()[_0x4e4792(0x1e4)](_0x360f09=>_0x225509[_0x4e4792(0x17b)](_0x33c05c(_0x360f09)))[_0x4e4792(0x2d0)](_0x3262aa=>_0x3262aa instanceof Y&&_0x3262aa[_0x4e4792(0x2b3)](_0x578e24))??null;}[_0x43e8a4(0x284)](){const _0x36743d=_0x43e8a4;this[_0x36743d(0xb3)](this[_0x36743d(0x282)]['focus$'][_0x36743d(0x120)](_0x520595=>{const _0x5218a8=_0x36743d;if(_0x520595[_0x5218a8(0x1ee)]===0x1){let _0x15f348=_0x520595[0x0],_0x28f45a=this['_drawingManagerService'][_0x5218a8(0xfd)](_0x15f348);if((_0x28f45a==null?void 0x0:_0x28f45a[_0x5218a8(0x119)])===_0x1652cd[_0x5218a8(0x156)]){let _0x9b07ad=this[_0x5218a8(0x72)][_0x5218a8(0x1a2)]();if((_0x9b07ad==null?void 0x0:_0x9b07ad[_0x5218a8(0x1a5)])===_0x15f348['drawingId']&&_0x9b07ad[_0x5218a8(0x1b4)])return;_0x3a8d31(this[_0x5218a8(0x17f)][_0x5218a8(0x2d1)](_0x15f348[_0x5218a8(0xa2)],_0x15f348[_0x5218a8(0x2d2)],_0x15f348[_0x5218a8(0x198)]))&&this['_shapeTextEditingService'][_0x5218a8(0x15a)](null);}else this[_0x5218a8(0x72)]['completeEditing']();}else this[_0x5218a8(0x72)][_0x5218a8(0x209)]();})),this[_0x36743d(0xb3)](this[_0x36743d(0x282)]['remove$'][_0x36743d(0x120)](_0x5db538=>{const _0x34cf1d=_0x36743d;let _0x48efdb=this['_shapeTextEditingService']['getEditing']();_0x48efdb&&_0x5db538['some'](_0x1c94cb=>_0x1c94cb['drawingId']===_0x48efdb[_0x34cf1d(0x1a5)])&&this['_shapeTextEditingService']['setEditing'](null);}));}[_0x43e8a4(0x182)](){const _0x1da622=_0x43e8a4;this['disposeWithMe'](this[_0x1da622(0x72)][_0x1da622(0x80)][_0x1da622(0x120)](_0x42bf08=>{const _0x213a71=_0x1da622;(_0x42bf08==null?void 0x0:_0x42bf08['visible'])===!0x0&&_0x42bf08[_0x213a71(0xa2)]===this[_0x213a71(0xed)][_0x213a71(0xa2)]?this[_0x213a71(0x194)]??=this[_0x213a71(0x6a)]['beginInteraction']():this['_endLayoutInteraction']();let {scene:_0x1789ac}=this[_0x213a71(0xed)];if(this[_0x213a71(0x226)]){let _0x5abbcf=_0x1789ac[_0x213a71(0x17b)](this[_0x213a71(0x226)]);_0x5abbcf&&_0x5abbcf[_0x213a71(0x15a)](!0x1);}if(_0x42bf08){let _0x157ac2=!!_0x42bf08['visible'],_0x19dc33=_0x1789ac['getObjectIncludeInGroup'](_0x42bf08[_0x213a71(0x166)]);_0x19dc33&&(_0x19dc33[_0x213a71(0x15a)](_0x157ac2),this[_0x213a71(0x226)]=_0x42bf08[_0x213a71(0x166)]);}else this[_0x213a71(0x226)]=null;}));}['_endLayoutInteraction'](){const _0x1aecaf=_0x43e8a4;var _0x47250b;(_0x47250b=this[_0x1aecaf(0x194)])==null||_0x47250b[_0x1aecaf(0xb0)](),this[_0x1aecaf(0x194)]=null;}};ka=q([K(0x1,_0x376ec2(X)),K(0x2,_0x4ed84c),K(0x3,_0x376ec2(_0xf6bc99)),K(0x4,_0x376ec2(_0x3e6ec4))],ka);let Aa=class extends _0x4b2f89{constructor(_0x291bcc,_0x2e2cde,_0x4607ae,_0x5a6361,_0x587a8e,_0x44b2b8,_0x2cec19,_0x87d41f,_0x57f14b,_0x391077){super(_0x291bcc,_0x2e2cde,_0x4607ae,_0x5a6361,_0x587a8e,_0x44b2b8,_0x2cec19,_0x87d41f,_0x57f14b,_0x391077,{'componentKey':Ar,'editorUnitId':kr});}};Aa=q([K(0x1,_0x376ec2(_0x2e2dde)),K(0x2,_0x376ec2(_0x58fb7f)),K(0x3,_0x376ec2(_0x161ebd)),K(0x4,_0x5d4fd5),K(0x5,_0x376ec2(_0x21724d)),K(0x6,_0x376ec2(_0x478335)),K(0x7,_0x376ec2(_0x106c33)),K(0x8,_0x376ec2(_0x3f802a)),K(0x9,_0x376ec2(X))],Aa);let ja=class extends _0x34514a{constructor(_0x2bb791,_0x241c06,_0x3c1d79,_0xf82fac,_0x5a87f5){super(_0x2bb791,_0x241c06,{'editing$':_0x3c1d79['editingParams$'],'resolve':_0xb2d5a3=>{const _0xdd517=_0xe027;var _0x2f90af;let _0x373cab=new _0x7e1ba8(_0xb2d5a3[_0xdd517(0x165)],_0xb2d5a3['offsetY']),_0xb6af2e=((_0x2f90af=_0x2bb791['scene']['getActiveViewportByCoord'](_0x373cab))==null?void 0x0:_0x2f90af[_0xdd517(0x19e)](_0x373cab))??_0x373cab,_0x573b17=_0x2c5cc5(_0x2bb791[_0xdd517(0x71)]['pick'](_0x373cab)??null,_0xb6af2e);if(!(_0x573b17 instanceof Y))return null;let _0x4c6211=_0x573b17[_0xdd517(0x150)](_0xb6af2e);if(!_0x4c6211)return null;let _0x96fa7d=_0x573b17,_0x4f6d90={'componentKey':_0x100f36[_0xdd517(0x256)],'direction':_0xdd517(0x1df),'offset':[0x0,0xa],'onClickOutside':()=>_0x241c06[_0xdd517(0x18e)]()};return{'object':_0x573b17,'info':{..._0x4c6211,'unitId':_0x573b17[_0xdd517(0xa2)],'subUnitId':_0x573b17[_0xdd517(0x2d2)],'shapeKey':_0x573b17[_0xdd517(0xef)],'readonly':!0x0,'copyable':_0x29792c(_0x5a87f5,_0x573b17[_0xdd517(0xa2)],_0x573b17['unitId'],_0x19e39f[_0xdd517(0x20a)])},'attachPopup':()=>_0xf82fac[_0xdd517(0x1f2)](_0x96fa7d,_0x4f6d90,_0x96fa7d[_0xdd517(0xa2)])};}});}};ja=q([K(0x1,_0x376ec2(_0x478335)),K(0x2,_0x376ec2(X)),K(0x3,_0x376ec2(_0x58fb7f)),K(0x4,_0x1b33f3)],ja);let Ma=class extends _0x143425{constructor(_0x20f21e,_0x13c1b8,_0x41525e,_0x63de8e,_0xf405bc,_0x298570,_0x5157de,_0x471456,_0x3de8bd,_0x4f2844,_0x40e5cd,_0x2089e3){const _0x491d96=_0x43e8a4;super(),this[_0x491d96(0x7b)]=_0x20f21e,this[_0x491d96(0x1c9)]=_0x13c1b8,this[_0x491d96(0x2b7)]=_0x41525e,this[_0x491d96(0x17f)]=_0x63de8e,this[_0x491d96(0x267)]=_0xf405bc,this[_0x491d96(0x10c)]=_0x298570,this[_0x491d96(0x282)]=_0x5157de,this[_0x491d96(0x28e)]=_0x471456,this[_0x491d96(0xa3)]=_0x3de8bd,this[_0x491d96(0xfc)]=_0x4f2844,this[_0x491d96(0x72)]=_0x40e5cd,this[_0x491d96(0x218)]=_0x2089e3,J(this,_0x491d96(0x9b),null),J(this,_0x491d96(0x1b1),null),J(this,'_isOpenedShapeEditPanel',!0x1),J(this,'_shapeEditPanelVersion',0x0),J(this,'_disposePopupsByUnit',new Map()),J(this,_0x491d96(0x245),new Map()),this['_initMenu'](),this['disposeWithMe'](this['_univerInstanceService'][_0x491d96(0x2c2)](_0x37d2f3[_0x491d96(0x10d)])[_0x491d96(0x120)](_0x2d75ba=>{const _0x4e8e36=_0x491d96;if(!_0x2d75ba){var _0x859a1c;(_0x859a1c=this[_0x4e8e36(0x9b)])==null||_0x859a1c[_0x4e8e36(0xb0)]();}})),this['_registerOperations'](),this[_0x491d96(0xb3)](this['_drawingManagerService'][_0x491d96(0xa4)][_0x491d96(0x120)](_0x489a08=>{const _0x53238e=_0x491d96;for(let _0x47a100 of _0x489a08){let _0x1034b3=_0x47a100[_0x53238e(0xa2)]+':'+_0x47a100[_0x53238e(0x2d2)]+':'+_0x47a100['drawingId'];for(let [_0x1ff9fa,_0x346000]of this[_0x53238e(0x245)])_0x346000===_0x1034b3&&this[_0x53238e(0x2c0)](_0x1ff9fa,!0x0);}})),this['disposeWithMe'](_0x1d984c(this[_0x491d96(0xa3)],_0x37d2f3[_0x491d96(0x10d)],_0x4337df=>this['_popupMenuListener'](_0x4337df))),this['disposeWithMe'](this[_0x491d96(0x72)][_0x491d96(0x80)][_0x491d96(0x120)](_0x401dbf=>{const _0x4fbbb=_0x491d96;_0x401dbf&&this[_0x4fbbb(0x2c0)](void 0x0,!0x0);})),this[_0x491d96(0xb3)](this[_0x491d96(0x218)][_0x491d96(0x10a)]['subscribe'](()=>{const _0x204061=_0x491d96;this[_0x204061(0x282)]['getFocusDrawings']()['some'](_0xe8a444=>_0xe8a444[_0x204061(0x119)]===_0x1652cd['DRAWING_SHAPE']&&this[_0x204061(0x7b)][_0x204061(0x177)](_0xe8a444[_0x204061(0xa2)])===_0x37d2f3[_0x204061(0x10d)]&&!this[_0x204061(0xcf)](_0xe8a444[_0x204061(0xa2)],_0xe8a444[_0x204061(0x198)]))&&(this[_0x204061(0x2c0)](void 0x0,!0x0),this[_0x204061(0x2bd)]());}));}[_0x43e8a4(0x23e)](){const _0x8de1a4=_0x43e8a4;this[_0x8de1a4(0x2b7)]['mergeMenu'](Li);}[_0x43e8a4(0x1bc)](_0x2f2a44,_0x115419,_0x178c05,_0x5e48e3){const _0x5ee824=_0x43e8a4;return[{'label':_0x5ee824(0xa8),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x2f2a44,'subUnitId':_0x115419,'drawingId':_0x178c05},'disable':_0x5e48e3===_0x1652cd[_0x5ee824(0x271)]},{'label':_0x5ee824(0xd0),'index':0x1,'commandId':_0x1dc354['id'],'commandParams':{'unitId':_0x2f2a44,'drawings':[{'unitId':_0x2f2a44,'subUnitId':_0x115419,'drawingId':_0x178c05}]},'disable':!0x1},{'label':'docs-shape-ui.hidePanel','index':0x2,'commandId':Bi['id'],'commandParams':{'unitId':_0x2f2a44,'subUnitId':_0x115419,'drawingId':_0x178c05},'disable':!0x1}];}['_getShapeInfo'](_0x3ea9b9,_0x10442a,_0x53939b){const _0xe76051=_0x43e8a4;let _0x11a521=this[_0xe76051(0x17f)][_0xe76051(0x20c)](_0x3ea9b9,_0x10442a,_0x53939b),_0x316ce0=this['_docsShapeService'][_0xe76051(0x274)](_0x3ea9b9,_0x10442a,_0x53939b);return _0x11a521!==void 0x0&&_0x316ce0!==void 0x0?{'shapeData':_0x316ce0,'shapeId':_0x53939b,'shapeType':_0x11a521,'unitId':_0x3ea9b9,'subUnitId':_0x10442a,'version':this[_0xe76051(0x231)],'disableShapeOption':!0x1}:null;}[_0x43e8a4(0x2c0)](_0x590c05,_0x3f9890=!0x1){const _0x55537b=_0x43e8a4;if(_0x590c05==null){[...this[_0x55537b(0xdc)][_0x55537b(0x20d)]()][_0x55537b(0xd6)](_0x9ae27c=>this[_0x55537b(0x2c0)](_0x9ae27c,_0x3f9890));return;}let _0x5880cd=this[_0x55537b(0xdc)][_0x55537b(0x7a)](_0x590c05);if(_0x5880cd){for(let _0x4d9785=_0x5880cd[_0x55537b(0x1ee)]-0x1;_0x4d9785>=0x0;--_0x4d9785){let _0x1ea5b4=_0x5880cd[_0x4d9785];(_0x3f9890||_0x1ea5b4['canDispose']())&&(_0x1ea5b4['dispose'](),_0x5880cd[_0x55537b(0x180)](_0x4d9785,0x1));}_0x5880cd[_0x55537b(0x1ee)]===0x0&&(this['_disposePopupsByUnit'][_0x55537b(0x13c)](_0x590c05),this['_popupTargetKeys'][_0x55537b(0x13c)](_0x590c05));}}[_0x43e8a4(0x118)](_0x3493c8){const _0x1c1146=_0x43e8a4;let _0x476a10=this[_0x1c1146(0xdc)][_0x1c1146(0x7a)](_0x3493c8);if(_0x476a10)return _0x476a10;let _0x1b67c9=[];return this[_0x1c1146(0xdc)][_0x1c1146(0x290)](_0x3493c8,_0x1b67c9),_0x1b67c9;}['_popupMenuListener'](_0x3a7fe1){const _0x570f22=_0x43e8a4;var _0xfe51af;let _0x2b8969=new _0x4bf1ef(),_0x1c6518=(_0xfe51af=this['_renderManagerService'][_0x570f22(0x183)](_0x37d2f3[_0x570f22(0x10d)])[_0x570f22(0x2d0)](_0x404bd7=>_0x404bd7['scene']['getTransformerByCreate']()===_0x3a7fe1))==null?void 0x0:_0xfe51af[_0x570f22(0xa2)];return _0x1c6518&&(_0x2b8969[_0x570f22(0x106)](_0x3a7fe1[_0x570f22(0x1ac)]['subscribe'](()=>this[_0x570f22(0xa9)](_0x3a7fe1,_0x1c6518))),_0x2b8969[_0x570f22(0x106)](_0x3a7fe1['clearControl$']['subscribe'](()=>{const _0x4b91eb=_0x570f22;this[_0x4b91eb(0x2c0)](_0x1c6518),queueMicrotask(()=>{const _0x121fb6=_0x4b91eb;_0x3a7fe1[_0x121fb6(0x103)]()[_0x121fb6(0x73)]>0x0||!this['_drawingManagerService'][_0x121fb6(0x2bf)]()[_0x121fb6(0x1f5)](_0x4d7485=>_0x4d7485['unitId']===_0x1c6518)||(this[_0x121fb6(0xfc)][_0x121fb6(0x25c)](_0x2f74ce,!0x1),this[_0x121fb6(0x282)][_0x121fb6(0xd9)](null));});})),_0x2b8969[_0x570f22(0x106)](_0x3a7fe1[_0x570f22(0x190)]['subscribe'](()=>{const _0xb7d87e=_0x570f22;this[_0xb7d87e(0x2c0)](_0x1c6518,!0x0);}))),_0x2b8969;}[_0x43e8a4(0xa9)](_0x539cd6,_0x459758){const _0x38774b=_0x43e8a4;let _0x49103a=_0x539cd6['getSelectedObjectMap']();if(this['_isOpenedShapeEditPanel']){this[_0x38774b(0x2c0)](_0x459758,!0x0);return;}if(_0x49103a[_0x38774b(0x73)]>0x1){this[_0x38774b(0x2c0)](_0x459758);return;}let _0x36618b=_0x49103a[_0x38774b(0x22d)]()['next']()[_0x38774b(0x152)];if(!_0x36618b){this[_0x38774b(0x2c0)](_0x459758);return;}let _0x2bfa03=this[_0x38774b(0x282)][_0x38774b(0xc6)](_0x36618b[_0x38774b(0xef)]);if(!_0x2bfa03||_0x2bfa03[_0x38774b(0x119)]!==_0x1652cd[_0x38774b(0x156)]){this[_0x38774b(0x2c0)](_0x459758);return;}let {unitId:_0x303bdb,subUnitId:_0x26b744,drawingId:_0x504273,drawingType:_0x4a6890}=_0x2bfa03;if(!this[_0x38774b(0xcf)](_0x303bdb,_0x504273)){this[_0x38774b(0x2c0)](_0x459758,!0x0);return;}let _0x51457e=this[_0x38774b(0x277)](_0x303bdb,_0x26b744,_0x504273);if(!_0x51457e){this['_clearPopups'](_0x459758);return;}let _0x26b56b=this[_0x38774b(0xdc)][_0x38774b(0x7a)](_0x459758),_0x434a3e=_0x303bdb+':'+_0x26b744+':'+_0x504273;if(this[_0x38774b(0x245)][_0x38774b(0x7a)](_0x459758)===_0x434a3e&&_0x26b56b&&_0x26b56b[_0x38774b(0x1ee)]>0x0)return;this[_0x38774b(0x2c0)](_0x459758);let _0x1f39e0=this[_0x38774b(0xa3)]['getRenderUnitById'](_0x303bdb),_0x3a2319=((_0x1f39e0==null?void 0x0:_0x1f39e0[_0x38774b(0x193)])===!0x1?_0x1f39e0[_0x38774b(0x178)](_0x58fb7f):this[_0x38774b(0x28e)])[_0x38774b(0x1f2)](_0x36618b,this[_0x38774b(0xd2)](_0x51457e,_0x4a6890),_0x303bdb);this[_0x38774b(0xb3)](_0x3a2319),this[_0x38774b(0x118)](_0x459758)[_0x38774b(0x241)](_0x3a2319),this[_0x38774b(0x245)][_0x38774b(0x290)](_0x459758,_0x434a3e),this[_0x38774b(0x282)][_0x38774b(0x2bf)]()[_0x38774b(0x1f5)](_0x408445=>_0x408445[_0x38774b(0xa2)]===_0x303bdb&&_0x408445['subUnitId']===_0x26b744&&_0x408445[_0x38774b(0x198)]===_0x504273)||this[_0x38774b(0x282)][_0x38774b(0xd9)]([{'unitId':_0x303bdb,'subUnitId':_0x26b744,'drawingId':_0x504273}]);}[_0x43e8a4(0xd2)](_0x121418,_0x6846f9){const _0x567d61=_0x43e8a4;return{'componentKey':da,'requiresStableLayout':!0x1,'direction':'vertical-center','offset':[0x0,_0x274783],'extraProps':{'unitId':_0x121418[_0x567d61(0xa2)],'subUnitId':_0x121418['subUnitId'],'drawingId':_0x121418[_0x567d61(0x1a5)],'drawingType':_0x6846f9,'shapeType':_0x121418[_0x567d61(0x6d)],'shapeData':_0x121418[_0x567d61(0x240)]}};}['_canEditShape'](_0x19fbb9,_0x179d1e){const _0x4b4fd0=_0x43e8a4;let _0x201b1b=this[_0x4b4fd0(0x7b)][_0x4b4fd0(0x254)](_0x19fbb9,_0x37d2f3[_0x4b4fd0(0x10d)]);if(!_0x201b1b)return!0x1;let _0x18106f=_0x34c0dc(_0x201b1b,_0x179d1e);return _0xaad49(this['_permissionService'],_0x19fbb9,[..._0x1ed368(_0x201b1b,_0x18106f,_0x4b4fd0(0x292),_0x179d1e),_0x17c75c(_0x18106f,_0x4b4fd0(0x292),_0x179d1e)]);}[_0x43e8a4(0x2d3)](){const _0x4949e6=_0x43e8a4;this[_0x4949e6(0xb3)](this[_0x4949e6(0x10c)][_0x4949e6(0x1b3)](_0x1e7b77=>{const _0x57954e=_0x4949e6;if(_0x1e7b77['id']===G['id']){let {unitId:_0x32222c,subUnitId:_0x155de5,drawingId:_0x4f34af}=_0x1e7b77[_0x57954e(0x132)];this[_0x57954e(0x231)]+=0x1,this[_0x57954e(0x1b1)]=this[_0x57954e(0x277)](_0x32222c,_0x155de5,_0x4f34af),this[_0x57954e(0x2c0)](void 0x0,!0x0),this['_openShapeEditPanel']();}if(_0x1e7b77['id']===Bi['id']&&(this[_0x57954e(0x1b1)]=null,this[_0x57954e(0x2bd)]()),_0x1e7b77['id']===_0x4aaefb['id']){let {unitId:_0x501939,shapeId:_0x38e981}=_0x1e7b77['params'];if(this['_activeShapeInfo']&&this[_0x57954e(0x1b1)][_0x57954e(0x1a5)]===_0x38e981){let _0x44ca83=this[_0x57954e(0x277)](_0x501939,this[_0x57954e(0x1b1)][_0x57954e(0x2d2)],_0x38e981);_0x44ca83&&(this[_0x57954e(0x231)]+=0x1,_0x44ca83[_0x57954e(0x1bd)]=this[_0x57954e(0x231)],this[_0x57954e(0x1b1)]=_0x44ca83,this[_0x57954e(0x21a)]&&this[_0x57954e(0x10e)]());}}})),this[_0x4949e6(0xb3)](this[_0x4949e6(0x282)]['focus$'][_0x4949e6(0x120)](_0xb2d469=>{const _0xc25e90=_0x4949e6;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0xb2d469['length']===0x0){this[_0xc25e90(0x1b1)]=null,this[_0xc25e90(0x2bd)]();return;}if(_0xb2d469[_0xc25e90(0x1ee)]===0x1&&_0xb2d469[0x0][_0xc25e90(0x119)]===_0x1652cd[_0xc25e90(0x156)]&&(this[_0xc25e90(0x231)]+=0x1,this[_0xc25e90(0x1b1)]=this[_0xc25e90(0x277)](_0xb2d469[0x0][_0xc25e90(0xa2)],_0xb2d469[0x0][_0xc25e90(0x2d2)],_0xb2d469[0x0][_0xc25e90(0x198)]),this[_0xc25e90(0x1b1)])){this[_0xc25e90(0x10e)]();return;}let _0x5b416d=_0xb2d469['filter'](_0x43cb03=>_0x43cb03[_0xc25e90(0x119)]===_0x1652cd[_0xc25e90(0x156)]);if(_0xb2d469[_0xc25e90(0x1ee)]>0x1&&_0x5b416d[_0xc25e90(0x1ee)]===_0xb2d469[_0xc25e90(0x1ee)]){if(this[_0xc25e90(0x231)]+=0x1,this[_0xc25e90(0x1b1)]=this[_0xc25e90(0x277)](_0xb2d469[0x0]['unitId'],_0xb2d469[0x0][_0xc25e90(0x2d2)],_0xb2d469[0x0][_0xc25e90(0x198)]),this['_activeShapeInfo']){this[_0xc25e90(0x10e)]();return;}}else{if(this[_0xc25e90(0x231)]+=0x1,this[_0xc25e90(0x1b1)]=this['_getShapeInfo'](_0xb2d469[0x0][_0xc25e90(0xa2)],_0xb2d469[0x0][_0xc25e90(0x2d2)],_0xb2d469[0x0][_0xc25e90(0x198)]),this[_0xc25e90(0x1b1)]){this[_0xc25e90(0x1b1)][_0xc25e90(0x1cc)]=!0x0,this[_0xc25e90(0x10e)]();return;}}this[_0xc25e90(0x2bd)]();}));}[_0x43e8a4(0x10e)](){const _0x33a63b=_0x43e8a4;this[_0x33a63b(0x1b1)]&&(this[_0x33a63b(0x9b)]=this[_0x33a63b(0x1c9)]['open']({'id':W,'header':{'title':this[_0x33a63b(0x267)]['t'](_0x33a63b(0x21d))},'width':0x184,'children':{'label':W,...this['_activeShapeInfo']},'onClose':()=>{const _0x103062=_0x33a63b;this[_0x103062(0x282)][_0x103062(0xd9)](null),this[_0x103062(0xfc)][_0x103062(0x25c)](_0x2f74ce,!0x1),this[_0x103062(0x9b)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0x43e8a4(0x2bd)](){const _0x363556=_0x43e8a4;this[_0x363556(0x21a)]=!0x1,this[_0x363556(0x1c9)]['close'](W),this[_0x363556(0x9b)]=null,this[_0x363556(0xfc)][_0x363556(0x25c)](_0x2f74ce,!0x1),this['_drawingManagerService']['focusDrawing'](null);}};Ma=q([K(0x0,_0x58ad01),K(0x1,_0x376ec2(_0x5cd437)),K(0x2,_0x354de5),K(0x3,_0x376ec2(_0x3e6ec4)),K(0x4,_0x376ec2(_0x474b31)),K(0x5,_0x5d4fd5),K(0x6,_0x4ed84c),K(0x7,_0x376ec2(_0x58fb7f)),K(0x8,_0x20175c),K(0x9,_0x46b73a),K(0xa,_0x376ec2(X)),K(0xb,_0x1b33f3)],Ma);let Na=class extends _0x143425{constructor(_0x189f1d,_0x43b57b){const _0x2c4fa1=_0x43e8a4;super(),this[_0x2c4fa1(0x17f)]=_0x189f1d,this[_0x2c4fa1(0x267)]=_0x43b57b,this[_0x2c4fa1(0xb3)](_0x44b80c(_0x387221((_0x4f8b75,_0x3481d8,_0x1fca2f)=>this[_0x2c4fa1(0x78)](_0x4f8b75,_0x3481d8,_0x1fca2f))));}[_0x43e8a4(0x78)](_0x14b2e4,_0x2f4b9f,_0x4ff36f){const _0xa42022=_0x43e8a4;let _0x390107=this[_0xa42022(0x17f)][_0xa42022(0x100)](_0x14b2e4,_0x2f4b9f);if(!_0x390107)return null;let _0x5a2945=_0x390107[_0xa42022(0x299)](),_0x4be86e=_0x94d984(_0x5a2945),_0x5aef33=_0x5a2945['shapeText'];if(!_0x5aef33||_0x4be86e[_0xa42022(0x1a9)]!==_0x4b45c6[_0xa42022(0x263)])return null;let _0x39582b=_0x4ff36f[_0xa42022(0xc8)],_0x2fec33=_0x4ff36f[_0xa42022(0x2a7)];_0x390107[_0xa42022(0x2bc)]({'width':_0x39582b,'height':_0x2fec33});let _0x431e7a=_0x390107[_0xa42022(0x131)]({'left':0x0,'top':0x0,'width':_0x39582b,'height':_0x2fec33}),_0x66e563=_0x33266c('dataModel'in _0x5aef33?_0x5aef33['dataModel']:void 0x0),_0x4adb9e=(_0x66e563==null?void 0x0:_0x66e563['doc'])??(_0xa42022(0x145)in _0x5aef33?_0x5e99a9(_0x5aef33,_0x2f4b9f+'-layout'):null);if(!_0x4adb9e)return null;let _0x226690=_0x4b8d5f({'documentData':_0x4adb9e,'height':_0x2fec33,'shapeData':_0x5a2945,'textRect':_0x431e7a,'width':_0x39582b,'widthBuffer':0x0});_0x226690&&({width:_0x39582b,height:_0x2fec33}=_0x226690,_0x390107[_0xa42022(0x2bc)]({'width':_0x39582b,'height':_0x2fec33}),_0x431e7a=_0x390107[_0xa42022(0x131)]({'left':0x0,'top':0x0,'width':_0x39582b,'height':_0x2fec33}));let _0x29b09a=_0x5aef33[_0xa42022(0x2cb)]!==!0x1,_0x116990=_0x26bed1(_0x4adb9e,{'isHorizontal':_0x29b09a,'textRect':_0x431e7a,'verticalAlign':_0x66e563==null?void 0x0:_0x66e563['va'],'horizontalAlign':_0x66e563==null?void 0x0:_0x66e563['ha'],'wrapStrategy':_0xd357af(_0x5a2945)}),_0x55155d=new _0x2925ba(_0x116990),_0x39a1bf=new _0x4be549(_0x55155d),_0x3bf27b=_0x122642['create'](_0x39a1bf,this['_localeService']);try{var _0x55adb5,_0x275868;_0x3bf27b[_0xa42022(0xf3)]();let _0x19e971=((_0x55adb5=_0x3bf27b[_0xa42022(0x238)]())==null?void 0x0:_0x55adb5['pages'])??[],_0x4e0d25=_0x19e971[_0x19e971[_0xa42022(0x1ee)]-0x1],_0x2a0ed7=_0x4e0d25?Math['max'](0x0,((_0x275868=_0x5d8276(_0x4e0d25))==null?void 0x0:_0x275868[_0xa42022(0xd1)])??0x0):0x0,_0x30130a=_0x3bf27b[_0xa42022(0xf0)]()[_0xa42022(0x199)]+_0x2a0ed7-(_0x29b09a?_0x431e7a[_0xa42022(0x204)]:_0x431e7a[_0xa42022(0x7d)]);return Number['isFinite'](_0x30130a)?_0x29b09a?{'width':_0x39582b,'height':Math[_0xa42022(0x75)](0x1,_0x2fec33+_0x30130a)}:{'width':Math[_0xa42022(0x75)](0x1,_0x39582b+_0x30130a),'height':_0x2fec33}:null;}finally{_0x3bf27b[_0xa42022(0xb0)](),_0x39a1bf['dispose'](),_0x55155d[_0xa42022(0xb0)]();}}};Na=q([K(0x0,_0x376ec2(_0x3e6ec4)),K(0x1,_0x376ec2(_0x474b31))],Na);function _0xe027(_0x1f4139,_0x427651){_0x1f4139=_0x1f4139-0x67;const _0x3d03bb=_0x3d03();let _0xe02794=_0x3d03bb[_0x1f4139];return _0xe02794;}let $=class extends _0x48417e{constructor(_0xc9c907=Hi,_0x5a997b,_0x5c8c7e,_0x4bdcee,_0x15851e){const _0x23ad2e=_0x43e8a4;super(),this[_0x23ad2e(0x28d)]=_0xc9c907,this[_0x23ad2e(0x1ae)]=_0x5a997b,this[_0x23ad2e(0x10c)]=_0x5c8c7e,this[_0x23ad2e(0x1f3)]=_0x4bdcee,this[_0x23ad2e(0xa3)]=_0x15851e;let {menu:_0x23b168,..._0x3fd391}=_0x77c685({},Hi,this['_config']);_0x23b168&&this[_0x23ad2e(0x1f3)]['setConfig']('menu',_0x23b168,{'merge':!0x0}),this[_0x23ad2e(0x1f3)][_0x23ad2e(0x211)](Vi,_0x3fd391),this['_initCommands']();}[_0x43e8a4(0x257)](){const _0x59f9b6=_0x43e8a4;_0x1fed5b(this['_injector'],this['_getDependencies']()),this[_0x59f9b6(0x1ae)][_0x59f9b6(0x7a)](wa),this[_0x59f9b6(0x160)]();}[_0x43e8a4(0x22a)](){return[[wa],[Ma],[Ca],[Z],[Xi],[Ji],[Ir],[aa],[Na],[X],[Sa]];}[_0x43e8a4(0x22b)](){const _0x5cc64e=_0x43e8a4;this[_0x5cc64e(0x1fa)]()['forEach'](_0x2679a1=>{const _0x5da197=_0x5cc64e;this[_0x5da197(0xb3)](this[_0x5da197(0xa3)]['registerRenderModule'](_0x37d2f3[_0x5da197(0x10d)],_0x2679a1));}),_0xd342cc(this['_injector'],[[Ma],[Ca],[Z],[Xi],[Ir],[aa],[Na],[X],[Sa]]);}['_getRenderModules'](){return[[Ji],[ka],[ja],[Ta]];}['onRendered'](){const _0x44c44a=_0x43e8a4;this['disposeWithMe'](this[_0x44c44a(0xa3)][_0x44c44a(0x1b2)](_0x37d2f3['UNIVER_DOC'],[Aa]));}['_initCommands'](){const _0x128220=_0x43e8a4;[U,Bi,G,Mr,Pr,Fr]['forEach'](_0x3f5291=>this['disposeWithMe'](this[_0x128220(0x10c)][_0x128220(0x70)](_0x3f5291)));}[_0x43e8a4(0x160)](){const _0x5c7364=_0x43e8a4;let _0xe2e0db=this[_0x5c7364(0x1ae)],_0x3a0b08=_0xe2e0db['get'](_0x4c7e7e);this['disposeWithMe'](_0x3a0b08[_0x5c7364(0x14b)](_0x40e763[_0x5c7364(0x1c8)],()=>_0x3697e2(va,_0xe2e0db)));}};J($,_0x43e8a4(0x297),_0x37d2f3[_0x43e8a4(0x10d)]),J($,_0x43e8a4(0x10f),'DOCS_SHAPE_UI_PLUGIN'),J($,_0x43e8a4(0x1c4),Ri),J($,_0x43e8a4(0x1bd),zi),$=q([_0x1a58e1(_0x1f5858,_0x3dc614,_0x41fe11,_0x1896a6,_0x55fd02,_0x4a2dcb,_0x2830ac,_0x34d5cc,_0x2e07fc,_0x40cd8a),K(0x1,_0x376ec2(_0x3fea17)),K(0x2,_0x5d4fd5),K(0x3,_0x47ac1d),K(0x4,_0x20175c)],$);export{Li as DocsShapeUIMenuSchema,Q as UniverDocsShapeMobileUIPlugin,$ as UniverDocsShapeUIPlugin};
|
|
1
|
+
const _0x48e9aa=_0x1801;(function(_0xc1c43d,_0x117810){const _0x27342c=_0x1801,_0xcc0fb9=_0xc1c43d();while(!![]){try{const _0x1c29db=parseInt(_0x27342c(0x241))/0x1+-parseInt(_0x27342c(0x172))/0x2+-parseInt(_0x27342c(0x264))/0x3*(parseInt(_0x27342c(0x2e6))/0x4)+-parseInt(_0x27342c(0x35a))/0x5+-parseInt(_0x27342c(0x1d2))/0x6*(parseInt(_0x27342c(0x276))/0x7)+parseInt(_0x27342c(0x2b7))/0x8*(-parseInt(_0x27342c(0x263))/0x9)+parseInt(_0x27342c(0x29c))/0xa;if(_0x1c29db===_0x117810)break;else _0xcc0fb9['push'](_0xcc0fb9['shift']());}catch(_0x13d30d){_0xcc0fb9['push'](_0xcc0fb9['shift']());}}}(_0x35b2,0xaa581));import{FormulaShapeAnimationController as _0x4d714e,MobileShapeEditorControls as _0x5369af,MobileShapeEditorService as _0x32d977,MobileShapePickerPanel as _0x4e8fda,SHAPE_CHANGE_PICKER_COMPONENT as _0x8d323,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x2e6107,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x2fff3d,ShapeEditPanel as _0x100193,ShapeFloatingToolbar as _0x388578,ShapeFloatingToolbarService as _0x28a5be,ShapeFloatingToolbarToggleFactory as _0x42a122,ShapeFormulaRibbonControl as _0x22ffc0,ShapeGroupEnum as _0x32669e,ShapePickerDropdown as _0x42f5d0,ShapePickerPanel as _0x2746cb,ShapeQuickStyleGallery as _0x2c2d61,ShapeStyleRibbonControl as _0x1fc71b,ShapeTextEditorContainer as _0x28ff8e,ShapeTextFloatMenuRenderControllerBase as _0x3c51ae,ShapeTextFloatToolbar as _0x3656e4,ShapeTextHyperLinkHoverController as _0x4ce0f6,ShapeTextHyperLinkInfo as _0x54b7a6,ShapeTextHyperLinkPopupService as _0x6fa421,ShapeTextRibbonControl as _0x52c832,ToggleShapeFloatingToolbarOperation as _0x1eb8e0,UniverShapeEditorMobileUIPlugin as _0x231fc1,UniverShapeEditorUIPlugin as _0x3aa104,activateDrawingObject as _0x1527c2,bindRenderTransformerLifecycle as _0x209159,buildShapeTextDataUpdate as _0x55fe35,clearActiveDrawingObjects as _0x36f14a,createShapeTextHyperLinkRegions as _0x42d63b,drawFormulaShapeAnimationLayers as _0x20394d,getDrawingTypeNameKey as _0x41e858,getTextModel as _0x1d0ec9,getTextStyle as _0x3660ae,normalizeShapeTextModel as _0xe2a736,plainShapeTextToDocumentData as _0x208a3c,prepareShapeTextDocumentData as _0x59d1e9,prepareShapeTextDocumentData as _0x778e79,registerShapeFormatPainter as _0x75c66a,resolveFormulaShapeAutoFitSize as _0x4d25f2,resolveShapeContextualRibbonHostMode as _0x477e9c,resolveShapeTextDocumentPageHeight as _0x38ccf8,resolveShapeTextDocumentRenderLayout as _0xc4dd47,resolveShapeTextEditorBehaviorShapeData as _0x41632b,resolveShapeTextEditorWrapStrategy as _0x47e60a,resolveShapeTextHyperLinkAt as _0x342a9a,resolveShapeTextHyperLinkObject as _0x592ae5,shouldAllowShapeTextEditorHostSizeShrink as _0x5b14d8,shouldClipShapeTextDocument as _0x560c0f,useFormulaShapeToolbar as _0x57cb62}from'@univerjs-pro/shape-editor-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0x11a561,DOC_CONTENT_INSERT_MENU_ID as _0x3aa164,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x26e176,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x12026b,DocCanvasPopManagerService as _0x424f17,DocEventManagerService as _0x5274f3,DocLayoutInteractionService as _0x4c4e3a,DocParagraphMenuService as _0x1f41cd,DocPrintInterceptorService as _0xb98ad3,DocRenderController as _0x4506c7,DocSelectionRenderService as _0x249726,EMPTY_PARAGRAPH_MENU_ID as _0x4a1cec,INSERT_BELLOW_MENU_ID as _0x271070,UniverDocsMobileUIPlugin as _0x4d3e53,UniverDocsUIPlugin as _0x5f3cbc,VIEWPORT_KEY as _0x319e90}from'@univerjs/docs-ui';import{BuiltInUIPart as _0x44e860,ComponentManager as _0x453046,ContextMenuGroup as _0x42bd46,ContextMenuPosition as _0x926ff8,FloatingObjectToolbarPosition as _0x4beada,FormatPainterSessionService as _0x46bf28,IMenuManagerService as _0x4fa574,IRibbonService as _0x2b6fcb,ISidebarService as _0x4e2095,IUIPartsService as _0x320a32,IconManager as _0x45eb8f,MenuItemType as _0x2ad9e0,MenuManagerPosition as _0x55b5e3,MobileMenu as _0x582da7,ObjectPermissionButton as _0x2612ac,RibbonInsertGroup as _0x337646,connectInjector as _0x3dfa13,getMenuHiddenObservable as _0xa747d0,useDependency as _0x14b48c,useObservable as _0x157dfc}from'@univerjs/ui';import{DEFAULT_DOC_SHAPE_HEIGHT as _0x11f235,DEFAULT_DOC_SHAPE_WIDTH as _0x2155dc,DocShapeAnchorPosition as _0xca1d7e,DocsShapeService as _0x5b7f91,InsertDocShapeCommand as _0x5be0fc,UniverDocsShapePlugin as _0x2bf01c,UpdateDocDrawingMetadataCommand as _0x15d643,UpdateDocShapeDataCommand as _0x44bda9,UpdateDocShapeDataMutation as _0x1a7d3e}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x479c00,ShapeArrowSizeEnum as _0x59932a,ShapeArrowTypeEnum as _0x26d93c,ShapeDefaultConfig as _0x516b6b,ShapeFillEnum as _0xee9cb9,ShapeLineTypeEnum as _0x26062b,ShapeModel as _0x10d748,ShapeRenderModeEnum as _0x4c042f,ShapeTextAutoFitType as _0x3fb06d,ShapeTypeEnum as _0x8cab7,isConnectorShape as _0x32d327,resolveShapeTextBodyBehavior as _0x435457}from'@univerjs-pro/engine-shape';function _0x35b2(){const _0x43b1d3=['273yqsrhY','_canEditShape','spaceBelowApply','onload','_ribbonService','_draw','shape-editor-ui.toolbar.quickStyles','docs-shape-ui.mobile.delete','_commandService','drawing-ui.objectListPanel.empty','drawing','None','updateShapeFillImage','push','getSelectedObjectMap','_adjHandlerPointerMove','SHAPE_TEXT','complete','formulaBinding','translate','paragraphMenuPlacement','_clearCompletionFrame','shape-editor-ui.arrange.forward','pluginName','onSavingEditorData$','has','docs-shape-ui.shape-format.text-ribbon-control','top-center','componentKey','setPresentation','resize','getImage','docs-shape-ui.config','0\x200\x2020\x2020','getShapeTypeById','pipe','_init','OTHERS','31302500dFgCBp','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','docs-shape-ui.textWrap.inFrontText','filter','_updateShapeAdjustControls','top-bottom','default','_visible','context-bar','M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','restore','getEditing','_baseShapeHeight','canDispose','setPrstGeom','drawing-ui.objectListPanel.name','getDrawingOKey','doc.shape.text.float-menu','params','addImageSourceCache','oKey','_shapeTextEditingService','drawing-ui.objectListPanel.hideAll','refreshAdjustControls','get','registerRenderModule','_completionFrame','19456HAnXgU','LAYOUT','startOffset','getPageDrawingIds','_addShapeAdjustControl','_adjustPointObjects','_docCanvasPopManagerService','width','call','getActiveViewportByCoord','_docPrintInterceptorService','objects','clone','headerId','drawing-ui.objectListPanel.expand','behindDoc','contentHeight','_urlImageService','_applyFormulaAutoFitSize','0.8','1.2','getRenderUnitById','resolveHyperLinkAt','isInGroup','docs-shape-ui.ribbon.shape-format.text-control','close','_lastEditingShapeKey','clip','getViewports','getSelfOrHeaderFooterModel','strokeWidth','docs-shape-ui.objectListPanel.open','_activeShapeModel','ShapeIcon','ShapeFormatSettingIcon','vertical','getUnit','_registerFloatingToolbar','_docsShapeService','DOC','div','popup','fontFamily','layoutType','getInterceptPoints','OFFSET','_getShapeInfo','20mfvmph','subUnitId','getFocusDrawings','TOP','shape-editor-ui.toolbar.changeShape','onTransformChange$','_baseShapeWidth','currentAdjustValues','_getSceneByUnitId','flipX','shape-editor-ui.arrange.backward','error','univer-grid\x20univer-gap-3','_initMenu','actions','getObjectIncludeInGroup','marginTop','some','pageWidth','Rect','focusDrawing','sectionFloating','docs-shape-ui.textWrap.square','Arrow','preValue','create','_config','_insertShapes','_baseShapeLeft','classType','COMMAND','setCursor','_registerDrawingFocusChangeHandler','shapeType','_toVisualAdjustPoint','isRenderLinePointsMode','DRAWING_DOM','getPresentation','getRealBound','keys','transform','_createShapeAdjustControls','transformForAngle','getShapeTextData','values','PictureFill','shapeText','drawing-ui.objectListPanel.show','forward','5.5','prstGeom','getSnapshot','getShapeModel','doc.operation.update-shape-type','_registerPickers','IN_FRONT_OF_TEXT','refreshFormulaPresentation','panel','type','length','_disposePopupsByUnit','_renderManagerService','doc.operation.close-doc-shape-format-panel','_context','_update','getDrawingByParam','_getActiveDrawingShape','docs-shape-ui.ribbon.shape-format.arrange-back','_updateSrcRectByTransform','front','_hide','_initSelection','_shapeRenderController','sectionCanvas','endArrow','_formulaKey','WRAP_TOP_AND_BOTTOM','doc','dispose','OPERATION','disableShapeOption','remove$','path','presetId','_toScenePoint','subscribe','name','with','setContextValue','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','isHorizontal','univer-box-border\x20univer-px-4\x20univer-text-sm','multiply','FromArray','_adjHandlerPointerUp','getValue','MoveDownIcon','_sidebarService','doc.operation.open-shape-object-list-panel','find','getImageSourceCache','setSrcRect','back','docs-shape-ui.objectListPanel.title','_registerImageShapeClipDelegate','getUnitType','clipByShape','drawing-ui.objectListPanel.title','activeTarget','prototype','register','_docLayoutInteractionService','presentation','_getActiveDrawingParam','_configService','_registerIcons','5984470JCRopY','none','getMatrix','_shapeFloatingToolbarService','doc.operation.apply-shape-quick-style','_adjName','value','height','order','_docDrawingShapeRenderController','image','dataModel','BUTTON','iterator','isMainScene','_getShapePopup','isRichText','_onSavingEditorData$','docs-shape-ui.ribbon.shape-format.arrange-forward','PRINTING_COMPONENT_COLLECT','_drawingType','drawing-ui.objectListPanel.unlock','isEditing','_canEdit','extensionGroups','_registerObjectListPanel','reduce','WRAP_SQUARE','docs-shape-contextual-ribbon','executeCommand','open','docs-shape-ui.insertShape','onPointerDown$','DocumentEntity','isHitLine','isolated','refreshShapeFillImage','_drawShapeText','pages','calcAdjValues','doc.image-clip.shape-picker.component','shape-editor-ui.arrange.back','updateContext','_getShapeAdjustPointListById','docs-shape-text-','drawing-ui.objectListPanel.lockHint','string','WRAP_NONE','_contextService','startArrow','RIBBON','intercept','getTransformerByCreate','decorate','trim','left','shapeKey','debounceRefreshControls','renderDrawingShape','icon','_activeShapeAdjustPointList','label','_imageIoService','_univerInstanceService','changeEnd$','_clearShapeAdjustControls','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','_editingParams$','footerId','fillImageSource','drawing-ui.objectListPanel.moveBackward','enhanceParams','makeDirty','BottomIcon','_popupMenuListener','SolidFill','round','adjHandleSize','getCurrentUnitOfType','_closeShapeEditPanel','drawing-ui.objectListPanel.descriptionPlaceholder','max','clipTop','_popupTargetKeys','isFinite','-layout','setShapeProps','buildClipPath','behindText','shapeId','getTransformer','adjHandleStroke','transformByState','_drawRichTextLayer','PARAGRAPH','visible$','fallbackWidth','docs-shape-ui.shape-format.quick-style-gallery','offsetY','UUID','syncExecuteCommand','shapeData','_localeService','visible','fill','getParent','description','onCommandExecuted','_initUIPart','registerClipDelegate','moveRange','setCanUseShapeClip','_getDisposePopups','docs-shape-ui.ribbon.shape-format.formula-control','setOnSavingEditorData','_drawRichText','refreshTransform$','skeHeaders','TopmostIcon','1.2.0','URL','forEach','adjName','onDblclick$','flatMap','shape-text-','addObject','_subUnitId','add','registerComponent','disposeWithMe','getAllRenderersOfType','getVisible','vertical-center','_loadAndSetImage','setFormulaPresentation','docs-shape-ui.shape-format.formula-ribbon-control','completeEditing','clear','SpAutoFit','drawing-ui.objectListPanel.description','selectable','273274cipnRO','@univerjs-pro/docs-shape-ui','draw','includes','UNIVER_SHEET','map','startIndex','cancelEditing','drawing-ui.objectListPanel.filterLocked','_sidebarDisposable','getActiveTextRange','getAutoFitPresentations','getDrawingDataForUnit','SHAPE','getSkeletonData','interceptor','drawing-ui.objectListPanel.showAll','pick','formulaPresentation','sin','setConfig','doc.shape.floating-toolbar','footerLayoutKey','docs-shape-ui.formatShape','canvas','unregister','_activeShapeInfo','fontSize','invert','getState','docs-shape-ui.deleteShape','_activeShapeId','behind','onerror','offsetX','INLINE','extraProps','getFocusedUnit','getAdjustValueByName','_attachAdjustEvent','animateFormulaPresentation','horizontal','_menuManagerService','function','_isStartAdjusting','_componentManager','_releaseRenderCache','packageName','_unitId','docs-shape-ui.ribbon.shape-format.wrapping-style','_activeAdjustInfo','calculate','headerLayoutKey','_hyperLinkRegions','currentColor','symbol','_transform','indexOf','getInverseCoord','getDrawingVisible','object','DOCS_SHAPE_UI_PLUGIN','getDrawingData','_shapeEditPanelVersion','_getDependencies','DocsShapeWrapInFrontOfTextIcon','getScene','_initEditingParams','cos','delete','_measure','onPointerUp$','_layoutInteraction','getShapeDataById','skeTables','editingParams$','Path','docs-shape-ui.hidePanel','_getShapeAdjustInfosById','_isOpenedShapeEditPanel','_injector','svg','univer-grid\x20univer-gap-5\x20univer-p-3','contentVerticalOffset','getShapeType','_getFocusedShapeAtPoint','_getRenderModules','translateWithPrecision','ancestorTransform','angle','shape-editor-ui.arrange.front','shapeModel','_shapeFormulaService','BEHIND_TEXT','_drawSimpleText','entries','121548OSDCLA','TRUE','save','onStarting','getDrawingEditable','drawingId','top','SELECTOR','drawing-ui.objectListPanel.noSelection','GROUP','docs-shape-ui.crop.shape','setEditing','drawing-ui.objectListPanel.unlockAll','square','subtle','docs-shape-ui.ribbon.shape-format.style-control','fallbackHeight','_endLayoutInteraction','drawing-ui.objectListPanel.hide','#2563EB','title','_clipService','setCollapsedIds','_shapeId','_initEvents','doc-shape-adjust-point-','DocsShapeWrapTopBottomIcon','clearControl$','getShapeData','isDrawingObject','scale','docs-shape-ui.mobile.text','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','drawings','drawingType','createControl$','asObservable','scene','stopPropagation','color','menu','_props','_refreshShapeData','docs-shape-ui.ribbon.shape-format.arrange-front','DocsShapeWrapSquareIcon','_handleCreateControl','getDrawingSearch','fillType','drawing-ui.objectListPanel.details','setFillImage','drawing-ui.objectListPanel.search','_mobileEditorService','drawing-ui.objectListPanel.unlockHint','doc.shape.edit.panel','hidden','stroke','canvasElement','mergeMenu','docs-shape-ui.textWrap.inline','drawing-ui.objectListPanel.filterHidden','drawing-ui.objectListPanel.moveForward','style','_registerComponents','registerCommand','inline','localeService','bottom','docs-shape-ui.textWrap.behindText','below','next','.below','_permissionService','_iconManager','_baseShapeTop','presentationChanged$','MEDIA','ObjectLayersIcon','getBody','_formulaShapes','LEFT','permissionPointUpdate$','_updateAdjustControlPositions','docs-shape-format-font-family-menu','unitId','update$','_formulaAnimation','version','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','disableObjectsEvent','unsubscribe','_openShapeEditPanel','changeStart$','getOwnPropertyDescriptor','beginPath','animationEnabled','_initCommands','PaintIcon','0.14','_clearPopups','drawing-ui.objectListPanel.filterAll','size','UNIVER_DOC','defineProperty','getCurrentTypeOfUnit$','clip-','endOffset','getCanvasElement','_registerDrawingTransformHandler','getUnitId','parent','autoFitType','1315681iVweAG','DRAWING_SHAPE','getDrawingOrder','getDrawingPoints','docs-shape-ui.quickStyles','_isShouldShowDrawingShapeAdjust','focus$','splice','doc.shape.picker.component','adjHandleFill','rect','isLineShape','enableObjectsEvent','actualHeight','setShapeData','paragraphs','_initialize','drawWith','clipHeight','segmentId','showContextualTab','doc.shape.object-list.panel','_drawingManagerService','getShapePopupMenus','constructor','skeFooters','flipY','DocsShapeTextEditorContainer','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','attachPopupToObject','_transformCalculateSrcRect','changing$','isRender','getShapeTextRect','3618wiYztz','388167VWQXhJ','render','_registerOperations','MoveUpIcon','_instanceService','hideContextualTab','_initPrinting','setFallbackVisible','Copy','srcRect','text','set','featurePluginUpdateNotification','_loadShapePictureFill','drawing-ui.objectListPanel.sectionCanvas','docs-shape-ui.textWrap.topAndBottom','getDrawingEffectBounds','subscribeEvent'];_0x35b2=function(){return _0x43b1d3;};return _0x35b2();}import{ShapeFormulaService as _0x473a92,UniverShapeEditorPlugin as _0x57eb8b,applyQuickStyleToShapeData as _0x4f4f63,cloneShapeDataForType as _0x2ca3cf,createShapeFormulaDocument as _0xfe5d5c,createShapeTextBoxShapeData as _0x1e9d2c,getShapeQuickStylePreset as _0x3f86c1,getShapeQuickStyleType as _0x2c3147,resolveActiveShapeQuickStylePresetId as _0xba9290}from'@univerjs-pro/shape-editor';import{ArrangeTypeEnum as _0x1b9d3e,BooleanNumber as _0x5676e9,CommandType as _0x5c5562,DependentOn as _0x2b96d8,Disposable as _0x5207f2,DisposableCollection as _0x3ef51c,DocumentDataModel as _0x1c9d0c,DrawingTypeEnum as _0x4a830a,FOCUSING_COMMON_DRAWINGS as _0x5afdc7,FOCUSING_SHAPE_TEXT_EDITOR as _0x5d8de8,HorizontalAlign as _0xafeed3,ICommandService as _0x1310fd,IConfigService as _0x3c23ad,IContextService as _0x3d8672,IImageIoService as _0x3afaf7,IPermissionService as _0x558aa1,IURLImageService as _0x491ef3,IUniverInstanceService as _0x3d68d4,Inject as _0x279b1a,Injector as _0x2c78fa,LocaleService as _0x35ebd3,Plugin as _0x1c21ad,PositionedObjectLayoutType as _0x1bbcc2,UniverInstanceType as _0x42988e,VerticalAlign as _0xe843d7,createInternalEditorID as _0x12a3ce,generateRandomId as _0x44f562,getParagraphContentStartOffset as _0x3be31d,merge as _0x448683,registerDependencies as _0x496b90,toDisposable as _0x1fb9e7,touchDependencies as _0x43ee11}from'@univerjs/core';import{DocInterceptorService as _0x331ead,DocSelectionManagerService as _0x5c4205,RichTextEditingMutation as _0x831419,SetDocumentPermissionCommand as _0x3733e9,UniverDocsPlugin as _0x52bbc7,canEditDocumentTargets as _0x409214,getDocumentDrawingSegmentId as _0x59cb02,getDocumentEntityParentPermissionObjectIds as _0x15f270,getDocumentEntityPermissionObjectId as _0x4ffa0c,getDocumentPermissionValue as _0x50c3c6}from'@univerjs/docs';import{IDocDrawingService as _0x534537,RemoveDocDrawingCommand as _0x319dc1,SetDocDrawingArrangeCommand as _0x7d8137,TextWrappingStyle as _0x2f464f,UpdateDocDrawingWrappingStyleCommand as _0x1261a7,UpdateDrawingDocTransformCommand as _0x148f10}from'@univerjs/docs-drawing';import{CURSOR_TYPE as _0x16d77d,Circle as _0x56b355,DRAWING_OBJECT_LAYER_INDEX as _0x388b9d,DocumentSkeleton as _0x427213,DocumentViewModel as _0xa9a5bb,Documents as _0x40e6ad,IRenderManagerService as _0xa0de3a,RENDER_CLASS_TYPE as _0x5bbdb7,Shape as _0x263561,Transform as _0x3c60b5,UniverRenderEnginePlugin as _0x428570,Vector2 as _0x27cac4,getLastLine as _0xa9e3f2,setDocsCustomBlockRenderViewportProvider as _0x592a76}from'@univerjs/engine-render';import{IDrawingManagerService as _0x5eaac6,SetDrawingSelectedOperation as _0x46859a,UniverDrawingPlugin as _0x20b1c6,getDrawingShapeKeyByDrawingSearch as _0x309ca8}from'@univerjs/drawing';import{DrawingCommonPanel as _0x179135,DrawingImageClipService as _0x1bd85a,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x286083,MobileObjectListPanel as _0x357bd1,OBJECT_LIST_FLOATING_SECTION_ID as _0xb26a48,ObjectListPanelBase as _0x461767,UniverDrawingMobileUIPlugin as _0x30c120,UniverDrawingUIPlugin as _0x284947,getObjectListPanelSectionIdForDrawingType as _0x540cec,insertGroupObject as _0x7caf32}from'@univerjs/drawing-ui';import{Fragment as _0x19fcc6,jsx as _0x25380b,jsxs as _0x546382}from'react/jsx-runtime';import{BehaviorSubject as _0x25ff07,Observable as _0x39feb9,distinctUntilChanged as _0x2f5185,map as _0x3f0bcb,merge as _0x3032d0,of as _0xc90f1c,startWith as _0x33c91d}from'rxjs';import{UniverLicensePlugin as _0x5554a3}from'@univerjs-pro/license';import{DocDrawingPosition as _0x35f556,DocDrawingTextWrap as _0x33ce4c,MobileDocDrawingPosition as _0x190fce,MobileDocDrawingTextWrap as _0x1e6140,UniverDocsDrawingMobileUIPlugin as _0xd86f40,UniverDocsDrawingUIPlugin as _0x38b1bc}from'@univerjs/docs-drawing-ui';import{BottomIcon as _0x5c9f15,MoreDownIcon as _0x2884b2,MoreUpIcon as _0x4b51ef,MoveDownIcon as _0x181ddd,MoveUpIcon as _0x5457e8,ObjectLayersIcon as _0x73f84a,ShapeFormatSettingIcon as _0x1c7c9b,TextWrapShapeIcon as _0x362824,TopmostIcon as _0x4b8a19}from'@univerjs/icons';import{MobileActionRow as _0x662bbf}from'@univerjs/design';import{memo as _0x141c96,useEffect as _0x23435c,useMemo as _0x5b35d0,useReducer as _0xd0f519,useState as _0x547678}from'react';import{UnitAction as _0x26044a,UnitObject as _0x772c4c}from'@univerjs/protocol';function wr(_0x2386bb,_0x21b982){const _0x1c7e5c=_0x1801;if(_0x21b982){if(_0x32d327(_0x2386bb)&&(_0x21b982[_0x1c7e5c(0x38b)]||_0x21b982[_0x1c7e5c(0x330)]))return{'ln':{'startArrow':_0x21b982['startArrow']?{'type':_0x26d93c[_0x1c7e5c(0x2fd)],'size':_0x59932a['Medium']}:void 0x0,'endArrow':_0x21b982[_0x1c7e5c(0x330)]?{'type':_0x26d93c[_0x1c7e5c(0x2fd)],'size':_0x59932a['Large']}:void 0x0}};if(_0x2386bb===_0x8cab7[_0x1c7e5c(0x2f9)]&&(_0x21b982[_0x1c7e5c(0x19b)]||_0x21b982[_0x1c7e5c(0x2da)]))return _0x1e9d2c({'fill':{'fillType':_0xee9cb9[_0x1c7e5c(0x3a5)],'color':'#3B82F6'},'isHorizontal':!!_0x21b982[_0x1c7e5c(0x19b)],'stroke':{'lineStrokeType':_0x26062b['SolidLine'],'width':0x1,'color':_0x1c7e5c(0x1e5)}});}}function Tr(_0x35520e,_0x4176ba){const _0x2b304b=_0x1801;var _0x25ba7c;let _0x54062d=_0x4176ba[_0x2b304b(0x254)]??'',_0x2ccca2=(_0x25ba7c=_0x35520e[_0x2b304b(0x2d4)](_0x54062d))==null?void 0x0:_0x25ba7c[_0x2b304b(0x21f)]();if(!_0x2ccca2)return null;let _0x1af291=_0x2ccca2[_0x2b304b(0x250)]??[],_0x24d52b=_0x1af291[_0x2b304b(0x349)](_0x475ad0=>{const _0x4d20e9=_0x2b304b;let _0x30c6eb=_0x3be31d(_0x2ccca2,_0x475ad0);return _0x4176ba[_0x4d20e9(0x2b9)]>=_0x30c6eb&&_0x4176ba[_0x4d20e9(0x2b9)]<=_0x475ad0[_0x4d20e9(0x178)];})??_0x1af291[_0x1af291[_0x2b304b(0x321)]-0x1];return _0x24d52b?{'paragraphId':_0x24d52b['paragraphId'],'segmentId':_0x54062d,'position':_0xca1d7e[_0x2b304b(0x2e4)],'offset':_0x4176ba['startOffset']-_0x3be31d(_0x2ccca2,_0x24d52b)}:null;}function Er(_0x5b41fd,_0x26ed9c,_0x2bb0e4){const _0x3b395b=_0x1801;var _0xe84d53,_0xa3d2e1;if(!_0x2bb0e4)return null;let _0x445cb1=(_0xe84d53=_0x5b41fd[_0x3b395b(0x2b4)](_0xa0de3a)[_0x3b395b(0x2cc)](_0x26ed9c))==null?void 0x0:_0xe84d53['with'](_0x1f41cd)[_0x3b395b(0x352)];if(!_0x445cb1)return null;let _0x399788=_0x2bb0e4==='below'?{'startOffset':_0x445cb1[_0x3b395b(0x152)][_0x3b395b(0x23b)],'endOffset':_0x445cb1[_0x3b395b(0x152)][_0x3b395b(0x23b)]}:_0x445cb1['menuRange'];return{'startOffset':_0x399788[_0x3b395b(0x2b9)],'endOffset':_0x399788['endOffset'],'collapsed':_0x399788[_0x3b395b(0x2b9)]===_0x399788[_0x3b395b(0x23b)],'segmentId':((_0xa3d2e1=_0x445cb1['paragraph'])==null?void 0x0:_0xa3d2e1['segmentId'])??''};}const U={'type':_0x5c5562[_0x48e9aa(0x304)],'id':'doc.command.menu-insert-shape','handler':async(_0x3e25d5,_0x4c707a)=>{const _0x1a1f4b=_0x48e9aa;let _0x275b76=_0x3e25d5[_0x1a1f4b(0x2b4)](_0x3d68d4)[_0x1a1f4b(0x3a8)](_0x42988e[_0x1a1f4b(0x237)]);if(!_0x275b76)return!0x1;let _0x22be17=_0x3e25d5[_0x1a1f4b(0x2b4)](_0x1310fd),_0x442f39=_0x275b76[_0x1a1f4b(0x23e)](),_0x3a25a5=_0x4c707a[_0x1a1f4b(0x3b3)]??_0x44f562(),_0x4994e2=_0x4c707a['width']??_0x2155dc,_0x10ac4b=_0x4c707a[_0x1a1f4b(0x361)]??_0x11f235,_0x228602=_0x4c707a[_0x1a1f4b(0x149)]??wr(_0x4c707a[_0x1a1f4b(0x360)],_0x4c707a[_0x1a1f4b(0x3a1)]),_0xadb341=Er(_0x3e25d5,_0x442f39,_0x4c707a[_0x1a1f4b(0x28a)])??_0x3e25d5[_0x1a1f4b(0x2b4)](_0x5c4205)[_0x1a1f4b(0x17c)]();if(!_0xadb341)return!0x1;let _0x3569bb=Tr(_0x275b76,_0xadb341);return _0x3569bb?!!_0x22be17[_0x1a1f4b(0x148)](_0x5be0fc['id'],{'unitId':_0x442f39,'shapeId':_0x3a25a5,'shapeType':_0x4c707a[_0x1a1f4b(0x360)],'shapeData':_0x228602,'transform':{'width':_0x4994e2,'height':_0x10ac4b},'placement':{'wrappingStyle':_0x2f464f['INLINE'],'anchor':_0x3569bb}}):!0x1;}},W=_0x48e9aa(0x207),Dr='docs-shape-ui.ribbon.shape-format',Or=_0x48e9aa(0x256),kr=_0x12a3ce(_0x48e9aa(0x286)),Ar=_0x48e9aa(0x2ad),jr=_0x48e9aa(0x25c),Mr={'id':_0x48e9aa(0x348),'type':_0x5c5562[_0x48e9aa(0x304)],'handler':(_0x3ccabe,_0x5b5907)=>{const _0x4a07e2=_0x48e9aa;let _0x156965=_0x3ccabe[_0x4a07e2(0x2b4)](_0x4e2095),_0x2249de=_0x3ccabe['get'](_0x35ebd3),_0x50a059=_0x3ccabe[_0x4a07e2(0x2b4)](_0x5eaac6);return(_0x5b5907==null?void 0x0:_0x5b5907[_0x4a07e2(0x360)])===_0x4a07e2(0x2d0)?(_0x156965[_0x4a07e2(0x2d0)](Or),!0x0):(_0x156965['open']({'id':Or,'header':{'title':_0x2249de['t'](_0x4a07e2(0x34d))},'children':{'label':Or},'onClose':()=>{const _0x4a2884=_0x4a07e2;_0x50a059[_0x4a2884(0x2fa)](null);},'width':0x168}),!0x0);}},G={'type':_0x5c5562['OPERATION'],'id':'doc.operation.open-doc-shape-format-panel','handler'(){return!0x0;}};function Nr(_0x321a59){const _0x5bf807=_0x48e9aa;let _0x4f0c5e=_0x321a59[_0x5bf807(0x2b4)](_0x5eaac6)['getFocusDrawings'](),_0x18948f=_0x4f0c5e[_0x5bf807(0x321)]===0x1?_0x4f0c5e[0x0]:null;if(!_0x18948f||_0x18948f[_0x5bf807(0x1f4)]!==_0x4a830a[_0x5bf807(0x242)])return null;let _0x220bdb=_0x321a59[_0x5bf807(0x2b4)](_0x5b7f91),_0x4be7e2=_0x220bdb[_0x5bf807(0x298)](_0x18948f[_0x5bf807(0x225)],_0x18948f['subUnitId'],_0x18948f['drawingId']),_0x3edc09=_0x220bdb[_0x5bf807(0x1bb)](_0x18948f[_0x5bf807(0x225)],_0x18948f[_0x5bf807(0x2e7)],_0x18948f[_0x5bf807(0x1d7)]);return _0x4be7e2===void 0x0||!_0x3edc09?null:{'drawing':_0x18948f,'shapeData':_0x3edc09,'shapeType':_0x4be7e2};}const Pr={'id':_0x48e9aa(0x35e),'type':_0x5c5562[_0x48e9aa(0x335)],'handler':(_0x239bc9,_0x5f0616)=>{const _0x1c7375=_0x48e9aa;let _0x1027fa=Nr(_0x239bc9),_0x3bd26b=_0x3f86c1((_0x5f0616==null?void 0x0:_0x5f0616[_0x1c7375(0x339)])??(_0x5f0616==null?void 0x0:_0x5f0616[_0x1c7375(0x360)])??'');if(!_0x1027fa||!_0x3bd26b||_0x3bd26b[_0x1c7375(0x320)]!==_0x2c3147(_0x1027fa[_0x1c7375(0x149)]))return!0x1;let _0x1522be=_0x4f4f63(_0x1027fa[_0x1c7375(0x149)],_0x3bd26b);if(!_0x1522be)return!0x1;let {drawing:_0x19848b}=_0x1027fa;return _0x239bc9[_0x1c7375(0x2b4)](_0x1310fd)[_0x1c7375(0x377)](_0x44bda9['id'],{'unitId':_0x19848b[_0x1c7375(0x225)],'shapeId':_0x19848b[_0x1c7375(0x1d7)],'shapeData':_0x1522be,'oldShapeJSON':{'oldShapeData':_0x1027fa[_0x1c7375(0x149)]}});}},Fr={'id':_0x48e9aa(0x31b),'type':_0x5c5562[_0x48e9aa(0x335)],'handler':(_0x4bbbe5,_0x1c6b78)=>{const _0x6dd99c=_0x48e9aa;let _0x50830e=Nr(_0x4bbbe5),_0x33691f=(_0x1c6b78==null?void 0x0:_0x1c6b78[_0x6dd99c(0x307)])??(_0x1c6b78==null?void 0x0:_0x1c6b78[_0x6dd99c(0x360)]);if(!_0x50830e||!_0x33691f||_0x32d327(_0x50830e[_0x6dd99c(0x307)])||_0x32d327(_0x33691f))return!0x1;let _0x38ece6=_0x2ca3cf(_0x50830e[_0x6dd99c(0x149)],_0x33691f);if(!_0x38ece6)return!0x1;let {drawing:_0x133dd2}=_0x50830e;return _0x4bbbe5[_0x6dd99c(0x2b4)](_0x1310fd)[_0x6dd99c(0x377)](_0x44bda9['id'],{'unitId':_0x133dd2['unitId'],'shapeId':_0x133dd2['drawingId'],'shapeType':_0x33691f,'shapeData':_0x38ece6,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x50830e[_0x6dd99c(0x307)],'oldShapeData':_0x50830e[_0x6dd99c(0x149)]}});}};function K(_0x4d095a,_0xc7861){return function(_0xab7106,_0x35a61a){_0xc7861(_0xab7106,_0x35a61a,_0x4d095a);};}function q(_0x4a940c,_0x3ac46d,_0x483ed8,_0x2efc15){const _0x4e8a73=_0x48e9aa;var _0x51a1a7=arguments[_0x4e8a73(0x321)],_0x12f4ea=_0x51a1a7<0x3?_0x3ac46d:_0x2efc15===null?_0x2efc15=Object[_0x4e8a73(0x22e)](_0x3ac46d,_0x483ed8):_0x2efc15,_0x4dc7e4;if(typeof Reflect=='object'&&typeof Reflect[_0x4e8a73(0x38f)]==_0x4e8a73(0x19d))_0x12f4ea=Reflect[_0x4e8a73(0x38f)](_0x4a940c,_0x3ac46d,_0x483ed8,_0x2efc15);else{for(var _0x8c3dd3=_0x4a940c[_0x4e8a73(0x321)]-0x1;_0x8c3dd3>=0x0;_0x8c3dd3--)(_0x4dc7e4=_0x4a940c[_0x8c3dd3])&&(_0x12f4ea=(_0x51a1a7<0x3?_0x4dc7e4(_0x12f4ea):_0x51a1a7>0x3?_0x4dc7e4(_0x3ac46d,_0x483ed8,_0x12f4ea):_0x4dc7e4(_0x3ac46d,_0x483ed8))||_0x12f4ea);}return _0x51a1a7>0x3&&_0x12f4ea&&Object[_0x4e8a73(0x238)](_0x3ac46d,_0x483ed8,_0x12f4ea),_0x12f4ea;}let Ir=class extends _0x5207f2{constructor(_0x54591a,_0xbd300c){const _0x3a78b9=_0x48e9aa;super(),this[_0x3a78b9(0x1e7)]=_0x54591a,this['_drawingManagerService']=_0xbd300c,this[_0x3a78b9(0x34e)](),this['_clipService'][_0x3a78b9(0x153)](!0x0),this[_0x3a78b9(0x166)]({'dispose':()=>this[_0x3a78b9(0x1e7)][_0x3a78b9(0x153)](!0x1)});}[_0x48e9aa(0x34e)](){const _0x258b1c=_0x48e9aa;let _0x7fa503=new Map(),_0x368f46=this[_0x258b1c(0x1e7)][_0x258b1c(0x151)]((_0x3008ca,_0x2793e1,_0x3c6300,_0x5bd69c,_0x113373)=>{const _0x5f027b=_0x258b1c;let _0x2abf18=_0x2793e1;if(_0x2abf18===_0x8cab7[_0x5f027b(0x281)]||_0x2793e1==='custom')return!0x1;try{let _0x293f4b=_0x7fa503[_0x5f027b(0x2b4)](_0x2793e1);return _0x293f4b||(_0x293f4b=new _0x10d748(_0x2abf18,_0x5f027b(0x23a)+_0x2793e1),_0x7fa503[_0x5f027b(0x26f)](_0x2793e1,_0x293f4b)),_0x293f4b['clearAdjustValue'](),_0x113373&&Object[_0x5f027b(0x30d)](_0x113373)[_0x5f027b(0x321)]>0x0&&_0x293f4b[_0x5f027b(0x24f)]({'adjustValues':_0x113373},!0x0),_0x293f4b['updateContext']({'width':_0x3c6300,'height':_0x5bd69c}),_0x293f4b[_0x5f027b(0x3b1)](_0x3008ca,{'left':0x0,'top':0x0,'width':_0x3c6300,'height':_0x5bd69c});}catch{return!0x1;}});this[_0x258b1c(0x166)](_0x368f46),this[_0x258b1c(0x166)]({'dispose':()=>_0x7fa503[_0x258b1c(0x16e)]()});}[_0x48e9aa(0x350)](_0x465559,_0x22ac74,_0x3a3b32,_0x4cdd35,_0x22730f){const _0x3a8023=_0x48e9aa;let _0xdc4352=this[_0x3a8023(0x257)][_0x3a8023(0x1b0)](_0x465559,_0x22ac74)[_0x3a3b32];_0xdc4352&&_0xdc4352[_0x3a8023(0x1f4)]===_0x4a830a['DRAWING_IMAGE']&&this[_0x3a8023(0x257)][_0x3a8023(0x270)]([{..._0xdc4352,'prstGeom':_0x4cdd35,'adjustValues':_0x22730f}]);}};Ir=q([K(0x0,_0x279b1a(_0x1bd85a)),K(0x1,_0x279b1a(_0x5eaac6))],Ir);const Lr=_0x48e9aa(0x249),Rr=_0x48e9aa(0x382);function zr({onShapeClick:_0x309000,excludeGroups:_0xb84e68}){const _0x405d5f=_0x48e9aa;return _0x25380b(_0x2746cb,{'excludeGroups':_0xb84e68,'onShapeClick':_0x309000,'scrollContainer':_0x405d5f(0x23f)});}function Br(){let _0x36a243=_0x14b48c(_0x5eaac6),_0x1ec557=_0x14b48c(Ir);return _0x511b8a=>{const _0x3a4245=_0x1801;let _0x44b848=_0x36a243['getFocusDrawings']()[_0x3a4245(0x349)](_0xa1326b=>_0xa1326b[_0x3a4245(0x1f4)]===_0x4a830a['DRAWING_IMAGE']);_0x44b848&&_0x1ec557['clipByShape'](_0x44b848[_0x3a4245(0x225)],_0x44b848[_0x3a4245(0x2e7)],_0x44b848[_0x3a4245(0x1d7)],_0x511b8a['type']);};}function Vr(){let _0x47e8e6=Br();return _0x25380b(_0x42f5d0,{'buttonLabel':'docs-shape-ui.crop.shape','excludeGroups':[_0x32669e['Line']],'onShapeClick':_0x47e8e6});}function Hr(){const _0x4540c7=_0x48e9aa;let _0x27a38d=_0x14b48c(_0x453046),_0x381d49=_0x14b48c(_0x5eaac6),_0x52ea77=_0x14b48c(_0x3d68d4),_0x437478=_0x381d49[_0x4540c7(0x2e8)]()[0x0],_0x36e922=_0x437478?_0x52ea77[_0x4540c7(0x34f)](_0x437478[_0x4540c7(0x225)]):void 0x0,_0x4752a2=_0x36e922===_0x42988e[_0x4540c7(0x237)]?Rr:_0x36e922===_0x42988e[_0x4540c7(0x176)]?'sheet.image-clip.shape-picker.component':void 0x0,_0x4ae724=_0x4752a2?_0x27a38d[_0x4540c7(0x2b4)](_0x4752a2):void 0x0;return _0x4ae724?_0x25380b(_0x4ae724,{}):null;}function Ur({paragraphMenuPlacement:_0x3fbe30,PickerComponent:_0x33a995=zr}){let _0xa9c275=_0x14b48c(_0x1310fd);return _0x25380b(_0x33a995,{'onShapeClick':_0x25b6a5=>{const _0x4f0f62=_0x1801;_0xa9c275[_0x4f0f62(0x377)](U['id'],{'paragraphMenuPlacement':_0x3fbe30,'value':_0x25b6a5['type'],'enhanceParams':{'endArrow':_0x25b6a5[_0x4f0f62(0x330)],'startArrow':_0x25b6a5[_0x4f0f62(0x38b)],'horizontal':_0x25b6a5[_0x4f0f62(0x19b)],'vertical':_0x25b6a5['vertical']}});}});}function Wr(_0x30d36f){const _0x5d80a8=_0x48e9aa;return _0x8bbec9=>({'id':U['id'],'type':_0x2ad9e0[_0x5d80a8(0x1d9)],'selections':[{'label':{'name':Lr,'hoverable':!0x1,'selectable':!0x1,'props':_0x30d36f?{'id':U['id'],'paragraphMenuPlacement':_0x30d36f}:{'id':U['id']}}}],'icon':'ShapeIcon','title':_0x5d80a8(0x379),'tooltip':'docs-shape-ui.insertShape','hidden$':_0xa747d0(_0x8bbec9,_0x42988e[_0x5d80a8(0x237)])});}const Gr=Wr(),Kr=Wr(_0x48e9aa(0x216)),qr=Wr('target');function Jr(_0x49f82a){const _0x2a2e8f=_0x48e9aa;return{'id':Mr['id'],'type':_0x2ad9e0['BUTTON'],'icon':_0x2a2e8f(0x21e),'title':_0x2a2e8f(0x2d6),'tooltip':_0x2a2e8f(0x2d6),'hidden$':_0xa747d0(_0x49f82a,_0x42988e[_0x2a2e8f(0x237)])};}function Yr(_0x4f258a,_0x57e7a0,_0x5ab425,_0x1dec1c,_0x278be4,_0x45b99a){const _0x125fb2=_0x48e9aa;let _0xf627f7={'unitId':_0x57e7a0,'shapeId':_0x1dec1c,'shapeData':_0x45b99a,'oldShapeJSON':_0x278be4};return _0x4f258a[_0x125fb2(0x377)](_0x44bda9['id'],_0xf627f7);}function Xr(_0x4ba733,_0x3ede11,_0x2235a6,_0x2a0f0a,_0x428a49,_0x3c5803){const _0x1584ad=_0x48e9aa;let _0x4ab4ba={'unitId':_0x3ede11,'shapeId':_0x2a0f0a,'shapeData':_0x3c5803,'oldShapeJSON':_0x428a49};return _0x4ba733[_0x1584ad(0x377)](_0x44bda9['id'],_0x4ab4ba);}const Zr=_0x48e9aa(0x3bb),Qr='docs-shape-ui.shape-format.style-ribbon-control',$r=_0x48e9aa(0x290),ei=_0x48e9aa(0x16c),ti='docs-shape-ui.shape-format.wrapping-style-label',ni=[{'value':_0x2f464f['INLINE'],'label':_0x48e9aa(0x20c),'icon':'DocsShapeWrapInlineIcon'},{'value':_0x2f464f[_0x48e9aa(0x375)],'label':_0x48e9aa(0x2fc),'icon':_0x48e9aa(0x1fe)},{'value':_0x2f464f[_0x48e9aa(0x332)],'label':_0x48e9aa(0x273),'icon':_0x48e9aa(0x1ec)},{'value':_0x2f464f[_0x48e9aa(0x1cf)],'label':'docs-shape-ui.textWrap.behindText','icon':'DocsShapeWrapBehindTextIcon'},{'value':_0x2f464f[_0x48e9aa(0x31d)],'label':'docs-shape-ui.textWrap.inFrontText','icon':_0x48e9aa(0x1b3)}];function ri(){let _0x3e85b6=_0x14b48c(_0x1310fd),_0x2bea1e=_0x14b48c(_0x5eaac6),_0x1f29ce=_0x14b48c(_0x5b7f91),_0x1c002e=()=>{const _0x179ec0=_0x1801;var _0x14e9a8;let _0x4feb22=_0x2bea1e[_0x179ec0(0x2e8)]();if(_0x4feb22['length']!==0x1||((_0x14e9a8=_0x4feb22[0x0])==null?void 0x0:_0x14e9a8[_0x179ec0(0x1f4)])!==_0x4a830a['DRAWING_SHAPE'])return null;let {unitId:_0x260b33,subUnitId:_0x284ae,drawingId:_0x57fa1a}=_0x4feb22[0x0],_0x2e8a91=_0x1f29ce['getShapeTypeById'](_0x260b33,_0x284ae,_0x57fa1a),_0x457999=_0x1f29ce['getShapeDataById'](_0x260b33,_0x284ae,_0x57fa1a);return _0x2e8a91===void 0x0||!_0x457999?null:{'unitId':_0x260b33,'subUnitId':_0x284ae,'drawingId':_0x57fa1a,'shapeType':_0x2e8a91,'shapeData':_0x457999};},_0x229075=_0x157dfc(()=>new _0x39feb9(_0x4a00fb=>{const _0x5409b6=_0x1801;let _0x31bc0b=()=>_0x4a00fb['next'](_0x1c002e()),_0x3401dd=_0x2bea1e[_0x5409b6(0x247)][_0x5409b6(0x33b)](_0x31bc0b),_0x2172a6=_0x3e85b6['onCommandExecuted'](_0x31bd03=>{_0x31bd03['id']===_0x1a7d3e['id']&&_0x31bc0b();});return _0x31bc0b(),()=>{_0x3401dd['unsubscribe'](),_0x2172a6['dispose']();};}),_0x1c002e(),!0x1,[_0x3e85b6,_0x1f29ce,_0x2bea1e]);return{'selection':_0x229075,'updateShapeData':_0x22656d=>{const _0x4821a1=_0x1801;_0x229075&&Yr(_0x3e85b6,_0x229075[_0x4821a1(0x225)],_0x229075[_0x4821a1(0x2e7)],_0x229075['drawingId'],{'oldShapeData':_0x229075[_0x4821a1(0x149)]},_0x22656d);}};}function ii(){const _0x483ed7=_0x48e9aa;let {selection:_0x169314,updateShapeData:_0x4b7a43}=ri();return _0x169314?_0x25380b(_0x1fc71b,{'shapeData':_0x169314[_0x483ed7(0x149)],'shapeType':_0x169314['shapeType'],'onUpdateShapeData':_0x4b7a43}):null;}function ai(){const _0x1dbf43=_0x48e9aa;let _0x106e31=_0x14b48c(_0x1310fd),_0x5c07ff=_0x14b48c(_0x35ebd3),{selection:_0x3474bd}=ri();return _0x3474bd?_0x25380b(_0x2c2d61,{'type':_0x2c3147(_0x3474bd[_0x1dbf43(0x149)]),'ariaLabel':_0x5c07ff['t'](_0x1dbf43(0x245)),'activePresetId':_0xba9290(_0x3474bd[_0x1dbf43(0x149)]),'onSelect':_0x38d6e7=>_0x106e31['executeCommand'](Pr['id'],{'presetId':_0x38d6e7})}):null;}function oi(){const _0x3d48c6=_0x48e9aa;let {selection:_0x683e40,updateShapeData:_0x227f35}=ri();return _0x683e40?_0x25380b(_0x52c832,{'fontFamilyPopupDataComponent':_0x3d48c6(0x224),'shapeData':_0x683e40[_0x3d48c6(0x149)],'onUpdateShapeData':_0x227f35}):null;}function si(){const _0x3866ce=_0x48e9aa;var _0x4985e2;let {selection:_0x1a44f1,updateShapeData:_0x39b8da}=ri(),_0x523865=_0x57cb62({'hostType':_0x42988e['UNIVER_DOC'],'unitId':(_0x1a44f1==null?void 0x0:_0x1a44f1[_0x3866ce(0x225)])??'','subUnitId':(_0x1a44f1==null?void 0x0:_0x1a44f1['subUnitId'])??'','shapeId':(_0x1a44f1==null?void 0x0:_0x1a44f1[_0x3866ce(0x1d7)])??'','shapeData':_0x1a44f1==null?void 0x0:_0x1a44f1[_0x3866ce(0x149)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x3866ce(0x214),'onUpdateBinding':_0x1fe00b=>_0x39b8da({'formulaBinding':_0x1fe00b})}),_0xb7bf8b=((_0x4985e2=_0x523865[_0x3866ce(0x372)])==null?void 0x0:_0x4985e2[_0x3866ce(0x160)](_0x1d281c=>_0x1d281c[_0x3866ce(0x2f4)])[_0x3866ce(0x29f)](_0x4951c7=>_0x4951c7['visible']!==!0x1))??[];return _0x1a44f1!=null&&_0x1a44f1[_0x3866ce(0x149)]['formulaBinding']?_0x25380b(_0x22ffc0,{'actions':_0xb7bf8b,'panel':_0x523865[_0x3866ce(0x31f)]}):null;}function ci({value:_0x1e38b1}){const _0x45a374=_0x48e9aa;let _0x3c688a=_0x14b48c(_0x35ebd3),_0x215c85=ni[_0x45a374(0x349)](_0x1f08ac=>_0x1f08ac['value']===_0x1e38b1)??ni[0x0];return _0x215c85?_0x25380b('span',{'children':_0x3c688a['t'](_0x215c85[_0x45a374(0x397)])}):null;}const li=_0x48e9aa(0x1e1),ui=_0x48e9aa(0x2cf),di=_0x48e9aa(0x155),fi=_0x48e9aa(0x36c),pi='docs-shape-ui.ribbon.shape-format.arrange-backward',mi=_0x48e9aa(0x1fd),hi=_0x48e9aa(0x329),gi=_0x48e9aa(0x1a3);function _i(_0x512d02){const _0xef822c=_0x48e9aa;let _0x380328=_0x512d02[_0xef822c(0x2b4)](_0x1310fd),_0x2cee61=_0x512d02[_0xef822c(0x2b4)](_0x5eaac6),_0x36647c=_0x512d02[_0xef822c(0x2b4)](_0x5b7f91);return new _0x39feb9(_0x416413=>{const _0x30e00c=_0xef822c;let _0x10cd7a=()=>{const _0x1c1835=_0x1801;let _0x3cb51b=vi(_0x512d02),_0x269001=_0x3cb51b?_0x36647c[_0x1c1835(0x1bb)](_0x3cb51b['unitId'],_0x3cb51b[_0x1c1835(0x2e7)],_0x3cb51b[_0x1c1835(0x1d7)]):null;_0x416413['next'](_0x269001?_0xba9290(_0x269001)??'':'');},_0x5d4228=_0x2cee61[_0x30e00c(0x247)]['subscribe'](_0x10cd7a),_0x3496f6=_0x380328['onCommandExecuted'](_0x181fd2=>{_0x181fd2['id']===_0x1a7d3e['id']&&_0x10cd7a();});return _0x10cd7a(),()=>{const _0x425992=_0x30e00c;_0x5d4228['unsubscribe'](),_0x3496f6[_0x425992(0x334)]();};});}function vi(_0x5c96bc){const _0x1ecd84=_0x48e9aa;var _0x41a5f9;let _0x2ff67a=_0x5c96bc[_0x1ecd84(0x2b4)](_0x5eaac6)[_0x1ecd84(0x2e8)]();return _0x2ff67a[_0x1ecd84(0x321)]===0x1&&((_0x41a5f9=_0x2ff67a[0x0])==null?void 0x0:_0x41a5f9[_0x1ecd84(0x1f4)])===_0x4a830a[_0x1ecd84(0x242)]?_0x2ff67a[0x0]:null;}function yi(_0x318c85){const _0x50b621=_0x48e9aa;return(_0x318c85==null?void 0x0:_0x318c85[_0x50b621(0x2e2)])===_0x1bbcc2[_0x50b621(0x389)]?_0x318c85[_0x50b621(0x2c6)]===_0x5676e9[_0x50b621(0x1d3)]?_0x2f464f[_0x50b621(0x1cf)]:_0x2f464f['IN_FRONT_OF_TEXT']:(_0x318c85==null?void 0x0:_0x318c85[_0x50b621(0x2e2)])===_0x1bbcc2[_0x50b621(0x375)]?_0x2f464f[_0x50b621(0x375)]:(_0x318c85==null?void 0x0:_0x318c85['layoutType'])===_0x1bbcc2[_0x50b621(0x332)]?_0x2f464f[_0x50b621(0x332)]:_0x2f464f[_0x50b621(0x195)];}function bi(_0x1177d9){const _0x5f45cb=_0x48e9aa;let _0x4aaa7e=_0x1177d9[_0x5f45cb(0x2b4)](_0x1310fd),_0x5c8a50=_0x1177d9['get'](_0x5eaac6),_0x2edbad=_0x1177d9[_0x5f45cb(0x2b4)](_0x3d68d4);return new _0x39feb9(_0x2fb7a5=>{const _0x35306d=_0x5f45cb;let _0x4cd0bf=()=>{const _0x11ff5d=_0x1801;var _0x1d8dec;let _0x47be81=vi(_0x1177d9),_0x4b8df1=_0x47be81?_0x2edbad[_0x11ff5d(0x2db)](_0x47be81[_0x11ff5d(0x225)],_0x42988e[_0x11ff5d(0x237)]):void 0x0;_0x2fb7a5[_0x11ff5d(0x217)](yi(_0x47be81?_0x4b8df1==null||(_0x1d8dec=_0x4b8df1[_0x11ff5d(0x319)]()[_0x11ff5d(0x1f3)])==null?void 0x0:_0x1d8dec[_0x47be81[_0x11ff5d(0x1d7)]]:void 0x0));},_0x3cb1e3=_0x5c8a50[_0x35306d(0x247)][_0x35306d(0x33b)](_0x4cd0bf),_0x199519=_0x4aaa7e[_0x35306d(0x14f)](_0x50c8e6=>{_0x50c8e6['id']===_0x831419['id']&&_0x4cd0bf();});return _0x4cd0bf(),()=>{const _0x54d12d=_0x35306d;_0x3cb1e3[_0x54d12d(0x22b)](),_0x199519['dispose']();};})[_0x5f45cb(0x299)](_0x2f5185());}function xi(_0x226508,_0x36b50e=!0x1){const _0x412e87=_0x48e9aa;let _0x56c7e1=_0x226508[_0x412e87(0x2b4)](_0x1310fd),_0x384d8c=_0x226508[_0x412e87(0x2b4)](_0x5eaac6),_0x2e5e06=_0x226508[_0x412e87(0x2b4)](_0x5b7f91);return new _0x39feb9(_0x3595ce=>{const _0x5d8be0=_0x412e87;let _0x56076c=()=>{const _0x2e58a7=_0x1801;let _0x648c85=vi(_0x226508);if(!_0x648c85){_0x3595ce[_0x2e58a7(0x217)](!0x0);return;}let _0x4db9c4=_0x2e5e06['getShapeDataById'](_0x648c85[_0x2e58a7(0x225)],_0x648c85[_0x2e58a7(0x2e7)],_0x648c85[_0x2e58a7(0x1d7)]);_0x3595ce[_0x2e58a7(0x217)](!_0x4db9c4||_0x36b50e&&_0x4db9c4[_0x2e58a7(0x288)]==null);},_0x33a232=_0x384d8c[_0x5d8be0(0x247)][_0x5d8be0(0x33b)](_0x56076c),_0x3d8d99=_0x56c7e1[_0x5d8be0(0x14f)](_0x19d6c1=>{_0x19d6c1['id']===_0x1a7d3e['id']&&_0x56076c();});return _0x56076c(),()=>{const _0x71b47=_0x5d8be0;_0x33a232[_0x71b47(0x22b)](),_0x3d8d99[_0x71b47(0x334)]();};});}function _0x1801(_0x1e9c02,_0x1b930f){_0x1e9c02=_0x1e9c02-0x148;const _0x35b2e9=_0x35b2();let _0x180195=_0x35b2e9[_0x1e9c02];return _0x180195;}function Si(_0x4ae6ae){const _0x8ee64b=_0x48e9aa;let _0x59a91d=_0x4ae6ae[_0x8ee64b(0x2b4)](_0x5eaac6),_0x2a2ee2=_0x4ae6ae[_0x8ee64b(0x2b4)](_0x5b7f91);return _0x59a91d['focus$']['pipe'](_0x33c91d(_0x59a91d[_0x8ee64b(0x2e8)]()),_0x3f0bcb(()=>{const _0x4a89a8=_0x8ee64b;let _0x16d685=vi(_0x4ae6ae),_0x30f99a=_0x16d685?_0x2a2ee2[_0x4a89a8(0x298)](_0x16d685[_0x4a89a8(0x225)],_0x16d685['subUnitId'],_0x16d685[_0x4a89a8(0x1d7)]):void 0x0;return _0x30f99a===void 0x0||_0x32d327(_0x30f99a);}));}function Ci(_0x24864b){const _0x25f3f5=_0x48e9aa;return{'id':Pr['id'],'type':_0x2ad9e0[_0x25f3f5(0x1d9)],'icon':_0x25f3f5(0x232),'title':_0x25f3f5(0x27c),'tooltip':'shape-editor-ui.toolbar.quickStyles','selections':[{'label':{'name':Zr,'hoverable':!0x1,'selectable':!0x1}}],'value$':_i(_0x24864b),'hidden$':xi(_0x24864b)};}function wi(_0x455b59){const _0x18877a=_0x48e9aa;return{'id':Fr['id'],'type':_0x2ad9e0[_0x18877a(0x1d9)],'icon':_0x18877a(0x2d8),'title':_0x18877a(0x2ea),'tooltip':_0x18877a(0x2ea),'slot':!0x0,'selections':[{'label':{'name':_0x8d323,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Si(_0x455b59)};}function Ti(_0x2bd48d,_0x413cd4,_0x1c7fbe=!0x1){const _0x21c871=_0x48e9aa;return _0x319c2e=>({'id':_0x2bd48d,'type':_0x2ad9e0[_0x21c871(0x366)],'label':{'name':_0x413cd4,'hoverable':!0x1,'selectable':!0x1},'hidden$':xi(_0x319c2e,_0x1c7fbe)});}const Ei=Ti(li,Qr),Di=Ti(ui,$r),Oi=Ti(di,ei,!0x0);function ki(_0x5d0a0c){const _0x3f0a2b=_0x48e9aa;return{'id':gi,'type':_0x2ad9e0[_0x3f0a2b(0x1d9)],'icon':ni[0x0][_0x3f0a2b(0x395)],'label':ti,'selectionsCommandId':_0x1261a7['id'],'selections':ni['map'](({icon:_0x28d8b6,label:_0x588b37,value:_0x16e22a})=>({'value':_0x16e22a,'label':_0x588b37,'icon':_0x28d8b6,'params':()=>{const _0x599003=_0x3f0a2b;let _0x3fd8c4=vi(_0x5d0a0c);return _0x3fd8c4?{'unitId':_0x3fd8c4[_0x599003(0x225)],'subUnitId':_0x3fd8c4['subUnitId'],'drawings':[{'unitId':_0x3fd8c4[_0x599003(0x225)],'subUnitId':_0x3fd8c4['subUnitId'],'drawingId':_0x3fd8c4['drawingId']}],'wrappingStyle':_0x16e22a}:void 0x0;}})),'value$':bi(_0x5d0a0c),'hidden$':xi(_0x5d0a0c)};}function Ai(_0x37a853,_0x3118be,_0xf24bfd,_0x59b1ad){const _0x347ace=_0x48e9aa;return _0x2376f6=>({'id':_0x37a853,'commandId':_0x7d8137['id'],'type':_0x2ad9e0[_0x347ace(0x366)],'icon':_0xf24bfd,'title':_0x59b1ad,'tooltip':_0x59b1ad,'hidden$':xi(_0x2376f6),'params':()=>{const _0x1700a4=_0x347ace;let _0x45072a=vi(_0x2376f6);return _0x45072a?{'unitId':_0x45072a['unitId'],'subUnitId':_0x45072a['subUnitId'],'drawingIds':[_0x45072a[_0x1700a4(0x1d7)]],'arrangeType':_0x3118be}:void 0x0;}});}const ji=Ai(fi,_0x1b9d3e['forward'],_0x48e9aa(0x267),_0x48e9aa(0x28c)),Mi=Ai(pi,_0x1b9d3e['backward'],_0x48e9aa(0x346),_0x48e9aa(0x2f0)),Ni=Ai(mi,_0x1b9d3e[_0x48e9aa(0x32b)],'TopmostIcon',_0x48e9aa(0x1cc)),Pi=Ai(hi,_0x1b9d3e[_0x48e9aa(0x34c)],_0x48e9aa(0x3a3),_0x48e9aa(0x383));function Fi(_0x29d925){const _0x517cf5=_0x48e9aa;return{'id':G['id'],'type':_0x2ad9e0[_0x517cf5(0x366)],'icon':_0x517cf5(0x2d9),'title':'docs-shape-ui.formatShape','tooltip':_0x517cf5(0x189),'hidden$':xi(_0x29d925),'params':()=>{const _0x4357f6=_0x517cf5;let _0x4f0f42=vi(_0x29d925);return _0x4f0f42?{'unitId':_0x4f0f42[_0x4357f6(0x225)],'subUnitId':_0x4f0f42['subUnitId'],'drawingId':_0x4f0f42[_0x4357f6(0x1d7)]}:void 0x0;}};}const Ii={[_0x55b5e3[_0x48e9aa(0x38c)]]:{[Dr]:{'order':0x64,'title':_0x48e9aa(0x189),'contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Pr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ci},[Fr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':wi}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[li]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ei}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[ui]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Di}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[gi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':ki},[fi]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':ji},[pi]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Mi},[mi]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':Ni},[hi]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':Pi}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[di]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Oi}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[G['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Fi},[_0x1eb8e0['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x42a122}}}}},Li={[_0x337646[_0x48e9aa(0x21d)]]:{[U['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x3dff16=>({...Gr(_0x3dff16),'title':void 0x0})}},[_0x337646[_0x48e9aa(0x29b)]]:{[Mr['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Jr}},[_0x926ff8[_0x48e9aa(0x3b8)]]:{[_0x42bd46[_0x48e9aa(0x2b8)]]:{[_0x271070]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x3aa164]:{[_0x42bd46['LAYOUT']]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x4a1cec]:{[_0x42bd46[_0x48e9aa(0x2b8)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':qr}}},[_0x12026b]:{'insert':{[U['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':Gr}}},[_0x26e176]:{'insert':{[U['id']+_0x48e9aa(0x218)]:{'replace':!0x0,'order':0x2,'menuItemFactory':Kr}}}}};var Ri=_0x48e9aa(0x173),zi=_0x48e9aa(0x15b);const Bi={'type':_0x5c5562['OPERATION'],'id':_0x48e9aa(0x324),'handler'(){return!0x0;}},Vi=_0x48e9aa(0x296),Hi={};function Ui(_0x563220){'@babel/helpers - typeof';const _0x12334f=_0x48e9aa;return Ui=typeof Symbol==_0x12334f(0x19d)&&typeof Symbol[_0x12334f(0x367)]==_0x12334f(0x1a9)?function(_0x1f84c4){return typeof _0x1f84c4;}:function(_0x533466){const _0x207ea7=_0x12334f;return _0x533466&&typeof Symbol==_0x207ea7(0x19d)&&_0x533466[_0x207ea7(0x259)]===Symbol&&_0x533466!==Symbol[_0x207ea7(0x353)]?_0x207ea7(0x1a9):typeof _0x533466;},Ui(_0x563220);}function Wi(_0x2463fe,_0x485b1c){const _0x394f7e=_0x48e9aa;if(Ui(_0x2463fe)!=_0x394f7e(0x1ae)||!_0x2463fe)return _0x2463fe;var _0x35c85c=_0x2463fe[Symbol['toPrimitive']];if(_0x35c85c!==void 0x0){var _0x30ea89=_0x35c85c[_0x394f7e(0x2bf)](_0x2463fe,_0x485b1c||_0x394f7e(0x2a2));if(Ui(_0x30ea89)!=_0x394f7e(0x1ae))return _0x30ea89;throw TypeError(_0x394f7e(0x29d));}return(_0x485b1c===_0x394f7e(0x388)?String:Number)(_0x2463fe);}function Gi(_0x5237ee){const _0x2865db=_0x48e9aa;var _0x1d9233=Wi(_0x5237ee,_0x2865db(0x388));return Ui(_0x1d9233)==_0x2865db(0x1a9)?_0x1d9233:_0x1d9233+'';}function J(_0x22e653,_0x4c027f,_0x181b88){const _0xdecbf0=_0x48e9aa;return(_0x4c027f=Gi(_0x4c027f))in _0x22e653?Object[_0xdecbf0(0x238)](_0x22e653,_0x4c027f,{'value':_0x181b88,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x22e653[_0x4c027f]=_0x181b88,_0x22e653;}var Ki=class extends _0x263561{constructor(_0x321239,_0x4eb997){const _0x2848c8=_0x48e9aa;super(_0x321239,_0x4eb997),J(this,_0x2848c8(0x1e9),null),J(this,_0x2848c8(0x35f),null),J(this,'_unitId',null),J(this,_0x2848c8(0x163),null),_0x4eb997&&this[_0x2848c8(0x3b0)](_0x4eb997);}[_0x48e9aa(0x200)](){const _0x4de91b=_0x48e9aa;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x4de91b(0x1e9)]};}[_0x48e9aa(0x3b0)](_0xaf48da){const _0x31ea28=_0x48e9aa;_0xaf48da[_0x31ea28(0x3b3)]!==void 0x0&&(this[_0x31ea28(0x1e9)]=_0xaf48da[_0x31ea28(0x3b3)]),_0xaf48da[_0x31ea28(0x15e)]!==void 0x0&&(this['_adjName']=_0xaf48da['adjName']),_0xaf48da['unitId']!==void 0x0&&(this[_0x31ea28(0x1a2)]=_0xaf48da[_0x31ea28(0x225)]),_0xaf48da[_0x31ea28(0x2e7)]!==void 0x0&&(this['_subUnitId']=_0xaf48da[_0x31ea28(0x2e7)]),this[_0x31ea28(0x3b6)]({'width':_0xaf48da['width'],'height':_0xaf48da[_0x31ea28(0x361)]});}[_0x48e9aa(0x27b)](_0x303df4){const _0x3ebc5d=_0x48e9aa;_0x56b355[_0x3ebc5d(0x252)](_0x303df4,{'radius':_0x516b6b[_0x3ebc5d(0x3a7)],'fill':_0x516b6b[_0x3ebc5d(0x24a)],'stroke':_0x516b6b[_0x3ebc5d(0x3b5)],'strokeWidth':0x1,'evented':!0x0});}};function qi(_0x74bba8,_0x5f3e42,_0x32ab00){const _0x342f88=_0x48e9aa;let _0xa5b306={..._0x5f3e42,'dataModel':{..._0x5f3e42[_0x342f88(0x365)]??{},..._0x32ab00?{'doc':_0x32ab00}:null}},_0x3dd557=_0x41632b(_0x74bba8,_0xa5b306),_0x22d19f=_0x47e60a(_0x3dd557);return{'clip':_0x560c0f(_0x3dd557,_0x22d19f),'wrapStrategy':_0x22d19f};}var Y=class extends _0x263561{constructor(_0x31fca0,_0x26b6e0){const _0xeb395b=_0x48e9aa;super(_0x31fca0,_0x26b6e0),J(this,_0xeb395b(0x1a7),[]),J(this,_0xeb395b(0x1fb),void 0x0),J(this,'_formulaAnimation',new _0x4d714e(()=>this[_0xeb395b(0x3a2)](!0x0),()=>this[_0xeb395b(0x2c9)]())),J(this,_0xeb395b(0x25f),!0x0),J(this,_0xeb395b(0x36e),_0x4a830a[_0xeb395b(0x242)]),J(this,_0xeb395b(0x1ef),!0x0),this['_props']={..._0x26b6e0},this[_0xeb395b(0x227)][_0xeb395b(0x293)](_0x26b6e0[_0xeb395b(0x184)],_0x26b6e0[_0xeb395b(0x19a)]!==!0x1),this[_0xeb395b(0x29a)](),this[_0xeb395b(0x2c9)]();}[_0x48e9aa(0x29a)](){const _0x5a1832=_0x48e9aa;this[_0x5a1832(0x2eb)]['subscribeEvent'](_0x22e7ae=>{const _0x2e6711=_0x5a1832;this[_0x2e6711(0x32a)](_0x22e7ae);});}['setPrstGeom'](_0x34aaec){const _0x3d8556=_0x48e9aa;this[_0x3d8556(0x1fb)][_0x3d8556(0x318)]=_0x34aaec;}[_0x48e9aa(0x2cd)](_0xd9c6b9){const _0x1aaa51=_0x48e9aa;if(this[_0x1aaa51(0x1fb)][_0x1aaa51(0x370)])return null;let _0x5aeeb0=this[_0x1aaa51(0x1ac)](_0xd9c6b9),{width:_0x40bfe9,height:_0x24fccb}=this['getRealBound']();return _0x342a9a(this[_0x1aaa51(0x1a7)],{'x':(this['flipX']?-_0x5aeeb0['x']:_0x5aeeb0['x'])+_0x40bfe9/0x2,'y':_0x5aeeb0['y']+_0x24fccb/0x2});}[_0x48e9aa(0x1dd)](_0x1824de){const _0x136551=_0x48e9aa;this[_0x136551(0x1fb)][_0x136551(0x370)]=_0x1824de,this[_0x136551(0x3a2)](!0x0);}['setFormulaPresentation'](_0x797bec,_0xaa536b=!0x0){const _0x4b7387=_0x48e9aa;this[_0x4b7387(0x227)][_0x4b7387(0x293)](_0x797bec,_0xaa536b),this[_0x4b7387(0x1fb)][_0x4b7387(0x184)]=_0x797bec,this[_0x4b7387(0x2c9)](),this['makeDirty'](!0x0);}[_0x48e9aa(0x2c9)](){const _0x1679c2=_0x48e9aa;let _0x116342=this[_0x1679c2(0x1fb)][_0x1679c2(0x1cd)],_0x1e1297=_0x116342[_0x1679c2(0x311)](),_0x4baf1b=_0xe2a736(_0x1e1297==null?void 0x0:_0x1e1297[_0x1679c2(0x365)]),_0x2790af=_0x4baf1b==null?void 0x0:_0x4baf1b[_0x1679c2(0x333)],_0x2196a2=this['_formulaAnimation'][_0x1679c2(0x17d)]();if(!_0x2790af||_0x2196a2['length']===0x0)return;_0x116342[_0x1679c2(0x384)]({'width':this[_0x1679c2(0x2be)],'height':this[_0x1679c2(0x361)]});let _0x2b6ebe=_0x4d25f2({'documentData':_0x2196a2[_0x1679c2(0x177)](_0x58c247=>_0xfe5d5c(_0x2790af,_0x58c247)),'height':this['height'],'shapeData':_0x116342['getShapeData'](),'textRect':_0x116342[_0x1679c2(0x262)]({'left':0x0,'top':0x0,'width':this[_0x1679c2(0x2be)],'height':this[_0x1679c2(0x361)]}),'width':this[_0x1679c2(0x2be)]});if(_0x2b6ebe){var _0x1894fa;this[_0x1679c2(0x294)](_0x2b6ebe['width'],_0x2b6ebe['height']),(_0x1894fa=this[_0x1679c2(0x1b4)]())==null||(_0x1894fa=_0x1894fa[_0x1679c2(0x3b4)]())==null||_0x1894fa[_0x1679c2(0x393)]();}}get[_0x48e9aa(0x225)](){const _0x52f0b1=_0x48e9aa;return this['_props'][_0x52f0b1(0x225)];}get['subUnitId'](){const _0x205416=_0x48e9aa;return this['_props'][_0x205416(0x2e7)];}[_0x48e9aa(0x32a)](_0x4b690b){const _0x94381=_0x48e9aa;if(this[_0x94381(0x1fb)]['srcRect']==null||!this[_0x94381(0x25f)])return;let {width:_0x466864,height:_0x54b64c}=this,{width:_0xd64d2c=0x0,height:_0x5353c5=0x0}=_0x4b690b[_0x94381(0x2fe)],{left:_0x288871=0x0,top:_0x2402bd=0x0,right:_0x327333=0x0,bottom:_0x4329e1=0x0}=this[_0x94381(0x1fb)][_0x94381(0x26d)],_0x63818f=_0x288871,_0x103c48=_0x2402bd,_0x47eb2b=_0x327333,_0x3c106e=_0x4329e1,_0x276c94=!0x1;if(_0xd64d2c!==0x0&&_0xd64d2c!==_0x466864){let _0x64aba9=_0x288871/_0xd64d2c,_0x34c42b=_0x327333/_0xd64d2c;_0x63818f=_0x466864*_0x64aba9,_0x47eb2b=_0x466864*_0x34c42b,_0x276c94=!0x0;}if(_0x5353c5!==0x0&&_0x5353c5!==_0x54b64c){let _0xb27d90=_0x2402bd/_0x5353c5,_0x19f044=_0x4329e1/_0x5353c5;_0x103c48=_0x54b64c*_0xb27d90,_0x3c106e=_0x54b64c*_0x19f044,_0x276c94=!0x0;}_0x276c94&&this[_0x94381(0x34b)]({'left':_0x63818f,'top':_0x103c48,'right':_0x47eb2b,'bottom':_0x3c106e});}['setSrcRect'](_0x5d014d){const _0x73a102=_0x48e9aa;this[_0x73a102(0x1fb)][_0x73a102(0x26d)]=_0x5d014d,this[_0x73a102(0x3a2)](!0x0);}[_0x48e9aa(0x203)](_0x584ca4){const _0x2725f9=_0x48e9aa;this[_0x2725f9(0x1fb)]['image']=_0x584ca4,this[_0x2725f9(0x3a2)](!0x0);}set['transform'](_0x9610c1){this['_transform']=_0x9610c1;}get[_0x48e9aa(0x30e)](){const _0x1098c4=_0x48e9aa;this['_transform']||this['_setTransForm']();let _0x428444=this[_0x1098c4(0x1aa)][_0x1098c4(0x2c3)]();return this[_0x1098c4(0x310)](_0x428444);}get[_0x48e9aa(0x1cd)](){const _0x471fae=_0x48e9aa;return this[_0x471fae(0x1fb)]['shapeModel'];}get[_0x48e9aa(0x3b3)](){const _0x9e0c3f=_0x48e9aa;return this['_props'][_0x9e0c3f(0x3b3)];}get[_0x48e9aa(0x303)](){const _0x255f38=_0x48e9aa;return _0x5bbdb7[_0x255f38(0x17f)];}['_draw'](_0x1c078a,_0x3075be,_0x2f844f,_0x844679){const _0x5759e9=_0x48e9aa;let _0x541aa3=this[_0x5759e9(0x1fb)][_0x5759e9(0x1cd)];if(!_0x541aa3||!_0x3075be)return;let _0x398326=_0x2f844f??this['width'],_0xf26319=_0x844679??this[_0x5759e9(0x361)],_0x2f3a56={'shapeType':_0x541aa3['getShapeType'](),'width':_0x398326,'height':_0xf26319},_0x221eaa={'renderMode':_0x4c042f[_0x5759e9(0x1be)],'oKey':this[_0x5759e9(0x2b0)],'image':this[_0x5759e9(0x1fb)][_0x5759e9(0x364)],'angle':this[_0x5759e9(0x1cb)]};_0x541aa3[_0x5759e9(0x384)](_0x2f3a56),_0x1c078a[_0x5759e9(0x1d4)]();let _0x2351df={'top':0x0,'left':0x0,'width':_0x398326,'height':_0xf26319},_0x1a96f2=_0x541aa3[_0x5759e9(0x274)](_0x2351df);_0x1a96f2?this['_renderWithCache'](_0x1c078a,_0x1a96f2,_0x5f2639=>{const _0x4f4ddd=_0x5759e9;_0x541aa3[_0x4f4ddd(0x265)](_0x5f2639,_0x2351df,_0x221eaa);}):(this[_0x5759e9(0x1a0)](),_0x541aa3['render'](_0x1c078a,_0x2351df,_0x221eaa)),_0x1c078a['restore']();let _0x2682a6=_0x541aa3[_0x5759e9(0x311)](),_0x446c93=_0x541aa3['getShapeTextRect'](_0x2351df),_0x5f55eb=_0x541aa3['isLineShape']();if(_0x2682a6&&_0x446c93&&!_0x5f55eb){_0x1c078a['save'](),this['getState']()[_0x5759e9(0x2ef)]&&_0x1c078a[_0x5759e9(0x1f0)](-0x1,0x1);let _0x198259=_0x398326/0x2,_0x240a03=_0xf26319/0x2;_0x1c078a[_0x5759e9(0x289)](-_0x198259,-_0x240a03),_0x1c078a[_0x5759e9(0x22f)](),this['_drawShapeText'](_0x1c078a,_0x2682a6,_0x446c93),_0x1c078a[_0x5759e9(0x2a6)]();}}[_0x48e9aa(0x244)](_0x3f8274){}[_0x48e9aa(0x37f)](_0x2bef81,_0xdfb3fd,_0x1d9b4e){const _0x372566=_0x48e9aa;var _0x216dd6;this[_0x372566(0x1a7)]=[],!this['_props'][_0x372566(0x370)]&&(!((_0x216dd6=_0xdfb3fd[_0x372566(0x365)])!=null&&_0x216dd6[_0x372566(0x333)])&&_0x372566(0x36a)in _0xdfb3fd&&_0xdfb3fd['isRichText']===!0x1?this['_drawSimpleText'](_0x2bef81,_0xdfb3fd,_0x1d9b4e):this[_0x372566(0x157)](_0x2bef81,_0xdfb3fd,_0x1d9b4e));}[_0x48e9aa(0x1d0)](_0x51b4eb,_0x208794,_0x2ec222){const _0x16155e=_0x48e9aa;this[_0x16155e(0x157)](_0x51b4eb,{..._0x208794,'text':_0x208794[_0x16155e(0x26e)]??'','dataModel':{'doc':_0x208a3c(_0x208794,_0x16155e(0x386)+this['oKey'])}},_0x2ec222);}['_drawRichText'](_0x306f1a,_0x599f24,_0x124c13){const _0x50d9bf=_0x48e9aa;_0x20394d(_0x306f1a,this[_0x50d9bf(0x227)],(_0x390879,_0x247c4b,_0x1f8096)=>{const _0x2ada6b=_0x50d9bf;this[_0x2ada6b(0x3b7)](_0x390879,_0x599f24,_0x124c13,_0x247c4b,_0x1f8096==='current');});}[_0x48e9aa(0x3b7)](_0x122631,_0x48e3a4,_0x5e13fc,_0x509006,_0x4ce057){const _0x4c6e3a=_0x48e9aa;let _0x4de220=this[_0x4c6e3a(0x1fb)][_0x4c6e3a(0x213)];if(!_0x48e3a4[_0x4c6e3a(0x365)]||!_0x4de220){_0x4de220||console['warn'](_0x4c6e3a(0x39c));return;}let _0x354cac=_0xe2a736(_0x48e3a4[_0x4c6e3a(0x365)]);if(!_0x354cac)return;let _0xf0f376=_0x354cac[_0x4c6e3a(0x333)];if(!_0xf0f376)return;let _0x3a51c2=_0xfe5d5c(_0xf0f376,_0x509006),_0x5efdf6=_0x354cac['va']??_0xe843d7['TOP'],_0x14af87=_0x354cac['ha']??_0xafeed3[_0x4c6e3a(0x221)],_0x3dc51f=qi(this[_0x4c6e3a(0x1fb)][_0x4c6e3a(0x1cd)][_0x4c6e3a(0x1ee)](),_0x48e3a4,_0x3a51c2),_0x42e2f9=_0x48e3a4[_0x4c6e3a(0x340)],_0x34a6af=_0x778e79(_0x3a51c2,{'isHorizontal':_0x42e2f9!==!0x1,'textRect':_0x5e13fc,'verticalAlign':_0x5efdf6,'horizontalAlign':_0x14af87,'wrapStrategy':_0x3dc51f['wrapStrategy']}),_0x58317e=new _0x1c9d0c(_0x34a6af),_0x4b0256=new _0xa9a5bb(_0x58317e),_0x1ef617=_0x427213[_0x4c6e3a(0x2ff)](_0x4b0256,_0x4de220);_0x1ef617[_0x4c6e3a(0x1a5)]();let _0xa72991=_0x1ef617['getActualSize']()[_0x4c6e3a(0x24e)],_0x4883e7=_0xc4dd47({'contentHeight':_0xa72991,'verticalAlign':_0x5efdf6,'viewportHeight':_0x5e13fc['height']});_0x58317e['updateDocumentStyle']({'pageSize':{'width':_0x42e2f9===!0x1?_0x5e13fc[_0x4c6e3a(0x361)]:_0x5e13fc[_0x4c6e3a(0x2be)],'height':_0x38ccf8(_0x3a51c2,_0x4883e7[_0x4c6e3a(0x2c7)])}}),_0x58317e['updateDocumentDataMargin']({'t':_0x4883e7[_0x4c6e3a(0x2f6)]}),_0x1ef617[_0x4c6e3a(0x1a5)]();let _0xdfb903=new _0x40e6ad(_0x4c6e3a(0x161)+this['oKey'],_0x1ef617,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x4c6e3a(0x3a2)](!0x0)});_0xdfb903[_0x4c6e3a(0x294)](_0x5e13fc[_0x4c6e3a(0x2be)],_0x4883e7[_0x4c6e3a(0x2c7)]),_0x122631[_0x4c6e3a(0x1d4)](),_0x122631[_0x4c6e3a(0x1c9)](_0x5e13fc['left'],_0x5e13fc['top']),_0x3dc51f[_0x4c6e3a(0x2d2)]&&(_0x122631['beginPath'](),_0x122631[_0x4c6e3a(0x24b)](0x0,_0x4883e7[_0x4c6e3a(0x3ac)],_0x5e13fc[_0x4c6e3a(0x2be)],_0x4883e7[_0x4c6e3a(0x253)]),_0x122631['clip']()),_0x4883e7['contentVerticalOffset']&&_0x122631[_0x4c6e3a(0x1c9)](0x0,_0x4883e7[_0x4c6e3a(0x1c5)]),_0xdfb903[_0x4c6e3a(0x174)](_0x122631),_0x4ce057&&(this[_0x4c6e3a(0x1a7)]=_0x42d63b(_0xdfb903,{'left':_0x5e13fc[_0x4c6e3a(0x391)],'top':_0x5e13fc[_0x4c6e3a(0x1d8)]+_0x4883e7[_0x4c6e3a(0x1c5)]},_0x3dc51f['clip']?{'left':_0x5e13fc[_0x4c6e3a(0x391)],'right':_0x5e13fc[_0x4c6e3a(0x391)]+_0x5e13fc['width'],'top':_0x5e13fc[_0x4c6e3a(0x1d8)]+_0x4883e7['clipTop'],'bottom':_0x5e13fc[_0x4c6e3a(0x1d8)]+_0x4883e7[_0x4c6e3a(0x3ac)]+_0x4883e7['clipHeight']}:void 0x0)),_0x122631['restore'](),_0xdfb903[_0x4c6e3a(0x334)](),_0x1ef617['dispose'](),_0x4b0256[_0x4c6e3a(0x334)](),_0x58317e['dispose']();}['render'](_0x3e8c30,_0xf0e15d,_0x23b153=!0x1){const _0x3a8895=_0x48e9aa;if(!this['visible'])return this['makeDirty'](!0x1),this;let {width:_0x500a38,height:_0x23d5f9,left:_0x3d84c9,top:_0x20c14b}=this,_0x416217=this[_0x3a8895(0x30c)]();if(_0x500a38=_0x416217[_0x3a8895(0x2be)],_0x23d5f9=_0x416217['height'],_0x3d84c9=_0x416217[_0x3a8895(0x391)],_0x20c14b=_0x416217['top'],this[_0x3a8895(0x261)](_0xf0e15d)){let {top:_0x1cbc80,left:_0x5c22e5,bottom:_0x524c03,right:_0x47dd5b}=_0xf0e15d['viewBound'];if(_0x500a38+this['strokeWidth']+_0x3d84c9<_0x5c22e5||_0x47dd5b<_0x3d84c9||_0x23d5f9+this[_0x3a8895(0x2d5)]+_0x20c14b<_0x1cbc80||_0x524c03<_0x20c14b)return this;}let _0x33d0f2=_0x3d84c9+_0x500a38/0x2,_0x42b1c4=_0x20c14b+_0x23d5f9/0x2,_0xdb64da=this[_0x3a8895(0x30e)][_0x3a8895(0x35c)]();if(this['_props']['isEditing']){let _0x3d3b2e=this[_0x3a8895(0x18f)](),_0x9aab30=new _0x3c60b5();_0x9aab30['composeMatrix']({..._0x3d3b2e}),_0xdb64da=_0x9aab30[_0x3a8895(0x35c)]();}return _0x3e8c30['save'](),this[_0x3a8895(0x1fb)][_0x3a8895(0x1cd)][_0x3a8895(0x309)]===!0x0||_0x3e8c30['transform'](_0xdb64da[0x0],_0xdb64da[0x1],_0xdb64da[0x2],_0xdb64da[0x3],_0x33d0f2,_0x42b1c4),this['_draw'](_0x3e8c30,_0xf0e15d,_0x500a38,_0x23d5f9),_0x3e8c30['restore'](),this[_0x3a8895(0x3a2)](!0x1),this;}[_0x48e9aa(0x1ac)](_0x5d77cb){const _0x569503=_0x48e9aa;let {left:_0x28eef3,top:_0xc4274,width:_0x5b86fc,height:_0x369438}=this[_0x569503(0x30c)](),_0x39f801=this['transform'][_0x569503(0x35c)](),_0x469517=_0x28eef3+_0x5b86fc/0x2,_0x2babcb=_0xc4274+_0x369438/0x2,_0x34d7c9=new _0x3c60b5([_0x39f801[0x0],_0x39f801[0x1],_0x39f801[0x2],_0x39f801[0x3],_0x469517,_0x2babcb]),_0x51b8a0=this[_0x569503(0x14d)]();return(this[_0x569503(0x2ce)]&&(_0x51b8a0==null?void 0x0:_0x51b8a0['classType'])===_0x5bbdb7[_0x569503(0x1db)]?_0x51b8a0[_0x569503(0x1ca)]['multiply'](_0x34d7c9):_0x34d7c9)[_0x569503(0x18e)]()['applyPoint'](_0x5d77cb);}['isHit'](_0x198282){const _0xb67457=_0x48e9aa;let {left:_0x109bc1,top:_0x277e8a,width:_0x27b31c,height:_0x148fdc}=this['getRealBound'](),_0xfc6313=_0x109bc1+_0x27b31c/0x2,_0x38fd7f=_0x277e8a+_0x148fdc/0x2,_0x25de92=this[_0xb67457(0x30e)][_0xb67457(0x35c)](),_0x10d36a=new _0x3c60b5([_0x25de92[0x0],_0x25de92[0x1],_0x25de92[0x2],_0x25de92[0x3],_0xfc6313,_0x38fd7f]),_0x1e7271=this['getParent'](),_0x11015a=(this[_0xb67457(0x2ce)]&&(_0x1e7271==null?void 0x0:_0x1e7271[_0xb67457(0x303)])===_0x5bbdb7[_0xb67457(0x1db)]?_0x1e7271[_0xb67457(0x1ca)][_0xb67457(0x342)](_0x10d36a):_0x10d36a)[_0xb67457(0x18e)]()['applyPoint'](_0x198282),_0x3a091f=_0x27b31c/0x2,_0x2e5180=_0x148fdc/0x2,_0x348fc5=this[_0xb67457(0x1fb)][_0xb67457(0x1cd)];return _0x348fc5&&_0x348fc5[_0xb67457(0x24c)]()?_0x348fc5[_0xb67457(0x37c)](_0x11015a['x'],_0x11015a['y'],_0x27b31c,_0x148fdc):_0x11015a['x']>=-_0x3a091f-this[_0xb67457(0x2d5)]/0x2&&_0x11015a['x']<=_0x3a091f+this[_0xb67457(0x2d5)]/0x2&&_0x11015a['y']>=-_0x2e5180-this[_0xb67457(0x2d5)]/0x2&&_0x11015a['y']<=_0x2e5180+this['strokeWidth']/0x2;}[_0x48e9aa(0x334)](){const _0x41c4c1=_0x48e9aa;this['_formulaAnimation'][_0x41c4c1(0x334)](),this[_0x41c4c1(0x1fb)][_0x41c4c1(0x1cd)]=null,super[_0x41c4c1(0x334)]();}};let Ji=class extends _0x5207f2{constructor(_0x2d679e,_0x448fd8,_0x513d7c,_0x39cd92){const _0x447f2f=_0x48e9aa;super(),this['_context']=_0x2d679e,this[_0x447f2f(0x257)]=_0x448fd8,this[_0x447f2f(0x2dd)]=_0x513d7c,this[_0x447f2f(0x27e)]=_0x39cd92,J(this,_0x447f2f(0x191),null),J(this,_0x447f2f(0x1a2),null),J(this,'_subUnitId',null),J(this,_0x447f2f(0x396),void 0x0),J(this,_0x447f2f(0x2bc),[]),J(this,'_baseShapeLeft',0x0),J(this,_0x447f2f(0x21b),0x0),J(this,_0x447f2f(0x2ec),0x0),J(this,_0x447f2f(0x2a8),0x0),J(this,_0x447f2f(0x19e),!0x1),J(this,_0x447f2f(0x246),!0x1),J(this,_0x447f2f(0x1a4),void 0x0),J(this,'_activeShapeModel',void 0x0),J(this,_0x447f2f(0x285),void 0x0),J(this,_0x447f2f(0x344),void 0x0),this['_registerDrawingFocusChangeHandler'](),this['_registerDrawingTransformHandler']();}['clearAdjustControls'](){const _0x49f83e=_0x48e9aa;this[_0x49f83e(0x39b)]();}['refreshAdjustControls'](){const _0x354bbf=_0x48e9aa;this[_0x354bbf(0x2a0)](!0x0);}[_0x48e9aa(0x385)](_0x7e0e31,_0x45ccd8,_0x579133){const _0x2fa1a3=_0x48e9aa;var _0x46b43e;return(_0x46b43e=this[_0x2fa1a3(0x2dd)]['getShapeModel'](_0x7e0e31,_0x45ccd8,_0x579133))==null?void 0x0:_0x46b43e['getDrawingPoints']();}[_0x48e9aa(0x1c0)](_0x3eae5f,_0x383ab3,_0x2eeef2,_0x3fbe77){const _0x213188=_0x48e9aa;var _0x46925f;return(_0x46925f=this[_0x213188(0x2dd)]['getShapeModel'](_0x3eae5f,_0x383ab3,_0x2eeef2))==null?void 0x0:_0x46925f['getAdjustInfoByName'](_0x3fbe77);}[_0x48e9aa(0x357)](){const _0x41c2e5=_0x48e9aa;return this[_0x41c2e5(0x1a2)]===null||this[_0x41c2e5(0x163)]===null||this[_0x41c2e5(0x191)]===null?null:this[_0x41c2e5(0x257)][_0x41c2e5(0x327)]({'unitId':this[_0x41c2e5(0x1a2)],'subUnitId':this[_0x41c2e5(0x163)],'drawingId':this[_0x41c2e5(0x191)]})??null;}[_0x48e9aa(0x328)](_0x5992b1){const _0x540edb=_0x48e9aa;if(this['_unitId']===null||this[_0x540edb(0x163)]===null||this[_0x540edb(0x191)]===null)return null;let _0x36c2f7=_0x309ca8({'unitId':this[_0x540edb(0x1a2)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']}),_0x3d270b=_0x5992b1[_0x540edb(0x2f5)](_0x36c2f7);return _0x3d270b instanceof Y?_0x3d270b:null;}[_0x48e9aa(0x30f)](_0x3a69ca=!0x1){const _0x285595=_0x48e9aa;if(this[_0x285595(0x1a2)]===null||this['_subUnitId']===null||this[_0x285595(0x191)]===null)return;let _0x2eaba8=this[_0x285595(0x357)]();if((_0x2eaba8==null?void 0x0:_0x2eaba8[_0x285595(0x1f4)])!==_0x4a830a[_0x285595(0x242)]||!_0x2eaba8[_0x285595(0x30e)])return;let _0x5c622c=this[_0x285595(0x2dd)][_0x285595(0x31a)](this[_0x285595(0x1a2)],this['_subUnitId'],this[_0x285595(0x191)]);if(!_0x5c622c||_0x5c622c[_0x285595(0x24c)]())return;let {left:_0x5714f6=0x0,top:_0x343701=0x0,width:_0x4bb7d1=0x0,height:_0x14001b=0x0,flipX:_0xfe34f1,flipY:_0x5d6b27,angle:_0x30643c=0x0}=_0x2eaba8[_0x285595(0x30e)];(_0x3a69ca||!this[_0x285595(0x396)])&&(_0x5c622c[_0x285595(0x384)]({'width':_0x4bb7d1,'height':_0x14001b}),this[_0x285595(0x396)]=_0x5c622c['getDrawingPoints']());let _0x28bd9d=this[_0x285595(0x396)];if(!(_0x28bd9d!=null&&_0x28bd9d[_0x285595(0x321)]))return;let {scene:_0x365479}=this[_0x285595(0x325)];for(let _0x3e797c of _0x28bd9d){let _0x32be4a=this[_0x285595(0x308)](_0x3e797c,_0x4bb7d1,_0x14001b,!!_0xfe34f1,!!_0x5d6b27,_0x30643c);this[_0x285595(0x2bb)](_0x365479,_0x32be4a,_0x32be4a[_0x285595(0x15e)],_0x5714f6,_0x343701,this[_0x285595(0x1a2)],this[_0x285595(0x163)]);}}['_toVisualAdjustPoint'](_0x4de852,_0x1144e2,_0x3a843f,_0x3732cc,_0x463dad,_0x45ff2c){const _0x248b88=_0x48e9aa;let _0x5cd3fa=_0x4de852['x'],_0xcf81d8=_0x4de852['y'];if(_0x3732cc&&(_0x5cd3fa=_0x1144e2-_0x5cd3fa),_0x463dad&&(_0xcf81d8=_0x3a843f-_0xcf81d8),_0x45ff2c!==0x0){let _0x1aca2d=_0x1144e2/0x2,_0x21314c=_0x3a843f/0x2,_0x49193a=_0x45ff2c*Math['PI']/0xb4,_0xaf2252=Math['cos'](_0x49193a),_0x9c4824=Math[_0x248b88(0x185)](_0x49193a),_0x243bf5=_0x5cd3fa-_0x1aca2d,_0x2f93a4=_0xcf81d8-_0x21314c;_0x5cd3fa=_0x1aca2d+(_0x243bf5*_0xaf2252-_0x2f93a4*_0x9c4824),_0xcf81d8=_0x21314c+(_0x243bf5*_0x9c4824+_0x2f93a4*_0xaf2252);}return{'x':_0x5cd3fa,'y':_0xcf81d8,'adjName':_0x4de852[_0x248b88(0x15e)]};}['_updateShapeAdjustControls'](_0x11621a=!0x1){const _0xbfe906=_0x48e9aa;_0x11621a&&this[_0xbfe906(0x39b)](),this['_createShapeAdjustControls'](_0x11621a);}['_addShapeAdjustControl'](_0x571021,_0x42fd05,_0x1e28f7,_0x2b8ffa,_0x364134,_0x71c49,_0x1eb525){const _0x377785=_0x48e9aa;if(!this['_activeShapeId'])return;let _0x5d0414=_0x377785(0x1eb)+this['_activeShapeId']+'-'+_0x1e28f7,_0x257eea=_0x571021['getObjectIncludeInGroup'](_0x5d0414);if(_0x257eea){_0x257eea[_0x377785(0x3b6)]({'left':_0x42fd05['x']+_0x2b8ffa-_0x516b6b['adjHandleSize'],'top':_0x42fd05['y']+_0x364134-_0x516b6b[_0x377785(0x3a7)]}),_0x257eea[_0x377785(0x3a2)](!0x0);return;}let _0x4dee9a=new Ki(_0x5d0414,{'left':_0x42fd05['x']+_0x2b8ffa-_0x516b6b[_0x377785(0x3a7)],'top':_0x42fd05['y']+_0x364134-_0x516b6b[_0x377785(0x3a7)],'adjName':_0x1e28f7,'shapeId':this[_0x377785(0x191)],'unitId':_0x71c49,'subUnitId':_0x1eb525,'width':_0x516b6b[_0x377785(0x3a7)]+0x8,'height':_0x516b6b['adjHandleSize']+0x8,'zIndex':_0x388b9d+0x1,'evented':!0x0});this[_0x377785(0x2bc)]['push'](_0x4dee9a),this[_0x377785(0x199)](_0x4dee9a,_0x571021,_0x1e28f7),_0x571021[_0x377785(0x162)](_0x4dee9a,_0x388b9d+0x1);}[_0x48e9aa(0x39b)](){const _0x19550b=_0x48e9aa;this['_adjustPointObjects'][_0x19550b(0x15d)](_0x1276b6=>_0x1276b6['dispose']()),this[_0x19550b(0x2bc)]=[];}[_0x48e9aa(0x223)](){const _0x51bf8c=_0x48e9aa;this[_0x51bf8c(0x30f)]();}['_toScenePoint'](_0x2cc443,_0x553613,_0x21f860){const _0x33fa6f=_0x48e9aa;let _0x5e183c=_0x27cac4[_0x33fa6f(0x343)]([_0x553613,_0x21f860]),_0x3e95fa=_0x2cc443[_0x33fa6f(0x2c0)](_0x5e183c)??_0x2cc443[_0x33fa6f(0x2d3)]()[0x0];return(_0x3e95fa==null?void 0x0:_0x3e95fa['transformVector2SceneCoord'](_0x5e183c))??_0x5e183c;}['_attachAdjustEvent'](_0x374d75,_0x9cc5a,_0x5774f2){const _0x58bf58=_0x48e9aa;this[_0x58bf58(0x166)](_0x1fb9e7(_0x374d75[_0x58bf58(0x37a)][_0x58bf58(0x275)]((_0xe9f9b0,_0x3cb4b7)=>{const _0x46bb68=_0x58bf58;var _0x1841fd;let _0x20b22e=_0x374d75[_0x46bb68(0x200)]();this['_activeAdjustInfo']=this['_getShapeAdjustInfosById'](_0x20b22e[_0x46bb68(0x225)],_0x20b22e[_0x46bb68(0x2e7)],_0x20b22e[_0x46bb68(0x1d7)],_0x5774f2),this[_0x46bb68(0x2d7)]=this['_docsShapeService']['getShapeModel'](_0x20b22e[_0x46bb68(0x225)],_0x20b22e[_0x46bb68(0x2e7)],_0x20b22e['drawingId']);let _0x119b8e=this[_0x46bb68(0x357)](),_0x55ef94=_0x119b8e==null?void 0x0:_0x119b8e['transform'];if(!_0x119b8e||!_0x55ef94||!this[_0x46bb68(0x2d7)])return;this[_0x46bb68(0x302)]=_0x55ef94[_0x46bb68(0x391)]||0x0,this['_baseShapeTop']=_0x55ef94[_0x46bb68(0x1d8)]||0x0,this[_0x46bb68(0x2ec)]=_0x55ef94[_0x46bb68(0x2be)]||0x0,this[_0x46bb68(0x2a8)]=_0x55ef94[_0x46bb68(0x361)]||0x0;let _0x2d5584=!!_0x55ef94[_0x46bb68(0x2ef)],_0x1a58e2=!!_0x55ef94[_0x46bb68(0x25b)],_0x20374d=_0x55ef94['angle']||0x0,_0x282ffb={...((_0x1841fd=this['_activeAdjustInfo'])==null?void 0x0:_0x1841fd['currentAdjustValues'])??{}};this[_0x46bb68(0x19e)]=!0x0,_0x9cc5a[_0x46bb68(0x22a)](),this[_0x46bb68(0x285)]=_0x9cc5a['onPointerMove$'][_0x46bb68(0x275)]((_0x1af01f,_0x400378)=>{const _0x2529de=_0x46bb68;var _0x4b28da;if(!this['_isStartAdjusting']||!this[_0x2529de(0x2d7)]||!this['_activeAdjustInfo'])return;_0x9cc5a[_0x2529de(0x22a)](),_0x9cc5a[_0x2529de(0x305)](_0x16d77d['CROSSHAIR']);let _0x261192=this[_0x2529de(0x33a)](_0x9cc5a,_0x1af01f[_0x2529de(0x194)],_0x1af01f[_0x2529de(0x3bc)]),_0x2368e8=_0x261192['x']-this[_0x2529de(0x302)],_0x3a17f1=_0x261192['y']-this['_baseShapeTop'];if(_0x20374d!==0x0){let _0x276289=this['_baseShapeWidth']/0x2,_0x2a4655=this['_baseShapeHeight']/0x2,_0x5714f8=_0x20374d*Math['PI']/0xb4,_0x37c325=Math[_0x2529de(0x1b6)](_0x5714f8),_0x5784f5=Math['sin'](_0x5714f8),_0x26eeff=_0x2368e8-_0x276289,_0x50050b=_0x3a17f1-_0x2a4655;_0x2368e8=_0x276289+(_0x26eeff*_0x37c325+_0x50050b*_0x5784f5),_0x3a17f1=_0x2a4655+(-_0x26eeff*_0x5784f5+_0x50050b*_0x37c325);}_0x2d5584&&(_0x2368e8=this[_0x2529de(0x2ec)]-_0x2368e8),_0x1a58e2&&(_0x3a17f1=this[_0x2529de(0x2a8)]-_0x3a17f1);let _0xeac414={'left':0x0,'top':0x0,'width':this[_0x2529de(0x2ec)],'height':this[_0x2529de(0x2a8)]},_0x1cbca0=this['_activeShapeModel'][_0x2529de(0x381)](_0xeac414,{'x':_0x2368e8,'y':_0x3a17f1},this[_0x2529de(0x1a4)],_0x2d5584,_0x1a58e2);if(Object[_0x2529de(0x30d)](_0x1cbca0)[_0x2529de(0x321)]!==0x0){for(let [_0xbdc6cd,_0x2f87b0]of Object['entries'](_0x1cbca0))this[_0x2529de(0x2d7)]['setAdjustValueByName'](_0xbdc6cd,_0x2f87b0);this[_0x2529de(0x2d7)][_0x2529de(0x384)]({'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']}),(_0x4b28da=this[_0x2529de(0x328)](_0x9cc5a))==null||_0x4b28da[_0x2529de(0x3a2)](!0x0),this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](_0x20b22e['unitId'],_0x20b22e['subUnitId'],_0x20b22e[_0x2529de(0x1d7)]),this[_0x2529de(0x223)](),_0x400378[_0x2529de(0x1f8)]();}}),this[_0x46bb68(0x344)]=_0x9cc5a[_0x46bb68(0x1b9)][_0x46bb68(0x275)]((_0x2c8b6a,_0x3cdd45)=>{const _0x216dfa=_0x46bb68;var _0x121fd6,_0x22ef58;(_0x121fd6=this[_0x216dfa(0x285)])==null||_0x121fd6['unsubscribe'](),(_0x22ef58=this[_0x216dfa(0x344)])==null||_0x22ef58['unsubscribe'](),_0x9cc5a['resetCursor']();let _0x596e26=this[_0x216dfa(0x1a4)];if(_0x596e26&&this[_0x216dfa(0x2d7)]){let _0x1aaff9={};for(let _0x42038d of Object[_0x216dfa(0x30d)](_0x596e26[_0x216dfa(0x2ed)])){let _0x49d626=this[_0x216dfa(0x2d7)][_0x216dfa(0x198)](_0x42038d);_0x49d626!==void 0x0&&(_0x1aaff9[_0x42038d]=_0x49d626);}Object[_0x216dfa(0x30d)](_0x1aaff9)[_0x216dfa(0x321)]>0x0&&Yr(this['_commandService'],_0x20b22e[_0x216dfa(0x225)],_0x20b22e['subUnitId'],_0x20b22e[_0x216dfa(0x1d7)],{'oldShapeData':{'adjustValues':_0x282ffb}},{'adjustValues':_0x1aaff9});}this[_0x216dfa(0x1a4)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x216dfa(0x19e)]=!0x1,_0x9cc5a[_0x216dfa(0x24d)](),_0x3cdd45[_0x216dfa(0x1f8)]();}),_0x3cb4b7[_0x46bb68(0x1f8)]();})));}[_0x48e9aa(0x23d)](){const _0x5c3e72=_0x48e9aa;let {scene:_0x65cb61}=this[_0x5c3e72(0x325)],_0x40497b=_0x65cb61['getTransformerByCreate']();this['disposeWithMe'](_0x40497b[_0x5c3e72(0x22d)][_0x5c3e72(0x33b)](_0xe488bf=>{const _0x5cdbd6=_0x5c3e72;this[_0x5cdbd6(0x30f)](),_0xe488bf[_0x5cdbd6(0x2c2)]!==null&&_0xe488bf['objects'][_0x5cdbd6(0x236)]===0x1&&_0xe488bf[_0x5cdbd6(0x2c2)][_0x5cdbd6(0x312)]()[_0x5cdbd6(0x217)]()['value']instanceof Y&&(this[_0x5cdbd6(0x246)]=!0x0);})),this[_0x5c3e72(0x166)](_0x40497b[_0x5c3e72(0x260)][_0x5c3e72(0x33b)](()=>{const _0x4dee1c=_0x5c3e72;this[_0x4dee1c(0x246)]&&this[_0x4dee1c(0x39b)]();})),this[_0x5c3e72(0x166)](_0x65cb61[_0x5c3e72(0x1b9)][_0x5c3e72(0x275)](()=>{const _0x27c4a7=_0x5c3e72;this[_0x27c4a7(0x246)]&&(this[_0x27c4a7(0x246)]=!0x1,this[_0x27c4a7(0x30f)]());})),this[_0x5c3e72(0x166)](_0x40497b[_0x5c3e72(0x39a)][_0x5c3e72(0x33b)](()=>{const _0x47b4f0=_0x5c3e72;this[_0x47b4f0(0x1a2)]&&this[_0x47b4f0(0x163)]&&this['_activeShapeId']&&(this[_0x47b4f0(0x396)]=this[_0x47b4f0(0x385)](this[_0x47b4f0(0x1a2)],this[_0x47b4f0(0x163)],this[_0x47b4f0(0x191)]),this[_0x47b4f0(0x223)]());}));}[_0x48e9aa(0x306)](){const _0x1de598=_0x48e9aa;this[_0x1de598(0x166)](this[_0x1de598(0x27e)][_0x1de598(0x14f)](_0x3780f5=>{const _0x3c3828=_0x1de598;if(_0x3780f5['id']!==_0x1a7d3e['id'])return;let {unitId:_0x4ff459,shapeId:_0x4d0464}=_0x3780f5[_0x3c3828(0x2ae)];_0x4ff459===this[_0x3c3828(0x1a2)]&&_0x4d0464===this[_0x3c3828(0x191)]&&this[_0x3c3828(0x2b3)]();})),this['disposeWithMe'](this['_drawingManagerService'][_0x1de598(0x247)][_0x1de598(0x33b)](_0x4149c8=>{const _0x24958c=_0x1de598;if(_0x4149c8[_0x24958c(0x321)]===0x1){let _0x639d91=_0x4149c8[0x0],_0x5951ad=this[_0x24958c(0x257)][_0x24958c(0x327)](_0x639d91);if((_0x5951ad==null?void 0x0:_0x5951ad[_0x24958c(0x1f4)])===_0x4a830a[_0x24958c(0x242)]){this[_0x24958c(0x191)]=_0x639d91[_0x24958c(0x1d7)],this[_0x24958c(0x1a2)]=_0x639d91['unitId'],this[_0x24958c(0x163)]=_0x639d91['subUnitId'],this[_0x24958c(0x396)]=this['_getShapeAdjustPointListById'](_0x639d91[_0x24958c(0x225)],_0x639d91[_0x24958c(0x2e7)],_0x639d91['drawingId']),this[_0x24958c(0x39b)](),this[_0x24958c(0x30f)]();return;}}this['_activeShapeId']=null,this[_0x24958c(0x396)]=void 0x0,this[_0x24958c(0x1a2)]=null,this[_0x24958c(0x163)]=null,this['_clearShapeAdjustControls']();})),this[_0x1de598(0x166)](_0x3032d0(this[_0x1de598(0x257)][_0x1de598(0x226)],this['_drawingManagerService'][_0x1de598(0x158)])['subscribe'](_0x3e49ea=>{const _0x3cfc33=_0x1de598;var _0x217075;let _0x281eee=_0x3e49ea[_0x3cfc33(0x349)](_0x45b927=>_0x45b927[_0x3cfc33(0x1d7)]===this[_0x3cfc33(0x191)]&&_0x45b927[_0x3cfc33(0x225)]===this[_0x3cfc33(0x1a2)]&&_0x45b927[_0x3cfc33(0x2e7)]===this[_0x3cfc33(0x163)]);_0x281eee&&((_0x217075=this[_0x3cfc33(0x257)][_0x3cfc33(0x327)](_0x281eee))==null?void 0x0:_0x217075[_0x3cfc33(0x1f4)])===_0x4a830a[_0x3cfc33(0x242)]&&this[_0x3cfc33(0x2a0)](!0x0);})),this[_0x1de598(0x166)](this[_0x1de598(0x257)]['remove$'][_0x1de598(0x33b)](_0x2bf49c=>{const _0x16b943=_0x1de598;for(let _0x1a1493 of _0x2bf49c)this['_activeShapeId']===_0x1a1493[_0x16b943(0x1d7)]&&(this['_activeShapeId']=null,this[_0x16b943(0x396)]=void 0x0,this['_unitId']=null,this[_0x16b943(0x163)]=null,this[_0x16b943(0x39b)]());}));}};Ji=q([K(0x1,_0x5eaac6),K(0x2,_0x279b1a(_0x5b7f91)),K(0x3,_0x1310fd)],Ji);let X=class extends _0x5207f2{constructor(_0x52feaa,_0x1f8d24){const _0x44003b=_0x48e9aa;super(),this[_0x44003b(0x219)]=_0x52feaa,this[_0x44003b(0x268)]=_0x1f8d24,J(this,'_editingParams$',new _0x25ff07(null)),J(this,_0x44003b(0x1bd),this[_0x44003b(0x39d)][_0x44003b(0x1f6)]()),J(this,_0x44003b(0x36b),new _0x25ff07(!0x1)),J(this,_0x44003b(0x28e),this[_0x44003b(0x36b)][_0x44003b(0x1f6)]()),J(this,_0x44003b(0x2b6),void 0x0),this[_0x44003b(0x166)](this[_0x44003b(0x219)][_0x44003b(0x222)][_0x44003b(0x33b)](()=>{const _0x48f664=_0x44003b;let _0x73aa03=this['getEditing']();_0x73aa03!=null&&_0x73aa03['visible']&&!this['_canEdit'](_0x73aa03)&&this[_0x48f664(0x1dd)](null);}));}[_0x48e9aa(0x334)](){const _0x1c4787=_0x48e9aa;this[_0x1c4787(0x28b)](),this['_editingParams$'][_0x1c4787(0x217)](null),this['_editingParams$'][_0x1c4787(0x287)](),this[_0x1c4787(0x36b)][_0x1c4787(0x217)](!0x1),this[_0x1c4787(0x36b)][_0x1c4787(0x287)](),super['dispose']();}['setEditing'](_0xee67ea){const _0x3b48ab=_0x48e9aa;(_0xee67ea==null||!_0xee67ea[_0x3b48ab(0x14b)]||this['_canEdit'](_0xee67ea))&&(this['_clearCompletionFrame'](),this['_editingParams$']['next'](_0xee67ea),(_0xee67ea==null||_0xee67ea['visible']&&this[_0x3b48ab(0x36b)][_0x3b48ab(0x345)]())&&this['_onSavingEditorData$']['next'](!0x1));}[_0x48e9aa(0x156)](_0x14fd4a){const _0x2853a6=_0x48e9aa;this[_0x2853a6(0x36b)]['next'](_0x14fd4a);}[_0x48e9aa(0x2a7)](){const _0x54d9cf=_0x48e9aa;return this[_0x54d9cf(0x39d)][_0x54d9cf(0x345)]();}[_0x48e9aa(0x371)](_0x363b3c){const _0x2d0d0b=_0x48e9aa;let _0x539d59=this['_instanceService'][_0x2d0d0b(0x2db)](_0x363b3c['unitId'],_0x42988e[_0x2d0d0b(0x237)]);if(!_0x539d59)return!0x0;let _0x2a148f=_0x59cb02(_0x539d59,_0x363b3c[_0x2d0d0b(0x3b3)]);return _0x409214(this[_0x2d0d0b(0x219)],_0x363b3c[_0x2d0d0b(0x225)],[..._0x15f270(_0x539d59,_0x2a148f,'drawing',_0x363b3c['shapeId']),_0x4ffa0c(_0x2a148f,_0x2d0d0b(0x280),_0x363b3c[_0x2d0d0b(0x3b3)])]);}[_0x48e9aa(0x16d)](_0x221726){const _0x13dafd=_0x48e9aa;let _0x5cd84a=this[_0x13dafd(0x2a7)]();_0x5cd84a&&this[_0x13dafd(0x2b6)]===void 0x0&&(this[_0x13dafd(0x156)](!0x0),this[_0x13dafd(0x2b6)]=requestAnimationFrame(()=>{const _0x35b478=_0x13dafd;this['_completionFrame']=void 0x0,this[_0x35b478(0x2a7)]()===_0x5cd84a&&this[_0x35b478(0x1dd)](null);}));}[_0x48e9aa(0x28b)](){const _0x381a4b=_0x48e9aa;this[_0x381a4b(0x2b6)]!==void 0x0&&(cancelAnimationFrame(this[_0x381a4b(0x2b6)]),this['_completionFrame']=void 0x0);}[_0x48e9aa(0x179)](){const _0x4cb593=_0x48e9aa;this[_0x4cb593(0x2a7)]()&&this[_0x4cb593(0x1dd)](null);}};X=q([K(0x0,_0x558aa1),K(0x1,_0x3d68d4)],X);function Yi(_0x2cd50c){const _0x5d6b9a=_0x48e9aa;return _0x2cd50c[_0x5d6b9a(0x3b2)]===!0x0||_0x2cd50c['behindText']===_0x5676e9['TRUE']||_0x2cd50c[_0x5d6b9a(0x2e2)]===_0x1bbcc2[_0x5d6b9a(0x389)]&&_0x2cd50c[_0x5d6b9a(0x2c6)]===_0x5676e9[_0x5d6b9a(0x1d3)]?_0x11a561-0x1:_0x388b9d;}let Z=class extends _0x5207f2{constructor(_0xa9fa92,_0x2f9910,_0x93db9d,_0x16c2a8,_0x329c10,_0x3334b8,_0x43970b){const _0x56ca37=_0x48e9aa;super(),this[_0x56ca37(0x257)]=_0xa9fa92,this[_0x56ca37(0x2dd)]=_0x2f9910,this['_localeService']=_0x93db9d,this[_0x56ca37(0x398)]=_0x16c2a8,this[_0x56ca37(0x2c8)]=_0x329c10,this['_shapeTextEditingService']=_0x3334b8,this[_0x56ca37(0x1ce)]=_0x43970b,J(this,_0x56ca37(0x220),new Map()),this[_0x56ca37(0x166)](this[_0x56ca37(0x1ce)][_0x56ca37(0x21c)][_0x56ca37(0x33b)](_0x2e2cc5=>{const _0x210a92=_0x56ca37;var _0x45bc22;(_0x45bc22=this[_0x210a92(0x220)][_0x210a92(0x2b4)](this[_0x210a92(0x331)](_0x2e2cc5['unitId'],_0x2e2cc5[_0x210a92(0x2e7)],_0x2e2cc5[_0x210a92(0x3b3)])))==null||_0x45bc22['forEach'](_0x4c9998=>_0x4c9998['setFormulaPresentation'](_0x2e2cc5[_0x210a92(0x356)],_0x2e2cc5[_0x210a92(0x230)]));})),this[_0x56ca37(0x166)](this[_0x56ca37(0x257)][_0x56ca37(0x337)][_0x56ca37(0x33b)](_0x4584c8=>{const _0x4a0132=_0x56ca37;_0x4584c8[_0x4a0132(0x15d)](_0x3f47ff=>{const _0x45ecaf=_0x4a0132;this[_0x45ecaf(0x1ce)][_0x45ecaf(0x18b)]({'unitId':_0x3f47ff['unitId'],'subUnitId':_0x3f47ff[_0x45ecaf(0x2e7)],'shapeId':_0x3f47ff['drawingId']}),this[_0x45ecaf(0x220)][_0x45ecaf(0x1b7)](this['_formulaKey'](_0x3f47ff['unitId'],_0x3f47ff['subUnitId'],_0x3f47ff[_0x45ecaf(0x1d7)]));});}));}[_0x48e9aa(0x394)](_0x2eab60,_0x501a1d){const _0xcec851=_0x48e9aa;let {transform:_0x3ed729,drawingType:_0x173473,srcRect:_0x219b71,prstGeom:_0x3c8fab,groupId:_0x6c94ca,unitId:_0x4e8408,subUnitId:_0x29367f,drawingId:_0xe15979,isMultiTransform:_0x3a3f2c,transforms:_0x2d128b,hidden:_0xc5481f,selectable:_0x3fddc5}=_0x2eab60;if(_0x173473!==_0x4a830a[_0xcec851(0x242)]||!this['_drawingManagerService'][_0xcec851(0x1ad)]()||_0x3ed729==null)return;let _0x630485=this[_0xcec851(0x257)][_0xcec851(0x1d6)](),_0x406ec9=_0x3a3f2c&&_0x2d128b?_0x2d128b:[_0x3ed729],_0x3441be=[];for(let [_0x1ac8a3,_0xa0d5e4]of _0x406ec9[_0xcec851(0x1d1)]()){let {left:_0x296fe0,top:_0xa826a7,width:_0x297d0d,height:_0x5c7f36,angle:_0x4a2752,flipX:_0x4e546a,flipY:_0x4dc547,skewX:_0x54e1b5,skewY:_0x4ca510}=_0xa0d5e4,_0x433288=_0x309ca8({'unitId':_0x4e8408,'subUnitId':_0x29367f,'drawingId':_0xe15979},_0x3a3f2c?_0x1ac8a3:void 0x0),_0x3d8155=_0x501a1d['getObjectIncludeInGroup'](_0x433288);if(_0x3d8155!=null){let _0x154df3={'unitId':_0x4e8408,'subUnitId':_0x29367f,'shapeId':_0xe15979};_0x3d8155 instanceof Y&&this[_0xcec851(0x31e)](_0x3d8155,_0x154df3),_0x3d8155['transformByState']({'left':_0x296fe0,'top':_0xa826a7,'width':_0x297d0d,'height':_0x5c7f36,'angle':_0x4a2752,'flipX':_0x4e546a,'flipY':_0x4dc547,'skewX':_0x54e1b5,'skewY':_0x4ca510});continue;}let _0x14ab09=this[_0xcec851(0x257)]['getDrawingOrder'](_0x4e8408,_0x29367f),_0x5d035b=_0x14ab09[_0xcec851(0x1ab)](_0xe15979);if(_0x501a1d['getObjectIncludeInGroup'](_0x433288)||!this[_0xcec851(0x257)]['getDrawingVisible']())continue;let _0x4db896=this['_docsShapeService'][_0xcec851(0x31a)](_0x4e8408,_0x29367f,_0xe15979);if(!_0x4db896)continue;let _0x1642da=_0x32d327(_0x4db896[_0xcec851(0x1c6)]())?{..._0x2e6107,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x2e6107,_0x34b975=_0x4db896['getShapeData']()[_0xcec851(0x288)],_0x1150d3={'unitId':_0x4e8408,'subUnitId':_0x29367f,'shapeId':_0xe15979};_0x34b975&&this[_0xcec851(0x1ce)][_0xcec851(0x354)](_0x1150d3,_0x34b975);let _0x188188=new Y(_0x433288,{..._0xa0d5e4,'zIndex':_0x5d035b===-0x1?_0x14ab09[_0xcec851(0x321)]-0x1:_0x5d035b,'shapeModel':_0x4db896,'localeService':this[_0xcec851(0x14a)],'shapeId':_0xe15979,'unitId':_0x4e8408,'subUnitId':_0x29367f,'visible':_0xc5481f!==!0x0,'evented':_0x3fddc5!==!0x1,'formulaPresentation':_0x34b975?this[_0xcec851(0x1ce)][_0xcec851(0x30b)](_0x1150d3):void 0x0,'animateFormulaPresentation':(_0x34b975==null?void 0x0:_0x34b975[_0xcec851(0x230)])!==!0x1,'transformerConfig':_0x1642da});if(_0x34b975){let _0x539c39=this[_0xcec851(0x331)](_0x4e8408,_0x29367f,_0xe15979),_0x186da6=this[_0xcec851(0x220)][_0xcec851(0x2b4)](_0x539c39)??new Set();_0x186da6[_0xcec851(0x164)](_0x188188),this[_0xcec851(0x220)][_0xcec851(0x26f)](_0x539c39,_0x186da6);}this[_0xcec851(0x166)](_0x1fb9e7(_0x188188[_0xcec851(0x15f)][_0xcec851(0x275)]((_0x2ecbe0,_0x5cd55c)=>{const _0x2297a8=_0xcec851;_0x4db896[_0x2297a8(0x24c)]()||_0x34b975||(this[_0x2297a8(0x2b1)][_0x2297a8(0x1dd)]({'visible':!0x0,'unitId':_0x4e8408,'subUnitId':_0x29367f,'shapeId':_0xe15979,'shapeKey':_0x188188[_0x2297a8(0x2b0)]}),_0x5cd55c[_0x2297a8(0x1f8)]());}))),_0x501a1d[_0xcec851(0x162)](_0x188188,Yi(_0x2eab60)),_0x630485&&_0x501a1d['attachTransformerTo'](_0x188188),_0x6c94ca&&_0x7caf32({'drawingId':_0x6c94ca,'unitId':_0x4e8408,'subUnitId':_0x29367f},_0x188188,_0x501a1d,this['_drawingManagerService'],_0x3a3f2c?_0x1ac8a3:void 0x0),_0x3c8fab!=null&&_0x188188[_0xcec851(0x2aa)](_0x3c8fab),_0x219b71!=null&&_0x188188[_0xcec851(0x34b)](_0x219b71),this[_0xcec851(0x271)](_0x188188,_0x4db896['getShapeData']()),_0x3441be['push'](_0x188188);}return _0x3441be;}['_formulaKey'](_0x295769,_0x16e361,_0x1ac235){return _0x295769+'\x00'+_0x16e361+'\x00'+_0x1ac235;}[_0x48e9aa(0x31e)](_0x314171,_0x365cf9){const _0x5a878a=_0x48e9aa;let _0x212d9c=this[_0x5a878a(0x2dd)][_0x5a878a(0x31a)](_0x365cf9['unitId'],_0x365cf9[_0x5a878a(0x2e7)],_0x365cf9[_0x5a878a(0x3b3)]),_0x3aa859=_0x212d9c==null?void 0x0:_0x212d9c['getShapeData']()[_0x5a878a(0x288)],_0x5058f1=this[_0x5a878a(0x331)](_0x365cf9[_0x5a878a(0x225)],_0x365cf9['subUnitId'],_0x365cf9[_0x5a878a(0x3b3)]);if(_0x3aa859){this[_0x5a878a(0x1ce)][_0x5a878a(0x354)](_0x365cf9,_0x3aa859);let _0x198b95=this['_formulaShapes'][_0x5a878a(0x2b4)](_0x5058f1)??new Set();_0x198b95[_0x5a878a(0x164)](_0x314171),this[_0x5a878a(0x220)][_0x5a878a(0x26f)](_0x5058f1,_0x198b95);}else{var _0x3bfbb4;this['_shapeFormulaService'][_0x5a878a(0x18b)](_0x365cf9),(_0x3bfbb4=this[_0x5a878a(0x220)][_0x5a878a(0x2b4)](_0x5058f1))==null||_0x3bfbb4[_0x5a878a(0x1b7)](_0x314171);}_0x314171[_0x5a878a(0x16b)](_0x3aa859?this[_0x5a878a(0x1ce)][_0x5a878a(0x30b)](_0x365cf9):void 0x0,(_0x3aa859==null?void 0x0:_0x3aa859['animationEnabled'])!==!0x1);}[_0x48e9aa(0x37e)](_0x809d94){const _0x31f0ec=_0x48e9aa;let _0x4f0025=_0x809d94['shapeModel']['getShapeData'](),_0x2d1665=_0x4f0025[_0x31f0ec(0x14c)];!_0x2d1665||_0x2d1665[_0x31f0ec(0x201)]!==_0xee9cb9[_0x31f0ec(0x313)]||!_0x2d1665['fillImageSource']?_0x809d94[_0x31f0ec(0x203)](void 0x0):this[_0x31f0ec(0x271)](_0x809d94,_0x4f0025);}[_0x48e9aa(0x271)](_0x1c0247,_0x47c66f){const _0x1681e8=_0x48e9aa;let _0x3611e9=_0x47c66f[_0x1681e8(0x14c)];if(!_0x3611e9||_0x3611e9['fillType']!==_0xee9cb9[_0x1681e8(0x313)]||!_0x3611e9['fillImageSource'])return;let _0x4b92ee=_0x3611e9[_0x1681e8(0x39f)],_0xdb0531=_0x3611e9['fillImageSourceType']??_0x479c00[_0x1681e8(0x15c)],_0x49087b=this[_0x1681e8(0x398)][_0x1681e8(0x34a)](_0x4b92ee,_0xdb0531);_0x49087b?_0x1c0247['setFillImage'](_0x49087b):this[_0x1681e8(0x16a)](_0x1c0247,_0x4b92ee,_0xdb0531);}async[_0x48e9aa(0x16a)](_0x246677,_0x168805,_0x1bf566){const _0x1b8d89=_0x48e9aa;let _0x5155a4;try{if(_0x1bf566===_0x479c00[_0x1b8d89(0x3bd)])_0x5155a4=await this[_0x1b8d89(0x398)]['getImage'](_0x168805);else{if(_0x1bf566===_0x479c00[_0x1b8d89(0x15c)])try{_0x5155a4=await this[_0x1b8d89(0x2c8)][_0x1b8d89(0x295)](_0x168805);}catch{_0x5155a4=_0x168805;}else _0x5155a4=_0x168805;}}catch(_0xc6b8b9){console[_0x1b8d89(0x2f1)](_0x1b8d89(0x33f),_0xc6b8b9);return;}let _0x3a130e=new window['Image']();_0x3a130e[_0x1b8d89(0x279)]=()=>{const _0xda760e=_0x1b8d89;this[_0xda760e(0x398)][_0xda760e(0x2af)](_0x168805,_0x1bf566,_0x3a130e),_0x246677[_0xda760e(0x203)](_0x3a130e);},_0x3a130e[_0x1b8d89(0x193)]=()=>{const _0x562c77=_0x1b8d89;console[_0x562c77(0x2f1)](_0x562c77(0x25d),_0x168805);},_0x3a130e['src']=_0x5155a4;}};Z=q([K(0x0,_0x5eaac6),K(0x1,_0x279b1a(_0x5b7f91)),K(0x2,_0x279b1a(_0x35ebd3)),K(0x3,_0x3afaf7),K(0x4,_0x491ef3),K(0x5,_0x279b1a(X)),K(0x6,_0x279b1a(_0x473a92))],Z);let Xi=class extends _0x5207f2{constructor(_0x2bb551,_0x8354b9,_0x182de9){const _0x99226b=_0x48e9aa;super(),this['_docPrintInterceptorService']=_0x2bb551,this['_drawingManagerService']=_0x8354b9,this[_0x99226b(0x32e)]=_0x182de9,this[_0x99226b(0x26a)]();}['_initPrinting'](){const _0x57c4bd=_0x48e9aa;this['disposeWithMe'](this[_0x57c4bd(0x2c1)][_0x57c4bd(0x181)][_0x57c4bd(0x38d)](this[_0x57c4bd(0x2c1)]['interceptor'][_0x57c4bd(0x2e3)]()[_0x57c4bd(0x36d)],{'handler':(_0x13018f,_0x3ab12f,_0x20fe28)=>{const _0x24e2e6=_0x57c4bd;var _0x300114;let {unitId:_0x34b202,scene:_0x63550d,skeleton:_0x1bd57a}=_0x3ab12f,{pageIndex:_0x21603b}=_0x3ab12f,_0x420bc3=(_0x300114=this[_0x24e2e6(0x257)][_0x24e2e6(0x17e)](_0x34b202))==null?void 0x0:_0x300114[_0x34b202],_0x2849eb=Zi(this[_0x24e2e6(0x2c1)],_0x1bd57a,_0x21603b);return _0x420bc3==null||_0x420bc3[_0x24e2e6(0x362)]['forEach'](_0x37a899=>{const _0x2cbe29=_0x24e2e6;if(_0x2849eb&&!_0x2849eb['has'](_0x37a899))return;let _0x4bd201=_0x420bc3['data'][_0x37a899];_0x4bd201[_0x2cbe29(0x1f4)]===_0x4a830a[_0x2cbe29(0x242)]&&!_0x4bd201[_0x2cbe29(0x208)]&&this['_shapeRenderController'][_0x2cbe29(0x394)](_0x4bd201,_0x63550d);}),_0x20fe28(_0x13018f);}}));}};Xi=q([K(0x0,_0x279b1a(_0xb98ad3)),K(0x1,_0x5eaac6),K(0x2,_0x279b1a(Z))],Xi);function Zi(_0x1b2c7e,_0x11f04b,_0x57b80d){const _0x4bae1b=_0x48e9aa;var _0x410750,_0x27fd66;let _0xe48323=_0x1b2c7e;if(_0xe48323['getPageDrawingIds'])return _0xe48323[_0x4bae1b(0x2ba)](_0x11f04b,_0x57b80d);let _0x5be0cf=_0x11f04b[_0x4bae1b(0x180)]();if(!_0x5be0cf||_0x5be0cf['pages'][_0x4bae1b(0x321)]<=0x1||_0x57b80d==null)return null;let _0x498d89=new Set(),_0x550f2a=_0x5be0cf[_0x4bae1b(0x380)][_0x57b80d];if(!_0x550f2a)return _0x498d89;Qi(_0x550f2a,_0x498d89);let _0xb21249=(_0x410750=_0x5be0cf[_0x4bae1b(0x159)][_0x4bae1b(0x2b4)](_0x550f2a[_0x4bae1b(0x2c4)]))==null?void 0x0:_0x410750[_0x4bae1b(0x2b4)](_0x550f2a[_0x4bae1b(0x1a6)]??_0x550f2a[_0x4bae1b(0x2f8)]),_0x4d3482=(_0x27fd66=_0x5be0cf[_0x4bae1b(0x25a)]['get'](_0x550f2a[_0x4bae1b(0x39e)]))==null?void 0x0:_0x27fd66[_0x4bae1b(0x2b4)](_0x550f2a[_0x4bae1b(0x188)]??_0x550f2a['pageWidth']);return _0xb21249&&Qi(_0xb21249,_0x498d89),_0x4d3482&&Qi(_0x4d3482,_0x498d89),_0x498d89;}function Qi(_0x178bc4,_0x23fc3f){const _0x1c233f=_0x48e9aa;for(let _0x3b001d of _0x178bc4['skeDrawings'][_0x1c233f(0x30d)]())_0x23fc3f[_0x1c233f(0x164)](_0x3b001d);for(let _0x15781b of _0x178bc4[_0x1c233f(0x1bc)]['values']())for(let _0x46207d of _0x15781b['rows'])for(let _0x372520 of _0x46207d['cells'])Qi(_0x372520,_0x23fc3f);}function $i(_0x4f0e8f){return _0x25380b(Ur,{..._0x4f0e8f,'PickerComponent':_0x4e8fda});}function ea(){const _0x14c6d1=_0x48e9aa;let _0x72b89=_0x14b48c(_0x35ebd3),_0x22d650=Br(),[_0x2d7085,_0x1f2e0c]=_0x547678(!0x1);return _0x546382(_0x14c6d1(0x2df),{'className':_0x14c6d1(0x2f2),'children':[_0x25380b(_0x662bbf,{'title':_0x72b89['t'](_0x14c6d1(0x1dc)),'aria-expanded':_0x2d7085,'variant':_0x14c6d1(0x1e0),'trailing':_0x25380b(_0x2d7085?_0x4b51ef:_0x2884b2,{}),'onClick':()=>_0x1f2e0c(_0x525cc5=>!_0x525cc5)}),_0x2d7085&&_0x25380b(_0x4e8fda,{'excludeGroups':[_0x32669e['Line']],'onShapeClick':_0x5e4a5c=>{_0x22d650(_0x5e4a5c),_0x1f2e0c(!0x1);}})]});}function ta(_0x2a9ed5){return _0x2a9ed5['trim']()||void 0x0;}function na(_0x34582a,_0x4e155c,_0x198c3b){const _0x48fb18=_0x48e9aa;var _0x1345a0,_0x16e3fa;return((_0x1345a0=_0x34582a[_0x48fb18(0x33c)])==null?void 0x0:_0x1345a0[_0x48fb18(0x390)]())||((_0x16e3fa=_0x34582a[_0x48fb18(0x1e6)])==null?void 0x0:_0x16e3fa[_0x48fb18(0x390)]())||_0x198c3b['t']('drawing-ui.objectListPanel.typeNames.'+_0x41e858(_0x34582a['drawingType']))+'\x20'+(_0x4e155c+0x1);}function ra({PanelComponent:_0x2299f9=_0x461767}){const _0x1592a8=_0x48e9aa;let _0x2ab526=_0x14b48c(_0x35ebd3),_0xb189ea={'title':_0x2ab526['t'](_0x1592a8(0x351)),'empty':_0x2ab526['t'](_0x1592a8(0x27f)),'showAll':_0x2ab526['t'](_0x1592a8(0x182)),'hideAll':_0x2ab526['t'](_0x1592a8(0x2b2)),'lockAll':_0x2ab526['t']('drawing-ui.objectListPanel.lockAll'),'unlockAll':_0x2ab526['t'](_0x1592a8(0x1de)),'moveForward':_0x2ab526['t'](_0x1592a8(0x20e)),'moveBackward':_0x2ab526['t'](_0x1592a8(0x3a0)),'close':_0x2ab526['t']('drawing-ui.objectListPanel.close'),'show':_0x2ab526['t'](_0x1592a8(0x315)),'hide':_0x2ab526['t'](_0x1592a8(0x1e4)),'lock':_0x2ab526['t']('drawing-ui.objectListPanel.lock'),'unlock':_0x2ab526['t'](_0x1592a8(0x36f)),'lockHint':_0x2ab526['t'](_0x1592a8(0x387)),'unlockHint':_0x2ab526['t'](_0x1592a8(0x206)),'name':_0x2ab526['t'](_0x1592a8(0x2ab)),'nameInput':_0x2ab526['t']('drawing-ui.objectListPanel.nameInput'),'description':_0x2ab526['t'](_0x1592a8(0x170)),'descriptionPlaceholder':_0x2ab526['t'](_0x1592a8(0x3aa)),'details':_0x2ab526['t'](_0x1592a8(0x202)),'noSelection':_0x2ab526['t'](_0x1592a8(0x1da)),'locate':_0x2ab526['t']('drawing-ui.objectListPanel.locate'),'expand':_0x2ab526['t'](_0x1592a8(0x2c5)),'collapse':_0x2ab526['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0x2ab526['t']('drawing-ui.objectListPanel.dragToReorder'),'search':_0x2ab526['t'](_0x1592a8(0x204)),'filterAll':_0x2ab526['t'](_0x1592a8(0x235)),'filterHidden':_0x2ab526['t'](_0x1592a8(0x20d)),'filterLocked':_0x2ab526['t'](_0x1592a8(0x17a)),'sectionCanvas':_0x2ab526['t'](_0x1592a8(0x272)),'sectionFloating':_0x2ab526['t']('drawing-ui.objectListPanel.sectionFloating')},_0x5a9c2c=_0x14b48c(_0x1310fd),_0x21cab4=_0x14b48c(_0x3d68d4),_0x2a284e=_0x14b48c(_0x534537),_0x570bbb=_0x14b48c(_0x5eaac6),_0x32ab1b=_0x14b48c(_0xa0de3a),[,_0x2f6a7f]=_0xd0f519(_0x490425=>_0x490425+0x1,0x0),_0x349c8b=_0x21cab4[_0x1592a8(0x3a8)](_0x42988e['UNIVER_DOC']),_0x337eae=(_0x349c8b==null?void 0x0:_0x349c8b[_0x1592a8(0x23e)]())??'',_0x29aa68=_0x337eae,_0x428e08=_0x157dfc(()=>_0x570bbb[_0x1592a8(0x247)],_0x570bbb[_0x1592a8(0x2e8)](),!0x1,[_0x570bbb]);_0x23435c(()=>{const _0x402db7=_0x1592a8;let _0x33fcf9=_0x5a9c2c[_0x402db7(0x14f)](()=>_0x2f6a7f());return()=>_0x33fcf9['dispose']();},[_0x5a9c2c]);let _0xc10e9b=_0x337eae?_0x2a284e[_0x1592a8(0x1b0)](_0x337eae,_0x29aa68):{},_0x1979d9=(_0x337eae?_0x2a284e[_0x1592a8(0x243)](_0x337eae,_0x29aa68):[])['map'](_0x1e03bb=>_0xc10e9b[_0x1e03bb])['filter'](_0x39af91=>!!_0x39af91)['reverse'](),_0x5518db=_0x1979d9[_0x1592a8(0x374)]((_0x44cc3c,_0x4a0eef)=>(_0x44cc3c[_0x540cec(_0x4a0eef[_0x1592a8(0x1f4)])]+=0x1,_0x44cc3c),{'canvas':0x0,'floating':0x0}),_0x12c2f6={'canvas':0x0,'floating':0x0},_0x43bb08=_0x1979d9['map']((_0x59a921,_0x1ca571)=>{const _0x52dd7c=_0x1592a8;let _0x35c554=_0x540cec(_0x59a921[_0x52dd7c(0x1f4)]),_0x32f311=_0x35c554===_0xb26a48,_0x52f5c4=_0x12c2f6[_0x35c554]++;return{'id':_0x59a921[_0x52dd7c(0x1d7)],'name':na(_0x59a921,_0x1ca571,_0x2ab526),'description':_0x59a921[_0x52dd7c(0x14e)],'visible':_0x59a921['hidden']!==!0x0,'selectable':_0x59a921[_0x52dd7c(0x171)]!==!0x1,'sectionId':_0x35c554,'sectionTitle':_0x32f311?_0xb189ea[_0x52dd7c(0x2fb)]:_0xb189ea[_0x52dd7c(0x32f)],'capabilities':_0x32f311?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x32f311&&_0x52f5c4>0x0,'canMoveBackward':!_0x32f311&&_0x52f5c4<_0x5518db[_0x52dd7c(0x18a)]-0x1,'canReorder':!_0x32f311};}),_0x3dd9de=_0x5b35d0(()=>(_0x428e08??[])[_0x1592a8(0x29f)](_0x4815e0=>_0x4815e0[_0x1592a8(0x225)]===_0x337eae&&_0x4815e0[_0x1592a8(0x2e7)]===_0x29aa68)[_0x1592a8(0x177)](_0x1bdbe1=>_0x1bdbe1['drawingId']),[_0x428e08,_0x29aa68,_0x337eae]),_0x4598ff=_0x3dd9de[_0x3dd9de[_0x1592a8(0x321)]-0x1]??null,_0x594348=_0x5cad62=>_0x2a284e[_0x1592a8(0x327)]({'unitId':_0x337eae,'subUnitId':_0x29aa68,'drawingId':_0x5cad62})??null,_0xe942a0=async _0x913e3f=>{_0x337eae&&_0x913e3f['length']&&await _0x5a9c2c['executeCommand'](_0x15d643['id'],{'unitId':_0x337eae,'patches':_0x913e3f});},_0x2ddd30=(_0xc00867,_0x443420)=>{const _0xda36a8=_0x1592a8;if(!_0x337eae)return;let _0x35aa2b=_0x443420?_0x3dd9de[_0xda36a8(0x175)](_0xc00867)?_0x3dd9de[_0xda36a8(0x29f)](_0x483208=>_0x483208!==_0xc00867):[..._0x3dd9de,_0xc00867]:[_0xc00867];_0x5a9c2c[_0xda36a8(0x148)](_0x46859a['id'],_0x35aa2b[_0xda36a8(0x177)](_0x193302=>({'unitId':_0x337eae,'subUnitId':_0x29aa68,'drawingId':_0x193302})));let _0x6240e0=_0x35aa2b[_0x35aa2b[_0xda36a8(0x321)]-0x1];_0x6240e0?_0x1527c2(_0x32ab1b,{'unitId':_0x337eae,'subUnitId':_0x29aa68,'drawingId':_0x6240e0}):_0x36f14a(_0x32ab1b,_0x337eae);},_0x3e257c=async(_0x19ab73,_0x42d1b0)=>{const _0x14a44a=_0x1592a8;await _0xe942a0(_0x19ab73[_0x14a44a(0x177)](_0x3b54fd=>_0x594348(_0x3b54fd))[_0x14a44a(0x29f)](_0xce930f=>!!_0xce930f)[_0x14a44a(0x29f)](_0x436dc6=>_0x436dc6[_0x14a44a(0x208)]!==!0x0!==_0x42d1b0)[_0x14a44a(0x177)](_0x5874ed=>({'drawingId':_0x5874ed[_0x14a44a(0x1d7)],'hidden':!_0x42d1b0})));},_0x18a024=async(_0x2176a6,_0x52337a)=>{const _0x81653c=_0x1592a8;await _0xe942a0(_0x2176a6[_0x81653c(0x177)](_0x336e0c=>_0x594348(_0x336e0c))['filter'](_0x36b6cc=>!!_0x36b6cc)[_0x81653c(0x29f)](_0x161fa1=>_0x161fa1[_0x81653c(0x171)]!==!0x1!==_0x52337a)[_0x81653c(0x177)](_0x544c4e=>({'drawingId':_0x544c4e[_0x81653c(0x1d7)],'selectable':_0x52337a})));},_0x584e57=_0x220975=>{const _0x16eefc=_0x1592a8;let _0x9bd22c=_0x594348(_0x220975);if(_0x9bd22c)return _0x18a024([_0x220975],_0x9bd22c[_0x16eefc(0x171)]===!0x1);},_0x162d74=async(_0x50c2d0,_0x5ccb7a)=>{const _0x2cb399=_0x1592a8;let _0x2577b6=_0x594348(_0x50c2d0),_0x5152d4=ta(_0x5ccb7a);!_0x2577b6||(_0x2577b6[_0x2cb399(0x33c)]??void 0x0)===_0x5152d4&&(_0x2577b6['title']||void 0x0)===_0x5152d4||await _0xe942a0([{'drawingId':_0x50c2d0,'name':_0x5152d4,'title':_0x5152d4}]);},_0x1ea55d=async(_0x29a08a,_0x18883f)=>{let _0x33bddb=_0x594348(_0x29a08a),_0x2b461e=ta(_0x18883f);_0x33bddb&&(_0x33bddb['description']??void 0x0)!==_0x2b461e&&await _0xe942a0([{'drawingId':_0x29a08a,'description':_0x2b461e}]);},_0x269c13=async(_0x115123,_0xbfac89)=>{_0x337eae&&await _0x5a9c2c['executeCommand'](_0x7d8137['id'],{'unitId':_0x337eae,'subUnitId':_0x29aa68,'drawingIds':[_0x115123],'arrangeType':_0xbfac89});};return _0x337eae?_0x25380b(_0x2299f9,{'labels':_0xb189ea,'renderPermissionAction':_0x431bc2=>_0x349c8b?_0x25380b(_0x2612ac,{'target':{'unitId':_0x337eae,'objectId':_0x4ffa0c(_0x59cb02(_0x349c8b,_0x431bc2['id']),'drawing',_0x431bc2['id']),'objectType':_0x772c4c[_0x1592a8(0x37b)]},'name':_0x431bc2[_0x1592a8(0x33c)],'commandId':_0x3733e9['id'],'exists':()=>!!_0x594348(_0x431bc2['id'])},_0x337eae+'/'+_0x431bc2['id']):null,'items':_0x43bb08,'selectedIds':_0x3dd9de,'focusedId':_0x4598ff,'showHeader':!0x1,'onSelect':_0x2ddd30,'onSetVisible':_0x3e257c,'onSetSelectable':_0x18a024,'onCommitName':_0x162d74,'onCommitDescription':_0x1ea55d,'onMoveForward':async _0x263025=>_0x269c13(_0x263025,_0x1b9d3e[_0x1592a8(0x316)]),'onMoveBackward':async _0x11eba5=>_0x269c13(_0x11eba5,_0x1b9d3e['backward']),'onToggleSelectable':_0x584e57}):_0x25380b(_0x1592a8(0x2df),{'className':_0x1592a8(0x1f2),'children':_0xb189ea['title']});}function ia(){return _0x25380b(ra,{'PanelComponent':_0x357bd1});}let aa=class{constructor(_0x4dc854){const _0x214535=_0x48e9aa;this[_0x214535(0x323)]=_0x4dc854;}[_0x48e9aa(0x282)](_0x221a5d,_0x364709){const _0x506084=_0x48e9aa;let _0x5abefc=this['_renderManagerService'][_0x506084(0x2cc)](_0x221a5d['unitId']),_0x3e23aa=_0x5abefc==null?void 0x0:_0x5abefc[_0x506084(0x1f7)];if(!_0x3e23aa)return;let _0x964ee0=_0x309ca8(_0x221a5d),_0x4b0008=_0x3e23aa[_0x506084(0x2f5)](_0x964ee0);_0x4b0008==null||_0x4b0008['setFillImage'](_0x364709);}};aa=q([K(0x0,_0xa0de3a)],aa);function oa(){const _0x384184=_0x48e9aa;let _0x27cc6c=_0x14b48c(_0x5eaac6),_0x40b50a=_0x157dfc(()=>_0x27cc6c['focus$'],_0x27cc6c[_0x384184(0x2e8)](),!0x1,[_0x27cc6c]);return _0x40b50a[_0x384184(0x321)]===0x0?null:_0x25380b(_0x384184(0x2df),{'children':_0x546382(_0x384184(0x2df),{'className':_0x384184(0x341),'children':[_0x25380b(_0x179135,{'drawings':_0x40b50a,'hasCropper':!0x1}),_0x25380b(_0x33ce4c,{'drawings':_0x40b50a}),_0x25380b(_0x35f556,{'drawings':_0x40b50a})]})});}function sa(_0x579083){let {unitId:_0x5ede64,subUnitId:_0x2a9c0b,shapeId:_0x4d35df,PositionComponent:_0x53e738=oa}=_0x579083,_0x206ded=_0x14b48c(_0x1310fd),_0x6bef48=_0x14b48c(aa);return _0x25380b(_0x100193,{..._0x579083,'positionEditor':_0x25380b(_0x53e738,{}),'onUpdateShapeData':(_0x365a42,_0x5c020e)=>{Yr(_0x206ded,_0x5ede64,_0x2a9c0b,_0x4d35df,_0x365a42,_0x5c020e);},'onUpdateLineShapeData':(_0x4c0e5d,_0x280e2e)=>{Xr(_0x206ded,_0x5ede64,_0x2a9c0b,_0x4d35df,_0x4c0e5d,_0x280e2e);},'onUpdateShapeFillImage':_0x1ae235=>{const _0x344261=_0x1801;_0x6bef48[_0x344261(0x282)]({'unitId':_0x5ede64,'subUnitId':_0x2a9c0b,'drawingId':_0x4d35df},_0x1ae235);}});}function ca(){const _0x11b97c=_0x48e9aa;let _0x6b4496=_0x14b48c(_0x5eaac6),_0x181a46=_0x157dfc(_0x6b4496[_0x11b97c(0x247)],_0x6b4496[_0x11b97c(0x2e8)]());return _0x181a46[_0x11b97c(0x321)]===0x0?null:_0x546382(_0x11b97c(0x2df),{'className':_0x11b97c(0x1c4),'children':[_0x25380b(_0x179135,{'drawings':_0x181a46,'hasCropper':!0x1}),_0x25380b(_0x1e6140,{'drawings':_0x181a46}),_0x25380b(_0x190fce,{'drawings':_0x181a46})]});}function la(_0x2fb9fe){return _0x25380b(_0x5369af,{'children':_0x25380b(sa,{..._0x2fb9fe,'PositionComponent':ca})});}function ua({popup:_0x2ff108}){const _0x440e26=_0x48e9aa;let _0x1d6fe=_0x14b48c(_0x35ebd3),{shapeType:_0x2e6e8b,onText:_0x16c949,onStyle:_0x5afbc2,onDelete:_0x52f6df}=_0x2ff108[_0x440e26(0x196)],_0x3aa4d6=[{'key':_0x440e26(0x26e),'order':0x0,'item':{'id':'text','type':_0x2ad9e0[_0x440e26(0x366)],'title':_0x1d6fe['t'](_0x440e26(0x1f1)),'disabled$':_0xc90f1c(_0x32d327(_0x2e6e8b))}},{'key':_0x440e26(0x20f),'order':0x1,'item':{'id':'style','type':_0x2ad9e0[_0x440e26(0x366)],'title':_0x1d6fe['t']('docs-shape-ui.mobile.style')}},{'key':_0x440e26(0x1b7),'order':0x2,'item':{'id':_0x440e26(0x1b7),'type':_0x2ad9e0[_0x440e26(0x366)],'title':_0x1d6fe['t'](_0x440e26(0x27d))}}];return _0x25380b(_0x582da7,{'schemas':_0x3aa4d6,'presentation':_0x440e26(0x2a4),'onOptionSelect':async({id:_0x5502a0})=>{const _0x54754f=_0x440e26;_0x5502a0===_0x54754f(0x26e)?await _0x16c949():_0x5502a0===_0x54754f(0x20f)?await _0x5afbc2():_0x5502a0==='delete'&&await _0x52f6df();}});}const da=_0x48e9aa(0x187);function fa(_0x30d9c6,_0x28767d){const _0x354a80=_0x48e9aa;var _0xa980e1;let _0x3fd1b8=_0x30d9c6==null||(_0xa980e1=_0x30d9c6[_0x354a80(0x319)]()[_0x354a80(0x1f3)])==null?void 0x0:_0xa980e1[_0x28767d];return _0x3fd1b8?_0x3fd1b8[_0x354a80(0x2e2)]===_0x1bbcc2[_0x354a80(0x389)]?_0x3fd1b8[_0x354a80(0x2c6)]===_0x5676e9[_0x354a80(0x1d3)]?_0x2f464f['BEHIND_TEXT']:_0x2f464f['IN_FRONT_OF_TEXT']:_0x3fd1b8[_0x354a80(0x2e2)]===_0x1bbcc2[_0x354a80(0x375)]?_0x2f464f['WRAP_SQUARE']:_0x3fd1b8[_0x354a80(0x2e2)]===_0x1bbcc2[_0x354a80(0x332)]?_0x2f464f[_0x354a80(0x332)]:_0x2f464f[_0x354a80(0x195)]:_0x2f464f['INLINE'];}function pa(_0x377a2f){const _0x3e16a9=_0x48e9aa;let _0x3d43da=_0x14b48c(_0x28a5be),_0x3544cc=_0x157dfc(()=>_0x3d43da[_0x3e16a9(0x3b9)],_0x3d43da[_0x3e16a9(0x168)](),!0x1,[_0x3d43da]),_0x1f459c=_0x377a2f[_0x3e16a9(0x2e0)]['extraProps'];return _0x3544cc?_0x25380b(ma,{..._0x1f459c,'canvasElement':_0x377a2f[_0x3e16a9(0x2e0)][_0x3e16a9(0x20a)]}):null;}function ma(_0x353ed2){const _0x9abd5=_0x48e9aa;let _0x5ccdc1=_0x14b48c(_0x1310fd),_0x528081=_0x14b48c(_0x35ebd3),_0x29c315=_0x14b48c(_0x5b7f91),_0xdfa19=_0x14b48c(_0x3d68d4),{unitId:_0x5e9a32,subUnitId:_0x463067,drawingId:_0x4b46af,shapeType:_0x342101}=_0x353ed2,[_0xadee73,_0x37fea8]=_0x547678(_0x353ed2[_0x9abd5(0x149)]),_0x7ba694=_0xdfa19['getUnit'](_0x5e9a32,_0x42988e[_0x9abd5(0x237)])??void 0x0,[_0x57c4b0,_0xe9021]=_0x547678(()=>fa(_0x7ba694,_0x4b46af)),_0x7f45c5=_0x5b35d0(()=>_0x3660ae(_0xadee73),[_0xadee73]),_0x24d489=_0x5b35d0(()=>_0x1d0ec9(_0xadee73),[_0xadee73]);_0x23435c(()=>{const _0x192a43=_0x9abd5;let _0x16a47e=_0x5ccdc1[_0x192a43(0x14f)](_0x1d260d=>{if(_0x1d260d['id']!==_0x1a7d3e['id'])return;let _0x5a0f58=_0x29c315['getShapeDataById'](_0x5e9a32,_0x463067,_0x4b46af);_0x5a0f58&&_0x37fea8(_0x5a0f58);});return()=>_0x16a47e[_0x192a43(0x334)]();},[_0x5ccdc1,_0x29c315,_0x4b46af,_0x463067,_0x5e9a32]);let _0x41a53e=_0x212724=>{_0x37fea8(_0x5491d0=>({..._0x5491d0,..._0x212724}));},_0x223c78=_0x16756f=>{const _0xd13f63=_0x9abd5;let _0x1cc79a=_0x55fe35(_0xadee73,_0x16756f);Yr(_0x5ccdc1,_0x5e9a32,_0x463067,_0x4b46af,{'oldShapeData':{'shapeText':_0xadee73[_0xd13f63(0x314)]}},_0x1cc79a),_0x41a53e(_0x1cc79a);},_0x166c3c=_0x12103e=>{const _0x4b2905=_0x9abd5;_0xe9021(_0x12103e),_0x5ccdc1[_0x4b2905(0x377)](_0x1261a7['id'],{'unitId':_0x5e9a32,'subUnitId':_0x463067,'drawings':[{'unitId':_0x5e9a32,'subUnitId':_0x463067,'drawingId':_0x4b46af}],'wrappingStyle':_0x12103e});},_0x6185c3=_0x57cb62({'hostType':_0x42988e['UNIVER_DOC'],'unitId':_0x5e9a32,'subUnitId':_0x463067,'shapeId':_0x4b46af,'shapeData':_0xadee73,'onUpdateBinding':_0x117b7b=>{const _0x39efc1=_0x9abd5;let _0x9642f8={'formulaBinding':_0x117b7b};Yr(_0x5ccdc1,_0x5e9a32,_0x463067,_0x4b46af,{'oldShapeData':{'formulaBinding':_0xadee73[_0x39efc1(0x288)]}},_0x9642f8),_0x41a53e(_0x9642f8);}}),_0x358849=[{'label':_0x528081['t'](_0x9abd5(0x20c)),'value':_0x2f464f[_0x9abd5(0x195)],'icon':_0x25380b(_0x362824,{})},{'label':_0x528081['t'](_0x9abd5(0x2fc)),'value':_0x2f464f[_0x9abd5(0x375)],'icon':_0x25380b(_0x362824,{})},{'label':_0x528081['t'](_0x9abd5(0x273)),'value':_0x2f464f[_0x9abd5(0x332)],'icon':_0x25380b(_0x362824,{})},{'label':_0x528081['t'](_0x9abd5(0x215)),'value':_0x2f464f['BEHIND_TEXT'],'icon':_0x25380b(_0x362824,{})},{'label':_0x528081['t'](_0x9abd5(0x29e)),'value':_0x2f464f['IN_FRONT_OF_TEXT'],'icon':_0x25380b(_0x362824,{})}];return _0x546382(_0x19fcc6,{'children':[_0x25380b(_0x388578,{'canvasElement':_0x353ed2[_0x9abd5(0x20a)],'shapeData':_0xadee73,'shapeType':_0x342101,'textStyle':{'ff':_0x516b6b[_0x9abd5(0x314)][_0x9abd5(0x2e1)],'fs':_0x516b6b[_0x9abd5(0x314)][_0x9abd5(0x18d)],'cl':{'rgb':_0x516b6b[_0x9abd5(0x314)][_0x9abd5(0x1f9)]},..._0x7f45c5},'textModel':_0x24d489?{'ha':_0x24d489['ha']??_0xafeed3[_0x9abd5(0x221)],'va':_0x24d489['va']??_0xe843d7[_0x9abd5(0x2e9)]}:null,'wrappingStyle':_0x57c4b0,'wrappingStyleOptions':_0x358849,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x516b6b[_0x9abd5(0x14c)],'defaultGradientEndColor':_0x516b6b['gradientEndColor'],'defaultStrokeColor':_0x516b6b[_0x9abd5(0x209)],'extensionGroups':_0x6185c3[_0x9abd5(0x372)],'floatingObjectToolbarPosition':_0x4beada[_0x9abd5(0x2de)],'onUpdateShapeData':(_0x5c91dd,_0x4e759b)=>{Yr(_0x5ccdc1,_0x5e9a32,_0x463067,_0x4b46af,_0x5c91dd,_0x4e759b),_0x4e759b&&_0x41a53e(_0x4e759b);},'onUpdateText':_0x223c78,'onUpdateWrappingStyle':_0x3d5e47=>_0x166c3c(_0x3d5e47),'onOpenPanel':()=>{const _0x12ccf7=_0x9abd5;_0x5ccdc1[_0x12ccf7(0x377)](G['id'],{'unitId':_0x5e9a32,'subUnitId':_0x463067,'drawingId':_0x4b46af});},'onDelete':()=>{_0x5ccdc1['executeCommand'](_0x319dc1['id'],{'unitId':_0x5e9a32,'drawings':[{'unitId':_0x5e9a32,'subUnitId':_0x463067,'drawingId':_0x4b46af}]});}}),_0x6185c3[_0x9abd5(0x31f)]]});}function ha({variant:_0x4aab10,extend:_0x1882ad,..._0xa46e50}){const _0x31559f=_0x48e9aa;let _0x534780=_0x25380b(_0x31559f(0x24b),{'x':'7','y':_0x31559f(0x317),'width':'6','height':'9','rx':'1','fill':_0x31559f(0x1a8),'fillOpacity':_0x31559f(0x233),'stroke':_0x31559f(0x1a8),'strokeWidth':'1.2'});return _0x546382(_0x31559f(0x1c3),{'aria-hidden':'true','fill':_0x31559f(0x35b),'height':'1em','viewBox':_0x31559f(0x297),'width':'1em',..._0xa46e50,'children':[_0x4aab10===_0x31559f(0x212)&&_0x546382(_0x19fcc6,{'children':[_0x25380b('path',{'d':_0x31559f(0x2a5),'stroke':'currentColor','strokeLinecap':_0x31559f(0x3a6),'strokeWidth':_0x31559f(0x2cb)}),_0x25380b(_0x31559f(0x24b),{'x':'8','y':'7','width':'4','height':'6','rx':_0x31559f(0x2ca),'fill':'currentColor','fillOpacity':'0.14','stroke':_0x31559f(0x1a8),'strokeWidth':_0x31559f(0x2cb)})]}),_0x4aab10===_0x31559f(0x1df)&&_0x546382(_0x19fcc6,{'children':[_0x25380b(_0x31559f(0x338),{'d':'M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','stroke':_0x31559f(0x1a8),'strokeLinecap':_0x31559f(0x3a6),'strokeWidth':_0x31559f(0x2cb)}),_0x534780]}),_0x4aab10==='top-bottom'&&_0x546382(_0x19fcc6,{'children':[_0x25380b(_0x31559f(0x338),{'d':'M2\x203h16M2\x2017h16','stroke':_0x31559f(0x1a8),'strokeLinecap':'round','strokeWidth':_0x31559f(0x2cb)}),_0x534780]}),_0x4aab10==='behind'&&_0x546382(_0x19fcc6,{'children':[_0x534780,_0x25380b(_0x31559f(0x338),{'d':_0x31559f(0x229),'stroke':_0x31559f(0x1a8),'strokeLinecap':_0x31559f(0x3a6),'strokeWidth':_0x31559f(0x2cb)})]}),_0x4aab10===_0x31559f(0x32b)&&_0x546382(_0x19fcc6,{'children':[_0x25380b('path',{'d':'M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','stroke':_0x31559f(0x1a8),'strokeLinecap':_0x31559f(0x3a6),'strokeWidth':_0x31559f(0x2cb)}),_0x25380b(_0x31559f(0x24b),{'x':'7','y':_0x31559f(0x317),'width':'6','height':'9','rx':'1','fill':_0x31559f(0x1a8)})]})]});}const ga=_0x1096e7=>_0x5dbe16=>_0x25380b(ha,{..._0x5dbe16,'variant':_0x1096e7}),_a={'DocsShapeWrapInlineIcon':ga('inline'),'DocsShapeWrapSquareIcon':ga(_0x48e9aa(0x1df)),'DocsShapeWrapTopBottomIcon':ga(_0x48e9aa(0x2a1)),'DocsShapeWrapBehindTextIcon':ga(_0x48e9aa(0x192)),'DocsShapeWrapInFrontOfTextIcon':ga(_0x48e9aa(0x32b))},va=_0x141c96(()=>{const _0x3eac96=_0x48e9aa;let _0x24515a=_0x14b48c(X),_0xd81911=_0x14b48c(_0x5b7f91),_0x36f039=_0x14b48c(_0x5eaac6),_0x24b5f9=_0x14b48c(_0x1310fd),_0x5c34a9=_0x5b35d0(()=>({'getShapeModel':(_0x5b5177,_0x5ab1c8,_0x473519)=>_0xd81911[_0x3eac96(0x31a)](_0x5b5177,_0x5ab1c8,_0x473519),'getShapeData':(_0x2d9a98,_0x5787fc,_0x57f32d)=>_0xd81911[_0x3eac96(0x1bb)](_0x2d9a98,_0x5787fc,_0x57f32d),'getDrawingTransform':(_0x1519a8,_0x19797f,_0x2a7931)=>{const _0x101552=_0x3eac96;let _0x4cf1f5=_0x36f039[_0x101552(0x327)]({'unitId':_0x1519a8,'subUnitId':_0x19797f,'drawingId':_0x2a7931});return _0x4cf1f5==null?void 0x0:_0x4cf1f5[_0x101552(0x30e)];},'updateShapeText':({unitId:_0x37e973,shapeId:_0x1d3366,shapeText:_0x4522c3,oldShapeText:_0x1a8a49})=>{const _0x2974a5=_0x3eac96;_0x24b5f9[_0x2974a5(0x377)](_0x44bda9['id'],{'unitId':_0x37e973,'shapeId':_0x1d3366,'shapeData':{'shapeText':_0x4522c3},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x1a8a49}}});},'updateHostSize':({unitId:_0x513f6f,subUnitId:_0xd60758,shapeId:_0x2a11ff,width:_0x41ac6f,height:_0x21b7be})=>{const _0x39dff4=_0x3eac96;_0x24b5f9[_0x39dff4(0x377)](_0x148f10['id'],{'unitId':_0x513f6f,'subUnitId':_0xd60758,'drawings':[{'drawingId':_0x2a11ff,'key':_0x39dff4(0x236),'value':{'width':_0x41ac6f,'height':_0x21b7be}}]});},'allowHostSizeShrink':({unitId:_0x3dccf2,subUnitId:_0x51397a,shapeId:_0x4465a9})=>_0x5b14d8(_0xd81911['getShapeDataById'](_0x3dccf2,_0x51397a,_0x4465a9))}),[_0x24b5f9,_0xd81911,_0x36f039]),_0x58d1e0=_0x5b35d0(()=>({'viewportKeys':{'main':_0x319e90['VIEW_MAIN']}}),[]);return _0x25380b(_0x28ff8e,{'adapter':_0x5c34a9,'editingService':_0x24515a,'editorUnitId':kr,'positionOptions':_0x58d1e0});});let ya=class extends _0x5207f2{constructor(_0x11e8be,_0x3f6d9c){const _0x2e94b4=_0x48e9aa;super(),this['_componentManager']=_0x11e8be,this['_iconManager']=_0x3f6d9c,this[_0x2e94b4(0x359)](),this[_0x2e94b4(0x210)]();}[_0x48e9aa(0x359)](){const _0x1db6d3=_0x48e9aa;this[_0x1db6d3(0x21a)]['has'](_0x1db6d3(0x21e))||this[_0x1db6d3(0x166)](this[_0x1db6d3(0x21a)][_0x1db6d3(0x354)]({'ObjectLayersIcon':_0x73f84a})),this[_0x1db6d3(0x21a)][_0x1db6d3(0x28f)](_0x1db6d3(0x3a3))||this[_0x1db6d3(0x166)](this[_0x1db6d3(0x21a)][_0x1db6d3(0x354)]({'BottomIcon':_0x5c9f15})),this[_0x1db6d3(0x21a)][_0x1db6d3(0x28f)]('MoveDownIcon')||this[_0x1db6d3(0x166)](this[_0x1db6d3(0x21a)][_0x1db6d3(0x354)]({'MoveDownIcon':_0x181ddd})),this[_0x1db6d3(0x21a)][_0x1db6d3(0x28f)](_0x1db6d3(0x267))||this[_0x1db6d3(0x166)](this['_iconManager'][_0x1db6d3(0x354)]({'MoveUpIcon':_0x5457e8})),this[_0x1db6d3(0x21a)][_0x1db6d3(0x28f)](_0x1db6d3(0x2d9))||this[_0x1db6d3(0x166)](this[_0x1db6d3(0x21a)][_0x1db6d3(0x354)]({'ShapeFormatSettingIcon':_0x1c7c9b})),this['_iconManager'][_0x1db6d3(0x28f)](_0x1db6d3(0x15a))||this[_0x1db6d3(0x166)](this[_0x1db6d3(0x21a)][_0x1db6d3(0x354)]({'TopmostIcon':_0x4b8a19})),this['disposeWithMe'](this['_iconManager'][_0x1db6d3(0x354)](_a));}[_0x48e9aa(0x210)](){const _0x260295=_0x48e9aa;this[_0x260295(0x166)](this[_0x260295(0x19f)][_0x260295(0x354)](W,la)),this['_registerObjectListPanel'](),this[_0x260295(0x2dc)](),this['disposeWithMe'](this[_0x260295(0x19f)][_0x260295(0x354)](Qr,ii)),this['disposeWithMe'](this[_0x260295(0x19f)][_0x260295(0x354)](Zr,ai)),this[_0x260295(0x166)](this[_0x260295(0x19f)][_0x260295(0x354)]($r,oi)),this[_0x260295(0x166)](this[_0x260295(0x19f)][_0x260295(0x354)](ei,si)),this[_0x260295(0x166)](this[_0x260295(0x19f)][_0x260295(0x354)](ti,ci)),this[_0x260295(0x166)](this['_componentManager'][_0x260295(0x354)](Ar,_0x3656e4)),this[_0x260295(0x31c)](),this[_0x260295(0x19f)]['hasDefault'](_0x286083)||this[_0x260295(0x166)](this[_0x260295(0x19f)][_0x260295(0x354)](_0x286083,Hr)),this['disposeWithMe'](this[_0x260295(0x19f)][_0x260295(0x354)](jr,va));}['_registerObjectListPanel'](){const _0x2e5c35=_0x48e9aa;this[_0x2e5c35(0x166)](this[_0x2e5c35(0x19f)][_0x2e5c35(0x354)](Or,ia));}[_0x48e9aa(0x2dc)](){const _0x1e748a=_0x48e9aa;this[_0x1e748a(0x166)](this[_0x1e748a(0x19f)][_0x1e748a(0x354)](da,ua));}[_0x48e9aa(0x31c)](){const _0x2ed398=_0x48e9aa;this[_0x2ed398(0x166)](this[_0x2ed398(0x19f)][_0x2ed398(0x354)](Lr,$i)),this[_0x2ed398(0x166)](this['_componentManager'][_0x2ed398(0x354)](Rr,ea));}};ya=q([K(0x0,_0x279b1a(_0x453046)),K(0x1,_0x279b1a(_0x45eb8f))],ya);let ba=class extends _0x5207f2{constructor(_0x18f1e1,_0x2afd04,_0x15fb3d,_0x54b989,_0x10d412,_0x19f27e,_0x41ee31,_0x53dbe7,_0x2e2168,_0x25e6ed,_0x1c62b0,_0x187725,_0x560eb6){const _0x7b3ec2=_0x48e9aa;super(),this[_0x7b3ec2(0x399)]=_0x18f1e1,this[_0x7b3ec2(0x347)]=_0x2afd04,this[_0x7b3ec2(0x19c)]=_0x15fb3d,this[_0x7b3ec2(0x2dd)]=_0x54b989,this['_localeService']=_0x10d412,this[_0x7b3ec2(0x27e)]=_0x19f27e,this['_drawingManagerService']=_0x41ee31,this[_0x7b3ec2(0x2bd)]=_0x53dbe7,this[_0x7b3ec2(0x323)]=_0x2e2168,this[_0x7b3ec2(0x38a)]=_0x25e6ed,this[_0x7b3ec2(0x2b1)]=_0x1c62b0,this[_0x7b3ec2(0x219)]=_0x187725,this[_0x7b3ec2(0x205)]=_0x560eb6,J(this,_0x7b3ec2(0x17b),null),J(this,_0x7b3ec2(0x18c),null),J(this,_0x7b3ec2(0x1c1),!0x1),J(this,'_shapeEditPanelVersion',0x0),J(this,_0x7b3ec2(0x322),new Map()),J(this,'_popupTargetKeys',new Map()),this[_0x7b3ec2(0x2f3)](),this['disposeWithMe'](this[_0x7b3ec2(0x399)]['getCurrentTypeOfUnit$'](_0x42988e[_0x7b3ec2(0x237)])[_0x7b3ec2(0x33b)](_0x3139a6=>{const _0xc82636=_0x7b3ec2;if(!_0x3139a6){var _0x2ef551;(_0x2ef551=this[_0xc82636(0x17b)])==null||_0x2ef551[_0xc82636(0x334)]();}})),this['_registerOperations'](),this[_0x7b3ec2(0x166)](this['_drawingManagerService'][_0x7b3ec2(0x337)]['subscribe'](_0x598ce5=>{const _0x586056=_0x7b3ec2;for(let _0x46f9f4 of _0x598ce5){let _0x4386c8=_0x46f9f4['unitId']+':'+_0x46f9f4[_0x586056(0x2e7)]+':'+_0x46f9f4['drawingId'];for(let [_0x4f37b6,_0x1ea6d9]of this[_0x586056(0x3ad)])_0x1ea6d9===_0x4386c8&&this[_0x586056(0x234)](_0x4f37b6,!0x0);}})),this[_0x7b3ec2(0x166)](_0x209159(this[_0x7b3ec2(0x323)],_0x42988e['UNIVER_DOC'],_0x1f0a57=>this[_0x7b3ec2(0x3a4)](_0x1f0a57))),this[_0x7b3ec2(0x166)](this[_0x7b3ec2(0x2b1)][_0x7b3ec2(0x1bd)][_0x7b3ec2(0x33b)](_0x45cc0d=>{const _0x466e1f=_0x7b3ec2;_0x45cc0d&&this[_0x466e1f(0x234)](void 0x0,!0x0);})),this[_0x7b3ec2(0x166)](this['_permissionService'][_0x7b3ec2(0x222)][_0x7b3ec2(0x33b)](()=>{const _0x404b7e=_0x7b3ec2;this[_0x404b7e(0x257)]['getFocusDrawings']()[_0x404b7e(0x2f7)](_0x36410a=>_0x36410a[_0x404b7e(0x1f4)]===_0x4a830a[_0x404b7e(0x242)]&&this['_univerInstanceService']['getUnitType'](_0x36410a[_0x404b7e(0x225)])===_0x42988e['UNIVER_DOC']&&!this[_0x404b7e(0x277)](_0x36410a['unitId'],_0x36410a[_0x404b7e(0x1d7)]))&&(this['_clearPopups'](void 0x0,!0x0),this[_0x404b7e(0x3a9)]());}));}[_0x48e9aa(0x258)](_0x30883c,_0x5d264f,_0x59f220,_0x557726){const _0x154720=_0x48e9aa;return[{'label':'docs-shape-ui.openPanel','index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x30883c,'subUnitId':_0x5d264f,'drawingId':_0x59f220},'disable':_0x557726===_0x4a830a['DRAWING_DOM']},{'label':_0x154720(0x190),'index':0x1,'commandId':_0x319dc1['id'],'commandParams':{'unitId':_0x30883c,'drawings':[{'unitId':_0x30883c,'subUnitId':_0x5d264f,'drawingId':_0x59f220}]},'disable':!0x1},{'label':_0x154720(0x1bf),'index':0x2,'commandId':Bi['id'],'commandParams':{'unitId':_0x30883c,'subUnitId':_0x5d264f,'drawingId':_0x59f220},'disable':!0x1}];}[_0x48e9aa(0x2f3)](){const _0x33d6cc=_0x48e9aa;this[_0x33d6cc(0x19c)][_0x33d6cc(0x20b)](Li);}[_0x48e9aa(0x2e5)](_0x20e020,_0x11fc54,_0x14916e){const _0x1fc596=_0x48e9aa;let _0xee79ab=this[_0x1fc596(0x2dd)][_0x1fc596(0x298)](_0x20e020,_0x11fc54,_0x14916e),_0x4c14b8=this['_docsShapeService']['getShapeDataById'](_0x20e020,_0x11fc54,_0x14916e);return _0xee79ab===void 0x0||_0x4c14b8===void 0x0?null:{'shapeData':_0x4c14b8,'shapeId':_0x14916e,'shapeType':_0xee79ab,'unitId':_0x20e020,'subUnitId':_0x11fc54,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1};}[_0x48e9aa(0x234)](_0x4e2733,_0x194a13=!0x1){const _0x145ae2=_0x48e9aa;if(_0x4e2733==null){[...this['_disposePopupsByUnit']['keys']()]['forEach'](_0x5671d4=>this[_0x145ae2(0x234)](_0x5671d4,_0x194a13));return;}let _0xda4b65=this[_0x145ae2(0x322)][_0x145ae2(0x2b4)](_0x4e2733);if(_0xda4b65){for(let _0x41f8c0=_0xda4b65[_0x145ae2(0x321)]-0x1;_0x41f8c0>=0x0;--_0x41f8c0){let _0x5e7a4b=_0xda4b65[_0x41f8c0];(_0x194a13||_0x5e7a4b[_0x145ae2(0x2a9)]())&&(_0x5e7a4b[_0x145ae2(0x334)](),_0xda4b65[_0x145ae2(0x248)](_0x41f8c0,0x1));}_0xda4b65[_0x145ae2(0x321)]===0x0&&(this[_0x145ae2(0x322)]['delete'](_0x4e2733),this[_0x145ae2(0x3ad)]['delete'](_0x4e2733));}}['_getDisposePopups'](_0x440aa9){const _0x29592c=_0x48e9aa;let _0x518b81=this[_0x29592c(0x322)][_0x29592c(0x2b4)](_0x440aa9);if(_0x518b81)return _0x518b81;let _0x58fab6=[];return this[_0x29592c(0x322)][_0x29592c(0x26f)](_0x440aa9,_0x58fab6),_0x58fab6;}[_0x48e9aa(0x3a4)](_0x5928ca){const _0x380b52=_0x48e9aa;var _0x2971fe;let _0x473b9f=new _0x3ef51c(),_0x2c7c06=(_0x2971fe=this[_0x380b52(0x323)]['getAllRenderersOfType'](_0x42988e[_0x380b52(0x237)])['find'](_0xe0a322=>_0xe0a322[_0x380b52(0x1f7)][_0x380b52(0x38e)]()===_0x5928ca))==null?void 0x0:_0x2971fe[_0x380b52(0x225)];return _0x2c7c06&&(_0x473b9f[_0x380b52(0x164)](_0x5928ca['createControl$']['subscribe'](()=>this[_0x380b52(0x1ff)](_0x5928ca,_0x2c7c06))),_0x473b9f[_0x380b52(0x164)](_0x5928ca[_0x380b52(0x1ed)]['subscribe'](()=>{const _0x8354db=_0x380b52;this[_0x8354db(0x234)](_0x2c7c06),queueMicrotask(()=>{const _0x51b4ad=_0x8354db;_0x5928ca[_0x51b4ad(0x284)]()['size']>0x0||!this[_0x51b4ad(0x257)][_0x51b4ad(0x2e8)]()[_0x51b4ad(0x2f7)](_0x1a018b=>_0x1a018b[_0x51b4ad(0x225)]===_0x2c7c06)||(this[_0x51b4ad(0x38a)][_0x51b4ad(0x33e)](_0x5afdc7,!0x1),this[_0x51b4ad(0x257)][_0x51b4ad(0x2fa)](null));});})),_0x473b9f[_0x380b52(0x164)](_0x5928ca[_0x380b52(0x260)][_0x380b52(0x33b)](()=>{const _0x2179b1=_0x380b52;this[_0x2179b1(0x234)](_0x2c7c06,!0x0);}))),_0x473b9f;}[_0x48e9aa(0x1ff)](_0x439a9a,_0x59faa4){const _0xf43130=_0x48e9aa;let _0xd9822e=_0x439a9a['getSelectedObjectMap']();if(this[_0xf43130(0x1c1)]){this[_0xf43130(0x234)](_0x59faa4,!0x0);return;}if(_0xd9822e[_0xf43130(0x236)]>0x1){this[_0xf43130(0x234)](_0x59faa4);return;}let _0x43bb88=_0xd9822e[_0xf43130(0x312)]()[_0xf43130(0x217)]()[_0xf43130(0x360)];if(!_0x43bb88){this[_0xf43130(0x234)](_0x59faa4);return;}let _0x51960e=this[_0xf43130(0x257)]['getDrawingOKey'](_0x43bb88[_0xf43130(0x2b0)]);if(!_0x51960e||_0x51960e[_0xf43130(0x1f4)]!==_0x4a830a[_0xf43130(0x242)]){this['_clearPopups'](_0x59faa4);return;}let {unitId:_0x48b87f,subUnitId:_0x28267a,drawingId:_0x564930}=_0x51960e;if(!this['_canEditShape'](_0x48b87f,_0x564930)){this[_0xf43130(0x234)](_0x59faa4,!0x0);return;}let _0x5ce4b1=this[_0xf43130(0x2e5)](_0x48b87f,_0x28267a,_0x564930);if(!_0x5ce4b1){this[_0xf43130(0x234)](_0x59faa4);return;}let _0x1c3aa3=this[_0xf43130(0x322)][_0xf43130(0x2b4)](_0x59faa4),_0x5b6a43=_0x48b87f+':'+_0x28267a+':'+_0x564930;if(this[_0xf43130(0x3ad)][_0xf43130(0x2b4)](_0x59faa4)===_0x5b6a43&&_0x1c3aa3!=null&&_0x1c3aa3[_0xf43130(0x321)])return;this[_0xf43130(0x234)](_0x59faa4);let _0x3f79d4=this['_renderManagerService'][_0xf43130(0x2cc)](_0x48b87f),_0x483533=((_0x3f79d4==null?void 0x0:_0x3f79d4[_0xf43130(0x368)])===!0x1?_0x3f79d4[_0xf43130(0x33d)](_0x424f17):this[_0xf43130(0x2bd)])[_0xf43130(0x25e)](_0x43bb88,this[_0xf43130(0x369)](_0x5ce4b1,()=>this['_clearPopups'](_0x59faa4,!0x0)),_0x48b87f);this['disposeWithMe'](_0x483533),this[_0xf43130(0x154)](_0x59faa4)[_0xf43130(0x283)](_0x483533),this[_0xf43130(0x3ad)][_0xf43130(0x26f)](_0x59faa4,_0x5b6a43),this[_0xf43130(0x257)][_0xf43130(0x2e8)]()[_0xf43130(0x2f7)](_0x1a6794=>_0x1a6794[_0xf43130(0x225)]===_0x48b87f&&_0x1a6794[_0xf43130(0x2e7)]===_0x28267a&&_0x1a6794[_0xf43130(0x1d7)]===_0x564930)||this[_0xf43130(0x257)][_0xf43130(0x2fa)]([{'unitId':_0x48b87f,'subUnitId':_0x28267a,'drawingId':_0x564930}]);}['_getShapePopup'](_0xd909,_0x299b59){const _0x19c9c0=_0x48e9aa;let {unitId:_0x7bfc94,subUnitId:_0x5876a9,shapeId:_0x489f99}=_0xd909,_0x512c5b={'hostType':_0x42988e['UNIVER_DOC'],'unitId':_0x7bfc94,'subUnitId':_0x5876a9,'shapeId':_0x489f99};return{'componentKey':da,'requiresStableLayout':!0x1,'direction':_0x19c9c0(0x291),'offset':[0x0,0x8],'extraProps':{'shapeType':_0xd909['shapeType'],'onText':()=>{const _0x9df8c7=_0x19c9c0;_0x299b59(),this[_0x9df8c7(0x205)][_0x9df8c7(0x378)]('text',_0x512c5b);},'onStyle':()=>{const _0x54e280=_0x19c9c0;_0x299b59(),this[_0x54e280(0x205)]['open'](_0x54e280(0x20f),_0x512c5b);},'onDelete':()=>this['_commandService'][_0x19c9c0(0x377)](_0x319dc1['id'],{'unitId':_0x7bfc94,'drawings':[{'unitId':_0x7bfc94,'subUnitId':_0x5876a9,'drawingId':_0x489f99}]})}};}[_0x48e9aa(0x277)](_0x5b8843,_0x20229c){const _0x131699=_0x48e9aa;let _0x102cae=this[_0x131699(0x399)]['getUnit'](_0x5b8843,_0x42988e[_0x131699(0x237)]);if(!_0x102cae)return!0x1;let _0x124370=_0x59cb02(_0x102cae,_0x20229c);return _0x409214(this[_0x131699(0x219)],_0x5b8843,[..._0x15f270(_0x102cae,_0x124370,_0x131699(0x280),_0x20229c),_0x4ffa0c(_0x124370,_0x131699(0x280),_0x20229c)]);}[_0x48e9aa(0x266)](){const _0x13c732=_0x48e9aa;this[_0x13c732(0x166)](this[_0x13c732(0x27e)][_0x13c732(0x14f)](_0x2dc353=>{const _0x5f10a5=_0x13c732;if(_0x2dc353['id']===G['id']){let {unitId:_0x44ad51,subUnitId:_0x5cb835,drawingId:_0x57d365}=_0x2dc353['params'];this[_0x5f10a5(0x1b1)]+=0x1,this['_activeShapeInfo']=this[_0x5f10a5(0x2e5)](_0x44ad51,_0x5cb835,_0x57d365),this['_clearPopups'](void 0x0,!0x0),this[_0x5f10a5(0x22c)]();}if(_0x2dc353['id']===Bi['id']&&(this['_activeShapeInfo']=null,this[_0x5f10a5(0x3a9)]()),_0x2dc353['id']===_0x1a7d3e['id']){var _0xa3eaf2;let {unitId:_0x2b531d,shapeId:_0x1e81ad}=_0x2dc353[_0x5f10a5(0x2ae)];if(((_0xa3eaf2=this[_0x5f10a5(0x18c)])==null?void 0x0:_0xa3eaf2[_0x5f10a5(0x3b3)])===_0x1e81ad){let _0x30cb18=this['_getShapeInfo'](_0x2b531d,this[_0x5f10a5(0x18c)][_0x5f10a5(0x2e7)],_0x1e81ad);_0x30cb18&&(this['_shapeEditPanelVersion']+=0x1,_0x30cb18[_0x5f10a5(0x228)]=this[_0x5f10a5(0x1b1)],this[_0x5f10a5(0x18c)]=_0x30cb18,this[_0x5f10a5(0x1c1)]&&this['_openShapeEditPanel']());}}})),this['disposeWithMe'](this['_drawingManagerService'][_0x13c732(0x247)][_0x13c732(0x33b)](_0x12a7b6=>{const _0x33bef2=_0x13c732;if(!this[_0x33bef2(0x1c1)])return;if(_0x12a7b6[_0x33bef2(0x321)]===0x0){this[_0x33bef2(0x18c)]=null,this[_0x33bef2(0x3a9)]();return;}if(_0x12a7b6[_0x33bef2(0x321)]===0x1&&_0x12a7b6[0x0][_0x33bef2(0x1f4)]===_0x4a830a[_0x33bef2(0x242)]&&(this[_0x33bef2(0x1b1)]+=0x1,this[_0x33bef2(0x18c)]=this[_0x33bef2(0x2e5)](_0x12a7b6[0x0][_0x33bef2(0x225)],_0x12a7b6[0x0][_0x33bef2(0x2e7)],_0x12a7b6[0x0][_0x33bef2(0x1d7)]),this[_0x33bef2(0x18c)])){this[_0x33bef2(0x22c)]();return;}let _0x28aa4b=_0x12a7b6[_0x33bef2(0x29f)](_0xf3b201=>_0xf3b201[_0x33bef2(0x1f4)]===_0x4a830a[_0x33bef2(0x242)]);this[_0x33bef2(0x1b1)]+=0x1,this[_0x33bef2(0x18c)]=this[_0x33bef2(0x2e5)](_0x12a7b6[0x0][_0x33bef2(0x225)],_0x12a7b6[0x0][_0x33bef2(0x2e7)],_0x12a7b6[0x0]['drawingId']),this[_0x33bef2(0x18c)]&&_0x12a7b6['length']>0x1&&_0x28aa4b[_0x33bef2(0x321)]===_0x12a7b6[_0x33bef2(0x321)]?this[_0x33bef2(0x22c)]():this[_0x33bef2(0x18c)]&&_0x28aa4b[_0x33bef2(0x321)]!==_0x12a7b6[_0x33bef2(0x321)]?(this['_activeShapeInfo'][_0x33bef2(0x336)]=!0x0,this[_0x33bef2(0x22c)]()):this['_closeShapeEditPanel']();}));}[_0x48e9aa(0x22c)](){const _0x13a5ff=_0x48e9aa;this[_0x13a5ff(0x18c)]&&(this[_0x13a5ff(0x17b)]=this['_sidebarService'][_0x13a5ff(0x378)]({'id':W,'header':{'title':this[_0x13a5ff(0x14a)]['t']('docs-shape-ui.formatShape')},'width':0x184,'children':{'label':W,...this[_0x13a5ff(0x18c)]},'onClose':()=>{const _0x23466c=_0x13a5ff;this[_0x23466c(0x257)]['focusDrawing'](null),this['_contextService']['setContextValue'](_0x5afdc7,!0x1),this['_sidebarDisposable']=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0x48e9aa(0x3a9)](){const _0x4feab7=_0x48e9aa;this[_0x4feab7(0x1c1)]=!0x1,this[_0x4feab7(0x347)][_0x4feab7(0x2d0)](W),this[_0x4feab7(0x17b)]=null,this[_0x4feab7(0x38a)][_0x4feab7(0x33e)](_0x5afdc7,!0x1),this['_drawingManagerService'][_0x4feab7(0x2fa)](null);}};ba=q([K(0x0,_0x3d68d4),K(0x1,_0x279b1a(_0x4e2095)),K(0x2,_0x4fa574),K(0x3,_0x279b1a(_0x5b7f91)),K(0x4,_0x279b1a(_0x35ebd3)),K(0x5,_0x1310fd),K(0x6,_0x5eaac6),K(0x7,_0x279b1a(_0x424f17)),K(0x8,_0xa0de3a),K(0x9,_0x3d8672),K(0xa,_0x279b1a(X)),K(0xb,_0x558aa1),K(0xc,_0x279b1a(_0x32d977))],ba);const xa=_0x48e9aa(0x376);let Sa=class extends _0x5207f2{constructor(_0x31e229,_0x2c8c59,_0x3d0c85,_0x4dd5fa,_0x2f2bdf,_0x330df3){const _0x57e920=_0x48e9aa;super(),this[_0x57e920(0x19c)]=_0x31e229,this[_0x57e920(0x27a)]=_0x2c8c59,this[_0x57e920(0x257)]=_0x3d0c85,this[_0x57e920(0x399)]=_0x4dd5fa,this[_0x57e920(0x323)]=_0x2f2bdf,this[_0x57e920(0x35d)]=_0x330df3,J(this,_0x57e920(0x2a3),!0x1),this[_0x57e920(0x19c)][_0x57e920(0x20b)](Ii),this[_0x57e920(0x166)](_0x1fb9e7(this['_drawingManagerService'][_0x57e920(0x247)]['subscribe'](()=>this[_0x57e920(0x326)]()))),this[_0x57e920(0x326)]();}[_0x48e9aa(0x334)](){const _0x4bae92=_0x48e9aa;this[_0x4bae92(0x35d)][_0x4bae92(0x26b)](!0x1,xa),this[_0x4bae92(0x32c)](),super[_0x4bae92(0x334)]();}[_0x48e9aa(0x326)](){const _0x4b54ab=_0x48e9aa;var _0x1a8edc;let _0x3ed4ed=this[_0x4b54ab(0x257)][_0x4b54ab(0x2e8)](),_0x3f9348=_0x3ed4ed[_0x4b54ab(0x321)]===0x1?_0x3ed4ed[0x0]:void 0x0;if((_0x3f9348==null?void 0x0:_0x3f9348['drawingType'])!==_0x4a830a[_0x4b54ab(0x242)]||this['_univerInstanceService'][_0x4b54ab(0x34f)](_0x3f9348[_0x4b54ab(0x225)])!==_0x42988e[_0x4b54ab(0x237)]){this[_0x4b54ab(0x35d)]['setFallbackVisible'](!0x1,xa),this[_0x4b54ab(0x32c)]();return;}let _0x51dd9c=(_0x1a8edc=this[_0x4b54ab(0x323)][_0x4b54ab(0x2cc)](_0x3f9348[_0x4b54ab(0x225)]))==null?void 0x0:_0x1a8edc['engine'][_0x4b54ab(0x23c)](),_0x16665e=_0x477e9c(_0x51dd9c)===_0x4b54ab(0x37d);this[_0x4b54ab(0x35d)]['setFallbackVisible'](_0x16665e,xa),_0x16665e?this['_hide']():(this[_0x4b54ab(0x2a3)]=!0x0,this[_0x4b54ab(0x27a)][_0x4b54ab(0x255)](Dr,{'activate':!0x0}));}[_0x48e9aa(0x32c)](){const _0x62de6a=_0x48e9aa;this['_visible']&&(this['_visible']=!0x1,this[_0x62de6a(0x27a)][_0x62de6a(0x269)](Dr),this['_ribbonService'][_0x62de6a(0x1e8)]([]));}};Sa=q([K(0x0,_0x4fa574),K(0x1,_0x2b6fcb),K(0x2,_0x5eaac6),K(0x3,_0x3d68d4),K(0x4,_0xa0de3a),K(0x5,_0x279b1a(_0x28a5be))],Sa);let Ca=class extends _0x5207f2{constructor(_0x27ce02,_0x4ed28c,_0x55b5c3,_0x368344){const _0x26ca67=_0x48e9aa;super(),this[_0x26ca67(0x27e)]=_0x27ce02,this[_0x26ca67(0x323)]=_0x4ed28c,this[_0x26ca67(0x257)]=_0x55b5c3,this[_0x26ca67(0x363)]=_0x368344,this['_initialize']();}[_0x48e9aa(0x251)](){const _0x26dbde=_0x48e9aa;this[_0x26dbde(0x166)](this[_0x26dbde(0x257)]['add$']['subscribe'](_0x2d21e1=>this['_insertShapes'](_0x2d21e1))),this[_0x26dbde(0x166)](this[_0x26dbde(0x257)]['update$']['subscribe'](_0x11dc22=>{_0x11dc22['forEach'](_0x30fba1=>this['_updateShape'](_0x30fba1));})),this[_0x26dbde(0x166)](this['_commandService'][_0x26dbde(0x14f)](_0xc68f6c=>{const _0x401b3e=_0x26dbde;if(_0xc68f6c['id']!==_0x1a7d3e['id'])return;let {unitId:_0xcaa8e8,shapeId:_0x4c2bff}=_0xc68f6c['params'];this[_0x401b3e(0x1fc)]({'unitId':_0xcaa8e8,'subUnitId':_0xcaa8e8,'drawingId':_0x4c2bff});}));}[_0x48e9aa(0x301)](_0x54984d){const _0x2cd344=_0x48e9aa;_0x54984d[_0x2cd344(0x15d)](_0x543308=>{const _0x3a9c93=_0x2cd344;let _0x4c9caa=this[_0x3a9c93(0x2ee)](_0x543308[_0x3a9c93(0x225)]);if(!_0x4c9caa)return;let _0x496b0b=this[_0x3a9c93(0x257)]['getDrawingByParam'](_0x543308);(_0x496b0b==null?void 0x0:_0x496b0b['drawingType'])===_0x4a830a['DRAWING_SHAPE']&&this['_docDrawingShapeRenderController'][_0x3a9c93(0x394)](_0x496b0b,_0x4c9caa['scene']);});}['_updateShape'](_0x57470a){const _0x403941=_0x48e9aa;let _0x555066=this[_0x403941(0x257)][_0x403941(0x327)](_0x57470a);if((_0x555066==null?void 0x0:_0x555066['drawingType'])!==_0x4a830a[_0x403941(0x242)])return;let _0x586b07=this[_0x403941(0x2ee)](_0x57470a[_0x403941(0x225)]);if(!_0x586b07||_0x555066[_0x403941(0x30e)]==null)return;let _0x4cc157=_0x309ca8(_0x57470a),_0x5c939f=_0x586b07[_0x403941(0x1f7)][_0x403941(0x2f5)](_0x4cc157);_0x5c939f&&(_0x5c939f[_0x403941(0x34b)](_0x555066[_0x403941(0x26d)]),_0x5c939f[_0x403941(0x2aa)](_0x555066[_0x403941(0x318)]),_0x5c939f[_0x403941(0x3a2)](!0x0));}[_0x48e9aa(0x1fc)](_0x48351d){const _0xc787ce=_0x48e9aa;let _0x58ac96=this['_getSceneByUnitId'](_0x48351d[_0xc787ce(0x225)]);if(!_0x58ac96)return;let _0x5f06b0=_0x309ca8(_0x48351d),_0x444d08=_0x58ac96[_0xc787ce(0x1f7)][_0xc787ce(0x2f5)](_0x5f06b0);_0x444d08&&(this[_0xc787ce(0x363)][_0xc787ce(0x37e)](_0x444d08),this[_0xc787ce(0x363)][_0xc787ce(0x31e)](_0x444d08,{'unitId':_0x48351d[_0xc787ce(0x225)],'subUnitId':_0x48351d[_0xc787ce(0x2e7)],'shapeId':_0x48351d[_0xc787ce(0x1d7)]}),_0x444d08['makeDirty'](!0x0));}['_getSceneByUnitId'](_0x14aee2){const _0x3ae127=_0x48e9aa;if(_0x14aee2==null)return null;let _0x1da142=this[_0x3ae127(0x323)][_0x3ae127(0x2cc)](_0x14aee2),_0x31175b=_0x1da142==null?void 0x0:_0x1da142['scene'];return _0x31175b==null?null:{'scene':_0x31175b};}};Ca=q([K(0x0,_0x1310fd),K(0x1,_0xa0de3a),K(0x2,_0x5eaac6),K(0x3,_0x279b1a(Z))],Ca);let Q=class extends _0x1c21ad{constructor(_0x2fe1e2=Hi,_0x13d03,_0x4480f5,_0x346292,_0x51d2e8){const _0x357a66=_0x48e9aa;super(),this[_0x357a66(0x300)]=_0x2fe1e2,this[_0x357a66(0x1c2)]=_0x13d03,this[_0x357a66(0x27e)]=_0x4480f5,this[_0x357a66(0x358)]=_0x346292,this['_renderManagerService']=_0x51d2e8;let {menu:_0x43f210,..._0x410bb2}=_0x448683({},Hi,this['_config']);_0x43f210&&this[_0x357a66(0x358)][_0x357a66(0x186)](_0x357a66(0x1fa),_0x43f210,{'merge':!0x0}),this[_0x357a66(0x358)]['setConfig'](Vi,_0x410bb2),[U,Bi,G,Mr,Pr,Fr][_0x357a66(0x15d)](_0x497972=>this['disposeWithMe'](this[_0x357a66(0x27e)][_0x357a66(0x211)](_0x497972)));}[_0x48e9aa(0x1d5)](){const _0x28338f=_0x48e9aa;let _0x53836c=[[ya],[ba],[Ca],[Z],[Xi],[Ji],[Ir],[aa],[X],[Sa]];_0x496b90(this['_injector'],_0x53836c),this[_0x28338f(0x1c2)]['get'](ya);}['onReady'](){const _0x37bae9=_0x48e9aa;this[_0x37bae9(0x166)](this[_0x37bae9(0x323)]['registerRenderModule'](_0x42988e[_0x37bae9(0x237)],[Ji])),_0x43ee11(this[_0x37bae9(0x1c2)],[[ba],[Ca],[Z],[Xi],[Ir],[aa],[X],[Sa]]);}};J(Q,'type',_0x42988e[_0x48e9aa(0x237)]),J(Q,'pluginName',_0x48e9aa(0x1af)),J(Q,_0x48e9aa(0x1a1),Ri),J(Q,_0x48e9aa(0x228),zi),Q=q([_0x2b96d8(_0x5554a3,_0x52bbc7,_0x20b1c6,_0x30c120,_0x428570,_0x4d3e53,_0x57eb8b,_0xd86f40,_0x2bf01c,_0x231fc1),K(0x1,_0x279b1a(_0x2c78fa)),K(0x2,_0x1310fd),K(0x3,_0x3c23ad),K(0x4,_0xa0de3a)],Q);let wa=class extends _0x5207f2{constructor(_0x2b9dbe,_0x15c434){const _0x4eb35a=_0x48e9aa;super(),this[_0x4eb35a(0x19f)]=_0x2b9dbe,this['_iconManager']=_0x15c434,this[_0x4eb35a(0x359)](),this['_registerComponents']();}[_0x48e9aa(0x359)](){const _0xc4b668=_0x48e9aa;this[_0xc4b668(0x21a)]['has'](_0xc4b668(0x21e))||this[_0xc4b668(0x166)](this[_0xc4b668(0x21a)][_0xc4b668(0x354)]({'ObjectLayersIcon':_0x73f84a})),this['_iconManager'][_0xc4b668(0x28f)]('BottomIcon')||this[_0xc4b668(0x166)](this[_0xc4b668(0x21a)][_0xc4b668(0x354)]({'BottomIcon':_0x5c9f15})),this[_0xc4b668(0x21a)][_0xc4b668(0x28f)](_0xc4b668(0x346))||this[_0xc4b668(0x166)](this['_iconManager'][_0xc4b668(0x354)]({'MoveDownIcon':_0x181ddd})),this[_0xc4b668(0x21a)][_0xc4b668(0x28f)]('MoveUpIcon')||this[_0xc4b668(0x166)](this[_0xc4b668(0x21a)][_0xc4b668(0x354)]({'MoveUpIcon':_0x5457e8})),this[_0xc4b668(0x21a)]['has'](_0xc4b668(0x2d9))||this[_0xc4b668(0x166)](this[_0xc4b668(0x21a)][_0xc4b668(0x354)]({'ShapeFormatSettingIcon':_0x1c7c9b})),this[_0xc4b668(0x21a)][_0xc4b668(0x28f)](_0xc4b668(0x15a))||this[_0xc4b668(0x166)](this[_0xc4b668(0x21a)]['register']({'TopmostIcon':_0x4b8a19})),this[_0xc4b668(0x166)](this[_0xc4b668(0x21a)]['register'](_a));}[_0x48e9aa(0x210)](){const _0x8c1dce=_0x48e9aa;this[_0x8c1dce(0x166)](this[_0x8c1dce(0x19f)][_0x8c1dce(0x354)](W,sa)),this[_0x8c1dce(0x373)](),this[_0x8c1dce(0x2dc)](),this['disposeWithMe'](this['_componentManager']['register'](Qr,ii)),this[_0x8c1dce(0x166)](this[_0x8c1dce(0x19f)][_0x8c1dce(0x354)](Zr,ai)),this[_0x8c1dce(0x166)](this[_0x8c1dce(0x19f)][_0x8c1dce(0x354)]($r,oi)),this[_0x8c1dce(0x166)](this['_componentManager'][_0x8c1dce(0x354)](ei,si)),this[_0x8c1dce(0x166)](this[_0x8c1dce(0x19f)][_0x8c1dce(0x354)](ti,ci)),this['disposeWithMe'](this['_componentManager'][_0x8c1dce(0x354)](Ar,_0x3656e4)),this[_0x8c1dce(0x31c)](),this['_componentManager']['hasDefault'](_0x286083)||this['disposeWithMe'](this[_0x8c1dce(0x19f)][_0x8c1dce(0x354)](_0x286083,Hr)),this[_0x8c1dce(0x166)](this['_componentManager']['register'](jr,va));}['_registerObjectListPanel'](){const _0xbc2b6b=_0x48e9aa;this[_0xbc2b6b(0x166)](this['_componentManager']['register'](Or,ra));}['_registerFloatingToolbar'](){const _0x37dc09=_0x48e9aa;this['disposeWithMe'](this[_0x37dc09(0x19f)][_0x37dc09(0x354)](da,pa));}[_0x48e9aa(0x31c)](){const _0x5c41fc=_0x48e9aa;this[_0x5c41fc(0x166)](this['_componentManager'][_0x5c41fc(0x354)](Lr,Ur)),this['disposeWithMe'](this[_0x5c41fc(0x19f)]['register'](Rr,Vr));}};wa=q([K(0x0,_0x279b1a(_0x453046)),K(0x1,_0x279b1a(_0x45eb8f))],wa);let Ta=class extends _0x5207f2{constructor(_0x14fc29,_0x40477c,_0xc4380,_0x529973,_0x1cc616,_0x3246e3,_0x4c4f15,_0x20a46d,_0x69e29b){const _0x2a5cab=_0x48e9aa;super();let _0x23b5bd=_0x509c91=>{const _0x5f1f26=_0x1801;let _0x21f4c3=_0x3246e3[_0x5f1f26(0x2db)](_0x509c91[_0x5f1f26(0x225)],_0x42988e['UNIVER_DOC']),_0x15508e=_0x21f4c3?_0x59cb02(_0x21f4c3,_0x509c91[_0x5f1f26(0x3b3)]):'';return!!_0x21f4c3&&_0x409214(_0x20a46d,_0x509c91[_0x5f1f26(0x225)],[_0x4ffa0c(_0x15508e,_0x5f1f26(0x280),_0x509c91[_0x5f1f26(0x3b3)]),..._0x15f270(_0x21f4c3,_0x15508e,'drawing',_0x509c91[_0x5f1f26(0x3b3)])]);},_0xbb181f=_0x4a6efb=>_0x4a6efb[_0x2a5cab(0x3b3)]&&_0x23b5bd(_0x4a6efb)?_0xc4380[_0x2a5cab(0x1bb)](_0x4a6efb[_0x2a5cab(0x225)],_0x4a6efb[_0x2a5cab(0x3b3)])??null:null,_0x107977=()=>{const _0x390793=_0x2a5cab;let _0x4aed47=_0x1cc616[_0x390793(0x2e8)](),_0x479f51=_0x4aed47[_0x390793(0x321)]===0x1?_0x4aed47[0x0]:null;return(_0x479f51==null?void 0x0:_0x479f51[_0x390793(0x1f4)])===_0x4a830a[_0x390793(0x242)]&&_0x479f51[_0x390793(0x225)]===_0x14fc29[_0x390793(0x225)]?{'unitId':_0x479f51['unitId'],'subUnitId':_0x479f51['subUnitId'],'shapeId':_0x479f51[_0x390793(0x1d7)]}:null;};this['disposeWithMe'](_0x75c66a(_0x14fc29,_0x40477c,{'changes$':_0x3032d0(_0x1cc616[_0x2a5cab(0x247)],_0x529973[_0x2a5cab(0x1bd)],_0x20a46d['permissionPointUpdate$']),'isActive':()=>{const _0x5221f8=_0x2a5cab;var _0x2acda1;return((_0x2acda1=_0x3246e3[_0x5221f8(0x197)]())==null?void 0x0:_0x2acda1[_0x5221f8(0x23e)]())===_0x14fc29[_0x5221f8(0x225)]&&!_0x4c4f15['getContextValue'](_0x5d8de8)&&_0x1cc616[_0x5221f8(0x2e8)]()['some'](_0xe9543a=>_0xe9543a[_0x5221f8(0x225)]===_0x14fc29[_0x5221f8(0x225)]);},'getSelectedTarget':_0x107977,'getSource':()=>{let _0x1ff0b6=_0x107977();return _0x1ff0b6?_0xbb181f(_0x1ff0b6):null;},'getTarget':_0x5b5bce=>{const _0x175a41=_0x2a5cab;let _0x329ac8=_0x14fc29['scene'][_0x175a41(0x183)](new _0x27cac4(_0x5b5bce['offsetX'],_0x5b5bce[_0x175a41(0x3bc)]));if(!(_0x329ac8 instanceof Y))return null;let _0x4d5f62={'unitId':_0x14fc29['unitId'],'subUnitId':_0x14fc29[_0x175a41(0x225)],'shapeId':_0x329ac8[_0x175a41(0x3b3)]};return _0x23b5bd(_0x4d5f62)?_0x4d5f62:null;},'getShape':_0xbb181f,'update':(_0x15496c,_0x42f0b3,_0x545fa0)=>_0x69e29b[_0x2a5cab(0x377)](_0x44bda9['id'],{..._0x15496c,'shapeData':_0x545fa0,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x42f0b3}})}));}};Ta=q([K(0x1,_0x279b1a(_0x46bf28)),K(0x2,_0x279b1a(_0x5b7f91)),K(0x3,_0x279b1a(X)),K(0x4,_0x5eaac6),K(0x5,_0x3d68d4),K(0x6,_0x3d8672),K(0x7,_0x558aa1),K(0x8,_0x1310fd)],Ta);function Ea(_0x3a6f64,_0x2e3c48){const _0x22eb1d=_0x48e9aa;let _0x515e79=_0x3a6f64;for(;_0x515e79;){if(_0x2e3c48(_0x515e79))return _0x515e79;_0x515e79=typeof _0x515e79['getParent']==_0x22eb1d(0x19d)?_0x515e79[_0x22eb1d(0x14d)]():null;}return null;}function Da(_0x121c5c){return Ea(_0x121c5c,_0x59c784=>_0x59c784 instanceof Y);}function Oa(_0x7af664){const _0x4707ea=_0x48e9aa;return(_0x7af664==null?void 0x0:_0x7af664[_0x4707ea(0x288)])==null;}let ka=class extends _0x5207f2{constructor(_0x32c92d,_0x408ea3,_0x3bcd32,_0xac3120,_0x42e902){const _0x5b58c1=_0x48e9aa;super(),this[_0x5b58c1(0x325)]=_0x32c92d,this[_0x5b58c1(0x2b1)]=_0x408ea3,this[_0x5b58c1(0x257)]=_0x3bcd32,this['_docLayoutInteractionService']=_0xac3120,this[_0x5b58c1(0x2dd)]=_0x42e902,J(this,_0x5b58c1(0x2d1),null),J(this,_0x5b58c1(0x1ba),null),this['_initEvents'](),this[_0x5b58c1(0x32d)](),this[_0x5b58c1(0x1b5)]();}[_0x48e9aa(0x334)](){const _0x54f5b0=_0x48e9aa;this['_endLayoutInteraction'](),super[_0x54f5b0(0x334)]();}[_0x48e9aa(0x1ea)](){const _0x3614c2=_0x48e9aa;let {scene:_0x86cc12}=this[_0x3614c2(0x325)];this[_0x3614c2(0x166)](_0x86cc12[_0x3614c2(0x15f)][_0x3614c2(0x275)]((_0x58d4cb,_0x16fa08)=>{const _0x1df35b=_0x3614c2;let {offsetX:_0x1042fc,offsetY:_0x1b6675}=_0x58d4cb,_0x1bebcb=_0x27cac4[_0x1df35b(0x343)]([_0x1042fc,_0x1b6675]),_0x52d364=Da(_0x86cc12[_0x1df35b(0x183)](_0x1bebcb))??this[_0x1df35b(0x1c7)](_0x1bebcb);if(_0x52d364){_0x16fa08[_0x1df35b(0x1f8)]();let _0x2ba400=this[_0x1df35b(0x2dd)][_0x1df35b(0x31a)](_0x52d364[_0x1df35b(0x225)],_0x52d364[_0x1df35b(0x2e7)],_0x52d364[_0x1df35b(0x3b3)]);if(!_0x2ba400||_0x32d327(_0x2ba400['getShapeType']())||!Oa(_0x2ba400['getShapeData']()))return;this[_0x1df35b(0x2b1)][_0x1df35b(0x1dd)]({'visible':!0x0,'unitId':_0x52d364['unitId'],'subUnitId':_0x52d364[_0x1df35b(0x2e7)],'shapeId':_0x52d364[_0x1df35b(0x3b3)],'shapeKey':_0x52d364['oKey']});}}));}[_0x48e9aa(0x1c7)](_0x55b4fb){const _0x1614e5=_0x48e9aa;let {scene:_0x2ccde6}=this[_0x1614e5(0x325)];return this[_0x1614e5(0x257)]['getFocusDrawings']()['map'](_0x422aab=>_0x2ccde6['getObjectIncludeInGroup'](_0x309ca8(_0x422aab)))[_0x1614e5(0x349)](_0x5bdb1a=>_0x5bdb1a instanceof Y&&_0x5bdb1a['isHit'](_0x55b4fb))??null;}[_0x48e9aa(0x32d)](){const _0x66fe51=_0x48e9aa;this[_0x66fe51(0x166)](this['_drawingManagerService'][_0x66fe51(0x247)][_0x66fe51(0x33b)](_0x525c41=>{const _0x393200=_0x66fe51;if(_0x525c41[_0x393200(0x321)]===0x1){let _0x16a57d=_0x525c41[0x0],_0x580887=this[_0x393200(0x257)]['getDrawingByParam'](_0x16a57d);if((_0x580887==null?void 0x0:_0x580887[_0x393200(0x1f4)])===_0x4a830a[_0x393200(0x242)]){let _0xec2aa5=this[_0x393200(0x2b1)]['getEditing']();if((_0xec2aa5==null?void 0x0:_0xec2aa5[_0x393200(0x3b3)])===_0x16a57d[_0x393200(0x1d7)]&&_0xec2aa5[_0x393200(0x14b)])return;_0x32d327(this['_docsShapeService']['getShapeType'](_0x16a57d[_0x393200(0x225)],_0x16a57d[_0x393200(0x2e7)],_0x16a57d[_0x393200(0x1d7)]))&&this[_0x393200(0x2b1)][_0x393200(0x1dd)](null);}else this[_0x393200(0x2b1)][_0x393200(0x16d)]();}else this['_shapeTextEditingService'][_0x393200(0x16d)]();})),this[_0x66fe51(0x166)](this[_0x66fe51(0x257)][_0x66fe51(0x337)][_0x66fe51(0x33b)](_0x5a97db=>{const _0xa488db=_0x66fe51;let _0x1c0ebd=this[_0xa488db(0x2b1)]['getEditing']();_0x1c0ebd&&_0x5a97db[_0xa488db(0x2f7)](_0x10e314=>_0x10e314[_0xa488db(0x1d7)]===_0x1c0ebd[_0xa488db(0x3b3)])&&this[_0xa488db(0x2b1)][_0xa488db(0x1dd)](null);}));}[_0x48e9aa(0x1b5)](){const _0x4c8bfa=_0x48e9aa;this['disposeWithMe'](this[_0x4c8bfa(0x2b1)][_0x4c8bfa(0x1bd)][_0x4c8bfa(0x33b)](_0x2f4888=>{const _0x2e7c52=_0x4c8bfa;(_0x2f4888==null?void 0x0:_0x2f4888[_0x2e7c52(0x14b)])===!0x0&&_0x2f4888['unitId']===this['_context'][_0x2e7c52(0x225)]?this[_0x2e7c52(0x1ba)]??=this[_0x2e7c52(0x355)]['beginInteraction']():this[_0x2e7c52(0x1e3)]();let {scene:_0x10af24}=this[_0x2e7c52(0x325)];if(this[_0x2e7c52(0x2d1)]){let _0x10779d=_0x10af24[_0x2e7c52(0x2f5)](this['_lastEditingShapeKey']);_0x10779d&&_0x10779d[_0x2e7c52(0x1dd)](!0x1);}if(_0x2f4888){let _0x50938d=!!_0x2f4888[_0x2e7c52(0x14b)],_0x279847=_0x10af24[_0x2e7c52(0x2f5)](_0x2f4888[_0x2e7c52(0x392)]);_0x279847&&(_0x279847['setEditing'](_0x50938d),this['_lastEditingShapeKey']=_0x2f4888['shapeKey']);}else this[_0x2e7c52(0x2d1)]=null;}));}[_0x48e9aa(0x1e3)](){const _0x3acedf=_0x48e9aa;var _0x49abc0;(_0x49abc0=this[_0x3acedf(0x1ba)])==null||_0x49abc0[_0x3acedf(0x334)](),this['_layoutInteraction']=null;}};ka=q([K(0x1,_0x279b1a(X)),K(0x2,_0x5eaac6),K(0x3,_0x279b1a(_0x4c4e3a)),K(0x4,_0x279b1a(_0x5b7f91))],ka);let Aa=class extends _0x3c51ae{constructor(_0x361a15,_0x5ded6a,_0xc223c9,_0x236339,_0x3f7316,_0x2e8a8d,_0x419697,_0x5ac963,_0x25a636,_0x45dcca){super(_0x361a15,_0x5ded6a,_0xc223c9,_0x236339,_0x3f7316,_0x2e8a8d,_0x419697,_0x5ac963,_0x25a636,_0x45dcca,{'componentKey':Ar,'editorUnitId':kr});}};Aa=q([K(0x1,_0x279b1a(_0x5c4205)),K(0x2,_0x279b1a(_0x424f17)),K(0x3,_0x279b1a(_0x249726)),K(0x4,_0x1310fd),K(0x5,_0x279b1a(_0x5274f3)),K(0x6,_0x279b1a(_0x6fa421)),K(0x7,_0x279b1a(_0x331ead)),K(0x8,_0x279b1a(_0x4506c7)),K(0x9,_0x279b1a(X))],Aa);let ja=class extends _0x4ce0f6{constructor(_0x414a14,_0x117372,_0x206e53,_0x4373c1,_0x38e47e){const _0x23adeb=_0x48e9aa;super(_0x414a14,_0x117372,{'editing$':_0x206e53[_0x23adeb(0x1bd)],'resolve':_0x44c65e=>{const _0xf1f425=_0x23adeb;var _0x3ff384;let _0xbd6145=new _0x27cac4(_0x44c65e[_0xf1f425(0x194)],_0x44c65e['offsetY']),_0x228328=((_0x3ff384=_0x414a14['scene'][_0xf1f425(0x2c0)](_0xbd6145))==null?void 0x0:_0x3ff384['transformVector2SceneCoord'](_0xbd6145))??_0xbd6145,_0x5bbe4a=_0x592ae5(_0x414a14['scene'][_0xf1f425(0x183)](_0xbd6145)??null,_0x228328);if(!(_0x5bbe4a instanceof Y))return null;let _0x2b9526=_0x5bbe4a[_0xf1f425(0x2cd)](_0x228328);if(!_0x2b9526)return null;let _0x3ff56e=_0x5bbe4a,_0x4595fc={'componentKey':_0x54b7a6[_0xf1f425(0x292)],'direction':'top-center','offset':[0x0,0xa],'onClickOutside':()=>_0x117372['hideInfoPopup']()};return{'object':_0x5bbe4a,'info':{..._0x2b9526,'unitId':_0x5bbe4a['unitId'],'subUnitId':_0x5bbe4a['subUnitId'],'shapeKey':_0x5bbe4a[_0xf1f425(0x2b0)],'readonly':!0x0,'copyable':_0x50c3c6(_0x38e47e,_0x5bbe4a[_0xf1f425(0x225)],_0x5bbe4a[_0xf1f425(0x225)],_0x26044a[_0xf1f425(0x26c)])},'attachPopup':()=>_0x4373c1[_0xf1f425(0x25e)](_0x3ff56e,_0x4595fc,_0x3ff56e[_0xf1f425(0x225)])};}});}};ja=q([K(0x1,_0x279b1a(_0x6fa421)),K(0x2,_0x279b1a(X)),K(0x3,_0x279b1a(_0x424f17)),K(0x4,_0x558aa1)],ja);let Ma=class extends _0x5207f2{constructor(_0x33f33c,_0x31aa95,_0x3ca86d,_0x510b19,_0x48caca,_0xbfaa36,_0x5cc465,_0x5e65a7,_0x3679dd,_0xc9c9ab,_0x4e207d,_0x53b1ea){const _0x48c27a=_0x48e9aa;super(),this[_0x48c27a(0x399)]=_0x33f33c,this[_0x48c27a(0x347)]=_0x31aa95,this[_0x48c27a(0x19c)]=_0x3ca86d,this['_docsShapeService']=_0x510b19,this[_0x48c27a(0x14a)]=_0x48caca,this[_0x48c27a(0x27e)]=_0xbfaa36,this[_0x48c27a(0x257)]=_0x5cc465,this[_0x48c27a(0x2bd)]=_0x5e65a7,this['_renderManagerService']=_0x3679dd,this['_contextService']=_0xc9c9ab,this[_0x48c27a(0x2b1)]=_0x4e207d,this[_0x48c27a(0x219)]=_0x53b1ea,J(this,_0x48c27a(0x17b),null),J(this,_0x48c27a(0x18c),null),J(this,_0x48c27a(0x1c1),!0x1),J(this,_0x48c27a(0x1b1),0x0),J(this,_0x48c27a(0x322),new Map()),J(this,_0x48c27a(0x3ad),new Map()),this[_0x48c27a(0x2f3)](),this[_0x48c27a(0x166)](this['_univerInstanceService'][_0x48c27a(0x239)](_0x42988e[_0x48c27a(0x237)])[_0x48c27a(0x33b)](_0x140315=>{const _0x1ed9bc=_0x48c27a;if(!_0x140315){var _0x16ba8e;(_0x16ba8e=this[_0x1ed9bc(0x17b)])==null||_0x16ba8e[_0x1ed9bc(0x334)]();}})),this[_0x48c27a(0x266)](),this['disposeWithMe'](this[_0x48c27a(0x257)][_0x48c27a(0x337)]['subscribe'](_0x6280c2=>{const _0x4830ce=_0x48c27a;for(let _0x147750 of _0x6280c2){let _0x3f2446=_0x147750['unitId']+':'+_0x147750[_0x4830ce(0x2e7)]+':'+_0x147750['drawingId'];for(let [_0xf32c3c,_0x5e1c86]of this[_0x4830ce(0x3ad)])_0x5e1c86===_0x3f2446&&this['_clearPopups'](_0xf32c3c,!0x0);}})),this[_0x48c27a(0x166)](_0x209159(this['_renderManagerService'],_0x42988e[_0x48c27a(0x237)],_0x4dc4a0=>this['_popupMenuListener'](_0x4dc4a0))),this['disposeWithMe'](this[_0x48c27a(0x2b1)][_0x48c27a(0x1bd)][_0x48c27a(0x33b)](_0x209632=>{const _0x238aff=_0x48c27a;_0x209632&&this[_0x238aff(0x234)](void 0x0,!0x0);})),this['disposeWithMe'](this['_permissionService'][_0x48c27a(0x222)][_0x48c27a(0x33b)](()=>{const _0x3877ad=_0x48c27a;this[_0x3877ad(0x257)][_0x3877ad(0x2e8)]()[_0x3877ad(0x2f7)](_0x2e2d05=>_0x2e2d05[_0x3877ad(0x1f4)]===_0x4a830a['DRAWING_SHAPE']&&this['_univerInstanceService'][_0x3877ad(0x34f)](_0x2e2d05[_0x3877ad(0x225)])===_0x42988e[_0x3877ad(0x237)]&&!this[_0x3877ad(0x277)](_0x2e2d05['unitId'],_0x2e2d05[_0x3877ad(0x1d7)]))&&(this[_0x3877ad(0x234)](void 0x0,!0x0),this[_0x3877ad(0x3a9)]());}));}[_0x48e9aa(0x2f3)](){const _0x3e85b9=_0x48e9aa;this[_0x3e85b9(0x19c)][_0x3e85b9(0x20b)](Li);}[_0x48e9aa(0x258)](_0x33a3f9,_0x4ffd89,_0x17cdfb,_0x17f344){const _0xe25e57=_0x48e9aa;return[{'label':'docs-shape-ui.openPanel','index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x33a3f9,'subUnitId':_0x4ffd89,'drawingId':_0x17cdfb},'disable':_0x17f344===_0x4a830a[_0xe25e57(0x30a)]},{'label':_0xe25e57(0x190),'index':0x1,'commandId':_0x319dc1['id'],'commandParams':{'unitId':_0x33a3f9,'drawings':[{'unitId':_0x33a3f9,'subUnitId':_0x4ffd89,'drawingId':_0x17cdfb}]},'disable':!0x1},{'label':_0xe25e57(0x1bf),'index':0x2,'commandId':Bi['id'],'commandParams':{'unitId':_0x33a3f9,'subUnitId':_0x4ffd89,'drawingId':_0x17cdfb},'disable':!0x1}];}[_0x48e9aa(0x2e5)](_0x252e7a,_0xf6a61b,_0x105e00){const _0x2e797f=_0x48e9aa;let _0x4eb84e=this[_0x2e797f(0x2dd)]['getShapeTypeById'](_0x252e7a,_0xf6a61b,_0x105e00),_0x3e6086=this[_0x2e797f(0x2dd)][_0x2e797f(0x1bb)](_0x252e7a,_0xf6a61b,_0x105e00);return _0x4eb84e!==void 0x0&&_0x3e6086!==void 0x0?{'shapeData':_0x3e6086,'shapeId':_0x105e00,'shapeType':_0x4eb84e,'unitId':_0x252e7a,'subUnitId':_0xf6a61b,'version':this[_0x2e797f(0x1b1)],'disableShapeOption':!0x1}:null;}[_0x48e9aa(0x234)](_0x16dd9b,_0x1e25d9=!0x1){const _0x2b0dd1=_0x48e9aa;if(_0x16dd9b==null){[...this[_0x2b0dd1(0x322)][_0x2b0dd1(0x30d)]()][_0x2b0dd1(0x15d)](_0x5a6924=>this['_clearPopups'](_0x5a6924,_0x1e25d9));return;}let _0x2a0927=this['_disposePopupsByUnit'][_0x2b0dd1(0x2b4)](_0x16dd9b);if(_0x2a0927){for(let _0x310627=_0x2a0927[_0x2b0dd1(0x321)]-0x1;_0x310627>=0x0;--_0x310627){let _0x3ca6c5=_0x2a0927[_0x310627];(_0x1e25d9||_0x3ca6c5[_0x2b0dd1(0x2a9)]())&&(_0x3ca6c5['dispose'](),_0x2a0927[_0x2b0dd1(0x248)](_0x310627,0x1));}_0x2a0927[_0x2b0dd1(0x321)]===0x0&&(this[_0x2b0dd1(0x322)][_0x2b0dd1(0x1b7)](_0x16dd9b),this[_0x2b0dd1(0x3ad)][_0x2b0dd1(0x1b7)](_0x16dd9b));}}[_0x48e9aa(0x154)](_0x5580a8){const _0x6165cc=_0x48e9aa;let _0x2cd45b=this['_disposePopupsByUnit']['get'](_0x5580a8);if(_0x2cd45b)return _0x2cd45b;let _0x376900=[];return this[_0x6165cc(0x322)]['set'](_0x5580a8,_0x376900),_0x376900;}['_popupMenuListener'](_0x401dfd){const _0x1be4c7=_0x48e9aa;var _0x358492;let _0x2de1d5=new _0x3ef51c(),_0x13889c=(_0x358492=this[_0x1be4c7(0x323)][_0x1be4c7(0x167)](_0x42988e[_0x1be4c7(0x237)])[_0x1be4c7(0x349)](_0x4fb337=>_0x4fb337['scene'][_0x1be4c7(0x38e)]()===_0x401dfd))==null?void 0x0:_0x358492[_0x1be4c7(0x225)];return _0x13889c&&(_0x2de1d5[_0x1be4c7(0x164)](_0x401dfd[_0x1be4c7(0x1f5)][_0x1be4c7(0x33b)](()=>this[_0x1be4c7(0x1ff)](_0x401dfd,_0x13889c))),_0x2de1d5[_0x1be4c7(0x164)](_0x401dfd[_0x1be4c7(0x1ed)][_0x1be4c7(0x33b)](()=>{const _0x30d41c=_0x1be4c7;this[_0x30d41c(0x234)](_0x13889c),queueMicrotask(()=>{const _0x2be713=_0x30d41c;_0x401dfd[_0x2be713(0x284)]()[_0x2be713(0x236)]>0x0||!this[_0x2be713(0x257)][_0x2be713(0x2e8)]()[_0x2be713(0x2f7)](_0xfa15a7=>_0xfa15a7[_0x2be713(0x225)]===_0x13889c)||(this[_0x2be713(0x38a)][_0x2be713(0x33e)](_0x5afdc7,!0x1),this[_0x2be713(0x257)][_0x2be713(0x2fa)](null));});})),_0x2de1d5[_0x1be4c7(0x164)](_0x401dfd['changing$'][_0x1be4c7(0x33b)](()=>{const _0x7d25dd=_0x1be4c7;this[_0x7d25dd(0x234)](_0x13889c,!0x0);}))),_0x2de1d5;}['_handleCreateControl'](_0x2d02dd,_0x386510){const _0x44cc04=_0x48e9aa;let _0x176855=_0x2d02dd[_0x44cc04(0x284)]();if(this[_0x44cc04(0x1c1)]){this[_0x44cc04(0x234)](_0x386510,!0x0);return;}if(_0x176855[_0x44cc04(0x236)]>0x1){this[_0x44cc04(0x234)](_0x386510);return;}let _0x38a3fe=_0x176855[_0x44cc04(0x312)]()[_0x44cc04(0x217)]()['value'];if(!_0x38a3fe){this[_0x44cc04(0x234)](_0x386510);return;}let _0x2801f3=this[_0x44cc04(0x257)][_0x44cc04(0x2ac)](_0x38a3fe[_0x44cc04(0x2b0)]);if(!_0x2801f3||_0x2801f3[_0x44cc04(0x1f4)]!==_0x4a830a[_0x44cc04(0x242)]){this[_0x44cc04(0x234)](_0x386510);return;}let {unitId:_0x2c803c,subUnitId:_0x393093,drawingId:_0x352e9d,drawingType:_0x1d8dc6}=_0x2801f3;if(!this[_0x44cc04(0x277)](_0x2c803c,_0x352e9d)){this[_0x44cc04(0x234)](_0x386510,!0x0);return;}let _0x2cf8e9=this[_0x44cc04(0x2e5)](_0x2c803c,_0x393093,_0x352e9d);if(!_0x2cf8e9){this['_clearPopups'](_0x386510);return;}let _0x3a75dc=this[_0x44cc04(0x322)]['get'](_0x386510),_0x35856c=_0x2c803c+':'+_0x393093+':'+_0x352e9d;if(this['_popupTargetKeys'][_0x44cc04(0x2b4)](_0x386510)===_0x35856c&&_0x3a75dc&&_0x3a75dc[_0x44cc04(0x321)]>0x0)return;this[_0x44cc04(0x234)](_0x386510);let _0x1be477=this['_renderManagerService']['getRenderUnitById'](_0x2c803c),_0x398c63=((_0x1be477==null?void 0x0:_0x1be477[_0x44cc04(0x368)])===!0x1?_0x1be477[_0x44cc04(0x33d)](_0x424f17):this['_docCanvasPopManagerService'])['attachPopupToObject'](_0x38a3fe,this['_getShapePopup'](_0x2cf8e9,_0x1d8dc6),_0x2c803c);this['disposeWithMe'](_0x398c63),this['_getDisposePopups'](_0x386510)['push'](_0x398c63),this[_0x44cc04(0x3ad)][_0x44cc04(0x26f)](_0x386510,_0x35856c),this[_0x44cc04(0x257)]['getFocusDrawings']()[_0x44cc04(0x2f7)](_0x2a8b48=>_0x2a8b48[_0x44cc04(0x225)]===_0x2c803c&&_0x2a8b48['subUnitId']===_0x393093&&_0x2a8b48[_0x44cc04(0x1d7)]===_0x352e9d)||this[_0x44cc04(0x257)][_0x44cc04(0x2fa)]([{'unitId':_0x2c803c,'subUnitId':_0x393093,'drawingId':_0x352e9d}]);}['_getShapePopup'](_0x216f95,_0x561e91){const _0x59d254=_0x48e9aa;return{'componentKey':da,'requiresStableLayout':!0x1,'direction':_0x59d254(0x169),'offset':[0x0,_0x2fff3d],'extraProps':{'unitId':_0x216f95[_0x59d254(0x225)],'subUnitId':_0x216f95[_0x59d254(0x2e7)],'drawingId':_0x216f95[_0x59d254(0x3b3)],'drawingType':_0x561e91,'shapeType':_0x216f95[_0x59d254(0x307)],'shapeData':_0x216f95[_0x59d254(0x149)]}};}['_canEditShape'](_0x1204e0,_0x5b4380){const _0x3a91a6=_0x48e9aa;let _0x292a06=this[_0x3a91a6(0x399)][_0x3a91a6(0x2db)](_0x1204e0,_0x42988e[_0x3a91a6(0x237)]);if(!_0x292a06)return!0x1;let _0x227291=_0x59cb02(_0x292a06,_0x5b4380);return _0x409214(this[_0x3a91a6(0x219)],_0x1204e0,[..._0x15f270(_0x292a06,_0x227291,_0x3a91a6(0x280),_0x5b4380),_0x4ffa0c(_0x227291,'drawing',_0x5b4380)]);}[_0x48e9aa(0x266)](){const _0x568e03=_0x48e9aa;this[_0x568e03(0x166)](this[_0x568e03(0x27e)]['onCommandExecuted'](_0x258680=>{const _0x2af2ea=_0x568e03;if(_0x258680['id']===G['id']){let {unitId:_0x3949b9,subUnitId:_0x393c57,drawingId:_0x235896}=_0x258680['params'];this[_0x2af2ea(0x1b1)]+=0x1,this[_0x2af2ea(0x18c)]=this[_0x2af2ea(0x2e5)](_0x3949b9,_0x393c57,_0x235896),this['_clearPopups'](void 0x0,!0x0),this[_0x2af2ea(0x22c)]();}if(_0x258680['id']===Bi['id']&&(this[_0x2af2ea(0x18c)]=null,this[_0x2af2ea(0x3a9)]()),_0x258680['id']===_0x1a7d3e['id']){let {unitId:_0x408e7e,shapeId:_0x5ac554}=_0x258680['params'];if(this[_0x2af2ea(0x18c)]&&this[_0x2af2ea(0x18c)][_0x2af2ea(0x3b3)]===_0x5ac554){let _0x3764ad=this[_0x2af2ea(0x2e5)](_0x408e7e,this['_activeShapeInfo'][_0x2af2ea(0x2e7)],_0x5ac554);_0x3764ad&&(this['_shapeEditPanelVersion']+=0x1,_0x3764ad['version']=this[_0x2af2ea(0x1b1)],this['_activeShapeInfo']=_0x3764ad,this['_isOpenedShapeEditPanel']&&this['_openShapeEditPanel']());}}})),this[_0x568e03(0x166)](this[_0x568e03(0x257)][_0x568e03(0x247)]['subscribe'](_0x4657f3=>{const _0x5726eb=_0x568e03;if(this[_0x5726eb(0x1c1)]===!0x1)return;if(_0x4657f3[_0x5726eb(0x321)]===0x0){this[_0x5726eb(0x18c)]=null,this[_0x5726eb(0x3a9)]();return;}if(_0x4657f3[_0x5726eb(0x321)]===0x1&&_0x4657f3[0x0]['drawingType']===_0x4a830a[_0x5726eb(0x242)]&&(this['_shapeEditPanelVersion']+=0x1,this[_0x5726eb(0x18c)]=this[_0x5726eb(0x2e5)](_0x4657f3[0x0][_0x5726eb(0x225)],_0x4657f3[0x0][_0x5726eb(0x2e7)],_0x4657f3[0x0][_0x5726eb(0x1d7)]),this[_0x5726eb(0x18c)])){this[_0x5726eb(0x22c)]();return;}let _0x1aef29=_0x4657f3[_0x5726eb(0x29f)](_0x46dce5=>_0x46dce5[_0x5726eb(0x1f4)]===_0x4a830a[_0x5726eb(0x242)]);if(_0x4657f3['length']>0x1&&_0x1aef29[_0x5726eb(0x321)]===_0x4657f3['length']){if(this[_0x5726eb(0x1b1)]+=0x1,this[_0x5726eb(0x18c)]=this[_0x5726eb(0x2e5)](_0x4657f3[0x0][_0x5726eb(0x225)],_0x4657f3[0x0]['subUnitId'],_0x4657f3[0x0][_0x5726eb(0x1d7)]),this[_0x5726eb(0x18c)]){this[_0x5726eb(0x22c)]();return;}}else{if(this[_0x5726eb(0x1b1)]+=0x1,this[_0x5726eb(0x18c)]=this['_getShapeInfo'](_0x4657f3[0x0][_0x5726eb(0x225)],_0x4657f3[0x0][_0x5726eb(0x2e7)],_0x4657f3[0x0][_0x5726eb(0x1d7)]),this[_0x5726eb(0x18c)]){this[_0x5726eb(0x18c)][_0x5726eb(0x336)]=!0x0,this[_0x5726eb(0x22c)]();return;}}this['_closeShapeEditPanel']();}));}['_openShapeEditPanel'](){const _0x516435=_0x48e9aa;this[_0x516435(0x18c)]&&(this[_0x516435(0x17b)]=this['_sidebarService'][_0x516435(0x378)]({'id':W,'header':{'title':this[_0x516435(0x14a)]['t'](_0x516435(0x189))},'width':0x184,'children':{'label':W,...this[_0x516435(0x18c)]},'onClose':()=>{const _0x20d96f=_0x516435;this[_0x20d96f(0x257)]['focusDrawing'](null),this[_0x20d96f(0x38a)]['setContextValue'](_0x5afdc7,!0x1),this[_0x20d96f(0x17b)]=null;}}),this[_0x516435(0x1c1)]=!0x0);}[_0x48e9aa(0x3a9)](){const _0x4bceda=_0x48e9aa;this[_0x4bceda(0x1c1)]=!0x1,this[_0x4bceda(0x347)][_0x4bceda(0x2d0)](W),this[_0x4bceda(0x17b)]=null,this[_0x4bceda(0x38a)][_0x4bceda(0x33e)](_0x5afdc7,!0x1),this[_0x4bceda(0x257)][_0x4bceda(0x2fa)](null);}};Ma=q([K(0x0,_0x3d68d4),K(0x1,_0x279b1a(_0x4e2095)),K(0x2,_0x4fa574),K(0x3,_0x279b1a(_0x5b7f91)),K(0x4,_0x279b1a(_0x35ebd3)),K(0x5,_0x1310fd),K(0x6,_0x5eaac6),K(0x7,_0x279b1a(_0x424f17)),K(0x8,_0xa0de3a),K(0x9,_0x3d8672),K(0xa,_0x279b1a(X)),K(0xb,_0x558aa1)],Ma);let Na=class extends _0x5207f2{constructor(_0x599ba3,_0x5507f7){const _0x4adc5f=_0x48e9aa;super(),this[_0x4adc5f(0x2dd)]=_0x599ba3,this[_0x4adc5f(0x14a)]=_0x5507f7,this[_0x4adc5f(0x166)](_0x1fb9e7(_0x592a76((_0x3e471d,_0x184806,_0x4907ce)=>this[_0x4adc5f(0x1b8)](_0x3e471d,_0x184806,_0x4907ce))));}['_measure'](_0x40c7ca,_0x33c616,_0x188529){const _0xd9d6dc=_0x48e9aa;let _0x394a1f=this[_0xd9d6dc(0x2dd)][_0xd9d6dc(0x31a)](_0x40c7ca,_0x33c616);if(!_0x394a1f)return null;let _0x133666=_0x394a1f[_0xd9d6dc(0x1ee)](),_0x43168c=_0x435457(_0x133666),_0x50283e=_0x133666['shapeText'];if(!_0x50283e||_0x43168c[_0xd9d6dc(0x240)]!==_0x3fb06d[_0xd9d6dc(0x16f)])return null;let _0x2e3c4b=_0x188529[_0xd9d6dc(0x3ba)],_0x2d065f=_0x188529[_0xd9d6dc(0x1e2)];_0x394a1f['updateContext']({'width':_0x2e3c4b,'height':_0x2d065f});let _0x30d2b6=_0x394a1f[_0xd9d6dc(0x262)]({'left':0x0,'top':0x0,'width':_0x2e3c4b,'height':_0x2d065f}),_0xdeed48=_0xe2a736(_0xd9d6dc(0x365)in _0x50283e?_0x50283e[_0xd9d6dc(0x365)]:void 0x0),_0x210d3e=(_0xdeed48==null?void 0x0:_0xdeed48[_0xd9d6dc(0x333)])??(_0xd9d6dc(0x36a)in _0x50283e?_0x208a3c(_0x50283e,_0x33c616+_0xd9d6dc(0x3af)):null);if(!_0x210d3e)return null;let _0x547263=_0x4d25f2({'documentData':_0x210d3e,'height':_0x2d065f,'shapeData':_0x133666,'textRect':_0x30d2b6,'width':_0x2e3c4b,'widthBuffer':0x0});_0x547263&&({width:_0x2e3c4b,height:_0x2d065f}=_0x547263,_0x394a1f['updateContext']({'width':_0x2e3c4b,'height':_0x2d065f}),_0x30d2b6=_0x394a1f[_0xd9d6dc(0x262)]({'left':0x0,'top':0x0,'width':_0x2e3c4b,'height':_0x2d065f}));let _0x4d26ad=_0x50283e[_0xd9d6dc(0x340)]!==!0x1,_0x39ac54=_0x59d1e9(_0x210d3e,{'isHorizontal':_0x4d26ad,'textRect':_0x30d2b6,'verticalAlign':_0xdeed48==null?void 0x0:_0xdeed48['va'],'horizontalAlign':_0xdeed48==null?void 0x0:_0xdeed48['ha'],'wrapStrategy':_0x47e60a(_0x133666)}),_0xc82b83=new _0x1c9d0c(_0x39ac54),_0x4d6dd3=new _0xa9a5bb(_0xc82b83),_0x4afef5=_0x427213[_0xd9d6dc(0x2ff)](_0x4d6dd3,this['_localeService']);try{var _0x3339ee,_0x203ea8;_0x4afef5[_0xd9d6dc(0x1a5)]();let _0x37642e=((_0x3339ee=_0x4afef5[_0xd9d6dc(0x180)]())==null?void 0x0:_0x3339ee['pages'])??[],_0x524571=_0x37642e[_0x37642e[_0xd9d6dc(0x321)]-0x1],_0x345fc8=_0x524571?Math[_0xd9d6dc(0x3ab)](0x0,((_0x203ea8=_0xa9e3f2(_0x524571))==null?void 0x0:_0x203ea8[_0xd9d6dc(0x278)])??0x0):0x0,_0x48d9d5=_0x4afef5['getActualSize']()[_0xd9d6dc(0x24e)]+_0x345fc8-(_0x4d26ad?_0x30d2b6[_0xd9d6dc(0x361)]:_0x30d2b6[_0xd9d6dc(0x2be)]);return Number[_0xd9d6dc(0x3ae)](_0x48d9d5)?_0x4d26ad?{'width':_0x2e3c4b,'height':Math[_0xd9d6dc(0x3ab)](0x1,_0x2d065f+_0x48d9d5)}:{'width':Math[_0xd9d6dc(0x3ab)](0x1,_0x2e3c4b+_0x48d9d5),'height':_0x2d065f}:null;}finally{_0x4afef5[_0xd9d6dc(0x334)](),_0x4d6dd3['dispose'](),_0xc82b83['dispose']();}}};Na=q([K(0x0,_0x279b1a(_0x5b7f91)),K(0x1,_0x279b1a(_0x35ebd3))],Na);let $=class extends _0x1c21ad{constructor(_0x364c6a=Hi,_0x4c7a39,_0x21f783,_0x52d955,_0x1b164b){const _0x5566b9=_0x48e9aa;super(),this['_config']=_0x364c6a,this['_injector']=_0x4c7a39,this[_0x5566b9(0x27e)]=_0x21f783,this[_0x5566b9(0x358)]=_0x52d955,this[_0x5566b9(0x323)]=_0x1b164b;let {menu:_0x55ce00,..._0x2d2762}=_0x448683({},Hi,this[_0x5566b9(0x300)]);_0x55ce00&&this[_0x5566b9(0x358)]['setConfig']('menu',_0x55ce00,{'merge':!0x0}),this['_configService'][_0x5566b9(0x186)](Vi,_0x2d2762),this[_0x5566b9(0x231)]();}[_0x48e9aa(0x1d5)](){const _0x476aa1=_0x48e9aa;_0x496b90(this[_0x476aa1(0x1c2)],this['_getDependencies']()),this[_0x476aa1(0x1c2)][_0x476aa1(0x2b4)](wa),this[_0x476aa1(0x150)]();}[_0x48e9aa(0x1b2)](){return[[wa],[Ma],[Ca],[Z],[Xi],[Ji],[Ir],[aa],[Na],[X],[Sa]];}['onReady'](){const _0xc478b5=_0x48e9aa;this[_0xc478b5(0x1c8)]()[_0xc478b5(0x15d)](_0x1e728d=>{const _0x10e651=_0xc478b5;this[_0x10e651(0x166)](this['_renderManagerService'][_0x10e651(0x2b5)](_0x42988e[_0x10e651(0x237)],_0x1e728d));}),_0x43ee11(this[_0xc478b5(0x1c2)],[[Ma],[Ca],[Z],[Xi],[Ir],[aa],[Na],[X],[Sa]]);}['_getRenderModules'](){return[[Ji],[ka],[ja],[Ta]];}['onRendered'](){const _0x54acf5=_0x48e9aa;this[_0x54acf5(0x166)](this[_0x54acf5(0x323)][_0x54acf5(0x2b5)](_0x42988e[_0x54acf5(0x237)],[Aa]));}[_0x48e9aa(0x231)](){const _0x314abf=_0x48e9aa;[U,Bi,G,Mr,Pr,Fr][_0x314abf(0x15d)](_0x1bccaf=>this[_0x314abf(0x166)](this[_0x314abf(0x27e)][_0x314abf(0x211)](_0x1bccaf)));}[_0x48e9aa(0x150)](){const _0x557d8e=_0x48e9aa;let _0x4afbe7=this[_0x557d8e(0x1c2)],_0x7fe571=_0x4afbe7[_0x557d8e(0x2b4)](_0x320a32);this[_0x557d8e(0x166)](_0x7fe571[_0x557d8e(0x165)](_0x44e860['CONTENT'],()=>_0x3dfa13(va,_0x4afbe7)));}};J($,'type',_0x42988e['UNIVER_DOC']),J($,_0x48e9aa(0x28d),_0x48e9aa(0x1af)),J($,'packageName',Ri),J($,_0x48e9aa(0x228),zi),$=q([_0x2b96d8(_0x5554a3,_0x52bbc7,_0x20b1c6,_0x284947,_0x428570,_0x5f3cbc,_0x57eb8b,_0x38b1bc,_0x2bf01c,_0x3aa104),K(0x1,_0x279b1a(_0x2c78fa)),K(0x2,_0x1310fd),K(0x3,_0x3c23ad),K(0x4,_0xa0de3a)],$);export{Li as DocsShapeUIMenuSchema,Q as UniverDocsShapeMobileUIPlugin,$ as UniverDocsShapeUIPlugin};
|