@univerjs-pro/sheets-shape-ui 1.0.3 → 1.1.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.
Files changed (98) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -1
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +1 -1
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +1 -1
  50. package/lib/locale/it-IT.js +1 -1
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +1 -1
  54. package/lib/locale/pt-BR.js +1 -1
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +1 -1
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/umd/index.js +1 -1
  62. package/lib/umd/locale/ar-SA.js +1 -1
  63. package/lib/umd/locale/ca-ES.js +1 -1
  64. package/lib/umd/locale/de-DE.js +1 -1
  65. package/lib/umd/locale/en-US.js +1 -1
  66. package/lib/umd/locale/es-ES.js +1 -1
  67. package/lib/umd/locale/fa-IR.js +1 -1
  68. package/lib/umd/locale/fr-FR.js +1 -1
  69. package/lib/umd/locale/id-ID.js +1 -1
  70. package/lib/umd/locale/it-IT.js +1 -1
  71. package/lib/umd/locale/ja-JP.js +1 -1
  72. package/lib/umd/locale/ko-KR.js +1 -1
  73. package/lib/umd/locale/pl-PL.js +1 -1
  74. package/lib/umd/locale/pt-BR.js +1 -1
  75. package/lib/umd/locale/ru-RU.js +1 -1
  76. package/lib/umd/locale/sk-SK.js +1 -1
  77. package/lib/umd/locale/vi-VN.js +1 -1
  78. package/lib/umd/locale/zh-CN.js +1 -1
  79. package/lib/umd/locale/zh-HK.js +1 -1
  80. package/lib/umd/locale/zh-TW.js +1 -1
  81. package/package.json +22 -22
  82. package/lib/types/commands/command/set-shape-text-align.command.d.ts +0 -5
  83. package/lib/types/commands/command/set-shape-text-style.command.d.ts +0 -7
  84. package/lib/types/commands/command/set-shape-text-vertical-align.command.d.ts +0 -5
  85. package/lib/types/commands/command/shape-doc-align.command.d.ts +0 -10
  86. package/lib/types/commands/menu/menu-dependencies.d.ts +0 -2
  87. package/lib/types/commands/menu/object-list.menu.d.ts +0 -4
  88. package/lib/types/commands/menu/shape-doc-format.menu.d.ts +0 -19
  89. package/lib/types/commands/menu/shape-font-size.menu.d.ts +0 -6
  90. package/lib/types/commands/menu/shape-text-align.menu.d.ts +0 -10
  91. package/lib/types/commands/menu/shape-vertical-align.menu.d.ts +0 -10
  92. package/lib/types/commands/operations/actvie-drawing-operation.d.ts +0 -2
  93. package/lib/types/view-model/shape-data-model.d.ts +0 -8
  94. package/lib/types/views/ShapeOptions.d.ts +0 -26
  95. package/lib/types/views/shape-editor-panel/ShapeLineEditor.d.ts +0 -12
  96. package/lib/types/views/shape-editor-panel/index.d.ts +0 -1
  97. package/lib/types/views/shape-text-editor/ShapeTextFloatToolbar.d.ts +0 -2
  98. package/lib/types/views/shapes.d.ts +0 -58
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x196d4a=_0x165f;(function(_0xecfdf6,_0x233a24){const _0x2918db=_0x165f,_0x2a4a20=_0xecfdf6();while(!![]){try{const _0x4172fa=parseInt(_0x2918db(0x1a4))/0x1+-parseInt(_0x2918db(0x270))/0x2*(parseInt(_0x2918db(0x34b))/0x3)+-parseInt(_0x2918db(0x1e4))/0x4*(parseInt(_0x2918db(0x1a8))/0x5)+-parseInt(_0x2918db(0x225))/0x6*(-parseInt(_0x2918db(0x244))/0x7)+-parseInt(_0x2918db(0x296))/0x8+-parseInt(_0x2918db(0x22e))/0x9*(-parseInt(_0x2918db(0x161))/0xa)+parseInt(_0x2918db(0xd2))/0xb;if(_0x4172fa===_0x233a24)break;else _0x2a4a20['push'](_0x2a4a20['shift']());}catch(_0x50c10e){_0x2a4a20['push'](_0x2a4a20['shift']());}}}(_0x376e,0x8fa22));import{FormulaShapeAnimationController as _0x2168d8,MobileShapeEditorService as _0x456574,SHAPE_CHANGE_PICKER_COMPONENT as _0x167ae2,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x3cfe88,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x1e40bd,ShapeEditPanel as _0x33339d,ShapeFloatingToolbar as _0x593a17,ShapeFloatingToolbarService as _0x3c5765,ShapeFloatingToolbarToggleFactory as _0xbc1b39,ShapeFormulaRibbonControl as _0x71cd10,ShapeGroupEnum as _0x1c44ee,ShapePickerDropdown as _0x1f8e20,ShapePickerPanel as _0x582181,ShapeQuickStyleGallery as _0x1f258e,ShapeStyleRibbonControl as _0x3da966,ShapeTextEditorContainer as _0x3d22ef,ShapeTextFloatMenuRenderControllerBase as _0x2a6fb9,ShapeTextFloatToolbar as _0x376b8a,ShapeTextHyperLinkHoverController as _0x581d74,ShapeTextHyperLinkInfo as _0x260c61,ShapeTextHyperLinkPopupService as _0x4a87e8,ShapeTextRibbonControl as _0x1d4f6a,ToggleShapeFloatingToolbarOperation as _0xb7e748,UniverShapeEditorMobileUIPlugin as _0x36ca49,UniverShapeEditorUIPlugin as _0x2d9bfc,activateDrawingObject as _0x526d99,bindRenderTransformerLifecycle as _0x37fb80,buildShapeTextDataUpdate as _0x5a6892,clearActiveDrawingObjects as _0x23bd6c,createShapeTextHyperLinkRegions as _0xd426f0,drawFormulaShapeAnimationLayers as _0x508912,getDrawingTypeNameKey as _0x1c437a,getTextModel as _0x41ef0e,getTextStyle as _0x543814,normalizeShapeTextModel as _0x26ff51,plainShapeTextToDocumentData as _0x701120,prepareShapeTextDocumentData as _0xda5bea,registerShapeFormatPainter as _0x1deb41,resolveFormulaShapeAutoFitSize as _0x3eabcd,resolveShapeContextualRibbonHostMode as _0x2d319f,resolveShapeTextDocumentPageHeight as _0x378f58,resolveShapeTextDocumentRenderLayout as _0x42cb9f,resolveShapeTextEditorBehaviorShapeData as _0x57e264,resolveShapeTextEditorWrapStrategy as _0x2d8965,resolveShapeTextHyperLinkAt as _0x1cd5fe,resolveShapeTextHyperLinkObject as _0x4807f9,shouldAllowShapeTextEditorHostSizeShrink as _0x2662f6,shouldClipShapeTextDocument as _0x1e5d0c,useFormulaShapeToolbar as _0x223293}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x1db2df,ContextMenuGroup as _0x2e5a9f,ContextMenuPosition as _0x3e837e,FloatingObjectToolbarPosition as _0x5d07c3,FormatPainterSessionService as _0x2a6051,IMenuManagerService as _0x866cac,IRibbonService as _0x2b125b,ISidebarService as _0x6f2b47,IconManager as _0x4f5c3f,MenuItemType as _0x1e3d30,MenuManagerPosition as _0x28d937,RibbonInsertGroup as _0x445b4b,UndoRedoGroupService as _0x41ccec,UniverMobileUIPlugin as _0x455a57,getMenuHiddenObservable as _0x2f5a15,useDependency as _0x508bbd,useObservable as _0x49d454}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x178dd8,ImageSourceTypeEnum as _0x5497a9,ShapeArrowSizeEnum as _0x2f917e,ShapeArrowTypeEnum as _0x3f977e,ShapeDefaultConfig as _0x1a4d77,ShapeFillEnum as _0xcb9b68,ShapeLineTypeEnum as _0x291db2,ShapeModel as _0x2d7016,ShapeRenderModeEnum as _0x306e25,ShapeTypeEnum as _0xc016ca,computeConnectorRouteLayout as _0x2c4018,getBasicShapeRotateBound as _0x5c6439,isConnectorShape as _0x22e615,isCurvedConnectorShape as _0x18c946,routeConnectorLineShape as _0x527e88}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x1a5fdd,UniverShapeEditorPlugin as _0x5aafc6,applyQuickStyleToShapeData as _0x5725f8,cloneShapeDataForType as _0x1bfbb7,createShapeFormulaDocument as _0x34e483,createShapeTextBoxShapeData as _0x474a1d,getShapeQuickStylePreset as _0x321892,getShapeQuickStyleType as _0x50f87c,resolveActiveShapeQuickStylePresetId as _0x311965}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x258890,InsertSheetsShapeMutation as _0x14a389,RemoveSheetsShapeMutation as _0x39b912,SetShapeDrawingDataCommand as _0x1b5825,SheetsShapeService as _0x13b053,ToggleSheetsShapeFlipCommand as _0x3e0bbc,UniverSheetsShapePlugin as _0x147e49,UpdateConnectorRelationCommand as _0x31e366,UpdateLineShapeResizeCommand as _0x402c2c,UpdateSheetsShapeDataMutation as _0x3ebd56}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x3190c7,CommandType as _0x36ba27,DependentOn as _0x392549,Disposable as _0x116f11,DisposableCollection as _0x5afd59,DocumentDataModel as _0x124ef9,DrawingTypeEnum as _0x123aa0,FOCUSING_COMMON_DRAWINGS as _0x2edc38,FOCUSING_SHAPE_TEXT_EDITOR as _0x578359,HorizontalAlign as _0x3a8480,ICommandService as _0x153d8f,IConfigService as _0x389518,IContextService as _0x9bf8bb,IImageIoService as _0x530352,IPermissionService as _0x51e1fb,IURLImageService as _0x1e7e45,IUndoRedoService as _0x2e44ea,IUniverInstanceService as _0x46c185,Inject as _0x14bfc1,Injector as _0x14ee4a,LocaleService as _0x407e83,Plugin as _0x1aacd5,UniverInstanceType as _0x204504,VerticalAlign as _0x1b272d,createInternalEditorID as _0x36e2be,generateRandomId as _0xc50b92,merge as _0x30830d,registerDependencies as _0x4a2ba7,toDisposable as _0x46ac89,touchDependencies as _0x1fd115}from'@univerjs/core';import{CopySheetCommand as _0x3a4496,RemoveSheetCommand as _0x2c4408,SheetInterceptorService as _0x2d67e2,SheetPermissionCheckController as _0x124f6a,SheetSkeletonService as _0x2c5708,SheetsSelectionsService as _0xf5394,UniverSheetsPlugin as _0x3474e2,WorkbookCopyPermission as _0xba4e61,WorkbookEditablePermission as _0x126772,WorksheetCopyPermission as _0x5cfb67,WorksheetEditPermission as _0x4b3b52,attachRangeWithCoord as _0x14fc19,discreteRangeToRange as _0xf91a3d,getSheetCommandTarget as _0x3e1b5c}from'@univerjs/sheets';import{IDrawingManagerService as _0x446eb2,SetDrawingSelectedOperation as _0x4ec468,UniverDrawingPlugin as _0x3f0c63,getDrawingShapeKeyByDrawingSearch as _0x934411,getOrCreateDrawingCopyPlan as _0x71372e}from'@univerjs/drawing';import{CURSOR_TYPE as _0x35998d,Circle as _0x37d975,DRAWING_OBJECT_LAYER_INDEX as _0x22b3ea,DocumentSkeleton as _0x33ff77,DocumentViewModel as _0x25c560,Documents as _0x2d00cc,IRenderManagerService as _0x4dadf2,Image as _0x47dbec,RENDER_CLASS_TYPE as _0x57820c,SHEET_VIEWPORT_KEY as _0x220776,Shape as _0x35d449,Transform as _0x29b58e,UniverRenderEnginePlugin as _0x2196c4,Vector2 as _0x2163b6}from'@univerjs/engine-render';import{COPY_TYPE as _0x35c24e,ISheetClipboardService as _0x4c557e,PREDEFINED_HOOK_NAME as _0x225c7f,SheetCanvasPopManagerService as _0x5aaa90,SheetPrintInterceptorService as _0x4ffadc,SheetScrollManagerService as _0x538622,SheetSkeletonManagerService as _0x7b1452,UniverSheetsMobileUIPlugin as _0x58390f,UniverSheetsUIPlugin as _0x5d29eb,deriveStateFromActiveSheet$ as _0x548ef1,getCurrentRangeDisable$ as _0x5fe679,getViewportByCell as _0x2e8aa3}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x494d52,EMPTY as _0x929a31,Observable as _0x4bb236,map as _0x4fdaa9,merge as _0x370b6b,of as _0x322e8d,startWith as _0x2cd3b2,switchMap as _0x111568}from'rxjs';import{DrawingCommonPanel as _0x12c81c,DrawingImageClipService as _0x264f1f,DrawingRenderService as _0x8b8e3,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x5c8b25,MobileObjectListPanel as _0x3af157,OBJECT_LIST_FLOATING_SECTION_ID as _0x481a1b,ObjectListPanelBase as _0x481011,UniverDrawingUIPlugin as _0x2c6b9e,getCurrentUnitInfo as _0x4f2817,getObjectListPanelSectionIdForDrawingType as _0x32c6c6,insertGroupObject as _0x197759}from'@univerjs/drawing-ui';import{MobileDropdown as _0x400434}from'@univerjs/design';import{Fragment as _0x1ba972,jsx as _0x39d578,jsxs as _0x13ab6}from'react/jsx-runtime';import{DrawingApplyType as _0x5e0f69,ISheetDrawingService as _0x5e26dc,RemoveSheetDrawingCommand as _0x3b039,SetDrawingApplyMutation as _0x164c96,SetDrawingArrangeCommand as _0x4b43eb,SetSheetDrawingCommand as _0x24e472,UniverSheetsDrawingPlugin as _0x44c72a,transformToAxisAlignPosition as _0x3a2b93,transformToDrawingPosition as _0x15205d}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x263fcc}from'@univerjs-pro/license';import{DocInterceptorService as _0x306ef4,DocSelectionManagerService as _0x307326,UniverDocsPlugin as _0x589f6d}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x372923,DocEventManagerService as _0x1248a7,DocRenderController as _0x300e24,DocSelectionRenderService as _0x338572,UniverDocsUIPlugin as _0x3eedd5}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x169b3e,SheetsDrawingGroupCopyPasteController as _0x1b88b8,UniverSheetsDrawingMobileUIPlugin as _0x1dd5e1,UniverSheetsDrawingUIPlugin as _0x20ed6b}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x498df7,FlipHorizontalIcon as _0x654af8,FlipVerticalIcon as _0x2d018e,MoveDownIcon as _0x158b87,MoveUpIcon as _0x1d98f5,ObjectLayersIcon as _0x4dbc57,ShapeFormatSettingIcon as _0x163347,TopmostIcon as _0x172d21}from'@univerjs/icons';import{memo as _0x4c612b,useEffect as _0x5902a2,useMemo as _0xe812e8,useReducer as _0xb0efb1,useState as _0x2d8807}from'react';function Er(_0x3a9fc5,_0x7a923d){const _0x563c90=_0x165f;let _0x136800={};for(let _0x4e367f of Object[_0x563c90(0x12c)](_0x7a923d)){let _0x1a506c=_0x7a923d[_0x4e367f],_0x20503a=_0x3a9fc5[_0x4e367f];if(_0x20503a===void 0x0){_0x136800[_0x4e367f]=void 0x0;continue;}_0x136800[_0x4e367f]=typeof _0x1a506c=='object'&&_0x1a506c&&!Array[_0x563c90(0x318)](_0x1a506c)&&typeof _0x20503a=='object'&&_0x20503a&&!Array[_0x563c90(0x318)](_0x20503a)?Er(_0x20503a,_0x1a506c):_0x20503a;}return _0x136800;}const K={'type':_0x36ba27['COMMAND'],'id':_0x196d4a(0x389),'handler':(_0x597911,_0x155f8b)=>{const _0x5d4bae=_0x196d4a;let _0x35ca82=_0x597911['get'](_0x13b053),{unitId:_0x3dcd04,subUnitId:_0x21dc77,shapeType:_0x503960,shapeId:_0x160f51,shapeData:_0x4906a4,replaceShapeData:_0x99e09b,oldShapeJSON:_0x48af13}=_0x155f8b;if(!_0x35ca82[_0x5d4bae(0xe6)](_0x3dcd04,_0x21dc77,_0x160f51))return!0x1;let _0x2e5fa6=_0x597911[_0x5d4bae(0x100)](_0x153d8f),_0x5adc63=_0x597911['get'](_0x2e44ea),{oldShapeType:_0x3d9b29,oldShapeData:_0x4d4a1d={}}=_0x48af13,_0x3f218e=_0x99e09b?_0x4d4a1d:Er(_0x4d4a1d,_0x4906a4||{}),_0x7f31a={'id':_0x3ebd56['id'],'params':{'unitId':_0x3dcd04,'subUnitId':_0x21dc77,'shapeId':_0x160f51,'shapeType':_0x503960,'shapeData':_0x4906a4,'replace':_0x99e09b}},_0x1b95c2={'id':_0x3ebd56['id'],'params':{'unitId':_0x3dcd04,'subUnitId':_0x21dc77,'shapeId':_0x160f51,'shapeType':_0x3d9b29,'shapeData':_0x3f218e,'replace':_0x99e09b}};return _0x2e5fa6['syncExecuteCommand'](_0x7f31a['id'],_0x7f31a[_0x5d4bae(0x1a9)])?(_0x5adc63[_0x5d4bae(0x319)]({'unitID':_0x3dcd04,'undoMutations':[_0x1b95c2],'redoMutations':[_0x7f31a]}),!0x0):!0x1;}};function Dr(_0x22bc28,_0x79c400,_0x12c600,_0x601944,_0x270560,_0x40f0e2){let _0x3e9c6d={'unitId':_0x79c400,'subUnitId':_0x12c600,'shapeId':_0x601944,'shapeData':_0x40f0e2,'oldShapeJSON':_0x270560};return _0x22bc28['executeCommand'](K['id'],_0x3e9c6d);}function Or(_0x5ca83d,_0x199340,_0x23c6c0,_0x562590,_0x36408b,_0xdeb612){let _0x61b63c={'unitId':_0x199340,'subUnitId':_0x23c6c0,'shapeId':_0x562590,'shapeData':_0xdeb612,'oldShapeJSON':_0x36408b};return _0x5ca83d['executeCommand'](K['id'],_0x61b63c);}function kr(_0x466869){'@babel/helpers - typeof';const _0x102716=_0x196d4a;return kr=typeof Symbol==_0x102716(0x1d1)&&typeof Symbol[_0x102716(0x338)]==_0x102716(0x1ce)?function(_0x472c24){return typeof _0x472c24;}:function(_0x33db06){const _0x4e8947=_0x102716;return _0x33db06&&typeof Symbol==_0x4e8947(0x1d1)&&_0x33db06[_0x4e8947(0x1f6)]===Symbol&&_0x33db06!==Symbol[_0x4e8947(0x23b)]?'symbol':typeof _0x33db06;},kr(_0x466869);}function Ar(_0x28774b,_0x229917){const _0x10aafb=_0x196d4a;if(kr(_0x28774b)!=_0x10aafb(0x1dd)||!_0x28774b)return _0x28774b;var _0x2fc052=_0x28774b[Symbol[_0x10aafb(0x29b)]];if(_0x2fc052!==void 0x0){var _0x5d8e58=_0x2fc052[_0x10aafb(0x370)](_0x28774b,_0x229917||'default');if(kr(_0x5d8e58)!=_0x10aafb(0x1dd))return _0x5d8e58;throw TypeError(_0x10aafb(0x28d));}return(_0x229917==='string'?String:Number)(_0x28774b);}function jr(_0x2f6fa8){const _0x44cebe=_0x196d4a;var _0x14283b=Ar(_0x2f6fa8,'string');return kr(_0x14283b)==_0x44cebe(0x1ce)?_0x14283b:_0x14283b+'';}function q(_0x545c5a,_0x3fae1e,_0x26ff97){const _0x16d628=_0x196d4a;return(_0x3fae1e=jr(_0x3fae1e))in _0x545c5a?Object[_0x16d628(0x15c)](_0x545c5a,_0x3fae1e,{'value':_0x26ff97,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x545c5a[_0x3fae1e]=_0x26ff97,_0x545c5a;}function Mr(_0xb474a3,_0x35a9e0,_0x14e513){const _0x3ed018=_0x196d4a;let _0x2d42d2={..._0x35a9e0,'dataModel':{..._0x35a9e0[_0x3ed018(0xce)]??{},..._0x14e513?{'doc':_0x14e513}:null}},_0x1a1d74=_0x57e264(_0xb474a3,_0x2d42d2),_0x2a0f87=_0x2d8965(_0x1a1d74);return{'clip':_0x1e5d0c(_0x1a1d74,_0x2a0f87),'wrapStrategy':_0x2a0f87};}var J=class extends _0x35d449{constructor(_0x105451,_0x29128d){const _0x53e79d=_0x196d4a;super(_0x105451,_0x29128d),q(this,_0x53e79d(0x13e),[]),q(this,'_props',void 0x0),q(this,_0x53e79d(0x1f5),new _0x2168d8(()=>this[_0x53e79d(0xe5)](!0x0),()=>this[_0x53e79d(0x1a5)]())),q(this,_0x53e79d(0x360),!0x0),q(this,_0x53e79d(0x2e5),_0x123aa0['DRAWING_SHAPE']),q(this,_0x53e79d(0x27e),!0x0),this[_0x53e79d(0x22b)]={..._0x29128d},this[_0x53e79d(0x1f5)][_0x53e79d(0x320)](_0x29128d[_0x53e79d(0x332)],_0x29128d[_0x53e79d(0x36e)]!==!0x1),this['_init'](),this[_0x53e79d(0x1a5)]();}[_0x196d4a(0x293)](){const _0x1fd58b=_0x196d4a;this['onTransformChange$'][_0x1fd58b(0xcf)](_0x5bfa42=>{this['_updateSrcRectByTransform'](_0x5bfa42);});}[_0x196d4a(0x2d9)](_0x3eaec4){const _0x1685c2=_0x196d4a;this[_0x1685c2(0x22b)][_0x1685c2(0x278)]=_0x3eaec4;}['resolveHyperLinkAt'](_0x344b1c){const _0x88830f=_0x196d4a;if(this[_0x88830f(0x22b)]['isEditing'])return null;let _0x31ded1=this[_0x88830f(0x2fd)](_0x344b1c),{width:_0x323786,height:_0x2fbffa}=this[_0x88830f(0x294)]();return _0x1cd5fe(this['_hyperLinkRegions'],{'x':(this[_0x88830f(0x362)]?-_0x31ded1['x']:_0x31ded1['x'])+_0x323786/0x2,'y':_0x31ded1['y']+_0x2fbffa/0x2});}[_0x196d4a(0x321)](_0x4f4f05){const _0x4cb971=_0x196d4a;this[_0x4cb971(0x22b)][_0x4cb971(0x146)]=_0x4f4f05,this[_0x4cb971(0xe5)](!0x0);}[_0x196d4a(0x379)](_0x6841ea,_0x30cd3d=!0x0){const _0x1233f0=_0x196d4a;this[_0x1233f0(0x1f5)][_0x1233f0(0x320)](_0x6841ea,_0x30cd3d),this[_0x1233f0(0x22b)][_0x1233f0(0x332)]=_0x6841ea,this[_0x1233f0(0x1a5)](),this[_0x1233f0(0xe5)](!0x0);}['_applyFormulaAutoFitSize'](){const _0x5374bc=_0x196d4a;let _0x5a21d6=this[_0x5374bc(0x22b)][_0x5374bc(0x1aa)],_0x2d7d68=_0x5a21d6[_0x5374bc(0x23f)](),_0x5bd4dc=_0x26ff51(_0x2d7d68==null?void 0x0:_0x2d7d68[_0x5374bc(0xce)]),_0x588b03=_0x5bd4dc==null?void 0x0:_0x5bd4dc[_0x5374bc(0xeb)],_0x2e03e2=this[_0x5374bc(0x1f5)][_0x5374bc(0x224)]();if(!_0x588b03||_0x2e03e2[_0x5374bc(0x1bc)]===0x0)return;_0x5a21d6['updateContext']({'width':this[_0x5374bc(0x2df)],'height':this[_0x5374bc(0x2b9)]});let _0xe25ff=_0x3eabcd({'documentData':_0x2e03e2[_0x5374bc(0x2f0)](_0x2ed33a=>_0x34e483(_0x588b03,_0x2ed33a)),'height':this[_0x5374bc(0x2b9)],'shapeData':_0x5a21d6[_0x5374bc(0x1db)](),'textRect':_0x5a21d6[_0x5374bc(0x274)]({'left':0x0,'top':0x0,'width':this[_0x5374bc(0x2df)],'height':this[_0x5374bc(0x2b9)]}),'width':this[_0x5374bc(0x2df)]});if(_0xe25ff){var _0x23d213;this['resize'](_0xe25ff[_0x5374bc(0x2df)],_0xe25ff[_0x5374bc(0x2b9)]),(_0x23d213=this[_0x5374bc(0x1a0)]())==null||(_0x23d213=_0x23d213[_0x5374bc(0x19f)]())==null||_0x23d213[_0x5374bc(0x226)]();}}get[_0x196d4a(0x263)](){const _0x200e38=_0x196d4a;return this[_0x200e38(0x22b)][_0x200e38(0x263)];}get['subUnitId'](){const _0x4a5ba4=_0x196d4a;return this[_0x4a5ba4(0x22b)][_0x4a5ba4(0x2f3)];}[_0x196d4a(0x2ea)](_0x18780f){const _0x33e6a5=_0x196d4a;if(this[_0x33e6a5(0x22b)][_0x33e6a5(0x18c)]==null||!this[_0x33e6a5(0x360)])return;let {width:_0x87ee0,height:_0x24c264}=this,{width:_0x44bdac=0x0,height:_0x38ac7a=0x0}=_0x18780f['preValue'],{left:_0x21f00e=0x0,top:_0x1e02e4=0x0,right:_0x52e275=0x0,bottom:_0x257f07=0x0}=this['_props']['srcRect'],_0x31cc0c=_0x21f00e,_0x376d62=_0x1e02e4,_0x3a14c6=_0x52e275,_0x2869fb=_0x257f07,_0x50ee32=!0x1;if(_0x44bdac!==0x0&&_0x44bdac!==_0x87ee0){let _0x1f2afd=_0x21f00e/_0x44bdac,_0xd3a4eb=_0x52e275/_0x44bdac;_0x31cc0c=_0x87ee0*_0x1f2afd,_0x3a14c6=_0x87ee0*_0xd3a4eb,_0x50ee32=!0x0;}if(_0x38ac7a!==0x0&&_0x38ac7a!==_0x24c264){let _0x5a9520=_0x1e02e4/_0x38ac7a,_0x12db96=_0x257f07/_0x38ac7a;_0x376d62=_0x24c264*_0x5a9520,_0x2869fb=_0x24c264*_0x12db96,_0x50ee32=!0x0;}_0x50ee32&&this[_0x33e6a5(0x19b)]({'left':_0x31cc0c,'top':_0x376d62,'right':_0x3a14c6,'bottom':_0x2869fb});}[_0x196d4a(0x19b)](_0x52a1ba){const _0xfa50c3=_0x196d4a;this[_0xfa50c3(0x22b)][_0xfa50c3(0x18c)]=_0x52a1ba,this['makeDirty'](!0x0);}[_0x196d4a(0x268)](_0x1873d0){const _0x427aee=_0x196d4a;this['_props'][_0x427aee(0x342)]=_0x1873d0,this[_0x427aee(0xe5)](!0x0);}set[_0x196d4a(0x311)](_0x4fd16d){const _0x2ff8fc=_0x196d4a;this[_0x2ff8fc(0xf7)]=_0x4fd16d;}get[_0x196d4a(0x311)](){const _0x30fca8=_0x196d4a;this[_0x30fca8(0xf7)]||this[_0x30fca8(0x1ec)]();let _0x219967=this[_0x30fca8(0xf7)][_0x30fca8(0x2e2)]();return this['transformForAngle'](_0x219967);}get[_0x196d4a(0x1aa)](){const _0x486896=_0x196d4a;return this[_0x486896(0x22b)][_0x486896(0x1aa)];}get[_0x196d4a(0x26c)](){const _0x4ca7a9=_0x196d4a;return this['_props'][_0x4ca7a9(0x26c)];}get[_0x196d4a(0x2d4)](){const _0xa5daeb=_0x196d4a;return _0x57820c[_0xa5daeb(0x24c)];}[_0x196d4a(0x236)](_0x2e9089,_0x575dc0,_0x33fd21,_0x461b38){const _0xc6ce0e=_0x196d4a;let _0x2c3e4c=this[_0xc6ce0e(0x22b)][_0xc6ce0e(0x1aa)];if(!_0x2c3e4c||!_0x575dc0)return;let _0x253966=_0x33fd21??this[_0xc6ce0e(0x2df)],_0x8521ea=_0x461b38??this[_0xc6ce0e(0x2b9)],_0x3191b0={'shapeType':_0x2c3e4c[_0xc6ce0e(0x197)](),'width':_0x253966,'height':_0x8521ea},_0xe7814f={'renderMode':_0x306e25[_0xc6ce0e(0x1d4)],'oKey':this['oKey'],'image':this[_0xc6ce0e(0x22b)][_0xc6ce0e(0x342)],'angle':this[_0xc6ce0e(0x237)]};_0x2c3e4c[_0xc6ce0e(0x385)](_0x3191b0),_0x2e9089['save']();let _0x34e0ff={'top':0x0,'left':0x0,'width':_0x253966,'height':_0x8521ea},_0x4a2d1e=_0x2c3e4c[_0xc6ce0e(0x2bb)](_0x34e0ff);_0x4a2d1e?this[_0xc6ce0e(0x1c2)](_0x2e9089,_0x4a2d1e,_0x1c1a8b=>{const _0x22eaf2=_0xc6ce0e;_0x2c3e4c[_0x22eaf2(0x174)](_0x1c1a8b,_0x34e0ff,_0xe7814f);}):(this[_0xc6ce0e(0x176)](),_0x2c3e4c[_0xc6ce0e(0x174)](_0x2e9089,_0x34e0ff,_0xe7814f)),_0x2e9089[_0xc6ce0e(0x2ce)]();let _0x2ccb48=_0x2c3e4c['getShapeTextData'](),_0x271e8b=_0x2c3e4c[_0xc6ce0e(0x274)](_0x34e0ff),_0x2aad82=_0x2c3e4c[_0xc6ce0e(0x109)]();if(_0x2ccb48&&_0x271e8b&&!_0x2aad82){_0x2e9089['save'](),this[_0xc6ce0e(0x267)]()[_0xc6ce0e(0x362)]&&_0x2e9089['scale'](-0x1,0x1);let _0x3dc78d=_0x253966/0x2,_0x8ef7b9=_0x8521ea/0x2;_0x2e9089['translate'](-_0x3dc78d,-_0x8ef7b9),_0x2e9089['beginPath'](),this[_0xc6ce0e(0x2d0)](_0x2e9089,_0x2ccb48,_0x271e8b),_0x2e9089[_0xc6ce0e(0x2ce)]();}}['getDrawingPoints'](_0x44eaff){}['_drawShapeText'](_0xec3979,_0x3e0bb6,_0x4d82e1){const _0x27ecbd=_0x196d4a;var _0x1c56a4;this[_0x27ecbd(0x13e)]=[],!this['_props'][_0x27ecbd(0x146)]&&(!((_0x1c56a4=_0x3e0bb6[_0x27ecbd(0xce)])!=null&&_0x1c56a4[_0x27ecbd(0xeb)])&&_0x27ecbd(0x1b5)in _0x3e0bb6&&_0x3e0bb6[_0x27ecbd(0x1b5)]===!0x1?this[_0x27ecbd(0x28e)](_0xec3979,_0x3e0bb6,_0x4d82e1):this[_0x27ecbd(0x17e)](_0xec3979,_0x3e0bb6,_0x4d82e1));}['_drawSimpleText'](_0x2accb0,_0x1f4722,_0x3cb367){const _0x2dbc4e=_0x196d4a;this[_0x2dbc4e(0x17e)](_0x2accb0,{..._0x1f4722,'text':_0x1f4722['text']??'','dataModel':{'doc':_0x701120(_0x1f4722,'sheets-shape-text-'+this['oKey'])}},_0x3cb367);}[_0x196d4a(0x17e)](_0x521797,_0x50444c,_0x29f176){const _0x2423cc=_0x196d4a;_0x508912(_0x521797,this[_0x2423cc(0x1f5)],(_0x35fffd,_0x285867,_0x5113c1)=>{const _0xab761c=_0x2423cc;this[_0xab761c(0x38b)](_0x35fffd,_0x50444c,_0x29f176,_0x285867,_0x5113c1===_0xab761c(0x2ad));});}[_0x196d4a(0x38b)](_0x443e40,_0x40c08e,_0x5351bf,_0x398728,_0x5c2406){const _0x3df85b=_0x196d4a;let _0x2650b4=this[_0x3df85b(0x22b)]['localeService'];if(!_0x40c08e['dataModel']||!_0x2650b4)return;let _0x3242a1=_0x26ff51(_0x40c08e['dataModel']);if(!_0x3242a1)return;let _0x537c3f=_0x3242a1[_0x3df85b(0xeb)];if(!_0x537c3f)return;let _0x4881d9=_0x34e483(_0x537c3f,_0x398728),_0x231b04=_0x3242a1['va']??_0x1b272d[_0x3df85b(0x187)],_0x80a9a2=_0x3242a1['ha']??_0x3a8480['LEFT'],_0x19ef8b=Mr(this[_0x3df85b(0x22b)][_0x3df85b(0x1aa)][_0x3df85b(0x1db)](),_0x40c08e,_0x4881d9),_0x42b7fc=_0x40c08e['isHorizontal'],_0x4ef2ff=_0xda5bea(_0x4881d9,{'isHorizontal':_0x42b7fc!==!0x1,'textRect':_0x5351bf,'verticalAlign':_0x231b04,'horizontalAlign':_0x80a9a2,'wrapStrategy':_0x19ef8b['wrapStrategy']}),_0x401eb8=new _0x124ef9(_0x4ef2ff),_0x4aa4f9=new _0x25c560(_0x401eb8),_0x272837=_0x33ff77[_0x3df85b(0x166)](_0x4aa4f9,_0x2650b4);_0x272837[_0x3df85b(0x2dd)]();let _0x23f71f=_0x272837[_0x3df85b(0xcb)]()[_0x3df85b(0xc6)],_0xc7d919=_0x42cb9f({'contentHeight':_0x23f71f,'verticalAlign':_0x231b04,'viewportHeight':_0x5351bf[_0x3df85b(0x2b9)]});_0x401eb8[_0x3df85b(0x1c0)]({'pageSize':{'width':_0x42b7fc===!0x1?_0x5351bf[_0x3df85b(0x2b9)]:_0x5351bf[_0x3df85b(0x2df)],'height':_0x378f58(_0x4881d9,_0xc7d919['contentHeight'])}}),_0x401eb8[_0x3df85b(0x188)]({'t':_0xc7d919[_0x3df85b(0x2e6)]}),_0x272837['calculate']();let _0xe504b1=new _0x2d00cc(_0x3df85b(0x299)+this[_0x3df85b(0x313)],_0x272837,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this['makeDirty'](!0x0)});_0xe504b1['resize'](_0x5351bf[_0x3df85b(0x2df)],_0xc7d919[_0x3df85b(0x1d7)]),_0x443e40[_0x3df85b(0x1fb)](),_0x443e40[_0x3df85b(0x111)](_0x5351bf['left'],_0x5351bf['top']),_0x19ef8b[_0x3df85b(0x218)]&&(_0x443e40[_0x3df85b(0x1a7)](),_0x443e40[_0x3df85b(0x173)](0x0,_0xc7d919[_0x3df85b(0xdf)],_0x5351bf[_0x3df85b(0x2df)],_0xc7d919[_0x3df85b(0x37b)]),_0x443e40[_0x3df85b(0x218)]()),_0xc7d919[_0x3df85b(0x317)]&&_0x443e40[_0x3df85b(0x111)](0x0,_0xc7d919[_0x3df85b(0x317)]),_0xe504b1[_0x3df85b(0x228)](_0x443e40),_0x5c2406&&(this['_hyperLinkRegions']=_0xd426f0(_0xe504b1,{'left':_0x5351bf[_0x3df85b(0x158)],'top':_0x5351bf[_0x3df85b(0x324)]+_0xc7d919[_0x3df85b(0x317)]},_0x19ef8b['clip']?{'left':_0x5351bf[_0x3df85b(0x158)],'right':_0x5351bf[_0x3df85b(0x158)]+_0x5351bf[_0x3df85b(0x2df)],'top':_0x5351bf[_0x3df85b(0x324)]+_0xc7d919[_0x3df85b(0xdf)],'bottom':_0x5351bf[_0x3df85b(0x324)]+_0xc7d919[_0x3df85b(0xdf)]+_0xc7d919[_0x3df85b(0x37b)]}:void 0x0)),_0x443e40[_0x3df85b(0x2ce)](),_0xe504b1[_0x3df85b(0x1cc)](),_0x272837[_0x3df85b(0x1cc)](),_0x4aa4f9[_0x3df85b(0x1cc)](),_0x401eb8[_0x3df85b(0x1cc)]();}[_0x196d4a(0x174)](_0x4c3017,_0x1b583e,_0x2fa7de=!0x1){const _0x4911b2=_0x196d4a;if(!this['visible'])return this[_0x4911b2(0xe5)](!0x1),this;let {width:_0x5149e1,height:_0x48223c,left:_0x2709d3,top:_0x12b960}=this,_0x1b29fb=this[_0x4911b2(0x294)]();if(_0x5149e1=_0x1b29fb[_0x4911b2(0x2df)],_0x48223c=_0x1b29fb[_0x4911b2(0x2b9)],_0x2709d3=_0x1b29fb[_0x4911b2(0x158)],_0x12b960=_0x1b29fb[_0x4911b2(0x324)],this[_0x4911b2(0x150)](_0x1b583e)){let {top:_0x32da9a,left:_0x1daf52,bottom:_0x6aea7b,right:_0x2b53a6}=_0x1b583e[_0x4911b2(0x120)];if(_0x5149e1+this[_0x4911b2(0x252)]+_0x2709d3<_0x1daf52||_0x2b53a6<_0x2709d3||_0x48223c+this['strokeWidth']+_0x12b960<_0x32da9a||_0x6aea7b<_0x12b960)return this;}let _0x445897=_0x2709d3+_0x5149e1/0x2,_0x37521f=_0x12b960+_0x48223c/0x2,_0x30d4dd=this[_0x4911b2(0x311)]['getMatrix']();if(this[_0x4911b2(0x22b)]['isEditing']){let _0xb56ed7=this[_0x4911b2(0x267)](),_0x56f5b6=new _0x29b58e();_0x56f5b6['composeMatrix']({..._0xb56ed7}),_0x30d4dd=_0x56f5b6[_0x4911b2(0x1a6)]();}return _0x4c3017['save'](),this['_props'][_0x4911b2(0x1aa)][_0x4911b2(0x36c)]===!0x0||_0x4c3017['transform'](_0x30d4dd[0x0],_0x30d4dd[0x1],_0x30d4dd[0x2],_0x30d4dd[0x3],_0x445897,_0x37521f),this[_0x4911b2(0x236)](_0x4c3017,_0x1b583e,_0x5149e1,_0x48223c),_0x4c3017[_0x4911b2(0x2ce)](),this['makeDirty'](!0x1),this;}['getInverseCoord'](_0x3748b6){const _0x4712ad=_0x196d4a;let {left:_0x2c6b44,top:_0x23a7f3,width:_0x3cc3f5,height:_0x1a8196}=this[_0x4712ad(0x294)](),_0x4341f3=this['transform'][_0x4712ad(0x1a6)](),_0x5dd8f5=_0x2c6b44+_0x3cc3f5/0x2,_0x15fc13=_0x23a7f3+_0x1a8196/0x2,_0x3cc857=new _0x29b58e([_0x4341f3[0x0],_0x4341f3[0x1],_0x4341f3[0x2],_0x4341f3[0x3],_0x5dd8f5,_0x15fc13]),_0x335321=this[_0x4712ad(0x135)]();return(this['isInGroup']&&(_0x335321==null?void 0x0:_0x335321[_0x4712ad(0x2d4)])===_0x57820c[_0x4712ad(0x162)]?_0x335321['ancestorTransform'][_0x4712ad(0x247)](_0x3cc857):_0x3cc857)[_0x4712ad(0x180)]()[_0x4712ad(0x1e8)](_0x3748b6);}['isHit'](_0x4a82f7){const _0x364e4a=_0x196d4a;let {left:_0x538569,top:_0x47e0ee,width:_0x2d28ad,height:_0x12bc73}=this[_0x364e4a(0x294)](),_0x5dbf38=_0x538569+_0x2d28ad/0x2,_0xe91b58=_0x47e0ee+_0x12bc73/0x2,_0x29d413=this[_0x364e4a(0x311)][_0x364e4a(0x1a6)](),_0x2e3da4=new _0x29b58e([_0x29d413[0x0],_0x29d413[0x1],_0x29d413[0x2],_0x29d413[0x3],_0x5dbf38,_0xe91b58]),_0x31a40f=this[_0x364e4a(0x135)](),_0x8e0346=(this[_0x364e4a(0x2bf)]&&(_0x31a40f==null?void 0x0:_0x31a40f['classType'])===_0x57820c[_0x364e4a(0x162)]?_0x31a40f[_0x364e4a(0x25b)]['multiply'](_0x2e3da4):_0x2e3da4)[_0x364e4a(0x180)]()[_0x364e4a(0x1e8)](_0x4a82f7),_0x61bcec=_0x2d28ad/0x2,_0x2bba2a=_0x12bc73/0x2,_0x59c023=this[_0x364e4a(0x22b)]['shapeModel'];return _0x59c023&&_0x59c023[_0x364e4a(0x109)]()?_0x59c023[_0x364e4a(0x207)](_0x8e0346['x'],_0x8e0346['y'],_0x2d28ad,_0x12bc73):_0x8e0346['x']>=-_0x61bcec-this[_0x364e4a(0x252)]/0x2&&_0x8e0346['x']<=_0x61bcec+this[_0x364e4a(0x252)]/0x2&&_0x8e0346['y']>=-_0x2bba2a-this[_0x364e4a(0x252)]/0x2&&_0x8e0346['y']<=_0x2bba2a+this[_0x364e4a(0x252)]/0x2;}[_0x196d4a(0x1cc)](){const _0x25afaf=_0x196d4a;this[_0x25afaf(0x1f5)][_0x25afaf(0x1cc)](),this['_props']['shapeModel']=null,super['dispose']();}},Nr=class extends _0x35d449{constructor(_0x5adb30,_0x5bcc6){const _0x39792e=_0x196d4a;super(_0x5adb30,_0x5bcc6),q(this,_0x39792e(0x306),null),q(this,'_adjName',null),q(this,_0x39792e(0x204),null),q(this,_0x39792e(0x19d),null),_0x5bcc6&&this[_0x39792e(0x2c3)](_0x5bcc6);}['getDrawingSearch'](){const _0x206e7c=_0x196d4a;return{'unitId':this[_0x206e7c(0x204)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x206e7c(0x306)]};}[_0x196d4a(0x2c3)](_0xe70933){const _0x4c5f87=_0x196d4a;_0xe70933[_0x4c5f87(0x26c)]!==void 0x0&&(this[_0x4c5f87(0x306)]=_0xe70933['shapeId']),_0xe70933[_0x4c5f87(0x1d9)]!==void 0x0&&(this[_0x4c5f87(0x2f2)]=_0xe70933[_0x4c5f87(0x1d9)]),_0xe70933[_0x4c5f87(0x263)]!==void 0x0&&(this[_0x4c5f87(0x204)]=_0xe70933[_0x4c5f87(0x263)]),_0xe70933[_0x4c5f87(0x2f3)]!==void 0x0&&(this[_0x4c5f87(0x19d)]=_0xe70933[_0x4c5f87(0x2f3)]),this[_0x4c5f87(0x2a2)]({'width':_0xe70933[_0x4c5f87(0x2df)],'height':_0xe70933[_0x4c5f87(0x2b9)]});}[_0x196d4a(0x236)](_0x232b50){const _0x29765f=_0x196d4a;_0x37d975[_0x29765f(0xd6)](_0x232b50,{'radius':_0x1a4d77['adjHandleSize'],'fill':_0x1a4d77['adjHandleFill'],'stroke':_0x1a4d77[_0x29765f(0x14b)],'strokeWidth':0x1,'evented':!0x0});}};function Y(_0x3aa3b9,_0x49b09f){return function(_0x2df7a1,_0x210fff){_0x49b09f(_0x2df7a1,_0x210fff,_0x3aa3b9);};}function X(_0x25b60b,_0x1aea44,_0x3f78c4,_0x1ce806){const _0x28d62e=_0x196d4a;var _0x440119=arguments[_0x28d62e(0x1bc)],_0x573897=_0x440119<0x3?_0x1aea44:_0x1ce806===null?_0x1ce806=Object[_0x28d62e(0x16b)](_0x1aea44,_0x3f78c4):_0x1ce806,_0x2cdfb6;if(typeof Reflect==_0x28d62e(0x1dd)&&typeof Reflect[_0x28d62e(0x27f)]=='function')_0x573897=Reflect[_0x28d62e(0x27f)](_0x25b60b,_0x1aea44,_0x3f78c4,_0x1ce806);else{for(var _0x559f1b=_0x25b60b['length']-0x1;_0x559f1b>=0x0;_0x559f1b--)(_0x2cdfb6=_0x25b60b[_0x559f1b])&&(_0x573897=(_0x440119<0x3?_0x2cdfb6(_0x573897):_0x440119>0x3?_0x2cdfb6(_0x1aea44,_0x3f78c4,_0x573897):_0x2cdfb6(_0x1aea44,_0x3f78c4))||_0x573897);}return _0x440119>0x3&&_0x573897&&Object[_0x28d62e(0x15c)](_0x1aea44,_0x3f78c4,_0x573897),_0x573897;}let Z=class extends _0x116f11{constructor(_0x214a68,_0x5197a1,_0x10a19a,_0x53d2bb,_0x1adac3,_0x5c0dee){const _0x4c20ce=_0x196d4a;super(),this[_0x4c20ce(0x23e)]=_0x214a68,this[_0x4c20ce(0x309)]=_0x5197a1,this[_0x4c20ce(0x185)]=_0x10a19a,this[_0x4c20ce(0x200)]=_0x53d2bb,this[_0x4c20ce(0x34f)]=_0x1adac3,this[_0x4c20ce(0x262)]=_0x5c0dee,q(this,'_formulaShapes',new Map()),this['disposeWithMe'](this[_0x4c20ce(0x262)][_0x4c20ce(0x254)][_0x4c20ce(0x1ab)](_0x16520e=>{const _0x52b40d=_0x4c20ce;var _0x4d43ee;(_0x4d43ee=this[_0x52b40d(0x36f)][_0x52b40d(0x100)](this[_0x52b40d(0x356)](_0x16520e[_0x52b40d(0x263)],_0x16520e['subUnitId'],_0x16520e['shapeId'])))==null||_0x4d43ee[_0x52b40d(0x326)](_0x1bd147=>_0x1bd147['setFormulaPresentation'](_0x16520e[_0x52b40d(0x2c5)],_0x16520e[_0x52b40d(0x202)]));})),this['disposeWithMe'](this[_0x4c20ce(0x23e)]['remove$'][_0x4c20ce(0x1ab)](_0x394ae8=>{const _0x365e70=_0x4c20ce;_0x394ae8[_0x365e70(0x326)](_0x72675a=>{const _0x3c0d2d=_0x365e70;this['_shapeFormulaService'][_0x3c0d2d(0x259)]({'unitId':_0x72675a[_0x3c0d2d(0x263)],'subUnitId':_0x72675a[_0x3c0d2d(0x2f3)],'shapeId':_0x72675a[_0x3c0d2d(0x14c)]}),this[_0x3c0d2d(0x36f)][_0x3c0d2d(0xfd)](this[_0x3c0d2d(0x356)](_0x72675a[_0x3c0d2d(0x263)],_0x72675a[_0x3c0d2d(0x2f3)],_0x72675a[_0x3c0d2d(0x14c)]));});}));}[_0x196d4a(0x133)](_0x4d68d3,_0x356f5a,_0xbcdf98){const _0x2e1438=_0x196d4a;let {transform:_0x547271,drawingType:_0x1e4f98,srcRect:_0x3573b9,prstGeom:_0x126d2,groupId:_0x4e889a,unitId:_0x39f337,subUnitId:_0x1eadd5,drawingId:_0x384819,isMultiTransform:_0x1c8edb,transforms:_0x7f76ec,hidden:_0x1e75c8,selectable:_0x3ef59f}=_0x4d68d3;if(_0x1e4f98!==_0x123aa0['DRAWING_SHAPE']||!this[_0x2e1438(0x23e)][_0x2e1438(0x1be)]()||_0x547271==null)return;let _0x1b11b7=this[_0x2e1438(0x23e)][_0x2e1438(0x114)](),_0x501d6d=_0x1c8edb&&_0x7f76ec?_0x7f76ec:[_0x547271],_0x51a2d9=[];for(let _0x3c9391 of _0x501d6d){let {left:_0x32e802,top:_0x3c5a4b,width:_0x32aa0c,height:_0xe3c436,angle:_0x573a17,flipX:_0x473847,flipY:_0x1d945f,skewX:_0x4b74b4,skewY:_0x3e81c8}=_0x3c9391,_0x2704d5=_0x501d6d[_0x2e1438(0x378)](_0x3c9391),_0x45eb46=_0x934411({'unitId':_0x39f337,'subUnitId':_0x1eadd5,'drawingId':_0x384819},_0x1c8edb?_0x2704d5:void 0x0),_0x3af8ff=_0x356f5a[_0x2e1438(0x2b5)](_0x45eb46);if(_0x3af8ff!=null){let _0x513df0={'unitId':_0x39f337,'subUnitId':_0x1eadd5,'shapeId':_0x384819};_0x3af8ff instanceof J&&this[_0x2e1438(0xf4)](_0x3af8ff,_0x513df0),_0x3af8ff[_0x2e1438(0x2a2)]({'left':_0x32e802,'top':_0x3c5a4b,'width':_0x32aa0c,'height':_0xe3c436,'angle':_0x573a17,'flipX':_0x473847,'flipY':_0x1d945f,'skewX':_0x4b74b4,'skewY':_0x3e81c8});continue;}let _0x3ad306=this[_0x2e1438(0x23e)][_0x2e1438(0x2dc)](_0x39f337,_0x1eadd5),_0x10c11f=_0x3ad306['indexOf'](_0x384819);if(_0x356f5a[_0x2e1438(0x2b5)](_0x45eb46)||!this['_drawingManagerService'][_0x2e1438(0x1be)]())continue;let _0x2fbb92=this['_sheetsShapeService'][_0x2e1438(0xe6)](_0x39f337,_0x1eadd5,_0x384819);if(!_0x2fbb92)continue;let _0x683957=_0x22e615(_0x2fbb92[_0x2e1438(0x197)]())?{..._0x3cfe88,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x3cfe88,_0x47898b=_0x2fbb92[_0x2e1438(0x1db)]()[_0x2e1438(0x175)],_0x553189={'unitId':_0x39f337,'subUnitId':_0x1eadd5,'shapeId':_0x384819};_0x47898b&&this['_shapeFormulaService'][_0x2e1438(0x157)](_0x553189,_0x47898b);let _0x105671=new J(_0x45eb46,{..._0x3c9391,'zIndex':_0x10c11f===-0x1?_0x3ad306['length']-0x1:_0x10c11f,'shapeModel':_0x2fbb92,'localeService':this[_0x2e1438(0x185)],'shapeId':_0x384819,'unitId':_0x39f337,'subUnitId':_0x1eadd5,'visible':_0x1e75c8!==!0x0,'evented':_0x3ef59f!==!0x1,'formulaPresentation':_0x47898b?this[_0x2e1438(0x262)]['getPresentation'](_0x553189):void 0x0,'animateFormulaPresentation':(_0x47898b==null?void 0x0:_0x47898b[_0x2e1438(0x202)])!==!0x1,'transformerConfig':_0x683957});if(_0x47898b){let _0x57f182=this[_0x2e1438(0x356)](_0x39f337,_0x1eadd5,_0x384819),_0x3922c8=this['_formulaShapes']['get'](_0x57f182)??new Set();_0x3922c8['add'](_0x105671),this[_0x2e1438(0x36f)][_0x2e1438(0x127)](_0x57f182,_0x3922c8);}_0x356f5a['addObject'](_0x105671,_0x22b3ea),_0x1b11b7&&_0x356f5a['attachTransformerTo'](_0x105671),_0x4e889a&&_0x197759({'drawingId':_0x4e889a,'unitId':_0x39f337,'subUnitId':_0x1eadd5},_0x105671,_0x356f5a,this[_0x2e1438(0x23e)]),_0x126d2!=null&&_0x105671[_0x2e1438(0x2d9)](_0x126d2),_0x3573b9!=null&&_0x105671[_0x2e1438(0x19b)](_0x3573b9);let _0x103e98=this[_0x2e1438(0x2ca)](_0x105671,_0x2fbb92[_0x2e1438(0x1db)]());if(_0x103e98){var _0x4270ca;_0xbcdf98==null||(_0x4270ca=_0xbcdf98[_0x2e1438(0x32e)])==null||_0x4270ca['add'](_0x103e98);}_0x51a2d9['push'](_0x105671);}return _0x51a2d9;}[_0x196d4a(0x356)](_0x445a4f,_0x1fedb0,_0x9cf0f3){return _0x445a4f+'\x00'+_0x1fedb0+'\x00'+_0x9cf0f3;}['refreshFormulaPresentation'](_0x40736c,_0x8bd5ce){const _0x3c4c37=_0x196d4a;let _0x1ed635=this[_0x3c4c37(0x309)]['getShapeModel'](_0x8bd5ce['unitId'],_0x8bd5ce[_0x3c4c37(0x2f3)],_0x8bd5ce[_0x3c4c37(0x26c)]),_0x1400f3=_0x1ed635==null?void 0x0:_0x1ed635['getShapeData']()[_0x3c4c37(0x175)],_0x398e8c=this[_0x3c4c37(0x356)](_0x8bd5ce[_0x3c4c37(0x263)],_0x8bd5ce['subUnitId'],_0x8bd5ce[_0x3c4c37(0x26c)]);if(_0x1400f3){this[_0x3c4c37(0x262)]['register'](_0x8bd5ce,_0x1400f3);let _0x2c4c15=this[_0x3c4c37(0x36f)][_0x3c4c37(0x100)](_0x398e8c)??new Set();_0x2c4c15['add'](_0x40736c),this[_0x3c4c37(0x36f)][_0x3c4c37(0x127)](_0x398e8c,_0x2c4c15);}else{var _0x44dc73;this[_0x3c4c37(0x262)][_0x3c4c37(0x259)](_0x8bd5ce),(_0x44dc73=this[_0x3c4c37(0x36f)]['get'](_0x398e8c))==null||_0x44dc73[_0x3c4c37(0xfd)](_0x40736c);}_0x40736c[_0x3c4c37(0x379)](_0x1400f3?this['_shapeFormulaService'][_0x3c4c37(0x1fa)](_0x8bd5ce):void 0x0,(_0x1400f3==null?void 0x0:_0x1400f3[_0x3c4c37(0x202)])!==!0x1);}[_0x196d4a(0xdb)](_0x5ab6fc){const _0x2c5604=_0x196d4a;let _0x223205=_0x5ab6fc[_0x2c5604(0x1aa)][_0x2c5604(0x1db)](),_0x57f399=_0x223205[_0x2c5604(0x32f)];if(!_0x57f399||_0x57f399[_0x2c5604(0x15f)]!==_0xcb9b68[_0x2c5604(0x2b1)]||!_0x57f399[_0x2c5604(0x29f)]){_0x5ab6fc[_0x2c5604(0x268)](void 0x0);return;}this['_loadShapePictureFill'](_0x5ab6fc,_0x223205);}[_0x196d4a(0x2ca)](_0x548bd8,_0x34a4f9){const _0x2269f9=_0x196d4a;let _0x536eb8=_0x34a4f9[_0x2269f9(0x32f)];if(!_0x536eb8||_0x536eb8[_0x2269f9(0x15f)]!==_0xcb9b68['PictureFill']||!_0x536eb8[_0x2269f9(0x29f)])return;let _0x39a31b=_0x536eb8[_0x2269f9(0x29f)],_0xd4cd37=_0x536eb8[_0x2269f9(0x1e5)]??_0x5497a9[_0x2269f9(0x257)],_0x38f213=this['_imageIoService'][_0x2269f9(0x2d1)](_0x39a31b,_0xd4cd37);if(_0x38f213){_0x548bd8[_0x2269f9(0x268)](_0x38f213);return;}return this[_0x2269f9(0x38c)](_0x548bd8,_0x39a31b,_0xd4cd37);}async[_0x196d4a(0x38c)](_0x28b88c,_0x1e9a66,_0x315902){const _0x175371=_0x196d4a;let _0x33e1f2;try{if(_0x315902===_0x5497a9['UUID'])_0x33e1f2=await this['_imageIoService'][_0x175371(0x2b4)](_0x1e9a66);else{if(_0x315902===_0x5497a9['URL'])try{_0x33e1f2=await this[_0x175371(0x34f)][_0x175371(0x2b4)](_0x1e9a66);}catch{_0x33e1f2=_0x1e9a66;}else _0x33e1f2=_0x1e9a66;}}catch(_0xc027a7){console[_0x175371(0x35b)](_0x175371(0x30a),_0xc027a7);return;}await new Promise(_0x548af1=>{const _0x38ce48=_0x175371;let _0x28953a=new window[(_0x38ce48(0x110))]();_0x28953a[_0x38ce48(0x15e)]=()=>{const _0xb388d5=_0x38ce48;this[_0xb388d5(0x200)][_0xb388d5(0xda)](_0x1e9a66,_0x315902,_0x28953a),_0x28b88c[_0xb388d5(0x268)](_0x28953a),_0x548af1();},_0x28953a[_0x38ce48(0x377)]=()=>{const _0xf904b0=_0x38ce48;console[_0xf904b0(0x35b)](_0xf904b0(0x153),_0x1e9a66),_0x548af1();},_0x28953a[_0x38ce48(0x275)]=_0x33e1f2;});}};Z=X([Y(0x0,_0x446eb2),Y(0x1,_0x14bfc1(_0x13b053)),Y(0x2,_0x14bfc1(_0x407e83)),Y(0x3,_0x530352),Y(0x4,_0x1e7e45),Y(0x5,_0x14bfc1(_0x1a5fdd))],Z);let Pr=class extends _0x116f11{constructor(_0x1ebc36,_0x51ff2e,_0x229626,_0x3446e4,_0x491261,_0x561a9b){const _0x4f2d0d=_0x196d4a;super(),this[_0x4f2d0d(0x23e)]=_0x1ebc36,this[_0x4f2d0d(0x309)]=_0x51ff2e,this[_0x4f2d0d(0x1b7)]=_0x229626,this[_0x4f2d0d(0x132)]=_0x3446e4,this[_0x4f2d0d(0x17a)]=_0x491261,this['_commandService']=_0x561a9b,q(this,_0x4f2d0d(0x2fb),null),q(this,_0x4f2d0d(0x204),null),q(this,_0x4f2d0d(0x19d),null),q(this,_0x4f2d0d(0x2aa),void 0x0),q(this,_0x4f2d0d(0x198),[]),q(this,'_baseShapeLeft',0x0),q(this,_0x4f2d0d(0x1f7),0x0),q(this,_0x4f2d0d(0x220),0x0),q(this,'_baseShapeHeight',0x0),q(this,'_isStartAdjusting',!0x1),q(this,_0x4f2d0d(0x15a),void 0x0),q(this,_0x4f2d0d(0x1ef),void 0x0),q(this,_0x4f2d0d(0x330),void 0x0),q(this,_0x4f2d0d(0x12a),void 0x0),q(this,_0x4f2d0d(0xdc),!0x1),this[_0x4f2d0d(0x183)](),this[_0x4f2d0d(0x1a2)]();}[_0x196d4a(0x251)](_0x4aab28,_0x2da5dc,_0x1b1b14){const _0x4f52f5=_0x196d4a;let _0x47e651=this['_sheetsShapeService'][_0x4f52f5(0xe6)](_0x4aab28,_0x2da5dc,_0x1b1b14);if(_0x47e651)return _0x47e651[_0x4f52f5(0x19e)]();}[_0x196d4a(0xca)](){this['_clearShapeAdjustControls']();}['refreshAdjustControls'](){this['_updateShapeAdjustControls'](!0x0);}[_0x196d4a(0x1e0)](_0x1fcd60){const _0x30ff23=_0x196d4a;this[_0x30ff23(0xdc)]=_0x1fcd60;}[_0x196d4a(0x2a6)](_0x50f9ae,_0x1b1193,_0x115e30,_0x3f6bdf){const _0x54f9b6=_0x196d4a;let _0x520ccd=this[_0x54f9b6(0x309)][_0x54f9b6(0xe6)](_0x50f9ae,_0x1b1193,_0x115e30);if(_0x520ccd)return _0x520ccd[_0x54f9b6(0x2d7)](_0x3f6bdf);}[_0x196d4a(0x2ae)](_0x148412=!0x1){const _0x151d3b=_0x196d4a;if(this['_unitId']===null||this[_0x151d3b(0x19d)]===null||this[_0x151d3b(0x2fb)]===null)return;let _0x4e72e0=this[_0x151d3b(0x1b7)][_0x151d3b(0xd7)](this['_unitId']);if(!_0x4e72e0||!_0x4e72e0[_0x151d3b(0x2a0)](_0x7b1452)[_0x151d3b(0x260)]())return;let {scene:_0xd48f1e}=_0x4e72e0,_0x1550bc={'unitId':this['_unitId'],'subUnitId':this[_0x151d3b(0x19d)],'drawingId':this['_activeShapeId']},_0x514d1d=this[_0x151d3b(0x23e)][_0x151d3b(0xc7)](_0x1550bc),{transform:_0x3f8e58}=_0x514d1d;if(!_0x3f8e58||_0x514d1d[_0x151d3b(0x27b)]!==_0x123aa0[_0x151d3b(0x323)])return;let {left:_0x535182,top:_0x238e1b,width:_0x53158f,height:_0x2336ab,flipX:_0x58d70d,flipY:_0x12982f,angle:_0x168d8e=0x0}=_0x3f8e58;if(_0x535182===void 0x0||_0x238e1b===void 0x0)return;if(_0x148412){let _0x4a2879=this[_0x151d3b(0x309)][_0x151d3b(0xe6)](this[_0x151d3b(0x204)],this[_0x151d3b(0x19d)],this[_0x151d3b(0x2fb)]);_0x4a2879==null||_0x4a2879[_0x151d3b(0x385)]({'width':_0x53158f??0x0,'height':_0x2336ab??0x0}),this[_0x151d3b(0x2aa)]=_0x4a2879==null?void 0x0:_0x4a2879[_0x151d3b(0x19e)]();}let _0x4393ab=this[_0x151d3b(0x2aa)];for(let _0x3ebd0b=0x0;_0x3ebd0b<_0x4393ab[_0x151d3b(0x1bc)];_0x3ebd0b++){let _0x212a87=_0x4393ab[_0x3ebd0b],_0x1fa090=_0x212a87['x'],_0x4df864=_0x212a87['y'];if(_0x58d70d&&(_0x1fa090=(_0x53158f||0x0)-_0x1fa090),_0x12982f&&(_0x4df864=(_0x2336ab||0x0)-_0x4df864),_0x168d8e!==0x0){let _0x168fb4=(_0x53158f||0x0)/0x2,_0x53e1de=(_0x2336ab||0x0)/0x2,_0x306990=_0x168d8e*Math['PI']/0xb4,_0xfd6644=Math[_0x151d3b(0x17b)](_0x306990),_0x229ed2=Math['sin'](_0x306990),_0x4e9dbc=_0x1fa090-_0x168fb4,_0xeb2963=_0x4df864-_0x53e1de;_0x1fa090=_0x168fb4+(_0x4e9dbc*_0xfd6644-_0xeb2963*_0x229ed2),_0x4df864=_0x53e1de+(_0x4e9dbc*_0x229ed2+_0xeb2963*_0xfd6644);}let _0x29d6ce={'x':_0x1fa090,'y':_0x4df864,'adjName':_0x212a87[_0x151d3b(0x1d9)]};this[_0x151d3b(0x22f)](_0xd48f1e,_0x29d6ce,_0x29d6ce[_0x151d3b(0x1d9)],_0x535182,_0x238e1b,this['_unitId'],this['_subUnitId']);}}['_updateShapeAdjustControls'](_0x546421=!0x1){const _0x4659c6=_0x196d4a;_0x546421&&(this[_0x4659c6(0x128)](),this[_0x4659c6(0x2ae)](_0x546421));}['_addShapeAdjustControl'](_0x163bbf,_0x5bb0e1,_0x3a5f49,_0x35baef,_0x13d3e2,_0x33f774,_0xc3c96d){const _0x3b46eb=_0x196d4a;if(!this[_0x3b46eb(0x2fb)])return;let _0x1bbc7a=_0x163bbf[_0x3b46eb(0x2b5)](_0x3b46eb(0x11c)+this[_0x3b46eb(0x2fb)]+'-'+_0x3a5f49);if(_0x1bbc7a){_0x1bbc7a['transformByState']({'left':_0x5bb0e1['x']+_0x35baef-_0x1a4d77['adjHandleSize'],'top':_0x5bb0e1['y']+_0x13d3e2-_0x1a4d77[_0x3b46eb(0x1ba)]});return;}let _0x24d7da={'left':_0x5bb0e1['x']+_0x35baef-_0x1a4d77['adjHandleSize'],'top':_0x5bb0e1['y']+_0x13d3e2-_0x1a4d77[_0x3b46eb(0x1ba)],'adjName':_0x3a5f49,'shapeId':this[_0x3b46eb(0x2fb)],'unitId':_0x33f774,'subUnitId':_0xc3c96d,'width':_0x1a4d77[_0x3b46eb(0x1ba)]+0x8,'height':_0x1a4d77[_0x3b46eb(0x1ba)]+0x8,'zIndex':_0x22b3ea+0x1,'evented':!0x0},_0x117946=new Nr(_0x3b46eb(0x11c)+this[_0x3b46eb(0x2fb)]+'-'+_0x3a5f49,_0x24d7da);this['_shapes'][_0x3b46eb(0x2b7)](_0x117946),this[_0x3b46eb(0x27c)](_0x117946,_0x163bbf,_0x3a5f49),_0x163bbf[_0x3b46eb(0xea)](_0x117946,_0x22b3ea+0x1);}['_clearShapeAdjustControls'](){const _0x1e1e0e=_0x196d4a;this[_0x1e1e0e(0x198)]['length']!==0x0&&(this[_0x1e1e0e(0x198)]['forEach'](_0x444c4e=>{const _0x34e1aa=_0x1e1e0e;_0x444c4e[_0x34e1aa(0x1cc)]();}),this[_0x1e1e0e(0x198)]=[]);}['_updateAdjustControlPositions'](){const _0x58349e=_0x196d4a;this[_0x58349e(0x2ae)]();}[_0x196d4a(0xc5)](_0x41e007,_0x304072){const _0x497121=_0x196d4a;var _0x3ebd95;let _0x5f0c7f={'x':0x0,'y':0x0};if(!_0x41e007||!_0x304072)return _0x5f0c7f;let _0x4740cf=this['_renderManagerService'][_0x497121(0xd7)](_0x41e007);if(!_0x4740cf||!_0x4740cf[_0x497121(0x2a0)](_0x7b1452)['getSkeleton'](_0x304072))return _0x5f0c7f;let _0x2f4c1e=_0x4740cf[_0x497121(0x2a0)](_0x538622),_0x31085a=_0x2f4c1e==null?void 0x0:_0x2f4c1e[_0x497121(0xd8)]();if(!_0x31085a)return _0x5f0c7f;let _0x29c44a=(_0x3ebd95=this[_0x497121(0x17a)][_0x497121(0x2da)](_0x41e007))==null?void 0x0:_0x3ebd95[_0x497121(0x1f0)](_0x304072);if(!_0x29c44a)return _0x5f0c7f;let _0x3175a5=_0x2e8aa3(_0x31085a['sheetViewStartRow'],_0x31085a[_0x497121(0x10c)],_0x4740cf['scene'],_0x29c44a);return _0x3175a5?{'x':_0x3175a5['viewportScrollX'],'y':_0x3175a5['viewportScrollY']}:_0x5f0c7f;}[_0x196d4a(0x20c)](_0x26b2c1,_0xaf9044){const _0x365aed=_0x196d4a;var _0x9ecc14;let _0x3298eb=(_0x9ecc14=this[_0x365aed(0x17a)][_0x365aed(0x2da)](_0x26b2c1))==null?void 0x0:_0x9ecc14[_0x365aed(0x1f0)](_0xaf9044);return(_0x3298eb==null?void 0x0:_0x3298eb[_0x365aed(0x2fa)]())??0x1;}[_0x196d4a(0x27c)](_0x35c8c7,_0x1c37d5,_0x15e90d){const _0xda7ed6=_0x196d4a;this[_0xda7ed6(0x335)](_0x46ac89(_0x35c8c7['onPointerDown$']['subscribeEvent']((_0x378704,_0x41fe33)=>{const _0x53289a=_0xda7ed6;var _0x3d3cea,_0x5d489f,_0x8ae67b,_0x1d9c9d;let _0x2ac4f2=_0x35c8c7[_0x53289a(0x35c)]();this[_0x53289a(0x15a)]=this['_getShapeAdjustInfosById'](_0x2ac4f2[_0x53289a(0x263)],_0x2ac4f2[_0x53289a(0x2f3)],_0x2ac4f2['drawingId'],_0x15e90d),this[_0x53289a(0x1ef)]=this[_0x53289a(0x309)][_0x53289a(0xe6)](_0x2ac4f2[_0x53289a(0x263)],_0x2ac4f2[_0x53289a(0x2f3)],_0x2ac4f2[_0x53289a(0x14c)]);let _0x143db7=this[_0x53289a(0x23e)][_0x53289a(0xc7)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x53289a(0x2fb)]}),{transform:_0x5d0882}=_0x143db7;if(_0x5d0882){let {left:_0x470a6c,top:_0x2d2254,width:_0x13b0ec,height:_0x57e4c4}=_0x5d0882;this[_0x53289a(0x307)]=_0x470a6c||0x0,this[_0x53289a(0x1f7)]=_0x2d2254||0x0,this[_0x53289a(0x220)]=_0x13b0ec||0x0,this['_baseShapeHeight']=_0x57e4c4||0x0;}let _0x1b939c=!!((_0x3d3cea=_0x143db7['transform'])!=null&&_0x3d3cea[_0x53289a(0x362)]),_0x251161=!!((_0x5d489f=_0x143db7[_0x53289a(0x311)])!=null&&_0x5d489f[_0x53289a(0x1ac)]),_0x147279=((_0x8ae67b=_0x143db7[_0x53289a(0x311)])==null?void 0x0:_0x8ae67b[_0x53289a(0x237)])||0x0;this[_0x53289a(0x1df)]=!0x0,_0x1c37d5['disableObjectsEvent']();let _0x4e5be3={...((_0x1d9c9d=this[_0x53289a(0x15a)])==null?void 0x0:_0x1d9c9d[_0x53289a(0x17f)])??{}};this[_0x53289a(0x330)]=_0x1c37d5[_0x53289a(0x2cd)][_0x53289a(0xcf)]((_0x599220,_0x16143b)=>{const _0xfb46ed=_0x53289a;if(!this[_0xfb46ed(0x1df)])return;let {offsetX:_0xcb5df8,offsetY:_0x1e7089}=_0x599220,_0x10e486=this[_0xfb46ed(0x15a)];if(this[_0xfb46ed(0x1ef)]&&_0x10e486){_0x1c37d5['disableObjectsEvent'](),_0x1c37d5[_0xfb46ed(0x373)](_0x35998d['CROSSHAIR']);let _0x1bd3a3={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0xfb46ed(0x266)]},_0x66fede=this[_0xfb46ed(0xc5)](this[_0xfb46ed(0x204)],this[_0xfb46ed(0x19d)]),_0x4401bd=this[_0xfb46ed(0x20c)](this[_0xfb46ed(0x204)],this['_subUnitId']),_0x5101a2=_0xcb5df8/_0x4401bd+_0x66fede['x']-this[_0xfb46ed(0x307)],_0x53e969=_0x1e7089/_0x4401bd+_0x66fede['y']-this[_0xfb46ed(0x1f7)];if(_0x147279!==0x0){let _0x213ff8=this[_0xfb46ed(0x220)]/0x2,_0x3d4264=this[_0xfb46ed(0x266)]/0x2,_0x2e09fb=_0x147279*Math['PI']/0xb4,_0x3c4352=Math['cos'](_0x2e09fb),_0x356052=Math[_0xfb46ed(0x1dc)](_0x2e09fb),_0x326e6f=_0x5101a2-_0x213ff8,_0x1d8968=_0x53e969-_0x3d4264;_0x5101a2=_0x213ff8+(_0x326e6f*_0x3c4352+_0x1d8968*_0x356052),_0x53e969=_0x3d4264+(-_0x326e6f*_0x356052+_0x1d8968*_0x3c4352);}_0x1b939c&&(_0x5101a2=this[_0xfb46ed(0x220)]-_0x5101a2),_0x251161&&(_0x53e969=this[_0xfb46ed(0x266)]-_0x53e969);let _0x3f6c46={'x':_0x5101a2,'y':_0x53e969},_0x598c56=this[_0xfb46ed(0x1ef)][_0xfb46ed(0x105)](_0x1bd3a3,_0x3f6c46,_0x10e486,_0x1b939c,_0x251161);if(Object[_0xfb46ed(0x12c)](_0x598c56)[_0xfb46ed(0x1bc)]===0x0)return;for(let [_0x39386e,_0x2526b5]of Object[_0xfb46ed(0x383)](_0x598c56))this[_0xfb46ed(0x1ef)][_0xfb46ed(0x1b0)](_0x39386e,_0x2526b5);this[_0xfb46ed(0x1ef)][_0xfb46ed(0x385)]({'width':this['_baseShapeWidth'],'height':this[_0xfb46ed(0x266)]});let _0x36f13e=this[_0xfb46ed(0x23e)][_0xfb46ed(0xc7)]({'unitId':_0x2ac4f2[_0xfb46ed(0x263)],'subUnitId':_0x2ac4f2[_0xfb46ed(0x2f3)],'drawingId':_0x2ac4f2[_0xfb46ed(0x14c)]});_0x36f13e&&(this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x36f13e,_0x1c37d5),this[_0xfb46ed(0x2aa)]=this[_0xfb46ed(0x251)](_0x2ac4f2[_0xfb46ed(0x263)],_0x2ac4f2[_0xfb46ed(0x2f3)],_0x2ac4f2[_0xfb46ed(0x14c)]),this[_0xfb46ed(0x2f4)]());}_0x16143b['stopPropagation']();}),this[_0x53289a(0x12a)]=_0x1c37d5[_0x53289a(0x2a1)]['subscribeEvent']((_0x333e8d,_0x22f526)=>{const _0x272c61=_0x53289a;this[_0x272c61(0x330)]['unsubscribe'](),this[_0x272c61(0x12a)][_0x272c61(0x33c)](),_0x1c37d5[_0x272c61(0x130)]();let _0x1b63aa=this[_0x272c61(0x15a)];if(_0x1b63aa){let _0x3a274e=_0x2ac4f2['unitId'],_0x3e843b=_0x2ac4f2[_0x272c61(0x2f3)],_0x1a3a4a=_0x2ac4f2['drawingId'],_0x226e68={};for(let _0x11c47e of Object['keys'](_0x1b63aa[_0x272c61(0x17f)])){var _0x3383b6;let _0x417af8=(_0x3383b6=this[_0x272c61(0x1ef)])==null?void 0x0:_0x3383b6[_0x272c61(0x134)](_0x11c47e);_0x417af8!==void 0x0&&(_0x226e68[_0x11c47e]=_0x417af8);}Object[_0x272c61(0x12c)](_0x226e68)[_0x272c61(0x1bc)]>0x0&&Dr(this['_commandService'],_0x3a274e,_0x3e843b,_0x1a3a4a,{'oldShapeData':{'adjustValues':_0x4e5be3}},{'adjustValues':_0x226e68});}this['_activeAdjustInfo']=void 0x0,this[_0x272c61(0x1ef)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x22f526[_0x272c61(0x2fc)](),_0x1c37d5['enableObjectsEvent']();}),_0x41fe33['stopPropagation']();})));}['_registerDrawingMoveHandler'](){const _0x1fe560=_0x196d4a;let _0x4b2286=this[_0x1fe560(0x17a)][_0x1fe560(0x206)](_0x204504[_0x1fe560(0x205)]);this[_0x1fe560(0x335)](_0x4b2286['pipe'](_0x111568(_0x4e3bcc=>_0x4e3bcc?_0x4e3bcc[_0x1fe560(0xe2)][_0x1fe560(0xf5)](_0x111568(_0x43089d=>{const _0x37435c=_0x1fe560;if(!_0x43089d)return _0x929a31;let _0x59a757=_0x4e3bcc['getUnitId'](),_0x498458=this['_renderManagerService'][_0x37435c(0xd7)](_0x59a757),_0x475602=_0x498458==null?void 0x0:_0x498458[_0x37435c(0x142)];return _0x475602?_0x322e8d(_0x475602):_0x929a31;})):_0x929a31))[_0x1fe560(0x1ab)](_0x4b8564=>{const _0x45dd3d=_0x1fe560;let _0x528924=_0x4b8564[_0x45dd3d(0x384)]();this[_0x45dd3d(0x335)](_0x4b8564[_0x45dd3d(0x2cd)][_0x45dd3d(0xcf)](()=>{const _0x5f3737=_0x45dd3d;this[_0x5f3737(0xdc)];})),this[_0x45dd3d(0x335)](_0x528924[_0x45dd3d(0x115)]['subscribe'](_0x4f9c81=>{const _0x2330f1=_0x45dd3d;let {objects:_0x37255c}=_0x4f9c81;this[_0x2330f1(0x2ae)](),_0x37255c!==null&&_0x37255c[_0x2330f1(0x358)]===0x1&&_0x37255c[_0x2330f1(0x126)]()[_0x2330f1(0x116)]()[_0x2330f1(0x1b9)]instanceof J&&this[_0x2330f1(0x1e0)](!0x0);})),this[_0x45dd3d(0x335)](_0x528924['changing$']['subscribe'](()=>{const _0x2dd6ab=_0x45dd3d;this[_0x2dd6ab(0xdc)]&&this[_0x2dd6ab(0x128)]();})),this[_0x45dd3d(0x335)](_0x4b8564[_0x45dd3d(0x2a1)][_0x45dd3d(0xcf)](()=>{const _0x25828b=_0x45dd3d;this[_0x25828b(0xdc)]&&(this[_0x25828b(0x1e0)](!0x1),this['_createShapeAdjustControls']());})),this[_0x45dd3d(0x335)](_0x528924[_0x45dd3d(0xe4)][_0x45dd3d(0x1ab)](()=>{const _0x124e29=_0x45dd3d;this[_0x124e29(0x204)]&&this['_subUnitId']&&this['_activeShapeId']&&this[_0x124e29(0x23e)][_0x124e29(0xc7)]({'unitId':this[_0x124e29(0x204)],'subUnitId':this[_0x124e29(0x19d)],'drawingId':this[_0x124e29(0x2fb)]})&&(this['_activeShapeAdjustPointList']=this[_0x124e29(0x251)](this['_unitId'],this[_0x124e29(0x19d)],this[_0x124e29(0x2fb)]),this[_0x124e29(0x2f4)]());}));}));}[_0x196d4a(0x183)](){const _0x10667b=_0x196d4a;this[_0x10667b(0x335)](this[_0x10667b(0x232)][_0x10667b(0x33a)](_0x52af43=>{const _0x42e84f=_0x10667b;if(_0x52af43['id']!==_0x3ebd56['id'])return;let {unitId:_0x25dc5f,subUnitId:_0x5ceb3a,shapeId:_0x48841b}=_0x52af43[_0x42e84f(0x1a9)];_0x25dc5f===this['_unitId']&&_0x5ceb3a===this[_0x42e84f(0x19d)]&&_0x48841b===this['_activeShapeId']&&this[_0x42e84f(0x269)]();})),this[_0x10667b(0x335)](this[_0x10667b(0x23e)][_0x10667b(0x107)][_0x10667b(0x1ab)](_0x8b368=>{const _0x3fa7b5=_0x10667b;if(_0x8b368[_0x3fa7b5(0x1bc)]===0x1){let _0x71ba43=_0x8b368[0x0];if(_0x71ba43[_0x3fa7b5(0x27b)]===_0x123aa0[_0x3fa7b5(0x323)]&&this[_0x3fa7b5(0x17a)]['getUnitType'](_0x71ba43[_0x3fa7b5(0x263)])===_0x204504[_0x3fa7b5(0x205)]){this[_0x3fa7b5(0x2fb)]=_0x71ba43[_0x3fa7b5(0x14c)];let {unitId:_0x2e19e6,subUnitId:_0x1e35fc}=_0x71ba43;this[_0x3fa7b5(0x2aa)]=this['_getShapeAdjustPointListById'](_0x2e19e6,_0x1e35fc,this['_activeShapeId']),this[_0x3fa7b5(0x204)]=_0x2e19e6,this[_0x3fa7b5(0x19d)]=_0x1e35fc,this[_0x3fa7b5(0x128)](),this[_0x3fa7b5(0x2ae)]();return;}}this[_0x3fa7b5(0x2fb)]=null,this[_0x3fa7b5(0x2aa)]=void 0x0,this[_0x3fa7b5(0x204)]=null,this['_subUnitId']=null,this[_0x3fa7b5(0x128)]();})),this[_0x10667b(0x335)](this[_0x10667b(0x23e)][_0x10667b(0x131)][_0x10667b(0x1ab)](_0xb55056=>{const _0x1d0bdb=_0x10667b;if(_0xb55056[_0x1d0bdb(0x1bc)]===0x1){var _0x1fc96e;let _0x26e655=_0xb55056[0x0];((_0x1fc96e=this['_drawingManagerService'][_0x1d0bdb(0xc7)](_0x26e655))==null?void 0x0:_0x1fc96e[_0x1d0bdb(0x27b)])===_0x123aa0['DRAWING_SHAPE']&&this[_0x1d0bdb(0x210)](!0x0);}})),this[_0x10667b(0x335)](this[_0x10667b(0x23e)][_0x10667b(0x10d)][_0x10667b(0x1ab)](_0x28c644=>{const _0x44021e=_0x10667b;for(let _0x5f2bda of _0x28c644)this[_0x44021e(0x2fb)]===_0x5f2bda[_0x44021e(0x14c)]&&(this[_0x44021e(0x2fb)]=null,this['_activeShapeAdjustPointList']=void 0x0,this['_unitId']=null,this[_0x44021e(0x19d)]=null,this['_clearShapeAdjustControls']());}));}};Pr=X([Y(0x0,_0x446eb2),Y(0x1,_0x14bfc1(_0x13b053)),Y(0x2,_0x14bfc1(_0x4dadf2)),Y(0x3,_0x14bfc1(Z)),Y(0x4,_0x46c185),Y(0x5,_0x153d8f)],Pr);const Fr={'id':_0x196d4a(0xf9),'type':_0x36ba27[_0x196d4a(0x22a)],'handler':(_0x2b8355,_0x1d0480)=>{const _0x4e5013=_0x196d4a;let _0x2f792d=_0x2b8355[_0x4e5013(0x100)](_0x446eb2),_0x709e17=_0x2b8355[_0x4e5013(0x100)](_0x4dadf2),_0xc8737d=_0x2b8355[_0x4e5013(0x100)](Pr);if(_0x1d0480==null)return!0x0;if(_0x1d0480[_0x4e5013(0x1bc)]>0x0){var _0x4f101c;let _0x26f8c7=(_0x4f101c=_0x709e17[_0x4e5013(0xd7)](_0x1d0480[0x0][_0x4e5013(0x263)]))==null?void 0x0:_0x4f101c[_0x4e5013(0x142)];if(_0x26f8c7){let {unitId:_0x2b9473,subUnitId:_0x2c893c,drawingId:_0x9e8c}=_0x1d0480[0x0],_0x33bee4=_0x934411({'unitId':_0x2b9473,'subUnitId':_0x2c893c,'drawingId':_0x9e8c},void 0x0),_0xb7e5fd=_0x26f8c7[_0x4e5013(0x2b5)](_0x33bee4);if(_0xb7e5fd){var _0x199801;(_0x199801=_0x709e17[_0x4e5013(0xd7)](_0x1d0480[0x0][_0x4e5013(0x263)]))==null||(_0x199801=_0x199801[_0x4e5013(0x142)]['getTransformer']())==null||_0x199801[_0x4e5013(0xdd)](_0xb7e5fd);}}_0x2f792d['focusDrawing'](_0x1d0480),_0xc8737d[_0x4e5013(0x1e0)](!0x1);}return!0x0;}},Ir={'type':_0x36ba27[_0x196d4a(0x215)],'id':_0x196d4a(0x124),'handler':async(_0x4659f7,_0x509e35)=>{const _0x415372=_0x196d4a;let _0x1fea76=_0x3e1b5c(_0x4659f7[_0x415372(0x100)](_0x46c185));if(!_0x1fea76)return!0x1;let _0x385a77=_0x4659f7['get'](_0xf5394)[_0x415372(0x300)]();if(!_0x385a77)return!0x1;let _0x304367=_0x4659f7[_0x415372(0x100)](_0x153d8f),{unitId:_0x5576bf,subUnitId:_0x401db5}=_0x1fea76,{value:_0x44e6c8,enhanceParams:_0x68c083}=_0x509e35,{range:_0x122123}=_0x385a77,_0x426b58={'unitId':_0x5576bf,'subUnitId':_0x401db5,'shapeType':_0x44e6c8,'range':_0x122123,'shapeId':_0xc50b92()};if(_0x68c083){let _0x5511f4=_0x22e615(_0x44e6c8),_0x5a2783=_0x44e6c8===_0xc016ca[_0x415372(0x29c)];_0x5511f4&&(_0x68c083[_0x415372(0x334)]||_0x68c083[_0x415372(0x113)])&&(_0x426b58[_0x415372(0x2cf)]={'ln':{'startArrow':_0x68c083[_0x415372(0x334)]?{'type':_0x3f977e['Arrow'],'size':_0x2f917e[_0x415372(0x164)]}:void 0x0,'endArrow':_0x68c083[_0x415372(0x113)]?{'type':_0x3f977e[_0x415372(0x272)],'size':_0x2f917e[_0x415372(0xe1)]}:void 0x0}}),_0x5a2783&&(_0x68c083['horizontal']||_0x68c083[_0x415372(0x1ad)])&&(_0x426b58['shapeData']=_0x474a1d({'fill':{'fillType':_0xcb9b68[_0x415372(0x11a)],'color':_0x415372(0x25a)},'isHorizontal':!!_0x68c083[_0x415372(0x2a8)],'stroke':{'lineStrokeType':_0x291db2['SolidLine'],'width':0x1,'color':'#bcbcbc'}}));}let _0x4b2348=_0x304367[_0x415372(0x227)](_0x258890['id'],_0x426b58);return setTimeout(()=>{const _0x5c7f5a=_0x415372;_0x304367[_0x5c7f5a(0x152)](Fr['id'],[{'unitId':_0x5576bf,'subUnitId':_0x401db5,'drawingId':_0x426b58[_0x5c7f5a(0x26c)]}]);},0xc8),_0x4b2348;}},Lr=_0x196d4a(0x138),Rr=_0x196d4a(0x2e8),zr=_0x196d4a(0x1a1),Br=_0x196d4a(0x137),Vr=_0x36e2be(_0x196d4a(0x21e)),Hr=_0x196d4a(0x1ed),Ur={'id':'sheet.operation.open-shape-object-list-panel','type':_0x36ba27['COMMAND'],'handler':(_0x13af98,_0x1d70b8)=>{const _0x40012a=_0x196d4a;let _0xaf2cba=_0x13af98[_0x40012a(0x100)](_0x6f2b47),_0x1db037=_0x13af98['get'](_0x407e83),_0x42c762=_0x13af98[_0x40012a(0x100)](_0x46c185),_0x15241d=_0x13af98[_0x40012a(0x100)](_0x153d8f);return _0x3e1b5c(_0x42c762)?(_0x1d70b8==null?void 0x0:_0x1d70b8[_0x40012a(0x1b9)])===_0x40012a(0x29a)?(_0xaf2cba['close'](Rr),!0x0):(_0xaf2cba['open']({'id':Rr,'header':{'title':_0x1db037['t'](_0x40012a(0x28c))},'children':{'label':Rr},'onClose':()=>{_0x15241d['syncExecuteCommand'](_0x4ec468['id'],[]);},'width':0x168}),!0x0):!0x1;}},Wr={'type':_0x36ba27['OPERATION'],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!0x0;}};function Gr(_0x4c853e){const _0x32e2f1=_0x196d4a;let _0x301da2=_0x4c853e[_0x32e2f1(0x100)](_0x446eb2)['getFocusDrawings'](),_0x1503ae=_0x301da2[_0x32e2f1(0x1bc)]===0x1?_0x301da2[0x0]:null;if(!_0x1503ae||_0x1503ae[_0x32e2f1(0x27b)]!==_0x123aa0['DRAWING_SHAPE'])return null;let _0x486828=_0x4c853e['get'](_0x13b053),_0x3569ed=_0x486828[_0x32e2f1(0x16a)](_0x1503ae['unitId'],_0x1503ae['subUnitId'],_0x1503ae['drawingId']),_0x489360=_0x486828[_0x32e2f1(0xf0)](_0x1503ae['unitId'],_0x1503ae[_0x32e2f1(0x2f3)],_0x1503ae['drawingId']);return _0x3569ed===void 0x0||!_0x489360?null:{'drawing':_0x1503ae,'shapeData':_0x489360,'shapeType':_0x3569ed};}const Kr={'id':_0x196d4a(0x1f4),'type':_0x36ba27[_0x196d4a(0x22a)],'handler':(_0x8048fe,_0x5aaa36)=>{const _0x4865b7=_0x196d4a;let _0x55e0f5=Gr(_0x8048fe),_0x3b2480=_0x321892((_0x5aaa36==null?void 0x0:_0x5aaa36[_0x4865b7(0x33d)])??(_0x5aaa36==null?void 0x0:_0x5aaa36[_0x4865b7(0x1b9)])??'');if(!_0x55e0f5||!_0x3b2480||_0x3b2480[_0x4865b7(0x104)]!==_0x50f87c(_0x55e0f5[_0x4865b7(0x2cf)]))return!0x1;let _0x231e18=_0x5725f8(_0x55e0f5[_0x4865b7(0x2cf)],_0x3b2480);if(!_0x231e18)return!0x1;let {drawing:_0x36d969}=_0x55e0f5;return _0x8048fe[_0x4865b7(0x100)](_0x153d8f)[_0x4865b7(0x152)](K['id'],{'unitId':_0x36d969[_0x4865b7(0x263)],'subUnitId':_0x36d969[_0x4865b7(0x2f3)],'shapeId':_0x36d969[_0x4865b7(0x14c)],'shapeData':_0x231e18,'oldShapeJSON':{'oldShapeData':_0x55e0f5[_0x4865b7(0x2cf)]}});}},qr={'id':_0x196d4a(0x139),'type':_0x36ba27[_0x196d4a(0x22a)],'handler':(_0x92482c,_0x270fd1)=>{const _0x39b8df=_0x196d4a;let _0x1a08e0=Gr(_0x92482c),_0x40c898=(_0x270fd1==null?void 0x0:_0x270fd1['shapeType'])??(_0x270fd1==null?void 0x0:_0x270fd1[_0x39b8df(0x1b9)]);if(!_0x1a08e0||!_0x40c898||_0x22e615(_0x1a08e0[_0x39b8df(0x327)])||_0x22e615(_0x40c898))return!0x1;let _0x23ae9d=_0x1bfbb7(_0x1a08e0[_0x39b8df(0x2cf)],_0x40c898);if(!_0x23ae9d)return!0x1;let {drawing:_0xb7e39a}=_0x1a08e0;return _0x92482c['get'](_0x153d8f)[_0x39b8df(0x152)](K['id'],{'unitId':_0xb7e39a[_0x39b8df(0x263)],'subUnitId':_0xb7e39a[_0x39b8df(0x2f3)],'shapeId':_0xb7e39a[_0x39b8df(0x14c)],'shapeType':_0x40c898,'shapeData':_0x23ae9d,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x1a08e0[_0x39b8df(0x327)],'oldShapeData':_0x1a08e0[_0x39b8df(0x2cf)]}});}};let Q=class extends _0x116f11{constructor(_0x29c921,_0x402d5c){const _0x509961=_0x196d4a;super(),this[_0x509961(0xf6)]=_0x29c921,this['_drawingManagerService']=_0x402d5c,this[_0x509961(0x277)](),this[_0x509961(0xf6)]['setCanUseShapeClip'](!0x0),this[_0x509961(0x335)]({'dispose':()=>this['_clipService'][_0x509961(0x108)](!0x1)});}[_0x196d4a(0x277)](){const _0x2877f5=_0x196d4a;let _0x9e521d=this['_clipService'],_0x2e4949=new Map(),_0x39f820=_0x9e521d[_0x2877f5(0x301)]((_0x5db9b2,_0x4274a4,_0x1bdf54,_0x3b0c95,_0x1b0736)=>{const _0x200979=_0x2877f5;let _0x1203d5=_0x4274a4;if(_0x1203d5===_0xc016ca[_0x200979(0x167)]||_0x4274a4===_0x200979(0x1bf))return!0x1;try{let _0x588291=_0x2e4949[_0x200979(0x100)](_0x4274a4);return _0x588291||(_0x588291=new _0x2d7016(_0x1203d5,'clip-'+_0x4274a4),_0x2e4949[_0x200979(0x127)](_0x4274a4,_0x588291)),_0x588291[_0x200979(0x2ac)](),_0x1b0736&&Object[_0x200979(0x12c)](_0x1b0736)[_0x200979(0x1bc)]>0x0&&_0x588291[_0x200979(0x336)]({'adjustValues':_0x1b0736},!0x0),_0x588291[_0x200979(0x385)]({'width':_0x1bdf54,'height':_0x3b0c95}),_0x588291['buildClipPath'](_0x5db9b2,{'left':0x0,'top':0x0,'width':_0x1bdf54,'height':_0x3b0c95});}catch{return!0x1;}});this['disposeWithMe'](_0x39f820),this[_0x2877f5(0x335)]({'dispose':()=>_0x2e4949[_0x2877f5(0x1b6)]()});}[_0x196d4a(0x2c4)](_0x10e5d3,_0x2ea073,_0x2bfda7,_0x201c58,_0x355b64){const _0x183415=_0x196d4a;let _0x4d8a51=this['_drawingManagerService'][_0x183415(0x37c)](_0x10e5d3,_0x2ea073);if(!_0x4d8a51[_0x2bfda7])return;let _0x1d0a89={..._0x4d8a51[_0x2bfda7],'prstGeom':_0x201c58,'adjustValues':_0x355b64};this[_0x183415(0x23e)]['featurePluginUpdateNotification']([_0x1d0a89]);}};Q=X([Y(0x0,_0x14bfc1(_0x264f1f)),Y(0x1,_0x14bfc1(_0x446eb2))],Q);const Jr=_0x196d4a(0x149),Yr=_0x196d4a(0x231);function Xr({onShapeClick:_0x6bc1dd,excludeGroups:_0x42ef69}){return _0x39d578(_0x582181,{'excludeGroups':_0x42ef69,'onShapeClick':_0x6bc1dd,'scrollContainer':'parent'});}function Zr(){const _0x15a17f=_0x196d4a;let _0x538745=_0x508bbd(_0x446eb2),_0x214ad1=_0x508bbd(Q);return _0x39d578(_0x1f8e20,{'buttonLabel':_0x15a17f(0x1e7),'excludeGroups':[_0x1c44ee['Line']],'onShapeClick':_0x13630=>{const _0x50b853=_0x15a17f;let _0x2c1bf7=_0x538745[_0x50b853(0x31a)]()[_0x50b853(0x10a)](_0x37de56=>_0x37de56[_0x50b853(0x27b)]===_0x123aa0['DRAWING_IMAGE']);if(!_0x2c1bf7)return;let {unitId:_0x35678c,subUnitId:_0x39b622,drawingId:_0x345044}=_0x2c1bf7;_0x214ad1['clipByShape'](_0x35678c,_0x39b622,_0x345044,_0x13630[_0x50b853(0x104)]);}});}function Qr(){const _0x57a1a2=_0x196d4a;let _0x1c448a=_0x508bbd(_0x446eb2),_0x254892=_0x508bbd(Q);return _0x39d578(_0x1f8e20,{'buttonLabel':_0x57a1a2(0x1e7),'excludeGroups':[_0x1c44ee[_0x57a1a2(0x265)]],'DropdownComponent':_0x400434,'onShapeClick':_0x4504cf=>{const _0x1fdb89=_0x57a1a2;let _0x5ae62d=_0x1c448a[_0x1fdb89(0x31a)]()['find'](_0x582185=>_0x582185[_0x1fdb89(0x27b)]===_0x123aa0[_0x1fdb89(0x258)]);if(!_0x5ae62d)return;let {unitId:_0x585dda,subUnitId:_0x556cc2,drawingId:_0x248c06}=_0x5ae62d;_0x254892[_0x1fdb89(0x2c4)](_0x585dda,_0x556cc2,_0x248c06,_0x4504cf[_0x1fdb89(0x104)]);}});}function $r(){const _0x22e00e=_0x196d4a;let _0x5ed371=_0x508bbd(_0x1db2df),_0x2e196f=_0x508bbd(_0x446eb2),_0x3d93a1=_0x508bbd(_0x46c185),_0x300941=_0x2e196f[_0x22e00e(0x31a)]()[0x0],_0x190195=_0x300941?_0x3d93a1[_0x22e00e(0x256)](_0x300941[_0x22e00e(0x263)]):void 0x0,_0x3ce7b9=_0x190195===_0x204504[_0x22e00e(0x189)]?_0x22e00e(0x2ab):_0x190195===_0x204504[_0x22e00e(0x205)]?Yr:void 0x0,_0x5552f3=_0x3ce7b9?_0x5ed371[_0x22e00e(0x100)](_0x3ce7b9):void 0x0;return _0x5552f3?_0x39d578(_0x5552f3,{}):null;}function ei(){let _0x55b6b4=_0x508bbd(_0x153d8f);return _0x39d578(Xr,{'onShapeClick':_0xaf16b3=>{const _0xa3d737=_0x165f;_0x55b6b4['executeCommand'](Ir['id'],{'value':_0xaf16b3[_0xa3d737(0x104)],'enhanceParams':{'endArrow':_0xaf16b3['endArrow'],'startArrow':_0xaf16b3['startArrow'],'horizontal':_0xaf16b3['horizontal'],'vertical':_0xaf16b3[_0xa3d737(0x1ad)]}});}});}function ti(){return _0x39d578(ei,{});}function ni(_0x54ff20){const _0x273cfd=_0x196d4a;let _0x119855=_0x54ff20[_0x273cfd(0x100)](_0x46c185);return{'id':Ir['id'],'type':_0x1e3d30[_0x273cfd(0x2c0)],'selections':[{'label':{'name':Jr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Ir['id']}}}],'icon':_0x273cfd(0x14a),'tooltip':_0x273cfd(0x369),'activated$':_0x548ef1(_0x119855,!0x1,()=>new _0x4bb236(_0x420330=>{const _0x4bd272=_0x273cfd;_0x420330[_0x4bd272(0x116)](!0x1);})),'hidden$':_0x2f5a15(_0x54ff20,_0x204504[_0x273cfd(0x205)]),'disabled$':_0x5fe679(_0x54ff20)};}function ri(_0x56cd54){const _0x28d00f=_0x196d4a;let _0x24d95d=_0x56cd54[_0x28d00f(0x100)](_0x46c185);return{'id':Ur['id'],'type':_0x1e3d30[_0x28d00f(0x287)],'icon':_0x28d00f(0x38d),'title':'sheets-shape-ui.objectListPanel.open','tooltip':_0x28d00f(0x26d),'activated$':_0x548ef1(_0x24d95d,!0x1,()=>new _0x4bb236(_0x51b1ad=>{_0x51b1ad['next'](!0x1);})),'hidden$':_0x2f5a15(_0x56cd54,_0x204504[_0x28d00f(0x205)]),'disabled$':_0x5fe679(_0x56cd54)};}const ii='sheet.menu.shape.flip-horizontal',ai='sheet.menu.shape.flip-vertical';function oi(_0x59b0ba){const _0x376118=_0x196d4a;let _0x2acc25=_0x59b0ba['get'](_0x446eb2)[_0x376118(0x31a)]();return _0x2acc25[_0x376118(0x1bc)]===0x1&&_0x2acc25[0x0]['drawingType']===_0x123aa0['DRAWING_SHAPE']?_0x2acc25[0x0]:null;}function si(_0x22dbbd){const _0x4a6475=_0x196d4a;let _0x51d5b9=_0x22dbbd[_0x4a6475(0x100)](_0x446eb2);return _0x51d5b9[_0x4a6475(0x107)][_0x4a6475(0xf5)](_0x2cd3b2(_0x51d5b9[_0x4a6475(0x31a)]()),_0x4fdaa9(_0x424c12=>_0x424c12[_0x4a6475(0x1bc)]!==0x1||_0x424c12[0x0]['drawingType']!==_0x123aa0[_0x4a6475(0x323)]));}function ci(_0x187b2d){const _0x32044a=_0x196d4a;return{'id':ii,'commandId':_0x3e0bbc['id'],'type':_0x1e3d30['BUTTON'],'title':_0x32044a(0x143),'tooltip':'sheets-shape-ui.flipHorizontal','icon':_0x32044a(0x136),'hidden$':si(_0x187b2d),'params':()=>{const _0x31accc=_0x32044a;let _0x5dbf50=oi(_0x187b2d);return _0x5dbf50?{'unitId':_0x5dbf50[_0x31accc(0x263)],'subUnitId':_0x5dbf50[_0x31accc(0x2f3)],'shapeId':_0x5dbf50[_0x31accc(0x14c)],'flipH':!0x0}:void 0x0;}};}function li(_0x11489b){const _0x19078=_0x196d4a;return{'id':ai,'commandId':_0x3e0bbc['id'],'type':_0x1e3d30['BUTTON'],'title':_0x19078(0xcc),'tooltip':_0x19078(0xcc),'icon':_0x19078(0x12b),'hidden$':si(_0x11489b),'params':()=>{const _0x31b189=_0x19078;let _0x979f76=oi(_0x11489b);return _0x979f76?{'unitId':_0x979f76[_0x31b189(0x263)],'subUnitId':_0x979f76['subUnitId'],'shapeId':_0x979f76[_0x31b189(0x14c)],'flipV':!0x0}:void 0x0;}};}const ui=_0x196d4a(0x1a3),di=_0x196d4a(0x118),fi=_0x196d4a(0x32d),pi=_0x196d4a(0x199);function mi(){let _0x5d1e3a=_0x508bbd(_0x153d8f),_0x242e81=_0x508bbd(_0x446eb2),_0x1a59e9=_0x508bbd(_0x13b053),_0x49110a=()=>{const _0x7a7f73=_0x165f;var _0x1b3d8e;let _0x2b39bc=_0x242e81[_0x7a7f73(0x31a)]();if(_0x2b39bc[_0x7a7f73(0x1bc)]!==0x1||((_0x1b3d8e=_0x2b39bc[0x0])==null?void 0x0:_0x1b3d8e[_0x7a7f73(0x27b)])!==_0x123aa0[_0x7a7f73(0x323)])return null;let {unitId:_0x23a6a7,subUnitId:_0x4ef802,drawingId:_0x129b93}=_0x2b39bc[0x0],_0x337909=_0x1a59e9[_0x7a7f73(0x16a)](_0x23a6a7,_0x4ef802,_0x129b93),_0x2e2bdb=_0x1a59e9[_0x7a7f73(0xf0)](_0x23a6a7,_0x4ef802,_0x129b93);return _0x337909===void 0x0||!_0x2e2bdb?null:{'unitId':_0x23a6a7,'subUnitId':_0x4ef802,'drawingId':_0x129b93,'shapeType':_0x337909,'shapeData':_0x2e2bdb};},_0x216c5c=_0x49d454(()=>new _0x4bb236(_0x513a8e=>{const _0x275208=_0x165f;let _0x486998=()=>_0x513a8e[_0x275208(0x116)](_0x49110a()),_0x146043=_0x242e81[_0x275208(0x107)]['subscribe'](_0x486998),_0x233cea=_0x5d1e3a[_0x275208(0x33a)](_0x26555c=>{_0x26555c['id']===_0x3ebd56['id']&&_0x486998();});return _0x486998(),()=>{const _0x2fc291=_0x275208;_0x146043[_0x2fc291(0x33c)](),_0x233cea[_0x2fc291(0x1cc)]();};}),_0x49110a(),!0x1,[_0x5d1e3a,_0x242e81,_0x1a59e9]);return{'selection':_0x216c5c,'updateShapeData':_0x381aaa=>{const _0x1206e8=_0x165f;_0x216c5c&&Dr(_0x5d1e3a,_0x216c5c[_0x1206e8(0x263)],_0x216c5c['subUnitId'],_0x216c5c[_0x1206e8(0x14c)],{'oldShapeData':_0x216c5c[_0x1206e8(0x2cf)]},_0x381aaa);}};}function hi(){const _0x4f7b49=_0x196d4a;let {selection:_0x4f8e16,updateShapeData:_0x3c6146}=mi();return _0x4f8e16?_0x39d578(_0x3da966,{'shapeData':_0x4f8e16[_0x4f7b49(0x2cf)],'shapeType':_0x4f8e16['shapeType'],'onUpdateShapeData':_0x3c6146}):null;}function gi(){const _0x2476c0=_0x196d4a;let _0x51c7f7=_0x508bbd(_0x153d8f),_0x5f4660=_0x508bbd(_0x407e83),{selection:_0x3f66d7}=mi();return _0x3f66d7?_0x39d578(_0x1f258e,{'type':_0x50f87c(_0x3f66d7[_0x2476c0(0x2cf)]),'ariaLabel':_0x5f4660['t']('sheets-shape-ui.quickStyles'),'activePresetId':_0x311965(_0x3f66d7[_0x2476c0(0x2cf)]),'onSelect':_0x521d02=>_0x51c7f7['executeCommand'](Kr['id'],{'presetId':_0x521d02})}):null;}function _i(){const _0x381b2f=_0x196d4a;let {selection:_0x677e45,updateShapeData:_0x4e63f5}=mi();return _0x677e45?_0x39d578(_0x1d4f6a,{'fontFamilyPopupDataComponent':_0x381b2f(0x352),'shapeData':_0x677e45['shapeData'],'onUpdateShapeData':_0x4e63f5}):null;}function vi(){const _0xcc9c3d=_0x196d4a;var _0x6b1860;let {selection:_0x2176a8,updateShapeData:_0x4955ac}=mi(),_0x5d4d81=_0x223293({'hostType':_0x204504[_0xcc9c3d(0x205)],'unitId':(_0x2176a8==null?void 0x0:_0x2176a8[_0xcc9c3d(0x263)])??'','subUnitId':(_0x2176a8==null?void 0x0:_0x2176a8[_0xcc9c3d(0x2f3)])??'','shapeId':(_0x2176a8==null?void 0x0:_0x2176a8[_0xcc9c3d(0x14c)])??'','shapeData':_0x2176a8==null?void 0x0:_0x2176a8['shapeData'],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0xcc9c3d(0x106),'onUpdateBinding':_0x44d635=>_0x4955ac({'formulaBinding':_0x44d635})}),_0x3f8f8b=((_0x6b1860=_0x5d4d81['extensionGroups'])==null?void 0x0:_0x6b1860[_0xcc9c3d(0x2b6)](_0x170142=>_0x170142[_0xcc9c3d(0x304)])['filter'](_0x50912d=>_0x50912d[_0xcc9c3d(0x339)]!==!0x1))??[];return _0x2176a8!=null&&_0x2176a8[_0xcc9c3d(0x2cf)][_0xcc9c3d(0x175)]?_0x39d578(_0x71cd10,{'actions':_0x3f8f8b,'panel':_0x5d4d81[_0xcc9c3d(0x357)]}):null;}const yi=_0x196d4a(0x344),bi=_0x196d4a(0x1c6),xi=_0x196d4a(0x201),Si=_0x196d4a(0x125),Ci=_0x196d4a(0x2bc),wi='sheets-shape-ui.ribbon.shape-format.arrange-front',Ti=_0x196d4a(0xfc);function Ei(_0x1d7c00){const _0x1c9634=_0x196d4a;let _0xabddb2=_0x1d7c00[_0x1c9634(0x100)](_0x153d8f),_0x6dd406=_0x1d7c00[_0x1c9634(0x100)](_0x446eb2),_0x572cd3=_0x1d7c00[_0x1c9634(0x100)](_0x13b053);return new _0x4bb236(_0x2d4751=>{const _0x3ac92c=_0x1c9634;let _0x189857=()=>{const _0x3328d4=_0x165f;let _0x5ea93b=Di(_0x1d7c00),_0x33b59c=_0x5ea93b?_0x572cd3['getShapeDataById'](_0x5ea93b['unitId'],_0x5ea93b['subUnitId'],_0x5ea93b[_0x3328d4(0x14c)]):null;_0x2d4751[_0x3328d4(0x116)](_0x33b59c?_0x311965(_0x33b59c)??'':'');},_0x3f9622=_0x6dd406[_0x3ac92c(0x107)][_0x3ac92c(0x1ab)](_0x189857),_0x39ab70=_0xabddb2[_0x3ac92c(0x33a)](_0x4479f3=>{_0x4479f3['id']===_0x3ebd56['id']&&_0x189857();});return _0x189857(),()=>{const _0x1dfb38=_0x3ac92c;_0x3f9622[_0x1dfb38(0x33c)](),_0x39ab70[_0x1dfb38(0x1cc)]();};});}function Di(_0x58ef9b){const _0x2c6da8=_0x196d4a;var _0x4e1d9d;let _0x586e94=_0x58ef9b[_0x2c6da8(0x100)](_0x446eb2)[_0x2c6da8(0x31a)]();return _0x586e94[_0x2c6da8(0x1bc)]===0x1&&((_0x4e1d9d=_0x586e94[0x0])==null?void 0x0:_0x4e1d9d[_0x2c6da8(0x27b)])===_0x123aa0[_0x2c6da8(0x323)]?_0x586e94[0x0]:null;}function Oi(_0x58a556,_0x946700=!0x1){const _0x1c00f7=_0x196d4a;let _0x25eb43=_0x58a556[_0x1c00f7(0x100)](_0x153d8f),_0x3f55ba=_0x58a556[_0x1c00f7(0x100)](_0x446eb2),_0x3d3f76=_0x58a556['get'](_0x13b053);return new _0x4bb236(_0x2de255=>{const _0x26ac12=_0x1c00f7;let _0x1caf5f=()=>{const _0x472877=_0x165f;let _0x9cb340=Di(_0x58a556);if(!_0x9cb340){_0x2de255[_0x472877(0x116)](!0x0);return;}let _0x388a23=_0x3d3f76[_0x472877(0xf0)](_0x9cb340[_0x472877(0x263)],_0x9cb340[_0x472877(0x2f3)],_0x9cb340[_0x472877(0x14c)]);_0x2de255['next'](!_0x388a23||_0x946700&&_0x388a23[_0x472877(0x175)]==null);},_0x2df15b=_0x3f55ba[_0x26ac12(0x107)]['subscribe'](_0x1caf5f),_0x3dfdcc=_0x25eb43['onCommandExecuted'](_0xea89d4=>{_0xea89d4['id']===_0x3ebd56['id']&&_0x1caf5f();});return _0x1caf5f(),()=>{const _0x336b61=_0x26ac12;_0x2df15b['unsubscribe'](),_0x3dfdcc[_0x336b61(0x1cc)]();};});}function ki(_0x517376){const _0x21c3cc=_0x196d4a;let _0x173462=_0x517376[_0x21c3cc(0x100)](_0x446eb2),_0x38b65f=_0x517376[_0x21c3cc(0x100)](_0x13b053);return _0x173462[_0x21c3cc(0x107)]['pipe'](_0x2cd3b2(_0x173462[_0x21c3cc(0x31a)]()),_0x4fdaa9(()=>{const _0x2749fb=_0x21c3cc;let _0x49d7c0=Di(_0x517376),_0x5e6cc5=_0x49d7c0?_0x38b65f[_0x2749fb(0x16a)](_0x49d7c0[_0x2749fb(0x263)],_0x49d7c0[_0x2749fb(0x2f3)],_0x49d7c0[_0x2749fb(0x14c)]):void 0x0;return _0x5e6cc5===void 0x0||_0x22e615(_0x5e6cc5);}));}function Ai(_0x2a9a51){const _0x1a22ee=_0x196d4a;return{'id':Kr['id'],'type':_0x1e3d30[_0x1a22ee(0x2c0)],'icon':'PaintIcon','title':_0x1a22ee(0x25d),'tooltip':_0x1a22ee(0x25d),'selections':[{'label':{'name':ui,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ei(_0x2a9a51),'hidden$':Oi(_0x2a9a51)};}function ji(_0x5eaec3){const _0x20f5da=_0x196d4a;return{'id':qr['id'],'type':_0x1e3d30[_0x20f5da(0x2c0)],'icon':'ShapeIcon','title':_0x20f5da(0x35a),'tooltip':_0x20f5da(0x35a),'slot':!0x0,'selections':[{'label':{'name':_0x167ae2,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ki(_0x5eaec3)};}function _0x376e(){const _0x3a3b21=['sheetTransform','forEach','shapeType','INSERT','unit','_initMenu','stringify','_cxnIndex','sheets-shape-ui.shape-format.text-ribbon-control','resourceCollector','fill','_adjHandlerPointerMove','cancelEditing','formulaPresentation','_openShapeEditPanel','startArrow','disposeWithMe','setShapeData','getEndConnectInfo','iterator','visible','onCommandExecuted','forward','unsubscribe','presetId','_sheetShapeAdjustController','getBatchUpdateOp','_handleConnectorPointerUp','_visible','image','isStartConnectorPoint','sheets-shape-ui.ribbon.shape-format.style-control','drawing-ui.objectListPanel.close','drawing-ui.objectListPanel.hide','startConnectionDetection','lineShapeId','drawing-ui.objectListPanel.unlockAll','shapeText','13365WCubPi','intercept','sheets-shape-ui','_menuManagerService','_urlImageService','front','back','sheets-shape-format-font-family-menu','CROSSHAIR','_handleBasicShapeUpdateConnectorLineShape','attachPopupToObject','_formulaKey','panel','size','_editingParams$','shape-editor-ui.toolbar.changeShape','error','getDrawingSearch','objects','ang','_shapeTextEditingService','_transformCalculateSrcRect','registerCommand','flipX','_getConnectPointInfo','focusDrawing','drawing-ui.objectListPanel.descriptionPlaceholder','_shapeUpdateListener','pluginName','onStarting','sheets-shape-ui.insertShape','drawing-ui.objectListPanel.hideAll','setContextValue','isRenderLinePointsMode','localToWorld','animateFormulaPresentation','_formulaShapes','call','_sheetBasicShapeConnectionPointController','abs','setCursor','permissionCheckWithoutRange','extraProps','sheet.operation.close-sheet-shape-format-panel','onerror','indexOf','setFormulaPresentation','name','clipHeight','getDrawingData','_connectionSiteObjects','registerFeaturePasteHook','getBasicShapeRelation','_clearShapeConnectorHandlerObjects','drawing-ui.objectListPanel.filterLocked','_activeAdjustPointList','entries','getTransformerByCreate','updateContext','#4285f4','_addShapeConnectorHandlerObjects','_shapeEditPanelVersion','sheet.command.update-shape-data','enableObjectsEvent','_drawRichTextLayer','_loadAndSetImage','ObjectLayersIcon','_getScrollInfo','actualHeight','getDrawingByParam','_sheetSkeletonService','getStartConnectInfo','clearAdjustControls','getActualSize','sheets-shape-ui.flipVertical','idMap','dataModel','subscribeEvent','getBentTypeFromPoints','SHEET','15166151JvHaMq','drawing-ui.objectListPanel.nameInput','_registerFocusChangeHandler','adjustValues','drawWith','getRenderUnitById','getCurrentScrollState','VIEW_MAIN_LEFT_TOP','addImageSourceCache','refreshShapeFillImage','_isShouldShowDrawingShapeAdjust','activeAnObject','_registerMoveHandler','clipTop','SHEET_SHAPE_UI_PLUGIN','Large','activeSheet$','_iconManager','changeEnd$','makeDirty','getShapeModel','setCollapsedIds','_sheetDrawingService','getEditing','addObject','doc','interceptCommand','sheetViewStartRow','_disposePopups','onReady','getShapeDataById','onSavingEditorData$','cxnPointFill','selectable','refreshFormulaPresentation','pipe','_clipService','_transform','_getShapeInfo','drawing.operation.set-drawing-active','_rerouteConnectorLine','color','sheets-shape-ui.ribbon.shape-format.arrange-back','delete','_permissionService','redo','get','pick','_baseWidth','showContextualTab','type','calcAdjValues','bottom','focus$','setCanUseShapeClip','isLineShape','find','_currentConnectionTarget','sheetViewStartColumn','remove$','_isDrawingShapePointDown','transformVector2SceneCoord','Image','translateWithPrecision','getConnectionInfo','endArrow','getDrawingEditable','changeStart$','next','drawing-ui.objectListPanel.name','sheets-shape-ui.shape-format.style-ribbon-control','_sheetInterceptorService','SolidFill','_activeTargetShapeId','shape-adjust-point-','_ribbonService','includes','axisAlignSheetTransform','viewBound','DRAWING','trim','_createCopyInfoByRange','sheet.command.menu-insert-shape','sheets-shape-ui.ribbon.shape-format.arrange-forward','values','set','_clearShapeAdjustControls','_sidebarService','_adjHandlerPointerUp','FlipVerticalIcon','keys','_closeShapeEditPanel','_sheetCanvasPopManagerService','description','resetCursor','update$','_sheetDrawingShapeRenderController','renderDrawingShape','getAdjustValueByName','getParent','FlipHorizontalIcon','sheets-shape-ui.ribbon.shape-format','sheet.shape.edit.panel','sheet.operation.update-shape-type','prstGeomAdjValues','connection-site-','_initCommands','shape-editor-ui.arrange.forward','_hyperLinkRegions','sheets-shape-ui.config','_index','_drawingRenderService','scene','sheets-shape-ui.flipHorizontal','_connectorObjects','version','isEditing','getConnectionSiteList','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','sheet.shape.picker.component','ShapeIcon','adjHandleStroke','drawingId','extensionGroups','_executeConnectedRouteConnectionCommand','_generateCutPasteMutations','isRender','onRendered','executeCommand','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','_update','_executeResizeCommand','drawing-ui.objectListPanel.lockHint','register','left','updateLinePoints','_activeAdjustInfo','reverse','defineProperty','drawing-ui.objectListPanel.unlockHint','onload','fillType','_shapePopupMenuDisposable','20MKxCsJ','GROUP','mode','Medium','computeConnectorResizeLayout','create','None','_baseTop','getPermissionPoint','getShapeTypeById','getOwnPropertyDescriptor','_addShapeConnectorHandlerObject','_reset','shape-editor-ui.arrange.back','registerFeatureMenu','_initPermission','_registerIcons','#1a73e8','rect','render','formulaBinding','_releaseRenderCache','RIBBON','_sheetPrintInterceptorService','asObservable','_univerInstanceService','cos','UPDATE','_generatePasteMutations','_drawRichText','currentAdjustValues','invert','editingParams$','LEFT','_registerDrawingFocusChangeHandler','blockExecuteWithoutPermission','_localeService','_copyInfo','TOP','updateDocumentDataMargin','UNIVER_DOC','getValue','sheets-shape-contextual-ribbon','srcRect','clearControl$','_groupCopyPasteController','lineType','canvas','filter','getAdjustNames','stroke','_insertingShapeKeys','_moveConnectorWithShape','cxnIndex','getShapeType','_shapes','sheets-shape-ui.shape-format.formula-ribbon-control','_getImagePrstGeom','setSrcRect','copyType','_subUnitId','getDrawingPoints','getTransformer','getScene','sheet.shape.floating-toolbar','_registerDrawingMoveHandler','sheets-shape-ui.shape-format.quick-style-gallery','540212RItCrO','_applyFormulaAutoFitSize','getMatrix','beginPath','105tufaWy','params','shapeModel','subscribe','flipY','vertical','viewportScrollX','sheets-shape-ui.deleteShape','setAdjustValueByName','getSkeleton','_clearFocusedShape','_getOrCreateShapeModel','getSheetId','isRichText','clear','_renderManagerService','MEDIA','value','adjHandleSize','drawing-ui.objectListPanel.details','length','_getConnectionSiteAngle','getDrawingVisible','custom','updateDocumentStyle','add','_renderWithCache','initShapePopupMenu','_registerFeatureMenu','undo','sheets-shape-ui.ribbon.shape-format.text-control','_hasReset','_executeConnectionCommand','_isImagePointerDown','_attachConnectorObjectEvent','fromChangeset','dispose','_commandExecutedListener','symbol','_handleFreeEndpointPointerUp','_createControls','function','_handleConnectedEndpointMove','canvasElement','Path','viewportScrollY','computeStraightConnectorLayout','contentHeight','_canEdit','adjName','point','getShapeData','sin','object','div','_isStartAdjusting','setShouldShowAdjust','hideInfoPopup','sectionCanvas','getCurrentUnitOfType','135276uxaOSa','fillImageSourceType','from','sheets-shape-ui.imagePanel.crop.shape','applyPoint','parse','_clearConnectionSites','_completionFrame','_setTransForm','sheet.shape.text.float-menu','getConnectorLinePoints','_activeShapeModel','getSheetBySheetId','startX','_initPrinting','OTHERS','sheet.operation.apply-shape-quick-style','_formulaAnimation','constructor','_baseShapeTop','getDrawingDataForUnit','onSteady','getPresentation','save','shape-editor-ui.arrange.front','resolveHyperLinkAt','univer-box-border\x20univer-px-4\x20univer-text-sm','_isConnecting','_imageIoService','sheets-shape-ui.ribbon.shape-format.formula-control','animationEnabled','offsetX','_unitId','UNIVER_SHEET','getCurrentTypeOfUnit$','isHitLine','_popupMenuListener','_sheetPermissionCheckController','_clearPopups','worldPoints','_getZoomRatio','_shapeFloatingToolbarService','_componentManager','VIEW_MAIN_TOP','_updateShapeAdjustControls','drawing-ui.objectListPanel.sectionCanvas','getActiveSheet','_onSavingEditorData$','_injector','COMMAND','_registerComponents','_context','clip','shapeKey','drawing-ui.objectListPanel.description','changeShapeType','_config','_initEvents','SHAPE_TEXT','end','_baseShapeWidth','drawing-ui.objectListPanel.noSelection','getContextValue','getSkeletonParam','getAutoFitPresentations','36xrhSdg','debounceRefreshControls','syncExecuteCommand','draw','FromArray','OPERATION','_props','_hide','REMOVE','4654134skPTvx','_addShapeAdjustControl','permissionPointUpdate$','sheet.image-clip.shape-picker.component','_commandService','drawing-ui.objectListPanel.search','_showConnectionSites','getObject','_draw','angle','has','updateConnectionDetection','getDrawingOKey','prototype','PRINTING_COMPONENT_COLLECT','drawing-ui.objectListPanel.showAll','_drawingManagerService','getShapeTextData','DEFAULT_PASTE','skeleton','MoveUpIcon','cxnPointRadius','19439ZLTTgb','worldPoint','_shapeService','multiply','sheets-shape-ui.formatShape','rotation','_initCopyPaste','mergeMenu','SHAPE','_calculateFreeEndpointAngle','addClipboardHook','sheets-shape-ui.title','_sidebarDisposable','_getShapeAdjustPointListById','strokeWidth','onDblclick$','presentationChanged$','beforeCommandExecuted','getUnitType','URL','DRAWING_IMAGE','unregister','#FFFFFF','ancestorTransform','popup','shape-editor-ui.toolbar.quickStyles','_updateImageAdjValues','_findNearestConnectionSite','getCurrentSkeleton','_activeImageId','_shapeFormulaService','unitId','componentKey','Line','_baseShapeHeight','getState','setFillImage','refreshAdjustControls','_initSheetChange','setConfig','shapeId','sheets-shape-ui.objectListPanel.open','_drawingAddListener','_handleFreeEndpointMove','236LbIPlo','_executeConnectedRouteResizeCommand','Arrow','_shapeRenderController','getShapeTextRect','src','_baseLeft','_registerImageShapeClipDelegate','prstGeom','setHighlighted','relation','drawingType','_attachAdjustEvent','_isHighlighted','isDrawingObject','decorate','_initSelection','cxnPointStroke','_initialize','worldRect','setFallbackVisible','drawing-ui.objectListPanel.typeNames.','sheets-shape-ui.editText','BUTTON','_registerGroupFeaturePasteHook','TopmostIcon','_cxtHandlerPointerMove','_configService','sheets-shape-ui.objectListPanel.title','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_drawSimpleText','cxnPointStrokeWidth','_contextService','_getImageDrawingInfo','_resetState','_init','getRealBound','packageName','9165248paCKzL','_findShapeAtPoint','_lastEditingShapeKey','shape-text-','close','toPrimitive','Rect','startY','isolated','fillImageSource','with','onPointerUp$','transformByState','BottomIcon','_cxtHandlerPointerUp','_clearControls','_getShapeAdjustInfosById','_currentUniverService','horizontal','_getDrawingRect','_activeShapeAdjustPointList','doc.image-clip.shape-picker.component','clearAdjustValue','current','_createShapeAdjustControls','_clearCompletionFrame','MoveDownIcon','PictureFill','_getSceneAndTransformerByDrawingSearch','open','getImage','getObjectIncludeInGroup','flatMap','push','interceptor','height','_sheetClipboardService','getDrawingEffectBounds','sheets-shape-ui.ribbon.shape-format.arrange-backward','_activeShapeInfo','sheets-shape-ui.editShape','isInGroup','SELECTOR','isHighlighted','vertical-center','setShapeProps','clipByShape','presentation','some','SheetShapeTextEditorContainer','setPrstGeomAdjValues','top-center','_loadShapePictureFill','hideContextualTab','getSelectedObjectMap','onPointerMove$','restore','shapeData','_drawShapeText','getImageSourceCache','endConnectionDetection','getUnitId','classType','completeEditing','drawing-ui.objectListPanel.title','getAdjustInfoByName','VIEW_MAIN','setPrstGeom','getUnit','index','getDrawingOrder','calculate','disableObjectsEvent','width','_currentScene','_focusedDrawings','clone','sheet.operation.open-mobile-shape-editor','_baseHeight','_drawingType','marginTop','setOnSavingEditorData','sheet.shape.object-list.panel','_targetShapeId','_updateSrcRectByTransform','changing$','drawing-ui.objectListPanel.lock','engine','_insertShapes','_draggingConnectorId','map','text','_adjName','subUnitId','_updateAdjustControlPositions','getInterceptPoints','_highlightedSiteIndex','getVisible','complete','_disposed','getZoomRatio','_activeShapeId','stopPropagation','getInverseCoord','targetShapeId','onPointerDown$','getCurrentLastSelection','registerClipDelegate','offsetY','registerRenderModule','actions','fontFamily','_shapeId','_baseShapeLeft','drawing-ui.objectListPanel.lockAll','_sheetsShapeService','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_updateTransform','visible$','_initEditingParams','_registerOperations','drawing-ui.objectListPanel.empty','getCanvasElement','transform','_isStartConnectorPoint','oKey','run','_baseDrawingRect','CUT','contentVerticalOffset','isArray','pushUndoRedo','getFocusDrawings','sectionFloating','drawing-ui.objectListPanel.show','hidden','_isOpenedShapeEditPanel','updateShapeFillImage','setPresentation','setEditing','ShapeFormatSettingIcon','DRAWING_SHAPE','top'];_0x376e=function(){return _0x3a3b21;};return _0x376e();}function Mi(_0x41fde7,_0x358605,_0x392cb2=!0x1){return _0x4a4e10=>({'id':_0x41fde7,'type':_0x1e3d30['BUTTON'],'label':{'name':_0x358605,'hoverable':!0x1,'selectable':!0x1},'hidden$':Oi(_0x4a4e10,_0x392cb2)});}const Ni=Mi(yi,di),Pi=Mi(bi,fi),Fi=Mi(xi,pi,!0x0);function Ii(_0x31781f,_0x1fade3,_0x2aa765,_0x204540){const _0x2e2790=_0x196d4a;return _0x2b16e9=>({'id':_0x31781f,'commandId':_0x4b43eb['id'],'type':_0x1e3d30[_0x2e2790(0x287)],'icon':_0x2aa765,'title':_0x204540,'tooltip':_0x204540,'hidden$':Oi(_0x2b16e9),'params':()=>{const _0x16dfa5=_0x2e2790;let _0x1b0075=Di(_0x2b16e9);return _0x1b0075?{'unitId':_0x1b0075[_0x16dfa5(0x263)],'subUnitId':_0x1b0075[_0x16dfa5(0x2f3)],'drawingIds':[_0x1b0075[_0x16dfa5(0x14c)]],'arrangeType':_0x1fade3}:void 0x0;}});}const Li=Ii(Si,_0x3190c7['forward'],'MoveUpIcon',_0x196d4a(0x13d)),Ri=Ii(Ci,_0x3190c7['backward'],_0x196d4a(0x2b0),'shape-editor-ui.arrange.backward'),zi=Ii(wi,_0x3190c7[_0x196d4a(0x350)],_0x196d4a(0x289),_0x196d4a(0x1fc)),Bi=Ii(Ti,_0x3190c7[_0x196d4a(0x351)],'BottomIcon',_0x196d4a(0x16e));function Vi(_0x310f1a){const _0x26cb7d=_0x196d4a;return{'id':Wr['id'],'type':_0x1e3d30['BUTTON'],'icon':_0x26cb7d(0x322),'title':'sheets-shape-ui.formatShape','tooltip':'sheets-shape-ui.formatShape','hidden$':Oi(_0x310f1a),'params':()=>{const _0x56592b=_0x26cb7d;let _0x365118=Di(_0x310f1a);return _0x365118?{'unitId':_0x365118[_0x56592b(0x263)],'subUnitId':_0x365118[_0x56592b(0x2f3)],'drawingId':_0x365118[_0x56592b(0x14c)]}:void 0x0;}};}const Hi={[_0x28d937[_0x196d4a(0x177)]]:{[Br]:{'order':0x64,'title':_0x196d4a(0x248),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Kr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ai},[qr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ji}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[yi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ni}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[bi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Pi}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ii]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ci},[ai]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':li},[Si]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Li},[Ci]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Ri},[wi]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':zi},[Ti]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Bi}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[xi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Fi}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[Wr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Vi},[_0xb7e748['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0xbc1b39}}}}},Ui={[_0x445b4b[_0x196d4a(0x1b8)]]:{[Ir['id']]:{'order':0x4,'menuItemFactory':ni}}},Wi={...Ui,[_0x445b4b['OTHERS']]:{[Ur['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ri}},[_0x3e837e[_0x196d4a(0x121)]]:{[_0x2e5a9f[_0x196d4a(0x1f3)]]:{[ii]:{'order':0x4,'menuItemFactory':ci},[ai]:{'order':0x5,'menuItemFactory':li}}}};var Gi='@univerjs-pro/sheets-shape-ui',Ki='1.0.3';const qi={'id':_0x196d4a(0x2e3),'type':_0x36ba27[_0x196d4a(0x22a)],'handler'(_0x5cce16,_0x5d0b37){const _0xc39584=_0x196d4a;return _0x5d0b37?(_0x5cce16[_0xc39584(0x100)](_0x456574)[_0xc39584(0x2b3)](_0x5d0b37[_0xc39584(0x163)],{'hostType':_0x204504[_0xc39584(0x205)],'shapeId':_0x5d0b37['drawingId'],'subUnitId':_0x5d0b37[_0xc39584(0x2f3)],'unitId':_0x5d0b37[_0xc39584(0x263)]}),!0x0):!0x1;}},Ji=_0x196d4a(0x13f),Yi={};let Xi=class extends _0x116f11{constructor(_0x5c6e87,_0x40bdc8,_0x28e171,_0x2cebf3,_0x2ac47f){const _0x371fc3=_0x196d4a;super(),this[_0x371fc3(0x217)]=_0x5c6e87,this['_drawingManagerService']=_0x40bdc8,this[_0x371fc3(0x1b7)]=_0x28e171,this[_0x371fc3(0x17a)]=_0x2cebf3,this['_imageShapeClipController']=_0x2ac47f,q(this,'_activeImageId',null),q(this,_0x371fc3(0x204),null),q(this,_0x371fc3(0x19d),null),q(this,'_activeAdjustPointList',void 0x0),q(this,_0x371fc3(0x198),[]),q(this,_0x371fc3(0x276),0x0),q(this,_0x371fc3(0x168),0x0),q(this,_0x371fc3(0x102),0x0),q(this,'_baseHeight',0x0),q(this,_0x371fc3(0x1df),!0x1),q(this,_0x371fc3(0x15a),void 0x0),q(this,_0x371fc3(0x1ef),void 0x0),q(this,'_adjHandlerPointerMove',void 0x0),q(this,_0x371fc3(0x12a),void 0x0),q(this,_0x371fc3(0x1c9),!0x1),this[_0x371fc3(0xd4)](),this[_0x371fc3(0xde)]();}[_0x196d4a(0xca)](){const _0x3842ac=_0x196d4a;this[_0x3842ac(0x2a5)]();}[_0x196d4a(0x269)](){this['_clearControls'](),this['_createControls'](!0x0);}['_getOrCreateShapeModel'](_0x2da058,_0x48e5a4,_0x15e9d9,_0x165c16){const _0x2c2ff1=_0x196d4a;let _0x1d2165=_0x2da058;if(_0x1d2165!==_0xc016ca['None']&&_0x2da058!=='custom')try{let _0x23081d=new _0x2d7016(_0x1d2165,'clip-adj-'+_0x2da058);return _0x165c16&&_0x23081d['setShapeData']({'adjustValues':_0x165c16},!0x0),_0x23081d[_0x2c2ff1(0x385)]({'width':_0x48e5a4,'height':_0x15e9d9}),_0x23081d;}catch{return;}}['_getImageDrawingInfo'](_0x5c80da,_0x8be1e4,_0x218ba7){const _0x5d96ff=_0x196d4a;let _0xdf409f={'unitId':_0x5c80da,'subUnitId':_0x8be1e4,'drawingId':_0x218ba7},_0x554cdc=this[_0x5d96ff(0x23e)][_0x5d96ff(0xc7)](_0xdf409f);if(_0x554cdc&&_0x554cdc['drawingType']===_0x123aa0['DRAWING_IMAGE'])return _0x554cdc;}[_0x196d4a(0x19a)](_0x4b4830,_0x45d35b,_0x4e89bb){const _0x55f198=_0x196d4a;let _0x1c9d42=this['_renderManagerService'][_0x55f198(0xd7)](_0x4b4830);if(!_0x1c9d42)return;let {scene:_0x29b41e}=_0x1c9d42,_0x179baa=_0x934411({'unitId':_0x4b4830,'subUnitId':_0x45d35b,'drawingId':_0x4e89bb}),_0x4495c1=_0x29b41e['getObject'](_0x179baa);if(_0x4495c1 instanceof _0x47dbec){let _0x223746=_0x4495c1[_0x55f198(0x278)];if(_0x223746)return{'prstGeom':_0x223746,'adjustValues':_0x4495c1[_0x55f198(0x13a)]};}}['_createControls'](_0x484e00=!0x1){const _0x199421=_0x196d4a;if(!this[_0x199421(0x204)]||!this[_0x199421(0x19d)]||!this[_0x199421(0x261)])return;let _0x103237=this[_0x199421(0x1b7)][_0x199421(0xd7)](this['_unitId']);if(!_0x103237||!_0x103237[_0x199421(0x2a0)](_0x7b1452)[_0x199421(0x260)]())return;let {scene:_0x434ab5}=_0x103237,_0x2de368=this[_0x199421(0x291)](this[_0x199421(0x204)],this[_0x199421(0x19d)],this[_0x199421(0x261)]);if(!_0x2de368)return;let {transform:_0x1bddaa}=_0x2de368;if(!_0x1bddaa)return;let {left:_0x78988,top:_0x5c496a,width:_0x3610e9,height:_0x38cf86,flipX:_0x187f20,flipY:_0x3374d0,angle:_0x44ed39=0x0}=_0x1bddaa;if(_0x78988===void 0x0||_0x5c496a===void 0x0)return;let _0x24f654=this[_0x199421(0x19a)](this['_unitId'],this[_0x199421(0x19d)],this[_0x199421(0x261)]);if(!_0x24f654)return;if(_0x484e00){let _0x237f5a=this[_0x199421(0x1b3)](_0x24f654[_0x199421(0x278)],_0x3610e9||0x0,_0x38cf86||0x0,_0x24f654['adjustValues']);if(!_0x237f5a)return;this[_0x199421(0x382)]=_0x237f5a[_0x199421(0x19e)]();}let _0x47729a=this[_0x199421(0x382)];if(_0x47729a&&_0x47729a[_0x199421(0x1bc)]!==0x0)for(let _0x5b08d2=0x0;_0x5b08d2<_0x47729a['length'];_0x5b08d2++){let _0x38560e=_0x47729a[_0x5b08d2],_0x36cc57=_0x38560e['x'],_0x2a9a65=_0x38560e['y'];if(_0x187f20&&(_0x36cc57=(_0x3610e9||0x0)-_0x36cc57),_0x3374d0&&(_0x2a9a65=(_0x38cf86||0x0)-_0x2a9a65),_0x44ed39!==0x0){let _0x394e64=(_0x3610e9||0x0)/0x2,_0x3c2558=(_0x38cf86||0x0)/0x2,_0x262fb4=_0x44ed39*Math['PI']/0xb4,_0x588715=Math[_0x199421(0x17b)](_0x262fb4),_0x2f2ecd=Math[_0x199421(0x1dc)](_0x262fb4),_0x26a265=_0x36cc57-_0x394e64,_0x2ac85a=_0x2a9a65-_0x3c2558;_0x36cc57=_0x394e64+(_0x26a265*_0x588715-_0x2ac85a*_0x2f2ecd),_0x2a9a65=_0x3c2558+(_0x26a265*_0x2f2ecd+_0x2ac85a*_0x588715);}let _0x33cd49={'x':_0x36cc57,'y':_0x2a9a65,'adjName':_0x38560e[_0x199421(0x1d9)]};this['_addControl'](_0x434ab5,_0x33cd49,_0x33cd49[_0x199421(0x1d9)],_0x78988,_0x5c496a,this['_unitId'],this[_0x199421(0x19d)]);}}['_addControl'](_0x2e68ee,_0x39941c,_0x3deee2,_0x6cfc30,_0x5ac14b,_0x4395d9,_0x744830){const _0x45f91b=_0x196d4a;if(!this['_activeImageId'])return;let _0x682a8f='image-clip-adjust-point-'+this[_0x45f91b(0x261)]+'-'+_0x3deee2,_0x16d4f3=_0x2e68ee[_0x45f91b(0x2b5)](_0x682a8f);if(_0x16d4f3){_0x16d4f3[_0x45f91b(0x2a2)]({'left':_0x39941c['x']+_0x6cfc30-_0x1a4d77[_0x45f91b(0x1ba)],'top':_0x39941c['y']+_0x5ac14b-_0x1a4d77['adjHandleSize']});return;}let _0xfc0b7d=new Nr(_0x682a8f,{'left':_0x39941c['x']+_0x6cfc30-_0x1a4d77[_0x45f91b(0x1ba)],'top':_0x39941c['y']+_0x5ac14b-_0x1a4d77[_0x45f91b(0x1ba)],'adjName':_0x3deee2,'shapeId':this['_activeImageId'],'unitId':_0x4395d9,'subUnitId':_0x744830,'width':_0x1a4d77[_0x45f91b(0x1ba)]+0x8,'height':_0x1a4d77[_0x45f91b(0x1ba)]+0x8,'zIndex':_0x22b3ea+0x1,'evented':!0x0});this[_0x45f91b(0x198)]['push'](_0xfc0b7d),this[_0x45f91b(0x27c)](_0xfc0b7d,_0x2e68ee,_0x3deee2),_0x2e68ee[_0x45f91b(0xea)](_0xfc0b7d,_0x22b3ea+0x1);}[_0x196d4a(0x2a5)](){const _0x496bbd=_0x196d4a;this[_0x496bbd(0x198)][_0x496bbd(0x1bc)]!==0x0&&(this[_0x496bbd(0x198)][_0x496bbd(0x326)](_0x292f1a=>_0x292f1a[_0x496bbd(0x1cc)]()),this[_0x496bbd(0x198)]=[]);}['_getScrollInfo'](_0x533e75,_0x4aa512){const _0x2f93c9=_0x196d4a;var _0x486b4a;let _0x51dfc1={'x':0x0,'y':0x0},_0x5e37aa=this[_0x2f93c9(0x1b7)][_0x2f93c9(0xd7)](_0x533e75);if(!_0x5e37aa||!_0x5e37aa[_0x2f93c9(0x2a0)](_0x7b1452)[_0x2f93c9(0x1b1)](_0x4aa512))return _0x51dfc1;let _0x8dc122=_0x5e37aa['with'](_0x538622),_0x33ef97=_0x8dc122==null?void 0x0:_0x8dc122[_0x2f93c9(0xd8)]();if(!_0x33ef97)return _0x51dfc1;let _0x3e3524=(_0x486b4a=this[_0x2f93c9(0x17a)][_0x2f93c9(0x2da)](_0x533e75))==null?void 0x0:_0x486b4a[_0x2f93c9(0x1f0)](_0x4aa512);if(!_0x3e3524)return _0x51dfc1;let _0x1dba18=_0x2e8aa3(_0x33ef97['sheetViewStartRow'],_0x33ef97['sheetViewStartColumn'],_0x5e37aa['scene'],_0x3e3524);return _0x1dba18?{'x':_0x1dba18[_0x2f93c9(0x1ae)],'y':_0x1dba18[_0x2f93c9(0x1d5)]}:_0x51dfc1;}[_0x196d4a(0x20c)](_0x3ad63b,_0x59e4af){const _0x277384=_0x196d4a;var _0x3e76ef;let _0xb55e84=(_0x3e76ef=this[_0x277384(0x17a)][_0x277384(0x2da)](_0x3ad63b))==null?void 0x0:_0x3e76ef[_0x277384(0x1f0)](_0x59e4af);return(_0xb55e84==null?void 0x0:_0xb55e84['getZoomRatio']())??0x1;}[_0x196d4a(0x27c)](_0x2e073a,_0x3d5138,_0x4b50cd){const _0x1c1aad=_0x196d4a;this[_0x1c1aad(0x335)](_0x46ac89(_0x2e073a[_0x1c1aad(0x2ff)][_0x1c1aad(0xcf)]((_0x1e8dc2,_0x32986a)=>{const _0x1f85a6=_0x1c1aad;var _0x509329,_0x3db90a,_0x21c2d4;let {unitId:_0x19a74f,subUnitId:_0x418cd5,drawingId:_0x2350c6}=_0x2e073a[_0x1f85a6(0x35c)](),_0x305f3c=this[_0x1f85a6(0x291)](_0x19a74f,_0x418cd5,_0x2350c6);if(!(_0x305f3c!=null&&_0x305f3c[_0x1f85a6(0x311)]))return;let {left:_0x478f98,top:_0x2a601f,width:_0x2eb608,height:_0x1200f4}=_0x305f3c[_0x1f85a6(0x311)];this['_baseLeft']=_0x478f98||0x0,this[_0x1f85a6(0x168)]=_0x2a601f||0x0,this[_0x1f85a6(0x102)]=_0x2eb608||0x0,this[_0x1f85a6(0x2e4)]=_0x1200f4||0x0;let _0x4b86df=!!((_0x509329=_0x305f3c[_0x1f85a6(0x311)])!=null&&_0x509329[_0x1f85a6(0x362)]),_0x449b4b=!!((_0x3db90a=_0x305f3c[_0x1f85a6(0x311)])!=null&&_0x3db90a[_0x1f85a6(0x1ac)]),_0x20bbb2=((_0x21c2d4=_0x305f3c[_0x1f85a6(0x311)])==null?void 0x0:_0x21c2d4[_0x1f85a6(0x237)])||0x0,_0x331e67=this['_getImagePrstGeom'](_0x19a74f,_0x418cd5,_0x2350c6);if(!_0x331e67)return;let _0x3534eb=this['_getOrCreateShapeModel'](_0x331e67['prstGeom'],this[_0x1f85a6(0x102)],this[_0x1f85a6(0x2e4)],_0x331e67[_0x1f85a6(0xd5)]);if(!_0x3534eb||(this[_0x1f85a6(0x1ef)]=_0x3534eb,this[_0x1f85a6(0x15a)]=_0x3534eb[_0x1f85a6(0x2d7)](_0x4b50cd),!this[_0x1f85a6(0x15a)]))return;this['_isStartAdjusting']=!0x0,_0x3d5138['disableObjectsEvent']();let _0x56b3f0=_0x331e67[_0x1f85a6(0x278)];this[_0x1f85a6(0x330)]=_0x3d5138[_0x1f85a6(0x2cd)]['subscribeEvent']((_0x373b4e,_0x22ef8c)=>{const _0x23baea=_0x1f85a6;if(!this[_0x23baea(0x1df)])return;let {offsetX:_0x3ab243,offsetY:_0x5d78ae}=_0x373b4e,_0x1e949c=this[_0x23baea(0x15a)];if(!this[_0x23baea(0x1ef)]||!_0x1e949c)return;_0x3d5138[_0x23baea(0x2de)](),_0x3d5138[_0x23baea(0x373)](_0x35998d[_0x23baea(0x353)]);let _0x4c441c={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this[_0x23baea(0x2e4)]},_0xbdf0d0=this['_getScrollInfo'](_0x19a74f,_0x418cd5),_0x318977=this[_0x23baea(0x20c)](_0x19a74f,_0x418cd5),_0x28174e=_0x3ab243/_0x318977+_0xbdf0d0['x']-this[_0x23baea(0x276)],_0x4ad3a7=_0x5d78ae/_0x318977+_0xbdf0d0['y']-this[_0x23baea(0x168)];if(_0x20bbb2!==0x0){let _0x1d9e46=this['_baseWidth']/0x2,_0x41ab0d=this[_0x23baea(0x2e4)]/0x2,_0x19ceb7=_0x20bbb2*Math['PI']/0xb4,_0xfb71fe=Math[_0x23baea(0x17b)](_0x19ceb7),_0x20c00b=Math['sin'](_0x19ceb7),_0x5e1bd6=_0x28174e-_0x1d9e46,_0x5c427c=_0x4ad3a7-_0x41ab0d;_0x28174e=_0x1d9e46+(_0x5e1bd6*_0xfb71fe+_0x5c427c*_0x20c00b),_0x4ad3a7=_0x41ab0d+(-_0x5e1bd6*_0x20c00b+_0x5c427c*_0xfb71fe);}_0x4b86df&&(_0x28174e=this[_0x23baea(0x102)]-_0x28174e),_0x449b4b&&(_0x4ad3a7=this[_0x23baea(0x2e4)]-_0x4ad3a7);let _0x563b16=this['_activeShapeModel'][_0x23baea(0x105)](_0x4c441c,{'x':_0x28174e,'y':_0x4ad3a7},_0x1e949c,_0x4b86df,_0x449b4b);if(Object[_0x23baea(0x12c)](_0x563b16)[_0x23baea(0x1bc)]!==0x0){for(let [_0x36644a,_0x23a452]of Object[_0x23baea(0x383)](_0x563b16))this['_activeShapeModel']['setAdjustValueByName'](_0x36644a,_0x23a452);this[_0x23baea(0x1ef)][_0x23baea(0x385)]({'width':this[_0x23baea(0x102)],'height':this[_0x23baea(0x2e4)]}),this[_0x23baea(0x25e)](_0x19a74f,_0x418cd5,_0x2350c6,_0x563b16),this[_0x23baea(0x382)]=this[_0x23baea(0x1ef)][_0x23baea(0x19e)](),this[_0x23baea(0x1d0)](),_0x22ef8c[_0x23baea(0x2fc)]();}}),this[_0x1f85a6(0x12a)]=_0x3d5138[_0x1f85a6(0x2a1)][_0x1f85a6(0xcf)]((_0x40c022,_0x11726e)=>{const _0x2c4e43=_0x1f85a6;if(this[_0x2c4e43(0x330)][_0x2c4e43(0x33c)](),this[_0x2c4e43(0x12a)][_0x2c4e43(0x33c)](),_0x3d5138[_0x2c4e43(0x130)](),this[_0x2c4e43(0x1ef)]){let _0x592a64=this['_activeShapeModel'][_0x2c4e43(0x192)](),_0x12028a={};for(let _0x51bac3 of _0x592a64){let _0x39a636=this[_0x2c4e43(0x1ef)][_0x2c4e43(0x134)](_0x51bac3);_0x39a636!==void 0x0&&(_0x12028a[_0x51bac3]=_0x39a636);}this['_imageShapeClipController'][_0x2c4e43(0x2c4)](_0x19a74f,_0x418cd5,_0x2350c6,_0x56b3f0,_0x12028a);}this[_0x2c4e43(0x15a)]=void 0x0,this[_0x2c4e43(0x1ef)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x11726e['stopPropagation'](),_0x3d5138[_0x2c4e43(0x38a)]();}),_0x32986a[_0x1f85a6(0x2fc)]();})));}[_0x196d4a(0x25e)](_0x4956ae,_0x54b8c5,_0x33b9d8,_0x280673){const _0x4af46d=_0x196d4a;let _0x4d91b8=this['_renderManagerService'][_0x4af46d(0xd7)](_0x4956ae);if(!_0x4d91b8)return;let {scene:_0x45d6d6}=_0x4d91b8,_0x1e225f=_0x934411({'unitId':_0x4956ae,'subUnitId':_0x54b8c5,'drawingId':_0x33b9d8}),_0x10fc42=_0x45d6d6[_0x4af46d(0x235)](_0x1e225f);if(_0x10fc42 instanceof _0x47dbec){let _0x482171=_0x10fc42[_0x4af46d(0x13a)]??{};_0x10fc42[_0x4af46d(0x2c8)]({..._0x482171,..._0x280673}),_0x10fc42[_0x4af46d(0xe5)](!0x0);}}[_0x196d4a(0xde)](){const _0x2ed94e=_0x196d4a;let _0x242456=this[_0x2ed94e(0x17a)][_0x2ed94e(0x206)](_0x204504[_0x2ed94e(0x205)]);this[_0x2ed94e(0x335)](_0x242456['pipe'](_0x111568(_0x58270c=>_0x58270c?_0x58270c[_0x2ed94e(0xe2)]['pipe'](_0x111568(_0x447b5a=>{const _0x16025d=_0x2ed94e;if(!_0x447b5a)return _0x929a31;let _0x45d1e5=_0x58270c[_0x16025d(0x2d3)](),_0x2cc8a3=this[_0x16025d(0x1b7)]['getRenderUnitById'](_0x45d1e5),_0x38311d=_0x2cc8a3==null?void 0x0:_0x2cc8a3[_0x16025d(0x142)];return _0x38311d?_0x322e8d(_0x38311d):_0x929a31;})):_0x929a31))[_0x2ed94e(0x1ab)](_0x16a4ac=>{const _0x4c53c9=_0x2ed94e;let _0x3b5348=_0x16a4ac['getTransformerByCreate']();this[_0x4c53c9(0x335)](_0x16a4ac[_0x4c53c9(0x2cd)][_0x4c53c9(0xcf)](()=>{const _0x10dccf=_0x4c53c9;this['_isImagePointerDown']&&this[_0x10dccf(0x2a5)]();})),this[_0x4c53c9(0x335)](_0x3b5348['changeStart$'][_0x4c53c9(0x1ab)](_0x3bb2c7=>{const _0xf5e13f=_0x4c53c9;let {objects:_0x2ef247}=_0x3bb2c7;if(this[_0xf5e13f(0x1d0)](),_0x2ef247!==null&&_0x2ef247[_0xf5e13f(0x358)]===0x1){let _0x226a3b=_0x2ef247[_0xf5e13f(0x126)]()['next']()[_0xf5e13f(0x1b9)];_0x226a3b instanceof _0x47dbec&&_0x226a3b[_0xf5e13f(0x278)]&&(this['_isImagePointerDown']=!0x0);}})),this[_0x4c53c9(0x335)](_0x3b5348[_0x4c53c9(0x2eb)][_0x4c53c9(0x1ab)](()=>{const _0x3e00e0=_0x4c53c9;this[_0x3e00e0(0x1c9)]&&this[_0x3e00e0(0x2a5)]();})),this[_0x4c53c9(0x335)](_0x16a4ac['onPointerUp$'][_0x4c53c9(0xcf)](()=>{const _0x190629=_0x4c53c9;this[_0x190629(0x1c9)]&&(this[_0x190629(0x1c9)]=!0x1,this[_0x190629(0x1d0)]());})),this[_0x4c53c9(0x335)](_0x3b5348[_0x4c53c9(0xe4)][_0x4c53c9(0x1ab)](()=>{const _0xace4a7=_0x4c53c9;if(this[_0xace4a7(0x204)]&&this[_0xace4a7(0x19d)]&&this[_0xace4a7(0x261)]){let _0x468e91=this[_0xace4a7(0x19a)](this[_0xace4a7(0x204)],this[_0xace4a7(0x19d)],this[_0xace4a7(0x261)]);if(_0x468e91){var _0x1c0401,_0x1c3b03;let _0x3f3570=this[_0xace4a7(0x291)](this[_0xace4a7(0x204)],this[_0xace4a7(0x19d)],this[_0xace4a7(0x261)]),_0x297d3b=(_0x3f3570==null||(_0x1c0401=_0x3f3570[_0xace4a7(0x311)])==null?void 0x0:_0x1c0401[_0xace4a7(0x2df)])||0x0,_0xc826ae=(_0x3f3570==null||(_0x1c3b03=_0x3f3570[_0xace4a7(0x311)])==null?void 0x0:_0x1c3b03[_0xace4a7(0x2b9)])||0x0,_0x26232c=this[_0xace4a7(0x1b3)](_0x468e91[_0xace4a7(0x278)],_0x297d3b,_0xc826ae,_0x468e91['adjustValues']);_0x26232c&&(this[_0xace4a7(0x382)]=_0x26232c['getDrawingPoints'](),this['_clearControls'](),this['_createControls'](!0x0));}}}));}));}[_0x196d4a(0xd4)](){const _0x123e1c=_0x196d4a;this['disposeWithMe'](this['_drawingManagerService'][_0x123e1c(0x107)][_0x123e1c(0x1ab)](_0x40ec2a=>{const _0x3a4902=_0x123e1c;if(_0x40ec2a[_0x3a4902(0x1bc)]===0x1){let _0x136d54=_0x40ec2a[0x0];if(_0x136d54[_0x3a4902(0x27b)]===_0x123aa0['DRAWING_IMAGE']){let {unitId:_0x780418,subUnitId:_0x262ed3,drawingId:_0x104325}=_0x136d54,_0x32fdc0=this[_0x3a4902(0x19a)](_0x780418,_0x262ed3,_0x104325);if(_0x32fdc0){var _0x1f0ed6,_0x4c1427;this[_0x3a4902(0x261)]=_0x104325,this[_0x3a4902(0x204)]=_0x780418,this[_0x3a4902(0x19d)]=_0x262ed3;let _0x5d8a69=this[_0x3a4902(0x291)](_0x780418,_0x262ed3,_0x104325),_0x5934f1=(_0x5d8a69==null||(_0x1f0ed6=_0x5d8a69[_0x3a4902(0x311)])==null?void 0x0:_0x1f0ed6[_0x3a4902(0x2df)])||0x0,_0x276ffd=(_0x5d8a69==null||(_0x4c1427=_0x5d8a69[_0x3a4902(0x311)])==null?void 0x0:_0x4c1427[_0x3a4902(0x2b9)])||0x0,_0x2b4ade=this['_getOrCreateShapeModel'](_0x32fdc0[_0x3a4902(0x278)],_0x5934f1,_0x276ffd,_0x32fdc0[_0x3a4902(0xd5)]);_0x2b4ade&&(this[_0x3a4902(0x382)]=_0x2b4ade[_0x3a4902(0x19e)]()),this['_clearControls'](),this[_0x3a4902(0x1d0)](!0x0);}else this[_0x3a4902(0x292)]();}else this['_resetState']();}else this['_resetState']();})),this[_0x123e1c(0x335)](this[_0x123e1c(0x23e)]['update$'][_0x123e1c(0x1ab)](_0x54e991=>{const _0x1c4aca=_0x123e1c;if(_0x54e991[_0x1c4aca(0x1bc)]===0x1){let _0x31b9d2=_0x54e991[0x0],_0x595326=this[_0x1c4aca(0x23e)]['getDrawingByParam'](_0x31b9d2);(_0x595326==null?void 0x0:_0x595326[_0x1c4aca(0x27b)])===_0x123aa0[_0x1c4aca(0x258)]&&this['_activeImageId']===_0x31b9d2['drawingId']&&(this[_0x1c4aca(0x2a5)](),this['_createControls'](!0x0));}})),this['disposeWithMe'](this['_drawingManagerService'][_0x123e1c(0x10d)]['subscribe'](_0x3423cc=>{const _0x585ad=_0x123e1c;for(let _0x5dfa09 of _0x3423cc)this[_0x585ad(0x261)]===_0x5dfa09['drawingId']&&this[_0x585ad(0x292)]();}));}['_resetState'](){const _0x465d8d=_0x196d4a;this[_0x465d8d(0x261)]=null,this[_0x465d8d(0x204)]=null,this[_0x465d8d(0x19d)]=null,this['_activeAdjustPointList']=void 0x0,this['_clearControls']();}};Xi=X([Y(0x1,_0x446eb2),Y(0x2,_0x14bfc1(_0x4dadf2)),Y(0x3,_0x46c185),Y(0x4,_0x14bfc1(Q))],Xi);function Zi(_0xc2dc67){const _0x3a57ac=_0x196d4a;return _0xc2dc67[_0x3a57ac(0x122)]()||void 0x0;}function Qi(_0x37e46a,_0x237da4,_0x2cd819){const _0x560f08=_0x196d4a;var _0x3ea003;return((_0x3ea003=_0x37e46a[_0x560f08(0x37a)])==null?void 0x0:_0x3ea003[_0x560f08(0x122)]())||_0x2cd819['t'](_0x560f08(0x285)+_0x1c437a(_0x37e46a[_0x560f08(0x27b)]))+'\x20'+(_0x237da4+0x1);}function $i({PanelComponent:_0x5db76c=_0x481011}){const _0x64000a=_0x196d4a;var _0x43bdf4;let _0x2a6419=_0x508bbd(_0x407e83),_0x2b01b7={'title':_0x2a6419['t'](_0x64000a(0x2d6)),'empty':_0x2a6419['t'](_0x64000a(0x30f)),'showAll':_0x2a6419['t'](_0x64000a(0x23d)),'hideAll':_0x2a6419['t'](_0x64000a(0x36a)),'lockAll':_0x2a6419['t'](_0x64000a(0x308)),'unlockAll':_0x2a6419['t'](_0x64000a(0x349)),'moveForward':_0x2a6419['t']('drawing-ui.objectListPanel.moveForward'),'moveBackward':_0x2a6419['t']('drawing-ui.objectListPanel.moveBackward'),'close':_0x2a6419['t'](_0x64000a(0x345)),'show':_0x2a6419['t'](_0x64000a(0x31c)),'hide':_0x2a6419['t'](_0x64000a(0x346)),'lock':_0x2a6419['t'](_0x64000a(0x2ec)),'unlock':_0x2a6419['t']('drawing-ui.objectListPanel.unlock'),'lockHint':_0x2a6419['t'](_0x64000a(0x156)),'unlockHint':_0x2a6419['t'](_0x64000a(0x15d)),'name':_0x2a6419['t'](_0x64000a(0x117)),'nameInput':_0x2a6419['t'](_0x64000a(0xd3)),'description':_0x2a6419['t'](_0x64000a(0x21a)),'descriptionPlaceholder':_0x2a6419['t'](_0x64000a(0x365)),'details':_0x2a6419['t'](_0x64000a(0x1bb)),'noSelection':_0x2a6419['t'](_0x64000a(0x221)),'locate':_0x2a6419['t']('drawing-ui.objectListPanel.locate'),'expand':_0x2a6419['t']('drawing-ui.objectListPanel.expand'),'collapse':_0x2a6419['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0x2a6419['t']('drawing-ui.objectListPanel.dragToReorder'),'search':_0x2a6419['t'](_0x64000a(0x233)),'filterAll':_0x2a6419['t']('drawing-ui.objectListPanel.filterAll'),'filterHidden':_0x2a6419['t']('drawing-ui.objectListPanel.filterHidden'),'filterLocked':_0x2a6419['t'](_0x64000a(0x381)),'sectionCanvas':_0x2a6419['t'](_0x64000a(0x211)),'sectionFloating':_0x2a6419['t']('drawing-ui.objectListPanel.sectionFloating')},_0x2eb324=_0x508bbd(_0x153d8f),_0x32b117=_0x508bbd(_0x46c185),_0x273fa7=_0x508bbd(_0x5e26dc),_0x10f683=_0x508bbd(_0x446eb2),_0x4b37f0=_0x508bbd(_0x4dadf2),[,_0x3fbf1f]=_0xb0efb1(_0x5f3111=>_0x5f3111+0x1,0x0),_0x5c2979=_0x32b117[_0x64000a(0x1e3)](_0x204504[_0x64000a(0x205)]),_0x4c2325=(_0x5c2979==null?void 0x0:_0x5c2979['getUnitId']())??'',_0x4a7e1e=(_0x5c2979==null||(_0x43bdf4=_0x5c2979[_0x64000a(0x212)]())==null?void 0x0:_0x43bdf4[_0x64000a(0x1b4)]())??'',_0x280f1e=_0x49d454(()=>_0x10f683['focus$'],_0x10f683[_0x64000a(0x31a)](),!0x1,[_0x10f683]);_0x5902a2(()=>{const _0x20dbdf=_0x64000a;let _0xcae8a8=_0x2eb324[_0x20dbdf(0x33a)](()=>_0x3fbf1f());return()=>_0xcae8a8['dispose']();},[_0x2eb324]);let _0x1f575b=_0x4c2325&&_0x4a7e1e?_0x273fa7[_0x64000a(0x37c)](_0x4c2325,_0x4a7e1e):{},_0x4def41=(_0x4c2325&&_0x4a7e1e?_0x273fa7['getDrawingOrder'](_0x4c2325,_0x4a7e1e):[])['map'](_0x3af977=>_0x1f575b[_0x3af977])[_0x64000a(0x191)](_0x44cd5e=>!!_0x44cd5e)[_0x64000a(0x15b)](),_0x103dbf=_0x4def41['reduce']((_0x41a2d1,_0x196b62)=>(_0x41a2d1[_0x32c6c6(_0x196b62[_0x64000a(0x27b)])]+=0x1,_0x41a2d1),{'canvas':0x0,'floating':0x0}),_0x3c068b={'canvas':0x0,'floating':0x0},_0x1fc771=_0x4def41[_0x64000a(0x2f0)]((_0x28ce5b,_0x4547f2)=>{const _0x372f86=_0x64000a;let _0xeef2f0=_0x32c6c6(_0x28ce5b[_0x372f86(0x27b)]),_0x3a9f73=_0xeef2f0===_0x481a1b,_0x1737cd=_0x3c068b[_0xeef2f0]++;return{'id':_0x28ce5b['drawingId'],'name':Qi(_0x28ce5b,_0x4547f2,_0x2a6419),'description':_0x28ce5b[_0x372f86(0x12f)],'visible':_0x28ce5b[_0x372f86(0x31d)]!==!0x0,'selectable':_0x28ce5b[_0x372f86(0xf3)]!==!0x1,'sectionId':_0xeef2f0,'sectionTitle':_0x3a9f73?_0x2b01b7[_0x372f86(0x31b)]:_0x2b01b7[_0x372f86(0x1e2)],'capabilities':_0x3a9f73?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x3a9f73&&_0x1737cd>0x0,'canMoveBackward':!_0x3a9f73&&_0x1737cd<_0x103dbf[_0x372f86(0x190)]-0x1,'canReorder':!_0x3a9f73};}),_0x5981dd=_0xe812e8(()=>(_0x280f1e??[])[_0x64000a(0x191)](_0x2aa7e2=>_0x2aa7e2['unitId']===_0x4c2325&&_0x2aa7e2['subUnitId']===_0x4a7e1e)[_0x64000a(0x2f0)](_0x37f6ad=>_0x37f6ad[_0x64000a(0x14c)]),[_0x280f1e,_0x4a7e1e,_0x4c2325]),_0x539420=_0x5981dd[_0x5981dd[_0x64000a(0x1bc)]-0x1]??null,_0x4891ed=_0x4adb47=>_0x273fa7['getDrawingByParam']({'unitId':_0x4c2325,'subUnitId':_0x4a7e1e,'drawingId':_0x4adb47})??null,_0xb92089=async _0x376cdb=>{const _0x3f196b=_0x64000a;_0x4c2325&&_0x376cdb[_0x3f196b(0x1bc)]&&await _0x2eb324[_0x3f196b(0x152)](_0x24e472['id'],{'unitId':_0x4c2325,'drawings':_0x376cdb});},_0x271f29=async(_0x450b1c,_0x5125c6)=>{_0x4891ed(_0x450b1c)&&await _0xb92089([{'unitId':_0x4c2325,'subUnitId':_0x4a7e1e,'drawingId':_0x450b1c,..._0x5125c6}]);},_0xbe0500=(_0x57f971,_0x1c7c22)=>{const _0x230e75=_0x64000a;if(!_0x4c2325||!_0x4a7e1e)return;let _0x3c7c41=_0x1c7c22?_0x5981dd[_0x230e75(0x11e)](_0x57f971)?_0x5981dd[_0x230e75(0x191)](_0x1c28eb=>_0x1c28eb!==_0x57f971):[..._0x5981dd,_0x57f971]:[_0x57f971];_0x2eb324[_0x230e75(0x227)](_0x4ec468['id'],_0x3c7c41[_0x230e75(0x2f0)](_0x101dbb=>({'unitId':_0x4c2325,'subUnitId':_0x4a7e1e,'drawingId':_0x101dbb})));let _0xdd8264=_0x3c7c41[_0x3c7c41[_0x230e75(0x1bc)]-0x1];_0xdd8264?_0x526d99(_0x4b37f0,{'unitId':_0x4c2325,'subUnitId':_0x4a7e1e,'drawingId':_0xdd8264}):_0x23bd6c(_0x4b37f0,_0x4c2325);},_0x518e89=async(_0x1e5494,_0x3c7ce7)=>{const _0x244969=_0x64000a;await _0xb92089(_0x1e5494[_0x244969(0x2f0)](_0x1d624a=>_0x4891ed(_0x1d624a))[_0x244969(0x191)](_0x4df80b=>!!_0x4df80b)[_0x244969(0x191)](_0x1b2f60=>_0x1b2f60[_0x244969(0x31d)]!==!0x0!==_0x3c7ce7)['map'](_0x3d4d1d=>({'unitId':_0x4c2325,'subUnitId':_0x4a7e1e,'drawingId':_0x3d4d1d[_0x244969(0x14c)],'hidden':!_0x3c7ce7})));},_0x13e049=async(_0x2523cd,_0x31933b)=>{const _0x4ebbb4=_0x64000a;await _0xb92089(_0x2523cd[_0x4ebbb4(0x2f0)](_0x2fcdbe=>_0x4891ed(_0x2fcdbe))[_0x4ebbb4(0x191)](_0x2e31a3=>!!_0x2e31a3)['filter'](_0x576c42=>_0x576c42[_0x4ebbb4(0xf3)]!==!0x1!==_0x31933b)[_0x4ebbb4(0x2f0)](_0x28eac1=>({'unitId':_0x4c2325,'subUnitId':_0x4a7e1e,'drawingId':_0x28eac1[_0x4ebbb4(0x14c)],'selectable':_0x31933b})));},_0x30203c=_0x3c8588=>{const _0x5ac414=_0x64000a;let _0x23e552=_0x4891ed(_0x3c8588);if(_0x23e552)return _0x13e049([_0x3c8588],_0x23e552[_0x5ac414(0xf3)]===!0x1);},_0x3960ce=async(_0x25ad5b,_0x5d49e2)=>{const _0x49e433=_0x64000a;var _0x144650;let _0x1ae1a8=Zi(_0x5d49e2);(((_0x144650=_0x4891ed(_0x25ad5b))==null?void 0x0:_0x144650[_0x49e433(0x37a)])??void 0x0)!==_0x1ae1a8&&await _0x271f29(_0x25ad5b,{'name':_0x1ae1a8});},_0x19783a=async(_0x264e02,_0x4df2b0)=>{const _0x55518f=_0x64000a;var _0x552124;let _0x21b057=Zi(_0x4df2b0);(((_0x552124=_0x4891ed(_0x264e02))==null?void 0x0:_0x552124[_0x55518f(0x12f)])??void 0x0)!==_0x21b057&&await _0x271f29(_0x264e02,{'description':_0x21b057});},_0x4634b3=async(_0x3c6792,_0x33e6af)=>{_0x4c2325&&_0x4a7e1e&&await _0x2eb324['executeCommand'](_0x4b43eb['id'],{'unitId':_0x4c2325,'subUnitId':_0x4a7e1e,'drawingIds':[_0x3c6792],'arrangeType':_0x33e6af});};return!_0x4c2325||!_0x4a7e1e?_0x39d578(_0x64000a(0x1de),{'className':_0x64000a(0x148),'children':_0x2b01b7['title']}):_0x39d578(_0x5db76c,{'labels':_0x2b01b7,'items':_0x1fc771,'selectedIds':_0x5981dd,'focusedId':_0x539420,'showHeader':!0x1,'onSelect':_0xbe0500,'onSetVisible':_0x518e89,'onSetSelectable':_0x13e049,'onCommitName':_0x3960ce,'onCommitDescription':_0x19783a,'onMoveForward':async _0x4c54b3=>_0x4634b3(_0x4c54b3,_0x3190c7[_0x64000a(0x33b)]),'onMoveBackward':async _0x28eed5=>_0x4634b3(_0x28eed5,_0x3190c7['backward']),'onToggleSelectable':_0x30203c});}function ea(){return _0x39d578($i,{'PanelComponent':_0x3af157});}let ta=class extends _0x116f11{constructor(_0x4f3b96,_0x45c0bd){const _0x11b213=_0x196d4a;super(),this[_0x11b213(0x335)](_0x4f3b96[_0x11b213(0x157)](Rr,ea)),this[_0x11b213(0x335)](_0x45c0bd[_0x11b213(0x157)]({'BottomIcon':_0x498df7,'FlipHorizontalIcon':_0x654af8,'FlipVerticalIcon':_0x2d018e,'MoveDownIcon':_0x158b87,'MoveUpIcon':_0x1d98f5,'ObjectLayersIcon':_0x4dbc57,'ShapeFormatSettingIcon':_0x163347,'TopmostIcon':_0x172d21})),this[_0x11b213(0x335)](_0x4f3b96[_0x11b213(0x157)](Jr,ti)),this[_0x11b213(0x335)](_0x4f3b96[_0x11b213(0x157)](Yr,Qr)),_0x4f3b96[_0x11b213(0x100)](_0x5c8b25)||this[_0x11b213(0x335)](_0x4f3b96[_0x11b213(0x157)](_0x5c8b25,$r));}};ta=X([Y(0x0,_0x14bfc1(_0x1db2df)),Y(0x1,_0x14bfc1(_0x4f5c3f))],ta);let $=class extends _0x116f11{constructor(_0x80a240){const _0x225a02=_0x196d4a;super(),this[_0x225a02(0xfe)]=_0x80a240,q(this,'_editingParams$',new _0x494d52(null)),q(this,_0x225a02(0x181),this['_editingParams$'][_0x225a02(0x179)]()),q(this,'_onSavingEditorData$',new _0x494d52(!0x1)),q(this,_0x225a02(0xf1),this[_0x225a02(0x213)][_0x225a02(0x179)]()),q(this,_0x225a02(0x1eb),void 0x0),this[_0x225a02(0x335)](this[_0x225a02(0xfe)][_0x225a02(0x230)]['subscribe'](()=>{const _0x4fc58a=_0x225a02;let _0x5c8591=this[_0x4fc58a(0xe9)]();_0x5c8591!=null&&_0x5c8591['visible']&&!this['_canEdit'](_0x5c8591)&&this[_0x4fc58a(0x321)](null);}));}['dispose'](){const _0x9a88a0=_0x196d4a;this[_0x9a88a0(0x2af)](),this['_editingParams$'][_0x9a88a0(0x116)](null),this['_editingParams$'][_0x9a88a0(0x2f8)](),this['_onSavingEditorData$']['next'](!0x1),this[_0x9a88a0(0x213)][_0x9a88a0(0x2f8)](),super['dispose']();}[_0x196d4a(0x321)](_0x31ee64){const _0x17316f=_0x196d4a;(_0x31ee64==null||!_0x31ee64[_0x17316f(0x339)]||this[_0x17316f(0x1d8)](_0x31ee64))&&(this[_0x17316f(0x2af)](),this[_0x17316f(0x359)][_0x17316f(0x116)](_0x31ee64),(_0x31ee64==null||_0x31ee64[_0x17316f(0x339)]&&this[_0x17316f(0x213)][_0x17316f(0x18a)]())&&this[_0x17316f(0x213)][_0x17316f(0x116)](!0x1));}[_0x196d4a(0x2e7)](_0x399104){const _0x415600=_0x196d4a;this[_0x415600(0x213)][_0x415600(0x116)](_0x399104);}[_0x196d4a(0xe9)](){const _0x3d45bb=_0x196d4a;return this[_0x3d45bb(0x359)][_0x3d45bb(0x18a)]();}['_canEdit'](_0x576d19){const _0x4fe66f=_0x196d4a;let _0x3fb2db=this[_0x4fe66f(0xfe)]['getPermissionPoint'](new _0x126772(_0x576d19[_0x4fe66f(0x263)])['id']),_0x11fdc5=this[_0x4fe66f(0xfe)]['getPermissionPoint'](new _0x4b3b52(_0x576d19[_0x4fe66f(0x263)],_0x576d19[_0x4fe66f(0x2f3)])['id']);return((_0x3fb2db==null?void 0x0:_0x3fb2db['value'])??!0x0)&&((_0x11fdc5==null?void 0x0:_0x11fdc5[_0x4fe66f(0x1b9)])??!0x0);}[_0x196d4a(0x2d5)](_0x5f4af7){const _0x5710e1=_0x196d4a;let _0x1460ab=this[_0x5710e1(0xe9)]();_0x1460ab&&this[_0x5710e1(0x1eb)]===void 0x0&&(this[_0x5710e1(0x2e7)](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x59a54e=_0x5710e1;this[_0x59a54e(0x1eb)]=void 0x0,this[_0x59a54e(0xe9)]()===_0x1460ab&&this[_0x59a54e(0x321)](null);}));}[_0x196d4a(0x2af)](){const _0x29c8e7=_0x196d4a;this[_0x29c8e7(0x1eb)]!==void 0x0&&(cancelAnimationFrame(this['_completionFrame']),this[_0x29c8e7(0x1eb)]=void 0x0);}[_0x196d4a(0x331)](){const _0x51535=_0x196d4a;this[_0x51535(0xe9)]()&&this['setEditing'](null);}};$=X([Y(0x0,_0x51e1fb)],$);let na=class extends _0x116f11{constructor(_0x38383e,_0x5b7910,_0x2e08ee,_0x4c6ead,_0x338dff,_0x574449){const _0x40eb50=_0x196d4a;super(),this[_0x40eb50(0x217)]=_0x38383e,this['_injector']=_0x5b7910,this['_shapeTextEditingService']=_0x2e08ee,this[_0x40eb50(0x23e)]=_0x4c6ead,this[_0x40eb50(0x290)]=_0x338dff,this['_sheetsShapeService']=_0x574449,q(this,_0x40eb50(0x298),null),this[_0x40eb50(0x21d)](),this['_initSelection'](),this[_0x40eb50(0x30d)]();}[_0x196d4a(0x21d)](){const _0xa131fe=_0x196d4a;let {scene:_0x5b3fcf}=this['_context'];this[_0xa131fe(0x335)](_0x5b3fcf[_0xa131fe(0x253)][_0xa131fe(0xcf)](_0x2e220d=>{const _0x2fd251=_0xa131fe;let {offsetX:_0x429855,offsetY:_0x1ff7ff}=_0x2e220d,_0xbdc078=_0x5b3fcf[_0x2fd251(0x101)](_0x2163b6['FromArray']([_0x429855,_0x1ff7ff]));if(_0xbdc078 instanceof J){let _0x4aa495=this['_sheetsShapeService'][_0x2fd251(0xe6)](_0xbdc078['unitId'],_0xbdc078[_0x2fd251(0x2f3)],_0xbdc078[_0x2fd251(0x26c)]);if(_0x22e615(this[_0x2fd251(0x309)][_0x2fd251(0x197)](_0xbdc078['unitId'],_0xbdc078[_0x2fd251(0x2f3)],_0xbdc078[_0x2fd251(0x26c)]))||_0x4aa495!=null&&_0x4aa495['getShapeData']()['formulaBinding'])return;this[_0x2fd251(0x35f)][_0x2fd251(0x321)]({'visible':!0x0,'unitId':_0xbdc078[_0x2fd251(0x263)],'subUnitId':_0xbdc078[_0x2fd251(0x2f3)],'shapeId':_0xbdc078[_0x2fd251(0x26c)],'shapeKey':_0xbdc078[_0x2fd251(0x313)]});}}));}[_0x196d4a(0x280)](){const _0xe192ef=_0x196d4a;this['disposeWithMe'](this[_0xe192ef(0x23e)][_0xe192ef(0x107)][_0xe192ef(0x1ab)](_0x34ad07=>{const _0x39b5b0=_0xe192ef;if(_0x34ad07[_0x39b5b0(0x1bc)]===0x1){let _0x3b7887=_0x34ad07[0x0],_0x38432c=this['_drawingManagerService'][_0x39b5b0(0xc7)](_0x3b7887);if((_0x38432c==null?void 0x0:_0x38432c[_0x39b5b0(0x27b)])===_0x123aa0[_0x39b5b0(0x323)]){var _0x2624a6;let _0xc78958=this['_shapeTextEditingService'][_0x39b5b0(0xe9)]();if((_0xc78958==null?void 0x0:_0xc78958[_0x39b5b0(0x26c)])===_0x3b7887[_0x39b5b0(0x14c)]&&_0xc78958[_0x39b5b0(0x339)])return;let _0x401a5f=_0x22e615(this['_sheetsShapeService'][_0x39b5b0(0x197)](_0x3b7887[_0x39b5b0(0x263)],_0x3b7887['subUnitId'],_0x3b7887[_0x39b5b0(0x14c)])),_0x414582=!!((_0x2624a6=this[_0x39b5b0(0x309)][_0x39b5b0(0xe6)](_0x3b7887[_0x39b5b0(0x263)],_0x3b7887[_0x39b5b0(0x2f3)],_0x3b7887['drawingId']))!=null&&_0x2624a6[_0x39b5b0(0x1db)]()[_0x39b5b0(0x175)]);(_0x401a5f||_0x414582)&&this[_0x39b5b0(0x35f)]['setEditing'](null);}else this['_shapeTextEditingService'][_0x39b5b0(0x2d5)]();}else this[_0x39b5b0(0x35f)][_0x39b5b0(0x2d5)]();})),this['disposeWithMe'](this[_0xe192ef(0x23e)][_0xe192ef(0x10d)][_0xe192ef(0x1ab)](_0x16583b=>{const _0x3f26a0=_0xe192ef;let _0x546838=this[_0x3f26a0(0x35f)]['getEditing']();_0x546838&&_0x16583b[_0x3f26a0(0x2c6)](_0x2c10db=>_0x2c10db[_0x3f26a0(0x14c)]===_0x546838[_0x3f26a0(0x26c)])&&this['_shapeTextEditingService']['setEditing'](null);}));}[_0x196d4a(0x30d)](){const _0x2eaef9=_0x196d4a;this['disposeWithMe'](this[_0x2eaef9(0x35f)]['editingParams$'][_0x2eaef9(0x1ab)](_0x3361c5=>{const _0x413b7f=_0x2eaef9;let {scene:_0x2e694b}=this[_0x413b7f(0x217)];if(this[_0x413b7f(0x298)]){let _0x50f39c=_0x2e694b['getObjectIncludeInGroup'](this[_0x413b7f(0x298)]);_0x50f39c&&_0x50f39c['setEditing'](!0x1);}if(_0x3361c5){let _0x122b23=!!_0x3361c5[_0x413b7f(0x339)],_0x100be3=_0x2e694b[_0x413b7f(0x2b5)](_0x3361c5['shapeKey']);_0x100be3&&(_0x100be3[_0x413b7f(0x321)](_0x122b23),this['_lastEditingShapeKey']=_0x3361c5[_0x413b7f(0x219)]),this[_0x413b7f(0x290)][_0x413b7f(0x36b)](_0x578359,_0x122b23);}else this[_0x413b7f(0x298)]=null,this[_0x413b7f(0x290)][_0x413b7f(0x36b)](_0x578359,!0x1);}));}};na=X([Y(0x1,_0x14bfc1(_0x14ee4a)),Y(0x2,_0x14bfc1($)),Y(0x3,_0x446eb2),Y(0x4,_0x9bf8bb),Y(0x5,_0x14bfc1(_0x13b053))],na);var ra=class extends na{['_initEvents'](){const _0x419551=_0x196d4a;let {scene:_0x98f3d}=this[_0x419551(0x217)],_0x4353de=this[_0x419551(0x214)][_0x419551(0x100)](_0x456574);this['disposeWithMe'](_0x98f3d[_0x419551(0x253)]['subscribeEvent'](_0x14d899=>{const _0x2d6e32=_0x419551;let {offsetX:_0x21a763,offsetY:_0x9e8de9}=_0x14d899,_0x40821d=_0x98f3d[_0x2d6e32(0x101)](_0x2163b6[_0x2d6e32(0x229)]([_0x21a763,_0x9e8de9]));if(!(_0x40821d instanceof J))return;let _0x29d23b=this[_0x2d6e32(0x309)][_0x2d6e32(0xe6)](_0x40821d[_0x2d6e32(0x263)],_0x40821d[_0x2d6e32(0x2f3)],_0x40821d[_0x2d6e32(0x26c)]);_0x22e615(this[_0x2d6e32(0x309)][_0x2d6e32(0x197)](_0x40821d[_0x2d6e32(0x263)],_0x40821d['subUnitId'],_0x40821d['shapeId']))||_0x29d23b!=null&&_0x29d23b[_0x2d6e32(0x1db)]()[_0x2d6e32(0x175)]||_0x4353de[_0x2d6e32(0x2b3)](_0x2d6e32(0x2f1),{'hostType':_0x204504[_0x2d6e32(0x205)],'unitId':_0x40821d[_0x2d6e32(0x263)],'subUnitId':_0x40821d[_0x2d6e32(0x2f3)],'shapeId':_0x40821d[_0x2d6e32(0x26c)]});}));}};const ia={...Ui};let aa=class extends _0x116f11{constructor(_0x3cb53d,_0x5eb0b5,_0x2aaa33,_0x36c214,_0x33e208,_0x1a1c61,_0x1f991e,_0x407ad4){const _0x52a1b1=_0x196d4a;super(),this[_0x52a1b1(0x34e)]=_0x3cb53d,this[_0x52a1b1(0x309)]=_0x5eb0b5,this['_commandService']=_0x2aaa33,this['_drawingManagerService']=_0x36c214,this['_sheetCanvasPopManagerService']=_0x33e208,this['_contextService']=_0x1a1c61,this['_renderManagerService']=_0x1f991e,this[_0x52a1b1(0x35f)]=_0x407ad4,q(this,_0x52a1b1(0x160),null),this[_0x52a1b1(0x34e)][_0x52a1b1(0x24b)](ia),this[_0x52a1b1(0x1c4)](),this[_0x52a1b1(0x335)](this[_0x52a1b1(0x35f)][_0x52a1b1(0x181)][_0x52a1b1(0x1ab)](_0x5d6584=>{_0x5d6584&&this['_clearFocusedShape']();}));}[_0x196d4a(0x1c3)](){const _0x4ebcae=_0x196d4a;this['_shapePopupMenuDisposable']||=this[_0x4ebcae(0x335)](_0x37fb80(this[_0x4ebcae(0x1b7)],_0x204504[_0x4ebcae(0x205)],_0x18cfd1=>this[_0x4ebcae(0x208)](_0x18cfd1)));}[_0x196d4a(0x1c4)](){const _0x11b8b7=_0x196d4a;this[_0x11b8b7(0x12e)][_0x11b8b7(0x16f)](_0x123aa0['DRAWING_SHAPE'],(_0x28a611,_0x22fede,_0x4f2c86,_0x148b51)=>{const _0x686ecf=_0x11b8b7;let _0x22b968=this[_0x686ecf(0x309)][_0x686ecf(0x16a)](_0x28a611,_0x22fede,_0x4f2c86),_0x446121=this['_sheetsShapeService'][_0x686ecf(0xf0)](_0x28a611,_0x22fede,_0x4f2c86),_0x4cdf9e=_0x22b968!==void 0x0&&!_0x22e615(_0x22b968)&&!(_0x446121!=null&&_0x446121[_0x686ecf(0x175)]);return[{'label':_0x686ecf(0x2be),'index':0x0,'commandId':qi['id'],'commandParams':{'unitId':_0x28a611,'subUnitId':_0x22fede,'drawingId':_0x4f2c86,'mode':'style'},'disable':!0x1},..._0x4cdf9e?[{'label':_0x686ecf(0x286),'index':0x1,'commandId':qi['id'],'commandParams':{'unitId':_0x28a611,'subUnitId':_0x22fede,'drawingId':_0x4f2c86,'mode':'text'},'disable':!0x1}]:[],{'label':_0x686ecf(0x1af),'index':0x2,'commandId':_0x3b039['id'],'commandParams':{'unitId':_0x28a611,'drawings':[{'unitId':_0x28a611,'subUnitId':_0x22fede,'drawingId':_0x4f2c86,'drawingType':_0x148b51}]},'disable':!0x1},{'label':_0x686ecf(0x143),'index':0x3,'commandId':_0x3e0bbc['id'],'commandParams':{'unitId':_0x28a611,'subUnitId':_0x22fede,'shapeId':_0x4f2c86,'flipH':!0x0},'disable':!0x1},{'label':_0x686ecf(0xcc),'index':0x4,'commandId':_0x3e0bbc['id'],'commandParams':{'unitId':_0x28a611,'subUnitId':_0x22fede,'shapeId':_0x4f2c86,'flipV':!0x0},'disable':!0x1}];},_0x11b8b7(0x24f));}['_popupMenuListener'](_0x312d9a){const _0x2fef9e=_0x196d4a;let _0x16411c=new _0x5afd59(),_0x1be253=null,_0x2d270b=()=>{const _0x3c7532=_0x165f;if(!_0x1be253)return;let _0x5dfde4=this[_0x3c7532(0x23e)]['getFocusDrawings'](),_0x2a1cc4=_0x5dfde4[_0x3c7532(0x1bc)]===0x0||_0x5dfde4[_0x3c7532(0x1bc)]===0x1&&_0x5dfde4[_0x3c7532(0x2c6)](_0x3b565c=>_0x3b565c['unitId']===(_0x1be253==null?void 0x0:_0x1be253[_0x3c7532(0x263)])&&_0x3b565c[_0x3c7532(0x2f3)]===(_0x1be253==null?void 0x0:_0x1be253[_0x3c7532(0x2f3)])&&_0x3b565c[_0x3c7532(0x14c)]===(_0x1be253==null?void 0x0:_0x1be253[_0x3c7532(0x14c)]));_0x1be253=null,_0x2a1cc4&&(this['_contextService'][_0x3c7532(0x36b)](_0x2edc38,!0x1),this[_0x3c7532(0x23e)][_0x3c7532(0x364)](null));};return _0x16411c[_0x2fef9e(0x1c1)](_0x312d9a['createControl$'][_0x2fef9e(0x1ab)](()=>{const _0x29c2a0=_0x2fef9e;let _0x19983b=_0x312d9a[_0x29c2a0(0x2cc)]();if(_0x19983b[_0x29c2a0(0x358)]>0x1){_0x2d270b();return;}let _0x3bb24f=_0x19983b[_0x29c2a0(0x126)]()[_0x29c2a0(0x116)]()[_0x29c2a0(0x1b9)];if(!_0x3bb24f){_0x2d270b();return;}let _0x56d785=this[_0x29c2a0(0x23e)][_0x29c2a0(0x23a)](_0x3bb24f[_0x29c2a0(0x313)]);if(!_0x56d785||_0x56d785[_0x29c2a0(0x27b)]!==_0x123aa0[_0x29c2a0(0x323)]){_0x2d270b();return;}let {unitId:_0x43641f,subUnitId:_0x45de80,drawingId:_0x45fe83}=_0x56d785;_0x1be253={'unitId':_0x43641f,'subUnitId':_0x45de80,'drawingId':_0x45fe83},this[_0x29c2a0(0x290)]['setContextValue'](_0x2edc38,!0x0),this[_0x29c2a0(0x23e)][_0x29c2a0(0x31a)]()[_0x29c2a0(0x10a)](_0x26c7cb=>_0x26c7cb[_0x29c2a0(0x263)]===_0x43641f&&_0x26c7cb[_0x29c2a0(0x2f3)]===_0x45de80&&_0x26c7cb['drawingId']===_0x45fe83)||this[_0x29c2a0(0x23e)][_0x29c2a0(0x364)]([{'unitId':_0x43641f,'subUnitId':_0x45de80,'drawingId':_0x45fe83}]);})),_0x16411c[_0x2fef9e(0x1c1)](_0x312d9a[_0x2fef9e(0x18d)][_0x2fef9e(0x1ab)](()=>{_0x2d270b();})),_0x46ac89(()=>{const _0x8d46f=_0x2fef9e;_0x16411c[_0x8d46f(0x1cc)](),_0x2d270b();});}[_0x196d4a(0x1b2)](){const _0x4b1dab=_0x196d4a;this['_contextService'][_0x4b1dab(0x36b)](_0x2edc38,!0x1),this['_drawingManagerService'][_0x4b1dab(0x364)](null);}};aa=X([Y(0x0,_0x866cac),Y(0x1,_0x14bfc1(_0x13b053)),Y(0x2,_0x153d8f),Y(0x3,_0x446eb2),Y(0x4,_0x14bfc1(_0x5aaa90)),Y(0x5,_0x9bf8bb),Y(0x6,_0x4dadf2),Y(0x7,_0x14bfc1($))],aa);function oa(_0x5af674,_0x978932,_0x48e922,_0x2d941e){const _0x4b1591=_0x196d4a;let _0x36cda1=_0x71372e(_0x5af674,_0x978932,_0x48e922),_0x364a3d=[];for(let _0x3cdca1 of _0x978932){let _0x28b50e=_0x36cda1[_0x4b1591(0xcd)]['get'](_0x3cdca1[_0x4b1591(0x14c)]),_0x4ece9f=_0x2d941e(_0x3cdca1);_0x28b50e&&_0x4ece9f&&_0x364a3d['push']({'targetShapeId':_0x28b50e,'source':_0x4ece9f});}return _0x364a3d;}let sa=class extends _0x116f11{constructor(_0x3c84b6,_0x1f9098,_0x332a2c,_0x13a073){const _0x3c0ac4=_0x196d4a;super(),this[_0x3c0ac4(0x17a)]=_0x3c84b6,this['_sheetInterceptorService']=_0x1f9098,this[_0x3c0ac4(0xe8)]=_0x332a2c,this['_sheetsShapeService']=_0x13a073,this[_0x3c0ac4(0x26a)]();}['_initSheetChange'](){const _0x19e44a=_0x196d4a;this[_0x19e44a(0x335)](this[_0x19e44a(0x119)][_0x19e44a(0xec)]({'getMutations':_0x453077=>{const _0x3c5c09=_0x19e44a;if(_0x453077['id']===_0x2c4408['id']){let _0x8fd932=_0x3e1b5c(this[_0x3c5c09(0x17a)],_0x453077['params']);if(!_0x8fd932)return{'redos':[],'undos':[]};let {unitId:_0x345599,subUnitId:_0x55bb5f}=_0x8fd932,_0x1420db=this[_0x3c5c09(0xe8)][_0x3c5c09(0x37c)](_0x345599,_0x55bb5f),_0x293686=Object['values'](_0x1420db)[_0x3c5c09(0x191)](_0x36f684=>_0x36f684[_0x3c5c09(0x27b)]===_0x123aa0[_0x3c5c09(0x323)]);if(_0x293686[_0x3c5c09(0x1bc)]===0x0)return{'redos':[],'undos':[]};let _0x161bf5=[],_0x5e736a=[];for(let _0x31f93f=0x0;_0x31f93f<_0x293686['length'];_0x31f93f++){let _0x334a95=_0x293686[_0x31f93f],_0x29b2a8=this['_sheetsShapeService']['getShapeModel'](_0x334a95['unitId'],_0x334a95['subUnitId'],_0x334a95['drawingId']);_0x29b2a8&&(_0x161bf5[_0x3c5c09(0x2b7)]({'id':_0x39b912['id'],'params':{'unitId':_0x345599,'subUnitId':_0x55bb5f,'shapeId':_0x334a95['drawingId']}}),_0x5e736a[_0x3c5c09(0x2b7)]({'id':_0x14a389['id'],'params':{'unitId':_0x345599,'subUnitId':_0x55bb5f,'shapeId':_0x334a95[_0x3c5c09(0x14c)],'shapeType':_0x29b2a8['getShapeType'](),'shapeData':JSON[_0x3c5c09(0x1e9)](JSON['stringify'](_0x29b2a8['getShapeData']()))}}));}return{'redos':_0x161bf5,'undos':_0x5e736a};}if(_0x453077['id']===_0x3a4496['id']){let {unitId:_0x36211e,subUnitId:_0x3e96fb,targetSubUnitId:_0xb24c65,copyContext:_0x1464a0}=_0x453077[_0x3c5c09(0x1a9)];if(!_0x36211e||!_0x3e96fb||!_0xb24c65)return{'redos':[],'undos':[]};let _0x3fd279=this['_sheetDrawingService']['getDrawingData'](_0x36211e,_0x3e96fb),_0x490d2b=Object['values'](_0x3fd279)[_0x3c5c09(0x191)](_0x5b261f=>_0x5b261f[_0x3c5c09(0x27b)]===_0x123aa0[_0x3c5c09(0x323)]);if(_0x490d2b['length']===0x0)return{'redos':[],'undos':[]};let _0x39eea8=oa(_0x1464a0,_0x490d2b,{'unitId':_0x36211e,'sourceSubUnitId':_0x3e96fb,'targetSubUnitId':_0xb24c65},_0x3c228d=>{const _0x2686d4=_0x3c5c09;let _0x220a66=this[_0x2686d4(0x309)][_0x2686d4(0xe6)](_0x3c228d[_0x2686d4(0x263)],_0x3c228d['subUnitId'],_0x3c228d[_0x2686d4(0x14c)]);if(_0x220a66)return{'shapeType':_0x220a66['getShapeType'](),'shapeData':JSON[_0x2686d4(0x1e9)](JSON['stringify'](_0x220a66[_0x2686d4(0x1db)]()))};}),_0x472d5b=[],_0x3cb35a=[];for(let {targetShapeId:_0x38cee4,source:_0x69d12e}of _0x39eea8)_0x472d5b[_0x3c5c09(0x2b7)]({'id':_0x14a389['id'],'params':{'unitId':_0x36211e,'subUnitId':_0xb24c65,'shapeId':_0x38cee4,'shapeType':_0x69d12e[_0x3c5c09(0x327)],'shapeData':_0x69d12e[_0x3c5c09(0x2cf)]}}),_0x3cb35a['push']({'id':_0x39b912['id'],'params':{'unitId':_0x36211e,'subUnitId':_0xb24c65,'shapeId':_0x38cee4}});return{'redos':_0x472d5b,'undos':_0x3cb35a};}return{'redos':[],'undos':[]};}}));}};sa=X([Y(0x0,_0x14bfc1(_0x46c185)),Y(0x1,_0x14bfc1(_0x2d67e2)),Y(0x2,_0x14bfc1(_0x5e26dc)),Y(0x3,_0x14bfc1(_0x13b053))],sa);let ca=class extends _0x116f11{constructor(_0x128546,_0x6b4eb9,_0x446c8e,_0x40e39d,_0x32ad81,_0x4486a9){const _0x8ea0f8=_0x196d4a;super(),this['_commandService']=_0x128546,this['_renderManagerService']=_0x6b4eb9,this[_0x8ea0f8(0x23e)]=_0x446c8e,this[_0x8ea0f8(0x2a7)]=_0x40e39d,this[_0x8ea0f8(0x141)]=_0x32ad81,this[_0x8ea0f8(0x132)]=_0x4486a9,q(this,_0x8ea0f8(0x194),new Set()),this[_0x8ea0f8(0x282)]();}[_0x196d4a(0x282)](){const _0x12851b=_0x196d4a;this[_0x12851b(0x26e)](),this[_0x12851b(0x1cd)](),this[_0x12851b(0x366)]();}[_0x196d4a(0x26e)](){const _0x428826=_0x196d4a;this[_0x428826(0x335)](this['_drawingManagerService']['add$'][_0x428826(0x1ab)](_0x5a409a=>{const _0x59e630=_0x428826;this[_0x59e630(0x2ee)](_0x5a409a);}));}[_0x196d4a(0x1cd)](){this['disposeWithMe'](this['_commandService']['onCommandExecuted']((_0x106920,_0x146f6f)=>{const _0x272c9b=_0x165f;if(_0x106920['id']===_0x3ebd56['id']){let {unitId:_0x13cb3a,subUnitId:_0x524df4,shapeId:_0xeb2c44}=_0x106920[_0x272c9b(0x1a9)],_0x418d90=this[_0x272c9b(0x2b2)](_0x13cb3a),_0x2fd992=_0x934411({'unitId':_0x13cb3a,'subUnitId':_0x524df4,'drawingId':_0xeb2c44}),_0x49cc61=_0x418d90==null?void 0x0:_0x418d90[_0x272c9b(0x142)][_0x272c9b(0x2b5)](_0x2fd992);_0x49cc61&&(this[_0x272c9b(0x132)]['refreshShapeFillImage'](_0x49cc61),this[_0x272c9b(0x132)][_0x272c9b(0xf4)](_0x49cc61,{'unitId':_0x13cb3a,'subUnitId':_0x524df4,'shapeId':_0xeb2c44}),_0x49cc61[_0x272c9b(0xe5)](!0x0));return;}if(_0x106920['id']===_0x14a389['id']){var _0x3b4a40;let {unitId:_0x4cbaba,subUnitId:_0x1fd1fe,shapeId:_0x4cf2f0}=_0x106920[_0x272c9b(0x1a9)],_0x2b19fa=this[_0x272c9b(0x2b2)](_0x4cbaba);if(_0x2b19fa==null)return;let {scene:_0x4a6df5}=_0x2b19fa,_0xd208da=_0x934411({'unitId':_0x4cbaba,'subUnitId':_0x1fd1fe,'drawingId':_0x4cf2f0}),_0x42e247=_0x4a6df5[_0x272c9b(0x2b5)](_0xd208da);if(!((_0x3b4a40=this[_0x272c9b(0x1b7)][_0x272c9b(0xd7)](_0x4cbaba))!=null&&_0x3b4a40[_0x272c9b(0x2a0)](_0x7b1452)[_0x272c9b(0x1b1)](_0x1fd1fe)))return!0x1;if(_0x42e247)return;if(_0x146f6f!=null&&_0x146f6f[_0x272c9b(0x1cb)]){queueMicrotask(()=>{const _0x3df8a5=_0x272c9b;this[_0x3df8a5(0x2f9)]||this[_0x3df8a5(0x2ee)]([{'unitId':_0x4cbaba,'subUnitId':_0x1fd1fe,'drawingId':_0x4cf2f0}]);});return;}this[_0x272c9b(0x2ee)]([{'unitId':_0x4cbaba,'subUnitId':_0x1fd1fe,'drawingId':_0x4cf2f0}]);}}));}[_0x196d4a(0x366)](){const _0x51bed0=_0x196d4a;this[_0x51bed0(0x335)](this[_0x51bed0(0x23e)][_0x51bed0(0x131)]['subscribe'](_0x286269=>{const _0x1483fc=_0x51bed0;_0x286269[_0x1483fc(0x326)](_0x1a8223=>{const _0x53eabe=_0x1483fc;let {unitId:_0x52b98f,subUnitId:_0x3b6cb9,drawingId:_0x1c4481}=_0x1a8223,_0x1776d8=this[_0x53eabe(0x23e)][_0x53eabe(0xc7)](_0x1a8223);if(_0x1776d8==null)return;let {transform:_0x219b8c,drawingType:_0x98f329,srcRect:_0x2733af,prstGeom:_0xa875a2}=_0x1776d8;if(_0x98f329!==_0x123aa0[_0x53eabe(0x323)])return;let _0x2ab7a8=this[_0x53eabe(0x2b2)](_0x52b98f);if(_0x2ab7a8==null)return;let {scene:_0x4e208f,transformer:_0x50033b}=_0x2ab7a8;if(_0x219b8c==null)return!0x0;let _0x1ccf72=_0x934411({'unitId':_0x52b98f,'subUnitId':_0x3b6cb9,'drawingId':_0x1c4481}),_0x5e8d6d=_0x4e208f[_0x53eabe(0x2b5)](_0x1ccf72);if(_0x5e8d6d==null)return!0x0;_0x5e8d6d[_0x53eabe(0x19b)](_0x2733af),_0x5e8d6d['setPrstGeom'](_0xa875a2);});}));}['_insertShapes'](_0x991ff8){const _0x157943=_0x196d4a;for(let _0x4280f2 of _0x991ff8){var _0x4045c1;let {unitId:_0x26a86b,subUnitId:_0x350c81,drawingId:_0x182951}=_0x4280f2,_0x17de9c=this[_0x157943(0x2b2)](_0x26a86b),_0x21f399=(_0x4045c1=_0x4f2817(this[_0x157943(0x2a7)],_0x26a86b))==null?void 0x0:_0x4045c1[_0x157943(0x2f3)];if(_0x17de9c==null||_0x21f399!==_0x350c81)return;let _0x3fae02=_0x934411({'unitId':_0x26a86b,'subUnitId':_0x350c81,'drawingId':_0x182951});if(this[_0x157943(0x194)][_0x157943(0x238)](_0x3fae02)||_0x17de9c[_0x157943(0x142)][_0x157943(0x2b5)](_0x3fae02)!=null)return;let _0x272d37=this[_0x157943(0x23e)][_0x157943(0xc7)](_0x4280f2);if(_0x272d37==null||_0x272d37[_0x157943(0x27b)]!==_0x123aa0[_0x157943(0x323)])return;let _0x786d72=_0x272d37['data']||{};if(_0x22e615(_0x786d72['shapeType'])){let _0x4d8fa4=_0x272d37[_0x157943(0x311)];_0x4d8fa4&&(_0x272d37[_0x157943(0x311)]={..._0x4d8fa4,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x157943(0x194)][_0x157943(0x1c1)](_0x3fae02);try{this[_0x157943(0x132)][_0x157943(0x133)](_0x272d37,_0x17de9c[_0x157943(0x142)]);}finally{this[_0x157943(0x194)][_0x157943(0xfd)](_0x3fae02);}queueMicrotask(()=>{const _0xa95d6e=_0x157943;if(this[_0xa95d6e(0x2f9)])return;let _0x2e5b04=_0x934411(_0x4280f2);if(!_0x17de9c[_0xa95d6e(0x142)][_0xa95d6e(0x2b5)](_0x2e5b04))return;let _0x536324=this[_0xa95d6e(0x23e)]['getDrawingByParam'](_0x4280f2);_0x536324&&this['_drawingManagerService']['refreshTransform']([_0x536324]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x1bb284){const _0x5e90c0=_0x196d4a;if(_0x1bb284==null)return;let _0x34826c=this[_0x5e90c0(0x1b7)]['getRenderUnitById'](_0x1bb284),_0x337ddd=_0x34826c==null?void 0x0:_0x34826c[_0x5e90c0(0x142)];return _0x337ddd==null?null:{'scene':_0x337ddd,'transformer':_0x337ddd[_0x5e90c0(0x384)]()};}};ca=X([Y(0x0,_0x153d8f),Y(0x1,_0x4dadf2),Y(0x2,_0x446eb2),Y(0x3,_0x46c185),Y(0x4,_0x14bfc1(_0x8b8e3)),Y(0x5,_0x14bfc1(Z))],ca);const la={'normal':{'fill':_0x1a4d77[_0x196d4a(0xf2)],'stroke':_0x1a4d77[_0x196d4a(0x281)],'strokeWidth':_0x1a4d77[_0x196d4a(0x28f)]},'highlighted':{'fill':_0x196d4a(0x386),'stroke':_0x196d4a(0x172),'strokeWidth':0x2}};var ua=class extends _0x35d449{constructor(_0x27ba40,_0x500612){const _0x4d0fec=_0x196d4a;super(_0x27ba40,_0x500612),q(this,'_targetShapeId',''),q(this,'_cxnIndex',-0x1),q(this,_0x4d0fec(0x204),''),q(this,_0x4d0fec(0x19d),''),q(this,_0x4d0fec(0x27d),!0x1),_0x500612&&this[_0x4d0fec(0x2c3)](_0x500612);}[_0x196d4a(0x112)](){const _0x5a4ff0=_0x196d4a;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0x5a4ff0(0x32c)]};}[_0x196d4a(0x279)](_0x2b7223){const _0x5e8499=_0x196d4a;this[_0x5e8499(0x27d)]!==_0x2b7223&&(this[_0x5e8499(0x27d)]=_0x2b7223,this[_0x5e8499(0xe5)](!0x0));}[_0x196d4a(0x2c1)](){const _0x21c6cc=_0x196d4a;return this[_0x21c6cc(0x27d)];}[_0x196d4a(0x2c3)](_0x39cae9){const _0x405a9c=_0x196d4a;_0x39cae9[_0x405a9c(0x2fe)]!==void 0x0&&(this[_0x405a9c(0x2e9)]=_0x39cae9[_0x405a9c(0x2fe)]),_0x39cae9[_0x405a9c(0x196)]!==void 0x0&&(this['_cxnIndex']=_0x39cae9[_0x405a9c(0x196)]),_0x39cae9['unitId']!==void 0x0&&(this[_0x405a9c(0x204)]=_0x39cae9[_0x405a9c(0x263)]),_0x39cae9['subUnitId']!==void 0x0&&(this['_subUnitId']=_0x39cae9['subUnitId']),_0x39cae9[_0x405a9c(0x2c1)]!==void 0x0&&(this['_isHighlighted']=_0x39cae9[_0x405a9c(0x2c1)]),this[_0x405a9c(0x2a2)]({'width':_0x39cae9[_0x405a9c(0x2df)]??_0x1a4d77[_0x405a9c(0x243)]*0x2,'height':_0x39cae9[_0x405a9c(0x2b9)]??_0x1a4d77[_0x405a9c(0x243)]*0x2});}['_draw'](_0x1ac8a1){const _0x1cde50=_0x196d4a;let _0x1171de=this['_isHighlighted']?la['highlighted']:la['normal'];_0x37d975[_0x1cde50(0xd6)](_0x1ac8a1,{'radius':_0x1a4d77[_0x1cde50(0x243)],'fill':_0x1171de[_0x1cde50(0x32f)],'stroke':_0x1171de[_0x1cde50(0x193)],'strokeWidth':_0x1171de[_0x1cde50(0x252)],'evented':!0x0});}};function _0x165f(_0x136481,_0x2894d0){_0x136481=_0x136481-0xc5;const _0x376e73=_0x376e();let _0x165fa4=_0x376e73[_0x136481];return _0x165fa4;}let da=class extends _0x116f11{constructor(_0x100158,_0x56c59c,_0x3f40bd,_0x47bd95){const _0x5a684a=_0x196d4a;super(),this[_0x5a684a(0x217)]=_0x100158,this[_0x5a684a(0x1b7)]=_0x56c59c,this[_0x5a684a(0x23e)]=_0x3f40bd,this[_0x5a684a(0x309)]=_0x47bd95,q(this,_0x5a684a(0x37d),[]),q(this,_0x5a684a(0x11b),null),q(this,_0x5a684a(0x2f6),-0x1),q(this,_0x5a684a(0x2e0),null),q(this,'_unitId',''),q(this,_0x5a684a(0x19d),''),q(this,'_draggingConnectorId',null);}[_0x196d4a(0x347)](_0x58620b,_0x5e4f42,_0x388c8c,_0x177fc0){const _0x8943b5=_0x196d4a;this[_0x8943b5(0x2e0)]=_0x58620b,this[_0x8943b5(0x204)]=_0x5e4f42,this[_0x8943b5(0x19d)]=_0x388c8c,this[_0x8943b5(0x2ef)]=_0x177fc0;}[_0x196d4a(0x239)](_0x215027){const _0x5546dd=_0x196d4a;if(!this[_0x5546dd(0x2e0)])return null;let _0x351212=this[_0x5546dd(0x297)](_0x215027);return _0x351212?(this[_0x5546dd(0x11b)]!==_0x351212['shapeId']&&(this[_0x5546dd(0x1ea)](),this[_0x5546dd(0x234)](_0x351212['shapeId'],_0x351212['shapeModel']),this['_activeTargetShapeId']=_0x351212[_0x5546dd(0x26c)]),this[_0x5546dd(0x25f)](_0x215027)):(this['_activeTargetShapeId']!==null&&(this[_0x5546dd(0x1ea)](),this['_activeTargetShapeId']=null),null);}[_0x196d4a(0x2d2)](){const _0x5c6fe9=_0x196d4a;this[_0x5c6fe9(0x1ea)](),this[_0x5c6fe9(0x2e0)]=null,this['_activeTargetShapeId']=null,this[_0x5c6fe9(0x2f6)]=-0x1,this[_0x5c6fe9(0x2ef)]=null;}['getConnectionRelation'](){const _0x53b1af=_0x196d4a;return this[_0x53b1af(0x11b)]===null||this['_highlightedSiteIndex']<0x0?null:{'shapeId':this[_0x53b1af(0x11b)],'cxnIndex':this[_0x53b1af(0x2f6)]};}[_0x196d4a(0x297)](_0x11d914){const _0x2f18f1=_0x196d4a;let _0x194eff=this['_drawingManagerService'][_0x2f18f1(0x37c)](this['_unitId'],this[_0x2f18f1(0x19d)]);for(let _0x351d2a of Object[_0x2f18f1(0x12c)](_0x194eff)){if(_0x351d2a===this[_0x2f18f1(0x2ef)]||_0x194eff[_0x351d2a][_0x2f18f1(0x27b)]!==_0x123aa0[_0x2f18f1(0x323)])continue;let _0xcc1da7=this[_0x2f18f1(0x309)][_0x2f18f1(0xe6)](this['_unitId'],this['_subUnitId'],_0x351d2a);if(!_0xcc1da7||_0x22e615(_0xcc1da7[_0x2f18f1(0x197)]())||_0xcc1da7[_0x2f18f1(0x147)]()['length']===0x0||!this['_currentScene'])continue;let _0x410035=_0x934411({'unitId':this[_0x2f18f1(0x204)],'subUnitId':this[_0x2f18f1(0x19d)],'drawingId':_0x351d2a}),_0x4f0721=this[_0x2f18f1(0x2e0)][_0x2f18f1(0x2b5)](_0x410035);if(!_0x4f0721)continue;let {left:_0x4f711c,top:_0x2c20f7,width:_0x62bd25,height:_0x565cc1}=_0x4f0721['getRealBound'](),_0x215c2f=_0x4f711c+_0x62bd25/0x2,_0x4d8990=_0x2c20f7+_0x565cc1/0x2,_0x52fa52=_0x4f0721[_0x2f18f1(0x311)]['getMatrix'](),_0x4db242=new _0x29b58e([_0x52fa52[0x0],_0x52fa52[0x1],_0x52fa52[0x2],_0x52fa52[0x3],_0x215c2f,_0x4d8990]),_0x18965b=_0x4f0721[_0x2f18f1(0x135)](),_0x267868=(_0x4f0721[_0x2f18f1(0x2bf)]&&(_0x18965b==null?void 0x0:_0x18965b[_0x2f18f1(0x2d4)])===_0x57820c[_0x2f18f1(0x162)]?_0x18965b[_0x2f18f1(0x25b)][_0x2f18f1(0x247)](_0x4db242):_0x4db242)[_0x2f18f1(0x180)]()[_0x2f18f1(0x1e8)](_0x11d914),_0xf1de82=_0x62bd25/0x2,_0x3d4c1c=_0x565cc1/0x2;if(_0x267868['x']>=-_0xf1de82-0x5&&_0x267868['x']<=_0xf1de82+0x5&&_0x267868['y']>=-_0x3d4c1c-0x5&&_0x267868['y']<=_0x3d4c1c+0x5)return{'shapeId':_0x351d2a,'shapeModel':_0xcc1da7};}return null;}[_0x196d4a(0x234)](_0x5d337c,_0x45bfed){const _0x458b14=_0x196d4a;if(!this[_0x458b14(0x2e0)])return;let _0x5c377a=_0x934411({'unitId':this['_unitId'],'subUnitId':this[_0x458b14(0x19d)],'drawingId':_0x5d337c}),_0x1012f1=this[_0x458b14(0x2e0)][_0x458b14(0x2b5)](_0x5c377a);if(!_0x1012f1)return;let {left:_0x2a3d23,top:_0x5b35f3,width:_0x5e235c,height:_0x68d67c}=_0x1012f1[_0x458b14(0x294)](),_0x4dddee=_0x2a3d23+_0x5e235c/0x2,_0x3a7760=_0x5b35f3+_0x68d67c/0x2,_0x336783=_0x1012f1[_0x458b14(0x311)][_0x458b14(0x1a6)](),_0x47bbfd=new _0x29b58e([_0x336783[0x0],_0x336783[0x1],_0x336783[0x2],_0x336783[0x3],_0x4dddee,_0x3a7760]),_0x563135=_0x1012f1[_0x458b14(0x135)](),_0x5aab30=_0x1012f1['isInGroup']&&(_0x563135==null?void 0x0:_0x563135[_0x458b14(0x2d4)])===_0x57820c['GROUP']?_0x563135[_0x458b14(0x25b)][_0x458b14(0x247)](_0x47bbfd):_0x47bbfd;_0x45bfed[_0x458b14(0x385)]({'width':_0x5e235c,'height':_0x68d67c});let _0x2af1c4=_0x45bfed[_0x458b14(0x147)]();for(let _0x5137ce of _0x2af1c4){let _0x5e50fc=_0x5137ce['x']-_0x5e235c/0x2,_0x4cd67e=_0x5137ce['y']-_0x68d67c/0x2,_0x144a96=_0x5aab30[_0x458b14(0x1e8)]({'x':_0x5e50fc,'y':_0x4cd67e}),_0x59ab32=_0x144a96['x'],_0x320b1a=_0x144a96['y'],_0x9464a0=new ua(_0x458b14(0x13b)+_0x5d337c+'-'+_0x5137ce[_0x458b14(0x2db)],{'left':_0x59ab32-_0x1a4d77[_0x458b14(0x243)],'top':_0x320b1a-_0x1a4d77[_0x458b14(0x243)],'targetShapeId':_0x5d337c,'cxnIndex':_0x5137ce[_0x458b14(0x2db)],'unitId':this[_0x458b14(0x204)],'subUnitId':this[_0x458b14(0x19d)],'width':_0x1a4d77[_0x458b14(0x243)]*0x2,'height':_0x1a4d77[_0x458b14(0x243)]*0x2,'zIndex':_0x22b3ea+0x2,'evented':!0x1});this[_0x458b14(0x37d)][_0x458b14(0x2b7)](_0x9464a0),this['_currentScene'][_0x458b14(0xea)](_0x9464a0,_0x22b3ea+0x2);}}['_findNearestConnectionSite'](_0x256c14){const _0x4e4728=_0x196d4a;let _0x452b8b=null,_0xd4c453=0x1/0x0,_0x3f597c=null;for(let _0x57f312 of this['_connectionSiteObjects']){let _0x540321=_0x57f312['left']+_0x1a4d77[_0x4e4728(0x243)],_0x144b91=_0x57f312[_0x4e4728(0x324)]+_0x1a4d77[_0x4e4728(0x243)],_0x807dfb=_0x256c14['x']-_0x540321,_0xb7fac7=_0x256c14['y']-_0x144b91,_0x1e4394=Math['sqrt'](_0x807dfb*_0x807dfb+_0xb7fac7*_0xb7fac7);_0x1e4394<_0xd4c453&&(_0xd4c453=_0x1e4394,_0x452b8b=_0x57f312,_0x3f597c={'x':_0x540321,'y':_0x144b91});}let _0x140eeb=_0xd4c453<=0xa&&_0x452b8b?_0x452b8b[_0x4e4728(0x112)]()[_0x4e4728(0x196)]:-0x1;if(_0x140eeb!==this[_0x4e4728(0x2f6)]){for(let _0x291ec9 of this[_0x4e4728(0x37d)]){let _0x1651f6=_0x291ec9[_0x4e4728(0x112)]();_0x291ec9[_0x4e4728(0x279)](_0x1651f6[_0x4e4728(0x196)]===_0x140eeb);}this['_highlightedSiteIndex']=_0x140eeb;}if(_0xd4c453<=0xa&&_0x452b8b&&_0x3f597c){let _0x444670=_0x452b8b[_0x4e4728(0x112)](),_0x520f71=this[_0x4e4728(0x1bd)](_0x444670['shapeId'],_0x444670[_0x4e4728(0x196)]);return{'shapeId':_0x444670['shapeId'],'cxnIndex':_0x444670[_0x4e4728(0x196)],'unitId':_0x444670[_0x4e4728(0x263)],'subUnitId':_0x444670[_0x4e4728(0x2f3)],'worldPoint':_0x3f597c,'angle':_0x520f71};}return null;}['_getConnectionSiteAngle'](_0x43b091,_0x8ee7e3){const _0x827438=_0x196d4a;let _0x33b394=this[_0x827438(0x309)][_0x827438(0xe6)](this[_0x827438(0x204)],this['_subUnitId'],_0x43b091);if(!_0x33b394)return 0x0;let _0x2a7050=this[_0x827438(0x23e)][_0x827438(0xc7)]({'unitId':this[_0x827438(0x204)],'subUnitId':this[_0x827438(0x19d)],'drawingId':_0x43b091});if(!(_0x2a7050!=null&&_0x2a7050[_0x827438(0x311)]))return 0x0;let {width:_0xc5a988=0x0,height:_0x12b49f=0x0,flipX:_0x40d2ab=!0x1,flipY:_0x674461=!0x1}=_0x2a7050[_0x827438(0x311)];_0x33b394[_0x827438(0x385)]({'width':_0xc5a988,'height':_0x12b49f});let _0x29077c=_0x33b394['getConnectionSiteList']()['find'](_0x445503=>_0x445503[_0x827438(0x2db)]===_0x8ee7e3);if(!_0x29077c)return 0x0;let _0x2ec36e=_0x29077c[_0x827438(0x35e)]/0xea60;return _0x40d2ab&&(_0x2ec36e=0xb4-_0x2ec36e),_0x674461&&(_0x2ec36e=-_0x2ec36e),_0x2ec36e=(_0x2ec36e%0x168+0x168)%0x168,_0x2ec36e;}[_0x196d4a(0x1ea)](){const _0x544888=_0x196d4a;for(let _0x1abb56 of this['_connectionSiteObjects'])_0x1abb56[_0x544888(0x1cc)]();this[_0x544888(0x37d)]=[],this[_0x544888(0x2f6)]=-0x1;}['dispose'](){const _0x19dd23=_0x196d4a;this['_clearConnectionSites'](),super[_0x19dd23(0x1cc)]();}};da=X([Y(0x1,_0x14bfc1(_0x4dadf2)),Y(0x2,_0x14bfc1(_0x446eb2)),Y(0x3,_0x14bfc1(_0x13b053))],da);let fa=class extends _0x116f11{constructor(_0x431f28,_0x3d8bcd,_0x5f29bb,_0x15bde5,_0x8584a7){const _0x1a3bdd=_0x196d4a;super(),this[_0x1a3bdd(0xc8)]=_0x431f28,this[_0x1a3bdd(0x2ba)]=_0x3d8bcd,this[_0x1a3bdd(0xe8)]=_0x5f29bb,this[_0x1a3bdd(0x246)]=_0x15bde5,this[_0x1a3bdd(0x18e)]=_0x8584a7,q(this,_0x1a3bdd(0x186),void 0x0),this['_initCopyPaste'](),this[_0x1a3bdd(0x288)]();}get[_0x196d4a(0x2e1)](){return this['_sheetDrawingService']['getFocusDrawings']();}[_0x196d4a(0x288)](){const _0x247cc6=_0x196d4a;this['_groupCopyPasteController'][_0x247cc6(0x37e)](({fromUnitId:_0x4cfe4c,fromSubUnitId:_0x41168e,toUnitId:_0x56b200,toSubUnitId:_0x5e5f6f,idMap:_0x502bd8})=>{const _0x1ec992=_0x247cc6;let _0x3cf2c7=[],_0x98d97c=[];for(let [_0x2a476a,_0x75a513]of _0x502bd8['entries']()){let _0x3c8597=this[_0x1ec992(0x246)]['getShapeModel'](_0x4cfe4c,_0x41168e,_0x2a476a);if(!_0x3c8597)continue;let _0x11da9d=_0x3c8597[_0x1ec992(0x197)](),_0x4a9e14=JSON[_0x1ec992(0x1e9)](JSON[_0x1ec992(0x32b)](_0x3c8597[_0x1ec992(0x1db)]()));if(_0x4a9e14[_0x1ec992(0x27a)]){var _0x35460f,_0x26cf41;let _0x4d6d22=(_0x35460f=_0x4a9e14['relation'][_0x1ec992(0x1e6)])==null?void 0x0:_0x35460f[_0x1ec992(0x26c)],_0x41b790=(_0x26cf41=_0x4a9e14[_0x1ec992(0x27a)]['to'])==null?void 0x0:_0x26cf41[_0x1ec992(0x26c)],_0x1de2ae=!_0x4d6d22||_0x502bd8['has'](_0x4d6d22),_0x11ee15=!_0x41b790||_0x502bd8['has'](_0x41b790);_0x1de2ae&&_0x4d6d22&&_0x4a9e14[_0x1ec992(0x27a)][_0x1ec992(0x1e6)]?_0x4a9e14[_0x1ec992(0x27a)][_0x1ec992(0x1e6)]={..._0x4a9e14['relation']['from'],'shapeId':_0x502bd8[_0x1ec992(0x100)](_0x4d6d22)}:_0x4a9e14[_0x1ec992(0x27a)][_0x1ec992(0x1e6)]=void 0x0,_0x11ee15&&_0x41b790&&_0x4a9e14['relation']['to']?_0x4a9e14[_0x1ec992(0x27a)]['to']={..._0x4a9e14[_0x1ec992(0x27a)]['to'],'shapeId':_0x502bd8[_0x1ec992(0x100)](_0x41b790)}:_0x4a9e14[_0x1ec992(0x27a)]['to']=void 0x0;}_0x3cf2c7['push']({'id':_0x14a389['id'],'params':{'unitId':_0x56b200,'subUnitId':_0x5e5f6f,'shapeId':_0x75a513,'shapeType':_0x11da9d,'shapeData':_0x4a9e14}}),_0x98d97c[_0x1ec992(0x2b7)]({'id':_0x39b912['id'],'params':{'unitId':_0x56b200,'subUnitId':_0x5e5f6f,'shapeId':_0x75a513}});}return{'redos':_0x3cf2c7,'undos':_0x98d97c};});}[_0x196d4a(0x24a)](){const _0x514e9d=_0x196d4a;this['disposeWithMe'](this['_sheetClipboardService'][_0x514e9d(0x24e)]({'id':_0x514e9d(0x34d),'onBeforeCopyFocusedObject':(_0xd173df,_0xb347d2,_0x1ae405)=>{const _0x2e6a65=_0x514e9d;this[_0x2e6a65(0x186)]=null;let _0x88b8de=this[_0x2e6a65(0x2e1)][_0x2e6a65(0x191)](_0x6d067c=>_0x6d067c[_0x2e6a65(0x27b)]===_0x123aa0['DRAWING_SHAPE']);return _0x88b8de[_0x2e6a65(0x1bc)]!==0x0&&(this[_0x2e6a65(0x186)]={'unitId':_0xd173df,'subUnitId':_0xb347d2,'copyType':_0x1ae405,'drawings':_0x88b8de},!0x0);},'onBeforeCopy':(_0x178d9e,_0x4e0f42,_0x478d37,_0x19d78a)=>{const _0x4c3dfe=_0x514e9d;this[_0x4c3dfe(0x186)]=null,this[_0x4c3dfe(0x123)](_0x178d9e,_0x4e0f42,_0x478d37,_0x19d78a);},'onPasteCells':(_0x33118b,_0x4af71f,_0xb45d68,_0x8239e3)=>{const _0x3ca766=_0x514e9d;if(!_0x8239e3['copyId']||!_0x33118b||!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x339c07}=_0x8239e3;return _0x339c07===_0x225c7f[_0x3ca766(0x240)]?this['_generatePasteMutations'](_0x4af71f,this['_copyInfo'][_0x3ca766(0x19c)]===_0x35c24e[_0x3ca766(0x316)]):{'redos':[],'undos':[]};}}));}[_0x196d4a(0x123)](_0x5b7ba1,_0x1a34d1,_0x50ca09,_0x5125f0){const _0x9a3523=_0x196d4a;let _0x248881=this['_sheetSkeletonService'][_0x9a3523(0x1b1)](_0x5b7ba1,_0x1a34d1);if(!_0x248881)return;let _0x3d4d55=_0x14fc19(_0x248881,_0x50ca09);if(!_0x3d4d55)return;let {startX:_0x2567f3,endX:_0x3058d0,startY:_0x1a4d88,endY:_0x1d9d4b}=_0x3d4d55,_0x53e6a9=this['_sheetDrawingService'][_0x9a3523(0x37c)](_0x5b7ba1,_0x1a34d1),_0x4c229e=[];for(let [_0x546004,_0x400179]of Object['entries'](_0x53e6a9)){if(_0x400179[_0x9a3523(0x27b)]!==_0x123aa0[_0x9a3523(0x323)])continue;let {transform:_0xeafecb}=_0x400179;if(!_0xeafecb)continue;let {left:_0x1544ea=0x0,top:_0x3078b0=0x0,width:_0xdc4ba4=0x0,height:_0x1dbf33=0x0}=_0xeafecb;_0x2567f3<=_0x1544ea&&_0x3058d0>=_0x1544ea+_0xdc4ba4&&_0x1a4d88<=_0x3078b0&&_0x1d9d4b>=_0x3078b0+_0x1dbf33&&_0x4c229e[_0x9a3523(0x2b7)](_0x400179);}_0x4c229e[_0x9a3523(0x1bc)]>0x0&&(this[_0x9a3523(0x186)]={'unitId':_0x5b7ba1,'subUnitId':_0x1a34d1,'copyType':_0x5125f0,'copyRange':_0x50ca09,'drawings':_0x4c229e});}[_0x196d4a(0x17d)](_0x3fdeca,_0x32d72f){const _0x1b6c26=_0x196d4a;let {unitId:_0x2cd18c,subUnitId:_0x1384af,range:_0x53071f}=_0x3fdeca,_0x2f43b5=this[_0x1b6c26(0xc8)][_0x1b6c26(0x1b1)](_0x2cd18c,_0x1384af);if(!_0x2f43b5)return{'redos':[],'undos':[]};let _0x118916=_0xf91a3d(_0x53071f),{unitId:_0x25cb08,subUnitId:_0x463170,copyRange:_0x37152a,drawings:_0x2aa4df}=this[_0x1b6c26(0x186)],_0x2eb39d=this[_0x1b6c26(0xc8)][_0x1b6c26(0x1b1)](_0x25cb08,_0x463170);if(!_0x2eb39d)return{'redos':[],'undos':[]};let _0x10129d;if(!_0x37152a){let _0x5687a8=0x1/0x0,_0x25178d=0x1/0x0;for(let _0x367c5b of _0x2aa4df){let {left:_0x342e2c=0x0,top:_0x87aaba=0x0}=_0x367c5b[_0x1b6c26(0x311)]??{};_0x342e2c<_0x5687a8&&(_0x5687a8=_0x342e2c),_0x87aaba<_0x25178d&&(_0x25178d=_0x87aaba);}_0x5687a8!==0x1/0x0&&_0x25178d!==0x1/0x0&&(_0x10129d={'left':_0x5687a8,'top':_0x25178d});}let _0x320a2b=new Map();if(!_0x32d72f){for(let _0x3fa48e of _0x2aa4df)_0x320a2b['set'](_0x3fa48e['drawingId'],_0xc50b92());}let _0x149864=[],_0x529904=[];for(let _0x4fd44 of _0x2aa4df){let {drawingId:_0x274b8f,transform:_0x260a5a,sheetTransform:_0x58e0c2}=_0x4fd44;if(!_0x260a5a||!_0x58e0c2)continue;let _0x32bf6b=this[_0x1b6c26(0x30b)]({'transform':_0x260a5a,'sheetTransform':_0x58e0c2},{'skeleton':_0x2eb39d,'range':_0x37152a},{'skeleton':_0x2f43b5,'range':_0x118916},_0x10129d);if(_0x32d72f){let {redos:_0x22979c,undos:_0x36ade4}=this[_0x1b6c26(0x14f)]({'fromUnitId':_0x25cb08,'fromSubUnitId':_0x463170,'toUnitId':_0x2cd18c,'toSubUnitId':_0x1384af,'drawing':_0x4fd44,'newTransforms':_0x32bf6b});_0x149864[_0x1b6c26(0x2b7)](..._0x22979c),_0x529904[_0x1b6c26(0x2b7)](..._0x36ade4);continue;}let {redos:_0x6d84a0,undos:_0x663616}=this['_generateCopyPasteMutations']({'toUnitId':_0x2cd18c,'toSubUnitId':_0x1384af,'drawing':_0x4fd44,'newTransforms':_0x32bf6b,'newDrawingId':_0x320a2b[_0x1b6c26(0x100)](_0x274b8f),'idMap':_0x320a2b});_0x149864[_0x1b6c26(0x2b7)](..._0x6d84a0),_0x529904[_0x1b6c26(0x2b7)](..._0x663616);}return{'redos':_0x149864,'undos':_0x529904};}[_0x196d4a(0x14f)](_0x4c6918){const _0x191724=_0x196d4a;let {fromUnitId:_0xd48107,fromSubUnitId:_0x22ec2f,toUnitId:_0x306913,toSubUnitId:_0x96fda6,drawing:_0x56383e,newTransforms:_0x298009}=_0x4c6918,_0x2f7dc2={..._0x56383e,'unitId':_0x306913,'subUnitId':_0x96fda6,'transform':_0x298009['transform'],'sheetTransform':_0x298009[_0x191724(0x325)]};if(_0x306913===_0xd48107&&_0x96fda6===_0x22ec2f){let {redo:_0x3ca295,undo:_0xd3c3da,objects:_0x4b8f2b}=this[_0x191724(0xe8)][_0x191724(0x33f)]([_0x2f7dc2]);return{'redos':[{'id':_0x164c96['id'],'params':{'unitId':_0x306913,'subUnitId':_0x96fda6,'type':_0x5e0f69[_0x191724(0x17c)],'op':_0x3ca295,'objects':_0x4b8f2b}}],'undos':[{'id':_0x164c96['id'],'params':{'unitId':_0x306913,'subUnitId':_0x96fda6,'type':_0x5e0f69[_0x191724(0x17c)],'op':_0xd3c3da,'objects':_0x4b8f2b}}]};}{let _0xd3c6d3=this[_0x191724(0xe8)]['getBatchRemoveOp']([_0x56383e]),_0x33ef6f=this[_0x191724(0xe8)]['getBatchAddOp']([_0x2f7dc2]),_0x826d6e=this[_0x191724(0x246)][_0x191724(0xe6)](_0x56383e[_0x191724(0x263)],_0x56383e[_0x191724(0x2f3)],_0x56383e[_0x191724(0x14c)]);if(!_0x826d6e)return{'redos':[],'undos':[]};let _0x385e70=_0x826d6e[_0x191724(0x197)](),_0xeda7f2=JSON[_0x191724(0x1e9)](JSON[_0x191724(0x32b)](_0x826d6e[_0x191724(0x1db)]()));return{'redos':[{'id':_0x164c96['id'],'params':{'unitId':_0xd48107,'subUnitId':_0x22ec2f,'type':_0x5e0f69['REMOVE'],'op':_0xd3c6d3[_0x191724(0xff)],'objects':_0xd3c6d3['objects']}},{'id':_0x39b912['id'],'params':{'unitId':_0xd48107,'subUnitId':_0x22ec2f,'shapeId':_0x56383e[_0x191724(0x14c)]}},{'id':_0x164c96['id'],'params':{'unitId':_0x306913,'subUnitId':_0x96fda6,'type':_0x5e0f69[_0x191724(0x328)],'op':_0x33ef6f['redo'],'objects':_0x33ef6f[_0x191724(0x35d)]}},{'id':_0x14a389['id'],'params':{'unitId':_0x306913,'subUnitId':_0x96fda6,'shapeId':_0x56383e['drawingId'],'shapeType':_0x385e70,'shapeData':_0xeda7f2}}],'undos':[{'id':_0x164c96['id'],'params':{'unitId':_0xd48107,'subUnitId':_0x22ec2f,'type':_0x5e0f69[_0x191724(0x328)],'op':_0xd3c6d3[_0x191724(0x1c5)],'objects':_0xd3c6d3[_0x191724(0x35d)]}},{'id':_0x14a389['id'],'params':{'unitId':_0xd48107,'subUnitId':_0x22ec2f,'shapeId':_0x56383e[_0x191724(0x14c)],'shapeType':_0x385e70,'shapeData':_0xeda7f2}},{'id':_0x164c96['id'],'params':{'unitId':_0x306913,'subUnitId':_0x96fda6,'type':_0x5e0f69[_0x191724(0x22d)],'op':_0x33ef6f[_0x191724(0x1c5)],'objects':_0x33ef6f[_0x191724(0x35d)]}},{'id':_0x39b912['id'],'params':{'unitId':_0x306913,'subUnitId':_0x96fda6,'shapeId':_0x56383e[_0x191724(0x14c)]}}]};}}['_generateCopyPasteMutations'](_0x2e98a2){const _0x35166d=_0x196d4a;let {toUnitId:_0x45602c,toSubUnitId:_0x533ba1,drawing:_0x44945b,newTransforms:_0x3d3fc9,newDrawingId:_0x58a406,idMap:_0x10ef8a}=_0x2e98a2,_0x53bcb5={..._0x44945b,'unitId':_0x45602c,'subUnitId':_0x533ba1,'drawingId':_0x58a406,'transform':_0x3d3fc9[_0x35166d(0x311)],'sheetTransform':_0x3d3fc9[_0x35166d(0x325)]},{redo:_0x472081,undo:_0x4c3cca,objects:_0x2d25ad}=this[_0x35166d(0xe8)]['getBatchAddOp']([_0x53bcb5]),_0x475481=this[_0x35166d(0x246)][_0x35166d(0xe6)](_0x44945b[_0x35166d(0x263)],_0x44945b[_0x35166d(0x2f3)],_0x44945b[_0x35166d(0x14c)]);if(!_0x475481)return{'redos':[],'undos':[]};let _0x1a3c3a=_0x475481[_0x35166d(0x197)](),_0x111f4b=JSON['parse'](JSON['stringify'](_0x475481[_0x35166d(0x1db)]()));if(_0x111f4b[_0x35166d(0x27a)]){var _0x105e8a,_0x2e6220;let _0x131159=(_0x105e8a=_0x111f4b['relation'][_0x35166d(0x1e6)])==null?void 0x0:_0x105e8a['shapeId'],_0x545f26=(_0x2e6220=_0x111f4b[_0x35166d(0x27a)]['to'])==null?void 0x0:_0x2e6220['shapeId'],_0x442fd9=!_0x131159||_0x10ef8a[_0x35166d(0x238)](_0x131159),_0x35180f=!_0x545f26||_0x10ef8a['has'](_0x545f26);_0x442fd9&&_0x131159&&_0x111f4b[_0x35166d(0x27a)][_0x35166d(0x1e6)]?_0x111f4b[_0x35166d(0x27a)]['from']={..._0x111f4b[_0x35166d(0x27a)]['from'],'shapeId':_0x10ef8a[_0x35166d(0x100)](_0x131159)}:_0x111f4b[_0x35166d(0x27a)][_0x35166d(0x1e6)]=void 0x0,_0x35180f&&_0x545f26&&_0x111f4b[_0x35166d(0x27a)]['to']?_0x111f4b['relation']['to']={..._0x111f4b[_0x35166d(0x27a)]['to'],'shapeId':_0x10ef8a[_0x35166d(0x100)](_0x545f26)}:_0x111f4b['relation']['to']=void 0x0;}return{'redos':[{'id':_0x164c96['id'],'params':{'unitId':_0x45602c,'subUnitId':_0x533ba1,'type':_0x5e0f69[_0x35166d(0x328)],'op':_0x472081,'objects':_0x2d25ad}},{'id':_0x14a389['id'],'params':{'unitId':_0x45602c,'subUnitId':_0x533ba1,'shapeId':_0x58a406,'shapeType':_0x1a3c3a,'shapeData':_0x111f4b}}],'undos':[{'id':_0x164c96['id'],'params':{'unitId':_0x45602c,'subUnitId':_0x533ba1,'type':_0x5e0f69[_0x35166d(0x22d)],'op':_0x4c3cca,'objects':_0x2d25ad}},{'id':_0x39b912['id'],'params':{'unitId':_0x45602c,'subUnitId':_0x533ba1,'shapeId':_0x58a406}}]};}[_0x196d4a(0x30b)](_0x82f028,_0x8b29cd,_0x429187,_0x31f207){const _0x237006=_0x196d4a;let {range:_0x3a5229,skeleton:_0x3b6abb}=_0x8b29cd,{range:_0x2ba24d,skeleton:_0x18dafc}=_0x429187,{transform:_0x3ead32,sheetTransform:_0x722bc4}=_0x82f028,_0x30b998={..._0x3ead32};if(_0x3a5229){let _0x9e681e=_0x14fc19(_0x3b6abb,_0x3a5229),_0x58964b=_0x14fc19(_0x18dafc,_0x2ba24d);if(_0x9e681e&&_0x58964b){let _0x3378ba=_0x58964b[_0x237006(0x1f1)]-_0x9e681e[_0x237006(0x1f1)],_0x4e239a=_0x58964b[_0x237006(0x29d)]-_0x9e681e['startY'];_0x30b998[_0x237006(0x158)]=(_0x30b998[_0x237006(0x158)]??0x0)+_0x3378ba,_0x30b998['top']=(_0x30b998[_0x237006(0x324)]??0x0)+_0x4e239a;}}else{let _0x543d45=_0x14fc19(_0x18dafc,_0x2ba24d);if(_0x31f207&&_0x543d45){let _0x99bc56=(_0x30b998[_0x237006(0x158)]??0x0)-_0x31f207[_0x237006(0x158)],_0x510e90=(_0x30b998[_0x237006(0x324)]??0x0)-_0x31f207[_0x237006(0x324)];_0x30b998[_0x237006(0x158)]=_0x543d45[_0x237006(0x1f1)]+_0x99bc56,_0x30b998[_0x237006(0x324)]=_0x543d45['startY']+_0x510e90;}else _0x30b998[_0x237006(0x158)]=_0x543d45==null?void 0x0:_0x543d45[_0x237006(0x1f1)],_0x30b998[_0x237006(0x324)]=_0x543d45==null?void 0x0:_0x543d45[_0x237006(0x29d)];}return{'transform':_0x30b998,'sheetTransform':_0x15205d(_0x30b998,_0x18dafc)??_0x722bc4};}};fa=X([Y(0x0,_0x14bfc1(_0x2c5708)),Y(0x1,_0x14bfc1(_0x4c557e)),Y(0x2,_0x14bfc1(_0x5e26dc)),Y(0x3,_0x14bfc1(_0x13b053)),Y(0x4,_0x14bfc1(_0x1b88b8))],fa);var pa=class extends _0x35d449{constructor(_0x41aa74,_0x266533){const _0x34e328=_0x196d4a;super(_0x41aa74,_0x266533),q(this,_0x34e328(0x306),null),q(this,_0x34e328(0x140),null),q(this,_0x34e328(0x204),null),q(this,_0x34e328(0x19d),null),q(this,'_isStartConnectorPoint',!0x1),_0x266533&&this[_0x34e328(0x2c3)](_0x266533);}['getDrawingSearch'](){const _0x1ed2e1=_0x196d4a;return{'unitId':this[_0x1ed2e1(0x204)],'subUnitId':this[_0x1ed2e1(0x19d)],'drawingId':this['_shapeId']};}[_0x196d4a(0x2c3)](_0x5f2408){const _0x5a3fe1=_0x196d4a;_0x5f2408[_0x5a3fe1(0x26c)]!==void 0x0&&(this[_0x5a3fe1(0x306)]=_0x5f2408[_0x5a3fe1(0x26c)]),_0x5f2408[_0x5a3fe1(0x263)]!==void 0x0&&(this[_0x5a3fe1(0x204)]=_0x5f2408[_0x5a3fe1(0x263)]),_0x5f2408['subUnitId']!==void 0x0&&(this[_0x5a3fe1(0x19d)]=_0x5f2408[_0x5a3fe1(0x2f3)]),_0x5f2408[_0x5a3fe1(0x343)]!==void 0x0&&(this[_0x5a3fe1(0x312)]=_0x5f2408[_0x5a3fe1(0x343)]),this['transformByState']({'width':_0x5f2408[_0x5a3fe1(0x2df)],'height':_0x5f2408[_0x5a3fe1(0x2b9)]});}[_0x196d4a(0x236)](_0x9803c0){const _0x5dd68d=_0x196d4a;_0x37d975['drawWith'](_0x9803c0,{'radius':_0x1a4d77[_0x5dd68d(0x243)],'fill':_0x1a4d77['cxnPointFill'],'stroke':_0x1a4d77['cxnPointStroke'],'strokeWidth':_0x1a4d77['cxnPointStrokeWidth'],'evented':!0x0});}};let ma=class extends _0x116f11{constructor(_0x549cfc,_0x499726,_0x42ac1d,_0x3a1495,_0x12de68,_0x2c4e85,_0x269b38,_0xbb69f5){const _0x47e3a4=_0x196d4a;super(),this['_context']=_0x549cfc,this[_0x47e3a4(0x232)]=_0x499726,this['_renderManagerService']=_0x42ac1d,this[_0x47e3a4(0x23e)]=_0x3a1495,this[_0x47e3a4(0x17a)]=_0x12de68,this['_sheetsShapeService']=_0x2c4e85,this[_0x47e3a4(0x33e)]=_0x269b38,this['_sheetBasicShapeConnectionPointController']=_0xbb69f5,q(this,'_activeShapeId',void 0x0),q(this,_0x47e3a4(0x204),void 0x0),q(this,_0x47e3a4(0x19d),void 0x0),q(this,'_connectorObjects',[]),q(this,_0x47e3a4(0x315),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x47e3a4(0x1ef),void 0x0),q(this,'_isConnecting',!0x1),q(this,_0x47e3a4(0x10e),!0x1),q(this,_0x47e3a4(0x1c7),!0x1),q(this,_0x47e3a4(0x28a),void 0x0),q(this,_0x47e3a4(0x2a4),void 0x0),q(this,_0x47e3a4(0x10b),null),this[_0x47e3a4(0x282)]();}[_0x196d4a(0x282)](){const _0x649924=_0x196d4a;this['_registerDrawingFocusChangeHandler'](),this[_0x649924(0x1a2)]();}['_getDrawingRect'](){const _0x193553=_0x196d4a;if(!this[_0x193553(0x204)]||!this[_0x193553(0x19d)]||!this[_0x193553(0x2fb)])return;let _0x2afe71={'unitId':this['_unitId'],'subUnitId':this[_0x193553(0x19d)],'drawingId':this[_0x193553(0x2fb)]},{transform:_0x382102}=this[_0x193553(0x23e)][_0x193553(0xc7)](_0x2afe71);if(_0x382102)return{'left':_0x382102[_0x193553(0x158)]||0x0,'top':_0x382102[_0x193553(0x324)]||0x0,'width':_0x382102[_0x193553(0x2df)]||0x0,'height':_0x382102[_0x193553(0x2b9)]||0x0,'flipX':_0x382102[_0x193553(0x362)]||!0x1,'flipY':_0x382102['flipY']||!0x1,'angle':_0x382102[_0x193553(0x237)]};}['_addShapeConnectorHandlerObjects'](){const _0x414873=_0x196d4a;if(this[_0x414873(0x204)]===void 0x0||this[_0x414873(0x19d)]===void 0x0||this[_0x414873(0x2fb)]===void 0x0)return;let _0xe8944e=this[_0x414873(0x1b7)][_0x414873(0xd7)](this[_0x414873(0x204)]);if(!_0xe8944e||!_0xe8944e[_0x414873(0x2a0)](_0x7b1452)[_0x414873(0x260)]())return;let {scene:_0x5146dc}=_0xe8944e,_0x737052=this[_0x414873(0x2a9)]();if(!_0x737052)return;let _0x13ce11=this['_sheetsShapeService'][_0x414873(0xe6)](this[_0x414873(0x204)],this[_0x414873(0x19d)],this['_activeShapeId']);if(!_0x13ce11||!_0x22e615(_0x13ce11[_0x414873(0x197)]()))return;let _0x58ff5b=_0x13ce11[_0x414873(0x1ee)]();if(_0x58ff5b[_0x414873(0x1bc)]<0x2)return;let _0x5a0366=new _0x178dd8(_0x737052),_0x5321b0=_0x58ff5b[0x0],_0x34057c=_0x58ff5b[_0x58ff5b[_0x414873(0x1bc)]-0x1],_0x52017a=_0x5a0366[_0x414873(0x36d)](_0x5321b0),_0x2b3c40=_0x5a0366['localToWorld'](_0x34057c);this['_addShapeConnectorHandlerObject'](_0x5146dc,{..._0x52017a},!0x0),this[_0x414873(0x16c)](_0x5146dc,{..._0x2b3c40},!0x1);}[_0x196d4a(0x16c)](_0x5b0a90,_0x5c160a,_0x12898c){const _0x599af5=_0x196d4a;if(this[_0x599af5(0x2fb)]===void 0x0||this[_0x599af5(0x204)]===void 0x0||this[_0x599af5(0x19d)]===void 0x0)return;let _0x504f7a='connector-handler-'+this['_unitId']+'-'+this[_0x599af5(0x19d)]+'-'+this[_0x599af5(0x2fb)]+'-'+(_0x12898c?'start':_0x599af5(0x21f)),_0x297143=_0x5b0a90[_0x599af5(0x2b5)](_0x504f7a);if(_0x297143){_0x297143[_0x599af5(0x2a2)]({'left':_0x5c160a['x']-_0x1a4d77[_0x599af5(0x243)],'top':_0x5c160a['y']-_0x1a4d77['cxnPointRadius']});return;}let _0x49211b=new pa(_0x504f7a,{'left':_0x5c160a['x']-_0x1a4d77[_0x599af5(0x243)],'top':_0x5c160a['y']-_0x1a4d77[_0x599af5(0x243)],'shapeId':this[_0x599af5(0x2fb)],'unitId':this[_0x599af5(0x204)],'subUnitId':this[_0x599af5(0x19d)],'isStartConnectorPoint':_0x12898c,'width':_0x1a4d77[_0x599af5(0x243)]*0x2,'height':_0x1a4d77[_0x599af5(0x243)]*0x2,'zIndex':_0x22b3ea+0x1,'evented':!0x0});this[_0x599af5(0x144)][_0x599af5(0x2b7)](_0x49211b),this['_attachConnectorObjectEvent'](_0x49211b,_0x5b0a90,_0x12898c),_0x5b0a90[_0x599af5(0xea)](_0x49211b,_0x22b3ea+0x1);}[_0x196d4a(0xc5)](_0x4105cf,_0x5cd41f){const _0x1b99ba=_0x196d4a;var _0x2a152d;let _0x5cf04a={'x':0x0,'y':0x0};if(!_0x4105cf||!_0x5cd41f)return _0x5cf04a;let _0x3bda6c=this[_0x1b99ba(0x1b7)]['getRenderUnitById'](_0x4105cf);if(!_0x3bda6c||!_0x3bda6c['with'](_0x7b1452)[_0x1b99ba(0x1b1)](_0x5cd41f))return _0x5cf04a;let _0x1a79bf=_0x3bda6c[_0x1b99ba(0x2a0)](_0x538622),_0x5cc4fe=_0x1a79bf==null?void 0x0:_0x1a79bf[_0x1b99ba(0xd8)]();if(!_0x5cc4fe)return _0x5cf04a;let _0x320cdb=(_0x2a152d=this['_univerInstanceService']['getUnit'](_0x4105cf))==null?void 0x0:_0x2a152d[_0x1b99ba(0x1f0)](_0x5cd41f);if(!_0x320cdb)return _0x5cf04a;let _0x2315cd=_0x2e8aa3(_0x5cc4fe[_0x1b99ba(0xed)],_0x5cc4fe[_0x1b99ba(0x10c)],_0x3bda6c['scene'],_0x320cdb);return _0x2315cd?{'x':_0x2315cd[_0x1b99ba(0x1ae)],'y':_0x2315cd[_0x1b99ba(0x1d5)]}:_0x5cf04a;}['_getZoomRatio'](_0x4dc968,_0x2ae9e3){const _0x2660ec=_0x196d4a;var _0x22ef63;let _0x1fa5ab=(_0x22ef63=this[_0x2660ec(0x17a)][_0x2660ec(0x2da)](_0x4dc968))==null?void 0x0:_0x22ef63[_0x2660ec(0x1f0)](_0x2ae9e3);return(_0x1fa5ab==null?void 0x0:_0x1fa5ab[_0x2660ec(0x2fa)]())??0x1;}[_0x196d4a(0x340)](_0x18094f,_0x28d08a,_0x3afb2d,_0x255d9a,_0x5f422b){const _0x20c80c=_0x196d4a;this[_0x20c80c(0x28a)][_0x20c80c(0x33c)](),this[_0x20c80c(0x2a4)]['unsubscribe'](),this[_0x20c80c(0x33e)][_0x20c80c(0x269)]();let _0x262b6b=this[_0x20c80c(0x10b)];this['_sheetBasicShapeConnectionPointController'][_0x20c80c(0x2d2)]();let _0x386a42=this[_0x20c80c(0xc5)](this[_0x20c80c(0x204)],this[_0x20c80c(0x19d)]),_0x222506=this[_0x20c80c(0x20c)](this['_unitId'],this[_0x20c80c(0x19d)]),_0x3b00fd={'x':_0x3afb2d[_0x20c80c(0x203)]/_0x222506+_0x386a42['x'],'y':_0x3afb2d[_0x20c80c(0x302)]/_0x222506+_0x386a42['y']},_0x191631=_0x262b6b?_0x262b6b[_0x20c80c(0x245)]:_0x3b00fd,_0x1d7a6f=_0x255d9a?this[_0x20c80c(0x1ef)]['getEndConnectInfo']():this[_0x20c80c(0x1ef)][_0x20c80c(0xc9)](),_0x288e44=this['_activeShapeModel']['getShapeType']();_0x1d7a6f?this['_handleConnectedEndpointPointerUp'](_0x1d7a6f,_0x191631,_0x255d9a,_0x262b6b,_0x5f422b):this[_0x20c80c(0x1cf)](_0x28d08a,_0x191631,_0x255d9a,_0x262b6b,_0x5f422b,_0x288e44),this[_0x20c80c(0x1ff)]=!0x1,this[_0x20c80c(0x1c7)]=!0x1,this[_0x20c80c(0x10b)]=null,_0x18094f[_0x20c80c(0x38a)]();}['_handleFreeEndpointPointerUp'](_0x59dd7b,_0x2d3961,_0xf3a06f,_0x25b6fa,_0x3d88ea,_0x11600d){const _0x2a7d9c=_0x196d4a;let _0x32082b=_0x11600d===_0xc016ca[_0x2a7d9c(0x265)]||_0x11600d===_0xc016ca['StraightConnector1'],_0x59e7e6=_0xf3a06f?_0x2d3961:_0x59dd7b,_0x44e707=_0xf3a06f?_0x59dd7b:_0x2d3961,_0x1209ba=this[_0x2a7d9c(0x1ef)]['getConnectorLinePoints'](),_0x313ba=this[_0x2a7d9c(0x1ef)][_0x2a7d9c(0x197)](),_0x32a07a=_0x18c946(_0x313ba),_0x1d1023=_0x178dd8[_0x2a7d9c(0xd0)](_0x1209ba,_0x32a07a),_0x498bbe=_0x32082b?_0x178dd8[_0x2a7d9c(0x1d6)](_0x59e7e6,_0x44e707):_0x178dd8[_0x2a7d9c(0x165)](_0x59dd7b,_0x2d3961,_0xf3a06f,_0x1d1023);_0x25b6fa?this[_0x2a7d9c(0x1c8)](_0x498bbe,_0x25b6fa,_0xf3a06f,_0x3d88ea):this[_0x2a7d9c(0x155)](_0x498bbe,_0x3d88ea);}['_handleConnectedEndpointPointerUp'](_0x46b27d,_0xb2944d,_0x6fa78a,_0x5cb16b,_0x55ce72){const _0x55d89d=_0x196d4a;let _0x5cc5bb=this[_0x55d89d(0x363)](_0x46b27d);if(!_0x5cc5bb)return;let _0x5c7433=_0x5cb16b?_0x5cb16b[_0x55d89d(0x237)]:this[_0x55d89d(0x24d)](_0x5cc5bb[_0x55d89d(0x1da)],_0xb2944d),_0x3daaa0;if(_0x5cb16b){let _0x1367b0=this[_0x55d89d(0x23e)][_0x55d89d(0xc7)]({'unitId':_0x5cb16b[_0x55d89d(0x263)],'subUnitId':_0x5cb16b[_0x55d89d(0x2f3)],'drawingId':_0x5cb16b[_0x55d89d(0x26c)]});if(_0x1367b0!=null&&_0x1367b0[_0x55d89d(0x311)]){let {left:_0xd332c1=0x0,top:_0x75da09=0x0,width:_0x2caac2=0x0,height:_0x3d10=0x0,angle:_0x3cfbf4}=_0x1367b0[_0x55d89d(0x311)];_0x3daaa0=_0x5c6439({'left':_0xd332c1,'top':_0x75da09,'width':_0x2caac2,'height':_0x3d10},_0x3cfbf4||0x0);}else _0x3daaa0={'left':_0xb2944d['x'],'top':_0xb2944d['y'],'width':0x0,'height':0x0};}else _0x3daaa0={'left':_0xb2944d['x'],'top':_0xb2944d['y'],'width':0x0,'height':0x0};let _0x1048cd={'point':_0xb2944d,'angle':_0x5c7433,'bounds':_0x3daaa0},_0x46ed0f=_0x6fa78a?_0x1048cd:_0x5cc5bb,_0x18877c=_0x6fa78a?_0x5cc5bb:_0x1048cd,_0x3af8c5=this[_0x55d89d(0x1ef)][_0x55d89d(0x197)](),_0x29c3c5=_0x527e88(_0x46ed0f,_0x18877c,_0x3af8c5);this[_0x55d89d(0x1ef)]['removeLinePoints']();let _0x51116f=_0x2c4018(_0x29c3c5,_0x3af8c5);_0x5cb16b?this[_0x55d89d(0x14e)](_0x51116f,_0x5cb16b,_0x46b27d,_0x6fa78a,_0x55ce72):this[_0x55d89d(0x271)](_0x51116f,_0x46b27d,_0x6fa78a,_0x55ce72);}['_executeConnectionCommand'](_0x46be16,_0x4e49c8,_0x168720,_0x4aa1ea){const _0x486c02=_0x196d4a;let _0x2c3688=this[_0x486c02(0x1ef)][_0x486c02(0x1db)]()[_0x486c02(0x27a)],_0x526315={..._0x2c3688},_0x1b2667={'shapeId':_0x4e49c8['shapeId'],'cxnIndex':_0x4e49c8[_0x486c02(0x196)]};_0x168720?_0x526315[_0x486c02(0x1e6)]=_0x1b2667:_0x526315['to']=_0x1b2667;let _0x110901=this[_0x486c02(0x1ef)]['getShapeType'](),_0x42a19e=_0x2c4018(_0x46be16[_0x486c02(0x20b)],_0x110901),_0x4f8362={'unitId':this[_0x486c02(0x204)],'subUnitId':this[_0x486c02(0x19d)],'connectorShapeId':this[_0x486c02(0x2fb)],'width':_0x46be16[_0x486c02(0x283)][_0x486c02(0x2df)],'height':_0x46be16[_0x486c02(0x283)][_0x486c02(0x2b9)],'left':_0x46be16[_0x486c02(0x283)][_0x486c02(0x158)],'top':_0x46be16[_0x486c02(0x283)][_0x486c02(0x324)],'flipX':_0x46be16[_0x486c02(0x283)][_0x486c02(0x362)]||!0x1,'flipY':_0x46be16[_0x486c02(0x283)][_0x486c02(0x1ac)]||!0x1,'newAdjustValues':_0x42a19e[_0x486c02(0xd5)],'oldAdjustValues':_0x4aa1ea,'oldRelation':_0x2c3688,'newRelation':_0x526315,'newLineType':_0x42a19e[_0x486c02(0x18f)],'oldLineType':_0x110901};this['_commandService'][_0x486c02(0x152)](_0x31e366['id'],_0x4f8362);}['_executeResizeCommand'](_0x20c949,_0x45ed69){const _0x208506=_0x196d4a;let _0x402981=this[_0x208506(0x1ef)][_0x208506(0x197)](),_0x24ff39=_0x2c4018(_0x20c949[_0x208506(0x20b)],_0x402981),_0x517c07={'unitId':this[_0x208506(0x204)],'subUnitId':this[_0x208506(0x19d)],'shapeId':this[_0x208506(0x2fb)],'width':_0x20c949[_0x208506(0x283)][_0x208506(0x2df)],'height':_0x20c949['worldRect'][_0x208506(0x2b9)],'left':_0x20c949['worldRect'][_0x208506(0x158)],'top':_0x20c949[_0x208506(0x283)]['top'],'flipX':_0x20c949['worldRect'][_0x208506(0x362)]||!0x1,'flipY':_0x20c949[_0x208506(0x283)][_0x208506(0x1ac)]||!0x1,'angle':_0x20c949['worldRect']['angle']||0x0,'newAdjustValues':_0x24ff39[_0x208506(0xd5)],'oldAdjustValues':_0x45ed69,'newLineType':_0x24ff39[_0x208506(0x18f)],'oldLineType':_0x402981};this['_commandService']['executeCommand'](_0x402c2c['id'],_0x517c07);}[_0x196d4a(0x14e)](_0x33fc37,_0x2fabed,_0x4f49e9,_0x198193,_0x473084){const _0xce492d=_0x196d4a;let _0x110fc2=this['_activeShapeModel'][_0xce492d(0x1db)]()['relation'],_0x3c3310={..._0x110fc2},_0x44291a={'shapeId':_0x2fabed[_0xce492d(0x26c)],'cxnIndex':_0x2fabed[_0xce492d(0x196)]};_0x198193?(_0x3c3310[_0xce492d(0x1e6)]=_0x44291a,_0x3c3310['to']=_0x4f49e9):(_0x3c3310[_0xce492d(0x1e6)]=_0x4f49e9,_0x3c3310['to']=_0x44291a);let _0x3604b4={'unitId':this['_unitId'],'subUnitId':this[_0xce492d(0x19d)],'connectorShapeId':this[_0xce492d(0x2fb)],'width':_0x33fc37[_0xce492d(0x283)][_0xce492d(0x2df)],'height':_0x33fc37[_0xce492d(0x283)]['height'],'left':_0x33fc37[_0xce492d(0x283)][_0xce492d(0x158)],'top':_0x33fc37['worldRect'][_0xce492d(0x324)],'flipX':_0x33fc37[_0xce492d(0x283)]['flipX']||!0x1,'flipY':_0x33fc37[_0xce492d(0x283)][_0xce492d(0x1ac)]||!0x1,'oldAdjustValues':_0x473084,'newAdjustValues':_0x33fc37[_0xce492d(0xd5)],'newLineType':_0x33fc37[_0xce492d(0x18f)],'rotation':_0x33fc37[_0xce492d(0x249)],'oldRelation':_0x110fc2,'newRelation':_0x3c3310};this['_commandService'][_0xce492d(0x152)](_0x31e366['id'],_0x3604b4);}[_0x196d4a(0x271)](_0x5f5135,_0x26555b,_0x1b4b33,_0x5db25f){const _0x456fef=_0x196d4a;let _0x2c5aed=this[_0x456fef(0x1ef)][_0x456fef(0x1db)]()[_0x456fef(0x27a)],_0x545636={};_0x1b4b33?(_0x545636['to']=_0x26555b,_0x545636[_0x456fef(0x1e6)]=void 0x0):(_0x545636['from']=_0x26555b,_0x545636['to']=void 0x0);let _0x4e51e8={'unitId':this[_0x456fef(0x204)],'subUnitId':this[_0x456fef(0x19d)],'connectorShapeId':this[_0x456fef(0x2fb)],'width':_0x5f5135['worldRect'][_0x456fef(0x2df)],'height':_0x5f5135[_0x456fef(0x283)]['height'],'left':_0x5f5135[_0x456fef(0x283)][_0x456fef(0x158)],'top':_0x5f5135[_0x456fef(0x283)][_0x456fef(0x324)],'flipX':_0x5f5135[_0x456fef(0x283)][_0x456fef(0x362)]||!0x1,'flipY':_0x5f5135[_0x456fef(0x283)][_0x456fef(0x1ac)]||!0x1,'oldAdjustValues':_0x5db25f,'newAdjustValues':_0x5f5135[_0x456fef(0xd5)],'newLineType':_0x5f5135[_0x456fef(0x18f)],'rotation':_0x5f5135['rotation'],'oldRelation':_0x2c5aed,'newRelation':_0x545636};this[_0x456fef(0x232)][_0x456fef(0x152)](_0x31e366['id'],_0x4e51e8);}[_0x196d4a(0x1ca)](_0x12e187,_0xdf7628,_0x140dfd){const _0x8f70f=_0x196d4a;this[_0x8f70f(0x335)](_0x46ac89(_0x12e187[_0x8f70f(0x2ff)][_0x8f70f(0xcf)]((_0x4809d6,_0x480263)=>{const _0x59ed30=_0x8f70f;let _0x1e69e2=_0x12e187[_0x59ed30(0x35c)]();if(this[_0x59ed30(0x1ef)]=this[_0x59ed30(0x309)]['getShapeModel'](_0x1e69e2[_0x59ed30(0x263)],_0x1e69e2[_0x59ed30(0x2f3)],_0x1e69e2['drawingId']),!this[_0x59ed30(0x1ef)])return;let _0x31e5ef={};this[_0x59ed30(0x1ef)][_0x59ed30(0x192)]()[_0x59ed30(0x326)](_0x140c4a=>{const _0x16f7aa=_0x59ed30;let _0x1d6f82=this[_0x16f7aa(0x1ef)][_0x16f7aa(0x134)](_0x140c4a);_0x1d6f82!==void 0x0&&(_0x31e5ef[_0x140c4a]=_0x1d6f82);});let _0xb6a45b=this[_0x59ed30(0x2a9)]();if(!_0xb6a45b)return;this[_0x59ed30(0x315)]={..._0xb6a45b};let _0x29e7c4=new _0x178dd8(this[_0x59ed30(0x315)]),_0x508503=_0x934411({'unitId':this[_0x59ed30(0x204)],'subUnitId':this[_0x59ed30(0x19d)],'drawingId':this[_0x59ed30(0x2fb)]}),_0x13c80f=_0xdf7628[_0x59ed30(0x2b5)](_0x508503);this[_0x59ed30(0x1ff)]=!0x0,_0xdf7628[_0x59ed30(0x2de)](),this[_0x59ed30(0x371)][_0x59ed30(0x347)](_0xdf7628,this[_0x59ed30(0x204)],this[_0x59ed30(0x19d)],this[_0x59ed30(0x2fb)]),this['_currentConnectionTarget']=null;let _0x1e0459=this[_0x59ed30(0x1ef)][_0x59ed30(0x1ee)](),_0x59e5a4=_0x1e0459[0x0],_0x700823=_0x1e0459[_0x1e0459['length']-0x1],_0x45f38f=_0x140dfd?_0x29e7c4[_0x59ed30(0x36d)](_0x700823):_0x29e7c4['localToWorld'](_0x59e5a4);this['_cxtHandlerPointerMove']=_0xdf7628['onPointerMove$'][_0x59ed30(0xcf)]((_0x537959,_0x2f46d2)=>{const _0x451e80=_0x59ed30;if(!this['_isConnecting']||!this[_0x451e80(0x1ef)])return;this['_hasReset']||=(this[_0x451e80(0x33e)][_0x451e80(0xca)](),this[_0x451e80(0x1ef)][_0x451e80(0x2ac)](),!0x0);let _0x413b29=this['_getScrollInfo'](this[_0x451e80(0x204)],this[_0x451e80(0x19d)]),_0x34b842=this[_0x451e80(0x20c)](this[_0x451e80(0x204)],this[_0x451e80(0x19d)]),_0x3d1147={'x':_0x537959[_0x451e80(0x203)]/_0x34b842+_0x413b29['x'],'y':_0x537959['offsetY']/_0x34b842+_0x413b29['y']},_0x51a513=this[_0x451e80(0x371)][_0x451e80(0x239)](_0x3d1147);if(_0x51a513){let {shapeId:_0xd865e9,unitId:_0x15ede5,subUnitId:_0x57afb4}=_0x51a513;if(_0xd865e9&&_0x15ede5&&_0x57afb4){let _0xf3133c=_0x934411({'unitId':_0x15ede5,'subUnitId':_0x57afb4,'drawingId':_0xd865e9});_0x51a513[_0x451e80(0x237)]=(_0xdf7628[_0x451e80(0x2b5)](_0xf3133c)['angle']||0x0)+_0x51a513[_0x451e80(0x237)];}}this[_0x451e80(0x10b)]=_0x51a513;let _0x23e561=_0x140dfd?this['_activeShapeModel'][_0x451e80(0x337)]():this[_0x451e80(0x1ef)][_0x451e80(0xc9)]();if(_0x23e561){this[_0x451e80(0x1d2)](_0x23e561,_0x3d1147,_0x140dfd,_0x13c80f,_0x12e187);return;}this['_handleFreeEndpointMove'](_0x3d1147,_0x45f38f,_0x140dfd,_0x13c80f,_0x12e187);}),this['_cxtHandlerPointerUp']=_0xdf7628['onPointerUp$'][_0x59ed30(0xcf)]((_0x4ac662,_0x3ab0a6)=>{const _0x5779e6=_0x59ed30;this[_0x5779e6(0x340)](_0xdf7628,_0x45f38f,_0x4ac662,_0x140dfd,_0x31e5ef);}),_0x480263[_0x59ed30(0x2fc)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x2072b2,_0x344e5b,_0x76311){const _0x6b89b1=_0x196d4a;let _0x1d904b=this[_0x6b89b1(0x309)][_0x6b89b1(0x37f)](_0x2072b2,_0x344e5b,_0x76311);if(!_0x1d904b||_0x1d904b[_0x6b89b1(0x1bc)]===0x0)return;let _0x1e1678=this['_renderManagerService'][_0x6b89b1(0xd7)](_0x2072b2);if(!_0x1e1678)return;let {scene:_0x1a734c}=_0x1e1678;for(let _0x404862 of _0x1d904b){let _0xaea259=_0x404862[_0x6b89b1(0x348)],_0x17b1fa=this[_0x6b89b1(0x309)][_0x6b89b1(0xe6)](_0x2072b2,_0x344e5b,_0xaea259);if(!_0x17b1fa)continue;let _0x4a6d48=_0x17b1fa[_0x6b89b1(0xc9)](),_0x455944=_0x17b1fa[_0x6b89b1(0x337)](),_0xb1c064=(_0x4a6d48==null?void 0x0:_0x4a6d48[_0x6b89b1(0x26c)])===_0x76311,_0x31cb5b=_0x934411({'unitId':_0x2072b2,'subUnitId':_0x344e5b,'drawingId':_0xaea259}),_0x380c83=_0x1a734c[_0x6b89b1(0x2b5)](_0x31cb5b);if(!_0x380c83)continue;let _0x3e93d3=this[_0x6b89b1(0x23e)]['getDrawingByParam']({'unitId':_0x2072b2,'subUnitId':_0x344e5b,'drawingId':_0xaea259});_0x3e93d3!=null&&_0x3e93d3[_0x6b89b1(0x311)]&&(_0x4a6d48&&_0x455944?this[_0x6b89b1(0xfa)](_0x2072b2,_0x344e5b,_0xaea259,_0x17b1fa,_0x4a6d48,_0x455944,_0x380c83):this[_0x6b89b1(0x195)](_0x2072b2,_0x344e5b,_0xaea259,_0x17b1fa,_0xb1c064?_0x4a6d48:_0x455944,_0xb1c064,_0x3e93d3,_0x380c83));}}[_0x196d4a(0xfa)](_0x29f82f,_0x10b619,_0x5d23bb,_0x58b0d1,_0x4aa152,_0x228c5e,_0x2a2594){const _0x578b9f=_0x196d4a;let _0x215f09=this[_0x578b9f(0x204)],_0x57a248=this[_0x578b9f(0x19d)];this[_0x578b9f(0x204)]=_0x29f82f,this[_0x578b9f(0x19d)]=_0x10b619;let _0x2ecdac=this['_getConnectPointInfo'](_0x4aa152),_0x427fbf=this[_0x578b9f(0x363)](_0x228c5e);if(this[_0x578b9f(0x204)]=_0x215f09,this[_0x578b9f(0x19d)]=_0x57a248,!_0x2ecdac||!_0x427fbf)return;let _0x5bc914=_0x58b0d1[_0x578b9f(0x197)](),_0x19655d=_0x527e88(_0x2ecdac,_0x427fbf,_0x5bc914);_0x19655d&&_0x58b0d1[_0x578b9f(0x159)](_0x19655d);let _0x3aa009=_0x2c4018(_0x19655d,_0x5bc914);_0x3aa009[_0x578b9f(0x18f)]!==_0x5bc914&&_0x58b0d1[_0x578b9f(0x21b)](_0x3aa009[_0x578b9f(0x18f)]),_0x58b0d1['clearAdjustValue']();for(let [_0x1da102,_0xc5b3d9]of Object[_0x578b9f(0x383)](_0x3aa009[_0x578b9f(0xd5)]))_0x58b0d1[_0x578b9f(0x1b0)](_0x1da102,_0xc5b3d9);_0x58b0d1[_0x578b9f(0x385)]({'width':_0x3aa009[_0x578b9f(0x283)][_0x578b9f(0x2df)],'height':_0x3aa009[_0x578b9f(0x283)]['height']}),_0x2a2594[_0x578b9f(0x2a2)]({'flipX':_0x3aa009[_0x578b9f(0x283)][_0x578b9f(0x362)],'flipY':_0x3aa009[_0x578b9f(0x283)][_0x578b9f(0x1ac)],'left':_0x3aa009[_0x578b9f(0x283)]['left'],'top':_0x3aa009[_0x578b9f(0x283)]['top'],'width':_0x3aa009[_0x578b9f(0x283)][_0x578b9f(0x2df)],'height':_0x3aa009[_0x578b9f(0x283)][_0x578b9f(0x2b9)],'angle':_0x3aa009[_0x578b9f(0x249)]}),_0x58b0d1['removeLinePoints']();}[_0x196d4a(0x195)](_0x5e68d1,_0x5d55ed,_0x1d3289,_0x54fb05,_0x2dc97d,_0x50019f,_0x21d42f,_0x4c7405){const _0xdb845f=_0x196d4a;let _0x3473c5=this[_0xdb845f(0x204)],_0x560e33=this[_0xdb845f(0x19d)];this[_0xdb845f(0x204)]=_0x5e68d1,this['_subUnitId']=_0x5d55ed;let _0x4209b2=this[_0xdb845f(0x363)](_0x2dc97d);if(this[_0xdb845f(0x204)]=_0x3473c5,this[_0xdb845f(0x19d)]=_0x560e33,!_0x4209b2)return;let {left:_0x56eb9c=0x0,top:_0x2c5087=0x0,width:_0x58c9f0=0x0,height:_0x3dcf8e=0x0,flipX:_0x19246d=!0x1,flipY:_0x347622=!0x1}=_0x21d42f[_0xdb845f(0x311)],_0x3c5add=_0x54fb05[_0xdb845f(0x1ee)]();if(_0x3c5add['length']<0x2)return;let _0x56eadc=new _0x178dd8({'left':_0x56eb9c,'top':_0x2c5087,'width':_0x58c9f0,'height':_0x3dcf8e,'flipX':_0x19246d,'flipY':_0x347622}),_0x35df27=_0x50019f?_0x3c5add[_0x3c5add[_0xdb845f(0x1bc)]-0x1]:_0x3c5add[0x0],_0x5a784b=_0x56eadc[_0xdb845f(0x36d)](_0x35df27),_0x513d36=_0x178dd8['computeConnectorResizeLayout'](_0x5a784b,_0x4209b2['point'],!_0x50019f);_0x4c7405[_0xdb845f(0x2a2)]({'flipX':_0x513d36['worldRect'][_0xdb845f(0x362)],'flipY':_0x513d36['worldRect']['flipY'],'left':_0x513d36[_0xdb845f(0x283)][_0xdb845f(0x158)],'top':_0x513d36['worldRect'][_0xdb845f(0x324)],'width':_0x513d36[_0xdb845f(0x283)][_0xdb845f(0x2df)],'height':_0x513d36[_0xdb845f(0x283)][_0xdb845f(0x2b9)],'angle':_0x513d36[_0xdb845f(0x283)]['angle']}),_0x4c7405['makeDirty'](!0x0);}[_0x196d4a(0x380)](){const _0x17424b=_0x196d4a;this[_0x17424b(0x144)]['length']!==0x0&&(this['_connectorObjects'][_0x17424b(0x326)](_0x13b842=>{_0x13b842['dispose']();}),this['_connectorObjects']=[]);}[_0x196d4a(0x1a2)](){const _0x1930b4=_0x196d4a;let _0x4252dc=this['_univerInstanceService'][_0x1930b4(0x206)](_0x204504['UNIVER_SHEET']);this[_0x1930b4(0x335)](_0x4252dc[_0x1930b4(0xf5)](_0x111568(_0x40bdc1=>_0x40bdc1?_0x40bdc1[_0x1930b4(0xe2)][_0x1930b4(0xf5)](_0x111568(_0x12ed13=>{const _0x3f4786=_0x1930b4;if(!_0x12ed13)return _0x929a31;let _0x1dbf78=_0x40bdc1['getUnitId'](),_0xe8a686=this[_0x3f4786(0x1b7)][_0x3f4786(0xd7)](_0x1dbf78),_0x440cdb=_0xe8a686==null?void 0x0:_0xe8a686[_0x3f4786(0x142)];return _0x440cdb?_0x322e8d(_0x440cdb):_0x929a31;})):_0x929a31))[_0x1930b4(0x1ab)](_0x3e5f51=>{const _0x43b007=_0x1930b4;let _0x3c3b61=_0x3e5f51['getTransformerByCreate']();this[_0x43b007(0x335)](_0x3e5f51['onPointerMove$'][_0x43b007(0xcf)](_0x5d2e22=>{const _0x12e37d=_0x43b007;this['_isDrawingShapePointDown']&&this[_0x12e37d(0x2fb)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x43b007(0x335)](_0x3c3b61[_0x43b007(0x115)][_0x43b007(0x1ab)](_0x498963=>{const _0x960c46=_0x43b007;let {objects:_0x5bfa2b}=_0x498963;this[_0x960c46(0x380)](),_0x5bfa2b!==null&&_0x5bfa2b['size']===0x1&&_0x5bfa2b[_0x960c46(0x126)]()[_0x960c46(0x116)]()['value']instanceof J&&(this[_0x960c46(0x10e)]=!0x0);})),this[_0x43b007(0x335)](_0x3c3b61[_0x43b007(0x2eb)]['subscribe'](_0x528a34=>{const _0x45a773=_0x43b007;this[_0x45a773(0x10e)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x43b007(0x335)](_0x3e5f51[_0x43b007(0x2a1)][_0x43b007(0xcf)](()=>{const _0x42d879=_0x43b007;this[_0x42d879(0x10e)]&&(this['_isDrawingShapePointDown']=!0x1,this[_0x42d879(0x387)]());})),this[_0x43b007(0x335)](_0x3c3b61['changeEnd$']['subscribe'](()=>{const _0x2823bd=_0x43b007;this[_0x2823bd(0x204)]&&this[_0x2823bd(0x19d)]&&this[_0x2823bd(0x2fb)]&&this['_drawingManagerService'][_0x2823bd(0xc7)]({'unitId':this[_0x2823bd(0x204)],'subUnitId':this[_0x2823bd(0x19d)],'drawingId':this['_activeShapeId']})&&(this[_0x2823bd(0x380)](),this[_0x2823bd(0x387)]());}));}));}[_0x196d4a(0x183)](){const _0x30f60f=_0x196d4a;this[_0x30f60f(0x335)](this['_drawingManagerService'][_0x30f60f(0x107)]['subscribe'](_0x4a3681=>{const _0x3ae892=_0x30f60f;if(_0x4a3681[_0x3ae892(0x1bc)]===0x1){let _0x464b36=_0x4a3681[0x0];if(_0x464b36[_0x3ae892(0x27b)]===_0x123aa0[_0x3ae892(0x323)]){let _0x3ee8f1=this['_sheetsShapeService'][_0x3ae892(0xe6)](_0x464b36['unitId'],_0x464b36[_0x3ae892(0x2f3)],_0x464b36[_0x3ae892(0x14c)]);if(_0x3ee8f1&&_0x22e615(_0x3ee8f1[_0x3ae892(0x197)]())){this[_0x3ae892(0x2fb)]=_0x464b36[_0x3ae892(0x14c)],this[_0x3ae892(0x204)]=_0x464b36['unitId'],this[_0x3ae892(0x19d)]=_0x464b36[_0x3ae892(0x2f3)],this['_clearShapeConnectorHandlerObjects'](),this[_0x3ae892(0x387)]();return;}}}this[_0x3ae892(0x2fb)]=void 0x0,this['_unitId']=void 0x0,this[_0x3ae892(0x19d)]=void 0x0,this[_0x3ae892(0x380)]();})),this[_0x30f60f(0x335)](this[_0x30f60f(0x23e)][_0x30f60f(0x131)]['subscribe'](_0x6ab38=>{const _0x2a466e=_0x30f60f;if(_0x6ab38['length']===0x1){var _0x5c979b;let _0x378ac4=_0x6ab38[0x0],_0x57d7d6=(_0x5c979b=this['_drawingManagerService'][_0x2a466e(0xc7)](_0x378ac4))==null?void 0x0:_0x5c979b[_0x2a466e(0x27b)];_0x57d7d6===_0x123aa0[_0x2a466e(0x323)]&&_0x378ac4[_0x2a466e(0x14c)]===this[_0x2a466e(0x2fb)]?(this['_clearShapeConnectorHandlerObjects'](),this[_0x2a466e(0x387)]()):!this[_0x2a466e(0x2fb)]&&_0x57d7d6===_0x123aa0[_0x2a466e(0x323)]&&this[_0x2a466e(0x354)](_0x378ac4['unitId'],_0x378ac4[_0x2a466e(0x2f3)],_0x378ac4['drawingId']);}})),this['disposeWithMe'](this[_0x30f60f(0x23e)][_0x30f60f(0x10d)][_0x30f60f(0x1ab)](_0x4e9ad7=>{const _0x4b69f8=_0x30f60f;for(let _0x58bc22 of _0x4e9ad7){let {drawingId:_0x438959}=_0x58bc22;if(this[_0x4b69f8(0x2fb)]===_0x438959){this[_0x4b69f8(0x16d)]();return;}}}));}[_0x196d4a(0x1d2)](_0xe4215a,_0x3da9e9,_0x1e5891,_0x54dbdd,_0x2ebb81){const _0x57142e=_0x196d4a;var _0x4691d0;if(!this[_0x57142e(0x1ef)])return;let _0x4730b6=this[_0x57142e(0x363)](_0xe4215a);if(!_0x4730b6)return;let _0x2d3ecf=this[_0x57142e(0x10b)]?this[_0x57142e(0x10b)][_0x57142e(0x245)]:_0x3da9e9,_0x351c09=this['_currentConnectionTarget']?this[_0x57142e(0x10b)][_0x57142e(0x237)]:this[_0x57142e(0x24d)](_0x4730b6[_0x57142e(0x1da)],_0x2d3ecf),_0x30d64c;if(this[_0x57142e(0x10b)]){let _0x3e1eaa=this[_0x57142e(0x23e)]['getDrawingByParam']({'unitId':this[_0x57142e(0x10b)][_0x57142e(0x263)],'subUnitId':this['_currentConnectionTarget']['subUnitId'],'drawingId':this[_0x57142e(0x10b)][_0x57142e(0x26c)]});if(_0x3e1eaa!=null&&_0x3e1eaa[_0x57142e(0x311)]){let {left:_0x1d570c=0x0,top:_0x63fc92=0x0,width:_0x30371d=0x0,height:_0x2f46df=0x0,angle:_0x38f932}=_0x3e1eaa[_0x57142e(0x311)];_0x30d64c=_0x5c6439({'left':_0x1d570c,'top':_0x63fc92,'width':_0x30371d,'height':_0x2f46df},_0x38f932||0x0);}else _0x30d64c={'left':_0x2d3ecf['x'],'top':_0x2d3ecf['y'],'width':0x0,'height':0x0};}else _0x30d64c={'left':_0x2d3ecf['x'],'top':_0x2d3ecf['y'],'width':0x0,'height':0x0};let _0x54403={'point':_0x2d3ecf,'angle':_0x351c09,'bounds':_0x30d64c},_0x2bb59f=_0x1e5891?_0x54403:_0x4730b6,_0x389a4a=_0x1e5891?_0x4730b6:_0x54403,_0x468446=this[_0x57142e(0x1ef)][_0x57142e(0x197)](),_0xe45fc4=_0x527e88(_0x2bb59f,_0x389a4a,_0x468446);_0xe45fc4&&this[_0x57142e(0x1ef)]['updateLinePoints'](_0xe45fc4);let _0x20e141=_0x2c4018(_0xe45fc4,_0x468446);_0x20e141[_0x57142e(0x18f)]!==_0x468446&&this[_0x57142e(0x1ef)][_0x57142e(0x21b)](_0x20e141[_0x57142e(0x18f)]);for(let [_0xbc3976,_0xb6107f]of Object[_0x57142e(0x383)](_0x20e141[_0x57142e(0xd5)]))this['_activeShapeModel']['setAdjustValueByName'](_0xbc3976,_0xb6107f);this['_activeShapeModel'][_0x57142e(0x385)]({'width':_0x20e141[_0x57142e(0x283)][_0x57142e(0x2df)],'height':_0x20e141[_0x57142e(0x283)]['height']}),_0x54dbdd[_0x57142e(0x2a2)]({'flipX':_0x20e141[_0x57142e(0x283)]['flipX'],'flipY':_0x20e141['worldRect']['flipY'],'left':_0x20e141[_0x57142e(0x283)]['left'],'top':_0x20e141['worldRect'][_0x57142e(0x324)],'width':_0x20e141[_0x57142e(0x283)][_0x57142e(0x2df)],'height':_0x20e141['worldRect'][_0x57142e(0x2b9)],'angle':_0x20e141['rotation']}),_0x54dbdd[_0x57142e(0xe5)](!0x0);let _0x42fa2c=((_0x4691d0=this[_0x57142e(0x10b)])==null?void 0x0:_0x4691d0['worldPoint'])??_0x3da9e9;_0x2ebb81[_0x57142e(0x2a2)]({'left':_0x42fa2c['x']-_0x1a4d77[_0x57142e(0x243)],'top':_0x42fa2c['y']-_0x1a4d77[_0x57142e(0x243)]});}[_0x196d4a(0x26f)](_0x42dece,_0x2871cf,_0x366d7b,_0x32a140,_0x188480){const _0x2f3e50=_0x196d4a;var _0x403c04,_0x1d89f4;let _0x51cbf9=((_0x403c04=this[_0x2f3e50(0x10b)])==null?void 0x0:_0x403c04[_0x2f3e50(0x245)])??_0x42dece,_0x239d04=_0x178dd8[_0x2f3e50(0x165)](_0x2871cf,_0x51cbf9,_0x366d7b);_0x32a140[_0x2f3e50(0x2a2)]({'flipX':_0x239d04[_0x2f3e50(0x283)][_0x2f3e50(0x362)],'flipY':_0x239d04[_0x2f3e50(0x283)][_0x2f3e50(0x1ac)],'left':_0x239d04['worldRect'][_0x2f3e50(0x158)],'top':_0x239d04[_0x2f3e50(0x283)][_0x2f3e50(0x324)],'width':_0x239d04['worldRect']['width'],'height':_0x239d04['worldRect'][_0x2f3e50(0x2b9)],'angle':_0x239d04[_0x2f3e50(0x283)]['angle']});let _0xef7f98=((_0x1d89f4=this['_currentConnectionTarget'])==null?void 0x0:_0x1d89f4[_0x2f3e50(0x245)])??_0x42dece;_0x188480[_0x2f3e50(0x2a2)]({'left':_0xef7f98['x']-_0x1a4d77[_0x2f3e50(0x243)],'top':_0xef7f98['y']-_0x1a4d77[_0x2f3e50(0x243)]});}[_0x196d4a(0x363)](_0x21de64){const _0x3ad111=_0x196d4a;if(!this[_0x3ad111(0x204)]||!this['_subUnitId'])return null;let {shapeId:_0x1973ac,cxnIndex:_0x3cc75e}=_0x21de64,_0x1f7b51=this[_0x3ad111(0x309)]['getShapeModel'](this[_0x3ad111(0x204)],this[_0x3ad111(0x19d)],_0x1973ac);if(!_0x1f7b51)return null;let _0x4eb74e=this[_0x3ad111(0x23e)][_0x3ad111(0xc7)]({'unitId':this[_0x3ad111(0x204)],'subUnitId':this[_0x3ad111(0x19d)],'drawingId':_0x1973ac});if(!(_0x4eb74e!=null&&_0x4eb74e[_0x3ad111(0x311)]))return null;let {left:_0x275703=0x0,top:_0x230b82=0x0,width:_0x4df241=0x0,height:_0x48d18c=0x0,flipX:_0x1716ee=!0x1,flipY:_0x503c52=!0x1,angle:_0x17eb2f}=_0x4eb74e[_0x3ad111(0x311)];_0x1f7b51[_0x3ad111(0x385)]({'width':_0x4df241,'height':_0x48d18c});let _0x3f8a24=_0x1f7b51['getConnectionSiteList']()[_0x3ad111(0x10a)](_0x1fb526=>_0x1fb526[_0x3ad111(0x2db)]===_0x3cc75e);if(!_0x3f8a24)return null;let _0x15a78b=_0x1716ee?_0x4df241-_0x3f8a24['x']:_0x3f8a24['x'],_0x301a8d=_0x503c52?_0x48d18c-_0x3f8a24['y']:_0x3f8a24['y'];if(_0x17eb2f!==0x0&&_0x17eb2f!=null){let _0x41a76a=_0x17eb2f*Math['PI']/0xb4,_0x487020=Math[_0x3ad111(0x17b)](_0x41a76a),_0x3c0e57=Math[_0x3ad111(0x1dc)](_0x41a76a),_0x522f15=_0x4df241/0x2,_0x4726d6=_0x48d18c/0x2,_0x3f85b9=_0x15a78b-_0x522f15,_0x1e753b=_0x301a8d-_0x4726d6;_0x15a78b=_0x522f15+_0x3f85b9*_0x487020-_0x1e753b*_0x3c0e57,_0x301a8d=_0x4726d6+_0x3f85b9*_0x3c0e57+_0x1e753b*_0x487020;}_0x15a78b+=_0x275703,_0x301a8d+=_0x230b82;let _0x2ccd5e=_0x3f8a24[_0x3ad111(0x35e)]/0xea60;_0x1716ee&&(_0x2ccd5e=0xb4-_0x2ccd5e),_0x503c52&&(_0x2ccd5e=-_0x2ccd5e),_0x2ccd5e+=_0x17eb2f||0x0,_0x2ccd5e=(_0x2ccd5e%0x168+0x168)%0x168;let _0x44f00b=_0x5c6439({'left':_0x275703,'top':_0x230b82,'width':_0x4df241,'height':_0x48d18c},_0x17eb2f||0x0);return{'point':{'x':_0x15a78b,'y':_0x301a8d},'angle':_0x2ccd5e,'bounds':_0x44f00b};}['_calculateFreeEndpointAngle'](_0x348d78,_0x5e8905){const _0x3039f5=_0x196d4a;let _0x15b36c=_0x5e8905['x']-_0x348d78['x'],_0x30822d=_0x5e8905['y']-_0x348d78['y'];return Math['abs'](_0x15b36c)>=Math[_0x3039f5(0x372)](_0x30822d)?_0x15b36c>=0x0?0xb4:0x0:_0x30822d>=0x0?0x10e:0x5a;}['_reset'](){const _0x52d696=_0x196d4a;this[_0x52d696(0x2fb)]=void 0x0,this[_0x52d696(0x204)]=void 0x0,this[_0x52d696(0x19d)]=void 0x0,this[_0x52d696(0x380)]();}[_0x196d4a(0x1cc)](){const _0x40732e=_0x196d4a;this[_0x40732e(0x380)](),super[_0x40732e(0x1cc)]();}};ma=X([Y(0x1,_0x153d8f),Y(0x2,_0x4dadf2),Y(0x3,_0x446eb2),Y(0x4,_0x46c185),Y(0x5,_0x14bfc1(_0x13b053)),Y(0x6,_0x14bfc1(Pr)),Y(0x7,_0x14bfc1(da))],ma);let ha=class extends _0x116f11{constructor(_0x4d9627,_0x25861d,_0x292c26){const _0x4bd750=_0x196d4a;super(),this[_0x4bd750(0x178)]=_0x4d9627,this[_0x4bd750(0x23e)]=_0x25861d,this[_0x4bd750(0x273)]=_0x292c26,this[_0x4bd750(0x1f2)]();}['_initPrinting'](){const _0x14314e=_0x196d4a;this[_0x14314e(0x335)](this[_0x14314e(0x178)][_0x14314e(0x2b8)][_0x14314e(0x34c)](this['_sheetPrintInterceptorService'][_0x14314e(0x2b8)][_0x14314e(0x2f5)]()[_0x14314e(0x23c)],{'handler':(_0x438c43,_0x3eb690,_0x70806c)=>{const _0x50f9a1=_0x14314e;var _0x46d943;let {unitId:_0x357366,subUnitId:_0xefa244,scene:_0x3dd578,resourceCollector:_0x1f4f19}=_0x3eb690,_0x2aff9e=(_0x46d943=this['_drawingManagerService'][_0x50f9a1(0x1f8)](_0x357366))==null?void 0x0:_0x46d943[_0xefa244];return _0x2aff9e==null||_0x2aff9e['order'][_0x50f9a1(0x326)](_0x177b33=>{const _0x18bd6d=_0x50f9a1;let _0x24cda2=_0x2aff9e['data'][_0x177b33];_0x24cda2[_0x18bd6d(0x27b)]===_0x123aa0[_0x18bd6d(0x323)]&&!_0x24cda2[_0x18bd6d(0x31d)]&&this[_0x18bd6d(0x273)]['renderDrawingShape'](_0x24cda2,_0x3dd578,{'resourceCollector':_0x1f4f19});}),_0x70806c(_0x438c43);}}));}};ha=X([Y(0x0,_0x14bfc1(_0x4ffadc)),Y(0x1,_0x446eb2),Y(0x2,_0x14bfc1(Z))],ha);let ga=class extends _0x116f11{constructor(_0x1ae75c,_0x4658ef,_0x58a8b2){const _0x53d328=_0x196d4a;super(),this[_0x53d328(0x232)]=_0x1ae75c,this['_localeService']=_0x4658ef,this[_0x53d328(0x209)]=_0x58a8b2,this[_0x53d328(0x170)]();}[_0x196d4a(0x170)](){const _0x11cabf=_0x196d4a;this[_0x11cabf(0x335)](this['_commandService'][_0x11cabf(0x255)](_0x2f9504=>{const _0x59672e=_0x11cabf;let _0x1be752,_0x50fbc1;if(_0x2f9504['id']===_0x258890['id']||_0x2f9504['id']===_0x1b5825['id']||_0x2f9504['id']===_0x31e366['id']){let _0x1c46c1=_0x2f9504[_0x59672e(0x1a9)];_0x1be752=_0x1c46c1[_0x59672e(0x263)],_0x50fbc1=_0x1c46c1[_0x59672e(0x2f3)];}_0x1be752&&_0x50fbc1&&(this[_0x59672e(0x209)][_0x59672e(0x374)]({'workbookTypes':[_0x126772],'worksheetTypes':[_0x4b3b52]},_0x1be752,_0x50fbc1)||this[_0x59672e(0x209)][_0x59672e(0x184)](this[_0x59672e(0x185)]['t']('sheets-shape-ui.permission.editErr')));}));}};ga=X([Y(0x0,_0x14bfc1(_0x153d8f)),Y(0x1,_0x14bfc1(_0x407e83)),Y(0x2,_0x14bfc1(_0x124f6a))],ga);let _a=class{constructor(_0x269f3b){const _0x415da8=_0x196d4a;this[_0x415da8(0x1b7)]=_0x269f3b;}[_0x196d4a(0x31f)](_0x243d92,_0x23e04a){const _0x120952=_0x196d4a;let _0x445eb3=this['_renderManagerService'][_0x120952(0xd7)](_0x243d92[_0x120952(0x263)]),_0x125b09=_0x445eb3==null?void 0x0:_0x445eb3['scene'];if(!_0x125b09)return;let _0x114172=_0x934411(_0x243d92),_0x108215=_0x125b09['getObjectIncludeInGroup'](_0x114172);_0x108215==null||_0x108215[_0x120952(0x268)](_0x23e04a);}};_a=X([Y(0x0,_0x4dadf2)],_a);let va=class extends _0x1aacd5{constructor(_0x1413f4=Yi,_0x253aaf,_0x5816bc,_0x34b800,_0x49e766){const _0x113654=_0x196d4a;super(),this[_0x113654(0x21c)]=_0x1413f4,this[_0x113654(0x214)]=_0x253aaf,this[_0x113654(0x232)]=_0x5816bc,this[_0x113654(0x28b)]=_0x34b800,this[_0x113654(0x1b7)]=_0x49e766;let {..._0x54e92f}=_0x30830d({},Yi,this[_0x113654(0x21c)]);this[_0x113654(0x28b)]['setConfig'](Ji,_0x54e92f),this[_0x113654(0x13c)]();}[_0x196d4a(0x368)](){const _0x1a6b68=_0x196d4a;this[_0x1a6b68(0x214)][_0x1a6b68(0x1c1)]([ta]),this[_0x1a6b68(0x214)][_0x1a6b68(0x100)](ta),_0x4a2ba7(this[_0x1a6b68(0x214)],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}['onReady'](){const _0x2e0b6f=_0x196d4a;_0x4a2ba7(this[_0x2e0b6f(0x214)],[[da],[Pr],[fa]]),_0x1fd115(this['_injector'],[[fa],[Pr]]),[[da],[Xi],[ma],[ra]][_0x2e0b6f(0x326)](_0x43cd39=>{const _0xed36c4=_0x2e0b6f;this[_0xed36c4(0x335)](this[_0xed36c4(0x1b7)][_0xed36c4(0x303)](_0x204504[_0xed36c4(0x205)],_0x43cd39));});}[_0x196d4a(0x151)](){_0x1fd115(this['_injector'],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}[_0x196d4a(0x1f9)](){const _0x370ab2=_0x196d4a;this[_0x370ab2(0x214)][_0x370ab2(0x100)](aa)[_0x370ab2(0x1c3)]();}[_0x196d4a(0x13c)](){const _0x3352c9=_0x196d4a;[Ir,K,Fr,qi]['forEach'](_0x5a9fb5=>this[_0x3352c9(0x335)](this[_0x3352c9(0x232)][_0x3352c9(0x361)](_0x5a9fb5)));}};q(va,_0x196d4a(0x104),_0x204504['UNIVER_SHEET']),q(va,_0x196d4a(0x367),_0x196d4a(0xe0)),q(va,'packageName',Gi),q(va,_0x196d4a(0x145),Ki),va=X([_0x392549(_0x263fcc,_0x589f6d,_0x3f0c63,_0x2196c4,_0x3474e2,_0x3eedd5,_0x44c72a,_0x5aafc6,_0x1dd5e1,_0x147e49,_0x58390f,_0x36ca49,_0x455a57),Y(0x1,_0x14bfc1(_0x14ee4a)),Y(0x2,_0x153d8f),Y(0x3,_0x389518),Y(0x4,_0x4dadf2)],va);const ya={'type':_0x36ba27[_0x196d4a(0x22a)],'id':_0x196d4a(0x376),'handler'(){return!0x0;}};function ba(){const _0x37ce47=_0x196d4a;let _0x3b7493=_0x508bbd(_0x446eb2),_0x46bf3e=_0x49d454(()=>_0x3b7493['focus$'],_0x3b7493[_0x37ce47(0x31a)](),!0x1,[_0x3b7493]);return _0x46bf3e[_0x37ce47(0x1bc)]===0x0?null:_0x39d578(_0x37ce47(0x1de),{'children':_0x13ab6(_0x37ce47(0x1de),{'className':_0x37ce47(0x1fe),'children':[_0x39d578(_0x12c81c,{'drawings':_0x46bf3e,'hasCropper':!0x1}),_0x39d578(_0x169b3e,{'drawings':_0x46bf3e})]})});}function xa(_0xa868f1){let {unitId:_0x2dd919,subUnitId:_0x3f3299,shapeId:_0x51a4a2}=_0xa868f1,_0x32b1dd=_0x508bbd(_0x153d8f),_0x52d29e=_0x508bbd(_a);return _0x39d578(_0x33339d,{..._0xa868f1,'positionEditor':_0x39d578(ba,{}),'onUpdateShapeData':(_0x1f2a28,_0x396ef8)=>{Dr(_0x32b1dd,_0x2dd919,_0x3f3299,_0x51a4a2,_0x1f2a28,_0x396ef8);},'onUpdateLineShapeData':(_0x239242,_0x376b72)=>{Or(_0x32b1dd,_0x2dd919,_0x3f3299,_0x51a4a2,_0x239242,_0x376b72);},'onUpdateShapeFillImage':_0xd4d29e=>{const _0xadb370=_0x165f;_0x52d29e[_0xadb370(0x31f)]({'unitId':_0x2dd919,'subUnitId':_0x3f3299,'drawingId':_0x51a4a2},_0xd4d29e);}});}function Sa(_0x32edc6){const _0x139260=_0x196d4a;let _0x5584ce=_0x508bbd(_0x3c5765),_0x234feb=_0x49d454(()=>_0x5584ce[_0x139260(0x30c)],_0x5584ce[_0x139260(0x2f7)](),!0x1,[_0x5584ce]),_0x14625e=_0x32edc6[_0x139260(0x25c)][_0x139260(0x375)];return!_0x14625e||!_0x234feb?null:_0x39d578(Ca,{..._0x14625e,'canvasElement':_0x32edc6['popup']['canvasElement']});}function Ca(_0x3ce00a){const _0x28ca55=_0x196d4a;let _0x3f9d2c=_0x508bbd(_0x153d8f),_0x3ddde9=_0x508bbd(_0x13b053),{unitId:_0x59c543,subUnitId:_0xbfd67e,drawingId:_0xad85fa,drawingType:_0x45d535,shapeType:_0x269d16}=_0x3ce00a,[_0x2405cc,_0x4a8e4d]=_0x2d8807(_0x3ce00a[_0x28ca55(0x2cf)]),_0x100b75=_0xe812e8(()=>_0x543814(_0x2405cc),[_0x2405cc]),_0x1294d6=_0xe812e8(()=>_0x41ef0e(_0x2405cc),[_0x2405cc]);_0x5902a2(()=>{const _0x323592=_0x28ca55;let _0x2120ab=_0x3f9d2c['onCommandExecuted'](_0x4380ef=>{if(_0x4380ef['id']!==_0x3ebd56['id'])return;let _0xdd23db=_0x3ddde9['getShapeDataById'](_0x59c543,_0xbfd67e,_0xad85fa);_0xdd23db&&_0x4a8e4d(_0xdd23db);});return()=>_0x2120ab[_0x323592(0x1cc)]();},[_0x3f9d2c,_0xad85fa,_0x3ddde9,_0xbfd67e,_0x59c543]);let _0x20194a=_0x217ec1=>{_0x4a8e4d(_0x2c3705=>({..._0x2c3705,..._0x217ec1}));},_0x56dac7=_0x3ffc0f=>{let _0xc43893=_0x5a6892(_0x2405cc,_0x3ffc0f);Dr(_0x3f9d2c,_0x59c543,_0xbfd67e,_0xad85fa,{'oldShapeData':{'shapeText':_0x2405cc['shapeText']}},_0xc43893),_0x20194a(_0xc43893);},_0x1c11c4=_0x223293({'hostType':_0x204504[_0x28ca55(0x205)],'unitId':_0x59c543,'subUnitId':_0xbfd67e,'shapeId':_0xad85fa,'shapeData':_0x2405cc,'onUpdateBinding':_0x27f10d=>{let _0x7da5fa={'formulaBinding':_0x27f10d};Dr(_0x3f9d2c,_0x59c543,_0xbfd67e,_0xad85fa,{'oldShapeData':{'formulaBinding':_0x2405cc['formulaBinding']}},_0x7da5fa),_0x20194a(_0x7da5fa);}});return _0x13ab6(_0x1ba972,{'children':[_0x39d578(_0x593a17,{'canvasElement':_0x3ce00a[_0x28ca55(0x1d3)],'shapeData':_0x2405cc,'shapeType':_0x269d16,'textStyle':{'ff':_0x1a4d77['shapeText'][_0x28ca55(0x305)],'fs':_0x1a4d77[_0x28ca55(0x34a)]['fontSize'],'cl':{'rgb':_0x1a4d77['shapeText'][_0x28ca55(0xfb)]},..._0x100b75},'textModel':_0x1294d6?{'ha':_0x1294d6['ha']??_0x3a8480[_0x28ca55(0x182)],'va':_0x1294d6['va']??_0x1b272d[_0x28ca55(0x187)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x1a4d77['fill'],'defaultGradientEndColor':_0x1a4d77['gradientEndColor'],'defaultStrokeColor':_0x1a4d77[_0x28ca55(0x193)],'extensionGroups':_0x1c11c4[_0x28ca55(0x14d)],'floatingObjectToolbarPosition':_0x5d07c3[_0x28ca55(0xd1)],'onUpdateShapeData':(_0x74bb4b,_0xef5bf1)=>{Dr(_0x3f9d2c,_0x59c543,_0xbfd67e,_0xad85fa,_0x74bb4b,_0xef5bf1),_0xef5bf1&&_0x20194a(_0xef5bf1);},'onUpdateText':_0x56dac7,'onOpenPanel':()=>{const _0x484512=_0x28ca55;_0x3f9d2c[_0x484512(0x152)](Wr['id'],{'unitId':_0x59c543,'subUnitId':_0xbfd67e,'drawingId':_0xad85fa});},'onDelete':()=>{_0x3f9d2c['executeCommand'](_0x3b039['id'],{'unitId':_0x59c543,'drawings':[{'unitId':_0x59c543,'subUnitId':_0xbfd67e,'drawingId':_0xad85fa,'drawingType':_0x45d535}]});}}),_0x1c11c4[_0x28ca55(0x357)]]});}function wa(_0x266e14){const _0x204fae=_0x196d4a;return!!_0x266e14&&'axisAlignSheetTransform'in _0x266e14&&_0x204fae(0x325)in _0x266e14;}const Ta=_0x4c612b(()=>{const _0x2174be=_0x196d4a;let _0xc717a0=_0x508bbd($),_0x114207=_0x508bbd(_0x13b053),_0x432d8e=_0x508bbd(_0x446eb2),_0x3ecbe8=_0x508bbd(_0x153d8f),_0x3de97f=_0x508bbd(_0x41ccec),_0x6a51da=_0x508bbd(_0x4dadf2),_0x48f271=_0xe812e8(()=>({'getShapeModel':(_0x4f8682,_0x4e2450,_0xb681f8)=>_0x114207[_0x2174be(0xe6)](_0x4f8682,_0x4e2450,_0xb681f8),'getShapeData':(_0x58fc91,_0x3d9af1,_0x7dd23f)=>_0x114207['getShapeDataById'](_0x58fc91,_0x3d9af1,_0x7dd23f),'getDrawingTransform':(_0x5721c8,_0x2f8e76,_0x473bb6)=>{const _0x57ff99=_0x2174be;let _0x3c433b=_0x432d8e[_0x57ff99(0xc7)]({'unitId':_0x5721c8,'subUnitId':_0x2f8e76,'drawingId':_0x473bb6});return _0x3c433b==null?void 0x0:_0x3c433b[_0x57ff99(0x311)];},'updateShapeText':({unitId:_0x3fc1f2,subUnitId:_0x4f33ea,shapeId:_0x3bdbf6,shapeText:_0x420a98,oldShapeText:_0x274d69,hostSize:_0x297f96})=>{const _0x526568=_0x2174be;_0x3de97f[_0x526568(0x314)](_0x3fc1f2,()=>{const _0x496a07=_0x526568;var _0x54064b;let _0x2a1c29=_0x3ecbe8[_0x496a07(0x227)](K['id'],{'unitId':_0x3fc1f2,'subUnitId':_0x4f33ea,'shapeId':_0x3bdbf6,'shapeData':{'shapeText':_0x420a98},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x274d69}}});if(!_0x2a1c29||!_0x297f96)return _0x2a1c29;let _0x150c1a=_0x432d8e['getDrawingByParam']({'unitId':_0x3fc1f2,'subUnitId':_0x4f33ea,'drawingId':_0x3bdbf6}),_0x560db5=_0x150c1a==null?void 0x0:_0x150c1a['transform'];if(!wa(_0x150c1a)||!_0x560db5)return!0x1;let _0x576e71={..._0x560db5,'width':_0x297f96['width'],'height':_0x297f96[_0x496a07(0x2b9)]},_0x4392ea=(_0x54064b=_0x6a51da['getRenderUnitById'](_0x3fc1f2))==null||(_0x54064b=_0x54064b[_0x496a07(0x2a0)](_0x7b1452)[_0x496a07(0x223)](_0x4f33ea))==null?void 0x0:_0x54064b[_0x496a07(0x241)];return _0x3ecbe8[_0x496a07(0x227)](_0x24e472['id'],{'unitId':_0x3fc1f2,'drawings':[{..._0x150c1a,'transform':_0x576e71,'sheetTransform':_0x4392ea?_0x15205d(_0x576e71,_0x4392ea)??_0x150c1a[_0x496a07(0x325)]:_0x150c1a['sheetTransform'],'axisAlignSheetTransform':_0x4392ea?_0x3a2b93(_0x576e71,_0x4392ea)??_0x150c1a[_0x496a07(0x11f)]:_0x150c1a[_0x496a07(0x11f)]}]});});},'updateHostSize':({unitId:_0xa5c46,subUnitId:_0x88d27a,shapeId:_0x3c2377,width:_0x2908aa,height:_0xb46fb9})=>{const _0x51e965=_0x2174be;var _0x23abfb;let _0x5222cf=_0x432d8e['getDrawingByParam']({'unitId':_0xa5c46,'subUnitId':_0x88d27a,'drawingId':_0x3c2377}),_0x4c1097=_0x5222cf==null?void 0x0:_0x5222cf[_0x51e965(0x311)];if(!wa(_0x5222cf)||!_0x4c1097)return;let _0x530fcc={..._0x4c1097,'width':_0x2908aa,'height':_0xb46fb9},_0x3b40cd=(_0x23abfb=_0x6a51da[_0x51e965(0xd7)](_0xa5c46))==null||(_0x23abfb=_0x23abfb['with'](_0x7b1452)[_0x51e965(0x223)](_0x88d27a))==null?void 0x0:_0x23abfb[_0x51e965(0x241)],_0x2f2023=_0x3b40cd?_0x15205d(_0x530fcc,_0x3b40cd)??_0x5222cf['sheetTransform']:_0x5222cf[_0x51e965(0x325)],_0x4b1eca=_0x3b40cd?_0x3a2b93(_0x530fcc,_0x3b40cd)??_0x5222cf[_0x51e965(0x11f)]:_0x5222cf[_0x51e965(0x11f)];_0x3ecbe8[_0x51e965(0x152)](_0x24e472['id'],{'unitId':_0xa5c46,'drawings':[{..._0x5222cf,'transform':_0x530fcc,'sheetTransform':_0x2f2023,'axisAlignSheetTransform':_0x4b1eca}]});},'allowHostSizeShrink':({unitId:_0x75af0,subUnitId:_0x260af2,shapeId:_0x593e65})=>_0x2662f6(_0x114207[_0x2174be(0xf0)](_0x75af0,_0x260af2,_0x593e65)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x3ecbe8,_0x432d8e,_0x6a51da,_0x114207,_0x3de97f]),_0x369a6d=_0xe812e8(()=>({'viewportKeys':{'main':_0x220776[_0x2174be(0x2d8)],'leftTop':_0x220776[_0x2174be(0xd9)],'top':_0x220776[_0x2174be(0x20f)],'left':_0x220776['VIEW_MAIN_LEFT']},'getSkeleton':(_0x1a02bb,_0x8dad1d)=>{const _0x2a7e5c=_0x2174be;var _0x2c36b9;return((_0x2c36b9=_0x1a02bb[_0x2a7e5c(0x2a0)](_0x7b1452)[_0x2a7e5c(0x223)](_0x8dad1d['subUnitId']))==null?void 0x0:_0x2c36b9[_0x2a7e5c(0x241)])??null;}}),[]);return _0x39d578(_0x3d22ef,{'adapter':_0x48f271,'editingService':_0xc717a0,'editorUnitId':Vr,'positionOptions':_0x369a6d});});let Ea=class extends _0x116f11{constructor(_0x497706,_0x255c62){const _0x2738f8=_0x196d4a;super(),this['_componentManager']=_0x497706,this['_iconManager']=_0x255c62,this['_registerIcons'](),this[_0x2738f8(0x216)]();}[_0x196d4a(0x171)](){const _0x5712fd=_0x196d4a;this[_0x5712fd(0xe3)][_0x5712fd(0x238)](_0x5712fd(0x38d))||this[_0x5712fd(0x335)](this[_0x5712fd(0xe3)][_0x5712fd(0x157)]({'ObjectLayersIcon':_0x4dbc57})),this['_iconManager'][_0x5712fd(0x238)](_0x5712fd(0x136))||this[_0x5712fd(0x335)](this[_0x5712fd(0xe3)][_0x5712fd(0x157)]({'FlipHorizontalIcon':_0x654af8})),this[_0x5712fd(0xe3)]['has'](_0x5712fd(0x12b))||this[_0x5712fd(0x335)](this[_0x5712fd(0xe3)][_0x5712fd(0x157)]({'FlipVerticalIcon':_0x2d018e})),this[_0x5712fd(0xe3)][_0x5712fd(0x238)](_0x5712fd(0x2a3))||this[_0x5712fd(0x335)](this['_iconManager'][_0x5712fd(0x157)]({'BottomIcon':_0x498df7})),this[_0x5712fd(0xe3)][_0x5712fd(0x238)]('MoveDownIcon')||this[_0x5712fd(0x335)](this[_0x5712fd(0xe3)]['register']({'MoveDownIcon':_0x158b87})),this[_0x5712fd(0xe3)]['has'](_0x5712fd(0x242))||this[_0x5712fd(0x335)](this[_0x5712fd(0xe3)][_0x5712fd(0x157)]({'MoveUpIcon':_0x1d98f5})),this[_0x5712fd(0xe3)]['has'](_0x5712fd(0x322))||this[_0x5712fd(0x335)](this[_0x5712fd(0xe3)][_0x5712fd(0x157)]({'ShapeFormatSettingIcon':_0x163347})),this[_0x5712fd(0xe3)][_0x5712fd(0x238)](_0x5712fd(0x289))||this[_0x5712fd(0x335)](this[_0x5712fd(0xe3)]['register']({'TopmostIcon':_0x172d21}));}[_0x196d4a(0x216)](){const _0x48fb62=_0x196d4a;this[_0x48fb62(0x335)](this[_0x48fb62(0x20e)]['register'](Lr,xa)),this[_0x48fb62(0x335)](this[_0x48fb62(0x20e)]['register'](Rr,$i)),this[_0x48fb62(0x335)](this['_componentManager'][_0x48fb62(0x157)](Jr,ei)),this[_0x48fb62(0x335)](this[_0x48fb62(0x20e)][_0x48fb62(0x157)](Yr,Zr)),this['_componentManager'][_0x48fb62(0x100)](_0x5c8b25)||this[_0x48fb62(0x335)](this[_0x48fb62(0x20e)][_0x48fb62(0x157)](_0x5c8b25,$r)),this[_0x48fb62(0x335)](this['_componentManager']['register'](zr,Sa)),this[_0x48fb62(0x335)](this['_componentManager'][_0x48fb62(0x157)](di,hi)),this['disposeWithMe'](this[_0x48fb62(0x20e)][_0x48fb62(0x157)](ui,gi)),this[_0x48fb62(0x335)](this[_0x48fb62(0x20e)][_0x48fb62(0x157)](fi,_i)),this['disposeWithMe'](this[_0x48fb62(0x20e)][_0x48fb62(0x157)](pi,vi)),this[_0x48fb62(0x335)](this['_componentManager'][_0x48fb62(0x157)](Hr,_0x376b8a)),this['disposeWithMe'](this[_0x48fb62(0x20e)]['register'](_0x48fb62(0x2c7),Ta));}};Ea=X([Y(0x0,_0x14bfc1(_0x1db2df)),Y(0x1,_0x14bfc1(_0x4f5c3f))],Ea);let Da=class extends _0x116f11{constructor(_0x1d944e,_0xec8792,_0x182ff0,_0x498abe,_0x1c90cd,_0x541360,_0x22b137,_0x417220,_0x4717ee){const _0x591056=_0x196d4a;super();let _0x441c90=_0x1414f0=>{const _0x8f5df8=_0x165f;var _0x10cde2,_0x4741c3;return(((_0x10cde2=_0x417220[_0x8f5df8(0x169)](new _0x126772(_0x1414f0[_0x8f5df8(0x263)])['id']))==null?void 0x0:_0x10cde2[_0x8f5df8(0x1b9)])??!0x0)&&(((_0x4741c3=_0x417220[_0x8f5df8(0x169)](new _0x4b3b52(_0x1414f0['unitId'],_0x1414f0[_0x8f5df8(0x2f3)])['id']))==null?void 0x0:_0x4741c3['value'])??!0x0);},_0x166740=_0x3583e4=>_0x3583e4['shapeId']&&_0x441c90(_0x3583e4)?_0x182ff0['getShapeDataById'](_0x3583e4[_0x591056(0x263)],_0x3583e4[_0x591056(0x2f3)],_0x3583e4['shapeId'])??null:null,_0x4e1086=()=>{const _0x362abf=_0x591056;let _0x47db69=_0x1c90cd[_0x362abf(0x31a)](),_0x230b9f=_0x47db69[_0x362abf(0x1bc)]===0x1?_0x47db69[0x0]:null;return(_0x230b9f==null?void 0x0:_0x230b9f['drawingType'])===_0x123aa0[_0x362abf(0x323)]&&_0x230b9f['unitId']===_0x1d944e[_0x362abf(0x263)]?{'unitId':_0x230b9f[_0x362abf(0x263)],'subUnitId':_0x230b9f[_0x362abf(0x2f3)],'shapeId':_0x230b9f[_0x362abf(0x14c)]}:null;};this[_0x591056(0x335)](_0x1deb41(_0x1d944e,_0xec8792,{'changes$':_0x370b6b(_0x1c90cd['focus$'],_0x498abe[_0x591056(0x181)],_0x417220['permissionPointUpdate$']),'isActive':()=>{const _0xe75bb0=_0x591056;var _0x35c42e;return((_0x35c42e=_0x541360['getFocusedUnit']())==null?void 0x0:_0x35c42e[_0xe75bb0(0x2d3)]())===_0x1d944e[_0xe75bb0(0x263)]&&!_0x22b137[_0xe75bb0(0x222)](_0x578359)&&_0x1c90cd['getFocusDrawings']()['some'](_0x3eec4a=>_0x3eec4a[_0xe75bb0(0x263)]===_0x1d944e[_0xe75bb0(0x263)]);},'getSelectedTarget':_0x4e1086,'getSource':()=>{let _0x16b2f9=_0x4e1086();return _0x16b2f9?_0x166740(_0x16b2f9):null;},'getTarget':_0x568202=>{const _0x4e1695=_0x591056;let _0x345e3a=_0x1d944e[_0x4e1695(0x142)][_0x4e1695(0x101)](new _0x2163b6(_0x568202[_0x4e1695(0x203)],_0x568202[_0x4e1695(0x302)]));if(!(_0x345e3a instanceof J))return null;let _0x426286={'unitId':_0x1d944e['unitId'],'subUnitId':_0x345e3a[_0x4e1695(0x2f3)],'shapeId':_0x345e3a[_0x4e1695(0x26c)]};return _0x441c90(_0x426286)?_0x426286:null;},'getShape':_0x166740,'update':(_0x531b6d,_0x584659,_0x5e6b17)=>_0x4717ee[_0x591056(0x152)](K['id'],{..._0x531b6d,'shapeData':_0x5e6b17,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x584659}})}));}};Da=X([Y(0x1,_0x14bfc1(_0x2a6051)),Y(0x2,_0x14bfc1(_0x13b053)),Y(0x3,_0x14bfc1($)),Y(0x4,_0x446eb2),Y(0x5,_0x46c185),Y(0x6,_0x9bf8bb),Y(0x7,_0x51e1fb),Y(0x8,_0x153d8f)],Da);const Oa=_0x196d4a(0x18b);let ka=class extends _0x116f11{constructor(_0x1dfef9,_0x30da67,_0x1e15a0,_0x5926a3,_0x17d955,_0x46907f){const _0x42aa22=_0x196d4a;super(),this['_menuManagerService']=_0x1dfef9,this[_0x42aa22(0x11d)]=_0x30da67,this['_drawingManagerService']=_0x1e15a0,this[_0x42aa22(0x17a)]=_0x5926a3,this[_0x42aa22(0x1b7)]=_0x17d955,this[_0x42aa22(0x20d)]=_0x46907f,q(this,_0x42aa22(0x341),!0x1),this[_0x42aa22(0x34e)][_0x42aa22(0x24b)](Hi),this['disposeWithMe'](_0x46ac89(this[_0x42aa22(0x23e)][_0x42aa22(0x107)]['subscribe'](()=>this[_0x42aa22(0x154)]()))),this[_0x42aa22(0x154)]();}[_0x196d4a(0x1cc)](){const _0x4c7939=_0x196d4a;this['_shapeFloatingToolbarService']['setFallbackVisible'](!0x1,Oa),this['_hide'](),super[_0x4c7939(0x1cc)]();}[_0x196d4a(0x154)](){const _0x1d9013=_0x196d4a;var _0x1dfbe5;let _0x40e8b9=this[_0x1d9013(0x23e)]['getFocusDrawings'](),_0x3f3401=_0x40e8b9[_0x1d9013(0x1bc)]===0x1?_0x40e8b9[0x0]:void 0x0;if((_0x3f3401==null?void 0x0:_0x3f3401[_0x1d9013(0x27b)])!==_0x123aa0['DRAWING_SHAPE']||this[_0x1d9013(0x17a)]['getUnitType'](_0x3f3401[_0x1d9013(0x263)])!==_0x204504[_0x1d9013(0x205)]){this[_0x1d9013(0x20d)][_0x1d9013(0x284)](!0x1,Oa),this['_hide']();return;}let _0x587c9f=(_0x1dfbe5=this['_renderManagerService'][_0x1d9013(0xd7)](_0x3f3401[_0x1d9013(0x263)]))==null?void 0x0:_0x1dfbe5[_0x1d9013(0x2ed)][_0x1d9013(0x310)](),_0x3ca472=_0x2d319f(_0x587c9f)===_0x1d9013(0x29e);if(this[_0x1d9013(0x20d)][_0x1d9013(0x284)](_0x3ca472,Oa),_0x3ca472){this['_hide']();return;}this['_visible']||(this['_visible']=!0x0,this[_0x1d9013(0x11d)][_0x1d9013(0x103)](Br,{'activate':!0x0}));}[_0x196d4a(0x22c)](){const _0x54ca7d=_0x196d4a;this[_0x54ca7d(0x341)]&&(this['_visible']=!0x1,this['_ribbonService'][_0x54ca7d(0x2cb)](Br),this['_ribbonService'][_0x54ca7d(0xe7)]([]));}};ka=X([Y(0x0,_0x866cac),Y(0x1,_0x2b125b),Y(0x2,_0x446eb2),Y(0x3,_0x46c185),Y(0x4,_0x4dadf2),Y(0x5,_0x14bfc1(_0x3c5765))],ka);let Aa=class extends _0x2a6fb9{constructor(_0x5ee7e7,_0x5db51d,_0x1cfd9a,_0x211acb,_0x24657f,_0x42ae77,_0x587960,_0x2d5e5b,_0x766878,_0xf82c87){super(_0x5ee7e7,_0x5db51d,_0x1cfd9a,_0x211acb,_0x24657f,_0x42ae77,_0x587960,_0x2d5e5b,_0x766878,_0xf82c87,{'componentKey':Hr,'editorUnitId':Vr});}};Aa=X([Y(0x1,_0x14bfc1(_0x307326)),Y(0x2,_0x14bfc1(_0x372923)),Y(0x3,_0x14bfc1(_0x338572)),Y(0x4,_0x153d8f),Y(0x5,_0x14bfc1(_0x1248a7)),Y(0x6,_0x14bfc1(_0x4a87e8)),Y(0x7,_0x14bfc1(_0x306ef4)),Y(0x8,_0x14bfc1(_0x300e24)),Y(0x9,_0x14bfc1($))],Aa);let ja=class extends _0x581d74{constructor(_0x37038f,_0x526a89,_0x5441f9,_0x58c284,_0x4ac89f){const _0x1ad5d6=_0x196d4a;super(_0x37038f,_0x526a89,{'editing$':_0x5441f9[_0x1ad5d6(0x181)],'resolve':_0x3f239c=>{const _0x198588=_0x1ad5d6;var _0x7a4408,_0x20a06a,_0x39c0c9;let _0x5aff26=new _0x2163b6(_0x3f239c[_0x198588(0x203)],_0x3f239c['offsetY']),_0x220561=((_0x7a4408=_0x37038f[_0x198588(0x142)]['getActiveViewportByCoord'](_0x5aff26))==null?void 0x0:_0x7a4408[_0x198588(0x10f)](_0x5aff26))??_0x5aff26,_0x1cbf02=_0x4807f9(_0x37038f[_0x198588(0x142)][_0x198588(0x101)](_0x5aff26)??null,_0x220561);if(!(_0x1cbf02 instanceof J))return null;let _0x3a9a12=_0x1cbf02[_0x198588(0x1fd)](_0x220561);if(!_0x3a9a12)return null;let _0x408253=_0x1cbf02,_0x55aa6f={'componentKey':_0x260c61[_0x198588(0x264)],'direction':_0x198588(0x2c9),'offset':[0x0,0xa],'onClickOutside':()=>_0x526a89[_0x198588(0x1e1)]()};return{'object':_0x1cbf02,'info':{..._0x3a9a12,'unitId':_0x1cbf02[_0x198588(0x263)],'subUnitId':_0x1cbf02['subUnitId'],'shapeKey':_0x1cbf02[_0x198588(0x313)],'readonly':!0x0,'copyable':((_0x20a06a=_0x4ac89f[_0x198588(0x169)](new _0xba4e61(_0x1cbf02[_0x198588(0x263)])['id']))==null?void 0x0:_0x20a06a[_0x198588(0x1b9)])!==!0x1&&((_0x39c0c9=_0x4ac89f[_0x198588(0x169)](new _0x5cfb67(_0x1cbf02[_0x198588(0x263)],_0x1cbf02[_0x198588(0x2f3)])['id']))==null?void 0x0:_0x39c0c9['value'])!==!0x1},'attachPopup':()=>_0x58c284['attachPopupToObject'](_0x408253,_0x55aa6f)};}}),this[_0x1ad5d6(0x335)](_0x37038f[_0x1ad5d6(0x329)]['activeSheet$']['subscribe'](()=>this[_0x1ad5d6(0x1b6)]()));}};ja=X([Y(0x1,_0x14bfc1(_0x4a87e8)),Y(0x2,_0x14bfc1($)),Y(0x3,_0x14bfc1(_0x5aaa90)),Y(0x4,_0x51e1fb)],ja);let Ma=class extends _0x116f11{constructor(_0x1c13c8,_0x55ae79,_0x2f785f,_0x4d8448,_0x6af2c6,_0x4a5290,_0x527a06,_0x2425ec,_0x591b9d,_0x293458,_0x2871ab){const _0x353ff5=_0x196d4a;super(),this[_0x353ff5(0x17a)]=_0x1c13c8,this[_0x353ff5(0x129)]=_0x55ae79,this[_0x353ff5(0x34e)]=_0x2f785f,this[_0x353ff5(0x309)]=_0x4d8448,this[_0x353ff5(0x185)]=_0x6af2c6,this[_0x353ff5(0x232)]=_0x4a5290,this[_0x353ff5(0x23e)]=_0x527a06,this[_0x353ff5(0x12e)]=_0x2425ec,this[_0x353ff5(0x290)]=_0x591b9d,this['_renderManagerService']=_0x293458,this[_0x353ff5(0x35f)]=_0x2871ab,q(this,_0x353ff5(0x250),null),q(this,'_activeShapeInfo',null),q(this,_0x353ff5(0x31e),!0x1),q(this,_0x353ff5(0x388),0x0),q(this,_0x353ff5(0x160),null),q(this,_0x353ff5(0xee),[]),this['_initMenu'](),this[_0x353ff5(0x335)](this[_0x353ff5(0x17a)][_0x353ff5(0x206)](_0x204504[_0x353ff5(0x205)])[_0x353ff5(0x1ab)](_0x4ccdfc=>{const _0x2c89d4=_0x353ff5;if(!_0x4ccdfc){var _0x165a97;(_0x165a97=this['_sidebarDisposable'])==null||_0x165a97[_0x2c89d4(0x1cc)]();}})),this[_0x353ff5(0x30e)](),this['initShapePopupMenu'](),this[_0x353ff5(0x335)](this[_0x353ff5(0x35f)][_0x353ff5(0x181)][_0x353ff5(0x1ab)](_0x184098=>{_0x184098&&this['_clearPopups']();}));}[_0x196d4a(0x32a)](){const _0x1c22c0=_0x196d4a;this[_0x1c22c0(0x34e)]['mergeMenu'](Wi);}[_0x196d4a(0x1c3)](){const _0x1dada5=_0x196d4a;this[_0x1dada5(0x160)]||=this[_0x1dada5(0x335)](_0x37fb80(this[_0x1dada5(0x1b7)],_0x204504['UNIVER_SHEET'],_0x1ac55f=>this['_popupMenuListener'](_0x1ac55f)));}[_0x196d4a(0xf8)](_0x2e63f2,_0x4ecc50,_0x26f532){const _0x111c00=_0x196d4a;let _0x489485=this[_0x111c00(0x309)][_0x111c00(0x16a)](_0x2e63f2,_0x4ecc50,_0x26f532),_0x4c87b8=this[_0x111c00(0x309)][_0x111c00(0xf0)](_0x2e63f2,_0x4ecc50,_0x26f532);return _0x489485!==void 0x0&&_0x4c87b8!==void 0x0?{'shapeData':_0x4c87b8,'shapeId':_0x26f532,'shapeType':_0x489485,'unitId':_0x2e63f2,'subUnitId':_0x4ecc50,'version':this[_0x111c00(0x388)],'disableShapeOption':!0x1}:null;}['_clearPopups'](){const _0x2b9c0c=_0x196d4a;this[_0x2b9c0c(0xee)][_0x2b9c0c(0x326)](_0x53061f=>_0x53061f[_0x2b9c0c(0x1cc)]()),this['_disposePopups'][_0x2b9c0c(0x1bc)]=0x0;}[_0x196d4a(0x208)](_0x172f11){const _0xd4c3da=_0x196d4a;let _0xc3c241=new _0x5afd59();return _0xc3c241[_0xd4c3da(0x1c1)](_0x172f11['createControl$']['subscribe'](()=>{const _0x4ab99a=_0xd4c3da;let _0xcecb70=_0x172f11[_0x4ab99a(0x2cc)]();if(this['_clearPopups'](),this['_isOpenedShapeEditPanel']||_0xcecb70[_0x4ab99a(0x358)]>0x1)return;let _0x366d85=_0xcecb70[_0x4ab99a(0x126)]()[_0x4ab99a(0x116)]()[_0x4ab99a(0x1b9)];if(!_0x366d85)return;let _0x4456c6=this[_0x4ab99a(0x23e)][_0x4ab99a(0x23a)](_0x366d85[_0x4ab99a(0x313)]);if(!_0x4456c6||_0x4456c6['drawingType']!==_0x123aa0[_0x4ab99a(0x323)])return;let {unitId:_0x22865f,subUnitId:_0x528e9c,drawingId:_0x301973,drawingType:_0x58fac4}=_0x4456c6,_0x2c88b7=this[_0x4ab99a(0xf8)](_0x22865f,_0x528e9c,_0x301973);if(!_0x2c88b7)return;this['_contextService'][_0x4ab99a(0x36b)](_0x2edc38,!0x0);let _0x462fb5=this['_renderManagerService'][_0x4ab99a(0xd7)](_0x22865f),_0x3f50ff=((_0x462fb5==null?void 0x0:_0x462fb5['isMainScene'])===!0x1?_0x462fb5[_0x4ab99a(0x2a0)](_0x5aaa90):this['_sheetCanvasPopManagerService'])[_0x4ab99a(0x355)](_0x366d85,{'componentKey':zr,'direction':_0x4ab99a(0x2c2),'offset':[0x0,_0x1e40bd],'extraProps':{'unitId':_0x22865f,'subUnitId':_0x528e9c,'drawingId':_0x301973,'drawingType':_0x58fac4,'shapeType':_0x2c88b7['shapeType'],'shapeData':_0x2c88b7[_0x4ab99a(0x2cf)]}});this['_disposePopups'][_0x4ab99a(0x2b7)](this['disposeWithMe'](_0x3f50ff)),this['_drawingManagerService'][_0x4ab99a(0x31a)]()['find'](_0x2e192a=>_0x2e192a['unitId']===_0x22865f&&_0x2e192a[_0x4ab99a(0x2f3)]===_0x528e9c&&_0x2e192a['drawingId']===_0x301973)||this[_0x4ab99a(0x23e)][_0x4ab99a(0x364)]([{'unitId':_0x22865f,'subUnitId':_0x528e9c,'drawingId':_0x301973}]);})),_0xc3c241['add'](_0x172f11['clearControl$'][_0xd4c3da(0x1ab)](()=>{const _0x2c2958=_0xd4c3da;this[_0x2c2958(0x20a)](),this['_contextService']['setContextValue'](_0x2edc38,!0x1),this[_0x2c2958(0x23e)][_0x2c2958(0x364)](null);})),_0xc3c241[_0xd4c3da(0x1c1)](_0x172f11[_0xd4c3da(0x2eb)][_0xd4c3da(0x1ab)](()=>{const _0x2e5765=_0xd4c3da;this[_0x2e5765(0x20a)]();})),_0xc3c241[_0xd4c3da(0x1c1)](_0x172f11['changeStart$'][_0xd4c3da(0x1ab)](()=>{this['_clearPopups']();})),_0x46ac89(()=>{const _0x1d748f=_0xd4c3da;_0xc3c241[_0x1d748f(0x1cc)](),this[_0x1d748f(0x20a)]();});}[_0x196d4a(0x30e)](){const _0x289072=_0x196d4a;this[_0x289072(0x335)](this[_0x289072(0x232)][_0x289072(0x33a)](_0x4c4b6f=>{const _0x5226c0=_0x289072;if(_0x4c4b6f['id']===Wr['id']){let {unitId:_0x3c2373,subUnitId:_0x35e489,drawingId:_0x832250}=_0x4c4b6f['params'];this['_shapeEditPanelVersion']+=0x1,this[_0x5226c0(0x2bd)]=this[_0x5226c0(0xf8)](_0x3c2373,_0x35e489,_0x832250),this[_0x5226c0(0x20a)](),this[_0x5226c0(0x333)]();}if(_0x4c4b6f['id']===ya['id']&&(this[_0x5226c0(0x2bd)]=null,this[_0x5226c0(0x12d)]()),_0x4c4b6f['id']===_0x3ebd56['id']){let {unitId:_0x3c3a8a,subUnitId:_0x31bcd4,shapeId:_0x52855d}=_0x4c4b6f[_0x5226c0(0x1a9)];if(this['_activeShapeInfo']&&this['_activeShapeInfo']['shapeId']===_0x52855d){let _0x2fd990=this[_0x5226c0(0xf8)](_0x3c3a8a,_0x31bcd4,_0x52855d);_0x2fd990&&(this[_0x5226c0(0x388)]+=0x1,_0x2fd990[_0x5226c0(0x145)]=this['_shapeEditPanelVersion'],this[_0x5226c0(0x2bd)]=_0x2fd990,this[_0x5226c0(0x31e)]&&this['_openShapeEditPanel']());}}})),this[_0x289072(0x335)](this['_drawingManagerService'][_0x289072(0x107)][_0x289072(0x1ab)](_0x24f29c=>{const _0x333da6=_0x289072;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x24f29c[_0x333da6(0x1bc)]===0x0){this['_activeShapeInfo']=null,this[_0x333da6(0x12d)]();return;}if(_0x24f29c[_0x333da6(0x1bc)]===0x1&&_0x24f29c[0x0][_0x333da6(0x27b)]===_0x123aa0[_0x333da6(0x323)]&&(this[_0x333da6(0x388)]+=0x1,this[_0x333da6(0x2bd)]=this[_0x333da6(0xf8)](_0x24f29c[0x0][_0x333da6(0x263)],_0x24f29c[0x0]['subUnitId'],_0x24f29c[0x0]['drawingId']),this[_0x333da6(0x2bd)])){this[_0x333da6(0x333)]();return;}let _0x306ffb=_0x24f29c[_0x333da6(0x191)](_0x56459c=>_0x56459c[_0x333da6(0x27b)]===_0x123aa0[_0x333da6(0x323)]);if(_0x24f29c['length']>0x1&&_0x306ffb[_0x333da6(0x1bc)]===_0x24f29c[_0x333da6(0x1bc)]){if(this[_0x333da6(0x388)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x24f29c[0x0][_0x333da6(0x263)],_0x24f29c[0x0][_0x333da6(0x2f3)],_0x24f29c[0x0]['drawingId']),this[_0x333da6(0x2bd)]){this[_0x333da6(0x333)]();return;}}else{if(this[_0x333da6(0x388)]+=0x1,this[_0x333da6(0x2bd)]=this[_0x333da6(0xf8)](_0x24f29c[0x0][_0x333da6(0x263)],_0x24f29c[0x0][_0x333da6(0x2f3)],_0x24f29c[0x0][_0x333da6(0x14c)]),this[_0x333da6(0x2bd)]){this[_0x333da6(0x2bd)]['disableShapeOption']=!0x0,this[_0x333da6(0x333)]();return;}}this[_0x333da6(0x12d)]();}));}[_0x196d4a(0x333)](){const _0x30d28c=_0x196d4a;this[_0x30d28c(0x2bd)]&&(this[_0x30d28c(0x250)]=this[_0x30d28c(0x129)][_0x30d28c(0x2b3)]({'id':Lr,'header':{'title':this[_0x30d28c(0x185)]['t'](_0x30d28c(0x248))},'width':0x184,'children':{'label':Lr,...this['_activeShapeInfo']},'onClose':()=>{const _0x36e776=_0x30d28c;this[_0x36e776(0x23e)][_0x36e776(0x364)](null),this['_contextService'][_0x36e776(0x36b)](_0x2edc38,!0x1),this[_0x36e776(0x250)]=null;}}),this[_0x30d28c(0x31e)]=!0x0);}[_0x196d4a(0x12d)](){const _0x384345=_0x196d4a;this[_0x384345(0x31e)]=!0x1,this[_0x384345(0x129)][_0x384345(0x29a)](Lr),this[_0x384345(0x250)]=null,this[_0x384345(0x290)][_0x384345(0x36b)](_0x2edc38,!0x1),this[_0x384345(0x23e)][_0x384345(0x364)](null);}};Ma=X([Y(0x0,_0x46c185),Y(0x1,_0x14bfc1(_0x6f2b47)),Y(0x2,_0x866cac),Y(0x3,_0x14bfc1(_0x13b053)),Y(0x4,_0x14bfc1(_0x407e83)),Y(0x5,_0x153d8f),Y(0x6,_0x446eb2),Y(0x7,_0x14bfc1(_0x5aaa90)),Y(0x8,_0x9bf8bb),Y(0x9,_0x4dadf2),Y(0xa,_0x14bfc1($))],Ma);let Na=class extends _0x1aacd5{constructor(_0x76b4ec=Yi,_0x2608bb,_0xec0945,_0x2a7b17,_0x3087bc){const _0xb3f569=_0x196d4a;super(),this[_0xb3f569(0x21c)]=_0x76b4ec,this[_0xb3f569(0x214)]=_0x2608bb,this[_0xb3f569(0x232)]=_0xec0945,this[_0xb3f569(0x28b)]=_0x2a7b17,this[_0xb3f569(0x1b7)]=_0x3087bc;let {..._0x502983}=_0x30830d({},Yi,this['_config']);this[_0xb3f569(0x28b)][_0xb3f569(0x26b)](Ji,_0x502983),this[_0xb3f569(0x13c)]();}[_0x196d4a(0x151)](){const _0x3000b2=_0x196d4a;this[_0x3000b2(0x1b7)][_0x3000b2(0x303)](_0x204504[_0x3000b2(0x189)],[Aa]),_0x1fd115(this[_0x3000b2(0x214)],[[Ma],[ca],[Z],[ha]]);}[_0x196d4a(0x1f9)](){const _0x159008=_0x196d4a;this[_0x159008(0x214)][_0x159008(0x100)](Ma)[_0x159008(0x1c3)]();}[_0x196d4a(0xef)](){const _0x5b34cc=_0x196d4a;[[da],[Pr],[fa]]['forEach'](_0x4acc90=>this['_injector']['add'](_0x4acc90)),_0x1fd115(this[_0x5b34cc(0x214)],[[fa],[Pr]]),this[_0x5b34cc(0x1b7)][_0x5b34cc(0x303)](_0x204504['UNIVER_SHEET'],[da]),this[_0x5b34cc(0x1b7)][_0x5b34cc(0x303)](_0x204504[_0x5b34cc(0x205)],[Xi]),this[_0x5b34cc(0x1b7)][_0x5b34cc(0x303)](_0x204504[_0x5b34cc(0x205)],[ma]),this[_0x5b34cc(0x1b7)][_0x5b34cc(0x303)](_0x204504['UNIVER_SHEET'],[na]),this[_0x5b34cc(0x335)](this[_0x5b34cc(0x1b7)][_0x5b34cc(0x303)](_0x204504['UNIVER_SHEET'],[ja])),this['disposeWithMe'](this[_0x5b34cc(0x1b7)][_0x5b34cc(0x303)](_0x204504['UNIVER_SHEET'],[Da]));}[_0x196d4a(0x368)](){const _0x5b81c5=_0x196d4a;this[_0x5b81c5(0x214)][_0x5b81c5(0x1c1)]([Ea]),this[_0x5b81c5(0x214)][_0x5b81c5(0x100)](Ea);let _0x1d3ab5=this[_0x5b81c5(0x214)];[[Ma],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga],[ka]][_0x5b81c5(0x326)](_0x58d368=>_0x1d3ab5[_0x5b81c5(0x1c1)](_0x58d368)),_0x1fd115(this['_injector'],[[Ma],[ca],[Z],[_a],[$],[sa],[Q],[ga],[ka]]);}['_initCommands'](){const _0x59debd=_0x196d4a;[Ir,K,ya,Wr,Ur,Fr,Kr,qr][_0x59debd(0x326)](_0x475a68=>this['disposeWithMe'](this[_0x59debd(0x232)]['registerCommand'](_0x475a68)));}};q(Na,'type',_0x204504[_0x196d4a(0x205)]),q(Na,_0x196d4a(0x367),_0x196d4a(0xe0)),q(Na,_0x196d4a(0x295),Gi),q(Na,'version',Ki),Na=X([_0x392549(_0x263fcc,_0x589f6d,_0x3f0c63,_0x2c6b9e,_0x2196c4,_0x3474e2,_0x3eedd5,_0x44c72a,_0x5aafc6,_0x20ed6b,_0x147e49,_0x5d29eb,_0x2d9bfc),Y(0x1,_0x14bfc1(_0x14ee4a)),Y(0x2,_0x153d8f),Y(0x3,_0x389518),Y(0x4,_0x4dadf2)],Na);export{Hi as SheetsShapeUIContextualRibbonSchema,Wi as SheetsShapeUIMenuSchema,va as UniverSheetsShapeMobileUIPlugin,Na as UniverSheetsShapeUIPlugin};
1
+ const _0x232df7=_0x2028;(function(_0x320413,_0x285452){const _0x200e21=_0x2028,_0x5e796f=_0x320413();while(!![]){try{const _0x1e4932=parseInt(_0x200e21(0x32e))/0x1+-parseInt(_0x200e21(0x15c))/0x2*(-parseInt(_0x200e21(0x388))/0x3)+parseInt(_0x200e21(0x258))/0x4*(parseInt(_0x200e21(0x294))/0x5)+-parseInt(_0x200e21(0x2dd))/0x6*(parseInt(_0x200e21(0x321))/0x7)+-parseInt(_0x200e21(0x14b))/0x8*(parseInt(_0x200e21(0x151))/0x9)+parseInt(_0x200e21(0x386))/0xa*(parseInt(_0x200e21(0x225))/0xb)+parseInt(_0x200e21(0x10f))/0xc;if(_0x1e4932===_0x285452)break;else _0x5e796f['push'](_0x5e796f['shift']());}catch(_0x438cce){_0x5e796f['push'](_0x5e796f['shift']());}}}(_0x1606,0x576ec));import{FormulaShapeAnimationController as _0x19210e,MobileShapeEditorService as _0x8e92cf,SHAPE_CHANGE_PICKER_COMPONENT as _0x1b9682,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x16a405,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x54a031,ShapeEditPanel as _0x1f5908,ShapeFloatingToolbar as _0xaf994a,ShapeFloatingToolbarService as _0xee6e88,ShapeFloatingToolbarToggleFactory as _0x1bd401,ShapeFormulaRibbonControl as _0x13101b,ShapeGroupEnum as _0x56b27d,ShapePickerDropdown as _0x5bb7e1,ShapePickerPanel as _0x2c8a8a,ShapeQuickStyleGallery as _0x5cc351,ShapeStyleRibbonControl as _0x54731a,ShapeTextEditorContainer as _0x3977ad,ShapeTextFloatMenuRenderControllerBase as _0x553e20,ShapeTextFloatToolbar as _0x5dc698,ShapeTextHyperLinkHoverController as _0x1e07e2,ShapeTextHyperLinkInfo as _0x5c9174,ShapeTextHyperLinkPopupService as _0x258cdf,ShapeTextRibbonControl as _0x4c605a,ToggleShapeFloatingToolbarOperation as _0x1f2f61,UniverShapeEditorMobileUIPlugin as _0x42ad3b,UniverShapeEditorUIPlugin as _0x52023d,activateDrawingObject as _0x10780b,bindRenderTransformerLifecycle as _0xd29261,buildShapeTextDataUpdate as _0x2a4875,clearActiveDrawingObjects as _0x4e12a4,createShapeTextHyperLinkRegions as _0xbb0e6c,drawFormulaShapeAnimationLayers as _0x3d37bc,getDrawingTypeNameKey as _0xa2ace3,getTextModel as _0x1f9271,getTextStyle as _0x37bae9,normalizeShapeTextModel as _0x1bba65,plainShapeTextToDocumentData as _0x3d4a09,prepareShapeTextDocumentData as _0x3da194,registerShapeFormatPainter as _0xf449a5,resolveFormulaShapeAutoFitSize as _0x359b16,resolveShapeContextualRibbonHostMode as _0x2a5096,resolveShapeTextDocumentPageHeight as _0x12abcc,resolveShapeTextDocumentRenderLayout as _0x171327,resolveShapeTextEditorBehaviorShapeData as _0x35ac29,resolveShapeTextEditorWrapStrategy as _0x4819b1,resolveShapeTextHyperLinkAt as _0x1dbce6,resolveShapeTextHyperLinkObject as _0x33a154,shouldAllowShapeTextEditorHostSizeShrink as _0x35f3c5,shouldClipShapeTextDocument as _0x34a45a,useFormulaShapeToolbar as _0x5433fa}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x2359f7,ContextMenuGroup as _0x1f1f30,ContextMenuPosition as _0x29b253,FloatingObjectToolbarPosition as _0x28d51f,FormatPainterSessionService as _0x37b7ed,IMenuManagerService as _0x4cc398,IRibbonService as _0x2fcf59,ISidebarService as _0x5c788d,IconManager as _0x22aeed,MenuItemType as _0x27279c,MenuManagerPosition as _0x541bd0,RibbonInsertGroup as _0x3a3389,UndoRedoGroupService as _0x49cd39,UniverMobileUIPlugin as _0x6ff3b1,getMenuHiddenObservable as _0x2c14fa,useDependency as _0x3a3b93,useObservable as _0xe01eb2}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x5d44cb,ImageSourceTypeEnum as _0x456deb,ShapeArrowSizeEnum as _0x1dac15,ShapeArrowTypeEnum as _0x152eab,ShapeDefaultConfig as _0x4c61a8,ShapeFillEnum as _0x44f004,ShapeLineTypeEnum as _0x5053e4,ShapeModel as _0x243526,ShapeRenderModeEnum as _0x5a1729,ShapeTypeEnum as _0xe73d9c,computeConnectorRouteLayout as _0x3cbafa,getBasicShapeRotateBound as _0x109e70,isConnectorShape as _0x52f76f,isCurvedConnectorShape as _0x2be336,routeConnectorLineShape as _0x201266}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x907d04,UniverShapeEditorPlugin as _0x4831fe,applyQuickStyleToShapeData as _0x413e75,cloneShapeDataForType as _0x294ee8,createShapeFormulaDocument as _0x52663b,createShapeTextBoxShapeData as _0x25f18f,getShapeQuickStylePreset as _0xff4b3b,getShapeQuickStyleType as _0x11da62,resolveActiveShapeQuickStylePresetId as _0x553651}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x143510,InsertSheetsShapeMutation as _0x5cdf0c,RemoveSheetsShapeMutation as _0x10857b,SetShapeDrawingDataCommand as _0x37673b,SheetsShapeService as _0x5c2303,ToggleSheetsShapeFlipCommand as _0x1f7ef3,UniverSheetsShapePlugin as _0x1fa068,UpdateConnectorRelationCommand as _0xa22292,UpdateLineShapeResizeCommand as _0x44659f,UpdateSheetsShapeDataMutation as _0x4af43a}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x32c897,CommandType as _0x33172f,DependentOn as _0x18c7c6,Disposable as _0x2bb0e8,DisposableCollection as _0x498b31,DocumentDataModel as _0x228348,DrawingTypeEnum as _0x190419,FOCUSING_COMMON_DRAWINGS as _0x20a63c,FOCUSING_SHAPE_TEXT_EDITOR as _0x29a73c,HorizontalAlign as _0x4dc457,ICommandService as _0x1b156e,IConfigService as _0x40ca43,IContextService as _0x49d586,IImageIoService as _0xe46211,IPermissionService as _0x300477,IURLImageService as _0x38d6c5,IUndoRedoService as _0x1f9c2c,IUniverInstanceService as _0x304294,Inject as _0x229e82,Injector as _0x3fb460,LocaleService as _0x16b0b7,Plugin as _0x407af,UniverInstanceType as _0xe0c4a6,VerticalAlign as _0x2cccb9,createInternalEditorID as _0x20e235,generateRandomId as _0x3a0ce3,merge as _0x32987f,registerDependencies as _0x365af4,toDisposable as _0x169987,touchDependencies as _0x3ece4a}from'@univerjs/core';import{CopySheetCommand as _0xbddc40,RemoveSheetCommand as _0x8eced1,SheetInterceptorService as _0x427085,SheetPermissionCheckController as _0x2c9f0d,SheetSkeletonService as _0x117a83,SheetsSelectionsService as _0x22a39b,UniverSheetsPlugin as _0x7f5329,WorkbookCopyPermission as _0x429dc6,WorkbookEditablePermission as _0x48f387,WorksheetCopyPermission as _0x102e28,WorksheetEditPermission as _0x459023,attachRangeWithCoord as _0x3b9770,discreteRangeToRange as _0x3062da,getSheetCommandTarget as _0x2dc1b6}from'@univerjs/sheets';import{IDrawingManagerService as _0x3deb35,SetDrawingSelectedOperation as _0x2b2ab1,UniverDrawingPlugin as _0x2036ef,getDrawingShapeKeyByDrawingSearch as _0x3023e5,getOrCreateDrawingCopyPlan as _0x118346}from'@univerjs/drawing';import{CURSOR_TYPE as _0x1d110f,Circle as _0x4a02a1,DRAWING_OBJECT_LAYER_INDEX as _0x4489b8,DocumentSkeleton as _0x2bf98e,DocumentViewModel as _0x2437bc,Documents as _0x25e368,IRenderManagerService as _0x422c1e,Image as _0x2cc9fc,RENDER_CLASS_TYPE as _0x432f17,SHEET_VIEWPORT_KEY as _0x1e57e3,Shape as _0x147ce5,Transform as _0x9667eb,UniverRenderEnginePlugin as _0x524cd0,Vector2 as _0x17a8a4}from'@univerjs/engine-render';import{COPY_TYPE as _0x536860,ISheetClipboardService as _0x2be9d9,PREDEFINED_HOOK_NAME as _0x2bfd21,SheetCanvasPopManagerService as _0x5969c8,SheetPrintInterceptorService as _0x3e6e4c,SheetScrollManagerService as _0x5ccab7,SheetSkeletonManagerService as _0x54a66d,UniverSheetsMobileUIPlugin as _0x281d56,UniverSheetsUIPlugin as _0x296a09,deriveStateFromActiveSheet$ as _0x6c9f0d,getCurrentRangeDisable$ as _0x5af922,getViewportByCell as _0x56d9fe}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x519e70,EMPTY as _0x5f31a2,Observable as _0x55611e,map as _0x1e2b1f,merge as _0x6568cf,of as _0x24a70f,startWith as _0x56d968,switchMap as _0x4faa1d}from'rxjs';import{DrawingCommonPanel as _0x4f1e4b,DrawingImageClipService as _0x3a97fd,DrawingRenderService as _0x40a01d,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x48d256,MobileObjectListPanel as _0xaa2832,OBJECT_LIST_FLOATING_SECTION_ID as _0x255c3c,ObjectListPanelBase as _0x31400b,UniverDrawingUIPlugin as _0x106471,getCurrentUnitInfo as _0x15a737,getObjectListPanelSectionIdForDrawingType as _0x33d0f6,insertGroupObject as _0x4e0f39}from'@univerjs/drawing-ui';import{MobileDropdown as _0x217736}from'@univerjs/design';import{Fragment as _0xe1ac43,jsx as _0x386576,jsxs as _0x61d32d}from'react/jsx-runtime';import{DrawingApplyType as _0x4be448,ISheetDrawingService as _0x4458c8,RemoveSheetDrawingCommand as _0x29b5e1,SetDrawingApplyMutation as _0x5097ca,SetDrawingArrangeCommand as _0x535c91,SetSheetDrawingCommand as _0x47d60a,UniverSheetsDrawingPlugin as _0x434230,transformToAxisAlignPosition as _0x544983,transformToDrawingPosition as _0x1f42db}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x42123a}from'@univerjs-pro/license';import{DocInterceptorService as _0x2dfb69,DocSelectionManagerService as _0x25b5fd,UniverDocsPlugin as _0x47964d}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x9982b4,DocEventManagerService as _0x3fd001,DocRenderController as _0x312210,DocSelectionRenderService as _0x5f1788,UniverDocsUIPlugin as _0xc91a83}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x4ef3b5,SheetsDrawingGroupCopyPasteController as _0x344b7d,UniverSheetsDrawingMobileUIPlugin as _0x212ef7,UniverSheetsDrawingUIPlugin as _0x372423}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x7cbde6,FlipHorizontalIcon as _0x3c3c9d,FlipVerticalIcon as _0x134503,MoveDownIcon as _0x1cd4bd,MoveUpIcon as _0x5818fa,ObjectLayersIcon as _0x562db7,ShapeFormatSettingIcon as _0x4a1cd8,TopmostIcon as _0xc502f4}from'@univerjs/icons';import{memo as _0x979643,useEffect as _0x3ac889,useMemo as _0x53eb09,useReducer as _0x1268dd,useState as _0x2c04bf}from'react';function Er(_0x21aad9,_0x231ea7){const _0x34b8aa=_0x2028;let _0x226df3={};for(let _0x12a756 of Object[_0x34b8aa(0x1be)](_0x231ea7)){let _0x56fcad=_0x231ea7[_0x12a756],_0x18ac38=_0x21aad9[_0x12a756];_0x226df3[_0x12a756]=_0x18ac38===void 0x0?void 0x0:typeof _0x56fcad=='object'&&_0x56fcad&&!Array[_0x34b8aa(0x265)](_0x56fcad)&&typeof _0x18ac38=='object'&&_0x18ac38&&!Array[_0x34b8aa(0x265)](_0x18ac38)?Er(_0x18ac38,_0x56fcad):_0x18ac38;}return _0x226df3;}const K={'type':_0x33172f[_0x232df7(0xfe)],'id':_0x232df7(0x1b5),'handler':(_0xcdd4ea,_0x436419)=>{const _0x33acae=_0x232df7;let _0x22c442=_0xcdd4ea[_0x33acae(0x14a)](_0x5c2303),{unitId:_0x12ffdd,subUnitId:_0x5659b7,shapeType:_0x4be46a,shapeId:_0x544694,shapeData:_0x550b7a,replaceShapeData:_0x120f66,oldShapeJSON:_0x4b56e5}=_0x436419;if(!_0x22c442['getShapeModel'](_0x12ffdd,_0x5659b7,_0x544694))return!0x1;let _0x32d37a=_0xcdd4ea[_0x33acae(0x14a)](_0x1b156e),_0x58fe22=_0xcdd4ea[_0x33acae(0x14a)](_0x1f9c2c),{oldShapeType:_0x494e5b,oldShapeData:_0x2ae54b={}}=_0x4b56e5,_0x49d3da=_0x120f66?_0x2ae54b:Er(_0x2ae54b,_0x550b7a||{}),_0x1c39aa={'id':_0x4af43a['id'],'params':{'unitId':_0x12ffdd,'subUnitId':_0x5659b7,'shapeId':_0x544694,'shapeType':_0x4be46a,'shapeData':_0x550b7a,'replace':_0x120f66}},_0x4eb22f={'id':_0x4af43a['id'],'params':{'unitId':_0x12ffdd,'subUnitId':_0x5659b7,'shapeId':_0x544694,'shapeType':_0x494e5b,'shapeData':_0x49d3da,'replace':_0x120f66}};return _0x32d37a[_0x33acae(0x325)](_0x1c39aa['id'],_0x1c39aa[_0x33acae(0x1aa)])?(_0x58fe22[_0x33acae(0x3a4)]({'unitID':_0x12ffdd,'undoMutations':[_0x4eb22f],'redoMutations':[_0x1c39aa]}),!0x0):!0x1;}};function Dr(_0x22b17f,_0x2dca8d,_0x4be724,_0x25b7c0,_0x5b4844,_0x5ebf02){const _0x5d05d5=_0x232df7;let _0x239268={'unitId':_0x2dca8d,'subUnitId':_0x4be724,'shapeId':_0x25b7c0,'shapeData':_0x5ebf02,'oldShapeJSON':_0x5b4844};return _0x22b17f[_0x5d05d5(0x286)](K['id'],_0x239268);}function Or(_0x3156a4,_0x34bd54,_0x186dad,_0x3ba8e0,_0x4b2b9f,_0x31b005){const _0x33657f=_0x232df7;let _0x5e2e61={'unitId':_0x34bd54,'subUnitId':_0x186dad,'shapeId':_0x3ba8e0,'shapeData':_0x31b005,'oldShapeJSON':_0x4b2b9f};return _0x3156a4[_0x33657f(0x286)](K['id'],_0x5e2e61);}function kr(_0x1d5adf){'@babel/helpers - typeof';const _0x2a4293=_0x232df7;return kr=typeof Symbol==_0x2a4293(0x1b4)&&typeof Symbol[_0x2a4293(0x13e)]==_0x2a4293(0x10b)?function(_0x37b987){return typeof _0x37b987;}:function(_0x31e126){const _0x24bf0e=_0x2a4293;return _0x31e126&&typeof Symbol=='function'&&_0x31e126[_0x24bf0e(0x1a4)]===Symbol&&_0x31e126!==Symbol[_0x24bf0e(0x1e4)]?'symbol':typeof _0x31e126;},kr(_0x1d5adf);}function Ar(_0x222cb0,_0x5a14a4){const _0xa6153f=_0x232df7;if(kr(_0x222cb0)!=_0xa6153f(0x392)||!_0x222cb0)return _0x222cb0;var _0x1240a4=_0x222cb0[Symbol[_0xa6153f(0x2b7)]];if(_0x1240a4!==void 0x0){var _0x40dc37=_0x1240a4[_0xa6153f(0x2e2)](_0x222cb0,_0x5a14a4||_0xa6153f(0x16a));if(kr(_0x40dc37)!='object')return _0x40dc37;throw TypeError(_0xa6153f(0x11e));}return(_0x5a14a4===_0xa6153f(0x1ef)?String:Number)(_0x222cb0);}function jr(_0x5bf273){const _0x51667a=_0x232df7;var _0x5895b8=Ar(_0x5bf273,_0x51667a(0x1ef));return kr(_0x5895b8)==_0x51667a(0x10b)?_0x5895b8:_0x5895b8+'';}function q(_0x4e47cc,_0x2afd8c,_0x579383){const _0x1385ca=_0x232df7;return(_0x2afd8c=jr(_0x2afd8c))in _0x4e47cc?Object[_0x1385ca(0x33a)](_0x4e47cc,_0x2afd8c,{'value':_0x579383,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4e47cc[_0x2afd8c]=_0x579383,_0x4e47cc;}function Mr(_0x2a2dbe,_0x4c5893,_0x5d17bf){const _0x51bca1=_0x232df7;let _0x4ed030={..._0x4c5893,'dataModel':{..._0x4c5893[_0x51bca1(0x137)]??{},..._0x5d17bf?{'doc':_0x5d17bf}:null}},_0x26cde7=_0x35ac29(_0x2a2dbe,_0x4ed030),_0x121921=_0x4819b1(_0x26cde7);return{'clip':_0x34a45a(_0x26cde7,_0x121921),'wrapStrategy':_0x121921};}var J=class extends _0x147ce5{constructor(_0x836b17,_0x54d8f3){const _0x5c17a0=_0x232df7;super(_0x836b17,_0x54d8f3),q(this,_0x5c17a0(0x39e),[]),q(this,'_props',void 0x0),q(this,_0x5c17a0(0x132),new _0x19210e(()=>this[_0x5c17a0(0x390)](!0x0),()=>this['_applyFormulaAutoFitSize']())),q(this,_0x5c17a0(0x13d),!0x0),q(this,_0x5c17a0(0xeb),_0x190419[_0x5c17a0(0x21d)]),q(this,'isDrawingObject',!0x0),this[_0x5c17a0(0x27d)]={..._0x54d8f3},this['_formulaAnimation'][_0x5c17a0(0x2fa)](_0x54d8f3[_0x5c17a0(0x157)],_0x54d8f3[_0x5c17a0(0xe0)]!==!0x1),this['_init'](),this[_0x5c17a0(0x348)]();}['_init'](){const _0x5c1746=_0x232df7;this[_0x5c1746(0x2cb)][_0x5c1746(0x2e4)](_0x208cf5=>{const _0x5d97c7=_0x5c1746;this[_0x5d97c7(0x218)](_0x208cf5);});}[_0x232df7(0x1fd)](_0x2baadc){const _0x231ba3=_0x232df7;this['_props'][_0x231ba3(0x320)]=_0x2baadc;}[_0x232df7(0x1c1)](_0x1fa8bd){const _0x394228=_0x232df7;if(this[_0x394228(0x27d)]['isEditing'])return null;let _0x5dbbfa=this[_0x394228(0x364)](_0x1fa8bd),{width:_0x33b90e,height:_0x36a1a3}=this[_0x394228(0x213)]();return _0x1dbce6(this[_0x394228(0x39e)],{'x':(this[_0x394228(0x270)]?-_0x5dbbfa['x']:_0x5dbbfa['x'])+_0x33b90e/0x2,'y':_0x5dbbfa['y']+_0x36a1a3/0x2});}[_0x232df7(0x1f5)](_0x546f39){const _0x314209=_0x232df7;this['_props']['isEditing']=_0x546f39,this[_0x314209(0x390)](!0x0);}[_0x232df7(0x14c)](_0x24bb56,_0xd2d817=!0x0){const _0x5c6139=_0x232df7;this[_0x5c6139(0x132)][_0x5c6139(0x2fa)](_0x24bb56,_0xd2d817),this[_0x5c6139(0x27d)][_0x5c6139(0x157)]=_0x24bb56,this[_0x5c6139(0x348)](),this['makeDirty'](!0x0);}[_0x232df7(0x348)](){const _0x2f15ba=_0x232df7;let _0x431868=this['_props'][_0x2f15ba(0x2c9)],_0x459677=_0x431868[_0x2f15ba(0xf9)](),_0x504b35=_0x1bba65(_0x459677==null?void 0x0:_0x459677[_0x2f15ba(0x137)]),_0x381219=_0x504b35==null?void 0x0:_0x504b35['doc'],_0x943ab6=this['_formulaAnimation']['getAutoFitPresentations']();if(!_0x381219||_0x943ab6[_0x2f15ba(0x333)]===0x0)return;_0x431868[_0x2f15ba(0x2bd)]({'width':this[_0x2f15ba(0x324)],'height':this[_0x2f15ba(0x39a)]});let _0x36fd89=_0x359b16({'documentData':_0x943ab6[_0x2f15ba(0x35b)](_0xc8c9cb=>_0x52663b(_0x381219,_0xc8c9cb)),'height':this[_0x2f15ba(0x39a)],'shapeData':_0x431868[_0x2f15ba(0x1c7)](),'textRect':_0x431868['getShapeTextRect']({'left':0x0,'top':0x0,'width':this[_0x2f15ba(0x324)],'height':this[_0x2f15ba(0x39a)]}),'width':this[_0x2f15ba(0x324)]});if(_0x36fd89){var _0x2cf825;this[_0x2f15ba(0x2b0)](_0x36fd89['width'],_0x36fd89[_0x2f15ba(0x39a)]),(_0x2cf825=this[_0x2f15ba(0x271)]())==null||(_0x2cf825=_0x2cf825[_0x2f15ba(0x122)]())==null||_0x2cf825[_0x2f15ba(0x19f)]();}}get[_0x232df7(0x1e3)](){const _0x67bbb=_0x232df7;return this[_0x67bbb(0x27d)][_0x67bbb(0x1e3)];}get[_0x232df7(0x26c)](){const _0x5f0c60=_0x232df7;return this[_0x5f0c60(0x27d)][_0x5f0c60(0x26c)];}[_0x232df7(0x218)](_0x23b4fc){const _0x3808af=_0x232df7;if(this[_0x3808af(0x27d)]['srcRect']==null||!this[_0x3808af(0x13d)])return;let {width:_0x42240c,height:_0x4b9cad}=this,{width:_0x4bbd41=0x0,height:_0x4785b2=0x0}=_0x23b4fc[_0x3808af(0x160)],{left:_0xcbfeb2=0x0,top:_0xf7339f=0x0,right:_0x45a344=0x0,bottom:_0x2724c4=0x0}=this[_0x3808af(0x27d)]['srcRect'],_0xfa0250=_0xcbfeb2,_0x1ecc18=_0xf7339f,_0x5a2051=_0x45a344,_0x4e5733=_0x2724c4,_0x24723f=!0x1;if(_0x4bbd41!==0x0&&_0x4bbd41!==_0x42240c){let _0x24c0d9=_0xcbfeb2/_0x4bbd41,_0x8dfc44=_0x45a344/_0x4bbd41;_0xfa0250=_0x42240c*_0x24c0d9,_0x5a2051=_0x42240c*_0x8dfc44,_0x24723f=!0x0;}if(_0x4785b2!==0x0&&_0x4785b2!==_0x4b9cad){let _0x420007=_0xf7339f/_0x4785b2,_0x656fbd=_0x2724c4/_0x4785b2;_0x1ecc18=_0x4b9cad*_0x420007,_0x4e5733=_0x4b9cad*_0x656fbd,_0x24723f=!0x0;}_0x24723f&&this['setSrcRect']({'left':_0xfa0250,'top':_0x1ecc18,'right':_0x5a2051,'bottom':_0x4e5733});}[_0x232df7(0x1eb)](_0x3ce463){const _0x23c334=_0x232df7;this[_0x23c334(0x27d)][_0x23c334(0x243)]=_0x3ce463,this['makeDirty'](!0x0);}[_0x232df7(0x35a)](_0x2d85e5){const _0x1a25e4=_0x232df7;this[_0x1a25e4(0x27d)][_0x1a25e4(0x2f5)]=_0x2d85e5,this[_0x1a25e4(0x390)](!0x0);}set[_0x232df7(0x15f)](_0x2e7be5){const _0x2bb0c7=_0x232df7;this[_0x2bb0c7(0x2be)]=_0x2e7be5;}get[_0x232df7(0x15f)](){this['_transform']||this['_setTransForm']();let _0xbbe62c=this['_transform']['clone']();return this['transformForAngle'](_0xbbe62c);}get[_0x232df7(0x2c9)](){const _0x94a359=_0x232df7;return this[_0x94a359(0x27d)]['shapeModel'];}get[_0x232df7(0x275)](){return this['_props']['shapeId'];}get[_0x232df7(0x398)](){const _0x4fa65b=_0x232df7;return _0x432f17[_0x4fa65b(0x2c8)];}[_0x232df7(0x356)](_0x1bcfb2,_0xb93127,_0x3988da,_0x1e2e57){const _0x26faf9=_0x232df7;let _0x436238=this[_0x26faf9(0x27d)][_0x26faf9(0x2c9)];if(!_0x436238||!_0xb93127)return;let _0x37307d=_0x3988da??this[_0x26faf9(0x324)],_0x5c1bcc=_0x1e2e57??this[_0x26faf9(0x39a)],_0x5479fc={'shapeType':_0x436238[_0x26faf9(0x134)](),'width':_0x37307d,'height':_0x5c1bcc},_0x1bf72b={'renderMode':_0x5a1729[_0x26faf9(0xfb)],'oKey':this[_0x26faf9(0x283)],'image':this[_0x26faf9(0x27d)][_0x26faf9(0x2f5)],'angle':this[_0x26faf9(0x140)]};_0x436238['updateContext'](_0x5479fc),_0x1bcfb2[_0x26faf9(0x35e)]();let _0x299eb2={'top':0x0,'left':0x0,'width':_0x37307d,'height':_0x5c1bcc},_0x59abf7=_0x436238['getDrawingEffectBounds'](_0x299eb2);_0x59abf7?this['_renderWithCache'](_0x1bcfb2,_0x59abf7,_0x3aa5d1=>{const _0x29cc76=_0x26faf9;_0x436238[_0x29cc76(0x181)](_0x3aa5d1,_0x299eb2,_0x1bf72b);}):(this[_0x26faf9(0x123)](),_0x436238[_0x26faf9(0x181)](_0x1bcfb2,_0x299eb2,_0x1bf72b)),_0x1bcfb2[_0x26faf9(0x18b)]();let _0x44e411=_0x436238[_0x26faf9(0xf9)](),_0x1f5b0c=_0x436238['getShapeTextRect'](_0x299eb2),_0x4eff42=_0x436238['isLineShape']();if(_0x44e411&&_0x1f5b0c&&!_0x4eff42){_0x1bcfb2['save'](),this['getState']()[_0x26faf9(0x270)]&&_0x1bcfb2[_0x26faf9(0x36e)](-0x1,0x1);let _0x4c842a=_0x37307d/0x2,_0x58de49=_0x5c1bcc/0x2;_0x1bcfb2[_0x26faf9(0x251)](-_0x4c842a,-_0x58de49),_0x1bcfb2[_0x26faf9(0x14d)](),this[_0x26faf9(0x238)](_0x1bcfb2,_0x44e411,_0x1f5b0c),_0x1bcfb2[_0x26faf9(0x18b)]();}}[_0x232df7(0x158)](_0x444100){}['_drawShapeText'](_0x2d4e06,_0x3adae8,_0x407520){const _0x404cab=_0x232df7;var _0x3d5aa7;this[_0x404cab(0x39e)]=[],!this[_0x404cab(0x27d)][_0x404cab(0x2f6)]&&(!((_0x3d5aa7=_0x3adae8[_0x404cab(0x137)])!=null&&_0x3d5aa7[_0x404cab(0xf6)])&&'isRichText'in _0x3adae8&&_0x3adae8[_0x404cab(0x1f7)]===!0x1?this[_0x404cab(0x371)](_0x2d4e06,_0x3adae8,_0x407520):this['_drawRichText'](_0x2d4e06,_0x3adae8,_0x407520));}[_0x232df7(0x371)](_0x35e080,_0x12edd4,_0x6f745c){const _0x1af3c5=_0x232df7;this[_0x1af3c5(0x240)](_0x35e080,{..._0x12edd4,'text':_0x12edd4[_0x1af3c5(0x1a6)]??'','dataModel':{'doc':_0x3d4a09(_0x12edd4,'sheets-shape-text-'+this[_0x1af3c5(0x283)])}},_0x6f745c);}[_0x232df7(0x240)](_0x470544,_0x495279,_0x1a5c7f){const _0x569fc6=_0x232df7;_0x3d37bc(_0x470544,this[_0x569fc6(0x132)],(_0x109a5c,_0x2971dc,_0x14ede3)=>{const _0x384a37=_0x569fc6;this['_drawRichTextLayer'](_0x109a5c,_0x495279,_0x1a5c7f,_0x2971dc,_0x14ede3===_0x384a37(0x32b));});}['_drawRichTextLayer'](_0x5db83b,_0x2f0fe1,_0x370ef1,_0x2cec95,_0x16aadb){const _0x458f23=_0x232df7;let _0x1b65da=this['_props'][_0x458f23(0x39c)];if(!_0x2f0fe1[_0x458f23(0x137)]||!_0x1b65da)return;let _0x1dcb87=_0x1bba65(_0x2f0fe1['dataModel']);if(!_0x1dcb87)return;let _0x3ab50d=_0x1dcb87['doc'];if(!_0x3ab50d)return;let _0x475070=_0x52663b(_0x3ab50d,_0x2cec95),_0x538ab1=_0x1dcb87['va']??_0x2cccb9[_0x458f23(0x115)],_0x51c2e9=_0x1dcb87['ha']??_0x4dc457[_0x458f23(0xf0)],_0x592774=Mr(this[_0x458f23(0x27d)][_0x458f23(0x2c9)][_0x458f23(0x1c7)](),_0x2f0fe1,_0x475070),_0x315d7d=_0x2f0fe1['isHorizontal'],_0x323f0d=_0x3da194(_0x475070,{'isHorizontal':_0x315d7d!==!0x1,'textRect':_0x370ef1,'verticalAlign':_0x538ab1,'horizontalAlign':_0x51c2e9,'wrapStrategy':_0x592774[_0x458f23(0x299)]}),_0x475178=new _0x228348(_0x323f0d),_0x38fefb=new _0x2437bc(_0x475178),_0x59141e=_0x2bf98e[_0x458f23(0x164)](_0x38fefb,_0x1b65da);_0x59141e['calculate']();let _0x72c6b9=_0x59141e[_0x458f23(0x165)]()['actualHeight'],_0x18fa44=_0x171327({'contentHeight':_0x72c6b9,'verticalAlign':_0x538ab1,'viewportHeight':_0x370ef1[_0x458f23(0x39a)]});_0x475178[_0x458f23(0x376)]({'pageSize':{'width':_0x315d7d===!0x1?_0x370ef1[_0x458f23(0x39a)]:_0x370ef1[_0x458f23(0x324)],'height':_0x12abcc(_0x475070,_0x18fa44[_0x458f23(0x1c0)])}}),_0x475178[_0x458f23(0x17b)]({'t':_0x18fa44[_0x458f23(0x2b9)]}),_0x59141e[_0x458f23(0x252)]();let _0x5c1bab=new _0x25e368(_0x458f23(0x22e)+this[_0x458f23(0x283)],_0x59141e,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x458f23(0x390)](!0x0)});_0x5c1bab[_0x458f23(0x2b0)](_0x370ef1[_0x458f23(0x324)],_0x18fa44[_0x458f23(0x1c0)]),_0x5db83b['save'](),_0x5db83b[_0x458f23(0x313)](_0x370ef1[_0x458f23(0xe4)],_0x370ef1[_0x458f23(0x1b9)]),_0x592774[_0x458f23(0x2a2)]&&(_0x5db83b[_0x458f23(0x14d)](),_0x5db83b[_0x458f23(0x378)](0x0,_0x18fa44[_0x458f23(0x38b)],_0x370ef1[_0x458f23(0x324)],_0x18fa44[_0x458f23(0x379)]),_0x5db83b[_0x458f23(0x2a2)]()),_0x18fa44[_0x458f23(0x19d)]&&_0x5db83b[_0x458f23(0x313)](0x0,_0x18fa44[_0x458f23(0x19d)]),_0x5c1bab[_0x458f23(0xf3)](_0x5db83b),_0x16aadb&&(this[_0x458f23(0x39e)]=_0xbb0e6c(_0x5c1bab,{'left':_0x370ef1[_0x458f23(0xe4)],'top':_0x370ef1['top']+_0x18fa44[_0x458f23(0x19d)]},_0x592774[_0x458f23(0x2a2)]?{'left':_0x370ef1[_0x458f23(0xe4)],'right':_0x370ef1[_0x458f23(0xe4)]+_0x370ef1[_0x458f23(0x324)],'top':_0x370ef1['top']+_0x18fa44[_0x458f23(0x38b)],'bottom':_0x370ef1['top']+_0x18fa44['clipTop']+_0x18fa44['clipHeight']}:void 0x0)),_0x5db83b[_0x458f23(0x18b)](),_0x5c1bab[_0x458f23(0x296)](),_0x59141e['dispose'](),_0x38fefb[_0x458f23(0x296)](),_0x475178[_0x458f23(0x296)]();}[_0x232df7(0x181)](_0x942f65,_0x19deba,_0x2893dd=!0x1){const _0x55f1dd=_0x232df7;if(!this[_0x55f1dd(0x346)])return this['makeDirty'](!0x1),this;let {width:_0x531569,height:_0x135128,left:_0x1ad463,top:_0x58a864}=this,_0x11e5b6=this[_0x55f1dd(0x213)]();if(_0x531569=_0x11e5b6[_0x55f1dd(0x324)],_0x135128=_0x11e5b6['height'],_0x1ad463=_0x11e5b6['left'],_0x58a864=_0x11e5b6[_0x55f1dd(0x1b9)],this['isRender'](_0x19deba)){let {top:_0xa3fb93,left:_0x38b46f,bottom:_0x3560be,right:_0x1ecb74}=_0x19deba[_0x55f1dd(0x38e)];if(_0x531569+this[_0x55f1dd(0x230)]+_0x1ad463<_0x38b46f||_0x1ecb74<_0x1ad463||_0x135128+this['strokeWidth']+_0x58a864<_0xa3fb93||_0x3560be<_0x58a864)return this;}let _0x55b9e7=_0x1ad463+_0x531569/0x2,_0x3dc64d=_0x58a864+_0x135128/0x2,_0x2d2822=this[_0x55f1dd(0x15f)][_0x55f1dd(0x27c)]();if(this[_0x55f1dd(0x27d)][_0x55f1dd(0x2f6)]){let _0x41a0b8=this[_0x55f1dd(0x289)](),_0x403a26=new _0x9667eb();_0x403a26[_0x55f1dd(0x2f0)]({..._0x41a0b8}),_0x2d2822=_0x403a26['getMatrix']();}return _0x942f65['save'](),this[_0x55f1dd(0x27d)][_0x55f1dd(0x2c9)][_0x55f1dd(0x1af)]===!0x0||_0x942f65[_0x55f1dd(0x15f)](_0x2d2822[0x0],_0x2d2822[0x1],_0x2d2822[0x2],_0x2d2822[0x3],_0x55b9e7,_0x3dc64d),this[_0x55f1dd(0x356)](_0x942f65,_0x19deba,_0x531569,_0x135128),_0x942f65['restore'](),this[_0x55f1dd(0x390)](!0x1),this;}[_0x232df7(0x364)](_0x5116aa){const _0x18947f=_0x232df7;let {left:_0x455f75,top:_0x12dea5,width:_0x78df0a,height:_0x530b3a}=this[_0x18947f(0x213)](),_0x32a93a=this['transform'][_0x18947f(0x27c)](),_0x44a575=_0x455f75+_0x78df0a/0x2,_0x14073f=_0x12dea5+_0x530b3a/0x2,_0x2b070c=new _0x9667eb([_0x32a93a[0x0],_0x32a93a[0x1],_0x32a93a[0x2],_0x32a93a[0x3],_0x44a575,_0x14073f]),_0xa568e7=this['getParent']();return(this[_0x18947f(0xe3)]&&(_0xa568e7==null?void 0x0:_0xa568e7[_0x18947f(0x398)])===_0x432f17[_0x18947f(0x34e)]?_0xa568e7[_0x18947f(0x21b)][_0x18947f(0x2a1)](_0x2b070c):_0x2b070c)[_0x18947f(0x354)]()[_0x18947f(0x30c)](_0x5116aa);}[_0x232df7(0x24e)](_0x5f04fc){const _0x456d3a=_0x232df7;let {left:_0x551146,top:_0x2012c5,width:_0x702b3,height:_0x3eec79}=this[_0x456d3a(0x213)](),_0x446f7b=_0x551146+_0x702b3/0x2,_0x5f0a80=_0x2012c5+_0x3eec79/0x2,_0x422a6e=this[_0x456d3a(0x15f)][_0x456d3a(0x27c)](),_0x38be7f=new _0x9667eb([_0x422a6e[0x0],_0x422a6e[0x1],_0x422a6e[0x2],_0x422a6e[0x3],_0x446f7b,_0x5f0a80]),_0x8aacf1=this[_0x456d3a(0x1e5)](),_0x3fa81e=(this[_0x456d3a(0xe3)]&&(_0x8aacf1==null?void 0x0:_0x8aacf1['classType'])===_0x432f17[_0x456d3a(0x34e)]?_0x8aacf1[_0x456d3a(0x21b)][_0x456d3a(0x2a1)](_0x38be7f):_0x38be7f)['invert']()[_0x456d3a(0x30c)](_0x5f04fc),_0x46deba=_0x702b3/0x2,_0x1b91d6=_0x3eec79/0x2,_0x3a402e=this[_0x456d3a(0x27d)][_0x456d3a(0x2c9)];return _0x3a402e&&_0x3a402e[_0x456d3a(0x25c)]()?_0x3a402e[_0x456d3a(0x318)](_0x3fa81e['x'],_0x3fa81e['y'],_0x702b3,_0x3eec79):_0x3fa81e['x']>=-_0x46deba-this[_0x456d3a(0x230)]/0x2&&_0x3fa81e['x']<=_0x46deba+this[_0x456d3a(0x230)]/0x2&&_0x3fa81e['y']>=-_0x1b91d6-this[_0x456d3a(0x230)]/0x2&&_0x3fa81e['y']<=_0x1b91d6+this[_0x456d3a(0x230)]/0x2;}[_0x232df7(0x296)](){const _0x45c739=_0x232df7;this['_formulaAnimation'][_0x45c739(0x296)](),this[_0x45c739(0x27d)]['shapeModel']=null,super[_0x45c739(0x296)]();}},Nr=class extends _0x147ce5{constructor(_0x4cdf04,_0x25fb0f){const _0x2e7093=_0x232df7;super(_0x4cdf04,_0x25fb0f),q(this,_0x2e7093(0x1f2),null),q(this,_0x2e7093(0x3a1),null),q(this,_0x2e7093(0x102),null),q(this,_0x2e7093(0x161),null),_0x25fb0f&&this[_0x2e7093(0x1da)](_0x25fb0f);}[_0x232df7(0xe5)](){const _0x5c832=_0x232df7;return{'unitId':this[_0x5c832(0x102)],'subUnitId':this[_0x5c832(0x161)],'drawingId':this[_0x5c832(0x1f2)]};}[_0x232df7(0x1da)](_0x3f6a1f){const _0x905c49=_0x232df7;_0x3f6a1f[_0x905c49(0x275)]!==void 0x0&&(this[_0x905c49(0x1f2)]=_0x3f6a1f[_0x905c49(0x275)]),_0x3f6a1f[_0x905c49(0x18d)]!==void 0x0&&(this[_0x905c49(0x3a1)]=_0x3f6a1f[_0x905c49(0x18d)]),_0x3f6a1f[_0x905c49(0x1e3)]!==void 0x0&&(this['_unitId']=_0x3f6a1f[_0x905c49(0x1e3)]),_0x3f6a1f['subUnitId']!==void 0x0&&(this[_0x905c49(0x161)]=_0x3f6a1f[_0x905c49(0x26c)]),this[_0x905c49(0x234)]({'width':_0x3f6a1f['width'],'height':_0x3f6a1f[_0x905c49(0x39a)]});}[_0x232df7(0x356)](_0x4bad0e){const _0x6cc66e=_0x232df7;_0x4a02a1[_0x6cc66e(0x1a8)](_0x4bad0e,{'radius':_0x4c61a8[_0x6cc66e(0x1a9)],'fill':_0x4c61a8['adjHandleFill'],'stroke':_0x4c61a8['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function Y(_0x52b93e,_0x4ab924){return function(_0x58f5a7,_0x3c5b9b){_0x4ab924(_0x58f5a7,_0x3c5b9b,_0x52b93e);};}function X(_0x3cd1b0,_0x53cfc6,_0x21771d,_0x18d847){const _0x30e0cc=_0x232df7;var _0x103c2d=arguments['length'],_0x241a4e=_0x103c2d<0x3?_0x53cfc6:_0x18d847===null?_0x18d847=Object[_0x30e0cc(0x150)](_0x53cfc6,_0x21771d):_0x18d847,_0x2654d2;if(typeof Reflect==_0x30e0cc(0x392)&&typeof Reflect[_0x30e0cc(0x2af)]==_0x30e0cc(0x1b4))_0x241a4e=Reflect[_0x30e0cc(0x2af)](_0x3cd1b0,_0x53cfc6,_0x21771d,_0x18d847);else{for(var _0x13e546=_0x3cd1b0[_0x30e0cc(0x333)]-0x1;_0x13e546>=0x0;_0x13e546--)(_0x2654d2=_0x3cd1b0[_0x13e546])&&(_0x241a4e=(_0x103c2d<0x3?_0x2654d2(_0x241a4e):_0x103c2d>0x3?_0x2654d2(_0x53cfc6,_0x21771d,_0x241a4e):_0x2654d2(_0x53cfc6,_0x21771d))||_0x241a4e);}return _0x103c2d>0x3&&_0x241a4e&&Object[_0x30e0cc(0x33a)](_0x53cfc6,_0x21771d,_0x241a4e),_0x241a4e;}let Z=class extends _0x2bb0e8{constructor(_0x229c70,_0x1fdbc7,_0xb6c89,_0x5d32a5,_0x231cea,_0x22f8b4){const _0x208107=_0x232df7;super(),this[_0x208107(0x11c)]=_0x229c70,this['_sheetsShapeService']=_0x1fdbc7,this[_0x208107(0x184)]=_0xb6c89,this['_imageIoService']=_0x5d32a5,this['_urlImageService']=_0x231cea,this[_0x208107(0x172)]=_0x22f8b4,q(this,_0x208107(0x119),new Map()),this[_0x208107(0x2db)](this['_shapeFormulaService'][_0x208107(0x2a7)]['subscribe'](_0x291999=>{const _0x2eafec=_0x208107;var _0x2caabe;(_0x2caabe=this[_0x2eafec(0x119)][_0x2eafec(0x14a)](this[_0x2eafec(0x2a8)](_0x291999[_0x2eafec(0x1e3)],_0x291999[_0x2eafec(0x26c)],_0x291999[_0x2eafec(0x275)])))==null||_0x2caabe[_0x2eafec(0x385)](_0x1bdfc1=>_0x1bdfc1[_0x2eafec(0x14c)](_0x291999[_0x2eafec(0x3a5)],_0x291999[_0x2eafec(0x16e)]));})),this[_0x208107(0x2db)](this['_drawingManagerService'][_0x208107(0x36d)]['subscribe'](_0x230728=>{const _0x4ca660=_0x208107;_0x230728[_0x4ca660(0x385)](_0x2f400c=>{const _0x2595ee=_0x4ca660;this[_0x2595ee(0x172)][_0x2595ee(0x23e)]({'unitId':_0x2f400c[_0x2595ee(0x1e3)],'subUnitId':_0x2f400c[_0x2595ee(0x26c)],'shapeId':_0x2f400c[_0x2595ee(0x36c)]}),this[_0x2595ee(0x119)][_0x2595ee(0x2a9)](this[_0x2595ee(0x2a8)](_0x2f400c[_0x2595ee(0x1e3)],_0x2f400c[_0x2595ee(0x26c)],_0x2f400c[_0x2595ee(0x36c)]));});}));}[_0x232df7(0x226)](_0x34589e,_0x263432,_0x1e0f92){const _0x3a2bc8=_0x232df7;let {transform:_0x3dea94,drawingType:_0x19d97b,srcRect:_0x2ffa35,prstGeom:_0x3e744c,groupId:_0x112118,unitId:_0x3a952b,subUnitId:_0x349a03,drawingId:_0x419791,isMultiTransform:_0x52b010,transforms:_0x271833,hidden:_0x4bdcb3,selectable:_0x191db2}=_0x34589e;if(_0x19d97b!==_0x190419[_0x3a2bc8(0x21d)]||!this[_0x3a2bc8(0x11c)][_0x3a2bc8(0xe2)]()||_0x3dea94==null)return;let _0xae63f9=this[_0x3a2bc8(0x11c)]['getDrawingEditable'](),_0x5c31a3=_0x52b010&&_0x271833?_0x271833:[_0x3dea94],_0x12039a=[];for(let _0x4dac68 of _0x5c31a3){let {left:_0x330461,top:_0x3920e0,width:_0xb34c72,height:_0x10f331,angle:_0xb66c46,flipX:_0x24992c,flipY:_0x2d9cec,skewX:_0x29aca2,skewY:_0x4d9723}=_0x4dac68,_0x3b68bc=_0x5c31a3[_0x3a2bc8(0x259)](_0x4dac68),_0x38cd5c=_0x3023e5({'unitId':_0x3a952b,'subUnitId':_0x349a03,'drawingId':_0x419791},_0x52b010?_0x3b68bc:void 0x0),_0x2d3ccc=_0x263432[_0x3a2bc8(0x3a9)](_0x38cd5c);if(_0x2d3ccc!=null){let _0x3369bc={'unitId':_0x3a952b,'subUnitId':_0x349a03,'shapeId':_0x419791};_0x2d3ccc instanceof J&&this[_0x3a2bc8(0x194)](_0x2d3ccc,_0x3369bc),_0x2d3ccc[_0x3a2bc8(0x234)]({'left':_0x330461,'top':_0x3920e0,'width':_0xb34c72,'height':_0x10f331,'angle':_0xb66c46,'flipX':_0x24992c,'flipY':_0x2d9cec,'skewX':_0x29aca2,'skewY':_0x4d9723});continue;}let _0x2cd0e7=this[_0x3a2bc8(0x11c)][_0x3a2bc8(0x2bf)](_0x3a952b,_0x349a03),_0x8207c0=_0x2cd0e7['indexOf'](_0x419791);if(_0x263432['getObjectIncludeInGroup'](_0x38cd5c)||!this[_0x3a2bc8(0x11c)]['getDrawingVisible']())continue;let _0x29eae4=this[_0x3a2bc8(0x3aa)][_0x3a2bc8(0x1cf)](_0x3a952b,_0x349a03,_0x419791);if(!_0x29eae4)continue;let _0x484a99=_0x52f76f(_0x29eae4['getShapeType']())?{..._0x16a405,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x16a405,_0x5145e6=_0x29eae4['getShapeData']()[_0x3a2bc8(0x2da)],_0x323924={'unitId':_0x3a952b,'subUnitId':_0x349a03,'shapeId':_0x419791};_0x5145e6&&this[_0x3a2bc8(0x172)][_0x3a2bc8(0x114)](_0x323924,_0x5145e6);let _0x374a73=new J(_0x38cd5c,{..._0x4dac68,'zIndex':_0x8207c0===-0x1?_0x2cd0e7['length']-0x1:_0x8207c0,'shapeModel':_0x29eae4,'localeService':this[_0x3a2bc8(0x184)],'shapeId':_0x419791,'unitId':_0x3a952b,'subUnitId':_0x349a03,'visible':_0x4bdcb3!==!0x0,'evented':_0x191db2!==!0x1,'formulaPresentation':_0x5145e6?this[_0x3a2bc8(0x172)][_0x3a2bc8(0x21f)](_0x323924):void 0x0,'animateFormulaPresentation':(_0x5145e6==null?void 0x0:_0x5145e6['animationEnabled'])!==!0x1,'transformerConfig':_0x484a99});if(_0x5145e6){let _0x288767=this['_formulaKey'](_0x3a952b,_0x349a03,_0x419791),_0x1e2588=this[_0x3a2bc8(0x119)][_0x3a2bc8(0x14a)](_0x288767)??new Set();_0x1e2588[_0x3a2bc8(0x19c)](_0x374a73),this[_0x3a2bc8(0x119)][_0x3a2bc8(0x2e6)](_0x288767,_0x1e2588);}_0x263432[_0x3a2bc8(0x23d)](_0x374a73,_0x4489b8),_0xae63f9&&_0x263432[_0x3a2bc8(0x363)](_0x374a73),_0x112118&&_0x4e0f39({'drawingId':_0x112118,'unitId':_0x3a952b,'subUnitId':_0x349a03},_0x374a73,_0x263432,this['_drawingManagerService']),_0x3e744c!=null&&_0x374a73['setPrstGeom'](_0x3e744c),_0x2ffa35!=null&&_0x374a73['setSrcRect'](_0x2ffa35);let _0x595fff=this[_0x3a2bc8(0x14e)](_0x374a73,_0x29eae4[_0x3a2bc8(0x1c7)]());if(_0x595fff){var _0x3de60a;_0x1e0f92==null||(_0x3de60a=_0x1e0f92['resourceCollector'])==null||_0x3de60a[_0x3a2bc8(0x19c)](_0x595fff);}_0x12039a[_0x3a2bc8(0x29a)](_0x374a73);}return _0x12039a;}[_0x232df7(0x2a8)](_0x180067,_0xd9425e,_0x398a4a){return _0x180067+'\x00'+_0xd9425e+'\x00'+_0x398a4a;}[_0x232df7(0x194)](_0x61425b,_0x32f246){const _0x5253d7=_0x232df7;let _0x435b7c=this[_0x5253d7(0x3aa)][_0x5253d7(0x1cf)](_0x32f246[_0x5253d7(0x1e3)],_0x32f246[_0x5253d7(0x26c)],_0x32f246[_0x5253d7(0x275)]),_0x21d4b9=_0x435b7c==null?void 0x0:_0x435b7c[_0x5253d7(0x1c7)]()[_0x5253d7(0x2da)],_0x355988=this[_0x5253d7(0x2a8)](_0x32f246['unitId'],_0x32f246['subUnitId'],_0x32f246[_0x5253d7(0x275)]);if(_0x21d4b9){this[_0x5253d7(0x172)][_0x5253d7(0x114)](_0x32f246,_0x21d4b9);let _0x1b0fe2=this[_0x5253d7(0x119)][_0x5253d7(0x14a)](_0x355988)??new Set();_0x1b0fe2[_0x5253d7(0x19c)](_0x61425b),this[_0x5253d7(0x119)]['set'](_0x355988,_0x1b0fe2);}else{var _0x38d365;this[_0x5253d7(0x172)][_0x5253d7(0x23e)](_0x32f246),(_0x38d365=this[_0x5253d7(0x119)][_0x5253d7(0x14a)](_0x355988))==null||_0x38d365[_0x5253d7(0x2a9)](_0x61425b);}_0x61425b['setFormulaPresentation'](_0x21d4b9?this['_shapeFormulaService'][_0x5253d7(0x21f)](_0x32f246):void 0x0,(_0x21d4b9==null?void 0x0:_0x21d4b9[_0x5253d7(0x16e)])!==!0x1);}[_0x232df7(0x306)](_0x2b87c7){const _0x373641=_0x232df7;let _0x3c9ff9=_0x2b87c7['shapeModel'][_0x373641(0x1c7)](),_0x27237a=_0x3c9ff9[_0x373641(0x33e)];!_0x27237a||_0x27237a[_0x373641(0xfc)]!==_0x44f004[_0x373641(0x25f)]||!_0x27237a['fillImageSource']?_0x2b87c7[_0x373641(0x35a)](void 0x0):this[_0x373641(0x14e)](_0x2b87c7,_0x3c9ff9);}['_loadShapePictureFill'](_0xc490f5,_0x254267){const _0x36cb29=_0x232df7;let _0x2d3ca4=_0x254267[_0x36cb29(0x33e)];if(!_0x2d3ca4||_0x2d3ca4['fillType']!==_0x44f004[_0x36cb29(0x25f)]||!_0x2d3ca4['fillImageSource'])return;let _0x417664=_0x2d3ca4[_0x36cb29(0x399)],_0x320afe=_0x2d3ca4[_0x36cb29(0x147)]??_0x456deb['URL'],_0x5f3ab7=this[_0x36cb29(0x30a)][_0x36cb29(0x1db)](_0x417664,_0x320afe);if(_0x5f3ab7)_0xc490f5['setFillImage'](_0x5f3ab7);else return this[_0x36cb29(0x347)](_0xc490f5,_0x417664,_0x320afe);}async[_0x232df7(0x347)](_0x23e47c,_0x4fe657,_0x25fe8b){const _0x345410=_0x232df7;let _0x6614f3;try{if(_0x25fe8b===_0x456deb['UUID'])_0x6614f3=await this[_0x345410(0x30a)][_0x345410(0x10e)](_0x4fe657);else{if(_0x25fe8b===_0x456deb['URL'])try{_0x6614f3=await this['_urlImageService']['getImage'](_0x4fe657);}catch{_0x6614f3=_0x4fe657;}else _0x6614f3=_0x4fe657;}}catch(_0x114dfa){console[_0x345410(0x2cf)](_0x345410(0x105),_0x114dfa);return;}await new Promise(_0x3f8b12=>{const _0x41c83d=_0x345410;let _0x5800c0=new window[(_0x41c83d(0x338))]();_0x5800c0[_0x41c83d(0x15e)]=()=>{const _0x3db9ed=_0x41c83d;this[_0x3db9ed(0x30a)][_0x3db9ed(0x394)](_0x4fe657,_0x25fe8b,_0x5800c0),_0x23e47c[_0x3db9ed(0x35a)](_0x5800c0),_0x3f8b12();},_0x5800c0[_0x41c83d(0x2eb)]=()=>{const _0x3cd923=_0x41c83d;console[_0x3cd923(0x2cf)](_0x3cd923(0x307),_0x4fe657),_0x3f8b12();},_0x5800c0[_0x41c83d(0x1ee)]=_0x6614f3;});}};Z=X([Y(0x0,_0x3deb35),Y(0x1,_0x229e82(_0x5c2303)),Y(0x2,_0x229e82(_0x16b0b7)),Y(0x3,_0xe46211),Y(0x4,_0x38d6c5),Y(0x5,_0x229e82(_0x907d04))],Z);let Pr=class extends _0x2bb0e8{constructor(_0x3ac1e4,_0x5dfd8c,_0x259a17,_0x4ec0d9,_0x1fad70,_0x240f58){const _0x458e6f=_0x232df7;super(),this[_0x458e6f(0x11c)]=_0x3ac1e4,this['_sheetsShapeService']=_0x5dfd8c,this[_0x458e6f(0x209)]=_0x259a17,this['_sheetDrawingShapeRenderController']=_0x4ec0d9,this[_0x458e6f(0x2d4)]=_0x1fad70,this[_0x458e6f(0x232)]=_0x240f58,q(this,_0x458e6f(0x362),null),q(this,_0x458e6f(0x102),null),q(this,'_subUnitId',null),q(this,'_activeShapeAdjustPointList',void 0x0),q(this,_0x458e6f(0x2b1),[]),q(this,'_baseShapeLeft',0x0),q(this,'_baseShapeTop',0x0),q(this,'_baseShapeWidth',0x0),q(this,'_baseShapeHeight',0x0),q(this,_0x458e6f(0x173),!0x1),q(this,'_activeAdjustInfo',void 0x0),q(this,_0x458e6f(0x1d8),void 0x0),q(this,_0x458e6f(0x30b),void 0x0),q(this,_0x458e6f(0x290),void 0x0),q(this,_0x458e6f(0x314),!0x1),this['_registerDrawingFocusChangeHandler'](),this[_0x458e6f(0x156)]();}[_0x232df7(0x393)](_0x301527,_0x2a84fb,_0x3bddca){const _0x391787=_0x232df7;let _0x471e35=this[_0x391787(0x3aa)]['getShapeModel'](_0x301527,_0x2a84fb,_0x3bddca);if(_0x471e35)return _0x471e35[_0x391787(0x158)]();}[_0x232df7(0x23a)](){const _0x4fb756=_0x232df7;this[_0x4fb756(0x163)]();}[_0x232df7(0x1cb)](){const _0x1af1ee=_0x232df7;this[_0x1af1ee(0x285)](!0x0);}[_0x232df7(0x1d7)](_0x474bc3){const _0x230a63=_0x232df7;this[_0x230a63(0x314)]=_0x474bc3;}[_0x232df7(0x260)](_0x4493d4,_0x2494ff,_0x44affb,_0x4efa3d){const _0x3fdfab=_0x232df7;let _0x2c6a8c=this['_sheetsShapeService'][_0x3fdfab(0x1cf)](_0x4493d4,_0x2494ff,_0x44affb);if(_0x2c6a8c)return _0x2c6a8c[_0x3fdfab(0x219)](_0x4efa3d);}[_0x232df7(0x190)](_0x2bbc4c=!0x1){const _0x979925=_0x232df7;if(this[_0x979925(0x102)]===null||this[_0x979925(0x161)]===null||this['_activeShapeId']===null)return;let _0x5edd94=this[_0x979925(0x209)]['getRenderUnitById'](this[_0x979925(0x102)]);if(!_0x5edd94||!_0x5edd94[_0x979925(0x18c)](_0x54a66d)[_0x979925(0x2ee)]())return;let {scene:_0x431965}=_0x5edd94,_0x7c0153={'unitId':this[_0x979925(0x102)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x979925(0x362)]},_0x421544=this[_0x979925(0x11c)][_0x979925(0x282)](_0x7c0153),{transform:_0x447072}=_0x421544;if(!_0x447072||_0x421544['drawingType']!==_0x190419['DRAWING_SHAPE'])return;let {left:_0x41f803,top:_0x49797f,width:_0x51e625,height:_0x138da3,flipX:_0x3d39c8,flipY:_0x59fcf5,angle:_0x35ef7d=0x0}=_0x447072;if(_0x41f803===void 0x0||_0x49797f===void 0x0)return;if(_0x2bbc4c){let _0x23bdfc=this[_0x979925(0x3aa)][_0x979925(0x1cf)](this[_0x979925(0x102)],this[_0x979925(0x161)],this[_0x979925(0x362)]);_0x23bdfc==null||_0x23bdfc[_0x979925(0x2bd)]({'width':_0x51e625??0x0,'height':_0x138da3??0x0}),this[_0x979925(0x23c)]=_0x23bdfc==null?void 0x0:_0x23bdfc['getDrawingPoints']();}let _0x43ade3=this['_activeShapeAdjustPointList'];for(let _0x53a557=0x0;_0x53a557<_0x43ade3[_0x979925(0x333)];_0x53a557++){let _0x2500b8=_0x43ade3[_0x53a557],_0x10ffbb=_0x2500b8['x'],_0x5915ee=_0x2500b8['y'];if(_0x3d39c8&&(_0x10ffbb=(_0x51e625||0x0)-_0x10ffbb),_0x59fcf5&&(_0x5915ee=(_0x138da3||0x0)-_0x5915ee),_0x35ef7d!==0x0){let _0x58bcfa=(_0x51e625||0x0)/0x2,_0x25f66d=(_0x138da3||0x0)/0x2,_0x1b6ea4=_0x35ef7d*Math['PI']/0xb4,_0x492bba=Math['cos'](_0x1b6ea4),_0xb12fd0=Math[_0x979925(0x159)](_0x1b6ea4),_0x217d5d=_0x10ffbb-_0x58bcfa,_0x2a508b=_0x5915ee-_0x25f66d;_0x10ffbb=_0x58bcfa+(_0x217d5d*_0x492bba-_0x2a508b*_0xb12fd0),_0x5915ee=_0x25f66d+(_0x217d5d*_0xb12fd0+_0x2a508b*_0x492bba);}let _0x46ae2d={'x':_0x10ffbb,'y':_0x5915ee,'adjName':_0x2500b8[_0x979925(0x18d)]};this['_addShapeAdjustControl'](_0x431965,_0x46ae2d,_0x46ae2d[_0x979925(0x18d)],_0x41f803,_0x49797f,this['_unitId'],this[_0x979925(0x161)]);}}[_0x232df7(0x285)](_0x338706=!0x1){const _0x5794a7=_0x232df7;_0x338706&&(this[_0x5794a7(0x163)](),this[_0x5794a7(0x190)](_0x338706));}['_addShapeAdjustControl'](_0x445315,_0x52f976,_0x3935a6,_0x19b210,_0x1a9b7a,_0x40f77b,_0x31b8d3){const _0x59ea3b=_0x232df7;if(!this[_0x59ea3b(0x362)])return;let _0x5b2b87=_0x445315['getObjectIncludeInGroup'](_0x59ea3b(0x255)+this[_0x59ea3b(0x362)]+'-'+_0x3935a6);if(_0x5b2b87){_0x5b2b87[_0x59ea3b(0x234)]({'left':_0x52f976['x']+_0x19b210-_0x4c61a8[_0x59ea3b(0x1a9)],'top':_0x52f976['y']+_0x1a9b7a-_0x4c61a8[_0x59ea3b(0x1a9)]});return;}let _0x441d60={'left':_0x52f976['x']+_0x19b210-_0x4c61a8[_0x59ea3b(0x1a9)],'top':_0x52f976['y']+_0x1a9b7a-_0x4c61a8[_0x59ea3b(0x1a9)],'adjName':_0x3935a6,'shapeId':this[_0x59ea3b(0x362)],'unitId':_0x40f77b,'subUnitId':_0x31b8d3,'width':_0x4c61a8[_0x59ea3b(0x1a9)]+0x8,'height':_0x4c61a8[_0x59ea3b(0x1a9)]+0x8,'zIndex':_0x4489b8+0x1,'evented':!0x0},_0x2be4a3=new Nr(_0x59ea3b(0x255)+this['_activeShapeId']+'-'+_0x3935a6,_0x441d60);this['_shapes'][_0x59ea3b(0x29a)](_0x2be4a3),this[_0x59ea3b(0x2ac)](_0x2be4a3,_0x445315,_0x3935a6),_0x445315[_0x59ea3b(0x23d)](_0x2be4a3,_0x4489b8+0x1);}[_0x232df7(0x163)](){const _0x2bf80d=_0x232df7;this['_shapes'][_0x2bf80d(0x333)]!==0x0&&(this[_0x2bf80d(0x2b1)][_0x2bf80d(0x385)](_0xa504eb=>{const _0x1559ce=_0x2bf80d;_0xa504eb[_0x1559ce(0x296)]();}),this[_0x2bf80d(0x2b1)]=[]);}[_0x232df7(0xea)](){const _0x39616d=_0x232df7;this[_0x39616d(0x190)]();}[_0x232df7(0x1c6)](_0x10b2ed,_0xeeea9){const _0x48b033=_0x232df7;var _0x6c4595;let _0x59d44a={'x':0x0,'y':0x0};if(!_0x10b2ed||!_0xeeea9)return _0x59d44a;let _0x41d4ec=this[_0x48b033(0x209)]['getRenderUnitById'](_0x10b2ed);if(!_0x41d4ec||!_0x41d4ec['with'](_0x54a66d)[_0x48b033(0x38a)](_0xeeea9))return _0x59d44a;let _0x335193=_0x41d4ec[_0x48b033(0x18c)](_0x5ccab7),_0x11a97a=_0x335193==null?void 0x0:_0x335193[_0x48b033(0x1e9)]();if(!_0x11a97a)return _0x59d44a;let _0x3f74c1=(_0x6c4595=this['_univerInstanceService']['getUnit'](_0x10b2ed))==null?void 0x0:_0x6c4595[_0x48b033(0x339)](_0xeeea9);if(!_0x3f74c1)return _0x59d44a;let _0xc9a2b8=_0x56d9fe(_0x11a97a['sheetViewStartRow'],_0x11a97a[_0x48b033(0x3ab)],_0x41d4ec[_0x48b033(0x381)],_0x3f74c1);return _0xc9a2b8?{'x':_0xc9a2b8[_0x48b033(0x397)],'y':_0xc9a2b8[_0x48b033(0x125)]}:_0x59d44a;}[_0x232df7(0x1d9)](_0x2b5e57,_0x256dd5){const _0x281ee4=_0x232df7;var _0x4d6644;let _0x26b29c=(_0x4d6644=this[_0x281ee4(0x2d4)][_0x281ee4(0x2e7)](_0x2b5e57))==null?void 0x0:_0x4d6644[_0x281ee4(0x339)](_0x256dd5);return(_0x26b29c==null?void 0x0:_0x26b29c['getZoomRatio']())??0x1;}[_0x232df7(0x2ac)](_0x149a10,_0x23c93a,_0x1b26a8){const _0x380635=_0x232df7;this[_0x380635(0x2db)](_0x169987(_0x149a10[_0x380635(0x197)][_0x380635(0x2e4)]((_0x31ba73,_0x42d2d3)=>{const _0x32f459=_0x380635;var _0x21b0a1,_0x47baa0,_0x39860e,_0xac7d09;let _0x5d5b74=_0x149a10[_0x32f459(0xe5)]();this[_0x32f459(0x192)]=this['_getShapeAdjustInfosById'](_0x5d5b74[_0x32f459(0x1e3)],_0x5d5b74[_0x32f459(0x26c)],_0x5d5b74[_0x32f459(0x36c)],_0x1b26a8),this[_0x32f459(0x1d8)]=this[_0x32f459(0x3aa)]['getShapeModel'](_0x5d5b74[_0x32f459(0x1e3)],_0x5d5b74['subUnitId'],_0x5d5b74[_0x32f459(0x36c)]);let _0x43b04c=this[_0x32f459(0x11c)][_0x32f459(0x282)]({'unitId':this[_0x32f459(0x102)],'subUnitId':this[_0x32f459(0x161)],'drawingId':this[_0x32f459(0x362)]}),{transform:_0x29196c}=_0x43b04c;if(_0x29196c){let {left:_0x3d9d0c,top:_0x1e0ca9,width:_0x11be6f,height:_0x32349d}=_0x29196c;this[_0x32f459(0x112)]=_0x3d9d0c||0x0,this[_0x32f459(0x288)]=_0x1e0ca9||0x0,this[_0x32f459(0x155)]=_0x11be6f||0x0,this[_0x32f459(0x1f6)]=_0x32349d||0x0;}let _0x93b115=!!((_0x21b0a1=_0x43b04c['transform'])!=null&&_0x21b0a1[_0x32f459(0x270)]),_0x4661b6=!!((_0x47baa0=_0x43b04c[_0x32f459(0x15f)])!=null&&_0x47baa0[_0x32f459(0x25e)]),_0x56d768=((_0x39860e=_0x43b04c['transform'])==null?void 0x0:_0x39860e['angle'])||0x0;this[_0x32f459(0x173)]=!0x0,_0x23c93a[_0x32f459(0x3a2)]();let _0x2e5f87={...((_0xac7d09=this[_0x32f459(0x192)])==null?void 0x0:_0xac7d09['currentAdjustValues'])??{}};this['_adjHandlerPointerMove']=_0x23c93a['onPointerMove$'][_0x32f459(0x2e4)]((_0x119fd5,_0x4af716)=>{const _0xf5183b=_0x32f459;if(!this[_0xf5183b(0x173)])return;let {offsetX:_0x1342a6,offsetY:_0x2d949e}=_0x119fd5,_0x3885a6=this['_activeAdjustInfo'];if(this[_0xf5183b(0x1d8)]&&_0x3885a6){_0x23c93a[_0xf5183b(0x3a2)](),_0x23c93a[_0xf5183b(0x331)](_0x1d110f[_0xf5183b(0x1a7)]);let _0x2524e8={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0xf5183b(0x1f6)]},_0x35efbe=this[_0xf5183b(0x1c6)](this[_0xf5183b(0x102)],this['_subUnitId']),_0x52cc17=this[_0xf5183b(0x1d9)](this['_unitId'],this[_0xf5183b(0x161)]),_0x25d8fc=_0x1342a6/_0x52cc17+_0x35efbe['x']-this[_0xf5183b(0x112)],_0x55e7b9=_0x2d949e/_0x52cc17+_0x35efbe['y']-this[_0xf5183b(0x288)];if(_0x56d768!==0x0){let _0x2d52b8=this[_0xf5183b(0x155)]/0x2,_0x24c7e6=this[_0xf5183b(0x1f6)]/0x2,_0x4a43c0=_0x56d768*Math['PI']/0xb4,_0x47033f=Math[_0xf5183b(0x2cd)](_0x4a43c0),_0x4679a4=Math[_0xf5183b(0x159)](_0x4a43c0),_0x2e2fa1=_0x25d8fc-_0x2d52b8,_0xb746c4=_0x55e7b9-_0x24c7e6;_0x25d8fc=_0x2d52b8+(_0x2e2fa1*_0x47033f+_0xb746c4*_0x4679a4),_0x55e7b9=_0x24c7e6+(-_0x2e2fa1*_0x4679a4+_0xb746c4*_0x47033f);}_0x93b115&&(_0x25d8fc=this[_0xf5183b(0x155)]-_0x25d8fc),_0x4661b6&&(_0x55e7b9=this['_baseShapeHeight']-_0x55e7b9);let _0x434b2e={'x':_0x25d8fc,'y':_0x55e7b9},_0x5d6c39=this[_0xf5183b(0x1d8)]['calcAdjValues'](_0x2524e8,_0x434b2e,_0x3885a6,_0x93b115,_0x4661b6);if(Object[_0xf5183b(0x1be)](_0x5d6c39)[_0xf5183b(0x333)]===0x0)return;for(let [_0x7d9e0d,_0x2d09a9]of Object[_0xf5183b(0x17e)](_0x5d6c39))this['_activeShapeModel'][_0xf5183b(0x359)](_0x7d9e0d,_0x2d09a9);this[_0xf5183b(0x1d8)][_0xf5183b(0x2bd)]({'width':this['_baseShapeWidth'],'height':this[_0xf5183b(0x1f6)]});let _0x1a3043=this[_0xf5183b(0x11c)]['getDrawingByParam']({'unitId':_0x5d5b74['unitId'],'subUnitId':_0x5d5b74[_0xf5183b(0x26c)],'drawingId':_0x5d5b74[_0xf5183b(0x36c)]});_0x1a3043&&(this[_0xf5183b(0x199)]['renderDrawingShape'](_0x1a3043,_0x23c93a),this[_0xf5183b(0x23c)]=this[_0xf5183b(0x393)](_0x5d5b74[_0xf5183b(0x1e3)],_0x5d5b74[_0xf5183b(0x26c)],_0x5d5b74[_0xf5183b(0x36c)]),this['_updateAdjustControlPositions']());}_0x4af716['stopPropagation']();}),this[_0x32f459(0x290)]=_0x23c93a[_0x32f459(0x2c7)][_0x32f459(0x2e4)]((_0xf61764,_0x242d2e)=>{const _0x3ede22=_0x32f459;this[_0x3ede22(0x30b)][_0x3ede22(0x1d2)](),this[_0x3ede22(0x290)][_0x3ede22(0x1d2)](),_0x23c93a[_0x3ede22(0x2fe)]();let _0x5e44ba=this[_0x3ede22(0x192)];if(_0x5e44ba){let _0x5a0978=_0x5d5b74[_0x3ede22(0x1e3)],_0x520c2a=_0x5d5b74['subUnitId'],_0x3f598f=_0x5d5b74['drawingId'],_0x2bd578={};for(let _0x4cbb5d of Object[_0x3ede22(0x1be)](_0x5e44ba[_0x3ede22(0x166)])){var _0x3757df;let _0x6861b8=(_0x3757df=this[_0x3ede22(0x1d8)])==null?void 0x0:_0x3757df['getAdjustValueByName'](_0x4cbb5d);_0x6861b8!==void 0x0&&(_0x2bd578[_0x4cbb5d]=_0x6861b8);}Object[_0x3ede22(0x1be)](_0x2bd578)[_0x3ede22(0x333)]>0x0&&Dr(this[_0x3ede22(0x232)],_0x5a0978,_0x520c2a,_0x3f598f,{'oldShapeData':{'adjustValues':_0x2e5f87}},{'adjustValues':_0x2bd578});}this[_0x3ede22(0x192)]=void 0x0,this[_0x3ede22(0x1d8)]=void 0x0,this[_0x3ede22(0x173)]=!0x1,_0x242d2e[_0x3ede22(0x345)](),_0x23c93a['enableObjectsEvent']();}),_0x42d2d3['stopPropagation']();})));}['_registerDrawingMoveHandler'](){const _0x135cf2=_0x232df7;let _0x4f5a40=this[_0x135cf2(0x2d4)]['getCurrentTypeOfUnit$'](_0xe0c4a6[_0x135cf2(0x277)]);this[_0x135cf2(0x2db)](_0x4f5a40['pipe'](_0x4faa1d(_0x534568=>_0x534568?_0x534568[_0x135cf2(0xe1)][_0x135cf2(0x16f)](_0x4faa1d(_0x916f5=>{const _0x23b2b6=_0x135cf2;if(!_0x916f5)return _0x5f31a2;let _0x279bc1=_0x534568[_0x23b2b6(0x3a3)](),_0x9f933a=this[_0x23b2b6(0x209)][_0x23b2b6(0x124)](_0x279bc1),_0x36f675=_0x9f933a==null?void 0x0:_0x9f933a[_0x23b2b6(0x381)];return _0x36f675?_0x24a70f(_0x36f675):_0x5f31a2;})):_0x5f31a2))[_0x135cf2(0x268)](_0xc2eeaf=>{const _0x2648f8=_0x135cf2;let _0x149120=_0xc2eeaf[_0x2648f8(0x372)]();this[_0x2648f8(0x2db)](_0xc2eeaf[_0x2648f8(0x2c6)]['subscribeEvent'](()=>{const _0x4414e9=_0x2648f8;this[_0x4414e9(0x314)];})),this[_0x2648f8(0x2db)](_0x149120[_0x2648f8(0x22f)][_0x2648f8(0x268)](_0x2a3b01=>{const _0x363bf5=_0x2648f8;let {objects:_0x2ddc6c}=_0x2a3b01;this[_0x363bf5(0x190)](),_0x2ddc6c!==null&&_0x2ddc6c[_0x363bf5(0x292)]===0x1&&_0x2ddc6c[_0x363bf5(0x212)]()['next']()[_0x363bf5(0x30f)]instanceof J&&this['setShouldShowAdjust'](!0x0);})),this['disposeWithMe'](_0x149120[_0x2648f8(0x2fd)][_0x2648f8(0x268)](()=>{const _0x59b219=_0x2648f8;this['_isShouldShowDrawingShapeAdjust']&&this[_0x59b219(0x163)]();})),this[_0x2648f8(0x2db)](_0xc2eeaf[_0x2648f8(0x2c7)][_0x2648f8(0x2e4)](()=>{const _0x78dea0=_0x2648f8;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x78dea0(0x1d7)](!0x1),this['_createShapeAdjustControls']());})),this[_0x2648f8(0x2db)](_0x149120[_0x2648f8(0x334)][_0x2648f8(0x268)](()=>{const _0x5bbe16=_0x2648f8;this[_0x5bbe16(0x102)]&&this['_subUnitId']&&this[_0x5bbe16(0x362)]&&this[_0x5bbe16(0x11c)]['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this[_0x5bbe16(0x161)],'drawingId':this[_0x5bbe16(0x362)]})&&(this['_activeShapeAdjustPointList']=this[_0x5bbe16(0x393)](this[_0x5bbe16(0x102)],this[_0x5bbe16(0x161)],this[_0x5bbe16(0x362)]),this[_0x5bbe16(0xea)]());}));}));}[_0x232df7(0x1f0)](){const _0x1b09f1=_0x232df7;this['disposeWithMe'](this[_0x1b09f1(0x232)]['onCommandExecuted'](_0x24e4c5=>{const _0x39ba2b=_0x1b09f1;if(_0x24e4c5['id']!==_0x4af43a['id'])return;let {unitId:_0x451749,subUnitId:_0x5a38c5,shapeId:_0x8acede}=_0x24e4c5[_0x39ba2b(0x1aa)];_0x451749===this['_unitId']&&_0x5a38c5===this[_0x39ba2b(0x161)]&&_0x8acede===this[_0x39ba2b(0x362)]&&this[_0x39ba2b(0x1cb)]();})),this[_0x1b09f1(0x2db)](this[_0x1b09f1(0x11c)][_0x1b09f1(0x19a)][_0x1b09f1(0x268)](_0x817b44=>{const _0x596674=_0x1b09f1;if(_0x817b44['length']===0x1){let _0x3725fb=_0x817b44[0x0];if(_0x3725fb[_0x596674(0x183)]===_0x190419[_0x596674(0x21d)]&&this[_0x596674(0x2d4)][_0x596674(0xef)](_0x3725fb[_0x596674(0x1e3)])===_0xe0c4a6[_0x596674(0x277)]){this[_0x596674(0x362)]=_0x3725fb['drawingId'];let {unitId:_0x47f8bb,subUnitId:_0x3a4ced}=_0x3725fb;this[_0x596674(0x23c)]=this['_getShapeAdjustPointListById'](_0x47f8bb,_0x3a4ced,this[_0x596674(0x362)]),this[_0x596674(0x102)]=_0x47f8bb,this['_subUnitId']=_0x3a4ced,this[_0x596674(0x163)](),this[_0x596674(0x190)]();return;}}this[_0x596674(0x362)]=null,this[_0x596674(0x23c)]=void 0x0,this[_0x596674(0x102)]=null,this[_0x596674(0x161)]=null,this[_0x596674(0x163)]();})),this[_0x1b09f1(0x2db)](this[_0x1b09f1(0x11c)][_0x1b09f1(0x274)][_0x1b09f1(0x268)](_0x52f084=>{const _0x3d8733=_0x1b09f1;if(_0x52f084['length']===0x1){var _0x3ca95c;let _0x2256bd=_0x52f084[0x0];((_0x3ca95c=this[_0x3d8733(0x11c)]['getDrawingByParam'](_0x2256bd))==null?void 0x0:_0x3ca95c[_0x3d8733(0x183)])===_0x190419[_0x3d8733(0x21d)]&&this[_0x3d8733(0x285)](!0x0);}})),this[_0x1b09f1(0x2db)](this[_0x1b09f1(0x11c)][_0x1b09f1(0x36d)][_0x1b09f1(0x268)](_0x53365e=>{const _0x55ff33=_0x1b09f1;for(let _0x2c8469 of _0x53365e)this['_activeShapeId']===_0x2c8469['drawingId']&&(this[_0x55ff33(0x362)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x55ff33(0x102)]=null,this[_0x55ff33(0x161)]=null,this[_0x55ff33(0x163)]());}));}};Pr=X([Y(0x0,_0x3deb35),Y(0x1,_0x229e82(_0x5c2303)),Y(0x2,_0x229e82(_0x422c1e)),Y(0x3,_0x229e82(Z)),Y(0x4,_0x304294),Y(0x5,_0x1b156e)],Pr);const Fr={'id':'drawing.operation.set-drawing-active','type':_0x33172f[_0x232df7(0x2ab)],'handler':(_0x11a35d,_0x571396)=>{const _0x5ebff2=_0x232df7;let _0x2cf874=_0x11a35d['get'](_0x3deb35),_0xc1988=_0x11a35d[_0x5ebff2(0x14a)](_0x422c1e),_0x4946b6=_0x11a35d[_0x5ebff2(0x14a)](Pr);if(_0x571396==null)return!0x0;if(_0x571396[_0x5ebff2(0x333)]>0x0){var _0x31ffde;let _0x1c73b2=(_0x31ffde=_0xc1988[_0x5ebff2(0x124)](_0x571396[0x0][_0x5ebff2(0x1e3)]))==null?void 0x0:_0x31ffde[_0x5ebff2(0x381)];if(_0x1c73b2){let {unitId:_0x32f9a7,subUnitId:_0x59f826,drawingId:_0x237402}=_0x571396[0x0],_0xe3816f=_0x3023e5({'unitId':_0x32f9a7,'subUnitId':_0x59f826,'drawingId':_0x237402},void 0x0),_0x350e6d=_0x1c73b2[_0x5ebff2(0x3a9)](_0xe3816f);if(_0x350e6d){var _0x4c20c9;(_0x4c20c9=_0xc1988['getRenderUnitById'](_0x571396[0x0][_0x5ebff2(0x1e3)]))==null||(_0x4c20c9=_0x4c20c9['scene'][_0x5ebff2(0x122)]())==null||_0x4c20c9[_0x5ebff2(0x2e0)](_0x350e6d);}}_0x2cf874['focusDrawing'](_0x571396),_0x4946b6[_0x5ebff2(0x1d7)](!0x1);}return!0x0;}},Ir={'type':_0x33172f[_0x232df7(0xfe)],'id':_0x232df7(0x1bf),'handler':async(_0x1516e3,_0x45d3e2)=>{const _0x2dbde1=_0x232df7;let _0x251d9a=_0x2dc1b6(_0x1516e3[_0x2dbde1(0x14a)](_0x304294));if(!_0x251d9a)return!0x1;let _0x226d0f=_0x1516e3['get'](_0x22a39b)['getCurrentLastSelection']();if(!_0x226d0f)return!0x1;let _0xf28bd=_0x1516e3[_0x2dbde1(0x14a)](_0x1b156e),{unitId:_0x43e99d,subUnitId:_0x398653}=_0x251d9a,{value:_0x13e8bd,enhanceParams:_0x19a822}=_0x45d3e2,{range:_0x531388}=_0x226d0f,_0x2312f9={'unitId':_0x43e99d,'subUnitId':_0x398653,'shapeType':_0x13e8bd,'range':_0x531388,'shapeId':_0x3a0ce3()};if(_0x19a822){let _0x2ec111=_0x52f76f(_0x13e8bd),_0x4b6b7b=_0x13e8bd===_0xe73d9c[_0x2dbde1(0x200)];_0x2ec111&&(_0x19a822[_0x2dbde1(0xed)]||_0x19a822['endArrow'])&&(_0x2312f9[_0x2dbde1(0x1b6)]={'ln':{'startArrow':_0x19a822[_0x2dbde1(0xed)]?{'type':_0x152eab[_0x2dbde1(0x246)],'size':_0x1dac15[_0x2dbde1(0x1bc)]}:void 0x0,'endArrow':_0x19a822[_0x2dbde1(0x305)]?{'type':_0x152eab[_0x2dbde1(0x246)],'size':_0x1dac15['Large']}:void 0x0}}),_0x4b6b7b&&(_0x19a822[_0x2dbde1(0x143)]||_0x19a822['vertical'])&&(_0x2312f9[_0x2dbde1(0x1b6)]=_0x25f18f({'fill':{'fillType':_0x44f004[_0x2dbde1(0x276)],'color':_0x2dbde1(0x1f1)},'isHorizontal':!!_0x19a822['horizontal'],'stroke':{'lineStrokeType':_0x5053e4[_0x2dbde1(0x1e7)],'width':0x1,'color':_0x2dbde1(0x1f8)}}));}let _0x432df1=_0xf28bd['syncExecuteCommand'](_0x143510['id'],_0x2312f9);return setTimeout(()=>{const _0x3628ec=_0x2dbde1;_0xf28bd[_0x3628ec(0x286)](Fr['id'],[{'unitId':_0x43e99d,'subUnitId':_0x398653,'drawingId':_0x2312f9[_0x3628ec(0x275)]}]);},0xc8),_0x432df1;}},Lr=_0x232df7(0x1c8),Rr='sheet.shape.object-list.panel',zr=_0x232df7(0x377),Br=_0x232df7(0x2a6),Vr=_0x20e235(_0x232df7(0x31e)),Hr=_0x232df7(0x301),Ur={'id':_0x232df7(0x1de),'type':_0x33172f[_0x232df7(0xfe)],'handler':(_0x320947,_0x2d147f)=>{const _0x13b99e=_0x232df7;let _0x5b2874=_0x320947['get'](_0x5c788d),_0xf8545d=_0x320947[_0x13b99e(0x14a)](_0x16b0b7),_0x27a566=_0x320947[_0x13b99e(0x14a)](_0x304294),_0xfe39f5=_0x320947[_0x13b99e(0x14a)](_0x1b156e);return _0x2dc1b6(_0x27a566)?(_0x2d147f==null?void 0x0:_0x2d147f[_0x13b99e(0x30f)])===_0x13b99e(0x384)?(_0x5b2874[_0x13b99e(0x384)](Rr),!0x0):(_0x5b2874[_0x13b99e(0x22b)]({'id':Rr,'header':{'title':_0xf8545d['t'](_0x13b99e(0x1fe))},'children':{'label':Rr},'onClose':()=>{const _0x20e022=_0x13b99e;_0xfe39f5[_0x20e022(0x325)](_0x2b2ab1['id'],[]);},'width':0x168}),!0x0):!0x1;}},Wr={'type':_0x33172f['OPERATION'],'id':_0x232df7(0x367),'handler'(){return!0x0;}};function Gr(_0x3fe6ef){const _0x278738=_0x232df7;let _0x4e712a=_0x3fe6ef[_0x278738(0x14a)](_0x3deb35)[_0x278738(0x310)](),_0xf4f629=_0x4e712a[_0x278738(0x333)]===0x1?_0x4e712a[0x0]:null;if(!_0xf4f629||_0xf4f629[_0x278738(0x183)]!==_0x190419[_0x278738(0x21d)])return null;let _0x5721e6=_0x3fe6ef['get'](_0x5c2303),_0x5e7811=_0x5721e6[_0x278738(0x280)](_0xf4f629[_0x278738(0x1e3)],_0xf4f629[_0x278738(0x26c)],_0xf4f629['drawingId']),_0xe56d2b=_0x5721e6['getShapeDataById'](_0xf4f629[_0x278738(0x1e3)],_0xf4f629['subUnitId'],_0xf4f629[_0x278738(0x36c)]);return _0x5e7811===void 0x0||!_0xe56d2b?null:{'drawing':_0xf4f629,'shapeData':_0xe56d2b,'shapeType':_0x5e7811};}const Kr={'id':_0x232df7(0x261),'type':_0x33172f[_0x232df7(0x2ab)],'handler':(_0x3f0c12,_0xf5892a)=>{const _0x3d413a=_0x232df7;let _0x481af0=Gr(_0x3f0c12),_0x2152f9=_0xff4b3b((_0xf5892a==null?void 0x0:_0xf5892a[_0x3d413a(0x149)])??(_0xf5892a==null?void 0x0:_0xf5892a[_0x3d413a(0x30f)])??'');if(!_0x481af0||!_0x2152f9||_0x2152f9['type']!==_0x11da62(_0x481af0[_0x3d413a(0x1b6)]))return!0x1;let _0x55640=_0x413e75(_0x481af0['shapeData'],_0x2152f9);if(!_0x55640)return!0x1;let {drawing:_0x5641cb}=_0x481af0;return _0x3f0c12[_0x3d413a(0x14a)](_0x1b156e)['executeCommand'](K['id'],{'unitId':_0x5641cb[_0x3d413a(0x1e3)],'subUnitId':_0x5641cb[_0x3d413a(0x26c)],'shapeId':_0x5641cb[_0x3d413a(0x36c)],'shapeData':_0x55640,'oldShapeJSON':{'oldShapeData':_0x481af0[_0x3d413a(0x1b6)]}});}},qr={'id':_0x232df7(0x304),'type':_0x33172f[_0x232df7(0x2ab)],'handler':(_0x223fff,_0x373a0e)=>{const _0x102ded=_0x232df7;let _0x3d3dd9=Gr(_0x223fff),_0x491781=(_0x373a0e==null?void 0x0:_0x373a0e[_0x102ded(0x15b)])??(_0x373a0e==null?void 0x0:_0x373a0e[_0x102ded(0x30f)]);if(!_0x3d3dd9||!_0x491781||_0x52f76f(_0x3d3dd9[_0x102ded(0x15b)])||_0x52f76f(_0x491781))return!0x1;let _0x4ae69a=_0x294ee8(_0x3d3dd9[_0x102ded(0x1b6)],_0x491781);if(!_0x4ae69a)return!0x1;let {drawing:_0x53e4f6}=_0x3d3dd9;return _0x223fff[_0x102ded(0x14a)](_0x1b156e)[_0x102ded(0x286)](K['id'],{'unitId':_0x53e4f6[_0x102ded(0x1e3)],'subUnitId':_0x53e4f6[_0x102ded(0x26c)],'shapeId':_0x53e4f6[_0x102ded(0x36c)],'shapeType':_0x491781,'shapeData':_0x4ae69a,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x3d3dd9[_0x102ded(0x15b)],'oldShapeData':_0x3d3dd9[_0x102ded(0x1b6)]}});}};let Q=class extends _0x2bb0e8{constructor(_0x51b5d5,_0x505cf4){const _0x177d10=_0x232df7;super(),this[_0x177d10(0x11f)]=_0x51b5d5,this[_0x177d10(0x11c)]=_0x505cf4,this[_0x177d10(0x2aa)](),this[_0x177d10(0x11f)][_0x177d10(0x1ff)](!0x0),this[_0x177d10(0x2db)]({'dispose':()=>this[_0x177d10(0x11f)][_0x177d10(0x1ff)](!0x1)});}[_0x232df7(0x2aa)](){const _0x48b3ad=_0x232df7;let _0x1c7bb2=this['_clipService'],_0x23d64d=new Map(),_0x9f443a=_0x1c7bb2[_0x48b3ad(0x185)]((_0x49c94d,_0x2b9e80,_0x9a5d42,_0x8e2228,_0x54b4a3)=>{const _0x10a6da=_0x48b3ad;let _0x5f3d12=_0x2b9e80;if(_0x5f3d12===_0xe73d9c[_0x10a6da(0x374)]||_0x2b9e80===_0x10a6da(0x27e))return!0x1;try{let _0x552634=_0x23d64d['get'](_0x2b9e80);return _0x552634||(_0x552634=new _0x243526(_0x5f3d12,_0x10a6da(0x111)+_0x2b9e80),_0x23d64d['set'](_0x2b9e80,_0x552634)),_0x552634[_0x10a6da(0x28d)](),_0x54b4a3&&Object[_0x10a6da(0x1be)](_0x54b4a3)[_0x10a6da(0x333)]>0x0&&_0x552634['setShapeData']({'adjustValues':_0x54b4a3},!0x0),_0x552634['updateContext']({'width':_0x9a5d42,'height':_0x8e2228}),_0x552634['buildClipPath'](_0x49c94d,{'left':0x0,'top':0x0,'width':_0x9a5d42,'height':_0x8e2228});}catch{return!0x1;}});this['disposeWithMe'](_0x9f443a),this[_0x48b3ad(0x2db)]({'dispose':()=>_0x23d64d[_0x48b3ad(0x2b3)]()});}[_0x232df7(0x1ca)](_0x476b77,_0x5dee86,_0x995d17,_0x5137d6,_0x1d65d6){const _0x2ac8f4=_0x232df7;let _0xba183=this['_drawingManagerService']['getDrawingData'](_0x476b77,_0x5dee86);if(!_0xba183[_0x995d17])return;let _0xd4de59={..._0xba183[_0x995d17],'prstGeom':_0x5137d6,'adjustValues':_0x1d65d6};this[_0x2ac8f4(0x11c)][_0x2ac8f4(0x373)]([_0xd4de59]);}};Q=X([Y(0x0,_0x229e82(_0x3a97fd)),Y(0x1,_0x229e82(_0x3deb35))],Q);const Jr=_0x232df7(0x118),Yr='sheet.image-clip.shape-picker.component';function Xr({onShapeClick:_0x4b2f9a,excludeGroups:_0xd663aa}){const _0x399349=_0x232df7;return _0x386576(_0x2c8a8a,{'excludeGroups':_0xd663aa,'onShapeClick':_0x4b2f9a,'scrollContainer':_0x399349(0x106)});}function Zr(){const _0x2e43a1=_0x232df7;let _0x3d6220=_0x3a3b93(_0x3deb35),_0x1f5344=_0x3a3b93(Q);return _0x386576(_0x5bb7e1,{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0x56b27d[_0x2e43a1(0x171)]],'onShapeClick':_0x4a2cb9=>{const _0x443498=_0x2e43a1;let _0xce8c55=_0x3d6220[_0x443498(0x310)]()[_0x443498(0x12b)](_0xc566e7=>_0xc566e7['drawingType']===_0x190419[_0x443498(0x1a0)]);if(!_0xce8c55)return;let {unitId:_0x568ca9,subUnitId:_0x30fafa,drawingId:_0x2588b7}=_0xce8c55;_0x1f5344[_0x443498(0x1ca)](_0x568ca9,_0x30fafa,_0x2588b7,_0x4a2cb9[_0x443498(0xf1)]);}});}function Qr(){let _0x3b64d6=_0x3a3b93(_0x3deb35),_0x23db18=_0x3a3b93(Q);return _0x386576(_0x5bb7e1,{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0x56b27d['Line']],'DropdownComponent':_0x217736,'onShapeClick':_0x194aeb=>{const _0x264072=_0x2028;let _0x473edd=_0x3b64d6[_0x264072(0x310)]()[_0x264072(0x12b)](_0x4e6d11=>_0x4e6d11[_0x264072(0x183)]===_0x190419[_0x264072(0x1a0)]);if(!_0x473edd)return;let {unitId:_0x4a71d4,subUnitId:_0x53bb76,drawingId:_0x2a8298}=_0x473edd;_0x23db18[_0x264072(0x1ca)](_0x4a71d4,_0x53bb76,_0x2a8298,_0x194aeb['type']);}});}function $r(){const _0x3a97cf=_0x232df7;let _0x2bec92=_0x3a3b93(_0x2359f7),_0x23eec5=_0x3a3b93(_0x3deb35),_0x14d37d=_0x3a3b93(_0x304294),_0x5624e0=_0x23eec5[_0x3a97cf(0x310)]()[0x0],_0x156aa1=_0x5624e0?_0x14d37d[_0x3a97cf(0xef)](_0x5624e0['unitId']):void 0x0,_0x538497=_0x156aa1===_0xe0c4a6[_0x3a97cf(0x2ed)]?_0x3a97cf(0x1e8):_0x156aa1===_0xe0c4a6[_0x3a97cf(0x277)]?Yr:void 0x0,_0x380051=_0x538497?_0x2bec92[_0x3a97cf(0x14a)](_0x538497):void 0x0;return _0x380051?_0x386576(_0x380051,{}):null;}function ei(){let _0x351425=_0x3a3b93(_0x1b156e);return _0x386576(Xr,{'onShapeClick':_0x509b3b=>{const _0x219674=_0x2028;_0x351425['executeCommand'](Ir['id'],{'value':_0x509b3b[_0x219674(0xf1)],'enhanceParams':{'endArrow':_0x509b3b[_0x219674(0x305)],'startArrow':_0x509b3b[_0x219674(0xed)],'horizontal':_0x509b3b['horizontal'],'vertical':_0x509b3b['vertical']}});}});}function ti(){return _0x386576(ei,{});}function ni(_0x258585){const _0x384a2e=_0x232df7;let _0x390652=_0x258585[_0x384a2e(0x14a)](_0x304294);return{'id':Ir['id'],'type':_0x27279c[_0x384a2e(0x135)],'selections':[{'label':{'name':Jr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Ir['id']}}}],'icon':_0x384a2e(0x369),'tooltip':_0x384a2e(0x21a),'activated$':_0x6c9f0d(_0x390652,!0x1,()=>new _0x55611e(_0x4caf7b=>{const _0x196582=_0x384a2e;_0x4caf7b[_0x196582(0x360)](!0x1);})),'hidden$':_0x2c14fa(_0x258585,_0xe0c4a6[_0x384a2e(0x277)]),'disabled$':_0x5af922(_0x258585)};}function ri(_0x350579){const _0x1dc7e0=_0x232df7;let _0x124c47=_0x350579['get'](_0x304294);return{'id':Ur['id'],'type':_0x27279c['BUTTON'],'icon':_0x1dc7e0(0x1ea),'title':_0x1dc7e0(0x2f1),'tooltip':'sheets-shape-ui.objectListPanel.open','activated$':_0x6c9f0d(_0x124c47,!0x1,()=>new _0x55611e(_0x18d999=>{const _0x3f29c5=_0x1dc7e0;_0x18d999[_0x3f29c5(0x360)](!0x1);})),'hidden$':_0x2c14fa(_0x350579,_0xe0c4a6[_0x1dc7e0(0x277)]),'disabled$':_0x5af922(_0x350579)};}const ii=_0x232df7(0x2d7),ai=_0x232df7(0xfd);function oi(_0x3d79e5){const _0x2d1187=_0x232df7;let _0x229f57=_0x3d79e5[_0x2d1187(0x14a)](_0x3deb35)['getFocusDrawings']();return _0x229f57[_0x2d1187(0x333)]===0x1&&_0x229f57[0x0][_0x2d1187(0x183)]===_0x190419[_0x2d1187(0x21d)]?_0x229f57[0x0]:null;}function si(_0x34811e){const _0x41add0=_0x232df7;let _0x3dcb0b=_0x34811e[_0x41add0(0x14a)](_0x3deb35);return _0x3dcb0b['focus$']['pipe'](_0x56d968(_0x3dcb0b['getFocusDrawings']()),_0x1e2b1f(_0x5b86de=>_0x5b86de['length']!==0x1||_0x5b86de[0x0]['drawingType']!==_0x190419['DRAWING_SHAPE']));}function ci(_0x2b172d){const _0x251453=_0x232df7;return{'id':ii,'commandId':_0x1f7ef3['id'],'type':_0x27279c[_0x251453(0x2a3)],'title':_0x251453(0x16b),'tooltip':'sheets-shape-ui.flipHorizontal','icon':_0x251453(0x1ab),'hidden$':si(_0x2b172d),'params':()=>{const _0x7363a5=_0x251453;let _0x39be07=oi(_0x2b172d);return _0x39be07?{'unitId':_0x39be07[_0x7363a5(0x1e3)],'subUnitId':_0x39be07[_0x7363a5(0x26c)],'shapeId':_0x39be07[_0x7363a5(0x36c)],'flipH':!0x0}:void 0x0;}};}function li(_0x916094){const _0x16bb61=_0x232df7;return{'id':ai,'commandId':_0x1f7ef3['id'],'type':_0x27279c[_0x16bb61(0x2a3)],'title':_0x16bb61(0x291),'tooltip':_0x16bb61(0x291),'icon':_0x16bb61(0x3a0),'hidden$':si(_0x916094),'params':()=>{const _0x161368=_0x16bb61;let _0x5327ed=oi(_0x916094);return _0x5327ed?{'unitId':_0x5327ed[_0x161368(0x1e3)],'subUnitId':_0x5327ed['subUnitId'],'shapeId':_0x5327ed[_0x161368(0x36c)],'flipV':!0x0}:void 0x0;}};}const ui=_0x232df7(0x20e),di=_0x232df7(0x250),fi='sheets-shape-ui.shape-format.text-ribbon-control',pi=_0x232df7(0x195);function mi(){let _0x326a6b=_0x3a3b93(_0x1b156e),_0xd5091c=_0x3a3b93(_0x3deb35),_0x439036=_0x3a3b93(_0x5c2303),_0x1e7a92=()=>{const _0x2113d4=_0x2028;var _0x6e46d2;let _0x3fc88b=_0xd5091c[_0x2113d4(0x310)]();if(_0x3fc88b['length']!==0x1||((_0x6e46d2=_0x3fc88b[0x0])==null?void 0x0:_0x6e46d2[_0x2113d4(0x183)])!==_0x190419[_0x2113d4(0x21d)])return null;let {unitId:_0x12f157,subUnitId:_0x42c4bd,drawingId:_0x22e4be}=_0x3fc88b[0x0],_0x32faee=_0x439036[_0x2113d4(0x280)](_0x12f157,_0x42c4bd,_0x22e4be),_0x27e4d8=_0x439036[_0x2113d4(0x329)](_0x12f157,_0x42c4bd,_0x22e4be);return _0x32faee===void 0x0||!_0x27e4d8?null:{'unitId':_0x12f157,'subUnitId':_0x42c4bd,'drawingId':_0x22e4be,'shapeType':_0x32faee,'shapeData':_0x27e4d8};},_0x351d6f=_0xe01eb2(()=>new _0x55611e(_0x12003d=>{const _0x583f69=_0x2028;let _0x274521=()=>_0x12003d['next'](_0x1e7a92()),_0x5a61e8=_0xd5091c[_0x583f69(0x19a)][_0x583f69(0x268)](_0x274521),_0x153464=_0x326a6b[_0x583f69(0x224)](_0x259b86=>{_0x259b86['id']===_0x4af43a['id']&&_0x274521();});return _0x274521(),()=>{const _0x57be96=_0x583f69;_0x5a61e8[_0x57be96(0x1d2)](),_0x153464[_0x57be96(0x296)]();};}),_0x1e7a92(),!0x1,[_0x326a6b,_0xd5091c,_0x439036]);return{'selection':_0x351d6f,'updateShapeData':_0x50960d=>{const _0x35ce61=_0x2028;_0x351d6f&&Dr(_0x326a6b,_0x351d6f[_0x35ce61(0x1e3)],_0x351d6f[_0x35ce61(0x26c)],_0x351d6f[_0x35ce61(0x36c)],{'oldShapeData':_0x351d6f[_0x35ce61(0x1b6)]},_0x50960d);}};}function hi(){const _0x42ef43=_0x232df7;let {selection:_0x2bb5b7,updateShapeData:_0x148da3}=mi();return _0x2bb5b7?_0x386576(_0x54731a,{'shapeData':_0x2bb5b7['shapeData'],'shapeType':_0x2bb5b7[_0x42ef43(0x15b)],'onUpdateShapeData':_0x148da3}):null;}function gi(){const _0x4646e9=_0x232df7;let _0x4db89b=_0x3a3b93(_0x1b156e),_0x47006e=_0x3a3b93(_0x16b0b7),{selection:_0x5d1261}=mi();return _0x5d1261?_0x386576(_0x5cc351,{'type':_0x11da62(_0x5d1261[_0x4646e9(0x1b6)]),'ariaLabel':_0x47006e['t']('sheets-shape-ui.quickStyles'),'activePresetId':_0x553651(_0x5d1261['shapeData']),'onSelect':_0x54418f=>_0x4db89b['executeCommand'](Kr['id'],{'presetId':_0x54418f})}):null;}function _i(){const _0x46bd07=_0x232df7;let {selection:_0x5c182b,updateShapeData:_0x422060}=mi();return _0x5c182b?_0x386576(_0x4c605a,{'fontFamilyPopupDataComponent':'sheets-shape-format-font-family-menu','shapeData':_0x5c182b[_0x46bd07(0x1b6)],'onUpdateShapeData':_0x422060}):null;}function vi(){const _0x153d68=_0x232df7;var _0xa8a1bb;let {selection:_0x46d70a,updateShapeData:_0x18719d}=mi(),_0xcc0c4b=_0x5433fa({'hostType':_0xe0c4a6['UNIVER_SHEET'],'unitId':(_0x46d70a==null?void 0x0:_0x46d70a[_0x153d68(0x1e3)])??'','subUnitId':(_0x46d70a==null?void 0x0:_0x46d70a[_0x153d68(0x26c)])??'','shapeId':(_0x46d70a==null?void 0x0:_0x46d70a[_0x153d68(0x36c)])??'','shapeData':_0x46d70a==null?void 0x0:_0x46d70a[_0x153d68(0x1b6)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x153d68(0x344),'onUpdateBinding':_0x3372a2=>_0x18719d({'formulaBinding':_0x3372a2})}),_0x1b5e7c=((_0xa8a1bb=_0xcc0c4b[_0x153d68(0x1fc)])==null?void 0x0:_0xa8a1bb['flatMap'](_0x184d67=>_0x184d67[_0x153d68(0x1e0)])[_0x153d68(0x34b)](_0x1dcf26=>_0x1dcf26[_0x153d68(0x346)]!==!0x1))??[];return _0x46d70a!=null&&_0x46d70a[_0x153d68(0x1b6)][_0x153d68(0x2da)]?_0x386576(_0x13101b,{'actions':_0x1b5e7c,'panel':_0xcc0c4b[_0x153d68(0x284)]}):null;}const yi='sheets-shape-ui.ribbon.shape-format.style-control',bi=_0x232df7(0x244),xi=_0x232df7(0xec),Si='sheets-shape-ui.ribbon.shape-format.arrange-forward',Ci=_0x232df7(0x19b),wi=_0x232df7(0x2e1),Ti=_0x232df7(0x178);function Ei(_0x19cb6d){const _0x2c1a44=_0x232df7;let _0x530acb=_0x19cb6d[_0x2c1a44(0x14a)](_0x1b156e),_0x969d43=_0x19cb6d[_0x2c1a44(0x14a)](_0x3deb35),_0x111b84=_0x19cb6d[_0x2c1a44(0x14a)](_0x5c2303);return new _0x55611e(_0x19dacd=>{const _0x104ab6=_0x2c1a44;let _0x57627=()=>{const _0x505205=_0x2028;let _0x390a53=Di(_0x19cb6d),_0x2024f8=_0x390a53?_0x111b84[_0x505205(0x329)](_0x390a53[_0x505205(0x1e3)],_0x390a53[_0x505205(0x26c)],_0x390a53['drawingId']):null;_0x19dacd[_0x505205(0x360)](_0x2024f8?_0x553651(_0x2024f8)??'':'');},_0x26bb56=_0x969d43[_0x104ab6(0x19a)][_0x104ab6(0x268)](_0x57627),_0x3efaec=_0x530acb['onCommandExecuted'](_0x295a62=>{_0x295a62['id']===_0x4af43a['id']&&_0x57627();});return _0x57627(),()=>{const _0x97f913=_0x104ab6;_0x26bb56[_0x97f913(0x1d2)](),_0x3efaec[_0x97f913(0x296)]();};});}function Di(_0x3ee324){const _0x46310f=_0x232df7;var _0x1c0e37;let _0x59fb83=_0x3ee324[_0x46310f(0x14a)](_0x3deb35)[_0x46310f(0x310)]();return _0x59fb83[_0x46310f(0x333)]===0x1&&((_0x1c0e37=_0x59fb83[0x0])==null?void 0x0:_0x1c0e37[_0x46310f(0x183)])===_0x190419[_0x46310f(0x21d)]?_0x59fb83[0x0]:null;}function Oi(_0x3a7437,_0x41584=!0x1){const _0x124f6a=_0x232df7;let _0x25a525=_0x3a7437[_0x124f6a(0x14a)](_0x1b156e),_0x5415fa=_0x3a7437['get'](_0x3deb35),_0x37a2dd=_0x3a7437[_0x124f6a(0x14a)](_0x5c2303);return new _0x55611e(_0x2d4690=>{const _0x3fd46e=_0x124f6a;let _0x75c755=()=>{const _0x103ead=_0x2028;let _0x8fa5d0=Di(_0x3a7437);if(!_0x8fa5d0){_0x2d4690[_0x103ead(0x360)](!0x0);return;}let _0x16b3ff=_0x37a2dd[_0x103ead(0x329)](_0x8fa5d0[_0x103ead(0x1e3)],_0x8fa5d0[_0x103ead(0x26c)],_0x8fa5d0['drawingId']);_0x2d4690[_0x103ead(0x360)](!_0x16b3ff||_0x41584&&_0x16b3ff['formulaBinding']==null);},_0x1675f3=_0x5415fa['focus$'][_0x3fd46e(0x268)](_0x75c755),_0x3985bb=_0x25a525[_0x3fd46e(0x224)](_0x4078e2=>{_0x4078e2['id']===_0x4af43a['id']&&_0x75c755();});return _0x75c755(),()=>{const _0x2a19d1=_0x3fd46e;_0x1675f3['unsubscribe'](),_0x3985bb[_0x2a19d1(0x296)]();};});}function ki(_0x5be7ba){const _0x12c018=_0x232df7;let _0x2de8b2=_0x5be7ba[_0x12c018(0x14a)](_0x3deb35),_0x4cb51d=_0x5be7ba[_0x12c018(0x14a)](_0x5c2303);return _0x2de8b2[_0x12c018(0x19a)][_0x12c018(0x16f)](_0x56d968(_0x2de8b2[_0x12c018(0x310)]()),_0x1e2b1f(()=>{const _0x57e80d=_0x12c018;let _0xd03ba4=Di(_0x5be7ba),_0x371768=_0xd03ba4?_0x4cb51d[_0x57e80d(0x280)](_0xd03ba4[_0x57e80d(0x1e3)],_0xd03ba4[_0x57e80d(0x26c)],_0xd03ba4[_0x57e80d(0x36c)]):void 0x0;return _0x371768===void 0x0||_0x52f76f(_0x371768);}));}function Ai(_0x189ddf){const _0x224a0f=_0x232df7;return{'id':Kr['id'],'type':_0x27279c[_0x224a0f(0x135)],'icon':_0x224a0f(0x2d1),'title':_0x224a0f(0x29c),'tooltip':_0x224a0f(0x29c),'selections':[{'label':{'name':ui,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ei(_0x189ddf),'hidden$':Oi(_0x189ddf)};}function ji(_0x4ca055){const _0x14dc1c=_0x232df7;return{'id':qr['id'],'type':_0x27279c[_0x14dc1c(0x135)],'icon':'ShapeIcon','title':_0x14dc1c(0x33b),'tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':_0x1b9682,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ki(_0x4ca055)};}function Mi(_0x45792f,_0x11b61f,_0x3bc551=!0x1){const _0x4cca22=_0x232df7;return _0x2d7133=>({'id':_0x45792f,'type':_0x27279c[_0x4cca22(0x2a3)],'label':{'name':_0x11b61f,'hoverable':!0x1,'selectable':!0x1},'hidden$':Oi(_0x2d7133,_0x3bc551)});}function _0x2028(_0x369708,_0x23b888){_0x369708=_0x369708-0xdf;const _0x1606af=_0x1606();let _0x2028a5=_0x1606af[_0x369708];return _0x2028a5;}const Ni=Mi(yi,di),Pi=Mi(bi,fi),Fi=Mi(xi,pi,!0x0);function Ii(_0x32a6c2,_0x25b0a8,_0x2e38bf,_0x3693eb){const _0x375b37=_0x232df7;return _0xc85c8=>({'id':_0x32a6c2,'commandId':_0x535c91['id'],'type':_0x27279c[_0x375b37(0x2a3)],'icon':_0x2e38bf,'title':_0x3693eb,'tooltip':_0x3693eb,'hidden$':Oi(_0xc85c8),'params':()=>{const _0x433d4c=_0x375b37;let _0x377b9e=Di(_0xc85c8);return _0x377b9e?{'unitId':_0x377b9e[_0x433d4c(0x1e3)],'subUnitId':_0x377b9e[_0x433d4c(0x26c)],'drawingIds':[_0x377b9e[_0x433d4c(0x36c)]],'arrangeType':_0x25b0a8}:void 0x0;}});}const Li=Ii(Si,_0x32c897[_0x232df7(0x239)],_0x232df7(0x13b),_0x232df7(0x108)),Ri=Ii(Ci,_0x32c897[_0x232df7(0x1bd)],_0x232df7(0x1d5),_0x232df7(0x28c)),zi=Ii(wi,_0x32c897[_0x232df7(0x20b)],_0x232df7(0x2de),'shape-editor-ui.arrange.front'),Bi=Ii(Ti,_0x32c897[_0x232df7(0x273)],'BottomIcon',_0x232df7(0x193));function Vi(_0x4a6104){const _0x4d976=_0x232df7;return{'id':Wr['id'],'type':_0x27279c[_0x4d976(0x2a3)],'icon':_0x4d976(0x120),'title':_0x4d976(0x1b0),'tooltip':'sheets-shape-ui.formatShape','hidden$':Oi(_0x4a6104),'params':()=>{const _0x497fca=_0x4d976;let _0x2cde72=Di(_0x4a6104);return _0x2cde72?{'unitId':_0x2cde72[_0x497fca(0x1e3)],'subUnitId':_0x2cde72[_0x497fca(0x26c)],'drawingId':_0x2cde72[_0x497fca(0x36c)]}:void 0x0;}};}const Hi={[_0x541bd0['RIBBON']]:{[Br]:{'order':0x64,'title':_0x232df7(0x1b0),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Kr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ai},[qr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ji}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[yi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ni}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[bi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Pi}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ii]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ci},[ai]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':li},[Si]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Li},[Ci]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Ri},[wi]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':zi},[Ti]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Bi}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[xi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Fi}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[Wr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Vi},[_0x1f2f61['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x1bd401}}}}},Ui={[_0x3a3389[_0x232df7(0x26e)]]:{[Ir['id']]:{'order':0x3,'menuItemFactory':ni}}},Wi={...Ui,[_0x3a3389['OTHERS']]:{[Ur['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ri}},[_0x29b253['DRAWING']]:{[_0x1f1f30[_0x232df7(0x34c)]]:{[ii]:{'order':0x4,'menuItemFactory':ci},[ai]:{'order':0x5,'menuItemFactory':li}}}};var Gi='@univerjs-pro/sheets-shape-ui',Ki=_0x232df7(0x1df);const qi={'id':_0x232df7(0x10d),'type':_0x33172f[_0x232df7(0x2ab)],'handler'(_0x55c102,_0x305462){const _0x348a1c=_0x232df7;return _0x305462?(_0x55c102[_0x348a1c(0x14a)](_0x8e92cf)[_0x348a1c(0x22b)](_0x305462[_0x348a1c(0x1b8)],{'hostType':_0xe0c4a6[_0x348a1c(0x277)],'shapeId':_0x305462[_0x348a1c(0x36c)],'subUnitId':_0x305462['subUnitId'],'unitId':_0x305462['unitId']}),!0x0):!0x1;}},Ji=_0x232df7(0x17c),Yi={};let Xi=class extends _0x2bb0e8{constructor(_0x440a3b,_0x1e3539,_0x39e2a3,_0x4194ed,_0x12eb69){const _0x228c0c=_0x232df7;super(),this['_context']=_0x440a3b,this['_drawingManagerService']=_0x1e3539,this[_0x228c0c(0x209)]=_0x39e2a3,this[_0x228c0c(0x2d4)]=_0x4194ed,this[_0x228c0c(0x1ec)]=_0x12eb69,q(this,_0x228c0c(0x1b2),null),q(this,_0x228c0c(0x102),null),q(this,_0x228c0c(0x161),null),q(this,_0x228c0c(0x2ad),void 0x0),q(this,_0x228c0c(0x2b1),[]),q(this,_0x228c0c(0x144),0x0),q(this,_0x228c0c(0x222),0x0),q(this,_0x228c0c(0x343),0x0),q(this,_0x228c0c(0x336),0x0),q(this,_0x228c0c(0x173),!0x1),q(this,_0x228c0c(0x192),void 0x0),q(this,'_activeShapeModel',void 0x0),q(this,_0x228c0c(0x30b),void 0x0),q(this,_0x228c0c(0x290),void 0x0),q(this,_0x228c0c(0x25d),!0x1),this['_registerFocusChangeHandler'](),this['_registerMoveHandler']();}[_0x232df7(0x23a)](){const _0x2647b2=_0x232df7;this[_0x2647b2(0x352)]();}['refreshAdjustControls'](){const _0x20f832=_0x232df7;this[_0x20f832(0x352)](),this['_createControls'](!0x0);}[_0x232df7(0x2bc)](_0x2eb29c,_0x295c70,_0x2ba968,_0x305033){const _0x1b5986=_0x232df7;let _0x157283=_0x2eb29c;if(_0x157283!==_0xe73d9c[_0x1b5986(0x374)]&&_0x2eb29c!==_0x1b5986(0x27e))try{let _0x2ed691=new _0x243526(_0x157283,_0x1b5986(0xe7)+_0x2eb29c);return _0x305033&&_0x2ed691[_0x1b5986(0x2f8)]({'adjustValues':_0x305033},!0x0),_0x2ed691[_0x1b5986(0x2bd)]({'width':_0x295c70,'height':_0x2ba968}),_0x2ed691;}catch{return;}}[_0x232df7(0x133)](_0x36f0e9,_0x10abd1,_0x5670b4){const _0x5288ad=_0x232df7;let _0x1113a6={'unitId':_0x36f0e9,'subUnitId':_0x10abd1,'drawingId':_0x5670b4},_0x255ace=this[_0x5288ad(0x11c)]['getDrawingByParam'](_0x1113a6);if(_0x255ace&&_0x255ace[_0x5288ad(0x183)]===_0x190419[_0x5288ad(0x1a0)])return _0x255ace;}[_0x232df7(0x1ae)](_0x5708a4,_0x4c5e81,_0x34de4a){const _0x2366e2=_0x232df7;let _0x9a28af=this[_0x2366e2(0x209)][_0x2366e2(0x124)](_0x5708a4);if(!_0x9a28af)return;let {scene:_0x23ab3f}=_0x9a28af,_0x4dd364=_0x3023e5({'unitId':_0x5708a4,'subUnitId':_0x4c5e81,'drawingId':_0x34de4a}),_0x5c6b64=_0x23ab3f[_0x2366e2(0x17a)](_0x4dd364);if(_0x5c6b64 instanceof _0x2cc9fc){let _0x1b26f7=_0x5c6b64[_0x2366e2(0x320)];if(_0x1b26f7)return{'prstGeom':_0x1b26f7,'adjustValues':_0x5c6b64['prstGeomAdjValues']};}}[_0x232df7(0x22d)](_0x217ad3=!0x1){const _0x21bf5a=_0x232df7;if(!this[_0x21bf5a(0x102)]||!this[_0x21bf5a(0x161)]||!this[_0x21bf5a(0x1b2)])return;let _0x243c9a=this[_0x21bf5a(0x209)][_0x21bf5a(0x124)](this[_0x21bf5a(0x102)]);if(!_0x243c9a||!_0x243c9a[_0x21bf5a(0x18c)](_0x54a66d)[_0x21bf5a(0x2ee)]())return;let {scene:_0x2feed0}=_0x243c9a,_0x43a15c=this[_0x21bf5a(0x133)](this[_0x21bf5a(0x102)],this[_0x21bf5a(0x161)],this[_0x21bf5a(0x1b2)]);if(!_0x43a15c)return;let {transform:_0x498e12}=_0x43a15c;if(!_0x498e12)return;let {left:_0x1bc35d,top:_0x296631,width:_0x3231dd,height:_0x1ba528,flipX:_0x289144,flipY:_0x565da2,angle:_0x37b980=0x0}=_0x498e12;if(_0x1bc35d===void 0x0||_0x296631===void 0x0)return;let _0xb2008b=this[_0x21bf5a(0x1ae)](this['_unitId'],this[_0x21bf5a(0x161)],this[_0x21bf5a(0x1b2)]);if(!_0xb2008b)return;if(_0x217ad3){let _0x28871e=this[_0x21bf5a(0x2bc)](_0xb2008b[_0x21bf5a(0x320)],_0x3231dd||0x0,_0x1ba528||0x0,_0xb2008b[_0x21bf5a(0x29d)]);if(!_0x28871e)return;this[_0x21bf5a(0x2ad)]=_0x28871e[_0x21bf5a(0x158)]();}let _0x1b5672=this['_activeAdjustPointList'];if(_0x1b5672&&_0x1b5672[_0x21bf5a(0x333)]!==0x0)for(let _0x133e50=0x0;_0x133e50<_0x1b5672[_0x21bf5a(0x333)];_0x133e50++){let _0x57f254=_0x1b5672[_0x133e50],_0x26c9fe=_0x57f254['x'],_0x18949b=_0x57f254['y'];if(_0x289144&&(_0x26c9fe=(_0x3231dd||0x0)-_0x26c9fe),_0x565da2&&(_0x18949b=(_0x1ba528||0x0)-_0x18949b),_0x37b980!==0x0){let _0x45f708=(_0x3231dd||0x0)/0x2,_0x51b110=(_0x1ba528||0x0)/0x2,_0x3c28bd=_0x37b980*Math['PI']/0xb4,_0x12ed66=Math[_0x21bf5a(0x2cd)](_0x3c28bd),_0x26b657=Math[_0x21bf5a(0x159)](_0x3c28bd),_0x59a259=_0x26c9fe-_0x45f708,_0x37a19a=_0x18949b-_0x51b110;_0x26c9fe=_0x45f708+(_0x59a259*_0x12ed66-_0x37a19a*_0x26b657),_0x18949b=_0x51b110+(_0x59a259*_0x26b657+_0x37a19a*_0x12ed66);}let _0xce8f30={'x':_0x26c9fe,'y':_0x18949b,'adjName':_0x57f254[_0x21bf5a(0x18d)]};this['_addControl'](_0x2feed0,_0xce8f30,_0xce8f30[_0x21bf5a(0x18d)],_0x1bc35d,_0x296631,this[_0x21bf5a(0x102)],this[_0x21bf5a(0x161)]);}}['_addControl'](_0x4a5fad,_0x4a0a5c,_0x33c7a6,_0x34023e,_0x446e93,_0x25c375,_0x2ef4ef){const _0x4760d7=_0x232df7;if(!this[_0x4760d7(0x1b2)])return;let _0x250927=_0x4760d7(0x262)+this[_0x4760d7(0x1b2)]+'-'+_0x33c7a6,_0x4674d9=_0x4a5fad['getObjectIncludeInGroup'](_0x250927);if(_0x4674d9){_0x4674d9['transformByState']({'left':_0x4a0a5c['x']+_0x34023e-_0x4c61a8[_0x4760d7(0x1a9)],'top':_0x4a0a5c['y']+_0x446e93-_0x4c61a8['adjHandleSize']});return;}let _0x1bdce4=new Nr(_0x250927,{'left':_0x4a0a5c['x']+_0x34023e-_0x4c61a8[_0x4760d7(0x1a9)],'top':_0x4a0a5c['y']+_0x446e93-_0x4c61a8['adjHandleSize'],'adjName':_0x33c7a6,'shapeId':this['_activeImageId'],'unitId':_0x25c375,'subUnitId':_0x2ef4ef,'width':_0x4c61a8[_0x4760d7(0x1a9)]+0x8,'height':_0x4c61a8[_0x4760d7(0x1a9)]+0x8,'zIndex':_0x4489b8+0x1,'evented':!0x0});this['_shapes'][_0x4760d7(0x29a)](_0x1bdce4),this[_0x4760d7(0x2ac)](_0x1bdce4,_0x4a5fad,_0x33c7a6),_0x4a5fad['addObject'](_0x1bdce4,_0x4489b8+0x1);}[_0x232df7(0x352)](){const _0x3705a2=_0x232df7;this[_0x3705a2(0x2b1)][_0x3705a2(0x333)]!==0x0&&(this[_0x3705a2(0x2b1)][_0x3705a2(0x385)](_0x4c8f96=>_0x4c8f96[_0x3705a2(0x296)]()),this[_0x3705a2(0x2b1)]=[]);}['_getScrollInfo'](_0x5f553c,_0x22150d){const _0x473c4f=_0x232df7;var _0x3fecaa;let _0x27d6d4={'x':0x0,'y':0x0},_0x19bee0=this['_renderManagerService']['getRenderUnitById'](_0x5f553c);if(!_0x19bee0||!_0x19bee0[_0x473c4f(0x18c)](_0x54a66d)[_0x473c4f(0x38a)](_0x22150d))return _0x27d6d4;let _0x34a014=_0x19bee0[_0x473c4f(0x18c)](_0x5ccab7),_0x5644bf=_0x34a014==null?void 0x0:_0x34a014['getCurrentScrollState']();if(!_0x5644bf)return _0x27d6d4;let _0xabd6d4=(_0x3fecaa=this['_univerInstanceService']['getUnit'](_0x5f553c))==null?void 0x0:_0x3fecaa[_0x473c4f(0x339)](_0x22150d);if(!_0xabd6d4)return _0x27d6d4;let _0x230bcc=_0x56d9fe(_0x5644bf['sheetViewStartRow'],_0x5644bf['sheetViewStartColumn'],_0x19bee0[_0x473c4f(0x381)],_0xabd6d4);return _0x230bcc?{'x':_0x230bcc[_0x473c4f(0x397)],'y':_0x230bcc[_0x473c4f(0x125)]}:_0x27d6d4;}['_getZoomRatio'](_0x3c40e7,_0x470f35){const _0x18b00f=_0x232df7;var _0x1ebfe9;let _0x1b9d75=(_0x1ebfe9=this[_0x18b00f(0x2d4)][_0x18b00f(0x2e7)](_0x3c40e7))==null?void 0x0:_0x1ebfe9[_0x18b00f(0x339)](_0x470f35);return(_0x1b9d75==null?void 0x0:_0x1b9d75[_0x18b00f(0x3a7)]())??0x1;}['_attachAdjustEvent'](_0x755849,_0x3da325,_0x81b304){const _0x126b25=_0x232df7;this[_0x126b25(0x2db)](_0x169987(_0x755849[_0x126b25(0x197)]['subscribeEvent']((_0xe08841,_0x5d1243)=>{const _0x5bf9d2=_0x126b25;var _0x4ab453,_0x436aaf,_0x56f1b0;let {unitId:_0x11190e,subUnitId:_0x47a5fc,drawingId:_0x2fbfed}=_0x755849[_0x5bf9d2(0xe5)](),_0x5c76ba=this['_getImageDrawingInfo'](_0x11190e,_0x47a5fc,_0x2fbfed);if(!(_0x5c76ba!=null&&_0x5c76ba['transform']))return;let {left:_0x312c75,top:_0xf7fc57,width:_0x5f6146,height:_0xc1818b}=_0x5c76ba['transform'];this[_0x5bf9d2(0x144)]=_0x312c75||0x0,this['_baseTop']=_0xf7fc57||0x0,this['_baseWidth']=_0x5f6146||0x0,this[_0x5bf9d2(0x336)]=_0xc1818b||0x0;let _0x395fff=!!((_0x4ab453=_0x5c76ba[_0x5bf9d2(0x15f)])!=null&&_0x4ab453[_0x5bf9d2(0x270)]),_0xe9e6aa=!!((_0x436aaf=_0x5c76ba[_0x5bf9d2(0x15f)])!=null&&_0x436aaf[_0x5bf9d2(0x25e)]),_0x3e1c6f=((_0x56f1b0=_0x5c76ba[_0x5bf9d2(0x15f)])==null?void 0x0:_0x56f1b0['angle'])||0x0,_0x13842a=this[_0x5bf9d2(0x1ae)](_0x11190e,_0x47a5fc,_0x2fbfed);if(!_0x13842a)return;let _0x23a17b=this['_getOrCreateShapeModel'](_0x13842a[_0x5bf9d2(0x320)],this[_0x5bf9d2(0x343)],this['_baseHeight'],_0x13842a[_0x5bf9d2(0x29d)]);if(!_0x23a17b||(this['_activeShapeModel']=_0x23a17b,this['_activeAdjustInfo']=_0x23a17b[_0x5bf9d2(0x219)](_0x81b304),!this[_0x5bf9d2(0x192)]))return;this[_0x5bf9d2(0x173)]=!0x0,_0x3da325[_0x5bf9d2(0x3a2)]();let _0x1a3c75=_0x13842a[_0x5bf9d2(0x320)];this[_0x5bf9d2(0x30b)]=_0x3da325[_0x5bf9d2(0x2c6)]['subscribeEvent']((_0x6ff62e,_0x1c0bfe)=>{const _0x5a3e4c=_0x5bf9d2;if(!this[_0x5a3e4c(0x173)])return;let {offsetX:_0x5c35c3,offsetY:_0x43fa6b}=_0x6ff62e,_0x36191=this['_activeAdjustInfo'];if(!this['_activeShapeModel']||!_0x36191)return;_0x3da325[_0x5a3e4c(0x3a2)](),_0x3da325[_0x5a3e4c(0x331)](_0x1d110f[_0x5a3e4c(0x1a7)]);let _0x4a35e7={'left':0x0,'top':0x0,'width':this[_0x5a3e4c(0x343)],'height':this['_baseHeight']},_0x13761f=this[_0x5a3e4c(0x1c6)](_0x11190e,_0x47a5fc),_0xfb1e98=this[_0x5a3e4c(0x1d9)](_0x11190e,_0x47a5fc),_0x387e87=_0x5c35c3/_0xfb1e98+_0x13761f['x']-this[_0x5a3e4c(0x144)],_0x24f22a=_0x43fa6b/_0xfb1e98+_0x13761f['y']-this['_baseTop'];if(_0x3e1c6f!==0x0){let _0x35f277=this[_0x5a3e4c(0x343)]/0x2,_0x4b23d8=this[_0x5a3e4c(0x336)]/0x2,_0x1757da=_0x3e1c6f*Math['PI']/0xb4,_0x1beea6=Math[_0x5a3e4c(0x2cd)](_0x1757da),_0x50da1d=Math['sin'](_0x1757da),_0x414cfc=_0x387e87-_0x35f277,_0x142e4d=_0x24f22a-_0x4b23d8;_0x387e87=_0x35f277+(_0x414cfc*_0x1beea6+_0x142e4d*_0x50da1d),_0x24f22a=_0x4b23d8+(-_0x414cfc*_0x50da1d+_0x142e4d*_0x1beea6);}_0x395fff&&(_0x387e87=this[_0x5a3e4c(0x343)]-_0x387e87),_0xe9e6aa&&(_0x24f22a=this[_0x5a3e4c(0x336)]-_0x24f22a);let _0xb7c31b=this[_0x5a3e4c(0x1d8)][_0x5a3e4c(0x391)](_0x4a35e7,{'x':_0x387e87,'y':_0x24f22a},_0x36191,_0x395fff,_0xe9e6aa);if(Object[_0x5a3e4c(0x1be)](_0xb7c31b)[_0x5a3e4c(0x333)]!==0x0){for(let [_0x5d2a29,_0x1be863]of Object['entries'](_0xb7c31b))this['_activeShapeModel'][_0x5a3e4c(0x359)](_0x5d2a29,_0x1be863);this[_0x5a3e4c(0x1d8)][_0x5a3e4c(0x2bd)]({'width':this[_0x5a3e4c(0x343)],'height':this[_0x5a3e4c(0x336)]}),this[_0x5a3e4c(0x191)](_0x11190e,_0x47a5fc,_0x2fbfed,_0xb7c31b),this[_0x5a3e4c(0x2ad)]=this[_0x5a3e4c(0x1d8)][_0x5a3e4c(0x158)](),this[_0x5a3e4c(0x22d)](),_0x1c0bfe['stopPropagation']();}}),this[_0x5bf9d2(0x290)]=_0x3da325[_0x5bf9d2(0x2c7)][_0x5bf9d2(0x2e4)]((_0x5d5d4c,_0x231b00)=>{const _0x2dedc0=_0x5bf9d2;if(this[_0x2dedc0(0x30b)][_0x2dedc0(0x1d2)](),this[_0x2dedc0(0x290)][_0x2dedc0(0x1d2)](),_0x3da325[_0x2dedc0(0x2fe)](),this['_activeShapeModel']){let _0x4255db=this[_0x2dedc0(0x1d8)][_0x2dedc0(0x12f)](),_0x52a896={};for(let _0x2c09f1 of _0x4255db){let _0x3cfdf6=this['_activeShapeModel'][_0x2dedc0(0x357)](_0x2c09f1);_0x3cfdf6!==void 0x0&&(_0x52a896[_0x2c09f1]=_0x3cfdf6);}this[_0x2dedc0(0x1ec)][_0x2dedc0(0x1ca)](_0x11190e,_0x47a5fc,_0x2fbfed,_0x1a3c75,_0x52a896);}this[_0x2dedc0(0x192)]=void 0x0,this[_0x2dedc0(0x1d8)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x231b00[_0x2dedc0(0x345)](),_0x3da325[_0x2dedc0(0x34f)]();}),_0x5d1243['stopPropagation']();})));}[_0x232df7(0x191)](_0xf563f8,_0x33264c,_0x25ca81,_0x5067e7){const _0x29e4f1=_0x232df7;let _0x53cd30=this[_0x29e4f1(0x209)]['getRenderUnitById'](_0xf563f8);if(!_0x53cd30)return;let {scene:_0x42aad0}=_0x53cd30,_0x533474=_0x3023e5({'unitId':_0xf563f8,'subUnitId':_0x33264c,'drawingId':_0x25ca81}),_0x18704e=_0x42aad0[_0x29e4f1(0x17a)](_0x533474);if(_0x18704e instanceof _0x2cc9fc){let _0x221bc9=_0x18704e[_0x29e4f1(0x236)]??{};_0x18704e[_0x29e4f1(0x176)]({..._0x221bc9,..._0x5067e7}),_0x18704e[_0x29e4f1(0x390)](!0x0);}}[_0x232df7(0xe8)](){const _0x51ad39=_0x232df7;let _0x6cbebc=this['_univerInstanceService'][_0x51ad39(0x2d0)](_0xe0c4a6[_0x51ad39(0x277)]);this[_0x51ad39(0x2db)](_0x6cbebc[_0x51ad39(0x16f)](_0x4faa1d(_0x26bf90=>_0x26bf90?_0x26bf90[_0x51ad39(0xe1)]['pipe'](_0x4faa1d(_0x2163c1=>{const _0x5cd522=_0x51ad39;if(!_0x2163c1)return _0x5f31a2;let _0x721986=_0x26bf90['getUnitId'](),_0xac53f3=this[_0x5cd522(0x209)][_0x5cd522(0x124)](_0x721986),_0x5631ed=_0xac53f3==null?void 0x0:_0xac53f3[_0x5cd522(0x381)];return _0x5631ed?_0x24a70f(_0x5631ed):_0x5f31a2;})):_0x5f31a2))[_0x51ad39(0x268)](_0x1d279a=>{const _0x47c35d=_0x51ad39;let _0x5df118=_0x1d279a['getTransformerByCreate']();this[_0x47c35d(0x2db)](_0x1d279a['onPointerMove$']['subscribeEvent'](()=>{const _0x2bd7e8=_0x47c35d;this[_0x2bd7e8(0x25d)]&&this[_0x2bd7e8(0x352)]();})),this[_0x47c35d(0x2db)](_0x5df118[_0x47c35d(0x22f)]['subscribe'](_0x43fd9a=>{const _0x55d443=_0x47c35d;let {objects:_0x51f67e}=_0x43fd9a;if(this[_0x55d443(0x22d)](),_0x51f67e!==null&&_0x51f67e[_0x55d443(0x292)]===0x1){let _0x35d9ef=_0x51f67e['values']()[_0x55d443(0x360)]()['value'];_0x35d9ef instanceof _0x2cc9fc&&_0x35d9ef[_0x55d443(0x320)]&&(this[_0x55d443(0x25d)]=!0x0);}})),this['disposeWithMe'](_0x5df118[_0x47c35d(0x2fd)][_0x47c35d(0x268)](()=>{const _0x255fe7=_0x47c35d;this[_0x255fe7(0x25d)]&&this[_0x255fe7(0x352)]();})),this[_0x47c35d(0x2db)](_0x1d279a[_0x47c35d(0x2c7)][_0x47c35d(0x2e4)](()=>{const _0x4b11a8=_0x47c35d;this[_0x4b11a8(0x25d)]&&(this[_0x4b11a8(0x25d)]=!0x1,this[_0x4b11a8(0x22d)]());})),this[_0x47c35d(0x2db)](_0x5df118['changeEnd$']['subscribe'](()=>{const _0x42ea38=_0x47c35d;if(this[_0x42ea38(0x102)]&&this['_subUnitId']&&this[_0x42ea38(0x1b2)]){let _0x1f4f73=this['_getImagePrstGeom'](this[_0x42ea38(0x102)],this['_subUnitId'],this[_0x42ea38(0x1b2)]);if(_0x1f4f73){var _0x19f12c,_0x4f5b94;let _0x3dcf8f=this[_0x42ea38(0x133)](this[_0x42ea38(0x102)],this[_0x42ea38(0x161)],this[_0x42ea38(0x1b2)]),_0xed96be=(_0x3dcf8f==null||(_0x19f12c=_0x3dcf8f[_0x42ea38(0x15f)])==null?void 0x0:_0x19f12c[_0x42ea38(0x324)])||0x0,_0x457807=(_0x3dcf8f==null||(_0x4f5b94=_0x3dcf8f['transform'])==null?void 0x0:_0x4f5b94[_0x42ea38(0x39a)])||0x0,_0x5b027e=this[_0x42ea38(0x2bc)](_0x1f4f73[_0x42ea38(0x320)],_0xed96be,_0x457807,_0x1f4f73[_0x42ea38(0x29d)]);_0x5b027e&&(this['_activeAdjustPointList']=_0x5b027e[_0x42ea38(0x158)](),this[_0x42ea38(0x352)](),this[_0x42ea38(0x22d)](!0x0));}}}));}));}[_0x232df7(0x22c)](){const _0x1f7517=_0x232df7;this['disposeWithMe'](this[_0x1f7517(0x11c)][_0x1f7517(0x19a)][_0x1f7517(0x268)](_0x36418a=>{const _0x38b0b0=_0x1f7517;if(_0x36418a[_0x38b0b0(0x333)]===0x1){let _0x165b3f=_0x36418a[0x0];if(_0x165b3f[_0x38b0b0(0x183)]===_0x190419[_0x38b0b0(0x1a0)]){let {unitId:_0x3adf51,subUnitId:_0x4f43b5,drawingId:_0x4aecee}=_0x165b3f,_0x34ceb7=this[_0x38b0b0(0x1ae)](_0x3adf51,_0x4f43b5,_0x4aecee);if(_0x34ceb7){var _0x38f96,_0x1a7391;this[_0x38b0b0(0x1b2)]=_0x4aecee,this[_0x38b0b0(0x102)]=_0x3adf51,this[_0x38b0b0(0x161)]=_0x4f43b5;let _0x2f1da7=this[_0x38b0b0(0x133)](_0x3adf51,_0x4f43b5,_0x4aecee),_0x404035=(_0x2f1da7==null||(_0x38f96=_0x2f1da7['transform'])==null?void 0x0:_0x38f96['width'])||0x0,_0x1e0314=(_0x2f1da7==null||(_0x1a7391=_0x2f1da7['transform'])==null?void 0x0:_0x1a7391[_0x38b0b0(0x39a)])||0x0,_0x5083ce=this['_getOrCreateShapeModel'](_0x34ceb7['prstGeom'],_0x404035,_0x1e0314,_0x34ceb7[_0x38b0b0(0x29d)]);_0x5083ce&&(this[_0x38b0b0(0x2ad)]=_0x5083ce[_0x38b0b0(0x158)]()),this[_0x38b0b0(0x352)](),this[_0x38b0b0(0x22d)](!0x0);}else this[_0x38b0b0(0x109)]();}else this[_0x38b0b0(0x109)]();}else this[_0x38b0b0(0x109)]();})),this[_0x1f7517(0x2db)](this[_0x1f7517(0x11c)][_0x1f7517(0x274)][_0x1f7517(0x268)](_0x5a7e65=>{const _0x47c2b4=_0x1f7517;if(_0x5a7e65['length']===0x1){let _0x549ee8=_0x5a7e65[0x0],_0x669927=this[_0x47c2b4(0x11c)][_0x47c2b4(0x282)](_0x549ee8);(_0x669927==null?void 0x0:_0x669927[_0x47c2b4(0x183)])===_0x190419[_0x47c2b4(0x1a0)]&&this['_activeImageId']===_0x549ee8[_0x47c2b4(0x36c)]&&(this['_clearControls'](),this['_createControls'](!0x0));}})),this[_0x1f7517(0x2db)](this[_0x1f7517(0x11c)]['remove$'][_0x1f7517(0x268)](_0x15996b=>{const _0x3c1347=_0x1f7517;for(let _0x299ec8 of _0x15996b)this[_0x3c1347(0x1b2)]===_0x299ec8[_0x3c1347(0x36c)]&&this[_0x3c1347(0x109)]();}));}[_0x232df7(0x109)](){const _0x37d258=_0x232df7;this[_0x37d258(0x1b2)]=null,this[_0x37d258(0x102)]=null,this[_0x37d258(0x161)]=null,this['_activeAdjustPointList']=void 0x0,this[_0x37d258(0x352)]();}};Xi=X([Y(0x1,_0x3deb35),Y(0x2,_0x229e82(_0x422c1e)),Y(0x3,_0x304294),Y(0x4,_0x229e82(Q))],Xi);function Zi(_0x1d43d7){return _0x1d43d7['trim']()||void 0x0;}function _0x1606(){const _0x2c94c6=['createControl$','_baseHeight','BottomIcon','Image','getSheetBySheetId','defineProperty','shape-editor-ui.toolbar.changeShape','drawing-ui.objectListPanel.search','_shapeUpdateListener','fill','getSkeletonParam','cxnPointStrokeWidth','computeStraightConnectorLayout','_baseDrawingRect','_baseWidth','bottom','stopPropagation','visible','_loadAndSetImage','_applyFormulaAutoFitSize','_getDrawingRect','_createCopyInfoByRange','filter','OTHERS','fromChangeset','GROUP','enableObjectsEvent','_draggingConnectorId','run','_clearControls','_shapeRenderController','invert','_hasReset','_draw','getAdjustValueByName','_iconManager','setAdjustValueByName','setFillImage','map','getCurrentUnitOfType','_context','save','hideInfoPopup','next','drawing-ui.objectListPanel.lockHint','_activeShapeId','attachTransformerTo','getInverseCoord','StraightConnector1','normal','sheet.operation.open-sheet-shape-format-panel','copyId','ShapeIcon','mergeMenu','_openShapeEditPanel','drawingId','remove$','scale','_canEdit','_connectionSiteObjects','_drawSimpleText','getTransformerByCreate','featurePluginUpdateNotification','None','_initSelection','updateDocumentStyle','sheet.shape.floating-toolbar','rect','clipHeight','drawing-ui.objectListPanel.filterLocked','parse','gradientEndColor','selectable','_sheetShapeAdjustController','_highlightedSiteIndex','endConnectionDetection','scene','_insertingShapeKeys','shapeKey','close','forEach','70YkXNkh','sheets-shape-ui.permission.editErr','30534GRkaXH','complete','getSkeleton','clipTop','getBasicShapeRelation','drawing-ui.objectListPanel.typeNames.','viewBound','_handleConnectorPointerUp','makeDirty','calcAdjValues','object','_getShapeAdjustPointListById','addImageSourceCache','showContextualTab','shapeText','viewportScrollX','classType','fillImageSource','height','getContextValue','localeService','drawing-ui.objectListPanel.show','_hyperLinkRegions','_shapeService','FlipVerticalIcon','_adjName','disableObjectsEvent','getUnitId','pushUndoRedo','presentation','_cxnIndex','getZoomRatio','registerRenderModule','getObjectIncludeInGroup','_sheetsShapeService','sheetViewStartColumn','_executeConnectionCommand','animateFormulaPresentation','activeSheet$','getDrawingVisible','isInGroup','left','getDrawingSearch','_activeTargetShapeId','clip-adj-','_registerMoveHandler','color','_updateAdjustControlPositions','_drawingType','sheets-shape-ui.ribbon.shape-format.formula-control','startArrow','beforeCommandExecuted','getUnitType','LEFT','type','updateConnectionDetection','draw','_initSheetChange','focusDrawing','doc','isHighlighted','_getShapeInfo','getShapeTextData','packageName','Path','fillType','sheet.menu.shape.flip-vertical','COMMAND','_isHighlighted','end','_shapeTextEditingService','_unitId','setConfig','has','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','parent','setOnSavingEditorData','shape-editor-ui.arrange.forward','_resetState','pick','symbol','_clearConnectionSites','sheet.operation.open-mobile-shape-editor','getImage','3119676sbQiWL','visible$','clip-','_baseShapeLeft','removeLinePoints','register','TOP','drawing-ui.objectListPanel.dragToReorder','_updateTransform','sheet.shape.picker.component','_formulaShapes','data','getDrawingData','_drawingManagerService','_permissionService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_clipService','ShapeFormatSettingIcon','div','getTransformer','_releaseRenderCache','getRenderUnitById','viewportScrollY','onSteady','title','_shapePopupMenuDisposable','_isOpenedShapeEditPanel','cxnPointStroke','find','_insertShapes','worldPoints','some','getAdjustNames','lineType','getBentTypeFromPoints','_formulaAnimation','_getImageDrawingInfo','getShapeType','SELECTOR','#1a73e8','dataModel','setFallbackVisible','from','_completionFrame','MoveUpIcon','SHEET','_transformCalculateSrcRect','iterator','drawing-ui.objectListPanel.close','angle','_drawingAddListener','interceptor','horizontal','_baseLeft','_registerComponents','reduce','fillImageSourceType','getEndConnectInfo','presetId','get','8pOahDv','setFormulaPresentation','beginPath','_loadShapePictureFill','cancelEditing','getOwnPropertyDescriptor','2723913sHgXFG','setContextValue','_attachConnectorObjectEvent','getBatchRemoveOp','_baseShapeWidth','_registerDrawingMoveHandler','formulaPresentation','getDrawingPoints','sin','_sidebarDisposable','shapeType','58gmdCKT','drawing-ui.objectListPanel.name','onload','transform','preValue','_subUnitId','_configService','_clearShapeAdjustControls','create','getActualSize','currentAdjustValues','_cxtHandlerPointerUp','getStartConnectInfo','onSavingEditorData$','default','sheets-shape-ui.flipHorizontal','_registerGroupFeaturePasteHook','_currentUniverService','animationEnabled','pipe','targetShapeId','Line','_shapeFormulaService','_isStartAdjusting','order','changeShapeType','setPrstGeomAdjValues','_handleConnectedEndpointPointerUp','sheets-shape-ui.ribbon.shape-format.arrange-back','initShapePopupMenu','getObject','updateDocumentDataMargin','sheets-shape-ui.config','_registerFeatureMenu','entries','startX','style','render','_sheetPrintInterceptorService','drawingType','_localeService','registerClipDelegate','_isStartConnectorPoint','editingParams$','_closeShapeEditPanel','drawing-ui.objectListPanel.lock','_activeShapeInfo','restore','with','adjName','drawing-ui.objectListPanel.hideAll','pluginName','_createShapeAdjustControls','_updateImageAdjValues','_activeAdjustInfo','shape-editor-ui.arrange.back','refreshFormulaPresentation','sheets-shape-ui.shape-format.formula-ribbon-control','stroke','onPointerDown$','index','_sheetDrawingShapeRenderController','focus$','sheets-shape-ui.ribbon.shape-format.arrange-backward','add','contentVerticalOffset','_sheetClipboardService','debounceRefreshControls','DRAWING_IMAGE','_sheetCanvasPopManagerService','_sheetPermissionCheckController','getInterceptPoints','constructor','_sheetInterceptorService','text','CROSSHAIR','drawWith','adjHandleSize','params','FlipHorizontalIcon','axisAlignSheetTransform','getValue','_getImagePrstGeom','isRenderLinePointsMode','sheets-shape-ui.formatShape','UPDATE','_activeImageId','_onSavingEditorData$','function','sheet.command.update-shape-data','shapeData','onStarting','mode','top','worldPoint','fontFamily','Medium','backward','keys','sheet.command.menu-insert-shape','contentHeight','resolveHyperLinkAt','_lastEditingShapeKey','univer-box-border\x20univer-px-4\x20univer-text-sm','stringify','_getConnectionSiteAngle','_getScrollInfo','getShapeData','sheet.shape.edit.panel','onReady','clipByShape','refreshAdjustControls','onDblclick$','clearControl$','undo','getShapeModel','hidden','completeEditing','unsubscribe','getActiveViewportByCoord','_ribbonService','MoveDownIcon','offsetY','setShouldShowAdjust','_activeShapeModel','_getZoomRatio','setShapeProps','getImageSourceCache','trim','drawing-ui.objectListPanel.hide','sheet.operation.open-shape-object-list-panel','1.1.0','actions','_injector','_drawingRenderService','unitId','prototype','getParent','popup','SolidLine','doc.image-clip.shape-picker.component','getCurrentScrollState','ObjectLayersIcon','setSrcRect','_imageShapeClipController','copyType','src','string','_registerDrawingFocusChangeHandler','#FFFFFF','_shapeId','canvas','addClipboardHook','setEditing','_baseShapeHeight','isRichText','#bcbcbc','_handleFreeEndpointMove','_sheetDrawingService','cxnIndex','extensionGroups','setPrstGeom','sheets-shape-ui.objectListPanel.title','setCanUseShapeClip','Rect','drawing-ui.objectListPanel.unlockAll','getConnectionRelation','drawing-ui.objectListPanel.title','registerCommand','sheetViewStartRow','attachPopupToObject','fontSize','_initMenu','_renderManagerService','canvasElement','front','top-center','_getConnectPointInfo','sheets-shape-ui.shape-format.quick-style-gallery','_initPrinting','_sidebarService','isolated','values','getRealBound','worldRect','cxnPointRadius','componentKey','_registerOperations','_updateSrcRectByTransform','getAdjustInfoByName','sheets-shape-ui.insertShape','ancestorTransform','_targetShapeId','DRAWING_SHAPE','_disposePopups','getPresentation','_menuManagerService','_initEvents','_baseTop','_currentConnectionTarget','onCommandExecuted','665687NUFWIw','renderDrawingShape','abs','_popupMenuListener','REMOVE','sheets-shape-ui.editShape','open','_registerFocusChangeHandler','_createControls','shape-text-','changeStart$','strokeWidth','_currentScene','_commandService','sheet.operation.close-sheet-shape-format-panel','transformByState','skeleton','prstGeomAdjValues','drawing-ui.objectListPanel.filterHidden','_drawShapeText','forward','clearAdjustControls','_findNearestConnectionSite','_activeShapeAdjustPointList','addObject','unregister','sectionCanvas','_drawRichText','sqrt','setCollapsedIds','srcRect','sheets-shape-ui.ribbon.shape-format.text-control','getVisible','Arrow','computeConnectorResizeLayout','_executeResizeCommand','sheets-shape-ui','_executeConnectedRouteConnectionCommand','drawing-ui.objectListPanel.moveBackward','_editingParams$','_initCopyPaste','isHit','isMainScene','sheets-shape-ui.shape-format.style-ribbon-control','translate','calculate','_handleConnectedEndpointMove','getDrawingOKey','shape-adjust-point-','cxnPointFill','transformVector2SceneCoord','40ztfurt','indexOf','permissionPointUpdate$','_clearCompletionFrame','isLineShape','_isImagePointerDown','flipY','PictureFill','_getShapeAdjustInfosById','sheet.operation.apply-shape-quick-style','image-clip-adjust-point-','drawing-ui.objectListPanel.description','rotation','isArray','_generateCutPasteMutations','_moveConnectorWithShape','subscribe','_hide','_initCommands','INSERT','subUnitId','getConnectionSiteList','MEDIA','offsetX','flipX','getScene','_isDrawingShapePointDown','back','update$','shapeId','SolidFill','UNIVER_SHEET','getActiveSheet','_commandExecutedListener','PRINTING_COMPONENT_COLLECT','drawing-ui.objectListPanel.showAll','getMatrix','_props','custom','_initialize','getShapeTypeById','asObservable','getDrawingByParam','oKey','panel','_updateShapeAdjustControls','executeCommand','getDrawingDataForUnit','_baseShapeTop','getState','blockExecuteWithoutPermission','registerFeaturePasteHook','shape-editor-ui.arrange.backward','clearAdjustValue','drawing-ui.objectListPanel.details','registerFeatureMenu','_adjHandlerPointerUp','sheets-shape-ui.flipVertical','size','_getSceneAndTransformerByDrawingSearch','98715yeqLrW','getBatchAddOp','dispose','_showConnectionSites','name','wrapStrategy','push','_initPermission','shape-editor-ui.toolbar.quickStyles','adjustValues','_copyInfo','getBatchUpdateOp','sheetTransform','multiply','clip','BUTTON','_addShapeConnectorHandlerObject','_handleBasicShapeUpdateConnectorLineShape','sheets-shape-ui.ribbon.shape-format','presentationChanged$','_formulaKey','delete','_registerImageShapeClipDelegate','OPERATION','_attachAdjustEvent','_activeAdjustPointList','_componentManager','decorate','resize','_shapes','_contextService','clear','_groupCopyPasteController','_config','version','toPrimitive','_update','marginTop','start','SheetShapeTextEditorContainer','_getOrCreateShapeModel','updateContext','_transform','getDrawingOrder','_calculateFreeEndpointAngle','drawing-ui.objectListPanel.nameInput','includes','interceptCommand','connection-site-','highlighted','onPointerMove$','onPointerUp$','SHAPE','shapeModel','getSelectedObjectMap','onTransformChange$','#4285f4','cos','_shapeFloatingToolbarService','error','getCurrentTypeOfUnit$','PaintIcon','hideContextualTab','_shapeEditPanelVersion','_univerInstanceService','_clearShapeConnectorHandlerObjects','_cxtHandlerPointerMove','sheet.menu.shape.flip-horizontal','_clearFocusedShape','_handleFreeEndpointPointerUp','formulaBinding','disposeWithMe','drawing-ui.objectListPanel.expand','1621206mkMcTz','TopmostIcon','relation','activeAnObject','sheets-shape-ui.ribbon.shape-format.arrange-front','call','getConnectorLinePoints','subscribeEvent','getConnectionInfo','set','getUnit','drawing-ui.objectListPanel.sectionFloating','_initEditingParams','getFocusedUnit','onerror','_clearPopups','UNIVER_DOC','getCurrentSkeleton','VIEW_MAIN','composeMatrix','sheets-shape-ui.objectListPanel.open','drawing-ui.objectListPanel.sectionCanvas','hasDefault','sheets-shape-ui.editText','image','isEditing','objects','setShapeData','description','setPresentation','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','lineShapeId','changing$','resetCursor','redo','startY','sheet.shape.text.float-menu','updateLinePoints','_generatePasteMutations','sheet.operation.update-shape-type','endArrow','refreshShapeFillImage','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','_reset','getSheetId','_imageIoService','_adjHandlerPointerMove','applyPoint','drawing-ui.objectListPanel.filterAll','drawing-ui.objectListPanel.locate','value','getFocusDrawings','onRendered','SHEET_SHAPE_UI_PLUGIN','translateWithPrecision','_isShouldShowDrawingShapeAdjust','_focusedDrawings','_sheetSkeletonService','_addShapeConnectorHandlerObjects','isHitLine','_registerIcons','localToWorld','getPermissionPoint','vertical-center','disableShapeOption','SHAPE_TEXT','_sheetBasicShapeConnectionPointController','prstGeom','14KBOhRP','_isConnecting','_disposed','width','syncExecuteCommand','setHighlighted','_visible','drawing-ui.objectListPanel.lockAll','getShapeDataById','point','current','_findShapeAtPoint','_connectorObjects','24999anVTjz','FromArray','getEditing','setCursor','sheets-shape-contextual-ribbon','length','changeEnd$'];_0x1606=function(){return _0x2c94c6;};return _0x1606();}function Qi(_0x5a3890,_0x59e75b,_0x361f38){const _0x5832af=_0x232df7;var _0x567088;return((_0x567088=_0x5a3890[_0x5832af(0x298)])==null?void 0x0:_0x567088[_0x5832af(0x1dc)]())||_0x361f38['t'](_0x5832af(0x38d)+_0xa2ace3(_0x5a3890[_0x5832af(0x183)]))+'\x20'+(_0x59e75b+0x1);}function $i({PanelComponent:_0x171bbf=_0x31400b}){const _0x4cac93=_0x232df7;var _0x5b64f1;let _0xf04099=_0x3a3b93(_0x16b0b7),_0x2b6071={'title':_0xf04099['t'](_0x4cac93(0x203)),'empty':_0xf04099['t']('drawing-ui.objectListPanel.empty'),'showAll':_0xf04099['t'](_0x4cac93(0x27b)),'hideAll':_0xf04099['t'](_0x4cac93(0x18e)),'lockAll':_0xf04099['t'](_0x4cac93(0x328)),'unlockAll':_0xf04099['t'](_0x4cac93(0x201)),'moveForward':_0xf04099['t']('drawing-ui.objectListPanel.moveForward'),'moveBackward':_0xf04099['t'](_0x4cac93(0x24b)),'close':_0xf04099['t'](_0x4cac93(0x13f)),'show':_0xf04099['t'](_0x4cac93(0x39d)),'hide':_0xf04099['t'](_0x4cac93(0x1dd)),'lock':_0xf04099['t'](_0x4cac93(0x189)),'unlock':_0xf04099['t']('drawing-ui.objectListPanel.unlock'),'lockHint':_0xf04099['t'](_0x4cac93(0x361)),'unlockHint':_0xf04099['t']('drawing-ui.objectListPanel.unlockHint'),'name':_0xf04099['t'](_0x4cac93(0x15d)),'nameInput':_0xf04099['t'](_0x4cac93(0x2c1)),'description':_0xf04099['t'](_0x4cac93(0x263)),'descriptionPlaceholder':_0xf04099['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0xf04099['t'](_0x4cac93(0x28e)),'noSelection':_0xf04099['t']('drawing-ui.objectListPanel.noSelection'),'locate':_0xf04099['t'](_0x4cac93(0x30e)),'expand':_0xf04099['t'](_0x4cac93(0x2dc)),'collapse':_0xf04099['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0xf04099['t'](_0x4cac93(0x116)),'search':_0xf04099['t'](_0x4cac93(0x33c)),'filterAll':_0xf04099['t'](_0x4cac93(0x30d)),'filterHidden':_0xf04099['t'](_0x4cac93(0x237)),'filterLocked':_0xf04099['t'](_0x4cac93(0x37a)),'sectionCanvas':_0xf04099['t'](_0x4cac93(0x2f2)),'sectionFloating':_0xf04099['t'](_0x4cac93(0x2e8))},_0x495e36=_0x3a3b93(_0x1b156e),_0xa4aefd=_0x3a3b93(_0x304294),_0x2fab87=_0x3a3b93(_0x4458c8),_0x554b22=_0x3a3b93(_0x3deb35),_0x2dfce1=_0x3a3b93(_0x422c1e),[,_0x5329fb]=_0x1268dd(_0x443cc3=>_0x443cc3+0x1,0x0),_0x1cb0ae=_0xa4aefd[_0x4cac93(0x35c)](_0xe0c4a6[_0x4cac93(0x277)]),_0x134ca9=(_0x1cb0ae==null?void 0x0:_0x1cb0ae['getUnitId']())??'',_0x1d4039=(_0x1cb0ae==null||(_0x5b64f1=_0x1cb0ae[_0x4cac93(0x278)]())==null?void 0x0:_0x5b64f1[_0x4cac93(0x309)]())??'',_0x48038a=_0xe01eb2(()=>_0x554b22[_0x4cac93(0x19a)],_0x554b22[_0x4cac93(0x310)](),!0x1,[_0x554b22]);_0x3ac889(()=>{const _0x25c4b7=_0x4cac93;let _0x33b3d7=_0x495e36[_0x25c4b7(0x224)](()=>_0x5329fb());return()=>_0x33b3d7[_0x25c4b7(0x296)]();},[_0x495e36]);let _0x16cea3=_0x134ca9&&_0x1d4039?_0x2fab87[_0x4cac93(0x11b)](_0x134ca9,_0x1d4039):{},_0x30f90c=(_0x134ca9&&_0x1d4039?_0x2fab87[_0x4cac93(0x2bf)](_0x134ca9,_0x1d4039):[])[_0x4cac93(0x35b)](_0x33b1a7=>_0x16cea3[_0x33b1a7])[_0x4cac93(0x34b)](_0x3fb5ee=>!!_0x3fb5ee)['reverse'](),_0x59190a=_0x30f90c[_0x4cac93(0x146)]((_0x1e25bd,_0x923282)=>(_0x1e25bd[_0x33d0f6(_0x923282[_0x4cac93(0x183)])]+=0x1,_0x1e25bd),{'canvas':0x0,'floating':0x0}),_0x563d16={'canvas':0x0,'floating':0x0},_0x1da710=_0x30f90c[_0x4cac93(0x35b)]((_0x23eb1b,_0x4907bc)=>{const _0x22b94b=_0x4cac93;let _0x57baf0=_0x33d0f6(_0x23eb1b['drawingType']),_0x17d739=_0x57baf0===_0x255c3c,_0x5268d9=_0x563d16[_0x57baf0]++;return{'id':_0x23eb1b[_0x22b94b(0x36c)],'name':Qi(_0x23eb1b,_0x4907bc,_0xf04099),'description':_0x23eb1b['description'],'visible':_0x23eb1b[_0x22b94b(0x1d0)]!==!0x0,'selectable':_0x23eb1b['selectable']!==!0x1,'sectionId':_0x57baf0,'sectionTitle':_0x17d739?_0x2b6071['sectionFloating']:_0x2b6071[_0x22b94b(0x23f)],'capabilities':_0x17d739?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x17d739&&_0x5268d9>0x0,'canMoveBackward':!_0x17d739&&_0x5268d9<_0x59190a[_0x22b94b(0x1f3)]-0x1,'canReorder':!_0x17d739};}),_0x1ed469=_0x53eb09(()=>(_0x48038a??[])[_0x4cac93(0x34b)](_0x436a36=>_0x436a36[_0x4cac93(0x1e3)]===_0x134ca9&&_0x436a36[_0x4cac93(0x26c)]===_0x1d4039)[_0x4cac93(0x35b)](_0x25aec9=>_0x25aec9[_0x4cac93(0x36c)]),[_0x48038a,_0x1d4039,_0x134ca9]),_0x43fd0c=_0x1ed469[_0x1ed469[_0x4cac93(0x333)]-0x1]??null,_0x3d78d6=_0x324f42=>_0x2fab87[_0x4cac93(0x282)]({'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingId':_0x324f42})??null,_0xb2744=async _0x2e7c17=>{const _0x4f6aa1=_0x4cac93;_0x134ca9&&_0x2e7c17['length']&&await _0x495e36[_0x4f6aa1(0x286)](_0x47d60a['id'],{'unitId':_0x134ca9,'drawings':_0x2e7c17});},_0x7e46bb=async(_0x122a29,_0x41b98d)=>{_0x3d78d6(_0x122a29)&&await _0xb2744([{'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingId':_0x122a29,..._0x41b98d}]);},_0xc5b4c2=(_0x278367,_0x212259)=>{const _0x56f925=_0x4cac93;if(!_0x134ca9||!_0x1d4039)return;let _0x2ba24c=_0x212259?_0x1ed469[_0x56f925(0x2c2)](_0x278367)?_0x1ed469[_0x56f925(0x34b)](_0x8151c9=>_0x8151c9!==_0x278367):[..._0x1ed469,_0x278367]:[_0x278367];_0x495e36['syncExecuteCommand'](_0x2b2ab1['id'],_0x2ba24c[_0x56f925(0x35b)](_0x1cfe9f=>({'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingId':_0x1cfe9f})));let _0x3f8a93=_0x2ba24c[_0x2ba24c['length']-0x1];_0x3f8a93?_0x10780b(_0x2dfce1,{'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingId':_0x3f8a93}):_0x4e12a4(_0x2dfce1,_0x134ca9);},_0x417e69=async(_0x5e88cb,_0x29813)=>{const _0x4ebd2c=_0x4cac93;await _0xb2744(_0x5e88cb[_0x4ebd2c(0x35b)](_0x1438dc=>_0x3d78d6(_0x1438dc))[_0x4ebd2c(0x34b)](_0x1d4144=>!!_0x1d4144)['filter'](_0x13d0d0=>_0x13d0d0[_0x4ebd2c(0x1d0)]!==!0x0!==_0x29813)[_0x4ebd2c(0x35b)](_0x568b13=>({'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingId':_0x568b13['drawingId'],'hidden':!_0x29813})));},_0x213a09=async(_0x279ffd,_0x309b2e)=>{const _0x37fead=_0x4cac93;await _0xb2744(_0x279ffd[_0x37fead(0x35b)](_0x13bd78=>_0x3d78d6(_0x13bd78))[_0x37fead(0x34b)](_0x3cc633=>!!_0x3cc633)[_0x37fead(0x34b)](_0x1a5fa0=>_0x1a5fa0[_0x37fead(0x37d)]!==!0x1!==_0x309b2e)['map'](_0x525d96=>({'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingId':_0x525d96[_0x37fead(0x36c)],'selectable':_0x309b2e})));},_0x473661=_0x1ff8d3=>{let _0x2c3aec=_0x3d78d6(_0x1ff8d3);if(_0x2c3aec)return _0x213a09([_0x1ff8d3],_0x2c3aec['selectable']===!0x1);},_0x382495=async(_0x5f1d84,_0x48dcfc)=>{var _0x3b4ea6;let _0x57a47e=Zi(_0x48dcfc);(((_0x3b4ea6=_0x3d78d6(_0x5f1d84))==null?void 0x0:_0x3b4ea6['name'])??void 0x0)!==_0x57a47e&&await _0x7e46bb(_0x5f1d84,{'name':_0x57a47e});},_0x164e0f=async(_0x51426d,_0x3bb7ac)=>{const _0x4687a9=_0x4cac93;var _0x3d9123;let _0x3dc279=Zi(_0x3bb7ac);(((_0x3d9123=_0x3d78d6(_0x51426d))==null?void 0x0:_0x3d9123[_0x4687a9(0x2f9)])??void 0x0)!==_0x3dc279&&await _0x7e46bb(_0x51426d,{'description':_0x3dc279});},_0x55802e=async(_0x3fc2fe,_0xf6e126)=>{const _0x43dc41=_0x4cac93;_0x134ca9&&_0x1d4039&&await _0x495e36[_0x43dc41(0x286)](_0x535c91['id'],{'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingIds':[_0x3fc2fe],'arrangeType':_0xf6e126});};return!_0x134ca9||!_0x1d4039?_0x386576('div',{'className':_0x4cac93(0x2fb),'children':_0x2b6071[_0x4cac93(0x127)]}):_0x386576(_0x171bbf,{'labels':_0x2b6071,'items':_0x1da710,'selectedIds':_0x1ed469,'focusedId':_0x43fd0c,'showHeader':!0x1,'onSelect':_0xc5b4c2,'onSetVisible':_0x417e69,'onSetSelectable':_0x213a09,'onCommitName':_0x382495,'onCommitDescription':_0x164e0f,'onMoveForward':async _0x5afb28=>_0x55802e(_0x5afb28,_0x32c897['forward']),'onMoveBackward':async _0x3cbfea=>_0x55802e(_0x3cbfea,_0x32c897[_0x4cac93(0x1bd)]),'onToggleSelectable':_0x473661});}function ea(){return _0x386576($i,{'PanelComponent':_0xaa2832});}let ta=class extends _0x2bb0e8{constructor(_0x3b22fc,_0x3235c5){const _0x28abf9=_0x232df7;super(),this['disposeWithMe'](_0x3b22fc['register'](Rr,ea)),this['disposeWithMe'](_0x3235c5[_0x28abf9(0x114)]({'BottomIcon':_0x7cbde6,'FlipHorizontalIcon':_0x3c3c9d,'FlipVerticalIcon':_0x134503,'MoveDownIcon':_0x1cd4bd,'MoveUpIcon':_0x5818fa,'ObjectLayersIcon':_0x562db7,'ShapeFormatSettingIcon':_0x4a1cd8,'TopmostIcon':_0xc502f4})),this[_0x28abf9(0x2db)](_0x3b22fc[_0x28abf9(0x114)](Jr,ti)),this[_0x28abf9(0x2db)](_0x3b22fc[_0x28abf9(0x114)](Yr,Qr)),_0x3b22fc[_0x28abf9(0x2f3)](_0x48d256)||this[_0x28abf9(0x2db)](_0x3b22fc['register'](_0x48d256,$r));}};ta=X([Y(0x0,_0x229e82(_0x2359f7)),Y(0x1,_0x229e82(_0x22aeed))],ta);let $=class extends _0x2bb0e8{constructor(_0x4a6dde){const _0x1468bd=_0x232df7;super(),this[_0x1468bd(0x11d)]=_0x4a6dde,q(this,'_editingParams$',new _0x519e70(null)),q(this,'editingParams$',this[_0x1468bd(0x24c)][_0x1468bd(0x281)]()),q(this,'_onSavingEditorData$',new _0x519e70(!0x1)),q(this,_0x1468bd(0x169),this[_0x1468bd(0x1b3)][_0x1468bd(0x281)]()),q(this,_0x1468bd(0x13a),void 0x0),this['disposeWithMe'](this[_0x1468bd(0x11d)][_0x1468bd(0x25a)][_0x1468bd(0x268)](()=>{const _0x20a7e6=_0x1468bd;let _0x3c5c91=this[_0x20a7e6(0x330)]();_0x3c5c91!=null&&_0x3c5c91[_0x20a7e6(0x346)]&&!this[_0x20a7e6(0x36f)](_0x3c5c91)&&this[_0x20a7e6(0x1f5)](null);}));}[_0x232df7(0x296)](){const _0x3fc2cb=_0x232df7;this[_0x3fc2cb(0x25b)](),this[_0x3fc2cb(0x24c)][_0x3fc2cb(0x360)](null),this[_0x3fc2cb(0x24c)][_0x3fc2cb(0x389)](),this[_0x3fc2cb(0x1b3)][_0x3fc2cb(0x360)](!0x1),this['_onSavingEditorData$'][_0x3fc2cb(0x389)](),super[_0x3fc2cb(0x296)]();}['setEditing'](_0x2b3606){const _0x2abd49=_0x232df7;(_0x2b3606==null||!_0x2b3606[_0x2abd49(0x346)]||this[_0x2abd49(0x36f)](_0x2b3606))&&(this[_0x2abd49(0x25b)](),this['_editingParams$']['next'](_0x2b3606),(_0x2b3606==null||_0x2b3606['visible']&&this[_0x2abd49(0x1b3)][_0x2abd49(0x1ad)]())&&this[_0x2abd49(0x1b3)][_0x2abd49(0x360)](!0x1));}[_0x232df7(0x107)](_0x489372){const _0x55247d=_0x232df7;this[_0x55247d(0x1b3)][_0x55247d(0x360)](_0x489372);}['getEditing'](){return this['_editingParams$']['getValue']();}[_0x232df7(0x36f)](_0x47cb9b){const _0x1f10a1=_0x232df7;let _0x42274f=this['_permissionService'][_0x1f10a1(0x31b)](new _0x48f387(_0x47cb9b[_0x1f10a1(0x1e3)])['id']),_0xb69482=this['_permissionService']['getPermissionPoint'](new _0x459023(_0x47cb9b['unitId'],_0x47cb9b[_0x1f10a1(0x26c)])['id']);return((_0x42274f==null?void 0x0:_0x42274f[_0x1f10a1(0x30f)])??!0x0)&&((_0xb69482==null?void 0x0:_0xb69482[_0x1f10a1(0x30f)])??!0x0);}['completeEditing'](_0x299331){const _0x16369f=_0x232df7;let _0x18172f=this['getEditing']();_0x18172f&&this[_0x16369f(0x13a)]===void 0x0&&(this[_0x16369f(0x107)](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x5c5d07=_0x16369f;this[_0x5c5d07(0x13a)]=void 0x0,this[_0x5c5d07(0x330)]()===_0x18172f&&this[_0x5c5d07(0x1f5)](null);}));}[_0x232df7(0x25b)](){const _0x1fb1f9=_0x232df7;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this[_0x1fb1f9(0x13a)]),this[_0x1fb1f9(0x13a)]=void 0x0);}[_0x232df7(0x14f)](){const _0x489de8=_0x232df7;this[_0x489de8(0x330)]()&&this['setEditing'](null);}};$=X([Y(0x0,_0x300477)],$);let na=class extends _0x2bb0e8{constructor(_0x37933b,_0x153aa6,_0x2c7d87,_0x38b951,_0x127d2a,_0x4da913){const _0x84ef78=_0x232df7;super(),this[_0x84ef78(0x35d)]=_0x37933b,this[_0x84ef78(0x1e1)]=_0x153aa6,this['_shapeTextEditingService']=_0x2c7d87,this[_0x84ef78(0x11c)]=_0x38b951,this[_0x84ef78(0x2b2)]=_0x127d2a,this[_0x84ef78(0x3aa)]=_0x4da913,q(this,_0x84ef78(0x1c2),null),this[_0x84ef78(0x221)](),this[_0x84ef78(0x375)](),this['_initEditingParams']();}[_0x232df7(0x221)](){const _0x256fcf=_0x232df7;let {scene:_0x485e9c}=this[_0x256fcf(0x35d)];this[_0x256fcf(0x2db)](_0x485e9c[_0x256fcf(0x1cc)][_0x256fcf(0x2e4)](_0xb5e394=>{const _0x5c3afb=_0x256fcf;let {offsetX:_0x40bf67,offsetY:_0x2d629b}=_0xb5e394,_0x534074=_0x485e9c[_0x5c3afb(0x10a)](_0x17a8a4[_0x5c3afb(0x32f)]([_0x40bf67,_0x2d629b]));if(_0x534074 instanceof J){let _0x52a1d7=this[_0x5c3afb(0x3aa)][_0x5c3afb(0x1cf)](_0x534074['unitId'],_0x534074[_0x5c3afb(0x26c)],_0x534074[_0x5c3afb(0x275)]);if(_0x52f76f(this[_0x5c3afb(0x3aa)]['getShapeType'](_0x534074[_0x5c3afb(0x1e3)],_0x534074[_0x5c3afb(0x26c)],_0x534074[_0x5c3afb(0x275)]))||_0x52a1d7!=null&&_0x52a1d7[_0x5c3afb(0x1c7)]()[_0x5c3afb(0x2da)])return;this[_0x5c3afb(0x101)]['setEditing']({'visible':!0x0,'unitId':_0x534074[_0x5c3afb(0x1e3)],'subUnitId':_0x534074[_0x5c3afb(0x26c)],'shapeId':_0x534074[_0x5c3afb(0x275)],'shapeKey':_0x534074[_0x5c3afb(0x283)]});}}));}[_0x232df7(0x375)](){const _0x591d48=_0x232df7;this[_0x591d48(0x2db)](this['_drawingManagerService'][_0x591d48(0x19a)]['subscribe'](_0x58f1f9=>{const _0x67c82f=_0x591d48;if(_0x58f1f9[_0x67c82f(0x333)]===0x1){let _0x4c8a8c=_0x58f1f9[0x0],_0x251d67=this['_drawingManagerService'][_0x67c82f(0x282)](_0x4c8a8c);if((_0x251d67==null?void 0x0:_0x251d67[_0x67c82f(0x183)])===_0x190419[_0x67c82f(0x21d)]){var _0xbed944;let _0x3c53af=this[_0x67c82f(0x101)][_0x67c82f(0x330)]();if((_0x3c53af==null?void 0x0:_0x3c53af['shapeId'])===_0x4c8a8c[_0x67c82f(0x36c)]&&_0x3c53af[_0x67c82f(0x346)])return;let _0x6d65c0=_0x52f76f(this[_0x67c82f(0x3aa)][_0x67c82f(0x134)](_0x4c8a8c[_0x67c82f(0x1e3)],_0x4c8a8c[_0x67c82f(0x26c)],_0x4c8a8c[_0x67c82f(0x36c)])),_0x21bee6=!!((_0xbed944=this[_0x67c82f(0x3aa)]['getShapeModel'](_0x4c8a8c[_0x67c82f(0x1e3)],_0x4c8a8c[_0x67c82f(0x26c)],_0x4c8a8c[_0x67c82f(0x36c)]))!=null&&_0xbed944['getShapeData']()[_0x67c82f(0x2da)]);(_0x6d65c0||_0x21bee6)&&this[_0x67c82f(0x101)][_0x67c82f(0x1f5)](null);}else this[_0x67c82f(0x101)][_0x67c82f(0x1d1)]();}else this['_shapeTextEditingService'][_0x67c82f(0x1d1)]();})),this[_0x591d48(0x2db)](this[_0x591d48(0x11c)][_0x591d48(0x36d)][_0x591d48(0x268)](_0x4e2b59=>{const _0x16c5b0=_0x591d48;let _0x3e11f2=this[_0x16c5b0(0x101)][_0x16c5b0(0x330)]();_0x3e11f2&&_0x4e2b59[_0x16c5b0(0x12e)](_0x4c0651=>_0x4c0651[_0x16c5b0(0x36c)]===_0x3e11f2[_0x16c5b0(0x275)])&&this['_shapeTextEditingService']['setEditing'](null);}));}[_0x232df7(0x2e9)](){const _0x3cd727=_0x232df7;this[_0x3cd727(0x2db)](this[_0x3cd727(0x101)]['editingParams$'][_0x3cd727(0x268)](_0x5931ee=>{const _0x5a2d98=_0x3cd727;let {scene:_0x8e4c89}=this['_context'];if(this[_0x5a2d98(0x1c2)]){let _0x844867=_0x8e4c89[_0x5a2d98(0x3a9)](this[_0x5a2d98(0x1c2)]);_0x844867&&_0x844867[_0x5a2d98(0x1f5)](!0x1);}if(_0x5931ee){let _0x1237ce=!!_0x5931ee[_0x5a2d98(0x346)],_0x276ed4=_0x8e4c89[_0x5a2d98(0x3a9)](_0x5931ee['shapeKey']);_0x276ed4&&(_0x276ed4[_0x5a2d98(0x1f5)](_0x1237ce),this[_0x5a2d98(0x1c2)]=_0x5931ee[_0x5a2d98(0x383)]),this[_0x5a2d98(0x2b2)][_0x5a2d98(0x152)](_0x29a73c,_0x1237ce);}else this[_0x5a2d98(0x1c2)]=null,this['_contextService'][_0x5a2d98(0x152)](_0x29a73c,!0x1);}));}};na=X([Y(0x1,_0x229e82(_0x3fb460)),Y(0x2,_0x229e82($)),Y(0x3,_0x3deb35),Y(0x4,_0x49d586),Y(0x5,_0x229e82(_0x5c2303))],na);var ra=class extends na{[_0x232df7(0x221)](){const _0x4149cb=_0x232df7;let {scene:_0x130e91}=this[_0x4149cb(0x35d)],_0x2b7fb3=this[_0x4149cb(0x1e1)][_0x4149cb(0x14a)](_0x8e92cf);this[_0x4149cb(0x2db)](_0x130e91[_0x4149cb(0x1cc)]['subscribeEvent'](_0x501d33=>{const _0x17baa2=_0x4149cb;let {offsetX:_0x5d474f,offsetY:_0x4d56a1}=_0x501d33,_0xacf96a=_0x130e91['pick'](_0x17a8a4[_0x17baa2(0x32f)]([_0x5d474f,_0x4d56a1]));if(!(_0xacf96a instanceof J))return;let _0x5548d8=this[_0x17baa2(0x3aa)][_0x17baa2(0x1cf)](_0xacf96a[_0x17baa2(0x1e3)],_0xacf96a[_0x17baa2(0x26c)],_0xacf96a['shapeId']);_0x52f76f(this[_0x17baa2(0x3aa)][_0x17baa2(0x134)](_0xacf96a[_0x17baa2(0x1e3)],_0xacf96a[_0x17baa2(0x26c)],_0xacf96a['shapeId']))||_0x5548d8!=null&&_0x5548d8[_0x17baa2(0x1c7)]()[_0x17baa2(0x2da)]||_0x2b7fb3[_0x17baa2(0x22b)]('text',{'hostType':_0xe0c4a6[_0x17baa2(0x277)],'unitId':_0xacf96a[_0x17baa2(0x1e3)],'subUnitId':_0xacf96a[_0x17baa2(0x26c)],'shapeId':_0xacf96a[_0x17baa2(0x275)]});}));}};const ia={...Ui};let aa=class extends _0x2bb0e8{constructor(_0x46d519,_0x38831a,_0x74a86,_0x253a4e,_0x133cf3,_0x17c1ae,_0xd1d488,_0x115e79){const _0x1158ff=_0x232df7;super(),this[_0x1158ff(0x220)]=_0x46d519,this[_0x1158ff(0x3aa)]=_0x38831a,this[_0x1158ff(0x232)]=_0x74a86,this[_0x1158ff(0x11c)]=_0x253a4e,this[_0x1158ff(0x1a1)]=_0x133cf3,this[_0x1158ff(0x2b2)]=_0x17c1ae,this['_renderManagerService']=_0xd1d488,this[_0x1158ff(0x101)]=_0x115e79,q(this,_0x1158ff(0x128),null),this[_0x1158ff(0x220)][_0x1158ff(0x36a)](ia),this[_0x1158ff(0x17d)](),this[_0x1158ff(0x2db)](this[_0x1158ff(0x101)][_0x1158ff(0x187)]['subscribe'](_0x3a8d5a=>{const _0xefaf6c=_0x1158ff;_0x3a8d5a&&this[_0xefaf6c(0x2d8)]();}));}[_0x232df7(0x179)](){const _0x4ae489=_0x232df7;this[_0x4ae489(0x128)]||=this[_0x4ae489(0x2db)](_0xd29261(this[_0x4ae489(0x209)],_0xe0c4a6[_0x4ae489(0x277)],_0x3c0e1e=>this['_popupMenuListener'](_0x3c0e1e)));}[_0x232df7(0x17d)](){const _0x5b3815=_0x232df7;this['_sheetCanvasPopManagerService'][_0x5b3815(0x28f)](_0x190419[_0x5b3815(0x21d)],(_0x41d373,_0x587cd2,_0x159db5,_0x2db5ab)=>{const _0x1003a7=_0x5b3815;let _0x405e56=this[_0x1003a7(0x3aa)]['getShapeTypeById'](_0x41d373,_0x587cd2,_0x159db5),_0x4fad0b=this[_0x1003a7(0x3aa)][_0x1003a7(0x329)](_0x41d373,_0x587cd2,_0x159db5),_0x1c1e63=_0x405e56!==void 0x0&&!_0x52f76f(_0x405e56)&&!(_0x4fad0b!=null&&_0x4fad0b['formulaBinding']);return[{'label':_0x1003a7(0x22a),'index':0x0,'commandId':qi['id'],'commandParams':{'unitId':_0x41d373,'subUnitId':_0x587cd2,'drawingId':_0x159db5,'mode':_0x1003a7(0x180)},'disable':!0x1},..._0x1c1e63?[{'label':_0x1003a7(0x2f4),'index':0x1,'commandId':qi['id'],'commandParams':{'unitId':_0x41d373,'subUnitId':_0x587cd2,'drawingId':_0x159db5,'mode':'text'},'disable':!0x1}]:[],{'label':'sheets-shape-ui.deleteShape','index':0x2,'commandId':_0x29b5e1['id'],'commandParams':{'unitId':_0x41d373,'drawings':[{'unitId':_0x41d373,'subUnitId':_0x587cd2,'drawingId':_0x159db5,'drawingType':_0x2db5ab}]},'disable':!0x1},{'label':_0x1003a7(0x16b),'index':0x3,'commandId':_0x1f7ef3['id'],'commandParams':{'unitId':_0x41d373,'subUnitId':_0x587cd2,'shapeId':_0x159db5,'flipH':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.flipVertical','index':0x4,'commandId':_0x1f7ef3['id'],'commandParams':{'unitId':_0x41d373,'subUnitId':_0x587cd2,'shapeId':_0x159db5,'flipV':!0x0},'disable':!0x1}];},'sheets-shape-ui.title');}[_0x232df7(0x228)](_0xbd6850){const _0x3706b4=_0x232df7;let _0x59b390=new _0x498b31(),_0x551e8a=null,_0x309aa3=()=>{const _0x25f8fa=_0x2028;if(!_0x551e8a)return;let _0xdae979=this[_0x25f8fa(0x11c)][_0x25f8fa(0x310)](),_0x48f68d=_0xdae979[_0x25f8fa(0x333)]===0x0||_0xdae979['length']===0x1&&_0xdae979[_0x25f8fa(0x12e)](_0x322ae8=>_0x322ae8[_0x25f8fa(0x1e3)]===(_0x551e8a==null?void 0x0:_0x551e8a['unitId'])&&_0x322ae8[_0x25f8fa(0x26c)]===(_0x551e8a==null?void 0x0:_0x551e8a['subUnitId'])&&_0x322ae8[_0x25f8fa(0x36c)]===(_0x551e8a==null?void 0x0:_0x551e8a[_0x25f8fa(0x36c)]));_0x551e8a=null,_0x48f68d&&(this['_contextService'][_0x25f8fa(0x152)](_0x20a63c,!0x1),this[_0x25f8fa(0x11c)][_0x25f8fa(0xf5)](null));};return _0x59b390[_0x3706b4(0x19c)](_0xbd6850[_0x3706b4(0x335)]['subscribe'](()=>{const _0x1fc451=_0x3706b4;let _0x61eed9=_0xbd6850[_0x1fc451(0x2ca)]();if(_0x61eed9[_0x1fc451(0x292)]>0x1){_0x309aa3();return;}let _0x926dec=_0x61eed9[_0x1fc451(0x212)]()[_0x1fc451(0x360)]()[_0x1fc451(0x30f)];if(!_0x926dec){_0x309aa3();return;}let _0x206396=this[_0x1fc451(0x11c)][_0x1fc451(0x254)](_0x926dec['oKey']);if(!_0x206396||_0x206396[_0x1fc451(0x183)]!==_0x190419[_0x1fc451(0x21d)]){_0x309aa3();return;}let {unitId:_0x307f30,subUnitId:_0xcf509,drawingId:_0x26c036}=_0x206396;_0x551e8a={'unitId':_0x307f30,'subUnitId':_0xcf509,'drawingId':_0x26c036},this['_contextService'][_0x1fc451(0x152)](_0x20a63c,!0x0),this['_drawingManagerService'][_0x1fc451(0x310)]()['find'](_0x15547e=>_0x15547e['unitId']===_0x307f30&&_0x15547e[_0x1fc451(0x26c)]===_0xcf509&&_0x15547e['drawingId']===_0x26c036)||this['_drawingManagerService']['focusDrawing']([{'unitId':_0x307f30,'subUnitId':_0xcf509,'drawingId':_0x26c036}]);})),_0x59b390[_0x3706b4(0x19c)](_0xbd6850[_0x3706b4(0x1cd)]['subscribe'](()=>{_0x309aa3();})),_0x169987(()=>{const _0x3aa3c3=_0x3706b4;_0x59b390[_0x3aa3c3(0x296)](),_0x309aa3();});}[_0x232df7(0x2d8)](){const _0x4e654c=_0x232df7;this[_0x4e654c(0x2b2)][_0x4e654c(0x152)](_0x20a63c,!0x1),this['_drawingManagerService'][_0x4e654c(0xf5)](null);}};aa=X([Y(0x0,_0x4cc398),Y(0x1,_0x229e82(_0x5c2303)),Y(0x2,_0x1b156e),Y(0x3,_0x3deb35),Y(0x4,_0x229e82(_0x5969c8)),Y(0x5,_0x49d586),Y(0x6,_0x422c1e),Y(0x7,_0x229e82($))],aa);function oa(_0x290bf6,_0x178101,_0x496699,_0x5663a5){const _0x180832=_0x232df7;let _0x4c603b=_0x118346(_0x290bf6,_0x178101,_0x496699),_0x1c53c8=[];for(let _0x5708ec of _0x178101){let _0x6cf43f=_0x4c603b['idMap'][_0x180832(0x14a)](_0x5708ec[_0x180832(0x36c)]),_0x18c04e=_0x5663a5(_0x5708ec);_0x6cf43f&&_0x18c04e&&_0x1c53c8[_0x180832(0x29a)]({'targetShapeId':_0x6cf43f,'source':_0x18c04e});}return _0x1c53c8;}let sa=class extends _0x2bb0e8{constructor(_0x90451,_0x2b1a9a,_0x2a01cd,_0x16e2bd){const _0x2a43e7=_0x232df7;super(),this[_0x2a43e7(0x2d4)]=_0x90451,this[_0x2a43e7(0x1a5)]=_0x2b1a9a,this[_0x2a43e7(0x1fa)]=_0x2a01cd,this['_sheetsShapeService']=_0x16e2bd,this['_initSheetChange']();}[_0x232df7(0xf4)](){const _0x4bf561=_0x232df7;this[_0x4bf561(0x2db)](this[_0x4bf561(0x1a5)][_0x4bf561(0x2c3)]({'getMutations':_0x3f7dca=>{const _0x1d719a=_0x4bf561;if(_0x3f7dca['id']===_0x8eced1['id']){let _0x425ac6=_0x2dc1b6(this[_0x1d719a(0x2d4)],_0x3f7dca[_0x1d719a(0x1aa)]);if(!_0x425ac6)return{'redos':[],'undos':[]};let {unitId:_0x442e3f,subUnitId:_0x527940}=_0x425ac6,_0x49ffd9=this['_sheetDrawingService']['getDrawingData'](_0x442e3f,_0x527940),_0xa31ac5=Object[_0x1d719a(0x212)](_0x49ffd9)[_0x1d719a(0x34b)](_0x320a32=>_0x320a32['drawingType']===_0x190419[_0x1d719a(0x21d)]);if(_0xa31ac5['length']===0x0)return{'redos':[],'undos':[]};let _0x272af5=[],_0x40f935=[];for(let _0xa4e384=0x0;_0xa4e384<_0xa31ac5['length'];_0xa4e384++){let _0x26feb0=_0xa31ac5[_0xa4e384],_0xb9fd72=this[_0x1d719a(0x3aa)]['getShapeModel'](_0x26feb0['unitId'],_0x26feb0[_0x1d719a(0x26c)],_0x26feb0[_0x1d719a(0x36c)]);_0xb9fd72&&(_0x272af5[_0x1d719a(0x29a)]({'id':_0x10857b['id'],'params':{'unitId':_0x442e3f,'subUnitId':_0x527940,'shapeId':_0x26feb0[_0x1d719a(0x36c)]}}),_0x40f935[_0x1d719a(0x29a)]({'id':_0x5cdf0c['id'],'params':{'unitId':_0x442e3f,'subUnitId':_0x527940,'shapeId':_0x26feb0[_0x1d719a(0x36c)],'shapeType':_0xb9fd72[_0x1d719a(0x134)](),'shapeData':JSON[_0x1d719a(0x37b)](JSON[_0x1d719a(0x1c4)](_0xb9fd72[_0x1d719a(0x1c7)]()))}}));}return{'redos':_0x272af5,'undos':_0x40f935};}if(_0x3f7dca['id']===_0xbddc40['id']){let {unitId:_0x4ef3d3,subUnitId:_0x30d54a,targetSubUnitId:_0x233b32,copyContext:_0x56600f}=_0x3f7dca[_0x1d719a(0x1aa)];if(!_0x4ef3d3||!_0x30d54a||!_0x233b32)return{'redos':[],'undos':[]};let _0x1c6c1f=this[_0x1d719a(0x1fa)][_0x1d719a(0x11b)](_0x4ef3d3,_0x30d54a),_0x4368a7=Object[_0x1d719a(0x212)](_0x1c6c1f)[_0x1d719a(0x34b)](_0x773a4f=>_0x773a4f['drawingType']===_0x190419[_0x1d719a(0x21d)]);if(_0x4368a7[_0x1d719a(0x333)]===0x0)return{'redos':[],'undos':[]};let _0x25b218=oa(_0x56600f,_0x4368a7,{'unitId':_0x4ef3d3,'sourceSubUnitId':_0x30d54a,'targetSubUnitId':_0x233b32},_0x5353dd=>{const _0x173528=_0x1d719a;let _0x17e223=this[_0x173528(0x3aa)][_0x173528(0x1cf)](_0x5353dd[_0x173528(0x1e3)],_0x5353dd['subUnitId'],_0x5353dd[_0x173528(0x36c)]);if(_0x17e223)return{'shapeType':_0x17e223[_0x173528(0x134)](),'shapeData':JSON['parse'](JSON[_0x173528(0x1c4)](_0x17e223['getShapeData']()))};}),_0x2c9f87=[],_0xf9025a=[];for(let {targetShapeId:_0x33a796,source:_0x479748}of _0x25b218)_0x2c9f87[_0x1d719a(0x29a)]({'id':_0x5cdf0c['id'],'params':{'unitId':_0x4ef3d3,'subUnitId':_0x233b32,'shapeId':_0x33a796,'shapeType':_0x479748[_0x1d719a(0x15b)],'shapeData':_0x479748[_0x1d719a(0x1b6)]}}),_0xf9025a['push']({'id':_0x10857b['id'],'params':{'unitId':_0x4ef3d3,'subUnitId':_0x233b32,'shapeId':_0x33a796}});return{'redos':_0x2c9f87,'undos':_0xf9025a};}return{'redos':[],'undos':[]};}}));}};sa=X([Y(0x0,_0x229e82(_0x304294)),Y(0x1,_0x229e82(_0x427085)),Y(0x2,_0x229e82(_0x4458c8)),Y(0x3,_0x229e82(_0x5c2303))],sa);let ca=class extends _0x2bb0e8{constructor(_0xeac7b,_0x2318f9,_0x22243e,_0x13c4b2,_0x46c6ec,_0x5d747f){const _0xdc4fe5=_0x232df7;super(),this[_0xdc4fe5(0x232)]=_0xeac7b,this['_renderManagerService']=_0x2318f9,this[_0xdc4fe5(0x11c)]=_0x22243e,this[_0xdc4fe5(0x16d)]=_0x13c4b2,this[_0xdc4fe5(0x1e2)]=_0x46c6ec,this['_sheetDrawingShapeRenderController']=_0x5d747f,q(this,_0xdc4fe5(0x382),new Set()),this[_0xdc4fe5(0x27f)]();}[_0x232df7(0x27f)](){const _0x1af5ba=_0x232df7;this[_0x1af5ba(0x141)](),this[_0x1af5ba(0x279)](),this[_0x1af5ba(0x33d)]();}[_0x232df7(0x141)](){const _0xb11ce0=_0x232df7;this[_0xb11ce0(0x2db)](this[_0xb11ce0(0x11c)]['add$']['subscribe'](_0x28a0c3=>{const _0x4ae0c1=_0xb11ce0;this[_0x4ae0c1(0x12c)](_0x28a0c3);}));}[_0x232df7(0x279)](){const _0x530056=_0x232df7;this[_0x530056(0x2db)](this[_0x530056(0x232)][_0x530056(0x224)]((_0x1963bb,_0x188931)=>{const _0x193c19=_0x530056;if(_0x1963bb['id']===_0x4af43a['id']){let {unitId:_0xc25544,subUnitId:_0x143381,shapeId:_0x2d8356}=_0x1963bb['params'],_0x336393=this[_0x193c19(0x293)](_0xc25544),_0x2ac48e=_0x3023e5({'unitId':_0xc25544,'subUnitId':_0x143381,'drawingId':_0x2d8356}),_0x12184b=_0x336393==null?void 0x0:_0x336393[_0x193c19(0x381)][_0x193c19(0x3a9)](_0x2ac48e);_0x12184b&&(this[_0x193c19(0x199)][_0x193c19(0x306)](_0x12184b),this[_0x193c19(0x199)]['refreshFormulaPresentation'](_0x12184b,{'unitId':_0xc25544,'subUnitId':_0x143381,'shapeId':_0x2d8356}),_0x12184b['makeDirty'](!0x0));}else{if(_0x1963bb['id']===_0x5cdf0c['id']){var _0x347fef;let {unitId:_0x3ae1ad,subUnitId:_0x574283,shapeId:_0x196b37}=_0x1963bb[_0x193c19(0x1aa)],_0x54fa66=this[_0x193c19(0x293)](_0x3ae1ad);if(_0x54fa66==null)return;let {scene:_0x2b7a34}=_0x54fa66,_0x9ef5=_0x3023e5({'unitId':_0x3ae1ad,'subUnitId':_0x574283,'drawingId':_0x196b37}),_0x131389=_0x2b7a34[_0x193c19(0x3a9)](_0x9ef5);if(!((_0x347fef=this[_0x193c19(0x209)][_0x193c19(0x124)](_0x3ae1ad))!=null&&_0x347fef[_0x193c19(0x18c)](_0x54a66d)[_0x193c19(0x38a)](_0x574283)))return!0x1;if(_0x131389)return;if(_0x188931!=null&&_0x188931[_0x193c19(0x34d)]){queueMicrotask(()=>{const _0x1c6788=_0x193c19;this[_0x1c6788(0x323)]||this[_0x1c6788(0x12c)]([{'unitId':_0x3ae1ad,'subUnitId':_0x574283,'drawingId':_0x196b37}]);});return;}this['_insertShapes']([{'unitId':_0x3ae1ad,'subUnitId':_0x574283,'drawingId':_0x196b37}]);}}}));}[_0x232df7(0x33d)](){const _0x260a55=_0x232df7;this['disposeWithMe'](this['_drawingManagerService'][_0x260a55(0x274)]['subscribe'](_0x19ebbd=>{const _0x2f5325=_0x260a55;_0x19ebbd[_0x2f5325(0x385)](_0x44f3cc=>{const _0x33a668=_0x2f5325;let {unitId:_0x582bd8,subUnitId:_0x96890e,drawingId:_0x2d0851}=_0x44f3cc,_0x3babca=this[_0x33a668(0x11c)][_0x33a668(0x282)](_0x44f3cc);if(_0x3babca==null)return;let {transform:_0x44509d,drawingType:_0x21328a,srcRect:_0x459723,prstGeom:_0x15aa54}=_0x3babca;if(_0x21328a!==_0x190419[_0x33a668(0x21d)])return;let _0x5582b5=this[_0x33a668(0x293)](_0x582bd8);if(_0x5582b5==null)return;let {scene:_0x45ad8a,transformer:_0x5c6a4d}=_0x5582b5;if(_0x44509d==null)return!0x0;let _0x309066=_0x3023e5({'unitId':_0x582bd8,'subUnitId':_0x96890e,'drawingId':_0x2d0851}),_0x35b180=_0x45ad8a['getObjectIncludeInGroup'](_0x309066);if(_0x35b180==null)return!0x0;_0x35b180['setSrcRect'](_0x459723),_0x35b180[_0x33a668(0x1fd)](_0x15aa54);});}));}[_0x232df7(0x12c)](_0x3c70cb){const _0x2205a5=_0x232df7;for(let _0x3fb071 of _0x3c70cb){var _0x4c0b7b;let {unitId:_0x3cab40,subUnitId:_0x2dfb54,drawingId:_0x35cc08}=_0x3fb071,_0x133374=this[_0x2205a5(0x293)](_0x3cab40),_0x48f7e7=(_0x4c0b7b=_0x15a737(this[_0x2205a5(0x16d)],_0x3cab40))==null?void 0x0:_0x4c0b7b[_0x2205a5(0x26c)];if(_0x133374==null||_0x48f7e7!==_0x2dfb54)return;let _0x3b5d43=_0x3023e5({'unitId':_0x3cab40,'subUnitId':_0x2dfb54,'drawingId':_0x35cc08});if(this['_insertingShapeKeys']['has'](_0x3b5d43)||_0x133374[_0x2205a5(0x381)][_0x2205a5(0x3a9)](_0x3b5d43)!=null)return;let _0x3397ec=this[_0x2205a5(0x11c)][_0x2205a5(0x282)](_0x3fb071);if(_0x3397ec==null||_0x3397ec[_0x2205a5(0x183)]!==_0x190419[_0x2205a5(0x21d)])return;let _0x127fc0=_0x3397ec['data']||{};if(_0x52f76f(_0x127fc0[_0x2205a5(0x15b)])){let _0x5af5aa=_0x3397ec[_0x2205a5(0x15f)];_0x5af5aa&&(_0x3397ec[_0x2205a5(0x15f)]={..._0x5af5aa,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x2205a5(0x382)][_0x2205a5(0x19c)](_0x3b5d43);try{this[_0x2205a5(0x199)][_0x2205a5(0x226)](_0x3397ec,_0x133374[_0x2205a5(0x381)]);}finally{this['_insertingShapeKeys'][_0x2205a5(0x2a9)](_0x3b5d43);}queueMicrotask(()=>{const _0x5ef969=_0x2205a5;if(this[_0x5ef969(0x323)])return;let _0xf3b528=_0x3023e5(_0x3fb071);if(!_0x133374[_0x5ef969(0x381)][_0x5ef969(0x3a9)](_0xf3b528))return;let _0x71b203=this[_0x5ef969(0x11c)][_0x5ef969(0x282)](_0x3fb071);_0x71b203&&this['_drawingManagerService']['refreshTransform']([_0x71b203]);});}}[_0x232df7(0x293)](_0x3aca48){const _0x5c8c76=_0x232df7;if(_0x3aca48==null)return;let _0x5e9119=this[_0x5c8c76(0x209)]['getRenderUnitById'](_0x3aca48),_0x15f595=_0x5e9119==null?void 0x0:_0x5e9119[_0x5c8c76(0x381)];return _0x15f595==null?null:{'scene':_0x15f595,'transformer':_0x15f595[_0x5c8c76(0x372)]()};}};ca=X([Y(0x0,_0x1b156e),Y(0x1,_0x422c1e),Y(0x2,_0x3deb35),Y(0x3,_0x304294),Y(0x4,_0x229e82(_0x40a01d)),Y(0x5,_0x229e82(Z))],ca);const la={'normal':{'fill':_0x4c61a8[_0x232df7(0x256)],'stroke':_0x4c61a8[_0x232df7(0x12a)],'strokeWidth':_0x4c61a8[_0x232df7(0x340)]},'highlighted':{'fill':_0x232df7(0x2cc),'stroke':_0x232df7(0x136),'strokeWidth':0x2}};var ua=class extends _0x147ce5{constructor(_0x2a0fa7,_0x4651de){const _0x213134=_0x232df7;super(_0x2a0fa7,_0x4651de),q(this,_0x213134(0x21c),''),q(this,_0x213134(0x3a6),-0x1),q(this,_0x213134(0x102),''),q(this,_0x213134(0x161),''),q(this,_0x213134(0xff),!0x1),_0x4651de&&this[_0x213134(0x1da)](_0x4651de);}['getConnectionInfo'](){const _0xf1a425=_0x232df7;return{'unitId':this['_unitId'],'subUnitId':this[_0xf1a425(0x161)],'shapeId':this[_0xf1a425(0x21c)],'cxnIndex':this['_cxnIndex']};}[_0x232df7(0x326)](_0xd4399c){const _0x30d571=_0x232df7;this[_0x30d571(0xff)]!==_0xd4399c&&(this[_0x30d571(0xff)]=_0xd4399c,this[_0x30d571(0x390)](!0x0));}['isHighlighted'](){const _0x55e00d=_0x232df7;return this[_0x55e00d(0xff)];}['setShapeProps'](_0x469cf5){const _0x290222=_0x232df7;_0x469cf5[_0x290222(0x170)]!==void 0x0&&(this[_0x290222(0x21c)]=_0x469cf5[_0x290222(0x170)]),_0x469cf5[_0x290222(0x1fb)]!==void 0x0&&(this[_0x290222(0x3a6)]=_0x469cf5[_0x290222(0x1fb)]),_0x469cf5[_0x290222(0x1e3)]!==void 0x0&&(this['_unitId']=_0x469cf5[_0x290222(0x1e3)]),_0x469cf5['subUnitId']!==void 0x0&&(this[_0x290222(0x161)]=_0x469cf5[_0x290222(0x26c)]),_0x469cf5[_0x290222(0xf7)]!==void 0x0&&(this[_0x290222(0xff)]=_0x469cf5[_0x290222(0xf7)]),this['transformByState']({'width':_0x469cf5[_0x290222(0x324)]??_0x4c61a8[_0x290222(0x215)]*0x2,'height':_0x469cf5[_0x290222(0x39a)]??_0x4c61a8[_0x290222(0x215)]*0x2});}['_draw'](_0x20d616){const _0x8ebbd=_0x232df7;let _0x205d0a=this[_0x8ebbd(0xff)]?la[_0x8ebbd(0x2c5)]:la[_0x8ebbd(0x366)];_0x4a02a1['drawWith'](_0x20d616,{'radius':_0x4c61a8['cxnPointRadius'],'fill':_0x205d0a['fill'],'stroke':_0x205d0a[_0x8ebbd(0x196)],'strokeWidth':_0x205d0a['strokeWidth'],'evented':!0x0});}};let da=class extends _0x2bb0e8{constructor(_0x9d369a,_0x56795e,_0x2ea102,_0x71e715){const _0x63afc6=_0x232df7;super(),this['_context']=_0x9d369a,this[_0x63afc6(0x209)]=_0x56795e,this['_drawingManagerService']=_0x2ea102,this['_sheetsShapeService']=_0x71e715,q(this,_0x63afc6(0x370),[]),q(this,_0x63afc6(0xe6),null),q(this,_0x63afc6(0x37f),-0x1),q(this,_0x63afc6(0x231),null),q(this,'_unitId',''),q(this,'_subUnitId',''),q(this,_0x63afc6(0x350),null);}['startConnectionDetection'](_0x4b4b42,_0x51c197,_0x55f1e9,_0x292048){const _0x2ebe71=_0x232df7;this['_currentScene']=_0x4b4b42,this[_0x2ebe71(0x102)]=_0x51c197,this[_0x2ebe71(0x161)]=_0x55f1e9,this['_draggingConnectorId']=_0x292048;}['updateConnectionDetection'](_0x3293a8){const _0x1a9425=_0x232df7;if(!this[_0x1a9425(0x231)])return null;let _0x44a4fa=this['_findShapeAtPoint'](_0x3293a8);return _0x44a4fa?(this[_0x1a9425(0xe6)]!==_0x44a4fa[_0x1a9425(0x275)]&&(this['_clearConnectionSites'](),this['_showConnectionSites'](_0x44a4fa[_0x1a9425(0x275)],_0x44a4fa[_0x1a9425(0x2c9)]),this['_activeTargetShapeId']=_0x44a4fa[_0x1a9425(0x275)]),this[_0x1a9425(0x23b)](_0x3293a8)):(this[_0x1a9425(0xe6)]!==null&&(this[_0x1a9425(0x10c)](),this[_0x1a9425(0xe6)]=null),null);}[_0x232df7(0x380)](){const _0x239646=_0x232df7;this[_0x239646(0x10c)](),this['_currentScene']=null,this['_activeTargetShapeId']=null,this[_0x239646(0x37f)]=-0x1,this[_0x239646(0x350)]=null;}[_0x232df7(0x202)](){const _0x1effe4=_0x232df7;return this[_0x1effe4(0xe6)]===null||this[_0x1effe4(0x37f)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x1effe4(0x37f)]};}[_0x232df7(0x32c)](_0x1911b0){const _0x26d6f7=_0x232df7;let _0xf28e87=this['_drawingManagerService'][_0x26d6f7(0x11b)](this['_unitId'],this['_subUnitId']);for(let _0x58b4de of Object['keys'](_0xf28e87)){if(_0x58b4de===this[_0x26d6f7(0x350)]||_0xf28e87[_0x58b4de][_0x26d6f7(0x183)]!==_0x190419[_0x26d6f7(0x21d)])continue;let _0x14e9c0=this[_0x26d6f7(0x3aa)]['getShapeModel'](this[_0x26d6f7(0x102)],this[_0x26d6f7(0x161)],_0x58b4de);if(!_0x14e9c0||_0x52f76f(_0x14e9c0[_0x26d6f7(0x134)]())||_0x14e9c0['getConnectionSiteList']()[_0x26d6f7(0x333)]===0x0||!this[_0x26d6f7(0x231)])continue;let _0x430ff6=_0x3023e5({'unitId':this[_0x26d6f7(0x102)],'subUnitId':this['_subUnitId'],'drawingId':_0x58b4de}),_0x270e28=this['_currentScene']['getObjectIncludeInGroup'](_0x430ff6);if(!_0x270e28)continue;let {left:_0x1ed74b,top:_0x320e80,width:_0x44b030,height:_0x292d95}=_0x270e28[_0x26d6f7(0x213)](),_0x548fa4=_0x1ed74b+_0x44b030/0x2,_0x7624c8=_0x320e80+_0x292d95/0x2,_0x36128a=_0x270e28[_0x26d6f7(0x15f)]['getMatrix'](),_0x3ee918=new _0x9667eb([_0x36128a[0x0],_0x36128a[0x1],_0x36128a[0x2],_0x36128a[0x3],_0x548fa4,_0x7624c8]),_0x140924=_0x270e28['getParent'](),_0x176334=(_0x270e28[_0x26d6f7(0xe3)]&&(_0x140924==null?void 0x0:_0x140924[_0x26d6f7(0x398)])===_0x432f17[_0x26d6f7(0x34e)]?_0x140924[_0x26d6f7(0x21b)][_0x26d6f7(0x2a1)](_0x3ee918):_0x3ee918)[_0x26d6f7(0x354)]()[_0x26d6f7(0x30c)](_0x1911b0),_0x495892=_0x44b030/0x2,_0x5e39f0=_0x292d95/0x2;if(_0x176334['x']>=-_0x495892-0x5&&_0x176334['x']<=_0x495892+0x5&&_0x176334['y']>=-_0x5e39f0-0x5&&_0x176334['y']<=_0x5e39f0+0x5)return{'shapeId':_0x58b4de,'shapeModel':_0x14e9c0};}return null;}[_0x232df7(0x297)](_0xc53f98,_0x1439c3){const _0x10b7b8=_0x232df7;if(!this[_0x10b7b8(0x231)])return;let _0x441c4a=_0x3023e5({'unitId':this[_0x10b7b8(0x102)],'subUnitId':this[_0x10b7b8(0x161)],'drawingId':_0xc53f98}),_0x287d20=this[_0x10b7b8(0x231)]['getObjectIncludeInGroup'](_0x441c4a);if(!_0x287d20)return;let {left:_0x23f93b,top:_0x308e3d,width:_0x40def9,height:_0x32a79a}=_0x287d20[_0x10b7b8(0x213)](),_0x1edd19=_0x23f93b+_0x40def9/0x2,_0x4a7dad=_0x308e3d+_0x32a79a/0x2,_0x30195a=_0x287d20[_0x10b7b8(0x15f)][_0x10b7b8(0x27c)](),_0x5deb4d=new _0x9667eb([_0x30195a[0x0],_0x30195a[0x1],_0x30195a[0x2],_0x30195a[0x3],_0x1edd19,_0x4a7dad]),_0x3bf56d=_0x287d20[_0x10b7b8(0x1e5)](),_0x239a0d=_0x287d20[_0x10b7b8(0xe3)]&&(_0x3bf56d==null?void 0x0:_0x3bf56d[_0x10b7b8(0x398)])===_0x432f17[_0x10b7b8(0x34e)]?_0x3bf56d[_0x10b7b8(0x21b)][_0x10b7b8(0x2a1)](_0x5deb4d):_0x5deb4d;_0x1439c3['updateContext']({'width':_0x40def9,'height':_0x32a79a});let _0x51abd3=_0x1439c3['getConnectionSiteList']();for(let _0x5ddbc6 of _0x51abd3){let _0x5d4f30=_0x5ddbc6['x']-_0x40def9/0x2,_0x5d7278=_0x5ddbc6['y']-_0x32a79a/0x2,_0x4929fe=_0x239a0d['applyPoint']({'x':_0x5d4f30,'y':_0x5d7278}),_0x33694d=_0x4929fe['x'],_0x9052e=_0x4929fe['y'],_0x284ac6=new ua(_0x10b7b8(0x2c4)+_0xc53f98+'-'+_0x5ddbc6[_0x10b7b8(0x198)],{'left':_0x33694d-_0x4c61a8[_0x10b7b8(0x215)],'top':_0x9052e-_0x4c61a8[_0x10b7b8(0x215)],'targetShapeId':_0xc53f98,'cxnIndex':_0x5ddbc6[_0x10b7b8(0x198)],'unitId':this[_0x10b7b8(0x102)],'subUnitId':this['_subUnitId'],'width':_0x4c61a8[_0x10b7b8(0x215)]*0x2,'height':_0x4c61a8[_0x10b7b8(0x215)]*0x2,'zIndex':_0x4489b8+0x2,'evented':!0x1});this[_0x10b7b8(0x370)][_0x10b7b8(0x29a)](_0x284ac6),this[_0x10b7b8(0x231)][_0x10b7b8(0x23d)](_0x284ac6,_0x4489b8+0x2);}}[_0x232df7(0x23b)](_0x186c7d){const _0x544745=_0x232df7;let _0x1926c8=null,_0x3e9ab8=0x1/0x0,_0x99ebda=null;for(let _0x145fc2 of this[_0x544745(0x370)]){let _0xc6462b=_0x145fc2[_0x544745(0xe4)]+_0x4c61a8[_0x544745(0x215)],_0x181675=_0x145fc2[_0x544745(0x1b9)]+_0x4c61a8['cxnPointRadius'],_0x5bce06=_0x186c7d['x']-_0xc6462b,_0x370de4=_0x186c7d['y']-_0x181675,_0x369238=Math[_0x544745(0x241)](_0x5bce06*_0x5bce06+_0x370de4*_0x370de4);_0x369238<_0x3e9ab8&&(_0x3e9ab8=_0x369238,_0x1926c8=_0x145fc2,_0x99ebda={'x':_0xc6462b,'y':_0x181675});}let _0x1d3f68=_0x3e9ab8<=0xa&&_0x1926c8?_0x1926c8['getConnectionInfo']()[_0x544745(0x1fb)]:-0x1;if(_0x1d3f68!==this[_0x544745(0x37f)]){for(let _0x8b51e8 of this[_0x544745(0x370)]){let _0x8f99c5=_0x8b51e8['getConnectionInfo']();_0x8b51e8[_0x544745(0x326)](_0x8f99c5[_0x544745(0x1fb)]===_0x1d3f68);}this[_0x544745(0x37f)]=_0x1d3f68;}if(_0x3e9ab8<=0xa&&_0x1926c8&&_0x99ebda){let _0x2b3ebf=_0x1926c8[_0x544745(0x2e5)](),_0x387a8e=this[_0x544745(0x1c5)](_0x2b3ebf[_0x544745(0x275)],_0x2b3ebf[_0x544745(0x1fb)]);return{'shapeId':_0x2b3ebf[_0x544745(0x275)],'cxnIndex':_0x2b3ebf[_0x544745(0x1fb)],'unitId':_0x2b3ebf[_0x544745(0x1e3)],'subUnitId':_0x2b3ebf[_0x544745(0x26c)],'worldPoint':_0x99ebda,'angle':_0x387a8e};}return null;}[_0x232df7(0x1c5)](_0x3039b0,_0x5e0062){const _0x41b530=_0x232df7;let _0x5035ab=this[_0x41b530(0x3aa)][_0x41b530(0x1cf)](this[_0x41b530(0x102)],this[_0x41b530(0x161)],_0x3039b0);if(!_0x5035ab)return 0x0;let _0x37b681=this[_0x41b530(0x11c)][_0x41b530(0x282)]({'unitId':this[_0x41b530(0x102)],'subUnitId':this[_0x41b530(0x161)],'drawingId':_0x3039b0});if(!(_0x37b681!=null&&_0x37b681['transform']))return 0x0;let {width:_0xf5e6e2=0x0,height:_0x2c0c19=0x0,flipX:_0x31d113=!0x1,flipY:_0x18863e=!0x1}=_0x37b681[_0x41b530(0x15f)];_0x5035ab[_0x41b530(0x2bd)]({'width':_0xf5e6e2,'height':_0x2c0c19});let _0x469d96=_0x5035ab['getConnectionSiteList']()['find'](_0x4fa783=>_0x4fa783[_0x41b530(0x198)]===_0x5e0062);if(!_0x469d96)return 0x0;let _0x5675cf=_0x469d96['ang']/0xea60;return _0x31d113&&(_0x5675cf=0xb4-_0x5675cf),_0x18863e&&(_0x5675cf=-_0x5675cf),_0x5675cf=(_0x5675cf%0x168+0x168)%0x168,_0x5675cf;}[_0x232df7(0x10c)](){const _0x9fbbfa=_0x232df7;for(let _0xbfb74a of this[_0x9fbbfa(0x370)])_0xbfb74a[_0x9fbbfa(0x296)]();this[_0x9fbbfa(0x370)]=[],this[_0x9fbbfa(0x37f)]=-0x1;}[_0x232df7(0x296)](){const _0x161949=_0x232df7;this[_0x161949(0x10c)](),super['dispose']();}};da=X([Y(0x1,_0x229e82(_0x422c1e)),Y(0x2,_0x229e82(_0x3deb35)),Y(0x3,_0x229e82(_0x5c2303))],da);let fa=class extends _0x2bb0e8{constructor(_0x589936,_0x5c69a0,_0x1473d1,_0x55df34,_0x24b688){const _0x49485c=_0x232df7;super(),this[_0x49485c(0x316)]=_0x589936,this[_0x49485c(0x19e)]=_0x5c69a0,this['_sheetDrawingService']=_0x1473d1,this['_shapeService']=_0x55df34,this[_0x49485c(0x2b4)]=_0x24b688,q(this,'_copyInfo',void 0x0),this[_0x49485c(0x24d)](),this[_0x49485c(0x16c)]();}get['_focusedDrawings'](){const _0x390121=_0x232df7;return this[_0x390121(0x1fa)][_0x390121(0x310)]();}[_0x232df7(0x16c)](){const _0x238d68=_0x232df7;this[_0x238d68(0x2b4)][_0x238d68(0x28b)](({fromUnitId:_0x57984d,fromSubUnitId:_0x202093,toUnitId:_0x2c49ed,toSubUnitId:_0x1ffe02,idMap:_0x5eabbc})=>{const _0x539017=_0x238d68;let _0x386713=[],_0x36fc46=[];for(let [_0x14e1b4,_0x35d1a6]of _0x5eabbc[_0x539017(0x17e)]()){let _0x47d1bd=this['_shapeService'][_0x539017(0x1cf)](_0x57984d,_0x202093,_0x14e1b4);if(!_0x47d1bd)continue;let _0x1d00aa=_0x47d1bd[_0x539017(0x134)](),_0x597d06=JSON[_0x539017(0x37b)](JSON[_0x539017(0x1c4)](_0x47d1bd[_0x539017(0x1c7)]()));if(_0x597d06[_0x539017(0x2df)]){var _0x3c3b23,_0x26b7da;let _0x3f9b93=(_0x3c3b23=_0x597d06[_0x539017(0x2df)]['from'])==null?void 0x0:_0x3c3b23[_0x539017(0x275)],_0x4702f3=(_0x26b7da=_0x597d06['relation']['to'])==null?void 0x0:_0x26b7da[_0x539017(0x275)],_0x59d021=!_0x3f9b93||_0x5eabbc['has'](_0x3f9b93),_0x58621f=!_0x4702f3||_0x5eabbc[_0x539017(0x104)](_0x4702f3);_0x59d021&&_0x3f9b93&&_0x597d06['relation'][_0x539017(0x139)]?_0x597d06[_0x539017(0x2df)][_0x539017(0x139)]={..._0x597d06[_0x539017(0x2df)][_0x539017(0x139)],'shapeId':_0x5eabbc['get'](_0x3f9b93)}:_0x597d06[_0x539017(0x2df)][_0x539017(0x139)]=void 0x0,_0x58621f&&_0x4702f3&&_0x597d06[_0x539017(0x2df)]['to']?_0x597d06[_0x539017(0x2df)]['to']={..._0x597d06[_0x539017(0x2df)]['to'],'shapeId':_0x5eabbc[_0x539017(0x14a)](_0x4702f3)}:_0x597d06[_0x539017(0x2df)]['to']=void 0x0;}_0x386713[_0x539017(0x29a)]({'id':_0x5cdf0c['id'],'params':{'unitId':_0x2c49ed,'subUnitId':_0x1ffe02,'shapeId':_0x35d1a6,'shapeType':_0x1d00aa,'shapeData':_0x597d06}}),_0x36fc46[_0x539017(0x29a)]({'id':_0x10857b['id'],'params':{'unitId':_0x2c49ed,'subUnitId':_0x1ffe02,'shapeId':_0x35d1a6}});}return{'redos':_0x386713,'undos':_0x36fc46};});}[_0x232df7(0x24d)](){const _0x2b8bd7=_0x232df7;this[_0x2b8bd7(0x2db)](this[_0x2b8bd7(0x19e)][_0x2b8bd7(0x1f4)]({'id':_0x2b8bd7(0x249),'onBeforeCopyFocusedObject':(_0x41bacb,_0x45e5e8,_0x5636a0)=>{const _0x6c7ad6=_0x2b8bd7;this[_0x6c7ad6(0x29e)]=null;let _0x18fa6=this[_0x6c7ad6(0x315)][_0x6c7ad6(0x34b)](_0x3ca333=>_0x3ca333[_0x6c7ad6(0x183)]===_0x190419[_0x6c7ad6(0x21d)]);return _0x18fa6[_0x6c7ad6(0x333)]!==0x0&&(this[_0x6c7ad6(0x29e)]={'unitId':_0x41bacb,'subUnitId':_0x45e5e8,'copyType':_0x5636a0,'drawings':_0x18fa6},!0x0);},'onBeforeCopy':(_0xee70e1,_0x1ae29a,_0x27511a,_0x398b4f)=>{const _0x564fa4=_0x2b8bd7;this[_0x564fa4(0x29e)]=null,this[_0x564fa4(0x34a)](_0xee70e1,_0x1ae29a,_0x27511a,_0x398b4f);},'onPasteCells':(_0x3f99c8,_0x70ca2c,_0x48da25,_0x29d3c8)=>{const _0x282cbe=_0x2b8bd7;if(!_0x29d3c8[_0x282cbe(0x368)]||!_0x3f99c8||!this[_0x282cbe(0x29e)])return{'redos':[],'undos':[]};let {pasteType:_0x3e27e0}=_0x29d3c8;return _0x3e27e0===_0x2bfd21['DEFAULT_PASTE']?this[_0x282cbe(0x303)](_0x70ca2c,this['_copyInfo'][_0x282cbe(0x1ed)]===_0x536860['CUT']):{'redos':[],'undos':[]};}}));}['_createCopyInfoByRange'](_0x311a8e,_0x365c50,_0x563df6,_0x2b4617){const _0x426658=_0x232df7;let _0x532a7d=this[_0x426658(0x316)][_0x426658(0x38a)](_0x311a8e,_0x365c50);if(!_0x532a7d)return;let _0x38f05b=_0x3b9770(_0x532a7d,_0x563df6);if(!_0x38f05b)return;let {startX:_0x41ae44,endX:_0xfd5a83,startY:_0x23bad3,endY:_0x348574}=_0x38f05b,_0xba0d56=this[_0x426658(0x1fa)][_0x426658(0x11b)](_0x311a8e,_0x365c50),_0x22c774=[];for(let [_0x5cbc4a,_0x2d4afe]of Object[_0x426658(0x17e)](_0xba0d56)){if(_0x2d4afe[_0x426658(0x183)]!==_0x190419['DRAWING_SHAPE'])continue;let {transform:_0x22ffbd}=_0x2d4afe;if(!_0x22ffbd)continue;let {left:_0x4ce995=0x0,top:_0x166bae=0x0,width:_0x82f556=0x0,height:_0x107963=0x0}=_0x22ffbd;_0x41ae44<=_0x4ce995&&_0xfd5a83>=_0x4ce995+_0x82f556&&_0x23bad3<=_0x166bae&&_0x348574>=_0x166bae+_0x107963&&_0x22c774['push'](_0x2d4afe);}_0x22c774[_0x426658(0x333)]>0x0&&(this[_0x426658(0x29e)]={'unitId':_0x311a8e,'subUnitId':_0x365c50,'copyType':_0x2b4617,'copyRange':_0x563df6,'drawings':_0x22c774});}[_0x232df7(0x303)](_0x2dd269,_0x58ff95){const _0x24138f=_0x232df7;let {unitId:_0x47e959,subUnitId:_0xcd8de6,range:_0x340b85}=_0x2dd269,_0x38a708=this[_0x24138f(0x316)][_0x24138f(0x38a)](_0x47e959,_0xcd8de6);if(!_0x38a708)return{'redos':[],'undos':[]};let _0x1aa71c=_0x3062da(_0x340b85),{unitId:_0x358d01,subUnitId:_0x1dd978,copyRange:_0x4a03d5,drawings:_0x3ea1e2}=this[_0x24138f(0x29e)],_0x3938ea=this[_0x24138f(0x316)][_0x24138f(0x38a)](_0x358d01,_0x1dd978);if(!_0x3938ea)return{'redos':[],'undos':[]};let _0x18af2b;if(!_0x4a03d5){let _0x578ba2=0x1/0x0,_0x17a69f=0x1/0x0;for(let _0x38fe3c of _0x3ea1e2){let {left:_0x3ed2cb=0x0,top:_0x3e7766=0x0}=_0x38fe3c[_0x24138f(0x15f)]??{};_0x3ed2cb<_0x578ba2&&(_0x578ba2=_0x3ed2cb),_0x3e7766<_0x17a69f&&(_0x17a69f=_0x3e7766);}_0x578ba2!==0x1/0x0&&_0x17a69f!==0x1/0x0&&(_0x18af2b={'left':_0x578ba2,'top':_0x17a69f});}let _0x22d4e4=new Map();if(!_0x58ff95){for(let _0x10b233 of _0x3ea1e2)_0x22d4e4[_0x24138f(0x2e6)](_0x10b233[_0x24138f(0x36c)],_0x3a0ce3());}let _0x535111=[],_0x192693=[];for(let _0x5289aa of _0x3ea1e2){let {drawingId:_0x59f7dd,transform:_0x53acc3,sheetTransform:_0x1b7167}=_0x5289aa;if(!_0x53acc3||!_0x1b7167)continue;let _0x174294=this[_0x24138f(0x117)]({'transform':_0x53acc3,'sheetTransform':_0x1b7167},{'skeleton':_0x3938ea,'range':_0x4a03d5},{'skeleton':_0x38a708,'range':_0x1aa71c},_0x18af2b);if(_0x58ff95){let {redos:_0x8b3597,undos:_0x2a2607}=this[_0x24138f(0x266)]({'fromUnitId':_0x358d01,'fromSubUnitId':_0x1dd978,'toUnitId':_0x47e959,'toSubUnitId':_0xcd8de6,'drawing':_0x5289aa,'newTransforms':_0x174294});_0x535111[_0x24138f(0x29a)](..._0x8b3597),_0x192693[_0x24138f(0x29a)](..._0x2a2607);continue;}let {redos:_0x2b9411,undos:_0x1b38cc}=this['_generateCopyPasteMutations']({'toUnitId':_0x47e959,'toSubUnitId':_0xcd8de6,'drawing':_0x5289aa,'newTransforms':_0x174294,'newDrawingId':_0x22d4e4[_0x24138f(0x14a)](_0x59f7dd),'idMap':_0x22d4e4});_0x535111[_0x24138f(0x29a)](..._0x2b9411),_0x192693[_0x24138f(0x29a)](..._0x1b38cc);}return{'redos':_0x535111,'undos':_0x192693};}[_0x232df7(0x266)](_0x417c14){const _0x40e730=_0x232df7;let {fromUnitId:_0xdfc7f9,fromSubUnitId:_0x430670,toUnitId:_0x59d09f,toSubUnitId:_0x461227,drawing:_0x10b6e0,newTransforms:_0x10b842}=_0x417c14,_0x217b39={..._0x10b6e0,'unitId':_0x59d09f,'subUnitId':_0x461227,'transform':_0x10b842['transform'],'sheetTransform':_0x10b842['sheetTransform']};if(_0x59d09f===_0xdfc7f9&&_0x461227===_0x430670){let {redo:_0x27813d,undo:_0x503ea2,objects:_0x5aefc8}=this[_0x40e730(0x1fa)][_0x40e730(0x29f)]([_0x217b39]);return{'redos':[{'id':_0x5097ca['id'],'params':{'unitId':_0x59d09f,'subUnitId':_0x461227,'type':_0x4be448[_0x40e730(0x1b1)],'op':_0x27813d,'objects':_0x5aefc8}}],'undos':[{'id':_0x5097ca['id'],'params':{'unitId':_0x59d09f,'subUnitId':_0x461227,'type':_0x4be448[_0x40e730(0x1b1)],'op':_0x503ea2,'objects':_0x5aefc8}}]};}{let _0x3e3a46=this[_0x40e730(0x1fa)][_0x40e730(0x154)]([_0x10b6e0]),_0xfb0b60=this['_sheetDrawingService'][_0x40e730(0x295)]([_0x217b39]),_0x524ee2=this[_0x40e730(0x39f)][_0x40e730(0x1cf)](_0x10b6e0[_0x40e730(0x1e3)],_0x10b6e0[_0x40e730(0x26c)],_0x10b6e0[_0x40e730(0x36c)]);if(!_0x524ee2)return{'redos':[],'undos':[]};let _0x1068d7=_0x524ee2[_0x40e730(0x134)](),_0x2467b7=JSON[_0x40e730(0x37b)](JSON[_0x40e730(0x1c4)](_0x524ee2[_0x40e730(0x1c7)]()));return{'redos':[{'id':_0x5097ca['id'],'params':{'unitId':_0xdfc7f9,'subUnitId':_0x430670,'type':_0x4be448['REMOVE'],'op':_0x3e3a46[_0x40e730(0x2ff)],'objects':_0x3e3a46[_0x40e730(0x2f7)]}},{'id':_0x10857b['id'],'params':{'unitId':_0xdfc7f9,'subUnitId':_0x430670,'shapeId':_0x10b6e0[_0x40e730(0x36c)]}},{'id':_0x5097ca['id'],'params':{'unitId':_0x59d09f,'subUnitId':_0x461227,'type':_0x4be448['INSERT'],'op':_0xfb0b60[_0x40e730(0x2ff)],'objects':_0xfb0b60['objects']}},{'id':_0x5cdf0c['id'],'params':{'unitId':_0x59d09f,'subUnitId':_0x461227,'shapeId':_0x10b6e0[_0x40e730(0x36c)],'shapeType':_0x1068d7,'shapeData':_0x2467b7}}],'undos':[{'id':_0x5097ca['id'],'params':{'unitId':_0xdfc7f9,'subUnitId':_0x430670,'type':_0x4be448['INSERT'],'op':_0x3e3a46[_0x40e730(0x1ce)],'objects':_0x3e3a46[_0x40e730(0x2f7)]}},{'id':_0x5cdf0c['id'],'params':{'unitId':_0xdfc7f9,'subUnitId':_0x430670,'shapeId':_0x10b6e0[_0x40e730(0x36c)],'shapeType':_0x1068d7,'shapeData':_0x2467b7}},{'id':_0x5097ca['id'],'params':{'unitId':_0x59d09f,'subUnitId':_0x461227,'type':_0x4be448[_0x40e730(0x229)],'op':_0xfb0b60[_0x40e730(0x1ce)],'objects':_0xfb0b60[_0x40e730(0x2f7)]}},{'id':_0x10857b['id'],'params':{'unitId':_0x59d09f,'subUnitId':_0x461227,'shapeId':_0x10b6e0[_0x40e730(0x36c)]}}]};}}['_generateCopyPasteMutations'](_0x1b9a7c){const _0x264644=_0x232df7;let {toUnitId:_0x469779,toSubUnitId:_0x4b8f7b,drawing:_0x130fb8,newTransforms:_0x56417a,newDrawingId:_0x1b3e14,idMap:_0x1c9060}=_0x1b9a7c,_0xe233d2={..._0x130fb8,'unitId':_0x469779,'subUnitId':_0x4b8f7b,'drawingId':_0x1b3e14,'transform':_0x56417a['transform'],'sheetTransform':_0x56417a[_0x264644(0x2a0)]},{redo:_0x4b8ee3,undo:_0x4dbebd,objects:_0x370476}=this[_0x264644(0x1fa)][_0x264644(0x295)]([_0xe233d2]),_0x9d3d6e=this[_0x264644(0x39f)][_0x264644(0x1cf)](_0x130fb8[_0x264644(0x1e3)],_0x130fb8['subUnitId'],_0x130fb8[_0x264644(0x36c)]);if(!_0x9d3d6e)return{'redos':[],'undos':[]};let _0x2a5148=_0x9d3d6e[_0x264644(0x134)](),_0xb9f6d3=JSON[_0x264644(0x37b)](JSON[_0x264644(0x1c4)](_0x9d3d6e[_0x264644(0x1c7)]()));if(_0xb9f6d3[_0x264644(0x2df)]){var _0x331fea,_0x30fe50;let _0x5ea3bb=(_0x331fea=_0xb9f6d3[_0x264644(0x2df)][_0x264644(0x139)])==null?void 0x0:_0x331fea[_0x264644(0x275)],_0x271ca6=(_0x30fe50=_0xb9f6d3[_0x264644(0x2df)]['to'])==null?void 0x0:_0x30fe50[_0x264644(0x275)],_0x494751=!_0x5ea3bb||_0x1c9060[_0x264644(0x104)](_0x5ea3bb),_0x5ecf8=!_0x271ca6||_0x1c9060[_0x264644(0x104)](_0x271ca6);_0x494751&&_0x5ea3bb&&_0xb9f6d3['relation']['from']?_0xb9f6d3[_0x264644(0x2df)][_0x264644(0x139)]={..._0xb9f6d3[_0x264644(0x2df)][_0x264644(0x139)],'shapeId':_0x1c9060[_0x264644(0x14a)](_0x5ea3bb)}:_0xb9f6d3[_0x264644(0x2df)][_0x264644(0x139)]=void 0x0,_0x5ecf8&&_0x271ca6&&_0xb9f6d3['relation']['to']?_0xb9f6d3[_0x264644(0x2df)]['to']={..._0xb9f6d3[_0x264644(0x2df)]['to'],'shapeId':_0x1c9060[_0x264644(0x14a)](_0x271ca6)}:_0xb9f6d3[_0x264644(0x2df)]['to']=void 0x0;}return{'redos':[{'id':_0x5097ca['id'],'params':{'unitId':_0x469779,'subUnitId':_0x4b8f7b,'type':_0x4be448[_0x264644(0x26b)],'op':_0x4b8ee3,'objects':_0x370476}},{'id':_0x5cdf0c['id'],'params':{'unitId':_0x469779,'subUnitId':_0x4b8f7b,'shapeId':_0x1b3e14,'shapeType':_0x2a5148,'shapeData':_0xb9f6d3}}],'undos':[{'id':_0x5097ca['id'],'params':{'unitId':_0x469779,'subUnitId':_0x4b8f7b,'type':_0x4be448['REMOVE'],'op':_0x4dbebd,'objects':_0x370476}},{'id':_0x10857b['id'],'params':{'unitId':_0x469779,'subUnitId':_0x4b8f7b,'shapeId':_0x1b3e14}}]};}['_updateTransform'](_0x52e4ed,_0xa0a15c,_0x38a866,_0x5ce333){const _0x2a203c=_0x232df7;let {range:_0x326e6f,skeleton:_0x2fabd1}=_0xa0a15c,{range:_0x4e08de,skeleton:_0x384823}=_0x38a866,{transform:_0x5b183a,sheetTransform:_0x403fab}=_0x52e4ed,_0x2ab6b9={..._0x5b183a};if(_0x326e6f){let _0x6c9da0=_0x3b9770(_0x2fabd1,_0x326e6f),_0x51bdbb=_0x3b9770(_0x384823,_0x4e08de);if(_0x6c9da0&&_0x51bdbb){let _0x348d7a=_0x51bdbb[_0x2a203c(0x17f)]-_0x6c9da0['startX'],_0x335481=_0x51bdbb['startY']-_0x6c9da0[_0x2a203c(0x300)];_0x2ab6b9[_0x2a203c(0xe4)]=(_0x2ab6b9[_0x2a203c(0xe4)]??0x0)+_0x348d7a,_0x2ab6b9[_0x2a203c(0x1b9)]=(_0x2ab6b9['top']??0x0)+_0x335481;}}else{let _0x24268e=_0x3b9770(_0x384823,_0x4e08de);if(_0x5ce333&&_0x24268e){let _0x144a90=(_0x2ab6b9['left']??0x0)-_0x5ce333[_0x2a203c(0xe4)],_0x2985f2=(_0x2ab6b9['top']??0x0)-_0x5ce333['top'];_0x2ab6b9[_0x2a203c(0xe4)]=_0x24268e[_0x2a203c(0x17f)]+_0x144a90,_0x2ab6b9[_0x2a203c(0x1b9)]=_0x24268e[_0x2a203c(0x300)]+_0x2985f2;}else _0x2ab6b9['left']=_0x24268e==null?void 0x0:_0x24268e['startX'],_0x2ab6b9['top']=_0x24268e==null?void 0x0:_0x24268e[_0x2a203c(0x300)];}return{'transform':_0x2ab6b9,'sheetTransform':_0x1f42db(_0x2ab6b9,_0x384823)??_0x403fab};}};fa=X([Y(0x0,_0x229e82(_0x117a83)),Y(0x1,_0x229e82(_0x2be9d9)),Y(0x2,_0x229e82(_0x4458c8)),Y(0x3,_0x229e82(_0x5c2303)),Y(0x4,_0x229e82(_0x344b7d))],fa);var pa=class extends _0x147ce5{constructor(_0x248ef3,_0x13311e){const _0x2d53c2=_0x232df7;super(_0x248ef3,_0x13311e),q(this,_0x2d53c2(0x1f2),null),q(this,'_index',null),q(this,_0x2d53c2(0x102),null),q(this,_0x2d53c2(0x161),null),q(this,'_isStartConnectorPoint',!0x1),_0x13311e&&this[_0x2d53c2(0x1da)](_0x13311e);}[_0x232df7(0xe5)](){const _0x2d82c3=_0x232df7;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x2d82c3(0x1f2)]};}['setShapeProps'](_0x35e148){const _0x1c4545=_0x232df7;_0x35e148[_0x1c4545(0x275)]!==void 0x0&&(this[_0x1c4545(0x1f2)]=_0x35e148[_0x1c4545(0x275)]),_0x35e148['unitId']!==void 0x0&&(this[_0x1c4545(0x102)]=_0x35e148[_0x1c4545(0x1e3)]),_0x35e148['subUnitId']!==void 0x0&&(this[_0x1c4545(0x161)]=_0x35e148[_0x1c4545(0x26c)]),_0x35e148['isStartConnectorPoint']!==void 0x0&&(this[_0x1c4545(0x186)]=_0x35e148['isStartConnectorPoint']),this[_0x1c4545(0x234)]({'width':_0x35e148[_0x1c4545(0x324)],'height':_0x35e148[_0x1c4545(0x39a)]});}[_0x232df7(0x356)](_0xc4e89c){const _0x2619ba=_0x232df7;_0x4a02a1[_0x2619ba(0x1a8)](_0xc4e89c,{'radius':_0x4c61a8[_0x2619ba(0x215)],'fill':_0x4c61a8[_0x2619ba(0x256)],'stroke':_0x4c61a8[_0x2619ba(0x12a)],'strokeWidth':_0x4c61a8[_0x2619ba(0x340)],'evented':!0x0});}};let ma=class extends _0x2bb0e8{constructor(_0x202c89,_0x190230,_0x311cda,_0xe5df12,_0xb71360,_0x30bfbd,_0x383626,_0x4dd0d9){const _0x35c7a4=_0x232df7;super(),this[_0x35c7a4(0x35d)]=_0x202c89,this[_0x35c7a4(0x232)]=_0x190230,this[_0x35c7a4(0x209)]=_0x311cda,this[_0x35c7a4(0x11c)]=_0xe5df12,this[_0x35c7a4(0x2d4)]=_0xb71360,this[_0x35c7a4(0x3aa)]=_0x30bfbd,this[_0x35c7a4(0x37e)]=_0x383626,this['_sheetBasicShapeConnectionPointController']=_0x4dd0d9,q(this,_0x35c7a4(0x362),void 0x0),q(this,_0x35c7a4(0x102),void 0x0),q(this,'_subUnitId',void 0x0),q(this,'_connectorObjects',[]),q(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x35c7a4(0x1d8),void 0x0),q(this,_0x35c7a4(0x322),!0x1),q(this,_0x35c7a4(0x272),!0x1),q(this,_0x35c7a4(0x355),!0x1),q(this,_0x35c7a4(0x2d6),void 0x0),q(this,_0x35c7a4(0x167),void 0x0),q(this,_0x35c7a4(0x223),null),this['_initialize']();}['_initialize'](){this['_registerDrawingFocusChangeHandler'](),this['_registerDrawingMoveHandler']();}[_0x232df7(0x349)](){const _0x4e0fe6=_0x232df7;if(!this['_unitId']||!this[_0x4e0fe6(0x161)]||!this['_activeShapeId'])return;let _0x2e89d2={'unitId':this['_unitId'],'subUnitId':this[_0x4e0fe6(0x161)],'drawingId':this['_activeShapeId']},{transform:_0x58e3d8}=this['_drawingManagerService']['getDrawingByParam'](_0x2e89d2);if(_0x58e3d8)return{'left':_0x58e3d8[_0x4e0fe6(0xe4)]||0x0,'top':_0x58e3d8[_0x4e0fe6(0x1b9)]||0x0,'width':_0x58e3d8[_0x4e0fe6(0x324)]||0x0,'height':_0x58e3d8[_0x4e0fe6(0x39a)]||0x0,'flipX':_0x58e3d8['flipX']||!0x1,'flipY':_0x58e3d8[_0x4e0fe6(0x25e)]||!0x1,'angle':_0x58e3d8[_0x4e0fe6(0x140)]};}['_addShapeConnectorHandlerObjects'](){const _0x45cb3a=_0x232df7;if(this[_0x45cb3a(0x102)]===void 0x0||this[_0x45cb3a(0x161)]===void 0x0||this[_0x45cb3a(0x362)]===void 0x0)return;let _0x4d5ec2=this[_0x45cb3a(0x209)][_0x45cb3a(0x124)](this[_0x45cb3a(0x102)]);if(!_0x4d5ec2||!_0x4d5ec2['with'](_0x54a66d)[_0x45cb3a(0x2ee)]())return;let {scene:_0x26854a}=_0x4d5ec2,_0x50bd94=this[_0x45cb3a(0x349)]();if(!_0x50bd94)return;let _0x3b5ee2=this[_0x45cb3a(0x3aa)][_0x45cb3a(0x1cf)](this['_unitId'],this[_0x45cb3a(0x161)],this[_0x45cb3a(0x362)]);if(!_0x3b5ee2||!_0x52f76f(_0x3b5ee2[_0x45cb3a(0x134)]()))return;let _0x37cba0=_0x3b5ee2[_0x45cb3a(0x2e3)]();if(_0x37cba0[_0x45cb3a(0x333)]<0x2)return;let _0x5356b4=new _0x5d44cb(_0x50bd94),_0x36bbb8=_0x37cba0[0x0],_0x4cda89=_0x37cba0[_0x37cba0[_0x45cb3a(0x333)]-0x1],_0x43592e=_0x5356b4[_0x45cb3a(0x31a)](_0x36bbb8),_0x2fa5da=_0x5356b4['localToWorld'](_0x4cda89);this[_0x45cb3a(0x2a4)](_0x26854a,{..._0x43592e},!0x0),this[_0x45cb3a(0x2a4)](_0x26854a,{..._0x2fa5da},!0x1);}[_0x232df7(0x2a4)](_0x24faa9,_0x33ba17,_0x148860){const _0x10441c=_0x232df7;if(this[_0x10441c(0x362)]===void 0x0||this[_0x10441c(0x102)]===void 0x0||this[_0x10441c(0x161)]===void 0x0)return;let _0x4e08b7='connector-handler-'+this[_0x10441c(0x102)]+'-'+this[_0x10441c(0x161)]+'-'+this['_activeShapeId']+'-'+(_0x148860?_0x10441c(0x2ba):_0x10441c(0x100)),_0x39c9a4=_0x24faa9[_0x10441c(0x3a9)](_0x4e08b7);if(_0x39c9a4){_0x39c9a4[_0x10441c(0x234)]({'left':_0x33ba17['x']-_0x4c61a8['cxnPointRadius'],'top':_0x33ba17['y']-_0x4c61a8[_0x10441c(0x215)]});return;}let _0x1c436a=new pa(_0x4e08b7,{'left':_0x33ba17['x']-_0x4c61a8['cxnPointRadius'],'top':_0x33ba17['y']-_0x4c61a8[_0x10441c(0x215)],'shapeId':this[_0x10441c(0x362)],'unitId':this[_0x10441c(0x102)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x148860,'width':_0x4c61a8['cxnPointRadius']*0x2,'height':_0x4c61a8[_0x10441c(0x215)]*0x2,'zIndex':_0x4489b8+0x1,'evented':!0x0});this[_0x10441c(0x32d)][_0x10441c(0x29a)](_0x1c436a),this[_0x10441c(0x153)](_0x1c436a,_0x24faa9,_0x148860),_0x24faa9[_0x10441c(0x23d)](_0x1c436a,_0x4489b8+0x1);}[_0x232df7(0x1c6)](_0x5a03b0,_0x33dbf8){const _0x1562b1=_0x232df7;var _0x2f7de9;let _0x2365b2={'x':0x0,'y':0x0};if(!_0x5a03b0||!_0x33dbf8)return _0x2365b2;let _0x3fa373=this[_0x1562b1(0x209)][_0x1562b1(0x124)](_0x5a03b0);if(!_0x3fa373||!_0x3fa373[_0x1562b1(0x18c)](_0x54a66d)['getSkeleton'](_0x33dbf8))return _0x2365b2;let _0xe39df5=_0x3fa373[_0x1562b1(0x18c)](_0x5ccab7),_0x263bce=_0xe39df5==null?void 0x0:_0xe39df5[_0x1562b1(0x1e9)]();if(!_0x263bce)return _0x2365b2;let _0x474cee=(_0x2f7de9=this[_0x1562b1(0x2d4)][_0x1562b1(0x2e7)](_0x5a03b0))==null?void 0x0:_0x2f7de9[_0x1562b1(0x339)](_0x33dbf8);if(!_0x474cee)return _0x2365b2;let _0x9831f=_0x56d9fe(_0x263bce[_0x1562b1(0x205)],_0x263bce[_0x1562b1(0x3ab)],_0x3fa373[_0x1562b1(0x381)],_0x474cee);return _0x9831f?{'x':_0x9831f[_0x1562b1(0x397)],'y':_0x9831f[_0x1562b1(0x125)]}:_0x2365b2;}[_0x232df7(0x1d9)](_0x4d7dc3,_0x237d82){const _0x4aa14a=_0x232df7;var _0x2e4b97;let _0x30d56f=(_0x2e4b97=this[_0x4aa14a(0x2d4)][_0x4aa14a(0x2e7)](_0x4d7dc3))==null?void 0x0:_0x2e4b97[_0x4aa14a(0x339)](_0x237d82);return(_0x30d56f==null?void 0x0:_0x30d56f[_0x4aa14a(0x3a7)]())??0x1;}[_0x232df7(0x38f)](_0x55b758,_0x5823f9,_0x32909e,_0x3c637e,_0x8bcc7a){const _0x5e9b9b=_0x232df7;this['_cxtHandlerPointerMove']['unsubscribe'](),this[_0x5e9b9b(0x167)]['unsubscribe'](),this['_sheetShapeAdjustController'][_0x5e9b9b(0x1cb)]();let _0x583b3b=this[_0x5e9b9b(0x223)];this[_0x5e9b9b(0x31f)][_0x5e9b9b(0x380)]();let _0xc7a2fd=this[_0x5e9b9b(0x1c6)](this['_unitId'],this[_0x5e9b9b(0x161)]),_0x22d4ea=this[_0x5e9b9b(0x1d9)](this['_unitId'],this[_0x5e9b9b(0x161)]),_0x3166ab={'x':_0x32909e['offsetX']/_0x22d4ea+_0xc7a2fd['x'],'y':_0x32909e[_0x5e9b9b(0x1d6)]/_0x22d4ea+_0xc7a2fd['y']},_0x1a024e=_0x583b3b?_0x583b3b[_0x5e9b9b(0x1ba)]:_0x3166ab,_0x344632=_0x3c637e?this[_0x5e9b9b(0x1d8)][_0x5e9b9b(0x148)]():this[_0x5e9b9b(0x1d8)][_0x5e9b9b(0x168)](),_0x1d5483=this['_activeShapeModel'][_0x5e9b9b(0x134)]();_0x344632?this['_handleConnectedEndpointPointerUp'](_0x344632,_0x1a024e,_0x3c637e,_0x583b3b,_0x8bcc7a):this[_0x5e9b9b(0x2d9)](_0x5823f9,_0x1a024e,_0x3c637e,_0x583b3b,_0x8bcc7a,_0x1d5483),this['_isConnecting']=!0x1,this[_0x5e9b9b(0x355)]=!0x1,this[_0x5e9b9b(0x223)]=null,_0x55b758[_0x5e9b9b(0x34f)]();}[_0x232df7(0x2d9)](_0x45087e,_0x5b940d,_0x5806c2,_0x3f191c,_0x42256d,_0x9a93d5){const _0x2831ce=_0x232df7;let _0x5e580a=_0x9a93d5===_0xe73d9c[_0x2831ce(0x171)]||_0x9a93d5===_0xe73d9c[_0x2831ce(0x365)],_0x3060f5=_0x5806c2?_0x5b940d:_0x45087e,_0x4fda38=_0x5806c2?_0x45087e:_0x5b940d,_0x14b587=this[_0x2831ce(0x1d8)]['getConnectorLinePoints'](),_0x7fb144=this[_0x2831ce(0x1d8)][_0x2831ce(0x134)](),_0x1e3567=_0x2be336(_0x7fb144),_0xa4a612=_0x5d44cb[_0x2831ce(0x131)](_0x14b587,_0x1e3567),_0x60f45f=_0x5e580a?_0x5d44cb[_0x2831ce(0x341)](_0x3060f5,_0x4fda38):_0x5d44cb['computeConnectorResizeLayout'](_0x45087e,_0x5b940d,_0x5806c2,_0xa4a612);_0x3f191c?this['_executeConnectionCommand'](_0x60f45f,_0x3f191c,_0x5806c2,_0x42256d):this[_0x2831ce(0x248)](_0x60f45f,_0x42256d);}[_0x232df7(0x177)](_0x282c81,_0x5e8b3d,_0x5611f7,_0x5614ed,_0x14e0b1){const _0x3a1b4b=_0x232df7;let _0x1bc0b6=this[_0x3a1b4b(0x20d)](_0x282c81);if(!_0x1bc0b6)return;let _0x4b80a6=_0x5614ed?_0x5614ed[_0x3a1b4b(0x140)]:this[_0x3a1b4b(0x2c0)](_0x1bc0b6[_0x3a1b4b(0x32a)],_0x5e8b3d),_0x597e90;if(_0x5614ed){let _0x3bb68a=this[_0x3a1b4b(0x11c)][_0x3a1b4b(0x282)]({'unitId':_0x5614ed['unitId'],'subUnitId':_0x5614ed[_0x3a1b4b(0x26c)],'drawingId':_0x5614ed[_0x3a1b4b(0x275)]});if(_0x3bb68a!=null&&_0x3bb68a['transform']){let {left:_0x3ac22d=0x0,top:_0xd1713c=0x0,width:_0x59273c=0x0,height:_0x69957a=0x0,angle:_0x2c9164}=_0x3bb68a[_0x3a1b4b(0x15f)];_0x597e90=_0x109e70({'left':_0x3ac22d,'top':_0xd1713c,'width':_0x59273c,'height':_0x69957a},_0x2c9164||0x0);}else _0x597e90={'left':_0x5e8b3d['x'],'top':_0x5e8b3d['y'],'width':0x0,'height':0x0};}else _0x597e90={'left':_0x5e8b3d['x'],'top':_0x5e8b3d['y'],'width':0x0,'height':0x0};let _0x6e05ca={'point':_0x5e8b3d,'angle':_0x4b80a6,'bounds':_0x597e90},_0x55bec6=_0x5611f7?_0x6e05ca:_0x1bc0b6,_0x1aa3f0=_0x5611f7?_0x1bc0b6:_0x6e05ca,_0x40b57d=this[_0x3a1b4b(0x1d8)]['getShapeType'](),_0x2b6145=_0x201266(_0x55bec6,_0x1aa3f0,_0x40b57d);this['_activeShapeModel'][_0x3a1b4b(0x113)]();let _0x13abfe=_0x3cbafa(_0x2b6145,_0x40b57d);_0x5614ed?this[_0x3a1b4b(0x24a)](_0x13abfe,_0x5614ed,_0x282c81,_0x5611f7,_0x14e0b1):this['_executeConnectedRouteResizeCommand'](_0x13abfe,_0x282c81,_0x5611f7,_0x14e0b1);}[_0x232df7(0xdf)](_0x73caf7,_0x1fbf15,_0x4c8791,_0x221195){const _0x233468=_0x232df7;let _0x40c1ae=this[_0x233468(0x1d8)][_0x233468(0x1c7)]()[_0x233468(0x2df)],_0xbfafed={..._0x40c1ae},_0x19ced5={'shapeId':_0x1fbf15[_0x233468(0x275)],'cxnIndex':_0x1fbf15[_0x233468(0x1fb)]};_0x4c8791?_0xbfafed[_0x233468(0x139)]=_0x19ced5:_0xbfafed['to']=_0x19ced5;let _0x58918f=this[_0x233468(0x1d8)][_0x233468(0x134)](),_0x1e5c6d=_0x3cbafa(_0x73caf7[_0x233468(0x12d)],_0x58918f),_0x1b824a={'unitId':this['_unitId'],'subUnitId':this[_0x233468(0x161)],'connectorShapeId':this[_0x233468(0x362)],'width':_0x73caf7[_0x233468(0x214)][_0x233468(0x324)],'height':_0x73caf7[_0x233468(0x214)]['height'],'left':_0x73caf7[_0x233468(0x214)]['left'],'top':_0x73caf7[_0x233468(0x214)][_0x233468(0x1b9)],'flipX':_0x73caf7['worldRect'][_0x233468(0x270)]||!0x1,'flipY':_0x73caf7[_0x233468(0x214)]['flipY']||!0x1,'newAdjustValues':_0x1e5c6d[_0x233468(0x29d)],'oldAdjustValues':_0x221195,'oldRelation':_0x40c1ae,'newRelation':_0xbfafed,'newLineType':_0x1e5c6d[_0x233468(0x130)],'oldLineType':_0x58918f};this['_commandService']['executeCommand'](_0xa22292['id'],_0x1b824a);}[_0x232df7(0x248)](_0x243b51,_0x23c366){const _0x3cbd26=_0x232df7;let _0x2eafe7=this['_activeShapeModel'][_0x3cbd26(0x134)](),_0x2cfa73=_0x3cbafa(_0x243b51[_0x3cbd26(0x12d)],_0x2eafe7),_0x657ed9={'unitId':this[_0x3cbd26(0x102)],'subUnitId':this[_0x3cbd26(0x161)],'shapeId':this['_activeShapeId'],'width':_0x243b51[_0x3cbd26(0x214)][_0x3cbd26(0x324)],'height':_0x243b51[_0x3cbd26(0x214)][_0x3cbd26(0x39a)],'left':_0x243b51[_0x3cbd26(0x214)][_0x3cbd26(0xe4)],'top':_0x243b51[_0x3cbd26(0x214)]['top'],'flipX':_0x243b51[_0x3cbd26(0x214)]['flipX']||!0x1,'flipY':_0x243b51[_0x3cbd26(0x214)][_0x3cbd26(0x25e)]||!0x1,'angle':_0x243b51[_0x3cbd26(0x214)]['angle']||0x0,'newAdjustValues':_0x2cfa73['adjustValues'],'oldAdjustValues':_0x23c366,'newLineType':_0x2cfa73[_0x3cbd26(0x130)],'oldLineType':_0x2eafe7};this[_0x3cbd26(0x232)][_0x3cbd26(0x286)](_0x44659f['id'],_0x657ed9);}['_executeConnectedRouteConnectionCommand'](_0x5c7290,_0x286bcd,_0x4d99d1,_0x361e8c,_0xf4a4f6){const _0x31171c=_0x232df7;let _0x495683=this[_0x31171c(0x1d8)][_0x31171c(0x1c7)]()['relation'],_0x15b4a7={..._0x495683},_0x54f007={'shapeId':_0x286bcd[_0x31171c(0x275)],'cxnIndex':_0x286bcd[_0x31171c(0x1fb)]};_0x361e8c?(_0x15b4a7['from']=_0x54f007,_0x15b4a7['to']=_0x4d99d1):(_0x15b4a7['from']=_0x4d99d1,_0x15b4a7['to']=_0x54f007);let _0x10e81b={'unitId':this[_0x31171c(0x102)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x31171c(0x362)],'width':_0x5c7290[_0x31171c(0x214)][_0x31171c(0x324)],'height':_0x5c7290[_0x31171c(0x214)][_0x31171c(0x39a)],'left':_0x5c7290[_0x31171c(0x214)]['left'],'top':_0x5c7290[_0x31171c(0x214)][_0x31171c(0x1b9)],'flipX':_0x5c7290[_0x31171c(0x214)][_0x31171c(0x270)]||!0x1,'flipY':_0x5c7290[_0x31171c(0x214)][_0x31171c(0x25e)]||!0x1,'oldAdjustValues':_0xf4a4f6,'newAdjustValues':_0x5c7290[_0x31171c(0x29d)],'newLineType':_0x5c7290['lineType'],'rotation':_0x5c7290[_0x31171c(0x264)],'oldRelation':_0x495683,'newRelation':_0x15b4a7};this['_commandService'][_0x31171c(0x286)](_0xa22292['id'],_0x10e81b);}['_executeConnectedRouteResizeCommand'](_0x20c5c2,_0x34e93f,_0x20e42c,_0x24fcd6){const _0x5aa060=_0x232df7;let _0x3517ee=this[_0x5aa060(0x1d8)]['getShapeData']()[_0x5aa060(0x2df)],_0x4dd86b={};_0x20e42c?(_0x4dd86b['to']=_0x34e93f,_0x4dd86b[_0x5aa060(0x139)]=void 0x0):(_0x4dd86b['from']=_0x34e93f,_0x4dd86b['to']=void 0x0);let _0x3b3e6d={'unitId':this[_0x5aa060(0x102)],'subUnitId':this[_0x5aa060(0x161)],'connectorShapeId':this[_0x5aa060(0x362)],'width':_0x20c5c2[_0x5aa060(0x214)][_0x5aa060(0x324)],'height':_0x20c5c2['worldRect']['height'],'left':_0x20c5c2[_0x5aa060(0x214)]['left'],'top':_0x20c5c2[_0x5aa060(0x214)][_0x5aa060(0x1b9)],'flipX':_0x20c5c2[_0x5aa060(0x214)]['flipX']||!0x1,'flipY':_0x20c5c2[_0x5aa060(0x214)][_0x5aa060(0x25e)]||!0x1,'oldAdjustValues':_0x24fcd6,'newAdjustValues':_0x20c5c2[_0x5aa060(0x29d)],'newLineType':_0x20c5c2[_0x5aa060(0x130)],'rotation':_0x20c5c2[_0x5aa060(0x264)],'oldRelation':_0x3517ee,'newRelation':_0x4dd86b};this['_commandService'][_0x5aa060(0x286)](_0xa22292['id'],_0x3b3e6d);}[_0x232df7(0x153)](_0x272239,_0x90e0ef,_0x554ea1){const _0x5a4e58=_0x232df7;this[_0x5a4e58(0x2db)](_0x169987(_0x272239[_0x5a4e58(0x197)][_0x5a4e58(0x2e4)]((_0x15054b,_0x5a5ed0)=>{const _0x1ad76c=_0x5a4e58;let _0x2c233f=_0x272239[_0x1ad76c(0xe5)]();if(this['_activeShapeModel']=this['_sheetsShapeService'][_0x1ad76c(0x1cf)](_0x2c233f[_0x1ad76c(0x1e3)],_0x2c233f[_0x1ad76c(0x26c)],_0x2c233f['drawingId']),!this[_0x1ad76c(0x1d8)])return;let _0x3462ef={};this[_0x1ad76c(0x1d8)][_0x1ad76c(0x12f)]()['forEach'](_0x154aaa=>{const _0x247391=_0x1ad76c;let _0xd27e1a=this[_0x247391(0x1d8)][_0x247391(0x357)](_0x154aaa);_0xd27e1a!==void 0x0&&(_0x3462ef[_0x154aaa]=_0xd27e1a);});let _0x58a0a9=this[_0x1ad76c(0x349)]();if(!_0x58a0a9)return;this[_0x1ad76c(0x342)]={..._0x58a0a9};let _0x2c3f86=new _0x5d44cb(this['_baseDrawingRect']),_0x2041e2=_0x3023e5({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']}),_0x23ae7e=_0x90e0ef['getObjectIncludeInGroup'](_0x2041e2);this[_0x1ad76c(0x322)]=!0x0,_0x90e0ef[_0x1ad76c(0x3a2)](),this[_0x1ad76c(0x31f)]['startConnectionDetection'](_0x90e0ef,this[_0x1ad76c(0x102)],this[_0x1ad76c(0x161)],this[_0x1ad76c(0x362)]),this['_currentConnectionTarget']=null;let _0x559d32=this[_0x1ad76c(0x1d8)][_0x1ad76c(0x2e3)](),_0x3eb53f=_0x559d32[0x0],_0x30cd4e=_0x559d32[_0x559d32[_0x1ad76c(0x333)]-0x1],_0x282d19=_0x554ea1?_0x2c3f86[_0x1ad76c(0x31a)](_0x30cd4e):_0x2c3f86[_0x1ad76c(0x31a)](_0x3eb53f);this[_0x1ad76c(0x2d6)]=_0x90e0ef[_0x1ad76c(0x2c6)]['subscribeEvent']((_0x43d576,_0x247d5c)=>{const _0x5052d6=_0x1ad76c;if(!this[_0x5052d6(0x322)]||!this['_activeShapeModel'])return;this[_0x5052d6(0x355)]||=(this['_sheetShapeAdjustController'][_0x5052d6(0x23a)](),this['_activeShapeModel'][_0x5052d6(0x28d)](),!0x0);let _0xf9b33f=this['_getScrollInfo'](this[_0x5052d6(0x102)],this['_subUnitId']),_0x519074=this['_getZoomRatio'](this['_unitId'],this[_0x5052d6(0x161)]),_0x56020b={'x':_0x43d576['offsetX']/_0x519074+_0xf9b33f['x'],'y':_0x43d576[_0x5052d6(0x1d6)]/_0x519074+_0xf9b33f['y']},_0x120108=this['_sheetBasicShapeConnectionPointController'][_0x5052d6(0xf2)](_0x56020b);if(_0x120108){let {shapeId:_0x55e43c,unitId:_0x22eaaa,subUnitId:_0x22f8cc}=_0x120108;if(_0x55e43c&&_0x22eaaa&&_0x22f8cc){let _0x10edb8=_0x3023e5({'unitId':_0x22eaaa,'subUnitId':_0x22f8cc,'drawingId':_0x55e43c});_0x120108[_0x5052d6(0x140)]=(_0x90e0ef[_0x5052d6(0x3a9)](_0x10edb8)[_0x5052d6(0x140)]||0x0)+_0x120108[_0x5052d6(0x140)];}}this['_currentConnectionTarget']=_0x120108;let _0xaae330=_0x554ea1?this[_0x5052d6(0x1d8)]['getEndConnectInfo']():this[_0x5052d6(0x1d8)]['getStartConnectInfo']();_0xaae330?this[_0x5052d6(0x253)](_0xaae330,_0x56020b,_0x554ea1,_0x23ae7e,_0x272239):this[_0x5052d6(0x1f9)](_0x56020b,_0x282d19,_0x554ea1,_0x23ae7e,_0x272239);}),this['_cxtHandlerPointerUp']=_0x90e0ef[_0x1ad76c(0x2c7)][_0x1ad76c(0x2e4)]((_0x5a39ca,_0x105b1e)=>{const _0x4431bc=_0x1ad76c;this[_0x4431bc(0x38f)](_0x90e0ef,_0x282d19,_0x5a39ca,_0x554ea1,_0x3462ef);}),_0x5a5ed0[_0x1ad76c(0x345)]();})));}[_0x232df7(0x2a5)](_0x908d93,_0x280baa,_0x54f2d3){const _0x525b65=_0x232df7;let _0x48d7a2=this['_sheetsShapeService'][_0x525b65(0x38c)](_0x908d93,_0x280baa,_0x54f2d3);if(!_0x48d7a2||_0x48d7a2['length']===0x0)return;let _0x1814fb=this['_renderManagerService']['getRenderUnitById'](_0x908d93);if(!_0x1814fb)return;let {scene:_0x34f044}=_0x1814fb;for(let _0x45a3db of _0x48d7a2){let _0x19f50f=_0x45a3db[_0x525b65(0x2fc)],_0x38aa2e=this[_0x525b65(0x3aa)][_0x525b65(0x1cf)](_0x908d93,_0x280baa,_0x19f50f);if(!_0x38aa2e)continue;let _0x178269=_0x38aa2e['getStartConnectInfo'](),_0xe6714b=_0x38aa2e[_0x525b65(0x148)](),_0x4c33f1=(_0x178269==null?void 0x0:_0x178269['shapeId'])===_0x54f2d3,_0x7d32eb=_0x3023e5({'unitId':_0x908d93,'subUnitId':_0x280baa,'drawingId':_0x19f50f}),_0xf4a7a4=_0x34f044['getObjectIncludeInGroup'](_0x7d32eb);if(!_0xf4a7a4)continue;let _0x5a8859=this['_drawingManagerService'][_0x525b65(0x282)]({'unitId':_0x908d93,'subUnitId':_0x280baa,'drawingId':_0x19f50f});_0x5a8859!=null&&_0x5a8859[_0x525b65(0x15f)]&&(_0x178269&&_0xe6714b?this['_rerouteConnectorLine'](_0x908d93,_0x280baa,_0x19f50f,_0x38aa2e,_0x178269,_0xe6714b,_0xf4a7a4):this[_0x525b65(0x267)](_0x908d93,_0x280baa,_0x19f50f,_0x38aa2e,_0x4c33f1?_0x178269:_0xe6714b,_0x4c33f1,_0x5a8859,_0xf4a7a4));}}['_rerouteConnectorLine'](_0x294b08,_0x3853ef,_0x445135,_0x1fc819,_0x239382,_0x56d774,_0x405ee7){const _0x524b42=_0x232df7;let _0xd0682c=this[_0x524b42(0x102)],_0xa42781=this[_0x524b42(0x161)];this[_0x524b42(0x102)]=_0x294b08,this[_0x524b42(0x161)]=_0x3853ef;let _0x12e650=this[_0x524b42(0x20d)](_0x239382),_0x4f1b99=this[_0x524b42(0x20d)](_0x56d774);if(this['_unitId']=_0xd0682c,this[_0x524b42(0x161)]=_0xa42781,!_0x12e650||!_0x4f1b99)return;let _0x47be21=_0x1fc819[_0x524b42(0x134)](),_0x127f3a=_0x201266(_0x12e650,_0x4f1b99,_0x47be21);_0x127f3a&&_0x1fc819[_0x524b42(0x302)](_0x127f3a);let _0x5c106f=_0x3cbafa(_0x127f3a,_0x47be21);_0x5c106f[_0x524b42(0x130)]!==_0x47be21&&_0x1fc819[_0x524b42(0x175)](_0x5c106f['lineType']),_0x1fc819[_0x524b42(0x28d)]();for(let [_0x2f9f99,_0x3431fe]of Object[_0x524b42(0x17e)](_0x5c106f[_0x524b42(0x29d)]))_0x1fc819[_0x524b42(0x359)](_0x2f9f99,_0x3431fe);_0x1fc819[_0x524b42(0x2bd)]({'width':_0x5c106f[_0x524b42(0x214)]['width'],'height':_0x5c106f[_0x524b42(0x214)]['height']}),_0x405ee7[_0x524b42(0x234)]({'flipX':_0x5c106f[_0x524b42(0x214)]['flipX'],'flipY':_0x5c106f[_0x524b42(0x214)][_0x524b42(0x25e)],'left':_0x5c106f[_0x524b42(0x214)]['left'],'top':_0x5c106f[_0x524b42(0x214)][_0x524b42(0x1b9)],'width':_0x5c106f[_0x524b42(0x214)][_0x524b42(0x324)],'height':_0x5c106f['worldRect']['height'],'angle':_0x5c106f[_0x524b42(0x264)]}),_0x1fc819['removeLinePoints']();}[_0x232df7(0x267)](_0x100db3,_0x50899d,_0x589d45,_0x499d40,_0x5b3746,_0x2d4829,_0x7bfd8d,_0x59ea6d){const _0x4aa27d=_0x232df7;let _0xee2b34=this[_0x4aa27d(0x102)],_0x14c031=this[_0x4aa27d(0x161)];this[_0x4aa27d(0x102)]=_0x100db3,this['_subUnitId']=_0x50899d;let _0x283a61=this[_0x4aa27d(0x20d)](_0x5b3746);if(this[_0x4aa27d(0x102)]=_0xee2b34,this[_0x4aa27d(0x161)]=_0x14c031,!_0x283a61)return;let {left:_0x37f174=0x0,top:_0x46c148=0x0,width:_0x276613=0x0,height:_0x2c2480=0x0,flipX:_0x5d438d=!0x1,flipY:_0x23ed5d=!0x1}=_0x7bfd8d[_0x4aa27d(0x15f)],_0x24eb6d=_0x499d40[_0x4aa27d(0x2e3)]();if(_0x24eb6d[_0x4aa27d(0x333)]<0x2)return;let _0x966bba=new _0x5d44cb({'left':_0x37f174,'top':_0x46c148,'width':_0x276613,'height':_0x2c2480,'flipX':_0x5d438d,'flipY':_0x23ed5d}),_0x4acdac=_0x2d4829?_0x24eb6d[_0x24eb6d[_0x4aa27d(0x333)]-0x1]:_0x24eb6d[0x0],_0x1a65ba=_0x966bba[_0x4aa27d(0x31a)](_0x4acdac),_0x515ca4=_0x5d44cb[_0x4aa27d(0x247)](_0x1a65ba,_0x283a61[_0x4aa27d(0x32a)],!_0x2d4829);_0x59ea6d[_0x4aa27d(0x234)]({'flipX':_0x515ca4[_0x4aa27d(0x214)][_0x4aa27d(0x270)],'flipY':_0x515ca4[_0x4aa27d(0x214)]['flipY'],'left':_0x515ca4['worldRect'][_0x4aa27d(0xe4)],'top':_0x515ca4[_0x4aa27d(0x214)][_0x4aa27d(0x1b9)],'width':_0x515ca4[_0x4aa27d(0x214)][_0x4aa27d(0x324)],'height':_0x515ca4[_0x4aa27d(0x214)]['height'],'angle':_0x515ca4[_0x4aa27d(0x214)][_0x4aa27d(0x140)]}),_0x59ea6d[_0x4aa27d(0x390)](!0x0);}[_0x232df7(0x2d5)](){const _0xa8b3da=_0x232df7;this[_0xa8b3da(0x32d)][_0xa8b3da(0x333)]!==0x0&&(this[_0xa8b3da(0x32d)]['forEach'](_0x3c672c=>{const _0x4968ad=_0xa8b3da;_0x3c672c[_0x4968ad(0x296)]();}),this[_0xa8b3da(0x32d)]=[]);}[_0x232df7(0x156)](){const _0x2bfac3=_0x232df7;let _0x399e03=this[_0x2bfac3(0x2d4)][_0x2bfac3(0x2d0)](_0xe0c4a6['UNIVER_SHEET']);this['disposeWithMe'](_0x399e03[_0x2bfac3(0x16f)](_0x4faa1d(_0x5ceb26=>_0x5ceb26?_0x5ceb26[_0x2bfac3(0xe1)][_0x2bfac3(0x16f)](_0x4faa1d(_0x1432e8=>{const _0xf108b2=_0x2bfac3;if(!_0x1432e8)return _0x5f31a2;let _0x547271=_0x5ceb26['getUnitId'](),_0x3ce2b1=this[_0xf108b2(0x209)][_0xf108b2(0x124)](_0x547271),_0x48c891=_0x3ce2b1==null?void 0x0:_0x3ce2b1[_0xf108b2(0x381)];return _0x48c891?_0x24a70f(_0x48c891):_0x5f31a2;})):_0x5f31a2))['subscribe'](_0x364619=>{const _0x512605=_0x2bfac3;let _0x3af3e3=_0x364619[_0x512605(0x372)]();this[_0x512605(0x2db)](_0x364619[_0x512605(0x2c6)]['subscribeEvent'](_0x469f82=>{const _0x3cf434=_0x512605;this[_0x3cf434(0x272)]&&this[_0x3cf434(0x362)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x512605(0x2db)](_0x3af3e3[_0x512605(0x22f)][_0x512605(0x268)](_0x256a82=>{const _0x1fe58e=_0x512605;let {objects:_0x796022}=_0x256a82;this[_0x1fe58e(0x2d5)](),_0x796022!==null&&_0x796022[_0x1fe58e(0x292)]===0x1&&_0x796022[_0x1fe58e(0x212)]()['next']()[_0x1fe58e(0x30f)]instanceof J&&(this[_0x1fe58e(0x272)]=!0x0);})),this[_0x512605(0x2db)](_0x3af3e3[_0x512605(0x2fd)][_0x512605(0x268)](_0x44ab6c=>{const _0x15ce0f=_0x512605;this[_0x15ce0f(0x272)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x512605(0x2db)](_0x364619[_0x512605(0x2c7)][_0x512605(0x2e4)](()=>{const _0x140f6b=_0x512605;this[_0x140f6b(0x272)]&&(this[_0x140f6b(0x272)]=!0x1,this[_0x140f6b(0x317)]());})),this[_0x512605(0x2db)](_0x3af3e3['changeEnd$'][_0x512605(0x268)](()=>{const _0x32aa21=_0x512605;this[_0x32aa21(0x102)]&&this[_0x32aa21(0x161)]&&this['_activeShapeId']&&this[_0x32aa21(0x11c)]['getDrawingByParam']({'unitId':this[_0x32aa21(0x102)],'subUnitId':this[_0x32aa21(0x161)],'drawingId':this['_activeShapeId']})&&(this[_0x32aa21(0x2d5)](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x232df7(0x1f0)](){const _0xad266c=_0x232df7;this[_0xad266c(0x2db)](this['_drawingManagerService'][_0xad266c(0x19a)][_0xad266c(0x268)](_0xa655d1=>{const _0x17ebfa=_0xad266c;if(_0xa655d1[_0x17ebfa(0x333)]===0x1){let _0x371540=_0xa655d1[0x0];if(_0x371540[_0x17ebfa(0x183)]===_0x190419['DRAWING_SHAPE']){let _0x33fb0c=this[_0x17ebfa(0x3aa)]['getShapeModel'](_0x371540[_0x17ebfa(0x1e3)],_0x371540[_0x17ebfa(0x26c)],_0x371540[_0x17ebfa(0x36c)]);if(_0x33fb0c&&_0x52f76f(_0x33fb0c[_0x17ebfa(0x134)]())){this['_activeShapeId']=_0x371540['drawingId'],this[_0x17ebfa(0x102)]=_0x371540[_0x17ebfa(0x1e3)],this[_0x17ebfa(0x161)]=_0x371540[_0x17ebfa(0x26c)],this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']();return;}}}this['_activeShapeId']=void 0x0,this[_0x17ebfa(0x102)]=void 0x0,this[_0x17ebfa(0x161)]=void 0x0,this[_0x17ebfa(0x2d5)]();})),this[_0xad266c(0x2db)](this['_drawingManagerService']['update$'][_0xad266c(0x268)](_0x15afad=>{const _0x554cfb=_0xad266c;if(_0x15afad['length']===0x1){var _0xa0ba81;let _0x5cf4be=_0x15afad[0x0],_0x24417c=(_0xa0ba81=this[_0x554cfb(0x11c)][_0x554cfb(0x282)](_0x5cf4be))==null?void 0x0:_0xa0ba81[_0x554cfb(0x183)];_0x24417c===_0x190419[_0x554cfb(0x21d)]&&_0x5cf4be['drawingId']===this[_0x554cfb(0x362)]?(this[_0x554cfb(0x2d5)](),this[_0x554cfb(0x317)]()):!this[_0x554cfb(0x362)]&&_0x24417c===_0x190419['DRAWING_SHAPE']&&this[_0x554cfb(0x2a5)](_0x5cf4be[_0x554cfb(0x1e3)],_0x5cf4be['subUnitId'],_0x5cf4be['drawingId']);}})),this[_0xad266c(0x2db)](this[_0xad266c(0x11c)][_0xad266c(0x36d)]['subscribe'](_0x52e0b8=>{const _0x597038=_0xad266c;for(let _0x34ca76 of _0x52e0b8){let {drawingId:_0x305835}=_0x34ca76;if(this[_0x597038(0x362)]===_0x305835){this[_0x597038(0x308)]();return;}}}));}['_handleConnectedEndpointMove'](_0x141c7d,_0x502b71,_0x7d6a84,_0x4e91c4,_0x1636eb){const _0x5c65ad=_0x232df7;var _0x47456c;if(!this[_0x5c65ad(0x1d8)])return;let _0x53ab34=this[_0x5c65ad(0x20d)](_0x141c7d);if(!_0x53ab34)return;let _0x209715=this[_0x5c65ad(0x223)]?this[_0x5c65ad(0x223)]['worldPoint']:_0x502b71,_0x437abc=this[_0x5c65ad(0x223)]?this[_0x5c65ad(0x223)][_0x5c65ad(0x140)]:this[_0x5c65ad(0x2c0)](_0x53ab34['point'],_0x209715),_0x127905;if(this[_0x5c65ad(0x223)]){let _0x3070e4=this[_0x5c65ad(0x11c)]['getDrawingByParam']({'unitId':this[_0x5c65ad(0x223)]['unitId'],'subUnitId':this[_0x5c65ad(0x223)][_0x5c65ad(0x26c)],'drawingId':this[_0x5c65ad(0x223)][_0x5c65ad(0x275)]});if(_0x3070e4!=null&&_0x3070e4[_0x5c65ad(0x15f)]){let {left:_0x30427c=0x0,top:_0x44b249=0x0,width:_0x199efe=0x0,height:_0x2f6af7=0x0,angle:_0xa5a256}=_0x3070e4[_0x5c65ad(0x15f)];_0x127905=_0x109e70({'left':_0x30427c,'top':_0x44b249,'width':_0x199efe,'height':_0x2f6af7},_0xa5a256||0x0);}else _0x127905={'left':_0x209715['x'],'top':_0x209715['y'],'width':0x0,'height':0x0};}else _0x127905={'left':_0x209715['x'],'top':_0x209715['y'],'width':0x0,'height':0x0};let _0x214267={'point':_0x209715,'angle':_0x437abc,'bounds':_0x127905},_0x19f3ea=_0x7d6a84?_0x214267:_0x53ab34,_0xdbe900=_0x7d6a84?_0x53ab34:_0x214267,_0x400fc0=this['_activeShapeModel'][_0x5c65ad(0x134)](),_0x23dd88=_0x201266(_0x19f3ea,_0xdbe900,_0x400fc0);_0x23dd88&&this[_0x5c65ad(0x1d8)]['updateLinePoints'](_0x23dd88);let _0x44e6ea=_0x3cbafa(_0x23dd88,_0x400fc0);_0x44e6ea[_0x5c65ad(0x130)]!==_0x400fc0&&this['_activeShapeModel'][_0x5c65ad(0x175)](_0x44e6ea[_0x5c65ad(0x130)]);for(let [_0x590c73,_0x4080b7]of Object['entries'](_0x44e6ea[_0x5c65ad(0x29d)]))this[_0x5c65ad(0x1d8)][_0x5c65ad(0x359)](_0x590c73,_0x4080b7);this[_0x5c65ad(0x1d8)]['updateContext']({'width':_0x44e6ea['worldRect'][_0x5c65ad(0x324)],'height':_0x44e6ea[_0x5c65ad(0x214)][_0x5c65ad(0x39a)]}),_0x4e91c4[_0x5c65ad(0x234)]({'flipX':_0x44e6ea[_0x5c65ad(0x214)][_0x5c65ad(0x270)],'flipY':_0x44e6ea[_0x5c65ad(0x214)][_0x5c65ad(0x25e)],'left':_0x44e6ea[_0x5c65ad(0x214)][_0x5c65ad(0xe4)],'top':_0x44e6ea[_0x5c65ad(0x214)]['top'],'width':_0x44e6ea['worldRect'][_0x5c65ad(0x324)],'height':_0x44e6ea[_0x5c65ad(0x214)][_0x5c65ad(0x39a)],'angle':_0x44e6ea[_0x5c65ad(0x264)]}),_0x4e91c4[_0x5c65ad(0x390)](!0x0);let _0x2198d3=((_0x47456c=this['_currentConnectionTarget'])==null?void 0x0:_0x47456c[_0x5c65ad(0x1ba)])??_0x502b71;_0x1636eb[_0x5c65ad(0x234)]({'left':_0x2198d3['x']-_0x4c61a8['cxnPointRadius'],'top':_0x2198d3['y']-_0x4c61a8['cxnPointRadius']});}[_0x232df7(0x1f9)](_0x835cd,_0x4de425,_0x291070,_0x56cb48,_0x9eeda7){const _0x514d4c=_0x232df7;var _0xd33eb7,_0x3135b8;let _0x282137=((_0xd33eb7=this[_0x514d4c(0x223)])==null?void 0x0:_0xd33eb7[_0x514d4c(0x1ba)])??_0x835cd,_0x22559e=_0x5d44cb[_0x514d4c(0x247)](_0x4de425,_0x282137,_0x291070);_0x56cb48['transformByState']({'flipX':_0x22559e[_0x514d4c(0x214)][_0x514d4c(0x270)],'flipY':_0x22559e[_0x514d4c(0x214)][_0x514d4c(0x25e)],'left':_0x22559e[_0x514d4c(0x214)]['left'],'top':_0x22559e[_0x514d4c(0x214)][_0x514d4c(0x1b9)],'width':_0x22559e['worldRect'][_0x514d4c(0x324)],'height':_0x22559e[_0x514d4c(0x214)][_0x514d4c(0x39a)],'angle':_0x22559e[_0x514d4c(0x214)][_0x514d4c(0x140)]});let _0x575626=((_0x3135b8=this[_0x514d4c(0x223)])==null?void 0x0:_0x3135b8['worldPoint'])??_0x835cd;_0x9eeda7[_0x514d4c(0x234)]({'left':_0x575626['x']-_0x4c61a8['cxnPointRadius'],'top':_0x575626['y']-_0x4c61a8[_0x514d4c(0x215)]});}[_0x232df7(0x20d)](_0x1be3de){const _0x4dcb45=_0x232df7;if(!this[_0x4dcb45(0x102)]||!this['_subUnitId'])return null;let {shapeId:_0x460b7d,cxnIndex:_0x52811d}=_0x1be3de,_0x387aed=this[_0x4dcb45(0x3aa)]['getShapeModel'](this['_unitId'],this[_0x4dcb45(0x161)],_0x460b7d);if(!_0x387aed)return null;let _0x524e0c=this[_0x4dcb45(0x11c)][_0x4dcb45(0x282)]({'unitId':this['_unitId'],'subUnitId':this[_0x4dcb45(0x161)],'drawingId':_0x460b7d});if(!(_0x524e0c!=null&&_0x524e0c['transform']))return null;let {left:_0x415fb3=0x0,top:_0x27c8e2=0x0,width:_0x1bbf45=0x0,height:_0x1cc60d=0x0,flipX:_0x5b7e0f=!0x1,flipY:_0x54dc12=!0x1,angle:_0x4200d1}=_0x524e0c[_0x4dcb45(0x15f)];_0x387aed[_0x4dcb45(0x2bd)]({'width':_0x1bbf45,'height':_0x1cc60d});let _0x4dd5a6=_0x387aed[_0x4dcb45(0x26d)]()[_0x4dcb45(0x12b)](_0x2b4951=>_0x2b4951[_0x4dcb45(0x198)]===_0x52811d);if(!_0x4dd5a6)return null;let _0x3c2336=_0x5b7e0f?_0x1bbf45-_0x4dd5a6['x']:_0x4dd5a6['x'],_0x19b109=_0x54dc12?_0x1cc60d-_0x4dd5a6['y']:_0x4dd5a6['y'];if(_0x4200d1!==0x0&&_0x4200d1!=null){let _0xaa42a5=_0x4200d1*Math['PI']/0xb4,_0xf25474=Math['cos'](_0xaa42a5),_0x143eab=Math[_0x4dcb45(0x159)](_0xaa42a5),_0x13caef=_0x1bbf45/0x2,_0x4305b6=_0x1cc60d/0x2,_0xab298c=_0x3c2336-_0x13caef,_0x4d61b6=_0x19b109-_0x4305b6;_0x3c2336=_0x13caef+_0xab298c*_0xf25474-_0x4d61b6*_0x143eab,_0x19b109=_0x4305b6+_0xab298c*_0x143eab+_0x4d61b6*_0xf25474;}_0x3c2336+=_0x415fb3,_0x19b109+=_0x27c8e2;let _0x199624=_0x4dd5a6['ang']/0xea60;_0x5b7e0f&&(_0x199624=0xb4-_0x199624),_0x54dc12&&(_0x199624=-_0x199624),_0x199624+=_0x4200d1||0x0,_0x199624=(_0x199624%0x168+0x168)%0x168;let _0x3939d5=_0x109e70({'left':_0x415fb3,'top':_0x27c8e2,'width':_0x1bbf45,'height':_0x1cc60d},_0x4200d1||0x0);return{'point':{'x':_0x3c2336,'y':_0x19b109},'angle':_0x199624,'bounds':_0x3939d5};}[_0x232df7(0x2c0)](_0x48e88a,_0x4c9d29){const _0x4a5973=_0x232df7;let _0x534471=_0x4c9d29['x']-_0x48e88a['x'],_0x216fa0=_0x4c9d29['y']-_0x48e88a['y'];return Math[_0x4a5973(0x227)](_0x534471)>=Math[_0x4a5973(0x227)](_0x216fa0)?_0x534471>=0x0?0xb4:0x0:_0x216fa0>=0x0?0x10e:0x5a;}[_0x232df7(0x308)](){const _0x1edea7=_0x232df7;this['_activeShapeId']=void 0x0,this[_0x1edea7(0x102)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x1edea7(0x2d5)]();}[_0x232df7(0x296)](){this['_clearShapeConnectorHandlerObjects'](),super['dispose']();}};ma=X([Y(0x1,_0x1b156e),Y(0x2,_0x422c1e),Y(0x3,_0x3deb35),Y(0x4,_0x304294),Y(0x5,_0x229e82(_0x5c2303)),Y(0x6,_0x229e82(Pr)),Y(0x7,_0x229e82(da))],ma);let ha=class extends _0x2bb0e8{constructor(_0x2ebb35,_0x36611a,_0x4f3d2b){const _0x5c332a=_0x232df7;super(),this[_0x5c332a(0x182)]=_0x2ebb35,this['_drawingManagerService']=_0x36611a,this['_shapeRenderController']=_0x4f3d2b,this[_0x5c332a(0x20f)]();}[_0x232df7(0x20f)](){const _0x38e484=_0x232df7;this[_0x38e484(0x2db)](this['_sheetPrintInterceptorService'][_0x38e484(0x142)]['intercept'](this[_0x38e484(0x182)][_0x38e484(0x142)][_0x38e484(0x1a3)]()[_0x38e484(0x27a)],{'handler':(_0x55abe4,_0x4a62e4,_0xed0019)=>{const _0xe498f0=_0x38e484;var _0xb41570;let {unitId:_0x432bdf,subUnitId:_0x4e8b8d,scene:_0x29d643,resourceCollector:_0x22c986}=_0x4a62e4,_0x35858c=(_0xb41570=this[_0xe498f0(0x11c)][_0xe498f0(0x287)](_0x432bdf))==null?void 0x0:_0xb41570[_0x4e8b8d];return _0x35858c==null||_0x35858c[_0xe498f0(0x174)][_0xe498f0(0x385)](_0x50f996=>{const _0x31b358=_0xe498f0;let _0xc1fbf=_0x35858c[_0x31b358(0x11a)][_0x50f996];_0xc1fbf[_0x31b358(0x183)]===_0x190419[_0x31b358(0x21d)]&&!_0xc1fbf[_0x31b358(0x1d0)]&&this[_0x31b358(0x353)]['renderDrawingShape'](_0xc1fbf,_0x29d643,{'resourceCollector':_0x22c986});}),_0xed0019(_0x55abe4);}}));}};ha=X([Y(0x0,_0x229e82(_0x3e6e4c)),Y(0x1,_0x3deb35),Y(0x2,_0x229e82(Z))],ha);let ga=class extends _0x2bb0e8{constructor(_0x4f816d,_0x18783c,_0x106fae){const _0x364d3d=_0x232df7;super(),this[_0x364d3d(0x232)]=_0x4f816d,this[_0x364d3d(0x184)]=_0x18783c,this[_0x364d3d(0x1a2)]=_0x106fae,this[_0x364d3d(0x29b)]();}[_0x232df7(0x29b)](){const _0xca8d16=_0x232df7;this[_0xca8d16(0x2db)](this['_commandService'][_0xca8d16(0xee)](_0x3f5646=>{const _0x4499db=_0xca8d16;let _0x4d9608,_0x32570c;if(_0x3f5646['id']===_0x143510['id']||_0x3f5646['id']===_0x37673b['id']||_0x3f5646['id']===_0xa22292['id']){let _0x38cbac=_0x3f5646[_0x4499db(0x1aa)];_0x4d9608=_0x38cbac[_0x4499db(0x1e3)],_0x32570c=_0x38cbac['subUnitId'];}_0x4d9608&&_0x32570c&&(this[_0x4499db(0x1a2)]['permissionCheckWithoutRange']({'workbookTypes':[_0x48f387],'worksheetTypes':[_0x459023]},_0x4d9608,_0x32570c)||this[_0x4499db(0x1a2)][_0x4499db(0x28a)](this[_0x4499db(0x184)]['t'](_0x4499db(0x387))));}));}};ga=X([Y(0x0,_0x229e82(_0x1b156e)),Y(0x1,_0x229e82(_0x16b0b7)),Y(0x2,_0x229e82(_0x2c9f0d))],ga);let _a=class{constructor(_0xbc1ac5){const _0x4c57da=_0x232df7;this[_0x4c57da(0x209)]=_0xbc1ac5;}['updateShapeFillImage'](_0x109481,_0xa5b7ad){const _0x2f396b=_0x232df7;let _0x20b6a9=this[_0x2f396b(0x209)]['getRenderUnitById'](_0x109481[_0x2f396b(0x1e3)]),_0x36d93b=_0x20b6a9==null?void 0x0:_0x20b6a9[_0x2f396b(0x381)];if(!_0x36d93b)return;let _0x4566f9=_0x3023e5(_0x109481),_0x1de6d6=_0x36d93b[_0x2f396b(0x3a9)](_0x4566f9);_0x1de6d6==null||_0x1de6d6['setFillImage'](_0xa5b7ad);}};_a=X([Y(0x0,_0x422c1e)],_a);let va=class extends _0x407af{constructor(_0x422c4b=Yi,_0xcb1a55,_0x142a8c,_0x3a2b76,_0x4f1f27){const _0x18e630=_0x232df7;super(),this[_0x18e630(0x2b5)]=_0x422c4b,this[_0x18e630(0x1e1)]=_0xcb1a55,this['_commandService']=_0x142a8c,this[_0x18e630(0x162)]=_0x3a2b76,this[_0x18e630(0x209)]=_0x4f1f27;let {..._0x567c89}=_0x32987f({},Yi,this['_config']);this[_0x18e630(0x162)][_0x18e630(0x103)](Ji,_0x567c89),this[_0x18e630(0x26a)]();}[_0x232df7(0x1b7)](){const _0x244572=_0x232df7;this['_injector']['add']([ta]),this[_0x244572(0x1e1)]['get'](ta),_0x365af4(this['_injector'],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}[_0x232df7(0x1c9)](){const _0x1422b0=_0x232df7;_0x365af4(this[_0x1422b0(0x1e1)],[[da],[Pr],[fa]]),_0x3ece4a(this[_0x1422b0(0x1e1)],[[fa],[Pr]]),[[da],[Xi],[ma],[ra]][_0x1422b0(0x385)](_0x516bbe=>{const _0x26492e=_0x1422b0;this['disposeWithMe'](this[_0x26492e(0x209)][_0x26492e(0x3a8)](_0xe0c4a6[_0x26492e(0x277)],_0x516bbe));});}[_0x232df7(0x311)](){_0x3ece4a(this['_injector'],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}[_0x232df7(0x126)](){const _0x5486fb=_0x232df7;this[_0x5486fb(0x1e1)][_0x5486fb(0x14a)](aa)[_0x5486fb(0x179)]();}['_initCommands'](){const _0x3f368f=_0x232df7;[Ir,K,Fr,qi][_0x3f368f(0x385)](_0x10e090=>this[_0x3f368f(0x2db)](this[_0x3f368f(0x232)][_0x3f368f(0x204)](_0x10e090)));}};q(va,_0x232df7(0xf1),_0xe0c4a6[_0x232df7(0x277)]),q(va,_0x232df7(0x18f),_0x232df7(0x312)),q(va,_0x232df7(0xfa),Gi),q(va,'version',Ki),va=X([_0x18c7c6(_0x42123a,_0x47964d,_0x2036ef,_0x524cd0,_0x7f5329,_0xc91a83,_0x434230,_0x4831fe,_0x212ef7,_0x1fa068,_0x281d56,_0x42ad3b,_0x6ff3b1),Y(0x1,_0x229e82(_0x3fb460)),Y(0x2,_0x1b156e),Y(0x3,_0x40ca43),Y(0x4,_0x422c1e)],va);const ya={'type':_0x33172f[_0x232df7(0x2ab)],'id':_0x232df7(0x233),'handler'(){return!0x0;}};function ba(){const _0x185ff5=_0x232df7;let _0x5cf681=_0x3a3b93(_0x3deb35),_0x3010bf=_0xe01eb2(()=>_0x5cf681['focus$'],_0x5cf681[_0x185ff5(0x310)](),!0x1,[_0x5cf681]);return _0x3010bf[_0x185ff5(0x333)]===0x0?null:_0x386576(_0x185ff5(0x121),{'children':_0x61d32d('div',{'className':_0x185ff5(0x1c3),'children':[_0x386576(_0x4f1e4b,{'drawings':_0x3010bf,'hasCropper':!0x1}),_0x386576(_0x4ef3b5,{'drawings':_0x3010bf})]})});}function xa(_0xc4fcc9){let {unitId:_0x49a6af,subUnitId:_0x12c6fa,shapeId:_0xe37968}=_0xc4fcc9,_0x34046d=_0x3a3b93(_0x1b156e),_0x5f0b2e=_0x3a3b93(_a);return _0x386576(_0x1f5908,{..._0xc4fcc9,'positionEditor':_0x386576(ba,{}),'onUpdateShapeData':(_0x4d9155,_0x45ac06)=>{Dr(_0x34046d,_0x49a6af,_0x12c6fa,_0xe37968,_0x4d9155,_0x45ac06);},'onUpdateLineShapeData':(_0xeeb462,_0x4f5083)=>{Or(_0x34046d,_0x49a6af,_0x12c6fa,_0xe37968,_0xeeb462,_0x4f5083);},'onUpdateShapeFillImage':_0x4e9b5b=>{_0x5f0b2e['updateShapeFillImage']({'unitId':_0x49a6af,'subUnitId':_0x12c6fa,'drawingId':_0xe37968},_0x4e9b5b);}});}function Sa(_0x590e10){const _0x32d31e=_0x232df7;let _0x378df6=_0x3a3b93(_0xee6e88),_0x56d566=_0xe01eb2(()=>_0x378df6[_0x32d31e(0x110)],_0x378df6[_0x32d31e(0x245)](),!0x1,[_0x378df6]),_0x10d8e8=_0x590e10[_0x32d31e(0x1e6)]['extraProps'];return!_0x10d8e8||!_0x56d566?null:_0x386576(Ca,{..._0x10d8e8,'canvasElement':_0x590e10['popup'][_0x32d31e(0x20a)]});}function Ca(_0x39898a){const _0x268bd3=_0x232df7;let _0x2ddd8e=_0x3a3b93(_0x1b156e),_0x93bafe=_0x3a3b93(_0x5c2303),{unitId:_0x310402,subUnitId:_0x4919a4,drawingId:_0x1fd734,drawingType:_0x291fd2,shapeType:_0x5a99a9}=_0x39898a,[_0x2830d2,_0x23be4e]=_0x2c04bf(_0x39898a['shapeData']),_0xcba01e=_0x53eb09(()=>_0x37bae9(_0x2830d2),[_0x2830d2]),_0x2e1301=_0x53eb09(()=>_0x1f9271(_0x2830d2),[_0x2830d2]);_0x3ac889(()=>{const _0x2910c9=_0x2028;let _0x551daf=_0x2ddd8e[_0x2910c9(0x224)](_0x177c32=>{const _0x33825d=_0x2910c9;if(_0x177c32['id']!==_0x4af43a['id'])return;let _0x3825f5=_0x93bafe[_0x33825d(0x329)](_0x310402,_0x4919a4,_0x1fd734);_0x3825f5&&_0x23be4e(_0x3825f5);});return()=>_0x551daf[_0x2910c9(0x296)]();},[_0x2ddd8e,_0x1fd734,_0x93bafe,_0x4919a4,_0x310402]);let _0x4fe9ce=_0xd82528=>{_0x23be4e(_0x3afc72=>({..._0x3afc72,..._0xd82528}));},_0xcfb7a=_0xb5b02e=>{const _0x5ee07e=_0x2028;let _0x2c4549=_0x2a4875(_0x2830d2,_0xb5b02e);Dr(_0x2ddd8e,_0x310402,_0x4919a4,_0x1fd734,{'oldShapeData':{'shapeText':_0x2830d2[_0x5ee07e(0x396)]}},_0x2c4549),_0x4fe9ce(_0x2c4549);},_0x4b999e=_0x5433fa({'hostType':_0xe0c4a6[_0x268bd3(0x277)],'unitId':_0x310402,'subUnitId':_0x4919a4,'shapeId':_0x1fd734,'shapeData':_0x2830d2,'onUpdateBinding':_0x44f945=>{const _0x1eff68=_0x268bd3;let _0x3027d5={'formulaBinding':_0x44f945};Dr(_0x2ddd8e,_0x310402,_0x4919a4,_0x1fd734,{'oldShapeData':{'formulaBinding':_0x2830d2[_0x1eff68(0x2da)]}},_0x3027d5),_0x4fe9ce(_0x3027d5);}});return _0x61d32d(_0xe1ac43,{'children':[_0x386576(_0xaf994a,{'canvasElement':_0x39898a[_0x268bd3(0x20a)],'shapeData':_0x2830d2,'shapeType':_0x5a99a9,'textStyle':{'ff':_0x4c61a8[_0x268bd3(0x396)][_0x268bd3(0x1bb)],'fs':_0x4c61a8['shapeText'][_0x268bd3(0x207)],'cl':{'rgb':_0x4c61a8[_0x268bd3(0x396)][_0x268bd3(0xe9)]},..._0xcba01e},'textModel':_0x2e1301?{'ha':_0x2e1301['ha']??_0x4dc457[_0x268bd3(0xf0)],'va':_0x2e1301['va']??_0x2cccb9[_0x268bd3(0x115)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x4c61a8[_0x268bd3(0x33e)],'defaultGradientEndColor':_0x4c61a8[_0x268bd3(0x37c)],'defaultStrokeColor':_0x4c61a8['stroke'],'extensionGroups':_0x4b999e['extensionGroups'],'floatingObjectToolbarPosition':_0x28d51f[_0x268bd3(0x13c)],'onUpdateShapeData':(_0x7ea891,_0x3590f0)=>{Dr(_0x2ddd8e,_0x310402,_0x4919a4,_0x1fd734,_0x7ea891,_0x3590f0),_0x3590f0&&_0x4fe9ce(_0x3590f0);},'onUpdateText':_0xcfb7a,'onOpenPanel':()=>{const _0x4718c7=_0x268bd3;_0x2ddd8e[_0x4718c7(0x286)](Wr['id'],{'unitId':_0x310402,'subUnitId':_0x4919a4,'drawingId':_0x1fd734});},'onDelete':()=>{const _0x464b04=_0x268bd3;_0x2ddd8e[_0x464b04(0x286)](_0x29b5e1['id'],{'unitId':_0x310402,'drawings':[{'unitId':_0x310402,'subUnitId':_0x4919a4,'drawingId':_0x1fd734,'drawingType':_0x291fd2}]});}}),_0x4b999e[_0x268bd3(0x284)]]});}function wa(_0x1dac17){const _0x54ce7b=_0x232df7;return!!_0x1dac17&&'axisAlignSheetTransform'in _0x1dac17&&_0x54ce7b(0x2a0)in _0x1dac17;}const Ta=_0x979643(()=>{const _0x356e93=_0x232df7;let _0x722863=_0x3a3b93($),_0x5838ea=_0x3a3b93(_0x5c2303),_0x4c8ea4=_0x3a3b93(_0x3deb35),_0x5561c7=_0x3a3b93(_0x1b156e),_0x325528=_0x3a3b93(_0x49cd39),_0x40cb97=_0x3a3b93(_0x422c1e),_0x48204b=_0x53eb09(()=>({'getShapeModel':(_0x116505,_0x3950f5,_0x321338)=>_0x5838ea[_0x356e93(0x1cf)](_0x116505,_0x3950f5,_0x321338),'getShapeData':(_0x87104d,_0x1b027b,_0x445c0b)=>_0x5838ea['getShapeDataById'](_0x87104d,_0x1b027b,_0x445c0b),'getDrawingTransform':(_0x9d8e7b,_0x2aea8f,_0xa23cc0)=>{const _0x357739=_0x356e93;let _0x8776c0=_0x4c8ea4[_0x357739(0x282)]({'unitId':_0x9d8e7b,'subUnitId':_0x2aea8f,'drawingId':_0xa23cc0});return _0x8776c0==null?void 0x0:_0x8776c0[_0x357739(0x15f)];},'updateShapeText':({unitId:_0x25632c,subUnitId:_0x3aa7ec,shapeId:_0x534d66,shapeText:_0xef3e27,oldShapeText:_0x548d64,hostSize:_0x371173})=>{const _0x2c0ed3=_0x356e93;_0x325528[_0x2c0ed3(0x351)](_0x25632c,()=>{const _0x2525b5=_0x2c0ed3;var _0x19bb4c;let _0x233f97=_0x5561c7[_0x2525b5(0x325)](K['id'],{'unitId':_0x25632c,'subUnitId':_0x3aa7ec,'shapeId':_0x534d66,'shapeData':{'shapeText':_0xef3e27},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x548d64}}});if(!_0x233f97||!_0x371173)return _0x233f97;let _0x192b00=_0x4c8ea4[_0x2525b5(0x282)]({'unitId':_0x25632c,'subUnitId':_0x3aa7ec,'drawingId':_0x534d66}),_0xfc28a4=_0x192b00==null?void 0x0:_0x192b00[_0x2525b5(0x15f)];if(!wa(_0x192b00)||!_0xfc28a4)return!0x1;let _0x395577={..._0xfc28a4,'width':_0x371173['width'],'height':_0x371173[_0x2525b5(0x39a)]},_0x3acdbd=(_0x19bb4c=_0x40cb97[_0x2525b5(0x124)](_0x25632c))==null||(_0x19bb4c=_0x19bb4c['with'](_0x54a66d)[_0x2525b5(0x33f)](_0x3aa7ec))==null?void 0x0:_0x19bb4c[_0x2525b5(0x235)];return _0x5561c7[_0x2525b5(0x325)](_0x47d60a['id'],{'unitId':_0x25632c,'drawings':[{..._0x192b00,'transform':_0x395577,'sheetTransform':_0x3acdbd?_0x1f42db(_0x395577,_0x3acdbd)??_0x192b00['sheetTransform']:_0x192b00['sheetTransform'],'axisAlignSheetTransform':_0x3acdbd?_0x544983(_0x395577,_0x3acdbd)??_0x192b00[_0x2525b5(0x1ac)]:_0x192b00['axisAlignSheetTransform']}]});});},'updateHostSize':({unitId:_0x24c824,subUnitId:_0x18904b,shapeId:_0x21323b,width:_0x1adf7a,height:_0x406749})=>{const _0x1700b8=_0x356e93;var _0x5b6d24;let _0x248113=_0x4c8ea4[_0x1700b8(0x282)]({'unitId':_0x24c824,'subUnitId':_0x18904b,'drawingId':_0x21323b}),_0x1c19c3=_0x248113==null?void 0x0:_0x248113[_0x1700b8(0x15f)];if(!wa(_0x248113)||!_0x1c19c3)return;let _0x4bfef9={..._0x1c19c3,'width':_0x1adf7a,'height':_0x406749},_0xdc9538=(_0x5b6d24=_0x40cb97[_0x1700b8(0x124)](_0x24c824))==null||(_0x5b6d24=_0x5b6d24[_0x1700b8(0x18c)](_0x54a66d)[_0x1700b8(0x33f)](_0x18904b))==null?void 0x0:_0x5b6d24['skeleton'],_0x5a8c8c=_0xdc9538?_0x1f42db(_0x4bfef9,_0xdc9538)??_0x248113[_0x1700b8(0x2a0)]:_0x248113[_0x1700b8(0x2a0)],_0x44f338=_0xdc9538?_0x544983(_0x4bfef9,_0xdc9538)??_0x248113[_0x1700b8(0x1ac)]:_0x248113['axisAlignSheetTransform'];_0x5561c7[_0x1700b8(0x286)](_0x47d60a['id'],{'unitId':_0x24c824,'drawings':[{..._0x248113,'transform':_0x4bfef9,'sheetTransform':_0x5a8c8c,'axisAlignSheetTransform':_0x44f338}]});},'allowHostSizeShrink':({unitId:_0x319934,subUnitId:_0x5b752f,shapeId:_0x3bad98})=>_0x35f3c5(_0x5838ea[_0x356e93(0x329)](_0x319934,_0x5b752f,_0x3bad98)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x5561c7,_0x4c8ea4,_0x40cb97,_0x5838ea,_0x325528]),_0x1f3159=_0x53eb09(()=>({'viewportKeys':{'main':_0x1e57e3[_0x356e93(0x2ef)],'leftTop':_0x1e57e3['VIEW_MAIN_LEFT_TOP'],'top':_0x1e57e3['VIEW_MAIN_TOP'],'left':_0x1e57e3['VIEW_MAIN_LEFT']},'getSkeleton':(_0x474fb1,_0x8b72ef)=>{const _0x6c66f2=_0x356e93;var _0x309ed5;return((_0x309ed5=_0x474fb1[_0x6c66f2(0x18c)](_0x54a66d)[_0x6c66f2(0x33f)](_0x8b72ef[_0x6c66f2(0x26c)]))==null?void 0x0:_0x309ed5[_0x6c66f2(0x235)])??null;}}),[]);return _0x386576(_0x3977ad,{'adapter':_0x48204b,'editingService':_0x722863,'editorUnitId':Vr,'positionOptions':_0x1f3159});});let Ea=class extends _0x2bb0e8{constructor(_0x2b4ff8,_0x24fc71){const _0x2a8f64=_0x232df7;super(),this[_0x2a8f64(0x2ae)]=_0x2b4ff8,this[_0x2a8f64(0x358)]=_0x24fc71,this[_0x2a8f64(0x319)](),this[_0x2a8f64(0x145)]();}[_0x232df7(0x319)](){const _0x4c576e=_0x232df7;this[_0x4c576e(0x358)][_0x4c576e(0x104)](_0x4c576e(0x1ea))||this[_0x4c576e(0x2db)](this['_iconManager']['register']({'ObjectLayersIcon':_0x562db7})),this[_0x4c576e(0x358)][_0x4c576e(0x104)](_0x4c576e(0x1ab))||this[_0x4c576e(0x2db)](this['_iconManager']['register']({'FlipHorizontalIcon':_0x3c3c9d})),this[_0x4c576e(0x358)][_0x4c576e(0x104)](_0x4c576e(0x3a0))||this['disposeWithMe'](this['_iconManager'][_0x4c576e(0x114)]({'FlipVerticalIcon':_0x134503})),this[_0x4c576e(0x358)][_0x4c576e(0x104)](_0x4c576e(0x337))||this[_0x4c576e(0x2db)](this['_iconManager']['register']({'BottomIcon':_0x7cbde6})),this[_0x4c576e(0x358)][_0x4c576e(0x104)](_0x4c576e(0x1d5))||this[_0x4c576e(0x2db)](this['_iconManager'][_0x4c576e(0x114)]({'MoveDownIcon':_0x1cd4bd})),this['_iconManager']['has'](_0x4c576e(0x13b))||this['disposeWithMe'](this['_iconManager'][_0x4c576e(0x114)]({'MoveUpIcon':_0x5818fa})),this[_0x4c576e(0x358)][_0x4c576e(0x104)]('ShapeFormatSettingIcon')||this[_0x4c576e(0x2db)](this[_0x4c576e(0x358)]['register']({'ShapeFormatSettingIcon':_0x4a1cd8})),this[_0x4c576e(0x358)][_0x4c576e(0x104)](_0x4c576e(0x2de))||this['disposeWithMe'](this[_0x4c576e(0x358)][_0x4c576e(0x114)]({'TopmostIcon':_0xc502f4}));}[_0x232df7(0x145)](){const _0x3f8ecf=_0x232df7;this[_0x3f8ecf(0x2db)](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](Lr,xa)),this[_0x3f8ecf(0x2db)](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](Rr,$i)),this['disposeWithMe'](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](Jr,ei)),this[_0x3f8ecf(0x2db)](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](Yr,Zr)),this['_componentManager'][_0x3f8ecf(0x2f3)](_0x48d256)||this[_0x3f8ecf(0x2db)](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](_0x48d256,$r)),this['disposeWithMe'](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](zr,Sa)),this['disposeWithMe'](this['_componentManager']['register'](di,hi)),this[_0x3f8ecf(0x2db)](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](ui,gi)),this[_0x3f8ecf(0x2db)](this['_componentManager'][_0x3f8ecf(0x114)](fi,_i)),this['disposeWithMe'](this['_componentManager'][_0x3f8ecf(0x114)](pi,vi)),this[_0x3f8ecf(0x2db)](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](Hr,_0x5dc698)),this[_0x3f8ecf(0x2db)](this['_componentManager']['register'](_0x3f8ecf(0x2bb),Ta));}};Ea=X([Y(0x0,_0x229e82(_0x2359f7)),Y(0x1,_0x229e82(_0x22aeed))],Ea);let Da=class extends _0x2bb0e8{constructor(_0x1e5d2e,_0x14289c,_0x34852a,_0x260f9e,_0x5a7b31,_0x485783,_0x2e3143,_0x4bdfa7,_0x5bedaa){const _0x33639f=_0x232df7;super();let _0x80e973=_0x5628ee=>{const _0xc6ea2c=_0x2028;var _0x21cbe5,_0x4d05d2;return(((_0x21cbe5=_0x4bdfa7[_0xc6ea2c(0x31b)](new _0x48f387(_0x5628ee['unitId'])['id']))==null?void 0x0:_0x21cbe5[_0xc6ea2c(0x30f)])??!0x0)&&(((_0x4d05d2=_0x4bdfa7[_0xc6ea2c(0x31b)](new _0x459023(_0x5628ee[_0xc6ea2c(0x1e3)],_0x5628ee[_0xc6ea2c(0x26c)])['id']))==null?void 0x0:_0x4d05d2[_0xc6ea2c(0x30f)])??!0x0);},_0x5218d0=_0x9c6e10=>_0x9c6e10['shapeId']&&_0x80e973(_0x9c6e10)?_0x34852a[_0x33639f(0x329)](_0x9c6e10[_0x33639f(0x1e3)],_0x9c6e10[_0x33639f(0x26c)],_0x9c6e10['shapeId'])??null:null,_0x2c257c=()=>{const _0x5686ed=_0x33639f;let _0x539364=_0x5a7b31[_0x5686ed(0x310)](),_0x18d401=_0x539364['length']===0x1?_0x539364[0x0]:null;return(_0x18d401==null?void 0x0:_0x18d401['drawingType'])===_0x190419[_0x5686ed(0x21d)]&&_0x18d401[_0x5686ed(0x1e3)]===_0x1e5d2e[_0x5686ed(0x1e3)]?{'unitId':_0x18d401[_0x5686ed(0x1e3)],'subUnitId':_0x18d401[_0x5686ed(0x26c)],'shapeId':_0x18d401[_0x5686ed(0x36c)]}:null;};this['disposeWithMe'](_0xf449a5(_0x1e5d2e,_0x14289c,{'changes$':_0x6568cf(_0x5a7b31[_0x33639f(0x19a)],_0x260f9e[_0x33639f(0x187)],_0x4bdfa7[_0x33639f(0x25a)]),'isActive':()=>{const _0x11954d=_0x33639f;var _0x45cddf;return((_0x45cddf=_0x485783[_0x11954d(0x2ea)]())==null?void 0x0:_0x45cddf[_0x11954d(0x3a3)]())===_0x1e5d2e['unitId']&&!_0x2e3143[_0x11954d(0x39b)](_0x29a73c)&&_0x5a7b31[_0x11954d(0x310)]()['some'](_0x48dc0f=>_0x48dc0f[_0x11954d(0x1e3)]===_0x1e5d2e[_0x11954d(0x1e3)]);},'getSelectedTarget':_0x2c257c,'getSource':()=>{let _0x1e7b09=_0x2c257c();return _0x1e7b09?_0x5218d0(_0x1e7b09):null;},'getTarget':_0x2c7040=>{const _0x336826=_0x33639f;let _0x147ff8=_0x1e5d2e[_0x336826(0x381)]['pick'](new _0x17a8a4(_0x2c7040['offsetX'],_0x2c7040[_0x336826(0x1d6)]));if(!(_0x147ff8 instanceof J))return null;let _0x5b2535={'unitId':_0x1e5d2e['unitId'],'subUnitId':_0x147ff8[_0x336826(0x26c)],'shapeId':_0x147ff8[_0x336826(0x275)]};return _0x80e973(_0x5b2535)?_0x5b2535:null;},'getShape':_0x5218d0,'update':(_0x2a49d4,_0x3196cb,_0x46277d)=>_0x5bedaa[_0x33639f(0x286)](K['id'],{..._0x2a49d4,'shapeData':_0x46277d,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x3196cb}})}));}};Da=X([Y(0x1,_0x229e82(_0x37b7ed)),Y(0x2,_0x229e82(_0x5c2303)),Y(0x3,_0x229e82($)),Y(0x4,_0x3deb35),Y(0x5,_0x304294),Y(0x6,_0x49d586),Y(0x7,_0x300477),Y(0x8,_0x1b156e)],Da);const Oa=_0x232df7(0x332);let ka=class extends _0x2bb0e8{constructor(_0x1245c1,_0x32cf59,_0x4711a4,_0x5c8957,_0x4dda52,_0x25431a){const _0x1d371a=_0x232df7;super(),this[_0x1d371a(0x220)]=_0x1245c1,this['_ribbonService']=_0x32cf59,this[_0x1d371a(0x11c)]=_0x4711a4,this['_univerInstanceService']=_0x5c8957,this[_0x1d371a(0x209)]=_0x4dda52,this['_shapeFloatingToolbarService']=_0x25431a,q(this,'_visible',!0x1),this['_menuManagerService'][_0x1d371a(0x36a)](Hi),this[_0x1d371a(0x2db)](_0x169987(this[_0x1d371a(0x11c)][_0x1d371a(0x19a)][_0x1d371a(0x268)](()=>this[_0x1d371a(0x2b8)]()))),this['_update']();}[_0x232df7(0x296)](){const _0xf2d82e=_0x232df7;this[_0xf2d82e(0x2ce)][_0xf2d82e(0x138)](!0x1,Oa),this[_0xf2d82e(0x269)](),super[_0xf2d82e(0x296)]();}['_update'](){const _0x50e049=_0x232df7;var _0xdcdd84;let _0x3df1b7=this[_0x50e049(0x11c)][_0x50e049(0x310)](),_0x9348ca=_0x3df1b7['length']===0x1?_0x3df1b7[0x0]:void 0x0;if((_0x9348ca==null?void 0x0:_0x9348ca[_0x50e049(0x183)])!==_0x190419[_0x50e049(0x21d)]||this[_0x50e049(0x2d4)]['getUnitType'](_0x9348ca[_0x50e049(0x1e3)])!==_0xe0c4a6[_0x50e049(0x277)]){this[_0x50e049(0x2ce)][_0x50e049(0x138)](!0x1,Oa),this[_0x50e049(0x269)]();return;}let _0x2d0c1a=(_0xdcdd84=this[_0x50e049(0x209)][_0x50e049(0x124)](_0x9348ca[_0x50e049(0x1e3)]))==null?void 0x0:_0xdcdd84['engine']['getCanvasElement'](),_0x26c0d3=_0x2a5096(_0x2d0c1a)===_0x50e049(0x211);this[_0x50e049(0x2ce)][_0x50e049(0x138)](_0x26c0d3,Oa),_0x26c0d3?this[_0x50e049(0x269)]():this[_0x50e049(0x327)]||(this[_0x50e049(0x327)]=!0x0,this['_ribbonService'][_0x50e049(0x395)](Br,{'activate':!0x0}));}['_hide'](){const _0x3d350f=_0x232df7;this[_0x3d350f(0x327)]&&(this[_0x3d350f(0x327)]=!0x1,this[_0x3d350f(0x1d4)][_0x3d350f(0x2d2)](Br),this['_ribbonService'][_0x3d350f(0x242)]([]));}};ka=X([Y(0x0,_0x4cc398),Y(0x1,_0x2fcf59),Y(0x2,_0x3deb35),Y(0x3,_0x304294),Y(0x4,_0x422c1e),Y(0x5,_0x229e82(_0xee6e88))],ka);let Aa=class extends _0x553e20{constructor(_0x305ea9,_0x5e80d5,_0x553429,_0x5aed0c,_0x18b4ff,_0x2644fd,_0x3a45dc,_0xc8eba9,_0x3531e6,_0x2675c2){super(_0x305ea9,_0x5e80d5,_0x553429,_0x5aed0c,_0x18b4ff,_0x2644fd,_0x3a45dc,_0xc8eba9,_0x3531e6,_0x2675c2,{'componentKey':Hr,'editorUnitId':Vr});}};Aa=X([Y(0x1,_0x229e82(_0x25b5fd)),Y(0x2,_0x229e82(_0x9982b4)),Y(0x3,_0x229e82(_0x5f1788)),Y(0x4,_0x1b156e),Y(0x5,_0x229e82(_0x3fd001)),Y(0x6,_0x229e82(_0x258cdf)),Y(0x7,_0x229e82(_0x2dfb69)),Y(0x8,_0x229e82(_0x312210)),Y(0x9,_0x229e82($))],Aa);let ja=class extends _0x1e07e2{constructor(_0x28d5a3,_0x59ad1d,_0x570d79,_0x35a569,_0x4a578e){const _0x9991c9=_0x232df7;super(_0x28d5a3,_0x59ad1d,{'editing$':_0x570d79[_0x9991c9(0x187)],'resolve':_0x51da98=>{const _0x30de6f=_0x9991c9;var _0x2b45bd,_0x4a99f3,_0x3dc936;let _0x2f25ef=new _0x17a8a4(_0x51da98[_0x30de6f(0x26f)],_0x51da98[_0x30de6f(0x1d6)]),_0x39f15a=((_0x2b45bd=_0x28d5a3[_0x30de6f(0x381)][_0x30de6f(0x1d3)](_0x2f25ef))==null?void 0x0:_0x2b45bd[_0x30de6f(0x257)](_0x2f25ef))??_0x2f25ef,_0x4eae45=_0x33a154(_0x28d5a3['scene'][_0x30de6f(0x10a)](_0x2f25ef)??null,_0x39f15a);if(!(_0x4eae45 instanceof J))return null;let _0x58a2b7=_0x4eae45[_0x30de6f(0x1c1)](_0x39f15a);if(!_0x58a2b7)return null;let _0x66bb9f=_0x4eae45,_0xceab={'componentKey':_0x5c9174[_0x30de6f(0x216)],'direction':_0x30de6f(0x20c),'offset':[0x0,0xa],'onClickOutside':()=>_0x59ad1d[_0x30de6f(0x35f)]()};return{'object':_0x4eae45,'info':{..._0x58a2b7,'unitId':_0x4eae45[_0x30de6f(0x1e3)],'subUnitId':_0x4eae45[_0x30de6f(0x26c)],'shapeKey':_0x4eae45[_0x30de6f(0x283)],'readonly':!0x0,'copyable':((_0x4a99f3=_0x4a578e[_0x30de6f(0x31b)](new _0x429dc6(_0x4eae45[_0x30de6f(0x1e3)])['id']))==null?void 0x0:_0x4a99f3[_0x30de6f(0x30f)])!==!0x1&&((_0x3dc936=_0x4a578e['getPermissionPoint'](new _0x102e28(_0x4eae45[_0x30de6f(0x1e3)],_0x4eae45[_0x30de6f(0x26c)])['id']))==null?void 0x0:_0x3dc936['value'])!==!0x1},'attachPopup':()=>_0x35a569['attachPopupToObject'](_0x66bb9f,_0xceab)};}}),this[_0x9991c9(0x2db)](_0x28d5a3['unit'][_0x9991c9(0xe1)]['subscribe'](()=>this[_0x9991c9(0x2b3)]()));}};ja=X([Y(0x1,_0x229e82(_0x258cdf)),Y(0x2,_0x229e82($)),Y(0x3,_0x229e82(_0x5969c8)),Y(0x4,_0x300477)],ja);let Ma=class extends _0x2bb0e8{constructor(_0x40611b,_0xced429,_0x5f23bd,_0x27542a,_0x45b825,_0x1e5f9c,_0x595a8,_0x2ea61b,_0x3f590a,_0x29eda5,_0x296905){const _0x481aef=_0x232df7;super(),this[_0x481aef(0x2d4)]=_0x40611b,this[_0x481aef(0x210)]=_0xced429,this[_0x481aef(0x220)]=_0x5f23bd,this[_0x481aef(0x3aa)]=_0x27542a,this[_0x481aef(0x184)]=_0x45b825,this['_commandService']=_0x1e5f9c,this[_0x481aef(0x11c)]=_0x595a8,this['_sheetCanvasPopManagerService']=_0x2ea61b,this[_0x481aef(0x2b2)]=_0x3f590a,this[_0x481aef(0x209)]=_0x29eda5,this[_0x481aef(0x101)]=_0x296905,q(this,_0x481aef(0x15a),null),q(this,_0x481aef(0x18a),null),q(this,_0x481aef(0x129),!0x1),q(this,_0x481aef(0x2d3),0x0),q(this,_0x481aef(0x128),null),q(this,_0x481aef(0x21e),[]),this[_0x481aef(0x208)](),this[_0x481aef(0x2db)](this[_0x481aef(0x2d4)][_0x481aef(0x2d0)](_0xe0c4a6[_0x481aef(0x277)])[_0x481aef(0x268)](_0x90cea6=>{const _0x222721=_0x481aef;if(!_0x90cea6){var _0x47773a;(_0x47773a=this[_0x222721(0x15a)])==null||_0x47773a[_0x222721(0x296)]();}})),this[_0x481aef(0x217)](),this[_0x481aef(0x179)](),this['disposeWithMe'](this[_0x481aef(0x101)][_0x481aef(0x187)][_0x481aef(0x268)](_0x180a9f=>{const _0x7016a4=_0x481aef;_0x180a9f&&this[_0x7016a4(0x2ec)]();}));}[_0x232df7(0x208)](){const _0x379544=_0x232df7;this[_0x379544(0x220)][_0x379544(0x36a)](Wi);}[_0x232df7(0x179)](){const _0x241b52=_0x232df7;this[_0x241b52(0x128)]||=this['disposeWithMe'](_0xd29261(this[_0x241b52(0x209)],_0xe0c4a6[_0x241b52(0x277)],_0x2a4e8b=>this['_popupMenuListener'](_0x2a4e8b)));}[_0x232df7(0xf8)](_0x12a882,_0x1ee493,_0x44b997){const _0x5bc447=_0x232df7;let _0x35a17f=this[_0x5bc447(0x3aa)][_0x5bc447(0x280)](_0x12a882,_0x1ee493,_0x44b997),_0x754682=this[_0x5bc447(0x3aa)][_0x5bc447(0x329)](_0x12a882,_0x1ee493,_0x44b997);return _0x35a17f!==void 0x0&&_0x754682!==void 0x0?{'shapeData':_0x754682,'shapeId':_0x44b997,'shapeType':_0x35a17f,'unitId':_0x12a882,'subUnitId':_0x1ee493,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}[_0x232df7(0x2ec)](){const _0x59c0ce=_0x232df7;this[_0x59c0ce(0x21e)][_0x59c0ce(0x385)](_0x20bd56=>_0x20bd56[_0x59c0ce(0x296)]()),this['_disposePopups'][_0x59c0ce(0x333)]=0x0;}[_0x232df7(0x228)](_0x20f1c0){const _0x19e41d=_0x232df7;let _0x58041e=new _0x498b31();return _0x58041e[_0x19e41d(0x19c)](_0x20f1c0['createControl$'][_0x19e41d(0x268)](()=>{const _0x43e22a=_0x19e41d;let _0x44ae8b=_0x20f1c0[_0x43e22a(0x2ca)]();if(this[_0x43e22a(0x2ec)](),this['_isOpenedShapeEditPanel']||_0x44ae8b[_0x43e22a(0x292)]>0x1)return;let _0x589f7e=_0x44ae8b[_0x43e22a(0x212)]()[_0x43e22a(0x360)]()['value'];if(!_0x589f7e)return;let _0x39a9d5=this[_0x43e22a(0x11c)]['getDrawingOKey'](_0x589f7e[_0x43e22a(0x283)]);if(!_0x39a9d5||_0x39a9d5[_0x43e22a(0x183)]!==_0x190419['DRAWING_SHAPE'])return;let {unitId:_0x2df96d,subUnitId:_0x57418b,drawingId:_0x51d64d,drawingType:_0x22e219}=_0x39a9d5,_0x1771e6=this[_0x43e22a(0xf8)](_0x2df96d,_0x57418b,_0x51d64d);if(!_0x1771e6)return;this[_0x43e22a(0x2b2)][_0x43e22a(0x152)](_0x20a63c,!0x0);let _0x4cbd0e=this[_0x43e22a(0x209)][_0x43e22a(0x124)](_0x2df96d),_0x42a5bd=((_0x4cbd0e==null?void 0x0:_0x4cbd0e[_0x43e22a(0x24f)])===!0x1?_0x4cbd0e[_0x43e22a(0x18c)](_0x5969c8):this[_0x43e22a(0x1a1)])[_0x43e22a(0x206)](_0x589f7e,{'componentKey':zr,'direction':_0x43e22a(0x31c),'offset':[0x0,_0x54a031],'extraProps':{'unitId':_0x2df96d,'subUnitId':_0x57418b,'drawingId':_0x51d64d,'drawingType':_0x22e219,'shapeType':_0x1771e6[_0x43e22a(0x15b)],'shapeData':_0x1771e6[_0x43e22a(0x1b6)]}});this[_0x43e22a(0x21e)]['push'](this[_0x43e22a(0x2db)](_0x42a5bd)),this['_drawingManagerService'][_0x43e22a(0x310)]()['find'](_0x404750=>_0x404750[_0x43e22a(0x1e3)]===_0x2df96d&&_0x404750[_0x43e22a(0x26c)]===_0x57418b&&_0x404750[_0x43e22a(0x36c)]===_0x51d64d)||this[_0x43e22a(0x11c)][_0x43e22a(0xf5)]([{'unitId':_0x2df96d,'subUnitId':_0x57418b,'drawingId':_0x51d64d}]);})),_0x58041e[_0x19e41d(0x19c)](_0x20f1c0[_0x19e41d(0x1cd)]['subscribe'](()=>{const _0x36441c=_0x19e41d;this[_0x36441c(0x2ec)](),this[_0x36441c(0x2b2)][_0x36441c(0x152)](_0x20a63c,!0x1),this[_0x36441c(0x11c)][_0x36441c(0xf5)](null);})),_0x58041e[_0x19e41d(0x19c)](_0x20f1c0[_0x19e41d(0x2fd)][_0x19e41d(0x268)](()=>{this['_clearPopups']();})),_0x58041e[_0x19e41d(0x19c)](_0x20f1c0['changeStart$']['subscribe'](()=>{this['_clearPopups']();})),_0x169987(()=>{const _0x209d91=_0x19e41d;_0x58041e['dispose'](),this[_0x209d91(0x2ec)]();});}['_registerOperations'](){const _0x14e33d=_0x232df7;this['disposeWithMe'](this[_0x14e33d(0x232)][_0x14e33d(0x224)](_0x5670ea=>{const _0x3c00b7=_0x14e33d;if(_0x5670ea['id']===Wr['id']){let {unitId:_0x53538b,subUnitId:_0x252cef,drawingId:_0x17b4e5}=_0x5670ea[_0x3c00b7(0x1aa)];this[_0x3c00b7(0x2d3)]+=0x1,this[_0x3c00b7(0x18a)]=this[_0x3c00b7(0xf8)](_0x53538b,_0x252cef,_0x17b4e5),this[_0x3c00b7(0x2ec)](),this[_0x3c00b7(0x36b)]();}if(_0x5670ea['id']===ya['id']&&(this['_activeShapeInfo']=null,this[_0x3c00b7(0x188)]()),_0x5670ea['id']===_0x4af43a['id']){let {unitId:_0x5c6779,subUnitId:_0x5dbecf,shapeId:_0x3a9de3}=_0x5670ea[_0x3c00b7(0x1aa)];if(this['_activeShapeInfo']&&this['_activeShapeInfo'][_0x3c00b7(0x275)]===_0x3a9de3){let _0x3dfa40=this[_0x3c00b7(0xf8)](_0x5c6779,_0x5dbecf,_0x3a9de3);_0x3dfa40&&(this['_shapeEditPanelVersion']+=0x1,_0x3dfa40['version']=this[_0x3c00b7(0x2d3)],this[_0x3c00b7(0x18a)]=_0x3dfa40,this[_0x3c00b7(0x129)]&&this[_0x3c00b7(0x36b)]());}}})),this['disposeWithMe'](this[_0x14e33d(0x11c)][_0x14e33d(0x19a)][_0x14e33d(0x268)](_0x18a381=>{const _0x397641=_0x14e33d;if(this[_0x397641(0x129)]===!0x1)return;if(_0x18a381[_0x397641(0x333)]===0x0){this[_0x397641(0x18a)]=null,this[_0x397641(0x188)]();return;}if(_0x18a381[_0x397641(0x333)]===0x1&&_0x18a381[0x0][_0x397641(0x183)]===_0x190419[_0x397641(0x21d)]&&(this[_0x397641(0x2d3)]+=0x1,this['_activeShapeInfo']=this[_0x397641(0xf8)](_0x18a381[0x0][_0x397641(0x1e3)],_0x18a381[0x0]['subUnitId'],_0x18a381[0x0][_0x397641(0x36c)]),this[_0x397641(0x18a)])){this[_0x397641(0x36b)]();return;}let _0x57c6f6=_0x18a381[_0x397641(0x34b)](_0x4a764a=>_0x4a764a[_0x397641(0x183)]===_0x190419['DRAWING_SHAPE']);if(_0x18a381[_0x397641(0x333)]>0x1&&_0x57c6f6[_0x397641(0x333)]===_0x18a381[_0x397641(0x333)]){if(this['_shapeEditPanelVersion']+=0x1,this[_0x397641(0x18a)]=this[_0x397641(0xf8)](_0x18a381[0x0][_0x397641(0x1e3)],_0x18a381[0x0][_0x397641(0x26c)],_0x18a381[0x0][_0x397641(0x36c)]),this[_0x397641(0x18a)]){this[_0x397641(0x36b)]();return;}}else{if(this[_0x397641(0x2d3)]+=0x1,this[_0x397641(0x18a)]=this[_0x397641(0xf8)](_0x18a381[0x0][_0x397641(0x1e3)],_0x18a381[0x0]['subUnitId'],_0x18a381[0x0][_0x397641(0x36c)]),this[_0x397641(0x18a)]){this[_0x397641(0x18a)][_0x397641(0x31d)]=!0x0,this['_openShapeEditPanel']();return;}}this['_closeShapeEditPanel']();}));}[_0x232df7(0x36b)](){const _0x37a33e=_0x232df7;this['_activeShapeInfo']&&(this[_0x37a33e(0x15a)]=this[_0x37a33e(0x210)][_0x37a33e(0x22b)]({'id':Lr,'header':{'title':this['_localeService']['t']('sheets-shape-ui.formatShape')},'width':0x184,'children':{'label':Lr,...this['_activeShapeInfo']},'onClose':()=>{const _0xffced3=_0x37a33e;this[_0xffced3(0x11c)][_0xffced3(0xf5)](null),this[_0xffced3(0x2b2)]['setContextValue'](_0x20a63c,!0x1),this[_0xffced3(0x15a)]=null;}}),this[_0x37a33e(0x129)]=!0x0);}['_closeShapeEditPanel'](){const _0xd30177=_0x232df7;this[_0xd30177(0x129)]=!0x1,this['_sidebarService']['close'](Lr),this[_0xd30177(0x15a)]=null,this['_contextService']['setContextValue'](_0x20a63c,!0x1),this[_0xd30177(0x11c)][_0xd30177(0xf5)](null);}};Ma=X([Y(0x0,_0x304294),Y(0x1,_0x229e82(_0x5c788d)),Y(0x2,_0x4cc398),Y(0x3,_0x229e82(_0x5c2303)),Y(0x4,_0x229e82(_0x16b0b7)),Y(0x5,_0x1b156e),Y(0x6,_0x3deb35),Y(0x7,_0x229e82(_0x5969c8)),Y(0x8,_0x49d586),Y(0x9,_0x422c1e),Y(0xa,_0x229e82($))],Ma);let Na=class extends _0x407af{constructor(_0x54b4b3=Yi,_0x14aaad,_0x34a892,_0x3f3603,_0x47cd19){const _0x57a90c=_0x232df7;super(),this['_config']=_0x54b4b3,this['_injector']=_0x14aaad,this['_commandService']=_0x34a892,this['_configService']=_0x3f3603,this[_0x57a90c(0x209)]=_0x47cd19;let {..._0x23b3ed}=_0x32987f({},Yi,this[_0x57a90c(0x2b5)]);this['_configService'][_0x57a90c(0x103)](Ji,_0x23b3ed),this[_0x57a90c(0x26a)]();}[_0x232df7(0x311)](){const _0x5715b9=_0x232df7;this[_0x5715b9(0x209)]['registerRenderModule'](_0xe0c4a6[_0x5715b9(0x2ed)],[Aa]),_0x3ece4a(this[_0x5715b9(0x1e1)],[[Ma],[ca],[Z],[ha]]);}[_0x232df7(0x126)](){const _0x1bf48c=_0x232df7;this[_0x1bf48c(0x1e1)]['get'](Ma)[_0x1bf48c(0x179)]();}[_0x232df7(0x1c9)](){const _0x5959e=_0x232df7;[[da],[Pr],[fa]][_0x5959e(0x385)](_0x37eda8=>this['_injector'][_0x5959e(0x19c)](_0x37eda8)),_0x3ece4a(this[_0x5959e(0x1e1)],[[fa],[Pr]]),this[_0x5959e(0x209)][_0x5959e(0x3a8)](_0xe0c4a6[_0x5959e(0x277)],[da]),this[_0x5959e(0x209)]['registerRenderModule'](_0xe0c4a6[_0x5959e(0x277)],[Xi]),this[_0x5959e(0x209)]['registerRenderModule'](_0xe0c4a6[_0x5959e(0x277)],[ma]),this[_0x5959e(0x209)]['registerRenderModule'](_0xe0c4a6[_0x5959e(0x277)],[na]),this[_0x5959e(0x2db)](this['_renderManagerService'][_0x5959e(0x3a8)](_0xe0c4a6['UNIVER_SHEET'],[ja])),this['disposeWithMe'](this[_0x5959e(0x209)][_0x5959e(0x3a8)](_0xe0c4a6[_0x5959e(0x277)],[Da]));}[_0x232df7(0x1b7)](){const _0x53d978=_0x232df7;this[_0x53d978(0x1e1)][_0x53d978(0x19c)]([Ea]),this[_0x53d978(0x1e1)][_0x53d978(0x14a)](Ea);let _0x213c4f=this[_0x53d978(0x1e1)];[[Ma],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga],[ka]]['forEach'](_0x33337b=>_0x213c4f[_0x53d978(0x19c)](_0x33337b)),_0x3ece4a(this['_injector'],[[Ma],[ca],[Z],[_a],[$],[sa],[Q],[ga],[ka]]);}[_0x232df7(0x26a)](){const _0x28aef7=_0x232df7;[Ir,K,ya,Wr,Ur,Fr,Kr,qr][_0x28aef7(0x385)](_0x5d5ec8=>this[_0x28aef7(0x2db)](this['_commandService'][_0x28aef7(0x204)](_0x5d5ec8)));}};q(Na,_0x232df7(0xf1),_0xe0c4a6['UNIVER_SHEET']),q(Na,_0x232df7(0x18f),_0x232df7(0x312)),q(Na,_0x232df7(0xfa),Gi),q(Na,_0x232df7(0x2b6),Ki),Na=X([_0x18c7c6(_0x42123a,_0x47964d,_0x2036ef,_0x106471,_0x524cd0,_0x7f5329,_0xc91a83,_0x434230,_0x4831fe,_0x372423,_0x1fa068,_0x296a09,_0x52023d),Y(0x1,_0x229e82(_0x3fb460)),Y(0x2,_0x1b156e),Y(0x3,_0x40ca43),Y(0x4,_0x422c1e)],Na);export{Hi as SheetsShapeUIContextualRibbonSchema,Wi as SheetsShapeUIMenuSchema,va as UniverSheetsShapeMobileUIPlugin,Na as UniverSheetsShapeUIPlugin};