@univerjs-pro/sheets-shape-ui 1.0.0-rc.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/commands/command/set-shape-text-align.command.d.ts +5 -0
- package/lib/types/commands/command/set-shape-text-style.command.d.ts +7 -0
- package/lib/types/commands/command/set-shape-text-vertical-align.command.d.ts +5 -0
- package/lib/types/commands/command/shape-doc-align.command.d.ts +10 -0
- package/lib/types/commands/menu/shape-doc-format.menu.d.ts +18 -0
- package/lib/types/commands/menu/shape-font-size.menu.d.ts +5 -0
- package/lib/types/commands/menu/shape-text-align.menu.d.ts +9 -0
- package/lib/types/commands/menu/shape-vertical-align.menu.d.ts +9 -0
- package/lib/types/commands/operations/actvie-drawing-operation.d.ts +2 -0
- package/lib/types/controllers/config.schema.d.ts +5 -0
- package/lib/types/controllers/format-painter.controller.d.ts +10 -0
- package/lib/types/controllers/menu.schema.d.ts +2 -0
- package/lib/types/controllers/mobile/ui.controller.d.ts +21 -6
- package/lib/types/controllers/sheets-shape-ui.controller.d.ts +126 -0
- package/lib/types/mobile-plugin.d.ts +1 -3
- package/lib/types/view-model/shape-data-model.d.ts +6 -0
- package/lib/types/views/ShapeOptions.d.ts +30 -0
- package/lib/types/views/object-list-panel/MobileSheetDrawingObjectListPanel.d.ts +1 -0
- package/lib/types/views/object-list-panel/SheetDrawingObjectListPanel.d.ts +5 -1
- package/lib/types/views/shape-editor-panel/ShapeLineEditor.d.ts +11 -0
- package/lib/types/views/shape-editor-panel/index.d.ts +1 -0
- package/lib/types/views/shape-text-editor/Editor.d.ts +11 -0
- package/lib/types/views/shape-text-editor/ShapePositionWrapper.d.ts +15 -0
- package/lib/types/views/shape-text-editor/hooks/use-shape-position.d.ts +37 -0
- package/lib/types/views/shapes.d.ts +58 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +21 -21
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1736bc=_0x39b9;(function(_0x54b619,_0x2d8440){const _0x383823=_0x39b9,_0x42e062=_0x54b619();while(!![]){try{const _0x24ebf2=parseInt(_0x383823(0x118))/0x1*(-parseInt(_0x383823(0x186))/0x2)+-parseInt(_0x383823(0x2eb))/0x3*(parseInt(_0x383823(0x20d))/0x4)+parseInt(_0x383823(0x21b))/0x5*(parseInt(_0x383823(0x14f))/0x6)+parseInt(_0x383823(0x183))/0x7+parseInt(_0x383823(0xb7))/0x8+-parseInt(_0x383823(0x278))/0x9*(parseInt(_0x383823(0x2a1))/0xa)+parseInt(_0x383823(0x239))/0xb*(parseInt(_0x383823(0x1a6))/0xc);if(_0x24ebf2===_0x2d8440)break;else _0x42e062['push'](_0x42e062['shift']());}catch(_0x15de81){_0x42e062['push'](_0x42e062['shift']());}}}(_0x480f,0x28061));import{FormulaShapeAnimationController as _0x29ef31,MobileShapeActionPanel as _0x59a3d1,MobileShapeEditorService as _0x280c27,SHAPE_CHANGE_PICKER_COMPONENT as _0x4c369d,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x58f752,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x519163,ShapeEditPanel as _0x336736,ShapeFloatingToolbar as _0x9bffae,ShapeFloatingToolbarService as _0x33a812,ShapeFloatingToolbarToggleFactory as _0x400f12,ShapeFormulaRibbonControl as _0x3e436a,ShapeGroupEnum as _0x1ad825,ShapePickerDropdown as _0x202ec3,ShapePickerPanel as _0x4c940d,ShapeQuickStyleGallery as _0x34b568,ShapeStyleRibbonControl as _0x2ddc1e,ShapeTextEditorContainer as _0xb725f4,ShapeTextFloatMenuRenderControllerBase as _0x2195c4,ShapeTextFloatToolbar as _0x7663fd,ShapeTextHyperLinkPopupService as _0x1043e9,ShapeTextRibbonControl as _0x472872,ToggleShapeFloatingToolbarOperation as _0x38c136,UniverShapeEditorMobileUIPlugin as _0xb56b5c,UniverShapeEditorUIPlugin as _0x328de7,activateDrawingObject as _0x4d5ff3,bindRenderTransformerLifecycle as _0x21e0b2,buildShapeTextDataUpdate as _0x4585dd,clearActiveDrawingObjects as _0x889d2c,drawFormulaShapeAnimationLayers as _0x5710e1,getDrawingTypeNameKey as _0xc0a46,getTextModel as _0x21c367,getTextStyle as _0x2b7d82,normalizeShapeTextModel as _0x29049a,plainShapeTextToDocumentData as _0xb9d653,prepareShapeTextDocumentData as _0x483abe,resolveFormulaShapeAutoFitSize as _0xa13f05,resolveShapeContextualRibbonHostMode as _0x282c42,resolveShapeTextDocumentRenderLayout as _0x2b46d8,resolveShapeTextEditorBehaviorShapeData as _0x10b96c,resolveShapeTextEditorWrapStrategy as _0x5175bd,shouldAllowShapeTextEditorHostSizeShrink as _0x1001c5,shouldClipShapeTextDocument as _0x16f26c,useFormulaShapeToolbar as _0x2f7ce1}from'@univerjs-pro/shape-editor-ui';import{BuiltInUIPart as _0x2d61b7,ComponentManager as _0x4dd843,ContextMenuGroup as _0x315581,ContextMenuPosition as _0x90e4da,FloatingObjectToolbarPosition as _0x442d12,IMenuManagerService as _0x24e4c2,IRibbonService as _0x33a09a,ISidebarService as _0x253182,IUIPartsService as _0x1de38a,IconManager as _0x2db3fe,MenuItemType as _0x3eae92,MenuManagerPosition as _0x5a6e31,RibbonInsertGroup as _0x1bd193,UndoRedoGroupService as _0x437672,UniverMobileUIPlugin as _0x452efd,connectInjector as _0x6c1575,getMenuHiddenObservable as _0x59bb88,useDependency as _0x52bd02,useObservable as _0x5ed75a}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x29012a,ImageSourceTypeEnum as _0x3adca7,ShapeArrowSizeEnum as _0x48c141,ShapeArrowTypeEnum as _0x11a207,ShapeDefaultConfig as _0x48b11f,ShapeFillEnum as _0x25088f,ShapeLineTypeEnum as _0x2f4161,ShapeModel as _0x1e155b,ShapeRenderModeEnum as _0x524c50,ShapeTypeEnum as _0x47ece1,computeConnectorRouteLayout as _0x2ebb59,getBasicShapeRotateBound as _0x48cf2f,isConnectorShape as _0x1e2b3c,isCurvedConnectorShape as _0x2588b5,routeConnectorLineShape as _0x1f4629}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x24bf87,UniverShapeEditorPlugin as _0x1d8e9c,applyQuickStyleToShapeData as _0x278af8,cloneShapeDataForType as _0x3f9533,createShapeFormulaDocument as _0x4348c0,createShapeTextBoxShapeData as _0x43f681,getShapeQuickStylePreset as _0x556add,getShapeQuickStyleType as _0x10f52f,resolveActiveShapeQuickStylePresetId as _0x4b5e5c}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x1eec17,InsertSheetsShapeMutation as _0x547644,RemoveSheetsShapeMutation as _0x4cc520,SetShapeDrawingDataCommand as _0x4371cc,SheetsShapeService as _0xa0be75,ToggleSheetsShapeFlipCommand as _0x47c06c,UniverSheetsShapePlugin as _0x4a9bd9,UpdateConnectorRelationCommand as _0x5d34a9,UpdateLineShapeResizeCommand as _0x569468,UpdateSheetsShapeDataMutation as _0x596a36}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x2bb004,CommandType as _0x1f5d9a,DependentOn as _0x9d7bfc,Disposable as _0x3f60c8,DisposableCollection as _0xd7a0a,DocumentDataModel as _0x307273,DrawingTypeEnum as _0xc7f81b,FOCUSING_COMMON_DRAWINGS as _0x23f4fa,FOCUSING_SHAPE_TEXT_EDITOR as _0x34ceb0,HorizontalAlign as _0xe8342a,ICommandService as _0x376420,IConfigService as _0x3a1263,IContextService as _0x27f6db,IImageIoService as _0x18f069,IPermissionService as _0x5c9149,IURLImageService as _0x3d5914,IUndoRedoService as _0x11874d,IUniverInstanceService as _0xfd8e0,Inject as _0x5b826f,Injector as _0x3d8c1a,LocaleService as _0x3cb7ae,Plugin as _0x3d2a7b,UniverInstanceType as _0x1e715c,VerticalAlign as _0x47a0f4,createInternalEditorID as _0xffeffa,generateRandomId as _0x165ac1,merge as _0x22c628,registerDependencies as _0x5f5105,toDisposable as _0x219635,touchDependencies as _0x52029a}from'@univerjs/core';import{CopySheetCommand as _0x20177c,RemoveSheetCommand as _0x55d3ac,SheetInterceptorService as _0x4a67b2,SheetPermissionCheckController as _0x1a8251,SheetSkeletonService as _0x1c246a,SheetsSelectionsService as _0x47ce2c,UniverSheetsPlugin as _0x4a60c5,WorkbookEditablePermission as _0x304e82,WorksheetEditPermission as _0x8f9fb,attachRangeWithCoord as _0x4b8ddf,discreteRangeToRange as _0x5a8046,getSheetCommandTarget as _0x747b0d}from'@univerjs/sheets';import{IDrawingManagerService as _0x4cc7db,SetDrawingSelectedOperation as _0x135719,UniverDrawingPlugin as _0x45f01f,getDrawingShapeKeyByDrawingSearch as _0x308e11,getOrCreateDrawingCopyPlan as _0x46e7d8}from'@univerjs/drawing';import{CURSOR_TYPE as _0x5c9ad6,Circle as _0xf73dbe,DRAWING_OBJECT_LAYER_INDEX as _0x21c410,DocumentSkeleton as _0x24acae,DocumentViewModel as _0x458ef6,Documents as _0x4337e8,IRenderManagerService as _0x41745c,Image as _0x1708cd,RENDER_CLASS_TYPE as _0x3a2883,SHEET_VIEWPORT_KEY as _0xfbd7a1,Shape as _0x4983ab,Transform as _0x17d708,UniverRenderEnginePlugin as _0x463852,Vector2 as _0x18a488}from'@univerjs/engine-render';import{COPY_TYPE as _0x1ceaa3,ISheetClipboardService as _0x15bbbc,PREDEFINED_HOOK_NAME as _0x3218cf,SheetCanvasPopManagerService as _0x7fc406,SheetPrintInterceptorService as _0x4835fa,SheetScrollManagerService as _0x332edb,SheetSkeletonManagerService as _0x361e49,UniverSheetsMobileUIPlugin as _0x2f3bce,UniverSheetsUIPlugin as _0x393371,deriveStateFromActiveSheet$ as _0x581b5,getCurrentRangeDisable$ as _0x1e37af,getViewportByCell as _0x1144c3}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x4c863b,EMPTY as _0x220d4d,Observable as _0x2adfd4,map as _0x5f083b,of as _0x129e12,startWith as _0x386efb,switchMap as _0x57ed4d}from'rxjs';import{DrawingCommonPanel as _0x3c6967,DrawingImageClipService as _0x312bad,DrawingRenderService as _0x25eaea,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x293bed,OBJECT_LIST_FLOATING_SECTION_ID as _0x21899f,ObjectListPanelBase as _0x20b7e3,UniverDrawingUIPlugin as _0xab6d1a,getCurrentUnitInfo as _0x482589,getObjectListPanelLabels as _0x3fec17,getObjectListPanelSectionIdForDrawingType as _0x4a01aa,getObjectListPanelTypeName as _0x1a1024,insertGroupObject as _0x56b2a0}from'@univerjs/drawing-ui';import{MobileDropdown as _0x42f0df}from'@univerjs/design';import{Fragment as _0x546f33,jsx as _0x92a68d,jsxs as _0x40fb71}from'react/jsx-runtime';import{DrawingApplyType as _0x58cf1a,ISheetDrawingService as _0x3dc5da,RemoveSheetDrawingCommand as _0x4839e5,SetDrawingApplyMutation as _0x36941f,SetDrawingArrangeCommand as _0x37f828,SetSheetDrawingCommand as _0x426164,UniverSheetsDrawingPlugin as _0x41e33f,transformToAxisAlignPosition as _0x389ad9,transformToDrawingPosition as _0x511550}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x19cbab}from'@univerjs-pro/license';import{DocInterceptorService as _0xb7cea8,DocSelectionManagerService as _0x37b68d,UniverDocsPlugin as _0x4974d9}from'@univerjs/docs';import{DocCanvasPopManagerService as _0xa72247,DocEventManagerService as _0x1d792c,DocRenderController as _0x2c24f1,DocSelectionRenderService as _0x34a900,UniverDocsUIPlugin as _0x4ed767}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x52c122,SheetsDrawingGroupCopyPasteController as _0x143c5f,UniverSheetsDrawingMobileUIPlugin as _0x440dfd,UniverSheetsDrawingUIPlugin as _0x3149ef}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x137ffd,FlipHorizontalIcon as _0xec91bf,FlipVerticalIcon as _0x322d75,MoveDownIcon as _0x16dbe2,MoveUpIcon as _0x46a533,ObjectLayersIcon as _0x177941,ShapeFormatSettingIcon as _0x5b0f5d,TopmostIcon as _0x147def}from'@univerjs/icons';import{memo as _0x2e5092,useEffect as _0x3de63b,useMemo as _0x1da22e,useReducer as _0x26e736,useState as _0x1c7960}from'react';function yr(_0x1a1971,_0x42d50c){const _0x33e493=_0x39b9;let _0x6437cd={};for(let _0x47b58c of Object[_0x33e493(0x23b)](_0x42d50c)){let _0x4105b0=_0x42d50c[_0x47b58c],_0x19ca58=_0x1a1971[_0x47b58c];if(_0x4105b0!==void 0x0){if(_0x19ca58===void 0x0){_0x6437cd[_0x47b58c]=void 0x0;continue;}typeof _0x4105b0==_0x33e493(0x192)&&_0x4105b0&&!Array[_0x33e493(0x154)](_0x4105b0)&&typeof _0x19ca58=='object'&&_0x19ca58&&!Array[_0x33e493(0x154)](_0x19ca58)?_0x6437cd[_0x47b58c]=yr(_0x19ca58,_0x4105b0):_0x6437cd[_0x47b58c]=_0x19ca58;}}return _0x6437cd;}const br={'type':_0x1f5d9a['COMMAND'],'id':'sheet.command.update-shape-data','handler':(_0x5a73fc,_0x13d8e0)=>{const _0x680e91=_0x39b9;let _0x436a86=_0x5a73fc[_0x680e91(0x106)](_0xa0be75),{unitId:_0x2e2743,subUnitId:_0x151946,shapeType:_0x22f5a2,shapeId:_0x12eb39,shapeData:_0x2539c8,replaceShapeData:_0x415a86,oldShapeJSON:_0x25a8e6}=_0x13d8e0;if(!_0x436a86['getShapeModel'](_0x2e2743,_0x151946,_0x12eb39))return!0x1;let _0xef417e=_0x5a73fc[_0x680e91(0x106)](_0x376420),_0x4d9956=_0x5a73fc[_0x680e91(0x106)](_0x11874d),{oldShapeType:_0xaf37ac,oldShapeData:_0x2261c8={}}=_0x25a8e6,_0xe161c6=_0x415a86?_0x2261c8:yr(_0x2261c8,_0x2539c8||{}),_0x47f0df={'id':_0x596a36['id'],'params':{'unitId':_0x2e2743,'subUnitId':_0x151946,'shapeId':_0x12eb39,'shapeType':_0x22f5a2,'shapeData':_0x2539c8,'replace':_0x415a86}},_0x159896={'id':_0x596a36['id'],'params':{'unitId':_0x2e2743,'subUnitId':_0x151946,'shapeId':_0x12eb39,'shapeType':_0xaf37ac,'shapeData':_0xe161c6,'replace':_0x415a86}};return _0xef417e[_0x680e91(0xd8)](_0x47f0df['id'],_0x47f0df['params'])?(_0x4d9956['pushUndoRedo']({'unitID':_0x2e2743,'undoMutations':[_0x159896],'redoMutations':[_0x47f0df]}),!0x0):!0x1;}};function xr(_0x463168,_0x181b5d,_0x5b34c7,_0x16d933,_0x2b0ad5,_0x33f51c){let _0x2710b4={'unitId':_0x181b5d,'subUnitId':_0x5b34c7,'shapeId':_0x16d933,'shapeData':_0x33f51c,'oldShapeJSON':_0x2b0ad5};return _0x463168['executeCommand'](br['id'],_0x2710b4);}function Sr(_0x537fe6,_0x42abd0,_0x59e384,_0x359a4b,_0x2eb4f9,_0x29dd83){const _0x36d9ea=_0x39b9;let _0xb48f00={'unitId':_0x42abd0,'subUnitId':_0x59e384,'shapeId':_0x359a4b,'shapeData':_0x29dd83,'oldShapeJSON':_0x2eb4f9};return _0x537fe6[_0x36d9ea(0x335)](br['id'],_0xb48f00);}function Cr(_0x3ece64){'@babel/helpers - typeof';const _0xe2e019=_0x39b9;return Cr=typeof Symbol==_0xe2e019(0x24a)&&typeof Symbol[_0xe2e019(0x327)]==_0xe2e019(0xdc)?function(_0xe72cf5){return typeof _0xe72cf5;}:function(_0x2a43ec){const _0x232212=_0xe2e019;return _0x2a43ec&&typeof Symbol==_0x232212(0x24a)&&_0x2a43ec[_0x232212(0x316)]===Symbol&&_0x2a43ec!==Symbol['prototype']?_0x232212(0xdc):typeof _0x2a43ec;},Cr(_0x3ece64);}function wr(_0x1a26b8,_0x1755f7){const _0x14cc0f=_0x39b9;if(Cr(_0x1a26b8)!=_0x14cc0f(0x192)||!_0x1a26b8)return _0x1a26b8;var _0xd7114a=_0x1a26b8[Symbol[_0x14cc0f(0x329)]];if(_0xd7114a!==void 0x0){var _0x5e6378=_0xd7114a[_0x14cc0f(0x32e)](_0x1a26b8,_0x1755f7||_0x14cc0f(0x31c));if(Cr(_0x5e6378)!=_0x14cc0f(0x192))return _0x5e6378;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1755f7==='string'?String:Number)(_0x1a26b8);}function Tr(_0x503164){const _0x2a01a6=_0x39b9;var _0xb3644c=wr(_0x503164,_0x2a01a6(0x1d0));return Cr(_0xb3644c)==_0x2a01a6(0xdc)?_0xb3644c:_0xb3644c+'';}function q(_0xfaa377,_0x282fc7,_0x5b1e3b){const _0x3f3f43=_0x39b9;return(_0x282fc7=Tr(_0x282fc7))in _0xfaa377?Object[_0x3f3f43(0xfe)](_0xfaa377,_0x282fc7,{'value':_0x5b1e3b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xfaa377[_0x282fc7]=_0x5b1e3b,_0xfaa377;}function Er(_0xee355c,_0x202083,_0x257256){const _0x3a237d=_0x39b9;let _0x431945=_0x10b96c(_0xee355c,{..._0x202083,'dataModel':{..._0x202083[_0x3a237d(0x18d)]??{},..._0x257256?{'doc':_0x257256}:null}}),_0x285bef=_0x5175bd(_0x431945);return{'clip':_0x16f26c(_0x431945,_0x285bef),'wrapStrategy':_0x285bef};}var Dr=class extends _0x4983ab{constructor(_0x496dee,_0xb6063a){const _0x374aad=_0x39b9;super(_0x496dee,_0xb6063a),q(this,_0x374aad(0x1fd),void 0x0),q(this,_0x374aad(0x18f),new _0x29ef31(()=>this['makeDirty'](!0x0),()=>this['_applyFormulaAutoFitSize']())),q(this,_0x374aad(0x274),!0x0),q(this,'_drawingType',_0xc7f81b[_0x374aad(0x33e)]),q(this,_0x374aad(0x19c),!0x0),this[_0x374aad(0x1fd)]={..._0xb6063a},this[_0x374aad(0x18f)][_0x374aad(0x22d)](_0xb6063a[_0x374aad(0xe2)],_0xb6063a[_0x374aad(0x226)]!==!0x1),this[_0x374aad(0x324)](),this[_0x374aad(0x190)]();}[_0x1736bc(0x324)](){const _0x370a92=_0x1736bc;this[_0x370a92(0x1f4)][_0x370a92(0xdf)](_0x1df080=>{const _0xcb2b87=_0x370a92;this[_0xcb2b87(0x2b7)](_0x1df080);});}[_0x1736bc(0x21f)](_0x3ceb2e){const _0x1c2a5e=_0x1736bc;this[_0x1c2a5e(0x1fd)][_0x1c2a5e(0x11d)]=_0x3ceb2e;}[_0x1736bc(0x27d)](_0x5a5757){const _0xf00a8d=_0x1736bc;this[_0xf00a8d(0x1fd)][_0xf00a8d(0x20f)]=_0x5a5757,this[_0xf00a8d(0xe7)](!0x0);}[_0x1736bc(0x21a)](_0xbb8840,_0x4fe893=!0x0){const _0x1175b=_0x1736bc;this[_0x1175b(0x18f)][_0x1175b(0x22d)](_0xbb8840,_0x4fe893),this[_0x1175b(0x1fd)][_0x1175b(0xe2)]=_0xbb8840,this[_0x1175b(0x190)](),this[_0x1175b(0xe7)](!0x0);}[_0x1736bc(0x190)](){const _0x113ae6=_0x1736bc;let _0x31d552=this[_0x113ae6(0x1fd)][_0x113ae6(0x235)],_0x93e959=_0x31d552[_0x113ae6(0x1ad)](),_0xf0b210=_0x29049a(_0x93e959==null?void 0x0:_0x93e959[_0x113ae6(0x18d)]),_0xaf3d33=_0xf0b210==null?void 0x0:_0xf0b210[_0x113ae6(0x10c)],_0x44f65c=this['_formulaAnimation'][_0x113ae6(0x130)]();if(!_0xaf3d33||_0x44f65c[_0x113ae6(0x180)]===0x0)return;_0x31d552[_0x113ae6(0x247)]({'width':this[_0x113ae6(0x121)],'height':this[_0x113ae6(0x188)]});let _0x57ebe7=_0xa13f05({'documentData':_0x44f65c[_0x113ae6(0x2a7)](_0x3becc6=>_0x4348c0(_0xaf3d33,_0x3becc6)),'height':this[_0x113ae6(0x188)],'shapeData':_0x31d552[_0x113ae6(0x1e3)](),'textRect':_0x31d552[_0x113ae6(0x2c7)]({'left':0x0,'top':0x0,'width':this[_0x113ae6(0x121)],'height':this[_0x113ae6(0x188)]}),'width':this[_0x113ae6(0x121)]});if(_0x57ebe7){var _0x336093;this[_0x113ae6(0x344)](_0x57ebe7[_0x113ae6(0x121)],_0x57ebe7[_0x113ae6(0x188)]),(_0x336093=this[_0x113ae6(0x1a8)]())==null||(_0x336093=_0x336093[_0x113ae6(0x105)]())==null||_0x336093[_0x113ae6(0x1a3)]();}}get['unitId'](){const _0x12eb26=_0x1736bc;return this[_0x12eb26(0x1fd)][_0x12eb26(0x142)];}get['subUnitId'](){const _0x293338=_0x1736bc;return this[_0x293338(0x1fd)]['subUnitId'];}[_0x1736bc(0x2b7)](_0x14a791){const _0x221467=_0x1736bc;if(this[_0x221467(0x1fd)][_0x221467(0x23f)]==null||!this[_0x221467(0x274)])return;let {width:_0x1cda87,height:_0x563c91}=this,{width:_0x4ff6e0=0x0,height:_0x255c4e=0x0}=_0x14a791[_0x221467(0x2e7)],{left:_0x50e01b=0x0,top:_0x3ce8ef=0x0,right:_0x5e95a1=0x0,bottom:_0x1df3b7=0x0}=this[_0x221467(0x1fd)][_0x221467(0x23f)],_0x47cdb9=_0x50e01b,_0xac8678=_0x3ce8ef,_0x530df1=_0x5e95a1,_0x408b2b=_0x1df3b7,_0x386c50=!0x1;if(_0x4ff6e0!==0x0&&_0x4ff6e0!==_0x1cda87){let _0x7403a0=_0x50e01b/_0x4ff6e0,_0x5a8176=_0x5e95a1/_0x4ff6e0;_0x47cdb9=_0x1cda87*_0x7403a0,_0x530df1=_0x1cda87*_0x5a8176,_0x386c50=!0x0;}if(_0x255c4e!==0x0&&_0x255c4e!==_0x563c91){let _0x5890e9=_0x3ce8ef/_0x255c4e,_0x4efa0d=_0x1df3b7/_0x255c4e;_0xac8678=_0x563c91*_0x5890e9,_0x408b2b=_0x563c91*_0x4efa0d,_0x386c50=!0x0;}_0x386c50&&this[_0x221467(0x135)]({'left':_0x47cdb9,'top':_0xac8678,'right':_0x530df1,'bottom':_0x408b2b});}[_0x1736bc(0x135)](_0xa2afe4){const _0x219f4d=_0x1736bc;this[_0x219f4d(0x1fd)][_0x219f4d(0x23f)]=_0xa2afe4,this[_0x219f4d(0xe7)](!0x0);}[_0x1736bc(0xec)](_0x5e92a7){const _0xaaf6b9=_0x1736bc;this[_0xaaf6b9(0x1fd)][_0xaaf6b9(0xb3)]=_0x5e92a7,this['makeDirty'](!0x0);}set[_0x1736bc(0x1f0)](_0x53c596){this['_transform']=_0x53c596;}get[_0x1736bc(0x1f0)](){const _0x1d52fe=_0x1736bc;this[_0x1d52fe(0x16f)]||this[_0x1d52fe(0x17c)]();let _0x34ed2e=this['_transform'][_0x1d52fe(0x350)]();return this[_0x1d52fe(0x347)](_0x34ed2e);}get[_0x1736bc(0x235)](){const _0x356e28=_0x1736bc;return this[_0x356e28(0x1fd)]['shapeModel'];}get[_0x1736bc(0xea)](){const _0x292ea4=_0x1736bc;return this[_0x292ea4(0x1fd)]['shapeId'];}get['classType'](){const _0x4168b8=_0x1736bc;return _0x3a2883[_0x4168b8(0x14d)];}['_draw'](_0x2e4812,_0x378fc2,_0x25b69e,_0x2a471a){const _0x167d22=_0x1736bc;let _0x5a0d63=this[_0x167d22(0x1fd)][_0x167d22(0x235)];if(!_0x5a0d63||!_0x378fc2)return;let _0x5a2c43=_0x25b69e??this[_0x167d22(0x121)],_0x1f6320=_0x2a471a??this[_0x167d22(0x188)],_0x237fb8={'shapeType':_0x5a0d63[_0x167d22(0x19a)](),'width':_0x5a2c43,'height':_0x1f6320},_0xfd902c={'renderMode':_0x524c50[_0x167d22(0x1ef)],'oKey':this[_0x167d22(0x131)],'image':this['_props'][_0x167d22(0xb3)],'angle':this[_0x167d22(0x13b)]};_0x5a0d63['updateContext'](_0x237fb8),_0x2e4812['save']();let _0x48ed05={'top':0x0,'left':0x0,'width':_0x5a2c43,'height':_0x1f6320},_0x2c1f87=_0x5a0d63[_0x167d22(0xfa)](_0x48ed05);_0x2c1f87?this[_0x167d22(0x296)](_0x2e4812,_0x2c1f87,_0x394c6c=>{const _0x403661=_0x167d22;_0x5a0d63[_0x403661(0x205)](_0x394c6c,_0x48ed05,_0xfd902c);}):(this['_releaseRenderCache'](),_0x5a0d63[_0x167d22(0x205)](_0x2e4812,_0x48ed05,_0xfd902c)),_0x2e4812['restore']();let _0x26b36e=_0x5a0d63[_0x167d22(0x1ad)](),_0xb6903c=_0x5a0d63[_0x167d22(0x2c7)](_0x48ed05),_0x591539=_0x5a0d63[_0x167d22(0x139)]();if(_0x26b36e&&_0xb6903c&&!_0x591539){_0x2e4812[_0x167d22(0x308)](),this[_0x167d22(0x30a)]()['flipX']&&_0x2e4812['scale'](-0x1,0x1);let _0x64f0a2=_0x5a2c43/0x2,_0xe742e9=_0x1f6320/0x2;_0x2e4812[_0x167d22(0x259)](-_0x64f0a2,-_0xe742e9),_0x2e4812['beginPath'](),this['_drawShapeText'](_0x2e4812,_0x26b36e,_0xb6903c),_0x2e4812[_0x167d22(0x304)]();}}[_0x1736bc(0x27b)](_0x5d36b5){}[_0x1736bc(0x338)](_0x258269,_0x2615bc,_0x4bb400){const _0x2e7d79=_0x1736bc;var _0x30693e;this[_0x2e7d79(0x1fd)][_0x2e7d79(0x20f)]||(!((_0x30693e=_0x2615bc['dataModel'])!=null&&_0x30693e[_0x2e7d79(0x10c)])&&_0x2e7d79(0x334)in _0x2615bc&&_0x2615bc['isRichText']===!0x1?this[_0x2e7d79(0x2a8)](_0x258269,_0x2615bc,_0x4bb400):this['_drawRichText'](_0x258269,_0x2615bc,_0x4bb400));}[_0x1736bc(0x2a8)](_0x291b4c,_0x5d6e0c,_0x3bc19f){const _0x5aa384=_0x1736bc;this[_0x5aa384(0x2bd)](_0x291b4c,{..._0x5d6e0c,'text':_0x5d6e0c['text']??'','dataModel':{'doc':_0xb9d653(_0x5d6e0c,_0x5aa384(0xa7)+this['oKey'])}},_0x3bc19f);}[_0x1736bc(0x2bd)](_0x3579ec,_0x2912a0,_0xae6901){_0x5710e1(_0x3579ec,this['_formulaAnimation'],(_0x4a3aee,_0x11599c)=>{const _0x5ed0a8=_0x39b9;this[_0x5ed0a8(0x262)](_0x4a3aee,_0x2912a0,_0xae6901,_0x11599c);});}[_0x1736bc(0x262)](_0x1dc418,_0x4d8cb2,_0x51d128,_0x5121e7){const _0xbc58be=_0x1736bc;let _0x171eaa=this[_0xbc58be(0x1fd)][_0xbc58be(0x16b)];if(!_0x4d8cb2['dataModel']||!_0x171eaa)return;let _0x313437=_0x29049a(_0x4d8cb2[_0xbc58be(0x18d)]);if(!_0x313437)return;let _0x30a964=_0x313437[_0xbc58be(0x10c)];if(!_0x30a964)return;let _0x42e7ac=_0x4348c0(_0x30a964,_0x5121e7),_0x25f8b7=_0x313437['va']??_0x47a0f4['TOP'],_0x1b078f=_0x313437['ha']??_0xe8342a[_0xbc58be(0x313)],_0x1b59d2=Er(this[_0xbc58be(0x1fd)]['shapeModel'][_0xbc58be(0x1e3)](),_0x4d8cb2,_0x42e7ac),_0x5dee5c=_0x4d8cb2['isHorizontal'],_0x5445df=new _0x307273(_0x483abe(_0x42e7ac,{'isHorizontal':_0x5dee5c!==!0x1,'textRect':_0x51d128,'verticalAlign':_0x25f8b7,'horizontalAlign':_0x1b078f,'wrapStrategy':_0x1b59d2[_0xbc58be(0x2bf)]})),_0x2aab6c=new _0x458ef6(_0x5445df),_0x26837f=_0x24acae[_0xbc58be(0x109)](_0x2aab6c,_0x171eaa);_0x26837f[_0xbc58be(0x216)]();let _0x2014ec=_0x26837f['getActualSize']()[_0xbc58be(0xad)],_0x4ea51a=_0x2b46d8({'contentHeight':_0x2014ec,'verticalAlign':_0x25f8b7,'viewportHeight':_0x51d128[_0xbc58be(0x188)]});_0x5445df['updateDocumentStyle']({'pageSize':{'width':_0x5dee5c===!0x1?_0x51d128[_0xbc58be(0x188)]:_0x51d128[_0xbc58be(0x121)],'height':_0x4ea51a[_0xbc58be(0xba)]}}),_0x5445df[_0xbc58be(0x1cc)]({'t':_0x4ea51a[_0xbc58be(0xd4)]}),_0x26837f[_0xbc58be(0x216)]();let _0x3cc474=new _0x4337e8(_0xbc58be(0x110)+this['oKey'],_0x26837f,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0xbc58be(0xe7)](!0x0)});_0x3cc474['resize'](_0x51d128[_0xbc58be(0x121)],_0x4ea51a[_0xbc58be(0xba)]),_0x1dc418['save'](),_0x1dc418['translateWithPrecision'](_0x51d128[_0xbc58be(0x306)],_0x51d128[_0xbc58be(0x21c)]),_0x1b59d2['clip']&&(_0x1dc418[_0xbc58be(0x24c)](),_0x1dc418['rect'](0x0,_0x4ea51a[_0xbc58be(0x2c0)],_0x51d128[_0xbc58be(0x121)],_0x4ea51a[_0xbc58be(0x341)]),_0x1dc418[_0xbc58be(0xb4)]()),_0x4ea51a[_0xbc58be(0x297)]&&_0x1dc418['translateWithPrecision'](0x0,_0x4ea51a['contentVerticalOffset']),_0x3cc474[_0xbc58be(0x282)](_0x1dc418),_0x1dc418[_0xbc58be(0x304)](),_0x3cc474[_0xbc58be(0x137)](),_0x26837f[_0xbc58be(0x137)](),_0x2aab6c[_0xbc58be(0x137)](),_0x5445df[_0xbc58be(0x137)]();}[_0x1736bc(0x205)](_0x19ce7d,_0x59dc4b,_0x287894=!0x1){const _0x5f3338=_0x1736bc;if(!this['visible'])return this['makeDirty'](!0x1),this;let {width:_0x9353fe,height:_0x271c6e,left:_0x39aa8e,top:_0x53501e}=this,_0x213ca1=this[_0x5f3338(0x25a)]();if(_0x9353fe=_0x213ca1['width'],_0x271c6e=_0x213ca1[_0x5f3338(0x188)],_0x39aa8e=_0x213ca1['left'],_0x53501e=_0x213ca1[_0x5f3338(0x21c)],this[_0x5f3338(0x2fe)](_0x59dc4b)){let {top:_0x5ec119,left:_0x16ce5e,bottom:_0x54a234,right:_0x4f46f4}=_0x59dc4b[_0x5f3338(0x314)];if(_0x9353fe+this[_0x5f3338(0x2e2)]+_0x39aa8e<_0x16ce5e||_0x4f46f4<_0x39aa8e||_0x271c6e+this[_0x5f3338(0x2e2)]+_0x53501e<_0x5ec119||_0x54a234<_0x53501e)return this;}let _0x5ee909=_0x39aa8e+_0x9353fe/0x2,_0x3d91f1=_0x53501e+_0x271c6e/0x2,_0x17ded3=this[_0x5f3338(0x1f0)][_0x5f3338(0x2fb)]();if(this[_0x5f3338(0x1fd)][_0x5f3338(0x20f)]){let _0x106d5a=this[_0x5f3338(0x30a)](),_0x29aeb1=new _0x17d708();_0x29aeb1[_0x5f3338(0x2a0)]({..._0x106d5a}),_0x17ded3=_0x29aeb1['getMatrix']();}return _0x19ce7d['save'](),this[_0x5f3338(0x1fd)][_0x5f3338(0x235)][_0x5f3338(0x29c)]===!0x0||_0x19ce7d['transform'](_0x17ded3[0x0],_0x17ded3[0x1],_0x17ded3[0x2],_0x17ded3[0x3],_0x5ee909,_0x3d91f1),this['_draw'](_0x19ce7d,_0x59dc4b,_0x9353fe,_0x271c6e),_0x19ce7d[_0x5f3338(0x304)](),this[_0x5f3338(0xe7)](!0x1),this;}[_0x1736bc(0x254)](_0x44d1e3){const _0x37504f=_0x1736bc;let {left:_0x431e93,top:_0x124ac6,width:_0x3ce4c5,height:_0x491e2e}=this[_0x37504f(0x25a)](),_0x45dbd8=this[_0x37504f(0x1f0)]['getMatrix'](),_0x286ca3=_0x431e93+_0x3ce4c5/0x2,_0x327e5e=_0x124ac6+_0x491e2e/0x2,_0x4dfada=new _0x17d708([_0x45dbd8[0x0],_0x45dbd8[0x1],_0x45dbd8[0x2],_0x45dbd8[0x3],_0x286ca3,_0x327e5e]),_0xf9b072=this['getParent']();return(this[_0x37504f(0x102)]&&(_0xf9b072==null?void 0x0:_0xf9b072['classType'])===_0x3a2883[_0x37504f(0x2a3)]?_0xf9b072[_0x37504f(0x120)][_0x37504f(0x25c)](_0x4dfada):_0x4dfada)[_0x37504f(0x149)]()[_0x37504f(0x1c7)](_0x44d1e3);}[_0x1736bc(0x200)](_0x3df1d3){const _0x17ee8e=_0x1736bc;let {left:_0x1b3295,top:_0x54e53a,width:_0x4fc41b,height:_0x2d938f}=this[_0x17ee8e(0x25a)](),_0x1bc9ce=_0x1b3295+_0x4fc41b/0x2,_0x34a826=_0x54e53a+_0x2d938f/0x2,_0x5c3dc5=this[_0x17ee8e(0x1f0)][_0x17ee8e(0x2fb)](),_0x3ad65b=new _0x17d708([_0x5c3dc5[0x0],_0x5c3dc5[0x1],_0x5c3dc5[0x2],_0x5c3dc5[0x3],_0x1bc9ce,_0x34a826]),_0x4bb10d=this[_0x17ee8e(0x32f)](),_0x5499fc=(this['isInGroup']&&(_0x4bb10d==null?void 0x0:_0x4bb10d['classType'])===_0x3a2883[_0x17ee8e(0x2a3)]?_0x4bb10d[_0x17ee8e(0x120)][_0x17ee8e(0x25c)](_0x3ad65b):_0x3ad65b)[_0x17ee8e(0x149)]()[_0x17ee8e(0x1c7)](_0x3df1d3),_0x5b2fb2=_0x4fc41b/0x2,_0x1ab994=_0x2d938f/0x2,_0x37767c=this[_0x17ee8e(0x1fd)][_0x17ee8e(0x235)];return _0x37767c&&_0x37767c[_0x17ee8e(0x139)]()?_0x37767c[_0x17ee8e(0x129)](_0x5499fc['x'],_0x5499fc['y'],_0x4fc41b,_0x2d938f):_0x5499fc['x']>=-_0x5b2fb2-this[_0x17ee8e(0x2e2)]/0x2&&_0x5499fc['x']<=_0x5b2fb2+this[_0x17ee8e(0x2e2)]/0x2&&_0x5499fc['y']>=-_0x1ab994-this[_0x17ee8e(0x2e2)]/0x2&&_0x5499fc['y']<=_0x1ab994+this[_0x17ee8e(0x2e2)]/0x2;}[_0x1736bc(0x137)](){const _0x18149f=_0x1736bc;this[_0x18149f(0x18f)][_0x18149f(0x137)](),this[_0x18149f(0x1fd)][_0x18149f(0x235)]=null,super['dispose']();}},Or=class extends _0x4983ab{constructor(_0x2b4c30,_0x538ae7){const _0x4205bb=_0x1736bc;super(_0x2b4c30,_0x538ae7),q(this,'_shapeId',null),q(this,'_adjName',null),q(this,_0x4205bb(0x2b4),null),q(this,_0x4205bb(0x16e),null),_0x538ae7&&this['setShapeProps'](_0x538ae7);}['getDrawingSearch'](){const _0xc72192=_0x1736bc;return{'unitId':this[_0xc72192(0x2b4)],'subUnitId':this[_0xc72192(0x16e)],'drawingId':this[_0xc72192(0x281)]};}['setShapeProps'](_0x1fc887){const _0xe08ff8=_0x1736bc;_0x1fc887[_0xe08ff8(0xea)]!==void 0x0&&(this[_0xe08ff8(0x281)]=_0x1fc887[_0xe08ff8(0xea)]),_0x1fc887[_0xe08ff8(0x2d8)]!==void 0x0&&(this['_adjName']=_0x1fc887[_0xe08ff8(0x2d8)]),_0x1fc887[_0xe08ff8(0x142)]!==void 0x0&&(this[_0xe08ff8(0x2b4)]=_0x1fc887['unitId']),_0x1fc887['subUnitId']!==void 0x0&&(this['_subUnitId']=_0x1fc887['subUnitId']),this[_0xe08ff8(0xc2)]({'width':_0x1fc887[_0xe08ff8(0x121)],'height':_0x1fc887['height']});}[_0x1736bc(0x273)](_0x4254f7){const _0x36cb8b=_0x1736bc;_0xf73dbe[_0x36cb8b(0x243)](_0x4254f7,{'radius':_0x48b11f['adjHandleSize'],'fill':_0x48b11f['adjHandleFill'],'stroke':_0x48b11f[_0x36cb8b(0x2bb)],'strokeWidth':0x1,'evented':!0x0});}};function J(_0x3ffe89,_0x337288){return function(_0x472646,_0x32df59){_0x337288(_0x472646,_0x32df59,_0x3ffe89);};}function Y(_0x5a1fe3,_0x5d682f,_0x40e936,_0x3f14a1){const _0x3ac01b=_0x1736bc;var _0x4ffdf5=arguments[_0x3ac01b(0x180)],_0x17b037=_0x4ffdf5<0x3?_0x5d682f:_0x3f14a1===null?_0x3f14a1=Object[_0x3ac01b(0x2ed)](_0x5d682f,_0x40e936):_0x3f14a1,_0x357957;if(typeof Reflect==_0x3ac01b(0x192)&&typeof Reflect['decorate']==_0x3ac01b(0x24a))_0x17b037=Reflect[_0x3ac01b(0x198)](_0x5a1fe3,_0x5d682f,_0x40e936,_0x3f14a1);else{for(var _0xa000ba=_0x5a1fe3[_0x3ac01b(0x180)]-0x1;_0xa000ba>=0x0;_0xa000ba--)(_0x357957=_0x5a1fe3[_0xa000ba])&&(_0x17b037=(_0x4ffdf5<0x3?_0x357957(_0x17b037):_0x4ffdf5>0x3?_0x357957(_0x5d682f,_0x40e936,_0x17b037):_0x357957(_0x5d682f,_0x40e936))||_0x17b037);}return _0x4ffdf5>0x3&&_0x17b037&&Object[_0x3ac01b(0xfe)](_0x5d682f,_0x40e936,_0x17b037),_0x17b037;}let X=class extends _0x3f60c8{constructor(_0x298927,_0x438c09,_0x314c78,_0x20cf0e,_0x26a33f,_0x553264){const _0x4711f4=_0x1736bc;super(),this[_0x4711f4(0x1c4)]=_0x298927,this[_0x4711f4(0x337)]=_0x438c09,this[_0x4711f4(0x13e)]=_0x314c78,this[_0x4711f4(0x1f9)]=_0x20cf0e,this[_0x4711f4(0x15d)]=_0x26a33f,this[_0x4711f4(0x2d5)]=_0x553264,q(this,_0x4711f4(0x223),new Map()),this[_0x4711f4(0x2d9)](this[_0x4711f4(0x2d5)]['presentationChanged$'][_0x4711f4(0x222)](_0x267722=>{const _0x37863c=_0x4711f4;var _0x3a0fa5;(_0x3a0fa5=this['_formulaShapes']['get'](this[_0x37863c(0x26d)](_0x267722[_0x37863c(0x142)],_0x267722[_0x37863c(0x320)],_0x267722[_0x37863c(0xea)])))==null||_0x3a0fa5[_0x37863c(0x1df)](_0xc717f4=>_0xc717f4[_0x37863c(0x21a)](_0x267722[_0x37863c(0xe4)],_0x267722['animationEnabled']));})),this[_0x4711f4(0x2d9)](this[_0x4711f4(0x1c4)][_0x4711f4(0x322)][_0x4711f4(0x222)](_0x30a499=>{const _0x590e67=_0x4711f4;_0x30a499[_0x590e67(0x1df)](_0x583a3b=>{const _0x5ed620=_0x590e67;this[_0x5ed620(0x2d5)][_0x5ed620(0x225)]({'unitId':_0x583a3b[_0x5ed620(0x142)],'subUnitId':_0x583a3b[_0x5ed620(0x320)],'shapeId':_0x583a3b['drawingId']}),this[_0x5ed620(0x223)][_0x5ed620(0xcc)](this['_formulaKey'](_0x583a3b[_0x5ed620(0x142)],_0x583a3b[_0x5ed620(0x320)],_0x583a3b['drawingId']));});}));}[_0x1736bc(0x18e)](_0xec67c9,_0x1b0496,_0x16054c){const _0x56a2d7=_0x1736bc;let {transform:_0x579a7c,drawingType:_0x4ed948,srcRect:_0x5b2163,prstGeom:_0x431b7b,groupId:_0x1f5430,unitId:_0x3a9041,subUnitId:_0x590692,drawingId:_0x2ef8b7,isMultiTransform:_0x263f68,transforms:_0x36444f,hidden:_0x3be9e9,selectable:_0x33e4ab}=_0xec67c9;if(_0x4ed948!==_0xc7f81b[_0x56a2d7(0x33e)]||!this['_drawingManagerService'][_0x56a2d7(0x1e6)]()||_0x579a7c==null)return;let _0x2e2ebe=this[_0x56a2d7(0x1c4)][_0x56a2d7(0x2de)](),_0x4d0795=_0x263f68&&_0x36444f?_0x36444f:[_0x579a7c],_0x522862=[];for(let _0x500bb3 of _0x4d0795){let {left:_0x249de6,top:_0x5c12a1,width:_0x37d782,height:_0x2914ac,angle:_0x47ce34,flipX:_0x1bb107,flipY:_0x393f38,skewX:_0x18ba12,skewY:_0x1e851c}=_0x500bb3,_0x4c910f=_0x4d0795[_0x56a2d7(0x19d)](_0x500bb3),_0x54a2cc=_0x308e11({'unitId':_0x3a9041,'subUnitId':_0x590692,'drawingId':_0x2ef8b7},_0x263f68?_0x4c910f:void 0x0),_0x12c4c5=_0x1b0496[_0x56a2d7(0x288)](_0x54a2cc);if(_0x12c4c5!=null){let _0xb44bb7={'unitId':_0x3a9041,'subUnitId':_0x590692,'shapeId':_0x2ef8b7};_0x12c4c5 instanceof Dr&&this[_0x56a2d7(0xc1)](_0x12c4c5,_0xb44bb7),_0x12c4c5[_0x56a2d7(0xc2)]({'left':_0x249de6,'top':_0x5c12a1,'width':_0x37d782,'height':_0x2914ac,'angle':_0x47ce34,'flipX':_0x1bb107,'flipY':_0x393f38,'skewX':_0x18ba12,'skewY':_0x1e851c});continue;}let _0x2dc277=this[_0x56a2d7(0x1c4)]['getDrawingOrder'](_0x3a9041,_0x590692),_0x448d06=_0x2dc277[_0x56a2d7(0x19d)](_0x2ef8b7);if(_0x1b0496[_0x56a2d7(0x288)](_0x54a2cc)||!this['_drawingManagerService'][_0x56a2d7(0x1e6)]())continue;let _0x1d92b4=this['_sheetsShapeService'][_0x56a2d7(0x1a7)](_0x3a9041,_0x590692,_0x2ef8b7);if(!_0x1d92b4)continue;let _0x10dea0=_0x1e2b3c(_0x1d92b4['getShapeType']())?{..._0x58f752,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x58f752,_0x1e71c1=_0x1d92b4[_0x56a2d7(0x1e3)]()['formulaBinding'],_0x104b88={'unitId':_0x3a9041,'subUnitId':_0x590692,'shapeId':_0x2ef8b7};_0x1e71c1&&this[_0x56a2d7(0x2d5)]['register'](_0x104b88,_0x1e71c1);let _0x5ab225=new Dr(_0x54a2cc,{..._0x500bb3,'zIndex':_0x448d06===-0x1?_0x2dc277[_0x56a2d7(0x180)]-0x1:_0x448d06,'shapeModel':_0x1d92b4,'localeService':this[_0x56a2d7(0x13e)],'shapeId':_0x2ef8b7,'unitId':_0x3a9041,'subUnitId':_0x590692,'visible':_0x3be9e9!==!0x0,'evented':_0x33e4ab!==!0x1,'formulaPresentation':_0x1e71c1?this[_0x56a2d7(0x2d5)][_0x56a2d7(0x162)](_0x104b88):void 0x0,'animateFormulaPresentation':(_0x1e71c1==null?void 0x0:_0x1e71c1[_0x56a2d7(0x1b0)])!==!0x1,'transformerConfig':_0x10dea0});if(_0x1e71c1){let _0x1ac55d=this['_formulaKey'](_0x3a9041,_0x590692,_0x2ef8b7),_0x1dbc04=this['_formulaShapes']['get'](_0x1ac55d)??new Set();_0x1dbc04[_0x56a2d7(0x29d)](_0x5ab225),this[_0x56a2d7(0x223)]['set'](_0x1ac55d,_0x1dbc04);}_0x1b0496[_0x56a2d7(0x1f3)](_0x5ab225,_0x21c410),_0x2e2ebe&&_0x1b0496[_0x56a2d7(0x1bb)](_0x5ab225),_0x1f5430&&_0x56b2a0({'drawingId':_0x1f5430,'unitId':_0x3a9041,'subUnitId':_0x590692},_0x5ab225,_0x1b0496,this[_0x56a2d7(0x1c4)]),_0x431b7b!=null&&_0x5ab225['setPrstGeom'](_0x431b7b),_0x5b2163!=null&&_0x5ab225[_0x56a2d7(0x135)](_0x5b2163);let _0x19fa42=this[_0x56a2d7(0x11b)](_0x5ab225,_0x1d92b4[_0x56a2d7(0x1e3)]());if(_0x19fa42){var _0x4a42f9;_0x16054c==null||(_0x4a42f9=_0x16054c[_0x56a2d7(0x160)])==null||_0x4a42f9['add'](_0x19fa42);}_0x522862[_0x56a2d7(0x159)](_0x5ab225);}return _0x522862;}[_0x1736bc(0x26d)](_0x3beed8,_0x4159e7,_0xa35e1e){return _0x3beed8+'\x00'+_0x4159e7+'\x00'+_0xa35e1e;}[_0x1736bc(0xc1)](_0x9e17ee,_0x2ae765){const _0x357231=_0x1736bc;let _0x1075dc=this[_0x357231(0x337)][_0x357231(0x1a7)](_0x2ae765[_0x357231(0x142)],_0x2ae765[_0x357231(0x320)],_0x2ae765[_0x357231(0xea)]),_0x2fc478=_0x1075dc==null?void 0x0:_0x1075dc[_0x357231(0x1e3)]()[_0x357231(0x217)],_0x35db3b=this[_0x357231(0x26d)](_0x2ae765['unitId'],_0x2ae765[_0x357231(0x320)],_0x2ae765[_0x357231(0xea)]);if(_0x2fc478){this[_0x357231(0x2d5)][_0x357231(0x21d)](_0x2ae765,_0x2fc478);let _0x265019=this['_formulaShapes']['get'](_0x35db3b)??new Set();_0x265019[_0x357231(0x29d)](_0x9e17ee),this['_formulaShapes'][_0x357231(0x323)](_0x35db3b,_0x265019);}else{var _0x2fbafc;this[_0x357231(0x2d5)][_0x357231(0x225)](_0x2ae765),(_0x2fbafc=this['_formulaShapes'][_0x357231(0x106)](_0x35db3b))==null||_0x2fbafc[_0x357231(0xcc)](_0x9e17ee);}_0x9e17ee[_0x357231(0x21a)](_0x2fc478?this['_shapeFormulaService'][_0x357231(0x162)](_0x2ae765):void 0x0,(_0x2fc478==null?void 0x0:_0x2fc478[_0x357231(0x1b0)])!==!0x1);}[_0x1736bc(0x2f1)](_0x28198d){const _0x26eeb7=_0x1736bc;let _0x24ac00=_0x28198d['shapeModel'][_0x26eeb7(0x1e3)](),_0x524370=_0x24ac00[_0x26eeb7(0x2dd)];if(!_0x524370||_0x524370[_0x26eeb7(0x22b)]!==_0x25088f[_0x26eeb7(0x307)]||!_0x524370[_0x26eeb7(0x305)]){_0x28198d[_0x26eeb7(0xec)](void 0x0);return;}this[_0x26eeb7(0x11b)](_0x28198d,_0x24ac00);}[_0x1736bc(0x11b)](_0x5f37bc,_0x492322){const _0x499e57=_0x1736bc;let _0x56ace0=_0x492322[_0x499e57(0x2dd)];if(!_0x56ace0||_0x56ace0[_0x499e57(0x22b)]!==_0x25088f[_0x499e57(0x307)]||!_0x56ace0[_0x499e57(0x305)])return;let _0x232e04=_0x56ace0['fillImageSource'],_0x403bdf=_0x56ace0[_0x499e57(0x117)]??_0x3adca7[_0x499e57(0x257)],_0x544922=this[_0x499e57(0x1f9)][_0x499e57(0x25e)](_0x232e04,_0x403bdf);if(_0x544922){_0x5f37bc[_0x499e57(0xec)](_0x544922);return;}return this[_0x499e57(0x16a)](_0x5f37bc,_0x232e04,_0x403bdf);}async[_0x1736bc(0x16a)](_0xd0793e,_0x4bc2a4,_0x470235){const _0xbaf389=_0x1736bc;let _0x46090c;try{if(_0x470235===_0x3adca7[_0xbaf389(0x290)])_0x46090c=await this['_imageIoService'][_0xbaf389(0x2f6)](_0x4bc2a4);else{if(_0x470235===_0x3adca7[_0xbaf389(0x257)])try{_0x46090c=await this['_urlImageService'][_0xbaf389(0x2f6)](_0x4bc2a4);}catch{_0x46090c=_0x4bc2a4;}else _0x46090c=_0x4bc2a4;}}catch(_0x32cfaf){console['error'](_0xbaf389(0x104),_0x32cfaf);return;}await new Promise(_0x2fea00=>{const _0x512a5a=_0xbaf389;let _0x11297d=new window[(_0x512a5a(0x2db))]();_0x11297d[_0x512a5a(0x33f)]=()=>{const _0x14eb5f=_0x512a5a;this[_0x14eb5f(0x1f9)][_0x14eb5f(0x267)](_0x4bc2a4,_0x470235,_0x11297d),_0xd0793e[_0x14eb5f(0xec)](_0x11297d),_0x2fea00();},_0x11297d[_0x512a5a(0xa6)]=()=>{const _0x1b8523=_0x512a5a;console[_0x1b8523(0x2b1)](_0x1b8523(0xbd),_0x4bc2a4),_0x2fea00();},_0x11297d[_0x512a5a(0x2ec)]=_0x46090c;});}};X=Y([J(0x0,_0x4cc7db),J(0x1,_0x5b826f(_0xa0be75)),J(0x2,_0x5b826f(_0x3cb7ae)),J(0x3,_0x18f069),J(0x4,_0x3d5914),J(0x5,_0x5b826f(_0x24bf87))],X);let Z=class extends _0x3f60c8{constructor(_0x58fcbe,_0x81c03a,_0x173c66,_0x448268,_0x32ab0a,_0x314be8){const _0x4c13ad=_0x1736bc;super(),this['_drawingManagerService']=_0x58fcbe,this[_0x4c13ad(0x337)]=_0x81c03a,this['_renderManagerService']=_0x173c66,this[_0x4c13ad(0x264)]=_0x448268,this['_univerInstanceService']=_0x32ab0a,this[_0x4c13ad(0x287)]=_0x314be8,q(this,_0x4c13ad(0xc7),null),q(this,_0x4c13ad(0x2b4),null),q(this,_0x4c13ad(0x16e),null),q(this,'_activeShapeAdjustPointList',void 0x0),q(this,_0x4c13ad(0x144),[]),q(this,_0x4c13ad(0x2fd),0x0),q(this,_0x4c13ad(0x2ff),0x0),q(this,_0x4c13ad(0x202),0x0),q(this,'_baseShapeHeight',0x0),q(this,'_isStartAdjusting',!0x1),q(this,'_activeAdjustInfo',void 0x0),q(this,_0x4c13ad(0x266),void 0x0),q(this,_0x4c13ad(0x26b),void 0x0),q(this,_0x4c13ad(0xdd),void 0x0),q(this,_0x4c13ad(0x2ac),!0x1),this[_0x4c13ad(0x2ee)](),this['_registerDrawingMoveHandler']();}[_0x1736bc(0x2e6)](_0x543a39,_0x5ca876,_0x57ec72){const _0x3b40c5=_0x1736bc;let _0x32a73d=this[_0x3b40c5(0x337)]['getShapeModel'](_0x543a39,_0x5ca876,_0x57ec72);if(_0x32a73d)return _0x32a73d[_0x3b40c5(0x27b)]();}[_0x1736bc(0xe6)](){const _0x9f6454=_0x1736bc;this[_0x9f6454(0x1c6)]();}[_0x1736bc(0x194)](){const _0x1f23e6=_0x1736bc;this[_0x1f23e6(0x1d7)](!0x0);}[_0x1736bc(0x24f)](_0x3d5623){const _0x576689=_0x1736bc;this[_0x576689(0x2ac)]=_0x3d5623;}['_getShapeAdjustInfosById'](_0x26a026,_0x32ac29,_0xcb7e42,_0x2a102a){const _0x1dc61c=_0x1736bc;let _0x4346b2=this[_0x1dc61c(0x337)][_0x1dc61c(0x1a7)](_0x26a026,_0x32ac29,_0xcb7e42);if(_0x4346b2)return _0x4346b2[_0x1dc61c(0x299)](_0x2a102a);}[_0x1736bc(0x211)](_0x428de8=!0x1){const _0x157e6e=_0x1736bc;if(this['_unitId']===null||this[_0x157e6e(0x16e)]===null||this[_0x157e6e(0xc7)]===null)return;let _0x2d0290=this[_0x157e6e(0x234)][_0x157e6e(0x250)](this[_0x157e6e(0x2b4)]);if(!_0x2d0290||!_0x2d0290[_0x157e6e(0xb1)](_0x361e49)[_0x157e6e(0xfb)]())return;let {scene:_0x27a207}=_0x2d0290,_0xcb1ecb={'unitId':this[_0x157e6e(0x2b4)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x157e6e(0xc7)]},_0x58f8c2=this[_0x157e6e(0x1c4)][_0x157e6e(0x2cd)](_0xcb1ecb),{transform:_0x585965}=_0x58f8c2;if(!_0x585965||_0x58f8c2[_0x157e6e(0x1e9)]!==_0xc7f81b['DRAWING_SHAPE'])return;let {left:_0x1ebcee,top:_0xb23fd5,width:_0x6aeb14,height:_0x4a1dbd,flipX:_0x8c37d2,flipY:_0x2b5f4b,angle:_0x4d8871=0x0}=_0x585965;if(_0x1ebcee===void 0x0||_0xb23fd5===void 0x0)return;if(_0x428de8){let _0x35ea6e=this['_sheetsShapeService']['getShapeModel'](this[_0x157e6e(0x2b4)],this[_0x157e6e(0x16e)],this[_0x157e6e(0xc7)]);_0x35ea6e==null||_0x35ea6e[_0x157e6e(0x247)]({'width':_0x6aeb14??0x0,'height':_0x4a1dbd??0x0}),this[_0x157e6e(0x164)]=_0x35ea6e==null?void 0x0:_0x35ea6e['getDrawingPoints']();}let _0x520885=this[_0x157e6e(0x164)];for(let _0x39c546=0x0;_0x39c546<_0x520885['length'];_0x39c546++){let _0x418a1e=_0x520885[_0x39c546],_0x5590f6=_0x418a1e['x'],_0x27e463=_0x418a1e['y'];if(_0x8c37d2&&(_0x5590f6=(_0x6aeb14||0x0)-_0x5590f6),_0x2b5f4b&&(_0x27e463=(_0x4a1dbd||0x0)-_0x27e463),_0x4d8871!==0x0){let _0x5330b1=(_0x6aeb14||0x0)/0x2,_0x423011=(_0x4a1dbd||0x0)/0x2,_0x1aff37=_0x4d8871*Math['PI']/0xb4,_0x3ae22f=Math[_0x157e6e(0x213)](_0x1aff37),_0x4e9815=Math[_0x157e6e(0x2ab)](_0x1aff37),_0x13da2c=_0x5590f6-_0x5330b1,_0x90fb3d=_0x27e463-_0x423011;_0x5590f6=_0x5330b1+(_0x13da2c*_0x3ae22f-_0x90fb3d*_0x4e9815),_0x27e463=_0x423011+(_0x13da2c*_0x4e9815+_0x90fb3d*_0x3ae22f);}let _0x58064d={'x':_0x5590f6,'y':_0x27e463,'adjName':_0x418a1e[_0x157e6e(0x2d8)]};this['_addShapeAdjustControl'](_0x27a207,_0x58064d,_0x58064d[_0x157e6e(0x2d8)],_0x1ebcee,_0xb23fd5,this[_0x157e6e(0x2b4)],this[_0x157e6e(0x16e)]);}}[_0x1736bc(0x1d7)](_0x32870a=!0x1){const _0x3e877a=_0x1736bc;_0x32870a&&(this['_clearShapeAdjustControls'](),this[_0x3e877a(0x211)](_0x32870a));}[_0x1736bc(0x1be)](_0x1a8e61,_0x21ca72,_0xf11f16,_0x444791,_0x4cb476,_0xb2c2d6,_0x403f4c){const _0x491ce2=_0x1736bc;if(!this[_0x491ce2(0xc7)])return;let _0x16cd5a=_0x1a8e61[_0x491ce2(0x288)](_0x491ce2(0xcd)+this[_0x491ce2(0xc7)]+'-'+_0xf11f16);if(_0x16cd5a){_0x16cd5a[_0x491ce2(0xc2)]({'left':_0x21ca72['x']+_0x444791-_0x48b11f[_0x491ce2(0x108)],'top':_0x21ca72['y']+_0x4cb476-_0x48b11f[_0x491ce2(0x108)]});return;}let _0x140bd6={'left':_0x21ca72['x']+_0x444791-_0x48b11f[_0x491ce2(0x108)],'top':_0x21ca72['y']+_0x4cb476-_0x48b11f[_0x491ce2(0x108)],'adjName':_0xf11f16,'shapeId':this['_activeShapeId'],'unitId':_0xb2c2d6,'subUnitId':_0x403f4c,'width':_0x48b11f[_0x491ce2(0x108)]+0x8,'height':_0x48b11f[_0x491ce2(0x108)]+0x8,'zIndex':_0x21c410+0x1,'evented':!0x0},_0x454675=new Or(_0x491ce2(0xcd)+this[_0x491ce2(0xc7)]+'-'+_0xf11f16,_0x140bd6);this[_0x491ce2(0x144)]['push'](_0x454675),this[_0x491ce2(0x206)](_0x454675,_0x1a8e61,_0xf11f16),_0x1a8e61[_0x491ce2(0x1f3)](_0x454675,_0x21c410+0x1);}['_clearShapeAdjustControls'](){const _0x145857=_0x1736bc;this[_0x145857(0x144)]['length']!==0x0&&(this[_0x145857(0x144)][_0x145857(0x1df)](_0x13e8f2=>{const _0x389888=_0x145857;_0x13e8f2[_0x389888(0x137)]();}),this['_shapes']=[]);}['_updateAdjustControlPositions'](){const _0x2c4a36=_0x1736bc;this[_0x2c4a36(0x211)]();}[_0x1736bc(0xf8)](_0x1b78a8,_0xbfa62b){const _0x352c63=_0x1736bc;var _0x33e527;let _0x1a6e81={'x':0x0,'y':0x0};if(!_0x1b78a8||!_0xbfa62b)return _0x1a6e81;let _0x4593ac=this[_0x352c63(0x234)][_0x352c63(0x250)](_0x1b78a8);if(!_0x4593ac||!_0x4593ac[_0x352c63(0xb1)](_0x361e49)['getSkeleton'](_0xbfa62b))return _0x1a6e81;let _0x30b0ec=_0x4593ac[_0x352c63(0xb1)](_0x332edb),_0x53dbb9=_0x30b0ec==null?void 0x0:_0x30b0ec['getCurrentScrollState']();if(!_0x53dbb9)return _0x1a6e81;let _0x3e09bf=(_0x33e527=this[_0x352c63(0x146)]['getUnit'](_0x1b78a8))==null?void 0x0:_0x33e527[_0x352c63(0x14a)](_0xbfa62b);if(!_0x3e09bf)return _0x1a6e81;let _0x2085ca=_0x1144c3(_0x53dbb9[_0x352c63(0x1f5)],_0x53dbb9['sheetViewStartColumn'],_0x4593ac[_0x352c63(0x1b2)],_0x3e09bf);return _0x2085ca?{'x':_0x2085ca['viewportScrollX'],'y':_0x2085ca[_0x352c63(0xf0)]}:_0x1a6e81;}[_0x1736bc(0x158)](_0x1bd63b,_0x314077){const _0xfc2b8e=_0x1736bc;var _0x49b8b4;let _0x44732e=(_0x49b8b4=this[_0xfc2b8e(0x146)]['getUnit'](_0x1bd63b))==null?void 0x0:_0x49b8b4['getSheetBySheetId'](_0x314077);return(_0x44732e==null?void 0x0:_0x44732e[_0xfc2b8e(0x133)]())??0x1;}[_0x1736bc(0x206)](_0x3d965a,_0x580152,_0x370afd){const _0x223c3c=_0x1736bc;this['disposeWithMe'](_0x219635(_0x3d965a[_0x223c3c(0x280)][_0x223c3c(0xdf)]((_0x5bd362,_0x4f3299)=>{const _0xf40d56=_0x223c3c;var _0x84573f,_0x37f6de,_0xc566de,_0x3c3d0e;let _0x59bf92=_0x3d965a['getDrawingSearch']();this[_0xf40d56(0xfc)]=this[_0xf40d56(0x1cd)](_0x59bf92[_0xf40d56(0x142)],_0x59bf92[_0xf40d56(0x320)],_0x59bf92[_0xf40d56(0xd6)],_0x370afd),this['_activeShapeModel']=this['_sheetsShapeService'][_0xf40d56(0x1a7)](_0x59bf92[_0xf40d56(0x142)],_0x59bf92[_0xf40d56(0x320)],_0x59bf92[_0xf40d56(0xd6)]);let _0x3c0153=this['_drawingManagerService']['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this[_0xf40d56(0x16e)],'drawingId':this['_activeShapeId']}),{transform:_0x5a38c0}=_0x3c0153;if(_0x5a38c0){let {left:_0xefc90c,top:_0x17eb67,width:_0x3dc75e,height:_0x2d75e4}=_0x5a38c0;this[_0xf40d56(0x2fd)]=_0xefc90c||0x0,this[_0xf40d56(0x2ff)]=_0x17eb67||0x0,this[_0xf40d56(0x202)]=_0x3dc75e||0x0,this[_0xf40d56(0xd5)]=_0x2d75e4||0x0;}let _0x2a6730=!!((_0x84573f=_0x3c0153[_0xf40d56(0x1f0)])!=null&&_0x84573f['flipX']),_0x51dbce=!!((_0x37f6de=_0x3c0153[_0xf40d56(0x1f0)])!=null&&_0x37f6de[_0xf40d56(0x1b3)]),_0x4e47ee=((_0xc566de=_0x3c0153[_0xf40d56(0x1f0)])==null?void 0x0:_0xc566de[_0xf40d56(0x13b)])||0x0;this[_0xf40d56(0x12a)]=!0x0,_0x580152[_0xf40d56(0x30d)]();let _0x47d1a1={...((_0x3c3d0e=this[_0xf40d56(0xfc)])==null?void 0x0:_0x3c3d0e[_0xf40d56(0xae)])??{}};this[_0xf40d56(0x26b)]=_0x580152[_0xf40d56(0x285)][_0xf40d56(0xdf)]((_0x22a011,_0x3a69a3)=>{const _0x1becb7=_0xf40d56;if(!this[_0x1becb7(0x12a)])return;let {offsetX:_0x13eff7,offsetY:_0x2aaa26}=_0x22a011,_0x23b921=this[_0x1becb7(0xfc)];if(this[_0x1becb7(0x266)]&&_0x23b921){_0x580152[_0x1becb7(0x30d)](),_0x580152['setCursor'](_0x5c9ad6[_0x1becb7(0x1ab)]);let _0x46c1ea={'left':0x0,'top':0x0,'width':this[_0x1becb7(0x202)],'height':this['_baseShapeHeight']},_0x23ef10=this[_0x1becb7(0xf8)](this[_0x1becb7(0x2b4)],this['_subUnitId']),_0x1ee2d3=this[_0x1becb7(0x158)](this['_unitId'],this[_0x1becb7(0x16e)]),_0x16ee28=_0x13eff7/_0x1ee2d3+_0x23ef10['x']-this['_baseShapeLeft'],_0x4641a9=_0x2aaa26/_0x1ee2d3+_0x23ef10['y']-this[_0x1becb7(0x2ff)];if(_0x4e47ee!==0x0){let _0x51f89a=this[_0x1becb7(0x202)]/0x2,_0x32297e=this[_0x1becb7(0xd5)]/0x2,_0x39824b=_0x4e47ee*Math['PI']/0xb4,_0x39d868=Math[_0x1becb7(0x213)](_0x39824b),_0x207e82=Math['sin'](_0x39824b),_0x484426=_0x16ee28-_0x51f89a,_0x46af91=_0x4641a9-_0x32297e;_0x16ee28=_0x51f89a+(_0x484426*_0x39d868+_0x46af91*_0x207e82),_0x4641a9=_0x32297e+(-_0x484426*_0x207e82+_0x46af91*_0x39d868);}_0x2a6730&&(_0x16ee28=this['_baseShapeWidth']-_0x16ee28),_0x51dbce&&(_0x4641a9=this[_0x1becb7(0xd5)]-_0x4641a9);let _0x214d60={'x':_0x16ee28,'y':_0x4641a9},_0x4109db=this[_0x1becb7(0x266)][_0x1becb7(0x20e)](_0x46c1ea,_0x214d60,_0x23b921,_0x2a6730,_0x51dbce);if(Object[_0x1becb7(0x23b)](_0x4109db)[_0x1becb7(0x180)]===0x0)return;for(let [_0x1f63c5,_0x4158b4]of Object[_0x1becb7(0xa8)](_0x4109db))this[_0x1becb7(0x266)]['setAdjustValueByName'](_0x1f63c5,_0x4158b4);this['_activeShapeModel']['updateContext']({'width':this['_baseShapeWidth'],'height':this[_0x1becb7(0xd5)]});let _0x469ec9=this['_drawingManagerService'][_0x1becb7(0x2cd)]({'unitId':_0x59bf92['unitId'],'subUnitId':_0x59bf92[_0x1becb7(0x320)],'drawingId':_0x59bf92['drawingId']});_0x469ec9&&(this[_0x1becb7(0x264)][_0x1becb7(0x18e)](_0x469ec9,_0x580152),this['_activeShapeAdjustPointList']=this[_0x1becb7(0x2e6)](_0x59bf92['unitId'],_0x59bf92['subUnitId'],_0x59bf92['drawingId']),this[_0x1becb7(0x124)]());}_0x3a69a3[_0x1becb7(0x1ed)]();}),this[_0xf40d56(0xdd)]=_0x580152[_0xf40d56(0xe9)]['subscribeEvent']((_0x1dbb09,_0xf5d957)=>{const _0xdea739=_0xf40d56;this['_adjHandlerPointerMove'][_0xdea739(0x214)](),this[_0xdea739(0xdd)]['unsubscribe'](),_0x580152[_0xdea739(0x119)]();let _0xa880d6=this[_0xdea739(0xfc)];if(_0xa880d6){let _0x50ba9d=_0x59bf92[_0xdea739(0x142)],_0x402ec5=_0x59bf92[_0xdea739(0x320)],_0x3cf156=_0x59bf92['drawingId'],_0x510fbe={};for(let _0x988d9 of Object[_0xdea739(0x23b)](_0xa880d6[_0xdea739(0xae)])){var _0x48c34c;let _0x439348=(_0x48c34c=this[_0xdea739(0x266)])==null?void 0x0:_0x48c34c[_0xdea739(0x195)](_0x988d9);_0x439348!==void 0x0&&(_0x510fbe[_0x988d9]=_0x439348);}Object[_0xdea739(0x23b)](_0x510fbe)[_0xdea739(0x180)]>0x0&&xr(this[_0xdea739(0x287)],_0x50ba9d,_0x402ec5,_0x3cf156,{'oldShapeData':{'adjustValues':_0x47d1a1}},{'adjustValues':_0x510fbe});}this[_0xdea739(0xfc)]=void 0x0,this[_0xdea739(0x266)]=void 0x0,this[_0xdea739(0x12a)]=!0x1,_0xf5d957['stopPropagation'](),_0x580152[_0xdea739(0xb6)]();}),_0x4f3299['stopPropagation']();})));}['_registerDrawingMoveHandler'](){const _0xbcbb63=_0x1736bc;let _0x320d85=this['_univerInstanceService'][_0xbcbb63(0x2b3)](_0x1e715c[_0xbcbb63(0x2f0)]);this['disposeWithMe'](_0x320d85[_0xbcbb63(0x33c)](_0x57ed4d(_0x929afa=>_0x929afa?_0x929afa[_0xbcbb63(0x116)]['pipe'](_0x57ed4d(_0x5725d5=>{const _0x448e6b=_0xbcbb63;if(!_0x5725d5)return _0x220d4d;let _0x524867=_0x929afa['getUnitId'](),_0xce98c6=this[_0x448e6b(0x234)][_0x448e6b(0x250)](_0x524867),_0x15fab5=_0xce98c6==null?void 0x0:_0xce98c6[_0x448e6b(0x1b2)];return _0x15fab5?_0x129e12(_0x15fab5):_0x220d4d;})):_0x220d4d))[_0xbcbb63(0x222)](_0x350775=>{const _0xee5ccb=_0xbcbb63;let _0x2b153d=_0x350775[_0xee5ccb(0x1de)]();this[_0xee5ccb(0x2d9)](_0x350775['onPointerMove$'][_0xee5ccb(0xdf)](()=>{const _0x27fc59=_0xee5ccb;this[_0x27fc59(0x2ac)];})),this[_0xee5ccb(0x2d9)](_0x2b153d[_0xee5ccb(0x1ae)]['subscribe'](_0xd398e=>{const _0x510a92=_0xee5ccb;let {objects:_0x5f1e71}=_0xd398e;this[_0x510a92(0x211)](),_0x5f1e71!==null&&_0x5f1e71[_0x510a92(0xe5)]===0x1&&_0x5f1e71[_0x510a92(0x2b9)]()[_0x510a92(0x2a9)]()[_0x510a92(0x2f4)]instanceof Dr&&this[_0x510a92(0x24f)](!0x0);})),this[_0xee5ccb(0x2d9)](_0x2b153d[_0xee5ccb(0x2df)]['subscribe'](()=>{const _0x25d8b7=_0xee5ccb;this[_0x25d8b7(0x2ac)]&&this['_clearShapeAdjustControls']();})),this['disposeWithMe'](_0x350775[_0xee5ccb(0xe9)][_0xee5ccb(0xdf)](()=>{const _0x28ed1b=_0xee5ccb;this[_0x28ed1b(0x2ac)]&&(this[_0x28ed1b(0x24f)](!0x1),this[_0x28ed1b(0x211)]());})),this['disposeWithMe'](_0x2b153d['changeEnd$']['subscribe'](()=>{const _0x5052c4=_0xee5ccb;this[_0x5052c4(0x2b4)]&&this[_0x5052c4(0x16e)]&&this['_activeShapeId']&&this['_drawingManagerService'][_0x5052c4(0x2cd)]({'unitId':this[_0x5052c4(0x2b4)],'subUnitId':this[_0x5052c4(0x16e)],'drawingId':this[_0x5052c4(0xc7)]})&&(this[_0x5052c4(0x164)]=this[_0x5052c4(0x2e6)](this[_0x5052c4(0x2b4)],this[_0x5052c4(0x16e)],this[_0x5052c4(0xc7)]),this[_0x5052c4(0x124)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x28443c=_0x1736bc;this[_0x28443c(0x2d9)](this[_0x28443c(0x287)][_0x28443c(0x9d)](_0x15adac=>{const _0x4c6cce=_0x28443c;if(_0x15adac['id']!==_0x596a36['id'])return;let {unitId:_0x233484,subUnitId:_0x1295a9,shapeId:_0x9b5772}=_0x15adac[_0x4c6cce(0x228)];_0x233484===this[_0x4c6cce(0x2b4)]&&_0x1295a9===this[_0x4c6cce(0x16e)]&&_0x9b5772===this[_0x4c6cce(0xc7)]&&this[_0x4c6cce(0x194)]();})),this[_0x28443c(0x2d9)](this['_drawingManagerService'][_0x28443c(0x29e)][_0x28443c(0x222)](_0x32cd07=>{const _0x8da38f=_0x28443c;if(_0x32cd07[_0x8da38f(0x180)]===0x1){let _0x5b6d02=_0x32cd07[0x0];if(_0x5b6d02[_0x8da38f(0x1e9)]===_0xc7f81b[_0x8da38f(0x33e)]&&this[_0x8da38f(0x146)][_0x8da38f(0x1d3)](_0x5b6d02[_0x8da38f(0x142)])===_0x1e715c[_0x8da38f(0x2f0)]){this[_0x8da38f(0xc7)]=_0x5b6d02[_0x8da38f(0xd6)];let {unitId:_0x3847ff,subUnitId:_0x13aaaa}=_0x5b6d02;this['_activeShapeAdjustPointList']=this[_0x8da38f(0x2e6)](_0x3847ff,_0x13aaaa,this[_0x8da38f(0xc7)]),this[_0x8da38f(0x2b4)]=_0x3847ff,this[_0x8da38f(0x16e)]=_0x13aaaa,this[_0x8da38f(0x1c6)](),this[_0x8da38f(0x211)]();return;}}this['_activeShapeId']=null,this[_0x8da38f(0x164)]=void 0x0,this[_0x8da38f(0x2b4)]=null,this[_0x8da38f(0x16e)]=null,this[_0x8da38f(0x1c6)]();})),this[_0x28443c(0x2d9)](this[_0x28443c(0x1c4)]['update$'][_0x28443c(0x222)](_0x5b66e7=>{const _0x49a01b=_0x28443c;if(_0x5b66e7[_0x49a01b(0x180)]===0x1){var _0x28dc8c;let _0x4cfdae=_0x5b66e7[0x0];((_0x28dc8c=this[_0x49a01b(0x1c4)][_0x49a01b(0x2cd)](_0x4cfdae))==null?void 0x0:_0x28dc8c['drawingType'])===_0xc7f81b[_0x49a01b(0x33e)]&&this[_0x49a01b(0x1d7)](!0x0);}})),this['disposeWithMe'](this[_0x28443c(0x1c4)][_0x28443c(0x322)][_0x28443c(0x222)](_0x55eac6=>{const _0x52ec4b=_0x28443c;for(let _0x519516 of _0x55eac6)this['_activeShapeId']===_0x519516[_0x52ec4b(0xd6)]&&(this[_0x52ec4b(0xc7)]=null,this[_0x52ec4b(0x164)]=void 0x0,this['_unitId']=null,this['_subUnitId']=null,this['_clearShapeAdjustControls']());}));}};Z=Y([J(0x0,_0x4cc7db),J(0x1,_0x5b826f(_0xa0be75)),J(0x2,_0x5b826f(_0x41745c)),J(0x3,_0x5b826f(X)),J(0x4,_0xfd8e0),J(0x5,_0x376420)],Z);const kr={'id':'drawing.operation.set-drawing-active','type':_0x1f5d9a[_0x1736bc(0x13a)],'handler':(_0x4aa914,_0x2e1737)=>{const _0x599df8=_0x1736bc;let _0x324eb2=_0x4aa914['get'](_0x4cc7db),_0x5d6a1e=_0x4aa914['get'](_0x41745c),_0x271615=_0x4aa914[_0x599df8(0x106)](Z);if(_0x2e1737==null)return!0x0;if(_0x2e1737[_0x599df8(0x180)]>0x0){var _0x27b6df;let _0x1409c0=(_0x27b6df=_0x5d6a1e[_0x599df8(0x250)](_0x2e1737[0x0]['unitId']))==null?void 0x0:_0x27b6df[_0x599df8(0x1b2)];if(_0x1409c0){let {unitId:_0x385dbd,subUnitId:_0x11ea2f,drawingId:_0x19cd95}=_0x2e1737[0x0],_0x1d6fde=_0x308e11({'unitId':_0x385dbd,'subUnitId':_0x11ea2f,'drawingId':_0x19cd95},void 0x0),_0x4c08b2=_0x1409c0[_0x599df8(0x288)](_0x1d6fde);if(_0x4c08b2){var _0x3ca3cf;(_0x3ca3cf=_0x5d6a1e['getRenderUnitById'](_0x2e1737[0x0][_0x599df8(0x142)]))==null||(_0x3ca3cf=_0x3ca3cf[_0x599df8(0x1b2)]['getTransformer']())==null||_0x3ca3cf[_0x599df8(0x2ef)](_0x4c08b2);}}_0x324eb2[_0x599df8(0x148)](_0x2e1737),_0x271615[_0x599df8(0x24f)](!0x1);}return!0x0;}},Ar={'type':_0x1f5d9a['COMMAND'],'id':_0x1736bc(0x252),'handler':async(_0x217657,_0x8f9d2e)=>{const _0x27ef17=_0x1736bc;let _0x1367e2=_0x747b0d(_0x217657[_0x27ef17(0x106)](_0xfd8e0));if(!_0x1367e2)return!0x1;let _0x2c9218=_0x217657[_0x27ef17(0x106)](_0x47ce2c)[_0x27ef17(0x1ea)]();if(!_0x2c9218)return!0x1;let _0x12c95e=_0x217657[_0x27ef17(0x106)](_0x376420),{unitId:_0x4ddb4c,subUnitId:_0x1cd260}=_0x1367e2,{value:_0xd56837,enhanceParams:_0x1ce8da}=_0x8f9d2e,{range:_0x597a9b}=_0x2c9218,_0x235105={'unitId':_0x4ddb4c,'subUnitId':_0x1cd260,'shapeType':_0xd56837,'range':_0x597a9b,'shapeId':_0x165ac1()};if(_0x1ce8da){let _0x481c18=_0x1e2b3c(_0xd56837),_0x1dcf0c=_0xd56837===_0x47ece1[_0x27ef17(0x10a)];_0x481c18&&(_0x1ce8da[_0x27ef17(0x22f)]||_0x1ce8da[_0x27ef17(0x1eb)])&&(_0x235105[_0x27ef17(0x1ce)]={'ln':{'startArrow':_0x1ce8da[_0x27ef17(0x22f)]?{'type':_0x11a207[_0x27ef17(0xd7)],'size':_0x48c141['Medium']}:void 0x0,'endArrow':_0x1ce8da[_0x27ef17(0x1eb)]?{'type':_0x11a207[_0x27ef17(0xd7)],'size':_0x48c141['Large']}:void 0x0}}),_0x1dcf0c&&(_0x1ce8da[_0x27ef17(0x209)]||_0x1ce8da[_0x27ef17(0x23d)])&&(_0x235105[_0x27ef17(0x1ce)]=_0x43f681({'fill':{'fillType':_0x25088f[_0x27ef17(0x1aa)],'color':_0x27ef17(0xbb)},'isHorizontal':!!_0x1ce8da[_0x27ef17(0x209)],'stroke':{'lineStrokeType':_0x2f4161[_0x27ef17(0xbc)],'width':0x1,'color':'#bcbcbc'}}));}let _0x37070c=_0x12c95e['syncExecuteCommand'](_0x1eec17['id'],_0x235105);return setTimeout(()=>{const _0xac60c=_0x27ef17;_0x12c95e[_0xac60c(0x335)](kr['id'],[{'unitId':_0x4ddb4c,'subUnitId':_0x1cd260,'drawingId':_0x235105[_0xac60c(0xea)]}]);},0xc8),_0x37070c;}},jr=_0x1736bc(0x34d),Mr=_0x1736bc(0x2cc),Nr=_0x1736bc(0x1c1),Pr='sheets-shape-ui.ribbon.shape-format',Fr=_0xffeffa(_0x1736bc(0x1c9)),Ir=_0x1736bc(0x26c),Lr={'id':_0x1736bc(0x10b),'type':_0x1f5d9a[_0x1736bc(0xaa)],'handler':(_0x1dfca9,_0x277a04)=>{const _0x34bb01=_0x1736bc;let _0x51ec05=_0x1dfca9[_0x34bb01(0x106)](_0x253182),_0x31bf11=_0x1dfca9['get'](_0x3cb7ae),_0xbabfff=_0x1dfca9['get'](_0xfd8e0),_0x40c262=_0x1dfca9[_0x34bb01(0x106)](_0x376420);return _0x747b0d(_0xbabfff)?(_0x277a04==null?void 0x0:_0x277a04[_0x34bb01(0x2f4)])===_0x34bb01(0x100)?(_0x51ec05['close'](Mr),!0x0):(_0x51ec05['open']({'id':Mr,'header':{'title':_0x31bf11['t'](_0x34bb01(0x312))},'children':{'label':Mr},'onClose':()=>{const _0x20368e=_0x34bb01;_0x40c262[_0x20368e(0xd8)](_0x135719['id'],[]);},'width':0x168}),!0x0):!0x1;}},Rr={'type':_0x1f5d9a[_0x1736bc(0x13a)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!0x0;}};function zr(_0x1f9c2a){const _0x33b0c3=_0x1736bc;let _0x3d19d6=_0x1f9c2a[_0x33b0c3(0x106)](_0x4cc7db)[_0x33b0c3(0x345)](),_0x20d614=_0x3d19d6[_0x33b0c3(0x180)]===0x1?_0x3d19d6[0x0]:null;if(!_0x20d614||_0x20d614['drawingType']!==_0xc7f81b['DRAWING_SHAPE'])return null;let _0x83a2cc=_0x1f9c2a[_0x33b0c3(0x106)](_0xa0be75),_0x24e3a3=_0x83a2cc['getShapeTypeById'](_0x20d614[_0x33b0c3(0x142)],_0x20d614[_0x33b0c3(0x320)],_0x20d614['drawingId']),_0x5118f2=_0x83a2cc['getShapeDataById'](_0x20d614[_0x33b0c3(0x142)],_0x20d614['subUnitId'],_0x20d614['drawingId']);return _0x24e3a3===void 0x0||!_0x5118f2?null:{'drawing':_0x20d614,'shapeData':_0x5118f2,'shapeType':_0x24e3a3};}const Br={'id':_0x1736bc(0x2d7),'type':_0x1f5d9a[_0x1736bc(0x13a)],'handler':(_0x4f3c61,_0x3b3143)=>{const _0x278b6c=_0x1736bc;let _0x875cc6=zr(_0x4f3c61),_0x26eb31=_0x556add((_0x3b3143==null?void 0x0:_0x3b3143[_0x278b6c(0x1cb)])??(_0x3b3143==null?void 0x0:_0x3b3143[_0x278b6c(0x2f4)])??'');if(!_0x875cc6||!_0x26eb31||_0x26eb31[_0x278b6c(0x2c1)]!==_0x10f52f(_0x875cc6['shapeData']))return!0x1;let _0x50ce8b=_0x278af8(_0x875cc6[_0x278b6c(0x1ce)],_0x26eb31);if(!_0x50ce8b)return!0x1;let {drawing:_0x4a0d55}=_0x875cc6;return _0x4f3c61[_0x278b6c(0x106)](_0x376420)[_0x278b6c(0x335)](br['id'],{'unitId':_0x4a0d55['unitId'],'subUnitId':_0x4a0d55[_0x278b6c(0x320)],'shapeId':_0x4a0d55[_0x278b6c(0xd6)],'shapeData':_0x50ce8b,'oldShapeJSON':{'oldShapeData':_0x875cc6[_0x278b6c(0x1ce)]}});}},Vr={'id':'sheet.operation.update-shape-type','type':_0x1f5d9a[_0x1736bc(0x13a)],'handler':(_0x53d98d,_0x5c543c)=>{const _0x217412=_0x1736bc;let _0x1ffb06=zr(_0x53d98d),_0xb02fcd=(_0x5c543c==null?void 0x0:_0x5c543c[_0x217412(0xd2)])??(_0x5c543c==null?void 0x0:_0x5c543c[_0x217412(0x2f4)]);if(!_0x1ffb06||!_0xb02fcd||_0x1e2b3c(_0x1ffb06[_0x217412(0xd2)])||_0x1e2b3c(_0xb02fcd))return!0x1;let _0x5cd130=_0x3f9533(_0x1ffb06['shapeData'],_0xb02fcd);if(!_0x5cd130)return!0x1;let {drawing:_0x1e0290}=_0x1ffb06;return _0x53d98d[_0x217412(0x106)](_0x376420)[_0x217412(0x335)](br['id'],{'unitId':_0x1e0290[_0x217412(0x142)],'subUnitId':_0x1e0290[_0x217412(0x320)],'shapeId':_0x1e0290[_0x217412(0xd6)],'shapeType':_0xb02fcd,'shapeData':_0x5cd130,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x1ffb06[_0x217412(0xd2)],'oldShapeData':_0x1ffb06[_0x217412(0x1ce)]}});}};let Q=class extends _0x3f60c8{constructor(_0x531dd9,_0x309c81){const _0x2a6ac8=_0x1736bc;super(),this['_clipService']=_0x531dd9,this[_0x2a6ac8(0x1c4)]=_0x309c81,this[_0x2a6ac8(0x134)](),this[_0x2a6ac8(0x1e8)]['setCanUseShapeClip'](!0x0),this[_0x2a6ac8(0x2d9)]({'dispose':()=>this['_clipService'][_0x2a6ac8(0x26f)](!0x1)});}[_0x1736bc(0x134)](){const _0x6ff135=_0x1736bc;let _0x4a43da=this[_0x6ff135(0x1e8)],_0x1d952f=new Map(),_0x8036e5=_0x4a43da[_0x6ff135(0x26a)]((_0x5e5615,_0xcad892,_0x2653b9,_0x3ac580,_0x35005d)=>{const _0x52342d=_0x6ff135;let _0xcbcae6=_0xcad892;if(_0xcbcae6===_0x47ece1[_0x52342d(0xf7)]||_0xcad892===_0x52342d(0x31a))return!0x1;try{let _0x351fca=_0x1d952f[_0x52342d(0x106)](_0xcad892);return _0x351fca||(_0x351fca=new _0x1e155b(_0xcbcae6,_0x52342d(0x1e0)+_0xcad892),_0x1d952f[_0x52342d(0x323)](_0xcad892,_0x351fca)),_0x351fca[_0x52342d(0xa0)](),_0x35005d&&Object['keys'](_0x35005d)[_0x52342d(0x180)]>0x0&&_0x351fca[_0x52342d(0x31b)]({'adjustValues':_0x35005d},!0x0),_0x351fca['updateContext']({'width':_0x2653b9,'height':_0x3ac580}),_0x351fca[_0x52342d(0x289)](_0x5e5615,{'left':0x0,'top':0x0,'width':_0x2653b9,'height':_0x3ac580});}catch{return!0x1;}});this[_0x6ff135(0x2d9)](_0x8036e5),this[_0x6ff135(0x2d9)]({'dispose':()=>_0x1d952f[_0x6ff135(0x284)]()});}[_0x1736bc(0xd0)](_0x3b46a5,_0x20420d,_0xa5fcb3,_0x4487ee,_0x3b4ae2){const _0x100df1=_0x1736bc;let _0x441464=this[_0x100df1(0x1c4)]['getDrawingData'](_0x3b46a5,_0x20420d);if(!_0x441464[_0xa5fcb3])return;let _0x10cb50={..._0x441464[_0xa5fcb3],'prstGeom':_0x4487ee,'adjustValues':_0x3b4ae2};this['_drawingManagerService'][_0x100df1(0x1f2)]([_0x10cb50]);}};Q=Y([J(0x0,_0x5b826f(_0x312bad)),J(0x1,_0x5b826f(_0x4cc7db))],Q);const Hr=_0x1736bc(0xa2),Ur=_0x1736bc(0x2c8);function Wr({onShapeClick:_0x1fa103,excludeGroups:_0x572c77}){const _0x5a32b8=_0x1736bc;return _0x92a68d(_0x4c940d,{'excludeGroups':_0x572c77,'onShapeClick':_0x1fa103,'scrollContainer':_0x5a32b8(0x128)});}function Gr(){const _0x36acb2=_0x1736bc;let _0x24f151=_0x52bd02(_0x4cc7db),_0xb08847=_0x52bd02(Q);return _0x92a68d(_0x202ec3,{'buttonLabel':_0x36acb2(0x1f1),'excludeGroups':[_0x1ad825['Line']],'onShapeClick':_0x3dd6e2=>{const _0x11d486=_0x36acb2;let _0x584cb1=_0x24f151['getFocusDrawings']()['find'](_0x14bf4d=>_0x14bf4d[_0x11d486(0x1e9)]===_0xc7f81b[_0x11d486(0x29f)]);if(!_0x584cb1)return;let {unitId:_0x33fa7,subUnitId:_0x2d34ae,drawingId:_0x4de65d}=_0x584cb1;_0xb08847[_0x11d486(0xd0)](_0x33fa7,_0x2d34ae,_0x4de65d,_0x3dd6e2[_0x11d486(0x2c1)]);}});}function Kr(){const _0x6ba9b2=_0x1736bc;let _0x5c1bd2=_0x52bd02(_0x4cc7db),_0x12bcf7=_0x52bd02(Q);return _0x92a68d(_0x202ec3,{'buttonLabel':_0x6ba9b2(0x1f1),'excludeGroups':[_0x1ad825[_0x6ba9b2(0x246)]],'DropdownComponent':_0x42f0df,'onShapeClick':_0x746093=>{const _0x28fc35=_0x6ba9b2;let _0x4f372c=_0x5c1bd2[_0x28fc35(0x345)]()[_0x28fc35(0x199)](_0x215a1c=>_0x215a1c[_0x28fc35(0x1e9)]===_0xc7f81b[_0x28fc35(0x29f)]);if(!_0x4f372c)return;let {unitId:_0x32fff8,subUnitId:_0x1ca15d,drawingId:_0xec3800}=_0x4f372c;_0x12bcf7[_0x28fc35(0xd0)](_0x32fff8,_0x1ca15d,_0xec3800,_0x746093['type']);}});}function qr(){const _0x4fd552=_0x1736bc;let _0xc69842=_0x52bd02(_0x4dd843),_0x11de86=_0x52bd02(_0x4cc7db),_0x3ba81e=_0x52bd02(_0xfd8e0),_0x443b70=_0x11de86[_0x4fd552(0x345)]()[0x0],_0x52ce98=_0x443b70?_0x3ba81e['getUnitType'](_0x443b70['unitId']):void 0x0,_0x5f41e1=_0x52ce98===_0x1e715c[_0x4fd552(0x2d2)]?'doc.image-clip.shape-picker.component':_0x52ce98===_0x1e715c[_0x4fd552(0x2f0)]?Ur:void 0x0,_0x5d859b=_0x5f41e1?_0xc69842[_0x4fd552(0x106)](_0x5f41e1):void 0x0;return _0x5d859b?_0x92a68d(_0x5d859b,{}):null;}function Jr(){let _0x31fa90=_0x52bd02(_0x376420);return _0x92a68d(Wr,{'onShapeClick':_0x1282fa=>{const _0x52d0f8=_0x39b9;_0x31fa90[_0x52d0f8(0x335)](Ar['id'],{'value':_0x1282fa[_0x52d0f8(0x2c1)],'enhanceParams':{'endArrow':_0x1282fa[_0x52d0f8(0x1eb)],'startArrow':_0x1282fa[_0x52d0f8(0x22f)],'horizontal':_0x1282fa[_0x52d0f8(0x209)],'vertical':_0x1282fa[_0x52d0f8(0x23d)]}});}});}function Yr(){return _0x92a68d(Jr,{});}function Xr(_0x598dcb){const _0x15b34d=_0x1736bc;let _0x298397=_0x598dcb[_0x15b34d(0x106)](_0xfd8e0);return{'id':Ar['id'],'type':_0x3eae92[_0x15b34d(0x230)],'selections':[{'label':{'name':Hr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Ar['id']}}}],'icon':_0x15b34d(0xaf),'tooltip':'sheets-shape-ui.insertShape','activated$':_0x581b5(_0x298397,!0x1,()=>new _0x2adfd4(_0x568f42=>{const _0x2843ef=_0x15b34d;_0x568f42[_0x2843ef(0x2a9)](!0x1);})),'hidden$':_0x59bb88(_0x598dcb,_0x1e715c[_0x15b34d(0x2f0)]),'disabled$':_0x1e37af(_0x598dcb)};}function Zr(_0x563df2){const _0x121433=_0x1736bc;let _0x20caeb=_0x563df2[_0x121433(0x106)](_0xfd8e0);return{'id':Lr['id'],'type':_0x3eae92['BUTTON'],'icon':_0x121433(0x342),'title':_0x121433(0x268),'tooltip':_0x121433(0x268),'activated$':_0x581b5(_0x20caeb,!0x1,()=>new _0x2adfd4(_0x1f83b9=>{_0x1f83b9['next'](!0x1);})),'hidden$':_0x59bb88(_0x563df2,_0x1e715c['UNIVER_SHEET']),'disabled$':_0x1e37af(_0x563df2)};}const Qr=_0x1736bc(0x27c),$r=_0x1736bc(0x9e);function ei(_0x4a2d24){const _0x181729=_0x1736bc;let _0x4a259b=_0x4a2d24['get'](_0x4cc7db)['getFocusDrawings']();return _0x4a259b[_0x181729(0x180)]===0x1&&_0x4a259b[0x0][_0x181729(0x1e9)]===_0xc7f81b[_0x181729(0x33e)]?_0x4a259b[0x0]:null;}function ti(_0x34ae2b){const _0xcb9875=_0x1736bc;let _0x4447ed=_0x34ae2b['get'](_0x4cc7db);return _0x4447ed[_0xcb9875(0x29e)][_0xcb9875(0x33c)](_0x386efb(_0x4447ed[_0xcb9875(0x345)]()),_0x5f083b(_0x437ea9=>_0x437ea9[_0xcb9875(0x180)]!==0x1||_0x437ea9[0x0][_0xcb9875(0x1e9)]!==_0xc7f81b[_0xcb9875(0x33e)]));}function ni(_0x32d7e3){const _0x52053b=_0x1736bc;return{'id':Qr,'commandId':_0x47c06c['id'],'type':_0x3eae92[_0x52053b(0x170)],'title':_0x52053b(0x2af),'tooltip':'sheets-shape-ui.flipHorizontal','icon':_0x52053b(0x32d),'hidden$':ti(_0x32d7e3),'params':()=>{const _0x368798=_0x52053b;let _0x44cb70=ei(_0x32d7e3);return _0x44cb70?{'unitId':_0x44cb70[_0x368798(0x142)],'subUnitId':_0x44cb70[_0x368798(0x320)],'shapeId':_0x44cb70[_0x368798(0xd6)],'flipH':!0x0}:void 0x0;}};}function ri(_0x105502){const _0x33ec20=_0x1736bc;return{'id':$r,'commandId':_0x47c06c['id'],'type':_0x3eae92[_0x33ec20(0x170)],'title':_0x33ec20(0x12d),'tooltip':'sheets-shape-ui.flipVertical','icon':_0x33ec20(0x1dc),'hidden$':ti(_0x105502),'params':()=>{const _0x587b85=_0x33ec20;let _0xb9d9ef=ei(_0x105502);return _0xb9d9ef?{'unitId':_0xb9d9ef[_0x587b85(0x142)],'subUnitId':_0xb9d9ef[_0x587b85(0x320)],'shapeId':_0xb9d9ef[_0x587b85(0xd6)],'flipV':!0x0}:void 0x0;}};}const ii=_0x1736bc(0x151),ai=_0x1736bc(0x2e3),oi=_0x1736bc(0x321),si=_0x1736bc(0x1da);function ci(){let _0x312eed=_0x52bd02(_0x376420),_0x9ba3db=_0x52bd02(_0x4cc7db),_0x2b6b80=_0x52bd02(_0xa0be75),_0x4b8562=()=>{const _0x120152=_0x39b9;var _0x4b35db;let _0x396eb3=_0x9ba3db[_0x120152(0x345)]();if(_0x396eb3['length']!==0x1||((_0x4b35db=_0x396eb3[0x0])==null?void 0x0:_0x4b35db[_0x120152(0x1e9)])!==_0xc7f81b[_0x120152(0x33e)])return null;let {unitId:_0x160cd3,subUnitId:_0xff8bc1,drawingId:_0x3750ea}=_0x396eb3[0x0],_0x4ffd6a=_0x2b6b80[_0x120152(0x2c6)](_0x160cd3,_0xff8bc1,_0x3750ea),_0x23b692=_0x2b6b80[_0x120152(0x237)](_0x160cd3,_0xff8bc1,_0x3750ea);return _0x4ffd6a===void 0x0||!_0x23b692?null:{'unitId':_0x160cd3,'subUnitId':_0xff8bc1,'drawingId':_0x3750ea,'shapeType':_0x4ffd6a,'shapeData':_0x23b692};},_0x1c6666=_0x5ed75a(()=>new _0x2adfd4(_0x132f24=>{const _0x34d0c8=_0x39b9;let _0x998920=()=>_0x132f24['next'](_0x4b8562()),_0x27efea=_0x9ba3db[_0x34d0c8(0x29e)][_0x34d0c8(0x222)](_0x998920),_0x545d0c=_0x312eed[_0x34d0c8(0x9d)](_0x3b2731=>{_0x3b2731['id']===_0x596a36['id']&&_0x998920();});return _0x998920(),()=>{const _0x12c947=_0x34d0c8;_0x27efea[_0x12c947(0x214)](),_0x545d0c[_0x12c947(0x137)]();};}),_0x4b8562(),!0x1,[_0x312eed,_0x9ba3db,_0x2b6b80]);return{'selection':_0x1c6666,'updateShapeData':_0x1bbf43=>{const _0x1b5bfc=_0x39b9;_0x1c6666&&xr(_0x312eed,_0x1c6666[_0x1b5bfc(0x142)],_0x1c6666[_0x1b5bfc(0x320)],_0x1c6666[_0x1b5bfc(0xd6)],{'oldShapeData':_0x1c6666['shapeData']},_0x1bbf43);}};}function li(){const _0x4305f7=_0x1736bc;let {selection:_0x251f59,updateShapeData:_0x314481}=ci();return _0x251f59?_0x92a68d(_0x2ddc1e,{'shapeData':_0x251f59[_0x4305f7(0x1ce)],'shapeType':_0x251f59[_0x4305f7(0xd2)],'onUpdateShapeData':_0x314481}):null;}function ui(){const _0x389509=_0x1736bc;let _0x40e173=_0x52bd02(_0x376420),_0xdc363d=_0x52bd02(_0x3cb7ae),{selection:_0x87d9ac}=ci();return _0x87d9ac?_0x92a68d(_0x34b568,{'type':_0x10f52f(_0x87d9ac[_0x389509(0x1ce)]),'ariaLabel':_0xdc363d['t'](_0x389509(0x1d8)),'activePresetId':_0x4b5e5c(_0x87d9ac['shapeData']),'onSelect':_0x39e1a3=>_0x40e173[_0x389509(0x335)](Br['id'],{'presetId':_0x39e1a3})}):null;}function di(){const _0x5110c6=_0x1736bc;let {selection:_0x502243,updateShapeData:_0xc62374}=ci();return _0x502243?_0x92a68d(_0x472872,{'fontFamilyPopupDataComponent':_0x5110c6(0x269),'shapeData':_0x502243[_0x5110c6(0x1ce)],'onUpdateShapeData':_0xc62374}):null;}function fi(){const _0x157465=_0x1736bc;var _0x39af9a;let {selection:_0xb58675,updateShapeData:_0x4a570b}=ci(),_0x35b06c=_0x2f7ce1({'hostType':_0x1e715c[_0x157465(0x2f0)],'unitId':(_0xb58675==null?void 0x0:_0xb58675[_0x157465(0x142)])??'','subUnitId':(_0xb58675==null?void 0x0:_0xb58675['subUnitId'])??'','shapeId':(_0xb58675==null?void 0x0:_0xb58675[_0x157465(0xd6)])??'','shapeData':_0xb58675==null?void 0x0:_0xb58675['shapeData'],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x157465(0x20a),'onUpdateBinding':_0x3f4c54=>_0x4a570b({'formulaBinding':_0x3f4c54})}),_0x530025=((_0x39af9a=_0x35b06c[_0x157465(0x2b8)])==null?void 0x0:_0x39af9a[_0x157465(0x107)](_0x2b0feb=>_0x2b0feb[_0x157465(0x14e)])[_0x157465(0x1b1)](_0x174cac=>_0x174cac[_0x157465(0x336)]!==!0x1))??[];return _0xb58675!=null&&_0xb58675[_0x157465(0x1ce)][_0x157465(0x217)]?_0x92a68d(_0x3e436a,{'actions':_0x530025,'panel':_0x35b06c['panel']}):null;}const pi='sheets-shape-ui.ribbon.shape-format.style-control',mi='sheets-shape-ui.ribbon.shape-format.text-control',hi=_0x1736bc(0x208),gi=_0x1736bc(0x33b),_i='sheets-shape-ui.ribbon.shape-format.arrange-backward',vi=_0x1736bc(0x28b),yi='sheets-shape-ui.ribbon.shape-format.arrange-back';function bi(_0x4948f4){const _0x57db29=_0x1736bc;let _0x117e55=_0x4948f4[_0x57db29(0x106)](_0x376420),_0x2f7791=_0x4948f4[_0x57db29(0x106)](_0x4cc7db),_0x126bfb=_0x4948f4[_0x57db29(0x106)](_0xa0be75);return new _0x2adfd4(_0xe362a3=>{const _0x408ee3=_0x57db29;let _0x1c0986=()=>{const _0x54358e=_0x39b9;let _0x3e9c1e=xi(_0x4948f4),_0x225acf=_0x3e9c1e?_0x126bfb['getShapeDataById'](_0x3e9c1e[_0x54358e(0x142)],_0x3e9c1e[_0x54358e(0x320)],_0x3e9c1e[_0x54358e(0xd6)]):null;_0xe362a3['next'](_0x225acf?_0x4b5e5c(_0x225acf)??'':'');},_0x4193a2=_0x2f7791[_0x408ee3(0x29e)][_0x408ee3(0x222)](_0x1c0986),_0x5a5812=_0x117e55[_0x408ee3(0x9d)](_0x26a843=>{_0x26a843['id']===_0x596a36['id']&&_0x1c0986();});return _0x1c0986(),()=>{const _0x125a5a=_0x408ee3;_0x4193a2[_0x125a5a(0x214)](),_0x5a5812[_0x125a5a(0x137)]();};});}function xi(_0x118fbb){const _0x42e29e=_0x1736bc;var _0x49fd9a;let _0x48a245=_0x118fbb[_0x42e29e(0x106)](_0x4cc7db)[_0x42e29e(0x345)]();return _0x48a245[_0x42e29e(0x180)]===0x1&&((_0x49fd9a=_0x48a245[0x0])==null?void 0x0:_0x49fd9a[_0x42e29e(0x1e9)])===_0xc7f81b['DRAWING_SHAPE']?_0x48a245[0x0]:null;}function Si(_0x9514f7,_0x5b29ed=!0x1){const _0x5e0456=_0x1736bc;let _0x4397d1=_0x9514f7[_0x5e0456(0x106)](_0x376420),_0x269e26=_0x9514f7[_0x5e0456(0x106)](_0x4cc7db),_0x3949ac=_0x9514f7[_0x5e0456(0x106)](_0xa0be75);return new _0x2adfd4(_0x45480a=>{const _0x131c46=_0x5e0456;let _0x7fef54=()=>{const _0x3ea22f=_0x39b9;let _0x4d7022=xi(_0x9514f7);if(!_0x4d7022){_0x45480a['next'](!0x0);return;}let _0x3e6704=_0x3949ac[_0x3ea22f(0x237)](_0x4d7022[_0x3ea22f(0x142)],_0x4d7022[_0x3ea22f(0x320)],_0x4d7022['drawingId']);_0x45480a[_0x3ea22f(0x2a9)](!_0x3e6704||_0x5b29ed&&_0x3e6704[_0x3ea22f(0x217)]==null);},_0x19bc7f=_0x269e26[_0x131c46(0x29e)][_0x131c46(0x222)](_0x7fef54),_0x2ab7d3=_0x4397d1['onCommandExecuted'](_0x158371=>{_0x158371['id']===_0x596a36['id']&&_0x7fef54();});return _0x7fef54(),()=>{const _0x1fab08=_0x131c46;_0x19bc7f[_0x1fab08(0x214)](),_0x2ab7d3[_0x1fab08(0x137)]();};});}function Ci(_0x536f59){const _0x40ceaf=_0x1736bc;let _0x1eebc3=_0x536f59[_0x40ceaf(0x106)](_0x4cc7db),_0xb893be=_0x536f59[_0x40ceaf(0x106)](_0xa0be75);return _0x1eebc3[_0x40ceaf(0x29e)][_0x40ceaf(0x33c)](_0x386efb(_0x1eebc3[_0x40ceaf(0x345)]()),_0x5f083b(()=>{const _0xd5127b=_0x40ceaf;let _0x56b8b7=xi(_0x536f59),_0x3fa1b3=_0x56b8b7?_0xb893be[_0xd5127b(0x2c6)](_0x56b8b7[_0xd5127b(0x142)],_0x56b8b7[_0xd5127b(0x320)],_0x56b8b7['drawingId']):void 0x0;return _0x3fa1b3===void 0x0||_0x1e2b3c(_0x3fa1b3);}));}function wi(_0x16a0a5){const _0xe3f488=_0x1736bc;return{'id':Br['id'],'type':_0x3eae92[_0xe3f488(0x230)],'icon':_0xe3f488(0x2a5),'title':_0xe3f488(0x27f),'tooltip':_0xe3f488(0x27f),'selections':[{'label':{'name':ii,'hoverable':!0x1,'selectable':!0x1}}],'value$':bi(_0x16a0a5),'hidden$':Si(_0x16a0a5)};}function Ti(_0x364faa){const _0x58c61c=_0x1736bc;return{'id':Vr['id'],'type':_0x3eae92[_0x58c61c(0x230)],'icon':'ShapeIcon','title':_0x58c61c(0x1dd),'tooltip':_0x58c61c(0x1dd),'slot':!0x0,'selections':[{'label':{'name':_0x4c369d,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Ci(_0x364faa)};}function Ei(_0x470012,_0x5cd14f,_0x4e7990=!0x1){const _0x31dd1b=_0x1736bc;return _0xc5a94c=>({'id':_0x470012,'type':_0x3eae92[_0x31dd1b(0x170)],'label':{'name':_0x5cd14f,'hoverable':!0x1,'selectable':!0x1},'hidden$':Si(_0xc5a94c,_0x4e7990)});}const Di=Ei(pi,ai),Oi=Ei(mi,oi),ki=Ei(hi,si,!0x0);function Ai(_0x2e105d,_0x12a7e1,_0x118ee2,_0x1ef137){const _0x43b98e=_0x1736bc;return _0x425919=>({'id':_0x2e105d,'commandId':_0x37f828['id'],'type':_0x3eae92[_0x43b98e(0x170)],'icon':_0x118ee2,'title':_0x1ef137,'tooltip':_0x1ef137,'hidden$':Si(_0x425919),'params':()=>{const _0x24e564=_0x43b98e;let _0x3b1158=xi(_0x425919);return _0x3b1158?{'unitId':_0x3b1158[_0x24e564(0x142)],'subUnitId':_0x3b1158['subUnitId'],'drawingIds':[_0x3b1158[_0x24e564(0xd6)]],'arrangeType':_0x12a7e1}:void 0x0;}});}const ji=Ai(gi,_0x2bb004[_0x1736bc(0xee)],'MoveUpIcon',_0x1736bc(0xeb)),Mi=Ai(_i,_0x2bb004[_0x1736bc(0x2d6)],'MoveDownIcon',_0x1736bc(0x111)),Ni=Ai(vi,_0x2bb004[_0x1736bc(0x175)],_0x1736bc(0x25f),_0x1736bc(0xb8)),Pi=Ai(yi,_0x2bb004[_0x1736bc(0x20b)],_0x1736bc(0x174),_0x1736bc(0x17d));function Fi(_0x18ace9){const _0x3badd7=_0x1736bc;return{'id':Rr['id'],'type':_0x3eae92[_0x3badd7(0x170)],'icon':_0x3badd7(0x132),'title':'sheets-shape-ui.formatShape','tooltip':_0x3badd7(0xab),'hidden$':Si(_0x18ace9),'params':()=>{const _0x1fa599=_0x3badd7;let _0x5adf17=xi(_0x18ace9);return _0x5adf17?{'unitId':_0x5adf17[_0x1fa599(0x142)],'subUnitId':_0x5adf17['subUnitId'],'drawingId':_0x5adf17[_0x1fa599(0xd6)]}:void 0x0;}};}const Ii={[_0x5a6e31[_0x1736bc(0x34e)]]:{[Pr]:{'order':0x64,'title':'sheets-shape-ui.formatShape','contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Br['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':wi},[Vr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ti}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[pi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Di}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[mi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Oi}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[Qr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ni},[$r]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':ri},[gi]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':ji},[_i]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Mi},[vi]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Ni},[yi]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Pi}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[hi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':ki}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[Rr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Fi},[_0x38c136['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x400f12}}}}},Li={[_0x1bd193['MEDIA']]:{[Ar['id']]:{'order':0x4,'menuItemFactory':Xr}}},Ri={...Li,[_0x1bd193[_0x1736bc(0x150)]]:{[Lr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Zr}},[_0x90e4da['DRAWING']]:{[_0x315581[_0x1736bc(0x150)]]:{[Qr]:{'order':0x4,'menuItemFactory':ni},[$r]:{'order':0x5,'menuItemFactory':ri}}}};var zi=_0x1736bc(0x11a),Bi=_0x1736bc(0x14b);const Vi={'id':_0x1736bc(0x294),'type':_0x1f5d9a[_0x1736bc(0x13a)],'handler'(_0x48d928,_0x4a1797){const _0x3fe387=_0x1736bc;return _0x4a1797?(_0x48d928[_0x3fe387(0x106)](_0x280c27)[_0x3fe387(0x138)](_0x4a1797['mode'],{'hostType':_0x1e715c[_0x3fe387(0x2f0)],'shapeId':_0x4a1797[_0x3fe387(0xd6)],'subUnitId':_0x4a1797[_0x3fe387(0x320)],'unitId':_0x4a1797[_0x3fe387(0x142)]}),!0x0):!0x1;}},Hi=_0x1736bc(0x24e),Ui={};let Wi=class extends _0x3f60c8{constructor(_0x529292,_0x2e16b7,_0x34c8d9,_0x149551,_0x1a3f69){const _0xcdc875=_0x1736bc;super(),this['_context']=_0x529292,this[_0xcdc875(0x1c4)]=_0x2e16b7,this[_0xcdc875(0x234)]=_0x34c8d9,this[_0xcdc875(0x146)]=_0x149551,this[_0xcdc875(0x1fc)]=_0x1a3f69,q(this,_0xcdc875(0x32c),null),q(this,_0xcdc875(0x2b4),null),q(this,'_subUnitId',null),q(this,_0xcdc875(0x265),void 0x0),q(this,_0xcdc875(0x144),[]),q(this,_0xcdc875(0x24b),0x0),q(this,_0xcdc875(0x1a2),0x0),q(this,'_baseWidth',0x0),q(this,_0xcdc875(0x224),0x0),q(this,_0xcdc875(0x12a),!0x1),q(this,_0xcdc875(0xfc),void 0x0),q(this,_0xcdc875(0x266),void 0x0),q(this,'_adjHandlerPointerMove',void 0x0),q(this,_0xcdc875(0xdd),void 0x0),q(this,'_isImagePointerDown',!0x1),this[_0xcdc875(0x167)](),this[_0xcdc875(0x24d)]();}[_0x1736bc(0xe6)](){const _0x9eefdf=_0x1736bc;this[_0x9eefdf(0x261)]();}[_0x1736bc(0x194)](){const _0x173f6e=_0x1736bc;this[_0x173f6e(0x261)](),this[_0x173f6e(0x181)](!0x0);}['_getOrCreateShapeModel'](_0x4dc4b2,_0x346606,_0x329f63,_0x3bd660){const _0x1304c7=_0x1736bc;let _0x28cc15=_0x4dc4b2;if(_0x28cc15!==_0x47ece1[_0x1304c7(0xf7)]&&_0x4dc4b2!==_0x1304c7(0x31a))try{let _0x1e6712=new _0x1e155b(_0x28cc15,_0x1304c7(0x20c)+_0x4dc4b2);return _0x3bd660&&_0x1e6712[_0x1304c7(0x31b)]({'adjustValues':_0x3bd660},!0x0),_0x1e6712[_0x1304c7(0x247)]({'width':_0x346606,'height':_0x329f63}),_0x1e6712;}catch{return;}}['_getImageDrawingInfo'](_0x4b988d,_0x310e31,_0xefc1e2){const _0x48b864=_0x1736bc;let _0x4fbcb3={'unitId':_0x4b988d,'subUnitId':_0x310e31,'drawingId':_0xefc1e2},_0x138077=this['_drawingManagerService'][_0x48b864(0x2cd)](_0x4fbcb3);if(!(!_0x138077||_0x138077[_0x48b864(0x1e9)]!==_0xc7f81b[_0x48b864(0x29f)]))return _0x138077;}['_getImagePrstGeom'](_0xbac7d9,_0x4164bc,_0x14934c){const _0x43f375=_0x1736bc;let _0x402240=this['_renderManagerService'][_0x43f375(0x250)](_0xbac7d9);if(!_0x402240)return;let {scene:_0x34cffa}=_0x402240,_0x2492be=_0x308e11({'unitId':_0xbac7d9,'subUnitId':_0x4164bc,'drawingId':_0x14934c}),_0x11d037=_0x34cffa[_0x43f375(0x1f7)](_0x2492be);if(_0x11d037 instanceof _0x1708cd){let _0x26a8d6=_0x11d037['prstGeom'];if(_0x26a8d6)return{'prstGeom':_0x26a8d6,'adjustValues':_0x11d037[_0x43f375(0x11e)]};}}[_0x1736bc(0x181)](_0x58036b=!0x1){const _0x56b60c=_0x1736bc;if(!this[_0x56b60c(0x2b4)]||!this['_subUnitId']||!this[_0x56b60c(0x32c)])return;let _0x412338=this[_0x56b60c(0x234)][_0x56b60c(0x250)](this['_unitId']);if(!_0x412338||!_0x412338[_0x56b60c(0xb1)](_0x361e49)[_0x56b60c(0xfb)]())return;let {scene:_0x237c12}=_0x412338,_0x14eaf9=this['_getImageDrawingInfo'](this[_0x56b60c(0x2b4)],this['_subUnitId'],this['_activeImageId']);if(!_0x14eaf9)return;let {transform:_0x2c9436}=_0x14eaf9;if(!_0x2c9436)return;let {left:_0x543d0b,top:_0x42b9f0,width:_0x3807cd,height:_0x479f2d,flipX:_0x218f27,flipY:_0x1fe463,angle:_0x2a844e=0x0}=_0x2c9436;if(_0x543d0b===void 0x0||_0x42b9f0===void 0x0)return;let _0x3a1df7=this[_0x56b60c(0x15c)](this[_0x56b60c(0x2b4)],this['_subUnitId'],this['_activeImageId']);if(!_0x3a1df7)return;if(_0x58036b){let _0x5c001f=this[_0x56b60c(0xca)](_0x3a1df7['prstGeom'],_0x3807cd||0x0,_0x479f2d||0x0,_0x3a1df7['adjustValues']);if(!_0x5c001f)return;this[_0x56b60c(0x265)]=_0x5c001f['getDrawingPoints']();}let _0x5ed6=this[_0x56b60c(0x265)];if(!(!_0x5ed6||_0x5ed6[_0x56b60c(0x180)]===0x0))for(let _0x1e2d71=0x0;_0x1e2d71<_0x5ed6[_0x56b60c(0x180)];_0x1e2d71++){let _0x35a7fc=_0x5ed6[_0x1e2d71],_0x2cf85b=_0x35a7fc['x'],_0x1b7b60=_0x35a7fc['y'];if(_0x218f27&&(_0x2cf85b=(_0x3807cd||0x0)-_0x2cf85b),_0x1fe463&&(_0x1b7b60=(_0x479f2d||0x0)-_0x1b7b60),_0x2a844e!==0x0){let _0x51fe1e=(_0x3807cd||0x0)/0x2,_0x4831f6=(_0x479f2d||0x0)/0x2,_0xadb8d3=_0x2a844e*Math['PI']/0xb4,_0x3832b0=Math[_0x56b60c(0x213)](_0xadb8d3),_0x47c51d=Math[_0x56b60c(0x2ab)](_0xadb8d3),_0x12f13f=_0x2cf85b-_0x51fe1e,_0x165b8=_0x1b7b60-_0x4831f6;_0x2cf85b=_0x51fe1e+(_0x12f13f*_0x3832b0-_0x165b8*_0x47c51d),_0x1b7b60=_0x4831f6+(_0x12f13f*_0x47c51d+_0x165b8*_0x3832b0);}let _0x148a80={'x':_0x2cf85b,'y':_0x1b7b60,'adjName':_0x35a7fc[_0x56b60c(0x2d8)]};this[_0x56b60c(0x172)](_0x237c12,_0x148a80,_0x148a80[_0x56b60c(0x2d8)],_0x543d0b,_0x42b9f0,this[_0x56b60c(0x2b4)],this[_0x56b60c(0x16e)]);}}[_0x1736bc(0x172)](_0x1d3671,_0x55eacb,_0x2cc14b,_0x4ebc7d,_0x16c138,_0x371d6d,_0x46e8d7){const _0x4eb896=_0x1736bc;if(!this[_0x4eb896(0x32c)])return;let _0x39ee9d=_0x4eb896(0x2c9)+this[_0x4eb896(0x32c)]+'-'+_0x2cc14b,_0x1b757e=_0x1d3671[_0x4eb896(0x288)](_0x39ee9d);if(_0x1b757e){_0x1b757e[_0x4eb896(0xc2)]({'left':_0x55eacb['x']+_0x4ebc7d-_0x48b11f[_0x4eb896(0x108)],'top':_0x55eacb['y']+_0x16c138-_0x48b11f[_0x4eb896(0x108)]});return;}let _0x3dcbca=new Or(_0x39ee9d,{'left':_0x55eacb['x']+_0x4ebc7d-_0x48b11f[_0x4eb896(0x108)],'top':_0x55eacb['y']+_0x16c138-_0x48b11f[_0x4eb896(0x108)],'adjName':_0x2cc14b,'shapeId':this[_0x4eb896(0x32c)],'unitId':_0x371d6d,'subUnitId':_0x46e8d7,'width':_0x48b11f[_0x4eb896(0x108)]+0x8,'height':_0x48b11f[_0x4eb896(0x108)]+0x8,'zIndex':_0x21c410+0x1,'evented':!0x0});this[_0x4eb896(0x144)][_0x4eb896(0x159)](_0x3dcbca),this[_0x4eb896(0x206)](_0x3dcbca,_0x1d3671,_0x2cc14b),_0x1d3671[_0x4eb896(0x1f3)](_0x3dcbca,_0x21c410+0x1);}[_0x1736bc(0x261)](){const _0x5da1a3=_0x1736bc;this[_0x5da1a3(0x144)][_0x5da1a3(0x180)]!==0x0&&(this[_0x5da1a3(0x144)][_0x5da1a3(0x1df)](_0xecbdc8=>_0xecbdc8[_0x5da1a3(0x137)]()),this[_0x5da1a3(0x144)]=[]);}[_0x1736bc(0xf8)](_0x586e9f,_0x4157aa){const _0x2b1bc1=_0x1736bc;var _0x34bcc8;let _0x4913ee={'x':0x0,'y':0x0},_0x5a6787=this['_renderManagerService'][_0x2b1bc1(0x250)](_0x586e9f);if(!_0x5a6787||!_0x5a6787[_0x2b1bc1(0xb1)](_0x361e49)['getSkeleton'](_0x4157aa))return _0x4913ee;let _0x98ae1=_0x5a6787[_0x2b1bc1(0xb1)](_0x332edb),_0x4ea4cf=_0x98ae1==null?void 0x0:_0x98ae1[_0x2b1bc1(0x2e1)]();if(!_0x4ea4cf)return _0x4913ee;let _0x41df9e=(_0x34bcc8=this['_univerInstanceService'][_0x2b1bc1(0x21e)](_0x586e9f))==null?void 0x0:_0x34bcc8[_0x2b1bc1(0x14a)](_0x4157aa);if(!_0x41df9e)return _0x4913ee;let _0x52f20e=_0x1144c3(_0x4ea4cf[_0x2b1bc1(0x1f5)],_0x4ea4cf[_0x2b1bc1(0x28d)],_0x5a6787[_0x2b1bc1(0x1b2)],_0x41df9e);return _0x52f20e?{'x':_0x52f20e[_0x2b1bc1(0x171)],'y':_0x52f20e['viewportScrollY']}:_0x4913ee;}['_getZoomRatio'](_0x550914,_0x294ec6){const _0x485bb6=_0x1736bc;var _0x44b7fb;let _0x1dcd21=(_0x44b7fb=this[_0x485bb6(0x146)][_0x485bb6(0x21e)](_0x550914))==null?void 0x0:_0x44b7fb[_0x485bb6(0x14a)](_0x294ec6);return(_0x1dcd21==null?void 0x0:_0x1dcd21['getZoomRatio']())??0x1;}[_0x1736bc(0x206)](_0x2ef94d,_0x2f8617,_0x4a2ccc){const _0x29bd9e=_0x1736bc;this['disposeWithMe'](_0x219635(_0x2ef94d[_0x29bd9e(0x280)][_0x29bd9e(0xdf)]((_0x3647b3,_0x5477ce)=>{const _0x37cbaa=_0x29bd9e;var _0x50cd98,_0x12c2f8,_0x50bbd5;let {unitId:_0x2303a5,subUnitId:_0x21b1c6,drawingId:_0x1e0112}=_0x2ef94d['getDrawingSearch'](),_0x4b9281=this[_0x37cbaa(0x22a)](_0x2303a5,_0x21b1c6,_0x1e0112);if(!(_0x4b9281!=null&&_0x4b9281[_0x37cbaa(0x1f0)]))return;let {left:_0x441a9d,top:_0x19889b,width:_0x10b874,height:_0x1f2546}=_0x4b9281[_0x37cbaa(0x1f0)];this['_baseLeft']=_0x441a9d||0x0,this['_baseTop']=_0x19889b||0x0,this[_0x37cbaa(0xbe)]=_0x10b874||0x0,this[_0x37cbaa(0x224)]=_0x1f2546||0x0;let _0xb66562=!!((_0x50cd98=_0x4b9281[_0x37cbaa(0x1f0)])!=null&&_0x50cd98['flipX']),_0x5735fb=!!((_0x12c2f8=_0x4b9281[_0x37cbaa(0x1f0)])!=null&&_0x12c2f8[_0x37cbaa(0x1b3)]),_0x3f0f69=((_0x50bbd5=_0x4b9281['transform'])==null?void 0x0:_0x50bbd5[_0x37cbaa(0x13b)])||0x0,_0x91395c=this[_0x37cbaa(0x15c)](_0x2303a5,_0x21b1c6,_0x1e0112);if(!_0x91395c)return;let _0x419d93=this['_getOrCreateShapeModel'](_0x91395c[_0x37cbaa(0x11d)],this['_baseWidth'],this[_0x37cbaa(0x224)],_0x91395c['adjustValues']);if(!_0x419d93||(this['_activeShapeModel']=_0x419d93,this[_0x37cbaa(0xfc)]=_0x419d93[_0x37cbaa(0x299)](_0x4a2ccc),!this[_0x37cbaa(0xfc)]))return;this[_0x37cbaa(0x12a)]=!0x0,_0x2f8617[_0x37cbaa(0x30d)]();let _0x4dca50=_0x91395c['prstGeom'];this[_0x37cbaa(0x26b)]=_0x2f8617['onPointerMove$'][_0x37cbaa(0xdf)]((_0x233de0,_0x2460ec)=>{const _0x35052e=_0x37cbaa;if(!this[_0x35052e(0x12a)])return;let {offsetX:_0x496a42,offsetY:_0x81663f}=_0x233de0,_0x15f994=this['_activeAdjustInfo'];if(!this[_0x35052e(0x266)]||!_0x15f994)return;_0x2f8617[_0x35052e(0x30d)](),_0x2f8617[_0x35052e(0x1fe)](_0x5c9ad6[_0x35052e(0x1ab)]);let _0xa94a37={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this[_0x35052e(0x224)]},_0x35cf82=this[_0x35052e(0xf8)](_0x2303a5,_0x21b1c6),_0x4701ee=this[_0x35052e(0x158)](_0x2303a5,_0x21b1c6),_0x34f4f0=_0x496a42/_0x4701ee+_0x35cf82['x']-this[_0x35052e(0x24b)],_0x1cb9a9=_0x81663f/_0x4701ee+_0x35cf82['y']-this[_0x35052e(0x1a2)];if(_0x3f0f69!==0x0){let _0x42f42d=this[_0x35052e(0xbe)]/0x2,_0x20cce6=this[_0x35052e(0x224)]/0x2,_0x3f3d67=_0x3f0f69*Math['PI']/0xb4,_0x8b6132=Math[_0x35052e(0x213)](_0x3f3d67),_0x3d5421=Math['sin'](_0x3f3d67),_0x4a1dc2=_0x34f4f0-_0x42f42d,_0x19ec0b=_0x1cb9a9-_0x20cce6;_0x34f4f0=_0x42f42d+(_0x4a1dc2*_0x8b6132+_0x19ec0b*_0x3d5421),_0x1cb9a9=_0x20cce6+(-_0x4a1dc2*_0x3d5421+_0x19ec0b*_0x8b6132);}_0xb66562&&(_0x34f4f0=this[_0x35052e(0xbe)]-_0x34f4f0),_0x5735fb&&(_0x1cb9a9=this[_0x35052e(0x224)]-_0x1cb9a9);let _0x2f0b6b=this[_0x35052e(0x266)]['calcAdjValues'](_0xa94a37,{'x':_0x34f4f0,'y':_0x1cb9a9},_0x15f994,_0xb66562,_0x5735fb);if(Object[_0x35052e(0x23b)](_0x2f0b6b)['length']!==0x0){for(let [_0x3d6b98,_0x3acb58]of Object[_0x35052e(0xa8)](_0x2f0b6b))this['_activeShapeModel']['setAdjustValueByName'](_0x3d6b98,_0x3acb58);this[_0x35052e(0x266)][_0x35052e(0x247)]({'width':this[_0x35052e(0xbe)],'height':this['_baseHeight']}),this[_0x35052e(0x114)](_0x2303a5,_0x21b1c6,_0x1e0112,_0x2f0b6b),this[_0x35052e(0x265)]=this[_0x35052e(0x266)][_0x35052e(0x27b)](),this[_0x35052e(0x181)](),_0x2460ec[_0x35052e(0x1ed)]();}}),this[_0x37cbaa(0xdd)]=_0x2f8617[_0x37cbaa(0xe9)]['subscribeEvent']((_0x2e73de,_0x4a818f)=>{const _0x3b19a0=_0x37cbaa;if(this['_adjHandlerPointerMove'][_0x3b19a0(0x214)](),this[_0x3b19a0(0xdd)][_0x3b19a0(0x214)](),_0x2f8617[_0x3b19a0(0x119)](),this['_activeShapeModel']){let _0x472c3c=this[_0x3b19a0(0x266)][_0x3b19a0(0x173)](),_0x3fe278={};for(let _0x279eb5 of _0x472c3c){let _0x4ecb2d=this[_0x3b19a0(0x266)][_0x3b19a0(0x195)](_0x279eb5);_0x4ecb2d!==void 0x0&&(_0x3fe278[_0x279eb5]=_0x4ecb2d);}this[_0x3b19a0(0x1fc)]['clipByShape'](_0x2303a5,_0x21b1c6,_0x1e0112,_0x4dca50,_0x3fe278);}this[_0x3b19a0(0xfc)]=void 0x0,this[_0x3b19a0(0x266)]=void 0x0,this[_0x3b19a0(0x12a)]=!0x1,_0x4a818f[_0x3b19a0(0x1ed)](),_0x2f8617[_0x3b19a0(0xb6)]();}),_0x5477ce[_0x37cbaa(0x1ed)]();})));}[_0x1736bc(0x114)](_0x102516,_0xcd912f,_0x2da3b0,_0x3e9c9b){const _0x3d5876=_0x1736bc;let _0x22fc9d=this['_renderManagerService']['getRenderUnitById'](_0x102516);if(!_0x22fc9d)return;let {scene:_0x3a600e}=_0x22fc9d,_0xe22865=_0x308e11({'unitId':_0x102516,'subUnitId':_0xcd912f,'drawingId':_0x2da3b0}),_0x482382=_0x3a600e[_0x3d5876(0x1f7)](_0xe22865);if(_0x482382 instanceof _0x1708cd){let _0x233c6c=_0x482382[_0x3d5876(0x11e)]??{};_0x482382['setPrstGeomAdjValues']({..._0x233c6c,..._0x3e9c9b}),_0x482382[_0x3d5876(0xe7)](!0x0);}}['_registerMoveHandler'](){const _0x412c66=_0x1736bc;let _0x5d1484=this[_0x412c66(0x146)][_0x412c66(0x2b3)](_0x1e715c['UNIVER_SHEET']);this[_0x412c66(0x2d9)](_0x5d1484['pipe'](_0x57ed4d(_0x46d9c=>_0x46d9c?_0x46d9c[_0x412c66(0x116)][_0x412c66(0x33c)](_0x57ed4d(_0xe7dad9=>{const _0x9a508a=_0x412c66;if(!_0xe7dad9)return _0x220d4d;let _0x4c41a3=_0x46d9c[_0x9a508a(0x2a6)](),_0x5ad71d=this[_0x9a508a(0x234)][_0x9a508a(0x250)](_0x4c41a3),_0x3c674e=_0x5ad71d==null?void 0x0:_0x5ad71d['scene'];return _0x3c674e?_0x129e12(_0x3c674e):_0x220d4d;})):_0x220d4d))[_0x412c66(0x222)](_0x1d673a=>{const _0x4387c1=_0x412c66;let _0x367a3d=_0x1d673a[_0x4387c1(0x1de)]();this[_0x4387c1(0x2d9)](_0x1d673a[_0x4387c1(0x285)]['subscribeEvent'](()=>{const _0x517f4e=_0x4387c1;this[_0x517f4e(0xf5)]&&this[_0x517f4e(0x261)]();})),this[_0x4387c1(0x2d9)](_0x367a3d[_0x4387c1(0x1ae)][_0x4387c1(0x222)](_0x4a4a3f=>{const _0x205fb9=_0x4387c1;let {objects:_0x4f6890}=_0x4a4a3f;if(this[_0x205fb9(0x181)](),_0x4f6890!==null&&_0x4f6890[_0x205fb9(0xe5)]===0x1){let _0x1ade51=_0x4f6890[_0x205fb9(0x2b9)]()[_0x205fb9(0x2a9)]()[_0x205fb9(0x2f4)];_0x1ade51 instanceof _0x1708cd&&_0x1ade51['prstGeom']&&(this[_0x205fb9(0xf5)]=!0x0);}})),this[_0x4387c1(0x2d9)](_0x367a3d[_0x4387c1(0x2df)][_0x4387c1(0x222)](()=>{const _0x50e4db=_0x4387c1;this[_0x50e4db(0xf5)]&&this[_0x50e4db(0x261)]();})),this[_0x4387c1(0x2d9)](_0x1d673a['onPointerUp$'][_0x4387c1(0xdf)](()=>{const _0x2c35dd=_0x4387c1;this['_isImagePointerDown']&&(this['_isImagePointerDown']=!0x1,this[_0x2c35dd(0x181)]());})),this[_0x4387c1(0x2d9)](_0x367a3d[_0x4387c1(0x125)][_0x4387c1(0x222)](()=>{const _0x477193=_0x4387c1;if(this[_0x477193(0x2b4)]&&this[_0x477193(0x16e)]&&this[_0x477193(0x32c)]){let _0x3f664b=this[_0x477193(0x15c)](this[_0x477193(0x2b4)],this[_0x477193(0x16e)],this[_0x477193(0x32c)]);if(_0x3f664b){var _0x3b25fe,_0x45ffea;let _0x5ab72e=this[_0x477193(0x22a)](this[_0x477193(0x2b4)],this['_subUnitId'],this['_activeImageId']),_0x122cf6=(_0x5ab72e==null||(_0x3b25fe=_0x5ab72e[_0x477193(0x1f0)])==null?void 0x0:_0x3b25fe['width'])||0x0,_0x2883b1=(_0x5ab72e==null||(_0x45ffea=_0x5ab72e['transform'])==null?void 0x0:_0x45ffea['height'])||0x0,_0x3a79cf=this[_0x477193(0xca)](_0x3f664b[_0x477193(0x11d)],_0x122cf6,_0x2883b1,_0x3f664b[_0x477193(0x2ce)]);_0x3a79cf&&(this[_0x477193(0x265)]=_0x3a79cf['getDrawingPoints'](),this[_0x477193(0x261)](),this[_0x477193(0x181)](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x5aa11e=_0x1736bc;this[_0x5aa11e(0x2d9)](this['_drawingManagerService'][_0x5aa11e(0x29e)][_0x5aa11e(0x222)](_0x31c38e=>{const _0x2bb527=_0x5aa11e;if(_0x31c38e['length']===0x1){let _0x374975=_0x31c38e[0x0];if(_0x374975[_0x2bb527(0x1e9)]===_0xc7f81b[_0x2bb527(0x29f)]){let {unitId:_0x5926ea,subUnitId:_0xc03cdf,drawingId:_0x322edf}=_0x374975,_0x703be0=this[_0x2bb527(0x15c)](_0x5926ea,_0xc03cdf,_0x322edf);if(_0x703be0){var _0x4a01f0,_0x337cb4;this[_0x2bb527(0x32c)]=_0x322edf,this['_unitId']=_0x5926ea,this[_0x2bb527(0x16e)]=_0xc03cdf;let _0x2f0c3e=this[_0x2bb527(0x22a)](_0x5926ea,_0xc03cdf,_0x322edf),_0x29eb2f=(_0x2f0c3e==null||(_0x4a01f0=_0x2f0c3e[_0x2bb527(0x1f0)])==null?void 0x0:_0x4a01f0[_0x2bb527(0x121)])||0x0,_0x93dd0=(_0x2f0c3e==null||(_0x337cb4=_0x2f0c3e[_0x2bb527(0x1f0)])==null?void 0x0:_0x337cb4['height'])||0x0,_0x2a9e6e=this['_getOrCreateShapeModel'](_0x703be0[_0x2bb527(0x11d)],_0x29eb2f,_0x93dd0,_0x703be0[_0x2bb527(0x2ce)]);_0x2a9e6e&&(this[_0x2bb527(0x265)]=_0x2a9e6e[_0x2bb527(0x27b)]()),this[_0x2bb527(0x261)](),this[_0x2bb527(0x181)](!0x0);}else this[_0x2bb527(0x1a5)]();}else this['_resetState']();}else this[_0x2bb527(0x1a5)]();})),this[_0x5aa11e(0x2d9)](this[_0x5aa11e(0x1c4)][_0x5aa11e(0xa4)][_0x5aa11e(0x222)](_0x56d529=>{const _0x632dbc=_0x5aa11e;if(_0x56d529[_0x632dbc(0x180)]===0x1){let _0x4dbe52=_0x56d529[0x0],_0x5dcaa6=this[_0x632dbc(0x1c4)][_0x632dbc(0x2cd)](_0x4dbe52);(_0x5dcaa6==null?void 0x0:_0x5dcaa6[_0x632dbc(0x1e9)])===_0xc7f81b['DRAWING_IMAGE']&&this[_0x632dbc(0x32c)]===_0x4dbe52[_0x632dbc(0xd6)]&&(this[_0x632dbc(0x261)](),this['_createControls'](!0x0));}})),this[_0x5aa11e(0x2d9)](this[_0x5aa11e(0x1c4)]['remove$'][_0x5aa11e(0x222)](_0x9728e2=>{const _0x2bd23b=_0x5aa11e;for(let _0x159a2b of _0x9728e2)this[_0x2bd23b(0x32c)]===_0x159a2b[_0x2bd23b(0xd6)]&&this[_0x2bd23b(0x1a5)]();}));}[_0x1736bc(0x1a5)](){const _0x15cac3=_0x1736bc;this[_0x15cac3(0x32c)]=null,this['_unitId']=null,this['_subUnitId']=null,this[_0x15cac3(0x265)]=void 0x0,this[_0x15cac3(0x261)]();}};Wi=Y([J(0x1,_0x4cc7db),J(0x2,_0x5b826f(_0x41745c)),J(0x3,_0xfd8e0),J(0x4,_0x5b826f(Q))],Wi);let Gi=class extends _0x3f60c8{constructor(_0x291d6c,_0x533db2){const _0x2763db=_0x1736bc;super(),this[_0x2763db(0x2d9)](_0x533db2[_0x2763db(0x21d)]({'BottomIcon':_0x137ffd,'FlipHorizontalIcon':_0xec91bf,'FlipVerticalIcon':_0x322d75,'MoveDownIcon':_0x16dbe2,'MoveUpIcon':_0x46a533,'ObjectLayersIcon':_0x177941,'ShapeFormatSettingIcon':_0x5b0f5d,'TopmostIcon':_0x147def})),this['disposeWithMe'](_0x291d6c[_0x2763db(0x21d)](Hr,Yr)),this[_0x2763db(0x2d9)](_0x291d6c[_0x2763db(0x21d)](Ur,Kr)),_0x291d6c[_0x2763db(0x106)](_0x293bed)||this['disposeWithMe'](_0x291d6c[_0x2763db(0x21d)](_0x293bed,qr));}};Gi=Y([J(0x0,_0x5b826f(_0x4dd843)),J(0x1,_0x5b826f(_0x2db3fe))],Gi);let $=class extends _0x3f60c8{constructor(_0x32d40e){const _0x12719c=_0x1736bc;super(),this['_permissionService']=_0x32d40e,q(this,'_editingParams$',new _0x4c863b(null)),q(this,_0x12719c(0xf9),this['_editingParams$'][_0x12719c(0x2a4)]()),q(this,'_onSavingEditorData$',new _0x4c863b(!0x1)),q(this,_0x12719c(0x31e),this[_0x12719c(0x177)][_0x12719c(0x2a4)]()),q(this,'_completionFrame',void 0x0),this['disposeWithMe'](this['_permissionService'][_0x12719c(0xc8)][_0x12719c(0x222)](()=>{const _0x3f3b37=_0x12719c;let _0x53df1b=this[_0x3f3b37(0x309)]();_0x53df1b!=null&&_0x53df1b[_0x3f3b37(0x336)]&&!this[_0x3f3b37(0x15f)](_0x53df1b)&&this[_0x3f3b37(0x27d)](null);}));}[_0x1736bc(0x137)](){const _0x1d9612=_0x1736bc;this[_0x1d9612(0x1a1)](),this['_editingParams$']['next'](null),this[_0x1d9612(0x10e)][_0x1d9612(0x1ca)](),this[_0x1d9612(0x177)][_0x1d9612(0x2a9)](!0x1),this[_0x1d9612(0x177)]['complete'](),super[_0x1d9612(0x137)]();}[_0x1736bc(0x27d)](_0x381388){const _0x5d6234=_0x1736bc;_0x381388!=null&&_0x381388[_0x5d6234(0x336)]&&!this[_0x5d6234(0x15f)](_0x381388)||(this[_0x5d6234(0x1a1)](),this[_0x5d6234(0x10e)][_0x5d6234(0x2a9)](_0x381388),(_0x381388==null||_0x381388['visible']&&this[_0x5d6234(0x177)][_0x5d6234(0x218)]())&&this['_onSavingEditorData$'][_0x5d6234(0x2a9)](!0x1));}['setOnSavingEditorData'](_0x59600c){const _0x407783=_0x1736bc;this[_0x407783(0x177)][_0x407783(0x2a9)](_0x59600c);}[_0x1736bc(0x309)](){const _0x5d8788=_0x1736bc;return this[_0x5d8788(0x10e)][_0x5d8788(0x218)]();}[_0x1736bc(0x15f)](_0x12ee8d){const _0x18e7c3=_0x1736bc;let _0x2a9ad4=this[_0x18e7c3(0x30f)][_0x18e7c3(0x302)](new _0x304e82(_0x12ee8d[_0x18e7c3(0x142)])['id']),_0x3d0a69=this['_permissionService']['getPermissionPoint'](new _0x8f9fb(_0x12ee8d['unitId'],_0x12ee8d[_0x18e7c3(0x320)])['id']);return((_0x2a9ad4==null?void 0x0:_0x2a9ad4[_0x18e7c3(0x2f4)])??!0x0)&&((_0x3d0a69==null?void 0x0:_0x3d0a69[_0x18e7c3(0x2f4)])??!0x0);}[_0x1736bc(0x22c)](_0x35d8e9){const _0x254563=_0x1736bc;let _0x10e62f=this[_0x254563(0x309)]();!_0x10e62f||this[_0x254563(0x291)]!==void 0x0||(this[_0x254563(0xd1)](!0x0),this[_0x254563(0x291)]=requestAnimationFrame(()=>{const _0x566ef9=_0x254563;this['_completionFrame']=void 0x0,this['getEditing']()===_0x10e62f&&this[_0x566ef9(0x27d)](null);}));}[_0x1736bc(0x1a1)](){const _0x2fb9f6=_0x1736bc;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this[_0x2fb9f6(0x291)]),this[_0x2fb9f6(0x291)]=void 0x0);}[_0x1736bc(0x256)](){const _0x4f8479=_0x1736bc;this[_0x4f8479(0x309)]()&&this['setEditing'](null);}};$=Y([J(0x0,_0x5c9149)],$);let Ki=class extends _0x3f60c8{constructor(_0xaaabd2,_0x3bcd56,_0x105235,_0x5975b8,_0x348742,_0x2f9384){const _0x211c4f=_0x1736bc;super(),this[_0x211c4f(0x1ec)]=_0xaaabd2,this[_0x211c4f(0x27e)]=_0x3bcd56,this[_0x211c4f(0xc5)]=_0x105235,this[_0x211c4f(0x1c4)]=_0x5975b8,this[_0x211c4f(0x258)]=_0x348742,this['_sheetsShapeService']=_0x2f9384,q(this,_0x211c4f(0xc4),null),this['_initEvents'](),this[_0x211c4f(0x1ba)](),this['_initEditingParams']();}[_0x1736bc(0xf4)](){const _0x3a39f3=_0x1736bc;let {scene:_0x4d6e58}=this['_context'];this[_0x3a39f3(0x2d9)](_0x4d6e58[_0x3a39f3(0xe8)]['subscribeEvent'](_0x4c2c55=>{const _0x467a50=_0x3a39f3;let {offsetX:_0x5298c1,offsetY:_0x484187}=_0x4c2c55,_0x4ce79c=_0x4d6e58[_0x467a50(0xb9)](_0x18a488[_0x467a50(0x328)]([_0x5298c1,_0x484187]));if(_0x4ce79c instanceof Dr){let _0x2f9bee=this[_0x467a50(0x337)][_0x467a50(0x1a7)](_0x4ce79c['unitId'],_0x4ce79c[_0x467a50(0x320)],_0x4ce79c[_0x467a50(0xea)]);if(_0x1e2b3c(this['_sheetsShapeService'][_0x467a50(0x19a)](_0x4ce79c[_0x467a50(0x142)],_0x4ce79c['subUnitId'],_0x4ce79c[_0x467a50(0xea)]))||_0x2f9bee!=null&&_0x2f9bee['getShapeData']()['formulaBinding'])return;this[_0x467a50(0xc5)][_0x467a50(0x27d)]({'visible':!0x0,'unitId':_0x4ce79c[_0x467a50(0x142)],'subUnitId':_0x4ce79c[_0x467a50(0x320)],'shapeId':_0x4ce79c['shapeId'],'shapeKey':_0x4ce79c[_0x467a50(0x131)]});}}));}[_0x1736bc(0x1ba)](){const _0x1cc097=_0x1736bc;this[_0x1cc097(0x2d9)](this[_0x1cc097(0x1c4)][_0x1cc097(0x29e)]['subscribe'](_0x1b8cb9=>{const _0x184a4e=_0x1cc097;if(_0x1b8cb9[_0x184a4e(0x180)]===0x1){let _0x2c8a92=_0x1b8cb9[0x0],_0x57d95e=this[_0x184a4e(0x1c4)]['getDrawingByParam'](_0x2c8a92);if((_0x57d95e==null?void 0x0:_0x57d95e['drawingType'])===_0xc7f81b[_0x184a4e(0x33e)]){var _0x3c2055;let _0x205c2a=this['_shapeTextEditingService'][_0x184a4e(0x309)]();if((_0x205c2a==null?void 0x0:_0x205c2a['shapeId'])===_0x2c8a92[_0x184a4e(0xd6)]&&_0x205c2a[_0x184a4e(0x336)])return;let _0x50aca2=_0x1e2b3c(this[_0x184a4e(0x337)][_0x184a4e(0x19a)](_0x2c8a92[_0x184a4e(0x142)],_0x2c8a92['subUnitId'],_0x2c8a92[_0x184a4e(0xd6)])),_0x387566=!!((_0x3c2055=this[_0x184a4e(0x337)][_0x184a4e(0x1a7)](_0x2c8a92[_0x184a4e(0x142)],_0x2c8a92[_0x184a4e(0x320)],_0x2c8a92[_0x184a4e(0xd6)]))!=null&&_0x3c2055[_0x184a4e(0x1e3)]()[_0x184a4e(0x217)]);(_0x50aca2||_0x387566)&&this[_0x184a4e(0xc5)][_0x184a4e(0x27d)](null);}else this['_shapeTextEditingService'][_0x184a4e(0x22c)]();}else this[_0x184a4e(0xc5)]['completeEditing']();})),this[_0x1cc097(0x2d9)](this['_drawingManagerService']['remove$'][_0x1cc097(0x222)](_0x9255a2=>{const _0x3cf37a=_0x1cc097;let _0x1396b9=this[_0x3cf37a(0xc5)][_0x3cf37a(0x309)]();_0x1396b9&&_0x9255a2[_0x3cf37a(0x14c)](_0x3860ed=>_0x3860ed['drawingId']===_0x1396b9[_0x3cf37a(0xea)])&&this[_0x3cf37a(0xc5)][_0x3cf37a(0x27d)](null);}));}['_initEditingParams'](){const _0x28efaa=_0x1736bc;this[_0x28efaa(0x2d9)](this[_0x28efaa(0xc5)][_0x28efaa(0xf9)][_0x28efaa(0x222)](_0x53b673=>{const _0x357943=_0x28efaa;let {scene:_0x52a176}=this['_context'];if(this[_0x357943(0xc4)]){let _0x3c8d27=_0x52a176[_0x357943(0x288)](this[_0x357943(0xc4)]);_0x3c8d27&&_0x3c8d27['setEditing'](!0x1);}if(_0x53b673){let _0x1968e8=!!_0x53b673[_0x357943(0x336)],_0x3aaa53=_0x52a176[_0x357943(0x288)](_0x53b673[_0x357943(0x260)]);_0x3aaa53&&(_0x3aaa53[_0x357943(0x27d)](_0x1968e8),this['_lastEditingShapeKey']=_0x53b673[_0x357943(0x260)]),this[_0x357943(0x258)][_0x357943(0x34b)](_0x34ceb0,_0x1968e8);}else this[_0x357943(0xc4)]=null,this[_0x357943(0x258)][_0x357943(0x34b)](_0x34ceb0,!0x1);}));}};Ki=Y([J(0x1,_0x5b826f(_0x3d8c1a)),J(0x2,_0x5b826f($)),J(0x3,_0x4cc7db),J(0x4,_0x27f6db),J(0x5,_0x5b826f(_0xa0be75))],Ki);var qi=class extends Ki{['_initEvents'](){const _0x23cc41=_0x1736bc;let {scene:_0x324f4e}=this[_0x23cc41(0x1ec)],_0x53ec8c=this[_0x23cc41(0x27e)][_0x23cc41(0x106)](_0x280c27);this[_0x23cc41(0x2d9)](_0x324f4e[_0x23cc41(0xe8)][_0x23cc41(0xdf)](_0x5e8c35=>{const _0x14b306=_0x23cc41;let {offsetX:_0x54b4a7,offsetY:_0x3b55b4}=_0x5e8c35,_0x49bbde=_0x324f4e['pick'](_0x18a488[_0x14b306(0x328)]([_0x54b4a7,_0x3b55b4]));if(!(_0x49bbde instanceof Dr))return;let _0xf92ffe=this[_0x14b306(0x337)][_0x14b306(0x1a7)](_0x49bbde['unitId'],_0x49bbde[_0x14b306(0x320)],_0x49bbde['shapeId']);_0x1e2b3c(this[_0x14b306(0x337)][_0x14b306(0x19a)](_0x49bbde[_0x14b306(0x142)],_0x49bbde[_0x14b306(0x320)],_0x49bbde[_0x14b306(0xea)]))||_0xf92ffe!=null&&_0xf92ffe[_0x14b306(0x1e3)]()[_0x14b306(0x217)]||_0x53ec8c[_0x14b306(0x138)]('text',{'hostType':_0x1e715c[_0x14b306(0x2f0)],'unitId':_0x49bbde[_0x14b306(0x142)],'subUnitId':_0x49bbde['subUnitId'],'shapeId':_0x49bbde['shapeId']});}));}};const Ji={...Li},Yi={'type':_0x1f5d9a[_0x1736bc(0x13a)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}};let Xi=class extends _0x3f60c8{constructor(_0x42e052,_0x1300a1,_0x42752f,_0x4c8100,_0xfc28dc,_0x1e4387,_0x20fcee,_0x3368a0,_0x10ebfc,_0xe38db0,_0x35e575){const _0x14ec70=_0x1736bc;super(),this['_univerInstanceService']=_0x42e052,this['_sidebarService']=_0x1300a1,this[_0x14ec70(0x33d)]=_0x42752f,this[_0x14ec70(0x337)]=_0x4c8100,this[_0x14ec70(0x13e)]=_0xfc28dc,this[_0x14ec70(0x287)]=_0x1e4387,this[_0x14ec70(0x1c4)]=_0x20fcee,this[_0x14ec70(0x2ca)]=_0x3368a0,this[_0x14ec70(0x258)]=_0x10ebfc,this[_0x14ec70(0x234)]=_0xe38db0,this['_shapeTextEditingService']=_0x35e575,q(this,_0x14ec70(0x25d),null),q(this,_0x14ec70(0x275),null),q(this,_0x14ec70(0x28e),!0x1),q(this,_0x14ec70(0x2f9),0x0),q(this,'_shapePopupMenuDisposable',null),q(this,_0x14ec70(0xda),[]),this[_0x14ec70(0xde)](),this[_0x14ec70(0x2d9)](this[_0x14ec70(0x146)]['getCurrentTypeOfUnit$'](_0x1e715c[_0x14ec70(0x2f0)])[_0x14ec70(0x222)](_0x43b8e4=>{const _0x302efe=_0x14ec70;if(!_0x43b8e4){var _0x4d92e8;(_0x4d92e8=this['_sidebarDisposable'])==null||_0x4d92e8[_0x302efe(0x137)]();}})),this[_0x14ec70(0x1bf)](),this[_0x14ec70(0x2c5)](),this[_0x14ec70(0x2d9)](this[_0x14ec70(0xc5)]['editingParams$']['subscribe'](_0x42d8ab=>{const _0x2de4ea=_0x14ec70;_0x42d8ab&&this[_0x2de4ea(0x319)]();}));}[_0x1736bc(0xde)](){const _0x48cf82=_0x1736bc;this['_menuManagerService'][_0x48cf82(0x184)](Ri);}[_0x1736bc(0x2c5)](){const _0x3dadd0=_0x1736bc;this[_0x3dadd0(0x189)]||=this[_0x3dadd0(0x2d9)](_0x21e0b2(this[_0x3dadd0(0x234)],_0x1e715c[_0x3dadd0(0x2f0)],_0x410237=>this[_0x3dadd0(0x2da)](_0x410237)));}[_0x1736bc(0x2fc)](_0x413bc1,_0x225be2,_0x458c9b){const _0x598f2e=_0x1736bc;let _0x11cf89=this[_0x598f2e(0x337)][_0x598f2e(0x2c6)](_0x413bc1,_0x225be2,_0x458c9b),_0x2bcc08=this[_0x598f2e(0x337)][_0x598f2e(0x237)](_0x413bc1,_0x225be2,_0x458c9b);return _0x11cf89!==void 0x0&&_0x2bcc08!==void 0x0?{'shapeData':_0x2bcc08,'shapeId':_0x458c9b,'shapeType':_0x11cf89,'unitId':_0x413bc1,'subUnitId':_0x225be2,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}[_0x1736bc(0x319)](){const _0x3fce18=_0x1736bc;this[_0x3fce18(0xda)][_0x3fce18(0x1df)](_0x4ef3da=>_0x4ef3da[_0x3fce18(0x137)]()),this['_disposePopups'][_0x3fce18(0x180)]=0x0;}[_0x1736bc(0x2da)](_0x2f1ea2){const _0x241a9a=_0x1736bc;let _0x33008d=new _0xd7a0a();return _0x33008d[_0x241a9a(0x29d)](_0x2f1ea2[_0x241a9a(0x270)][_0x241a9a(0x222)](()=>{const _0x2132fa=_0x241a9a;let _0x22788f=_0x2f1ea2['getSelectedObjectMap']();if(this['_clearPopups'](),this[_0x2132fa(0x28e)]||_0x22788f[_0x2132fa(0xe5)]>0x1)return;let _0x1f881b=_0x22788f[_0x2132fa(0x2b9)]()['next']()[_0x2132fa(0x2f4)];if(!_0x1f881b)return;let _0x41131b=this['_drawingManagerService'][_0x2132fa(0x1f8)](_0x1f881b['oKey']);if(!_0x41131b||_0x41131b[_0x2132fa(0x1e9)]!==_0xc7f81b[_0x2132fa(0x33e)])return;let {unitId:_0x1b30bf,subUnitId:_0x4e04a6,drawingId:_0x128d88,drawingType:_0x4c3927}=_0x41131b,_0x196b17=this['_getShapeInfo'](_0x1b30bf,_0x4e04a6,_0x128d88);if(!_0x196b17)return;this['_contextService'][_0x2132fa(0x34b)](_0x23f4fa,!0x0);let _0x280967=this[_0x2132fa(0x234)]['getRenderUnitById'](_0x1b30bf),_0x2621fe=((_0x280967==null?void 0x0:_0x280967[_0x2132fa(0x1c2)])===!0x1?_0x280967[_0x2132fa(0xb1)](_0x7fc406):this[_0x2132fa(0x2ca)])[_0x2132fa(0x333)](_0x1f881b,{'componentKey':Nr,'direction':_0x2132fa(0x34c),'offset':[0x0,_0x519163],'extraProps':{'unitId':_0x1b30bf,'subUnitId':_0x4e04a6,'drawingId':_0x128d88,'drawingType':_0x4c3927,'shapeType':_0x196b17[_0x2132fa(0xd2)],'shapeData':_0x196b17['shapeData']}});this[_0x2132fa(0xda)][_0x2132fa(0x159)](this[_0x2132fa(0x2d9)](_0x2621fe)),this[_0x2132fa(0x1c4)][_0x2132fa(0x345)]()['find'](_0x23b024=>_0x23b024['unitId']===_0x1b30bf&&_0x23b024[_0x2132fa(0x320)]===_0x4e04a6&&_0x23b024[_0x2132fa(0xd6)]===_0x128d88)||this[_0x2132fa(0x1c4)][_0x2132fa(0x148)]([{'unitId':_0x1b30bf,'subUnitId':_0x4e04a6,'drawingId':_0x128d88}]);})),_0x33008d[_0x241a9a(0x29d)](_0x2f1ea2[_0x241a9a(0x251)]['subscribe'](()=>{const _0x3fc942=_0x241a9a;this['_clearPopups'](),this[_0x3fc942(0x258)][_0x3fc942(0x34b)](_0x23f4fa,!0x1),this[_0x3fc942(0x1c4)]['focusDrawing'](null);})),_0x33008d['add'](_0x2f1ea2[_0x241a9a(0x2df)]['subscribe'](()=>{const _0x243cde=_0x241a9a;this[_0x243cde(0x319)]();})),_0x33008d[_0x241a9a(0x29d)](_0x2f1ea2[_0x241a9a(0x1ae)]['subscribe'](()=>{const _0x2ee8c0=_0x241a9a;this[_0x2ee8c0(0x319)]();})),_0x219635(()=>{const _0x2e45ed=_0x241a9a;_0x33008d[_0x2e45ed(0x137)](),this[_0x2e45ed(0x319)]();});}[_0x1736bc(0x1bf)](){const _0x42189e=_0x1736bc;this[_0x42189e(0x2d9)](this['_commandService'][_0x42189e(0x9d)](_0x163de0=>{const _0x227f26=_0x42189e;if(_0x163de0['id']===Rr['id']){let {unitId:_0x5f0667,subUnitId:_0x3bb526,drawingId:_0x53eed4}=_0x163de0[_0x227f26(0x228)];this[_0x227f26(0x2f9)]+=0x1,this['_activeShapeInfo']=this[_0x227f26(0x2fc)](_0x5f0667,_0x3bb526,_0x53eed4),this[_0x227f26(0x319)](),this[_0x227f26(0x31d)]();}if(_0x163de0['id']===Yi['id']&&(this[_0x227f26(0x275)]=null,this['_closeShapeEditPanel']()),_0x163de0['id']===_0x596a36['id']){let {unitId:_0x3750c1,subUnitId:_0x5d6121,shapeId:_0x40def9}=_0x163de0[_0x227f26(0x228)];if(this[_0x227f26(0x275)]&&this['_activeShapeInfo'][_0x227f26(0xea)]===_0x40def9){let _0x21f4d0=this[_0x227f26(0x2fc)](_0x3750c1,_0x5d6121,_0x40def9);_0x21f4d0&&(this[_0x227f26(0x2f9)]+=0x1,_0x21f4d0[_0x227f26(0x28c)]=this[_0x227f26(0x2f9)],this[_0x227f26(0x275)]=_0x21f4d0,this['_isOpenedShapeEditPanel']&&this['_openShapeEditPanel']());}}})),this['disposeWithMe'](this[_0x42189e(0x1c4)][_0x42189e(0x29e)]['subscribe'](_0x127348=>{const _0x599be8=_0x42189e;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x127348[_0x599be8(0x180)]===0x0){this[_0x599be8(0x275)]=null,this[_0x599be8(0x286)]();return;}if(_0x127348[_0x599be8(0x180)]===0x1&&_0x127348[0x0][_0x599be8(0x1e9)]===_0xc7f81b[_0x599be8(0x33e)]&&(this['_shapeEditPanelVersion']+=0x1,this[_0x599be8(0x275)]=this[_0x599be8(0x2fc)](_0x127348[0x0][_0x599be8(0x142)],_0x127348[0x0][_0x599be8(0x320)],_0x127348[0x0][_0x599be8(0xd6)]),this[_0x599be8(0x275)])){this['_openShapeEditPanel']();return;}let _0x11d30d=_0x127348['filter'](_0xfef307=>_0xfef307[_0x599be8(0x1e9)]===_0xc7f81b['DRAWING_SHAPE']);if(_0x127348[_0x599be8(0x180)]>0x1&&_0x11d30d['length']===_0x127348[_0x599be8(0x180)]){if(this['_shapeEditPanelVersion']+=0x1,this[_0x599be8(0x275)]=this['_getShapeInfo'](_0x127348[0x0][_0x599be8(0x142)],_0x127348[0x0][_0x599be8(0x320)],_0x127348[0x0]['drawingId']),this['_activeShapeInfo']){this[_0x599be8(0x31d)]();return;}}else{if(this[_0x599be8(0x2f9)]+=0x1,this['_activeShapeInfo']=this[_0x599be8(0x2fc)](_0x127348[0x0][_0x599be8(0x142)],_0x127348[0x0]['subUnitId'],_0x127348[0x0][_0x599be8(0xd6)]),this[_0x599be8(0x275)]){this[_0x599be8(0x275)][_0x599be8(0x13d)]=!0x0,this[_0x599be8(0x31d)]();return;}}this[_0x599be8(0x286)]();}));}[_0x1736bc(0x31d)](){const _0x11095b=_0x1736bc;this[_0x11095b(0x275)]&&(this['_sidebarDisposable']=this[_0x11095b(0x303)][_0x11095b(0x138)]({'id':jr,'header':{'title':this[_0x11095b(0x13e)]['t'](_0x11095b(0xab))},'width':0x184,'children':{'label':jr,...this[_0x11095b(0x275)]},'onClose':()=>{const _0x3e766f=_0x11095b;this[_0x3e766f(0x1c4)][_0x3e766f(0x148)](null),this[_0x3e766f(0x258)][_0x3e766f(0x34b)](_0x23f4fa,!0x1),this[_0x3e766f(0x25d)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0x1736bc(0x286)](){const _0xb2c857=_0x1736bc;this[_0xb2c857(0x28e)]=!0x1,this['_sidebarService'][_0xb2c857(0x100)](jr),this[_0xb2c857(0x25d)]=null,this[_0xb2c857(0x258)][_0xb2c857(0x34b)](_0x23f4fa,!0x1),this[_0xb2c857(0x1c4)][_0xb2c857(0x148)](null);}};Xi=Y([J(0x0,_0xfd8e0),J(0x1,_0x5b826f(_0x253182)),J(0x2,_0x24e4c2),J(0x3,_0x5b826f(_0xa0be75)),J(0x4,_0x5b826f(_0x3cb7ae)),J(0x5,_0x376420),J(0x6,_0x4cc7db),J(0x7,_0x5b826f(_0x7fc406)),J(0x8,_0x27f6db),J(0x9,_0x41745c),J(0xa,_0x5b826f($))],Xi);var Zi=class extends Xi{[_0x1736bc(0xde)](){const _0x50da3d=_0x1736bc;this[_0x50da3d(0x33d)][_0x50da3d(0x184)](Ji);}[_0x1736bc(0x12e)](){const _0xac55f6=_0x1736bc;this[_0xac55f6(0x2ca)][_0xac55f6(0x10f)](_0xc7f81b['DRAWING_SHAPE'],(_0x270dc2,_0x849205,_0x4ede08,_0x52e599)=>{const _0x426bba=_0xac55f6;let _0x594357=this[_0x426bba(0x337)][_0x426bba(0x2c6)](_0x270dc2,_0x849205,_0x4ede08),_0x1f1f75=this[_0x426bba(0x337)][_0x426bba(0x237)](_0x270dc2,_0x849205,_0x4ede08),_0x35f21c=_0x594357!==void 0x0&&!_0x1e2b3c(_0x594357)&&!(_0x1f1f75!=null&&_0x1f1f75[_0x426bba(0x217)]);return[{'label':_0x426bba(0xfd),'index':0x0,'commandId':Vi['id'],'commandParams':{'unitId':_0x270dc2,'subUnitId':_0x849205,'drawingId':_0x4ede08,'mode':'style'},'disable':!0x1},..._0x35f21c?[{'label':_0x426bba(0x113),'index':0x1,'commandId':Vi['id'],'commandParams':{'unitId':_0x270dc2,'subUnitId':_0x849205,'drawingId':_0x4ede08,'mode':_0x426bba(0x112)},'disable':!0x1}]:[],{'label':_0x426bba(0xc0),'index':0x2,'commandId':_0x4839e5['id'],'commandParams':{'unitId':_0x270dc2,'drawings':[{'unitId':_0x270dc2,'subUnitId':_0x849205,'drawingId':_0x4ede08,'drawingType':_0x52e599}]},'disable':!0x1},{'label':_0x426bba(0x2af),'index':0x3,'commandId':_0x47c06c['id'],'commandParams':{'unitId':_0x270dc2,'subUnitId':_0x849205,'shapeId':_0x4ede08,'flipH':!0x0},'disable':!0x1},{'label':_0x426bba(0x12d),'index':0x4,'commandId':_0x47c06c['id'],'commandParams':{'unitId':_0x270dc2,'subUnitId':_0x849205,'shapeId':_0x4ede08,'flipV':!0x0},'disable':!0x1}];},_0xac55f6(0x215));}[_0x1736bc(0x2da)](_0x4e6282){const _0x1b0778=_0x1736bc;this[_0x1b0778(0x12e)]();let _0x4c88b3=new _0xd7a0a(),_0x416c72=null,_0xcf54e6=()=>{const _0x4c7b89=_0x1b0778;if(!_0x416c72)return;let _0x945241=this[_0x4c7b89(0x1c4)][_0x4c7b89(0x345)](),_0x128719=_0x945241['length']===0x0||_0x945241['length']===0x1&&_0x945241[_0x4c7b89(0x14c)](_0x41d8af=>_0x41d8af[_0x4c7b89(0x142)]===(_0x416c72==null?void 0x0:_0x416c72[_0x4c7b89(0x142)])&&_0x41d8af['subUnitId']===(_0x416c72==null?void 0x0:_0x416c72[_0x4c7b89(0x320)])&&_0x41d8af[_0x4c7b89(0xd6)]===(_0x416c72==null?void 0x0:_0x416c72[_0x4c7b89(0xd6)]));_0x416c72=null,_0x128719&&(this[_0x4c7b89(0x258)][_0x4c7b89(0x34b)](_0x23f4fa,!0x1),this['_drawingManagerService'][_0x4c7b89(0x148)](null));};return _0x4c88b3[_0x1b0778(0x29d)](_0x4e6282[_0x1b0778(0x270)][_0x1b0778(0x222)](()=>{const _0x291a65=_0x1b0778;let _0x32eeff=_0x4e6282[_0x291a65(0x2cf)]();if(_0x32eeff[_0x291a65(0xe5)]>0x1){_0xcf54e6();return;}let _0x2d73ba=_0x32eeff['values']()[_0x291a65(0x2a9)]()[_0x291a65(0x2f4)];if(!_0x2d73ba){_0xcf54e6();return;}let _0x5abc89=this['_drawingManagerService'][_0x291a65(0x1f8)](_0x2d73ba[_0x291a65(0x131)]);if(!_0x5abc89||_0x5abc89[_0x291a65(0x1e9)]!==_0xc7f81b['DRAWING_SHAPE']){_0xcf54e6();return;}let {unitId:_0x2728ae,subUnitId:_0x219434,drawingId:_0x45dc7d}=_0x5abc89;_0x416c72={'unitId':_0x2728ae,'subUnitId':_0x219434,'drawingId':_0x45dc7d},this[_0x291a65(0x258)][_0x291a65(0x34b)](_0x23f4fa,!0x0),this[_0x291a65(0x1c4)][_0x291a65(0x345)]()[_0x291a65(0x199)](_0x340e5f=>_0x340e5f[_0x291a65(0x142)]===_0x2728ae&&_0x340e5f[_0x291a65(0x320)]===_0x219434&&_0x340e5f[_0x291a65(0xd6)]===_0x45dc7d)||this[_0x291a65(0x1c4)][_0x291a65(0x148)]([{'unitId':_0x2728ae,'subUnitId':_0x219434,'drawingId':_0x45dc7d}]);})),_0x4c88b3['add'](_0x4e6282[_0x1b0778(0x251)][_0x1b0778(0x222)](()=>{_0xcf54e6();})),_0x219635(()=>{const _0x5c0237=_0x1b0778;_0x4c88b3[_0x5c0237(0x137)](),_0xcf54e6();});}};function Qi(_0xddb186,_0x4d1e93,_0x21e351,_0x42d21f){const _0x2ca9bf=_0x1736bc;let _0x2afbf2=_0x46e7d8(_0xddb186,_0x4d1e93,_0x21e351),_0x5e87b8=[];for(let _0x38b0e1 of _0x4d1e93){let _0x9f537c=_0x2afbf2[_0x2ca9bf(0x346)][_0x2ca9bf(0x106)](_0x38b0e1[_0x2ca9bf(0xd6)]),_0x3505f6=_0x42d21f(_0x38b0e1);!_0x9f537c||!_0x3505f6||_0x5e87b8[_0x2ca9bf(0x159)]({'targetShapeId':_0x9f537c,'source':_0x3505f6});}return _0x5e87b8;}let $i=class extends _0x3f60c8{constructor(_0x14d8d5,_0x45ee65,_0x146f47,_0x510a28){const _0x10e7a7=_0x1736bc;super(),this['_univerInstanceService']=_0x14d8d5,this[_0x10e7a7(0x315)]=_0x45ee65,this[_0x10e7a7(0x1d1)]=_0x146f47,this['_sheetsShapeService']=_0x510a28,this[_0x10e7a7(0x2c4)]();}[_0x1736bc(0x2c4)](){const _0x24cb6f=_0x1736bc;this[_0x24cb6f(0x2d9)](this[_0x24cb6f(0x315)][_0x24cb6f(0x27a)]({'getMutations':_0x1c0a00=>{const _0x350876=_0x24cb6f;if(_0x1c0a00['id']===_0x55d3ac['id']){let _0x23ab1b=_0x747b0d(this['_univerInstanceService'],_0x1c0a00['params']);if(!_0x23ab1b)return{'redos':[],'undos':[]};let {unitId:_0x2142f8,subUnitId:_0x4e0438}=_0x23ab1b,_0x5b2f68=this[_0x350876(0x1d1)][_0x350876(0x245)](_0x2142f8,_0x4e0438),_0x377071=Object[_0x350876(0x2b9)](_0x5b2f68)[_0x350876(0x1b1)](_0x1ea1c4=>_0x1ea1c4[_0x350876(0x1e9)]===_0xc7f81b[_0x350876(0x33e)]);if(_0x377071['length']===0x0)return{'redos':[],'undos':[]};let _0x377f9c=[],_0x2c06ca=[];for(let _0x10cceb=0x0;_0x10cceb<_0x377071[_0x350876(0x180)];_0x10cceb++){let _0x8110d5=_0x377071[_0x10cceb],_0x506bc7=this['_sheetsShapeService'][_0x350876(0x1a7)](_0x8110d5[_0x350876(0x142)],_0x8110d5[_0x350876(0x320)],_0x8110d5[_0x350876(0xd6)]);_0x506bc7&&(_0x377f9c[_0x350876(0x159)]({'id':_0x4cc520['id'],'params':{'unitId':_0x2142f8,'subUnitId':_0x4e0438,'shapeId':_0x8110d5[_0x350876(0xd6)]}}),_0x2c06ca[_0x350876(0x159)]({'id':_0x547644['id'],'params':{'unitId':_0x2142f8,'subUnitId':_0x4e0438,'shapeId':_0x8110d5['drawingId'],'shapeType':_0x506bc7[_0x350876(0x19a)](),'shapeData':JSON['parse'](JSON[_0x350876(0x1a4)](_0x506bc7[_0x350876(0x1e3)]()))}}));}return{'redos':_0x377f9c,'undos':_0x2c06ca};}else{if(_0x1c0a00['id']===_0x20177c['id']){let {unitId:_0x39df33,subUnitId:_0xba0ee9,targetSubUnitId:_0x2a6b6b,copyContext:_0xdf8e3d}=_0x1c0a00[_0x350876(0x228)];if(!_0x39df33||!_0xba0ee9||!_0x2a6b6b)return{'redos':[],'undos':[]};let _0x1e766f=this[_0x350876(0x1d1)][_0x350876(0x245)](_0x39df33,_0xba0ee9),_0x25fb99=Object['values'](_0x1e766f)[_0x350876(0x1b1)](_0x3517e7=>_0x3517e7['drawingType']===_0xc7f81b[_0x350876(0x33e)]);if(_0x25fb99['length']===0x0)return{'redos':[],'undos':[]};let _0x6d44a0=Qi(_0xdf8e3d,_0x25fb99,{'unitId':_0x39df33,'sourceSubUnitId':_0xba0ee9,'targetSubUnitId':_0x2a6b6b},_0x8efb3e=>{const _0x14a473=_0x350876;let _0x2ff000=this['_sheetsShapeService']['getShapeModel'](_0x8efb3e[_0x14a473(0x142)],_0x8efb3e[_0x14a473(0x320)],_0x8efb3e[_0x14a473(0xd6)]);if(_0x2ff000)return{'shapeType':_0x2ff000[_0x14a473(0x19a)](),'shapeData':JSON[_0x14a473(0x31f)](JSON[_0x14a473(0x1a4)](_0x2ff000[_0x14a473(0x1e3)]()))};}),_0x5d2f9b=[],_0x3aeb49=[];for(let {targetShapeId:_0x115be1,source:_0x3e3a00}of _0x6d44a0)_0x5d2f9b[_0x350876(0x159)]({'id':_0x547644['id'],'params':{'unitId':_0x39df33,'subUnitId':_0x2a6b6b,'shapeId':_0x115be1,'shapeType':_0x3e3a00[_0x350876(0xd2)],'shapeData':_0x3e3a00[_0x350876(0x1ce)]}}),_0x3aeb49[_0x350876(0x159)]({'id':_0x4cc520['id'],'params':{'unitId':_0x39df33,'subUnitId':_0x2a6b6b,'shapeId':_0x115be1}});return{'redos':_0x5d2f9b,'undos':_0x3aeb49};}}return{'redos':[],'undos':[]};}}));}};$i=Y([J(0x0,_0x5b826f(_0xfd8e0)),J(0x1,_0x5b826f(_0x4a67b2)),J(0x2,_0x5b826f(_0x3dc5da)),J(0x3,_0x5b826f(_0xa0be75))],$i);let ea=class extends _0x3f60c8{constructor(_0x4f61a6,_0x59ab1e,_0x1e4a94,_0x3ff5d8,_0x4bc6f5,_0x3e59ee){const _0x23383b=_0x1736bc;super(),this[_0x23383b(0x287)]=_0x4f61a6,this[_0x23383b(0x234)]=_0x59ab1e,this[_0x23383b(0x1c4)]=_0x1e4a94,this[_0x23383b(0x18c)]=_0x3ff5d8,this[_0x23383b(0x212)]=_0x4bc6f5,this[_0x23383b(0x264)]=_0x3e59ee,q(this,_0x23383b(0x141),new Set()),this[_0x23383b(0x153)]();}[_0x1736bc(0x153)](){const _0xb945c4=_0x1736bc;this[_0xb945c4(0x30e)](),this[_0xb945c4(0x101)](),this[_0xb945c4(0x22e)]();}[_0x1736bc(0x30e)](){const _0x3f0c82=_0x1736bc;this['disposeWithMe'](this['_drawingManagerService']['add$'][_0x3f0c82(0x222)](_0x2f39e6=>{const _0x1fb556=_0x3f0c82;this[_0x1fb556(0x11f)](_0x2f39e6);}));}['_commandExecutedListener'](){const _0x3cb498=_0x1736bc;this[_0x3cb498(0x2d9)](this[_0x3cb498(0x287)][_0x3cb498(0x9d)]((_0x3b11b6,_0x32b3e0)=>{const _0x487071=_0x3cb498;if(_0x3b11b6['id']===_0x596a36['id']){let {unitId:_0x58c3bc,subUnitId:_0x179336,shapeId:_0x4925d9}=_0x3b11b6[_0x487071(0x228)],_0x142bea=this[_0x487071(0x2e5)](_0x58c3bc),_0x2a2fa7=_0x308e11({'unitId':_0x58c3bc,'subUnitId':_0x179336,'drawingId':_0x4925d9}),_0x18a310=_0x142bea==null?void 0x0:_0x142bea[_0x487071(0x1b2)][_0x487071(0x288)](_0x2a2fa7);_0x18a310&&(this[_0x487071(0x264)][_0x487071(0x2f1)](_0x18a310),this[_0x487071(0x264)][_0x487071(0xc1)](_0x18a310,{'unitId':_0x58c3bc,'subUnitId':_0x179336,'shapeId':_0x4925d9}),_0x18a310['makeDirty'](!0x0));return;}if(_0x3b11b6['id']===_0x547644['id']){var _0x44b0e4;let {unitId:_0x1a4417,subUnitId:_0x565aa4,shapeId:_0x25236c}=_0x3b11b6['params'],_0x19838e=this[_0x487071(0x2e5)](_0x1a4417);if(_0x19838e==null)return;let {scene:_0x1baa70}=_0x19838e,_0x2054a0=_0x308e11({'unitId':_0x1a4417,'subUnitId':_0x565aa4,'drawingId':_0x25236c}),_0x39e162=_0x1baa70[_0x487071(0x288)](_0x2054a0);if(!((_0x44b0e4=this[_0x487071(0x234)][_0x487071(0x250)](_0x1a4417))!=null&&_0x44b0e4[_0x487071(0xb1)](_0x361e49)[_0x487071(0x2ad)](_0x565aa4)))return!0x1;if(_0x39e162)return;if(_0x32b3e0!=null&&_0x32b3e0[_0x487071(0xd3)]){queueMicrotask(()=>{const _0x2585c9=_0x487071;this[_0x2585c9(0x1b8)]||this['_insertShapes']([{'unitId':_0x1a4417,'subUnitId':_0x565aa4,'drawingId':_0x25236c}]);});return;}this[_0x487071(0x11f)]([{'unitId':_0x1a4417,'subUnitId':_0x565aa4,'drawingId':_0x25236c}]);}}));}[_0x1736bc(0x22e)](){const _0x4c62ad=_0x1736bc;this[_0x4c62ad(0x2d9)](this[_0x4c62ad(0x1c4)]['update$'][_0x4c62ad(0x222)](_0x7c9dd9=>{const _0x5e8091=_0x4c62ad;_0x7c9dd9[_0x5e8091(0x1df)](_0x3fa6dc=>{const _0x441460=_0x5e8091;let {unitId:_0x562c52,subUnitId:_0x40c6dc,drawingId:_0x3d8f08}=_0x3fa6dc,_0x36bd86=this[_0x441460(0x1c4)][_0x441460(0x2cd)](_0x3fa6dc);if(_0x36bd86==null)return;let {transform:_0x35e677,drawingType:_0xa66824,srcRect:_0x29f6e7,prstGeom:_0x4d231}=_0x36bd86;if(_0xa66824!==_0xc7f81b[_0x441460(0x33e)])return;let _0x1f0c6f=this[_0x441460(0x2e5)](_0x562c52);if(_0x1f0c6f==null)return;let {scene:_0x18520e,transformer:_0x44d5e0}=_0x1f0c6f;if(_0x35e677==null)return!0x0;let _0x3d8568=_0x308e11({'unitId':_0x562c52,'subUnitId':_0x40c6dc,'drawingId':_0x3d8f08}),_0x2c1bcf=_0x18520e['getObjectIncludeInGroup'](_0x3d8568);if(_0x2c1bcf==null)return!0x0;_0x2c1bcf[_0x441460(0x135)](_0x29f6e7),_0x2c1bcf[_0x441460(0x21f)](_0x4d231);});}));}[_0x1736bc(0x11f)](_0x51ecff){const _0x337593=_0x1736bc;for(let _0x3a21ae of _0x51ecff){var _0x2d7ae2;let {unitId:_0x19057d,subUnitId:_0xe5f1bf,drawingId:_0x3a849f}=_0x3a21ae,_0x348172=this[_0x337593(0x2e5)](_0x19057d),_0x2f54e1=(_0x2d7ae2=_0x482589(this[_0x337593(0x18c)],_0x19057d))==null?void 0x0:_0x2d7ae2[_0x337593(0x320)];if(_0x348172==null||_0x2f54e1!==_0xe5f1bf)return;let _0x1767fb=_0x308e11({'unitId':_0x19057d,'subUnitId':_0xe5f1bf,'drawingId':_0x3a849f});if(this['_insertingShapeKeys']['has'](_0x1767fb)||_0x348172['scene'][_0x337593(0x288)](_0x1767fb)!=null)return;let _0x29c5d5=this[_0x337593(0x1c4)][_0x337593(0x2cd)](_0x3a21ae);if(_0x29c5d5==null||_0x29c5d5[_0x337593(0x1e9)]!==_0xc7f81b[_0x337593(0x33e)])return;if(_0x1e2b3c((_0x29c5d5[_0x337593(0x1d5)]||{})[_0x337593(0xd2)])){let _0x182073=_0x29c5d5[_0x337593(0x1f0)];_0x182073&&(_0x29c5d5['transform']={..._0x182073,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x337593(0x141)]['add'](_0x1767fb);try{this['_sheetDrawingShapeRenderController'][_0x337593(0x18e)](_0x29c5d5,_0x348172[_0x337593(0x1b2)]);}finally{this[_0x337593(0x141)][_0x337593(0xcc)](_0x1767fb);}queueMicrotask(()=>{const _0x1c17a3=_0x337593;if(this[_0x1c17a3(0x1b8)])return;let _0x23029b=_0x308e11(_0x3a21ae);if(!_0x348172[_0x1c17a3(0x1b2)]['getObjectIncludeInGroup'](_0x23029b))return;let _0x15487e=this[_0x1c17a3(0x1c4)][_0x1c17a3(0x2cd)](_0x3a21ae);_0x15487e&&this[_0x1c17a3(0x1c4)][_0x1c17a3(0x2c3)]([_0x15487e]);});}}[_0x1736bc(0x2e5)](_0x106b73){const _0x468fae=_0x1736bc;if(_0x106b73==null)return;let _0x433a56=this[_0x468fae(0x234)][_0x468fae(0x250)](_0x106b73),_0x37c7a2=_0x433a56==null?void 0x0:_0x433a56[_0x468fae(0x1b2)];return _0x37c7a2==null?null:{'scene':_0x37c7a2,'transformer':_0x37c7a2[_0x468fae(0x1de)]()};}};ea=Y([J(0x0,_0x376420),J(0x1,_0x41745c),J(0x2,_0x4cc7db),J(0x3,_0xfd8e0),J(0x4,_0x5b826f(_0x25eaea)),J(0x5,_0x5b826f(X))],ea);const ta={'normal':{'fill':_0x48b11f[_0x1736bc(0x1e2)],'stroke':_0x48b11f[_0x1736bc(0xcb)],'strokeWidth':_0x48b11f['cxnPointStrokeWidth']},'highlighted':{'fill':'#4285f4','stroke':'#1a73e8','strokeWidth':0x2}};var na=class extends _0x4983ab{constructor(_0x70a11b,_0x56549f){const _0xf173ea=_0x1736bc;super(_0x70a11b,_0x56549f),q(this,_0xf173ea(0xd9),''),q(this,_0xf173ea(0x196),-0x1),q(this,_0xf173ea(0x2b4),''),q(this,_0xf173ea(0x16e),''),q(this,'_isHighlighted',!0x1),_0x56549f&&this[_0xf173ea(0x29b)](_0x56549f);}[_0x1736bc(0x136)](){const _0x12e131=_0x1736bc;return{'unitId':this[_0x12e131(0x2b4)],'subUnitId':this[_0x12e131(0x16e)],'shapeId':this[_0x12e131(0xd9)],'cxnIndex':this['_cxnIndex']};}['setHighlighted'](_0x213cfb){const _0x22bdf9=_0x1736bc;this[_0x22bdf9(0x1e7)]!==_0x213cfb&&(this[_0x22bdf9(0x1e7)]=_0x213cfb,this[_0x22bdf9(0xe7)](!0x0));}[_0x1736bc(0x232)](){return this['_isHighlighted'];}[_0x1736bc(0x29b)](_0x41af5c){const _0x3e059a=_0x1736bc;_0x41af5c[_0x3e059a(0x2ae)]!==void 0x0&&(this[_0x3e059a(0xd9)]=_0x41af5c[_0x3e059a(0x2ae)]),_0x41af5c[_0x3e059a(0xc9)]!==void 0x0&&(this['_cxnIndex']=_0x41af5c[_0x3e059a(0xc9)]),_0x41af5c[_0x3e059a(0x142)]!==void 0x0&&(this[_0x3e059a(0x2b4)]=_0x41af5c[_0x3e059a(0x142)]),_0x41af5c[_0x3e059a(0x320)]!==void 0x0&&(this['_subUnitId']=_0x41af5c[_0x3e059a(0x320)]),_0x41af5c[_0x3e059a(0x232)]!==void 0x0&&(this['_isHighlighted']=_0x41af5c[_0x3e059a(0x232)]),this[_0x3e059a(0xc2)]({'width':_0x41af5c['width']??_0x48b11f[_0x3e059a(0x279)]*0x2,'height':_0x41af5c[_0x3e059a(0x188)]??_0x48b11f[_0x3e059a(0x279)]*0x2});}[_0x1736bc(0x273)](_0x4b91a7){const _0x34327b=_0x1736bc;let _0x5ddb8d=this[_0x34327b(0x1e7)]?ta[_0x34327b(0x16c)]:ta['normal'];_0xf73dbe[_0x34327b(0x243)](_0x4b91a7,{'radius':_0x48b11f['cxnPointRadius'],'fill':_0x5ddb8d[_0x34327b(0x2dd)],'stroke':_0x5ddb8d[_0x34327b(0x19b)],'strokeWidth':_0x5ddb8d[_0x34327b(0x2e2)],'evented':!0x0});}};let ra=class extends _0x3f60c8{constructor(_0x2252fb,_0x1a6557,_0x4c9391,_0x26c8bb){const _0x493c13=_0x1736bc;super(),this[_0x493c13(0x1ec)]=_0x2252fb,this[_0x493c13(0x234)]=_0x1a6557,this['_drawingManagerService']=_0x4c9391,this[_0x493c13(0x337)]=_0x26c8bb,q(this,_0x493c13(0x1c3),[]),q(this,_0x493c13(0x249),null),q(this,_0x493c13(0xb5),-0x1),q(this,_0x493c13(0x229),null),q(this,_0x493c13(0x2b4),''),q(this,_0x493c13(0x16e),''),q(this,'_draggingConnectorId',null);}[_0x1736bc(0x300)](_0x4f4847,_0x31380a,_0x43281d,_0xec535c){const _0x10983a=_0x1736bc;this[_0x10983a(0x229)]=_0x4f4847,this['_unitId']=_0x31380a,this['_subUnitId']=_0x43281d,this[_0x10983a(0xa5)]=_0xec535c;}[_0x1736bc(0x34f)](_0x41266e){const _0x1919d1=_0x1736bc;if(!this[_0x1919d1(0x229)])return null;let _0x4df67a=this[_0x1919d1(0x1b9)](_0x41266e);return _0x4df67a?(this[_0x1919d1(0x249)]!==_0x4df67a[_0x1919d1(0xea)]&&(this[_0x1919d1(0x23a)](),this['_showConnectionSites'](_0x4df67a[_0x1919d1(0xea)],_0x4df67a['shapeModel']),this[_0x1919d1(0x249)]=_0x4df67a['shapeId']),this[_0x1919d1(0x10d)](_0x41266e)):(this[_0x1919d1(0x249)]!==null&&(this['_clearConnectionSites'](),this['_activeTargetShapeId']=null),null);}['endConnectionDetection'](){const _0x43f7a2=_0x1736bc;this['_clearConnectionSites'](),this['_currentScene']=null,this['_activeTargetShapeId']=null,this[_0x43f7a2(0xb5)]=-0x1,this[_0x43f7a2(0xa5)]=null;}[_0x1736bc(0x201)](){const _0x2248d9=_0x1736bc;return this[_0x2248d9(0x249)]===null||this[_0x2248d9(0xb5)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x2248d9(0xb5)]};}[_0x1736bc(0x1b9)](_0xc371f1){const _0x28b981=_0x1736bc;let _0x223163=this[_0x28b981(0x1c4)][_0x28b981(0x245)](this[_0x28b981(0x2b4)],this[_0x28b981(0x16e)]);for(let _0x1ad7a2 of Object['keys'](_0x223163)){if(_0x1ad7a2===this[_0x28b981(0xa5)]||_0x223163[_0x1ad7a2][_0x28b981(0x1e9)]!==_0xc7f81b[_0x28b981(0x33e)])continue;let _0x5d8279=this[_0x28b981(0x337)][_0x28b981(0x1a7)](this[_0x28b981(0x2b4)],this['_subUnitId'],_0x1ad7a2);if(!_0x5d8279||_0x1e2b3c(_0x5d8279[_0x28b981(0x19a)]())||_0x5d8279[_0x28b981(0x2f3)]()[_0x28b981(0x180)]===0x0||!this[_0x28b981(0x229)])continue;let _0x5cebdd=_0x308e11({'unitId':this[_0x28b981(0x2b4)],'subUnitId':this[_0x28b981(0x16e)],'drawingId':_0x1ad7a2}),_0x410303=this[_0x28b981(0x229)]['getObjectIncludeInGroup'](_0x5cebdd);if(!_0x410303)continue;let {left:_0x4a66a0,top:_0x160b1f,width:_0x237bcb,height:_0x3345e4}=_0x410303[_0x28b981(0x25a)](),_0x44eab8=_0x4a66a0+_0x237bcb/0x2,_0xe5bc87=_0x160b1f+_0x3345e4/0x2,_0x9c2e6c=_0x410303[_0x28b981(0x1f0)][_0x28b981(0x2fb)](),_0x6f1dcd=new _0x17d708([_0x9c2e6c[0x0],_0x9c2e6c[0x1],_0x9c2e6c[0x2],_0x9c2e6c[0x3],_0x44eab8,_0xe5bc87]),_0x440ef3=_0x410303[_0x28b981(0x32f)](),_0x228aae=(_0x410303[_0x28b981(0x102)]&&(_0x440ef3==null?void 0x0:_0x440ef3[_0x28b981(0x301)])===_0x3a2883['GROUP']?_0x440ef3[_0x28b981(0x120)][_0x28b981(0x25c)](_0x6f1dcd):_0x6f1dcd)['invert']()['applyPoint'](_0xc371f1),_0x2034aa=_0x237bcb/0x2,_0x240d04=_0x3345e4/0x2;if(_0x228aae['x']>=-_0x2034aa-0x5&&_0x228aae['x']<=_0x2034aa+0x5&&_0x228aae['y']>=-_0x240d04-0x5&&_0x228aae['y']<=_0x240d04+0x5)return{'shapeId':_0x1ad7a2,'shapeModel':_0x5d8279};}return null;}[_0x1736bc(0x2b5)](_0x46f580,_0x2d95c3){const _0x321a60=_0x1736bc;if(!this['_currentScene'])return;let _0x1a2a49=_0x308e11({'unitId':this[_0x321a60(0x2b4)],'subUnitId':this['_subUnitId'],'drawingId':_0x46f580}),_0x265afb=this[_0x321a60(0x229)][_0x321a60(0x288)](_0x1a2a49);if(!_0x265afb)return;let {left:_0x5c0cfd,top:_0x2b783e,width:_0x299ad7,height:_0x3fa477}=_0x265afb[_0x321a60(0x25a)](),_0x3b81da=_0x5c0cfd+_0x299ad7/0x2,_0xa77833=_0x2b783e+_0x3fa477/0x2,_0x1aceaa=_0x265afb['transform'][_0x321a60(0x2fb)](),_0x5948bc=new _0x17d708([_0x1aceaa[0x0],_0x1aceaa[0x1],_0x1aceaa[0x2],_0x1aceaa[0x3],_0x3b81da,_0xa77833]),_0x418121=_0x265afb['getParent'](),_0x43439a=_0x265afb[_0x321a60(0x102)]&&(_0x418121==null?void 0x0:_0x418121['classType'])===_0x3a2883[_0x321a60(0x2a3)]?_0x418121[_0x321a60(0x120)][_0x321a60(0x25c)](_0x5948bc):_0x5948bc;_0x2d95c3[_0x321a60(0x247)]({'width':_0x299ad7,'height':_0x3fa477});let _0x5f2edb=_0x2d95c3[_0x321a60(0x2f3)]();for(let _0x507728 of _0x5f2edb){let _0x525ef4=_0x507728['x']-_0x299ad7/0x2,_0x2de82c=_0x507728['y']-_0x3fa477/0x2,_0x244108=_0x43439a[_0x321a60(0x1c7)]({'x':_0x525ef4,'y':_0x2de82c}),_0x3c9be2=_0x244108['x'],_0x342e7f=_0x244108['y'],_0x3d8e70=new na('connection-site-'+_0x46f580+'-'+_0x507728[_0x321a60(0x1b4)],{'left':_0x3c9be2-_0x48b11f[_0x321a60(0x279)],'top':_0x342e7f-_0x48b11f[_0x321a60(0x279)],'targetShapeId':_0x46f580,'cxnIndex':_0x507728[_0x321a60(0x1b4)],'unitId':this[_0x321a60(0x2b4)],'subUnitId':this[_0x321a60(0x16e)],'width':_0x48b11f[_0x321a60(0x279)]*0x2,'height':_0x48b11f[_0x321a60(0x279)]*0x2,'zIndex':_0x21c410+0x2,'evented':!0x1});this[_0x321a60(0x1c3)][_0x321a60(0x159)](_0x3d8e70),this[_0x321a60(0x229)][_0x321a60(0x1f3)](_0x3d8e70,_0x21c410+0x2);}}[_0x1736bc(0x10d)](_0xa44197){const _0x25db59=_0x1736bc;let _0x3cad20=null,_0x4ae764=0x1/0x0,_0x2f123f=null;for(let _0x533dde of this[_0x25db59(0x1c3)]){let _0x169a97=_0x533dde[_0x25db59(0x306)]+_0x48b11f[_0x25db59(0x279)],_0x4be0d8=_0x533dde[_0x25db59(0x21c)]+_0x48b11f[_0x25db59(0x279)],_0x341ddf=_0xa44197['x']-_0x169a97,_0x44d7b8=_0xa44197['y']-_0x4be0d8,_0x41dfda=Math[_0x25db59(0x2e9)](_0x341ddf*_0x341ddf+_0x44d7b8*_0x44d7b8);_0x41dfda<_0x4ae764&&(_0x4ae764=_0x41dfda,_0x3cad20=_0x533dde,_0x2f123f={'x':_0x169a97,'y':_0x4be0d8});}let _0x25be24=_0x4ae764<=0xa&&_0x3cad20?_0x3cad20[_0x25db59(0x136)]()[_0x25db59(0xc9)]:-0x1;if(_0x25be24!==this[_0x25db59(0xb5)]){for(let _0x546b00 of this[_0x25db59(0x1c3)]){let _0x1ad43f=_0x546b00['getConnectionInfo']();_0x546b00[_0x25db59(0x127)](_0x1ad43f['cxnIndex']===_0x25be24);}this[_0x25db59(0xb5)]=_0x25be24;}if(_0x4ae764<=0xa&&_0x3cad20&&_0x2f123f){let _0x104098=_0x3cad20['getConnectionInfo'](),_0x527c4d=this['_getConnectionSiteAngle'](_0x104098[_0x25db59(0xea)],_0x104098[_0x25db59(0xc9)]);return{'shapeId':_0x104098[_0x25db59(0xea)],'cxnIndex':_0x104098[_0x25db59(0xc9)],'unitId':_0x104098['unitId'],'subUnitId':_0x104098['subUnitId'],'worldPoint':_0x2f123f,'angle':_0x527c4d};}return null;}['_getConnectionSiteAngle'](_0x29cbe0,_0x178865){const _0x3fca2d=_0x1736bc;let _0x21454e=this[_0x3fca2d(0x337)][_0x3fca2d(0x1a7)](this[_0x3fca2d(0x2b4)],this[_0x3fca2d(0x16e)],_0x29cbe0);if(!_0x21454e)return 0x0;let _0x1a6736=this[_0x3fca2d(0x1c4)]['getDrawingByParam']({'unitId':this[_0x3fca2d(0x2b4)],'subUnitId':this['_subUnitId'],'drawingId':_0x29cbe0});if(!(_0x1a6736!=null&&_0x1a6736[_0x3fca2d(0x1f0)]))return 0x0;let {width:_0x55af40=0x0,height:_0x85f3e3=0x0,flipX:_0x195929=!0x1,flipY:_0x5b3a5b=!0x1}=_0x1a6736['transform'];_0x21454e[_0x3fca2d(0x247)]({'width':_0x55af40,'height':_0x85f3e3});let _0x5aafea=_0x21454e[_0x3fca2d(0x2f3)]()[_0x3fca2d(0x199)](_0xf1838a=>_0xf1838a[_0x3fca2d(0x1b4)]===_0x178865);if(!_0x5aafea)return 0x0;let _0x442330=_0x5aafea[_0x3fca2d(0x2bc)]/0xea60;return _0x195929&&(_0x442330=0xb4-_0x442330),_0x5b3a5b&&(_0x442330=-_0x442330),_0x442330=(_0x442330%0x168+0x168)%0x168,_0x442330;}[_0x1736bc(0x23a)](){const _0x30d2c8=_0x1736bc;for(let _0x71f9f4 of this[_0x30d2c8(0x1c3)])_0x71f9f4[_0x30d2c8(0x137)]();this['_connectionSiteObjects']=[],this[_0x30d2c8(0xb5)]=-0x1;}['dispose'](){this['_clearConnectionSites'](),super['dispose']();}};ra=Y([J(0x1,_0x5b826f(_0x41745c)),J(0x2,_0x5b826f(_0x4cc7db)),J(0x3,_0x5b826f(_0xa0be75))],ra);let ia=class extends _0x3f60c8{constructor(_0x59980,_0x3df9bd,_0x2d6c29,_0x525e4d,_0x540931){const _0x17cc0b=_0x1736bc;super(),this['_sheetSkeletonService']=_0x59980,this[_0x17cc0b(0x197)]=_0x3df9bd,this[_0x17cc0b(0x1d1)]=_0x2d6c29,this[_0x17cc0b(0x1e4)]=_0x525e4d,this[_0x17cc0b(0xa3)]=_0x540931,q(this,'_copyInfo',void 0x0),this[_0x17cc0b(0x349)](),this[_0x17cc0b(0x220)]();}get[_0x1736bc(0x231)](){const _0xcedd97=_0x1736bc;return this[_0xcedd97(0x1d1)][_0xcedd97(0x345)]();}['_registerGroupFeaturePasteHook'](){const _0x4c0bed=_0x1736bc;this[_0x4c0bed(0xa3)][_0x4c0bed(0xf2)](({fromUnitId:_0x39858d,fromSubUnitId:_0x4a1da,toUnitId:_0x5ec74a,toSubUnitId:_0x17f973,idMap:_0x2fc7c6})=>{const _0x5b79bb=_0x4c0bed;let _0x3d65e2=[],_0x5b083d=[];for(let [_0x396d8d,_0x13ccb6]of _0x2fc7c6[_0x5b79bb(0xa8)]()){let _0x4c4f94=this[_0x5b79bb(0x1e4)][_0x5b79bb(0x1a7)](_0x39858d,_0x4a1da,_0x396d8d);if(!_0x4c4f94)continue;let _0x171f05=_0x4c4f94[_0x5b79bb(0x19a)](),_0x16a35d=JSON[_0x5b79bb(0x31f)](JSON[_0x5b79bb(0x1a4)](_0x4c4f94['getShapeData']()));if(_0x16a35d[_0x5b79bb(0x2f2)]){var _0x11fb37,_0x236438;let _0x36a8de=(_0x11fb37=_0x16a35d[_0x5b79bb(0x2f2)][_0x5b79bb(0x2dc)])==null?void 0x0:_0x11fb37[_0x5b79bb(0xea)],_0x2995d8=(_0x236438=_0x16a35d[_0x5b79bb(0x2f2)]['to'])==null?void 0x0:_0x236438[_0x5b79bb(0xea)],_0xcc0404=!_0x36a8de||_0x2fc7c6[_0x5b79bb(0x12c)](_0x36a8de),_0x48b7ae=!_0x2995d8||_0x2fc7c6[_0x5b79bb(0x12c)](_0x2995d8);_0xcc0404&&_0x36a8de&&_0x16a35d[_0x5b79bb(0x2f2)][_0x5b79bb(0x2dc)]?_0x16a35d[_0x5b79bb(0x2f2)][_0x5b79bb(0x2dc)]={..._0x16a35d['relation']['from'],'shapeId':_0x2fc7c6[_0x5b79bb(0x106)](_0x36a8de)}:_0x16a35d[_0x5b79bb(0x2f2)][_0x5b79bb(0x2dc)]=void 0x0,_0x48b7ae&&_0x2995d8&&_0x16a35d[_0x5b79bb(0x2f2)]['to']?_0x16a35d[_0x5b79bb(0x2f2)]['to']={..._0x16a35d[_0x5b79bb(0x2f2)]['to'],'shapeId':_0x2fc7c6[_0x5b79bb(0x106)](_0x2995d8)}:_0x16a35d[_0x5b79bb(0x2f2)]['to']=void 0x0;}_0x3d65e2[_0x5b79bb(0x159)]({'id':_0x547644['id'],'params':{'unitId':_0x5ec74a,'subUnitId':_0x17f973,'shapeId':_0x13ccb6,'shapeType':_0x171f05,'shapeData':_0x16a35d}}),_0x5b083d[_0x5b79bb(0x159)]({'id':_0x4cc520['id'],'params':{'unitId':_0x5ec74a,'subUnitId':_0x17f973,'shapeId':_0x13ccb6}});}return{'redos':_0x3d65e2,'undos':_0x5b083d};});}[_0x1736bc(0x349)](){const _0x2e8fea=_0x1736bc;this[_0x2e8fea(0x2d9)](this[_0x2e8fea(0x197)][_0x2e8fea(0x2ea)]({'id':'sheets-shape-ui','onBeforeCopyFocusedObject':(_0x249cf9,_0x21c615,_0x8f56eb)=>{const _0x30eb26=_0x2e8fea;this['_copyInfo']=null;let _0x414859=this[_0x30eb26(0x231)][_0x30eb26(0x1b1)](_0xcb8762=>_0xcb8762[_0x30eb26(0x1e9)]===_0xc7f81b[_0x30eb26(0x33e)]);return _0x414859[_0x30eb26(0x180)]===0x0?!0x1:(this[_0x30eb26(0x2e0)]={'unitId':_0x249cf9,'subUnitId':_0x21c615,'copyType':_0x8f56eb,'drawings':_0x414859},!0x0);},'onBeforeCopy':(_0x275df6,_0x1b2b41,_0x497209,_0x29d7be)=>{const _0x154b61=_0x2e8fea;this['_copyInfo']=null,this[_0x154b61(0x193)](_0x275df6,_0x1b2b41,_0x497209,_0x29d7be);},'onPasteCells':(_0x9f1685,_0x2c392b,_0x25c673,_0x5fa856)=>{const _0x2b2d64=_0x2e8fea;if(!_0x5fa856[_0x2b2d64(0xf1)]||!_0x9f1685||!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x55c2e6}=_0x5fa856;return _0x55c2e6===_0x3218cf['DEFAULT_PASTE']?this['_generatePasteMutations'](_0x2c392b,this[_0x2b2d64(0x2e0)]['copyType']===_0x1ceaa3[_0x2b2d64(0x298)]):{'redos':[],'undos':[]};}}));}[_0x1736bc(0x193)](_0x5e113f,_0x39ce3d,_0x25e342,_0x353ba2){const _0x21f10d=_0x1736bc;let _0x33bafb=this[_0x21f10d(0x156)][_0x21f10d(0x2ad)](_0x5e113f,_0x39ce3d);if(!_0x33bafb)return;let _0x31909e=_0x4b8ddf(_0x33bafb,_0x25e342);if(!_0x31909e)return;let {startX:_0x5d9b85,endX:_0x5bb3e8,startY:_0x2a1df4,endY:_0x2b1a82}=_0x31909e,_0x1c3979=this[_0x21f10d(0x1d1)]['getDrawingData'](_0x5e113f,_0x39ce3d),_0x4a5ff7=[];for(let [_0x3a87db,_0x4a5c4a]of Object[_0x21f10d(0xa8)](_0x1c3979)){if(_0x4a5c4a['drawingType']!==_0xc7f81b['DRAWING_SHAPE'])continue;let {transform:_0x1ff059}=_0x4a5c4a;if(!_0x1ff059)continue;let {left:_0x1d8d0a=0x0,top:_0x2eb171=0x0,width:_0x40800c=0x0,height:_0x41197c=0x0}=_0x1ff059;_0x5d9b85<=_0x1d8d0a&&_0x5bb3e8>=_0x1d8d0a+_0x40800c&&_0x2a1df4<=_0x2eb171&&_0x2b1a82>=_0x2eb171+_0x41197c&&_0x4a5ff7['push'](_0x4a5c4a);}_0x4a5ff7[_0x21f10d(0x180)]>0x0&&(this[_0x21f10d(0x2e0)]={'unitId':_0x5e113f,'subUnitId':_0x39ce3d,'copyType':_0x353ba2,'copyRange':_0x25e342,'drawings':_0x4a5ff7});}[_0x1736bc(0x18b)](_0x427381,_0x385a27){const _0x5ec5a9=_0x1736bc;let {unitId:_0x4bf2a7,subUnitId:_0x4aa1bc,range:_0x31377e}=_0x427381,_0x25c936=this[_0x5ec5a9(0x156)][_0x5ec5a9(0x2ad)](_0x4bf2a7,_0x4aa1bc);if(!_0x25c936)return{'redos':[],'undos':[]};let _0x27ebfb=_0x5a8046(_0x31377e),{unitId:_0xf65f85,subUnitId:_0x1878c4,copyRange:_0xe55590,drawings:_0x5f074a}=this['_copyInfo'],_0x31bdb2=this[_0x5ec5a9(0x156)]['getSkeleton'](_0xf65f85,_0x1878c4);if(!_0x31bdb2)return{'redos':[],'undos':[]};let _0xc2af79;if(!_0xe55590){let _0x1a23d2=0x1/0x0,_0x48f3e5=0x1/0x0;for(let _0x13b463 of _0x5f074a){let {left:_0x470c50=0x0,top:_0x1d5e95=0x0}=_0x13b463['transform']??{};_0x470c50<_0x1a23d2&&(_0x1a23d2=_0x470c50),_0x1d5e95<_0x48f3e5&&(_0x48f3e5=_0x1d5e95);}_0x1a23d2!==0x1/0x0&&_0x48f3e5!==0x1/0x0&&(_0xc2af79={'left':_0x1a23d2,'top':_0x48f3e5});}let _0x357cad=new Map();if(!_0x385a27){for(let _0x17fd09 of _0x5f074a)_0x357cad['set'](_0x17fd09[_0x5ec5a9(0xd6)],_0x165ac1());}let _0x31fb26=[],_0x2a34e2=[];for(let _0x4ad722 of _0x5f074a){let {drawingId:_0x59dcde,transform:_0x4fe96b,sheetTransform:_0x5d86aa}=_0x4ad722;if(!_0x4fe96b||!_0x5d86aa)continue;let _0x37caa9=this[_0x5ec5a9(0x351)]({'transform':_0x4fe96b,'sheetTransform':_0x5d86aa},{'skeleton':_0x31bdb2,'range':_0xe55590},{'skeleton':_0x25c936,'range':_0x27ebfb},_0xc2af79);if(_0x385a27){let {redos:_0x30376b,undos:_0xed3307}=this[_0x5ec5a9(0x1e1)]({'fromUnitId':_0xf65f85,'fromSubUnitId':_0x1878c4,'toUnitId':_0x4bf2a7,'toSubUnitId':_0x4aa1bc,'drawing':_0x4ad722,'newTransforms':_0x37caa9});_0x31fb26['push'](..._0x30376b),_0x2a34e2[_0x5ec5a9(0x159)](..._0xed3307);continue;}let {redos:_0x5a6f46,undos:_0x4bf85a}=this[_0x5ec5a9(0x1c8)]({'toUnitId':_0x4bf2a7,'toSubUnitId':_0x4aa1bc,'drawing':_0x4ad722,'newTransforms':_0x37caa9,'newDrawingId':_0x357cad[_0x5ec5a9(0x106)](_0x59dcde),'idMap':_0x357cad});_0x31fb26[_0x5ec5a9(0x159)](..._0x5a6f46),_0x2a34e2['push'](..._0x4bf85a);}return{'redos':_0x31fb26,'undos':_0x2a34e2};}[_0x1736bc(0x1e1)](_0x5f51b4){const _0x19bf4b=_0x1736bc;let {fromUnitId:_0xe5cfc,fromSubUnitId:_0x290cd1,toUnitId:_0x4e768a,toSubUnitId:_0x43f551,drawing:_0x50b5f4,newTransforms:_0x43055}=_0x5f51b4,_0x401a73={..._0x50b5f4,'unitId':_0x4e768a,'subUnitId':_0x43f551,'transform':_0x43055[_0x19bf4b(0x1f0)],'sheetTransform':_0x43055['sheetTransform']};if(_0x4e768a===_0xe5cfc&&_0x43f551===_0x290cd1){let {redo:_0x3ff5f2,undo:_0x5052c3,objects:_0x55e612}=this[_0x19bf4b(0x1d1)][_0x19bf4b(0x240)]([_0x401a73]);return{'redos':[{'id':_0x36941f['id'],'params':{'unitId':_0x4e768a,'subUnitId':_0x43f551,'type':_0x58cf1a['UPDATE'],'op':_0x3ff5f2,'objects':_0x55e612}}],'undos':[{'id':_0x36941f['id'],'params':{'unitId':_0x4e768a,'subUnitId':_0x43f551,'type':_0x58cf1a[_0x19bf4b(0x207)],'op':_0x5052c3,'objects':_0x55e612}}]};}else{let _0x4e0bf3=this[_0x19bf4b(0x1d1)][_0x19bf4b(0x1a0)]([_0x50b5f4]),_0x33e0af=this[_0x19bf4b(0x1d1)][_0x19bf4b(0x293)]([_0x401a73]),_0x4a34ac=this[_0x19bf4b(0x1e4)]['getShapeModel'](_0x50b5f4[_0x19bf4b(0x142)],_0x50b5f4['subUnitId'],_0x50b5f4[_0x19bf4b(0xd6)]);if(!_0x4a34ac)return{'redos':[],'undos':[]};let _0x4197d5=_0x4a34ac[_0x19bf4b(0x19a)](),_0x573678=JSON[_0x19bf4b(0x31f)](JSON[_0x19bf4b(0x1a4)](_0x4a34ac[_0x19bf4b(0x1e3)]()));return{'redos':[{'id':_0x36941f['id'],'params':{'unitId':_0xe5cfc,'subUnitId':_0x290cd1,'type':_0x58cf1a['REMOVE'],'op':_0x4e0bf3[_0x19bf4b(0x182)],'objects':_0x4e0bf3[_0x19bf4b(0x277)]}},{'id':_0x4cc520['id'],'params':{'unitId':_0xe5cfc,'subUnitId':_0x290cd1,'shapeId':_0x50b5f4[_0x19bf4b(0xd6)]}},{'id':_0x36941f['id'],'params':{'unitId':_0x4e768a,'subUnitId':_0x43f551,'type':_0x58cf1a[_0x19bf4b(0x13c)],'op':_0x33e0af[_0x19bf4b(0x182)],'objects':_0x33e0af['objects']}},{'id':_0x547644['id'],'params':{'unitId':_0x4e768a,'subUnitId':_0x43f551,'shapeId':_0x50b5f4[_0x19bf4b(0xd6)],'shapeType':_0x4197d5,'shapeData':_0x573678}}],'undos':[{'id':_0x36941f['id'],'params':{'unitId':_0xe5cfc,'subUnitId':_0x290cd1,'type':_0x58cf1a[_0x19bf4b(0x13c)],'op':_0x4e0bf3[_0x19bf4b(0x16d)],'objects':_0x4e0bf3[_0x19bf4b(0x277)]}},{'id':_0x547644['id'],'params':{'unitId':_0xe5cfc,'subUnitId':_0x290cd1,'shapeId':_0x50b5f4[_0x19bf4b(0xd6)],'shapeType':_0x4197d5,'shapeData':_0x573678}},{'id':_0x36941f['id'],'params':{'unitId':_0x4e768a,'subUnitId':_0x43f551,'type':_0x58cf1a[_0x19bf4b(0x2c2)],'op':_0x33e0af['undo'],'objects':_0x33e0af[_0x19bf4b(0x277)]}},{'id':_0x4cc520['id'],'params':{'unitId':_0x4e768a,'subUnitId':_0x43f551,'shapeId':_0x50b5f4[_0x19bf4b(0xd6)]}}]};}}[_0x1736bc(0x1c8)](_0x1043d9){const _0x3c32d0=_0x1736bc;let {toUnitId:_0x3d423a,toSubUnitId:_0x4a0fd2,drawing:_0x420abe,newTransforms:_0x4e4a96,newDrawingId:_0x44486e,idMap:_0x345071}=_0x1043d9,_0x40c644={..._0x420abe,'unitId':_0x3d423a,'subUnitId':_0x4a0fd2,'drawingId':_0x44486e,'transform':_0x4e4a96[_0x3c32d0(0x1f0)],'sheetTransform':_0x4e4a96[_0x3c32d0(0x18a)]},{redo:_0x4553e0,undo:_0x8ca722,objects:_0x3dfa3d}=this[_0x3c32d0(0x1d1)]['getBatchAddOp']([_0x40c644]),_0x5285a3=this[_0x3c32d0(0x1e4)][_0x3c32d0(0x1a7)](_0x420abe['unitId'],_0x420abe[_0x3c32d0(0x320)],_0x420abe[_0x3c32d0(0xd6)]);if(!_0x5285a3)return{'redos':[],'undos':[]};let _0x8be52=_0x5285a3['getShapeType'](),_0x2a3f4b=JSON['parse'](JSON['stringify'](_0x5285a3[_0x3c32d0(0x1e3)]()));if(_0x2a3f4b[_0x3c32d0(0x2f2)]){var _0x109827,_0x5afc03;let _0x52e857=(_0x109827=_0x2a3f4b[_0x3c32d0(0x2f2)][_0x3c32d0(0x2dc)])==null?void 0x0:_0x109827['shapeId'],_0x4b7b95=(_0x5afc03=_0x2a3f4b['relation']['to'])==null?void 0x0:_0x5afc03['shapeId'],_0x79f7f2=!_0x52e857||_0x345071[_0x3c32d0(0x12c)](_0x52e857),_0x2575f1=!_0x4b7b95||_0x345071['has'](_0x4b7b95);_0x79f7f2&&_0x52e857&&_0x2a3f4b[_0x3c32d0(0x2f2)][_0x3c32d0(0x2dc)]?_0x2a3f4b[_0x3c32d0(0x2f2)]['from']={..._0x2a3f4b[_0x3c32d0(0x2f2)]['from'],'shapeId':_0x345071[_0x3c32d0(0x106)](_0x52e857)}:_0x2a3f4b[_0x3c32d0(0x2f2)][_0x3c32d0(0x2dc)]=void 0x0,_0x2575f1&&_0x4b7b95&&_0x2a3f4b[_0x3c32d0(0x2f2)]['to']?_0x2a3f4b[_0x3c32d0(0x2f2)]['to']={..._0x2a3f4b[_0x3c32d0(0x2f2)]['to'],'shapeId':_0x345071[_0x3c32d0(0x106)](_0x4b7b95)}:_0x2a3f4b[_0x3c32d0(0x2f2)]['to']=void 0x0;}return{'redos':[{'id':_0x36941f['id'],'params':{'unitId':_0x3d423a,'subUnitId':_0x4a0fd2,'type':_0x58cf1a[_0x3c32d0(0x13c)],'op':_0x4553e0,'objects':_0x3dfa3d}},{'id':_0x547644['id'],'params':{'unitId':_0x3d423a,'subUnitId':_0x4a0fd2,'shapeId':_0x44486e,'shapeType':_0x8be52,'shapeData':_0x2a3f4b}}],'undos':[{'id':_0x36941f['id'],'params':{'unitId':_0x3d423a,'subUnitId':_0x4a0fd2,'type':_0x58cf1a['REMOVE'],'op':_0x8ca722,'objects':_0x3dfa3d}},{'id':_0x4cc520['id'],'params':{'unitId':_0x3d423a,'subUnitId':_0x4a0fd2,'shapeId':_0x44486e}}]};}[_0x1736bc(0x351)](_0x5b91c9,_0x3a75e4,_0x59d058,_0x198c81){const _0xfc5f92=_0x1736bc;let {range:_0x51990d,skeleton:_0xe4566}=_0x3a75e4,{range:_0x420615,skeleton:_0x1079bf}=_0x59d058,{transform:_0x53e551,sheetTransform:_0xa2c143}=_0x5b91c9,_0x2a9086={..._0x53e551};if(_0x51990d){let _0x85173f=_0x4b8ddf(_0xe4566,_0x51990d),_0x32bd8e=_0x4b8ddf(_0x1079bf,_0x420615);if(_0x85173f&&_0x32bd8e){let _0x2a8abe=_0x32bd8e[_0xfc5f92(0xac)]-_0x85173f[_0xfc5f92(0xac)],_0x1f1059=_0x32bd8e[_0xfc5f92(0x115)]-_0x85173f[_0xfc5f92(0x115)];_0x2a9086['left']=(_0x2a9086[_0xfc5f92(0x306)]??0x0)+_0x2a8abe,_0x2a9086[_0xfc5f92(0x21c)]=(_0x2a9086['top']??0x0)+_0x1f1059;}}else{let _0x248dec=_0x4b8ddf(_0x1079bf,_0x420615);if(_0x198c81&&_0x248dec){let _0x98750a=(_0x2a9086[_0xfc5f92(0x306)]??0x0)-_0x198c81['left'],_0x5bfeb1=(_0x2a9086['top']??0x0)-_0x198c81[_0xfc5f92(0x21c)];_0x2a9086[_0xfc5f92(0x306)]=_0x248dec[_0xfc5f92(0xac)]+_0x98750a,_0x2a9086[_0xfc5f92(0x21c)]=_0x248dec[_0xfc5f92(0x115)]+_0x5bfeb1;}else _0x2a9086[_0xfc5f92(0x306)]=_0x248dec==null?void 0x0:_0x248dec[_0xfc5f92(0xac)],_0x2a9086[_0xfc5f92(0x21c)]=_0x248dec==null?void 0x0:_0x248dec[_0xfc5f92(0x115)];}return{'transform':_0x2a9086,'sheetTransform':_0x511550(_0x2a9086,_0x1079bf)??_0xa2c143};}};ia=Y([J(0x0,_0x5b826f(_0x1c246a)),J(0x1,_0x5b826f(_0x15bbbc)),J(0x2,_0x5b826f(_0x3dc5da)),J(0x3,_0x5b826f(_0xa0be75)),J(0x4,_0x5b826f(_0x143c5f))],ia);var aa=class extends _0x4983ab{constructor(_0x49cdbb,_0x514f6c){const _0x1acb37=_0x1736bc;super(_0x49cdbb,_0x514f6c),q(this,_0x1acb37(0x281),null),q(this,_0x1acb37(0x242),null),q(this,_0x1acb37(0x2b4),null),q(this,_0x1acb37(0x16e),null),q(this,_0x1acb37(0x318),!0x1),_0x514f6c&&this['setShapeProps'](_0x514f6c);}[_0x1736bc(0xb0)](){const _0x2dbf72=_0x1736bc;return{'unitId':this[_0x2dbf72(0x2b4)],'subUnitId':this[_0x2dbf72(0x16e)],'drawingId':this[_0x2dbf72(0x281)]};}[_0x1736bc(0x29b)](_0x490471){const _0xe5b738=_0x1736bc;_0x490471[_0xe5b738(0xea)]!==void 0x0&&(this[_0xe5b738(0x281)]=_0x490471['shapeId']),_0x490471[_0xe5b738(0x142)]!==void 0x0&&(this['_unitId']=_0x490471[_0xe5b738(0x142)]),_0x490471[_0xe5b738(0x320)]!==void 0x0&&(this[_0xe5b738(0x16e)]=_0x490471[_0xe5b738(0x320)]),_0x490471[_0xe5b738(0x1d6)]!==void 0x0&&(this['_isStartConnectorPoint']=_0x490471[_0xe5b738(0x1d6)]),this[_0xe5b738(0xc2)]({'width':_0x490471['width'],'height':_0x490471[_0xe5b738(0x188)]});}['_draw'](_0x5ea7e2){const _0x2dcdda=_0x1736bc;_0xf73dbe[_0x2dcdda(0x243)](_0x5ea7e2,{'radius':_0x48b11f[_0x2dcdda(0x279)],'fill':_0x48b11f['cxnPointFill'],'stroke':_0x48b11f[_0x2dcdda(0xcb)],'strokeWidth':_0x48b11f['cxnPointStrokeWidth'],'evented':!0x0});}};let oa=class extends _0x3f60c8{constructor(_0x5ec191,_0xf7ce46,_0x508ba4,_0xe173eb,_0x395014,_0x3e447a,_0x366308,_0x5550d4){const _0x58f3da=_0x1736bc;super(),this[_0x58f3da(0x1ec)]=_0x5ec191,this[_0x58f3da(0x287)]=_0xf7ce46,this[_0x58f3da(0x234)]=_0x508ba4,this['_drawingManagerService']=_0xe173eb,this['_univerInstanceService']=_0x395014,this[_0x58f3da(0x337)]=_0x3e447a,this[_0x58f3da(0x2be)]=_0x366308,this['_sheetBasicShapeConnectionPointController']=_0x5550d4,q(this,_0x58f3da(0xc7),void 0x0),q(this,_0x58f3da(0x2b4),void 0x0),q(this,_0x58f3da(0x16e),void 0x0),q(this,_0x58f3da(0xed),[]),q(this,_0x58f3da(0x165),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x58f3da(0x266),void 0x0),q(this,_0x58f3da(0x1bc),!0x1),q(this,'_isDrawingShapePointDown',!0x1),q(this,_0x58f3da(0x1ff),!0x1),q(this,_0x58f3da(0x29a),void 0x0),q(this,'_cxtHandlerPointerUp',void 0x0),q(this,_0x58f3da(0x233),null),this[_0x58f3da(0x153)]();}[_0x1736bc(0x153)](){const _0x5d0988=_0x1736bc;this[_0x5d0988(0x2ee)](),this[_0x5d0988(0x23e)]();}[_0x1736bc(0x221)](){const _0x21c952=_0x1736bc;if(!this['_unitId']||!this['_subUnitId']||!this['_activeShapeId'])return;let _0x2d4d8f={'unitId':this[_0x21c952(0x2b4)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x21c952(0xc7)]},{transform:_0x580286}=this[_0x21c952(0x1c4)][_0x21c952(0x2cd)](_0x2d4d8f);if(_0x580286)return{'left':_0x580286[_0x21c952(0x306)]||0x0,'top':_0x580286[_0x21c952(0x21c)]||0x0,'width':_0x580286[_0x21c952(0x121)]||0x0,'height':_0x580286[_0x21c952(0x188)]||0x0,'flipX':_0x580286['flipX']||!0x1,'flipY':_0x580286[_0x21c952(0x1b3)]||!0x1,'angle':_0x580286[_0x21c952(0x13b)]};}['_addShapeConnectorHandlerObjects'](){const _0x124d8c=_0x1736bc;if(this['_unitId']===void 0x0||this[_0x124d8c(0x16e)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x5f1ca4=this[_0x124d8c(0x234)][_0x124d8c(0x250)](this['_unitId']);if(!_0x5f1ca4||!_0x5f1ca4[_0x124d8c(0xb1)](_0x361e49)[_0x124d8c(0xfb)]())return;let {scene:_0x296945}=_0x5f1ca4,_0x5b9d1a=this['_getDrawingRect']();if(!_0x5b9d1a)return;let _0x33da98=this[_0x124d8c(0x337)]['getShapeModel'](this[_0x124d8c(0x2b4)],this['_subUnitId'],this[_0x124d8c(0xc7)]);if(!_0x33da98||!_0x1e2b3c(_0x33da98[_0x124d8c(0x19a)]()))return;let _0x2ad9b2=_0x33da98[_0x124d8c(0x2cb)]();if(_0x2ad9b2[_0x124d8c(0x180)]<0x2)return;let _0x5edda9=new _0x29012a(_0x5b9d1a),_0x282f7c=_0x2ad9b2[0x0],_0x3146a4=_0x2ad9b2[_0x2ad9b2[_0x124d8c(0x180)]-0x1],_0x4cb465=_0x5edda9[_0x124d8c(0x178)](_0x282f7c),_0x39e299=_0x5edda9[_0x124d8c(0x178)](_0x3146a4);this[_0x124d8c(0x2d3)](_0x296945,{..._0x4cb465},!0x0),this[_0x124d8c(0x2d3)](_0x296945,{..._0x39e299},!0x1);}['_addShapeConnectorHandlerObject'](_0x2fa511,_0xcb941a,_0x56baae){const _0x6c0213=_0x1736bc;if(this['_activeShapeId']===void 0x0||this[_0x6c0213(0x2b4)]===void 0x0||this[_0x6c0213(0x16e)]===void 0x0)return;let _0x54bb3d=_0x6c0213(0x163)+this['_unitId']+'-'+this[_0x6c0213(0x16e)]+'-'+this['_activeShapeId']+'-'+(_0x56baae?_0x6c0213(0x152):_0x6c0213(0x241)),_0x4d904b=_0x2fa511[_0x6c0213(0x288)](_0x54bb3d);if(_0x4d904b){_0x4d904b['transformByState']({'left':_0xcb941a['x']-_0x48b11f['cxnPointRadius'],'top':_0xcb941a['y']-_0x48b11f[_0x6c0213(0x279)]});return;}let _0x28f1c2=new aa(_0x54bb3d,{'left':_0xcb941a['x']-_0x48b11f['cxnPointRadius'],'top':_0xcb941a['y']-_0x48b11f[_0x6c0213(0x279)],'shapeId':this[_0x6c0213(0xc7)],'unitId':this[_0x6c0213(0x2b4)],'subUnitId':this[_0x6c0213(0x16e)],'isStartConnectorPoint':_0x56baae,'width':_0x48b11f[_0x6c0213(0x279)]*0x2,'height':_0x48b11f[_0x6c0213(0x279)]*0x2,'zIndex':_0x21c410+0x1,'evented':!0x0});this['_connectorObjects'][_0x6c0213(0x159)](_0x28f1c2),this['_attachConnectorObjectEvent'](_0x28f1c2,_0x2fa511,_0x56baae),_0x2fa511['addObject'](_0x28f1c2,_0x21c410+0x1);}[_0x1736bc(0xf8)](_0xe6f281,_0x5a4c88){const _0x478589=_0x1736bc;var _0x5d3f2d;let _0x2110a5={'x':0x0,'y':0x0};if(!_0xe6f281||!_0x5a4c88)return _0x2110a5;let _0x3d4f53=this[_0x478589(0x234)]['getRenderUnitById'](_0xe6f281);if(!_0x3d4f53||!_0x3d4f53[_0x478589(0xb1)](_0x361e49)['getSkeleton'](_0x5a4c88))return _0x2110a5;let _0x5b6db4=_0x3d4f53['with'](_0x332edb),_0x5eb3ed=_0x5b6db4==null?void 0x0:_0x5b6db4[_0x478589(0x2e1)]();if(!_0x5eb3ed)return _0x2110a5;let _0x27c63a=(_0x5d3f2d=this[_0x478589(0x146)]['getUnit'](_0xe6f281))==null?void 0x0:_0x5d3f2d['getSheetBySheetId'](_0x5a4c88);if(!_0x27c63a)return _0x2110a5;let _0x49df99=_0x1144c3(_0x5eb3ed[_0x478589(0x1f5)],_0x5eb3ed[_0x478589(0x28d)],_0x3d4f53[_0x478589(0x1b2)],_0x27c63a);return _0x49df99?{'x':_0x49df99[_0x478589(0x171)],'y':_0x49df99[_0x478589(0xf0)]}:_0x2110a5;}[_0x1736bc(0x158)](_0x51a6dd,_0x1a2d51){const _0x4b5641=_0x1736bc;var _0x14e5e5;let _0x4de15f=(_0x14e5e5=this['_univerInstanceService'][_0x4b5641(0x21e)](_0x51a6dd))==null?void 0x0:_0x14e5e5[_0x4b5641(0x14a)](_0x1a2d51);return(_0x4de15f==null?void 0x0:_0x4de15f[_0x4b5641(0x133)]())??0x1;}[_0x1736bc(0x187)](_0x1f5e78,_0x491314,_0x333e4a,_0x1e6079,_0x37616e){const _0x1d4b50=_0x1736bc;this['_cxtHandlerPointerMove'][_0x1d4b50(0x214)](),this['_cxtHandlerPointerUp']['unsubscribe'](),this[_0x1d4b50(0x2be)][_0x1d4b50(0x194)]();let _0x3edbf0=this[_0x1d4b50(0x233)];this['_sheetBasicShapeConnectionPointController'][_0x1d4b50(0xc6)]();let _0x73d541=this[_0x1d4b50(0xf8)](this[_0x1d4b50(0x2b4)],this[_0x1d4b50(0x16e)]),_0x169441=this[_0x1d4b50(0x158)](this[_0x1d4b50(0x2b4)],this['_subUnitId']),_0x18b73c={'x':_0x333e4a[_0x1d4b50(0x26e)]/_0x169441+_0x73d541['x'],'y':_0x333e4a[_0x1d4b50(0x179)]/_0x169441+_0x73d541['y']},_0x14565e=_0x3edbf0?_0x3edbf0['worldPoint']:_0x18b73c,_0x419a8f=_0x1e6079?this[_0x1d4b50(0x266)][_0x1d4b50(0x32a)]():this[_0x1d4b50(0x266)][_0x1d4b50(0x276)](),_0x4bb2de=this[_0x1d4b50(0x266)][_0x1d4b50(0x19a)]();_0x419a8f?this[_0x1d4b50(0x1db)](_0x419a8f,_0x14565e,_0x1e6079,_0x3edbf0,_0x37616e):this[_0x1d4b50(0x28f)](_0x491314,_0x14565e,_0x1e6079,_0x3edbf0,_0x37616e,_0x4bb2de),this[_0x1d4b50(0x1bc)]=!0x1,this[_0x1d4b50(0x1ff)]=!0x1,this[_0x1d4b50(0x233)]=null,_0x1f5e78['enableObjectsEvent']();}[_0x1736bc(0x28f)](_0x426706,_0x1d97aa,_0x5856db,_0x2dca83,_0x4ecb90,_0x58ff14){const _0x1efe74=_0x1736bc;let _0x45af6a=_0x58ff14===_0x47ece1['Line']||_0x58ff14===_0x47ece1['StraightConnector1'],_0x3dcc47=_0x5856db?_0x1d97aa:_0x426706,_0x4c813d=_0x5856db?_0x426706:_0x1d97aa,_0x46fa00=this[_0x1efe74(0x266)][_0x1efe74(0x2cb)](),_0x203ed0=_0x2588b5(this[_0x1efe74(0x266)][_0x1efe74(0x19a)]()),_0x63307a=_0x29012a[_0x1efe74(0xf6)](_0x46fa00,_0x203ed0),_0x125e5a=_0x45af6a?_0x29012a[_0x1efe74(0x1b7)](_0x3dcc47,_0x4c813d):_0x29012a[_0x1efe74(0x210)](_0x426706,_0x1d97aa,_0x5856db,_0x63307a);_0x2dca83?this[_0x1efe74(0x271)](_0x125e5a,_0x2dca83,_0x5856db,_0x4ecb90):this[_0x1efe74(0x1b6)](_0x125e5a,_0x4ecb90);}[_0x1736bc(0x1db)](_0x46e781,_0x43e3a5,_0x5711e2,_0x390d66,_0xc25e64){const _0x31be34=_0x1736bc;let _0x5edf18=this[_0x31be34(0x227)](_0x46e781);if(!_0x5edf18)return;let _0xb925bf=_0x390d66?_0x390d66[_0x31be34(0x13b)]:this['_calculateFreeEndpointAngle'](_0x5edf18['point'],_0x43e3a5),_0x5c0204;if(_0x390d66){let _0x3e7a82=this['_drawingManagerService'][_0x31be34(0x2cd)]({'unitId':_0x390d66[_0x31be34(0x142)],'subUnitId':_0x390d66['subUnitId'],'drawingId':_0x390d66[_0x31be34(0xea)]});if(_0x3e7a82!=null&&_0x3e7a82['transform']){let {left:_0x2973f2=0x0,top:_0x46c2e2=0x0,width:_0x5b8a6a=0x0,height:_0x602256=0x0,angle:_0xa8df22}=_0x3e7a82[_0x31be34(0x1f0)];_0x5c0204=_0x48cf2f({'left':_0x2973f2,'top':_0x46c2e2,'width':_0x5b8a6a,'height':_0x602256},_0xa8df22||0x0);}else _0x5c0204={'left':_0x43e3a5['x'],'top':_0x43e3a5['y'],'width':0x0,'height':0x0};}else _0x5c0204={'left':_0x43e3a5['x'],'top':_0x43e3a5['y'],'width':0x0,'height':0x0};let _0x36a5a5={'point':_0x43e3a5,'angle':_0xb925bf,'bounds':_0x5c0204},_0x39ddae=_0x5711e2?_0x36a5a5:_0x5edf18,_0x548328=_0x5711e2?_0x5edf18:_0x36a5a5,_0x330203=this[_0x31be34(0x266)]['getShapeType'](),_0xc85ffb=_0x1f4629(_0x39ddae,_0x548328,_0x330203);this[_0x31be34(0x266)][_0x31be34(0xff)]();let _0x216685=_0x2ebb59(_0xc85ffb,_0x330203);_0x390d66?this[_0x31be34(0x28a)](_0x216685,_0x390d66,_0x46e781,_0x5711e2,_0xc25e64):this[_0x31be34(0x317)](_0x216685,_0x46e781,_0x5711e2,_0xc25e64);}['_executeConnectionCommand'](_0x149e61,_0x448b28,_0x5b34cb,_0x4384ab){const _0x1502ab=_0x1736bc;let _0x55b750=this[_0x1502ab(0x266)][_0x1502ab(0x1e3)]()[_0x1502ab(0x2f2)],_0x31975d={..._0x55b750},_0x52a93c={'shapeId':_0x448b28[_0x1502ab(0xea)],'cxnIndex':_0x448b28[_0x1502ab(0xc9)]};_0x5b34cb?_0x31975d['from']=_0x52a93c:_0x31975d['to']=_0x52a93c;let _0x419e61=this[_0x1502ab(0x266)]['getShapeType'](),_0x1d578c=_0x2ebb59(_0x149e61[_0x1502ab(0xdb)],_0x419e61),_0xb3c3d5={'unitId':this['_unitId'],'subUnitId':this[_0x1502ab(0x16e)],'connectorShapeId':this[_0x1502ab(0xc7)],'width':_0x149e61['worldRect'][_0x1502ab(0x121)],'height':_0x149e61[_0x1502ab(0x2d0)]['height'],'left':_0x149e61[_0x1502ab(0x2d0)][_0x1502ab(0x306)],'top':_0x149e61['worldRect']['top'],'flipX':_0x149e61[_0x1502ab(0x2d0)][_0x1502ab(0x330)]||!0x1,'flipY':_0x149e61[_0x1502ab(0x2d0)][_0x1502ab(0x1b3)]||!0x1,'newAdjustValues':_0x1d578c[_0x1502ab(0x2ce)],'oldAdjustValues':_0x4384ab,'oldRelation':_0x55b750,'newRelation':_0x31975d,'newLineType':_0x1d578c[_0x1502ab(0x348)],'oldLineType':_0x419e61};this['_commandService'][_0x1502ab(0x335)](_0x5d34a9['id'],_0xb3c3d5);}[_0x1736bc(0x1b6)](_0x45a901,_0x589619){const _0x2d29e4=_0x1736bc;let _0x1115f3=this[_0x2d29e4(0x266)][_0x2d29e4(0x19a)](),_0x316fbe=_0x2ebb59(_0x45a901[_0x2d29e4(0xdb)],_0x1115f3),_0xd1f546={'unitId':this['_unitId'],'subUnitId':this[_0x2d29e4(0x16e)],'shapeId':this[_0x2d29e4(0xc7)],'width':_0x45a901[_0x2d29e4(0x2d0)][_0x2d29e4(0x121)],'height':_0x45a901['worldRect'][_0x2d29e4(0x188)],'left':_0x45a901[_0x2d29e4(0x2d0)]['left'],'top':_0x45a901['worldRect'][_0x2d29e4(0x21c)],'flipX':_0x45a901['worldRect'][_0x2d29e4(0x330)]||!0x1,'flipY':_0x45a901[_0x2d29e4(0x2d0)]['flipY']||!0x1,'angle':_0x45a901[_0x2d29e4(0x2d0)][_0x2d29e4(0x13b)]||0x0,'newAdjustValues':_0x316fbe['adjustValues'],'oldAdjustValues':_0x589619,'newLineType':_0x316fbe[_0x2d29e4(0x348)],'oldLineType':_0x1115f3};this[_0x2d29e4(0x287)][_0x2d29e4(0x335)](_0x569468['id'],_0xd1f546);}['_executeConnectedRouteConnectionCommand'](_0x31e73d,_0x319c0d,_0x3bd0bc,_0x15bdfd,_0x3d7f02){const _0x36640d=_0x1736bc;let _0x5627d1=this[_0x36640d(0x266)][_0x36640d(0x1e3)]()['relation'],_0x1440f2={..._0x5627d1},_0x425060={'shapeId':_0x319c0d[_0x36640d(0xea)],'cxnIndex':_0x319c0d[_0x36640d(0xc9)]};_0x15bdfd?(_0x1440f2[_0x36640d(0x2dc)]=_0x425060,_0x1440f2['to']=_0x3bd0bc):(_0x1440f2[_0x36640d(0x2dc)]=_0x3bd0bc,_0x1440f2['to']=_0x425060);let _0x77d174={'unitId':this[_0x36640d(0x2b4)],'subUnitId':this[_0x36640d(0x16e)],'connectorShapeId':this[_0x36640d(0xc7)],'width':_0x31e73d[_0x36640d(0x2d0)][_0x36640d(0x121)],'height':_0x31e73d[_0x36640d(0x2d0)][_0x36640d(0x188)],'left':_0x31e73d[_0x36640d(0x2d0)][_0x36640d(0x306)],'top':_0x31e73d[_0x36640d(0x2d0)][_0x36640d(0x21c)],'flipX':_0x31e73d[_0x36640d(0x2d0)][_0x36640d(0x330)]||!0x1,'flipY':_0x31e73d[_0x36640d(0x2d0)][_0x36640d(0x1b3)]||!0x1,'oldAdjustValues':_0x3d7f02,'newAdjustValues':_0x31e73d['adjustValues'],'newLineType':_0x31e73d[_0x36640d(0x348)],'rotation':_0x31e73d[_0x36640d(0xe1)],'oldRelation':_0x5627d1,'newRelation':_0x1440f2};this[_0x36640d(0x287)][_0x36640d(0x335)](_0x5d34a9['id'],_0x77d174);}[_0x1736bc(0x317)](_0x2111ba,_0x13b6f9,_0x58a814,_0x152ea7){const _0x137994=_0x1736bc;let _0x40d974=this[_0x137994(0x266)][_0x137994(0x1e3)]()[_0x137994(0x2f2)],_0x4b1fea={};_0x58a814?(_0x4b1fea['to']=_0x13b6f9,_0x4b1fea[_0x137994(0x2dc)]=void 0x0):(_0x4b1fea[_0x137994(0x2dc)]=_0x13b6f9,_0x4b1fea['to']=void 0x0);let _0x56c178={'unitId':this['_unitId'],'subUnitId':this[_0x137994(0x16e)],'connectorShapeId':this[_0x137994(0xc7)],'width':_0x2111ba[_0x137994(0x2d0)]['width'],'height':_0x2111ba['worldRect'][_0x137994(0x188)],'left':_0x2111ba[_0x137994(0x2d0)][_0x137994(0x306)],'top':_0x2111ba['worldRect'][_0x137994(0x21c)],'flipX':_0x2111ba['worldRect']['flipX']||!0x1,'flipY':_0x2111ba[_0x137994(0x2d0)][_0x137994(0x1b3)]||!0x1,'oldAdjustValues':_0x152ea7,'newAdjustValues':_0x2111ba[_0x137994(0x2ce)],'newLineType':_0x2111ba[_0x137994(0x348)],'rotation':_0x2111ba[_0x137994(0xe1)],'oldRelation':_0x40d974,'newRelation':_0x4b1fea};this[_0x137994(0x287)][_0x137994(0x335)](_0x5d34a9['id'],_0x56c178);}[_0x1736bc(0x15e)](_0x12a97a,_0x4f2725,_0x5c2a06){const _0x34866c=_0x1736bc;this['disposeWithMe'](_0x219635(_0x12a97a[_0x34866c(0x280)][_0x34866c(0xdf)]((_0x58c1c9,_0x1c271c)=>{const _0x2f7014=_0x34866c;let _0x952d97=_0x12a97a[_0x2f7014(0xb0)]();if(this[_0x2f7014(0x266)]=this[_0x2f7014(0x337)][_0x2f7014(0x1a7)](_0x952d97[_0x2f7014(0x142)],_0x952d97[_0x2f7014(0x320)],_0x952d97[_0x2f7014(0xd6)]),!this[_0x2f7014(0x266)])return;let _0x5729e8={};this[_0x2f7014(0x266)][_0x2f7014(0x173)]()['forEach'](_0x310955=>{let _0x3c4967=this['_activeShapeModel']['getAdjustValueByName'](_0x310955);_0x3c4967!==void 0x0&&(_0x5729e8[_0x310955]=_0x3c4967);});let _0x1dd3a7=this[_0x2f7014(0x221)]();if(!_0x1dd3a7)return;this[_0x2f7014(0x165)]={..._0x1dd3a7};let _0x150274=new _0x29012a(this[_0x2f7014(0x165)]),_0x202391=_0x308e11({'unitId':this[_0x2f7014(0x2b4)],'subUnitId':this[_0x2f7014(0x16e)],'drawingId':this['_activeShapeId']}),_0x2aa4f4=_0x4f2725[_0x2f7014(0x288)](_0x202391);this[_0x2f7014(0x1bc)]=!0x0,_0x4f2725['disableObjectsEvent'](),this['_sheetBasicShapeConnectionPointController']['startConnectionDetection'](_0x4f2725,this[_0x2f7014(0x2b4)],this[_0x2f7014(0x16e)],this['_activeShapeId']),this[_0x2f7014(0x233)]=null;let _0x498619=this[_0x2f7014(0x266)][_0x2f7014(0x2cb)](),_0x2635f9=_0x498619[0x0],_0x43d83c=_0x498619[_0x498619[_0x2f7014(0x180)]-0x1],_0x5a26af=_0x5c2a06?_0x150274[_0x2f7014(0x178)](_0x43d83c):_0x150274['localToWorld'](_0x2635f9);this[_0x2f7014(0x29a)]=_0x4f2725[_0x2f7014(0x285)][_0x2f7014(0xdf)]((_0x27a044,_0x785095)=>{const _0x7ed321=_0x2f7014;if(!this[_0x7ed321(0x1bc)]||!this['_activeShapeModel'])return;this[_0x7ed321(0x1ff)]||=(this['_sheetShapeAdjustController'][_0x7ed321(0xe6)](),this[_0x7ed321(0x266)][_0x7ed321(0xa0)](),!0x0);let _0x29aab7=this[_0x7ed321(0xf8)](this[_0x7ed321(0x2b4)],this[_0x7ed321(0x16e)]),_0x36c88f=this[_0x7ed321(0x158)](this[_0x7ed321(0x2b4)],this[_0x7ed321(0x16e)]),_0x27e6ff={'x':_0x27a044[_0x7ed321(0x26e)]/_0x36c88f+_0x29aab7['x'],'y':_0x27a044['offsetY']/_0x36c88f+_0x29aab7['y']},_0x55dfaf=this[_0x7ed321(0x161)][_0x7ed321(0x34f)](_0x27e6ff);if(_0x55dfaf){let {shapeId:_0x4f739b,unitId:_0x31d57d,subUnitId:_0x337e30}=_0x55dfaf;if(_0x4f739b&&_0x31d57d&&_0x337e30){let _0x9ff23=_0x308e11({'unitId':_0x31d57d,'subUnitId':_0x337e30,'drawingId':_0x4f739b});_0x55dfaf[_0x7ed321(0x13b)]=(_0x4f2725[_0x7ed321(0x288)](_0x9ff23)[_0x7ed321(0x13b)]||0x0)+_0x55dfaf['angle'];}}this[_0x7ed321(0x233)]=_0x55dfaf;let _0x2d68e4=_0x5c2a06?this[_0x7ed321(0x266)][_0x7ed321(0x32a)]():this['_activeShapeModel']['getStartConnectInfo']();if(_0x2d68e4){this[_0x7ed321(0x1d4)](_0x2d68e4,_0x27e6ff,_0x5c2a06,_0x2aa4f4,_0x12a97a);return;}this['_handleFreeEndpointMove'](_0x27e6ff,_0x5a26af,_0x5c2a06,_0x2aa4f4,_0x12a97a);}),this[_0x2f7014(0x1c5)]=_0x4f2725[_0x2f7014(0xe9)][_0x2f7014(0xdf)]((_0x1e1e3a,_0x4aa379)=>{const _0x502bbf=_0x2f7014;this[_0x502bbf(0x187)](_0x4f2725,_0x5a26af,_0x1e1e3a,_0x5c2a06,_0x5729e8);}),_0x1c271c['stopPropagation']();})));}[_0x1736bc(0xa9)](_0x239453,_0x223741,_0x1355d8){const _0x2c2482=_0x1736bc;let _0x8b84a7=this[_0x2c2482(0x337)][_0x2c2482(0x203)](_0x239453,_0x223741,_0x1355d8);if(!_0x8b84a7||_0x8b84a7[_0x2c2482(0x180)]===0x0)return;let _0x35272b=this[_0x2c2482(0x234)]['getRenderUnitById'](_0x239453);if(!_0x35272b)return;let {scene:_0x1bcd43}=_0x35272b;for(let _0x23545f of _0x8b84a7){let _0x35d800=_0x23545f[_0x2c2482(0x2e8)],_0x1af011=this[_0x2c2482(0x337)][_0x2c2482(0x1a7)](_0x239453,_0x223741,_0x35d800);if(!_0x1af011)continue;let _0x523493=_0x1af011['getStartConnectInfo'](),_0x1d7d27=_0x1af011['getEndConnectInfo'](),_0x46347f=(_0x523493==null?void 0x0:_0x523493[_0x2c2482(0xea)])===_0x1355d8,_0x593e57=_0x308e11({'unitId':_0x239453,'subUnitId':_0x223741,'drawingId':_0x35d800}),_0x3c9722=_0x1bcd43[_0x2c2482(0x288)](_0x593e57);if(!_0x3c9722)continue;let _0x307bca=this[_0x2c2482(0x1c4)][_0x2c2482(0x2cd)]({'unitId':_0x239453,'subUnitId':_0x223741,'drawingId':_0x35d800});_0x307bca!=null&&_0x307bca[_0x2c2482(0x1f0)]&&(_0x523493&&_0x1d7d27?this[_0x2c2482(0x176)](_0x239453,_0x223741,_0x35d800,_0x1af011,_0x523493,_0x1d7d27,_0x3c9722):this[_0x2c2482(0x166)](_0x239453,_0x223741,_0x35d800,_0x1af011,_0x46347f?_0x523493:_0x1d7d27,_0x46347f,_0x307bca,_0x3c9722));}}[_0x1736bc(0x176)](_0x290f9c,_0x9a7aff,_0x1ac9d9,_0x3a3f68,_0x5d0090,_0x49c06a,_0x56a2ad){const _0x19d82e=_0x1736bc;let _0x51cee0=this[_0x19d82e(0x2b4)],_0x3d724e=this[_0x19d82e(0x16e)];this['_unitId']=_0x290f9c,this[_0x19d82e(0x16e)]=_0x9a7aff;let _0x2e1b72=this[_0x19d82e(0x227)](_0x5d0090),_0x3d22e6=this[_0x19d82e(0x227)](_0x49c06a);if(this[_0x19d82e(0x2b4)]=_0x51cee0,this['_subUnitId']=_0x3d724e,!_0x2e1b72||!_0x3d22e6)return;let _0x4265fb=_0x3a3f68[_0x19d82e(0x19a)](),_0x39eedc=_0x1f4629(_0x2e1b72,_0x3d22e6,_0x4265fb);_0x39eedc&&_0x3a3f68[_0x19d82e(0x2f5)](_0x39eedc);let _0x4c1223=_0x2ebb59(_0x39eedc,_0x4265fb);_0x4c1223[_0x19d82e(0x348)]!==_0x4265fb&&_0x3a3f68[_0x19d82e(0x1b5)](_0x4c1223['lineType']),_0x3a3f68[_0x19d82e(0xa0)]();for(let [_0x3e5080,_0x23920c]of Object['entries'](_0x4c1223['adjustValues']))_0x3a3f68[_0x19d82e(0x2e4)](_0x3e5080,_0x23920c);_0x3a3f68[_0x19d82e(0x247)]({'width':_0x4c1223['worldRect'][_0x19d82e(0x121)],'height':_0x4c1223[_0x19d82e(0x2d0)]['height']}),_0x56a2ad['transformByState']({'flipX':_0x4c1223[_0x19d82e(0x2d0)][_0x19d82e(0x330)],'flipY':_0x4c1223[_0x19d82e(0x2d0)][_0x19d82e(0x1b3)],'left':_0x4c1223[_0x19d82e(0x2d0)][_0x19d82e(0x306)],'top':_0x4c1223[_0x19d82e(0x2d0)][_0x19d82e(0x21c)],'width':_0x4c1223[_0x19d82e(0x2d0)]['width'],'height':_0x4c1223[_0x19d82e(0x2d0)][_0x19d82e(0x188)],'angle':_0x4c1223[_0x19d82e(0xe1)]}),_0x3a3f68[_0x19d82e(0xff)]();}['_moveConnectorWithShape'](_0x23b71d,_0x175a47,_0x38b87d,_0x5112fd,_0x43deb,_0x245244,_0x2d889e,_0x49a1e7){const _0x1b39f3=_0x1736bc;let _0x51f9ff=this[_0x1b39f3(0x2b4)],_0x348cc7=this[_0x1b39f3(0x16e)];this[_0x1b39f3(0x2b4)]=_0x23b71d,this[_0x1b39f3(0x16e)]=_0x175a47;let _0x210f91=this[_0x1b39f3(0x227)](_0x43deb);if(this[_0x1b39f3(0x2b4)]=_0x51f9ff,this[_0x1b39f3(0x16e)]=_0x348cc7,!_0x210f91)return;let {left:_0x46a20b=0x0,top:_0x229a8f=0x0,width:_0x429627=0x0,height:_0x1e07fe=0x0,flipX:_0x35020d=!0x1,flipY:_0x359be5=!0x1}=_0x2d889e[_0x1b39f3(0x1f0)],_0xf8a30=_0x5112fd['getConnectorLinePoints']();if(_0xf8a30[_0x1b39f3(0x180)]<0x2)return;let _0x4090d1=new _0x29012a({'left':_0x46a20b,'top':_0x229a8f,'width':_0x429627,'height':_0x1e07fe,'flipX':_0x35020d,'flipY':_0x359be5}),_0x5d7d6d=_0x245244?_0xf8a30[_0xf8a30['length']-0x1]:_0xf8a30[0x0],_0x289cdb=_0x4090d1[_0x1b39f3(0x178)](_0x5d7d6d),_0x1c3b98=_0x29012a[_0x1b39f3(0x210)](_0x289cdb,_0x210f91[_0x1b39f3(0x169)],!_0x245244);_0x49a1e7[_0x1b39f3(0xc2)]({'flipX':_0x1c3b98['worldRect'][_0x1b39f3(0x330)],'flipY':_0x1c3b98['worldRect']['flipY'],'left':_0x1c3b98[_0x1b39f3(0x2d0)][_0x1b39f3(0x306)],'top':_0x1c3b98[_0x1b39f3(0x2d0)][_0x1b39f3(0x21c)],'width':_0x1c3b98[_0x1b39f3(0x2d0)][_0x1b39f3(0x121)],'height':_0x1c3b98[_0x1b39f3(0x2d0)][_0x1b39f3(0x188)],'angle':_0x1c3b98[_0x1b39f3(0x2d0)][_0x1b39f3(0x13b)]}),_0x49a1e7[_0x1b39f3(0xe7)](!0x0);}[_0x1736bc(0xbf)](){const _0x1c3bfa=_0x1736bc;this[_0x1c3bfa(0xed)][_0x1c3bfa(0x180)]!==0x0&&(this[_0x1c3bfa(0xed)]['forEach'](_0x3c65ca=>{_0x3c65ca['dispose']();}),this['_connectorObjects']=[]);}[_0x1736bc(0x23e)](){const _0x29b58e=_0x1736bc;let _0x4bd3a2=this[_0x29b58e(0x146)][_0x29b58e(0x2b3)](_0x1e715c[_0x29b58e(0x2f0)]);this[_0x29b58e(0x2d9)](_0x4bd3a2[_0x29b58e(0x33c)](_0x57ed4d(_0x2e372a=>_0x2e372a?_0x2e372a[_0x29b58e(0x116)][_0x29b58e(0x33c)](_0x57ed4d(_0x126b9d=>{const _0x4f8916=_0x29b58e;if(!_0x126b9d)return _0x220d4d;let _0x56ce5f=_0x2e372a['getUnitId'](),_0x4f0e57=this[_0x4f8916(0x234)][_0x4f8916(0x250)](_0x56ce5f),_0x266f63=_0x4f0e57==null?void 0x0:_0x4f0e57[_0x4f8916(0x1b2)];return _0x266f63?_0x129e12(_0x266f63):_0x220d4d;})):_0x220d4d))[_0x29b58e(0x222)](_0x5b5317=>{const _0x1a7fb5=_0x29b58e;let _0xa1a759=_0x5b5317[_0x1a7fb5(0x1de)]();this[_0x1a7fb5(0x2d9)](_0x5b5317[_0x1a7fb5(0x285)][_0x1a7fb5(0xdf)](_0x1396eb=>{const _0x4f9fa8=_0x1a7fb5;this[_0x4f9fa8(0x2d4)]&&this['_activeShapeId']&&this[_0x4f9fa8(0xbf)]();})),this[_0x1a7fb5(0x2d9)](_0xa1a759[_0x1a7fb5(0x1ae)][_0x1a7fb5(0x222)](_0x28365c=>{const _0x17570b=_0x1a7fb5;let {objects:_0x1e0518}=_0x28365c;this[_0x17570b(0xbf)](),_0x1e0518!==null&&_0x1e0518[_0x17570b(0xe5)]===0x1&&_0x1e0518[_0x17570b(0x2b9)]()['next']()[_0x17570b(0x2f4)]instanceof Dr&&(this[_0x17570b(0x2d4)]=!0x0);})),this['disposeWithMe'](_0xa1a759[_0x1a7fb5(0x2df)][_0x1a7fb5(0x222)](_0x2e64d8=>{const _0x14c980=_0x1a7fb5;this[_0x14c980(0x2d4)]&&this[_0x14c980(0xbf)]();})),this[_0x1a7fb5(0x2d9)](_0x5b5317[_0x1a7fb5(0xe9)]['subscribeEvent'](()=>{const _0x543848=_0x1a7fb5;this[_0x543848(0x2d4)]&&(this[_0x543848(0x2d4)]=!0x1,this['_addShapeConnectorHandlerObjects']());})),this[_0x1a7fb5(0x2d9)](_0xa1a759[_0x1a7fb5(0x125)][_0x1a7fb5(0x222)](()=>{const _0x123707=_0x1a7fb5;this[_0x123707(0x2b4)]&&this[_0x123707(0x16e)]&&this[_0x123707(0xc7)]&&this[_0x123707(0x1c4)][_0x123707(0x2cd)]({'unitId':this[_0x123707(0x2b4)],'subUnitId':this[_0x123707(0x16e)],'drawingId':this[_0x123707(0xc7)]})&&(this[_0x123707(0xbf)](),this[_0x123707(0x272)]());}));}));}[_0x1736bc(0x2ee)](){const _0x23f773=_0x1736bc;this[_0x23f773(0x2d9)](this[_0x23f773(0x1c4)][_0x23f773(0x29e)]['subscribe'](_0x5ed16c=>{const _0x2a7aca=_0x23f773;if(_0x5ed16c['length']===0x1){let _0x2b2ebd=_0x5ed16c[0x0];if(_0x2b2ebd[_0x2a7aca(0x1e9)]===_0xc7f81b[_0x2a7aca(0x33e)]){let _0x5b15d6=this[_0x2a7aca(0x337)][_0x2a7aca(0x1a7)](_0x2b2ebd[_0x2a7aca(0x142)],_0x2b2ebd[_0x2a7aca(0x320)],_0x2b2ebd['drawingId']);if(_0x5b15d6&&_0x1e2b3c(_0x5b15d6[_0x2a7aca(0x19a)]())){this[_0x2a7aca(0xc7)]=_0x2b2ebd[_0x2a7aca(0xd6)],this['_unitId']=_0x2b2ebd[_0x2a7aca(0x142)],this[_0x2a7aca(0x16e)]=_0x2b2ebd[_0x2a7aca(0x320)],this[_0x2a7aca(0xbf)](),this[_0x2a7aca(0x272)]();return;}}}this[_0x2a7aca(0xc7)]=void 0x0,this[_0x2a7aca(0x2b4)]=void 0x0,this[_0x2a7aca(0x16e)]=void 0x0,this[_0x2a7aca(0xbf)]();})),this['disposeWithMe'](this['_drawingManagerService'][_0x23f773(0xa4)][_0x23f773(0x222)](_0x375736=>{const _0x176902=_0x23f773;if(_0x375736['length']===0x1){var _0x46f471;let _0x11e63b=_0x375736[0x0],_0x12667b=(_0x46f471=this['_drawingManagerService']['getDrawingByParam'](_0x11e63b))==null?void 0x0:_0x46f471[_0x176902(0x1e9)];_0x12667b===_0xc7f81b[_0x176902(0x33e)]&&_0x11e63b[_0x176902(0xd6)]===this['_activeShapeId']?(this['_clearShapeConnectorHandlerObjects'](),this[_0x176902(0x272)]()):!this[_0x176902(0xc7)]&&_0x12667b===_0xc7f81b[_0x176902(0x33e)]&&this[_0x176902(0xa9)](_0x11e63b[_0x176902(0x142)],_0x11e63b[_0x176902(0x320)],_0x11e63b['drawingId']);}})),this[_0x23f773(0x2d9)](this['_drawingManagerService']['remove$'][_0x23f773(0x222)](_0x4a0b14=>{const _0x28d5eb=_0x23f773;for(let _0x1f387c of _0x4a0b14){let {drawingId:_0x22e5f2}=_0x1f387c;if(this['_activeShapeId']===_0x22e5f2){this[_0x28d5eb(0x253)]();return;}}}));}[_0x1736bc(0x1d4)](_0x387fbb,_0x53ead4,_0x138656,_0x41ae4f,_0x501013){const _0x357eda=_0x1736bc;var _0x203d88;if(!this[_0x357eda(0x266)])return;let _0x4e8bb0=this[_0x357eda(0x227)](_0x387fbb);if(!_0x4e8bb0)return;let _0x472bd4=this['_currentConnectionTarget']?this[_0x357eda(0x233)][_0x357eda(0x2d1)]:_0x53ead4,_0x19ff43=this[_0x357eda(0x233)]?this[_0x357eda(0x233)]['angle']:this[_0x357eda(0x343)](_0x4e8bb0[_0x357eda(0x169)],_0x472bd4),_0x547cc0;if(this['_currentConnectionTarget']){let _0x4fa679=this['_drawingManagerService'][_0x357eda(0x2cd)]({'unitId':this[_0x357eda(0x233)][_0x357eda(0x142)],'subUnitId':this[_0x357eda(0x233)][_0x357eda(0x320)],'drawingId':this[_0x357eda(0x233)]['shapeId']});if(_0x4fa679!=null&&_0x4fa679[_0x357eda(0x1f0)]){let {left:_0x22773e=0x0,top:_0x535192=0x0,width:_0x2b7df5=0x0,height:_0x17ecf5=0x0,angle:_0x3ac994}=_0x4fa679[_0x357eda(0x1f0)];_0x547cc0=_0x48cf2f({'left':_0x22773e,'top':_0x535192,'width':_0x2b7df5,'height':_0x17ecf5},_0x3ac994||0x0);}else _0x547cc0={'left':_0x472bd4['x'],'top':_0x472bd4['y'],'width':0x0,'height':0x0};}else _0x547cc0={'left':_0x472bd4['x'],'top':_0x472bd4['y'],'width':0x0,'height':0x0};let _0x5351d9={'point':_0x472bd4,'angle':_0x19ff43,'bounds':_0x547cc0},_0x32909a=_0x138656?_0x5351d9:_0x4e8bb0,_0x1ca7c5=_0x138656?_0x4e8bb0:_0x5351d9,_0x5b8983=this[_0x357eda(0x266)][_0x357eda(0x19a)](),_0x50e380=_0x1f4629(_0x32909a,_0x1ca7c5,_0x5b8983);_0x50e380&&this[_0x357eda(0x266)]['updateLinePoints'](_0x50e380);let _0x590622=_0x2ebb59(_0x50e380,_0x5b8983);_0x590622[_0x357eda(0x348)]!==_0x5b8983&&this[_0x357eda(0x266)][_0x357eda(0x1b5)](_0x590622[_0x357eda(0x348)]);for(let [_0x2e9936,_0x40b962]of Object['entries'](_0x590622[_0x357eda(0x2ce)]))this['_activeShapeModel']['setAdjustValueByName'](_0x2e9936,_0x40b962);this[_0x357eda(0x266)][_0x357eda(0x247)]({'width':_0x590622['worldRect'][_0x357eda(0x121)],'height':_0x590622[_0x357eda(0x2d0)][_0x357eda(0x188)]}),_0x41ae4f[_0x357eda(0xc2)]({'flipX':_0x590622[_0x357eda(0x2d0)][_0x357eda(0x330)],'flipY':_0x590622['worldRect'][_0x357eda(0x1b3)],'left':_0x590622[_0x357eda(0x2d0)][_0x357eda(0x306)],'top':_0x590622['worldRect'][_0x357eda(0x21c)],'width':_0x590622[_0x357eda(0x2d0)][_0x357eda(0x121)],'height':_0x590622[_0x357eda(0x2d0)][_0x357eda(0x188)],'angle':_0x590622['rotation']}),_0x41ae4f[_0x357eda(0xe7)](!0x0);let _0x3479df=((_0x203d88=this[_0x357eda(0x233)])==null?void 0x0:_0x203d88['worldPoint'])??_0x53ead4;_0x501013['transformByState']({'left':_0x3479df['x']-_0x48b11f['cxnPointRadius'],'top':_0x3479df['y']-_0x48b11f[_0x357eda(0x279)]});}[_0x1736bc(0xf3)](_0x513a54,_0x531247,_0x3365dd,_0x4efa0a,_0x2b855f){const _0x2b8294=_0x1736bc;var _0x203045,_0x3c3131;let _0x87392e=((_0x203045=this[_0x2b8294(0x233)])==null?void 0x0:_0x203045['worldPoint'])??_0x513a54,_0xb0d683=_0x29012a['computeConnectorResizeLayout'](_0x531247,_0x87392e,_0x3365dd);_0x4efa0a[_0x2b8294(0xc2)]({'flipX':_0xb0d683[_0x2b8294(0x2d0)][_0x2b8294(0x330)],'flipY':_0xb0d683['worldRect'][_0x2b8294(0x1b3)],'left':_0xb0d683['worldRect'][_0x2b8294(0x306)],'top':_0xb0d683[_0x2b8294(0x2d0)][_0x2b8294(0x21c)],'width':_0xb0d683[_0x2b8294(0x2d0)][_0x2b8294(0x121)],'height':_0xb0d683[_0x2b8294(0x2d0)][_0x2b8294(0x188)],'angle':_0xb0d683[_0x2b8294(0x2d0)][_0x2b8294(0x13b)]});let _0x5cf0ef=((_0x3c3131=this[_0x2b8294(0x233)])==null?void 0x0:_0x3c3131[_0x2b8294(0x2d1)])??_0x513a54;_0x2b855f[_0x2b8294(0xc2)]({'left':_0x5cf0ef['x']-_0x48b11f[_0x2b8294(0x279)],'top':_0x5cf0ef['y']-_0x48b11f['cxnPointRadius']});}[_0x1736bc(0x227)](_0x5b2d8b){const _0x15f8a3=_0x1736bc;if(!this[_0x15f8a3(0x2b4)]||!this['_subUnitId'])return null;let {shapeId:_0x37a1e8,cxnIndex:_0x4935a1}=_0x5b2d8b,_0x20d1a1=this[_0x15f8a3(0x337)][_0x15f8a3(0x1a7)](this[_0x15f8a3(0x2b4)],this[_0x15f8a3(0x16e)],_0x37a1e8);if(!_0x20d1a1)return null;let _0x28b0fa=this['_drawingManagerService'][_0x15f8a3(0x2cd)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0x37a1e8});if(!(_0x28b0fa!=null&&_0x28b0fa['transform']))return null;let {left:_0x36e0ec=0x0,top:_0xe72127=0x0,width:_0x1538ec=0x0,height:_0x25295e=0x0,flipX:_0x2d61be=!0x1,flipY:_0x12d993=!0x1,angle:_0x2a1f62}=_0x28b0fa[_0x15f8a3(0x1f0)];_0x20d1a1['updateContext']({'width':_0x1538ec,'height':_0x25295e});let _0x2c4a46=_0x20d1a1['getConnectionSiteList']()[_0x15f8a3(0x199)](_0x371e54=>_0x371e54[_0x15f8a3(0x1b4)]===_0x4935a1);if(!_0x2c4a46)return null;let _0xe68826=_0x2d61be?_0x1538ec-_0x2c4a46['x']:_0x2c4a46['x'],_0x40fa7f=_0x12d993?_0x25295e-_0x2c4a46['y']:_0x2c4a46['y'];if(_0x2a1f62!==0x0&&_0x2a1f62!=null){let _0x206238=_0x2a1f62*Math['PI']/0xb4,_0x217a46=Math[_0x15f8a3(0x213)](_0x206238),_0x46742b=Math[_0x15f8a3(0x2ab)](_0x206238),_0x1e7df7=_0x1538ec/0x2,_0x46702e=_0x25295e/0x2,_0x237235=_0xe68826-_0x1e7df7,_0x2d1fbe=_0x40fa7f-_0x46702e;_0xe68826=_0x1e7df7+_0x237235*_0x217a46-_0x2d1fbe*_0x46742b,_0x40fa7f=_0x46702e+_0x237235*_0x46742b+_0x2d1fbe*_0x217a46;}_0xe68826+=_0x36e0ec,_0x40fa7f+=_0xe72127;let _0x218f75=_0x2c4a46['ang']/0xea60;_0x2d61be&&(_0x218f75=0xb4-_0x218f75),_0x12d993&&(_0x218f75=-_0x218f75),_0x218f75+=_0x2a1f62||0x0,_0x218f75=(_0x218f75%0x168+0x168)%0x168;let _0x2408aa=_0x48cf2f({'left':_0x36e0ec,'top':_0xe72127,'width':_0x1538ec,'height':_0x25295e},_0x2a1f62||0x0);return{'point':{'x':_0xe68826,'y':_0x40fa7f},'angle':_0x218f75,'bounds':_0x2408aa};}['_calculateFreeEndpointAngle'](_0xddd4ca,_0x54a701){const _0x10a63a=_0x1736bc;let _0x54c9dc=_0x54a701['x']-_0xddd4ca['x'],_0xabfb28=_0x54a701['y']-_0xddd4ca['y'];return Math['abs'](_0x54c9dc)>=Math[_0x10a63a(0xce)](_0xabfb28)?_0x54c9dc>=0x0?0xb4:0x0:_0xabfb28>=0x0?0x10e:0x5a;}[_0x1736bc(0x253)](){const _0x155253=_0x1736bc;this[_0x155253(0xc7)]=void 0x0,this[_0x155253(0x2b4)]=void 0x0,this[_0x155253(0x16e)]=void 0x0,this[_0x155253(0xbf)]();}[_0x1736bc(0x137)](){const _0xed144c=_0x1736bc;this[_0xed144c(0xbf)](),super[_0xed144c(0x137)]();}};oa=Y([J(0x1,_0x376420),J(0x2,_0x41745c),J(0x3,_0x4cc7db),J(0x4,_0xfd8e0),J(0x5,_0x5b826f(_0xa0be75)),J(0x6,_0x5b826f(Z)),J(0x7,_0x5b826f(ra))],oa);let sa=class extends _0x3f60c8{constructor(_0xd9d072,_0x13197a,_0x8e9dc7){const _0x10d343=_0x1736bc;super(),this[_0x10d343(0x9c)]=_0xd9d072,this[_0x10d343(0x1c4)]=_0x13197a,this[_0x10d343(0x126)]=_0x8e9dc7,this['_initPrinting']();}[_0x1736bc(0x32b)](){const _0x37301b=_0x1736bc;this[_0x37301b(0x2d9)](this[_0x37301b(0x9c)]['interceptor'][_0x37301b(0x255)](this[_0x37301b(0x9c)][_0x37301b(0x2f8)]['getInterceptPoints']()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x1a675f,_0x2dbdbc,_0x272ad7)=>{const _0x29642b=_0x37301b;var _0x57b272;let {unitId:_0xfd760e,subUnitId:_0x2f2f07,scene:_0x59e1d0,resourceCollector:_0x5511a9}=_0x2dbdbc,_0x5f2518=(_0x57b272=this[_0x29642b(0x1c4)]['getDrawingDataForUnit'](_0xfd760e))==null?void 0x0:_0x57b272[_0x2f2f07];return _0x5f2518==null||_0x5f2518['order'][_0x29642b(0x1df)](_0x112e5b=>{const _0x4db48d=_0x29642b;let _0x331d0b=_0x5f2518['data'][_0x112e5b];_0x331d0b[_0x4db48d(0x1e9)]===_0xc7f81b[_0x4db48d(0x33e)]&&!_0x331d0b[_0x4db48d(0x1c0)]&&this['_shapeRenderController'][_0x4db48d(0x18e)](_0x331d0b,_0x59e1d0,{'resourceCollector':_0x5511a9});}),_0x272ad7(_0x1a675f);}}));}};sa=Y([J(0x0,_0x5b826f(_0x4835fa)),J(0x1,_0x4cc7db),J(0x2,_0x5b826f(X))],sa);let ca=class extends _0x3f60c8{constructor(_0x79ced1,_0x57ceb2,_0x91fe5){const _0x54d3b7=_0x1736bc;super(),this[_0x54d3b7(0x287)]=_0x79ced1,this['_localeService']=_0x57ceb2,this['_sheetPermissionCheckController']=_0x91fe5,this['_initPermission']();}[_0x1736bc(0x30c)](){const _0x52fce2=_0x1736bc;this['disposeWithMe'](this[_0x52fce2(0x287)][_0x52fce2(0x13f)](_0x9227f9=>{const _0x4eba75=_0x52fce2;let _0x57b06a,_0x25400e;if(_0x9227f9['id']===_0x1eec17['id']||_0x9227f9['id']===_0x4371cc['id']||_0x9227f9['id']===_0x5d34a9['id']){let _0x59d563=_0x9227f9[_0x4eba75(0x228)];_0x57b06a=_0x59d563['unitId'],_0x25400e=_0x59d563[_0x4eba75(0x320)];}!_0x57b06a||!_0x25400e||this['_sheetPermissionCheckController'][_0x4eba75(0x1fb)]({'workbookTypes':[_0x304e82],'worksheetTypes':[_0x8f9fb]},_0x57b06a,_0x25400e)||this[_0x4eba75(0x325)][_0x4eba75(0x1ee)](this[_0x4eba75(0x13e)]['t'](_0x4eba75(0x248)));}));}};ca=Y([J(0x0,_0x5b826f(_0x376420)),J(0x1,_0x5b826f(_0x3cb7ae)),J(0x2,_0x5b826f(_0x1a8251))],ca);function _0x480f(){const _0x291ce6=['srcRect','getBatchUpdateOp','end','_index','drawWith','packageName','getDrawingData','Line','updateContext','sheets-shape-ui.permission.editErr','_activeTargetShapeId','function','_baseLeft','beginPath','_registerMoveHandler','sheets-shape-ui.config','setShouldShowAdjust','getRenderUnitById','clearControl$','sheet.command.menu-insert-shape','_reset','getInverseCoord','intercept','cancelEditing','URL','_contextService','translate','getRealBound','onSteady','multiply','_sidebarDisposable','getImageSourceCache','TopmostIcon','shapeKey','_clearControls','_drawRichTextLayer','canvasElement','_sheetDrawingShapeRenderController','_activeAdjustPointList','_activeShapeModel','addImageSourceCache','sheets-shape-ui.objectListPanel.open','sheets-shape-format-font-family-menu','registerClipDelegate','_adjHandlerPointerMove','sheet.shape.text.float-menu','_formulaKey','offsetX','setCanUseShapeClip','createControl$','_executeConnectionCommand','_addShapeConnectorHandlerObjects','_draw','_transformCalculateSrcRect','_activeShapeInfo','getStartConnectInfo','objects','636381DIAVcr','cxnPointRadius','interceptCommand','getDrawingPoints','sheet.menu.shape.flip-horizontal','setEditing','_injector','shape-editor-ui.toolbar.quickStyles','onPointerDown$','_shapeId','draw','getActiveSheet','clear','onPointerMove$','_closeShapeEditPanel','_commandService','getObjectIncludeInGroup','buildClipPath','_executeConnectedRouteConnectionCommand','sheets-shape-ui.ribbon.shape-format.arrange-front','version','sheetViewStartColumn','_isOpenedShapeEditPanel','_handleFreeEndpointPointerUp','UUID','_completionFrame','onRendered','getBatchAddOp','sheet.operation.open-mobile-shape-editor','SHEET','_renderWithCache','contentVerticalOffset','CUT','getAdjustInfoByName','_cxtHandlerPointerMove','setShapeProps','isRenderLinePointsMode','add','focus$','DRAWING_IMAGE','composeMatrix','40QniEfN','panel','GROUP','asObservable','PaintIcon','getUnitId','map','_drawSimpleText','next','getDrawingOrder','sin','_isShouldShowDrawingShapeAdjust','getSkeleton','targetShapeId','sheets-shape-ui.flipHorizontal','color','error','FOOTER','getCurrentTypeOfUnit$','_unitId','_showConnectionSites','setCollapsedIds','_updateSrcRectByTransform','extensionGroups','values','fontSize','adjHandleStroke','ang','_drawRichText','_sheetShapeAdjustController','wrapStrategy','clipTop','type','REMOVE','refreshTransform','_initSheetChange','initShapePopupMenu','getShapeTypeById','getShapeTextRect','sheet.image-clip.shape-picker.component','image-clip-adjust-point-','_sheetCanvasPopManagerService','getConnectorLinePoints','sheet.shape.object-list.panel','getDrawingByParam','adjustValues','getSelectedObjectMap','worldRect','worldPoint','UNIVER_DOC','_addShapeConnectorHandlerObject','_isDrawingShapePointDown','_shapeFormulaService','backward','sheet.operation.apply-shape-quick-style','adjName','disposeWithMe','_popupMenuListener','Image','from','fill','getDrawingEditable','changing$','_copyInfo','getCurrentScrollState','strokeWidth','sheets-shape-ui.shape-format.style-ribbon-control','setAdjustValueByName','_getSceneAndTransformerByDrawingSearch','_getShapeAdjustPointListById','preValue','lineShapeId','sqrt','addClipboardHook','9447xYjpPM','src','getOwnPropertyDescriptor','_registerDrawingFocusChangeHandler','activeAnObject','UNIVER_SHEET','refreshShapeFillImage','relation','getConnectionSiteList','value','updateLinePoints','getImage','_configService','interceptor','_shapeEditPanelVersion','_hide','getMatrix','_getShapeInfo','_baseShapeLeft','isRender','_baseShapeTop','startConnectionDetection','classType','getPermissionPoint','_sidebarService','restore','fillImageSource','left','PictureFill','save','getEditing','getState','getCurrentUnitOfType','_initPermission','disableObjectsEvent','_drawingAddListener','_permissionService','reverse','extraProps','sheets-shape-ui.objectListPanel.title','LEFT','viewBound','_sheetInterceptorService','constructor','_executeConnectedRouteResizeCommand','_isStartConnectorPoint','_clearPopups','custom','setShapeData','default','_openShapeEditPanel','onSavingEditorData$','parse','subUnitId','sheets-shape-ui.shape-format.text-ribbon-control','remove$','set','_init','_sheetPermissionCheckController','skeleton','iterator','FromArray','toPrimitive','getEndConnectInfo','_initPrinting','_activeImageId','FlipHorizontalIcon','call','getParent','flipX','VIEW_MAIN_LEFT_TOP','getCanvasElement','attachPopupToObject','isRichText','executeCommand','visible','_sheetsShapeService','_drawShapeText','updateShapeFillImage','fontFamily','sheets-shape-ui.ribbon.shape-format.arrange-forward','pipe','_menuManagerService','DRAWING_SHAPE','onload','div','clipHeight','ObjectLayersIcon','_calculateFreeEndpointAngle','resize','getFocusDrawings','idMap','transformForAngle','lineType','_initCopyPaste','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','setContextValue','vertical-center','sheet.shape.edit.panel','RIBBON','updateConnectionDetection','clone','_updateTransform','_ribbonService','_sheetPrintInterceptorService','onCommandExecuted','sheet.menu.shape.flip-vertical','hideContextualTab','clearAdjustValue','registerComponent','sheet.shape.picker.component','_groupCopyPasteController','update$','_draggingConnectorId','onerror','sheets-shape-text-','entries','_handleBasicShapeUpdateConnectorLineShape','COMMAND','sheets-shape-ui.formatShape','startX','actualHeight','currentAdjustValues','ShapeIcon','getDrawingSearch','with','getVisible','image','clip','_highlightedSiteIndex','enableObjectsEvent','563224UpwhNz','shape-editor-ui.arrange.front','pick','contentHeight','#FFFFFF','SolidLine','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','_baseWidth','_clearShapeConnectorHandlerObjects','sheets-shape-ui.deleteShape','refreshFormulaPresentation','transformByState','_visible','_lastEditingShapeKey','_shapeTextEditingService','endConnectionDetection','_activeShapeId','permissionPointUpdate$','cxnIndex','_getOrCreateShapeModel','cxnPointStroke','delete','shape-adjust-point-','abs','univer-box-border\x20univer-px-4\x20univer-text-sm','clipByShape','setOnSavingEditorData','shapeType','fromChangeset','marginTop','_baseShapeHeight','drawingId','Arrow','syncExecuteCommand','_targetShapeId','_disposePopups','worldPoints','symbol','_adjHandlerPointerUp','_initMenu','subscribeEvent','getSkeletonParam','rotation','formulaPresentation','_registerIcons','presentation','size','clearAdjustControls','makeDirty','onDblclick$','onPointerUp$','shapeId','shape-editor-ui.arrange.forward','setFillImage','_connectorObjects','forward','_iconManager','viewportScrollY','copyId','registerFeaturePasteHook','_handleFreeEndpointMove','_initEvents','_isImagePointerDown','getBentTypeFromPoints','None','_getScrollInfo','editingParams$','getDrawingEffectBounds','getCurrentSkeleton','_activeAdjustInfo','sheets-shape-ui.editShape','defineProperty','removeLinePoints','close','_commandExecutedListener','isInGroup','_shapeFloatingToolbarService','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','getTransformer','get','flatMap','adjHandleSize','create','Rect','sheet.operation.open-shape-object-list-panel','doc','_findNearestConnectionSite','_editingParams$','registerFeatureMenu','shape-text-','shape-editor-ui.arrange.backward','text','sheets-shape-ui.editText','_updateImageAdjValues','startY','activeSheet$','fillImageSourceType','25BHCipO','resetCursor','@univerjs-pro/sheets-shape-ui','_loadShapePictureFill','_initCommands','prstGeom','prstGeomAdjValues','_insertShapes','ancestorTransform','width','sectionCanvas','pluginName','_updateAdjustControlPositions','changeEnd$','_shapeRenderController','setHighlighted','parent','isHitLine','_isStartAdjusting','trim','has','sheets-shape-ui.flipVertical','_registerFeatureMenu','VIEW_MAIN','getAutoFitPresentations','oKey','ShapeFormatSettingIcon','getZoomRatio','_registerImageShapeClipDelegate','setSrcRect','getConnectionInfo','dispose','open','isLineShape','OPERATION','angle','INSERT','disableShapeOption','_localeService','beforeCommandExecuted','run','_insertingShapeKeys','unitId','MoveUpIcon','_shapes','_update','_univerInstanceService','setConfig','focusDrawing','invert','getSheetBySheetId','1.0.0-rc.0','some','SHAPE','actions','12054RsQdBL','OTHERS','sheets-shape-ui.shape-format.quick-style-gallery','start','_initialize','isArray','_uiPartsService','_sheetSkeletonService','MoveDownIcon','_getZoomRatio','push','_config','SHEET_SHAPE_UI_PLUGIN','_getImagePrstGeom','_urlImageService','_attachConnectorObjectEvent','_canEdit','resourceCollector','_sheetBasicShapeConnectionPointController','getPresentation','connector-handler-','_activeShapeAdjustPointList','_baseDrawingRect','_moveConnectorWithShape','_registerFocusChangeHandler','VIEW_MAIN_TOP','point','_loadAndSetImage','localeService','highlighted','undo','_subUnitId','_transform','BUTTON','viewportScrollX','_addControl','getAdjustNames','BottomIcon','front','_rerouteConnectorLine','_onSavingEditorData$','localToWorld','offsetY','TOP','title','_setTransForm','shape-editor-ui.arrange.back','getSheetId','isolated','length','_createControls','redo','168567KZPbqi','mergeMenu','popup','11910uJAkQx','_handleConnectorPointerUp','height','_shapePopupMenuDisposable','sheetTransform','_generatePasteMutations','_currentUniverService','dataModel','renderDrawingShape','_formulaAnimation','_applyFormulaAutoFitSize','canvas','object','_createCopyInfoByRange','refreshAdjustControls','getAdjustValueByName','_cxnIndex','_sheetClipboardService','decorate','find','getShapeType','stroke','isDrawingObject','indexOf','description','registerCommand','getBatchRemoveOp','_clearCompletionFrame','_baseTop','debounceRefreshControls','stringify','_resetState','24YfazAF','getShapeModel','getScene','VIEW_MAIN_LEFT','SolidFill','CROSSHAIR','onStarting','getShapeTextData','changeStart$','registerRenderModule','animationEnabled','filter','scene','flipY','index','changeShapeType','_executeResizeCommand','computeStraightConnectorLayout','_disposed','_findShapeAtPoint','_initSelection','attachTransformerTo','_isConnecting','shapeText','_addShapeAdjustControl','_registerOperations','hidden','sheet.shape.floating-toolbar','isMainScene','_connectionSiteObjects','_drawingManagerService','_cxtHandlerPointerUp','_clearShapeAdjustControls','applyPoint','_generateCopyPasteMutations','SHAPE_TEXT','complete','presetId','updateDocumentDataMargin','_getShapeAdjustInfosById','shapeData','axisAlignSheetTransform','string','_sheetDrawingService','_componentManager','getUnitType','_handleConnectedEndpointMove','data','isStartConnectorPoint','_updateShapeAdjustControls','sheets-shape-ui.quickStyles','setFallbackVisible','sheets-shape-ui.shape-format.formula-ribbon-control','_handleConnectedEndpointPointerUp','FlipVerticalIcon','shape-editor-ui.toolbar.changeShape','getTransformerByCreate','forEach','clip-','_generateCutPasteMutations','cxnPointFill','getShapeData','_shapeService','gradientEndColor','getDrawingVisible','_isHighlighted','_clipService','drawingType','getCurrentLastSelection','endArrow','_context','stopPropagation','blockExecuteWithoutPermission','Path','transform','sheets-shape-ui.imagePanel.crop.shape','featurePluginUpdateNotification','addObject','onTransformChange$','sheetViewStartRow','selectable','getObject','getDrawingOKey','_imageIoService','onReady','permissionCheckWithoutRange','_imageShapeClipController','_props','setCursor','_hasReset','isHit','getConnectionRelation','_baseShapeWidth','getBasicShapeRelation','_registerComponents','render','_attachAdjustEvent','UPDATE','sheets-shape-ui.ribbon.shape-format.formula-control','horizontal','bottom','back','clip-adj-','76pvWibb','calcAdjValues','isEditing','computeConnectorResizeLayout','_createShapeAdjustControls','_drawingRenderService','cos','unsubscribe','sheets-shape-ui.title','calculate','formulaBinding','getValue','reduce','setFormulaPresentation','305ELqmvg','top','register','getUnit','setPrstGeom','_registerGroupFeaturePasteHook','_getDrawingRect','subscribe','_formulaShapes','_baseHeight','unregister','animateFormulaPresentation','_getConnectPointInfo','params','_currentScene','_getImageDrawingInfo','fillType','completeEditing','setPresentation','_shapeUpdateListener','startArrow','SELECTOR','_focusedDrawings','isHighlighted','_currentConnectionTarget','_renderManagerService','shapeModel','includes','getShapeDataById','name','2411453rKUgjj','_clearConnectionSites','keys','SheetShapeTextEditorContainer','vertical','_registerDrawingMoveHandler'];_0x480f=function(){return _0x291ce6;};return _0x480f();}let la=class{constructor(_0x491bf9){const _0x21c690=_0x1736bc;this[_0x21c690(0x234)]=_0x491bf9;}[_0x1736bc(0x339)](_0x5bd3cf,_0x2cdba2){const _0xbdd462=_0x1736bc;let _0x2b7489=this[_0xbdd462(0x234)][_0xbdd462(0x250)](_0x5bd3cf[_0xbdd462(0x142)]),_0x586f1f=_0x2b7489==null?void 0x0:_0x2b7489[_0xbdd462(0x1b2)];if(!_0x586f1f)return;let _0x2e3b16=_0x308e11(_0x5bd3cf),_0x8fea16=_0x586f1f[_0xbdd462(0x288)](_0x2e3b16);_0x8fea16==null||_0x8fea16[_0xbdd462(0xec)](_0x2cdba2);}};la=Y([J(0x0,_0x41745c)],la);let ua=class extends _0x3d2a7b{constructor(_0x2a2811=Ui,_0x19a132,_0x23c381,_0xf6118c,_0x1d5537,_0x16c206){const _0x473e0a=_0x1736bc;super(),this['_config']=_0x2a2811,this['_injector']=_0x19a132,this[_0x473e0a(0x287)]=_0x23c381,this[_0x473e0a(0x2f7)]=_0xf6118c,this[_0x473e0a(0x234)]=_0x1d5537,this[_0x473e0a(0x155)]=_0x16c206;let {..._0x578140}=_0x22c628({},Ui,this['_config']);this[_0x473e0a(0x2f7)][_0x473e0a(0x147)](Hi,_0x578140),this[_0x473e0a(0x11c)]();}['onStarting'](){const _0x41ee91=_0x1736bc;this[_0x41ee91(0x27e)][_0x41ee91(0x29d)]([Gi]),this[_0x41ee91(0x27e)][_0x41ee91(0x106)](Gi),_0x5f5105(this['_injector'],[[Zi],[ea],[X],[sa],[la],[$],[$i],[Q],[ca]]);}[_0x1736bc(0x1fa)](){const _0x20b005=_0x1736bc;_0x5f5105(this[_0x20b005(0x27e)],[[ra],[Z],[ia]]),_0x52029a(this[_0x20b005(0x27e)],[[ia],[Z]]),[[ra],[Wi],[oa],[qi]][_0x20b005(0x1df)](_0x256c87=>{const _0x3547e5=_0x20b005;this[_0x3547e5(0x2d9)](this['_renderManagerService'][_0x3547e5(0x1af)](_0x1e715c[_0x3547e5(0x2f0)],_0x256c87));}),this[_0x20b005(0x2d9)](this['_uiPartsService'][_0x20b005(0xa1)](_0x2d61b7[_0x20b005(0x2b2)],()=>_0x6c1575(_0x59a3d1,this[_0x20b005(0x27e)])));}[_0x1736bc(0x292)](){const _0xf7edb7=_0x1736bc;_0x52029a(this[_0xf7edb7(0x27e)],[[Zi],[ea],[X],[sa],[la],[$],[$i],[Q],[ca]]);}[_0x1736bc(0x25b)](){const _0x50b948=_0x1736bc;this['_injector'][_0x50b948(0x106)](Zi)[_0x50b948(0x2c5)]();}[_0x1736bc(0x11c)](){const _0x488ef2=_0x1736bc;[Ar,br,kr,Vi][_0x488ef2(0x1df)](_0x2fadbb=>this[_0x488ef2(0x2d9)](this['_commandService'][_0x488ef2(0x19f)](_0x2fadbb)));}};q(ua,_0x1736bc(0x2c1),_0x1e715c[_0x1736bc(0x2f0)]),q(ua,_0x1736bc(0x123),_0x1736bc(0x15b)),q(ua,'packageName',zi),q(ua,_0x1736bc(0x28c),Bi),ua=Y([_0x9d7bfc(_0x19cbab,_0x4974d9,_0x45f01f,_0x463852,_0x4a60c5,_0x4ed767,_0x41e33f,_0x1d8e9c,_0x440dfd,_0x4a9bd9,_0x2f3bce,_0xb56b5c,_0x452efd),J(0x1,_0x5b826f(_0x3d8c1a)),J(0x2,_0x376420),J(0x3,_0x3a1263),J(0x4,_0x41745c),J(0x5,_0x1de38a)],ua);function da(_0x3f1f92){const _0x3f7da7=_0x1736bc;return _0x3f1f92[_0x3f7da7(0x12b)]()||void 0x0;}function fa(_0x228f4b,_0x5cc330,_0x5a6e01){const _0x8a9ffc=_0x1736bc;var _0xee2673;return((_0xee2673=_0x228f4b[_0x8a9ffc(0x238)])==null?void 0x0:_0xee2673[_0x8a9ffc(0x12b)]())||_0x1a1024(_0x5a6e01,_0xc0a46(_0x228f4b[_0x8a9ffc(0x1e9)]))+'\x20'+(_0x5cc330+0x1);}function pa(){const _0x187c60=_0x1736bc;var _0xb9efde;let _0x5fdf45=_0x52bd02(_0x3cb7ae),_0xf60aab=_0x52bd02(_0x376420),_0x4bfa43=_0x52bd02(_0xfd8e0),_0x3d46f4=_0x52bd02(_0x3dc5da),_0x4676e1=_0x52bd02(_0x4cc7db),_0x36ce8a=_0x52bd02(_0x41745c),[,_0xa80e39]=_0x26e736(_0x28dccf=>_0x28dccf+0x1,0x0),_0x553792=_0x4bfa43[_0x187c60(0x30b)](_0x1e715c[_0x187c60(0x2f0)]),_0x460ca3=(_0x553792==null?void 0x0:_0x553792['getUnitId']())??'',_0x3c1a44=(_0x553792==null||(_0xb9efde=_0x553792[_0x187c60(0x283)]())==null?void 0x0:_0xb9efde[_0x187c60(0x17e)]())??'',_0x481b34=_0x5ed75a(()=>_0x4676e1['focus$'],_0x4676e1['getFocusDrawings'](),!0x1,[_0x4676e1]);_0x3de63b(()=>{const _0xacb44b=_0x187c60;let _0x457020=_0xf60aab[_0xacb44b(0x9d)](()=>_0xa80e39());return()=>_0x457020['dispose']();},[_0xf60aab]);let _0x84ed33=_0x1da22e(()=>_0x3fec17(_0x5fdf45),[_0x5fdf45]),_0x407c2e=_0x460ca3&&_0x3c1a44?_0x3d46f4[_0x187c60(0x245)](_0x460ca3,_0x3c1a44):{},_0x1179bf=(_0x460ca3&&_0x3c1a44?_0x3d46f4[_0x187c60(0x2aa)](_0x460ca3,_0x3c1a44):[])[_0x187c60(0x2a7)](_0xea0c11=>_0x407c2e[_0xea0c11])[_0x187c60(0x1b1)](_0x5d5633=>!!_0x5d5633)[_0x187c60(0x310)](),_0x482970=_0x1179bf[_0x187c60(0x219)]((_0x150a39,_0x12c2f1)=>(_0x150a39[_0x4a01aa(_0x12c2f1[_0x187c60(0x1e9)])]+=0x1,_0x150a39),{'canvas':0x0,'floating':0x0}),_0x53696f={'canvas':0x0,'floating':0x0},_0xd440e7=_0x1179bf[_0x187c60(0x2a7)]((_0x37a8cd,_0x433d2d)=>{const _0x27ca65=_0x187c60;let _0x26271c=_0x4a01aa(_0x37a8cd[_0x27ca65(0x1e9)]),_0x47a042=_0x26271c===_0x21899f,_0x16d3eb=_0x53696f[_0x26271c]++;return{'id':_0x37a8cd[_0x27ca65(0xd6)],'name':fa(_0x37a8cd,_0x433d2d,_0x5fdf45),'description':_0x37a8cd[_0x27ca65(0x19e)],'visible':_0x37a8cd[_0x27ca65(0x1c0)]!==!0x0,'selectable':_0x37a8cd[_0x27ca65(0x1f6)]!==!0x1,'sectionId':_0x26271c,'sectionTitle':_0x47a042?_0x84ed33['sectionFloating']:_0x84ed33[_0x27ca65(0x122)],'capabilities':_0x47a042?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x47a042&&_0x16d3eb>0x0,'canMoveBackward':!_0x47a042&&_0x16d3eb<_0x482970[_0x27ca65(0x191)]-0x1,'canReorder':!_0x47a042};}),_0x5a05ae=_0x1da22e(()=>(_0x481b34??[])[_0x187c60(0x1b1)](_0x53254d=>_0x53254d[_0x187c60(0x142)]===_0x460ca3&&_0x53254d[_0x187c60(0x320)]===_0x3c1a44)[_0x187c60(0x2a7)](_0x5229d7=>_0x5229d7[_0x187c60(0xd6)]),[_0x481b34,_0x3c1a44,_0x460ca3]),_0x158e99=_0x5a05ae[_0x5a05ae[_0x187c60(0x180)]-0x1]??null,_0x381c0a=_0x2e7bbc=>_0x3d46f4[_0x187c60(0x2cd)]({'unitId':_0x460ca3,'subUnitId':_0x3c1a44,'drawingId':_0x2e7bbc})??null,_0x4dd545=async _0x5e140d=>{const _0x4869dc=_0x187c60;!_0x460ca3||!_0x5e140d[_0x4869dc(0x180)]||await _0xf60aab[_0x4869dc(0x335)](_0x426164['id'],{'unitId':_0x460ca3,'drawings':_0x5e140d});},_0x35921d=async(_0x5f0ed3,_0x45a02b)=>{_0x381c0a(_0x5f0ed3)&&await _0x4dd545([{'unitId':_0x460ca3,'subUnitId':_0x3c1a44,'drawingId':_0x5f0ed3,..._0x45a02b}]);},_0x4e580f=(_0x48c41b,_0x365b12)=>{const _0xc3c6b3=_0x187c60;if(!_0x460ca3||!_0x3c1a44)return;let _0x34f2bd=_0x365b12?_0x5a05ae[_0xc3c6b3(0x236)](_0x48c41b)?_0x5a05ae[_0xc3c6b3(0x1b1)](_0x51f8c1=>_0x51f8c1!==_0x48c41b):[..._0x5a05ae,_0x48c41b]:[_0x48c41b];_0xf60aab[_0xc3c6b3(0xd8)](_0x135719['id'],_0x34f2bd[_0xc3c6b3(0x2a7)](_0x54ebae=>({'unitId':_0x460ca3,'subUnitId':_0x3c1a44,'drawingId':_0x54ebae})));let _0xe15684=_0x34f2bd[_0x34f2bd[_0xc3c6b3(0x180)]-0x1];_0xe15684?_0x4d5ff3(_0x36ce8a,{'unitId':_0x460ca3,'subUnitId':_0x3c1a44,'drawingId':_0xe15684}):_0x889d2c(_0x36ce8a,_0x460ca3);},_0x530f8a=async(_0x19faed,_0x42692f)=>{const _0x135469=_0x187c60;await _0x4dd545(_0x19faed[_0x135469(0x2a7)](_0x429c12=>_0x381c0a(_0x429c12))[_0x135469(0x1b1)](_0x2b34f7=>!!_0x2b34f7)[_0x135469(0x1b1)](_0x394440=>_0x394440[_0x135469(0x1c0)]!==!0x0!==_0x42692f)[_0x135469(0x2a7)](_0x52e034=>({'unitId':_0x460ca3,'subUnitId':_0x3c1a44,'drawingId':_0x52e034['drawingId'],'hidden':!_0x42692f})));},_0x3bf2f1=async(_0x1c1dac,_0x5283eb)=>{const _0x562686=_0x187c60;await _0x4dd545(_0x1c1dac['map'](_0x594da2=>_0x381c0a(_0x594da2))['filter'](_0x3fe971=>!!_0x3fe971)[_0x562686(0x1b1)](_0x5c6d72=>_0x5c6d72[_0x562686(0x1f6)]!==!0x1!==_0x5283eb)[_0x562686(0x2a7)](_0x27df3a=>({'unitId':_0x460ca3,'subUnitId':_0x3c1a44,'drawingId':_0x27df3a[_0x562686(0xd6)],'selectable':_0x5283eb})));},_0x555eb2=_0x2b9352=>{let _0x12aa2b=_0x381c0a(_0x2b9352);if(_0x12aa2b)return _0x3bf2f1([_0x2b9352],_0x12aa2b['selectable']===!0x1);},_0x58017c=async(_0x5d2d60,_0xf61bb9)=>{const _0xb6e0da=_0x187c60;var _0x389554;let _0x4c3362=da(_0xf61bb9);(((_0x389554=_0x381c0a(_0x5d2d60))==null?void 0x0:_0x389554[_0xb6e0da(0x238)])??void 0x0)!==_0x4c3362&&await _0x35921d(_0x5d2d60,{'name':_0x4c3362});},_0x46526f=async(_0x407b8a,_0x34c943)=>{var _0x6e981;let _0x5f054f=da(_0x34c943);(((_0x6e981=_0x381c0a(_0x407b8a))==null?void 0x0:_0x6e981['description'])??void 0x0)!==_0x5f054f&&await _0x35921d(_0x407b8a,{'description':_0x5f054f});},_0x1fd022=async(_0x17ac1a,_0x3c427d)=>{const _0x34a000=_0x187c60;!_0x460ca3||!_0x3c1a44||await _0xf60aab[_0x34a000(0x335)](_0x37f828['id'],{'unitId':_0x460ca3,'subUnitId':_0x3c1a44,'drawingIds':[_0x17ac1a],'arrangeType':_0x3c427d});};return!_0x460ca3||!_0x3c1a44?_0x92a68d(_0x187c60(0x340),{'className':_0x187c60(0x34a),'children':_0x84ed33[_0x187c60(0x17b)]}):_0x92a68d(_0x20b7e3,{'items':_0xd440e7,'selectedIds':_0x5a05ae,'focusedId':_0x158e99,'labels':_0x84ed33,'showHeader':!0x1,'onSelect':_0x4e580f,'onSetVisible':_0x530f8a,'onSetSelectable':_0x3bf2f1,'onCommitName':_0x58017c,'onCommitDescription':_0x46526f,'onMoveForward':async _0x403f96=>_0x1fd022(_0x403f96,_0x2bb004[_0x187c60(0xee)]),'onMoveBackward':async _0x26b5e7=>_0x1fd022(_0x26b5e7,_0x2bb004[_0x187c60(0x2d6)]),'onToggleSelectable':_0x555eb2});}function ma(){const _0x2fb6f7=_0x1736bc;let _0x58fdc6=_0x52bd02(_0x4cc7db),_0x203614=_0x5ed75a(()=>_0x58fdc6['focus$'],_0x58fdc6['getFocusDrawings'](),!0x1,[_0x58fdc6]);return _0x203614[_0x2fb6f7(0x180)]===0x0?null:_0x92a68d(_0x2fb6f7(0x340),{'children':_0x40fb71(_0x2fb6f7(0x340),{'className':_0x2fb6f7(0xcf),'children':[_0x92a68d(_0x3c6967,{'drawings':_0x203614,'hasCropper':!0x1}),_0x92a68d(_0x52c122,{'drawings':_0x203614})]})});}function ha(_0x2dc651){let {unitId:_0x41cbe5,subUnitId:_0x345efe,shapeId:_0x28e4e3}=_0x2dc651,_0x5350c=_0x52bd02(_0x376420),_0x5d6930=_0x52bd02(la);return _0x92a68d(_0x336736,{..._0x2dc651,'positionEditor':_0x92a68d(ma,{}),'onUpdateShapeData':(_0x1b0d4c,_0x24260e)=>{xr(_0x5350c,_0x41cbe5,_0x345efe,_0x28e4e3,_0x1b0d4c,_0x24260e);},'onUpdateLineShapeData':(_0x3a2486,_0x531e1e)=>{Sr(_0x5350c,_0x41cbe5,_0x345efe,_0x28e4e3,_0x3a2486,_0x531e1e);},'onUpdateShapeFillImage':_0x14a535=>{_0x5d6930['updateShapeFillImage']({'unitId':_0x41cbe5,'subUnitId':_0x345efe,'drawingId':_0x28e4e3},_0x14a535);}});}function ga(_0x15e246){const _0x351518=_0x1736bc;let _0x4f8521=_0x52bd02(_0x33a812),_0x4f4c53=_0x5ed75a(()=>_0x4f8521['visible$'],_0x4f8521[_0x351518(0xb2)](),!0x1,[_0x4f8521]),_0x571e2e=_0x15e246['popup'][_0x351518(0x311)];return!_0x571e2e||!_0x4f4c53?null:_0x92a68d(_a,{..._0x571e2e,'canvasElement':_0x15e246[_0x351518(0x185)][_0x351518(0x263)]});}function _0x39b9(_0x15fb92,_0x2d5d13){_0x15fb92=_0x15fb92-0x9c;const _0x480f81=_0x480f();let _0x39b9fb=_0x480f81[_0x15fb92];return _0x39b9fb;}function _a(_0x1c9acb){const _0x10947b=_0x1736bc;let _0x497862=_0x52bd02(_0x376420),_0x3f2cab=_0x52bd02(_0xa0be75),{unitId:_0x51c09d,subUnitId:_0x4af79f,drawingId:_0x33b36e,drawingType:_0x4cb03e,shapeType:_0x347819}=_0x1c9acb,[_0x1f12d8,_0x392ccc]=_0x1c7960(_0x1c9acb[_0x10947b(0x1ce)]),_0x1adca9=_0x1da22e(()=>_0x2b7d82(_0x1f12d8),[_0x1f12d8]),_0x41a776=_0x1da22e(()=>_0x21c367(_0x1f12d8),[_0x1f12d8]);_0x3de63b(()=>{const _0x389664=_0x10947b;let _0x88db3c=_0x497862[_0x389664(0x9d)](_0x3ab41c=>{const _0x1a235f=_0x389664;if(_0x3ab41c['id']!==_0x596a36['id'])return;let _0x58d740=_0x3f2cab[_0x1a235f(0x237)](_0x51c09d,_0x4af79f,_0x33b36e);_0x58d740&&_0x392ccc(_0x58d740);});return()=>_0x88db3c['dispose']();},[_0x497862,_0x33b36e,_0x3f2cab,_0x4af79f,_0x51c09d]);let _0xefc432=_0x346fe1=>{_0x392ccc(_0x580543=>({..._0x580543,..._0x346fe1}));},_0x19f4c1=_0x174c15=>{let _0x4d048a=_0x4585dd(_0x1f12d8,_0x174c15);xr(_0x497862,_0x51c09d,_0x4af79f,_0x33b36e,{'oldShapeData':{'shapeText':_0x1f12d8['shapeText']}},_0x4d048a),_0xefc432(_0x4d048a);},_0x404886=_0x2f7ce1({'hostType':_0x1e715c[_0x10947b(0x2f0)],'unitId':_0x51c09d,'subUnitId':_0x4af79f,'shapeId':_0x33b36e,'shapeData':_0x1f12d8,'onUpdateBinding':_0xd752f=>{const _0x385148=_0x10947b;let _0x28982f={'formulaBinding':_0xd752f};xr(_0x497862,_0x51c09d,_0x4af79f,_0x33b36e,{'oldShapeData':{'formulaBinding':_0x1f12d8[_0x385148(0x217)]}},_0x28982f),_0xefc432(_0x28982f);}});return _0x40fb71(_0x546f33,{'children':[_0x92a68d(_0x9bffae,{'canvasElement':_0x1c9acb['canvasElement'],'shapeData':_0x1f12d8,'shapeType':_0x347819,'textStyle':{'ff':_0x48b11f[_0x10947b(0x1bd)][_0x10947b(0x33a)],'fs':_0x48b11f['shapeText'][_0x10947b(0x2ba)],'cl':{'rgb':_0x48b11f[_0x10947b(0x1bd)][_0x10947b(0x2b0)]},..._0x1adca9},'textModel':_0x41a776?{'ha':_0x41a776['ha']??_0xe8342a[_0x10947b(0x313)],'va':_0x41a776['va']??_0x47a0f4[_0x10947b(0x17a)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x48b11f[_0x10947b(0x2dd)],'defaultGradientEndColor':_0x48b11f[_0x10947b(0x1e5)],'defaultStrokeColor':_0x48b11f['stroke'],'extensionGroups':_0x404886[_0x10947b(0x2b8)],'floatingObjectToolbarPosition':_0x442d12[_0x10947b(0x295)],'onUpdateShapeData':(_0x58c371,_0x5eb647)=>{xr(_0x497862,_0x51c09d,_0x4af79f,_0x33b36e,_0x58c371,_0x5eb647),_0x5eb647&&_0xefc432(_0x5eb647);},'onUpdateText':_0x19f4c1,'onOpenPanel':()=>{const _0x3ab6f4=_0x10947b;_0x497862[_0x3ab6f4(0x335)](Rr['id'],{'unitId':_0x51c09d,'subUnitId':_0x4af79f,'drawingId':_0x33b36e});},'onDelete':()=>{const _0x111dbd=_0x10947b;_0x497862[_0x111dbd(0x335)](_0x4839e5['id'],{'unitId':_0x51c09d,'drawings':[{'unitId':_0x51c09d,'subUnitId':_0x4af79f,'drawingId':_0x33b36e,'drawingType':_0x4cb03e}]});}}),_0x404886[_0x10947b(0x2a2)]]});}function va(_0x862fa){const _0x3727a8=_0x1736bc;return!!_0x862fa&&_0x3727a8(0x1cf)in _0x862fa&&'sheetTransform'in _0x862fa;}const ya=_0x2e5092(()=>{const _0x39abe3=_0x1736bc;let _0x6aee68=_0x52bd02($),_0x26ba5f=_0x52bd02(_0xa0be75),_0x3eb8fa=_0x52bd02(_0x4cc7db),_0x3c0c9f=_0x52bd02(_0x376420),_0x1a17f5=_0x52bd02(_0x437672),_0x53d402=_0x52bd02(_0x41745c);return _0x92a68d(_0xb725f4,{'adapter':_0x1da22e(()=>({'getShapeModel':(_0x1cec38,_0x3bb201,_0x40d550)=>_0x26ba5f[_0x39abe3(0x1a7)](_0x1cec38,_0x3bb201,_0x40d550),'getShapeData':(_0x1f48e5,_0x1ea9d1,_0x2ca756)=>_0x26ba5f['getShapeDataById'](_0x1f48e5,_0x1ea9d1,_0x2ca756),'getDrawingTransform':(_0xa2474e,_0x9dab01,_0x522a0b)=>{const _0x154e63=_0x39abe3;let _0x32e840=_0x3eb8fa[_0x154e63(0x2cd)]({'unitId':_0xa2474e,'subUnitId':_0x9dab01,'drawingId':_0x522a0b});return _0x32e840==null?void 0x0:_0x32e840[_0x154e63(0x1f0)];},'updateShapeText':({unitId:_0x1dd0ce,subUnitId:_0x4ef759,shapeId:_0x3d1b0b,shapeText:_0x23c0e1,oldShapeText:_0x1d8bea,hostSize:_0x5ec8af})=>{const _0x54f393=_0x39abe3;_0x1a17f5[_0x54f393(0x140)](_0x1dd0ce,()=>{const _0x416845=_0x54f393;var _0x5df139;let _0x250b35=_0x3c0c9f[_0x416845(0xd8)](br['id'],{'unitId':_0x1dd0ce,'subUnitId':_0x4ef759,'shapeId':_0x3d1b0b,'shapeData':{'shapeText':_0x23c0e1},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x1d8bea}}});if(!_0x250b35||!_0x5ec8af)return _0x250b35;let _0x385dd2=_0x3eb8fa[_0x416845(0x2cd)]({'unitId':_0x1dd0ce,'subUnitId':_0x4ef759,'drawingId':_0x3d1b0b}),_0x1774b3=_0x385dd2==null?void 0x0:_0x385dd2[_0x416845(0x1f0)];if(!va(_0x385dd2)||!_0x1774b3)return!0x1;let _0x3070c2={..._0x1774b3,'width':_0x5ec8af['width'],'height':_0x5ec8af[_0x416845(0x188)]},_0x442872=(_0x5df139=_0x53d402[_0x416845(0x250)](_0x1dd0ce))==null||(_0x5df139=_0x5df139[_0x416845(0xb1)](_0x361e49)[_0x416845(0xe0)](_0x4ef759))==null?void 0x0:_0x5df139['skeleton'];return _0x3c0c9f['syncExecuteCommand'](_0x426164['id'],{'unitId':_0x1dd0ce,'drawings':[{..._0x385dd2,'transform':_0x3070c2,'sheetTransform':_0x442872?_0x511550(_0x3070c2,_0x442872)??_0x385dd2['sheetTransform']:_0x385dd2[_0x416845(0x18a)],'axisAlignSheetTransform':_0x442872?_0x389ad9(_0x3070c2,_0x442872)??_0x385dd2['axisAlignSheetTransform']:_0x385dd2[_0x416845(0x1cf)]}]});});},'updateHostSize':({unitId:_0x3443a2,subUnitId:_0x3ce800,shapeId:_0x405c4c,width:_0x480fb2,height:_0x5838ae})=>{const _0x45a061=_0x39abe3;var _0x3d1d95;let _0x16ca76=_0x3eb8fa[_0x45a061(0x2cd)]({'unitId':_0x3443a2,'subUnitId':_0x3ce800,'drawingId':_0x405c4c}),_0x4e7a89=_0x16ca76==null?void 0x0:_0x16ca76[_0x45a061(0x1f0)];if(!va(_0x16ca76)||!_0x4e7a89)return;let _0x2a8c43={..._0x4e7a89,'width':_0x480fb2,'height':_0x5838ae},_0x1bced6=(_0x3d1d95=_0x53d402[_0x45a061(0x250)](_0x3443a2))==null||(_0x3d1d95=_0x3d1d95[_0x45a061(0xb1)](_0x361e49)[_0x45a061(0xe0)](_0x3ce800))==null?void 0x0:_0x3d1d95[_0x45a061(0x326)],_0x19e16b=_0x1bced6?_0x511550(_0x2a8c43,_0x1bced6)??_0x16ca76['sheetTransform']:_0x16ca76[_0x45a061(0x18a)],_0x42947c=_0x1bced6?_0x389ad9(_0x2a8c43,_0x1bced6)??_0x16ca76[_0x45a061(0x1cf)]:_0x16ca76[_0x45a061(0x1cf)];_0x3c0c9f['executeCommand'](_0x426164['id'],{'unitId':_0x3443a2,'drawings':[{..._0x16ca76,'transform':_0x2a8c43,'sheetTransform':_0x19e16b,'axisAlignSheetTransform':_0x42947c}]});},'allowHostSizeShrink':({unitId:_0xdc623b,subUnitId:_0x4c2721,shapeId:_0x119732})=>_0x1001c5(_0x26ba5f['getShapeDataById'](_0xdc623b,_0x4c2721,_0x119732)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x3c0c9f,_0x3eb8fa,_0x53d402,_0x26ba5f,_0x1a17f5]),'editingService':_0x6aee68,'editorUnitId':Fr,'positionOptions':_0x1da22e(()=>({'viewportKeys':{'main':_0xfbd7a1[_0x39abe3(0x12f)],'leftTop':_0xfbd7a1[_0x39abe3(0x331)],'top':_0xfbd7a1[_0x39abe3(0x168)],'left':_0xfbd7a1[_0x39abe3(0x1a9)]},'getSkeleton':(_0x43fbb6,_0x544dd5)=>{const _0x3a2cfe=_0x39abe3;var _0x4213b3;return((_0x4213b3=_0x43fbb6[_0x3a2cfe(0xb1)](_0x361e49)[_0x3a2cfe(0xe0)](_0x544dd5[_0x3a2cfe(0x320)]))==null?void 0x0:_0x4213b3[_0x3a2cfe(0x326)])??null;}}),[])});});let ba=class extends _0x3f60c8{constructor(_0xdfc3e,_0x511de6){const _0x4865f7=_0x1736bc;super(),this[_0x4865f7(0x1d2)]=_0xdfc3e,this[_0x4865f7(0xef)]=_0x511de6,this[_0x4865f7(0xe3)](),this['_registerComponents']();}[_0x1736bc(0xe3)](){const _0x5aa74b=_0x1736bc;this['_iconManager']['has']('ObjectLayersIcon')||this[_0x5aa74b(0x2d9)](this['_iconManager']['register']({'ObjectLayersIcon':_0x177941})),this[_0x5aa74b(0xef)][_0x5aa74b(0x12c)](_0x5aa74b(0x32d))||this['disposeWithMe'](this[_0x5aa74b(0xef)]['register']({'FlipHorizontalIcon':_0xec91bf})),this[_0x5aa74b(0xef)][_0x5aa74b(0x12c)](_0x5aa74b(0x1dc))||this[_0x5aa74b(0x2d9)](this['_iconManager'][_0x5aa74b(0x21d)]({'FlipVerticalIcon':_0x322d75})),this['_iconManager']['has'](_0x5aa74b(0x174))||this[_0x5aa74b(0x2d9)](this[_0x5aa74b(0xef)]['register']({'BottomIcon':_0x137ffd})),this['_iconManager'][_0x5aa74b(0x12c)](_0x5aa74b(0x157))||this['disposeWithMe'](this[_0x5aa74b(0xef)][_0x5aa74b(0x21d)]({'MoveDownIcon':_0x16dbe2})),this[_0x5aa74b(0xef)][_0x5aa74b(0x12c)](_0x5aa74b(0x143))||this[_0x5aa74b(0x2d9)](this[_0x5aa74b(0xef)]['register']({'MoveUpIcon':_0x46a533})),this[_0x5aa74b(0xef)]['has'](_0x5aa74b(0x132))||this[_0x5aa74b(0x2d9)](this[_0x5aa74b(0xef)][_0x5aa74b(0x21d)]({'ShapeFormatSettingIcon':_0x5b0f5d})),this[_0x5aa74b(0xef)][_0x5aa74b(0x12c)](_0x5aa74b(0x25f))||this[_0x5aa74b(0x2d9)](this[_0x5aa74b(0xef)][_0x5aa74b(0x21d)]({'TopmostIcon':_0x147def}));}[_0x1736bc(0x204)](){const _0x4ac34c=_0x1736bc;this[_0x4ac34c(0x2d9)](this[_0x4ac34c(0x1d2)][_0x4ac34c(0x21d)](jr,ha)),this[_0x4ac34c(0x2d9)](this[_0x4ac34c(0x1d2)][_0x4ac34c(0x21d)](Mr,pa)),this[_0x4ac34c(0x2d9)](this[_0x4ac34c(0x1d2)]['register'](Hr,Jr)),this[_0x4ac34c(0x2d9)](this[_0x4ac34c(0x1d2)][_0x4ac34c(0x21d)](Ur,Gr)),this['_componentManager'][_0x4ac34c(0x106)](_0x293bed)||this[_0x4ac34c(0x2d9)](this[_0x4ac34c(0x1d2)][_0x4ac34c(0x21d)](_0x293bed,qr)),this[_0x4ac34c(0x2d9)](this[_0x4ac34c(0x1d2)]['register'](Nr,ga)),this[_0x4ac34c(0x2d9)](this[_0x4ac34c(0x1d2)][_0x4ac34c(0x21d)](ai,li)),this[_0x4ac34c(0x2d9)](this['_componentManager']['register'](ii,ui)),this[_0x4ac34c(0x2d9)](this[_0x4ac34c(0x1d2)][_0x4ac34c(0x21d)](oi,di)),this[_0x4ac34c(0x2d9)](this[_0x4ac34c(0x1d2)][_0x4ac34c(0x21d)](si,fi)),this[_0x4ac34c(0x2d9)](this[_0x4ac34c(0x1d2)][_0x4ac34c(0x21d)](Ir,_0x7663fd)),this[_0x4ac34c(0x2d9)](this[_0x4ac34c(0x1d2)][_0x4ac34c(0x21d)](_0x4ac34c(0x23c),ya));}};ba=Y([J(0x0,_0x5b826f(_0x4dd843)),J(0x1,_0x5b826f(_0x2db3fe))],ba);const xa='sheets-shape-contextual-ribbon';let Sa=class extends _0x3f60c8{constructor(_0x31e129,_0x5db406,_0x24d646,_0x21dcb0,_0x51a74f,_0x22aba0){const _0x548a2b=_0x1736bc;super(),this['_menuManagerService']=_0x31e129,this[_0x548a2b(0x352)]=_0x5db406,this[_0x548a2b(0x1c4)]=_0x24d646,this[_0x548a2b(0x146)]=_0x21dcb0,this[_0x548a2b(0x234)]=_0x51a74f,this[_0x548a2b(0x103)]=_0x22aba0,q(this,_0x548a2b(0xc3),!0x1),this['_menuManagerService'][_0x548a2b(0x184)](Ii),this[_0x548a2b(0x2d9)](_0x219635(this[_0x548a2b(0x1c4)]['focus$'][_0x548a2b(0x222)](()=>this[_0x548a2b(0x145)]()))),this[_0x548a2b(0x145)]();}[_0x1736bc(0x137)](){const _0xf7364a=_0x1736bc;this[_0xf7364a(0x103)][_0xf7364a(0x1d9)](!0x1,xa),this[_0xf7364a(0x2fa)](),super[_0xf7364a(0x137)]();}[_0x1736bc(0x145)](){const _0x949beb=_0x1736bc;var _0x15bdcf;let _0x2af85e=this[_0x949beb(0x1c4)][_0x949beb(0x345)](),_0xf49d43=_0x2af85e[_0x949beb(0x180)]===0x1?_0x2af85e[0x0]:void 0x0;if((_0xf49d43==null?void 0x0:_0xf49d43[_0x949beb(0x1e9)])!==_0xc7f81b[_0x949beb(0x33e)]||this[_0x949beb(0x146)]['getUnitType'](_0xf49d43[_0x949beb(0x142)])!==_0x1e715c[_0x949beb(0x2f0)]){this[_0x949beb(0x103)][_0x949beb(0x1d9)](!0x1,xa),this[_0x949beb(0x2fa)]();return;}let _0x1a7fd2=_0x282c42((_0x15bdcf=this[_0x949beb(0x234)][_0x949beb(0x250)](_0xf49d43[_0x949beb(0x142)]))==null?void 0x0:_0x15bdcf['engine'][_0x949beb(0x332)]())===_0x949beb(0x17f);if(this[_0x949beb(0x103)]['setFallbackVisible'](_0x1a7fd2,xa),_0x1a7fd2){this[_0x949beb(0x2fa)]();return;}this[_0x949beb(0xc3)]||(this[_0x949beb(0xc3)]=!0x0,this['_ribbonService']['showContextualTab'](Pr,{'activate':!0x0}));}[_0x1736bc(0x2fa)](){const _0x106816=_0x1736bc;this[_0x106816(0xc3)]&&(this[_0x106816(0xc3)]=!0x1,this[_0x106816(0x352)][_0x106816(0x9f)](Pr),this['_ribbonService'][_0x106816(0x2b6)]([]));}};Sa=Y([J(0x0,_0x24e4c2),J(0x1,_0x33a09a),J(0x2,_0x4cc7db),J(0x3,_0xfd8e0),J(0x4,_0x41745c),J(0x5,_0x5b826f(_0x33a812))],Sa);let Ca=class extends _0x2195c4{constructor(_0x5473c9,_0xe0c1e1,_0x22baac,_0x2f4ff4,_0x355ff4,_0x30c5f5,_0x275088,_0x3aafb4,_0x7390c2,_0x470cf3){super(_0x5473c9,_0xe0c1e1,_0x22baac,_0x2f4ff4,_0x355ff4,_0x30c5f5,_0x275088,_0x3aafb4,_0x7390c2,_0x470cf3,{'componentKey':Ir,'editorUnitId':Fr});}};Ca=Y([J(0x1,_0x5b826f(_0x37b68d)),J(0x2,_0x5b826f(_0xa72247)),J(0x3,_0x5b826f(_0x34a900)),J(0x4,_0x376420),J(0x5,_0x5b826f(_0x1d792c)),J(0x6,_0x5b826f(_0x1043e9)),J(0x7,_0x5b826f(_0xb7cea8)),J(0x8,_0x5b826f(_0x2c24f1)),J(0x9,_0x5b826f($))],Ca);let wa=class extends _0x3d2a7b{constructor(_0x25d428=Ui,_0x2b0045,_0x2bd959,_0xa73d84,_0x5b80c6){const _0x9bc592=_0x1736bc;super(),this[_0x9bc592(0x15a)]=_0x25d428,this[_0x9bc592(0x27e)]=_0x2b0045,this[_0x9bc592(0x287)]=_0x2bd959,this[_0x9bc592(0x2f7)]=_0xa73d84,this[_0x9bc592(0x234)]=_0x5b80c6;let {..._0x44491b}=_0x22c628({},Ui,this[_0x9bc592(0x15a)]);this['_configService'][_0x9bc592(0x147)](Hi,_0x44491b),this[_0x9bc592(0x11c)]();}[_0x1736bc(0x292)](){const _0x59ddb8=_0x1736bc;this[_0x59ddb8(0x234)][_0x59ddb8(0x1af)](_0x1e715c['UNIVER_DOC'],[Ca]),_0x52029a(this[_0x59ddb8(0x27e)],[[Xi],[ea],[X],[sa]]);}[_0x1736bc(0x25b)](){const _0x95e711=_0x1736bc;this[_0x95e711(0x27e)][_0x95e711(0x106)](Xi)['initShapePopupMenu']();}[_0x1736bc(0x1fa)](){const _0x4881dd=_0x1736bc;[[ra],[Z],[ia]]['forEach'](_0x1141eb=>this['_injector'][_0x4881dd(0x29d)](_0x1141eb)),_0x52029a(this[_0x4881dd(0x27e)],[[ia],[Z]]),this[_0x4881dd(0x234)][_0x4881dd(0x1af)](_0x1e715c[_0x4881dd(0x2f0)],[ra]),this[_0x4881dd(0x234)][_0x4881dd(0x1af)](_0x1e715c[_0x4881dd(0x2f0)],[Wi]),this[_0x4881dd(0x234)][_0x4881dd(0x1af)](_0x1e715c[_0x4881dd(0x2f0)],[oa]),this['_renderManagerService'][_0x4881dd(0x1af)](_0x1e715c['UNIVER_SHEET'],[Ki]);}[_0x1736bc(0x1ac)](){const _0x3fac00=_0x1736bc;this['_injector'][_0x3fac00(0x29d)]([ba]),this[_0x3fac00(0x27e)][_0x3fac00(0x106)](ba);let _0x3334a8=this[_0x3fac00(0x27e)];[[Xi],[ea],[X],[sa],[la],[$],[$i],[Q],[ca],[Sa]]['forEach'](_0x17e25a=>_0x3334a8[_0x3fac00(0x29d)](_0x17e25a)),_0x52029a(this['_injector'],[[Xi],[ea],[X],[la],[$],[$i],[Q],[ca],[Sa]]);}[_0x1736bc(0x11c)](){const _0x41bcc4=_0x1736bc;[Ar,br,Yi,Rr,Lr,kr,Br,Vr][_0x41bcc4(0x1df)](_0x327349=>this['disposeWithMe'](this[_0x41bcc4(0x287)][_0x41bcc4(0x19f)](_0x327349)));}};q(wa,_0x1736bc(0x2c1),_0x1e715c[_0x1736bc(0x2f0)]),q(wa,_0x1736bc(0x123),'SHEET_SHAPE_UI_PLUGIN'),q(wa,_0x1736bc(0x244),zi),q(wa,_0x1736bc(0x28c),Bi),wa=Y([_0x9d7bfc(_0x19cbab,_0x4974d9,_0x45f01f,_0xab6d1a,_0x463852,_0x4a60c5,_0x4ed767,_0x41e33f,_0x1d8e9c,_0x3149ef,_0x4a9bd9,_0x393371,_0x328de7),J(0x1,_0x5b826f(_0x3d8c1a)),J(0x2,_0x376420),J(0x3,_0x3a1263),J(0x4,_0x41745c)],wa);export{Ii as SheetsShapeUIContextualRibbonSchema,Ri as SheetsShapeUIMenuSchema,ua as UniverSheetsShapeMobileUIPlugin,wa as UniverSheetsShapeUIPlugin};
|
|
1
|
+
const _0x12df57=_0x4f90;(function(_0x4e549d,_0x588805){const _0x2f0c53=_0x4f90,_0x4e7df9=_0x4e549d();while(!![]){try{const _0x24af98=-parseInt(_0x2f0c53(0x1f0))/0x1*(-parseInt(_0x2f0c53(0x303))/0x2)+parseInt(_0x2f0c53(0x1a7))/0x3*(-parseInt(_0x2f0c53(0x311))/0x4)+parseInt(_0x2f0c53(0x26d))/0x5*(-parseInt(_0x2f0c53(0x2ca))/0x6)+parseInt(_0x2f0c53(0x247))/0x7+-parseInt(_0x2f0c53(0x19f))/0x8+-parseInt(_0x2f0c53(0x1a0))/0x9+parseInt(_0x2f0c53(0x37c))/0xa*(parseInt(_0x2f0c53(0x294))/0xb);if(_0x24af98===_0x588805)break;else _0x4e7df9['push'](_0x4e7df9['shift']());}catch(_0xad5095){_0x4e7df9['push'](_0x4e7df9['shift']());}}}(_0x7a66,0x441ab));import{FormulaShapeAnimationController as _0x1c0989,MobileShapeEditorService as _0x5cf50c,SHAPE_CHANGE_PICKER_COMPONENT as _0x5d7905,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x23c009,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x245003,ShapeEditPanel as _0x51f6a3,ShapeFloatingToolbar as _0x42657f,ShapeFloatingToolbarService as _0x580a08,ShapeFloatingToolbarToggleFactory as _0x434b60,ShapeFormulaRibbonControl as _0x197294,ShapeGroupEnum as _0x2af153,ShapePickerDropdown as _0x2fbe63,ShapePickerPanel as _0x31730c,ShapeQuickStyleGallery as _0x51c7c7,ShapeStyleRibbonControl as _0xc7e7f5,ShapeTextEditorContainer as _0x2d79bb,ShapeTextFloatMenuRenderControllerBase as _0x14ae9e,ShapeTextFloatToolbar as _0x51199a,ShapeTextHyperLinkPopupService as _0x1d664e,ShapeTextRibbonControl as _0x32cff2,ToggleShapeFloatingToolbarOperation as _0x4265b6,UniverShapeEditorMobileUIPlugin as _0x208d62,UniverShapeEditorUIPlugin as _0x10afb4,activateDrawingObject as _0x46110a,bindRenderTransformerLifecycle as _0x12a454,buildShapeTextDataUpdate as _0x2f4663,clearActiveDrawingObjects as _0x27277a,drawFormulaShapeAnimationLayers as _0x476736,getDrawingTypeNameKey as _0x10b9c3,getTextModel as _0x2c7d29,getTextStyle as _0x5e111f,normalizeShapeTextModel as _0x4b5894,plainShapeTextToDocumentData as _0x4765de,prepareShapeTextDocumentData as _0x3e1d8c,registerShapeFormatPainter as _0x8cd80f,resolveFormulaShapeAutoFitSize as _0x39cdd6,resolveShapeContextualRibbonHostMode as _0x234cbe,resolveShapeTextDocumentPageHeight as _0x1f1791,resolveShapeTextDocumentRenderLayout as _0x527f17,resolveShapeTextEditorBehaviorShapeData as _0x2ec961,resolveShapeTextEditorWrapStrategy as _0x4ebac,shouldAllowShapeTextEditorHostSizeShrink as _0x39a3d4,shouldClipShapeTextDocument as _0x46597a,useFormulaShapeToolbar as _0x3964a4}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x38cfa2,ContextMenuGroup as _0x1695c8,ContextMenuPosition as _0x1e6c0b,FloatingObjectToolbarPosition as _0x4b4838,FormatPainterSessionService as _0xca783,IMenuManagerService as _0x219d86,IRibbonService as _0x47e600,ISidebarService as _0x34a435,IconManager as _0x30514f,MenuItemType as _0x2a2d7d,MenuManagerPosition as _0xebeed2,RibbonInsertGroup as _0x66892f,UndoRedoGroupService as _0x293936,UniverMobileUIPlugin as _0x39d7b4,getMenuHiddenObservable as _0x351278,useDependency as _0x89c257,useObservable as _0x296781}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x2d0c36,ImageSourceTypeEnum as _0x57c813,ShapeArrowSizeEnum as _0x4a0606,ShapeArrowTypeEnum as _0xb82a0,ShapeDefaultConfig as _0x19a828,ShapeFillEnum as _0x2944dd,ShapeLineTypeEnum as _0x1041bf,ShapeModel as _0x12134e,ShapeRenderModeEnum as _0x1f8fa9,ShapeTypeEnum as _0x58173b,computeConnectorRouteLayout as _0x55da57,getBasicShapeRotateBound as _0x1d381c,isConnectorShape as _0x5350d3,isCurvedConnectorShape as _0x24e357,routeConnectorLineShape as _0x4a61e5}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x2705f0,UniverShapeEditorPlugin as _0x15dd10,applyQuickStyleToShapeData as _0x34fe95,cloneShapeDataForType as _0x259a3c,createShapeFormulaDocument as _0xcf0742,createShapeTextBoxShapeData as _0x588166,getShapeQuickStylePreset as _0x3ee77d,getShapeQuickStyleType as _0x24e17f,resolveActiveShapeQuickStylePresetId as _0x26dbd6}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x35ee56,InsertSheetsShapeMutation as _0x5dede5,RemoveSheetsShapeMutation as _0x55949a,SetShapeDrawingDataCommand as _0x32b6e2,SheetsShapeService as _0x2da406,ToggleSheetsShapeFlipCommand as _0x1fe1aa,UniverSheetsShapePlugin as _0x1ac26b,UpdateConnectorRelationCommand as _0x3da7c1,UpdateLineShapeResizeCommand as _0x700f65,UpdateSheetsShapeDataMutation as _0x11226d}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x299c73,CommandType as _0x3cebb2,DependentOn as _0x3c710a,Disposable as _0x112f8d,DisposableCollection as _0x55d7a7,DocumentDataModel as _0x264790,DrawingTypeEnum as _0x51ad3e,FOCUSING_COMMON_DRAWINGS as _0x1309fa,FOCUSING_SHAPE_TEXT_EDITOR as _0x18b266,HorizontalAlign as _0x1358ac,ICommandService as _0x12955f,IConfigService as _0x42a738,IContextService as _0x48e88d,IImageIoService as _0x3aecb3,IPermissionService as _0x61a9f9,IURLImageService as _0x1f4f01,IUndoRedoService as _0x3c6f73,IUniverInstanceService as _0xb60de6,Inject as _0x441dea,Injector as _0x355203,LocaleService as _0xbd5d6b,Plugin as _0x4a2be0,UniverInstanceType as _0x43974e,VerticalAlign as _0x52f567,createInternalEditorID as _0x1a6cba,generateRandomId as _0x2e8523,merge as _0xcb4f97,registerDependencies as _0x104c70,toDisposable as _0x1152a8,touchDependencies as _0x249fb4}from'@univerjs/core';import{CopySheetCommand as _0x2ecce4,RemoveSheetCommand as _0x2b05aa,SheetInterceptorService as _0x5e7041,SheetPermissionCheckController as _0xc50cd5,SheetSkeletonService as _0x4b55a4,SheetsSelectionsService as _0x357d8a,UniverSheetsPlugin as _0x48d190,WorkbookEditablePermission as _0x43774a,WorksheetEditPermission as _0x1cb5f9,attachRangeWithCoord as _0x16c8e6,discreteRangeToRange as _0xfd3362,getSheetCommandTarget as _0x5e9f29}from'@univerjs/sheets';import{IDrawingManagerService as _0x5b31b6,SetDrawingSelectedOperation as _0x1ea54f,UniverDrawingPlugin as _0x48be47,getDrawingShapeKeyByDrawingSearch as _0x5b432f,getOrCreateDrawingCopyPlan as _0x12e0f4}from'@univerjs/drawing';function _0x4f90(_0x4a0c44,_0x59407d){_0x4a0c44=_0x4a0c44-0xd3;const _0x7a665a=_0x7a66();let _0x4f9038=_0x7a665a[_0x4a0c44];return _0x4f9038;}import{CURSOR_TYPE as _0x2cc79d,Circle as _0x2f4676,DRAWING_OBJECT_LAYER_INDEX as _0x434827,DocumentSkeleton as _0x5dcdb6,DocumentViewModel as _0x35ef90,Documents as _0x31b60a,IRenderManagerService as _0x490ecc,Image as _0x322ab3,RENDER_CLASS_TYPE as _0x48e82c,SHEET_VIEWPORT_KEY as _0x56e735,Shape as _0x118028,Transform as _0x64b010,UniverRenderEnginePlugin as _0x22e3f0,Vector2 as _0x2169f2}from'@univerjs/engine-render';import{COPY_TYPE as _0x11f529,ISheetClipboardService as _0x118f5b,PREDEFINED_HOOK_NAME as _0x11a75d,SheetCanvasPopManagerService as _0x1773e5,SheetPrintInterceptorService as _0x5b49cd,SheetScrollManagerService as _0xb28c90,SheetSkeletonManagerService as _0x4e2ccb,UniverSheetsMobileUIPlugin as _0x1c7b73,UniverSheetsUIPlugin as _0x278b66,deriveStateFromActiveSheet$ as _0x28768c,getCurrentRangeDisable$ as _0x289d5e,getViewportByCell as _0xd77f2d}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x3c0027,EMPTY as _0x510d35,Observable as _0x1efbd9,map as _0x14cb4a,merge as _0x1a94d8,of as _0xcf385,startWith as _0x2c0643,switchMap as _0x3339fd}from'rxjs';import{DrawingCommonPanel as _0x5bdac5,DrawingImageClipService as _0xe50573,DrawingRenderService as _0x27ed80,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x220fd1,MobileObjectListPanel as _0x3c62a3,OBJECT_LIST_FLOATING_SECTION_ID as _0x57f6c3,ObjectListPanelBase as _0x4de145,UniverDrawingUIPlugin as _0x312028,getCurrentUnitInfo as _0x14097a,getObjectListPanelSectionIdForDrawingType as _0x19bb9e,insertGroupObject as _0x106b64}from'@univerjs/drawing-ui';import{MobileDropdown as _0x376498}from'@univerjs/design';import{Fragment as _0x272af9,jsx as _0x208197,jsxs as _0x18cefc}from'react/jsx-runtime';import{DrawingApplyType as _0x1d3abe,ISheetDrawingService as _0xa74f05,RemoveSheetDrawingCommand as _0x2097d6,SetDrawingApplyMutation as _0x497e29,SetDrawingArrangeCommand as _0x26e8e6,SetSheetDrawingCommand as _0x516914,UniverSheetsDrawingPlugin as _0x465f33,transformToAxisAlignPosition as _0x48b50e,transformToDrawingPosition as _0x4e7acc}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x53c7db}from'@univerjs-pro/license';import{DocInterceptorService as _0x98e54f,DocSelectionManagerService as _0x1ef51b,UniverDocsPlugin as _0x5b37c7}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x3ad3ae,DocEventManagerService as _0xfbc368,DocRenderController as _0x4c0fc8,DocSelectionRenderService as _0x4258f5,UniverDocsUIPlugin as _0x4e2795}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x20c76d,SheetsDrawingGroupCopyPasteController as _0x3700d7,UniverSheetsDrawingMobileUIPlugin as _0x1b32b4,UniverSheetsDrawingUIPlugin as _0x4ae66b}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x1f02ea,FlipHorizontalIcon as _0x1a5b21,FlipVerticalIcon as _0x225c7e,MoveDownIcon as _0x2dcbc5,MoveUpIcon as _0x422322,ObjectLayersIcon as _0x54f95f,ShapeFormatSettingIcon as _0x1e754c,TopmostIcon as _0x12b47e}from'@univerjs/icons';import{memo as _0x30dacd,useEffect as _0xc2358,useMemo as _0x270060,useReducer as _0x516940,useState as _0x9ee093}from'react';function yr(_0x36503f,_0x28967b){const _0x43fe3a=_0x4f90;let _0x40cdce={};for(let _0x213aab of Object[_0x43fe3a(0xf4)](_0x28967b)){let _0x40d4ab=_0x28967b[_0x213aab],_0x304d55=_0x36503f[_0x213aab];if(_0x304d55===void 0x0){_0x40cdce[_0x213aab]=void 0x0;continue;}_0x40cdce[_0x213aab]=typeof _0x40d4ab=='object'&&_0x40d4ab&&!Array[_0x43fe3a(0x336)](_0x40d4ab)&&typeof _0x304d55==_0x43fe3a(0x377)&&_0x304d55&&!Array[_0x43fe3a(0x336)](_0x304d55)?yr(_0x304d55,_0x40d4ab):_0x304d55;}return _0x40cdce;}const K={'type':_0x3cebb2[_0x12df57(0xef)],'id':_0x12df57(0x1e4),'handler':(_0x4095c8,_0xe64067)=>{const _0x44bd17=_0x12df57;let _0x463dbb=_0x4095c8[_0x44bd17(0x1bd)](_0x2da406),{unitId:_0x45c1cd,subUnitId:_0x411b47,shapeType:_0x140552,shapeId:_0x5099e2,shapeData:_0x705c4f,replaceShapeData:_0x582b19,oldShapeJSON:_0x544358}=_0xe64067;if(!_0x463dbb[_0x44bd17(0x337)](_0x45c1cd,_0x411b47,_0x5099e2))return!0x1;let _0x1ff0e5=_0x4095c8[_0x44bd17(0x1bd)](_0x12955f),_0x2ff62a=_0x4095c8[_0x44bd17(0x1bd)](_0x3c6f73),{oldShapeType:_0xb1604e,oldShapeData:_0xa7084d={}}=_0x544358,_0x58d597=_0x582b19?_0xa7084d:yr(_0xa7084d,_0x705c4f||{}),_0x2ac11b={'id':_0x11226d['id'],'params':{'unitId':_0x45c1cd,'subUnitId':_0x411b47,'shapeId':_0x5099e2,'shapeType':_0x140552,'shapeData':_0x705c4f,'replace':_0x582b19}},_0x2f147e={'id':_0x11226d['id'],'params':{'unitId':_0x45c1cd,'subUnitId':_0x411b47,'shapeId':_0x5099e2,'shapeType':_0xb1604e,'shapeData':_0x58d597,'replace':_0x582b19}};return _0x1ff0e5['syncExecuteCommand'](_0x2ac11b['id'],_0x2ac11b[_0x44bd17(0x240)])?(_0x2ff62a[_0x44bd17(0x2bf)]({'unitID':_0x45c1cd,'undoMutations':[_0x2f147e],'redoMutations':[_0x2ac11b]}),!0x0):!0x1;}};function br(_0x3539ad,_0x79bde4,_0x1b0381,_0x2237ae,_0x1f573e,_0x36191a){let _0x108f1a={'unitId':_0x79bde4,'subUnitId':_0x1b0381,'shapeId':_0x2237ae,'shapeData':_0x36191a,'oldShapeJSON':_0x1f573e};return _0x3539ad['executeCommand'](K['id'],_0x108f1a);}function xr(_0x14f4b7,_0x2926e2,_0x12fdf8,_0x24090d,_0x402bd1,_0x4900ff){const _0x4113b3=_0x12df57;let _0x34fcba={'unitId':_0x2926e2,'subUnitId':_0x12fdf8,'shapeId':_0x24090d,'shapeData':_0x4900ff,'oldShapeJSON':_0x402bd1};return _0x14f4b7[_0x4113b3(0xf9)](K['id'],_0x34fcba);}function Sr(_0x954acc){'@babel/helpers - typeof';const _0x5b0bc7=_0x12df57;return Sr=typeof Symbol=='function'&&typeof Symbol[_0x5b0bc7(0x2ac)]=='symbol'?function(_0x4c017a){return typeof _0x4c017a;}:function(_0xb06228){const _0x25f9b6=_0x5b0bc7;return _0xb06228&&typeof Symbol==_0x25f9b6(0x167)&&_0xb06228['constructor']===Symbol&&_0xb06228!==Symbol['prototype']?_0x25f9b6(0x38f):typeof _0xb06228;},Sr(_0x954acc);}function Cr(_0x20eb1c,_0x35e6f3){const _0x42abc3=_0x12df57;if(Sr(_0x20eb1c)!=_0x42abc3(0x377)||!_0x20eb1c)return _0x20eb1c;var _0xb9ede4=_0x20eb1c[Symbol[_0x42abc3(0x20e)]];if(_0xb9ede4!==void 0x0){var _0x4ab33c=_0xb9ede4[_0x42abc3(0x37e)](_0x20eb1c,_0x35e6f3||_0x42abc3(0x347));if(Sr(_0x4ab33c)!=_0x42abc3(0x377))return _0x4ab33c;throw TypeError(_0x42abc3(0x37f));}return(_0x35e6f3==='string'?String:Number)(_0x20eb1c);}function wr(_0x3456a1){const _0x4e87c9=_0x12df57;var _0x10be5f=Cr(_0x3456a1,'string');return Sr(_0x10be5f)==_0x4e87c9(0x38f)?_0x10be5f:_0x10be5f+'';}function q(_0xbd4d10,_0x390cf8,_0x321007){return(_0x390cf8=wr(_0x390cf8))in _0xbd4d10?Object['defineProperty'](_0xbd4d10,_0x390cf8,{'value':_0x321007,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xbd4d10[_0x390cf8]=_0x321007,_0xbd4d10;}function Tr(_0x5e5260,_0x172527,_0x4bec21){const _0x88134=_0x12df57;let _0xba846={..._0x172527,'dataModel':{..._0x172527[_0x88134(0x111)]??{},..._0x4bec21?{'doc':_0x4bec21}:null}},_0x2bbba4=_0x2ec961(_0x5e5260,_0xba846),_0x45bf20=_0x4ebac(_0x2bbba4);return{'clip':_0x46597a(_0x2bbba4,_0x45bf20),'wrapStrategy':_0x45bf20};}var Er=class extends _0x118028{constructor(_0x173c9d,_0x4f4ea3){const _0x396a97=_0x12df57;super(_0x173c9d,_0x4f4ea3),q(this,'_props',void 0x0),q(this,_0x396a97(0x37d),new _0x1c0989(()=>this[_0x396a97(0x161)](!0x0),()=>this['_applyFormulaAutoFitSize']())),q(this,_0x396a97(0x389),!0x0),q(this,_0x396a97(0x15d),_0x51ad3e[_0x396a97(0x305)]),q(this,_0x396a97(0x202),!0x0),this[_0x396a97(0x2d8)]={..._0x4f4ea3},this[_0x396a97(0x37d)][_0x396a97(0x275)](_0x4f4ea3[_0x396a97(0x14d)],_0x4f4ea3[_0x396a97(0x28e)]!==!0x1),this[_0x396a97(0x136)](),this[_0x396a97(0x1e0)]();}['_init'](){const _0x36401b=_0x12df57;this[_0x36401b(0x350)][_0x36401b(0x35f)](_0x5b4ad5=>{const _0x5cbdf6=_0x36401b;this[_0x5cbdf6(0x306)](_0x5b4ad5);});}['setPrstGeom'](_0x27c0b1){const _0x5996ad=_0x12df57;this[_0x5996ad(0x2d8)][_0x5996ad(0xd5)]=_0x27c0b1;}[_0x12df57(0x254)](_0x22700c){const _0x3f1d9f=_0x12df57;this[_0x3f1d9f(0x2d8)][_0x3f1d9f(0x1fe)]=_0x22700c,this[_0x3f1d9f(0x161)](!0x0);}[_0x12df57(0x190)](_0x4bc6c7,_0x553994=!0x0){const _0x3f5956=_0x12df57;this['_formulaAnimation'][_0x3f5956(0x275)](_0x4bc6c7,_0x553994),this[_0x3f5956(0x2d8)]['formulaPresentation']=_0x4bc6c7,this[_0x3f5956(0x1e0)](),this[_0x3f5956(0x161)](!0x0);}['_applyFormulaAutoFitSize'](){const _0x17207d=_0x12df57;let _0x47f4b3=this[_0x17207d(0x2d8)]['shapeModel'],_0xe2c8fe=_0x47f4b3['getShapeTextData'](),_0x355325=_0x4b5894(_0xe2c8fe==null?void 0x0:_0xe2c8fe[_0x17207d(0x111)]),_0x2485d1=_0x355325==null?void 0x0:_0x355325[_0x17207d(0x1ec)],_0x55872c=this[_0x17207d(0x37d)][_0x17207d(0x2be)]();if(!_0x2485d1||_0x55872c[_0x17207d(0x1d0)]===0x0)return;_0x47f4b3[_0x17207d(0x205)]({'width':this[_0x17207d(0x1d1)],'height':this[_0x17207d(0x1b0)]});let _0x1a83a4=_0x39cdd6({'documentData':_0x55872c[_0x17207d(0x339)](_0x4fa57e=>_0xcf0742(_0x2485d1,_0x4fa57e)),'height':this[_0x17207d(0x1b0)],'shapeData':_0x47f4b3['getShapeData'](),'textRect':_0x47f4b3[_0x17207d(0x2d3)]({'left':0x0,'top':0x0,'width':this[_0x17207d(0x1d1)],'height':this[_0x17207d(0x1b0)]}),'width':this[_0x17207d(0x1d1)]});if(_0x1a83a4){var _0x24cd4a;this[_0x17207d(0x189)](_0x1a83a4[_0x17207d(0x1d1)],_0x1a83a4[_0x17207d(0x1b0)]),(_0x24cd4a=this[_0x17207d(0x140)]())==null||(_0x24cd4a=_0x24cd4a['getTransformer']())==null||_0x24cd4a[_0x17207d(0x31f)]();}}get[_0x12df57(0x21e)](){const _0xaff639=_0x12df57;return this[_0xaff639(0x2d8)][_0xaff639(0x21e)];}get[_0x12df57(0x179)](){const _0x270563=_0x12df57;return this[_0x270563(0x2d8)][_0x270563(0x179)];}[_0x12df57(0x306)](_0x35d305){const _0x2b9979=_0x12df57;if(this[_0x2b9979(0x2d8)][_0x2b9979(0x27c)]==null||!this[_0x2b9979(0x389)])return;let {width:_0x2dba3a,height:_0x3addd8}=this,{width:_0x1913eb=0x0,height:_0x51f53f=0x0}=_0x35d305['preValue'],{left:_0x472eab=0x0,top:_0x218f0a=0x0,right:_0x3ea942=0x0,bottom:_0x3913be=0x0}=this[_0x2b9979(0x2d8)]['srcRect'],_0x2f38b8=_0x472eab,_0x5b29a9=_0x218f0a,_0x31bc51=_0x3ea942,_0x4bca74=_0x3913be,_0x45ddcd=!0x1;if(_0x1913eb!==0x0&&_0x1913eb!==_0x2dba3a){let _0x23742d=_0x472eab/_0x1913eb,_0x2a0c59=_0x3ea942/_0x1913eb;_0x2f38b8=_0x2dba3a*_0x23742d,_0x31bc51=_0x2dba3a*_0x2a0c59,_0x45ddcd=!0x0;}if(_0x51f53f!==0x0&&_0x51f53f!==_0x3addd8){let _0x37b3d6=_0x218f0a/_0x51f53f,_0x46fa7d=_0x3913be/_0x51f53f;_0x5b29a9=_0x3addd8*_0x37b3d6,_0x4bca74=_0x3addd8*_0x46fa7d,_0x45ddcd=!0x0;}_0x45ddcd&&this[_0x2b9979(0x257)]({'left':_0x2f38b8,'top':_0x5b29a9,'right':_0x31bc51,'bottom':_0x4bca74});}[_0x12df57(0x257)](_0x364b5d){const _0x3a8bb8=_0x12df57;this[_0x3a8bb8(0x2d8)][_0x3a8bb8(0x27c)]=_0x364b5d,this['makeDirty'](!0x0);}[_0x12df57(0x27f)](_0xfc9a9e){const _0x1cf502=_0x12df57;this[_0x1cf502(0x2d8)][_0x1cf502(0x147)]=_0xfc9a9e,this['makeDirty'](!0x0);}set[_0x12df57(0x114)](_0x16921c){const _0x5bd075=_0x12df57;this[_0x5bd075(0x258)]=_0x16921c;}get['transform'](){const _0x24012e=_0x12df57;this[_0x24012e(0x258)]||this[_0x24012e(0x302)]();let _0x10b23e=this['_transform'][_0x24012e(0x32e)]();return this[_0x24012e(0x1b7)](_0x10b23e);}get['shapeModel'](){return this['_props']['shapeModel'];}get['shapeId'](){const _0xdb143f=_0x12df57;return this[_0xdb143f(0x2d8)][_0xdb143f(0x2c6)];}get[_0x12df57(0xdd)](){return _0x48e82c['SHAPE'];}[_0x12df57(0x1ab)](_0x3b3cbd,_0x22fe3d,_0x519602,_0x327c86){const _0x39809c=_0x12df57;let _0x5671c4=this[_0x39809c(0x2d8)][_0x39809c(0x2ef)];if(!_0x5671c4||!_0x22fe3d)return;let _0x22a059=_0x519602??this[_0x39809c(0x1d1)],_0x59369b=_0x327c86??this[_0x39809c(0x1b0)],_0x28ca11={'shapeType':_0x5671c4[_0x39809c(0x23d)](),'width':_0x22a059,'height':_0x59369b},_0x4fa4be={'renderMode':_0x1f8fa9[_0x39809c(0xfa)],'oKey':this[_0x39809c(0x1a4)],'image':this[_0x39809c(0x2d8)][_0x39809c(0x147)],'angle':this[_0x39809c(0x354)]};_0x5671c4[_0x39809c(0x205)](_0x28ca11),_0x3b3cbd[_0x39809c(0x1ed)]();let _0x2978f4={'top':0x0,'left':0x0,'width':_0x22a059,'height':_0x59369b},_0x6e29c7=_0x5671c4[_0x39809c(0x23e)](_0x2978f4);_0x6e29c7?this[_0x39809c(0x28b)](_0x3b3cbd,_0x6e29c7,_0x161db6=>{const _0x20e551=_0x39809c;_0x5671c4[_0x20e551(0x361)](_0x161db6,_0x2978f4,_0x4fa4be);}):(this[_0x39809c(0x155)](),_0x5671c4[_0x39809c(0x361)](_0x3b3cbd,_0x2978f4,_0x4fa4be)),_0x3b3cbd[_0x39809c(0x2e2)]();let _0x5f08fe=_0x5671c4[_0x39809c(0x36d)](),_0xce368f=_0x5671c4[_0x39809c(0x2d3)](_0x2978f4),_0x34bce5=_0x5671c4['isLineShape']();if(_0x5f08fe&&_0xce368f&&!_0x34bce5){_0x3b3cbd['save'](),this[_0x39809c(0x14b)]()[_0x39809c(0x137)]&&_0x3b3cbd[_0x39809c(0x2c8)](-0x1,0x1);let _0x25746a=_0x22a059/0x2,_0x2011ee=_0x59369b/0x2;_0x3b3cbd['translate'](-_0x25746a,-_0x2011ee),_0x3b3cbd[_0x39809c(0x1e2)](),this[_0x39809c(0x120)](_0x3b3cbd,_0x5f08fe,_0xce368f),_0x3b3cbd[_0x39809c(0x2e2)]();}}[_0x12df57(0x2ad)](_0xc0c38a){}[_0x12df57(0x120)](_0xa52610,_0x4842da,_0x54d0e0){const _0x5c4056=_0x12df57;var _0x33d78d;this['_props'][_0x5c4056(0x1fe)]||(!((_0x33d78d=_0x4842da[_0x5c4056(0x111)])!=null&&_0x33d78d[_0x5c4056(0x1ec)])&&'isRichText'in _0x4842da&&_0x4842da['isRichText']===!0x1?this[_0x5c4056(0x177)](_0xa52610,_0x4842da,_0x54d0e0):this[_0x5c4056(0x1f6)](_0xa52610,_0x4842da,_0x54d0e0));}[_0x12df57(0x177)](_0x3ed61b,_0x5dfca4,_0x4d8ace){const _0x2de80d=_0x12df57;this['_drawRichText'](_0x3ed61b,{..._0x5dfca4,'text':_0x5dfca4[_0x2de80d(0x144)]??'','dataModel':{'doc':_0x4765de(_0x5dfca4,_0x2de80d(0x13a)+this['oKey'])}},_0x4d8ace);}['_drawRichText'](_0x43688f,_0x427156,_0x32c33e){const _0x334b29=_0x12df57;_0x476736(_0x43688f,this[_0x334b29(0x37d)],(_0x46e25e,_0x1ff8f8)=>{this['_drawRichTextLayer'](_0x46e25e,_0x427156,_0x32c33e,_0x1ff8f8);});}[_0x12df57(0x32d)](_0x345734,_0x414b77,_0xc11276,_0x235eff){const _0xb1e013=_0x12df57;let _0x1fd132=this['_props'][_0xb1e013(0x14c)];if(!_0x414b77[_0xb1e013(0x111)]||!_0x1fd132)return;let _0x1afca8=_0x4b5894(_0x414b77[_0xb1e013(0x111)]);if(!_0x1afca8)return;let _0x2a9145=_0x1afca8[_0xb1e013(0x1ec)];if(!_0x2a9145)return;let _0x396de5=_0xcf0742(_0x2a9145,_0x235eff),_0x1f1f57=_0x1afca8['va']??_0x52f567[_0xb1e013(0x1fa)],_0x2aae5d=_0x1afca8['ha']??_0x1358ac[_0xb1e013(0xe2)],_0x3192ed=Tr(this[_0xb1e013(0x2d8)][_0xb1e013(0x2ef)][_0xb1e013(0x26e)](),_0x414b77,_0x396de5),_0x25f295=_0x414b77[_0xb1e013(0x2c3)],_0x344789=_0x3e1d8c(_0x396de5,{'isHorizontal':_0x25f295!==!0x1,'textRect':_0xc11276,'verticalAlign':_0x1f1f57,'horizontalAlign':_0x2aae5d,'wrapStrategy':_0x3192ed[_0xb1e013(0x276)]}),_0x205dda=new _0x264790(_0x344789),_0x4920f8=new _0x35ef90(_0x205dda),_0x271d38=_0x5dcdb6['create'](_0x4920f8,_0x1fd132);_0x271d38[_0xb1e013(0x1a8)]();let _0x522f9e=_0x271d38[_0xb1e013(0xfd)]()['actualHeight'],_0x35f193=_0x527f17({'contentHeight':_0x522f9e,'verticalAlign':_0x1f1f57,'viewportHeight':_0xc11276[_0xb1e013(0x1b0)]});_0x205dda[_0xb1e013(0x13d)]({'pageSize':{'width':_0x25f295===!0x1?_0xc11276[_0xb1e013(0x1b0)]:_0xc11276['width'],'height':_0x1f1791(_0x396de5,_0x35f193[_0xb1e013(0x149)])}}),_0x205dda[_0xb1e013(0x24e)]({'t':_0x35f193[_0xb1e013(0x1b5)]}),_0x271d38[_0xb1e013(0x1a8)]();let _0x1a4db6=new _0x31b60a(_0xb1e013(0x22c)+this['oKey'],_0x271d38,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0xb1e013(0x161)](!0x0)});_0x1a4db6[_0xb1e013(0x189)](_0xc11276[_0xb1e013(0x1d1)],_0x35f193['contentHeight']),_0x345734[_0xb1e013(0x1ed)](),_0x345734[_0xb1e013(0x272)](_0xc11276['left'],_0xc11276[_0xb1e013(0x222)]),_0x3192ed[_0xb1e013(0x186)]&&(_0x345734[_0xb1e013(0x1e2)](),_0x345734['rect'](0x0,_0x35f193[_0xb1e013(0x159)],_0xc11276[_0xb1e013(0x1d1)],_0x35f193['clipHeight']),_0x345734[_0xb1e013(0x186)]()),_0x35f193[_0xb1e013(0x2bb)]&&_0x345734[_0xb1e013(0x272)](0x0,_0x35f193[_0xb1e013(0x2bb)]),_0x1a4db6[_0xb1e013(0x20b)](_0x345734),_0x345734[_0xb1e013(0x2e2)](),_0x1a4db6[_0xb1e013(0x2ed)](),_0x271d38[_0xb1e013(0x2ed)](),_0x4920f8[_0xb1e013(0x2ed)](),_0x205dda['dispose']();}[_0x12df57(0x361)](_0x14facb,_0x25d725,_0x26c49e=!0x1){const _0x10f9c3=_0x12df57;if(!this[_0x10f9c3(0x2b2)])return this['makeDirty'](!0x1),this;let {width:_0x5837f9,height:_0x4f8cf9,left:_0x10a3f1,top:_0x36d3d0}=this,_0x3132d9=this[_0x10f9c3(0x162)]();if(_0x5837f9=_0x3132d9['width'],_0x4f8cf9=_0x3132d9['height'],_0x10a3f1=_0x3132d9[_0x10f9c3(0x325)],_0x36d3d0=_0x3132d9[_0x10f9c3(0x222)],this[_0x10f9c3(0x365)](_0x25d725)){let {top:_0xc789e9,left:_0x5b1902,bottom:_0x166cbd,right:_0x27ed4f}=_0x25d725[_0x10f9c3(0x19c)];if(_0x5837f9+this[_0x10f9c3(0x29a)]+_0x10a3f1<_0x5b1902||_0x27ed4f<_0x10a3f1||_0x4f8cf9+this[_0x10f9c3(0x29a)]+_0x36d3d0<_0xc789e9||_0x166cbd<_0x36d3d0)return this;}let _0xdf0bba=_0x10a3f1+_0x5837f9/0x2,_0x271cfe=_0x36d3d0+_0x4f8cf9/0x2,_0x193506=this['transform'][_0x10f9c3(0x297)]();if(this[_0x10f9c3(0x2d8)][_0x10f9c3(0x1fe)]){let _0x503ce9=this[_0x10f9c3(0x14b)](),_0x13da70=new _0x64b010();_0x13da70[_0x10f9c3(0x29e)]({..._0x503ce9}),_0x193506=_0x13da70[_0x10f9c3(0x297)]();}return _0x14facb['save'](),this[_0x10f9c3(0x2d8)][_0x10f9c3(0x2ef)][_0x10f9c3(0x235)]===!0x0||_0x14facb[_0x10f9c3(0x114)](_0x193506[0x0],_0x193506[0x1],_0x193506[0x2],_0x193506[0x3],_0xdf0bba,_0x271cfe),this[_0x10f9c3(0x1ab)](_0x14facb,_0x25d725,_0x5837f9,_0x4f8cf9),_0x14facb[_0x10f9c3(0x2e2)](),this[_0x10f9c3(0x161)](!0x1),this;}[_0x12df57(0x146)](_0x12021d){const _0x36d46c=_0x12df57;let {left:_0x575541,top:_0x184388,width:_0x1b82ec,height:_0x55f550}=this[_0x36d46c(0x162)](),_0x12a58e=this[_0x36d46c(0x114)][_0x36d46c(0x297)](),_0x36e350=_0x575541+_0x1b82ec/0x2,_0x3b55c5=_0x184388+_0x55f550/0x2,_0x21f4dd=new _0x64b010([_0x12a58e[0x0],_0x12a58e[0x1],_0x12a58e[0x2],_0x12a58e[0x3],_0x36e350,_0x3b55c5]),_0x186c60=this['getParent']();return(this[_0x36d46c(0x2e6)]&&(_0x186c60==null?void 0x0:_0x186c60[_0x36d46c(0xdd)])===_0x48e82c[_0x36d46c(0x108)]?_0x186c60['ancestorTransform'][_0x36d46c(0x388)](_0x21f4dd):_0x21f4dd)[_0x36d46c(0x10b)]()[_0x36d46c(0x213)](_0x12021d);}[_0x12df57(0x22e)](_0x910f5){const _0x38c927=_0x12df57;let {left:_0x52449d,top:_0x55ef01,width:_0x54e967,height:_0xe0b006}=this['getRealBound'](),_0x58763e=_0x52449d+_0x54e967/0x2,_0x2b23b2=_0x55ef01+_0xe0b006/0x2,_0x2d74fb=this['transform'][_0x38c927(0x297)](),_0x3f6686=new _0x64b010([_0x2d74fb[0x0],_0x2d74fb[0x1],_0x2d74fb[0x2],_0x2d74fb[0x3],_0x58763e,_0x2b23b2]),_0x3b592c=this[_0x38c927(0x323)](),_0x179036=(this[_0x38c927(0x2e6)]&&(_0x3b592c==null?void 0x0:_0x3b592c[_0x38c927(0xdd)])===_0x48e82c[_0x38c927(0x108)]?_0x3b592c[_0x38c927(0x1db)][_0x38c927(0x388)](_0x3f6686):_0x3f6686)[_0x38c927(0x10b)]()['applyPoint'](_0x910f5),_0xd69cc=_0x54e967/0x2,_0x550ad0=_0xe0b006/0x2,_0x3dbd66=this['_props'][_0x38c927(0x2ef)];return _0x3dbd66&&_0x3dbd66[_0x38c927(0x1e5)]()?_0x3dbd66[_0x38c927(0x228)](_0x179036['x'],_0x179036['y'],_0x54e967,_0xe0b006):_0x179036['x']>=-_0xd69cc-this['strokeWidth']/0x2&&_0x179036['x']<=_0xd69cc+this[_0x38c927(0x29a)]/0x2&&_0x179036['y']>=-_0x550ad0-this[_0x38c927(0x29a)]/0x2&&_0x179036['y']<=_0x550ad0+this[_0x38c927(0x29a)]/0x2;}[_0x12df57(0x2ed)](){const _0x3dccc1=_0x12df57;this['_formulaAnimation'][_0x3dccc1(0x2ed)](),this[_0x3dccc1(0x2d8)][_0x3dccc1(0x2ef)]=null,super[_0x3dccc1(0x2ed)]();}},Dr=class extends _0x118028{constructor(_0x4032ac,_0x215c45){const _0xbfac23=_0x12df57;super(_0x4032ac,_0x215c45),q(this,_0xbfac23(0x1e1),null),q(this,_0xbfac23(0x38b),null),q(this,_0xbfac23(0xec),null),q(this,_0xbfac23(0x2cb),null),_0x215c45&&this[_0xbfac23(0x280)](_0x215c45);}[_0x12df57(0x1aa)](){const _0xb45418=_0x12df57;return{'unitId':this[_0xb45418(0xec)],'subUnitId':this[_0xb45418(0x2cb)],'drawingId':this[_0xb45418(0x1e1)]};}[_0x12df57(0x280)](_0x5d1191){const _0x3a2bde=_0x12df57;_0x5d1191[_0x3a2bde(0x2c6)]!==void 0x0&&(this[_0x3a2bde(0x1e1)]=_0x5d1191[_0x3a2bde(0x2c6)]),_0x5d1191[_0x3a2bde(0x223)]!==void 0x0&&(this[_0x3a2bde(0x38b)]=_0x5d1191[_0x3a2bde(0x223)]),_0x5d1191['unitId']!==void 0x0&&(this[_0x3a2bde(0xec)]=_0x5d1191[_0x3a2bde(0x21e)]),_0x5d1191[_0x3a2bde(0x179)]!==void 0x0&&(this[_0x3a2bde(0x2cb)]=_0x5d1191['subUnitId']),this[_0x3a2bde(0x11b)]({'width':_0x5d1191[_0x3a2bde(0x1d1)],'height':_0x5d1191[_0x3a2bde(0x1b0)]});}[_0x12df57(0x1ab)](_0x347c67){const _0x2e395d=_0x12df57;_0x2f4676['drawWith'](_0x347c67,{'radius':_0x19a828[_0x2e395d(0x139)],'fill':_0x19a828['adjHandleFill'],'stroke':_0x19a828['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function J(_0x218c3f,_0x2e06c1){return function(_0x4ae634,_0x22c7ac){_0x2e06c1(_0x4ae634,_0x22c7ac,_0x218c3f);};}function Y(_0x3a4745,_0x2f4d40,_0x1db91e,_0x4236af){const _0x2865d7=_0x12df57;var _0x5727cd=arguments['length'],_0x5d8383=_0x5727cd<0x3?_0x2f4d40:_0x4236af===null?_0x4236af=Object[_0x2865d7(0x278)](_0x2f4d40,_0x1db91e):_0x4236af,_0x3c9646;if(typeof Reflect==_0x2865d7(0x377)&&typeof Reflect[_0x2865d7(0x216)]=='function')_0x5d8383=Reflect[_0x2865d7(0x216)](_0x3a4745,_0x2f4d40,_0x1db91e,_0x4236af);else{for(var _0x48e083=_0x3a4745[_0x2865d7(0x1d0)]-0x1;_0x48e083>=0x0;_0x48e083--)(_0x3c9646=_0x3a4745[_0x48e083])&&(_0x5d8383=(_0x5727cd<0x3?_0x3c9646(_0x5d8383):_0x5727cd>0x3?_0x3c9646(_0x2f4d40,_0x1db91e,_0x5d8383):_0x3c9646(_0x2f4d40,_0x1db91e))||_0x5d8383);}return _0x5727cd>0x3&&_0x5d8383&&Object[_0x2865d7(0x30e)](_0x2f4d40,_0x1db91e,_0x5d8383),_0x5d8383;}let X=class extends _0x112f8d{constructor(_0x4eb332,_0x3406c8,_0x1fa494,_0x2890ff,_0x30b716,_0x5abf2b){const _0x39b314=_0x12df57;super(),this[_0x39b314(0x12f)]=_0x4eb332,this[_0x39b314(0x261)]=_0x3406c8,this['_localeService']=_0x1fa494,this[_0x39b314(0x326)]=_0x2890ff,this[_0x39b314(0x244)]=_0x30b716,this['_shapeFormulaService']=_0x5abf2b,q(this,_0x39b314(0x101),new Map()),this[_0x39b314(0x200)](this[_0x39b314(0x345)][_0x39b314(0x117)][_0x39b314(0xee)](_0xf86577=>{const _0x4b81e4=_0x39b314;var _0x1bce4a;(_0x1bce4a=this[_0x4b81e4(0x101)][_0x4b81e4(0x1bd)](this[_0x4b81e4(0x28a)](_0xf86577[_0x4b81e4(0x21e)],_0xf86577[_0x4b81e4(0x179)],_0xf86577[_0x4b81e4(0x2c6)])))==null||_0x1bce4a[_0x4b81e4(0x28d)](_0x590fc9=>_0x590fc9[_0x4b81e4(0x190)](_0xf86577[_0x4b81e4(0x387)],_0xf86577[_0x4b81e4(0x211)]));})),this[_0x39b314(0x200)](this[_0x39b314(0x12f)][_0x39b314(0x16a)][_0x39b314(0xee)](_0x1fb091=>{const _0x25a123=_0x39b314;_0x1fb091[_0x25a123(0x28d)](_0x2644da=>{const _0xc8d936=_0x25a123;this['_shapeFormulaService'][_0xc8d936(0x185)]({'unitId':_0x2644da[_0xc8d936(0x21e)],'subUnitId':_0x2644da[_0xc8d936(0x179)],'shapeId':_0x2644da['drawingId']}),this[_0xc8d936(0x101)]['delete'](this[_0xc8d936(0x28a)](_0x2644da['unitId'],_0x2644da['subUnitId'],_0x2644da[_0xc8d936(0x248)]));});}));}[_0x12df57(0xd7)](_0x332a31,_0xd7fea5,_0x1c9013){const _0x1ca495=_0x12df57;let {transform:_0x587b51,drawingType:_0x4e7379,srcRect:_0x2ce1f0,prstGeom:_0xcbd15a,groupId:_0x46c3c9,unitId:_0x477b96,subUnitId:_0x3f912e,drawingId:_0x32fc3f,isMultiTransform:_0xe0711c,transforms:_0x23e48e,hidden:_0x2aec66,selectable:_0x52a8f7}=_0x332a31;if(_0x4e7379!==_0x51ad3e[_0x1ca495(0x305)]||!this[_0x1ca495(0x12f)]['getDrawingVisible']()||_0x587b51==null)return;let _0x2bddb5=this[_0x1ca495(0x12f)][_0x1ca495(0x2ce)](),_0x3a3e00=_0xe0711c&&_0x23e48e?_0x23e48e:[_0x587b51],_0x56c83c=[];for(let _0x5af709 of _0x3a3e00){let {left:_0xba8a5d,top:_0x5f5156,width:_0x174276,height:_0x58250a,angle:_0x482df1,flipX:_0x21489a,flipY:_0x5d9f02,skewX:_0x7b961a,skewY:_0x23864e}=_0x5af709,_0x1ae33c=_0x3a3e00[_0x1ca495(0x37a)](_0x5af709),_0x3df434=_0x5b432f({'unitId':_0x477b96,'subUnitId':_0x3f912e,'drawingId':_0x32fc3f},_0xe0711c?_0x1ae33c:void 0x0),_0x187020=_0xd7fea5[_0x1ca495(0x130)](_0x3df434);if(_0x187020!=null){let _0x9b2e70={'unitId':_0x477b96,'subUnitId':_0x3f912e,'shapeId':_0x32fc3f};_0x187020 instanceof Er&&this['refreshFormulaPresentation'](_0x187020,_0x9b2e70),_0x187020[_0x1ca495(0x11b)]({'left':_0xba8a5d,'top':_0x5f5156,'width':_0x174276,'height':_0x58250a,'angle':_0x482df1,'flipX':_0x21489a,'flipY':_0x5d9f02,'skewX':_0x7b961a,'skewY':_0x23864e});continue;}let _0x3c7e8d=this[_0x1ca495(0x12f)][_0x1ca495(0x16c)](_0x477b96,_0x3f912e),_0x7d98e2=_0x3c7e8d[_0x1ca495(0x37a)](_0x32fc3f);if(_0xd7fea5[_0x1ca495(0x130)](_0x3df434)||!this[_0x1ca495(0x12f)][_0x1ca495(0x121)]())continue;let _0x258ff8=this[_0x1ca495(0x261)]['getShapeModel'](_0x477b96,_0x3f912e,_0x32fc3f);if(!_0x258ff8)continue;let _0x36588f=_0x5350d3(_0x258ff8[_0x1ca495(0x23d)]())?{..._0x23c009,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x23c009,_0x1eab10=_0x258ff8[_0x1ca495(0x26e)]()[_0x1ca495(0x35a)],_0xcedaa8={'unitId':_0x477b96,'subUnitId':_0x3f912e,'shapeId':_0x32fc3f};_0x1eab10&&this[_0x1ca495(0x345)][_0x1ca495(0x333)](_0xcedaa8,_0x1eab10);let _0x2f5914=new Er(_0x3df434,{..._0x5af709,'zIndex':_0x7d98e2===-0x1?_0x3c7e8d['length']-0x1:_0x7d98e2,'shapeModel':_0x258ff8,'localeService':this[_0x1ca495(0x1ac)],'shapeId':_0x32fc3f,'unitId':_0x477b96,'subUnitId':_0x3f912e,'visible':_0x2aec66!==!0x0,'evented':_0x52a8f7!==!0x1,'formulaPresentation':_0x1eab10?this[_0x1ca495(0x345)][_0x1ca495(0x1d8)](_0xcedaa8):void 0x0,'animateFormulaPresentation':(_0x1eab10==null?void 0x0:_0x1eab10[_0x1ca495(0x211)])!==!0x1,'transformerConfig':_0x36588f});if(_0x1eab10){let _0x415ef1=this[_0x1ca495(0x28a)](_0x477b96,_0x3f912e,_0x32fc3f),_0x216cb0=this[_0x1ca495(0x101)][_0x1ca495(0x1bd)](_0x415ef1)??new Set();_0x216cb0[_0x1ca495(0x362)](_0x2f5914),this[_0x1ca495(0x101)][_0x1ca495(0x132)](_0x415ef1,_0x216cb0);}_0xd7fea5[_0x1ca495(0x2e0)](_0x2f5914,_0x434827),_0x2bddb5&&_0xd7fea5[_0x1ca495(0x2db)](_0x2f5914),_0x46c3c9&&_0x106b64({'drawingId':_0x46c3c9,'unitId':_0x477b96,'subUnitId':_0x3f912e},_0x2f5914,_0xd7fea5,this[_0x1ca495(0x12f)]),_0xcbd15a!=null&&_0x2f5914[_0x1ca495(0x229)](_0xcbd15a),_0x2ce1f0!=null&&_0x2f5914[_0x1ca495(0x257)](_0x2ce1f0);let _0x253f44=this[_0x1ca495(0x141)](_0x2f5914,_0x258ff8[_0x1ca495(0x26e)]());if(_0x253f44){var _0x571961;_0x1c9013==null||(_0x571961=_0x1c9013[_0x1ca495(0x301)])==null||_0x571961[_0x1ca495(0x362)](_0x253f44);}_0x56c83c[_0x1ca495(0x31d)](_0x2f5914);}return _0x56c83c;}[_0x12df57(0x28a)](_0x476ce6,_0x4e0870,_0x1b79fc){return _0x476ce6+'\x00'+_0x4e0870+'\x00'+_0x1b79fc;}[_0x12df57(0x36e)](_0xe3581b,_0x567e55){const _0x3b534f=_0x12df57;let _0x1e7e6d=this['_sheetsShapeService']['getShapeModel'](_0x567e55['unitId'],_0x567e55['subUnitId'],_0x567e55[_0x3b534f(0x2c6)]),_0xa6d3bd=_0x1e7e6d==null?void 0x0:_0x1e7e6d[_0x3b534f(0x26e)]()['formulaBinding'],_0x56e8ec=this[_0x3b534f(0x28a)](_0x567e55[_0x3b534f(0x21e)],_0x567e55[_0x3b534f(0x179)],_0x567e55['shapeId']);if(_0xa6d3bd){this[_0x3b534f(0x345)][_0x3b534f(0x333)](_0x567e55,_0xa6d3bd);let _0x19ae66=this[_0x3b534f(0x101)][_0x3b534f(0x1bd)](_0x56e8ec)??new Set();_0x19ae66[_0x3b534f(0x362)](_0xe3581b),this[_0x3b534f(0x101)][_0x3b534f(0x132)](_0x56e8ec,_0x19ae66);}else{var _0x2bcd76;this[_0x3b534f(0x345)][_0x3b534f(0x185)](_0x567e55),(_0x2bcd76=this[_0x3b534f(0x101)][_0x3b534f(0x1bd)](_0x56e8ec))==null||_0x2bcd76['delete'](_0xe3581b);}_0xe3581b[_0x3b534f(0x190)](_0xa6d3bd?this[_0x3b534f(0x345)][_0x3b534f(0x1d8)](_0x567e55):void 0x0,(_0xa6d3bd==null?void 0x0:_0xa6d3bd[_0x3b534f(0x211)])!==!0x1);}[_0x12df57(0x1eb)](_0x5b25b4){const _0x4f8238=_0x12df57;let _0x127f84=_0x5b25b4[_0x4f8238(0x2ef)]['getShapeData'](),_0x4dd6cc=_0x127f84[_0x4f8238(0x287)];if(!_0x4dd6cc||_0x4dd6cc[_0x4f8238(0x2df)]!==_0x2944dd[_0x4f8238(0x352)]||!_0x4dd6cc[_0x4f8238(0x277)]){_0x5b25b4['setFillImage'](void 0x0);return;}this[_0x4f8238(0x141)](_0x5b25b4,_0x127f84);}[_0x12df57(0x141)](_0x434a35,_0x4f4ed6){const _0x191643=_0x12df57;let _0x4d5739=_0x4f4ed6[_0x191643(0x287)];if(!_0x4d5739||_0x4d5739[_0x191643(0x2df)]!==_0x2944dd['PictureFill']||!_0x4d5739[_0x191643(0x277)])return;let _0x34724f=_0x4d5739[_0x191643(0x277)],_0x441634=_0x4d5739['fillImageSourceType']??_0x57c813['URL'],_0x582649=this[_0x191643(0x326)][_0x191643(0x25e)](_0x34724f,_0x441634);if(_0x582649){_0x434a35['setFillImage'](_0x582649);return;}return this[_0x191643(0x26c)](_0x434a35,_0x34724f,_0x441634);}async[_0x12df57(0x26c)](_0xaad7c0,_0x5dc0e4,_0x59837b){const _0x39cb6e=_0x12df57;let _0x1223b3;try{if(_0x59837b===_0x57c813[_0x39cb6e(0x366)])_0x1223b3=await this[_0x39cb6e(0x326)][_0x39cb6e(0xe7)](_0x5dc0e4);else{if(_0x59837b===_0x57c813[_0x39cb6e(0x262)])try{_0x1223b3=await this['_urlImageService'][_0x39cb6e(0xe7)](_0x5dc0e4);}catch{_0x1223b3=_0x5dc0e4;}else _0x1223b3=_0x5dc0e4;}}catch(_0x26f360){console[_0x39cb6e(0x171)](_0x39cb6e(0x104),_0x26f360);return;}await new Promise(_0x380d22=>{const _0x142b9a=_0x39cb6e;let _0x5dbc98=new window[(_0x142b9a(0x153))]();_0x5dbc98[_0x142b9a(0x143)]=()=>{const _0x2e98fd=_0x142b9a;this[_0x2e98fd(0x326)][_0x2e98fd(0x34a)](_0x5dc0e4,_0x59837b,_0x5dbc98),_0xaad7c0[_0x2e98fd(0x27f)](_0x5dbc98),_0x380d22();},_0x5dbc98[_0x142b9a(0x18a)]=()=>{const _0x210d8f=_0x142b9a;console[_0x210d8f(0x171)](_0x210d8f(0x329),_0x5dc0e4),_0x380d22();},_0x5dbc98[_0x142b9a(0x1e7)]=_0x1223b3;});}};X=Y([J(0x0,_0x5b31b6),J(0x1,_0x441dea(_0x2da406)),J(0x2,_0x441dea(_0xbd5d6b)),J(0x3,_0x3aecb3),J(0x4,_0x1f4f01),J(0x5,_0x441dea(_0x2705f0))],X);let Z=class extends _0x112f8d{constructor(_0x1db204,_0x561577,_0x3ac8e7,_0x2fdf82,_0x503be7,_0x40bea6){const _0x28e167=_0x12df57;super(),this[_0x28e167(0x12f)]=_0x1db204,this[_0x28e167(0x261)]=_0x561577,this[_0x28e167(0x110)]=_0x3ac8e7,this[_0x28e167(0xda)]=_0x2fdf82,this[_0x28e167(0xe4)]=_0x503be7,this[_0x28e167(0x346)]=_0x40bea6,q(this,_0x28e167(0x358),null),q(this,_0x28e167(0xec),null),q(this,_0x28e167(0x2cb),null),q(this,'_activeShapeAdjustPointList',void 0x0),q(this,_0x28e167(0x198),[]),q(this,'_baseShapeLeft',0x0),q(this,_0x28e167(0x2b9),0x0),q(this,_0x28e167(0x1fc),0x0),q(this,_0x28e167(0x13f),0x0),q(this,_0x28e167(0x1a2),!0x1),q(this,_0x28e167(0xde),void 0x0),q(this,'_activeShapeModel',void 0x0),q(this,_0x28e167(0x2c4),void 0x0),q(this,_0x28e167(0x2a1),void 0x0),q(this,_0x28e167(0x11f),!0x1),this[_0x28e167(0x13e)](),this['_registerDrawingMoveHandler']();}[_0x12df57(0x298)](_0x159cdd,_0x132e32,_0xc38b2b){const _0x56c296=_0x12df57;let _0x216274=this['_sheetsShapeService'][_0x56c296(0x337)](_0x159cdd,_0x132e32,_0xc38b2b);if(_0x216274)return _0x216274[_0x56c296(0x2ad)]();}[_0x12df57(0x2f4)](){const _0x5b73d0=_0x12df57;this[_0x5b73d0(0x11a)]();}[_0x12df57(0x384)](){const _0x24de1a=_0x12df57;this[_0x24de1a(0x281)](!0x0);}[_0x12df57(0x330)](_0x49f7c0){const _0x4fd4f8=_0x12df57;this[_0x4fd4f8(0x11f)]=_0x49f7c0;}[_0x12df57(0xf8)](_0x7fdbda,_0x539083,_0x1ca10c,_0x6ba6f0){const _0x327846=_0x12df57;let _0x169769=this[_0x327846(0x261)][_0x327846(0x337)](_0x7fdbda,_0x539083,_0x1ca10c);if(_0x169769)return _0x169769['getAdjustInfoByName'](_0x6ba6f0);}['_createShapeAdjustControls'](_0x27502f=!0x1){const _0x1e217c=_0x12df57;if(this[_0x1e217c(0xec)]===null||this[_0x1e217c(0x2cb)]===null||this[_0x1e217c(0x358)]===null)return;let _0x307c06=this[_0x1e217c(0x110)][_0x1e217c(0x269)](this[_0x1e217c(0xec)]);if(!_0x307c06||!_0x307c06[_0x1e217c(0x2f8)](_0x4e2ccb)[_0x1e217c(0x1b1)]())return;let {scene:_0x233bc4}=_0x307c06,_0x3e0005={'unitId':this['_unitId'],'subUnitId':this[_0x1e217c(0x2cb)],'drawingId':this[_0x1e217c(0x358)]},_0x33d82f=this[_0x1e217c(0x12f)][_0x1e217c(0x27d)](_0x3e0005),{transform:_0x40a6a6}=_0x33d82f;if(!_0x40a6a6||_0x33d82f[_0x1e217c(0x309)]!==_0x51ad3e['DRAWING_SHAPE'])return;let {left:_0x2a1d19,top:_0x1532d4,width:_0x19a938,height:_0x27723c,flipX:_0x2d9e68,flipY:_0x1133e2,angle:_0x1dbf27=0x0}=_0x40a6a6;if(_0x2a1d19===void 0x0||_0x1532d4===void 0x0)return;if(_0x27502f){let _0x1f5b10=this[_0x1e217c(0x261)]['getShapeModel'](this['_unitId'],this['_subUnitId'],this[_0x1e217c(0x358)]);_0x1f5b10==null||_0x1f5b10[_0x1e217c(0x205)]({'width':_0x19a938??0x0,'height':_0x27723c??0x0}),this[_0x1e217c(0x1f7)]=_0x1f5b10==null?void 0x0:_0x1f5b10[_0x1e217c(0x2ad)]();}let _0x5bdd00=this[_0x1e217c(0x1f7)];for(let _0x30abdc=0x0;_0x30abdc<_0x5bdd00[_0x1e217c(0x1d0)];_0x30abdc++){let _0x1c7452=_0x5bdd00[_0x30abdc],_0x2c18f0=_0x1c7452['x'],_0x3c18dd=_0x1c7452['y'];if(_0x2d9e68&&(_0x2c18f0=(_0x19a938||0x0)-_0x2c18f0),_0x1133e2&&(_0x3c18dd=(_0x27723c||0x0)-_0x3c18dd),_0x1dbf27!==0x0){let _0x914119=(_0x19a938||0x0)/0x2,_0x558b79=(_0x27723c||0x0)/0x2,_0x148af3=_0x1dbf27*Math['PI']/0xb4,_0x24a183=Math['cos'](_0x148af3),_0x3cde8a=Math['sin'](_0x148af3),_0x5842c7=_0x2c18f0-_0x914119,_0x47c7f7=_0x3c18dd-_0x558b79;_0x2c18f0=_0x914119+(_0x5842c7*_0x24a183-_0x47c7f7*_0x3cde8a),_0x3c18dd=_0x558b79+(_0x5842c7*_0x3cde8a+_0x47c7f7*_0x24a183);}let _0x21f40b={'x':_0x2c18f0,'y':_0x3c18dd,'adjName':_0x1c7452[_0x1e217c(0x223)]};this[_0x1e217c(0x1f1)](_0x233bc4,_0x21f40b,_0x21f40b[_0x1e217c(0x223)],_0x2a1d19,_0x1532d4,this[_0x1e217c(0xec)],this[_0x1e217c(0x2cb)]);}}[_0x12df57(0x281)](_0x449cd2=!0x1){const _0x3ca9ae=_0x12df57;_0x449cd2&&(this['_clearShapeAdjustControls'](),this[_0x3ca9ae(0x199)](_0x449cd2));}[_0x12df57(0x1f1)](_0x4e4ec0,_0x318b13,_0x4bdd90,_0x42010d,_0x18e174,_0x2cd9a4,_0x53b3b1){const _0x28356b=_0x12df57;if(!this[_0x28356b(0x358)])return;let _0x254fe8=_0x4e4ec0[_0x28356b(0x130)]('shape-adjust-point-'+this[_0x28356b(0x358)]+'-'+_0x4bdd90);if(_0x254fe8){_0x254fe8[_0x28356b(0x11b)]({'left':_0x318b13['x']+_0x42010d-_0x19a828['adjHandleSize'],'top':_0x318b13['y']+_0x18e174-_0x19a828[_0x28356b(0x139)]});return;}let _0x4fbd53={'left':_0x318b13['x']+_0x42010d-_0x19a828[_0x28356b(0x139)],'top':_0x318b13['y']+_0x18e174-_0x19a828[_0x28356b(0x139)],'adjName':_0x4bdd90,'shapeId':this[_0x28356b(0x358)],'unitId':_0x2cd9a4,'subUnitId':_0x53b3b1,'width':_0x19a828['adjHandleSize']+0x8,'height':_0x19a828[_0x28356b(0x139)]+0x8,'zIndex':_0x434827+0x1,'evented':!0x0},_0x564ae8=new Dr(_0x28356b(0x109)+this[_0x28356b(0x358)]+'-'+_0x4bdd90,_0x4fbd53);this[_0x28356b(0x198)][_0x28356b(0x31d)](_0x564ae8),this[_0x28356b(0x38c)](_0x564ae8,_0x4e4ec0,_0x4bdd90),_0x4e4ec0[_0x28356b(0x2e0)](_0x564ae8,_0x434827+0x1);}[_0x12df57(0x11a)](){const _0xfe9137=_0x12df57;this[_0xfe9137(0x198)]['length']!==0x0&&(this[_0xfe9137(0x198)][_0xfe9137(0x28d)](_0x5ca070=>{_0x5ca070['dispose']();}),this[_0xfe9137(0x198)]=[]);}[_0x12df57(0xe5)](){const _0x58f573=_0x12df57;this[_0x58f573(0x199)]();}[_0x12df57(0x237)](_0x1f8010,_0x29f5b7){const _0x31a7e3=_0x12df57;var _0x1a9f55;let _0x27e8b7={'x':0x0,'y':0x0};if(!_0x1f8010||!_0x29f5b7)return _0x27e8b7;let _0xdffbe=this[_0x31a7e3(0x110)]['getRenderUnitById'](_0x1f8010);if(!_0xdffbe||!_0xdffbe['with'](_0x4e2ccb)[_0x31a7e3(0x28c)](_0x29f5b7))return _0x27e8b7;let _0x1c01c4=_0xdffbe[_0x31a7e3(0x2f8)](_0xb28c90),_0x47cbb7=_0x1c01c4==null?void 0x0:_0x1c01c4[_0x31a7e3(0x1dd)]();if(!_0x47cbb7)return _0x27e8b7;let _0x3bbb4b=(_0x1a9f55=this[_0x31a7e3(0xe4)][_0x31a7e3(0xf6)](_0x1f8010))==null?void 0x0:_0x1a9f55['getSheetBySheetId'](_0x29f5b7);if(!_0x3bbb4b)return _0x27e8b7;let _0x33382b=_0xd77f2d(_0x47cbb7['sheetViewStartRow'],_0x47cbb7[_0x31a7e3(0x33b)],_0xdffbe['scene'],_0x3bbb4b);return _0x33382b?{'x':_0x33382b[_0x31a7e3(0x2d2)],'y':_0x33382b[_0x31a7e3(0x1c3)]}:_0x27e8b7;}['_getZoomRatio'](_0x435ae3,_0x2440c5){const _0x3b0bd6=_0x12df57;var _0x859318;let _0x55668e=(_0x859318=this[_0x3b0bd6(0xe4)][_0x3b0bd6(0xf6)](_0x435ae3))==null?void 0x0:_0x859318[_0x3b0bd6(0x116)](_0x2440c5);return(_0x55668e==null?void 0x0:_0x55668e[_0x3b0bd6(0x26f)]())??0x1;}[_0x12df57(0x38c)](_0xac28ae,_0x59493b,_0x427050){const _0x3e1b95=_0x12df57;this[_0x3e1b95(0x200)](_0x1152a8(_0xac28ae['onPointerDown$'][_0x3e1b95(0x35f)]((_0x41928b,_0x538365)=>{const _0x2639ce=_0x3e1b95;var _0x18a75c,_0x505403,_0x2b9c2a,_0x2cc133;let _0x29bf8f=_0xac28ae[_0x2639ce(0x1aa)]();this['_activeAdjustInfo']=this['_getShapeAdjustInfosById'](_0x29bf8f['unitId'],_0x29bf8f[_0x2639ce(0x179)],_0x29bf8f['drawingId'],_0x427050),this[_0x2639ce(0x2b6)]=this[_0x2639ce(0x261)][_0x2639ce(0x337)](_0x29bf8f[_0x2639ce(0x21e)],_0x29bf8f[_0x2639ce(0x179)],_0x29bf8f[_0x2639ce(0x248)]);let _0x3aa032=this[_0x2639ce(0x12f)][_0x2639ce(0x27d)]({'unitId':this['_unitId'],'subUnitId':this[_0x2639ce(0x2cb)],'drawingId':this['_activeShapeId']}),{transform:_0x15be82}=_0x3aa032;if(_0x15be82){let {left:_0x195f4c,top:_0x543970,width:_0x4cc8cb,height:_0x470a7a}=_0x15be82;this[_0x2639ce(0x24c)]=_0x195f4c||0x0,this[_0x2639ce(0x2b9)]=_0x543970||0x0,this[_0x2639ce(0x1fc)]=_0x4cc8cb||0x0,this[_0x2639ce(0x13f)]=_0x470a7a||0x0;}let _0x1867ca=!!((_0x18a75c=_0x3aa032[_0x2639ce(0x114)])!=null&&_0x18a75c['flipX']),_0x1849ec=!!((_0x505403=_0x3aa032[_0x2639ce(0x114)])!=null&&_0x505403[_0x2639ce(0x178)]),_0x5e4936=((_0x2b9c2a=_0x3aa032['transform'])==null?void 0x0:_0x2b9c2a[_0x2639ce(0x354)])||0x0;this[_0x2639ce(0x1a2)]=!0x0,_0x59493b[_0x2639ce(0xeb)]();let _0x48b251={...((_0x2cc133=this['_activeAdjustInfo'])==null?void 0x0:_0x2cc133[_0x2639ce(0x320)])??{}};this[_0x2639ce(0x2c4)]=_0x59493b[_0x2639ce(0x2fb)][_0x2639ce(0x35f)]((_0x3e5ffc,_0x37dd0f)=>{const _0x381a03=_0x2639ce;if(!this[_0x381a03(0x1a2)])return;let {offsetX:_0x37b205,offsetY:_0x43369d}=_0x3e5ffc,_0x4c2615=this['_activeAdjustInfo'];if(this['_activeShapeModel']&&_0x4c2615){_0x59493b['disableObjectsEvent'](),_0x59493b['setCursor'](_0x2cc79d[_0x381a03(0x21f)]);let _0x5ad915={'left':0x0,'top':0x0,'width':this[_0x381a03(0x1fc)],'height':this[_0x381a03(0x13f)]},_0x575497=this[_0x381a03(0x237)](this[_0x381a03(0xec)],this['_subUnitId']),_0x10f8d5=this[_0x381a03(0x12c)](this[_0x381a03(0xec)],this[_0x381a03(0x2cb)]),_0x194373=_0x37b205/_0x10f8d5+_0x575497['x']-this[_0x381a03(0x24c)],_0xafa076=_0x43369d/_0x10f8d5+_0x575497['y']-this[_0x381a03(0x2b9)];if(_0x5e4936!==0x0){let _0x53d24b=this[_0x381a03(0x1fc)]/0x2,_0x4afd3a=this[_0x381a03(0x13f)]/0x2,_0x1b765a=_0x5e4936*Math['PI']/0xb4,_0x34e19a=Math[_0x381a03(0x27a)](_0x1b765a),_0xa26d4d=Math['sin'](_0x1b765a),_0x40f6fb=_0x194373-_0x53d24b,_0x148792=_0xafa076-_0x4afd3a;_0x194373=_0x53d24b+(_0x40f6fb*_0x34e19a+_0x148792*_0xa26d4d),_0xafa076=_0x4afd3a+(-_0x40f6fb*_0xa26d4d+_0x148792*_0x34e19a);}_0x1867ca&&(_0x194373=this['_baseShapeWidth']-_0x194373),_0x1849ec&&(_0xafa076=this[_0x381a03(0x13f)]-_0xafa076);let _0x12fe0c={'x':_0x194373,'y':_0xafa076},_0x147ef1=this[_0x381a03(0x2b6)][_0x381a03(0x285)](_0x5ad915,_0x12fe0c,_0x4c2615,_0x1867ca,_0x1849ec);if(Object[_0x381a03(0xf4)](_0x147ef1)[_0x381a03(0x1d0)]===0x0)return;for(let [_0x552f1f,_0xcbf616]of Object['entries'](_0x147ef1))this[_0x381a03(0x2b6)][_0x381a03(0x207)](_0x552f1f,_0xcbf616);this[_0x381a03(0x2b6)][_0x381a03(0x205)]({'width':this[_0x381a03(0x1fc)],'height':this[_0x381a03(0x13f)]});let _0x3087d1=this[_0x381a03(0x12f)][_0x381a03(0x27d)]({'unitId':_0x29bf8f['unitId'],'subUnitId':_0x29bf8f['subUnitId'],'drawingId':_0x29bf8f[_0x381a03(0x248)]});_0x3087d1&&(this[_0x381a03(0xda)]['renderDrawingShape'](_0x3087d1,_0x59493b),this[_0x381a03(0x1f7)]=this['_getShapeAdjustPointListById'](_0x29bf8f[_0x381a03(0x21e)],_0x29bf8f[_0x381a03(0x179)],_0x29bf8f[_0x381a03(0x248)]),this[_0x381a03(0xe5)]());}_0x37dd0f[_0x381a03(0x33d)]();}),this[_0x2639ce(0x2a1)]=_0x59493b[_0x2639ce(0x23b)][_0x2639ce(0x35f)]((_0x1865c6,_0x1115d0)=>{const _0x332b7c=_0x2639ce;this[_0x332b7c(0x2c4)]['unsubscribe'](),this[_0x332b7c(0x2a1)][_0x332b7c(0x2f1)](),_0x59493b[_0x332b7c(0x35e)]();let _0xeac5a1=this[_0x332b7c(0xde)];if(_0xeac5a1){let _0x2bac91=_0x29bf8f[_0x332b7c(0x21e)],_0x7b93d1=_0x29bf8f[_0x332b7c(0x179)],_0x170eae=_0x29bf8f[_0x332b7c(0x248)],_0x152bb6={};for(let _0x260d29 of Object[_0x332b7c(0xf4)](_0xeac5a1[_0x332b7c(0x320)])){var _0xa14908;let _0x3bb001=(_0xa14908=this[_0x332b7c(0x2b6)])==null?void 0x0:_0xa14908[_0x332b7c(0x30f)](_0x260d29);_0x3bb001!==void 0x0&&(_0x152bb6[_0x260d29]=_0x3bb001);}Object[_0x332b7c(0xf4)](_0x152bb6)['length']>0x0&&br(this[_0x332b7c(0x346)],_0x2bac91,_0x7b93d1,_0x170eae,{'oldShapeData':{'adjustValues':_0x48b251}},{'adjustValues':_0x152bb6});}this[_0x332b7c(0xde)]=void 0x0,this[_0x332b7c(0x2b6)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x1115d0[_0x332b7c(0x33d)](),_0x59493b[_0x332b7c(0x1b2)]();}),_0x538365[_0x2639ce(0x33d)]();})));}[_0x12df57(0x31c)](){const _0x27f26e=_0x12df57;let _0x10cb36=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x43974e[_0x27f26e(0x29c)]);this[_0x27f26e(0x200)](_0x10cb36['pipe'](_0x3339fd(_0x6e768=>_0x6e768?_0x6e768[_0x27f26e(0x166)][_0x27f26e(0x125)](_0x3339fd(_0x2d11e8=>{const _0x567607=_0x27f26e;if(!_0x2d11e8)return _0x510d35;let _0xff3ace=_0x6e768[_0x567607(0xfb)](),_0x32c59b=this[_0x567607(0x110)][_0x567607(0x269)](_0xff3ace),_0x149d9f=_0x32c59b==null?void 0x0:_0x32c59b['scene'];return _0x149d9f?_0xcf385(_0x149d9f):_0x510d35;})):_0x510d35))[_0x27f26e(0xee)](_0xe8c76f=>{const _0x8aa541=_0x27f26e;let _0x57f91d=_0xe8c76f[_0x8aa541(0x1a6)]();this['disposeWithMe'](_0xe8c76f['onPointerMove$'][_0x8aa541(0x35f)](()=>{const _0xe439fd=_0x8aa541;this[_0xe439fd(0x11f)];})),this[_0x8aa541(0x200)](_0x57f91d[_0x8aa541(0x292)][_0x8aa541(0xee)](_0x5404e9=>{const _0x3fe359=_0x8aa541;let {objects:_0x27e6e8}=_0x5404e9;this['_createShapeAdjustControls'](),_0x27e6e8!==null&&_0x27e6e8[_0x3fe359(0x165)]===0x1&&_0x27e6e8[_0x3fe359(0x2a6)]()['next']()[_0x3fe359(0x156)]instanceof Er&&this[_0x3fe359(0x330)](!0x0);})),this[_0x8aa541(0x200)](_0x57f91d['changing$'][_0x8aa541(0xee)](()=>{const _0x185f19=_0x8aa541;this[_0x185f19(0x11f)]&&this['_clearShapeAdjustControls']();})),this[_0x8aa541(0x200)](_0xe8c76f['onPointerUp$'][_0x8aa541(0x35f)](()=>{const _0x412ee9=_0x8aa541;this[_0x412ee9(0x11f)]&&(this['setShouldShowAdjust'](!0x1),this[_0x412ee9(0x199)]());})),this[_0x8aa541(0x200)](_0x57f91d[_0x8aa541(0x18b)][_0x8aa541(0xee)](()=>{const _0xf0b91c=_0x8aa541;this[_0xf0b91c(0xec)]&&this[_0xf0b91c(0x2cb)]&&this['_activeShapeId']&&this[_0xf0b91c(0x12f)][_0xf0b91c(0x27d)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0xf0b91c(0x358)]})&&(this['_activeShapeAdjustPointList']=this[_0xf0b91c(0x298)](this['_unitId'],this[_0xf0b91c(0x2cb)],this[_0xf0b91c(0x358)]),this[_0xf0b91c(0xe5)]());}));}));}[_0x12df57(0x13e)](){const _0x5ae658=_0x12df57;this[_0x5ae658(0x200)](this[_0x5ae658(0x346)][_0x5ae658(0x2d9)](_0x4d6171=>{const _0x1978e7=_0x5ae658;if(_0x4d6171['id']!==_0x11226d['id'])return;let {unitId:_0x4fff24,subUnitId:_0x4ec218,shapeId:_0x194d70}=_0x4d6171[_0x1978e7(0x240)];_0x4fff24===this['_unitId']&&_0x4ec218===this[_0x1978e7(0x2cb)]&&_0x194d70===this['_activeShapeId']&&this[_0x1978e7(0x384)]();})),this[_0x5ae658(0x200)](this[_0x5ae658(0x12f)][_0x5ae658(0x20f)]['subscribe'](_0x463970=>{const _0xa1da64=_0x5ae658;if(_0x463970['length']===0x1){let _0x218719=_0x463970[0x0];if(_0x218719[_0xa1da64(0x309)]===_0x51ad3e[_0xa1da64(0x305)]&&this[_0xa1da64(0xe4)][_0xa1da64(0x21a)](_0x218719[_0xa1da64(0x21e)])===_0x43974e[_0xa1da64(0x29c)]){this[_0xa1da64(0x358)]=_0x218719[_0xa1da64(0x248)];let {unitId:_0x153cfb,subUnitId:_0x4bd9f8}=_0x218719;this['_activeShapeAdjustPointList']=this[_0xa1da64(0x298)](_0x153cfb,_0x4bd9f8,this[_0xa1da64(0x358)]),this[_0xa1da64(0xec)]=_0x153cfb,this[_0xa1da64(0x2cb)]=_0x4bd9f8,this[_0xa1da64(0x11a)](),this[_0xa1da64(0x199)]();return;}}this[_0xa1da64(0x358)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0xa1da64(0xec)]=null,this[_0xa1da64(0x2cb)]=null,this[_0xa1da64(0x11a)]();})),this[_0x5ae658(0x200)](this[_0x5ae658(0x12f)]['update$'][_0x5ae658(0xee)](_0x40548a=>{const _0x427b82=_0x5ae658;if(_0x40548a['length']===0x1){var _0xcbc0b0;let _0x468a8a=_0x40548a[0x0];((_0xcbc0b0=this[_0x427b82(0x12f)]['getDrawingByParam'](_0x468a8a))==null?void 0x0:_0xcbc0b0['drawingType'])===_0x51ad3e[_0x427b82(0x305)]&&this[_0x427b82(0x281)](!0x0);}})),this[_0x5ae658(0x200)](this[_0x5ae658(0x12f)][_0x5ae658(0x16a)]['subscribe'](_0xb4a164=>{const _0x5b6932=_0x5ae658;for(let _0x174eaf of _0xb4a164)this['_activeShapeId']===_0x174eaf[_0x5b6932(0x248)]&&(this[_0x5b6932(0x358)]=null,this[_0x5b6932(0x1f7)]=void 0x0,this['_unitId']=null,this[_0x5b6932(0x2cb)]=null,this[_0x5b6932(0x11a)]());}));}};Z=Y([J(0x0,_0x5b31b6),J(0x1,_0x441dea(_0x2da406)),J(0x2,_0x441dea(_0x490ecc)),J(0x3,_0x441dea(X)),J(0x4,_0xb60de6),J(0x5,_0x12955f)],Z);const Or={'id':_0x12df57(0x36a),'type':_0x3cebb2['OPERATION'],'handler':(_0xe5fabe,_0x3e4da6)=>{const _0x3fe2f5=_0x12df57;let _0x8244be=_0xe5fabe[_0x3fe2f5(0x1bd)](_0x5b31b6),_0x59af0b=_0xe5fabe[_0x3fe2f5(0x1bd)](_0x490ecc),_0x144291=_0xe5fabe[_0x3fe2f5(0x1bd)](Z);if(_0x3e4da6==null)return!0x0;if(_0x3e4da6[_0x3fe2f5(0x1d0)]>0x0){var _0x41c376;let _0x5cb588=(_0x41c376=_0x59af0b['getRenderUnitById'](_0x3e4da6[0x0][_0x3fe2f5(0x21e)]))==null?void 0x0:_0x41c376['scene'];if(_0x5cb588){let {unitId:_0x2ded96,subUnitId:_0x1067fa,drawingId:_0x36c398}=_0x3e4da6[0x0],_0x1abbf2=_0x5b432f({'unitId':_0x2ded96,'subUnitId':_0x1067fa,'drawingId':_0x36c398},void 0x0),_0x32627f=_0x5cb588[_0x3fe2f5(0x130)](_0x1abbf2);if(_0x32627f){var _0x521066;(_0x521066=_0x59af0b[_0x3fe2f5(0x269)](_0x3e4da6[0x0][_0x3fe2f5(0x21e)]))==null||(_0x521066=_0x521066[_0x3fe2f5(0x2d7)]['getTransformer']())==null||_0x521066[_0x3fe2f5(0x2e3)](_0x32627f);}}_0x8244be['focusDrawing'](_0x3e4da6),_0x144291[_0x3fe2f5(0x330)](!0x1);}return!0x0;}},kr={'type':_0x3cebb2[_0x12df57(0xef)],'id':_0x12df57(0x175),'handler':async(_0x49bf3d,_0x4e244f)=>{const _0x101414=_0x12df57;let _0x3c4a9a=_0x5e9f29(_0x49bf3d[_0x101414(0x1bd)](_0xb60de6));if(!_0x3c4a9a)return!0x1;let _0x51d223=_0x49bf3d[_0x101414(0x1bd)](_0x357d8a)[_0x101414(0x351)]();if(!_0x51d223)return!0x1;let _0x2f5a08=_0x49bf3d[_0x101414(0x1bd)](_0x12955f),{unitId:_0x582159,subUnitId:_0x1659a1}=_0x3c4a9a,{value:_0x337b0e,enhanceParams:_0x45e049}=_0x4e244f,{range:_0x43d16a}=_0x51d223,_0x5952fb={'unitId':_0x582159,'subUnitId':_0x1659a1,'shapeType':_0x337b0e,'range':_0x43d16a,'shapeId':_0x2e8523()};if(_0x45e049){let _0x2e76e9=_0x5350d3(_0x337b0e),_0x13b227=_0x337b0e===_0x58173b[_0x101414(0x154)];_0x2e76e9&&(_0x45e049[_0x101414(0x340)]||_0x45e049[_0x101414(0x21d)])&&(_0x5952fb[_0x101414(0x2af)]={'ln':{'startArrow':_0x45e049[_0x101414(0x340)]?{'type':_0xb82a0[_0x101414(0x128)],'size':_0x4a0606[_0x101414(0x23a)]}:void 0x0,'endArrow':_0x45e049[_0x101414(0x21d)]?{'type':_0xb82a0['Arrow'],'size':_0x4a0606[_0x101414(0x214)]}:void 0x0}}),_0x13b227&&(_0x45e049[_0x101414(0x343)]||_0x45e049[_0x101414(0x21b)])&&(_0x5952fb[_0x101414(0x2af)]=_0x588166({'fill':{'fillType':_0x2944dd[_0x101414(0x324)],'color':_0x101414(0x239)},'isHorizontal':!!_0x45e049[_0x101414(0x343)],'stroke':{'lineStrokeType':_0x1041bf[_0x101414(0x1f8)],'width':0x1,'color':'#bcbcbc'}}));}let _0x1512c9=_0x2f5a08[_0x101414(0x231)](_0x35ee56['id'],_0x5952fb);return setTimeout(()=>{const _0x1819f6=_0x101414;_0x2f5a08[_0x1819f6(0xf9)](Or['id'],[{'unitId':_0x582159,'subUnitId':_0x1659a1,'drawingId':_0x5952fb['shapeId']}]);},0xc8),_0x1512c9;}},Ar=_0x12df57(0x34f),jr=_0x12df57(0x357),Mr=_0x12df57(0x1dc),Nr=_0x12df57(0x2b1),Pr=_0x1a6cba('SHAPE_TEXT'),Fr=_0x12df57(0x2f5),Ir={'id':_0x12df57(0x2b5),'type':_0x3cebb2[_0x12df57(0xef)],'handler':(_0x4b2023,_0x51c218)=>{const _0x53448a=_0x12df57;let _0x5435b8=_0x4b2023[_0x53448a(0x1bd)](_0x34a435),_0x5b8249=_0x4b2023[_0x53448a(0x1bd)](_0xbd5d6b),_0x3b8fb7=_0x4b2023[_0x53448a(0x1bd)](_0xb60de6),_0x396489=_0x4b2023[_0x53448a(0x1bd)](_0x12955f);return _0x5e9f29(_0x3b8fb7)?(_0x51c218==null?void 0x0:_0x51c218[_0x53448a(0x156)])==='close'?(_0x5435b8[_0x53448a(0x2c5)](jr),!0x0):(_0x5435b8[_0x53448a(0x18c)]({'id':jr,'header':{'title':_0x5b8249['t'](_0x53448a(0x295))},'children':{'label':jr},'onClose':()=>{_0x396489['syncExecuteCommand'](_0x1ea54f['id'],[]);},'width':0x168}),!0x0):!0x1;}},Lr={'type':_0x3cebb2[_0x12df57(0x224)],'id':_0x12df57(0x29d),'handler'(){return!0x0;}};function Rr(_0x4e8dd3){const _0x16e3f7=_0x12df57;let _0x34eab4=_0x4e8dd3[_0x16e3f7(0x1bd)](_0x5b31b6)['getFocusDrawings'](),_0x4c2298=_0x34eab4[_0x16e3f7(0x1d0)]===0x1?_0x34eab4[0x0]:null;if(!_0x4c2298||_0x4c2298['drawingType']!==_0x51ad3e['DRAWING_SHAPE'])return null;let _0x374a64=_0x4e8dd3[_0x16e3f7(0x1bd)](_0x2da406),_0x5b8c8a=_0x374a64[_0x16e3f7(0x184)](_0x4c2298[_0x16e3f7(0x21e)],_0x4c2298['subUnitId'],_0x4c2298[_0x16e3f7(0x248)]),_0x3c30e2=_0x374a64[_0x16e3f7(0x2b0)](_0x4c2298[_0x16e3f7(0x21e)],_0x4c2298[_0x16e3f7(0x179)],_0x4c2298['drawingId']);return _0x5b8c8a===void 0x0||!_0x3c30e2?null:{'drawing':_0x4c2298,'shapeData':_0x3c30e2,'shapeType':_0x5b8c8a};}const zr={'id':_0x12df57(0x2ae),'type':_0x3cebb2[_0x12df57(0x224)],'handler':(_0x391fec,_0x3be72)=>{const _0x286975=_0x12df57;let _0x44358c=Rr(_0x391fec),_0x1613c1=_0x3ee77d((_0x3be72==null?void 0x0:_0x3be72[_0x286975(0x17d)])??(_0x3be72==null?void 0x0:_0x3be72[_0x286975(0x156)])??'');if(!_0x44358c||!_0x1613c1||_0x1613c1[_0x286975(0x293)]!==_0x24e17f(_0x44358c['shapeData']))return!0x1;let _0x30d80d=_0x34fe95(_0x44358c[_0x286975(0x2af)],_0x1613c1);if(!_0x30d80d)return!0x1;let {drawing:_0x3ea04a}=_0x44358c;return _0x391fec[_0x286975(0x1bd)](_0x12955f)['executeCommand'](K['id'],{'unitId':_0x3ea04a[_0x286975(0x21e)],'subUnitId':_0x3ea04a[_0x286975(0x179)],'shapeId':_0x3ea04a[_0x286975(0x248)],'shapeData':_0x30d80d,'oldShapeJSON':{'oldShapeData':_0x44358c['shapeData']}});}},Br={'id':'sheet.operation.update-shape-type','type':_0x3cebb2[_0x12df57(0x224)],'handler':(_0x2e9848,_0x2bb0c0)=>{const _0x593d37=_0x12df57;let _0x2b10f8=Rr(_0x2e9848),_0x5a956c=(_0x2bb0c0==null?void 0x0:_0x2bb0c0[_0x593d37(0x36c)])??(_0x2bb0c0==null?void 0x0:_0x2bb0c0[_0x593d37(0x156)]);if(!_0x2b10f8||!_0x5a956c||_0x5350d3(_0x2b10f8['shapeType'])||_0x5350d3(_0x5a956c))return!0x1;let _0x3d64c0=_0x259a3c(_0x2b10f8['shapeData'],_0x5a956c);if(!_0x3d64c0)return!0x1;let {drawing:_0x3d2b5b}=_0x2b10f8;return _0x2e9848[_0x593d37(0x1bd)](_0x12955f)[_0x593d37(0xf9)](K['id'],{'unitId':_0x3d2b5b[_0x593d37(0x21e)],'subUnitId':_0x3d2b5b[_0x593d37(0x179)],'shapeId':_0x3d2b5b[_0x593d37(0x248)],'shapeType':_0x5a956c,'shapeData':_0x3d64c0,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x2b10f8['shapeType'],'oldShapeData':_0x2b10f8[_0x593d37(0x2af)]}});}};let Q=class extends _0x112f8d{constructor(_0x2377e2,_0x1dcaf1){const _0x3ad01c=_0x12df57;super(),this[_0x3ad01c(0x193)]=_0x2377e2,this[_0x3ad01c(0x12f)]=_0x1dcaf1,this[_0x3ad01c(0x15c)](),this['_clipService'][_0x3ad01c(0x25d)](!0x0),this[_0x3ad01c(0x200)]({'dispose':()=>this[_0x3ad01c(0x193)][_0x3ad01c(0x25d)](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x28c258=_0x12df57;let _0x4a3ca0=this['_clipService'],_0x193ce7=new Map(),_0x1fad27=_0x4a3ca0[_0x28c258(0x241)]((_0x2cb295,_0x511672,_0x178a3f,_0x3440ba,_0x147248)=>{const _0x394f91=_0x28c258;let _0x31f6de=_0x511672;if(_0x31f6de===_0x58173b[_0x394f91(0x11d)]||_0x511672===_0x394f91(0x370))return!0x1;try{let _0xb05b54=_0x193ce7['get'](_0x511672);return _0xb05b54||(_0xb05b54=new _0x12134e(_0x31f6de,'clip-'+_0x511672),_0x193ce7[_0x394f91(0x132)](_0x511672,_0xb05b54)),_0xb05b54[_0x394f91(0x204)](),_0x147248&&Object[_0x394f91(0xf4)](_0x147248)[_0x394f91(0x1d0)]>0x0&&_0xb05b54['setShapeData']({'adjustValues':_0x147248},!0x0),_0xb05b54['updateContext']({'width':_0x178a3f,'height':_0x3440ba}),_0xb05b54[_0x394f91(0xfc)](_0x2cb295,{'left':0x0,'top':0x0,'width':_0x178a3f,'height':_0x3440ba});}catch{return!0x1;}});this[_0x28c258(0x200)](_0x1fad27),this[_0x28c258(0x200)]({'dispose':()=>_0x193ce7[_0x28c258(0x2f7)]()});}[_0x12df57(0x282)](_0x2d078d,_0xe9b8ef,_0x2fce14,_0x154e4b,_0x3c2bbd){const _0x5d5d71=_0x12df57;let _0x312497=this[_0x5d5d71(0x12f)]['getDrawingData'](_0x2d078d,_0xe9b8ef);if(!_0x312497[_0x2fce14])return;let _0x231c52={..._0x312497[_0x2fce14],'prstGeom':_0x154e4b,'adjustValues':_0x3c2bbd};this['_drawingManagerService'][_0x5d5d71(0x227)]([_0x231c52]);}};Q=Y([J(0x0,_0x441dea(_0xe50573)),J(0x1,_0x441dea(_0x5b31b6))],Q);const Vr=_0x12df57(0x35d),Hr='sheet.image-clip.shape-picker.component';function Ur({onShapeClick:_0x3672d7,excludeGroups:_0x1044e8}){const _0x26d456=_0x12df57;return _0x208197(_0x31730c,{'excludeGroups':_0x1044e8,'onShapeClick':_0x3672d7,'scrollContainer':_0x26d456(0x119)});}function Wr(){let _0x26bab1=_0x89c257(_0x5b31b6),_0x189283=_0x89c257(Q);return _0x208197(_0x2fbe63,{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0x2af153['Line']],'onShapeClick':_0x416cfd=>{const _0x24ec89=_0x4f90;let _0x22299d=_0x26bab1[_0x24ec89(0x31b)]()['find'](_0x52a6a0=>_0x52a6a0[_0x24ec89(0x309)]===_0x51ad3e[_0x24ec89(0x1fb)]);if(!_0x22299d)return;let {unitId:_0x35b0d9,subUnitId:_0x3be373,drawingId:_0x45bb26}=_0x22299d;_0x189283[_0x24ec89(0x282)](_0x35b0d9,_0x3be373,_0x45bb26,_0x416cfd['type']);}});}function Gr(){const _0x13c357=_0x12df57;let _0x32b6e9=_0x89c257(_0x5b31b6),_0xf33fbe=_0x89c257(Q);return _0x208197(_0x2fbe63,{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0x2af153[_0x13c357(0x2a0)]],'DropdownComponent':_0x376498,'onShapeClick':_0x16dde7=>{const _0x1fed6f=_0x13c357;let _0x53626c=_0x32b6e9[_0x1fed6f(0x31b)]()[_0x1fed6f(0x1c4)](_0x5cb331=>_0x5cb331[_0x1fed6f(0x309)]===_0x51ad3e[_0x1fed6f(0x1fb)]);if(!_0x53626c)return;let {unitId:_0x571c2f,subUnitId:_0x4a0b9e,drawingId:_0x1dc775}=_0x53626c;_0xf33fbe[_0x1fed6f(0x282)](_0x571c2f,_0x4a0b9e,_0x1dc775,_0x16dde7[_0x1fed6f(0x293)]);}});}function Kr(){const _0x4dc29f=_0x12df57;let _0x544de2=_0x89c257(_0x38cfa2),_0x1f00c7=_0x89c257(_0x5b31b6),_0x1f791b=_0x89c257(_0xb60de6),_0x4f524b=_0x1f00c7[_0x4dc29f(0x31b)]()[0x0],_0x3dc709=_0x4f524b?_0x1f791b['getUnitType'](_0x4f524b[_0x4dc29f(0x21e)]):void 0x0,_0x7e4861=_0x3dc709===_0x43974e[_0x4dc29f(0x2ea)]?_0x4dc29f(0x376):_0x3dc709===_0x43974e[_0x4dc29f(0x29c)]?Hr:void 0x0,_0x8e231c=_0x7e4861?_0x544de2[_0x4dc29f(0x1bd)](_0x7e4861):void 0x0;return _0x8e231c?_0x208197(_0x8e231c,{}):null;}function qr(){let _0x23ba68=_0x89c257(_0x12955f);return _0x208197(Ur,{'onShapeClick':_0xc18e2c=>{const _0x562cf1=_0x4f90;_0x23ba68[_0x562cf1(0xf9)](kr['id'],{'value':_0xc18e2c['type'],'enhanceParams':{'endArrow':_0xc18e2c['endArrow'],'startArrow':_0xc18e2c[_0x562cf1(0x340)],'horizontal':_0xc18e2c[_0x562cf1(0x343)],'vertical':_0xc18e2c[_0x562cf1(0x21b)]}});}});}function Jr(){return _0x208197(qr,{});}function Yr(_0x30ec24){const _0x67f898=_0x12df57;let _0x231436=_0x30ec24[_0x67f898(0x1bd)](_0xb60de6);return{'id':kr['id'],'type':_0x2a2d7d['SELECTOR'],'selections':[{'label':{'name':Vr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':kr['id']}}}],'icon':_0x67f898(0x210),'tooltip':_0x67f898(0x1f5),'activated$':_0x28768c(_0x231436,!0x1,()=>new _0x1efbd9(_0x4307e3=>{const _0x4b402e=_0x67f898;_0x4307e3[_0x4b402e(0x35b)](!0x1);})),'hidden$':_0x351278(_0x30ec24,_0x43974e[_0x67f898(0x29c)]),'disabled$':_0x289d5e(_0x30ec24)};}function Xr(_0x133c89){const _0x576a14=_0x12df57;let _0xec9d3c=_0x133c89['get'](_0xb60de6);return{'id':Ir['id'],'type':_0x2a2d7d[_0x576a14(0x133)],'icon':_0x576a14(0x327),'title':'sheets-shape-ui.objectListPanel.open','tooltip':'sheets-shape-ui.objectListPanel.open','activated$':_0x28768c(_0xec9d3c,!0x1,()=>new _0x1efbd9(_0xfc2cac=>{const _0x3cfd74=_0x576a14;_0xfc2cac[_0x3cfd74(0x35b)](!0x1);})),'hidden$':_0x351278(_0x133c89,_0x43974e['UNIVER_SHEET']),'disabled$':_0x289d5e(_0x133c89)};}const Zr='sheet.menu.shape.flip-horizontal',Qr=_0x12df57(0x356);function $r(_0x510d2e){const _0x4825d0=_0x12df57;let _0x577234=_0x510d2e[_0x4825d0(0x1bd)](_0x5b31b6)[_0x4825d0(0x31b)]();return _0x577234[_0x4825d0(0x1d0)]===0x1&&_0x577234[0x0]['drawingType']===_0x51ad3e[_0x4825d0(0x305)]?_0x577234[0x0]:null;}function ei(_0x4d4800){const _0x1beab3=_0x12df57;let _0x5a02be=_0x4d4800[_0x1beab3(0x1bd)](_0x5b31b6);return _0x5a02be[_0x1beab3(0x20f)][_0x1beab3(0x125)](_0x2c0643(_0x5a02be[_0x1beab3(0x31b)]()),_0x14cb4a(_0xa4d025=>_0xa4d025[_0x1beab3(0x1d0)]!==0x1||_0xa4d025[0x0][_0x1beab3(0x309)]!==_0x51ad3e[_0x1beab3(0x305)]));}function ti(_0x42d3ab){const _0xca4c9a=_0x12df57;return{'id':Zr,'commandId':_0x1fe1aa['id'],'type':_0x2a2d7d[_0xca4c9a(0x133)],'title':_0xca4c9a(0x115),'tooltip':_0xca4c9a(0x115),'icon':_0xca4c9a(0x34c),'hidden$':ei(_0x42d3ab),'params':()=>{const _0x5a88ef=_0xca4c9a;let _0x59c4ca=$r(_0x42d3ab);return _0x59c4ca?{'unitId':_0x59c4ca[_0x5a88ef(0x21e)],'subUnitId':_0x59c4ca[_0x5a88ef(0x179)],'shapeId':_0x59c4ca[_0x5a88ef(0x248)],'flipH':!0x0}:void 0x0;}};}function ni(_0xdfa1ae){const _0x2fd45a=_0x12df57;return{'id':Qr,'commandId':_0x1fe1aa['id'],'type':_0x2a2d7d[_0x2fd45a(0x133)],'title':_0x2fd45a(0x372),'tooltip':_0x2fd45a(0x372),'icon':_0x2fd45a(0x233),'hidden$':ei(_0xdfa1ae),'params':()=>{const _0x12c2cb=_0x2fd45a;let _0x398166=$r(_0xdfa1ae);return _0x398166?{'unitId':_0x398166['unitId'],'subUnitId':_0x398166[_0x12c2cb(0x179)],'shapeId':_0x398166[_0x12c2cb(0x248)],'flipV':!0x0}:void 0x0;}};}const ri=_0x12df57(0x39a),ii=_0x12df57(0x168),ai='sheets-shape-ui.shape-format.text-ribbon-control',oi=_0x12df57(0x348);function si(){let _0x1ee304=_0x89c257(_0x12955f),_0x5d3255=_0x89c257(_0x5b31b6),_0x4a35c1=_0x89c257(_0x2da406),_0x40760f=()=>{const _0x30bfcb=_0x4f90;var _0x226dff;let _0x1f69e4=_0x5d3255[_0x30bfcb(0x31b)]();if(_0x1f69e4[_0x30bfcb(0x1d0)]!==0x1||((_0x226dff=_0x1f69e4[0x0])==null?void 0x0:_0x226dff[_0x30bfcb(0x309)])!==_0x51ad3e[_0x30bfcb(0x305)])return null;let {unitId:_0x46dc8f,subUnitId:_0x2961b0,drawingId:_0x517edd}=_0x1f69e4[0x0],_0x329f62=_0x4a35c1[_0x30bfcb(0x184)](_0x46dc8f,_0x2961b0,_0x517edd),_0x35a388=_0x4a35c1[_0x30bfcb(0x2b0)](_0x46dc8f,_0x2961b0,_0x517edd);return _0x329f62===void 0x0||!_0x35a388?null:{'unitId':_0x46dc8f,'subUnitId':_0x2961b0,'drawingId':_0x517edd,'shapeType':_0x329f62,'shapeData':_0x35a388};},_0x3929c2=_0x296781(()=>new _0x1efbd9(_0x43d01e=>{const _0x35663d=_0x4f90;let _0x353eaf=()=>_0x43d01e[_0x35663d(0x35b)](_0x40760f()),_0x43c80e=_0x5d3255['focus$']['subscribe'](_0x353eaf),_0x4d559a=_0x1ee304['onCommandExecuted'](_0x465e30=>{_0x465e30['id']===_0x11226d['id']&&_0x353eaf();});return _0x353eaf(),()=>{_0x43c80e['unsubscribe'](),_0x4d559a['dispose']();};}),_0x40760f(),!0x1,[_0x1ee304,_0x5d3255,_0x4a35c1]);return{'selection':_0x3929c2,'updateShapeData':_0x53fa0b=>{const _0x42b98b=_0x4f90;_0x3929c2&&br(_0x1ee304,_0x3929c2[_0x42b98b(0x21e)],_0x3929c2[_0x42b98b(0x179)],_0x3929c2['drawingId'],{'oldShapeData':_0x3929c2[_0x42b98b(0x2af)]},_0x53fa0b);}};}function ci(){let {selection:_0x2293b5,updateShapeData:_0x24b0c}=si();return _0x2293b5?_0x208197(_0xc7e7f5,{'shapeData':_0x2293b5['shapeData'],'shapeType':_0x2293b5['shapeType'],'onUpdateShapeData':_0x24b0c}):null;}function li(){const _0x516e6f=_0x12df57;let _0x488fb4=_0x89c257(_0x12955f),_0xb0b049=_0x89c257(_0xbd5d6b),{selection:_0x18886a}=si();return _0x18886a?_0x208197(_0x51c7c7,{'type':_0x24e17f(_0x18886a['shapeData']),'ariaLabel':_0xb0b049['t'](_0x516e6f(0x367)),'activePresetId':_0x26dbd6(_0x18886a['shapeData']),'onSelect':_0xef01d8=>_0x488fb4[_0x516e6f(0xf9)](zr['id'],{'presetId':_0xef01d8})}):null;}function ui(){const _0x4a899c=_0x12df57;let {selection:_0x234dd8,updateShapeData:_0x42dc22}=si();return _0x234dd8?_0x208197(_0x32cff2,{'fontFamilyPopupDataComponent':_0x4a899c(0x2f6),'shapeData':_0x234dd8[_0x4a899c(0x2af)],'onUpdateShapeData':_0x42dc22}):null;}function di(){const _0x139398=_0x12df57;var _0x116ee9;let {selection:_0x788cf3,updateShapeData:_0x5d575a}=si(),_0x59af2c=_0x3964a4({'hostType':_0x43974e[_0x139398(0x29c)],'unitId':(_0x788cf3==null?void 0x0:_0x788cf3[_0x139398(0x21e)])??'','subUnitId':(_0x788cf3==null?void 0x0:_0x788cf3[_0x139398(0x179)])??'','shapeId':(_0x788cf3==null?void 0x0:_0x788cf3['drawingId'])??'','shapeData':_0x788cf3==null?void 0x0:_0x788cf3[_0x139398(0x2af)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x139398(0xdb),'onUpdateBinding':_0x1a3c46=>_0x5d575a({'formulaBinding':_0x1a3c46})}),_0x37515d=((_0x116ee9=_0x59af2c['extensionGroups'])==null?void 0x0:_0x116ee9['flatMap'](_0x201959=>_0x201959[_0x139398(0x15f)])['filter'](_0x5c1e2d=>_0x5c1e2d[_0x139398(0x2b2)]!==!0x1))??[];return _0x788cf3!=null&&_0x788cf3[_0x139398(0x2af)][_0x139398(0x35a)]?_0x208197(_0x197294,{'actions':_0x37515d,'panel':_0x59af2c[_0x139398(0x24a)]}):null;}const fi=_0x12df57(0x2e9),pi=_0x12df57(0x2c9),mi='sheets-shape-ui.ribbon.shape-format.formula-control',hi=_0x12df57(0x30b),gi='sheets-shape-ui.ribbon.shape-format.arrange-backward',_i='sheets-shape-ui.ribbon.shape-format.arrange-front',vi=_0x12df57(0x1c1);function _0x7a66(){const _0x4ab725=['beginPath','_generatePasteMutations','sheet.command.update-shape-data','isLineShape','mode','src','objects','adjustValues','drawing-ui.objectListPanel.showAll','refreshShapeFillImage','doc','save','_editingParams$','getInterceptPoints','111935oYGzSZ','_addShapeAdjustControl','_permissionService','_getShapeInfo','_clearFocusedShape','sheets-shape-ui.insertShape','_drawRichText','_activeShapeAdjustPointList','SolidLine','getPermissionPoint','TOP','DRAWING_IMAGE','_baseShapeWidth','createControl$','isEditing','_baseLeft','disposeWithMe','clip-adj-','isDrawingObject','_injector','clearAdjustValue','updateContext','copyType','setAdjustValueByName','_update','clearControl$','_openShapeEditPanel','draw','getBatchRemoveOp','REMOVE','toPrimitive','focus$','ShapeIcon','animationEnabled','_currentScene','applyPoint','Large','lineType','decorate','attachPopupToObject','drawing-ui.objectListPanel.unlockHint','_initSheetChange','getUnitType','vertical','sheets-shape-ui.config','endArrow','unitId','CROSSHAIR','_shapeUpdateListener','hideContextualTab','top','adjName','OPERATION','canvasElement','shape-editor-ui.toolbar.changeShape','featurePluginUpdateNotification','isHitLine','setPrstGeom','_baseTop','interceptor','shape-text-','_isConnecting','isHit','drawing-ui.objectListPanel.filterLocked','_ribbonService','syncExecuteCommand','TopmostIcon','FlipVerticalIcon','_clearPopups','isRenderLinePointsMode','normal','_getScrollInfo','getAdjustNames','#FFFFFF','Medium','onPointerUp$','getDrawingOKey','getShapeType','getDrawingEffectBounds','includes','params','registerClipDelegate','setFallbackVisible','_updateImageAdjValues','_urlImageService','from','drawing-ui.objectListPanel.filterAll','599067MJlpJI','drawingId','DEFAULT_PASTE','panel','gradientEndColor','_baseShapeLeft','connection-site-','updateDocumentDataMargin','div','_context','setOnSavingEditorData','univer-box-border\x20univer-px-4\x20univer-text-sm','_sheetDrawingService','setEditing','_clearConnectionSites','getEndConnectInfo','setSrcRect','_transform','_isDrawingShapePointDown','targetShapeId','completeEditing','drawing-ui.objectListPanel.unlock','setCanUseShapeClip','getImageSourceCache','registerRenderModule','stroke','_sheetsShapeService','URL','worldRect','_initPermission','_reset','getBatchUpdateOp','drawing-ui.objectListPanel.collapse','data','getRenderUnitById','focusDrawing','_targetShapeId','_loadAndSetImage','1345sbVuwK','getShapeData','getZoomRatio','drawing-ui.objectListPanel.sectionFloating','_configService','translateWithPrecision','_shapeRenderController','_insertingShapeKeys','setPresentation','wrapStrategy','fillImageSource','getOwnPropertyDescriptor','packageName','cos','_registerOperations','srcRect','getDrawingByParam','setCursor','setFillImage','setShapeProps','_updateShapeAdjustControls','clipByShape','offsetY','_registerGroupFeaturePasteHook','calcAdjValues','_generateCutPasteMutations','fill','prstGeomAdjValues','_resetState','_formulaKey','_renderWithCache','getSkeleton','forEach','animateFormulaPresentation','relation','setHighlighted','DRAWING','changeStart$','type','451FhkqXz','sheets-shape-ui.objectListPanel.title','onSteady','getMatrix','_getShapeAdjustPointListById','shapeKey','strokeWidth','VIEW_MAIN_LEFT_TOP','UNIVER_SHEET','sheet.operation.open-sheet-shape-format-panel','composeMatrix','getSkeletonParam','Line','_adjHandlerPointerUp','_getOrCreateShapeModel','_drawingAddListener','_addControl','_disposePopups','values','getCanvasElement','startConnectionDetection','_completionFrame','updateConnectionDetection','_initialize','iterator','getDrawingPoints','sheet.operation.apply-shape-quick-style','shapeData','getShapeDataById','sheets-shape-ui.ribbon.shape-format','visible','intercept','_insertShapes','sheet.operation.open-shape-object-list-panel','_activeShapeModel','_activeShapeInfo','_createControls','_baseShapeTop','_executeConnectionCommand','contentVerticalOffset','fontFamily','getValue','getAutoFitPresentations','pushUndoRedo','@univerjs-pro/sheets-shape-ui','getConnectionSiteList','description','isHorizontal','_adjHandlerPointerMove','close','shapeId','_commandExecutedListener','scale','sheets-shape-ui.ribbon.shape-format.text-control','7794VAwnuW','_subUnitId','permissionCheckWithoutRange','_registerIcons','getDrawingEditable','refreshTransform','MoveDownIcon','SHEET_SHAPE_UI_PLUGIN','viewportScrollX','getShapeTextRect','updateLinePoints','getAdjustInfoByName','_addShapeConnectorHandlerObject','scene','_props','onCommandExecuted','_lastEditingShapeKey','attachTransformerTo','drawing-ui.objectListPanel.lock','drawing-ui.objectListPanel.lockHint','_cxnIndex','fillType','addObject','_isStartConnectorPoint','restore','activeAnObject','drawing-ui.objectListPanel.unlockAll','drawing-ui.objectListPanel.details','isInGroup','onReady','shape-editor-ui.arrange.backward','sheets-shape-ui.ribbon.shape-format.style-control','UNIVER_DOC','engine','drawing-ui.objectListPanel.nameInput','dispose','sheets-shape-ui.editShape','shapeModel','_findShapeAtPoint','unsubscribe','_registerComponents','registerFeaturePasteHook','clearAdjustControls','sheet.shape.text.float-menu','sheets-shape-format-font-family-menu','clear','with','cxnPointRadius','back','onPointerMove$','_sidebarDisposable','onPointerDown$','computeConnectorResizeLayout','drawing-ui.objectListPanel.empty','_executeResizeCommand','resourceCollector','_setTransForm','8Zzatou','getContextValue','DRAWING_SHAPE','_updateSrcRectByTransform','redo','_shapeEditPanelVersion','drawingType','asObservable','sheets-shape-ui.ribbon.shape-format.arrange-forward','onDblclick$','cxnPointFill','defineProperty','getAdjustValueByName','getDrawingDataForUnit','646712dSlUlV','_executeConnectedRouteConnectionCommand','_visible','sheets-shape-ui.title','_handleFreeEndpointMove','blockExecuteWithoutPermission','order','_currentConnectionTarget','offsetX','_sheetShapeAdjustController','getFocusDrawings','_registerDrawingMoveHandler','push','getConnectionInfo','debounceRefreshControls','currentAdjustValues','_popupMenuListener','isolated','getParent','SolidFill','left','_imageIoService','ObjectLayersIcon','sheets-shape-ui.deleteShape','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','getObject','_initEditingParams','initShapePopupMenu','_drawRichTextLayer','clone','pick','setShouldShowAdjust','filter','extensionGroups','register','drawing-ui.objectListPanel.dragToReorder','#1a73e8','isArray','getShapeModel','reduce','map','_menuManagerService','sheetViewStartColumn','version','stopPropagation','_initCommands','pluginName','startArrow','drawing-ui.objectListPanel.search','_componentManager','horizontal','_calculateFreeEndpointAngle','_shapeFormulaService','_commandService','default','sheets-shape-ui.shape-format.formula-ribbon-control','_handleBasicShapeUpdateConnectorLineShape','addImageSourceCache','delete','FlipHorizontalIcon','_initCopyPaste','_registerMoveHandler','sheet.shape.edit.panel','onTransformChange$','getCurrentLastSelection','PictureFill','_executeConnectedRouteResizeCommand','angle','idMap','sheet.menu.shape.flip-vertical','sheet.shape.object-list.panel','_activeShapeId','_showConnectionSites','formulaBinding','next','_sidebarService','sheet.shape.picker.component','resetCursor','subscribeEvent','_shapeFloatingToolbarService','render','add','OTHERS','VIEW_MAIN_LEFT','isRender','UUID','sheets-shape-ui.quickStyles','title','abs','drawing.operation.set-drawing-active','_handleConnectorPointerUp','shapeType','getShapeTextData','refreshFormulaPresentation','_initEvents','custom','_connectionSiteObjects','sheets-shape-ui.flipVertical','_highlightedSiteIndex','_shapePopupMenuDisposable','_cxtHandlerPointerUp','doc.image-clip.shape-picker.component','object','sheet.operation.close-sheet-shape-format-panel','sheets-shape-ui','indexOf','_handleConnectedEndpointPointerUp','147370yScgbl','_formulaAnimation','call','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_clearShapeConnectorHandlerObjects','_canEdit','startY','cxnPointStrokeWidth','refreshAdjustControls','_initPrinting','isStartConnectorPoint','presentation','multiply','_transformCalculateSrcRect','registerFeatureMenu','_adjName','_attachAdjustEvent','StraightConnector1','endConnectionDetection','symbol','reverse','disableShapeOption','_groupCopyPasteController','drawing-ui.objectListPanel.description','_copyInfo','name','undo','getEditing','drawing-ui.objectListPanel.expand','worldPoints','sheets-shape-ui.shape-format.quick-style-gallery','drawing-ui.objectListPanel.title','editingParams$','prstGeom','drawing-ui.objectListPanel.sectionCanvas','renderDrawingShape','getCurrentTypeOfUnit$','_clearControls','_sheetDrawingShapeRenderController','bottom','add$','classType','_activeAdjustInfo','connector-handler-','_activeImageId','isHighlighted','LEFT','setShapeData','_univerInstanceService','_updateAdjustControlPositions','_rerouteConnectorLine','getImage','style','color','setCollapsedIds','disableObjectsEvent','_unitId','_disposed','subscribe','COMMAND','onRendered','_updateTransform','_shapeTextEditingService','onSavingEditorData$','keys','copyId','getUnit','updateShapeFillImage','_getShapeAdjustInfosById','executeCommand','Path','getUnitId','buildClipPath','getActualSize','getCurrentUnitOfType','SHEET','shape-editor-ui.arrange.front','_formulaShapes','_shapeService','highlighted','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','entries','fromChangeset','stringify','GROUP','shape-adjust-point-','_baseDrawingRect','invert','FromArray','_createCopyInfoByRange','shape-editor-ui.toolbar.quickStyles','sheets-shape-ui.formatShape','_renderManagerService','dataModel','localToWorld','rotation','transform','sheets-shape-ui.flipHorizontal','getSheetBySheetId','presentationChanged$','getFocusedUnit','parent','_clearShapeAdjustControls','transformByState','registerCommand','None','_index','_isShouldShowDrawingShapeAdjust','_drawShapeText','getDrawingVisible','setPrstGeomAdjValues','_cxtHandlerPointerMove','drawing-ui.objectListPanel.noSelection','pipe','sheets-shape-ui.editText','ang','Arrow','drawing-ui.objectListPanel.close','some','update$','_getZoomRatio','_attachConnectorObjectEvent','backward','_drawingManagerService','getObjectIncludeInGroup','getBentTypeFromPoints','set','BUTTON','SheetShapeTextEditorContainer','getConnectorLinePoints','_init','flipX','PRINTING_COMPONENT_COLLECT','adjHandleSize','sheets-shape-text-','sheetTransform','getStartConnectInfo','updateDocumentStyle','_registerDrawingFocusChangeHandler','_baseShapeHeight','getScene','_loadShapePictureFill','shapeText','onload','text','_isOpenedShapeEditPanel','getInverseCoord','image','MoveUpIcon','contentHeight','_config','getState','localeService','formulaPresentation','vertical-center','setConfig','_isImagePointerDown','parse','_onSavingEditorData$','Image','Rect','_releaseRenderCache','value','_getConnectPointInfo','drawWith','clipTop','getBasicShapeRelation','popup','_registerImageShapeClipDelegate','_drawingType','getSheetId','actions','_getImagePrstGeom','makeDirty','getRealBound','_connectorObjects','CUT','size','activeSheet$','function','sheets-shape-ui.shape-format.style-ribbon-control','_initMenu','remove$','UPDATE','getDrawingOrder','onStarting','_handleConnectedEndpointMove','hidden','_registerFeatureMenu','error','1.0.0','_sheetClipboardService','sheet.operation.open-mobile-shape-editor','sheet.command.menu-insert-shape','drawing-ui.objectListPanel.locate','_drawSimpleText','flipY','subUnitId','_moveConnectorWithShape','computeStraightConnectorLayout','worldPoint','presetId','_addShapeConnectorHandlerObjects','drawing-ui.objectListPanel.filterHidden','sqrt','_sheetInterceptorService','canvas','drawing-ui.objectListPanel.hide','getShapeTypeById','unregister','clip','skeleton','_imageShapeClipController','resize','onerror','changeEnd$','open','INSERT','getSelectedObjectMap','index','setFormulaPresentation','ShapeFormatSettingIcon','_baseWidth','_clipService','permissionPointUpdate$','_getSceneAndTransformerByDrawingSearch','_activeTargetShapeId','_clearCompletionFrame','_shapes','_createShapeAdjustControls','removeLinePoints','startX','viewBound','_activeAdjustPointList','changeShapeType','1902024KodfZq','987489CUTpiJ','_sheetSkeletonService','_isStartAdjusting','has','oKey','drawing-ui.objectListPanel.moveForward','getTransformerByCreate','3itsIim','calculate','getActiveSheet','getDrawingSearch','_draw','_localeService','sheetViewStartRow','drawing-ui.objectListPanel.hideAll','_hasReset','height','getCurrentSkeleton','enableObjectsEvent','cxnIndex','showContextualTab','marginTop','SELECTOR','transformForAngle','cancelEditing','beforeCommandExecuted','mergeMenu','_iconManager','_hide','get','_getImageDrawingInfo','getDrawingData','_sheetPrintInterceptorService','sheets-shape-ui.ribbon.shape-format.arrange-back','_contextService','viewportScrollY','find','setContextValue','isMainScene','end','addClipboardHook','complete','_baseHeight','drawing-ui.objectListPanel.moveBackward','_getDrawingRect','_initSelection','selectable','_findNearestConnectionSite','length','width','changing$','sin','_closeShapeEditPanel','axisAlignSheetTransform','_sheetPermissionCheckController','_isHighlighted','getPresentation','_sheetBasicShapeConnectionPointController','_sheetCanvasPopManagerService','ancestorTransform','sheet.shape.floating-toolbar','getCurrentScrollState','_draggingConnectorId','point','_applyFormulaAutoFitSize','_shapeId'];_0x7a66=function(){return _0x4ab725;};return _0x7a66();}function yi(_0x420fc9){const _0x327636=_0x12df57;let _0x2f7eae=_0x420fc9[_0x327636(0x1bd)](_0x12955f),_0x4665b5=_0x420fc9[_0x327636(0x1bd)](_0x5b31b6),_0x49a460=_0x420fc9[_0x327636(0x1bd)](_0x2da406);return new _0x1efbd9(_0x5c673e=>{const _0xb4e235=_0x327636;let _0x7c5b64=()=>{const _0x134886=_0x4f90;let _0x1422d1=bi(_0x420fc9),_0xa684fb=_0x1422d1?_0x49a460[_0x134886(0x2b0)](_0x1422d1[_0x134886(0x21e)],_0x1422d1['subUnitId'],_0x1422d1[_0x134886(0x248)]):null;_0x5c673e[_0x134886(0x35b)](_0xa684fb?_0x26dbd6(_0xa684fb)??'':'');},_0x25dabb=_0x4665b5[_0xb4e235(0x20f)][_0xb4e235(0xee)](_0x7c5b64),_0x2dfa49=_0x2f7eae[_0xb4e235(0x2d9)](_0x4997d9=>{_0x4997d9['id']===_0x11226d['id']&&_0x7c5b64();});return _0x7c5b64(),()=>{const _0x238314=_0xb4e235;_0x25dabb['unsubscribe'](),_0x2dfa49[_0x238314(0x2ed)]();};});}function bi(_0x633f69){const _0x1a5c1c=_0x12df57;var _0x197e81;let _0x48c39a=_0x633f69[_0x1a5c1c(0x1bd)](_0x5b31b6)[_0x1a5c1c(0x31b)]();return _0x48c39a[_0x1a5c1c(0x1d0)]===0x1&&((_0x197e81=_0x48c39a[0x0])==null?void 0x0:_0x197e81[_0x1a5c1c(0x309)])===_0x51ad3e['DRAWING_SHAPE']?_0x48c39a[0x0]:null;}function xi(_0x11b89e,_0x1de621=!0x1){const _0xa31d3b=_0x12df57;let _0x43f53c=_0x11b89e[_0xa31d3b(0x1bd)](_0x12955f),_0x1cb265=_0x11b89e[_0xa31d3b(0x1bd)](_0x5b31b6),_0x45166b=_0x11b89e['get'](_0x2da406);return new _0x1efbd9(_0x186e6d=>{const _0x524609=_0xa31d3b;let _0x262732=()=>{const _0x3e59a8=_0x4f90;let _0x423d96=bi(_0x11b89e);if(!_0x423d96){_0x186e6d[_0x3e59a8(0x35b)](!0x0);return;}let _0x3f2d25=_0x45166b[_0x3e59a8(0x2b0)](_0x423d96[_0x3e59a8(0x21e)],_0x423d96['subUnitId'],_0x423d96['drawingId']);_0x186e6d[_0x3e59a8(0x35b)](!_0x3f2d25||_0x1de621&&_0x3f2d25['formulaBinding']==null);},_0x543d88=_0x1cb265['focus$'][_0x524609(0xee)](_0x262732),_0x2503dc=_0x43f53c[_0x524609(0x2d9)](_0x1c5515=>{_0x1c5515['id']===_0x11226d['id']&&_0x262732();});return _0x262732(),()=>{const _0x42ec39=_0x524609;_0x543d88[_0x42ec39(0x2f1)](),_0x2503dc['dispose']();};});}function Si(_0x7aa851){const _0x12b824=_0x12df57;let _0x32d7f8=_0x7aa851['get'](_0x5b31b6),_0x5ae610=_0x7aa851[_0x12b824(0x1bd)](_0x2da406);return _0x32d7f8[_0x12b824(0x20f)][_0x12b824(0x125)](_0x2c0643(_0x32d7f8[_0x12b824(0x31b)]()),_0x14cb4a(()=>{const _0x188707=_0x12b824;let _0x44cd5e=bi(_0x7aa851),_0x17e160=_0x44cd5e?_0x5ae610[_0x188707(0x184)](_0x44cd5e[_0x188707(0x21e)],_0x44cd5e[_0x188707(0x179)],_0x44cd5e[_0x188707(0x248)]):void 0x0;return _0x17e160===void 0x0||_0x5350d3(_0x17e160);}));}function Ci(_0x56946f){const _0x40c917=_0x12df57;return{'id':zr['id'],'type':_0x2a2d7d['SELECTOR'],'icon':'PaintIcon','title':'shape-editor-ui.toolbar.quickStyles','tooltip':_0x40c917(0x10e),'selections':[{'label':{'name':ri,'hoverable':!0x1,'selectable':!0x1}}],'value$':yi(_0x56946f),'hidden$':xi(_0x56946f)};}function wi(_0x2921db){const _0x3b2694=_0x12df57;return{'id':Br['id'],'type':_0x2a2d7d[_0x3b2694(0x1b6)],'icon':_0x3b2694(0x210),'title':_0x3b2694(0x226),'tooltip':_0x3b2694(0x226),'slot':!0x0,'selections':[{'label':{'name':_0x5d7905,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Si(_0x2921db)};}function Ti(_0x13fb8f,_0x1c2654,_0x361eaf=!0x1){const _0x3bde9d=_0x12df57;return _0x3363f6=>({'id':_0x13fb8f,'type':_0x2a2d7d[_0x3bde9d(0x133)],'label':{'name':_0x1c2654,'hoverable':!0x1,'selectable':!0x1},'hidden$':xi(_0x3363f6,_0x361eaf)});}const Ei=Ti(fi,ii),Di=Ti(pi,ai),Oi=Ti(mi,oi,!0x0);function ki(_0x2a1c01,_0x28284c,_0x412e0f,_0xac315e){return _0x4126e1=>({'id':_0x2a1c01,'commandId':_0x26e8e6['id'],'type':_0x2a2d7d['BUTTON'],'icon':_0x412e0f,'title':_0xac315e,'tooltip':_0xac315e,'hidden$':xi(_0x4126e1),'params':()=>{const _0x38a647=_0x4f90;let _0x2da52c=bi(_0x4126e1);return _0x2da52c?{'unitId':_0x2da52c[_0x38a647(0x21e)],'subUnitId':_0x2da52c[_0x38a647(0x179)],'drawingIds':[_0x2da52c[_0x38a647(0x248)]],'arrangeType':_0x28284c}:void 0x0;}});}const Ai=ki(hi,_0x299c73['forward'],_0x12df57(0x148),'shape-editor-ui.arrange.forward'),ji=ki(gi,_0x299c73[_0x12df57(0x12e)],_0x12df57(0x2d0),_0x12df57(0x2e8)),Mi=ki(_i,_0x299c73['front'],_0x12df57(0x232),_0x12df57(0x100)),Ni=ki(vi,_0x299c73[_0x12df57(0x2fa)],'BottomIcon','shape-editor-ui.arrange.back');function Pi(_0x408970){const _0x23fe58=_0x12df57;return{'id':Lr['id'],'type':_0x2a2d7d['BUTTON'],'icon':_0x23fe58(0x191),'title':_0x23fe58(0x10f),'tooltip':'sheets-shape-ui.formatShape','hidden$':xi(_0x408970),'params':()=>{const _0x4da313=_0x23fe58;let _0x24ff29=bi(_0x408970);return _0x24ff29?{'unitId':_0x24ff29[_0x4da313(0x21e)],'subUnitId':_0x24ff29[_0x4da313(0x179)],'drawingId':_0x24ff29[_0x4da313(0x248)]}:void 0x0;}};}const Fi={[_0xebeed2['RIBBON']]:{[Nr]:{'order':0x64,'title':_0x12df57(0x10f),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[zr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ci},[Br['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':wi}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[fi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ei}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[pi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Di}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[Zr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ti},[Qr]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':ni},[hi]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Ai},[gi]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':ji},[_i]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Mi},[vi]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Ni}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[mi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Oi}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[Lr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Pi},[_0x4265b6['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x434b60}}}}},Ii={[_0x66892f['MEDIA']]:{[kr['id']]:{'order':0x4,'menuItemFactory':Yr}}},Li={...Ii,[_0x66892f[_0x12df57(0x363)]]:{[Ir['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Xr}},[_0x1e6c0b[_0x12df57(0x291)]]:{[_0x1695c8['OTHERS']]:{[Zr]:{'order':0x4,'menuItemFactory':ti},[Qr]:{'order':0x5,'menuItemFactory':ni}}}};var Ri=_0x12df57(0x2c0),zi=_0x12df57(0x172);const Bi={'id':_0x12df57(0x174),'type':_0x3cebb2[_0x12df57(0x224)],'handler'(_0x2bc088,_0x7dbb16){const _0x410622=_0x12df57;return _0x7dbb16?(_0x2bc088[_0x410622(0x1bd)](_0x5cf50c)[_0x410622(0x18c)](_0x7dbb16[_0x410622(0x1e6)],{'hostType':_0x43974e['UNIVER_SHEET'],'shapeId':_0x7dbb16[_0x410622(0x248)],'subUnitId':_0x7dbb16[_0x410622(0x179)],'unitId':_0x7dbb16['unitId']}),!0x0):!0x1;}},Vi=_0x12df57(0x21c),Hi={};let Ui=class extends _0x112f8d{constructor(_0x439fe1,_0x3d23aa,_0x35a08a,_0x370e48,_0x3bb215){const _0x1acd60=_0x12df57;super(),this['_context']=_0x439fe1,this['_drawingManagerService']=_0x3d23aa,this[_0x1acd60(0x110)]=_0x35a08a,this[_0x1acd60(0xe4)]=_0x370e48,this[_0x1acd60(0x188)]=_0x3bb215,q(this,_0x1acd60(0xe0),null),q(this,_0x1acd60(0xec),null),q(this,_0x1acd60(0x2cb),null),q(this,'_activeAdjustPointList',void 0x0),q(this,_0x1acd60(0x198),[]),q(this,_0x1acd60(0x1ff),0x0),q(this,_0x1acd60(0x22a),0x0),q(this,_0x1acd60(0x192),0x0),q(this,_0x1acd60(0x1ca),0x0),q(this,'_isStartAdjusting',!0x1),q(this,'_activeAdjustInfo',void 0x0),q(this,_0x1acd60(0x2b6),void 0x0),q(this,_0x1acd60(0x2c4),void 0x0),q(this,_0x1acd60(0x2a1),void 0x0),q(this,_0x1acd60(0x150),!0x1),this['_registerFocusChangeHandler'](),this[_0x1acd60(0x34e)]();}['clearAdjustControls'](){const _0x4962f0=_0x12df57;this[_0x4962f0(0xd9)]();}[_0x12df57(0x384)](){const _0x47d2c6=_0x12df57;this[_0x47d2c6(0xd9)](),this[_0x47d2c6(0x2b8)](!0x0);}[_0x12df57(0x2a2)](_0x385f2b,_0x6729ee,_0x3ecf65,_0xcf1bb3){const _0x46d1d7=_0x12df57;let _0x113ef6=_0x385f2b;if(_0x113ef6!==_0x58173b[_0x46d1d7(0x11d)]&&_0x385f2b!==_0x46d1d7(0x370))try{let _0x5ac507=new _0x12134e(_0x113ef6,_0x46d1d7(0x201)+_0x385f2b);return _0xcf1bb3&&_0x5ac507[_0x46d1d7(0xe3)]({'adjustValues':_0xcf1bb3},!0x0),_0x5ac507[_0x46d1d7(0x205)]({'width':_0x6729ee,'height':_0x3ecf65}),_0x5ac507;}catch{return;}}[_0x12df57(0x1be)](_0x2859a4,_0x4a8a80,_0x5e0f57){const _0x2769d9=_0x12df57;let _0xbea12a={'unitId':_0x2859a4,'subUnitId':_0x4a8a80,'drawingId':_0x5e0f57},_0x2226a3=this['_drawingManagerService']['getDrawingByParam'](_0xbea12a);if(_0x2226a3&&_0x2226a3['drawingType']===_0x51ad3e[_0x2769d9(0x1fb)])return _0x2226a3;}[_0x12df57(0x160)](_0xa5ec19,_0x1d1d0a,_0x4438f9){const _0x371cf0=_0x12df57;let _0x1c5fc9=this[_0x371cf0(0x110)][_0x371cf0(0x269)](_0xa5ec19);if(!_0x1c5fc9)return;let {scene:_0x3550af}=_0x1c5fc9,_0x449db0=_0x5b432f({'unitId':_0xa5ec19,'subUnitId':_0x1d1d0a,'drawingId':_0x4438f9}),_0x3d9b68=_0x3550af[_0x371cf0(0x32a)](_0x449db0);if(_0x3d9b68 instanceof _0x322ab3){let _0x3c0283=_0x3d9b68[_0x371cf0(0xd5)];if(_0x3c0283)return{'prstGeom':_0x3c0283,'adjustValues':_0x3d9b68[_0x371cf0(0x288)]};}}['_createControls'](_0x12f209=!0x1){const _0x586646=_0x12df57;if(!this['_unitId']||!this[_0x586646(0x2cb)]||!this[_0x586646(0xe0)])return;let _0x49c6e4=this['_renderManagerService'][_0x586646(0x269)](this['_unitId']);if(!_0x49c6e4||!_0x49c6e4[_0x586646(0x2f8)](_0x4e2ccb)[_0x586646(0x1b1)]())return;let {scene:_0x30372c}=_0x49c6e4,_0x54607f=this[_0x586646(0x1be)](this[_0x586646(0xec)],this[_0x586646(0x2cb)],this[_0x586646(0xe0)]);if(!_0x54607f)return;let {transform:_0x1b4a33}=_0x54607f;if(!_0x1b4a33)return;let {left:_0x233978,top:_0x1f996f,width:_0x5a5db1,height:_0x1b37ea,flipX:_0x36d9fe,flipY:_0x4ba11d,angle:_0x473b35=0x0}=_0x1b4a33;if(_0x233978===void 0x0||_0x1f996f===void 0x0)return;let _0x1ec005=this['_getImagePrstGeom'](this[_0x586646(0xec)],this['_subUnitId'],this['_activeImageId']);if(!_0x1ec005)return;if(_0x12f209){let _0x17ddce=this[_0x586646(0x2a2)](_0x1ec005['prstGeom'],_0x5a5db1||0x0,_0x1b37ea||0x0,_0x1ec005[_0x586646(0x1e9)]);if(!_0x17ddce)return;this[_0x586646(0x19d)]=_0x17ddce[_0x586646(0x2ad)]();}let _0x456986=this['_activeAdjustPointList'];if(_0x456986&&_0x456986[_0x586646(0x1d0)]!==0x0)for(let _0x4a51e6=0x0;_0x4a51e6<_0x456986[_0x586646(0x1d0)];_0x4a51e6++){let _0x40f520=_0x456986[_0x4a51e6],_0x27188a=_0x40f520['x'],_0x249b1b=_0x40f520['y'];if(_0x36d9fe&&(_0x27188a=(_0x5a5db1||0x0)-_0x27188a),_0x4ba11d&&(_0x249b1b=(_0x1b37ea||0x0)-_0x249b1b),_0x473b35!==0x0){let _0x5d1299=(_0x5a5db1||0x0)/0x2,_0x52563b=(_0x1b37ea||0x0)/0x2,_0x3d2974=_0x473b35*Math['PI']/0xb4,_0x583545=Math[_0x586646(0x27a)](_0x3d2974),_0x82f7f1=Math[_0x586646(0x1d3)](_0x3d2974),_0x5a614e=_0x27188a-_0x5d1299,_0x2a0159=_0x249b1b-_0x52563b;_0x27188a=_0x5d1299+(_0x5a614e*_0x583545-_0x2a0159*_0x82f7f1),_0x249b1b=_0x52563b+(_0x5a614e*_0x82f7f1+_0x2a0159*_0x583545);}let _0x57af29={'x':_0x27188a,'y':_0x249b1b,'adjName':_0x40f520['adjName']};this[_0x586646(0x2a4)](_0x30372c,_0x57af29,_0x57af29[_0x586646(0x223)],_0x233978,_0x1f996f,this[_0x586646(0xec)],this[_0x586646(0x2cb)]);}}[_0x12df57(0x2a4)](_0x3333e1,_0xa794c9,_0x4366f5,_0x36bc91,_0xc0d89d,_0x34a618,_0x1bcb60){const _0x508596=_0x12df57;if(!this[_0x508596(0xe0)])return;let _0x42b318='image-clip-adjust-point-'+this['_activeImageId']+'-'+_0x4366f5,_0x40b9b8=_0x3333e1[_0x508596(0x130)](_0x42b318);if(_0x40b9b8){_0x40b9b8[_0x508596(0x11b)]({'left':_0xa794c9['x']+_0x36bc91-_0x19a828[_0x508596(0x139)],'top':_0xa794c9['y']+_0xc0d89d-_0x19a828[_0x508596(0x139)]});return;}let _0x37e7f9=new Dr(_0x42b318,{'left':_0xa794c9['x']+_0x36bc91-_0x19a828[_0x508596(0x139)],'top':_0xa794c9['y']+_0xc0d89d-_0x19a828['adjHandleSize'],'adjName':_0x4366f5,'shapeId':this[_0x508596(0xe0)],'unitId':_0x34a618,'subUnitId':_0x1bcb60,'width':_0x19a828['adjHandleSize']+0x8,'height':_0x19a828[_0x508596(0x139)]+0x8,'zIndex':_0x434827+0x1,'evented':!0x0});this[_0x508596(0x198)]['push'](_0x37e7f9),this['_attachAdjustEvent'](_0x37e7f9,_0x3333e1,_0x4366f5),_0x3333e1['addObject'](_0x37e7f9,_0x434827+0x1);}['_clearControls'](){const _0x30dd87=_0x12df57;this['_shapes']['length']!==0x0&&(this[_0x30dd87(0x198)][_0x30dd87(0x28d)](_0x12cd11=>_0x12cd11[_0x30dd87(0x2ed)]()),this[_0x30dd87(0x198)]=[]);}[_0x12df57(0x237)](_0x14d2fe,_0x594be7){const _0x32ba24=_0x12df57;var _0x589a6e;let _0x3d80ae={'x':0x0,'y':0x0},_0x4b692d=this['_renderManagerService'][_0x32ba24(0x269)](_0x14d2fe);if(!_0x4b692d||!_0x4b692d[_0x32ba24(0x2f8)](_0x4e2ccb)[_0x32ba24(0x28c)](_0x594be7))return _0x3d80ae;let _0x37f97c=_0x4b692d['with'](_0xb28c90),_0x5321ab=_0x37f97c==null?void 0x0:_0x37f97c[_0x32ba24(0x1dd)]();if(!_0x5321ab)return _0x3d80ae;let _0x18b6e7=(_0x589a6e=this['_univerInstanceService']['getUnit'](_0x14d2fe))==null?void 0x0:_0x589a6e[_0x32ba24(0x116)](_0x594be7);if(!_0x18b6e7)return _0x3d80ae;let _0x52254f=_0xd77f2d(_0x5321ab[_0x32ba24(0x1ad)],_0x5321ab['sheetViewStartColumn'],_0x4b692d['scene'],_0x18b6e7);return _0x52254f?{'x':_0x52254f['viewportScrollX'],'y':_0x52254f[_0x32ba24(0x1c3)]}:_0x3d80ae;}['_getZoomRatio'](_0x5a9f21,_0x20d1e1){const _0x39fbb0=_0x12df57;var _0x2a32e5;let _0x4ebdab=(_0x2a32e5=this[_0x39fbb0(0xe4)][_0x39fbb0(0xf6)](_0x5a9f21))==null?void 0x0:_0x2a32e5['getSheetBySheetId'](_0x20d1e1);return(_0x4ebdab==null?void 0x0:_0x4ebdab[_0x39fbb0(0x26f)]())??0x1;}[_0x12df57(0x38c)](_0x5848ff,_0x19c240,_0x51466e){const _0x365971=_0x12df57;this[_0x365971(0x200)](_0x1152a8(_0x5848ff['onPointerDown$'][_0x365971(0x35f)]((_0x42f1e6,_0x128826)=>{const _0xa039c0=_0x365971;var _0x1ba962,_0xc4cdd0,_0x3691fa;let {unitId:_0x3c2c18,subUnitId:_0x232831,drawingId:_0x568614}=_0x5848ff[_0xa039c0(0x1aa)](),_0x1a0dce=this['_getImageDrawingInfo'](_0x3c2c18,_0x232831,_0x568614);if(!(_0x1a0dce!=null&&_0x1a0dce[_0xa039c0(0x114)]))return;let {left:_0x82600b,top:_0x4980cb,width:_0x5c3bd2,height:_0x8fa1a6}=_0x1a0dce[_0xa039c0(0x114)];this[_0xa039c0(0x1ff)]=_0x82600b||0x0,this[_0xa039c0(0x22a)]=_0x4980cb||0x0,this[_0xa039c0(0x192)]=_0x5c3bd2||0x0,this[_0xa039c0(0x1ca)]=_0x8fa1a6||0x0;let _0x51da0c=!!((_0x1ba962=_0x1a0dce[_0xa039c0(0x114)])!=null&&_0x1ba962[_0xa039c0(0x137)]),_0x4cf684=!!((_0xc4cdd0=_0x1a0dce['transform'])!=null&&_0xc4cdd0['flipY']),_0x1fc55f=((_0x3691fa=_0x1a0dce[_0xa039c0(0x114)])==null?void 0x0:_0x3691fa[_0xa039c0(0x354)])||0x0,_0x28c048=this['_getImagePrstGeom'](_0x3c2c18,_0x232831,_0x568614);if(!_0x28c048)return;let _0xb303d2=this[_0xa039c0(0x2a2)](_0x28c048[_0xa039c0(0xd5)],this[_0xa039c0(0x192)],this['_baseHeight'],_0x28c048['adjustValues']);if(!_0xb303d2||(this['_activeShapeModel']=_0xb303d2,this[_0xa039c0(0xde)]=_0xb303d2[_0xa039c0(0x2d5)](_0x51466e),!this[_0xa039c0(0xde)]))return;this[_0xa039c0(0x1a2)]=!0x0,_0x19c240[_0xa039c0(0xeb)]();let _0x5d161a=_0x28c048[_0xa039c0(0xd5)];this[_0xa039c0(0x2c4)]=_0x19c240['onPointerMove$'][_0xa039c0(0x35f)]((_0x1a0d55,_0x21cc2d)=>{const _0x32e9f1=_0xa039c0;if(!this[_0x32e9f1(0x1a2)])return;let {offsetX:_0x5d0f68,offsetY:_0x10f066}=_0x1a0d55,_0x2d29af=this[_0x32e9f1(0xde)];if(!this[_0x32e9f1(0x2b6)]||!_0x2d29af)return;_0x19c240['disableObjectsEvent'](),_0x19c240[_0x32e9f1(0x27e)](_0x2cc79d['CROSSHAIR']);let _0x305519={'left':0x0,'top':0x0,'width':this[_0x32e9f1(0x192)],'height':this[_0x32e9f1(0x1ca)]},_0x60d6a4=this[_0x32e9f1(0x237)](_0x3c2c18,_0x232831),_0x28fe5d=this[_0x32e9f1(0x12c)](_0x3c2c18,_0x232831),_0x1ce99a=_0x5d0f68/_0x28fe5d+_0x60d6a4['x']-this['_baseLeft'],_0x538336=_0x10f066/_0x28fe5d+_0x60d6a4['y']-this[_0x32e9f1(0x22a)];if(_0x1fc55f!==0x0){let _0x2ba2c8=this[_0x32e9f1(0x192)]/0x2,_0x439d18=this[_0x32e9f1(0x1ca)]/0x2,_0x5db87e=_0x1fc55f*Math['PI']/0xb4,_0x45fbf8=Math[_0x32e9f1(0x27a)](_0x5db87e),_0x438240=Math[_0x32e9f1(0x1d3)](_0x5db87e),_0x4af40c=_0x1ce99a-_0x2ba2c8,_0x4c2845=_0x538336-_0x439d18;_0x1ce99a=_0x2ba2c8+(_0x4af40c*_0x45fbf8+_0x4c2845*_0x438240),_0x538336=_0x439d18+(-_0x4af40c*_0x438240+_0x4c2845*_0x45fbf8);}_0x51da0c&&(_0x1ce99a=this[_0x32e9f1(0x192)]-_0x1ce99a),_0x4cf684&&(_0x538336=this[_0x32e9f1(0x1ca)]-_0x538336);let _0x223479=this[_0x32e9f1(0x2b6)]['calcAdjValues'](_0x305519,{'x':_0x1ce99a,'y':_0x538336},_0x2d29af,_0x51da0c,_0x4cf684);if(Object['keys'](_0x223479)['length']!==0x0){for(let [_0x1caf91,_0x2dc2a9]of Object[_0x32e9f1(0x105)](_0x223479))this[_0x32e9f1(0x2b6)]['setAdjustValueByName'](_0x1caf91,_0x2dc2a9);this[_0x32e9f1(0x2b6)][_0x32e9f1(0x205)]({'width':this[_0x32e9f1(0x192)],'height':this[_0x32e9f1(0x1ca)]}),this['_updateImageAdjValues'](_0x3c2c18,_0x232831,_0x568614,_0x223479),this[_0x32e9f1(0x19d)]=this[_0x32e9f1(0x2b6)][_0x32e9f1(0x2ad)](),this[_0x32e9f1(0x2b8)](),_0x21cc2d[_0x32e9f1(0x33d)]();}}),this[_0xa039c0(0x2a1)]=_0x19c240[_0xa039c0(0x23b)][_0xa039c0(0x35f)]((_0x39e05c,_0x28d255)=>{const _0x37b858=_0xa039c0;if(this[_0x37b858(0x2c4)][_0x37b858(0x2f1)](),this[_0x37b858(0x2a1)]['unsubscribe'](),_0x19c240[_0x37b858(0x35e)](),this['_activeShapeModel']){let _0x198bef=this[_0x37b858(0x2b6)][_0x37b858(0x238)](),_0x3fc491={};for(let _0x5c3cbf of _0x198bef){let _0x304497=this[_0x37b858(0x2b6)][_0x37b858(0x30f)](_0x5c3cbf);_0x304497!==void 0x0&&(_0x3fc491[_0x5c3cbf]=_0x304497);}this[_0x37b858(0x188)]['clipByShape'](_0x3c2c18,_0x232831,_0x568614,_0x5d161a,_0x3fc491);}this['_activeAdjustInfo']=void 0x0,this[_0x37b858(0x2b6)]=void 0x0,this[_0x37b858(0x1a2)]=!0x1,_0x28d255[_0x37b858(0x33d)](),_0x19c240[_0x37b858(0x1b2)]();}),_0x128826[_0xa039c0(0x33d)]();})));}[_0x12df57(0x243)](_0x5972ca,_0x12ba06,_0x25423b,_0x2c27bc){const _0x157012=_0x12df57;let _0x167a24=this[_0x157012(0x110)]['getRenderUnitById'](_0x5972ca);if(!_0x167a24)return;let {scene:_0x4f64b9}=_0x167a24,_0x234a34=_0x5b432f({'unitId':_0x5972ca,'subUnitId':_0x12ba06,'drawingId':_0x25423b}),_0x1e4b06=_0x4f64b9['getObject'](_0x234a34);if(_0x1e4b06 instanceof _0x322ab3){let _0x186d41=_0x1e4b06[_0x157012(0x288)]??{};_0x1e4b06[_0x157012(0x122)]({..._0x186d41,..._0x2c27bc}),_0x1e4b06[_0x157012(0x161)](!0x0);}}['_registerMoveHandler'](){const _0x2a49f9=_0x12df57;let _0x1b31fd=this['_univerInstanceService'][_0x2a49f9(0xd8)](_0x43974e[_0x2a49f9(0x29c)]);this[_0x2a49f9(0x200)](_0x1b31fd[_0x2a49f9(0x125)](_0x3339fd(_0x242dde=>_0x242dde?_0x242dde[_0x2a49f9(0x166)][_0x2a49f9(0x125)](_0x3339fd(_0x1bfc88=>{const _0x46bded=_0x2a49f9;if(!_0x1bfc88)return _0x510d35;let _0x42ceff=_0x242dde['getUnitId'](),_0x449087=this[_0x46bded(0x110)][_0x46bded(0x269)](_0x42ceff),_0x5110ed=_0x449087==null?void 0x0:_0x449087['scene'];return _0x5110ed?_0xcf385(_0x5110ed):_0x510d35;})):_0x510d35))[_0x2a49f9(0xee)](_0x4f2e7f=>{const _0xd31e56=_0x2a49f9;let _0x23bebd=_0x4f2e7f[_0xd31e56(0x1a6)]();this[_0xd31e56(0x200)](_0x4f2e7f[_0xd31e56(0x2fb)][_0xd31e56(0x35f)](()=>{this['_isImagePointerDown']&&this['_clearControls']();})),this[_0xd31e56(0x200)](_0x23bebd[_0xd31e56(0x292)][_0xd31e56(0xee)](_0xb3196=>{const _0xaf5fab=_0xd31e56;let {objects:_0x107511}=_0xb3196;if(this['_createControls'](),_0x107511!==null&&_0x107511[_0xaf5fab(0x165)]===0x1){let _0x52bbc1=_0x107511['values']()['next']()[_0xaf5fab(0x156)];_0x52bbc1 instanceof _0x322ab3&&_0x52bbc1[_0xaf5fab(0xd5)]&&(this[_0xaf5fab(0x150)]=!0x0);}})),this[_0xd31e56(0x200)](_0x23bebd[_0xd31e56(0x1d2)][_0xd31e56(0xee)](()=>{const _0x173b3e=_0xd31e56;this['_isImagePointerDown']&&this[_0x173b3e(0xd9)]();})),this['disposeWithMe'](_0x4f2e7f[_0xd31e56(0x23b)][_0xd31e56(0x35f)](()=>{const _0x17bb98=_0xd31e56;this['_isImagePointerDown']&&(this[_0x17bb98(0x150)]=!0x1,this[_0x17bb98(0x2b8)]());})),this[_0xd31e56(0x200)](_0x23bebd[_0xd31e56(0x18b)]['subscribe'](()=>{const _0x301f1b=_0xd31e56;if(this['_unitId']&&this[_0x301f1b(0x2cb)]&&this[_0x301f1b(0xe0)]){let _0x23f5c2=this[_0x301f1b(0x160)](this[_0x301f1b(0xec)],this['_subUnitId'],this['_activeImageId']);if(_0x23f5c2){var _0xa5cdc0,_0x49ef1f;let _0x2a92b7=this[_0x301f1b(0x1be)](this[_0x301f1b(0xec)],this['_subUnitId'],this['_activeImageId']),_0x5abe22=(_0x2a92b7==null||(_0xa5cdc0=_0x2a92b7[_0x301f1b(0x114)])==null?void 0x0:_0xa5cdc0[_0x301f1b(0x1d1)])||0x0,_0xbf5c2=(_0x2a92b7==null||(_0x49ef1f=_0x2a92b7[_0x301f1b(0x114)])==null?void 0x0:_0x49ef1f[_0x301f1b(0x1b0)])||0x0,_0x224798=this[_0x301f1b(0x2a2)](_0x23f5c2['prstGeom'],_0x5abe22,_0xbf5c2,_0x23f5c2[_0x301f1b(0x1e9)]);_0x224798&&(this[_0x301f1b(0x19d)]=_0x224798[_0x301f1b(0x2ad)](),this['_clearControls'](),this['_createControls'](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x2911e8=_0x12df57;this['disposeWithMe'](this[_0x2911e8(0x12f)][_0x2911e8(0x20f)][_0x2911e8(0xee)](_0x143a90=>{const _0x337094=_0x2911e8;if(_0x143a90[_0x337094(0x1d0)]===0x1){let _0x3d90ee=_0x143a90[0x0];if(_0x3d90ee[_0x337094(0x309)]===_0x51ad3e[_0x337094(0x1fb)]){let {unitId:_0x271d68,subUnitId:_0xc49368,drawingId:_0x1715bf}=_0x3d90ee,_0x21a034=this[_0x337094(0x160)](_0x271d68,_0xc49368,_0x1715bf);if(_0x21a034){var _0x440ce1,_0x39c4ed;this[_0x337094(0xe0)]=_0x1715bf,this[_0x337094(0xec)]=_0x271d68,this[_0x337094(0x2cb)]=_0xc49368;let _0x361a0d=this[_0x337094(0x1be)](_0x271d68,_0xc49368,_0x1715bf),_0x1c1a02=(_0x361a0d==null||(_0x440ce1=_0x361a0d['transform'])==null?void 0x0:_0x440ce1[_0x337094(0x1d1)])||0x0,_0x397308=(_0x361a0d==null||(_0x39c4ed=_0x361a0d[_0x337094(0x114)])==null?void 0x0:_0x39c4ed['height'])||0x0,_0x47e897=this[_0x337094(0x2a2)](_0x21a034[_0x337094(0xd5)],_0x1c1a02,_0x397308,_0x21a034[_0x337094(0x1e9)]);_0x47e897&&(this[_0x337094(0x19d)]=_0x47e897['getDrawingPoints']()),this[_0x337094(0xd9)](),this[_0x337094(0x2b8)](!0x0);}else this[_0x337094(0x289)]();}else this['_resetState']();}else this[_0x337094(0x289)]();})),this[_0x2911e8(0x200)](this[_0x2911e8(0x12f)]['update$'][_0x2911e8(0xee)](_0x2757c1=>{const _0x35edbd=_0x2911e8;if(_0x2757c1['length']===0x1){let _0x206eb1=_0x2757c1[0x0],_0x11fd07=this['_drawingManagerService']['getDrawingByParam'](_0x206eb1);(_0x11fd07==null?void 0x0:_0x11fd07[_0x35edbd(0x309)])===_0x51ad3e[_0x35edbd(0x1fb)]&&this['_activeImageId']===_0x206eb1[_0x35edbd(0x248)]&&(this['_clearControls'](),this['_createControls'](!0x0));}})),this[_0x2911e8(0x200)](this['_drawingManagerService']['remove$']['subscribe'](_0x4f5307=>{const _0x12b2ed=_0x2911e8;for(let _0x186383 of _0x4f5307)this[_0x12b2ed(0xe0)]===_0x186383[_0x12b2ed(0x248)]&&this['_resetState']();}));}['_resetState'](){const _0x50ad9d=_0x12df57;this[_0x50ad9d(0xe0)]=null,this[_0x50ad9d(0xec)]=null,this[_0x50ad9d(0x2cb)]=null,this[_0x50ad9d(0x19d)]=void 0x0,this['_clearControls']();}};Ui=Y([J(0x1,_0x5b31b6),J(0x2,_0x441dea(_0x490ecc)),J(0x3,_0xb60de6),J(0x4,_0x441dea(Q))],Ui);function Wi(_0x54c790){return _0x54c790['trim']()||void 0x0;}function Gi(_0x3a204b,_0x524ec0,_0x48cf69){const _0x58c259=_0x12df57;var _0x534ec9;return((_0x534ec9=_0x3a204b[_0x58c259(0x395)])==null?void 0x0:_0x534ec9['trim']())||_0x48cf69['t']('drawing-ui.objectListPanel.typeNames.'+_0x10b9c3(_0x3a204b[_0x58c259(0x309)]))+'\x20'+(_0x524ec0+0x1);}function Ki({PanelComponent:_0xa348fe=_0x4de145}){const _0x45035d=_0x12df57;var _0x1d4ff8;let _0x5b928a=_0x89c257(_0xbd5d6b),_0x4abee6={'title':_0x5b928a['t'](_0x45035d(0xd3)),'empty':_0x5b928a['t'](_0x45035d(0x2ff)),'showAll':_0x5b928a['t'](_0x45035d(0x1ea)),'hideAll':_0x5b928a['t'](_0x45035d(0x1ae)),'lockAll':_0x5b928a['t']('drawing-ui.objectListPanel.lockAll'),'unlockAll':_0x5b928a['t'](_0x45035d(0x2e4)),'moveForward':_0x5b928a['t'](_0x45035d(0x1a5)),'moveBackward':_0x5b928a['t'](_0x45035d(0x1cb)),'close':_0x5b928a['t'](_0x45035d(0x129)),'show':_0x5b928a['t']('drawing-ui.objectListPanel.show'),'hide':_0x5b928a['t'](_0x45035d(0x183)),'lock':_0x5b928a['t'](_0x45035d(0x2dc)),'unlock':_0x5b928a['t'](_0x45035d(0x25c)),'lockHint':_0x5b928a['t'](_0x45035d(0x2dd)),'unlockHint':_0x5b928a['t'](_0x45035d(0x218)),'name':_0x5b928a['t']('drawing-ui.objectListPanel.name'),'nameInput':_0x5b928a['t'](_0x45035d(0x2ec)),'description':_0x5b928a['t'](_0x45035d(0x393)),'descriptionPlaceholder':_0x5b928a['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0x5b928a['t'](_0x45035d(0x2e5)),'noSelection':_0x5b928a['t'](_0x45035d(0x124)),'locate':_0x5b928a['t'](_0x45035d(0x176)),'expand':_0x5b928a['t'](_0x45035d(0x398)),'collapse':_0x5b928a['t'](_0x45035d(0x267)),'dragToReorder':_0x5b928a['t'](_0x45035d(0x334)),'search':_0x5b928a['t'](_0x45035d(0x341)),'filterAll':_0x5b928a['t'](_0x45035d(0x246)),'filterHidden':_0x5b928a['t'](_0x45035d(0x17f)),'filterLocked':_0x5b928a['t'](_0x45035d(0x22f)),'sectionCanvas':_0x5b928a['t'](_0x45035d(0xd6)),'sectionFloating':_0x5b928a['t'](_0x45035d(0x270))},_0x424a0a=_0x89c257(_0x12955f),_0xf2320b=_0x89c257(_0xb60de6),_0x2003ff=_0x89c257(_0xa74f05),_0x8a472=_0x89c257(_0x5b31b6),_0x482971=_0x89c257(_0x490ecc),[,_0x54dcb2]=_0x516940(_0x1009ee=>_0x1009ee+0x1,0x0),_0x1a7f26=_0xf2320b[_0x45035d(0xfe)](_0x43974e[_0x45035d(0x29c)]),_0x275600=(_0x1a7f26==null?void 0x0:_0x1a7f26[_0x45035d(0xfb)]())??'',_0x4bc277=(_0x1a7f26==null||(_0x1d4ff8=_0x1a7f26[_0x45035d(0x1a9)]())==null?void 0x0:_0x1d4ff8[_0x45035d(0x15e)]())??'',_0x22683b=_0x296781(()=>_0x8a472['focus$'],_0x8a472[_0x45035d(0x31b)](),!0x1,[_0x8a472]);_0xc2358(()=>{const _0x14d99d=_0x45035d;let _0xea4277=_0x424a0a[_0x14d99d(0x2d9)](()=>_0x54dcb2());return()=>_0xea4277['dispose']();},[_0x424a0a]);let _0x3dd572=_0x275600&&_0x4bc277?_0x2003ff[_0x45035d(0x1bf)](_0x275600,_0x4bc277):{},_0x233f77=(_0x275600&&_0x4bc277?_0x2003ff[_0x45035d(0x16c)](_0x275600,_0x4bc277):[])['map'](_0x1c56fb=>_0x3dd572[_0x1c56fb])[_0x45035d(0x331)](_0x35cafb=>!!_0x35cafb)[_0x45035d(0x390)](),_0x1c0b78=_0x233f77[_0x45035d(0x338)]((_0x2834df,_0x416037)=>(_0x2834df[_0x19bb9e(_0x416037['drawingType'])]+=0x1,_0x2834df),{'canvas':0x0,'floating':0x0}),_0x563945={'canvas':0x0,'floating':0x0},_0x2630fd=_0x233f77[_0x45035d(0x339)]((_0x415295,_0x318bea)=>{const _0x3bcfb0=_0x45035d;let _0x1e5530=_0x19bb9e(_0x415295[_0x3bcfb0(0x309)]),_0x50850d=_0x1e5530===_0x57f6c3,_0x27b005=_0x563945[_0x1e5530]++;return{'id':_0x415295[_0x3bcfb0(0x248)],'name':Gi(_0x415295,_0x318bea,_0x5b928a),'description':_0x415295[_0x3bcfb0(0x2c2)],'visible':_0x415295['hidden']!==!0x0,'selectable':_0x415295[_0x3bcfb0(0x1ce)]!==!0x1,'sectionId':_0x1e5530,'sectionTitle':_0x50850d?_0x4abee6['sectionFloating']:_0x4abee6['sectionCanvas'],'capabilities':_0x50850d?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x50850d&&_0x27b005>0x0,'canMoveBackward':!_0x50850d&&_0x27b005<_0x1c0b78[_0x3bcfb0(0x182)]-0x1,'canReorder':!_0x50850d};}),_0xaa3f4b=_0x270060(()=>(_0x22683b??[])[_0x45035d(0x331)](_0x12e301=>_0x12e301[_0x45035d(0x21e)]===_0x275600&&_0x12e301[_0x45035d(0x179)]===_0x4bc277)['map'](_0x5e27fb=>_0x5e27fb[_0x45035d(0x248)]),[_0x22683b,_0x4bc277,_0x275600]),_0x408f15=_0xaa3f4b[_0xaa3f4b[_0x45035d(0x1d0)]-0x1]??null,_0x73a287=_0x2ce2e2=>_0x2003ff[_0x45035d(0x27d)]({'unitId':_0x275600,'subUnitId':_0x4bc277,'drawingId':_0x2ce2e2})??null,_0x3c21aa=async _0x4a40d5=>{const _0xf32c85=_0x45035d;_0x275600&&_0x4a40d5[_0xf32c85(0x1d0)]&&await _0x424a0a['executeCommand'](_0x516914['id'],{'unitId':_0x275600,'drawings':_0x4a40d5});},_0x21f298=async(_0x34305a,_0xdb584e)=>{_0x73a287(_0x34305a)&&await _0x3c21aa([{'unitId':_0x275600,'subUnitId':_0x4bc277,'drawingId':_0x34305a,..._0xdb584e}]);},_0xd548b=(_0x3ae7e7,_0x6926eb)=>{const _0x57e2d5=_0x45035d;if(!_0x275600||!_0x4bc277)return;let _0x111cc8=_0x6926eb?_0xaa3f4b[_0x57e2d5(0x23f)](_0x3ae7e7)?_0xaa3f4b[_0x57e2d5(0x331)](_0x52543a=>_0x52543a!==_0x3ae7e7):[..._0xaa3f4b,_0x3ae7e7]:[_0x3ae7e7];_0x424a0a[_0x57e2d5(0x231)](_0x1ea54f['id'],_0x111cc8[_0x57e2d5(0x339)](_0x48a1c4=>({'unitId':_0x275600,'subUnitId':_0x4bc277,'drawingId':_0x48a1c4})));let _0x52ee40=_0x111cc8[_0x111cc8[_0x57e2d5(0x1d0)]-0x1];_0x52ee40?_0x46110a(_0x482971,{'unitId':_0x275600,'subUnitId':_0x4bc277,'drawingId':_0x52ee40}):_0x27277a(_0x482971,_0x275600);},_0x42113f=async(_0x4435bf,_0x3cd7cc)=>{const _0x4e956b=_0x45035d;await _0x3c21aa(_0x4435bf['map'](_0x8b87ac=>_0x73a287(_0x8b87ac))[_0x4e956b(0x331)](_0x2969f6=>!!_0x2969f6)[_0x4e956b(0x331)](_0x299dc5=>_0x299dc5[_0x4e956b(0x16f)]!==!0x0!==_0x3cd7cc)['map'](_0x3bd388=>({'unitId':_0x275600,'subUnitId':_0x4bc277,'drawingId':_0x3bd388[_0x4e956b(0x248)],'hidden':!_0x3cd7cc})));},_0x5e9bd4=async(_0x3794e5,_0xdeef9c)=>{const _0x59e873=_0x45035d;await _0x3c21aa(_0x3794e5[_0x59e873(0x339)](_0x24bb14=>_0x73a287(_0x24bb14))[_0x59e873(0x331)](_0x539f52=>!!_0x539f52)['filter'](_0x34a047=>_0x34a047['selectable']!==!0x1!==_0xdeef9c)['map'](_0x35ca8d=>({'unitId':_0x275600,'subUnitId':_0x4bc277,'drawingId':_0x35ca8d['drawingId'],'selectable':_0xdeef9c})));},_0x10b73c=_0x4a6105=>{const _0x194222=_0x45035d;let _0x496795=_0x73a287(_0x4a6105);if(_0x496795)return _0x5e9bd4([_0x4a6105],_0x496795[_0x194222(0x1ce)]===!0x1);},_0x2a58c1=async(_0x174f28,_0x110632)=>{const _0x4804cb=_0x45035d;var _0x23f708;let _0x3afb2a=Wi(_0x110632);(((_0x23f708=_0x73a287(_0x174f28))==null?void 0x0:_0x23f708[_0x4804cb(0x395)])??void 0x0)!==_0x3afb2a&&await _0x21f298(_0x174f28,{'name':_0x3afb2a});},_0x48848b=async(_0x8e30bf,_0x4ae800)=>{const _0x295f16=_0x45035d;var _0x5cb03b;let _0x2749e2=Wi(_0x4ae800);(((_0x5cb03b=_0x73a287(_0x8e30bf))==null?void 0x0:_0x5cb03b[_0x295f16(0x2c2)])??void 0x0)!==_0x2749e2&&await _0x21f298(_0x8e30bf,{'description':_0x2749e2});},_0x1613d2=async(_0x2cf813,_0x5b0631)=>{const _0x5cc324=_0x45035d;_0x275600&&_0x4bc277&&await _0x424a0a[_0x5cc324(0xf9)](_0x26e8e6['id'],{'unitId':_0x275600,'subUnitId':_0x4bc277,'drawingIds':[_0x2cf813],'arrangeType':_0x5b0631});};return!_0x275600||!_0x4bc277?_0x208197('div',{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x4abee6[_0x45035d(0x368)]}):_0x208197(_0xa348fe,{'labels':_0x4abee6,'items':_0x2630fd,'selectedIds':_0xaa3f4b,'focusedId':_0x408f15,'showHeader':!0x1,'onSelect':_0xd548b,'onSetVisible':_0x42113f,'onSetSelectable':_0x5e9bd4,'onCommitName':_0x2a58c1,'onCommitDescription':_0x48848b,'onMoveForward':async _0x4b068a=>_0x1613d2(_0x4b068a,_0x299c73['forward']),'onMoveBackward':async _0x19d72d=>_0x1613d2(_0x19d72d,_0x299c73[_0x45035d(0x12e)]),'onToggleSelectable':_0x10b73c});}function qi(){return _0x208197(Ki,{'PanelComponent':_0x3c62a3});}let Ji=class extends _0x112f8d{constructor(_0x521bd2,_0x240857){const _0x41734a=_0x12df57;super(),this[_0x41734a(0x200)](_0x521bd2[_0x41734a(0x333)](jr,qi)),this[_0x41734a(0x200)](_0x240857[_0x41734a(0x333)]({'BottomIcon':_0x1f02ea,'FlipHorizontalIcon':_0x1a5b21,'FlipVerticalIcon':_0x225c7e,'MoveDownIcon':_0x2dcbc5,'MoveUpIcon':_0x422322,'ObjectLayersIcon':_0x54f95f,'ShapeFormatSettingIcon':_0x1e754c,'TopmostIcon':_0x12b47e})),this[_0x41734a(0x200)](_0x521bd2['register'](Vr,Jr)),this['disposeWithMe'](_0x521bd2[_0x41734a(0x333)](Hr,Gr)),_0x521bd2[_0x41734a(0x1bd)](_0x220fd1)||this[_0x41734a(0x200)](_0x521bd2['register'](_0x220fd1,Kr));}};Ji=Y([J(0x0,_0x441dea(_0x38cfa2)),J(0x1,_0x441dea(_0x30514f))],Ji);let $=class extends _0x112f8d{constructor(_0x1c008d){const _0x321c12=_0x12df57;super(),this[_0x321c12(0x1f2)]=_0x1c008d,q(this,'_editingParams$',new _0x3c0027(null)),q(this,_0x321c12(0xd4),this[_0x321c12(0x1ee)]['asObservable']()),q(this,'_onSavingEditorData$',new _0x3c0027(!0x1)),q(this,_0x321c12(0xf3),this[_0x321c12(0x152)][_0x321c12(0x30a)]()),q(this,_0x321c12(0x2a9),void 0x0),this[_0x321c12(0x200)](this[_0x321c12(0x1f2)]['permissionPointUpdate$']['subscribe'](()=>{const _0xe8fc60=_0x321c12;let _0x3dfb61=this['getEditing']();_0x3dfb61!=null&&_0x3dfb61[_0xe8fc60(0x2b2)]&&!this[_0xe8fc60(0x381)](_0x3dfb61)&&this[_0xe8fc60(0x254)](null);}));}[_0x12df57(0x2ed)](){const _0x57b793=_0x12df57;this[_0x57b793(0x197)](),this['_editingParams$'][_0x57b793(0x35b)](null),this[_0x57b793(0x1ee)][_0x57b793(0x1c9)](),this[_0x57b793(0x152)][_0x57b793(0x35b)](!0x1),this[_0x57b793(0x152)][_0x57b793(0x1c9)](),super['dispose']();}[_0x12df57(0x254)](_0x151939){const _0x3c78fe=_0x12df57;(_0x151939==null||!_0x151939[_0x3c78fe(0x2b2)]||this[_0x3c78fe(0x381)](_0x151939))&&(this[_0x3c78fe(0x197)](),this[_0x3c78fe(0x1ee)]['next'](_0x151939),(_0x151939==null||_0x151939[_0x3c78fe(0x2b2)]&&this[_0x3c78fe(0x152)][_0x3c78fe(0x2bd)]())&&this[_0x3c78fe(0x152)][_0x3c78fe(0x35b)](!0x1));}['setOnSavingEditorData'](_0x34eb44){const _0x15d8b5=_0x12df57;this[_0x15d8b5(0x152)][_0x15d8b5(0x35b)](_0x34eb44);}[_0x12df57(0x397)](){const _0x4b8874=_0x12df57;return this[_0x4b8874(0x1ee)][_0x4b8874(0x2bd)]();}['_canEdit'](_0x50b472){const _0x3c327f=_0x12df57;let _0x3cc985=this[_0x3c327f(0x1f2)][_0x3c327f(0x1f9)](new _0x43774a(_0x50b472['unitId'])['id']),_0x49f88a=this['_permissionService'][_0x3c327f(0x1f9)](new _0x1cb5f9(_0x50b472['unitId'],_0x50b472[_0x3c327f(0x179)])['id']);return((_0x3cc985==null?void 0x0:_0x3cc985[_0x3c327f(0x156)])??!0x0)&&((_0x49f88a==null?void 0x0:_0x49f88a['value'])??!0x0);}['completeEditing'](_0x14f7a7){const _0x43a85e=_0x12df57;let _0x832107=this[_0x43a85e(0x397)]();_0x832107&&this[_0x43a85e(0x2a9)]===void 0x0&&(this[_0x43a85e(0x251)](!0x0),this[_0x43a85e(0x2a9)]=requestAnimationFrame(()=>{const _0x516d19=_0x43a85e;this[_0x516d19(0x2a9)]=void 0x0,this[_0x516d19(0x397)]()===_0x832107&&this[_0x516d19(0x254)](null);}));}[_0x12df57(0x197)](){const _0x5ea993=_0x12df57;this[_0x5ea993(0x2a9)]!==void 0x0&&(cancelAnimationFrame(this['_completionFrame']),this[_0x5ea993(0x2a9)]=void 0x0);}[_0x12df57(0x1b8)](){const _0x5968cd=_0x12df57;this[_0x5968cd(0x397)]()&&this['setEditing'](null);}};$=Y([J(0x0,_0x61a9f9)],$);let Yi=class extends _0x112f8d{constructor(_0x698277,_0x2c9949,_0x3196bd,_0x27b4cb,_0x540225,_0x461ac8){const _0x5ebfc3=_0x12df57;super(),this[_0x5ebfc3(0x250)]=_0x698277,this[_0x5ebfc3(0x203)]=_0x2c9949,this['_shapeTextEditingService']=_0x3196bd,this[_0x5ebfc3(0x12f)]=_0x27b4cb,this[_0x5ebfc3(0x1c2)]=_0x540225,this[_0x5ebfc3(0x261)]=_0x461ac8,q(this,_0x5ebfc3(0x2da),null),this[_0x5ebfc3(0x36f)](),this['_initSelection'](),this[_0x5ebfc3(0x32b)]();}[_0x12df57(0x36f)](){const _0x367c81=_0x12df57;let {scene:_0x45587b}=this[_0x367c81(0x250)];this[_0x367c81(0x200)](_0x45587b[_0x367c81(0x30c)][_0x367c81(0x35f)](_0x3ea3ef=>{const _0x25ee77=_0x367c81;let {offsetX:_0x56396c,offsetY:_0x12a6a6}=_0x3ea3ef,_0x2bc530=_0x45587b[_0x25ee77(0x32f)](_0x2169f2[_0x25ee77(0x10c)]([_0x56396c,_0x12a6a6]));if(_0x2bc530 instanceof Er){let _0x17ad46=this[_0x25ee77(0x261)]['getShapeModel'](_0x2bc530[_0x25ee77(0x21e)],_0x2bc530[_0x25ee77(0x179)],_0x2bc530[_0x25ee77(0x2c6)]);if(_0x5350d3(this[_0x25ee77(0x261)][_0x25ee77(0x23d)](_0x2bc530[_0x25ee77(0x21e)],_0x2bc530[_0x25ee77(0x179)],_0x2bc530['shapeId']))||_0x17ad46!=null&&_0x17ad46[_0x25ee77(0x26e)]()[_0x25ee77(0x35a)])return;this[_0x25ee77(0xf2)][_0x25ee77(0x254)]({'visible':!0x0,'unitId':_0x2bc530[_0x25ee77(0x21e)],'subUnitId':_0x2bc530[_0x25ee77(0x179)],'shapeId':_0x2bc530[_0x25ee77(0x2c6)],'shapeKey':_0x2bc530[_0x25ee77(0x1a4)]});}}));}[_0x12df57(0x1cd)](){const _0x635d59=_0x12df57;this['disposeWithMe'](this['_drawingManagerService'][_0x635d59(0x20f)][_0x635d59(0xee)](_0x45c135=>{const _0xb60acb=_0x635d59;if(_0x45c135[_0xb60acb(0x1d0)]===0x1){let _0x73efa0=_0x45c135[0x0],_0x591874=this[_0xb60acb(0x12f)][_0xb60acb(0x27d)](_0x73efa0);if((_0x591874==null?void 0x0:_0x591874[_0xb60acb(0x309)])===_0x51ad3e[_0xb60acb(0x305)]){var _0xe7b0ac;let _0x48224c=this[_0xb60acb(0xf2)][_0xb60acb(0x397)]();if((_0x48224c==null?void 0x0:_0x48224c[_0xb60acb(0x2c6)])===_0x73efa0[_0xb60acb(0x248)]&&_0x48224c[_0xb60acb(0x2b2)])return;let _0x5b7ab0=_0x5350d3(this['_sheetsShapeService'][_0xb60acb(0x23d)](_0x73efa0[_0xb60acb(0x21e)],_0x73efa0[_0xb60acb(0x179)],_0x73efa0[_0xb60acb(0x248)])),_0x3ae970=!!((_0xe7b0ac=this[_0xb60acb(0x261)][_0xb60acb(0x337)](_0x73efa0[_0xb60acb(0x21e)],_0x73efa0['subUnitId'],_0x73efa0['drawingId']))!=null&&_0xe7b0ac[_0xb60acb(0x26e)]()[_0xb60acb(0x35a)]);(_0x5b7ab0||_0x3ae970)&&this[_0xb60acb(0xf2)][_0xb60acb(0x254)](null);}else this['_shapeTextEditingService'][_0xb60acb(0x25b)]();}else this[_0xb60acb(0xf2)][_0xb60acb(0x25b)]();})),this[_0x635d59(0x200)](this[_0x635d59(0x12f)]['remove$'][_0x635d59(0xee)](_0x3e2272=>{const _0x5650bd=_0x635d59;let _0x230418=this[_0x5650bd(0xf2)][_0x5650bd(0x397)]();_0x230418&&_0x3e2272[_0x5650bd(0x12a)](_0x1e8d1d=>_0x1e8d1d['drawingId']===_0x230418[_0x5650bd(0x2c6)])&&this[_0x5650bd(0xf2)][_0x5650bd(0x254)](null);}));}[_0x12df57(0x32b)](){const _0x61e148=_0x12df57;this['disposeWithMe'](this['_shapeTextEditingService'][_0x61e148(0xd4)][_0x61e148(0xee)](_0x4a8e4b=>{const _0x3f1ee2=_0x61e148;let {scene:_0x3ff646}=this['_context'];if(this['_lastEditingShapeKey']){let _0xc66a=_0x3ff646['getObjectIncludeInGroup'](this[_0x3f1ee2(0x2da)]);_0xc66a&&_0xc66a[_0x3f1ee2(0x254)](!0x1);}if(_0x4a8e4b){let _0x4e6b02=!!_0x4a8e4b['visible'],_0x1403e0=_0x3ff646[_0x3f1ee2(0x130)](_0x4a8e4b[_0x3f1ee2(0x299)]);_0x1403e0&&(_0x1403e0[_0x3f1ee2(0x254)](_0x4e6b02),this[_0x3f1ee2(0x2da)]=_0x4a8e4b[_0x3f1ee2(0x299)]),this[_0x3f1ee2(0x1c2)][_0x3f1ee2(0x1c5)](_0x18b266,_0x4e6b02);}else this[_0x3f1ee2(0x2da)]=null,this[_0x3f1ee2(0x1c2)][_0x3f1ee2(0x1c5)](_0x18b266,!0x1);}));}};Yi=Y([J(0x1,_0x441dea(_0x355203)),J(0x2,_0x441dea($)),J(0x3,_0x5b31b6),J(0x4,_0x48e88d),J(0x5,_0x441dea(_0x2da406))],Yi);var Xi=class extends Yi{['_initEvents'](){const _0x149bbe=_0x12df57;let {scene:_0x577ccc}=this[_0x149bbe(0x250)],_0xedf698=this[_0x149bbe(0x203)]['get'](_0x5cf50c);this[_0x149bbe(0x200)](_0x577ccc[_0x149bbe(0x30c)][_0x149bbe(0x35f)](_0x15bd88=>{const _0x14718e=_0x149bbe;let {offsetX:_0x2fcdbf,offsetY:_0x114038}=_0x15bd88,_0x3d4810=_0x577ccc[_0x14718e(0x32f)](_0x2169f2[_0x14718e(0x10c)]([_0x2fcdbf,_0x114038]));if(!(_0x3d4810 instanceof Er))return;let _0x36135f=this[_0x14718e(0x261)][_0x14718e(0x337)](_0x3d4810[_0x14718e(0x21e)],_0x3d4810['subUnitId'],_0x3d4810[_0x14718e(0x2c6)]);_0x5350d3(this[_0x14718e(0x261)][_0x14718e(0x23d)](_0x3d4810[_0x14718e(0x21e)],_0x3d4810[_0x14718e(0x179)],_0x3d4810[_0x14718e(0x2c6)]))||_0x36135f!=null&&_0x36135f[_0x14718e(0x26e)]()[_0x14718e(0x35a)]||_0xedf698['open'](_0x14718e(0x144),{'hostType':_0x43974e['UNIVER_SHEET'],'unitId':_0x3d4810[_0x14718e(0x21e)],'subUnitId':_0x3d4810[_0x14718e(0x179)],'shapeId':_0x3d4810['shapeId']});}));}};const Zi={...Ii};let Qi=class extends _0x112f8d{constructor(_0x111a92,_0x192014,_0x520fa8,_0x125a8,_0x51fe60,_0x48bb3f,_0x38d776,_0x2ef766){const _0x2ce3f7=_0x12df57;super(),this[_0x2ce3f7(0x33a)]=_0x111a92,this[_0x2ce3f7(0x261)]=_0x192014,this[_0x2ce3f7(0x346)]=_0x520fa8,this[_0x2ce3f7(0x12f)]=_0x125a8,this['_sheetCanvasPopManagerService']=_0x51fe60,this['_contextService']=_0x48bb3f,this[_0x2ce3f7(0x110)]=_0x38d776,this[_0x2ce3f7(0xf2)]=_0x2ef766,q(this,_0x2ce3f7(0x374),null),this[_0x2ce3f7(0x33a)]['mergeMenu'](Zi),this[_0x2ce3f7(0x170)](),this['disposeWithMe'](this['_shapeTextEditingService']['editingParams$'][_0x2ce3f7(0xee)](_0x51756d=>{const _0x3404c8=_0x2ce3f7;_0x51756d&&this[_0x3404c8(0x1f4)]();}));}['initShapePopupMenu'](){const _0x18690a=_0x12df57;this['_shapePopupMenuDisposable']||=this['disposeWithMe'](_0x12a454(this[_0x18690a(0x110)],_0x43974e[_0x18690a(0x29c)],_0x5ae016=>this['_popupMenuListener'](_0x5ae016)));}[_0x12df57(0x170)](){const _0x5ddb7f=_0x12df57;this['_sheetCanvasPopManagerService'][_0x5ddb7f(0x38a)](_0x51ad3e[_0x5ddb7f(0x305)],(_0x58171a,_0x4a5839,_0x35558d,_0x572116)=>{const _0x5db303=_0x5ddb7f;let _0x121aa7=this[_0x5db303(0x261)]['getShapeTypeById'](_0x58171a,_0x4a5839,_0x35558d),_0x3e1ce4=this[_0x5db303(0x261)][_0x5db303(0x2b0)](_0x58171a,_0x4a5839,_0x35558d),_0x25ad34=_0x121aa7!==void 0x0&&!_0x5350d3(_0x121aa7)&&!(_0x3e1ce4!=null&&_0x3e1ce4['formulaBinding']);return[{'label':_0x5db303(0x2ee),'index':0x0,'commandId':Bi['id'],'commandParams':{'unitId':_0x58171a,'subUnitId':_0x4a5839,'drawingId':_0x35558d,'mode':_0x5db303(0xe8)},'disable':!0x1},..._0x25ad34?[{'label':_0x5db303(0x126),'index':0x1,'commandId':Bi['id'],'commandParams':{'unitId':_0x58171a,'subUnitId':_0x4a5839,'drawingId':_0x35558d,'mode':_0x5db303(0x144)},'disable':!0x1}]:[],{'label':_0x5db303(0x328),'index':0x2,'commandId':_0x2097d6['id'],'commandParams':{'unitId':_0x58171a,'drawings':[{'unitId':_0x58171a,'subUnitId':_0x4a5839,'drawingId':_0x35558d,'drawingType':_0x572116}]},'disable':!0x1},{'label':_0x5db303(0x115),'index':0x3,'commandId':_0x1fe1aa['id'],'commandParams':{'unitId':_0x58171a,'subUnitId':_0x4a5839,'shapeId':_0x35558d,'flipH':!0x0},'disable':!0x1},{'label':_0x5db303(0x372),'index':0x4,'commandId':_0x1fe1aa['id'],'commandParams':{'unitId':_0x58171a,'subUnitId':_0x4a5839,'shapeId':_0x35558d,'flipV':!0x0},'disable':!0x1}];},_0x5ddb7f(0x314));}[_0x12df57(0x321)](_0x44360d){const _0x1b38f4=_0x12df57;let _0x387523=new _0x55d7a7(),_0x1125c4=null,_0x578173=()=>{const _0x5d6f47=_0x4f90;if(!_0x1125c4)return;let _0xad4dfd=this[_0x5d6f47(0x12f)][_0x5d6f47(0x31b)](),_0x33f359=_0xad4dfd[_0x5d6f47(0x1d0)]===0x0||_0xad4dfd[_0x5d6f47(0x1d0)]===0x1&&_0xad4dfd[_0x5d6f47(0x12a)](_0x4793f9=>_0x4793f9[_0x5d6f47(0x21e)]===(_0x1125c4==null?void 0x0:_0x1125c4[_0x5d6f47(0x21e)])&&_0x4793f9[_0x5d6f47(0x179)]===(_0x1125c4==null?void 0x0:_0x1125c4['subUnitId'])&&_0x4793f9[_0x5d6f47(0x248)]===(_0x1125c4==null?void 0x0:_0x1125c4[_0x5d6f47(0x248)]));_0x1125c4=null,_0x33f359&&(this[_0x5d6f47(0x1c2)][_0x5d6f47(0x1c5)](_0x1309fa,!0x1),this[_0x5d6f47(0x12f)][_0x5d6f47(0x26a)](null));};return _0x387523[_0x1b38f4(0x362)](_0x44360d['createControl$']['subscribe'](()=>{const _0x237cc4=_0x1b38f4;let _0x1d6738=_0x44360d[_0x237cc4(0x18e)]();if(_0x1d6738[_0x237cc4(0x165)]>0x1){_0x578173();return;}let _0x2a7868=_0x1d6738[_0x237cc4(0x2a6)]()[_0x237cc4(0x35b)]()[_0x237cc4(0x156)];if(!_0x2a7868){_0x578173();return;}let _0x516e20=this[_0x237cc4(0x12f)][_0x237cc4(0x23c)](_0x2a7868[_0x237cc4(0x1a4)]);if(!_0x516e20||_0x516e20['drawingType']!==_0x51ad3e[_0x237cc4(0x305)]){_0x578173();return;}let {unitId:_0x188779,subUnitId:_0x94a09c,drawingId:_0x50ec89}=_0x516e20;_0x1125c4={'unitId':_0x188779,'subUnitId':_0x94a09c,'drawingId':_0x50ec89},this[_0x237cc4(0x1c2)]['setContextValue'](_0x1309fa,!0x0),this[_0x237cc4(0x12f)][_0x237cc4(0x31b)]()[_0x237cc4(0x1c4)](_0x19eb49=>_0x19eb49[_0x237cc4(0x21e)]===_0x188779&&_0x19eb49[_0x237cc4(0x179)]===_0x94a09c&&_0x19eb49[_0x237cc4(0x248)]===_0x50ec89)||this[_0x237cc4(0x12f)][_0x237cc4(0x26a)]([{'unitId':_0x188779,'subUnitId':_0x94a09c,'drawingId':_0x50ec89}]);})),_0x387523[_0x1b38f4(0x362)](_0x44360d[_0x1b38f4(0x209)]['subscribe'](()=>{_0x578173();})),_0x1152a8(()=>{_0x387523['dispose'](),_0x578173();});}[_0x12df57(0x1f4)](){const _0x16cf5d=_0x12df57;this[_0x16cf5d(0x1c2)][_0x16cf5d(0x1c5)](_0x1309fa,!0x1),this[_0x16cf5d(0x12f)]['focusDrawing'](null);}};Qi=Y([J(0x0,_0x219d86),J(0x1,_0x441dea(_0x2da406)),J(0x2,_0x12955f),J(0x3,_0x5b31b6),J(0x4,_0x441dea(_0x1773e5)),J(0x5,_0x48e88d),J(0x6,_0x490ecc),J(0x7,_0x441dea($))],Qi);function $i(_0x1ab53f,_0x1899c7,_0xf4f558,_0x3a1166){const _0x24a26f=_0x12df57;let _0x280238=_0x12e0f4(_0x1ab53f,_0x1899c7,_0xf4f558),_0x20a466=[];for(let _0x47181f of _0x1899c7){let _0x23d0c5=_0x280238[_0x24a26f(0x355)][_0x24a26f(0x1bd)](_0x47181f[_0x24a26f(0x248)]),_0x885196=_0x3a1166(_0x47181f);_0x23d0c5&&_0x885196&&_0x20a466[_0x24a26f(0x31d)]({'targetShapeId':_0x23d0c5,'source':_0x885196});}return _0x20a466;}let ea=class extends _0x112f8d{constructor(_0x54b84e,_0x2f4025,_0x451e19,_0x4be402){const _0x7ddf0a=_0x12df57;super(),this[_0x7ddf0a(0xe4)]=_0x54b84e,this['_sheetInterceptorService']=_0x2f4025,this[_0x7ddf0a(0x253)]=_0x451e19,this['_sheetsShapeService']=_0x4be402,this[_0x7ddf0a(0x219)]();}['_initSheetChange'](){const _0x189b2a=_0x12df57;this[_0x189b2a(0x200)](this[_0x189b2a(0x181)]['interceptCommand']({'getMutations':_0x1d84e9=>{const _0x4d0448=_0x189b2a;if(_0x1d84e9['id']===_0x2b05aa['id']){let _0x955521=_0x5e9f29(this['_univerInstanceService'],_0x1d84e9['params']);if(!_0x955521)return{'redos':[],'undos':[]};let {unitId:_0x21affd,subUnitId:_0x23d525}=_0x955521,_0xf0652c=this[_0x4d0448(0x253)]['getDrawingData'](_0x21affd,_0x23d525),_0x79dce0=Object[_0x4d0448(0x2a6)](_0xf0652c)[_0x4d0448(0x331)](_0x277f63=>_0x277f63[_0x4d0448(0x309)]===_0x51ad3e[_0x4d0448(0x305)]);if(_0x79dce0[_0x4d0448(0x1d0)]===0x0)return{'redos':[],'undos':[]};let _0x1c881a=[],_0x11d195=[];for(let _0x58e76d=0x0;_0x58e76d<_0x79dce0[_0x4d0448(0x1d0)];_0x58e76d++){let _0x58b61a=_0x79dce0[_0x58e76d],_0x14b653=this['_sheetsShapeService'][_0x4d0448(0x337)](_0x58b61a[_0x4d0448(0x21e)],_0x58b61a['subUnitId'],_0x58b61a[_0x4d0448(0x248)]);_0x14b653&&(_0x1c881a[_0x4d0448(0x31d)]({'id':_0x55949a['id'],'params':{'unitId':_0x21affd,'subUnitId':_0x23d525,'shapeId':_0x58b61a[_0x4d0448(0x248)]}}),_0x11d195[_0x4d0448(0x31d)]({'id':_0x5dede5['id'],'params':{'unitId':_0x21affd,'subUnitId':_0x23d525,'shapeId':_0x58b61a[_0x4d0448(0x248)],'shapeType':_0x14b653[_0x4d0448(0x23d)](),'shapeData':JSON[_0x4d0448(0x151)](JSON[_0x4d0448(0x107)](_0x14b653['getShapeData']()))}}));}return{'redos':_0x1c881a,'undos':_0x11d195};}if(_0x1d84e9['id']===_0x2ecce4['id']){let {unitId:_0x2d753e,subUnitId:_0x1a1b20,targetSubUnitId:_0x589f74,copyContext:_0x2cc90f}=_0x1d84e9[_0x4d0448(0x240)];if(!_0x2d753e||!_0x1a1b20||!_0x589f74)return{'redos':[],'undos':[]};let _0x4e265a=this[_0x4d0448(0x253)]['getDrawingData'](_0x2d753e,_0x1a1b20),_0x12c50c=Object[_0x4d0448(0x2a6)](_0x4e265a)[_0x4d0448(0x331)](_0x52ef91=>_0x52ef91[_0x4d0448(0x309)]===_0x51ad3e[_0x4d0448(0x305)]);if(_0x12c50c[_0x4d0448(0x1d0)]===0x0)return{'redos':[],'undos':[]};let _0x4b2f9b=$i(_0x2cc90f,_0x12c50c,{'unitId':_0x2d753e,'sourceSubUnitId':_0x1a1b20,'targetSubUnitId':_0x589f74},_0x4c5bbb=>{const _0x567270=_0x4d0448;let _0x5dcd2f=this['_sheetsShapeService'][_0x567270(0x337)](_0x4c5bbb[_0x567270(0x21e)],_0x4c5bbb[_0x567270(0x179)],_0x4c5bbb[_0x567270(0x248)]);if(_0x5dcd2f)return{'shapeType':_0x5dcd2f[_0x567270(0x23d)](),'shapeData':JSON['parse'](JSON[_0x567270(0x107)](_0x5dcd2f[_0x567270(0x26e)]()))};}),_0x5a5062=[],_0x2d90e0=[];for(let {targetShapeId:_0x252138,source:_0x3d665b}of _0x4b2f9b)_0x5a5062[_0x4d0448(0x31d)]({'id':_0x5dede5['id'],'params':{'unitId':_0x2d753e,'subUnitId':_0x589f74,'shapeId':_0x252138,'shapeType':_0x3d665b[_0x4d0448(0x36c)],'shapeData':_0x3d665b[_0x4d0448(0x2af)]}}),_0x2d90e0[_0x4d0448(0x31d)]({'id':_0x55949a['id'],'params':{'unitId':_0x2d753e,'subUnitId':_0x589f74,'shapeId':_0x252138}});return{'redos':_0x5a5062,'undos':_0x2d90e0};}return{'redos':[],'undos':[]};}}));}};ea=Y([J(0x0,_0x441dea(_0xb60de6)),J(0x1,_0x441dea(_0x5e7041)),J(0x2,_0x441dea(_0xa74f05)),J(0x3,_0x441dea(_0x2da406))],ea);let ta=class extends _0x112f8d{constructor(_0x54975e,_0x10aace,_0x4fc23f,_0xf0b331,_0x38cb53,_0x1f2300){const _0x32b62d=_0x12df57;super(),this[_0x32b62d(0x346)]=_0x54975e,this[_0x32b62d(0x110)]=_0x10aace,this[_0x32b62d(0x12f)]=_0x4fc23f,this['_currentUniverService']=_0xf0b331,this['_drawingRenderService']=_0x38cb53,this['_sheetDrawingShapeRenderController']=_0x1f2300,q(this,_0x32b62d(0x274),new Set()),this[_0x32b62d(0x2ab)]();}['_initialize'](){const _0x52ded7=_0x12df57;this[_0x52ded7(0x2a3)](),this[_0x52ded7(0x2c7)](),this[_0x52ded7(0x220)]();}[_0x12df57(0x2a3)](){const _0x353bf6=_0x12df57;this['disposeWithMe'](this['_drawingManagerService'][_0x353bf6(0xdc)]['subscribe'](_0x4218c6=>{this['_insertShapes'](_0x4218c6);}));}[_0x12df57(0x2c7)](){const _0x28e984=_0x12df57;this[_0x28e984(0x200)](this[_0x28e984(0x346)]['onCommandExecuted']((_0xb64eab,_0x306157)=>{const _0x1ebad1=_0x28e984;if(_0xb64eab['id']===_0x11226d['id']){let {unitId:_0x2f49e0,subUnitId:_0x4e5fac,shapeId:_0x4ffee4}=_0xb64eab['params'],_0x1bf954=this[_0x1ebad1(0x195)](_0x2f49e0),_0x56b494=_0x5b432f({'unitId':_0x2f49e0,'subUnitId':_0x4e5fac,'drawingId':_0x4ffee4}),_0x32840f=_0x1bf954==null?void 0x0:_0x1bf954[_0x1ebad1(0x2d7)][_0x1ebad1(0x130)](_0x56b494);_0x32840f&&(this[_0x1ebad1(0xda)]['refreshShapeFillImage'](_0x32840f),this['_sheetDrawingShapeRenderController'][_0x1ebad1(0x36e)](_0x32840f,{'unitId':_0x2f49e0,'subUnitId':_0x4e5fac,'shapeId':_0x4ffee4}),_0x32840f[_0x1ebad1(0x161)](!0x0));return;}if(_0xb64eab['id']===_0x5dede5['id']){var _0x17ccdb;let {unitId:_0x1a1f81,subUnitId:_0x4478d4,shapeId:_0x36144a}=_0xb64eab[_0x1ebad1(0x240)],_0x28003a=this[_0x1ebad1(0x195)](_0x1a1f81);if(_0x28003a==null)return;let {scene:_0x9abbb3}=_0x28003a,_0xf84d18=_0x5b432f({'unitId':_0x1a1f81,'subUnitId':_0x4478d4,'drawingId':_0x36144a}),_0x3b95d5=_0x9abbb3['getObjectIncludeInGroup'](_0xf84d18);if(!((_0x17ccdb=this[_0x1ebad1(0x110)][_0x1ebad1(0x269)](_0x1a1f81))!=null&&_0x17ccdb[_0x1ebad1(0x2f8)](_0x4e2ccb)[_0x1ebad1(0x28c)](_0x4478d4)))return!0x1;if(_0x3b95d5)return;if(_0x306157!=null&&_0x306157[_0x1ebad1(0x106)]){queueMicrotask(()=>{const _0x54b54e=_0x1ebad1;this[_0x54b54e(0xed)]||this[_0x54b54e(0x2b4)]([{'unitId':_0x1a1f81,'subUnitId':_0x4478d4,'drawingId':_0x36144a}]);});return;}this[_0x1ebad1(0x2b4)]([{'unitId':_0x1a1f81,'subUnitId':_0x4478d4,'drawingId':_0x36144a}]);}}));}[_0x12df57(0x220)](){const _0x3bc1b0=_0x12df57;this[_0x3bc1b0(0x200)](this['_drawingManagerService']['update$'][_0x3bc1b0(0xee)](_0x1717bf=>{const _0x1875bc=_0x3bc1b0;_0x1717bf[_0x1875bc(0x28d)](_0x28572a=>{const _0x2c987c=_0x1875bc;let {unitId:_0x59c119,subUnitId:_0x5c645a,drawingId:_0xc61f6f}=_0x28572a,_0x226978=this['_drawingManagerService'][_0x2c987c(0x27d)](_0x28572a);if(_0x226978==null)return;let {transform:_0x2ac45d,drawingType:_0x5906d8,srcRect:_0x47e223,prstGeom:_0x1678ae}=_0x226978;if(_0x5906d8!==_0x51ad3e[_0x2c987c(0x305)])return;let _0x4cf402=this['_getSceneAndTransformerByDrawingSearch'](_0x59c119);if(_0x4cf402==null)return;let {scene:_0xafd6d1,transformer:_0x547f82}=_0x4cf402;if(_0x2ac45d==null)return!0x0;let _0xc27ad=_0x5b432f({'unitId':_0x59c119,'subUnitId':_0x5c645a,'drawingId':_0xc61f6f}),_0x138654=_0xafd6d1[_0x2c987c(0x130)](_0xc27ad);if(_0x138654==null)return!0x0;_0x138654[_0x2c987c(0x257)](_0x47e223),_0x138654[_0x2c987c(0x229)](_0x1678ae);});}));}[_0x12df57(0x2b4)](_0x30d09f){const _0x3d17bb=_0x12df57;for(let _0x1e8786 of _0x30d09f){var _0x18d6f5;let {unitId:_0x2379cd,subUnitId:_0x361ae8,drawingId:_0x2615f3}=_0x1e8786,_0x545c3e=this[_0x3d17bb(0x195)](_0x2379cd),_0x36a1c1=(_0x18d6f5=_0x14097a(this['_currentUniverService'],_0x2379cd))==null?void 0x0:_0x18d6f5[_0x3d17bb(0x179)];if(_0x545c3e==null||_0x36a1c1!==_0x361ae8)return;let _0x10aa66=_0x5b432f({'unitId':_0x2379cd,'subUnitId':_0x361ae8,'drawingId':_0x2615f3});if(this[_0x3d17bb(0x274)][_0x3d17bb(0x1a3)](_0x10aa66)||_0x545c3e[_0x3d17bb(0x2d7)][_0x3d17bb(0x130)](_0x10aa66)!=null)return;let _0x10cfaf=this['_drawingManagerService']['getDrawingByParam'](_0x1e8786);if(_0x10cfaf==null||_0x10cfaf['drawingType']!==_0x51ad3e['DRAWING_SHAPE'])return;let _0x441754=_0x10cfaf[_0x3d17bb(0x268)]||{};if(_0x5350d3(_0x441754[_0x3d17bb(0x36c)])){let _0x4e865a=_0x10cfaf[_0x3d17bb(0x114)];_0x4e865a&&(_0x10cfaf[_0x3d17bb(0x114)]={..._0x4e865a,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x3d17bb(0x274)][_0x3d17bb(0x362)](_0x10aa66);try{this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x10cfaf,_0x545c3e[_0x3d17bb(0x2d7)]);}finally{this[_0x3d17bb(0x274)][_0x3d17bb(0x34b)](_0x10aa66);}queueMicrotask(()=>{const _0x6a69f2=_0x3d17bb;if(this[_0x6a69f2(0xed)])return;let _0x12d473=_0x5b432f(_0x1e8786);if(!_0x545c3e['scene'][_0x6a69f2(0x130)](_0x12d473))return;let _0x558f27=this[_0x6a69f2(0x12f)][_0x6a69f2(0x27d)](_0x1e8786);_0x558f27&&this[_0x6a69f2(0x12f)][_0x6a69f2(0x2cf)]([_0x558f27]);});}}[_0x12df57(0x195)](_0x1fa5dc){const _0x5c5309=_0x12df57;if(_0x1fa5dc==null)return;let _0x749fc8=this[_0x5c5309(0x110)][_0x5c5309(0x269)](_0x1fa5dc),_0x2a9e50=_0x749fc8==null?void 0x0:_0x749fc8[_0x5c5309(0x2d7)];return _0x2a9e50==null?null:{'scene':_0x2a9e50,'transformer':_0x2a9e50[_0x5c5309(0x1a6)]()};}};ta=Y([J(0x0,_0x12955f),J(0x1,_0x490ecc),J(0x2,_0x5b31b6),J(0x3,_0xb60de6),J(0x4,_0x441dea(_0x27ed80)),J(0x5,_0x441dea(X))],ta);const na={'normal':{'fill':_0x19a828[_0x12df57(0x30d)],'stroke':_0x19a828['cxnPointStroke'],'strokeWidth':_0x19a828[_0x12df57(0x383)]},'highlighted':{'fill':'#4285f4','stroke':_0x12df57(0x335),'strokeWidth':0x2}};var ra=class extends _0x118028{constructor(_0x49505c,_0x1f2dbf){const _0x56e1ba=_0x12df57;super(_0x49505c,_0x1f2dbf),q(this,_0x56e1ba(0x26b),''),q(this,_0x56e1ba(0x2de),-0x1),q(this,_0x56e1ba(0xec),''),q(this,_0x56e1ba(0x2cb),''),q(this,_0x56e1ba(0x1d7),!0x1),_0x1f2dbf&&this[_0x56e1ba(0x280)](_0x1f2dbf);}[_0x12df57(0x31e)](){const _0x2df2c9=_0x12df57;return{'unitId':this['_unitId'],'subUnitId':this[_0x2df2c9(0x2cb)],'shapeId':this[_0x2df2c9(0x26b)],'cxnIndex':this[_0x2df2c9(0x2de)]};}[_0x12df57(0x290)](_0x5a547a){const _0x2b17c8=_0x12df57;this['_isHighlighted']!==_0x5a547a&&(this[_0x2b17c8(0x1d7)]=_0x5a547a,this[_0x2b17c8(0x161)](!0x0));}[_0x12df57(0xe1)](){return this['_isHighlighted'];}[_0x12df57(0x280)](_0x5a7ba1){const _0x480fab=_0x12df57;_0x5a7ba1[_0x480fab(0x25a)]!==void 0x0&&(this['_targetShapeId']=_0x5a7ba1[_0x480fab(0x25a)]),_0x5a7ba1[_0x480fab(0x1b3)]!==void 0x0&&(this[_0x480fab(0x2de)]=_0x5a7ba1[_0x480fab(0x1b3)]),_0x5a7ba1[_0x480fab(0x21e)]!==void 0x0&&(this[_0x480fab(0xec)]=_0x5a7ba1[_0x480fab(0x21e)]),_0x5a7ba1[_0x480fab(0x179)]!==void 0x0&&(this[_0x480fab(0x2cb)]=_0x5a7ba1['subUnitId']),_0x5a7ba1[_0x480fab(0xe1)]!==void 0x0&&(this[_0x480fab(0x1d7)]=_0x5a7ba1[_0x480fab(0xe1)]),this[_0x480fab(0x11b)]({'width':_0x5a7ba1['width']??_0x19a828[_0x480fab(0x2f9)]*0x2,'height':_0x5a7ba1['height']??_0x19a828[_0x480fab(0x2f9)]*0x2});}[_0x12df57(0x1ab)](_0x24b99b){const _0x51e39a=_0x12df57;let _0x409f59=this[_0x51e39a(0x1d7)]?na[_0x51e39a(0x103)]:na[_0x51e39a(0x236)];_0x2f4676[_0x51e39a(0x158)](_0x24b99b,{'radius':_0x19a828['cxnPointRadius'],'fill':_0x409f59[_0x51e39a(0x287)],'stroke':_0x409f59[_0x51e39a(0x260)],'strokeWidth':_0x409f59['strokeWidth'],'evented':!0x0});}};let ia=class extends _0x112f8d{constructor(_0x351a7d,_0x415c3f,_0x1ec961,_0x43e34e){const _0x4f87c6=_0x12df57;super(),this[_0x4f87c6(0x250)]=_0x351a7d,this[_0x4f87c6(0x110)]=_0x415c3f,this[_0x4f87c6(0x12f)]=_0x1ec961,this[_0x4f87c6(0x261)]=_0x43e34e,q(this,'_connectionSiteObjects',[]),q(this,_0x4f87c6(0x196),null),q(this,_0x4f87c6(0x373),-0x1),q(this,_0x4f87c6(0x212),null),q(this,_0x4f87c6(0xec),''),q(this,'_subUnitId',''),q(this,_0x4f87c6(0x1de),null);}['startConnectionDetection'](_0x5da148,_0x259e85,_0x91b769,_0x60ef47){const _0x3b7603=_0x12df57;this[_0x3b7603(0x212)]=_0x5da148,this[_0x3b7603(0xec)]=_0x259e85,this['_subUnitId']=_0x91b769,this['_draggingConnectorId']=_0x60ef47;}[_0x12df57(0x2aa)](_0x4f210c){const _0x2c1ea6=_0x12df57;if(!this[_0x2c1ea6(0x212)])return null;let _0x10b318=this[_0x2c1ea6(0x2f0)](_0x4f210c);return _0x10b318?(this[_0x2c1ea6(0x196)]!==_0x10b318[_0x2c1ea6(0x2c6)]&&(this[_0x2c1ea6(0x255)](),this[_0x2c1ea6(0x359)](_0x10b318[_0x2c1ea6(0x2c6)],_0x10b318['shapeModel']),this[_0x2c1ea6(0x196)]=_0x10b318['shapeId']),this[_0x2c1ea6(0x1cf)](_0x4f210c)):(this['_activeTargetShapeId']!==null&&(this[_0x2c1ea6(0x255)](),this[_0x2c1ea6(0x196)]=null),null);}['endConnectionDetection'](){const _0x21f99b=_0x12df57;this[_0x21f99b(0x255)](),this['_currentScene']=null,this[_0x21f99b(0x196)]=null,this[_0x21f99b(0x373)]=-0x1,this[_0x21f99b(0x1de)]=null;}['getConnectionRelation'](){const _0xd66bb4=_0x12df57;return this[_0xd66bb4(0x196)]===null||this[_0xd66bb4(0x373)]<0x0?null:{'shapeId':this[_0xd66bb4(0x196)],'cxnIndex':this['_highlightedSiteIndex']};}[_0x12df57(0x2f0)](_0x838e60){const _0x50e518=_0x12df57;let _0x280997=this[_0x50e518(0x12f)]['getDrawingData'](this[_0x50e518(0xec)],this[_0x50e518(0x2cb)]);for(let _0x2aee37 of Object['keys'](_0x280997)){if(_0x2aee37===this[_0x50e518(0x1de)]||_0x280997[_0x2aee37][_0x50e518(0x309)]!==_0x51ad3e['DRAWING_SHAPE'])continue;let _0x41982a=this[_0x50e518(0x261)][_0x50e518(0x337)](this[_0x50e518(0xec)],this['_subUnitId'],_0x2aee37);if(!_0x41982a||_0x5350d3(_0x41982a[_0x50e518(0x23d)]())||_0x41982a[_0x50e518(0x2c1)]()[_0x50e518(0x1d0)]===0x0||!this[_0x50e518(0x212)])continue;let _0xd6d1ba=_0x5b432f({'unitId':this['_unitId'],'subUnitId':this[_0x50e518(0x2cb)],'drawingId':_0x2aee37}),_0x2244f5=this[_0x50e518(0x212)][_0x50e518(0x130)](_0xd6d1ba);if(!_0x2244f5)continue;let {left:_0x21f0cf,top:_0x5a6683,width:_0xa9d805,height:_0x5cf0a1}=_0x2244f5[_0x50e518(0x162)](),_0x989d73=_0x21f0cf+_0xa9d805/0x2,_0x2b88e2=_0x5a6683+_0x5cf0a1/0x2,_0x39b9c6=_0x2244f5[_0x50e518(0x114)][_0x50e518(0x297)](),_0x5009c8=new _0x64b010([_0x39b9c6[0x0],_0x39b9c6[0x1],_0x39b9c6[0x2],_0x39b9c6[0x3],_0x989d73,_0x2b88e2]),_0x2af300=_0x2244f5[_0x50e518(0x323)](),_0x151cb8=(_0x2244f5[_0x50e518(0x2e6)]&&(_0x2af300==null?void 0x0:_0x2af300[_0x50e518(0xdd)])===_0x48e82c['GROUP']?_0x2af300[_0x50e518(0x1db)]['multiply'](_0x5009c8):_0x5009c8)[_0x50e518(0x10b)]()[_0x50e518(0x213)](_0x838e60),_0x476a21=_0xa9d805/0x2,_0x5cab4e=_0x5cf0a1/0x2;if(_0x151cb8['x']>=-_0x476a21-0x5&&_0x151cb8['x']<=_0x476a21+0x5&&_0x151cb8['y']>=-_0x5cab4e-0x5&&_0x151cb8['y']<=_0x5cab4e+0x5)return{'shapeId':_0x2aee37,'shapeModel':_0x41982a};}return null;}[_0x12df57(0x359)](_0x5ca9e5,_0x19cd68){const _0x541886=_0x12df57;if(!this[_0x541886(0x212)])return;let _0x87af8e=_0x5b432f({'unitId':this[_0x541886(0xec)],'subUnitId':this['_subUnitId'],'drawingId':_0x5ca9e5}),_0x99cf9c=this['_currentScene'][_0x541886(0x130)](_0x87af8e);if(!_0x99cf9c)return;let {left:_0x28106f,top:_0x4bcb5f,width:_0x32b1c1,height:_0x40d85d}=_0x99cf9c['getRealBound'](),_0x5b8b7e=_0x28106f+_0x32b1c1/0x2,_0x20a4e1=_0x4bcb5f+_0x40d85d/0x2,_0x5829b5=_0x99cf9c['transform'][_0x541886(0x297)](),_0x4288a5=new _0x64b010([_0x5829b5[0x0],_0x5829b5[0x1],_0x5829b5[0x2],_0x5829b5[0x3],_0x5b8b7e,_0x20a4e1]),_0x479b37=_0x99cf9c[_0x541886(0x323)](),_0x3990ee=_0x99cf9c['isInGroup']&&(_0x479b37==null?void 0x0:_0x479b37[_0x541886(0xdd)])===_0x48e82c[_0x541886(0x108)]?_0x479b37[_0x541886(0x1db)]['multiply'](_0x4288a5):_0x4288a5;_0x19cd68[_0x541886(0x205)]({'width':_0x32b1c1,'height':_0x40d85d});let _0xce0e1b=_0x19cd68[_0x541886(0x2c1)]();for(let _0x2ac053 of _0xce0e1b){let _0x10819d=_0x2ac053['x']-_0x32b1c1/0x2,_0x57ad8f=_0x2ac053['y']-_0x40d85d/0x2,_0x5b4fc2=_0x3990ee['applyPoint']({'x':_0x10819d,'y':_0x57ad8f}),_0x1de277=_0x5b4fc2['x'],_0x150b1f=_0x5b4fc2['y'],_0x897da7=new ra(_0x541886(0x24d)+_0x5ca9e5+'-'+_0x2ac053[_0x541886(0x18f)],{'left':_0x1de277-_0x19a828[_0x541886(0x2f9)],'top':_0x150b1f-_0x19a828['cxnPointRadius'],'targetShapeId':_0x5ca9e5,'cxnIndex':_0x2ac053[_0x541886(0x18f)],'unitId':this[_0x541886(0xec)],'subUnitId':this[_0x541886(0x2cb)],'width':_0x19a828[_0x541886(0x2f9)]*0x2,'height':_0x19a828[_0x541886(0x2f9)]*0x2,'zIndex':_0x434827+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x541886(0x31d)](_0x897da7),this[_0x541886(0x212)]['addObject'](_0x897da7,_0x434827+0x2);}}[_0x12df57(0x1cf)](_0x264efc){const _0x15b5f9=_0x12df57;let _0x1a0c78=null,_0x3743c7=0x1/0x0,_0x29fd09=null;for(let _0x19f3f4 of this[_0x15b5f9(0x371)]){let _0x5a7e9c=_0x19f3f4[_0x15b5f9(0x325)]+_0x19a828['cxnPointRadius'],_0x1dfec9=_0x19f3f4[_0x15b5f9(0x222)]+_0x19a828[_0x15b5f9(0x2f9)],_0x2c62f1=_0x264efc['x']-_0x5a7e9c,_0x480f90=_0x264efc['y']-_0x1dfec9,_0x3221ec=Math[_0x15b5f9(0x180)](_0x2c62f1*_0x2c62f1+_0x480f90*_0x480f90);_0x3221ec<_0x3743c7&&(_0x3743c7=_0x3221ec,_0x1a0c78=_0x19f3f4,_0x29fd09={'x':_0x5a7e9c,'y':_0x1dfec9});}let _0x30a55e=_0x3743c7<=0xa&&_0x1a0c78?_0x1a0c78[_0x15b5f9(0x31e)]()[_0x15b5f9(0x1b3)]:-0x1;if(_0x30a55e!==this['_highlightedSiteIndex']){for(let _0x4aeed0 of this[_0x15b5f9(0x371)]){let _0x479774=_0x4aeed0[_0x15b5f9(0x31e)]();_0x4aeed0[_0x15b5f9(0x290)](_0x479774['cxnIndex']===_0x30a55e);}this[_0x15b5f9(0x373)]=_0x30a55e;}if(_0x3743c7<=0xa&&_0x1a0c78&&_0x29fd09){let _0x41aef2=_0x1a0c78['getConnectionInfo'](),_0x1d6862=this['_getConnectionSiteAngle'](_0x41aef2['shapeId'],_0x41aef2['cxnIndex']);return{'shapeId':_0x41aef2['shapeId'],'cxnIndex':_0x41aef2[_0x15b5f9(0x1b3)],'unitId':_0x41aef2[_0x15b5f9(0x21e)],'subUnitId':_0x41aef2[_0x15b5f9(0x179)],'worldPoint':_0x29fd09,'angle':_0x1d6862};}return null;}['_getConnectionSiteAngle'](_0x3b80ae,_0x20d129){const _0x2e3b80=_0x12df57;let _0x4585f5=this[_0x2e3b80(0x261)]['getShapeModel'](this[_0x2e3b80(0xec)],this['_subUnitId'],_0x3b80ae);if(!_0x4585f5)return 0x0;let _0x1a5c63=this[_0x2e3b80(0x12f)][_0x2e3b80(0x27d)]({'unitId':this['_unitId'],'subUnitId':this[_0x2e3b80(0x2cb)],'drawingId':_0x3b80ae});if(!(_0x1a5c63!=null&&_0x1a5c63['transform']))return 0x0;let {width:_0x4366cf=0x0,height:_0x53b42c=0x0,flipX:_0x305dfe=!0x1,flipY:_0x16e084=!0x1}=_0x1a5c63['transform'];_0x4585f5[_0x2e3b80(0x205)]({'width':_0x4366cf,'height':_0x53b42c});let _0x53c95d=_0x4585f5[_0x2e3b80(0x2c1)]()['find'](_0x5d6983=>_0x5d6983[_0x2e3b80(0x18f)]===_0x20d129);if(!_0x53c95d)return 0x0;let _0x9662b0=_0x53c95d[_0x2e3b80(0x127)]/0xea60;return _0x305dfe&&(_0x9662b0=0xb4-_0x9662b0),_0x16e084&&(_0x9662b0=-_0x9662b0),_0x9662b0=(_0x9662b0%0x168+0x168)%0x168,_0x9662b0;}[_0x12df57(0x255)](){const _0x430796=_0x12df57;for(let _0x596d9a of this[_0x430796(0x371)])_0x596d9a[_0x430796(0x2ed)]();this['_connectionSiteObjects']=[],this['_highlightedSiteIndex']=-0x1;}[_0x12df57(0x2ed)](){const _0x2da988=_0x12df57;this['_clearConnectionSites'](),super[_0x2da988(0x2ed)]();}};ia=Y([J(0x1,_0x441dea(_0x490ecc)),J(0x2,_0x441dea(_0x5b31b6)),J(0x3,_0x441dea(_0x2da406))],ia);let aa=class extends _0x112f8d{constructor(_0x1f9031,_0x47927a,_0x1c5137,_0x330e6e,_0x1338a8){const _0x444d5b=_0x12df57;super(),this['_sheetSkeletonService']=_0x1f9031,this[_0x444d5b(0x173)]=_0x47927a,this[_0x444d5b(0x253)]=_0x1c5137,this[_0x444d5b(0x102)]=_0x330e6e,this[_0x444d5b(0x392)]=_0x1338a8,q(this,_0x444d5b(0x394),void 0x0),this[_0x444d5b(0x34d)](),this[_0x444d5b(0x284)]();}get['_focusedDrawings'](){return this['_sheetDrawingService']['getFocusDrawings']();}[_0x12df57(0x284)](){const _0x49a243=_0x12df57;this['_groupCopyPasteController'][_0x49a243(0x2f3)](({fromUnitId:_0x3510c9,fromSubUnitId:_0x239746,toUnitId:_0x2a76a0,toSubUnitId:_0x3938bb,idMap:_0xd4c0f9})=>{const _0xca6455=_0x49a243;let _0x333df1=[],_0x4c0b2e=[];for(let [_0x497103,_0x4ff301]of _0xd4c0f9[_0xca6455(0x105)]()){let _0x227bd1=this[_0xca6455(0x102)][_0xca6455(0x337)](_0x3510c9,_0x239746,_0x497103);if(!_0x227bd1)continue;let _0x8341e=_0x227bd1[_0xca6455(0x23d)](),_0x56a3ef=JSON[_0xca6455(0x151)](JSON['stringify'](_0x227bd1[_0xca6455(0x26e)]()));if(_0x56a3ef[_0xca6455(0x28f)]){var _0x509d0e,_0x4b85e4;let _0x31123b=(_0x509d0e=_0x56a3ef[_0xca6455(0x28f)][_0xca6455(0x245)])==null?void 0x0:_0x509d0e['shapeId'],_0x469ec0=(_0x4b85e4=_0x56a3ef[_0xca6455(0x28f)]['to'])==null?void 0x0:_0x4b85e4[_0xca6455(0x2c6)],_0x35f4cc=!_0x31123b||_0xd4c0f9[_0xca6455(0x1a3)](_0x31123b),_0x3b0eb8=!_0x469ec0||_0xd4c0f9['has'](_0x469ec0);_0x35f4cc&&_0x31123b&&_0x56a3ef[_0xca6455(0x28f)][_0xca6455(0x245)]?_0x56a3ef[_0xca6455(0x28f)][_0xca6455(0x245)]={..._0x56a3ef[_0xca6455(0x28f)][_0xca6455(0x245)],'shapeId':_0xd4c0f9[_0xca6455(0x1bd)](_0x31123b)}:_0x56a3ef[_0xca6455(0x28f)][_0xca6455(0x245)]=void 0x0,_0x3b0eb8&&_0x469ec0&&_0x56a3ef[_0xca6455(0x28f)]['to']?_0x56a3ef[_0xca6455(0x28f)]['to']={..._0x56a3ef[_0xca6455(0x28f)]['to'],'shapeId':_0xd4c0f9['get'](_0x469ec0)}:_0x56a3ef[_0xca6455(0x28f)]['to']=void 0x0;}_0x333df1[_0xca6455(0x31d)]({'id':_0x5dede5['id'],'params':{'unitId':_0x2a76a0,'subUnitId':_0x3938bb,'shapeId':_0x4ff301,'shapeType':_0x8341e,'shapeData':_0x56a3ef}}),_0x4c0b2e[_0xca6455(0x31d)]({'id':_0x55949a['id'],'params':{'unitId':_0x2a76a0,'subUnitId':_0x3938bb,'shapeId':_0x4ff301}});}return{'redos':_0x333df1,'undos':_0x4c0b2e};});}[_0x12df57(0x34d)](){const _0x427bf1=_0x12df57;this[_0x427bf1(0x200)](this[_0x427bf1(0x173)][_0x427bf1(0x1c8)]({'id':_0x427bf1(0x379),'onBeforeCopyFocusedObject':(_0x3db6e7,_0x584568,_0xb9c7b7)=>{const _0x1d366d=_0x427bf1;this[_0x1d366d(0x394)]=null;let _0x27f199=this['_focusedDrawings'][_0x1d366d(0x331)](_0x54e677=>_0x54e677[_0x1d366d(0x309)]===_0x51ad3e[_0x1d366d(0x305)]);return _0x27f199[_0x1d366d(0x1d0)]!==0x0&&(this[_0x1d366d(0x394)]={'unitId':_0x3db6e7,'subUnitId':_0x584568,'copyType':_0xb9c7b7,'drawings':_0x27f199},!0x0);},'onBeforeCopy':(_0x1f747b,_0x1ff154,_0x1b3f8f,_0x204fa3)=>{const _0x386e1d=_0x427bf1;this[_0x386e1d(0x394)]=null,this[_0x386e1d(0x10d)](_0x1f747b,_0x1ff154,_0x1b3f8f,_0x204fa3);},'onPasteCells':(_0x1f412c,_0x28dd74,_0x589469,_0x2d23eb)=>{const _0x1153aa=_0x427bf1;if(!_0x2d23eb[_0x1153aa(0xf5)]||!_0x1f412c||!this[_0x1153aa(0x394)])return{'redos':[],'undos':[]};let {pasteType:_0x497f23}=_0x2d23eb;return _0x497f23===_0x11a75d[_0x1153aa(0x249)]?this[_0x1153aa(0x1e3)](_0x28dd74,this[_0x1153aa(0x394)][_0x1153aa(0x206)]===_0x11f529[_0x1153aa(0x164)]):{'redos':[],'undos':[]};}}));}[_0x12df57(0x10d)](_0x111b8d,_0x39e8f8,_0x4efe28,_0x43ea0c){const _0x3a8ca5=_0x12df57;let _0x62fcab=this[_0x3a8ca5(0x1a1)]['getSkeleton'](_0x111b8d,_0x39e8f8);if(!_0x62fcab)return;let _0x4be7e8=_0x16c8e6(_0x62fcab,_0x4efe28);if(!_0x4be7e8)return;let {startX:_0x16d110,endX:_0xa7a0be,startY:_0x2c517b,endY:_0x2066ae}=_0x4be7e8,_0x2627f5=this[_0x3a8ca5(0x253)][_0x3a8ca5(0x1bf)](_0x111b8d,_0x39e8f8),_0x1e5b63=[];for(let [_0x4e940f,_0x146d09]of Object['entries'](_0x2627f5)){if(_0x146d09[_0x3a8ca5(0x309)]!==_0x51ad3e[_0x3a8ca5(0x305)])continue;let {transform:_0x2f1953}=_0x146d09;if(!_0x2f1953)continue;let {left:_0x4dd4ff=0x0,top:_0x5927a9=0x0,width:_0x6c801f=0x0,height:_0x11c5f8=0x0}=_0x2f1953;_0x16d110<=_0x4dd4ff&&_0xa7a0be>=_0x4dd4ff+_0x6c801f&&_0x2c517b<=_0x5927a9&&_0x2066ae>=_0x5927a9+_0x11c5f8&&_0x1e5b63[_0x3a8ca5(0x31d)](_0x146d09);}_0x1e5b63['length']>0x0&&(this[_0x3a8ca5(0x394)]={'unitId':_0x111b8d,'subUnitId':_0x39e8f8,'copyType':_0x43ea0c,'copyRange':_0x4efe28,'drawings':_0x1e5b63});}[_0x12df57(0x1e3)](_0x1a4f34,_0x4c5d08){const _0x3a70f8=_0x12df57;let {unitId:_0x38cbba,subUnitId:_0x59db91,range:_0x23cb6f}=_0x1a4f34,_0x531dec=this[_0x3a70f8(0x1a1)][_0x3a70f8(0x28c)](_0x38cbba,_0x59db91);if(!_0x531dec)return{'redos':[],'undos':[]};let _0x3ee824=_0xfd3362(_0x23cb6f),{unitId:_0x5e4c63,subUnitId:_0x1700a6,copyRange:_0x2cf27c,drawings:_0x4e954e}=this[_0x3a70f8(0x394)],_0x2231a7=this[_0x3a70f8(0x1a1)][_0x3a70f8(0x28c)](_0x5e4c63,_0x1700a6);if(!_0x2231a7)return{'redos':[],'undos':[]};let _0xecc2b2;if(!_0x2cf27c){let _0x3440e5=0x1/0x0,_0x12abe3=0x1/0x0;for(let _0x11e3b5 of _0x4e954e){let {left:_0xc182fe=0x0,top:_0x571dfe=0x0}=_0x11e3b5[_0x3a70f8(0x114)]??{};_0xc182fe<_0x3440e5&&(_0x3440e5=_0xc182fe),_0x571dfe<_0x12abe3&&(_0x12abe3=_0x571dfe);}_0x3440e5!==0x1/0x0&&_0x12abe3!==0x1/0x0&&(_0xecc2b2={'left':_0x3440e5,'top':_0x12abe3});}let _0x2bb421=new Map();if(!_0x4c5d08){for(let _0x17bcc3 of _0x4e954e)_0x2bb421['set'](_0x17bcc3[_0x3a70f8(0x248)],_0x2e8523());}let _0x17f754=[],_0x23f571=[];for(let _0x1f60b7 of _0x4e954e){let {drawingId:_0x319fd6,transform:_0x2c10d1,sheetTransform:_0x3a0968}=_0x1f60b7;if(!_0x2c10d1||!_0x3a0968)continue;let _0x282ea8=this[_0x3a70f8(0xf1)]({'transform':_0x2c10d1,'sheetTransform':_0x3a0968},{'skeleton':_0x2231a7,'range':_0x2cf27c},{'skeleton':_0x531dec,'range':_0x3ee824},_0xecc2b2);if(_0x4c5d08){let {redos:_0x53e1cd,undos:_0x13c560}=this[_0x3a70f8(0x286)]({'fromUnitId':_0x5e4c63,'fromSubUnitId':_0x1700a6,'toUnitId':_0x38cbba,'toSubUnitId':_0x59db91,'drawing':_0x1f60b7,'newTransforms':_0x282ea8});_0x17f754[_0x3a70f8(0x31d)](..._0x53e1cd),_0x23f571[_0x3a70f8(0x31d)](..._0x13c560);continue;}let {redos:_0x10b7d2,undos:_0x33193e}=this['_generateCopyPasteMutations']({'toUnitId':_0x38cbba,'toSubUnitId':_0x59db91,'drawing':_0x1f60b7,'newTransforms':_0x282ea8,'newDrawingId':_0x2bb421['get'](_0x319fd6),'idMap':_0x2bb421});_0x17f754[_0x3a70f8(0x31d)](..._0x10b7d2),_0x23f571[_0x3a70f8(0x31d)](..._0x33193e);}return{'redos':_0x17f754,'undos':_0x23f571};}['_generateCutPasteMutations'](_0x5db5d7){const _0x19f027=_0x12df57;let {fromUnitId:_0x5ae2c7,fromSubUnitId:_0x3214dd,toUnitId:_0x28c408,toSubUnitId:_0x1e3b2e,drawing:_0x1ae567,newTransforms:_0x5e1744}=_0x5db5d7,_0x4798d5={..._0x1ae567,'unitId':_0x28c408,'subUnitId':_0x1e3b2e,'transform':_0x5e1744['transform'],'sheetTransform':_0x5e1744[_0x19f027(0x13b)]};if(_0x28c408===_0x5ae2c7&&_0x1e3b2e===_0x3214dd){let {redo:_0x446138,undo:_0x55aee5,objects:_0x3df8b4}=this['_sheetDrawingService'][_0x19f027(0x266)]([_0x4798d5]);return{'redos':[{'id':_0x497e29['id'],'params':{'unitId':_0x28c408,'subUnitId':_0x1e3b2e,'type':_0x1d3abe[_0x19f027(0x16b)],'op':_0x446138,'objects':_0x3df8b4}}],'undos':[{'id':_0x497e29['id'],'params':{'unitId':_0x28c408,'subUnitId':_0x1e3b2e,'type':_0x1d3abe[_0x19f027(0x16b)],'op':_0x55aee5,'objects':_0x3df8b4}}]};}{let _0x10feab=this[_0x19f027(0x253)][_0x19f027(0x20c)]([_0x1ae567]),_0x5734f8=this[_0x19f027(0x253)]['getBatchAddOp']([_0x4798d5]),_0x5ae81c=this[_0x19f027(0x102)][_0x19f027(0x337)](_0x1ae567[_0x19f027(0x21e)],_0x1ae567['subUnitId'],_0x1ae567[_0x19f027(0x248)]);if(!_0x5ae81c)return{'redos':[],'undos':[]};let _0x77c308=_0x5ae81c['getShapeType'](),_0x2b5242=JSON[_0x19f027(0x151)](JSON[_0x19f027(0x107)](_0x5ae81c[_0x19f027(0x26e)]()));return{'redos':[{'id':_0x497e29['id'],'params':{'unitId':_0x5ae2c7,'subUnitId':_0x3214dd,'type':_0x1d3abe[_0x19f027(0x20d)],'op':_0x10feab['redo'],'objects':_0x10feab['objects']}},{'id':_0x55949a['id'],'params':{'unitId':_0x5ae2c7,'subUnitId':_0x3214dd,'shapeId':_0x1ae567[_0x19f027(0x248)]}},{'id':_0x497e29['id'],'params':{'unitId':_0x28c408,'subUnitId':_0x1e3b2e,'type':_0x1d3abe[_0x19f027(0x18d)],'op':_0x5734f8[_0x19f027(0x307)],'objects':_0x5734f8[_0x19f027(0x1e8)]}},{'id':_0x5dede5['id'],'params':{'unitId':_0x28c408,'subUnitId':_0x1e3b2e,'shapeId':_0x1ae567['drawingId'],'shapeType':_0x77c308,'shapeData':_0x2b5242}}],'undos':[{'id':_0x497e29['id'],'params':{'unitId':_0x5ae2c7,'subUnitId':_0x3214dd,'type':_0x1d3abe[_0x19f027(0x18d)],'op':_0x10feab['undo'],'objects':_0x10feab[_0x19f027(0x1e8)]}},{'id':_0x5dede5['id'],'params':{'unitId':_0x5ae2c7,'subUnitId':_0x3214dd,'shapeId':_0x1ae567['drawingId'],'shapeType':_0x77c308,'shapeData':_0x2b5242}},{'id':_0x497e29['id'],'params':{'unitId':_0x28c408,'subUnitId':_0x1e3b2e,'type':_0x1d3abe[_0x19f027(0x20d)],'op':_0x5734f8[_0x19f027(0x396)],'objects':_0x5734f8[_0x19f027(0x1e8)]}},{'id':_0x55949a['id'],'params':{'unitId':_0x28c408,'subUnitId':_0x1e3b2e,'shapeId':_0x1ae567[_0x19f027(0x248)]}}]};}}['_generateCopyPasteMutations'](_0x257de8){const _0x28057d=_0x12df57;let {toUnitId:_0x49a41c,toSubUnitId:_0x6b0e6d,drawing:_0x1b7c9e,newTransforms:_0x375a98,newDrawingId:_0x3aef93,idMap:_0x44eab4}=_0x257de8,_0x3d2619={..._0x1b7c9e,'unitId':_0x49a41c,'subUnitId':_0x6b0e6d,'drawingId':_0x3aef93,'transform':_0x375a98['transform'],'sheetTransform':_0x375a98['sheetTransform']},{redo:_0x5a2956,undo:_0x5cfc26,objects:_0x4a48ef}=this['_sheetDrawingService']['getBatchAddOp']([_0x3d2619]),_0x259307=this[_0x28057d(0x102)][_0x28057d(0x337)](_0x1b7c9e[_0x28057d(0x21e)],_0x1b7c9e[_0x28057d(0x179)],_0x1b7c9e['drawingId']);if(!_0x259307)return{'redos':[],'undos':[]};let _0x2097f2=_0x259307[_0x28057d(0x23d)](),_0x3885ca=JSON[_0x28057d(0x151)](JSON['stringify'](_0x259307[_0x28057d(0x26e)]()));if(_0x3885ca[_0x28057d(0x28f)]){var _0xebf943,_0x2ee98a;let _0x4cdf8f=(_0xebf943=_0x3885ca[_0x28057d(0x28f)]['from'])==null?void 0x0:_0xebf943[_0x28057d(0x2c6)],_0x2a3e43=(_0x2ee98a=_0x3885ca[_0x28057d(0x28f)]['to'])==null?void 0x0:_0x2ee98a[_0x28057d(0x2c6)],_0x504270=!_0x4cdf8f||_0x44eab4['has'](_0x4cdf8f),_0x46a8a8=!_0x2a3e43||_0x44eab4[_0x28057d(0x1a3)](_0x2a3e43);_0x504270&&_0x4cdf8f&&_0x3885ca[_0x28057d(0x28f)]['from']?_0x3885ca[_0x28057d(0x28f)][_0x28057d(0x245)]={..._0x3885ca[_0x28057d(0x28f)]['from'],'shapeId':_0x44eab4[_0x28057d(0x1bd)](_0x4cdf8f)}:_0x3885ca[_0x28057d(0x28f)][_0x28057d(0x245)]=void 0x0,_0x46a8a8&&_0x2a3e43&&_0x3885ca[_0x28057d(0x28f)]['to']?_0x3885ca[_0x28057d(0x28f)]['to']={..._0x3885ca['relation']['to'],'shapeId':_0x44eab4['get'](_0x2a3e43)}:_0x3885ca['relation']['to']=void 0x0;}return{'redos':[{'id':_0x497e29['id'],'params':{'unitId':_0x49a41c,'subUnitId':_0x6b0e6d,'type':_0x1d3abe[_0x28057d(0x18d)],'op':_0x5a2956,'objects':_0x4a48ef}},{'id':_0x5dede5['id'],'params':{'unitId':_0x49a41c,'subUnitId':_0x6b0e6d,'shapeId':_0x3aef93,'shapeType':_0x2097f2,'shapeData':_0x3885ca}}],'undos':[{'id':_0x497e29['id'],'params':{'unitId':_0x49a41c,'subUnitId':_0x6b0e6d,'type':_0x1d3abe[_0x28057d(0x20d)],'op':_0x5cfc26,'objects':_0x4a48ef}},{'id':_0x55949a['id'],'params':{'unitId':_0x49a41c,'subUnitId':_0x6b0e6d,'shapeId':_0x3aef93}}]};}['_updateTransform'](_0x2fd4a0,_0x10b53a,_0x50eac6,_0x4e0d78){const _0x27aa76=_0x12df57;let {range:_0x171989,skeleton:_0x24a673}=_0x10b53a,{range:_0x1d35d4,skeleton:_0x6ad038}=_0x50eac6,{transform:_0x4697bf,sheetTransform:_0x42ecca}=_0x2fd4a0,_0x4cd816={..._0x4697bf};if(_0x171989){let _0xfb9307=_0x16c8e6(_0x24a673,_0x171989),_0x11d7a5=_0x16c8e6(_0x6ad038,_0x1d35d4);if(_0xfb9307&&_0x11d7a5){let _0x3531dd=_0x11d7a5[_0x27aa76(0x19b)]-_0xfb9307[_0x27aa76(0x19b)],_0x27e4cd=_0x11d7a5[_0x27aa76(0x382)]-_0xfb9307[_0x27aa76(0x382)];_0x4cd816['left']=(_0x4cd816[_0x27aa76(0x325)]??0x0)+_0x3531dd,_0x4cd816[_0x27aa76(0x222)]=(_0x4cd816[_0x27aa76(0x222)]??0x0)+_0x27e4cd;}}else{let _0x31e383=_0x16c8e6(_0x6ad038,_0x1d35d4);if(_0x4e0d78&&_0x31e383){let _0x1e6d04=(_0x4cd816[_0x27aa76(0x325)]??0x0)-_0x4e0d78['left'],_0x13beaa=(_0x4cd816['top']??0x0)-_0x4e0d78[_0x27aa76(0x222)];_0x4cd816[_0x27aa76(0x325)]=_0x31e383['startX']+_0x1e6d04,_0x4cd816[_0x27aa76(0x222)]=_0x31e383[_0x27aa76(0x382)]+_0x13beaa;}else _0x4cd816[_0x27aa76(0x325)]=_0x31e383==null?void 0x0:_0x31e383['startX'],_0x4cd816[_0x27aa76(0x222)]=_0x31e383==null?void 0x0:_0x31e383['startY'];}return{'transform':_0x4cd816,'sheetTransform':_0x4e7acc(_0x4cd816,_0x6ad038)??_0x42ecca};}};aa=Y([J(0x0,_0x441dea(_0x4b55a4)),J(0x1,_0x441dea(_0x118f5b)),J(0x2,_0x441dea(_0xa74f05)),J(0x3,_0x441dea(_0x2da406)),J(0x4,_0x441dea(_0x3700d7))],aa);var oa=class extends _0x118028{constructor(_0x4b53b6,_0x47fd12){const _0x590411=_0x12df57;super(_0x4b53b6,_0x47fd12),q(this,_0x590411(0x1e1),null),q(this,_0x590411(0x11e),null),q(this,_0x590411(0xec),null),q(this,_0x590411(0x2cb),null),q(this,_0x590411(0x2e1),!0x1),_0x47fd12&&this[_0x590411(0x280)](_0x47fd12);}[_0x12df57(0x1aa)](){const _0x1a72a2=_0x12df57;return{'unitId':this[_0x1a72a2(0xec)],'subUnitId':this['_subUnitId'],'drawingId':this['_shapeId']};}['setShapeProps'](_0x4a4aac){const _0x8dfbf5=_0x12df57;_0x4a4aac['shapeId']!==void 0x0&&(this[_0x8dfbf5(0x1e1)]=_0x4a4aac[_0x8dfbf5(0x2c6)]),_0x4a4aac['unitId']!==void 0x0&&(this[_0x8dfbf5(0xec)]=_0x4a4aac[_0x8dfbf5(0x21e)]),_0x4a4aac['subUnitId']!==void 0x0&&(this[_0x8dfbf5(0x2cb)]=_0x4a4aac['subUnitId']),_0x4a4aac[_0x8dfbf5(0x386)]!==void 0x0&&(this[_0x8dfbf5(0x2e1)]=_0x4a4aac[_0x8dfbf5(0x386)]),this[_0x8dfbf5(0x11b)]({'width':_0x4a4aac[_0x8dfbf5(0x1d1)],'height':_0x4a4aac[_0x8dfbf5(0x1b0)]});}[_0x12df57(0x1ab)](_0x41a989){const _0x146a58=_0x12df57;_0x2f4676[_0x146a58(0x158)](_0x41a989,{'radius':_0x19a828[_0x146a58(0x2f9)],'fill':_0x19a828[_0x146a58(0x30d)],'stroke':_0x19a828['cxnPointStroke'],'strokeWidth':_0x19a828['cxnPointStrokeWidth'],'evented':!0x0});}};let sa=class extends _0x112f8d{constructor(_0x2ab2cf,_0x43762f,_0x1921a7,_0x5f3a84,_0x437c99,_0x4a73e9,_0x2dc3bd,_0x391a64){const _0x482037=_0x12df57;super(),this[_0x482037(0x250)]=_0x2ab2cf,this['_commandService']=_0x43762f,this[_0x482037(0x110)]=_0x1921a7,this[_0x482037(0x12f)]=_0x5f3a84,this[_0x482037(0xe4)]=_0x437c99,this[_0x482037(0x261)]=_0x4a73e9,this['_sheetShapeAdjustController']=_0x2dc3bd,this[_0x482037(0x1d9)]=_0x391a64,q(this,_0x482037(0x358),void 0x0),q(this,'_unitId',void 0x0),q(this,'_subUnitId',void 0x0),q(this,_0x482037(0x163),[]),q(this,_0x482037(0x10a),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x482037(0x2b6),void 0x0),q(this,_0x482037(0x22d),!0x1),q(this,_0x482037(0x259),!0x1),q(this,_0x482037(0x1af),!0x1),q(this,_0x482037(0x123),void 0x0),q(this,_0x482037(0x375),void 0x0),q(this,_0x482037(0x318),null),this[_0x482037(0x2ab)]();}[_0x12df57(0x2ab)](){const _0x3169e7=_0x12df57;this[_0x3169e7(0x13e)](),this[_0x3169e7(0x31c)]();}[_0x12df57(0x1cc)](){const _0x2b97ba=_0x12df57;if(!this['_unitId']||!this[_0x2b97ba(0x2cb)]||!this[_0x2b97ba(0x358)])return;let _0x482227={'unitId':this[_0x2b97ba(0xec)],'subUnitId':this[_0x2b97ba(0x2cb)],'drawingId':this[_0x2b97ba(0x358)]},{transform:_0x43e232}=this[_0x2b97ba(0x12f)][_0x2b97ba(0x27d)](_0x482227);if(_0x43e232)return{'left':_0x43e232[_0x2b97ba(0x325)]||0x0,'top':_0x43e232[_0x2b97ba(0x222)]||0x0,'width':_0x43e232[_0x2b97ba(0x1d1)]||0x0,'height':_0x43e232['height']||0x0,'flipX':_0x43e232[_0x2b97ba(0x137)]||!0x1,'flipY':_0x43e232[_0x2b97ba(0x178)]||!0x1,'angle':_0x43e232['angle']};}[_0x12df57(0x17e)](){const _0x42d7a3=_0x12df57;if(this[_0x42d7a3(0xec)]===void 0x0||this[_0x42d7a3(0x2cb)]===void 0x0||this[_0x42d7a3(0x358)]===void 0x0)return;let _0x5860ce=this['_renderManagerService']['getRenderUnitById'](this[_0x42d7a3(0xec)]);if(!_0x5860ce||!_0x5860ce['with'](_0x4e2ccb)['getCurrentSkeleton']())return;let {scene:_0x1ee671}=_0x5860ce,_0x509e1e=this['_getDrawingRect']();if(!_0x509e1e)return;let _0x3dbd16=this[_0x42d7a3(0x261)][_0x42d7a3(0x337)](this[_0x42d7a3(0xec)],this[_0x42d7a3(0x2cb)],this[_0x42d7a3(0x358)]);if(!_0x3dbd16||!_0x5350d3(_0x3dbd16[_0x42d7a3(0x23d)]()))return;let _0x2430f0=_0x3dbd16[_0x42d7a3(0x135)]();if(_0x2430f0['length']<0x2)return;let _0x1f277b=new _0x2d0c36(_0x509e1e),_0x3ca3a9=_0x2430f0[0x0],_0x5307aa=_0x2430f0[_0x2430f0[_0x42d7a3(0x1d0)]-0x1],_0x6b7984=_0x1f277b[_0x42d7a3(0x112)](_0x3ca3a9),_0x5b8e29=_0x1f277b['localToWorld'](_0x5307aa);this[_0x42d7a3(0x2d6)](_0x1ee671,{..._0x6b7984},!0x0),this[_0x42d7a3(0x2d6)](_0x1ee671,{..._0x5b8e29},!0x1);}[_0x12df57(0x2d6)](_0x170cd5,_0x267603,_0x9c6be1){const _0x45d7c7=_0x12df57;if(this[_0x45d7c7(0x358)]===void 0x0||this[_0x45d7c7(0xec)]===void 0x0||this[_0x45d7c7(0x2cb)]===void 0x0)return;let _0x57347b=_0x45d7c7(0xdf)+this[_0x45d7c7(0xec)]+'-'+this[_0x45d7c7(0x2cb)]+'-'+this[_0x45d7c7(0x358)]+'-'+(_0x9c6be1?'start':_0x45d7c7(0x1c7)),_0x5494d9=_0x170cd5[_0x45d7c7(0x130)](_0x57347b);if(_0x5494d9){_0x5494d9[_0x45d7c7(0x11b)]({'left':_0x267603['x']-_0x19a828[_0x45d7c7(0x2f9)],'top':_0x267603['y']-_0x19a828[_0x45d7c7(0x2f9)]});return;}let _0x3a4508=new oa(_0x57347b,{'left':_0x267603['x']-_0x19a828[_0x45d7c7(0x2f9)],'top':_0x267603['y']-_0x19a828[_0x45d7c7(0x2f9)],'shapeId':this[_0x45d7c7(0x358)],'unitId':this[_0x45d7c7(0xec)],'subUnitId':this[_0x45d7c7(0x2cb)],'isStartConnectorPoint':_0x9c6be1,'width':_0x19a828[_0x45d7c7(0x2f9)]*0x2,'height':_0x19a828[_0x45d7c7(0x2f9)]*0x2,'zIndex':_0x434827+0x1,'evented':!0x0});this[_0x45d7c7(0x163)]['push'](_0x3a4508),this[_0x45d7c7(0x12d)](_0x3a4508,_0x170cd5,_0x9c6be1),_0x170cd5['addObject'](_0x3a4508,_0x434827+0x1);}[_0x12df57(0x237)](_0x5ed3ef,_0x36f290){const _0x3564e5=_0x12df57;var _0x41f505;let _0x4cda02={'x':0x0,'y':0x0};if(!_0x5ed3ef||!_0x36f290)return _0x4cda02;let _0x132258=this[_0x3564e5(0x110)][_0x3564e5(0x269)](_0x5ed3ef);if(!_0x132258||!_0x132258[_0x3564e5(0x2f8)](_0x4e2ccb)[_0x3564e5(0x28c)](_0x36f290))return _0x4cda02;let _0x322c23=_0x132258[_0x3564e5(0x2f8)](_0xb28c90),_0x189338=_0x322c23==null?void 0x0:_0x322c23[_0x3564e5(0x1dd)]();if(!_0x189338)return _0x4cda02;let _0x36e495=(_0x41f505=this[_0x3564e5(0xe4)][_0x3564e5(0xf6)](_0x5ed3ef))==null?void 0x0:_0x41f505[_0x3564e5(0x116)](_0x36f290);if(!_0x36e495)return _0x4cda02;let _0x1a93eb=_0xd77f2d(_0x189338[_0x3564e5(0x1ad)],_0x189338[_0x3564e5(0x33b)],_0x132258[_0x3564e5(0x2d7)],_0x36e495);return _0x1a93eb?{'x':_0x1a93eb[_0x3564e5(0x2d2)],'y':_0x1a93eb['viewportScrollY']}:_0x4cda02;}[_0x12df57(0x12c)](_0x2fbd4e,_0x158f0a){const _0x16b267=_0x12df57;var _0x363f49;let _0x51153b=(_0x363f49=this[_0x16b267(0xe4)][_0x16b267(0xf6)](_0x2fbd4e))==null?void 0x0:_0x363f49[_0x16b267(0x116)](_0x158f0a);return(_0x51153b==null?void 0x0:_0x51153b['getZoomRatio']())??0x1;}[_0x12df57(0x36b)](_0x2362fd,_0x3acfa7,_0x37921e,_0x18beab,_0x1ebc41){const _0x9e0bc1=_0x12df57;this['_cxtHandlerPointerMove'][_0x9e0bc1(0x2f1)](),this[_0x9e0bc1(0x375)]['unsubscribe'](),this[_0x9e0bc1(0x31a)][_0x9e0bc1(0x384)]();let _0x329151=this['_currentConnectionTarget'];this[_0x9e0bc1(0x1d9)][_0x9e0bc1(0x38e)]();let _0x5c4ba4=this[_0x9e0bc1(0x237)](this['_unitId'],this[_0x9e0bc1(0x2cb)]),_0x1cba4b=this[_0x9e0bc1(0x12c)](this['_unitId'],this[_0x9e0bc1(0x2cb)]),_0x385940={'x':_0x37921e[_0x9e0bc1(0x319)]/_0x1cba4b+_0x5c4ba4['x'],'y':_0x37921e['offsetY']/_0x1cba4b+_0x5c4ba4['y']},_0x22a101=_0x329151?_0x329151['worldPoint']:_0x385940,_0x45d9bc=_0x18beab?this[_0x9e0bc1(0x2b6)][_0x9e0bc1(0x256)]():this[_0x9e0bc1(0x2b6)][_0x9e0bc1(0x13c)](),_0x3e23f5=this['_activeShapeModel'][_0x9e0bc1(0x23d)]();_0x45d9bc?this[_0x9e0bc1(0x37b)](_0x45d9bc,_0x22a101,_0x18beab,_0x329151,_0x1ebc41):this['_handleFreeEndpointPointerUp'](_0x3acfa7,_0x22a101,_0x18beab,_0x329151,_0x1ebc41,_0x3e23f5),this['_isConnecting']=!0x1,this[_0x9e0bc1(0x1af)]=!0x1,this[_0x9e0bc1(0x318)]=null,_0x2362fd['enableObjectsEvent']();}['_handleFreeEndpointPointerUp'](_0x24e799,_0x51f1bd,_0x141448,_0x57f76c,_0x320b33,_0x3c0579){const _0x1f1a85=_0x12df57;let _0x37849e=_0x3c0579===_0x58173b[_0x1f1a85(0x2a0)]||_0x3c0579===_0x58173b[_0x1f1a85(0x38d)],_0x735bfa=_0x141448?_0x51f1bd:_0x24e799,_0x2f86bd=_0x141448?_0x24e799:_0x51f1bd,_0x5d15ef=this[_0x1f1a85(0x2b6)][_0x1f1a85(0x135)](),_0xdeed02=this['_activeShapeModel']['getShapeType'](),_0x580dce=_0x24e357(_0xdeed02),_0x6719a3=_0x2d0c36[_0x1f1a85(0x131)](_0x5d15ef,_0x580dce),_0x437408=_0x37849e?_0x2d0c36[_0x1f1a85(0x17b)](_0x735bfa,_0x2f86bd):_0x2d0c36[_0x1f1a85(0x2fe)](_0x24e799,_0x51f1bd,_0x141448,_0x6719a3);_0x57f76c?this[_0x1f1a85(0x2ba)](_0x437408,_0x57f76c,_0x141448,_0x320b33):this[_0x1f1a85(0x300)](_0x437408,_0x320b33);}[_0x12df57(0x37b)](_0x1d4b86,_0x423564,_0x3dc9a2,_0x2df9cb,_0x1b0faf){const _0x14890f=_0x12df57;let _0x15392c=this['_getConnectPointInfo'](_0x1d4b86);if(!_0x15392c)return;let _0x3c1b15=_0x2df9cb?_0x2df9cb[_0x14890f(0x354)]:this[_0x14890f(0x344)](_0x15392c['point'],_0x423564),_0x5d5a8b;if(_0x2df9cb){let _0xfeef0a=this[_0x14890f(0x12f)][_0x14890f(0x27d)]({'unitId':_0x2df9cb[_0x14890f(0x21e)],'subUnitId':_0x2df9cb[_0x14890f(0x179)],'drawingId':_0x2df9cb['shapeId']});if(_0xfeef0a!=null&&_0xfeef0a[_0x14890f(0x114)]){let {left:_0x2d99c5=0x0,top:_0x59feb7=0x0,width:_0x4227be=0x0,height:_0x1ef838=0x0,angle:_0x40a103}=_0xfeef0a[_0x14890f(0x114)];_0x5d5a8b=_0x1d381c({'left':_0x2d99c5,'top':_0x59feb7,'width':_0x4227be,'height':_0x1ef838},_0x40a103||0x0);}else _0x5d5a8b={'left':_0x423564['x'],'top':_0x423564['y'],'width':0x0,'height':0x0};}else _0x5d5a8b={'left':_0x423564['x'],'top':_0x423564['y'],'width':0x0,'height':0x0};let _0x238832={'point':_0x423564,'angle':_0x3c1b15,'bounds':_0x5d5a8b},_0x22c12c=_0x3dc9a2?_0x238832:_0x15392c,_0x4e9926=_0x3dc9a2?_0x15392c:_0x238832,_0x38fde3=this[_0x14890f(0x2b6)][_0x14890f(0x23d)](),_0x183474=_0x4a61e5(_0x22c12c,_0x4e9926,_0x38fde3);this['_activeShapeModel']['removeLinePoints']();let _0x46f759=_0x55da57(_0x183474,_0x38fde3);_0x2df9cb?this[_0x14890f(0x312)](_0x46f759,_0x2df9cb,_0x1d4b86,_0x3dc9a2,_0x1b0faf):this[_0x14890f(0x353)](_0x46f759,_0x1d4b86,_0x3dc9a2,_0x1b0faf);}['_executeConnectionCommand'](_0x2784f6,_0x422714,_0x48aa02,_0x3c69f9){const _0x3ba190=_0x12df57;let _0x580fc5=this['_activeShapeModel'][_0x3ba190(0x26e)]()[_0x3ba190(0x28f)],_0x131b20={..._0x580fc5},_0x4d4c95={'shapeId':_0x422714['shapeId'],'cxnIndex':_0x422714[_0x3ba190(0x1b3)]};_0x48aa02?_0x131b20[_0x3ba190(0x245)]=_0x4d4c95:_0x131b20['to']=_0x4d4c95;let _0x470572=this['_activeShapeModel'][_0x3ba190(0x23d)](),_0x102b0e=_0x55da57(_0x2784f6[_0x3ba190(0x399)],_0x470572),_0x3481a1={'unitId':this[_0x3ba190(0xec)],'subUnitId':this[_0x3ba190(0x2cb)],'connectorShapeId':this['_activeShapeId'],'width':_0x2784f6[_0x3ba190(0x263)][_0x3ba190(0x1d1)],'height':_0x2784f6[_0x3ba190(0x263)]['height'],'left':_0x2784f6[_0x3ba190(0x263)][_0x3ba190(0x325)],'top':_0x2784f6[_0x3ba190(0x263)]['top'],'flipX':_0x2784f6[_0x3ba190(0x263)][_0x3ba190(0x137)]||!0x1,'flipY':_0x2784f6[_0x3ba190(0x263)][_0x3ba190(0x178)]||!0x1,'newAdjustValues':_0x102b0e[_0x3ba190(0x1e9)],'oldAdjustValues':_0x3c69f9,'oldRelation':_0x580fc5,'newRelation':_0x131b20,'newLineType':_0x102b0e[_0x3ba190(0x215)],'oldLineType':_0x470572};this[_0x3ba190(0x346)][_0x3ba190(0xf9)](_0x3da7c1['id'],_0x3481a1);}[_0x12df57(0x300)](_0x122c24,_0x5a155f){const _0x9a81cc=_0x12df57;let _0x7d1264=this[_0x9a81cc(0x2b6)]['getShapeType'](),_0x268e9a=_0x55da57(_0x122c24['worldPoints'],_0x7d1264),_0x2e9c7a={'unitId':this[_0x9a81cc(0xec)],'subUnitId':this[_0x9a81cc(0x2cb)],'shapeId':this['_activeShapeId'],'width':_0x122c24[_0x9a81cc(0x263)][_0x9a81cc(0x1d1)],'height':_0x122c24[_0x9a81cc(0x263)]['height'],'left':_0x122c24['worldRect'][_0x9a81cc(0x325)],'top':_0x122c24[_0x9a81cc(0x263)][_0x9a81cc(0x222)],'flipX':_0x122c24[_0x9a81cc(0x263)][_0x9a81cc(0x137)]||!0x1,'flipY':_0x122c24[_0x9a81cc(0x263)][_0x9a81cc(0x178)]||!0x1,'angle':_0x122c24[_0x9a81cc(0x263)]['angle']||0x0,'newAdjustValues':_0x268e9a[_0x9a81cc(0x1e9)],'oldAdjustValues':_0x5a155f,'newLineType':_0x268e9a['lineType'],'oldLineType':_0x7d1264};this['_commandService'][_0x9a81cc(0xf9)](_0x700f65['id'],_0x2e9c7a);}[_0x12df57(0x312)](_0x104dd2,_0x171dc6,_0x79624a,_0x12629c,_0x1fc4f6){const _0x178901=_0x12df57;let _0x54bb30=this[_0x178901(0x2b6)][_0x178901(0x26e)]()[_0x178901(0x28f)],_0x48ce5a={..._0x54bb30},_0x13021d={'shapeId':_0x171dc6['shapeId'],'cxnIndex':_0x171dc6[_0x178901(0x1b3)]};_0x12629c?(_0x48ce5a[_0x178901(0x245)]=_0x13021d,_0x48ce5a['to']=_0x79624a):(_0x48ce5a[_0x178901(0x245)]=_0x79624a,_0x48ce5a['to']=_0x13021d);let _0xf9c609={'unitId':this['_unitId'],'subUnitId':this[_0x178901(0x2cb)],'connectorShapeId':this[_0x178901(0x358)],'width':_0x104dd2['worldRect'][_0x178901(0x1d1)],'height':_0x104dd2['worldRect'][_0x178901(0x1b0)],'left':_0x104dd2[_0x178901(0x263)][_0x178901(0x325)],'top':_0x104dd2[_0x178901(0x263)][_0x178901(0x222)],'flipX':_0x104dd2[_0x178901(0x263)][_0x178901(0x137)]||!0x1,'flipY':_0x104dd2[_0x178901(0x263)][_0x178901(0x178)]||!0x1,'oldAdjustValues':_0x1fc4f6,'newAdjustValues':_0x104dd2[_0x178901(0x1e9)],'newLineType':_0x104dd2[_0x178901(0x215)],'rotation':_0x104dd2[_0x178901(0x113)],'oldRelation':_0x54bb30,'newRelation':_0x48ce5a};this['_commandService']['executeCommand'](_0x3da7c1['id'],_0xf9c609);}[_0x12df57(0x353)](_0x17a9f5,_0x158da6,_0x52605b,_0x2f2867){const _0x18f2fa=_0x12df57;let _0x59109a=this['_activeShapeModel']['getShapeData']()[_0x18f2fa(0x28f)],_0x59c72a={};_0x52605b?(_0x59c72a['to']=_0x158da6,_0x59c72a[_0x18f2fa(0x245)]=void 0x0):(_0x59c72a[_0x18f2fa(0x245)]=_0x158da6,_0x59c72a['to']=void 0x0);let _0x170e1f={'unitId':this[_0x18f2fa(0xec)],'subUnitId':this[_0x18f2fa(0x2cb)],'connectorShapeId':this['_activeShapeId'],'width':_0x17a9f5['worldRect'][_0x18f2fa(0x1d1)],'height':_0x17a9f5[_0x18f2fa(0x263)][_0x18f2fa(0x1b0)],'left':_0x17a9f5[_0x18f2fa(0x263)][_0x18f2fa(0x325)],'top':_0x17a9f5[_0x18f2fa(0x263)][_0x18f2fa(0x222)],'flipX':_0x17a9f5[_0x18f2fa(0x263)]['flipX']||!0x1,'flipY':_0x17a9f5[_0x18f2fa(0x263)][_0x18f2fa(0x178)]||!0x1,'oldAdjustValues':_0x2f2867,'newAdjustValues':_0x17a9f5[_0x18f2fa(0x1e9)],'newLineType':_0x17a9f5[_0x18f2fa(0x215)],'rotation':_0x17a9f5['rotation'],'oldRelation':_0x59109a,'newRelation':_0x59c72a};this['_commandService'][_0x18f2fa(0xf9)](_0x3da7c1['id'],_0x170e1f);}['_attachConnectorObjectEvent'](_0x5b6f99,_0x177b1f,_0x3355cc){const _0xc54ead=_0x12df57;this['disposeWithMe'](_0x1152a8(_0x5b6f99[_0xc54ead(0x2fd)][_0xc54ead(0x35f)]((_0x2c31c1,_0x5baf20)=>{const _0x4bd39d=_0xc54ead;let _0x26982f=_0x5b6f99['getDrawingSearch']();if(this[_0x4bd39d(0x2b6)]=this[_0x4bd39d(0x261)][_0x4bd39d(0x337)](_0x26982f[_0x4bd39d(0x21e)],_0x26982f['subUnitId'],_0x26982f[_0x4bd39d(0x248)]),!this[_0x4bd39d(0x2b6)])return;let _0x5ab3f8={};this['_activeShapeModel']['getAdjustNames']()[_0x4bd39d(0x28d)](_0x3fad63=>{let _0x44ca49=this['_activeShapeModel']['getAdjustValueByName'](_0x3fad63);_0x44ca49!==void 0x0&&(_0x5ab3f8[_0x3fad63]=_0x44ca49);});let _0x5cae99=this[_0x4bd39d(0x1cc)]();if(!_0x5cae99)return;this[_0x4bd39d(0x10a)]={..._0x5cae99};let _0x248052=new _0x2d0c36(this[_0x4bd39d(0x10a)]),_0xc42435=_0x5b432f({'unitId':this[_0x4bd39d(0xec)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x4bd39d(0x358)]}),_0x4f0a43=_0x177b1f[_0x4bd39d(0x130)](_0xc42435);this[_0x4bd39d(0x22d)]=!0x0,_0x177b1f['disableObjectsEvent'](),this[_0x4bd39d(0x1d9)][_0x4bd39d(0x2a8)](_0x177b1f,this[_0x4bd39d(0xec)],this[_0x4bd39d(0x2cb)],this[_0x4bd39d(0x358)]),this['_currentConnectionTarget']=null;let _0x4e6ff2=this[_0x4bd39d(0x2b6)]['getConnectorLinePoints'](),_0x86e21c=_0x4e6ff2[0x0],_0x35f189=_0x4e6ff2[_0x4e6ff2[_0x4bd39d(0x1d0)]-0x1],_0x3f8df4=_0x3355cc?_0x248052[_0x4bd39d(0x112)](_0x35f189):_0x248052[_0x4bd39d(0x112)](_0x86e21c);this[_0x4bd39d(0x123)]=_0x177b1f[_0x4bd39d(0x2fb)][_0x4bd39d(0x35f)]((_0x5f1fd6,_0x2e9319)=>{const _0x21ae73=_0x4bd39d;if(!this[_0x21ae73(0x22d)]||!this[_0x21ae73(0x2b6)])return;this[_0x21ae73(0x1af)]||=(this[_0x21ae73(0x31a)][_0x21ae73(0x2f4)](),this['_activeShapeModel'][_0x21ae73(0x204)](),!0x0);let _0x4c863c=this[_0x21ae73(0x237)](this[_0x21ae73(0xec)],this[_0x21ae73(0x2cb)]),_0x534dec=this['_getZoomRatio'](this[_0x21ae73(0xec)],this[_0x21ae73(0x2cb)]),_0x48dcc5={'x':_0x5f1fd6['offsetX']/_0x534dec+_0x4c863c['x'],'y':_0x5f1fd6['offsetY']/_0x534dec+_0x4c863c['y']},_0x1658aa=this[_0x21ae73(0x1d9)]['updateConnectionDetection'](_0x48dcc5);if(_0x1658aa){let {shapeId:_0x413d20,unitId:_0x4ba07a,subUnitId:_0xbec810}=_0x1658aa;if(_0x413d20&&_0x4ba07a&&_0xbec810){let _0x1528a2=_0x5b432f({'unitId':_0x4ba07a,'subUnitId':_0xbec810,'drawingId':_0x413d20});_0x1658aa[_0x21ae73(0x354)]=(_0x177b1f[_0x21ae73(0x130)](_0x1528a2)['angle']||0x0)+_0x1658aa[_0x21ae73(0x354)];}}this[_0x21ae73(0x318)]=_0x1658aa;let _0x320b35=_0x3355cc?this[_0x21ae73(0x2b6)][_0x21ae73(0x256)]():this[_0x21ae73(0x2b6)][_0x21ae73(0x13c)]();if(_0x320b35){this[_0x21ae73(0x16e)](_0x320b35,_0x48dcc5,_0x3355cc,_0x4f0a43,_0x5b6f99);return;}this[_0x21ae73(0x315)](_0x48dcc5,_0x3f8df4,_0x3355cc,_0x4f0a43,_0x5b6f99);}),this['_cxtHandlerPointerUp']=_0x177b1f[_0x4bd39d(0x23b)]['subscribeEvent']((_0x2d537f,_0xd8a2fa)=>{const _0x3df486=_0x4bd39d;this[_0x3df486(0x36b)](_0x177b1f,_0x3f8df4,_0x2d537f,_0x3355cc,_0x5ab3f8);}),_0x5baf20[_0x4bd39d(0x33d)]();})));}[_0x12df57(0x349)](_0x4c9e5a,_0x4eaf9a,_0x43ad80){const _0x1dfb23=_0x12df57;let _0x2d84be=this[_0x1dfb23(0x261)][_0x1dfb23(0x15a)](_0x4c9e5a,_0x4eaf9a,_0x43ad80);if(!_0x2d84be||_0x2d84be['length']===0x0)return;let _0x1a18ca=this['_renderManagerService'][_0x1dfb23(0x269)](_0x4c9e5a);if(!_0x1a18ca)return;let {scene:_0x4b0f08}=_0x1a18ca;for(let _0x49dc87 of _0x2d84be){let _0xe218b3=_0x49dc87['lineShapeId'],_0x44ffb6=this[_0x1dfb23(0x261)][_0x1dfb23(0x337)](_0x4c9e5a,_0x4eaf9a,_0xe218b3);if(!_0x44ffb6)continue;let _0x273d3e=_0x44ffb6['getStartConnectInfo'](),_0x481a6e=_0x44ffb6[_0x1dfb23(0x256)](),_0x2996b0=(_0x273d3e==null?void 0x0:_0x273d3e[_0x1dfb23(0x2c6)])===_0x43ad80,_0x12c38e=_0x5b432f({'unitId':_0x4c9e5a,'subUnitId':_0x4eaf9a,'drawingId':_0xe218b3}),_0x4cc887=_0x4b0f08[_0x1dfb23(0x130)](_0x12c38e);if(!_0x4cc887)continue;let _0x3b34ec=this[_0x1dfb23(0x12f)]['getDrawingByParam']({'unitId':_0x4c9e5a,'subUnitId':_0x4eaf9a,'drawingId':_0xe218b3});_0x3b34ec!=null&&_0x3b34ec['transform']&&(_0x273d3e&&_0x481a6e?this[_0x1dfb23(0xe6)](_0x4c9e5a,_0x4eaf9a,_0xe218b3,_0x44ffb6,_0x273d3e,_0x481a6e,_0x4cc887):this[_0x1dfb23(0x17a)](_0x4c9e5a,_0x4eaf9a,_0xe218b3,_0x44ffb6,_0x2996b0?_0x273d3e:_0x481a6e,_0x2996b0,_0x3b34ec,_0x4cc887));}}['_rerouteConnectorLine'](_0x52ebe3,_0x110b9a,_0x2bb9fb,_0x5e6609,_0x98ff74,_0x3d2a6c,_0x16fefd){const _0x4fb380=_0x12df57;let _0x4bfff9=this['_unitId'],_0x3d3e67=this[_0x4fb380(0x2cb)];this['_unitId']=_0x52ebe3,this['_subUnitId']=_0x110b9a;let _0x2daa9b=this[_0x4fb380(0x157)](_0x98ff74),_0x4cf266=this[_0x4fb380(0x157)](_0x3d2a6c);if(this[_0x4fb380(0xec)]=_0x4bfff9,this[_0x4fb380(0x2cb)]=_0x3d3e67,!_0x2daa9b||!_0x4cf266)return;let _0x31f8a9=_0x5e6609['getShapeType'](),_0x2b6d54=_0x4a61e5(_0x2daa9b,_0x4cf266,_0x31f8a9);_0x2b6d54&&_0x5e6609[_0x4fb380(0x2d4)](_0x2b6d54);let _0x4f8e23=_0x55da57(_0x2b6d54,_0x31f8a9);_0x4f8e23[_0x4fb380(0x215)]!==_0x31f8a9&&_0x5e6609[_0x4fb380(0x19e)](_0x4f8e23[_0x4fb380(0x215)]),_0x5e6609[_0x4fb380(0x204)]();for(let [_0x87b1c0,_0x40512b]of Object['entries'](_0x4f8e23[_0x4fb380(0x1e9)]))_0x5e6609[_0x4fb380(0x207)](_0x87b1c0,_0x40512b);_0x5e6609[_0x4fb380(0x205)]({'width':_0x4f8e23[_0x4fb380(0x263)][_0x4fb380(0x1d1)],'height':_0x4f8e23[_0x4fb380(0x263)][_0x4fb380(0x1b0)]}),_0x16fefd[_0x4fb380(0x11b)]({'flipX':_0x4f8e23[_0x4fb380(0x263)][_0x4fb380(0x137)],'flipY':_0x4f8e23[_0x4fb380(0x263)]['flipY'],'left':_0x4f8e23[_0x4fb380(0x263)][_0x4fb380(0x325)],'top':_0x4f8e23[_0x4fb380(0x263)][_0x4fb380(0x222)],'width':_0x4f8e23[_0x4fb380(0x263)][_0x4fb380(0x1d1)],'height':_0x4f8e23[_0x4fb380(0x263)]['height'],'angle':_0x4f8e23['rotation']}),_0x5e6609[_0x4fb380(0x19a)]();}[_0x12df57(0x17a)](_0x7f8232,_0x1a11e9,_0x801c06,_0x2bed88,_0x41ebe6,_0x52f6fa,_0x4ad35c,_0x5f368e){const _0x3e0e79=_0x12df57;let _0x106901=this['_unitId'],_0x1a75f9=this['_subUnitId'];this[_0x3e0e79(0xec)]=_0x7f8232,this[_0x3e0e79(0x2cb)]=_0x1a11e9;let _0x3bd46c=this[_0x3e0e79(0x157)](_0x41ebe6);if(this[_0x3e0e79(0xec)]=_0x106901,this[_0x3e0e79(0x2cb)]=_0x1a75f9,!_0x3bd46c)return;let {left:_0x146ee1=0x0,top:_0x174514=0x0,width:_0x8b242b=0x0,height:_0x5d995c=0x0,flipX:_0x455562=!0x1,flipY:_0xd8717e=!0x1}=_0x4ad35c[_0x3e0e79(0x114)],_0xd65fae=_0x2bed88[_0x3e0e79(0x135)]();if(_0xd65fae[_0x3e0e79(0x1d0)]<0x2)return;let _0x5af804=new _0x2d0c36({'left':_0x146ee1,'top':_0x174514,'width':_0x8b242b,'height':_0x5d995c,'flipX':_0x455562,'flipY':_0xd8717e}),_0x16ed21=_0x52f6fa?_0xd65fae[_0xd65fae[_0x3e0e79(0x1d0)]-0x1]:_0xd65fae[0x0],_0xcbcf92=_0x5af804[_0x3e0e79(0x112)](_0x16ed21),_0x397ef7=_0x2d0c36[_0x3e0e79(0x2fe)](_0xcbcf92,_0x3bd46c['point'],!_0x52f6fa);_0x5f368e[_0x3e0e79(0x11b)]({'flipX':_0x397ef7[_0x3e0e79(0x263)][_0x3e0e79(0x137)],'flipY':_0x397ef7[_0x3e0e79(0x263)]['flipY'],'left':_0x397ef7['worldRect'][_0x3e0e79(0x325)],'top':_0x397ef7['worldRect'][_0x3e0e79(0x222)],'width':_0x397ef7['worldRect'][_0x3e0e79(0x1d1)],'height':_0x397ef7[_0x3e0e79(0x263)][_0x3e0e79(0x1b0)],'angle':_0x397ef7[_0x3e0e79(0x263)][_0x3e0e79(0x354)]}),_0x5f368e[_0x3e0e79(0x161)](!0x0);}[_0x12df57(0x380)](){const _0x80322=_0x12df57;this[_0x80322(0x163)][_0x80322(0x1d0)]!==0x0&&(this['_connectorObjects'][_0x80322(0x28d)](_0x52cfed=>{const _0x370810=_0x80322;_0x52cfed[_0x370810(0x2ed)]();}),this[_0x80322(0x163)]=[]);}[_0x12df57(0x31c)](){const _0x866394=_0x12df57;let _0x20fd59=this['_univerInstanceService'][_0x866394(0xd8)](_0x43974e[_0x866394(0x29c)]);this[_0x866394(0x200)](_0x20fd59['pipe'](_0x3339fd(_0x1769fc=>_0x1769fc?_0x1769fc[_0x866394(0x166)]['pipe'](_0x3339fd(_0x508dda=>{const _0x52ffcd=_0x866394;if(!_0x508dda)return _0x510d35;let _0x42f730=_0x1769fc['getUnitId'](),_0x41b9f8=this['_renderManagerService'][_0x52ffcd(0x269)](_0x42f730),_0xdeed6c=_0x41b9f8==null?void 0x0:_0x41b9f8['scene'];return _0xdeed6c?_0xcf385(_0xdeed6c):_0x510d35;})):_0x510d35))[_0x866394(0xee)](_0x203431=>{const _0x408b1e=_0x866394;let _0x22a571=_0x203431['getTransformerByCreate']();this[_0x408b1e(0x200)](_0x203431['onPointerMove$'][_0x408b1e(0x35f)](_0xfda8f2=>{const _0x53f680=_0x408b1e;this[_0x53f680(0x259)]&&this['_activeShapeId']&&this[_0x53f680(0x380)]();})),this[_0x408b1e(0x200)](_0x22a571['changeStart$'][_0x408b1e(0xee)](_0x11bc96=>{const _0x2975cb=_0x408b1e;let {objects:_0x23da8a}=_0x11bc96;this[_0x2975cb(0x380)](),_0x23da8a!==null&&_0x23da8a[_0x2975cb(0x165)]===0x1&&_0x23da8a[_0x2975cb(0x2a6)]()[_0x2975cb(0x35b)]()[_0x2975cb(0x156)]instanceof Er&&(this[_0x2975cb(0x259)]=!0x0);})),this[_0x408b1e(0x200)](_0x22a571['changing$'][_0x408b1e(0xee)](_0x471b56=>{const _0x17a54f=_0x408b1e;this[_0x17a54f(0x259)]&&this[_0x17a54f(0x380)]();})),this['disposeWithMe'](_0x203431['onPointerUp$']['subscribeEvent'](()=>{const _0x15e8b1=_0x408b1e;this[_0x15e8b1(0x259)]&&(this[_0x15e8b1(0x259)]=!0x1,this[_0x15e8b1(0x17e)]());})),this[_0x408b1e(0x200)](_0x22a571[_0x408b1e(0x18b)]['subscribe'](()=>{const _0x4080fc=_0x408b1e;this[_0x4080fc(0xec)]&&this[_0x4080fc(0x2cb)]&&this[_0x4080fc(0x358)]&&this['_drawingManagerService'][_0x4080fc(0x27d)]({'unitId':this[_0x4080fc(0xec)],'subUnitId':this[_0x4080fc(0x2cb)],'drawingId':this[_0x4080fc(0x358)]})&&(this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x12df57(0x13e)](){const _0x14764b=_0x12df57;this[_0x14764b(0x200)](this[_0x14764b(0x12f)][_0x14764b(0x20f)][_0x14764b(0xee)](_0x375e83=>{const _0x227071=_0x14764b;if(_0x375e83[_0x227071(0x1d0)]===0x1){let _0x423216=_0x375e83[0x0];if(_0x423216[_0x227071(0x309)]===_0x51ad3e[_0x227071(0x305)]){let _0x7a99cb=this[_0x227071(0x261)][_0x227071(0x337)](_0x423216[_0x227071(0x21e)],_0x423216[_0x227071(0x179)],_0x423216[_0x227071(0x248)]);if(_0x7a99cb&&_0x5350d3(_0x7a99cb['getShapeType']())){this[_0x227071(0x358)]=_0x423216[_0x227071(0x248)],this[_0x227071(0xec)]=_0x423216[_0x227071(0x21e)],this['_subUnitId']=_0x423216[_0x227071(0x179)],this[_0x227071(0x380)](),this[_0x227071(0x17e)]();return;}}}this[_0x227071(0x358)]=void 0x0,this[_0x227071(0xec)]=void 0x0,this[_0x227071(0x2cb)]=void 0x0,this[_0x227071(0x380)]();})),this[_0x14764b(0x200)](this[_0x14764b(0x12f)][_0x14764b(0x12b)][_0x14764b(0xee)](_0x5afabd=>{const _0x425197=_0x14764b;if(_0x5afabd[_0x425197(0x1d0)]===0x1){var _0xf1efaf;let _0x38aea1=_0x5afabd[0x0],_0x495b28=(_0xf1efaf=this['_drawingManagerService'][_0x425197(0x27d)](_0x38aea1))==null?void 0x0:_0xf1efaf['drawingType'];_0x495b28===_0x51ad3e[_0x425197(0x305)]&&_0x38aea1[_0x425197(0x248)]===this[_0x425197(0x358)]?(this['_clearShapeConnectorHandlerObjects'](),this[_0x425197(0x17e)]()):!this[_0x425197(0x358)]&&_0x495b28===_0x51ad3e[_0x425197(0x305)]&&this[_0x425197(0x349)](_0x38aea1['unitId'],_0x38aea1[_0x425197(0x179)],_0x38aea1[_0x425197(0x248)]);}})),this[_0x14764b(0x200)](this[_0x14764b(0x12f)][_0x14764b(0x16a)][_0x14764b(0xee)](_0x291bf0=>{const _0x396e18=_0x14764b;for(let _0x571b4e of _0x291bf0){let {drawingId:_0x1db8d2}=_0x571b4e;if(this[_0x396e18(0x358)]===_0x1db8d2){this[_0x396e18(0x265)]();return;}}}));}['_handleConnectedEndpointMove'](_0x5574dc,_0x163d3c,_0x49d4d3,_0xcd7ddc,_0x4c2db6){const _0x4843df=_0x12df57;var _0x5b2450;if(!this['_activeShapeModel'])return;let _0x21e6de=this['_getConnectPointInfo'](_0x5574dc);if(!_0x21e6de)return;let _0x2cb8a7=this[_0x4843df(0x318)]?this['_currentConnectionTarget']['worldPoint']:_0x163d3c,_0x16abc8=this[_0x4843df(0x318)]?this[_0x4843df(0x318)][_0x4843df(0x354)]:this[_0x4843df(0x344)](_0x21e6de[_0x4843df(0x1df)],_0x2cb8a7),_0x30f3b0;if(this[_0x4843df(0x318)]){let _0x389275=this['_drawingManagerService'][_0x4843df(0x27d)]({'unitId':this[_0x4843df(0x318)][_0x4843df(0x21e)],'subUnitId':this[_0x4843df(0x318)][_0x4843df(0x179)],'drawingId':this['_currentConnectionTarget'][_0x4843df(0x2c6)]});if(_0x389275!=null&&_0x389275[_0x4843df(0x114)]){let {left:_0x3fdfd7=0x0,top:_0x72f8eb=0x0,width:_0x46a7a2=0x0,height:_0x5dff4e=0x0,angle:_0x19b9c0}=_0x389275[_0x4843df(0x114)];_0x30f3b0=_0x1d381c({'left':_0x3fdfd7,'top':_0x72f8eb,'width':_0x46a7a2,'height':_0x5dff4e},_0x19b9c0||0x0);}else _0x30f3b0={'left':_0x2cb8a7['x'],'top':_0x2cb8a7['y'],'width':0x0,'height':0x0};}else _0x30f3b0={'left':_0x2cb8a7['x'],'top':_0x2cb8a7['y'],'width':0x0,'height':0x0};let _0x1ea62f={'point':_0x2cb8a7,'angle':_0x16abc8,'bounds':_0x30f3b0},_0x591b92=_0x49d4d3?_0x1ea62f:_0x21e6de,_0x6c5144=_0x49d4d3?_0x21e6de:_0x1ea62f,_0x5acd40=this[_0x4843df(0x2b6)]['getShapeType'](),_0x20303a=_0x4a61e5(_0x591b92,_0x6c5144,_0x5acd40);_0x20303a&&this[_0x4843df(0x2b6)][_0x4843df(0x2d4)](_0x20303a);let _0x21eeb2=_0x55da57(_0x20303a,_0x5acd40);_0x21eeb2[_0x4843df(0x215)]!==_0x5acd40&&this['_activeShapeModel']['changeShapeType'](_0x21eeb2[_0x4843df(0x215)]);for(let [_0x163604,_0x428f75]of Object[_0x4843df(0x105)](_0x21eeb2[_0x4843df(0x1e9)]))this[_0x4843df(0x2b6)][_0x4843df(0x207)](_0x163604,_0x428f75);this[_0x4843df(0x2b6)][_0x4843df(0x205)]({'width':_0x21eeb2['worldRect'][_0x4843df(0x1d1)],'height':_0x21eeb2['worldRect'][_0x4843df(0x1b0)]}),_0xcd7ddc[_0x4843df(0x11b)]({'flipX':_0x21eeb2[_0x4843df(0x263)][_0x4843df(0x137)],'flipY':_0x21eeb2[_0x4843df(0x263)]['flipY'],'left':_0x21eeb2[_0x4843df(0x263)][_0x4843df(0x325)],'top':_0x21eeb2[_0x4843df(0x263)][_0x4843df(0x222)],'width':_0x21eeb2['worldRect'][_0x4843df(0x1d1)],'height':_0x21eeb2[_0x4843df(0x263)][_0x4843df(0x1b0)],'angle':_0x21eeb2['rotation']}),_0xcd7ddc[_0x4843df(0x161)](!0x0);let _0xf5c883=((_0x5b2450=this['_currentConnectionTarget'])==null?void 0x0:_0x5b2450['worldPoint'])??_0x163d3c;_0x4c2db6[_0x4843df(0x11b)]({'left':_0xf5c883['x']-_0x19a828[_0x4843df(0x2f9)],'top':_0xf5c883['y']-_0x19a828[_0x4843df(0x2f9)]});}[_0x12df57(0x315)](_0x2a18f5,_0x3cf6d6,_0x4e8822,_0x178c64,_0x14edbd){const _0xdbf69d=_0x12df57;var _0x1ebc47,_0x1579f3;let _0x28a92c=((_0x1ebc47=this[_0xdbf69d(0x318)])==null?void 0x0:_0x1ebc47[_0xdbf69d(0x17c)])??_0x2a18f5,_0x5698dd=_0x2d0c36[_0xdbf69d(0x2fe)](_0x3cf6d6,_0x28a92c,_0x4e8822);_0x178c64[_0xdbf69d(0x11b)]({'flipX':_0x5698dd[_0xdbf69d(0x263)]['flipX'],'flipY':_0x5698dd[_0xdbf69d(0x263)]['flipY'],'left':_0x5698dd[_0xdbf69d(0x263)][_0xdbf69d(0x325)],'top':_0x5698dd[_0xdbf69d(0x263)][_0xdbf69d(0x222)],'width':_0x5698dd[_0xdbf69d(0x263)]['width'],'height':_0x5698dd[_0xdbf69d(0x263)][_0xdbf69d(0x1b0)],'angle':_0x5698dd[_0xdbf69d(0x263)][_0xdbf69d(0x354)]});let _0x4e7e4d=((_0x1579f3=this['_currentConnectionTarget'])==null?void 0x0:_0x1579f3[_0xdbf69d(0x17c)])??_0x2a18f5;_0x14edbd[_0xdbf69d(0x11b)]({'left':_0x4e7e4d['x']-_0x19a828['cxnPointRadius'],'top':_0x4e7e4d['y']-_0x19a828['cxnPointRadius']});}[_0x12df57(0x157)](_0x21867d){const _0x52f1f5=_0x12df57;if(!this[_0x52f1f5(0xec)]||!this['_subUnitId'])return null;let {shapeId:_0x4f389f,cxnIndex:_0x514d37}=_0x21867d,_0x1aff48=this[_0x52f1f5(0x261)][_0x52f1f5(0x337)](this[_0x52f1f5(0xec)],this['_subUnitId'],_0x4f389f);if(!_0x1aff48)return null;let _0xcd7223=this['_drawingManagerService'][_0x52f1f5(0x27d)]({'unitId':this[_0x52f1f5(0xec)],'subUnitId':this[_0x52f1f5(0x2cb)],'drawingId':_0x4f389f});if(!(_0xcd7223!=null&&_0xcd7223[_0x52f1f5(0x114)]))return null;let {left:_0x31df95=0x0,top:_0x2fb8f9=0x0,width:_0x45aca6=0x0,height:_0x1db804=0x0,flipX:_0x12b469=!0x1,flipY:_0x120e7a=!0x1,angle:_0x4199e7}=_0xcd7223[_0x52f1f5(0x114)];_0x1aff48[_0x52f1f5(0x205)]({'width':_0x45aca6,'height':_0x1db804});let _0x5dbf2c=_0x1aff48[_0x52f1f5(0x2c1)]()[_0x52f1f5(0x1c4)](_0x210f2e=>_0x210f2e[_0x52f1f5(0x18f)]===_0x514d37);if(!_0x5dbf2c)return null;let _0x311c6c=_0x12b469?_0x45aca6-_0x5dbf2c['x']:_0x5dbf2c['x'],_0xe04a44=_0x120e7a?_0x1db804-_0x5dbf2c['y']:_0x5dbf2c['y'];if(_0x4199e7!==0x0&&_0x4199e7!=null){let _0x4509ad=_0x4199e7*Math['PI']/0xb4,_0x5831d3=Math[_0x52f1f5(0x27a)](_0x4509ad),_0x484bad=Math[_0x52f1f5(0x1d3)](_0x4509ad),_0x33bdd6=_0x45aca6/0x2,_0x27d006=_0x1db804/0x2,_0x318df1=_0x311c6c-_0x33bdd6,_0x393ebd=_0xe04a44-_0x27d006;_0x311c6c=_0x33bdd6+_0x318df1*_0x5831d3-_0x393ebd*_0x484bad,_0xe04a44=_0x27d006+_0x318df1*_0x484bad+_0x393ebd*_0x5831d3;}_0x311c6c+=_0x31df95,_0xe04a44+=_0x2fb8f9;let _0xfe0bd4=_0x5dbf2c[_0x52f1f5(0x127)]/0xea60;_0x12b469&&(_0xfe0bd4=0xb4-_0xfe0bd4),_0x120e7a&&(_0xfe0bd4=-_0xfe0bd4),_0xfe0bd4+=_0x4199e7||0x0,_0xfe0bd4=(_0xfe0bd4%0x168+0x168)%0x168;let _0x5c22e3=_0x1d381c({'left':_0x31df95,'top':_0x2fb8f9,'width':_0x45aca6,'height':_0x1db804},_0x4199e7||0x0);return{'point':{'x':_0x311c6c,'y':_0xe04a44},'angle':_0xfe0bd4,'bounds':_0x5c22e3};}['_calculateFreeEndpointAngle'](_0x250ba5,_0x466b32){const _0x493e00=_0x12df57;let _0x4655e1=_0x466b32['x']-_0x250ba5['x'],_0x416bc7=_0x466b32['y']-_0x250ba5['y'];return Math[_0x493e00(0x369)](_0x4655e1)>=Math[_0x493e00(0x369)](_0x416bc7)?_0x4655e1>=0x0?0xb4:0x0:_0x416bc7>=0x0?0x10e:0x5a;}[_0x12df57(0x265)](){const _0x33b4cc=_0x12df57;this[_0x33b4cc(0x358)]=void 0x0,this[_0x33b4cc(0xec)]=void 0x0,this[_0x33b4cc(0x2cb)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();}[_0x12df57(0x2ed)](){const _0x47fc42=_0x12df57;this[_0x47fc42(0x380)](),super[_0x47fc42(0x2ed)]();}};sa=Y([J(0x1,_0x12955f),J(0x2,_0x490ecc),J(0x3,_0x5b31b6),J(0x4,_0xb60de6),J(0x5,_0x441dea(_0x2da406)),J(0x6,_0x441dea(Z)),J(0x7,_0x441dea(ia))],sa);let ca=class extends _0x112f8d{constructor(_0x5dc539,_0x5950f9,_0x38f04f){const _0xcee816=_0x12df57;super(),this[_0xcee816(0x1c0)]=_0x5dc539,this[_0xcee816(0x12f)]=_0x5950f9,this[_0xcee816(0x273)]=_0x38f04f,this[_0xcee816(0x385)]();}[_0x12df57(0x385)](){const _0x1062e6=_0x12df57;this[_0x1062e6(0x200)](this[_0x1062e6(0x1c0)][_0x1062e6(0x22b)][_0x1062e6(0x2b3)](this[_0x1062e6(0x1c0)]['interceptor'][_0x1062e6(0x1ef)]()[_0x1062e6(0x138)],{'handler':(_0x3ec672,_0x17e5b6,_0x3271fc)=>{const _0x2e9e0c=_0x1062e6;var _0x17b4a9;let {unitId:_0xe3ba74,subUnitId:_0x1dbf2e,scene:_0x364dad,resourceCollector:_0x53de50}=_0x17e5b6,_0x516973=(_0x17b4a9=this[_0x2e9e0c(0x12f)][_0x2e9e0c(0x310)](_0xe3ba74))==null?void 0x0:_0x17b4a9[_0x1dbf2e];return _0x516973==null||_0x516973[_0x2e9e0c(0x317)][_0x2e9e0c(0x28d)](_0x5192cc=>{const _0x448084=_0x2e9e0c;let _0x185bff=_0x516973[_0x448084(0x268)][_0x5192cc];_0x185bff['drawingType']===_0x51ad3e[_0x448084(0x305)]&&!_0x185bff['hidden']&&this[_0x448084(0x273)][_0x448084(0xd7)](_0x185bff,_0x364dad,{'resourceCollector':_0x53de50});}),_0x3271fc(_0x3ec672);}}));}};ca=Y([J(0x0,_0x441dea(_0x5b49cd)),J(0x1,_0x5b31b6),J(0x2,_0x441dea(X))],ca);let la=class extends _0x112f8d{constructor(_0x3d7d57,_0x3aa5be,_0x53d004){const _0x37582d=_0x12df57;super(),this[_0x37582d(0x346)]=_0x3d7d57,this[_0x37582d(0x1ac)]=_0x3aa5be,this[_0x37582d(0x1d6)]=_0x53d004,this[_0x37582d(0x264)]();}[_0x12df57(0x264)](){const _0x59aec5=_0x12df57;this[_0x59aec5(0x200)](this[_0x59aec5(0x346)][_0x59aec5(0x1b9)](_0x328cd8=>{const _0x598b9d=_0x59aec5;let _0x80f543,_0x1121b3;if(_0x328cd8['id']===_0x35ee56['id']||_0x328cd8['id']===_0x32b6e2['id']||_0x328cd8['id']===_0x3da7c1['id']){let _0x2c06e4=_0x328cd8[_0x598b9d(0x240)];_0x80f543=_0x2c06e4[_0x598b9d(0x21e)],_0x1121b3=_0x2c06e4[_0x598b9d(0x179)];}_0x80f543&&_0x1121b3&&(this[_0x598b9d(0x1d6)][_0x598b9d(0x2cc)]({'workbookTypes':[_0x43774a],'worksheetTypes':[_0x1cb5f9]},_0x80f543,_0x1121b3)||this[_0x598b9d(0x1d6)][_0x598b9d(0x316)](this['_localeService']['t']('sheets-shape-ui.permission.editErr')));}));}};la=Y([J(0x0,_0x441dea(_0x12955f)),J(0x1,_0x441dea(_0xbd5d6b)),J(0x2,_0x441dea(_0xc50cd5))],la);let ua=class{constructor(_0x9592d){const _0x1a97d2=_0x12df57;this[_0x1a97d2(0x110)]=_0x9592d;}[_0x12df57(0xf7)](_0x1b4930,_0x488d3a){const _0x5a69de=_0x12df57;let _0x1e917e=this[_0x5a69de(0x110)][_0x5a69de(0x269)](_0x1b4930[_0x5a69de(0x21e)]),_0x23200b=_0x1e917e==null?void 0x0:_0x1e917e[_0x5a69de(0x2d7)];if(!_0x23200b)return;let _0x15711b=_0x5b432f(_0x1b4930),_0x3a1e44=_0x23200b[_0x5a69de(0x130)](_0x15711b);_0x3a1e44==null||_0x3a1e44[_0x5a69de(0x27f)](_0x488d3a);}};ua=Y([J(0x0,_0x490ecc)],ua);let da=class extends _0x4a2be0{constructor(_0x43ad09=Hi,_0x292df2,_0x3f5e64,_0x2269b1,_0x361b79){const _0x2e376c=_0x12df57;super(),this[_0x2e376c(0x14a)]=_0x43ad09,this[_0x2e376c(0x203)]=_0x292df2,this[_0x2e376c(0x346)]=_0x3f5e64,this[_0x2e376c(0x271)]=_0x2269b1,this[_0x2e376c(0x110)]=_0x361b79;let {..._0x5183dd}=_0xcb4f97({},Hi,this['_config']);this[_0x2e376c(0x271)][_0x2e376c(0x14f)](Vi,_0x5183dd),this[_0x2e376c(0x33e)]();}[_0x12df57(0x16d)](){const _0x340324=_0x12df57;this[_0x340324(0x203)][_0x340324(0x362)]([Ji]),this[_0x340324(0x203)][_0x340324(0x1bd)](Ji),_0x104c70(this[_0x340324(0x203)],[[Qi],[ta],[X],[ca],[ua],[$],[ea],[Q],[la]]);}[_0x12df57(0x2e7)](){const _0x1e76d1=_0x12df57;_0x104c70(this[_0x1e76d1(0x203)],[[ia],[Z],[aa]]),_0x249fb4(this[_0x1e76d1(0x203)],[[aa],[Z]]),[[ia],[Ui],[sa],[Xi]][_0x1e76d1(0x28d)](_0x1267bf=>{const _0x5ad09c=_0x1e76d1;this[_0x5ad09c(0x200)](this[_0x5ad09c(0x110)][_0x5ad09c(0x25f)](_0x43974e['UNIVER_SHEET'],_0x1267bf));});}['onRendered'](){const _0x1354d4=_0x12df57;_0x249fb4(this[_0x1354d4(0x203)],[[Qi],[ta],[X],[ca],[ua],[$],[ea],[Q],[la]]);}[_0x12df57(0x296)](){const _0x1c91f8=_0x12df57;this[_0x1c91f8(0x203)][_0x1c91f8(0x1bd)](Qi)['initShapePopupMenu']();}[_0x12df57(0x33e)](){const _0x324f88=_0x12df57;[kr,K,Or,Bi]['forEach'](_0x4fda54=>this[_0x324f88(0x200)](this[_0x324f88(0x346)][_0x324f88(0x11c)](_0x4fda54)));}};q(da,'type',_0x43974e[_0x12df57(0x29c)]),q(da,_0x12df57(0x33f),'SHEET_SHAPE_UI_PLUGIN'),q(da,'packageName',Ri),q(da,'version',zi),da=Y([_0x3c710a(_0x53c7db,_0x5b37c7,_0x48be47,_0x22e3f0,_0x48d190,_0x4e2795,_0x465f33,_0x15dd10,_0x1b32b4,_0x1ac26b,_0x1c7b73,_0x208d62,_0x39d7b4),J(0x1,_0x441dea(_0x355203)),J(0x2,_0x12955f),J(0x3,_0x42a738),J(0x4,_0x490ecc)],da);const fa={'type':_0x3cebb2[_0x12df57(0x224)],'id':_0x12df57(0x378),'handler'(){return!0x0;}};function pa(){const _0x203d16=_0x12df57;let _0xd44bbe=_0x89c257(_0x5b31b6),_0xb7375b=_0x296781(()=>_0xd44bbe[_0x203d16(0x20f)],_0xd44bbe[_0x203d16(0x31b)](),!0x1,[_0xd44bbe]);return _0xb7375b[_0x203d16(0x1d0)]===0x0?null:_0x208197(_0x203d16(0x24f),{'children':_0x18cefc(_0x203d16(0x24f),{'className':_0x203d16(0x252),'children':[_0x208197(_0x5bdac5,{'drawings':_0xb7375b,'hasCropper':!0x1}),_0x208197(_0x20c76d,{'drawings':_0xb7375b})]})});}function ma(_0x3fc726){let {unitId:_0x70d5b5,subUnitId:_0x21dc7c,shapeId:_0x1f1033}=_0x3fc726,_0x26aee3=_0x89c257(_0x12955f),_0x2b02c4=_0x89c257(ua);return _0x208197(_0x51f6a3,{..._0x3fc726,'positionEditor':_0x208197(pa,{}),'onUpdateShapeData':(_0x15bc16,_0x257e3e)=>{br(_0x26aee3,_0x70d5b5,_0x21dc7c,_0x1f1033,_0x15bc16,_0x257e3e);},'onUpdateLineShapeData':(_0x472108,_0x256931)=>{xr(_0x26aee3,_0x70d5b5,_0x21dc7c,_0x1f1033,_0x472108,_0x256931);},'onUpdateShapeFillImage':_0x4e2d44=>{_0x2b02c4['updateShapeFillImage']({'unitId':_0x70d5b5,'subUnitId':_0x21dc7c,'drawingId':_0x1f1033},_0x4e2d44);}});}function ha(_0x551303){const _0x2ba1b6=_0x12df57;let _0x31f56b=_0x89c257(_0x580a08),_0x4dfd6b=_0x296781(()=>_0x31f56b['visible$'],_0x31f56b['getVisible'](),!0x1,[_0x31f56b]),_0x55ae2a=_0x551303[_0x2ba1b6(0x15b)]['extraProps'];return!_0x55ae2a||!_0x4dfd6b?null:_0x208197(ga,{..._0x55ae2a,'canvasElement':_0x551303['popup']['canvasElement']});}function ga(_0x210dcc){const _0x1a51a1=_0x12df57;let _0x125800=_0x89c257(_0x12955f),_0x219e66=_0x89c257(_0x2da406),{unitId:_0x43ce9b,subUnitId:_0x1b2802,drawingId:_0x2ca565,drawingType:_0x393dd8,shapeType:_0x5c93b6}=_0x210dcc,[_0x348d17,_0x17dc0e]=_0x9ee093(_0x210dcc[_0x1a51a1(0x2af)]),_0x2f2893=_0x270060(()=>_0x5e111f(_0x348d17),[_0x348d17]),_0xf32632=_0x270060(()=>_0x2c7d29(_0x348d17),[_0x348d17]);_0xc2358(()=>{const _0x4471e5=_0x1a51a1;let _0x50522d=_0x125800[_0x4471e5(0x2d9)](_0x2101b5=>{const _0x259f06=_0x4471e5;if(_0x2101b5['id']!==_0x11226d['id'])return;let _0x3feb51=_0x219e66[_0x259f06(0x2b0)](_0x43ce9b,_0x1b2802,_0x2ca565);_0x3feb51&&_0x17dc0e(_0x3feb51);});return()=>_0x50522d[_0x4471e5(0x2ed)]();},[_0x125800,_0x2ca565,_0x219e66,_0x1b2802,_0x43ce9b]);let _0x378f50=_0x1cef71=>{_0x17dc0e(_0x26984b=>({..._0x26984b,..._0x1cef71}));},_0x599a63=_0x17dd9f=>{let _0x492ece=_0x2f4663(_0x348d17,_0x17dd9f);br(_0x125800,_0x43ce9b,_0x1b2802,_0x2ca565,{'oldShapeData':{'shapeText':_0x348d17['shapeText']}},_0x492ece),_0x378f50(_0x492ece);},_0x5db69a=_0x3964a4({'hostType':_0x43974e['UNIVER_SHEET'],'unitId':_0x43ce9b,'subUnitId':_0x1b2802,'shapeId':_0x2ca565,'shapeData':_0x348d17,'onUpdateBinding':_0xd66b17=>{const _0xbaf7f2=_0x1a51a1;let _0x4a899f={'formulaBinding':_0xd66b17};br(_0x125800,_0x43ce9b,_0x1b2802,_0x2ca565,{'oldShapeData':{'formulaBinding':_0x348d17[_0xbaf7f2(0x35a)]}},_0x4a899f),_0x378f50(_0x4a899f);}});return _0x18cefc(_0x272af9,{'children':[_0x208197(_0x42657f,{'canvasElement':_0x210dcc[_0x1a51a1(0x225)],'shapeData':_0x348d17,'shapeType':_0x5c93b6,'textStyle':{'ff':_0x19a828[_0x1a51a1(0x142)][_0x1a51a1(0x2bc)],'fs':_0x19a828[_0x1a51a1(0x142)]['fontSize'],'cl':{'rgb':_0x19a828[_0x1a51a1(0x142)][_0x1a51a1(0xe9)]},..._0x2f2893},'textModel':_0xf32632?{'ha':_0xf32632['ha']??_0x1358ac[_0x1a51a1(0xe2)],'va':_0xf32632['va']??_0x52f567[_0x1a51a1(0x1fa)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x19a828['fill'],'defaultGradientEndColor':_0x19a828[_0x1a51a1(0x24b)],'defaultStrokeColor':_0x19a828[_0x1a51a1(0x260)],'extensionGroups':_0x5db69a[_0x1a51a1(0x332)],'floatingObjectToolbarPosition':_0x4b4838[_0x1a51a1(0xff)],'onUpdateShapeData':(_0x571eea,_0x4a8809)=>{br(_0x125800,_0x43ce9b,_0x1b2802,_0x2ca565,_0x571eea,_0x4a8809),_0x4a8809&&_0x378f50(_0x4a8809);},'onUpdateText':_0x599a63,'onOpenPanel':()=>{const _0x1ae6a2=_0x1a51a1;_0x125800[_0x1ae6a2(0xf9)](Lr['id'],{'unitId':_0x43ce9b,'subUnitId':_0x1b2802,'drawingId':_0x2ca565});},'onDelete':()=>{_0x125800['executeCommand'](_0x2097d6['id'],{'unitId':_0x43ce9b,'drawings':[{'unitId':_0x43ce9b,'subUnitId':_0x1b2802,'drawingId':_0x2ca565,'drawingType':_0x393dd8}]});}}),_0x5db69a[_0x1a51a1(0x24a)]]});}function _a(_0x412a79){const _0x22b272=_0x12df57;return!!_0x412a79&&_0x22b272(0x1d5)in _0x412a79&&_0x22b272(0x13b)in _0x412a79;}const va=_0x30dacd(()=>{const _0x52aa78=_0x12df57;let _0xc94099=_0x89c257($),_0x28790d=_0x89c257(_0x2da406),_0x1bebd6=_0x89c257(_0x5b31b6),_0x24a86b=_0x89c257(_0x12955f),_0x1f4ff2=_0x89c257(_0x293936),_0xd2e746=_0x89c257(_0x490ecc),_0x6ac48b=_0x270060(()=>({'getShapeModel':(_0x281450,_0x25c42d,_0x4bd112)=>_0x28790d['getShapeModel'](_0x281450,_0x25c42d,_0x4bd112),'getShapeData':(_0x338085,_0x524a85,_0x5869e4)=>_0x28790d[_0x52aa78(0x2b0)](_0x338085,_0x524a85,_0x5869e4),'getDrawingTransform':(_0x683e5b,_0x403fea,_0x3ceae5)=>{const _0x51f1c3=_0x52aa78;let _0x43c7ca=_0x1bebd6['getDrawingByParam']({'unitId':_0x683e5b,'subUnitId':_0x403fea,'drawingId':_0x3ceae5});return _0x43c7ca==null?void 0x0:_0x43c7ca[_0x51f1c3(0x114)];},'updateShapeText':({unitId:_0x1017a2,subUnitId:_0x32ffe2,shapeId:_0x2e5966,shapeText:_0x4bfad8,oldShapeText:_0x1dbef0,hostSize:_0x1616d7})=>{_0x1f4ff2['run'](_0x1017a2,()=>{const _0x585027=_0x4f90;var _0x1e682d;let _0x51d763=_0x24a86b[_0x585027(0x231)](K['id'],{'unitId':_0x1017a2,'subUnitId':_0x32ffe2,'shapeId':_0x2e5966,'shapeData':{'shapeText':_0x4bfad8},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x1dbef0}}});if(!_0x51d763||!_0x1616d7)return _0x51d763;let _0x3faeb8=_0x1bebd6[_0x585027(0x27d)]({'unitId':_0x1017a2,'subUnitId':_0x32ffe2,'drawingId':_0x2e5966}),_0xb292d9=_0x3faeb8==null?void 0x0:_0x3faeb8[_0x585027(0x114)];if(!_a(_0x3faeb8)||!_0xb292d9)return!0x1;let _0x47edfd={..._0xb292d9,'width':_0x1616d7[_0x585027(0x1d1)],'height':_0x1616d7[_0x585027(0x1b0)]},_0x5f2892=(_0x1e682d=_0xd2e746[_0x585027(0x269)](_0x1017a2))==null||(_0x1e682d=_0x1e682d[_0x585027(0x2f8)](_0x4e2ccb)[_0x585027(0x29f)](_0x32ffe2))==null?void 0x0:_0x1e682d[_0x585027(0x187)];return _0x24a86b[_0x585027(0x231)](_0x516914['id'],{'unitId':_0x1017a2,'drawings':[{..._0x3faeb8,'transform':_0x47edfd,'sheetTransform':_0x5f2892?_0x4e7acc(_0x47edfd,_0x5f2892)??_0x3faeb8[_0x585027(0x13b)]:_0x3faeb8[_0x585027(0x13b)],'axisAlignSheetTransform':_0x5f2892?_0x48b50e(_0x47edfd,_0x5f2892)??_0x3faeb8[_0x585027(0x1d5)]:_0x3faeb8[_0x585027(0x1d5)]}]});});},'updateHostSize':({unitId:_0x4d10b6,subUnitId:_0x1fb714,shapeId:_0x3e4b90,width:_0x538aff,height:_0xb49d0e})=>{const _0x54ecd5=_0x52aa78;var _0x4323ee;let _0x38fc39=_0x1bebd6['getDrawingByParam']({'unitId':_0x4d10b6,'subUnitId':_0x1fb714,'drawingId':_0x3e4b90}),_0x282a8a=_0x38fc39==null?void 0x0:_0x38fc39['transform'];if(!_a(_0x38fc39)||!_0x282a8a)return;let _0x398f5e={..._0x282a8a,'width':_0x538aff,'height':_0xb49d0e},_0x56d5f6=(_0x4323ee=_0xd2e746['getRenderUnitById'](_0x4d10b6))==null||(_0x4323ee=_0x4323ee[_0x54ecd5(0x2f8)](_0x4e2ccb)['getSkeletonParam'](_0x1fb714))==null?void 0x0:_0x4323ee['skeleton'],_0x369a9f=_0x56d5f6?_0x4e7acc(_0x398f5e,_0x56d5f6)??_0x38fc39[_0x54ecd5(0x13b)]:_0x38fc39[_0x54ecd5(0x13b)],_0x26236a=_0x56d5f6?_0x48b50e(_0x398f5e,_0x56d5f6)??_0x38fc39[_0x54ecd5(0x1d5)]:_0x38fc39[_0x54ecd5(0x1d5)];_0x24a86b[_0x54ecd5(0xf9)](_0x516914['id'],{'unitId':_0x4d10b6,'drawings':[{..._0x38fc39,'transform':_0x398f5e,'sheetTransform':_0x369a9f,'axisAlignSheetTransform':_0x26236a}]});},'allowHostSizeShrink':({unitId:_0x89d3d7,subUnitId:_0xfeeca7,shapeId:_0x439ffb})=>_0x39a3d4(_0x28790d[_0x52aa78(0x2b0)](_0x89d3d7,_0xfeeca7,_0x439ffb)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x24a86b,_0x1bebd6,_0xd2e746,_0x28790d,_0x1f4ff2]),_0x58f72f=_0x270060(()=>({'viewportKeys':{'main':_0x56e735['VIEW_MAIN'],'leftTop':_0x56e735[_0x52aa78(0x29b)],'top':_0x56e735['VIEW_MAIN_TOP'],'left':_0x56e735[_0x52aa78(0x364)]},'getSkeleton':(_0x505a39,_0x8f4141)=>{const _0x399b7e=_0x52aa78;var _0x214852;return((_0x214852=_0x505a39[_0x399b7e(0x2f8)](_0x4e2ccb)['getSkeletonParam'](_0x8f4141['subUnitId']))==null?void 0x0:_0x214852[_0x399b7e(0x187)])??null;}}),[]);return _0x208197(_0x2d79bb,{'adapter':_0x6ac48b,'editingService':_0xc94099,'editorUnitId':Pr,'positionOptions':_0x58f72f});});let ya=class extends _0x112f8d{constructor(_0x18be73,_0x4b4d54){const _0x315edf=_0x12df57;super(),this[_0x315edf(0x342)]=_0x18be73,this['_iconManager']=_0x4b4d54,this[_0x315edf(0x2cd)](),this['_registerComponents']();}[_0x12df57(0x2cd)](){const _0xa12713=_0x12df57;this[_0xa12713(0x1bb)][_0xa12713(0x1a3)](_0xa12713(0x327))||this[_0xa12713(0x200)](this[_0xa12713(0x1bb)][_0xa12713(0x333)]({'ObjectLayersIcon':_0x54f95f})),this['_iconManager'][_0xa12713(0x1a3)](_0xa12713(0x34c))||this[_0xa12713(0x200)](this[_0xa12713(0x1bb)][_0xa12713(0x333)]({'FlipHorizontalIcon':_0x1a5b21})),this['_iconManager'][_0xa12713(0x1a3)]('FlipVerticalIcon')||this[_0xa12713(0x200)](this[_0xa12713(0x1bb)][_0xa12713(0x333)]({'FlipVerticalIcon':_0x225c7e})),this[_0xa12713(0x1bb)][_0xa12713(0x1a3)]('BottomIcon')||this[_0xa12713(0x200)](this[_0xa12713(0x1bb)][_0xa12713(0x333)]({'BottomIcon':_0x1f02ea})),this[_0xa12713(0x1bb)][_0xa12713(0x1a3)](_0xa12713(0x2d0))||this['disposeWithMe'](this['_iconManager']['register']({'MoveDownIcon':_0x2dcbc5})),this[_0xa12713(0x1bb)]['has'](_0xa12713(0x148))||this[_0xa12713(0x200)](this['_iconManager'][_0xa12713(0x333)]({'MoveUpIcon':_0x422322})),this[_0xa12713(0x1bb)][_0xa12713(0x1a3)](_0xa12713(0x191))||this['disposeWithMe'](this[_0xa12713(0x1bb)][_0xa12713(0x333)]({'ShapeFormatSettingIcon':_0x1e754c})),this[_0xa12713(0x1bb)][_0xa12713(0x1a3)](_0xa12713(0x232))||this[_0xa12713(0x200)](this['_iconManager'][_0xa12713(0x333)]({'TopmostIcon':_0x12b47e}));}[_0x12df57(0x2f2)](){const _0x46273f=_0x12df57;this[_0x46273f(0x200)](this[_0x46273f(0x342)][_0x46273f(0x333)](Ar,ma)),this[_0x46273f(0x200)](this[_0x46273f(0x342)]['register'](jr,Ki)),this[_0x46273f(0x200)](this[_0x46273f(0x342)]['register'](Vr,qr)),this[_0x46273f(0x200)](this[_0x46273f(0x342)]['register'](Hr,Wr)),this[_0x46273f(0x342)][_0x46273f(0x1bd)](_0x220fd1)||this[_0x46273f(0x200)](this['_componentManager'][_0x46273f(0x333)](_0x220fd1,Kr)),this[_0x46273f(0x200)](this[_0x46273f(0x342)][_0x46273f(0x333)](Mr,ha)),this['disposeWithMe'](this[_0x46273f(0x342)][_0x46273f(0x333)](ii,ci)),this[_0x46273f(0x200)](this[_0x46273f(0x342)]['register'](ri,li)),this[_0x46273f(0x200)](this[_0x46273f(0x342)][_0x46273f(0x333)](ai,ui)),this['disposeWithMe'](this[_0x46273f(0x342)][_0x46273f(0x333)](oi,di)),this[_0x46273f(0x200)](this['_componentManager'][_0x46273f(0x333)](Fr,_0x51199a)),this[_0x46273f(0x200)](this[_0x46273f(0x342)][_0x46273f(0x333)](_0x46273f(0x134),va));}};ya=Y([J(0x0,_0x441dea(_0x38cfa2)),J(0x1,_0x441dea(_0x30514f))],ya);let ba=class extends _0x112f8d{constructor(_0x387950,_0x4826a2,_0x16ecc8,_0x408878,_0x592376,_0x13693a,_0x52d8e5,_0x397c10,_0x294c12){const _0x3cfea4=_0x12df57;super();let _0x24e63b=_0x502edc=>{const _0x15164d=_0x4f90;var _0x1921d1,_0x32997e;return(((_0x1921d1=_0x397c10[_0x15164d(0x1f9)](new _0x43774a(_0x502edc[_0x15164d(0x21e)])['id']))==null?void 0x0:_0x1921d1[_0x15164d(0x156)])??!0x0)&&(((_0x32997e=_0x397c10[_0x15164d(0x1f9)](new _0x1cb5f9(_0x502edc['unitId'],_0x502edc['subUnitId'])['id']))==null?void 0x0:_0x32997e['value'])??!0x0);},_0x547a35=_0x48d151=>_0x48d151[_0x3cfea4(0x2c6)]&&_0x24e63b(_0x48d151)?_0x16ecc8['getShapeDataById'](_0x48d151[_0x3cfea4(0x21e)],_0x48d151[_0x3cfea4(0x179)],_0x48d151[_0x3cfea4(0x2c6)])??null:null,_0xd30cbf=()=>{const _0x30229b=_0x3cfea4;let _0x3aa1b6=_0x592376[_0x30229b(0x31b)](),_0x21740b=_0x3aa1b6[_0x30229b(0x1d0)]===0x1?_0x3aa1b6[0x0]:null;return(_0x21740b==null?void 0x0:_0x21740b['drawingType'])===_0x51ad3e['DRAWING_SHAPE']&&_0x21740b[_0x30229b(0x21e)]===_0x387950['unitId']?{'unitId':_0x21740b[_0x30229b(0x21e)],'subUnitId':_0x21740b['subUnitId'],'shapeId':_0x21740b[_0x30229b(0x248)]}:null;};this[_0x3cfea4(0x200)](_0x8cd80f(_0x387950,_0x4826a2,{'changes$':_0x1a94d8(_0x592376['focus$'],_0x408878[_0x3cfea4(0xd4)],_0x397c10[_0x3cfea4(0x194)]),'isActive':()=>{const _0x26b135=_0x3cfea4;var _0x1a752b;return((_0x1a752b=_0x13693a[_0x26b135(0x118)]())==null?void 0x0:_0x1a752b[_0x26b135(0xfb)]())===_0x387950[_0x26b135(0x21e)]&&!_0x52d8e5[_0x26b135(0x304)](_0x18b266)&&_0x592376[_0x26b135(0x31b)]()['some'](_0x294e71=>_0x294e71['unitId']===_0x387950[_0x26b135(0x21e)]);},'getSelectedTarget':_0xd30cbf,'getSource':()=>{let _0x214a66=_0xd30cbf();return _0x214a66?_0x547a35(_0x214a66):null;},'getTarget':_0x5c4966=>{const _0x1881a6=_0x3cfea4;let _0x428872=_0x387950[_0x1881a6(0x2d7)]['pick'](new _0x2169f2(_0x5c4966[_0x1881a6(0x319)],_0x5c4966[_0x1881a6(0x283)]));if(!(_0x428872 instanceof Er))return null;let _0x2be33d={'unitId':_0x387950['unitId'],'subUnitId':_0x428872['subUnitId'],'shapeId':_0x428872[_0x1881a6(0x2c6)]};return _0x24e63b(_0x2be33d)?_0x2be33d:null;},'getShape':_0x547a35,'update':(_0xa43809,_0x4a7cd8,_0x27af0a)=>_0x294c12['executeCommand'](K['id'],{..._0xa43809,'shapeData':_0x27af0a,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x4a7cd8}})}));}};ba=Y([J(0x1,_0x441dea(_0xca783)),J(0x2,_0x441dea(_0x2da406)),J(0x3,_0x441dea($)),J(0x4,_0x5b31b6),J(0x5,_0xb60de6),J(0x6,_0x48e88d),J(0x7,_0x61a9f9),J(0x8,_0x12955f)],ba);const xa='sheets-shape-contextual-ribbon';let Sa=class extends _0x112f8d{constructor(_0x5a80b9,_0x30923a,_0x36d181,_0x3ab540,_0x13d460,_0x28aaeb){const _0xe261ee=_0x12df57;super(),this['_menuManagerService']=_0x5a80b9,this[_0xe261ee(0x230)]=_0x30923a,this['_drawingManagerService']=_0x36d181,this[_0xe261ee(0xe4)]=_0x3ab540,this[_0xe261ee(0x110)]=_0x13d460,this[_0xe261ee(0x360)]=_0x28aaeb,q(this,_0xe261ee(0x313),!0x1),this['_menuManagerService'][_0xe261ee(0x1ba)](Fi),this['disposeWithMe'](_0x1152a8(this[_0xe261ee(0x12f)][_0xe261ee(0x20f)][_0xe261ee(0xee)](()=>this[_0xe261ee(0x208)]()))),this['_update']();}[_0x12df57(0x2ed)](){const _0x2c334b=_0x12df57;this[_0x2c334b(0x360)][_0x2c334b(0x242)](!0x1,xa),this[_0x2c334b(0x1bc)](),super['dispose']();}[_0x12df57(0x208)](){const _0x554e98=_0x12df57;var _0x304258;let _0x56018a=this[_0x554e98(0x12f)][_0x554e98(0x31b)](),_0x260f13=_0x56018a[_0x554e98(0x1d0)]===0x1?_0x56018a[0x0]:void 0x0;if((_0x260f13==null?void 0x0:_0x260f13[_0x554e98(0x309)])!==_0x51ad3e[_0x554e98(0x305)]||this['_univerInstanceService'][_0x554e98(0x21a)](_0x260f13[_0x554e98(0x21e)])!==_0x43974e[_0x554e98(0x29c)]){this[_0x554e98(0x360)][_0x554e98(0x242)](!0x1,xa),this['_hide']();return;}let _0x155b88=(_0x304258=this[_0x554e98(0x110)][_0x554e98(0x269)](_0x260f13['unitId']))==null?void 0x0:_0x304258[_0x554e98(0x2eb)][_0x554e98(0x2a7)](),_0x3797e9=_0x234cbe(_0x155b88)===_0x554e98(0x322);if(this[_0x554e98(0x360)][_0x554e98(0x242)](_0x3797e9,xa),_0x3797e9){this[_0x554e98(0x1bc)]();return;}this[_0x554e98(0x313)]||(this[_0x554e98(0x313)]=!0x0,this[_0x554e98(0x230)][_0x554e98(0x1b4)](Nr,{'activate':!0x0}));}['_hide'](){const _0x18d881=_0x12df57;this[_0x18d881(0x313)]&&(this['_visible']=!0x1,this[_0x18d881(0x230)][_0x18d881(0x221)](Nr),this[_0x18d881(0x230)][_0x18d881(0xea)]([]));}};Sa=Y([J(0x0,_0x219d86),J(0x1,_0x47e600),J(0x2,_0x5b31b6),J(0x3,_0xb60de6),J(0x4,_0x490ecc),J(0x5,_0x441dea(_0x580a08))],Sa);let Ca=class extends _0x14ae9e{constructor(_0x4962db,_0x388666,_0x47cd4b,_0xe31531,_0x212696,_0x2557f2,_0x1c2806,_0x1213e6,_0x4217b4,_0x497484){super(_0x4962db,_0x388666,_0x47cd4b,_0xe31531,_0x212696,_0x2557f2,_0x1c2806,_0x1213e6,_0x4217b4,_0x497484,{'componentKey':Fr,'editorUnitId':Pr});}};Ca=Y([J(0x1,_0x441dea(_0x1ef51b)),J(0x2,_0x441dea(_0x3ad3ae)),J(0x3,_0x441dea(_0x4258f5)),J(0x4,_0x12955f),J(0x5,_0x441dea(_0xfbc368)),J(0x6,_0x441dea(_0x1d664e)),J(0x7,_0x441dea(_0x98e54f)),J(0x8,_0x441dea(_0x4c0fc8)),J(0x9,_0x441dea($))],Ca);let wa=class extends _0x112f8d{constructor(_0x3b72c3,_0x1450a2,_0x219099,_0xe73e01,_0x32075c,_0x1ee6e9,_0x5ab227,_0x5cfe2d,_0x539774,_0x572b1f,_0x1f1875){const _0x12159f=_0x12df57;super(),this[_0x12159f(0xe4)]=_0x3b72c3,this[_0x12159f(0x35c)]=_0x1450a2,this[_0x12159f(0x33a)]=_0x219099,this[_0x12159f(0x261)]=_0xe73e01,this['_localeService']=_0x32075c,this[_0x12159f(0x346)]=_0x1ee6e9,this[_0x12159f(0x12f)]=_0x5ab227,this[_0x12159f(0x1da)]=_0x5cfe2d,this[_0x12159f(0x1c2)]=_0x539774,this[_0x12159f(0x110)]=_0x572b1f,this[_0x12159f(0xf2)]=_0x1f1875,q(this,_0x12159f(0x2fc),null),q(this,_0x12159f(0x2b7),null),q(this,'_isOpenedShapeEditPanel',!0x1),q(this,_0x12159f(0x308),0x0),q(this,_0x12159f(0x374),null),q(this,'_disposePopups',[]),this[_0x12159f(0x169)](),this[_0x12159f(0x200)](this[_0x12159f(0xe4)][_0x12159f(0xd8)](_0x43974e['UNIVER_SHEET'])[_0x12159f(0xee)](_0x1de816=>{const _0x2f1f39=_0x12159f;if(!_0x1de816){var _0x321ce6;(_0x321ce6=this['_sidebarDisposable'])==null||_0x321ce6[_0x2f1f39(0x2ed)]();}})),this['_registerOperations'](),this['initShapePopupMenu'](),this[_0x12159f(0x200)](this[_0x12159f(0xf2)][_0x12159f(0xd4)][_0x12159f(0xee)](_0x58af05=>{const _0x2c9a42=_0x12159f;_0x58af05&&this[_0x2c9a42(0x234)]();}));}[_0x12df57(0x169)](){this['_menuManagerService']['mergeMenu'](Li);}[_0x12df57(0x32c)](){const _0x530416=_0x12df57;this[_0x530416(0x374)]||=this['disposeWithMe'](_0x12a454(this[_0x530416(0x110)],_0x43974e['UNIVER_SHEET'],_0x3bf023=>this['_popupMenuListener'](_0x3bf023)));}[_0x12df57(0x1f3)](_0x38eb28,_0x38bec0,_0x9f97cd){const _0x316e79=_0x12df57;let _0x8f950e=this['_sheetsShapeService'][_0x316e79(0x184)](_0x38eb28,_0x38bec0,_0x9f97cd),_0x1464d2=this[_0x316e79(0x261)][_0x316e79(0x2b0)](_0x38eb28,_0x38bec0,_0x9f97cd);return _0x8f950e!==void 0x0&&_0x1464d2!==void 0x0?{'shapeData':_0x1464d2,'shapeId':_0x9f97cd,'shapeType':_0x8f950e,'unitId':_0x38eb28,'subUnitId':_0x38bec0,'version':this[_0x316e79(0x308)],'disableShapeOption':!0x1}:null;}[_0x12df57(0x234)](){const _0x2a9703=_0x12df57;this[_0x2a9703(0x2a5)][_0x2a9703(0x28d)](_0x5e16ca=>_0x5e16ca['dispose']()),this[_0x2a9703(0x2a5)][_0x2a9703(0x1d0)]=0x0;}[_0x12df57(0x321)](_0x55e7a6){const _0x2e9edd=_0x12df57;let _0x2f99f8=new _0x55d7a7();return _0x2f99f8['add'](_0x55e7a6[_0x2e9edd(0x1fd)][_0x2e9edd(0xee)](()=>{const _0x5a8662=_0x2e9edd;let _0x1e90d4=_0x55e7a6[_0x5a8662(0x18e)]();if(this['_clearPopups'](),this[_0x5a8662(0x145)]||_0x1e90d4[_0x5a8662(0x165)]>0x1)return;let _0x3c6962=_0x1e90d4['values']()[_0x5a8662(0x35b)]()['value'];if(!_0x3c6962)return;let _0x22a6a9=this[_0x5a8662(0x12f)]['getDrawingOKey'](_0x3c6962[_0x5a8662(0x1a4)]);if(!_0x22a6a9||_0x22a6a9[_0x5a8662(0x309)]!==_0x51ad3e[_0x5a8662(0x305)])return;let {unitId:_0x1ab111,subUnitId:_0x37cd0e,drawingId:_0x4f3ff2,drawingType:_0x2333d6}=_0x22a6a9,_0x56afc3=this[_0x5a8662(0x1f3)](_0x1ab111,_0x37cd0e,_0x4f3ff2);if(!_0x56afc3)return;this[_0x5a8662(0x1c2)][_0x5a8662(0x1c5)](_0x1309fa,!0x0);let _0x681e58=this['_renderManagerService']['getRenderUnitById'](_0x1ab111),_0x5134d7=((_0x681e58==null?void 0x0:_0x681e58[_0x5a8662(0x1c6)])===!0x1?_0x681e58[_0x5a8662(0x2f8)](_0x1773e5):this['_sheetCanvasPopManagerService'])[_0x5a8662(0x217)](_0x3c6962,{'componentKey':Mr,'direction':_0x5a8662(0x14e),'offset':[0x0,_0x245003],'extraProps':{'unitId':_0x1ab111,'subUnitId':_0x37cd0e,'drawingId':_0x4f3ff2,'drawingType':_0x2333d6,'shapeType':_0x56afc3['shapeType'],'shapeData':_0x56afc3[_0x5a8662(0x2af)]}});this['_disposePopups'][_0x5a8662(0x31d)](this['disposeWithMe'](_0x5134d7)),this['_drawingManagerService'][_0x5a8662(0x31b)]()[_0x5a8662(0x1c4)](_0x588b08=>_0x588b08['unitId']===_0x1ab111&&_0x588b08['subUnitId']===_0x37cd0e&&_0x588b08[_0x5a8662(0x248)]===_0x4f3ff2)||this[_0x5a8662(0x12f)][_0x5a8662(0x26a)]([{'unitId':_0x1ab111,'subUnitId':_0x37cd0e,'drawingId':_0x4f3ff2}]);})),_0x2f99f8[_0x2e9edd(0x362)](_0x55e7a6[_0x2e9edd(0x209)][_0x2e9edd(0xee)](()=>{const _0x46af78=_0x2e9edd;this[_0x46af78(0x234)](),this[_0x46af78(0x1c2)][_0x46af78(0x1c5)](_0x1309fa,!0x1),this[_0x46af78(0x12f)]['focusDrawing'](null);})),_0x2f99f8[_0x2e9edd(0x362)](_0x55e7a6['changing$'][_0x2e9edd(0xee)](()=>{const _0x39e7ce=_0x2e9edd;this[_0x39e7ce(0x234)]();})),_0x2f99f8[_0x2e9edd(0x362)](_0x55e7a6['changeStart$'][_0x2e9edd(0xee)](()=>{const _0x54a347=_0x2e9edd;this[_0x54a347(0x234)]();})),_0x1152a8(()=>{const _0x2ad7d5=_0x2e9edd;_0x2f99f8[_0x2ad7d5(0x2ed)](),this[_0x2ad7d5(0x234)]();});}[_0x12df57(0x27b)](){const _0x114d8d=_0x12df57;this[_0x114d8d(0x200)](this[_0x114d8d(0x346)][_0x114d8d(0x2d9)](_0x4b1255=>{const _0x29847e=_0x114d8d;if(_0x4b1255['id']===Lr['id']){let {unitId:_0x3e05cb,subUnitId:_0x280046,drawingId:_0xad185c}=_0x4b1255[_0x29847e(0x240)];this['_shapeEditPanelVersion']+=0x1,this[_0x29847e(0x2b7)]=this[_0x29847e(0x1f3)](_0x3e05cb,_0x280046,_0xad185c),this[_0x29847e(0x234)](),this['_openShapeEditPanel']();}if(_0x4b1255['id']===fa['id']&&(this[_0x29847e(0x2b7)]=null,this[_0x29847e(0x1d4)]()),_0x4b1255['id']===_0x11226d['id']){let {unitId:_0x282a56,subUnitId:_0x1e5bc0,shapeId:_0x5503aa}=_0x4b1255[_0x29847e(0x240)];if(this[_0x29847e(0x2b7)]&&this['_activeShapeInfo']['shapeId']===_0x5503aa){let _0x2e56c2=this['_getShapeInfo'](_0x282a56,_0x1e5bc0,_0x5503aa);_0x2e56c2&&(this[_0x29847e(0x308)]+=0x1,_0x2e56c2[_0x29847e(0x33c)]=this[_0x29847e(0x308)],this[_0x29847e(0x2b7)]=_0x2e56c2,this[_0x29847e(0x145)]&&this[_0x29847e(0x20a)]());}}})),this[_0x114d8d(0x200)](this[_0x114d8d(0x12f)][_0x114d8d(0x20f)][_0x114d8d(0xee)](_0x3da1c3=>{const _0x11048b=_0x114d8d;if(this[_0x11048b(0x145)]===!0x1)return;if(_0x3da1c3[_0x11048b(0x1d0)]===0x0){this[_0x11048b(0x2b7)]=null,this[_0x11048b(0x1d4)]();return;}if(_0x3da1c3[_0x11048b(0x1d0)]===0x1&&_0x3da1c3[0x0][_0x11048b(0x309)]===_0x51ad3e[_0x11048b(0x305)]&&(this[_0x11048b(0x308)]+=0x1,this[_0x11048b(0x2b7)]=this[_0x11048b(0x1f3)](_0x3da1c3[0x0]['unitId'],_0x3da1c3[0x0][_0x11048b(0x179)],_0x3da1c3[0x0][_0x11048b(0x248)]),this[_0x11048b(0x2b7)])){this[_0x11048b(0x20a)]();return;}let _0xdf7e40=_0x3da1c3['filter'](_0x41cc0c=>_0x41cc0c[_0x11048b(0x309)]===_0x51ad3e[_0x11048b(0x305)]);if(_0x3da1c3[_0x11048b(0x1d0)]>0x1&&_0xdf7e40['length']===_0x3da1c3['length']){if(this[_0x11048b(0x308)]+=0x1,this[_0x11048b(0x2b7)]=this[_0x11048b(0x1f3)](_0x3da1c3[0x0]['unitId'],_0x3da1c3[0x0][_0x11048b(0x179)],_0x3da1c3[0x0][_0x11048b(0x248)]),this[_0x11048b(0x2b7)]){this['_openShapeEditPanel']();return;}}else{if(this[_0x11048b(0x308)]+=0x1,this[_0x11048b(0x2b7)]=this['_getShapeInfo'](_0x3da1c3[0x0][_0x11048b(0x21e)],_0x3da1c3[0x0][_0x11048b(0x179)],_0x3da1c3[0x0]['drawingId']),this[_0x11048b(0x2b7)]){this[_0x11048b(0x2b7)][_0x11048b(0x391)]=!0x0,this[_0x11048b(0x20a)]();return;}}this['_closeShapeEditPanel']();}));}['_openShapeEditPanel'](){const _0x1935f7=_0x12df57;this[_0x1935f7(0x2b7)]&&(this[_0x1935f7(0x2fc)]=this[_0x1935f7(0x35c)]['open']({'id':Ar,'header':{'title':this['_localeService']['t'](_0x1935f7(0x10f))},'width':0x184,'children':{'label':Ar,...this['_activeShapeInfo']},'onClose':()=>{const _0x181c3b=_0x1935f7;this[_0x181c3b(0x12f)][_0x181c3b(0x26a)](null),this[_0x181c3b(0x1c2)][_0x181c3b(0x1c5)](_0x1309fa,!0x1),this[_0x181c3b(0x2fc)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0x12df57(0x1d4)](){const _0xebbb5b=_0x12df57;this['_isOpenedShapeEditPanel']=!0x1,this[_0xebbb5b(0x35c)][_0xebbb5b(0x2c5)](Ar),this['_sidebarDisposable']=null,this[_0xebbb5b(0x1c2)]['setContextValue'](_0x1309fa,!0x1),this['_drawingManagerService'][_0xebbb5b(0x26a)](null);}};wa=Y([J(0x0,_0xb60de6),J(0x1,_0x441dea(_0x34a435)),J(0x2,_0x219d86),J(0x3,_0x441dea(_0x2da406)),J(0x4,_0x441dea(_0xbd5d6b)),J(0x5,_0x12955f),J(0x6,_0x5b31b6),J(0x7,_0x441dea(_0x1773e5)),J(0x8,_0x48e88d),J(0x9,_0x490ecc),J(0xa,_0x441dea($))],wa);let Ta=class extends _0x4a2be0{constructor(_0x6154f9=Hi,_0x44e939,_0x5eadd4,_0x53eb2c,_0xa801e1){const _0x19d76c=_0x12df57;super(),this['_config']=_0x6154f9,this['_injector']=_0x44e939,this[_0x19d76c(0x346)]=_0x5eadd4,this['_configService']=_0x53eb2c,this['_renderManagerService']=_0xa801e1;let {..._0x3b0a86}=_0xcb4f97({},Hi,this['_config']);this[_0x19d76c(0x271)]['setConfig'](Vi,_0x3b0a86),this['_initCommands']();}[_0x12df57(0xf0)](){const _0x598ec1=_0x12df57;this[_0x598ec1(0x110)][_0x598ec1(0x25f)](_0x43974e[_0x598ec1(0x2ea)],[Ca]),_0x249fb4(this['_injector'],[[wa],[ta],[X],[ca]]);}[_0x12df57(0x296)](){const _0x3c4014=_0x12df57;this[_0x3c4014(0x203)][_0x3c4014(0x1bd)](wa)[_0x3c4014(0x32c)]();}[_0x12df57(0x2e7)](){const _0x395900=_0x12df57;[[ia],[Z],[aa]][_0x395900(0x28d)](_0x3fa46f=>this[_0x395900(0x203)]['add'](_0x3fa46f)),_0x249fb4(this['_injector'],[[aa],[Z]]),this[_0x395900(0x110)][_0x395900(0x25f)](_0x43974e[_0x395900(0x29c)],[ia]),this[_0x395900(0x110)][_0x395900(0x25f)](_0x43974e[_0x395900(0x29c)],[Ui]),this['_renderManagerService'][_0x395900(0x25f)](_0x43974e['UNIVER_SHEET'],[sa]),this[_0x395900(0x110)]['registerRenderModule'](_0x43974e[_0x395900(0x29c)],[Yi]),this[_0x395900(0x200)](this[_0x395900(0x110)]['registerRenderModule'](_0x43974e[_0x395900(0x29c)],[ba]));}[_0x12df57(0x16d)](){const _0x263773=_0x12df57;this[_0x263773(0x203)][_0x263773(0x362)]([ya]),this[_0x263773(0x203)][_0x263773(0x1bd)](ya);let _0x3c5737=this[_0x263773(0x203)];[[wa],[ta],[X],[ca],[ua],[$],[ea],[Q],[la],[Sa]]['forEach'](_0x777c3f=>_0x3c5737[_0x263773(0x362)](_0x777c3f)),_0x249fb4(this[_0x263773(0x203)],[[wa],[ta],[X],[ua],[$],[ea],[Q],[la],[Sa]]);}[_0x12df57(0x33e)](){const _0x3f264f=_0x12df57;[kr,K,fa,Lr,Ir,Or,zr,Br][_0x3f264f(0x28d)](_0x1156f7=>this[_0x3f264f(0x200)](this['_commandService'][_0x3f264f(0x11c)](_0x1156f7)));}};q(Ta,_0x12df57(0x293),_0x43974e[_0x12df57(0x29c)]),q(Ta,'pluginName',_0x12df57(0x2d1)),q(Ta,_0x12df57(0x279),Ri),q(Ta,_0x12df57(0x33c),zi),Ta=Y([_0x3c710a(_0x53c7db,_0x5b37c7,_0x48be47,_0x312028,_0x22e3f0,_0x48d190,_0x4e2795,_0x465f33,_0x15dd10,_0x4ae66b,_0x1ac26b,_0x278b66,_0x10afb4),J(0x1,_0x441dea(_0x355203)),J(0x2,_0x12955f),J(0x3,_0x42a738),J(0x4,_0x490ecc)],Ta);export{Fi as SheetsShapeUIContextualRibbonSchema,Li as SheetsShapeUIMenuSchema,da as UniverSheetsShapeMobileUIPlugin,Ta as UniverSheetsShapeUIPlugin};
|