@univerjs-pro/sheets-shape-ui 1.4.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/sheet-shape-clipboard.controller.d.ts +8 -3
- package/lib/types/controllers/sheet-shape-render.controller.d.ts +1 -0
- package/lib/types/controllers/sheets-shape-ui-permission.controller.d.ts +3 -2
- 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 _0x291e41=_0x7c09;(function(_0xa37de,_0x2ad923){const _0x50cf95=_0x7c09,_0x302b64=_0xa37de();while(!![]){try{const _0x5d7dc9=-parseInt(_0x50cf95(0x434))/0x1*(-parseInt(_0x50cf95(0x378))/0x2)+parseInt(_0x50cf95(0x36b))/0x3+-parseInt(_0x50cf95(0x231))/0x4*(-parseInt(_0x50cf95(0x3e2))/0x5)+-parseInt(_0x50cf95(0x40b))/0x6*(parseInt(_0x50cf95(0x3df))/0x7)+-parseInt(_0x50cf95(0x310))/0x8+-parseInt(_0x50cf95(0x2fc))/0x9+-parseInt(_0x50cf95(0x425))/0xa*(-parseInt(_0x50cf95(0x420))/0xb);if(_0x5d7dc9===_0x2ad923)break;else _0x302b64['push'](_0x302b64['shift']());}catch(_0x2612c1){_0x302b64['push'](_0x302b64['shift']());}}}(_0x5720,0x2b1d1));import{FormulaShapeAnimationController as _0x557362,MobileShapeEditorService as _0xdd7ac8,SHAPE_CHANGE_PICKER_COMPONENT as _0x527a50,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x806650,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0xf7ed1d,ShapeEditPanel as _0x36eeae,ShapeFloatingToolbar as _0x46cdc2,ShapeFloatingToolbarService as _0x5014c7,ShapeFloatingToolbarToggleFactory as _0x219f54,ShapeFormulaRibbonControl as _0x423781,ShapeGroupEnum as _0x1888fe,ShapePickerDropdown as _0x908982,ShapePickerPanel as _0x278d3,ShapeQuickStyleGallery as _0x125dd1,ShapeStyleRibbonControl as _0xf453d4,ShapeTextEditorContainer as _0xde71ea,ShapeTextFloatMenuRenderControllerBase as _0x34370e,ShapeTextFloatToolbar as _0x39f31b,ShapeTextHyperLinkHoverController as _0x164e04,ShapeTextHyperLinkInfo as _0x499c50,ShapeTextHyperLinkPopupService as _0xaf604c,ShapeTextRibbonControl as _0x28730a,ToggleShapeFloatingToolbarOperation as _0x4895c1,UniverShapeEditorMobileUIPlugin as _0x321a7b,UniverShapeEditorUIPlugin as _0x4cb8bb,activateDrawingObject as _0x390dd1,bindRenderTransformerLifecycle as _0x5695f5,buildShapeTextDataUpdate as _0x7848a,clearActiveDrawingObjects as _0x333af8,createShapeTextHyperLinkRegions as _0x43e03f,drawFormulaShapeAnimationLayers as _0x5ef902,getDrawingTypeNameKey as _0x2dbe92,getTextModel as _0x191d9a,getTextStyle as _0x35bc62,normalizeShapeTextModel as _0xe7bcff,plainShapeTextToDocumentData as _0x5650b1,prepareShapeTextDocumentData as _0x9ecb98,registerShapeFormatPainter as _0x2f2687,resolveFormulaShapeAutoFitSize as _0x3c23c5,resolveShapeContextualRibbonHostMode as _0x3afe9f,resolveShapeTextDocumentPageHeight as _0x5c59a8,resolveShapeTextDocumentRenderLayout as _0x151902,resolveShapeTextEditorBehaviorShapeData as _0x1ea201,resolveShapeTextEditorWrapStrategy as _0x999a14,resolveShapeTextHyperLinkAt as _0x37d474,resolveShapeTextHyperLinkObject as _0x39a534,shouldAllowShapeTextEditorHostSizeShrink as _0x59f590,shouldClipShapeTextDocument as _0x41dfeb,useFormulaShapeToolbar as _0x3c9bbc}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x5a241f,ContextMenuGroup as _0x5580dd,ContextMenuPosition as _0x42929a,FloatingObjectToolbarPosition as _0x150ddc,FormatPainterSessionService as _0x495908,IMenuManagerService as _0x24215b,IRibbonService as _0x5b1e2e,ISidebarService as _0x31c5f5,IconManager as _0x3844d8,MenuItemType as _0x570be5,MenuManagerPosition as _0x388a30,RibbonInsertGroup as _0x412e51,UndoRedoGroupService as _0x2a1a7d,UniverMobileUIPlugin as _0x227d6b,getMenuHiddenObservable as _0x205c3b,useDependency as _0x42cc68,useObservable as _0x279878}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x57b6f7,ImageSourceTypeEnum as _0x54f00f,ShapeArrowSizeEnum as _0x672a93,ShapeArrowTypeEnum as _0x3aa73d,ShapeDefaultConfig as _0x179988,ShapeFillEnum as _0x2efc4e,ShapeLineTypeEnum as _0xdd541a,ShapeModel as _0xdd4745,ShapeRenderModeEnum as _0x49a3ec,ShapeTypeEnum as _0x206995,computeConnectorRouteLayout as _0x485b2f,getBasicShapeRotateBound as _0x1eb82f,isConnectorShape as _0x5184c7,isCurvedConnectorShape as _0x1105e7,routeConnectorLineShape as _0xf06aa3}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x42a3cf,UniverShapeEditorPlugin as _0x22a2d8,applyQuickStyleToShapeData as _0x28ac21,cloneShapeDataForType as _0x386d13,createShapeFormulaDocument as _0x13ffed,createShapeTextBoxShapeData as _0x412b4d,getShapeQuickStylePreset as _0x33963b,getShapeQuickStyleType as _0x5d10b7,resolveActiveShapeQuickStylePresetId as _0x12b5de}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x2b8b47,InsertSheetsShapeMutation as _0x456c13,RemoveSheetsShapeMutation as _0x5aa689,SetShapeDrawingDataCommand as _0x11a9aa,SheetsShapeService as _0x1e1f0c,ToggleSheetsShapeFlipCommand as _0x47976c,UniverSheetsShapePlugin as _0x50e887,UpdateConnectorRelationCommand as _0x54081a,UpdateLineShapeResizeCommand as _0x9d6709,UpdateSheetsShapeDataMutation as _0x172941}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x10dd10,CommandType as _0x303f65,DependentOn as _0x650ae5,Disposable as _0x557a26,DisposableCollection as _0x39a460,DocumentDataModel as _0x475565,DrawingTypeEnum as _0x40fd85,FOCUSING_COMMON_DRAWINGS as _0x317872,FOCUSING_SHAPE_TEXT_EDITOR as _0x2a4c27,HorizontalAlign as _0xc256c8,ICommandService as _0x54c16f,IConfigService as _0x3dbeab,IContextService as _0x4b3877,IImageIoService as _0x213f29,IPermissionService as _0x1d37e3,IURLImageService as _0x5f21c5,IUndoRedoService as _0x214c77,IUniverInstanceService as _0x44b74c,Inject as _0x5b79b4,Injector as _0x2882bc,LocaleService as _0x13738a,Plugin as _0x1f6119,UniverInstanceType as _0x3c82b9,VerticalAlign as _0x46a67d,createInternalEditorID as _0xe939c,generateRandomId as _0x2eff46,merge as _0x45bd5a,registerDependencies as _0x2cbcdc,toDisposable as _0x53ca46,touchDependencies as _0x125864}from'@univerjs/core';import{CopySheetCommand as _0x4f6b3a,RemoveSheetCommand as _0x20821a,SheetInterceptorService as _0x20504f,SheetPermissionCheckController as _0x277cdb,SheetSkeletonService as _0x4f7695,SheetsSelectionsService as _0x438b0b,UniverSheetsPlugin as _0x4d4740,WorkbookCopyPermission as _0x581335,WorkbookEditablePermission as _0x20b096,WorksheetCopyPermission as _0x499382,WorksheetEditPermission as _0x1ea295,attachRangeWithCoord as _0x170768,discreteRangeToRange as _0x4bd816,getSheetCommandTarget as _0x378f79}from'@univerjs/sheets';import{IDrawingManagerService as _0x28cffc,SetDrawingSelectedOperation as _0x5e3e35,UniverDrawingPlugin as _0x73a66f,getDrawingShapeKeyByDrawingSearch as _0x38d621,getOrCreateDrawingCopyPlan as _0x3e806a}from'@univerjs/drawing';import{CURSOR_TYPE as _0x15231c,Circle as _0x49536a,DRAWING_OBJECT_LAYER_INDEX as _0x10b13b,DocumentSkeleton as _0x41a7bc,DocumentViewModel as _0x114b7f,Documents as _0x231258,IRenderManagerService as _0x1158d5,Image as _0x3e5f8e,RENDER_CLASS_TYPE as _0x142f92,SHEET_VIEWPORT_KEY as _0x8831d0,Shape as _0x156eef,Transform as _0x36d9d2,UniverRenderEnginePlugin as _0x3d4438,Vector2 as _0x45d11b}from'@univerjs/engine-render';import{COPY_TYPE as _0x10a2b5,ISheetClipboardService as _0xa7e024,PREDEFINED_HOOK_NAME as _0x533c9a,SheetCanvasPopManagerService as _0x57fdbe,SheetPrintInterceptorService as _0x344f2a,SheetScrollManagerService as _0xbd2a68,SheetSkeletonManagerService as _0x5635f6,UniverSheetsMobileUIPlugin as _0x1c1c30,UniverSheetsUIPlugin as _0x34cd91,deriveStateFromActiveSheet$ as _0x4cade8,getCurrentRangeDisable$ as _0xa68a8d,getViewportByCell as _0x53677b}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x21d0c1,EMPTY as _0x257bb9,Observable as _0x1486bd,defer as _0x5ccdfe,distinctUntilChanged as _0xfbaf87,map as _0x415b6a,merge as _0x6a7021,of as _0x413c25,startWith as _0x1c299f,switchMap as _0x17931b}from'rxjs';function _0x7c09(_0x4f5958,_0x4e80fc){_0x4f5958=_0x4f5958-0x192;const _0x5720d2=_0x5720();let _0x7c0962=_0x5720d2[_0x4f5958];return _0x7c0962;}import{DrawingCommonPanel as _0x575d51,DrawingImageClipService as _0x252e29,DrawingRenderService as _0x5a0133,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x1b086b,MobileObjectListPanel as _0x570c7a,OBJECT_LIST_FLOATING_SECTION_ID as _0x39a12f,ObjectListPanelBase as _0x43b8f7,UniverDrawingUIPlugin as _0x55e9c6,getCurrentUnitInfo as _0x286bfa,getObjectListPanelSectionIdForDrawingType as _0x4dc94f,insertGroupObject as _0x56c630}from'@univerjs/drawing-ui';import{MobileDropdown as _0xf665f2}from'@univerjs/design';import{Fragment as _0x50afb4,jsx as _0x183ba7,jsxs as _0x21f5b5}from'react/jsx-runtime';import{DrawingApplyType as _0x22a6fe,ISheetDrawingService as _0x17b29e,RemoveSheetDrawingCommand as _0x1c9438,SetDrawingApplyMutation as _0x2db9e2,SetDrawingArrangeCommand as _0x15f547,SetSheetDrawingCommand as _0xb1758f,UniverSheetsDrawingPlugin as _0x470190,transformToAxisAlignPosition as _0x5e3806,transformToDrawingPosition as _0x4f36ef}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x49fb5c}from'@univerjs-pro/license';import{DocInterceptorService as _0x1be28b,DocSelectionManagerService as _0x24fa05,UniverDocsPlugin as _0x5795a7}from'@univerjs/docs';import{DocCanvasPopManagerService as _0xbc2827,DocEventManagerService as _0x2a6447,DocRenderController as _0x2112e8,DocSelectionRenderService as _0x132ceb,UniverDocsUIPlugin as _0x3c117e}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0xf526c,SheetsDrawingGroupCopyPasteController as _0x2c59b9,UniverSheetsDrawingMobileUIPlugin as _0x40f5a7,UniverSheetsDrawingUIPlugin as _0x15f435}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x19c68f,FlipHorizontalIcon as _0x30529a,FlipVerticalIcon as _0xd6996,MoveDownIcon as _0x14ee72,MoveUpIcon as _0xb1af47,ObjectLayersIcon as _0x10ffc5,ShapeFormatSettingIcon as _0x21bdf2,TopmostIcon as _0x384eef}from'@univerjs/icons';import{memo as _0x130daa,useEffect as _0x3b96f0,useMemo as _0x283095,useReducer as _0x2c6db3,useState as _0x339b64}from'react';function Or(_0x53d994,_0x295010){const _0x32218c=_0x7c09;let _0x52f0fa={};for(let _0x1db8a0 of Object['keys'](_0x295010)){let _0x323774=_0x295010[_0x1db8a0],_0x531d61=_0x53d994[_0x1db8a0];_0x52f0fa[_0x1db8a0]=_0x531d61===void 0x0?void 0x0:typeof _0x323774==_0x32218c(0x3d1)&&_0x323774&&!Array['isArray'](_0x323774)&&typeof _0x531d61==_0x32218c(0x3d1)&&_0x531d61&&!Array[_0x32218c(0x382)](_0x531d61)?Or(_0x531d61,_0x323774):_0x531d61;}return _0x52f0fa;}const K={'type':_0x303f65[_0x291e41(0x287)],'id':_0x291e41(0x2d7),'handler':(_0x1c4bc1,_0xe2fc43)=>{const _0x280339=_0x291e41;let _0x4f93d4=_0x1c4bc1['get'](_0x1e1f0c),{unitId:_0x297bf9,subUnitId:_0x3fbcf5,shapeType:_0x9ac6db,shapeId:_0x319f71,shapeData:_0x3fa948,replaceShapeData:_0x9d1a6,oldShapeJSON:_0x512115}=_0xe2fc43;if(!_0x4f93d4[_0x280339(0x32d)](_0x297bf9,_0x3fbcf5,_0x319f71))return!0x1;let _0x207eb6=_0x1c4bc1[_0x280339(0x42c)](_0x54c16f),_0x10e65f=_0x1c4bc1[_0x280339(0x42c)](_0x214c77),{oldShapeType:_0x428c2c,oldShapeData:_0x48eb97={}}=_0x512115,_0x193635=_0x9d1a6?_0x48eb97:Or(_0x48eb97,_0x3fa948||{}),_0x5f27c4={'id':_0x172941['id'],'params':{'unitId':_0x297bf9,'subUnitId':_0x3fbcf5,'shapeId':_0x319f71,'shapeType':_0x9ac6db,'shapeData':_0x3fa948,'replace':_0x9d1a6}},_0x5dd78f={'id':_0x172941['id'],'params':{'unitId':_0x297bf9,'subUnitId':_0x3fbcf5,'shapeId':_0x319f71,'shapeType':_0x428c2c,'shapeData':_0x193635,'replace':_0x9d1a6}};return _0x207eb6['syncExecuteCommand'](_0x5f27c4['id'],_0x5f27c4[_0x280339(0x2b1)])?(_0x10e65f[_0x280339(0x45e)]({'unitID':_0x297bf9,'undoMutations':[_0x5dd78f],'redoMutations':[_0x5f27c4]}),!0x0):!0x1;}};function kr(_0x1abb82,_0x397082,_0x2301f7,_0x4b66a9,_0x35a736,_0x4f4eb4){const _0xc08ab0=_0x291e41;let _0x278c03={'unitId':_0x397082,'subUnitId':_0x2301f7,'shapeId':_0x4b66a9,'shapeData':_0x4f4eb4,'oldShapeJSON':_0x35a736};return _0x1abb82[_0xc08ab0(0x2e1)](K['id'],_0x278c03);}function Ar(_0x4ca433,_0x5f0bf7,_0x195aa8,_0x4f947d,_0x5cdd4b,_0x5f43a1){const _0x31a5d6=_0x291e41;let _0x577f22={'unitId':_0x5f0bf7,'subUnitId':_0x195aa8,'shapeId':_0x4f947d,'shapeData':_0x5f43a1,'oldShapeJSON':_0x5cdd4b};return _0x4ca433[_0x31a5d6(0x2e1)](K['id'],_0x577f22);}function jr(_0x100fdf){'@babel/helpers - typeof';const _0x158095=_0x291e41;return jr=typeof Symbol==_0x158095(0x196)&&typeof Symbol[_0x158095(0x24d)]==_0x158095(0x2e4)?function(_0xcf53a7){return typeof _0xcf53a7;}:function(_0x4358ec){const _0x12ed8f=_0x158095;return _0x4358ec&&typeof Symbol==_0x12ed8f(0x196)&&_0x4358ec['constructor']===Symbol&&_0x4358ec!==Symbol[_0x12ed8f(0x326)]?'symbol':typeof _0x4358ec;},jr(_0x100fdf);}function _0x5720(){const _0x2f6bbf=['shapeText','sheets-shape-ui.config','_sheetPermissionCheckController','unitId','setPrstGeomAdjValues','_handleConnectedEndpointMove','from','panel','isInGroup','rect','name','permissionPointUpdate$','DRAWING','addObject','UNIVER_SHEET','_clearCompletionFrame','sheet.operation.close-sheet-shape-format-panel','_hide','_getShapeInfo','_permissionService','reduce','DEFAULT_PASTE','shape-text-','extraProps','initShapePopupMenu','_updateSrcRectByTransform','clipByShape','_injector','setFallbackVisible','273888XxmTNz','changeStart$','_connectionSiteObjects','getAdjustNames','offsetX','_adjHandlerPointerMove','multiply','_activeShapeInfo','MoveDownIcon','TOP','cos','connection-site-','flatMap','144gKotyX','ShapeIcon','sheets-shape-ui.ribbon.shape-format.arrange-front','computeStraightConnectorLayout','_baseShapeTop','getActualSize','clearControl$','bottom','_cxtHandlerPointerUp','_handleBasicShapeUpdateConnectorLineShape','isArray','_sheetClipboardService','entries','sidebarOptions$','getEndConnectInfo','MEDIA','_imageShapeClipController','sheetTransform','drawWith','transformVector2SceneCoord','sheetViewStartRow','parse','getBentTypeFromPoints','refreshFormulaPresentation','_adjName','_focusedDrawings','ObjectLayersIcon','MoveUpIcon','_univerInstanceService','#1a73e8','SolidFill','default','changeEnd$','calcAdjValues','sheet.shape.floating-toolbar','sheet.operation.open-shape-object-list-panel','FromArray','getImageSourceCache','getTransformerByCreate','_draw','GROUP','setFillImage','getDrawingVisible','shape-editor-ui.arrange.front','_imageIoService','undo','_transform','getRenderUnitById','sheet.shape.object-list.panel','_baseShapeHeight','_transformCalculateSrcRect','getSkeletonParam','fontFamily','shapeData','sin','dataModel','refreshTransform','getShapeTextRect','ShapeFormatSettingIcon','highlighted','_baseTop','engine','doc.image-clip.shape-picker.component','_getSceneAndTransformerByDrawingSearch','_setTransForm','offsetY','_adjHandlerPointerUp','updateDocumentDataMargin','activeSheet$','drawing-ui.objectListPanel.details','_moveConnectorWithShape','fill','filter','startArrow','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','length','targetShapeId','setShapeData','clipTop','_drawSimpleText','_registerOperations','drawing-ui.objectListPanel.typeNames.','getInverseCoord','_handleConnectedEndpointPointerUp','end','map','_props','top','register','object','setOnSavingEditorData','_formulaKey','drawing-ui.objectListPanel.filterHidden','_insertShapes','_registerImageShapeClipDelegate','_isShouldShowDrawingShapeAdjust','editingParams$','setAdjustValueByName','getPermissionPoint','startConnectionDetection','asObservable','adjHandleSize','calculate','22652rjyKYk','isHitLine','shapeType','2395MbGxbB','drawing-ui.objectListPanel.noSelection','Arrow','point','OPERATION','front','getEditing','_clipService','viewportScrollY','getZoomRatio','value','_componentManager','_drawRichText','_sheetDrawingService','onTransformChange$','keys','registerFeatureMenu','values','_registerDrawingFocusChangeHandler','div','setFormulaPresentation','index','restore','unit','beforeCommandExecuted','setEditing','order','isRichText','drawing-ui.objectListPanel.moveForward','_clearConnectionSites','animationEnabled','with','endConnectionDetection','version','localToWorld','getMatrix','viewBound','drawing-ui.objectListPanel.collapse','_sheetsShapeService','setContextValue','sheet.shape.text.float-menu','120zSlPUq','_baseDrawingRect','_configService','getDrawingData','abs','registerRenderModule','getBatchUpdateOp','_handleFreeEndpointMove','objects','getConnectionRelation','close','shapeId','_sheetSkeletonService','isHighlighted','error','_isHighlighted','_getShapeAdjustPointListById','top-center','sheets-shape-ui.flipHorizontal','_activeShapeId','Rect','9295Tnbkpd','_commandExecutedListener','_shapeFormulaService','mergeMenu','disableObjectsEvent','1290PusXSp','_disposePopups','REMOVE','_updateAdjustControlPositions','_sheetBasicShapeConnectionPointController','_addShapeConnectorHandlerObject','presentationChanged$','get','visible','showContextualTab','getImage','_groupCopyPasteController','getSheetId','disposeWithMe','drawing-ui.objectListPanel.close','4690iMZKRY','UNIVER_DOC','_getScrollInfo','getAdjustInfoByName','src','clip','DRAWING_SHAPE','SheetShapeTextEditorContainer','onCommandExecuted','resourceCollector','ancestorTransform','_clearControls','getUnitId','applyPoint','color','adjName','strokeWidth','call','_initPermission','_initSheetChange','_registerComponents','_renderManagerService','rotation','forEach','changeShapeType','defineProperty','sheets-shape-ui.ribbon.shape-format.text-control','getDrawingPoints','getSelectedObjectMap','sheets-shape-ui.ribbon.shape-format.formula-control','contentVerticalOffset','getCurrentUnitOfType','stringify','_attachAdjustEvent','subscribe','sheetViewStartColumn','setConfig','isEditing','_isImagePointerDown','_resetState','clone','width','pushUndoRedo','worldPoints','_activeImageId','doc','_registerGroupFeaturePasteHook','setShouldShowAdjust','function','getVisible','CROSSHAIR','_commandService','drawing-ui.objectListPanel.filterAll','BUTTON','interceptCommand','_sheetPrintInterceptorService','_sheetCanvasPopManagerService','fillImageSource','getShapeDataById','shape-editor-ui.toolbar.quickStyles','_targetShapeId','drawing-ui.objectListPanel.moveBackward','getShapeTypeById','_shapes','_disposed','idMap','sheets-shape-ui.ribbon.shape-format','subscribeEvent','getDrawingOKey','drawing-ui.objectListPanel.showAll','#bcbcbc','_connectorObjects','VIEW_MAIN_LEFT','cxnPointStrokeWidth','_initCommands','cxnPointStroke','_registerMoveHandler','Path','_iconManager','setPresentation','setSrcRect','syncExecuteCommand','sheets-shape-ui.deleteShape','push','sheets-shape-ui.shape-format.text-ribbon-control','adjHandleStroke','sheets-shape-ui.ribbon.shape-format.arrange-back','sheet.operation.open-sheet-shape-format-panel','pluginName','drawing-ui.objectListPanel.lock','skeleton','setCanUseShapeClip','_createShapeAdjustControls','update$','next','#FFFFFF','_updateImageAdjValues','_executeConnectedRouteConnectionCommand','srcRect','getAdjustValueByName','buildClipPath','_initMenu','_drawingAddListener','SHAPE_TEXT','_baseShapeLeft','viewportScrollX','_registerDrawingMoveHandler','_baseHeight','flipY','animateFormulaPresentation','fillImageSourceType','prstGeomAdjValues','_isConnecting','@univerjs-pro/sheets-shape-ui','focus$','_createControls','custom','_shapeId','_shapeFloatingToolbarService','drawingId','_getImageDrawingInfo','_subUnitId','_editingParams$','onSavingEditorData$','FlipVerticalIcon','_sheetShapeAdjustController','find','drawing.operation.set-drawing-active','translate','onPointerDown$','LEFT','getCurrentSkeleton','RIBBON','sheets-shape-ui.objectListPanel.open','getActiveViewportByCoord','drawing-ui.objectListPanel.lockAll','_initPrinting','enableObjectsEvent','sheet.operation.update-shape-type','drawing-ui.objectListPanel.show','scene','_menuManagerService','getFocusDrawings','SELECTOR','sheets-shape-ui.title','sheet.menu.shape.flip-horizontal','vertical-center','getConnectionSiteList','_registerIcons','pick','getObject','_applyFormulaAutoFitSize','addImageSourceCache','completeEditing','isolated','_updateShapeAdjustControls','_localeService','getInterceptPoints','extensionGroups','_generateCopyPasteMutations','computeConnectorResizeLayout','resolveHyperLinkAt','getUnit','drawingType','_rerouteConnectorLine','getConnectorLinePoints','draw','dispose','_reset','_onSavingEditorData$','cancelEditing','_currentConnectionTarget','getCurrentScrollState','drawing-ui.objectListPanel.sectionFloating','permissionCheckWithoutRange','size','style','setPrstGeom','_closeShapeEditPanel','_openShapeEditPanel','canvas','subUnitId','transform','drawing-ui.objectListPanel.expand','visible$','UUID','transformByState','forward','_attachConnectorObjectEvent','stroke','_getConnectPointInfo','onReady','_showConnectionSites','onStarting','clearAdjustControls','_hasReset','axisAlignSheetTransform','PictureFill','drawing-ui.objectListPanel.description','preValue','_generateCutPasteMutations','_activeShapeModel','#4285f4','620WxJwXA','unregister','_shapeRenderController','getContextValue','description','_clearShapeAdjustControls','_init','OTHERS','cxnIndex','_activeShapeAdjustPointList','_sheetDrawingShapeRenderController','render','contentHeight','_activeAdjustInfo','getDrawingOrder','_insertingShapeKeys','text','complete','trim','_formulaShapes','_getZoomRatio','setHighlighted','updateLinePoints','drawing-ui.objectListPanel.lockHint','toPrimitive','_createCopyInfoByRange','delete','pipe','iterator','sheets-shape-ui.flipVertical','run','sheets-shape-ui.editText','getConnectionInfo','SHEET_SHAPE_UI_PLUGIN','includes','updateConnectionDetection','_addShapeAdjustControl','registerClipDelegate','height','getDrawingDataForUnit','BottomIcon','_initEditingParams','resize','_isStartAdjusting','shape-editor-ui.arrange.backward','_findShapeAtPoint','beginPath','_getOrCreateShapeModel','isHit','getCurrentTypeOfUnit$','_urlImageService','_isStartConnectorPoint','sectionFloating','startX','_baseWidth','oKey','open','VIEW_MAIN_TOP','flipX','Large','_getConnectionSiteAngle','composeMatrix','worldRect','_addShapeConnectorHandlerObjects','string','FlipHorizontalIcon','_loadShapePictureFill','onPointerUp$','_shapeEditPanelVersion','resetCursor','packageName','_clearPopups','univer-box-border\x20univer-px-4\x20univer-text-sm','save','sheets-shape-ui.ribbon.shape-format.style-control','_registerFeatureMenu','DRAWING_IMAGE','_calculateFreeEndpointAngle','_drawShapeText','clear','updateShapeFillImage','Medium','_activeTargetShapeId','getRealBound','image-clip-adjust-point-','shapeModel','COMMAND','_visible','_handleFreeEndpointPointerUp','set','popup','type','_config','getDrawingEditable','_findNearestConnectionSite','has','onerror','getObjectIncludeInGroup','makeDirty','sheets-shape-ui.ribbon.shape-format.arrange-backward','formulaBinding','sheets-shape-text-','sheets-shape-ui.objectListPanel.title','getParent','_baseLeft','sheets-shape-ui.editShape','image','_getImagePrstGeom','drawing-ui.objectListPanel.unlockAll','endArrow','_lastEditingShapeKey','angle','clip-adj-','sheets-shape-ui','_drawRichTextLayer','drawing-ui.objectListPanel.dragToReorder','stopPropagation','getFocusedUnit','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','sectionCanvas','clearAdjustValue','_initialize','horizontal','registerCommand','_baseShapeWidth','sheet.operation.open-mobile-shape-editor','sheet.operation.apply-shape-quick-style','refreshAdjustControls','params','removeLinePoints','_handleConnectorPointerUp','getDrawingSearch','_getShapeAdjustInfosById','_initEvents','fillType','localeService','SHEET','getShapeType','_formulaAnimation','_executeConnectionCommand','focusDrawing','startY','_loadAndSetImage','indexOf','_shapeUpdateListener','debounceRefreshControls','getBatchRemoveOp','SolidLine','selectable','componentKey','drawing-ui.objectListPanel.filterLocked','clipHeight','_sheetInterceptorService','_getDrawingRect','relation','sheets-shape-ui.quickStyles','_currentScene','attachTransformerTo','_completionFrame','getValue','getSheetBySheetId','drawing-ui.objectListPanel.locate','_releaseRenderCache','_contextService','translateWithPrecision','shape-editor-ui.arrange.forward','sheet.command.update-shape-data','getSkeleton','getShapeData','_shapePopupMenuDisposable','_ribbonService','createControl$','_activeAdjustPointList','onDblclick$','getPresentation','_executeResizeCommand','executeCommand','addClipboardHook','shapeKey','symbol','canvasElement','isLineShape','sheet.image-clip.shape-picker.component','None','hasDefault','_shapeService','_generatePasteMutations','getState','cxnPointRadius','sheet.shape.edit.panel','invert','backward','UPDATE','changing$','shape-adjust-point-','intercept','isRender','worldPoint','isMainScene','_sidebarService','_executeConnectedRouteResizeCommand','sheets-shape-ui.ribbon.shape-format.arrange-forward','currentAdjustValues','251118xAvfrS','classType','getActiveSheet','_drawingRenderService','_registerFocusChangeHandler','renderDrawingShape','_canEdit','_highlightedSiteIndex','_currentUniverService','data','sheet.menu.shape.flip-vertical','sheets-shape-ui.imagePanel.crop.shape','ang','getStartConnectInfo','fromChangeset','clip-','sheets-shape-format-font-family-menu','attachPopupToObject','_isDrawingShapePointDown','_copyInfo','2744088xaSqHy','getBatchAddOp','getDrawingByParam','getCanvasElement','hidden','vertical','_draggingConnectorId','sheets-shape-ui.permission.editErr','sheets-shape-ui.formatShape','shape-editor-ui.toolbar.changeShape','current','parent','remove$','some','updateContext','_clearShapeConnectorHandlerObjects','updateDocumentStyle','hideContextualTab','add','_sidebarDisposable','prstGeom','drawing-ui.objectListPanel.unlock','prototype','_cxnIndex','PRINTING_COMPONENT_COLLECT','setCursor','getScene','options','setShapeProps','getShapeModel','isHorizontal','_unitId','start','drawing-ui.objectListPanel.nameInput','_isOpenedShapeEditPanel','refreshShapeFillImage','_initSelection','getTransformer','_addControl','left','transformForAngle','drawing-ui.objectListPanel.search','getBasicShapeRelation','_update','cxnPointFill','_shapeTextEditingService','Image','back','getUnitType','shape-editor-ui.arrange.back','adjustValues','_context','_cxtHandlerPointerMove','lineType','_drawingManagerService','INSERT','StraightConnector1','onPointerMove$','_hyperLinkRegions','Line','unsubscribe','redo'];_0x5720=function(){return _0x2f6bbf;};return _0x5720();}function Mr(_0x32c950,_0x3db309){const _0x36587b=_0x291e41;if(jr(_0x32c950)!='object'||!_0x32c950)return _0x32c950;var _0x5a951c=_0x32c950[Symbol[_0x36587b(0x249)]];if(_0x5a951c!==void 0x0){var _0x2ecb60=_0x5a951c[_0x36587b(0x445)](_0x32c950,_0x3db309||_0x36587b(0x397));if(jr(_0x2ecb60)!='object')return _0x2ecb60;throw TypeError(_0x36587b(0x3c2));}return(_0x3db309===_0x36587b(0x271)?String:Number)(_0x32c950);}function Nr(_0x572974){const _0xf5171a=_0x291e41;var _0x4404a4=Mr(_0x572974,_0xf5171a(0x271));return jr(_0x4404a4)=='symbol'?_0x4404a4:_0x4404a4+'';}function q(_0x52a130,_0x57583d,_0x1cd15d){const _0x178820=_0x291e41;return(_0x57583d=Nr(_0x57583d))in _0x52a130?Object[_0x178820(0x44d)](_0x52a130,_0x57583d,{'value':_0x1cd15d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52a130[_0x57583d]=_0x1cd15d,_0x52a130;}function Pr(_0x446ce1,_0xa779ec,_0x6f4264){let _0x4ecb22={..._0xa779ec,'dataModel':{..._0xa779ec['dataModel']??{},..._0x6f4264?{'doc':_0x6f4264}:null}},_0x3a1885=_0x1ea201(_0x446ce1,_0x4ecb22),_0x2862d3=_0x999a14(_0x3a1885);return{'clip':_0x41dfeb(_0x3a1885,_0x2862d3),'wrapStrategy':_0x2862d3};}var J=class extends _0x156eef{constructor(_0x4cdef2,_0x3ae757){const _0xdb93a8=_0x291e41;super(_0x4cdef2,_0x3ae757),q(this,_0xdb93a8(0x34a),[]),q(this,_0xdb93a8(0x3ce),void 0x0),q(this,_0xdb93a8(0x2bb),new _0x557362(()=>this[_0xdb93a8(0x293)](!0x0),()=>this[_0xdb93a8(0x1fd)]())),q(this,'_transformCalculateSrcRect',!0x0),q(this,'_drawingType',_0x40fd85[_0xdb93a8(0x43a)]),q(this,'isDrawingObject',!0x0),this[_0xdb93a8(0x3ce)]={..._0x3ae757},this[_0xdb93a8(0x2bb)][_0xdb93a8(0x1b5)](_0x3ae757['formulaPresentation'],_0x3ae757[_0xdb93a8(0x1d3)]!==!0x1),this[_0xdb93a8(0x237)](),this[_0xdb93a8(0x1fd)]();}[_0x291e41(0x237)](){const _0x456e7=_0x291e41;this[_0x456e7(0x3f0)]['subscribeEvent'](_0x50f043=>{this['_updateSrcRectByTransform'](_0x50f043);});}[_0x291e41(0x217)](_0x2b925f){const _0x3a31a7=_0x291e41;this[_0x3a31a7(0x3ce)][_0x3a31a7(0x324)]=_0x2b925f;}[_0x291e41(0x207)](_0x2a41e4){const _0x4dffbb=_0x291e41;if(this[_0x4dffbb(0x3ce)][_0x4dffbb(0x459)])return null;let _0x4a281e=this[_0x4dffbb(0x3ca)](_0x2a41e4),{width:_0x22fadc,height:_0x16ea03}=this[_0x4dffbb(0x284)]();return _0x37d474(this[_0x4dffbb(0x34a)],{'x':(this[_0x4dffbb(0x26b)]?-_0x4a281e['x']:_0x4a281e['x'])+_0x22fadc/0x2,'y':_0x4a281e['y']+_0x16ea03/0x2});}[_0x291e41(0x3fb)](_0x113554){const _0x11398c=_0x291e41;this['_props'][_0x11398c(0x459)]=_0x113554,this[_0x11398c(0x293)](!0x0);}['setFormulaPresentation'](_0x20d8b1,_0x3aa9fc=!0x0){const _0x21ed05=_0x291e41;this[_0x21ed05(0x2bb)][_0x21ed05(0x1b5)](_0x20d8b1,_0x3aa9fc),this[_0x21ed05(0x3ce)]['formulaPresentation']=_0x20d8b1,this[_0x21ed05(0x1fd)](),this[_0x21ed05(0x293)](!0x0);}[_0x291e41(0x1fd)](){const _0x1578b3=_0x291e41;let _0x4bb40c=this[_0x1578b3(0x3ce)]['shapeModel'],_0x5e33c8=_0x4bb40c['getShapeTextData'](),_0x4c26d7=_0xe7bcff(_0x5e33c8==null?void 0x0:_0x5e33c8['dataModel']),_0x2029dd=_0x4c26d7==null?void 0x0:_0x4c26d7['doc'],_0x44452c=this[_0x1578b3(0x2bb)]['getAutoFitPresentations']();if(!_0x2029dd||_0x44452c[_0x1578b3(0x3c3)]===0x0)return;_0x4bb40c['updateContext']({'width':this[_0x1578b3(0x45d)],'height':this['height']});let _0x4556e4=_0x3c23c5({'documentData':_0x44452c[_0x1578b3(0x3cd)](_0x3a30e8=>_0x13ffed(_0x2029dd,_0x3a30e8)),'height':this['height'],'shapeData':_0x4bb40c[_0x1578b3(0x2d9)](),'textRect':_0x4bb40c[_0x1578b3(0x3b1)]({'left':0x0,'top':0x0,'width':this[_0x1578b3(0x45d)],'height':this['height']}),'width':this[_0x1578b3(0x45d)]});if(_0x4556e4){var _0x54937a;this['resize'](_0x4556e4[_0x1578b3(0x45d)],_0x4556e4[_0x1578b3(0x257)]),(_0x54937a=this[_0x1578b3(0x32a)]())==null||(_0x54937a=_0x54937a[_0x1578b3(0x335)]())==null||_0x54937a[_0x1578b3(0x2c2)]();}}get[_0x291e41(0x351)](){const _0x22373f=_0x291e41;return this[_0x22373f(0x3ce)][_0x22373f(0x351)];}get[_0x291e41(0x21b)](){const _0x30af47=_0x291e41;return this[_0x30af47(0x3ce)][_0x30af47(0x21b)];}[_0x291e41(0x367)](_0x55ff40){const _0xc5d992=_0x291e41;if(this[_0xc5d992(0x3ce)][_0xc5d992(0x1c8)]==null||!this[_0xc5d992(0x3aa)])return;let {width:_0x3914ed,height:_0x6b4f7b}=this,{width:_0x176d9c=0x0,height:_0x55d67c=0x0}=_0x55ff40[_0xc5d992(0x22d)],{left:_0x5e804d=0x0,top:_0x568138=0x0,right:_0x17a3e9=0x0,bottom:_0x4b149=0x0}=this[_0xc5d992(0x3ce)][_0xc5d992(0x1c8)],_0xa967eb=_0x5e804d,_0x54d8c6=_0x568138,_0xe2b005=_0x17a3e9,_0x22b4d8=_0x4b149,_0x39559c=!0x1;if(_0x176d9c!==0x0&&_0x176d9c!==_0x3914ed){let _0x2bc09d=_0x5e804d/_0x176d9c,_0x468b6f=_0x17a3e9/_0x176d9c;_0xa967eb=_0x3914ed*_0x2bc09d,_0xe2b005=_0x3914ed*_0x468b6f,_0x39559c=!0x0;}if(_0x55d67c!==0x0&&_0x55d67c!==_0x6b4f7b){let _0x3e8240=_0x568138/_0x55d67c,_0x393971=_0x4b149/_0x55d67c;_0x54d8c6=_0x6b4f7b*_0x3e8240,_0x22b4d8=_0x6b4f7b*_0x393971,_0x39559c=!0x0;}_0x39559c&&this['setSrcRect']({'left':_0xa967eb,'top':_0x54d8c6,'right':_0xe2b005,'bottom':_0x22b4d8});}[_0x291e41(0x1b6)](_0x4528a6){const _0x51c456=_0x291e41;this[_0x51c456(0x3ce)][_0x51c456(0x1c8)]=_0x4528a6,this[_0x51c456(0x293)](!0x0);}[_0x291e41(0x3a1)](_0x4e5528){const _0x3b2212=_0x291e41;this['_props'][_0x3b2212(0x29b)]=_0x4e5528,this['makeDirty'](!0x0);}set[_0x291e41(0x21c)](_0x3e58ec){const _0x24151a=_0x291e41;this[_0x24151a(0x3a6)]=_0x3e58ec;}get['transform'](){const _0xd68588=_0x291e41;this['_transform']||this[_0xd68588(0x3b8)]();let _0x1dc3c4=this[_0xd68588(0x3a6)][_0xd68588(0x45c)]();return this[_0xd68588(0x338)](_0x1dc3c4);}get['shapeModel'](){const _0x354706=_0x291e41;return this[_0x354706(0x3ce)][_0x354706(0x286)];}get[_0x291e41(0x416)](){const _0x3b1d7c=_0x291e41;return this[_0x3b1d7c(0x3ce)][_0x3b1d7c(0x416)];}get[_0x291e41(0x2fd)](){return _0x142f92['SHAPE'];}[_0x291e41(0x39f)](_0x145b98,_0x3c5cfb,_0x1f5a1f,_0x306879){const _0x384aeb=_0x291e41;let _0x1a5ba4=this[_0x384aeb(0x3ce)][_0x384aeb(0x286)];if(!_0x1a5ba4||!_0x3c5cfb)return;let _0x5104ef=_0x1f5a1f??this[_0x384aeb(0x45d)],_0x56d6be=_0x306879??this[_0x384aeb(0x257)],_0x30005d={'shapeType':_0x1a5ba4[_0x384aeb(0x2ba)](),'width':_0x5104ef,'height':_0x56d6be},_0x2d5c65={'renderMode':_0x49a3ec[_0x384aeb(0x1b3)],'oKey':this[_0x384aeb(0x268)],'image':this['_props']['image'],'angle':this[_0x384aeb(0x2a0)]};_0x1a5ba4[_0x384aeb(0x31e)](_0x30005d),_0x145b98[_0x384aeb(0x27a)]();let _0x5af6a0={'top':0x0,'left':0x0,'width':_0x5104ef,'height':_0x56d6be},_0xd54810=_0x1a5ba4['getDrawingEffectBounds'](_0x5af6a0);_0xd54810?this['_renderWithCache'](_0x145b98,_0xd54810,_0x273594=>{const _0x389865=_0x384aeb;_0x1a5ba4[_0x389865(0x23c)](_0x273594,_0x5af6a0,_0x2d5c65);}):(this[_0x384aeb(0x2d3)](),_0x1a5ba4[_0x384aeb(0x23c)](_0x145b98,_0x5af6a0,_0x2d5c65)),_0x145b98[_0x384aeb(0x3f8)]();let _0x5e3c30=_0x1a5ba4['getShapeTextData'](),_0x1c8c01=_0x1a5ba4[_0x384aeb(0x3b1)](_0x5af6a0),_0xe44692=_0x1a5ba4['isLineShape']();if(_0x5e3c30&&_0x1c8c01&&!_0xe44692){_0x145b98[_0x384aeb(0x27a)](),this[_0x384aeb(0x2ec)]()[_0x384aeb(0x26b)]&&_0x145b98['scale'](-0x1,0x1);let _0xdd9691=_0x5104ef/0x2,_0x20489c=_0x56d6be/0x2;_0x145b98[_0x384aeb(0x1e6)](-_0xdd9691,-_0x20489c),_0x145b98['beginPath'](),this[_0x384aeb(0x27f)](_0x145b98,_0x5e3c30,_0x1c8c01),_0x145b98[_0x384aeb(0x3f8)]();}}[_0x291e41(0x44f)](_0xaca5da){}[_0x291e41(0x27f)](_0x2b2bf3,_0x32f503,_0x210f65){const _0x627d2=_0x291e41;var _0x1785e7;this['_hyperLinkRegions']=[],this['_props']['isEditing']||(!((_0x1785e7=_0x32f503[_0x627d2(0x3af)])!=null&&_0x1785e7[_0x627d2(0x193)])&&_0x627d2(0x3fd)in _0x32f503&&_0x32f503[_0x627d2(0x3fd)]===!0x1?this[_0x627d2(0x3c7)](_0x2b2bf3,_0x32f503,_0x210f65):this[_0x627d2(0x3ee)](_0x2b2bf3,_0x32f503,_0x210f65));}[_0x291e41(0x3c7)](_0x51cea2,_0x2cc8af,_0x5d097a){const _0x329111=_0x291e41;this['_drawRichText'](_0x51cea2,{..._0x2cc8af,'text':_0x2cc8af[_0x329111(0x241)]??'','dataModel':{'doc':_0x5650b1(_0x2cc8af,_0x329111(0x296)+this[_0x329111(0x268)])}},_0x5d097a);}[_0x291e41(0x3ee)](_0x22aacd,_0x586d29,_0x189c93){const _0xa71d8a=_0x291e41;_0x5ef902(_0x22aacd,this[_0xa71d8a(0x2bb)],(_0x57d4b5,_0x887891,_0x29a9d9)=>{const _0xfc961d=_0xa71d8a;this[_0xfc961d(0x2a3)](_0x57d4b5,_0x586d29,_0x189c93,_0x887891,_0x29a9d9===_0xfc961d(0x31a));});}[_0x291e41(0x2a3)](_0x5dc7c5,_0x9575a,_0xe0810d,_0x895bab,_0x4d1692){const _0xb21489=_0x291e41;let _0x31bc8f=this[_0xb21489(0x3ce)][_0xb21489(0x2b8)];if(!_0x9575a['dataModel']||!_0x31bc8f)return;let _0x185c3f=_0xe7bcff(_0x9575a[_0xb21489(0x3af)]);if(!_0x185c3f)return;let _0x2065dc=_0x185c3f[_0xb21489(0x193)];if(!_0x2065dc)return;let _0x56cf4e=_0x13ffed(_0x2065dc,_0x895bab),_0x3e7969=_0x185c3f['va']??_0x46a67d['TOP'],_0x37484e=_0x185c3f['ha']??_0xc256c8[_0xb21489(0x1e8)],_0x2a7c73=Pr(this['_props'][_0xb21489(0x286)]['getShapeData'](),_0x9575a,_0x56cf4e),_0x4b6c78=_0x9575a[_0xb21489(0x32e)],_0x4ff3b2=_0x9ecb98(_0x56cf4e,{'isHorizontal':_0x4b6c78!==!0x1,'textRect':_0xe0810d,'verticalAlign':_0x3e7969,'horizontalAlign':_0x37484e,'wrapStrategy':_0x2a7c73['wrapStrategy']}),_0x42c4fd=new _0x475565(_0x4ff3b2),_0xdb347a=new _0x114b7f(_0x42c4fd),_0x534708=_0x41a7bc['create'](_0xdb347a,_0x31bc8f);_0x534708[_0xb21489(0x3de)]();let _0x247000=_0x534708[_0xb21489(0x37d)]()['actualHeight'],_0x52c0cd=_0x151902({'contentHeight':_0x247000,'verticalAlign':_0x3e7969,'viewportHeight':_0xe0810d[_0xb21489(0x257)]});_0x42c4fd[_0xb21489(0x320)]({'pageSize':{'width':_0x4b6c78===!0x1?_0xe0810d['height']:_0xe0810d[_0xb21489(0x45d)],'height':_0x5c59a8(_0x56cf4e,_0x52c0cd[_0xb21489(0x23d)])}}),_0x42c4fd[_0xb21489(0x3bb)]({'t':_0x52c0cd['marginTop']}),_0x534708['calculate']();let _0x48fda4=new _0x231258(_0xb21489(0x364)+this[_0xb21489(0x268)],_0x534708,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0xb21489(0x293)](!0x0)});_0x48fda4[_0xb21489(0x25b)](_0xe0810d[_0xb21489(0x45d)],_0x52c0cd[_0xb21489(0x23d)]),_0x5dc7c5[_0xb21489(0x27a)](),_0x5dc7c5['translateWithPrecision'](_0xe0810d[_0xb21489(0x337)],_0xe0810d['top']),_0x2a7c73[_0xb21489(0x439)]&&(_0x5dc7c5[_0xb21489(0x25f)](),_0x5dc7c5[_0xb21489(0x357)](0x0,_0x52c0cd[_0xb21489(0x3c6)],_0xe0810d[_0xb21489(0x45d)],_0x52c0cd[_0xb21489(0x2c8)]),_0x5dc7c5['clip']()),_0x52c0cd[_0xb21489(0x452)]&&_0x5dc7c5[_0xb21489(0x2d5)](0x0,_0x52c0cd['contentVerticalOffset']),_0x48fda4[_0xb21489(0x20c)](_0x5dc7c5),_0x4d1692&&(this[_0xb21489(0x34a)]=_0x43e03f(_0x48fda4,{'left':_0xe0810d['left'],'top':_0xe0810d[_0xb21489(0x3cf)]+_0x52c0cd[_0xb21489(0x452)]},_0x2a7c73[_0xb21489(0x439)]?{'left':_0xe0810d[_0xb21489(0x337)],'right':_0xe0810d[_0xb21489(0x337)]+_0xe0810d[_0xb21489(0x45d)],'top':_0xe0810d[_0xb21489(0x3cf)]+_0x52c0cd[_0xb21489(0x3c6)],'bottom':_0xe0810d['top']+_0x52c0cd[_0xb21489(0x3c6)]+_0x52c0cd[_0xb21489(0x2c8)]}:void 0x0)),_0x5dc7c5['restore'](),_0x48fda4['dispose'](),_0x534708[_0xb21489(0x20d)](),_0xdb347a[_0xb21489(0x20d)](),_0x42c4fd[_0xb21489(0x20d)]();}[_0x291e41(0x23c)](_0x354e05,_0x5a62f5,_0x145911=!0x1){const _0x5f54c3=_0x291e41;if(!this[_0x5f54c3(0x42d)])return this[_0x5f54c3(0x293)](!0x1),this;let {width:_0x4bd5c9,height:_0xb438c9,left:_0x5f7fa2,top:_0x5c8f84}=this,_0x365a25=this[_0x5f54c3(0x284)]();if(_0x4bd5c9=_0x365a25[_0x5f54c3(0x45d)],_0xb438c9=_0x365a25[_0x5f54c3(0x257)],_0x5f7fa2=_0x365a25[_0x5f54c3(0x337)],_0x5c8f84=_0x365a25[_0x5f54c3(0x3cf)],this[_0x5f54c3(0x2f5)](_0x5a62f5)){let {top:_0x521593,left:_0x38fe4b,bottom:_0x41b682,right:_0x286de2}=_0x5a62f5[_0x5f54c3(0x406)];if(_0x4bd5c9+this[_0x5f54c3(0x444)]+_0x5f7fa2<_0x38fe4b||_0x286de2<_0x5f7fa2||_0xb438c9+this[_0x5f54c3(0x444)]+_0x5c8f84<_0x521593||_0x41b682<_0x5c8f84)return this;}let _0x229f85=_0x5f7fa2+_0x4bd5c9/0x2,_0x4f07e2=_0x5c8f84+_0xb438c9/0x2,_0x25c74f=this[_0x5f54c3(0x21c)][_0x5f54c3(0x405)]();if(this[_0x5f54c3(0x3ce)][_0x5f54c3(0x459)]){let _0x4c3512=this[_0x5f54c3(0x2ec)](),_0xcd50c3=new _0x36d9d2();_0xcd50c3[_0x5f54c3(0x26e)]({..._0x4c3512}),_0x25c74f=_0xcd50c3[_0x5f54c3(0x405)]();}return _0x354e05[_0x5f54c3(0x27a)](),this[_0x5f54c3(0x3ce)][_0x5f54c3(0x286)]['isRenderLinePointsMode']===!0x0||_0x354e05['transform'](_0x25c74f[0x0],_0x25c74f[0x1],_0x25c74f[0x2],_0x25c74f[0x3],_0x229f85,_0x4f07e2),this[_0x5f54c3(0x39f)](_0x354e05,_0x5a62f5,_0x4bd5c9,_0xb438c9),_0x354e05[_0x5f54c3(0x3f8)](),this[_0x5f54c3(0x293)](!0x1),this;}[_0x291e41(0x3ca)](_0x482d34){const _0x218359=_0x291e41;let {left:_0x29c54f,top:_0x40d377,width:_0x32fc5d,height:_0xa518cd}=this[_0x218359(0x284)](),_0x2f886f=this[_0x218359(0x21c)][_0x218359(0x405)](),_0x1b3819=_0x29c54f+_0x32fc5d/0x2,_0x1acf31=_0x40d377+_0xa518cd/0x2,_0x5b62fb=new _0x36d9d2([_0x2f886f[0x0],_0x2f886f[0x1],_0x2f886f[0x2],_0x2f886f[0x3],_0x1b3819,_0x1acf31]),_0x4526c5=this[_0x218359(0x298)]();return(this['isInGroup']&&(_0x4526c5==null?void 0x0:_0x4526c5[_0x218359(0x2fd)])===_0x142f92[_0x218359(0x3a0)]?_0x4526c5[_0x218359(0x43e)][_0x218359(0x371)](_0x5b62fb):_0x5b62fb)['invert']()[_0x218359(0x441)](_0x482d34);}[_0x291e41(0x261)](_0x14b630){const _0x58ce5a=_0x291e41;let {left:_0x225762,top:_0x4ca083,width:_0x4fc8b5,height:_0x4d9888}=this['getRealBound'](),_0x45368a=_0x225762+_0x4fc8b5/0x2,_0xe2761d=_0x4ca083+_0x4d9888/0x2,_0x5237d4=this[_0x58ce5a(0x21c)][_0x58ce5a(0x405)](),_0x275028=new _0x36d9d2([_0x5237d4[0x0],_0x5237d4[0x1],_0x5237d4[0x2],_0x5237d4[0x3],_0x45368a,_0xe2761d]),_0x11158d=this[_0x58ce5a(0x298)](),_0x49d927=(this[_0x58ce5a(0x356)]&&(_0x11158d==null?void 0x0:_0x11158d['classType'])===_0x142f92[_0x58ce5a(0x3a0)]?_0x11158d['ancestorTransform'][_0x58ce5a(0x371)](_0x275028):_0x275028)[_0x58ce5a(0x2ef)]()['applyPoint'](_0x14b630),_0x3b8876=_0x4fc8b5/0x2,_0x28edfa=_0x4d9888/0x2,_0x48c25f=this['_props']['shapeModel'];return _0x48c25f&&_0x48c25f[_0x58ce5a(0x2e6)]()?_0x48c25f[_0x58ce5a(0x3e0)](_0x49d927['x'],_0x49d927['y'],_0x4fc8b5,_0x4d9888):_0x49d927['x']>=-_0x3b8876-this[_0x58ce5a(0x444)]/0x2&&_0x49d927['x']<=_0x3b8876+this['strokeWidth']/0x2&&_0x49d927['y']>=-_0x28edfa-this[_0x58ce5a(0x444)]/0x2&&_0x49d927['y']<=_0x28edfa+this['strokeWidth']/0x2;}[_0x291e41(0x20d)](){const _0x54e137=_0x291e41;this[_0x54e137(0x2bb)][_0x54e137(0x20d)](),this[_0x54e137(0x3ce)][_0x54e137(0x286)]=null,super[_0x54e137(0x20d)]();}},Fr=class extends _0x156eef{constructor(_0x4af727,_0x8a9340){const _0x1f977e=_0x291e41;super(_0x4af727,_0x8a9340),q(this,_0x1f977e(0x1db),null),q(this,_0x1f977e(0x390),null),q(this,_0x1f977e(0x32f),null),q(this,'_subUnitId',null),_0x8a9340&&this['setShapeProps'](_0x8a9340);}['getDrawingSearch'](){const _0x89f6b5=_0x291e41;return{'unitId':this[_0x89f6b5(0x32f)],'subUnitId':this['_subUnitId'],'drawingId':this['_shapeId']};}[_0x291e41(0x32c)](_0x241a41){const _0x543c9a=_0x291e41;_0x241a41[_0x543c9a(0x416)]!==void 0x0&&(this[_0x543c9a(0x1db)]=_0x241a41[_0x543c9a(0x416)]),_0x241a41[_0x543c9a(0x443)]!==void 0x0&&(this[_0x543c9a(0x390)]=_0x241a41['adjName']),_0x241a41['unitId']!==void 0x0&&(this[_0x543c9a(0x32f)]=_0x241a41[_0x543c9a(0x351)]),_0x241a41[_0x543c9a(0x21b)]!==void 0x0&&(this['_subUnitId']=_0x241a41[_0x543c9a(0x21b)]),this[_0x543c9a(0x220)]({'width':_0x241a41[_0x543c9a(0x45d)],'height':_0x241a41[_0x543c9a(0x257)]});}['_draw'](_0x1afcf9){const _0x3cb15f=_0x291e41;_0x49536a[_0x3cb15f(0x38a)](_0x1afcf9,{'radius':_0x179988[_0x3cb15f(0x3dd)],'fill':_0x179988['adjHandleFill'],'stroke':_0x179988[_0x3cb15f(0x1bb)],'strokeWidth':0x1,'evented':!0x0});}};function Y(_0xfa8d1d,_0x350e8b){return function(_0x51b760,_0x25b76f){_0x350e8b(_0x51b760,_0x25b76f,_0xfa8d1d);};}function X(_0x32914f,_0x2776a6,_0x2974c6,_0x1dcdc5){const _0x171410=_0x291e41;var _0x3dc134=arguments['length'],_0x1be6a3=_0x3dc134<0x3?_0x2776a6:_0x1dcdc5===null?_0x1dcdc5=Object['getOwnPropertyDescriptor'](_0x2776a6,_0x2974c6):_0x1dcdc5,_0x211b14;if(typeof Reflect==_0x171410(0x3d1)&&typeof Reflect['decorate']==_0x171410(0x196))_0x1be6a3=Reflect['decorate'](_0x32914f,_0x2776a6,_0x2974c6,_0x1dcdc5);else{for(var _0x813dfe=_0x32914f[_0x171410(0x3c3)]-0x1;_0x813dfe>=0x0;_0x813dfe--)(_0x211b14=_0x32914f[_0x813dfe])&&(_0x1be6a3=(_0x3dc134<0x3?_0x211b14(_0x1be6a3):_0x3dc134>0x3?_0x211b14(_0x2776a6,_0x2974c6,_0x1be6a3):_0x211b14(_0x2776a6,_0x2974c6))||_0x1be6a3);}return _0x3dc134>0x3&&_0x1be6a3&&Object[_0x171410(0x44d)](_0x2776a6,_0x2974c6,_0x1be6a3),_0x1be6a3;}let Z=class extends _0x557a26{constructor(_0x2e511a,_0x3a97f6,_0x24023e,_0x1afe95,_0x342df1,_0x1725cf){const _0x3004da=_0x291e41;super(),this[_0x3004da(0x346)]=_0x2e511a,this[_0x3004da(0x408)]=_0x3a97f6,this[_0x3004da(0x202)]=_0x24023e,this[_0x3004da(0x3a4)]=_0x1afe95,this[_0x3004da(0x263)]=_0x342df1,this[_0x3004da(0x422)]=_0x1725cf,q(this,_0x3004da(0x244),new Map()),this[_0x3004da(0x432)](this[_0x3004da(0x422)][_0x3004da(0x42b)][_0x3004da(0x456)](_0x3e6c66=>{const _0x4e97a7=_0x3004da;var _0xc65ac3;(_0xc65ac3=this[_0x4e97a7(0x244)][_0x4e97a7(0x42c)](this[_0x4e97a7(0x3d3)](_0x3e6c66[_0x4e97a7(0x351)],_0x3e6c66[_0x4e97a7(0x21b)],_0x3e6c66['shapeId'])))==null||_0xc65ac3[_0x4e97a7(0x44b)](_0x5aef32=>_0x5aef32['setFormulaPresentation'](_0x3e6c66['presentation'],_0x3e6c66['animationEnabled']));})),this[_0x3004da(0x432)](this['_drawingManagerService'][_0x3004da(0x31c)][_0x3004da(0x456)](_0x3c78dc=>{const _0x4def0b=_0x3004da;_0x3c78dc[_0x4def0b(0x44b)](_0x496ee9=>{const _0x3f86ae=_0x4def0b;this['_formulaShapes'][_0x3f86ae(0x24b)](this[_0x3f86ae(0x3d3)](_0x496ee9['unitId'],_0x496ee9[_0x3f86ae(0x21b)],_0x496ee9[_0x3f86ae(0x1dd)]));});}));}[_0x291e41(0x301)](_0x22acb5,_0x3b76a5,_0x2bd20b){const _0x46ecb6=_0x291e41;let {transform:_0x20bd5b,drawingType:_0x491036,srcRect:_0xb11520,prstGeom:_0xa77372,groupId:_0x152b0f,unitId:_0x1d6d57,subUnitId:_0x4d1acd,drawingId:_0x438f96,isMultiTransform:_0x1461e5,transforms:_0x2e0e68,hidden:_0x435662,selectable:_0x58aa6c}=_0x22acb5;if(_0x491036!==_0x40fd85[_0x46ecb6(0x43a)]||!this['_drawingManagerService'][_0x46ecb6(0x3a2)]()||_0x20bd5b==null)return;let _0x1bc3b0=this['_drawingManagerService'][_0x46ecb6(0x28e)](),_0x57c0fc=_0x1461e5&&_0x2e0e68?_0x2e0e68:[_0x20bd5b],_0x4290a8=[];for(let _0x2cf6d9 of _0x57c0fc){let {left:_0x6a5934,top:_0x50f17f,width:_0x26051d,height:_0x1ffaf0,angle:_0x273603,flipX:_0x52e0ed,flipY:_0x55bf1b,skewX:_0x4c37ee,skewY:_0x6e1920}=_0x2cf6d9,_0xfae3c=_0x57c0fc[_0x46ecb6(0x2c0)](_0x2cf6d9),_0x52f926=_0x38d621({'unitId':_0x1d6d57,'subUnitId':_0x4d1acd,'drawingId':_0x438f96},_0x1461e5?_0xfae3c:void 0x0),_0x4ac050=_0x3b76a5[_0x46ecb6(0x292)](_0x52f926);if(_0x4ac050!=null){let _0x2f4af2={'unitId':_0x1d6d57,'subUnitId':_0x4d1acd,'shapeId':_0x438f96};_0x4ac050 instanceof J&&this[_0x46ecb6(0x38f)](_0x4ac050,_0x2f4af2),_0x4ac050['transformByState']({'left':_0x6a5934,'top':_0x50f17f,'width':_0x26051d,'height':_0x1ffaf0,'angle':_0x273603,'flipX':_0x52e0ed,'flipY':_0x55bf1b,'skewX':_0x4c37ee,'skewY':_0x6e1920});continue;}let _0x30aecb=this['_drawingManagerService']['getDrawingOrder'](_0x1d6d57,_0x4d1acd),_0x27ee62=_0x30aecb[_0x46ecb6(0x2c0)](_0x438f96);if(_0x3b76a5['getObjectIncludeInGroup'](_0x52f926)||!this[_0x46ecb6(0x346)][_0x46ecb6(0x3a2)]())continue;let _0x52ce18=this[_0x46ecb6(0x408)]['getShapeModel'](_0x1d6d57,_0x4d1acd,_0x438f96);if(!_0x52ce18)continue;let _0x172e4a=_0x5184c7(_0x52ce18[_0x46ecb6(0x2ba)]())?{..._0x806650,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x806650,_0x2404ad=_0x52ce18[_0x46ecb6(0x2d9)]()['formulaBinding'],_0x4566f8={'unitId':_0x1d6d57,'subUnitId':_0x4d1acd,'shapeId':_0x438f96};_0x2404ad&&this['_shapeFormulaService'][_0x46ecb6(0x3d0)](_0x4566f8,_0x2404ad);let _0x7a3fb5=new J(_0x52f926,{..._0x2cf6d9,'zIndex':_0x27ee62===-0x1?_0x30aecb['length']-0x1:_0x27ee62,'shapeModel':_0x52ce18,'localeService':this[_0x46ecb6(0x202)],'shapeId':_0x438f96,'unitId':_0x1d6d57,'subUnitId':_0x4d1acd,'visible':_0x435662!==!0x0,'evented':_0x58aa6c!==!0x1,'formulaPresentation':_0x2404ad?this[_0x46ecb6(0x422)][_0x46ecb6(0x2df)](_0x4566f8):void 0x0,'animateFormulaPresentation':(_0x2404ad==null?void 0x0:_0x2404ad[_0x46ecb6(0x400)])!==!0x1,'transformerConfig':_0x172e4a});if(_0x2404ad){let _0x4afa7e=this[_0x46ecb6(0x3d3)](_0x1d6d57,_0x4d1acd,_0x438f96),_0xc0461a=this[_0x46ecb6(0x244)][_0x46ecb6(0x42c)](_0x4afa7e)??new Set();_0xc0461a['add'](_0x7a3fb5),this[_0x46ecb6(0x244)][_0x46ecb6(0x28a)](_0x4afa7e,_0xc0461a);}_0x3b76a5[_0x46ecb6(0x35b)](_0x7a3fb5,_0x10b13b),_0x1bc3b0&&_0x3b76a5[_0x46ecb6(0x2ce)](_0x7a3fb5),_0x152b0f&&_0x56c630({'drawingId':_0x152b0f,'unitId':_0x1d6d57,'subUnitId':_0x4d1acd},_0x7a3fb5,_0x3b76a5,this[_0x46ecb6(0x346)]),_0xa77372!=null&&_0x7a3fb5[_0x46ecb6(0x217)](_0xa77372),_0xb11520!=null&&_0x7a3fb5[_0x46ecb6(0x1b6)](_0xb11520);let _0x406173=this[_0x46ecb6(0x273)](_0x7a3fb5,_0x52ce18[_0x46ecb6(0x2d9)]());if(_0x406173){var _0x132ce6;_0x2bd20b==null||(_0x132ce6=_0x2bd20b[_0x46ecb6(0x43d)])==null||_0x132ce6[_0x46ecb6(0x322)](_0x406173);}_0x4290a8['push'](_0x7a3fb5);}return _0x4290a8;}[_0x291e41(0x3d3)](_0x48c9d1,_0x32806b,_0x5eeb0c){return _0x48c9d1+'\x00'+_0x32806b+'\x00'+_0x5eeb0c;}[_0x291e41(0x38f)](_0x582ae8,_0x33cb8e){const _0x522554=_0x291e41;let _0xb14b69=this[_0x522554(0x408)][_0x522554(0x32d)](_0x33cb8e[_0x522554(0x351)],_0x33cb8e['subUnitId'],_0x33cb8e[_0x522554(0x416)]),_0x4ecbbb=_0xb14b69==null?void 0x0:_0xb14b69[_0x522554(0x2d9)]()[_0x522554(0x295)],_0x1d87dd=this[_0x522554(0x3d3)](_0x33cb8e['unitId'],_0x33cb8e[_0x522554(0x21b)],_0x33cb8e[_0x522554(0x416)]);if(_0x4ecbbb){this[_0x522554(0x422)][_0x522554(0x3d0)](_0x33cb8e,_0x4ecbbb);let _0x2c22a9=this[_0x522554(0x244)][_0x522554(0x42c)](_0x1d87dd)??new Set();_0x2c22a9[_0x522554(0x322)](_0x582ae8),this[_0x522554(0x244)][_0x522554(0x28a)](_0x1d87dd,_0x2c22a9);}else{var _0x197a7d;this[_0x522554(0x422)][_0x522554(0x232)](_0x33cb8e),(_0x197a7d=this[_0x522554(0x244)][_0x522554(0x42c)](_0x1d87dd))==null||_0x197a7d['delete'](_0x582ae8);}_0x582ae8[_0x522554(0x3f6)](_0x4ecbbb?this[_0x522554(0x422)]['getPresentation'](_0x33cb8e):void 0x0,(_0x4ecbbb==null?void 0x0:_0x4ecbbb[_0x522554(0x400)])!==!0x1);}['refreshShapeFillImage'](_0x96eb8c){const _0x1affe5=_0x291e41;let _0x5c7f32=_0x96eb8c[_0x1affe5(0x286)][_0x1affe5(0x2d9)](),_0x24b245=_0x5c7f32[_0x1affe5(0x3bf)];!_0x24b245||_0x24b245[_0x1affe5(0x2b7)]!==_0x2efc4e[_0x1affe5(0x22b)]||!_0x24b245[_0x1affe5(0x19f)]?_0x96eb8c['setFillImage'](void 0x0):this[_0x1affe5(0x273)](_0x96eb8c,_0x5c7f32);}[_0x291e41(0x273)](_0x4caa0f,_0x3cf004){const _0x43dd7a=_0x291e41;let _0x4ddb89=_0x3cf004[_0x43dd7a(0x3bf)];if(!_0x4ddb89||_0x4ddb89[_0x43dd7a(0x2b7)]!==_0x2efc4e[_0x43dd7a(0x22b)]||!_0x4ddb89[_0x43dd7a(0x19f)])return;let _0x27ccab=_0x4ddb89[_0x43dd7a(0x19f)],_0x1e7ef9=_0x4ddb89[_0x43dd7a(0x1d4)]??_0x54f00f['URL'],_0x246dc8=this[_0x43dd7a(0x3a4)][_0x43dd7a(0x39d)](_0x27ccab,_0x1e7ef9);if(_0x246dc8)_0x4caa0f['setFillImage'](_0x246dc8);else return this[_0x43dd7a(0x2bf)](_0x4caa0f,_0x27ccab,_0x1e7ef9);}async[_0x291e41(0x2bf)](_0xd59e7c,_0x1cbc77,_0x371b43){const _0xfa2bf7=_0x291e41;let _0x138a36;try{if(_0x371b43===_0x54f00f[_0xfa2bf7(0x21f)])_0x138a36=await this['_imageIoService'][_0xfa2bf7(0x42f)](_0x1cbc77);else{if(_0x371b43===_0x54f00f['URL'])try{_0x138a36=await this[_0xfa2bf7(0x263)][_0xfa2bf7(0x42f)](_0x1cbc77);}catch{_0x138a36=_0x1cbc77;}else _0x138a36=_0x1cbc77;}}catch(_0x2b7218){console['error'](_0xfa2bf7(0x2a7),_0x2b7218);return;}await new Promise(_0x110c73=>{const _0x34715f=_0xfa2bf7;let _0x35d4c3=new window[(_0x34715f(0x33e))]();_0x35d4c3['onload']=()=>{const _0x58383b=_0x34715f;this[_0x58383b(0x3a4)][_0x58383b(0x1fe)](_0x1cbc77,_0x371b43,_0x35d4c3),_0xd59e7c[_0x58383b(0x3a1)](_0x35d4c3),_0x110c73();},_0x35d4c3[_0x34715f(0x291)]=()=>{const _0x5aaa79=_0x34715f;console[_0x5aaa79(0x419)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x1cbc77),_0x110c73();},_0x35d4c3[_0x34715f(0x438)]=_0x138a36;});}};Z=X([Y(0x0,_0x28cffc),Y(0x1,_0x5b79b4(_0x1e1f0c)),Y(0x2,_0x5b79b4(_0x13738a)),Y(0x3,_0x213f29),Y(0x4,_0x5f21c5),Y(0x5,_0x5b79b4(_0x42a3cf))],Z);let Ir=class extends _0x557a26{constructor(_0x513ea0,_0x389010,_0x182c17,_0x49209f,_0xef8edf,_0x47015e){const _0x1bfc07=_0x291e41;super(),this[_0x1bfc07(0x346)]=_0x513ea0,this[_0x1bfc07(0x408)]=_0x389010,this[_0x1bfc07(0x449)]=_0x182c17,this[_0x1bfc07(0x23b)]=_0x49209f,this[_0x1bfc07(0x394)]=_0xef8edf,this[_0x1bfc07(0x199)]=_0x47015e,q(this,_0x1bfc07(0x41e),null),q(this,'_unitId',null),q(this,_0x1bfc07(0x1df),null),q(this,'_activeShapeAdjustPointList',void 0x0),q(this,_0x1bfc07(0x1a5),[]),q(this,'_baseShapeLeft',0x0),q(this,_0x1bfc07(0x37c),0x0),q(this,_0x1bfc07(0x2ad),0x0),q(this,_0x1bfc07(0x3a9),0x0),q(this,_0x1bfc07(0x25c),!0x1),q(this,_0x1bfc07(0x23e),void 0x0),q(this,_0x1bfc07(0x22f),void 0x0),q(this,_0x1bfc07(0x370),void 0x0),q(this,_0x1bfc07(0x3ba),void 0x0),q(this,_0x1bfc07(0x3d7),!0x1),this[_0x1bfc07(0x3f4)](),this[_0x1bfc07(0x1d0)]();}['_getShapeAdjustPointListById'](_0x1c68a9,_0x32c118,_0x504e46){const _0x1c00ff=_0x291e41;let _0x1ff114=this[_0x1c00ff(0x408)]['getShapeModel'](_0x1c68a9,_0x32c118,_0x504e46);if(_0x1ff114)return _0x1ff114[_0x1c00ff(0x44f)]();}[_0x291e41(0x228)](){const _0x45b621=_0x291e41;this[_0x45b621(0x236)]();}[_0x291e41(0x2b0)](){const _0x570cd7=_0x291e41;this[_0x570cd7(0x201)](!0x0);}[_0x291e41(0x195)](_0x184435){const _0x1de7f3=_0x291e41;this[_0x1de7f3(0x3d7)]=_0x184435;}[_0x291e41(0x2b5)](_0x21c8b3,_0x217ee5,_0x5234a2,_0x4b821b){const _0x19d613=_0x291e41;let _0x2b2465=this[_0x19d613(0x408)]['getShapeModel'](_0x21c8b3,_0x217ee5,_0x5234a2);if(_0x2b2465)return _0x2b2465[_0x19d613(0x437)](_0x4b821b);}[_0x291e41(0x1c2)](_0x55f395=!0x1){const _0x40e75d=_0x291e41;if(this[_0x40e75d(0x32f)]===null||this[_0x40e75d(0x1df)]===null||this[_0x40e75d(0x41e)]===null)return;let _0x50335a=this[_0x40e75d(0x449)][_0x40e75d(0x3a7)](this['_unitId']);if(!_0x50335a||!_0x50335a[_0x40e75d(0x401)](_0x5635f6)[_0x40e75d(0x1e9)]())return;let {scene:_0x3c6875}=_0x50335a,_0x197153={'unitId':this[_0x40e75d(0x32f)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x40e75d(0x41e)]},_0x577f9d=this[_0x40e75d(0x346)]['getDrawingByParam'](_0x197153),{transform:_0xc1081}=_0x577f9d;if(!_0xc1081||_0x577f9d[_0x40e75d(0x209)]!==_0x40fd85[_0x40e75d(0x43a)])return;let {left:_0x5b0818,top:_0x328d46,width:_0x2ee7d2,height:_0x34ce61,flipX:_0x1ecd69,flipY:_0x336f39,angle:_0x1ac53d=0x0}=_0xc1081;if(_0x5b0818===void 0x0||_0x328d46===void 0x0)return;if(_0x55f395){let _0xe82181=this[_0x40e75d(0x408)][_0x40e75d(0x32d)](this['_unitId'],this[_0x40e75d(0x1df)],this[_0x40e75d(0x41e)]);_0xe82181==null||_0xe82181[_0x40e75d(0x31e)]({'width':_0x2ee7d2??0x0,'height':_0x34ce61??0x0}),this[_0x40e75d(0x23a)]=_0xe82181==null?void 0x0:_0xe82181[_0x40e75d(0x44f)]();}let _0x157b2b=this[_0x40e75d(0x23a)];for(let _0x5a19d9=0x0;_0x5a19d9<_0x157b2b[_0x40e75d(0x3c3)];_0x5a19d9++){let _0x186b33=_0x157b2b[_0x5a19d9],_0x4a982e=_0x186b33['x'],_0x3330df=_0x186b33['y'];if(_0x1ecd69&&(_0x4a982e=(_0x2ee7d2||0x0)-_0x4a982e),_0x336f39&&(_0x3330df=(_0x34ce61||0x0)-_0x3330df),_0x1ac53d!==0x0){let _0x3b30f5=(_0x2ee7d2||0x0)/0x2,_0x2e1907=(_0x34ce61||0x0)/0x2,_0x54dfb1=_0x1ac53d*Math['PI']/0xb4,_0x593378=Math['cos'](_0x54dfb1),_0x7292c=Math[_0x40e75d(0x3ae)](_0x54dfb1),_0x4e6cde=_0x4a982e-_0x3b30f5,_0x27569d=_0x3330df-_0x2e1907;_0x4a982e=_0x3b30f5+(_0x4e6cde*_0x593378-_0x27569d*_0x7292c),_0x3330df=_0x2e1907+(_0x4e6cde*_0x7292c+_0x27569d*_0x593378);}let _0x4d0aad={'x':_0x4a982e,'y':_0x3330df,'adjName':_0x186b33[_0x40e75d(0x443)]};this[_0x40e75d(0x255)](_0x3c6875,_0x4d0aad,_0x4d0aad['adjName'],_0x5b0818,_0x328d46,this[_0x40e75d(0x32f)],this[_0x40e75d(0x1df)]);}}['_updateShapeAdjustControls'](_0x11baf7=!0x1){const _0x55aead=_0x291e41;_0x11baf7&&(this[_0x55aead(0x236)](),this[_0x55aead(0x1c2)](_0x11baf7));}[_0x291e41(0x255)](_0x17d14b,_0x3dc728,_0xe9bf7c,_0x2e8139,_0x28c726,_0x20f293,_0x10f653){const _0x15bc23=_0x291e41;if(!this[_0x15bc23(0x41e)])return;let _0x30981a=_0x17d14b[_0x15bc23(0x292)](_0x15bc23(0x2f3)+this['_activeShapeId']+'-'+_0xe9bf7c);if(_0x30981a){_0x30981a['transformByState']({'left':_0x3dc728['x']+_0x2e8139-_0x179988[_0x15bc23(0x3dd)],'top':_0x3dc728['y']+_0x28c726-_0x179988[_0x15bc23(0x3dd)]});return;}let _0x50b5d5={'left':_0x3dc728['x']+_0x2e8139-_0x179988[_0x15bc23(0x3dd)],'top':_0x3dc728['y']+_0x28c726-_0x179988[_0x15bc23(0x3dd)],'adjName':_0xe9bf7c,'shapeId':this[_0x15bc23(0x41e)],'unitId':_0x20f293,'subUnitId':_0x10f653,'width':_0x179988[_0x15bc23(0x3dd)]+0x8,'height':_0x179988[_0x15bc23(0x3dd)]+0x8,'zIndex':_0x10b13b+0x1,'evented':!0x0},_0xa42e42=new Fr(_0x15bc23(0x2f3)+this[_0x15bc23(0x41e)]+'-'+_0xe9bf7c,_0x50b5d5);this[_0x15bc23(0x1a5)][_0x15bc23(0x1b9)](_0xa42e42),this['_attachAdjustEvent'](_0xa42e42,_0x17d14b,_0xe9bf7c),_0x17d14b['addObject'](_0xa42e42,_0x10b13b+0x1);}[_0x291e41(0x236)](){const _0x4080e8=_0x291e41;this[_0x4080e8(0x1a5)][_0x4080e8(0x3c3)]!==0x0&&(this[_0x4080e8(0x1a5)][_0x4080e8(0x44b)](_0x27d5b6=>{const _0x4f4bec=_0x4080e8;_0x27d5b6[_0x4f4bec(0x20d)]();}),this[_0x4080e8(0x1a5)]=[]);}[_0x291e41(0x428)](){this['_createShapeAdjustControls']();}[_0x291e41(0x436)](_0xe56715,_0x2dd4fb){const _0x6af2ab=_0x291e41;var _0x334ae4;let _0x4f4335={'x':0x0,'y':0x0};if(!_0xe56715||!_0x2dd4fb)return _0x4f4335;let _0x163502=this[_0x6af2ab(0x449)]['getRenderUnitById'](_0xe56715);if(!_0x163502||!_0x163502[_0x6af2ab(0x401)](_0x5635f6)[_0x6af2ab(0x2d8)](_0x2dd4fb))return _0x4f4335;let _0x1ac7bd=_0x163502[_0x6af2ab(0x401)](_0xbd2a68),_0x1f7635=_0x1ac7bd==null?void 0x0:_0x1ac7bd['getCurrentScrollState']();if(!_0x1f7635)return _0x4f4335;let _0x1861c2=(_0x334ae4=this[_0x6af2ab(0x394)]['getUnit'](_0xe56715))==null?void 0x0:_0x334ae4[_0x6af2ab(0x2d1)](_0x2dd4fb);if(!_0x1861c2)return _0x4f4335;let _0x444264=_0x53677b(_0x1f7635['sheetViewStartRow'],_0x1f7635[_0x6af2ab(0x457)],_0x163502[_0x6af2ab(0x1f2)],_0x1861c2);return _0x444264?{'x':_0x444264[_0x6af2ab(0x1cf)],'y':_0x444264[_0x6af2ab(0x3ea)]}:_0x4f4335;}[_0x291e41(0x245)](_0x40f5b3,_0x25819d){const _0xf20a5a=_0x291e41;var _0x51d871;let _0x44e9c1=(_0x51d871=this[_0xf20a5a(0x394)][_0xf20a5a(0x208)](_0x40f5b3))==null?void 0x0:_0x51d871['getSheetBySheetId'](_0x25819d);return(_0x44e9c1==null?void 0x0:_0x44e9c1[_0xf20a5a(0x3eb)]())??0x1;}[_0x291e41(0x455)](_0x187621,_0x464087,_0x450d24){const _0x336e78=_0x291e41;this['disposeWithMe'](_0x53ca46(_0x187621[_0x336e78(0x1e7)][_0x336e78(0x1a9)]((_0x1f6020,_0x1c05ed)=>{const _0x254a5a=_0x336e78;var _0x1dd142,_0x1293f7,_0x27994f,_0x51286f;let _0x2e1d32=_0x187621[_0x254a5a(0x2b4)]();this['_activeAdjustInfo']=this['_getShapeAdjustInfosById'](_0x2e1d32[_0x254a5a(0x351)],_0x2e1d32['subUnitId'],_0x2e1d32['drawingId'],_0x450d24),this['_activeShapeModel']=this[_0x254a5a(0x408)][_0x254a5a(0x32d)](_0x2e1d32['unitId'],_0x2e1d32[_0x254a5a(0x21b)],_0x2e1d32[_0x254a5a(0x1dd)]);let _0x28b7a2=this[_0x254a5a(0x346)][_0x254a5a(0x312)]({'unitId':this['_unitId'],'subUnitId':this[_0x254a5a(0x1df)],'drawingId':this[_0x254a5a(0x41e)]}),{transform:_0x40803e}=_0x28b7a2;if(_0x40803e){let {left:_0x15f9ab,top:_0x24e8c0,width:_0xb68a3e,height:_0x3b35dd}=_0x40803e;this['_baseShapeLeft']=_0x15f9ab||0x0,this[_0x254a5a(0x37c)]=_0x24e8c0||0x0,this[_0x254a5a(0x2ad)]=_0xb68a3e||0x0,this['_baseShapeHeight']=_0x3b35dd||0x0;}let _0x22be26=!!((_0x1dd142=_0x28b7a2[_0x254a5a(0x21c)])!=null&&_0x1dd142[_0x254a5a(0x26b)]),_0x440d80=!!((_0x1293f7=_0x28b7a2[_0x254a5a(0x21c)])!=null&&_0x1293f7[_0x254a5a(0x1d2)]),_0x5d8156=((_0x27994f=_0x28b7a2[_0x254a5a(0x21c)])==null?void 0x0:_0x27994f[_0x254a5a(0x2a0)])||0x0;this[_0x254a5a(0x25c)]=!0x0,_0x464087['disableObjectsEvent']();let _0x289a93={...((_0x51286f=this['_activeAdjustInfo'])==null?void 0x0:_0x51286f[_0x254a5a(0x2fb)])??{}};this['_adjHandlerPointerMove']=_0x464087['onPointerMove$']['subscribeEvent']((_0x1e6b2d,_0x3a8fc5)=>{const _0x129e52=_0x254a5a;if(!this[_0x129e52(0x25c)])return;let {offsetX:_0x2f9432,offsetY:_0x2d11c0}=_0x1e6b2d,_0x2da68f=this[_0x129e52(0x23e)];if(this[_0x129e52(0x22f)]&&_0x2da68f){_0x464087[_0x129e52(0x424)](),_0x464087['setCursor'](_0x15231c[_0x129e52(0x198)]);let _0x29922c={'left':0x0,'top':0x0,'width':this[_0x129e52(0x2ad)],'height':this['_baseShapeHeight']},_0x416759=this[_0x129e52(0x436)](this['_unitId'],this[_0x129e52(0x1df)]),_0x1cae4b=this[_0x129e52(0x245)](this[_0x129e52(0x32f)],this[_0x129e52(0x1df)]),_0x51f5df=_0x2f9432/_0x1cae4b+_0x416759['x']-this[_0x129e52(0x1ce)],_0x7bc51=_0x2d11c0/_0x1cae4b+_0x416759['y']-this['_baseShapeTop'];if(_0x5d8156!==0x0){let _0x309ad2=this[_0x129e52(0x2ad)]/0x2,_0x21fee5=this[_0x129e52(0x3a9)]/0x2,_0x5853c0=_0x5d8156*Math['PI']/0xb4,_0x255b18=Math[_0x129e52(0x375)](_0x5853c0),_0x23c9bd=Math[_0x129e52(0x3ae)](_0x5853c0),_0x4b65e0=_0x51f5df-_0x309ad2,_0xb668f=_0x7bc51-_0x21fee5;_0x51f5df=_0x309ad2+(_0x4b65e0*_0x255b18+_0xb668f*_0x23c9bd),_0x7bc51=_0x21fee5+(-_0x4b65e0*_0x23c9bd+_0xb668f*_0x255b18);}_0x22be26&&(_0x51f5df=this[_0x129e52(0x2ad)]-_0x51f5df),_0x440d80&&(_0x7bc51=this['_baseShapeHeight']-_0x7bc51);let _0x1e1cda={'x':_0x51f5df,'y':_0x7bc51},_0x534d66=this['_activeShapeModel'][_0x129e52(0x399)](_0x29922c,_0x1e1cda,_0x2da68f,_0x22be26,_0x440d80);if(Object[_0x129e52(0x3f1)](_0x534d66)[_0x129e52(0x3c3)]===0x0)return;for(let [_0x4123b5,_0x523b8e]of Object[_0x129e52(0x384)](_0x534d66))this[_0x129e52(0x22f)][_0x129e52(0x3d9)](_0x4123b5,_0x523b8e);this[_0x129e52(0x22f)][_0x129e52(0x31e)]({'width':this['_baseShapeWidth'],'height':this[_0x129e52(0x3a9)]});let _0x2eec32=this[_0x129e52(0x346)][_0x129e52(0x312)]({'unitId':_0x2e1d32[_0x129e52(0x351)],'subUnitId':_0x2e1d32[_0x129e52(0x21b)],'drawingId':_0x2e1d32[_0x129e52(0x1dd)]});_0x2eec32&&(this[_0x129e52(0x23b)]['renderDrawingShape'](_0x2eec32,_0x464087),this[_0x129e52(0x23a)]=this['_getShapeAdjustPointListById'](_0x2e1d32[_0x129e52(0x351)],_0x2e1d32[_0x129e52(0x21b)],_0x2e1d32[_0x129e52(0x1dd)]),this['_updateAdjustControlPositions']());}_0x3a8fc5[_0x129e52(0x2a5)]();}),this[_0x254a5a(0x3ba)]=_0x464087['onPointerUp$'][_0x254a5a(0x1a9)]((_0x2a6937,_0x3a877f)=>{const _0x33712e=_0x254a5a;this['_adjHandlerPointerMove'][_0x33712e(0x34c)](),this[_0x33712e(0x3ba)][_0x33712e(0x34c)](),_0x464087[_0x33712e(0x276)]();let _0x37b242=this['_activeAdjustInfo'];if(_0x37b242){let _0x2853cb=_0x2e1d32[_0x33712e(0x351)],_0x39c6f2=_0x2e1d32['subUnitId'],_0x34cb39=_0x2e1d32[_0x33712e(0x1dd)],_0x205622={};for(let _0x4a1917 of Object['keys'](_0x37b242[_0x33712e(0x2fb)])){var _0x4afdd2;let _0x361f22=(_0x4afdd2=this[_0x33712e(0x22f)])==null?void 0x0:_0x4afdd2[_0x33712e(0x1c9)](_0x4a1917);_0x361f22!==void 0x0&&(_0x205622[_0x4a1917]=_0x361f22);}Object[_0x33712e(0x3f1)](_0x205622)[_0x33712e(0x3c3)]>0x0&&kr(this[_0x33712e(0x199)],_0x2853cb,_0x39c6f2,_0x34cb39,{'oldShapeData':{'adjustValues':_0x289a93}},{'adjustValues':_0x205622});}this[_0x33712e(0x23e)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x33712e(0x25c)]=!0x1,_0x3a877f['stopPropagation'](),_0x464087[_0x33712e(0x1ef)]();}),_0x1c05ed[_0x254a5a(0x2a5)]();})));}[_0x291e41(0x1d0)](){const _0x33af73=_0x291e41;let _0xdfbdc2=this['_univerInstanceService'][_0x33af73(0x262)](_0x3c82b9[_0x33af73(0x35c)]);this['disposeWithMe'](_0xdfbdc2['pipe'](_0x17931b(_0xf08573=>_0xf08573?_0xf08573[_0x33af73(0x3bc)][_0x33af73(0x24c)](_0x17931b(_0x39acb0=>{const _0x2bdb9f=_0x33af73;if(!_0x39acb0)return _0x257bb9;let _0x53a4e8=_0xf08573[_0x2bdb9f(0x440)](),_0x10bb0b=this[_0x2bdb9f(0x449)][_0x2bdb9f(0x3a7)](_0x53a4e8),_0xa59417=_0x10bb0b==null?void 0x0:_0x10bb0b[_0x2bdb9f(0x1f2)];return _0xa59417?_0x413c25(_0xa59417):_0x257bb9;})):_0x257bb9))['subscribe'](_0x310f54=>{const _0x42b08c=_0x33af73;let _0x372e33=_0x310f54[_0x42b08c(0x39e)]();this['disposeWithMe'](_0x310f54[_0x42b08c(0x349)][_0x42b08c(0x1a9)](()=>{const _0xeb69cc=_0x42b08c;this[_0xeb69cc(0x3d7)];})),this[_0x42b08c(0x432)](_0x372e33['changeStart$'][_0x42b08c(0x456)](_0x2606d8=>{const _0x574ebd=_0x42b08c;let {objects:_0x349cb6}=_0x2606d8;this[_0x574ebd(0x1c2)](),_0x349cb6!==null&&_0x349cb6[_0x574ebd(0x215)]===0x1&&_0x349cb6['values']()['next']()[_0x574ebd(0x3ec)]instanceof J&&this[_0x574ebd(0x195)](!0x0);})),this[_0x42b08c(0x432)](_0x372e33[_0x42b08c(0x2f2)][_0x42b08c(0x456)](()=>{const _0x56d3a9=_0x42b08c;this[_0x56d3a9(0x3d7)]&&this[_0x56d3a9(0x236)]();})),this[_0x42b08c(0x432)](_0x310f54[_0x42b08c(0x274)][_0x42b08c(0x1a9)](()=>{const _0x4ff889=_0x42b08c;this[_0x4ff889(0x3d7)]&&(this[_0x4ff889(0x195)](!0x1),this[_0x4ff889(0x1c2)]());})),this[_0x42b08c(0x432)](_0x372e33[_0x42b08c(0x398)][_0x42b08c(0x456)](()=>{const _0x21a30c=_0x42b08c;this[_0x21a30c(0x32f)]&&this['_subUnitId']&&this[_0x21a30c(0x41e)]&&this[_0x21a30c(0x346)][_0x21a30c(0x312)]({'unitId':this[_0x21a30c(0x32f)],'subUnitId':this[_0x21a30c(0x1df)],'drawingId':this['_activeShapeId']})&&(this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](this[_0x21a30c(0x32f)],this['_subUnitId'],this['_activeShapeId']),this[_0x21a30c(0x428)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x2921a5=_0x291e41;this[_0x2921a5(0x432)](this[_0x2921a5(0x199)]['onCommandExecuted'](_0x15b34e=>{const _0x3ab017=_0x2921a5;if(_0x15b34e['id']!==_0x172941['id'])return;let {unitId:_0x38eaed,subUnitId:_0x7adffe,shapeId:_0x3f9b4a}=_0x15b34e['params'];_0x38eaed===this[_0x3ab017(0x32f)]&&_0x7adffe===this[_0x3ab017(0x1df)]&&_0x3f9b4a===this[_0x3ab017(0x41e)]&&this['refreshAdjustControls']();})),this[_0x2921a5(0x432)](this[_0x2921a5(0x346)][_0x2921a5(0x1d8)][_0x2921a5(0x456)](_0x4628af=>{const _0x5c6a9f=_0x2921a5;if(_0x4628af['length']===0x1){let _0x4b20be=_0x4628af[0x0];if(_0x4b20be[_0x5c6a9f(0x209)]===_0x40fd85[_0x5c6a9f(0x43a)]&&this['_univerInstanceService'][_0x5c6a9f(0x340)](_0x4b20be[_0x5c6a9f(0x351)])===_0x3c82b9[_0x5c6a9f(0x35c)]){this[_0x5c6a9f(0x41e)]=_0x4b20be[_0x5c6a9f(0x1dd)];let {unitId:_0x19d241,subUnitId:_0x54750d}=_0x4b20be;this[_0x5c6a9f(0x23a)]=this[_0x5c6a9f(0x41b)](_0x19d241,_0x54750d,this[_0x5c6a9f(0x41e)]),this[_0x5c6a9f(0x32f)]=_0x19d241,this[_0x5c6a9f(0x1df)]=_0x54750d,this[_0x5c6a9f(0x236)](),this['_createShapeAdjustControls']();return;}}this[_0x5c6a9f(0x41e)]=null,this[_0x5c6a9f(0x23a)]=void 0x0,this[_0x5c6a9f(0x32f)]=null,this['_subUnitId']=null,this['_clearShapeAdjustControls']();})),this[_0x2921a5(0x432)](this[_0x2921a5(0x346)]['update$'][_0x2921a5(0x456)](_0x3cdd86=>{const _0x2a58dd=_0x2921a5;if(_0x3cdd86['length']===0x1){var _0x278069;let _0x14136d=_0x3cdd86[0x0];((_0x278069=this[_0x2a58dd(0x346)][_0x2a58dd(0x312)](_0x14136d))==null?void 0x0:_0x278069[_0x2a58dd(0x209)])===_0x40fd85[_0x2a58dd(0x43a)]&&this[_0x2a58dd(0x201)](!0x0);}})),this['disposeWithMe'](this[_0x2921a5(0x346)][_0x2921a5(0x31c)][_0x2921a5(0x456)](_0x4c10b7=>{const _0x2c76e6=_0x2921a5;for(let _0x2457d5 of _0x4c10b7)this[_0x2c76e6(0x41e)]===_0x2457d5[_0x2c76e6(0x1dd)]&&(this[_0x2c76e6(0x41e)]=null,this[_0x2c76e6(0x23a)]=void 0x0,this[_0x2c76e6(0x32f)]=null,this[_0x2c76e6(0x1df)]=null,this[_0x2c76e6(0x236)]());}));}};Ir=X([Y(0x0,_0x28cffc),Y(0x1,_0x5b79b4(_0x1e1f0c)),Y(0x2,_0x5b79b4(_0x1158d5)),Y(0x3,_0x5b79b4(Z)),Y(0x4,_0x44b74c),Y(0x5,_0x54c16f)],Ir);const Lr={'id':_0x291e41(0x1e5),'type':_0x303f65[_0x291e41(0x3e6)],'handler':(_0x4a4fdc,_0x59e339)=>{const _0x24c0c9=_0x291e41;let _0x39c530=_0x4a4fdc['get'](_0x28cffc),_0x284d6c=_0x4a4fdc[_0x24c0c9(0x42c)](_0x1158d5),_0x6bbf7=_0x4a4fdc[_0x24c0c9(0x42c)](Ir);if(_0x59e339==null)return!0x0;if(_0x59e339['length']>0x0){var _0x5736c0;let _0x36949a=(_0x5736c0=_0x284d6c[_0x24c0c9(0x3a7)](_0x59e339[0x0][_0x24c0c9(0x351)]))==null?void 0x0:_0x5736c0[_0x24c0c9(0x1f2)];if(_0x36949a){let {unitId:_0x3bcd09,subUnitId:_0x279f48,drawingId:_0x93869c}=_0x59e339[0x0],_0xc914a9=_0x38d621({'unitId':_0x3bcd09,'subUnitId':_0x279f48,'drawingId':_0x93869c},void 0x0),_0x45e088=_0x36949a[_0x24c0c9(0x292)](_0xc914a9);if(_0x45e088){var _0x1367be;(_0x1367be=_0x284d6c[_0x24c0c9(0x3a7)](_0x59e339[0x0][_0x24c0c9(0x351)]))==null||(_0x1367be=_0x1367be[_0x24c0c9(0x1f2)][_0x24c0c9(0x335)]())==null||_0x1367be['activeAnObject'](_0x45e088);}}_0x39c530[_0x24c0c9(0x2bd)](_0x59e339),_0x6bbf7['setShouldShowAdjust'](!0x1);}return!0x0;}},Rr={'type':_0x303f65[_0x291e41(0x287)],'id':'sheet.command.menu-insert-shape','handler':async(_0x80996d,_0x18de2c)=>{const _0x40e400=_0x291e41;let _0x1a3cb6=_0x378f79(_0x80996d[_0x40e400(0x42c)](_0x44b74c));if(!_0x1a3cb6)return!0x1;let _0x3d4637=_0x80996d[_0x40e400(0x42c)](_0x438b0b)['getCurrentLastSelection']();if(!_0x3d4637)return!0x1;let _0x1e9638=_0x80996d[_0x40e400(0x42c)](_0x54c16f),{unitId:_0x3b772,subUnitId:_0x130014}=_0x1a3cb6,{value:_0x38dcf6,enhanceParams:_0x1c0cda}=_0x18de2c,{range:_0x34635d}=_0x3d4637,_0x3bfe45={'unitId':_0x3b772,'subUnitId':_0x130014,'shapeType':_0x38dcf6,'range':_0x34635d,'shapeId':_0x2eff46()};if(_0x1c0cda){let _0x8e60dc=_0x5184c7(_0x38dcf6),_0x37e313=_0x38dcf6===_0x206995[_0x40e400(0x41f)];_0x8e60dc&&(_0x1c0cda[_0x40e400(0x3c1)]||_0x1c0cda[_0x40e400(0x29e)])&&(_0x3bfe45[_0x40e400(0x3ad)]={'ln':{'startArrow':_0x1c0cda[_0x40e400(0x3c1)]?{'type':_0x3aa73d[_0x40e400(0x3e4)],'size':_0x672a93[_0x40e400(0x282)]}:void 0x0,'endArrow':_0x1c0cda[_0x40e400(0x29e)]?{'type':_0x3aa73d[_0x40e400(0x3e4)],'size':_0x672a93[_0x40e400(0x26c)]}:void 0x0}}),_0x37e313&&(_0x1c0cda[_0x40e400(0x2ab)]||_0x1c0cda['vertical'])&&(_0x3bfe45[_0x40e400(0x3ad)]=_0x412b4d({'fill':{'fillType':_0x2efc4e[_0x40e400(0x396)],'color':_0x40e400(0x1c5)},'isHorizontal':!!_0x1c0cda[_0x40e400(0x2ab)],'stroke':{'lineStrokeType':_0xdd541a[_0x40e400(0x2c4)],'width':0x1,'color':_0x40e400(0x1ac)}}));}let _0x145c31=_0x1e9638['syncExecuteCommand'](_0x2b8b47['id'],_0x3bfe45);return setTimeout(()=>{const _0x1d5112=_0x40e400;_0x1e9638[_0x1d5112(0x2e1)](Lr['id'],[{'unitId':_0x3b772,'subUnitId':_0x130014,'drawingId':_0x3bfe45[_0x1d5112(0x416)]}]);},0xc8),_0x145c31;}},zr='sheet.shape.edit.panel',Br='sheet.shape.object-list.panel',Vr=_0x291e41(0x39a),Hr=_0x291e41(0x1a8),Ur=_0xe939c(_0x291e41(0x1cd)),Wr=_0x291e41(0x40a),Gr={'id':_0x291e41(0x39b),'type':_0x303f65[_0x291e41(0x287)],'handler':(_0x4c6e93,_0x555ccd)=>{const _0x32466b=_0x291e41;let _0x34c265=_0x4c6e93['get'](_0x31c5f5),_0x50271f=_0x4c6e93[_0x32466b(0x42c)](_0x13738a),_0x3e2d58=_0x4c6e93['get'](_0x44b74c),_0xd6255d=_0x4c6e93[_0x32466b(0x42c)](_0x54c16f);return _0x378f79(_0x3e2d58)?(_0x555ccd==null?void 0x0:_0x555ccd[_0x32466b(0x3ec)])==='close'?(_0x34c265[_0x32466b(0x415)](Br),!0x0):(_0x34c265[_0x32466b(0x269)]({'id':Br,'header':{'title':_0x50271f['t'](_0x32466b(0x297))},'children':{'label':Br},'onClose':()=>{const _0x3bb77f=_0x32466b;_0xd6255d[_0x3bb77f(0x1b7)](_0x5e3e35['id'],[]);},'width':0x168}),!0x0):!0x1;}},Kr={'type':_0x303f65[_0x291e41(0x3e6)],'id':_0x291e41(0x1bd),'handler'(){return!0x0;}};function qr(_0x38e7d0){const _0x5aeedc=_0x291e41;let _0x406b5f=_0x38e7d0['get'](_0x28cffc)['getFocusDrawings'](),_0x2e16c1=_0x406b5f[_0x5aeedc(0x3c3)]===0x1?_0x406b5f[0x0]:null;if(!_0x2e16c1||_0x2e16c1['drawingType']!==_0x40fd85['DRAWING_SHAPE'])return null;let _0x1626d3=_0x38e7d0['get'](_0x1e1f0c),_0x394f41=_0x1626d3[_0x5aeedc(0x1a4)](_0x2e16c1[_0x5aeedc(0x351)],_0x2e16c1[_0x5aeedc(0x21b)],_0x2e16c1[_0x5aeedc(0x1dd)]),_0x785649=_0x1626d3['getShapeDataById'](_0x2e16c1[_0x5aeedc(0x351)],_0x2e16c1[_0x5aeedc(0x21b)],_0x2e16c1[_0x5aeedc(0x1dd)]);return _0x394f41===void 0x0||!_0x785649?null:{'drawing':_0x2e16c1,'shapeData':_0x785649,'shapeType':_0x394f41};}const Jr={'id':_0x291e41(0x2af),'type':_0x303f65[_0x291e41(0x3e6)],'handler':(_0x3f3059,_0x300747)=>{const _0xc33717=_0x291e41;let _0x2226ac=qr(_0x3f3059),_0x179ac8=_0x33963b((_0x300747==null?void 0x0:_0x300747['presetId'])??(_0x300747==null?void 0x0:_0x300747[_0xc33717(0x3ec)])??'');if(!_0x2226ac||!_0x179ac8||_0x179ac8[_0xc33717(0x28c)]!==_0x5d10b7(_0x2226ac[_0xc33717(0x3ad)]))return!0x1;let _0x2d6051=_0x28ac21(_0x2226ac[_0xc33717(0x3ad)],_0x179ac8);if(!_0x2d6051)return!0x1;let {drawing:_0x118e7a}=_0x2226ac;return _0x3f3059[_0xc33717(0x42c)](_0x54c16f)['executeCommand'](K['id'],{'unitId':_0x118e7a[_0xc33717(0x351)],'subUnitId':_0x118e7a[_0xc33717(0x21b)],'shapeId':_0x118e7a[_0xc33717(0x1dd)],'shapeData':_0x2d6051,'oldShapeJSON':{'oldShapeData':_0x2226ac[_0xc33717(0x3ad)]}});}},Yr={'id':_0x291e41(0x1f0),'type':_0x303f65[_0x291e41(0x3e6)],'handler':(_0x250356,_0x53caed)=>{const _0x52b171=_0x291e41;let _0x358f1e=qr(_0x250356),_0x5e0e1b=(_0x53caed==null?void 0x0:_0x53caed[_0x52b171(0x3e1)])??(_0x53caed==null?void 0x0:_0x53caed[_0x52b171(0x3ec)]);if(!_0x358f1e||!_0x5e0e1b||_0x5184c7(_0x358f1e[_0x52b171(0x3e1)])||_0x5184c7(_0x5e0e1b))return!0x1;let _0x25f125=_0x386d13(_0x358f1e[_0x52b171(0x3ad)],_0x5e0e1b);if(!_0x25f125)return!0x1;let {drawing:_0x13394e}=_0x358f1e;return _0x250356[_0x52b171(0x42c)](_0x54c16f)['executeCommand'](K['id'],{'unitId':_0x13394e[_0x52b171(0x351)],'subUnitId':_0x13394e[_0x52b171(0x21b)],'shapeId':_0x13394e[_0x52b171(0x1dd)],'shapeType':_0x5e0e1b,'shapeData':_0x25f125,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x358f1e[_0x52b171(0x3e1)],'oldShapeData':_0x358f1e[_0x52b171(0x3ad)]}});}};let Q=class extends _0x557a26{constructor(_0x5e4464,_0x16f559){const _0x23395f=_0x291e41;super(),this[_0x23395f(0x3e9)]=_0x5e4464,this[_0x23395f(0x346)]=_0x16f559,this['_registerImageShapeClipDelegate'](),this[_0x23395f(0x3e9)][_0x23395f(0x1c1)](!0x0),this[_0x23395f(0x432)]({'dispose':()=>this['_clipService'][_0x23395f(0x1c1)](!0x1)});}[_0x291e41(0x3d6)](){const _0x1c385e=_0x291e41;let _0x2eca56=this[_0x1c385e(0x3e9)],_0x24429f=new Map(),_0x1a0f85=_0x2eca56[_0x1c385e(0x256)]((_0x2376b0,_0x405f8c,_0x1eb573,_0x335359,_0x228a91)=>{const _0x9a7bb8=_0x1c385e;let _0x45d21e=_0x405f8c;if(_0x45d21e===_0x206995[_0x9a7bb8(0x2e8)]||_0x405f8c===_0x9a7bb8(0x1da))return!0x1;try{let _0x475aed=_0x24429f[_0x9a7bb8(0x42c)](_0x405f8c);return _0x475aed||(_0x475aed=new _0xdd4745(_0x45d21e,_0x9a7bb8(0x30b)+_0x405f8c),_0x24429f[_0x9a7bb8(0x28a)](_0x405f8c,_0x475aed)),_0x475aed[_0x9a7bb8(0x2a9)](),_0x228a91&&Object[_0x9a7bb8(0x3f1)](_0x228a91)[_0x9a7bb8(0x3c3)]>0x0&&_0x475aed[_0x9a7bb8(0x3c5)]({'adjustValues':_0x228a91},!0x0),_0x475aed[_0x9a7bb8(0x31e)]({'width':_0x1eb573,'height':_0x335359}),_0x475aed[_0x9a7bb8(0x1ca)](_0x2376b0,{'left':0x0,'top':0x0,'width':_0x1eb573,'height':_0x335359});}catch{return!0x1;}});this[_0x1c385e(0x432)](_0x1a0f85),this[_0x1c385e(0x432)]({'dispose':()=>_0x24429f[_0x1c385e(0x280)]()});}[_0x291e41(0x368)](_0x134202,_0x550d0b,_0x1d4dff,_0x56104a,_0x1e20f3){const _0x44049f=_0x291e41;let _0x4861f6=this[_0x44049f(0x346)][_0x44049f(0x40e)](_0x134202,_0x550d0b);if(!_0x4861f6[_0x1d4dff])return;let _0x18540e={..._0x4861f6[_0x1d4dff],'prstGeom':_0x56104a,'adjustValues':_0x1e20f3};this['_drawingManagerService']['featurePluginUpdateNotification']([_0x18540e]);}};Q=X([Y(0x0,_0x5b79b4(_0x252e29)),Y(0x1,_0x5b79b4(_0x28cffc))],Q);const Xr='sheet.shape.picker.component',Zr=_0x291e41(0x2e7);function Qr({onShapeClick:_0x967c2a,excludeGroups:_0x17a155}){const _0x20eaef=_0x291e41;return _0x183ba7(_0x278d3,{'excludeGroups':_0x17a155,'onShapeClick':_0x967c2a,'scrollContainer':_0x20eaef(0x31b)});}function $r(){const _0x34ad05=_0x291e41;let _0x392d28=_0x42cc68(_0x28cffc),_0x592471=_0x42cc68(Q);return _0x183ba7(_0x908982,{'buttonLabel':_0x34ad05(0x307),'excludeGroups':[_0x1888fe[_0x34ad05(0x34b)]],'onShapeClick':_0x1b9f0b=>{const _0x32bcc7=_0x34ad05;let _0x56273e=_0x392d28[_0x32bcc7(0x1f4)]()[_0x32bcc7(0x1e4)](_0x32491b=>_0x32491b[_0x32bcc7(0x209)]===_0x40fd85['DRAWING_IMAGE']);if(!_0x56273e)return;let {unitId:_0x411178,subUnitId:_0x22ea52,drawingId:_0x2cabc4}=_0x56273e;_0x592471[_0x32bcc7(0x368)](_0x411178,_0x22ea52,_0x2cabc4,_0x1b9f0b[_0x32bcc7(0x28c)]);}});}function ei(){const _0x3429d5=_0x291e41;let _0x51a7c6=_0x42cc68(_0x28cffc),_0x583e61=_0x42cc68(Q);return _0x183ba7(_0x908982,{'buttonLabel':_0x3429d5(0x307),'excludeGroups':[_0x1888fe[_0x3429d5(0x34b)]],'DropdownComponent':_0xf665f2,'onShapeClick':_0x1bb753=>{const _0x5f5166=_0x3429d5;let _0x2f50e2=_0x51a7c6['getFocusDrawings']()[_0x5f5166(0x1e4)](_0x4c606a=>_0x4c606a[_0x5f5166(0x209)]===_0x40fd85['DRAWING_IMAGE']);if(!_0x2f50e2)return;let {unitId:_0x54afb6,subUnitId:_0x2b6a09,drawingId:_0x5d43fc}=_0x2f50e2;_0x583e61[_0x5f5166(0x368)](_0x54afb6,_0x2b6a09,_0x5d43fc,_0x1bb753[_0x5f5166(0x28c)]);}});}function ti(){const _0x34fbd6=_0x291e41;let _0xb4790d=_0x42cc68(_0x5a241f),_0x21d82a=_0x42cc68(_0x28cffc),_0x5d3e6b=_0x42cc68(_0x44b74c),_0x50462f=_0x21d82a[_0x34fbd6(0x1f4)]()[0x0],_0x5a73ee=_0x50462f?_0x5d3e6b[_0x34fbd6(0x340)](_0x50462f['unitId']):void 0x0,_0x47f3a9=_0x5a73ee===_0x3c82b9[_0x34fbd6(0x435)]?_0x34fbd6(0x3b6):_0x5a73ee===_0x3c82b9[_0x34fbd6(0x35c)]?Zr:void 0x0,_0x593be1=_0x47f3a9?_0xb4790d['get'](_0x47f3a9):void 0x0;return _0x593be1?_0x183ba7(_0x593be1,{}):null;}function ni(){let _0xd66579=_0x42cc68(_0x54c16f);return _0x183ba7(Qr,{'onShapeClick':_0xb9e935=>{const _0x290dfe=_0x7c09;_0xd66579[_0x290dfe(0x2e1)](Rr['id'],{'value':_0xb9e935[_0x290dfe(0x28c)],'enhanceParams':{'endArrow':_0xb9e935[_0x290dfe(0x29e)],'startArrow':_0xb9e935[_0x290dfe(0x3c1)],'horizontal':_0xb9e935[_0x290dfe(0x2ab)],'vertical':_0xb9e935[_0x290dfe(0x315)]}});}});}function ri(){return _0x183ba7(ni,{});}function ii(_0x129eba){const _0x3681d4=_0x291e41;let _0x4dfb33=_0x129eba[_0x3681d4(0x42c)](_0x44b74c);return{'id':Rr['id'],'type':_0x570be5[_0x3681d4(0x1f5)],'selections':[{'label':{'name':Xr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Rr['id']}}}],'icon':'ShapeIcon','tooltip':'sheets-shape-ui.insertShape','activated$':_0x4cade8(_0x4dfb33,!0x1,()=>new _0x1486bd(_0x134482=>{_0x134482['next'](!0x1);})),'hidden$':_0x205c3b(_0x129eba,_0x3c82b9[_0x3681d4(0x35c)]),'disabled$':_0xa68a8d(_0x129eba)};}function ai(_0x21f406){const _0x3f2b9a=_0x291e41;let _0x291ed7=_0x21f406[_0x3f2b9a(0x42c)](_0x31c5f5);return{'id':Gr['id'],'type':_0x570be5[_0x3f2b9a(0x19b)],'icon':_0x3f2b9a(0x392),'title':'sheets-shape-ui.objectListPanel.open','tooltip':_0x3f2b9a(0x1eb),'activated$':_0x5ccdfe(()=>_0x291ed7[_0x3f2b9a(0x385)]['pipe'](_0x1c299f(_0x291ed7[_0x3f2b9a(0x32b)]),_0x415b6a(_0x18c1d4=>_0x18c1d4['visible']===!0x0&&_0x18c1d4['id']===_0x3f2b9a(0x3a8)),_0xfbaf87())),'hidden$':_0x205c3b(_0x21f406,_0x3c82b9['UNIVER_SHEET']),'disabled$':_0xa68a8d(_0x21f406)};}const oi=_0x291e41(0x1f7),si=_0x291e41(0x306);function ci(_0x3eacb5){const _0x111d60=_0x291e41;let _0xae0bfc=_0x3eacb5[_0x111d60(0x42c)](_0x28cffc)['getFocusDrawings']();return _0xae0bfc[_0x111d60(0x3c3)]===0x1&&_0xae0bfc[0x0][_0x111d60(0x209)]===_0x40fd85[_0x111d60(0x43a)]?_0xae0bfc[0x0]:null;}function li(_0x5ae716){const _0x4c5447=_0x291e41;let _0x32391e=_0x5ae716[_0x4c5447(0x42c)](_0x28cffc);return _0x32391e[_0x4c5447(0x1d8)][_0x4c5447(0x24c)](_0x1c299f(_0x32391e[_0x4c5447(0x1f4)]()),_0x415b6a(_0x14a6ca=>_0x14a6ca[_0x4c5447(0x3c3)]!==0x1||_0x14a6ca[0x0][_0x4c5447(0x209)]!==_0x40fd85[_0x4c5447(0x43a)]));}function ui(_0xc73aaa){const _0x450d57=_0x291e41;return{'id':oi,'commandId':_0x47976c['id'],'type':_0x570be5[_0x450d57(0x19b)],'title':'sheets-shape-ui.flipHorizontal','tooltip':_0x450d57(0x41d),'icon':_0x450d57(0x272),'hidden$':li(_0xc73aaa),'params':()=>{const _0x1d954f=_0x450d57;let _0x55f62c=ci(_0xc73aaa);return _0x55f62c?{'unitId':_0x55f62c[_0x1d954f(0x351)],'subUnitId':_0x55f62c[_0x1d954f(0x21b)],'shapeId':_0x55f62c[_0x1d954f(0x1dd)],'flipH':!0x0}:void 0x0;}};}function di(_0x6c82a2){const _0x578d27=_0x291e41;return{'id':si,'commandId':_0x47976c['id'],'type':_0x570be5['BUTTON'],'title':_0x578d27(0x24e),'tooltip':'sheets-shape-ui.flipVertical','icon':_0x578d27(0x1e2),'hidden$':li(_0x6c82a2),'params':()=>{const _0x4f7717=_0x578d27;let _0x2f6e2c=ci(_0x6c82a2);return _0x2f6e2c?{'unitId':_0x2f6e2c['unitId'],'subUnitId':_0x2f6e2c[_0x4f7717(0x21b)],'shapeId':_0x2f6e2c[_0x4f7717(0x1dd)],'flipV':!0x0}:void 0x0;}};}const fi='sheets-shape-ui.shape-format.quick-style-gallery',pi='sheets-shape-ui.shape-format.style-ribbon-control',mi=_0x291e41(0x1ba),hi='sheets-shape-ui.shape-format.formula-ribbon-control';function gi(){let _0x6b2fde=_0x42cc68(_0x54c16f),_0x3b5b86=_0x42cc68(_0x28cffc),_0x54e6f5=_0x42cc68(_0x1e1f0c),_0x37396c=()=>{const _0x48ac91=_0x7c09;var _0x1e60bc;let _0x5e390b=_0x3b5b86[_0x48ac91(0x1f4)]();if(_0x5e390b['length']!==0x1||((_0x1e60bc=_0x5e390b[0x0])==null?void 0x0:_0x1e60bc['drawingType'])!==_0x40fd85['DRAWING_SHAPE'])return null;let {unitId:_0xd0b31f,subUnitId:_0x2942f3,drawingId:_0xcaae3c}=_0x5e390b[0x0],_0x560f6c=_0x54e6f5[_0x48ac91(0x1a4)](_0xd0b31f,_0x2942f3,_0xcaae3c),_0x54963f=_0x54e6f5[_0x48ac91(0x1a0)](_0xd0b31f,_0x2942f3,_0xcaae3c);return _0x560f6c===void 0x0||!_0x54963f?null:{'unitId':_0xd0b31f,'subUnitId':_0x2942f3,'drawingId':_0xcaae3c,'shapeType':_0x560f6c,'shapeData':_0x54963f};},_0x543094=_0x279878(()=>new _0x1486bd(_0x1fb63e=>{const _0x3de369=_0x7c09;let _0x4f791a=()=>_0x1fb63e[_0x3de369(0x1c4)](_0x37396c()),_0x4f8696=_0x3b5b86[_0x3de369(0x1d8)]['subscribe'](_0x4f791a),_0x243a5e=_0x6b2fde[_0x3de369(0x43c)](_0x88be1c=>{_0x88be1c['id']===_0x172941['id']&&_0x4f791a();});return _0x4f791a(),()=>{const _0x3078ba=_0x3de369;_0x4f8696[_0x3078ba(0x34c)](),_0x243a5e[_0x3078ba(0x20d)]();};}),_0x37396c(),!0x1,[_0x6b2fde,_0x3b5b86,_0x54e6f5]);return{'selection':_0x543094,'updateShapeData':_0x130deb=>{const _0x1899ed=_0x7c09;_0x543094&&kr(_0x6b2fde,_0x543094['unitId'],_0x543094['subUnitId'],_0x543094[_0x1899ed(0x1dd)],{'oldShapeData':_0x543094[_0x1899ed(0x3ad)]},_0x130deb);}};}function _i(){const _0x32c154=_0x291e41;let {selection:_0xac3076,updateShapeData:_0x252c79}=gi();return _0xac3076?_0x183ba7(_0xf453d4,{'shapeData':_0xac3076[_0x32c154(0x3ad)],'shapeType':_0xac3076[_0x32c154(0x3e1)],'onUpdateShapeData':_0x252c79}):null;}function vi(){const _0x301ca1=_0x291e41;let _0x3fd370=_0x42cc68(_0x54c16f),_0x5ec13e=_0x42cc68(_0x13738a),{selection:_0x4cf119}=gi();return _0x4cf119?_0x183ba7(_0x125dd1,{'type':_0x5d10b7(_0x4cf119['shapeData']),'ariaLabel':_0x5ec13e['t'](_0x301ca1(0x2cc)),'activePresetId':_0x12b5de(_0x4cf119['shapeData']),'onSelect':_0x2ff296=>_0x3fd370[_0x301ca1(0x2e1)](Jr['id'],{'presetId':_0x2ff296})}):null;}function yi(){const _0x5567b0=_0x291e41;let {selection:_0x282c68,updateShapeData:_0x4e9426}=gi();return _0x282c68?_0x183ba7(_0x28730a,{'fontFamilyPopupDataComponent':_0x5567b0(0x30c),'shapeData':_0x282c68['shapeData'],'onUpdateShapeData':_0x4e9426}):null;}function bi(){const _0x2e744e=_0x291e41;var _0x5032a5;let {selection:_0x1e377b,updateShapeData:_0x1c0793}=gi(),_0x1f3902=_0x3c9bbc({'hostType':_0x3c82b9['UNIVER_SHEET'],'unitId':(_0x1e377b==null?void 0x0:_0x1e377b[_0x2e744e(0x351)])??'','subUnitId':(_0x1e377b==null?void 0x0:_0x1e377b[_0x2e744e(0x21b)])??'','shapeId':(_0x1e377b==null?void 0x0:_0x1e377b[_0x2e744e(0x1dd)])??'','shapeData':_0x1e377b==null?void 0x0:_0x1e377b['shapeData'],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x2e744e(0x37f),'onUpdateBinding':_0x33bc88=>_0x1c0793({'formulaBinding':_0x33bc88})}),_0x81a607=((_0x5032a5=_0x1f3902[_0x2e744e(0x204)])==null?void 0x0:_0x5032a5[_0x2e744e(0x377)](_0x23774f=>_0x23774f['actions'])[_0x2e744e(0x3c0)](_0xdfc308=>_0xdfc308[_0x2e744e(0x42d)]!==!0x1))??[];return _0x1e377b!=null&&_0x1e377b[_0x2e744e(0x3ad)][_0x2e744e(0x295)]?_0x183ba7(_0x423781,{'actions':_0x81a607,'panel':_0x1f3902[_0x2e744e(0x355)]}):null;}const xi=_0x291e41(0x27b),Si=_0x291e41(0x44e),Ci=_0x291e41(0x451),wi=_0x291e41(0x2fa),Ti=_0x291e41(0x294),Ei=_0x291e41(0x37a),Di=_0x291e41(0x1bc);function Oi(_0x1fcb07){const _0x53022e=_0x291e41;let _0xac2f70=_0x1fcb07[_0x53022e(0x42c)](_0x54c16f),_0x53f6a4=_0x1fcb07[_0x53022e(0x42c)](_0x28cffc),_0x1180be=_0x1fcb07['get'](_0x1e1f0c);return new _0x1486bd(_0x27929b=>{const _0x5de58d=_0x53022e;let _0x53e8aa=()=>{const _0x17238a=_0x7c09;let _0x1552c9=ki(_0x1fcb07),_0x5c0bac=_0x1552c9?_0x1180be['getShapeDataById'](_0x1552c9[_0x17238a(0x351)],_0x1552c9[_0x17238a(0x21b)],_0x1552c9[_0x17238a(0x1dd)]):null;_0x27929b[_0x17238a(0x1c4)](_0x5c0bac?_0x12b5de(_0x5c0bac)??'':'');},_0x2cbf93=_0x53f6a4[_0x5de58d(0x1d8)][_0x5de58d(0x456)](_0x53e8aa),_0x3f7101=_0xac2f70[_0x5de58d(0x43c)](_0x3fe259=>{_0x3fe259['id']===_0x172941['id']&&_0x53e8aa();});return _0x53e8aa(),()=>{const _0x2cd60b=_0x5de58d;_0x2cbf93[_0x2cd60b(0x34c)](),_0x3f7101[_0x2cd60b(0x20d)]();};});}function ki(_0x14214b){const _0x5ecd8c=_0x291e41;var _0x247a62;let _0xc28fcc=_0x14214b[_0x5ecd8c(0x42c)](_0x28cffc)[_0x5ecd8c(0x1f4)]();return _0xc28fcc['length']===0x1&&((_0x247a62=_0xc28fcc[0x0])==null?void 0x0:_0x247a62[_0x5ecd8c(0x209)])===_0x40fd85[_0x5ecd8c(0x43a)]?_0xc28fcc[0x0]:null;}function Ai(_0x219532,_0x2203fc=!0x1){const _0x1e2434=_0x291e41;let _0x2803c7=_0x219532[_0x1e2434(0x42c)](_0x54c16f),_0x4de92b=_0x219532['get'](_0x28cffc),_0xe5702=_0x219532[_0x1e2434(0x42c)](_0x1e1f0c);return new _0x1486bd(_0x2c21b2=>{const _0x419196=_0x1e2434;let _0x22304a=()=>{const _0x133d12=_0x7c09;let _0x301844=ki(_0x219532);if(!_0x301844){_0x2c21b2[_0x133d12(0x1c4)](!0x0);return;}let _0x2f469b=_0xe5702['getShapeDataById'](_0x301844[_0x133d12(0x351)],_0x301844[_0x133d12(0x21b)],_0x301844[_0x133d12(0x1dd)]);_0x2c21b2[_0x133d12(0x1c4)](!_0x2f469b||_0x2203fc&&_0x2f469b['formulaBinding']==null);},_0x2c4521=_0x4de92b[_0x419196(0x1d8)][_0x419196(0x456)](_0x22304a),_0x1cf033=_0x2803c7[_0x419196(0x43c)](_0x427721=>{_0x427721['id']===_0x172941['id']&&_0x22304a();});return _0x22304a(),()=>{const _0x284d6f=_0x419196;_0x2c4521[_0x284d6f(0x34c)](),_0x1cf033[_0x284d6f(0x20d)]();};});}function ji(_0x2d0a83){const _0x37b455=_0x291e41;let _0x51642c=_0x2d0a83[_0x37b455(0x42c)](_0x28cffc),_0x1ecc68=_0x2d0a83['get'](_0x1e1f0c);return _0x51642c[_0x37b455(0x1d8)][_0x37b455(0x24c)](_0x1c299f(_0x51642c[_0x37b455(0x1f4)]()),_0x415b6a(()=>{const _0x48731b=_0x37b455;let _0x4e5465=ki(_0x2d0a83),_0x32523c=_0x4e5465?_0x1ecc68[_0x48731b(0x1a4)](_0x4e5465[_0x48731b(0x351)],_0x4e5465['subUnitId'],_0x4e5465['drawingId']):void 0x0;return _0x32523c===void 0x0||_0x5184c7(_0x32523c);}));}function Mi(_0x5e4953){const _0x1ff8e9=_0x291e41;return{'id':Jr['id'],'type':_0x570be5[_0x1ff8e9(0x1f5)],'icon':'PaintIcon','title':_0x1ff8e9(0x1a1),'tooltip':_0x1ff8e9(0x1a1),'selections':[{'label':{'name':fi,'hoverable':!0x1,'selectable':!0x1}}],'value$':Oi(_0x5e4953),'hidden$':Ai(_0x5e4953)};}function Ni(_0x1e220b){const _0xf763ab=_0x291e41;return{'id':Yr['id'],'type':_0x570be5[_0xf763ab(0x1f5)],'icon':_0xf763ab(0x379),'title':'shape-editor-ui.toolbar.changeShape','tooltip':_0xf763ab(0x319),'slot':!0x0,'selections':[{'label':{'name':_0x527a50,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ji(_0x1e220b)};}function Pi(_0x1b5fdd,_0x45c76c,_0x4afc65=!0x1){const _0x4c8ebb=_0x291e41;return _0x2c4eca=>({'id':_0x1b5fdd,'type':_0x570be5[_0x4c8ebb(0x19b)],'label':{'name':_0x45c76c,'hoverable':!0x1,'selectable':!0x1},'hidden$':Ai(_0x2c4eca,_0x4afc65)});}const Fi=Pi(xi,pi),Ii=Pi(Si,mi),Li=Pi(Ci,hi,!0x0);function Ri(_0x48334a,_0x3d0e30,_0x11c8ed,_0x2c42ec){return _0x30e57e=>({'id':_0x48334a,'commandId':_0x15f547['id'],'type':_0x570be5['BUTTON'],'icon':_0x11c8ed,'title':_0x2c42ec,'tooltip':_0x2c42ec,'hidden$':Ai(_0x30e57e),'params':()=>{const _0x2c3c5a=_0x7c09;let _0x477f3a=ki(_0x30e57e);return _0x477f3a?{'unitId':_0x477f3a['unitId'],'subUnitId':_0x477f3a['subUnitId'],'drawingIds':[_0x477f3a[_0x2c3c5a(0x1dd)]],'arrangeType':_0x3d0e30}:void 0x0;}});}const zi=Ri(wi,_0x10dd10[_0x291e41(0x221)],_0x291e41(0x393),_0x291e41(0x2d6)),Bi=Ri(Ti,_0x10dd10[_0x291e41(0x2f0)],_0x291e41(0x373),_0x291e41(0x25d)),Vi=Ri(Ei,_0x10dd10[_0x291e41(0x3e7)],'TopmostIcon',_0x291e41(0x3a3)),Hi=Ri(Di,_0x10dd10[_0x291e41(0x33f)],_0x291e41(0x259),_0x291e41(0x341));function Ui(_0x5ee7e5){const _0x462aa8=_0x291e41;let _0x549550=_0x5ee7e5[_0x462aa8(0x42c)](_0x31c5f5);return{'activated$':_0x5ccdfe(()=>_0x549550['sidebarOptions$'][_0x462aa8(0x24c)](_0x1c299f(_0x549550[_0x462aa8(0x32b)]),_0x415b6a(_0x43a0c8=>_0x43a0c8[_0x462aa8(0x42d)]===!0x0&&_0x43a0c8['id']===_0x462aa8(0x2ee)),_0xfbaf87())),'id':Kr['id'],'type':_0x570be5[_0x462aa8(0x19b)],'icon':_0x462aa8(0x3b2),'title':_0x462aa8(0x318),'tooltip':_0x462aa8(0x318),'hidden$':Ai(_0x5ee7e5),'params':()=>{const _0x451111=_0x462aa8;let _0x4c95cd=ki(_0x5ee7e5);return _0x4c95cd?{'unitId':_0x4c95cd[_0x451111(0x351)],'subUnitId':_0x4c95cd[_0x451111(0x21b)],'drawingId':_0x4c95cd[_0x451111(0x1dd)]}:void 0x0;}};}const Wi={[_0x388a30[_0x291e41(0x1ea)]]:{[Hr]:{'order':0x64,'title':_0x291e41(0x318),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Jr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Mi},[Yr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ni}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[xi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Fi}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[Si]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Ii}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[oi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ui},[si]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':di},[wi]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':zi},[Ti]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Bi},[Ei]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Vi},[Di]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Hi}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[Ci]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Li}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[Kr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ui},[_0x4895c1['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x219f54}}}}},Gi={[_0x412e51[_0x291e41(0x387)]]:{[Rr['id']]:{'order':0x3,'menuItemFactory':ii}}},Ki={...Gi,[_0x412e51['OTHERS']]:{[Gr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ai}},[_0x42929a[_0x291e41(0x35a)]]:{[_0x5580dd[_0x291e41(0x238)]]:{[oi]:{'order':0x4,'menuItemFactory':ui},[si]:{'order':0x5,'menuItemFactory':di}}}};var qi=_0x291e41(0x1d7),Ji='1.4.0';const Yi={'id':_0x291e41(0x2ae),'type':_0x303f65[_0x291e41(0x3e6)],'handler'(_0x483b14,_0x2b52ad){const _0x318eef=_0x291e41;return _0x2b52ad?(_0x483b14[_0x318eef(0x42c)](_0xdd7ac8)[_0x318eef(0x269)](_0x2b52ad['mode'],{'hostType':_0x3c82b9[_0x318eef(0x35c)],'shapeId':_0x2b52ad[_0x318eef(0x1dd)],'subUnitId':_0x2b52ad[_0x318eef(0x21b)],'unitId':_0x2b52ad['unitId']}),!0x0):!0x1;}},Xi=_0x291e41(0x34f),Zi={};let Qi=class extends _0x557a26{constructor(_0x2431b1,_0x4f668b,_0x39cc98,_0x118314,_0x5b9c69){const _0x471f47=_0x291e41;super(),this[_0x471f47(0x343)]=_0x2431b1,this['_drawingManagerService']=_0x4f668b,this[_0x471f47(0x449)]=_0x39cc98,this[_0x471f47(0x394)]=_0x118314,this[_0x471f47(0x388)]=_0x5b9c69,q(this,'_activeImageId',null),q(this,_0x471f47(0x32f),null),q(this,_0x471f47(0x1df),null),q(this,'_activeAdjustPointList',void 0x0),q(this,_0x471f47(0x1a5),[]),q(this,_0x471f47(0x299),0x0),q(this,'_baseTop',0x0),q(this,_0x471f47(0x267),0x0),q(this,_0x471f47(0x1d1),0x0),q(this,_0x471f47(0x25c),!0x1),q(this,_0x471f47(0x23e),void 0x0),q(this,_0x471f47(0x22f),void 0x0),q(this,_0x471f47(0x370),void 0x0),q(this,_0x471f47(0x3ba),void 0x0),q(this,'_isImagePointerDown',!0x1),this[_0x471f47(0x300)](),this[_0x471f47(0x1b2)]();}['clearAdjustControls'](){this['_clearControls']();}[_0x291e41(0x2b0)](){const _0x3c3089=_0x291e41;this[_0x3c3089(0x43f)](),this['_createControls'](!0x0);}[_0x291e41(0x260)](_0x326e95,_0x17ea7e,_0x1d9220,_0x4d712e){const _0x55636d=_0x291e41;let _0x55ac39=_0x326e95;if(_0x55ac39!==_0x206995['None']&&_0x326e95!==_0x55636d(0x1da))try{let _0x33836b=new _0xdd4745(_0x55ac39,_0x55636d(0x2a1)+_0x326e95);return _0x4d712e&&_0x33836b[_0x55636d(0x3c5)]({'adjustValues':_0x4d712e},!0x0),_0x33836b[_0x55636d(0x31e)]({'width':_0x17ea7e,'height':_0x1d9220}),_0x33836b;}catch{return;}}[_0x291e41(0x1de)](_0x53c57c,_0x27d39c,_0x5ad50c){const _0x573913=_0x291e41;let _0x530f19={'unitId':_0x53c57c,'subUnitId':_0x27d39c,'drawingId':_0x5ad50c},_0x3d76a2=this[_0x573913(0x346)][_0x573913(0x312)](_0x530f19);if(_0x3d76a2&&_0x3d76a2[_0x573913(0x209)]===_0x40fd85['DRAWING_IMAGE'])return _0x3d76a2;}['_getImagePrstGeom'](_0x4f0379,_0x426c76,_0x2cb1c2){const _0x27adf9=_0x291e41;let _0x31a55f=this[_0x27adf9(0x449)][_0x27adf9(0x3a7)](_0x4f0379);if(!_0x31a55f)return;let {scene:_0x3f54c1}=_0x31a55f,_0x2eb53c=_0x38d621({'unitId':_0x4f0379,'subUnitId':_0x426c76,'drawingId':_0x2cb1c2}),_0x329ed=_0x3f54c1[_0x27adf9(0x1fc)](_0x2eb53c);if(_0x329ed instanceof _0x3e5f8e){let _0x434d7d=_0x329ed[_0x27adf9(0x324)];if(_0x434d7d)return{'prstGeom':_0x434d7d,'adjustValues':_0x329ed[_0x27adf9(0x1d5)]};}}[_0x291e41(0x1d9)](_0x55052e=!0x1){const _0x100221=_0x291e41;if(!this[_0x100221(0x32f)]||!this[_0x100221(0x1df)]||!this[_0x100221(0x192)])return;let _0x42eadd=this[_0x100221(0x449)][_0x100221(0x3a7)](this[_0x100221(0x32f)]);if(!_0x42eadd||!_0x42eadd[_0x100221(0x401)](_0x5635f6)['getCurrentSkeleton']())return;let {scene:_0x73a68f}=_0x42eadd,_0x13147a=this[_0x100221(0x1de)](this[_0x100221(0x32f)],this[_0x100221(0x1df)],this[_0x100221(0x192)]);if(!_0x13147a)return;let {transform:_0x20fd64}=_0x13147a;if(!_0x20fd64)return;let {left:_0x5190f8,top:_0x1b8d36,width:_0x1e6e3d,height:_0x516afd,flipX:_0x5bd96d,flipY:_0x4901dd,angle:_0x537638=0x0}=_0x20fd64;if(_0x5190f8===void 0x0||_0x1b8d36===void 0x0)return;let _0x2b54f8=this[_0x100221(0x29c)](this[_0x100221(0x32f)],this[_0x100221(0x1df)],this[_0x100221(0x192)]);if(!_0x2b54f8)return;if(_0x55052e){let _0x3c58f5=this['_getOrCreateShapeModel'](_0x2b54f8[_0x100221(0x324)],_0x1e6e3d||0x0,_0x516afd||0x0,_0x2b54f8[_0x100221(0x342)]);if(!_0x3c58f5)return;this['_activeAdjustPointList']=_0x3c58f5['getDrawingPoints']();}let _0x17d413=this[_0x100221(0x2dd)];if(_0x17d413&&_0x17d413[_0x100221(0x3c3)]!==0x0)for(let _0xe061d2=0x0;_0xe061d2<_0x17d413[_0x100221(0x3c3)];_0xe061d2++){let _0x5434f7=_0x17d413[_0xe061d2],_0x54e0c6=_0x5434f7['x'],_0x316e87=_0x5434f7['y'];if(_0x5bd96d&&(_0x54e0c6=(_0x1e6e3d||0x0)-_0x54e0c6),_0x4901dd&&(_0x316e87=(_0x516afd||0x0)-_0x316e87),_0x537638!==0x0){let _0x226139=(_0x1e6e3d||0x0)/0x2,_0x4b4821=(_0x516afd||0x0)/0x2,_0x4f6fd5=_0x537638*Math['PI']/0xb4,_0x25f3fc=Math[_0x100221(0x375)](_0x4f6fd5),_0x24b209=Math[_0x100221(0x3ae)](_0x4f6fd5),_0x2a7ee6=_0x54e0c6-_0x226139,_0x482ce2=_0x316e87-_0x4b4821;_0x54e0c6=_0x226139+(_0x2a7ee6*_0x25f3fc-_0x482ce2*_0x24b209),_0x316e87=_0x4b4821+(_0x2a7ee6*_0x24b209+_0x482ce2*_0x25f3fc);}let _0x43ca52={'x':_0x54e0c6,'y':_0x316e87,'adjName':_0x5434f7[_0x100221(0x443)]};this['_addControl'](_0x73a68f,_0x43ca52,_0x43ca52[_0x100221(0x443)],_0x5190f8,_0x1b8d36,this[_0x100221(0x32f)],this['_subUnitId']);}}[_0x291e41(0x336)](_0x3a4de7,_0x2c47a1,_0x20a81c,_0x22e16c,_0x39065b,_0x419d30,_0x18753e){const _0x3c84ff=_0x291e41;if(!this[_0x3c84ff(0x192)])return;let _0x3d9207=_0x3c84ff(0x285)+this['_activeImageId']+'-'+_0x20a81c,_0x3af53d=_0x3a4de7['getObjectIncludeInGroup'](_0x3d9207);if(_0x3af53d){_0x3af53d[_0x3c84ff(0x220)]({'left':_0x2c47a1['x']+_0x22e16c-_0x179988[_0x3c84ff(0x3dd)],'top':_0x2c47a1['y']+_0x39065b-_0x179988[_0x3c84ff(0x3dd)]});return;}let _0x25e885=new Fr(_0x3d9207,{'left':_0x2c47a1['x']+_0x22e16c-_0x179988[_0x3c84ff(0x3dd)],'top':_0x2c47a1['y']+_0x39065b-_0x179988[_0x3c84ff(0x3dd)],'adjName':_0x20a81c,'shapeId':this[_0x3c84ff(0x192)],'unitId':_0x419d30,'subUnitId':_0x18753e,'width':_0x179988[_0x3c84ff(0x3dd)]+0x8,'height':_0x179988[_0x3c84ff(0x3dd)]+0x8,'zIndex':_0x10b13b+0x1,'evented':!0x0});this[_0x3c84ff(0x1a5)]['push'](_0x25e885),this[_0x3c84ff(0x455)](_0x25e885,_0x3a4de7,_0x20a81c),_0x3a4de7['addObject'](_0x25e885,_0x10b13b+0x1);}[_0x291e41(0x43f)](){const _0x5b28f7=_0x291e41;this[_0x5b28f7(0x1a5)]['length']!==0x0&&(this['_shapes'][_0x5b28f7(0x44b)](_0x2f4691=>_0x2f4691['dispose']()),this[_0x5b28f7(0x1a5)]=[]);}[_0x291e41(0x436)](_0x28d2b0,_0x32bb8e){const _0x46d011=_0x291e41;var _0x49339c;let _0x1cecb5={'x':0x0,'y':0x0},_0x95f51b=this['_renderManagerService'][_0x46d011(0x3a7)](_0x28d2b0);if(!_0x95f51b||!_0x95f51b[_0x46d011(0x401)](_0x5635f6)[_0x46d011(0x2d8)](_0x32bb8e))return _0x1cecb5;let _0x2c7b56=_0x95f51b['with'](_0xbd2a68),_0x3e439d=_0x2c7b56==null?void 0x0:_0x2c7b56[_0x46d011(0x212)]();if(!_0x3e439d)return _0x1cecb5;let _0xf9fcaf=(_0x49339c=this[_0x46d011(0x394)][_0x46d011(0x208)](_0x28d2b0))==null?void 0x0:_0x49339c['getSheetBySheetId'](_0x32bb8e);if(!_0xf9fcaf)return _0x1cecb5;let _0x2b3426=_0x53677b(_0x3e439d[_0x46d011(0x38c)],_0x3e439d[_0x46d011(0x457)],_0x95f51b[_0x46d011(0x1f2)],_0xf9fcaf);return _0x2b3426?{'x':_0x2b3426['viewportScrollX'],'y':_0x2b3426['viewportScrollY']}:_0x1cecb5;}[_0x291e41(0x245)](_0x590280,_0x23d838){const _0x124a45=_0x291e41;var _0x5c94cc;let _0x4de9d3=(_0x5c94cc=this['_univerInstanceService'][_0x124a45(0x208)](_0x590280))==null?void 0x0:_0x5c94cc['getSheetBySheetId'](_0x23d838);return(_0x4de9d3==null?void 0x0:_0x4de9d3[_0x124a45(0x3eb)]())??0x1;}[_0x291e41(0x455)](_0x2f6ad5,_0x12dd84,_0x24456b){const _0x5a325c=_0x291e41;this[_0x5a325c(0x432)](_0x53ca46(_0x2f6ad5[_0x5a325c(0x1e7)][_0x5a325c(0x1a9)]((_0x181ae0,_0x38a24f)=>{const _0x5513e1=_0x5a325c;var _0x5db8e2,_0x43cbfb,_0x577084;let {unitId:_0x2c4eb2,subUnitId:_0x28d141,drawingId:_0x33d5a1}=_0x2f6ad5[_0x5513e1(0x2b4)](),_0x4cae81=this[_0x5513e1(0x1de)](_0x2c4eb2,_0x28d141,_0x33d5a1);if(!(_0x4cae81!=null&&_0x4cae81['transform']))return;let {left:_0xceb146,top:_0x27888f,width:_0xcb86bf,height:_0xccc101}=_0x4cae81[_0x5513e1(0x21c)];this[_0x5513e1(0x299)]=_0xceb146||0x0,this['_baseTop']=_0x27888f||0x0,this[_0x5513e1(0x267)]=_0xcb86bf||0x0,this[_0x5513e1(0x1d1)]=_0xccc101||0x0;let _0x5b020d=!!((_0x5db8e2=_0x4cae81['transform'])!=null&&_0x5db8e2[_0x5513e1(0x26b)]),_0x49bf33=!!((_0x43cbfb=_0x4cae81[_0x5513e1(0x21c)])!=null&&_0x43cbfb[_0x5513e1(0x1d2)]),_0x2c704c=((_0x577084=_0x4cae81[_0x5513e1(0x21c)])==null?void 0x0:_0x577084[_0x5513e1(0x2a0)])||0x0,_0x24d75f=this[_0x5513e1(0x29c)](_0x2c4eb2,_0x28d141,_0x33d5a1);if(!_0x24d75f)return;let _0x266dbf=this[_0x5513e1(0x260)](_0x24d75f[_0x5513e1(0x324)],this[_0x5513e1(0x267)],this[_0x5513e1(0x1d1)],_0x24d75f[_0x5513e1(0x342)]);if(!_0x266dbf||(this['_activeShapeModel']=_0x266dbf,this[_0x5513e1(0x23e)]=_0x266dbf[_0x5513e1(0x437)](_0x24456b),!this[_0x5513e1(0x23e)]))return;this[_0x5513e1(0x25c)]=!0x0,_0x12dd84[_0x5513e1(0x424)]();let _0x50eaca=_0x24d75f['prstGeom'];this[_0x5513e1(0x370)]=_0x12dd84[_0x5513e1(0x349)][_0x5513e1(0x1a9)]((_0x512478,_0x81b651)=>{const _0x4be003=_0x5513e1;if(!this['_isStartAdjusting'])return;let {offsetX:_0x147cd9,offsetY:_0x1d390b}=_0x512478,_0x4e66a6=this['_activeAdjustInfo'];if(!this['_activeShapeModel']||!_0x4e66a6)return;_0x12dd84[_0x4be003(0x424)](),_0x12dd84[_0x4be003(0x329)](_0x15231c[_0x4be003(0x198)]);let _0x3c194a={'left':0x0,'top':0x0,'width':this[_0x4be003(0x267)],'height':this[_0x4be003(0x1d1)]},_0x4eaccb=this[_0x4be003(0x436)](_0x2c4eb2,_0x28d141),_0x461547=this[_0x4be003(0x245)](_0x2c4eb2,_0x28d141),_0x4f8673=_0x147cd9/_0x461547+_0x4eaccb['x']-this['_baseLeft'],_0x50da76=_0x1d390b/_0x461547+_0x4eaccb['y']-this[_0x4be003(0x3b4)];if(_0x2c704c!==0x0){let _0x5972c3=this[_0x4be003(0x267)]/0x2,_0x274b27=this[_0x4be003(0x1d1)]/0x2,_0x3599ad=_0x2c704c*Math['PI']/0xb4,_0x370dda=Math[_0x4be003(0x375)](_0x3599ad),_0x121b69=Math['sin'](_0x3599ad),_0xdfb4d7=_0x4f8673-_0x5972c3,_0x59f371=_0x50da76-_0x274b27;_0x4f8673=_0x5972c3+(_0xdfb4d7*_0x370dda+_0x59f371*_0x121b69),_0x50da76=_0x274b27+(-_0xdfb4d7*_0x121b69+_0x59f371*_0x370dda);}_0x5b020d&&(_0x4f8673=this[_0x4be003(0x267)]-_0x4f8673),_0x49bf33&&(_0x50da76=this[_0x4be003(0x1d1)]-_0x50da76);let _0x5d1d5b=this[_0x4be003(0x22f)][_0x4be003(0x399)](_0x3c194a,{'x':_0x4f8673,'y':_0x50da76},_0x4e66a6,_0x5b020d,_0x49bf33);if(Object[_0x4be003(0x3f1)](_0x5d1d5b)[_0x4be003(0x3c3)]!==0x0){for(let [_0x8da784,_0x1995ea]of Object[_0x4be003(0x384)](_0x5d1d5b))this[_0x4be003(0x22f)]['setAdjustValueByName'](_0x8da784,_0x1995ea);this[_0x4be003(0x22f)][_0x4be003(0x31e)]({'width':this[_0x4be003(0x267)],'height':this[_0x4be003(0x1d1)]}),this['_updateImageAdjValues'](_0x2c4eb2,_0x28d141,_0x33d5a1,_0x5d1d5b),this[_0x4be003(0x2dd)]=this[_0x4be003(0x22f)][_0x4be003(0x44f)](),this['_createControls'](),_0x81b651[_0x4be003(0x2a5)]();}}),this[_0x5513e1(0x3ba)]=_0x12dd84[_0x5513e1(0x274)][_0x5513e1(0x1a9)]((_0x6bfa22,_0x1ae70c)=>{const _0x26b0ea=_0x5513e1;if(this['_adjHandlerPointerMove'][_0x26b0ea(0x34c)](),this[_0x26b0ea(0x3ba)][_0x26b0ea(0x34c)](),_0x12dd84['resetCursor'](),this[_0x26b0ea(0x22f)]){let _0x18b2a8=this[_0x26b0ea(0x22f)][_0x26b0ea(0x36e)](),_0x29da56={};for(let _0x1e7911 of _0x18b2a8){let _0x50e714=this[_0x26b0ea(0x22f)]['getAdjustValueByName'](_0x1e7911);_0x50e714!==void 0x0&&(_0x29da56[_0x1e7911]=_0x50e714);}this[_0x26b0ea(0x388)][_0x26b0ea(0x368)](_0x2c4eb2,_0x28d141,_0x33d5a1,_0x50eaca,_0x29da56);}this[_0x26b0ea(0x23e)]=void 0x0,this[_0x26b0ea(0x22f)]=void 0x0,this[_0x26b0ea(0x25c)]=!0x1,_0x1ae70c[_0x26b0ea(0x2a5)](),_0x12dd84['enableObjectsEvent']();}),_0x38a24f[_0x5513e1(0x2a5)]();})));}[_0x291e41(0x1c6)](_0x4f8aeb,_0x4f7680,_0x17d755,_0x4ac6f3){const _0x209380=_0x291e41;let _0x223d31=this[_0x209380(0x449)][_0x209380(0x3a7)](_0x4f8aeb);if(!_0x223d31)return;let {scene:_0x226071}=_0x223d31,_0x39ba68=_0x38d621({'unitId':_0x4f8aeb,'subUnitId':_0x4f7680,'drawingId':_0x17d755}),_0x18eab7=_0x226071[_0x209380(0x1fc)](_0x39ba68);if(_0x18eab7 instanceof _0x3e5f8e){let _0x2e601d=_0x18eab7[_0x209380(0x1d5)]??{};_0x18eab7[_0x209380(0x352)]({..._0x2e601d,..._0x4ac6f3}),_0x18eab7[_0x209380(0x293)](!0x0);}}[_0x291e41(0x1b2)](){const _0x8b3e94=_0x291e41;let _0x5b9a98=this[_0x8b3e94(0x394)]['getCurrentTypeOfUnit$'](_0x3c82b9[_0x8b3e94(0x35c)]);this[_0x8b3e94(0x432)](_0x5b9a98['pipe'](_0x17931b(_0x1cfb82=>_0x1cfb82?_0x1cfb82[_0x8b3e94(0x3bc)]['pipe'](_0x17931b(_0xf79eba=>{const _0x33ffcb=_0x8b3e94;if(!_0xf79eba)return _0x257bb9;let _0x2a35fc=_0x1cfb82['getUnitId'](),_0x28b3a6=this[_0x33ffcb(0x449)]['getRenderUnitById'](_0x2a35fc),_0x3cd5d6=_0x28b3a6==null?void 0x0:_0x28b3a6['scene'];return _0x3cd5d6?_0x413c25(_0x3cd5d6):_0x257bb9;})):_0x257bb9))[_0x8b3e94(0x456)](_0x3494b1=>{const _0x47227d=_0x8b3e94;let _0x47f386=_0x3494b1[_0x47227d(0x39e)]();this[_0x47227d(0x432)](_0x3494b1[_0x47227d(0x349)][_0x47227d(0x1a9)](()=>{const _0x287769=_0x47227d;this[_0x287769(0x45a)]&&this['_clearControls']();})),this['disposeWithMe'](_0x47f386['changeStart$'][_0x47227d(0x456)](_0x232dd3=>{const _0x1e6bc1=_0x47227d;let {objects:_0x6737e4}=_0x232dd3;if(this[_0x1e6bc1(0x1d9)](),_0x6737e4!==null&&_0x6737e4[_0x1e6bc1(0x215)]===0x1){let _0x355b79=_0x6737e4['values']()[_0x1e6bc1(0x1c4)]()[_0x1e6bc1(0x3ec)];_0x355b79 instanceof _0x3e5f8e&&_0x355b79[_0x1e6bc1(0x324)]&&(this[_0x1e6bc1(0x45a)]=!0x0);}})),this[_0x47227d(0x432)](_0x47f386['changing$'][_0x47227d(0x456)](()=>{this['_isImagePointerDown']&&this['_clearControls']();})),this['disposeWithMe'](_0x3494b1['onPointerUp$'][_0x47227d(0x1a9)](()=>{const _0x11bb0f=_0x47227d;this[_0x11bb0f(0x45a)]&&(this['_isImagePointerDown']=!0x1,this[_0x11bb0f(0x1d9)]());})),this[_0x47227d(0x432)](_0x47f386['changeEnd$'][_0x47227d(0x456)](()=>{const _0x4ca1d2=_0x47227d;if(this['_unitId']&&this[_0x4ca1d2(0x1df)]&&this[_0x4ca1d2(0x192)]){let _0x2fa743=this[_0x4ca1d2(0x29c)](this[_0x4ca1d2(0x32f)],this[_0x4ca1d2(0x1df)],this[_0x4ca1d2(0x192)]);if(_0x2fa743){var _0x448286,_0x6ac844;let _0x39a271=this[_0x4ca1d2(0x1de)](this[_0x4ca1d2(0x32f)],this[_0x4ca1d2(0x1df)],this['_activeImageId']),_0x2eca14=(_0x39a271==null||(_0x448286=_0x39a271[_0x4ca1d2(0x21c)])==null?void 0x0:_0x448286[_0x4ca1d2(0x45d)])||0x0,_0x61169d=(_0x39a271==null||(_0x6ac844=_0x39a271[_0x4ca1d2(0x21c)])==null?void 0x0:_0x6ac844['height'])||0x0,_0x4527e1=this[_0x4ca1d2(0x260)](_0x2fa743[_0x4ca1d2(0x324)],_0x2eca14,_0x61169d,_0x2fa743[_0x4ca1d2(0x342)]);_0x4527e1&&(this[_0x4ca1d2(0x2dd)]=_0x4527e1[_0x4ca1d2(0x44f)](),this[_0x4ca1d2(0x43f)](),this[_0x4ca1d2(0x1d9)](!0x0));}}}));}));}[_0x291e41(0x300)](){const _0x444b08=_0x291e41;this['disposeWithMe'](this[_0x444b08(0x346)]['focus$']['subscribe'](_0x330af5=>{const _0x56a2d8=_0x444b08;if(_0x330af5['length']===0x1){let _0x4c3dec=_0x330af5[0x0];if(_0x4c3dec[_0x56a2d8(0x209)]===_0x40fd85['DRAWING_IMAGE']){let {unitId:_0x1ed051,subUnitId:_0x44cd40,drawingId:_0x5cac55}=_0x4c3dec,_0x1108ec=this[_0x56a2d8(0x29c)](_0x1ed051,_0x44cd40,_0x5cac55);if(_0x1108ec){var _0x105aa7,_0x476d9d;this[_0x56a2d8(0x192)]=_0x5cac55,this[_0x56a2d8(0x32f)]=_0x1ed051,this[_0x56a2d8(0x1df)]=_0x44cd40;let _0x553cbe=this['_getImageDrawingInfo'](_0x1ed051,_0x44cd40,_0x5cac55),_0x3065d7=(_0x553cbe==null||(_0x105aa7=_0x553cbe[_0x56a2d8(0x21c)])==null?void 0x0:_0x105aa7[_0x56a2d8(0x45d)])||0x0,_0x1c2dfa=(_0x553cbe==null||(_0x476d9d=_0x553cbe[_0x56a2d8(0x21c)])==null?void 0x0:_0x476d9d[_0x56a2d8(0x257)])||0x0,_0x1ec52b=this[_0x56a2d8(0x260)](_0x1108ec['prstGeom'],_0x3065d7,_0x1c2dfa,_0x1108ec[_0x56a2d8(0x342)]);_0x1ec52b&&(this[_0x56a2d8(0x2dd)]=_0x1ec52b[_0x56a2d8(0x44f)]()),this[_0x56a2d8(0x43f)](),this['_createControls'](!0x0);}else this[_0x56a2d8(0x45b)]();}else this[_0x56a2d8(0x45b)]();}else this['_resetState']();})),this[_0x444b08(0x432)](this['_drawingManagerService']['update$'][_0x444b08(0x456)](_0x15f2d5=>{const _0x2023ed=_0x444b08;if(_0x15f2d5[_0x2023ed(0x3c3)]===0x1){let _0x5de0ca=_0x15f2d5[0x0],_0x485daf=this[_0x2023ed(0x346)][_0x2023ed(0x312)](_0x5de0ca);(_0x485daf==null?void 0x0:_0x485daf[_0x2023ed(0x209)])===_0x40fd85[_0x2023ed(0x27d)]&&this['_activeImageId']===_0x5de0ca[_0x2023ed(0x1dd)]&&(this[_0x2023ed(0x43f)](),this[_0x2023ed(0x1d9)](!0x0));}})),this['disposeWithMe'](this[_0x444b08(0x346)][_0x444b08(0x31c)][_0x444b08(0x456)](_0x1ea100=>{const _0x3f0321=_0x444b08;for(let _0x366e97 of _0x1ea100)this[_0x3f0321(0x192)]===_0x366e97[_0x3f0321(0x1dd)]&&this['_resetState']();}));}['_resetState'](){const _0x66523b=_0x291e41;this[_0x66523b(0x192)]=null,this['_unitId']=null,this[_0x66523b(0x1df)]=null,this[_0x66523b(0x2dd)]=void 0x0,this['_clearControls']();}};Qi=X([Y(0x1,_0x28cffc),Y(0x2,_0x5b79b4(_0x1158d5)),Y(0x3,_0x44b74c),Y(0x4,_0x5b79b4(Q))],Qi);function $i(_0x22e76f){return _0x22e76f['trim']()||void 0x0;}function ea(_0x3910e7,_0x3ce9ab,_0x8e2520){const _0x34046f=_0x291e41;var _0x40af29;return((_0x40af29=_0x3910e7[_0x34046f(0x358)])==null?void 0x0:_0x40af29[_0x34046f(0x243)]())||_0x8e2520['t'](_0x34046f(0x3c9)+_0x2dbe92(_0x3910e7[_0x34046f(0x209)]))+'\x20'+(_0x3ce9ab+0x1);}function ta({PanelComponent:_0x49f501=_0x43b8f7}){const _0x50c8b1=_0x291e41;var _0x4d6327;let _0x3ab862=_0x42cc68(_0x13738a),_0x5d0e22={'title':_0x3ab862['t']('drawing-ui.objectListPanel.title'),'empty':_0x3ab862['t']('drawing-ui.objectListPanel.empty'),'showAll':_0x3ab862['t'](_0x50c8b1(0x1ab)),'hideAll':_0x3ab862['t']('drawing-ui.objectListPanel.hideAll'),'lockAll':_0x3ab862['t'](_0x50c8b1(0x1ed)),'unlockAll':_0x3ab862['t'](_0x50c8b1(0x29d)),'moveForward':_0x3ab862['t'](_0x50c8b1(0x3fe)),'moveBackward':_0x3ab862['t'](_0x50c8b1(0x1a3)),'close':_0x3ab862['t'](_0x50c8b1(0x433)),'show':_0x3ab862['t'](_0x50c8b1(0x1f1)),'hide':_0x3ab862['t']('drawing-ui.objectListPanel.hide'),'lock':_0x3ab862['t'](_0x50c8b1(0x1bf)),'unlock':_0x3ab862['t'](_0x50c8b1(0x325)),'lockHint':_0x3ab862['t'](_0x50c8b1(0x248)),'unlockHint':_0x3ab862['t']('drawing-ui.objectListPanel.unlockHint'),'name':_0x3ab862['t']('drawing-ui.objectListPanel.name'),'nameInput':_0x3ab862['t'](_0x50c8b1(0x331)),'description':_0x3ab862['t'](_0x50c8b1(0x22c)),'descriptionPlaceholder':_0x3ab862['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0x3ab862['t'](_0x50c8b1(0x3bd)),'noSelection':_0x3ab862['t'](_0x50c8b1(0x3e3)),'locate':_0x3ab862['t'](_0x50c8b1(0x2d2)),'expand':_0x3ab862['t'](_0x50c8b1(0x21d)),'collapse':_0x3ab862['t'](_0x50c8b1(0x407)),'dragToReorder':_0x3ab862['t'](_0x50c8b1(0x2a4)),'search':_0x3ab862['t'](_0x50c8b1(0x339)),'filterAll':_0x3ab862['t'](_0x50c8b1(0x19a)),'filterHidden':_0x3ab862['t'](_0x50c8b1(0x3d4)),'filterLocked':_0x3ab862['t'](_0x50c8b1(0x2c7)),'sectionCanvas':_0x3ab862['t']('drawing-ui.objectListPanel.sectionCanvas'),'sectionFloating':_0x3ab862['t'](_0x50c8b1(0x213))},_0x365285=_0x42cc68(_0x54c16f),_0x964fb2=_0x42cc68(_0x44b74c),_0x28bc80=_0x42cc68(_0x17b29e),_0xbf1791=_0x42cc68(_0x28cffc),_0x4770df=_0x42cc68(_0x1158d5),[,_0x7543c9]=_0x2c6db3(_0x279070=>_0x279070+0x1,0x0),_0x59ccdc=_0x964fb2[_0x50c8b1(0x453)](_0x3c82b9[_0x50c8b1(0x35c)]),_0x2ff65f=(_0x59ccdc==null?void 0x0:_0x59ccdc[_0x50c8b1(0x440)]())??'',_0x245068=(_0x59ccdc==null||(_0x4d6327=_0x59ccdc[_0x50c8b1(0x2fe)]())==null?void 0x0:_0x4d6327[_0x50c8b1(0x431)]())??'',_0x2c2af4=_0x279878(()=>_0xbf1791[_0x50c8b1(0x1d8)],_0xbf1791[_0x50c8b1(0x1f4)](),!0x1,[_0xbf1791]);_0x3b96f0(()=>{const _0x30ac56=_0x50c8b1;let _0x76e315=_0x365285[_0x30ac56(0x43c)](()=>_0x7543c9());return()=>_0x76e315['dispose']();},[_0x365285]);let _0x337d55=_0x2ff65f&&_0x245068?_0x28bc80[_0x50c8b1(0x40e)](_0x2ff65f,_0x245068):{},_0x5a8c7a=(_0x2ff65f&&_0x245068?_0x28bc80[_0x50c8b1(0x23f)](_0x2ff65f,_0x245068):[])['map'](_0x5754ff=>_0x337d55[_0x5754ff])['filter'](_0x1a146b=>!!_0x1a146b)['reverse'](),_0x132dfc=_0x5a8c7a[_0x50c8b1(0x362)]((_0xb16701,_0x368925)=>(_0xb16701[_0x4dc94f(_0x368925[_0x50c8b1(0x209)])]+=0x1,_0xb16701),{'canvas':0x0,'floating':0x0}),_0x3678b2={'canvas':0x0,'floating':0x0},_0x2442ba=_0x5a8c7a[_0x50c8b1(0x3cd)]((_0x2527e6,_0x167971)=>{const _0x80b812=_0x50c8b1;let _0x58e79b=_0x4dc94f(_0x2527e6[_0x80b812(0x209)]),_0x512d36=_0x58e79b===_0x39a12f,_0x3d958f=_0x3678b2[_0x58e79b]++;return{'id':_0x2527e6[_0x80b812(0x1dd)],'name':ea(_0x2527e6,_0x167971,_0x3ab862),'description':_0x2527e6[_0x80b812(0x235)],'visible':_0x2527e6[_0x80b812(0x314)]!==!0x0,'selectable':_0x2527e6[_0x80b812(0x2c5)]!==!0x1,'sectionId':_0x58e79b,'sectionTitle':_0x512d36?_0x5d0e22[_0x80b812(0x265)]:_0x5d0e22[_0x80b812(0x2a8)],'capabilities':_0x512d36?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x512d36&&_0x3d958f>0x0,'canMoveBackward':!_0x512d36&&_0x3d958f<_0x132dfc[_0x80b812(0x21a)]-0x1,'canReorder':!_0x512d36};}),_0x54f5fb=_0x283095(()=>(_0x2c2af4??[])['filter'](_0x451f2e=>_0x451f2e[_0x50c8b1(0x351)]===_0x2ff65f&&_0x451f2e[_0x50c8b1(0x21b)]===_0x245068)['map'](_0x2937a1=>_0x2937a1[_0x50c8b1(0x1dd)]),[_0x2c2af4,_0x245068,_0x2ff65f]),_0x4df52f=_0x54f5fb[_0x54f5fb[_0x50c8b1(0x3c3)]-0x1]??null,_0x294261=_0x1a179d=>_0x28bc80[_0x50c8b1(0x312)]({'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingId':_0x1a179d})??null,_0x5da474=async _0x27122a=>{const _0x11d1a7=_0x50c8b1;_0x2ff65f&&_0x27122a[_0x11d1a7(0x3c3)]&&await _0x365285['executeCommand'](_0xb1758f['id'],{'unitId':_0x2ff65f,'drawings':_0x27122a});},_0x2dbc7a=async(_0x75e083,_0x4d1b45)=>{_0x294261(_0x75e083)&&await _0x5da474([{'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingId':_0x75e083,..._0x4d1b45}]);},_0x25a573=(_0x4b69fb,_0x1792ec)=>{const _0x3a5d3f=_0x50c8b1;if(!_0x2ff65f||!_0x245068)return;let _0xf9c626=_0x1792ec?_0x54f5fb[_0x3a5d3f(0x253)](_0x4b69fb)?_0x54f5fb[_0x3a5d3f(0x3c0)](_0x3d59ec=>_0x3d59ec!==_0x4b69fb):[..._0x54f5fb,_0x4b69fb]:[_0x4b69fb];_0x365285[_0x3a5d3f(0x1b7)](_0x5e3e35['id'],_0xf9c626[_0x3a5d3f(0x3cd)](_0x3a7778=>({'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingId':_0x3a7778})));let _0xcd3ef3=_0xf9c626[_0xf9c626['length']-0x1];_0xcd3ef3?_0x390dd1(_0x4770df,{'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingId':_0xcd3ef3}):_0x333af8(_0x4770df,_0x2ff65f);},_0x33ac63=async(_0x2e2c7b,_0x2b5e55)=>{const _0x12144b=_0x50c8b1;await _0x5da474(_0x2e2c7b[_0x12144b(0x3cd)](_0x4e3c32=>_0x294261(_0x4e3c32))[_0x12144b(0x3c0)](_0x80135=>!!_0x80135)['filter'](_0x322687=>_0x322687['hidden']!==!0x0!==_0x2b5e55)[_0x12144b(0x3cd)](_0x1ba45c=>({'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingId':_0x1ba45c[_0x12144b(0x1dd)],'hidden':!_0x2b5e55})));},_0x5d6fbb=async(_0x4d4ae1,_0x5d7264)=>{const _0x347b8c=_0x50c8b1;await _0x5da474(_0x4d4ae1[_0x347b8c(0x3cd)](_0x2f6c1d=>_0x294261(_0x2f6c1d))[_0x347b8c(0x3c0)](_0x128f2a=>!!_0x128f2a)['filter'](_0x1f7063=>_0x1f7063[_0x347b8c(0x2c5)]!==!0x1!==_0x5d7264)[_0x347b8c(0x3cd)](_0x369d0d=>({'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingId':_0x369d0d[_0x347b8c(0x1dd)],'selectable':_0x5d7264})));},_0x5303bd=_0x218e0a=>{const _0x4c5d82=_0x50c8b1;let _0xf95eb6=_0x294261(_0x218e0a);if(_0xf95eb6)return _0x5d6fbb([_0x218e0a],_0xf95eb6[_0x4c5d82(0x2c5)]===!0x1);},_0x4b515d=async(_0x3e8ceb,_0x5c4427)=>{var _0x40933d;let _0x4a3037=$i(_0x5c4427);(((_0x40933d=_0x294261(_0x3e8ceb))==null?void 0x0:_0x40933d['name'])??void 0x0)!==_0x4a3037&&await _0x2dbc7a(_0x3e8ceb,{'name':_0x4a3037});},_0x35bf66=async(_0x1f38d5,_0x113697)=>{const _0x59f6a3=_0x50c8b1;var _0x5d9a59;let _0x5d52f3=$i(_0x113697);(((_0x5d9a59=_0x294261(_0x1f38d5))==null?void 0x0:_0x5d9a59[_0x59f6a3(0x235)])??void 0x0)!==_0x5d52f3&&await _0x2dbc7a(_0x1f38d5,{'description':_0x5d52f3});},_0x298caf=async(_0x533d52,_0x38dd08)=>{const _0x2f29df=_0x50c8b1;_0x2ff65f&&_0x245068&&await _0x365285[_0x2f29df(0x2e1)](_0x15f547['id'],{'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingIds':[_0x533d52],'arrangeType':_0x38dd08});};return!_0x2ff65f||!_0x245068?_0x183ba7('div',{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x5d0e22['title']}):_0x183ba7(_0x49f501,{'labels':_0x5d0e22,'items':_0x2442ba,'selectedIds':_0x54f5fb,'focusedId':_0x4df52f,'showHeader':!0x1,'onSelect':_0x25a573,'onSetVisible':_0x33ac63,'onSetSelectable':_0x5d6fbb,'onCommitName':_0x4b515d,'onCommitDescription':_0x35bf66,'onMoveForward':async _0x5863f2=>_0x298caf(_0x5863f2,_0x10dd10[_0x50c8b1(0x221)]),'onMoveBackward':async _0x4e0bd6=>_0x298caf(_0x4e0bd6,_0x10dd10['backward']),'onToggleSelectable':_0x5303bd});}function na(){return _0x183ba7(ta,{'PanelComponent':_0x570c7a});}let ra=class extends _0x557a26{constructor(_0x32524b,_0x5b4a60){const _0x420508=_0x291e41;super(),this['disposeWithMe'](_0x32524b['register'](Br,na)),this[_0x420508(0x432)](_0x5b4a60[_0x420508(0x3d0)]({'BottomIcon':_0x19c68f,'FlipHorizontalIcon':_0x30529a,'FlipVerticalIcon':_0xd6996,'MoveDownIcon':_0x14ee72,'MoveUpIcon':_0xb1af47,'ObjectLayersIcon':_0x10ffc5,'ShapeFormatSettingIcon':_0x21bdf2,'TopmostIcon':_0x384eef})),this['disposeWithMe'](_0x32524b[_0x420508(0x3d0)](Xr,ri)),this[_0x420508(0x432)](_0x32524b['register'](Zr,ei)),_0x32524b[_0x420508(0x2e9)](_0x1b086b)||this[_0x420508(0x432)](_0x32524b['register'](_0x1b086b,ti));}};ra=X([Y(0x0,_0x5b79b4(_0x5a241f)),Y(0x1,_0x5b79b4(_0x3844d8))],ra);let $=class extends _0x557a26{constructor(_0x7646f5){const _0x53a535=_0x291e41;super(),this[_0x53a535(0x361)]=_0x7646f5,q(this,'_editingParams$',new _0x21d0c1(null)),q(this,'editingParams$',this[_0x53a535(0x1e0)][_0x53a535(0x3dc)]()),q(this,_0x53a535(0x20f),new _0x21d0c1(!0x1)),q(this,_0x53a535(0x1e1),this[_0x53a535(0x20f)]['asObservable']()),q(this,'_completionFrame',void 0x0),this['disposeWithMe'](this['_permissionService'][_0x53a535(0x359)][_0x53a535(0x456)](()=>{const _0x42807e=_0x53a535;let _0x10969d=this[_0x42807e(0x3e8)]();_0x10969d!=null&&_0x10969d[_0x42807e(0x42d)]&&!this[_0x42807e(0x302)](_0x10969d)&&this[_0x42807e(0x3fb)](null);}));}[_0x291e41(0x20d)](){const _0x33d1fe=_0x291e41;this['_clearCompletionFrame'](),this[_0x33d1fe(0x1e0)][_0x33d1fe(0x1c4)](null),this[_0x33d1fe(0x1e0)][_0x33d1fe(0x242)](),this[_0x33d1fe(0x20f)][_0x33d1fe(0x1c4)](!0x1),this['_onSavingEditorData$']['complete'](),super[_0x33d1fe(0x20d)]();}[_0x291e41(0x3fb)](_0x3ba1a6){const _0x1e9905=_0x291e41;(_0x3ba1a6==null||!_0x3ba1a6['visible']||this[_0x1e9905(0x302)](_0x3ba1a6))&&(this[_0x1e9905(0x35d)](),this[_0x1e9905(0x1e0)]['next'](_0x3ba1a6),(_0x3ba1a6==null||_0x3ba1a6[_0x1e9905(0x42d)]&&this[_0x1e9905(0x20f)][_0x1e9905(0x2d0)]())&&this['_onSavingEditorData$']['next'](!0x1));}[_0x291e41(0x3d2)](_0xe49d80){const _0x8bfe89=_0x291e41;this[_0x8bfe89(0x20f)][_0x8bfe89(0x1c4)](_0xe49d80);}['getEditing'](){const _0x2f3405=_0x291e41;return this['_editingParams$'][_0x2f3405(0x2d0)]();}['_canEdit'](_0x10ffc3){const _0x4ce072=_0x291e41;let _0x227563=this[_0x4ce072(0x361)][_0x4ce072(0x3da)](new _0x20b096(_0x10ffc3[_0x4ce072(0x351)])['id']),_0x405a31=this[_0x4ce072(0x361)][_0x4ce072(0x3da)](new _0x1ea295(_0x10ffc3[_0x4ce072(0x351)],_0x10ffc3['subUnitId'])['id']);return((_0x227563==null?void 0x0:_0x227563['value'])??!0x0)&&((_0x405a31==null?void 0x0:_0x405a31['value'])??!0x0);}['completeEditing'](_0x410e9e){const _0x31dae3=_0x291e41;let _0x3d272a=this[_0x31dae3(0x3e8)]();_0x3d272a&&this['_completionFrame']===void 0x0&&(this['setOnSavingEditorData'](!0x0),this[_0x31dae3(0x2cf)]=requestAnimationFrame(()=>{const _0x379c15=_0x31dae3;this['_completionFrame']=void 0x0,this[_0x379c15(0x3e8)]()===_0x3d272a&&this[_0x379c15(0x3fb)](null);}));}[_0x291e41(0x35d)](){const _0x29902f=_0x291e41;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this[_0x29902f(0x2cf)]),this[_0x29902f(0x2cf)]=void 0x0);}[_0x291e41(0x210)](){const _0x4d54b3=_0x291e41;this['getEditing']()&&this[_0x4d54b3(0x3fb)](null);}};$=X([Y(0x0,_0x1d37e3)],$);let ia=class extends _0x557a26{constructor(_0x496532,_0x1f75a8,_0x44f61a,_0x388e2c,_0x12d471,_0x18ecfa){const _0x39059f=_0x291e41;super(),this[_0x39059f(0x343)]=_0x496532,this[_0x39059f(0x369)]=_0x1f75a8,this[_0x39059f(0x33d)]=_0x44f61a,this['_drawingManagerService']=_0x388e2c,this['_contextService']=_0x12d471,this['_sheetsShapeService']=_0x18ecfa,q(this,'_lastEditingShapeKey',null),this[_0x39059f(0x2b6)](),this[_0x39059f(0x334)](),this[_0x39059f(0x25a)]();}[_0x291e41(0x2b6)](){const _0x4652f3=_0x291e41;let {scene:_0x46deb0}=this[_0x4652f3(0x343)];this[_0x4652f3(0x432)](_0x46deb0[_0x4652f3(0x2de)][_0x4652f3(0x1a9)](_0xf90bea=>{const _0x5374db=_0x4652f3;let {offsetX:_0x3c868f,offsetY:_0x21f2a7}=_0xf90bea,_0x40a746=_0x46deb0[_0x5374db(0x1fb)](_0x45d11b['FromArray']([_0x3c868f,_0x21f2a7]));if(_0x40a746 instanceof J){let _0xa1f10a=this[_0x5374db(0x408)][_0x5374db(0x32d)](_0x40a746['unitId'],_0x40a746[_0x5374db(0x21b)],_0x40a746['shapeId']);if(_0x5184c7(this['_sheetsShapeService'][_0x5374db(0x2ba)](_0x40a746['unitId'],_0x40a746['subUnitId'],_0x40a746['shapeId']))||_0xa1f10a!=null&&_0xa1f10a[_0x5374db(0x2d9)]()['formulaBinding'])return;this['_shapeTextEditingService'][_0x5374db(0x3fb)]({'visible':!0x0,'unitId':_0x40a746[_0x5374db(0x351)],'subUnitId':_0x40a746[_0x5374db(0x21b)],'shapeId':_0x40a746[_0x5374db(0x416)],'shapeKey':_0x40a746[_0x5374db(0x268)]});}}));}['_initSelection'](){const _0x70405d=_0x291e41;this['disposeWithMe'](this['_drawingManagerService'][_0x70405d(0x1d8)][_0x70405d(0x456)](_0x48c62d=>{const _0x28bff9=_0x70405d;if(_0x48c62d[_0x28bff9(0x3c3)]===0x1){let _0x41356e=_0x48c62d[0x0],_0x5e3009=this[_0x28bff9(0x346)]['getDrawingByParam'](_0x41356e);if((_0x5e3009==null?void 0x0:_0x5e3009[_0x28bff9(0x209)])===_0x40fd85[_0x28bff9(0x43a)]){var _0x1ad1e8;let _0x42661f=this['_shapeTextEditingService'][_0x28bff9(0x3e8)]();if((_0x42661f==null?void 0x0:_0x42661f[_0x28bff9(0x416)])===_0x41356e[_0x28bff9(0x1dd)]&&_0x42661f[_0x28bff9(0x42d)])return;let _0x22d39b=_0x5184c7(this[_0x28bff9(0x408)][_0x28bff9(0x2ba)](_0x41356e[_0x28bff9(0x351)],_0x41356e['subUnitId'],_0x41356e[_0x28bff9(0x1dd)])),_0x45412b=!!((_0x1ad1e8=this[_0x28bff9(0x408)][_0x28bff9(0x32d)](_0x41356e[_0x28bff9(0x351)],_0x41356e[_0x28bff9(0x21b)],_0x41356e[_0x28bff9(0x1dd)]))!=null&&_0x1ad1e8['getShapeData']()[_0x28bff9(0x295)]);(_0x22d39b||_0x45412b)&&this[_0x28bff9(0x33d)][_0x28bff9(0x3fb)](null);}else this['_shapeTextEditingService'][_0x28bff9(0x1ff)]();}else this[_0x28bff9(0x33d)]['completeEditing']();})),this[_0x70405d(0x432)](this[_0x70405d(0x346)][_0x70405d(0x31c)]['subscribe'](_0x57ff62=>{const _0xf806fe=_0x70405d;let _0x3465e9=this[_0xf806fe(0x33d)][_0xf806fe(0x3e8)]();_0x3465e9&&_0x57ff62[_0xf806fe(0x31d)](_0x5c9722=>_0x5c9722[_0xf806fe(0x1dd)]===_0x3465e9[_0xf806fe(0x416)])&&this[_0xf806fe(0x33d)][_0xf806fe(0x3fb)](null);}));}['_initEditingParams'](){const _0x287cd4=_0x291e41;this['disposeWithMe'](this['_shapeTextEditingService'][_0x287cd4(0x3d8)][_0x287cd4(0x456)](_0x59d743=>{const _0x87c09c=_0x287cd4;let {scene:_0x370e97}=this[_0x87c09c(0x343)];if(this['_lastEditingShapeKey']){let _0x11c753=_0x370e97[_0x87c09c(0x292)](this[_0x87c09c(0x29f)]);_0x11c753&&_0x11c753[_0x87c09c(0x3fb)](!0x1);}if(_0x59d743){let _0x25be40=!!_0x59d743[_0x87c09c(0x42d)],_0x5dab78=_0x370e97[_0x87c09c(0x292)](_0x59d743[_0x87c09c(0x2e3)]);_0x5dab78&&(_0x5dab78['setEditing'](_0x25be40),this[_0x87c09c(0x29f)]=_0x59d743['shapeKey']),this[_0x87c09c(0x2d4)][_0x87c09c(0x409)](_0x2a4c27,_0x25be40);}else this[_0x87c09c(0x29f)]=null,this[_0x87c09c(0x2d4)][_0x87c09c(0x409)](_0x2a4c27,!0x1);}));}};ia=X([Y(0x1,_0x5b79b4(_0x2882bc)),Y(0x2,_0x5b79b4($)),Y(0x3,_0x28cffc),Y(0x4,_0x4b3877),Y(0x5,_0x5b79b4(_0x1e1f0c))],ia);var aa=class extends ia{[_0x291e41(0x2b6)](){const _0x2c9b9b=_0x291e41;let {scene:_0x2b7edf}=this[_0x2c9b9b(0x343)],_0x45dca4=this[_0x2c9b9b(0x369)]['get'](_0xdd7ac8);this[_0x2c9b9b(0x432)](_0x2b7edf[_0x2c9b9b(0x2de)]['subscribeEvent'](_0x566b19=>{const _0x2f1e6c=_0x2c9b9b;let {offsetX:_0x147474,offsetY:_0x411656}=_0x566b19,_0x397114=_0x2b7edf['pick'](_0x45d11b[_0x2f1e6c(0x39c)]([_0x147474,_0x411656]));if(!(_0x397114 instanceof J))return;let _0x51aea3=this[_0x2f1e6c(0x408)][_0x2f1e6c(0x32d)](_0x397114[_0x2f1e6c(0x351)],_0x397114[_0x2f1e6c(0x21b)],_0x397114[_0x2f1e6c(0x416)]);_0x5184c7(this[_0x2f1e6c(0x408)][_0x2f1e6c(0x2ba)](_0x397114['unitId'],_0x397114[_0x2f1e6c(0x21b)],_0x397114['shapeId']))||_0x51aea3!=null&&_0x51aea3['getShapeData']()[_0x2f1e6c(0x295)]||_0x45dca4[_0x2f1e6c(0x269)](_0x2f1e6c(0x241),{'hostType':_0x3c82b9['UNIVER_SHEET'],'unitId':_0x397114['unitId'],'subUnitId':_0x397114[_0x2f1e6c(0x21b)],'shapeId':_0x397114[_0x2f1e6c(0x416)]});}));}};const oa={...Gi};let sa=class extends _0x557a26{constructor(_0xcd1af6,_0xe32ca0,_0x2c4057,_0x3262c6,_0x225628,_0x311726,_0xbf7453,_0x495f56){const _0x3591e2=_0x291e41;super(),this[_0x3591e2(0x1f3)]=_0xcd1af6,this[_0x3591e2(0x408)]=_0xe32ca0,this[_0x3591e2(0x199)]=_0x2c4057,this['_drawingManagerService']=_0x3262c6,this[_0x3591e2(0x19e)]=_0x225628,this['_contextService']=_0x311726,this[_0x3591e2(0x449)]=_0xbf7453,this[_0x3591e2(0x33d)]=_0x495f56,q(this,_0x3591e2(0x2da),null),this[_0x3591e2(0x1f3)]['mergeMenu'](oa),this[_0x3591e2(0x27c)](),this[_0x3591e2(0x432)](this[_0x3591e2(0x33d)][_0x3591e2(0x3d8)][_0x3591e2(0x456)](_0x546ac8=>{_0x546ac8&&this['_clearFocusedShape']();}));}[_0x291e41(0x366)](){const _0x2434c2=_0x291e41;this[_0x2434c2(0x2da)]||=this[_0x2434c2(0x432)](_0x5695f5(this['_renderManagerService'],_0x3c82b9['UNIVER_SHEET'],_0x53758f=>this['_popupMenuListener'](_0x53758f)));}[_0x291e41(0x27c)](){const _0x29491d=_0x291e41;this[_0x29491d(0x19e)][_0x29491d(0x3f2)](_0x40fd85[_0x29491d(0x43a)],(_0x63052c,_0xa6a1b6,_0x3d4a10,_0x551336)=>{const _0x177377=_0x29491d;let _0x64cc52=this[_0x177377(0x408)][_0x177377(0x1a4)](_0x63052c,_0xa6a1b6,_0x3d4a10),_0x1d61b0=this['_sheetsShapeService'][_0x177377(0x1a0)](_0x63052c,_0xa6a1b6,_0x3d4a10),_0x2ec8a8=_0x64cc52!==void 0x0&&!_0x5184c7(_0x64cc52)&&!(_0x1d61b0!=null&&_0x1d61b0['formulaBinding']);return[{'label':_0x177377(0x29a),'index':0x0,'commandId':Yi['id'],'commandParams':{'unitId':_0x63052c,'subUnitId':_0xa6a1b6,'drawingId':_0x3d4a10,'mode':_0x177377(0x216)},'disable':!0x1},..._0x2ec8a8?[{'label':_0x177377(0x250),'index':0x1,'commandId':Yi['id'],'commandParams':{'unitId':_0x63052c,'subUnitId':_0xa6a1b6,'drawingId':_0x3d4a10,'mode':_0x177377(0x241)},'disable':!0x1}]:[],{'label':_0x177377(0x1b8),'index':0x2,'commandId':_0x1c9438['id'],'commandParams':{'unitId':_0x63052c,'drawings':[{'unitId':_0x63052c,'subUnitId':_0xa6a1b6,'drawingId':_0x3d4a10,'drawingType':_0x551336}]},'disable':!0x1},{'label':_0x177377(0x41d),'index':0x3,'commandId':_0x47976c['id'],'commandParams':{'unitId':_0x63052c,'subUnitId':_0xa6a1b6,'shapeId':_0x3d4a10,'flipH':!0x0},'disable':!0x1},{'label':_0x177377(0x24e),'index':0x4,'commandId':_0x47976c['id'],'commandParams':{'unitId':_0x63052c,'subUnitId':_0xa6a1b6,'shapeId':_0x3d4a10,'flipV':!0x0},'disable':!0x1}];},_0x29491d(0x1f6));}['_popupMenuListener'](_0x3db6f6){const _0x344b92=_0x291e41;let _0x103b89=new _0x39a460(),_0x4ab3dd=null,_0x2a0365=()=>{const _0x255381=_0x7c09;if(!_0x4ab3dd)return;let _0xff35f6=this[_0x255381(0x346)]['getFocusDrawings'](),_0xfc670=_0xff35f6[_0x255381(0x3c3)]===0x0||_0xff35f6[_0x255381(0x3c3)]===0x1&&_0xff35f6[_0x255381(0x31d)](_0x38175a=>_0x38175a[_0x255381(0x351)]===(_0x4ab3dd==null?void 0x0:_0x4ab3dd[_0x255381(0x351)])&&_0x38175a['subUnitId']===(_0x4ab3dd==null?void 0x0:_0x4ab3dd['subUnitId'])&&_0x38175a[_0x255381(0x1dd)]===(_0x4ab3dd==null?void 0x0:_0x4ab3dd[_0x255381(0x1dd)]));_0x4ab3dd=null,_0xfc670&&(this[_0x255381(0x2d4)][_0x255381(0x409)](_0x317872,!0x1),this[_0x255381(0x346)][_0x255381(0x2bd)](null));};return _0x103b89[_0x344b92(0x322)](_0x3db6f6['createControl$'][_0x344b92(0x456)](()=>{const _0x161546=_0x344b92;let _0x210cc2=_0x3db6f6[_0x161546(0x450)]();if(_0x210cc2['size']>0x1){_0x2a0365();return;}let _0x5f21ad=_0x210cc2[_0x161546(0x3f3)]()['next']()[_0x161546(0x3ec)];if(!_0x5f21ad){_0x2a0365();return;}let _0x537e20=this['_drawingManagerService']['getDrawingOKey'](_0x5f21ad[_0x161546(0x268)]);if(!_0x537e20||_0x537e20[_0x161546(0x209)]!==_0x40fd85[_0x161546(0x43a)]){_0x2a0365();return;}let {unitId:_0x4e3e38,subUnitId:_0x2aa032,drawingId:_0x120dc5}=_0x537e20;_0x4ab3dd={'unitId':_0x4e3e38,'subUnitId':_0x2aa032,'drawingId':_0x120dc5},this['_contextService'][_0x161546(0x409)](_0x317872,!0x0),this['_drawingManagerService'][_0x161546(0x1f4)]()[_0x161546(0x1e4)](_0x187d36=>_0x187d36[_0x161546(0x351)]===_0x4e3e38&&_0x187d36[_0x161546(0x21b)]===_0x2aa032&&_0x187d36['drawingId']===_0x120dc5)||this[_0x161546(0x346)][_0x161546(0x2bd)]([{'unitId':_0x4e3e38,'subUnitId':_0x2aa032,'drawingId':_0x120dc5}]);})),_0x103b89[_0x344b92(0x322)](_0x3db6f6['clearControl$'][_0x344b92(0x456)](()=>{_0x2a0365();})),_0x53ca46(()=>{const _0x4dd816=_0x344b92;_0x103b89[_0x4dd816(0x20d)](),_0x2a0365();});}['_clearFocusedShape'](){const _0x3d4f06=_0x291e41;this[_0x3d4f06(0x2d4)]['setContextValue'](_0x317872,!0x1),this[_0x3d4f06(0x346)][_0x3d4f06(0x2bd)](null);}};sa=X([Y(0x0,_0x24215b),Y(0x1,_0x5b79b4(_0x1e1f0c)),Y(0x2,_0x54c16f),Y(0x3,_0x28cffc),Y(0x4,_0x5b79b4(_0x57fdbe)),Y(0x5,_0x4b3877),Y(0x6,_0x1158d5),Y(0x7,_0x5b79b4($))],sa);function ca(_0x4ee991,_0x34b880,_0x19372a,_0x412ed6){const _0x4fe63b=_0x291e41;let _0x37a755=_0x3e806a(_0x4ee991,_0x34b880,_0x19372a),_0x5077ed=[];for(let _0x3031a8 of _0x34b880){let _0x565fff=_0x37a755[_0x4fe63b(0x1a7)][_0x4fe63b(0x42c)](_0x3031a8[_0x4fe63b(0x1dd)]),_0x461357=_0x412ed6(_0x3031a8);_0x565fff&&_0x461357&&_0x5077ed[_0x4fe63b(0x1b9)]({'targetShapeId':_0x565fff,'source':_0x461357});}return _0x5077ed;}let la=class extends _0x557a26{constructor(_0x1fcb98,_0x250895,_0x5567c7,_0x5646e4){const _0x57edb7=_0x291e41;super(),this[_0x57edb7(0x394)]=_0x1fcb98,this[_0x57edb7(0x2c9)]=_0x250895,this[_0x57edb7(0x3ef)]=_0x5567c7,this[_0x57edb7(0x408)]=_0x5646e4,this[_0x57edb7(0x447)]();}[_0x291e41(0x447)](){const _0x47a7c5=_0x291e41;this[_0x47a7c5(0x432)](this[_0x47a7c5(0x2c9)][_0x47a7c5(0x19c)]({'getMutations':_0x11d40e=>{const _0x2aa637=_0x47a7c5;if(_0x11d40e['id']===_0x20821a['id']){let _0x1b7b79=_0x378f79(this[_0x2aa637(0x394)],_0x11d40e[_0x2aa637(0x2b1)]);if(!_0x1b7b79)return{'redos':[],'undos':[]};let {unitId:_0x702632,subUnitId:_0x5490bc}=_0x1b7b79,_0x5b0f6f=this[_0x2aa637(0x3ef)]['getDrawingData'](_0x702632,_0x5490bc),_0x369c14=Object[_0x2aa637(0x3f3)](_0x5b0f6f)[_0x2aa637(0x3c0)](_0x117446=>_0x117446[_0x2aa637(0x209)]===_0x40fd85['DRAWING_SHAPE']);if(_0x369c14[_0x2aa637(0x3c3)]===0x0)return{'redos':[],'undos':[]};let _0x4fea84=[],_0x12bf2d=[];for(let _0x181f04=0x0;_0x181f04<_0x369c14[_0x2aa637(0x3c3)];_0x181f04++){let _0x1582e0=_0x369c14[_0x181f04],_0x4c44e0=this['_sheetsShapeService'][_0x2aa637(0x32d)](_0x1582e0['unitId'],_0x1582e0[_0x2aa637(0x21b)],_0x1582e0[_0x2aa637(0x1dd)]);_0x4c44e0&&(_0x4fea84[_0x2aa637(0x1b9)]({'id':_0x5aa689['id'],'params':{'unitId':_0x702632,'subUnitId':_0x5490bc,'shapeId':_0x1582e0['drawingId']}}),_0x12bf2d[_0x2aa637(0x1b9)]({'id':_0x456c13['id'],'params':{'unitId':_0x702632,'subUnitId':_0x5490bc,'shapeId':_0x1582e0[_0x2aa637(0x1dd)],'shapeType':_0x4c44e0['getShapeType'](),'shapeData':JSON[_0x2aa637(0x38d)](JSON[_0x2aa637(0x454)](_0x4c44e0[_0x2aa637(0x2d9)]()))}}));}return{'redos':_0x4fea84,'undos':_0x12bf2d};}if(_0x11d40e['id']===_0x4f6b3a['id']){let {unitId:_0x46515a,subUnitId:_0x175906,targetSubUnitId:_0x195812,copyContext:_0x24b92d}=_0x11d40e[_0x2aa637(0x2b1)];if(!_0x46515a||!_0x175906||!_0x195812)return{'redos':[],'undos':[]};let _0x2c5d51=this[_0x2aa637(0x3ef)][_0x2aa637(0x40e)](_0x46515a,_0x175906),_0x4ef7e4=Object[_0x2aa637(0x3f3)](_0x2c5d51)['filter'](_0x3a9a36=>_0x3a9a36[_0x2aa637(0x209)]===_0x40fd85[_0x2aa637(0x43a)]);if(_0x4ef7e4[_0x2aa637(0x3c3)]===0x0)return{'redos':[],'undos':[]};let _0x4e417f=ca(_0x24b92d,_0x4ef7e4,{'unitId':_0x46515a,'sourceSubUnitId':_0x175906,'targetSubUnitId':_0x195812},_0x15401d=>{const _0x47bcf6=_0x2aa637;let _0xf25d2b=this[_0x47bcf6(0x408)][_0x47bcf6(0x32d)](_0x15401d[_0x47bcf6(0x351)],_0x15401d[_0x47bcf6(0x21b)],_0x15401d[_0x47bcf6(0x1dd)]);if(_0xf25d2b)return{'shapeType':_0xf25d2b[_0x47bcf6(0x2ba)](),'shapeData':JSON[_0x47bcf6(0x38d)](JSON[_0x47bcf6(0x454)](_0xf25d2b['getShapeData']()))};}),_0x5db167=[],_0x8faf80=[];for(let {targetShapeId:_0x3d3b96,source:_0xdeef6d}of _0x4e417f)_0x5db167[_0x2aa637(0x1b9)]({'id':_0x456c13['id'],'params':{'unitId':_0x46515a,'subUnitId':_0x195812,'shapeId':_0x3d3b96,'shapeType':_0xdeef6d[_0x2aa637(0x3e1)],'shapeData':_0xdeef6d[_0x2aa637(0x3ad)]}}),_0x8faf80['push']({'id':_0x5aa689['id'],'params':{'unitId':_0x46515a,'subUnitId':_0x195812,'shapeId':_0x3d3b96}});return{'redos':_0x5db167,'undos':_0x8faf80};}return{'redos':[],'undos':[]};}}));}};la=X([Y(0x0,_0x5b79b4(_0x44b74c)),Y(0x1,_0x5b79b4(_0x20504f)),Y(0x2,_0x5b79b4(_0x17b29e)),Y(0x3,_0x5b79b4(_0x1e1f0c))],la);let ua=class extends _0x557a26{constructor(_0x5b9173,_0xf625b1,_0x4c409a,_0x1368ce,_0x551e9f,_0x5940ea){const _0x5a320f=_0x291e41;super(),this[_0x5a320f(0x199)]=_0x5b9173,this['_renderManagerService']=_0xf625b1,this[_0x5a320f(0x346)]=_0x4c409a,this[_0x5a320f(0x304)]=_0x1368ce,this[_0x5a320f(0x2ff)]=_0x551e9f,this[_0x5a320f(0x23b)]=_0x5940ea,q(this,'_insertingShapeKeys',new Set()),this[_0x5a320f(0x2aa)]();}[_0x291e41(0x2aa)](){const _0x430aff=_0x291e41;this[_0x430aff(0x1cc)](),this[_0x430aff(0x421)](),this[_0x430aff(0x2c1)]();}[_0x291e41(0x1cc)](){const _0x3ad51c=_0x291e41;this['disposeWithMe'](this[_0x3ad51c(0x346)]['add$'][_0x3ad51c(0x456)](_0x303f75=>{const _0x6ed2cc=_0x3ad51c;this[_0x6ed2cc(0x3d5)](_0x303f75);}));}[_0x291e41(0x421)](){const _0x4a8d48=_0x291e41;this['disposeWithMe'](this[_0x4a8d48(0x199)][_0x4a8d48(0x43c)]((_0x70ec0c,_0xcdd7cc)=>{const _0x2ca323=_0x4a8d48;if(_0x70ec0c['id']===_0x172941['id']){let {unitId:_0x55b1ee,subUnitId:_0x1461f6,shapeId:_0x4e61c8}=_0x70ec0c['params'],_0x144916=this[_0x2ca323(0x3b7)](_0x55b1ee),_0x115f49=_0x38d621({'unitId':_0x55b1ee,'subUnitId':_0x1461f6,'drawingId':_0x4e61c8}),_0xa8f97b=_0x144916==null?void 0x0:_0x144916[_0x2ca323(0x1f2)]['getObjectIncludeInGroup'](_0x115f49);_0xa8f97b&&(this[_0x2ca323(0x23b)][_0x2ca323(0x333)](_0xa8f97b),this[_0x2ca323(0x23b)][_0x2ca323(0x38f)](_0xa8f97b,{'unitId':_0x55b1ee,'subUnitId':_0x1461f6,'shapeId':_0x4e61c8}),_0xa8f97b['makeDirty'](!0x0));}else{if(_0x70ec0c['id']===_0x456c13['id']){var _0x9768a8;let {unitId:_0x4b180f,subUnitId:_0x6d50e3,shapeId:_0x31f369}=_0x70ec0c[_0x2ca323(0x2b1)],_0x495a94=this[_0x2ca323(0x3b7)](_0x4b180f);if(_0x495a94==null)return;let {scene:_0x56371c}=_0x495a94,_0x5cae35=_0x38d621({'unitId':_0x4b180f,'subUnitId':_0x6d50e3,'drawingId':_0x31f369}),_0x349663=_0x56371c[_0x2ca323(0x292)](_0x5cae35);if(!((_0x9768a8=this[_0x2ca323(0x449)]['getRenderUnitById'](_0x4b180f))!=null&&_0x9768a8[_0x2ca323(0x401)](_0x5635f6)[_0x2ca323(0x2d8)](_0x6d50e3)))return!0x1;if(_0x349663)return;if(_0xcdd7cc!=null&&_0xcdd7cc[_0x2ca323(0x30a)]){queueMicrotask(()=>{const _0x2db3e5=_0x2ca323;this[_0x2db3e5(0x1a6)]||this['_insertShapes']([{'unitId':_0x4b180f,'subUnitId':_0x6d50e3,'drawingId':_0x31f369}]);});return;}this[_0x2ca323(0x3d5)]([{'unitId':_0x4b180f,'subUnitId':_0x6d50e3,'drawingId':_0x31f369}]);}}}));}[_0x291e41(0x2c1)](){const _0x5bcac5=_0x291e41;this['disposeWithMe'](this['_drawingManagerService'][_0x5bcac5(0x1c3)][_0x5bcac5(0x456)](_0x480c98=>{const _0x380bfe=_0x5bcac5;_0x480c98[_0x380bfe(0x44b)](_0x3f0d0a=>{const _0xc90488=_0x380bfe;let {unitId:_0x493980,subUnitId:_0x22404c,drawingId:_0x12470c}=_0x3f0d0a,_0x5b478f=this[_0xc90488(0x346)][_0xc90488(0x312)](_0x3f0d0a);if(_0x5b478f==null)return;let {transform:_0x43343a,drawingType:_0x2f22f3,srcRect:_0x241462,prstGeom:_0x4a4ac7}=_0x5b478f;if(_0x2f22f3!==_0x40fd85['DRAWING_SHAPE'])return;let _0x9a0483=this[_0xc90488(0x3b7)](_0x493980);if(_0x9a0483==null)return;let {scene:_0x52450f,transformer:_0x44b57b}=_0x9a0483;if(_0x43343a==null)return!0x0;let _0x232be9=_0x38d621({'unitId':_0x493980,'subUnitId':_0x22404c,'drawingId':_0x12470c}),_0x328b12=_0x52450f[_0xc90488(0x292)](_0x232be9);if(_0x328b12==null)return!0x0;_0x328b12[_0xc90488(0x1b6)](_0x241462),_0x328b12[_0xc90488(0x217)](_0x4a4ac7);});}));}[_0x291e41(0x3d5)](_0x4a5b21){const _0x36f98b=_0x291e41;for(let _0x1dddce of _0x4a5b21){var _0x43d547;let {unitId:_0xbb2302,subUnitId:_0x3d7f0c,drawingId:_0x13fa3d}=_0x1dddce,_0xdd8565=this[_0x36f98b(0x3b7)](_0xbb2302),_0x356213=(_0x43d547=_0x286bfa(this[_0x36f98b(0x304)],_0xbb2302))==null?void 0x0:_0x43d547['subUnitId'];if(_0xdd8565==null||_0x356213!==_0x3d7f0c)return;let _0x316007=_0x38d621({'unitId':_0xbb2302,'subUnitId':_0x3d7f0c,'drawingId':_0x13fa3d});if(this[_0x36f98b(0x240)][_0x36f98b(0x290)](_0x316007)||_0xdd8565['scene'][_0x36f98b(0x292)](_0x316007)!=null)return;let _0x3ace5e=this[_0x36f98b(0x346)]['getDrawingByParam'](_0x1dddce);if(_0x3ace5e==null||_0x3ace5e[_0x36f98b(0x209)]!==_0x40fd85[_0x36f98b(0x43a)])return;let _0x5f40c7=_0x3ace5e[_0x36f98b(0x305)]||{};if(_0x5184c7(_0x5f40c7[_0x36f98b(0x3e1)])){let _0x16e753=_0x3ace5e[_0x36f98b(0x21c)];_0x16e753&&(_0x3ace5e['transform']={..._0x16e753,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x36f98b(0x322)](_0x316007);try{this[_0x36f98b(0x23b)][_0x36f98b(0x301)](_0x3ace5e,_0xdd8565[_0x36f98b(0x1f2)]);}finally{this[_0x36f98b(0x240)][_0x36f98b(0x24b)](_0x316007);}queueMicrotask(()=>{const _0x498319=_0x36f98b;if(this['_disposed'])return;let _0xbb37dc=_0x38d621(_0x1dddce);if(!_0xdd8565['scene'][_0x498319(0x292)](_0xbb37dc))return;let _0x508d40=this[_0x498319(0x346)][_0x498319(0x312)](_0x1dddce);_0x508d40&&this['_drawingManagerService'][_0x498319(0x3b0)]([_0x508d40]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x33a8e8){const _0x2e204c=_0x291e41;if(_0x33a8e8==null)return;let _0x355600=this[_0x2e204c(0x449)][_0x2e204c(0x3a7)](_0x33a8e8),_0x31a4bb=_0x355600==null?void 0x0:_0x355600['scene'];return _0x31a4bb==null?null:{'scene':_0x31a4bb,'transformer':_0x31a4bb[_0x2e204c(0x39e)]()};}};ua=X([Y(0x0,_0x54c16f),Y(0x1,_0x1158d5),Y(0x2,_0x28cffc),Y(0x3,_0x44b74c),Y(0x4,_0x5b79b4(_0x5a0133)),Y(0x5,_0x5b79b4(Z))],ua);const da={'normal':{'fill':_0x179988['cxnPointFill'],'stroke':_0x179988[_0x291e41(0x1b1)],'strokeWidth':_0x179988[_0x291e41(0x1af)]},'highlighted':{'fill':_0x291e41(0x230),'stroke':_0x291e41(0x395),'strokeWidth':0x2}};var fa=class extends _0x156eef{constructor(_0x338ff4,_0x10807b){const _0x310bea=_0x291e41;super(_0x338ff4,_0x10807b),q(this,_0x310bea(0x1a2),''),q(this,_0x310bea(0x327),-0x1),q(this,_0x310bea(0x32f),''),q(this,_0x310bea(0x1df),''),q(this,_0x310bea(0x41a),!0x1),_0x10807b&&this[_0x310bea(0x32c)](_0x10807b);}[_0x291e41(0x251)](){const _0x21132d=_0x291e41;return{'unitId':this[_0x21132d(0x32f)],'subUnitId':this[_0x21132d(0x1df)],'shapeId':this[_0x21132d(0x1a2)],'cxnIndex':this[_0x21132d(0x327)]};}['setHighlighted'](_0x2feab1){const _0x537ab1=_0x291e41;this[_0x537ab1(0x41a)]!==_0x2feab1&&(this['_isHighlighted']=_0x2feab1,this[_0x537ab1(0x293)](!0x0));}[_0x291e41(0x418)](){const _0x588951=_0x291e41;return this[_0x588951(0x41a)];}[_0x291e41(0x32c)](_0x5c2c58){const _0x5b042d=_0x291e41;_0x5c2c58[_0x5b042d(0x3c4)]!==void 0x0&&(this[_0x5b042d(0x1a2)]=_0x5c2c58[_0x5b042d(0x3c4)]),_0x5c2c58[_0x5b042d(0x239)]!==void 0x0&&(this['_cxnIndex']=_0x5c2c58[_0x5b042d(0x239)]),_0x5c2c58[_0x5b042d(0x351)]!==void 0x0&&(this[_0x5b042d(0x32f)]=_0x5c2c58[_0x5b042d(0x351)]),_0x5c2c58[_0x5b042d(0x21b)]!==void 0x0&&(this[_0x5b042d(0x1df)]=_0x5c2c58[_0x5b042d(0x21b)]),_0x5c2c58[_0x5b042d(0x418)]!==void 0x0&&(this['_isHighlighted']=_0x5c2c58[_0x5b042d(0x418)]),this['transformByState']({'width':_0x5c2c58[_0x5b042d(0x45d)]??_0x179988['cxnPointRadius']*0x2,'height':_0x5c2c58[_0x5b042d(0x257)]??_0x179988[_0x5b042d(0x2ed)]*0x2});}[_0x291e41(0x39f)](_0x14ac6b){const _0x586d7f=_0x291e41;let _0x1fe759=this[_0x586d7f(0x41a)]?da[_0x586d7f(0x3b3)]:da['normal'];_0x49536a[_0x586d7f(0x38a)](_0x14ac6b,{'radius':_0x179988['cxnPointRadius'],'fill':_0x1fe759['fill'],'stroke':_0x1fe759['stroke'],'strokeWidth':_0x1fe759[_0x586d7f(0x444)],'evented':!0x0});}};let pa=class extends _0x557a26{constructor(_0x1fb911,_0x2c65f3,_0x3bac44,_0x170626){const _0x15f699=_0x291e41;super(),this[_0x15f699(0x343)]=_0x1fb911,this[_0x15f699(0x449)]=_0x2c65f3,this[_0x15f699(0x346)]=_0x3bac44,this[_0x15f699(0x408)]=_0x170626,q(this,'_connectionSiteObjects',[]),q(this,'_activeTargetShapeId',null),q(this,_0x15f699(0x303),-0x1),q(this,_0x15f699(0x2cd),null),q(this,_0x15f699(0x32f),''),q(this,_0x15f699(0x1df),''),q(this,_0x15f699(0x316),null);}[_0x291e41(0x3db)](_0x50838c,_0x419f66,_0x2e2073,_0x3fc00b){const _0x2a86e8=_0x291e41;this['_currentScene']=_0x50838c,this[_0x2a86e8(0x32f)]=_0x419f66,this[_0x2a86e8(0x1df)]=_0x2e2073,this[_0x2a86e8(0x316)]=_0x3fc00b;}[_0x291e41(0x254)](_0x58fdd9){const _0x1ed86f=_0x291e41;if(!this[_0x1ed86f(0x2cd)])return null;let _0x260d2c=this['_findShapeAtPoint'](_0x58fdd9);return _0x260d2c?(this[_0x1ed86f(0x283)]!==_0x260d2c['shapeId']&&(this[_0x1ed86f(0x3ff)](),this['_showConnectionSites'](_0x260d2c['shapeId'],_0x260d2c[_0x1ed86f(0x286)]),this[_0x1ed86f(0x283)]=_0x260d2c[_0x1ed86f(0x416)]),this[_0x1ed86f(0x28f)](_0x58fdd9)):(this[_0x1ed86f(0x283)]!==null&&(this['_clearConnectionSites'](),this[_0x1ed86f(0x283)]=null),null);}[_0x291e41(0x402)](){const _0x401c0e=_0x291e41;this['_clearConnectionSites'](),this[_0x401c0e(0x2cd)]=null,this[_0x401c0e(0x283)]=null,this[_0x401c0e(0x303)]=-0x1,this[_0x401c0e(0x316)]=null;}[_0x291e41(0x414)](){const _0x4ddfb1=_0x291e41;return this[_0x4ddfb1(0x283)]===null||this[_0x4ddfb1(0x303)]<0x0?null:{'shapeId':this[_0x4ddfb1(0x283)],'cxnIndex':this[_0x4ddfb1(0x303)]};}[_0x291e41(0x25e)](_0x542e6f){const _0x741a6b=_0x291e41;let _0x51c0e2=this['_drawingManagerService']['getDrawingData'](this['_unitId'],this[_0x741a6b(0x1df)]);for(let _0x1e7764 of Object[_0x741a6b(0x3f1)](_0x51c0e2)){if(_0x1e7764===this['_draggingConnectorId']||_0x51c0e2[_0x1e7764][_0x741a6b(0x209)]!==_0x40fd85['DRAWING_SHAPE'])continue;let _0x10dac7=this[_0x741a6b(0x408)]['getShapeModel'](this['_unitId'],this[_0x741a6b(0x1df)],_0x1e7764);if(!_0x10dac7||_0x5184c7(_0x10dac7[_0x741a6b(0x2ba)]())||_0x10dac7[_0x741a6b(0x1f9)]()[_0x741a6b(0x3c3)]===0x0||!this[_0x741a6b(0x2cd)])continue;let _0x345bf3=_0x38d621({'unitId':this[_0x741a6b(0x32f)],'subUnitId':this[_0x741a6b(0x1df)],'drawingId':_0x1e7764}),_0x497875=this[_0x741a6b(0x2cd)][_0x741a6b(0x292)](_0x345bf3);if(!_0x497875)continue;let {left:_0x4147cf,top:_0x2f4d1d,width:_0x3b9b9b,height:_0x3ff510}=_0x497875[_0x741a6b(0x284)](),_0x1a61ab=_0x4147cf+_0x3b9b9b/0x2,_0x1b897b=_0x2f4d1d+_0x3ff510/0x2,_0x2ac405=_0x497875['transform'][_0x741a6b(0x405)](),_0x10100e=new _0x36d9d2([_0x2ac405[0x0],_0x2ac405[0x1],_0x2ac405[0x2],_0x2ac405[0x3],_0x1a61ab,_0x1b897b]),_0x3b49b8=_0x497875[_0x741a6b(0x298)](),_0x3222e2=(_0x497875['isInGroup']&&(_0x3b49b8==null?void 0x0:_0x3b49b8[_0x741a6b(0x2fd)])===_0x142f92['GROUP']?_0x3b49b8[_0x741a6b(0x43e)][_0x741a6b(0x371)](_0x10100e):_0x10100e)[_0x741a6b(0x2ef)]()[_0x741a6b(0x441)](_0x542e6f),_0x28669f=_0x3b9b9b/0x2,_0x2f3bff=_0x3ff510/0x2;if(_0x3222e2['x']>=-_0x28669f-0x5&&_0x3222e2['x']<=_0x28669f+0x5&&_0x3222e2['y']>=-_0x2f3bff-0x5&&_0x3222e2['y']<=_0x2f3bff+0x5)return{'shapeId':_0x1e7764,'shapeModel':_0x10dac7};}return null;}[_0x291e41(0x226)](_0x587d1d,_0x1b5231){const _0x35a045=_0x291e41;if(!this['_currentScene'])return;let _0x44c9ed=_0x38d621({'unitId':this[_0x35a045(0x32f)],'subUnitId':this['_subUnitId'],'drawingId':_0x587d1d}),_0x584cfb=this['_currentScene'][_0x35a045(0x292)](_0x44c9ed);if(!_0x584cfb)return;let {left:_0x242d31,top:_0x5eebd5,width:_0x431a75,height:_0x3b4389}=_0x584cfb[_0x35a045(0x284)](),_0x87aa8b=_0x242d31+_0x431a75/0x2,_0x22c1e4=_0x5eebd5+_0x3b4389/0x2,_0x30eb8a=_0x584cfb[_0x35a045(0x21c)]['getMatrix'](),_0x6af471=new _0x36d9d2([_0x30eb8a[0x0],_0x30eb8a[0x1],_0x30eb8a[0x2],_0x30eb8a[0x3],_0x87aa8b,_0x22c1e4]),_0x1ad58f=_0x584cfb['getParent'](),_0xa0b3f=_0x584cfb['isInGroup']&&(_0x1ad58f==null?void 0x0:_0x1ad58f['classType'])===_0x142f92['GROUP']?_0x1ad58f['ancestorTransform'][_0x35a045(0x371)](_0x6af471):_0x6af471;_0x1b5231[_0x35a045(0x31e)]({'width':_0x431a75,'height':_0x3b4389});let _0xdb0eab=_0x1b5231[_0x35a045(0x1f9)]();for(let _0x18bac7 of _0xdb0eab){let _0x33463e=_0x18bac7['x']-_0x431a75/0x2,_0x1d747f=_0x18bac7['y']-_0x3b4389/0x2,_0x4a349e=_0xa0b3f['applyPoint']({'x':_0x33463e,'y':_0x1d747f}),_0x35ee7a=_0x4a349e['x'],_0x112572=_0x4a349e['y'],_0x262b59=new fa(_0x35a045(0x376)+_0x587d1d+'-'+_0x18bac7[_0x35a045(0x3f7)],{'left':_0x35ee7a-_0x179988[_0x35a045(0x2ed)],'top':_0x112572-_0x179988['cxnPointRadius'],'targetShapeId':_0x587d1d,'cxnIndex':_0x18bac7[_0x35a045(0x3f7)],'unitId':this[_0x35a045(0x32f)],'subUnitId':this[_0x35a045(0x1df)],'width':_0x179988[_0x35a045(0x2ed)]*0x2,'height':_0x179988[_0x35a045(0x2ed)]*0x2,'zIndex':_0x10b13b+0x2,'evented':!0x1});this[_0x35a045(0x36d)]['push'](_0x262b59),this[_0x35a045(0x2cd)][_0x35a045(0x35b)](_0x262b59,_0x10b13b+0x2);}}[_0x291e41(0x28f)](_0x3f492f){const _0x4c9faa=_0x291e41;let _0x3667d8=null,_0xec5965=0x1/0x0,_0x51026c=null;for(let _0x15e233 of this[_0x4c9faa(0x36d)]){let _0x59f9af=_0x15e233[_0x4c9faa(0x337)]+_0x179988[_0x4c9faa(0x2ed)],_0x1a03f0=_0x15e233[_0x4c9faa(0x3cf)]+_0x179988[_0x4c9faa(0x2ed)],_0x298f83=_0x3f492f['x']-_0x59f9af,_0x33b4d7=_0x3f492f['y']-_0x1a03f0,_0x46b9cd=Math['sqrt'](_0x298f83*_0x298f83+_0x33b4d7*_0x33b4d7);_0x46b9cd<_0xec5965&&(_0xec5965=_0x46b9cd,_0x3667d8=_0x15e233,_0x51026c={'x':_0x59f9af,'y':_0x1a03f0});}let _0x3eca8c=_0xec5965<=0xa&&_0x3667d8?_0x3667d8['getConnectionInfo']()[_0x4c9faa(0x239)]:-0x1;if(_0x3eca8c!==this[_0x4c9faa(0x303)]){for(let _0x311b85 of this[_0x4c9faa(0x36d)]){let _0x5560f5=_0x311b85['getConnectionInfo']();_0x311b85[_0x4c9faa(0x246)](_0x5560f5[_0x4c9faa(0x239)]===_0x3eca8c);}this[_0x4c9faa(0x303)]=_0x3eca8c;}if(_0xec5965<=0xa&&_0x3667d8&&_0x51026c){let _0x4ecea5=_0x3667d8['getConnectionInfo'](),_0x328f5a=this[_0x4c9faa(0x26d)](_0x4ecea5[_0x4c9faa(0x416)],_0x4ecea5[_0x4c9faa(0x239)]);return{'shapeId':_0x4ecea5[_0x4c9faa(0x416)],'cxnIndex':_0x4ecea5[_0x4c9faa(0x239)],'unitId':_0x4ecea5[_0x4c9faa(0x351)],'subUnitId':_0x4ecea5[_0x4c9faa(0x21b)],'worldPoint':_0x51026c,'angle':_0x328f5a};}return null;}[_0x291e41(0x26d)](_0x595816,_0x1d8cde){const _0xbdbf6e=_0x291e41;let _0x52f334=this[_0xbdbf6e(0x408)][_0xbdbf6e(0x32d)](this['_unitId'],this[_0xbdbf6e(0x1df)],_0x595816);if(!_0x52f334)return 0x0;let _0x5541ec=this[_0xbdbf6e(0x346)][_0xbdbf6e(0x312)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0x595816});if(!(_0x5541ec!=null&&_0x5541ec[_0xbdbf6e(0x21c)]))return 0x0;let {width:_0x270ffc=0x0,height:_0x4b7504=0x0,flipX:_0x509f28=!0x1,flipY:_0x5d99df=!0x1}=_0x5541ec[_0xbdbf6e(0x21c)];_0x52f334[_0xbdbf6e(0x31e)]({'width':_0x270ffc,'height':_0x4b7504});let _0x6b5b15=_0x52f334[_0xbdbf6e(0x1f9)]()[_0xbdbf6e(0x1e4)](_0x105d0d=>_0x105d0d[_0xbdbf6e(0x3f7)]===_0x1d8cde);if(!_0x6b5b15)return 0x0;let _0x351a26=_0x6b5b15['ang']/0xea60;return _0x509f28&&(_0x351a26=0xb4-_0x351a26),_0x5d99df&&(_0x351a26=-_0x351a26),_0x351a26=(_0x351a26%0x168+0x168)%0x168,_0x351a26;}[_0x291e41(0x3ff)](){const _0x872310=_0x291e41;for(let _0x283eff of this['_connectionSiteObjects'])_0x283eff[_0x872310(0x20d)]();this[_0x872310(0x36d)]=[],this[_0x872310(0x303)]=-0x1;}['dispose'](){const _0xe9cbc8=_0x291e41;this[_0xe9cbc8(0x3ff)](),super[_0xe9cbc8(0x20d)]();}};pa=X([Y(0x1,_0x5b79b4(_0x1158d5)),Y(0x2,_0x5b79b4(_0x28cffc)),Y(0x3,_0x5b79b4(_0x1e1f0c))],pa);let ma=class extends _0x557a26{constructor(_0x20fc4e,_0x4bd99d,_0x50a9f0,_0x56163b,_0x579278){const _0x2aecba=_0x291e41;super(),this[_0x2aecba(0x417)]=_0x20fc4e,this[_0x2aecba(0x383)]=_0x4bd99d,this[_0x2aecba(0x3ef)]=_0x50a9f0,this[_0x2aecba(0x2ea)]=_0x56163b,this[_0x2aecba(0x430)]=_0x579278,q(this,_0x2aecba(0x30f),void 0x0),this['_initCopyPaste'](),this[_0x2aecba(0x194)]();}get[_0x291e41(0x391)](){const _0x3743fb=_0x291e41;return this[_0x3743fb(0x3ef)][_0x3743fb(0x1f4)]();}[_0x291e41(0x194)](){const _0x12f3f9=_0x291e41;this[_0x12f3f9(0x430)]['registerFeaturePasteHook'](({fromUnitId:_0x2e3d95,fromSubUnitId:_0x3d76c2,toUnitId:_0x12d774,toSubUnitId:_0x40496f,idMap:_0x3b38de})=>{const _0x4a3abb=_0x12f3f9;let _0x36169c=[],_0x2321e1=[];for(let [_0x3361a1,_0x8606e8]of _0x3b38de[_0x4a3abb(0x384)]()){let _0xa2c221=this['_shapeService'][_0x4a3abb(0x32d)](_0x2e3d95,_0x3d76c2,_0x3361a1);if(!_0xa2c221)continue;let _0xf7ddcc=_0xa2c221[_0x4a3abb(0x2ba)](),_0x3bc1e5=JSON[_0x4a3abb(0x38d)](JSON[_0x4a3abb(0x454)](_0xa2c221['getShapeData']()));if(_0x3bc1e5[_0x4a3abb(0x2cb)]){var _0x33e7e9,_0x1587e0;let _0x4c4ca8=(_0x33e7e9=_0x3bc1e5[_0x4a3abb(0x2cb)]['from'])==null?void 0x0:_0x33e7e9[_0x4a3abb(0x416)],_0x1bd635=(_0x1587e0=_0x3bc1e5[_0x4a3abb(0x2cb)]['to'])==null?void 0x0:_0x1587e0[_0x4a3abb(0x416)],_0x528992=!_0x4c4ca8||_0x3b38de[_0x4a3abb(0x290)](_0x4c4ca8),_0x30aa23=!_0x1bd635||_0x3b38de[_0x4a3abb(0x290)](_0x1bd635);_0x528992&&_0x4c4ca8&&_0x3bc1e5[_0x4a3abb(0x2cb)][_0x4a3abb(0x354)]?_0x3bc1e5[_0x4a3abb(0x2cb)]['from']={..._0x3bc1e5['relation'][_0x4a3abb(0x354)],'shapeId':_0x3b38de['get'](_0x4c4ca8)}:_0x3bc1e5['relation'][_0x4a3abb(0x354)]=void 0x0,_0x30aa23&&_0x1bd635&&_0x3bc1e5[_0x4a3abb(0x2cb)]['to']?_0x3bc1e5[_0x4a3abb(0x2cb)]['to']={..._0x3bc1e5['relation']['to'],'shapeId':_0x3b38de[_0x4a3abb(0x42c)](_0x1bd635)}:_0x3bc1e5['relation']['to']=void 0x0;}_0x36169c[_0x4a3abb(0x1b9)]({'id':_0x456c13['id'],'params':{'unitId':_0x12d774,'subUnitId':_0x40496f,'shapeId':_0x8606e8,'shapeType':_0xf7ddcc,'shapeData':_0x3bc1e5}}),_0x2321e1[_0x4a3abb(0x1b9)]({'id':_0x5aa689['id'],'params':{'unitId':_0x12d774,'subUnitId':_0x40496f,'shapeId':_0x8606e8}});}return{'redos':_0x36169c,'undos':_0x2321e1};});}['_initCopyPaste'](){const _0x21cef1=_0x291e41;this['disposeWithMe'](this['_sheetClipboardService'][_0x21cef1(0x2e2)]({'id':_0x21cef1(0x2a2),'onBeforeCopyFocusedObject':(_0x5c12c7,_0x5135d4,_0x2bce11)=>{const _0x1b91b8=_0x21cef1;this[_0x1b91b8(0x30f)]=null;let _0x2d14e2=this[_0x1b91b8(0x391)][_0x1b91b8(0x3c0)](_0x59c47b=>_0x59c47b['drawingType']===_0x40fd85[_0x1b91b8(0x43a)]);return _0x2d14e2['length']!==0x0&&(this[_0x1b91b8(0x30f)]={'unitId':_0x5c12c7,'subUnitId':_0x5135d4,'copyType':_0x2bce11,'drawings':_0x2d14e2},!0x0);},'onBeforeCopy':(_0x2727e6,_0x5e6c9a,_0xd1e43b,_0x306a58)=>{const _0x210115=_0x21cef1;this['_copyInfo']=null,this[_0x210115(0x24a)](_0x2727e6,_0x5e6c9a,_0xd1e43b,_0x306a58);},'onPasteCells':(_0x175805,_0x2db3c9,_0x674dde,_0x2f22c7)=>{const _0x3bf63e=_0x21cef1;if(!_0x2f22c7['copyId']||!_0x175805||!this[_0x3bf63e(0x30f)])return{'redos':[],'undos':[]};let {pasteType:_0xbe8c1f}=_0x2f22c7;return _0xbe8c1f===_0x533c9a[_0x3bf63e(0x363)]?this['_generatePasteMutations'](_0x2db3c9,this['_copyInfo']['copyType']===_0x10a2b5['CUT']):{'redos':[],'undos':[]};}}));}[_0x291e41(0x24a)](_0x1492c5,_0x80850b,_0x537096,_0x5b0551){const _0x410f5b=_0x291e41;let _0x1674ef=this[_0x410f5b(0x417)][_0x410f5b(0x2d8)](_0x1492c5,_0x80850b);if(!_0x1674ef)return;let _0x3144fb=_0x170768(_0x1674ef,_0x537096);if(!_0x3144fb)return;let {startX:_0x39a6a8,endX:_0x1f0ebf,startY:_0x58ab3f,endY:_0x29ec5b}=_0x3144fb,_0x215263=this['_sheetDrawingService']['getDrawingData'](_0x1492c5,_0x80850b),_0x41e320=[];for(let [_0x51065d,_0x2c9070]of Object[_0x410f5b(0x384)](_0x215263)){if(_0x2c9070[_0x410f5b(0x209)]!==_0x40fd85[_0x410f5b(0x43a)])continue;let {transform:_0x1b9882}=_0x2c9070;if(!_0x1b9882)continue;let {left:_0x3cbfc2=0x0,top:_0x45b1e2=0x0,width:_0xee9cd=0x0,height:_0x3b7a2e=0x0}=_0x1b9882;_0x39a6a8<=_0x3cbfc2&&_0x1f0ebf>=_0x3cbfc2+_0xee9cd&&_0x58ab3f<=_0x45b1e2&&_0x29ec5b>=_0x45b1e2+_0x3b7a2e&&_0x41e320[_0x410f5b(0x1b9)](_0x2c9070);}_0x41e320[_0x410f5b(0x3c3)]>0x0&&(this['_copyInfo']={'unitId':_0x1492c5,'subUnitId':_0x80850b,'copyType':_0x5b0551,'copyRange':_0x537096,'drawings':_0x41e320});}[_0x291e41(0x2eb)](_0x3971b9,_0x9fe549){const _0x2f1676=_0x291e41;let {unitId:_0xcc8a86,subUnitId:_0x28e51b,range:_0x195682}=_0x3971b9,_0x44f616=this[_0x2f1676(0x417)][_0x2f1676(0x2d8)](_0xcc8a86,_0x28e51b);if(!_0x44f616)return{'redos':[],'undos':[]};let _0x485d26=_0x4bd816(_0x195682),{unitId:_0x584824,subUnitId:_0x11d91d,copyRange:_0x1fedae,drawings:_0x2b5653}=this['_copyInfo'],_0x39060b=this[_0x2f1676(0x417)][_0x2f1676(0x2d8)](_0x584824,_0x11d91d);if(!_0x39060b)return{'redos':[],'undos':[]};let _0x48675c;if(!_0x1fedae){let _0x1924a5=0x1/0x0,_0x354285=0x1/0x0;for(let _0x4d596a of _0x2b5653){let {left:_0x1ed33f=0x0,top:_0x1fbbcd=0x0}=_0x4d596a[_0x2f1676(0x21c)]??{};_0x1ed33f<_0x1924a5&&(_0x1924a5=_0x1ed33f),_0x1fbbcd<_0x354285&&(_0x354285=_0x1fbbcd);}_0x1924a5!==0x1/0x0&&_0x354285!==0x1/0x0&&(_0x48675c={'left':_0x1924a5,'top':_0x354285});}let _0x2bd3b8=new Map();if(!_0x9fe549){for(let _0x3df64d of _0x2b5653)_0x2bd3b8[_0x2f1676(0x28a)](_0x3df64d[_0x2f1676(0x1dd)],_0x2eff46());}let _0x41a826=[],_0x4f9d45=[];for(let _0x4b1656 of _0x2b5653){let {drawingId:_0x19419f,transform:_0x28e049,sheetTransform:_0x4ce7e7}=_0x4b1656;if(!_0x28e049||!_0x4ce7e7)continue;let _0x142940=this['_updateTransform']({'transform':_0x28e049,'sheetTransform':_0x4ce7e7},{'skeleton':_0x39060b,'range':_0x1fedae},{'skeleton':_0x44f616,'range':_0x485d26},_0x48675c);if(_0x9fe549){let {redos:_0x41756d,undos:_0x2f5a57}=this[_0x2f1676(0x22e)]({'fromUnitId':_0x584824,'fromSubUnitId':_0x11d91d,'toUnitId':_0xcc8a86,'toSubUnitId':_0x28e51b,'drawing':_0x4b1656,'newTransforms':_0x142940});_0x41a826[_0x2f1676(0x1b9)](..._0x41756d),_0x4f9d45[_0x2f1676(0x1b9)](..._0x2f5a57);continue;}let {redos:_0x365650,undos:_0x3717d0}=this[_0x2f1676(0x205)]({'toUnitId':_0xcc8a86,'toSubUnitId':_0x28e51b,'drawing':_0x4b1656,'newTransforms':_0x142940,'newDrawingId':_0x2bd3b8[_0x2f1676(0x42c)](_0x19419f),'idMap':_0x2bd3b8});_0x41a826[_0x2f1676(0x1b9)](..._0x365650),_0x4f9d45[_0x2f1676(0x1b9)](..._0x3717d0);}return{'redos':_0x41a826,'undos':_0x4f9d45};}[_0x291e41(0x22e)](_0x4e77f3){const _0x617040=_0x291e41;let {fromUnitId:_0x5736cd,fromSubUnitId:_0x5509c6,toUnitId:_0x462f1f,toSubUnitId:_0x3bfc8f,drawing:_0x25af83,newTransforms:_0x333623}=_0x4e77f3,_0x64e9c9={..._0x25af83,'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'transform':_0x333623[_0x617040(0x21c)],'sheetTransform':_0x333623[_0x617040(0x389)]};if(_0x462f1f===_0x5736cd&&_0x3bfc8f===_0x5509c6){let {redo:_0x4fdae0,undo:_0x383908,objects:_0x5d9d1f}=this['_sheetDrawingService'][_0x617040(0x411)]([_0x64e9c9]);return{'redos':[{'id':_0x2db9e2['id'],'params':{'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'type':_0x22a6fe[_0x617040(0x2f1)],'op':_0x4fdae0,'objects':_0x5d9d1f}}],'undos':[{'id':_0x2db9e2['id'],'params':{'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'type':_0x22a6fe[_0x617040(0x2f1)],'op':_0x383908,'objects':_0x5d9d1f}}]};}{let _0x24dd76=this['_sheetDrawingService'][_0x617040(0x2c3)]([_0x25af83]),_0x25c3ba=this['_sheetDrawingService'][_0x617040(0x311)]([_0x64e9c9]),_0x30212c=this['_shapeService']['getShapeModel'](_0x25af83[_0x617040(0x351)],_0x25af83['subUnitId'],_0x25af83[_0x617040(0x1dd)]);if(!_0x30212c)return{'redos':[],'undos':[]};let _0x2a5a4e=_0x30212c['getShapeType'](),_0x18775b=JSON[_0x617040(0x38d)](JSON[_0x617040(0x454)](_0x30212c[_0x617040(0x2d9)]()));return{'redos':[{'id':_0x2db9e2['id'],'params':{'unitId':_0x5736cd,'subUnitId':_0x5509c6,'type':_0x22a6fe['REMOVE'],'op':_0x24dd76['redo'],'objects':_0x24dd76[_0x617040(0x413)]}},{'id':_0x5aa689['id'],'params':{'unitId':_0x5736cd,'subUnitId':_0x5509c6,'shapeId':_0x25af83['drawingId']}},{'id':_0x2db9e2['id'],'params':{'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'type':_0x22a6fe[_0x617040(0x347)],'op':_0x25c3ba[_0x617040(0x34d)],'objects':_0x25c3ba[_0x617040(0x413)]}},{'id':_0x456c13['id'],'params':{'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'shapeId':_0x25af83[_0x617040(0x1dd)],'shapeType':_0x2a5a4e,'shapeData':_0x18775b}}],'undos':[{'id':_0x2db9e2['id'],'params':{'unitId':_0x5736cd,'subUnitId':_0x5509c6,'type':_0x22a6fe[_0x617040(0x347)],'op':_0x24dd76[_0x617040(0x3a5)],'objects':_0x24dd76[_0x617040(0x413)]}},{'id':_0x456c13['id'],'params':{'unitId':_0x5736cd,'subUnitId':_0x5509c6,'shapeId':_0x25af83[_0x617040(0x1dd)],'shapeType':_0x2a5a4e,'shapeData':_0x18775b}},{'id':_0x2db9e2['id'],'params':{'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'type':_0x22a6fe['REMOVE'],'op':_0x25c3ba['undo'],'objects':_0x25c3ba[_0x617040(0x413)]}},{'id':_0x5aa689['id'],'params':{'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'shapeId':_0x25af83['drawingId']}}]};}}[_0x291e41(0x205)](_0x10c2d1){const _0x5d43c9=_0x291e41;let {toUnitId:_0x5ad5f5,toSubUnitId:_0x77c7a1,drawing:_0x1720a0,newTransforms:_0xb665df,newDrawingId:_0x3cf21c,idMap:_0x14f86}=_0x10c2d1,_0xb1e77a={..._0x1720a0,'unitId':_0x5ad5f5,'subUnitId':_0x77c7a1,'drawingId':_0x3cf21c,'transform':_0xb665df[_0x5d43c9(0x21c)],'sheetTransform':_0xb665df[_0x5d43c9(0x389)]},{redo:_0x2feb7e,undo:_0x31a34a,objects:_0x42df5c}=this[_0x5d43c9(0x3ef)][_0x5d43c9(0x311)]([_0xb1e77a]),_0x5360b5=this[_0x5d43c9(0x2ea)][_0x5d43c9(0x32d)](_0x1720a0[_0x5d43c9(0x351)],_0x1720a0[_0x5d43c9(0x21b)],_0x1720a0[_0x5d43c9(0x1dd)]);if(!_0x5360b5)return{'redos':[],'undos':[]};let _0x55b417=_0x5360b5[_0x5d43c9(0x2ba)](),_0x4250f2=JSON[_0x5d43c9(0x38d)](JSON['stringify'](_0x5360b5[_0x5d43c9(0x2d9)]()));if(_0x4250f2[_0x5d43c9(0x2cb)]){var _0x24aa5,_0x47bd45;let _0x5b5d5b=(_0x24aa5=_0x4250f2[_0x5d43c9(0x2cb)][_0x5d43c9(0x354)])==null?void 0x0:_0x24aa5['shapeId'],_0x1a2977=(_0x47bd45=_0x4250f2['relation']['to'])==null?void 0x0:_0x47bd45[_0x5d43c9(0x416)],_0x49697c=!_0x5b5d5b||_0x14f86[_0x5d43c9(0x290)](_0x5b5d5b),_0x337081=!_0x1a2977||_0x14f86[_0x5d43c9(0x290)](_0x1a2977);_0x49697c&&_0x5b5d5b&&_0x4250f2[_0x5d43c9(0x2cb)][_0x5d43c9(0x354)]?_0x4250f2[_0x5d43c9(0x2cb)][_0x5d43c9(0x354)]={..._0x4250f2[_0x5d43c9(0x2cb)][_0x5d43c9(0x354)],'shapeId':_0x14f86[_0x5d43c9(0x42c)](_0x5b5d5b)}:_0x4250f2['relation'][_0x5d43c9(0x354)]=void 0x0,_0x337081&&_0x1a2977&&_0x4250f2['relation']['to']?_0x4250f2['relation']['to']={..._0x4250f2[_0x5d43c9(0x2cb)]['to'],'shapeId':_0x14f86[_0x5d43c9(0x42c)](_0x1a2977)}:_0x4250f2[_0x5d43c9(0x2cb)]['to']=void 0x0;}return{'redos':[{'id':_0x2db9e2['id'],'params':{'unitId':_0x5ad5f5,'subUnitId':_0x77c7a1,'type':_0x22a6fe[_0x5d43c9(0x347)],'op':_0x2feb7e,'objects':_0x42df5c}},{'id':_0x456c13['id'],'params':{'unitId':_0x5ad5f5,'subUnitId':_0x77c7a1,'shapeId':_0x3cf21c,'shapeType':_0x55b417,'shapeData':_0x4250f2}}],'undos':[{'id':_0x2db9e2['id'],'params':{'unitId':_0x5ad5f5,'subUnitId':_0x77c7a1,'type':_0x22a6fe[_0x5d43c9(0x427)],'op':_0x31a34a,'objects':_0x42df5c}},{'id':_0x5aa689['id'],'params':{'unitId':_0x5ad5f5,'subUnitId':_0x77c7a1,'shapeId':_0x3cf21c}}]};}['_updateTransform'](_0x2c430d,_0x2075c7,_0x4b22e9,_0x249e95){const _0x136873=_0x291e41;let {range:_0x471379,skeleton:_0x44bc86}=_0x2075c7,{range:_0x22bf7b,skeleton:_0x221f30}=_0x4b22e9,{transform:_0x3cca53,sheetTransform:_0x2fd033}=_0x2c430d,_0x56005f={..._0x3cca53};if(_0x471379){let _0x5c0906=_0x170768(_0x44bc86,_0x471379),_0x40d77b=_0x170768(_0x221f30,_0x22bf7b);if(_0x5c0906&&_0x40d77b){let _0x2dc236=_0x40d77b[_0x136873(0x266)]-_0x5c0906[_0x136873(0x266)],_0x250ce9=_0x40d77b[_0x136873(0x2be)]-_0x5c0906['startY'];_0x56005f['left']=(_0x56005f[_0x136873(0x337)]??0x0)+_0x2dc236,_0x56005f['top']=(_0x56005f[_0x136873(0x3cf)]??0x0)+_0x250ce9;}}else{let _0x142cd4=_0x170768(_0x221f30,_0x22bf7b);if(_0x249e95&&_0x142cd4){let _0x403dc8=(_0x56005f[_0x136873(0x337)]??0x0)-_0x249e95[_0x136873(0x337)],_0x5c7fa4=(_0x56005f['top']??0x0)-_0x249e95[_0x136873(0x3cf)];_0x56005f['left']=_0x142cd4[_0x136873(0x266)]+_0x403dc8,_0x56005f[_0x136873(0x3cf)]=_0x142cd4[_0x136873(0x2be)]+_0x5c7fa4;}else _0x56005f[_0x136873(0x337)]=_0x142cd4==null?void 0x0:_0x142cd4[_0x136873(0x266)],_0x56005f[_0x136873(0x3cf)]=_0x142cd4==null?void 0x0:_0x142cd4[_0x136873(0x2be)];}return{'transform':_0x56005f,'sheetTransform':_0x4f36ef(_0x56005f,_0x221f30)??_0x2fd033};}};ma=X([Y(0x0,_0x5b79b4(_0x4f7695)),Y(0x1,_0x5b79b4(_0xa7e024)),Y(0x2,_0x5b79b4(_0x17b29e)),Y(0x3,_0x5b79b4(_0x1e1f0c)),Y(0x4,_0x5b79b4(_0x2c59b9))],ma);var ha=class extends _0x156eef{constructor(_0x36667f,_0x572b59){const _0x44ebcb=_0x291e41;super(_0x36667f,_0x572b59),q(this,'_shapeId',null),q(this,'_index',null),q(this,_0x44ebcb(0x32f),null),q(this,'_subUnitId',null),q(this,_0x44ebcb(0x264),!0x1),_0x572b59&&this[_0x44ebcb(0x32c)](_0x572b59);}['getDrawingSearch'](){const _0x3b36a5=_0x291e41;return{'unitId':this['_unitId'],'subUnitId':this[_0x3b36a5(0x1df)],'drawingId':this[_0x3b36a5(0x1db)]};}['setShapeProps'](_0x375ff2){const _0xe3936f=_0x291e41;_0x375ff2[_0xe3936f(0x416)]!==void 0x0&&(this[_0xe3936f(0x1db)]=_0x375ff2[_0xe3936f(0x416)]),_0x375ff2[_0xe3936f(0x351)]!==void 0x0&&(this['_unitId']=_0x375ff2[_0xe3936f(0x351)]),_0x375ff2['subUnitId']!==void 0x0&&(this[_0xe3936f(0x1df)]=_0x375ff2[_0xe3936f(0x21b)]),_0x375ff2['isStartConnectorPoint']!==void 0x0&&(this['_isStartConnectorPoint']=_0x375ff2['isStartConnectorPoint']),this[_0xe3936f(0x220)]({'width':_0x375ff2[_0xe3936f(0x45d)],'height':_0x375ff2[_0xe3936f(0x257)]});}['_draw'](_0x3d17dd){const _0x73d205=_0x291e41;_0x49536a[_0x73d205(0x38a)](_0x3d17dd,{'radius':_0x179988[_0x73d205(0x2ed)],'fill':_0x179988[_0x73d205(0x33c)],'stroke':_0x179988['cxnPointStroke'],'strokeWidth':_0x179988['cxnPointStrokeWidth'],'evented':!0x0});}};let ga=class extends _0x557a26{constructor(_0x24dbd0,_0x929d93,_0x3ad399,_0x37ee2b,_0x38950a,_0x609f5b,_0x59b8c0,_0x14df85){const _0xcd28d4=_0x291e41;super(),this[_0xcd28d4(0x343)]=_0x24dbd0,this[_0xcd28d4(0x199)]=_0x929d93,this[_0xcd28d4(0x449)]=_0x3ad399,this[_0xcd28d4(0x346)]=_0x37ee2b,this['_univerInstanceService']=_0x38950a,this[_0xcd28d4(0x408)]=_0x609f5b,this[_0xcd28d4(0x1e3)]=_0x59b8c0,this['_sheetBasicShapeConnectionPointController']=_0x14df85,q(this,_0xcd28d4(0x41e),void 0x0),q(this,_0xcd28d4(0x32f),void 0x0),q(this,_0xcd28d4(0x1df),void 0x0),q(this,_0xcd28d4(0x1ad),[]),q(this,_0xcd28d4(0x40c),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0xcd28d4(0x22f),void 0x0),q(this,_0xcd28d4(0x1d6),!0x1),q(this,'_isDrawingShapePointDown',!0x1),q(this,_0xcd28d4(0x229),!0x1),q(this,_0xcd28d4(0x344),void 0x0),q(this,_0xcd28d4(0x380),void 0x0),q(this,_0xcd28d4(0x211),null),this[_0xcd28d4(0x2aa)]();}[_0x291e41(0x2aa)](){const _0x24b371=_0x291e41;this[_0x24b371(0x3f4)](),this[_0x24b371(0x1d0)]();}[_0x291e41(0x2ca)](){const _0x33b8ef=_0x291e41;if(!this[_0x33b8ef(0x32f)]||!this[_0x33b8ef(0x1df)]||!this[_0x33b8ef(0x41e)])return;let _0x59f473={'unitId':this['_unitId'],'subUnitId':this[_0x33b8ef(0x1df)],'drawingId':this['_activeShapeId']},{transform:_0xc89295}=this['_drawingManagerService'][_0x33b8ef(0x312)](_0x59f473);if(_0xc89295)return{'left':_0xc89295['left']||0x0,'top':_0xc89295[_0x33b8ef(0x3cf)]||0x0,'width':_0xc89295[_0x33b8ef(0x45d)]||0x0,'height':_0xc89295[_0x33b8ef(0x257)]||0x0,'flipX':_0xc89295[_0x33b8ef(0x26b)]||!0x1,'flipY':_0xc89295[_0x33b8ef(0x1d2)]||!0x1,'angle':_0xc89295[_0x33b8ef(0x2a0)]};}['_addShapeConnectorHandlerObjects'](){const _0x47d8ed=_0x291e41;if(this[_0x47d8ed(0x32f)]===void 0x0||this[_0x47d8ed(0x1df)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x2c33b2=this[_0x47d8ed(0x449)]['getRenderUnitById'](this[_0x47d8ed(0x32f)]);if(!_0x2c33b2||!_0x2c33b2[_0x47d8ed(0x401)](_0x5635f6)[_0x47d8ed(0x1e9)]())return;let {scene:_0x11fafc}=_0x2c33b2,_0x24df73=this[_0x47d8ed(0x2ca)]();if(!_0x24df73)return;let _0x4681b7=this['_sheetsShapeService'][_0x47d8ed(0x32d)](this['_unitId'],this[_0x47d8ed(0x1df)],this[_0x47d8ed(0x41e)]);if(!_0x4681b7||!_0x5184c7(_0x4681b7[_0x47d8ed(0x2ba)]()))return;let _0x67e5bb=_0x4681b7[_0x47d8ed(0x20b)]();if(_0x67e5bb['length']<0x2)return;let _0x14385f=new _0x57b6f7(_0x24df73),_0x15d393=_0x67e5bb[0x0],_0x53ae05=_0x67e5bb[_0x67e5bb[_0x47d8ed(0x3c3)]-0x1],_0x53f026=_0x14385f[_0x47d8ed(0x404)](_0x15d393),_0x4f4997=_0x14385f[_0x47d8ed(0x404)](_0x53ae05);this[_0x47d8ed(0x42a)](_0x11fafc,{..._0x53f026},!0x0),this['_addShapeConnectorHandlerObject'](_0x11fafc,{..._0x4f4997},!0x1);}[_0x291e41(0x42a)](_0x3e6fa9,_0x363c65,_0x43e42c){const _0x3b4ad3=_0x291e41;if(this[_0x3b4ad3(0x41e)]===void 0x0||this[_0x3b4ad3(0x32f)]===void 0x0||this['_subUnitId']===void 0x0)return;let _0x783f32='connector-handler-'+this['_unitId']+'-'+this[_0x3b4ad3(0x1df)]+'-'+this[_0x3b4ad3(0x41e)]+'-'+(_0x43e42c?_0x3b4ad3(0x330):_0x3b4ad3(0x3cc)),_0x359236=_0x3e6fa9[_0x3b4ad3(0x292)](_0x783f32);if(_0x359236){_0x359236[_0x3b4ad3(0x220)]({'left':_0x363c65['x']-_0x179988[_0x3b4ad3(0x2ed)],'top':_0x363c65['y']-_0x179988['cxnPointRadius']});return;}let _0x5dfe41=new ha(_0x783f32,{'left':_0x363c65['x']-_0x179988[_0x3b4ad3(0x2ed)],'top':_0x363c65['y']-_0x179988['cxnPointRadius'],'shapeId':this[_0x3b4ad3(0x41e)],'unitId':this[_0x3b4ad3(0x32f)],'subUnitId':this[_0x3b4ad3(0x1df)],'isStartConnectorPoint':_0x43e42c,'width':_0x179988['cxnPointRadius']*0x2,'height':_0x179988['cxnPointRadius']*0x2,'zIndex':_0x10b13b+0x1,'evented':!0x0});this[_0x3b4ad3(0x1ad)][_0x3b4ad3(0x1b9)](_0x5dfe41),this[_0x3b4ad3(0x222)](_0x5dfe41,_0x3e6fa9,_0x43e42c),_0x3e6fa9[_0x3b4ad3(0x35b)](_0x5dfe41,_0x10b13b+0x1);}[_0x291e41(0x436)](_0xd4412d,_0x106b8a){const _0x57e5ed=_0x291e41;var _0x1c937b;let _0x1e2b2a={'x':0x0,'y':0x0};if(!_0xd4412d||!_0x106b8a)return _0x1e2b2a;let _0x2d2557=this[_0x57e5ed(0x449)][_0x57e5ed(0x3a7)](_0xd4412d);if(!_0x2d2557||!_0x2d2557[_0x57e5ed(0x401)](_0x5635f6)[_0x57e5ed(0x2d8)](_0x106b8a))return _0x1e2b2a;let _0x49254b=_0x2d2557['with'](_0xbd2a68),_0x88f8ca=_0x49254b==null?void 0x0:_0x49254b[_0x57e5ed(0x212)]();if(!_0x88f8ca)return _0x1e2b2a;let _0x51b281=(_0x1c937b=this['_univerInstanceService'][_0x57e5ed(0x208)](_0xd4412d))==null?void 0x0:_0x1c937b['getSheetBySheetId'](_0x106b8a);if(!_0x51b281)return _0x1e2b2a;let _0x5cf396=_0x53677b(_0x88f8ca[_0x57e5ed(0x38c)],_0x88f8ca[_0x57e5ed(0x457)],_0x2d2557[_0x57e5ed(0x1f2)],_0x51b281);return _0x5cf396?{'x':_0x5cf396[_0x57e5ed(0x1cf)],'y':_0x5cf396[_0x57e5ed(0x3ea)]}:_0x1e2b2a;}[_0x291e41(0x245)](_0x4393d0,_0x53db08){const _0x4b764a=_0x291e41;var _0x4d0ef;let _0x62e7e3=(_0x4d0ef=this[_0x4b764a(0x394)][_0x4b764a(0x208)](_0x4393d0))==null?void 0x0:_0x4d0ef[_0x4b764a(0x2d1)](_0x53db08);return(_0x62e7e3==null?void 0x0:_0x62e7e3[_0x4b764a(0x3eb)]())??0x1;}[_0x291e41(0x2b3)](_0x6feae3,_0x1aac06,_0xe250d2,_0x1b7ce9,_0x321904){const _0x33dbed=_0x291e41;this[_0x33dbed(0x344)][_0x33dbed(0x34c)](),this[_0x33dbed(0x380)]['unsubscribe'](),this[_0x33dbed(0x1e3)][_0x33dbed(0x2b0)]();let _0x275ed6=this['_currentConnectionTarget'];this['_sheetBasicShapeConnectionPointController'][_0x33dbed(0x402)]();let _0x15b65e=this[_0x33dbed(0x436)](this[_0x33dbed(0x32f)],this['_subUnitId']),_0x393de5=this[_0x33dbed(0x245)](this[_0x33dbed(0x32f)],this[_0x33dbed(0x1df)]),_0xb9be11={'x':_0xe250d2[_0x33dbed(0x36f)]/_0x393de5+_0x15b65e['x'],'y':_0xe250d2[_0x33dbed(0x3b9)]/_0x393de5+_0x15b65e['y']},_0x3f6b6c=_0x275ed6?_0x275ed6['worldPoint']:_0xb9be11,_0x3546af=_0x1b7ce9?this[_0x33dbed(0x22f)]['getEndConnectInfo']():this[_0x33dbed(0x22f)][_0x33dbed(0x309)](),_0x12f93f=this[_0x33dbed(0x22f)][_0x33dbed(0x2ba)]();_0x3546af?this[_0x33dbed(0x3cb)](_0x3546af,_0x3f6b6c,_0x1b7ce9,_0x275ed6,_0x321904):this[_0x33dbed(0x289)](_0x1aac06,_0x3f6b6c,_0x1b7ce9,_0x275ed6,_0x321904,_0x12f93f),this[_0x33dbed(0x1d6)]=!0x1,this['_hasReset']=!0x1,this[_0x33dbed(0x211)]=null,_0x6feae3[_0x33dbed(0x1ef)]();}[_0x291e41(0x289)](_0x32c717,_0x421434,_0x54cf8f,_0x481af2,_0x4ce6f8,_0x2d3018){const _0x52f272=_0x291e41;let _0xa1d7e3=_0x2d3018===_0x206995[_0x52f272(0x34b)]||_0x2d3018===_0x206995[_0x52f272(0x348)],_0x295a40=_0x54cf8f?_0x421434:_0x32c717,_0x1c0c2a=_0x54cf8f?_0x32c717:_0x421434,_0x20e0da=this[_0x52f272(0x22f)][_0x52f272(0x20b)](),_0x5459eb=this[_0x52f272(0x22f)][_0x52f272(0x2ba)](),_0x34658a=_0x1105e7(_0x5459eb),_0x1e4d7a=_0x57b6f7[_0x52f272(0x38e)](_0x20e0da,_0x34658a),_0x32204a=_0xa1d7e3?_0x57b6f7[_0x52f272(0x37b)](_0x295a40,_0x1c0c2a):_0x57b6f7['computeConnectorResizeLayout'](_0x32c717,_0x421434,_0x54cf8f,_0x1e4d7a);_0x481af2?this['_executeConnectionCommand'](_0x32204a,_0x481af2,_0x54cf8f,_0x4ce6f8):this[_0x52f272(0x2e0)](_0x32204a,_0x4ce6f8);}[_0x291e41(0x3cb)](_0x2830d2,_0x7d6b2b,_0x14f402,_0x47312d,_0x15b6f2){const _0x135152=_0x291e41;let _0x17c70d=this['_getConnectPointInfo'](_0x2830d2);if(!_0x17c70d)return;let _0x19288b=_0x47312d?_0x47312d[_0x135152(0x2a0)]:this['_calculateFreeEndpointAngle'](_0x17c70d['point'],_0x7d6b2b),_0x722bcd;if(_0x47312d){let _0x2c66da=this[_0x135152(0x346)]['getDrawingByParam']({'unitId':_0x47312d['unitId'],'subUnitId':_0x47312d[_0x135152(0x21b)],'drawingId':_0x47312d[_0x135152(0x416)]});if(_0x2c66da!=null&&_0x2c66da[_0x135152(0x21c)]){let {left:_0x3abaf7=0x0,top:_0x2013dd=0x0,width:_0x3e7da8=0x0,height:_0xae495a=0x0,angle:_0xc58e5a}=_0x2c66da[_0x135152(0x21c)];_0x722bcd=_0x1eb82f({'left':_0x3abaf7,'top':_0x2013dd,'width':_0x3e7da8,'height':_0xae495a},_0xc58e5a||0x0);}else _0x722bcd={'left':_0x7d6b2b['x'],'top':_0x7d6b2b['y'],'width':0x0,'height':0x0};}else _0x722bcd={'left':_0x7d6b2b['x'],'top':_0x7d6b2b['y'],'width':0x0,'height':0x0};let _0x5d95d3={'point':_0x7d6b2b,'angle':_0x19288b,'bounds':_0x722bcd},_0xc28a33=_0x14f402?_0x5d95d3:_0x17c70d,_0x4e19d8=_0x14f402?_0x17c70d:_0x5d95d3,_0x243eee=this[_0x135152(0x22f)][_0x135152(0x2ba)](),_0xb73a27=_0xf06aa3(_0xc28a33,_0x4e19d8,_0x243eee);this[_0x135152(0x22f)][_0x135152(0x2b2)]();let _0x3564fb=_0x485b2f(_0xb73a27,_0x243eee);_0x47312d?this[_0x135152(0x1c7)](_0x3564fb,_0x47312d,_0x2830d2,_0x14f402,_0x15b6f2):this['_executeConnectedRouteResizeCommand'](_0x3564fb,_0x2830d2,_0x14f402,_0x15b6f2);}[_0x291e41(0x2bc)](_0x3109e3,_0x3790cf,_0x4575ab,_0x3f7193){const _0x2581cd=_0x291e41;let _0x4613b2=this['_activeShapeModel'][_0x2581cd(0x2d9)]()[_0x2581cd(0x2cb)],_0x16d737={..._0x4613b2},_0x2bd669={'shapeId':_0x3790cf[_0x2581cd(0x416)],'cxnIndex':_0x3790cf[_0x2581cd(0x239)]};_0x4575ab?_0x16d737['from']=_0x2bd669:_0x16d737['to']=_0x2bd669;let _0x2395b0=this[_0x2581cd(0x22f)]['getShapeType'](),_0x42b817=_0x485b2f(_0x3109e3[_0x2581cd(0x45f)],_0x2395b0),_0x118a26={'unitId':this['_unitId'],'subUnitId':this[_0x2581cd(0x1df)],'connectorShapeId':this['_activeShapeId'],'width':_0x3109e3[_0x2581cd(0x26f)][_0x2581cd(0x45d)],'height':_0x3109e3[_0x2581cd(0x26f)][_0x2581cd(0x257)],'left':_0x3109e3[_0x2581cd(0x26f)]['left'],'top':_0x3109e3['worldRect'][_0x2581cd(0x3cf)],'flipX':_0x3109e3[_0x2581cd(0x26f)][_0x2581cd(0x26b)]||!0x1,'flipY':_0x3109e3[_0x2581cd(0x26f)][_0x2581cd(0x1d2)]||!0x1,'newAdjustValues':_0x42b817['adjustValues'],'oldAdjustValues':_0x3f7193,'oldRelation':_0x4613b2,'newRelation':_0x16d737,'newLineType':_0x42b817[_0x2581cd(0x345)],'oldLineType':_0x2395b0};this[_0x2581cd(0x199)][_0x2581cd(0x2e1)](_0x54081a['id'],_0x118a26);}['_executeResizeCommand'](_0x30c35b,_0x39d99a){const _0x204d2c=_0x291e41;let _0x1a3884=this[_0x204d2c(0x22f)]['getShapeType'](),_0x583863=_0x485b2f(_0x30c35b[_0x204d2c(0x45f)],_0x1a3884),_0x23acf0={'unitId':this[_0x204d2c(0x32f)],'subUnitId':this[_0x204d2c(0x1df)],'shapeId':this[_0x204d2c(0x41e)],'width':_0x30c35b[_0x204d2c(0x26f)][_0x204d2c(0x45d)],'height':_0x30c35b['worldRect'][_0x204d2c(0x257)],'left':_0x30c35b[_0x204d2c(0x26f)]['left'],'top':_0x30c35b[_0x204d2c(0x26f)][_0x204d2c(0x3cf)],'flipX':_0x30c35b[_0x204d2c(0x26f)][_0x204d2c(0x26b)]||!0x1,'flipY':_0x30c35b[_0x204d2c(0x26f)]['flipY']||!0x1,'angle':_0x30c35b[_0x204d2c(0x26f)][_0x204d2c(0x2a0)]||0x0,'newAdjustValues':_0x583863[_0x204d2c(0x342)],'oldAdjustValues':_0x39d99a,'newLineType':_0x583863[_0x204d2c(0x345)],'oldLineType':_0x1a3884};this[_0x204d2c(0x199)][_0x204d2c(0x2e1)](_0x9d6709['id'],_0x23acf0);}['_executeConnectedRouteConnectionCommand'](_0x4673f2,_0x54c525,_0x1a4992,_0x4d8ca8,_0x2696b6){const _0x817513=_0x291e41;let _0x393c68=this['_activeShapeModel'][_0x817513(0x2d9)]()[_0x817513(0x2cb)],_0x48272c={..._0x393c68},_0xff41b7={'shapeId':_0x54c525[_0x817513(0x416)],'cxnIndex':_0x54c525[_0x817513(0x239)]};_0x4d8ca8?(_0x48272c['from']=_0xff41b7,_0x48272c['to']=_0x1a4992):(_0x48272c[_0x817513(0x354)]=_0x1a4992,_0x48272c['to']=_0xff41b7);let _0x5ea7be={'unitId':this[_0x817513(0x32f)],'subUnitId':this[_0x817513(0x1df)],'connectorShapeId':this[_0x817513(0x41e)],'width':_0x4673f2['worldRect'][_0x817513(0x45d)],'height':_0x4673f2[_0x817513(0x26f)][_0x817513(0x257)],'left':_0x4673f2[_0x817513(0x26f)]['left'],'top':_0x4673f2['worldRect'][_0x817513(0x3cf)],'flipX':_0x4673f2[_0x817513(0x26f)][_0x817513(0x26b)]||!0x1,'flipY':_0x4673f2['worldRect'][_0x817513(0x1d2)]||!0x1,'oldAdjustValues':_0x2696b6,'newAdjustValues':_0x4673f2[_0x817513(0x342)],'newLineType':_0x4673f2[_0x817513(0x345)],'rotation':_0x4673f2['rotation'],'oldRelation':_0x393c68,'newRelation':_0x48272c};this['_commandService'][_0x817513(0x2e1)](_0x54081a['id'],_0x5ea7be);}[_0x291e41(0x2f9)](_0x301bdd,_0x134c22,_0x153b66,_0x595412){const _0x4c2fef=_0x291e41;let _0x170a6b=this[_0x4c2fef(0x22f)][_0x4c2fef(0x2d9)]()['relation'],_0x1bca1c={};_0x153b66?(_0x1bca1c['to']=_0x134c22,_0x1bca1c[_0x4c2fef(0x354)]=void 0x0):(_0x1bca1c[_0x4c2fef(0x354)]=_0x134c22,_0x1bca1c['to']=void 0x0);let _0x1345ef={'unitId':this[_0x4c2fef(0x32f)],'subUnitId':this[_0x4c2fef(0x1df)],'connectorShapeId':this[_0x4c2fef(0x41e)],'width':_0x301bdd['worldRect'][_0x4c2fef(0x45d)],'height':_0x301bdd['worldRect'][_0x4c2fef(0x257)],'left':_0x301bdd[_0x4c2fef(0x26f)]['left'],'top':_0x301bdd[_0x4c2fef(0x26f)][_0x4c2fef(0x3cf)],'flipX':_0x301bdd['worldRect']['flipX']||!0x1,'flipY':_0x301bdd[_0x4c2fef(0x26f)][_0x4c2fef(0x1d2)]||!0x1,'oldAdjustValues':_0x595412,'newAdjustValues':_0x301bdd['adjustValues'],'newLineType':_0x301bdd[_0x4c2fef(0x345)],'rotation':_0x301bdd[_0x4c2fef(0x44a)],'oldRelation':_0x170a6b,'newRelation':_0x1bca1c};this['_commandService'][_0x4c2fef(0x2e1)](_0x54081a['id'],_0x1345ef);}['_attachConnectorObjectEvent'](_0x3d41b9,_0x255770,_0x3cf8aa){const _0x45640d=_0x291e41;this[_0x45640d(0x432)](_0x53ca46(_0x3d41b9[_0x45640d(0x1e7)]['subscribeEvent']((_0x3dea8c,_0x5467ad)=>{const _0x462b13=_0x45640d;let _0xd4f949=_0x3d41b9['getDrawingSearch']();if(this['_activeShapeModel']=this[_0x462b13(0x408)][_0x462b13(0x32d)](_0xd4f949[_0x462b13(0x351)],_0xd4f949[_0x462b13(0x21b)],_0xd4f949[_0x462b13(0x1dd)]),!this['_activeShapeModel'])return;let _0x418caf={};this[_0x462b13(0x22f)][_0x462b13(0x36e)]()['forEach'](_0x3da3c1=>{const _0x3569a7=_0x462b13;let _0x126576=this['_activeShapeModel'][_0x3569a7(0x1c9)](_0x3da3c1);_0x126576!==void 0x0&&(_0x418caf[_0x3da3c1]=_0x126576);});let _0x33f132=this[_0x462b13(0x2ca)]();if(!_0x33f132)return;this[_0x462b13(0x40c)]={..._0x33f132};let _0x3ae506=new _0x57b6f7(this[_0x462b13(0x40c)]),_0x4af571=_0x38d621({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x462b13(0x41e)]}),_0x27c81a=_0x255770[_0x462b13(0x292)](_0x4af571);this[_0x462b13(0x1d6)]=!0x0,_0x255770['disableObjectsEvent'](),this['_sheetBasicShapeConnectionPointController']['startConnectionDetection'](_0x255770,this['_unitId'],this[_0x462b13(0x1df)],this[_0x462b13(0x41e)]),this[_0x462b13(0x211)]=null;let _0x46d805=this[_0x462b13(0x22f)]['getConnectorLinePoints'](),_0x21904c=_0x46d805[0x0],_0x346f35=_0x46d805[_0x46d805[_0x462b13(0x3c3)]-0x1],_0x496529=_0x3cf8aa?_0x3ae506[_0x462b13(0x404)](_0x346f35):_0x3ae506[_0x462b13(0x404)](_0x21904c);this[_0x462b13(0x344)]=_0x255770[_0x462b13(0x349)][_0x462b13(0x1a9)]((_0x1328fc,_0x9527ff)=>{const _0x53040e=_0x462b13;if(!this[_0x53040e(0x1d6)]||!this[_0x53040e(0x22f)])return;this[_0x53040e(0x229)]||=(this['_sheetShapeAdjustController'][_0x53040e(0x228)](),this[_0x53040e(0x22f)][_0x53040e(0x2a9)](),!0x0);let _0x4d4e87=this[_0x53040e(0x436)](this[_0x53040e(0x32f)],this[_0x53040e(0x1df)]),_0x296967=this[_0x53040e(0x245)](this[_0x53040e(0x32f)],this['_subUnitId']),_0x11e29e={'x':_0x1328fc[_0x53040e(0x36f)]/_0x296967+_0x4d4e87['x'],'y':_0x1328fc[_0x53040e(0x3b9)]/_0x296967+_0x4d4e87['y']},_0x1dfeef=this[_0x53040e(0x429)]['updateConnectionDetection'](_0x11e29e);if(_0x1dfeef){let {shapeId:_0x11a11f,unitId:_0x5f570d,subUnitId:_0x56f292}=_0x1dfeef;if(_0x11a11f&&_0x5f570d&&_0x56f292){let _0x2687a5=_0x38d621({'unitId':_0x5f570d,'subUnitId':_0x56f292,'drawingId':_0x11a11f});_0x1dfeef[_0x53040e(0x2a0)]=(_0x255770['getObjectIncludeInGroup'](_0x2687a5)['angle']||0x0)+_0x1dfeef[_0x53040e(0x2a0)];}}this[_0x53040e(0x211)]=_0x1dfeef;let _0x146b77=_0x3cf8aa?this['_activeShapeModel'][_0x53040e(0x386)]():this[_0x53040e(0x22f)][_0x53040e(0x309)]();_0x146b77?this['_handleConnectedEndpointMove'](_0x146b77,_0x11e29e,_0x3cf8aa,_0x27c81a,_0x3d41b9):this['_handleFreeEndpointMove'](_0x11e29e,_0x496529,_0x3cf8aa,_0x27c81a,_0x3d41b9);}),this[_0x462b13(0x380)]=_0x255770[_0x462b13(0x274)][_0x462b13(0x1a9)]((_0x3983eb,_0x37099f)=>{const _0x47e477=_0x462b13;this[_0x47e477(0x2b3)](_0x255770,_0x496529,_0x3983eb,_0x3cf8aa,_0x418caf);}),_0x5467ad[_0x462b13(0x2a5)]();})));}[_0x291e41(0x381)](_0x5d4c80,_0x5dfd66,_0x243082){const _0x49907a=_0x291e41;let _0x218757=this['_sheetsShapeService'][_0x49907a(0x33a)](_0x5d4c80,_0x5dfd66,_0x243082);if(!_0x218757||_0x218757[_0x49907a(0x3c3)]===0x0)return;let _0x11ce84=this[_0x49907a(0x449)][_0x49907a(0x3a7)](_0x5d4c80);if(!_0x11ce84)return;let {scene:_0x285d7d}=_0x11ce84;for(let _0x3c9e6f of _0x218757){let _0x466cd0=_0x3c9e6f['lineShapeId'],_0x584aa7=this[_0x49907a(0x408)][_0x49907a(0x32d)](_0x5d4c80,_0x5dfd66,_0x466cd0);if(!_0x584aa7)continue;let _0x3a730c=_0x584aa7[_0x49907a(0x309)](),_0x58727e=_0x584aa7[_0x49907a(0x386)](),_0x45b7aa=(_0x3a730c==null?void 0x0:_0x3a730c['shapeId'])===_0x243082,_0x14d24c=_0x38d621({'unitId':_0x5d4c80,'subUnitId':_0x5dfd66,'drawingId':_0x466cd0}),_0x3fda81=_0x285d7d[_0x49907a(0x292)](_0x14d24c);if(!_0x3fda81)continue;let _0x104e35=this[_0x49907a(0x346)][_0x49907a(0x312)]({'unitId':_0x5d4c80,'subUnitId':_0x5dfd66,'drawingId':_0x466cd0});_0x104e35!=null&&_0x104e35[_0x49907a(0x21c)]&&(_0x3a730c&&_0x58727e?this[_0x49907a(0x20a)](_0x5d4c80,_0x5dfd66,_0x466cd0,_0x584aa7,_0x3a730c,_0x58727e,_0x3fda81):this[_0x49907a(0x3be)](_0x5d4c80,_0x5dfd66,_0x466cd0,_0x584aa7,_0x45b7aa?_0x3a730c:_0x58727e,_0x45b7aa,_0x104e35,_0x3fda81));}}['_rerouteConnectorLine'](_0x2098af,_0x1f47cd,_0x5ab562,_0x14404b,_0x144ef8,_0x2a9b6f,_0x33c214){const _0x488b8a=_0x291e41;let _0x1b30b1=this['_unitId'],_0x6d9824=this[_0x488b8a(0x1df)];this[_0x488b8a(0x32f)]=_0x2098af,this[_0x488b8a(0x1df)]=_0x1f47cd;let _0x601c4=this[_0x488b8a(0x224)](_0x144ef8),_0x2e32e9=this[_0x488b8a(0x224)](_0x2a9b6f);if(this[_0x488b8a(0x32f)]=_0x1b30b1,this[_0x488b8a(0x1df)]=_0x6d9824,!_0x601c4||!_0x2e32e9)return;let _0x255427=_0x14404b['getShapeType'](),_0x3b1f48=_0xf06aa3(_0x601c4,_0x2e32e9,_0x255427);_0x3b1f48&&_0x14404b[_0x488b8a(0x247)](_0x3b1f48);let _0x3af657=_0x485b2f(_0x3b1f48,_0x255427);_0x3af657[_0x488b8a(0x345)]!==_0x255427&&_0x14404b[_0x488b8a(0x44c)](_0x3af657[_0x488b8a(0x345)]),_0x14404b[_0x488b8a(0x2a9)]();for(let [_0x48388b,_0x20c301]of Object[_0x488b8a(0x384)](_0x3af657[_0x488b8a(0x342)]))_0x14404b['setAdjustValueByName'](_0x48388b,_0x20c301);_0x14404b['updateContext']({'width':_0x3af657[_0x488b8a(0x26f)][_0x488b8a(0x45d)],'height':_0x3af657[_0x488b8a(0x26f)][_0x488b8a(0x257)]}),_0x33c214[_0x488b8a(0x220)]({'flipX':_0x3af657[_0x488b8a(0x26f)][_0x488b8a(0x26b)],'flipY':_0x3af657[_0x488b8a(0x26f)][_0x488b8a(0x1d2)],'left':_0x3af657[_0x488b8a(0x26f)][_0x488b8a(0x337)],'top':_0x3af657['worldRect']['top'],'width':_0x3af657[_0x488b8a(0x26f)]['width'],'height':_0x3af657[_0x488b8a(0x26f)][_0x488b8a(0x257)],'angle':_0x3af657[_0x488b8a(0x44a)]}),_0x14404b[_0x488b8a(0x2b2)]();}[_0x291e41(0x3be)](_0x508731,_0x10cb50,_0x1a95f1,_0x20da4e,_0x590fd1,_0xa3978c,_0x1eba7d,_0x40223d){const _0x1fdd62=_0x291e41;let _0x28940a=this['_unitId'],_0x51e142=this[_0x1fdd62(0x1df)];this['_unitId']=_0x508731,this[_0x1fdd62(0x1df)]=_0x10cb50;let _0x5ed557=this[_0x1fdd62(0x224)](_0x590fd1);if(this[_0x1fdd62(0x32f)]=_0x28940a,this[_0x1fdd62(0x1df)]=_0x51e142,!_0x5ed557)return;let {left:_0x2d7775=0x0,top:_0x36cd15=0x0,width:_0x38c079=0x0,height:_0x5707e4=0x0,flipX:_0xa44c08=!0x1,flipY:_0x2e5064=!0x1}=_0x1eba7d[_0x1fdd62(0x21c)],_0x5165bb=_0x20da4e[_0x1fdd62(0x20b)]();if(_0x5165bb['length']<0x2)return;let _0x56dcd5=new _0x57b6f7({'left':_0x2d7775,'top':_0x36cd15,'width':_0x38c079,'height':_0x5707e4,'flipX':_0xa44c08,'flipY':_0x2e5064}),_0x3127ce=_0xa3978c?_0x5165bb[_0x5165bb[_0x1fdd62(0x3c3)]-0x1]:_0x5165bb[0x0],_0x411fdd=_0x56dcd5[_0x1fdd62(0x404)](_0x3127ce),_0x36c16c=_0x57b6f7[_0x1fdd62(0x206)](_0x411fdd,_0x5ed557[_0x1fdd62(0x3e5)],!_0xa3978c);_0x40223d[_0x1fdd62(0x220)]({'flipX':_0x36c16c[_0x1fdd62(0x26f)]['flipX'],'flipY':_0x36c16c[_0x1fdd62(0x26f)]['flipY'],'left':_0x36c16c[_0x1fdd62(0x26f)][_0x1fdd62(0x337)],'top':_0x36c16c[_0x1fdd62(0x26f)]['top'],'width':_0x36c16c[_0x1fdd62(0x26f)][_0x1fdd62(0x45d)],'height':_0x36c16c[_0x1fdd62(0x26f)][_0x1fdd62(0x257)],'angle':_0x36c16c[_0x1fdd62(0x26f)]['angle']}),_0x40223d[_0x1fdd62(0x293)](!0x0);}[_0x291e41(0x31f)](){const _0x9d7689=_0x291e41;this[_0x9d7689(0x1ad)]['length']!==0x0&&(this[_0x9d7689(0x1ad)][_0x9d7689(0x44b)](_0x294479=>{const _0x2845d7=_0x9d7689;_0x294479[_0x2845d7(0x20d)]();}),this[_0x9d7689(0x1ad)]=[]);}[_0x291e41(0x1d0)](){const _0x16971c=_0x291e41;let _0xf70b61=this[_0x16971c(0x394)][_0x16971c(0x262)](_0x3c82b9[_0x16971c(0x35c)]);this[_0x16971c(0x432)](_0xf70b61[_0x16971c(0x24c)](_0x17931b(_0x418d5e=>_0x418d5e?_0x418d5e[_0x16971c(0x3bc)][_0x16971c(0x24c)](_0x17931b(_0x1c6483=>{const _0x26ebe0=_0x16971c;if(!_0x1c6483)return _0x257bb9;let _0x5dcec5=_0x418d5e['getUnitId'](),_0x2f858a=this[_0x26ebe0(0x449)]['getRenderUnitById'](_0x5dcec5),_0x85567a=_0x2f858a==null?void 0x0:_0x2f858a[_0x26ebe0(0x1f2)];return _0x85567a?_0x413c25(_0x85567a):_0x257bb9;})):_0x257bb9))[_0x16971c(0x456)](_0x3cf5a4=>{const _0xdeb119=_0x16971c;let _0xe689ab=_0x3cf5a4[_0xdeb119(0x39e)]();this['disposeWithMe'](_0x3cf5a4[_0xdeb119(0x349)][_0xdeb119(0x1a9)](_0x9cffdc=>{const _0x2f94b0=_0xdeb119;this[_0x2f94b0(0x30e)]&&this[_0x2f94b0(0x41e)]&&this[_0x2f94b0(0x31f)]();})),this[_0xdeb119(0x432)](_0xe689ab[_0xdeb119(0x36c)][_0xdeb119(0x456)](_0x5a0e29=>{const _0xb7ddf8=_0xdeb119;let {objects:_0x314749}=_0x5a0e29;this[_0xb7ddf8(0x31f)](),_0x314749!==null&&_0x314749[_0xb7ddf8(0x215)]===0x1&&_0x314749[_0xb7ddf8(0x3f3)]()['next']()[_0xb7ddf8(0x3ec)]instanceof J&&(this[_0xb7ddf8(0x30e)]=!0x0);})),this[_0xdeb119(0x432)](_0xe689ab[_0xdeb119(0x2f2)][_0xdeb119(0x456)](_0x3f450f=>{const _0x4561f5=_0xdeb119;this[_0x4561f5(0x30e)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0xdeb119(0x432)](_0x3cf5a4['onPointerUp$'][_0xdeb119(0x1a9)](()=>{const _0x5edbde=_0xdeb119;this[_0x5edbde(0x30e)]&&(this['_isDrawingShapePointDown']=!0x1,this['_addShapeConnectorHandlerObjects']());})),this[_0xdeb119(0x432)](_0xe689ab[_0xdeb119(0x398)][_0xdeb119(0x456)](()=>{const _0x19c43e=_0xdeb119;this[_0x19c43e(0x32f)]&&this[_0x19c43e(0x1df)]&&this[_0x19c43e(0x41e)]&&this[_0x19c43e(0x346)][_0x19c43e(0x312)]({'unitId':this[_0x19c43e(0x32f)],'subUnitId':this[_0x19c43e(0x1df)],'drawingId':this['_activeShapeId']})&&(this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x291e41(0x3f4)](){const _0x5a9c64=_0x291e41;this['disposeWithMe'](this[_0x5a9c64(0x346)][_0x5a9c64(0x1d8)][_0x5a9c64(0x456)](_0x1cb1d9=>{const _0x298935=_0x5a9c64;if(_0x1cb1d9['length']===0x1){let _0x4b94c8=_0x1cb1d9[0x0];if(_0x4b94c8['drawingType']===_0x40fd85[_0x298935(0x43a)]){let _0x319a73=this['_sheetsShapeService'][_0x298935(0x32d)](_0x4b94c8[_0x298935(0x351)],_0x4b94c8[_0x298935(0x21b)],_0x4b94c8[_0x298935(0x1dd)]);if(_0x319a73&&_0x5184c7(_0x319a73['getShapeType']())){this[_0x298935(0x41e)]=_0x4b94c8['drawingId'],this[_0x298935(0x32f)]=_0x4b94c8[_0x298935(0x351)],this[_0x298935(0x1df)]=_0x4b94c8[_0x298935(0x21b)],this[_0x298935(0x31f)](),this[_0x298935(0x270)]();return;}}}this[_0x298935(0x41e)]=void 0x0,this[_0x298935(0x32f)]=void 0x0,this[_0x298935(0x1df)]=void 0x0,this[_0x298935(0x31f)]();})),this[_0x5a9c64(0x432)](this[_0x5a9c64(0x346)][_0x5a9c64(0x1c3)][_0x5a9c64(0x456)](_0x3b750d=>{const _0x139418=_0x5a9c64;if(_0x3b750d['length']===0x1){var _0x3edf05;let _0x176df7=_0x3b750d[0x0],_0x3b7e31=(_0x3edf05=this[_0x139418(0x346)][_0x139418(0x312)](_0x176df7))==null?void 0x0:_0x3edf05[_0x139418(0x209)];_0x3b7e31===_0x40fd85[_0x139418(0x43a)]&&_0x176df7[_0x139418(0x1dd)]===this[_0x139418(0x41e)]?(this['_clearShapeConnectorHandlerObjects'](),this[_0x139418(0x270)]()):!this[_0x139418(0x41e)]&&_0x3b7e31===_0x40fd85[_0x139418(0x43a)]&&this[_0x139418(0x381)](_0x176df7[_0x139418(0x351)],_0x176df7[_0x139418(0x21b)],_0x176df7[_0x139418(0x1dd)]);}})),this[_0x5a9c64(0x432)](this['_drawingManagerService'][_0x5a9c64(0x31c)][_0x5a9c64(0x456)](_0x5054b1=>{const _0x22fe74=_0x5a9c64;for(let _0x1c0504 of _0x5054b1){let {drawingId:_0x25df15}=_0x1c0504;if(this[_0x22fe74(0x41e)]===_0x25df15){this['_reset']();return;}}}));}[_0x291e41(0x353)](_0x3e3a0e,_0x16a105,_0x386a61,_0x51d867,_0x42b8f6){const _0x976b10=_0x291e41;var _0x3120f6;if(!this[_0x976b10(0x22f)])return;let _0x5a93f8=this['_getConnectPointInfo'](_0x3e3a0e);if(!_0x5a93f8)return;let _0x18e2c3=this[_0x976b10(0x211)]?this['_currentConnectionTarget'][_0x976b10(0x2f6)]:_0x16a105,_0x296453=this[_0x976b10(0x211)]?this[_0x976b10(0x211)]['angle']:this['_calculateFreeEndpointAngle'](_0x5a93f8[_0x976b10(0x3e5)],_0x18e2c3),_0x86f25b;if(this['_currentConnectionTarget']){let _0x1d84b3=this[_0x976b10(0x346)][_0x976b10(0x312)]({'unitId':this['_currentConnectionTarget'][_0x976b10(0x351)],'subUnitId':this[_0x976b10(0x211)][_0x976b10(0x21b)],'drawingId':this[_0x976b10(0x211)]['shapeId']});if(_0x1d84b3!=null&&_0x1d84b3['transform']){let {left:_0x15d3c3=0x0,top:_0x1b21f9=0x0,width:_0x2e0ba8=0x0,height:_0x3c10b8=0x0,angle:_0x1ebe31}=_0x1d84b3[_0x976b10(0x21c)];_0x86f25b=_0x1eb82f({'left':_0x15d3c3,'top':_0x1b21f9,'width':_0x2e0ba8,'height':_0x3c10b8},_0x1ebe31||0x0);}else _0x86f25b={'left':_0x18e2c3['x'],'top':_0x18e2c3['y'],'width':0x0,'height':0x0};}else _0x86f25b={'left':_0x18e2c3['x'],'top':_0x18e2c3['y'],'width':0x0,'height':0x0};let _0xaa98d9={'point':_0x18e2c3,'angle':_0x296453,'bounds':_0x86f25b},_0x354b7b=_0x386a61?_0xaa98d9:_0x5a93f8,_0x54781b=_0x386a61?_0x5a93f8:_0xaa98d9,_0xeea2a7=this['_activeShapeModel']['getShapeType'](),_0x4df63c=_0xf06aa3(_0x354b7b,_0x54781b,_0xeea2a7);_0x4df63c&&this['_activeShapeModel'][_0x976b10(0x247)](_0x4df63c);let _0x4483d1=_0x485b2f(_0x4df63c,_0xeea2a7);_0x4483d1['lineType']!==_0xeea2a7&&this[_0x976b10(0x22f)][_0x976b10(0x44c)](_0x4483d1[_0x976b10(0x345)]);for(let [_0x53b54f,_0x48eaa5]of Object[_0x976b10(0x384)](_0x4483d1['adjustValues']))this[_0x976b10(0x22f)][_0x976b10(0x3d9)](_0x53b54f,_0x48eaa5);this[_0x976b10(0x22f)][_0x976b10(0x31e)]({'width':_0x4483d1[_0x976b10(0x26f)]['width'],'height':_0x4483d1['worldRect'][_0x976b10(0x257)]}),_0x51d867[_0x976b10(0x220)]({'flipX':_0x4483d1[_0x976b10(0x26f)][_0x976b10(0x26b)],'flipY':_0x4483d1[_0x976b10(0x26f)][_0x976b10(0x1d2)],'left':_0x4483d1[_0x976b10(0x26f)][_0x976b10(0x337)],'top':_0x4483d1[_0x976b10(0x26f)][_0x976b10(0x3cf)],'width':_0x4483d1[_0x976b10(0x26f)][_0x976b10(0x45d)],'height':_0x4483d1[_0x976b10(0x26f)][_0x976b10(0x257)],'angle':_0x4483d1['rotation']}),_0x51d867[_0x976b10(0x293)](!0x0);let _0x2a8d63=((_0x3120f6=this[_0x976b10(0x211)])==null?void 0x0:_0x3120f6[_0x976b10(0x2f6)])??_0x16a105;_0x42b8f6[_0x976b10(0x220)]({'left':_0x2a8d63['x']-_0x179988[_0x976b10(0x2ed)],'top':_0x2a8d63['y']-_0x179988[_0x976b10(0x2ed)]});}[_0x291e41(0x412)](_0x2430e3,_0x415079,_0x2341c6,_0x321004,_0x49c1d6){const _0x4316d0=_0x291e41;var _0x6af495,_0x210dbb;let _0x2b9544=((_0x6af495=this['_currentConnectionTarget'])==null?void 0x0:_0x6af495[_0x4316d0(0x2f6)])??_0x2430e3,_0x2b8577=_0x57b6f7[_0x4316d0(0x206)](_0x415079,_0x2b9544,_0x2341c6);_0x321004[_0x4316d0(0x220)]({'flipX':_0x2b8577[_0x4316d0(0x26f)][_0x4316d0(0x26b)],'flipY':_0x2b8577['worldRect']['flipY'],'left':_0x2b8577[_0x4316d0(0x26f)][_0x4316d0(0x337)],'top':_0x2b8577[_0x4316d0(0x26f)]['top'],'width':_0x2b8577[_0x4316d0(0x26f)][_0x4316d0(0x45d)],'height':_0x2b8577['worldRect'][_0x4316d0(0x257)],'angle':_0x2b8577[_0x4316d0(0x26f)][_0x4316d0(0x2a0)]});let _0x427ee6=((_0x210dbb=this['_currentConnectionTarget'])==null?void 0x0:_0x210dbb['worldPoint'])??_0x2430e3;_0x49c1d6[_0x4316d0(0x220)]({'left':_0x427ee6['x']-_0x179988[_0x4316d0(0x2ed)],'top':_0x427ee6['y']-_0x179988['cxnPointRadius']});}['_getConnectPointInfo'](_0xe57cd9){const _0x11357b=_0x291e41;if(!this[_0x11357b(0x32f)]||!this[_0x11357b(0x1df)])return null;let {shapeId:_0x5b376d,cxnIndex:_0x55b783}=_0xe57cd9,_0x48dd25=this[_0x11357b(0x408)][_0x11357b(0x32d)](this[_0x11357b(0x32f)],this[_0x11357b(0x1df)],_0x5b376d);if(!_0x48dd25)return null;let _0x1f78d4=this[_0x11357b(0x346)][_0x11357b(0x312)]({'unitId':this[_0x11357b(0x32f)],'subUnitId':this['_subUnitId'],'drawingId':_0x5b376d});if(!(_0x1f78d4!=null&&_0x1f78d4[_0x11357b(0x21c)]))return null;let {left:_0x5ea7c2=0x0,top:_0x591647=0x0,width:_0x260bb3=0x0,height:_0x1d9751=0x0,flipX:_0x4d863c=!0x1,flipY:_0x1e0d99=!0x1,angle:_0x254584}=_0x1f78d4[_0x11357b(0x21c)];_0x48dd25[_0x11357b(0x31e)]({'width':_0x260bb3,'height':_0x1d9751});let _0x4241e2=_0x48dd25['getConnectionSiteList']()[_0x11357b(0x1e4)](_0x139719=>_0x139719['index']===_0x55b783);if(!_0x4241e2)return null;let _0x49a656=_0x4d863c?_0x260bb3-_0x4241e2['x']:_0x4241e2['x'],_0x57643d=_0x1e0d99?_0x1d9751-_0x4241e2['y']:_0x4241e2['y'];if(_0x254584!==0x0&&_0x254584!=null){let _0x14cb84=_0x254584*Math['PI']/0xb4,_0x409a6f=Math[_0x11357b(0x375)](_0x14cb84),_0x4fbc33=Math[_0x11357b(0x3ae)](_0x14cb84),_0x298fbe=_0x260bb3/0x2,_0x5e21a6=_0x1d9751/0x2,_0x3ed78d=_0x49a656-_0x298fbe,_0x21e7e2=_0x57643d-_0x5e21a6;_0x49a656=_0x298fbe+_0x3ed78d*_0x409a6f-_0x21e7e2*_0x4fbc33,_0x57643d=_0x5e21a6+_0x3ed78d*_0x4fbc33+_0x21e7e2*_0x409a6f;}_0x49a656+=_0x5ea7c2,_0x57643d+=_0x591647;let _0x1fe4c7=_0x4241e2[_0x11357b(0x308)]/0xea60;_0x4d863c&&(_0x1fe4c7=0xb4-_0x1fe4c7),_0x1e0d99&&(_0x1fe4c7=-_0x1fe4c7),_0x1fe4c7+=_0x254584||0x0,_0x1fe4c7=(_0x1fe4c7%0x168+0x168)%0x168;let _0x1bf5f9=_0x1eb82f({'left':_0x5ea7c2,'top':_0x591647,'width':_0x260bb3,'height':_0x1d9751},_0x254584||0x0);return{'point':{'x':_0x49a656,'y':_0x57643d},'angle':_0x1fe4c7,'bounds':_0x1bf5f9};}[_0x291e41(0x27e)](_0x391e76,_0x5aba38){const _0x268cd5=_0x291e41;let _0x5a879d=_0x5aba38['x']-_0x391e76['x'],_0x122fb8=_0x5aba38['y']-_0x391e76['y'];return Math[_0x268cd5(0x40f)](_0x5a879d)>=Math['abs'](_0x122fb8)?_0x5a879d>=0x0?0xb4:0x0:_0x122fb8>=0x0?0x10e:0x5a;}[_0x291e41(0x20e)](){const _0x3501e7=_0x291e41;this[_0x3501e7(0x41e)]=void 0x0,this[_0x3501e7(0x32f)]=void 0x0,this[_0x3501e7(0x1df)]=void 0x0,this[_0x3501e7(0x31f)]();}[_0x291e41(0x20d)](){const _0x4994e5=_0x291e41;this[_0x4994e5(0x31f)](),super[_0x4994e5(0x20d)]();}};ga=X([Y(0x1,_0x54c16f),Y(0x2,_0x1158d5),Y(0x3,_0x28cffc),Y(0x4,_0x44b74c),Y(0x5,_0x5b79b4(_0x1e1f0c)),Y(0x6,_0x5b79b4(Ir)),Y(0x7,_0x5b79b4(pa))],ga);let _a=class extends _0x557a26{constructor(_0x4e0f87,_0x484f51,_0x2b28dc){const _0x319b86=_0x291e41;super(),this[_0x319b86(0x19d)]=_0x4e0f87,this[_0x319b86(0x346)]=_0x484f51,this[_0x319b86(0x233)]=_0x2b28dc,this[_0x319b86(0x1ee)]();}[_0x291e41(0x1ee)](){const _0x1b5a46=_0x291e41;this['disposeWithMe'](this[_0x1b5a46(0x19d)]['interceptor'][_0x1b5a46(0x2f4)](this[_0x1b5a46(0x19d)]['interceptor'][_0x1b5a46(0x203)]()[_0x1b5a46(0x328)],{'handler':(_0x74bedb,_0x43bf51,_0x249793)=>{const _0x5b2f75=_0x1b5a46;var _0x3cf56d;let {unitId:_0x27d91e,subUnitId:_0x377578,scene:_0x27ebe9,resourceCollector:_0x2c396d}=_0x43bf51,_0x58c122=(_0x3cf56d=this[_0x5b2f75(0x346)][_0x5b2f75(0x258)](_0x27d91e))==null?void 0x0:_0x3cf56d[_0x377578];return _0x58c122==null||_0x58c122[_0x5b2f75(0x3fc)][_0x5b2f75(0x44b)](_0x23dbef=>{const _0x1cf098=_0x5b2f75;let _0x3ca4ea=_0x58c122[_0x1cf098(0x305)][_0x23dbef];_0x3ca4ea[_0x1cf098(0x209)]===_0x40fd85['DRAWING_SHAPE']&&!_0x3ca4ea[_0x1cf098(0x314)]&&this[_0x1cf098(0x233)][_0x1cf098(0x301)](_0x3ca4ea,_0x27ebe9,{'resourceCollector':_0x2c396d});}),_0x249793(_0x74bedb);}}));}};_a=X([Y(0x0,_0x5b79b4(_0x344f2a)),Y(0x1,_0x28cffc),Y(0x2,_0x5b79b4(Z))],_a);let va=class extends _0x557a26{constructor(_0x540dfa,_0x29fedd,_0x3ff7b5){const _0x40209c=_0x291e41;super(),this[_0x40209c(0x199)]=_0x540dfa,this[_0x40209c(0x202)]=_0x29fedd,this[_0x40209c(0x350)]=_0x3ff7b5,this[_0x40209c(0x446)]();}[_0x291e41(0x446)](){const _0x3f9164=_0x291e41;this[_0x3f9164(0x432)](this[_0x3f9164(0x199)][_0x3f9164(0x3fa)](_0x34f2b1=>{const _0x4cbec1=_0x3f9164;let _0x279e7e,_0x3d1a2e;if(_0x34f2b1['id']===_0x2b8b47['id']||_0x34f2b1['id']===_0x11a9aa['id']||_0x34f2b1['id']===_0x54081a['id']){let _0x30457a=_0x34f2b1['params'];_0x279e7e=_0x30457a[_0x4cbec1(0x351)],_0x3d1a2e=_0x30457a['subUnitId'];}_0x279e7e&&_0x3d1a2e&&(this[_0x4cbec1(0x350)][_0x4cbec1(0x214)]({'workbookTypes':[_0x20b096],'worksheetTypes':[_0x1ea295]},_0x279e7e,_0x3d1a2e)||this[_0x4cbec1(0x350)]['blockExecuteWithoutPermission'](this[_0x4cbec1(0x202)]['t'](_0x4cbec1(0x317))));}));}};va=X([Y(0x0,_0x5b79b4(_0x54c16f)),Y(0x1,_0x5b79b4(_0x13738a)),Y(0x2,_0x5b79b4(_0x277cdb))],va);let ya=class{constructor(_0xda70f8){const _0x1bd2a2=_0x291e41;this[_0x1bd2a2(0x449)]=_0xda70f8;}[_0x291e41(0x281)](_0x3f26cf,_0x4dfe94){const _0x581bfa=_0x291e41;let _0x10e5c2=this['_renderManagerService'][_0x581bfa(0x3a7)](_0x3f26cf['unitId']),_0xbbdf7f=_0x10e5c2==null?void 0x0:_0x10e5c2[_0x581bfa(0x1f2)];if(!_0xbbdf7f)return;let _0x148faa=_0x38d621(_0x3f26cf),_0x5b9eb9=_0xbbdf7f[_0x581bfa(0x292)](_0x148faa);_0x5b9eb9==null||_0x5b9eb9[_0x581bfa(0x3a1)](_0x4dfe94);}};ya=X([Y(0x0,_0x1158d5)],ya);let ba=class extends _0x1f6119{constructor(_0x319cac=Zi,_0x410752,_0x9b2485,_0x2a74ec,_0x390b9b){const _0x354542=_0x291e41;super(),this['_config']=_0x319cac,this['_injector']=_0x410752,this[_0x354542(0x199)]=_0x9b2485,this['_configService']=_0x2a74ec,this['_renderManagerService']=_0x390b9b;let {..._0xc23633}=_0x45bd5a({},Zi,this[_0x354542(0x28d)]);this[_0x354542(0x40d)][_0x354542(0x458)](Xi,_0xc23633),this[_0x354542(0x1b0)]();}[_0x291e41(0x227)](){const _0x199d1a=_0x291e41;this[_0x199d1a(0x369)][_0x199d1a(0x322)]([ra]),this[_0x199d1a(0x369)]['get'](ra),_0x2cbcdc(this[_0x199d1a(0x369)],[[sa],[ua],[Z],[_a],[ya],[$],[la],[Q],[va]]);}[_0x291e41(0x225)](){const _0x450f71=_0x291e41;_0x2cbcdc(this[_0x450f71(0x369)],[[pa],[Ir],[ma]]),_0x125864(this['_injector'],[[ma],[Ir]]),[[pa],[Qi],[ga],[aa]]['forEach'](_0x509b40=>{const _0x3a4eb8=_0x450f71;this[_0x3a4eb8(0x432)](this['_renderManagerService'][_0x3a4eb8(0x410)](_0x3c82b9[_0x3a4eb8(0x35c)],_0x509b40));});}['onRendered'](){const _0xc42f56=_0x291e41;_0x125864(this[_0xc42f56(0x369)],[[sa],[ua],[Z],[_a],[ya],[$],[la],[Q],[va]]);}['onSteady'](){const _0x14b6b1=_0x291e41;this[_0x14b6b1(0x369)]['get'](sa)[_0x14b6b1(0x366)]();}['_initCommands'](){const _0xfcdd9d=_0x291e41;[Rr,K,Lr,Yi][_0xfcdd9d(0x44b)](_0x5168f2=>this[_0xfcdd9d(0x432)](this[_0xfcdd9d(0x199)][_0xfcdd9d(0x2ac)](_0x5168f2)));}};q(ba,_0x291e41(0x28c),_0x3c82b9[_0x291e41(0x35c)]),q(ba,_0x291e41(0x1be),_0x291e41(0x252)),q(ba,'packageName',qi),q(ba,_0x291e41(0x403),Ji),ba=X([_0x650ae5(_0x49fb5c,_0x5795a7,_0x73a66f,_0x3d4438,_0x4d4740,_0x3c117e,_0x470190,_0x22a2d8,_0x40f5a7,_0x50e887,_0x1c1c30,_0x321a7b,_0x227d6b),Y(0x1,_0x5b79b4(_0x2882bc)),Y(0x2,_0x54c16f),Y(0x3,_0x3dbeab),Y(0x4,_0x1158d5)],ba);const xa={'type':_0x303f65[_0x291e41(0x3e6)],'id':_0x291e41(0x35e),'handler'(){return!0x0;}};function Sa(){const _0x27545c=_0x291e41;let _0x4d2e2b=_0x42cc68(_0x28cffc),_0x347f70=_0x279878(()=>_0x4d2e2b[_0x27545c(0x1d8)],_0x4d2e2b[_0x27545c(0x1f4)](),!0x1,[_0x4d2e2b]);return _0x347f70[_0x27545c(0x3c3)]===0x0?null:_0x183ba7(_0x27545c(0x3f5),{'children':_0x21f5b5(_0x27545c(0x3f5),{'className':_0x27545c(0x279),'children':[_0x183ba7(_0x575d51,{'drawings':_0x347f70,'hasCropper':!0x1}),_0x183ba7(_0xf526c,{'drawings':_0x347f70})]})});}function Ca(_0x4f52de){let {unitId:_0x3883fc,subUnitId:_0x49f1ad,shapeId:_0x6867b0}=_0x4f52de,_0x10ea82=_0x42cc68(_0x54c16f),_0x18193c=_0x42cc68(ya);return _0x183ba7(_0x36eeae,{..._0x4f52de,'positionEditor':_0x183ba7(Sa,{}),'onUpdateShapeData':(_0x3d5cf6,_0x28c6e8)=>{kr(_0x10ea82,_0x3883fc,_0x49f1ad,_0x6867b0,_0x3d5cf6,_0x28c6e8);},'onUpdateLineShapeData':(_0x1f6410,_0x524475)=>{Ar(_0x10ea82,_0x3883fc,_0x49f1ad,_0x6867b0,_0x1f6410,_0x524475);},'onUpdateShapeFillImage':_0x5626ef=>{const _0x566825=_0x7c09;_0x18193c[_0x566825(0x281)]({'unitId':_0x3883fc,'subUnitId':_0x49f1ad,'drawingId':_0x6867b0},_0x5626ef);}});}function wa(_0x4109c4){const _0x17a147=_0x291e41;let _0x2ba5aa=_0x42cc68(_0x5014c7),_0x1b92ea=_0x279878(()=>_0x2ba5aa[_0x17a147(0x21e)],_0x2ba5aa[_0x17a147(0x197)](),!0x1,[_0x2ba5aa]),_0x120331=_0x4109c4[_0x17a147(0x28b)][_0x17a147(0x365)];return!_0x120331||!_0x1b92ea?null:_0x183ba7(Ta,{..._0x120331,'canvasElement':_0x4109c4[_0x17a147(0x28b)]['canvasElement']});}function Ta(_0x502830){const _0x27e53a=_0x291e41;let _0x3204b1=_0x42cc68(_0x54c16f),_0x500fe7=_0x42cc68(_0x1e1f0c),{unitId:_0x39d5c7,subUnitId:_0x5c1067,drawingId:_0xd8d250,drawingType:_0x1942fe,shapeType:_0x55d320}=_0x502830,[_0x3910c2,_0x400cd0]=_0x339b64(_0x502830[_0x27e53a(0x3ad)]),_0x4ab73=_0x283095(()=>_0x35bc62(_0x3910c2),[_0x3910c2]),_0x4b3056=_0x283095(()=>_0x191d9a(_0x3910c2),[_0x3910c2]);_0x3b96f0(()=>{const _0x1864be=_0x27e53a;let _0xbd988d=_0x3204b1['onCommandExecuted'](_0x5adcd6=>{if(_0x5adcd6['id']!==_0x172941['id'])return;let _0x5a5dce=_0x500fe7['getShapeDataById'](_0x39d5c7,_0x5c1067,_0xd8d250);_0x5a5dce&&_0x400cd0(_0x5a5dce);});return()=>_0xbd988d[_0x1864be(0x20d)]();},[_0x3204b1,_0xd8d250,_0x500fe7,_0x5c1067,_0x39d5c7]);let _0x39bc37=_0x49c918=>{_0x400cd0(_0xce9d77=>({..._0xce9d77,..._0x49c918}));},_0x335aed=_0x2e07a5=>{const _0x4320b=_0x27e53a;let _0x3a4166=_0x7848a(_0x3910c2,_0x2e07a5);kr(_0x3204b1,_0x39d5c7,_0x5c1067,_0xd8d250,{'oldShapeData':{'shapeText':_0x3910c2[_0x4320b(0x34e)]}},_0x3a4166),_0x39bc37(_0x3a4166);},_0x6f88fd=_0x3c9bbc({'hostType':_0x3c82b9[_0x27e53a(0x35c)],'unitId':_0x39d5c7,'subUnitId':_0x5c1067,'shapeId':_0xd8d250,'shapeData':_0x3910c2,'onUpdateBinding':_0x5aa078=>{let _0x144ee3={'formulaBinding':_0x5aa078};kr(_0x3204b1,_0x39d5c7,_0x5c1067,_0xd8d250,{'oldShapeData':{'formulaBinding':_0x3910c2['formulaBinding']}},_0x144ee3),_0x39bc37(_0x144ee3);}});return _0x21f5b5(_0x50afb4,{'children':[_0x183ba7(_0x46cdc2,{'canvasElement':_0x502830[_0x27e53a(0x2e5)],'shapeData':_0x3910c2,'shapeType':_0x55d320,'textStyle':{'ff':_0x179988[_0x27e53a(0x34e)][_0x27e53a(0x3ac)],'fs':_0x179988[_0x27e53a(0x34e)]['fontSize'],'cl':{'rgb':_0x179988['shapeText'][_0x27e53a(0x442)]},..._0x4ab73},'textModel':_0x4b3056?{'ha':_0x4b3056['ha']??_0xc256c8[_0x27e53a(0x1e8)],'va':_0x4b3056['va']??_0x46a67d[_0x27e53a(0x374)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x179988[_0x27e53a(0x3bf)],'defaultGradientEndColor':_0x179988['gradientEndColor'],'defaultStrokeColor':_0x179988[_0x27e53a(0x223)],'extensionGroups':_0x6f88fd[_0x27e53a(0x204)],'floatingObjectToolbarPosition':_0x150ddc[_0x27e53a(0x2b9)],'onUpdateShapeData':(_0x1fcf4f,_0x472873)=>{kr(_0x3204b1,_0x39d5c7,_0x5c1067,_0xd8d250,_0x1fcf4f,_0x472873),_0x472873&&_0x39bc37(_0x472873);},'onUpdateText':_0x335aed,'onOpenPanel':()=>{const _0x247117=_0x27e53a;_0x3204b1[_0x247117(0x2e1)](Kr['id'],{'unitId':_0x39d5c7,'subUnitId':_0x5c1067,'drawingId':_0xd8d250});},'onDelete':()=>{const _0x1a69eb=_0x27e53a;_0x3204b1[_0x1a69eb(0x2e1)](_0x1c9438['id'],{'unitId':_0x39d5c7,'drawings':[{'unitId':_0x39d5c7,'subUnitId':_0x5c1067,'drawingId':_0xd8d250,'drawingType':_0x1942fe}]});}}),_0x6f88fd[_0x27e53a(0x355)]]});}function Ea(_0x1f740f){const _0x5b5bfc=_0x291e41;return!!_0x1f740f&&_0x5b5bfc(0x22a)in _0x1f740f&&_0x5b5bfc(0x389)in _0x1f740f;}const Da=_0x130daa(()=>{const _0x5a6cf4=_0x291e41;let _0x33fcfe=_0x42cc68($),_0x250caa=_0x42cc68(_0x1e1f0c),_0x1e4234=_0x42cc68(_0x28cffc),_0x109bd3=_0x42cc68(_0x54c16f),_0x236ec0=_0x42cc68(_0x2a1a7d),_0x51e855=_0x42cc68(_0x1158d5),_0x22e1b1=_0x283095(()=>({'getShapeModel':(_0x39dbd0,_0x43ee85,_0x5f27bc)=>_0x250caa[_0x5a6cf4(0x32d)](_0x39dbd0,_0x43ee85,_0x5f27bc),'getShapeData':(_0x51acdf,_0x5d9a06,_0x144bd4)=>_0x250caa[_0x5a6cf4(0x1a0)](_0x51acdf,_0x5d9a06,_0x144bd4),'getDrawingTransform':(_0x5b9e0e,_0x310803,_0x255ae2)=>{const _0x2388c6=_0x5a6cf4;let _0x5775a4=_0x1e4234[_0x2388c6(0x312)]({'unitId':_0x5b9e0e,'subUnitId':_0x310803,'drawingId':_0x255ae2});return _0x5775a4==null?void 0x0:_0x5775a4['transform'];},'updateShapeText':({unitId:_0x4c0e69,subUnitId:_0x1bb0b1,shapeId:_0x19556d,shapeText:_0x4cc998,oldShapeText:_0x2fd4f5,hostSize:_0x3479eb})=>{const _0x4dfea5=_0x5a6cf4;_0x236ec0[_0x4dfea5(0x24f)](_0x4c0e69,()=>{const _0x3b494a=_0x4dfea5;var _0x24e9c7;let _0x342f1a=_0x109bd3[_0x3b494a(0x1b7)](K['id'],{'unitId':_0x4c0e69,'subUnitId':_0x1bb0b1,'shapeId':_0x19556d,'shapeData':{'shapeText':_0x4cc998},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x2fd4f5}}});if(!_0x342f1a||!_0x3479eb)return _0x342f1a;let _0x1a29b4=_0x1e4234[_0x3b494a(0x312)]({'unitId':_0x4c0e69,'subUnitId':_0x1bb0b1,'drawingId':_0x19556d}),_0x2a7d4c=_0x1a29b4==null?void 0x0:_0x1a29b4['transform'];if(!Ea(_0x1a29b4)||!_0x2a7d4c)return!0x1;let _0x7c97bc={..._0x2a7d4c,'width':_0x3479eb[_0x3b494a(0x45d)],'height':_0x3479eb[_0x3b494a(0x257)]},_0x25c2d2=(_0x24e9c7=_0x51e855[_0x3b494a(0x3a7)](_0x4c0e69))==null||(_0x24e9c7=_0x24e9c7[_0x3b494a(0x401)](_0x5635f6)[_0x3b494a(0x3ab)](_0x1bb0b1))==null?void 0x0:_0x24e9c7[_0x3b494a(0x1c0)];return _0x109bd3[_0x3b494a(0x1b7)](_0xb1758f['id'],{'unitId':_0x4c0e69,'drawings':[{..._0x1a29b4,'transform':_0x7c97bc,'sheetTransform':_0x25c2d2?_0x4f36ef(_0x7c97bc,_0x25c2d2)??_0x1a29b4['sheetTransform']:_0x1a29b4[_0x3b494a(0x389)],'axisAlignSheetTransform':_0x25c2d2?_0x5e3806(_0x7c97bc,_0x25c2d2)??_0x1a29b4[_0x3b494a(0x22a)]:_0x1a29b4[_0x3b494a(0x22a)]}]});});},'updateHostSize':({unitId:_0x26a70a,subUnitId:_0x39e874,shapeId:_0x7fde42,width:_0x451821,height:_0x150872})=>{const _0x2b2b49=_0x5a6cf4;var _0x51057c;let _0x49d205=_0x1e4234[_0x2b2b49(0x312)]({'unitId':_0x26a70a,'subUnitId':_0x39e874,'drawingId':_0x7fde42}),_0x371df4=_0x49d205==null?void 0x0:_0x49d205[_0x2b2b49(0x21c)];if(!Ea(_0x49d205)||!_0x371df4)return;let _0x3faa1c={..._0x371df4,'width':_0x451821,'height':_0x150872},_0xd3af5a=(_0x51057c=_0x51e855[_0x2b2b49(0x3a7)](_0x26a70a))==null||(_0x51057c=_0x51057c[_0x2b2b49(0x401)](_0x5635f6)[_0x2b2b49(0x3ab)](_0x39e874))==null?void 0x0:_0x51057c[_0x2b2b49(0x1c0)],_0x1999a7=_0xd3af5a?_0x4f36ef(_0x3faa1c,_0xd3af5a)??_0x49d205[_0x2b2b49(0x389)]:_0x49d205[_0x2b2b49(0x389)],_0x33de0c=_0xd3af5a?_0x5e3806(_0x3faa1c,_0xd3af5a)??_0x49d205[_0x2b2b49(0x22a)]:_0x49d205['axisAlignSheetTransform'];_0x109bd3['executeCommand'](_0xb1758f['id'],{'unitId':_0x26a70a,'drawings':[{..._0x49d205,'transform':_0x3faa1c,'sheetTransform':_0x1999a7,'axisAlignSheetTransform':_0x33de0c}]});},'allowHostSizeShrink':({unitId:_0x4e38f8,subUnitId:_0x4a9e32,shapeId:_0x54d9fd})=>_0x59f590(_0x250caa[_0x5a6cf4(0x1a0)](_0x4e38f8,_0x4a9e32,_0x54d9fd)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x109bd3,_0x1e4234,_0x51e855,_0x250caa,_0x236ec0]),_0x5502b=_0x283095(()=>({'viewportKeys':{'main':_0x8831d0['VIEW_MAIN'],'leftTop':_0x8831d0['VIEW_MAIN_LEFT_TOP'],'top':_0x8831d0[_0x5a6cf4(0x26a)],'left':_0x8831d0[_0x5a6cf4(0x1ae)]},'getSkeleton':(_0x226263,_0x364b33)=>{const _0x505267=_0x5a6cf4;var _0x139324;return((_0x139324=_0x226263[_0x505267(0x401)](_0x5635f6)['getSkeletonParam'](_0x364b33[_0x505267(0x21b)]))==null?void 0x0:_0x139324['skeleton'])??null;}}),[]);return _0x183ba7(_0xde71ea,{'adapter':_0x22e1b1,'editingService':_0x33fcfe,'editorUnitId':Ur,'positionOptions':_0x5502b});});let Oa=class extends _0x557a26{constructor(_0x804564,_0x18d427){const _0x2f41a4=_0x291e41;super(),this['_componentManager']=_0x804564,this['_iconManager']=_0x18d427,this[_0x2f41a4(0x1fa)](),this[_0x2f41a4(0x448)]();}[_0x291e41(0x1fa)](){const _0xfa097f=_0x291e41;this['_iconManager'][_0xfa097f(0x290)]('ObjectLayersIcon')||this['disposeWithMe'](this[_0xfa097f(0x1b4)][_0xfa097f(0x3d0)]({'ObjectLayersIcon':_0x10ffc5})),this[_0xfa097f(0x1b4)][_0xfa097f(0x290)]('FlipHorizontalIcon')||this['disposeWithMe'](this[_0xfa097f(0x1b4)]['register']({'FlipHorizontalIcon':_0x30529a})),this[_0xfa097f(0x1b4)][_0xfa097f(0x290)](_0xfa097f(0x1e2))||this[_0xfa097f(0x432)](this[_0xfa097f(0x1b4)][_0xfa097f(0x3d0)]({'FlipVerticalIcon':_0xd6996})),this['_iconManager'][_0xfa097f(0x290)](_0xfa097f(0x259))||this['disposeWithMe'](this[_0xfa097f(0x1b4)][_0xfa097f(0x3d0)]({'BottomIcon':_0x19c68f})),this['_iconManager'][_0xfa097f(0x290)](_0xfa097f(0x373))||this[_0xfa097f(0x432)](this[_0xfa097f(0x1b4)][_0xfa097f(0x3d0)]({'MoveDownIcon':_0x14ee72})),this['_iconManager'][_0xfa097f(0x290)](_0xfa097f(0x393))||this['disposeWithMe'](this[_0xfa097f(0x1b4)][_0xfa097f(0x3d0)]({'MoveUpIcon':_0xb1af47})),this[_0xfa097f(0x1b4)][_0xfa097f(0x290)]('ShapeFormatSettingIcon')||this['disposeWithMe'](this['_iconManager'][_0xfa097f(0x3d0)]({'ShapeFormatSettingIcon':_0x21bdf2})),this[_0xfa097f(0x1b4)][_0xfa097f(0x290)]('TopmostIcon')||this['disposeWithMe'](this[_0xfa097f(0x1b4)]['register']({'TopmostIcon':_0x384eef}));}['_registerComponents'](){const _0x4a17df=_0x291e41;this[_0x4a17df(0x432)](this['_componentManager'][_0x4a17df(0x3d0)](zr,Ca)),this[_0x4a17df(0x432)](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](Br,ta)),this[_0x4a17df(0x432)](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](Xr,ni)),this[_0x4a17df(0x432)](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](Zr,$r)),this[_0x4a17df(0x3ed)][_0x4a17df(0x2e9)](_0x1b086b)||this[_0x4a17df(0x432)](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](_0x1b086b,ti)),this['disposeWithMe'](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](Vr,wa)),this['disposeWithMe'](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](pi,_i)),this['disposeWithMe'](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](fi,vi)),this['disposeWithMe'](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](mi,yi)),this['disposeWithMe'](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](hi,bi)),this[_0x4a17df(0x432)](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](Wr,_0x39f31b)),this['disposeWithMe'](this['_componentManager'][_0x4a17df(0x3d0)](_0x4a17df(0x43b),Da));}};Oa=X([Y(0x0,_0x5b79b4(_0x5a241f)),Y(0x1,_0x5b79b4(_0x3844d8))],Oa);let ka=class extends _0x557a26{constructor(_0x151efc,_0x4dd6dc,_0x51ba11,_0x1e4fe4,_0x5a6e3e,_0x4709b3,_0x4f084b,_0xcf85e9,_0x1af864){const _0x537125=_0x291e41;super();let _0x3c437a=_0x160d81=>{const _0x436424=_0x7c09;var _0x38d3c3,_0x75f441;return(((_0x38d3c3=_0xcf85e9[_0x436424(0x3da)](new _0x20b096(_0x160d81[_0x436424(0x351)])['id']))==null?void 0x0:_0x38d3c3[_0x436424(0x3ec)])??!0x0)&&(((_0x75f441=_0xcf85e9['getPermissionPoint'](new _0x1ea295(_0x160d81[_0x436424(0x351)],_0x160d81[_0x436424(0x21b)])['id']))==null?void 0x0:_0x75f441[_0x436424(0x3ec)])??!0x0);},_0x360433=_0x42da15=>_0x42da15['shapeId']&&_0x3c437a(_0x42da15)?_0x51ba11[_0x537125(0x1a0)](_0x42da15[_0x537125(0x351)],_0x42da15[_0x537125(0x21b)],_0x42da15[_0x537125(0x416)])??null:null,_0xd072e0=()=>{const _0x158558=_0x537125;let _0x4d2bb6=_0x5a6e3e[_0x158558(0x1f4)](),_0x234224=_0x4d2bb6['length']===0x1?_0x4d2bb6[0x0]:null;return(_0x234224==null?void 0x0:_0x234224['drawingType'])===_0x40fd85[_0x158558(0x43a)]&&_0x234224[_0x158558(0x351)]===_0x151efc[_0x158558(0x351)]?{'unitId':_0x234224[_0x158558(0x351)],'subUnitId':_0x234224[_0x158558(0x21b)],'shapeId':_0x234224['drawingId']}:null;};this[_0x537125(0x432)](_0x2f2687(_0x151efc,_0x4dd6dc,{'changes$':_0x6a7021(_0x5a6e3e[_0x537125(0x1d8)],_0x1e4fe4[_0x537125(0x3d8)],_0xcf85e9[_0x537125(0x359)]),'isActive':()=>{const _0x5ea719=_0x537125;var _0x290383;return((_0x290383=_0x4709b3[_0x5ea719(0x2a6)]())==null?void 0x0:_0x290383[_0x5ea719(0x440)]())===_0x151efc[_0x5ea719(0x351)]&&!_0x4f084b[_0x5ea719(0x234)](_0x2a4c27)&&_0x5a6e3e[_0x5ea719(0x1f4)]()[_0x5ea719(0x31d)](_0x7ef1f3=>_0x7ef1f3[_0x5ea719(0x351)]===_0x151efc['unitId']);},'getSelectedTarget':_0xd072e0,'getSource':()=>{let _0x4d18a6=_0xd072e0();return _0x4d18a6?_0x360433(_0x4d18a6):null;},'getTarget':_0x41a688=>{const _0x1015cb=_0x537125;let _0x32c531=_0x151efc['scene'][_0x1015cb(0x1fb)](new _0x45d11b(_0x41a688[_0x1015cb(0x36f)],_0x41a688[_0x1015cb(0x3b9)]));if(!(_0x32c531 instanceof J))return null;let _0x22c3fb={'unitId':_0x151efc[_0x1015cb(0x351)],'subUnitId':_0x32c531['subUnitId'],'shapeId':_0x32c531[_0x1015cb(0x416)]};return _0x3c437a(_0x22c3fb)?_0x22c3fb:null;},'getShape':_0x360433,'update':(_0x31d68a,_0x28e4ae,_0x76e7c0)=>_0x1af864[_0x537125(0x2e1)](K['id'],{..._0x31d68a,'shapeData':_0x76e7c0,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x28e4ae}})}));}};ka=X([Y(0x1,_0x5b79b4(_0x495908)),Y(0x2,_0x5b79b4(_0x1e1f0c)),Y(0x3,_0x5b79b4($)),Y(0x4,_0x28cffc),Y(0x5,_0x44b74c),Y(0x6,_0x4b3877),Y(0x7,_0x1d37e3),Y(0x8,_0x54c16f)],ka);const Aa='sheets-shape-contextual-ribbon';let ja=class extends _0x557a26{constructor(_0x5e628f,_0x2c7cc3,_0x1e8bb6,_0x1c33fa,_0x4f674a,_0x88442d){const _0x3916d0=_0x291e41;super(),this['_menuManagerService']=_0x5e628f,this[_0x3916d0(0x2db)]=_0x2c7cc3,this[_0x3916d0(0x346)]=_0x1e8bb6,this[_0x3916d0(0x394)]=_0x1c33fa,this['_renderManagerService']=_0x4f674a,this[_0x3916d0(0x1dc)]=_0x88442d,q(this,_0x3916d0(0x288),!0x1),this[_0x3916d0(0x1f3)][_0x3916d0(0x423)](Wi),this[_0x3916d0(0x432)](_0x53ca46(this[_0x3916d0(0x346)][_0x3916d0(0x1d8)][_0x3916d0(0x456)](()=>this[_0x3916d0(0x33b)]()))),this['_update']();}[_0x291e41(0x20d)](){const _0x54c809=_0x291e41;this[_0x54c809(0x1dc)][_0x54c809(0x36a)](!0x1,Aa),this[_0x54c809(0x35f)](),super[_0x54c809(0x20d)]();}[_0x291e41(0x33b)](){const _0x451cd4=_0x291e41;var _0x54953c;let _0x1fe444=this[_0x451cd4(0x346)]['getFocusDrawings'](),_0x2b070a=_0x1fe444['length']===0x1?_0x1fe444[0x0]:void 0x0;if((_0x2b070a==null?void 0x0:_0x2b070a[_0x451cd4(0x209)])!==_0x40fd85[_0x451cd4(0x43a)]||this['_univerInstanceService'][_0x451cd4(0x340)](_0x2b070a[_0x451cd4(0x351)])!==_0x3c82b9[_0x451cd4(0x35c)]){this[_0x451cd4(0x1dc)][_0x451cd4(0x36a)](!0x1,Aa),this[_0x451cd4(0x35f)]();return;}let _0x1d517d=(_0x54953c=this['_renderManagerService'][_0x451cd4(0x3a7)](_0x2b070a[_0x451cd4(0x351)]))==null?void 0x0:_0x54953c[_0x451cd4(0x3b5)][_0x451cd4(0x313)](),_0x5f2bd7=_0x3afe9f(_0x1d517d)===_0x451cd4(0x200);this[_0x451cd4(0x1dc)][_0x451cd4(0x36a)](_0x5f2bd7,Aa),_0x5f2bd7?this['_hide']():this[_0x451cd4(0x288)]||(this[_0x451cd4(0x288)]=!0x0,this['_ribbonService'][_0x451cd4(0x42e)](Hr,{'activate':!0x0}));}['_hide'](){const _0xf0a32c=_0x291e41;this[_0xf0a32c(0x288)]&&(this[_0xf0a32c(0x288)]=!0x1,this['_ribbonService'][_0xf0a32c(0x321)](Hr),this['_ribbonService']['setCollapsedIds']([]));}};ja=X([Y(0x0,_0x24215b),Y(0x1,_0x5b1e2e),Y(0x2,_0x28cffc),Y(0x3,_0x44b74c),Y(0x4,_0x1158d5),Y(0x5,_0x5b79b4(_0x5014c7))],ja);let Ma=class extends _0x34370e{constructor(_0x30f9a9,_0x1f8bbc,_0x307a55,_0x1bde2e,_0x14d5a1,_0x14810e,_0x2e7129,_0x33ba2e,_0x35d5df,_0x318829){super(_0x30f9a9,_0x1f8bbc,_0x307a55,_0x1bde2e,_0x14d5a1,_0x14810e,_0x2e7129,_0x33ba2e,_0x35d5df,_0x318829,{'componentKey':Wr,'editorUnitId':Ur});}};Ma=X([Y(0x1,_0x5b79b4(_0x24fa05)),Y(0x2,_0x5b79b4(_0xbc2827)),Y(0x3,_0x5b79b4(_0x132ceb)),Y(0x4,_0x54c16f),Y(0x5,_0x5b79b4(_0x2a6447)),Y(0x6,_0x5b79b4(_0xaf604c)),Y(0x7,_0x5b79b4(_0x1be28b)),Y(0x8,_0x5b79b4(_0x2112e8)),Y(0x9,_0x5b79b4($))],Ma);let Na=class extends _0x164e04{constructor(_0x308dbc,_0x32ca34,_0x3b493f,_0x152020,_0x117747){const _0x56902e=_0x291e41;super(_0x308dbc,_0x32ca34,{'editing$':_0x3b493f[_0x56902e(0x3d8)],'resolve':_0x516592=>{const _0x1dc9d2=_0x56902e;var _0x3f5ea1,_0x391db4,_0x100589;let _0x4ca726=new _0x45d11b(_0x516592[_0x1dc9d2(0x36f)],_0x516592['offsetY']),_0x1fdc50=((_0x3f5ea1=_0x308dbc[_0x1dc9d2(0x1f2)][_0x1dc9d2(0x1ec)](_0x4ca726))==null?void 0x0:_0x3f5ea1[_0x1dc9d2(0x38b)](_0x4ca726))??_0x4ca726,_0xebab84=_0x39a534(_0x308dbc['scene'][_0x1dc9d2(0x1fb)](_0x4ca726)??null,_0x1fdc50);if(!(_0xebab84 instanceof J))return null;let _0x1176b5=_0xebab84[_0x1dc9d2(0x207)](_0x1fdc50);if(!_0x1176b5)return null;let _0x2a24ba=_0xebab84,_0x46ca89={'componentKey':_0x499c50[_0x1dc9d2(0x2c6)],'direction':_0x1dc9d2(0x41c),'offset':[0x0,0xa],'onClickOutside':()=>_0x32ca34['hideInfoPopup']()};return{'object':_0xebab84,'info':{..._0x1176b5,'unitId':_0xebab84['unitId'],'subUnitId':_0xebab84[_0x1dc9d2(0x21b)],'shapeKey':_0xebab84['oKey'],'readonly':!0x0,'copyable':((_0x391db4=_0x117747[_0x1dc9d2(0x3da)](new _0x581335(_0xebab84[_0x1dc9d2(0x351)])['id']))==null?void 0x0:_0x391db4['value'])!==!0x1&&((_0x100589=_0x117747[_0x1dc9d2(0x3da)](new _0x499382(_0xebab84[_0x1dc9d2(0x351)],_0xebab84[_0x1dc9d2(0x21b)])['id']))==null?void 0x0:_0x100589[_0x1dc9d2(0x3ec)])!==!0x1},'attachPopup':()=>_0x152020[_0x1dc9d2(0x30d)](_0x2a24ba,_0x46ca89)};}}),this['disposeWithMe'](_0x308dbc[_0x56902e(0x3f9)][_0x56902e(0x3bc)][_0x56902e(0x456)](()=>this[_0x56902e(0x280)]()));}};Na=X([Y(0x1,_0x5b79b4(_0xaf604c)),Y(0x2,_0x5b79b4($)),Y(0x3,_0x5b79b4(_0x57fdbe)),Y(0x4,_0x1d37e3)],Na);let Pa=class extends _0x557a26{constructor(_0x5c13df,_0xfb5c49,_0x45a3ea,_0x514791,_0x4a1509,_0x2e0e1f,_0x335dbe,_0x5de033,_0x51130e,_0x4fd72c,_0xfbd1c7){const _0x281c9c=_0x291e41;super(),this[_0x281c9c(0x394)]=_0x5c13df,this[_0x281c9c(0x2f8)]=_0xfb5c49,this[_0x281c9c(0x1f3)]=_0x45a3ea,this[_0x281c9c(0x408)]=_0x514791,this[_0x281c9c(0x202)]=_0x4a1509,this[_0x281c9c(0x199)]=_0x2e0e1f,this[_0x281c9c(0x346)]=_0x335dbe,this[_0x281c9c(0x19e)]=_0x5de033,this[_0x281c9c(0x2d4)]=_0x51130e,this[_0x281c9c(0x449)]=_0x4fd72c,this[_0x281c9c(0x33d)]=_0xfbd1c7,q(this,'_sidebarDisposable',null),q(this,_0x281c9c(0x372),null),q(this,_0x281c9c(0x332),!0x1),q(this,'_shapeEditPanelVersion',0x0),q(this,_0x281c9c(0x2da),null),q(this,_0x281c9c(0x426),[]),this[_0x281c9c(0x1cb)](),this[_0x281c9c(0x432)](this['_univerInstanceService'][_0x281c9c(0x262)](_0x3c82b9['UNIVER_SHEET'])[_0x281c9c(0x456)](_0x3de101=>{const _0x3c171e=_0x281c9c;if(!_0x3de101){var _0x3f1b5d;(_0x3f1b5d=this[_0x3c171e(0x323)])==null||_0x3f1b5d['dispose']();}})),this[_0x281c9c(0x3c8)](),this[_0x281c9c(0x366)](),this[_0x281c9c(0x432)](this[_0x281c9c(0x33d)][_0x281c9c(0x3d8)]['subscribe'](_0x3b27ae=>{const _0xb7c765=_0x281c9c;_0x3b27ae&&this[_0xb7c765(0x278)]();}));}[_0x291e41(0x1cb)](){const _0x30be80=_0x291e41;this[_0x30be80(0x1f3)][_0x30be80(0x423)](Ki);}[_0x291e41(0x366)](){const _0x5a1a45=_0x291e41;this[_0x5a1a45(0x2da)]||=this[_0x5a1a45(0x432)](_0x5695f5(this[_0x5a1a45(0x449)],_0x3c82b9[_0x5a1a45(0x35c)],_0x3bb01f=>this['_popupMenuListener'](_0x3bb01f)));}[_0x291e41(0x360)](_0xfb6a6f,_0x550b74,_0x346315){const _0x2a1061=_0x291e41;let _0x4b0954=this[_0x2a1061(0x408)][_0x2a1061(0x1a4)](_0xfb6a6f,_0x550b74,_0x346315),_0x3db7a0=this[_0x2a1061(0x408)][_0x2a1061(0x1a0)](_0xfb6a6f,_0x550b74,_0x346315);return _0x4b0954!==void 0x0&&_0x3db7a0!==void 0x0?{'shapeData':_0x3db7a0,'shapeId':_0x346315,'shapeType':_0x4b0954,'unitId':_0xfb6a6f,'subUnitId':_0x550b74,'version':this[_0x2a1061(0x275)],'disableShapeOption':!0x1}:null;}['_clearPopups'](){const _0x3e6534=_0x291e41;this[_0x3e6534(0x426)]['forEach'](_0x403aec=>_0x403aec[_0x3e6534(0x20d)]()),this[_0x3e6534(0x426)][_0x3e6534(0x3c3)]=0x0;}['_popupMenuListener'](_0x593c4a){const _0x21e93c=_0x291e41;let _0x3a2a48=new _0x39a460();return _0x3a2a48['add'](_0x593c4a[_0x21e93c(0x2dc)][_0x21e93c(0x456)](()=>{const _0xfd2371=_0x21e93c;let _0xba936a=_0x593c4a[_0xfd2371(0x450)]();if(this[_0xfd2371(0x278)](),this['_isOpenedShapeEditPanel']||_0xba936a['size']>0x1)return;let _0x4900f4=_0xba936a[_0xfd2371(0x3f3)]()[_0xfd2371(0x1c4)]()[_0xfd2371(0x3ec)];if(!_0x4900f4)return;let _0x329220=this[_0xfd2371(0x346)][_0xfd2371(0x1aa)](_0x4900f4['oKey']);if(!_0x329220||_0x329220[_0xfd2371(0x209)]!==_0x40fd85[_0xfd2371(0x43a)])return;let {unitId:_0x5ab2a4,subUnitId:_0x3fb88d,drawingId:_0x35bde7,drawingType:_0x4c1098}=_0x329220,_0x2e454f=this[_0xfd2371(0x360)](_0x5ab2a4,_0x3fb88d,_0x35bde7);if(!_0x2e454f)return;this[_0xfd2371(0x2d4)]['setContextValue'](_0x317872,!0x0);let _0x5adb7f=this['_renderManagerService'][_0xfd2371(0x3a7)](_0x5ab2a4),_0x317fcc=((_0x5adb7f==null?void 0x0:_0x5adb7f[_0xfd2371(0x2f7)])===!0x1?_0x5adb7f['with'](_0x57fdbe):this['_sheetCanvasPopManagerService'])['attachPopupToObject'](_0x4900f4,{'componentKey':Vr,'direction':_0xfd2371(0x1f8),'offset':[0x0,_0xf7ed1d],'extraProps':{'unitId':_0x5ab2a4,'subUnitId':_0x3fb88d,'drawingId':_0x35bde7,'drawingType':_0x4c1098,'shapeType':_0x2e454f[_0xfd2371(0x3e1)],'shapeData':_0x2e454f[_0xfd2371(0x3ad)]}});this[_0xfd2371(0x426)][_0xfd2371(0x1b9)](this[_0xfd2371(0x432)](_0x317fcc)),this[_0xfd2371(0x346)]['getFocusDrawings']()[_0xfd2371(0x1e4)](_0x10c5c8=>_0x10c5c8[_0xfd2371(0x351)]===_0x5ab2a4&&_0x10c5c8[_0xfd2371(0x21b)]===_0x3fb88d&&_0x10c5c8['drawingId']===_0x35bde7)||this[_0xfd2371(0x346)]['focusDrawing']([{'unitId':_0x5ab2a4,'subUnitId':_0x3fb88d,'drawingId':_0x35bde7}]);})),_0x3a2a48['add'](_0x593c4a[_0x21e93c(0x37e)][_0x21e93c(0x456)](()=>{const _0x1c4085=_0x21e93c;this[_0x1c4085(0x278)](),this[_0x1c4085(0x2d4)]['setContextValue'](_0x317872,!0x1),this[_0x1c4085(0x346)][_0x1c4085(0x2bd)](null);})),_0x3a2a48[_0x21e93c(0x322)](_0x593c4a['changing$'][_0x21e93c(0x456)](()=>{const _0x53b6a0=_0x21e93c;this[_0x53b6a0(0x278)]();})),_0x3a2a48[_0x21e93c(0x322)](_0x593c4a[_0x21e93c(0x36c)]['subscribe'](()=>{const _0x104b3b=_0x21e93c;this[_0x104b3b(0x278)]();})),_0x53ca46(()=>{const _0x26b9c7=_0x21e93c;_0x3a2a48['dispose'](),this[_0x26b9c7(0x278)]();});}[_0x291e41(0x3c8)](){const _0x1c9850=_0x291e41;this[_0x1c9850(0x432)](this['_commandService'][_0x1c9850(0x43c)](_0x35aeb6=>{const _0x524084=_0x1c9850;if(_0x35aeb6['id']===Kr['id']){let {unitId:_0x1167d3,subUnitId:_0x63ae4b,drawingId:_0x2dd40d}=_0x35aeb6[_0x524084(0x2b1)];this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x524084(0x360)](_0x1167d3,_0x63ae4b,_0x2dd40d),this[_0x524084(0x278)](),this['_openShapeEditPanel']();}if(_0x35aeb6['id']===xa['id']&&(this[_0x524084(0x372)]=null,this[_0x524084(0x218)]()),_0x35aeb6['id']===_0x172941['id']){let {unitId:_0x403eed,subUnitId:_0xb17036,shapeId:_0x7c868d}=_0x35aeb6[_0x524084(0x2b1)];if(this[_0x524084(0x372)]&&this[_0x524084(0x372)][_0x524084(0x416)]===_0x7c868d){let _0x41c919=this[_0x524084(0x360)](_0x403eed,_0xb17036,_0x7c868d);_0x41c919&&(this['_shapeEditPanelVersion']+=0x1,_0x41c919[_0x524084(0x403)]=this[_0x524084(0x275)],this[_0x524084(0x372)]=_0x41c919,this['_isOpenedShapeEditPanel']&&this[_0x524084(0x219)]());}}})),this[_0x1c9850(0x432)](this[_0x1c9850(0x346)][_0x1c9850(0x1d8)][_0x1c9850(0x456)](_0x3f1d26=>{const _0x51360f=_0x1c9850;if(this[_0x51360f(0x332)]===!0x1)return;if(_0x3f1d26[_0x51360f(0x3c3)]===0x0){this[_0x51360f(0x372)]=null,this['_closeShapeEditPanel']();return;}if(_0x3f1d26[_0x51360f(0x3c3)]===0x1&&_0x3f1d26[0x0][_0x51360f(0x209)]===_0x40fd85[_0x51360f(0x43a)]&&(this[_0x51360f(0x275)]+=0x1,this[_0x51360f(0x372)]=this[_0x51360f(0x360)](_0x3f1d26[0x0][_0x51360f(0x351)],_0x3f1d26[0x0][_0x51360f(0x21b)],_0x3f1d26[0x0][_0x51360f(0x1dd)]),this[_0x51360f(0x372)])){this[_0x51360f(0x219)]();return;}let _0x14071e=_0x3f1d26[_0x51360f(0x3c0)](_0x2a1b5b=>_0x2a1b5b[_0x51360f(0x209)]===_0x40fd85[_0x51360f(0x43a)]);if(_0x3f1d26[_0x51360f(0x3c3)]>0x1&&_0x14071e[_0x51360f(0x3c3)]===_0x3f1d26['length']){if(this[_0x51360f(0x275)]+=0x1,this['_activeShapeInfo']=this[_0x51360f(0x360)](_0x3f1d26[0x0][_0x51360f(0x351)],_0x3f1d26[0x0]['subUnitId'],_0x3f1d26[0x0][_0x51360f(0x1dd)]),this[_0x51360f(0x372)]){this[_0x51360f(0x219)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x51360f(0x372)]=this[_0x51360f(0x360)](_0x3f1d26[0x0][_0x51360f(0x351)],_0x3f1d26[0x0][_0x51360f(0x21b)],_0x3f1d26[0x0][_0x51360f(0x1dd)]),this[_0x51360f(0x372)]){this[_0x51360f(0x372)]['disableShapeOption']=!0x0,this[_0x51360f(0x219)]();return;}}this[_0x51360f(0x218)]();}));}[_0x291e41(0x219)](){const _0x2e31ab=_0x291e41;this[_0x2e31ab(0x372)]&&(this[_0x2e31ab(0x323)]=this[_0x2e31ab(0x2f8)][_0x2e31ab(0x269)]({'id':zr,'header':{'title':this['_localeService']['t']('sheets-shape-ui.formatShape')},'width':0x184,'children':{'label':zr,...this['_activeShapeInfo']},'onClose':()=>{const _0x220708=_0x2e31ab;this[_0x220708(0x346)]['focusDrawing'](null),this[_0x220708(0x2d4)]['setContextValue'](_0x317872,!0x1),this[_0x220708(0x323)]=null;}}),this[_0x2e31ab(0x332)]=!0x0);}[_0x291e41(0x218)](){const _0x5d068a=_0x291e41;this[_0x5d068a(0x332)]=!0x1,this[_0x5d068a(0x2f8)][_0x5d068a(0x415)](zr),this['_sidebarDisposable']=null,this[_0x5d068a(0x2d4)][_0x5d068a(0x409)](_0x317872,!0x1),this['_drawingManagerService']['focusDrawing'](null);}};Pa=X([Y(0x0,_0x44b74c),Y(0x1,_0x5b79b4(_0x31c5f5)),Y(0x2,_0x24215b),Y(0x3,_0x5b79b4(_0x1e1f0c)),Y(0x4,_0x5b79b4(_0x13738a)),Y(0x5,_0x54c16f),Y(0x6,_0x28cffc),Y(0x7,_0x5b79b4(_0x57fdbe)),Y(0x8,_0x4b3877),Y(0x9,_0x1158d5),Y(0xa,_0x5b79b4($))],Pa);let Fa=class extends _0x1f6119{constructor(_0x29efcf=Zi,_0x203255,_0xac0c65,_0x5f3818,_0x49cfa5){const _0x5033d5=_0x291e41;super(),this['_config']=_0x29efcf,this[_0x5033d5(0x369)]=_0x203255,this[_0x5033d5(0x199)]=_0xac0c65,this[_0x5033d5(0x40d)]=_0x5f3818,this[_0x5033d5(0x449)]=_0x49cfa5;let {..._0x459207}=_0x45bd5a({},Zi,this[_0x5033d5(0x28d)]);this[_0x5033d5(0x40d)][_0x5033d5(0x458)](Xi,_0x459207),this[_0x5033d5(0x1b0)]();}['onRendered'](){const _0x1a78e0=_0x291e41;this[_0x1a78e0(0x449)][_0x1a78e0(0x410)](_0x3c82b9[_0x1a78e0(0x435)],[Ma]),_0x125864(this['_injector'],[[Pa],[ua],[Z],[_a]]);}['onSteady'](){const _0x32003a=_0x291e41;this[_0x32003a(0x369)][_0x32003a(0x42c)](Pa)[_0x32003a(0x366)]();}['onReady'](){const _0x170776=_0x291e41;[[pa],[Ir],[ma]][_0x170776(0x44b)](_0x4320de=>this['_injector'][_0x170776(0x322)](_0x4320de)),_0x125864(this['_injector'],[[ma],[Ir]]),this[_0x170776(0x449)][_0x170776(0x410)](_0x3c82b9[_0x170776(0x35c)],[pa]),this[_0x170776(0x449)][_0x170776(0x410)](_0x3c82b9[_0x170776(0x35c)],[Qi]),this['_renderManagerService'][_0x170776(0x410)](_0x3c82b9[_0x170776(0x35c)],[ga]),this[_0x170776(0x449)][_0x170776(0x410)](_0x3c82b9[_0x170776(0x35c)],[ia]),this['disposeWithMe'](this[_0x170776(0x449)]['registerRenderModule'](_0x3c82b9[_0x170776(0x35c)],[Na])),this[_0x170776(0x432)](this[_0x170776(0x449)]['registerRenderModule'](_0x3c82b9[_0x170776(0x35c)],[ka]));}[_0x291e41(0x227)](){const _0x2da02f=_0x291e41;this[_0x2da02f(0x369)][_0x2da02f(0x322)]([Oa]),this['_injector']['get'](Oa);let _0x1d6a45=this[_0x2da02f(0x369)];[[Pa],[ua],[Z],[_a],[ya],[$],[la],[Q],[va],[ja]][_0x2da02f(0x44b)](_0x51d565=>_0x1d6a45[_0x2da02f(0x322)](_0x51d565)),_0x125864(this[_0x2da02f(0x369)],[[Pa],[ua],[Z],[ya],[$],[la],[Q],[va],[ja]]);}[_0x291e41(0x1b0)](){const _0x4ed0f7=_0x291e41;[Rr,K,xa,Kr,Gr,Lr,Jr,Yr][_0x4ed0f7(0x44b)](_0x402193=>this[_0x4ed0f7(0x432)](this['_commandService'][_0x4ed0f7(0x2ac)](_0x402193)));}};q(Fa,_0x291e41(0x28c),_0x3c82b9[_0x291e41(0x35c)]),q(Fa,_0x291e41(0x1be),_0x291e41(0x252)),q(Fa,_0x291e41(0x277),qi),q(Fa,_0x291e41(0x403),Ji),Fa=X([_0x650ae5(_0x49fb5c,_0x5795a7,_0x73a66f,_0x55e9c6,_0x3d4438,_0x4d4740,_0x3c117e,_0x470190,_0x22a2d8,_0x15f435,_0x50e887,_0x34cd91,_0x4cb8bb),Y(0x1,_0x5b79b4(_0x2882bc)),Y(0x2,_0x54c16f),Y(0x3,_0x3dbeab),Y(0x4,_0x1158d5)],Fa);export{Wi as SheetsShapeUIContextualRibbonSchema,Ki as SheetsShapeUIMenuSchema,ba as UniverSheetsShapeMobileUIPlugin,Fa as UniverSheetsShapeUIPlugin};
|
|
1
|
+
const _0x38e982=_0x2e49;(function(_0x59b97c,_0x480053){const _0x25529e=_0x2e49,_0x3645de=_0x59b97c();while(!![]){try{const _0x514471=parseInt(_0x25529e(0x3c4))/0x1*(-parseInt(_0x25529e(0x360))/0x2)+parseInt(_0x25529e(0x308))/0x3+parseInt(_0x25529e(0x141))/0x4*(parseInt(_0x25529e(0x34c))/0x5)+parseInt(_0x25529e(0x3dd))/0x6+parseInt(_0x25529e(0x183))/0x7+-parseInt(_0x25529e(0x33b))/0x8+parseInt(_0x25529e(0x2a1))/0x9*(-parseInt(_0x25529e(0x144))/0xa);if(_0x514471===_0x480053)break;else _0x3645de['push'](_0x3645de['shift']());}catch(_0x3759eb){_0x3645de['push'](_0x3645de['shift']());}}}(_0x29d4,0x94775));import{FormulaShapeAnimationController as _0x5f160e,MobileShapeEditorService as _0x531a0e,SHAPE_CHANGE_PICKER_COMPONENT as _0x1d0554,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0xa8ab70,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x326b6b,ShapeEditPanel as _0x46e52b,ShapeFloatingToolbar as _0x5c75fb,ShapeFloatingToolbarService as _0x17c0f2,ShapeFloatingToolbarToggleFactory as _0x5ceb83,ShapeFormulaRibbonControl as _0x2e03d4,ShapeGroupEnum as _0x1d29cc,ShapePickerDropdown as _0x51103d,ShapePickerPanel as _0x4c9f43,ShapeQuickStyleGallery as _0x772515,ShapeStyleRibbonControl as _0x1499a8,ShapeTextEditorContainer as _0x5ba1ea,ShapeTextFloatMenuRenderControllerBase as _0x54f47a,ShapeTextFloatToolbar as _0x217120,ShapeTextHyperLinkHoverController as _0x3904ee,ShapeTextHyperLinkInfo as _0x1b4edc,ShapeTextHyperLinkPopupService as _0x19e867,ShapeTextRibbonControl as _0x27e9dc,ToggleShapeFloatingToolbarOperation as _0x3e1e7a,UniverShapeEditorMobileUIPlugin as _0x22cb29,UniverShapeEditorUIPlugin as _0x1f70a8,activateDrawingObject as _0x9e13b2,bindRenderTransformerLifecycle as _0x4c4456,buildShapeTextDataUpdate as _0x7053b8,clearActiveDrawingObjects as _0x538fda,createShapeTextHyperLinkRegions as _0x4aa862,drawFormulaShapeAnimationLayers as _0x2516a4,getDrawingTypeNameKey as _0x492f89,getTextModel as _0x461fbf,getTextStyle as _0x43a739,normalizeShapeTextModel as _0x4e3a1b,plainShapeTextToDocumentData as _0x1d1969,prepareShapeTextDocumentData as _0x372037,registerShapeFormatPainter as _0x585447,resolveFormulaShapeAutoFitSize as _0x4f5c14,resolveShapeContextualRibbonHostMode as _0x163141,resolveShapeTextDocumentPageHeight as _0x3a0d3c,resolveShapeTextDocumentRenderLayout as _0x2a0578,resolveShapeTextEditorBehaviorShapeData as _0x3a71d2,resolveShapeTextEditorWrapStrategy as _0x241192,resolveShapeTextHyperLinkAt as _0x28dac3,resolveShapeTextHyperLinkObject as _0xa96c91,shouldAllowShapeTextEditorHostSizeShrink as _0x3d7e43,shouldClipShapeTextDocument as _0x21b9b3,useFormulaShapeToolbar as _0x574ef4}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x5a4631,ContextMenuGroup as _0x2fbb1e,ContextMenuPosition as _0x394bea,FloatingObjectToolbarPosition as _0x5cb346,FormatPainterSessionService as _0x5ea0fd,ILayoutService as _0x38c109,IMenuManagerService as _0x3d7840,IRibbonService as _0x22f46b,ISidebarService as _0x4e0164,IconManager as _0x26766a,MenuItemType as _0xbf3362,MenuManagerPosition as _0x427908,RibbonInsertGroup as _0x361031,UndoRedoGroupService as _0x302f61,UniverMobileUIPlugin as _0x2117cd,getMenuHiddenObservable as _0x520357,useDependency as _0x459a0a,useObservable as _0x3f5135}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x9a1248,ImageSourceTypeEnum as _0x39273b,ShapeArrowSizeEnum as _0x49fbc3,ShapeArrowTypeEnum as _0x32a83b,ShapeDefaultConfig as _0x436eb7,ShapeFillEnum as _0x16017b,ShapeLineTypeEnum as _0x34d8d6,ShapeModel as _0x623510,ShapeRenderModeEnum as _0x42bae9,ShapeTypeEnum as _0x321129,computeConnectorRouteLayout as _0x12fef6,getBasicShapeRotateBound as _0x39a2e7,isConnectorShape as _0x45fca5,isCurvedConnectorShape as _0x180d11,routeConnectorLineShape as _0x464f2a}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x171282,UniverShapeEditorPlugin as _0x16b801,applyQuickStyleToShapeData as _0x22b90b,cloneShapeDataForType as _0x584f1a,createShapeFormulaDocument as _0x44632b,createShapeTextBoxShapeData as _0x2c5125,getShapeQuickStylePreset as _0x140d22,getShapeQuickStyleType as _0x389c17,resolveActiveShapeQuickStylePresetId as _0xe6bf2b}from'@univerjs-pro/shape-editor';import{DEFAULT_SHAPE_HEIGHT as _0x3c21b5,DEFAULT_SHAPE_WIDTH as _0x242f37,InsertShapeCommand as _0x45fe66,InsertSheetsShapeMutation as _0x640227,RemoveSheetsShapeMutation as _0x568d3b,SetShapeDrawingDataCommand as _0x57d411,SetSheetsShapeRotateCommand as _0x261ac0,SetSheetsShapeTextVerticalToggleCommand as _0x569423,SheetsShapeService as _0x57544e,ToggleSheetsShapeFlipCommand as _0x4f77fb,UniverSheetsShapePlugin as _0x2fdc71,UpdateConnectorRelationCommand as _0x111b1f,UpdateLineShapeResizeCommand as _0x354d6f,UpdateSheetsShapeDataMutation as _0x5a5b4d}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x42ada2,BooleanNumber as _0x31e6e1,CommandType as _0x4dec04,CustomCommandExecutionError as _0x56fc1c,DependentOn as _0x5d2b6b,Disposable as _0x942aec,DisposableCollection as _0x21c758,DocumentDataModel as _0xf0569e,DrawingTypeEnum as _0x1afd9e,FOCUSING_COMMON_DRAWINGS as _0x27fe43,FOCUSING_SHAPE_TEXT_EDITOR as _0x5a8010,HorizontalAlign as _0x34ba0f,ICommandService as _0x5aac1e,IConfigService as _0x3e62ab,IContextService as _0x467548,IImageIoService as _0x34e53d,IPermissionService as _0x33574c,IURLImageService as _0x467b00,IUndoRedoService as _0x5b09e6,IUniverInstanceService as _0x5789bf,Inject as _0x304d45,Injector as _0x4cf09b,LocaleService as _0x1180ec,Plugin as _0x56cd9b,SheetTypes as _0xd3ed2e,ThemeService as _0x1d816e,Tools as _0x3b8ecf,UniverInstanceType as _0x19c9b9,VerticalAlign as _0xb24be5,createInternalEditorID as _0x270239,generateRandomId as _0x1fdb08,merge as _0x510611,registerDependencies as _0x5326a8,toDisposable as _0x3cb981,touchDependencies as _0x35c5d7}from'@univerjs/core';import{CURSOR_TYPE as _0x126c60,Circle as _0x417a06,DRAWING_OBJECT_LAYER_INDEX as _0x5c1c17,DocumentSkeleton as _0x19e223,DocumentViewModel as _0x54d20f,Documents as _0x16aae9,IRenderManagerService as _0x1fc6ff,Image as _0x21c6ff,RENDER_CLASS_TYPE as _0x4ede46,SHEET_VIEWPORT_KEY as _0xd1d04a,Shape as _0x45dea2,Transform as _0x18b849,UniverRenderEnginePlugin as _0x30c5c0,Vector2 as _0x225e34}from'@univerjs/engine-render';import{CopySheetCommand as _0x2f491b,RemoveSheetCommand as _0x56451c,SheetInterceptorService as _0x3f5c81,SheetPermissionCheckController as _0x46746e,SheetSkeletonService as _0x2e3691,SheetsSelectionsService as _0x16abf7,UniverSheetsPlugin as _0x42e7b6,WorkbookCopyPermission as _0x3527b0,WorkbookEditablePermission as _0x5d4362,WorksheetCopyPermission as _0x3feae7,WorksheetEditPermission as _0x2cc33f,attachRangeWithCoord as _0x2fe142,discreteRangeToRange as _0x1678bb,getSheetCommandTarget as _0x5290f5}from'@univerjs/sheets';import{DrawingApplyType as _0x5c3269,ISheetDrawingService as _0x1f9cb1,RemoveSheetDrawingCommand as _0x815e46,SetDrawingApplyMutation as _0x3c7ad2,SetDrawingArrangeCommand as _0x3cad82,SetSheetDrawingCommand as _0x438f96,SheetDrawingAnchorType as _0x19c1aa,UniverSheetsDrawingPlugin as _0x507ef6,applySheetDrawingPlacement as _0x44e689,transformDrawingsToChartSheet as _0x48f054,transformToAxisAlignPosition as _0x27d83c,transformToDrawingPosition as _0x3fd5de}from'@univerjs/sheets-drawing';import{COPY_TYPE as _0xaba887,ISheetClipboardService as _0x5ad4fe,PREDEFINED_HOOK_NAME as _0x48f2e3,SHEET_VIEW_KEY as _0x5e18b6,SheetCanvasPopManagerService as _0x3f309f,SheetPasteCommand as _0x4ff7a0,SheetPrintInterceptorService as _0x1b9d1a,SheetScrollManagerService as _0x4c002e,SheetSkeletonManagerService as _0x151dc3,UniverSheetsMobileUIPlugin as _0x410968,UniverSheetsUIPlugin as _0x398cc1,deriveStateFromActiveSheet$ as _0xd1ef5e,getCurrentRangeDisable$ as _0x32f5e7,getViewportByCell as _0x1aea05}from'@univerjs/sheets-ui';import{IDrawingManagerService as _0x457af4,SetDrawingSelectedOperation as _0x55fd78,UniverDrawingPlugin as _0x3c8ce8,getDrawingShapeKeyByDrawingSearch as _0x306bd8,getOrCreateDrawingCopyPlan as _0x6b5c1d}from'@univerjs/drawing';import{BehaviorSubject as _0x5384bc,EMPTY as _0x1d5ee8,Observable as _0x43994c,defer as _0x1ddfc3,distinctUntilChanged as _0x3cc419,map as _0x3f0b72,merge as _0x185653,of as _0x402dea,startWith as _0xb8ac8c,switchMap as _0x1b4a14}from'rxjs';import{DrawingCommonPanel as _0x35b2d6,DrawingImageClipService as _0x59e432,DrawingRenderService as _0x1418f0,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x768cfe,MobileObjectListPanel as _0x5f75fd,OBJECT_LIST_FLOATING_SECTION_ID as _0x337c00,ObjectListPanelBase as _0x573685,UniverDrawingUIPlugin as _0x34fb40,getCurrentUnitInfo as _0x2abb90,getObjectListPanelSectionIdForDrawingType as _0xb31f3d,insertGroupObject as _0x50c588}from'@univerjs/drawing-ui';import{MobileDropdown as _0x37ef1f}from'@univerjs/design';import{Fragment as _0x5673b6,jsx as _0xbd5fef,jsxs as _0x49dd55}from'react/jsx-runtime';import{UniverLicensePlugin as _0x457d6d}from'@univerjs-pro/license';function _0x29d4(){const _0x57c3b2=['_calculateFreeEndpointAngle','PRINTING_COMPONENT_COLLECT','GROUP','_handleConnectorPointerUp','_isShouldShowDrawingShapeAdjust','_registerComponents','disableObjectsEvent','sheet.shape.floating-toolbar','setCollapsedIds','_updateShapeAdjustControls','getFocusDrawings','pluginName','string','drawing-ui.objectListPanel.filterLocked','cxnPointRadius','getBatchAddOp','top','URL','_findShapeAtPoint','drawing-ui.objectListPanel.descriptionPlaceholder','shape-editor-ui.arrange.front','push','_activeImageId','sheets-shape-ui.editShape','SolidFill','setEditing','adjHandleFill','_updateTransform','drawing-ui.objectListPanel.noSelection','_getShapeAdjustPointListById','translateWithPrecision','stringify','setContextValue','_subUnitId','getValue','_addShapeConnectorHandlerObjects','addObject','worksheet','@univerjs-pro/sheets-shape-ui','stroke','sheets-shape-ui.permission.editErr','setFallbackVisible','changeStart$','_shapeFormulaService','_createShapeAdjustControls','refreshTransform','setHighlighted','_copyInfo','_permissions','resetCursor','abs','Medium','length','animateFormulaPresentation','onPointerMove$','_univerInstanceService','drawing-ui.objectListPanel.show','_createCopyInfoByRange','rotation','_localeService','_visible','viewportScrollX','setShapeData','permissionPointUpdate$','_registerIcons','sheets-shape-ui.formatShape','drawing-ui.objectListPanel.search','_shapeRenderController','_reset','getCurrentUnitOfType','run','with','setShapeProps','OTHERS','_getDrawingRect','sheet.command.menu-insert-shape','getDrawingByParam','_createShape','vertical-center','presentation','front','Line','contentHeight','_shapeFloatingToolbarService','_generateChartSheetCopy','image','setOnSavingEditorData','canvas','getObjectIncludeInGroup','_registerGroupFeaturePasteHook','_groupCopyPasteController','_sheetShapeAdjustController','getConnectionInfo','getSheetBySheetId','_props','next','drawing-ui.objectListPanel.filterAll','_clearShapeConnectorHandlerObjects','attachTransformerTo','sheets-shape-contextual-ribbon','_componentManager','_initCommands','getBasicShapeRelation','_activeAdjustInfo','gray.300','symbol','_registerImageShapeClipDelegate','shape-editor-ui.toolbar.changeShape','worldPoint','_onSavingEditorData$','updateContext','object','_clearCompletionFrame','transformVector2SceneCoord','shape-editor-ui.arrange.backward','_transformCalculateSrcRect','custom','Path','offsetY','update$','_activeShapeAdjustPointList','close','setFillImage','onReady','getShapeDataById','setAdjustValueByName','stopPropagation','setPresentation','updateShapeFillImage','asObservable','onload','size','drawWith','drawing-ui.objectListPanel.locate','_initPrinting','_activeShapeId','_showConnectionSites','_getShapeAdjustInfosById','get','_connectorObjects','getTransformerByCreate','getZoomRatio','backward','RIBBON','map','end','data','subscribeEvent','interceptor','sheets-shape-ui.editText','_cxtHandlerPointerMove','rect','subUnitId','60633jhQkof','getBatchRemoveOp','clearAdjustControls','_clearPopups','forEach','makeDirty','_adjHandlerPointerMove','refreshAdjustControls','presentationChanged$','_resetState','description','includes','invert','onRendered','_executeResizeCommand','_registerFocusChangeHandler','function','_isConnecting','getConnectionRelation','setShouldShowAdjust','set','UNIVER_SHEET','_sheetClipboardService','type','connection-site-','drawing-ui.objectListPanel.expand','copyId','ObjectLayersIcon','univer-box-border\x20univer-px-4\x20univer-text-sm','addClipboardHook','_sidebarDisposable','sheets-shape-ui.ribbon.shape-format.arrange-back','drawing-ui.objectListPanel.unlock','_clearFocusedShape','updateLinePoints','MoveDownIcon','_openShapeEditPanel','fontFamily','getBentTypeFromPoints','getAdjustNames','targetShapeId','isLineShape','_getZoomRatio','_updateSrcRectByTransform','_transform','toPrimitive','getActiveViewportByCoord','getShapeTextData','isEditing','_ribbonService','filter','sheets-shape-ui.shape-format.formula-ribbon-control','DRAWING_SHAPE','diffValue','DEFAULT_PASTE','endArrow','DRAWING_IMAGE','_baseWidth','srcRect','_initEditingParams','_clearConnectionSites','unshift','cancelEditing','viewportScrollY','GRID','pick','Large','updateDocumentStyle','_sheetInterceptorService','cxnPointStrokeWidth','_updateImageAdjValues','hasDefault','_cxtHandlerPointerUp','_injector','getColorFromTheme','_disposePopups','iterator','SELECTOR','onStarting','prstGeom','_permissionService','_shapePopupMenuDisposable','cxnPointStroke','setFormulaPresentation','applyPoint','highlighted','syncExecuteCommand','_executeConnectedRouteResizeCommand','prototype','activeSheet$','_baseHeight','attachPopupToObject','gradientEndColor','onSavingEditorData$','isFinite','contentVerticalOffset','_sheetsShapeService','popup','current','width','computeConnectorResizeLayout','fillImageSourceType','ancestorTransform','3191670wYzdNc','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','_formulaKey','fillType','getCurrentTypeOfUnit$','getDrawingDataForUnit','_config','_canEdit','_getScrollInfo','sheets-shape-ui.quickStyles','_generateCutPasteMutations','scene','presetId','_baseShapeHeight','restore','UPDATE','sheets-shape-ui.flipVertical','_loadAndSetImage','_update','classType','_targetShapeId','top-center','_isHighlighted','lineType','_popupMenuListener','Position','every','onDblclick$','panel','onCommandExecuted','marginTop','reduce','sheets-shape-ui.title','_isImagePointerDown','sheet.shape.edit.panel','_generatePasteMutations','startArrow','_activeAdjustPointList','getSelectedObjectMap','getDrawingOrder','MoveUpIcon','preValue','add$','_editingParams$','_generateCopyPasteMutations','subscribe','sheets-shape-ui.ribbon.shape-format.arrange-front','getRealBound','_commandService','debounceRefreshControls','setPrstGeom','2142672TMSXbg','LEFT','actions','shape-adjust-point-','_adjName','_sheetDrawingService','setSrcRect','_drawingManagerService','_getImageDrawingInfo','_initialize','canvasElement','render','SHAPE','SheetShapeTextEditorContainer','clipTop','adjName','CHART','25CEQymM','cxnIndex','keys','activeAnObject','_activeShapeModel','sheet.command.update-shape-data','_drawSimpleText','complete','_formulaShapes','_moveConnectorWithShape','getPresentation','_isStartAdjusting','redos','_lastEditingShapeKey','getInverseCoord','_initEvents','_registerDrawingFocusChangeHandler','shapeModel','extraProps','startConnectionDetection','10ESDEkZ','selectable','groupId','CHART_PAGE','UNIVER_DOC','multiply','_formulaAnimation','adjHandleSize','visible$','getShapeType','setCanUseShapeClip','sqrt','text','ang','sheetTransform','drawingId','onSteady','sheets-shape-ui.insertShape','StraightConnector1','_shapeService','_activeTargetShapeId','changeEnd$','_sidebarService','create','range','_handleConnectedEndpointPointerUp','default','sheet.operation.open-sheet-shape-format-panel','getActiveSheet','sheet.menu.shape.flip-horizontal','getRenderUnitById','_currentUniverService','cos','dataModel','_getConnectionSiteAngle','sheets-shape-ui.ribbon.shape-format.formula-control','getDrawingVisible','add','getDrawingPoints','blockExecuteWithoutPermission','_registerMoveHandler','FlipHorizontalIcon','some','translate','computeStraightConnectorLayout','_renders','values','ShapeIcon','drawing-ui.objectListPanel.sectionFloating','getCurrentScrollState','_drawRichText','_baseShapeWidth','drawing-ui.objectListPanel.moveForward','idMap','_shapeTextEditingService','find','getShapeModel','_cxnIndex','getDrawingData','left','_baseShapeTop','dispose','1.5.1','_commandExecutedListener','_shapes','fillImageSource','sin','_addShapeAdjustControl','PictureFill','_renderManagerService','scale','changing$','drawing-ui.objectListPanel.unlockAll','bottom','div','getStartConnectInfo','_createControls','clipHeight','drawing-ui.objectListPanel.moveBackward','_handleFreeEndpointMove','renderDrawingShape','mergeMenu','SHEET','defineProperty','VIEW_MAIN','_initMenu','_isOpenedShapeEditPanel','sheet.operation.open-shape-object-list-panel','_draggingConnectorId','getActualSize','indexOf','getEditing','isArray','drawingType','_contextService','decorate','version','fill','isMainScene','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','170795FSTKVY','packageName','params','DRAWING','_connectionSiteObjects','normal','_registerDrawingMoveHandler','offsetX','refreshShapeFillImage','Rect','_clearControls','_getImagePrstGeom','resize','getDrawingEffectBounds','transform','getShapeTypeById','_shapeId','formulaPresentation','unitId','registerFeaturePasteHook','_handleBasicShapeUpdateConnectorLineShape','clip-','BottomIcon','position','getDrawingEditable','7116738OkeUCz','drawing-ui.objectListPanel.filterHidden','unsubscribe','isRenderLinePointsMode','isInGroup','Arrow','_activeShapeInfo','TRUE','getSheetId','_imageIoService','_findNearestConnectionSite','drawing-ui.objectListPanel.hideAll','isHorizontal','shapeId','has','engine','getAutoFitPresentations','extensionGroups','focus','_baseTop','point','BUTTON','sheet.shape.object-list.panel','sheet.operation.open-mobile-shape-editor','getScene','FlipVerticalIcon','focusDrawing','#1a73e8','sheet.operation.apply-shape-quick-style','_index','_releaseRenderCache','localToWorld','_highlightedSiteIndex','onTransformChange$','getContextValue','sheets-shape-ui.objectListPanel.open','getUnitType','updateConnectionDetection','sheets-shape-ui.ribbon.shape-format.arrange-backward','vertical','index','style','getConfig','rightToLeft','entries','_getOrCreateShapeModel','getImageSourceCache','cxnPointFill','_sheetBasicShapeConnectionPointController','REMOVE','clip-adj-','getState','calcAdjValues','disableShapeOption','copyType','_baseShapeLeft','value','_loadShapePictureFill','drawing-ui.objectListPanel.nameInput','sheetViewStartColumn','startY','hideInfoPopup','permissionCheckWithoutRange','sheets-shape-format-font-family-menu','forward','_registerFeatureMenu','registerCommand','_baseLeft','parse','532784BTWsCI','animationEnabled','oKey','2580ygMvnp','title','hidden','_insertShapes','_clipService','onPointerDown$','drawing-ui.objectListPanel.dragToReorder','getConnectorLinePoints','objects','_hide','_getShapeInfo','_sheetPrintInterceptorService','getObject','_menuManagerService','shapeKey','undos','_executeConnectionCommand','drawing-ui.objectListPanel.sectionCanvas','adjHandleStroke','getOwnPropertyDescriptor','sheets-shape-ui.imagePanel.crop.shape','flatMap','min','getEndConnectInfo','isDrawingObject','drawing-ui.objectListPanel.name','onPointerUp$','UUID','CUT','getImage','angle','refreshFormulaPresentation','removeLinePoints','start','shape-text-','isStartConnectorPoint','parent','_isDrawingShapePointDown','createControl$','getMatrix','gray.0','clearControl$','worldPoints','getPermissionPoint','_initCopyPaste','call','editingParams$','startX','_initSelection','flipY','_addShapeConnectorHandlerObject','worldRect','isRichText','intercept','_disposed','initShapePopupMenu','INSERT','getSkeleton','_iconManager','connector-handler-','_focusedDrawings','getBatchUpdateOp','sheets-shape-ui.objectListPanel.title','3864553OOKQyn','getUnit','shapeType','_initSheetChange','drawing-ui.objectListPanel.title','OPERATION','open','_context','getShapeData','_attachAdjustEvent','drawing-ui.objectListPanel.empty','_sheetCanvasPopManagerService','getShapeTextRect','executeCommand','getAdjustValueByName','enableObjectsEvent','setCursor','shapeData','_getSceneAndTransformerByDrawingSearch','_drawRichTextLayer','_sheetPermissionCheckController','sheets-shape-ui.flipHorizontal','SHAPE_TEXT','prstGeomAdjValues','skeleton','_isStartConnectorPoint','_init','TOP','axisAlignSheetTransform','clipByShape','doc','_drawShapeText','_drawingAddListener','sheet.shape.picker.component','currentAdjustValues','remove$','COMMAND','focus$','formulaBinding','isHighlighted','isolated','_configService','_getConnectPointInfo','completeEditing','_updateAdjustControlPositions','disposeWithMe','_executeConnectedRouteConnectionCommand','sheets-shape-text-','_applyFormulaAutoFitSize','getParent','getAdjustInfoByName','sheets-shape-ui.shape-format.text-ribbon-control','_currentScene','_renderWithCache','sheets-shape-ui.shape-format.quick-style-gallery','delete','save','_setTransForm','_adjHandlerPointerUp','_shapeEditPanelVersion','changeShapeType','_closeShapeEditPanel','relation','getCurrentSkeleton','_completionFrame','sheets-shape-ui.deleteShape','_draw','getFocusedUnit','redo','VIEW_MAIN_LEFT','endConnectionDetection','from','horizontal','getUnitId','FromArray','_hyperLinkRegions','clip','components','getDrawingSearch','_currentConnectionTarget','_handleFreeEndpointPointerUp','_insertingShapeKeys','clearAdjustValue','drawing-ui.objectListPanel.showAll','_urlImageService','localeService','mode','getDrawingOKey','resolveHyperLinkAt','_rerouteConnectorLine','ShapeFormatSettingIcon','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','options','adjustValues','getTransformer','setConfig','getConnectionSiteList','registerFeatureMenu','_instances','sheetViewStartRow','featurePluginUpdateNotification','_sheetDrawingShapeRenderController','_sheetSkeletonService','sheet.operation.update-shape-type','lineShapeId','drawing-ui.objectListPanel.lock','_hasReset','drawing-ui.objectListPanel.description','_clearShapeAdjustControls','_addControl','_imageShapeClipController','composeMatrix','sheets-shape-ui.ribbon.shape-format','flipX','sidebarOptions$','trim','isHitLine','_handleConnectedEndpointMove','None','shapeText','_baseDrawingRect','CROSSHAIR','pipe','transformByState','strokeWidth','reverse','getSkeletonParam','_unitId','registerRenderModule','height','visible','register','_initPermission'];_0x29d4=function(){return _0x57c3b2;};return _0x29d4();}import{DocInterceptorService as _0x28a9cc,DocSelectionManagerService as _0x1214d0,UniverDocsPlugin as _0x237574}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x34ad9a,DocEventManagerService as _0x5b3d6d,DocRenderController as _0x14e599,DocSelectionRenderService as _0xc704d0,UniverDocsUIPlugin as _0x3e7a54}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x316f41,SheetsDrawingGroupCopyPasteController as _0x372942,UniverSheetsDrawingMobileUIPlugin as _0x5ef2f9,UniverSheetsDrawingUIPlugin as _0x2be966}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x5d3fb9,FlipHorizontalIcon as _0x332ddb,FlipVerticalIcon as _0x1b633e,MoveDownIcon as _0x5ac96f,MoveUpIcon as _0x415dfc,ObjectLayersIcon as _0x28a4bd,ShapeFormatSettingIcon as _0x323ccb,TopmostIcon as _0x3d647d}from'@univerjs/icons';import{memo as _0x540462,useEffect as _0x6e1245,useMemo as _0x2e7dde,useReducer as _0x5c57ec,useState as _0x4ddc5d}from'react';function Ur(_0x369e23,_0x4d3cab){const _0x42475d=_0x2e49;let _0x56f0ff={};for(let _0x21438d of Object[_0x42475d(0x34e)](_0x4d3cab)){let _0x353b8d=_0x4d3cab[_0x21438d],_0x3f5219=_0x369e23[_0x21438d];_0x56f0ff[_0x21438d]=_0x3f5219===void 0x0?void 0x0:typeof _0x353b8d==_0x42475d(0x277)&&_0x353b8d&&!Array[_0x42475d(0x3bc)](_0x353b8d)&&typeof _0x3f5219==_0x42475d(0x277)&&_0x3f5219&&!Array[_0x42475d(0x3bc)](_0x3f5219)?Ur(_0x3f5219,_0x353b8d):_0x3f5219;}return _0x56f0ff;}const K={'type':_0x4dec04[_0x38e982(0x1a7)],'id':_0x38e982(0x351),'handler':(_0x2b19ec,_0x146dc1)=>{const _0x379395=_0x38e982;let _0x43be7b=_0x2b19ec[_0x379395(0x292)](_0x57544e),{unitId:_0x5cd807,subUnitId:_0x50233d,shapeType:_0x2471d7,shapeId:_0x56935d,shapeData:_0xbebe79,replaceShapeData:_0x403504,oldShapeJSON:_0x144e46}=_0x146dc1;if(!_0x43be7b[_0x379395(0x398)](_0x5cd807,_0x50233d,_0x56935d))return!0x1;let _0x4653eb=_0x2b19ec['get'](_0x5aac1e),_0x1f7185=_0x2b19ec[_0x379395(0x292)](_0x5b09e6),{oldShapeType:_0x39b820,oldShapeData:_0x3564c3={}}=_0x144e46,_0xbf0dee=_0x403504?_0x3564c3:Ur(_0x3564c3,_0xbebe79||{}),_0x139f78={'id':_0x5a5b4d['id'],'params':{'unitId':_0x5cd807,'subUnitId':_0x50233d,'shapeId':_0x56935d,'shapeType':_0x2471d7,'shapeData':_0xbebe79,'replace':_0x403504}},_0xe0523a={'id':_0x5a5b4d['id'],'params':{'unitId':_0x5cd807,'subUnitId':_0x50233d,'shapeId':_0x56935d,'shapeType':_0x39b820,'shapeData':_0xbf0dee,'replace':_0x403504}};return _0x4653eb['syncExecuteCommand'](_0x139f78['id'],_0x139f78['params'])?(_0x1f7185['pushUndoRedo']({'unitID':_0x5cd807,'undoMutations':[_0xe0523a],'redoMutations':[_0x139f78]}),!0x0):!0x1;}};function Wr(_0x1e134c,_0x286bd5,_0x3142ad,_0xccaab,_0x5ee1fd,_0x40203f){let _0x431ce0={'unitId':_0x286bd5,'subUnitId':_0x3142ad,'shapeId':_0xccaab,'shapeData':_0x40203f,'oldShapeJSON':_0x5ee1fd};return _0x1e134c['executeCommand'](K['id'],_0x431ce0);}function Gr(_0x3dc47c,_0x560277,_0x3766f4,_0x20111c,_0x52d0d9,_0x2ca9eb){let _0x197008={'unitId':_0x560277,'subUnitId':_0x3766f4,'shapeId':_0x20111c,'shapeData':_0x2ca9eb,'oldShapeJSON':_0x52d0d9};return _0x3dc47c['executeCommand'](K['id'],_0x197008);}function Kr(_0x2add89){'@babel/helpers - typeof';const _0x1702e2=_0x38e982;return Kr=typeof Symbol=='function'&&typeof Symbol[_0x1702e2(0x2ed)]==_0x1702e2(0x271)?function(_0x23e6cd){return typeof _0x23e6cd;}:function(_0xbc5ada){const _0x5807ae=_0x1702e2;return _0xbc5ada&&typeof Symbol==_0x5807ae(0x2b1)&&_0xbc5ada['constructor']===Symbol&&_0xbc5ada!==Symbol[_0x5807ae(0x2f9)]?_0x5807ae(0x271):typeof _0xbc5ada;},Kr(_0x2add89);}function qr(_0x9874fa,_0x53f835){const _0x23bebb=_0x38e982;if(Kr(_0x9874fa)!=_0x23bebb(0x277)||!_0x9874fa)return _0x9874fa;var _0xb890a8;if(typeof Symbol<'u'&&(_0xb890a8=_0x9874fa[Symbol[_0x23bebb(0x2ce)]])!==void 0x0){var _0x471506=_0xb890a8[_0x23bebb(0x171)](_0x9874fa,_0x53f835||_0x23bebb(0x37a));if(Kr(_0x471506)!=_0x23bebb(0x277))return _0x471506;throw TypeError(_0x23bebb(0x1de));}return(_0x53f835===_0x23bebb(0x214)?String:Number)(_0x9874fa);}function Jr(_0x39220f){const _0x1f1082=_0x38e982;var _0x444f8c=qr(_0x39220f,_0x1f1082(0x214));return Kr(_0x444f8c)==_0x1f1082(0x271)?_0x444f8c:_0x444f8c+'';}function q(_0x25889d,_0x3cd933,_0x91ee1d){const _0x423edb=_0x38e982;return(_0x3cd933=Jr(_0x3cd933))in _0x25889d?Object[_0x423edb(0x3b3)](_0x25889d,_0x3cd933,{'value':_0x91ee1d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x25889d[_0x3cd933]=_0x91ee1d,_0x25889d;}function Yr(_0x12a998,_0x2d95c2,_0x2b4128){const _0x2eb533=_0x38e982;let _0x547044={..._0x2d95c2,'dataModel':{..._0x2d95c2[_0x2eb533(0x381)]??{},..._0x2b4128?{'doc':_0x2b4128}:null}},_0x5559cf=_0x3a71d2(_0x12a998,_0x547044),_0x3f5fcb=_0x241192(_0x5559cf);return{'clip':_0x21b9b3(_0x5559cf,_0x3f5fcb),'wrapStrategy':_0x3f5fcb};}var J=class extends _0x45dea2{constructor(_0x489806,_0xac582d){const _0x3b3ebd=_0x38e982;super(_0x489806,_0xac582d),q(this,_0x3b3ebd(0x1ce),[]),q(this,_0x3b3ebd(0x266),void 0x0),q(this,_0x3b3ebd(0x366),new _0x5f160e(()=>this[_0x3b3ebd(0x2a6)](!0x0),()=>this[_0x3b3ebd(0x1b3)]())),q(this,_0x3b3ebd(0x27b),!0x0),q(this,'_drawingType',_0x1afd9e[_0x3b3ebd(0x2d5)]),q(this,_0x3b3ebd(0x15c),!0x0),this[_0x3b3ebd(0x266)]={..._0xac582d},this[_0x3b3ebd(0x366)][_0x3b3ebd(0x287)](_0xac582d[_0x3b3ebd(0x3d5)],_0xac582d[_0x3b3ebd(0x23d)]!==!0x1),this['_init'](),this[_0x3b3ebd(0x1b3)]();}[_0x38e982(0x19d)](){const _0x52e03f=_0x38e982;this[_0x52e03f(0x11d)][_0x52e03f(0x29b)](_0x65d37=>{const _0x28f695=_0x52e03f;this[_0x28f695(0x2cc)](_0x65d37);});}[_0x38e982(0x33a)](_0x496c85){const _0x26264e=_0x38e982;this['_props'][_0x26264e(0x2f0)]=_0x496c85;}[_0x38e982(0x1db)](_0x5a9cff){const _0x1475f9=_0x38e982;if(this[_0x1475f9(0x266)]['isEditing'])return null;let _0x5b39f4=this[_0x1475f9(0x35a)](_0x5a9cff),{width:_0x2dce7a,height:_0x5525b3}=this[_0x1475f9(0x337)]();return _0x28dac3(this['_hyperLinkRegions'],{'x':(this['flipX']?-_0x5b39f4['x']:_0x5b39f4['x'])+_0x2dce7a/0x2,'y':_0x5b39f4['y']+_0x5525b3/0x2});}['setEditing'](_0x2a8f72){const _0x4b2b34=_0x38e982;this[_0x4b2b34(0x266)]['isEditing']=_0x2a8f72,this[_0x4b2b34(0x2a6)](!0x0);}[_0x38e982(0x2f4)](_0xf816a7,_0x3650d9=!0x0){const _0x1114f5=_0x38e982;this[_0x1114f5(0x366)]['setPresentation'](_0xf816a7,_0x3650d9),this[_0x1114f5(0x266)]['formulaPresentation']=_0xf816a7,this[_0x1114f5(0x1b3)](),this['makeDirty'](!0x0);}['_applyFormulaAutoFitSize'](){const _0x54d6a2=_0x38e982;let _0x3a3934=this[_0x54d6a2(0x266)][_0x54d6a2(0x35d)],_0x4ab24d=_0x3a3934[_0x54d6a2(0x2d0)](),_0xa8dbb=_0x4e3a1b(_0x4ab24d==null?void 0x0:_0x4ab24d[_0x54d6a2(0x381)]),_0x3d0bed=_0xa8dbb==null?void 0x0:_0xa8dbb['doc'],_0x10721b=this['_formulaAnimation'][_0x54d6a2(0x3ed)]();if(!_0x3d0bed||_0x10721b['length']===0x0)return;_0x3a3934[_0x54d6a2(0x276)]({'width':this[_0x54d6a2(0x304)],'height':this[_0x54d6a2(0x204)]});let _0x16b46d=_0x4f5c14({'documentData':_0x10721b[_0x54d6a2(0x298)](_0x42d1f2=>_0x44632b(_0x3d0bed,_0x42d1f2)),'height':this[_0x54d6a2(0x204)],'shapeData':_0x3a3934[_0x54d6a2(0x18b)](),'textRect':_0x3a3934[_0x54d6a2(0x18f)]({'left':0x0,'top':0x0,'width':this[_0x54d6a2(0x304)],'height':this[_0x54d6a2(0x204)]}),'width':this[_0x54d6a2(0x304)]});if(_0x16b46d){var _0x597f7c;this[_0x54d6a2(0x3d0)](_0x16b46d[_0x54d6a2(0x304)],_0x16b46d[_0x54d6a2(0x204)]),(_0x597f7c=this[_0x54d6a2(0x114)]())==null||(_0x597f7c=_0x597f7c[_0x54d6a2(0x1e1)]())==null||_0x597f7c[_0x54d6a2(0x339)]();}}get[_0x38e982(0x3d6)](){const _0x561521=_0x38e982;return this[_0x561521(0x266)][_0x561521(0x3d6)];}get[_0x38e982(0x2a0)](){const _0x15bbeb=_0x38e982;return this['_props'][_0x15bbeb(0x2a0)];}['_updateSrcRectByTransform'](_0x52ebb4){const _0x5c8aeb=_0x38e982;if(this['_props'][_0x5c8aeb(0x2db)]==null||!this[_0x5c8aeb(0x27b)])return;let {width:_0x2f5f7d,height:_0x2f77ba}=this,{width:_0x6d664c=0x0,height:_0xacf7f2=0x0}=_0x52ebb4[_0x5c8aeb(0x331)],{left:_0x45f1cc=0x0,top:_0x41171d=0x0,right:_0x21115a=0x0,bottom:_0x4f5786=0x0}=this['_props']['srcRect'],_0x5ef9ea=_0x45f1cc,_0x45bb64=_0x41171d,_0x403009=_0x21115a,_0x39e79e=_0x4f5786,_0x390d8f=!0x1;if(_0x6d664c!==0x0&&_0x6d664c!==_0x2f5f7d){let _0xf4537e=_0x45f1cc/_0x6d664c,_0x4a266e=_0x21115a/_0x6d664c;_0x5ef9ea=_0x2f5f7d*_0xf4537e,_0x403009=_0x2f5f7d*_0x4a266e,_0x390d8f=!0x0;}if(_0xacf7f2!==0x0&&_0xacf7f2!==_0x2f77ba){let _0x23a901=_0x41171d/_0xacf7f2,_0x46a22a=_0x4f5786/_0xacf7f2;_0x45bb64=_0x2f77ba*_0x23a901,_0x39e79e=_0x2f77ba*_0x46a22a,_0x390d8f=!0x0;}_0x390d8f&&this['setSrcRect']({'left':_0x5ef9ea,'top':_0x45bb64,'right':_0x403009,'bottom':_0x39e79e});}[_0x38e982(0x341)](_0x147594){const _0x462c9c=_0x38e982;this[_0x462c9c(0x266)][_0x462c9c(0x2db)]=_0x147594,this['makeDirty'](!0x0);}['setFillImage'](_0x197b2c){const _0x56186b=_0x38e982;this[_0x56186b(0x266)]['image']=_0x197b2c,this[_0x56186b(0x2a6)](!0x0);}set['transform'](_0x16af08){const _0x4b8d9f=_0x38e982;this[_0x4b8d9f(0x2cd)]=_0x16af08;}get[_0x38e982(0x3d2)](){const _0x4038cb=_0x38e982;this[_0x4038cb(0x2cd)]||this[_0x4038cb(0x1bc)]();let _0x5711d2=this[_0x4038cb(0x2cd)]['clone']();return this['transformForAngle'](_0x5711d2);}get[_0x38e982(0x35d)](){const _0x1023b9=_0x38e982;return this[_0x1023b9(0x266)][_0x1023b9(0x35d)];}get['shapeId'](){const _0x5e0882=_0x38e982;return this[_0x5e0882(0x266)][_0x5e0882(0x3ea)];}get[_0x38e982(0x31b)](){const _0x10ff32=_0x38e982;return _0x4ede46[_0x10ff32(0x347)];}[_0x38e982(0x1c5)](_0x329b06,_0x193f65,_0x4e2b94,_0x36eb0c){const _0xe7deee=_0x38e982;let _0x1966a7=this[_0xe7deee(0x266)][_0xe7deee(0x35d)];if(!_0x1966a7||!_0x193f65)return;let _0x16dfee=_0x4e2b94??this['width'],_0x566dae=_0x36eb0c??this['height'],_0x3f8242={'shapeType':_0x1966a7[_0xe7deee(0x369)](),'width':_0x16dfee,'height':_0x566dae},_0x19a7aa={'renderMode':_0x42bae9[_0xe7deee(0x27d)],'oKey':this[_0xe7deee(0x143)],'image':this[_0xe7deee(0x266)][_0xe7deee(0x25d)],'angle':this[_0xe7deee(0x162)]};_0x1966a7[_0xe7deee(0x276)](_0x3f8242),_0x329b06[_0xe7deee(0x1bb)]();let _0x1353db={'top':0x0,'left':0x0,'width':_0x16dfee,'height':_0x566dae},_0x4f61f0=_0x1966a7[_0xe7deee(0x3d1)](_0x1353db);_0x4f61f0?this[_0xe7deee(0x1b8)](_0x329b06,_0x4f61f0,_0x33c09c=>{const _0xbc23c0=_0xe7deee;_0x1966a7[_0xbc23c0(0x346)](_0x33c09c,_0x1353db,_0x19a7aa);}):(this[_0xe7deee(0x11a)](),_0x1966a7[_0xe7deee(0x346)](_0x329b06,_0x1353db,_0x19a7aa)),_0x329b06[_0xe7deee(0x316)]();let _0x58c3c4=_0x1966a7['getShapeTextData'](),_0x55b02d=_0x1966a7[_0xe7deee(0x18f)](_0x1353db),_0x2654e2=_0x1966a7[_0xe7deee(0x2ca)]();if(_0x58c3c4&&_0x55b02d&&!_0x2654e2){_0x329b06[_0xe7deee(0x1bb)](),this['getState']()[_0xe7deee(0x1f4)]&&_0x329b06[_0xe7deee(0x3a6)](-0x1,0x1);let _0x59e9e6=_0x16dfee/0x2,_0x966aba=_0x566dae/0x2;_0x329b06[_0xe7deee(0x38b)](-_0x59e9e6,-_0x966aba),_0x329b06['beginPath'](),this[_0xe7deee(0x1a2)](_0x329b06,_0x58c3c4,_0x55b02d),_0x329b06[_0xe7deee(0x316)]();}}[_0x38e982(0x386)](_0x3e88c6){}[_0x38e982(0x1a2)](_0x556f03,_0x3c1413,_0x336478){const _0x140cf6=_0x38e982;var _0x5c6b8b;this[_0x140cf6(0x1ce)]=[],this[_0x140cf6(0x266)]['isEditing']||(!((_0x5c6b8b=_0x3c1413[_0x140cf6(0x381)])!=null&&_0x5c6b8b['doc'])&&_0x140cf6(0x178)in _0x3c1413&&_0x3c1413[_0x140cf6(0x178)]===!0x1?this[_0x140cf6(0x352)](_0x556f03,_0x3c1413,_0x336478):this[_0x140cf6(0x392)](_0x556f03,_0x3c1413,_0x336478));}[_0x38e982(0x352)](_0x3fe3ca,_0x54a9d6,_0x3b1038){const _0x41a240=_0x38e982;this[_0x41a240(0x392)](_0x3fe3ca,{..._0x54a9d6,'text':_0x54a9d6[_0x41a240(0x36c)]??'','dataModel':{'doc':_0x1d1969(_0x54a9d6,_0x41a240(0x1b2)+this['oKey'])}},_0x3b1038);}['_drawRichText'](_0x49d254,_0xb36d06,_0x2b7178){const _0x1d5a62=_0x38e982;_0x2516a4(_0x49d254,this[_0x1d5a62(0x366)],(_0x4131ff,_0x3973df,_0x5142f8)=>{const _0x56b299=_0x1d5a62;this[_0x56b299(0x196)](_0x4131ff,_0xb36d06,_0x2b7178,_0x3973df,_0x5142f8===_0x56b299(0x303));});}[_0x38e982(0x196)](_0x1c9bfb,_0x4ca166,_0x2f8ff0,_0x133b92,_0x170c62){const _0x5e4125=_0x38e982;let _0x4ae360=this['_props'][_0x5e4125(0x1d8)];if(!_0x4ca166[_0x5e4125(0x381)]||!_0x4ae360)return;let _0x1962fd=_0x4e3a1b(_0x4ca166[_0x5e4125(0x381)]);if(!_0x1962fd)return;let _0x461179=_0x1962fd[_0x5e4125(0x1a1)];if(!_0x461179)return;let _0x4aeae6=_0x44632b(_0x461179,_0x133b92),_0xf977f9=_0x1962fd['va']??_0xb24be5[_0x5e4125(0x19e)],_0x79d3ca=_0x1962fd['ha']??_0x34ba0f[_0x5e4125(0x33c)],_0x4c1d74=Yr(this[_0x5e4125(0x266)][_0x5e4125(0x35d)][_0x5e4125(0x18b)](),_0x4ca166,_0x4aeae6),_0x586ae9=_0x4ca166[_0x5e4125(0x3e9)],_0x1ab685=_0x372037(_0x4aeae6,{'isHorizontal':_0x586ae9!==!0x1,'textRect':_0x2f8ff0,'verticalAlign':_0xf977f9,'horizontalAlign':_0x79d3ca,'wrapStrategy':_0x4c1d74['wrapStrategy']}),_0x4aee1b=new _0xf0569e(_0x1ab685),_0x24ca82=new _0x54d20f(_0x4aee1b),_0x2af45d=_0x19e223[_0x5e4125(0x377)](_0x24ca82,_0x4ae360);_0x2af45d['calculate']();let _0x25a3f4=_0x2af45d[_0x5e4125(0x3b9)]()['actualHeight'],_0x46a14d=_0x2a0578({'contentHeight':_0x25a3f4,'verticalAlign':_0xf977f9,'viewportHeight':_0x2f8ff0[_0x5e4125(0x204)]});_0x4aee1b[_0x5e4125(0x2e4)]({'pageSize':{'width':_0x586ae9===!0x1?_0x2f8ff0[_0x5e4125(0x204)]:_0x2f8ff0[_0x5e4125(0x304)],'height':_0x3a0d3c(_0x4aeae6,_0x46a14d[_0x5e4125(0x25a)])}}),_0x4aee1b['updateDocumentDataMargin']({'t':_0x46a14d[_0x5e4125(0x326)]}),_0x2af45d['calculate']();let _0x119850=new _0x16aae9(_0x5e4125(0x166)+this[_0x5e4125(0x143)],_0x2af45d,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x5e4125(0x2a6)](!0x0)});_0x119850[_0x5e4125(0x3d0)](_0x2f8ff0[_0x5e4125(0x304)],_0x46a14d['contentHeight']),_0x1c9bfb[_0x5e4125(0x1bb)](),_0x1c9bfb[_0x5e4125(0x226)](_0x2f8ff0['left'],_0x2f8ff0[_0x5e4125(0x218)]),_0x4c1d74[_0x5e4125(0x1cf)]&&(_0x1c9bfb['beginPath'](),_0x1c9bfb[_0x5e4125(0x29f)](0x0,_0x46a14d[_0x5e4125(0x349)],_0x2f8ff0['width'],_0x46a14d[_0x5e4125(0x3ad)]),_0x1c9bfb[_0x5e4125(0x1cf)]()),_0x46a14d[_0x5e4125(0x300)]&&_0x1c9bfb[_0x5e4125(0x226)](0x0,_0x46a14d[_0x5e4125(0x300)]),_0x119850['draw'](_0x1c9bfb),_0x170c62&&(this[_0x5e4125(0x1ce)]=_0x4aa862(_0x119850,{'left':_0x2f8ff0['left'],'top':_0x2f8ff0[_0x5e4125(0x218)]+_0x46a14d[_0x5e4125(0x300)]},_0x4c1d74['clip']?{'left':_0x2f8ff0['left'],'right':_0x2f8ff0[_0x5e4125(0x39b)]+_0x2f8ff0[_0x5e4125(0x304)],'top':_0x2f8ff0[_0x5e4125(0x218)]+_0x46a14d['clipTop'],'bottom':_0x2f8ff0[_0x5e4125(0x218)]+_0x46a14d['clipTop']+_0x46a14d['clipHeight']}:void 0x0)),_0x1c9bfb[_0x5e4125(0x316)](),_0x119850[_0x5e4125(0x39d)](),_0x2af45d[_0x5e4125(0x39d)](),_0x24ca82[_0x5e4125(0x39d)](),_0x4aee1b[_0x5e4125(0x39d)]();}[_0x38e982(0x346)](_0x387919,_0x1b65c4,_0xcf2db8=!0x1){const _0x10d3ea=_0x38e982;if(!this[_0x10d3ea(0x205)])return this[_0x10d3ea(0x2a6)](!0x1),this;let {width:_0x53b5bf,height:_0x5ab4f6,left:_0x4bcc1a,top:_0x4af7ee}=this,_0x409e46=this[_0x10d3ea(0x337)]();if(_0x53b5bf=_0x409e46[_0x10d3ea(0x304)],_0x5ab4f6=_0x409e46[_0x10d3ea(0x204)],_0x4bcc1a=_0x409e46[_0x10d3ea(0x39b)],_0x4af7ee=_0x409e46[_0x10d3ea(0x218)],this['isRender'](_0x1b65c4)){let {top:_0x1dca32,left:_0x4558b8,bottom:_0x2c22ee,right:_0x27d493}=_0x1b65c4['viewBound'];if(_0x53b5bf+this[_0x10d3ea(0x1ff)]+_0x4bcc1a<_0x4558b8||_0x27d493<_0x4bcc1a||_0x5ab4f6+this['strokeWidth']+_0x4af7ee<_0x1dca32||_0x2c22ee<_0x4af7ee)return this;}let _0x490878=_0x4bcc1a+_0x53b5bf/0x2,_0x58691e=_0x4af7ee+_0x5ab4f6/0x2,_0x4a6dcc=this[_0x10d3ea(0x3d2)][_0x10d3ea(0x16b)]();if(this['_props'][_0x10d3ea(0x2d1)]){let _0x477b14=this[_0x10d3ea(0x12f)](),_0x1dba34=new _0x18b849();_0x1dba34[_0x10d3ea(0x1f2)]({..._0x477b14}),_0x4a6dcc=_0x1dba34['getMatrix']();}return _0x387919[_0x10d3ea(0x1bb)](),this[_0x10d3ea(0x266)][_0x10d3ea(0x35d)][_0x10d3ea(0x3e0)]===!0x0||_0x387919[_0x10d3ea(0x3d2)](_0x4a6dcc[0x0],_0x4a6dcc[0x1],_0x4a6dcc[0x2],_0x4a6dcc[0x3],_0x490878,_0x58691e),this[_0x10d3ea(0x1c5)](_0x387919,_0x1b65c4,_0x53b5bf,_0x5ab4f6),_0x387919[_0x10d3ea(0x316)](),this[_0x10d3ea(0x2a6)](!0x1),this;}[_0x38e982(0x35a)](_0x450783){const _0x2e1c3d=_0x38e982;let {left:_0xabc6cb,top:_0x27d8d4,width:_0x17ac48,height:_0x4751e9}=this[_0x2e1c3d(0x337)](),_0x147387=this[_0x2e1c3d(0x3d2)]['getMatrix'](),_0x57e705=_0xabc6cb+_0x17ac48/0x2,_0x4693df=_0x27d8d4+_0x4751e9/0x2,_0x589786=new _0x18b849([_0x147387[0x0],_0x147387[0x1],_0x147387[0x2],_0x147387[0x3],_0x57e705,_0x4693df]),_0x14f3a4=this[_0x2e1c3d(0x1b4)]();return(this[_0x2e1c3d(0x3e1)]&&(_0x14f3a4==null?void 0x0:_0x14f3a4['classType'])===_0x4ede46[_0x2e1c3d(0x20a)]?_0x14f3a4[_0x2e1c3d(0x307)][_0x2e1c3d(0x365)](_0x589786):_0x589786)[_0x2e1c3d(0x2ad)]()[_0x2e1c3d(0x2f5)](_0x450783);}['isHit'](_0x18f701){const _0x3b8876=_0x38e982;let {left:_0x6263fc,top:_0x545b4f,width:_0x51bd4b,height:_0x143f0c}=this[_0x3b8876(0x337)](),_0x118991=_0x6263fc+_0x51bd4b/0x2,_0x3ff985=_0x545b4f+_0x143f0c/0x2,_0x25401f=this['transform'][_0x3b8876(0x16b)](),_0x3a722c=new _0x18b849([_0x25401f[0x0],_0x25401f[0x1],_0x25401f[0x2],_0x25401f[0x3],_0x118991,_0x3ff985]),_0x3966a6=this[_0x3b8876(0x1b4)](),_0x1c5596=(this['isInGroup']&&(_0x3966a6==null?void 0x0:_0x3966a6['classType'])===_0x4ede46[_0x3b8876(0x20a)]?_0x3966a6[_0x3b8876(0x307)][_0x3b8876(0x365)](_0x3a722c):_0x3a722c)[_0x3b8876(0x2ad)]()['applyPoint'](_0x18f701),_0x5e86cf=_0x51bd4b/0x2,_0x136d1d=_0x143f0c/0x2,_0x5ad90c=this['_props']['shapeModel'];return _0x5ad90c&&_0x5ad90c[_0x3b8876(0x2ca)]()?_0x5ad90c[_0x3b8876(0x1f7)](_0x1c5596['x'],_0x1c5596['y'],_0x51bd4b,_0x143f0c):_0x1c5596['x']>=-_0x5e86cf-this['strokeWidth']/0x2&&_0x1c5596['x']<=_0x5e86cf+this[_0x3b8876(0x1ff)]/0x2&&_0x1c5596['y']>=-_0x136d1d-this['strokeWidth']/0x2&&_0x1c5596['y']<=_0x136d1d+this['strokeWidth']/0x2;}[_0x38e982(0x39d)](){const _0x55add6=_0x38e982;this['_formulaAnimation'][_0x55add6(0x39d)](),this['_props'][_0x55add6(0x35d)]=null,super[_0x55add6(0x39d)]();}},Xr=class extends _0x45dea2{constructor(_0x4f9e65,_0x45d43a){const _0x4a5717=_0x38e982;super(_0x4f9e65,_0x45d43a),q(this,_0x4a5717(0x3d4),null),q(this,_0x4a5717(0x33f),null),q(this,_0x4a5717(0x202),null),q(this,'_subUnitId',null),_0x45d43a&&this['setShapeProps'](_0x45d43a);}[_0x38e982(0x1d1)](){const _0x46e5f9=_0x38e982;return{'unitId':this[_0x46e5f9(0x202)],'subUnitId':this[_0x46e5f9(0x229)],'drawingId':this[_0x46e5f9(0x3d4)]};}[_0x38e982(0x250)](_0x5f1e51){const _0x55f7da=_0x38e982;_0x5f1e51['shapeId']!==void 0x0&&(this[_0x55f7da(0x3d4)]=_0x5f1e51[_0x55f7da(0x3ea)]),_0x5f1e51[_0x55f7da(0x34a)]!==void 0x0&&(this[_0x55f7da(0x33f)]=_0x5f1e51[_0x55f7da(0x34a)]),_0x5f1e51['unitId']!==void 0x0&&(this[_0x55f7da(0x202)]=_0x5f1e51[_0x55f7da(0x3d6)]),_0x5f1e51[_0x55f7da(0x2a0)]!==void 0x0&&(this[_0x55f7da(0x229)]=_0x5f1e51[_0x55f7da(0x2a0)]),this[_0x55f7da(0x1fe)]({'width':_0x5f1e51['width'],'height':_0x5f1e51['height']});}[_0x38e982(0x1c5)](_0x1b4677){const _0x3b06e2=_0x38e982;_0x417a06[_0x3b06e2(0x28c)](_0x1b4677,{'radius':_0x436eb7['adjHandleSize'],'fill':_0x436eb7[_0x3b06e2(0x222)],'stroke':_0x436eb7[_0x3b06e2(0x156)],'strokeWidth':0x1,'evented':!0x0});}};function Y(_0x270af7,_0x33d60d){return function(_0x342d96,_0x375298){_0x33d60d(_0x342d96,_0x375298,_0x270af7);};}function X(_0x475fc1,_0xdf66bc,_0x43774e,_0x2e8e50){const _0x40a8f8=_0x38e982;var _0x4cce9e=arguments[_0x40a8f8(0x23c)],_0x5acc0e=_0x4cce9e<0x3?_0xdf66bc:_0x2e8e50===null?_0x2e8e50=Object[_0x40a8f8(0x157)](_0xdf66bc,_0x43774e):_0x2e8e50,_0x166583;if(typeof Reflect==_0x40a8f8(0x277)&&typeof Reflect[_0x40a8f8(0x3bf)]==_0x40a8f8(0x2b1))_0x5acc0e=Reflect[_0x40a8f8(0x3bf)](_0x475fc1,_0xdf66bc,_0x43774e,_0x2e8e50);else{for(var _0x3c1da2=_0x475fc1[_0x40a8f8(0x23c)]-0x1;_0x3c1da2>=0x0;_0x3c1da2--)(_0x166583=_0x475fc1[_0x3c1da2])&&(_0x5acc0e=(_0x4cce9e<0x3?_0x166583(_0x5acc0e):_0x4cce9e>0x3?_0x166583(_0xdf66bc,_0x43774e,_0x5acc0e):_0x166583(_0xdf66bc,_0x43774e))||_0x5acc0e);}return _0x4cce9e>0x3&&_0x5acc0e&&Object[_0x40a8f8(0x3b3)](_0xdf66bc,_0x43774e,_0x5acc0e),_0x5acc0e;}let Z=class extends _0x942aec{constructor(_0x1cf5db,_0x345639,_0x4a9c4f,_0x597d71,_0x8093e,_0x363ff9){const _0x5c339c=_0x38e982;super(),this[_0x5c339c(0x342)]=_0x1cf5db,this[_0x5c339c(0x301)]=_0x345639,this[_0x5c339c(0x243)]=_0x4a9c4f,this[_0x5c339c(0x3e6)]=_0x597d71,this['_urlImageService']=_0x8093e,this[_0x5c339c(0x233)]=_0x363ff9,q(this,'_formulaShapes',new Map()),this[_0x5c339c(0x1b0)](this['_shapeFormulaService'][_0x5c339c(0x2a9)][_0x5c339c(0x335)](_0x5c30ca=>{const _0x367b5b=_0x5c339c;var _0x3381f4;(_0x3381f4=this[_0x367b5b(0x354)][_0x367b5b(0x292)](this[_0x367b5b(0x30a)](_0x5c30ca[_0x367b5b(0x3d6)],_0x5c30ca[_0x367b5b(0x2a0)],_0x5c30ca[_0x367b5b(0x3ea)])))==null||_0x3381f4[_0x367b5b(0x2a5)](_0x14ad21=>_0x14ad21[_0x367b5b(0x2f4)](_0x5c30ca[_0x367b5b(0x257)],_0x5c30ca[_0x367b5b(0x142)]));})),this[_0x5c339c(0x1b0)](this[_0x5c339c(0x342)][_0x5c339c(0x1a6)][_0x5c339c(0x335)](_0x401657=>{const _0x476ea8=_0x5c339c;_0x401657[_0x476ea8(0x2a5)](_0x3c7396=>{const _0x1c0ee1=_0x476ea8;this[_0x1c0ee1(0x354)][_0x1c0ee1(0x1ba)](this['_formulaKey'](_0x3c7396['unitId'],_0x3c7396['subUnitId'],_0x3c7396[_0x1c0ee1(0x36f)]));});}));}[_0x38e982(0x3b0)](_0x4f0e73,_0x513822,_0x1a9e70){const _0x1d46d5=_0x38e982;let {transform:_0x58041d,drawingType:_0x3cc6c8,isMultiTransform:_0x426368,transforms:_0x219a83}=_0x4f0e73;if(_0x3cc6c8===_0x1afd9e['DRAWING_SHAPE']&&this[_0x1d46d5(0x342)][_0x1d46d5(0x384)]()&&_0x58041d)return(_0x426368&&_0x219a83?_0x219a83:[_0x58041d])[_0x1d46d5(0x159)]((_0x688748,_0x3a14dd)=>{const _0x21ddd5=_0x1d46d5;var _0x11b41d;let _0x372c09=_0x306bd8(_0x4f0e73,_0x426368?_0x3a14dd:void 0x0),_0x4cdd99=_0x513822[_0x21ddd5(0x260)](_0x372c09);if(_0x4cdd99)return _0x4cdd99 instanceof J&&this[_0x21ddd5(0x163)](_0x4cdd99,{'unitId':_0x4f0e73[_0x21ddd5(0x3d6)],'subUnitId':_0x4f0e73[_0x21ddd5(0x2a0)],'shapeId':_0x4f0e73[_0x21ddd5(0x36f)]}),_0x4cdd99['transformByState'](_0x688748),[];let _0xd440a3=this[_0x21ddd5(0x255)](_0x4f0e73,_0x688748,_0x372c09,_0x513822);if(!_0xd440a3)return[];let _0x45710d=this[_0x21ddd5(0x135)](_0xd440a3,_0xd440a3['shapeModel'][_0x21ddd5(0x18b)]());return _0x45710d&&(_0x1a9e70==null||(_0x11b41d=_0x1a9e70['resourceCollector'])==null||_0x11b41d[_0x21ddd5(0x385)](_0x45710d)),[_0xd440a3];});}[_0x38e982(0x255)](_0x2fd826,_0x4b0a4a,_0x317b30,_0x50aeb9){const _0x58d9a5=_0x38e982;let {unitId:_0x43d287,subUnitId:_0x45b620,drawingId:_0x3df111,groupId:_0x12ffd4,hidden:_0x5e624c,selectable:_0x4d9fef,prstGeom:_0x3ebe38,srcRect:_0x1531b1}=_0x2fd826,_0x46946a=this[_0x58d9a5(0x301)][_0x58d9a5(0x398)](_0x43d287,_0x45b620,_0x3df111);if(!_0x46946a)return;let _0x32c21c=this[_0x58d9a5(0x342)][_0x58d9a5(0x32f)](_0x43d287,_0x45b620),_0x3b49e2=_0x32c21c[_0x58d9a5(0x3ba)](_0x3df111),_0x3d44bb=_0x45fca5(_0x46946a[_0x58d9a5(0x369)]()),_0x33d911=_0x46946a[_0x58d9a5(0x18b)]()[_0x58d9a5(0x1a9)],_0x1503d7={'unitId':_0x43d287,'subUnitId':_0x45b620,'shapeId':_0x3df111};_0x33d911&&this[_0x58d9a5(0x233)]['register'](_0x1503d7,_0x33d911);let _0x325cfc=new J(_0x317b30,{..._0x4b0a4a,'zIndex':_0x3b49e2===-0x1?_0x32c21c[_0x58d9a5(0x23c)]-0x1:_0x3b49e2,'shapeModel':_0x46946a,'drawingType':_0x1afd9e[_0x58d9a5(0x2d5)],'localeService':this[_0x58d9a5(0x243)],'shapeId':_0x3df111,'unitId':_0x43d287,'subUnitId':_0x45b620,'visible':_0x5e624c!==!0x0,'evented':_0x4d9fef!==!0x1,'formulaPresentation':_0x33d911?this[_0x58d9a5(0x233)]['getPresentation'](_0x1503d7):void 0x0,'animateFormulaPresentation':(_0x33d911==null?void 0x0:_0x33d911[_0x58d9a5(0x142)])!==!0x1,'transformerConfig':{..._0xa8ab70,..._0x3d44bb?{'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{},'moveBoundaryEnabled':!0x0}});if(_0x33d911){let _0x4fdd99=this['_formulaKey'](_0x43d287,_0x45b620,_0x3df111),_0x355b16=this[_0x58d9a5(0x354)]['get'](_0x4fdd99)??new Set();_0x355b16[_0x58d9a5(0x385)](_0x325cfc),this[_0x58d9a5(0x354)][_0x58d9a5(0x2b5)](_0x4fdd99,_0x355b16);}return _0x50aeb9[_0x58d9a5(0x22c)](_0x325cfc,_0x5c1c17),this[_0x58d9a5(0x342)][_0x58d9a5(0x3dc)]()&&_0x50aeb9[_0x58d9a5(0x26a)](_0x325cfc),_0x12ffd4&&_0x50c588({'drawingId':_0x12ffd4,'unitId':_0x43d287,'subUnitId':_0x45b620},_0x325cfc,_0x50aeb9,this[_0x58d9a5(0x342)]),_0x3ebe38!=null&&_0x325cfc[_0x58d9a5(0x33a)](_0x3ebe38),_0x1531b1!=null&&_0x325cfc[_0x58d9a5(0x341)](_0x1531b1),_0x325cfc;}[_0x38e982(0x30a)](_0x2ac45f,_0xa147fa,_0x1022d0){return _0x2ac45f+'\x00'+_0xa147fa+'\x00'+_0x1022d0;}[_0x38e982(0x163)](_0x434ef0,_0xe65c5f){const _0x522223=_0x38e982;let _0x31b12f=this[_0x522223(0x301)]['getShapeModel'](_0xe65c5f[_0x522223(0x3d6)],_0xe65c5f[_0x522223(0x2a0)],_0xe65c5f[_0x522223(0x3ea)]),_0x1b3edb=_0x31b12f==null?void 0x0:_0x31b12f[_0x522223(0x18b)]()['formulaBinding'],_0x261ee4=this[_0x522223(0x30a)](_0xe65c5f[_0x522223(0x3d6)],_0xe65c5f[_0x522223(0x2a0)],_0xe65c5f[_0x522223(0x3ea)]);if(_0x1b3edb){this[_0x522223(0x233)][_0x522223(0x206)](_0xe65c5f,_0x1b3edb);let _0x26e30a=this['_formulaShapes'][_0x522223(0x292)](_0x261ee4)??new Set();_0x26e30a['add'](_0x434ef0),this['_formulaShapes'][_0x522223(0x2b5)](_0x261ee4,_0x26e30a);}else{var _0x58d179;this[_0x522223(0x233)]['unregister'](_0xe65c5f),(_0x58d179=this['_formulaShapes'][_0x522223(0x292)](_0x261ee4))==null||_0x58d179[_0x522223(0x1ba)](_0x434ef0);}_0x434ef0[_0x522223(0x2f4)](_0x1b3edb?this[_0x522223(0x233)][_0x522223(0x356)](_0xe65c5f):void 0x0,(_0x1b3edb==null?void 0x0:_0x1b3edb['animationEnabled'])!==!0x1);}[_0x38e982(0x3cc)](_0x5d52db){const _0xfb2e88=_0x38e982;let _0x197aeb=_0x5d52db['shapeModel'][_0xfb2e88(0x18b)](),_0xb646ae=_0x197aeb['fill'];!_0xb646ae||_0xb646ae['fillType']!==_0x16017b[_0xfb2e88(0x3a4)]||!_0xb646ae[_0xfb2e88(0x3a1)]?_0x5d52db[_0xfb2e88(0x282)](void 0x0):this['_loadShapePictureFill'](_0x5d52db,_0x197aeb);}[_0x38e982(0x135)](_0x2e143e,_0x327dac){const _0x53e3f0=_0x38e982;let _0x64efa9=_0x327dac[_0x53e3f0(0x3c1)];if(!_0x64efa9||_0x64efa9[_0x53e3f0(0x30b)]!==_0x16017b[_0x53e3f0(0x3a4)]||!_0x64efa9['fillImageSource'])return;let _0x3e9f5c=_0x64efa9['fillImageSource'],_0x5b68df=_0x64efa9[_0x53e3f0(0x306)]??_0x39273b[_0x53e3f0(0x219)],_0x22285f=this[_0x53e3f0(0x3e6)][_0x53e3f0(0x12a)](_0x3e9f5c,_0x5b68df);if(_0x22285f)_0x2e143e[_0x53e3f0(0x282)](_0x22285f);else return this['_loadAndSetImage'](_0x2e143e,_0x3e9f5c,_0x5b68df);}async[_0x38e982(0x319)](_0x326138,_0x2733cd,_0x87a5c4){const _0x1ec270=_0x38e982;let _0xf57756;try{if(_0x87a5c4===_0x39273b[_0x1ec270(0x15f)])_0xf57756=await this['_imageIoService'][_0x1ec270(0x161)](_0x2733cd);else{if(_0x87a5c4===_0x39273b[_0x1ec270(0x219)])try{_0xf57756=await this[_0x1ec270(0x1d7)][_0x1ec270(0x161)](_0x2733cd);}catch{_0xf57756=_0x2733cd;}else _0xf57756=_0x2733cd;}}catch(_0x5a7ae8){console['error']('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x5a7ae8);return;}await new Promise(_0x3a9490=>{const _0x34d3eb=_0x1ec270;let _0xbdc86b=new window['Image']();_0xbdc86b[_0x34d3eb(0x28a)]=()=>{const _0x15d3ab=_0x34d3eb;this[_0x15d3ab(0x3e6)]['addImageSourceCache'](_0x2733cd,_0x87a5c4,_0xbdc86b),_0x326138['setFillImage'](_0xbdc86b),_0x3a9490();},_0xbdc86b['onerror']=()=>{const _0x30b49a=_0x34d3eb;console['error'](_0x30b49a(0x3c3),_0x2733cd),_0x3a9490();},_0xbdc86b['src']=_0xf57756;});}};Z=X([Y(0x0,_0x457af4),Y(0x1,_0x304d45(_0x57544e)),Y(0x2,_0x304d45(_0x1180ec)),Y(0x3,_0x34e53d),Y(0x4,_0x467b00),Y(0x5,_0x304d45(_0x171282))],Z);let Zr=class extends _0x942aec{constructor(_0x268dfe,_0x552928,_0x4ef127,_0x73d482,_0x4ad89b,_0x635d33){const _0x4af575=_0x38e982;super(),this[_0x4af575(0x342)]=_0x268dfe,this[_0x4af575(0x301)]=_0x552928,this[_0x4af575(0x3a5)]=_0x4ef127,this[_0x4af575(0x1e8)]=_0x73d482,this[_0x4af575(0x23f)]=_0x4ad89b,this[_0x4af575(0x338)]=_0x635d33,q(this,_0x4af575(0x28f),null),q(this,_0x4af575(0x202),null),q(this,_0x4af575(0x229),null),q(this,_0x4af575(0x280),void 0x0),q(this,'_shapes',[]),q(this,_0x4af575(0x133),0x0),q(this,_0x4af575(0x39c),0x0),q(this,_0x4af575(0x393),0x0),q(this,'_baseShapeHeight',0x0),q(this,_0x4af575(0x357),!0x1),q(this,_0x4af575(0x26f),void 0x0),q(this,'_activeShapeModel',void 0x0),q(this,_0x4af575(0x2a7),void 0x0),q(this,_0x4af575(0x1bd),void 0x0),q(this,'_isShouldShowDrawingShapeAdjust',!0x1),this[_0x4af575(0x35c)](),this[_0x4af575(0x3ca)]();}[_0x38e982(0x225)](_0x309994,_0x32f45d,_0x1ae1a9){const _0x597474=_0x38e982;let _0x288f86=this[_0x597474(0x301)][_0x597474(0x398)](_0x309994,_0x32f45d,_0x1ae1a9);if(_0x288f86)return _0x288f86[_0x597474(0x386)]();}[_0x38e982(0x2a3)](){this['_clearShapeAdjustControls']();}[_0x38e982(0x2a8)](){const _0x45133f=_0x38e982;this[_0x45133f(0x211)](!0x0);}[_0x38e982(0x2b4)](_0x3b3641){this['_isShouldShowDrawingShapeAdjust']=_0x3b3641;}[_0x38e982(0x291)](_0x17aa78,_0x2a8ae0,_0x376818,_0x43c413){const _0x369752=_0x38e982;let _0x96f7c4=this['_sheetsShapeService'][_0x369752(0x398)](_0x17aa78,_0x2a8ae0,_0x376818);if(_0x96f7c4)return _0x96f7c4[_0x369752(0x1b5)](_0x43c413);}[_0x38e982(0x234)](_0x52c85f=!0x1){const _0x40ba86=_0x38e982;if(this[_0x40ba86(0x202)]===null||this[_0x40ba86(0x229)]===null||this['_activeShapeId']===null)return;let _0x181560=this[_0x40ba86(0x3a5)][_0x40ba86(0x37e)](this[_0x40ba86(0x202)]);if(!_0x181560||!_0x181560[_0x40ba86(0x24f)](_0x151dc3)[_0x40ba86(0x1c2)]())return;let {scene:_0x14b8ee}=_0x181560,_0xd8d6af={'unitId':this[_0x40ba86(0x202)],'subUnitId':this[_0x40ba86(0x229)],'drawingId':this[_0x40ba86(0x28f)]},_0x4de768=this[_0x40ba86(0x342)]['getDrawingByParam'](_0xd8d6af),{transform:_0x150ba0}=_0x4de768;if(!_0x150ba0||_0x4de768[_0x40ba86(0x3bd)]!==_0x1afd9e[_0x40ba86(0x2d5)])return;let {left:_0xdcdcbc,top:_0x5e221c,width:_0x24207a,height:_0x30508b,flipX:_0x12679a,flipY:_0x4e511c,angle:_0x44a09a=0x0}=_0x150ba0;if(_0xdcdcbc===void 0x0||_0x5e221c===void 0x0)return;if(_0x52c85f){let _0x116599=this[_0x40ba86(0x301)][_0x40ba86(0x398)](this[_0x40ba86(0x202)],this[_0x40ba86(0x229)],this['_activeShapeId']);_0x116599==null||_0x116599[_0x40ba86(0x276)]({'width':_0x24207a??0x0,'height':_0x30508b??0x0}),this[_0x40ba86(0x280)]=_0x116599==null?void 0x0:_0x116599['getDrawingPoints']();}let _0x5837d1=this['_activeShapeAdjustPointList'];for(let _0x1373ea=0x0;_0x1373ea<_0x5837d1[_0x40ba86(0x23c)];_0x1373ea++){let _0x5f3e53=_0x5837d1[_0x1373ea],_0x4ce68c=_0x5f3e53['x'],_0x147f76=_0x5f3e53['y'];if(_0x12679a&&(_0x4ce68c=(_0x24207a||0x0)-_0x4ce68c),_0x4e511c&&(_0x147f76=(_0x30508b||0x0)-_0x147f76),_0x44a09a!==0x0){let _0x1cd6d3=(_0x24207a||0x0)/0x2,_0x4d75b3=(_0x30508b||0x0)/0x2,_0x4ade03=_0x44a09a*Math['PI']/0xb4,_0x10af0c=Math[_0x40ba86(0x380)](_0x4ade03),_0x525fca=Math[_0x40ba86(0x3a2)](_0x4ade03),_0xd563f8=_0x4ce68c-_0x1cd6d3,_0x4c02e6=_0x147f76-_0x4d75b3;_0x4ce68c=_0x1cd6d3+(_0xd563f8*_0x10af0c-_0x4c02e6*_0x525fca),_0x147f76=_0x4d75b3+(_0xd563f8*_0x525fca+_0x4c02e6*_0x10af0c);}let _0x28505b={'x':_0x4ce68c,'y':_0x147f76,'adjName':_0x5f3e53['adjName']};this[_0x40ba86(0x3a3)](_0x14b8ee,_0x28505b,_0x28505b[_0x40ba86(0x34a)],_0xdcdcbc,_0x5e221c,this[_0x40ba86(0x202)],this[_0x40ba86(0x229)]);}}[_0x38e982(0x211)](_0x142f98=!0x1){const _0x56fcf1=_0x38e982;_0x142f98&&(this[_0x56fcf1(0x1ef)](),this[_0x56fcf1(0x234)](_0x142f98));}[_0x38e982(0x3a3)](_0x439d74,_0x516841,_0x208ca6,_0x27fef3,_0x5785e5,_0x123389,_0x48c004){const _0x4c3b06=_0x38e982;if(!this['_activeShapeId'])return;let _0x47211a=_0x439d74[_0x4c3b06(0x260)](_0x4c3b06(0x33e)+this['_activeShapeId']+'-'+_0x208ca6);if(_0x47211a){_0x47211a[_0x4c3b06(0x1fe)]({'left':_0x516841['x']+_0x27fef3-_0x436eb7[_0x4c3b06(0x367)],'top':_0x516841['y']+_0x5785e5-_0x436eb7[_0x4c3b06(0x367)]});return;}let _0x11fc52={'left':_0x516841['x']+_0x27fef3-_0x436eb7[_0x4c3b06(0x367)],'top':_0x516841['y']+_0x5785e5-_0x436eb7[_0x4c3b06(0x367)],'adjName':_0x208ca6,'shapeId':this[_0x4c3b06(0x28f)],'unitId':_0x123389,'subUnitId':_0x48c004,'width':_0x436eb7['adjHandleSize']+0x8,'height':_0x436eb7[_0x4c3b06(0x367)]+0x8,'zIndex':_0x5c1c17+0x1,'evented':!0x0},_0x51702f=new Xr(_0x4c3b06(0x33e)+this[_0x4c3b06(0x28f)]+'-'+_0x208ca6,_0x11fc52);this[_0x4c3b06(0x3a0)]['push'](_0x51702f),this[_0x4c3b06(0x18c)](_0x51702f,_0x439d74,_0x208ca6),_0x439d74[_0x4c3b06(0x22c)](_0x51702f,_0x5c1c17+0x1);}[_0x38e982(0x1ef)](){const _0x5e7719=_0x38e982;this[_0x5e7719(0x3a0)][_0x5e7719(0x23c)]!==0x0&&(this[_0x5e7719(0x3a0)][_0x5e7719(0x2a5)](_0x269a54=>{const _0xe766f=_0x5e7719;_0x269a54[_0xe766f(0x39d)]();}),this[_0x5e7719(0x3a0)]=[]);}[_0x38e982(0x1af)](){this['_createShapeAdjustControls']();}[_0x38e982(0x310)](_0x3a42c9,_0x1fdc15){const _0x398112=_0x38e982;var _0x16b66b;let _0x807aaa={'x':0x0,'y':0x0};if(!_0x3a42c9||!_0x1fdc15)return _0x807aaa;let _0x3e67f8=this[_0x398112(0x3a5)][_0x398112(0x37e)](_0x3a42c9);if(!_0x3e67f8||!_0x3e67f8[_0x398112(0x24f)](_0x151dc3)[_0x398112(0x17d)](_0x1fdc15))return _0x807aaa;let _0x2f7d22=_0x3e67f8[_0x398112(0x24f)](_0x4c002e),_0x17fb97=_0x2f7d22==null?void 0x0:_0x2f7d22['getCurrentScrollState']();if(!_0x17fb97)return _0x807aaa;let _0x1fde7f=(_0x16b66b=this[_0x398112(0x23f)][_0x398112(0x184)](_0x3a42c9))==null?void 0x0:_0x16b66b[_0x398112(0x265)](_0x1fdc15);if(!_0x1fde7f)return _0x807aaa;let _0x204201=_0x1aea05(_0x17fb97['sheetViewStartRow'],_0x17fb97['sheetViewStartColumn'],_0x3e67f8[_0x398112(0x313)],_0x1fde7f);return _0x204201?{'x':_0x204201[_0x398112(0x245)],'y':_0x204201[_0x398112(0x2e0)]}:_0x807aaa;}['_getZoomRatio'](_0xb9a09c,_0x56eea7){const _0x17f11b=_0x38e982;var _0x53bb43;let _0x3f2306=(_0x53bb43=this[_0x17f11b(0x23f)][_0x17f11b(0x184)](_0xb9a09c))==null?void 0x0:_0x53bb43[_0x17f11b(0x265)](_0x56eea7);return(_0x3f2306==null?void 0x0:_0x3f2306[_0x17f11b(0x295)]())??0x1;}[_0x38e982(0x18c)](_0x1d8979,_0x27bfbd,_0x8109a){const _0x3343cc=_0x38e982;this[_0x3343cc(0x1b0)](_0x3cb981(_0x1d8979[_0x3343cc(0x149)]['subscribeEvent']((_0xbb276c,_0x2366c8)=>{const _0x16166d=_0x3343cc;var _0x7c8be7,_0x43913e,_0x524fcf,_0x2e04e0;let _0x5db37d=_0x1d8979[_0x16166d(0x1d1)]();this[_0x16166d(0x26f)]=this['_getShapeAdjustInfosById'](_0x5db37d['unitId'],_0x5db37d[_0x16166d(0x2a0)],_0x5db37d['drawingId'],_0x8109a),this[_0x16166d(0x350)]=this[_0x16166d(0x301)][_0x16166d(0x398)](_0x5db37d[_0x16166d(0x3d6)],_0x5db37d['subUnitId'],_0x5db37d[_0x16166d(0x36f)]);let _0x342b26=this[_0x16166d(0x342)]['getDrawingByParam']({'unitId':this[_0x16166d(0x202)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x16166d(0x28f)]}),{transform:_0x3c5c04}=_0x342b26;if(_0x3c5c04){let {left:_0x1300b0,top:_0x11682c,width:_0x2efc6e,height:_0x117868}=_0x3c5c04;this['_baseShapeLeft']=_0x1300b0||0x0,this[_0x16166d(0x39c)]=_0x11682c||0x0,this[_0x16166d(0x393)]=_0x2efc6e||0x0,this['_baseShapeHeight']=_0x117868||0x0;}let _0x280e6c=!!((_0x7c8be7=_0x342b26[_0x16166d(0x3d2)])!=null&&_0x7c8be7['flipX']),_0x27591a=!!((_0x43913e=_0x342b26['transform'])!=null&&_0x43913e[_0x16166d(0x175)]),_0x154136=((_0x524fcf=_0x342b26['transform'])==null?void 0x0:_0x524fcf['angle'])||0x0;this[_0x16166d(0x357)]=!0x0,_0x27bfbd['disableObjectsEvent']();let _0x1a7326={...((_0x2e04e0=this['_activeAdjustInfo'])==null?void 0x0:_0x2e04e0[_0x16166d(0x1a5)])??{}};this[_0x16166d(0x2a7)]=_0x27bfbd[_0x16166d(0x23e)]['subscribeEvent']((_0xf78cb8,_0x15de88)=>{const _0x5bfd96=_0x16166d;if(!this[_0x5bfd96(0x357)])return;let {offsetX:_0x1259d4,offsetY:_0x385e74}=_0xf78cb8,_0x2eb944=this[_0x5bfd96(0x26f)];if(this['_activeShapeModel']&&_0x2eb944){_0x27bfbd[_0x5bfd96(0x20e)](),_0x27bfbd[_0x5bfd96(0x193)](_0x126c60['CROSSHAIR']);let _0x2cd562={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']},_0x38b9bc=this[_0x5bfd96(0x310)](this[_0x5bfd96(0x202)],this[_0x5bfd96(0x229)]),_0x3c1458=this[_0x5bfd96(0x2cb)](this[_0x5bfd96(0x202)],this[_0x5bfd96(0x229)]),_0x439d4a=_0x1259d4/_0x3c1458+_0x38b9bc['x']-this[_0x5bfd96(0x133)],_0x510db2=_0x385e74/_0x3c1458+_0x38b9bc['y']-this[_0x5bfd96(0x39c)];if(_0x154136!==0x0){let _0x6ae0ae=this[_0x5bfd96(0x393)]/0x2,_0x438bc8=this[_0x5bfd96(0x315)]/0x2,_0x3bf75f=_0x154136*Math['PI']/0xb4,_0x2d3519=Math['cos'](_0x3bf75f),_0x186580=Math['sin'](_0x3bf75f),_0x573530=_0x439d4a-_0x6ae0ae,_0x4eb6de=_0x510db2-_0x438bc8;_0x439d4a=_0x6ae0ae+(_0x573530*_0x2d3519+_0x4eb6de*_0x186580),_0x510db2=_0x438bc8+(-_0x573530*_0x186580+_0x4eb6de*_0x2d3519);}_0x280e6c&&(_0x439d4a=this['_baseShapeWidth']-_0x439d4a),_0x27591a&&(_0x510db2=this[_0x5bfd96(0x315)]-_0x510db2);let _0x2bb09c={'x':_0x439d4a,'y':_0x510db2},_0x4b3d43=this[_0x5bfd96(0x350)][_0x5bfd96(0x130)](_0x2cd562,_0x2bb09c,_0x2eb944,_0x280e6c,_0x27591a);if(Object[_0x5bfd96(0x34e)](_0x4b3d43)[_0x5bfd96(0x23c)]===0x0)return;for(let [_0x21f002,_0x22c871]of Object['entries'](_0x4b3d43))this[_0x5bfd96(0x350)][_0x5bfd96(0x285)](_0x21f002,_0x22c871);this[_0x5bfd96(0x350)][_0x5bfd96(0x276)]({'width':this[_0x5bfd96(0x393)],'height':this['_baseShapeHeight']});let _0x1bf300=this[_0x5bfd96(0x342)][_0x5bfd96(0x254)]({'unitId':_0x5db37d[_0x5bfd96(0x3d6)],'subUnitId':_0x5db37d['subUnitId'],'drawingId':_0x5db37d[_0x5bfd96(0x36f)]});_0x1bf300&&(this[_0x5bfd96(0x1e8)][_0x5bfd96(0x3b0)](_0x1bf300,_0x27bfbd),this[_0x5bfd96(0x280)]=this[_0x5bfd96(0x225)](_0x5db37d[_0x5bfd96(0x3d6)],_0x5db37d[_0x5bfd96(0x2a0)],_0x5db37d[_0x5bfd96(0x36f)]),this['_updateAdjustControlPositions']());}_0x15de88[_0x5bfd96(0x286)]();}),this[_0x16166d(0x1bd)]=_0x27bfbd[_0x16166d(0x15e)]['subscribeEvent']((_0x52268d,_0x55d2fc)=>{const _0x30637c=_0x16166d;this[_0x30637c(0x2a7)][_0x30637c(0x3df)](),this[_0x30637c(0x1bd)][_0x30637c(0x3df)](),_0x27bfbd[_0x30637c(0x239)]();let _0x3c15c4=this[_0x30637c(0x26f)];if(_0x3c15c4){let _0x2d06a5=_0x5db37d[_0x30637c(0x3d6)],_0x593203=_0x5db37d['subUnitId'],_0x1fbb91=_0x5db37d[_0x30637c(0x36f)],_0x504a21={};for(let _0x317e76 of Object[_0x30637c(0x34e)](_0x3c15c4['currentAdjustValues'])){var _0x27c03a;let _0x9b04e2=(_0x27c03a=this[_0x30637c(0x350)])==null?void 0x0:_0x27c03a['getAdjustValueByName'](_0x317e76);_0x9b04e2!==void 0x0&&(_0x504a21[_0x317e76]=_0x9b04e2);}Object[_0x30637c(0x34e)](_0x504a21)[_0x30637c(0x23c)]>0x0&&Wr(this[_0x30637c(0x338)],_0x2d06a5,_0x593203,_0x1fbb91,{'oldShapeData':{'adjustValues':_0x1a7326}},{'adjustValues':_0x504a21});}this[_0x30637c(0x26f)]=void 0x0,this[_0x30637c(0x350)]=void 0x0,this[_0x30637c(0x357)]=!0x1,_0x55d2fc['stopPropagation'](),_0x27bfbd['enableObjectsEvent']();}),_0x2366c8[_0x16166d(0x286)]();})));}[_0x38e982(0x3ca)](){const _0x54a4a1=_0x38e982;let _0x30cdc6=this[_0x54a4a1(0x23f)][_0x54a4a1(0x30c)](_0x19c9b9[_0x54a4a1(0x2b6)]);this['disposeWithMe'](_0x30cdc6[_0x54a4a1(0x1fd)](_0x1b4a14(_0x183da9=>_0x183da9?_0x183da9[_0x54a4a1(0x2fa)]['pipe'](_0x1b4a14(_0x23305d=>{const _0x439fc9=_0x54a4a1;if(!_0x23305d)return _0x1d5ee8;let _0x4f79f0=_0x183da9['getUnitId'](),_0x369228=this[_0x439fc9(0x3a5)]['getRenderUnitById'](_0x4f79f0),_0x19cd93=_0x369228==null?void 0x0:_0x369228[_0x439fc9(0x313)];return _0x19cd93?_0x402dea(_0x19cd93):_0x1d5ee8;})):_0x1d5ee8))[_0x54a4a1(0x335)](_0x3157cd=>{const _0x53f0d4=_0x54a4a1;let _0x4fc5a6=_0x3157cd[_0x53f0d4(0x294)]();this[_0x53f0d4(0x1b0)](_0x3157cd[_0x53f0d4(0x23e)][_0x53f0d4(0x29b)](()=>{const _0x3ff023=_0x53f0d4;this[_0x3ff023(0x20c)];})),this[_0x53f0d4(0x1b0)](_0x4fc5a6[_0x53f0d4(0x232)]['subscribe'](_0x31ee8a=>{const _0x4cbf71=_0x53f0d4;let {objects:_0x4cf5b7}=_0x31ee8a;this[_0x4cbf71(0x234)](),_0x4cf5b7!==null&&_0x4cf5b7['size']===0x1&&_0x4cf5b7[_0x4cbf71(0x38e)]()[_0x4cbf71(0x267)]()['value']instanceof J&&this[_0x4cbf71(0x2b4)](!0x0);})),this['disposeWithMe'](_0x4fc5a6[_0x53f0d4(0x3a7)][_0x53f0d4(0x335)](()=>{const _0x20c85d=_0x53f0d4;this['_isShouldShowDrawingShapeAdjust']&&this[_0x20c85d(0x1ef)]();})),this[_0x53f0d4(0x1b0)](_0x3157cd['onPointerUp$'][_0x53f0d4(0x29b)](()=>{const _0x39822a=_0x53f0d4;this[_0x39822a(0x20c)]&&(this[_0x39822a(0x2b4)](!0x1),this[_0x39822a(0x234)]());})),this[_0x53f0d4(0x1b0)](_0x4fc5a6[_0x53f0d4(0x375)][_0x53f0d4(0x335)](()=>{const _0x24586b=_0x53f0d4;this['_unitId']&&this['_subUnitId']&&this[_0x24586b(0x28f)]&&this[_0x24586b(0x342)][_0x24586b(0x254)]({'unitId':this[_0x24586b(0x202)],'subUnitId':this[_0x24586b(0x229)],'drawingId':this['_activeShapeId']})&&(this[_0x24586b(0x280)]=this[_0x24586b(0x225)](this['_unitId'],this[_0x24586b(0x229)],this['_activeShapeId']),this[_0x24586b(0x1af)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x494844=_0x38e982;this[_0x494844(0x1b0)](this[_0x494844(0x338)][_0x494844(0x325)](_0x30b019=>{const _0x399f0f=_0x494844;if(_0x30b019['id']!==_0x5a5b4d['id'])return;let {unitId:_0x42a2ef,subUnitId:_0x397ec7,shapeId:_0x3011ea}=_0x30b019[_0x399f0f(0x3c6)];_0x42a2ef===this[_0x399f0f(0x202)]&&_0x397ec7===this['_subUnitId']&&_0x3011ea===this[_0x399f0f(0x28f)]&&this[_0x399f0f(0x2a8)]();})),this[_0x494844(0x1b0)](this[_0x494844(0x342)][_0x494844(0x1a8)][_0x494844(0x335)](_0x86aeb5=>{const _0xc21856=_0x494844;if(_0x86aeb5[_0xc21856(0x23c)]===0x1){let _0x383ccd=_0x86aeb5[0x0];if(_0x383ccd[_0xc21856(0x3bd)]===_0x1afd9e[_0xc21856(0x2d5)]&&this[_0xc21856(0x23f)][_0xc21856(0x120)](_0x383ccd[_0xc21856(0x3d6)])===_0x19c9b9[_0xc21856(0x2b6)]){this[_0xc21856(0x28f)]=_0x383ccd[_0xc21856(0x36f)];let {unitId:_0x16ec15,subUnitId:_0x3f2a0a}=_0x383ccd;this[_0xc21856(0x280)]=this[_0xc21856(0x225)](_0x16ec15,_0x3f2a0a,this[_0xc21856(0x28f)]),this[_0xc21856(0x202)]=_0x16ec15,this[_0xc21856(0x229)]=_0x3f2a0a,this[_0xc21856(0x1ef)](),this[_0xc21856(0x234)]();return;}}this['_activeShapeId']=null,this[_0xc21856(0x280)]=void 0x0,this[_0xc21856(0x202)]=null,this[_0xc21856(0x229)]=null,this['_clearShapeAdjustControls']();})),this['disposeWithMe'](this[_0x494844(0x342)][_0x494844(0x27f)][_0x494844(0x335)](_0x1d9d1b=>{const _0x5ce2b3=_0x494844;if(_0x1d9d1b[_0x5ce2b3(0x23c)]===0x1){var _0xb67927;let _0xa3701d=_0x1d9d1b[0x0];((_0xb67927=this[_0x5ce2b3(0x342)][_0x5ce2b3(0x254)](_0xa3701d))==null?void 0x0:_0xb67927['drawingType'])===_0x1afd9e[_0x5ce2b3(0x2d5)]&&this[_0x5ce2b3(0x211)](!0x0);}})),this[_0x494844(0x1b0)](this['_drawingManagerService'][_0x494844(0x1a6)][_0x494844(0x335)](_0x448989=>{const _0x135f9f=_0x494844;for(let _0x27d26e of _0x448989)this[_0x135f9f(0x28f)]===_0x27d26e[_0x135f9f(0x36f)]&&(this['_activeShapeId']=null,this[_0x135f9f(0x280)]=void 0x0,this[_0x135f9f(0x202)]=null,this[_0x135f9f(0x229)]=null,this['_clearShapeAdjustControls']());}));}};Zr=X([Y(0x0,_0x457af4),Y(0x1,_0x304d45(_0x57544e)),Y(0x2,_0x304d45(_0x1fc6ff)),Y(0x3,_0x304d45(Z)),Y(0x4,_0x5789bf),Y(0x5,_0x5aac1e)],Zr);const Qr={'id':'drawing.operation.set-drawing-active','type':_0x4dec04[_0x38e982(0x188)],'handler':(_0x52f8c3,_0x12fecf)=>{const _0x3fd496=_0x38e982;let _0x162942=_0x52f8c3[_0x3fd496(0x292)](_0x457af4),_0x596d24=_0x52f8c3[_0x3fd496(0x292)](_0x1fc6ff),_0xd3dcb6=_0x52f8c3[_0x3fd496(0x292)](Zr);if(_0x12fecf==null)return!0x0;if(_0x12fecf['length']>0x0){var _0x1315ca;let _0xd1b57e=(_0x1315ca=_0x596d24[_0x3fd496(0x37e)](_0x12fecf[0x0][_0x3fd496(0x3d6)]))==null?void 0x0:_0x1315ca[_0x3fd496(0x313)];if(_0xd1b57e){let {unitId:_0x13a622,subUnitId:_0x380a67,drawingId:_0x1c8001}=_0x12fecf[0x0],_0x3ee16e=_0x306bd8({'unitId':_0x13a622,'subUnitId':_0x380a67,'drawingId':_0x1c8001},void 0x0),_0x5c3084=_0xd1b57e['getObjectIncludeInGroup'](_0x3ee16e);if(_0x5c3084){var _0x134ac0;(_0x134ac0=_0x596d24[_0x3fd496(0x37e)](_0x12fecf[0x0]['unitId']))==null||(_0x134ac0=_0x134ac0[_0x3fd496(0x313)][_0x3fd496(0x1e1)]())==null||_0x134ac0[_0x3fd496(0x34f)](_0x5c3084);}}_0x162942['focusDrawing'](_0x12fecf),_0xd3dcb6[_0x3fd496(0x2b4)](!0x1);}return!0x0;}},$r={'type':_0x4dec04['COMMAND'],'id':_0x38e982(0x253),'handler':async(_0x54f68b,_0x19d8df)=>{const _0x20af17=_0x38e982;var _0x5b8a7f,_0x40ecbc;let _0x178c62=_0x5290f5(_0x54f68b[_0x20af17(0x292)](_0x5789bf));if(!_0x178c62)return!0x1;let {unitId:_0x223cc6,subUnitId:_0x15a8f7,worksheet:_0x392e5e}=_0x178c62,_0x5ce3ab=_0x392e5e[_0x20af17(0x126)](),_0x23f6a7=_0x5ce3ab[_0x20af17(0x2b8)]??_0xd3ed2e[_0x20af17(0x2e1)];if(_0x23f6a7!==_0xd3ed2e[_0x20af17(0x2e1)]&&_0x23f6a7!==_0xd3ed2e['CHART'])return!0x1;let _0x2a8d75=_0x54f68b[_0x20af17(0x292)](_0x33574c);if(((_0x5b8a7f=_0x2a8d75[_0x20af17(0x16f)](new _0x5d4362(_0x223cc6)['id']))==null?void 0x0:_0x5b8a7f[_0x20af17(0x134)])!==!0x0||((_0x40ecbc=_0x2a8d75[_0x20af17(0x16f)](new _0x2cc33f(_0x223cc6,_0x15a8f7)['id']))==null?void 0x0:_0x40ecbc[_0x20af17(0x134)])!==!0x0)return!0x1;let _0x32818b=_0x54f68b[_0x20af17(0x292)](_0x5aac1e),{value:_0x4d89d1,enhanceParams:_0x5749d9}=_0x19d8df,_0x2d6a84={'unitId':_0x223cc6,'subUnitId':_0x15a8f7,'shapeType':_0x4d89d1,'shapeId':_0x1fdb08()};if(_0x23f6a7===_0xd3ed2e[_0x20af17(0x34b)]){let _0x74441e=_0x54f68b[_0x20af17(0x292)](_0x1fc6ff)[_0x20af17(0x37e)](_0x223cc6),_0x3d33b4=_0x74441e==null?void 0x0:_0x74441e[_0x20af17(0x1d0)]['get'](_0x5e18b6[_0x20af17(0x363)]);if(!_0x74441e||!_0x3d33b4||![_0x3d33b4[_0x20af17(0x39b)],_0x3d33b4[_0x20af17(0x218)],_0x3d33b4[_0x20af17(0x304)],_0x3d33b4[_0x20af17(0x204)]][_0x20af17(0x322)](Number[_0x20af17(0x2ff)])||_0x3d33b4['width']<=0x0||_0x3d33b4[_0x20af17(0x204)]<=0x0)return!0x1;let _0x311a3f={'row':0x0,'column':0x0,'rowOffset':0x0,'columnOffset':0x0},_0x53c196=_0x48f054([{'unitId':_0x223cc6,'subUnitId':_0x15a8f7,'drawingId':_0x2d6a84[_0x20af17(0x3ea)],'drawingType':_0x1afd9e['DRAWING_SHAPE'],'transform':{'left':0x0,'top':0x0,'width':_0x242f37,'height':_0x3c21b5},'sheetTransform':{'from':_0x311a3f,'to':_0x311a3f},'axisAlignSheetTransform':{'from':_0x311a3f,'to':_0x311a3f}}],{'left':_0x3d33b4[_0x20af17(0x39b)],'top':_0x3d33b4[_0x20af17(0x218)],'width':_0x3d33b4[_0x20af17(0x304)],'height':_0x3d33b4[_0x20af17(0x204)]},_0x5ce3ab[_0x20af17(0x127)]===_0x31e6e1['TRUE']);if(!(_0x53c196!=null&&_0x53c196['length']))return!0x1;let _0x287095=_0x53c196[0x0][_0x20af17(0x3d2)];_0x2d6a84[_0x20af17(0x3db)]={'x':_0x287095[_0x20af17(0x39b)],'y':_0x287095[_0x20af17(0x218)]},_0x2d6a84[_0x20af17(0x304)]=_0x287095[_0x20af17(0x304)],_0x2d6a84['height']=_0x287095[_0x20af17(0x204)];}else{let _0x5c695b=_0x54f68b[_0x20af17(0x292)](_0x16abf7)['getCurrentLastSelection']();if(!_0x5c695b)return!0x1;_0x2d6a84[_0x20af17(0x378)]=_0x5c695b['range'];}if(_0x5749d9){let {startArrow:_0x2379eb,endArrow:_0x44af01,horizontal:_0x32b950,vertical:_0x528561}=_0x5749d9,_0x22a76b=_0x45fca5(_0x4d89d1),_0x34be46=_0x4d89d1===_0x321129[_0x20af17(0x3cd)];if(_0x22a76b&&(_0x2379eb||_0x44af01)&&(_0x2d6a84['shapeData']={'ln':{'startArrow':_0x2379eb?{'type':_0x32a83b[_0x20af17(0x3e2)],'size':_0x49fbc3[_0x20af17(0x23b)]}:void 0x0,'endArrow':_0x44af01?{'type':_0x32a83b[_0x20af17(0x3e2)],'size':_0x49fbc3[_0x20af17(0x2e3)]}:void 0x0}}),_0x34be46&&(_0x32b950||_0x528561)){let _0x4bd277=_0x54f68b['get'](_0x1d816e);_0x2d6a84[_0x20af17(0x194)]=_0x2c5125({'fill':{'fillType':_0x16017b[_0x20af17(0x220)],'color':_0x4bd277[_0x20af17(0x2eb)](_0x20af17(0x16c))},'isHorizontal':!!_0x32b950,'stroke':{'lineStrokeType':_0x34d8d6['SolidLine'],'width':0x1,'color':_0x4bd277[_0x20af17(0x2eb)](_0x20af17(0x270))}});}}let _0x38420f=_0x32818b[_0x20af17(0x2f7)](_0x45fe66['id'],_0x2d6a84);return _0x38420f&&await _0x32818b[_0x20af17(0x190)](Qr['id'],[{'unitId':_0x223cc6,'subUnitId':_0x15a8f7,'drawingId':_0x2d6a84[_0x20af17(0x3ea)]}]),_0x38420f;}},ei=_0x38e982(0x32a),ti=_0x38e982(0x112),ni=_0x38e982(0x20f),ri=_0x38e982(0x1f3),ii=_0x270239(_0x38e982(0x199)),ai='sheet.shape.text.float-menu',oi={'id':_0x38e982(0x3b7),'type':_0x4dec04['COMMAND'],'handler':(_0x52f57e,_0x36fdb2)=>{const _0x482ee8=_0x38e982;let _0x11e01a=_0x52f57e[_0x482ee8(0x292)](_0x4e0164),_0x51ff82=_0x52f57e['get'](_0x1180ec),_0x4155a2=_0x52f57e['get'](_0x5789bf),_0x39e834=_0x52f57e[_0x482ee8(0x292)](_0x5aac1e);return _0x5290f5(_0x4155a2)?(_0x36fdb2==null?void 0x0:_0x36fdb2[_0x482ee8(0x134)])===_0x482ee8(0x281)?(_0x11e01a[_0x482ee8(0x281)](ti),!0x0):(_0x11e01a[_0x482ee8(0x189)]({'id':ti,'header':{'title':_0x51ff82['t'](_0x482ee8(0x182))},'children':{'label':ti},'onClose':()=>{_0x39e834['syncExecuteCommand'](_0x55fd78['id'],[]);},'width':0x168}),!0x0):!0x1;}},si={'type':_0x4dec04['OPERATION'],'id':_0x38e982(0x37b),'handler'(){return!0x0;}};function ci(_0x4f7d76){const _0x4cd17e=_0x38e982;let _0x5dc9eb=_0x4f7d76[_0x4cd17e(0x292)](_0x457af4)[_0x4cd17e(0x212)](),_0x579e80=_0x5dc9eb['length']===0x1?_0x5dc9eb[0x0]:null;if(!_0x579e80||_0x579e80[_0x4cd17e(0x3bd)]!==_0x1afd9e[_0x4cd17e(0x2d5)])return null;let _0x5bb834=_0x4f7d76[_0x4cd17e(0x292)](_0x57544e),_0x24cc6d=_0x5bb834[_0x4cd17e(0x3d3)](_0x579e80[_0x4cd17e(0x3d6)],_0x579e80[_0x4cd17e(0x2a0)],_0x579e80[_0x4cd17e(0x36f)]),_0x15d353=_0x5bb834['getShapeDataById'](_0x579e80[_0x4cd17e(0x3d6)],_0x579e80[_0x4cd17e(0x2a0)],_0x579e80[_0x4cd17e(0x36f)]);return _0x24cc6d===void 0x0||!_0x15d353?null:{'drawing':_0x579e80,'shapeData':_0x15d353,'shapeType':_0x24cc6d};}const li={'id':_0x38e982(0x118),'type':_0x4dec04['OPERATION'],'handler':(_0x420615,_0x481940)=>{const _0x24159d=_0x38e982;let _0x22483f=ci(_0x420615),_0x5e527b=_0x140d22((_0x481940==null?void 0x0:_0x481940[_0x24159d(0x314)])??(_0x481940==null?void 0x0:_0x481940[_0x24159d(0x134)])??'');if(!_0x22483f||!_0x5e527b||_0x5e527b['type']!==_0x389c17(_0x22483f[_0x24159d(0x194)]))return!0x1;let _0xa5a5a9=_0x22b90b(_0x22483f[_0x24159d(0x194)],_0x5e527b);if(!_0xa5a5a9)return!0x1;let {drawing:_0x5ba011}=_0x22483f;return _0x420615[_0x24159d(0x292)](_0x5aac1e)[_0x24159d(0x190)](K['id'],{'unitId':_0x5ba011['unitId'],'subUnitId':_0x5ba011[_0x24159d(0x2a0)],'shapeId':_0x5ba011[_0x24159d(0x36f)],'shapeData':_0xa5a5a9,'oldShapeJSON':{'oldShapeData':_0x22483f[_0x24159d(0x194)]}});}},ui={'id':_0x38e982(0x1ea),'type':_0x4dec04['OPERATION'],'handler':(_0x271337,_0x3e7158)=>{const _0x52cc2c=_0x38e982;let _0x315a9c=ci(_0x271337),_0x577ba6=(_0x3e7158==null?void 0x0:_0x3e7158[_0x52cc2c(0x185)])??(_0x3e7158==null?void 0x0:_0x3e7158['value']);if(!_0x315a9c||!_0x577ba6||_0x45fca5(_0x315a9c['shapeType'])||_0x45fca5(_0x577ba6))return!0x1;let _0x2ea8d5=_0x584f1a(_0x315a9c[_0x52cc2c(0x194)],_0x577ba6);if(!_0x2ea8d5)return!0x1;let {drawing:_0x4d7dc1}=_0x315a9c;return _0x271337[_0x52cc2c(0x292)](_0x5aac1e)[_0x52cc2c(0x190)](K['id'],{'unitId':_0x4d7dc1[_0x52cc2c(0x3d6)],'subUnitId':_0x4d7dc1[_0x52cc2c(0x2a0)],'shapeId':_0x4d7dc1[_0x52cc2c(0x36f)],'shapeType':_0x577ba6,'shapeData':_0x2ea8d5,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x315a9c[_0x52cc2c(0x185)],'oldShapeData':_0x315a9c[_0x52cc2c(0x194)]}});}};let Q=class extends _0x942aec{constructor(_0x249b8e,_0x284b19){const _0x10f24a=_0x38e982;super(),this[_0x10f24a(0x148)]=_0x249b8e,this[_0x10f24a(0x342)]=_0x284b19,this['_registerImageShapeClipDelegate'](),this[_0x10f24a(0x148)][_0x10f24a(0x36a)](!0x0),this[_0x10f24a(0x1b0)]({'dispose':()=>this[_0x10f24a(0x148)][_0x10f24a(0x36a)](!0x1)});}[_0x38e982(0x272)](){const _0x38458e=_0x38e982;let _0x1fd90e=this['_clipService'],_0x5880cd=new Map(),_0x16a26e=_0x1fd90e['registerClipDelegate']((_0x3b783e,_0x49b9ec,_0x4fe75d,_0x18e332,_0x4b43ae)=>{const _0x1807c0=_0x2e49;let _0x3ee649=_0x49b9ec;if(_0x3ee649===_0x321129[_0x1807c0(0x1f9)]||_0x49b9ec===_0x1807c0(0x27c))return!0x1;try{let _0xde6aae=_0x5880cd['get'](_0x49b9ec);return _0xde6aae||(_0xde6aae=new _0x623510(_0x3ee649,_0x1807c0(0x3d9)+_0x49b9ec),_0x5880cd[_0x1807c0(0x2b5)](_0x49b9ec,_0xde6aae)),_0xde6aae['clearAdjustValue'](),_0x4b43ae&&Object[_0x1807c0(0x34e)](_0x4b43ae)[_0x1807c0(0x23c)]>0x0&&_0xde6aae[_0x1807c0(0x246)]({'adjustValues':_0x4b43ae},!0x0),_0xde6aae[_0x1807c0(0x276)]({'width':_0x4fe75d,'height':_0x18e332}),_0xde6aae['buildClipPath'](_0x3b783e,{'left':0x0,'top':0x0,'width':_0x4fe75d,'height':_0x18e332});}catch{return!0x1;}});this[_0x38458e(0x1b0)](_0x16a26e),this[_0x38458e(0x1b0)]({'dispose':()=>_0x5880cd['clear']()});}[_0x38e982(0x1a0)](_0x5e177f,_0x3a7bf1,_0x1bbbe6,_0x40bf60,_0x54b576){const _0x5eed63=_0x38e982;let _0x2612a3=this[_0x5eed63(0x342)]['getDrawingData'](_0x5e177f,_0x3a7bf1);if(!_0x2612a3[_0x1bbbe6])return;let _0x3aea80={..._0x2612a3[_0x1bbbe6],'prstGeom':_0x40bf60,'adjustValues':_0x54b576};this[_0x5eed63(0x342)][_0x5eed63(0x1e7)]([_0x3aea80]);}};Q=X([Y(0x0,_0x304d45(_0x59e432)),Y(0x1,_0x304d45(_0x457af4))],Q);const di=_0x38e982(0x1a4),fi='sheet.image-clip.shape-picker.component';function pi({onShapeClick:_0x75ad2d,excludeGroups:_0x163f78}){const _0x55c37e=_0x38e982;return _0xbd5fef(_0x4c9f43,{'excludeGroups':_0x163f78,'onShapeClick':_0x75ad2d,'scrollContainer':_0x55c37e(0x168)});}function mi(){const _0x2d89d5=_0x38e982;let _0x40d866=_0x459a0a(_0x457af4),_0x54b6b1=_0x459a0a(Q);return _0xbd5fef(_0x51103d,{'buttonLabel':_0x2d89d5(0x158),'excludeGroups':[_0x1d29cc[_0x2d89d5(0x259)]],'onShapeClick':_0x384ddd=>{const _0x3dfb4a=_0x2d89d5;let _0x533115=_0x40d866[_0x3dfb4a(0x212)]()[_0x3dfb4a(0x397)](_0xdc5f42=>_0xdc5f42[_0x3dfb4a(0x3bd)]===_0x1afd9e[_0x3dfb4a(0x2d9)]);if(!_0x533115)return;let {unitId:_0x51ccce,subUnitId:_0x39877a,drawingId:_0x28bc92}=_0x533115;_0x54b6b1['clipByShape'](_0x51ccce,_0x39877a,_0x28bc92,_0x384ddd['type']);}});}function hi(){const _0x4b374c=_0x38e982;let _0x4e8da6=_0x459a0a(_0x457af4),_0x3b9ea7=_0x459a0a(Q);return _0xbd5fef(_0x51103d,{'buttonLabel':_0x4b374c(0x158),'excludeGroups':[_0x1d29cc[_0x4b374c(0x259)]],'DropdownComponent':_0x37ef1f,'onShapeClick':_0x4b34c6=>{const _0x570a74=_0x4b374c;let _0xcd0810=_0x4e8da6[_0x570a74(0x212)]()[_0x570a74(0x397)](_0x2c6d81=>_0x2c6d81[_0x570a74(0x3bd)]===_0x1afd9e[_0x570a74(0x2d9)]);if(!_0xcd0810)return;let {unitId:_0x58c6d9,subUnitId:_0x390477,drawingId:_0x17510d}=_0xcd0810;_0x3b9ea7[_0x570a74(0x1a0)](_0x58c6d9,_0x390477,_0x17510d,_0x4b34c6[_0x570a74(0x2b8)]);}});}function gi(){const _0xfbc72c=_0x38e982;let _0x308700=_0x459a0a(_0x5a4631),_0x12f481=_0x459a0a(_0x457af4),_0x2a5bb6=_0x459a0a(_0x5789bf),_0x32ebe7=_0x12f481[_0xfbc72c(0x212)]()[0x0],_0xba0b74=_0x32ebe7?_0x2a5bb6['getUnitType'](_0x32ebe7[_0xfbc72c(0x3d6)]):void 0x0,_0x38b1b0=_0xba0b74===_0x19c9b9['UNIVER_DOC']?'doc.image-clip.shape-picker.component':_0xba0b74===_0x19c9b9['UNIVER_SHEET']?fi:void 0x0,_0x144f2a=_0x38b1b0?_0x308700[_0xfbc72c(0x292)](_0x38b1b0):void 0x0;return _0x144f2a?_0xbd5fef(_0x144f2a,{}):null;}function _i(){let _0x2f6b81=_0x459a0a(_0x5aac1e);return _0xbd5fef(pi,{'onShapeClick':_0x3487b6=>{const _0x50cce9=_0x2e49;_0x2f6b81['executeCommand']($r['id'],{'value':_0x3487b6[_0x50cce9(0x2b8)],'enhanceParams':{'endArrow':_0x3487b6[_0x50cce9(0x2d8)],'startArrow':_0x3487b6[_0x50cce9(0x32c)],'horizontal':_0x3487b6[_0x50cce9(0x1cb)],'vertical':_0x3487b6[_0x50cce9(0x123)]}});}});}function vi(){return _0xbd5fef(_i,{});}function yi(_0x30896e){const _0x317c32=_0x38e982;return _0xd1ef5e(_0x30896e[_0x317c32(0x292)](_0x5789bf),!0x0,({workbook:_0x2bed41,worksheet:_0x423007})=>{const _0x1c27ef=_0x317c32;let _0x41765e=_0x423007[_0x1c27ef(0x126)]()[_0x1c27ef(0x2b8)]??_0xd3ed2e[_0x1c27ef(0x2e1)];if(_0x41765e===_0xd3ed2e[_0x1c27ef(0x2e1)])return _0x32f5e7(_0x30896e);if(_0x41765e!==_0xd3ed2e[_0x1c27ef(0x34b)])return _0x402dea(!0x0);let _0x330c33=_0x30896e[_0x1c27ef(0x292)](_0x33574c),_0x4bbd88=[new _0x5d4362(_0x2bed41[_0x1c27ef(0x1cc)]())['id'],new _0x2cc33f(_0x2bed41['getUnitId'](),_0x423007[_0x1c27ef(0x3e5)]())['id']];return _0x330c33[_0x1c27ef(0x247)][_0x1c27ef(0x1fd)](_0xb8ac8c(null),_0x3f0b72(()=>_0x4bbd88[_0x1c27ef(0x38a)](_0x36eb55=>{const _0x51a1f0=_0x1c27ef;var _0x30e1f6;return((_0x30e1f6=_0x330c33[_0x51a1f0(0x16f)](_0x36eb55))==null?void 0x0:_0x30e1f6['value'])!==!0x0;})),_0x3cc419());});}function bi(_0x552182){const _0x11740e=_0x38e982;let _0x56c71b=_0x552182[_0x11740e(0x292)](_0x5789bf);return{'id':$r['id'],'type':_0xbf3362['SELECTOR'],'selections':[{'label':{'name':di,'hoverable':!0x1,'selectable':!0x1,'props':{'id':$r['id']}}}],'icon':_0x11740e(0x38f),'tooltip':_0x11740e(0x371),'activated$':_0xd1ef5e(_0x56c71b,!0x1,()=>new _0x43994c(_0x59d7e1=>{const _0x347fd8=_0x11740e;_0x59d7e1[_0x347fd8(0x267)](!0x1);})),'hidden$':_0x520357(_0x552182,_0x19c9b9['UNIVER_SHEET']),'disabled$':yi(_0x552182)};}function xi(_0xe5cb03){const _0x3130b8=_0x38e982;return _0xd1ef5e(_0xe5cb03[_0x3130b8(0x292)](_0x5789bf),!0x0,({workbook:_0x26bf3d,worksheet:_0x1f0825})=>{const _0x42f649=_0x3130b8;let _0x19aaf1=_0x1f0825[_0x42f649(0x126)]()[_0x42f649(0x2b8)]??_0xd3ed2e[_0x42f649(0x2e1)];if(_0x19aaf1===_0xd3ed2e['GRID'])return _0x32f5e7(_0xe5cb03);if(_0x19aaf1!==_0xd3ed2e[_0x42f649(0x34b)])return _0x402dea(!0x0);let _0xcd4180=_0xe5cb03[_0x42f649(0x292)](_0x33574c),_0x2f9ca8=[new _0x5d4362(_0x26bf3d[_0x42f649(0x1cc)]())['id'],new _0x2cc33f(_0x26bf3d[_0x42f649(0x1cc)](),_0x1f0825[_0x42f649(0x3e5)]())['id']];return _0xcd4180[_0x42f649(0x247)][_0x42f649(0x1fd)](_0xb8ac8c(null),_0x3f0b72(()=>_0x2f9ca8[_0x42f649(0x38a)](_0x28924a=>{const _0x159e77=_0x42f649;var _0x6ab7f;return((_0x6ab7f=_0xcd4180[_0x159e77(0x16f)](_0x28924a))==null?void 0x0:_0x6ab7f[_0x159e77(0x134)])!==!0x0;})),_0x3cc419());});}function Si(_0x2e0a77){const _0x618754=_0x38e982;let _0xbb0669=_0x2e0a77['get'](_0x4e0164);return{'id':oi['id'],'type':_0xbf3362[_0x618754(0x111)],'icon':_0x618754(0x2bc),'title':_0x618754(0x11f),'tooltip':_0x618754(0x11f),'activated$':_0x1ddfc3(()=>_0xbb0669[_0x618754(0x1f5)]['pipe'](_0xb8ac8c(_0xbb0669[_0x618754(0x1df)]),_0x3f0b72(_0x2b5c7c=>_0x2b5c7c[_0x618754(0x205)]===!0x0&&_0x2b5c7c['id']==='sheet.shape.object-list.panel'),_0x3cc419())),'hidden$':_0x520357(_0x2e0a77,_0x19c9b9[_0x618754(0x2b6)]),'disabled$':xi(_0x2e0a77)};}const Ci=_0x38e982(0x37d),wi='sheet.menu.shape.flip-vertical';function Ti(_0x8908ed){const _0x4fc838=_0x38e982;let _0x4f472c=_0x8908ed[_0x4fc838(0x292)](_0x457af4)['getFocusDrawings']();return _0x4f472c[_0x4fc838(0x23c)]===0x1&&_0x4f472c[0x0][_0x4fc838(0x3bd)]===_0x1afd9e[_0x4fc838(0x2d5)]?_0x4f472c[0x0]:null;}function Ei(_0x267c0f){const _0x1d0d11=_0x38e982;let _0x4d7052=_0x267c0f['get'](_0x457af4);return _0x4d7052[_0x1d0d11(0x1a8)][_0x1d0d11(0x1fd)](_0xb8ac8c(_0x4d7052[_0x1d0d11(0x212)]()),_0x3f0b72(_0x238d1a=>_0x238d1a[_0x1d0d11(0x23c)]!==0x1||_0x238d1a[0x0][_0x1d0d11(0x3bd)]!==_0x1afd9e[_0x1d0d11(0x2d5)]));}function Di(_0x586408){const _0x280431=_0x38e982;return{'id':Ci,'commandId':_0x4f77fb['id'],'type':_0xbf3362[_0x280431(0x111)],'title':'sheets-shape-ui.flipHorizontal','tooltip':_0x280431(0x198),'icon':_0x280431(0x389),'hidden$':Ei(_0x586408),'params':()=>{const _0x17c683=_0x280431;let _0x338845=Ti(_0x586408);return _0x338845?{'unitId':_0x338845[_0x17c683(0x3d6)],'subUnitId':_0x338845[_0x17c683(0x2a0)],'shapeId':_0x338845['drawingId'],'flipH':!0x0}:void 0x0;}};}function Oi(_0x34d042){const _0xb9a513=_0x38e982;return{'id':wi,'commandId':_0x4f77fb['id'],'type':_0xbf3362[_0xb9a513(0x111)],'title':_0xb9a513(0x318),'tooltip':'sheets-shape-ui.flipVertical','icon':_0xb9a513(0x115),'hidden$':Ei(_0x34d042),'params':()=>{const _0x23b3b7=_0xb9a513;let _0x128a63=Ti(_0x34d042);return _0x128a63?{'unitId':_0x128a63[_0x23b3b7(0x3d6)],'subUnitId':_0x128a63[_0x23b3b7(0x2a0)],'shapeId':_0x128a63['drawingId'],'flipV':!0x0}:void 0x0;}};}const ki=_0x38e982(0x1b9),Ai='sheets-shape-ui.shape-format.style-ribbon-control',ji=_0x38e982(0x1b6),Mi=_0x38e982(0x2d4);function Ni(){let _0x553b4f=_0x459a0a(_0x5aac1e),_0x12246d=_0x459a0a(_0x457af4),_0x2b58a9=_0x459a0a(_0x57544e),_0x2de3fc=()=>{const _0x47b2bc=_0x2e49;var _0x16bef0;let _0x36b11=_0x12246d['getFocusDrawings']();if(_0x36b11[_0x47b2bc(0x23c)]!==0x1||((_0x16bef0=_0x36b11[0x0])==null?void 0x0:_0x16bef0['drawingType'])!==_0x1afd9e['DRAWING_SHAPE'])return null;let {unitId:_0x263dc3,subUnitId:_0x241c73,drawingId:_0x471c4e}=_0x36b11[0x0],_0x3427cd=_0x2b58a9[_0x47b2bc(0x3d3)](_0x263dc3,_0x241c73,_0x471c4e),_0x214bbf=_0x2b58a9[_0x47b2bc(0x284)](_0x263dc3,_0x241c73,_0x471c4e);return _0x3427cd===void 0x0||!_0x214bbf?null:{'unitId':_0x263dc3,'subUnitId':_0x241c73,'drawingId':_0x471c4e,'shapeType':_0x3427cd,'shapeData':_0x214bbf};},_0x35b9ba=_0x3f5135(()=>new _0x43994c(_0x276232=>{const _0x43d70b=_0x2e49;let _0x51bebc=()=>_0x276232[_0x43d70b(0x267)](_0x2de3fc()),_0x57ed2d=_0x12246d['focus$'][_0x43d70b(0x335)](_0x51bebc),_0x19637a=_0x553b4f[_0x43d70b(0x325)](_0x2d664e=>{_0x2d664e['id']===_0x5a5b4d['id']&&_0x51bebc();});return _0x51bebc(),()=>{const _0x1e48eb=_0x43d70b;_0x57ed2d[_0x1e48eb(0x3df)](),_0x19637a[_0x1e48eb(0x39d)]();};}),_0x2de3fc(),!0x1,[_0x553b4f,_0x12246d,_0x2b58a9]);return{'selection':_0x35b9ba,'updateShapeData':_0x445a0f=>{const _0xeb1d1=_0x2e49;_0x35b9ba&&Wr(_0x553b4f,_0x35b9ba[_0xeb1d1(0x3d6)],_0x35b9ba['subUnitId'],_0x35b9ba[_0xeb1d1(0x36f)],{'oldShapeData':_0x35b9ba[_0xeb1d1(0x194)]},_0x445a0f);}};}function Pi(){const _0x3ff608=_0x38e982;let {selection:_0xe08856,updateShapeData:_0x51042f}=Ni();return _0xe08856?_0xbd5fef(_0x1499a8,{'shapeData':_0xe08856[_0x3ff608(0x194)],'shapeType':_0xe08856[_0x3ff608(0x185)],'onUpdateShapeData':_0x51042f}):null;}function Fi(){const _0x42f845=_0x38e982;let _0x187c47=_0x459a0a(_0x5aac1e),_0x4bbdcd=_0x459a0a(_0x1180ec),{selection:_0x5302cc}=Ni();return _0x5302cc?_0xbd5fef(_0x772515,{'type':_0x389c17(_0x5302cc[_0x42f845(0x194)]),'ariaLabel':_0x4bbdcd['t'](_0x42f845(0x311)),'activePresetId':_0xe6bf2b(_0x5302cc[_0x42f845(0x194)]),'onSelect':_0x426a54=>_0x187c47[_0x42f845(0x190)](li['id'],{'presetId':_0x426a54})}):null;}function Ii(){const _0x1ab03d=_0x38e982;let {selection:_0x5699ca,updateShapeData:_0x5be147}=Ni();return _0x5699ca?_0xbd5fef(_0x27e9dc,{'fontFamilyPopupDataComponent':_0x1ab03d(0x13b),'shapeData':_0x5699ca['shapeData'],'onUpdateShapeData':_0x5be147}):null;}function Li(){const _0x1c4485=_0x38e982;var _0x2b3df5;let {selection:_0x591128,updateShapeData:_0x5267e9}=Ni(),_0xe7b7fe=_0x574ef4({'hostType':_0x19c9b9[_0x1c4485(0x2b6)],'unitId':(_0x591128==null?void 0x0:_0x591128['unitId'])??'','subUnitId':(_0x591128==null?void 0x0:_0x591128[_0x1c4485(0x2a0)])??'','shapeId':(_0x591128==null?void 0x0:_0x591128[_0x1c4485(0x36f)])??'','shapeData':_0x591128==null?void 0x0:_0x591128[_0x1c4485(0x194)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x1c4485(0x3a9),'onUpdateBinding':_0x720997=>_0x5267e9({'formulaBinding':_0x720997})}),_0x224791=((_0x2b3df5=_0xe7b7fe[_0x1c4485(0x10d)])==null?void 0x0:_0x2b3df5[_0x1c4485(0x159)](_0xf3db99=>_0xf3db99[_0x1c4485(0x33d)])[_0x1c4485(0x2d3)](_0x221867=>_0x221867[_0x1c4485(0x205)]!==!0x1))??[];return _0x591128!=null&&_0x591128[_0x1c4485(0x194)]['formulaBinding']?_0xbd5fef(_0x2e03d4,{'actions':_0x224791,'panel':_0xe7b7fe[_0x1c4485(0x324)]}):null;}const Ri='sheets-shape-ui.ribbon.shape-format.style-control',zi='sheets-shape-ui.ribbon.shape-format.text-control',Bi=_0x38e982(0x383),Vi='sheets-shape-ui.ribbon.shape-format.arrange-forward',Hi=_0x38e982(0x122),Ui=_0x38e982(0x336),Wi=_0x38e982(0x2c0);function Gi(_0x4146ad){const _0x53f373=_0x38e982;let _0x29f389=_0x4146ad[_0x53f373(0x292)](_0x5aac1e),_0x376a70=_0x4146ad['get'](_0x457af4),_0x224ab0=_0x4146ad[_0x53f373(0x292)](_0x57544e);return new _0x43994c(_0x212d46=>{const _0xb84d32=_0x53f373;let _0x2a29da=()=>{const _0x52bd7f=_0x2e49;let _0xb41092=Ki(_0x4146ad),_0x1d37bd=_0xb41092?_0x224ab0[_0x52bd7f(0x284)](_0xb41092[_0x52bd7f(0x3d6)],_0xb41092[_0x52bd7f(0x2a0)],_0xb41092[_0x52bd7f(0x36f)]):null;_0x212d46[_0x52bd7f(0x267)](_0x1d37bd?_0xe6bf2b(_0x1d37bd)??'':'');},_0x531c51=_0x376a70[_0xb84d32(0x1a8)][_0xb84d32(0x335)](_0x2a29da),_0x50c43e=_0x29f389[_0xb84d32(0x325)](_0x473d9a=>{_0x473d9a['id']===_0x5a5b4d['id']&&_0x2a29da();});return _0x2a29da(),()=>{const _0x4edc92=_0xb84d32;_0x531c51[_0x4edc92(0x3df)](),_0x50c43e[_0x4edc92(0x39d)]();};});}function Ki(_0x393eca){const _0x44a131=_0x38e982;var _0x322136;let _0xc24c90=_0x393eca['get'](_0x457af4)[_0x44a131(0x212)]();return _0xc24c90[_0x44a131(0x23c)]===0x1&&((_0x322136=_0xc24c90[0x0])==null?void 0x0:_0x322136[_0x44a131(0x3bd)])===_0x1afd9e['DRAWING_SHAPE']?_0xc24c90[0x0]:null;}function qi(_0x7e292f,_0x41ce75=!0x1){const _0x46e38b=_0x38e982;let _0x52599f=_0x7e292f[_0x46e38b(0x292)](_0x5aac1e),_0x5a0d17=_0x7e292f[_0x46e38b(0x292)](_0x457af4),_0x171b70=_0x7e292f['get'](_0x57544e);return new _0x43994c(_0x2cf245=>{const _0x4903be=_0x46e38b;let _0x175b01=()=>{const _0x326c50=_0x2e49;let _0x3ee497=Ki(_0x7e292f);if(!_0x3ee497){_0x2cf245[_0x326c50(0x267)](!0x0);return;}let _0x12d3f2=_0x171b70[_0x326c50(0x284)](_0x3ee497[_0x326c50(0x3d6)],_0x3ee497['subUnitId'],_0x3ee497[_0x326c50(0x36f)]);_0x2cf245[_0x326c50(0x267)](!_0x12d3f2||_0x41ce75&&_0x12d3f2['formulaBinding']==null);},_0x67990b=_0x5a0d17['focus$'][_0x4903be(0x335)](_0x175b01),_0x456d99=_0x52599f['onCommandExecuted'](_0x3c7847=>{_0x3c7847['id']===_0x5a5b4d['id']&&_0x175b01();});return _0x175b01(),()=>{_0x67990b['unsubscribe'](),_0x456d99['dispose']();};});}function Ji(_0x58da9d){const _0x4f9bd2=_0x38e982;let _0x19eec3=_0x58da9d[_0x4f9bd2(0x292)](_0x457af4),_0x41ce8f=_0x58da9d['get'](_0x57544e);return _0x19eec3[_0x4f9bd2(0x1a8)]['pipe'](_0xb8ac8c(_0x19eec3['getFocusDrawings']()),_0x3f0b72(()=>{const _0x12a004=_0x4f9bd2;let _0x36b3c6=Ki(_0x58da9d),_0x2a3d92=_0x36b3c6?_0x41ce8f['getShapeTypeById'](_0x36b3c6[_0x12a004(0x3d6)],_0x36b3c6[_0x12a004(0x2a0)],_0x36b3c6[_0x12a004(0x36f)]):void 0x0;return _0x2a3d92===void 0x0||_0x45fca5(_0x2a3d92);}));}function Yi(_0x2d4bfd){const _0x44f3ab=_0x38e982;return{'id':li['id'],'type':_0xbf3362[_0x44f3ab(0x2ee)],'icon':'PaintIcon','title':'shape-editor-ui.toolbar.quickStyles','tooltip':'shape-editor-ui.toolbar.quickStyles','selections':[{'label':{'name':ki,'hoverable':!0x1,'selectable':!0x1}}],'value$':Gi(_0x2d4bfd),'hidden$':qi(_0x2d4bfd)};}function Xi(_0x13007a){const _0x54c2b5=_0x38e982;return{'id':ui['id'],'type':_0xbf3362['SELECTOR'],'icon':_0x54c2b5(0x38f),'title':_0x54c2b5(0x273),'tooltip':_0x54c2b5(0x273),'slot':!0x0,'selections':[{'label':{'name':_0x1d0554,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Ji(_0x13007a)};}function Zi(_0x410cde,_0x1c6e7e,_0x445610=!0x1){const _0x42ee62=_0x38e982;return _0x19c06f=>({'id':_0x410cde,'type':_0xbf3362[_0x42ee62(0x111)],'label':{'name':_0x1c6e7e,'hoverable':!0x1,'selectable':!0x1},'hidden$':qi(_0x19c06f,_0x445610)});}const Qi=Zi(Ri,Ai),$i=Zi(zi,ji),ea=Zi(Bi,Mi,!0x0);function ta(_0x325ff1,_0x338ec7,_0x2cd7ae,_0x3b0172){const _0x10fdb6=_0x38e982;return _0x12d890=>({'id':_0x325ff1,'commandId':_0x3cad82['id'],'type':_0xbf3362[_0x10fdb6(0x111)],'icon':_0x2cd7ae,'title':_0x3b0172,'tooltip':_0x3b0172,'hidden$':qi(_0x12d890),'params':()=>{const _0x273d3c=_0x10fdb6;let _0x47de03=Ki(_0x12d890);return _0x47de03?{'unitId':_0x47de03[_0x273d3c(0x3d6)],'subUnitId':_0x47de03[_0x273d3c(0x2a0)],'drawingIds':[_0x47de03['drawingId']],'arrangeType':_0x338ec7}:void 0x0;}});}const na=ta(Vi,_0x42ada2[_0x38e982(0x13c)],'MoveUpIcon','shape-editor-ui.arrange.forward'),ra=ta(Hi,_0x42ada2[_0x38e982(0x296)],_0x38e982(0x2c4),_0x38e982(0x27a)),ia=ta(Ui,_0x42ada2[_0x38e982(0x258)],'TopmostIcon',_0x38e982(0x21c)),aa=ta(Wi,_0x42ada2['back'],_0x38e982(0x3da),'shape-editor-ui.arrange.back');function oa(_0xfae158){const _0x344937=_0x38e982;let _0x3d09fd=_0xfae158[_0x344937(0x292)](_0x4e0164);return{'activated$':_0x1ddfc3(()=>_0x3d09fd[_0x344937(0x1f5)]['pipe'](_0xb8ac8c(_0x3d09fd[_0x344937(0x1df)]),_0x3f0b72(_0x5a87b1=>_0x5a87b1['visible']===!0x0&&_0x5a87b1['id']==='sheet.shape.edit.panel'),_0x3cc419())),'id':si['id'],'type':_0xbf3362['BUTTON'],'icon':_0x344937(0x1dd),'title':_0x344937(0x249),'tooltip':_0x344937(0x249),'hidden$':qi(_0xfae158),'params':()=>{const _0x26e8c2=_0x344937;let _0x472046=Ki(_0xfae158);return _0x472046?{'unitId':_0x472046[_0x26e8c2(0x3d6)],'subUnitId':_0x472046[_0x26e8c2(0x2a0)],'drawingId':_0x472046[_0x26e8c2(0x36f)]}:void 0x0;}};}const sa={[_0x427908[_0x38e982(0x297)]]:{[ri]:{'order':0x64,'title':_0x38e982(0x249),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[li['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Yi},[ui['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Xi}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[Ri]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Qi}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[zi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':$i}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[Ci]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':Di},[wi]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':Oi},[Vi]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':na},[Hi]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':ra},[Ui]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':ia},[Wi]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':aa}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[Bi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':ea}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[si['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':oa},[_0x3e1e7a['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x5ceb83}}}}},ca={[_0x361031['MEDIA']]:{[$r['id']]:{'order':0x3,'menuItemFactory':bi}}},la={...ca,[_0x361031[_0x38e982(0x251)]]:{[oi['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Si}},[_0x394bea[_0x38e982(0x3c7)]]:{[_0x2fbb1e[_0x38e982(0x251)]]:{[Ci]:{'order':0x4,'menuItemFactory':Di},[wi]:{'order':0x5,'menuItemFactory':Oi}}}};var ua=_0x38e982(0x22e),da=_0x38e982(0x39e);const fa={'id':_0x38e982(0x113),'type':_0x4dec04[_0x38e982(0x188)],'handler'(_0xc8fbb8,_0x42a202){const _0x5de354=_0x38e982;return _0x42a202?(_0xc8fbb8['get'](_0x531a0e)['open'](_0x42a202[_0x5de354(0x1d9)],{'hostType':_0x19c9b9['UNIVER_SHEET'],'shapeId':_0x42a202[_0x5de354(0x36f)],'subUnitId':_0x42a202[_0x5de354(0x2a0)],'unitId':_0x42a202['unitId']}),!0x0):!0x1;}},pa='sheets-shape-ui.config',ma={};let ha=class extends _0x942aec{constructor(_0x3dd6d9,_0x5c2e0c,_0x1bdcf9,_0x117006,_0x477ab1){const _0x391bb4=_0x38e982;super(),this[_0x391bb4(0x18a)]=_0x3dd6d9,this[_0x391bb4(0x342)]=_0x5c2e0c,this[_0x391bb4(0x3a5)]=_0x1bdcf9,this[_0x391bb4(0x23f)]=_0x117006,this[_0x391bb4(0x1f1)]=_0x477ab1,q(this,'_activeImageId',null),q(this,'_unitId',null),q(this,_0x391bb4(0x229),null),q(this,_0x391bb4(0x32d),void 0x0),q(this,'_shapes',[]),q(this,_0x391bb4(0x13f),0x0),q(this,'_baseTop',0x0),q(this,_0x391bb4(0x2da),0x0),q(this,_0x391bb4(0x2fb),0x0),q(this,_0x391bb4(0x357),!0x1),q(this,_0x391bb4(0x26f),void 0x0),q(this,_0x391bb4(0x350),void 0x0),q(this,_0x391bb4(0x2a7),void 0x0),q(this,_0x391bb4(0x1bd),void 0x0),q(this,'_isImagePointerDown',!0x1),this['_registerFocusChangeHandler'](),this[_0x391bb4(0x388)]();}[_0x38e982(0x2a3)](){const _0x4d8ffa=_0x38e982;this[_0x4d8ffa(0x3ce)]();}['refreshAdjustControls'](){const _0x3384dd=_0x38e982;this[_0x3384dd(0x3ce)](),this['_createControls'](!0x0);}[_0x38e982(0x129)](_0x1a598b,_0x2b52a6,_0x3bf805,_0x47f664){const _0x4827f7=_0x38e982;let _0x1c8bcb=_0x1a598b;if(_0x1c8bcb!==_0x321129[_0x4827f7(0x1f9)]&&_0x1a598b!==_0x4827f7(0x27c))try{let _0x18dff4=new _0x623510(_0x1c8bcb,_0x4827f7(0x12e)+_0x1a598b);return _0x47f664&&_0x18dff4[_0x4827f7(0x246)]({'adjustValues':_0x47f664},!0x0),_0x18dff4[_0x4827f7(0x276)]({'width':_0x2b52a6,'height':_0x3bf805}),_0x18dff4;}catch{return;}}['_getImageDrawingInfo'](_0x2b65de,_0x5146b2,_0x4a793f){const _0x75e562=_0x38e982;let _0xd928b2={'unitId':_0x2b65de,'subUnitId':_0x5146b2,'drawingId':_0x4a793f},_0x16b780=this[_0x75e562(0x342)]['getDrawingByParam'](_0xd928b2);if(_0x16b780&&_0x16b780['drawingType']===_0x1afd9e[_0x75e562(0x2d9)])return _0x16b780;}['_getImagePrstGeom'](_0xee4d02,_0x31a48a,_0x13379f){const _0x2e5d64=_0x38e982;let _0x48c9d1=this[_0x2e5d64(0x3a5)]['getRenderUnitById'](_0xee4d02);if(!_0x48c9d1)return;let {scene:_0x1fed04}=_0x48c9d1,_0x18d792=_0x306bd8({'unitId':_0xee4d02,'subUnitId':_0x31a48a,'drawingId':_0x13379f}),_0xf96c36=_0x1fed04[_0x2e5d64(0x150)](_0x18d792);if(_0xf96c36 instanceof _0x21c6ff){let _0x3be3a1=_0xf96c36['prstGeom'];if(_0x3be3a1)return{'prstGeom':_0x3be3a1,'adjustValues':_0xf96c36[_0x2e5d64(0x19a)]};}}[_0x38e982(0x3ac)](_0x7d5bab=!0x1){const _0x556890=_0x38e982;if(!this['_unitId']||!this[_0x556890(0x229)]||!this[_0x556890(0x21e)])return;let _0x8a6ced=this[_0x556890(0x3a5)]['getRenderUnitById'](this[_0x556890(0x202)]);if(!_0x8a6ced||!_0x8a6ced[_0x556890(0x24f)](_0x151dc3)[_0x556890(0x1c2)]())return;let {scene:_0x8eeed5}=_0x8a6ced,_0x43197a=this[_0x556890(0x343)](this[_0x556890(0x202)],this[_0x556890(0x229)],this[_0x556890(0x21e)]);if(!_0x43197a)return;let {transform:_0x24da2b}=_0x43197a;if(!_0x24da2b)return;let {left:_0x3ad884,top:_0x30a980,width:_0x1da1aa,height:_0x232569,flipX:_0x55b45a,flipY:_0xb0a770,angle:_0x5c0166=0x0}=_0x24da2b;if(_0x3ad884===void 0x0||_0x30a980===void 0x0)return;let _0x59b6e8=this[_0x556890(0x3cf)](this[_0x556890(0x202)],this[_0x556890(0x229)],this['_activeImageId']);if(!_0x59b6e8)return;if(_0x7d5bab){let _0x9c136=this[_0x556890(0x129)](_0x59b6e8[_0x556890(0x2f0)],_0x1da1aa||0x0,_0x232569||0x0,_0x59b6e8[_0x556890(0x1e0)]);if(!_0x9c136)return;this[_0x556890(0x32d)]=_0x9c136[_0x556890(0x386)]();}let _0x4d5c93=this[_0x556890(0x32d)];if(_0x4d5c93&&_0x4d5c93[_0x556890(0x23c)]!==0x0)for(let _0x4b4d71=0x0;_0x4b4d71<_0x4d5c93['length'];_0x4b4d71++){let _0x33ce45=_0x4d5c93[_0x4b4d71],_0x6a37f4=_0x33ce45['x'],_0x38a429=_0x33ce45['y'];if(_0x55b45a&&(_0x6a37f4=(_0x1da1aa||0x0)-_0x6a37f4),_0xb0a770&&(_0x38a429=(_0x232569||0x0)-_0x38a429),_0x5c0166!==0x0){let _0x1594d4=(_0x1da1aa||0x0)/0x2,_0xe74fdd=(_0x232569||0x0)/0x2,_0x30e4ff=_0x5c0166*Math['PI']/0xb4,_0x2ea74d=Math[_0x556890(0x380)](_0x30e4ff),_0xdc2704=Math['sin'](_0x30e4ff),_0x3a0b05=_0x6a37f4-_0x1594d4,_0x562a31=_0x38a429-_0xe74fdd;_0x6a37f4=_0x1594d4+(_0x3a0b05*_0x2ea74d-_0x562a31*_0xdc2704),_0x38a429=_0xe74fdd+(_0x3a0b05*_0xdc2704+_0x562a31*_0x2ea74d);}let _0x47ce69={'x':_0x6a37f4,'y':_0x38a429,'adjName':_0x33ce45[_0x556890(0x34a)]};this[_0x556890(0x1f0)](_0x8eeed5,_0x47ce69,_0x47ce69[_0x556890(0x34a)],_0x3ad884,_0x30a980,this[_0x556890(0x202)],this[_0x556890(0x229)]);}}[_0x38e982(0x1f0)](_0x5ad3ce,_0x468e12,_0x225d2f,_0x49fc4a,_0x42ecf6,_0x1957c5,_0x24a586){const _0x4e6470=_0x38e982;if(!this[_0x4e6470(0x21e)])return;let _0x2f9775='image-clip-adjust-point-'+this['_activeImageId']+'-'+_0x225d2f,_0x57097a=_0x5ad3ce[_0x4e6470(0x260)](_0x2f9775);if(_0x57097a){_0x57097a['transformByState']({'left':_0x468e12['x']+_0x49fc4a-_0x436eb7['adjHandleSize'],'top':_0x468e12['y']+_0x42ecf6-_0x436eb7[_0x4e6470(0x367)]});return;}let _0x14a3bc=new Xr(_0x2f9775,{'left':_0x468e12['x']+_0x49fc4a-_0x436eb7['adjHandleSize'],'top':_0x468e12['y']+_0x42ecf6-_0x436eb7[_0x4e6470(0x367)],'adjName':_0x225d2f,'shapeId':this[_0x4e6470(0x21e)],'unitId':_0x1957c5,'subUnitId':_0x24a586,'width':_0x436eb7[_0x4e6470(0x367)]+0x8,'height':_0x436eb7[_0x4e6470(0x367)]+0x8,'zIndex':_0x5c1c17+0x1,'evented':!0x0});this[_0x4e6470(0x3a0)][_0x4e6470(0x21d)](_0x14a3bc),this['_attachAdjustEvent'](_0x14a3bc,_0x5ad3ce,_0x225d2f),_0x5ad3ce[_0x4e6470(0x22c)](_0x14a3bc,_0x5c1c17+0x1);}[_0x38e982(0x3ce)](){const _0x20a31e=_0x38e982;this[_0x20a31e(0x3a0)]['length']!==0x0&&(this[_0x20a31e(0x3a0)][_0x20a31e(0x2a5)](_0x4fc26d=>_0x4fc26d[_0x20a31e(0x39d)]()),this[_0x20a31e(0x3a0)]=[]);}[_0x38e982(0x310)](_0x219e13,_0x2f2396){const _0x154f37=_0x38e982;var _0x205d5c;let _0x57f25c={'x':0x0,'y':0x0},_0x27de36=this[_0x154f37(0x3a5)]['getRenderUnitById'](_0x219e13);if(!_0x27de36||!_0x27de36[_0x154f37(0x24f)](_0x151dc3)[_0x154f37(0x17d)](_0x2f2396))return _0x57f25c;let _0x55f551=_0x27de36['with'](_0x4c002e),_0x4e1b97=_0x55f551==null?void 0x0:_0x55f551[_0x154f37(0x391)]();if(!_0x4e1b97)return _0x57f25c;let _0x5a3e27=(_0x205d5c=this[_0x154f37(0x23f)]['getUnit'](_0x219e13))==null?void 0x0:_0x205d5c[_0x154f37(0x265)](_0x2f2396);if(!_0x5a3e27)return _0x57f25c;let _0x5ad0d1=_0x1aea05(_0x4e1b97[_0x154f37(0x1e6)],_0x4e1b97['sheetViewStartColumn'],_0x27de36[_0x154f37(0x313)],_0x5a3e27);return _0x5ad0d1?{'x':_0x5ad0d1[_0x154f37(0x245)],'y':_0x5ad0d1['viewportScrollY']}:_0x57f25c;}['_getZoomRatio'](_0x16a508,_0x514fe6){const _0x4310b5=_0x38e982;var _0x4a1e78;let _0x39b300=(_0x4a1e78=this[_0x4310b5(0x23f)]['getUnit'](_0x16a508))==null?void 0x0:_0x4a1e78[_0x4310b5(0x265)](_0x514fe6);return(_0x39b300==null?void 0x0:_0x39b300['getZoomRatio']())??0x1;}[_0x38e982(0x18c)](_0x2be08b,_0x5134eb,_0x41b020){const _0xdd9390=_0x38e982;this[_0xdd9390(0x1b0)](_0x3cb981(_0x2be08b[_0xdd9390(0x149)][_0xdd9390(0x29b)]((_0x562749,_0x2cb1ca)=>{const _0xaa59cf=_0xdd9390;var _0xf81e28,_0x3b59e4,_0x1c877c;let {unitId:_0x3e7565,subUnitId:_0x5456f4,drawingId:_0x53208e}=_0x2be08b[_0xaa59cf(0x1d1)](),_0x399f4f=this[_0xaa59cf(0x343)](_0x3e7565,_0x5456f4,_0x53208e);if(!(_0x399f4f!=null&&_0x399f4f['transform']))return;let {left:_0x1962e6,top:_0x15174c,width:_0x1182ea,height:_0x288546}=_0x399f4f[_0xaa59cf(0x3d2)];this[_0xaa59cf(0x13f)]=_0x1962e6||0x0,this[_0xaa59cf(0x10f)]=_0x15174c||0x0,this[_0xaa59cf(0x2da)]=_0x1182ea||0x0,this[_0xaa59cf(0x2fb)]=_0x288546||0x0;let _0x104ad3=!!((_0xf81e28=_0x399f4f[_0xaa59cf(0x3d2)])!=null&&_0xf81e28[_0xaa59cf(0x1f4)]),_0x25e8d8=!!((_0x3b59e4=_0x399f4f['transform'])!=null&&_0x3b59e4[_0xaa59cf(0x175)]),_0x501fac=((_0x1c877c=_0x399f4f[_0xaa59cf(0x3d2)])==null?void 0x0:_0x1c877c['angle'])||0x0,_0x2b9e9b=this[_0xaa59cf(0x3cf)](_0x3e7565,_0x5456f4,_0x53208e);if(!_0x2b9e9b)return;let _0x24753b=this[_0xaa59cf(0x129)](_0x2b9e9b[_0xaa59cf(0x2f0)],this[_0xaa59cf(0x2da)],this[_0xaa59cf(0x2fb)],_0x2b9e9b[_0xaa59cf(0x1e0)]);if(!_0x24753b||(this[_0xaa59cf(0x350)]=_0x24753b,this[_0xaa59cf(0x26f)]=_0x24753b[_0xaa59cf(0x1b5)](_0x41b020),!this[_0xaa59cf(0x26f)]))return;this[_0xaa59cf(0x357)]=!0x0,_0x5134eb[_0xaa59cf(0x20e)]();let _0xf49886=_0x2b9e9b[_0xaa59cf(0x2f0)];this['_adjHandlerPointerMove']=_0x5134eb[_0xaa59cf(0x23e)][_0xaa59cf(0x29b)]((_0x4bdffb,_0x2350aa)=>{const _0x595444=_0xaa59cf;if(!this['_isStartAdjusting'])return;let {offsetX:_0x3aa656,offsetY:_0x4054a4}=_0x4bdffb,_0x51ca6d=this['_activeAdjustInfo'];if(!this[_0x595444(0x350)]||!_0x51ca6d)return;_0x5134eb[_0x595444(0x20e)](),_0x5134eb['setCursor'](_0x126c60[_0x595444(0x1fc)]);let _0x52259c={'left':0x0,'top':0x0,'width':this[_0x595444(0x2da)],'height':this[_0x595444(0x2fb)]},_0x5450f9=this[_0x595444(0x310)](_0x3e7565,_0x5456f4),_0x4c752e=this[_0x595444(0x2cb)](_0x3e7565,_0x5456f4),_0x232c41=_0x3aa656/_0x4c752e+_0x5450f9['x']-this[_0x595444(0x13f)],_0x4cd55e=_0x4054a4/_0x4c752e+_0x5450f9['y']-this[_0x595444(0x10f)];if(_0x501fac!==0x0){let _0x11df6c=this[_0x595444(0x2da)]/0x2,_0x25421a=this[_0x595444(0x2fb)]/0x2,_0x221639=_0x501fac*Math['PI']/0xb4,_0x479c06=Math[_0x595444(0x380)](_0x221639),_0xaea176=Math[_0x595444(0x3a2)](_0x221639),_0x189728=_0x232c41-_0x11df6c,_0x412128=_0x4cd55e-_0x25421a;_0x232c41=_0x11df6c+(_0x189728*_0x479c06+_0x412128*_0xaea176),_0x4cd55e=_0x25421a+(-_0x189728*_0xaea176+_0x412128*_0x479c06);}_0x104ad3&&(_0x232c41=this[_0x595444(0x2da)]-_0x232c41),_0x25e8d8&&(_0x4cd55e=this[_0x595444(0x2fb)]-_0x4cd55e);let _0x30a826=this[_0x595444(0x350)][_0x595444(0x130)](_0x52259c,{'x':_0x232c41,'y':_0x4cd55e},_0x51ca6d,_0x104ad3,_0x25e8d8);if(Object[_0x595444(0x34e)](_0x30a826)[_0x595444(0x23c)]!==0x0){for(let [_0x3e4739,_0xa18070]of Object[_0x595444(0x128)](_0x30a826))this[_0x595444(0x350)][_0x595444(0x285)](_0x3e4739,_0xa18070);this[_0x595444(0x350)][_0x595444(0x276)]({'width':this[_0x595444(0x2da)],'height':this[_0x595444(0x2fb)]}),this[_0x595444(0x2e7)](_0x3e7565,_0x5456f4,_0x53208e,_0x30a826),this['_activeAdjustPointList']=this[_0x595444(0x350)][_0x595444(0x386)](),this[_0x595444(0x3ac)](),_0x2350aa[_0x595444(0x286)]();}}),this[_0xaa59cf(0x1bd)]=_0x5134eb[_0xaa59cf(0x15e)]['subscribeEvent']((_0x46efb3,_0x3935f5)=>{const _0xd37f9a=_0xaa59cf;if(this['_adjHandlerPointerMove']['unsubscribe'](),this[_0xd37f9a(0x1bd)][_0xd37f9a(0x3df)](),_0x5134eb[_0xd37f9a(0x239)](),this[_0xd37f9a(0x350)]){let _0x15cd2c=this[_0xd37f9a(0x350)][_0xd37f9a(0x2c8)](),_0x549a87={};for(let _0x31434f of _0x15cd2c){let _0x2cc1cb=this[_0xd37f9a(0x350)][_0xd37f9a(0x191)](_0x31434f);_0x2cc1cb!==void 0x0&&(_0x549a87[_0x31434f]=_0x2cc1cb);}this[_0xd37f9a(0x1f1)]['clipByShape'](_0x3e7565,_0x5456f4,_0x53208e,_0xf49886,_0x549a87);}this[_0xd37f9a(0x26f)]=void 0x0,this[_0xd37f9a(0x350)]=void 0x0,this[_0xd37f9a(0x357)]=!0x1,_0x3935f5[_0xd37f9a(0x286)](),_0x5134eb[_0xd37f9a(0x192)]();}),_0x2cb1ca[_0xaa59cf(0x286)]();})));}[_0x38e982(0x2e7)](_0x89e46c,_0x57a2ae,_0x7ffd59,_0x5e8636){const _0x3944ef=_0x38e982;let _0x8678d5=this[_0x3944ef(0x3a5)][_0x3944ef(0x37e)](_0x89e46c);if(!_0x8678d5)return;let {scene:_0x191a18}=_0x8678d5,_0x300c27=_0x306bd8({'unitId':_0x89e46c,'subUnitId':_0x57a2ae,'drawingId':_0x7ffd59}),_0x29ecbd=_0x191a18[_0x3944ef(0x150)](_0x300c27);if(_0x29ecbd instanceof _0x21c6ff){let _0x51272c=_0x29ecbd[_0x3944ef(0x19a)]??{};_0x29ecbd['setPrstGeomAdjValues']({..._0x51272c,..._0x5e8636}),_0x29ecbd[_0x3944ef(0x2a6)](!0x0);}}[_0x38e982(0x388)](){const _0x4c3d75=_0x38e982;let _0x4bdb17=this['_univerInstanceService'][_0x4c3d75(0x30c)](_0x19c9b9['UNIVER_SHEET']);this[_0x4c3d75(0x1b0)](_0x4bdb17[_0x4c3d75(0x1fd)](_0x1b4a14(_0x1153ef=>_0x1153ef?_0x1153ef[_0x4c3d75(0x2fa)]['pipe'](_0x1b4a14(_0xf73c72=>{const _0x540da6=_0x4c3d75;if(!_0xf73c72)return _0x1d5ee8;let _0x1308a4=_0x1153ef[_0x540da6(0x1cc)](),_0x13d1c8=this[_0x540da6(0x3a5)]['getRenderUnitById'](_0x1308a4),_0x4e4049=_0x13d1c8==null?void 0x0:_0x13d1c8[_0x540da6(0x313)];return _0x4e4049?_0x402dea(_0x4e4049):_0x1d5ee8;})):_0x1d5ee8))[_0x4c3d75(0x335)](_0x29ffac=>{const _0x51207f=_0x4c3d75;let _0x34138d=_0x29ffac[_0x51207f(0x294)]();this[_0x51207f(0x1b0)](_0x29ffac[_0x51207f(0x23e)][_0x51207f(0x29b)](()=>{const _0x3ba3f5=_0x51207f;this[_0x3ba3f5(0x329)]&&this[_0x3ba3f5(0x3ce)]();})),this[_0x51207f(0x1b0)](_0x34138d['changeStart$'][_0x51207f(0x335)](_0x5ab86e=>{const _0x3c3588=_0x51207f;let {objects:_0x39a813}=_0x5ab86e;if(this['_createControls'](),_0x39a813!==null&&_0x39a813[_0x3c3588(0x28b)]===0x1){let _0x2f8335=_0x39a813['values']()[_0x3c3588(0x267)]()['value'];_0x2f8335 instanceof _0x21c6ff&&_0x2f8335[_0x3c3588(0x2f0)]&&(this[_0x3c3588(0x329)]=!0x0);}})),this['disposeWithMe'](_0x34138d['changing$']['subscribe'](()=>{const _0x463ca6=_0x51207f;this['_isImagePointerDown']&&this[_0x463ca6(0x3ce)]();})),this[_0x51207f(0x1b0)](_0x29ffac[_0x51207f(0x15e)]['subscribeEvent'](()=>{const _0x390a1c=_0x51207f;this[_0x390a1c(0x329)]&&(this[_0x390a1c(0x329)]=!0x1,this[_0x390a1c(0x3ac)]());})),this[_0x51207f(0x1b0)](_0x34138d['changeEnd$']['subscribe'](()=>{const _0x469fb1=_0x51207f;if(this[_0x469fb1(0x202)]&&this[_0x469fb1(0x229)]&&this['_activeImageId']){let _0xdff4a=this['_getImagePrstGeom'](this[_0x469fb1(0x202)],this[_0x469fb1(0x229)],this[_0x469fb1(0x21e)]);if(_0xdff4a){var _0x3f94ee,_0x511718;let _0x52f696=this[_0x469fb1(0x343)](this[_0x469fb1(0x202)],this[_0x469fb1(0x229)],this['_activeImageId']),_0x265446=(_0x52f696==null||(_0x3f94ee=_0x52f696[_0x469fb1(0x3d2)])==null?void 0x0:_0x3f94ee[_0x469fb1(0x304)])||0x0,_0x10df3b=(_0x52f696==null||(_0x511718=_0x52f696[_0x469fb1(0x3d2)])==null?void 0x0:_0x511718[_0x469fb1(0x204)])||0x0,_0x4f1f7d=this[_0x469fb1(0x129)](_0xdff4a[_0x469fb1(0x2f0)],_0x265446,_0x10df3b,_0xdff4a[_0x469fb1(0x1e0)]);_0x4f1f7d&&(this[_0x469fb1(0x32d)]=_0x4f1f7d[_0x469fb1(0x386)](),this[_0x469fb1(0x3ce)](),this[_0x469fb1(0x3ac)](!0x0));}}}));}));}[_0x38e982(0x2b0)](){const _0x4f52c0=_0x38e982;this[_0x4f52c0(0x1b0)](this[_0x4f52c0(0x342)][_0x4f52c0(0x1a8)][_0x4f52c0(0x335)](_0x45ff46=>{const _0x21de65=_0x4f52c0;if(_0x45ff46[_0x21de65(0x23c)]===0x1){let _0x58b7b1=_0x45ff46[0x0];if(_0x58b7b1[_0x21de65(0x3bd)]===_0x1afd9e['DRAWING_IMAGE']){let {unitId:_0x2f1838,subUnitId:_0x48aeae,drawingId:_0x43215b}=_0x58b7b1,_0x24a842=this[_0x21de65(0x3cf)](_0x2f1838,_0x48aeae,_0x43215b);if(_0x24a842){var _0x3b3fb2,_0x1fb536;this[_0x21de65(0x21e)]=_0x43215b,this[_0x21de65(0x202)]=_0x2f1838,this[_0x21de65(0x229)]=_0x48aeae;let _0x1d5136=this[_0x21de65(0x343)](_0x2f1838,_0x48aeae,_0x43215b),_0x13b56f=(_0x1d5136==null||(_0x3b3fb2=_0x1d5136[_0x21de65(0x3d2)])==null?void 0x0:_0x3b3fb2[_0x21de65(0x304)])||0x0,_0x3ef8e1=(_0x1d5136==null||(_0x1fb536=_0x1d5136[_0x21de65(0x3d2)])==null?void 0x0:_0x1fb536['height'])||0x0,_0x3919b0=this[_0x21de65(0x129)](_0x24a842['prstGeom'],_0x13b56f,_0x3ef8e1,_0x24a842[_0x21de65(0x1e0)]);_0x3919b0&&(this[_0x21de65(0x32d)]=_0x3919b0[_0x21de65(0x386)]()),this[_0x21de65(0x3ce)](),this['_createControls'](!0x0);}else this[_0x21de65(0x2aa)]();}else this['_resetState']();}else this[_0x21de65(0x2aa)]();})),this[_0x4f52c0(0x1b0)](this[_0x4f52c0(0x342)]['update$'][_0x4f52c0(0x335)](_0x573585=>{const _0x4a420f=_0x4f52c0;if(_0x573585[_0x4a420f(0x23c)]===0x1){let _0xec06d7=_0x573585[0x0],_0x2d600b=this[_0x4a420f(0x342)][_0x4a420f(0x254)](_0xec06d7);(_0x2d600b==null?void 0x0:_0x2d600b[_0x4a420f(0x3bd)])===_0x1afd9e[_0x4a420f(0x2d9)]&&this['_activeImageId']===_0xec06d7['drawingId']&&(this['_clearControls'](),this[_0x4a420f(0x3ac)](!0x0));}})),this['disposeWithMe'](this[_0x4f52c0(0x342)][_0x4f52c0(0x1a6)][_0x4f52c0(0x335)](_0x278251=>{const _0x5b69f9=_0x4f52c0;for(let _0x3758bd of _0x278251)this[_0x5b69f9(0x21e)]===_0x3758bd[_0x5b69f9(0x36f)]&&this[_0x5b69f9(0x2aa)]();}));}['_resetState'](){const _0x2c8255=_0x38e982;this[_0x2c8255(0x21e)]=null,this[_0x2c8255(0x202)]=null,this[_0x2c8255(0x229)]=null,this[_0x2c8255(0x32d)]=void 0x0,this[_0x2c8255(0x3ce)]();}};ha=X([Y(0x1,_0x457af4),Y(0x2,_0x304d45(_0x1fc6ff)),Y(0x3,_0x5789bf),Y(0x4,_0x304d45(Q))],ha);function ga({PanelComponent:_0x46b23d=_0x573685}){const _0xd271be=_0x38e982;var _0x49dacc;function _0x1e00cc(_0x57a8d1){const _0x29d664=_0x2e49;return _0x57a8d1[_0x29d664(0x1f6)]()||void 0x0;}function _0x46e342(_0x1b5d10,_0x2cb62a,_0xeeb7d2){const _0x4537cb=_0x2e49;var _0x300024;return((_0x300024=_0x1b5d10['name'])==null?void 0x0:_0x300024[_0x4537cb(0x1f6)]())||_0xeeb7d2['t']('drawing-ui.objectListPanel.typeNames.'+_0x492f89(_0x1b5d10[_0x4537cb(0x3bd)]))+'\x20'+(_0x2cb62a+0x1);}let _0xa34d6f=_0x459a0a(_0x1180ec),_0x250739={'title':_0xa34d6f['t'](_0xd271be(0x187)),'empty':_0xa34d6f['t'](_0xd271be(0x18d)),'showAll':_0xa34d6f['t'](_0xd271be(0x1d6)),'hideAll':_0xa34d6f['t'](_0xd271be(0x3e8)),'lockAll':_0xa34d6f['t']('drawing-ui.objectListPanel.lockAll'),'unlockAll':_0xa34d6f['t'](_0xd271be(0x3a8)),'moveForward':_0xa34d6f['t'](_0xd271be(0x394)),'moveBackward':_0xa34d6f['t'](_0xd271be(0x3ae)),'close':_0xa34d6f['t']('drawing-ui.objectListPanel.close'),'show':_0xa34d6f['t'](_0xd271be(0x240)),'hide':_0xa34d6f['t']('drawing-ui.objectListPanel.hide'),'lock':_0xa34d6f['t'](_0xd271be(0x1ec)),'unlock':_0xa34d6f['t'](_0xd271be(0x2c1)),'lockHint':_0xa34d6f['t']('drawing-ui.objectListPanel.lockHint'),'unlockHint':_0xa34d6f['t']('drawing-ui.objectListPanel.unlockHint'),'name':_0xa34d6f['t'](_0xd271be(0x15d)),'nameInput':_0xa34d6f['t'](_0xd271be(0x136)),'description':_0xa34d6f['t'](_0xd271be(0x1ee)),'descriptionPlaceholder':_0xa34d6f['t'](_0xd271be(0x21b)),'details':_0xa34d6f['t']('drawing-ui.objectListPanel.details'),'noSelection':_0xa34d6f['t'](_0xd271be(0x224)),'locate':_0xa34d6f['t'](_0xd271be(0x28d)),'expand':_0xa34d6f['t'](_0xd271be(0x2ba)),'collapse':_0xa34d6f['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0xa34d6f['t'](_0xd271be(0x14a)),'search':_0xa34d6f['t'](_0xd271be(0x24a)),'filterAll':_0xa34d6f['t'](_0xd271be(0x268)),'filterHidden':_0xa34d6f['t'](_0xd271be(0x3de)),'filterLocked':_0xa34d6f['t'](_0xd271be(0x215)),'sectionCanvas':_0xa34d6f['t'](_0xd271be(0x155)),'sectionFloating':_0xa34d6f['t'](_0xd271be(0x390))},_0x40392c=_0x459a0a(_0x5aac1e),_0x4ba5f0=_0x459a0a(_0x5789bf),_0x18d427=_0x459a0a(_0x1f9cb1),_0x6ad1b4=_0x459a0a(_0x457af4),_0x45209a=_0x459a0a(_0x1fc6ff),_0xa91014=_0x459a0a(_0x38c109),[,_0x4147f0]=_0x5c57ec(_0x58bb83=>_0x58bb83+0x1,0x0),_0x242e7b=_0x4ba5f0[_0xd271be(0x24d)](_0x19c9b9[_0xd271be(0x2b6)]),_0x5cbece=(_0x242e7b==null?void 0x0:_0x242e7b[_0xd271be(0x1cc)]())??'',_0x1bb5f3=(_0x242e7b==null||(_0x49dacc=_0x242e7b[_0xd271be(0x37c)]())==null?void 0x0:_0x49dacc['getSheetId']())??'',_0x3b69f1=_0x3f5135(()=>_0x6ad1b4[_0xd271be(0x1a8)],_0x6ad1b4[_0xd271be(0x212)](),!0x1,[_0x6ad1b4]);_0x6e1245(()=>{const _0x366a1e=_0xd271be;let _0x1c9e19=_0x40392c[_0x366a1e(0x325)](()=>_0x4147f0());return()=>_0x1c9e19[_0x366a1e(0x39d)]();},[_0x40392c]);let _0x30f3e5=_0x5cbece&&_0x1bb5f3?_0x18d427[_0xd271be(0x39a)](_0x5cbece,_0x1bb5f3):{},_0x4b83e3=(_0x5cbece&&_0x1bb5f3?_0x18d427['getDrawingOrder'](_0x5cbece,_0x1bb5f3):[])[_0xd271be(0x298)](_0x243a03=>_0x30f3e5[_0x243a03])[_0xd271be(0x2d3)](_0x3e980e=>!!_0x3e980e)[_0xd271be(0x200)](),_0x294cc8=_0x4b83e3[_0xd271be(0x327)]((_0x45424c,_0x383ee8)=>(_0x45424c[_0xb31f3d(_0x383ee8[_0xd271be(0x3bd)])]+=0x1,_0x45424c),{'canvas':0x0,'floating':0x0}),_0x453f99={'canvas':0x0,'floating':0x0},_0x442cd0=_0x4b83e3[_0xd271be(0x298)]((_0xf47ed3,_0x25ae54)=>{const _0x20a807=_0xd271be;let _0x374aab=_0xb31f3d(_0xf47ed3[_0x20a807(0x3bd)]),_0x34d945=_0x374aab===_0x337c00,_0x572f64=_0x453f99[_0x374aab]++;return{'id':_0xf47ed3[_0x20a807(0x36f)],'name':_0x46e342(_0xf47ed3,_0x25ae54,_0xa34d6f),'description':_0xf47ed3['description'],'visible':_0xf47ed3[_0x20a807(0x146)]!==!0x0,'selectable':_0xf47ed3[_0x20a807(0x361)]!==!0x1,'sectionId':_0x374aab,'sectionTitle':_0x34d945?_0x250739['sectionFloating']:_0x250739['sectionCanvas'],'capabilities':_0x34d945?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x34d945&&_0x572f64>0x0,'canMoveBackward':!_0x34d945&&_0x572f64<_0x294cc8[_0x20a807(0x25f)]-0x1,'canReorder':!_0x34d945};}),_0x421000=_0x2e7dde(()=>(_0x3b69f1??[])['filter'](_0xc351a2=>_0xc351a2[_0xd271be(0x3d6)]===_0x5cbece&&_0xc351a2['subUnitId']===_0x1bb5f3)[_0xd271be(0x298)](_0x2c8a6e=>_0x2c8a6e[_0xd271be(0x36f)]),[_0x3b69f1,_0x1bb5f3,_0x5cbece]),_0x2417a2=_0x421000[_0x421000[_0xd271be(0x23c)]-0x1]??null,_0x2eff7d=_0x3ac01d=>_0x18d427[_0xd271be(0x254)]({'unitId':_0x5cbece,'subUnitId':_0x1bb5f3,'drawingId':_0x3ac01d})??null,_0x120b7=async _0xea42b=>{const _0x24786e=_0xd271be;_0x5cbece&&_0xea42b[_0x24786e(0x23c)]&&await _0x40392c[_0x24786e(0x190)](_0x438f96['id'],{'unitId':_0x5cbece,'drawings':_0xea42b});},_0x57e3d6=async(_0xe85e5a,_0x584814)=>{_0x2eff7d(_0xe85e5a)&&await _0x120b7([{'unitId':_0x5cbece,'subUnitId':_0x1bb5f3,'drawingId':_0xe85e5a,..._0x584814}]);},_0x4c53c4=(_0x23d060,_0x52af9d)=>{const _0x764086=_0xd271be;if(!_0x5cbece||!_0x1bb5f3)return;let _0x759b49=_0x52af9d?_0x421000[_0x764086(0x2ac)](_0x23d060)?_0x421000[_0x764086(0x2d3)](_0x526832=>_0x526832!==_0x23d060):[..._0x421000,_0x23d060]:[_0x23d060];_0x40392c[_0x764086(0x2f7)](_0x55fd78['id'],_0x759b49[_0x764086(0x298)](_0x23580b=>({'unitId':_0x5cbece,'subUnitId':_0x1bb5f3,'drawingId':_0x23580b})));let _0x543eec=_0x759b49[_0x759b49['length']-0x1];_0x543eec?(_0x9e13b2(_0x45209a,{'unitId':_0x5cbece,'subUnitId':_0x1bb5f3,'drawingId':_0x543eec}),_0xa91014[_0x764086(0x10e)](_0x5cbece)):_0x538fda(_0x45209a,_0x5cbece);},_0x112295=async(_0x5b1c64,_0x5abbaf)=>{const _0x39b552=_0xd271be;await _0x120b7(_0x5b1c64['map'](_0xc906b1=>_0x2eff7d(_0xc906b1))[_0x39b552(0x2d3)](_0x1894eb=>!!_0x1894eb)['filter'](_0x21a06f=>_0x21a06f[_0x39b552(0x146)]!==!0x0!==_0x5abbaf)[_0x39b552(0x298)](_0x36c224=>({'unitId':_0x5cbece,'subUnitId':_0x1bb5f3,'drawingId':_0x36c224['drawingId'],'hidden':!_0x5abbaf})));},_0x32ef3f=async(_0x951d1d,_0x1d7d29)=>{const _0x1f1590=_0xd271be;await _0x120b7(_0x951d1d[_0x1f1590(0x298)](_0x454d64=>_0x2eff7d(_0x454d64))['filter'](_0x54e169=>!!_0x54e169)['filter'](_0x57eeb6=>_0x57eeb6[_0x1f1590(0x361)]!==!0x1!==_0x1d7d29)[_0x1f1590(0x298)](_0x5b22c9=>({'unitId':_0x5cbece,'subUnitId':_0x1bb5f3,'drawingId':_0x5b22c9['drawingId'],'selectable':_0x1d7d29})));},_0x37ce8f=_0x4165c3=>{const _0x33d2e9=_0xd271be;let _0x9acbea=_0x2eff7d(_0x4165c3);if(_0x9acbea)return _0x32ef3f([_0x4165c3],_0x9acbea[_0x33d2e9(0x361)]===!0x1);},_0x3d11f1=async(_0x19b802,_0x57ad27)=>{var _0x25a768;let _0x249a81=_0x1e00cc(_0x57ad27);(((_0x25a768=_0x2eff7d(_0x19b802))==null?void 0x0:_0x25a768['name'])??void 0x0)!==_0x249a81&&await _0x57e3d6(_0x19b802,{'name':_0x249a81});},_0xc90856=async(_0x2af08e,_0x27a927)=>{const _0x173565=_0xd271be;var _0x38aa16;let _0x65a132=_0x1e00cc(_0x27a927);(((_0x38aa16=_0x2eff7d(_0x2af08e))==null?void 0x0:_0x38aa16[_0x173565(0x2ab)])??void 0x0)!==_0x65a132&&await _0x57e3d6(_0x2af08e,{'description':_0x65a132});},_0x38b3d8=async(_0x51a442,_0x2aa0e6)=>{const _0x4a4b20=_0xd271be;_0x5cbece&&_0x1bb5f3&&await _0x40392c[_0x4a4b20(0x190)](_0x3cad82['id'],{'unitId':_0x5cbece,'subUnitId':_0x1bb5f3,'drawingIds':[_0x51a442],'arrangeType':_0x2aa0e6});};return!_0x5cbece||!_0x1bb5f3?_0xbd5fef(_0xd271be(0x3aa),{'className':_0xd271be(0x309),'children':_0x250739[_0xd271be(0x145)]}):_0xbd5fef(_0x46b23d,{'labels':_0x250739,'items':_0x442cd0,'selectedIds':_0x421000,'focusedId':_0x2417a2,'showHeader':!0x1,'onSelect':_0x4c53c4,'onSetVisible':_0x112295,'onSetSelectable':_0x32ef3f,'onCommitName':_0x3d11f1,'onCommitDescription':_0xc90856,'onMoveForward':async _0x2143da=>_0x38b3d8(_0x2143da,_0x42ada2[_0xd271be(0x13c)]),'onMoveBackward':async _0x4bb2ae=>_0x38b3d8(_0x4bb2ae,_0x42ada2[_0xd271be(0x296)]),'onToggleSelectable':_0x37ce8f});}function _a(){return _0xbd5fef(ga,{'PanelComponent':_0x5f75fd});}let va=class extends _0x942aec{constructor(_0x5af384,_0x2da07d){const _0xedbb7=_0x38e982;super(),this['disposeWithMe'](_0x5af384['register'](ti,_a)),this[_0xedbb7(0x1b0)](_0x2da07d[_0xedbb7(0x206)]({'BottomIcon':_0x5d3fb9,'FlipHorizontalIcon':_0x332ddb,'FlipVerticalIcon':_0x1b633e,'MoveDownIcon':_0x5ac96f,'MoveUpIcon':_0x415dfc,'ObjectLayersIcon':_0x28a4bd,'ShapeFormatSettingIcon':_0x323ccb,'TopmostIcon':_0x3d647d})),this[_0xedbb7(0x1b0)](_0x5af384[_0xedbb7(0x206)](di,vi)),this[_0xedbb7(0x1b0)](_0x5af384[_0xedbb7(0x206)](fi,hi)),_0x5af384[_0xedbb7(0x2e8)](_0x768cfe)||this[_0xedbb7(0x1b0)](_0x5af384[_0xedbb7(0x206)](_0x768cfe,gi));}};va=X([Y(0x0,_0x304d45(_0x5a4631)),Y(0x1,_0x304d45(_0x26766a))],va);let $=class extends _0x942aec{constructor(_0x33c50d){const _0x41886c=_0x38e982;super(),this[_0x41886c(0x2f1)]=_0x33c50d,q(this,_0x41886c(0x333),new _0x5384bc(null)),q(this,_0x41886c(0x172),this[_0x41886c(0x333)][_0x41886c(0x289)]()),q(this,_0x41886c(0x275),new _0x5384bc(!0x1)),q(this,_0x41886c(0x2fe),this['_onSavingEditorData$'][_0x41886c(0x289)]()),q(this,_0x41886c(0x1c3),void 0x0),this[_0x41886c(0x1b0)](this['_permissionService']['permissionPointUpdate$'][_0x41886c(0x335)](()=>{const _0x43ebf8=_0x41886c;let _0x193ccc=this[_0x43ebf8(0x3bb)]();_0x193ccc!=null&&_0x193ccc[_0x43ebf8(0x205)]&&!this[_0x43ebf8(0x30f)](_0x193ccc)&&this['setEditing'](null);}));}[_0x38e982(0x39d)](){const _0x36b0c1=_0x38e982;this[_0x36b0c1(0x278)](),this[_0x36b0c1(0x333)][_0x36b0c1(0x267)](null),this['_editingParams$'][_0x36b0c1(0x353)](),this['_onSavingEditorData$']['next'](!0x1),this[_0x36b0c1(0x275)]['complete'](),super['dispose']();}[_0x38e982(0x221)](_0x43b919){const _0x3a3bc9=_0x38e982;(_0x43b919==null||!_0x43b919[_0x3a3bc9(0x205)]||this[_0x3a3bc9(0x30f)](_0x43b919))&&(this['_clearCompletionFrame'](),this[_0x3a3bc9(0x333)][_0x3a3bc9(0x267)](_0x43b919),(_0x43b919==null||_0x43b919[_0x3a3bc9(0x205)]&&this[_0x3a3bc9(0x275)][_0x3a3bc9(0x22a)]())&&this['_onSavingEditorData$'][_0x3a3bc9(0x267)](!0x1));}[_0x38e982(0x25e)](_0x3288d7){this['_onSavingEditorData$']['next'](_0x3288d7);}['getEditing'](){const _0x1c48b1=_0x38e982;return this[_0x1c48b1(0x333)][_0x1c48b1(0x22a)]();}['_canEdit'](_0xa684ce){const _0x2c7afb=_0x38e982;let _0x4dbe91=this['_permissionService']['getPermissionPoint'](new _0x5d4362(_0xa684ce[_0x2c7afb(0x3d6)])['id']),_0x2e8234=this['_permissionService']['getPermissionPoint'](new _0x2cc33f(_0xa684ce['unitId'],_0xa684ce[_0x2c7afb(0x2a0)])['id']);return((_0x4dbe91==null?void 0x0:_0x4dbe91['value'])??!0x0)&&((_0x2e8234==null?void 0x0:_0x2e8234[_0x2c7afb(0x134)])??!0x0);}['completeEditing'](_0x135429){const _0x3af532=_0x38e982;let _0x3811c3=this[_0x3af532(0x3bb)]();_0x3811c3&&this[_0x3af532(0x1c3)]===void 0x0&&(this[_0x3af532(0x25e)](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x544f68=_0x3af532;this[_0x544f68(0x1c3)]=void 0x0,this[_0x544f68(0x3bb)]()===_0x3811c3&&this['setEditing'](null);}));}[_0x38e982(0x278)](){const _0x1b6a58=_0x38e982;this[_0x1b6a58(0x1c3)]!==void 0x0&&(cancelAnimationFrame(this[_0x1b6a58(0x1c3)]),this[_0x1b6a58(0x1c3)]=void 0x0);}[_0x38e982(0x2df)](){const _0x1f8c79=_0x38e982;this[_0x1f8c79(0x3bb)]()&&this[_0x1f8c79(0x221)](null);}};$=X([Y(0x0,_0x33574c)],$);let ya=class extends _0x942aec{constructor(_0x2b86f0,_0x5aa367,_0x3ab398,_0x57af8e,_0x50d125,_0x51500c){const _0x51ce2d=_0x38e982;super(),this[_0x51ce2d(0x18a)]=_0x2b86f0,this['_injector']=_0x5aa367,this[_0x51ce2d(0x396)]=_0x3ab398,this[_0x51ce2d(0x342)]=_0x57af8e,this[_0x51ce2d(0x3be)]=_0x50d125,this[_0x51ce2d(0x301)]=_0x51500c,q(this,'_lastEditingShapeKey',null),this[_0x51ce2d(0x35b)](),this[_0x51ce2d(0x174)](),this[_0x51ce2d(0x2dc)]();}['_initEvents'](){const _0x398b71=_0x38e982;let {scene:_0x3e8faf}=this[_0x398b71(0x18a)];this[_0x398b71(0x1b0)](_0x3e8faf[_0x398b71(0x323)]['subscribeEvent'](_0x1df8fc=>{const _0x46ac2e=_0x398b71;let {offsetX:_0x1b2d00,offsetY:_0x5508c8}=_0x1df8fc,_0x380316=_0x3e8faf[_0x46ac2e(0x2e2)](_0x225e34['FromArray']([_0x1b2d00,_0x5508c8]));if(_0x380316 instanceof J){let _0x2ae8bf=this[_0x46ac2e(0x301)][_0x46ac2e(0x398)](_0x380316[_0x46ac2e(0x3d6)],_0x380316[_0x46ac2e(0x2a0)],_0x380316[_0x46ac2e(0x3ea)]);if(_0x45fca5(this[_0x46ac2e(0x301)][_0x46ac2e(0x369)](_0x380316[_0x46ac2e(0x3d6)],_0x380316[_0x46ac2e(0x2a0)],_0x380316[_0x46ac2e(0x3ea)]))||_0x2ae8bf!=null&&_0x2ae8bf[_0x46ac2e(0x18b)]()['formulaBinding'])return;this[_0x46ac2e(0x396)]['setEditing']({'visible':!0x0,'unitId':_0x380316[_0x46ac2e(0x3d6)],'subUnitId':_0x380316['subUnitId'],'shapeId':_0x380316[_0x46ac2e(0x3ea)],'shapeKey':_0x380316[_0x46ac2e(0x143)]});}}));}[_0x38e982(0x174)](){const _0x1f170e=_0x38e982;this[_0x1f170e(0x1b0)](this['_drawingManagerService'][_0x1f170e(0x1a8)][_0x1f170e(0x335)](_0x4618e0=>{const _0x46cd7a=_0x1f170e;if(_0x4618e0['length']===0x1){let _0x48a314=_0x4618e0[0x0],_0x4a10e5=this[_0x46cd7a(0x342)][_0x46cd7a(0x254)](_0x48a314);if((_0x4a10e5==null?void 0x0:_0x4a10e5[_0x46cd7a(0x3bd)])===_0x1afd9e[_0x46cd7a(0x2d5)]){var _0x45aa83;let _0x1bea91=this[_0x46cd7a(0x396)][_0x46cd7a(0x3bb)]();if((_0x1bea91==null?void 0x0:_0x1bea91[_0x46cd7a(0x3ea)])===_0x48a314[_0x46cd7a(0x36f)]&&_0x1bea91[_0x46cd7a(0x205)])return;let _0x11b5ad=_0x45fca5(this['_sheetsShapeService'][_0x46cd7a(0x369)](_0x48a314['unitId'],_0x48a314[_0x46cd7a(0x2a0)],_0x48a314[_0x46cd7a(0x36f)])),_0x344508=!!((_0x45aa83=this[_0x46cd7a(0x301)]['getShapeModel'](_0x48a314[_0x46cd7a(0x3d6)],_0x48a314[_0x46cd7a(0x2a0)],_0x48a314[_0x46cd7a(0x36f)]))!=null&&_0x45aa83[_0x46cd7a(0x18b)]()['formulaBinding']);(_0x11b5ad||_0x344508)&&this[_0x46cd7a(0x396)]['setEditing'](null);}else this[_0x46cd7a(0x396)]['completeEditing']();}else this[_0x46cd7a(0x396)][_0x46cd7a(0x1ae)]();})),this[_0x1f170e(0x1b0)](this[_0x1f170e(0x342)][_0x1f170e(0x1a6)]['subscribe'](_0x527f2f=>{const _0x14f984=_0x1f170e;let _0x1eed33=this[_0x14f984(0x396)][_0x14f984(0x3bb)]();_0x1eed33&&_0x527f2f['some'](_0x23b98b=>_0x23b98b[_0x14f984(0x36f)]===_0x1eed33[_0x14f984(0x3ea)])&&this[_0x14f984(0x396)][_0x14f984(0x221)](null);}));}['_initEditingParams'](){const _0x4b2f85=_0x38e982;this[_0x4b2f85(0x1b0)](this[_0x4b2f85(0x396)][_0x4b2f85(0x172)][_0x4b2f85(0x335)](_0x5d6263=>{const _0x297f10=_0x4b2f85;let {scene:_0x27ce40}=this[_0x297f10(0x18a)];if(this[_0x297f10(0x359)]){let _0xafbf68=_0x27ce40['getObjectIncludeInGroup'](this[_0x297f10(0x359)]);_0xafbf68&&_0xafbf68[_0x297f10(0x221)](!0x1);}if(_0x5d6263){let _0x4d7f27=!!_0x5d6263[_0x297f10(0x205)],_0x443556=_0x27ce40[_0x297f10(0x260)](_0x5d6263[_0x297f10(0x152)]);_0x443556&&(_0x443556[_0x297f10(0x221)](_0x4d7f27),this[_0x297f10(0x359)]=_0x5d6263[_0x297f10(0x152)]),this[_0x297f10(0x3be)][_0x297f10(0x228)](_0x5a8010,_0x4d7f27);}else this[_0x297f10(0x359)]=null,this[_0x297f10(0x3be)][_0x297f10(0x228)](_0x5a8010,!0x1);}));}};ya=X([Y(0x1,_0x304d45(_0x4cf09b)),Y(0x2,_0x304d45($)),Y(0x3,_0x457af4),Y(0x4,_0x467548),Y(0x5,_0x304d45(_0x57544e))],ya);var ba=class extends ya{[_0x38e982(0x35b)](){const _0x49b54b=_0x38e982;let {scene:_0x2ef182}=this[_0x49b54b(0x18a)],_0x297dac=this[_0x49b54b(0x2ea)][_0x49b54b(0x292)](_0x531a0e);this[_0x49b54b(0x1b0)](_0x2ef182['onDblclick$'][_0x49b54b(0x29b)](_0x35e223=>{const _0x584793=_0x49b54b;let {offsetX:_0x8f5d71,offsetY:_0x256be1}=_0x35e223,_0x1f0cca=_0x2ef182[_0x584793(0x2e2)](_0x225e34[_0x584793(0x1cd)]([_0x8f5d71,_0x256be1]));if(!(_0x1f0cca instanceof J))return;let _0x3aef32=this[_0x584793(0x301)][_0x584793(0x398)](_0x1f0cca[_0x584793(0x3d6)],_0x1f0cca[_0x584793(0x2a0)],_0x1f0cca[_0x584793(0x3ea)]);_0x45fca5(this[_0x584793(0x301)][_0x584793(0x369)](_0x1f0cca[_0x584793(0x3d6)],_0x1f0cca[_0x584793(0x2a0)],_0x1f0cca[_0x584793(0x3ea)]))||_0x3aef32!=null&&_0x3aef32[_0x584793(0x18b)]()[_0x584793(0x1a9)]||_0x297dac[_0x584793(0x189)](_0x584793(0x36c),{'hostType':_0x19c9b9[_0x584793(0x2b6)],'unitId':_0x1f0cca[_0x584793(0x3d6)],'subUnitId':_0x1f0cca[_0x584793(0x2a0)],'shapeId':_0x1f0cca['shapeId']});}));}};const xa={...ca};let Sa=class extends _0x942aec{constructor(_0x1a41c7,_0x250d2a,_0x474018,_0x1451d3,_0x411f42,_0x4ba932,_0x3d3412,_0x4b1db6){const _0x580a24=_0x38e982;super(),this[_0x580a24(0x151)]=_0x1a41c7,this['_sheetsShapeService']=_0x250d2a,this['_commandService']=_0x474018,this[_0x580a24(0x342)]=_0x1451d3,this['_sheetCanvasPopManagerService']=_0x411f42,this[_0x580a24(0x3be)]=_0x4ba932,this['_renderManagerService']=_0x3d3412,this[_0x580a24(0x396)]=_0x4b1db6,q(this,'_shapePopupMenuDisposable',null),this[_0x580a24(0x151)][_0x580a24(0x3b1)](xa),this[_0x580a24(0x13d)](),this[_0x580a24(0x1b0)](this[_0x580a24(0x396)][_0x580a24(0x172)][_0x580a24(0x335)](_0x57a86c=>{_0x57a86c&&this['_clearFocusedShape']();}));}[_0x38e982(0x17b)](){const _0x138a88=_0x38e982;this[_0x138a88(0x2f2)]||=this['disposeWithMe'](_0x4c4456(this[_0x138a88(0x3a5)],_0x19c9b9[_0x138a88(0x2b6)],_0x1cabd1=>this[_0x138a88(0x320)](_0x1cabd1)));}['_registerFeatureMenu'](){const _0x496cb4=_0x38e982;this[_0x496cb4(0x18e)][_0x496cb4(0x1e4)](_0x1afd9e['DRAWING_SHAPE'],(_0x16ac99,_0x3e4ea6,_0x4e3ba3,_0x4639d6)=>{const _0x9b51d8=_0x496cb4;let _0x48fc7c=this['_sheetsShapeService'][_0x9b51d8(0x3d3)](_0x16ac99,_0x3e4ea6,_0x4e3ba3),_0x1a4756=this[_0x9b51d8(0x301)]['getShapeDataById'](_0x16ac99,_0x3e4ea6,_0x4e3ba3),_0x3d2358=_0x48fc7c!==void 0x0&&!_0x45fca5(_0x48fc7c)&&!(_0x1a4756!=null&&_0x1a4756['formulaBinding']);return[{'label':_0x9b51d8(0x21f),'index':0x0,'commandId':fa['id'],'commandParams':{'unitId':_0x16ac99,'subUnitId':_0x3e4ea6,'drawingId':_0x4e3ba3,'mode':_0x9b51d8(0x125)},'disable':!0x1},..._0x3d2358?[{'label':_0x9b51d8(0x29d),'index':0x1,'commandId':fa['id'],'commandParams':{'unitId':_0x16ac99,'subUnitId':_0x3e4ea6,'drawingId':_0x4e3ba3,'mode':_0x9b51d8(0x36c)},'disable':!0x1}]:[],{'label':_0x9b51d8(0x1c4),'index':0x2,'commandId':_0x815e46['id'],'commandParams':{'unitId':_0x16ac99,'drawings':[{'unitId':_0x16ac99,'subUnitId':_0x3e4ea6,'drawingId':_0x4e3ba3,'drawingType':_0x4639d6}]},'disable':!0x1},{'label':'sheets-shape-ui.flipHorizontal','index':0x3,'commandId':_0x4f77fb['id'],'commandParams':{'unitId':_0x16ac99,'subUnitId':_0x3e4ea6,'shapeId':_0x4e3ba3,'flipH':!0x0},'disable':!0x1},{'label':_0x9b51d8(0x318),'index':0x4,'commandId':_0x4f77fb['id'],'commandParams':{'unitId':_0x16ac99,'subUnitId':_0x3e4ea6,'shapeId':_0x4e3ba3,'flipV':!0x0},'disable':!0x1}];},_0x496cb4(0x328));}['_popupMenuListener'](_0x22b327){const _0x1d39a2=_0x38e982;let _0x24e837=new _0x21c758(),_0x2a3803=null,_0x46001a=()=>{const _0x5bf92b=_0x2e49;if(!_0x2a3803)return;let _0x36b2cd=this[_0x5bf92b(0x342)][_0x5bf92b(0x212)](),_0x1b8c1c=_0x36b2cd[_0x5bf92b(0x23c)]===0x0||_0x36b2cd[_0x5bf92b(0x23c)]===0x1&&_0x36b2cd[_0x5bf92b(0x38a)](_0x5e45d6=>_0x5e45d6[_0x5bf92b(0x3d6)]===(_0x2a3803==null?void 0x0:_0x2a3803[_0x5bf92b(0x3d6)])&&_0x5e45d6[_0x5bf92b(0x2a0)]===(_0x2a3803==null?void 0x0:_0x2a3803[_0x5bf92b(0x2a0)])&&_0x5e45d6[_0x5bf92b(0x36f)]===(_0x2a3803==null?void 0x0:_0x2a3803[_0x5bf92b(0x36f)]));_0x2a3803=null,_0x1b8c1c&&(this['_contextService']['setContextValue'](_0x27fe43,!0x1),this[_0x5bf92b(0x342)][_0x5bf92b(0x116)](null));};return _0x24e837[_0x1d39a2(0x385)](_0x22b327[_0x1d39a2(0x16a)][_0x1d39a2(0x335)](()=>{const _0x16c0c5=_0x1d39a2;let _0x39161e=_0x22b327['getSelectedObjectMap']();if(_0x39161e['size']>0x1){_0x46001a();return;}let _0x3d5f1f=_0x39161e[_0x16c0c5(0x38e)]()[_0x16c0c5(0x267)]()['value'];if(!_0x3d5f1f){_0x46001a();return;}let _0x67957f=this[_0x16c0c5(0x342)][_0x16c0c5(0x1da)](_0x3d5f1f[_0x16c0c5(0x143)]);if(!_0x67957f||_0x67957f[_0x16c0c5(0x3bd)]!==_0x1afd9e['DRAWING_SHAPE']){_0x46001a();return;}let {unitId:_0x1212af,subUnitId:_0x1db73e,drawingId:_0x50d927}=_0x67957f;_0x2a3803={'unitId':_0x1212af,'subUnitId':_0x1db73e,'drawingId':_0x50d927},this[_0x16c0c5(0x3be)]['setContextValue'](_0x27fe43,!0x0),this[_0x16c0c5(0x342)][_0x16c0c5(0x212)]()[_0x16c0c5(0x397)](_0x456f20=>_0x456f20[_0x16c0c5(0x3d6)]===_0x1212af&&_0x456f20[_0x16c0c5(0x2a0)]===_0x1db73e&&_0x456f20[_0x16c0c5(0x36f)]===_0x50d927)||this[_0x16c0c5(0x342)][_0x16c0c5(0x116)]([{'unitId':_0x1212af,'subUnitId':_0x1db73e,'drawingId':_0x50d927}]);})),_0x24e837[_0x1d39a2(0x385)](_0x22b327[_0x1d39a2(0x16d)][_0x1d39a2(0x335)](()=>{_0x46001a();})),_0x3cb981(()=>{const _0x4ca489=_0x1d39a2;_0x24e837[_0x4ca489(0x39d)](),_0x46001a();});}[_0x38e982(0x2c2)](){const _0x414a5=_0x38e982;this[_0x414a5(0x3be)][_0x414a5(0x228)](_0x27fe43,!0x1),this[_0x414a5(0x342)]['focusDrawing'](null);}};Sa=X([Y(0x0,_0x3d7840),Y(0x1,_0x304d45(_0x57544e)),Y(0x2,_0x5aac1e),Y(0x3,_0x457af4),Y(0x4,_0x304d45(_0x3f309f)),Y(0x5,_0x467548),Y(0x6,_0x1fc6ff),Y(0x7,_0x304d45($))],Sa);function Ca(_0x536631,_0x11fda2,_0x151f92,_0x3ba997){const _0x202d87=_0x38e982;let _0x2af4cb=_0x6b5c1d(_0x536631,_0x11fda2,_0x151f92),_0x5abc52=[];for(let _0xcff6 of _0x11fda2){let _0x47f3c3=_0x2af4cb[_0x202d87(0x395)][_0x202d87(0x292)](_0xcff6[_0x202d87(0x36f)]),_0x5624b5=_0x3ba997(_0xcff6);_0x47f3c3&&_0x5624b5&&_0x5abc52[_0x202d87(0x21d)]({'targetShapeId':_0x47f3c3,'source':_0x5624b5});}return _0x5abc52;}let wa=class extends _0x942aec{constructor(_0x5d7f7d,_0x3b06d3,_0x5a7dda,_0x3535ba){const _0x560e8c=_0x38e982;super(),this[_0x560e8c(0x23f)]=_0x5d7f7d,this[_0x560e8c(0x2e5)]=_0x3b06d3,this[_0x560e8c(0x340)]=_0x5a7dda,this[_0x560e8c(0x301)]=_0x3535ba,this['_initSheetChange']();}[_0x38e982(0x186)](){const _0x1b701=_0x38e982;this['disposeWithMe'](this[_0x1b701(0x2e5)]['interceptCommand']({'getMutations':_0x3257be=>{const _0x1e0d1f=_0x1b701;if(_0x3257be['id']===_0x56451c['id']){let _0xaad3f3=_0x5290f5(this['_univerInstanceService'],_0x3257be['params']);if(!_0xaad3f3)return{'redos':[],'undos':[]};let {unitId:_0x5b0c13,subUnitId:_0x4fad33}=_0xaad3f3,_0x5906c9=this[_0x1e0d1f(0x340)][_0x1e0d1f(0x39a)](_0x5b0c13,_0x4fad33),_0x59a691=Object[_0x1e0d1f(0x38e)](_0x5906c9)[_0x1e0d1f(0x2d3)](_0x134d13=>_0x134d13[_0x1e0d1f(0x3bd)]===_0x1afd9e[_0x1e0d1f(0x2d5)]);if(_0x59a691[_0x1e0d1f(0x23c)]===0x0)return{'redos':[],'undos':[]};let _0x28a3aa=[],_0x305ebe=[];for(let _0x4feddb=0x0;_0x4feddb<_0x59a691[_0x1e0d1f(0x23c)];_0x4feddb++){let _0x180b28=_0x59a691[_0x4feddb],_0x1c05a3=this['_sheetsShapeService'][_0x1e0d1f(0x398)](_0x180b28[_0x1e0d1f(0x3d6)],_0x180b28[_0x1e0d1f(0x2a0)],_0x180b28[_0x1e0d1f(0x36f)]);_0x1c05a3&&(_0x28a3aa[_0x1e0d1f(0x21d)]({'id':_0x568d3b['id'],'params':{'unitId':_0x5b0c13,'subUnitId':_0x4fad33,'shapeId':_0x180b28[_0x1e0d1f(0x36f)]}}),_0x305ebe[_0x1e0d1f(0x21d)]({'id':_0x640227['id'],'params':{'unitId':_0x5b0c13,'subUnitId':_0x4fad33,'shapeId':_0x180b28[_0x1e0d1f(0x36f)],'shapeType':_0x1c05a3[_0x1e0d1f(0x369)](),'shapeData':JSON[_0x1e0d1f(0x140)](JSON[_0x1e0d1f(0x227)](_0x1c05a3[_0x1e0d1f(0x18b)]()))}}));}return{'redos':_0x28a3aa,'undos':_0x305ebe};}if(_0x3257be['id']===_0x2f491b['id']){let {unitId:_0x5cd6f7,subUnitId:_0x412f33,targetSubUnitId:_0x5336c0,copyContext:_0x3439c5}=_0x3257be[_0x1e0d1f(0x3c6)];if(!_0x5cd6f7||!_0x412f33||!_0x5336c0)return{'redos':[],'undos':[]};let _0x127b6c=this[_0x1e0d1f(0x340)][_0x1e0d1f(0x39a)](_0x5cd6f7,_0x412f33),_0x30f65b=Object[_0x1e0d1f(0x38e)](_0x127b6c)[_0x1e0d1f(0x2d3)](_0x54bb0e=>_0x54bb0e[_0x1e0d1f(0x3bd)]===_0x1afd9e[_0x1e0d1f(0x2d5)]);if(_0x30f65b[_0x1e0d1f(0x23c)]===0x0)return{'redos':[],'undos':[]};let _0x5de228=Ca(_0x3439c5,_0x30f65b,{'unitId':_0x5cd6f7,'sourceSubUnitId':_0x412f33,'targetSubUnitId':_0x5336c0},_0x130376=>{const _0x1c9d74=_0x1e0d1f;let _0x7e25d8=this[_0x1c9d74(0x301)][_0x1c9d74(0x398)](_0x130376[_0x1c9d74(0x3d6)],_0x130376[_0x1c9d74(0x2a0)],_0x130376['drawingId']);if(_0x7e25d8)return{'shapeType':_0x7e25d8['getShapeType'](),'shapeData':JSON[_0x1c9d74(0x140)](JSON[_0x1c9d74(0x227)](_0x7e25d8[_0x1c9d74(0x18b)]()))};}),_0x3a19a4=[],_0x4500d8=[];for(let {targetShapeId:_0xbafdf,source:_0x4d5212}of _0x5de228)_0x3a19a4[_0x1e0d1f(0x21d)]({'id':_0x640227['id'],'params':{'unitId':_0x5cd6f7,'subUnitId':_0x5336c0,'shapeId':_0xbafdf,'shapeType':_0x4d5212[_0x1e0d1f(0x185)],'shapeData':_0x4d5212[_0x1e0d1f(0x194)]}}),_0x4500d8[_0x1e0d1f(0x21d)]({'id':_0x568d3b['id'],'params':{'unitId':_0x5cd6f7,'subUnitId':_0x5336c0,'shapeId':_0xbafdf}});return{'redos':_0x3a19a4,'undos':_0x4500d8};}return{'redos':[],'undos':[]};}}));}};wa=X([Y(0x0,_0x304d45(_0x5789bf)),Y(0x1,_0x304d45(_0x3f5c81)),Y(0x2,_0x304d45(_0x1f9cb1)),Y(0x3,_0x304d45(_0x57544e))],wa);let Ta=class extends _0x942aec{constructor(_0xb3bff1,_0x292ac9,_0xadc6e3,_0x363bf0,_0xc9ef9f,_0x1b11d5){const _0x4a5f4f=_0x38e982;super(),this[_0x4a5f4f(0x338)]=_0xb3bff1,this[_0x4a5f4f(0x3a5)]=_0x292ac9,this[_0x4a5f4f(0x342)]=_0xadc6e3,this[_0x4a5f4f(0x37f)]=_0x363bf0,this['_drawingRenderService']=_0xc9ef9f,this[_0x4a5f4f(0x1e8)]=_0x1b11d5,q(this,_0x4a5f4f(0x1d4),new Set()),this[_0x4a5f4f(0x344)]();}[_0x38e982(0x344)](){const _0x6793a1=_0x38e982;this[_0x6793a1(0x1a3)](),this[_0x6793a1(0x39f)](),this['_shapeUpdateListener']();}['_drawingAddListener'](){const _0x535224=_0x38e982;this[_0x535224(0x1b0)](this[_0x535224(0x342)][_0x535224(0x332)][_0x535224(0x335)](_0x90eb84=>{const _0x109d28=_0x535224;this[_0x109d28(0x147)](_0x90eb84);}));}[_0x38e982(0x39f)](){const _0x51b853=_0x38e982;this[_0x51b853(0x1b0)](this[_0x51b853(0x338)][_0x51b853(0x325)]((_0x1eb613,_0x1bda03)=>{const _0x699f3b=_0x51b853;if(_0x1eb613['id']===_0x5a5b4d['id']){let {unitId:_0x27ca57,subUnitId:_0x19749e,shapeId:_0x26aa3a}=_0x1eb613[_0x699f3b(0x3c6)],_0x35ba27=this[_0x699f3b(0x195)](_0x27ca57),_0x5110ae=_0x306bd8({'unitId':_0x27ca57,'subUnitId':_0x19749e,'drawingId':_0x26aa3a}),_0x7d3a87=_0x35ba27==null?void 0x0:_0x35ba27[_0x699f3b(0x313)]['getObjectIncludeInGroup'](_0x5110ae);_0x7d3a87&&(this['_sheetDrawingShapeRenderController']['refreshShapeFillImage'](_0x7d3a87),this[_0x699f3b(0x1e8)][_0x699f3b(0x163)](_0x7d3a87,{'unitId':_0x27ca57,'subUnitId':_0x19749e,'shapeId':_0x26aa3a}),_0x7d3a87['makeDirty'](!0x0));}else{if(_0x1eb613['id']===_0x640227['id']){var _0x595366;let {unitId:_0x2a9dd7,subUnitId:_0x5a744c,shapeId:_0x131a9d}=_0x1eb613[_0x699f3b(0x3c6)],_0x1695db=this[_0x699f3b(0x195)](_0x2a9dd7);if(_0x1695db==null)return;let {scene:_0xbc15a}=_0x1695db,_0x4c91aa=_0x306bd8({'unitId':_0x2a9dd7,'subUnitId':_0x5a744c,'drawingId':_0x131a9d}),_0x18823b=_0xbc15a[_0x699f3b(0x260)](_0x4c91aa);if(!((_0x595366=this[_0x699f3b(0x3a5)]['getRenderUnitById'](_0x2a9dd7))!=null&&_0x595366[_0x699f3b(0x24f)](_0x151dc3)[_0x699f3b(0x17d)](_0x5a744c)))return!0x1;if(_0x18823b)return;if(_0x1bda03!=null&&_0x1bda03['fromChangeset']){queueMicrotask(()=>{const _0x45e805=_0x699f3b;this['_disposed']||this[_0x45e805(0x147)]([{'unitId':_0x2a9dd7,'subUnitId':_0x5a744c,'drawingId':_0x131a9d}]);});return;}this['_insertShapes']([{'unitId':_0x2a9dd7,'subUnitId':_0x5a744c,'drawingId':_0x131a9d}]);}}}));}['_shapeUpdateListener'](){const _0x374019=_0x38e982;this['disposeWithMe'](this[_0x374019(0x342)][_0x374019(0x27f)]['subscribe'](_0xb432ab=>{const _0x15bc65=_0x374019;_0xb432ab[_0x15bc65(0x2a5)](_0x4351ea=>{const _0xac4a7c=_0x15bc65;let {unitId:_0x29f0eb,subUnitId:_0x5d10fc,drawingId:_0x199fcb}=_0x4351ea,_0x3feb11=this[_0xac4a7c(0x342)]['getDrawingByParam'](_0x4351ea);if(_0x3feb11==null)return;let {transform:_0x2088e6,drawingType:_0x489e3a,srcRect:_0xee9010,prstGeom:_0x254b3}=_0x3feb11;if(_0x489e3a!==_0x1afd9e[_0xac4a7c(0x2d5)])return;let _0x1517be=this[_0xac4a7c(0x195)](_0x29f0eb);if(_0x1517be==null)return;let {scene:_0x163f4c,transformer:_0x53bddc}=_0x1517be;if(_0x2088e6==null)return!0x0;let _0x5f4292=_0x306bd8({'unitId':_0x29f0eb,'subUnitId':_0x5d10fc,'drawingId':_0x199fcb}),_0x3f423d=_0x163f4c[_0xac4a7c(0x260)](_0x5f4292);if(_0x3f423d==null)return!0x0;_0x3f423d[_0xac4a7c(0x341)](_0xee9010),_0x3f423d[_0xac4a7c(0x33a)](_0x254b3);});}));}[_0x38e982(0x147)](_0x2a6912){const _0x2a238d=_0x38e982;for(let _0x5b35f5 of _0x2a6912){var _0x4ff85c;let {unitId:_0x2b9af5,subUnitId:_0x45e78f,drawingId:_0xeceee5}=_0x5b35f5,_0x8be650=this[_0x2a238d(0x195)](_0x2b9af5),_0x20336b=(_0x4ff85c=_0x2abb90(this[_0x2a238d(0x37f)],_0x2b9af5))==null?void 0x0:_0x4ff85c[_0x2a238d(0x2a0)];if(_0x8be650==null||_0x20336b!==_0x45e78f)continue;let _0x39a7f9=_0x306bd8({'unitId':_0x2b9af5,'subUnitId':_0x45e78f,'drawingId':_0xeceee5});if(this[_0x2a238d(0x1d4)][_0x2a238d(0x3eb)](_0x39a7f9)||_0x8be650['scene'][_0x2a238d(0x260)](_0x39a7f9)!=null)continue;let _0x39b410=this[_0x2a238d(0x342)][_0x2a238d(0x254)](_0x5b35f5);if(_0x39b410==null||_0x39b410[_0x2a238d(0x3bd)]!==_0x1afd9e[_0x2a238d(0x2d5)])continue;let _0x4faaf5=_0x39b410['data']||{};if(_0x45fca5(_0x4faaf5['shapeType'])){let _0x4e0378=_0x39b410[_0x2a238d(0x3d2)];_0x4e0378&&(_0x39b410[_0x2a238d(0x3d2)]={..._0x4e0378,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x2a238d(0x1d4)][_0x2a238d(0x385)](_0x39a7f9);try{this[_0x2a238d(0x1e8)]['renderDrawingShape'](_0x39b410,_0x8be650[_0x2a238d(0x313)]);}finally{this['_insertingShapeKeys'][_0x2a238d(0x1ba)](_0x39a7f9);}queueMicrotask(()=>{const _0x34284a=_0x2a238d;if(this[_0x34284a(0x17a)])return;let _0x17bcf3=_0x306bd8(_0x5b35f5);if(!_0x8be650[_0x34284a(0x313)][_0x34284a(0x260)](_0x17bcf3))return;let _0x891484=this[_0x34284a(0x342)][_0x34284a(0x254)](_0x5b35f5);_0x891484&&this[_0x34284a(0x342)][_0x34284a(0x235)]([_0x891484]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x28a4fe){const _0x2be9af=_0x38e982;if(_0x28a4fe==null)return;let _0x47adfd=this['_renderManagerService']['getRenderUnitById'](_0x28a4fe),_0x3f4f16=_0x47adfd==null?void 0x0:_0x47adfd[_0x2be9af(0x313)];return _0x3f4f16==null?null:{'scene':_0x3f4f16,'transformer':_0x3f4f16['getTransformerByCreate']()};}};Ta=X([Y(0x0,_0x5aac1e),Y(0x1,_0x1fc6ff),Y(0x2,_0x457af4),Y(0x3,_0x5789bf),Y(0x4,_0x304d45(_0x1418f0)),Y(0x5,_0x304d45(Z))],Ta);const Ea={'normal':{'fill':_0x436eb7[_0x38e982(0x12b)],'stroke':_0x436eb7[_0x38e982(0x2f3)],'strokeWidth':_0x436eb7[_0x38e982(0x2e6)]},'highlighted':{'fill':'#4285f4','stroke':_0x38e982(0x117),'strokeWidth':0x2}};var Da=class extends _0x45dea2{constructor(_0x4fcd8a,_0x48d798){const _0x28502f=_0x38e982;super(_0x4fcd8a,_0x48d798),q(this,_0x28502f(0x31c),''),q(this,'_cxnIndex',-0x1),q(this,_0x28502f(0x202),''),q(this,_0x28502f(0x229),''),q(this,'_isHighlighted',!0x1),_0x48d798&&this['setShapeProps'](_0x48d798);}['getConnectionInfo'](){const _0x59c7ba=_0x38e982;return{'unitId':this[_0x59c7ba(0x202)],'subUnitId':this['_subUnitId'],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0x59c7ba(0x399)]};}[_0x38e982(0x236)](_0x12f6d6){this['_isHighlighted']!==_0x12f6d6&&(this['_isHighlighted']=_0x12f6d6,this['makeDirty'](!0x0));}[_0x38e982(0x1aa)](){return this['_isHighlighted'];}[_0x38e982(0x250)](_0x461b58){const _0x418b5e=_0x38e982;_0x461b58['targetShapeId']!==void 0x0&&(this['_targetShapeId']=_0x461b58[_0x418b5e(0x2c9)]),_0x461b58[_0x418b5e(0x34d)]!==void 0x0&&(this[_0x418b5e(0x399)]=_0x461b58[_0x418b5e(0x34d)]),_0x461b58[_0x418b5e(0x3d6)]!==void 0x0&&(this[_0x418b5e(0x202)]=_0x461b58[_0x418b5e(0x3d6)]),_0x461b58[_0x418b5e(0x2a0)]!==void 0x0&&(this[_0x418b5e(0x229)]=_0x461b58[_0x418b5e(0x2a0)]),_0x461b58[_0x418b5e(0x1aa)]!==void 0x0&&(this[_0x418b5e(0x31e)]=_0x461b58[_0x418b5e(0x1aa)]),this[_0x418b5e(0x1fe)]({'width':_0x461b58[_0x418b5e(0x304)]??_0x436eb7['cxnPointRadius']*0x2,'height':_0x461b58[_0x418b5e(0x204)]??_0x436eb7[_0x418b5e(0x216)]*0x2});}[_0x38e982(0x1c5)](_0x25e07a){const _0x2657ee=_0x38e982;let _0x5bbcf9=this[_0x2657ee(0x31e)]?Ea[_0x2657ee(0x2f6)]:Ea[_0x2657ee(0x3c9)];_0x417a06['drawWith'](_0x25e07a,{'radius':_0x436eb7[_0x2657ee(0x216)],'fill':_0x5bbcf9[_0x2657ee(0x3c1)],'stroke':_0x5bbcf9[_0x2657ee(0x22f)],'strokeWidth':_0x5bbcf9[_0x2657ee(0x1ff)],'evented':!0x0});}};let Oa=class extends _0x942aec{constructor(_0x449af7,_0x3dad74,_0x248e2f,_0xd6e5b8){const _0x110390=_0x38e982;super(),this[_0x110390(0x18a)]=_0x449af7,this[_0x110390(0x3a5)]=_0x3dad74,this[_0x110390(0x342)]=_0x248e2f,this[_0x110390(0x301)]=_0xd6e5b8,q(this,_0x110390(0x3c8),[]),q(this,_0x110390(0x374),null),q(this,_0x110390(0x11c),-0x1),q(this,_0x110390(0x1b7),null),q(this,'_unitId',''),q(this,'_subUnitId',''),q(this,_0x110390(0x3b8),null);}['startConnectionDetection'](_0x1c44cd,_0x274ed2,_0x237a4f,_0x3262c1){const _0x31dc83=_0x38e982;this[_0x31dc83(0x1b7)]=_0x1c44cd,this[_0x31dc83(0x202)]=_0x274ed2,this['_subUnitId']=_0x237a4f,this[_0x31dc83(0x3b8)]=_0x3262c1;}['updateConnectionDetection'](_0x1c4f2b){const _0x420141=_0x38e982;if(!this[_0x420141(0x1b7)])return null;let _0x173ac2=this['_findShapeAtPoint'](_0x1c4f2b);return _0x173ac2?(this[_0x420141(0x374)]!==_0x173ac2['shapeId']&&(this[_0x420141(0x2dd)](),this['_showConnectionSites'](_0x173ac2[_0x420141(0x3ea)],_0x173ac2[_0x420141(0x35d)]),this[_0x420141(0x374)]=_0x173ac2[_0x420141(0x3ea)]),this['_findNearestConnectionSite'](_0x1c4f2b)):(this[_0x420141(0x374)]!==null&&(this[_0x420141(0x2dd)](),this[_0x420141(0x374)]=null),null);}[_0x38e982(0x1c9)](){const _0x649c56=_0x38e982;this[_0x649c56(0x2dd)](),this[_0x649c56(0x1b7)]=null,this['_activeTargetShapeId']=null,this[_0x649c56(0x11c)]=-0x1,this[_0x649c56(0x3b8)]=null;}[_0x38e982(0x2b3)](){const _0x58e593=_0x38e982;return this[_0x58e593(0x374)]===null||this[_0x58e593(0x11c)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x58e593(0x11c)]};}[_0x38e982(0x21a)](_0x3e77fc){const _0x48561a=_0x38e982;let _0x389632=this[_0x48561a(0x342)][_0x48561a(0x39a)](this[_0x48561a(0x202)],this[_0x48561a(0x229)]);for(let _0x13ac0e of Object[_0x48561a(0x34e)](_0x389632)){if(_0x13ac0e===this['_draggingConnectorId']||_0x389632[_0x13ac0e]['drawingType']!==_0x1afd9e[_0x48561a(0x2d5)])continue;let _0x40e33a=this[_0x48561a(0x301)][_0x48561a(0x398)](this[_0x48561a(0x202)],this[_0x48561a(0x229)],_0x13ac0e);if(!_0x40e33a||_0x45fca5(_0x40e33a[_0x48561a(0x369)]())||_0x40e33a[_0x48561a(0x1e3)]()[_0x48561a(0x23c)]===0x0||!this['_currentScene'])continue;let _0x4dbc9d=_0x306bd8({'unitId':this[_0x48561a(0x202)],'subUnitId':this[_0x48561a(0x229)],'drawingId':_0x13ac0e}),_0x5e912d=this[_0x48561a(0x1b7)]['getObjectIncludeInGroup'](_0x4dbc9d);if(!_0x5e912d)continue;let {left:_0x20bb01,top:_0x1cbe8e,width:_0x4bb186,height:_0x38ca7b}=_0x5e912d[_0x48561a(0x337)](),_0x4c2814=_0x20bb01+_0x4bb186/0x2,_0x201d34=_0x1cbe8e+_0x38ca7b/0x2,_0x1eed90=_0x5e912d[_0x48561a(0x3d2)][_0x48561a(0x16b)](),_0x37a0e2=new _0x18b849([_0x1eed90[0x0],_0x1eed90[0x1],_0x1eed90[0x2],_0x1eed90[0x3],_0x4c2814,_0x201d34]),_0x53d2b6=_0x5e912d[_0x48561a(0x1b4)](),_0x7aa307=(_0x5e912d[_0x48561a(0x3e1)]&&(_0x53d2b6==null?void 0x0:_0x53d2b6[_0x48561a(0x31b)])===_0x4ede46[_0x48561a(0x20a)]?_0x53d2b6[_0x48561a(0x307)][_0x48561a(0x365)](_0x37a0e2):_0x37a0e2)[_0x48561a(0x2ad)]()[_0x48561a(0x2f5)](_0x3e77fc),_0x107332=_0x4bb186/0x2,_0x537434=_0x38ca7b/0x2;if(_0x7aa307['x']>=-_0x107332-0x5&&_0x7aa307['x']<=_0x107332+0x5&&_0x7aa307['y']>=-_0x537434-0x5&&_0x7aa307['y']<=_0x537434+0x5)return{'shapeId':_0x13ac0e,'shapeModel':_0x40e33a};}return null;}[_0x38e982(0x290)](_0x43038d,_0x3301c9){const _0x36b831=_0x38e982;if(!this[_0x36b831(0x1b7)])return;let _0x1170ec=_0x306bd8({'unitId':this[_0x36b831(0x202)],'subUnitId':this['_subUnitId'],'drawingId':_0x43038d}),_0x49f38e=this[_0x36b831(0x1b7)][_0x36b831(0x260)](_0x1170ec);if(!_0x49f38e)return;let {left:_0x4ea3e5,top:_0x46725c,width:_0x41919b,height:_0x46bb5e}=_0x49f38e['getRealBound'](),_0x4cca3b=_0x4ea3e5+_0x41919b/0x2,_0x14ced8=_0x46725c+_0x46bb5e/0x2,_0x10d262=_0x49f38e[_0x36b831(0x3d2)][_0x36b831(0x16b)](),_0x4bcab3=new _0x18b849([_0x10d262[0x0],_0x10d262[0x1],_0x10d262[0x2],_0x10d262[0x3],_0x4cca3b,_0x14ced8]),_0x34bab9=_0x49f38e[_0x36b831(0x1b4)](),_0xa0a88c=_0x49f38e[_0x36b831(0x3e1)]&&(_0x34bab9==null?void 0x0:_0x34bab9[_0x36b831(0x31b)])===_0x4ede46[_0x36b831(0x20a)]?_0x34bab9[_0x36b831(0x307)]['multiply'](_0x4bcab3):_0x4bcab3;_0x3301c9[_0x36b831(0x276)]({'width':_0x41919b,'height':_0x46bb5e});let _0x248d4c=_0x3301c9[_0x36b831(0x1e3)]();for(let _0x5ed3ff of _0x248d4c){let _0x136722=_0x5ed3ff['x']-_0x41919b/0x2,_0x58f9c6=_0x5ed3ff['y']-_0x46bb5e/0x2,_0x44008f=_0xa0a88c[_0x36b831(0x2f5)]({'x':_0x136722,'y':_0x58f9c6}),_0x1d8927=_0x44008f['x'],_0x1e9d76=_0x44008f['y'],_0x2a270b=new Da(_0x36b831(0x2b9)+_0x43038d+'-'+_0x5ed3ff[_0x36b831(0x124)],{'left':_0x1d8927-_0x436eb7['cxnPointRadius'],'top':_0x1e9d76-_0x436eb7[_0x36b831(0x216)],'targetShapeId':_0x43038d,'cxnIndex':_0x5ed3ff[_0x36b831(0x124)],'unitId':this[_0x36b831(0x202)],'subUnitId':this[_0x36b831(0x229)],'width':_0x436eb7['cxnPointRadius']*0x2,'height':_0x436eb7[_0x36b831(0x216)]*0x2,'zIndex':_0x5c1c17+0x2,'evented':!0x1});this[_0x36b831(0x3c8)][_0x36b831(0x21d)](_0x2a270b),this['_currentScene'][_0x36b831(0x22c)](_0x2a270b,_0x5c1c17+0x2);}}[_0x38e982(0x3e7)](_0x247f6b){const _0x206be4=_0x38e982;let _0x2411e7=null,_0x16cd71=0x1/0x0,_0x13a699=null;for(let _0x4f99da of this[_0x206be4(0x3c8)]){let _0x3ac3ba=_0x4f99da[_0x206be4(0x39b)]+_0x436eb7[_0x206be4(0x216)],_0x2f2965=_0x4f99da[_0x206be4(0x218)]+_0x436eb7[_0x206be4(0x216)],_0xceb375=_0x247f6b['x']-_0x3ac3ba,_0x2f3288=_0x247f6b['y']-_0x2f2965,_0x40e0d0=Math[_0x206be4(0x36b)](_0xceb375*_0xceb375+_0x2f3288*_0x2f3288);_0x40e0d0<_0x16cd71&&(_0x16cd71=_0x40e0d0,_0x2411e7=_0x4f99da,_0x13a699={'x':_0x3ac3ba,'y':_0x2f2965});}let _0x21cda3=_0x16cd71<=0xa&&_0x2411e7?_0x2411e7[_0x206be4(0x264)]()['cxnIndex']:-0x1;if(_0x21cda3!==this[_0x206be4(0x11c)]){for(let _0x165a33 of this['_connectionSiteObjects']){let _0x4a2875=_0x165a33[_0x206be4(0x264)]();_0x165a33['setHighlighted'](_0x4a2875[_0x206be4(0x34d)]===_0x21cda3);}this[_0x206be4(0x11c)]=_0x21cda3;}if(_0x16cd71<=0xa&&_0x2411e7&&_0x13a699){let _0x5f5456=_0x2411e7[_0x206be4(0x264)](),_0x2de085=this[_0x206be4(0x382)](_0x5f5456[_0x206be4(0x3ea)],_0x5f5456[_0x206be4(0x34d)]);return{'shapeId':_0x5f5456[_0x206be4(0x3ea)],'cxnIndex':_0x5f5456[_0x206be4(0x34d)],'unitId':_0x5f5456['unitId'],'subUnitId':_0x5f5456['subUnitId'],'worldPoint':_0x13a699,'angle':_0x2de085};}return null;}[_0x38e982(0x382)](_0x354d6a,_0x3198f0){const _0x1de7d8=_0x38e982;let _0x5e7ee7=this[_0x1de7d8(0x301)][_0x1de7d8(0x398)](this[_0x1de7d8(0x202)],this[_0x1de7d8(0x229)],_0x354d6a);if(!_0x5e7ee7)return 0x0;let _0x499829=this[_0x1de7d8(0x342)][_0x1de7d8(0x254)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0x354d6a});if(!(_0x499829!=null&&_0x499829['transform']))return 0x0;let {width:_0x1ecbb8=0x0,height:_0x2058c8=0x0,flipX:_0x313eea=!0x1,flipY:_0x472cfa=!0x1}=_0x499829[_0x1de7d8(0x3d2)];_0x5e7ee7[_0x1de7d8(0x276)]({'width':_0x1ecbb8,'height':_0x2058c8});let _0x937ab2=_0x5e7ee7[_0x1de7d8(0x1e3)]()[_0x1de7d8(0x397)](_0x2fd471=>_0x2fd471[_0x1de7d8(0x124)]===_0x3198f0);if(!_0x937ab2)return 0x0;let _0x365148=_0x937ab2['ang']/0xea60;return _0x313eea&&(_0x365148=0xb4-_0x365148),_0x472cfa&&(_0x365148=-_0x365148),_0x365148=(_0x365148%0x168+0x168)%0x168,_0x365148;}[_0x38e982(0x2dd)](){const _0x1446ef=_0x38e982;for(let _0x56e4bf of this[_0x1446ef(0x3c8)])_0x56e4bf[_0x1446ef(0x39d)]();this[_0x1446ef(0x3c8)]=[],this[_0x1446ef(0x11c)]=-0x1;}[_0x38e982(0x39d)](){const _0x5766b7=_0x38e982;this[_0x5766b7(0x2dd)](),super['dispose']();}};Oa=X([Y(0x1,_0x304d45(_0x1fc6ff)),Y(0x2,_0x304d45(_0x457af4)),Y(0x3,_0x304d45(_0x57544e))],Oa);let ka=class extends _0x942aec{constructor(_0xbacfdf,_0x2982d8,_0x5625a9,_0x49b974,_0x5d7097,_0x13c51a,_0x33f146,_0x4725a8){const _0x2a8bb3=_0x38e982;super(),this[_0x2a8bb3(0x1e9)]=_0xbacfdf,this[_0x2a8bb3(0x2b7)]=_0x2982d8,this['_sheetDrawingService']=_0x5625a9,this['_shapeService']=_0x49b974,this['_groupCopyPasteController']=_0x5d7097,this['_instances']=_0x13c51a,this[_0x2a8bb3(0x38d)]=_0x33f146,this[_0x2a8bb3(0x238)]=_0x4725a8,q(this,_0x2a8bb3(0x237),void 0x0),this[_0x2a8bb3(0x170)](),this[_0x2a8bb3(0x261)]();}get[_0x38e982(0x180)](){const _0xa6bdda=_0x38e982;return this[_0xa6bdda(0x340)][_0xa6bdda(0x212)]();}['_registerGroupFeaturePasteHook'](){const _0x14de19=_0x38e982;this[_0x14de19(0x262)][_0x14de19(0x3d7)](({fromUnitId:_0x4b321f,fromSubUnitId:_0x10ccf8,toUnitId:_0x15445a,toSubUnitId:_0x56dc3d,idMap:_0x2efd25})=>{const _0x29ab5a=_0x14de19;let _0x177114=[],_0x4fd9c5=[];for(let [_0x17d11f,_0x20218a]of _0x2efd25[_0x29ab5a(0x128)]()){let _0x1fc536=this[_0x29ab5a(0x373)][_0x29ab5a(0x398)](_0x4b321f,_0x10ccf8,_0x17d11f);if(!_0x1fc536)continue;let _0x1ef813=_0x1fc536[_0x29ab5a(0x369)](),_0x483795=JSON['parse'](JSON[_0x29ab5a(0x227)](_0x1fc536['getShapeData']()));if(_0x483795['relation']){var _0x45ef34,_0x2a5d3d;let _0x2ebf55=(_0x45ef34=_0x483795[_0x29ab5a(0x1c1)][_0x29ab5a(0x1ca)])==null?void 0x0:_0x45ef34[_0x29ab5a(0x3ea)],_0x27454a=(_0x2a5d3d=_0x483795['relation']['to'])==null?void 0x0:_0x2a5d3d[_0x29ab5a(0x3ea)],_0x2e0a4b=!_0x2ebf55||_0x2efd25[_0x29ab5a(0x3eb)](_0x2ebf55),_0x5d4985=!_0x27454a||_0x2efd25[_0x29ab5a(0x3eb)](_0x27454a);_0x2e0a4b&&_0x2ebf55&&_0x483795[_0x29ab5a(0x1c1)]['from']?_0x483795[_0x29ab5a(0x1c1)][_0x29ab5a(0x1ca)]={..._0x483795[_0x29ab5a(0x1c1)][_0x29ab5a(0x1ca)],'shapeId':_0x2efd25[_0x29ab5a(0x292)](_0x2ebf55)}:_0x483795[_0x29ab5a(0x1c1)][_0x29ab5a(0x1ca)]=void 0x0,_0x5d4985&&_0x27454a&&_0x483795[_0x29ab5a(0x1c1)]['to']?_0x483795[_0x29ab5a(0x1c1)]['to']={..._0x483795[_0x29ab5a(0x1c1)]['to'],'shapeId':_0x2efd25['get'](_0x27454a)}:_0x483795[_0x29ab5a(0x1c1)]['to']=void 0x0;}_0x177114[_0x29ab5a(0x21d)]({'id':_0x640227['id'],'params':{'unitId':_0x15445a,'subUnitId':_0x56dc3d,'shapeId':_0x20218a,'shapeType':_0x1ef813,'shapeData':_0x483795}}),_0x4fd9c5[_0x29ab5a(0x21d)]({'id':_0x568d3b['id'],'params':{'unitId':_0x15445a,'subUnitId':_0x56dc3d,'shapeId':_0x20218a}});}return{'redos':_0x177114,'undos':_0x4fd9c5};});}[_0x38e982(0x170)](){const _0x553c2b=_0x38e982;this[_0x553c2b(0x1b0)](this['_sheetClipboardService'][_0x553c2b(0x2be)]({'id':'sheets-shape-ui','onBeforeCopyFocusedObject':(_0x5e41f9,_0x32118b,_0x31e5dc)=>{const _0x492268=_0x553c2b;this[_0x492268(0x237)]=null;let _0x210e1d=this[_0x492268(0x180)][_0x492268(0x2d3)](_0x4747d2=>_0x4747d2['drawingType']===_0x1afd9e[_0x492268(0x2d5)]);return _0x210e1d['length']!==0x0&&(this[_0x492268(0x237)]={'unitId':_0x5e41f9,'subUnitId':_0x32118b,'copyType':_0x31e5dc,'drawings':_0x210e1d},!0x0);},'onBeforeCopy':(_0xe17dcb,_0x4e10f5,_0x4df6d7,_0x22409e)=>{const _0x3d112a=_0x553c2b;this['_copyInfo']=null,this[_0x3d112a(0x241)](_0xe17dcb,_0x4e10f5,_0x4df6d7,_0x22409e);},'onPasteCells':(_0x4af935,_0x4a1cd2,_0x3cb646,_0x3792af)=>{const _0x41bdc8=_0x553c2b;if(!_0x3792af[_0x41bdc8(0x2bb)]||!_0x4af935||!this[_0x41bdc8(0x237)])return{'redos':[],'undos':[]};let {pasteType:_0x27e5dc}=_0x3792af;return _0x27e5dc===_0x48f2e3[_0x41bdc8(0x2d7)]?this[_0x41bdc8(0x32b)](_0x4a1cd2,this['_copyInfo'][_0x41bdc8(0x132)]===_0xaba887[_0x41bdc8(0x160)]):{'redos':[],'undos':[]};}}));}['_createCopyInfoByRange'](_0x5e4b93,_0x89cd08,_0x7f0800,_0x5725d8){const _0x30b695=_0x38e982;let _0x5a2b0d=this['_sheetSkeletonService'][_0x30b695(0x17d)](_0x5e4b93,_0x89cd08);if(!_0x5a2b0d)return;let _0x25046=_0x2fe142(_0x5a2b0d,_0x7f0800);if(!_0x25046)return;let {startX:_0x2d63bd,endX:_0x52a60a,startY:_0x1e45b7,endY:_0x27e58b}=_0x25046,_0x31410c=this['_sheetDrawingService'][_0x30b695(0x39a)](_0x5e4b93,_0x89cd08),_0x2e7f3a=[];for(let [_0x577d5c,_0x18cc9f]of Object[_0x30b695(0x128)](_0x31410c)){if(_0x18cc9f[_0x30b695(0x3bd)]!==_0x1afd9e[_0x30b695(0x2d5)])continue;let {transform:_0x59c146}=_0x18cc9f;if(!_0x59c146)continue;let {left:_0x14d28a=0x0,top:_0x55ca26=0x0,width:_0x22e2d3=0x0,height:_0x51e40c=0x0}=_0x59c146;_0x2d63bd<=_0x14d28a&&_0x52a60a>=_0x14d28a+_0x22e2d3&&_0x1e45b7<=_0x55ca26&&_0x27e58b>=_0x55ca26+_0x51e40c&&_0x2e7f3a[_0x30b695(0x21d)](_0x18cc9f);}_0x2e7f3a[_0x30b695(0x23c)]>0x0&&(this['_copyInfo']={'unitId':_0x5e4b93,'subUnitId':_0x89cd08,'copyType':_0x5725d8,'copyRange':_0x7f0800,'drawings':_0x2e7f3a});}[_0x38e982(0x32b)](_0x28c3da,_0x23bd0f){const _0x3e67c7=_0x38e982;var _0x2788f1,_0x3b3b43;let {unitId:_0x58f605,subUnitId:_0x2f9be7,range:_0x15d8f2}=_0x28c3da,_0x83c90e=this[_0x3e67c7(0x237)],_0x1d622a=(_0x2788f1=this[_0x3e67c7(0x1e5)][_0x3e67c7(0x184)](_0x83c90e[_0x3e67c7(0x3d6)],_0x19c9b9[_0x3e67c7(0x2b6)]))==null?void 0x0:_0x2788f1[_0x3e67c7(0x265)](_0x83c90e[_0x3e67c7(0x2a0)]),_0x5de9b1=(_0x3b3b43=this[_0x3e67c7(0x1e5)]['getUnit'](_0x58f605,_0x19c9b9[_0x3e67c7(0x2b6)]))==null?void 0x0:_0x3b3b43[_0x3e67c7(0x265)](_0x2f9be7),_0x418cea=(_0x1d622a==null?void 0x0:_0x1d622a['getConfig']()[_0x3e67c7(0x2b8)])??_0xd3ed2e[_0x3e67c7(0x2e1)],_0x3bfccc=(_0x5de9b1==null?void 0x0:_0x5de9b1[_0x3e67c7(0x126)]()[_0x3e67c7(0x2b8)])??_0xd3ed2e[_0x3e67c7(0x2e1)];if(_0x418cea===_0xd3ed2e[_0x3e67c7(0x34b)]||_0x3bfccc===_0xd3ed2e[_0x3e67c7(0x34b)])return this['_generateChartSheetCopy'](_0x28c3da,_0x23bd0f);let _0x3f6ef3=this[_0x3e67c7(0x1e9)]['getSkeleton'](_0x58f605,_0x2f9be7);if(!_0x3f6ef3)return{'redos':[],'undos':[]};let _0x204501=_0x1678bb(_0x15d8f2),{unitId:_0x19fca5,subUnitId:_0x4a6ed5,copyRange:_0x5be30d,drawings:_0x425e8e}=this[_0x3e67c7(0x237)],_0x595a91=this[_0x3e67c7(0x1e9)][_0x3e67c7(0x17d)](_0x19fca5,_0x4a6ed5);if(!_0x595a91)return{'redos':[],'undos':[]};let _0x29a2bf;if(!_0x5be30d){let _0x5e3ff7=0x1/0x0,_0x20bc45=0x1/0x0;for(let _0x3908d7 of _0x425e8e){let {left:_0x21feec=0x0,top:_0x38e575=0x0}=_0x3908d7[_0x3e67c7(0x3d2)]??{};_0x21feec<_0x5e3ff7&&(_0x5e3ff7=_0x21feec),_0x38e575<_0x20bc45&&(_0x20bc45=_0x38e575);}_0x5e3ff7!==0x1/0x0&&_0x20bc45!==0x1/0x0&&(_0x29a2bf={'left':_0x5e3ff7,'top':_0x20bc45});}let _0x5751e3=new Map();if(!_0x23bd0f){for(let _0x425509 of _0x425e8e)_0x5751e3[_0x3e67c7(0x2b5)](_0x425509[_0x3e67c7(0x36f)],_0x1fdb08());}let _0xf32b0a=[],_0x589bc0=[];for(let _0x7f9603 of _0x425e8e){let {drawingId:_0x183401,transform:_0x1b7662,sheetTransform:_0x1484e7}=_0x7f9603;if(!_0x1b7662||!_0x1484e7)continue;let _0x2731ce=this[_0x3e67c7(0x223)]({'transform':_0x1b7662,'sheetTransform':_0x1484e7},{'skeleton':_0x595a91,'range':_0x5be30d},{'skeleton':_0x3f6ef3,'range':_0x204501},_0x29a2bf);if(_0x23bd0f){let {redos:_0x2c826d,undos:_0x2be49f}=this[_0x3e67c7(0x312)]({'fromUnitId':_0x19fca5,'fromSubUnitId':_0x4a6ed5,'toUnitId':_0x58f605,'toSubUnitId':_0x2f9be7,'drawing':_0x7f9603,'newTransforms':_0x2731ce});_0xf32b0a['push'](..._0x2c826d),_0x589bc0['push'](..._0x2be49f);continue;}let {redos:_0x5a536a,undos:_0x4872e9}=this[_0x3e67c7(0x334)]({'toUnitId':_0x58f605,'toSubUnitId':_0x2f9be7,'drawing':_0x7f9603,'newTransforms':_0x2731ce,'newDrawingId':_0x5751e3[_0x3e67c7(0x292)](_0x183401),'idMap':_0x5751e3});_0xf32b0a[_0x3e67c7(0x21d)](..._0x5a536a),_0x589bc0['push'](..._0x4872e9);}return{'redos':_0xf32b0a,'undos':_0x589bc0};}[_0x38e982(0x25c)](_0x593b6d,_0x4304b4){const _0x38e3be=_0x38e982;var _0x3bd915;if(_0x4304b4)throw new _0x56fc1c(_0x4ff7a0['id']);let {unitId:_0x4041b6,subUnitId:_0x517b68}=_0x593b6d;if(!this[_0x38e3be(0x238)][_0x38e3be(0x13a)]({'workbookTypes':[_0x5d4362],'worksheetTypes':[_0x2cc33f]},_0x4041b6,_0x517b68))throw new _0x56fc1c(_0x4ff7a0['id']);let _0x531227=(_0x3bd915=this[_0x38e3be(0x1e5)][_0x38e3be(0x184)](_0x4041b6,_0x19c9b9['UNIVER_SHEET']))==null?void 0x0:_0x3bd915[_0x38e3be(0x265)](_0x517b68),_0x3183c4=_0x531227==null?void 0x0:_0x531227[_0x38e3be(0x126)](),_0x1bfd26=(_0x3183c4==null?void 0x0:_0x3183c4[_0x38e3be(0x2b8)])??_0xd3ed2e[_0x38e3be(0x2e1)],_0x2c608b=this[_0x38e3be(0x237)],_0x4df31a=_0x2c608b['drawings'];if(!this[_0x38e3be(0x238)][_0x38e3be(0x13a)]({'workbookTypes':[_0x3527b0],'worksheetTypes':[_0x3feae7]},_0x2c608b[_0x38e3be(0x3d6)],_0x2c608b['subUnitId'])||_0x4df31a[_0x38e3be(0x38a)](_0x318494=>_0x318494[_0x38e3be(0x362)]||!this[_0x38e3be(0x373)][_0x38e3be(0x398)](_0x2c608b[_0x38e3be(0x3d6)],_0x2c608b['subUnitId'],_0x318494[_0x38e3be(0x36f)])||!_0x3b8ecf[_0x38e3be(0x2d6)](_0x318494,this['_sheetDrawingService'][_0x38e3be(0x254)](_0x318494))))throw new _0x56fc1c(_0x4ff7a0['id']);let _0x3ac337=null;if(_0x1bfd26===_0xd3ed2e[_0x38e3be(0x34b)]){var _0x2e62a3;let _0x4613a2=(_0x2e62a3=this[_0x38e3be(0x38d)][_0x38e3be(0x37e)](_0x4041b6))==null?void 0x0:_0x2e62a3[_0x38e3be(0x1d0)][_0x38e3be(0x292)](_0x5e18b6[_0x38e3be(0x363)]);_0x4613a2&&(_0x3ac337=_0x48f054(_0x4df31a,{'left':_0x4613a2[_0x38e3be(0x39b)],'top':_0x4613a2[_0x38e3be(0x218)],'width':_0x4613a2[_0x38e3be(0x304)],'height':_0x4613a2[_0x38e3be(0x204)]},(_0x3183c4==null?void 0x0:_0x3183c4[_0x38e3be(0x127)])===_0x31e6e1[_0x38e3be(0x3e4)]));}else{let _0x49b836=this[_0x38e3be(0x1e9)][_0x38e3be(0x17d)](_0x4041b6,_0x517b68),_0x2ee987=_0x49b836&&_0x2fe142(_0x49b836,_0x1678bb(_0x593b6d[_0x38e3be(0x378)]));if(_0x2ee987&&_0x4df31a[_0x38e3be(0x23c)]){let _0x1a1c24=Math[_0x38e3be(0x15a)](..._0x4df31a['map'](_0x54a168=>_0x54a168[_0x38e3be(0x3d2)][_0x38e3be(0x39b)])),_0x1178fd=Math[_0x38e3be(0x15a)](..._0x4df31a[_0x38e3be(0x298)](_0x50474a=>_0x50474a[_0x38e3be(0x3d2)]['top']));_0x3ac337=_0x4df31a['map'](_0x41a363=>_0x44e689(_0x41a363,{'kind':_0x19c1aa[_0x38e3be(0x321)],'bounds':{'left':_0x2ee987[_0x38e3be(0x173)]+_0x41a363[_0x38e3be(0x3d2)]['left']-_0x1a1c24,'top':_0x2ee987[_0x38e3be(0x138)]+_0x41a363['transform'][_0x38e3be(0x218)]-_0x1178fd,'width':_0x41a363[_0x38e3be(0x3d2)][_0x38e3be(0x304)],'height':_0x41a363[_0x38e3be(0x3d2)][_0x38e3be(0x204)]}},_0x49b836));}}if(!_0x3ac337)throw new _0x56fc1c(_0x4ff7a0['id']);let _0x15153c=new Map(_0x4df31a['map'](_0x190c2b=>[_0x190c2b[_0x38e3be(0x36f)],_0x1fdb08()])),_0x17cdcb=[],_0x2167bd=[];for(let [_0x1b06f4,_0x163532]of _0x4df31a[_0x38e3be(0x128)]()){let _0xc019d9=_0x3ac337[_0x1b06f4],_0x5573ac=this['_generateCopyPasteMutations']({'toUnitId':_0x4041b6,'toSubUnitId':_0x517b68,'drawing':_0x163532,'idMap':_0x15153c,'newDrawingId':_0x15153c[_0x38e3be(0x292)](_0x163532[_0x38e3be(0x36f)]),'newTransforms':{'transform':_0xc019d9[_0x38e3be(0x3d2)],'sheetTransform':_0xc019d9[_0x38e3be(0x36e)],'axisAlignSheetTransform':_0xc019d9[_0x38e3be(0x19f)],'anchorType':_0xc019d9['anchorType']}});_0x17cdcb[_0x38e3be(0x21d)](..._0x5573ac[_0x38e3be(0x358)]),_0x2167bd[_0x38e3be(0x2de)](..._0x5573ac[_0x38e3be(0x153)]);}return{'redos':_0x17cdcb,'undos':_0x2167bd};}[_0x38e982(0x312)](_0x5321f1){const _0x30bfd3=_0x38e982;let {fromUnitId:_0x5998f2,fromSubUnitId:_0x55ffd3,toUnitId:_0x241c4e,toSubUnitId:_0x4e7607,drawing:_0x41be11,newTransforms:_0x3872c0}=_0x5321f1,_0x42a248={..._0x41be11,'unitId':_0x241c4e,'subUnitId':_0x4e7607,..._0x3872c0};if(_0x241c4e===_0x5998f2&&_0x4e7607===_0x55ffd3){let {redo:_0x580ddb,undo:_0x4e4e28,objects:_0x334912}=this[_0x30bfd3(0x340)][_0x30bfd3(0x181)]([_0x42a248]);return{'redos':[{'id':_0x3c7ad2['id'],'params':{'unitId':_0x241c4e,'subUnitId':_0x4e7607,'type':_0x5c3269[_0x30bfd3(0x317)],'op':_0x580ddb,'objects':_0x334912}}],'undos':[{'id':_0x3c7ad2['id'],'params':{'unitId':_0x241c4e,'subUnitId':_0x4e7607,'type':_0x5c3269['UPDATE'],'op':_0x4e4e28,'objects':_0x334912}}]};}{let _0x20af56=this[_0x30bfd3(0x340)][_0x30bfd3(0x2a2)]([_0x41be11]),_0x3ad2bc=this[_0x30bfd3(0x340)][_0x30bfd3(0x217)]([_0x42a248]),_0x4d117c=this[_0x30bfd3(0x373)][_0x30bfd3(0x398)](_0x41be11[_0x30bfd3(0x3d6)],_0x41be11['subUnitId'],_0x41be11[_0x30bfd3(0x36f)]);if(!_0x4d117c)return{'redos':[],'undos':[]};let _0x368906=_0x4d117c[_0x30bfd3(0x369)](),_0xb501c4=JSON[_0x30bfd3(0x140)](JSON[_0x30bfd3(0x227)](_0x4d117c[_0x30bfd3(0x18b)]()));return{'redos':[{'id':_0x3c7ad2['id'],'params':{'unitId':_0x5998f2,'subUnitId':_0x55ffd3,'type':_0x5c3269[_0x30bfd3(0x12d)],'op':_0x20af56['redo'],'objects':_0x20af56['objects']}},{'id':_0x568d3b['id'],'params':{'unitId':_0x5998f2,'subUnitId':_0x55ffd3,'shapeId':_0x41be11[_0x30bfd3(0x36f)]}},{'id':_0x3c7ad2['id'],'params':{'unitId':_0x241c4e,'subUnitId':_0x4e7607,'type':_0x5c3269[_0x30bfd3(0x17c)],'op':_0x3ad2bc[_0x30bfd3(0x1c7)],'objects':_0x3ad2bc['objects']}},{'id':_0x640227['id'],'params':{'unitId':_0x241c4e,'subUnitId':_0x4e7607,'shapeId':_0x41be11[_0x30bfd3(0x36f)],'shapeType':_0x368906,'shapeData':_0xb501c4}}],'undos':[{'id':_0x3c7ad2['id'],'params':{'unitId':_0x5998f2,'subUnitId':_0x55ffd3,'type':_0x5c3269[_0x30bfd3(0x17c)],'op':_0x20af56['undo'],'objects':_0x20af56['objects']}},{'id':_0x640227['id'],'params':{'unitId':_0x5998f2,'subUnitId':_0x55ffd3,'shapeId':_0x41be11['drawingId'],'shapeType':_0x368906,'shapeData':_0xb501c4}},{'id':_0x3c7ad2['id'],'params':{'unitId':_0x241c4e,'subUnitId':_0x4e7607,'type':_0x5c3269[_0x30bfd3(0x12d)],'op':_0x3ad2bc['undo'],'objects':_0x3ad2bc[_0x30bfd3(0x14c)]}},{'id':_0x568d3b['id'],'params':{'unitId':_0x241c4e,'subUnitId':_0x4e7607,'shapeId':_0x41be11[_0x30bfd3(0x36f)]}}]};}}[_0x38e982(0x334)](_0x144222){const _0x5e9278=_0x38e982;let {toUnitId:_0x741457,toSubUnitId:_0x4e43ff,drawing:_0xd1a46d,newTransforms:_0x5972d0,newDrawingId:_0x451d73,idMap:_0x1ac74a}=_0x144222,_0x317bf7={..._0xd1a46d,'unitId':_0x741457,'subUnitId':_0x4e43ff,'drawingId':_0x451d73,..._0x5972d0},{redo:_0x1b3564,undo:_0x573d66,objects:_0x25b40c}=this[_0x5e9278(0x340)][_0x5e9278(0x217)]([_0x317bf7]),_0x22f50d=this[_0x5e9278(0x373)][_0x5e9278(0x398)](_0xd1a46d[_0x5e9278(0x3d6)],_0xd1a46d['subUnitId'],_0xd1a46d['drawingId']);if(!_0x22f50d)return{'redos':[],'undos':[]};let _0x40ce56=_0x22f50d[_0x5e9278(0x369)](),_0x43d073=JSON['parse'](JSON[_0x5e9278(0x227)](_0x22f50d['getShapeData']()));if(_0x43d073[_0x5e9278(0x1c1)]){var _0xb5ab00,_0x409e14;let _0x2a414a=(_0xb5ab00=_0x43d073['relation'][_0x5e9278(0x1ca)])==null?void 0x0:_0xb5ab00['shapeId'],_0x47763f=(_0x409e14=_0x43d073[_0x5e9278(0x1c1)]['to'])==null?void 0x0:_0x409e14['shapeId'],_0x2adbef=!_0x2a414a||_0x1ac74a[_0x5e9278(0x3eb)](_0x2a414a),_0x596309=!_0x47763f||_0x1ac74a[_0x5e9278(0x3eb)](_0x47763f);_0x2adbef&&_0x2a414a&&_0x43d073[_0x5e9278(0x1c1)][_0x5e9278(0x1ca)]?_0x43d073['relation'][_0x5e9278(0x1ca)]={..._0x43d073['relation'][_0x5e9278(0x1ca)],'shapeId':_0x1ac74a[_0x5e9278(0x292)](_0x2a414a)}:_0x43d073[_0x5e9278(0x1c1)][_0x5e9278(0x1ca)]=void 0x0,_0x596309&&_0x47763f&&_0x43d073[_0x5e9278(0x1c1)]['to']?_0x43d073['relation']['to']={..._0x43d073[_0x5e9278(0x1c1)]['to'],'shapeId':_0x1ac74a[_0x5e9278(0x292)](_0x47763f)}:_0x43d073[_0x5e9278(0x1c1)]['to']=void 0x0;}return{'redos':[{'id':_0x3c7ad2['id'],'params':{'unitId':_0x741457,'subUnitId':_0x4e43ff,'type':_0x5c3269['INSERT'],'op':_0x1b3564,'objects':_0x25b40c}},{'id':_0x640227['id'],'params':{'unitId':_0x741457,'subUnitId':_0x4e43ff,'shapeId':_0x451d73,'shapeType':_0x40ce56,'shapeData':_0x43d073}}],'undos':[{'id':_0x3c7ad2['id'],'params':{'unitId':_0x741457,'subUnitId':_0x4e43ff,'type':_0x5c3269[_0x5e9278(0x12d)],'op':_0x573d66,'objects':_0x25b40c}},{'id':_0x568d3b['id'],'params':{'unitId':_0x741457,'subUnitId':_0x4e43ff,'shapeId':_0x451d73}}]};}['_updateTransform'](_0x13db56,_0x41ac0f,_0x5a325f,_0xeead14){const _0x53c2eb=_0x38e982;let {range:_0x1984eb,skeleton:_0x419977}=_0x41ac0f,{range:_0x4dfc0e,skeleton:_0x375877}=_0x5a325f,{transform:_0x4ffa07,sheetTransform:_0x44f830}=_0x13db56,_0xcc299e={..._0x4ffa07};if(_0x1984eb){let _0xd51598=_0x2fe142(_0x419977,_0x1984eb),_0x4a537=_0x2fe142(_0x375877,_0x4dfc0e);if(_0xd51598&&_0x4a537){let _0x325438=_0x4a537['startX']-_0xd51598[_0x53c2eb(0x173)],_0x36484f=_0x4a537[_0x53c2eb(0x138)]-_0xd51598[_0x53c2eb(0x138)];_0xcc299e[_0x53c2eb(0x39b)]=(_0xcc299e['left']??0x0)+_0x325438,_0xcc299e[_0x53c2eb(0x218)]=(_0xcc299e[_0x53c2eb(0x218)]??0x0)+_0x36484f;}}else{let _0x591f9d=_0x2fe142(_0x375877,_0x4dfc0e);if(_0xeead14&&_0x591f9d){let _0x3ef01c=(_0xcc299e[_0x53c2eb(0x39b)]??0x0)-_0xeead14[_0x53c2eb(0x39b)],_0x24487e=(_0xcc299e[_0x53c2eb(0x218)]??0x0)-_0xeead14[_0x53c2eb(0x218)];_0xcc299e['left']=_0x591f9d[_0x53c2eb(0x173)]+_0x3ef01c,_0xcc299e[_0x53c2eb(0x218)]=_0x591f9d['startY']+_0x24487e;}else _0xcc299e[_0x53c2eb(0x39b)]=_0x591f9d==null?void 0x0:_0x591f9d[_0x53c2eb(0x173)],_0xcc299e[_0x53c2eb(0x218)]=_0x591f9d==null?void 0x0:_0x591f9d[_0x53c2eb(0x138)];}return{'transform':_0xcc299e,'sheetTransform':_0x3fd5de(_0xcc299e,_0x375877)??_0x44f830};}};ka=X([Y(0x0,_0x304d45(_0x2e3691)),Y(0x1,_0x304d45(_0x5ad4fe)),Y(0x2,_0x304d45(_0x1f9cb1)),Y(0x3,_0x304d45(_0x57544e)),Y(0x4,_0x304d45(_0x372942)),Y(0x5,_0x5789bf),Y(0x6,_0x1fc6ff),Y(0x7,_0x304d45(_0x46746e))],ka);var Aa=class extends _0x45dea2{constructor(_0x188a45,_0x158924){const _0x236cd4=_0x38e982;super(_0x188a45,_0x158924),q(this,_0x236cd4(0x3d4),null),q(this,_0x236cd4(0x119),null),q(this,'_unitId',null),q(this,_0x236cd4(0x229),null),q(this,_0x236cd4(0x19c),!0x1),_0x158924&&this[_0x236cd4(0x250)](_0x158924);}['getDrawingSearch'](){const _0x5d8e1e=_0x38e982;return{'unitId':this[_0x5d8e1e(0x202)],'subUnitId':this[_0x5d8e1e(0x229)],'drawingId':this[_0x5d8e1e(0x3d4)]};}[_0x38e982(0x250)](_0x5bae69){const _0x52602d=_0x38e982;_0x5bae69['shapeId']!==void 0x0&&(this[_0x52602d(0x3d4)]=_0x5bae69['shapeId']),_0x5bae69['unitId']!==void 0x0&&(this[_0x52602d(0x202)]=_0x5bae69[_0x52602d(0x3d6)]),_0x5bae69[_0x52602d(0x2a0)]!==void 0x0&&(this[_0x52602d(0x229)]=_0x5bae69[_0x52602d(0x2a0)]),_0x5bae69[_0x52602d(0x167)]!==void 0x0&&(this['_isStartConnectorPoint']=_0x5bae69['isStartConnectorPoint']),this[_0x52602d(0x1fe)]({'width':_0x5bae69[_0x52602d(0x304)],'height':_0x5bae69[_0x52602d(0x204)]});}[_0x38e982(0x1c5)](_0x171c58){const _0x3de5d5=_0x38e982;_0x417a06[_0x3de5d5(0x28c)](_0x171c58,{'radius':_0x436eb7['cxnPointRadius'],'fill':_0x436eb7[_0x3de5d5(0x12b)],'stroke':_0x436eb7['cxnPointStroke'],'strokeWidth':_0x436eb7[_0x3de5d5(0x2e6)],'evented':!0x0});}};function _0x2e49(_0xa2b5c5,_0x378338){_0xa2b5c5=_0xa2b5c5-0x10d;const _0x29d436=_0x29d4();let _0x2e49f0=_0x29d436[_0xa2b5c5];return _0x2e49f0;}let ja=class extends _0x942aec{constructor(_0x539c37,_0x492c59,_0x52733d,_0x23f9d8,_0x121e03,_0x415f88,_0x3b2fab,_0xe71d68){const _0x3d7d3f=_0x38e982;super(),this[_0x3d7d3f(0x18a)]=_0x539c37,this[_0x3d7d3f(0x338)]=_0x492c59,this[_0x3d7d3f(0x3a5)]=_0x52733d,this['_drawingManagerService']=_0x23f9d8,this[_0x3d7d3f(0x23f)]=_0x121e03,this['_sheetsShapeService']=_0x415f88,this[_0x3d7d3f(0x263)]=_0x3b2fab,this[_0x3d7d3f(0x12c)]=_0xe71d68,q(this,_0x3d7d3f(0x28f),void 0x0),q(this,_0x3d7d3f(0x202),void 0x0),q(this,'_subUnitId',void 0x0),q(this,_0x3d7d3f(0x293),[]),q(this,_0x3d7d3f(0x1fb),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x3d7d3f(0x350),void 0x0),q(this,_0x3d7d3f(0x2b2),!0x1),q(this,_0x3d7d3f(0x169),!0x1),q(this,_0x3d7d3f(0x1ed),!0x1),q(this,_0x3d7d3f(0x29e),void 0x0),q(this,_0x3d7d3f(0x2e9),void 0x0),q(this,_0x3d7d3f(0x1d2),null),this[_0x3d7d3f(0x344)]();}[_0x38e982(0x344)](){const _0x340ab8=_0x38e982;this['_registerDrawingFocusChangeHandler'](),this[_0x340ab8(0x3ca)]();}[_0x38e982(0x252)](){const _0x5a5bf5=_0x38e982;if(!this['_unitId']||!this['_subUnitId']||!this[_0x5a5bf5(0x28f)])return;let _0x2590f7={'unitId':this[_0x5a5bf5(0x202)],'subUnitId':this[_0x5a5bf5(0x229)],'drawingId':this[_0x5a5bf5(0x28f)]},{transform:_0x31e46f}=this[_0x5a5bf5(0x342)][_0x5a5bf5(0x254)](_0x2590f7);if(_0x31e46f)return{'left':_0x31e46f[_0x5a5bf5(0x39b)]||0x0,'top':_0x31e46f[_0x5a5bf5(0x218)]||0x0,'width':_0x31e46f[_0x5a5bf5(0x304)]||0x0,'height':_0x31e46f['height']||0x0,'flipX':_0x31e46f['flipX']||!0x1,'flipY':_0x31e46f[_0x5a5bf5(0x175)]||!0x1,'angle':_0x31e46f[_0x5a5bf5(0x162)]};}[_0x38e982(0x22b)](){const _0x5d3c66=_0x38e982;if(this[_0x5d3c66(0x202)]===void 0x0||this[_0x5d3c66(0x229)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0xcfce57=this['_renderManagerService']['getRenderUnitById'](this[_0x5d3c66(0x202)]);if(!_0xcfce57||!_0xcfce57[_0x5d3c66(0x24f)](_0x151dc3)['getCurrentSkeleton']())return;let {scene:_0x567147}=_0xcfce57,_0x4acd46=this['_getDrawingRect']();if(!_0x4acd46)return;let _0x3081b3=this[_0x5d3c66(0x301)][_0x5d3c66(0x398)](this['_unitId'],this[_0x5d3c66(0x229)],this[_0x5d3c66(0x28f)]);if(!_0x3081b3||!_0x45fca5(_0x3081b3['getShapeType']()))return;let _0x2b420e=_0x3081b3[_0x5d3c66(0x14b)]();if(_0x2b420e[_0x5d3c66(0x23c)]<0x2)return;let _0x2fc339=new _0x9a1248(_0x4acd46),_0x595298=_0x2b420e[0x0],_0x1fdb39=_0x2b420e[_0x2b420e[_0x5d3c66(0x23c)]-0x1],_0x2674c1=_0x2fc339[_0x5d3c66(0x11b)](_0x595298),_0x1361f1=_0x2fc339['localToWorld'](_0x1fdb39);this[_0x5d3c66(0x176)](_0x567147,{..._0x2674c1},!0x0),this[_0x5d3c66(0x176)](_0x567147,{..._0x1361f1},!0x1);}[_0x38e982(0x176)](_0x1f0bf2,_0x328c24,_0x4aaae8){const _0x56a32d=_0x38e982;if(this[_0x56a32d(0x28f)]===void 0x0||this[_0x56a32d(0x202)]===void 0x0||this['_subUnitId']===void 0x0)return;let _0xba23b9=_0x56a32d(0x17f)+this[_0x56a32d(0x202)]+'-'+this[_0x56a32d(0x229)]+'-'+this[_0x56a32d(0x28f)]+'-'+(_0x4aaae8?_0x56a32d(0x165):_0x56a32d(0x299)),_0x577d99=_0x1f0bf2[_0x56a32d(0x260)](_0xba23b9);if(_0x577d99){_0x577d99['transformByState']({'left':_0x328c24['x']-_0x436eb7[_0x56a32d(0x216)],'top':_0x328c24['y']-_0x436eb7[_0x56a32d(0x216)]});return;}let _0x59362d=new Aa(_0xba23b9,{'left':_0x328c24['x']-_0x436eb7[_0x56a32d(0x216)],'top':_0x328c24['y']-_0x436eb7[_0x56a32d(0x216)],'shapeId':this[_0x56a32d(0x28f)],'unitId':this['_unitId'],'subUnitId':this[_0x56a32d(0x229)],'isStartConnectorPoint':_0x4aaae8,'width':_0x436eb7[_0x56a32d(0x216)]*0x2,'height':_0x436eb7['cxnPointRadius']*0x2,'zIndex':_0x5c1c17+0x1,'evented':!0x0});this['_connectorObjects']['push'](_0x59362d),this['_attachConnectorObjectEvent'](_0x59362d,_0x1f0bf2,_0x4aaae8),_0x1f0bf2[_0x56a32d(0x22c)](_0x59362d,_0x5c1c17+0x1);}[_0x38e982(0x310)](_0xafa8c0,_0x25b120){const _0x3cd8ab=_0x38e982;var _0x4f19bd;let _0xf361f={'x':0x0,'y':0x0};if(!_0xafa8c0||!_0x25b120)return _0xf361f;let _0x382f89=this[_0x3cd8ab(0x3a5)][_0x3cd8ab(0x37e)](_0xafa8c0);if(!_0x382f89||!_0x382f89[_0x3cd8ab(0x24f)](_0x151dc3)[_0x3cd8ab(0x17d)](_0x25b120))return _0xf361f;let _0x1bdcf6=_0x382f89[_0x3cd8ab(0x24f)](_0x4c002e),_0x2a798f=_0x1bdcf6==null?void 0x0:_0x1bdcf6[_0x3cd8ab(0x391)]();if(!_0x2a798f)return _0xf361f;let _0xc45831=(_0x4f19bd=this[_0x3cd8ab(0x23f)]['getUnit'](_0xafa8c0))==null?void 0x0:_0x4f19bd[_0x3cd8ab(0x265)](_0x25b120);if(!_0xc45831)return _0xf361f;let _0x2ea9f5=_0x1aea05(_0x2a798f[_0x3cd8ab(0x1e6)],_0x2a798f[_0x3cd8ab(0x137)],_0x382f89[_0x3cd8ab(0x313)],_0xc45831);return _0x2ea9f5?{'x':_0x2ea9f5[_0x3cd8ab(0x245)],'y':_0x2ea9f5[_0x3cd8ab(0x2e0)]}:_0xf361f;}['_getZoomRatio'](_0xee5629,_0x3dd633){const _0x459055=_0x38e982;var _0x873993;let _0x5b5416=(_0x873993=this[_0x459055(0x23f)][_0x459055(0x184)](_0xee5629))==null?void 0x0:_0x873993[_0x459055(0x265)](_0x3dd633);return(_0x5b5416==null?void 0x0:_0x5b5416['getZoomRatio']())??0x1;}[_0x38e982(0x20b)](_0x1f3ad1,_0x580946,_0x22b2f5,_0x55f630,_0x2a4b8c){const _0x252bb0=_0x38e982;this[_0x252bb0(0x29e)][_0x252bb0(0x3df)](),this[_0x252bb0(0x2e9)]['unsubscribe'](),this[_0x252bb0(0x263)][_0x252bb0(0x2a8)]();let _0x1639ba=this['_currentConnectionTarget'];this['_sheetBasicShapeConnectionPointController'][_0x252bb0(0x1c9)]();let _0x1143ce=this[_0x252bb0(0x310)](this[_0x252bb0(0x202)],this['_subUnitId']),_0x331bcd=this[_0x252bb0(0x2cb)](this[_0x252bb0(0x202)],this[_0x252bb0(0x229)]),_0xf5c378={'x':_0x22b2f5[_0x252bb0(0x3cb)]/_0x331bcd+_0x1143ce['x'],'y':_0x22b2f5['offsetY']/_0x331bcd+_0x1143ce['y']},_0x2f9189=_0x1639ba?_0x1639ba[_0x252bb0(0x274)]:_0xf5c378,_0x4ef8b3=_0x55f630?this[_0x252bb0(0x350)]['getEndConnectInfo']():this['_activeShapeModel'][_0x252bb0(0x3ab)](),_0x4cfa89=this[_0x252bb0(0x350)]['getShapeType']();_0x4ef8b3?this[_0x252bb0(0x379)](_0x4ef8b3,_0x2f9189,_0x55f630,_0x1639ba,_0x2a4b8c):this[_0x252bb0(0x1d3)](_0x580946,_0x2f9189,_0x55f630,_0x1639ba,_0x2a4b8c,_0x4cfa89),this['_isConnecting']=!0x1,this[_0x252bb0(0x1ed)]=!0x1,this[_0x252bb0(0x1d2)]=null,_0x1f3ad1['enableObjectsEvent']();}[_0x38e982(0x1d3)](_0x2dc834,_0x39cfb0,_0x42f652,_0x416b9d,_0x2dbe28,_0x508cc5){const _0x375922=_0x38e982;let _0x58687c=_0x508cc5===_0x321129[_0x375922(0x259)]||_0x508cc5===_0x321129[_0x375922(0x372)],_0x2076dd=_0x42f652?_0x39cfb0:_0x2dc834,_0x5108fc=_0x42f652?_0x2dc834:_0x39cfb0,_0x52bc7d=this[_0x375922(0x350)]['getConnectorLinePoints'](),_0x1ed77b=this[_0x375922(0x350)][_0x375922(0x369)](),_0xa2cb44=_0x180d11(_0x1ed77b),_0x25f9d0=_0x9a1248[_0x375922(0x2c7)](_0x52bc7d,_0xa2cb44),_0x146ffa=_0x58687c?_0x9a1248[_0x375922(0x38c)](_0x2076dd,_0x5108fc):_0x9a1248[_0x375922(0x305)](_0x2dc834,_0x39cfb0,_0x42f652,_0x25f9d0);_0x416b9d?this[_0x375922(0x154)](_0x146ffa,_0x416b9d,_0x42f652,_0x2dbe28):this[_0x375922(0x2af)](_0x146ffa,_0x2dbe28);}[_0x38e982(0x379)](_0x2cc513,_0x3261db,_0x4d18cf,_0x3ad56c,_0x389965){const _0x660a57=_0x38e982;let _0x20def7=this[_0x660a57(0x1ad)](_0x2cc513);if(!_0x20def7)return;let _0x18f1e8=_0x3ad56c?_0x3ad56c[_0x660a57(0x162)]:this[_0x660a57(0x208)](_0x20def7[_0x660a57(0x110)],_0x3261db),_0x3271e0;if(_0x3ad56c){let _0x10204a=this[_0x660a57(0x342)]['getDrawingByParam']({'unitId':_0x3ad56c[_0x660a57(0x3d6)],'subUnitId':_0x3ad56c[_0x660a57(0x2a0)],'drawingId':_0x3ad56c['shapeId']});if(_0x10204a!=null&&_0x10204a['transform']){let {left:_0x41ebc4=0x0,top:_0x12bc18=0x0,width:_0x38abc7=0x0,height:_0x3b60e3=0x0,angle:_0x2b2840}=_0x10204a[_0x660a57(0x3d2)];_0x3271e0=_0x39a2e7({'left':_0x41ebc4,'top':_0x12bc18,'width':_0x38abc7,'height':_0x3b60e3},_0x2b2840||0x0);}else _0x3271e0={'left':_0x3261db['x'],'top':_0x3261db['y'],'width':0x0,'height':0x0};}else _0x3271e0={'left':_0x3261db['x'],'top':_0x3261db['y'],'width':0x0,'height':0x0};let _0xc4ed2a={'point':_0x3261db,'angle':_0x18f1e8,'bounds':_0x3271e0},_0x2c6f16=_0x4d18cf?_0xc4ed2a:_0x20def7,_0x1d6c6c=_0x4d18cf?_0x20def7:_0xc4ed2a,_0x35900c=this[_0x660a57(0x350)]['getShapeType'](),_0x2857ac=_0x464f2a(_0x2c6f16,_0x1d6c6c,_0x35900c);this[_0x660a57(0x350)][_0x660a57(0x164)]();let _0x2d3eb9=_0x12fef6(_0x2857ac,_0x35900c);_0x3ad56c?this[_0x660a57(0x1b1)](_0x2d3eb9,_0x3ad56c,_0x2cc513,_0x4d18cf,_0x389965):this[_0x660a57(0x2f8)](_0x2d3eb9,_0x2cc513,_0x4d18cf,_0x389965);}['_executeConnectionCommand'](_0x3594f7,_0x36d31d,_0x6d0a9f,_0x41eab9){const _0x54ad68=_0x38e982;let _0x3f09c7=this['_activeShapeModel'][_0x54ad68(0x18b)]()[_0x54ad68(0x1c1)],_0x338189={..._0x3f09c7},_0x3dc690={'shapeId':_0x36d31d[_0x54ad68(0x3ea)],'cxnIndex':_0x36d31d[_0x54ad68(0x34d)]};_0x6d0a9f?_0x338189[_0x54ad68(0x1ca)]=_0x3dc690:_0x338189['to']=_0x3dc690;let _0x570c1e=this[_0x54ad68(0x350)]['getShapeType'](),_0x1b1889=_0x12fef6(_0x3594f7[_0x54ad68(0x16e)],_0x570c1e),_0x5d3217={'unitId':this['_unitId'],'subUnitId':this[_0x54ad68(0x229)],'connectorShapeId':this[_0x54ad68(0x28f)],'width':_0x3594f7[_0x54ad68(0x177)][_0x54ad68(0x304)],'height':_0x3594f7[_0x54ad68(0x177)][_0x54ad68(0x204)],'left':_0x3594f7[_0x54ad68(0x177)][_0x54ad68(0x39b)],'top':_0x3594f7['worldRect']['top'],'flipX':_0x3594f7[_0x54ad68(0x177)][_0x54ad68(0x1f4)]||!0x1,'flipY':_0x3594f7[_0x54ad68(0x177)][_0x54ad68(0x175)]||!0x1,'newAdjustValues':_0x1b1889[_0x54ad68(0x1e0)],'oldAdjustValues':_0x41eab9,'oldRelation':_0x3f09c7,'newRelation':_0x338189,'newLineType':_0x1b1889[_0x54ad68(0x31f)],'oldLineType':_0x570c1e};this['_commandService']['executeCommand'](_0x111b1f['id'],_0x5d3217);}[_0x38e982(0x2af)](_0x108705,_0x24c563){const _0x14ff6c=_0x38e982;let _0x1d4afa=this[_0x14ff6c(0x350)][_0x14ff6c(0x369)](),_0x25b9d6=_0x12fef6(_0x108705[_0x14ff6c(0x16e)],_0x1d4afa),_0x5d4158={'unitId':this[_0x14ff6c(0x202)],'subUnitId':this[_0x14ff6c(0x229)],'shapeId':this['_activeShapeId'],'width':_0x108705[_0x14ff6c(0x177)][_0x14ff6c(0x304)],'height':_0x108705[_0x14ff6c(0x177)][_0x14ff6c(0x204)],'left':_0x108705[_0x14ff6c(0x177)][_0x14ff6c(0x39b)],'top':_0x108705[_0x14ff6c(0x177)]['top'],'flipX':_0x108705[_0x14ff6c(0x177)][_0x14ff6c(0x1f4)]||!0x1,'flipY':_0x108705[_0x14ff6c(0x177)][_0x14ff6c(0x175)]||!0x1,'angle':_0x108705[_0x14ff6c(0x177)]['angle']||0x0,'newAdjustValues':_0x25b9d6['adjustValues'],'oldAdjustValues':_0x24c563,'newLineType':_0x25b9d6[_0x14ff6c(0x31f)],'oldLineType':_0x1d4afa};this[_0x14ff6c(0x338)][_0x14ff6c(0x190)](_0x354d6f['id'],_0x5d4158);}[_0x38e982(0x1b1)](_0x56742,_0x3f537d,_0x35ab34,_0x11c709,_0xda9044){const _0x11609e=_0x38e982;let _0x338932=this[_0x11609e(0x350)][_0x11609e(0x18b)]()[_0x11609e(0x1c1)],_0x5eebb4={..._0x338932},_0x818266={'shapeId':_0x3f537d['shapeId'],'cxnIndex':_0x3f537d[_0x11609e(0x34d)]};_0x11c709?(_0x5eebb4[_0x11609e(0x1ca)]=_0x818266,_0x5eebb4['to']=_0x35ab34):(_0x5eebb4[_0x11609e(0x1ca)]=_0x35ab34,_0x5eebb4['to']=_0x818266);let _0x23158e={'unitId':this['_unitId'],'subUnitId':this[_0x11609e(0x229)],'connectorShapeId':this[_0x11609e(0x28f)],'width':_0x56742['worldRect'][_0x11609e(0x304)],'height':_0x56742[_0x11609e(0x177)][_0x11609e(0x204)],'left':_0x56742[_0x11609e(0x177)]['left'],'top':_0x56742['worldRect']['top'],'flipX':_0x56742['worldRect'][_0x11609e(0x1f4)]||!0x1,'flipY':_0x56742[_0x11609e(0x177)]['flipY']||!0x1,'oldAdjustValues':_0xda9044,'newAdjustValues':_0x56742['adjustValues'],'newLineType':_0x56742[_0x11609e(0x31f)],'rotation':_0x56742['rotation'],'oldRelation':_0x338932,'newRelation':_0x5eebb4};this[_0x11609e(0x338)]['executeCommand'](_0x111b1f['id'],_0x23158e);}[_0x38e982(0x2f8)](_0x365d26,_0x129e6d,_0x448a3d,_0x157c90){const _0x449823=_0x38e982;let _0x263c88=this[_0x449823(0x350)][_0x449823(0x18b)]()[_0x449823(0x1c1)],_0x21e95d={};_0x448a3d?(_0x21e95d['to']=_0x129e6d,_0x21e95d[_0x449823(0x1ca)]=void 0x0):(_0x21e95d['from']=_0x129e6d,_0x21e95d['to']=void 0x0);let _0x27f0c5={'unitId':this[_0x449823(0x202)],'subUnitId':this[_0x449823(0x229)],'connectorShapeId':this['_activeShapeId'],'width':_0x365d26[_0x449823(0x177)][_0x449823(0x304)],'height':_0x365d26['worldRect'][_0x449823(0x204)],'left':_0x365d26[_0x449823(0x177)][_0x449823(0x39b)],'top':_0x365d26[_0x449823(0x177)][_0x449823(0x218)],'flipX':_0x365d26[_0x449823(0x177)][_0x449823(0x1f4)]||!0x1,'flipY':_0x365d26[_0x449823(0x177)][_0x449823(0x175)]||!0x1,'oldAdjustValues':_0x157c90,'newAdjustValues':_0x365d26[_0x449823(0x1e0)],'newLineType':_0x365d26[_0x449823(0x31f)],'rotation':_0x365d26[_0x449823(0x242)],'oldRelation':_0x263c88,'newRelation':_0x21e95d};this[_0x449823(0x338)][_0x449823(0x190)](_0x111b1f['id'],_0x27f0c5);}['_attachConnectorObjectEvent'](_0x31b885,_0x589d9e,_0x459da0){const _0xfdf8ce=_0x38e982;this[_0xfdf8ce(0x1b0)](_0x3cb981(_0x31b885[_0xfdf8ce(0x149)][_0xfdf8ce(0x29b)]((_0x50f170,_0x5eb5dc)=>{const _0x47e7c7=_0xfdf8ce;let _0x411a2c=_0x31b885[_0x47e7c7(0x1d1)]();if(this['_activeShapeModel']=this[_0x47e7c7(0x301)][_0x47e7c7(0x398)](_0x411a2c[_0x47e7c7(0x3d6)],_0x411a2c[_0x47e7c7(0x2a0)],_0x411a2c['drawingId']),!this[_0x47e7c7(0x350)])return;let _0x519c07={};this['_activeShapeModel'][_0x47e7c7(0x2c8)]()[_0x47e7c7(0x2a5)](_0xcc45a2=>{const _0x506bfb=_0x47e7c7;let _0x18424c=this[_0x506bfb(0x350)]['getAdjustValueByName'](_0xcc45a2);_0x18424c!==void 0x0&&(_0x519c07[_0xcc45a2]=_0x18424c);});let _0x448fae=this['_getDrawingRect']();if(!_0x448fae)return;this[_0x47e7c7(0x1fb)]={..._0x448fae};let _0x5b2a28=new _0x9a1248(this[_0x47e7c7(0x1fb)]),_0x5eaa5d=_0x306bd8({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x47e7c7(0x28f)]}),_0x2f6796=_0x589d9e[_0x47e7c7(0x260)](_0x5eaa5d);this[_0x47e7c7(0x2b2)]=!0x0,_0x589d9e['disableObjectsEvent'](),this[_0x47e7c7(0x12c)][_0x47e7c7(0x35f)](_0x589d9e,this[_0x47e7c7(0x202)],this[_0x47e7c7(0x229)],this[_0x47e7c7(0x28f)]),this['_currentConnectionTarget']=null;let _0x8dd8a0=this[_0x47e7c7(0x350)][_0x47e7c7(0x14b)](),_0x165346=_0x8dd8a0[0x0],_0x4c624e=_0x8dd8a0[_0x8dd8a0[_0x47e7c7(0x23c)]-0x1],_0x3e3cc1=_0x459da0?_0x5b2a28['localToWorld'](_0x4c624e):_0x5b2a28[_0x47e7c7(0x11b)](_0x165346);this['_cxtHandlerPointerMove']=_0x589d9e[_0x47e7c7(0x23e)][_0x47e7c7(0x29b)]((_0x4e849d,_0x1f5514)=>{const _0x10d747=_0x47e7c7;if(!this[_0x10d747(0x2b2)]||!this[_0x10d747(0x350)])return;this[_0x10d747(0x1ed)]||=(this[_0x10d747(0x263)]['clearAdjustControls'](),this[_0x10d747(0x350)][_0x10d747(0x1d5)](),!0x0);let _0x49a96f=this['_getScrollInfo'](this[_0x10d747(0x202)],this[_0x10d747(0x229)]),_0x55eb8c=this['_getZoomRatio'](this['_unitId'],this[_0x10d747(0x229)]),_0x1ab5ba={'x':_0x4e849d[_0x10d747(0x3cb)]/_0x55eb8c+_0x49a96f['x'],'y':_0x4e849d[_0x10d747(0x27e)]/_0x55eb8c+_0x49a96f['y']},_0x42f1fe=this[_0x10d747(0x12c)][_0x10d747(0x121)](_0x1ab5ba);if(_0x42f1fe){let {shapeId:_0x56bb02,unitId:_0x4c56ac,subUnitId:_0x363594}=_0x42f1fe;if(_0x56bb02&&_0x4c56ac&&_0x363594){let _0x4a2715=_0x306bd8({'unitId':_0x4c56ac,'subUnitId':_0x363594,'drawingId':_0x56bb02});_0x42f1fe[_0x10d747(0x162)]=(_0x589d9e['getObjectIncludeInGroup'](_0x4a2715)[_0x10d747(0x162)]||0x0)+_0x42f1fe[_0x10d747(0x162)];}}this[_0x10d747(0x1d2)]=_0x42f1fe;let _0x23e26b=_0x459da0?this[_0x10d747(0x350)][_0x10d747(0x15b)]():this[_0x10d747(0x350)][_0x10d747(0x3ab)]();_0x23e26b?this[_0x10d747(0x1f8)](_0x23e26b,_0x1ab5ba,_0x459da0,_0x2f6796,_0x31b885):this[_0x10d747(0x3af)](_0x1ab5ba,_0x3e3cc1,_0x459da0,_0x2f6796,_0x31b885);}),this[_0x47e7c7(0x2e9)]=_0x589d9e['onPointerUp$'][_0x47e7c7(0x29b)]((_0x312b9c,_0x688f67)=>{this['_handleConnectorPointerUp'](_0x589d9e,_0x3e3cc1,_0x312b9c,_0x459da0,_0x519c07);}),_0x5eb5dc[_0x47e7c7(0x286)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x3c6ed6,_0xa8c34,_0x33d5a9){const _0x32b377=_0x38e982;let _0x2bde85=this[_0x32b377(0x301)][_0x32b377(0x26e)](_0x3c6ed6,_0xa8c34,_0x33d5a9);if(!_0x2bde85||_0x2bde85[_0x32b377(0x23c)]===0x0)return;let _0x4ad61e=this[_0x32b377(0x3a5)][_0x32b377(0x37e)](_0x3c6ed6);if(!_0x4ad61e)return;let {scene:_0x41b9c6}=_0x4ad61e;for(let _0x4e3685 of _0x2bde85){let _0x5e6036=_0x4e3685[_0x32b377(0x1eb)],_0x3b4397=this[_0x32b377(0x301)][_0x32b377(0x398)](_0x3c6ed6,_0xa8c34,_0x5e6036);if(!_0x3b4397)continue;let _0xbdb3ee=_0x3b4397[_0x32b377(0x3ab)](),_0x53db7a=_0x3b4397[_0x32b377(0x15b)](),_0x3a45a7=(_0xbdb3ee==null?void 0x0:_0xbdb3ee['shapeId'])===_0x33d5a9,_0x2f1f91=_0x306bd8({'unitId':_0x3c6ed6,'subUnitId':_0xa8c34,'drawingId':_0x5e6036}),_0x440713=_0x41b9c6['getObjectIncludeInGroup'](_0x2f1f91);if(!_0x440713)continue;let _0x4b3375=this[_0x32b377(0x342)]['getDrawingByParam']({'unitId':_0x3c6ed6,'subUnitId':_0xa8c34,'drawingId':_0x5e6036});_0x4b3375!=null&&_0x4b3375[_0x32b377(0x3d2)]&&(_0xbdb3ee&&_0x53db7a?this[_0x32b377(0x1dc)](_0x3c6ed6,_0xa8c34,_0x5e6036,_0x3b4397,_0xbdb3ee,_0x53db7a,_0x440713):this['_moveConnectorWithShape'](_0x3c6ed6,_0xa8c34,_0x5e6036,_0x3b4397,_0x3a45a7?_0xbdb3ee:_0x53db7a,_0x3a45a7,_0x4b3375,_0x440713));}}[_0x38e982(0x1dc)](_0x467fd7,_0x479749,_0x1c1d78,_0x348823,_0x8c7097,_0x3d7ff6,_0x2421bc){const _0x4a2f1a=_0x38e982;let _0x39e3a2=this[_0x4a2f1a(0x202)],_0x5f4585=this['_subUnitId'];this['_unitId']=_0x467fd7,this[_0x4a2f1a(0x229)]=_0x479749;let _0x3ed54d=this[_0x4a2f1a(0x1ad)](_0x8c7097),_0x4668fc=this['_getConnectPointInfo'](_0x3d7ff6);if(this[_0x4a2f1a(0x202)]=_0x39e3a2,this[_0x4a2f1a(0x229)]=_0x5f4585,!_0x3ed54d||!_0x4668fc)return;let _0x203dfd=_0x348823['getShapeType'](),_0x1daa0b=_0x464f2a(_0x3ed54d,_0x4668fc,_0x203dfd);_0x1daa0b&&_0x348823[_0x4a2f1a(0x2c3)](_0x1daa0b);let _0x20cec2=_0x12fef6(_0x1daa0b,_0x203dfd);_0x20cec2['lineType']!==_0x203dfd&&_0x348823[_0x4a2f1a(0x1bf)](_0x20cec2[_0x4a2f1a(0x31f)]),_0x348823[_0x4a2f1a(0x1d5)]();for(let [_0x4723e1,_0x49e4d4]of Object[_0x4a2f1a(0x128)](_0x20cec2['adjustValues']))_0x348823[_0x4a2f1a(0x285)](_0x4723e1,_0x49e4d4);_0x348823['updateContext']({'width':_0x20cec2[_0x4a2f1a(0x177)]['width'],'height':_0x20cec2[_0x4a2f1a(0x177)][_0x4a2f1a(0x204)]}),_0x2421bc['transformByState']({'flipX':_0x20cec2['worldRect'][_0x4a2f1a(0x1f4)],'flipY':_0x20cec2[_0x4a2f1a(0x177)][_0x4a2f1a(0x175)],'left':_0x20cec2[_0x4a2f1a(0x177)][_0x4a2f1a(0x39b)],'top':_0x20cec2[_0x4a2f1a(0x177)][_0x4a2f1a(0x218)],'width':_0x20cec2[_0x4a2f1a(0x177)][_0x4a2f1a(0x304)],'height':_0x20cec2[_0x4a2f1a(0x177)][_0x4a2f1a(0x204)],'angle':_0x20cec2[_0x4a2f1a(0x242)]}),_0x348823[_0x4a2f1a(0x164)]();}[_0x38e982(0x355)](_0x45a802,_0x32819c,_0x4f195c,_0x44f0ef,_0x141f8f,_0x1dda9e,_0x651ecb,_0x5b19ae){const _0x1ee4d1=_0x38e982;let _0x4e072a=this['_unitId'],_0x50991d=this[_0x1ee4d1(0x229)];this['_unitId']=_0x45a802,this['_subUnitId']=_0x32819c;let _0x38ddaf=this['_getConnectPointInfo'](_0x141f8f);if(this[_0x1ee4d1(0x202)]=_0x4e072a,this['_subUnitId']=_0x50991d,!_0x38ddaf)return;let {left:_0x166371=0x0,top:_0x28978f=0x0,width:_0x119e58=0x0,height:_0x37da8e=0x0,flipX:_0x27f168=!0x1,flipY:_0x4b699c=!0x1}=_0x651ecb[_0x1ee4d1(0x3d2)],_0xd0bb61=_0x44f0ef[_0x1ee4d1(0x14b)]();if(_0xd0bb61[_0x1ee4d1(0x23c)]<0x2)return;let _0x2d9a4d=new _0x9a1248({'left':_0x166371,'top':_0x28978f,'width':_0x119e58,'height':_0x37da8e,'flipX':_0x27f168,'flipY':_0x4b699c}),_0x5e7df0=_0x1dda9e?_0xd0bb61[_0xd0bb61[_0x1ee4d1(0x23c)]-0x1]:_0xd0bb61[0x0],_0x5a63de=_0x2d9a4d[_0x1ee4d1(0x11b)](_0x5e7df0),_0x661221=_0x9a1248[_0x1ee4d1(0x305)](_0x5a63de,_0x38ddaf[_0x1ee4d1(0x110)],!_0x1dda9e);_0x5b19ae[_0x1ee4d1(0x1fe)]({'flipX':_0x661221[_0x1ee4d1(0x177)][_0x1ee4d1(0x1f4)],'flipY':_0x661221['worldRect'][_0x1ee4d1(0x175)],'left':_0x661221['worldRect']['left'],'top':_0x661221[_0x1ee4d1(0x177)][_0x1ee4d1(0x218)],'width':_0x661221['worldRect'][_0x1ee4d1(0x304)],'height':_0x661221[_0x1ee4d1(0x177)][_0x1ee4d1(0x204)],'angle':_0x661221[_0x1ee4d1(0x177)][_0x1ee4d1(0x162)]}),_0x5b19ae[_0x1ee4d1(0x2a6)](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0x2d89b8=_0x38e982;this['_connectorObjects']['length']!==0x0&&(this['_connectorObjects'][_0x2d89b8(0x2a5)](_0xf9398=>{const _0x9c96d0=_0x2d89b8;_0xf9398[_0x9c96d0(0x39d)]();}),this[_0x2d89b8(0x293)]=[]);}[_0x38e982(0x3ca)](){const _0x1dd325=_0x38e982;let _0x1a3846=this[_0x1dd325(0x23f)][_0x1dd325(0x30c)](_0x19c9b9[_0x1dd325(0x2b6)]);this[_0x1dd325(0x1b0)](_0x1a3846[_0x1dd325(0x1fd)](_0x1b4a14(_0x1e3071=>_0x1e3071?_0x1e3071['activeSheet$'][_0x1dd325(0x1fd)](_0x1b4a14(_0x3e68a3=>{const _0x5c6ee1=_0x1dd325;if(!_0x3e68a3)return _0x1d5ee8;let _0x5994ef=_0x1e3071['getUnitId'](),_0x432de8=this[_0x5c6ee1(0x3a5)]['getRenderUnitById'](_0x5994ef),_0x3bb6df=_0x432de8==null?void 0x0:_0x432de8[_0x5c6ee1(0x313)];return _0x3bb6df?_0x402dea(_0x3bb6df):_0x1d5ee8;})):_0x1d5ee8))['subscribe'](_0x38243e=>{const _0x58e8f7=_0x1dd325;let _0x2d3d20=_0x38243e[_0x58e8f7(0x294)]();this[_0x58e8f7(0x1b0)](_0x38243e[_0x58e8f7(0x23e)]['subscribeEvent'](_0x1563a2=>{const _0x438f1f=_0x58e8f7;this[_0x438f1f(0x169)]&&this['_activeShapeId']&&this[_0x438f1f(0x269)]();})),this['disposeWithMe'](_0x2d3d20['changeStart$'][_0x58e8f7(0x335)](_0x47b859=>{const _0x186d0d=_0x58e8f7;let {objects:_0x6335e0}=_0x47b859;this[_0x186d0d(0x269)](),_0x6335e0!==null&&_0x6335e0[_0x186d0d(0x28b)]===0x1&&_0x6335e0[_0x186d0d(0x38e)]()[_0x186d0d(0x267)]()['value']instanceof J&&(this[_0x186d0d(0x169)]=!0x0);})),this[_0x58e8f7(0x1b0)](_0x2d3d20[_0x58e8f7(0x3a7)][_0x58e8f7(0x335)](_0x20906f=>{const _0x5375f4=_0x58e8f7;this['_isDrawingShapePointDown']&&this[_0x5375f4(0x269)]();})),this[_0x58e8f7(0x1b0)](_0x38243e['onPointerUp$']['subscribeEvent'](()=>{const _0x32e61d=_0x58e8f7;this[_0x32e61d(0x169)]&&(this[_0x32e61d(0x169)]=!0x1,this[_0x32e61d(0x22b)]());})),this[_0x58e8f7(0x1b0)](_0x2d3d20['changeEnd$'][_0x58e8f7(0x335)](()=>{const _0xd8847e=_0x58e8f7;this[_0xd8847e(0x202)]&&this['_subUnitId']&&this[_0xd8847e(0x28f)]&&this[_0xd8847e(0x342)]['getDrawingByParam']({'unitId':this[_0xd8847e(0x202)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']})&&(this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x38e982(0x35c)](){const _0x369d29=_0x38e982;this['disposeWithMe'](this['_drawingManagerService'][_0x369d29(0x1a8)][_0x369d29(0x335)](_0x4a51d5=>{const _0x2bf811=_0x369d29;if(_0x4a51d5[_0x2bf811(0x23c)]===0x1){let _0x1927e0=_0x4a51d5[0x0];if(_0x1927e0['drawingType']===_0x1afd9e[_0x2bf811(0x2d5)]){let _0x5641dd=this[_0x2bf811(0x301)][_0x2bf811(0x398)](_0x1927e0[_0x2bf811(0x3d6)],_0x1927e0['subUnitId'],_0x1927e0[_0x2bf811(0x36f)]);if(_0x5641dd&&_0x45fca5(_0x5641dd[_0x2bf811(0x369)]())){this['_activeShapeId']=_0x1927e0[_0x2bf811(0x36f)],this[_0x2bf811(0x202)]=_0x1927e0[_0x2bf811(0x3d6)],this[_0x2bf811(0x229)]=_0x1927e0['subUnitId'],this[_0x2bf811(0x269)](),this['_addShapeConnectorHandlerObjects']();return;}}}this['_activeShapeId']=void 0x0,this[_0x2bf811(0x202)]=void 0x0,this[_0x2bf811(0x229)]=void 0x0,this[_0x2bf811(0x269)]();})),this['disposeWithMe'](this[_0x369d29(0x342)][_0x369d29(0x27f)][_0x369d29(0x335)](_0x1c0fdc=>{const _0x26b5e5=_0x369d29;if(_0x1c0fdc[_0x26b5e5(0x23c)]===0x1){var _0x3f0da3;let _0x57e458=_0x1c0fdc[0x0],_0x4c4fe9=(_0x3f0da3=this['_drawingManagerService']['getDrawingByParam'](_0x57e458))==null?void 0x0:_0x3f0da3['drawingType'];_0x4c4fe9===_0x1afd9e[_0x26b5e5(0x2d5)]&&_0x57e458['drawingId']===this['_activeShapeId']?(this[_0x26b5e5(0x269)](),this[_0x26b5e5(0x22b)]()):!this[_0x26b5e5(0x28f)]&&_0x4c4fe9===_0x1afd9e[_0x26b5e5(0x2d5)]&&this[_0x26b5e5(0x3d8)](_0x57e458[_0x26b5e5(0x3d6)],_0x57e458[_0x26b5e5(0x2a0)],_0x57e458[_0x26b5e5(0x36f)]);}})),this['disposeWithMe'](this['_drawingManagerService']['remove$']['subscribe'](_0x3b2fbd=>{for(let _0x1ebc7a of _0x3b2fbd){let {drawingId:_0x58e35d}=_0x1ebc7a;if(this['_activeShapeId']===_0x58e35d){this['_reset']();return;}}}));}[_0x38e982(0x1f8)](_0xdc510b,_0x1edf22,_0x231752,_0x438081,_0x3d801d){const _0x11552f=_0x38e982;var _0x4ce828;if(!this[_0x11552f(0x350)])return;let _0x3a973c=this[_0x11552f(0x1ad)](_0xdc510b);if(!_0x3a973c)return;let _0x47ca5a=this[_0x11552f(0x1d2)]?this[_0x11552f(0x1d2)][_0x11552f(0x274)]:_0x1edf22,_0xfce7a0=this[_0x11552f(0x1d2)]?this[_0x11552f(0x1d2)]['angle']:this[_0x11552f(0x208)](_0x3a973c[_0x11552f(0x110)],_0x47ca5a),_0x477cd8;if(this[_0x11552f(0x1d2)]){let _0x4711a1=this[_0x11552f(0x342)][_0x11552f(0x254)]({'unitId':this['_currentConnectionTarget'][_0x11552f(0x3d6)],'subUnitId':this[_0x11552f(0x1d2)][_0x11552f(0x2a0)],'drawingId':this[_0x11552f(0x1d2)][_0x11552f(0x3ea)]});if(_0x4711a1!=null&&_0x4711a1['transform']){let {left:_0x5b3783=0x0,top:_0x47d0c5=0x0,width:_0x25623f=0x0,height:_0x7388c9=0x0,angle:_0x192e92}=_0x4711a1['transform'];_0x477cd8=_0x39a2e7({'left':_0x5b3783,'top':_0x47d0c5,'width':_0x25623f,'height':_0x7388c9},_0x192e92||0x0);}else _0x477cd8={'left':_0x47ca5a['x'],'top':_0x47ca5a['y'],'width':0x0,'height':0x0};}else _0x477cd8={'left':_0x47ca5a['x'],'top':_0x47ca5a['y'],'width':0x0,'height':0x0};let _0x2acc1f={'point':_0x47ca5a,'angle':_0xfce7a0,'bounds':_0x477cd8},_0x32063b=_0x231752?_0x2acc1f:_0x3a973c,_0x124f26=_0x231752?_0x3a973c:_0x2acc1f,_0x66023d=this[_0x11552f(0x350)]['getShapeType'](),_0xb7fc85=_0x464f2a(_0x32063b,_0x124f26,_0x66023d);_0xb7fc85&&this[_0x11552f(0x350)][_0x11552f(0x2c3)](_0xb7fc85);let _0x2b9b6f=_0x12fef6(_0xb7fc85,_0x66023d);_0x2b9b6f[_0x11552f(0x31f)]!==_0x66023d&&this[_0x11552f(0x350)]['changeShapeType'](_0x2b9b6f[_0x11552f(0x31f)]);for(let [_0x44a7af,_0x411ac6]of Object['entries'](_0x2b9b6f['adjustValues']))this[_0x11552f(0x350)]['setAdjustValueByName'](_0x44a7af,_0x411ac6);this[_0x11552f(0x350)]['updateContext']({'width':_0x2b9b6f[_0x11552f(0x177)][_0x11552f(0x304)],'height':_0x2b9b6f[_0x11552f(0x177)]['height']}),_0x438081[_0x11552f(0x1fe)]({'flipX':_0x2b9b6f[_0x11552f(0x177)][_0x11552f(0x1f4)],'flipY':_0x2b9b6f['worldRect'][_0x11552f(0x175)],'left':_0x2b9b6f[_0x11552f(0x177)]['left'],'top':_0x2b9b6f['worldRect']['top'],'width':_0x2b9b6f[_0x11552f(0x177)][_0x11552f(0x304)],'height':_0x2b9b6f[_0x11552f(0x177)]['height'],'angle':_0x2b9b6f[_0x11552f(0x242)]}),_0x438081['makeDirty'](!0x0);let _0x2808a8=((_0x4ce828=this[_0x11552f(0x1d2)])==null?void 0x0:_0x4ce828['worldPoint'])??_0x1edf22;_0x3d801d['transformByState']({'left':_0x2808a8['x']-_0x436eb7[_0x11552f(0x216)],'top':_0x2808a8['y']-_0x436eb7['cxnPointRadius']});}[_0x38e982(0x3af)](_0x35d858,_0x3aefa8,_0x48cc8e,_0x33ecf6,_0x312814){const _0x17695e=_0x38e982;var _0x4ee536,_0xc0d27f;let _0x1e8030=((_0x4ee536=this[_0x17695e(0x1d2)])==null?void 0x0:_0x4ee536[_0x17695e(0x274)])??_0x35d858,_0x387e86=_0x9a1248[_0x17695e(0x305)](_0x3aefa8,_0x1e8030,_0x48cc8e);_0x33ecf6[_0x17695e(0x1fe)]({'flipX':_0x387e86[_0x17695e(0x177)]['flipX'],'flipY':_0x387e86[_0x17695e(0x177)][_0x17695e(0x175)],'left':_0x387e86[_0x17695e(0x177)][_0x17695e(0x39b)],'top':_0x387e86[_0x17695e(0x177)]['top'],'width':_0x387e86[_0x17695e(0x177)][_0x17695e(0x304)],'height':_0x387e86[_0x17695e(0x177)][_0x17695e(0x204)],'angle':_0x387e86[_0x17695e(0x177)][_0x17695e(0x162)]});let _0x29d8cc=((_0xc0d27f=this[_0x17695e(0x1d2)])==null?void 0x0:_0xc0d27f[_0x17695e(0x274)])??_0x35d858;_0x312814['transformByState']({'left':_0x29d8cc['x']-_0x436eb7[_0x17695e(0x216)],'top':_0x29d8cc['y']-_0x436eb7['cxnPointRadius']});}[_0x38e982(0x1ad)](_0x8ab30c){const _0x158815=_0x38e982;if(!this['_unitId']||!this['_subUnitId'])return null;let {shapeId:_0x2de76d,cxnIndex:_0x41c68f}=_0x8ab30c,_0x352722=this[_0x158815(0x301)][_0x158815(0x398)](this[_0x158815(0x202)],this[_0x158815(0x229)],_0x2de76d);if(!_0x352722)return null;let _0x51f1f8=this[_0x158815(0x342)]['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this[_0x158815(0x229)],'drawingId':_0x2de76d});if(!(_0x51f1f8!=null&&_0x51f1f8['transform']))return null;let {left:_0x4429e1=0x0,top:_0x17b971=0x0,width:_0x478e11=0x0,height:_0x2b5d15=0x0,flipX:_0x3ba3d4=!0x1,flipY:_0x14b1b8=!0x1,angle:_0x577b3c}=_0x51f1f8['transform'];_0x352722[_0x158815(0x276)]({'width':_0x478e11,'height':_0x2b5d15});let _0x2a7b03=_0x352722['getConnectionSiteList']()[_0x158815(0x397)](_0x6eec2d=>_0x6eec2d[_0x158815(0x124)]===_0x41c68f);if(!_0x2a7b03)return null;let _0x28f485=_0x3ba3d4?_0x478e11-_0x2a7b03['x']:_0x2a7b03['x'],_0x34e233=_0x14b1b8?_0x2b5d15-_0x2a7b03['y']:_0x2a7b03['y'];if(_0x577b3c!==0x0&&_0x577b3c!=null){let _0x5167ca=_0x577b3c*Math['PI']/0xb4,_0x4e2b1d=Math[_0x158815(0x380)](_0x5167ca),_0xbc1d62=Math['sin'](_0x5167ca),_0x2a4965=_0x478e11/0x2,_0x6dd3ba=_0x2b5d15/0x2,_0x487276=_0x28f485-_0x2a4965,_0xfb36ab=_0x34e233-_0x6dd3ba;_0x28f485=_0x2a4965+_0x487276*_0x4e2b1d-_0xfb36ab*_0xbc1d62,_0x34e233=_0x6dd3ba+_0x487276*_0xbc1d62+_0xfb36ab*_0x4e2b1d;}_0x28f485+=_0x4429e1,_0x34e233+=_0x17b971;let _0x4db8eb=_0x2a7b03[_0x158815(0x36d)]/0xea60;_0x3ba3d4&&(_0x4db8eb=0xb4-_0x4db8eb),_0x14b1b8&&(_0x4db8eb=-_0x4db8eb),_0x4db8eb+=_0x577b3c||0x0,_0x4db8eb=(_0x4db8eb%0x168+0x168)%0x168;let _0x378733=_0x39a2e7({'left':_0x4429e1,'top':_0x17b971,'width':_0x478e11,'height':_0x2b5d15},_0x577b3c||0x0);return{'point':{'x':_0x28f485,'y':_0x34e233},'angle':_0x4db8eb,'bounds':_0x378733};}['_calculateFreeEndpointAngle'](_0xd604c2,_0x5b0c3f){const _0x3f4eb4=_0x38e982;let _0x5c8b49=_0x5b0c3f['x']-_0xd604c2['x'],_0x575acf=_0x5b0c3f['y']-_0xd604c2['y'];return Math[_0x3f4eb4(0x23a)](_0x5c8b49)>=Math[_0x3f4eb4(0x23a)](_0x575acf)?_0x5c8b49>=0x0?0xb4:0x0:_0x575acf>=0x0?0x10e:0x5a;}[_0x38e982(0x24c)](){const _0x123ad8=_0x38e982;this[_0x123ad8(0x28f)]=void 0x0,this[_0x123ad8(0x202)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x123ad8(0x269)]();}[_0x38e982(0x39d)](){const _0x29da4c=_0x38e982;this[_0x29da4c(0x269)](),super[_0x29da4c(0x39d)]();}};ja=X([Y(0x1,_0x5aac1e),Y(0x2,_0x1fc6ff),Y(0x3,_0x457af4),Y(0x4,_0x5789bf),Y(0x5,_0x304d45(_0x57544e)),Y(0x6,_0x304d45(Zr)),Y(0x7,_0x304d45(Oa))],ja);let Ma=class extends _0x942aec{constructor(_0x32c46f,_0x1b79bd,_0x4babc0){const _0x50af0c=_0x38e982;super(),this[_0x50af0c(0x14f)]=_0x32c46f,this['_drawingManagerService']=_0x1b79bd,this['_shapeRenderController']=_0x4babc0,this[_0x50af0c(0x28e)]();}[_0x38e982(0x28e)](){const _0x21e3ea=_0x38e982;this[_0x21e3ea(0x1b0)](this[_0x21e3ea(0x14f)][_0x21e3ea(0x29c)][_0x21e3ea(0x179)](this['_sheetPrintInterceptorService'][_0x21e3ea(0x29c)]['getInterceptPoints']()[_0x21e3ea(0x209)],{'handler':(_0x1fdb81,_0x3a7703,_0x41f5d0)=>{const _0x34ebb6=_0x21e3ea;var _0x5a0716;let {unitId:_0xc0c3a0,subUnitId:_0x4f0526,scene:_0x1ead5d,resourceCollector:_0x180d95}=_0x3a7703,_0x42aede=(_0x5a0716=this[_0x34ebb6(0x342)][_0x34ebb6(0x30d)](_0xc0c3a0))==null?void 0x0:_0x5a0716[_0x4f0526];return _0x42aede==null||_0x42aede['order']['forEach'](_0x3db80a=>{const _0x4c5ad4=_0x34ebb6;let _0x3cb79f=_0x42aede[_0x4c5ad4(0x29a)][_0x3db80a];_0x3cb79f[_0x4c5ad4(0x3bd)]===_0x1afd9e['DRAWING_SHAPE']&&!_0x3cb79f[_0x4c5ad4(0x146)]&&this[_0x4c5ad4(0x24b)][_0x4c5ad4(0x3b0)](_0x3cb79f,_0x1ead5d,{'resourceCollector':_0x180d95});}),_0x41f5d0(_0x1fdb81);}}));}};Ma=X([Y(0x0,_0x304d45(_0x1b9d1a)),Y(0x1,_0x457af4),Y(0x2,_0x304d45(Z))],Ma);let Na=class extends _0x942aec{constructor(_0xb906ae,_0x21f0d4,_0x28a448,_0x1b7723){const _0x2f8d8b=_0x38e982;super(),this[_0x2f8d8b(0x338)]=_0xb906ae,this['_univerInstanceService']=_0x21f0d4,this[_0x2f8d8b(0x243)]=_0x28a448,this[_0x2f8d8b(0x197)]=_0x1b7723,this[_0x2f8d8b(0x207)]();}[_0x38e982(0x207)](){const _0x143d3b=_0x38e982;let _0x4c48be=new Set([K['id'],_0x4f77fb['id'],_0x261ac0['id'],_0x569423['id'],_0x354d6f['id']]);this['disposeWithMe'](this[_0x143d3b(0x338)]['beforeCommandExecuted'](_0x36f886=>{const _0x353185=_0x143d3b;let _0x31de56,_0x2c9af4;if(_0x36f886['id']===_0x45fe66['id']||_0x36f886['id']===_0x57d411['id']||_0x36f886['id']===_0x111b1f['id']){let _0x4d33ea=_0x36f886[_0x353185(0x3c6)];_0x31de56=_0x4d33ea[_0x353185(0x3d6)],_0x2c9af4=_0x4d33ea[_0x353185(0x2a0)];}else{if(_0x4c48be[_0x353185(0x3eb)](_0x36f886['id'])){let _0x221ffb=_0x5290f5(this[_0x353185(0x23f)],_0x36f886[_0x353185(0x3c6)]);if((_0x221ffb==null?void 0x0:_0x221ffb[_0x353185(0x22d)][_0x353185(0x126)]()['type'])!==_0xd3ed2e['CHART'])return;_0x31de56=_0x221ffb[_0x353185(0x3d6)],_0x2c9af4=_0x221ffb[_0x353185(0x2a0)];}}_0x31de56&&_0x2c9af4&&(this['_sheetPermissionCheckController'][_0x353185(0x13a)]({'workbookTypes':[_0x5d4362],'worksheetTypes':[_0x2cc33f]},_0x31de56,_0x2c9af4)||this[_0x353185(0x197)][_0x353185(0x387)](this[_0x353185(0x243)]['t'](_0x353185(0x230))));}));}};Na=X([Y(0x0,_0x304d45(_0x5aac1e)),Y(0x1,_0x304d45(_0x5789bf)),Y(0x2,_0x304d45(_0x1180ec)),Y(0x3,_0x304d45(_0x46746e))],Na);let Pa=class{constructor(_0x18e05b){const _0x5bd442=_0x38e982;this[_0x5bd442(0x3a5)]=_0x18e05b;}[_0x38e982(0x288)](_0x42c5fe,_0x591f48){const _0x55d3f5=_0x38e982;let _0x420742=this[_0x55d3f5(0x3a5)][_0x55d3f5(0x37e)](_0x42c5fe[_0x55d3f5(0x3d6)]),_0x5bee0a=_0x420742==null?void 0x0:_0x420742[_0x55d3f5(0x313)];if(!_0x5bee0a)return;let _0x27f77c=_0x306bd8(_0x42c5fe),_0x5a5196=_0x5bee0a[_0x55d3f5(0x260)](_0x27f77c);_0x5a5196==null||_0x5a5196[_0x55d3f5(0x282)](_0x591f48);}};Pa=X([Y(0x0,_0x1fc6ff)],Pa);let Fa=class extends _0x56cd9b{constructor(_0x2f7cde=ma,_0x48432a,_0xc81a06,_0x5dc778,_0x4608e9){const _0x2990bf=_0x38e982;super(),this['_config']=_0x2f7cde,this[_0x2990bf(0x2ea)]=_0x48432a,this[_0x2990bf(0x338)]=_0xc81a06,this[_0x2990bf(0x1ac)]=_0x5dc778,this['_renderManagerService']=_0x4608e9;let {..._0x50e6b0}=_0x510611({},ma,this[_0x2990bf(0x30e)]);this[_0x2990bf(0x1ac)][_0x2990bf(0x1e2)](pa,_0x50e6b0),this['_initCommands']();}['onStarting'](){const _0x5976f1=_0x38e982;this[_0x5976f1(0x2ea)][_0x5976f1(0x385)]([va]),this[_0x5976f1(0x2ea)]['get'](va),_0x5326a8(this[_0x5976f1(0x2ea)],[[Sa],[Ta],[Z],[Ma],[Pa],[$],[wa],[Q],[Na]]);}['onReady'](){const _0x3cc5b1=_0x38e982;_0x5326a8(this[_0x3cc5b1(0x2ea)],[[Oa],[Zr],[ka]]),_0x35c5d7(this[_0x3cc5b1(0x2ea)],[[ka],[Zr]]),[[Oa],[ha],[ja],[ba]][_0x3cc5b1(0x2a5)](_0x104a84=>{const _0x5744b7=_0x3cc5b1;this[_0x5744b7(0x1b0)](this[_0x5744b7(0x3a5)][_0x5744b7(0x203)](_0x19c9b9[_0x5744b7(0x2b6)],_0x104a84));});}[_0x38e982(0x2ae)](){const _0x127b25=_0x38e982;_0x35c5d7(this[_0x127b25(0x2ea)],[[Sa],[Ta],[Z],[Ma],[Pa],[$],[wa],[Q],[Na]]);}['onSteady'](){const _0x459c6e=_0x38e982;this[_0x459c6e(0x2ea)][_0x459c6e(0x292)](Sa)[_0x459c6e(0x17b)]();}[_0x38e982(0x26d)](){const _0x2d9f29=_0x38e982;[$r,K,Qr,fa]['forEach'](_0x86f051=>this[_0x2d9f29(0x1b0)](this[_0x2d9f29(0x338)]['registerCommand'](_0x86f051)));}};q(Fa,'type',_0x19c9b9[_0x38e982(0x2b6)]),q(Fa,_0x38e982(0x213),'SHEET_SHAPE_UI_PLUGIN'),q(Fa,_0x38e982(0x3c5),ua),q(Fa,_0x38e982(0x3c0),da),Fa=X([_0x5d2b6b(_0x457d6d,_0x237574,_0x3c8ce8,_0x30c5c0,_0x42e7b6,_0x3e7a54,_0x507ef6,_0x16b801,_0x5ef2f9,_0x2fdc71,_0x410968,_0x22cb29,_0x2117cd),Y(0x1,_0x304d45(_0x4cf09b)),Y(0x2,_0x5aac1e),Y(0x3,_0x3e62ab),Y(0x4,_0x1fc6ff)],Fa);const Ia={'type':_0x4dec04[_0x38e982(0x188)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}};function La(){const _0x30d92b=_0x38e982;let _0x21eb87=_0x459a0a(_0x457af4),_0x50f390=_0x3f5135(()=>_0x21eb87[_0x30d92b(0x1a8)],_0x21eb87[_0x30d92b(0x212)](),!0x1,[_0x21eb87]);return _0x50f390[_0x30d92b(0x23c)]===0x0?null:_0xbd5fef(_0x30d92b(0x3aa),{'children':_0x49dd55('div',{'className':_0x30d92b(0x2bd),'children':[_0xbd5fef(_0x35b2d6,{'drawings':_0x50f390,'hasCropper':!0x1}),_0xbd5fef(_0x316f41,{'drawings':_0x50f390})]})});}function Ra(_0x10048f){let {unitId:_0x3852e5,subUnitId:_0x248649,shapeId:_0x53774d}=_0x10048f,_0x457d66=_0x459a0a(_0x5aac1e),_0x25c148=_0x459a0a(Pa);return _0xbd5fef(_0x46e52b,{..._0x10048f,'positionEditor':_0xbd5fef(La,{}),'onUpdateShapeData':(_0x1d8544,_0x42cbe)=>{Wr(_0x457d66,_0x3852e5,_0x248649,_0x53774d,_0x1d8544,_0x42cbe);},'onUpdateLineShapeData':(_0x115d1f,_0x506cab)=>{Gr(_0x457d66,_0x3852e5,_0x248649,_0x53774d,_0x115d1f,_0x506cab);},'onUpdateShapeFillImage':_0xbe11bf=>{const _0x3cd42e=_0x2e49;_0x25c148[_0x3cd42e(0x288)]({'unitId':_0x3852e5,'subUnitId':_0x248649,'drawingId':_0x53774d},_0xbe11bf);}});}function za(_0x15bc7f){const _0x289a40=_0x38e982;let _0x2fbb7a=_0x459a0a(_0x17c0f2),_0x11a011=_0x3f5135(()=>_0x2fbb7a[_0x289a40(0x368)],_0x2fbb7a['getVisible'](),!0x1,[_0x2fbb7a]),_0x5a374e=_0x15bc7f[_0x289a40(0x302)][_0x289a40(0x35e)];return!_0x5a374e||!_0x11a011?null:_0xbd5fef(Ba,{..._0x5a374e,'canvasElement':_0x15bc7f[_0x289a40(0x302)][_0x289a40(0x345)]});}function Ba(_0x2d52d1){const _0x372580=_0x38e982;let _0x5a1468=_0x459a0a(_0x5aac1e),_0x38e1f7=_0x459a0a(_0x57544e),{unitId:_0x5a0cde,subUnitId:_0x194e4b,drawingId:_0x28fc7b,drawingType:_0x13cb71,shapeType:_0x50d1a5}=_0x2d52d1,[_0xf1530d,_0x10ba28]=_0x4ddc5d(_0x2d52d1[_0x372580(0x194)]),_0x401f20=_0x2e7dde(()=>_0x43a739(_0xf1530d),[_0xf1530d]),_0x38e0f1=_0x2e7dde(()=>_0x461fbf(_0xf1530d),[_0xf1530d]);_0x6e1245(()=>{const _0x94df06=_0x372580;let _0x4f8a69=_0x5a1468[_0x94df06(0x325)](_0x26cd8b=>{const _0x32ffa0=_0x94df06;if(_0x26cd8b['id']!==_0x5a5b4d['id'])return;let _0x2099f7=_0x38e1f7[_0x32ffa0(0x284)](_0x5a0cde,_0x194e4b,_0x28fc7b);_0x2099f7&&_0x10ba28(_0x2099f7);});return()=>_0x4f8a69[_0x94df06(0x39d)]();},[_0x5a1468,_0x28fc7b,_0x38e1f7,_0x194e4b,_0x5a0cde]);let _0x59ce56=_0x43ec6a=>{_0x10ba28(_0x46b301=>({..._0x46b301,..._0x43ec6a}));},_0x3ca8d3=_0x57beea=>{const _0x3a3655=_0x372580;let _0x22288e=_0x7053b8(_0xf1530d,_0x57beea);Wr(_0x5a1468,_0x5a0cde,_0x194e4b,_0x28fc7b,{'oldShapeData':{'shapeText':_0xf1530d[_0x3a3655(0x1fa)]}},_0x22288e),_0x59ce56(_0x22288e);},_0x4148e5=_0x574ef4({'hostType':_0x19c9b9[_0x372580(0x2b6)],'unitId':_0x5a0cde,'subUnitId':_0x194e4b,'shapeId':_0x28fc7b,'shapeData':_0xf1530d,'onUpdateBinding':_0x38f27b=>{const _0x10fb52=_0x372580;let _0x5ed221={'formulaBinding':_0x38f27b};Wr(_0x5a1468,_0x5a0cde,_0x194e4b,_0x28fc7b,{'oldShapeData':{'formulaBinding':_0xf1530d[_0x10fb52(0x1a9)]}},_0x5ed221),_0x59ce56(_0x5ed221);}});return _0x49dd55(_0x5673b6,{'children':[_0xbd5fef(_0x5c75fb,{'canvasElement':_0x2d52d1['canvasElement'],'shapeData':_0xf1530d,'shapeType':_0x50d1a5,'textStyle':{'ff':_0x436eb7['shapeText'][_0x372580(0x2c6)],'fs':_0x436eb7['shapeText']['fontSize'],'cl':{'rgb':_0x436eb7[_0x372580(0x1fa)]['color']},..._0x401f20},'textModel':_0x38e0f1?{'ha':_0x38e0f1['ha']??_0x34ba0f[_0x372580(0x33c)],'va':_0x38e0f1['va']??_0xb24be5[_0x372580(0x19e)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x436eb7[_0x372580(0x3c1)],'defaultGradientEndColor':_0x436eb7[_0x372580(0x2fd)],'defaultStrokeColor':_0x436eb7[_0x372580(0x22f)],'extensionGroups':_0x4148e5[_0x372580(0x10d)],'floatingObjectToolbarPosition':_0x5cb346[_0x372580(0x3b2)],'onUpdateShapeData':(_0x5d0cc1,_0x4f3325)=>{Wr(_0x5a1468,_0x5a0cde,_0x194e4b,_0x28fc7b,_0x5d0cc1,_0x4f3325),_0x4f3325&&_0x59ce56(_0x4f3325);},'onUpdateText':_0x3ca8d3,'onOpenPanel':()=>{const _0x1f9478=_0x372580;_0x5a1468[_0x1f9478(0x190)](si['id'],{'unitId':_0x5a0cde,'subUnitId':_0x194e4b,'drawingId':_0x28fc7b});},'onDelete':()=>{const _0x54d7d5=_0x372580;_0x5a1468[_0x54d7d5(0x190)](_0x815e46['id'],{'unitId':_0x5a0cde,'drawings':[{'unitId':_0x5a0cde,'subUnitId':_0x194e4b,'drawingId':_0x28fc7b,'drawingType':_0x13cb71}]});}}),_0x4148e5[_0x372580(0x324)]]});}function Va(_0x3f1fd3){const _0x43de1f=_0x38e982;return!!_0x3f1fd3&&_0x43de1f(0x19f)in _0x3f1fd3&&_0x43de1f(0x36e)in _0x3f1fd3;}const Ha=_0x540462(()=>{const _0x1bd0d9=_0x38e982;let _0x370e79=_0x459a0a($),_0x5a6f1c=_0x459a0a(_0x57544e),_0x3238b8=_0x459a0a(_0x457af4),_0x2ff4c6=_0x459a0a(_0x5aac1e),_0x2d8aee=_0x459a0a(_0x302f61),_0x144053=_0x459a0a(_0x1fc6ff),_0x47fa6c=_0x2e7dde(()=>({'getShapeModel':(_0x19f983,_0x57730e,_0x7dc6b5)=>_0x5a6f1c[_0x1bd0d9(0x398)](_0x19f983,_0x57730e,_0x7dc6b5),'getShapeData':(_0x35fe69,_0x5e782f,_0x4bb9a4)=>_0x5a6f1c[_0x1bd0d9(0x284)](_0x35fe69,_0x5e782f,_0x4bb9a4),'getDrawingTransform':(_0x28787b,_0x3fc6c4,_0x37c367)=>{const _0x3fc939=_0x1bd0d9;let _0x155b85=_0x3238b8['getDrawingByParam']({'unitId':_0x28787b,'subUnitId':_0x3fc6c4,'drawingId':_0x37c367});return _0x155b85==null?void 0x0:_0x155b85[_0x3fc939(0x3d2)];},'updateShapeText':({unitId:_0x5983ec,subUnitId:_0x392cbf,shapeId:_0x178309,shapeText:_0x3b6f08,oldShapeText:_0x412214,hostSize:_0x673911})=>{const _0x1a56a3=_0x1bd0d9;_0x2d8aee[_0x1a56a3(0x24e)](_0x5983ec,()=>{const _0x249c73=_0x1a56a3;var _0x3dfe76;let _0x22b03c=_0x2ff4c6[_0x249c73(0x2f7)](K['id'],{'unitId':_0x5983ec,'subUnitId':_0x392cbf,'shapeId':_0x178309,'shapeData':{'shapeText':_0x3b6f08},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x412214}}});if(!_0x22b03c||!_0x673911)return _0x22b03c;let _0x209770=_0x3238b8['getDrawingByParam']({'unitId':_0x5983ec,'subUnitId':_0x392cbf,'drawingId':_0x178309}),_0x2d6bed=_0x209770==null?void 0x0:_0x209770[_0x249c73(0x3d2)];if(!Va(_0x209770)||!_0x2d6bed)return!0x1;let _0x2cfea6={..._0x2d6bed,'width':_0x673911[_0x249c73(0x304)],'height':_0x673911[_0x249c73(0x204)]},_0x322e87=(_0x3dfe76=_0x144053['getRenderUnitById'](_0x5983ec))==null||(_0x3dfe76=_0x3dfe76[_0x249c73(0x24f)](_0x151dc3)[_0x249c73(0x201)](_0x392cbf))==null?void 0x0:_0x3dfe76['skeleton'];return _0x2ff4c6[_0x249c73(0x2f7)](_0x438f96['id'],{'unitId':_0x5983ec,'drawings':[{..._0x209770,'transform':_0x2cfea6,'sheetTransform':_0x322e87?_0x3fd5de(_0x2cfea6,_0x322e87)??_0x209770[_0x249c73(0x36e)]:_0x209770['sheetTransform'],'axisAlignSheetTransform':_0x322e87?_0x27d83c(_0x2cfea6,_0x322e87)??_0x209770[_0x249c73(0x19f)]:_0x209770[_0x249c73(0x19f)]}]});});},'updateHostSize':({unitId:_0x478b6b,subUnitId:_0xa68d97,shapeId:_0x19bcb6,width:_0x4551e5,height:_0x43230e})=>{const _0x3ab432=_0x1bd0d9;var _0x127bc3;let _0x437168=_0x3238b8[_0x3ab432(0x254)]({'unitId':_0x478b6b,'subUnitId':_0xa68d97,'drawingId':_0x19bcb6}),_0xf99835=_0x437168==null?void 0x0:_0x437168['transform'];if(!Va(_0x437168)||!_0xf99835)return;let _0x5833e7={..._0xf99835,'width':_0x4551e5,'height':_0x43230e},_0x5f1974=(_0x127bc3=_0x144053['getRenderUnitById'](_0x478b6b))==null||(_0x127bc3=_0x127bc3[_0x3ab432(0x24f)](_0x151dc3)[_0x3ab432(0x201)](_0xa68d97))==null?void 0x0:_0x127bc3[_0x3ab432(0x19b)],_0x26d044=_0x5f1974?_0x3fd5de(_0x5833e7,_0x5f1974)??_0x437168[_0x3ab432(0x36e)]:_0x437168[_0x3ab432(0x36e)],_0x32e968=_0x5f1974?_0x27d83c(_0x5833e7,_0x5f1974)??_0x437168[_0x3ab432(0x19f)]:_0x437168[_0x3ab432(0x19f)];_0x2ff4c6[_0x3ab432(0x190)](_0x438f96['id'],{'unitId':_0x478b6b,'drawings':[{..._0x437168,'transform':_0x5833e7,'sheetTransform':_0x26d044,'axisAlignSheetTransform':_0x32e968}]});},'allowHostSizeShrink':({unitId:_0x55aad9,subUnitId:_0x3540a7,shapeId:_0x83c2ac})=>_0x3d7e43(_0x5a6f1c[_0x1bd0d9(0x284)](_0x55aad9,_0x3540a7,_0x83c2ac)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x2ff4c6,_0x3238b8,_0x144053,_0x5a6f1c,_0x2d8aee]),_0x1ab8bb=_0x2e7dde(()=>({'viewportKeys':{'main':_0xd1d04a[_0x1bd0d9(0x3b4)],'leftTop':_0xd1d04a['VIEW_MAIN_LEFT_TOP'],'top':_0xd1d04a['VIEW_MAIN_TOP'],'left':_0xd1d04a[_0x1bd0d9(0x1c8)]},'getSkeleton':(_0x58845c,_0x4e4e09)=>{const _0x243695=_0x1bd0d9;var _0x27fdff;return((_0x27fdff=_0x58845c[_0x243695(0x24f)](_0x151dc3)[_0x243695(0x201)](_0x4e4e09[_0x243695(0x2a0)]))==null?void 0x0:_0x27fdff['skeleton'])??null;}}),[]);return _0xbd5fef(_0x5ba1ea,{'adapter':_0x47fa6c,'editingService':_0x370e79,'editorUnitId':ii,'positionOptions':_0x1ab8bb});});let Ua=class extends _0x942aec{constructor(_0x5b7f0b,_0x2b047a){const _0x47e372=_0x38e982;super(),this['_componentManager']=_0x5b7f0b,this[_0x47e372(0x17e)]=_0x2b047a,this[_0x47e372(0x248)](),this[_0x47e372(0x20d)]();}[_0x38e982(0x248)](){const _0x410b40=_0x38e982;this[_0x410b40(0x17e)][_0x410b40(0x3eb)](_0x410b40(0x2bc))||this[_0x410b40(0x1b0)](this[_0x410b40(0x17e)][_0x410b40(0x206)]({'ObjectLayersIcon':_0x28a4bd})),this['_iconManager'][_0x410b40(0x3eb)](_0x410b40(0x389))||this['disposeWithMe'](this[_0x410b40(0x17e)][_0x410b40(0x206)]({'FlipHorizontalIcon':_0x332ddb})),this[_0x410b40(0x17e)][_0x410b40(0x3eb)](_0x410b40(0x115))||this['disposeWithMe'](this[_0x410b40(0x17e)][_0x410b40(0x206)]({'FlipVerticalIcon':_0x1b633e})),this[_0x410b40(0x17e)][_0x410b40(0x3eb)](_0x410b40(0x3da))||this[_0x410b40(0x1b0)](this['_iconManager'][_0x410b40(0x206)]({'BottomIcon':_0x5d3fb9})),this[_0x410b40(0x17e)]['has'](_0x410b40(0x2c4))||this[_0x410b40(0x1b0)](this[_0x410b40(0x17e)][_0x410b40(0x206)]({'MoveDownIcon':_0x5ac96f})),this[_0x410b40(0x17e)][_0x410b40(0x3eb)](_0x410b40(0x330))||this['disposeWithMe'](this[_0x410b40(0x17e)]['register']({'MoveUpIcon':_0x415dfc})),this[_0x410b40(0x17e)][_0x410b40(0x3eb)]('ShapeFormatSettingIcon')||this['disposeWithMe'](this['_iconManager'][_0x410b40(0x206)]({'ShapeFormatSettingIcon':_0x323ccb})),this[_0x410b40(0x17e)]['has']('TopmostIcon')||this[_0x410b40(0x1b0)](this['_iconManager'][_0x410b40(0x206)]({'TopmostIcon':_0x3d647d}));}[_0x38e982(0x20d)](){const _0x55b435=_0x38e982;this[_0x55b435(0x1b0)](this[_0x55b435(0x26c)][_0x55b435(0x206)](ei,Ra)),this[_0x55b435(0x1b0)](this['_componentManager']['register'](ti,ga)),this['disposeWithMe'](this['_componentManager'][_0x55b435(0x206)](di,_i)),this[_0x55b435(0x1b0)](this[_0x55b435(0x26c)][_0x55b435(0x206)](fi,mi)),this[_0x55b435(0x26c)]['hasDefault'](_0x768cfe)||this[_0x55b435(0x1b0)](this[_0x55b435(0x26c)]['register'](_0x768cfe,gi)),this[_0x55b435(0x1b0)](this[_0x55b435(0x26c)][_0x55b435(0x206)](ni,za)),this[_0x55b435(0x1b0)](this[_0x55b435(0x26c)][_0x55b435(0x206)](Ai,Pi)),this['disposeWithMe'](this[_0x55b435(0x26c)][_0x55b435(0x206)](ki,Fi)),this[_0x55b435(0x1b0)](this['_componentManager'][_0x55b435(0x206)](ji,Ii)),this[_0x55b435(0x1b0)](this[_0x55b435(0x26c)][_0x55b435(0x206)](Mi,Li)),this[_0x55b435(0x1b0)](this[_0x55b435(0x26c)][_0x55b435(0x206)](ai,_0x217120)),this['disposeWithMe'](this[_0x55b435(0x26c)]['register'](_0x55b435(0x348),Ha));}};Ua=X([Y(0x0,_0x304d45(_0x5a4631)),Y(0x1,_0x304d45(_0x26766a))],Ua);let Wa=class extends _0x942aec{constructor(_0x3656bc,_0x58af24,_0x1c28fa,_0x4ff89d,_0x6aca80,_0x2c6b0c,_0x2d6e9b,_0x39919d,_0x57e3b4){const _0x118ec6=_0x38e982;super();let _0x16dbf5=_0xacb7c6=>{const _0x4b1db4=_0x2e49;var _0x1b8905,_0x6a82c;return(((_0x1b8905=_0x39919d['getPermissionPoint'](new _0x5d4362(_0xacb7c6[_0x4b1db4(0x3d6)])['id']))==null?void 0x0:_0x1b8905[_0x4b1db4(0x134)])??!0x0)&&(((_0x6a82c=_0x39919d[_0x4b1db4(0x16f)](new _0x2cc33f(_0xacb7c6[_0x4b1db4(0x3d6)],_0xacb7c6['subUnitId'])['id']))==null?void 0x0:_0x6a82c['value'])??!0x0);},_0xc9e268=_0x12d099=>_0x12d099[_0x118ec6(0x3ea)]&&_0x16dbf5(_0x12d099)?_0x1c28fa[_0x118ec6(0x284)](_0x12d099[_0x118ec6(0x3d6)],_0x12d099[_0x118ec6(0x2a0)],_0x12d099[_0x118ec6(0x3ea)])??null:null,_0x5dbde8=()=>{const _0x535d46=_0x118ec6;let _0x39fe71=_0x6aca80[_0x535d46(0x212)](),_0x101565=_0x39fe71['length']===0x1?_0x39fe71[0x0]:null;return(_0x101565==null?void 0x0:_0x101565[_0x535d46(0x3bd)])===_0x1afd9e[_0x535d46(0x2d5)]&&_0x101565[_0x535d46(0x3d6)]===_0x3656bc['unitId']?{'unitId':_0x101565[_0x535d46(0x3d6)],'subUnitId':_0x101565[_0x535d46(0x2a0)],'shapeId':_0x101565[_0x535d46(0x36f)]}:null;};this['disposeWithMe'](_0x585447(_0x3656bc,_0x58af24,{'changes$':_0x185653(_0x6aca80['focus$'],_0x4ff89d[_0x118ec6(0x172)],_0x39919d[_0x118ec6(0x247)]),'isActive':()=>{const _0x2669ab=_0x118ec6;var _0x87bfde;return((_0x87bfde=_0x2c6b0c[_0x2669ab(0x1c6)]())==null?void 0x0:_0x87bfde[_0x2669ab(0x1cc)]())===_0x3656bc['unitId']&&!_0x2d6e9b[_0x2669ab(0x11e)](_0x5a8010)&&_0x6aca80[_0x2669ab(0x212)]()[_0x2669ab(0x38a)](_0x84357d=>_0x84357d[_0x2669ab(0x3d6)]===_0x3656bc['unitId']);},'getSelectedTarget':_0x5dbde8,'getSource':()=>{let _0x53053d=_0x5dbde8();return _0x53053d?_0xc9e268(_0x53053d):null;},'getTarget':_0x5251fa=>{const _0x134704=_0x118ec6;let _0x53b1f4=_0x3656bc['scene'][_0x134704(0x2e2)](new _0x225e34(_0x5251fa[_0x134704(0x3cb)],_0x5251fa[_0x134704(0x27e)]));if(!(_0x53b1f4 instanceof J))return null;let _0x11cb4b={'unitId':_0x3656bc[_0x134704(0x3d6)],'subUnitId':_0x53b1f4[_0x134704(0x2a0)],'shapeId':_0x53b1f4[_0x134704(0x3ea)]};return _0x16dbf5(_0x11cb4b)?_0x11cb4b:null;},'getShape':_0xc9e268,'update':(_0x3ecc5f,_0x70d2a,_0x3d7585)=>_0x57e3b4[_0x118ec6(0x190)](K['id'],{..._0x3ecc5f,'shapeData':_0x3d7585,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x70d2a}})}));}};Wa=X([Y(0x1,_0x304d45(_0x5ea0fd)),Y(0x2,_0x304d45(_0x57544e)),Y(0x3,_0x304d45($)),Y(0x4,_0x457af4),Y(0x5,_0x5789bf),Y(0x6,_0x467548),Y(0x7,_0x33574c),Y(0x8,_0x5aac1e)],Wa);const Ga=_0x38e982(0x26b);let Ka=class extends _0x942aec{constructor(_0x3016b2,_0x1d60ea,_0x35bca0,_0x3ee8ca,_0x46d3f2,_0x599a38){const _0x53ba4a=_0x38e982;super(),this[_0x53ba4a(0x151)]=_0x3016b2,this[_0x53ba4a(0x2d2)]=_0x1d60ea,this['_drawingManagerService']=_0x35bca0,this[_0x53ba4a(0x23f)]=_0x3ee8ca,this['_renderManagerService']=_0x46d3f2,this[_0x53ba4a(0x25b)]=_0x599a38,q(this,_0x53ba4a(0x244),!0x1),this['_menuManagerService'][_0x53ba4a(0x3b1)](sa),this[_0x53ba4a(0x1b0)](_0x3cb981(this[_0x53ba4a(0x342)][_0x53ba4a(0x1a8)][_0x53ba4a(0x335)](()=>this['_update']()))),this[_0x53ba4a(0x31a)]();}[_0x38e982(0x39d)](){const _0x44be96=_0x38e982;this[_0x44be96(0x25b)]['setFallbackVisible'](!0x1,Ga),this[_0x44be96(0x14d)](),super[_0x44be96(0x39d)]();}[_0x38e982(0x31a)](){const _0x117c05=_0x38e982;var _0x42c998;let _0x5a8664=this['_drawingManagerService'][_0x117c05(0x212)](),_0x21ca8d=_0x5a8664[_0x117c05(0x23c)]===0x1?_0x5a8664[0x0]:void 0x0;if((_0x21ca8d==null?void 0x0:_0x21ca8d[_0x117c05(0x3bd)])!==_0x1afd9e[_0x117c05(0x2d5)]||this['_univerInstanceService'][_0x117c05(0x120)](_0x21ca8d[_0x117c05(0x3d6)])!==_0x19c9b9['UNIVER_SHEET']){this[_0x117c05(0x25b)][_0x117c05(0x231)](!0x1,Ga),this[_0x117c05(0x14d)]();return;}let _0x14c458=(_0x42c998=this[_0x117c05(0x3a5)][_0x117c05(0x37e)](_0x21ca8d['unitId']))==null?void 0x0:_0x42c998[_0x117c05(0x3ec)]['getCanvasElement'](),_0x551861=_0x163141(_0x14c458)===_0x117c05(0x1ab);this[_0x117c05(0x25b)][_0x117c05(0x231)](_0x551861,Ga),_0x551861?this['_hide']():this[_0x117c05(0x244)]||(this['_visible']=!0x0,this[_0x117c05(0x2d2)]['showContextualTab'](ri,{'activate':!0x0}));}[_0x38e982(0x14d)](){const _0x506ce3=_0x38e982;this[_0x506ce3(0x244)]&&(this['_visible']=!0x1,this[_0x506ce3(0x2d2)]['hideContextualTab'](ri),this[_0x506ce3(0x2d2)][_0x506ce3(0x210)]([]));}};Ka=X([Y(0x0,_0x3d7840),Y(0x1,_0x22f46b),Y(0x2,_0x457af4),Y(0x3,_0x5789bf),Y(0x4,_0x1fc6ff),Y(0x5,_0x304d45(_0x17c0f2))],Ka);let qa=class extends _0x54f47a{constructor(_0x250554,_0x509e9a,_0x37f9a7,_0x508ef6,_0x50861d,_0x3e72b9,_0x22bbc0,_0x49420c,_0x4f87f3,_0x8cdf02){super(_0x250554,_0x509e9a,_0x37f9a7,_0x508ef6,_0x50861d,_0x3e72b9,_0x22bbc0,_0x49420c,_0x4f87f3,_0x8cdf02,{'componentKey':ai,'editorUnitId':ii});}};qa=X([Y(0x1,_0x304d45(_0x1214d0)),Y(0x2,_0x304d45(_0x34ad9a)),Y(0x3,_0x304d45(_0xc704d0)),Y(0x4,_0x5aac1e),Y(0x5,_0x304d45(_0x5b3d6d)),Y(0x6,_0x304d45(_0x19e867)),Y(0x7,_0x304d45(_0x28a9cc)),Y(0x8,_0x304d45(_0x14e599)),Y(0x9,_0x304d45($))],qa);let Ja=class extends _0x3904ee{constructor(_0x49e9e1,_0x119c8e,_0x221950,_0x34e6e8,_0x347667){const _0x246c85=_0x38e982;super(_0x49e9e1,_0x119c8e,{'editing$':_0x221950[_0x246c85(0x172)],'resolve':_0x2dff27=>{const _0x5c40d8=_0x246c85;var _0x3c057b,_0x1d75c0,_0x125e98;let _0x369573=new _0x225e34(_0x2dff27[_0x5c40d8(0x3cb)],_0x2dff27[_0x5c40d8(0x27e)]),_0x44097e=((_0x3c057b=_0x49e9e1['scene'][_0x5c40d8(0x2cf)](_0x369573))==null?void 0x0:_0x3c057b[_0x5c40d8(0x279)](_0x369573))??_0x369573,_0x25e5a2=_0xa96c91(_0x49e9e1[_0x5c40d8(0x313)]['pick'](_0x369573)??null,_0x44097e);if(!(_0x25e5a2 instanceof J))return null;let _0x395433=_0x25e5a2[_0x5c40d8(0x1db)](_0x44097e);if(!_0x395433)return null;let _0x5d9270=_0x25e5a2,_0x8fe74d={'componentKey':_0x1b4edc['componentKey'],'direction':_0x5c40d8(0x31d),'offset':[0x0,0xa],'onClickOutside':()=>_0x119c8e[_0x5c40d8(0x139)]()};return{'object':_0x25e5a2,'info':{..._0x395433,'unitId':_0x25e5a2['unitId'],'subUnitId':_0x25e5a2[_0x5c40d8(0x2a0)],'shapeKey':_0x25e5a2[_0x5c40d8(0x143)],'readonly':!0x0,'copyable':((_0x1d75c0=_0x347667[_0x5c40d8(0x16f)](new _0x3527b0(_0x25e5a2[_0x5c40d8(0x3d6)])['id']))==null?void 0x0:_0x1d75c0[_0x5c40d8(0x134)])!==!0x1&&((_0x125e98=_0x347667[_0x5c40d8(0x16f)](new _0x3feae7(_0x25e5a2[_0x5c40d8(0x3d6)],_0x25e5a2[_0x5c40d8(0x2a0)])['id']))==null?void 0x0:_0x125e98[_0x5c40d8(0x134)])!==!0x1},'attachPopup':()=>_0x34e6e8[_0x5c40d8(0x2fc)](_0x5d9270,_0x8fe74d)};}}),this['disposeWithMe'](_0x49e9e1['unit'][_0x246c85(0x2fa)]['subscribe'](()=>this['clear']()));}};Ja=X([Y(0x1,_0x304d45(_0x19e867)),Y(0x2,_0x304d45($)),Y(0x3,_0x304d45(_0x3f309f)),Y(0x4,_0x33574c)],Ja);let Ya=class extends _0x942aec{constructor(_0x4696ee,_0x1ec66e,_0x464060,_0x3368fc,_0x3a9364,_0x5adfdb,_0x432dd7,_0x52138a,_0x46d8d9,_0x2d1d1f,_0x2d039a){const _0x562b4c=_0x38e982;super(),this['_univerInstanceService']=_0x4696ee,this[_0x562b4c(0x376)]=_0x1ec66e,this[_0x562b4c(0x151)]=_0x464060,this['_sheetsShapeService']=_0x3368fc,this['_localeService']=_0x3a9364,this[_0x562b4c(0x338)]=_0x5adfdb,this['_drawingManagerService']=_0x432dd7,this['_sheetCanvasPopManagerService']=_0x52138a,this[_0x562b4c(0x3be)]=_0x46d8d9,this[_0x562b4c(0x3a5)]=_0x2d1d1f,this['_shapeTextEditingService']=_0x2d039a,q(this,_0x562b4c(0x2bf),null),q(this,_0x562b4c(0x3e3),null),q(this,_0x562b4c(0x3b6),!0x1),q(this,_0x562b4c(0x1be),0x0),q(this,'_shapePopupMenuDisposable',null),q(this,_0x562b4c(0x2ec),[]),this['_initMenu'](),this[_0x562b4c(0x1b0)](this[_0x562b4c(0x23f)]['getCurrentTypeOfUnit$'](_0x19c9b9[_0x562b4c(0x2b6)])[_0x562b4c(0x335)](_0x230b72=>{const _0x1c575a=_0x562b4c;if(!_0x230b72){var _0xe9fbba;(_0xe9fbba=this[_0x1c575a(0x2bf)])==null||_0xe9fbba['dispose']();}})),this['_registerOperations'](),this[_0x562b4c(0x17b)](),this['disposeWithMe'](this[_0x562b4c(0x396)][_0x562b4c(0x172)][_0x562b4c(0x335)](_0x1ee607=>{const _0x378703=_0x562b4c;_0x1ee607&&this[_0x378703(0x2a4)]();}));}[_0x38e982(0x3b5)](){const _0x3ab901=_0x38e982;this[_0x3ab901(0x151)][_0x3ab901(0x3b1)](la);}[_0x38e982(0x17b)](){const _0x3ff5c1=_0x38e982;this['_shapePopupMenuDisposable']||=this['disposeWithMe'](_0x4c4456(this[_0x3ff5c1(0x3a5)],_0x19c9b9[_0x3ff5c1(0x2b6)],_0x4730f3=>this[_0x3ff5c1(0x320)](_0x4730f3)));}['_getShapeInfo'](_0x333c58,_0x2102f8,_0x33f4e4){const _0x1cc56b=_0x38e982;let _0x97f73e=this[_0x1cc56b(0x301)][_0x1cc56b(0x3d3)](_0x333c58,_0x2102f8,_0x33f4e4),_0x567459=this[_0x1cc56b(0x301)][_0x1cc56b(0x284)](_0x333c58,_0x2102f8,_0x33f4e4);return _0x97f73e!==void 0x0&&_0x567459!==void 0x0?{'shapeData':_0x567459,'shapeId':_0x33f4e4,'shapeType':_0x97f73e,'unitId':_0x333c58,'subUnitId':_0x2102f8,'version':this[_0x1cc56b(0x1be)],'disableShapeOption':!0x1}:null;}[_0x38e982(0x2a4)](){const _0x3b2c5c=_0x38e982;this['_disposePopups'][_0x3b2c5c(0x2a5)](_0x505e46=>_0x505e46[_0x3b2c5c(0x39d)]()),this[_0x3b2c5c(0x2ec)][_0x3b2c5c(0x23c)]=0x0;}[_0x38e982(0x320)](_0x1c203c){const _0x2aae83=_0x38e982;let _0x4983ad=new _0x21c758();return _0x4983ad[_0x2aae83(0x385)](_0x1c203c[_0x2aae83(0x16a)][_0x2aae83(0x335)](()=>{const _0x4c737d=_0x2aae83;let _0x1d4946=_0x1c203c[_0x4c737d(0x32e)]();if(this['_clearPopups'](),this['_isOpenedShapeEditPanel']||_0x1d4946[_0x4c737d(0x28b)]>0x1)return;let _0x1508d1=_0x1d4946['values']()[_0x4c737d(0x267)]()[_0x4c737d(0x134)];if(!_0x1508d1)return;let _0x5b054d=this[_0x4c737d(0x342)]['getDrawingOKey'](_0x1508d1['oKey']);if(!_0x5b054d||_0x5b054d[_0x4c737d(0x3bd)]!==_0x1afd9e['DRAWING_SHAPE'])return;let {unitId:_0x34cf15,subUnitId:_0x2dd7ff,drawingId:_0xb70aa3,drawingType:_0xcec52}=_0x5b054d,_0x200f04=this[_0x4c737d(0x14e)](_0x34cf15,_0x2dd7ff,_0xb70aa3);if(!_0x200f04)return;this[_0x4c737d(0x3be)][_0x4c737d(0x228)](_0x27fe43,!0x0);let _0x55aeb1=this['_renderManagerService'][_0x4c737d(0x37e)](_0x34cf15),_0x5111b8=((_0x55aeb1==null?void 0x0:_0x55aeb1[_0x4c737d(0x3c2)])===!0x1?_0x55aeb1[_0x4c737d(0x24f)](_0x3f309f):this[_0x4c737d(0x18e)])[_0x4c737d(0x2fc)](_0x1508d1,{'componentKey':ni,'direction':_0x4c737d(0x256),'offset':[0x0,_0x326b6b],'extraProps':{'unitId':_0x34cf15,'subUnitId':_0x2dd7ff,'drawingId':_0xb70aa3,'drawingType':_0xcec52,'shapeType':_0x200f04[_0x4c737d(0x185)],'shapeData':_0x200f04['shapeData']}});this[_0x4c737d(0x2ec)]['push'](this[_0x4c737d(0x1b0)](_0x5111b8)),this[_0x4c737d(0x342)][_0x4c737d(0x212)]()[_0x4c737d(0x397)](_0x56fe22=>_0x56fe22[_0x4c737d(0x3d6)]===_0x34cf15&&_0x56fe22['subUnitId']===_0x2dd7ff&&_0x56fe22[_0x4c737d(0x36f)]===_0xb70aa3)||this[_0x4c737d(0x342)]['focusDrawing']([{'unitId':_0x34cf15,'subUnitId':_0x2dd7ff,'drawingId':_0xb70aa3}]);})),_0x4983ad[_0x2aae83(0x385)](_0x1c203c['clearControl$'][_0x2aae83(0x335)](()=>{const _0x47300d=_0x2aae83;this[_0x47300d(0x2a4)](),this[_0x47300d(0x3be)]['setContextValue'](_0x27fe43,!0x1),this['_drawingManagerService'][_0x47300d(0x116)](null);})),_0x4983ad['add'](_0x1c203c[_0x2aae83(0x3a7)][_0x2aae83(0x335)](()=>{const _0x41c9ab=_0x2aae83;this[_0x41c9ab(0x2a4)]();})),_0x4983ad[_0x2aae83(0x385)](_0x1c203c[_0x2aae83(0x232)][_0x2aae83(0x335)](()=>{this['_clearPopups']();})),_0x3cb981(()=>{const _0x3337e6=_0x2aae83;_0x4983ad[_0x3337e6(0x39d)](),this['_clearPopups']();});}['_registerOperations'](){const _0xf71899=_0x38e982;this['disposeWithMe'](this['_commandService'][_0xf71899(0x325)](_0x2306df=>{const _0x489ceb=_0xf71899;if(_0x2306df['id']===si['id']){let {unitId:_0x173c3c,subUnitId:_0xbbb858,drawingId:_0x2ce970}=_0x2306df[_0x489ceb(0x3c6)];this[_0x489ceb(0x1be)]+=0x1,this[_0x489ceb(0x3e3)]=this[_0x489ceb(0x14e)](_0x173c3c,_0xbbb858,_0x2ce970),this['_clearPopups'](),this[_0x489ceb(0x2c5)]();}if(_0x2306df['id']===Ia['id']&&(this[_0x489ceb(0x3e3)]=null,this[_0x489ceb(0x1c0)]()),_0x2306df['id']===_0x5a5b4d['id']){let {unitId:_0x24cc16,subUnitId:_0x357c83,shapeId:_0xfc862a}=_0x2306df[_0x489ceb(0x3c6)];if(this[_0x489ceb(0x3e3)]&&this[_0x489ceb(0x3e3)][_0x489ceb(0x3ea)]===_0xfc862a){let _0x11cebb=this[_0x489ceb(0x14e)](_0x24cc16,_0x357c83,_0xfc862a);_0x11cebb&&(this['_shapeEditPanelVersion']+=0x1,_0x11cebb[_0x489ceb(0x3c0)]=this[_0x489ceb(0x1be)],this[_0x489ceb(0x3e3)]=_0x11cebb,this[_0x489ceb(0x3b6)]&&this[_0x489ceb(0x2c5)]());}}})),this[_0xf71899(0x1b0)](this[_0xf71899(0x342)]['focus$'][_0xf71899(0x335)](_0x2924c6=>{const _0x222844=_0xf71899;if(this[_0x222844(0x3b6)]===!0x1)return;if(_0x2924c6[_0x222844(0x23c)]===0x0){this[_0x222844(0x3e3)]=null,this[_0x222844(0x1c0)]();return;}if(_0x2924c6[_0x222844(0x23c)]===0x1&&_0x2924c6[0x0]['drawingType']===_0x1afd9e[_0x222844(0x2d5)]&&(this[_0x222844(0x1be)]+=0x1,this[_0x222844(0x3e3)]=this[_0x222844(0x14e)](_0x2924c6[0x0]['unitId'],_0x2924c6[0x0][_0x222844(0x2a0)],_0x2924c6[0x0][_0x222844(0x36f)]),this[_0x222844(0x3e3)])){this[_0x222844(0x2c5)]();return;}let _0x53fec4=_0x2924c6[_0x222844(0x2d3)](_0x146134=>_0x146134['drawingType']===_0x1afd9e[_0x222844(0x2d5)]);if(_0x2924c6[_0x222844(0x23c)]>0x1&&_0x53fec4[_0x222844(0x23c)]===_0x2924c6['length']){if(this['_shapeEditPanelVersion']+=0x1,this[_0x222844(0x3e3)]=this[_0x222844(0x14e)](_0x2924c6[0x0]['unitId'],_0x2924c6[0x0]['subUnitId'],_0x2924c6[0x0][_0x222844(0x36f)]),this['_activeShapeInfo']){this[_0x222844(0x2c5)]();return;}}else{if(this[_0x222844(0x1be)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x2924c6[0x0][_0x222844(0x3d6)],_0x2924c6[0x0][_0x222844(0x2a0)],_0x2924c6[0x0]['drawingId']),this[_0x222844(0x3e3)]){this[_0x222844(0x3e3)][_0x222844(0x131)]=!0x0,this[_0x222844(0x2c5)]();return;}}this[_0x222844(0x1c0)]();}));}[_0x38e982(0x2c5)](){const _0x1a2170=_0x38e982;this[_0x1a2170(0x3e3)]&&(this['_sidebarDisposable']=this[_0x1a2170(0x376)][_0x1a2170(0x189)]({'id':ei,'header':{'title':this['_localeService']['t'](_0x1a2170(0x249))},'width':0x184,'children':{'label':ei,...this[_0x1a2170(0x3e3)]},'onClose':()=>{const _0x541e06=_0x1a2170;this[_0x541e06(0x342)][_0x541e06(0x116)](null),this[_0x541e06(0x3be)]['setContextValue'](_0x27fe43,!0x1),this[_0x541e06(0x2bf)]=null;}}),this[_0x1a2170(0x3b6)]=!0x0);}[_0x38e982(0x1c0)](){const _0x1a1e7e=_0x38e982;this[_0x1a1e7e(0x3b6)]=!0x1,this[_0x1a1e7e(0x376)][_0x1a1e7e(0x281)](ei),this[_0x1a1e7e(0x2bf)]=null,this['_contextService'][_0x1a1e7e(0x228)](_0x27fe43,!0x1),this[_0x1a1e7e(0x342)][_0x1a1e7e(0x116)](null);}};Ya=X([Y(0x0,_0x5789bf),Y(0x1,_0x304d45(_0x4e0164)),Y(0x2,_0x3d7840),Y(0x3,_0x304d45(_0x57544e)),Y(0x4,_0x304d45(_0x1180ec)),Y(0x5,_0x5aac1e),Y(0x6,_0x457af4),Y(0x7,_0x304d45(_0x3f309f)),Y(0x8,_0x467548),Y(0x9,_0x1fc6ff),Y(0xa,_0x304d45($))],Ya);let Xa=class extends _0x56cd9b{constructor(_0x74f86f=ma,_0x5d847f,_0x4ea420,_0x297168,_0x11147f){const _0x467324=_0x38e982;super(),this[_0x467324(0x30e)]=_0x74f86f,this[_0x467324(0x2ea)]=_0x5d847f,this[_0x467324(0x338)]=_0x4ea420,this['_configService']=_0x297168,this['_renderManagerService']=_0x11147f;let {..._0x18d5ca}=_0x510611({},ma,this[_0x467324(0x30e)]);this['_configService'][_0x467324(0x1e2)](pa,_0x18d5ca),this['_initCommands']();}[_0x38e982(0x2ae)](){const _0x562804=_0x38e982;this[_0x562804(0x3a5)]['registerRenderModule'](_0x19c9b9[_0x562804(0x364)],[qa]),_0x35c5d7(this[_0x562804(0x2ea)],[[Ya],[Ta],[Z],[Ma]]);}[_0x38e982(0x370)](){const _0x43ec60=_0x38e982;this[_0x43ec60(0x2ea)][_0x43ec60(0x292)](Ya)[_0x43ec60(0x17b)]();}[_0x38e982(0x283)](){const _0x479d05=_0x38e982;[[Oa],[Zr],[ka]][_0x479d05(0x2a5)](_0x16a07f=>this[_0x479d05(0x2ea)][_0x479d05(0x385)](_0x16a07f)),_0x35c5d7(this['_injector'],[[ka],[Zr]]),this['_renderManagerService'][_0x479d05(0x203)](_0x19c9b9['UNIVER_SHEET'],[Oa]),this[_0x479d05(0x3a5)][_0x479d05(0x203)](_0x19c9b9[_0x479d05(0x2b6)],[ha]),this[_0x479d05(0x3a5)][_0x479d05(0x203)](_0x19c9b9[_0x479d05(0x2b6)],[ja]),this['_renderManagerService']['registerRenderModule'](_0x19c9b9[_0x479d05(0x2b6)],[ya]),this[_0x479d05(0x1b0)](this['_renderManagerService']['registerRenderModule'](_0x19c9b9[_0x479d05(0x2b6)],[Ja])),this[_0x479d05(0x1b0)](this['_renderManagerService']['registerRenderModule'](_0x19c9b9['UNIVER_SHEET'],[Wa]));}[_0x38e982(0x2ef)](){const _0x2130a8=_0x38e982;this[_0x2130a8(0x2ea)][_0x2130a8(0x385)]([Ua]),this[_0x2130a8(0x2ea)][_0x2130a8(0x292)](Ua);let _0x482c63=this[_0x2130a8(0x2ea)];[[Ya],[Ta],[Z],[Ma],[Pa],[$],[wa],[Q],[Na],[Ka]][_0x2130a8(0x2a5)](_0x2e7616=>_0x482c63[_0x2130a8(0x385)](_0x2e7616)),_0x35c5d7(this[_0x2130a8(0x2ea)],[[Ya],[Ta],[Z],[Pa],[$],[wa],[Q],[Na],[Ka]]);}[_0x38e982(0x26d)](){const _0x50cc53=_0x38e982;[$r,K,Ia,si,oi,Qr,li,ui][_0x50cc53(0x2a5)](_0x582ba4=>this[_0x50cc53(0x1b0)](this['_commandService'][_0x50cc53(0x13e)](_0x582ba4)));}};q(Xa,_0x38e982(0x2b8),_0x19c9b9[_0x38e982(0x2b6)]),q(Xa,_0x38e982(0x213),'SHEET_SHAPE_UI_PLUGIN'),q(Xa,_0x38e982(0x3c5),ua),q(Xa,'version',da),Xa=X([_0x5d2b6b(_0x457d6d,_0x237574,_0x3c8ce8,_0x34fb40,_0x30c5c0,_0x42e7b6,_0x3e7a54,_0x507ef6,_0x16b801,_0x2be966,_0x2fdc71,_0x398cc1,_0x1f70a8),Y(0x1,_0x304d45(_0x4cf09b)),Y(0x2,_0x5aac1e),Y(0x3,_0x3e62ab),Y(0x4,_0x1fc6ff)],Xa);export{sa as SheetsShapeUIContextualRibbonSchema,la as SheetsShapeUIMenuSchema,Fa as UniverSheetsShapeMobileUIPlugin,Xa as UniverSheetsShapeUIPlugin};
|