@univerjs-pro/sheets-shape-ui 0.20.1 → 0.21.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 (58) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/sk-SK.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ja-JP.js +1 -1
  21. package/lib/es/locale/ko-KR.js +1 -1
  22. package/lib/es/locale/ru-RU.js +1 -1
  23. package/lib/es/locale/sk-SK.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/index.js +1 -1
  28. package/lib/locale/ca-ES.js +1 -1
  29. package/lib/locale/en-US.js +1 -1
  30. package/lib/locale/es-ES.js +1 -1
  31. package/lib/locale/fa-IR.js +1 -1
  32. package/lib/locale/fr-FR.js +1 -1
  33. package/lib/locale/ja-JP.js +1 -1
  34. package/lib/locale/ko-KR.js +1 -1
  35. package/lib/locale/ru-RU.js +1 -1
  36. package/lib/locale/sk-SK.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/types/controllers/sheets-shape-ui.controller.d.ts +15 -0
  41. package/lib/types/index.d.ts +1 -0
  42. package/lib/types/locale/en-US.d.ts +1 -0
  43. package/lib/types/utils/shape-text-document.d.ts +11 -0
  44. package/lib/types/view-model/shape-data-model.d.ts +2 -1
  45. package/lib/umd/index.js +1 -1
  46. package/lib/umd/locale/ca-ES.js +1 -1
  47. package/lib/umd/locale/en-US.js +1 -1
  48. package/lib/umd/locale/es-ES.js +1 -1
  49. package/lib/umd/locale/fa-IR.js +1 -1
  50. package/lib/umd/locale/fr-FR.js +1 -1
  51. package/lib/umd/locale/ja-JP.js +1 -1
  52. package/lib/umd/locale/ko-KR.js +1 -1
  53. package/lib/umd/locale/ru-RU.js +1 -1
  54. package/lib/umd/locale/sk-SK.js +1 -1
  55. package/lib/umd/locale/vi-VN.js +1 -1
  56. package/lib/umd/locale/zh-CN.js +1 -1
  57. package/lib/umd/locale/zh-TW.js +1 -1
  58. package/package.json +19 -19
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x173eea=_0x34f4;(function(_0x52a1d3,_0x1636b0){const _0x3a80f6=_0x34f4,_0x5e34f2=_0x52a1d3();while(!![]){try{const _0x199ca2=parseInt(_0x3a80f6(0x527))/0x1+-parseInt(_0x3a80f6(0x504))/0x2+-parseInt(_0x3a80f6(0x550))/0x3*(parseInt(_0x3a80f6(0x169))/0x4)+-parseInt(_0x3a80f6(0x4f5))/0x5+-parseInt(_0x3a80f6(0x33e))/0x6*(-parseInt(_0x3a80f6(0x27d))/0x7)+parseInt(_0x3a80f6(0x586))/0x8*(-parseInt(_0x3a80f6(0x3ab))/0x9)+parseInt(_0x3a80f6(0x50e))/0xa*(parseInt(_0x3a80f6(0x332))/0xb);if(_0x199ca2===_0x1636b0)break;else _0x5e34f2['push'](_0x5e34f2['shift']());}catch(_0x408f55){_0x5e34f2['push'](_0x5e34f2['shift']());}}}(_0x55e5,0x511d8));import{InsertShapeCommand as _0x4a5a00,InsertSheetsShapeMutation as _0x4043c4,RemoveSheetsShapeMutation as _0x1e2473,SetShapeDrawingDataCommand as _0x472d57,SetSheetsShapeRotateCommand as _0x2bb52e,SheetsShapeService as _0x511e68,ToggleSheetsShapeFlipCommand as _0x2c1dfc,UniverSheetsShapePlugin as _0x1427dc,UpdateConnectorRelationCommand as _0x510b98,UpdateLineShapeResizeCommand as _0x278a01,UpdateSheetsShapeDataMutation as _0x5855dd}from'@univerjs-pro/sheets-shape';import{CommandType as _0xd3f43e,DependentOn as _0x370062,Disposable as _0x399c04,DocumentDataModel as _0x2efad4,DrawingTypeEnum as _0x217b4d,FOCUSING_COMMON_DRAWINGS as _0x34830e,FOCUSING_PANEL_EDITOR as _0x36af54,FOCUSING_SHAPE_TEXT_EDITOR as _0x494eea,HorizontalAlign as _0x5a9a7d,ICommandService as _0x584851,IConfigService as _0x5e78e3,IContextService as _0x41728c,IURLImageService as _0x2ccd05,IUndoRedoService as _0x510aa4,IUniverInstanceService as _0x2d0725,Inject as _0x18290d,Injector as _0x1e9d6b,LocaleService as _0x14ed3e,Plugin as _0x4a3190,ThemeService as _0x2d684f,Tools as _0x182e4a,UniverInstanceType as _0x59e014,VerticalAlign as _0x5e4572,createInternalEditorID as _0xbe759e,generateRandomId as _0x1f3381,merge as _0x3492c5,toDisposable as _0x4d0bea,touchDependencies as _0x500257}from'@univerjs/core';import{IDrawingManagerService as _0x4313c8,IImageIoService as _0x3d6e6c,getDrawingShapeKeyByDrawingSearch as _0x4b2a63,getImageSize as _0x4de779}from'@univerjs/drawing';import{CURSOR_TYPE as _0x3e7be3,Circle as _0x557a14,DRAWING_OBJECT_LAYER_INDEX as _0x2b5d9f,DocumentSkeleton as _0x276937,DocumentViewModel as _0x2bbcb6,Documents as _0xa7aeae,IRenderManagerService as _0x5f4e41,Image as _0x554422,RENDER_CLASS_TYPE as _0x59c38c,SHEET_VIEWPORT_KEY as _0x487554,Shape as _0x268782,Transform as _0x4bcd07,Vector2 as _0x124e33}from'@univerjs/engine-render';import{BehaviorSubject as _0x3ec3ba,EMPTY as _0x263aaa,Observable as _0x1e6ee2,map as _0x3789dc,of as _0x5ef336,switchMap as _0x15b88d}from'rxjs';import{CopySheetCommand as _0x5150de,RemoveSheetCommand as _0x4e283e,SheetInterceptorService as _0xdb5187,SheetPermissionCheckController as _0x1a1e4d,SheetSkeletonService as _0x2bb6a5,SheetsSelectionsService as _0x7d4485,WorkbookEditablePermission as _0x22452a,WorksheetEditPermission as _0x3cfdfb,attachRangeWithCoord as _0x3ab144,discreteRangeToRange as _0x8322dc,getSheetCommandTarget as _0x468c6f}from'@univerjs/sheets';import{DrawingApplyType as _0x29b499,ISheetDrawingService as _0x4a3489,RemoveSheetDrawingCommand as _0x37e40c,SetDrawingApplyMutation as _0x3f7546,transformToDrawingPosition as _0x16c154}from'@univerjs/sheets-drawing';import{AlignCenterCommand as _0x255e1d,AlignJustifyCommand as _0x367093,AlignLeftCommand as _0x414a75,AlignOperationCommand as _0x398919,AlignRightCommand as _0x119cbf,BreakLineCommand as _0x513a5b,IEditorService as _0x28a561,ResetInlineFormatTextBackgroundColorCommand as _0x4946d0,SetInlineFormatTextBackgroundColorCommand as _0x26a27b,useEditor as _0x51a27f,useIsFocusing as _0x16ba42,useKeyboardEvent as _0x2a0102,useLeftAndRightArrow as _0x3b4ab0}from'@univerjs/docs-ui';import{MoreDownIcon as _0x241a03,PaintBucketDoubleIcon as _0x74344b,ShapeAccentBorderCallout1Icon as _0x11108b,ShapeAccentBorderCallout2Icon as _0xa4b4c8,ShapeAccentBorderCallout3Icon as _0x1ba823,ShapeAccentCallout1Icon as _0x1013bf,ShapeAccentCallout2Icon as _0x5bb21c,ShapeAccentCallout3Icon as _0x2bf297,ShapeActionButtonBackPreviousIcon as _0x277592,ShapeActionButtonBeginningIcon as _0x1aeda5,ShapeActionButtonBlankIcon as _0x296084,ShapeActionButtonDocumentIcon as _0x179bf8,ShapeActionButtonEndIcon as _0x4f57f9,ShapeActionButtonForwardNextIcon as _0x2d2eeb,ShapeActionButtonHelpIcon as _0x1751fb,ShapeActionButtonHomeIcon as _0x3a53b9,ShapeActionButtonInformationIcon as _0x505bac,ShapeActionButtonMovieIcon as _0x1ba481,ShapeActionButtonReturnIcon as _0x3e9e63,ShapeActionButtonSoundIcon as _0x4617ec,ShapeArcIcon as _0x275886,ShapeBentArrowIcon as _0x322b16,ShapeBentConnector3Arrow1Icon as _0x243cc2,ShapeBentConnector3Arrow2Icon as _0x11c4f4,ShapeBentConnector3Icon as _0x156540,ShapeBentUpArrowIcon as _0x106570,ShapeBevelIcon as _0x3d514c,ShapeBlockArcIcon as _0x562479,ShapeBorderCallout1Icon as _0x1d9145,ShapeBorderCallout2Icon as _0x2d7b78,ShapeBorderCallout3Icon as _0x107515,ShapeBracePairIcon as _0x472bbe,ShapeBracketPairIcon as _0x331d6f,ShapeCallout1Icon as _0x5b54f8,ShapeCallout2Icon as _0x5e786d,ShapeCallout3Icon as _0x2e28d8,ShapeCanIcon as _0x131800,ShapeChartPlusIcon as _0x52d5,ShapeChartStarIcon as _0x56cbc0,ShapeChartXIcon as _0x1c5dd1,ShapeChevronIcon as _0x34641e,ShapeChordIcon as _0x56b101,ShapeCircularArrowIcon as _0x43df4e,ShapeCloudCalloutIcon as _0x49d297,ShapeCloudIcon as _0x511dce,ShapeCornerIcon as _0xc84ff3,ShapeCornerTabsIcon as _0x4f109c,ShapeCubeIcon as _0x2cee75,ShapeCurvedConnector3Arrow1Icon as _0x39a437,ShapeCurvedConnector3Arrow2Icon as _0x4b3e6b,ShapeCurvedConnector3Icon as _0x3ac9db,ShapeCurvedDownArrowIcon as _0x90ae94,ShapeCurvedLeftArrowIcon as _0x5a10b4,ShapeCurvedRightArrowIcon as _0x40e231,ShapeCurvedUpArrowIcon as _0x4515a6,ShapeDecagonIcon as _0x54ec0b,ShapeDiagStripeIcon as _0x5cd598,ShapeDiamondIcon as _0x20f34e,ShapeDodecagonIcon as _0x2bebda,ShapeDonutIcon as _0x263c18,ShapeDoubleWaveIcon as _0x2a55f6,ShapeDownArrowCalloutIcon as _0x24dac6,ShapeDownArrowIcon as _0x5a8573,ShapeEllipseIcon as _0x1687e6,ShapeEllipseRibbon2Icon as _0xefad2a,ShapeEllipseRibbonIcon as _0x22129f,ShapeFlowChartAlternateProcessIcon as _0x5ce03b,ShapeFlowChartCollateIcon as _0x1ce164,ShapeFlowChartConnectorIcon as _0x5c3ee4,ShapeFlowChartDecisionIcon as _0x18ec36,ShapeFlowChartDelayIcon as _0x207c17,ShapeFlowChartDisplayIcon as _0x9929c3,ShapeFlowChartDocumentIcon as _0x3243ea,ShapeFlowChartExtractIcon as _0x5c02a6,ShapeFlowChartInputOutputIcon as _0x4214f8,ShapeFlowChartInternalStorageIcon as _0x3b30f3,ShapeFlowChartMagneticDiskIcon as _0x8c27f0,ShapeFlowChartMagneticDrumIcon as _0x33926f,ShapeFlowChartMagneticTapeIcon as _0xbe09af,ShapeFlowChartManualInputIcon as _0x14e3f6,ShapeFlowChartManualOperationIcon as _0x17e91e,ShapeFlowChartMergeIcon as _0x1312a9,ShapeFlowChartMultidocumentIcon as _0x6aad92,ShapeFlowChartOfflineStorageIcon as _0x5013df,ShapeFlowChartOffpageConnectorIcon as _0x2d70b6,ShapeFlowChartOnlineStorageIcon as _0x45d1c5,ShapeFlowChartOrIcon as _0x16d524,ShapeFlowChartPredefinedProcessIcon as _0x4a3bc7,ShapeFlowChartPreparationIcon as _0x983f5d,ShapeFlowChartProcessIcon as _0x7ef462,ShapeFlowChartPunchedCardIcon as _0x1fe5f3,ShapeFlowChartPunchedTapeIcon as _0x5e7787,ShapeFlowChartSortIcon as _0x592932,ShapeFlowChartSummingJunctionIcon as _0x49305e,ShapeFlowChartTerminatorIcon as _0x5d8103,ShapeFolderCornerIcon as _0x54a41f,ShapeFrameIcon as _0xbf8fdb,ShapeFunnelIcon as _0x17cc78,ShapeGear6Icon as _0x20f0e5,ShapeGear9Icon as _0x631e02,ShapeHalfFrameIcon as _0x457406,ShapeHeartIcon as _0x49452f,ShapeHeptagonIcon as _0x34006a,ShapeHexagonIcon as _0x326847,ShapeHomePlateIcon as _0x6ad4ed,ShapeHorizontalScrollIcon as _0x36e9ca,ShapeIcon as _0x27bb07,ShapeIrregularSeal1Icon as _0x1fe77c,ShapeIrregularSeal2Icon as _0x595b71,ShapeLeftArrowCalloutIcon as _0x1537d2,ShapeLeftArrowIcon as _0x257293,ShapeLeftBraceIcon as _0x75c8c5,ShapeLeftBracketIcon as _0x1df104,ShapeLeftCircularArrowIcon as _0x373813,ShapeLeftRightArrowCalloutIcon as _0x467ac1,ShapeLeftRightArrowIcon as _0x436be4,ShapeLeftRightCircularArrowIcon as _0xa5383c,ShapeLeftRightRibbonIcon as _0x40a060,ShapeLeftRightUpArrowIcon as _0xc06a91,ShapeLeftUpArrowIcon as _0x1cdf41,ShapeLightningBoltIcon as _0xabc949,ShapeLineIcon as _0x18ed35,ShapeLineInvIcon as _0x407bea,ShapeMathDivideIcon as _0x36a8fa,ShapeMathEqualIcon as _0x598fb7,ShapeMathMinusIcon as _0x3f7dd4,ShapeMathMultiplyIcon as _0x1b6ec0,ShapeMathNotEqualIcon as _0x5ac1c9,ShapeMathPlusIcon as _0x11e758,ShapeMoonIcon as _0x10889e,ShapeNoSmokingIcon as _0x1e42d3,ShapeNonIsoscelesTrapezoidIcon as _0x382aed,ShapeNotchedRightArrowIcon as _0x234f1f,ShapeOctagonIcon as _0x4c5066,ShapeParallelogramIcon as _0x41998f,ShapePentagonIcon as _0x247443,ShapePieIcon as _0x471872,ShapePieWedgeIcon as _0x52113a,ShapePlaqueIcon as _0x102c83,ShapePlaqueTabsIcon as _0x13f863,ShapePlusIcon as _0x1d939c,ShapeQuadArrowCalloutIcon as _0xfad1dd,ShapeQuadArrowIcon as _0x192fda,ShapeRectIcon as _0x236f4b,ShapeRectTextboxHorizontalIcon as _0x4aef70,ShapeRectTextboxVerticalIcon as _0x5f5182,ShapeRibbon2Icon as _0x38f5a0,ShapeRibbonIcon as _0x2432b4,ShapeRightArrowCalloutIcon as _0x41bbc5,ShapeRightArrowIcon as _0x121f5c,ShapeRightBraceIcon as _0x1a111c,ShapeRightBracketIcon as _0x5a3519,ShapeRound1RectIcon as _0x4045dd,ShapeRound2DiagRectIcon as _0xa639e,ShapeRound2SameRectIcon as _0xd1337f,ShapeRoundRectIcon as _0x5a7391,ShapeRtTriangleIcon as _0x326138,ShapeSmileyFaceIcon as _0xd4d543,ShapeSnip1RectIcon as _0x43dc0b,ShapeSnip2DiagRectIcon as _0x208a75,ShapeSnip2SameRectIcon as _0x339771,ShapeSnipRoundRectIcon as _0x45c6e1,ShapeSquareTabsIcon as _0xe28163,ShapeStar10Icon as _0x40fcb9,ShapeStar12Icon as _0x3f7230,ShapeStar16Icon as _0x1a4526,ShapeStar24Icon as _0x14d7dd,ShapeStar32Icon as _0x38459f,ShapeStar4Icon as _0x2a873d,ShapeStar5Icon as _0x40f004,ShapeStar6Icon as _0x5bf4c5,ShapeStar7Icon as _0x582c6c,ShapeStar8Icon as _0x1329f4,ShapeStraightConnector1Icon as _0x5c3a2b,ShapeStraightConnector2Icon as _0x4c13ed,ShapeStripedRightArrowIcon as _0x561711,ShapeSunIcon as _0x1c71cb,ShapeSwooshArrowIcon as _0x32cbf6,ShapeTeardropIcon as _0x5b6f2d,ShapeTrapezoidIcon as _0x1bb9a6,ShapeTriangleIcon as _0x3297be,ShapeUpArrowCalloutIcon as _0x399b92,ShapeUpArrowIcon as _0x2d5b14,ShapeUpDownArrowCalloutIcon as _0x19d6dc,ShapeUpDownArrowIcon as _0x4a3231,ShapeUturnArrowIcon as _0x352912,ShapeVerticalScrollIcon as _0x55a2b6,ShapeWaveIcon as _0x23d5f6,ShapeWedgeEllipseCalloutIcon as _0x52d230,ShapeWedgeRectCalloutIcon as _0x2cea81,ShapeWedgeRoundRectCalloutIcon as _0xbece69}from'@univerjs/icons';import{COPY_TYPE as _0x3decc1,ISheetClipboardService as _0x4858c6,PREDEFINED_HOOK_NAME as _0x58aac2,SheetCanvasPopManagerService as _0x16e7ad,SheetScrollManagerService as _0x558719,SheetSkeletonManagerService as _0x15a10d,deriveStateFromActiveSheet$ as _0x69caba,getCurrentRangeDisable$ as _0x3ba09e,getViewportByCell as _0x37db43}from'@univerjs/sheets-ui';import{COLOR_PICKER_COMPONENT as _0x5adc41,ComponentManager as _0x43e087,IMenuManagerService as _0x4d389d,ISidebarService as _0x3d9c09,KeyCode as _0x5dd38f,MenuItemType as _0x46ebf7,RibbonInsertGroup as _0x4b2520,RibbonPosition as _0x2821d8,RibbonStartGroup as _0x211892,getMenuHiddenObservable as _0x59ea29,useDependency as _0x6447ef,useObservable as _0x3cd929}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x3074e9,ImageFillModeEnum as _0x554086,ImageSourceTypeEnum as _0x54b705,ShapeArrowSizeEnum as _0x2fdd4c,ShapeArrowTypeEnum as _0x3c24c6,ShapeDefaultConfig as _0x38fd6a,ShapeFillEnum as _0x547816,ShapeGradientTypeEnum as _0x3fd73f,ShapeLineCapEnum as _0x347ed7,ShapeLineDashEnum as _0x1e5a61,ShapeLineJoinEnum as _0x2767c1,ShapeLineTypeEnum as _0x5a81be,ShapeModel as _0x3e80af,ShapeRenderModeEnum as _0x51c25d,ShapeSketchTypeEnum as _0x4e565e,ShapeTypeEnum as _0x1e291f,computeConnectorRouteLayout as _0x3378a8,getBasicShapeRotateBound as _0x459955,isConnectorShape as _0x5b837b,isCurvedConnectorShape as _0x5020e3,routeConnectorLineShape as _0x781771}from'@univerjs-pro/engine-shape';import{Accordion as _0x58d041,Button as _0x46dd61,Checkbox as _0x4f7918,ColorPicker as _0x393fe1,Dropdown as _0x4a34c5,GradientColorPicker as _0x2e887b,InputNumber as _0x512089,Radio as _0x2cb326,RadioGroup as _0x37f2e3,Select as _0x401d2a,clsx as _0x3ea00c}from'@univerjs/design';import{memo as _0x414bf3,useCallback as _0x23eab0,useEffect as _0x10cec7,useMemo as _0x177b1f,useRef as _0x3a97ab,useState as _0x5cfa86}from'react';import{DrawingCommonPanel as _0x4e1312,DrawingImageClipService as _0x5db607,DrawingRenderService as _0x239f53,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x432607,getCurrentUnitInfo as _0x205eb2,insertGroupObject as _0x47ce10}from'@univerjs/drawing-ui';import{Fragment as _0x610b99,jsx as _0x3561af,jsxs as _0x42d0cd}from'react/jsx-runtime';import{SheetDrawingAnchor as _0x2b2e5a,SheetsDrawingGroupCopyPasteController as _0x3519fb,UniverSheetsDrawingUIPlugin as _0x2424a9}from'@univerjs/sheets-drawing-ui';import{DocSelectionManagerService as _0x28de8a,DocSkeletonManagerService as _0x2fc65a,RichTextEditingMutation as _0x44d27e}from'@univerjs/docs';function za(_0x4bd668){'@babel/helpers - typeof';const _0x555781=_0x34f4;return za=typeof Symbol==_0x555781(0x4e2)&&typeof Symbol[_0x555781(0x272)]==_0x555781(0x491)?function(_0xf20f93){return typeof _0xf20f93;}:function(_0x995562){const _0x228bfe=_0x555781;return _0x995562&&typeof Symbol==_0x228bfe(0x4e2)&&_0x995562['constructor']===Symbol&&_0x995562!==Symbol[_0x228bfe(0x4bc)]?_0x228bfe(0x491):typeof _0x995562;},za(_0x4bd668);}function Ba(_0x4dccaf,_0x3d4f43){const _0x5db26a=_0x34f4;if(za(_0x4dccaf)!='object'||!_0x4dccaf)return _0x4dccaf;var _0x20814a=_0x4dccaf[Symbol[_0x5db26a(0x25c)]];if(_0x20814a!==void 0x0){var _0xb5fa62=_0x20814a[_0x5db26a(0x492)](_0x4dccaf,_0x3d4f43||_0x5db26a(0x2ba));if(za(_0xb5fa62)!=_0x5db26a(0x31c))return _0xb5fa62;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3d4f43===_0x5db26a(0x2e7)?String:Number)(_0x4dccaf);}function Va(_0x2ddfd4){const _0x4b37d3=_0x34f4;var _0x2cc06a=Ba(_0x2ddfd4,'string');return za(_0x2cc06a)==_0x4b37d3(0x491)?_0x2cc06a:_0x2cc06a+'';}function J(_0x81918d,_0x2609c0,_0x92f80a){const _0x928562=_0x34f4;return(_0x2609c0=Va(_0x2609c0))in _0x81918d?Object[_0x928562(0x38f)](_0x81918d,_0x2609c0,{'value':_0x92f80a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x81918d[_0x2609c0]=_0x92f80a,_0x81918d;}var Y=class extends _0x399c04{constructor(..._0x17708b){const _0x160018=_0x34f4;super(..._0x17708b),J(this,'_editingParams$',new _0x3ec3ba(null)),J(this,'editingParams$',this[_0x160018(0x390)][_0x160018(0x3f0)]()),J(this,_0x160018(0x566),new _0x3ec3ba(!0x1)),J(this,_0x160018(0x286),this[_0x160018(0x566)][_0x160018(0x3f0)]());}[_0x173eea(0x50d)](){const _0x3490e9=_0x173eea;this[_0x3490e9(0x390)]['next'](null),this[_0x3490e9(0x390)][_0x3490e9(0x4eb)](),this[_0x3490e9(0x566)][_0x3490e9(0x474)](!0x1),this['_onSavingEditorData$'][_0x3490e9(0x4eb)](),super[_0x3490e9(0x50d)]();}[_0x173eea(0x3ec)](_0x201907){const _0x810240=_0x173eea;this[_0x810240(0x390)][_0x810240(0x474)](_0x201907),_0x201907==null&&this[_0x810240(0x566)][_0x810240(0x474)](!0x1);}[_0x173eea(0x2f5)](_0x1bcf24){const _0x169d4f=_0x173eea;this[_0x169d4f(0x566)][_0x169d4f(0x474)](_0x1bcf24);}[_0x173eea(0x4d5)](){const _0xcb1920=_0x173eea;return this['_editingParams$'][_0xcb1920(0x4f3)]();}};function Ha(_0x369fdd,_0x167115){const _0x542d6f=_0x173eea;let _0x345ec1={};for(let _0x219a14 of Object[_0x542d6f(0x515)](_0x167115)){let _0x44e010=_0x167115[_0x219a14],_0x2ecb21=_0x369fdd[_0x219a14];if(_0x44e010!==void 0x0){if(_0x2ecb21===void 0x0){_0x345ec1[_0x219a14]=void 0x0;continue;}typeof _0x44e010==_0x542d6f(0x31c)&&_0x44e010&&!Array[_0x542d6f(0x2e5)](_0x44e010)&&typeof _0x2ecb21==_0x542d6f(0x31c)&&_0x2ecb21&&!Array[_0x542d6f(0x2e5)](_0x2ecb21)?_0x345ec1[_0x219a14]=Ha(_0x2ecb21,_0x44e010):_0x345ec1[_0x219a14]=_0x2ecb21;}}return _0x345ec1;}const Ua={'type':_0xd3f43e[_0x173eea(0x3bb)],'id':_0x173eea(0x13c),'handler':(_0x170615,_0x5b14b7)=>{const _0x515b15=_0x173eea;let _0x2672dd=_0x170615[_0x515b15(0x471)](_0x511e68),{unitId:_0x1bfa95,subUnitId:_0x5f444a,shapeType:_0x17775e,shapeId:_0x7e1e16,shapeData:_0x43f036,oldShapeJSON:_0xd34714}=_0x5b14b7;if(!_0x2672dd[_0x515b15(0xf3)](_0x1bfa95,_0x5f444a,_0x7e1e16))return!0x1;let _0x11cbc6=_0x170615[_0x515b15(0x471)](_0x584851),_0x44d92d=_0x170615[_0x515b15(0x471)](_0x510aa4),{oldShapeType:_0x137294,oldShapeData:_0x1a82fe={}}=_0xd34714,_0x73b3ae=Ha(_0x1a82fe,_0x43f036||{}),_0x36e4a2={'id':_0x5855dd['id'],'params':{'unitId':_0x1bfa95,'subUnitId':_0x5f444a,'shapeId':_0x7e1e16,'shapeType':_0x17775e,'shapeData':_0x43f036}},_0xe11ba8={'id':_0x5855dd['id'],'params':{'unitId':_0x1bfa95,'subUnitId':_0x5f444a,'shapeId':_0x7e1e16,'shapeType':_0x137294,'shapeData':_0x73b3ae}};return _0x11cbc6[_0x515b15(0x540)](_0x36e4a2['id'],_0x36e4a2[_0x515b15(0x34b)])?(_0x44d92d[_0x515b15(0x3a6)]({'unitID':_0x1bfa95,'undoMutations':[_0xe11ba8],'redoMutations':[_0x36e4a2]}),!0x0):!0x1;}},Wa={'type':_0xd3f43e[_0x173eea(0x3bb)],'id':_0x173eea(0x215),'handler':async(_0x5c1d7d,_0x3e87e)=>{const _0x4d4646=_0x173eea;if(!_0x3e87e)return!0x1;let {value:_0x171a9c}=_0x3e87e,_0x8d8908=_0x5c1d7d[_0x4d4646(0x471)](_0x584851),_0x5d8d33=_0x5c1d7d[_0x4d4646(0x471)](Y),_0x395c89=_0x5c1d7d['get'](_0x511e68),_0x23ce94=_0x5c1d7d['get'](_0x5f4e41),_0x5bef59=_0x5d8d33['getEditing']();if(!_0x5bef59)return!0x1;let {unitId:_0x3f0381,subUnitId:_0x5b7a53,shapeId:_0x15f7f9}=_0x5bef59,_0x52786d=_0x395c89['getShapeModel'](_0x3f0381,_0x5b7a53,_0x15f7f9);if(!_0x52786d)return!0x1;let _0x2885d6=_0x52786d['getShapeTextData']();if(!_0x2885d6||!(_0x4d4646(0x271)in _0x2885d6))return!0x1;let _0x30ac4d=_0x2885d6[_0x4d4646(0x271)];if(!_0x30ac4d)return!0x1;let _0x4a4a63={..._0x30ac4d,'fs':_0x171a9c},_0xbd4fd7=await _0x8d8908['executeCommand'](Ua['id'],{'unitId':_0x3f0381,'subUnitId':_0x5b7a53,'shapeId':_0x15f7f9,'shapeData':{'shapeText':{'isHorizontal':!0x0,'dataModel':_0x4a4a63}}});if(_0xbd4fd7){let _0x5e371d=_0x23ce94[_0x4d4646(0xf8)](_0x3f0381);if(_0x5e371d!=null&&_0x5e371d[_0x4d4646(0x443)]){let _0x366194=_0x4b2a63({'unitId':_0x3f0381,'subUnitId':_0x5b7a53,'drawingId':_0x15f7f9}),_0x57c870=_0x5e371d[_0x4d4646(0x443)][_0x4d4646(0x1e1)](_0x366194);_0x57c870&&_0x57c870[_0x4d4646(0x58e)](!0x0);}}return _0xbd4fd7;}},Ga={'type':_0xd3f43e['COMMAND'],'id':'sheet.command.set-shape-text-font-size-increase','handler':async _0x34b9bb=>{const _0x888771=_0x173eea;var _0x2fa67f;let _0x251c40=_0x34b9bb[_0x888771(0x471)](Y),_0x32fff3=_0x34b9bb[_0x888771(0x471)](_0x511e68),_0x48e6fb=_0x34b9bb[_0x888771(0x471)](_0x584851),_0x5c8ded=_0x251c40[_0x888771(0x4d5)]();if(!_0x5c8ded)return!0x1;let {unitId:_0x5c348a,subUnitId:_0x392c6a,shapeId:_0x486199}=_0x5c8ded,_0x828e9=_0x32fff3[_0x888771(0xf3)](_0x5c348a,_0x392c6a,_0x486199);if(!_0x828e9)return!0x1;let _0x2666f8=_0x828e9[_0x888771(0x124)]();if(!_0x2666f8||!(_0x888771(0x271)in _0x2666f8))return!0x1;let _0x37b19a=_0x2666f8[_0x888771(0x271)],_0x2c9290=(_0x2fa67f=_0x37b19a==null?void 0x0:_0x37b19a['fs'])==null?0xe:_0x2fa67f,_0x21a50b=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48],_0x18ead1=_0x2c9290,_0xce95f3=_0x21a50b[_0x888771(0x384)](_0x2c9290);return _0xce95f3!==-0x1&&_0xce95f3<_0x21a50b[_0x888771(0x49f)]-0x1?_0x18ead1=_0x21a50b[_0xce95f3+0x1]:_0xce95f3===-0x1&&(_0x18ead1=Math['floor'](_0x2c9290)+0x1),_0x48e6fb[_0x888771(0x4ff)](Wa['id'],{'value':_0x18ead1});}},Ka={'type':_0xd3f43e[_0x173eea(0x3bb)],'id':_0x173eea(0x532),'handler':async _0x34fc0f=>{const _0x12b085=_0x173eea;var _0xd15d0c;let _0x5d2fb9=_0x34fc0f['get'](Y),_0x54694a=_0x34fc0f[_0x12b085(0x471)](_0x511e68),_0x4c8ec3=_0x34fc0f[_0x12b085(0x471)](_0x584851),_0x30fee4=_0x5d2fb9[_0x12b085(0x4d5)]();if(!_0x30fee4)return!0x1;let {unitId:_0x228766,subUnitId:_0x292ddc,shapeId:_0x555b19}=_0x30fee4,_0xed9193=_0x54694a['getShapeModel'](_0x228766,_0x292ddc,_0x555b19);if(!_0xed9193)return!0x1;let _0x46979d=_0xed9193['getShapeTextData']();if(!_0x46979d||!(_0x12b085(0x271)in _0x46979d))return!0x1;let _0x2915de=_0x46979d[_0x12b085(0x271)],_0x3d81d9=(_0xd15d0c=_0x2915de==null?void 0x0:_0x2915de['fs'])==null?0xe:_0xd15d0c,_0xe05a0a=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48],_0xe632e8=_0x3d81d9,_0x42abd3=_0xe05a0a[_0x12b085(0x384)](_0x3d81d9);return _0x42abd3!==-0x1&&_0x42abd3>0x0?_0xe632e8=_0xe05a0a[_0x42abd3-0x1]:_0x42abd3===-0x1&&(_0xe632e8=Math[_0x12b085(0x20b)](_0x3d81d9)-0x1),_0xe632e8<0x1&&(_0xe632e8=0x1),_0x4c8ec3[_0x12b085(0x4ff)](Wa['id'],{'value':_0xe632e8});}},qa={'type':_0xd3f43e[_0x173eea(0x3bb)],'id':_0x173eea(0x56c),'handler':async(_0x3b21de,_0x9547c5)=>{const _0x421f1c=_0x173eea;if(!_0x468c6f(_0x3b21de['get'](_0x2d0725)))return!0x1;let _0x3a7f40=_0x3b21de[_0x421f1c(0x471)](_0x4a3489)['getFocusDrawings']()['filter'](_0x325e=>_0x325e[_0x421f1c(0x319)]===_0x217b4d[_0x421f1c(0xf5)]);if(_0x3a7f40[_0x421f1c(0x49f)]!==0x1)return!0x1;let _0x3ca7e9=_0x3b21de['get'](Y)[_0x421f1c(0x4d5)](),_0x4fbb3f=(_0x3ca7e9==null?void 0x0:_0x3ca7e9[_0x421f1c(0x1cb)])||_0x3a7f40[0x0]['unitId'],_0x2a3b15=(_0x3ca7e9==null?void 0x0:_0x3ca7e9[_0x421f1c(0x12a)])||_0x3a7f40[0x0][_0x421f1c(0x12a)],_0x1170ab=(_0x3ca7e9==null?void 0x0:_0x3ca7e9[_0x421f1c(0x118)])||_0x3a7f40[0x0][_0x421f1c(0x12c)],_0x2d3fb1=_0x3b21de[_0x421f1c(0x471)](_0x511e68)[_0x421f1c(0xf3)](_0x4fbb3f,_0x2a3b15,_0x1170ab);if(!_0x2d3fb1)return!0x1;let _0x15c50d=_0x2d3fb1[_0x421f1c(0x124)]();if(!_0x15c50d||!('dataModel'in _0x15c50d))return!0x1;let _0x5bc31b=_0x3b21de[_0x421f1c(0x471)](_0x584851),{value:_0x32d2a6}=_0x9547c5,_0x165098=_0x2d3fb1[_0x421f1c(0x54a)](),_0x1f4564=_0x2d3fb1['getShapeData'](),_0x409833={..._0x15c50d['dataModel'],'va':_0x32d2a6};return await _0x5bc31b[_0x421f1c(0x4ff)](Ua['id'],{'unitId':_0x4fbb3f,'subUnitId':_0x2a3b15,'shapeId':_0x1170ab,'shapeType':_0x165098,'shapeData':{'shapeText':{'isHorizontal':!0x0,'dataModel':_0x409833}},'oldShapeJSON':{'oldShapeType':_0x165098,'oldShapeData':_0x1f4564}});}},Ja={'type':_0xd3f43e['COMMAND'],'id':_0x173eea(0x139),'handler':(_0x436f03,_0x5b2570)=>{const _0x57abd8=_0x173eea;if(!_0x5b2570)return!0x1;let {value:_0x3341ed}=_0x5b2570;return _0x436f03[_0x57abd8(0x471)](_0x584851)[_0x57abd8(0x540)](_0x398919['id'],{'alignType':_0x3341ed});}},Ya={'type':_0xd3f43e['OPERATION'],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}},Xa={'type':_0xd3f43e[_0x173eea(0x413)],'id':_0x173eea(0x541),'handler'(){return!0x0;}},Za=_0x173eea(0x53e),Qa=_0xbe759e(_0x173eea(0x3a0));function X(_0x395254,_0x12b065,_0x3774e9,_0x515018,_0x3c0f5b,_0x45568a){const _0x505267=_0x173eea;let _0xa883eb={'unitId':_0x12b065,'subUnitId':_0x3774e9,'shapeId':_0x515018,'shapeData':_0x45568a,'oldShapeJSON':_0x3c0f5b};return _0x395254[_0x505267(0x4ff)](Ua['id'],_0xa883eb);}function _0x34f4(_0x2a9bf1,_0x52e834){_0x2a9bf1=_0x2a9bf1-0xe6;const _0x55e519=_0x55e5();let _0x34f426=_0x55e519[_0x2a9bf1];return _0x34f426;}function $a(_0x3d9341,_0x34955b,_0x222e1b,_0x23190f,_0x2978c0,_0x25c988){let _0x5abed4={'unitId':_0x34955b,'subUnitId':_0x222e1b,'shapeId':_0x23190f,'shapeData':_0x25c988,'oldShapeJSON':_0x2978c0};return _0x3d9341['executeCommand'](Ua['id'],_0x5abed4);}var eo=class extends _0x268782{constructor(_0x56b0d6,_0x43f83c){const _0x52afe5=_0x173eea;super(_0x56b0d6,_0x43f83c),J(this,_0x52afe5(0x144),void 0x0),J(this,_0x52afe5(0x29e),!0x0),J(this,_0x52afe5(0xf1),_0x217b4d[_0x52afe5(0xf5)]),J(this,_0x52afe5(0x588),!0x0),this[_0x52afe5(0x144)]={..._0x43f83c},this[_0x52afe5(0x42e)]();}[_0x173eea(0x42e)](){const _0x36032b=_0x173eea;this[_0x36032b(0x2cd)][_0x36032b(0x410)](_0x43c5ca=>{const _0x18aa23=_0x36032b;this[_0x18aa23(0x1a3)](_0x43c5ca);});}[_0x173eea(0x3ed)](_0x3857bd){const _0x50057d=_0x173eea;this[_0x50057d(0x144)]['prstGeom']=_0x3857bd;}['setEditing'](_0x379d44){const _0x1031a8=_0x173eea;this[_0x1031a8(0x144)]['isEditing']=_0x379d44,this[_0x1031a8(0x58e)](!0x0);}get[_0x173eea(0x1cb)](){return this['_props']['unitId'];}get[_0x173eea(0x12a)](){const _0x1cc87f=_0x173eea;return this[_0x1cc87f(0x144)]['subUnitId'];}[_0x173eea(0x1a3)](_0x1d351b){const _0x1c540a=_0x173eea;if(this['_props']['srcRect']==null||!this['_transformCalculateSrcRect'])return;let {width:_0x468543,height:_0x269dfb}=this,{width:_0x311c89=0x0,height:_0x38d971=0x0}=_0x1d351b[_0x1c540a(0x590)],{left:_0x311dad=0x0,top:_0x2b708f=0x0,right:_0x20d5aa=0x0,bottom:_0x508690=0x0}=this[_0x1c540a(0x144)][_0x1c540a(0x4e1)],_0x294c58=_0x311dad,_0x42bd06=_0x2b708f,_0x24ab6b=_0x20d5aa,_0x5ed240=_0x508690,_0x2308e2=!0x1;if(_0x311c89!==0x0&&_0x311c89!==_0x468543){let _0x54222a=_0x311dad/_0x311c89,_0x19342c=_0x20d5aa/_0x311c89;_0x294c58=_0x468543*_0x54222a,_0x24ab6b=_0x468543*_0x19342c,_0x2308e2=!0x0;}if(_0x38d971!==0x0&&_0x38d971!==_0x269dfb){let _0x382eda=_0x2b708f/_0x38d971,_0x451c11=_0x508690/_0x38d971;_0x42bd06=_0x269dfb*_0x382eda,_0x5ed240=_0x269dfb*_0x451c11,_0x2308e2=!0x0;}_0x2308e2&&this[_0x1c540a(0x369)]({'left':_0x294c58,'top':_0x42bd06,'right':_0x24ab6b,'bottom':_0x5ed240});}[_0x173eea(0x369)](_0x462c07){const _0x4605a5=_0x173eea;this[_0x4605a5(0x144)][_0x4605a5(0x4e1)]=_0x462c07,this[_0x4605a5(0x58e)](!0x0);}[_0x173eea(0x1ae)](_0x4a6f0a){const _0x1644fa=_0x173eea;this[_0x1644fa(0x144)][_0x1644fa(0x348)]=_0x4a6f0a,this[_0x1644fa(0x58e)](!0x0);}set[_0x173eea(0x18f)](_0x2a0b0e){const _0x3931c4=_0x173eea;this[_0x3931c4(0x30d)]=_0x2a0b0e;}get[_0x173eea(0x18f)](){const _0x9f481b=_0x173eea;this[_0x9f481b(0x30d)]||this['_setTransForm']();let _0x43fcee=this['_transform'][_0x9f481b(0x4f0)]();return this['transformForAngle'](_0x43fcee);}get[_0x173eea(0x165)](){const _0x1e9eb4=_0x173eea;return this[_0x1e9eb4(0x144)][_0x1e9eb4(0x165)];}get[_0x173eea(0x118)](){const _0x9c30aa=_0x173eea;return this[_0x9c30aa(0x144)]['shapeId'];}get[_0x173eea(0x4c6)](){return _0x59c38c['SHAPE'];}['_draw'](_0x4a285b,_0x8fcc83,_0x5b704f,_0x175a41){const _0x22cf57=_0x173eea;let _0xccef4b=this['_props']['shapeModel'];if(!_0xccef4b||!_0x8fcc83)return;let _0x22a1d5=_0x5b704f==null?this[_0x22cf57(0x538)]:_0x5b704f,_0xcb8678=_0x175a41==null?this[_0x22cf57(0x3d1)]:_0x175a41,_0x36ac30={'shapeType':_0xccef4b[_0x22cf57(0x54a)](),'width':_0x22a1d5,'height':_0xcb8678},_0x138704={'renderMode':_0x51c25d[_0x22cf57(0x1d4)],'oKey':this[_0x22cf57(0x349)],'image':this[_0x22cf57(0x144)][_0x22cf57(0x348)],'angle':this[_0x22cf57(0x13d)]};_0xccef4b[_0x22cf57(0x1c8)](_0x36ac30),_0x4a285b['save']();let _0x3cca16={'top':0x0,'left':0x0,'width':_0x22a1d5,'height':_0xcb8678};_0xccef4b[_0x22cf57(0x277)](_0x4a285b,_0x3cca16,_0x138704),_0x4a285b[_0x22cf57(0x4fe)]();let _0x9cbd6d=_0xccef4b[_0x22cf57(0x124)](),_0x1c04ac=_0xccef4b[_0x22cf57(0x557)](_0x3cca16),_0x1653a7=_0xccef4b[_0x22cf57(0x52d)]();if(_0x9cbd6d&&_0x1c04ac&&!_0x1653a7){_0x4a285b[_0x22cf57(0x4a2)](),this[_0x22cf57(0x15d)]()[_0x22cf57(0x2c2)]&&_0x4a285b['scale'](-0x1,0x1);let _0xaec552=_0x22a1d5/0x2,_0x212100=_0xcb8678/0x2;_0x4a285b[_0x22cf57(0x581)](-_0xaec552,-_0x212100),_0x4a285b[_0x22cf57(0x53a)](),this[_0x22cf57(0x48e)](_0x4a285b,_0x9cbd6d,_0x1c04ac),_0x4a285b[_0x22cf57(0x4fe)]();}}[_0x173eea(0x32b)](_0x3b6196){}[_0x173eea(0x48e)](_0x17f070,_0x344946,_0x2ecace){const _0x39633e=_0x173eea;this[_0x39633e(0x144)]['isEditing']||(_0x39633e(0x459)in _0x344946&&_0x344946[_0x39633e(0x459)]===!0x1?this['_drawSimpleText'](_0x17f070,_0x344946,_0x2ecace):this['_drawRichText'](_0x17f070,_0x344946,_0x2ecace));}[_0x173eea(0x17e)](_0x4d0427,_0x499c8c,_0x4d86cf){}[_0x173eea(0x267)](_0xfd51f,_0x2f79f7,_0x59b18f){const _0xb725b8=_0x173eea;var _0xdf1396;let _0x9817f8=this[_0xb725b8(0x144)][_0xb725b8(0x437)];if(!_0x2f79f7[_0xb725b8(0x271)]||!_0x9817f8){_0x9817f8||console[_0xb725b8(0x461)](_0xb725b8(0x293));return;}let _0x13b739=_0x2f79f7[_0xb725b8(0x271)],_0x2024f6=_0x13b739[_0xb725b8(0x555)],_0x40c37b=(_0xdf1396=_0x13b739['va'])==null?_0x5e4572[_0xb725b8(0x2d5)]:_0xdf1396;if(!_0x2024f6)return;_0x2024f6['documentStyle']?_0x2024f6['documentStyle'][_0xb725b8(0x498)]={'width':_0x59b18f[_0xb725b8(0x538)],'height':0x1/0x0}:_0x2024f6[_0xb725b8(0x261)]={'pageSize':{'width':_0x59b18f['width'],'height':0x1/0x0}};let _0x7ea46a=new _0x2efad4(_0x2024f6),_0x20b57f=new _0x2bbcb6(_0x7ea46a),_0x5c0d18=_0x276937[_0xb725b8(0x1f7)](_0x20b57f,_0x9817f8);_0x5c0d18['calculate']();let {actualHeight:_0x134690}=_0x5c0d18['getActualSize'](),_0x3e27d6=0x0;_0x40c37b===_0x5e4572[_0xb725b8(0x45e)]?_0x3e27d6=Math['max'](0x0,(_0x59b18f[_0xb725b8(0x3d1)]-_0x134690)/0x2):_0x40c37b===_0x5e4572['BOTTOM']&&(_0x3e27d6=Math[_0xb725b8(0x363)](0x0,_0x59b18f[_0xb725b8(0x3d1)]-_0x134690)),_0x7ea46a[_0xb725b8(0x336)]({'t':_0x3e27d6}),_0x5c0d18[_0xb725b8(0x3d0)]();let _0x15ccbd=new _0xa7aeae(_0xb725b8(0x1bc)+this['oKey'],_0x5c0d18,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0xfd51f[_0xb725b8(0x4a2)](),_0xfd51f['translateWithPrecision'](_0x59b18f[_0xb725b8(0x4d1)],_0x59b18f[_0xb725b8(0x32d)]),_0xfd51f['beginPath'](),_0xfd51f[_0xb725b8(0x195)](0x0,0x0,_0x59b18f[_0xb725b8(0x538)],_0x59b18f[_0xb725b8(0x3d1)]),_0xfd51f[_0xb725b8(0x4c7)](),_0x15ccbd[_0xb725b8(0x3fa)](_0xfd51f),_0xfd51f['restore'](),_0x15ccbd[_0xb725b8(0x50d)](),_0x5c0d18[_0xb725b8(0x50d)](),_0x20b57f[_0xb725b8(0x50d)](),_0x7ea46a['dispose']();}[_0x173eea(0x277)](_0x37db15,_0xa50c8a,_0x1d9870=!0x1){const _0x1962af=_0x173eea;if(!this[_0x1962af(0x48d)])return this['makeDirty'](!0x1),this;let {width:_0x3ffa5b,height:_0x244c80,left:_0x49cc15,top:_0x5c0492}=this,_0x17731c=this[_0x1962af(0xfc)]();if(_0x3ffa5b=_0x17731c[_0x1962af(0x538)],_0x244c80=_0x17731c[_0x1962af(0x3d1)],_0x49cc15=_0x17731c[_0x1962af(0x4d1)],_0x5c0492=_0x17731c[_0x1962af(0x32d)],this[_0x1962af(0x583)](_0xa50c8a)){let {top:_0x37bf34,left:_0x283346,bottom:_0x1aa036,right:_0x2567e5}=_0xa50c8a['viewBound'];if(_0x3ffa5b+this[_0x1962af(0x1d8)]+_0x49cc15<_0x283346||_0x2567e5<_0x49cc15||_0x244c80+this[_0x1962af(0x1d8)]+_0x5c0492<_0x37bf34||_0x1aa036<_0x5c0492)return this;}let _0x4396b7=_0x49cc15+_0x3ffa5b/0x2,_0x5756b8=_0x5c0492+_0x244c80/0x2,_0x2d4e37=this[_0x1962af(0x18f)]['getMatrix']();if(this[_0x1962af(0x144)][_0x1962af(0x2ce)]){let _0x4bc125=this[_0x1962af(0x15d)](),_0x179547=new _0x4bcd07();_0x179547[_0x1962af(0x128)]({..._0x4bc125}),_0x2d4e37=_0x179547[_0x1962af(0x20f)]();}return _0x37db15[_0x1962af(0x4a2)](),this[_0x1962af(0x144)]['shapeModel'][_0x1962af(0x585)]===!0x0||_0x37db15['transform'](_0x2d4e37[0x0],_0x2d4e37[0x1],_0x2d4e37[0x2],_0x2d4e37[0x3],_0x4396b7,_0x5756b8),this['_draw'](_0x37db15,_0xa50c8a,_0x3ffa5b,_0x244c80),_0x37db15[_0x1962af(0x4fe)](),this['makeDirty'](!0x1),this;}[_0x173eea(0xfd)](_0x298908){const _0x9d3d58=_0x173eea;let {left:_0x145ae4,top:_0x4db671,width:_0x367583,height:_0x13293f}=this[_0x9d3d58(0xfc)](),_0x1e8945=this[_0x9d3d58(0x18f)]['getMatrix'](),_0x52d002=_0x145ae4+_0x367583/0x2,_0x21c456=_0x4db671+_0x13293f/0x2,_0x9cc6bc=new _0x4bcd07([_0x1e8945[0x0],_0x1e8945[0x1],_0x1e8945[0x2],_0x1e8945[0x3],_0x52d002,_0x21c456]),_0x1911bc=this['getParent']();return(this['isInGroup']&&(_0x1911bc==null?void 0x0:_0x1911bc['classType'])===_0x59c38c[_0x9d3d58(0x309)]?_0x1911bc['ancestorTransform'][_0x9d3d58(0x1f2)](_0x9cc6bc):_0x9cc6bc)[_0x9d3d58(0x1ac)]()[_0x9d3d58(0x533)](_0x298908);}[_0x173eea(0x3f6)](_0x4025f3){const _0x392d1e=_0x173eea;let {left:_0x574d3e,top:_0x467f69,width:_0xa20813,height:_0x29c61d}=this[_0x392d1e(0xfc)](),_0x36dc55=_0x574d3e+_0xa20813/0x2,_0x2f98ea=_0x467f69+_0x29c61d/0x2,_0x47d9ff=this[_0x392d1e(0x18f)][_0x392d1e(0x20f)](),_0x4dc86f=new _0x4bcd07([_0x47d9ff[0x0],_0x47d9ff[0x1],_0x47d9ff[0x2],_0x47d9ff[0x3],_0x36dc55,_0x2f98ea]),_0x2273fe=this['getParent'](),_0x3aea34=(this['isInGroup']&&(_0x2273fe==null?void 0x0:_0x2273fe['classType'])===_0x59c38c[_0x392d1e(0x309)]?_0x2273fe['ancestorTransform'][_0x392d1e(0x1f2)](_0x4dc86f):_0x4dc86f)[_0x392d1e(0x1ac)]()[_0x392d1e(0x533)](_0x4025f3),_0x4667d7=_0xa20813/0x2,_0x2cc8bb=_0x29c61d/0x2,_0x5acfb9=this['_props']['shapeModel'];return _0x5acfb9&&_0x5acfb9[_0x392d1e(0x52d)]()?_0x5acfb9[_0x392d1e(0x49c)](_0x3aea34['x'],_0x3aea34['y'],_0xa20813,_0x29c61d):_0x3aea34['x']>=-_0x4667d7-this[_0x392d1e(0x1d8)]/0x2&&_0x3aea34['x']<=_0x4667d7+this['strokeWidth']/0x2&&_0x3aea34['y']>=-_0x2cc8bb-this[_0x392d1e(0x1d8)]/0x2&&_0x3aea34['y']<=_0x2cc8bb+this['strokeWidth']/0x2;}[_0x173eea(0x50d)](){const _0xb94f27=_0x173eea;this['_props'][_0xb94f27(0x165)]=null,super[_0xb94f27(0x50d)]();}};function Z(_0x5e2a1b,_0x383667){return function(_0x337929,_0x1786f8){_0x383667(_0x337929,_0x1786f8,_0x5e2a1b);};}function Q(_0x156ab0,_0x4b54a5,_0x20bd56,_0x3aee8b){const _0x594ead=_0x173eea;var _0x48f8a1=arguments[_0x594ead(0x49f)],_0x24e16b=_0x48f8a1<0x3?_0x4b54a5:_0x3aee8b===null?_0x3aee8b=Object['getOwnPropertyDescriptor'](_0x4b54a5,_0x20bd56):_0x3aee8b,_0x4c3f5c;if(typeof Reflect==_0x594ead(0x31c)&&typeof Reflect[_0x594ead(0x25b)]==_0x594ead(0x4e2))_0x24e16b=Reflect[_0x594ead(0x25b)](_0x156ab0,_0x4b54a5,_0x20bd56,_0x3aee8b);else{for(var _0x4e4195=_0x156ab0['length']-0x1;_0x4e4195>=0x0;_0x4e4195--)(_0x4c3f5c=_0x156ab0[_0x4e4195])&&(_0x24e16b=(_0x48f8a1<0x3?_0x4c3f5c(_0x24e16b):_0x48f8a1>0x3?_0x4c3f5c(_0x4b54a5,_0x20bd56,_0x24e16b):_0x4c3f5c(_0x4b54a5,_0x20bd56))||_0x24e16b);}return _0x48f8a1>0x3&&_0x24e16b&&Object[_0x594ead(0x38f)](_0x4b54a5,_0x20bd56,_0x24e16b),_0x24e16b;}let to=class extends _0x399c04{constructor(_0x5491ef,_0x418f4e,_0x1b05b3,_0x27c039,_0xa181b2){const _0x1dc468=_0x173eea;super(),this[_0x1dc468(0x494)]=_0x5491ef,this['_sheetsShapeService']=_0x418f4e,this[_0x1dc468(0x51e)]=_0x1b05b3,this['_imageIoService']=_0x27c039,this[_0x1dc468(0xf0)]=_0xa181b2;}['renderDrawingShape'](_0x3da9d5,_0xf85020){const _0x1cb679=_0x173eea;let {transform:_0x1741f2,drawingType:_0x516c93,srcRect:_0x5ad0df,prstGeom:_0xb944a4,groupId:_0x4c72a8,unitId:_0x2b654b,subUnitId:_0x1fdeef,drawingId:_0x34bb81,isMultiTransform:_0x5507c8,transforms:_0x474aae}=_0x3da9d5;if(_0x516c93!==_0x217b4d[_0x1cb679(0xf5)]||!this[_0x1cb679(0x494)][_0x1cb679(0x3f2)]()||_0x1741f2==null)return;let _0x226bde=_0x5507c8&&_0x474aae?_0x474aae:[_0x1741f2],_0x5531b3=[];for(let _0x33ad8f of _0x226bde){let {left:_0x1e8909,top:_0x8b1747,width:_0x1afcc4,height:_0x5b00dc,angle:_0xff4826,flipX:_0x295d7f,flipY:_0x46954d,skewX:_0x165464,skewY:_0x5f379a}=_0x33ad8f,_0x3ddb94=_0x226bde['indexOf'](_0x33ad8f),_0x1dadfd=_0x4b2a63({'unitId':_0x2b654b,'subUnitId':_0x1fdeef,'drawingId':_0x34bb81},_0x5507c8?_0x3ddb94:void 0x0),_0x10b40f=_0xf85020[_0x1cb679(0x1e1)](_0x1dadfd);if(_0x10b40f!=null){_0x10b40f[_0x1cb679(0x34e)]({'left':_0x1e8909,'top':_0x8b1747,'width':_0x1afcc4,'height':_0x5b00dc,'angle':_0xff4826,'flipX':_0x295d7f,'flipY':_0x46954d,'skewX':_0x165464,'skewY':_0x5f379a});continue;}let _0x339afb=this[_0x1cb679(0x494)][_0x1cb679(0x26e)](_0x2b654b,_0x1fdeef),_0xc61aa1=_0x339afb[_0x1cb679(0x384)](_0x34bb81);if(_0xf85020['getObjectIncludeInGroup'](_0x1dadfd)||!this[_0x1cb679(0x494)][_0x1cb679(0x3f2)]())continue;let _0xd85b1=this[_0x1cb679(0x16e)][_0x1cb679(0xf3)](_0x2b654b,_0x1fdeef,_0x34bb81);if(!_0xd85b1)continue;let _0x2164a6=new eo(_0x1dadfd,{..._0x5b837b(_0xd85b1[_0x1cb679(0x54a)]())?{..._0x33ad8f,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x33ad8f},'zIndex':_0xc61aa1===-0x1?_0x339afb[_0x1cb679(0x49f)]-0x1:_0xc61aa1,'shapeModel':_0xd85b1,'localeService':this[_0x1cb679(0x51e)],'shapeId':_0x34bb81,'unitId':_0x2b654b,'subUnitId':_0x1fdeef});_0xf85020[_0x1cb679(0x36e)](_0x2164a6,_0x2b5d9f),this[_0x1cb679(0x494)]['getDrawingEditable']()&&_0xf85020[_0x1cb679(0x507)](_0x2164a6),_0x4c72a8&&_0x47ce10({'drawingId':_0x4c72a8,'unitId':_0x2b654b,'subUnitId':_0x1fdeef},_0x2164a6,_0xf85020,this[_0x1cb679(0x494)]),_0xb944a4!=null&&_0x2164a6[_0x1cb679(0x3ed)](_0xb944a4),_0x5ad0df!=null&&_0x2164a6['setSrcRect'](_0x5ad0df),this[_0x1cb679(0x237)](_0x2164a6,_0xd85b1['getShapeData']()),_0x5531b3['push'](_0x2164a6);}return _0x5531b3;}[_0x173eea(0x237)](_0x52edc4,_0x39e5d8){const _0x14a0ec=_0x173eea;var _0x1e35b5;let _0x59328f=_0x39e5d8[_0x14a0ec(0x1e9)];if(!_0x59328f||_0x59328f[_0x14a0ec(0x2a1)]!==_0x547816['PictureFill']||!_0x59328f['fillImageSource'])return;let _0x858076=_0x59328f[_0x14a0ec(0x15a)],_0x404d08=(_0x1e35b5=_0x59328f[_0x14a0ec(0x56a)])==null?_0x54b705[_0x14a0ec(0x41c)]:_0x1e35b5,_0xbf5302=this[_0x14a0ec(0x593)][_0x14a0ec(0x150)](_0x858076,_0x404d08);if(_0xbf5302){_0x52edc4[_0x14a0ec(0x1ae)](_0xbf5302);return;}this[_0x14a0ec(0x297)](_0x52edc4,_0x858076,_0x404d08);}async['_loadAndSetImage'](_0x106c0a,_0x28e84a,_0x526a89){const _0x11d7d6=_0x173eea;let _0x43e7b4;try{if(_0x526a89===_0x54b705[_0x11d7d6(0x25a)])_0x43e7b4=await this['_imageIoService'][_0x11d7d6(0x577)](_0x28e84a);else{if(_0x526a89===_0x54b705[_0x11d7d6(0x41c)])try{_0x43e7b4=await this['_urlImageService'][_0x11d7d6(0x577)](_0x28e84a);}catch{_0x43e7b4=_0x28e84a;}else _0x43e7b4=_0x28e84a;}}catch(_0x3ba0e3){console[_0x11d7d6(0x2dc)](_0x11d7d6(0x23b),_0x3ba0e3);return;}let _0x111d9b=new window[(_0x11d7d6(0x440))]();_0x111d9b['onload']=()=>{const _0x3c8163=_0x11d7d6;this[_0x3c8163(0x593)]['addImageSourceCache'](_0x28e84a,_0x526a89,_0x111d9b),_0x106c0a[_0x3c8163(0x1ae)](_0x111d9b);},_0x111d9b[_0x11d7d6(0x514)]=()=>{const _0x23c636=_0x11d7d6;console[_0x23c636(0x2dc)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x28e84a);},_0x111d9b[_0x11d7d6(0x3f4)]=_0x43e7b4;}};to=Q([Z(0x0,_0x4313c8),Z(0x1,_0x18290d(_0x511e68)),Z(0x2,_0x18290d(_0x14ed3e)),Z(0x3,_0x3d6e6c),Z(0x4,_0x2ccd05)],to);let no=class extends _0x399c04{constructor(_0x1c80e4,_0x4e0063,_0x13757b,_0x4ba8c3,_0x127638,_0x2a1b9f){const _0x22747d=_0x173eea;super(),this['_commandService']=_0x1c80e4,this[_0x22747d(0x292)]=_0x4e0063,this[_0x22747d(0x494)]=_0x13757b,this['_currentUniverService']=_0x4ba8c3,this[_0x22747d(0x201)]=_0x127638,this[_0x22747d(0x146)]=_0x2a1b9f,this[_0x22747d(0x2f4)]();}['_initialize'](){const _0x4aca98=_0x173eea;this['_drawingAddListener'](),this[_0x4aca98(0x489)](),this[_0x4aca98(0x1cf)]();}[_0x173eea(0x1ba)](){const _0x3094ff=_0x173eea;this[_0x3094ff(0x48b)](this[_0x3094ff(0x494)][_0x3094ff(0x418)]['subscribe'](_0xad2d40=>{const _0x3e13ae=_0x3094ff;this[_0x3e13ae(0x1f0)](_0xad2d40);}));}['_commandExecutedListener'](){const _0xe4b234=_0x173eea;this[_0xe4b234(0x48b)](this[_0xe4b234(0x21f)]['onCommandExecuted'](_0x5a6c78=>{const _0x18b824=_0xe4b234;if(_0x5a6c78['id']===_0x4043c4['id']){var _0x46fc22;let {unitId:_0x32a7a1,subUnitId:_0x7e9d14,shapeId:_0x1750b0}=_0x5a6c78[_0x18b824(0x34b)],_0x5128fa=this[_0x18b824(0x2fb)](_0x32a7a1);if(_0x5128fa==null)return;let {scene:_0x2bcd63}=_0x5128fa,_0x1b3e99=_0x4b2a63({'unitId':_0x32a7a1,'subUnitId':_0x7e9d14,'drawingId':_0x1750b0}),_0x1e7639=_0x2bcd63[_0x18b824(0x1e1)](_0x1b3e99);if(!((_0x46fc22=this[_0x18b824(0x292)]['getRenderById'](_0x32a7a1))!=null&&_0x46fc22[_0x18b824(0x395)](_0x15a10d)[_0x18b824(0x423)](_0x7e9d14)))return!0x1;if(_0x1e7639)return;this[_0x18b824(0x1f0)]([{'unitId':_0x32a7a1,'subUnitId':_0x7e9d14,'drawingId':_0x1750b0}]);}}));}[_0x173eea(0x1cf)](){const _0x373a92=_0x173eea;this['disposeWithMe'](this[_0x373a92(0x494)]['update$'][_0x373a92(0x30e)](_0x3ebbe5=>{const _0x472995=_0x373a92;_0x3ebbe5[_0x472995(0x318)](_0x18a302=>{const _0x1e1357=_0x472995;let {unitId:_0x37c089,subUnitId:_0x11dc34,drawingId:_0x4f970b}=_0x18a302,_0x5ab7f7=this[_0x1e1357(0x494)][_0x1e1357(0x19a)](_0x18a302);if(_0x5ab7f7==null)return;let {transform:_0x134556,drawingType:_0x457ab4,srcRect:_0x48400b,prstGeom:_0x3a21ff}=_0x5ab7f7;if(_0x457ab4!==_0x217b4d[_0x1e1357(0xf5)])return;let _0x451b91=this[_0x1e1357(0x2fb)](_0x37c089);if(_0x451b91==null)return;let {scene:_0x2d66f9,transformer:_0x48fef2}=_0x451b91;if(_0x134556==null)return!0x0;let _0x356837=_0x4b2a63({'unitId':_0x37c089,'subUnitId':_0x11dc34,'drawingId':_0x4f970b}),_0x53a135=_0x2d66f9[_0x1e1357(0x1e1)](_0x356837);if(_0x53a135==null)return!0x0;_0x53a135[_0x1e1357(0x369)](_0x48400b),_0x53a135[_0x1e1357(0x3ed)](_0x3a21ff);});}));}['updateShapeFillImage'](_0x16171d,_0x1f978d){const _0xc0b852=_0x173eea;let {unitId:_0x2715cc,subUnitId:_0x349bdf,drawingId:_0x3ffc20}=_0x16171d,_0x39d96a=this[_0xc0b852(0x2fb)](_0x2715cc);if(_0x39d96a==null)return;let {scene:_0x24f12f}=_0x39d96a,_0x23d375=_0x4b2a63({'unitId':_0x2715cc,'subUnitId':_0x349bdf,'drawingId':_0x3ffc20}),_0x4ffca0=_0x24f12f['getObjectIncludeInGroup'](_0x23d375);_0x4ffca0!=null&&_0x4ffca0['setFillImage'](_0x1f978d);}[_0x173eea(0x1f0)](_0x35b565){const _0x12199d=_0x173eea;_0x35b565[_0x12199d(0x318)](async _0x3e648b=>{const _0x25d312=_0x12199d;var _0x398e04;let {unitId:_0x360803,subUnitId:_0x5d85d5}=_0x3e648b,_0x221876=this[_0x25d312(0x2fb)](_0x360803),_0xf972a=(_0x398e04=_0x205eb2(this['_currentUniverService'],_0x360803))==null?void 0x0:_0x398e04[_0x25d312(0x12a)];if(_0x221876==null||_0xf972a!==_0x5d85d5)return;let _0x2db69b=this[_0x25d312(0x494)][_0x25d312(0x19a)](_0x3e648b);if(_0x2db69b!=null&&_0x2db69b[_0x25d312(0x319)]===_0x217b4d[_0x25d312(0xf5)]){if(_0x5b837b((_0x2db69b[_0x25d312(0x241)]||{})[_0x25d312(0x450)])){let _0x494071=_0x2db69b[_0x25d312(0x18f)];_0x494071&&(_0x2db69b['transform']={..._0x494071,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x25d312(0x494)][_0x25d312(0x236)]([_0x2db69b]),this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x2db69b,_0x221876['scene']);}});}[_0x173eea(0x2fb)](_0x2ad8af){const _0x1916bf=_0x173eea;if(_0x2ad8af==null)return;let _0x295fb3=this[_0x1916bf(0x292)]['getRenderById'](_0x2ad8af),_0x5b341c=_0x295fb3==null?void 0x0:_0x295fb3[_0x1916bf(0x443)];return _0x5b341c==null?null:{'scene':_0x5b341c,'transformer':_0x5b341c[_0x1916bf(0x512)]()};}};no=Q([Z(0x0,_0x584851),Z(0x1,_0x5f4e41),Z(0x2,_0x4313c8),Z(0x3,_0x2d0725),Z(0x4,_0x18290d(_0x239f53)),Z(0x5,_0x18290d(to))],no);function ro(_0x25be58){const _0x19c5dc=_0x173eea;var _0x25beed,_0x2ed2bf,_0x101089,_0x4a75d2,_0x14d75a,_0x511467,_0x46a528,_0x501d38,_0x4fd2a7,_0x102d4f,_0x379a76,_0x338159,_0x443a69;let {unitId:_0x1d2e69,subUnitId:_0x26987b,shapeId:_0x40ce91,shapeData:_0x52e1bc,disableShapeOption:_0xc23946}=_0x25be58,_0x2de4c0=_0x6447ef(_0x14ed3e),_0x52c505=_0x6447ef(_0x584851),_0x3396f0=_0x6447ef(_0x41728c),_0x1fd036=_0x6447ef(no),_0x501a9a=_0x6447ef(_0x3d6e6c),_0x27ddbe=_0x3a97ab(null),_0x412c0e=_0x52e1bc['fill'],_0x110051=!!(_0x412c0e!=null&&_0x412c0e[_0x19c5dc(0x15a)]),[_0xc2cbec,_0x57b527]=_0x5cfa86((_0x25beed=_0x412c0e==null?void 0x0:_0x412c0e[_0x19c5dc(0x338)])==null?0x1:_0x25beed),[_0x279886,_0x89ec2e]=_0x5cfa86((_0x2ed2bf=_0x412c0e==null?void 0x0:_0x412c0e[_0x19c5dc(0x428)])==null?_0x554086[_0x19c5dc(0x248)]:_0x2ed2bf),[_0xfad86e,_0x540995]=_0x5cfa86((_0x101089=_0x412c0e==null?void 0x0:_0x412c0e[_0x19c5dc(0x553)])==null?!0x1:_0x101089),[_0x13058e,_0x3d682a]=_0x5cfa86((_0x4a75d2=_0x412c0e==null||(_0x14d75a=_0x412c0e[_0x19c5dc(0x495)])==null?void 0x0:_0x14d75a['offsetX'])==null?0x0:_0x4a75d2),[_0x3fbe49,_0xdb2596]=_0x5cfa86((_0x511467=_0x412c0e==null||(_0x46a528=_0x412c0e['imageTile'])==null?void 0x0:_0x46a528['offsetY'])==null?0x0:_0x511467),[_0x1d2f33,_0x23369f]=_0x5cfa86((_0x501d38=_0x412c0e==null||(_0x4fd2a7=_0x412c0e[_0x19c5dc(0x495)])==null?void 0x0:_0x4fd2a7[_0x19c5dc(0x217)])==null?0x1:_0x501d38),[_0xdda328,_0x141db1]=_0x5cfa86((_0x102d4f=_0x412c0e==null||(_0x379a76=_0x412c0e[_0x19c5dc(0x495)])==null?void 0x0:_0x379a76[_0x19c5dc(0x3d9)])==null?0x1:_0x102d4f),[_0x3070ce,_0xea6e9e]=_0x5cfa86((_0x338159=_0x412c0e==null||(_0x443a69=_0x412c0e[_0x19c5dc(0x495)])==null?void 0x0:_0x443a69[_0x19c5dc(0x4fa)])==null?'tl':_0x338159),_0x18e00b=_0x279886===_0x554086['Tile'],_0x4d7543=Math[_0x19c5dc(0x2d1)]((0x1-_0xc2cbec)*0x64),_0x32574c=Math[_0x19c5dc(0x2d1)](_0x1d2f33*0x64),_0x412097=Math[_0x19c5dc(0x2d1)](_0xdda328*0x64),_0x35312a=_0x3e97c0=>_0x2de4c0['t'](_0x3e97c0),_0x337fac=[{'label':_0x35312a('sheets-shape.fill.picture.align.tl'),'value':'tl'},{'label':_0x35312a(_0x19c5dc(0x10c)),'value':'t'},{'label':_0x35312a('sheets-shape.fill.picture.align.tr'),'value':'tr'},{'label':_0x35312a('sheets-shape.fill.picture.align.l'),'value':'l'},{'label':_0x35312a(_0x19c5dc(0x2f9)),'value':_0x19c5dc(0x311)},{'label':_0x35312a('sheets-shape.fill.picture.align.r'),'value':'r'},{'label':_0x35312a('sheets-shape.fill.picture.align.bl'),'value':'bl'},{'label':_0x35312a(_0x19c5dc(0x36c)),'value':'b'},{'label':_0x35312a('sheets-shape.fill.picture.align.br'),'value':'br'}],_0x4ee14d=_0xc6cb98=>{X(_0x52c505,_0x1d2e69,_0x26987b,_0x40ce91,{'oldShapeData':{'fill':_0x412c0e?{..._0x412c0e}:void 0x0}},{'fill':{..._0x412c0e,..._0xc6cb98}});},_0x11f3d=_0x4359e8=>{_0x4ee14d({'imageTile':{..._0x412c0e==null?void 0x0:_0x412c0e['imageTile'],..._0x4359e8}});},_0x40227f=()=>{const _0x47fa9a=_0x19c5dc;var _0x45b09b;return(_0x45b09b=_0x27ddbe[_0x47fa9a(0x259)])==null?void 0x0:_0x45b09b[_0x47fa9a(0x451)]();},_0x47f122=async _0x40e1e3=>{const _0x53de9b=_0x19c5dc;var _0x370d24;let _0x4c2e71=(_0x370d24=_0x40e1e3['target']['files'])==null?void 0x0:_0x370d24[0x0];if(!_0x4c2e71)return;_0x40e1e3[_0x53de9b(0x47d)][_0x53de9b(0x2c1)]='';let _0x5c2065=await _0x501a9a[_0x53de9b(0x539)](_0x4c2e71);if(_0x5c2065==null)return;let {imageSourceType:_0x4df9b8,source:_0x29a5f1,base64Cache:_0x273e1c}=_0x5c2065,{image:_0x503d28}=await _0x4de779(_0x273e1c||'');_0x501a9a[_0x53de9b(0xf4)](_0x29a5f1,_0x4df9b8,_0x503d28),X(_0x52c505,_0x1d2e69,_0x26987b,_0x40ce91,{'oldShapeData':{'fill':_0x412c0e?{..._0x412c0e}:void 0x0}},{'fill':{..._0x412c0e,'fillType':_0x547816[_0x53de9b(0x310)],'fillImageSource':_0x29a5f1,'fillImageSourceType':_0x4df9b8}}),_0x1fd036[_0x53de9b(0x211)]({'unitId':_0x1d2e69,'subUnitId':_0x26987b,'drawingId':_0x40ce91},_0x503d28);},_0x54612d=_0x19c5dc(0x4af),_0x9e4e02=_0x19c5dc(0x28c);return _0x42d0cd(_0x19c5dc(0x54e),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pt-2','children':[_0x42d0cd(_0x19c5dc(0x54e),{'className':_0x19c5dc(0xf6),'children':[_0x3561af(_0x19c5dc(0x1fb),{'className':_0x54612d,'children':_0x35312a(_0x19c5dc(0x52c))}),_0x42d0cd('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x3561af(_0x19c5dc(0x3bf),{'ref':_0x27ddbe,'type':_0x19c5dc(0x2dd),'accept':_0x19c5dc(0x123),'className':'univer-hidden','onChange':_0x47f122}),_0x42d0cd(_0x19c5dc(0x54e),{'className':_0x19c5dc(0x47c),'children':[_0x3561af(_0x19c5dc(0x13e),{'type':_0x19c5dc(0x13e),'disabled':_0xc23946,'className':'univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-3\x20univer-py-1\x20univer-text-sm\x20univer-transition-colors\x20hover:univer-bg-gray-100\x20disabled:univer-cursor-not-allowed\x20disabled:univer-opacity-50\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','onClick':_0x40227f,'children':_0x42d0cd('span',{'children':[_0x35312a(_0x19c5dc(0x475)),'\x20']})}),_0x110051&&_0x3561af(_0x19c5dc(0x54e),{'className':_0x19c5dc(0x4a6),'children':_0x3561af(_0x19c5dc(0x11e),{'src':_0x412c0e==null?void 0x0:_0x412c0e[_0x19c5dc(0x15a)],'alt':'','className':_0x19c5dc(0x2b0)})})]})]})]}),_0x42d0cd('div',{'className':_0x9e4e02,'children':[_0x3561af(_0x19c5dc(0x1fb),{'className':_0x54612d,'children':_0x35312a(_0x19c5dc(0x4c3))}),_0x3561af(_0x19c5dc(0x54e),{'className':_0x19c5dc(0x14c),'children':_0x3561af(_0x512089,{'className':_0x19c5dc(0x594),'value':_0x4d7543,'disabled':_0xc23946,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x282ad0=>_0x282ad0+'%','parser':_0x54bee6=>(_0x54bee6==null?void 0x0:_0x54bee6[_0x19c5dc(0x1ab)]('%',''))||'','onChange':_0x158c98=>{const _0x4d77b6=_0x19c5dc;let _0x30f04a=_0x158c98==null?0x0:_0x158c98,_0x870aa9=(0x64-Math[_0x4d77b6(0x363)](0x0,Math['min'](0x64,_0x30f04a)))/0x64;_0x57b527(_0x870aa9),_0x4ee14d({'imageOpacity':_0x870aa9}),_0x3396f0[_0x4d77b6(0x391)](_0x36af54,!0x1);},'onFocus':()=>_0x3396f0[_0x19c5dc(0x391)](_0x36af54,!0x0),'onBlur':()=>_0x3396f0['setContextValue'](_0x36af54,!0x1)})})]}),_0x3561af(_0x4f7918,{'checked':_0x18e00b,'disabled':_0xc23946,'onChange':_0x262260=>{const _0x3cbabd=_0x19c5dc;let _0x14d3df=_0x262260?_0x554086[_0x3cbabd(0x3df)]:_0x554086['Stretch'];_0x89ec2e(_0x14d3df),_0x4ee14d({'imageFillMode':_0x14d3df});},'children':_0x3561af(_0x19c5dc(0x1fb),{'className':_0x19c5dc(0x535),'children':_0x35312a(_0x19c5dc(0x4ed))})}),_0x18e00b&&_0x42d0cd(_0x19c5dc(0x54e),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-flex-col\x20univer-gap-2\x20univer-border-l-2\x20univer-border-l-gray-200\x20univer-pl-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-l-gray-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[_0x42d0cd(_0x19c5dc(0x54e),{'className':_0x9e4e02,'children':[_0x3561af(_0x19c5dc(0x1fb),{'className':_0x54612d,'children':_0x35312a(_0x19c5dc(0x303))}),_0x3561af(_0x19c5dc(0x54e),{'className':'univer-w-20','children':_0x3561af(_0x512089,{'className':_0x19c5dc(0x594),'value':_0x13058e,'disabled':_0xc23946,'step':0x1,'onChange':_0x55637e=>{_0x11f3d({'offsetX':_0x55637e==null?0x0:_0x55637e}),_0x3d682a(_0x55637e==null?0x0:_0x55637e);},'onFocus':()=>_0x3396f0[_0x19c5dc(0x391)](_0x36af54,!0x0),'onBlur':()=>_0x3396f0['setContextValue'](_0x36af54,!0x1)})})]}),_0x42d0cd(_0x19c5dc(0x54e),{'className':_0x9e4e02,'children':[_0x3561af(_0x19c5dc(0x1fb),{'className':_0x54612d,'children':_0x35312a(_0x19c5dc(0x480))}),_0x3561af(_0x19c5dc(0x54e),{'className':'univer-w-20','children':_0x3561af(_0x512089,{'className':_0x19c5dc(0x594),'value':_0x3fbe49,'disabled':_0xc23946,'step':0x1,'onChange':_0x7aa2ef=>{_0x11f3d({'offsetY':_0x7aa2ef==null?0x0:_0x7aa2ef}),_0xdb2596(_0x7aa2ef==null?0x0:_0x7aa2ef);},'onFocus':()=>_0x3396f0[_0x19c5dc(0x391)](_0x36af54,!0x0),'onBlur':()=>_0x3396f0['setContextValue'](_0x36af54,!0x1)})})]}),_0x42d0cd(_0x19c5dc(0x54e),{'className':_0x9e4e02,'children':[_0x3561af(_0x19c5dc(0x1fb),{'className':_0x54612d,'children':_0x35312a(_0x19c5dc(0xf2))}),_0x3561af(_0x19c5dc(0x54e),{'className':'univer-w-20','children':_0x3561af(_0x512089,{'className':'univer-w-full','value':_0x32574c,'disabled':_0xc23946,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x3ee90b=>_0x3ee90b+'%','parser':_0x494a58=>(_0x494a58==null?void 0x0:_0x494a58[_0x19c5dc(0x1ab)]('%',''))||'','onChange':_0x393ffd=>{const _0x55f77b=_0x19c5dc;let _0x483bdd=Math[_0x55f77b(0x363)](0.01,(_0x393ffd==null?0x64:_0x393ffd)/0x64);_0x23369f(_0x483bdd),_0x11f3d({'scaleX':_0x483bdd}),_0x3396f0[_0x55f77b(0x391)](_0x36af54,!0x1);},'onFocus':()=>_0x3396f0['setContextValue'](_0x36af54,!0x0),'onBlur':()=>_0x3396f0[_0x19c5dc(0x391)](_0x36af54,!0x1)})})]}),_0x42d0cd('div',{'className':_0x9e4e02,'children':[_0x3561af(_0x19c5dc(0x1fb),{'className':_0x54612d,'children':_0x35312a(_0x19c5dc(0x202))}),_0x3561af(_0x19c5dc(0x54e),{'className':_0x19c5dc(0x14c),'children':_0x3561af(_0x512089,{'className':_0x19c5dc(0x594),'value':_0x412097,'disabled':_0xc23946,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x5e3bfa=>_0x5e3bfa+'%','parser':_0x4dd535=>(_0x4dd535==null?void 0x0:_0x4dd535[_0x19c5dc(0x1ab)]('%',''))||'','onChange':_0x43fbbc=>{const _0xeeb873=_0x19c5dc;let _0x11856d=Math[_0xeeb873(0x363)](0.01,(_0x43fbbc==null?0x64:_0x43fbbc)/0x64);_0x141db1(_0x11856d),_0x11f3d({'scaleY':_0x11856d}),_0x3396f0[_0xeeb873(0x391)](_0x36af54,!0x1);},'onFocus':()=>_0x3396f0[_0x19c5dc(0x391)](_0x36af54,!0x0),'onBlur':()=>_0x3396f0[_0x19c5dc(0x391)](_0x36af54,!0x1)})})]}),_0x42d0cd('div',{'className':_0x9e4e02,'children':[_0x3561af(_0x19c5dc(0x1fb),{'className':_0x54612d,'children':_0x35312a('sheets-shape.fill.picture.alignment')}),_0x3561af(_0x19c5dc(0x54e),{'className':_0x19c5dc(0x386),'children':_0x3561af(_0x401d2a,{'className':'univer-w-full','value':_0x3070ce,'options':_0x337fac,'disabled':_0xc23946,'onChange':_0x47b4b5=>{_0xea6e9e(_0x47b4b5),_0x11f3d({'alignment':_0x47b4b5});}})})]})]}),_0x3561af(_0x4f7918,{'checked':_0xfad86e,'disabled':_0xc23946,'onChange':_0x538d18=>{_0x540995(_0x538d18),_0x4ee14d({'imageRotateWithShape':_0x538d18});},'children':_0x3561af(_0x19c5dc(0x1fb),{'className':_0x19c5dc(0x535),'children':_0x35312a(_0x19c5dc(0x3ba))})})]});}function io(_0x354826){const _0x2af976=_0x173eea;var _0x466808,_0x59d0ea,_0xa6827a;let _0x7b98da=_0x6447ef(_0x14ed3e),_0x1ad701=_0x6447ef(_0x584851),_0x585023=_0x6447ef(_0x41728c),{shapeData:_0x101b95,isLineShape:_0x489472,unitId:_0x208283,subUnitId:_0x2eff2e,shapeId:_0x2ab667,disableShapeOption:_0x43683a}=_0x354826,[_0x1e5e61,_0x36ed4b]=_0x5cfa86(((_0x466808=_0x101b95['fill'])==null?void 0x0:_0x466808['fillType'])||_0x547816[_0x2af976(0x222)]),[_0x3111f9,_0x28e5e0]=_0x5cfa86(((_0x59d0ea=_0x101b95[_0x2af976(0x1e9)])==null?void 0x0:_0x59d0ea[_0x2af976(0x283)])||_0x38fd6a[_0x2af976(0x1e9)]),[_0x6617bb,_0x56aacc]=_0x5cfa86(((_0xa6827a=_0x101b95[_0x2af976(0x1e9)])==null?void 0x0:_0xa6827a[_0x2af976(0x181)])||0x1),[_0x45b986,_0x47cc92]=_0x5cfa86(!0x1);if(_0x489472)return null;let _0x2055d9=0x64-_0x6617bb*0x64;return _0x42d0cd(_0x2af976(0x54e),{'className':_0x2af976(0x42a),'children':[_0x42d0cd(_0x37f2e3,{'value':_0x1e5e61,'disabled':_0x43683a,'onChange':_0x3b4343=>{const _0x596d38=_0x2af976;var _0x3164fc;X(_0x1ad701,_0x208283,_0x2eff2e,_0x2ab667,{'oldShapeData':{'fill':{'fillType':(_0x3164fc=_0x101b95[_0x596d38(0x1e9)])==null?void 0x0:_0x3164fc[_0x596d38(0x2a1)]}}},{'fill':{'fillType':_0x3b4343}}),_0x36ed4b(_0x3b4343);},'direction':_0x2af976(0x1c0),'children':[_0x3561af(_0x2cb326,{'value':_0x547816[_0x2af976(0x1d0)],'children':_0x3561af(_0x2af976(0x1fb),{'className':_0x2af976(0x535),'children':_0x7b98da['t'](_0x2af976(0x43c))})}),_0x3561af(_0x2cb326,{'value':_0x547816[_0x2af976(0x222)],'children':_0x3561af('span',{'className':_0x2af976(0x535),'children':_0x7b98da['t']('sheets-shape.fill.solidFill')})}),_0x3561af(_0x2cb326,{'value':_0x547816[_0x2af976(0x546)],'children':_0x3561af(_0x2af976(0x1fb),{'className':_0x2af976(0x535),'children':_0x7b98da['t']('sheets-shape.fill.gradientFill')})}),_0x3561af(_0x2cb326,{'value':_0x547816['PictureFill'],'children':_0x3561af('span',{'className':'univer-text-sm','children':_0x7b98da['t']('sheets-shape.fill.pictureFill')})})]}),_0x1e5e61===_0x547816[_0x2af976(0x222)]&&_0x42d0cd(_0x2af976(0x54e),{'className':_0x2af976(0x398),'children':[_0x42d0cd('div',{'className':_0x2af976(0x374),'children':[_0x3561af(_0x2af976(0x1fb),{'className':_0x2af976(0x3d3),'children':_0x7b98da['t'](_0x2af976(0x2ca))}),_0x3561af(_0x4a34c5,{'disabled':_0x43683a,'overlay':_0x3561af(_0x2af976(0x54e),{'className':'univer-rounded-lg\x20univer-p-3','children':_0x3561af(_0x393fe1,{'value':_0x3111f9,'onChange':_0x1c4533=>{const _0x140d48=_0x2af976;var _0x1674b9;X(_0x1ad701,_0x208283,_0x2eff2e,_0x2ab667,{'oldShapeData':{'fill':{'color':(_0x1674b9=_0x101b95['fill'])==null?void 0x0:_0x1674b9[_0x140d48(0x283)]}}},{'fill':{'color':_0x1c4533}}),_0x28e5e0(_0x1c4533),_0x47cc92(!0x1);}})}),'open':_0x45b986,'onOpenChange':_0x47cc92,'children':_0x42d0cd('a',{'className':'univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1.5\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-2\x20univer-py-1\x20univer-transition-colors\x20hover:univer-border-primary-600\x20hover:univer-bg-gray-100\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','children':[_0x3561af(_0x74344b,{'className':_0x2af976(0x4a3),'extend':{'colorChannel1':_0x3111f9}}),_0x3561af(_0x241a03,{'className':_0x3ea00c(_0x2af976(0x33c),{'univer-rotate-180':_0x45b986})})]})})]}),_0x42d0cd(_0x2af976(0x54e),{'className':_0x2af976(0x28c),'children':[_0x3561af(_0x2af976(0x1fb),{'className':_0x2af976(0x4af),'children':_0x7b98da['t'](_0x2af976(0x4c3))}),_0x3561af(_0x2af976(0x54e),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':_0x3561af('div',{'className':_0x2af976(0x14c),'children':_0x3561af(_0x512089,{'className':_0x2af976(0x594),'value':_0x2055d9,'disabled':_0x43683a,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x235835=>_0x235835+'%','parser':_0x439385=>(_0x439385==null?void 0x0:_0x439385[_0x2af976(0x1ab)]('%',''))||'','onChange':_0x8b5335=>{const _0xddf89=_0x2af976;let _0x34831e=_0x8b5335==null?0x0:_0x8b5335,_0x175cf2=(0x64-Math[_0xddf89(0x363)](0x0,Math['min'](0x64,_0x34831e)))/0x64;_0x56aacc(_0x175cf2),X(_0x1ad701,_0x208283,_0x2eff2e,_0x2ab667,{'oldShapeData':{'fill':{..._0x101b95[_0xddf89(0x1e9)],'fillType':_0x1e5e61}}},{'fill':{..._0x101b95[_0xddf89(0x1e9)],'fillType':_0x1e5e61,'opacity':_0x175cf2}}),_0x585023[_0xddf89(0x391)](_0x36af54,!0x1);},'onFocus':()=>_0x585023['setContextValue'](_0x36af54,!0x0),'onBlur':()=>{const _0x5dafdb=_0x2af976;_0x585023[_0x5dafdb(0x391)](_0x36af54,!0x1);}})})})]})]}),_0x1e5e61===_0x547816['GradientFill']&&_0x3561af(so,{'shapeData':_0x101b95,'disableShapeOption':_0x43683a,'onUpdate':_0x2910bb=>{const _0x179643=_0x2af976;X(_0x1ad701,_0x208283,_0x2eff2e,_0x2ab667,{'oldShapeData':{'fill':{..._0x101b95[_0x179643(0x1e9)]}}},{'fill':{..._0x101b95[_0x179643(0x1e9)],..._0x2910bb}});}}),_0x1e5e61===_0x547816[_0x2af976(0x310)]&&_0x3561af(ro,{'unitId':_0x208283,'subUnitId':_0x2eff2e,'shapeId':_0x2ab667,'shapeData':_0x101b95,'disableShapeOption':_0x43683a})]});}function ao(_0x4873a5){const _0x1a88a9=_0x173eea;switch(_0x4873a5){case _0x3fd73f[_0x1a88a9(0x1c5)]:return _0x1a88a9(0x354);case _0x3fd73f['Radial']:return _0x1a88a9(0x28b);case _0x3fd73f['Angular']:return _0x1a88a9(0x39d);case _0x3fd73f[_0x1a88a9(0x3db)]:return'diamond';default:return'linear';}}function oo(_0x157472){const _0xc26de7=_0x173eea;switch(_0x157472){case _0xc26de7(0x354):return _0x3fd73f[_0xc26de7(0x1c5)];case _0xc26de7(0x28b):return _0x3fd73f[_0xc26de7(0x524)];case _0xc26de7(0x39d):return _0x3fd73f[_0xc26de7(0x57d)];case'diamond':return _0x3fd73f[_0xc26de7(0x3db)];default:return _0x3fd73f['Linear'];}}function so(_0x1d9e0e){const _0x5825e0=_0x173eea;let {shapeData:_0x2bbf7c,disableShapeOption:_0x289165,onUpdate:_0xee062b}=_0x1d9e0e;return _0x3561af(_0x5825e0(0x54e),{'className':_0x5825e0(0x3f9),'children':_0x3561af(_0x2e887b,{'value':_0x177b1f(()=>{const _0x137c86=_0x5825e0;var _0x1d7956;let _0x4d058b=_0x2bbf7c[_0x137c86(0x1e9)];return{'type':ao(_0x4d058b==null?void 0x0:_0x4d058b[_0x137c86(0x3b4)]),'angle':(_0x1d7956=_0x4d058b==null?void 0x0:_0x4d058b[_0x137c86(0x4df)])==null?0x5a:_0x1d7956,'stops':_0x4d058b!=null&&_0x4d058b[_0x137c86(0x2e0)]&&_0x4d058b[_0x137c86(0x2e0)][_0x137c86(0x49f)]>=0x2?_0x4d058b[_0x137c86(0x2e0)][_0x137c86(0x37f)](_0x5914b0=>({'color':_0x5914b0[_0x137c86(0x283)],'offset':_0x5914b0[_0x137c86(0x2ef)]*0x64})):[{'color':(_0x4d058b==null?void 0x0:_0x4d058b[_0x137c86(0x283)])||_0x137c86(0x3b5),'offset':0x0},{'color':_0x137c86(0x3ac),'offset':0x64}]};},[_0x2bbf7c[_0x5825e0(0x1e9)]]),'onChange':_0x59490b=>{const _0x5a5df2=_0x5825e0;let _0x17b267=oo(_0x59490b['type']),_0x3c66bb=_0x59490b[_0x5a5df2(0x13d)];_0xee062b({'gradientType':_0x17b267,'gradientAngle':_0x3c66bb,'gradientStops':_0x59490b[_0x5a5df2(0x528)][_0x5a5df2(0x37f)](_0x1f6d7e=>({'color':_0x1f6d7e[_0x5a5df2(0x283)],'position':_0x1f6d7e['offset']/0x64}))});}})});}function co(_0x45d972){const _0x41e7eb=_0x173eea;var _0x3c4f19,_0x40b12f,_0x2dc140,_0x4e6708,_0x18b017,_0x1e5fe4,_0x1bc5ea,_0x57f8d7,_0x5c51c1,_0x1ebdf2,_0x1b30b9,_0x3c354b,_0x132e4e,_0x29ed7b,_0x4c1a3a,_0x46d31e;let _0x3609de=_0x6447ef(_0x14ed3e),_0x47f0f4=_0x6447ef(_0x584851),_0x5eff8d=_0x6447ef(_0x41728c),{shapeData:_0x54e831,isLineShape:_0x21b794,unitId:_0x487559,subUnitId:_0x33fee5,shapeId:_0x5ac702,disableShapeOption:_0x4a1304}=_0x45d972,_0x2dd132=_0x54e831['stroke'],[_0x14fdea,_0x5820a4]=_0x5cfa86((_0x3c4f19=_0x2dd132==null?void 0x0:_0x2dd132[_0x41e7eb(0x350)])==null?_0x5a81be[_0x41e7eb(0x341)]:_0x3c4f19),[_0x579781,_0x189668]=_0x5cfa86((_0x40b12f=_0x2dd132==null?void 0x0:_0x2dd132[_0x41e7eb(0x283)])==null?_0x38fd6a[_0x41e7eb(0x469)]:_0x40b12f),[_0x463cc6,_0x17fdea]=_0x5cfa86((_0x2dc140=_0x2dd132==null?void 0x0:_0x2dd132[_0x41e7eb(0x181)])==null?0x1:_0x2dc140),[_0x99be6c,_0x4e9ccf]=_0x5cfa86((_0x4e6708=_0x2dd132==null?void 0x0:_0x2dd132[_0x41e7eb(0x538)])==null?_0x38fd6a[_0x41e7eb(0x1d8)]:_0x4e6708),[_0x25cba4,_0x27ef3c]=_0x5cfa86((_0x18b017=_0x2dd132==null?void 0x0:_0x2dd132[_0x41e7eb(0x10f)])==null?_0x1e5a61['Solid']:_0x18b017),[_0x524b70,_0x3bb476]=_0x5cfa86((_0x1e5fe4=_0x2dd132==null?void 0x0:_0x2dd132['capType'])==null?_0x347ed7[_0x41e7eb(0x333)]:_0x1e5fe4),[_0x3e6ef4,_0x5aa17b]=_0x5cfa86((_0x1bc5ea=_0x2dd132==null?void 0x0:_0x2dd132['lineJoinType'])==null?_0x2767c1[_0x41e7eb(0x134)]:_0x1bc5ea),[_0x4fb09e,_0x3f6a27]=_0x5cfa86((_0x57f8d7=_0x2dd132==null?void 0x0:_0x2dd132['sketchType'])==null?_0x4e565e['None']:_0x57f8d7),_0xdfd646=_0x54e831,[_0x2c6079,_0x4e48f2]=_0x5cfa86((_0x5c51c1=(_0x1ebdf2=_0xdfd646['ln'])==null||(_0x1ebdf2=_0x1ebdf2[_0x41e7eb(0x22c)])==null?void 0x0:_0x1ebdf2[_0x41e7eb(0x2a9)])==null?_0x3c24c6[_0x41e7eb(0x44e)]:_0x5c51c1),[_0x23cd31,_0x3ef23a]=_0x5cfa86((_0x1b30b9=(_0x3c354b=_0xdfd646['ln'])==null||(_0x3c354b=_0x3c354b['startArrow'])==null?void 0x0:_0x3c354b[_0x41e7eb(0x4da)])==null?_0x2fdd4c[_0x41e7eb(0x276)]:_0x1b30b9),[_0x2a69c2,_0x4990f4]=_0x5cfa86((_0x132e4e=(_0x29ed7b=_0xdfd646['ln'])==null||(_0x29ed7b=_0x29ed7b[_0x41e7eb(0x16f)])==null?void 0x0:_0x29ed7b[_0x41e7eb(0x2a9)])==null?_0x3c24c6[_0x41e7eb(0x44e)]:_0x132e4e),[_0x29dde4,_0x4a78a1]=_0x5cfa86((_0x4c1a3a=(_0x46d31e=_0xdfd646['ln'])==null||(_0x46d31e=_0x46d31e['endArrow'])==null?void 0x0:_0x46d31e['size'])==null?_0x2fdd4c[_0x41e7eb(0x276)]:_0x4c1a3a),[_0xfb60eb,_0x1544f1]=_0x5cfa86(!0x1),_0x4dacbb=0x64-_0x463cc6*0x64,_0x53abfa=[{'label':_0x3609de['t']('sheets-shape.line.dashType.solid'),'value':String(_0x1e5a61[_0x41e7eb(0x239)])},{'label':_0x3609de['t']('sheets-shape.line.dashType.roundDot'),'value':String(_0x1e5a61[_0x41e7eb(0x278)])},{'label':_0x3609de['t'](_0x41e7eb(0x4fc)),'value':String(_0x1e5a61[_0x41e7eb(0x28d)])},{'label':_0x3609de['t'](_0x41e7eb(0x547)),'value':String(_0x1e5a61[_0x41e7eb(0x1d5)])},{'label':_0x3609de['t']('sheets-shape.line.dashType.dashDot'),'value':String(_0x1e5a61[_0x41e7eb(0x4b4)])},{'label':_0x3609de['t'](_0x41e7eb(0x2b9)),'value':String(_0x1e5a61['LongDash'])},{'label':_0x3609de['t'](_0x41e7eb(0x2da)),'value':String(_0x1e5a61[_0x41e7eb(0x420)])},{'label':_0x3609de['t'](_0x41e7eb(0x1d7)),'value':String(_0x1e5a61['LongDashDotDot'])}],_0x3e650e=[{'label':_0x3609de['t'](_0x41e7eb(0x467)),'value':String(_0x347ed7[_0x41e7eb(0x333)])},{'label':_0x3609de['t'](_0x41e7eb(0x49a)),'value':String(_0x347ed7[_0x41e7eb(0x180)])},{'label':_0x3609de['t']('sheets-shape.line.capType.square'),'value':String(_0x347ed7[_0x41e7eb(0x206)])}],_0x5a14b4=[{'label':_0x3609de['t']('sheets-shape.line.sketchType.none'),'value':String(_0x4e565e[_0x41e7eb(0x44e)])},{'label':_0x3609de['t']('sheets-shape.line.sketchType.curved'),'value':String(_0x4e565e['Curved'])},{'label':_0x3609de['t'](_0x41e7eb(0x396)),'value':String(_0x4e565e[_0x41e7eb(0x4a5)])},{'label':_0x3609de['t'](_0x41e7eb(0x19e)),'value':String(_0x4e565e[_0x41e7eb(0x2c6)])}],_0x203566=[{'label':_0x3609de['t']('sheets-shape.line.joinType.miter'),'value':String(_0x2767c1[_0x41e7eb(0x134)])},{'label':_0x3609de['t'](_0x41e7eb(0x4d0)),'value':String(_0x2767c1['Round'])},{'label':_0x3609de['t'](_0x41e7eb(0x299)),'value':String(_0x2767c1[_0x41e7eb(0x2c5)])}],_0x55ddf6=[{'label':_0x3609de['t'](_0x41e7eb(0x1e2)),'value':String(_0x3c24c6['None'])},{'label':_0x3609de['t'](_0x41e7eb(0x36a)),'value':String(_0x3c24c6[_0x41e7eb(0x11d)])},{'label':_0x3609de['t'](_0x41e7eb(0x3b7)),'value':String(_0x3c24c6[_0x41e7eb(0x508)])},{'label':_0x3609de['t'](_0x41e7eb(0x38a)),'value':String(_0x3c24c6[_0x41e7eb(0x109)])},{'label':_0x3609de['t'](_0x41e7eb(0x447)),'value':String(_0x3c24c6[_0x41e7eb(0x34a)])},{'label':_0x3609de['t'](_0x41e7eb(0x1e0)),'value':String(_0x3c24c6[_0x41e7eb(0x44f)])}],_0x14719f=[{'label':_0x3609de['t']('sheets-shape.line.arrowSize.small'),'value':String(_0x2fdd4c[_0x41e7eb(0x3f7)])},{'label':_0x3609de['t'](_0x41e7eb(0x281)),'value':String(_0x2fdd4c[_0x41e7eb(0x276)])},{'label':_0x3609de['t'](_0x41e7eb(0x15f)),'value':String(_0x2fdd4c[_0x41e7eb(0x31d)])}];return _0x42d0cd(_0x41e7eb(0x54e),{'className':_0x41e7eb(0x42a),'children':[_0x42d0cd(_0x37f2e3,{'value':String(_0x14fdea),'disabled':_0x4a1304,'onChange':_0xe82351=>{const _0x2bfe4d=_0x41e7eb;var _0x588233;_0x5820a4(Number(_0xe82351)),X(_0x47f0f4,_0x487559,_0x33fee5,_0x5ac702,{'oldShapeData':{'stroke':{'lineStrokeType':(_0x588233=_0x54e831[_0x2bfe4d(0x469)])==null?void 0x0:_0x588233['lineStrokeType']}}},{'stroke':{'lineStrokeType':Number(_0xe82351)}});},'direction':'vertical','children':[_0x3561af(_0x2cb326,{'value':String(_0x5a81be[_0x41e7eb(0x4ac)]),'children':_0x3561af(_0x41e7eb(0x1fb),{'className':'univer-text-sm','children':_0x3609de['t'](_0x41e7eb(0x43e))})}),_0x3561af(_0x2cb326,{'value':String(_0x5a81be[_0x41e7eb(0x341)]),'children':_0x3561af(_0x41e7eb(0x1fb),{'className':_0x41e7eb(0x535),'children':_0x3609de['t'](_0x41e7eb(0x425))})})]}),_0x14fdea!==_0x5a81be['NoLine']&&_0x42d0cd(_0x41e7eb(0x54e),{'className':_0x41e7eb(0x398),'children':[_0x42d0cd(_0x41e7eb(0x54e),{'className':_0x41e7eb(0x374),'children':[_0x3561af(_0x41e7eb(0x1fb),{'className':_0x41e7eb(0x3d3),'children':_0x3609de['t'](_0x41e7eb(0x57c))}),_0x3561af(_0x4a34c5,{'disabled':_0x4a1304,'overlay':_0x3561af(_0x41e7eb(0x54e),{'className':'univer-rounded-lg\x20univer-p-3','children':_0x3561af(_0x393fe1,{'value':_0x579781,'onChange':_0x3d76b5=>{const _0x1842b7=_0x41e7eb;var _0x59efcd;X(_0x47f0f4,_0x487559,_0x33fee5,_0x5ac702,{'oldShapeData':{'stroke':{'color':(_0x59efcd=_0x54e831['stroke'])==null?void 0x0:_0x59efcd[_0x1842b7(0x283)]}}},{'stroke':{'color':_0x3d76b5}}),_0x189668(_0x3d76b5),_0x1544f1(!0x1);}})}),'open':_0xfb60eb,'onOpenChange':_0x1544f1,'children':_0x42d0cd('a',{'className':'univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1.5\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-2\x20univer-py-1\x20univer-transition-colors\x20hover:univer-border-primary-600\x20hover:univer-bg-gray-100\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','children':[_0x3561af(_0x74344b,{'className':_0x41e7eb(0x289),'extend':{'colorChannel1':_0x579781}}),_0x3561af(_0x241a03,{'className':_0x3ea00c(_0x41e7eb(0x33c),{'univer-rotate-180':_0xfb60eb})})]})})]}),_0x42d0cd(_0x41e7eb(0x54e),{'className':_0x41e7eb(0x28c),'children':[_0x3561af(_0x41e7eb(0x1fb),{'className':_0x41e7eb(0x4af),'children':_0x3609de['t']('sheets-shape.line.transparency')}),_0x3561af(_0x41e7eb(0x54e),{'className':_0x41e7eb(0x28c),'children':_0x3561af(_0x41e7eb(0x54e),{'className':_0x41e7eb(0x571),'children':_0x3561af(_0x512089,{'className':_0x41e7eb(0x594),'value':_0x4dacbb,'disabled':_0x4a1304,'min':0x0,'max':0x64,'formatter':_0x5af4c3=>_0x5af4c3+'%','parser':_0x59d1b6=>(_0x59d1b6==null?void 0x0:_0x59d1b6[_0x41e7eb(0x1ab)]('%',''))||'','onChange':_0x554498=>{const _0x21d2fe=_0x41e7eb;var _0x3cea1e;let _0x445a8b=_0x554498==null?0x0:_0x554498,_0x50a33a=(0x64-Math[_0x21d2fe(0x363)](0x0,Math[_0x21d2fe(0x400)](0x64,_0x445a8b)))/0x64;_0x17fdea(_0x50a33a),X(_0x47f0f4,_0x487559,_0x33fee5,_0x5ac702,{'oldShapeData':{'stroke':{'opacity':(_0x3cea1e=_0x54e831[_0x21d2fe(0x469)])==null?void 0x0:_0x3cea1e[_0x21d2fe(0x181)]}}},{'stroke':{'opacity':_0x50a33a}}),_0x5eff8d['setContextValue'](_0x36af54,!0x1);},'onFocus':()=>_0x5eff8d['setContextValue'](_0x36af54,!0x0),'onBlur':_0x3d99a4=>{_0x5eff8d['setContextValue'](_0x36af54,!0x1);}})})})]}),_0x42d0cd(_0x41e7eb(0x54e),{'className':_0x41e7eb(0x28c),'children':[_0x3561af(_0x41e7eb(0x1fb),{'className':_0x41e7eb(0x3d3),'children':_0x3609de['t'](_0x41e7eb(0x2d9))}),_0x3561af('div',{'className':'univer-w-20','children':_0x3561af(_0x512089,{'className':_0x41e7eb(0x594),'disabled':_0x4a1304,'value':_0x99be6c,'min':0.25,'max':0x64,'step':0.25,'formatter':_0x480083=>_0x480083+_0x41e7eb(0x31a),'parser':_0x4616b4=>(_0x4616b4==null?void 0x0:_0x4616b4[_0x41e7eb(0x1ab)](_0x41e7eb(0x31a),''))||'','onChange':_0x228826=>{const _0x4f41f5=_0x41e7eb;if(!Number[_0x4f41f5(0x51c)](_0x228826)&&_0x228826!==null){var _0x37b50a;X(_0x47f0f4,_0x487559,_0x33fee5,_0x5ac702,{'oldShapeData':{'stroke':{'width':(_0x37b50a=_0x54e831[_0x4f41f5(0x469)])==null?void 0x0:_0x37b50a[_0x4f41f5(0x538)]}}},{'stroke':{'width':_0x228826}});}_0x5eff8d[_0x4f41f5(0x391)](_0x36af54,!0x1);},'onFocus':()=>_0x5eff8d[_0x41e7eb(0x391)](_0x36af54,!0x0),'onBlur':_0x54982d=>{const _0x516d78=_0x41e7eb;_0x5eff8d[_0x516d78(0x391)](_0x36af54,!0x1);}})})]}),_0x42d0cd(_0x41e7eb(0x54e),{'className':_0x41e7eb(0x374),'children':[_0x3561af(_0x41e7eb(0x1fb),{'className':_0x41e7eb(0x3d3),'children':_0x3609de['t'](_0x41e7eb(0x28a))}),_0x3561af(_0x41e7eb(0x54e),{'className':_0x41e7eb(0x386),'children':_0x3561af(_0x401d2a,{'className':'univer-w-full','value':String(_0x25cba4),'options':_0x53abfa,'disabled':_0x4a1304,'onChange':_0x4c77d9=>{const _0x4c3316=_0x41e7eb;var _0x4f84fb;_0x27ef3c(Number(_0x4c77d9)),X(_0x47f0f4,_0x487559,_0x33fee5,_0x5ac702,{'oldShapeData':{'stroke':{'dashType':(_0x4f84fb=_0x54e831[_0x4c3316(0x469)])==null?void 0x0:_0x4f84fb[_0x4c3316(0x10f)]}}},{'stroke':{'dashType':Number(_0x4c77d9)}});}})})]}),_0x42d0cd('div',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[_0x3561af(_0x41e7eb(0x1fb),{'className':_0x41e7eb(0x3d3),'children':_0x3609de['t'](_0x41e7eb(0x2ad))}),_0x3561af(_0x41e7eb(0x54e),{'className':'univer-w-28','children':_0x3561af(_0x401d2a,{'className':_0x41e7eb(0x594),'value':String(_0x524b70),'options':_0x3e650e,'disabled':_0x4a1304,'onChange':_0x58393b=>{const _0x4da30c=_0x41e7eb;var _0x2cbe1d;_0x3bb476(Number(_0x58393b)),X(_0x47f0f4,_0x487559,_0x33fee5,_0x5ac702,{'oldShapeData':{'stroke':{'capType':(_0x2cbe1d=_0x54e831[_0x4da30c(0x469)])==null?void 0x0:_0x2cbe1d['capType']}}},{'stroke':{'capType':Number(_0x58393b)}});}})})]}),_0x42d0cd(_0x41e7eb(0x54e),{'className':_0x41e7eb(0x374),'children':[_0x3561af(_0x41e7eb(0x1fb),{'className':_0x41e7eb(0x3d3),'children':_0x3609de['t']('sheets-shape.line.joinType.title')}),_0x3561af(_0x41e7eb(0x54e),{'className':_0x41e7eb(0x386),'children':_0x3561af(_0x401d2a,{'className':_0x41e7eb(0x594),'value':String(_0x3e6ef4),'options':_0x203566,'disabled':_0x4a1304,'onChange':_0x377188=>{const _0x1d4d08=_0x41e7eb;var _0x43d1a5;_0x5aa17b(Number(_0x377188)),X(_0x47f0f4,_0x487559,_0x33fee5,_0x5ac702,{'oldShapeData':{'stroke':{'lineJoinType':(_0x43d1a5=_0x54e831[_0x1d4d08(0x469)])==null?void 0x0:_0x43d1a5[_0x1d4d08(0x3c9)]}}},{'stroke':{'lineJoinType':Number(_0x377188)}});}})})]}),!_0x21b794&&_0x42d0cd(_0x41e7eb(0x54e),{'className':_0x41e7eb(0x374),'children':[_0x3561af(_0x41e7eb(0x1fb),{'className':_0x41e7eb(0x3d3),'children':_0x3609de['t'](_0x41e7eb(0x578))}),_0x3561af(_0x41e7eb(0x54e),{'className':'univer-w-28','children':_0x3561af(_0x401d2a,{'className':_0x41e7eb(0x594),'value':String(_0x4fb09e),'options':_0x5a14b4,'disabled':_0x4a1304,'onChange':_0x23ffd3=>{const _0x3dd4d6=_0x41e7eb;var _0x936f97;_0x3f6a27(Number(_0x23ffd3)),X(_0x47f0f4,_0x487559,_0x33fee5,_0x5ac702,{'oldShapeData':{'stroke':{'sketchType':(_0x936f97=_0x54e831[_0x3dd4d6(0x469)])==null?void 0x0:_0x936f97['sketchType']}}},{'stroke':{'sketchType':Number(_0x23ffd3)}});}})})]}),_0x21b794&&_0x42d0cd(_0x610b99,{'children':[_0x42d0cd('div',{'className':_0x41e7eb(0x374),'children':[_0x3561af(_0x41e7eb(0x1fb),{'className':_0x41e7eb(0x3d3),'children':_0x3609de['t']('sheets-shape.line.beginArrowType')}),_0x3561af(_0x41e7eb(0x54e),{'className':'univer-w-28','children':_0x3561af(_0x401d2a,{'className':_0x41e7eb(0x594),'value':String(_0x2c6079),'options':_0x55ddf6,'onChange':_0x140ea8=>{const _0x25862e=_0x41e7eb;var _0x45a5de;_0x4e48f2(Number(_0x140ea8)),$a(_0x47f0f4,_0x487559,_0x33fee5,_0x5ac702,{'oldShapeData':{'ln':{'startArrow':{'type':(_0x45a5de=_0x54e831['ln'])==null||(_0x45a5de=_0x45a5de['startArrow'])==null?void 0x0:_0x45a5de[_0x25862e(0x2a9)]}}}},{'ln':{'startArrow':{'type':Number(_0x140ea8)}}});}})})]}),_0x42d0cd(_0x41e7eb(0x54e),{'className':_0x41e7eb(0x374),'children':[_0x3561af(_0x41e7eb(0x1fb),{'className':_0x41e7eb(0x3d3),'children':_0x3609de['t'](_0x41e7eb(0x414))}),_0x3561af(_0x41e7eb(0x54e),{'className':_0x41e7eb(0x386),'children':_0x3561af(_0x401d2a,{'className':_0x41e7eb(0x594),'value':String(_0x23cd31),'options':_0x14719f,'onChange':_0x5e0174=>{const _0xf26b42=_0x41e7eb;var _0x1edc7e;_0x3ef23a(Number(_0x5e0174)),$a(_0x47f0f4,_0x487559,_0x33fee5,_0x5ac702,{'oldShapeData':{'ln':{'startArrow':{'size':(_0x1edc7e=_0x54e831['ln'])==null||(_0x1edc7e=_0x1edc7e[_0xf26b42(0x22c)])==null?void 0x0:_0x1edc7e[_0xf26b42(0x4da)]}}}},{'ln':{'startArrow':{'size':Number(_0x5e0174)}}});}})})]}),_0x42d0cd(_0x41e7eb(0x54e),{'className':_0x41e7eb(0x374),'children':[_0x3561af(_0x41e7eb(0x1fb),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3609de['t'](_0x41e7eb(0x372))}),_0x3561af(_0x41e7eb(0x54e),{'className':_0x41e7eb(0x386),'children':_0x3561af(_0x401d2a,{'className':_0x41e7eb(0x594),'value':String(_0x2a69c2),'options':_0x55ddf6,'onChange':_0x17f666=>{const _0x1fb481=_0x41e7eb;var _0x1cea85;_0x4990f4(Number(_0x17f666)),$a(_0x47f0f4,_0x487559,_0x33fee5,_0x5ac702,{'oldShapeData':{'ln':{'endArrow':{'type':(_0x1cea85=_0x54e831['ln'])==null||(_0x1cea85=_0x1cea85[_0x1fb481(0x16f)])==null?void 0x0:_0x1cea85[_0x1fb481(0x2a9)]}}}},{'ln':{'endArrow':{'type':Number(_0x17f666)}}});}})})]}),_0x42d0cd(_0x41e7eb(0x54e),{'className':_0x41e7eb(0x374),'children':[_0x3561af(_0x41e7eb(0x1fb),{'className':_0x41e7eb(0x3d3),'children':_0x3609de['t']('sheets-shape.line.endArrowSize')}),_0x3561af(_0x41e7eb(0x54e),{'className':_0x41e7eb(0x386),'children':_0x3561af(_0x401d2a,{'className':_0x41e7eb(0x594),'value':String(_0x29dde4),'options':_0x14719f,'onChange':_0x442242=>{const _0x28fdfe=_0x41e7eb;var _0x14f168;_0x4a78a1(Number(_0x442242)),$a(_0x47f0f4,_0x487559,_0x33fee5,_0x5ac702,{'oldShapeData':{'ln':{'endArrow':{'size':(_0x14f168=_0x54e831['ln'])==null||(_0x14f168=_0x14f168['endArrow'])==null?void 0x0:_0x14f168[_0x28fdfe(0x4da)]}}}},{'ln':{'endArrow':{'size':Number(_0x442242)}}});}})})]})]})]})]});}function lo(){const _0x413f07=_0x173eea;let _0x39bff9=_0x6447ef(_0x4313c8),[_0x593188,_0x24aca9]=_0x5cfa86(_0x39bff9['getFocusDrawings']());return _0x10cec7(()=>{const _0x37e513=_0x34f4;let _0x26877f=_0x39bff9['focus$'][_0x37e513(0x30e)](_0x552399=>{_0x24aca9(_0x552399);});return()=>{const _0x3761b1=_0x37e513;_0x26877f[_0x3761b1(0x2e8)]();};},[]),_0x593188[_0x413f07(0x49f)]===0x0?null:_0x3561af(_0x413f07(0x54e),{'children':_0x42d0cd(_0x413f07(0x54e),{'className':_0x413f07(0x307),'children':[_0x3561af(_0x4e1312,{'drawings':_0x593188,'hasCropper':!0x1}),_0x3561af(_0x2b2e5a,{'drawings':_0x593188})]})});}function uo(_0x535b3d){const _0x4d35c3=_0x173eea;let {shapeData:_0x1b014a,shapeId:_0x14d6c0,shapeType:_0x594cf2,version:_0x227550,unitId:_0xf25294,subUnitId:_0x3f4f59,disableShapeOption:_0x39db18}=_0x535b3d,_0x229743=_0x6447ef(_0x14ed3e),_0x2df3b2=_0x5b837b(_0x594cf2),[_0x5100b9,_0x4fa72d]=_0x5cfa86(0x0),_0x2f7895=[{'label':_0x3561af(_0x4d35c3(0x54e),{'children':_0x229743['t'](_0x4d35c3(0x483))}),'children':_0x3561af('section',{'className':_0x4d35c3(0x218),'children':_0x3561af(io,{'shapeId':_0x14d6c0,'shapeData':_0x1b014a,'isLineShape':_0x2df3b2,'subUnitId':_0x3f4f59,'unitId':_0xf25294,'disableShapeOption':_0x39db18},_0x14d6c0)})},{'label':_0x3561af(_0x4d35c3(0x54e),{'children':_0x229743['t'](_0x4d35c3(0x35e))}),'children':_0x3561af('section',{'className':_0x4d35c3(0x218),'children':_0x3561af(co,{'shapeId':_0x14d6c0,'shapeData':_0x1b014a,'isLineShape':_0x2df3b2,'subUnitId':_0x3f4f59,'unitId':_0xf25294,'disableShapeOption':_0x39db18},_0x14d6c0)})}];return _0x42d0cd(_0x4d35c3(0x54e),{'className':'univer-size-full','children':[_0x42d0cd(_0x4d35c3(0x54e),{'className':_0x4d35c3(0x208),'children':[_0x42d0cd('div',{'className':_0x3ea00c(_0x4d35c3(0x567),_0x5100b9===0x0?_0x4d35c3(0x127):_0x4d35c3(0x289)),'onClick':()=>_0x4fa72d(0x0),'children':[_0x229743['t'](_0x4d35c3(0x4d8)),_0x3561af(_0x4d35c3(0x54e),{'className':_0x3ea00c(_0x4d35c3(0x3ae),{'univer-bg-primary-600':_0x5100b9===0x0,'univer-bg-transparent':_0x5100b9!==0x0})})]}),_0x42d0cd(_0x4d35c3(0x54e),{'className':_0x3ea00c(_0x4d35c3(0x567),{'univer-text-primary-600':_0x5100b9===0x1,'univer-text-gray-500':_0x5100b9!==0x1}),'onClick':()=>_0x4fa72d(0x1),'children':[_0x229743['t']('sheets-shape.shapePosition'),_0x3561af(_0x4d35c3(0x54e),{'className':_0x3ea00c(_0x4d35c3(0x210),{'univer-bg-primary-600':_0x5100b9===0x1,'univer-bg-transparent':_0x5100b9!==0x1})})]})]}),_0x3561af('div',{'className':'univer-flex-1\x20univer-overflow-auto','children':_0x5100b9===0x0?_0x3561af('div',{'className':'','children':_0x3561af(_0x58d041,{'items':_0x2f7895})},_0x227550):_0x3561af(lo,{})})]});}var fo=class extends _0x268782{constructor(_0x2baef0,_0x1ab5cb){const _0x293ab9=_0x173eea;super(_0x2baef0,_0x1ab5cb),J(this,_0x293ab9(0x41d),null),J(this,_0x293ab9(0x203),null),J(this,'_unitId',null),J(this,_0x293ab9(0x27f),null),_0x1ab5cb&&this['setShapeProps'](_0x1ab5cb);}[_0x173eea(0x104)](){const _0x39e343=_0x173eea;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x39e343(0x41d)]};}[_0x173eea(0x4bb)](_0x2001e4){const _0x4c9e2e=_0x173eea;_0x2001e4[_0x4c9e2e(0x118)]!==void 0x0&&(this[_0x4c9e2e(0x41d)]=_0x2001e4[_0x4c9e2e(0x118)]),_0x2001e4[_0x4c9e2e(0x2ab)]!==void 0x0&&(this['_adjName']=_0x2001e4[_0x4c9e2e(0x2ab)]),_0x2001e4[_0x4c9e2e(0x1cb)]!==void 0x0&&(this[_0x4c9e2e(0x320)]=_0x2001e4[_0x4c9e2e(0x1cb)]),_0x2001e4[_0x4c9e2e(0x12a)]!==void 0x0&&(this[_0x4c9e2e(0x27f)]=_0x2001e4['subUnitId']),this[_0x4c9e2e(0x34e)]({'width':_0x2001e4['width'],'height':_0x2001e4[_0x4c9e2e(0x3d1)]});}['_draw'](_0x50a9c6){const _0x14ce03=_0x173eea;_0x557a14[_0x14ce03(0x4b7)](_0x50a9c6,{'radius':_0x38fd6a['adjHandleSize'],'fill':_0x38fd6a[_0x14ce03(0x1b0)],'stroke':_0x38fd6a['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};let po=class extends _0x399c04{constructor(_0x2ecf14,_0x2a15e0,_0x20aa4a,_0x44d0ea,_0x11f8e3,_0x2aa7b7,_0xca9f0b,_0x2a8e25){const _0x4f80c3=_0x173eea;super(),this['_context']=_0x2ecf14,this[_0x4f80c3(0x251)]=_0x2a15e0,this[_0x4f80c3(0x494)]=_0x20aa4a,this[_0x4f80c3(0x16e)]=_0x44d0ea,this['_renderManagerService']=_0x11f8e3,this[_0x4f80c3(0x146)]=_0x2aa7b7,this[_0x4f80c3(0x4a9)]=_0xca9f0b,this[_0x4f80c3(0x21f)]=_0x2a8e25,J(this,'_activeShapeId',null),J(this,'_unitId',null),J(this,'_subUnitId',null),J(this,'_activeShapeAdjustPointList',void 0x0),J(this,_0x4f80c3(0x43a),[]),J(this,_0x4f80c3(0x4b0),0x0),J(this,_0x4f80c3(0x3da),0x0),J(this,_0x4f80c3(0x351),0x0),J(this,_0x4f80c3(0x167),0x0),J(this,'_isStartAdjusting',!0x1),J(this,_0x4f80c3(0x102),void 0x0),J(this,_0x4f80c3(0x162),void 0x0),J(this,'_adjHandlerPointerMove',void 0x0),J(this,_0x4f80c3(0x496),void 0x0),J(this,_0x4f80c3(0x151),!0x1),this['_registerDrawingFocusChangeHandler'](),this[_0x4f80c3(0x1eb)]();}['_getShapeAdjustPointListById'](_0x3bc343,_0x308194,_0x5f1559){const _0x4ccd19=_0x173eea;let _0x1eecc6=this[_0x4ccd19(0x16e)]['getShapeModel'](_0x3bc343,_0x308194,_0x5f1559);if(_0x1eecc6)return _0x1eecc6[_0x4ccd19(0x32b)]();}[_0x173eea(0x1f3)](){const _0x37d9d5=_0x173eea;this[_0x37d9d5(0x397)]();}[_0x173eea(0x4cf)](){const _0x297f9a=_0x173eea;this[_0x297f9a(0x2f7)](!0x0);}[_0x173eea(0x46c)](_0x988d58){const _0x1ec0e2=_0x173eea;this[_0x1ec0e2(0x151)]=_0x988d58;}['_getShapeAdjustInfosById'](_0x645850,_0x120ff5,_0x41ab64,_0x494d74){const _0x186cd3=_0x173eea;let _0x4e2aae=this['_sheetsShapeService'][_0x186cd3(0xf3)](_0x645850,_0x120ff5,_0x41ab64);if(_0x4e2aae)return _0x4e2aae['getAdjustInfoByName'](_0x494d74);}[_0x173eea(0x368)](_0x3a4828=!0x1){const _0x202267=_0x173eea;if(this[_0x202267(0x320)]===null||this['_subUnitId']===null||this[_0x202267(0x4e5)]===null)return;let _0x77d8d2=this[_0x202267(0x292)][_0x202267(0xf8)](this[_0x202267(0x320)]);if(!_0x77d8d2||!_0x77d8d2[_0x202267(0x395)](_0x15a10d)[_0x202267(0x32e)]())return;let {scene:_0x3d8f3c}=_0x77d8d2,_0x1451ee={'unitId':this['_unitId'],'subUnitId':this[_0x202267(0x27f)],'drawingId':this[_0x202267(0x4e5)]},_0x2ba336=this[_0x202267(0x494)]['getDrawingByParam'](_0x1451ee),{transform:_0x408030}=_0x2ba336;if(!_0x408030||_0x2ba336['drawingType']!==_0x217b4d['DRAWING_SHAPE'])return;let {left:_0x4e9de5,top:_0x1563a6,width:_0x296924,height:_0x12a3fb,flipX:_0x5b815d,flipY:_0x2f6c47,angle:_0x211e24=0x0}=_0x408030;if(_0x4e9de5===void 0x0||_0x1563a6===void 0x0)return;_0x3a4828&&(this[_0x202267(0x2bf)]=this[_0x202267(0x2ac)](this[_0x202267(0x320)],this[_0x202267(0x27f)],this[_0x202267(0x4e5)]));let _0x57583c=this[_0x202267(0x2bf)];for(let _0x5de1c9=0x0;_0x5de1c9<_0x57583c[_0x202267(0x49f)];_0x5de1c9++){let _0x1e2eb3=_0x57583c[_0x5de1c9],_0x4519ac=_0x1e2eb3['x'],_0x17fa69=_0x1e2eb3['y'];if(_0x5b815d&&(_0x4519ac=(_0x296924||0x0)-_0x4519ac),_0x2f6c47&&(_0x17fa69=(_0x12a3fb||0x0)-_0x17fa69),_0x211e24!==0x0){let _0x54bfa2=(_0x296924||0x0)/0x2,_0x2d3abd=(_0x12a3fb||0x0)/0x2,_0x290ce9=_0x211e24*Math['PI']/0xb4,_0x5bb93c=Math[_0x202267(0x560)](_0x290ce9),_0xf77e17=Math[_0x202267(0x269)](_0x290ce9),_0x5908b2=_0x4519ac-_0x54bfa2,_0x251f28=_0x17fa69-_0x2d3abd;_0x4519ac=_0x54bfa2+(_0x5908b2*_0x5bb93c-_0x251f28*_0xf77e17),_0x17fa69=_0x2d3abd+(_0x5908b2*_0xf77e17+_0x251f28*_0x5bb93c);}let _0x4897a8={'x':_0x4519ac,'y':_0x17fa69,'adjName':_0x1e2eb3[_0x202267(0x2ab)]};this[_0x202267(0x335)](_0x3d8f3c,_0x4897a8,_0x4897a8[_0x202267(0x2ab)],_0x4e9de5,_0x1563a6,this[_0x202267(0x320)],this[_0x202267(0x27f)]);}}[_0x173eea(0x2f7)](_0x132794=!0x1){_0x132794&&(this['_clearShapeAdjustControls'](),this['_createShapeAdjustControls'](_0x132794));}[_0x173eea(0x335)](_0x2aedb7,_0xd39545,_0x584b45,_0x7d945f,_0xc81589,_0xa053dd,_0x399248){const _0x5e52d3=_0x173eea;if(!this['_activeShapeId'])return;let _0x24df05=_0x2aedb7[_0x5e52d3(0x1e1)](_0x5e52d3(0x50c)+this[_0x5e52d3(0x4e5)]+'-'+_0x584b45);if(_0x24df05){_0x24df05[_0x5e52d3(0x34e)]({'left':_0xd39545['x']+_0x7d945f-_0x38fd6a[_0x5e52d3(0x1f6)],'top':_0xd39545['y']+_0xc81589-_0x38fd6a[_0x5e52d3(0x1f6)]});return;}let _0x3636c7={'left':_0xd39545['x']+_0x7d945f-_0x38fd6a['adjHandleSize'],'top':_0xd39545['y']+_0xc81589-_0x38fd6a[_0x5e52d3(0x1f6)],'adjName':_0x584b45,'shapeId':this[_0x5e52d3(0x4e5)],'unitId':_0xa053dd,'subUnitId':_0x399248,'width':_0x38fd6a[_0x5e52d3(0x1f6)]+0x8,'height':_0x38fd6a[_0x5e52d3(0x1f6)]+0x8,'zIndex':_0x2b5d9f+0x1,'evented':!0x0},_0x2f8929=new fo(_0x5e52d3(0x50c)+this[_0x5e52d3(0x4e5)]+'-'+_0x584b45,_0x3636c7);this[_0x5e52d3(0x43a)][_0x5e52d3(0x4bd)](_0x2f8929),this[_0x5e52d3(0x345)](_0x2f8929,_0x2aedb7,_0x584b45),_0x2aedb7[_0x5e52d3(0x36e)](_0x2f8929,_0x2b5d9f+0x1);}['_clearShapeAdjustControls'](){const _0x61558e=_0x173eea;this[_0x61558e(0x43a)][_0x61558e(0x49f)]!==0x0&&(this[_0x61558e(0x43a)][_0x61558e(0x318)](_0x5d4e48=>{const _0x4b034c=_0x61558e;_0x5d4e48[_0x4b034c(0x50d)]();}),this[_0x61558e(0x43a)]=[]);}[_0x173eea(0x233)](){this['_createShapeAdjustControls']();}['_getScrollInfo'](_0x28d347,_0x37577f){const _0x4b5898=_0x173eea;var _0x1f40e7;let _0x183d0f={'x':0x0,'y':0x0};if(!_0x28d347||!_0x37577f)return _0x183d0f;let _0x3c5227=this[_0x4b5898(0x292)][_0x4b5898(0xf8)](_0x28d347);if(!_0x3c5227||!_0x3c5227[_0x4b5898(0x395)](_0x15a10d)[_0x4b5898(0x423)](_0x37577f))return _0x183d0f;let _0x577764=_0x3c5227[_0x4b5898(0x395)](_0x558719),_0x19de19=_0x577764==null?void 0x0:_0x577764[_0x4b5898(0x321)]();if(!_0x19de19)return _0x183d0f;let _0x1c91ba=(_0x1f40e7=this[_0x4b5898(0x4a9)][_0x4b5898(0x1b6)](_0x28d347))==null?void 0x0:_0x1f40e7[_0x4b5898(0x221)](_0x37577f);if(!_0x1c91ba)return _0x183d0f;let _0x3f9d6c=_0x37db43(_0x19de19['sheetViewStartRow'],_0x19de19[_0x4b5898(0x30c)],_0x3c5227[_0x4b5898(0x443)],_0x1c91ba);return _0x3f9d6c?{'x':_0x3f9d6c[_0x4b5898(0x18d)],'y':_0x3f9d6c[_0x4b5898(0x2c8)]}:_0x183d0f;}[_0x173eea(0x25d)](_0x3edf81,_0x5bc0f4){const _0x2a81e0=_0x173eea;var _0x412488,_0xdeda87;let _0x5d5a6c=(_0x412488=this[_0x2a81e0(0x4a9)][_0x2a81e0(0x1b6)](_0x3edf81))==null?void 0x0:_0x412488['getSheetBySheetId'](_0x5bc0f4);return(_0xdeda87=_0x5d5a6c==null?void 0x0:_0x5d5a6c[_0x2a81e0(0x37c)]())==null?0x1:_0xdeda87;}[_0x173eea(0x345)](_0xa8017a,_0x576b5b,_0x1a73be){const _0xbe41dc=_0x173eea;this[_0xbe41dc(0x48b)](_0x4d0bea(_0xa8017a[_0xbe41dc(0x39a)][_0xbe41dc(0x410)]((_0x526f2c,_0xa5fa7e)=>{const _0x1687e2=_0xbe41dc;var _0x54abc1,_0x5a909d,_0x3cf655,_0x5c8c8f;let _0x3f7795=_0xa8017a[_0x1687e2(0x104)]();this[_0x1687e2(0x102)]=this['_getShapeAdjustInfosById'](_0x3f7795[_0x1687e2(0x1cb)],_0x3f7795['subUnitId'],_0x3f7795[_0x1687e2(0x12c)],_0x1a73be),this[_0x1687e2(0x162)]=this[_0x1687e2(0x16e)][_0x1687e2(0xf3)](_0x3f7795[_0x1687e2(0x1cb)],_0x3f7795[_0x1687e2(0x12a)],_0x3f7795[_0x1687e2(0x12c)]);let _0x387fce=this[_0x1687e2(0x494)]['getDrawingByParam']({'unitId':this[_0x1687e2(0x320)],'subUnitId':this[_0x1687e2(0x27f)],'drawingId':this[_0x1687e2(0x4e5)]}),{transform:_0x59786c}=_0x387fce;if(_0x59786c){let {left:_0x3cebdb,top:_0x312682,width:_0x412fde,height:_0x10c2b8}=_0x59786c;this[_0x1687e2(0x4b0)]=_0x3cebdb||0x0,this[_0x1687e2(0x3da)]=_0x312682||0x0,this[_0x1687e2(0x351)]=_0x412fde||0x0,this['_baseShapeHeight']=_0x10c2b8||0x0;}let _0xecaa47=!!((_0x54abc1=_0x387fce[_0x1687e2(0x18f)])!=null&&_0x54abc1[_0x1687e2(0x2c2)]),_0x4b9463=!!((_0x5a909d=_0x387fce[_0x1687e2(0x18f)])!=null&&_0x5a909d[_0x1687e2(0x3fb)]),_0x338a15=((_0x3cf655=_0x387fce[_0x1687e2(0x18f)])==null?void 0x0:_0x3cf655[_0x1687e2(0x13d)])||0x0;this['_isStartAdjusting']=!0x0,_0x576b5b[_0x1687e2(0xfa)]();let _0x3d47f0=(_0x5c8c8f=this[_0x1687e2(0x162)])==null?void 0x0:_0x5c8c8f['getAdjustValueByName'](_0x1a73be),_0x55fa64={[_0x1a73be]:_0x3d47f0};this[_0x1687e2(0x57e)]=_0x576b5b[_0x1687e2(0x48c)]['subscribeEvent']((_0x207c7a,_0x1c4c2b)=>{const _0x4a8ad0=_0x1687e2;if(!this[_0x4a8ad0(0x143)])return;let {offsetX:_0x529b00,offsetY:_0x26eae4}=_0x207c7a,_0x182a50=this[_0x4a8ad0(0x102)];if(this['_activeShapeModel']&&_0x182a50){_0x576b5b[_0x4a8ad0(0xfa)](),_0x576b5b[_0x4a8ad0(0x2f3)](_0x3e7be3[_0x4a8ad0(0x454)]);let _0x5bce89={'left':0x0,'top':0x0,'width':this[_0x4a8ad0(0x351)],'height':this[_0x4a8ad0(0x167)]},_0x1b5a01=this['_getScrollInfo'](this['_unitId'],this['_subUnitId']),_0x5a390f=this['_getZoomRatio'](this[_0x4a8ad0(0x320)],this['_subUnitId']),_0x3daa36=_0x529b00/_0x5a390f+_0x1b5a01['x']-this[_0x4a8ad0(0x4b0)],_0x1bd1d0=_0x26eae4/_0x5a390f+_0x1b5a01['y']-this[_0x4a8ad0(0x3da)];if(_0x338a15!==0x0){let _0x36b262=this[_0x4a8ad0(0x351)]/0x2,_0x3431de=this[_0x4a8ad0(0x167)]/0x2,_0x168c8f=_0x338a15*Math['PI']/0xb4,_0x20fcd6=Math[_0x4a8ad0(0x560)](_0x168c8f),_0x383374=Math[_0x4a8ad0(0x269)](_0x168c8f),_0x341e27=_0x3daa36-_0x36b262,_0x3e68e8=_0x1bd1d0-_0x3431de;_0x3daa36=_0x36b262+(_0x341e27*_0x20fcd6+_0x3e68e8*_0x383374),_0x1bd1d0=_0x3431de+(-_0x341e27*_0x383374+_0x3e68e8*_0x20fcd6);}_0xecaa47&&(_0x3daa36=this['_baseShapeWidth']-_0x3daa36),_0x4b9463&&(_0x1bd1d0=this[_0x4a8ad0(0x167)]-_0x1bd1d0);let _0x27f965={'x':_0x3daa36,'y':_0x1bd1d0},_0x4e0457=this[_0x4a8ad0(0x162)][_0x4a8ad0(0x54f)](_0x5bce89,_0x27f965,_0x182a50,_0xecaa47,_0x4b9463),_0x14faa3=_0x182a50[_0x4a8ad0(0x46d)]||_0x182a50[_0x4a8ad0(0x525)]||_0x182a50['gdRefAng']||_0x182a50[_0x4a8ad0(0x249)];if(_0x14faa3===void 0x0)return;this[_0x4a8ad0(0x162)][_0x4a8ad0(0x256)](_0x14faa3,_0x4e0457);let _0x427c66=this[_0x4a8ad0(0x494)]['getDrawingByParam']({'unitId':_0x3f7795[_0x4a8ad0(0x1cb)],'subUnitId':_0x3f7795[_0x4a8ad0(0x12a)],'drawingId':_0x3f7795['drawingId']});_0x427c66&&(this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x427c66,_0x576b5b),this[_0x4a8ad0(0x2bf)]=this[_0x4a8ad0(0x2ac)](_0x3f7795['unitId'],_0x3f7795[_0x4a8ad0(0x12a)],_0x3f7795['drawingId']),this[_0x4a8ad0(0x233)]());}_0x1c4c2b[_0x4a8ad0(0x1bf)]();}),this[_0x1687e2(0x496)]=_0x576b5b[_0x1687e2(0x457)][_0x1687e2(0x410)]((_0x5e46c8,_0x14b32b)=>{const _0x1357a8=_0x1687e2;this[_0x1357a8(0x57e)]['unsubscribe'](),this['_adjHandlerPointerUp']['unsubscribe'](),_0x576b5b['resetCursor']();let _0x2ccb11=this[_0x1357a8(0x102)];if(_0x2ccb11){let _0xc42bfe=_0x3f7795[_0x1357a8(0x1cb)],_0x55298c=_0x3f7795[_0x1357a8(0x12a)],_0x27d53=_0x3f7795[_0x1357a8(0x12c)],_0x199ce3=_0x2ccb11[_0x1357a8(0x46d)]||_0x2ccb11['gdRefY']||_0x2ccb11[_0x1357a8(0x3b6)]||_0x2ccb11[_0x1357a8(0x249)];if(_0x199ce3!==void 0x0){var _0xbee673;let _0x598a75=(_0xbee673=this['_activeShapeModel'])==null?void 0x0:_0xbee673['getAdjustValueByName'](_0x199ce3);_0x598a75!==void 0x0&&X(this[_0x1357a8(0x21f)],_0xc42bfe,_0x55298c,_0x27d53,{'oldShapeData':{'adjustValues':_0x55fa64}},{'adjustValues':{[_0x199ce3]:_0x598a75}});}}this[_0x1357a8(0x102)]=void 0x0,this[_0x1357a8(0x162)]=void 0x0,this[_0x1357a8(0x143)]=!0x1,_0x14b32b[_0x1357a8(0x1bf)](),_0x576b5b['enableObjectsEvent']();}),_0xa5fa7e['stopPropagation']();})));}[_0x173eea(0x1eb)](){const _0x2506f1=_0x173eea;let _0x225688=this[_0x2506f1(0x4a9)][_0x2506f1(0x11c)](_0x59e014[_0x2506f1(0x46e)]);this[_0x2506f1(0x48b)](_0x225688[_0x2506f1(0x38b)](_0x15b88d(_0x4620e4=>_0x4620e4?_0x4620e4['activeSheet$']['pipe'](_0x15b88d(_0x290a01=>{const _0x48d646=_0x2506f1;if(!_0x290a01)return _0x263aaa;let _0x3960bd=_0x4620e4['getUnitId'](),_0x5ee51a=this[_0x48d646(0x292)]['getRenderById'](_0x3960bd),_0x449a5e=_0x5ee51a==null?void 0x0:_0x5ee51a[_0x48d646(0x443)];return _0x449a5e?_0x5ef336(_0x449a5e):_0x263aaa;})):_0x263aaa))['subscribe'](_0x3d80f8=>{const _0xb44575=_0x2506f1;let _0x20865c=_0x3d80f8[_0xb44575(0x512)]();this[_0xb44575(0x48b)](_0x3d80f8[_0xb44575(0x48c)]['subscribeEvent'](()=>{const _0x5e7a1d=_0xb44575;this[_0x5e7a1d(0x151)];})),this[_0xb44575(0x48b)](_0x20865c[_0xb44575(0x45a)]['subscribe'](_0x31566a=>{const _0x4edca0=_0xb44575;let {objects:_0x55b92d}=_0x31566a;this[_0x4edca0(0x368)](),_0x55b92d!==null&&_0x55b92d[_0x4edca0(0x4da)]===0x1&&_0x55b92d[_0x4edca0(0x4f4)]()[_0x4edca0(0x474)]()['value']instanceof eo&&this['setShouldShowAdjust'](!0x0);})),this[_0xb44575(0x48b)](_0x20865c[_0xb44575(0x580)][_0xb44575(0x30e)](()=>{const _0x1b84b5=_0xb44575;this[_0x1b84b5(0x151)]&&this[_0x1b84b5(0x397)]();})),this[_0xb44575(0x48b)](_0x3d80f8[_0xb44575(0x457)]['subscribeEvent'](()=>{const _0x2b5605=_0xb44575;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x2b5605(0x46c)](!0x1),this[_0x2b5605(0x368)]());})),this[_0xb44575(0x48b)](_0x20865c['changeEnd$'][_0xb44575(0x30e)](()=>{const _0x11a3c8=_0xb44575;this[_0x11a3c8(0x320)]&&this[_0x11a3c8(0x27f)]&&this['_activeShapeId']&&this[_0x11a3c8(0x494)][_0x11a3c8(0x19a)]({'unitId':this[_0x11a3c8(0x320)],'subUnitId':this[_0x11a3c8(0x27f)],'drawingId':this[_0x11a3c8(0x4e5)]})&&(this[_0x11a3c8(0x2bf)]=this['_getShapeAdjustPointListById'](this[_0x11a3c8(0x320)],this[_0x11a3c8(0x27f)],this[_0x11a3c8(0x4e5)]),this[_0x11a3c8(0x233)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x2b0365=_0x173eea;this[_0x2b0365(0x48b)](this['_drawingManagerService'][_0x2b0365(0x4f1)][_0x2b0365(0x30e)](_0x3f9c02=>{const _0x33b0aa=_0x2b0365;if(_0x3f9c02['length']===0x1){let _0xef49bd=_0x3f9c02[0x0];if(_0xef49bd[_0x33b0aa(0x319)]===_0x217b4d['DRAWING_SHAPE']){this[_0x33b0aa(0x4e5)]=_0xef49bd['drawingId'];let {unitId:_0x2be8af,subUnitId:_0x2aac2d}=_0xef49bd;this[_0x33b0aa(0x2bf)]=this[_0x33b0aa(0x2ac)](_0x2be8af,_0x2aac2d,this[_0x33b0aa(0x4e5)]),this[_0x33b0aa(0x320)]=_0x2be8af,this['_subUnitId']=_0x2aac2d,this['_clearShapeAdjustControls'](),this[_0x33b0aa(0x368)]();}else this['_activeShapeId']=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x33b0aa(0x320)]=null,this['_subUnitId']=null,this[_0x33b0aa(0x397)]();}(_0x3f9c02['length']>0x1||_0x3f9c02[_0x33b0aa(0x49f)]===0x0)&&(this[_0x33b0aa(0x4e5)]=null,this[_0x33b0aa(0x2bf)]=void 0x0,this[_0x33b0aa(0x320)]=null,this['_subUnitId']=null,this[_0x33b0aa(0x397)]());})),this[_0x2b0365(0x48b)](this[_0x2b0365(0x494)][_0x2b0365(0x207)][_0x2b0365(0x30e)](_0x3620ff=>{const _0x106994=_0x2b0365;if(_0x3620ff[_0x106994(0x49f)]===0x1){var _0x5e0179;let _0x3cccc3=_0x3620ff[0x0];((_0x5e0179=this[_0x106994(0x494)][_0x106994(0x19a)](_0x3cccc3))==null?void 0x0:_0x5e0179[_0x106994(0x319)])===_0x217b4d[_0x106994(0xf5)]&&this[_0x106994(0x2f7)](!0x0);}})),this[_0x2b0365(0x48b)](this[_0x2b0365(0x494)][_0x2b0365(0x542)]['subscribe'](_0x1de488=>{const _0x59efc6=_0x2b0365;for(let _0x398ba1 of _0x1de488)this[_0x59efc6(0x4e5)]===_0x398ba1[_0x59efc6(0x12c)]&&(this[_0x59efc6(0x4e5)]=null,this[_0x59efc6(0x2bf)]=void 0x0,this[_0x59efc6(0x320)]=null,this[_0x59efc6(0x27f)]=null,this[_0x59efc6(0x397)]());}));}};po=Q([Z(0x1,_0x41728c),Z(0x2,_0x4313c8),Z(0x3,_0x18290d(_0x511e68)),Z(0x4,_0x18290d(_0x5f4e41)),Z(0x5,_0x18290d(to)),Z(0x6,_0x2d0725),Z(0x7,_0x584851)],po);const mo={'id':_0x173eea(0x359),'type':_0xd3f43e[_0x173eea(0x413)],'handler':(_0x2f788e,_0x297b03)=>{const _0x13046c=_0x173eea;let _0x412bbe=_0x2f788e[_0x13046c(0x471)](_0x4313c8),_0x438f30=_0x2f788e[_0x13046c(0x471)](_0x5f4e41),_0x36421b=_0x2f788e['get'](po);if(_0x297b03==null)return!0x0;if(_0x297b03[_0x13046c(0x49f)]>0x0){var _0x2e32ec;let _0x1da488=(_0x2e32ec=_0x438f30['getRenderById'](_0x297b03[0x0][_0x13046c(0x1cb)]))==null?void 0x0:_0x2e32ec['scene'];if(_0x1da488){let {unitId:_0x10e8a6,subUnitId:_0x5e3cfe,drawingId:_0x26574a}=_0x297b03[0x0],_0x13c034=_0x4b2a63({'unitId':_0x10e8a6,'subUnitId':_0x5e3cfe,'drawingId':_0x26574a},void 0x0),_0x4e732c=_0x1da488[_0x13046c(0x1e1)](_0x13c034);if(_0x4e732c){var _0x485a25;(_0x485a25=_0x438f30[_0x13046c(0xf8)](_0x297b03[0x0]['unitId']))==null||(_0x485a25=_0x485a25['scene'][_0x13046c(0x2c3)]())==null||_0x485a25[_0x13046c(0x1c6)](_0x4e732c);}}_0x412bbe[_0x13046c(0x257)](_0x297b03),_0x36421b[_0x13046c(0x46c)](!0x1);}return!0x0;}},ho={'type':_0xd3f43e[_0x173eea(0x3bb)],'id':_0x173eea(0x26f),'handler':async(_0x4ac54c,_0x51cefd)=>{const _0x440dd9=_0x173eea;let _0x3f0de8=_0x468c6f(_0x4ac54c[_0x440dd9(0x471)](_0x2d0725));if(!_0x3f0de8)return!0x1;let _0x5f2cc5=_0x4ac54c['get'](_0x7d4485)[_0x440dd9(0x21b)]();if(!_0x5f2cc5)return!0x1;let _0xaa473b=_0x4ac54c[_0x440dd9(0x471)](_0x584851),{unitId:_0x4b2714,subUnitId:_0x2a0d8c}=_0x3f0de8,{value:_0x507235,enhanceParams:_0x2f3ba5}=_0x51cefd,{range:_0x48abfd}=_0x5f2cc5,_0x4cf2bc={'unitId':_0x4b2714,'subUnitId':_0x2a0d8c,'shapeType':_0x507235,'range':_0x48abfd,'shapeId':_0x1f3381()};if(_0x2f3ba5){let _0x48b296=_0x5b837b(_0x507235),_0x41d84e=_0x507235===_0x1e291f['Rect'];_0x48b296&&(_0x2f3ba5[_0x440dd9(0x22c)]||_0x2f3ba5[_0x440dd9(0x16f)])&&(_0x4cf2bc[_0x440dd9(0x422)]={'ln':{'startArrow':_0x2f3ba5[_0x440dd9(0x22c)]?{'type':_0x3c24c6[_0x440dd9(0x11d)],'size':_0x2fdd4c[_0x440dd9(0x276)]}:void 0x0,'endArrow':_0x2f3ba5[_0x440dd9(0x16f)]?{'type':_0x3c24c6['Arrow'],'size':_0x2fdd4c[_0x440dd9(0x31d)]}:void 0x0}}),_0x41d84e&&(_0x2f3ba5[_0x440dd9(0x4ef)]||_0x2f3ba5[_0x440dd9(0x1c0)])&&(_0x4cf2bc['shapeData']={'fill':{'fillType':_0x547816[_0x440dd9(0x1d0)]},'stroke':{'lineStrokeType':_0x5a81be[_0x440dd9(0x4ac)]},'shapeText':{'isHorizontal':!!_0x2f3ba5[_0x440dd9(0x4ef)]}});}let _0x2e3103=_0xaa473b[_0x440dd9(0x540)](_0x4a5a00['id'],_0x4cf2bc);return setTimeout(()=>{const _0x334d40=_0x440dd9;_0xaa473b[_0x334d40(0x4ff)](mo['id'],[{'unitId':_0x4b2714,'subUnitId':_0x2a0d8c,'drawingId':_0x4cf2bc[_0x334d40(0x118)]}]);},0xc8),_0x2e3103;}};let go=class extends _0x399c04{constructor(_0xa9cb5e,_0x261e87){const _0x2bcc71=_0x173eea;super(),this[_0x2bcc71(0x153)]=_0xa9cb5e,this[_0x2bcc71(0x494)]=_0x261e87,this[_0x2bcc71(0x1f1)](),this[_0x2bcc71(0x153)][_0x2bcc71(0x1b5)](!0x0),this[_0x2bcc71(0x48b)]({'dispose':()=>this[_0x2bcc71(0x153)][_0x2bcc71(0x1b5)](!0x1)});}[_0x173eea(0x1f1)](){const _0x279244=_0x173eea;let _0x47d5a1=this[_0x279244(0x153)],_0x52b565=new Map(),_0x1afeaa=_0x47d5a1[_0x279244(0x446)]((_0x5531f3,_0x5e45a5,_0x123194,_0x4590ef,_0x33afea)=>{const _0x1324ae=_0x279244;let _0x55a6ec=_0x5e45a5;if(_0x55a6ec===_0x1e291f['None']||_0x5e45a5===_0x1324ae(0x4be))return!0x1;try{let _0x89d9ce=_0x52b565[_0x1324ae(0x471)](_0x5e45a5);return _0x89d9ce||(_0x89d9ce=new _0x3e80af(_0x55a6ec,'clip-'+_0x5e45a5),_0x52b565[_0x1324ae(0x1a5)](_0x5e45a5,_0x89d9ce)),_0x33afea&&_0x89d9ce['setShapeData']({'adjustValues':_0x33afea},!0x0),_0x89d9ce[_0x1324ae(0x1c8)]({'width':_0x123194,'height':_0x4590ef}),_0x89d9ce[_0x1324ae(0x1fc)](_0x5531f3,{'left':0x0,'top':0x0,'width':_0x123194,'height':_0x4590ef});}catch{return!0x1;}});this[_0x279244(0x48b)](_0x1afeaa),this[_0x279244(0x48b)]({'dispose':()=>_0x52b565[_0x279244(0x2d8)]()});}[_0x173eea(0x4b1)](_0x4e0c20,_0x411c8e,_0x61e7ee,_0x422255,_0x855a87){const _0x5ce253=_0x173eea;let _0x53e250=this[_0x5ce253(0x494)][_0x5ce253(0x265)](_0x4e0c20,_0x411c8e);if(!_0x53e250[_0x61e7ee])return;let _0x65adb7={..._0x53e250[_0x61e7ee],'prstGeom':_0x422255,'adjustValues':_0x855a87};this['_drawingManagerService'][_0x5ce253(0x4e4)]([_0x65adb7]);}};go=Q([Z(0x0,_0x18290d(_0x5db607)),Z(0x1,_0x18290d(_0x4313c8))],go);let $=function(_0x1c5e72){const _0x451712=_0x173eea;return _0x1c5e72[_0x451712(0x327)]='line',_0x1c5e72[_0x451712(0x3b3)]=_0x451712(0x2df),_0x1c5e72[_0x451712(0x3c3)]=_0x451712(0x41f),_0x1c5e72[_0x451712(0x2a5)]=_0x451712(0x54d),_0x1c5e72[_0x451712(0xef)]=_0x451712(0x3f5),_0x1c5e72[_0x451712(0x18e)]=_0x451712(0x364),_0x1c5e72[_0x451712(0x415)]='starAndBanner',_0x1c5e72[_0x451712(0x509)]='callout',_0x1c5e72['Other']=_0x451712(0x220),_0x1c5e72;}({});const _o=[{'group':$[_0x173eea(0x327)],'type':_0x1e291f['Line'],'icon':'ShapeLineIcon','name':_0x173eea(0x119)},{'group':$[_0x173eea(0x327)],'type':_0x1e291f[_0x173eea(0x2f6)],'icon':_0x173eea(0x4dc),'name':_0x173eea(0x243),'endArrow':!0x0},{'group':$[_0x173eea(0x327)],'type':_0x1e291f[_0x173eea(0x2f6)],'icon':'ShapeStraightConnector2Icon','name':'shape.type.straight-connector2','endArrow':!0x0,'startArrow':!0x0},{'group':$['Line'],'type':_0x1e291f['BentConnector3'],'icon':_0x173eea(0x506),'name':'shape.type.bent-connector3'},{'group':$[_0x173eea(0x327)],'type':_0x1e291f[_0x173eea(0x3e9)],'icon':'ShapeBentConnector3Arrow1Icon','name':_0x173eea(0x4c9),'endArrow':!0x0},{'group':$[_0x173eea(0x327)],'type':_0x1e291f[_0x173eea(0x3e9)],'icon':_0x173eea(0x366),'name':'shape.type.bent-connector3-arrow2','endArrow':!0x0,'startArrow':!0x0},{'group':$[_0x173eea(0x327)],'type':_0x1e291f['CurvedConnector3'],'icon':_0x173eea(0x20e),'name':_0x173eea(0x2aa)},{'group':$[_0x173eea(0x327)],'type':_0x1e291f[_0x173eea(0x18c)],'icon':'ShapeCurvedConnector3Arrow1Icon','name':_0x173eea(0x39f),'endArrow':!0x0},{'group':$['Line'],'type':_0x1e291f['CurvedConnector3'],'icon':_0x173eea(0x41b),'name':'shape.type.curved-connector3-arrow2','endArrow':!0x0,'startArrow':!0x0},{'group':$[_0x173eea(0x3b3)],'type':_0x1e291f[_0x173eea(0x1ad)],'icon':'ShapeRectIcon','name':_0x173eea(0x1af)},{'group':$[_0x173eea(0x3b3)],'type':_0x1e291f[_0x173eea(0x192)],'icon':_0x173eea(0x383),'name':_0x173eea(0x536)},{'group':$['Rectangle'],'type':_0x1e291f[_0x173eea(0x177)],'icon':_0x173eea(0x103),'name':_0x173eea(0x449)},{'group':$[_0x173eea(0x3b3)],'type':_0x1e291f['Snip2SameRect'],'icon':'ShapeSnip2SameRectIcon','name':_0x173eea(0x50a)},{'group':$[_0x173eea(0x3b3)],'type':_0x1e291f['Snip2DiagRect'],'icon':_0x173eea(0x287),'name':_0x173eea(0x212)},{'group':$[_0x173eea(0x3b3)],'type':_0x1e291f[_0x173eea(0x409)],'icon':_0x173eea(0x2a2),'name':_0x173eea(0x3e1)},{'group':$[_0x173eea(0x3b3)],'type':_0x1e291f[_0x173eea(0x55e)],'icon':'ShapeRound1RectIcon','name':_0x173eea(0xe8)},{'group':$[_0x173eea(0x3b3)],'type':_0x1e291f[_0x173eea(0x40f)],'icon':_0x173eea(0x40a),'name':_0x173eea(0x30b)},{'group':$[_0x173eea(0x3b3)],'type':_0x1e291f[_0x173eea(0x433)],'icon':_0x173eea(0x468),'name':_0x173eea(0x340)},{'group':$['BasicShape'],'type':_0x1e291f[_0x173eea(0x1ad)],'icon':_0x173eea(0x35d),'name':_0x173eea(0x2be),'horizontal':!0x0},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x1ad)],'icon':_0x173eea(0x52b),'name':'shape.type.rect-textbox-vertical','vertical':!0x0},{'group':$['BasicShape'],'type':_0x1e291f['Ellipse'],'icon':_0x173eea(0x4a8),'name':_0x173eea(0x378)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f['Triangle'],'icon':_0x173eea(0x3aa),'name':_0x173eea(0x2c4)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x401)],'icon':_0x173eea(0x4d9),'name':_0x173eea(0x4f6)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x133)],'icon':_0x173eea(0x556),'name':'shape.type.parallelogram'},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x2fd)],'icon':_0x173eea(0x295),'name':_0x173eea(0x445)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x3db)],'icon':_0x173eea(0x591),'name':_0x173eea(0x346)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x544)],'icon':'ShapePentagonIcon','name':_0x173eea(0x499)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f['Hexagon'],'icon':_0x173eea(0x38e),'name':_0x173eea(0x2c0)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f['Heptagon'],'icon':_0x173eea(0x3fd),'name':_0x173eea(0xe9)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x105)],'icon':'ShapeOctagonIcon','name':_0x173eea(0x111)},{'group':$['BasicShape'],'type':_0x1e291f[_0x173eea(0x16c)],'icon':_0x173eea(0x4a1),'name':'shape.type.decagon'},{'group':$['BasicShape'],'type':_0x1e291f['Dodecagon'],'icon':'ShapeDodecagonIcon','name':'shape.type.dodecagon'},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x416)],'icon':_0x173eea(0x27a),'name':_0x173eea(0x3c1)},{'group':$['BasicShape'],'type':_0x1e291f[_0x173eea(0x4ec)],'icon':_0x173eea(0x198),'name':_0x173eea(0x52e)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x23e)],'icon':_0x173eea(0x55c),'name':'shape.type.teardrop'},{'group':$['BasicShape'],'type':_0x1e291f[_0x173eea(0x3af)],'icon':_0x173eea(0x290),'name':'shape.type.frame'},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f['HalfFrame'],'icon':_0x173eea(0x160),'name':_0x173eea(0x334)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x574)],'icon':_0x173eea(0x125),'name':'shape.type.corner'},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f['DiagStripe'],'icon':_0x173eea(0x22a),'name':'shape.type.diag-stripe'},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x4e7)],'icon':'ShapePlusIcon','name':_0x173eea(0x34c)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x43b)],'icon':'ShapePlaqueIcon','name':'shape.type.plaque'},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x331)],'icon':_0x173eea(0x223),'name':_0x173eea(0x3c2)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f['Cube'],'icon':_0x173eea(0x460),'name':_0x173eea(0x114)},{'group':$['BasicShape'],'type':_0x1e291f[_0x173eea(0x2c5)],'icon':_0x173eea(0x2ff),'name':'shape.type.bevel'},{'group':$['BasicShape'],'type':_0x1e291f['Donut'],'icon':_0x173eea(0x387),'name':_0x173eea(0x3c8)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x473)],'icon':_0x173eea(0x405),'name':'shape.type.no-smoking'},{'group':$['BasicShape'],'type':_0x1e291f[_0x173eea(0xec)],'icon':_0x173eea(0x421),'name':_0x173eea(0x519)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f['FoldedCorner'],'icon':_0x173eea(0x58f),'name':_0x173eea(0x388)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x408)],'icon':'ShapeSmileyFaceIcon','name':_0x173eea(0x291)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x26a)],'icon':'ShapeHeartIcon','name':_0x173eea(0x29d)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x4fb)],'icon':'ShapeLightningBoltIcon','name':_0x173eea(0x2d0)},{'group':$['BasicShape'],'type':_0x1e291f['Sun'],'icon':_0x173eea(0x200),'name':_0x173eea(0x29b)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f['Moon'],'icon':_0x173eea(0x3d8),'name':_0x173eea(0x44c)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x186)],'icon':_0x173eea(0x3cd),'name':'shape.type.cloud'},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x27e)],'icon':_0x173eea(0x2b4),'name':_0x173eea(0x412)},{'group':$['BasicShape'],'type':_0x1e291f['BracketPair'],'icon':_0x173eea(0x252),'name':_0x173eea(0x178)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x4d4)],'icon':_0x173eea(0x3ff),'name':_0x173eea(0x1a2)},{'group':$['BasicShape'],'type':_0x1e291f['LeftBracket'],'icon':_0x173eea(0x16b),'name':'shape.type.left-bracket'},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f[_0x173eea(0x41e)],'icon':_0x173eea(0x568),'name':_0x173eea(0x1e8)},{'group':$[_0x173eea(0x3c3)],'type':_0x1e291f['LeftBrace'],'icon':_0x173eea(0x25e),'name':_0x173eea(0x436)},{'group':$['BasicShape'],'type':_0x1e291f[_0x173eea(0xea)],'icon':'ShapeRightBraceIcon','name':_0x173eea(0x3de)},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f[_0x173eea(0x337)],'icon':'ShapeRightArrowIcon','name':_0x173eea(0x357)},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f[_0x173eea(0x562)],'icon':_0x173eea(0x4db),'name':'shape.type.left-arrow'},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f['UpArrow'],'icon':'ShapeUpArrowIcon','name':_0x173eea(0x511)},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f['DownArrow'],'icon':_0x173eea(0x1fa),'name':_0x173eea(0x1cc)},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f['LeftRightArrow'],'icon':_0x173eea(0x481),'name':_0x173eea(0x1b1)},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f[_0x173eea(0x393)],'icon':_0x173eea(0x3d7),'name':_0x173eea(0x484)},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f[_0x173eea(0x360)],'icon':_0x173eea(0x52f),'name':_0x173eea(0x47f)},{'group':$['BlockArrow'],'type':_0x1e291f['LeftRightUpArrow'],'icon':'ShapeLeftRightUpArrowIcon','name':'shape.type.left-right-up-arrow'},{'group':$['BlockArrow'],'type':_0x1e291f[_0x173eea(0x11f)],'icon':'ShapeBentArrowIcon','name':_0x173eea(0x1a9)},{'group':$['BlockArrow'],'type':_0x1e291f[_0x173eea(0x448)],'icon':_0x173eea(0x353),'name':_0x173eea(0x158)},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f[_0x173eea(0x2ea)],'icon':_0x173eea(0x268),'name':_0x173eea(0x4f8)},{'group':$['BlockArrow'],'type':_0x1e291f[_0x173eea(0x2a7)],'icon':_0x173eea(0x4cd),'name':_0x173eea(0x326)},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f['CurvedRightArrow'],'icon':_0x173eea(0x185),'name':_0x173eea(0x2e3)},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f['CurvedLeftArrow'],'icon':_0x173eea(0x4e6),'name':_0x173eea(0x27c)},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f[_0x173eea(0x29a)],'icon':_0x173eea(0x4d6),'name':_0x173eea(0x3ca)},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f['CurvedDownArrow'],'icon':_0x173eea(0x1a7),'name':_0x173eea(0x244)},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f[_0x173eea(0x2b3)],'icon':'ShapeStripedRightArrowIcon','name':_0x173eea(0x189)},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f[_0x173eea(0x57a)],'icon':_0x173eea(0x31e),'name':_0x173eea(0x17b)},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f[_0x173eea(0x377)],'icon':_0x173eea(0x4f9),'name':_0x173eea(0x4ab)},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f['Chevron'],'icon':_0x173eea(0x3e3),'name':'shape.type.chevron'},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f[_0x173eea(0x487)],'icon':_0x173eea(0x2ae),'name':_0x173eea(0x367)},{'group':$['BlockArrow'],'type':_0x1e291f[_0x173eea(0x302)],'icon':_0x173eea(0x12e),'name':_0x173eea(0x45d)},{'group':$['BlockArrow'],'type':_0x1e291f[_0x173eea(0x356)],'icon':_0x173eea(0x1f8),'name':_0x173eea(0x33d)},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f[_0x173eea(0x191)],'icon':'ShapeUpArrowCalloutIcon','name':_0x173eea(0x216)},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f[_0x173eea(0x426)],'icon':_0x173eea(0x156),'name':'shape.type.left-right-arrow-callout'},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f[_0x173eea(0x430)],'icon':_0x173eea(0x597),'name':_0x173eea(0x55d)},{'group':$[_0x173eea(0x2a5)],'type':_0x1e291f[_0x173eea(0x438)],'icon':'ShapeCircularArrowIcon','name':_0x173eea(0x1ca)},{'group':$[_0x173eea(0xef)],'type':_0x1e291f['MathPlus'],'icon':'ShapeMathPlusIcon','name':_0x173eea(0x13b)},{'group':$[_0x173eea(0xef)],'type':_0x1e291f[_0x173eea(0x2d3)],'icon':_0x173eea(0x552),'name':_0x173eea(0x4c5)},{'group':$[_0x173eea(0xef)],'type':_0x1e291f['MathMultiply'],'icon':_0x173eea(0x3a4),'name':_0x173eea(0x2ee)},{'group':$[_0x173eea(0xef)],'type':_0x1e291f['MathDivide'],'icon':'ShapeMathDivideIcon','name':_0x173eea(0x3b1)},{'group':$[_0x173eea(0xef)],'type':_0x1e291f[_0x173eea(0x2f2)],'icon':_0x173eea(0x152),'name':'shape.type.math-equal'},{'group':$[_0x173eea(0xef)],'type':_0x1e291f[_0x173eea(0x355)],'icon':'ShapeMathNotEqualIcon','name':_0x173eea(0x444)},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f['FlowchartProcess'],'icon':_0x173eea(0x323),'name':_0x173eea(0x312)},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f[_0x173eea(0x36d)],'icon':_0x173eea(0x1e4),'name':_0x173eea(0x230)},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f[_0x173eea(0x3ce)],'icon':_0x173eea(0x274),'name':_0x173eea(0x385)},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f[_0x173eea(0x3a5)],'icon':_0x173eea(0x240),'name':_0x173eea(0x14b)},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f[_0x173eea(0x157)],'icon':'ShapeFlowChartPredefinedProcessIcon','name':'shape.type.flow-chart-predefined-process'},{'group':$['Flowchart'],'type':_0x1e291f[_0x173eea(0x3e7)],'icon':_0x173eea(0x521),'name':_0x173eea(0x569)},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f[_0x173eea(0x12f)],'icon':_0x173eea(0x255),'name':_0x173eea(0x51b)},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f[_0x173eea(0x28f)],'icon':_0x173eea(0x3a3),'name':_0x173eea(0x3b9)},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f[_0x173eea(0x2af)],'icon':_0x173eea(0x389),'name':'shape.type.flow-chart-terminator'},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f[_0x173eea(0x347)],'icon':_0x173eea(0x56f),'name':_0x173eea(0x10e)},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f[_0x173eea(0x380)],'icon':_0x173eea(0x39c),'name':_0x173eea(0x20c)},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f['FlowchartManualOperation'],'icon':_0x173eea(0x464),'name':_0x173eea(0x194)},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f['FlowchartConnector'],'icon':_0x173eea(0x551),'name':_0x173eea(0x155)},{'group':$['Flowchart'],'type':_0x1e291f[_0x173eea(0x294)],'icon':'ShapeFlowChartOffpageConnectorIcon','name':_0x173eea(0x24b)},{'group':$['Flowchart'],'type':_0x1e291f[_0x173eea(0x490)],'icon':_0x173eea(0x3ef),'name':'shape.type.flow-chart-punched-card'},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f[_0x173eea(0x477)],'icon':_0x173eea(0x24f),'name':_0x173eea(0x411)},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f[_0x173eea(0x3dd)],'icon':_0x173eea(0x37e),'name':_0x173eea(0x197)},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f[_0x173eea(0x228)],'icon':'ShapeFlowChartOrIcon','name':'shape.type.flow-chart-or'},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f[_0x173eea(0x29c)],'icon':'ShapeFlowChartCollateIcon','name':_0x173eea(0x453)},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f[_0x173eea(0x245)],'icon':'ShapeFlowChartSortIcon','name':_0x173eea(0x53c)},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f[_0x173eea(0x3e5)],'icon':'ShapeFlowChartExtractIcon','name':_0x173eea(0x1b8)},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f[_0x173eea(0x407)],'icon':_0x173eea(0x476),'name':_0x173eea(0x543)},{'group':$['Flowchart'],'type':_0x1e291f[_0x173eea(0x442)],'icon':_0x173eea(0x225),'name':_0x173eea(0x17a)},{'group':$['Flowchart'],'type':_0x1e291f[_0x173eea(0xf7)],'icon':_0x173eea(0x44d),'name':_0x173eea(0x4de)},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f[_0x173eea(0x1f5)],'icon':_0x173eea(0x466),'name':'shape.type.flow-chart-magnetic-tape'},{'group':$['Flowchart'],'type':_0x1e291f[_0x173eea(0x176)],'icon':_0x173eea(0x232),'name':_0x173eea(0x26b)},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f[_0x173eea(0x30a)],'icon':'ShapeFlowChartMagneticDrumIcon','name':'shape.type.flow-chart-magnetic-drum'},{'group':$[_0x173eea(0x18e)],'type':_0x1e291f[_0x173eea(0x258)],'icon':'ShapeFlowChartDisplayIcon','name':_0x173eea(0x1d2)},{'group':$['StarAndBanner'],'type':_0x1e291f[_0x173eea(0x29f)],'icon':'ShapeIrregularSeal1Icon','name':_0x173eea(0x576)},{'group':$[_0x173eea(0x415)],'type':_0x1e291f[_0x173eea(0x47b)],'icon':_0x173eea(0x1ea),'name':_0x173eea(0x522)},{'group':$[_0x173eea(0x415)],'type':_0x1e291f[_0x173eea(0x4fd)],'icon':'ShapeStar4Icon','name':_0x173eea(0x130)},{'group':$[_0x173eea(0x415)],'type':_0x1e291f[_0x173eea(0x41a)],'icon':_0x173eea(0x362),'name':'shape.type.star5'},{'group':$[_0x173eea(0x415)],'type':_0x1e291f[_0x173eea(0x2b7)],'icon':'ShapeStar6Icon','name':_0x173eea(0x53b)},{'group':$[_0x173eea(0x415)],'type':_0x1e291f['Star7'],'icon':_0x173eea(0x235),'name':_0x173eea(0x373)},{'group':$[_0x173eea(0x415)],'type':_0x1e291f[_0x173eea(0x1ee)],'icon':_0x173eea(0x280),'name':_0x173eea(0x282)},{'group':$[_0x173eea(0x415)],'type':_0x1e291f[_0x173eea(0x170)],'icon':'ShapeStar10Icon','name':_0x173eea(0x308)},{'group':$[_0x173eea(0x415)],'type':_0x1e291f[_0x173eea(0x4ad)],'icon':_0x173eea(0x1b9),'name':_0x173eea(0x14a)},{'group':$[_0x173eea(0x415)],'type':_0x1e291f[_0x173eea(0x2fe)],'icon':'ShapeStar16Icon','name':'shape.type.star16'},{'group':$[_0x173eea(0x415)],'type':_0x1e291f['Star24'],'icon':_0x173eea(0x3d2),'name':'shape.type.star24'},{'group':$['StarAndBanner'],'type':_0x1e291f[_0x173eea(0x4ce)],'icon':'ShapeStar32Icon','name':'shape.type.star32'},{'group':$[_0x173eea(0x415)],'type':_0x1e291f[_0x173eea(0x1ff)],'icon':'ShapeRibbon2Icon','name':_0x173eea(0x3a8)},{'group':$[_0x173eea(0x415)],'type':_0x1e291f[_0x173eea(0x179)],'icon':_0x173eea(0x52a),'name':'shape.type.ribbon'},{'group':$[_0x173eea(0x415)],'type':_0x1e291f[_0x173eea(0x394)],'icon':'ShapeEllipseRibbon2Icon','name':_0x173eea(0x101)},{'group':$[_0x173eea(0x415)],'type':_0x1e291f[_0x173eea(0x17c)],'icon':_0x173eea(0x1a6),'name':_0x173eea(0x253)},{'group':$[_0x173eea(0x415)],'type':_0x1e291f[_0x173eea(0x4d2)],'icon':_0x173eea(0x4a0),'name':_0x173eea(0x227)},{'group':$['StarAndBanner'],'type':_0x1e291f[_0x173eea(0x3f8)],'icon':'ShapeHorizontalScrollIcon','name':'shape.type.horizontal-scroll'},{'group':$[_0x173eea(0x415)],'type':_0x1e291f[_0x173eea(0x497)],'icon':_0x173eea(0x58d),'name':_0x173eea(0x149)},{'group':$['StarAndBanner'],'type':_0x1e291f[_0x173eea(0x399)],'icon':_0x173eea(0x339),'name':_0x173eea(0x3ad)},{'group':$[_0x173eea(0x509)],'type':_0x1e291f[_0x173eea(0x3d5)],'icon':_0x173eea(0x4a7),'name':'shape.type.wedge-rect-callout'},{'group':$[_0x173eea(0x509)],'type':_0x1e291f[_0x173eea(0x148)],'icon':'ShapeWedgeRoundRectCalloutIcon','name':'shape.type.wedge-round-rect-callout'},{'group':$[_0x173eea(0x509)],'type':_0x1e291f[_0x173eea(0x329)],'icon':_0x173eea(0x4b9),'name':_0x173eea(0x503)},{'group':$[_0x173eea(0x509)],'type':_0x1e291f[_0x173eea(0x288)],'icon':_0x173eea(0x573),'name':_0x173eea(0xe7)},{'group':$['Callout'],'type':_0x1e291f['BorderCallout1'],'icon':'ShapeBorderCallout1Icon','name':_0x173eea(0x22f)},{'group':$[_0x173eea(0x509)],'type':_0x1e291f[_0x173eea(0x3d6)],'icon':'ShapeBorderCallout2Icon','name':'shape.type.border-callout2'},{'group':$['Callout'],'type':_0x1e291f[_0x173eea(0x486)],'icon':_0x173eea(0x1b7),'name':_0x173eea(0x501)},{'group':$[_0x173eea(0x509)],'type':_0x1e291f[_0x173eea(0x510)],'icon':_0x173eea(0x305),'name':_0x173eea(0x45c)},{'group':$[_0x173eea(0x509)],'type':_0x1e291f[_0x173eea(0x43f)],'icon':'ShapeAccentCallout2Icon','name':_0x173eea(0x2de)},{'group':$[_0x173eea(0x509)],'type':_0x1e291f[_0x173eea(0x4b5)],'icon':'ShapeAccentCallout3Icon','name':_0x173eea(0x55b)},{'group':$[_0x173eea(0x509)],'type':_0x1e291f['Callout1'],'icon':_0x173eea(0x260),'name':_0x173eea(0x3cc)},{'group':$[_0x173eea(0x509)],'type':_0x1e291f['Callout2'],'icon':'ShapeCallout2Icon','name':_0x173eea(0x51a)},{'group':$[_0x173eea(0x509)],'type':_0x1e291f[_0x173eea(0x115)],'icon':'ShapeCallout3Icon','name':_0x173eea(0x298)},{'group':$['Callout'],'type':_0x1e291f[_0x173eea(0x4d3)],'icon':_0x173eea(0x1ce),'name':_0x173eea(0xf9)},{'group':$[_0x173eea(0x509)],'type':_0x1e291f[_0x173eea(0x529)],'icon':_0x173eea(0x592),'name':_0x173eea(0x1a0)},{'group':$[_0x173eea(0x509)],'type':_0x1e291f[_0x173eea(0x4ea)],'icon':_0x173eea(0x231),'name':_0x173eea(0x57b)},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f[_0x173eea(0x24e)],'icon':_0x173eea(0x479),'name':'shape.type.left-circular-arrow'},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f['LeftRightCircularArrow'],'icon':_0x173eea(0x136),'name':'shape.type.left-right-circular-arrow'},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f[_0x173eea(0x42f)],'icon':_0x173eea(0x2cf),'name':_0x173eea(0x375)},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f['LeftRightRibbon'],'icon':_0x173eea(0x42b),'name':'shape.type.left-right-ribbon'},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f[_0x173eea(0x1b4)],'icon':_0x173eea(0x145),'name':_0x173eea(0x199)},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f[_0x173eea(0x559)],'icon':_0x173eea(0x3fc),'name':'shape.type.funnel'},{'group':$['Other'],'type':_0x1e291f[_0x173eea(0x135)],'icon':_0x173eea(0x54b),'name':'shape.type.gear6'},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f[_0x173eea(0x344)],'icon':_0x173eea(0x264),'name':'shape.type.gear9'},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f[_0x173eea(0x3a2)],'icon':_0x173eea(0x513),'name':'shape.type.corner-tabs'},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f[_0x173eea(0x526)],'icon':_0x173eea(0x3eb),'name':_0x173eea(0x10d)},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f[_0x173eea(0x13f)],'icon':_0x173eea(0x456),'name':_0x173eea(0x2f1)},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f[_0x173eea(0x322)],'icon':_0x173eea(0x3a7),'name':'shape.type.action-button-beginning'},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f[_0x173eea(0x13a)],'icon':'ShapeActionButtonEndIcon','name':'shape.type.action-button-end'},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f[_0x173eea(0x19b)],'icon':_0x173eea(0x174),'name':_0x173eea(0x47a)},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f['ActionButtonInformation'],'icon':_0x173eea(0x1db),'name':_0x173eea(0x17d)},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f[_0x173eea(0x452)],'icon':_0x173eea(0x2e2),'name':_0x173eea(0x34d)},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f['ActionButtonMovie'],'icon':'ShapeActionButtonMovieIcon','name':_0x173eea(0x219)},{'group':$['Other'],'type':_0x1e291f[_0x173eea(0x371)],'icon':_0x173eea(0x505),'name':'shape.type.action-button-document'},{'group':$['Other'],'type':_0x1e291f['ActionButtonSound'],'icon':_0x173eea(0x51d),'name':'shape.type.action-button-sound'},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f['ActionButtonHelp'],'icon':'ShapeActionButtonHelpIcon','name':'shape.type.action-button-help'},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f['ActionButtonBlank'],'icon':_0x173eea(0x14e),'name':'shape.type.action-button-blank'},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f[_0x173eea(0x31f)],'icon':_0x173eea(0x1b2),'name':'shape.type.chart-plus'},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f['ChartStar'],'icon':_0x173eea(0x324),'name':_0x173eea(0xfb)},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f[_0x173eea(0x4ee)],'icon':_0x173eea(0x596),'name':_0x173eea(0x3e6)},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f[_0x173eea(0x3bc)],'icon':_0x173eea(0x2b1),'name':'shape.type.flow-chart-offline-storage'},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f['LineInv'],'icon':_0x173eea(0x21c),'name':'shape.type.line-inv'},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f[_0x173eea(0x20a)],'icon':'ShapePlaqueTabsIcon','name':_0x173eea(0x579)},{'group':$['Other'],'type':_0x1e291f[_0x173eea(0x330)],'icon':'ShapeSquareTabsIcon','name':'shape.type.square-tabs'},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f[_0x173eea(0x382)],'icon':_0x173eea(0x2bd),'name':_0x173eea(0x51f)},{'group':$[_0x173eea(0x14d)],'type':_0x1e291f[_0x173eea(0x4ae)],'icon':_0x173eea(0x1aa),'name':_0x173eea(0x570)}],vo=_0x173eea(0x564);function yo({onShapeClick:_0x4994cc,excludeGroups:_0x56f547}){const _0x503758=_0x173eea;let _0x29fbd5=_0x6447ef(_0x14ed3e),_0x548e3d=_0x6447ef(_0x43e087),_0x1f7b4a=(_0x56f547?_o[_0x503758(0x342)](_0x4f93f4=>!_0x56f547['includes'](_0x4f93f4[_0x503758(0x12b)])):_o)[_0x503758(0x183)]((_0x3e0561,_0x4eeb31)=>(_0x3e0561[_0x4eeb31[_0x503758(0x12b)]]||(_0x3e0561[_0x4eeb31[_0x503758(0x12b)]]=[]),_0x3e0561[_0x4eeb31[_0x503758(0x12b)]]['push'](_0x4eeb31),_0x3e0561),{});return _0x3561af(_0x503758(0x54e),{'className':_0x503758(0x38d),'children':Object[_0x503758(0x19f)](_0x1f7b4a)[_0x503758(0x37f)](([_0x428186,_0x180a9b])=>_0x42d0cd(_0x503758(0x54e),{'className':_0x503758(0x16a),'children':[_0x3561af(_0x503758(0x54e),{'className':_0x503758(0x4ca),'children':_0x29fbd5['t'](_0x503758(0x3f3)+_0x428186)}),_0x3561af(_0x503758(0x54e),{'className':_0x503758(0x462),'children':_0x180a9b[_0x503758(0x37f)](_0x2972a5=>{const _0x56af7e=_0x503758;let _0x3d4ba4=_0x548e3d[_0x56af7e(0x471)](_0x2972a5[_0x56af7e(0x53d)]);return _0x3561af(_0x56af7e(0x54e),{'title':_0x29fbd5['t'](_0x2972a5['name']),'onClick':()=>_0x4994cc(_0x2972a5),'className':'univer-flex\x20univer-aspect-square\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-p-1\x20univer-text-gray-700\x20hover:univer-bg-gray-200\x20dark:!univer-text-gray-200\x20dark:hover:!univer-bg-gray-700','children':_0x3d4ba4&&_0x3561af(_0x3d4ba4,{'className':'univer-size-full'})},_0x2972a5[_0x56af7e(0x4f7)]);})})]},_0x428186))});}function bo(){const _0x592418=_0x173eea;let _0x54e0c4=_0x6447ef(_0x14ed3e),_0x4df24d=_0x6447ef(_0x4313c8),_0x203a55=_0x6447ef(go),[_0x5818da,_0x337bc4]=_0x5cfa86(!0x1);return _0x3561af(_0x4a34c5,{'side':_0x592418(0x4d1),'open':_0x5818da,'onOpenChange':_0x337bc4,'overlay':_0x3561af(yo,{'onShapeClick':_0x1b7ddb=>{const _0x510a63=_0x592418;let _0x3e28ae=_0x4df24d[_0x510a63(0x246)]()['find'](_0x1d52fa=>_0x1d52fa[_0x510a63(0x319)]===_0x217b4d['DRAWING_IMAGE']);if(!_0x3e28ae)return;let {unitId:_0x537593,subUnitId:_0xb37368,drawingId:_0xcd4ae0}=_0x3e28ae;_0x203a55['clipByShape'](_0x537593,_0xb37368,_0xcd4ae0,_0x1b7ddb[_0x510a63(0x2a9)]),_0x337bc4(!0x1);},'excludeGroups':[$[_0x592418(0x327)]]}),'children':_0x3561af(_0x46dd61,{'children':_0x54e0c4['t']('image-panel.crop.shape')})});}function xo(){let _0x419ec9=_0x6447ef(_0x584851);return _0x3561af(yo,{'onShapeClick':_0x34d2e3=>{const _0x564fda=_0x34f4;_0x419ec9[_0x564fda(0x4ff)](ho['id'],{'value':_0x34d2e3['type'],'enhanceParams':{'endArrow':_0x34d2e3[_0x564fda(0x16f)],'startArrow':_0x34d2e3[_0x564fda(0x22c)],'horizontal':_0x34d2e3[_0x564fda(0x4ef)],'vertical':_0x34d2e3[_0x564fda(0x1c0)]}});}});}const So=[{'label':_0x173eea(0x4b3),'icon':_0x173eea(0x2a3),'value':_0x5a9a7d[_0x173eea(0x34f)]},{'label':_0x173eea(0x20d),'icon':_0x173eea(0x563),'value':_0x5a9a7d[_0x173eea(0x537)]},{'label':_0x173eea(0x254),'icon':_0x173eea(0x4b6),'value':_0x5a9a7d[_0x173eea(0x42c)]}];function Co(_0x3e4644){const _0x22bea2=_0x173eea;var _0x4b6e0f;let _0x27effe=_0x3e4644[_0x22bea2(0x471)](_0x584851),_0x1c5381=_0x3e4644[_0x22bea2(0x471)](_0x41728c),_0x16de93=_0x3e4644['get'](_0x2d0725),_0x1ac8bf=_0x3e4644[_0x22bea2(0x471)](_0x28de8a),_0x224cc5=_0x5a9a7d[_0x22bea2(0x34f)],_0x394394=()=>{const _0x4adda9=_0x22bea2;try{var _0x1a7d38;let _0x4cef2a=_0x16de93[_0x4adda9(0x1b6)](Qa,_0x59e014[_0x4adda9(0x470)]);if(!_0x4cef2a)return _0x224cc5;let _0x2d25d3=_0x1ac8bf[_0x4adda9(0x58b)](),_0x10f26c=(_0x1a7d38=_0x2d25d3[_0x4adda9(0x21a)](_0xd7a30c=>_0xd7a30c[_0x4adda9(0x4bf)]))==null?_0x2d25d3[0x0]:_0x1a7d38;if(!_0x10f26c)return _0x224cc5;let {startOffset:_0x856ae1,segmentId:_0x361526}=_0x10f26c,_0x167c37=_0x4cef2a[_0x4adda9(0x296)](_0x361526)[_0x4adda9(0x193)](),_0x5e3548=_0x167c37==null?void 0x0:_0x167c37[_0x4adda9(0xeb)];if(!_0x5e3548)return _0x224cc5;let _0x7bd008=-0x1;for(let _0x35bc23 of _0x5e3548){let {startIndex:_0x5a13e8}=_0x35bc23;if(_0x856ae1>_0x7bd008&&_0x856ae1<=_0x5a13e8){var _0x4b6742,_0x501814;return(_0x4b6742=(_0x501814=_0x35bc23['paragraphStyle'])==null?void 0x0:_0x501814[_0x4adda9(0x15e)])==null?_0x224cc5:_0x4b6742;}_0x7bd008=_0x5a13e8;}}catch{}return _0x224cc5;};return{'id':Ja['id'],'icon':(_0x4b6e0f=So[_0x22bea2(0x21a)](_0x11d48e=>_0x11d48e[_0x22bea2(0x2c1)]===_0x224cc5))==null?void 0x0:_0x4b6e0f[_0x22bea2(0x53d)],'tooltip':_0x22bea2(0xff),'type':_0x46ebf7[_0x22bea2(0x406)],'selections':So,'value$':new _0x1e6ee2(_0x2a08f0=>{const _0x5c46f4=_0x22bea2;let _0x5741f5=_0x27effe['onCommandExecuted'](_0x5561cd=>{const _0x2f5fc9=_0x34f4;let _0x579ac8=_0x5561cd['id'];(_0x579ac8===_0x414a75['id']||_0x579ac8===_0x255e1d['id']||_0x579ac8===_0x119cbf['id']||_0x579ac8===_0x367093['id']||_0x579ac8===_0x398919['id']||_0x579ac8===Ja['id'])&&_0x2a08f0[_0x2f5fc9(0x474)](_0x394394());}),_0x3e6d6c=_0x1c5381['subscribeContextValue$'](_0x34830e)[_0x5c46f4(0x30e)](()=>{const _0x273cd9=_0x5c46f4;_0x2a08f0[_0x273cd9(0x474)](_0x394394());});return _0x2a08f0[_0x5c46f4(0x474)](_0x394394()),()=>{const _0x149938=_0x5c46f4;_0x5741f5[_0x149938(0x50d)](),_0x3e6d6c[_0x149938(0x2e8)]();};}),'hidden$':_0x1c5381[_0x22bea2(0x184)](_0x34830e)['pipe'](_0x3789dc(_0x3e28b1=>!_0x3e28b1))};}function wo(_0x372d4e){const _0x4ff374=_0x173eea;let _0x1039b4=_0x372d4e[_0x4ff374(0x471)](_0x41728c),_0x3b06f1=_0x372d4e[_0x4ff374(0x471)](_0x2d684f);return{'id':_0x26a27b['id'],'tooltip':_0x4ff374(0x3bd),'type':_0x46ebf7['BUTTON_SELECTOR'],'icon':_0x4ff374(0x2bc),'selections':[{'label':{'name':_0x5adc41,'hoverable':!0x1,'selectable':!0x1}}],'value$':new _0x1e6ee2(_0x5afe83=>{const _0x5b0fef=_0x4ff374;_0x5afe83['next'](_0x3b06f1[_0x5b0fef(0x485)]('primary.600'));}),'hidden$':_0x1039b4[_0x4ff374(0x184)](_0x34830e)[_0x4ff374(0x38b)](_0x3789dc(_0x5bcf24=>!_0x5bcf24))};}function To(_0x4249bd){const _0x5652fd=_0x173eea;let _0x2b395a=_0x4249bd['get'](_0x41728c);return{'id':_0x4946d0['id'],'type':_0x46ebf7['BUTTON'],'title':_0x5652fd(0x3e4),'hidden$':_0x2b395a[_0x5652fd(0x184)](_0x34830e)['pipe'](_0x3789dc(_0x31037e=>!_0x31037e))};}const Eo=[{'label':_0x173eea(0x39b),'icon':'AlignTopIcon','value':_0x5e4572[_0x173eea(0x2d5)]},{'label':_0x173eea(0x3c4),'icon':'VerticalCenterIcon','value':_0x5e4572[_0x173eea(0x45e)]},{'label':_0x173eea(0x32f),'icon':_0x173eea(0x132),'value':_0x5e4572[_0x173eea(0x2d6)]}];function _0x55e5(){const _0xc0aab=['ShapeStar4Icon','_registerFocusChangeHandler','length','ShapeVerticalScrollIcon','ShapeDecagonIcon','save','univer-text-xl\x20univer-text-gray-500','_initSelection','Freehand','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-pointer-events-none\x20univer-absolute\x20univer-bottom-full\x20univer-left-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mb-1\x20univer-hidden\x20univer-overflow-hidden\x20univer-rounded\x20univer-border\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-border-solid\x20univer-border-gray-200\x20univer-bg-white\x20univer-shadow-md\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20group-hover:univer-block\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-600\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ShapeWedgeRectCalloutIcon','ShapeEllipseIcon','_univerInstanceService','ShapeLeftRightUpArrowIcon','shape.type.home-plate','NoLine','Star12','NonIsoscelesTrapezoid','univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_baseShapeLeft','clipByShape','VIEW_MAIN_TOP','align.left','DashDot','AccentCallout3','RightJustifyingIcon','drawWith','getBatchUpdateOp','ShapeWedgeEllipseCalloutIcon','_executeConnectedRouteResizeCommand','setShapeProps','prototype','push','custom','isActive','_config','interceptCommand','_clearConnectionSites','sheets-shape.fill.transparency','sheets-shape.formatShape','shape.type.math-minus','classType','clip','copyType','shape.type.bent-connector3-arrow1','univer-mb-1\x20univer-rounded\x20univer-bg-gray-100\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-bg-gray-800\x20dark:!univer-text-gray-200','_sheetClipboardService','_handleConnectorPointerUp','ShapeBentUpArrowIcon','Star32','refreshAdjustControls','sheets-shape.line.joinType.round','left','VerticalScroll','AccentBorderCallout1','BracePair','getEditing','ShapeCurvedUpArrowIcon','index','sheets-shape.shapeStyle','ShapeRtTriangleIcon','size','ShapeLeftArrowIcon','ShapeStraightConnector1Icon','resize','shape.type.flow-chart-delay','gradientAngle','ShapeActionButtonHelpIcon','srcRect','function','ShapeLightningBoltIcon','featurePluginUpdateNotification','_activeShapeId','ShapeCurvedLeftArrowIcon','Plus','_baseDrawingRect','domY','AccentBorderCallout3','complete','Chord','sheets-shape.fill.picture.tileAsTexture','ChartX','horizontal','clone','focus$','_getDrawingRect','getValue','values','3013280DXCpEy','shape.type.rt-triangle','name','shape.type.left-up-arrow','ShapeHomePlateIcon','alignment','LightningBolt','sheets-shape.line.dashType.squareDot','Star4','restore','executeCommand','start','shape.type.border-callout3','_sheetBasicShapeConnectionPointController','shape.type.wedge-ellipse-callout','191018HqgKhF','ShapeActionButtonDocumentIcon','ShapeBentConnector3Icon','attachTransformerTo','OpenArrow','Callout','shape.type.snip2-same-rect','ShapeCallout3Icon','shape-adjust-point-','dispose','148730atyUGp','useAbsolutePosition','AccentCallout1','shape.type.up-arrow','getTransformerByCreate','ShapeCornerTabsIcon','onerror','keys','registerFeaturePasteHook','getAncestorScale','updateLinePoints','shape.type.block-arc','shape.type.callout2','shape.type.flow-chart-document','isNaN','ShapeActionButtonSoundIcon','_localeService','shape.type.up-down-arrow-callout','LAYOUT','ShapeFlowChartInternalStorageIcon','shape.type.irregular-seal2','ShapeDodecagonIcon','Radial','gdRefY','ActionButtonBackPrevious','418103hYfLkY','stops','AccentBorderCallout2','ShapeRibbonIcon','ShapeRectTextboxVerticalIcon','sheets-shape.fill.picture.source','isLineShape','shape.type.chord','ShapeQuadArrowIcon','_createControls','ShapeEllipseRibbon2Icon','sheet.command.set-shape-text-font-size-decrease','applyPoint','_clearControls','univer-text-sm','shape.type.round-rect','CENTER','width','saveImage','beginPath','shape.type.star6','shape.type.flow-chart-sort','icon','sheet.shape.edit.panel','sheets-shape.insertShape','syncExecuteCommand','sheet.operation.open-sheet-shape-format-panel','remove$','shape.type.flow-chart-merge','Pentagon','_registerShapeMenu','GradientFill','sheets-shape.line.dashType.dash','removeLinePoints','getAdjustNames','getShapeType','ShapeGear6Icon','setDocumentData','blockArrow','div','calcAdjValue','150VHcITm','ShapeFlowChartConnectorIcon','ShapeMathMinusIcon','imageRotateWithShape','_executeConnectedRouteConnectionCommand','doc','ShapeParallelogramIcon','getShapeTextRect','_sidebarService','Funnel','getAdjustValueByName','shape.type.accent-callout3','ShapeTeardropIcon','shape.type.quad-arrow-callout','Round1Rect','ShapeBorderCallout2Icon','cos','registerFeatureMenu','LeftArrow','HorizontallyIcon','sheet.shape.picker.component','setSelectionRanges','_onSavingEditorData$','univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold','ShapeRightBracketIcon','shape.type.flow-chart-internal-storage','fillImageSourceType','_configService','sheet.command.set-shape-text-vertical-align','worldPoints','deepClone','ShapeFlowChartPreparationIcon','shape.type.non-isosceles-trapezoid','univer-w-20\x20univer-flex-1','close','ShapeCloudCalloutIcon','Corner','START','shape.type.irregular-seal1','getImage','sheets-shape.line.sketchType.title','shape.type.plaque-tabs','NotchedRightArrow','shape.type.accent-border-callout3','sheets-shape.line.color','Angular','_adjHandlerPointerMove','_showConnectionSites','changing$','translate','colStartX','isRender','_handleFreeEndpointMove','isRenderLinePointsMode','111472tYgPYj','_reset','isDrawingObject','CUT','setPrstGeomAdjValues','getDocRanges','ShapeFlowChartDisplayIcon','ShapeWaveIcon','makeDirty','ShapeFolderCornerIcon','preValue','ShapeDiamondIcon','ShapeAccentBorderCallout2Icon','_imageIoService','univer-w-full','_initMenu','ShapeChartXIcon','ShapeQuadArrowCalloutIcon','_currentScene','shape.type.cloud-callout','shape.type.round1-rect','shape.type.heptagon','RightBrace','paragraphs','BlockArc','ShapeActionButtonEndIcon','_activeAdjustPointList','EquationShape','_urlImageService','_drawingType','sheets-shape.fill.picture.scaleX','getShapeModel','addImageSourceCache','DRAWING_SHAPE','univer-flex\x20univer-flex-col\x20univer-gap-2','FlowchartDelay','getRenderById','shape.type.accent-border-callout1','disableObjectsEvent','shape.type.chart-star','getRealBound','getInverseCoord','ShapeTextEditorContainer','toolbar.horizontalAlignMode.main','_baseHeight','shape.type.ellipse-ribbon2','_activeAdjustInfo','ShapeSnip1RectIcon','getDrawingSearch','Octagon','VIEW_MAIN','getBatchAddOp','SHEET_SHAPE_UI_PLUGIN','StealthArrow','_createCopyInfoByRange','cxnPointStroke','sheets-shape.fill.picture.align.t','shape.type.action-button-back-previous','shape.type.flow-chart-preparation','dashType','ancestorTransform','shape.type.octagon','resetCursor','#1a73e8','shape.type.cube','Callout3','endConnectionDetection','_sheetSkeletonService','shapeId','shape.type.line','MEDIA','_imageShapeClipController','getCurrentTypeOfUnit$','Arrow','img','BentArrow','ShapeLineIcon','ShapeFlowChartCollateIcon','_getImagePrstGeom','image/*','getShapeTextData','ShapeCornerIcon','displayName','univer-text-primary-600','composeMatrix','_initEvents','subUnitId','group','drawingId','clearAdjustValue','ShapeDownArrowCalloutIcon','FlowchartDocument','shape.type.star4','ShapeMathDivideIcon','AlignBottomIcon','Parallelogram','Miter','Gear6','ShapeLeftRightCircularArrowIcon','_cxtHandlerPointerUp','_connectionSiteObjects','sheet.command.shape-doc-align','ActionButtonEnd','shape.type.math-plus','sheet.command.update-shape-data','angle','button','ActionButtonForwardNext','_initCommands','getConnectionSiteList','getShapePopupMenus','_isStartAdjusting','_props','ShapePieWedgeIcon','_sheetDrawingShapeRenderController','_baseTop','WedgeRoundRectCallout','shape.type.wave','shape.type.star12','shape.type.flow-chart-input-output','univer-w-20','Other','ShapeActionButtonBlankIcon','lineType','getImageSourceCache','_isShouldShowDrawingShapeAdjust','ShapeMathEqualIcon','_clipService','_sheetPermissionCheckController','shape.type.flow-chart-connector','ShapeLeftRightArrowCalloutIcon','FlowchartPredefinedProcess','shape.type.uturn-arrow','UPDATE','fillImageSource','normal','relation','getState','horizontalAlign','sheets-shape.line.arrowSize.large','ShapeHalfFrameIcon','getEndConnectInfo','_activeShapeModel','sheets-shape.deleteShape','_isStartConnectorPoint','shapeModel','ShapePlusIcon','_baseShapeHeight','enableObjectsEvent','8288BsGxtK','univer-mb-2','ShapeLeftBracketIcon','Decagon','_groupCopyPasteController','_sheetsShapeService','endArrow','Star10','_isOpenedShapeEditPanel','_injector','onReady','ShapeActionButtonHomeIcon','0.20.1','FlowchartMagneticDisk','Snip1Rect','shape.type.bracket-pair','Ribbon','shape.type.flow-chart-online-storage','shape.type.notched-right-arrow','EllipseRibbon','shape.type.action-button-information','_drawSimpleText','_baseWidth','Round','opacity','_highlightedSiteIndex','reduce','subscribeContextValue$','ShapeCurvedRightArrowIcon','Cloud','setShapeData','ShapeStar6Icon','shape.type.striped-right-arrow','pick','_updateImageAdjValues','CurvedConnector3','viewportScrollX','Flowchart','transform','offsetY','UpArrowCallout','RoundRect','getBody','shape.type.flow-chart-manual-operation','rect','body','shape.type.flow-chart-summing-junction','ShapeChordIcon','shape.type.pie-wedge','getDrawingByParam','ActionButtonHome','_sheetShapeAdjustController','ShapeSnip2SameRectIcon','sheets-shape.line.sketchType.handDrawn','entries','shape.type.accent-border-callout2','parse','shape.type.brace-pair','_updateSrcRectByTransform','_shapeService','set','ShapeEllipseRibbonIcon','ShapeCurvedDownArrowIcon','_calculateFreeEndpointAngle','shape.type.bent-arrow','ShapeNonIsoscelesTrapezoidIcon','replace','invert','Rect','setFillImage','shape.type.rect','adjHandleFill','shape.type.left-right-arrow','ShapeChartPlusIcon','some','PieWedge','setCanUseShapeClip','getUnit','ShapeBorderCallout3Icon','shape.type.flow-chart-extract','ShapeStar12Icon','_drawingAddListener','getUnitId','shape-text-','sheets-shape-ui','cxnPointRadius','stopPropagation','vertical','_copyInfo','_getScrollInfo','_moveConnectorWithShape','_activeShapeInfo','Linear','activeAnObject','worldRect','updateContext','objects','shape.type.circular-arrow','unitId','shape.type.down-arrow','sheets-shape.hidePanel','ShapeAccentBorderCallout1Icon','_shapeUpdateListener','NoFill','adjustValues','shape.type.flow-chart-display','getViewport','Path','Dash','_menuManagerService','sheets-shape.line.dashType.longDashDotDot','strokeWidth','_attachConnectorObjectEvent','ShapeOctagonIcon','ShapeActionButtonInformationIcon','ShapeRectIcon','connector-handler-','_getConnectPointInfo','_addShapeConnectorHandlerObject','sheets-shape.line.arrowType.ovalArrow','getObjectIncludeInGroup','sheets-shape.line.arrowType.none','getBatchRemoveOp','ShapeFlowChartAlternateProcessIcon','worldPoint','univer-absolute\x20univer-z-[100]\x20univer-overflow-visible','univer-absolute','shape.type.right-bracket','fill','ShapeIrregularSeal2Icon','_registerDrawingMoveHandler','abs','offsetX','Star8','_currentConnectionTarget','_insertShapes','_registerImageShapeClipDelegate','multiply','clearAdjustControls','ShapePlaqueIcon','FlowchartMagneticTape','adjHandleSize','create','ShapeLeftArrowCalloutIcon','_getShapeInfo','ShapeDownArrowIcon','span','buildClipPath','version','ShapeRightBraceIcon','Ribbon2','ShapeSunIcon','_drawingRenderService','sheets-shape.fill.picture.scaleY','_adjName','_generatePasteMutations','_isConnecting','Square','update$','univer-flex\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200','from','PlaqueTabs','floor','shape.type.flow-chart-manual-input','align.center','ShapeCurvedConnector3Icon','getMatrix','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md\x20univer-bg-primary-600','updateShapeFillImage','shape.type.snip2-diag-rect','ShapeUpArrowIcon','_generateCopyPasteMutations','sheet.command.set-shape-text-font-size','shape.type.up-arrow-callout','scaleX','univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','shape.type.action-button-movie','find','getCurrentLastSelection','ShapeLineInvIcon','INSERT','_isImagePointerDown','_commandService','other','getSheetBySheetId','SolidFil','ShapeCanIcon','_sheetInterceptorService','ShapeFlowChartOnlineStorageIcon','getConnectorLinePoints','shape.type.vertical-scroll','FlowchartOr','ShapeRibbon2Icon','ShapeDiagStripeIcon','_rerouteConnectorLine','startArrow','point','_registerComponent','shape.type.border-callout1','shape.type.flow-chart-alternate-process','ShapeAccentBorderCallout3Icon','ShapeFlowChartMagneticDiskIcon','_updateAdjustControlPositions','_lastEditingShapeKey','ShapeStar7Icon','refreshTransform','_loadShapePictureFill','getActualSize','Solid','ShapeStar16Icon','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_draw','startConnectionDetection','Teardrop','sheets-shape.openPanel','ShapeFlowChartInputOutputIcon','data','ShapeFlowChartExtractIcon','shape.type.straight-connector1','shape.type.curved-down-arrow','FlowchartSort','getFocusDrawings','_getConnectionSiteAngle','Stretch','gdRefR','domX','shape.type.flow-chart-offpage-connector','VIEW_MAIN_LEFT','ShapeSquareTabsIcon','LeftCircularArrow','ShapeFlowChartPunchedTapeIcon','_executeConnectionCommand','_contextService','ShapeBracketPairIcon','shape.type.ellipse-ribbon','align.right','ShapeFlowChartDocumentIcon','setAdjustValueByName','focusDrawing','FlowchartDisplay','current','UUID','decorate','toPrimitive','_getZoomRatio','ShapeLeftBraceIcon','_cxnIndex','ShapeCallout1Icon','documentStyle','ShapeCallout2Icon','_executeResizeCommand','ShapeGear9Icon','getDrawingData','_index','_drawRichText','ShapeLeftUpArrowIcon','sin','Heart','shape.type.flow-chart-magnetic-disk','register','setHighlighted','getDrawingOrder','sheet.command.menu-insert-shape','permissionCheckWithoutRange','dataModel','iterator','_registerDrawingFocusChangeHandler','ShapeFlowChartDecisionIcon','ShapeStripedRightArrowIcon','Medium','render','RoundDot','connection-site-','ShapePieIcon','ENTER','shape.type.curved-left-arrow','6923MrIxxy','Arc','_subUnitId','ShapeStar8Icon','sheets-shape.line.arrowSize.medium','shape.type.star8','color','undo','_openShapeEditPanel','onSavingEditorData$','ShapeSnip2DiagRectIcon','CloudCallout','univer-text-gray-500','sheets-shape.line.dashType.title','radial','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','SquareDot','_targetShapeId','FlowchartMultiDocument','ShapeFrameIcon','shape.type.smiley-face','_renderManagerService','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','FlowchartOffPageConnector','ShapeTrapezoidIcon','getSelfOrHeaderFooterModel','_loadAndSetImage','shape.type.callout3','sheets-shape.line.joinType.bevel','CurvedUpArrow','shape.type.sun','FlowchartCollate','shape.type.heart','_transformCalculateSrcRect','IrregularSeal1','ang','fillType','ShapeSnipRoundRectIcon','LeftJustifyingIcon','_closeShapeEditPanel','BlockArrow','_hasReset','BentUpArrow','_findNearestConnectionSite','type','shape.type.curved-connector3','adjName','_getShapeAdjustPointListById','sheets-shape.line.capType.title','ShapeRightArrowCalloutIcon','FlowchartTerminator','univer-block\x20univer-h-[100px]\x20univer-w-[100px]\x20univer-object-cover','ShapeFlowChartOfflineStorageIcon','startX','StripedRightArrow','ShapeArcIcon','_shapeTextEditingService','shape-text-editor','Star6','_updateTransform','sheets-shape.line.dashType.longDash','default','worksheet','PaintBucketDoubleIcon','ShapeUpDownArrowCalloutIcon','shape.type.rect-textbox-horizontal','_activeShapeAdjustPointList','shape.type.hexagon','value','flipX','getTransformer','shape.type.triangle','Bevel','HandDrawn','cxnPointStrokeWidth','viewportScrollY','getShapeData','sheets-shape.fill.color','ShapeMathPlusIcon','DRAWING_DOM','onTransformChange$','isEditing','ShapeSwooshArrowIcon','shape.type.lightning-bolt','round','rotate(','MathMinus','_connectorObjects','TOP','BOTTOM','textRect','clear','sheets-shape.line.width','sheets-shape.line.dashType.longDashDot','slice','error','file','shape.type.accent-callout2','rectangle','gradientStops','ShapeMathNotEqualIcon','ShapeActionButtonReturnIcon','shape.type.curved-right-arrow','has','isArray','FORMAT','string','unsubscribe','_initSheetChange','LeftUpArrow','style','_registerOperations','getBasicShapeRelation','shape.type.math-multiply','position','ShapeBentArrowIcon','shape.type.action-button-forward-next','MathEqual','setCursor','_initialize','setOnSavingEditorData','StraightConnector1','_updateShapeAdjustControls','bind','sheets-shape.fill.picture.align.ctr','ShapeWedgeRoundRectCalloutIcon','_getSceneAndTransformerByDrawingSearch','ShapeStraightConnector2Icon','Trapezoid','Star16','ShapeBevelIcon','_sheetDrawingService','localToWorld','DownArrowCallout','sheets-shape.fill.picture.offsetX','isHighlighted','ShapeAccentCallout1Icon','ShapeActionButtonMovieIcon','univer-box-border\x20univer-px-4\x20univer-text-sm','shape.type.star10','GROUP','FlowchartMagneticDrum','shape.type.round2-same-rect','sheetViewStartColumn','_transform','subscribe','getShapeTypeById','PictureFill','ctr','shape.type.flow-chart-process','ShapeHeartIcon','editorHeight','_addControl','getParent','getConnectionInfo','forEach','drawingType','\x20px','_initCopyPaste','object','Large','ShapeNotchedRightArrowIcon','ChartPlus','_unitId','getCurrentScrollState','ActionButtonBeginning','ShapeFlowChartProcessIcon','ShapeChartStarIcon','shape-text-editor-content','shape.type.bent-up-arrow','Line','_findShapeAtPoint','WedgeEllipseCallout','blur','getDrawingPoints','ShapeSmileyFaceIcon','top','getCurrentSkeleton','align.bottom','SquareTabs','Can','473QyrpIN','Flat','shape.type.half-frame','_addShapeAdjustControl','updateDocumentDataMargin','RightArrow','imageOpacity','ShapeDoubleWaveIcon','_sidebarDisposable','prstGeomAdjValues','univer-text-gray-600\x20univer-transition-transform','shape.type.left-arrow-callout','2154ufNkDJ','image-clip-adjust-point-','shape.type.round2-diag-rect','SolidLine','filter','deg)\x20scaleY(','Gear9','_attachAdjustEvent','shape.type.diamond','FlowchartPreparation','image','oKey','DiamondArrow','params','shape.type.plus','shape.type.action-button-return','transformByState','LEFT','lineStrokeType','_baseShapeWidth','REMOVE','ShapeUturnArrowIcon','linear','MathNotEqual','LeftArrowCallout','shape.type.right-arrow','ShapePentagonIcon','drawing.operation.set-drawing-active','_getOrCreateShapeModel','startY','getAdjustInfoByName','ShapeRectTextboxHorizontalIcon','sheets-shape.line.title','sheets-shape.config','QuadArrow','cxnPointFill','ShapeStar5Icon','max','flowchart','shapeKey','ShapeBentConnector3Arrow2Icon','shape.type.right-arrow-callout','_createShapeAdjustControls','setSrcRect','sheets-shape.line.arrowType.arrow','_handleFreeEndpointPointerUp','sheets-shape.fill.picture.align.b','FlowchartAlternateProcess','addObject','ShapeRightArrowIcon','_handleConnectedEndpointMove','ActionButtonDocument','sheets-shape.line.endArrowType','shape.type.star7','univer-flex\x20univer-items-center\x20univer-justify-between','shape.type.swoosh-arrow','ShapeBorderCallout1Icon','HomePlate','shape.type.ellipse','marginTop','_resetState','_getImageDrawingInfo','getZoomRatio','_handleBasicShapeUpdateConnectorLineShape','ShapeFlowChartSummingJunctionIcon','map','FlowchartManualInput','getDocumentData','UpDownArrowCallout','ShapeRoundRectIcon','indexOf','shape.type.flow-chart-decision','univer-w-28','ShapeDonutIcon','shape.type.folder-corner','ShapeFlowChartTerminatorIcon','sheets-shape.line.arrowType.stealthArrow','pipe','ShapeHorizontalScrollIcon','univer-max-h-[75vh]\x20univer-w-[320px]\x20univer-pb-2','ShapeHexagonIcon','defineProperty','_editingParams$','setContextValue','changeEnd$','UpDownArrow','EllipseRibbon2','with','sheets-shape.line.sketchType.freehand','_clearShapeAdjustControls','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','DoubleWave','onPointerDown$','align.top','ShapeFlowChartManualInputIcon','angular','toolbar.verticalAlignMode.main','shape.type.curved-connector3-arrow1','SHAPE_TEXT','_registerMoveHandler','CornerTabs','ShapeFlowChartMultidocumentIcon','ShapeMathMultiplyIcon','FlowChartInputOutput','pushUndoRedo','ShapeActionButtonBeginningIcon','shape.type.ribbon2','getStartConnectInfo','ShapeTriangleIcon','180tiYQZI','#000000','shape.type.double-wave','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md','Frame','onStarting','shape.type.math-divide','clip-adj-','Rectangle','gradientType','#ffffff','gdRefAng','sheets-shape.line.arrowType.openArrow','onDblclick$','shape.type.flow-chart-multidocument','sheets-shape.fill.picture.rotateWithShape','COMMAND','FlowChartOfflineStorage','toolbar.fillColor.main','_activeImageId','input','mainComponent','shape.type.pie','shape.type.can','BasicShape','align.middle','_addShapeConnectorHandlerObjects','ShapeIcon','_registerGroupFeaturePasteHook','shape.type.donut','lineJoinType','shape.type.curved-up-arrow','pluginName','shape.type.callout1','ShapeCloudIcon','FlowchartDecision','registerCommand','calculate','height','ShapeStar24Icon','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','redo','WedgeRectCallout','BorderCallout2','ShapeUpDownArrowIcon','ShapeMoonIcon','scaleY','_baseShapeTop','Diamond','beforeCommandExecuted','FlowchartSummingJunction','shape.type.right-brace','Tile','DRAWING_IMAGE','shape.type.snip-round-rect','_baseLeft','ShapeChevronIcon','toolbar.resetColor','FlowchartExtract','shape.type.chart-x','FlowchartInternalStorage','getObject','BentConnector3','changeShapeType','ShapeActionButtonBackPreviousIcon','setEditing','setPrstGeom','getFreeze','ShapeFlowChartPunchedCardIcon','asObservable','lineShapeId','getDrawingVisible','shape.group.','src','equationShape','isHit','Small','HorizontalScroll','univer-pt-2','draw','flipY','ShapeFunnelIcon','ShapeHeptagonIcon','_componentManager','ShapeBracePairIcon','min','RightTriangle','isStartConnectorPoint','ShapePositionWrapper','sheets-shape.rotateRight90','ShapeNoSmokingIcon','SELECTOR','FlowchartMerge','SmileyFace','SnipRoundRect','ShapeRound2SameRectIcon','editingParams$','verticalAlign','_handleConnectedEndpointPointerUp','stringify','Round2SameRect','subscribeEvent','shape.type.flow-chart-punched-tape','shape.type.arc','OPERATION','sheets-shape.line.beginArrowSize','StarAndBanner','Pie','_isHighlighted','add$','dataStream','Star5','ShapeCurvedConnector3Arrow2Icon','URL','_shapeId','RightBracket','basicShape','LongDashDot','ShapeBlockArcIcon','shapeData','getSkeleton','onCommandExecuted','sheets-shape.line.solidLine','LeftRightArrowCallout','_cxtHandlerPointerMove','imageFillMode','updateDocumentStyle','univer-flex\x20univer-flex-col\x20univer-gap-3','ShapeLeftRightRibbonIcon','RIGHT','sheetTransform','_init','SwooshArrow','QuadArrowCallout','_initEditingParams','FromArray','Round2DiagRect','shape-text-editor-position-wrapper','ShapeEditor','shape.type.left-brace','localeService','CircularArrow','_clearShapeConnectorHandlerObjects','_shapes','Plaque','sheets-shape.fill.noFill','ShapeAccentCallout3Icon','sheets-shape.line.noLine','AccentCallout2','Image','_sheetCanvasPopManagerService','FlowchartOnlineStorage','scene','shape.type.math-not-equal','shape.type.trapezoid','registerClipDelegate','sheets-shape.line.arrowType.diamondArrow','UturnArrow','shape.type.snip1-rect','permission.dialog.editErr','prstGeom','shape.type.moon','ShapeFlowChartDelayIcon','None','OvalArrow','shapeType','click','ActionButtonReturn','shape.type.flow-chart-collate','CROSSHAIR','#4285f4','ShapeActionButtonForwardNextIcon','onPointerUp$','ShapeRound1RectIcon','isRichText','changeStart$','addClipboardHook','shape.type.accent-callout1','shape.type.down-arrow-callout','MIDDLE','ShapeIrregularSeal1Icon','ShapeCubeIcon','warn','univer-grid\x20univer-grid-cols-10\x20univer-gap-1','onRendered','ShapeFlowChartManualOperationIcon','registerRenderModule','ShapeFlowChartMagneticTapeIcon','sheets-shape.line.capType.flat','ShapeRound2DiagRectIcon','stroke','_draggingConnectorId','ShapeStar10Icon','setShouldShowAdjust','gdRefX','UNIVER_SHEET','_activeTargetShapeId','UNIVER_DOC','get','_generateCutPasteMutations','NoSmoking','next','sheets-shape.fill.picture.insert','ShapeFlowChartMergeIcon','FlowchartPunchedTape','_isDrawingShapePointDown','ShapeLeftCircularArrowIcon','shape.type.action-button-home','IrregularSeal2','group\x20univer-relative\x20univer-inline-block','target','ShapeFlowChartOrIcon','shape.type.quad-arrow','sheets-shape.fill.picture.offsetY','ShapeLeftRightArrowIcon','_initPermission','sheets-shape.fill.title','shape.type.up-down-arrow','getColorFromTheme','BorderCallout3','RightArrowCallout','rotation','_commandExecutedListener','ShapeCircularArrowIcon','disposeWithMe','onPointerMove$','visible','_drawShapeText','_context','FlowchartPunchedCard','symbol','call','cxnIndex','_drawingManagerService','imageTile','_adjHandlerPointerUp','Wave','pageSize','shape.type.pentagon','sheets-shape.line.capType.round','mergeMenu','isHitLine'];_0x55e5=function(){return _0xc0aab;};return _0x55e5();}function Do(_0x3184d9){const _0x18211a=_0x173eea;var _0x219502;let _0x2eb27a=_0x3184d9[_0x18211a(0x471)](_0x584851),_0x2e302f=_0x3184d9[_0x18211a(0x471)](_0x41728c),_0x10d561=_0x3184d9['get'](_0x4a3489),_0x155078=_0x3184d9[_0x18211a(0x471)](Y),_0x248382=_0x3184d9[_0x18211a(0x471)](_0x511e68),_0x1fd277=_0x5e4572[_0x18211a(0x2d5)],_0x245833=()=>{const _0x1f63ba=_0x18211a;var _0x54f7b3;let _0x400977=_0x10d561[_0x1f63ba(0x246)]()['filter'](_0x4e820d=>_0x4e820d[_0x1f63ba(0x319)]===_0x217b4d[_0x1f63ba(0xf5)]);if(_0x400977[_0x1f63ba(0x49f)]!==0x1)return _0x1fd277;let _0x11e9e7=_0x155078[_0x1f63ba(0x4d5)](),_0x3d7361=(_0x11e9e7==null?void 0x0:_0x11e9e7['unitId'])||_0x400977[0x0]['unitId'],_0x4d01af=(_0x11e9e7==null?void 0x0:_0x11e9e7[_0x1f63ba(0x12a)])||_0x400977[0x0][_0x1f63ba(0x12a)],_0x3d04be=(_0x11e9e7==null?void 0x0:_0x11e9e7['shapeId'])||_0x400977[0x0][_0x1f63ba(0x12c)],_0xf94474=_0x248382[_0x1f63ba(0xf3)](_0x3d7361,_0x4d01af,_0x3d04be);if(!_0xf94474)return _0x1fd277;let _0x49465d=_0xf94474[_0x1f63ba(0x124)]();if(!_0x49465d||!(_0x1f63ba(0x271)in _0x49465d))return _0x1fd277;let _0x8d3fbe=_0x49465d['dataModel'];return(_0x54f7b3=_0x8d3fbe==null?void 0x0:_0x8d3fbe['va'])==null?_0x1fd277:_0x54f7b3;};return{'id':qa['id'],'icon':(_0x219502=Eo[_0x18211a(0x21a)](_0x4cfeec=>_0x4cfeec[_0x18211a(0x2c1)]===_0x1fd277))==null?void 0x0:_0x219502['icon'],'tooltip':_0x18211a(0x39e),'type':_0x46ebf7[_0x18211a(0x406)],'selections':Eo,'value$':new _0x1e6ee2(_0x1d6291=>{const _0x4a4608=_0x18211a;let _0x182469=_0x2eb27a[_0x4a4608(0x424)](_0x205a7f=>{const _0x1d72a0=_0x4a4608;_0x205a7f['id']===qa['id']&&_0x1d6291[_0x1d72a0(0x474)](_0x245833());}),_0x46d029=_0x155078[_0x4a4608(0x40b)][_0x4a4608(0x30e)](()=>{const _0xf95a5a=_0x4a4608;_0x1d6291[_0xf95a5a(0x474)](_0x245833());});return _0x1d6291['next'](_0x245833()),()=>{_0x182469['dispose'](),_0x46d029['unsubscribe']();};}),'hidden$':_0x2e302f['subscribeContextValue$'](_0x34830e)['pipe'](_0x3789dc(_0x37f867=>!_0x37f867))};}function Oo(_0x516e80){const _0x5dc4b2=_0x173eea;let _0x90c4d0=_0x516e80[_0x5dc4b2(0x471)](_0x2d0725);return{'id':ho['id'],'type':_0x46ebf7[_0x5dc4b2(0x406)],'selections':[{'label':{'name':vo,'hoverable':!0x1,'selectable':!0x1,'props':{'id':ho['id']}}}],'icon':_0x5dc4b2(0x3c6),'tooltip':_0x5dc4b2(0x53f),'activated$':_0x69caba(_0x90c4d0,!0x1,()=>new _0x1e6ee2(_0xd5c24b=>{const _0x4ff7da=_0x5dc4b2;_0xd5c24b[_0x4ff7da(0x474)](!0x1);})),'hidden$':_0x59ea29(_0x516e80,_0x59e014[_0x5dc4b2(0x46e)]),'disabled$':_0x3ba09e(_0x516e80)};}const ko={[_0x2821d8[_0x173eea(0x575)]]:{[_0x211892[_0x173eea(0x520)]]:{[qa['id']]:{'order':3.5,'menuItemFactory':Do},[Ja['id']]:{'order':3.4,'menuItemFactory':Co}},[_0x211892[_0x173eea(0x2e6)]]:{[_0x26a27b['id']]:{'order':0x1,'menuItemFactory':wo,[_0x4946d0['id']]:{'order':0x0,'menuItemFactory':To}}}},[_0x4b2520[_0x173eea(0x11a)]]:{[ho['id']]:{'order':0x4,'menuItemFactory':Oo}}};let Ao=class extends _0x399c04{constructor(_0x257866,_0x5ed111,_0x36d891,_0x1164cf,_0x5ccb2f,_0x625eb5,_0x21ef83,_0x5654ce,_0x306fa9,_0x5de6c1,_0x14f4ea){const _0x10a23b=_0x173eea;super(),this[_0x10a23b(0x4a9)]=_0x257866,this['_sheetInterceptorService']=_0x5ed111,this['_sidebarService']=_0x36d891,this[_0x10a23b(0x1d6)]=_0x1164cf,this[_0x10a23b(0x16e)]=_0x5ccb2f,this[_0x10a23b(0x51e)]=_0x625eb5,this[_0x10a23b(0x3fe)]=_0x21ef83,this[_0x10a23b(0x21f)]=_0x5654ce,this[_0x10a23b(0x494)]=_0x306fa9,this[_0x10a23b(0x441)]=_0x5de6c1,this[_0x10a23b(0x251)]=_0x14f4ea,J(this,_0x10a23b(0x33a),null),J(this,'_activeShapeInfo',null),J(this,_0x10a23b(0x171),!0x1),this[_0x10a23b(0x22e)](),this[_0x10a23b(0x595)](),this[_0x10a23b(0x48b)](this['_univerInstanceService'][_0x10a23b(0x11c)](_0x59e014[_0x10a23b(0x46e)])[_0x10a23b(0x30e)](_0x1b84d0=>{const _0x5aff0a=_0x10a23b;var _0x367e20;_0x1b84d0||(_0x367e20=this[_0x5aff0a(0x33a)])==null||_0x367e20['dispose']();})),this[_0x10a23b(0x2ec)](),this[_0x10a23b(0x545)]();}['_initMenu'](){const _0x5857ea=_0x173eea;this[_0x5857ea(0x1d6)][_0x5857ea(0x49b)](ko);}['_registerShapeMenu'](){const _0x7c5067=_0x173eea;this[_0x7c5067(0x441)][_0x7c5067(0x561)](_0x217b4d[_0x7c5067(0xf5)],this[_0x7c5067(0x142)][_0x7c5067(0x2f8)](this)),this[_0x7c5067(0x441)]['registerFeatureMenuOffset'](_0x217b4d[_0x7c5067(0xf5)],0x6,0x4);}['getShapePopupMenus'](_0x1756a3,_0x541bea,_0x3eeebf,_0x43d19a){const _0x2e852c=_0x173eea;return[{'label':_0x2e852c(0x23f),'index':0x0,'commandId':Xa['id'],'commandParams':{'unitId':_0x1756a3,'subUnitId':_0x541bea,'drawingId':_0x3eeebf},'disable':_0x43d19a===_0x217b4d[_0x2e852c(0x2cc)]},{'label':_0x2e852c(0x163),'index':0x1,'commandId':_0x37e40c['id'],'commandParams':{'unitId':_0x1756a3,'drawings':[{'unitId':_0x1756a3,'subUnitId':_0x541bea,'drawingId':_0x3eeebf,'drawingType':_0x43d19a}]},'disable':!0x1},{'label':_0x2e852c(0x1cd),'index':0x2,'commandId':Ya['id'],'commandParams':{'unitId':_0x1756a3,'subUnitId':_0x541bea,'drawingId':_0x3eeebf},'disable':!0x1},{'label':'sheets-shape.toggleFlipH','index':0x3,'commandId':_0x2c1dfc['id'],'commandParams':{'unitId':_0x1756a3,'subUnitId':_0x541bea,'shapeId':_0x3eeebf,'flipH':!0x0},'disable':!0x1},{'label':'sheets-shape.toggleFlipV','index':0x4,'commandId':_0x2c1dfc['id'],'commandParams':{'unitId':_0x1756a3,'subUnitId':_0x541bea,'shapeId':_0x3eeebf,'flipV':!0x0},'disable':!0x1},{'label':_0x2e852c(0x404),'index':0x4,'commandId':_0x2bb52e['id'],'commandParams':{'unitId':_0x1756a3,'subUnitId':_0x541bea,'shapeId':_0x3eeebf,'rotate':0x5a},'disable':!0x1},{'label':'sheets-shape.rotateLeft90','index':0x4,'commandId':_0x2bb52e['id'],'commandParams':{'unitId':_0x1756a3,'subUnitId':_0x541bea,'shapeId':_0x3eeebf,'rotate':-0x5a},'disable':!0x1}];}[_0x173eea(0x1f9)](_0x2bd392,_0x592b67,_0x58ea34){const _0x12caf4=_0x173eea;let _0x261cac=this[_0x12caf4(0x16e)][_0x12caf4(0x30f)](_0x2bd392,_0x592b67,_0x58ea34),_0x35e007=this['_sheetsShapeService']['getShapeDataById'](_0x2bd392,_0x592b67,_0x58ea34);return _0x261cac!==void 0x0&&_0x35e007!==void 0x0?{'shapeData':_0x35e007,'shapeId':_0x58ea34,'shapeType':_0x261cac,'unitId':_0x2bd392,'subUnitId':_0x592b67,'disableShapeOption':!0x1}:null;}['_registerOperations'](){const _0x40c1dd=_0x173eea;this[_0x40c1dd(0x48b)](this['_commandService'][_0x40c1dd(0x424)](_0x4a19c0=>{const _0x2740f3=_0x40c1dd;if(_0x4a19c0['id']===Xa['id']){let {unitId:_0x4f564c,subUnitId:_0x39979e,drawingId:_0x4a28e4}=_0x4a19c0['params'];this['_activeShapeInfo']=this[_0x2740f3(0x1f9)](_0x4f564c,_0x39979e,_0x4a28e4),this['_openShapeEditPanel']();}if(_0x4a19c0['id']===Ya['id']&&(this[_0x2740f3(0x1c4)]=null,this['_closeShapeEditPanel']()),_0x4a19c0['id']===_0x5855dd['id']){let {unitId:_0x20fa21,subUnitId:_0x43c213,shapeId:_0x55332b}=_0x4a19c0[_0x2740f3(0x34b)];if(this[_0x2740f3(0x1c4)]&&this['_activeShapeInfo'][_0x2740f3(0x118)]===_0x55332b){let _0x3ffa0d=this[_0x2740f3(0x1f9)](_0x20fa21,_0x43c213,_0x55332b);_0x3ffa0d&&(this['_activeShapeInfo']=_0x3ffa0d);}}})),this[_0x40c1dd(0x48b)](this[_0x40c1dd(0x494)][_0x40c1dd(0x4f1)][_0x40c1dd(0x30e)](_0x346e2a=>{const _0x33715a=_0x40c1dd;if(this[_0x33715a(0x171)]===!0x1)return;if(_0x346e2a['length']===0x0){this[_0x33715a(0x1c4)]=null,this[_0x33715a(0x2a4)]();return;}if(_0x346e2a[_0x33715a(0x49f)]===0x1&&_0x346e2a[0x0]['drawingType']===_0x217b4d['DRAWING_SHAPE']&&(this['_activeShapeInfo']=this[_0x33715a(0x1f9)](_0x346e2a[0x0][_0x33715a(0x1cb)],_0x346e2a[0x0][_0x33715a(0x12a)],_0x346e2a[0x0][_0x33715a(0x12c)]),this['_activeShapeInfo'])){this[_0x33715a(0x285)]();return;}let _0x3d2ca8=_0x346e2a[_0x33715a(0x342)](_0x4b0675=>_0x4b0675['drawingType']===_0x217b4d['DRAWING_SHAPE']);if(_0x346e2a['length']>0x1&&_0x3d2ca8[_0x33715a(0x49f)]===_0x346e2a[_0x33715a(0x49f)]){if(this['_activeShapeInfo']=this['_getShapeInfo'](_0x346e2a[0x0][_0x33715a(0x1cb)],_0x346e2a[0x0]['subUnitId'],_0x346e2a[0x0][_0x33715a(0x12c)]),this[_0x33715a(0x1c4)]){this['_openShapeEditPanel']();return;}}else{if(this[_0x33715a(0x1c4)]=this[_0x33715a(0x1f9)](_0x346e2a[0x0]['unitId'],_0x346e2a[0x0][_0x33715a(0x12a)],_0x346e2a[0x0][_0x33715a(0x12c)]),this['_activeShapeInfo']){this[_0x33715a(0x1c4)]['disableShapeOption']=!0x0,this[_0x33715a(0x285)]();return;}}this[_0x33715a(0x2a4)]();}));}[_0x173eea(0x22e)](){const _0x5af7de=_0x173eea;[[_0x5af7de(0x3c6),_0x27bb07],[_0x5af7de(0x1ce),_0x11108b],[_0x5af7de(0x592),_0xa4b4c8],[_0x5af7de(0x231),_0x1ba823],[_0x5af7de(0x305),_0x1013bf],['ShapeAccentCallout2Icon',_0x5bb21c],[_0x5af7de(0x43d),_0x2bf297],[_0x5af7de(0x3eb),_0x277592],[_0x5af7de(0x3a7),_0x1aeda5],[_0x5af7de(0x14e),_0x296084],[_0x5af7de(0x505),_0x179bf8],[_0x5af7de(0xed),_0x4f57f9],[_0x5af7de(0x456),_0x2d2eeb],[_0x5af7de(0x4e0),_0x1751fb],['ShapeActionButtonHomeIcon',_0x3a53b9],[_0x5af7de(0x1db),_0x505bac],[_0x5af7de(0x306),_0x1ba481],[_0x5af7de(0x2e2),_0x3e9e63],[_0x5af7de(0x51d),_0x4617ec],['ShapeArcIcon',_0x275886],[_0x5af7de(0x2f0),_0x322b16],['ShapeBentConnector3Arrow1Icon',_0x243cc2],[_0x5af7de(0x366),_0x11c4f4],[_0x5af7de(0x506),_0x156540],[_0x5af7de(0x4cd),_0x106570],[_0x5af7de(0x2ff),_0x3d514c],[_0x5af7de(0x421),_0x562479],[_0x5af7de(0x376),_0x1d9145],[_0x5af7de(0x55f),_0x2d7b78],[_0x5af7de(0x1b7),_0x107515],[_0x5af7de(0x3ff),_0x472bbe],[_0x5af7de(0x252),_0x331d6f],[_0x5af7de(0x260),_0x5b54f8],[_0x5af7de(0x262),_0x5e786d],[_0x5af7de(0x50b),_0x2e28d8],[_0x5af7de(0x223),_0x131800],['ShapeChartPlusIcon',_0x52d5],[_0x5af7de(0x324),_0x56cbc0],[_0x5af7de(0x596),_0x1c5dd1],[_0x5af7de(0x3e3),_0x34641e],[_0x5af7de(0x198),_0x56b101],[_0x5af7de(0x48a),_0x43df4e],[_0x5af7de(0x573),_0x49d297],['ShapeCloudIcon',_0x511dce],[_0x5af7de(0x125),_0xc84ff3],[_0x5af7de(0x513),_0x4f109c],[_0x5af7de(0x460),_0x2cee75],['ShapeCurvedConnector3Arrow1Icon',_0x39a437],['ShapeCurvedConnector3Arrow2Icon',_0x4b3e6b],['ShapeCurvedConnector3Icon',_0x3ac9db],[_0x5af7de(0x1a7),_0x90ae94],[_0x5af7de(0x4e6),_0x5a10b4],[_0x5af7de(0x185),_0x40e231],[_0x5af7de(0x4d6),_0x4515a6],[_0x5af7de(0x4a1),_0x54ec0b],[_0x5af7de(0x22a),_0x5cd598],[_0x5af7de(0x591),_0x20f34e],[_0x5af7de(0x523),_0x2bebda],['ShapeDonutIcon',_0x263c18],[_0x5af7de(0x339),_0x2a55f6],['ShapeDownArrowCalloutIcon',_0x24dac6],[_0x5af7de(0x1fa),_0x5a8573],[_0x5af7de(0x4a8),_0x1687e6],[_0x5af7de(0x531),_0xefad2a],[_0x5af7de(0x1a6),_0x22129f],[_0x5af7de(0x1e4),_0x5ce03b],[_0x5af7de(0x121),_0x1ce164],['ShapeFlowChartConnectorIcon',_0x5c3ee4],[_0x5af7de(0x274),_0x18ec36],[_0x5af7de(0x44d),_0x207c17],[_0x5af7de(0x58c),_0x9929c3],[_0x5af7de(0x255),_0x3243ea],[_0x5af7de(0x242),_0x5c02a6],[_0x5af7de(0x240),_0x4214f8],[_0x5af7de(0x521),_0x3b30f3],[_0x5af7de(0x232),_0x8c27f0],['ShapeFlowChartMagneticDrumIcon',_0x33926f],[_0x5af7de(0x466),_0xbe09af],['ShapeFlowChartManualInputIcon',_0x14e3f6],[_0x5af7de(0x464),_0x17e91e],[_0x5af7de(0x476),_0x1312a9],[_0x5af7de(0x3a3),_0x6aad92],['ShapeFlowChartOfflineStorageIcon',_0x5013df],['ShapeFlowChartOffpageConnectorIcon',_0x2d70b6],[_0x5af7de(0x225),_0x45d1c5],[_0x5af7de(0x47e),_0x16d524],['ShapeFlowChartPredefinedProcessIcon',_0x4a3bc7],['ShapeFlowChartPreparationIcon',_0x983f5d],[_0x5af7de(0x323),_0x7ef462],['ShapeFlowChartPunchedCardIcon',_0x1fe5f3],[_0x5af7de(0x24f),_0x5e7787],['ShapeFlowChartSortIcon',_0x592932],[_0x5af7de(0x37e),_0x49305e],[_0x5af7de(0x389),_0x5d8103],[_0x5af7de(0x58f),_0x54a41f],[_0x5af7de(0x290),_0xbf8fdb],['ShapeFunnelIcon',_0x17cc78],[_0x5af7de(0x54b),_0x20f0e5],[_0x5af7de(0x264),_0x631e02],[_0x5af7de(0x160),_0x457406],[_0x5af7de(0x313),_0x49452f],[_0x5af7de(0x3fd),_0x34006a],[_0x5af7de(0x38e),_0x326847],[_0x5af7de(0x4f9),_0x6ad4ed],[_0x5af7de(0x38c),_0x36e9ca],[_0x5af7de(0x45f),_0x1fe77c],[_0x5af7de(0x1ea),_0x595b71],[_0x5af7de(0x1f8),_0x1537d2],[_0x5af7de(0x4db),_0x257293],[_0x5af7de(0x25e),_0x75c8c5],[_0x5af7de(0x16b),_0x1df104],[_0x5af7de(0x479),_0x373813],[_0x5af7de(0x156),_0x467ac1],[_0x5af7de(0x481),_0x436be4],[_0x5af7de(0x136),_0xa5383c],['ShapeLeftRightRibbonIcon',_0x40a060],[_0x5af7de(0x4aa),_0xc06a91],[_0x5af7de(0x268),_0x1cdf41],[_0x5af7de(0x4e3),_0xabc949],[_0x5af7de(0x120),_0x18ed35],[_0x5af7de(0x21c),_0x407bea],[_0x5af7de(0x131),_0x36a8fa],['ShapeMathEqualIcon',_0x598fb7],['ShapeMathMinusIcon',_0x3f7dd4],[_0x5af7de(0x3a4),_0x1b6ec0],[_0x5af7de(0x2e1),_0x5ac1c9],[_0x5af7de(0x2cb),_0x11e758],[_0x5af7de(0x3d8),_0x10889e],[_0x5af7de(0x405),_0x1e42d3],[_0x5af7de(0x1aa),_0x382aed],['ShapeNotchedRightArrowIcon',_0x234f1f],[_0x5af7de(0x1da),_0x4c5066],[_0x5af7de(0x556),_0x41998f],[_0x5af7de(0x358),_0x247443],[_0x5af7de(0x27a),_0x471872],[_0x5af7de(0x145),_0x52113a],[_0x5af7de(0x1f4),_0x102c83],['ShapePlaqueTabsIcon',_0x13f863],[_0x5af7de(0x166),_0x1d939c],[_0x5af7de(0x597),_0xfad1dd],[_0x5af7de(0x52f),_0x192fda],[_0x5af7de(0x1dc),_0x236f4b],[_0x5af7de(0x35d),_0x4aef70],['ShapeRectTextboxVerticalIcon',_0x5f5182],[_0x5af7de(0x229),_0x38f5a0],[_0x5af7de(0x52a),_0x2432b4],[_0x5af7de(0x2ae),_0x41bbc5],[_0x5af7de(0x36f),_0x121f5c],[_0x5af7de(0x1fe),_0x1a111c],['ShapeRightBracketIcon',_0x5a3519],[_0x5af7de(0x458),_0x4045dd],[_0x5af7de(0x468),_0xa639e],['ShapeRound2SameRectIcon',_0xd1337f],[_0x5af7de(0x383),_0x5a7391],[_0x5af7de(0x4d9),_0x326138],[_0x5af7de(0x32c),_0xd4d543],[_0x5af7de(0x103),_0x43dc0b],[_0x5af7de(0x287),_0x208a75],[_0x5af7de(0x19d),_0x339771],[_0x5af7de(0x2a2),_0x45c6e1],[_0x5af7de(0x24d),_0xe28163],[_0x5af7de(0x46b),_0x40fcb9],[_0x5af7de(0x1b9),_0x3f7230],[_0x5af7de(0x23a),_0x1a4526],['ShapeStar24Icon',_0x14d7dd],['ShapeStar32Icon',_0x38459f],[_0x5af7de(0x49d),_0x2a873d],[_0x5af7de(0x362),_0x40f004],[_0x5af7de(0x188),_0x5bf4c5],[_0x5af7de(0x235),_0x582c6c],['ShapeStar8Icon',_0x1329f4],[_0x5af7de(0x4dc),_0x5c3a2b],[_0x5af7de(0x2fc),_0x4c13ed],[_0x5af7de(0x275),_0x561711],['ShapeSunIcon',_0x1c71cb],[_0x5af7de(0x2cf),_0x32cbf6],[_0x5af7de(0x55c),_0x5b6f2d],['ShapeTrapezoidIcon',_0x1bb9a6],[_0x5af7de(0x3aa),_0x3297be],['ShapeUpArrowCalloutIcon',_0x399b92],[_0x5af7de(0x213),_0x2d5b14],[_0x5af7de(0x2bd),_0x19d6dc],[_0x5af7de(0x3d7),_0x4a3231],[_0x5af7de(0x353),_0x352912],[_0x5af7de(0x4a0),_0x55a2b6],['ShapeWaveIcon',_0x23d5f6],[_0x5af7de(0x4b9),_0x52d230],[_0x5af7de(0x4a7),_0x2cea81],[_0x5af7de(0x2fa),_0xbece69],[Za,uo],[vo,xo],[_0x432607,bo]]['forEach'](([_0x322b03,_0x2ddd3a])=>{const _0xc5df08=_0x5af7de;this[_0xc5df08(0x48b)](this[_0xc5df08(0x3fe)][_0xc5df08(0x26c)](_0x322b03,_0x2ddd3a));});}['_openShapeEditPanel'](){const _0x7ab8d9=_0x173eea;this[_0x7ab8d9(0x33a)]=this['_sidebarService']['open']({'id':Za,'header':{'title':this[_0x7ab8d9(0x51e)]['t'](_0x7ab8d9(0x4c4))},'width':0x184,'children':{'label':Za,...this[_0x7ab8d9(0x1c4)]},'onClose':()=>{const _0xa9dd48=_0x7ab8d9;this[_0xa9dd48(0x494)][_0xa9dd48(0x257)](null),this[_0xa9dd48(0x251)][_0xa9dd48(0x391)](_0x34830e,!0x1),this[_0xa9dd48(0x33a)]=null;}}),this[_0x7ab8d9(0x171)]=!0x0;}[_0x173eea(0x2a4)](){const _0x25fcbd=_0x173eea;this[_0x25fcbd(0x171)]=!0x1,this[_0x25fcbd(0x558)][_0x25fcbd(0x572)](Za),this[_0x25fcbd(0x33a)]=null,this[_0x25fcbd(0x251)][_0x25fcbd(0x391)](_0x34830e,!0x1),this[_0x25fcbd(0x494)][_0x25fcbd(0x257)](null);}};Ao=Q([Z(0x0,_0x2d0725),Z(0x1,_0x18290d(_0xdb5187)),Z(0x2,_0x18290d(_0x3d9c09)),Z(0x3,_0x4d389d),Z(0x4,_0x18290d(_0x511e68)),Z(0x5,_0x18290d(_0x14ed3e)),Z(0x6,_0x18290d(_0x43e087)),Z(0x7,_0x584851),Z(0x8,_0x4313c8),Z(0x9,_0x18290d(_0x16e7ad)),Z(0xa,_0x41728c)],Ao);var jo='@univerjs-pro/sheets-shape-ui',Mo=_0x173eea(0x175);const No=_0x173eea(0x35f);Symbol(No);const Po={};let Fo=class extends _0x399c04{constructor(_0x4dc0ba,_0x24b68a,_0x3b50ea,_0x5e0bca,_0x1a8bd3){const _0x206fb7=_0x173eea;super(),this['_context']=_0x4dc0ba,this[_0x206fb7(0x494)]=_0x24b68a,this[_0x206fb7(0x292)]=_0x3b50ea,this[_0x206fb7(0x4a9)]=_0x5e0bca,this[_0x206fb7(0x11b)]=_0x1a8bd3,J(this,_0x206fb7(0x3be),null),J(this,_0x206fb7(0x320),null),J(this,_0x206fb7(0x27f),null),J(this,_0x206fb7(0xee),void 0x0),J(this,_0x206fb7(0x43a),[]),J(this,_0x206fb7(0x3e2),0x0),J(this,_0x206fb7(0x147),0x0),J(this,_0x206fb7(0x17f),0x0),J(this,'_baseHeight',0x0),J(this,_0x206fb7(0x143),!0x1),J(this,_0x206fb7(0x102),void 0x0),J(this,_0x206fb7(0x162),void 0x0),J(this,_0x206fb7(0x57e),void 0x0),J(this,_0x206fb7(0x496),void 0x0),J(this,_0x206fb7(0x21e),!0x1),this[_0x206fb7(0x49e)](),this[_0x206fb7(0x3a1)]();}[_0x173eea(0x1f3)](){const _0x283865=_0x173eea;this[_0x283865(0x534)]();}[_0x173eea(0x4cf)](){const _0xdc8c6e=_0x173eea;this[_0xdc8c6e(0x534)](),this[_0xdc8c6e(0x530)](!0x0);}[_0x173eea(0x35a)](_0x42fe12,_0x50d0b9,_0x284961,_0x434b1f){const _0x37016b=_0x173eea;let _0x1df0c6=_0x42fe12;if(!(_0x1df0c6===_0x1e291f[_0x37016b(0x44e)]||_0x42fe12==='custom'))try{let _0x4f791d=new _0x3e80af(_0x1df0c6,_0x37016b(0x3b2)+_0x42fe12);return _0x434b1f&&_0x4f791d[_0x37016b(0x187)]({'adjustValues':_0x434b1f},!0x0),_0x4f791d[_0x37016b(0x1c8)]({'width':_0x50d0b9,'height':_0x284961}),_0x4f791d;}catch{return;}}[_0x173eea(0x37b)](_0x1311cc,_0x259b04,_0x21cd93){const _0x496280=_0x173eea;let _0x3fe1e4={'unitId':_0x1311cc,'subUnitId':_0x259b04,'drawingId':_0x21cd93},_0x1ea432=this['_drawingManagerService'][_0x496280(0x19a)](_0x3fe1e4);if(!(!_0x1ea432||_0x1ea432[_0x496280(0x319)]!==_0x217b4d[_0x496280(0x3e0)]))return _0x1ea432;}['_getImagePrstGeom'](_0x290c3a,_0x5f564e,_0x2c9f39){const _0x220c8c=_0x173eea;let _0x34f98f=this[_0x220c8c(0x292)]['getRenderById'](_0x290c3a);if(!_0x34f98f)return;let {scene:_0x59e91c}=_0x34f98f,_0x4ce0c7=_0x4b2a63({'unitId':_0x290c3a,'subUnitId':_0x5f564e,'drawingId':_0x2c9f39}),_0x547dfd=_0x59e91c[_0x220c8c(0x3e8)](_0x4ce0c7);if(_0x547dfd instanceof _0x554422){let _0x10dc9c=_0x547dfd[_0x220c8c(0x44b)];if(_0x10dc9c)return{'prstGeom':_0x10dc9c,'adjustValues':_0x547dfd['prstGeomAdjValues']};}}[_0x173eea(0x530)](_0x779d6d=!0x1){const _0x4d603a=_0x173eea;if(!this[_0x4d603a(0x320)]||!this[_0x4d603a(0x27f)]||!this[_0x4d603a(0x3be)])return;let _0x42c5fa=this[_0x4d603a(0x292)][_0x4d603a(0xf8)](this[_0x4d603a(0x320)]);if(!_0x42c5fa||!_0x42c5fa[_0x4d603a(0x395)](_0x15a10d)[_0x4d603a(0x32e)]())return;let {scene:_0x90d055}=_0x42c5fa,_0x5a94d2=this['_getImageDrawingInfo'](this[_0x4d603a(0x320)],this[_0x4d603a(0x27f)],this[_0x4d603a(0x3be)]);if(!_0x5a94d2)return;let {transform:_0x51b68a}=_0x5a94d2;if(!_0x51b68a)return;let {left:_0x486a7a,top:_0xc79786,width:_0x2db228,height:_0x1b00fc,flipX:_0x1a8ee2,flipY:_0x8c9720,angle:_0x2bcb9b=0x0}=_0x51b68a;if(_0x486a7a===void 0x0||_0xc79786===void 0x0)return;let _0x3fa233=this[_0x4d603a(0x122)](this[_0x4d603a(0x320)],this['_subUnitId'],this[_0x4d603a(0x3be)]);if(!_0x3fa233)return;if(_0x779d6d){let _0x531c46=this['_getOrCreateShapeModel'](_0x3fa233[_0x4d603a(0x44b)],_0x2db228||0x0,_0x1b00fc||0x0,_0x3fa233[_0x4d603a(0x1d1)]);if(!_0x531c46)return;this[_0x4d603a(0xee)]=_0x531c46[_0x4d603a(0x32b)]();}let _0x1d328b=this['_activeAdjustPointList'];if(!(!_0x1d328b||_0x1d328b[_0x4d603a(0x49f)]===0x0))for(let _0x3c9bd9=0x0;_0x3c9bd9<_0x1d328b[_0x4d603a(0x49f)];_0x3c9bd9++){let _0x3153c4=_0x1d328b[_0x3c9bd9],_0x4ab5b3=_0x3153c4['x'],_0x2e6d24=_0x3153c4['y'];if(_0x1a8ee2&&(_0x4ab5b3=(_0x2db228||0x0)-_0x4ab5b3),_0x8c9720&&(_0x2e6d24=(_0x1b00fc||0x0)-_0x2e6d24),_0x2bcb9b!==0x0){let _0x4dd3d7=(_0x2db228||0x0)/0x2,_0x43c426=(_0x1b00fc||0x0)/0x2,_0x11455a=_0x2bcb9b*Math['PI']/0xb4,_0x20f453=Math[_0x4d603a(0x560)](_0x11455a),_0x184edb=Math['sin'](_0x11455a),_0x1374b0=_0x4ab5b3-_0x4dd3d7,_0x177bfc=_0x2e6d24-_0x43c426;_0x4ab5b3=_0x4dd3d7+(_0x1374b0*_0x20f453-_0x177bfc*_0x184edb),_0x2e6d24=_0x43c426+(_0x1374b0*_0x184edb+_0x177bfc*_0x20f453);}let _0xe220a7={'x':_0x4ab5b3,'y':_0x2e6d24,'adjName':_0x3153c4[_0x4d603a(0x2ab)]};this[_0x4d603a(0x315)](_0x90d055,_0xe220a7,_0xe220a7['adjName'],_0x486a7a,_0xc79786,this[_0x4d603a(0x320)],this[_0x4d603a(0x27f)]);}}[_0x173eea(0x315)](_0x556d60,_0x1ab12c,_0x3b5ba8,_0x36441f,_0x325edb,_0x3d110a,_0x46d77a){const _0xd067ca=_0x173eea;if(!this[_0xd067ca(0x3be)])return;let _0x3e62b9=_0xd067ca(0x33f)+this[_0xd067ca(0x3be)]+'-'+_0x3b5ba8,_0x35b92a=_0x556d60[_0xd067ca(0x1e1)](_0x3e62b9);if(_0x35b92a){_0x35b92a['transformByState']({'left':_0x1ab12c['x']+_0x36441f-_0x38fd6a[_0xd067ca(0x1f6)],'top':_0x1ab12c['y']+_0x325edb-_0x38fd6a[_0xd067ca(0x1f6)]});return;}let _0x500b68=new fo(_0x3e62b9,{'left':_0x1ab12c['x']+_0x36441f-_0x38fd6a['adjHandleSize'],'top':_0x1ab12c['y']+_0x325edb-_0x38fd6a[_0xd067ca(0x1f6)],'adjName':_0x3b5ba8,'shapeId':this[_0xd067ca(0x3be)],'unitId':_0x3d110a,'subUnitId':_0x46d77a,'width':_0x38fd6a['adjHandleSize']+0x8,'height':_0x38fd6a[_0xd067ca(0x1f6)]+0x8,'zIndex':_0x2b5d9f+0x1,'evented':!0x0});this[_0xd067ca(0x43a)][_0xd067ca(0x4bd)](_0x500b68),this[_0xd067ca(0x345)](_0x500b68,_0x556d60,_0x3b5ba8),_0x556d60[_0xd067ca(0x36e)](_0x500b68,_0x2b5d9f+0x1);}['_clearControls'](){const _0x199756=_0x173eea;this['_shapes'][_0x199756(0x49f)]!==0x0&&(this['_shapes'][_0x199756(0x318)](_0xcaa9b2=>_0xcaa9b2['dispose']()),this[_0x199756(0x43a)]=[]);}['_getScrollInfo'](_0x1bc4ed,_0x2c474b){const _0x46133c=_0x173eea;var _0x70dbfd;let _0x3244a0={'x':0x0,'y':0x0},_0x5960b2=this[_0x46133c(0x292)][_0x46133c(0xf8)](_0x1bc4ed);if(!_0x5960b2||!_0x5960b2[_0x46133c(0x395)](_0x15a10d)[_0x46133c(0x423)](_0x2c474b))return _0x3244a0;let _0x562566=_0x5960b2[_0x46133c(0x395)](_0x558719),_0x327ac3=_0x562566==null?void 0x0:_0x562566[_0x46133c(0x321)]();if(!_0x327ac3)return _0x3244a0;let _0x116b36=(_0x70dbfd=this['_univerInstanceService'][_0x46133c(0x1b6)](_0x1bc4ed))==null?void 0x0:_0x70dbfd[_0x46133c(0x221)](_0x2c474b);if(!_0x116b36)return _0x3244a0;let _0x3f5b76=_0x37db43(_0x327ac3['sheetViewStartRow'],_0x327ac3[_0x46133c(0x30c)],_0x5960b2[_0x46133c(0x443)],_0x116b36);return _0x3f5b76?{'x':_0x3f5b76[_0x46133c(0x18d)],'y':_0x3f5b76[_0x46133c(0x2c8)]}:_0x3244a0;}[_0x173eea(0x25d)](_0x2c083a,_0x130032){const _0x224be0=_0x173eea;var _0x9a113a,_0x16187d;let _0x492a36=(_0x9a113a=this['_univerInstanceService'][_0x224be0(0x1b6)](_0x2c083a))==null?void 0x0:_0x9a113a['getSheetBySheetId'](_0x130032);return(_0x16187d=_0x492a36==null?void 0x0:_0x492a36['getZoomRatio']())==null?0x1:_0x16187d;}[_0x173eea(0x345)](_0x3b7ab8,_0x94a06c,_0xa563fb){const _0x428cdd=_0x173eea;this[_0x428cdd(0x48b)](_0x4d0bea(_0x3b7ab8[_0x428cdd(0x39a)][_0x428cdd(0x410)]((_0x4560e2,_0x53d5e9)=>{const _0xf2f42a=_0x428cdd;var _0xa291c3,_0x329ed6,_0x358031;let {unitId:_0x27d0f0,subUnitId:_0x5b8a8d,drawingId:_0x2bb2ef}=_0x3b7ab8[_0xf2f42a(0x104)](),_0x59a20c=this[_0xf2f42a(0x37b)](_0x27d0f0,_0x5b8a8d,_0x2bb2ef);if(!(_0x59a20c!=null&&_0x59a20c[_0xf2f42a(0x18f)]))return;let {left:_0x181b3d,top:_0x1a6c9b,width:_0x4b137f,height:_0x553735}=_0x59a20c[_0xf2f42a(0x18f)];this[_0xf2f42a(0x3e2)]=_0x181b3d||0x0,this[_0xf2f42a(0x147)]=_0x1a6c9b||0x0,this[_0xf2f42a(0x17f)]=_0x4b137f||0x0,this[_0xf2f42a(0x100)]=_0x553735||0x0;let _0x505398=!!((_0xa291c3=_0x59a20c['transform'])!=null&&_0xa291c3[_0xf2f42a(0x2c2)]),_0x4a0c94=!!((_0x329ed6=_0x59a20c[_0xf2f42a(0x18f)])!=null&&_0x329ed6[_0xf2f42a(0x3fb)]),_0x220da0=((_0x358031=_0x59a20c[_0xf2f42a(0x18f)])==null?void 0x0:_0x358031[_0xf2f42a(0x13d)])||0x0,_0x906a40=this[_0xf2f42a(0x122)](_0x27d0f0,_0x5b8a8d,_0x2bb2ef);if(!_0x906a40)return;let _0x265589=this['_getOrCreateShapeModel'](_0x906a40[_0xf2f42a(0x44b)],this[_0xf2f42a(0x17f)],this[_0xf2f42a(0x100)],_0x906a40[_0xf2f42a(0x1d1)]);if(!_0x265589||(this[_0xf2f42a(0x162)]=_0x265589,this[_0xf2f42a(0x102)]=_0x265589[_0xf2f42a(0x35c)](_0xa563fb),!this[_0xf2f42a(0x102)]))return;this[_0xf2f42a(0x143)]=!0x0,_0x94a06c[_0xf2f42a(0xfa)]();let _0x7df354=_0x906a40[_0xf2f42a(0x44b)];this[_0xf2f42a(0x57e)]=_0x94a06c[_0xf2f42a(0x48c)]['subscribeEvent']((_0x5e355b,_0x31afe9)=>{const _0x327dff=_0xf2f42a;if(!this[_0x327dff(0x143)])return;let {offsetX:_0x149745,offsetY:_0x120fec}=_0x5e355b,_0x4baaf1=this[_0x327dff(0x102)];if(!this[_0x327dff(0x162)]||!_0x4baaf1)return;_0x94a06c[_0x327dff(0xfa)](),_0x94a06c['setCursor'](_0x3e7be3[_0x327dff(0x454)]);let _0x1aec52={'left':0x0,'top':0x0,'width':this[_0x327dff(0x17f)],'height':this[_0x327dff(0x100)]},_0x13a2fe=this[_0x327dff(0x1c2)](_0x27d0f0,_0x5b8a8d),_0x35cf8a=this[_0x327dff(0x25d)](_0x27d0f0,_0x5b8a8d),_0x21c89a=_0x149745/_0x35cf8a+_0x13a2fe['x']-this[_0x327dff(0x3e2)],_0x31d9fc=_0x120fec/_0x35cf8a+_0x13a2fe['y']-this[_0x327dff(0x147)];if(_0x220da0!==0x0){let _0x319135=this[_0x327dff(0x17f)]/0x2,_0x11a8ad=this[_0x327dff(0x100)]/0x2,_0x1c7cce=_0x220da0*Math['PI']/0xb4,_0x19a8bc=Math[_0x327dff(0x560)](_0x1c7cce),_0x447612=Math[_0x327dff(0x269)](_0x1c7cce),_0x2455ca=_0x21c89a-_0x319135,_0x4f4b37=_0x31d9fc-_0x11a8ad;_0x21c89a=_0x319135+(_0x2455ca*_0x19a8bc+_0x4f4b37*_0x447612),_0x31d9fc=_0x11a8ad+(-_0x2455ca*_0x447612+_0x4f4b37*_0x19a8bc);}_0x505398&&(_0x21c89a=this[_0x327dff(0x17f)]-_0x21c89a),_0x4a0c94&&(_0x31d9fc=this[_0x327dff(0x100)]-_0x31d9fc);let _0x5ccd5b=this[_0x327dff(0x162)][_0x327dff(0x54f)](_0x1aec52,{'x':_0x21c89a,'y':_0x31d9fc},_0x4baaf1,_0x505398,_0x4a0c94),_0x39dc11=_0x4baaf1[_0x327dff(0x46d)]||_0x4baaf1['gdRefY']||_0x4baaf1[_0x327dff(0x3b6)]||_0x4baaf1[_0x327dff(0x249)];_0x39dc11!==void 0x0&&(this['_activeShapeModel'][_0x327dff(0x256)](_0x39dc11,_0x5ccd5b),this['_activeShapeModel'][_0x327dff(0x1c8)]({'width':this[_0x327dff(0x17f)],'height':this['_baseHeight']}),this['_updateImageAdjValues'](_0x27d0f0,_0x5b8a8d,_0x2bb2ef,_0x39dc11,_0x5ccd5b),this[_0x327dff(0xee)]=this[_0x327dff(0x162)][_0x327dff(0x32b)](),this[_0x327dff(0x102)]=this[_0x327dff(0x162)]['getAdjustInfoByName'](_0xa563fb),this[_0x327dff(0x530)](),_0x31afe9[_0x327dff(0x1bf)]());}),this[_0xf2f42a(0x496)]=_0x94a06c[_0xf2f42a(0x457)][_0xf2f42a(0x410)]((_0x43d97e,_0x155fc0)=>{const _0x2a3bc2=_0xf2f42a;if(this[_0x2a3bc2(0x57e)][_0x2a3bc2(0x2e8)](),this['_adjHandlerPointerUp'][_0x2a3bc2(0x2e8)](),_0x94a06c[_0x2a3bc2(0x112)](),this['_activeShapeModel']){let _0x3cd797=this[_0x2a3bc2(0x162)][_0x2a3bc2(0x549)](),_0x54fd16={};for(let _0x147857 of _0x3cd797){let _0x1756e7=this[_0x2a3bc2(0x162)][_0x2a3bc2(0x55a)](_0x147857);_0x1756e7!==void 0x0&&(_0x54fd16[_0x147857]=_0x1756e7);}this[_0x2a3bc2(0x11b)][_0x2a3bc2(0x4b1)](_0x27d0f0,_0x5b8a8d,_0x2bb2ef,_0x7df354,_0x54fd16);}this['_activeAdjustInfo']=void 0x0,this[_0x2a3bc2(0x162)]=void 0x0,this[_0x2a3bc2(0x143)]=!0x1,_0x155fc0[_0x2a3bc2(0x1bf)](),_0x94a06c[_0x2a3bc2(0x168)]();}),_0x53d5e9[_0xf2f42a(0x1bf)]();})));}[_0x173eea(0x18b)](_0x2689d3,_0x5e8d76,_0x574520,_0x2703c3,_0x5498b9){const _0x156208=_0x173eea;let _0x5cde8a=this[_0x156208(0x292)]['getRenderById'](_0x2689d3);if(!_0x5cde8a)return;let {scene:_0x2ba90d}=_0x5cde8a,_0xc4bc79=_0x4b2a63({'unitId':_0x2689d3,'subUnitId':_0x5e8d76,'drawingId':_0x574520}),_0x5807ac=_0x2ba90d[_0x156208(0x3e8)](_0xc4bc79);if(_0x5807ac instanceof _0x554422){var _0x50b5f8;let _0x5a2e87=(_0x50b5f8=_0x5807ac[_0x156208(0x33b)])==null?{}:_0x50b5f8;_0x5807ac[_0x156208(0x58a)]({..._0x5a2e87,[_0x2703c3]:_0x5498b9}),_0x5807ac['makeDirty'](!0x0);}}[_0x173eea(0x3a1)](){const _0x3c2811=_0x173eea;let _0x2f331d=this[_0x3c2811(0x4a9)][_0x3c2811(0x11c)](_0x59e014[_0x3c2811(0x46e)]);this[_0x3c2811(0x48b)](_0x2f331d[_0x3c2811(0x38b)](_0x15b88d(_0x144e33=>_0x144e33?_0x144e33['activeSheet$'][_0x3c2811(0x38b)](_0x15b88d(_0x1ec4a7=>{const _0x30e79b=_0x3c2811;if(!_0x1ec4a7)return _0x263aaa;let _0x4b666e=_0x144e33[_0x30e79b(0x1bb)](),_0x288f1f=this['_renderManagerService'][_0x30e79b(0xf8)](_0x4b666e),_0x5b14fd=_0x288f1f==null?void 0x0:_0x288f1f[_0x30e79b(0x443)];return _0x5b14fd?_0x5ef336(_0x5b14fd):_0x263aaa;})):_0x263aaa))['subscribe'](_0x10d3a1=>{const _0x171f4e=_0x3c2811;let _0x53701c=_0x10d3a1['getTransformerByCreate']();this[_0x171f4e(0x48b)](_0x10d3a1[_0x171f4e(0x48c)][_0x171f4e(0x410)](()=>{const _0x5017f4=_0x171f4e;this['_isImagePointerDown']&&this[_0x5017f4(0x534)]();})),this['disposeWithMe'](_0x53701c[_0x171f4e(0x45a)][_0x171f4e(0x30e)](_0x4daf5d=>{const _0x8a6e1b=_0x171f4e;let {objects:_0x19b0e1}=_0x4daf5d;if(this[_0x8a6e1b(0x530)](),_0x19b0e1!==null&&_0x19b0e1[_0x8a6e1b(0x4da)]===0x1){let _0x2f9ab4=_0x19b0e1['values']()[_0x8a6e1b(0x474)]()[_0x8a6e1b(0x2c1)];_0x2f9ab4 instanceof _0x554422&&_0x2f9ab4[_0x8a6e1b(0x44b)]&&(this[_0x8a6e1b(0x21e)]=!0x0);}})),this[_0x171f4e(0x48b)](_0x53701c[_0x171f4e(0x580)][_0x171f4e(0x30e)](()=>{const _0x4dbabb=_0x171f4e;this[_0x4dbabb(0x21e)]&&this['_clearControls']();})),this['disposeWithMe'](_0x10d3a1[_0x171f4e(0x457)][_0x171f4e(0x410)](()=>{const _0x2a0df9=_0x171f4e;this['_isImagePointerDown']&&(this['_isImagePointerDown']=!0x1,this[_0x2a0df9(0x530)]());})),this['disposeWithMe'](_0x53701c[_0x171f4e(0x392)]['subscribe'](()=>{const _0x1bcfea=_0x171f4e;if(this[_0x1bcfea(0x320)]&&this[_0x1bcfea(0x27f)]&&this[_0x1bcfea(0x3be)]){let _0x49a0ee=this[_0x1bcfea(0x122)](this[_0x1bcfea(0x320)],this[_0x1bcfea(0x27f)],this[_0x1bcfea(0x3be)]);if(_0x49a0ee){var _0x11f857,_0x38e734;let _0x3f6fe4=this[_0x1bcfea(0x37b)](this[_0x1bcfea(0x320)],this[_0x1bcfea(0x27f)],this['_activeImageId']),_0xa58412=(_0x3f6fe4==null||(_0x11f857=_0x3f6fe4[_0x1bcfea(0x18f)])==null?void 0x0:_0x11f857[_0x1bcfea(0x538)])||0x0,_0x4b970c=(_0x3f6fe4==null||(_0x38e734=_0x3f6fe4[_0x1bcfea(0x18f)])==null?void 0x0:_0x38e734[_0x1bcfea(0x3d1)])||0x0,_0x1d29e8=this[_0x1bcfea(0x35a)](_0x49a0ee['prstGeom'],_0xa58412,_0x4b970c,_0x49a0ee['adjustValues']);_0x1d29e8&&(this[_0x1bcfea(0xee)]=_0x1d29e8[_0x1bcfea(0x32b)](),this['_clearControls'](),this[_0x1bcfea(0x530)](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x102912=_0x173eea;this[_0x102912(0x48b)](this[_0x102912(0x494)]['focus$']['subscribe'](_0x29bd97=>{const _0x337cf2=_0x102912;if(_0x29bd97[_0x337cf2(0x49f)]===0x1){let _0x564221=_0x29bd97[0x0];if(_0x564221[_0x337cf2(0x319)]===_0x217b4d[_0x337cf2(0x3e0)]){let {unitId:_0x618ce5,subUnitId:_0x441528,drawingId:_0xd8c8c1}=_0x564221,_0x247873=this[_0x337cf2(0x122)](_0x618ce5,_0x441528,_0xd8c8c1);if(_0x247873){var _0x26746a,_0x3864e8;this['_activeImageId']=_0xd8c8c1,this[_0x337cf2(0x320)]=_0x618ce5,this['_subUnitId']=_0x441528;let _0x24a1d1=this[_0x337cf2(0x37b)](_0x618ce5,_0x441528,_0xd8c8c1),_0x518de5=(_0x24a1d1==null||(_0x26746a=_0x24a1d1['transform'])==null?void 0x0:_0x26746a[_0x337cf2(0x538)])||0x0,_0x241fea=(_0x24a1d1==null||(_0x3864e8=_0x24a1d1[_0x337cf2(0x18f)])==null?void 0x0:_0x3864e8['height'])||0x0,_0x26e966=this[_0x337cf2(0x35a)](_0x247873[_0x337cf2(0x44b)],_0x518de5,_0x241fea,_0x247873['adjustValues']);_0x26e966&&(this[_0x337cf2(0xee)]=_0x26e966['getDrawingPoints']()),this['_clearControls'](),this[_0x337cf2(0x530)](!0x0);}else this[_0x337cf2(0x37a)]();}else this[_0x337cf2(0x37a)]();}else this[_0x337cf2(0x37a)]();})),this['disposeWithMe'](this[_0x102912(0x494)][_0x102912(0x207)]['subscribe'](_0xdc74f5=>{const _0x442b7c=_0x102912;if(_0xdc74f5[_0x442b7c(0x49f)]===0x1){let _0x3b4269=_0xdc74f5[0x0],_0x1dbf75=this[_0x442b7c(0x494)][_0x442b7c(0x19a)](_0x3b4269);(_0x1dbf75==null?void 0x0:_0x1dbf75[_0x442b7c(0x319)])===_0x217b4d[_0x442b7c(0x3e0)]&&this[_0x442b7c(0x3be)]===_0x3b4269['drawingId']&&(this['_clearControls'](),this[_0x442b7c(0x530)](!0x0));}})),this[_0x102912(0x48b)](this[_0x102912(0x494)][_0x102912(0x542)][_0x102912(0x30e)](_0x3dacd7=>{const _0x82a49b=_0x102912;for(let _0x4e4db2 of _0x3dacd7)this[_0x82a49b(0x3be)]===_0x4e4db2[_0x82a49b(0x12c)]&&this[_0x82a49b(0x37a)]();}));}['_resetState'](){const _0x1f3a15=_0x173eea;this[_0x1f3a15(0x3be)]=null,this[_0x1f3a15(0x320)]=null,this[_0x1f3a15(0x27f)]=null,this[_0x1f3a15(0xee)]=void 0x0,this[_0x1f3a15(0x534)]();}};Fo=Q([Z(0x1,_0x4313c8),Z(0x2,_0x18290d(_0x5f4e41)),Z(0x3,_0x2d0725),Z(0x4,_0x18290d(go))],Fo);let Io=class extends _0x399c04{constructor(_0x443ff9,_0xda6a4c,_0x21d85b,_0x5c9daa){const _0x466901=_0x173eea;super(),this[_0x466901(0x4a9)]=_0x443ff9,this[_0x466901(0x224)]=_0xda6a4c,this[_0x466901(0x300)]=_0x21d85b,this['_sheetsShapeService']=_0x5c9daa,this[_0x466901(0x2e9)]();}[_0x173eea(0x2e9)](){const _0x4df0d3=_0x173eea;this[_0x4df0d3(0x48b)](this[_0x4df0d3(0x224)][_0x4df0d3(0x4c1)]({'getMutations':_0x17c13b=>{const _0x47739e=_0x4df0d3;if(_0x17c13b['id']===_0x4e283e['id']){let _0x14e18c=_0x468c6f(this[_0x47739e(0x4a9)],_0x17c13b[_0x47739e(0x34b)]);if(!_0x14e18c)return{'redos':[],'undos':[]};let {unitId:_0x2961ce,subUnitId:_0x4192a2}=_0x14e18c,_0x2589da=this[_0x47739e(0x300)][_0x47739e(0x265)](_0x2961ce,_0x4192a2),_0x4089d0=Object[_0x47739e(0x4f4)](_0x2589da)[_0x47739e(0x342)](_0x59a883=>_0x59a883[_0x47739e(0x319)]===_0x217b4d[_0x47739e(0xf5)]);if(_0x4089d0[_0x47739e(0x49f)]===0x0)return{'redos':[],'undos':[]};let _0x328650=[],_0x2b3abe=[];for(let _0x555054=0x0;_0x555054<_0x4089d0[_0x47739e(0x49f)];_0x555054++){let _0x448a21=_0x4089d0[_0x555054],_0x152229=this[_0x47739e(0x16e)]['getShapeModel'](_0x448a21[_0x47739e(0x1cb)],_0x448a21[_0x47739e(0x12a)],_0x448a21[_0x47739e(0x12c)]);if(!_0x152229)continue;let {redo:_0x1837df,undo:_0x99df95,objects:_0x30242}=this[_0x47739e(0x300)][_0x47739e(0x1e3)]([_0x448a21]);_0x328650[_0x47739e(0x4bd)]({'id':_0x1e2473['id'],'params':{'unitId':_0x2961ce,'subUnitId':_0x4192a2,'shapeId':_0x448a21['drawingId']}}),_0x328650['push']({'id':_0x3f7546['id'],'params':{'unitId':_0x2961ce,'subUnitId':_0x4192a2,'type':_0x29b499[_0x47739e(0x352)],'op':_0x1837df,'objects':_0x30242}}),_0x2b3abe[_0x47739e(0x4bd)]({'id':_0x3f7546['id'],'params':{'unitId':_0x2961ce,'subUnitId':_0x4192a2,'type':_0x29b499[_0x47739e(0x21d)],'op':_0x99df95,'objects':_0x30242}}),_0x2b3abe[_0x47739e(0x4bd)]({'id':_0x4043c4['id'],'params':{'unitId':_0x2961ce,'subUnitId':_0x4192a2,'shapeId':_0x448a21[_0x47739e(0x12c)],'shapeType':_0x152229[_0x47739e(0x54a)](),'shapeData':JSON[_0x47739e(0x1a1)](JSON['stringify'](_0x152229['getShapeData']()))}});}return{'redos':_0x328650,'undos':_0x2b3abe};}else{if(_0x17c13b['id']===_0x5150de['id']){let {unitId:_0x38bd0e,subUnitId:_0x3a9af9,targetSubUnitId:_0x24cac0}=_0x17c13b[_0x47739e(0x34b)];if(!_0x38bd0e||!_0x3a9af9||!_0x24cac0)return{'redos':[],'undos':[]};let _0x3e8b90=this[_0x47739e(0x300)][_0x47739e(0x265)](_0x38bd0e,_0x3a9af9),_0x4055e2=Object[_0x47739e(0x4f4)](_0x3e8b90)[_0x47739e(0x342)](_0x2784ed=>_0x2784ed[_0x47739e(0x319)]===_0x217b4d[_0x47739e(0xf5)]);if(_0x4055e2[_0x47739e(0x49f)]===0x0)return{'redos':[],'undos':[]};let _0x1045ba=[],_0x5306b5=[];for(let _0xd86f1=0x0;_0xd86f1<_0x4055e2[_0x47739e(0x49f)];_0xd86f1++){let _0x2ddb3b=_0x4055e2[_0xd86f1],_0x34b4a0=this[_0x47739e(0x16e)][_0x47739e(0xf3)](_0x2ddb3b[_0x47739e(0x1cb)],_0x2ddb3b[_0x47739e(0x12a)],_0x2ddb3b[_0x47739e(0x12c)]);if(!_0x34b4a0)continue;let _0x6b73ef=_0x1f3381(),_0x2a7412={..._0x2ddb3b,'unitId':_0x38bd0e,'subUnitId':_0x24cac0,'drawingId':_0x6b73ef},{redo:_0x44d83c,undo:_0x1cff09,objects:_0x486dbe}=this[_0x47739e(0x300)][_0x47739e(0x107)]([_0x2a7412]);_0x1045ba[_0x47739e(0x4bd)]({'id':_0x3f7546['id'],'params':{'unitId':_0x38bd0e,'subUnitId':_0x24cac0,'type':_0x29b499[_0x47739e(0x21d)],'op':_0x44d83c,'objects':_0x486dbe}}),_0x1045ba[_0x47739e(0x4bd)]({'id':_0x4043c4['id'],'params':{'unitId':_0x38bd0e,'subUnitId':_0x24cac0,'shapeId':_0x6b73ef,'shapeType':_0x34b4a0[_0x47739e(0x54a)](),'shapeData':JSON[_0x47739e(0x1a1)](JSON['stringify'](_0x34b4a0[_0x47739e(0x2c9)]()))}}),_0x5306b5[_0x47739e(0x4bd)]({'id':_0x1e2473['id'],'params':{'unitId':_0x38bd0e,'subUnitId':_0x24cac0,'shapeId':_0x6b73ef}}),_0x5306b5[_0x47739e(0x4bd)]({'id':_0x3f7546['id'],'params':{'unitId':_0x38bd0e,'subUnitId':_0x24cac0,'type':_0x29b499[_0x47739e(0x352)],'op':_0x1cff09,'objects':_0x486dbe}});}return{'redos':_0x1045ba,'undos':_0x5306b5};}}return{'redos':[],'undos':[]};}}));}};Io=Q([Z(0x0,_0x18290d(_0x2d0725)),Z(0x1,_0x18290d(_0xdb5187)),Z(0x2,_0x18290d(_0x4a3489)),Z(0x3,_0x18290d(_0x511e68))],Io);let Lo=class extends _0x399c04{constructor(_0x13b0c6,_0x5be6ee,_0x1e50ec,_0x10d197,_0x1be8da){const _0x2ff567=_0x173eea;super(),this[_0x2ff567(0x48f)]=_0x13b0c6,this[_0x2ff567(0x2b5)]=_0x5be6ee,this[_0x2ff567(0x494)]=_0x1e50ec,this['_contextService']=_0x10d197,this[_0x2ff567(0x16e)]=_0x1be8da,J(this,_0x2ff567(0x234),null),this[_0x2ff567(0x129)](),this['_initSelection'](),this[_0x2ff567(0x431)]();}[_0x173eea(0x129)](){const _0x5bb535=_0x173eea;let {scene:_0x1a78e2}=this[_0x5bb535(0x48f)];this[_0x5bb535(0x48b)](_0x1a78e2[_0x5bb535(0x3b8)][_0x5bb535(0x410)](_0x387e19=>{const _0x3aedda=_0x5bb535;let {offsetX:_0x339ce8,offsetY:_0x5db250}=_0x387e19,_0x51af1f=_0x1a78e2[_0x3aedda(0x18a)](_0x124e33[_0x3aedda(0x432)]([_0x339ce8,_0x5db250]));if(_0x51af1f instanceof eo){if(_0x5b837b(this[_0x3aedda(0x16e)]['getShapeType'](_0x51af1f['unitId'],_0x51af1f[_0x3aedda(0x12a)],_0x51af1f[_0x3aedda(0x118)])))return;this[_0x3aedda(0x2b5)][_0x3aedda(0x3ec)]({'visible':!0x0,'unitId':_0x51af1f[_0x3aedda(0x1cb)],'subUnitId':_0x51af1f[_0x3aedda(0x12a)],'shapeId':_0x51af1f[_0x3aedda(0x118)],'shapeKey':_0x51af1f[_0x3aedda(0x349)]});}}));}[_0x173eea(0x4a4)](){const _0x22a744=_0x173eea;this[_0x22a744(0x48b)](this[_0x22a744(0x494)][_0x22a744(0x4f1)][_0x22a744(0x30e)](_0x950e43=>{const _0x6030a8=_0x22a744;if(_0x950e43['length']===0x1){let _0xb4f448=_0x950e43[0x0],_0x3de3f1=this[_0x6030a8(0x494)][_0x6030a8(0x19a)](_0xb4f448);if((_0x3de3f1==null?void 0x0:_0x3de3f1[_0x6030a8(0x319)])===_0x217b4d[_0x6030a8(0xf5)]){let _0x10aa44=this[_0x6030a8(0x2b5)][_0x6030a8(0x4d5)]();if((_0x10aa44==null?void 0x0:_0x10aa44['shapeId'])===_0xb4f448['drawingId']&&_0x10aa44['visible'])return;_0x5b837b(this[_0x6030a8(0x16e)][_0x6030a8(0x54a)](_0xb4f448['unitId'],_0xb4f448['subUnitId'],_0xb4f448['drawingId']))&&this[_0x6030a8(0x2b5)][_0x6030a8(0x3ec)](null);}else this[_0x6030a8(0x2b5)][_0x6030a8(0x4d5)]()&&(this['_shapeTextEditingService']['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x512b85=_0x6030a8;this[_0x512b85(0x2b5)][_0x512b85(0x3ec)](null);}));}else this['_shapeTextEditingService'][_0x6030a8(0x4d5)]()&&(this[_0x6030a8(0x2b5)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x4c8e06=_0x6030a8;this[_0x4c8e06(0x2b5)][_0x4c8e06(0x3ec)](null);}));})),this[_0x22a744(0x48b)](this['_drawingManagerService'][_0x22a744(0x542)][_0x22a744(0x30e)](_0x3c3cc6=>{const _0x5ef6e0=_0x22a744;let _0x3a9537=this[_0x5ef6e0(0x2b5)][_0x5ef6e0(0x4d5)]();_0x3a9537&&_0x3c3cc6[_0x5ef6e0(0x1b3)](_0x28d534=>_0x28d534['drawingId']===_0x3a9537[_0x5ef6e0(0x118)])&&this[_0x5ef6e0(0x2b5)][_0x5ef6e0(0x3ec)](null);}));}[_0x173eea(0x431)](){const _0x124ec2=_0x173eea;this[_0x124ec2(0x48b)](this[_0x124ec2(0x2b5)][_0x124ec2(0x40b)][_0x124ec2(0x30e)](_0x2253b9=>{const _0x4c3eeb=_0x124ec2;let {scene:_0x1155bf}=this['_context'];if(this[_0x4c3eeb(0x234)]){let _0x4a6b89=_0x1155bf[_0x4c3eeb(0x1e1)](this[_0x4c3eeb(0x234)]);_0x4a6b89&&_0x4a6b89[_0x4c3eeb(0x3ec)](!0x1);}if(_0x2253b9){let _0x231fc0=!!_0x2253b9[_0x4c3eeb(0x48d)],_0x15af23=_0x1155bf[_0x4c3eeb(0x1e1)](_0x2253b9[_0x4c3eeb(0x365)]);_0x15af23&&(_0x15af23[_0x4c3eeb(0x3ec)](_0x231fc0),this['_lastEditingShapeKey']=_0x2253b9['shapeKey']),this[_0x4c3eeb(0x251)]['setContextValue'](_0x494eea,_0x231fc0);}else this[_0x4c3eeb(0x234)]=null,this[_0x4c3eeb(0x251)][_0x4c3eeb(0x391)](_0x494eea,!0x1);}));}};Lo=Q([Z(0x1,_0x18290d(Y)),Z(0x2,_0x4313c8),Z(0x3,_0x41728c),Z(0x4,_0x18290d(_0x511e68))],Lo);const Ro={'normal':{'fill':_0x38fd6a[_0x173eea(0x361)],'stroke':_0x38fd6a[_0x173eea(0x10b)],'strokeWidth':_0x38fd6a['cxnPointStrokeWidth']},'highlighted':{'fill':_0x173eea(0x455),'stroke':_0x173eea(0x113),'strokeWidth':0x2}};var zo=class extends _0x268782{constructor(_0x41a208,_0x29b5f7){const _0x1081bb=_0x173eea;super(_0x41a208,_0x29b5f7),J(this,_0x1081bb(0x28e),''),J(this,_0x1081bb(0x25f),-0x1),J(this,_0x1081bb(0x320),''),J(this,_0x1081bb(0x27f),''),J(this,_0x1081bb(0x417),!0x1),_0x29b5f7&&this[_0x1081bb(0x4bb)](_0x29b5f7);}[_0x173eea(0x317)](){const _0x3252c1=_0x173eea;return{'unitId':this[_0x3252c1(0x320)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x3252c1(0x28e)],'cxnIndex':this[_0x3252c1(0x25f)]};}[_0x173eea(0x26d)](_0xf2c37b){const _0xcdb8ce=_0x173eea;this[_0xcdb8ce(0x417)]!==_0xf2c37b&&(this[_0xcdb8ce(0x417)]=_0xf2c37b,this[_0xcdb8ce(0x58e)](!0x0));}[_0x173eea(0x304)](){const _0x1657ae=_0x173eea;return this[_0x1657ae(0x417)];}[_0x173eea(0x4bb)](_0x427590){const _0xed9584=_0x173eea;var _0x1c4536,_0x4f77d9;_0x427590['targetShapeId']!==void 0x0&&(this[_0xed9584(0x28e)]=_0x427590['targetShapeId']),_0x427590['cxnIndex']!==void 0x0&&(this[_0xed9584(0x25f)]=_0x427590[_0xed9584(0x493)]),_0x427590[_0xed9584(0x1cb)]!==void 0x0&&(this['_unitId']=_0x427590[_0xed9584(0x1cb)]),_0x427590[_0xed9584(0x12a)]!==void 0x0&&(this[_0xed9584(0x27f)]=_0x427590['subUnitId']),_0x427590[_0xed9584(0x304)]!==void 0x0&&(this[_0xed9584(0x417)]=_0x427590[_0xed9584(0x304)]),this['transformByState']({'width':(_0x1c4536=_0x427590['width'])==null?_0x38fd6a[_0xed9584(0x1be)]*0x2:_0x1c4536,'height':(_0x4f77d9=_0x427590[_0xed9584(0x3d1)])==null?_0x38fd6a[_0xed9584(0x1be)]*0x2:_0x4f77d9});}[_0x173eea(0x23c)](_0x1db41c){const _0x1dd3d5=_0x173eea;let _0x202687=this['_isHighlighted']?Ro['highlighted']:Ro[_0x1dd3d5(0x15b)];_0x557a14[_0x1dd3d5(0x4b7)](_0x1db41c,{'radius':_0x38fd6a[_0x1dd3d5(0x1be)],'fill':_0x202687[_0x1dd3d5(0x1e9)],'stroke':_0x202687[_0x1dd3d5(0x469)],'strokeWidth':_0x202687[_0x1dd3d5(0x1d8)],'evented':!0x0});}};let Bo=class extends _0x399c04{constructor(_0x5c9393,_0x457c72,_0x2df44b,_0x21704d){const _0x1c9b01=_0x173eea;super(),this['_context']=_0x5c9393,this[_0x1c9b01(0x292)]=_0x457c72,this[_0x1c9b01(0x494)]=_0x2df44b,this[_0x1c9b01(0x16e)]=_0x21704d,J(this,'_connectionSiteObjects',[]),J(this,_0x1c9b01(0x46f),null),J(this,_0x1c9b01(0x182),-0x1),J(this,'_currentScene',null),J(this,_0x1c9b01(0x320),''),J(this,_0x1c9b01(0x27f),''),J(this,'_draggingConnectorId',null);}['startConnectionDetection'](_0x23036b,_0x203682,_0xa0d588,_0x261306){const _0xb1bda=_0x173eea;this['_currentScene']=_0x23036b,this[_0xb1bda(0x320)]=_0x203682,this[_0xb1bda(0x27f)]=_0xa0d588,this['_draggingConnectorId']=_0x261306;}['updateConnectionDetection'](_0x5e0224){const _0x369510=_0x173eea;if(!this[_0x369510(0xe6)])return null;let _0x1b670f=this['_findShapeAtPoint'](_0x5e0224);return _0x1b670f?(this[_0x369510(0x46f)]!==_0x1b670f['shapeId']&&(this[_0x369510(0x4c2)](),this['_showConnectionSites'](_0x1b670f[_0x369510(0x118)],_0x1b670f['shapeModel']),this['_activeTargetShapeId']=_0x1b670f['shapeId']),this[_0x369510(0x2a8)](_0x5e0224)):(this[_0x369510(0x46f)]!==null&&(this[_0x369510(0x4c2)](),this[_0x369510(0x46f)]=null),null);}['endConnectionDetection'](){const _0x11cfaf=_0x173eea;this[_0x11cfaf(0x4c2)](),this[_0x11cfaf(0xe6)]=null,this[_0x11cfaf(0x46f)]=null,this[_0x11cfaf(0x182)]=-0x1,this[_0x11cfaf(0x46a)]=null;}['getConnectionRelation'](){const _0x4423e2=_0x173eea;return this[_0x4423e2(0x46f)]===null||this['_highlightedSiteIndex']<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x4423e2(0x182)]};}[_0x173eea(0x328)](_0x10184c){const _0x53a00b=_0x173eea;let _0x13a370=this[_0x53a00b(0x494)][_0x53a00b(0x265)](this[_0x53a00b(0x320)],this[_0x53a00b(0x27f)]);for(let _0x3ede34 of Object[_0x53a00b(0x515)](_0x13a370)){if(_0x3ede34===this[_0x53a00b(0x46a)]||_0x13a370[_0x3ede34][_0x53a00b(0x319)]!==_0x217b4d[_0x53a00b(0xf5)])continue;let _0x4591df=this[_0x53a00b(0x16e)][_0x53a00b(0xf3)](this[_0x53a00b(0x320)],this[_0x53a00b(0x27f)],_0x3ede34);if(!_0x4591df||_0x5b837b(_0x4591df[_0x53a00b(0x54a)]())||_0x4591df[_0x53a00b(0x141)]()['length']===0x0||!this[_0x53a00b(0xe6)])continue;let _0x36db7d=_0x4b2a63({'unitId':this[_0x53a00b(0x320)],'subUnitId':this[_0x53a00b(0x27f)],'drawingId':_0x3ede34}),_0x2d9e90=this[_0x53a00b(0xe6)][_0x53a00b(0x1e1)](_0x36db7d);if(!_0x2d9e90)continue;let {left:_0x130e2f,top:_0x546bfc,width:_0x70992,height:_0x2e77bd}=_0x2d9e90[_0x53a00b(0xfc)](),_0x181387=_0x130e2f+_0x70992/0x2,_0x3a5e56=_0x546bfc+_0x2e77bd/0x2,_0x36b7fe=_0x2d9e90[_0x53a00b(0x18f)][_0x53a00b(0x20f)](),_0x2d9069=new _0x4bcd07([_0x36b7fe[0x0],_0x36b7fe[0x1],_0x36b7fe[0x2],_0x36b7fe[0x3],_0x181387,_0x3a5e56]),_0x45f531=_0x2d9e90['getParent'](),_0x2ab7c8=(_0x2d9e90['isInGroup']&&(_0x45f531==null?void 0x0:_0x45f531['classType'])===_0x59c38c['GROUP']?_0x45f531[_0x53a00b(0x110)][_0x53a00b(0x1f2)](_0x2d9069):_0x2d9069)[_0x53a00b(0x1ac)]()[_0x53a00b(0x533)](_0x10184c),_0x2a870f=_0x70992/0x2,_0x3cbd0e=_0x2e77bd/0x2;if(_0x2ab7c8['x']>=-_0x2a870f-0x5&&_0x2ab7c8['x']<=_0x2a870f+0x5&&_0x2ab7c8['y']>=-_0x3cbd0e-0x5&&_0x2ab7c8['y']<=_0x3cbd0e+0x5)return{'shapeId':_0x3ede34,'shapeModel':_0x4591df};}return null;}[_0x173eea(0x57f)](_0x38e091,_0x37e17b){const _0x27e099=_0x173eea;if(!this[_0x27e099(0xe6)])return;let _0x2f2c1c=_0x4b2a63({'unitId':this[_0x27e099(0x320)],'subUnitId':this[_0x27e099(0x27f)],'drawingId':_0x38e091}),_0x168c07=this[_0x27e099(0xe6)][_0x27e099(0x1e1)](_0x2f2c1c);if(!_0x168c07)return;let {left:_0x2868c2,top:_0x1a8595,width:_0x1d5220,height:_0x2c6ba2}=_0x168c07[_0x27e099(0xfc)](),_0x23798a=_0x2868c2+_0x1d5220/0x2,_0x4c72cf=_0x1a8595+_0x2c6ba2/0x2,_0x186b0f=_0x168c07['transform'][_0x27e099(0x20f)](),_0xc3531f=new _0x4bcd07([_0x186b0f[0x0],_0x186b0f[0x1],_0x186b0f[0x2],_0x186b0f[0x3],_0x23798a,_0x4c72cf]),_0x14cc8c=_0x168c07[_0x27e099(0x316)](),_0x3fbf71=_0x168c07['isInGroup']&&(_0x14cc8c==null?void 0x0:_0x14cc8c[_0x27e099(0x4c6)])===_0x59c38c['GROUP']?_0x14cc8c['ancestorTransform'][_0x27e099(0x1f2)](_0xc3531f):_0xc3531f;_0x37e17b[_0x27e099(0x1c8)]({'width':_0x1d5220,'height':_0x2c6ba2});let _0x3c834e=_0x37e17b[_0x27e099(0x141)]();for(let _0x1c91e1 of _0x3c834e){let _0x31cc21=_0x1c91e1['x']-_0x1d5220/0x2,_0xc393c3=_0x1c91e1['y']-_0x2c6ba2/0x2,_0x58246b=_0x3fbf71['applyPoint']({'x':_0x31cc21,'y':_0xc393c3}),_0x4d38ce=_0x58246b['x'],_0xc82e1c=_0x58246b['y'],_0x51f31d=new zo(_0x27e099(0x279)+_0x38e091+'-'+_0x1c91e1[_0x27e099(0x4d7)],{'left':_0x4d38ce-_0x38fd6a[_0x27e099(0x1be)],'top':_0xc82e1c-_0x38fd6a[_0x27e099(0x1be)],'targetShapeId':_0x38e091,'cxnIndex':_0x1c91e1[_0x27e099(0x4d7)],'unitId':this[_0x27e099(0x320)],'subUnitId':this['_subUnitId'],'width':_0x38fd6a['cxnPointRadius']*0x2,'height':_0x38fd6a[_0x27e099(0x1be)]*0x2,'zIndex':_0x2b5d9f+0x2,'evented':!0x1});this[_0x27e099(0x138)][_0x27e099(0x4bd)](_0x51f31d),this[_0x27e099(0xe6)][_0x27e099(0x36e)](_0x51f31d,_0x2b5d9f+0x2);}}[_0x173eea(0x2a8)](_0x5208ab){const _0x17ea31=_0x173eea;let _0x44a923=null,_0x42957d=0x1/0x0,_0x39e227=null;for(let _0x4f75fb of this['_connectionSiteObjects']){let _0xeef372=_0x4f75fb[_0x17ea31(0x4d1)]+_0x38fd6a[_0x17ea31(0x1be)],_0x3a2a59=_0x4f75fb[_0x17ea31(0x32d)]+_0x38fd6a[_0x17ea31(0x1be)],_0x28a530=_0x5208ab['x']-_0xeef372,_0x476e71=_0x5208ab['y']-_0x3a2a59,_0x1fb6e5=Math['sqrt'](_0x28a530*_0x28a530+_0x476e71*_0x476e71);_0x1fb6e5<_0x42957d&&(_0x42957d=_0x1fb6e5,_0x44a923=_0x4f75fb,_0x39e227={'x':_0xeef372,'y':_0x3a2a59});}let _0x44029=_0x42957d<=0xa&&_0x44a923?_0x44a923[_0x17ea31(0x317)]()[_0x17ea31(0x493)]:-0x1;if(_0x44029!==this['_highlightedSiteIndex']){for(let _0x361bf2 of this['_connectionSiteObjects']){let _0x281860=_0x361bf2[_0x17ea31(0x317)]();_0x361bf2['setHighlighted'](_0x281860[_0x17ea31(0x493)]===_0x44029);}this[_0x17ea31(0x182)]=_0x44029;}if(_0x42957d<=0xa&&_0x44a923&&_0x39e227){let _0x56d43e=_0x44a923[_0x17ea31(0x317)](),_0x48a7df=this[_0x17ea31(0x247)](_0x56d43e[_0x17ea31(0x118)],_0x56d43e[_0x17ea31(0x493)]);return{'shapeId':_0x56d43e[_0x17ea31(0x118)],'cxnIndex':_0x56d43e[_0x17ea31(0x493)],'unitId':_0x56d43e['unitId'],'subUnitId':_0x56d43e[_0x17ea31(0x12a)],'worldPoint':_0x39e227,'angle':_0x48a7df};}return null;}['_getConnectionSiteAngle'](_0x547d76,_0x57a67b){const _0x4a9620=_0x173eea;let _0x419aa3=this[_0x4a9620(0x16e)][_0x4a9620(0xf3)](this['_unitId'],this[_0x4a9620(0x27f)],_0x547d76);if(!_0x419aa3)return 0x0;let _0x4100be=this[_0x4a9620(0x494)][_0x4a9620(0x19a)]({'unitId':this[_0x4a9620(0x320)],'subUnitId':this[_0x4a9620(0x27f)],'drawingId':_0x547d76});if(!(_0x4100be!=null&&_0x4100be[_0x4a9620(0x18f)]))return 0x0;let {width:_0x378a32=0x0,height:_0x46debd=0x0,flipX:_0x2659ae=!0x1,flipY:_0x50c5c4=!0x1}=_0x4100be[_0x4a9620(0x18f)];_0x419aa3[_0x4a9620(0x1c8)]({'width':_0x378a32,'height':_0x46debd});let _0x4f6604=_0x419aa3[_0x4a9620(0x141)]()[_0x4a9620(0x21a)](_0x466f00=>_0x466f00[_0x4a9620(0x4d7)]===_0x57a67b);if(!_0x4f6604)return 0x0;let _0x398c4b=_0x4f6604[_0x4a9620(0x2a0)]/0xea60;return _0x2659ae&&(_0x398c4b=0xb4-_0x398c4b),_0x50c5c4&&(_0x398c4b=-_0x398c4b),_0x398c4b=(_0x398c4b%0x168+0x168)%0x168,_0x398c4b;}['_clearConnectionSites'](){const _0x59eb1b=_0x173eea;for(let _0x3d2ef0 of this['_connectionSiteObjects'])_0x3d2ef0['dispose']();this[_0x59eb1b(0x138)]=[],this['_highlightedSiteIndex']=-0x1;}[_0x173eea(0x50d)](){const _0x5d17f6=_0x173eea;this[_0x5d17f6(0x4c2)](),super[_0x5d17f6(0x50d)]();}};Bo=Q([Z(0x1,_0x18290d(_0x5f4e41)),Z(0x2,_0x18290d(_0x4313c8)),Z(0x3,_0x18290d(_0x511e68))],Bo);let Vo=class extends _0x399c04{constructor(_0x1320f8,_0x6ce778,_0x2c13ab,_0x292137,_0x12a81f){const _0x46aba9=_0x173eea;super(),this[_0x46aba9(0x117)]=_0x1320f8,this[_0x46aba9(0x4cb)]=_0x6ce778,this[_0x46aba9(0x300)]=_0x2c13ab,this[_0x46aba9(0x1a4)]=_0x292137,this[_0x46aba9(0x16d)]=_0x12a81f,J(this,_0x46aba9(0x1c1),void 0x0),this[_0x46aba9(0x31b)](),this[_0x46aba9(0x3c7)]();}get['_focusedDrawings'](){const _0x39e28d=_0x173eea;return this[_0x39e28d(0x300)]['getFocusDrawings']();}[_0x173eea(0x3c7)](){const _0x3151b9=_0x173eea;this[_0x3151b9(0x16d)][_0x3151b9(0x516)](({fromUnitId:_0x537f57,fromSubUnitId:_0x47bc8e,toUnitId:_0x3d0522,toSubUnitId:_0x32ff6d,idMap:_0x512da0})=>{const _0x40c868=_0x3151b9;let _0x4da59d=[],_0x3ccdb6=[];for(let [_0x2d6c62,_0x4a2d35]of _0x512da0[_0x40c868(0x19f)]()){let _0xb7f84d=this[_0x40c868(0x1a4)][_0x40c868(0xf3)](_0x537f57,_0x47bc8e,_0x2d6c62);if(!_0xb7f84d)continue;let _0x481697=_0xb7f84d[_0x40c868(0x54a)](),_0x458934=JSON[_0x40c868(0x1a1)](JSON[_0x40c868(0x40e)](_0xb7f84d[_0x40c868(0x2c9)]()));if(_0x458934[_0x40c868(0x15c)]){var _0x21fc72,_0xce7822;let _0x7d9dbe=(_0x21fc72=_0x458934[_0x40c868(0x15c)]['from'])==null?void 0x0:_0x21fc72[_0x40c868(0x118)],_0x19f8fa=(_0xce7822=_0x458934[_0x40c868(0x15c)]['to'])==null?void 0x0:_0xce7822[_0x40c868(0x118)],_0x1665ed=_0x7d9dbe?_0x512da0['has'](_0x7d9dbe):!0x0,_0x2b5efc=_0x19f8fa?_0x512da0['has'](_0x19f8fa):!0x0;_0x1665ed&&_0x7d9dbe&&_0x458934[_0x40c868(0x15c)]['from']?_0x458934['relation']['from']={..._0x458934[_0x40c868(0x15c)]['from'],'shapeId':_0x512da0[_0x40c868(0x471)](_0x7d9dbe)}:_0x458934['relation'][_0x40c868(0x209)]=void 0x0,_0x2b5efc&&_0x19f8fa&&_0x458934[_0x40c868(0x15c)]['to']?_0x458934['relation']['to']={..._0x458934[_0x40c868(0x15c)]['to'],'shapeId':_0x512da0[_0x40c868(0x471)](_0x19f8fa)}:_0x458934[_0x40c868(0x15c)]['to']=void 0x0;}_0x4da59d[_0x40c868(0x4bd)]({'id':_0x4043c4['id'],'params':{'unitId':_0x3d0522,'subUnitId':_0x32ff6d,'shapeId':_0x4a2d35,'shapeType':_0x481697,'shapeData':_0x458934}}),_0x3ccdb6[_0x40c868(0x4bd)]({'id':_0x1e2473['id'],'params':{'unitId':_0x3d0522,'subUnitId':_0x32ff6d,'shapeId':_0x4a2d35}});}return{'redos':_0x4da59d,'undos':_0x3ccdb6};});}[_0x173eea(0x31b)](){const _0x7cb660=_0x173eea;this['disposeWithMe'](this['_sheetClipboardService'][_0x7cb660(0x45b)]({'id':_0x7cb660(0x1bd),'onBeforeCopy':(_0x57b62c,_0x13fe2c,_0xbf6f31,_0x3904b9)=>{const _0xe136aa=_0x7cb660;this[_0xe136aa(0x1c1)]=null;let _0x5b81f3=this['_focusedDrawings'];if(_0x5b81f3['length']){let _0x42a0b1=_0x5b81f3[_0xe136aa(0x342)](_0x111f7e=>_0x111f7e[_0xe136aa(0x319)]===_0x217b4d[_0xe136aa(0xf5)]);if(_0x42a0b1[_0xe136aa(0x49f)]===0x0)return;this[_0xe136aa(0x1c1)]={'unitId':_0x57b62c,'subUnitId':_0x13fe2c,'copyType':_0x3904b9,'drawings':_0x42a0b1};}else this[_0xe136aa(0x10a)](_0x57b62c,_0x13fe2c,_0xbf6f31,_0x3904b9);},'onPasteCells':(_0x49b4c3,_0x229ce7,_0x37b150,_0x4ab365)=>{const _0x11799b=_0x7cb660;if(!this[_0x11799b(0x1c1)])return{'redos':[],'undos':[]};let {pasteType:_0x59ab8c}=_0x4ab365;return _0x59ab8c===_0x58aac2['DEFAULT_PASTE']?this['_generatePasteMutations'](_0x229ce7,this[_0x11799b(0x1c1)][_0x11799b(0x4c8)]===_0x3decc1[_0x11799b(0x589)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x66c8a4=>this[_0x7cb660(0x1c1)]?this[_0x7cb660(0x204)](_0x66c8a4,this[_0x7cb660(0x1c1)][_0x7cb660(0x4c8)]===_0x3decc1['CUT']):{'redos':[],'undos':[]}}));}[_0x173eea(0x10a)](_0x2db6b9,_0xa3858c,_0x3d08d5,_0x3e974b){const _0x111814=_0x173eea;let _0x42b05a=this[_0x111814(0x117)][_0x111814(0x423)](_0x2db6b9,_0xa3858c);if(!_0x42b05a)return;let _0x1b74fc=_0x3ab144(_0x42b05a,_0x3d08d5);if(!_0x1b74fc)return;let {startX:_0x1a1092,endX:_0x5945b6,startY:_0x2e8638,endY:_0x252b03}=_0x1b74fc,_0x565039=this[_0x111814(0x300)][_0x111814(0x265)](_0x2db6b9,_0xa3858c),_0x19fb55=this['_focusedDrawings'][_0x111814(0x2db)]();for(let [_0x330f76,_0x1bd2ac]of Object[_0x111814(0x19f)](_0x565039)){if(_0x1bd2ac[_0x111814(0x319)]!==_0x217b4d[_0x111814(0xf5)])continue;let {transform:_0xcfd870}=_0x1bd2ac;if(!_0xcfd870)continue;let {left:_0x341e38=0x0,top:_0x32f1cf=0x0,width:_0x2c0212=0x0,height:_0x1f00ec=0x0}=_0xcfd870;_0x1a1092<=_0x341e38&&_0x5945b6>=_0x341e38+_0x2c0212&&_0x2e8638<=_0x32f1cf&&_0x252b03>=_0x32f1cf+_0x1f00ec&&_0x19fb55[_0x111814(0x4bd)](_0x1bd2ac);}_0x19fb55[_0x111814(0x49f)]>0x0&&(this[_0x111814(0x1c1)]={'unitId':_0x2db6b9,'subUnitId':_0xa3858c,'copyType':_0x3e974b,'copyRange':_0x3d08d5,'drawings':_0x19fb55});}[_0x173eea(0x204)](_0x248ef5,_0x36b6ff){const _0x35f37f=_0x173eea;let {unitId:_0x100046,subUnitId:_0xc364cb,range:_0x1a421a}=_0x248ef5,_0x452471=this['_sheetSkeletonService'][_0x35f37f(0x423)](_0x100046,_0xc364cb);if(!_0x452471)return{'redos':[],'undos':[]};let _0x125caf=_0x8322dc(_0x1a421a),{unitId:_0x80d4ac,subUnitId:_0x4e6dd5,copyRange:_0x25ec11,drawings:_0x23641d}=this[_0x35f37f(0x1c1)],_0x60855b=this[_0x35f37f(0x117)][_0x35f37f(0x423)](_0x80d4ac,_0x4e6dd5);if(!_0x60855b)return{'redos':[],'undos':[]};let _0x12a298;if(!_0x25ec11){let _0xfbcc4d=0x1/0x0,_0x88ed2d=0x1/0x0;for(let _0x2779d1 of _0x23641d){var _0x74ace0;let {left:_0x26fa13=0x0,top:_0x457619=0x0}=(_0x74ace0=_0x2779d1[_0x35f37f(0x18f)])==null?{}:_0x74ace0;_0x26fa13<_0xfbcc4d&&(_0xfbcc4d=_0x26fa13),_0x457619<_0x88ed2d&&(_0x88ed2d=_0x457619);}_0xfbcc4d!==0x1/0x0&&_0x88ed2d!==0x1/0x0&&(_0x12a298={'left':_0xfbcc4d,'top':_0x88ed2d});}let _0x1fbaa4=new Map();if(!_0x36b6ff){for(let _0x5f02e1 of _0x23641d)_0x1fbaa4[_0x35f37f(0x1a5)](_0x5f02e1[_0x35f37f(0x12c)],_0x1f3381());}let _0x303422=[],_0x546162=[];for(let _0x26bbd9 of _0x23641d){let {drawingId:_0x2daab9,transform:_0x3359e2,sheetTransform:_0x33db7c}=_0x26bbd9;if(!_0x3359e2||!_0x33db7c)continue;let _0x5d952e=this[_0x35f37f(0x2b8)]({'transform':_0x3359e2,'sheetTransform':_0x33db7c},{'skeleton':_0x60855b,'range':_0x25ec11},{'skeleton':_0x452471,'range':_0x125caf},_0x12a298);if(_0x36b6ff){let {redos:_0x110616,undos:_0x4a4bdf}=this['_generateCutPasteMutations']({'fromUnitId':_0x80d4ac,'fromSubUnitId':_0x4e6dd5,'toUnitId':_0x100046,'toSubUnitId':_0xc364cb,'drawing':_0x26bbd9,'newTransforms':_0x5d952e});_0x303422[_0x35f37f(0x4bd)](..._0x110616),_0x546162[_0x35f37f(0x4bd)](..._0x4a4bdf);continue;}let {redos:_0x154f0b,undos:_0x6c4d16}=this['_generateCopyPasteMutations']({'toUnitId':_0x100046,'toSubUnitId':_0xc364cb,'drawing':_0x26bbd9,'newTransforms':_0x5d952e,'newDrawingId':_0x1fbaa4[_0x35f37f(0x471)](_0x2daab9),'idMap':_0x1fbaa4});_0x303422[_0x35f37f(0x4bd)](..._0x154f0b),_0x546162[_0x35f37f(0x4bd)](..._0x6c4d16);}return{'redos':_0x303422,'undos':_0x546162};}[_0x173eea(0x472)](_0x55cdbe){const _0x1ad2d0=_0x173eea;let {fromUnitId:_0x542aa0,fromSubUnitId:_0xd4019b,toUnitId:_0x493346,toSubUnitId:_0x12a056,drawing:_0x2c167f,newTransforms:_0x15057e}=_0x55cdbe,_0x551542={..._0x2c167f,'unitId':_0x493346,'subUnitId':_0x12a056,'transform':_0x15057e[_0x1ad2d0(0x18f)],'sheetTransform':_0x15057e[_0x1ad2d0(0x42d)]};if(_0x493346===_0x542aa0&&_0x12a056===_0xd4019b){let {redo:_0x2f5d91,undo:_0x5947fb,objects:_0x150405}=this[_0x1ad2d0(0x300)][_0x1ad2d0(0x4b8)]([_0x551542]);return{'redos':[{'id':_0x3f7546['id'],'params':{'unitId':_0x493346,'subUnitId':_0x12a056,'type':_0x29b499['UPDATE'],'op':_0x2f5d91,'objects':_0x150405}}],'undos':[{'id':_0x3f7546['id'],'params':{'unitId':_0x493346,'subUnitId':_0x12a056,'type':_0x29b499[_0x1ad2d0(0x159)],'op':_0x5947fb,'objects':_0x150405}}]};}else{let _0x2afdcc=this['_sheetDrawingService'][_0x1ad2d0(0x1e3)]([_0x2c167f]),_0x46b2e7=this[_0x1ad2d0(0x300)]['getBatchAddOp']([_0x551542]),_0x4439a8=this[_0x1ad2d0(0x1a4)][_0x1ad2d0(0xf3)](_0x2c167f[_0x1ad2d0(0x1cb)],_0x2c167f['subUnitId'],_0x2c167f[_0x1ad2d0(0x12c)]);if(!_0x4439a8)return{'redos':[],'undos':[]};let _0x2b4c8e=_0x4439a8[_0x1ad2d0(0x54a)](),_0x5ba00f=JSON[_0x1ad2d0(0x1a1)](JSON[_0x1ad2d0(0x40e)](_0x4439a8[_0x1ad2d0(0x2c9)]()));return{'redos':[{'id':_0x3f7546['id'],'params':{'unitId':_0x542aa0,'subUnitId':_0xd4019b,'type':_0x29b499[_0x1ad2d0(0x352)],'op':_0x2afdcc[_0x1ad2d0(0x3d4)],'objects':_0x2afdcc[_0x1ad2d0(0x1c9)]}},{'id':_0x1e2473['id'],'params':{'unitId':_0x542aa0,'subUnitId':_0xd4019b,'shapeId':_0x2c167f[_0x1ad2d0(0x12c)]}},{'id':_0x3f7546['id'],'params':{'unitId':_0x493346,'subUnitId':_0x12a056,'type':_0x29b499['INSERT'],'op':_0x46b2e7[_0x1ad2d0(0x3d4)],'objects':_0x46b2e7[_0x1ad2d0(0x1c9)]}},{'id':_0x4043c4['id'],'params':{'unitId':_0x493346,'subUnitId':_0x12a056,'shapeId':_0x2c167f['drawingId'],'shapeType':_0x2b4c8e,'shapeData':_0x5ba00f}}],'undos':[{'id':_0x3f7546['id'],'params':{'unitId':_0x542aa0,'subUnitId':_0xd4019b,'type':_0x29b499[_0x1ad2d0(0x21d)],'op':_0x2afdcc[_0x1ad2d0(0x284)],'objects':_0x2afdcc[_0x1ad2d0(0x1c9)]}},{'id':_0x4043c4['id'],'params':{'unitId':_0x542aa0,'subUnitId':_0xd4019b,'shapeId':_0x2c167f[_0x1ad2d0(0x12c)],'shapeType':_0x2b4c8e,'shapeData':_0x5ba00f}},{'id':_0x3f7546['id'],'params':{'unitId':_0x493346,'subUnitId':_0x12a056,'type':_0x29b499[_0x1ad2d0(0x352)],'op':_0x46b2e7[_0x1ad2d0(0x284)],'objects':_0x46b2e7[_0x1ad2d0(0x1c9)]}},{'id':_0x1e2473['id'],'params':{'unitId':_0x493346,'subUnitId':_0x12a056,'shapeId':_0x2c167f[_0x1ad2d0(0x12c)]}}]};}}[_0x173eea(0x214)](_0x42a280){const _0xb0cd80=_0x173eea;let {toUnitId:_0x12c2d0,toSubUnitId:_0x1bd4ea,drawing:_0x24b72e,newTransforms:_0x11f808,newDrawingId:_0x158490,idMap:_0x10802c}=_0x42a280,_0x59559c={..._0x24b72e,'unitId':_0x12c2d0,'subUnitId':_0x1bd4ea,'drawingId':_0x158490,'transform':_0x11f808[_0xb0cd80(0x18f)],'sheetTransform':_0x11f808[_0xb0cd80(0x42d)]},{redo:_0x267885,undo:_0x526a86,objects:_0x2b1647}=this[_0xb0cd80(0x300)][_0xb0cd80(0x107)]([_0x59559c]),_0x255abe=this['_shapeService']['getShapeModel'](_0x24b72e[_0xb0cd80(0x1cb)],_0x24b72e[_0xb0cd80(0x12a)],_0x24b72e[_0xb0cd80(0x12c)]);if(!_0x255abe)return{'redos':[],'undos':[]};let _0x4e39a6=_0x255abe[_0xb0cd80(0x54a)](),_0x3de4d7=JSON[_0xb0cd80(0x1a1)](JSON[_0xb0cd80(0x40e)](_0x255abe['getShapeData']()));if(_0x3de4d7['relation']){var _0x367ec1,_0x2fb399;let _0x282a83=(_0x367ec1=_0x3de4d7[_0xb0cd80(0x15c)]['from'])==null?void 0x0:_0x367ec1['shapeId'],_0x2944d8=(_0x2fb399=_0x3de4d7[_0xb0cd80(0x15c)]['to'])==null?void 0x0:_0x2fb399[_0xb0cd80(0x118)],_0x2424e1=_0x282a83?_0x10802c['has'](_0x282a83):!0x0,_0x1711ff=_0x2944d8?_0x10802c[_0xb0cd80(0x2e4)](_0x2944d8):!0x0;_0x2424e1&&_0x282a83&&_0x3de4d7[_0xb0cd80(0x15c)]['from']?_0x3de4d7['relation']['from']={..._0x3de4d7[_0xb0cd80(0x15c)][_0xb0cd80(0x209)],'shapeId':_0x10802c['get'](_0x282a83)}:_0x3de4d7[_0xb0cd80(0x15c)][_0xb0cd80(0x209)]=void 0x0,_0x1711ff&&_0x2944d8&&_0x3de4d7['relation']['to']?_0x3de4d7[_0xb0cd80(0x15c)]['to']={..._0x3de4d7['relation']['to'],'shapeId':_0x10802c[_0xb0cd80(0x471)](_0x2944d8)}:_0x3de4d7[_0xb0cd80(0x15c)]['to']=void 0x0;}return{'redos':[{'id':_0x3f7546['id'],'params':{'unitId':_0x12c2d0,'subUnitId':_0x1bd4ea,'type':_0x29b499['INSERT'],'op':_0x267885,'objects':_0x2b1647}},{'id':_0x4043c4['id'],'params':{'unitId':_0x12c2d0,'subUnitId':_0x1bd4ea,'shapeId':_0x158490,'shapeType':_0x4e39a6,'shapeData':_0x3de4d7}}],'undos':[{'id':_0x3f7546['id'],'params':{'unitId':_0x12c2d0,'subUnitId':_0x1bd4ea,'type':_0x29b499[_0xb0cd80(0x352)],'op':_0x526a86,'objects':_0x2b1647}},{'id':_0x1e2473['id'],'params':{'unitId':_0x12c2d0,'subUnitId':_0x1bd4ea,'shapeId':_0x158490}}]};}[_0x173eea(0x2b8)](_0x2d93a6,_0x30ecdf,_0x53c4b3,_0x1c52aa){const _0x49bc08=_0x173eea;var _0x3044f1;let {range:_0x4748a4,skeleton:_0x10a67c}=_0x30ecdf,{range:_0x240c96,skeleton:_0xf5141a}=_0x53c4b3,{transform:_0x4950ea,sheetTransform:_0x2a2b6d}=_0x2d93a6,_0xbb93ee={..._0x4950ea};if(_0x4748a4){let _0x40ece4=_0x3ab144(_0x10a67c,_0x4748a4),_0x1ed01a=_0x3ab144(_0xf5141a,_0x240c96);if(_0x40ece4&&_0x1ed01a){var _0x20afc5,_0x318316;let _0x3082c8=_0x1ed01a[_0x49bc08(0x2b2)]-_0x40ece4[_0x49bc08(0x2b2)],_0xef4234=_0x1ed01a[_0x49bc08(0x35b)]-_0x40ece4[_0x49bc08(0x35b)];_0xbb93ee[_0x49bc08(0x4d1)]=((_0x20afc5=_0xbb93ee['left'])==null?0x0:_0x20afc5)+_0x3082c8,_0xbb93ee[_0x49bc08(0x32d)]=((_0x318316=_0xbb93ee[_0x49bc08(0x32d)])==null?0x0:_0x318316)+_0xef4234;}}else{let _0x10d79f=_0x3ab144(_0xf5141a,_0x240c96);if(_0x1c52aa&&_0x10d79f){var _0xd3b526,_0x242548;let _0x3a6a98=((_0xd3b526=_0xbb93ee[_0x49bc08(0x4d1)])==null?0x0:_0xd3b526)-_0x1c52aa[_0x49bc08(0x4d1)],_0x461c03=((_0x242548=_0xbb93ee[_0x49bc08(0x32d)])==null?0x0:_0x242548)-_0x1c52aa[_0x49bc08(0x32d)];_0xbb93ee[_0x49bc08(0x4d1)]=_0x10d79f['startX']+_0x3a6a98,_0xbb93ee[_0x49bc08(0x32d)]=_0x10d79f[_0x49bc08(0x35b)]+_0x461c03;}else _0xbb93ee[_0x49bc08(0x4d1)]=_0x10d79f==null?void 0x0:_0x10d79f[_0x49bc08(0x2b2)],_0xbb93ee[_0x49bc08(0x32d)]=_0x10d79f==null?void 0x0:_0x10d79f[_0x49bc08(0x35b)];}return{'transform':_0xbb93ee,'sheetTransform':(_0x3044f1=_0x16c154(_0xbb93ee,_0xf5141a))==null?_0x2a2b6d:_0x3044f1};}};Vo=Q([Z(0x0,_0x18290d(_0x2bb6a5)),Z(0x1,_0x18290d(_0x4858c6)),Z(0x2,_0x18290d(_0x4a3489)),Z(0x3,_0x18290d(_0x511e68)),Z(0x4,_0x18290d(_0x3519fb))],Vo);var Ho=class extends _0x268782{constructor(_0x4ddf2a,_0x21b800){const _0x58b0f9=_0x173eea;super(_0x4ddf2a,_0x21b800),J(this,_0x58b0f9(0x41d),null),J(this,_0x58b0f9(0x266),null),J(this,'_unitId',null),J(this,_0x58b0f9(0x27f),null),J(this,_0x58b0f9(0x164),!0x1),_0x21b800&&this[_0x58b0f9(0x4bb)](_0x21b800);}['getDrawingSearch'](){const _0x4c323d=_0x173eea;return{'unitId':this[_0x4c323d(0x320)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x4c323d(0x41d)]};}[_0x173eea(0x4bb)](_0x3ced1f){const _0x26f906=_0x173eea;_0x3ced1f[_0x26f906(0x118)]!==void 0x0&&(this['_shapeId']=_0x3ced1f[_0x26f906(0x118)]),_0x3ced1f[_0x26f906(0x1cb)]!==void 0x0&&(this[_0x26f906(0x320)]=_0x3ced1f['unitId']),_0x3ced1f[_0x26f906(0x12a)]!==void 0x0&&(this[_0x26f906(0x27f)]=_0x3ced1f[_0x26f906(0x12a)]),_0x3ced1f['isStartConnectorPoint']!==void 0x0&&(this[_0x26f906(0x164)]=_0x3ced1f[_0x26f906(0x402)]),this['transformByState']({'width':_0x3ced1f[_0x26f906(0x538)],'height':_0x3ced1f['height']});}[_0x173eea(0x23c)](_0x38dcba){const _0x5b9364=_0x173eea;_0x557a14[_0x5b9364(0x4b7)](_0x38dcba,{'radius':_0x38fd6a[_0x5b9364(0x1be)],'fill':_0x38fd6a[_0x5b9364(0x361)],'stroke':_0x38fd6a[_0x5b9364(0x10b)],'strokeWidth':_0x38fd6a[_0x5b9364(0x2c7)],'evented':!0x0});}};let Uo=class extends _0x399c04{constructor(_0x473f5c,_0x5e8112,_0x2d4810,_0x533cf9,_0x1c8787,_0x5b837f,_0x456a22,_0x3e0714){const _0x70c4e7=_0x173eea;super(),this[_0x70c4e7(0x48f)]=_0x473f5c,this[_0x70c4e7(0x21f)]=_0x5e8112,this[_0x70c4e7(0x292)]=_0x2d4810,this['_drawingManagerService']=_0x533cf9,this[_0x70c4e7(0x4a9)]=_0x1c8787,this[_0x70c4e7(0x16e)]=_0x5b837f,this['_sheetShapeAdjustController']=_0x456a22,this[_0x70c4e7(0x502)]=_0x3e0714,J(this,'_activeShapeId',void 0x0),J(this,_0x70c4e7(0x320),void 0x0),J(this,_0x70c4e7(0x27f),void 0x0),J(this,_0x70c4e7(0x2d4),[]),J(this,_0x70c4e7(0x4e8),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),J(this,_0x70c4e7(0x162),void 0x0),J(this,_0x70c4e7(0x205),!0x1),J(this,'_isDrawingShapePointDown',!0x1),J(this,_0x70c4e7(0x2a6),!0x1),J(this,_0x70c4e7(0x427),void 0x0),J(this,_0x70c4e7(0x137),void 0x0),J(this,'_currentConnectionTarget',null),this[_0x70c4e7(0x2f4)]();}[_0x173eea(0x2f4)](){const _0x27de8a=_0x173eea;this[_0x27de8a(0x273)](),this[_0x27de8a(0x1eb)]();}['_getDrawingRect'](){const _0x4c615f=_0x173eea;if(!this[_0x4c615f(0x320)]||!this[_0x4c615f(0x27f)]||!this['_activeShapeId'])return;let _0x313249={'unitId':this[_0x4c615f(0x320)],'subUnitId':this[_0x4c615f(0x27f)],'drawingId':this['_activeShapeId']},{transform:_0x337e07}=this[_0x4c615f(0x494)][_0x4c615f(0x19a)](_0x313249);if(_0x337e07)return{'left':_0x337e07[_0x4c615f(0x4d1)]||0x0,'top':_0x337e07[_0x4c615f(0x32d)]||0x0,'width':_0x337e07[_0x4c615f(0x538)]||0x0,'height':_0x337e07[_0x4c615f(0x3d1)]||0x0,'flipX':_0x337e07[_0x4c615f(0x2c2)]||!0x1,'flipY':_0x337e07[_0x4c615f(0x3fb)]||!0x1,'angle':_0x337e07[_0x4c615f(0x13d)]};}['_addShapeConnectorHandlerObjects'](){const _0x2975ad=_0x173eea;if(this[_0x2975ad(0x320)]===void 0x0||this[_0x2975ad(0x27f)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x306fa2=this[_0x2975ad(0x292)][_0x2975ad(0xf8)](this[_0x2975ad(0x320)]);if(!_0x306fa2||!_0x306fa2['with'](_0x15a10d)[_0x2975ad(0x32e)]())return;let {scene:_0x52acba}=_0x306fa2,_0x214587=this[_0x2975ad(0x4f2)]();if(!_0x214587)return;let _0x32781a=this[_0x2975ad(0x16e)][_0x2975ad(0xf3)](this[_0x2975ad(0x320)],this['_subUnitId'],this[_0x2975ad(0x4e5)]);if(!_0x32781a||!_0x5b837b(_0x32781a[_0x2975ad(0x54a)]()))return;let _0x3d2a15=_0x32781a[_0x2975ad(0x226)]();if(_0x3d2a15['length']<0x2)return;let _0x423c03=new _0x3074e9(_0x214587),_0x51ef92=_0x3d2a15[0x0],_0x2ac80a=_0x3d2a15[_0x3d2a15['length']-0x1],_0x5ec71b=_0x423c03['localToWorld'](_0x51ef92),_0x4e394f=_0x423c03[_0x2975ad(0x301)](_0x2ac80a);this[_0x2975ad(0x1df)](_0x52acba,{..._0x5ec71b},!0x0),this[_0x2975ad(0x1df)](_0x52acba,{..._0x4e394f},!0x1);}[_0x173eea(0x1df)](_0x313fec,_0x5b98f6,_0xc5e8a2){const _0x1bbcf8=_0x173eea;if(this[_0x1bbcf8(0x4e5)]===void 0x0||this['_unitId']===void 0x0||this['_subUnitId']===void 0x0)return;let _0x57096d=_0x1bbcf8(0x1dd)+this[_0x1bbcf8(0x320)]+'-'+this[_0x1bbcf8(0x27f)]+'-'+this[_0x1bbcf8(0x4e5)]+'-'+(_0xc5e8a2?_0x1bbcf8(0x500):'end'),_0x3e8c4b=_0x313fec[_0x1bbcf8(0x1e1)](_0x57096d);if(_0x3e8c4b){_0x3e8c4b[_0x1bbcf8(0x34e)]({'left':_0x5b98f6['x']-_0x38fd6a['cxnPointRadius'],'top':_0x5b98f6['y']-_0x38fd6a[_0x1bbcf8(0x1be)]});return;}let _0x597c7d=new Ho(_0x57096d,{'left':_0x5b98f6['x']-_0x38fd6a[_0x1bbcf8(0x1be)],'top':_0x5b98f6['y']-_0x38fd6a['cxnPointRadius'],'shapeId':this[_0x1bbcf8(0x4e5)],'unitId':this[_0x1bbcf8(0x320)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0xc5e8a2,'width':_0x38fd6a[_0x1bbcf8(0x1be)]*0x2,'height':_0x38fd6a['cxnPointRadius']*0x2,'zIndex':_0x2b5d9f+0x1,'evented':!0x0});this[_0x1bbcf8(0x2d4)][_0x1bbcf8(0x4bd)](_0x597c7d),this['_attachConnectorObjectEvent'](_0x597c7d,_0x313fec,_0xc5e8a2),_0x313fec[_0x1bbcf8(0x36e)](_0x597c7d,_0x2b5d9f+0x1);}['_getScrollInfo'](_0x3c3e4c,_0x531ae4){const _0x5b8854=_0x173eea;var _0x3528f6;let _0x5bbddc={'x':0x0,'y':0x0};if(!_0x3c3e4c||!_0x531ae4)return _0x5bbddc;let _0x5425c4=this['_renderManagerService'][_0x5b8854(0xf8)](_0x3c3e4c);if(!_0x5425c4||!_0x5425c4['with'](_0x15a10d)['getSkeleton'](_0x531ae4))return _0x5bbddc;let _0x61b9fb=_0x5425c4[_0x5b8854(0x395)](_0x558719),_0x2e3699=_0x61b9fb==null?void 0x0:_0x61b9fb[_0x5b8854(0x321)]();if(!_0x2e3699)return _0x5bbddc;let _0xc89d1=(_0x3528f6=this[_0x5b8854(0x4a9)][_0x5b8854(0x1b6)](_0x3c3e4c))==null?void 0x0:_0x3528f6['getSheetBySheetId'](_0x531ae4);if(!_0xc89d1)return _0x5bbddc;let _0x4001e5=_0x37db43(_0x2e3699['sheetViewStartRow'],_0x2e3699['sheetViewStartColumn'],_0x5425c4[_0x5b8854(0x443)],_0xc89d1);return _0x4001e5?{'x':_0x4001e5['viewportScrollX'],'y':_0x4001e5[_0x5b8854(0x2c8)]}:_0x5bbddc;}['_getZoomRatio'](_0x39fb37,_0x4cbe9d){const _0x39cae7=_0x173eea;var _0x280ad6,_0x406f98;let _0x3f639f=(_0x280ad6=this[_0x39cae7(0x4a9)]['getUnit'](_0x39fb37))==null?void 0x0:_0x280ad6['getSheetBySheetId'](_0x4cbe9d);return(_0x406f98=_0x3f639f==null?void 0x0:_0x3f639f[_0x39cae7(0x37c)]())==null?0x1:_0x406f98;}['_handleConnectorPointerUp'](_0x4bdc31,_0x3e84a1,_0x307574,_0x435bcf,_0x497b71){const _0x1f3cc6=_0x173eea;this[_0x1f3cc6(0x427)][_0x1f3cc6(0x2e8)](),this['_cxtHandlerPointerUp'][_0x1f3cc6(0x2e8)](),this[_0x1f3cc6(0x19c)][_0x1f3cc6(0x4cf)]();let _0x4fc42d=this['_currentConnectionTarget'];this[_0x1f3cc6(0x502)][_0x1f3cc6(0x116)]();let _0x588bc7=this['_getScrollInfo'](this['_unitId'],this['_subUnitId']),_0x25663b=this[_0x1f3cc6(0x25d)](this['_unitId'],this[_0x1f3cc6(0x27f)]),_0xb56712={'x':_0x307574[_0x1f3cc6(0x1ed)]/_0x25663b+_0x588bc7['x'],'y':_0x307574[_0x1f3cc6(0x190)]/_0x25663b+_0x588bc7['y']},_0x54168e=_0x4fc42d?_0x4fc42d[_0x1f3cc6(0x1e5)]:_0xb56712,_0x2038e0=_0x435bcf?this[_0x1f3cc6(0x162)][_0x1f3cc6(0x161)]():this[_0x1f3cc6(0x162)]['getStartConnectInfo'](),_0x2825ae=this[_0x1f3cc6(0x162)][_0x1f3cc6(0x54a)]();_0x2038e0?this['_handleConnectedEndpointPointerUp'](_0x2038e0,_0x54168e,_0x435bcf,_0x4fc42d,_0x497b71):this[_0x1f3cc6(0x36b)](_0x3e84a1,_0x54168e,_0x435bcf,_0x4fc42d,_0x497b71,_0x2825ae),this[_0x1f3cc6(0x205)]=!0x1,this['_hasReset']=!0x1,this[_0x1f3cc6(0x1ef)]=null,_0x4bdc31[_0x1f3cc6(0x168)]();}[_0x173eea(0x36b)](_0x22b574,_0x42f544,_0x3c0ece,_0x5602b0,_0x3e1a20,_0xdefdc3){const _0x3e6e7f=_0x173eea;let _0x5035f5=_0xdefdc3===_0x1e291f[_0x3e6e7f(0x327)]||_0xdefdc3===_0x1e291f[_0x3e6e7f(0x2f6)],_0x3a0982=_0x3c0ece?_0x42f544:_0x22b574,_0xbe992f=_0x3c0ece?_0x22b574:_0x42f544,_0x54e555=this[_0x3e6e7f(0x162)][_0x3e6e7f(0x226)](),_0x4617dd=_0x5020e3(this[_0x3e6e7f(0x162)][_0x3e6e7f(0x54a)]()),_0x59a55c=_0x3074e9['getBentTypeFromPoints'](_0x54e555,_0x4617dd),_0x1189ee=_0x5035f5?_0x3074e9['computeStraightConnectorLayout'](_0x3a0982,_0xbe992f):_0x3074e9['computeConnectorResizeLayout'](_0x22b574,_0x42f544,_0x3c0ece,_0x59a55c);_0x5602b0?this[_0x3e6e7f(0x250)](_0x1189ee,_0x5602b0,_0x3c0ece,_0x3e1a20):this[_0x3e6e7f(0x263)](_0x1189ee,_0x3e1a20);}[_0x173eea(0x40d)](_0x159da1,_0x97c15b,_0x5c4e20,_0x3f3dc2,_0x2837d6){const _0x12639=_0x173eea;let _0x48edff=this['_getConnectPointInfo'](_0x159da1);if(!_0x48edff)return;let _0x4bba69=_0x3f3dc2?_0x3f3dc2[_0x12639(0x13d)]:this[_0x12639(0x1a8)](_0x48edff['point'],_0x97c15b),_0x21de63;if(_0x3f3dc2){let _0x1729bb=this[_0x12639(0x494)]['getDrawingByParam']({'unitId':_0x3f3dc2[_0x12639(0x1cb)],'subUnitId':_0x3f3dc2[_0x12639(0x12a)],'drawingId':_0x3f3dc2[_0x12639(0x118)]});if(_0x1729bb!=null&&_0x1729bb['transform']){let {left:_0x3adc86=0x0,top:_0x25c9bf=0x0,width:_0x37c7a2=0x0,height:_0x453e89=0x0,angle:_0x5a2f4a}=_0x1729bb[_0x12639(0x18f)];_0x21de63=_0x459955({'left':_0x3adc86,'top':_0x25c9bf,'width':_0x37c7a2,'height':_0x453e89},_0x5a2f4a||0x0);}else _0x21de63={'left':_0x97c15b['x'],'top':_0x97c15b['y'],'width':0x0,'height':0x0};}else _0x21de63={'left':_0x97c15b['x'],'top':_0x97c15b['y'],'width':0x0,'height':0x0};let _0x271c08={'point':_0x97c15b,'angle':_0x4bba69,'bounds':_0x21de63},_0x2a0c08=_0x5c4e20?_0x271c08:_0x48edff,_0x1de400=_0x5c4e20?_0x48edff:_0x271c08,_0x3df5e1=this[_0x12639(0x162)]['getShapeType'](),_0x2ca707=_0x781771(_0x2a0c08,_0x1de400,_0x3df5e1);this[_0x12639(0x162)][_0x12639(0x548)]();let _0xcdb8a8=_0x3378a8(_0x2ca707,_0x3df5e1);_0x3f3dc2?this['_executeConnectedRouteConnectionCommand'](_0xcdb8a8,_0x3f3dc2,_0x159da1,_0x5c4e20,_0x2837d6):this[_0x12639(0x4ba)](_0xcdb8a8,_0x159da1,_0x5c4e20,_0x2837d6);}[_0x173eea(0x250)](_0x191e50,_0x5f515d,_0x36429c,_0x3fb3b5){const _0x221490=_0x173eea;let _0x352391=this['_activeShapeModel'][_0x221490(0x2c9)]()[_0x221490(0x15c)],_0x2c1c4d={..._0x352391},_0x44691f={'shapeId':_0x5f515d[_0x221490(0x118)],'cxnIndex':_0x5f515d[_0x221490(0x493)]};_0x36429c?_0x2c1c4d[_0x221490(0x209)]=_0x44691f:_0x2c1c4d['to']=_0x44691f;let _0x3fe6bb=this['_activeShapeModel'][_0x221490(0x54a)](),_0xa6eea9=_0x3378a8(_0x191e50['worldPoints'],_0x3fe6bb),_0x2664d3={'unitId':this[_0x221490(0x320)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x221490(0x4e5)],'width':_0x191e50[_0x221490(0x1c7)][_0x221490(0x538)],'height':_0x191e50['worldRect'][_0x221490(0x3d1)],'left':_0x191e50[_0x221490(0x1c7)][_0x221490(0x4d1)],'top':_0x191e50[_0x221490(0x1c7)]['top'],'flipX':_0x191e50[_0x221490(0x1c7)]['flipX']||!0x1,'flipY':_0x191e50[_0x221490(0x1c7)][_0x221490(0x3fb)]||!0x1,'newAdjustValues':_0xa6eea9[_0x221490(0x1d1)],'oldAdjustValues':_0x3fb3b5,'oldRelation':_0x352391,'newRelation':_0x2c1c4d,'newLineType':_0xa6eea9[_0x221490(0x14f)],'oldLineType':_0x3fe6bb};this[_0x221490(0x21f)][_0x221490(0x4ff)](_0x510b98['id'],_0x2664d3);}[_0x173eea(0x263)](_0x1d9234,_0x143277){const _0x1e4667=_0x173eea;let _0x240611=this[_0x1e4667(0x162)][_0x1e4667(0x54a)](),_0x2b9d27=_0x3378a8(_0x1d9234[_0x1e4667(0x56d)],_0x240611),_0x119401={'unitId':this[_0x1e4667(0x320)],'subUnitId':this[_0x1e4667(0x27f)],'shapeId':this[_0x1e4667(0x4e5)],'width':_0x1d9234[_0x1e4667(0x1c7)][_0x1e4667(0x538)],'height':_0x1d9234[_0x1e4667(0x1c7)][_0x1e4667(0x3d1)],'left':_0x1d9234[_0x1e4667(0x1c7)][_0x1e4667(0x4d1)],'top':_0x1d9234[_0x1e4667(0x1c7)][_0x1e4667(0x32d)],'flipX':_0x1d9234['worldRect']['flipX']||!0x1,'flipY':_0x1d9234[_0x1e4667(0x1c7)][_0x1e4667(0x3fb)]||!0x1,'angle':_0x1d9234[_0x1e4667(0x1c7)][_0x1e4667(0x13d)]||0x0,'newAdjustValues':_0x2b9d27[_0x1e4667(0x1d1)],'oldAdjustValues':_0x143277,'newLineType':_0x2b9d27[_0x1e4667(0x14f)],'oldLineType':_0x240611};this[_0x1e4667(0x21f)][_0x1e4667(0x4ff)](_0x278a01['id'],_0x119401);}[_0x173eea(0x554)](_0x55c554,_0x14fa93,_0x300545,_0x8d2f0f,_0x12eecd){const _0x1490fe=_0x173eea;let _0xe5ab01=this['_activeShapeModel'][_0x1490fe(0x2c9)]()['relation'],_0x56a495={..._0xe5ab01},_0x4ff8db={'shapeId':_0x14fa93[_0x1490fe(0x118)],'cxnIndex':_0x14fa93['cxnIndex']};_0x8d2f0f?(_0x56a495[_0x1490fe(0x209)]=_0x4ff8db,_0x56a495['to']=_0x300545):(_0x56a495[_0x1490fe(0x209)]=_0x300545,_0x56a495['to']=_0x4ff8db);let _0x27b927={'unitId':this[_0x1490fe(0x320)],'subUnitId':this[_0x1490fe(0x27f)],'connectorShapeId':this['_activeShapeId'],'width':_0x55c554[_0x1490fe(0x1c7)]['width'],'height':_0x55c554['worldRect'][_0x1490fe(0x3d1)],'left':_0x55c554[_0x1490fe(0x1c7)][_0x1490fe(0x4d1)],'top':_0x55c554[_0x1490fe(0x1c7)][_0x1490fe(0x32d)],'flipX':_0x55c554[_0x1490fe(0x1c7)][_0x1490fe(0x2c2)]||!0x1,'flipY':_0x55c554[_0x1490fe(0x1c7)][_0x1490fe(0x3fb)]||!0x1,'oldAdjustValues':_0x12eecd,'newAdjustValues':_0x55c554[_0x1490fe(0x1d1)],'newLineType':_0x55c554[_0x1490fe(0x14f)],'rotation':_0x55c554[_0x1490fe(0x488)],'oldRelation':_0xe5ab01,'newRelation':_0x56a495};this[_0x1490fe(0x21f)][_0x1490fe(0x4ff)](_0x510b98['id'],_0x27b927);}[_0x173eea(0x4ba)](_0x201934,_0x42282d,_0x2c6d4c,_0x46cf7f){const _0x2a8824=_0x173eea;let _0x1141ba=this[_0x2a8824(0x162)]['getShapeData']()['relation'],_0x5e30f5={};_0x2c6d4c?(_0x5e30f5['to']=_0x42282d,_0x5e30f5[_0x2a8824(0x209)]=void 0x0):(_0x5e30f5[_0x2a8824(0x209)]=_0x42282d,_0x5e30f5['to']=void 0x0);let _0x398485={'unitId':this[_0x2a8824(0x320)],'subUnitId':this[_0x2a8824(0x27f)],'connectorShapeId':this['_activeShapeId'],'width':_0x201934[_0x2a8824(0x1c7)][_0x2a8824(0x538)],'height':_0x201934['worldRect']['height'],'left':_0x201934[_0x2a8824(0x1c7)]['left'],'top':_0x201934[_0x2a8824(0x1c7)][_0x2a8824(0x32d)],'flipX':_0x201934[_0x2a8824(0x1c7)][_0x2a8824(0x2c2)]||!0x1,'flipY':_0x201934[_0x2a8824(0x1c7)][_0x2a8824(0x3fb)]||!0x1,'oldAdjustValues':_0x46cf7f,'newAdjustValues':_0x201934['adjustValues'],'newLineType':_0x201934['lineType'],'rotation':_0x201934[_0x2a8824(0x488)],'oldRelation':_0x1141ba,'newRelation':_0x5e30f5};this[_0x2a8824(0x21f)][_0x2a8824(0x4ff)](_0x510b98['id'],_0x398485);}[_0x173eea(0x1d9)](_0x2d866e,_0x34fcca,_0x61d452){const _0xce9ab1=_0x173eea;this[_0xce9ab1(0x48b)](_0x4d0bea(_0x2d866e[_0xce9ab1(0x39a)][_0xce9ab1(0x410)]((_0x5b0044,_0x4a064e)=>{const _0x44f115=_0xce9ab1;let _0x54d6e7=_0x2d866e[_0x44f115(0x104)]();if(this[_0x44f115(0x162)]=this[_0x44f115(0x16e)][_0x44f115(0xf3)](_0x54d6e7[_0x44f115(0x1cb)],_0x54d6e7[_0x44f115(0x12a)],_0x54d6e7['drawingId']),!this[_0x44f115(0x162)])return;let _0x371887={};this[_0x44f115(0x162)][_0x44f115(0x549)]()[_0x44f115(0x318)](_0x2bdbe9=>{const _0x2e6b5e=_0x44f115;let _0x19ff02=this[_0x2e6b5e(0x162)][_0x2e6b5e(0x55a)](_0x2bdbe9);_0x19ff02!==void 0x0&&(_0x371887[_0x2bdbe9]=_0x19ff02);});let _0x125f25=this[_0x44f115(0x4f2)]();if(!_0x125f25)return;this[_0x44f115(0x4e8)]={..._0x125f25};let _0x10e057=new _0x3074e9(this['_baseDrawingRect']),_0x513796=_0x4b2a63({'unitId':this[_0x44f115(0x320)],'subUnitId':this[_0x44f115(0x27f)],'drawingId':this[_0x44f115(0x4e5)]}),_0x238468=_0x34fcca[_0x44f115(0x1e1)](_0x513796);this[_0x44f115(0x205)]=!0x0,_0x34fcca[_0x44f115(0xfa)](),this['_sheetBasicShapeConnectionPointController'][_0x44f115(0x23d)](_0x34fcca,this[_0x44f115(0x320)],this['_subUnitId'],this['_activeShapeId']),this[_0x44f115(0x1ef)]=null;let _0x399ec3=this[_0x44f115(0x162)][_0x44f115(0x226)](),_0x42e996=_0x399ec3[0x0],_0x4e4c17=_0x399ec3[_0x399ec3['length']-0x1],_0x43c046=_0x61d452?_0x10e057[_0x44f115(0x301)](_0x4e4c17):_0x10e057[_0x44f115(0x301)](_0x42e996);this['_cxtHandlerPointerMove']=_0x34fcca['onPointerMove$']['subscribeEvent']((_0x5d7ec3,_0x367dc9)=>{const _0x4c1891=_0x44f115;if(!this[_0x4c1891(0x205)]||!this[_0x4c1891(0x162)])return;this[_0x4c1891(0x2a6)]||(this['_sheetShapeAdjustController'][_0x4c1891(0x1f3)](),this[_0x4c1891(0x162)]['clearAdjustValue'](),this[_0x4c1891(0x2a6)]=!0x0);let _0x26cf50=this[_0x4c1891(0x1c2)](this[_0x4c1891(0x320)],this[_0x4c1891(0x27f)]),_0x4e9a9f=this[_0x4c1891(0x25d)](this[_0x4c1891(0x320)],this['_subUnitId']),_0x45c5db={'x':_0x5d7ec3['offsetX']/_0x4e9a9f+_0x26cf50['x'],'y':_0x5d7ec3['offsetY']/_0x4e9a9f+_0x26cf50['y']},_0x2a966c=this[_0x4c1891(0x502)]['updateConnectionDetection'](_0x45c5db);if(_0x2a966c){let {shapeId:_0x2f3743,unitId:_0x389c00,subUnitId:_0x4fc28b}=_0x2a966c;if(_0x2f3743&&_0x389c00&&_0x4fc28b){let _0x433ac4=_0x4b2a63({'unitId':_0x389c00,'subUnitId':_0x4fc28b,'drawingId':_0x2f3743});_0x2a966c[_0x4c1891(0x13d)]=(_0x34fcca['getObjectIncludeInGroup'](_0x433ac4)[_0x4c1891(0x13d)]||0x0)+_0x2a966c[_0x4c1891(0x13d)];}}this[_0x4c1891(0x1ef)]=_0x2a966c;let _0x5b7a8a=_0x61d452?this[_0x4c1891(0x162)][_0x4c1891(0x161)]():this[_0x4c1891(0x162)][_0x4c1891(0x3a9)]();if(_0x5b7a8a){this[_0x4c1891(0x370)](_0x5b7a8a,_0x45c5db,_0x61d452,_0x238468,_0x2d866e);return;}this['_handleFreeEndpointMove'](_0x45c5db,_0x43c046,_0x61d452,_0x238468,_0x2d866e);}),this[_0x44f115(0x137)]=_0x34fcca[_0x44f115(0x457)][_0x44f115(0x410)]((_0x50fa13,_0x34f5f0)=>{const _0x361900=_0x44f115;this[_0x361900(0x4cc)](_0x34fcca,_0x43c046,_0x50fa13,_0x61d452,_0x371887);}),_0x4a064e[_0x44f115(0x1bf)]();})));}[_0x173eea(0x37d)](_0xd2f0df,_0x572402,_0x1752ad){const _0x30ca7f=_0x173eea;let _0x3a016a=this[_0x30ca7f(0x16e)][_0x30ca7f(0x2ed)](_0xd2f0df,_0x572402,_0x1752ad);if(!_0x3a016a||_0x3a016a[_0x30ca7f(0x49f)]===0x0)return;let _0x52623c=this[_0x30ca7f(0x292)]['getRenderById'](_0xd2f0df);if(!_0x52623c)return;let {scene:_0x116c1b}=_0x52623c;for(let _0x15a1a4 of _0x3a016a){let _0x4973a1=_0x15a1a4[_0x30ca7f(0x3f1)],_0x5756ab=this[_0x30ca7f(0x16e)]['getShapeModel'](_0xd2f0df,_0x572402,_0x4973a1);if(!_0x5756ab)continue;let _0x568505=_0x5756ab['getStartConnectInfo'](),_0x49c90f=_0x5756ab[_0x30ca7f(0x161)](),_0x1a5471=(_0x568505==null?void 0x0:_0x568505['shapeId'])===_0x1752ad,_0x397e8c=_0x4b2a63({'unitId':_0xd2f0df,'subUnitId':_0x572402,'drawingId':_0x4973a1}),_0x38dcd3=_0x116c1b[_0x30ca7f(0x1e1)](_0x397e8c);if(!_0x38dcd3)continue;let _0x401f96=this[_0x30ca7f(0x494)]['getDrawingByParam']({'unitId':_0xd2f0df,'subUnitId':_0x572402,'drawingId':_0x4973a1});_0x401f96!=null&&_0x401f96['transform']&&(_0x568505&&_0x49c90f?this[_0x30ca7f(0x22b)](_0xd2f0df,_0x572402,_0x4973a1,_0x5756ab,_0x568505,_0x49c90f,_0x38dcd3):this[_0x30ca7f(0x1c3)](_0xd2f0df,_0x572402,_0x4973a1,_0x5756ab,_0x1a5471?_0x568505:_0x49c90f,_0x1a5471,_0x401f96,_0x38dcd3));}}[_0x173eea(0x22b)](_0x36c1a9,_0x20c457,_0x1278c0,_0x271c0e,_0x361cb8,_0x64dbc4,_0xa6ec45){const _0x3c3848=_0x173eea;let _0x55f528=this['_unitId'],_0x5bf47c=this[_0x3c3848(0x27f)];this[_0x3c3848(0x320)]=_0x36c1a9,this[_0x3c3848(0x27f)]=_0x20c457;let _0x5020f8=this['_getConnectPointInfo'](_0x361cb8),_0x2ed45d=this[_0x3c3848(0x1de)](_0x64dbc4);if(this[_0x3c3848(0x320)]=_0x55f528,this['_subUnitId']=_0x5bf47c,!_0x5020f8||!_0x2ed45d)return;let _0x41515c=_0x271c0e[_0x3c3848(0x54a)](),_0x2b4215=_0x781771(_0x5020f8,_0x2ed45d,_0x41515c);_0x2b4215&&_0x271c0e[_0x3c3848(0x518)](_0x2b4215);let _0x5efe97=_0x3378a8(_0x2b4215,_0x41515c);_0x5efe97[_0x3c3848(0x14f)]!==_0x41515c&&_0x271c0e['changeShapeType'](_0x5efe97[_0x3c3848(0x14f)]),_0x271c0e[_0x3c3848(0x12d)]();for(let [_0x2b25e4,_0xb30c82]of Object[_0x3c3848(0x19f)](_0x5efe97['adjustValues']))_0x271c0e[_0x3c3848(0x256)](_0x2b25e4,_0xb30c82);_0x271c0e[_0x3c3848(0x1c8)]({'width':_0x5efe97[_0x3c3848(0x1c7)][_0x3c3848(0x538)],'height':_0x5efe97[_0x3c3848(0x1c7)][_0x3c3848(0x3d1)]}),_0xa6ec45[_0x3c3848(0x34e)]({'flipX':_0x5efe97[_0x3c3848(0x1c7)][_0x3c3848(0x2c2)],'flipY':_0x5efe97[_0x3c3848(0x1c7)][_0x3c3848(0x3fb)],'left':_0x5efe97[_0x3c3848(0x1c7)]['left'],'top':_0x5efe97[_0x3c3848(0x1c7)]['top'],'width':_0x5efe97[_0x3c3848(0x1c7)]['width'],'height':_0x5efe97[_0x3c3848(0x1c7)][_0x3c3848(0x3d1)],'angle':_0x5efe97['rotation']}),_0x271c0e[_0x3c3848(0x548)]();}['_moveConnectorWithShape'](_0x1c2ff7,_0x3ee8b4,_0x10ac80,_0x5ebd0b,_0x2fa8d7,_0x1c67e5,_0x2bb58e,_0x3d6435){const _0x50ac01=_0x173eea;let _0x34c261=this[_0x50ac01(0x320)],_0x3a4dd6=this['_subUnitId'];this[_0x50ac01(0x320)]=_0x1c2ff7,this[_0x50ac01(0x27f)]=_0x3ee8b4;let _0x585079=this[_0x50ac01(0x1de)](_0x2fa8d7);if(this[_0x50ac01(0x320)]=_0x34c261,this[_0x50ac01(0x27f)]=_0x3a4dd6,!_0x585079)return;let {left:_0x388904=0x0,top:_0x42a121=0x0,width:_0x174a36=0x0,height:_0x1110c2=0x0,flipX:_0x3ca4de=!0x1,flipY:_0x336234=!0x1}=_0x2bb58e['transform'],_0xc2348d=_0x5ebd0b['getConnectorLinePoints']();if(_0xc2348d[_0x50ac01(0x49f)]<0x2)return;let _0x18e36a=new _0x3074e9({'left':_0x388904,'top':_0x42a121,'width':_0x174a36,'height':_0x1110c2,'flipX':_0x3ca4de,'flipY':_0x336234}),_0x149b71=_0x1c67e5?_0xc2348d[_0xc2348d['length']-0x1]:_0xc2348d[0x0],_0x4476fd=_0x18e36a[_0x50ac01(0x301)](_0x149b71),_0x555b7d=_0x3074e9['computeConnectorResizeLayout'](_0x4476fd,_0x585079[_0x50ac01(0x22d)],!_0x1c67e5);_0x3d6435[_0x50ac01(0x34e)]({'flipX':_0x555b7d[_0x50ac01(0x1c7)][_0x50ac01(0x2c2)],'flipY':_0x555b7d[_0x50ac01(0x1c7)][_0x50ac01(0x3fb)],'left':_0x555b7d[_0x50ac01(0x1c7)]['left'],'top':_0x555b7d[_0x50ac01(0x1c7)]['top'],'width':_0x555b7d[_0x50ac01(0x1c7)][_0x50ac01(0x538)],'height':_0x555b7d[_0x50ac01(0x1c7)][_0x50ac01(0x3d1)],'angle':_0x555b7d[_0x50ac01(0x1c7)][_0x50ac01(0x13d)]}),_0x3d6435[_0x50ac01(0x58e)](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0xb910a7=_0x173eea;this[_0xb910a7(0x2d4)]['length']!==0x0&&(this[_0xb910a7(0x2d4)][_0xb910a7(0x318)](_0x2b72da=>{const _0x1000c7=_0xb910a7;_0x2b72da[_0x1000c7(0x50d)]();}),this['_connectorObjects']=[]);}[_0x173eea(0x1eb)](){const _0x12956d=_0x173eea;let _0x2fd06d=this['_univerInstanceService'][_0x12956d(0x11c)](_0x59e014[_0x12956d(0x46e)]);this['disposeWithMe'](_0x2fd06d['pipe'](_0x15b88d(_0x2e2e2f=>_0x2e2e2f?_0x2e2e2f['activeSheet$'][_0x12956d(0x38b)](_0x15b88d(_0x3348df=>{const _0x5c1e18=_0x12956d;if(!_0x3348df)return _0x263aaa;let _0x3b1767=_0x2e2e2f[_0x5c1e18(0x1bb)](),_0x43b51f=this[_0x5c1e18(0x292)][_0x5c1e18(0xf8)](_0x3b1767),_0x55bbf1=_0x43b51f==null?void 0x0:_0x43b51f[_0x5c1e18(0x443)];return _0x55bbf1?_0x5ef336(_0x55bbf1):_0x263aaa;})):_0x263aaa))[_0x12956d(0x30e)](_0x5ee410=>{const _0x459891=_0x12956d;let _0x57c2fa=_0x5ee410[_0x459891(0x512)]();this[_0x459891(0x48b)](_0x5ee410[_0x459891(0x48c)][_0x459891(0x410)](_0x289159=>{const _0x350501=_0x459891;this[_0x350501(0x478)]&&this[_0x350501(0x4e5)]&&this[_0x350501(0x439)]();})),this[_0x459891(0x48b)](_0x57c2fa[_0x459891(0x45a)][_0x459891(0x30e)](_0x70e93d=>{const _0x2e6df5=_0x459891;let {objects:_0x3c330c}=_0x70e93d;this[_0x2e6df5(0x439)](),_0x3c330c!==null&&_0x3c330c['size']===0x1&&_0x3c330c[_0x2e6df5(0x4f4)]()[_0x2e6df5(0x474)]()[_0x2e6df5(0x2c1)]instanceof eo&&(this[_0x2e6df5(0x478)]=!0x0);})),this[_0x459891(0x48b)](_0x57c2fa[_0x459891(0x580)]['subscribe'](_0x5d6eb4=>{const _0x5c74ec=_0x459891;this[_0x5c74ec(0x478)]&&this[_0x5c74ec(0x439)]();})),this[_0x459891(0x48b)](_0x5ee410[_0x459891(0x457)]['subscribeEvent'](()=>{const _0x11d2da=_0x459891;this[_0x11d2da(0x478)]&&(this[_0x11d2da(0x478)]=!0x1,this[_0x11d2da(0x3c5)]());})),this[_0x459891(0x48b)](_0x57c2fa[_0x459891(0x392)][_0x459891(0x30e)](()=>{const _0x519c2c=_0x459891;this[_0x519c2c(0x320)]&&this[_0x519c2c(0x27f)]&&this[_0x519c2c(0x4e5)]&&this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x519c2c(0x320)],'subUnitId':this[_0x519c2c(0x27f)],'drawingId':this[_0x519c2c(0x4e5)]})&&(this[_0x519c2c(0x439)](),this[_0x519c2c(0x3c5)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x92f079=_0x173eea;this[_0x92f079(0x48b)](this[_0x92f079(0x494)][_0x92f079(0x4f1)]['subscribe'](_0x5d31ef=>{const _0x3f1794=_0x92f079;if(_0x5d31ef[_0x3f1794(0x49f)]===0x1){let _0x33fa40=_0x5d31ef[0x0];if(_0x33fa40[_0x3f1794(0x319)]===_0x217b4d[_0x3f1794(0xf5)]){let _0x126cc2=this[_0x3f1794(0x16e)][_0x3f1794(0xf3)](_0x33fa40[_0x3f1794(0x1cb)],_0x33fa40[_0x3f1794(0x12a)],_0x33fa40[_0x3f1794(0x12c)]);if(_0x126cc2&&_0x5b837b(_0x126cc2['getShapeType']())){this[_0x3f1794(0x4e5)]=_0x33fa40[_0x3f1794(0x12c)],this[_0x3f1794(0x320)]=_0x33fa40['unitId'],this[_0x3f1794(0x27f)]=_0x33fa40[_0x3f1794(0x12a)],this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']();return;}}}this[_0x3f1794(0x4e5)]=void 0x0,this['_unitId']=void 0x0,this['_subUnitId']=void 0x0,this[_0x3f1794(0x439)]();})),this[_0x92f079(0x48b)](this[_0x92f079(0x494)][_0x92f079(0x207)][_0x92f079(0x30e)](_0x50cc73=>{const _0x28c97b=_0x92f079;if(_0x50cc73[_0x28c97b(0x49f)]===0x1){var _0x4f41bd;let _0x42c666=_0x50cc73[0x0],_0x95aa67=(_0x4f41bd=this['_drawingManagerService'][_0x28c97b(0x19a)](_0x42c666))==null?void 0x0:_0x4f41bd['drawingType'];_0x95aa67===_0x217b4d[_0x28c97b(0xf5)]&&_0x42c666[_0x28c97b(0x12c)]===this[_0x28c97b(0x4e5)]?(this[_0x28c97b(0x439)](),this[_0x28c97b(0x3c5)]()):!this[_0x28c97b(0x4e5)]&&_0x95aa67===_0x217b4d['DRAWING_SHAPE']&&this[_0x28c97b(0x37d)](_0x42c666[_0x28c97b(0x1cb)],_0x42c666[_0x28c97b(0x12a)],_0x42c666[_0x28c97b(0x12c)]);}})),this['disposeWithMe'](this[_0x92f079(0x494)][_0x92f079(0x542)]['subscribe'](_0x490d1a=>{const _0x3f387f=_0x92f079;for(let _0x1137ff of _0x490d1a){let {drawingId:_0x455d6f}=_0x1137ff;if(this[_0x3f387f(0x4e5)]===_0x455d6f){this[_0x3f387f(0x587)]();return;}}}));}[_0x173eea(0x370)](_0x451e69,_0x48ca03,_0x389925,_0x318113,_0x5522ca){const _0x2ee177=_0x173eea;var _0x576fd7,_0x298a18;if(!this[_0x2ee177(0x162)])return;let _0x473502=this[_0x2ee177(0x1de)](_0x451e69);if(!_0x473502)return;let _0x47e59f=this[_0x2ee177(0x1ef)]?this[_0x2ee177(0x1ef)][_0x2ee177(0x1e5)]:_0x48ca03,_0x4e6047=this[_0x2ee177(0x1ef)]?this[_0x2ee177(0x1ef)][_0x2ee177(0x13d)]:this[_0x2ee177(0x1a8)](_0x473502[_0x2ee177(0x22d)],_0x47e59f),_0xa7bf60;if(this['_currentConnectionTarget']){let _0x40f862=this['_drawingManagerService'][_0x2ee177(0x19a)]({'unitId':this[_0x2ee177(0x1ef)][_0x2ee177(0x1cb)],'subUnitId':this[_0x2ee177(0x1ef)][_0x2ee177(0x12a)],'drawingId':this[_0x2ee177(0x1ef)][_0x2ee177(0x118)]});if(_0x40f862!=null&&_0x40f862[_0x2ee177(0x18f)]){let {left:_0x25610a=0x0,top:_0x5571d2=0x0,width:_0x2a7773=0x0,height:_0x2b87ab=0x0,angle:_0x3bc73a}=_0x40f862[_0x2ee177(0x18f)];_0xa7bf60=_0x459955({'left':_0x25610a,'top':_0x5571d2,'width':_0x2a7773,'height':_0x2b87ab},_0x3bc73a||0x0);}else _0xa7bf60={'left':_0x47e59f['x'],'top':_0x47e59f['y'],'width':0x0,'height':0x0};}else _0xa7bf60={'left':_0x47e59f['x'],'top':_0x47e59f['y'],'width':0x0,'height':0x0};let _0xa54eb7={'point':_0x47e59f,'angle':_0x4e6047,'bounds':_0xa7bf60},_0x361de8=_0x389925?_0xa54eb7:_0x473502,_0x437b18=_0x389925?_0x473502:_0xa54eb7,_0x5a5d55=this['_activeShapeModel']['getShapeType'](),_0x41db1b=_0x781771(_0x361de8,_0x437b18,_0x5a5d55);console[_0x2ee177(0x461)](_0x361de8,_0x437b18),_0x41db1b&&this[_0x2ee177(0x162)][_0x2ee177(0x518)](_0x41db1b);let _0x287af6=_0x3378a8(_0x41db1b,_0x5a5d55);_0x287af6[_0x2ee177(0x14f)]!==_0x5a5d55&&this[_0x2ee177(0x162)][_0x2ee177(0x3ea)](_0x287af6['lineType']);for(let [_0x249958,_0xf55177]of Object[_0x2ee177(0x19f)](_0x287af6[_0x2ee177(0x1d1)]))this[_0x2ee177(0x162)][_0x2ee177(0x256)](_0x249958,_0xf55177);this[_0x2ee177(0x162)]['updateContext']({'width':_0x287af6[_0x2ee177(0x1c7)][_0x2ee177(0x538)],'height':_0x287af6['worldRect'][_0x2ee177(0x3d1)]}),_0x318113[_0x2ee177(0x34e)]({'flipX':_0x287af6[_0x2ee177(0x1c7)][_0x2ee177(0x2c2)],'flipY':_0x287af6[_0x2ee177(0x1c7)][_0x2ee177(0x3fb)],'left':_0x287af6[_0x2ee177(0x1c7)][_0x2ee177(0x4d1)],'top':_0x287af6[_0x2ee177(0x1c7)][_0x2ee177(0x32d)],'width':_0x287af6[_0x2ee177(0x1c7)][_0x2ee177(0x538)],'height':_0x287af6[_0x2ee177(0x1c7)]['height'],'angle':_0x287af6[_0x2ee177(0x488)]}),_0x318113['makeDirty'](!0x0);let _0x541788=(_0x576fd7=(_0x298a18=this['_currentConnectionTarget'])==null?void 0x0:_0x298a18['worldPoint'])==null?_0x48ca03:_0x576fd7;_0x5522ca[_0x2ee177(0x34e)]({'left':_0x541788['x']-_0x38fd6a['cxnPointRadius'],'top':_0x541788['y']-_0x38fd6a[_0x2ee177(0x1be)]});}[_0x173eea(0x584)](_0x2dfc03,_0x89b644,_0x515c3b,_0x1a783c,_0x2d2d55){const _0x211977=_0x173eea;var _0x32af3f,_0x21ed75,_0x25680c,_0x50028b;let _0x5c857f=(_0x32af3f=(_0x21ed75=this['_currentConnectionTarget'])==null?void 0x0:_0x21ed75['worldPoint'])==null?_0x2dfc03:_0x32af3f,_0x10321c=_0x3074e9['computeConnectorResizeLayout'](_0x89b644,_0x5c857f,_0x515c3b);_0x1a783c[_0x211977(0x34e)]({'flipX':_0x10321c['worldRect'][_0x211977(0x2c2)],'flipY':_0x10321c[_0x211977(0x1c7)][_0x211977(0x3fb)],'left':_0x10321c['worldRect']['left'],'top':_0x10321c[_0x211977(0x1c7)][_0x211977(0x32d)],'width':_0x10321c[_0x211977(0x1c7)][_0x211977(0x538)],'height':_0x10321c[_0x211977(0x1c7)][_0x211977(0x3d1)],'angle':_0x10321c['worldRect']['angle']});let _0x2d263c=(_0x25680c=(_0x50028b=this[_0x211977(0x1ef)])==null?void 0x0:_0x50028b[_0x211977(0x1e5)])==null?_0x2dfc03:_0x25680c;_0x2d2d55[_0x211977(0x34e)]({'left':_0x2d263c['x']-_0x38fd6a[_0x211977(0x1be)],'top':_0x2d263c['y']-_0x38fd6a[_0x211977(0x1be)]});}[_0x173eea(0x1de)](_0x24d4f8){const _0x5e9a36=_0x173eea;if(!this[_0x5e9a36(0x320)]||!this[_0x5e9a36(0x27f)])return null;let {shapeId:_0x32bb16,cxnIndex:_0x950efb}=_0x24d4f8,_0x461827=this['_sheetsShapeService'][_0x5e9a36(0xf3)](this[_0x5e9a36(0x320)],this[_0x5e9a36(0x27f)],_0x32bb16);if(!_0x461827)return null;let _0x4223c3=this[_0x5e9a36(0x494)][_0x5e9a36(0x19a)]({'unitId':this[_0x5e9a36(0x320)],'subUnitId':this[_0x5e9a36(0x27f)],'drawingId':_0x32bb16});if(!(_0x4223c3!=null&&_0x4223c3['transform']))return null;let {left:_0x3a1c49=0x0,top:_0x342c9a=0x0,width:_0x106741=0x0,height:_0x13c0e2=0x0,flipX:_0x5f1c3b=!0x1,flipY:_0x43a618=!0x1,angle:_0x5db9df}=_0x4223c3[_0x5e9a36(0x18f)];_0x461827[_0x5e9a36(0x1c8)]({'width':_0x106741,'height':_0x13c0e2});let _0x3b98a2=_0x461827['getConnectionSiteList']()['find'](_0x4be46a=>_0x4be46a[_0x5e9a36(0x4d7)]===_0x950efb);if(!_0x3b98a2)return null;let _0x4cb4cf=_0x5f1c3b?_0x106741-_0x3b98a2['x']:_0x3b98a2['x'],_0x30f210=_0x43a618?_0x13c0e2-_0x3b98a2['y']:_0x3b98a2['y'];if(_0x5db9df!==0x0&&_0x5db9df!=null){let _0x20d52e=_0x5db9df*Math['PI']/0xb4,_0x436139=Math[_0x5e9a36(0x560)](_0x20d52e),_0x3b49c5=Math['sin'](_0x20d52e),_0xf32298=_0x106741/0x2,_0x5e284b=_0x13c0e2/0x2,_0x411ce7=_0x4cb4cf-_0xf32298,_0x209a8a=_0x30f210-_0x5e284b;_0x4cb4cf=_0xf32298+_0x411ce7*_0x436139-_0x209a8a*_0x3b49c5,_0x30f210=_0x5e284b+_0x411ce7*_0x3b49c5+_0x209a8a*_0x436139;}_0x4cb4cf+=_0x3a1c49,_0x30f210+=_0x342c9a;let _0x4637b1=_0x3b98a2[_0x5e9a36(0x2a0)]/0xea60;_0x5f1c3b&&(_0x4637b1=0xb4-_0x4637b1),_0x43a618&&(_0x4637b1=-_0x4637b1),_0x4637b1+=_0x5db9df||0x0,_0x4637b1=(_0x4637b1%0x168+0x168)%0x168;let _0x2dbac1=_0x459955({'left':_0x3a1c49,'top':_0x342c9a,'width':_0x106741,'height':_0x13c0e2},_0x5db9df||0x0);return{'point':{'x':_0x4cb4cf,'y':_0x30f210},'angle':_0x4637b1,'bounds':_0x2dbac1};}[_0x173eea(0x1a8)](_0x202e12,_0x4d0b2f){const _0x4bf1b2=_0x173eea;let _0x16bde2=_0x4d0b2f['x']-_0x202e12['x'],_0x3e31fa=_0x4d0b2f['y']-_0x202e12['y'];return Math['abs'](_0x16bde2)>=Math[_0x4bf1b2(0x1ec)](_0x3e31fa)?_0x16bde2>=0x0?0xb4:0x0:_0x3e31fa>=0x0?0x10e:0x5a;}[_0x173eea(0x587)](){const _0x1d6e65=_0x173eea;this[_0x1d6e65(0x4e5)]=void 0x0,this['_unitId']=void 0x0,this['_subUnitId']=void 0x0,this[_0x1d6e65(0x439)]();}['dispose'](){this['_clearShapeConnectorHandlerObjects'](),super['dispose']();}};Uo=Q([Z(0x1,_0x584851),Z(0x2,_0x5f4e41),Z(0x3,_0x4313c8),Z(0x4,_0x2d0725),Z(0x5,_0x18290d(_0x511e68)),Z(0x6,_0x18290d(po)),Z(0x7,_0x18290d(Bo))],Uo);let Wo=class extends _0x399c04{constructor(_0x1ef414,_0x5908af,_0x2b880e){const _0x4dadf2=_0x173eea;super(),this[_0x4dadf2(0x21f)]=_0x1ef414,this[_0x4dadf2(0x51e)]=_0x5908af,this[_0x4dadf2(0x154)]=_0x2b880e,this[_0x4dadf2(0x482)]();}['_initPermission'](){const _0x3ccee7=_0x173eea;this[_0x3ccee7(0x48b)](this[_0x3ccee7(0x21f)][_0x3ccee7(0x3dc)](_0x1681ea=>{const _0x293627=_0x3ccee7;let _0x366e11,_0x1ea837;if(_0x1681ea['id']===_0x4a5a00['id']||_0x1681ea['id']===_0x472d57['id']||_0x1681ea['id']===_0x510b98['id']){let _0x5f0cf4=_0x1681ea['params'];_0x366e11=_0x5f0cf4[_0x293627(0x1cb)],_0x1ea837=_0x5f0cf4['subUnitId'];}!_0x366e11||!_0x1ea837||this[_0x293627(0x154)][_0x293627(0x270)]({'workbookTypes':[_0x22452a],'worksheetTypes':[_0x3cfdfb]},_0x366e11,_0x1ea837)||this[_0x293627(0x154)]['blockExecuteWithoutPermission'](this[_0x293627(0x51e)]['t'](_0x293627(0x44a)));}));}};Wo=Q([Z(0x0,_0x18290d(_0x584851)),Z(0x1,_0x18290d(_0x14ed3e)),Z(0x2,_0x18290d(_0x1a1e4d))],Wo);const Go=function(_0x3e0145){const _0x3af506=_0x173eea;let {containerWidth:_0x31b699,containerHeight:_0x3d31f3,scaleX:_0x2f0a8f,scaleY:_0xa13db7}=_0x3e0145,_0x32a593=_0x6447ef(Y),_0x500912=_0x6447ef(_0x28a561),_0x9df16d=_0x6447ef(_0x5f4e41),_0x2c0b81=_0x6447ef(_0x2d0725),_0x4ab2b6=_0x6447ef(_0x4313c8),_0x31b586=_0x6447ef(_0x511e68),_0x2778c1=_0x6447ef(_0x584851),_0x32972c=_0x3cd929(_0x32a593[_0x3af506(0x40b)]),_0x4c0256=_0x3cd929(_0x32a593[_0x3af506(0x286)]),_0x5f4bd8=_0x3a97ab(null),_0x5a4095=_0x3a97ab(null),_0xf815b8=_0x3a97ab(null),[_0x36cac2,_0x56c912]=_0x5cfa86({'editorHeight':_0x3d31f3,'marginTop':0x0,'useAbsolutePosition':!0x1}),_0x5362a7=_0x23eab0(()=>_0x2c0b81[_0x3af506(0x1b6)](Qa,_0x59e014[_0x3af506(0x470)]),[_0x2c0b81]),_0x4f895e=_0x23eab0(()=>{const _0x479da7=_0x3af506;if(!_0x32972c)return{'left':0x0,'top':0x0,'width':_0x31b699/_0x2f0a8f,'height':_0x3d31f3/_0xa13db7};let {unitId:_0x3c5eb8,subUnitId:_0x45ea95,shapeId:_0xd40f0d}=_0x32972c,_0x519269=_0x31b586[_0x479da7(0xf3)](_0x3c5eb8,_0x45ea95,_0xd40f0d);if(!_0x519269)return{'left':0x0,'top':0x0,'width':_0x31b699/_0x2f0a8f,'height':_0x3d31f3/_0xa13db7};let _0x400788={'left':0x0,'top':0x0,'width':_0x31b699/_0x2f0a8f,'height':_0x3d31f3/_0xa13db7};return _0x519269['getShapeTextRect'](_0x400788);},[_0x32972c,_0x31b699,_0x3d31f3,_0x2f0a8f,_0xa13db7]),_0x49a8a1=_0x23eab0(()=>{const _0x519e8b=_0x3af506;var _0x2e9029;if(!_0x32972c)return null;let {unitId:_0x5bcf58,subUnitId:_0x389e7f,shapeId:_0x48d5f4}=_0x32972c,_0x2c4c84=_0x31b586[_0x519e8b(0xf3)](_0x5bcf58,_0x389e7f,_0x48d5f4);if(!_0x2c4c84)return null;let _0x58aebb=_0x2c4c84['getShapeTextData']();if(!_0x58aebb||!(_0x519e8b(0x271)in _0x58aebb))return null;let _0xb24c1e=_0x58aebb[_0x519e8b(0x271)];if(!(_0xb24c1e!=null&&_0xb24c1e[_0x519e8b(0x555)]))return null;let _0x198dc1={'unitId':_0x5bcf58,'subUnitId':_0x389e7f,'drawingId':_0x48d5f4},_0x25ab48=_0x4ab2b6[_0x519e8b(0x19a)](_0x198dc1),_0x35a274={'angle':0x0,'flipX':!0x1,'flipY':!0x1};_0x25ab48&&_0x25ab48[_0x519e8b(0x18f)]&&(_0x35a274=_0x25ab48['transform']);let _0x5094b6={'left':0x0,'top':0x0,'width':_0x31b699/_0x2f0a8f,'height':_0x3d31f3/_0xa13db7},_0x470968=_0x2c4c84[_0x519e8b(0x557)](_0x5094b6);return{'doc':_0xb24c1e[_0x519e8b(0x555)],'verticalAlign':(_0x2e9029=_0xb24c1e['va'])==null?_0x5e4572[_0x519e8b(0x2d5)]:_0x2e9029,'textRect':_0x470968,'transform':_0x35a274};},[_0x32972c,_0x31b586,_0x31b699,_0x3d31f3,_0x2f0a8f,_0xa13db7]),_0x32b76e=_0x177b1f(()=>{const _0x5de46d=_0x3af506;let _0x586553=_0x49a8a1();if(_0x586553!=null&&_0x586553[_0x5de46d(0x555)]){let _0x3a3ff5=_0x182e4a[_0x5de46d(0x56e)](_0x586553[_0x5de46d(0x555)]);return _0x3a3ff5['documentStyle']||(_0x3a3ff5[_0x5de46d(0x261)]={}),_0x3a3ff5[_0x5de46d(0x261)][_0x5de46d(0x498)]={'width':_0x586553[_0x5de46d(0x2d7)][_0x5de46d(0x538)],'height':0x1/0x0},_0x3a3ff5;}return{'id':Qa,'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0}]},'documentStyle':{'pageSize':{'width':_0x31b699/_0x2f0a8f,'height':0x1/0x0}}};},[]),_0x4bbfa7=_0x51a27f({'editorId':Qa,'initialValue':_0x32b76e,'container':_0x5a4095,'autoFocus':!0x1,'isSingle':!0x1}),_0x5a7798=_0x16ba42(Qa);_0x2a0102(_0x5a7798,{'keyCodes':[{'keyCode':_0x5dd38f[_0x3af506(0x27b)]}],'handler':()=>{const _0x2b5c95=_0x3af506;_0x2778c1[_0x2b5c95(0x4ff)](_0x513a5b['id']);}},_0x4bbfa7),_0x3b4ab0(_0x5a7798,!0x1,_0x4bbfa7);let _0xb07e23=_0x23eab0(()=>{const _0x437af7=_0x3af506;var _0x4babb1,_0x2884af;if(!_0x4bbfa7)return;let _0x5c6296=_0x9df16d[_0x437af7(0xf8)](Qa),_0xd3427b=_0x5c6296==null?void 0x0:_0x5c6296[_0x437af7(0x395)](_0x2fc65a);if(!_0xd3427b)return;let _0x493f79=_0xd3427b[_0x437af7(0x423)](),_0x34c959=_0x5362a7(),_0x438caf=_0x49a8a1(),_0x3c2453=(_0x4babb1=_0x438caf==null?void 0x0:_0x438caf[_0x437af7(0x40c)])==null?_0x5e4572[_0x437af7(0x2d5)]:_0x4babb1,_0x1563b5=(_0x2884af=_0x4f895e())==null?{'left':0x0,'top':0x0,'width':_0x31b699/_0x2f0a8f,'height':_0x3d31f3/_0xa13db7}:_0x2884af;_0x34c959&&_0x34c959[_0x437af7(0x429)]({'pageSize':{'width':_0x1563b5['width'],'height':0x1/0x0}}),_0x493f79[_0x437af7(0x3d0)]();let {actualHeight:_0x2497e6}=_0x493f79[_0x437af7(0x238)](),_0x2992a2=_0x1563b5[_0x437af7(0x3d1)],_0x4d9a1c=_0x2992a2,_0x5dad6c=0x0;if(_0x2497e6<=_0x2992a2)_0x3c2453===_0x5e4572[_0x437af7(0x45e)]?_0x5dad6c=(_0x2992a2-_0x2497e6)/0x2:_0x3c2453===_0x5e4572[_0x437af7(0x2d6)]&&(_0x5dad6c=_0x2992a2-_0x2497e6),_0x4d9a1c=_0x2992a2,_0x56c912({'editorHeight':_0x1563b5['height']*_0xa13db7,'marginTop':0x0,'useAbsolutePosition':!0x1});else{let _0x523d76=0x0;_0x3c2453===_0x5e4572[_0x437af7(0x45e)]?_0x523d76=(_0x2992a2-_0x2497e6)/0x2:_0x3c2453===_0x5e4572[_0x437af7(0x2d6)]&&(_0x523d76=_0x2992a2-_0x2497e6),_0x5dad6c=0x0,_0x56c912({'editorHeight':_0x2497e6*_0xa13db7,'marginTop':_0x523d76*_0xa13db7,'useAbsolutePosition':!0x0}),_0x4d9a1c=_0x2497e6;}_0x34c959&&(_0x34c959[_0x437af7(0x429)]({'pageSize':{'width':_0x1563b5[_0x437af7(0x538)],'height':_0x4d9a1c}}),_0x34c959[_0x437af7(0x336)]({'t':_0x5dad6c}),_0x493f79[_0x437af7(0x3d0)]()),_0x5c6296&&(_0x5c6296['scene'][_0x437af7(0x4dd)](_0x1563b5[_0x437af7(0x538)],_0x4d9a1c),_0x5c6296[_0x437af7(0x3c0)]&&_0x5c6296[_0x437af7(0x3c0)]['resize'](_0x1563b5[_0x437af7(0x538)],_0x4d9a1c));},[_0x4bbfa7,_0x9df16d,_0x49a8a1,_0x5362a7,_0x31b699,_0x3d31f3,_0x2f0a8f,_0xa13db7]);_0x10cec7(()=>{const _0x38f5fd=_0x3af506;if(!_0x4bbfa7||!_0x32972c)return;let {shapeId:_0xff1de2,unitId:_0x3e0d64,subUnitId:_0x2986ad}=_0x32972c;if(_0x4c0256){var _0x7feb1e;let _0x3813f1=_0x4bbfa7[_0x38f5fd(0x381)](),_0x27b3b8=_0x49a8a1(),_0xefcbd5={'va':(_0x7feb1e=_0x27b3b8==null?void 0x0:_0x27b3b8['verticalAlign'])==null?_0x5e4572[_0x38f5fd(0x2d5)]:_0x7feb1e,'doc':_0x3813f1};_0x2778c1['executeCommand'](Ua['id'],{'unitId':_0x3e0d64,'subUnitId':_0x2986ad,'shapeId':_0xff1de2,'shapeData':{'shapeText':{'isHorizontal':!0x0,'dataModel':_0xefcbd5}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':!0x0,'dataModel':_0xf815b8[_0x38f5fd(0x259)]}}}});return;}let _0x425519=_0x49a8a1();if(_0x425519!=null&&_0x425519[_0x38f5fd(0x555)]){_0xf815b8[_0x38f5fd(0x259)]={'va':_0x425519['verticalAlign'],'doc':_0x182e4a[_0x38f5fd(0x56e)](_0x425519[_0x38f5fd(0x555)])};let _0xe436b7=_0x182e4a[_0x38f5fd(0x56e)](_0x425519['doc']);return _0xe436b7[_0x38f5fd(0x261)]||(_0xe436b7[_0x38f5fd(0x261)]={}),_0xe436b7[_0x38f5fd(0x261)][_0x38f5fd(0x498)]={'width':_0x425519[_0x38f5fd(0x2d7)][_0x38f5fd(0x538)],'height':0x1/0x0},_0x4bbfa7[_0x38f5fd(0x54c)](_0xe436b7,null),()=>{const _0x323094=_0x38f5fd;var _0x219af4;let _0x5cd30e=_0x4bbfa7[_0x323094(0x381)](),_0x57ba9a=_0x49a8a1(),_0xc42cc9={'va':(_0x219af4=_0x57ba9a==null?void 0x0:_0x57ba9a[_0x323094(0x40c)])==null?_0x5e4572[_0x323094(0x2d5)]:_0x219af4,'doc':_0x5cd30e};_0x2778c1[_0x323094(0x4ff)](Ua['id'],{'unitId':_0x3e0d64,'subUnitId':_0x2986ad,'shapeId':_0xff1de2,'shapeData':{'shapeText':{'isHorizontal':!0x0,'dataModel':_0xc42cc9}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':!0x0,'dataModel':_0xf815b8[_0x323094(0x259)]}}}});};}else _0x4bbfa7[_0x38f5fd(0x54c)](_0x32b76e,null);},[_0x4bbfa7,_0x32972c,_0x4c0256]),_0x10cec7(()=>{const _0x406df5=_0x3af506;var _0x4ce6bf,_0x287084;if(!_0x4bbfa7||!_0x32972c)return;_0x500912[_0x406df5(0x32a)](!0x0),_0x500912['focus'](Qa);let _0x5d8d4d=((_0x4ce6bf=(_0x287084=_0x4bbfa7[_0x406df5(0x381)]()[_0x406df5(0x196)])==null?void 0x0:_0x287084[_0x406df5(0x419)][_0x406df5(0x49f)])==null?0x2:_0x4ce6bf)-0x2;return _0x4bbfa7[_0x406df5(0x565)]([{'startOffset':_0x5d8d4d,'endOffset':_0x5d8d4d}]),()=>{const _0x20aae7=_0x406df5;_0x500912[_0x20aae7(0x32a)](!0x0);};},[_0x4bbfa7,_0x32972c,_0x500912]),_0x10cec7(()=>{if(!_0x4bbfa7)return;let _0x123ced=_0x2778c1['onCommandExecuted'](_0x3c403f=>{const _0x45ba14=_0x34f4;_0x3c403f['id']===_0x44d27e['id']&&_0x3c403f[_0x45ba14(0x34b)]['unitId']===Qa&&_0x32972c&&(_0x32972c[_0x45ba14(0x48d)]?_0xb07e23():_0x32a593[_0x45ba14(0x3ec)]({..._0x32972c,'visible':!0x0})),_0x3c403f['id']===qa['id']&&_0xb07e23();});return()=>{const _0x2f8ccb=_0x34f4;_0x123ced[_0x2f8ccb(0x50d)]();};},[_0x4bbfa7,_0xb07e23,_0x32972c]),_0x10cec7(()=>{_0xb07e23();},[_0xb07e23]);let _0x4a2a44=_0x177b1f(()=>{const _0x269f50=_0x3af506;var _0x30e9ef;let _0x2ecbca=(_0x30e9ef=_0x4f895e())==null?{'left':0x0,'top':0x0,'width':_0x31b699/_0x2f0a8f,'height':_0x3d31f3/_0xa13db7}:_0x30e9ef,_0x47311d=_0x2ecbca['left']*_0x2f0a8f,_0x5db27b=_0x2ecbca[_0x269f50(0x32d)]*_0xa13db7,_0x465110=_0x2ecbca['width']*_0x2f0a8f;return _0x36cac2[_0x269f50(0x50f)]?{'top':_0x5db27b+_0x36cac2[_0x269f50(0x379)],'left':_0x47311d,'width':_0x465110,'height':_0x36cac2[_0x269f50(0x314)]}:{'top':_0x5db27b,'left':_0x47311d,'width':_0x465110,'height':_0x36cac2[_0x269f50(0x314)]};},[_0x36cac2,_0x49a8a1,_0x31b699,_0x3d31f3,_0x2f0a8f,_0xa13db7]),_0x4de21a=_0x177b1f(()=>{const _0x2220b4=_0x3af506;let _0x37b342=_0x49a8a1(),_0x492498=_0x37b342==null?void 0x0:_0x37b342[_0x2220b4(0x18f)];return _0x492498&&_0x492498||{'angle':0x0,'flipX':!0x1,'flipY':!0x1};},[_0x49a8a1]);return _0x3561af(_0x3af506(0x54e),{'ref':_0x5f4bd8,'data-u-comp':_0x3af506(0x2b6),'className':'univer-relative\x20univer-size-full\x20univer-overflow-visible','style':{'transform':_0x3af506(0x2d2)+_0x4de21a[_0x3af506(0x13d)]+_0x3af506(0x343)+(_0x4de21a[_0x3af506(0x3fb)]?-0x1:0x1)+')'},'children':_0x3561af(_0x3af506(0x54e),{'ref':_0x5a4095,'className':_0x3af506(0x1e7),'data-u-comp':_0x3af506(0x325),'style':_0x4a2a44,'data-editorid':Qa})});};Go[_0x173eea(0x126)]=_0x173eea(0x435);const Ko={'left':-0x270f,'top':-0x270f,'width':0x64,'height':0x64,'angle':0x0,'scaleX':0x1,'scaleY':0x1};function qo(_0x48a873,_0x4fa6d4,_0x4b42b5,_0x1bac23){const _0x558ee8=_0x173eea;let {scaleX:_0x4bc88f,scaleY:_0x3e5c21}=_0x4b42b5['getAncestorScale'](),{startColumn:_0x1d62f9,startRow:_0x38f413,xSplit:_0x198763,ySplit:_0x1f7c1c}=_0x1bac23[_0x558ee8(0x2bb)][_0x558ee8(0x3ee)](),_0x17fd6c=_0x4b42b5[_0x558ee8(0x1d3)](_0x487554[_0x558ee8(0x106)]),_0x4ec539=_0x4b42b5['getViewport'](_0x487554['VIEW_MAIN_LEFT_TOP']),_0x5110cd=_0x4b42b5[_0x558ee8(0x1d3)](_0x487554[_0x558ee8(0x4b2)]),_0x89eda8=_0x4b42b5['getViewport'](_0x487554[_0x558ee8(0x24c)]),{rowHeaderWidth:_0x14207b,columnHeaderHeight:_0x46677c}=_0x1bac23,_0x2e7f3d=_0x1bac23['rowStartY'](_0x38f413)+_0x46677c,_0x499462=_0x1bac23[_0x558ee8(0x582)](_0x1d62f9)+_0x14207b,_0x2e804f=_0x1bac23['rowStartY'](_0x38f413-_0x1f7c1c)+_0x46677c,_0x113c82=_0x1bac23[_0x558ee8(0x582)](_0x1d62f9-_0x198763)+_0x14207b,_0x1c5238=[],_0x69c0f4=(_0x37ef9b,_0xd015fd,_0x1dbe83)=>{if(!_0x37ef9b)return null;let {viewportScrollX:_0x579782,viewportScrollY:_0x5df78d}=_0x37ef9b,_0x27ae9c,_0x33369a;return _0x27ae9c=_0xd015fd?(_0x48a873-(_0x113c82-_0x14207b))*_0x4bc88f:(_0x48a873-_0x579782)*_0x4bc88f,_0x33369a=_0x1dbe83?(_0x4fa6d4-(_0x2e804f-_0x46677c))*_0x3e5c21:(_0x4fa6d4-_0x5df78d)*_0x3e5c21,{'domX':_0x27ae9c,'domY':_0x33369a};},_0x36beda=_0x48a873<_0x499462&&_0x198763>0x0,_0x192985=_0x4fa6d4<_0x2e7f3d&&_0x1f7c1c>0x0,_0x1a785a=_0x48a873>=_0x499462||_0x198763===0x0,_0x355819=_0x4fa6d4>=_0x2e7f3d||_0x1f7c1c===0x0;if(_0x36beda&&_0x192985&&_0x4ec539){let _0x24b3e0=_0x69c0f4(_0x4ec539,!0x0,!0x0);_0x24b3e0&&_0x1c5238[_0x558ee8(0x4bd)](_0x24b3e0);}if(_0x192985&&_0x1a785a&&_0x5110cd){let _0x380c8f=_0x69c0f4(_0x5110cd,!0x1,!0x0);_0x380c8f&&_0x1c5238[_0x558ee8(0x4bd)](_0x380c8f);}if(_0x36beda&&_0x355819&&_0x89eda8){let _0xea0c94=_0x69c0f4(_0x89eda8,!0x0,!0x1);_0xea0c94&&_0x1c5238[_0x558ee8(0x4bd)](_0xea0c94);}if(_0x1a785a&&_0x355819&&_0x17fd6c){let _0x1f17b2=_0x69c0f4(_0x17fd6c,!0x1,!0x1);_0x1f17b2&&_0x1c5238[_0x558ee8(0x4bd)](_0x1f17b2);}if(_0x1c5238['length']===0x0){var _0x3a8745,_0x53844c;return{'domX':(_0x48a873-((_0x3a8745=_0x17fd6c==null?void 0x0:_0x17fd6c[_0x558ee8(0x18d)])==null?0x0:_0x3a8745))*_0x4bc88f,'domY':(_0x4fa6d4-((_0x53844c=_0x17fd6c==null?void 0x0:_0x17fd6c[_0x558ee8(0x2c8)])==null?0x0:_0x53844c))*_0x3e5c21};}let _0x4cce98=_0x1c5238[0x0]['domX'],_0x10ce4e=_0x1c5238[0x0]['domY'];for(let _0x16db9f of _0x1c5238)_0x16db9f['domX']>_0x4cce98&&(_0x4cce98=_0x16db9f[_0x558ee8(0x24a)]),_0x16db9f['domY']>_0x10ce4e&&(_0x10ce4e=_0x16db9f[_0x558ee8(0x4e9)]);return{'domX':_0x4cce98,'domY':_0x10ce4e};}function Jo(_0x398119,_0x1f873b,_0x4bd3c8,_0x429696,_0x4e0b71,_0x20d146,_0x347538){const _0x48ef4e=_0x173eea;let {scaleX:_0x483760,scaleY:_0x2b69df}=_0x20d146[_0x48ef4e(0x517)](),{domX:_0x403fa7,domY:_0x3a3bfb}=qo(_0x398119,_0x1f873b,_0x20d146,_0x347538);return{'left':_0x403fa7,'top':_0x3a3bfb,'width':_0x4bd3c8*_0x483760,'height':_0x429696*_0x2b69df,'angle':_0x4e0b71,'scaleX':_0x483760,'scaleY':_0x2b69df};}function Yo(_0x5bbe6d){const _0x21cfb6=_0x173eea;let {editingParams:_0x4909da,scene:_0x22034b,skeleton:_0x5e7f97,getShapeTransform:_0x33b3cf}=_0x5bbe6d,[_0x1e9722,_0x5aead3]=_0x5cfa86(Ko),_0x3d1ac9=_0x3a97ab(_0x1e9722);_0x3d1ac9[_0x21cfb6(0x259)]=_0x1e9722;let _0x744811=_0x23eab0(()=>{const _0x353793=_0x21cfb6;if(!_0x4909da||!_0x22034b||!_0x5e7f97){_0x3d1ac9[_0x353793(0x259)]!==Ko&&_0x5aead3(Ko);return;}let _0x2b984e=_0x33b3cf();if(!_0x2b984e){_0x3d1ac9[_0x353793(0x259)]!==Ko&&_0x5aead3(Ko);return;}let {left:_0x49420c,top:_0x3b4707,width:_0x16b997,height:_0x56c5f0,angle:_0x5f53a3}=_0x2b984e;if(!_0x4909da[_0x353793(0x48d)]){let {scaleX:_0x5565be,scaleY:_0x33f427}=_0x22034b['getAncestorScale']();_0x5aead3({'left':-0x270f,'top':-0x270f,'width':_0x16b997*_0x5565be,'height':_0x56c5f0*_0x33f427,'angle':0x0,'scaleX':_0x5565be,'scaleY':_0x33f427});return;}_0x5aead3(Jo(_0x49420c,_0x3b4707,_0x16b997,_0x56c5f0,_0x5f53a3,_0x22034b,_0x5e7f97));},[_0x4909da,_0x22034b,_0x5e7f97,_0x33b3cf]);return _0x10cec7(()=>{_0x744811();},[_0x4909da,_0x744811]),{'position':_0x1e9722,'updatePosition':_0x744811};}const Xo=_0x414bf3(_0x37c777=>{const _0x3e896a=_0x173eea;let {children:_0x43dff2,onPositionUpdate:_0x43a57c}=_0x37c777,_0x2b4772=_0x3a97ab(null),_0x49cb31=_0x6447ef(Y),_0x1df8c4=_0x6447ef(_0x5f4e41),_0x18d2ce=_0x3cd929(_0x49cb31[_0x3e896a(0x40b)]),_0x4e50a4=_0x177b1f(()=>_0x18d2ce?_0x1df8c4[_0x3e896a(0xf8)](_0x18d2ce['unitId']):null,[_0x18d2ce,_0x1df8c4]),_0x26eead=_0x177b1f(()=>{const _0x26d830=_0x3e896a;var _0x1b9ac4;return(_0x1b9ac4=_0x4e50a4==null?void 0x0:_0x4e50a4[_0x26d830(0x443)])==null?null:_0x1b9ac4;},[_0x4e50a4]),{position:_0x21f2b2,updatePosition:_0x4047ba}=Yo({'editingParams':_0x18d2ce,'scene':_0x26eead,'skeleton':_0x177b1f(()=>{const _0x44183e=_0x3e896a;var _0xcf2e35,_0x595456;return!_0x18d2ce||!_0x4e50a4||(_0xcf2e35=(_0x595456=_0x4e50a4[_0x44183e(0x395)](_0x15a10d)['getSkeletonParam'](_0x18d2ce[_0x44183e(0x12a)]))==null?void 0x0:_0x595456['skeleton'])==null?null:_0xcf2e35;},[_0x18d2ce,_0x4e50a4]),'getShapeTransform':_0x23eab0(()=>{const _0x2fd2b1=_0x3e896a;if(!_0x18d2ce||!_0x26eead)return null;let _0x23da8d=_0x18d2ce[_0x2fd2b1(0x365)],_0x5d1939=_0x26eead[_0x2fd2b1(0x3e8)](_0x23da8d);return _0x5d1939 instanceof eo?{'left':_0x5d1939[_0x2fd2b1(0x4d1)],'top':_0x5d1939[_0x2fd2b1(0x32d)],'width':_0x5d1939[_0x2fd2b1(0x538)],'height':_0x5d1939['height'],'angle':_0x5d1939[_0x2fd2b1(0x13d)]}:null;},[_0x18d2ce,_0x26eead])}),_0x18ec7c=_0x23eab0(()=>{const _0x1f6ef2=_0x3e896a;let _0x54a094=_0x2b4772['current'];_0x54a094&&(_0x54a094[_0x1f6ef2(0x2eb)][_0x1f6ef2(0x4d1)]=_0x21f2b2[_0x1f6ef2(0x4d1)]+'px',_0x54a094['style'][_0x1f6ef2(0x32d)]=_0x21f2b2['top']+'px',_0x54a094[_0x1f6ef2(0x2eb)][_0x1f6ef2(0x538)]=_0x21f2b2[_0x1f6ef2(0x538)]+'px',_0x54a094[_0x1f6ef2(0x2eb)][_0x1f6ef2(0x3d1)]=_0x21f2b2['height']+'px');},[_0x21f2b2]);_0x10cec7(()=>{const _0x661857=_0x3e896a;_0x18ec7c(),_0x43a57c==null||_0x43a57c({'width':_0x21f2b2['width'],'height':_0x21f2b2[_0x661857(0x3d1)],'scaleX':_0x21f2b2[_0x661857(0x217)],'scaleY':_0x21f2b2[_0x661857(0x3d9)]});},[_0x21f2b2,_0x18ec7c,_0x43a57c]),_0x10cec7(()=>{const _0x4d8239=_0x3e896a;if(!_0x26eead)return;let _0x3d8f54=_0x26eead[_0x4d8239(0x1d3)](_0x487554[_0x4d8239(0x106)]);if(!_0x3d8f54)return;let _0x58c3c4=_0x3d8f54['onScrollAfter$'][_0x4d8239(0x410)](()=>{_0x4047ba();});return()=>{const _0x1989b7=_0x4d8239;_0x58c3c4[_0x1989b7(0x2e8)]();};},[_0x26eead,_0x4047ba]),_0x10cec7(()=>{const _0x59ab76=_0x3e896a;if(!_0x18d2ce||!_0x26eead)return;let _0x3d789c=_0x18d2ce[_0x59ab76(0x365)],_0x3a191b=_0x26eead[_0x59ab76(0x3e8)](_0x3d789c);if(_0x3a191b instanceof eo){let _0x55383c=_0x3a191b[_0x59ab76(0x2cd)][_0x59ab76(0x410)](()=>{_0x4047ba();});return()=>{const _0xf3e9e3=_0x59ab76;_0x55383c[_0xf3e9e3(0x2e8)]();};}},[_0x18d2ce,_0x26eead,_0x4047ba]);let _0xf004d3=_0x177b1f(()=>({'left':_0x21f2b2[_0x3e896a(0x4d1)],'top':_0x21f2b2['top'],'width':_0x21f2b2[_0x3e896a(0x538)],'height':_0x21f2b2[_0x3e896a(0x3d1)],'pointerEvents':_0x18d2ce!=null&&_0x18d2ce[_0x3e896a(0x48d)]?'auto':'none'}),[_0x21f2b2,_0x18d2ce==null?void 0x0:_0x18d2ce[_0x3e896a(0x48d)]]);return _0x3561af(_0x3e896a(0x54e),{'ref':_0x2b4772,'data-u-comp':_0x3e896a(0x434),'className':_0x3e896a(0x1e6),'style':_0xf004d3,'children':_0x43dff2});});Xo[_0x173eea(0x126)]=_0x173eea(0x403);const Zo=_0x414bf3(()=>{const _0x1777e3=_0x173eea;let _0x5d823d=_0x3cd929(_0x6447ef(Y)[_0x1777e3(0x40b)]),[_0x82ada6,_0x1373ea]=_0x5cfa86({'width':0x64,'height':0x64,'scaleX':0x1,'scaleY':0x1}),_0x4a54d9=_0x23eab0(_0x13aa66=>{const _0x599a9b=_0x1777e3;_0x1373ea({'width':_0x13aa66[_0x599a9b(0x538)],'height':_0x13aa66[_0x599a9b(0x3d1)],'scaleX':_0x13aa66[_0x599a9b(0x217)],'scaleY':_0x13aa66[_0x599a9b(0x3d9)]});},[]);return _0x5d823d!=null&&_0x5d823d[_0x1777e3(0x48d)]?_0x3561af(Xo,{'onPositionUpdate':_0x4a54d9,'children':_0x3561af(Go,{'containerWidth':_0x82ada6['width'],'containerHeight':_0x82ada6['height'],'scaleX':_0x82ada6[_0x1777e3(0x217)],'scaleY':_0x82ada6['scaleY']})}):null;});Zo[_0x173eea(0x126)]=_0x173eea(0xfe);let Qo=class extends _0x4a3190{constructor(_0x660ec7=Po,_0x5cc95f,_0x569514,_0x346bd7,_0x5d9aa0){const _0x294c30=_0x173eea;super(),this[_0x294c30(0x4c0)]=_0x660ec7,this[_0x294c30(0x172)]=_0x5cc95f,this[_0x294c30(0x21f)]=_0x569514,this[_0x294c30(0x56b)]=_0x346bd7,this['_renderManagerService']=_0x5d9aa0;let {..._0xb552d7}=_0x3492c5({},Po,this[_0x294c30(0x4c0)]);this['_configService']['setConfig'](No,_0xb552d7),this[_0x294c30(0x140)]();}[_0x173eea(0x463)](){const _0x5928cc=_0x173eea;_0x500257(this[_0x5928cc(0x172)],[[Ao],[no],[to]]);}[_0x173eea(0x173)](){const _0x432b26=_0x173eea;[[Bo],[po],[Vo]][_0x432b26(0x318)](_0x16a092=>this[_0x432b26(0x172)]['add'](_0x16a092)),_0x500257(this[_0x432b26(0x172)],[[Vo]]),this[_0x432b26(0x292)][_0x432b26(0x465)](_0x59e014[_0x432b26(0x46e)],[Bo]),this[_0x432b26(0x292)]['registerRenderModule'](_0x59e014[_0x432b26(0x46e)],[po]),this[_0x432b26(0x292)][_0x432b26(0x465)](_0x59e014[_0x432b26(0x46e)],[Fo]),this[_0x432b26(0x292)][_0x432b26(0x465)](_0x59e014[_0x432b26(0x46e)],[Uo]),this[_0x432b26(0x292)][_0x432b26(0x465)](_0x59e014[_0x432b26(0x46e)],[Lo]);}[_0x173eea(0x3b0)](){const _0x32d4e2=_0x173eea;let _0x3a028a=this['_injector'];_0x3a028a['get'](_0x43e087)[_0x32d4e2(0x26c)](_0x32d4e2(0xfe),Zo),[[Ao],[no],[to],[Y],[Io],[go],[Wo]]['forEach'](_0x8b226a=>_0x3a028a['add'](_0x8b226a)),_0x500257(this[_0x32d4e2(0x172)],[[Ao],[no],[to],[Y],[Io],[go],[Wo]]);}['_initCommands'](){const _0x361d18=_0x173eea;[ho,Ua,qa,Wa,Ka,Ga,Ya,Xa,Ja,mo][_0x361d18(0x318)](_0x10d3b0=>this[_0x361d18(0x48b)](this[_0x361d18(0x21f)][_0x361d18(0x3cf)](_0x10d3b0)));}};J(Qo,_0x173eea(0x2a9),_0x59e014[_0x173eea(0x46e)]),J(Qo,_0x173eea(0x3cb),_0x173eea(0x108)),J(Qo,'packageName',jo),J(Qo,_0x173eea(0x1fd),Mo),Qo=Q([_0x370062(_0x2424a9,_0x1427dc),Z(0x1,_0x18290d(_0x1e9d6b)),Z(0x2,_0x584851),Z(0x3,_0x5e78e3),Z(0x4,_0x5f4e41)],Qo);export{Wa as SetShapeTextFontSizeCommand,Ka as SetShapeTextFontSizeDecreaseCommand,Ga as SetShapeTextFontSizeIncreaseCommand,qa as SetShapeTextVerticalAlignCommand,Ja as ShapeDocAlignCommand,Ao as SheetsShapeUIController,Qo as UniverSheetsShapeUIPlugin,Ua as UpdateShapeDataCommand};
1
+ const _0x5a2394=_0x21c0;(function(_0xd2a682,_0x5ce087){const _0x453792=_0x21c0,_0x548750=_0xd2a682();while(!![]){try{const _0x377a57=-parseInt(_0x453792(0x200))/0x1*(parseInt(_0x453792(0x368))/0x2)+parseInt(_0x453792(0x198))/0x3+parseInt(_0x453792(0x31d))/0x4*(parseInt(_0x453792(0x4c8))/0x5)+-parseInt(_0x453792(0x580))/0x6*(parseInt(_0x453792(0x352))/0x7)+parseInt(_0x453792(0x258))/0x8*(-parseInt(_0x453792(0x381))/0x9)+parseInt(_0x453792(0x538))/0xa+-parseInt(_0x453792(0x344))/0xb*(parseInt(_0x453792(0x242))/0xc);if(_0x377a57===_0x5ce087)break;else _0x548750['push'](_0x548750['shift']());}catch(_0xa9544f){_0x548750['push'](_0x548750['shift']());}}}(_0x33b4,0xb8299));import{InsertShapeCommand,InsertSheetsShapeMutation,RemoveSheetsShapeMutation,SetShapeDrawingDataCommand,SetSheetsShapeRotateCommand,SetSheetsShapeTextVerticalToggleCommand,SheetsShapeService,ToggleSheetsShapeFlipCommand,UniverSheetsShapePlugin,UpdateConnectorRelationCommand,UpdateLineShapeResizeCommand,UpdateSheetsShapeDataMutation}from'@univerjs-pro/sheets-shape';import{CommandType,DependentOn,Disposable,DocumentDataModel,DrawingTypeEnum,FOCUSING_COMMON_DRAWINGS,FOCUSING_PANEL_EDITOR,FOCUSING_SHAPE_TEXT_EDITOR,HorizontalAlign,ICommandService,IConfigService,IContextService,IURLImageService,IUndoRedoService,IUniverInstanceService,Inject,Injector,LocaleService,Plugin,ThemeService,Tools,UniverInstanceType,VerticalAlign,WrapStrategy,createInternalEditorID,generateRandomId,merge,toDisposable,touchDependencies}from'@univerjs/core';import{CopySheetCommand,RemoveSheetCommand,SheetInterceptorService,SheetPermissionCheckController,SheetSkeletonService,SheetsSelectionsService,WorkbookEditablePermission,WorksheetEditPermission,attachRangeWithCoord,discreteRangeToRange,getSheetCommandTarget}from'@univerjs/sheets';import{DrawingApplyType,ISheetDrawingService,RemoveSheetDrawingCommand,SetDrawingApplyMutation,transformToDrawingPosition}from'@univerjs/sheets-drawing';import{BehaviorSubject,EMPTY,Observable,map,of,startWith,switchMap}from'rxjs';import{IDrawingManagerService,IImageIoService,getDrawingShapeKeyByDrawingSearch,getImageSize}from'@univerjs/drawing';import{CURSOR_TYPE,Circle,DRAWING_OBJECT_LAYER_INDEX,DocumentSkeleton,DocumentViewModel,Documents,IRenderManagerService,Image,RENDER_CLASS_TYPE,SHEET_VIEWPORT_KEY,Shape,Transform,VERTICAL_ROTATE_ANGLE,Vector2}from'@univerjs/engine-render';import{AlignOperationCommand,BreakLineCommand,IEditorService,ResetInlineFormatTextBackgroundColorCommand,SetInlineFormatTextBackgroundColorCommand,useEditor,useIsFocusing,useKeyboardEvent,useLeftAndRightArrow}from'@univerjs/docs-ui';import{MoreDownIcon,PaintBucketDoubleIcon,ShapeAccentBorderCallout1Icon,ShapeAccentBorderCallout2Icon,ShapeAccentBorderCallout3Icon,ShapeAccentCallout1Icon,ShapeAccentCallout2Icon,ShapeAccentCallout3Icon,ShapeActionButtonBackPreviousIcon,ShapeActionButtonBeginningIcon,ShapeActionButtonBlankIcon,ShapeActionButtonDocumentIcon,ShapeActionButtonEndIcon,ShapeActionButtonForwardNextIcon,ShapeActionButtonHelpIcon,ShapeActionButtonHomeIcon,ShapeActionButtonInformationIcon,ShapeActionButtonMovieIcon,ShapeActionButtonReturnIcon,ShapeActionButtonSoundIcon,ShapeArcIcon,ShapeBentArrowIcon,ShapeBentConnector3Arrow1Icon,ShapeBentConnector3Arrow2Icon,ShapeBentConnector3Icon,ShapeBentUpArrowIcon,ShapeBevelIcon,ShapeBlockArcIcon,ShapeBorderCallout1Icon,ShapeBorderCallout2Icon,ShapeBorderCallout3Icon,ShapeBracePairIcon,ShapeBracketPairIcon,ShapeCallout1Icon,ShapeCallout2Icon,ShapeCallout3Icon,ShapeCanIcon,ShapeChartPlusIcon,ShapeChartStarIcon,ShapeChartXIcon,ShapeChevronIcon,ShapeChordIcon,ShapeCircularArrowIcon,ShapeCloudCalloutIcon,ShapeCloudIcon,ShapeCornerIcon,ShapeCornerTabsIcon,ShapeCubeIcon,ShapeCurvedConnector3Arrow1Icon,ShapeCurvedConnector3Arrow2Icon,ShapeCurvedConnector3Icon,ShapeCurvedDownArrowIcon,ShapeCurvedLeftArrowIcon,ShapeCurvedRightArrowIcon,ShapeCurvedUpArrowIcon,ShapeDecagonIcon,ShapeDiagStripeIcon,ShapeDiamondIcon,ShapeDodecagonIcon,ShapeDonutIcon,ShapeDoubleWaveIcon,ShapeDownArrowCalloutIcon,ShapeDownArrowIcon,ShapeEllipseIcon,ShapeEllipseRibbon2Icon,ShapeEllipseRibbonIcon,ShapeFlowChartAlternateProcessIcon,ShapeFlowChartCollateIcon,ShapeFlowChartConnectorIcon,ShapeFlowChartDecisionIcon,ShapeFlowChartDelayIcon,ShapeFlowChartDisplayIcon,ShapeFlowChartDocumentIcon,ShapeFlowChartExtractIcon,ShapeFlowChartInputOutputIcon,ShapeFlowChartInternalStorageIcon,ShapeFlowChartMagneticDiskIcon,ShapeFlowChartMagneticDrumIcon,ShapeFlowChartMagneticTapeIcon,ShapeFlowChartManualInputIcon,ShapeFlowChartManualOperationIcon,ShapeFlowChartMergeIcon,ShapeFlowChartMultidocumentIcon,ShapeFlowChartOfflineStorageIcon,ShapeFlowChartOffpageConnectorIcon,ShapeFlowChartOnlineStorageIcon,ShapeFlowChartOrIcon,ShapeFlowChartPredefinedProcessIcon,ShapeFlowChartPreparationIcon,ShapeFlowChartProcessIcon,ShapeFlowChartPunchedCardIcon,ShapeFlowChartPunchedTapeIcon,ShapeFlowChartSortIcon,ShapeFlowChartSummingJunctionIcon,ShapeFlowChartTerminatorIcon,ShapeFolderCornerIcon,ShapeFrameIcon,ShapeFunnelIcon,ShapeGear6Icon,ShapeGear9Icon,ShapeHalfFrameIcon,ShapeHeartIcon,ShapeHeptagonIcon,ShapeHexagonIcon,ShapeHomePlateIcon,ShapeHorizontalScrollIcon,ShapeIcon,ShapeIrregularSeal1Icon,ShapeIrregularSeal2Icon,ShapeLeftArrowCalloutIcon,ShapeLeftArrowIcon,ShapeLeftBraceIcon,ShapeLeftBracketIcon,ShapeLeftCircularArrowIcon,ShapeLeftRightArrowCalloutIcon,ShapeLeftRightArrowIcon,ShapeLeftRightCircularArrowIcon,ShapeLeftRightRibbonIcon,ShapeLeftRightUpArrowIcon,ShapeLeftUpArrowIcon,ShapeLightningBoltIcon,ShapeLineIcon,ShapeLineInvIcon,ShapeMathDivideIcon,ShapeMathEqualIcon,ShapeMathMinusIcon,ShapeMathMultiplyIcon,ShapeMathNotEqualIcon,ShapeMathPlusIcon,ShapeMoonIcon,ShapeNoSmokingIcon,ShapeNonIsoscelesTrapezoidIcon,ShapeNotchedRightArrowIcon,ShapeOctagonIcon,ShapeParallelogramIcon,ShapePentagonIcon,ShapePieIcon,ShapePieWedgeIcon,ShapePlaqueIcon,ShapePlaqueTabsIcon,ShapePlusIcon,ShapeQuadArrowCalloutIcon,ShapeQuadArrowIcon,ShapeRectIcon,ShapeRectTextboxHorizontalIcon,ShapeRectTextboxVerticalIcon,ShapeRibbon2Icon,ShapeRibbonIcon,ShapeRightArrowCalloutIcon,ShapeRightArrowIcon,ShapeRightBraceIcon,ShapeRightBracketIcon,ShapeRound1RectIcon,ShapeRound2DiagRectIcon,ShapeRound2SameRectIcon,ShapeRoundRectIcon,ShapeRtTriangleIcon,ShapeSmileyFaceIcon,ShapeSnip1RectIcon,ShapeSnip2DiagRectIcon,ShapeSnip2SameRectIcon,ShapeSnipRoundRectIcon,ShapeSquareTabsIcon,ShapeStar10Icon,ShapeStar12Icon,ShapeStar16Icon,ShapeStar24Icon,ShapeStar32Icon,ShapeStar4Icon,ShapeStar5Icon,ShapeStar6Icon,ShapeStar7Icon,ShapeStar8Icon,ShapeStraightConnector1Icon,ShapeStraightConnector2Icon,ShapeStripedRightArrowIcon,ShapeSunIcon,ShapeSwooshArrowIcon,ShapeTeardropIcon,ShapeTrapezoidIcon,ShapeTriangleIcon,ShapeUpArrowCalloutIcon,ShapeUpArrowIcon,ShapeUpDownArrowCalloutIcon,ShapeUpDownArrowIcon,ShapeUturnArrowIcon,ShapeVerticalScrollIcon,ShapeWaveIcon,ShapeWedgeEllipseCalloutIcon,ShapeWedgeRectCalloutIcon,ShapeWedgeRoundRectCalloutIcon}from'@univerjs/icons';import{COPY_TYPE,ISheetClipboardService,PREDEFINED_HOOK_NAME,SheetCanvasPopManagerService,SheetScrollManagerService,SheetSkeletonManagerService,deriveStateFromActiveSheet$,getCurrentRangeDisable$,getViewportByCell}from'@univerjs/sheets-ui';import{COLOR_PICKER_COMPONENT,ComponentManager,IMenuManagerService,ISidebarService,KeyCode,MenuItemType,RibbonInsertGroup,RibbonPosition,RibbonStartGroup,getMenuHiddenObservable,useDependency,useObservable}from'@univerjs/ui';import{ConnectorCoordinateTransform,ImageFillModeEnum,ImageSourceTypeEnum,ShapeArrowSizeEnum,ShapeArrowTypeEnum,ShapeDefaultConfig,ShapeFillEnum,ShapeGradientTypeEnum,ShapeLineCapEnum,ShapeLineDashEnum,ShapeLineJoinEnum,ShapeLineTypeEnum,ShapeModel,ShapeRenderModeEnum,ShapeSketchTypeEnum,ShapeTypeEnum,computeConnectorRouteLayout,getBasicShapeRotateBound,isConnectorShape,isCurvedConnectorShape,routeConnectorLineShape}from'@univerjs-pro/engine-shape';import{Accordion,Button,Checkbox,ColorPicker,Dropdown,GradientColorPicker,InputNumber,Radio,RadioGroup,Select,clsx}from'@univerjs/design';import{memo,useCallback,useEffect,useMemo,useRef,useState}from'react';import{DrawingCommonPanel,DrawingImageClipService,DrawingRenderService,IMAGE_CLIP_SHAPE_PICKER_COMPONENT,getCurrentUnitInfo,insertGroupObject}from'@univerjs/drawing-ui';import{Fragment,jsx,jsxs}from'react/jsx-runtime';import{SheetDrawingAnchor,SheetsDrawingGroupCopyPasteController,UniverSheetsDrawingUIPlugin}from'@univerjs/sheets-drawing-ui';import{DocSkeletonManagerService,RichTextEditingMutation}from'@univerjs/docs';function _typeof(_0x320a06){'@babel/helpers - typeof';const _0x4dad64=_0x21c0;return _typeof=_0x4dad64(0x207)==typeof Symbol&&_0x4dad64(0x351)==typeof Symbol[_0x4dad64(0x411)]?function(_0x522e4d){return typeof _0x522e4d;}:function(_0x535ef5){const _0x2f4171=_0x4dad64;return _0x535ef5&&_0x2f4171(0x207)==typeof Symbol&&_0x535ef5['constructor']===Symbol&&_0x535ef5!==Symbol['prototype']?_0x2f4171(0x351):typeof _0x535ef5;},_typeof(_0x320a06);}function toPrimitive(_0xc98057,_0x5babb8){const _0x314927=_0x21c0;if(_0x314927(0x603)!=_typeof(_0xc98057)||!_0xc98057)return _0xc98057;var _0x5b01d4=_0xc98057[Symbol[_0x314927(0x559)]];if(void 0x0!==_0x5b01d4){var _0x409b05=_0x5b01d4[_0x314927(0x248)](_0xc98057,_0x5babb8||_0x314927(0x276));if(_0x314927(0x603)!=_typeof(_0x409b05))return _0x409b05;throw new TypeError(_0x314927(0x53d));}return(_0x314927(0x60a)===_0x5babb8?String:Number)(_0xc98057);}function toPropertyKey(_0x213d76){const _0x24f653=_0x21c0;var _0x35f322=toPrimitive(_0x213d76,_0x24f653(0x60a));return _0x24f653(0x351)==_typeof(_0x35f322)?_0x35f322:_0x35f322+'';}function _defineProperty(_0xfd5367,_0x3f9cb4,_0x2c547f){return(_0x3f9cb4=toPropertyKey(_0x3f9cb4))in _0xfd5367?Object['defineProperty'](_0xfd5367,_0x3f9cb4,{'value':_0x2c547f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xfd5367[_0x3f9cb4]=_0x2c547f,_0xfd5367;}var ShapeTextEditingService=class extends Disposable{constructor(..._0x93ecf0){const _0x5d8540=_0x21c0;super(..._0x93ecf0),_defineProperty(this,_0x5d8540(0x57c),new BehaviorSubject(null)),_defineProperty(this,'editingParams$',this['_editingParams$'][_0x5d8540(0x5c9)]()),_defineProperty(this,'_onSavingEditorData$',new BehaviorSubject(![])),_defineProperty(this,_0x5d8540(0x1f9),this['_onSavingEditorData$'][_0x5d8540(0x5c9)]());}['dispose'](){const _0x1019b6=_0x21c0;this[_0x1019b6(0x57c)]['next'](null),this[_0x1019b6(0x57c)]['complete'](),this[_0x1019b6(0x3a7)][_0x1019b6(0x5b4)](![]),this[_0x1019b6(0x3a7)]['complete'](),super[_0x1019b6(0x2cb)]();}['setEditing'](_0x14cedd){const _0x14746d=_0x21c0;this[_0x14746d(0x57c)][_0x14746d(0x5b4)](_0x14cedd);if(_0x14cedd===null||_0x14cedd===void 0x0)this[_0x14746d(0x3a7)]['next'](![]);}[_0x5a2394(0x607)](_0x3bbcd7){const _0x37f294=_0x5a2394;this[_0x37f294(0x3a7)][_0x37f294(0x5b4)](_0x3bbcd7);}['getEditing'](){const _0x3f7843=_0x5a2394;return this['_editingParams$'][_0x3f7843(0x5a1)]();}};function getShapeDataDiff(_0x4d81da,_0x40a19f){const _0x2a3799=_0x5a2394,_0x4d576a={};for(const _0x54e119 of Object[_0x2a3799(0x24a)](_0x40a19f)){const _0x4d96e0=_0x40a19f[_0x54e119],_0x3b735d=_0x4d81da[_0x54e119];if(_0x4d96e0===void 0x0)continue;if(_0x3b735d===void 0x0){_0x4d576a[_0x54e119]=void 0x0;continue;}if(typeof _0x4d96e0===_0x2a3799(0x603)&&_0x4d96e0!==null&&!Array['isArray'](_0x4d96e0)&&typeof _0x3b735d===_0x2a3799(0x603)&&_0x3b735d!==null&&!Array[_0x2a3799(0x489)](_0x3b735d))_0x4d576a[_0x54e119]=getShapeDataDiff(_0x3b735d,_0x4d96e0);else _0x4d576a[_0x54e119]=_0x3b735d;}return _0x4d576a;}const UpdateShapeDataCommand={'type':CommandType['COMMAND'],'id':_0x5a2394(0x2eb),'handler':(_0x92ad20,_0x474dd1)=>{const _0x269149=_0x5a2394,_0xf57ee6=_0x92ad20[_0x269149(0x359)](SheetsShapeService),{unitId:_0x1d5253,subUnitId:_0x1f63ee,shapeType:_0x511158,shapeId:_0x2b5b0e,shapeData:_0x431455,oldShapeJSON:_0x3e9407}=_0x474dd1;if(!_0xf57ee6[_0x269149(0x3ae)](_0x1d5253,_0x1f63ee,_0x2b5b0e))return![];const _0x976e5d=_0x92ad20[_0x269149(0x359)](ICommandService),_0x41d100=_0x92ad20[_0x269149(0x359)](IUndoRedoService),{oldShapeType:_0x1a04e3,oldShapeData:_0x57e305={}}=_0x3e9407,_0x2c7bda=getShapeDataDiff(_0x57e305,_0x431455||{}),_0x53ad43={'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x1d5253,'subUnitId':_0x1f63ee,'shapeId':_0x2b5b0e,'shapeType':_0x511158,'shapeData':_0x431455}},_0x53a9f1={'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x1d5253,'subUnitId':_0x1f63ee,'shapeId':_0x2b5b0e,'shapeType':_0x1a04e3,'shapeData':_0x2c7bda}};if(_0x976e5d[_0x269149(0x430)](_0x53ad43['id'],_0x53ad43[_0x269149(0x438)]))return _0x41d100[_0x269149(0x1e6)]({'unitID':_0x1d5253,'undoMutations':[_0x53a9f1],'redoMutations':[_0x53ad43]}),!![];return![];}},SetShapeTextHorizontalAlignCommand={'type':CommandType[_0x5a2394(0x46b)],'id':_0x5a2394(0x445),'handler':async(_0x2bad05,_0x146d86)=>{const _0x5a805f=_0x5a2394;var _0x5d1ae1;if(!getSheetCommandTarget(_0x2bad05[_0x5a805f(0x359)](IUniverInstanceService)))return![];const _0x53d190=_0x2bad05['get'](ISheetDrawingService)[_0x5a805f(0x34c)]()['filter'](_0x4a60f4=>_0x4a60f4[_0x5a805f(0x561)]===DrawingTypeEnum['DRAWING_SHAPE']);if(_0x53d190[_0x5a805f(0x380)]!==0x1)return![];const _0x28d1bf=_0x2bad05[_0x5a805f(0x359)](ShapeTextEditingService)['getEditing'](),_0x491821=(_0x28d1bf===null||_0x28d1bf===void 0x0?void 0x0:_0x28d1bf[_0x5a805f(0x221)])||_0x53d190[0x0][_0x5a805f(0x221)],_0x4b2062=(_0x28d1bf===null||_0x28d1bf===void 0x0?void 0x0:_0x28d1bf[_0x5a805f(0x3c7)])||_0x53d190[0x0]['subUnitId'],_0x3b683a=(_0x28d1bf===null||_0x28d1bf===void 0x0?void 0x0:_0x28d1bf[_0x5a805f(0x35b)])||_0x53d190[0x0][_0x5a805f(0x183)],_0x11d79f=_0x2bad05[_0x5a805f(0x359)](SheetsShapeService)[_0x5a805f(0x3ae)](_0x491821,_0x4b2062,_0x3b683a);if(!_0x11d79f)return![];const _0x8ed26b=_0x11d79f[_0x5a805f(0x5bb)]();if(!_0x8ed26b||!(_0x5a805f(0x51f)in _0x8ed26b))return![];const _0x1a73b7=_0x2bad05['get'](ICommandService),{value:_0x1c4dcf}=_0x146d86,_0x1e4da0=_0x11d79f['getShapeType'](),_0x30c057=_0x11d79f[_0x5a805f(0x484)](),_0x53b09c={..._0x8ed26b[_0x5a805f(0x51f)],'ha':_0x1c4dcf};return await _0x1a73b7[_0x5a805f(0x60d)](UpdateShapeDataCommand['id'],{'unitId':_0x491821,'subUnitId':_0x4b2062,'shapeId':_0x3b683a,'shapeType':_0x1e4da0,'shapeData':{'shapeText':{'isHorizontal':(_0x5d1ae1=_0x8ed26b[_0x5a805f(0x23e)])!==null&&_0x5d1ae1!==void 0x0?_0x5d1ae1:!![],'dataModel':_0x53b09c}},'oldShapeJSON':{'oldShapeType':_0x1e4da0,'oldShapeData':_0x30c057}});}},SetShapeTextFontSizeCommand={'type':CommandType[_0x5a2394(0x46b)],'id':_0x5a2394(0x1ad),'handler':async(_0x3927ff,_0x2ec5b6)=>{const _0x2a8fd3=_0x5a2394;var _0x1a4696;if(!_0x2ec5b6)return![];const {value:_0xfd5e66}=_0x2ec5b6,_0x3e14aa=_0x3927ff['get'](ICommandService),_0x500244=_0x3927ff[_0x2a8fd3(0x359)](ShapeTextEditingService),_0x2b6a40=_0x3927ff['get'](SheetsShapeService),_0x292bf6=_0x3927ff[_0x2a8fd3(0x359)](IRenderManagerService),_0x37da31=_0x500244[_0x2a8fd3(0x415)]();if(!_0x37da31)return![];const {unitId:_0x46d179,subUnitId:_0x66f30,shapeId:_0x152b9a}=_0x37da31,_0x24b8d7=_0x2b6a40[_0x2a8fd3(0x3ae)](_0x46d179,_0x66f30,_0x152b9a);if(!_0x24b8d7)return![];const _0x373ff9=_0x24b8d7[_0x2a8fd3(0x5bb)]();if(!_0x373ff9||!(_0x2a8fd3(0x51f)in _0x373ff9))return![];const _0x1754ee=_0x373ff9[_0x2a8fd3(0x51f)];if(!_0x1754ee)return![];const _0x74bea9={..._0x1754ee,'fs':_0xfd5e66},_0x18544f=await _0x3e14aa[_0x2a8fd3(0x60d)](UpdateShapeDataCommand['id'],{'unitId':_0x46d179,'subUnitId':_0x66f30,'shapeId':_0x152b9a,'shapeData':{'shapeText':{'isHorizontal':(_0x1a4696=_0x373ff9[_0x2a8fd3(0x23e)])!==null&&_0x1a4696!==void 0x0?_0x1a4696:!![],'dataModel':_0x74bea9}}});if(_0x18544f){const _0x3a0630=_0x292bf6[_0x2a8fd3(0x534)](_0x46d179);if(_0x3a0630===null||_0x3a0630===void 0x0?void 0x0:_0x3a0630[_0x2a8fd3(0x1e3)]){const _0x37dca0=getDrawingShapeKeyByDrawingSearch({'unitId':_0x46d179,'subUnitId':_0x66f30,'drawingId':_0x152b9a}),_0x31ca42=_0x3a0630[_0x2a8fd3(0x1e3)][_0x2a8fd3(0x328)](_0x37dca0);if(_0x31ca42)_0x31ca42[_0x2a8fd3(0x1d2)](!![]);}}return _0x18544f;}},SetShapeTextFontSizeIncreaseCommand={'type':CommandType['COMMAND'],'id':_0x5a2394(0x2f7),'handler':async _0x4eec08=>{const _0x5e6cf5=_0x5a2394;var _0x28b1e4;const _0x18e16e=_0x4eec08[_0x5e6cf5(0x359)](ShapeTextEditingService),_0x4a7a63=_0x4eec08[_0x5e6cf5(0x359)](SheetsShapeService),_0x2e8bae=_0x4eec08[_0x5e6cf5(0x359)](ICommandService),_0xbced1a=_0x18e16e[_0x5e6cf5(0x415)]();if(!_0xbced1a)return![];const {unitId:_0x1cf1b7,subUnitId:_0x28a4a2,shapeId:_0x70c0bd}=_0xbced1a,_0x2d322=_0x4a7a63[_0x5e6cf5(0x3ae)](_0x1cf1b7,_0x28a4a2,_0x70c0bd);if(!_0x2d322)return![];const _0x55ebd7=_0x2d322[_0x5e6cf5(0x5bb)]();if(!_0x55ebd7||!('dataModel'in _0x55ebd7))return![];const _0x4a3236=_0x55ebd7[_0x5e6cf5(0x51f)],_0x1ebdf1=(_0x28b1e4=_0x4a3236===null||_0x4a3236===void 0x0?void 0x0:_0x4a3236['fs'])!==null&&_0x28b1e4!==void 0x0?_0x28b1e4:0xe,_0x365572=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x599e4e=_0x1ebdf1;const _0x4e6b7d=_0x365572[_0x5e6cf5(0x552)](_0x1ebdf1);if(_0x4e6b7d!==-0x1&&_0x4e6b7d<_0x365572[_0x5e6cf5(0x380)]-0x1)_0x599e4e=_0x365572[_0x4e6b7d+0x1];else{if(_0x4e6b7d===-0x1)_0x599e4e=Math[_0x5e6cf5(0x1bd)](_0x1ebdf1)+0x1;}return _0x2e8bae[_0x5e6cf5(0x60d)](SetShapeTextFontSizeCommand['id'],{'value':_0x599e4e});}},SetShapeTextFontSizeDecreaseCommand={'type':CommandType['COMMAND'],'id':_0x5a2394(0x1eb),'handler':async _0xd0440=>{const _0xbf6689=_0x5a2394;var _0x8d1dc3;const _0x4b12ca=_0xd0440[_0xbf6689(0x359)](ShapeTextEditingService),_0x5ee2be=_0xd0440['get'](SheetsShapeService),_0xf77a2c=_0xd0440[_0xbf6689(0x359)](ICommandService),_0x4e07a6=_0x4b12ca['getEditing']();if(!_0x4e07a6)return![];const {unitId:_0x391d40,subUnitId:_0x306610,shapeId:_0x9fc949}=_0x4e07a6,_0x5d75e8=_0x5ee2be[_0xbf6689(0x3ae)](_0x391d40,_0x306610,_0x9fc949);if(!_0x5d75e8)return![];const _0x4f59fb=_0x5d75e8[_0xbf6689(0x5bb)]();if(!_0x4f59fb||!(_0xbf6689(0x51f)in _0x4f59fb))return![];const _0x285037=_0x4f59fb[_0xbf6689(0x51f)],_0x21dbfa=(_0x8d1dc3=_0x285037===null||_0x285037===void 0x0?void 0x0:_0x285037['fs'])!==null&&_0x8d1dc3!==void 0x0?_0x8d1dc3:0xe,_0x284d9e=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x4f0b7f=_0x21dbfa;const _0xd80fcd=_0x284d9e[_0xbf6689(0x552)](_0x21dbfa);if(_0xd80fcd!==-0x1&&_0xd80fcd>0x0)_0x4f0b7f=_0x284d9e[_0xd80fcd-0x1];else{if(_0xd80fcd===-0x1)_0x4f0b7f=Math['floor'](_0x21dbfa)-0x1;}if(_0x4f0b7f<0x1)_0x4f0b7f=0x1;return _0xf77a2c[_0xbf6689(0x60d)](SetShapeTextFontSizeCommand['id'],{'value':_0x4f0b7f});}},SetShapeTextVerticalAlignCommand={'type':CommandType['COMMAND'],'id':_0x5a2394(0x366),'handler':async(_0x124855,_0x5724e2)=>{const _0x2cc66f=_0x5a2394;var _0x4d102d;if(!getSheetCommandTarget(_0x124855[_0x2cc66f(0x359)](IUniverInstanceService)))return![];const _0x4479fc=_0x124855[_0x2cc66f(0x359)](ISheetDrawingService)[_0x2cc66f(0x34c)]()[_0x2cc66f(0x56b)](_0xfc0373=>_0xfc0373[_0x2cc66f(0x561)]===DrawingTypeEnum[_0x2cc66f(0x37f)]);if(_0x4479fc['length']!==0x1)return![];const _0x3d1b7b=_0x124855[_0x2cc66f(0x359)](ShapeTextEditingService)[_0x2cc66f(0x415)](),_0x90ed54=(_0x3d1b7b===null||_0x3d1b7b===void 0x0?void 0x0:_0x3d1b7b['unitId'])||_0x4479fc[0x0][_0x2cc66f(0x221)],_0x35bd5f=(_0x3d1b7b===null||_0x3d1b7b===void 0x0?void 0x0:_0x3d1b7b[_0x2cc66f(0x3c7)])||_0x4479fc[0x0][_0x2cc66f(0x3c7)],_0x1737e0=(_0x3d1b7b===null||_0x3d1b7b===void 0x0?void 0x0:_0x3d1b7b[_0x2cc66f(0x35b)])||_0x4479fc[0x0][_0x2cc66f(0x183)],_0x48582b=_0x124855[_0x2cc66f(0x359)](SheetsShapeService)['getShapeModel'](_0x90ed54,_0x35bd5f,_0x1737e0);if(!_0x48582b)return![];const _0x2aaf6f=_0x48582b['getShapeTextData']();if(!_0x2aaf6f||!('dataModel'in _0x2aaf6f))return![];const _0xd509a2=_0x124855[_0x2cc66f(0x359)](ICommandService),{value:_0x5efa28}=_0x5724e2,_0x3162c5=_0x48582b[_0x2cc66f(0x460)](),_0x3200ea=_0x48582b[_0x2cc66f(0x484)](),_0x50826c={..._0x2aaf6f['dataModel'],'va':_0x5efa28};return await _0xd509a2['executeCommand'](UpdateShapeDataCommand['id'],{'unitId':_0x90ed54,'subUnitId':_0x35bd5f,'shapeId':_0x1737e0,'shapeType':_0x3162c5,'shapeData':{'shapeText':{'isHorizontal':(_0x4d102d=_0x2aaf6f[_0x2cc66f(0x23e)])!==null&&_0x4d102d!==void 0x0?_0x4d102d:!![],'dataModel':_0x50826c}},'oldShapeJSON':{'oldShapeType':_0x3162c5,'oldShapeData':_0x3200ea}});}},ShapeDocAlignCommand={'type':CommandType[_0x5a2394(0x46b)],'id':_0x5a2394(0x476),'handler':(_0x469863,_0x3519ae)=>{const _0x4ee948=_0x5a2394;if(!_0x3519ae)return![];const {value:_0x4ecc4c}=_0x3519ae;return _0x469863[_0x4ee948(0x359)](ICommandService)[_0x4ee948(0x430)](AlignOperationCommand['id'],{'alignType':_0x4ecc4c});}},CloseSheetShapeFormatPanelOperation={'type':CommandType[_0x5a2394(0x56f)],'id':_0x5a2394(0x2ca),'handler'(){return!![];}},OpenSheetShapeFormatPanelOperation={'type':CommandType[_0x5a2394(0x56f)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!![];}},SHEET_SHAPE_EDIT_PANEL_KEY=_0x5a2394(0x212),DOCS_SHAPE_EDITOR_UNIT_ID_KEY=createInternalEditorID(_0x5a2394(0x234)),ShapeTextEditorContainer$1=_0x5a2394(0x219);function updateShapeData(_0x2dc36a,_0x55e7b3,_0x197cfa,_0x989d36,_0x495d2b,_0x4424c5){const _0x1f858c=_0x5a2394,_0x159c23={'unitId':_0x55e7b3,'subUnitId':_0x197cfa,'shapeId':_0x989d36,'shapeData':_0x4424c5,'oldShapeJSON':_0x495d2b};return _0x2dc36a[_0x1f858c(0x60d)](UpdateShapeDataCommand['id'],_0x159c23);}function updateLineShapeData(_0x23a2e3,_0x28b9ef,_0x334bb2,_0x393294,_0x533de6,_0x104edd){const _0x1da803=_0x5a2394,_0x5d29ac={'unitId':_0x28b9ef,'subUnitId':_0x334bb2,'shapeId':_0x393294,'shapeData':_0x104edd,'oldShapeJSON':_0x533de6};return _0x23a2e3[_0x1da803(0x60d)](UpdateShapeDataCommand['id'],_0x5d29ac);}function prepareShapeTextDocumentData(_0x3f42de,_0x5a8538){const _0x299e48=_0x5a2394;var _0x30c0cc;const {isHorizontal:_0x2c9872,textRect:_0x395424,verticalAlign:_0x2bd970}=_0x5a8538,_0x265b31=_0x2c9872?_0x395424['width']:_0x395424['height'],_0x51035e=Tools[_0x299e48(0x63f)](_0x3f42de),_0x585934=(_0x30c0cc=_0x51035e[_0x299e48(0x263)])!==null&&_0x30c0cc!==void 0x0?_0x30c0cc:{},_0x3a495d={..._0x585934[_0x299e48(0x325)],'centerAngle':_0x2c9872?0x0:VERTICAL_ROTATE_ANGLE,'vertexAngle':_0x2c9872?0x0:VERTICAL_ROTATE_ANGLE,'wrapStrategy':WrapStrategy['WRAP']};if(_0x2bd970!==void 0x0)_0x3a495d[_0x299e48(0x459)]=_0x2bd970;if(_0x5a8538[_0x299e48(0x474)]!==void 0x0){var _0x1f94c9;_0x3a495d[_0x299e48(0x474)]=_0x5a8538['horizontalAlign'];const _0x4cc0a3=(_0x1f94c9=_0x51035e[_0x299e48(0x5e7)])===null||_0x1f94c9===void 0x0?void 0x0:_0x1f94c9[_0x299e48(0x392)];if(_0x4cc0a3)for(const _0x5d38a6 of _0x4cc0a3){if(!_0x5d38a6[_0x299e48(0x61b)])_0x5d38a6[_0x299e48(0x61b)]={};_0x5d38a6[_0x299e48(0x61b)][_0x299e48(0x474)]=_0x5a8538[_0x299e48(0x474)];}}return _0x51035e[_0x299e48(0x263)]={..._0x585934,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':_0x265b31,'height':Number[_0x299e48(0x461)]},'renderConfig':_0x3a495d},_0x51035e;}function stripShapeTextDocumentLayout(_0x35814d){const _0xb41255=_0x5a2394;var _0x4bb181;const _0xa66cff=Tools[_0xb41255(0x63f)](_0x35814d),_0x118771=(_0x4bb181=_0xa66cff[_0xb41255(0x263)])!==null&&_0x4bb181!==void 0x0?_0x4bb181:{},_0x566b56={..._0x118771['renderConfig']};return delete _0x566b56[_0xb41255(0x58c)],delete _0x566b56[_0xb41255(0x54a)],delete _0x566b56[_0xb41255(0x459)],delete _0x566b56[_0xb41255(0x1d8)],_0xa66cff[_0xb41255(0x263)]={..._0x118771,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':Number[_0xb41255(0x461)],'height':Number[_0xb41255(0x461)]},'renderConfig':Object[_0xb41255(0x24a)](_0x566b56)[_0xb41255(0x380)]>0x0?_0x566b56:void 0x0},_0xa66cff;}var DrawingShape=class extends Shape{constructor(_0x17007b,_0x38bfa0){const _0x593304=_0x5a2394;super(_0x17007b,_0x38bfa0),_defineProperty(this,'_props',void 0x0),_defineProperty(this,_0x593304(0x5cc),!![]),_defineProperty(this,_0x593304(0x5f0),DrawingTypeEnum[_0x593304(0x37f)]),_defineProperty(this,'isDrawingObject',!![]),this[_0x593304(0x3b7)]={..._0x38bfa0},this[_0x593304(0x409)]();}['_init'](){const _0x5a4dcc=_0x5a2394;this[_0x5a4dcc(0x403)][_0x5a4dcc(0x217)](_0x4a4e51=>{const _0x28259c=_0x5a4dcc;this[_0x28259c(0x22d)](_0x4a4e51);});}[_0x5a2394(0x637)](_0x828078){const _0x12e380=_0x5a2394;this['_props'][_0x12e380(0x5b6)]=_0x828078;}[_0x5a2394(0x312)](_0x133f8a){const _0x3927e8=_0x5a2394;this[_0x3927e8(0x3b7)][_0x3927e8(0x45b)]=_0x133f8a,this['makeDirty'](!![]);}get[_0x5a2394(0x221)](){const _0x21cb3c=_0x5a2394;return this[_0x21cb3c(0x3b7)][_0x21cb3c(0x221)];}get[_0x5a2394(0x3c7)](){const _0x158ec5=_0x5a2394;return this[_0x158ec5(0x3b7)]['subUnitId'];}[_0x5a2394(0x22d)](_0x32ae19){const _0x1e47f3=_0x5a2394;if(this[_0x1e47f3(0x3b7)][_0x1e47f3(0x3c8)]==null||!this[_0x1e47f3(0x5cc)])return;const {width:_0x2d1595,height:_0x5277d8}=this,{width:_0x4d4db9=0x0,height:_0x2693be=0x0}=_0x32ae19['preValue'],{left:_0x4fe180=0x0,top:_0x31adc9=0x0,right:_0x47b3d0=0x0,bottom:_0x366131=0x0}=this['_props'][_0x1e47f3(0x3c8)];let _0x2fba21=_0x4fe180,_0xd50f93=_0x31adc9,_0x40729f=_0x47b3d0,_0x44c168=_0x366131,_0x5d5cc3=![];if(_0x4d4db9!==0x0&&_0x4d4db9!==_0x2d1595){const _0x12bf7e=_0x4fe180/_0x4d4db9,_0x3fa361=_0x47b3d0/_0x4d4db9;_0x2fba21=_0x2d1595*_0x12bf7e,_0x40729f=_0x2d1595*_0x3fa361,_0x5d5cc3=!![];}if(_0x2693be!==0x0&&_0x2693be!==_0x5277d8){const _0x39c38c=_0x31adc9/_0x2693be,_0xea6104=_0x366131/_0x2693be;_0xd50f93=_0x5277d8*_0x39c38c,_0x44c168=_0x5277d8*_0xea6104,_0x5d5cc3=!![];}if(_0x5d5cc3)this[_0x1e47f3(0x43c)]({'left':_0x2fba21,'top':_0xd50f93,'right':_0x40729f,'bottom':_0x44c168});}[_0x5a2394(0x43c)](_0x23d134){const _0x2c6685=_0x5a2394;this['_props']['srcRect']=_0x23d134,this[_0x2c6685(0x1d2)](!![]);}[_0x5a2394(0x1c8)](_0x5772ac){const _0x19a8ad=_0x5a2394;this[_0x19a8ad(0x3b7)][_0x19a8ad(0x313)]=_0x5772ac,this[_0x19a8ad(0x1d2)](!![]);}set['transform'](_0x5dc424){const _0x2527b7=_0x5a2394;this[_0x2527b7(0x310)]=_0x5dc424;}get[_0x5a2394(0x23f)](){const _0x328443=_0x5a2394;if(!this[_0x328443(0x310)])this['_setTransForm']();const _0x34ab5c=this[_0x328443(0x310)][_0x328443(0x645)]();return this[_0x328443(0x2a6)](_0x34ab5c);}get['shapeModel'](){const _0x54b767=_0x5a2394;return this[_0x54b767(0x3b7)]['shapeModel'];}get[_0x5a2394(0x35b)](){const _0x3bfcfc=_0x5a2394;return this['_props'][_0x3bfcfc(0x35b)];}get[_0x5a2394(0x48d)](){const _0x5563c8=_0x5a2394;return RENDER_CLASS_TYPE[_0x5563c8(0x4da)];}[_0x5a2394(0x4c9)](_0x385656,_0x199ed0,_0x1a42af,_0x3fbc66){const _0x26936e=_0x5a2394,_0x2916c7=this['_props']['shapeModel'];if(!_0x2916c7||!_0x199ed0)return;const _0x24cca6=_0x1a42af!==null&&_0x1a42af!==void 0x0?_0x1a42af:this[_0x26936e(0x2a5)],_0x1211af=_0x3fbc66!==null&&_0x3fbc66!==void 0x0?_0x3fbc66:this['height'],_0x42859c={'shapeType':_0x2916c7[_0x26936e(0x460)](),'width':_0x24cca6,'height':_0x1211af},_0x19c0bc={'renderMode':ShapeRenderModeEnum[_0x26936e(0x1d6)],'oKey':this[_0x26936e(0x295)],'image':this['_props'][_0x26936e(0x313)],'angle':this[_0x26936e(0x195)]};_0x2916c7[_0x26936e(0x58a)](_0x42859c),_0x385656[_0x26936e(0x5b7)]();const _0x5d7082={'top':0x0,'left':0x0,'width':_0x24cca6,'height':_0x1211af};_0x2916c7[_0x26936e(0x1b7)](_0x385656,_0x5d7082,_0x19c0bc),_0x385656[_0x26936e(0x40d)]();const _0x325b27=_0x2916c7[_0x26936e(0x5bb)](),_0x35241a=_0x2916c7[_0x26936e(0x420)](_0x5d7082),_0x3c0bd8=_0x2916c7[_0x26936e(0x38d)]();if(_0x325b27&&_0x35241a&&!_0x3c0bd8){_0x385656[_0x26936e(0x5b7)]();if(this[_0x26936e(0x3a1)]()['flipX'])_0x385656[_0x26936e(0x22a)](-0x1,0x1);const _0x381702=_0x24cca6/0x2,_0x307021=_0x1211af/0x2;_0x385656[_0x26936e(0x528)](-_0x381702,-_0x307021),_0x385656[_0x26936e(0x40e)](),this[_0x26936e(0x4e1)](_0x385656,_0x325b27,_0x35241a),_0x385656[_0x26936e(0x40d)]();}}['getDrawingPoints'](_0x2c0005){}[_0x5a2394(0x4e1)](_0x4786a3,_0x15e06a,_0xf5043a){const _0x137692=_0x5a2394;if(this[_0x137692(0x3b7)]['isEditing'])return;if('isRichText'in _0x15e06a&&_0x15e06a['isRichText']===![])this[_0x137692(0x316)](_0x4786a3,_0x15e06a,_0xf5043a);else this[_0x137692(0x214)](_0x4786a3,_0x15e06a,_0xf5043a);}['_drawSimpleText'](_0x390c5f,_0x2e7c61,_0x3e95e0){}['_drawRichText'](_0x4e1abc,_0x4341cd,_0x15080c){const _0x153fed=_0x5a2394;var _0x5c6819,_0x1fc88f;const _0x42638d=this['_props']['localeService'];if(!_0x4341cd[_0x153fed(0x51f)]||!_0x42638d){if(!_0x42638d)console[_0x153fed(0x3a2)](_0x153fed(0x385));return;}const _0x3717dd=_0x4341cd[_0x153fed(0x51f)],_0x3a4b00=_0x3717dd[_0x153fed(0x34b)],_0xa39c43=(_0x5c6819=_0x3717dd['va'])!==null&&_0x5c6819!==void 0x0?_0x5c6819:VerticalAlign[_0x153fed(0x253)],_0x5052d1=(_0x1fc88f=_0x3717dd['ha'])!==null&&_0x1fc88f!==void 0x0?_0x1fc88f:HorizontalAlign[_0x153fed(0x1b3)];if(!_0x3a4b00)return;const _0x420a5d=_0x4341cd['isHorizontal'],_0x20137c=prepareShapeTextDocumentData(_0x3a4b00,{'isHorizontal':_0x420a5d!==![],'textRect':_0x15080c,'verticalAlign':_0xa39c43,'horizontalAlign':_0x5052d1}),_0x4d7b3f=new DocumentDataModel(_0x20137c),_0x4c66d0=new DocumentViewModel(_0x4d7b3f),_0x2d0c1f=DocumentSkeleton[_0x153fed(0x571)](_0x4c66d0,_0x42638d);console[_0x153fed(0x3a2)](_0x20137c,_0x4d7b3f,_0x2d0c1f),_0x2d0c1f[_0x153fed(0x3e7)]();const _0x2e1d87=new Documents(_0x153fed(0x595)+this[_0x153fed(0x295)],_0x2d0c1f,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0x2e1d87['resize'](_0x15080c[_0x153fed(0x2a5)],_0x15080c['height']),_0x4e1abc[_0x153fed(0x5b7)](),_0x4e1abc['translateWithPrecision'](_0x15080c[_0x153fed(0x384)],_0x15080c[_0x153fed(0x278)]),_0x4e1abc[_0x153fed(0x40e)](),_0x4e1abc[_0x153fed(0x5d5)](0x0,0x0,_0x15080c[_0x153fed(0x2a5)],_0x15080c[_0x153fed(0x233)]),_0x4e1abc[_0x153fed(0x4e5)](),_0x2e1d87[_0x153fed(0x252)](_0x4e1abc),_0x4e1abc['restore'](),_0x2e1d87[_0x153fed(0x2cb)](),_0x2d0c1f['dispose'](),_0x4c66d0[_0x153fed(0x2cb)](),_0x4d7b3f[_0x153fed(0x2cb)]();}[_0x5a2394(0x1b7)](_0x456637,_0x157164,_0xad9325=![]){const _0x5d4e2e=_0x5a2394;if(!this['visible'])return this[_0x5d4e2e(0x1d2)](![]),this;let {width:_0x4284a9,height:_0x37d3d3,left:_0x432391,top:_0x316fdb}=this;const _0x1482b8=this[_0x5d4e2e(0x4e6)]();_0x4284a9=_0x1482b8[_0x5d4e2e(0x2a5)],_0x37d3d3=_0x1482b8[_0x5d4e2e(0x233)],_0x432391=_0x1482b8[_0x5d4e2e(0x384)],_0x316fdb=_0x1482b8[_0x5d4e2e(0x278)];if(this[_0x5d4e2e(0x24f)](_0x157164)){const {top:_0x19f1b0,left:_0x44ee2e,bottom:_0x6def1c,right:_0x46e92a}=_0x157164[_0x5d4e2e(0x634)];if(_0x4284a9+this[_0x5d4e2e(0x186)]+_0x432391<_0x44ee2e||_0x46e92a<_0x432391||_0x37d3d3+this['strokeWidth']+_0x316fdb<_0x19f1b0||_0x6def1c<_0x316fdb)return this;}const _0x265af8=_0x432391+_0x4284a9/0x2,_0x4a82ac=_0x316fdb+_0x37d3d3/0x2;let _0x1c95b3=this[_0x5d4e2e(0x23f)]['getMatrix']();if(this[_0x5d4e2e(0x3b7)][_0x5d4e2e(0x45b)]){const _0x46ae48=this[_0x5d4e2e(0x3a1)](),_0xadfdc1=new Transform();_0xadfdc1['composeMatrix']({..._0x46ae48}),_0x1c95b3=_0xadfdc1[_0x5d4e2e(0x64b)]();}_0x456637[_0x5d4e2e(0x5b7)]();if(this[_0x5d4e2e(0x3b7)][_0x5d4e2e(0x31e)][_0x5d4e2e(0x391)]===!![]){}else _0x456637[_0x5d4e2e(0x23f)](_0x1c95b3[0x0],_0x1c95b3[0x1],_0x1c95b3[0x2],_0x1c95b3[0x3],_0x265af8,_0x4a82ac);return this[_0x5d4e2e(0x4c9)](_0x456637,_0x157164,_0x4284a9,_0x37d3d3),_0x456637[_0x5d4e2e(0x40d)](),this[_0x5d4e2e(0x1d2)](![]),this;}[_0x5a2394(0x577)](_0x4311b7){const _0x8f4147=_0x5a2394,{left:_0x5eb986,top:_0x11da5d,width:_0xcbca2a,height:_0x134d79}=this[_0x8f4147(0x4e6)](),_0x2a3329=this['transform'][_0x8f4147(0x64b)](),_0x32d6ad=_0x5eb986+_0xcbca2a/0x2,_0x3aa9ab=_0x11da5d+_0x134d79/0x2,_0x5ad5df=new Transform([_0x2a3329[0x0],_0x2a3329[0x1],_0x2a3329[0x2],_0x2a3329[0x3],_0x32d6ad,_0x3aa9ab]),_0x143f09=this[_0x8f4147(0x558)]();return(this['isInGroup']&&(_0x143f09===null||_0x143f09===void 0x0?void 0x0:_0x143f09['classType'])===RENDER_CLASS_TYPE[_0x8f4147(0x4d2)]?_0x143f09[_0x8f4147(0x2db)][_0x8f4147(0x4b9)](_0x5ad5df):_0x5ad5df)[_0x8f4147(0x3ca)]()[_0x8f4147(0x1e4)](_0x4311b7);}[_0x5a2394(0x2ef)](_0x3ad560){const _0x5d2cd0=_0x5a2394,{left:_0x2d4829,top:_0x3c6456,width:_0x4535c6,height:_0x48aac7}=this[_0x5d2cd0(0x4e6)](),_0x53f66c=_0x2d4829+_0x4535c6/0x2,_0x963371=_0x3c6456+_0x48aac7/0x2,_0x4034d5=this[_0x5d2cd0(0x23f)][_0x5d2cd0(0x64b)](),_0x2a24a1=new Transform([_0x4034d5[0x0],_0x4034d5[0x1],_0x4034d5[0x2],_0x4034d5[0x3],_0x53f66c,_0x963371]),_0x3dc475=this[_0x5d2cd0(0x558)](),_0x1c8f2b=(this[_0x5d2cd0(0x271)]&&(_0x3dc475===null||_0x3dc475===void 0x0?void 0x0:_0x3dc475[_0x5d2cd0(0x48d)])===RENDER_CLASS_TYPE[_0x5d2cd0(0x4d2)]?_0x3dc475[_0x5d2cd0(0x2db)]['multiply'](_0x2a24a1):_0x2a24a1)[_0x5d2cd0(0x3ca)]()[_0x5d2cd0(0x1e4)](_0x3ad560),_0x38b382=_0x4535c6/0x2,_0x1bdfd2=_0x48aac7/0x2,_0x3bced2=this[_0x5d2cd0(0x3b7)][_0x5d2cd0(0x31e)];if(_0x3bced2&&_0x3bced2['isLineShape']())return _0x3bced2[_0x5d2cd0(0x382)](_0x1c8f2b['x'],_0x1c8f2b['y'],_0x4535c6,_0x48aac7);if(_0x1c8f2b['x']>=-_0x38b382-this['strokeWidth']/0x2&&_0x1c8f2b['x']<=_0x38b382+this[_0x5d2cd0(0x186)]/0x2&&_0x1c8f2b['y']>=-_0x1bdfd2-this[_0x5d2cd0(0x186)]/0x2&&_0x1c8f2b['y']<=_0x1bdfd2+this[_0x5d2cd0(0x186)]/0x2)return!![];return![];}[_0x5a2394(0x2cb)](){const _0x5f260d=_0x5a2394;this[_0x5f260d(0x3b7)]['shapeModel']=null,super[_0x5f260d(0x2cb)]();}};function __decorateParam(_0x2491ae,_0x51d27c){return function(_0x17a12f,_0x4868cd){_0x51d27c(_0x17a12f,_0x4868cd,_0x2491ae);};}function __decorate(_0x2e0538,_0x4e1c28,_0x4f4a83,_0x3ba174){const _0x4df3e2=_0x5a2394;var _0x4a6901=arguments[_0x4df3e2(0x380)],_0x5eb4bc=_0x4a6901<0x3?_0x4e1c28:_0x3ba174===null?_0x3ba174=Object[_0x4df3e2(0x658)](_0x4e1c28,_0x4f4a83):_0x3ba174,_0x259e10;if(typeof Reflect===_0x4df3e2(0x603)&&typeof Reflect[_0x4df3e2(0x406)]===_0x4df3e2(0x207))_0x5eb4bc=Reflect['decorate'](_0x2e0538,_0x4e1c28,_0x4f4a83,_0x3ba174);else{for(var _0x388426=_0x2e0538[_0x4df3e2(0x380)]-0x1;_0x388426>=0x0;_0x388426--)if(_0x259e10=_0x2e0538[_0x388426])_0x5eb4bc=(_0x4a6901<0x3?_0x259e10(_0x5eb4bc):_0x4a6901>0x3?_0x259e10(_0x4e1c28,_0x4f4a83,_0x5eb4bc):_0x259e10(_0x4e1c28,_0x4f4a83))||_0x5eb4bc;}return _0x4a6901>0x3&&_0x5eb4bc&&Object['defineProperty'](_0x4e1c28,_0x4f4a83,_0x5eb4bc),_0x5eb4bc;}let SheetDrawingShapeRenderController=class SheetDrawingShapeRenderController extends Disposable{constructor(_0x484b21,_0x42b21b,_0x105cc3,_0x404895,_0x130f29){const _0x4bf0d2=_0x5a2394;super(),this['_drawingManagerService']=_0x484b21,this[_0x4bf0d2(0x539)]=_0x42b21b,this[_0x4bf0d2(0x34a)]=_0x105cc3,this[_0x4bf0d2(0x509)]=_0x404895,this[_0x4bf0d2(0x3d2)]=_0x130f29;}[_0x5a2394(0x51e)](_0x4a7514,_0x2e45ed){const _0x3e4e5a=_0x5a2394,{transform:_0x465932,drawingType:_0x3d41ec,srcRect:_0x26a69f,prstGeom:_0x42e66a,groupId:_0x2a9d77,unitId:_0x2ecddb,subUnitId:_0x2b6217,drawingId:_0xc548d3,isMultiTransform:_0x13dbe2,transforms:_0x45e8ea}=_0x4a7514;if(_0x3d41ec!==DrawingTypeEnum[_0x3e4e5a(0x37f)])return;if(!this[_0x3e4e5a(0x482)][_0x3e4e5a(0x404)]())return;if(_0x465932==null)return;const _0x28cb74=_0x13dbe2&&_0x45e8ea?_0x45e8ea:[_0x465932],_0x25e610=[];for(const _0x3f54c7 of _0x28cb74){const {left:_0x553da2,top:_0x540bc9,width:_0x326b58,height:_0x2e03cc,angle:_0x5cd4b6,flipX:_0x3302a8,flipY:_0x183863,skewX:_0x112c8e,skewY:_0x4ad017}=_0x3f54c7,_0x225799=_0x28cb74['indexOf'](_0x3f54c7),_0xd934a2=getDrawingShapeKeyByDrawingSearch({'unitId':_0x2ecddb,'subUnitId':_0x2b6217,'drawingId':_0xc548d3},_0x13dbe2?_0x225799:void 0x0),_0x584d94=_0x2e45ed['getObjectIncludeInGroup'](_0xd934a2);if(_0x584d94!=null){_0x584d94['transformByState']({'left':_0x553da2,'top':_0x540bc9,'width':_0x326b58,'height':_0x2e03cc,'angle':_0x5cd4b6,'flipX':_0x3302a8,'flipY':_0x183863,'skewX':_0x112c8e,'skewY':_0x4ad017});continue;}const _0x1ac7c3=this[_0x3e4e5a(0x482)][_0x3e4e5a(0x505)](_0x2ecddb,_0x2b6217),_0x41d8aa=_0x1ac7c3[_0x3e4e5a(0x552)](_0xc548d3);if(_0x2e45ed[_0x3e4e5a(0x328)](_0xd934a2))continue;if(!this[_0x3e4e5a(0x482)]['getDrawingVisible']())continue;const _0x3c03a9=this[_0x3e4e5a(0x539)]['getShapeModel'](_0x2ecddb,_0x2b6217,_0xc548d3);if(!_0x3c03a9)continue;const _0xc311fb=new DrawingShape(_0xd934a2,{...isConnectorShape(_0x3c03a9[_0x3e4e5a(0x460)]())?{..._0x3f54c7,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]}:{..._0x3f54c7},'zIndex':_0x41d8aa===-0x1?_0x1ac7c3[_0x3e4e5a(0x380)]-0x1:_0x41d8aa,'shapeModel':_0x3c03a9,'localeService':this[_0x3e4e5a(0x34a)],'shapeId':_0xc548d3,'unitId':_0x2ecddb,'subUnitId':_0x2b6217});_0x2e45ed[_0x3e4e5a(0x4c2)](_0xc311fb,DRAWING_OBJECT_LAYER_INDEX);if(this[_0x3e4e5a(0x482)]['getDrawingEditable']())_0x2e45ed[_0x3e4e5a(0x3a0)](_0xc311fb);_0x2a9d77&&insertGroupObject({'drawingId':_0x2a9d77,'unitId':_0x2ecddb,'subUnitId':_0x2b6217},_0xc311fb,_0x2e45ed,this[_0x3e4e5a(0x482)]);if(_0x42e66a!=null)_0xc311fb[_0x3e4e5a(0x637)](_0x42e66a);if(_0x26a69f!=null)_0xc311fb[_0x3e4e5a(0x43c)](_0x26a69f);this[_0x3e4e5a(0x50e)](_0xc311fb,_0x3c03a9[_0x3e4e5a(0x484)]()),_0x25e610[_0x3e4e5a(0x646)](_0xc311fb);}return _0x25e610;}['_loadShapePictureFill'](_0xa759e9,_0x2358a1){const _0x228dcf=_0x5a2394;var _0x1049e5;const _0x585046=_0x2358a1['fill'];if(!_0x585046||_0x585046[_0x228dcf(0x1aa)]!==ShapeFillEnum[_0x228dcf(0x2a9)]||!_0x585046['fillImageSource'])return;const _0x2c3407=_0x585046[_0x228dcf(0x42e)],_0x4ce076=(_0x1049e5=_0x585046[_0x228dcf(0x2b8)])!==null&&_0x1049e5!==void 0x0?_0x1049e5:ImageSourceTypeEnum[_0x228dcf(0x3c3)],_0xf5f7f5=this[_0x228dcf(0x509)]['getImageSourceCache'](_0x2c3407,_0x4ce076);if(_0xf5f7f5){_0xa759e9['setFillImage'](_0xf5f7f5);return;}this[_0x228dcf(0x372)](_0xa759e9,_0x2c3407,_0x4ce076);}async[_0x5a2394(0x372)](_0x3af30e,_0x20d695,_0x40b6fe){const _0x5c2a8a=_0x5a2394;let _0x5963f7;try{if(_0x40b6fe===ImageSourceTypeEnum[_0x5c2a8a(0x241)])_0x5963f7=await this[_0x5c2a8a(0x509)][_0x5c2a8a(0x555)](_0x20d695);else{if(_0x40b6fe===ImageSourceTypeEnum[_0x5c2a8a(0x3c3)])try{_0x5963f7=await this['_urlImageService'][_0x5c2a8a(0x555)](_0x20d695);}catch{_0x5963f7=_0x20d695;}else _0x5963f7=_0x20d695;}}catch(_0x3e4381){console[_0x5c2a8a(0x22f)]('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x3e4381);return;}const _0x51f548=new window[(_0x5c2a8a(0x61c))]();_0x51f548[_0x5c2a8a(0x5af)]=()=>{this['_imageIoService']['addImageSourceCache'](_0x20d695,_0x40b6fe,_0x51f548),_0x3af30e['setFillImage'](_0x51f548);},_0x51f548[_0x5c2a8a(0x3e6)]=()=>{const _0xc2cbe6=_0x5c2a8a;console[_0xc2cbe6(0x22f)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x20d695);},_0x51f548[_0x5c2a8a(0x62a)]=_0x5963f7;}};SheetDrawingShapeRenderController=__decorate([__decorateParam(0x0,IDrawingManagerService),__decorateParam(0x1,Inject(SheetsShapeService)),__decorateParam(0x2,Inject(LocaleService)),__decorateParam(0x3,IImageIoService),__decorateParam(0x4,IURLImageService)],SheetDrawingShapeRenderController);let ShapeUpdateController=class ShapeUpdateController extends Disposable{constructor(_0xb5eeef,_0x4ef961,_0x122f9c,_0x14297a,_0x135d36,_0x4a5cfb){const _0x518360=_0x5a2394;super(),this[_0x518360(0x2c9)]=_0xb5eeef,this['_renderManagerService']=_0x4ef961,this[_0x518360(0x482)]=_0x122f9c,this[_0x518360(0x42f)]=_0x14297a,this[_0x518360(0x641)]=_0x135d36,this[_0x518360(0x4e9)]=_0x4a5cfb,this['_initialize']();}[_0x5a2394(0x477)](){const _0x464f2c=_0x5a2394;this['_drawingAddListener'](),this['_commandExecutedListener'](),this[_0x464f2c(0x225)]();}[_0x5a2394(0x3f2)](){const _0x16464b=_0x5a2394;this[_0x16464b(0x1e9)](this[_0x16464b(0x482)][_0x16464b(0x211)][_0x16464b(0x395)](_0x63847e=>{const _0x39599d=_0x16464b;this[_0x39599d(0x495)](_0x63847e);}));}[_0x5a2394(0x501)](){const _0x26b846=_0x5a2394;this[_0x26b846(0x1e9)](this[_0x26b846(0x2c9)][_0x26b846(0x4b4)](_0xf3ec14=>{const _0x20c000=_0x26b846;if(_0xf3ec14['id']===InsertSheetsShapeMutation['id']){var _0xc60372;const {unitId:_0x3f3365,subUnitId:_0x37a746,shapeId:_0x3d793f}=_0xf3ec14['params'],_0x434c27=this[_0x20c000(0x308)](_0x3f3365);if(_0x434c27==null)return;const {scene:_0x45e3c0}=_0x434c27,_0x456130=getDrawingShapeKeyByDrawingSearch({'unitId':_0x3f3365,'subUnitId':_0x37a746,'drawingId':_0x3d793f}),_0x5af202=_0x45e3c0[_0x20c000(0x328)](_0x456130);if(!((_0xc60372=this[_0x20c000(0x400)][_0x20c000(0x534)](_0x3f3365))===null||_0xc60372===void 0x0?void 0x0:_0xc60372[_0x20c000(0x42d)](SheetSkeletonManagerService)[_0x20c000(0x628)](_0x37a746)))return![];if(_0x5af202)return;this['_insertShapes']([{'unitId':_0x3f3365,'subUnitId':_0x37a746,'drawingId':_0x3d793f}]);}}));}[_0x5a2394(0x225)](){const _0x370600=_0x5a2394;this[_0x370600(0x1e9)](this[_0x370600(0x482)]['update$'][_0x370600(0x395)](_0x3ea104=>{_0x3ea104['forEach'](_0x3ce9ef=>{const _0x25b914=_0x21c0,{unitId:_0x534755,subUnitId:_0x42bad3,drawingId:_0x2c9397}=_0x3ce9ef,_0x22c55b=this[_0x25b914(0x482)]['getDrawingByParam'](_0x3ce9ef);if(_0x22c55b==null)return;const {transform:_0x207ea9,drawingType:_0x133a68,srcRect:_0x51f50a,prstGeom:_0x5e3dec}=_0x22c55b;if(_0x133a68!==DrawingTypeEnum[_0x25b914(0x37f)])return;const _0x236908=this['_getSceneAndTransformerByDrawingSearch'](_0x534755);if(_0x236908==null)return;const {scene:_0x377e7c,transformer:_0x295b2b}=_0x236908;if(_0x207ea9==null)return!![];const _0x4823e6=getDrawingShapeKeyByDrawingSearch({'unitId':_0x534755,'subUnitId':_0x42bad3,'drawingId':_0x2c9397}),_0x3e7cef=_0x377e7c[_0x25b914(0x328)](_0x4823e6);if(_0x3e7cef==null)return!![];_0x3e7cef[_0x25b914(0x43c)](_0x51f50a),_0x3e7cef[_0x25b914(0x637)](_0x5e3dec);});}));}[_0x5a2394(0x64f)](_0x2b9a77,_0xa01b84){const _0x33f06a=_0x5a2394,{unitId:_0x2ea4d6,subUnitId:_0x4431b8,drawingId:_0x5a0df8}=_0x2b9a77,_0x125fbc=this[_0x33f06a(0x308)](_0x2ea4d6);if(_0x125fbc==null)return;const {scene:_0x170bf0}=_0x125fbc,_0x3a7954=getDrawingShapeKeyByDrawingSearch({'unitId':_0x2ea4d6,'subUnitId':_0x4431b8,'drawingId':_0x5a0df8}),_0x97a82a=_0x170bf0[_0x33f06a(0x328)](_0x3a7954);if(_0x97a82a==null)return;_0x97a82a[_0x33f06a(0x1c8)](_0xa01b84);}[_0x5a2394(0x495)](_0x3c518b){const _0x517890=_0x5a2394;_0x3c518b[_0x517890(0x386)](async _0x3fdae3=>{const _0x3e3fc1=_0x517890;var _0x228e35;const {unitId:_0x187155,subUnitId:_0x1aa3cd}=_0x3fdae3,_0x4cdfc3=this[_0x3e3fc1(0x308)](_0x187155),_0x18ca04=(_0x228e35=getCurrentUnitInfo(this[_0x3e3fc1(0x42f)],_0x187155))===null||_0x228e35===void 0x0?void 0x0:_0x228e35[_0x3e3fc1(0x3c7)];if(_0x4cdfc3==null||_0x18ca04!==_0x1aa3cd)return;const _0x129c0b=this[_0x3e3fc1(0x482)][_0x3e3fc1(0x590)](_0x3fdae3);if(_0x129c0b==null)return;if(_0x129c0b[_0x3e3fc1(0x561)]!==DrawingTypeEnum[_0x3e3fc1(0x37f)])return;if(isConnectorShape((_0x129c0b[_0x3e3fc1(0x59a)]||{})[_0x3e3fc1(0x548)])){const _0x361a57=_0x129c0b[_0x3e3fc1(0x23f)];if(_0x361a57)_0x129c0b['transform']={..._0x361a57,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]};}this[_0x3e3fc1(0x482)]['refreshTransform']([_0x129c0b]),this['_sheetDrawingShapeRenderController'][_0x3e3fc1(0x51e)](_0x129c0b,_0x4cdfc3[_0x3e3fc1(0x1e3)]);});}['_getSceneAndTransformerByDrawingSearch'](_0x327a67){const _0x5e3888=_0x5a2394;if(_0x327a67==null)return;const _0x3e9b52=this[_0x5e3888(0x400)][_0x5e3888(0x534)](_0x327a67),_0x3dc7f2=_0x3e9b52===null||_0x3e9b52===void 0x0?void 0x0:_0x3e9b52[_0x5e3888(0x1e3)];if(_0x3dc7f2==null)return null;return{'scene':_0x3dc7f2,'transformer':_0x3dc7f2[_0x5e3888(0x5ef)]()};}};ShapeUpdateController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IRenderManagerService),__decorateParam(0x2,IDrawingManagerService),__decorateParam(0x3,IUniverInstanceService),__decorateParam(0x4,Inject(DrawingRenderService)),__decorateParam(0x5,Inject(SheetDrawingShapeRenderController))],ShapeUpdateController);function ShapeImageFillEditor(_0x2ce67f){const _0x43f388=_0x5a2394;var _0x4919ec,_0x45a54d,_0x2334e2,_0x2ad636,_0x4208a3,_0x3003b2,_0x386b1d,_0x17aa72,_0x13ea45,_0x42268b,_0x45826d,_0x8f472,_0x46a073;const {unitId:_0x3acf2f,subUnitId:_0x3c2cff,shapeId:_0x332df7,shapeData:_0x15f654,disableShapeOption:_0x3abf70}=_0x2ce67f,_0x3ded9c=useDependency(LocaleService),_0x3334b4=useDependency(ICommandService),_0xa26886=useDependency(IContextService),_0x3ae566=useDependency(ShapeUpdateController),_0x62d635=useDependency(IImageIoService),_0x1fafb3=useRef(null),_0x352505=_0x15f654['fill'],_0x51a821=!!(_0x352505===null||_0x352505===void 0x0?void 0x0:_0x352505[_0x43f388(0x42e)]),[_0xa18818,_0x4f1b29]=useState((_0x4919ec=_0x352505===null||_0x352505===void 0x0?void 0x0:_0x352505[_0x43f388(0x215)])!==null&&_0x4919ec!==void 0x0?_0x4919ec:0x1),[_0x44f680,_0x308485]=useState((_0x45a54d=_0x352505===null||_0x352505===void 0x0?void 0x0:_0x352505['imageFillMode'])!==null&&_0x45a54d!==void 0x0?_0x45a54d:ImageFillModeEnum[_0x43f388(0x612)]),[_0x41422c,_0x305b2a]=useState((_0x2334e2=_0x352505===null||_0x352505===void 0x0?void 0x0:_0x352505[_0x43f388(0x3d8)])!==null&&_0x2334e2!==void 0x0?_0x2334e2:![]),[_0x54861e,_0x329af5]=useState((_0x2ad636=_0x352505===null||_0x352505===void 0x0||(_0x4208a3=_0x352505['imageTile'])===null||_0x4208a3===void 0x0?void 0x0:_0x4208a3[_0x43f388(0x396)])!==null&&_0x2ad636!==void 0x0?_0x2ad636:0x0),[_0x4626dc,_0xad9488]=useState((_0x3003b2=_0x352505===null||_0x352505===void 0x0||(_0x386b1d=_0x352505[_0x43f388(0x630)])===null||_0x386b1d===void 0x0?void 0x0:_0x386b1d['offsetY'])!==null&&_0x3003b2!==void 0x0?_0x3003b2:0x0),[_0x36adb2,_0x33c90f]=useState((_0x17aa72=_0x352505===null||_0x352505===void 0x0||(_0x13ea45=_0x352505[_0x43f388(0x630)])===null||_0x13ea45===void 0x0?void 0x0:_0x13ea45[_0x43f388(0x4ca)])!==null&&_0x17aa72!==void 0x0?_0x17aa72:0x1),[_0x4a935e,_0x336d5a]=useState((_0x42268b=_0x352505===null||_0x352505===void 0x0||(_0x45826d=_0x352505[_0x43f388(0x630)])===null||_0x45826d===void 0x0?void 0x0:_0x45826d[_0x43f388(0x29f)])!==null&&_0x42268b!==void 0x0?_0x42268b:0x1),[_0xf5a738,_0x52d9d4]=useState((_0x8f472=_0x352505===null||_0x352505===void 0x0||(_0x46a073=_0x352505[_0x43f388(0x630)])===null||_0x46a073===void 0x0?void 0x0:_0x46a073[_0x43f388(0x38a)])!==null&&_0x8f472!==void 0x0?_0x8f472:'tl'),_0x269f2f=_0x44f680===ImageFillModeEnum[_0x43f388(0x2c5)],_0x375566=Math['round']((0x1-_0xa18818)*0x64),_0x3417b3=Math[_0x43f388(0x251)](_0x36adb2*0x64),_0x1bdb1a=Math['round'](_0x4a935e*0x64),_0x227d14=_0x4e66db=>_0x3ded9c['t'](_0x4e66db),_0x37d125=[{'label':_0x227d14(_0x43f388(0x363)),'value':'tl'},{'label':_0x227d14(_0x43f388(0x3e8)),'value':'t'},{'label':_0x227d14(_0x43f388(0x304)),'value':'tr'},{'label':_0x227d14(_0x43f388(0x237)),'value':'l'},{'label':_0x227d14('sheets-shape.fill.picture.align.ctr'),'value':_0x43f388(0x5de)},{'label':_0x227d14(_0x43f388(0x55e)),'value':'r'},{'label':_0x227d14('sheets-shape.fill.picture.align.bl'),'value':'bl'},{'label':_0x227d14(_0x43f388(0x2c1)),'value':'b'},{'label':_0x227d14(_0x43f388(0x57d)),'value':'br'}],_0x2eec8e=_0x2397f2=>{updateShapeData(_0x3334b4,_0x3acf2f,_0x3c2cff,_0x332df7,{'oldShapeData':{'fill':_0x352505?{..._0x352505}:void 0x0}},{'fill':{..._0x352505,..._0x2397f2}});},_0x53e045=_0xf35b6d=>{_0x2eec8e({'imageTile':{..._0x352505===null||_0x352505===void 0x0?void 0x0:_0x352505['imageTile'],..._0xf35b6d}});},_0x1eaf0a=()=>{const _0x219a20=_0x43f388;var _0x5272bf;return(_0x5272bf=_0x1fafb3[_0x219a20(0x2e8)])===null||_0x5272bf===void 0x0?void 0x0:_0x5272bf[_0x219a20(0x58f)]();},_0x415609=async _0x280251=>{const _0x46896d=_0x43f388;var _0x399dc0;const _0x394b53=(_0x399dc0=_0x280251['target'][_0x46896d(0x275)])===null||_0x399dc0===void 0x0?void 0x0:_0x399dc0[0x0];if(!_0x394b53)return;_0x280251[_0x46896d(0x249)][_0x46896d(0x3ff)]='';const _0x3caeb0=await _0x62d635['saveImage'](_0x394b53);if(_0x3caeb0==null)return;const {imageSourceType:_0x3e8357,source:_0x56bd31,base64Cache:_0x36fd37}=_0x3caeb0,{image:_0x391aef}=await getImageSize(_0x36fd37||'');_0x62d635['addImageSourceCache'](_0x56bd31,_0x3e8357,_0x391aef),updateShapeData(_0x3334b4,_0x3acf2f,_0x3c2cff,_0x332df7,{'oldShapeData':{'fill':_0x352505?{..._0x352505}:void 0x0}},{'fill':{..._0x352505,'fillType':ShapeFillEnum[_0x46896d(0x2a9)],'fillImageSource':_0x56bd31,'fillImageSourceType':_0x3e8357}}),_0x3ae566[_0x46896d(0x64f)]({'unitId':_0x3acf2f,'subUnitId':_0x3c2cff,'drawingId':_0x332df7},_0x391aef);},_0x13092c='univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200',_0x1a4084=_0x43f388(0x52a);return jsxs(_0x43f388(0x307),{'className':_0x43f388(0x2d3),'children':[jsxs(_0x43f388(0x307),{'className':_0x43f388(0x625),'children':[jsx(_0x43f388(0x617),{'className':_0x13092c,'children':_0x227d14(_0x43f388(0x49b))}),jsxs('div',{'className':_0x43f388(0x1ca),'children':[jsx('input',{'ref':_0x1fafb3,'type':_0x43f388(0x3b6),'accept':_0x43f388(0x1ae),'className':'univer-hidden','onChange':_0x415609}),jsxs(_0x43f388(0x307),{'className':_0x43f388(0x2a4),'children':[jsx(_0x43f388(0x342),{'type':_0x43f388(0x342),'disabled':_0x3abf70,'className':_0x43f388(0x1fc),'onClick':_0x1eaf0a,'children':jsxs(_0x43f388(0x617),{'children':[_0x227d14('sheets-shape.fill.picture.insert'),'\x20']})}),_0x51a821&&jsx('div',{'className':_0x43f388(0x2f4),'children':jsx('img',{'src':_0x352505===null||_0x352505===void 0x0?void 0x0:_0x352505[_0x43f388(0x42e)],'alt':'','className':_0x43f388(0x37a)})})]})]})]}),jsxs(_0x43f388(0x307),{'className':_0x1a4084,'children':[jsx(_0x43f388(0x617),{'className':_0x13092c,'children':_0x227d14(_0x43f388(0x65b))}),jsx(_0x43f388(0x307),{'className':_0x43f388(0x47f),'children':jsx(InputNumber,{'className':_0x43f388(0x542),'value':_0x375566,'disabled':_0x3abf70,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x4c8f83=>_0x4c8f83+'%','parser':_0x202826=>(_0x202826===null||_0x202826===void 0x0?void 0x0:_0x202826[_0x43f388(0x2ab)]('%',''))||'','onChange':_0x398b36=>{const _0x404a2f=_0x43f388,_0x8ce90a=(0x64-Math['max'](0x0,Math[_0x404a2f(0x469)](0x64,_0x398b36!==null&&_0x398b36!==void 0x0?_0x398b36:0x0)))/0x64;_0x4f1b29(_0x8ce90a),_0x2eec8e({'imageOpacity':_0x8ce90a}),_0xa26886[_0x404a2f(0x343)](FOCUSING_PANEL_EDITOR,![]);},'onFocus':()=>_0xa26886[_0x43f388(0x343)](FOCUSING_PANEL_EDITOR,!![]),'onBlur':()=>_0xa26886[_0x43f388(0x343)](FOCUSING_PANEL_EDITOR,![])})})]}),jsx(Checkbox,{'checked':_0x269f2f,'disabled':_0x3abf70,'onChange':_0x39c077=>{const _0x5c3525=_0x43f388,_0x22d7ea=_0x39c077?ImageFillModeEnum[_0x5c3525(0x2c5)]:ImageFillModeEnum[_0x5c3525(0x612)];_0x308485(_0x22d7ea),_0x2eec8e({'imageFillMode':_0x22d7ea});},'children':jsx(_0x43f388(0x617),{'className':_0x43f388(0x618),'children':_0x227d14('sheets-shape.fill.picture.tileAsTexture')})}),_0x269f2f&&jsxs(_0x43f388(0x307),{'className':_0x43f388(0x424),'children':[jsxs(_0x43f388(0x307),{'className':_0x1a4084,'children':[jsx(_0x43f388(0x617),{'className':_0x13092c,'children':_0x227d14(_0x43f388(0x581))}),jsx(_0x43f388(0x307),{'className':_0x43f388(0x47f),'children':jsx(InputNumber,{'className':_0x43f388(0x542),'value':_0x54861e,'disabled':_0x3abf70,'step':0x1,'onChange':_0x199781=>{_0x53e045({'offsetX':_0x199781!==null&&_0x199781!==void 0x0?_0x199781:0x0}),_0x329af5(_0x199781!==null&&_0x199781!==void 0x0?_0x199781:0x0);},'onFocus':()=>_0xa26886[_0x43f388(0x343)](FOCUSING_PANEL_EDITOR,!![]),'onBlur':()=>_0xa26886[_0x43f388(0x343)](FOCUSING_PANEL_EDITOR,![])})})]}),jsxs(_0x43f388(0x307),{'className':_0x1a4084,'children':[jsx(_0x43f388(0x617),{'className':_0x13092c,'children':_0x227d14(_0x43f388(0x5c5))}),jsx(_0x43f388(0x307),{'className':_0x43f388(0x47f),'children':jsx(InputNumber,{'className':_0x43f388(0x542),'value':_0x4626dc,'disabled':_0x3abf70,'step':0x1,'onChange':_0x1efbc9=>{_0x53e045({'offsetY':_0x1efbc9!==null&&_0x1efbc9!==void 0x0?_0x1efbc9:0x0}),_0xad9488(_0x1efbc9!==null&&_0x1efbc9!==void 0x0?_0x1efbc9:0x0);},'onFocus':()=>_0xa26886[_0x43f388(0x343)](FOCUSING_PANEL_EDITOR,!![]),'onBlur':()=>_0xa26886[_0x43f388(0x343)](FOCUSING_PANEL_EDITOR,![])})})]}),jsxs(_0x43f388(0x307),{'className':_0x1a4084,'children':[jsx(_0x43f388(0x617),{'className':_0x13092c,'children':_0x227d14(_0x43f388(0x4d6))}),jsx(_0x43f388(0x307),{'className':_0x43f388(0x47f),'children':jsx(InputNumber,{'className':'univer-w-full','value':_0x3417b3,'disabled':_0x3abf70,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x4b24bc=>_0x4b24bc+'%','parser':_0x196c56=>(_0x196c56===null||_0x196c56===void 0x0?void 0x0:_0x196c56['replace']('%',''))||'','onChange':_0x252e00=>{const _0x2a7f55=_0x43f388,_0x12bdf7=Math[_0x2a7f55(0x455)](0.01,(_0x252e00!==null&&_0x252e00!==void 0x0?_0x252e00:0x64)/0x64);_0x33c90f(_0x12bdf7),_0x53e045({'scaleX':_0x12bdf7}),_0xa26886['setContextValue'](FOCUSING_PANEL_EDITOR,![]);},'onFocus':()=>_0xa26886[_0x43f388(0x343)](FOCUSING_PANEL_EDITOR,!![]),'onBlur':()=>_0xa26886[_0x43f388(0x343)](FOCUSING_PANEL_EDITOR,![])})})]}),jsxs(_0x43f388(0x307),{'className':_0x1a4084,'children':[jsx(_0x43f388(0x617),{'className':_0x13092c,'children':_0x227d14('sheets-shape.fill.picture.scaleY')}),jsx(_0x43f388(0x307),{'className':_0x43f388(0x47f),'children':jsx(InputNumber,{'className':_0x43f388(0x542),'value':_0x1bdb1a,'disabled':_0x3abf70,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x56258b=>_0x56258b+'%','parser':_0xf94c57=>(_0xf94c57===null||_0xf94c57===void 0x0?void 0x0:_0xf94c57[_0x43f388(0x2ab)]('%',''))||'','onChange':_0x8a15de=>{const _0x210bc8=_0x43f388,_0x421001=Math[_0x210bc8(0x455)](0.01,(_0x8a15de!==null&&_0x8a15de!==void 0x0?_0x8a15de:0x64)/0x64);_0x336d5a(_0x421001),_0x53e045({'scaleY':_0x421001}),_0xa26886[_0x210bc8(0x343)](FOCUSING_PANEL_EDITOR,![]);},'onFocus':()=>_0xa26886[_0x43f388(0x343)](FOCUSING_PANEL_EDITOR,!![]),'onBlur':()=>_0xa26886['setContextValue'](FOCUSING_PANEL_EDITOR,![])})})]}),jsxs(_0x43f388(0x307),{'className':_0x1a4084,'children':[jsx('span',{'className':_0x13092c,'children':_0x227d14(_0x43f388(0x1d5))}),jsx(_0x43f388(0x307),{'className':_0x43f388(0x447),'children':jsx(Select,{'className':_0x43f388(0x542),'value':_0xf5a738,'options':_0x37d125,'disabled':_0x3abf70,'onChange':_0x2b9bab=>{_0x52d9d4(_0x2b9bab),_0x53e045({'alignment':_0x2b9bab});}})})]})]}),jsx(Checkbox,{'checked':_0x41422c,'disabled':_0x3abf70,'onChange':_0x5d0ff9=>{_0x305b2a(_0x5d0ff9),_0x2eec8e({'imageRotateWithShape':_0x5d0ff9});},'children':jsx('span',{'className':_0x43f388(0x618),'children':_0x227d14(_0x43f388(0x18a))})})]});}function ShapeFillEditor(_0x1f43e8){const _0x4c3c44=_0x5a2394;var _0xf75095,_0x5242e9,_0x26c236;const _0x3ea7f4=useDependency(LocaleService),_0x497758=useDependency(ICommandService),_0x5a644d=useDependency(IContextService),{shapeData:_0x205a44,isLineShape:_0x33595a,unitId:_0x3f3372,subUnitId:_0x2d86fe,shapeId:_0x3165f2,disableShapeOption:_0x244984}=_0x1f43e8,[_0xdfa678,_0x35a1cf]=useState(((_0xf75095=_0x205a44[_0x4c3c44(0x5fa)])===null||_0xf75095===void 0x0?void 0x0:_0xf75095[_0x4c3c44(0x1aa)])||ShapeFillEnum[_0x4c3c44(0x44e)]),[_0x5a4162,_0x2769fc]=useState(((_0x5242e9=_0x205a44['fill'])===null||_0x5242e9===void 0x0?void 0x0:_0x5242e9[_0x4c3c44(0x5fd)])||ShapeDefaultConfig['fill']),[_0x55004d,_0x56b17d]=useState(((_0x26c236=_0x205a44[_0x4c3c44(0x5fa)])===null||_0x26c236===void 0x0?void 0x0:_0x26c236['opacity'])||0x1),[_0x56c560,_0x53039e]=useState(![]);if(_0x33595a)return null;const _0x3164f0=0x64-_0x55004d*0x64;return jsxs(_0x4c3c44(0x307),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':[jsxs(RadioGroup,{'value':_0xdfa678,'disabled':_0x244984,'onChange':_0x31354a=>{var _0x214e7a;updateShapeData(_0x497758,_0x3f3372,_0x2d86fe,_0x3165f2,{'oldShapeData':{'fill':{'fillType':(_0x214e7a=_0x205a44['fill'])===null||_0x214e7a===void 0x0?void 0x0:_0x214e7a['fillType']}}},{'fill':{'fillType':_0x31354a}}),_0x35a1cf(_0x31354a);},'direction':_0x4c3c44(0x2fa),'children':[jsx(Radio,{'value':ShapeFillEnum[_0x4c3c44(0x321)],'children':jsx(_0x4c3c44(0x617),{'className':_0x4c3c44(0x618),'children':_0x3ea7f4['t'](_0x4c3c44(0x1ff))})}),jsx(Radio,{'value':ShapeFillEnum[_0x4c3c44(0x44e)],'children':jsx(_0x4c3c44(0x617),{'className':'univer-text-sm','children':_0x3ea7f4['t'](_0x4c3c44(0x45e))})}),jsx(Radio,{'value':ShapeFillEnum[_0x4c3c44(0x1d1)],'children':jsx(_0x4c3c44(0x617),{'className':'univer-text-sm','children':_0x3ea7f4['t'](_0x4c3c44(0x361))})}),jsx(Radio,{'value':ShapeFillEnum['PictureFill'],'children':jsx('span',{'className':'univer-text-sm','children':_0x3ea7f4['t'](_0x4c3c44(0x492))})})]}),_0xdfa678===ShapeFillEnum[_0x4c3c44(0x44e)]&&jsxs(_0x4c3c44(0x307),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','children':[jsxs(_0x4c3c44(0x307),{'className':_0x4c3c44(0x470),'children':[jsx(_0x4c3c44(0x617),{'className':_0x4c3c44(0x27f),'children':_0x3ea7f4['t'](_0x4c3c44(0x266))}),jsx(Dropdown,{'disabled':_0x244984,'overlay':jsx('div',{'className':_0x4c3c44(0x3a8),'children':jsx(ColorPicker,{'value':_0x5a4162,'onChange':_0x51f9f5=>{const _0x5e2e0c=_0x4c3c44;var _0x593d3c;updateShapeData(_0x497758,_0x3f3372,_0x2d86fe,_0x3165f2,{'oldShapeData':{'fill':{'color':(_0x593d3c=_0x205a44[_0x5e2e0c(0x5fa)])===null||_0x593d3c===void 0x0?void 0x0:_0x593d3c[_0x5e2e0c(0x5fd)]}}},{'fill':{'color':_0x51f9f5}}),_0x2769fc(_0x51f9f5),_0x53039e(![]);}})}),'open':_0x56c560,'onOpenChange':_0x53039e,'children':jsxs('a',{'className':_0x4c3c44(0x37b),'children':[jsx(PaintBucketDoubleIcon,{'className':_0x4c3c44(0x47e),'extend':{'colorChannel1':_0x5a4162}}),jsx(MoreDownIcon,{'className':clsx('univer-text-gray-600\x20univer-transition-transform',{'univer-rotate-180':_0x56c560})})]})})]}),jsxs(_0x4c3c44(0x307),{'className':_0x4c3c44(0x52a),'children':[jsx(_0x4c3c44(0x617),{'className':_0x4c3c44(0x37c),'children':_0x3ea7f4['t']('sheets-shape.fill.transparency')}),jsx(_0x4c3c44(0x307),{'className':_0x4c3c44(0x2f8),'children':jsx('div',{'className':_0x4c3c44(0x47f),'children':jsx(InputNumber,{'className':_0x4c3c44(0x542),'value':_0x3164f0,'disabled':_0x244984,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x2788d9=>_0x2788d9+'%','parser':_0xf0ba60=>(_0xf0ba60===null||_0xf0ba60===void 0x0?void 0x0:_0xf0ba60[_0x4c3c44(0x2ab)]('%',''))||'','onChange':_0x3f98c8=>{const _0x4e20e6=_0x4c3c44,_0xe8875e=(0x64-Math['max'](0x0,Math['min'](0x64,_0x3f98c8!==null&&_0x3f98c8!==void 0x0?_0x3f98c8:0x0)))/0x64;_0x56b17d(_0xe8875e),updateShapeData(_0x497758,_0x3f3372,_0x2d86fe,_0x3165f2,{'oldShapeData':{'fill':{..._0x205a44[_0x4e20e6(0x5fa)],'fillType':_0xdfa678}}},{'fill':{..._0x205a44['fill'],'fillType':_0xdfa678,'opacity':_0xe8875e}}),_0x5a644d[_0x4e20e6(0x343)](FOCUSING_PANEL_EDITOR,![]);},'onFocus':()=>_0x5a644d[_0x4c3c44(0x343)](FOCUSING_PANEL_EDITOR,!![]),'onBlur':()=>{const _0x185320=_0x4c3c44;_0x5a644d[_0x185320(0x343)](FOCUSING_PANEL_EDITOR,![]);}})})})]})]}),_0xdfa678===ShapeFillEnum[_0x4c3c44(0x1d1)]&&jsx(GradientFillEditor,{'shapeData':_0x205a44,'disableShapeOption':_0x244984,'onUpdate':_0x5674b7=>{const _0x42b33c=_0x4c3c44;updateShapeData(_0x497758,_0x3f3372,_0x2d86fe,_0x3165f2,{'oldShapeData':{'fill':{..._0x205a44[_0x42b33c(0x5fa)]}}},{'fill':{..._0x205a44['fill'],..._0x5674b7}});}}),_0xdfa678===ShapeFillEnum['PictureFill']&&jsx(ShapeImageFillEditor,{'unitId':_0x3f3372,'subUnitId':_0x2d86fe,'shapeId':_0x3165f2,'shapeData':_0x205a44,'disableShapeOption':_0x244984})]});}function shapeGradientTypeToPickerType(_0x2a03c6){const _0xfb21e3=_0x5a2394;switch(_0x2a03c6){case ShapeGradientTypeEnum['Linear']:return _0xfb21e3(0x357);case ShapeGradientTypeEnum[_0xfb21e3(0x565)]:return _0xfb21e3(0x4c5);case ShapeGradientTypeEnum[_0xfb21e3(0x31b)]:return _0xfb21e3(0x305);case ShapeGradientTypeEnum[_0xfb21e3(0x1ce)]:return _0xfb21e3(0x611);default:return _0xfb21e3(0x357);}}function pickerTypeToShapeGradientType(_0x37281a){const _0x384920=_0x5a2394;switch(_0x37281a){case _0x384920(0x357):return ShapeGradientTypeEnum['Linear'];case _0x384920(0x4c5):return ShapeGradientTypeEnum[_0x384920(0x565)];case'angular':return ShapeGradientTypeEnum[_0x384920(0x31b)];case _0x384920(0x611):return ShapeGradientTypeEnum['Diamond'];default:return ShapeGradientTypeEnum[_0x384920(0x563)];}}function GradientFillEditor(_0x18ced5){const _0x2d20a4=_0x5a2394,{shapeData:_0xebff8b,disableShapeOption:_0x47e4f1,onUpdate:_0x1b1a59}=_0x18ced5,_0x52b203=useMemo(()=>{const _0x3d08b3=_0x21c0;var _0x3f3535;const _0x34f9e8=_0xebff8b[_0x3d08b3(0x5fa)];return{'type':shapeGradientTypeToPickerType(_0x34f9e8===null||_0x34f9e8===void 0x0?void 0x0:_0x34f9e8[_0x3d08b3(0x309)]),'angle':(_0x3f3535=_0x34f9e8===null||_0x34f9e8===void 0x0?void 0x0:_0x34f9e8[_0x3d08b3(0x584)])!==null&&_0x3f3535!==void 0x0?_0x3f3535:0x5a,'stops':(_0x34f9e8===null||_0x34f9e8===void 0x0?void 0x0:_0x34f9e8[_0x3d08b3(0x227)])&&_0x34f9e8[_0x3d08b3(0x227)][_0x3d08b3(0x380)]>=0x2?_0x34f9e8[_0x3d08b3(0x227)][_0x3d08b3(0x5b1)](_0x585268=>({'color':_0x585268[_0x3d08b3(0x5fd)],'offset':_0x585268[_0x3d08b3(0x2b9)]*0x64})):[{'color':(_0x34f9e8===null||_0x34f9e8===void 0x0?void 0x0:_0x34f9e8['color'])||_0x3d08b3(0x54c),'offset':0x0},{'color':_0x3d08b3(0x4d3),'offset':0x64}]};},[_0xebff8b[_0x2d20a4(0x5fa)]]),_0x284b5f=_0x5204a1=>{const _0x2f0474=_0x2d20a4,_0x5a1b34=pickerTypeToShapeGradientType(_0x5204a1[_0x2f0474(0x5f9)]),_0xd26939=_0x5204a1[_0x2f0474(0x195)];_0x1b1a59({'gradientType':_0x5a1b34,'gradientAngle':_0xd26939,'gradientStops':_0x5204a1['stops'][_0x2f0474(0x5b1)](_0x2da79c=>({'color':_0x2da79c[_0x2f0474(0x5fd)],'position':_0x2da79c[_0x2f0474(0x1c0)]/0x64}))});};return jsx(_0x2d20a4(0x307),{'className':_0x2d20a4(0x24c),'children':jsx(GradientColorPicker,{'value':_0x52b203,'onChange':_0x284b5f})});}function ShapeLineEditor(_0x3e93a9){const _0x50c3c5=_0x5a2394;var _0x15da36,_0x1ab441,_0xcba693,_0x236dcd,_0x4da8e0,_0x2fa5c,_0x5a04da,_0x23ea4a,_0x528a13,_0x3fe706,_0xe5b469,_0x2536d4,_0x4b6f4b,_0x4d1d60,_0x5dbf0d,_0x3c2b34;const _0x3a6822=useDependency(LocaleService),_0x2f0e4e=useDependency(ICommandService),_0x37dab8=useDependency(IContextService),{shapeData:_0x2fc2aa,isLineShape:_0x307900,unitId:_0xb128fa,subUnitId:_0x945b23,shapeId:_0x1c6761,disableShapeOption:_0x4d81e4}=_0x3e93a9,_0x382765=_0x2fc2aa['stroke'],[_0x47b3af,_0x3622dd]=useState((_0x15da36=_0x382765===null||_0x382765===void 0x0?void 0x0:_0x382765[_0x50c3c5(0x244)])!==null&&_0x15da36!==void 0x0?_0x15da36:ShapeLineTypeEnum[_0x50c3c5(0x4b5)]),[_0x232f32,_0xa4517b]=useState((_0x1ab441=_0x382765===null||_0x382765===void 0x0?void 0x0:_0x382765[_0x50c3c5(0x5fd)])!==null&&_0x1ab441!==void 0x0?_0x1ab441:ShapeDefaultConfig[_0x50c3c5(0x2e2)]),[_0x26c77c,_0x34bfc5]=useState((_0xcba693=_0x382765===null||_0x382765===void 0x0?void 0x0:_0x382765[_0x50c3c5(0x296)])!==null&&_0xcba693!==void 0x0?_0xcba693:0x1),[_0x144828,_0x400c98]=useState((_0x236dcd=_0x382765===null||_0x382765===void 0x0?void 0x0:_0x382765[_0x50c3c5(0x2a5)])!==null&&_0x236dcd!==void 0x0?_0x236dcd:ShapeDefaultConfig['strokeWidth']),[_0x25485e,_0x2ba5d1]=useState((_0x4da8e0=_0x382765===null||_0x382765===void 0x0?void 0x0:_0x382765[_0x50c3c5(0x264)])!==null&&_0x4da8e0!==void 0x0?_0x4da8e0:ShapeLineDashEnum[_0x50c3c5(0x1ea)]),[_0x550656,_0xcfe268]=useState((_0x2fa5c=_0x382765===null||_0x382765===void 0x0?void 0x0:_0x382765['capType'])!==null&&_0x2fa5c!==void 0x0?_0x2fa5c:ShapeLineCapEnum[_0x50c3c5(0x20c)]),[_0x4c3072,_0x325489]=useState((_0x5a04da=_0x382765===null||_0x382765===void 0x0?void 0x0:_0x382765[_0x50c3c5(0x4d0)])!==null&&_0x5a04da!==void 0x0?_0x5a04da:ShapeLineJoinEnum[_0x50c3c5(0x4dd)]),[_0x5c37a8,_0x267c69]=useState((_0x23ea4a=_0x382765===null||_0x382765===void 0x0?void 0x0:_0x382765[_0x50c3c5(0x4b3)])!==null&&_0x23ea4a!==void 0x0?_0x23ea4a:ShapeSketchTypeEnum['None']),_0x3d5d59=_0x2fc2aa,[_0x275bbc,_0x587cc2]=useState((_0x528a13=(_0x3fe706=_0x3d5d59['ln'])===null||_0x3fe706===void 0x0||(_0x3fe706=_0x3fe706['startArrow'])===null||_0x3fe706===void 0x0?void 0x0:_0x3fe706[_0x50c3c5(0x5f9)])!==null&&_0x528a13!==void 0x0?_0x528a13:ShapeArrowTypeEnum['None']),[_0x24cd48,_0x319e78]=useState((_0xe5b469=(_0x2536d4=_0x3d5d59['ln'])===null||_0x2536d4===void 0x0||(_0x2536d4=_0x2536d4[_0x50c3c5(0x25d)])===null||_0x2536d4===void 0x0?void 0x0:_0x2536d4[_0x50c3c5(0x3d0)])!==null&&_0xe5b469!==void 0x0?_0xe5b469:ShapeArrowSizeEnum['Medium']),[_0x591a00,_0x192772]=useState((_0x4b6f4b=(_0x4d1d60=_0x3d5d59['ln'])===null||_0x4d1d60===void 0x0||(_0x4d1d60=_0x4d1d60[_0x50c3c5(0x39b)])===null||_0x4d1d60===void 0x0?void 0x0:_0x4d1d60[_0x50c3c5(0x5f9)])!==null&&_0x4b6f4b!==void 0x0?_0x4b6f4b:ShapeArrowTypeEnum[_0x50c3c5(0x30c)]),[_0x58a9f1,_0x3c48ea]=useState((_0x5dbf0d=(_0x3c2b34=_0x3d5d59['ln'])===null||_0x3c2b34===void 0x0||(_0x3c2b34=_0x3c2b34[_0x50c3c5(0x39b)])===null||_0x3c2b34===void 0x0?void 0x0:_0x3c2b34['size'])!==null&&_0x5dbf0d!==void 0x0?_0x5dbf0d:ShapeArrowSizeEnum[_0x50c3c5(0x218)]),[_0x2d120e,_0xc026bb]=useState(![]),_0x363b16=0x64-_0x26c77c*0x64,_0x53640a=[{'label':_0x3a6822['t']('sheets-shape.line.dashType.solid'),'value':String(ShapeLineDashEnum[_0x50c3c5(0x1ea)])},{'label':_0x3a6822['t'](_0x50c3c5(0x503)),'value':String(ShapeLineDashEnum['RoundDot'])},{'label':_0x3a6822['t']('sheets-shape.line.dashType.squareDot'),'value':String(ShapeLineDashEnum['SquareDot'])},{'label':_0x3a6822['t'](_0x50c3c5(0x557)),'value':String(ShapeLineDashEnum['Dash'])},{'label':_0x3a6822['t'](_0x50c3c5(0x1f0)),'value':String(ShapeLineDashEnum[_0x50c3c5(0x62e)])},{'label':_0x3a6822['t'](_0x50c3c5(0x520)),'value':String(ShapeLineDashEnum[_0x50c3c5(0x20f)])},{'label':_0x3a6822['t'](_0x50c3c5(0x2b2)),'value':String(ShapeLineDashEnum[_0x50c3c5(0x18e)])},{'label':_0x3a6822['t'](_0x50c3c5(0x5b5)),'value':String(ShapeLineDashEnum['LongDashDotDot'])}],_0x13bba7=[{'label':_0x3a6822['t'](_0x50c3c5(0x525)),'value':String(ShapeLineCapEnum[_0x50c3c5(0x20c)])},{'label':_0x3a6822['t'](_0x50c3c5(0x41e)),'value':String(ShapeLineCapEnum['Round'])},{'label':_0x3a6822['t'](_0x50c3c5(0x518)),'value':String(ShapeLineCapEnum[_0x50c3c5(0x5a3)])}],_0x13dc16=[{'label':_0x3a6822['t'](_0x50c3c5(0x30b)),'value':String(ShapeSketchTypeEnum['None'])},{'label':_0x3a6822['t']('sheets-shape.line.sketchType.curved'),'value':String(ShapeSketchTypeEnum['Curved'])},{'label':_0x3a6822['t'](_0x50c3c5(0x2e9)),'value':String(ShapeSketchTypeEnum[_0x50c3c5(0x4bb)])},{'label':_0x3a6822['t'](_0x50c3c5(0x429)),'value':String(ShapeSketchTypeEnum[_0x50c3c5(0x19f)])}],_0x1379eb=[{'label':_0x3a6822['t']('sheets-shape.line.joinType.miter'),'value':String(ShapeLineJoinEnum[_0x50c3c5(0x4dd)])},{'label':_0x3a6822['t']('sheets-shape.line.joinType.round'),'value':String(ShapeLineJoinEnum[_0x50c3c5(0x285)])},{'label':_0x3a6822['t']('sheets-shape.line.joinType.bevel'),'value':String(ShapeLineJoinEnum['Bevel'])}],_0x405005=[{'label':_0x3a6822['t']('sheets-shape.line.arrowType.none'),'value':String(ShapeArrowTypeEnum['None'])},{'label':_0x3a6822['t'](_0x50c3c5(0x52b)),'value':String(ShapeArrowTypeEnum[_0x50c3c5(0x60e)])},{'label':_0x3a6822['t']('sheets-shape.line.arrowType.openArrow'),'value':String(ShapeArrowTypeEnum[_0x50c3c5(0x2bd)])},{'label':_0x3a6822['t'](_0x50c3c5(0x4ee)),'value':String(ShapeArrowTypeEnum[_0x50c3c5(0x1f6)])},{'label':_0x3a6822['t'](_0x50c3c5(0x2f0)),'value':String(ShapeArrowTypeEnum[_0x50c3c5(0x24e)])},{'label':_0x3a6822['t'](_0x50c3c5(0x36f)),'value':String(ShapeArrowTypeEnum['OvalArrow'])}],_0x292880=[{'label':_0x3a6822['t']('sheets-shape.line.arrowSize.small'),'value':String(ShapeArrowSizeEnum[_0x50c3c5(0x2d4)])},{'label':_0x3a6822['t'](_0x50c3c5(0x2ac)),'value':String(ShapeArrowSizeEnum['Medium'])},{'label':_0x3a6822['t']('sheets-shape.line.arrowSize.large'),'value':String(ShapeArrowSizeEnum['Large'])}];return jsxs(_0x50c3c5(0x307),{'className':_0x50c3c5(0x326),'children':[jsxs(RadioGroup,{'value':String(_0x47b3af),'disabled':_0x4d81e4,'onChange':_0x52ae43=>{const _0x4060a6=_0x50c3c5;var _0x20bee7;_0x3622dd(Number(_0x52ae43)),updateShapeData(_0x2f0e4e,_0xb128fa,_0x945b23,_0x1c6761,{'oldShapeData':{'stroke':{'lineStrokeType':(_0x20bee7=_0x2fc2aa['stroke'])===null||_0x20bee7===void 0x0?void 0x0:_0x20bee7[_0x4060a6(0x244)]}}},{'stroke':{'lineStrokeType':Number(_0x52ae43)}});},'direction':_0x50c3c5(0x2fa),'children':[jsx(Radio,{'value':String(ShapeLineTypeEnum[_0x50c3c5(0x544)]),'children':jsx(_0x50c3c5(0x617),{'className':_0x50c3c5(0x618),'children':_0x3a6822['t'](_0x50c3c5(0x3bb))})}),jsx(Radio,{'value':String(ShapeLineTypeEnum[_0x50c3c5(0x4b5)]),'children':jsx(_0x50c3c5(0x617),{'className':_0x50c3c5(0x618),'children':_0x3a6822['t']('sheets-shape.line.solidLine')})})]}),_0x47b3af!==ShapeLineTypeEnum[_0x50c3c5(0x544)]&&jsxs(_0x50c3c5(0x307),{'className':_0x50c3c5(0x292),'children':[jsxs(_0x50c3c5(0x307),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[jsx('span',{'className':_0x50c3c5(0x27f),'children':_0x3a6822['t'](_0x50c3c5(0x4a9))}),jsx(Dropdown,{'disabled':_0x4d81e4,'overlay':jsx(_0x50c3c5(0x307),{'className':_0x50c3c5(0x3a8),'children':jsx(ColorPicker,{'value':_0x232f32,'onChange':_0x507a1b=>{const _0x210626=_0x50c3c5;var _0x5def26;updateShapeData(_0x2f0e4e,_0xb128fa,_0x945b23,_0x1c6761,{'oldShapeData':{'stroke':{'color':(_0x5def26=_0x2fc2aa[_0x210626(0x2e2)])===null||_0x5def26===void 0x0?void 0x0:_0x5def26[_0x210626(0x5fd)]}}},{'stroke':{'color':_0x507a1b}}),_0xa4517b(_0x507a1b),_0xc026bb(![]);}})}),'open':_0x2d120e,'onOpenChange':_0xc026bb,'children':jsxs('a',{'className':'univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1.5\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-2\x20univer-py-1\x20univer-transition-colors\x20hover:univer-border-primary-600\x20hover:univer-bg-gray-100\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','children':[jsx(PaintBucketDoubleIcon,{'className':_0x50c3c5(0x367),'extend':{'colorChannel1':_0x232f32}}),jsx(MoreDownIcon,{'className':clsx('univer-text-gray-600\x20univer-transition-transform',{'univer-rotate-180':_0x2d120e})})]})})]}),jsxs(_0x50c3c5(0x307),{'className':_0x50c3c5(0x52a),'children':[jsx('span',{'className':_0x50c3c5(0x37c),'children':_0x3a6822['t'](_0x50c3c5(0x5f1))}),jsx(_0x50c3c5(0x307),{'className':_0x50c3c5(0x52a),'children':jsx('div',{'className':_0x50c3c5(0x333),'children':jsx(InputNumber,{'className':_0x50c3c5(0x542),'value':_0x363b16,'disabled':_0x4d81e4,'min':0x0,'max':0x64,'formatter':_0x5e0dad=>_0x5e0dad+'%','parser':_0x120d32=>(_0x120d32===null||_0x120d32===void 0x0?void 0x0:_0x120d32[_0x50c3c5(0x2ab)]('%',''))||'','onChange':_0x211e22=>{const _0x1c0800=_0x50c3c5;var _0x20135b;const _0x512490=(0x64-Math['max'](0x0,Math['min'](0x64,_0x211e22!==null&&_0x211e22!==void 0x0?_0x211e22:0x0)))/0x64;_0x34bfc5(_0x512490),updateShapeData(_0x2f0e4e,_0xb128fa,_0x945b23,_0x1c6761,{'oldShapeData':{'stroke':{'opacity':(_0x20135b=_0x2fc2aa[_0x1c0800(0x2e2)])===null||_0x20135b===void 0x0?void 0x0:_0x20135b[_0x1c0800(0x296)]}}},{'stroke':{'opacity':_0x512490}}),_0x37dab8[_0x1c0800(0x343)](FOCUSING_PANEL_EDITOR,![]);},'onFocus':()=>_0x37dab8['setContextValue'](FOCUSING_PANEL_EDITOR,!![]),'onBlur':_0x5f1021=>{const _0x31f643=_0x50c3c5;_0x37dab8[_0x31f643(0x343)](FOCUSING_PANEL_EDITOR,![]);}})})})]}),jsxs(_0x50c3c5(0x307),{'className':_0x50c3c5(0x52a),'children':[jsx('span',{'className':_0x50c3c5(0x27f),'children':_0x3a6822['t'](_0x50c3c5(0x4cf))}),jsx(_0x50c3c5(0x307),{'className':_0x50c3c5(0x47f),'children':jsx(InputNumber,{'className':_0x50c3c5(0x542),'disabled':_0x4d81e4,'value':_0x144828,'min':0.25,'max':0x64,'step':0.25,'formatter':_0x4538f5=>_0x4538f5+_0x50c3c5(0x19d),'parser':_0xba41f=>(_0xba41f===null||_0xba41f===void 0x0?void 0x0:_0xba41f['replace'](_0x50c3c5(0x19d),''))||'','onChange':_0x24e69b=>{const _0x569094=_0x50c3c5;if(!Number['isNaN'](_0x24e69b)&&_0x24e69b!==null){var _0x174bce;updateShapeData(_0x2f0e4e,_0xb128fa,_0x945b23,_0x1c6761,{'oldShapeData':{'stroke':{'width':(_0x174bce=_0x2fc2aa[_0x569094(0x2e2)])===null||_0x174bce===void 0x0?void 0x0:_0x174bce[_0x569094(0x2a5)]}}},{'stroke':{'width':_0x24e69b}});}_0x37dab8[_0x569094(0x343)](FOCUSING_PANEL_EDITOR,![]);},'onFocus':()=>_0x37dab8[_0x50c3c5(0x343)](FOCUSING_PANEL_EDITOR,!![]),'onBlur':_0x458018=>{const _0x13548e=_0x50c3c5;_0x37dab8[_0x13548e(0x343)](FOCUSING_PANEL_EDITOR,![]);}})})]}),jsxs('div',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[jsx('span',{'className':_0x50c3c5(0x27f),'children':_0x3a6822['t'](_0x50c3c5(0x46c))}),jsx(_0x50c3c5(0x307),{'className':'univer-w-28','children':jsx(Select,{'className':_0x50c3c5(0x542),'value':String(_0x25485e),'options':_0x53640a,'disabled':_0x4d81e4,'onChange':_0x26df1b=>{const _0xb9100d=_0x50c3c5;var _0x1d27e0;_0x2ba5d1(Number(_0x26df1b)),updateShapeData(_0x2f0e4e,_0xb128fa,_0x945b23,_0x1c6761,{'oldShapeData':{'stroke':{'dashType':(_0x1d27e0=_0x2fc2aa[_0xb9100d(0x2e2)])===null||_0x1d27e0===void 0x0?void 0x0:_0x1d27e0['dashType']}}},{'stroke':{'dashType':Number(_0x26df1b)}});}})})]}),jsxs(_0x50c3c5(0x307),{'className':_0x50c3c5(0x470),'children':[jsx(_0x50c3c5(0x617),{'className':_0x50c3c5(0x27f),'children':_0x3a6822['t']('sheets-shape.line.capType.title')}),jsx('div',{'className':_0x50c3c5(0x447),'children':jsx(Select,{'className':_0x50c3c5(0x542),'value':String(_0x550656),'options':_0x13bba7,'disabled':_0x4d81e4,'onChange':_0x2b0ecf=>{const _0x48a0c8=_0x50c3c5;var _0x21a149;_0xcfe268(Number(_0x2b0ecf)),updateShapeData(_0x2f0e4e,_0xb128fa,_0x945b23,_0x1c6761,{'oldShapeData':{'stroke':{'capType':(_0x21a149=_0x2fc2aa[_0x48a0c8(0x2e2)])===null||_0x21a149===void 0x0?void 0x0:_0x21a149[_0x48a0c8(0x5b2)]}}},{'stroke':{'capType':Number(_0x2b0ecf)}});}})})]}),jsxs('div',{'className':_0x50c3c5(0x470),'children':[jsx(_0x50c3c5(0x617),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3a6822['t']('sheets-shape.line.joinType.title')}),jsx('div',{'className':_0x50c3c5(0x447),'children':jsx(Select,{'className':_0x50c3c5(0x542),'value':String(_0x4c3072),'options':_0x1379eb,'disabled':_0x4d81e4,'onChange':_0xb1c715=>{const _0xe2b6e2=_0x50c3c5;var _0x8693f1;_0x325489(Number(_0xb1c715)),updateShapeData(_0x2f0e4e,_0xb128fa,_0x945b23,_0x1c6761,{'oldShapeData':{'stroke':{'lineJoinType':(_0x8693f1=_0x2fc2aa[_0xe2b6e2(0x2e2)])===null||_0x8693f1===void 0x0?void 0x0:_0x8693f1[_0xe2b6e2(0x4d0)]}}},{'stroke':{'lineJoinType':Number(_0xb1c715)}});}})})]}),!_0x307900&&jsxs('div',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[jsx(_0x50c3c5(0x617),{'className':_0x50c3c5(0x27f),'children':_0x3a6822['t'](_0x50c3c5(0x48e))}),jsx('div',{'className':_0x50c3c5(0x447),'children':jsx(Select,{'className':_0x50c3c5(0x542),'value':String(_0x5c37a8),'options':_0x13dc16,'disabled':_0x4d81e4,'onChange':_0x15432b=>{const _0x5724e=_0x50c3c5;var _0x2847b6;_0x267c69(Number(_0x15432b)),updateShapeData(_0x2f0e4e,_0xb128fa,_0x945b23,_0x1c6761,{'oldShapeData':{'stroke':{'sketchType':(_0x2847b6=_0x2fc2aa[_0x5724e(0x2e2)])===null||_0x2847b6===void 0x0?void 0x0:_0x2847b6[_0x5724e(0x4b3)]}}},{'stroke':{'sketchType':Number(_0x15432b)}});}})})]}),_0x307900&&jsxs(Fragment,{'children':[jsxs(_0x50c3c5(0x307),{'className':_0x50c3c5(0x470),'children':[jsx(_0x50c3c5(0x617),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3a6822['t'](_0x50c3c5(0x20e))}),jsx(_0x50c3c5(0x307),{'className':_0x50c3c5(0x447),'children':jsx(Select,{'className':_0x50c3c5(0x542),'value':String(_0x275bbc),'options':_0x405005,'onChange':_0xb9ae32=>{const _0x564690=_0x50c3c5;var _0x172ae9;_0x587cc2(Number(_0xb9ae32)),updateLineShapeData(_0x2f0e4e,_0xb128fa,_0x945b23,_0x1c6761,{'oldShapeData':{'ln':{'startArrow':{'type':(_0x172ae9=_0x2fc2aa['ln'])===null||_0x172ae9===void 0x0||(_0x172ae9=_0x172ae9[_0x564690(0x25d)])===null||_0x172ae9===void 0x0?void 0x0:_0x172ae9[_0x564690(0x5f9)]}}}},{'ln':{'startArrow':{'type':Number(_0xb9ae32)}}});}})})]}),jsxs('div',{'className':_0x50c3c5(0x470),'children':[jsx('span',{'className':_0x50c3c5(0x27f),'children':_0x3a6822['t'](_0x50c3c5(0x4b2))}),jsx(_0x50c3c5(0x307),{'className':'univer-w-28','children':jsx(Select,{'className':_0x50c3c5(0x542),'value':String(_0x24cd48),'options':_0x292880,'onChange':_0x3f0bd5=>{const _0x4d1ddf=_0x50c3c5;var _0xde7173;_0x319e78(Number(_0x3f0bd5)),updateLineShapeData(_0x2f0e4e,_0xb128fa,_0x945b23,_0x1c6761,{'oldShapeData':{'ln':{'startArrow':{'size':(_0xde7173=_0x2fc2aa['ln'])===null||_0xde7173===void 0x0||(_0xde7173=_0xde7173[_0x4d1ddf(0x25d)])===null||_0xde7173===void 0x0?void 0x0:_0xde7173[_0x4d1ddf(0x3d0)]}}}},{'ln':{'startArrow':{'size':Number(_0x3f0bd5)}}});}})})]}),jsxs(_0x50c3c5(0x307),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[jsx(_0x50c3c5(0x617),{'className':_0x50c3c5(0x27f),'children':_0x3a6822['t']('sheets-shape.line.endArrowType')}),jsx(_0x50c3c5(0x307),{'className':_0x50c3c5(0x447),'children':jsx(Select,{'className':_0x50c3c5(0x542),'value':String(_0x591a00),'options':_0x405005,'onChange':_0x4818fa=>{const _0xc3c382=_0x50c3c5;var _0x47144b;_0x192772(Number(_0x4818fa)),updateLineShapeData(_0x2f0e4e,_0xb128fa,_0x945b23,_0x1c6761,{'oldShapeData':{'ln':{'endArrow':{'type':(_0x47144b=_0x2fc2aa['ln'])===null||_0x47144b===void 0x0||(_0x47144b=_0x47144b[_0xc3c382(0x39b)])===null||_0x47144b===void 0x0?void 0x0:_0x47144b[_0xc3c382(0x5f9)]}}}},{'ln':{'endArrow':{'type':Number(_0x4818fa)}}});}})})]}),jsxs(_0x50c3c5(0x307),{'className':_0x50c3c5(0x470),'children':[jsx('span',{'className':_0x50c3c5(0x27f),'children':_0x3a6822['t'](_0x50c3c5(0x3b1))}),jsx(_0x50c3c5(0x307),{'className':_0x50c3c5(0x447),'children':jsx(Select,{'className':_0x50c3c5(0x542),'value':String(_0x58a9f1),'options':_0x292880,'onChange':_0x2cf8c6=>{const _0x423aca=_0x50c3c5;var _0x43ca3a;_0x3c48ea(Number(_0x2cf8c6)),updateLineShapeData(_0x2f0e4e,_0xb128fa,_0x945b23,_0x1c6761,{'oldShapeData':{'ln':{'endArrow':{'size':(_0x43ca3a=_0x2fc2aa['ln'])===null||_0x43ca3a===void 0x0||(_0x43ca3a=_0x43ca3a['endArrow'])===null||_0x43ca3a===void 0x0?void 0x0:_0x43ca3a[_0x423aca(0x3d0)]}}}},{'ln':{'endArrow':{'size':Number(_0x2cf8c6)}}});}})})]})]})]})]});}function ShapePositionEditor(){const _0x42162f=_0x5a2394,_0x50eec7=useDependency(IDrawingManagerService),[_0x5e8d71,_0xf33e05]=useState(_0x50eec7[_0x42162f(0x34c)]());useEffect(()=>{const _0x40b8dc=_0x42162f,_0x39892c=_0x50eec7[_0x40b8dc(0x4b8)][_0x40b8dc(0x395)](_0x39a30d=>{_0xf33e05(_0x39a30d);});return()=>{const _0x4b4479=_0x40b8dc;_0x39892c[_0x4b4479(0x593)]();};},[]);if(_0x5e8d71[_0x42162f(0x380)]===0x0)return null;return jsx(_0x42162f(0x307),{'children':jsxs(_0x42162f(0x307),{'className':_0x42162f(0x317),'children':[jsx(DrawingCommonPanel,{'drawings':_0x5e8d71,'hasCropper':![]}),jsx(SheetDrawingAnchor,{'drawings':_0x5e8d71})]})});}function ShapeEditPanel(_0x261377){const _0x47303d=_0x5a2394,{shapeData:_0x33a89c,shapeId:_0x5401e5,shapeType:_0x55f84a,version:_0x2684c4,unitId:_0x4c05fa,subUnitId:_0x1091c0,disableShapeOption:_0x58a5e7}=_0x261377,_0x4fd9e6=useDependency(LocaleService),_0x2d2e8c=isConnectorShape(_0x55f84a),[_0x29e3f8,_0x13a719]=useState(0x0),_0x3bdea8=[{'label':jsx('div',{'children':_0x4fd9e6['t'](_0x47303d(0x2af))}),'children':jsx('section',{'className':_0x47303d(0x362),'children':jsx(ShapeFillEditor,{'shapeId':_0x5401e5,'shapeData':_0x33a89c,'isLineShape':_0x2d2e8c,'subUnitId':_0x1091c0,'unitId':_0x4c05fa,'disableShapeOption':_0x58a5e7},_0x5401e5)})},{'label':jsx('div',{'children':_0x4fd9e6['t'](_0x47303d(0x302))}),'children':jsx(_0x47303d(0x1ee),{'className':_0x47303d(0x362),'children':jsx(ShapeLineEditor,{'shapeId':_0x5401e5,'shapeData':_0x33a89c,'isLineShape':_0x2d2e8c,'subUnitId':_0x1091c0,'unitId':_0x4c05fa,'disableShapeOption':_0x58a5e7},_0x5401e5)})}];return jsxs(_0x47303d(0x307),{'className':_0x47303d(0x1c2),'children':[jsxs('div',{'className':'univer-flex\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200','children':[jsxs('div',{'className':clsx(_0x47303d(0x3d9),_0x29e3f8===0x0?_0x47303d(0x61a):'univer-text-gray-500'),'onClick':()=>_0x13a719(0x0),'children':[_0x4fd9e6['t'](_0x47303d(0x3a3)),jsx(_0x47303d(0x307),{'className':clsx(_0x47303d(0x1a5),{'univer-bg-primary-600':_0x29e3f8===0x0,'univer-bg-transparent':_0x29e3f8!==0x0})})]}),jsxs(_0x47303d(0x307),{'className':clsx(_0x47303d(0x3d9),{'univer-text-primary-600':_0x29e3f8===0x1,'univer-text-gray-500':_0x29e3f8!==0x1}),'onClick':()=>_0x13a719(0x1),'children':[_0x4fd9e6['t']('sheets-shape.shapePosition'),jsx(_0x47303d(0x307),{'className':clsx(_0x47303d(0x3a6),{'univer-bg-primary-600':_0x29e3f8===0x1,'univer-bg-transparent':_0x29e3f8!==0x1})})]})]}),jsx('div',{'className':'univer-flex-1\x20univer-overflow-auto','children':_0x29e3f8===0x0?jsx(_0x47303d(0x307),{'className':'','children':jsx(Accordion,{'items':_0x3bdea8})},_0x2684c4):jsx(ShapePositionEditor,{})})]});}var SheetShapeAdjustPointObject=class extends Shape{constructor(_0x497adf,_0x5be4eb){const _0x4a4f2f=_0x5a2394;super(_0x497adf,_0x5be4eb),_defineProperty(this,'_shapeId',null),_defineProperty(this,'_adjName',null),_defineProperty(this,_0x4a4f2f(0x1fe),null),_defineProperty(this,'_subUnitId',null);if(_0x5be4eb)this[_0x4a4f2f(0x45c)](_0x5be4eb);}[_0x5a2394(0x58b)](){const _0x2f4929=_0x5a2394;return{'unitId':this['_unitId'],'subUnitId':this[_0x2f4929(0x17f)],'drawingId':this[_0x2f4929(0x517)]};}[_0x5a2394(0x45c)](_0x2ed5d6){const _0x53057a=_0x5a2394;if(typeof _0x2ed5d6[_0x53057a(0x35b)]!==_0x53057a(0x446))this[_0x53057a(0x517)]=_0x2ed5d6[_0x53057a(0x35b)];if(typeof _0x2ed5d6[_0x53057a(0x272)]!=='undefined')this[_0x53057a(0x360)]=_0x2ed5d6[_0x53057a(0x272)];if(typeof _0x2ed5d6[_0x53057a(0x221)]!==_0x53057a(0x446))this[_0x53057a(0x1fe)]=_0x2ed5d6[_0x53057a(0x221)];if(typeof _0x2ed5d6[_0x53057a(0x3c7)]!=='undefined')this[_0x53057a(0x17f)]=_0x2ed5d6[_0x53057a(0x3c7)];this[_0x53057a(0x2e5)]({'width':_0x2ed5d6[_0x53057a(0x2a5)],'height':_0x2ed5d6[_0x53057a(0x233)]});}[_0x5a2394(0x4c9)](_0x4a8c14){const _0x667c34=_0x5a2394;Circle[_0x667c34(0x40f)](_0x4a8c14,{'radius':ShapeDefaultConfig['adjHandleSize'],'fill':ShapeDefaultConfig[_0x667c34(0x442)],'stroke':ShapeDefaultConfig[_0x667c34(0x1fd)],'strokeWidth':0x1,'evented':!![]});}};let SheetShapeAdjustController=class SheetShapeAdjustController extends Disposable{constructor(_0x45cfcc,_0x2140af,_0x515496,_0x5c88b6,_0x53d1d7,_0x10679a,_0x267fdf,_0x2faeb9){const _0x564f2f=_0x5a2394;super(),this[_0x564f2f(0x254)]=_0x45cfcc,this[_0x564f2f(0x4a2)]=_0x2140af,this[_0x564f2f(0x482)]=_0x515496,this['_sheetsShapeService']=_0x5c88b6,this[_0x564f2f(0x400)]=_0x53d1d7,this[_0x564f2f(0x4e9)]=_0x10679a,this[_0x564f2f(0x53f)]=_0x267fdf,this[_0x564f2f(0x2c9)]=_0x2faeb9,_defineProperty(this,_0x564f2f(0x379),null),_defineProperty(this,_0x564f2f(0x1fe),null),_defineProperty(this,'_subUnitId',null),_defineProperty(this,_0x564f2f(0x3c5),void 0x0),_defineProperty(this,'_shapes',[]),_defineProperty(this,_0x564f2f(0x20a),0x0),_defineProperty(this,_0x564f2f(0x2de),0x0),_defineProperty(this,'_baseShapeWidth',0x0),_defineProperty(this,_0x564f2f(0x4f0),0x0),_defineProperty(this,'_isStartAdjusting',![]),_defineProperty(this,_0x564f2f(0x458),void 0x0),_defineProperty(this,_0x564f2f(0x578),void 0x0),_defineProperty(this,_0x564f2f(0x18f),void 0x0),_defineProperty(this,_0x564f2f(0x31a),void 0x0),_defineProperty(this,'_isShouldShowDrawingShapeAdjust',![]),this[_0x564f2f(0x2b3)](),this[_0x564f2f(0x3ab)]();}[_0x5a2394(0x5b8)](_0x1feb2f,_0x1f50ea,_0x480fa9){const _0x3e568f=_0x5a2394,_0x2f3a66=this[_0x3e568f(0x539)][_0x3e568f(0x3ae)](_0x1feb2f,_0x1f50ea,_0x480fa9);if(_0x2f3a66)return _0x2f3a66[_0x3e568f(0x1bf)]();}['clearAdjustControls'](){const _0x3b06aa=_0x5a2394;this[_0x3b06aa(0x3de)]();}[_0x5a2394(0x560)](){const _0x55f31d=_0x5a2394;this[_0x55f31d(0x39a)](!![]);}[_0x5a2394(0x546)](_0x6cfe2d){const _0x214909=_0x5a2394;this[_0x214909(0x291)]=_0x6cfe2d;}[_0x5a2394(0x4b0)](_0x1120c0,_0x114c0f,_0x1c103b,_0x58b374){const _0x1221a7=_0x5a2394,_0x467fef=this[_0x1221a7(0x539)][_0x1221a7(0x3ae)](_0x1120c0,_0x114c0f,_0x1c103b);if(_0x467fef)return _0x467fef['getAdjustInfoByName'](_0x58b374);}[_0x5a2394(0x28b)](_0x1f8618=![]){const _0x386746=_0x5a2394;if(this['_unitId']===null||this[_0x386746(0x17f)]===null||this[_0x386746(0x379)]===null)return;const _0x50a40f=this['_renderManagerService'][_0x386746(0x534)](this[_0x386746(0x1fe)]);if(!_0x50a40f)return;if(!_0x50a40f[_0x386746(0x42d)](SheetSkeletonManagerService)['getCurrentSkeleton']())return;const {scene:_0xd7812}=_0x50a40f,_0x266b94={'unitId':this[_0x386746(0x1fe)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x386746(0x379)]},_0x1ddc08=this[_0x386746(0x482)]['getDrawingByParam'](_0x266b94),{transform:_0x48aebb}=_0x1ddc08;if(!_0x48aebb)return;if(_0x1ddc08['drawingType']!==DrawingTypeEnum[_0x386746(0x37f)])return;const {left:_0x2e8220,top:_0x42f643,width:_0x3eda23,height:_0x31c4a1,flipX:_0x189985,flipY:_0x242f08,angle:angle=0x0}=_0x48aebb;if(_0x2e8220===void 0x0||_0x42f643===void 0x0)return;if(_0x1f8618)this['_activeShapeAdjustPointList']=this[_0x386746(0x5b8)](this[_0x386746(0x1fe)],this['_subUnitId'],this[_0x386746(0x379)]);const _0x13f59b=this['_activeShapeAdjustPointList'];for(let _0x4cda02=0x0;_0x4cda02<_0x13f59b['length'];_0x4cda02++){const _0x414827=_0x13f59b[_0x4cda02];let _0x4dbfee=_0x414827['x'],_0x300a3a=_0x414827['y'];if(_0x189985)_0x4dbfee=(_0x3eda23||0x0)-_0x4dbfee;if(_0x242f08)_0x300a3a=(_0x31c4a1||0x0)-_0x300a3a;if(angle!==0x0){const _0x5e7b04=(_0x3eda23||0x0)/0x2,_0x101936=(_0x31c4a1||0x0)/0x2,_0x27d416=angle*Math['PI']/0xb4,_0x50f443=Math['cos'](_0x27d416),_0x357883=Math[_0x386746(0x41c)](_0x27d416),_0x41465a=_0x4dbfee-_0x5e7b04,_0x414293=_0x300a3a-_0x101936;_0x4dbfee=_0x5e7b04+(_0x41465a*_0x50f443-_0x414293*_0x357883),_0x300a3a=_0x101936+(_0x41465a*_0x357883+_0x414293*_0x50f443);}const _0x43438e={'x':_0x4dbfee,'y':_0x300a3a,'adjName':_0x414827[_0x386746(0x272)]};this['_addShapeAdjustControl'](_0xd7812,_0x43438e,_0x43438e[_0x386746(0x272)],_0x2e8220,_0x42f643,this[_0x386746(0x1fe)],this[_0x386746(0x17f)]);}}[_0x5a2394(0x39a)](_0xd67043=![]){const _0x139f7d=_0x5a2394;_0xd67043&&(this[_0x139f7d(0x3de)](),this[_0x139f7d(0x28b)](_0xd67043));}[_0x5a2394(0x1a3)](_0x2af9da,_0x5b1c27,_0x5af31e,_0xeb84b5,_0x40ef23,_0x2e6417,_0x2711ba){const _0x423e84=_0x5a2394;if(!this[_0x423e84(0x379)])return;const _0x5b1184=_0x2af9da[_0x423e84(0x328)](_0x423e84(0x33e)+this['_activeShapeId']+'-'+_0x5af31e);if(_0x5b1184){_0x5b1184[_0x423e84(0x2e5)]({'left':_0x5b1c27['x']+_0xeb84b5-ShapeDefaultConfig[_0x423e84(0x4c6)],'top':_0x5b1c27['y']+_0x40ef23-ShapeDefaultConfig['adjHandleSize']});return;}const _0x8ca9f4={'left':_0x5b1c27['x']+_0xeb84b5-ShapeDefaultConfig[_0x423e84(0x4c6)],'top':_0x5b1c27['y']+_0x40ef23-ShapeDefaultConfig[_0x423e84(0x4c6)],'adjName':_0x5af31e,'shapeId':this[_0x423e84(0x379)],'unitId':_0x2e6417,'subUnitId':_0x2711ba,'width':ShapeDefaultConfig[_0x423e84(0x4c6)]+0x8,'height':ShapeDefaultConfig[_0x423e84(0x4c6)]+0x8,'zIndex':DRAWING_OBJECT_LAYER_INDEX+0x1,'evented':!![]},_0x136701=new SheetShapeAdjustPointObject(_0x423e84(0x33e)+this[_0x423e84(0x379)]+'-'+_0x5af31e,_0x8ca9f4);this[_0x423e84(0x4ef)][_0x423e84(0x646)](_0x136701),this['_attachAdjustEvent'](_0x136701,_0x2af9da,_0x5af31e),_0x2af9da['addObject'](_0x136701,DRAWING_OBJECT_LAYER_INDEX+0x1);}[_0x5a2394(0x3de)](){const _0x90a9f3=_0x5a2394;if(this[_0x90a9f3(0x4ef)]['length']===0x0)return;this[_0x90a9f3(0x4ef)][_0x90a9f3(0x386)](_0x5dc89f=>{const _0x52df23=_0x90a9f3;_0x5dc89f[_0x52df23(0x2cb)]();}),this[_0x90a9f3(0x4ef)]=[];}[_0x5a2394(0x2ee)](){this['_createShapeAdjustControls']();}[_0x5a2394(0x5f7)](_0x4b7e36,_0x3d468e){const _0x38ee4d=_0x5a2394;var _0x8a4dca;const _0x10e3e9={'x':0x0,'y':0x0};if(!_0x4b7e36||!_0x3d468e)return _0x10e3e9;const _0x432f69=this[_0x38ee4d(0x400)][_0x38ee4d(0x534)](_0x4b7e36);if(!_0x432f69)return _0x10e3e9;if(!_0x432f69[_0x38ee4d(0x42d)](SheetSkeletonManagerService)['getSkeleton'](_0x3d468e))return _0x10e3e9;const _0x485137=_0x432f69['with'](SheetScrollManagerService),_0x1ebb74=_0x485137===null||_0x485137===void 0x0?void 0x0:_0x485137[_0x38ee4d(0x3a4)]();if(!_0x1ebb74)return _0x10e3e9;const _0x204fb0=(_0x8a4dca=this[_0x38ee4d(0x53f)]['getUnit'](_0x4b7e36))===null||_0x8a4dca===void 0x0?void 0x0:_0x8a4dca[_0x38ee4d(0x3dd)](_0x3d468e);if(!_0x204fb0)return _0x10e3e9;const _0x584e82=getViewportByCell(_0x1ebb74[_0x38ee4d(0x191)],_0x1ebb74[_0x38ee4d(0x444)],_0x432f69[_0x38ee4d(0x1e3)],_0x204fb0);if(!_0x584e82)return _0x10e3e9;return{'x':_0x584e82[_0x38ee4d(0x5fb)],'y':_0x584e82['viewportScrollY']};}[_0x5a2394(0x52c)](_0x1fc044,_0x4e0f73){const _0x292053=_0x5a2394;var _0x5a0f06,_0x1c4375;const _0x571e31=(_0x5a0f06=this[_0x292053(0x53f)]['getUnit'](_0x1fc044))===null||_0x5a0f06===void 0x0?void 0x0:_0x5a0f06['getSheetBySheetId'](_0x4e0f73);return(_0x1c4375=_0x571e31===null||_0x571e31===void 0x0?void 0x0:_0x571e31[_0x292053(0x279)]())!==null&&_0x1c4375!==void 0x0?_0x1c4375:0x1;}[_0x5a2394(0x2a8)](_0x1cf7f1,_0x5785a4,_0x3e1e12){const _0x5b3f90=_0x5a2394;this[_0x5b3f90(0x1e9)](toDisposable(_0x1cf7f1[_0x5b3f90(0x4b6)]['subscribeEvent']((_0x20af6e,_0xe463e9)=>{const _0x4b376c=_0x5b3f90;var _0x557f98,_0x157972,_0x24e84c,_0x1f67fd;const _0x471e4a=_0x1cf7f1[_0x4b376c(0x58b)]();this[_0x4b376c(0x458)]=this[_0x4b376c(0x4b0)](_0x471e4a[_0x4b376c(0x221)],_0x471e4a[_0x4b376c(0x3c7)],_0x471e4a[_0x4b376c(0x183)],_0x3e1e12),this['_activeShapeModel']=this[_0x4b376c(0x539)][_0x4b376c(0x3ae)](_0x471e4a['unitId'],_0x471e4a[_0x4b376c(0x3c7)],_0x471e4a['drawingId']);const _0x142d43=this['_drawingManagerService'][_0x4b376c(0x590)]({'unitId':this[_0x4b376c(0x1fe)],'subUnitId':this[_0x4b376c(0x17f)],'drawingId':this[_0x4b376c(0x379)]}),{transform:_0x2ede5e}=_0x142d43;if(_0x2ede5e){const {left:_0x19a04b,top:_0x51c2c6,width:_0x6cc1df,height:_0x9c335c}=_0x2ede5e;this[_0x4b376c(0x20a)]=_0x19a04b||0x0,this[_0x4b376c(0x2de)]=_0x51c2c6||0x0,this['_baseShapeWidth']=_0x6cc1df||0x0,this[_0x4b376c(0x4f0)]=_0x9c335c||0x0;}const _0xf3e2d5=Boolean((_0x557f98=_0x142d43[_0x4b376c(0x23f)])===null||_0x557f98===void 0x0?void 0x0:_0x557f98[_0x4b376c(0x1ac)]),_0x50700f=Boolean((_0x157972=_0x142d43[_0x4b376c(0x23f)])===null||_0x157972===void 0x0?void 0x0:_0x157972[_0x4b376c(0x570)]),_0x347431=((_0x24e84c=_0x142d43[_0x4b376c(0x23f)])===null||_0x24e84c===void 0x0?void 0x0:_0x24e84c['angle'])||0x0;this[_0x4b376c(0x654)]=!![],_0x5785a4[_0x4b376c(0x523)]();const _0x5d5459=(_0x1f67fd=this[_0x4b376c(0x578)])===null||_0x1f67fd===void 0x0?void 0x0:_0x1f67fd['getAdjustValueByName'](_0x3e1e12),_0x390184={[_0x3e1e12]:_0x5d5459};this[_0x4b376c(0x18f)]=_0x5785a4[_0x4b376c(0x52f)][_0x4b376c(0x217)]((_0x3c2d5b,_0x37a84d)=>{const _0x504c78=_0x4b376c;if(!this[_0x504c78(0x654)])return;const {offsetX:_0x2a8a47,offsetY:_0x265c24}=_0x3c2d5b,_0x10cb83=this[_0x504c78(0x458)];if(this[_0x504c78(0x578)]&&_0x10cb83){_0x5785a4[_0x504c78(0x523)](),_0x5785a4[_0x504c78(0x1f1)](CURSOR_TYPE['CROSSHAIR']);const _0x585c69={'left':0x0,'top':0x0,'width':this[_0x504c78(0x5d2)],'height':this[_0x504c78(0x4f0)]},_0x304d04=this[_0x504c78(0x5f7)](this[_0x504c78(0x1fe)],this[_0x504c78(0x17f)]),_0x5552b1=this[_0x504c78(0x52c)](this['_unitId'],this[_0x504c78(0x17f)]);let _0x619c45=_0x2a8a47/_0x5552b1+_0x304d04['x']-this['_baseShapeLeft'],_0x1a7b32=_0x265c24/_0x5552b1+_0x304d04['y']-this['_baseShapeTop'];if(_0x347431!==0x0){const _0xed6b69=this[_0x504c78(0x5d2)]/0x2,_0x52f391=this[_0x504c78(0x4f0)]/0x2,_0x499b36=_0x347431*Math['PI']/0xb4,_0x4553de=Math[_0x504c78(0x422)](_0x499b36),_0xbb4c20=Math['sin'](_0x499b36),_0x2308ea=_0x619c45-_0xed6b69,_0x1ee2c0=_0x1a7b32-_0x52f391;_0x619c45=_0xed6b69+(_0x2308ea*_0x4553de+_0x1ee2c0*_0xbb4c20),_0x1a7b32=_0x52f391+(-_0x2308ea*_0xbb4c20+_0x1ee2c0*_0x4553de);}if(_0xf3e2d5)_0x619c45=this[_0x504c78(0x5d2)]-_0x619c45;if(_0x50700f)_0x1a7b32=this[_0x504c78(0x4f0)]-_0x1a7b32;const _0x525452={'x':_0x619c45,'y':_0x1a7b32},_0x222b7e=this['_activeShapeModel']['calcAdjValue'](_0x585c69,_0x525452,_0x10cb83,_0xf3e2d5,_0x50700f),_0x5be07c=_0x10cb83[_0x504c78(0x627)]||_0x10cb83['gdRefY']||_0x10cb83['gdRefAng']||_0x10cb83[_0x504c78(0x642)];if(_0x5be07c===void 0x0)return;this[_0x504c78(0x578)][_0x504c78(0x3d4)](_0x5be07c,_0x222b7e);const _0x4a48ef=this[_0x504c78(0x482)][_0x504c78(0x590)]({'unitId':_0x471e4a[_0x504c78(0x221)],'subUnitId':_0x471e4a['subUnitId'],'drawingId':_0x471e4a[_0x504c78(0x183)]});_0x4a48ef&&(this[_0x504c78(0x4e9)][_0x504c78(0x51e)](_0x4a48ef,_0x5785a4),this['_activeShapeAdjustPointList']=this[_0x504c78(0x5b8)](_0x471e4a[_0x504c78(0x221)],_0x471e4a[_0x504c78(0x3c7)],_0x471e4a['drawingId']),this[_0x504c78(0x2ee)]());}_0x37a84d[_0x504c78(0x562)]();}),this[_0x4b376c(0x31a)]=_0x5785a4[_0x4b376c(0x60b)][_0x4b376c(0x217)]((_0x2dd3eb,_0x388586)=>{const _0x225531=_0x4b376c;this[_0x225531(0x18f)][_0x225531(0x593)](),this[_0x225531(0x31a)][_0x225531(0x593)](),_0x5785a4[_0x225531(0x4f3)]();const _0x398831=this[_0x225531(0x458)];if(_0x398831){const _0x5bef2d=_0x471e4a['unitId'],_0x36ffb6=_0x471e4a['subUnitId'],_0x5ac3a0=_0x471e4a[_0x225531(0x183)],_0x4eb758=_0x398831[_0x225531(0x627)]||_0x398831['gdRefY']||_0x398831[_0x225531(0x1af)]||_0x398831[_0x225531(0x642)];if(_0x4eb758!==void 0x0){var _0x1455d8;const _0xd2ae96=(_0x1455d8=this[_0x225531(0x578)])===null||_0x1455d8===void 0x0?void 0x0:_0x1455d8[_0x225531(0x2d7)](_0x4eb758);if(_0xd2ae96!==void 0x0)updateShapeData(this[_0x225531(0x2c9)],_0x5bef2d,_0x36ffb6,_0x5ac3a0,{'oldShapeData':{'adjustValues':_0x390184}},{'adjustValues':{[_0x4eb758]:_0xd2ae96}});}}this[_0x225531(0x458)]=void 0x0,this[_0x225531(0x578)]=void 0x0,this[_0x225531(0x654)]=![],_0x388586['stopPropagation'](),_0x5785a4[_0x225531(0x2d6)]();}),_0xe463e9[_0x4b376c(0x562)]();})));}[_0x5a2394(0x3ab)](){const _0x233e44=_0x5a2394,_0x252c3c=this['_univerInstanceService'][_0x233e44(0x3b9)](UniverInstanceType[_0x233e44(0x533)]);this[_0x233e44(0x1e9)](_0x252c3c[_0x233e44(0x573)](switchMap(_0x5b70f3=>{const _0x456c17=_0x233e44;if(!_0x5b70f3)return EMPTY;return _0x5b70f3[_0x456c17(0x370)][_0x456c17(0x573)](switchMap(_0x21cd0d=>{const _0x37d3cd=_0x456c17;if(!_0x21cd0d)return EMPTY;const _0x362766=_0x5b70f3['getUnitId'](),_0x4925fe=this[_0x37d3cd(0x400)][_0x37d3cd(0x534)](_0x362766),_0x253a26=_0x4925fe===null||_0x4925fe===void 0x0?void 0x0:_0x4925fe[_0x37d3cd(0x1e3)];if(!_0x253a26)return EMPTY;return of(_0x253a26);}));}))[_0x233e44(0x395)](_0x3841e9=>{const _0x31df17=_0x233e44,_0x4e5eb4=_0x3841e9[_0x31df17(0x5ef)]();this[_0x31df17(0x1e9)](_0x3841e9[_0x31df17(0x52f)]['subscribeEvent'](()=>{const _0x59abb6=_0x31df17;if(this[_0x59abb6(0x291)]){}})),this[_0x31df17(0x1e9)](_0x4e5eb4['changeStart$'][_0x31df17(0x395)](_0x57ac12=>{const _0xa28700=_0x31df17,{objects:_0x32856c}=_0x57ac12;this[_0xa28700(0x28b)]();if(_0x32856c!==null&&_0x32856c[_0xa28700(0x3d0)]===0x1){if(_0x32856c[_0xa28700(0x282)]()[_0xa28700(0x5b4)]()[_0xa28700(0x3ff)]instanceof DrawingShape)this[_0xa28700(0x546)](!![]);}})),this[_0x31df17(0x1e9)](_0x4e5eb4[_0x31df17(0x3e0)][_0x31df17(0x395)](()=>{const _0x40d946=_0x31df17;if(this[_0x40d946(0x291)])this[_0x40d946(0x3de)]();})),this[_0x31df17(0x1e9)](_0x3841e9[_0x31df17(0x60b)][_0x31df17(0x217)](()=>{const _0x6c687c=_0x31df17;this['_isShouldShowDrawingShapeAdjust']&&(this['setShouldShowAdjust'](![]),this[_0x6c687c(0x28b)]());})),this['disposeWithMe'](_0x4e5eb4[_0x31df17(0x397)][_0x31df17(0x395)](()=>{const _0x174043=_0x31df17;this[_0x174043(0x1fe)]&&this[_0x174043(0x17f)]&&this[_0x174043(0x379)]&&(this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x174043(0x1fe)],'subUnitId':this[_0x174043(0x17f)],'drawingId':this['_activeShapeId']})&&(this[_0x174043(0x3c5)]=this['_getShapeAdjustPointListById'](this[_0x174043(0x1fe)],this[_0x174043(0x17f)],this[_0x174043(0x379)]),this['_updateAdjustControlPositions']()));}));}));}[_0x5a2394(0x2b3)](){const _0x3ea23f=_0x5a2394;this['disposeWithMe'](this['_drawingManagerService'][_0x3ea23f(0x4b8)]['subscribe'](_0x12a866=>{const _0x30536c=_0x3ea23f;if(_0x12a866[_0x30536c(0x380)]===0x1){const _0x52cdf4=_0x12a866[0x0];if(_0x52cdf4[_0x30536c(0x561)]===DrawingTypeEnum['DRAWING_SHAPE']){this[_0x30536c(0x379)]=_0x52cdf4['drawingId'];const {unitId:_0xfe2432,subUnitId:_0x4d07e9}=_0x52cdf4;this['_activeShapeAdjustPointList']=this[_0x30536c(0x5b8)](_0xfe2432,_0x4d07e9,this[_0x30536c(0x379)]),this[_0x30536c(0x1fe)]=_0xfe2432,this[_0x30536c(0x17f)]=_0x4d07e9,this[_0x30536c(0x3de)](),this[_0x30536c(0x28b)]();}else this[_0x30536c(0x379)]=null,this[_0x30536c(0x3c5)]=void 0x0,this['_unitId']=null,this[_0x30536c(0x17f)]=null,this[_0x30536c(0x3de)]();}(_0x12a866[_0x30536c(0x380)]>0x1||_0x12a866[_0x30536c(0x380)]===0x0)&&(this[_0x30536c(0x379)]=null,this[_0x30536c(0x3c5)]=void 0x0,this['_unitId']=null,this[_0x30536c(0x17f)]=null,this[_0x30536c(0x3de)]());})),this['disposeWithMe'](this['_drawingManagerService'][_0x3ea23f(0x3aa)][_0x3ea23f(0x395)](_0x48725b=>{const _0x32dd8d=_0x3ea23f;if(_0x48725b[_0x32dd8d(0x380)]===0x1){var _0x205b42;const _0x2742aa=_0x48725b[0x0];if(((_0x205b42=this[_0x32dd8d(0x482)]['getDrawingByParam'](_0x2742aa))===null||_0x205b42===void 0x0?void 0x0:_0x205b42['drawingType'])===DrawingTypeEnum[_0x32dd8d(0x37f)])this['_updateShapeAdjustControls'](!![]);}})),this[_0x3ea23f(0x1e9)](this[_0x3ea23f(0x482)][_0x3ea23f(0x383)][_0x3ea23f(0x395)](_0xd0f921=>{const _0x460ba7=_0x3ea23f;for(const _0x34e97f of _0xd0f921)this['_activeShapeId']===_0x34e97f[_0x460ba7(0x183)]&&(this[_0x460ba7(0x379)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x460ba7(0x1fe)]=null,this[_0x460ba7(0x17f)]=null,this[_0x460ba7(0x3de)]());}));}};SheetShapeAdjustController=__decorate([__decorateParam(0x1,IContextService),__decorateParam(0x2,IDrawingManagerService),__decorateParam(0x3,Inject(SheetsShapeService)),__decorateParam(0x4,Inject(IRenderManagerService)),__decorateParam(0x5,Inject(SheetDrawingShapeRenderController)),__decorateParam(0x6,IUniverInstanceService),__decorateParam(0x7,ICommandService)],SheetShapeAdjustController);const ActiveDrawingSelectedOperation={'id':_0x5a2394(0x443),'type':CommandType[_0x5a2394(0x56f)],'handler':(_0x502f3a,_0x229539)=>{const _0x18c9a1=_0x5a2394,_0x22647a=_0x502f3a[_0x18c9a1(0x359)](IDrawingManagerService),_0x4fc223=_0x502f3a[_0x18c9a1(0x359)](IRenderManagerService),_0x128bd9=_0x502f3a[_0x18c9a1(0x359)](SheetShapeAdjustController);if(_0x229539==null)return!![];if(_0x229539[_0x18c9a1(0x380)]>0x0){var _0x2a3065;const _0x5f03aa=(_0x2a3065=_0x4fc223[_0x18c9a1(0x534)](_0x229539[0x0][_0x18c9a1(0x221)]))===null||_0x2a3065===void 0x0?void 0x0:_0x2a3065[_0x18c9a1(0x1e3)];if(_0x5f03aa){const {unitId:_0x28d150,subUnitId:_0x1a0e40,drawingId:_0x800ab5}=_0x229539[0x0],_0x454dda=getDrawingShapeKeyByDrawingSearch({'unitId':_0x28d150,'subUnitId':_0x1a0e40,'drawingId':_0x800ab5},void 0x0),_0x4345b2=_0x5f03aa[_0x18c9a1(0x328)](_0x454dda);if(_0x4345b2){var _0x2d353b;(_0x2d353b=_0x4fc223[_0x18c9a1(0x534)](_0x229539[0x0]['unitId']))===null||_0x2d353b===void 0x0||(_0x2d353b=_0x2d353b['scene'][_0x18c9a1(0x633)]())===null||_0x2d353b===void 0x0||_0x2d353b[_0x18c9a1(0x44b)](_0x4345b2);}}_0x22647a[_0x18c9a1(0x281)](_0x229539),_0x128bd9['setShouldShowAdjust'](![]);}return!![];}},MenuInsertShapeCommand={'type':CommandType[_0x5a2394(0x46b)],'id':'sheet.command.menu-insert-shape','handler':async(_0x14d547,_0x934291)=>{const _0x27911e=_0x5a2394,_0x169395=getSheetCommandTarget(_0x14d547[_0x27911e(0x359)](IUniverInstanceService));if(!_0x169395)return![];const _0xf327cf=_0x14d547[_0x27911e(0x359)](SheetsSelectionsService)[_0x27911e(0x44d)]();if(!_0xf327cf)return![];const _0x3c0383=_0x14d547[_0x27911e(0x359)](ICommandService),{unitId:_0x5368be,subUnitId:_0x3702e3}=_0x169395,{value:_0x5adbdf,enhanceParams:_0x5bea18}=_0x934291,{range:_0x5897f6}=_0xf327cf,_0x3ae3a1={'unitId':_0x5368be,'subUnitId':_0x3702e3,'shapeType':_0x5adbdf,'range':_0x5897f6,'shapeId':generateRandomId()};if(_0x5bea18){const _0x48de59=isConnectorShape(_0x5adbdf),_0x39a230=_0x5adbdf===ShapeTypeEnum['Rect'];if(_0x48de59&&(_0x5bea18['startArrow']||_0x5bea18[_0x27911e(0x39b)]))_0x3ae3a1[_0x27911e(0x2fc)]={'ln':{'startArrow':_0x5bea18[_0x27911e(0x25d)]?{'type':ShapeArrowTypeEnum[_0x27911e(0x60e)],'size':ShapeArrowSizeEnum[_0x27911e(0x218)]}:void 0x0,'endArrow':_0x5bea18[_0x27911e(0x39b)]?{'type':ShapeArrowTypeEnum[_0x27911e(0x60e)],'size':ShapeArrowSizeEnum[_0x27911e(0x5da)]}:void 0x0}};if(_0x39a230&&(_0x5bea18[_0x27911e(0x480)]||_0x5bea18['vertical']))_0x3ae3a1[_0x27911e(0x2fc)]={'fill':{'fillType':ShapeFillEnum[_0x27911e(0x44e)],'color':'#FFFFFF'},'stroke':{'lineStrokeType':ShapeLineTypeEnum[_0x27911e(0x4b5)],'width':0x1,'color':_0x27911e(0x632)},'shapeText':{'isHorizontal':!!_0x5bea18[_0x27911e(0x480)]}};}const _0xce72f6=_0x3c0383[_0x27911e(0x430)](InsertShapeCommand['id'],_0x3ae3a1);return setTimeout(()=>{const _0x3b790d=_0x27911e;_0x3c0383['executeCommand'](ActiveDrawingSelectedOperation['id'],[{'unitId':_0x5368be,'subUnitId':_0x3702e3,'drawingId':_0x3ae3a1[_0x3b790d(0x35b)]}]);},0xc8),_0xce72f6;}};let ImageShapeClipController=class ImageShapeClipController extends Disposable{constructor(_0x24cfb9,_0xf4a498){const _0x245ad5=_0x5a2394;super(),this[_0x245ad5(0x2e4)]=_0x24cfb9,this[_0x245ad5(0x482)]=_0xf4a498,this['_registerImageShapeClipDelegate'](),this[_0x245ad5(0x2e4)][_0x245ad5(0x1a9)](!![]),this[_0x245ad5(0x1e9)]({'dispose':()=>this[_0x245ad5(0x2e4)][_0x245ad5(0x1a9)](![])});}[_0x5a2394(0x5c3)](){const _0x415ac8=_0x5a2394,_0xf82895=this[_0x415ac8(0x2e4)],_0x367979=new Map(),_0x546be1=_0xf82895[_0x415ac8(0x408)]((_0x4b8733,_0x442721,_0x204f58,_0x234f6c,_0x669112)=>{const _0x2514e2=_0x415ac8,_0x50eaaa=_0x442721;if(_0x50eaaa===ShapeTypeEnum['None']||_0x442721===_0x2514e2(0x346))return![];try{let _0x517900=_0x367979[_0x2514e2(0x359)](_0x442721);!_0x517900&&(_0x517900=new ShapeModel(_0x50eaaa,_0x2514e2(0x515)+_0x442721),_0x367979[_0x2514e2(0x303)](_0x442721,_0x517900));if(_0x669112)_0x517900['setShapeData']({'adjustValues':_0x669112},!![]);return _0x517900[_0x2514e2(0x58a)]({'width':_0x204f58,'height':_0x234f6c}),_0x517900[_0x2514e2(0x507)](_0x4b8733,{'left':0x0,'top':0x0,'width':_0x204f58,'height':_0x234f6c});}catch{return![];}});this[_0x415ac8(0x1e9)](_0x546be1),this[_0x415ac8(0x1e9)]({'dispose':()=>_0x367979[_0x415ac8(0x38b)]()});}[_0x5a2394(0x5ee)](_0x992b48,_0x100f2a,_0x222738,_0x43d056,_0x4b3714){const _0x28cf7a=_0x5a2394,_0x85244c=this[_0x28cf7a(0x482)][_0x28cf7a(0x260)](_0x992b48,_0x100f2a);if(!_0x85244c[_0x222738])return;const _0x17296c={..._0x85244c[_0x222738],'prstGeom':_0x43d056,'adjustValues':_0x4b3714};this[_0x28cf7a(0x482)][_0x28cf7a(0x1c5)]([_0x17296c]);}};ImageShapeClipController=__decorate([__decorateParam(0x0,Inject(DrawingImageClipService)),__decorateParam(0x1,Inject(IDrawingManagerService))],ImageShapeClipController);let ShapeGroupEnum=function(_0x7504a0){const _0x37adbc=_0x5a2394;return _0x7504a0[_0x37adbc(0x255)]=_0x37adbc(0x55c),_0x7504a0[_0x37adbc(0x4d9)]=_0x37adbc(0x26a),_0x7504a0[_0x37adbc(0x5ae)]=_0x37adbc(0x243),_0x7504a0[_0x37adbc(0x3fd)]=_0x37adbc(0x462),_0x7504a0[_0x37adbc(0x464)]=_0x37adbc(0x522),_0x7504a0[_0x37adbc(0x3da)]=_0x37adbc(0x39e),_0x7504a0[_0x37adbc(0x414)]=_0x37adbc(0x2d8),_0x7504a0[_0x37adbc(0x5b9)]=_0x37adbc(0x2a0),_0x7504a0['Other']=_0x37adbc(0x40a),_0x7504a0;}({});const shapeTypeOptions=[{'group':ShapeGroupEnum[_0x5a2394(0x255)],'type':ShapeTypeEnum[_0x5a2394(0x255)],'icon':_0x5a2394(0x3f9),'name':_0x5a2394(0x63e)},{'group':ShapeGroupEnum[_0x5a2394(0x255)],'type':ShapeTypeEnum['StraightConnector1'],'icon':_0x5a2394(0x23a),'name':_0x5a2394(0x39f),'endArrow':!![]},{'group':ShapeGroupEnum['Line'],'type':ShapeTypeEnum[_0x5a2394(0x185)],'icon':_0x5a2394(0x216),'name':_0x5a2394(0x2df),'endArrow':!![],'startArrow':!![]},{'group':ShapeGroupEnum[_0x5a2394(0x255)],'type':ShapeTypeEnum[_0x5a2394(0x5c0)],'icon':_0x5a2394(0x5a2),'name':_0x5a2394(0x43b)},{'group':ShapeGroupEnum[_0x5a2394(0x255)],'type':ShapeTypeEnum[_0x5a2394(0x5c0)],'icon':'ShapeBentConnector3Arrow1Icon','name':'shape.type.bent-connector3-arrow1','endArrow':!![]},{'group':ShapeGroupEnum[_0x5a2394(0x255)],'type':ShapeTypeEnum[_0x5a2394(0x5c0)],'icon':_0x5a2394(0x56c),'name':_0x5a2394(0x5d3),'endArrow':!![],'startArrow':!![]},{'group':ShapeGroupEnum[_0x5a2394(0x255)],'type':ShapeTypeEnum[_0x5a2394(0x336)],'icon':_0x5a2394(0x350),'name':_0x5a2394(0x35a)},{'group':ShapeGroupEnum[_0x5a2394(0x255)],'type':ShapeTypeEnum['CurvedConnector3'],'icon':_0x5a2394(0x206),'name':_0x5a2394(0x32b),'endArrow':!![]},{'group':ShapeGroupEnum['Line'],'type':ShapeTypeEnum[_0x5a2394(0x336)],'icon':_0x5a2394(0x4a6),'name':_0x5a2394(0x4fc),'endArrow':!![],'startArrow':!![]},{'group':ShapeGroupEnum[_0x5a2394(0x4d9)],'type':ShapeTypeEnum[_0x5a2394(0x5bc)],'icon':'ShapeRectIcon','name':_0x5a2394(0x365)},{'group':ShapeGroupEnum[_0x5a2394(0x4d9)],'type':ShapeTypeEnum[_0x5a2394(0x541)],'icon':'ShapeRoundRectIcon','name':_0x5a2394(0x59b)},{'group':ShapeGroupEnum[_0x5a2394(0x4d9)],'type':ShapeTypeEnum[_0x5a2394(0x22e)],'icon':'ShapeSnip1RectIcon','name':_0x5a2394(0x41d)},{'group':ShapeGroupEnum[_0x5a2394(0x4d9)],'type':ShapeTypeEnum[_0x5a2394(0x2f6)],'icon':'ShapeSnip2SameRectIcon','name':_0x5a2394(0x3d1)},{'group':ShapeGroupEnum[_0x5a2394(0x4d9)],'type':ShapeTypeEnum[_0x5a2394(0x4c4)],'icon':'ShapeSnip2DiagRectIcon','name':_0x5a2394(0x5fc)},{'group':ShapeGroupEnum[_0x5a2394(0x4d9)],'type':ShapeTypeEnum[_0x5a2394(0x355)],'icon':_0x5a2394(0x566),'name':_0x5a2394(0x373)},{'group':ShapeGroupEnum[_0x5a2394(0x4d9)],'type':ShapeTypeEnum['Round1Rect'],'icon':_0x5a2394(0x644),'name':_0x5a2394(0x354)},{'group':ShapeGroupEnum[_0x5a2394(0x4d9)],'type':ShapeTypeEnum[_0x5a2394(0x45f)],'icon':_0x5a2394(0x585),'name':_0x5a2394(0x3ea)},{'group':ShapeGroupEnum[_0x5a2394(0x4d9)],'type':ShapeTypeEnum[_0x5a2394(0x626)],'icon':_0x5a2394(0x579),'name':_0x5a2394(0x574)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x5bc)],'icon':_0x5a2394(0x48c),'name':_0x5a2394(0x334),'horizontal':!![]},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x5bc)],'icon':_0x5a2394(0x5ad),'name':_0x5a2394(0x410),'vertical':!![]},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x5a0)],'icon':_0x5a2394(0x289),'name':_0x5a2394(0x613)},{'group':ShapeGroupEnum['BasicShape'],'type':ShapeTypeEnum[_0x5a2394(0x256)],'icon':_0x5a2394(0x3f3),'name':'shape.type.triangle'},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum['RightTriangle'],'icon':_0x5a2394(0x228),'name':_0x5a2394(0x29c)},{'group':ShapeGroupEnum['BasicShape'],'type':ShapeTypeEnum[_0x5a2394(0x1f8)],'icon':_0x5a2394(0x22b),'name':_0x5a2394(0x60c)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum['Trapezoid'],'icon':_0x5a2394(0x610),'name':'shape.type.trapezoid'},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x1ce)],'icon':_0x5a2394(0x4ad),'name':'shape.type.diamond'},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x4ce)],'icon':_0x5a2394(0x286),'name':_0x5a2394(0x1cf)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum['Hexagon'],'icon':_0x5a2394(0x64c),'name':_0x5a2394(0x4c3)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x5ff)],'icon':_0x5a2394(0x3b3),'name':'shape.type.heptagon'},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x4e0)],'icon':_0x5a2394(0x521),'name':_0x5a2394(0x33b)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x5f2)],'icon':_0x5a2394(0x39c),'name':_0x5a2394(0x1de)},{'group':ShapeGroupEnum['BasicShape'],'type':ShapeTypeEnum[_0x5a2394(0x33d)],'icon':_0x5a2394(0x640),'name':_0x5a2394(0x1dd)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x64d)],'icon':_0x5a2394(0x288),'name':'shape.type.pie'},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x3f6)],'icon':_0x5a2394(0x478),'name':_0x5a2394(0x23d)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x407)],'icon':_0x5a2394(0x605),'name':'shape.type.teardrop'},{'group':ShapeGroupEnum['BasicShape'],'type':ShapeTypeEnum['Frame'],'icon':_0x5a2394(0x2d9),'name':_0x5a2394(0x24d)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x4bd)],'icon':'ShapeHalfFrameIcon','name':'shape.type.half-frame'},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum['Corner'],'icon':'ShapeCornerIcon','name':_0x5a2394(0x3ed)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x42b)],'icon':_0x5a2394(0x2a2),'name':'shape.type.diag-stripe'},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x1d7)],'icon':_0x5a2394(0x5a7),'name':_0x5a2394(0x4ab)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum['Plaque'],'icon':_0x5a2394(0x322),'name':_0x5a2394(0x5b0)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x193)],'icon':_0x5a2394(0x1a1),'name':_0x5a2394(0x190)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x624)],'icon':_0x5a2394(0x62c),'name':_0x5a2394(0x3ad)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x339)],'icon':_0x5a2394(0x18c),'name':_0x5a2394(0x471)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x1b6)],'icon':_0x5a2394(0x4a0),'name':_0x5a2394(0x64e)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum['NoSmoking'],'icon':_0x5a2394(0x30d),'name':'shape.type.no-smoking'},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x52d)],'icon':'ShapeBlockArcIcon','name':_0x5a2394(0x4df)},{'group':ShapeGroupEnum['BasicShape'],'type':ShapeTypeEnum[_0x5a2394(0x620)],'icon':'ShapeFolderCornerIcon','name':_0x5a2394(0x456)},{'group':ShapeGroupEnum['BasicShape'],'type':ShapeTypeEnum['SmileyFace'],'icon':_0x5a2394(0x5a4),'name':_0x5a2394(0x232)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x220)],'icon':'ShapeHeartIcon','name':_0x5a2394(0x524)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x262)],'icon':_0x5a2394(0x30e),'name':'shape.type.lightning-bolt'},{'group':ShapeGroupEnum['BasicShape'],'type':ShapeTypeEnum['Sun'],'icon':_0x5a2394(0x335),'name':'shape.type.sun'},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x615)],'icon':_0x5a2394(0x5aa),'name':_0x5a2394(0x653)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x543)],'icon':_0x5a2394(0x5d4),'name':_0x5a2394(0x1d3)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum['Arc'],'icon':_0x5a2394(0x454),'name':_0x5a2394(0x235)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x496)],'icon':'ShapeBracketPairIcon','name':_0x5a2394(0x54e)},{'group':ShapeGroupEnum['BasicShape'],'type':ShapeTypeEnum[_0x5a2394(0x502)],'icon':_0x5a2394(0x3bf),'name':_0x5a2394(0x2cc)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x3c1)],'icon':_0x5a2394(0x2ea),'name':_0x5a2394(0x4cb)},{'group':ShapeGroupEnum['BasicShape'],'type':ShapeTypeEnum[_0x5a2394(0x3a9)],'icon':_0x5a2394(0x57b),'name':_0x5a2394(0x1a8)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum['LeftBrace'],'icon':_0x5a2394(0x51b),'name':_0x5a2394(0x602)},{'group':ShapeGroupEnum[_0x5a2394(0x5ae)],'type':ShapeTypeEnum[_0x5a2394(0x3dc)],'icon':'ShapeRightBraceIcon','name':_0x5a2394(0x2a1)},{'group':ShapeGroupEnum[_0x5a2394(0x3fd)],'type':ShapeTypeEnum[_0x5a2394(0x41f)],'icon':_0x5a2394(0x532),'name':_0x5a2394(0x31c)},{'group':ShapeGroupEnum[_0x5a2394(0x3fd)],'type':ShapeTypeEnum[_0x5a2394(0x3f8)],'icon':_0x5a2394(0x490),'name':_0x5a2394(0x224)},{'group':ShapeGroupEnum[_0x5a2394(0x3fd)],'type':ShapeTypeEnum[_0x5a2394(0x53a)],'icon':_0x5a2394(0x55d),'name':_0x5a2394(0x231)},{'group':ShapeGroupEnum[_0x5a2394(0x3fd)],'type':ShapeTypeEnum[_0x5a2394(0x36a)],'icon':_0x5a2394(0x540),'name':_0x5a2394(0x4cc)},{'group':ShapeGroupEnum[_0x5a2394(0x3fd)],'type':ShapeTypeEnum[_0x5a2394(0x59d)],'icon':_0x5a2394(0x463),'name':_0x5a2394(0x33a)},{'group':ShapeGroupEnum['BlockArrow'],'type':ShapeTypeEnum[_0x5a2394(0x450)],'icon':_0x5a2394(0x376),'name':_0x5a2394(0x63d)},{'group':ShapeGroupEnum['BlockArrow'],'type':ShapeTypeEnum[_0x5a2394(0x1c7)],'icon':_0x5a2394(0x4fb),'name':_0x5a2394(0x27e)},{'group':ShapeGroupEnum['BlockArrow'],'type':ShapeTypeEnum['LeftRightUpArrow'],'icon':_0x5a2394(0x556),'name':_0x5a2394(0x2be)},{'group':ShapeGroupEnum['BlockArrow'],'type':ShapeTypeEnum['BentArrow'],'icon':_0x5a2394(0x62d),'name':'shape.type.bent-arrow'},{'group':ShapeGroupEnum[_0x5a2394(0x3fd)],'type':ShapeTypeEnum[_0x5a2394(0x184)],'icon':_0x5a2394(0x5f5),'name':_0x5a2394(0x1c3)},{'group':ShapeGroupEnum[_0x5a2394(0x3fd)],'type':ShapeTypeEnum['LeftUpArrow'],'icon':'ShapeLeftUpArrowIcon','name':'shape.type.left-up-arrow'},{'group':ShapeGroupEnum[_0x5a2394(0x3fd)],'type':ShapeTypeEnum[_0x5a2394(0x3fe)],'icon':_0x5a2394(0x1fb),'name':_0x5a2394(0x5be)},{'group':ShapeGroupEnum[_0x5a2394(0x3fd)],'type':ShapeTypeEnum[_0x5a2394(0x488)],'icon':_0x5a2394(0x3be),'name':_0x5a2394(0x427)},{'group':ShapeGroupEnum['BlockArrow'],'type':ShapeTypeEnum['CurvedLeftArrow'],'icon':_0x5a2394(0x63b),'name':_0x5a2394(0x3d5)},{'group':ShapeGroupEnum[_0x5a2394(0x3fd)],'type':ShapeTypeEnum['CurvedUpArrow'],'icon':_0x5a2394(0x59c),'name':'shape.type.curved-up-arrow'},{'group':ShapeGroupEnum[_0x5a2394(0x3fd)],'type':ShapeTypeEnum['CurvedDownArrow'],'icon':_0x5a2394(0x4f1),'name':_0x5a2394(0x1d9)},{'group':ShapeGroupEnum['BlockArrow'],'type':ShapeTypeEnum[_0x5a2394(0x2dd)],'icon':_0x5a2394(0x2c7),'name':_0x5a2394(0x1ba)},{'group':ShapeGroupEnum[_0x5a2394(0x3fd)],'type':ShapeTypeEnum[_0x5a2394(0x1b9)],'icon':_0x5a2394(0x48b),'name':_0x5a2394(0x554)},{'group':ShapeGroupEnum[_0x5a2394(0x3fd)],'type':ShapeTypeEnum[_0x5a2394(0x38c)],'icon':'ShapeHomePlateIcon','name':_0x5a2394(0x519)},{'group':ShapeGroupEnum[_0x5a2394(0x3fd)],'type':ShapeTypeEnum[_0x5a2394(0x53c)],'icon':_0x5a2394(0x5cf),'name':_0x5a2394(0x26c)},{'group':ShapeGroupEnum['BlockArrow'],'type':ShapeTypeEnum[_0x5a2394(0x270)],'icon':_0x5a2394(0x4cd),'name':'shape.type.right-arrow-callout'},{'group':ShapeGroupEnum['BlockArrow'],'type':ShapeTypeEnum['DownArrowCallout'],'icon':_0x5a2394(0x510),'name':_0x5a2394(0x32c)},{'group':ShapeGroupEnum[_0x5a2394(0x3fd)],'type':ShapeTypeEnum[_0x5a2394(0x608)],'icon':_0x5a2394(0x21b),'name':_0x5a2394(0x61f)},{'group':ShapeGroupEnum[_0x5a2394(0x3fd)],'type':ShapeTypeEnum[_0x5a2394(0x28c)],'icon':_0x5a2394(0x320),'name':_0x5a2394(0x18b)},{'group':ShapeGroupEnum[_0x5a2394(0x3fd)],'type':ShapeTypeEnum['LeftRightArrowCallout'],'icon':_0x5a2394(0x423),'name':_0x5a2394(0x21d)},{'group':ShapeGroupEnum[_0x5a2394(0x3fd)],'type':ShapeTypeEnum['QuadArrowCallout'],'icon':'ShapeQuadArrowCalloutIcon','name':_0x5a2394(0x5e3)},{'group':ShapeGroupEnum[_0x5a2394(0x3fd)],'type':ShapeTypeEnum['CircularArrow'],'icon':_0x5a2394(0x3fc),'name':_0x5a2394(0x1be)},{'group':ShapeGroupEnum[_0x5a2394(0x464)],'type':ShapeTypeEnum[_0x5a2394(0x594)],'icon':'ShapeMathPlusIcon','name':_0x5a2394(0x398)},{'group':ShapeGroupEnum[_0x5a2394(0x464)],'type':ShapeTypeEnum[_0x5a2394(0x3eb)],'icon':'ShapeMathMinusIcon','name':'shape.type.math-minus'},{'group':ShapeGroupEnum[_0x5a2394(0x464)],'type':ShapeTypeEnum[_0x5a2394(0x494)],'icon':_0x5a2394(0x28e),'name':_0x5a2394(0x2fe)},{'group':ShapeGroupEnum['EquationShape'],'type':ShapeTypeEnum[_0x5a2394(0x5e5)],'icon':_0x5a2394(0x2c6),'name':_0x5a2394(0x299)},{'group':ShapeGroupEnum['EquationShape'],'type':ShapeTypeEnum['MathEqual'],'icon':'ShapeMathEqualIcon','name':_0x5a2394(0x2fb)},{'group':ShapeGroupEnum[_0x5a2394(0x464)],'type':ShapeTypeEnum[_0x5a2394(0x40b)],'icon':_0x5a2394(0x1f5),'name':_0x5a2394(0x364)},{'group':ShapeGroupEnum['Flowchart'],'type':ShapeTypeEnum[_0x5a2394(0x399)],'icon':_0x5a2394(0x5ac),'name':_0x5a2394(0x46e)},{'group':ShapeGroupEnum[_0x5a2394(0x3da)],'type':ShapeTypeEnum['FlowchartAlternateProcess'],'icon':_0x5a2394(0x616),'name':_0x5a2394(0x2f9)},{'group':ShapeGroupEnum[_0x5a2394(0x3da)],'type':ShapeTypeEnum[_0x5a2394(0x213)],'icon':_0x5a2394(0x238),'name':_0x5a2394(0x1ec)},{'group':ShapeGroupEnum[_0x5a2394(0x3da)],'type':ShapeTypeEnum[_0x5a2394(0x4f9)],'icon':'ShapeFlowChartInputOutputIcon','name':_0x5a2394(0x5ed)},{'group':ShapeGroupEnum[_0x5a2394(0x3da)],'type':ShapeTypeEnum[_0x5a2394(0x283)],'icon':_0x5a2394(0x3b5),'name':'shape.type.flow-chart-predefined-process'},{'group':ShapeGroupEnum[_0x5a2394(0x3da)],'type':ShapeTypeEnum[_0x5a2394(0x188)],'icon':_0x5a2394(0x598),'name':_0x5a2394(0x2f2)},{'group':ShapeGroupEnum['Flowchart'],'type':ShapeTypeEnum[_0x5a2394(0x440)],'icon':_0x5a2394(0x345),'name':_0x5a2394(0x250)},{'group':ShapeGroupEnum[_0x5a2394(0x3da)],'type':ShapeTypeEnum[_0x5a2394(0x583)],'icon':_0x5a2394(0x356),'name':'shape.type.flow-chart-multidocument'},{'group':ShapeGroupEnum[_0x5a2394(0x3da)],'type':ShapeTypeEnum['FlowchartTerminator'],'icon':_0x5a2394(0x511),'name':_0x5a2394(0x2ba)},{'group':ShapeGroupEnum['Flowchart'],'type':ShapeTypeEnum[_0x5a2394(0x3b2)],'icon':_0x5a2394(0x2aa),'name':_0x5a2394(0x274)},{'group':ShapeGroupEnum['Flowchart'],'type':ShapeTypeEnum[_0x5a2394(0x3af)],'icon':_0x5a2394(0x405),'name':'shape.type.flow-chart-manual-input'},{'group':ShapeGroupEnum['Flowchart'],'type':ShapeTypeEnum[_0x5a2394(0x5ab)],'icon':_0x5a2394(0x413),'name':'shape.type.flow-chart-manual-operation'},{'group':ShapeGroupEnum['Flowchart'],'type':ShapeTypeEnum['FlowchartConnector'],'icon':_0x5a2394(0x435),'name':_0x5a2394(0x3b4)},{'group':ShapeGroupEnum['Flowchart'],'type':ShapeTypeEnum['FlowchartOffPageConnector'],'icon':_0x5a2394(0x4e3),'name':'shape.type.flow-chart-offpage-connector'},{'group':ShapeGroupEnum[_0x5a2394(0x3da)],'type':ShapeTypeEnum[_0x5a2394(0x374)],'icon':_0x5a2394(0x449),'name':'shape.type.flow-chart-punched-card'},{'group':ShapeGroupEnum['Flowchart'],'type':ShapeTypeEnum[_0x5a2394(0x269)],'icon':'ShapeFlowChartPunchedTapeIcon','name':_0x5a2394(0x332)},{'group':ShapeGroupEnum['Flowchart'],'type':ShapeTypeEnum[_0x5a2394(0x4dc)],'icon':'ShapeFlowChartSummingJunctionIcon','name':_0x5a2394(0x591)},{'group':ShapeGroupEnum[_0x5a2394(0x3da)],'type':ShapeTypeEnum['FlowchartOr'],'icon':_0x5a2394(0x3ee),'name':_0x5a2394(0x297)},{'group':ShapeGroupEnum[_0x5a2394(0x3da)],'type':ShapeTypeEnum['FlowchartCollate'],'icon':_0x5a2394(0x315),'name':_0x5a2394(0x43f)},{'group':ShapeGroupEnum['Flowchart'],'type':ShapeTypeEnum[_0x5a2394(0x222)],'icon':_0x5a2394(0x1b2),'name':_0x5a2394(0x5dc)},{'group':ShapeGroupEnum[_0x5a2394(0x3da)],'type':ShapeTypeEnum[_0x5a2394(0x2fd)],'icon':'ShapeFlowChartExtractIcon','name':_0x5a2394(0x229)},{'group':ShapeGroupEnum[_0x5a2394(0x3da)],'type':ShapeTypeEnum[_0x5a2394(0x5c4)],'icon':_0x5a2394(0x614),'name':_0x5a2394(0x479)},{'group':ShapeGroupEnum[_0x5a2394(0x3da)],'type':ShapeTypeEnum['FlowchartOnlineStorage'],'icon':'ShapeFlowChartOnlineStorageIcon','name':_0x5a2394(0x3fa)},{'group':ShapeGroupEnum[_0x5a2394(0x3da)],'type':ShapeTypeEnum[_0x5a2394(0x48f)],'icon':_0x5a2394(0x390),'name':_0x5a2394(0x18d)},{'group':ShapeGroupEnum[_0x5a2394(0x3da)],'type':ShapeTypeEnum[_0x5a2394(0x3b8)],'icon':'ShapeFlowChartMagneticTapeIcon','name':_0x5a2394(0x3ef)},{'group':ShapeGroupEnum['Flowchart'],'type':ShapeTypeEnum[_0x5a2394(0x187)],'icon':_0x5a2394(0x5e4),'name':_0x5a2394(0x340)},{'group':ShapeGroupEnum['Flowchart'],'type':ShapeTypeEnum['FlowchartMagneticDrum'],'icon':_0x5a2394(0x2f5),'name':_0x5a2394(0x56d)},{'group':ShapeGroupEnum['Flowchart'],'type':ShapeTypeEnum[_0x5a2394(0x5bf)],'icon':_0x5a2394(0x259),'name':_0x5a2394(0x5e2)},{'group':ShapeGroupEnum[_0x5a2394(0x414)],'type':ShapeTypeEnum['IrregularSeal1'],'icon':'ShapeIrregularSeal1Icon','name':_0x5a2394(0x42a)},{'group':ShapeGroupEnum[_0x5a2394(0x414)],'type':ShapeTypeEnum['IrregularSeal2'],'icon':_0x5a2394(0x32d),'name':_0x5a2394(0x1fa)},{'group':ShapeGroupEnum[_0x5a2394(0x414)],'type':ShapeTypeEnum[_0x5a2394(0x467)],'icon':'ShapeStar4Icon','name':_0x5a2394(0x2c8)},{'group':ShapeGroupEnum['StarAndBanner'],'type':ShapeTypeEnum['Star5'],'icon':_0x5a2394(0x197),'name':'shape.type.star5'},{'group':ShapeGroupEnum[_0x5a2394(0x414)],'type':ShapeTypeEnum['Star6'],'icon':_0x5a2394(0x202),'name':_0x5a2394(0x650)},{'group':ShapeGroupEnum[_0x5a2394(0x414)],'type':ShapeTypeEnum['Star7'],'icon':'ShapeStar7Icon','name':_0x5a2394(0x498)},{'group':ShapeGroupEnum['StarAndBanner'],'type':ShapeTypeEnum[_0x5a2394(0x582)],'icon':_0x5a2394(0x23c),'name':_0x5a2394(0x499)},{'group':ShapeGroupEnum[_0x5a2394(0x414)],'type':ShapeTypeEnum[_0x5a2394(0x1c6)],'icon':'ShapeStar10Icon','name':_0x5a2394(0x553)},{'group':ShapeGroupEnum[_0x5a2394(0x414)],'type':ShapeTypeEnum[_0x5a2394(0x59e)],'icon':_0x5a2394(0x600),'name':_0x5a2394(0x53b)},{'group':ShapeGroupEnum[_0x5a2394(0x414)],'type':ShapeTypeEnum['Star16'],'icon':_0x5a2394(0x1cc),'name':_0x5a2394(0x431)},{'group':ShapeGroupEnum[_0x5a2394(0x414)],'type':ShapeTypeEnum[_0x5a2394(0x3db)],'icon':_0x5a2394(0x247),'name':_0x5a2394(0x3f5)},{'group':ShapeGroupEnum['StarAndBanner'],'type':ShapeTypeEnum['Star32'],'icon':'ShapeStar32Icon','name':_0x5a2394(0x261)},{'group':ShapeGroupEnum[_0x5a2394(0x414)],'type':ShapeTypeEnum['Ribbon2'],'icon':_0x5a2394(0x5ec),'name':_0x5a2394(0x5fe)},{'group':ShapeGroupEnum[_0x5a2394(0x414)],'type':ShapeTypeEnum[_0x5a2394(0x639)],'icon':_0x5a2394(0x56e),'name':_0x5a2394(0x236)},{'group':ShapeGroupEnum[_0x5a2394(0x414)],'type':ShapeTypeEnum[_0x5a2394(0x5f4)],'icon':_0x5a2394(0x300),'name':_0x5a2394(0x545)},{'group':ShapeGroupEnum[_0x5a2394(0x414)],'type':ShapeTypeEnum[_0x5a2394(0x2a3)],'icon':_0x5a2394(0x63a),'name':'shape.type.ellipse-ribbon'},{'group':ShapeGroupEnum[_0x5a2394(0x414)],'type':ShapeTypeEnum[_0x5a2394(0x44f)],'icon':_0x5a2394(0x28a),'name':_0x5a2394(0x485)},{'group':ShapeGroupEnum[_0x5a2394(0x414)],'type':ShapeTypeEnum[_0x5a2394(0x4d5)],'icon':_0x5a2394(0x28d),'name':'shape.type.horizontal-scroll'},{'group':ShapeGroupEnum['StarAndBanner'],'type':ShapeTypeEnum[_0x5a2394(0x512)],'icon':_0x5a2394(0x1c1),'name':_0x5a2394(0x19e)},{'group':ShapeGroupEnum['StarAndBanner'],'type':ShapeTypeEnum[_0x5a2394(0x35c)],'icon':_0x5a2394(0x606),'name':_0x5a2394(0x5c7)},{'group':ShapeGroupEnum[_0x5a2394(0x5b9)],'type':ShapeTypeEnum[_0x5a2394(0x4f7)],'icon':_0x5a2394(0x44a),'name':_0x5a2394(0x5e8)},{'group':ShapeGroupEnum[_0x5a2394(0x5b9)],'type':ShapeTypeEnum[_0x5a2394(0x1f2)],'icon':'ShapeWedgeRoundRectCalloutIcon','name':'shape.type.wedge-round-rect-callout'},{'group':ShapeGroupEnum[_0x5a2394(0x5b9)],'type':ShapeTypeEnum['WedgeEllipseCallout'],'icon':_0x5a2394(0x64a),'name':_0x5a2394(0x1a6)},{'group':ShapeGroupEnum['Callout'],'type':ShapeTypeEnum[_0x5a2394(0x629)],'icon':_0x5a2394(0x434),'name':_0x5a2394(0x53e)},{'group':ShapeGroupEnum[_0x5a2394(0x5b9)],'type':ShapeTypeEnum[_0x5a2394(0x32a)],'icon':_0x5a2394(0x621),'name':_0x5a2394(0x1a4)},{'group':ShapeGroupEnum['Callout'],'type':ShapeTypeEnum[_0x5a2394(0x4de)],'icon':_0x5a2394(0x4ae),'name':_0x5a2394(0x5eb)},{'group':ShapeGroupEnum[_0x5a2394(0x5b9)],'type':ShapeTypeEnum[_0x5a2394(0x2bf)],'icon':_0x5a2394(0x402),'name':'shape.type.border-callout3'},{'group':ShapeGroupEnum[_0x5a2394(0x5b9)],'type':ShapeTypeEnum[_0x5a2394(0x3b0)],'icon':_0x5a2394(0x2b0),'name':_0x5a2394(0x3a5)},{'group':ShapeGroupEnum[_0x5a2394(0x5b9)],'type':ShapeTypeEnum[_0x5a2394(0x49f)],'icon':_0x5a2394(0x1e5),'name':_0x5a2394(0x2b7)},{'group':ShapeGroupEnum[_0x5a2394(0x5b9)],'type':ShapeTypeEnum[_0x5a2394(0x2ec)],'icon':_0x5a2394(0x4ec),'name':_0x5a2394(0x1b1)},{'group':ShapeGroupEnum['Callout'],'type':ShapeTypeEnum[_0x5a2394(0x38e)],'icon':'ShapeCallout1Icon','name':_0x5a2394(0x487)},{'group':ShapeGroupEnum['Callout'],'type':ShapeTypeEnum[_0x5a2394(0x457)],'icon':_0x5a2394(0x529),'name':'shape.type.callout2'},{'group':ShapeGroupEnum[_0x5a2394(0x5b9)],'type':ShapeTypeEnum[_0x5a2394(0x293)],'icon':_0x5a2394(0x57a),'name':_0x5a2394(0x19a)},{'group':ShapeGroupEnum[_0x5a2394(0x5b9)],'type':ShapeTypeEnum[_0x5a2394(0x401)],'icon':'ShapeAccentBorderCallout1Icon','name':_0x5a2394(0x1e0)},{'group':ShapeGroupEnum[_0x5a2394(0x5b9)],'type':ShapeTypeEnum[_0x5a2394(0x419)],'icon':_0x5a2394(0x2b5),'name':'shape.type.accent-border-callout2'},{'group':ShapeGroupEnum[_0x5a2394(0x5b9)],'type':ShapeTypeEnum[_0x5a2394(0x587)],'icon':'ShapeAccentBorderCallout3Icon','name':_0x5a2394(0x481)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum[_0x5a2394(0x1e8)],'icon':_0x5a2394(0x4a3),'name':'shape.type.left-circular-arrow'},{'group':ShapeGroupEnum['Other'],'type':ShapeTypeEnum[_0x5a2394(0x5e0)],'icon':'ShapeLeftRightCircularArrowIcon','name':_0x5a2394(0x36e)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum[_0x5a2394(0x1b8)],'icon':_0x5a2394(0x1a0),'name':_0x5a2394(0x599)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum[_0x5a2394(0x3e4)],'icon':_0x5a2394(0x657),'name':_0x5a2394(0x5a8)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum['PieWedge'],'icon':_0x5a2394(0x1ab),'name':_0x5a2394(0x192)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum[_0x5a2394(0x2ad)],'icon':'ShapeFunnelIcon','name':_0x5a2394(0x4af)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum[_0x5a2394(0x389)],'icon':'ShapeGear6Icon','name':_0x5a2394(0x497)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum[_0x5a2394(0x589)],'icon':_0x5a2394(0x273),'name':_0x5a2394(0x387)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum['CornerTabs'],'icon':_0x5a2394(0x1bb),'name':'shape.type.corner-tabs'},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum['ActionButtonBackPrevious'],'icon':_0x5a2394(0x181),'name':'shape.type.action-button-back-previous'},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum[_0x5a2394(0x651)],'icon':'ShapeActionButtonForwardNextIcon','name':_0x5a2394(0x301)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum[_0x5a2394(0x50b)],'icon':_0x5a2394(0x3ba),'name':_0x5a2394(0x4f5)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum['ActionButtonEnd'],'icon':'ShapeActionButtonEndIcon','name':_0x5a2394(0x567)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum[_0x5a2394(0x5ca)],'icon':_0x5a2394(0x3c0),'name':'shape.type.action-button-home'},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum[_0x5a2394(0x1a2)],'icon':_0x5a2394(0x3fb),'name':'shape.type.action-button-information'},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum['ActionButtonReturn'],'icon':_0x5a2394(0x5bd),'name':_0x5a2394(0x35d)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum[_0x5a2394(0x3e1)],'icon':_0x5a2394(0x21c),'name':_0x5a2394(0x349)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum[_0x5a2394(0x659)],'icon':_0x5a2394(0x33f),'name':_0x5a2394(0x4a1)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum['ActionButtonSound'],'icon':_0x5a2394(0x4f8),'name':_0x5a2394(0x393)},{'group':ShapeGroupEnum['Other'],'type':ShapeTypeEnum['ActionButtonHelp'],'icon':_0x5a2394(0x196),'name':_0x5a2394(0x1b0)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum['ActionButtonBlank'],'icon':_0x5a2394(0x24b),'name':'shape.type.action-button-blank'},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum['ChartPlus'],'icon':'ShapeChartPlusIcon','name':_0x5a2394(0x483)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum[_0x5a2394(0x358)],'icon':_0x5a2394(0x5db),'name':_0x5a2394(0x3df)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum[_0x5a2394(0x1e2)],'icon':_0x5a2394(0x65a),'name':_0x5a2394(0x1cd)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum[_0x5a2394(0x21f)],'icon':_0x5a2394(0x189),'name':_0x5a2394(0x294)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum[_0x5a2394(0x65d)],'icon':_0x5a2394(0x2bb),'name':_0x5a2394(0x21a)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum[_0x5a2394(0x280)],'icon':'ShapePlaqueTabsIcon','name':'shape.type.plaque-tabs'},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum[_0x5a2394(0x43d)],'icon':'ShapeSquareTabsIcon','name':_0x5a2394(0x4fd)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum[_0x5a2394(0x4c0)],'icon':_0x5a2394(0x353),'name':_0x5a2394(0x2c0)},{'group':ShapeGroupEnum[_0x5a2394(0x453)],'type':ShapeTypeEnum[_0x5a2394(0x466)],'icon':_0x5a2394(0x3d6),'name':'shape.type.non-isosceles-trapezoid'}],SHAPE_PICKER_COMPONENT=_0x5a2394(0x49e);function ShapePickerComponent({onShapeClick:_0x3c1cea,excludeGroups:_0x3c4766}){const _0x20fa61=_0x5a2394,_0x376a99=useDependency(LocaleService),_0x143299=useDependency(ComponentManager),_0x58ba11=(_0x3c4766?shapeTypeOptions[_0x20fa61(0x56b)](_0x52d879=>!_0x3c4766[_0x20fa61(0x3c9)](_0x52d879['group'])):shapeTypeOptions)['reduce']((_0x2f2408,_0x4acce2)=>{const _0x5293bb=_0x20fa61;if(!_0x2f2408[_0x4acce2[_0x5293bb(0x475)]])_0x2f2408[_0x4acce2[_0x5293bb(0x475)]]=[];return _0x2f2408[_0x4acce2[_0x5293bb(0x475)]][_0x5293bb(0x646)](_0x4acce2),_0x2f2408;},{});return jsx(_0x20fa61(0x307),{'className':_0x20fa61(0x5c6),'children':Object[_0x20fa61(0x416)](_0x58ba11)[_0x20fa61(0x5b1)](([_0xb7fbf2,_0x1a4acc])=>jsxs(_0x20fa61(0x307),{'className':'univer-mb-2','children':[jsx('div',{'className':_0x20fa61(0x3bd),'children':_0x376a99['t'](_0x20fa61(0x3cb)+_0xb7fbf2)}),jsx(_0x20fa61(0x307),{'className':'univer-grid\x20univer-grid-cols-10\x20univer-gap-1','children':_0x1a4acc[_0x20fa61(0x5b1)](_0x36fd25=>{const _0x2636f1=_0x20fa61,_0x10bbc9=_0x143299[_0x2636f1(0x359)](_0x36fd25[_0x2636f1(0x5ce)]);return jsx(_0x2636f1(0x307),{'title':_0x376a99['t'](_0x36fd25[_0x2636f1(0x369)]),'onClick':()=>_0x3c1cea(_0x36fd25),'className':_0x2636f1(0x4bf),'children':_0x10bbc9&&jsx(_0x10bbc9,{'className':'univer-size-full'})},_0x36fd25['name']);})})]},_0xb7fbf2))});}function _0x33b4(){const _0x2625b2=['shape.type.wedge-rect-callout','_sidebarDisposable','displayName','shape.type.border-callout2','ShapeRibbon2Icon','shape.type.flow-chart-input-output','clipByShape','getTransformerByCreate','_drawingType','sheets-shape.line.transparency','Decagon','_handleFreeEndpointPointerUp','EllipseRibbon2','ShapeUturnArrowIcon','calcAdjValue','_getScrollInfo','packageName','type','fill','viewportScrollX','shape.type.snip2-diag-rect','color','shape.type.ribbon2','Heptagon','ShapeStar12Icon','ShapeFlowChartOnlineStorageIcon','shape.type.left-brace','object','targetShapeId','ShapeTeardropIcon','ShapeDoubleWaveIcon','setOnSavingEditorData','LeftArrowCallout','sheets-shape.openPanel','string','onPointerUp$','shape.type.parallelogram','executeCommand','Arrow','skeleton','ShapeTrapezoidIcon','diamond','Stretch','shape.type.ellipse','ShapeFlowChartMergeIcon','Moon','ShapeFlowChartAlternateProcessIcon','span','univer-text-sm','getDocumentData','univer-text-primary-600','paragraphStyle','Image','@univerjs-pro/sheets-shape-ui','getContextValue','shape.type.left-arrow-callout','FoldedCorner','ShapeBorderCallout1Icon','DRAWING_IMAGE','clip-adj-','Cube','univer-flex\x20univer-flex-col\x20univer-gap-2','Round2DiagRect','gdRefX','getSkeleton','CloudCallout','src','_initMenu','ShapeCubeIcon','ShapeBentArrowIcon','DashDot','_rerouteConnectorLine','imageTile','_executeConnectionCommand','#bcbcbc','getTransformer','viewBound','_findShapeAtPoint','ShapeQuadArrowCalloutIcon','setPrstGeom','_isDrawingShapePointDown','Ribbon','ShapeEllipseRibbonIcon','ShapeCurvedLeftArrowIcon','registerFeatureMenuOffset','shape.type.up-down-arrow','shape.type.line','deepClone','ShapeDodecagonIcon','_drawingRenderService','gdRefR','image-panel.crop.shape','ShapeRound1RectIcon','clone','push','_shapeTextEditingService','ShapePlaqueTabsIcon','_generatePasteMutations','ShapeWedgeEllipseCalloutIcon','getMatrix','ShapeHexagonIcon','Pie','shape.type.donut','updateShapeFillImage','shape.type.star6','ActionButtonForwardNext','adjustValues','shape.type.moon','_isStartAdjusting','_baseDrawingRect','prstGeomAdjValues','ShapeLeftRightRibbonIcon','getOwnPropertyDescriptor','ActionButtonDocument','ShapeChartXIcon','sheets-shape.fill.transparency','getShapeTypeById','LineInv','_subUnitId','setTimeout','ShapeActionButtonBackPreviousIcon','_copyInfo','drawingId','UturnArrow','StraightConnector1','strokeWidth','FlowchartMagneticDisk','FlowchartInternalStorage','ShapeFlowChartOfflineStorageIcon','sheets-shape.fill.picture.rotateWithShape','shape.type.up-arrow-callout','ShapeBevelIcon','shape.type.flow-chart-delay','LongDashDot','_adjHandlerPointerMove','shape.type.can','sheetViewStartRow','shape.type.pie-wedge','Can','_currentScene','angle','ShapeActionButtonHelpIcon','ShapeStar5Icon','1771812bONwIp','RightJustifyingIcon','shape.type.callout3','registerCommand','editorHeight','\x20px','shape.type.wave','HandDrawn','ShapeSwooshArrowIcon','ShapeCanIcon','ActionButtonInformation','_addShapeAdjustControl','shape.type.border-callout1','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md','shape.type.wedge-ellipse-callout','_isHighlighted','shape.type.right-bracket','setCanUseShapeClip','fillType','ShapePieWedgeIcon','flipX','sheet.command.set-shape-text-font-size','image/*','gdRefAng','shape.type.action-button-help','shape.type.accent-callout3','ShapeFlowChartSortIcon','LEFT','getSkeletonParam','_handleFreeEndpointMove','Donut','render','SwooshArrow','NotchedRightArrow','shape.type.striped-right-arrow','ShapeCornerTabsIcon','ShapeSnip1RectIcon','floor','shape.type.circular-arrow','getDrawingPoints','offset','ShapeWaveIcon','univer-size-full','shape.type.uturn-arrow','start','featurePluginUpdateNotification','Star10','QuadArrow','setFillImage','_handleConnectorPointerUp','univer-flex\x20univer-items-center\x20univer-gap-2','#4285f4','ShapeStar16Icon','shape.type.chart-x','Diamond','shape.type.pentagon','getShapeDataById','GradientFill','makeDirty','shape.type.cloud','_isStartConnectorPoint','sheets-shape.fill.picture.alignment','Path','Plus','wrapStrategy','shape.type.curved-down-arrow','UNIVER_DOC','index','toolbar.verticalAlignMode.main','shape.type.dodecagon','shape.type.decagon','_registerGroupFeaturePasteHook','shape.type.accent-border-callout1','INSERT','ChartX','scene','applyPoint','ShapeAccentCallout2Icon','pushUndoRedo','toolbar.fillColor.main','LeftCircularArrow','disposeWithMe','Solid','sheet.command.set-shape-text-font-size-decrease','shape.type.flow-chart-decision','align.right','section','localToWorld','sheets-shape.line.dashType.dashDot','setCursor','WedgeRoundRectCallout','lineType','getShapePopupMenus','ShapeMathNotEqualIcon','StealthArrow','ShapeMathPlusIcon','Parallelogram','onSavingEditorData$','shape.type.irregular-seal2','ShapeBentUpArrowIcon','univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-3\x20univer-py-1\x20univer-text-sm\x20univer-transition-colors\x20hover:univer-bg-gray-100\x20disabled:univer-cursor-not-allowed\x20disabled:univer-opacity-50\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','adjHandleStroke','_unitId','sheets-shape.fill.noFill','635542zEycFm','_closeShapeEditPanel','ShapeStar6Icon','_getImagePrstGeom','deg)\x20scaleY(','_highlightedSiteIndex','ShapeCurvedConnector3Arrow1Icon','function','copyType','_reset','_baseShapeLeft','ShapeSnip2SameRectIcon','Flat','_baseWidth','sheets-shape.line.beginArrowType','LongDash','FromArray','add$','sheet.shape.edit.panel','FlowchartDecision','_drawRichText','imageOpacity','ShapeStraightConnector2Icon','subscribeEvent','Medium','ShapeTextEditorContainer','shape.type.line-inv','ShapeLeftArrowCalloutIcon','ShapeActionButtonMovieIcon','shape.type.left-right-arrow-callout','isFinite','FlowChartOfflineStorage','Heart','unitId','FlowchartSort','CROSSHAIR','shape.type.left-arrow','_shapeUpdateListener','_getConnectPointInfo','gradientStops','ShapeRtTriangleIcon','shape.type.flow-chart-extract','scale','ShapeParallelogramIcon','_addControl','_updateSrcRectByTransform','Snip1Rect','error','getEndConnectInfo','shape.type.up-arrow','shape.type.smiley-face','height','SHAPE_TEXT','shape.type.arc','shape.type.ribbon','sheets-shape.fill.picture.align.l','ShapeFlowChartDecisionIcon','blur','ShapeStraightConnector1Icon','_focusedDrawings','ShapeStar8Icon','shape.type.chord','isHorizontal','transform','permission.dialog.editErr','UUID','815376RdxyBx','basicShape','lineStrokeType','getViewport','setPrstGeomAdjValues','ShapeStar24Icon','call','target','keys','ShapeActionButtonBlankIcon','univer-pt-2','shape.type.frame','DiamondArrow','isRender','shape.type.flow-chart-document','round','draw','TOP','_context','Line','Triangle','cxnPointStroke','256vBlRXJ','ShapeFlowChartDisplayIcon','LeftJustifyingIcon','BUTTON','dataStream','startArrow','getConnectionInfo','updateLinePoints','getDrawingData','shape.type.star32','LightningBolt','documentStyle','dashType','_activeShapeInfo','sheets-shape.fill.color','sheets-shape.toggleTextVertical','setSelectionRanges','FlowchartPunchedTape','rectangle','colStartX','shape.type.chevron','_generateCutPasteMutations','redo','sheets-shape.rotateRight90','RightArrowCallout','isInGroup','adjName','ShapeGear9Icon','shape.type.flow-chart-preparation','files','default','ShapeMathMinusIcon','top','getZoomRatio','align.middle','rotate(','0.21.0','_getImageDrawingInfo','shape.type.quad-arrow','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','PlaqueTabs','focusDrawing','values','FlowchartPredefinedProcess','ShapeMathEqualIcon','Round','ShapePentagonIcon','align.bottom','ShapePieIcon','ShapeEllipseIcon','ShapeVerticalScrollIcon','_createShapeAdjustControls','UpArrowCallout','ShapeHorizontalScrollIcon','ShapeMathMultiplyIcon','_getShapeInfo','ShapeBracketPairIcon','_isShouldShowDrawingShapeAdjust','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','Callout3','shape.type.flow-chart-offline-storage','oKey','opacity','shape.type.flow-chart-or','worldPoint','shape.type.math-divide','ShapeChartPlusIcon','CUT','shape.type.rt-triangle','_menuManagerService','align.left','scaleY','callout','shape.type.right-brace','ShapeDiagStripeIcon','EllipseRibbon','group\x20univer-relative\x20univer-inline-block','width','transformForAngle','register','_attachAdjustEvent','PictureFill','ShapeFlowChartPreparationIcon','replace','sheets-shape.line.arrowSize.medium','Funnel','_registerMoveHandler','sheets-shape.fill.title','ShapeAccentCallout1Icon','offsetY','sheets-shape.line.dashType.longDashDot','_registerDrawingFocusChangeHandler','shape-text-editor-position-wrapper','ShapeAccentBorderCallout2Icon','DRAWING_DOM','shape.type.accent-callout2','fillImageSourceType','position','shape.type.flow-chart-terminator','ShapeLineInvIcon','cxnPointFill','OpenArrow','shape.type.left-right-up-arrow','BorderCallout3','shape.type.up-down-arrow-callout','sheets-shape.fill.picture.align.b','version','resize','_cxtHandlerPointerMove','Tile','ShapeMathDivideIcon','ShapeStripedRightArrowIcon','shape.type.star4','_commandService','sheet.operation.close-sheet-shape-format-panel','dispose','shape.type.brace-pair','mainComponent','registerFeaturePasteHook','_baseHeight','visible','_isOpenedShapeEditPanel','_cxnIndex','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pt-2','Small','VIEW_MAIN_LEFT','enableObjectsEvent','getAdjustValueByName','starAndBanner','ShapeFrameIcon','ShapeSquareTabsIcon','ancestorTransform','_registerShapeMenu','StripedRightArrow','_baseShapeTop','shape.type.straight-connector2','sheets-shape.hidePanel','useAbsolutePosition','stroke','connection-site-','_clipService','transformByState','_resetState','ShapeHeartIcon','current','sheets-shape.line.sketchType.freehand','ShapeLeftBracketIcon','sheet.command.update-shape-data','AccentCallout3','_initCommands','_updateAdjustControlPositions','isHit','sheets-shape.line.arrowType.diamondArrow','ShapeLeftRightCircularArrowIcon','shape.type.flow-chart-internal-storage','_componentManager','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-pointer-events-none\x20univer-absolute\x20univer-bottom-full\x20univer-left-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mb-1\x20univer-hidden\x20univer-overflow-hidden\x20univer-rounded\x20univer-border\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-border-solid\x20univer-border-gray-200\x20univer-bg-white\x20univer-shadow-md\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20group-hover:univer-block\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-600\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ShapeFlowChartMagneticDrumIcon','Snip2SameRect','sheet.command.set-shape-text-font-size-increase','univer-flex\x20univer-items-center\x20univer-gap-3','shape.type.flow-chart-alternate-process','vertical','shape.type.math-equal','shapeData','FlowchartExtract','shape.type.math-multiply','clearTimeout','ShapeEllipseRibbon2Icon','shape.type.action-button-forward-next','sheets-shape.line.title','set','sheets-shape.fill.picture.align.tr','angular','gdRefY','div','_getSceneAndTransformerByDrawingSearch','gradientType','sheetTransform','sheets-shape.line.sketchType.none','None','ShapeNoSmokingIcon','ShapeLightningBoltIcon','_executeResizeCommand','_transform','ShapeFlowChartPunchedTapeIcon','setEditing','image','changeShapeType','ShapeFlowChartCollateIcon','_drawSimpleText','univer-box-border\x20univer-px-4\x20univer-text-sm','getAdjustNames','_calculateFreeEndpointAngle','_adjHandlerPointerUp','Angular','shape.type.right-arrow','1065788nOhDEq','shapeModel','_connectorObjects','ShapeUpArrowCalloutIcon','NoFill','ShapePlaqueIcon','DEFAULT_PASTE','_createCopyInfoByRange','renderConfig','univer-flex\x20univer-flex-col\x20univer-gap-3','stringify','getObjectIncludeInGroup','ShapePositionWrapper','BorderCallout1','shape.type.curved-connector3-arrow1','shape.type.down-arrow-callout','ShapeIrregularSeal2Icon','ShapeFlowChartInputOutputIcon','getBatchUpdateOp','ShapeHomePlateIcon','point','shape.type.flow-chart-punched-tape','univer-w-20\x20univer-flex-1','shape.type.rect-textbox-horizontal','ShapeSunIcon','CurvedConnector3','changeStart$','rowStartY','Bevel','shape.type.left-right-arrow','shape.type.octagon','setShapeData','Dodecagon','shape-adjust-point-','ShapeActionButtonDocumentIcon','shape.type.flow-chart-magnetic-disk','_imageShapeClipController','button','setContextValue','11FiUXsm','ShapeFlowChartDocumentIcon','custom','VIEW_MAIN','getObject','shape.type.action-button-movie','_localeService','doc','getFocusDrawings','collapsed','viewportScrollY','parseFloat','ShapeCurvedConnector3Icon','symbol','106309nVrbML','ShapeUpDownArrowCalloutIcon','shape.type.round1-rect','SnipRoundRect','ShapeFlowChartMultidocumentIcon','linear','ChartStar','get','shape.type.curved-connector3','shapeId','DoubleWave','shape.type.action-button-return','getCurrentSkeleton','abs','_adjName','sheets-shape.fill.gradientFill','univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','sheets-shape.fill.picture.align.tl','shape.type.math-not-equal','shape.type.rect','sheet.command.set-shape-text-vertical-align','univer-text-gray-500','2aVOMdg','name','DownArrow','rotation','ShapeEditor','_initSelection','shape.type.left-right-circular-arrow','sheets-shape.line.arrowType.ovalArrow','activeSheet$','_updateImageAdjValues','_loadAndSetImage','shape.type.snip-round-rect','FlowchartPunchedCard','ShapeBlockArcIcon','ShapeUpDownArrowIcon','getUnit','ShapeAccentBorderCallout1Icon','_activeShapeId','univer-block\x20univer-h-[100px]\x20univer-w-[100px]\x20univer-object-cover','univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1.5\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-2\x20univer-py-1\x20univer-transition-colors\x20hover:univer-border-primary-600\x20hover:univer-bg-gray-100\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','clearAdjustValue','highlighted','DRAWING_SHAPE','length','108774xGCsaV','isHitLine','remove$','left','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','forEach','shape.type.gear9','CENTER','Gear6','alignment','clear','HomePlate','isLineShape','Callout1','_clearConnectionSites','ShapeFlowChartDelayIcon','isRenderLinePointsMode','paragraphs','shape.type.action-button-sound','isHighlighted','subscribe','offsetX','changeEnd$','shape.type.math-plus','FlowchartProcess','_updateShapeAdjustControls','endArrow','ShapeDecagonIcon','subscribeContextValue$','flowchart','shape.type.straight-connector1','attachTransformerTo','getState','warn','sheets-shape.shapeStyle','getCurrentScrollState','shape.type.accent-callout1','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md\x20univer-bg-primary-600','_onSavingEditorData$','univer-rounded-lg\x20univer-p-3','RightBracket','update$','_registerDrawingMoveHandler','_getDrawingRect','shape.type.cube','getShapeModel','FlowchartManualInput','AccentCallout1','sheets-shape.line.endArrowSize','FlowchartPreparation','ShapeHeptagonIcon','shape.type.flow-chart-connector','ShapeFlowChartPredefinedProcessIcon','file','_props','FlowchartMagneticTape','getCurrentTypeOfUnit$','ShapeActionButtonBeginningIcon','sheets-shape.line.noLine','slice','univer-mb-1\x20univer-rounded\x20univer-bg-gray-100\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-bg-gray-800\x20dark:!univer-text-gray-200','ShapeCurvedRightArrowIcon','ShapeBracePairIcon','ShapeActionButtonHomeIcon','LeftBracket','domX','URL','getAncestorScale','_activeShapeAdjustPointList','getSelectionRanges','subUnitId','srcRect','includes','invert','shape.group.','_cxtHandlerPointerUp','shapeKey','toolbar.resetColor','_handleConnectedEndpointMove','size','shape.type.snip2-same-rect','_urlImageService','worldRect','setAdjustValueByName','shape.type.curved-left-arrow','ShapeNonIsoscelesTrapezoidIcon','_hasReset','imageRotateWithShape','univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold','Flowchart','Star24','RightBrace','getSheetBySheetId','_clearShapeAdjustControls','shape.type.chart-star','changing$','ActionButtonMovie','_lastEditingShapeKey','univer-absolute\x20univer-z-[100]\x20univer-overflow-visible','LeftRightRibbon','_openShapeEditPanel','onerror','calculate','sheets-shape.fill.picture.align.t','updateDocumentStyle','shape.type.round2-same-rect','MathMinus','worksheet','shape.type.corner','ShapeFlowChartOrIcon','shape.type.flow-chart-magnetic-tape','isStartConnectorPoint','_sidebarService','_drawingAddListener','ShapeTriangleIcon','AlignBottomIcon','shape.type.star24','Chord','ShapeWedgeRoundRectCalloutIcon','LeftArrow','ShapeLineIcon','shape.type.flow-chart-online-storage','ShapeActionButtonInformationIcon','ShapeCircularArrowIcon','BlockArrow','BentUpArrow','value','_renderManagerService','AccentBorderCallout1','ShapeBorderCallout3Icon','onTransformChange$','getDrawingVisible','ShapeFlowChartManualInputIcon','decorate','Teardrop','registerClipDelegate','_init','other','MathNotEqual','some','restore','beginPath','drawWith','shape.type.rect-textbox-vertical','iterator','ShapeGear6Icon','ShapeFlowChartManualOperationIcon','StarAndBanner','getEditing','entries','_index','open','AccentBorderCallout2','PaintBucketDoubleIcon','START','sin','shape.type.snip1-rect','sheets-shape.line.capType.round','RightArrow','getShapeTextRect','_initCopyPaste','cos','ShapeLeftRightArrowCalloutIcon','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-flex-col\x20univer-gap-2\x20univer-border-l-2\x20univer-border-l-gray-200\x20univer-pl-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-l-gray-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','SHEET_SHAPE_UI_PLUGIN','setZoomRatio','shape.type.curved-right-arrow','#1a73e8','sheets-shape.line.sketchType.handDrawn','shape.type.irregular-seal1','DiagStripe','SELECTOR','with','fillImageSource','_currentUniverService','syncExecuteCommand','shape.type.star16','_initEditingParams','find','ShapeCloudCalloutIcon','ShapeFlowChartConnectorIcon','pick','_sheetDrawingService','params','ShapeIrregularSeal1Icon','cxnPointStrokeWidth','shape.type.bent-connector3','setSrcRect','SquareTabs','_activeTargetShapeId','shape.type.flow-chart-collate','FlowchartDocument','BOTTOM','adjHandleFill','drawing.operation.set-drawing-active','sheetViewStartColumn','sheet.command.set-shape-text-horizontal-align','undefined','univer-w-28','engine','ShapeFlowChartPunchedCardIcon','ShapeWedgeRectCalloutIcon','activeAnObject','_addShapeConnectorHandlerObjects','getCurrentLastSelection','SolidFill','VerticalScroll','UpDownArrow','_getOrCreateShapeModel','_sheetCanvasPopManagerService','Other','ShapeArcIcon','max','shape.type.folder-corner','Callout2','_activeAdjustInfo','verticalAlign','normal','isEditing','setShapeProps','clearAdjustControls','sheets-shape.fill.solidFill','Round2SameRect','getShapeType','POSITIVE_INFINITY','blockArrow','ShapeLeftRightArrowIcon','EquationShape','_showConnectionSites','NonIsoscelesTrapezoid','Star4','marginTop','min','ENTER','COMMAND','sheets-shape.line.dashType.title','_createControls','shape.type.flow-chart-process','REMOVE','univer-flex\x20univer-items-center\x20univer-justify-between','shape.type.bevel','setHighlighted','_addShapeConnectorHandlerObject','horizontalAlign','group','sheet.command.shape-doc-align','_initialize','ShapeChordIcon','shape.type.flow-chart-merge','ShapeFolderCornerIcon','from','univer-relative\x20univer-size-full\x20univer-overflow-visible','_isImagePointerDown','univer-text-xl\x20univer-text-gray-500','univer-w-20','horizontal','shape.type.accent-border-callout3','_drawingManagerService','shape.type.chart-plus','getShapeData','shape.type.vertical-scroll','_sheetSkeletonService','shape.type.callout1','CurvedRightArrow','isArray','getAdjustInfoByName','ShapeNotchedRightArrowIcon','ShapeRectTextboxHorizontalIcon','classType','sheets-shape.line.sketchType.title','FlowchartDelay','ShapeLeftArrowIcon','_generateCopyPasteMutations','sheets-shape.fill.pictureFill','_moveConnectorWithShape','MathMultiply','_insertShapes','BracketPair','shape.type.gear6','shape.type.star7','shape.type.star8','startOffset','sheets-shape.fill.picture.source','has','_executeConnectedRouteResizeCommand','sheet.shape.picker.component','AccentCallout2','ShapeDonutIcon','shape.type.action-button-document','_contextService','ShapeLeftCircularArrowIcon','bind','MEDIA','ShapeCurvedConnector3Arrow2Icon','_groupCopyPasteController','align.center','sheets-shape.line.color','computeStraightConnectorLayout','shape.type.plus','_shapeService','ShapeDiamondIcon','ShapeBorderCallout2Icon','shape.type.funnel','_getShapeAdjustInfosById','onStarting','sheets-shape.line.beginArrowSize','sketchType','onCommandExecuted','SolidLine','onPointerDown$','getConnectionRelation','focus$','multiply','_handleConnectedEndpointPointerUp','Freehand','_connectionSiteObjects','HalfFrame','registerRenderModule','univer-flex\x20univer-aspect-square\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-p-1\x20univer-text-gray-700\x20hover:univer-bg-gray-200\x20dark:!univer-text-gray-200\x20dark:hover:!univer-bg-gray-700','UpDownArrowCallout','startY','addObject','shape.type.hexagon','Snip2DiagRect','radial','adjHandleSize','getUnitId','10xpvqAg','_draw','scaleX','shape.type.left-bracket','shape.type.down-arrow','ShapeRightArrowCalloutIcon','Pentagon','sheets-shape.line.width','lineJoinType','_activeImageId','GROUP','#000000','getBasicShapeRelation','HorizontalScroll','sheets-shape.fill.picture.scaleX','ShapeStar32Icon','sheets-shape-ui','Rectangle','SHAPE','_registerComponent','FlowchartSummingJunction','Miter','BorderCallout2','shape.type.block-arc','Octagon','_drawShapeText','cxnPointRadius','ShapeFlowChartOffpageConnectorIcon','_currentConnectionTarget','clip','getRealBound','sheets-shape.toggleFlipH','_draggingConnectorId','_sheetDrawingShapeRenderController','AlignTopIcon','_initPermission','ShapeAccentCallout3Icon','textRect','sheets-shape.line.arrowType.stealthArrow','_shapes','_baseShapeHeight','ShapeCurvedDownArrowIcon','_sheetShapeAdjustController','resetCursor','ShapeFlowChartExtractIcon','shape.type.action-button-beginning','_clearShapeConnectorHandlerObjects','WedgeRectCallout','ShapeActionButtonSoundIcon','FlowChartInputOutput','_sheetBasicShapeConnectionPointController','ShapeQuadArrowIcon','shape.type.curved-connector3-arrow2','shape.type.square-tabs','_baseLeft','_activeAdjustPointList','interceptCommand','_commandExecutedListener','BracePair','sheets-shape.line.dashType.roundDot','sheets-shape.config','getDrawingOrder','univer-absolute','buildClipPath','_sheetInterceptorService','_imageIoService','_sheetPermissionCheckController','ActionButtonBeginning','none','_isConnecting','_loadShapePictureFill','startX','ShapeDownArrowCalloutIcon','ShapeFlowChartTerminatorIcon','Wave','disableShapeOption','ShapeActionButtonEndIcon','clip-','_clearControls','_shapeId','sheets-shape.line.capType.square','shape.type.home-plate','_config','ShapeLeftBraceIcon','style','HorizontallyIcon','renderDrawingShape','dataModel','sheets-shape.line.dashType.longDash','ShapeOctagonIcon','equationShape','disableObjectsEvent','shape.type.heart','sheets-shape.line.capType.flat','ShapeFunnelIcon','lineShapeId','translate','ShapeCallout2Icon','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','sheets-shape.line.arrowType.arrow','_getZoomRatio','BlockArc','endConnectionDetection','onPointerMove$','end','MIDDLE','ShapeRightArrowIcon','UNIVER_SHEET','getRenderById','sheets-shape.toggleFlipV','_sheetClipboardService','sheets-shape.rotateLeft90','9488780NDBwGN','_sheetsShapeService','UpArrow','shape.type.star12','Chevron','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','shape.type.cloud-callout','_univerInstanceService','ShapeDownArrowIcon','RoundRect','univer-w-full','Cloud','NoLine','shape.type.ellipse-ribbon2','setShouldShowAdjust','close','shapeType','ShapeLeftUpArrowIcon','vertexAngle','ShapeRightBraceIcon','#ffffff','getBatchAddOp','shape.type.bracket-pair','onReady','RIGHT','_baseTop','indexOf','shape.type.star10','shape.type.notched-right-arrow','getImage','ShapeLeftRightUpArrowIcon','sheets-shape.line.dashType.dash','getParent','toPrimitive','_findNearestConnectionSite','ShapeHalfFrameIcon','line','ShapeUpArrowIcon','sheets-shape.fill.picture.align.r','_initEvents','refreshAdjustControls','drawingType','stopPropagation','Linear','updateDocumentDataMargin','Radial','ShapeSnipRoundRectIcon','shape.type.action-button-end','_handleBasicShapeUpdateConnectorLineShape','ShapeIcon','permissionCheckWithoutRange','filter','ShapeBentConnector3Arrow2Icon','shape.type.flow-chart-magnetic-drum','ShapeRibbonIcon','OPERATION','flipY','create','computeConnectorResizeLayout','pipe','shape.type.round2-diag-rect','VerticalCenterIcon','_attachConnectorObjectEvent','getInverseCoord','_activeShapeModel','ShapeRound2DiagRectIcon','ShapeCallout3Icon','ShapeRightBracketIcon','_editingParams$','sheets-shape.fill.picture.align.br','_getConnectionSiteAngle','getConnectorLinePoints','90HumWxz','sheets-shape.fill.picture.offsetX','Star8','FlowchartMultiDocument','gradientAngle','ShapeRound2SameRectIcon','focus','AccentBorderCallout3','parse','Gear9','updateContext','getDrawingSearch','centerAngle','ShapeStar10Icon','cxnIndex','click','getDrawingByParam','shape.type.flow-chart-summing-junction','primary.600','unsubscribe','MathPlus','shape-text-','_registerFocusChangeHandler','_injector','ShapeFlowChartInternalStorageIcon','shape.type.swoosh-arrow','data','shape.type.round-rect','ShapeCurvedUpArrowIcon','LeftRightArrow','Star12','editingParams$','Ellipse','getValue','ShapeBentConnector3Icon','Square','ShapeSmileyFaceIcon','getColorFromTheme','_initSheetChange','ShapePlusIcon','shape.type.left-right-ribbon','getConnectionSiteList','ShapeMoonIcon','FlowchartManualOperation','ShapeFlowChartProcessIcon','ShapeRectTextboxVerticalIcon','BasicShape','onload','shape.type.plaque','map','capType','align.top','next','sheets-shape.line.dashType.longDashDotDot','prstGeom','save','_getShapeAdjustPointListById','Callout','getStartConnectInfo','getShapeTextData','Rect','ShapeActionButtonReturnIcon','shape.type.bent-up-arrow','FlowchartDisplay','BentConnector3','sheets-shape.insertShape','objects','_registerImageShapeClipDelegate','FlowchartMerge','sheets-shape.fill.picture.offsetY','univer-max-h-[75vh]\x20univer-w-[320px]\x20univer-pb-2','shape.type.double-wave','onRendered','asObservable','ActionButtonHome','_targetShapeId','_transformCalculateSrcRect','_executeConnectedRouteConnectionCommand','icon','ShapeChevronIcon','relation','domY','_baseShapeWidth','shape.type.bent-connector3-arrow2','ShapeCloudIcon','rect','image-clip-adjust-point-','ShapeCallout1Icon','undo','LAYOUT','Large','ShapeChartStarIcon','shape.type.flow-chart-sort','ShapeCornerIcon','ctr','getActualSize','LeftRightCircularArrow','updateDocumentRenderConfig','shape.type.flow-chart-display','shape.type.quad-arrow-callout','ShapeFlowChartMagneticDiskIcon','MathDivide','_configService','body'];_0x33b4=function(){return _0x2625b2;};return _0x33b4();}function _0x21c0(_0x195b24,_0x2f203d){_0x195b24=_0x195b24-0x17f;const _0x33b457=_0x33b4();let _0x21c049=_0x33b457[_0x195b24];return _0x21c049;}function ImageClipShapePicker(){const _0x597a0d=_0x5a2394,_0x49997c=useDependency(LocaleService),_0x4de48a=useDependency(IDrawingManagerService),_0x16efbc=useDependency(ImageShapeClipController),[_0x599c72,_0x7be03]=useState(![]),_0x4740e9=_0x54a877=>{const _0x374851=_0x21c0,_0x3e1d05=_0x4de48a['getFocusDrawings']()['find'](_0x41742b=>_0x41742b[_0x374851(0x561)]===DrawingTypeEnum[_0x374851(0x622)]);if(!_0x3e1d05)return;const {unitId:_0xae1ac0,subUnitId:_0x486611,drawingId:_0x4e47e5}=_0x3e1d05;_0x16efbc[_0x374851(0x5ee)](_0xae1ac0,_0x486611,_0x4e47e5,_0x54a877[_0x374851(0x5f9)]),_0x7be03(![]);};return jsx(Dropdown,{'side':'left','open':_0x599c72,'onOpenChange':_0x7be03,'overlay':jsx(ShapePickerComponent,{'onShapeClick':_0x4740e9,'excludeGroups':[ShapeGroupEnum[_0x597a0d(0x255)]]}),'children':jsx(Button,{'children':_0x49997c['t'](_0x597a0d(0x643))})});}function ShapePicker(){const _0x97a741=useDependency(ICommandService),_0x421103=_0x1a1586=>{const _0x191771=_0x21c0;_0x97a741[_0x191771(0x60d)](MenuInsertShapeCommand['id'],{'value':_0x1a1586[_0x191771(0x5f9)],'enhanceParams':{'endArrow':_0x1a1586[_0x191771(0x39b)],'startArrow':_0x1a1586[_0x191771(0x25d)],'horizontal':_0x1a1586[_0x191771(0x480)],'vertical':_0x1a1586[_0x191771(0x2fa)]}});};return jsx(ShapePickerComponent,{'onShapeClick':_0x421103});}const SHAPE_HORIZONTAL_ALIGN_CHILDREN$1=[{'label':_0x5a2394(0x29e),'icon':_0x5a2394(0x25a),'value':HorizontalAlign[_0x5a2394(0x1b3)]},{'label':_0x5a2394(0x4a8),'icon':_0x5a2394(0x51d),'value':HorizontalAlign[_0x5a2394(0x388)]},{'label':_0x5a2394(0x1ed),'icon':_0x5a2394(0x199),'value':HorizontalAlign['RIGHT']}];function ShapeBackgroundColorSelectorMenuItemFactory(_0x50ec87){const _0x41417b=_0x5a2394,_0x1ccbb3=_0x50ec87['get'](IContextService),_0x2b1398=_0x50ec87[_0x41417b(0x359)](ThemeService);return{'id':SetInlineFormatTextBackgroundColorCommand['id'],'tooltip':_0x41417b(0x1e7),'type':MenuItemType['BUTTON_SELECTOR'],'icon':_0x41417b(0x41a),'selections':[{'label':{'name':COLOR_PICKER_COMPONENT,'hoverable':![],'selectable':![]}}],'value$':new Observable(_0x1be7ee=>{const _0x46fcff=_0x41417b;_0x1be7ee[_0x46fcff(0x5b4)](_0x2b1398[_0x46fcff(0x5a5)](_0x46fcff(0x592)));}),'hidden$':_0x1ccbb3[_0x41417b(0x39d)](FOCUSING_COMMON_DRAWINGS)[_0x41417b(0x573)](startWith(_0x1ccbb3[_0x41417b(0x61e)](FOCUSING_COMMON_DRAWINGS)),map(_0x4d5860=>!_0x4d5860))};}function ShapeResetBackgroundColorMenuItemFactory(_0x2b84bd){const _0x66fb=_0x5a2394,_0xaf8c20=_0x2b84bd[_0x66fb(0x359)](IContextService);return{'id':ResetInlineFormatTextBackgroundColorCommand['id'],'type':MenuItemType[_0x66fb(0x25b)],'title':_0x66fb(0x3ce),'hidden$':_0xaf8c20[_0x66fb(0x39d)](FOCUSING_COMMON_DRAWINGS)[_0x66fb(0x573)](startWith(_0xaf8c20['getContextValue'](FOCUSING_COMMON_DRAWINGS)),map(_0xa70279=>!_0xa70279))};}const SHAPE_HORIZONTAL_ALIGN_CHILDREN=[{'label':_0x5a2394(0x29e),'icon':'LeftJustifyingIcon','value':HorizontalAlign[_0x5a2394(0x1b3)]},{'label':_0x5a2394(0x4a8),'icon':'HorizontallyIcon','value':HorizontalAlign[_0x5a2394(0x388)]},{'label':_0x5a2394(0x1ed),'icon':_0x5a2394(0x199),'value':HorizontalAlign[_0x5a2394(0x550)]}];function ShapeTextHorizontalAlignMenuItemFactory(_0x3675bc){const _0x45c053=_0x5a2394;var _0x4854e7;const _0x8a4a13=_0x3675bc[_0x45c053(0x359)](ICommandService),_0x427f72=_0x3675bc[_0x45c053(0x359)](IContextService),_0xefd7f=_0x3675bc[_0x45c053(0x359)](ISheetDrawingService),_0x3be574=_0x3675bc[_0x45c053(0x359)](ShapeTextEditingService),_0x3a79e1=_0x3675bc[_0x45c053(0x359)](SheetsShapeService),_0x15b029=HorizontalAlign[_0x45c053(0x1b3)],_0x5d4e3b=()=>{const _0x556915=_0x45c053;var _0x11eb34;const _0x422ef5=_0xefd7f[_0x556915(0x34c)]()[_0x556915(0x56b)](_0x514e2e=>_0x514e2e[_0x556915(0x561)]===DrawingTypeEnum[_0x556915(0x37f)]);if(_0x422ef5[_0x556915(0x380)]!==0x1)return _0x15b029;const _0x58ea0b=_0x3be574['getEditing'](),_0x1008b6=(_0x58ea0b===null||_0x58ea0b===void 0x0?void 0x0:_0x58ea0b[_0x556915(0x221)])||_0x422ef5[0x0][_0x556915(0x221)],_0x430732=(_0x58ea0b===null||_0x58ea0b===void 0x0?void 0x0:_0x58ea0b[_0x556915(0x3c7)])||_0x422ef5[0x0][_0x556915(0x3c7)],_0x34bff4=(_0x58ea0b===null||_0x58ea0b===void 0x0?void 0x0:_0x58ea0b[_0x556915(0x35b)])||_0x422ef5[0x0][_0x556915(0x183)],_0x3e55b4=_0x3a79e1[_0x556915(0x3ae)](_0x1008b6,_0x430732,_0x34bff4);if(!_0x3e55b4)return _0x15b029;const _0x167a9a=_0x3e55b4[_0x556915(0x5bb)]();if(!_0x167a9a||!('dataModel'in _0x167a9a))return _0x15b029;const _0x3266a2=_0x167a9a['dataModel'];return(_0x11eb34=_0x3266a2===null||_0x3266a2===void 0x0?void 0x0:_0x3266a2['ha'])!==null&&_0x11eb34!==void 0x0?_0x11eb34:_0x15b029;};return{'id':SetShapeTextHorizontalAlignCommand['id'],'icon':(_0x4854e7=SHAPE_HORIZONTAL_ALIGN_CHILDREN['find'](_0x3af0f9=>_0x3af0f9['value']===_0x15b029))===null||_0x4854e7===void 0x0?void 0x0:_0x4854e7[_0x45c053(0x5ce)],'tooltip':'toolbar.horizontalAlignMode.main','type':MenuItemType[_0x45c053(0x42c)],'selections':SHAPE_HORIZONTAL_ALIGN_CHILDREN,'value$':new Observable(_0x1624f1=>{const _0x2194f9=_0x45c053,_0x3d8e13=_0x8a4a13[_0x2194f9(0x4b4)](_0x4d79c8=>{const _0x153841=_0x2194f9;if(_0x4d79c8['id']===SetShapeTextHorizontalAlignCommand['id'])_0x1624f1[_0x153841(0x5b4)](_0x5d4e3b());}),_0x2a1001=_0x3be574[_0x2194f9(0x59f)]['subscribe'](()=>{_0x1624f1['next'](_0x5d4e3b());});return _0x1624f1[_0x2194f9(0x5b4)](_0x5d4e3b()),()=>{const _0x412343=_0x2194f9;_0x3d8e13[_0x412343(0x2cb)](),_0x2a1001['unsubscribe']();};}),'hidden$':_0x427f72[_0x45c053(0x39d)](FOCUSING_COMMON_DRAWINGS)['pipe'](map(_0x23b8b9=>!_0x23b8b9))};}const SHAPE_VERTICAL_ALIGN_CHILDREN=[{'label':_0x5a2394(0x5b3),'icon':_0x5a2394(0x4ea),'value':VerticalAlign['TOP']},{'label':_0x5a2394(0x27a),'icon':_0x5a2394(0x575),'value':VerticalAlign[_0x5a2394(0x531)]},{'label':_0x5a2394(0x287),'icon':_0x5a2394(0x3f4),'value':VerticalAlign[_0x5a2394(0x441)]}];function ShapeVerticalAlignMenuItemFactory(_0x2385f6){const _0x1e0744=_0x5a2394;var _0x1b3af1;const _0x3dd0af=_0x2385f6[_0x1e0744(0x359)](ICommandService),_0x3456ff=_0x2385f6[_0x1e0744(0x359)](IContextService),_0x32411d=_0x2385f6[_0x1e0744(0x359)](ISheetDrawingService),_0x36e760=_0x2385f6[_0x1e0744(0x359)](ShapeTextEditingService),_0xb3fb45=_0x2385f6[_0x1e0744(0x359)](SheetsShapeService),_0x470ccc=VerticalAlign[_0x1e0744(0x253)],_0x5db994=()=>{const _0x3c7f64=_0x1e0744;var _0x413cc0;const _0x176563=_0x32411d[_0x3c7f64(0x34c)]()[_0x3c7f64(0x56b)](_0x3c4072=>_0x3c4072[_0x3c7f64(0x561)]===DrawingTypeEnum['DRAWING_SHAPE']);if(_0x176563[_0x3c7f64(0x380)]!==0x1)return _0x470ccc;const _0x449087=_0x36e760[_0x3c7f64(0x415)](),_0x215527=(_0x449087===null||_0x449087===void 0x0?void 0x0:_0x449087[_0x3c7f64(0x221)])||_0x176563[0x0][_0x3c7f64(0x221)],_0xf1d694=(_0x449087===null||_0x449087===void 0x0?void 0x0:_0x449087[_0x3c7f64(0x3c7)])||_0x176563[0x0]['subUnitId'],_0x1610ab=(_0x449087===null||_0x449087===void 0x0?void 0x0:_0x449087[_0x3c7f64(0x35b)])||_0x176563[0x0][_0x3c7f64(0x183)],_0x225ab3=_0xb3fb45[_0x3c7f64(0x3ae)](_0x215527,_0xf1d694,_0x1610ab);if(!_0x225ab3)return _0x470ccc;const _0x3451ef=_0x225ab3['getShapeTextData']();if(!_0x3451ef||!(_0x3c7f64(0x51f)in _0x3451ef))return _0x470ccc;const _0xb61042=_0x3451ef[_0x3c7f64(0x51f)];return(_0x413cc0=_0xb61042===null||_0xb61042===void 0x0?void 0x0:_0xb61042['va'])!==null&&_0x413cc0!==void 0x0?_0x413cc0:_0x470ccc;};return{'id':SetShapeTextVerticalAlignCommand['id'],'icon':(_0x1b3af1=SHAPE_VERTICAL_ALIGN_CHILDREN['find'](_0xf08831=>_0xf08831[_0x1e0744(0x3ff)]===_0x470ccc))===null||_0x1b3af1===void 0x0?void 0x0:_0x1b3af1[_0x1e0744(0x5ce)],'tooltip':_0x1e0744(0x1dc),'type':MenuItemType[_0x1e0744(0x42c)],'selections':SHAPE_VERTICAL_ALIGN_CHILDREN,'value$':new Observable(_0xddf9d8=>{const _0xcbbc8c=_0x1e0744,_0x1c7a0a=_0x3dd0af[_0xcbbc8c(0x4b4)](_0x2f63a9=>{if(_0x2f63a9['id']===SetShapeTextVerticalAlignCommand['id'])_0xddf9d8['next'](_0x5db994());}),_0x2df4ea=_0x36e760['editingParams$'][_0xcbbc8c(0x395)](()=>{const _0x546f49=_0xcbbc8c;_0xddf9d8[_0x546f49(0x5b4)](_0x5db994());});return _0xddf9d8[_0xcbbc8c(0x5b4)](_0x5db994()),()=>{const _0x18cdea=_0xcbbc8c;_0x1c7a0a[_0x18cdea(0x2cb)](),_0x2df4ea['unsubscribe']();};}),'hidden$':_0x3456ff[_0x1e0744(0x39d)](FOCUSING_COMMON_DRAWINGS)[_0x1e0744(0x573)](map(_0x200406=>!_0x200406))};}function ShapeMenuItemFactory(_0xf1d8ca){const _0x47a064=_0x5a2394,_0xf0faec=_0xf1d8ca['get'](IUniverInstanceService);return{'id':MenuInsertShapeCommand['id'],'type':MenuItemType[_0x47a064(0x42c)],'selections':[{'label':{'name':SHAPE_PICKER_COMPONENT,'hoverable':![],'selectable':![],'props':{'id':MenuInsertShapeCommand['id']}}}],'icon':'ShapeIcon','tooltip':_0x47a064(0x5c1),'activated$':deriveStateFromActiveSheet$(_0xf0faec,![],()=>new Observable(_0x31774e=>{const _0x2ca8af=_0x47a064;_0x31774e[_0x2ca8af(0x5b4)](![]);})),'hidden$':getMenuHiddenObservable(_0xf1d8ca,UniverInstanceType['UNIVER_SHEET']),'disabled$':getCurrentRangeDisable$(_0xf1d8ca)};}const menuSchema={[RibbonPosition[_0x5a2394(0x41b)]]:{[RibbonStartGroup[_0x5a2394(0x5d9)]]:{[SetShapeTextVerticalAlignCommand['id']]:{'order':3.5,'menuItemFactory':ShapeVerticalAlignMenuItemFactory},[SetShapeTextHorizontalAlignCommand['id']]:{'order':3.4,'menuItemFactory':ShapeTextHorizontalAlignMenuItemFactory}},[RibbonStartGroup['FORMAT']]:{[SetInlineFormatTextBackgroundColorCommand['id']]:{'order':0x1,'menuItemFactory':ShapeBackgroundColorSelectorMenuItemFactory,[ResetInlineFormatTextBackgroundColorCommand['id']]:{'order':0x0,'menuItemFactory':ShapeResetBackgroundColorMenuItemFactory}}}},[RibbonInsertGroup[_0x5a2394(0x4a5)]]:{[MenuInsertShapeCommand['id']]:{'order':0x4,'menuItemFactory':ShapeMenuItemFactory}}};let SheetsShapeUIController=class SheetsShapeUIController extends Disposable{constructor(_0x558a71,_0x16f818,_0x588d02,_0x252df3,_0x5be4cc,_0x23c4e0,_0x1f2121,_0x32d5ea,_0x402e48,_0x45e35e,_0x2de01e){const _0x1796fd=_0x5a2394;super(),this[_0x1796fd(0x53f)]=_0x558a71,this[_0x1796fd(0x508)]=_0x16f818,this[_0x1796fd(0x3f1)]=_0x588d02,this[_0x1796fd(0x29d)]=_0x252df3,this[_0x1796fd(0x539)]=_0x5be4cc,this['_localeService']=_0x23c4e0,this[_0x1796fd(0x2f3)]=_0x1f2121,this[_0x1796fd(0x2c9)]=_0x32d5ea,this['_drawingManagerService']=_0x402e48,this[_0x1796fd(0x452)]=_0x45e35e,this['_contextService']=_0x2de01e,_defineProperty(this,_0x1796fd(0x5e9),null),_defineProperty(this,'_activeShapeInfo',null),_defineProperty(this,_0x1796fd(0x2d1),![]),this['_registerComponent'](),this[_0x1796fd(0x62b)](),this[_0x1796fd(0x1e9)](this[_0x1796fd(0x53f)][_0x1796fd(0x3b9)](UniverInstanceType['UNIVER_SHEET'])[_0x1796fd(0x395)](_0x240650=>{const _0x1a72c6=_0x1796fd;var _0x535184;if(!_0x240650)(_0x535184=this[_0x1a72c6(0x5e9)])===null||_0x535184===void 0x0||_0x535184[_0x1a72c6(0x2cb)]();})),this['_registerOperations'](),this[_0x1796fd(0x2dc)]();}[_0x5a2394(0x62b)](){const _0x9a0d94=_0x5a2394;this[_0x9a0d94(0x29d)]['mergeMenu'](menuSchema);}[_0x5a2394(0x2dc)](){const _0x246518=_0x5a2394;this['_sheetCanvasPopManagerService']['registerFeatureMenu'](DrawingTypeEnum[_0x246518(0x37f)],this[_0x246518(0x1f4)][_0x246518(0x4a4)](this)),this[_0x246518(0x452)][_0x246518(0x63c)](DrawingTypeEnum[_0x246518(0x37f)],0x6,0x4);}[_0x5a2394(0x1f4)](_0xc59f9,_0xc9fc89,_0x46a527,_0x2010c4){const _0x2f37b1=_0x5a2394;return[{'label':_0x2f37b1(0x609),'index':0x0,'commandId':OpenSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0xc59f9,'subUnitId':_0xc9fc89,'drawingId':_0x46a527},'disable':_0x2010c4===DrawingTypeEnum[_0x2f37b1(0x2b6)]},{'label':'sheets-shape.deleteShape','index':0x1,'commandId':RemoveSheetDrawingCommand['id'],'commandParams':{'unitId':_0xc59f9,'drawings':[{'unitId':_0xc59f9,'subUnitId':_0xc9fc89,'drawingId':_0x46a527,'drawingType':_0x2010c4}]},'disable':![]},{'label':_0x2f37b1(0x2e0),'index':0x2,'commandId':CloseSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0xc59f9,'subUnitId':_0xc9fc89,'drawingId':_0x46a527},'disable':![]},{'label':_0x2f37b1(0x4e7),'index':0x3,'commandId':ToggleSheetsShapeFlipCommand['id'],'commandParams':{'unitId':_0xc59f9,'subUnitId':_0xc9fc89,'shapeId':_0x46a527,'flipH':!![]},'disable':![]},{'label':_0x2f37b1(0x535),'index':0x4,'commandId':ToggleSheetsShapeFlipCommand['id'],'commandParams':{'unitId':_0xc59f9,'subUnitId':_0xc9fc89,'shapeId':_0x46a527,'flipV':!![]},'disable':![]},{'label':_0x2f37b1(0x26f),'index':0x4,'commandId':SetSheetsShapeRotateCommand['id'],'commandParams':{'unitId':_0xc59f9,'subUnitId':_0xc9fc89,'shapeId':_0x46a527,'rotate':0x5a},'disable':![]},{'label':_0x2f37b1(0x537),'index':0x4,'commandId':SetSheetsShapeRotateCommand['id'],'commandParams':{'unitId':_0xc59f9,'subUnitId':_0xc9fc89,'shapeId':_0x46a527,'rotate':-0x5a},'disable':![]},{'label':_0x2f37b1(0x267),'index':0x4,'commandId':SetSheetsShapeTextVerticalToggleCommand['id'],'commandParams':{'unitId':_0xc59f9,'subUnitId':_0xc9fc89,'shapeId':_0x46a527},'disable':![]}];}[_0x5a2394(0x28f)](_0x8aad01,_0x36d9e0,_0x23d1f3){const _0x2935ca=_0x5a2394,_0xac09f4=this[_0x2935ca(0x539)][_0x2935ca(0x65c)](_0x8aad01,_0x36d9e0,_0x23d1f3),_0x2ca198=this[_0x2935ca(0x539)][_0x2935ca(0x1d0)](_0x8aad01,_0x36d9e0,_0x23d1f3);if(_0xac09f4!==void 0x0&&_0x2ca198!==void 0x0)return{'shapeData':_0x2ca198,'shapeId':_0x23d1f3,'shapeType':_0xac09f4,'unitId':_0x8aad01,'subUnitId':_0x36d9e0,'disableShapeOption':![]};return null;}['_registerOperations'](){const _0x51c72b=_0x5a2394;this[_0x51c72b(0x1e9)](this[_0x51c72b(0x2c9)][_0x51c72b(0x4b4)](_0x2864cb=>{const _0x5d821d=_0x51c72b;if(_0x2864cb['id']===OpenSheetShapeFormatPanelOperation['id']){const {unitId:_0x222966,subUnitId:_0x136b66,drawingId:_0x5780e5}=_0x2864cb['params'];this[_0x5d821d(0x265)]=this[_0x5d821d(0x28f)](_0x222966,_0x136b66,_0x5780e5),this['_openShapeEditPanel']();}_0x2864cb['id']===CloseSheetShapeFormatPanelOperation['id']&&(this[_0x5d821d(0x265)]=null,this[_0x5d821d(0x201)]());if(_0x2864cb['id']===UpdateSheetsShapeDataMutation['id']){const {unitId:_0x1444d6,subUnitId:_0x247ea7,shapeId:_0x1b96a3}=_0x2864cb[_0x5d821d(0x438)];if(this[_0x5d821d(0x265)]&&this[_0x5d821d(0x265)][_0x5d821d(0x35b)]===_0x1b96a3){const _0x1ba4a3=this['_getShapeInfo'](_0x1444d6,_0x247ea7,_0x1b96a3);if(_0x1ba4a3)this[_0x5d821d(0x265)]=_0x1ba4a3;}}})),this[_0x51c72b(0x1e9)](this['_drawingManagerService'][_0x51c72b(0x4b8)]['subscribe'](_0x4ddf1a=>{const _0x4cf464=_0x51c72b;if(this[_0x4cf464(0x2d1)]===![])return;if(_0x4ddf1a[_0x4cf464(0x380)]===0x0){this[_0x4cf464(0x265)]=null,this[_0x4cf464(0x201)]();return;}if(_0x4ddf1a['length']===0x1&&_0x4ddf1a[0x0][_0x4cf464(0x561)]===DrawingTypeEnum[_0x4cf464(0x37f)]){this[_0x4cf464(0x265)]=this[_0x4cf464(0x28f)](_0x4ddf1a[0x0][_0x4cf464(0x221)],_0x4ddf1a[0x0][_0x4cf464(0x3c7)],_0x4ddf1a[0x0][_0x4cf464(0x183)]);if(this['_activeShapeInfo']){this[_0x4cf464(0x3e5)]();return;}}const _0x45cefd=_0x4ddf1a['filter'](_0x31ad97=>{const _0x5f2ce3=_0x4cf464;return _0x31ad97[_0x5f2ce3(0x561)]===DrawingTypeEnum['DRAWING_SHAPE'];});if(_0x4ddf1a['length']>0x1&&_0x45cefd['length']===_0x4ddf1a[_0x4cf464(0x380)]){this[_0x4cf464(0x265)]=this[_0x4cf464(0x28f)](_0x4ddf1a[0x0][_0x4cf464(0x221)],_0x4ddf1a[0x0][_0x4cf464(0x3c7)],_0x4ddf1a[0x0][_0x4cf464(0x183)]);if(this[_0x4cf464(0x265)]){this[_0x4cf464(0x3e5)]();return;}}else{this['_activeShapeInfo']=this[_0x4cf464(0x28f)](_0x4ddf1a[0x0][_0x4cf464(0x221)],_0x4ddf1a[0x0][_0x4cf464(0x3c7)],_0x4ddf1a[0x0][_0x4cf464(0x183)]);if(this[_0x4cf464(0x265)]){this[_0x4cf464(0x265)][_0x4cf464(0x513)]=!![],this['_openShapeEditPanel']();return;}}this[_0x4cf464(0x201)]();}));}[_0x5a2394(0x4db)](){const _0x5d7954=_0x5a2394;[[_0x5d7954(0x569),ShapeIcon],[_0x5d7954(0x378),ShapeAccentBorderCallout1Icon],[_0x5d7954(0x2b5),ShapeAccentBorderCallout2Icon],['ShapeAccentBorderCallout3Icon',ShapeAccentBorderCallout3Icon],[_0x5d7954(0x2b0),ShapeAccentCallout1Icon],[_0x5d7954(0x1e5),ShapeAccentCallout2Icon],[_0x5d7954(0x4ec),ShapeAccentCallout3Icon],['ShapeActionButtonBackPreviousIcon',ShapeActionButtonBackPreviousIcon],['ShapeActionButtonBeginningIcon',ShapeActionButtonBeginningIcon],[_0x5d7954(0x24b),ShapeActionButtonBlankIcon],['ShapeActionButtonDocumentIcon',ShapeActionButtonDocumentIcon],[_0x5d7954(0x514),ShapeActionButtonEndIcon],['ShapeActionButtonForwardNextIcon',ShapeActionButtonForwardNextIcon],['ShapeActionButtonHelpIcon',ShapeActionButtonHelpIcon],[_0x5d7954(0x3c0),ShapeActionButtonHomeIcon],['ShapeActionButtonInformationIcon',ShapeActionButtonInformationIcon],[_0x5d7954(0x21c),ShapeActionButtonMovieIcon],['ShapeActionButtonReturnIcon',ShapeActionButtonReturnIcon],['ShapeActionButtonSoundIcon',ShapeActionButtonSoundIcon],[_0x5d7954(0x454),ShapeArcIcon],['ShapeBentArrowIcon',ShapeBentArrowIcon],['ShapeBentConnector3Arrow1Icon',ShapeBentConnector3Arrow1Icon],['ShapeBentConnector3Arrow2Icon',ShapeBentConnector3Arrow2Icon],[_0x5d7954(0x5a2),ShapeBentConnector3Icon],[_0x5d7954(0x1fb),ShapeBentUpArrowIcon],[_0x5d7954(0x18c),ShapeBevelIcon],[_0x5d7954(0x375),ShapeBlockArcIcon],[_0x5d7954(0x621),ShapeBorderCallout1Icon],[_0x5d7954(0x4ae),ShapeBorderCallout2Icon],[_0x5d7954(0x402),ShapeBorderCallout3Icon],[_0x5d7954(0x3bf),ShapeBracePairIcon],[_0x5d7954(0x290),ShapeBracketPairIcon],[_0x5d7954(0x5d7),ShapeCallout1Icon],['ShapeCallout2Icon',ShapeCallout2Icon],[_0x5d7954(0x57a),ShapeCallout3Icon],[_0x5d7954(0x1a1),ShapeCanIcon],[_0x5d7954(0x29a),ShapeChartPlusIcon],['ShapeChartStarIcon',ShapeChartStarIcon],[_0x5d7954(0x65a),ShapeChartXIcon],[_0x5d7954(0x5cf),ShapeChevronIcon],[_0x5d7954(0x478),ShapeChordIcon],[_0x5d7954(0x3fc),ShapeCircularArrowIcon],[_0x5d7954(0x434),ShapeCloudCalloutIcon],[_0x5d7954(0x5d4),ShapeCloudIcon],[_0x5d7954(0x5dd),ShapeCornerIcon],['ShapeCornerTabsIcon',ShapeCornerTabsIcon],[_0x5d7954(0x62c),ShapeCubeIcon],[_0x5d7954(0x206),ShapeCurvedConnector3Arrow1Icon],[_0x5d7954(0x4a6),ShapeCurvedConnector3Arrow2Icon],[_0x5d7954(0x350),ShapeCurvedConnector3Icon],[_0x5d7954(0x4f1),ShapeCurvedDownArrowIcon],[_0x5d7954(0x63b),ShapeCurvedLeftArrowIcon],[_0x5d7954(0x3be),ShapeCurvedRightArrowIcon],['ShapeCurvedUpArrowIcon',ShapeCurvedUpArrowIcon],[_0x5d7954(0x39c),ShapeDecagonIcon],['ShapeDiagStripeIcon',ShapeDiagStripeIcon],[_0x5d7954(0x4ad),ShapeDiamondIcon],[_0x5d7954(0x640),ShapeDodecagonIcon],[_0x5d7954(0x4a0),ShapeDonutIcon],[_0x5d7954(0x606),ShapeDoubleWaveIcon],[_0x5d7954(0x510),ShapeDownArrowCalloutIcon],['ShapeDownArrowIcon',ShapeDownArrowIcon],['ShapeEllipseIcon',ShapeEllipseIcon],[_0x5d7954(0x300),ShapeEllipseRibbon2Icon],[_0x5d7954(0x63a),ShapeEllipseRibbonIcon],[_0x5d7954(0x616),ShapeFlowChartAlternateProcessIcon],[_0x5d7954(0x315),ShapeFlowChartCollateIcon],[_0x5d7954(0x435),ShapeFlowChartConnectorIcon],[_0x5d7954(0x238),ShapeFlowChartDecisionIcon],['ShapeFlowChartDelayIcon',ShapeFlowChartDelayIcon],[_0x5d7954(0x259),ShapeFlowChartDisplayIcon],[_0x5d7954(0x345),ShapeFlowChartDocumentIcon],[_0x5d7954(0x4f4),ShapeFlowChartExtractIcon],[_0x5d7954(0x32e),ShapeFlowChartInputOutputIcon],[_0x5d7954(0x598),ShapeFlowChartInternalStorageIcon],[_0x5d7954(0x5e4),ShapeFlowChartMagneticDiskIcon],[_0x5d7954(0x2f5),ShapeFlowChartMagneticDrumIcon],['ShapeFlowChartMagneticTapeIcon',ShapeFlowChartMagneticTapeIcon],[_0x5d7954(0x405),ShapeFlowChartManualInputIcon],['ShapeFlowChartManualOperationIcon',ShapeFlowChartManualOperationIcon],[_0x5d7954(0x614),ShapeFlowChartMergeIcon],[_0x5d7954(0x356),ShapeFlowChartMultidocumentIcon],[_0x5d7954(0x189),ShapeFlowChartOfflineStorageIcon],[_0x5d7954(0x4e3),ShapeFlowChartOffpageConnectorIcon],[_0x5d7954(0x601),ShapeFlowChartOnlineStorageIcon],[_0x5d7954(0x3ee),ShapeFlowChartOrIcon],['ShapeFlowChartPredefinedProcessIcon',ShapeFlowChartPredefinedProcessIcon],[_0x5d7954(0x2aa),ShapeFlowChartPreparationIcon],[_0x5d7954(0x5ac),ShapeFlowChartProcessIcon],[_0x5d7954(0x449),ShapeFlowChartPunchedCardIcon],[_0x5d7954(0x311),ShapeFlowChartPunchedTapeIcon],[_0x5d7954(0x1b2),ShapeFlowChartSortIcon],['ShapeFlowChartSummingJunctionIcon',ShapeFlowChartSummingJunctionIcon],[_0x5d7954(0x511),ShapeFlowChartTerminatorIcon],[_0x5d7954(0x47a),ShapeFolderCornerIcon],['ShapeFrameIcon',ShapeFrameIcon],[_0x5d7954(0x526),ShapeFunnelIcon],[_0x5d7954(0x412),ShapeGear6Icon],[_0x5d7954(0x273),ShapeGear9Icon],[_0x5d7954(0x55b),ShapeHalfFrameIcon],[_0x5d7954(0x2e7),ShapeHeartIcon],[_0x5d7954(0x3b3),ShapeHeptagonIcon],[_0x5d7954(0x64c),ShapeHexagonIcon],[_0x5d7954(0x330),ShapeHomePlateIcon],[_0x5d7954(0x28d),ShapeHorizontalScrollIcon],[_0x5d7954(0x439),ShapeIrregularSeal1Icon],[_0x5d7954(0x32d),ShapeIrregularSeal2Icon],['ShapeLeftArrowCalloutIcon',ShapeLeftArrowCalloutIcon],[_0x5d7954(0x490),ShapeLeftArrowIcon],[_0x5d7954(0x51b),ShapeLeftBraceIcon],['ShapeLeftBracketIcon',ShapeLeftBracketIcon],[_0x5d7954(0x4a3),ShapeLeftCircularArrowIcon],['ShapeLeftRightArrowCalloutIcon',ShapeLeftRightArrowCalloutIcon],[_0x5d7954(0x463),ShapeLeftRightArrowIcon],[_0x5d7954(0x2f1),ShapeLeftRightCircularArrowIcon],[_0x5d7954(0x657),ShapeLeftRightRibbonIcon],['ShapeLeftRightUpArrowIcon',ShapeLeftRightUpArrowIcon],[_0x5d7954(0x549),ShapeLeftUpArrowIcon],['ShapeLightningBoltIcon',ShapeLightningBoltIcon],[_0x5d7954(0x3f9),ShapeLineIcon],[_0x5d7954(0x2bb),ShapeLineInvIcon],[_0x5d7954(0x2c6),ShapeMathDivideIcon],[_0x5d7954(0x284),ShapeMathEqualIcon],[_0x5d7954(0x277),ShapeMathMinusIcon],['ShapeMathMultiplyIcon',ShapeMathMultiplyIcon],[_0x5d7954(0x1f5),ShapeMathNotEqualIcon],[_0x5d7954(0x1f7),ShapeMathPlusIcon],[_0x5d7954(0x5aa),ShapeMoonIcon],[_0x5d7954(0x30d),ShapeNoSmokingIcon],[_0x5d7954(0x3d6),ShapeNonIsoscelesTrapezoidIcon],[_0x5d7954(0x48b),ShapeNotchedRightArrowIcon],[_0x5d7954(0x521),ShapeOctagonIcon],[_0x5d7954(0x22b),ShapeParallelogramIcon],['ShapePentagonIcon',ShapePentagonIcon],[_0x5d7954(0x288),ShapePieIcon],['ShapePieWedgeIcon',ShapePieWedgeIcon],[_0x5d7954(0x322),ShapePlaqueIcon],[_0x5d7954(0x648),ShapePlaqueTabsIcon],[_0x5d7954(0x5a7),ShapePlusIcon],[_0x5d7954(0x636),ShapeQuadArrowCalloutIcon],[_0x5d7954(0x4fb),ShapeQuadArrowIcon],['ShapeRectIcon',ShapeRectIcon],[_0x5d7954(0x48c),ShapeRectTextboxHorizontalIcon],[_0x5d7954(0x5ad),ShapeRectTextboxVerticalIcon],[_0x5d7954(0x5ec),ShapeRibbon2Icon],['ShapeRibbonIcon',ShapeRibbonIcon],[_0x5d7954(0x4cd),ShapeRightArrowCalloutIcon],[_0x5d7954(0x532),ShapeRightArrowIcon],[_0x5d7954(0x54b),ShapeRightBraceIcon],['ShapeRightBracketIcon',ShapeRightBracketIcon],[_0x5d7954(0x644),ShapeRound1RectIcon],[_0x5d7954(0x579),ShapeRound2DiagRectIcon],[_0x5d7954(0x585),ShapeRound2SameRectIcon],['ShapeRoundRectIcon',ShapeRoundRectIcon],['ShapeRtTriangleIcon',ShapeRtTriangleIcon],[_0x5d7954(0x5a4),ShapeSmileyFaceIcon],[_0x5d7954(0x1bc),ShapeSnip1RectIcon],['ShapeSnip2DiagRectIcon',ShapeSnip2DiagRectIcon],[_0x5d7954(0x20b),ShapeSnip2SameRectIcon],[_0x5d7954(0x566),ShapeSnipRoundRectIcon],[_0x5d7954(0x2da),ShapeSquareTabsIcon],[_0x5d7954(0x58d),ShapeStar10Icon],[_0x5d7954(0x600),ShapeStar12Icon],['ShapeStar16Icon',ShapeStar16Icon],[_0x5d7954(0x247),ShapeStar24Icon],[_0x5d7954(0x4d7),ShapeStar32Icon],['ShapeStar4Icon',ShapeStar4Icon],[_0x5d7954(0x197),ShapeStar5Icon],['ShapeStar6Icon',ShapeStar6Icon],['ShapeStar7Icon',ShapeStar7Icon],[_0x5d7954(0x23c),ShapeStar8Icon],['ShapeStraightConnector1Icon',ShapeStraightConnector1Icon],[_0x5d7954(0x216),ShapeStraightConnector2Icon],['ShapeStripedRightArrowIcon',ShapeStripedRightArrowIcon],[_0x5d7954(0x335),ShapeSunIcon],[_0x5d7954(0x1a0),ShapeSwooshArrowIcon],[_0x5d7954(0x605),ShapeTeardropIcon],[_0x5d7954(0x610),ShapeTrapezoidIcon],['ShapeTriangleIcon',ShapeTriangleIcon],[_0x5d7954(0x320),ShapeUpArrowCalloutIcon],[_0x5d7954(0x55d),ShapeUpArrowIcon],[_0x5d7954(0x353),ShapeUpDownArrowCalloutIcon],['ShapeUpDownArrowIcon',ShapeUpDownArrowIcon],['ShapeUturnArrowIcon',ShapeUturnArrowIcon],[_0x5d7954(0x28a),ShapeVerticalScrollIcon],[_0x5d7954(0x1c1),ShapeWaveIcon],['ShapeWedgeEllipseCalloutIcon',ShapeWedgeEllipseCalloutIcon],['ShapeWedgeRectCalloutIcon',ShapeWedgeRectCalloutIcon],[_0x5d7954(0x3f7),ShapeWedgeRoundRectCalloutIcon],[SHEET_SHAPE_EDIT_PANEL_KEY,ShapeEditPanel],[SHAPE_PICKER_COMPONENT,ShapePicker],[IMAGE_CLIP_SHAPE_PICKER_COMPONENT,ImageClipShapePicker]]['forEach'](([_0x1be5f3,_0x97b656])=>{const _0x30cc0d=_0x5d7954;this[_0x30cc0d(0x1e9)](this[_0x30cc0d(0x2f3)][_0x30cc0d(0x2a7)](_0x1be5f3,_0x97b656));});}[_0x5a2394(0x3e5)](){const _0x2962cc=_0x5a2394;this[_0x2962cc(0x5e9)]=this[_0x2962cc(0x3f1)][_0x2962cc(0x418)]({'id':SHEET_SHAPE_EDIT_PANEL_KEY,'header':{'title':this[_0x2962cc(0x34a)]['t']('sheets-shape.formatShape')},'width':0x184,'children':{'label':SHEET_SHAPE_EDIT_PANEL_KEY,...this[_0x2962cc(0x265)]},'onClose':()=>{const _0x883c56=_0x2962cc;this[_0x883c56(0x482)]['focusDrawing'](null),this[_0x883c56(0x4a2)]['setContextValue'](FOCUSING_COMMON_DRAWINGS,![]),this[_0x883c56(0x5e9)]=null;}}),this[_0x2962cc(0x2d1)]=!![];}['_closeShapeEditPanel'](){const _0x1c4256=_0x5a2394;this[_0x1c4256(0x2d1)]=![],this['_sidebarService'][_0x1c4256(0x547)](SHEET_SHAPE_EDIT_PANEL_KEY),this['_sidebarDisposable']=null,this['_contextService'][_0x1c4256(0x343)](FOCUSING_COMMON_DRAWINGS,![]),this[_0x1c4256(0x482)]['focusDrawing'](null);}};SheetsShapeUIController=__decorate([__decorateParam(0x0,IUniverInstanceService),__decorateParam(0x1,Inject(SheetInterceptorService)),__decorateParam(0x2,Inject(ISidebarService)),__decorateParam(0x3,IMenuManagerService),__decorateParam(0x4,Inject(SheetsShapeService)),__decorateParam(0x5,Inject(LocaleService)),__decorateParam(0x6,Inject(ComponentManager)),__decorateParam(0x7,ICommandService),__decorateParam(0x8,IDrawingManagerService),__decorateParam(0x9,Inject(SheetCanvasPopManagerService)),__decorateParam(0xa,IContextService)],SheetsShapeUIController);var name=_0x5a2394(0x61d),version=_0x5a2394(0x27c);const SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY=_0x5a2394(0x504),configSymbol=Symbol(SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={};let ImageClipAdjustController=class ImageClipAdjustController extends Disposable{constructor(_0x4e51e1,_0x498fbc,_0x1b45d5,_0x5cff04,_0x2c7e25){const _0x422f61=_0x5a2394;super(),this[_0x422f61(0x254)]=_0x4e51e1,this[_0x422f61(0x482)]=_0x498fbc,this[_0x422f61(0x400)]=_0x1b45d5,this['_univerInstanceService']=_0x5cff04,this[_0x422f61(0x341)]=_0x2c7e25,_defineProperty(this,'_activeImageId',null),_defineProperty(this,_0x422f61(0x1fe),null),_defineProperty(this,_0x422f61(0x17f),null),_defineProperty(this,_0x422f61(0x4ff),void 0x0),_defineProperty(this,_0x422f61(0x4ef),[]),_defineProperty(this,_0x422f61(0x4fe),0x0),_defineProperty(this,_0x422f61(0x551),0x0),_defineProperty(this,_0x422f61(0x20d),0x0),_defineProperty(this,_0x422f61(0x2cf),0x0),_defineProperty(this,_0x422f61(0x654),![]),_defineProperty(this,_0x422f61(0x458),void 0x0),_defineProperty(this,_0x422f61(0x578),void 0x0),_defineProperty(this,_0x422f61(0x18f),void 0x0),_defineProperty(this,_0x422f61(0x31a),void 0x0),_defineProperty(this,_0x422f61(0x47d),![]),this['_registerFocusChangeHandler'](),this[_0x422f61(0x2ae)]();}[_0x5a2394(0x45d)](){const _0x58eee7=_0x5a2394;this[_0x58eee7(0x516)]();}[_0x5a2394(0x560)](){const _0x4e421e=_0x5a2394;this[_0x4e421e(0x516)](),this[_0x4e421e(0x46d)](!![]);}['_getOrCreateShapeModel'](_0x170e11,_0x6c309e,_0x26a524,_0x56f0ce){const _0x373915=_0x5a2394,_0x5106a9=_0x170e11;if(_0x5106a9===ShapeTypeEnum[_0x373915(0x30c)]||_0x170e11===_0x373915(0x346))return;try{const _0x466766=new ShapeModel(_0x5106a9,_0x373915(0x623)+_0x170e11);if(_0x56f0ce)_0x466766[_0x373915(0x33c)]({'adjustValues':_0x56f0ce},!![]);return _0x466766[_0x373915(0x58a)]({'width':_0x6c309e,'height':_0x26a524}),_0x466766;}catch{return;}}['_getImageDrawingInfo'](_0x34020e,_0x4f9217,_0x55b7a7){const _0x37075e=_0x5a2394,_0xfcd62b={'unitId':_0x34020e,'subUnitId':_0x4f9217,'drawingId':_0x55b7a7},_0x2c0f7f=this[_0x37075e(0x482)]['getDrawingByParam'](_0xfcd62b);if(!_0x2c0f7f||_0x2c0f7f['drawingType']!==DrawingTypeEnum['DRAWING_IMAGE'])return;return _0x2c0f7f;}['_getImagePrstGeom'](_0x89ad43,_0x5390f2,_0x389df1){const _0x484b3f=_0x5a2394,_0x42c752=this[_0x484b3f(0x400)][_0x484b3f(0x534)](_0x89ad43);if(!_0x42c752)return void 0x0;const {scene:_0xb377a6}=_0x42c752,_0x26df98=getDrawingShapeKeyByDrawingSearch({'unitId':_0x89ad43,'subUnitId':_0x5390f2,'drawingId':_0x389df1}),_0x3321e1=_0xb377a6['getObject'](_0x26df98);if(_0x3321e1 instanceof Image){const _0x481743=_0x3321e1[_0x484b3f(0x5b6)];if(_0x481743)return{'prstGeom':_0x481743,'adjustValues':_0x3321e1[_0x484b3f(0x656)]};}}[_0x5a2394(0x46d)](_0x1da113=![]){const _0x5c2f78=_0x5a2394;if(!this[_0x5c2f78(0x1fe)]||!this[_0x5c2f78(0x17f)]||!this['_activeImageId'])return;const _0x51aaad=this['_renderManagerService'][_0x5c2f78(0x534)](this[_0x5c2f78(0x1fe)]);if(!_0x51aaad)return;if(!_0x51aaad[_0x5c2f78(0x42d)](SheetSkeletonManagerService)[_0x5c2f78(0x35e)]())return;const {scene:_0x40cc25}=_0x51aaad,_0x5a8b98=this[_0x5c2f78(0x27d)](this[_0x5c2f78(0x1fe)],this['_subUnitId'],this['_activeImageId']);if(!_0x5a8b98)return;const {transform:_0x48686a}=_0x5a8b98;if(!_0x48686a)return;const {left:_0x15002f,top:_0x3af0bf,width:_0x1d0af1,height:_0x566021,flipX:_0x457bac,flipY:_0xf838ff,angle:angle=0x0}=_0x48686a;if(_0x15002f===void 0x0||_0x3af0bf===void 0x0)return;const _0x1f6cf7=this[_0x5c2f78(0x203)](this[_0x5c2f78(0x1fe)],this['_subUnitId'],this[_0x5c2f78(0x4d1)]);if(!_0x1f6cf7)return;if(_0x1da113){const _0x2cba64=this[_0x5c2f78(0x451)](_0x1f6cf7[_0x5c2f78(0x5b6)],_0x1d0af1||0x0,_0x566021||0x0,_0x1f6cf7[_0x5c2f78(0x652)]);if(!_0x2cba64)return;this[_0x5c2f78(0x4ff)]=_0x2cba64[_0x5c2f78(0x1bf)]();}const _0x1d1d9e=this[_0x5c2f78(0x4ff)];if(!_0x1d1d9e||_0x1d1d9e[_0x5c2f78(0x380)]===0x0)return;for(let _0x3ebbdf=0x0;_0x3ebbdf<_0x1d1d9e['length'];_0x3ebbdf++){const _0xff083c=_0x1d1d9e[_0x3ebbdf];let _0x7c734d=_0xff083c['x'],_0x4adddf=_0xff083c['y'];if(_0x457bac)_0x7c734d=(_0x1d0af1||0x0)-_0x7c734d;if(_0xf838ff)_0x4adddf=(_0x566021||0x0)-_0x4adddf;if(angle!==0x0){const _0x4c9a68=(_0x1d0af1||0x0)/0x2,_0x246612=(_0x566021||0x0)/0x2,_0x36a240=angle*Math['PI']/0xb4,_0x2f32e3=Math[_0x5c2f78(0x422)](_0x36a240),_0x4b9c2b=Math[_0x5c2f78(0x41c)](_0x36a240),_0x244231=_0x7c734d-_0x4c9a68,_0x2a8251=_0x4adddf-_0x246612;_0x7c734d=_0x4c9a68+(_0x244231*_0x2f32e3-_0x2a8251*_0x4b9c2b),_0x4adddf=_0x246612+(_0x244231*_0x4b9c2b+_0x2a8251*_0x2f32e3);}const _0x5ac94b={'x':_0x7c734d,'y':_0x4adddf,'adjName':_0xff083c[_0x5c2f78(0x272)]};this[_0x5c2f78(0x22c)](_0x40cc25,_0x5ac94b,_0x5ac94b[_0x5c2f78(0x272)],_0x15002f,_0x3af0bf,this['_unitId'],this[_0x5c2f78(0x17f)]);}}[_0x5a2394(0x22c)](_0x5eb449,_0x36da5b,_0x868f17,_0x1d308a,_0x4b1798,_0x570467,_0x1e47b3){const _0x59995b=_0x5a2394;if(!this[_0x59995b(0x4d1)])return;const _0xcc3c58=_0x59995b(0x5d6)+this[_0x59995b(0x4d1)]+'-'+_0x868f17,_0x102537=_0x5eb449['getObjectIncludeInGroup'](_0xcc3c58);if(_0x102537){_0x102537[_0x59995b(0x2e5)]({'left':_0x36da5b['x']+_0x1d308a-ShapeDefaultConfig[_0x59995b(0x4c6)],'top':_0x36da5b['y']+_0x4b1798-ShapeDefaultConfig[_0x59995b(0x4c6)]});return;}const _0x5b90cd=new SheetShapeAdjustPointObject(_0xcc3c58,{'left':_0x36da5b['x']+_0x1d308a-ShapeDefaultConfig[_0x59995b(0x4c6)],'top':_0x36da5b['y']+_0x4b1798-ShapeDefaultConfig[_0x59995b(0x4c6)],'adjName':_0x868f17,'shapeId':this['_activeImageId'],'unitId':_0x570467,'subUnitId':_0x1e47b3,'width':ShapeDefaultConfig[_0x59995b(0x4c6)]+0x8,'height':ShapeDefaultConfig[_0x59995b(0x4c6)]+0x8,'zIndex':DRAWING_OBJECT_LAYER_INDEX+0x1,'evented':!![]});this['_shapes'][_0x59995b(0x646)](_0x5b90cd),this[_0x59995b(0x2a8)](_0x5b90cd,_0x5eb449,_0x868f17),_0x5eb449['addObject'](_0x5b90cd,DRAWING_OBJECT_LAYER_INDEX+0x1);}['_clearControls'](){const _0x2d0478=_0x5a2394;if(this['_shapes'][_0x2d0478(0x380)]===0x0)return;this[_0x2d0478(0x4ef)][_0x2d0478(0x386)](_0x3d21ff=>_0x3d21ff['dispose']()),this[_0x2d0478(0x4ef)]=[];}[_0x5a2394(0x5f7)](_0x2f92f9,_0x1b7e8e){const _0x1c7a9f=_0x5a2394;var _0xee0ae7;const _0x7e1d31={'x':0x0,'y':0x0},_0x517750=this[_0x1c7a9f(0x400)]['getRenderById'](_0x2f92f9);if(!_0x517750)return _0x7e1d31;if(!_0x517750['with'](SheetSkeletonManagerService)[_0x1c7a9f(0x628)](_0x1b7e8e))return _0x7e1d31;const _0x3ccd52=_0x517750[_0x1c7a9f(0x42d)](SheetScrollManagerService),_0x293586=_0x3ccd52===null||_0x3ccd52===void 0x0?void 0x0:_0x3ccd52['getCurrentScrollState']();if(!_0x293586)return _0x7e1d31;const _0x4b99f0=(_0xee0ae7=this[_0x1c7a9f(0x53f)][_0x1c7a9f(0x377)](_0x2f92f9))===null||_0xee0ae7===void 0x0?void 0x0:_0xee0ae7['getSheetBySheetId'](_0x1b7e8e);if(!_0x4b99f0)return _0x7e1d31;const _0x1e071e=getViewportByCell(_0x293586['sheetViewStartRow'],_0x293586['sheetViewStartColumn'],_0x517750[_0x1c7a9f(0x1e3)],_0x4b99f0);if(!_0x1e071e)return _0x7e1d31;return{'x':_0x1e071e[_0x1c7a9f(0x5fb)],'y':_0x1e071e[_0x1c7a9f(0x34e)]};}[_0x5a2394(0x52c)](_0x5263f7,_0x41a209){const _0x4c13dc=_0x5a2394;var _0x3e571d,_0xd35ae9;const _0x220bdf=(_0x3e571d=this[_0x4c13dc(0x53f)][_0x4c13dc(0x377)](_0x5263f7))===null||_0x3e571d===void 0x0?void 0x0:_0x3e571d[_0x4c13dc(0x3dd)](_0x41a209);return(_0xd35ae9=_0x220bdf===null||_0x220bdf===void 0x0?void 0x0:_0x220bdf[_0x4c13dc(0x279)]())!==null&&_0xd35ae9!==void 0x0?_0xd35ae9:0x1;}[_0x5a2394(0x2a8)](_0x2d2f57,_0x59ab19,_0x19377f){const _0x33fe71=_0x5a2394;this['disposeWithMe'](toDisposable(_0x2d2f57[_0x33fe71(0x4b6)][_0x33fe71(0x217)]((_0x398cd9,_0x32c4cf)=>{const _0x3a82df=_0x33fe71;var _0x16ad95,_0x15ab15,_0x194d56;const {unitId:_0x5e281b,subUnitId:_0x1c0aa7,drawingId:_0x19f197}=_0x2d2f57[_0x3a82df(0x58b)](),_0x434897=this[_0x3a82df(0x27d)](_0x5e281b,_0x1c0aa7,_0x19f197);if(!(_0x434897===null||_0x434897===void 0x0?void 0x0:_0x434897['transform']))return;const {left:_0x322fb4,top:_0x31f3f3,width:_0x393a61,height:_0x177a31}=_0x434897[_0x3a82df(0x23f)];this[_0x3a82df(0x4fe)]=_0x322fb4||0x0,this['_baseTop']=_0x31f3f3||0x0,this[_0x3a82df(0x20d)]=_0x393a61||0x0,this['_baseHeight']=_0x177a31||0x0;const _0xff634f=Boolean((_0x16ad95=_0x434897[_0x3a82df(0x23f)])===null||_0x16ad95===void 0x0?void 0x0:_0x16ad95[_0x3a82df(0x1ac)]),_0x16431c=Boolean((_0x15ab15=_0x434897[_0x3a82df(0x23f)])===null||_0x15ab15===void 0x0?void 0x0:_0x15ab15[_0x3a82df(0x570)]),_0x3d9f4d=((_0x194d56=_0x434897[_0x3a82df(0x23f)])===null||_0x194d56===void 0x0?void 0x0:_0x194d56['angle'])||0x0,_0x11a109=this[_0x3a82df(0x203)](_0x5e281b,_0x1c0aa7,_0x19f197);if(!_0x11a109)return;const _0x4cb951=this[_0x3a82df(0x451)](_0x11a109[_0x3a82df(0x5b6)],this[_0x3a82df(0x20d)],this[_0x3a82df(0x2cf)],_0x11a109['adjustValues']);if(!_0x4cb951)return;this[_0x3a82df(0x578)]=_0x4cb951,this[_0x3a82df(0x458)]=_0x4cb951[_0x3a82df(0x48a)](_0x19377f);if(!this[_0x3a82df(0x458)])return;this[_0x3a82df(0x654)]=!![],_0x59ab19[_0x3a82df(0x523)]();const _0x5cdaa5=_0x11a109[_0x3a82df(0x5b6)];this[_0x3a82df(0x18f)]=_0x59ab19[_0x3a82df(0x52f)][_0x3a82df(0x217)]((_0x4807cb,_0x341574)=>{const _0x375d61=_0x3a82df;if(!this['_isStartAdjusting'])return;const {offsetX:_0x1ac4bd,offsetY:_0x10d78a}=_0x4807cb,_0x456d2d=this[_0x375d61(0x458)];if(!this[_0x375d61(0x578)]||!_0x456d2d)return;_0x59ab19[_0x375d61(0x523)](),_0x59ab19[_0x375d61(0x1f1)](CURSOR_TYPE[_0x375d61(0x223)]);const _0x5ce4b2={'left':0x0,'top':0x0,'width':this[_0x375d61(0x20d)],'height':this['_baseHeight']},_0x5472fb=this[_0x375d61(0x5f7)](_0x5e281b,_0x1c0aa7),_0x160dce=this[_0x375d61(0x52c)](_0x5e281b,_0x1c0aa7);let _0x4e21cc=_0x1ac4bd/_0x160dce+_0x5472fb['x']-this['_baseLeft'],_0xdcc5e9=_0x10d78a/_0x160dce+_0x5472fb['y']-this[_0x375d61(0x551)];if(_0x3d9f4d!==0x0){const _0x2ae2ff=this[_0x375d61(0x20d)]/0x2,_0x56b3ba=this[_0x375d61(0x2cf)]/0x2,_0x43e961=_0x3d9f4d*Math['PI']/0xb4,_0x560561=Math[_0x375d61(0x422)](_0x43e961),_0x29dec3=Math[_0x375d61(0x41c)](_0x43e961),_0x4e2b9b=_0x4e21cc-_0x2ae2ff,_0x5d6c96=_0xdcc5e9-_0x56b3ba;_0x4e21cc=_0x2ae2ff+(_0x4e2b9b*_0x560561+_0x5d6c96*_0x29dec3),_0xdcc5e9=_0x56b3ba+(-_0x4e2b9b*_0x29dec3+_0x5d6c96*_0x560561);}if(_0xff634f)_0x4e21cc=this[_0x375d61(0x20d)]-_0x4e21cc;if(_0x16431c)_0xdcc5e9=this[_0x375d61(0x2cf)]-_0xdcc5e9;const _0x5828e5=this[_0x375d61(0x578)][_0x375d61(0x5f6)](_0x5ce4b2,{'x':_0x4e21cc,'y':_0xdcc5e9},_0x456d2d,_0xff634f,_0x16431c),_0x360046=_0x456d2d[_0x375d61(0x627)]||_0x456d2d[_0x375d61(0x306)]||_0x456d2d[_0x375d61(0x1af)]||_0x456d2d[_0x375d61(0x642)];if(_0x360046===void 0x0)return;this[_0x375d61(0x578)][_0x375d61(0x3d4)](_0x360046,_0x5828e5),this['_activeShapeModel'][_0x375d61(0x58a)]({'width':this[_0x375d61(0x20d)],'height':this['_baseHeight']}),this['_updateImageAdjValues'](_0x5e281b,_0x1c0aa7,_0x19f197,_0x360046,_0x5828e5),this['_activeAdjustPointList']=this['_activeShapeModel'][_0x375d61(0x1bf)](),this[_0x375d61(0x458)]=this['_activeShapeModel'][_0x375d61(0x48a)](_0x19377f),this['_createControls'](),_0x341574[_0x375d61(0x562)]();}),this[_0x3a82df(0x31a)]=_0x59ab19[_0x3a82df(0x60b)]['subscribeEvent']((_0x579712,_0x207820)=>{const _0x4ce29f=_0x3a82df;this['_adjHandlerPointerMove']['unsubscribe'](),this[_0x4ce29f(0x31a)][_0x4ce29f(0x593)](),_0x59ab19['resetCursor']();if(this[_0x4ce29f(0x578)]){const _0x52327b=this['_activeShapeModel'][_0x4ce29f(0x318)](),_0x2e4525={};for(const _0x316078 of _0x52327b){const _0x1b9518=this[_0x4ce29f(0x578)]['getAdjustValueByName'](_0x316078);if(_0x1b9518!==void 0x0)_0x2e4525[_0x316078]=_0x1b9518;}this[_0x4ce29f(0x341)][_0x4ce29f(0x5ee)](_0x5e281b,_0x1c0aa7,_0x19f197,_0x5cdaa5,_0x2e4525);}this['_activeAdjustInfo']=void 0x0,this[_0x4ce29f(0x578)]=void 0x0,this[_0x4ce29f(0x654)]=![],_0x207820[_0x4ce29f(0x562)](),_0x59ab19[_0x4ce29f(0x2d6)]();}),_0x32c4cf['stopPropagation']();})));}[_0x5a2394(0x371)](_0x88a333,_0xf4e7f6,_0x37b4b3,_0x2ae1c2,_0x53c43d){const _0x4f6a8b=_0x5a2394,_0x17991b=this['_renderManagerService'][_0x4f6a8b(0x534)](_0x88a333);if(!_0x17991b)return;const {scene:_0x4af519}=_0x17991b,_0x26a3a7=getDrawingShapeKeyByDrawingSearch({'unitId':_0x88a333,'subUnitId':_0xf4e7f6,'drawingId':_0x37b4b3}),_0x49496b=_0x4af519[_0x4f6a8b(0x348)](_0x26a3a7);if(_0x49496b instanceof Image){var _0x337094;const _0x5324da=(_0x337094=_0x49496b[_0x4f6a8b(0x656)])!==null&&_0x337094!==void 0x0?_0x337094:{};_0x49496b[_0x4f6a8b(0x246)]({..._0x5324da,[_0x2ae1c2]:_0x53c43d}),_0x49496b[_0x4f6a8b(0x1d2)](!![]);}}['_registerMoveHandler'](){const _0x5dc06b=_0x5a2394,_0x3111bc=this[_0x5dc06b(0x53f)][_0x5dc06b(0x3b9)](UniverInstanceType[_0x5dc06b(0x533)]);this[_0x5dc06b(0x1e9)](_0x3111bc[_0x5dc06b(0x573)](switchMap(_0x13f034=>{const _0x3d2319=_0x5dc06b;if(!_0x13f034)return EMPTY;return _0x13f034[_0x3d2319(0x370)]['pipe'](switchMap(_0x1df020=>{const _0x496b50=_0x3d2319;if(!_0x1df020)return EMPTY;const _0x5c270c=_0x13f034[_0x496b50(0x4c7)](),_0x5309e6=this[_0x496b50(0x400)][_0x496b50(0x534)](_0x5c270c),_0x192255=_0x5309e6===null||_0x5309e6===void 0x0?void 0x0:_0x5309e6['scene'];if(!_0x192255)return EMPTY;return of(_0x192255);}));}))[_0x5dc06b(0x395)](_0x57f479=>{const _0x3b6977=_0x5dc06b,_0x55a8dd=_0x57f479[_0x3b6977(0x5ef)]();this[_0x3b6977(0x1e9)](_0x57f479['onPointerMove$'][_0x3b6977(0x217)](()=>{const _0x1016e6=_0x3b6977;if(this[_0x1016e6(0x47d)])this['_clearControls']();})),this[_0x3b6977(0x1e9)](_0x55a8dd[_0x3b6977(0x337)]['subscribe'](_0x5ff614=>{const _0x46ed8a=_0x3b6977,{objects:_0x5c788d}=_0x5ff614;this['_createControls']();if(_0x5c788d!==null&&_0x5c788d[_0x46ed8a(0x3d0)]===0x1){const _0x5d2342=_0x5c788d['values']()[_0x46ed8a(0x5b4)]()[_0x46ed8a(0x3ff)];if(_0x5d2342 instanceof Image&&_0x5d2342['prstGeom'])this['_isImagePointerDown']=!![];}})),this[_0x3b6977(0x1e9)](_0x55a8dd[_0x3b6977(0x3e0)][_0x3b6977(0x395)](()=>{const _0x4d4d74=_0x3b6977;if(this[_0x4d4d74(0x47d)])this[_0x4d4d74(0x516)]();})),this['disposeWithMe'](_0x57f479[_0x3b6977(0x60b)][_0x3b6977(0x217)](()=>{const _0x444030=_0x3b6977;this[_0x444030(0x47d)]&&(this['_isImagePointerDown']=![],this[_0x444030(0x46d)]());})),this[_0x3b6977(0x1e9)](_0x55a8dd[_0x3b6977(0x397)][_0x3b6977(0x395)](()=>{const _0x36484b=_0x3b6977;if(this[_0x36484b(0x1fe)]&&this[_0x36484b(0x17f)]&&this[_0x36484b(0x4d1)]){const _0x3c2762=this[_0x36484b(0x203)](this[_0x36484b(0x1fe)],this[_0x36484b(0x17f)],this[_0x36484b(0x4d1)]);if(_0x3c2762){var _0x521ce4,_0x333722;const _0x1649a8=this['_getImageDrawingInfo'](this[_0x36484b(0x1fe)],this[_0x36484b(0x17f)],this[_0x36484b(0x4d1)]),_0x3d562d=(_0x1649a8===null||_0x1649a8===void 0x0||(_0x521ce4=_0x1649a8[_0x36484b(0x23f)])===null||_0x521ce4===void 0x0?void 0x0:_0x521ce4[_0x36484b(0x2a5)])||0x0,_0x41e8cc=(_0x1649a8===null||_0x1649a8===void 0x0||(_0x333722=_0x1649a8[_0x36484b(0x23f)])===null||_0x333722===void 0x0?void 0x0:_0x333722['height'])||0x0,_0x4020e3=this['_getOrCreateShapeModel'](_0x3c2762[_0x36484b(0x5b6)],_0x3d562d,_0x41e8cc,_0x3c2762['adjustValues']);_0x4020e3&&(this['_activeAdjustPointList']=_0x4020e3[_0x36484b(0x1bf)](),this[_0x36484b(0x516)](),this[_0x36484b(0x46d)](!![]));}}}));}));}[_0x5a2394(0x596)](){const _0x4c68b7=_0x5a2394;this[_0x4c68b7(0x1e9)](this[_0x4c68b7(0x482)]['focus$'][_0x4c68b7(0x395)](_0xc812ed=>{const _0x564f45=_0x4c68b7;if(_0xc812ed['length']===0x1){const _0x28d614=_0xc812ed[0x0];if(_0x28d614['drawingType']===DrawingTypeEnum['DRAWING_IMAGE']){const {unitId:_0x38558c,subUnitId:_0x56bded,drawingId:_0x1d437b}=_0x28d614,_0x32dbdd=this[_0x564f45(0x203)](_0x38558c,_0x56bded,_0x1d437b);if(_0x32dbdd){var _0x569632,_0x3c5ef9;this[_0x564f45(0x4d1)]=_0x1d437b,this['_unitId']=_0x38558c,this['_subUnitId']=_0x56bded;const _0x117391=this[_0x564f45(0x27d)](_0x38558c,_0x56bded,_0x1d437b),_0x53a043=(_0x117391===null||_0x117391===void 0x0||(_0x569632=_0x117391[_0x564f45(0x23f)])===null||_0x569632===void 0x0?void 0x0:_0x569632[_0x564f45(0x2a5)])||0x0,_0x49f0ac=(_0x117391===null||_0x117391===void 0x0||(_0x3c5ef9=_0x117391['transform'])===null||_0x3c5ef9===void 0x0?void 0x0:_0x3c5ef9[_0x564f45(0x233)])||0x0,_0x11ded1=this[_0x564f45(0x451)](_0x32dbdd[_0x564f45(0x5b6)],_0x53a043,_0x49f0ac,_0x32dbdd[_0x564f45(0x652)]);if(_0x11ded1)this['_activeAdjustPointList']=_0x11ded1[_0x564f45(0x1bf)]();this[_0x564f45(0x516)](),this[_0x564f45(0x46d)](!![]);}else this[_0x564f45(0x2e6)]();}else this[_0x564f45(0x2e6)]();}else this[_0x564f45(0x2e6)]();})),this['disposeWithMe'](this[_0x4c68b7(0x482)][_0x4c68b7(0x3aa)]['subscribe'](_0x437a51=>{const _0x1d7904=_0x4c68b7;if(_0x437a51['length']===0x1){const _0xca6b8b=_0x437a51[0x0],_0x5ef175=this[_0x1d7904(0x482)][_0x1d7904(0x590)](_0xca6b8b);(_0x5ef175===null||_0x5ef175===void 0x0?void 0x0:_0x5ef175[_0x1d7904(0x561)])===DrawingTypeEnum[_0x1d7904(0x622)]&&(this[_0x1d7904(0x4d1)]===_0xca6b8b[_0x1d7904(0x183)]&&(this[_0x1d7904(0x516)](),this[_0x1d7904(0x46d)](!![])));}})),this[_0x4c68b7(0x1e9)](this[_0x4c68b7(0x482)]['remove$'][_0x4c68b7(0x395)](_0x877d6d=>{const _0x3a9785=_0x4c68b7;for(const _0x4066ae of _0x877d6d)if(this[_0x3a9785(0x4d1)]===_0x4066ae[_0x3a9785(0x183)])this['_resetState']();}));}[_0x5a2394(0x2e6)](){const _0x40eaa9=_0x5a2394;this[_0x40eaa9(0x4d1)]=null,this[_0x40eaa9(0x1fe)]=null,this[_0x40eaa9(0x17f)]=null,this[_0x40eaa9(0x4ff)]=void 0x0,this[_0x40eaa9(0x516)]();}};ImageClipAdjustController=__decorate([__decorateParam(0x1,IDrawingManagerService),__decorateParam(0x2,Inject(IRenderManagerService)),__decorateParam(0x3,IUniverInstanceService),__decorateParam(0x4,Inject(ImageShapeClipController))],ImageClipAdjustController);let ShapeSheetChangeController=class ShapeSheetChangeController extends Disposable{constructor(_0x2fd524,_0x1bb2b0,_0x63f2f3,_0x5b892a){const _0xab47e0=_0x5a2394;super(),this[_0xab47e0(0x53f)]=_0x2fd524,this[_0xab47e0(0x508)]=_0x1bb2b0,this['_sheetDrawingService']=_0x63f2f3,this['_sheetsShapeService']=_0x5b892a,this[_0xab47e0(0x5a6)]();}['_initSheetChange'](){const _0x149fd3=_0x5a2394;this[_0x149fd3(0x1e9)](this[_0x149fd3(0x508)][_0x149fd3(0x500)]({'getMutations':_0x3620ad=>{const _0x1bc182=_0x149fd3;if(_0x3620ad['id']===RemoveSheetCommand['id']){const _0x362391=getSheetCommandTarget(this[_0x1bc182(0x53f)],_0x3620ad[_0x1bc182(0x438)]);if(!_0x362391)return{'redos':[],'undos':[]};const {unitId:_0x131ce2,subUnitId:_0x56b48b}=_0x362391,_0x2d35e1=this[_0x1bc182(0x437)][_0x1bc182(0x260)](_0x131ce2,_0x56b48b),_0x26f71b=Object[_0x1bc182(0x282)](_0x2d35e1)[_0x1bc182(0x56b)](_0x478926=>_0x478926['drawingType']===DrawingTypeEnum[_0x1bc182(0x37f)]);if(_0x26f71b[_0x1bc182(0x380)]===0x0)return{'redos':[],'undos':[]};const _0x44d3ea=[],_0x303481=[];for(let _0x3dbde6=0x0;_0x3dbde6<_0x26f71b['length'];_0x3dbde6++){const _0x59aaff=_0x26f71b[_0x3dbde6],_0xca0db2=this[_0x1bc182(0x539)]['getShapeModel'](_0x59aaff['unitId'],_0x59aaff[_0x1bc182(0x3c7)],_0x59aaff['drawingId']);if(!_0xca0db2)continue;const {redo:_0x5830df,undo:_0xeaeb32,objects:_0x42d3db}=this['_sheetDrawingService']['getBatchRemoveOp']([_0x59aaff]);_0x44d3ea['push']({'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0x131ce2,'subUnitId':_0x56b48b,'shapeId':_0x59aaff['drawingId']}}),_0x44d3ea[_0x1bc182(0x646)]({'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x131ce2,'subUnitId':_0x56b48b,'type':DrawingApplyType[_0x1bc182(0x46f)],'op':_0x5830df,'objects':_0x42d3db}}),_0x303481[_0x1bc182(0x646)]({'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x131ce2,'subUnitId':_0x56b48b,'type':DrawingApplyType[_0x1bc182(0x1e1)],'op':_0xeaeb32,'objects':_0x42d3db}}),_0x303481[_0x1bc182(0x646)]({'id':InsertSheetsShapeMutation['id'],'params':{'unitId':_0x131ce2,'subUnitId':_0x56b48b,'shapeId':_0x59aaff[_0x1bc182(0x183)],'shapeType':_0xca0db2['getShapeType'](),'shapeData':JSON[_0x1bc182(0x588)](JSON[_0x1bc182(0x327)](_0xca0db2[_0x1bc182(0x484)]()))}});}return{'redos':_0x44d3ea,'undos':_0x303481};}else{if(_0x3620ad['id']===CopySheetCommand['id']){const {unitId:_0x31faa7,subUnitId:_0x12c394,targetSubUnitId:_0x59b010}=_0x3620ad['params'];if(!_0x31faa7||!_0x12c394||!_0x59b010)return{'redos':[],'undos':[]};const _0x3f0112=this[_0x1bc182(0x437)]['getDrawingData'](_0x31faa7,_0x12c394),_0x13694c=Object[_0x1bc182(0x282)](_0x3f0112)[_0x1bc182(0x56b)](_0x1e8d57=>_0x1e8d57[_0x1bc182(0x561)]===DrawingTypeEnum['DRAWING_SHAPE']);if(_0x13694c['length']===0x0)return{'redos':[],'undos':[]};const _0x112779=[],_0x33bd02=[];for(let _0x565db3=0x0;_0x565db3<_0x13694c['length'];_0x565db3++){const _0x2f87c3=_0x13694c[_0x565db3],_0x252730=this[_0x1bc182(0x539)][_0x1bc182(0x3ae)](_0x2f87c3['unitId'],_0x2f87c3[_0x1bc182(0x3c7)],_0x2f87c3['drawingId']);if(!_0x252730)continue;const _0x451cf6=generateRandomId(),_0x2aa85b={..._0x2f87c3,'unitId':_0x31faa7,'subUnitId':_0x59b010,'drawingId':_0x451cf6},{redo:_0xdeabf6,undo:_0x305663,objects:_0x2b4ee9}=this[_0x1bc182(0x437)][_0x1bc182(0x54d)]([_0x2aa85b]);_0x112779[_0x1bc182(0x646)]({'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x31faa7,'subUnitId':_0x59b010,'type':DrawingApplyType[_0x1bc182(0x1e1)],'op':_0xdeabf6,'objects':_0x2b4ee9}}),_0x112779[_0x1bc182(0x646)]({'id':InsertSheetsShapeMutation['id'],'params':{'unitId':_0x31faa7,'subUnitId':_0x59b010,'shapeId':_0x451cf6,'shapeType':_0x252730[_0x1bc182(0x460)](),'shapeData':JSON[_0x1bc182(0x588)](JSON[_0x1bc182(0x327)](_0x252730[_0x1bc182(0x484)]()))}}),_0x33bd02[_0x1bc182(0x646)]({'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0x31faa7,'subUnitId':_0x59b010,'shapeId':_0x451cf6}}),_0x33bd02[_0x1bc182(0x646)]({'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x31faa7,'subUnitId':_0x59b010,'type':DrawingApplyType[_0x1bc182(0x46f)],'op':_0x305663,'objects':_0x2b4ee9}});}return{'redos':_0x112779,'undos':_0x33bd02};}}return{'redos':[],'undos':[]};}}));}};ShapeSheetChangeController=__decorate([__decorateParam(0x0,Inject(IUniverInstanceService)),__decorateParam(0x1,Inject(SheetInterceptorService)),__decorateParam(0x2,Inject(ISheetDrawingService)),__decorateParam(0x3,Inject(SheetsShapeService))],ShapeSheetChangeController);let ShapeTextEditingRenderController=class ShapeTextEditingRenderController extends Disposable{constructor(_0x28c872,_0x32a724,_0x1c89c4,_0x3c6bb5,_0x1ef220){const _0x4a5dec=_0x5a2394;super(),this[_0x4a5dec(0x254)]=_0x28c872,this[_0x4a5dec(0x647)]=_0x32a724,this[_0x4a5dec(0x482)]=_0x1c89c4,this[_0x4a5dec(0x4a2)]=_0x3c6bb5,this['_sheetsShapeService']=_0x1ef220,_defineProperty(this,'_lastEditingShapeKey',null),this['_initEvents'](),this[_0x4a5dec(0x36d)](),this['_initEditingParams']();}[_0x5a2394(0x55f)](){const _0x4240e7=_0x5a2394,{scene:_0x2ffa81}=this[_0x4240e7(0x254)];this['disposeWithMe'](_0x2ffa81['onDblclick$'][_0x4240e7(0x217)](_0x42a836=>{const _0x514a41=_0x4240e7,{offsetX:_0x4afd03,offsetY:_0x1ca458}=_0x42a836,_0x1581ba=_0x2ffa81[_0x514a41(0x436)](Vector2[_0x514a41(0x210)]([_0x4afd03,_0x1ca458]));if(_0x1581ba instanceof DrawingShape){if(isConnectorShape(this[_0x514a41(0x539)][_0x514a41(0x460)](_0x1581ba[_0x514a41(0x221)],_0x1581ba[_0x514a41(0x3c7)],_0x1581ba['shapeId'])))return;this[_0x514a41(0x647)][_0x514a41(0x312)]({'visible':!![],'unitId':_0x1581ba[_0x514a41(0x221)],'subUnitId':_0x1581ba[_0x514a41(0x3c7)],'shapeId':_0x1581ba[_0x514a41(0x35b)],'shapeKey':_0x1581ba[_0x514a41(0x295)]});}}));}[_0x5a2394(0x36d)](){const _0x5cdc17=_0x5a2394;this[_0x5cdc17(0x1e9)](this[_0x5cdc17(0x482)][_0x5cdc17(0x4b8)][_0x5cdc17(0x395)](_0x27f8a9=>{const _0x45ad49=_0x5cdc17;if(_0x27f8a9[_0x45ad49(0x380)]===0x1){const _0x4e449f=_0x27f8a9[0x0],_0x3d0563=this[_0x45ad49(0x482)][_0x45ad49(0x590)](_0x4e449f);if((_0x3d0563===null||_0x3d0563===void 0x0?void 0x0:_0x3d0563['drawingType'])===DrawingTypeEnum[_0x45ad49(0x37f)]){const _0x192dd4=this[_0x45ad49(0x647)][_0x45ad49(0x415)]();if((_0x192dd4===null||_0x192dd4===void 0x0?void 0x0:_0x192dd4[_0x45ad49(0x35b)])===_0x4e449f[_0x45ad49(0x183)]&&_0x192dd4['visible'])return;if(isConnectorShape(this['_sheetsShapeService']['getShapeType'](_0x4e449f[_0x45ad49(0x221)],_0x4e449f[_0x45ad49(0x3c7)],_0x4e449f['drawingId'])))this[_0x45ad49(0x647)][_0x45ad49(0x312)](null);}else this['_shapeTextEditingService'][_0x45ad49(0x415)]()&&(this[_0x45ad49(0x647)][_0x45ad49(0x607)](!![]),requestAnimationFrame(()=>{const _0x375e1c=_0x45ad49;this[_0x375e1c(0x647)][_0x375e1c(0x312)](null);}));}else this['_shapeTextEditingService'][_0x45ad49(0x415)]()&&(this['_shapeTextEditingService']['setOnSavingEditorData'](!![]),requestAnimationFrame(()=>{const _0x468447=_0x45ad49;this[_0x468447(0x647)]['setEditing'](null);}));})),this['disposeWithMe'](this[_0x5cdc17(0x482)][_0x5cdc17(0x383)][_0x5cdc17(0x395)](_0xcceaf4=>{const _0xc5cfc8=_0x5cdc17,_0x28d503=this[_0xc5cfc8(0x647)][_0xc5cfc8(0x415)]();if(_0x28d503&&_0xcceaf4[_0xc5cfc8(0x40c)](_0x2bf940=>_0x2bf940[_0xc5cfc8(0x183)]===_0x28d503[_0xc5cfc8(0x35b)]))this[_0xc5cfc8(0x647)][_0xc5cfc8(0x312)](null);}));}[_0x5a2394(0x432)](){const _0x116995=_0x5a2394;this['disposeWithMe'](this[_0x116995(0x647)][_0x116995(0x59f)]['subscribe'](_0x4c89c6=>{const _0x557647=_0x116995,{scene:_0x14cbac}=this[_0x557647(0x254)];if(this[_0x557647(0x3e2)]){const _0x4194e3=_0x14cbac[_0x557647(0x328)](this[_0x557647(0x3e2)]);if(_0x4194e3)_0x4194e3['setEditing'](![]);}if(_0x4c89c6){const _0xe492dd=!!_0x4c89c6['visible'],_0x4cb24d=_0x14cbac[_0x557647(0x328)](_0x4c89c6['shapeKey']);_0x4cb24d&&(_0x4cb24d['setEditing'](_0xe492dd),this[_0x557647(0x3e2)]=_0x4c89c6['shapeKey']),this[_0x557647(0x4a2)][_0x557647(0x343)](FOCUSING_SHAPE_TEXT_EDITOR,_0xe492dd);}else this[_0x557647(0x3e2)]=null,this[_0x557647(0x4a2)]['setContextValue'](FOCUSING_SHAPE_TEXT_EDITOR,![]);}));}};ShapeTextEditingRenderController=__decorate([__decorateParam(0x1,Inject(ShapeTextEditingService)),__decorateParam(0x2,IDrawingManagerService),__decorateParam(0x3,IContextService),__decorateParam(0x4,Inject(SheetsShapeService))],ShapeTextEditingRenderController);const ConnectionSiteStyle={'normal':{'fill':ShapeDefaultConfig[_0x5a2394(0x2bc)],'stroke':ShapeDefaultConfig[_0x5a2394(0x257)],'strokeWidth':ShapeDefaultConfig['cxnPointStrokeWidth']},'highlighted':{'fill':_0x5a2394(0x1cb),'stroke':_0x5a2394(0x428),'strokeWidth':0x2}};var SheetBasicShapeConnectionSiteObject=class extends Shape{constructor(_0x1bada2,_0x5bcd3f){const _0xa5ad11=_0x5a2394;super(_0x1bada2,_0x5bcd3f),_defineProperty(this,_0xa5ad11(0x5cb),''),_defineProperty(this,_0xa5ad11(0x2d2),-0x1),_defineProperty(this,'_unitId',''),_defineProperty(this,'_subUnitId',''),_defineProperty(this,_0xa5ad11(0x1a7),![]);if(_0x5bcd3f)this[_0xa5ad11(0x45c)](_0x5bcd3f);}[_0x5a2394(0x25e)](){const _0x1701e3=_0x5a2394;return{'unitId':this['_unitId'],'subUnitId':this[_0x1701e3(0x17f)],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0x1701e3(0x2d2)]};}[_0x5a2394(0x472)](_0xf87838){const _0x579854=_0x5a2394;this[_0x579854(0x1a7)]!==_0xf87838&&(this[_0x579854(0x1a7)]=_0xf87838,this['makeDirty'](!![]));}[_0x5a2394(0x394)](){const _0x3e92d4=_0x5a2394;return this[_0x3e92d4(0x1a7)];}[_0x5a2394(0x45c)](_0x27d98f){const _0x471a61=_0x5a2394;var _0xda2887,_0x49fff3;if(typeof _0x27d98f[_0x471a61(0x604)]!==_0x471a61(0x446))this[_0x471a61(0x5cb)]=_0x27d98f['targetShapeId'];if(typeof _0x27d98f[_0x471a61(0x58e)]!==_0x471a61(0x446))this['_cxnIndex']=_0x27d98f[_0x471a61(0x58e)];if(typeof _0x27d98f[_0x471a61(0x221)]!==_0x471a61(0x446))this['_unitId']=_0x27d98f['unitId'];if(typeof _0x27d98f['subUnitId']!==_0x471a61(0x446))this[_0x471a61(0x17f)]=_0x27d98f[_0x471a61(0x3c7)];if(typeof _0x27d98f[_0x471a61(0x394)]!==_0x471a61(0x446))this[_0x471a61(0x1a7)]=_0x27d98f[_0x471a61(0x394)];this[_0x471a61(0x2e5)]({'width':(_0xda2887=_0x27d98f[_0x471a61(0x2a5)])!==null&&_0xda2887!==void 0x0?_0xda2887:ShapeDefaultConfig[_0x471a61(0x4e2)]*0x2,'height':(_0x49fff3=_0x27d98f[_0x471a61(0x233)])!==null&&_0x49fff3!==void 0x0?_0x49fff3:ShapeDefaultConfig[_0x471a61(0x4e2)]*0x2});}[_0x5a2394(0x4c9)](_0x279473){const _0x26fcab=_0x5a2394,_0x5795a3=this['_isHighlighted']?ConnectionSiteStyle[_0x26fcab(0x37e)]:ConnectionSiteStyle[_0x26fcab(0x45a)];Circle[_0x26fcab(0x40f)](_0x279473,{'radius':ShapeDefaultConfig['cxnPointRadius'],'fill':_0x5795a3['fill'],'stroke':_0x5795a3[_0x26fcab(0x2e2)],'strokeWidth':_0x5795a3['strokeWidth'],'evented':!![]});}};const CONNECTION_SITE_HIT_RADIUS=0xa,SHAPE_BOUNDS_PADDING=0x5;let SheetBasicShapeConnectionPointController=class SheetBasicShapeConnectionPointController extends Disposable{constructor(_0xd8f114,_0x215409,_0x3b7ea9,_0x251165){const _0x17554e=_0x5a2394;super(),this['_context']=_0xd8f114,this[_0x17554e(0x400)]=_0x215409,this[_0x17554e(0x482)]=_0x3b7ea9,this[_0x17554e(0x539)]=_0x251165,_defineProperty(this,_0x17554e(0x4bc),[]),_defineProperty(this,'_activeTargetShapeId',null),_defineProperty(this,_0x17554e(0x205),-0x1),_defineProperty(this,_0x17554e(0x194),null),_defineProperty(this,_0x17554e(0x1fe),''),_defineProperty(this,_0x17554e(0x17f),''),_defineProperty(this,'_draggingConnectorId',null);}['startConnectionDetection'](_0x23037e,_0x2d11c1,_0x36ad7d,_0x2abda9){const _0x55f609=_0x5a2394;this[_0x55f609(0x194)]=_0x23037e,this[_0x55f609(0x1fe)]=_0x2d11c1,this[_0x55f609(0x17f)]=_0x36ad7d,this['_draggingConnectorId']=_0x2abda9;}['updateConnectionDetection'](_0x5ccee9){const _0xe54cac=_0x5a2394;if(!this[_0xe54cac(0x194)])return null;const _0x5b666d=this['_findShapeAtPoint'](_0x5ccee9);return _0x5b666d?(this[_0xe54cac(0x43e)]!==_0x5b666d[_0xe54cac(0x35b)]&&(this[_0xe54cac(0x38f)](),this[_0xe54cac(0x465)](_0x5b666d[_0xe54cac(0x35b)],_0x5b666d[_0xe54cac(0x31e)]),this[_0xe54cac(0x43e)]=_0x5b666d[_0xe54cac(0x35b)]),this['_findNearestConnectionSite'](_0x5ccee9)):(this[_0xe54cac(0x43e)]!==null&&(this[_0xe54cac(0x38f)](),this['_activeTargetShapeId']=null),null);}['endConnectionDetection'](){const _0x5990d9=_0x5a2394;this[_0x5990d9(0x38f)](),this[_0x5990d9(0x194)]=null,this[_0x5990d9(0x43e)]=null,this[_0x5990d9(0x205)]=-0x1,this[_0x5990d9(0x4e8)]=null;}[_0x5a2394(0x4b7)](){const _0x21a3a2=_0x5a2394;if(this[_0x21a3a2(0x43e)]===null||this[_0x21a3a2(0x205)]<0x0)return null;return{'shapeId':this[_0x21a3a2(0x43e)],'cxnIndex':this[_0x21a3a2(0x205)]};}[_0x5a2394(0x635)](_0x279546){const _0x4a8d2b=_0x5a2394,_0x1e51cd=this[_0x4a8d2b(0x482)]['getDrawingData'](this[_0x4a8d2b(0x1fe)],this[_0x4a8d2b(0x17f)]);for(const _0x460a9e of Object[_0x4a8d2b(0x24a)](_0x1e51cd)){if(_0x460a9e===this['_draggingConnectorId'])continue;if(_0x1e51cd[_0x460a9e][_0x4a8d2b(0x561)]!==DrawingTypeEnum[_0x4a8d2b(0x37f)])continue;const _0x39f060=this[_0x4a8d2b(0x539)][_0x4a8d2b(0x3ae)](this[_0x4a8d2b(0x1fe)],this[_0x4a8d2b(0x17f)],_0x460a9e);if(!_0x39f060)continue;if(isConnectorShape(_0x39f060['getShapeType']()))continue;if(_0x39f060[_0x4a8d2b(0x5a9)]()['length']===0x0)continue;if(!this[_0x4a8d2b(0x194)])continue;const _0x5c7dcf=getDrawingShapeKeyByDrawingSearch({'unitId':this[_0x4a8d2b(0x1fe)],'subUnitId':this['_subUnitId'],'drawingId':_0x460a9e}),_0xb117a3=this[_0x4a8d2b(0x194)][_0x4a8d2b(0x328)](_0x5c7dcf);if(!_0xb117a3)continue;const {left:_0x35a053,top:_0x55966e,width:_0x20028a,height:_0x2ed5fe}=_0xb117a3[_0x4a8d2b(0x4e6)](),_0x4f839e=_0x35a053+_0x20028a/0x2,_0x393ddd=_0x55966e+_0x2ed5fe/0x2,_0x25cf90=_0xb117a3[_0x4a8d2b(0x23f)][_0x4a8d2b(0x64b)](),_0x1b6c07=new Transform([_0x25cf90[0x0],_0x25cf90[0x1],_0x25cf90[0x2],_0x25cf90[0x3],_0x4f839e,_0x393ddd]),_0x4a4556=_0xb117a3[_0x4a8d2b(0x558)](),_0x5ef2e5=(_0xb117a3[_0x4a8d2b(0x271)]&&(_0x4a4556===null||_0x4a4556===void 0x0?void 0x0:_0x4a4556[_0x4a8d2b(0x48d)])===RENDER_CLASS_TYPE[_0x4a8d2b(0x4d2)]?_0x4a4556[_0x4a8d2b(0x2db)][_0x4a8d2b(0x4b9)](_0x1b6c07):_0x1b6c07)[_0x4a8d2b(0x3ca)]()[_0x4a8d2b(0x1e4)](_0x279546),_0x5066e5=_0x20028a/0x2,_0x5e69c9=_0x2ed5fe/0x2,_0x29524f=SHAPE_BOUNDS_PADDING;if(_0x5ef2e5['x']>=-_0x5066e5-_0x29524f&&_0x5ef2e5['x']<=_0x5066e5+_0x29524f&&_0x5ef2e5['y']>=-_0x5e69c9-_0x29524f&&_0x5ef2e5['y']<=_0x5e69c9+_0x29524f)return{'shapeId':_0x460a9e,'shapeModel':_0x39f060};}return null;}['_showConnectionSites'](_0x511ef3,_0x43ef28){const _0x1ba077=_0x5a2394;if(!this[_0x1ba077(0x194)])return;const _0x2635f2=getDrawingShapeKeyByDrawingSearch({'unitId':this[_0x1ba077(0x1fe)],'subUnitId':this[_0x1ba077(0x17f)],'drawingId':_0x511ef3}),_0x35b97e=this[_0x1ba077(0x194)][_0x1ba077(0x328)](_0x2635f2);if(!_0x35b97e)return;const {left:_0x42d4b2,top:_0x64e2fe,width:_0xb61e19,height:_0x4f05d4}=_0x35b97e['getRealBound'](),_0x3a5f25=_0x42d4b2+_0xb61e19/0x2,_0x3c5aa5=_0x64e2fe+_0x4f05d4/0x2,_0x3c2eda=_0x35b97e['transform'][_0x1ba077(0x64b)](),_0x1086d9=new Transform([_0x3c2eda[0x0],_0x3c2eda[0x1],_0x3c2eda[0x2],_0x3c2eda[0x3],_0x3a5f25,_0x3c5aa5]),_0x3b7c8d=_0x35b97e[_0x1ba077(0x558)](),_0x1abc95=_0x35b97e['isInGroup']&&(_0x3b7c8d===null||_0x3b7c8d===void 0x0?void 0x0:_0x3b7c8d[_0x1ba077(0x48d)])===RENDER_CLASS_TYPE['GROUP']?_0x3b7c8d[_0x1ba077(0x2db)][_0x1ba077(0x4b9)](_0x1086d9):_0x1086d9;_0x43ef28[_0x1ba077(0x58a)]({'width':_0xb61e19,'height':_0x4f05d4});const _0x4bd663=_0x43ef28[_0x1ba077(0x5a9)]();for(const _0x2368dd of _0x4bd663){const _0x3fcd83=_0x2368dd['x']-_0xb61e19/0x2,_0x5c474b=_0x2368dd['y']-_0x4f05d4/0x2,_0x358570=_0x1abc95[_0x1ba077(0x1e4)]({'x':_0x3fcd83,'y':_0x5c474b}),_0x47fef8=_0x358570['x'],_0x1244a8=_0x358570['y'],_0xb72ba9=new SheetBasicShapeConnectionSiteObject(_0x1ba077(0x2e3)+_0x511ef3+'-'+_0x2368dd['index'],{'left':_0x47fef8-ShapeDefaultConfig['cxnPointRadius'],'top':_0x1244a8-ShapeDefaultConfig[_0x1ba077(0x4e2)],'targetShapeId':_0x511ef3,'cxnIndex':_0x2368dd[_0x1ba077(0x1db)],'unitId':this[_0x1ba077(0x1fe)],'subUnitId':this[_0x1ba077(0x17f)],'width':ShapeDefaultConfig[_0x1ba077(0x4e2)]*0x2,'height':ShapeDefaultConfig['cxnPointRadius']*0x2,'zIndex':DRAWING_OBJECT_LAYER_INDEX+0x2,'evented':![]});this[_0x1ba077(0x4bc)][_0x1ba077(0x646)](_0xb72ba9),this[_0x1ba077(0x194)][_0x1ba077(0x4c2)](_0xb72ba9,DRAWING_OBJECT_LAYER_INDEX+0x2);}}[_0x5a2394(0x55a)](_0x3309af){const _0x4447db=_0x5a2394;let _0x415c81=null,_0x1cee05=Infinity,_0x196446=null;for(const _0x27eb9a of this[_0x4447db(0x4bc)]){const _0x3bc08d=_0x27eb9a['left']+ShapeDefaultConfig[_0x4447db(0x4e2)],_0x23dc5d=_0x27eb9a[_0x4447db(0x278)]+ShapeDefaultConfig[_0x4447db(0x4e2)],_0xbb7385=_0x3309af['x']-_0x3bc08d,_0x156bf9=_0x3309af['y']-_0x23dc5d,_0x430422=Math['sqrt'](_0xbb7385*_0xbb7385+_0x156bf9*_0x156bf9);_0x430422<_0x1cee05&&(_0x1cee05=_0x430422,_0x415c81=_0x27eb9a,_0x196446={'x':_0x3bc08d,'y':_0x23dc5d});}const _0x568f10=_0x1cee05<=CONNECTION_SITE_HIT_RADIUS&&_0x415c81?_0x415c81['getConnectionInfo']()[_0x4447db(0x58e)]:-0x1;if(_0x568f10!==this['_highlightedSiteIndex']){for(const _0x27daeb of this[_0x4447db(0x4bc)]){const _0x50ff23=_0x27daeb[_0x4447db(0x25e)]();_0x27daeb[_0x4447db(0x472)](_0x50ff23['cxnIndex']===_0x568f10);}this[_0x4447db(0x205)]=_0x568f10;}if(_0x1cee05<=CONNECTION_SITE_HIT_RADIUS&&_0x415c81&&_0x196446){const _0x2d0882=_0x415c81['getConnectionInfo'](),_0x569f21=this[_0x4447db(0x57e)](_0x2d0882[_0x4447db(0x35b)],_0x2d0882['cxnIndex']);return{'shapeId':_0x2d0882[_0x4447db(0x35b)],'cxnIndex':_0x2d0882[_0x4447db(0x58e)],'unitId':_0x2d0882[_0x4447db(0x221)],'subUnitId':_0x2d0882[_0x4447db(0x3c7)],'worldPoint':_0x196446,'angle':_0x569f21};}return null;}['_getConnectionSiteAngle'](_0x304a0d,_0x216a6a){const _0x27a73b=_0x5a2394,_0x2938c5=this[_0x27a73b(0x539)][_0x27a73b(0x3ae)](this[_0x27a73b(0x1fe)],this[_0x27a73b(0x17f)],_0x304a0d);if(!_0x2938c5)return 0x0;const _0x3674e6=this[_0x27a73b(0x482)][_0x27a73b(0x590)]({'unitId':this[_0x27a73b(0x1fe)],'subUnitId':this['_subUnitId'],'drawingId':_0x304a0d});if(!(_0x3674e6===null||_0x3674e6===void 0x0?void 0x0:_0x3674e6[_0x27a73b(0x23f)]))return 0x0;const {width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x3674e6[_0x27a73b(0x23f)];_0x2938c5[_0x27a73b(0x58a)]({'width':width,'height':height});const _0x399a73=_0x2938c5[_0x27a73b(0x5a9)]()[_0x27a73b(0x433)](_0x189413=>_0x189413['index']===_0x216a6a);if(!_0x399a73)return 0x0;let _0x4d6fa7=_0x399a73['ang']/0xea60;if(flipX)_0x4d6fa7=0xb4-_0x4d6fa7;if(flipY)_0x4d6fa7=-_0x4d6fa7;return _0x4d6fa7=(_0x4d6fa7%0x168+0x168)%0x168,_0x4d6fa7;}['_clearConnectionSites'](){const _0x35722e=_0x5a2394;for(const _0x33dd89 of this[_0x35722e(0x4bc)])_0x33dd89[_0x35722e(0x2cb)]();this[_0x35722e(0x4bc)]=[],this[_0x35722e(0x205)]=-0x1;}[_0x5a2394(0x2cb)](){const _0x5302be=_0x5a2394;this['_clearConnectionSites'](),super[_0x5302be(0x2cb)]();}};SheetBasicShapeConnectionPointController=__decorate([__decorateParam(0x1,Inject(IRenderManagerService)),__decorateParam(0x2,Inject(IDrawingManagerService)),__decorateParam(0x3,Inject(SheetsShapeService))],SheetBasicShapeConnectionPointController);let SheetShapeClipboardController=class SheetShapeClipboardController extends Disposable{constructor(_0x117740,_0x4f67b6,_0x3e61b2,_0x3aabca,_0x2a1aa3){const _0x1b48db=_0x5a2394;super(),this['_sheetSkeletonService']=_0x117740,this[_0x1b48db(0x536)]=_0x4f67b6,this[_0x1b48db(0x437)]=_0x3e61b2,this[_0x1b48db(0x4ac)]=_0x3aabca,this['_groupCopyPasteController']=_0x2a1aa3,_defineProperty(this,_0x1b48db(0x182),void 0x0),this[_0x1b48db(0x421)](),this[_0x1b48db(0x1df)]();}get[_0x5a2394(0x23b)](){const _0x20fd18=_0x5a2394;return this[_0x20fd18(0x437)][_0x20fd18(0x34c)]();}[_0x5a2394(0x1df)](){const _0x5951c0=_0x5a2394;this[_0x5951c0(0x4a7)][_0x5951c0(0x2ce)](({fromUnitId:_0x4cb8db,fromSubUnitId:_0x54cafd,toUnitId:_0x2d17a3,toSubUnitId:_0x20f2b7,idMap:_0xe407})=>{const _0x4a0e7d=_0x5951c0,_0x1e7560=[],_0x433d58=[];for(const [_0x28cf2f,_0x38369b]of _0xe407['entries']()){const _0x50414a=this[_0x4a0e7d(0x4ac)][_0x4a0e7d(0x3ae)](_0x4cb8db,_0x54cafd,_0x28cf2f);if(!_0x50414a)continue;const _0xcd61db=_0x50414a[_0x4a0e7d(0x460)](),_0x361a99=JSON['parse'](JSON[_0x4a0e7d(0x327)](_0x50414a[_0x4a0e7d(0x484)]()));if(_0x361a99[_0x4a0e7d(0x5d0)]){var _0x4caa2f,_0x2a74db;const _0x53dc9a=(_0x4caa2f=_0x361a99[_0x4a0e7d(0x5d0)][_0x4a0e7d(0x47b)])===null||_0x4caa2f===void 0x0?void 0x0:_0x4caa2f[_0x4a0e7d(0x35b)],_0x133e13=(_0x2a74db=_0x361a99['relation']['to'])===null||_0x2a74db===void 0x0?void 0x0:_0x2a74db[_0x4a0e7d(0x35b)],_0x57f5ac=_0x53dc9a?_0xe407['has'](_0x53dc9a):!![],_0x46388d=_0x133e13?_0xe407[_0x4a0e7d(0x49c)](_0x133e13):!![];if(_0x57f5ac&&_0x53dc9a&&_0x361a99[_0x4a0e7d(0x5d0)][_0x4a0e7d(0x47b)])_0x361a99[_0x4a0e7d(0x5d0)][_0x4a0e7d(0x47b)]={..._0x361a99[_0x4a0e7d(0x5d0)][_0x4a0e7d(0x47b)],'shapeId':_0xe407[_0x4a0e7d(0x359)](_0x53dc9a)};else _0x361a99[_0x4a0e7d(0x5d0)]['from']=void 0x0;if(_0x46388d&&_0x133e13&&_0x361a99['relation']['to'])_0x361a99[_0x4a0e7d(0x5d0)]['to']={..._0x361a99[_0x4a0e7d(0x5d0)]['to'],'shapeId':_0xe407[_0x4a0e7d(0x359)](_0x133e13)};else _0x361a99[_0x4a0e7d(0x5d0)]['to']=void 0x0;}_0x1e7560['push']({'id':InsertSheetsShapeMutation['id'],'params':{'unitId':_0x2d17a3,'subUnitId':_0x20f2b7,'shapeId':_0x38369b,'shapeType':_0xcd61db,'shapeData':_0x361a99}}),_0x433d58[_0x4a0e7d(0x646)]({'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0x2d17a3,'subUnitId':_0x20f2b7,'shapeId':_0x38369b}});}return{'redos':_0x1e7560,'undos':_0x433d58};});}[_0x5a2394(0x421)](){const _0x2a8884=_0x5a2394;this['disposeWithMe'](this['_sheetClipboardService']['addClipboardHook']({'id':_0x2a8884(0x4d8),'onBeforeCopy':(_0x34d8b4,_0x47b710,_0x1d8b9,_0x42d690)=>{const _0x566d15=_0x2a8884;this[_0x566d15(0x182)]=null;const _0x444c75=this[_0x566d15(0x23b)];if(_0x444c75[_0x566d15(0x380)]){const _0x1d3ab3=_0x444c75['filter'](_0x116259=>_0x116259[_0x566d15(0x561)]===DrawingTypeEnum[_0x566d15(0x37f)]);if(_0x1d3ab3[_0x566d15(0x380)]===0x0)return;this[_0x566d15(0x182)]={'unitId':_0x34d8b4,'subUnitId':_0x47b710,'copyType':_0x42d690,'drawings':_0x1d3ab3};}else this['_createCopyInfoByRange'](_0x34d8b4,_0x47b710,_0x1d8b9,_0x42d690);},'onPasteCells':(_0x439857,_0x405534,_0x35f948,_0x4d5aaf)=>{const _0x1ff2aa=_0x2a8884;if(!this[_0x1ff2aa(0x182)])return{'redos':[],'undos':[]};const {pasteType:_0xb24726}=_0x4d5aaf;if(_0xb24726!==PREDEFINED_HOOK_NAME[_0x1ff2aa(0x323)])return{'redos':[],'undos':[]};return this[_0x1ff2aa(0x649)](_0x405534,this[_0x1ff2aa(0x182)]['copyType']===COPY_TYPE[_0x1ff2aa(0x29b)]);},'onPasteUnrecognized':_0x270a53=>{const _0x11e35a=_0x2a8884;if(!this[_0x11e35a(0x182)])return{'redos':[],'undos':[]};return this['_generatePasteMutations'](_0x270a53,this[_0x11e35a(0x182)][_0x11e35a(0x208)]===COPY_TYPE[_0x11e35a(0x29b)]);}}));}[_0x5a2394(0x324)](_0x368a50,_0x3d4b5a,_0x37dac3,_0x19bc60){const _0x1be471=_0x5a2394,_0x2e0af9=this[_0x1be471(0x486)][_0x1be471(0x628)](_0x368a50,_0x3d4b5a);if(!_0x2e0af9)return;const _0x115c60=attachRangeWithCoord(_0x2e0af9,_0x37dac3);if(!_0x115c60)return;const {startX:_0x2d776e,endX:_0x5a5a63,startY:_0x4ea0ce,endY:_0x45b37a}=_0x115c60,_0x5b1d71=this['_sheetDrawingService'][_0x1be471(0x260)](_0x368a50,_0x3d4b5a),_0x3f7012=this[_0x1be471(0x23b)][_0x1be471(0x3bc)]();for(const [_0x3c43bc,_0x45555d]of Object[_0x1be471(0x416)](_0x5b1d71)){if(_0x45555d[_0x1be471(0x561)]!==DrawingTypeEnum[_0x1be471(0x37f)])continue;const {transform:_0x4a2ee8}=_0x45555d;if(!_0x4a2ee8)continue;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0}=_0x4a2ee8;if(_0x2d776e<=left&&_0x5a5a63>=left+width&&_0x4ea0ce<=top&&_0x45b37a>=top+height)_0x3f7012[_0x1be471(0x646)](_0x45555d);}if(_0x3f7012[_0x1be471(0x380)]>0x0)this[_0x1be471(0x182)]={'unitId':_0x368a50,'subUnitId':_0x3d4b5a,'copyType':_0x19bc60,'copyRange':_0x37dac3,'drawings':_0x3f7012};}[_0x5a2394(0x649)](_0x5effd9,_0x30ed17){const _0x2a5b2b=_0x5a2394,{unitId:_0x36d964,subUnitId:_0x4b8215,range:_0x243b9a}=_0x5effd9,_0x4494cb=this[_0x2a5b2b(0x486)][_0x2a5b2b(0x628)](_0x36d964,_0x4b8215);if(!_0x4494cb)return{'redos':[],'undos':[]};const _0x89e7c0=discreteRangeToRange(_0x243b9a),{unitId:_0x4f17ca,subUnitId:_0x36ef06,copyRange:_0x6811bc,drawings:_0x22c235}=this['_copyInfo'],_0x3e5a08=this[_0x2a5b2b(0x486)]['getSkeleton'](_0x4f17ca,_0x36ef06);if(!_0x3e5a08)return{'redos':[],'undos':[]};let _0x439d47;if(!_0x6811bc){let _0x367a20=Infinity,_0x219511=Infinity;for(const _0x1475b9 of _0x22c235){var _0x434a3c;const {left:left=0x0,top:top=0x0}=(_0x434a3c=_0x1475b9[_0x2a5b2b(0x23f)])!==null&&_0x434a3c!==void 0x0?_0x434a3c:{};if(left<_0x367a20)_0x367a20=left;if(top<_0x219511)_0x219511=top;}if(_0x367a20!==Infinity&&_0x219511!==Infinity)_0x439d47={'left':_0x367a20,'top':_0x219511};}const _0x5104c2=new Map();if(!_0x30ed17){for(const _0x230a71 of _0x22c235)_0x5104c2['set'](_0x230a71['drawingId'],generateRandomId());}const _0x51447b=[],_0x308e97=[];for(const _0x179534 of _0x22c235){const {drawingId:_0x85ce0b,transform:_0x3130ae,sheetTransform:_0x36f0f7}=_0x179534;if(!_0x3130ae||!_0x36f0f7)continue;const _0x2d7e0d=this['_updateTransform']({'transform':_0x3130ae,'sheetTransform':_0x36f0f7},{'skeleton':_0x3e5a08,'range':_0x6811bc},{'skeleton':_0x4494cb,'range':_0x89e7c0},_0x439d47);if(_0x30ed17){const {redos:_0x2bd1ae,undos:_0x48e8d}=this[_0x2a5b2b(0x26d)]({'fromUnitId':_0x4f17ca,'fromSubUnitId':_0x36ef06,'toUnitId':_0x36d964,'toSubUnitId':_0x4b8215,'drawing':_0x179534,'newTransforms':_0x2d7e0d});_0x51447b[_0x2a5b2b(0x646)](..._0x2bd1ae),_0x308e97[_0x2a5b2b(0x646)](..._0x48e8d);continue;}const {redos:_0x11f92e,undos:_0x426b85}=this[_0x2a5b2b(0x491)]({'toUnitId':_0x36d964,'toSubUnitId':_0x4b8215,'drawing':_0x179534,'newTransforms':_0x2d7e0d,'newDrawingId':_0x5104c2[_0x2a5b2b(0x359)](_0x85ce0b),'idMap':_0x5104c2});_0x51447b[_0x2a5b2b(0x646)](..._0x11f92e),_0x308e97[_0x2a5b2b(0x646)](..._0x426b85);}return{'redos':_0x51447b,'undos':_0x308e97};}[_0x5a2394(0x26d)](_0x2d06c1){const _0x215859=_0x5a2394,{fromUnitId:_0x3581f1,fromSubUnitId:_0x227128,toUnitId:_0x21508d,toSubUnitId:_0x436412,drawing:_0x54e667,newTransforms:_0xa37b8c}=_0x2d06c1,_0x4e8f70={..._0x54e667,'unitId':_0x21508d,'subUnitId':_0x436412,'transform':_0xa37b8c['transform'],'sheetTransform':_0xa37b8c[_0x215859(0x30a)]};if(_0x21508d===_0x3581f1&&_0x436412===_0x227128){const {redo:_0x3becb3,undo:_0x1ff87e,objects:_0x57c1e4}=this['_sheetDrawingService'][_0x215859(0x32f)]([_0x4e8f70]);return{'redos':[{'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x21508d,'subUnitId':_0x436412,'type':DrawingApplyType['UPDATE'],'op':_0x3becb3,'objects':_0x57c1e4}}],'undos':[{'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x21508d,'subUnitId':_0x436412,'type':DrawingApplyType['UPDATE'],'op':_0x1ff87e,'objects':_0x57c1e4}}]};}else{const _0x5e0b68=this[_0x215859(0x437)]['getBatchRemoveOp']([_0x54e667]),_0x503768=this[_0x215859(0x437)][_0x215859(0x54d)]([_0x4e8f70]),_0x2a2057=this[_0x215859(0x4ac)][_0x215859(0x3ae)](_0x54e667[_0x215859(0x221)],_0x54e667[_0x215859(0x3c7)],_0x54e667[_0x215859(0x183)]);if(!_0x2a2057)return{'redos':[],'undos':[]};const _0x400d63=_0x2a2057[_0x215859(0x460)](),_0x2d2b2a=JSON[_0x215859(0x588)](JSON[_0x215859(0x327)](_0x2a2057[_0x215859(0x484)]()));return{'redos':[{'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x3581f1,'subUnitId':_0x227128,'type':DrawingApplyType[_0x215859(0x46f)],'op':_0x5e0b68[_0x215859(0x26e)],'objects':_0x5e0b68[_0x215859(0x5c2)]}},{'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0x3581f1,'subUnitId':_0x227128,'shapeId':_0x54e667[_0x215859(0x183)]}},{'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x21508d,'subUnitId':_0x436412,'type':DrawingApplyType[_0x215859(0x1e1)],'op':_0x503768[_0x215859(0x26e)],'objects':_0x503768[_0x215859(0x5c2)]}},{'id':InsertSheetsShapeMutation['id'],'params':{'unitId':_0x21508d,'subUnitId':_0x436412,'shapeId':_0x54e667[_0x215859(0x183)],'shapeType':_0x400d63,'shapeData':_0x2d2b2a}}],'undos':[{'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x3581f1,'subUnitId':_0x227128,'type':DrawingApplyType['INSERT'],'op':_0x5e0b68['undo'],'objects':_0x5e0b68[_0x215859(0x5c2)]}},{'id':InsertSheetsShapeMutation['id'],'params':{'unitId':_0x3581f1,'subUnitId':_0x227128,'shapeId':_0x54e667[_0x215859(0x183)],'shapeType':_0x400d63,'shapeData':_0x2d2b2a}},{'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x21508d,'subUnitId':_0x436412,'type':DrawingApplyType[_0x215859(0x46f)],'op':_0x503768[_0x215859(0x5d8)],'objects':_0x503768[_0x215859(0x5c2)]}},{'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0x21508d,'subUnitId':_0x436412,'shapeId':_0x54e667[_0x215859(0x183)]}}]};}}[_0x5a2394(0x491)](_0x3e7766){const _0x2330d5=_0x5a2394,{toUnitId:_0x23aaa7,toSubUnitId:_0x3adad2,drawing:_0x50da9d,newTransforms:_0x239a97,newDrawingId:_0x126b22,idMap:_0x4ebabb}=_0x3e7766,_0x127b59={..._0x50da9d,'unitId':_0x23aaa7,'subUnitId':_0x3adad2,'drawingId':_0x126b22,'transform':_0x239a97[_0x2330d5(0x23f)],'sheetTransform':_0x239a97[_0x2330d5(0x30a)]},{redo:_0x280a30,undo:_0x2e3116,objects:_0x4a564c}=this[_0x2330d5(0x437)][_0x2330d5(0x54d)]([_0x127b59]),_0x52a3bf=this[_0x2330d5(0x4ac)]['getShapeModel'](_0x50da9d['unitId'],_0x50da9d[_0x2330d5(0x3c7)],_0x50da9d[_0x2330d5(0x183)]);if(!_0x52a3bf)return{'redos':[],'undos':[]};const _0x4d6ab5=_0x52a3bf[_0x2330d5(0x460)](),_0x498ccb=JSON[_0x2330d5(0x588)](JSON[_0x2330d5(0x327)](_0x52a3bf[_0x2330d5(0x484)]()));if(_0x498ccb['relation']){var _0x257495,_0x2b3b1d;const _0x377d10=(_0x257495=_0x498ccb['relation'][_0x2330d5(0x47b)])===null||_0x257495===void 0x0?void 0x0:_0x257495[_0x2330d5(0x35b)],_0x12041f=(_0x2b3b1d=_0x498ccb[_0x2330d5(0x5d0)]['to'])===null||_0x2b3b1d===void 0x0?void 0x0:_0x2b3b1d[_0x2330d5(0x35b)],_0x347dbd=_0x377d10?_0x4ebabb[_0x2330d5(0x49c)](_0x377d10):!![],_0x3fa8df=_0x12041f?_0x4ebabb[_0x2330d5(0x49c)](_0x12041f):!![];if(_0x347dbd&&_0x377d10&&_0x498ccb[_0x2330d5(0x5d0)][_0x2330d5(0x47b)])_0x498ccb[_0x2330d5(0x5d0)][_0x2330d5(0x47b)]={..._0x498ccb[_0x2330d5(0x5d0)][_0x2330d5(0x47b)],'shapeId':_0x4ebabb[_0x2330d5(0x359)](_0x377d10)};else _0x498ccb[_0x2330d5(0x5d0)][_0x2330d5(0x47b)]=void 0x0;if(_0x3fa8df&&_0x12041f&&_0x498ccb[_0x2330d5(0x5d0)]['to'])_0x498ccb[_0x2330d5(0x5d0)]['to']={..._0x498ccb['relation']['to'],'shapeId':_0x4ebabb[_0x2330d5(0x359)](_0x12041f)};else _0x498ccb[_0x2330d5(0x5d0)]['to']=void 0x0;}return{'redos':[{'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x23aaa7,'subUnitId':_0x3adad2,'type':DrawingApplyType[_0x2330d5(0x1e1)],'op':_0x280a30,'objects':_0x4a564c}},{'id':InsertSheetsShapeMutation['id'],'params':{'unitId':_0x23aaa7,'subUnitId':_0x3adad2,'shapeId':_0x126b22,'shapeType':_0x4d6ab5,'shapeData':_0x498ccb}}],'undos':[{'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x23aaa7,'subUnitId':_0x3adad2,'type':DrawingApplyType['REMOVE'],'op':_0x2e3116,'objects':_0x4a564c}},{'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0x23aaa7,'subUnitId':_0x3adad2,'shapeId':_0x126b22}}]};}['_updateTransform'](_0x51ad94,_0x10bdcf,_0x5a4609,_0xcf2458){const _0x2e29df=_0x5a2394;var _0x14e48c;const {range:_0x4ff821,skeleton:_0x2d646a}=_0x10bdcf,{range:_0x332207,skeleton:_0x743760}=_0x5a4609,{transform:_0x77e56,sheetTransform:_0x42bb49}=_0x51ad94,_0x162a47={..._0x77e56};if(_0x4ff821){const _0x3be512=attachRangeWithCoord(_0x2d646a,_0x4ff821),_0x54fa4e=attachRangeWithCoord(_0x743760,_0x332207);if(_0x3be512&&_0x54fa4e){var _0x26371b,_0x2bede8;const _0x23a96a=_0x54fa4e[_0x2e29df(0x50f)]-_0x3be512[_0x2e29df(0x50f)],_0x3f4136=_0x54fa4e[_0x2e29df(0x4c1)]-_0x3be512[_0x2e29df(0x4c1)];_0x162a47['left']=((_0x26371b=_0x162a47['left'])!==null&&_0x26371b!==void 0x0?_0x26371b:0x0)+_0x23a96a,_0x162a47[_0x2e29df(0x278)]=((_0x2bede8=_0x162a47[_0x2e29df(0x278)])!==null&&_0x2bede8!==void 0x0?_0x2bede8:0x0)+_0x3f4136;}}else{const _0x42c654=attachRangeWithCoord(_0x743760,_0x332207);if(_0xcf2458&&_0x42c654){var _0x350754,_0x24593c;const _0x5b3d10=((_0x350754=_0x162a47['left'])!==null&&_0x350754!==void 0x0?_0x350754:0x0)-_0xcf2458[_0x2e29df(0x384)],_0x669365=((_0x24593c=_0x162a47[_0x2e29df(0x278)])!==null&&_0x24593c!==void 0x0?_0x24593c:0x0)-_0xcf2458['top'];_0x162a47[_0x2e29df(0x384)]=_0x42c654[_0x2e29df(0x50f)]+_0x5b3d10,_0x162a47[_0x2e29df(0x278)]=_0x42c654[_0x2e29df(0x4c1)]+_0x669365;}else _0x162a47[_0x2e29df(0x384)]=_0x42c654===null||_0x42c654===void 0x0?void 0x0:_0x42c654[_0x2e29df(0x50f)],_0x162a47[_0x2e29df(0x278)]=_0x42c654===null||_0x42c654===void 0x0?void 0x0:_0x42c654['startY'];}return{'transform':_0x162a47,'sheetTransform':(_0x14e48c=transformToDrawingPosition(_0x162a47,_0x743760))!==null&&_0x14e48c!==void 0x0?_0x14e48c:_0x42bb49};}};SheetShapeClipboardController=__decorate([__decorateParam(0x0,Inject(SheetSkeletonService)),__decorateParam(0x1,Inject(ISheetClipboardService)),__decorateParam(0x2,Inject(ISheetDrawingService)),__decorateParam(0x3,Inject(SheetsShapeService)),__decorateParam(0x4,Inject(SheetsDrawingGroupCopyPasteController))],SheetShapeClipboardController);var SheetShapeConnectorHandlerObject=class extends Shape{constructor(_0x47d340,_0x4498b5){const _0x370293=_0x5a2394;super(_0x47d340,_0x4498b5),_defineProperty(this,_0x370293(0x517),null),_defineProperty(this,_0x370293(0x417),null),_defineProperty(this,_0x370293(0x1fe),null),_defineProperty(this,_0x370293(0x17f),null),_defineProperty(this,_0x370293(0x1d4),![]);if(_0x4498b5)this['setShapeProps'](_0x4498b5);}['getDrawingSearch'](){const _0x5f50cd=_0x5a2394;return{'unitId':this[_0x5f50cd(0x1fe)],'subUnitId':this[_0x5f50cd(0x17f)],'drawingId':this[_0x5f50cd(0x517)]};}[_0x5a2394(0x45c)](_0x342c23){const _0x1cb89b=_0x5a2394;if(typeof _0x342c23['shapeId']!=='undefined')this[_0x1cb89b(0x517)]=_0x342c23[_0x1cb89b(0x35b)];if(typeof _0x342c23[_0x1cb89b(0x221)]!=='undefined')this[_0x1cb89b(0x1fe)]=_0x342c23[_0x1cb89b(0x221)];if(typeof _0x342c23['subUnitId']!==_0x1cb89b(0x446))this['_subUnitId']=_0x342c23[_0x1cb89b(0x3c7)];if(typeof _0x342c23['isStartConnectorPoint']!==_0x1cb89b(0x446))this[_0x1cb89b(0x1d4)]=_0x342c23[_0x1cb89b(0x3f0)];this[_0x1cb89b(0x2e5)]({'width':_0x342c23[_0x1cb89b(0x2a5)],'height':_0x342c23['height']});}[_0x5a2394(0x4c9)](_0x1ec71f){const _0x4b270b=_0x5a2394;Circle[_0x4b270b(0x40f)](_0x1ec71f,{'radius':ShapeDefaultConfig[_0x4b270b(0x4e2)],'fill':ShapeDefaultConfig[_0x4b270b(0x2bc)],'stroke':ShapeDefaultConfig[_0x4b270b(0x257)],'strokeWidth':ShapeDefaultConfig[_0x4b270b(0x43a)],'evented':!![]});}};let SheetShapeConnectorController=class SheetShapeConnectorController extends Disposable{constructor(_0x33f04a,_0x1e8398,_0x148f8f,_0x476062,_0x1a6016,_0xae1979,_0x342b63,_0x25a085){const _0x334d54=_0x5a2394;super(),this['_context']=_0x33f04a,this[_0x334d54(0x2c9)]=_0x1e8398,this[_0x334d54(0x400)]=_0x148f8f,this[_0x334d54(0x482)]=_0x476062,this['_univerInstanceService']=_0x1a6016,this[_0x334d54(0x539)]=_0xae1979,this['_sheetShapeAdjustController']=_0x342b63,this[_0x334d54(0x4fa)]=_0x25a085,_defineProperty(this,_0x334d54(0x379),void 0x0),_defineProperty(this,_0x334d54(0x1fe),void 0x0),_defineProperty(this,'_subUnitId',void 0x0),_defineProperty(this,'_connectorObjects',[]),_defineProperty(this,_0x334d54(0x655),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':![],'flipY':![]}),_defineProperty(this,'_activeShapeModel',void 0x0),_defineProperty(this,'_isConnecting',![]),_defineProperty(this,'_isDrawingShapePointDown',![]),_defineProperty(this,_0x334d54(0x3d7),![]),_defineProperty(this,_0x334d54(0x2c4),void 0x0),_defineProperty(this,_0x334d54(0x3cc),void 0x0),_defineProperty(this,'_currentConnectionTarget',null),this[_0x334d54(0x477)]();}['_initialize'](){const _0xf57a95=_0x5a2394;this[_0xf57a95(0x2b3)](),this[_0xf57a95(0x3ab)]();}[_0x5a2394(0x3ac)](){const _0x5d1982=_0x5a2394;if(!this[_0x5d1982(0x1fe)]||!this[_0x5d1982(0x17f)]||!this[_0x5d1982(0x379)])return;const _0x3c1155={'unitId':this['_unitId'],'subUnitId':this[_0x5d1982(0x17f)],'drawingId':this[_0x5d1982(0x379)]},{transform:_0x130caf}=this[_0x5d1982(0x482)][_0x5d1982(0x590)](_0x3c1155);if(!_0x130caf)return;return{'left':_0x130caf[_0x5d1982(0x384)]||0x0,'top':_0x130caf[_0x5d1982(0x278)]||0x0,'width':_0x130caf[_0x5d1982(0x2a5)]||0x0,'height':_0x130caf[_0x5d1982(0x233)]||0x0,'flipX':_0x130caf['flipX']||![],'flipY':_0x130caf[_0x5d1982(0x570)]||![],'angle':_0x130caf[_0x5d1982(0x195)]};}['_addShapeConnectorHandlerObjects'](){const _0x2b64c0=_0x5a2394;if(this[_0x2b64c0(0x1fe)]===void 0x0||this[_0x2b64c0(0x17f)]===void 0x0||this['_activeShapeId']===void 0x0)return;const _0x241ccd=this[_0x2b64c0(0x400)][_0x2b64c0(0x534)](this['_unitId']);if(!_0x241ccd)return;if(!_0x241ccd[_0x2b64c0(0x42d)](SheetSkeletonManagerService)[_0x2b64c0(0x35e)]())return;const {scene:_0x1697cc}=_0x241ccd,_0x5ae2f4=this[_0x2b64c0(0x3ac)]();if(!_0x5ae2f4)return;const _0xde335=this[_0x2b64c0(0x539)][_0x2b64c0(0x3ae)](this[_0x2b64c0(0x1fe)],this[_0x2b64c0(0x17f)],this['_activeShapeId']);if(!_0xde335)return;if(!isConnectorShape(_0xde335['getShapeType']()))return;const _0x409fef=_0xde335[_0x2b64c0(0x57f)]();if(_0x409fef[_0x2b64c0(0x380)]<0x2)return;const _0x12bdf5=new ConnectorCoordinateTransform(_0x5ae2f4),_0x2b203c=_0x409fef[0x0],_0x11054a=_0x409fef[_0x409fef[_0x2b64c0(0x380)]-0x1],_0x1a51f0=_0x12bdf5['localToWorld'](_0x2b203c),_0x3abbc1=_0x12bdf5['localToWorld'](_0x11054a);this['_addShapeConnectorHandlerObject'](_0x1697cc,{..._0x1a51f0},!![]),this[_0x2b64c0(0x473)](_0x1697cc,{..._0x3abbc1},![]);}[_0x5a2394(0x473)](_0x56e2aa,_0x577d75,_0x36435c){const _0x587c3c=_0x5a2394;if(this[_0x587c3c(0x379)]===void 0x0||this['_unitId']===void 0x0||this['_subUnitId']===void 0x0)return;const _0x3728a2='connector-handler-'+this[_0x587c3c(0x1fe)]+'-'+this['_subUnitId']+'-'+this[_0x587c3c(0x379)]+'-'+(_0x36435c?_0x587c3c(0x1c4):_0x587c3c(0x530)),_0x78628b=_0x56e2aa[_0x587c3c(0x328)](_0x3728a2);if(_0x78628b){_0x78628b['transformByState']({'left':_0x577d75['x']-ShapeDefaultConfig[_0x587c3c(0x4e2)],'top':_0x577d75['y']-ShapeDefaultConfig[_0x587c3c(0x4e2)]});return;}const _0x4f6868=new SheetShapeConnectorHandlerObject(_0x3728a2,{'left':_0x577d75['x']-ShapeDefaultConfig[_0x587c3c(0x4e2)],'top':_0x577d75['y']-ShapeDefaultConfig[_0x587c3c(0x4e2)],'shapeId':this[_0x587c3c(0x379)],'unitId':this[_0x587c3c(0x1fe)],'subUnitId':this[_0x587c3c(0x17f)],'isStartConnectorPoint':_0x36435c,'width':ShapeDefaultConfig[_0x587c3c(0x4e2)]*0x2,'height':ShapeDefaultConfig[_0x587c3c(0x4e2)]*0x2,'zIndex':DRAWING_OBJECT_LAYER_INDEX+0x1,'evented':!![]});this[_0x587c3c(0x31f)][_0x587c3c(0x646)](_0x4f6868),this[_0x587c3c(0x576)](_0x4f6868,_0x56e2aa,_0x36435c),_0x56e2aa[_0x587c3c(0x4c2)](_0x4f6868,DRAWING_OBJECT_LAYER_INDEX+0x1);}[_0x5a2394(0x5f7)](_0x37f627,_0x485b47){const _0x27d19e=_0x5a2394;var _0x55a981;const _0x586808={'x':0x0,'y':0x0};if(!_0x37f627||!_0x485b47)return _0x586808;const _0x36a9b0=this[_0x27d19e(0x400)]['getRenderById'](_0x37f627);if(!_0x36a9b0)return _0x586808;if(!_0x36a9b0[_0x27d19e(0x42d)](SheetSkeletonManagerService)[_0x27d19e(0x628)](_0x485b47))return _0x586808;const _0x4bb5b2=_0x36a9b0['with'](SheetScrollManagerService),_0x31a5c8=_0x4bb5b2===null||_0x4bb5b2===void 0x0?void 0x0:_0x4bb5b2['getCurrentScrollState']();if(!_0x31a5c8)return _0x586808;const _0x5fbcf0=(_0x55a981=this[_0x27d19e(0x53f)][_0x27d19e(0x377)](_0x37f627))===null||_0x55a981===void 0x0?void 0x0:_0x55a981[_0x27d19e(0x3dd)](_0x485b47);if(!_0x5fbcf0)return _0x586808;const _0x5e80af=getViewportByCell(_0x31a5c8[_0x27d19e(0x191)],_0x31a5c8[_0x27d19e(0x444)],_0x36a9b0[_0x27d19e(0x1e3)],_0x5fbcf0);if(!_0x5e80af)return _0x586808;return{'x':_0x5e80af[_0x27d19e(0x5fb)],'y':_0x5e80af[_0x27d19e(0x34e)]};}[_0x5a2394(0x52c)](_0x34dde5,_0x2bf18c){const _0x289eef=_0x5a2394;var _0x3fce3e,_0x41cae1;const _0x1248d2=(_0x3fce3e=this[_0x289eef(0x53f)][_0x289eef(0x377)](_0x34dde5))===null||_0x3fce3e===void 0x0?void 0x0:_0x3fce3e['getSheetBySheetId'](_0x2bf18c);return(_0x41cae1=_0x1248d2===null||_0x1248d2===void 0x0?void 0x0:_0x1248d2['getZoomRatio']())!==null&&_0x41cae1!==void 0x0?_0x41cae1:0x1;}[_0x5a2394(0x1c9)](_0x449508,_0x40f66d,_0x484850,_0x253384,_0x38a58e){const _0x2cc4c9=_0x5a2394;this[_0x2cc4c9(0x2c4)]['unsubscribe'](),this[_0x2cc4c9(0x3cc)]['unsubscribe'](),this[_0x2cc4c9(0x4f2)][_0x2cc4c9(0x560)]();const _0xf73a8b=this[_0x2cc4c9(0x4e4)];this[_0x2cc4c9(0x4fa)][_0x2cc4c9(0x52e)]();const _0x588ee7=this[_0x2cc4c9(0x5f7)](this['_unitId'],this[_0x2cc4c9(0x17f)]),_0x2e8772=this[_0x2cc4c9(0x52c)](this[_0x2cc4c9(0x1fe)],this[_0x2cc4c9(0x17f)]),_0x238828={'x':_0x484850[_0x2cc4c9(0x396)]/_0x2e8772+_0x588ee7['x'],'y':_0x484850[_0x2cc4c9(0x2b1)]/_0x2e8772+_0x588ee7['y']},_0xba870e=_0xf73a8b?_0xf73a8b['worldPoint']:_0x238828,_0x53329b=_0x253384?this['_activeShapeModel']['getEndConnectInfo']():this['_activeShapeModel'][_0x2cc4c9(0x5ba)](),_0x39ce35=this['_activeShapeModel'][_0x2cc4c9(0x460)]();if(!_0x53329b)this[_0x2cc4c9(0x5f3)](_0x40f66d,_0xba870e,_0x253384,_0xf73a8b,_0x38a58e,_0x39ce35);else this[_0x2cc4c9(0x4ba)](_0x53329b,_0xba870e,_0x253384,_0xf73a8b,_0x38a58e);this[_0x2cc4c9(0x50d)]=![],this[_0x2cc4c9(0x3d7)]=![],this[_0x2cc4c9(0x4e4)]=null,_0x449508[_0x2cc4c9(0x2d6)]();}['_handleFreeEndpointPointerUp'](_0x7d3fa,_0x457054,_0x3e8313,_0x4cdb3a,_0x17e0cc,_0x5ee5e5){const _0x1ee07d=_0x5a2394,_0x3e952d=_0x5ee5e5===ShapeTypeEnum[_0x1ee07d(0x255)]||_0x5ee5e5===ShapeTypeEnum['StraightConnector1'],_0x3d64d4=_0x3e8313?_0x457054:_0x7d3fa,_0x5d2297=_0x3e8313?_0x7d3fa:_0x457054,_0x64ace4=this['_activeShapeModel']['getConnectorLinePoints'](),_0x21b54e=isCurvedConnectorShape(this[_0x1ee07d(0x578)]['getShapeType']()),_0x1d70fc=ConnectorCoordinateTransform['getBentTypeFromPoints'](_0x64ace4,_0x21b54e),_0x23cd6a=_0x3e952d?ConnectorCoordinateTransform[_0x1ee07d(0x4aa)](_0x3d64d4,_0x5d2297):ConnectorCoordinateTransform[_0x1ee07d(0x572)](_0x7d3fa,_0x457054,_0x3e8313,_0x1d70fc);if(_0x4cdb3a)this[_0x1ee07d(0x631)](_0x23cd6a,_0x4cdb3a,_0x3e8313,_0x17e0cc);else this['_executeResizeCommand'](_0x23cd6a,_0x17e0cc);}[_0x5a2394(0x4ba)](_0x31cdb4,_0x51f8ff,_0x19d728,_0x101fa0,_0x605564){const _0x2d3f0a=_0x5a2394,_0x1e382b=this[_0x2d3f0a(0x226)](_0x31cdb4);if(!_0x1e382b)return;const _0x510b91=_0x101fa0?_0x101fa0[_0x2d3f0a(0x195)]:this[_0x2d3f0a(0x319)](_0x1e382b[_0x2d3f0a(0x331)],_0x51f8ff);let _0x563894;if(_0x101fa0){const _0x3e9225=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x101fa0[_0x2d3f0a(0x221)],'subUnitId':_0x101fa0[_0x2d3f0a(0x3c7)],'drawingId':_0x101fa0[_0x2d3f0a(0x35b)]});if(_0x3e9225===null||_0x3e9225===void 0x0?void 0x0:_0x3e9225['transform']){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x23a0d6}=_0x3e9225['transform'];_0x563894=getBasicShapeRotateBound({'left':left,'top':top,'width':width,'height':height},_0x23a0d6||0x0);}else _0x563894={'left':_0x51f8ff['x'],'top':_0x51f8ff['y'],'width':0x0,'height':0x0};}else _0x563894={'left':_0x51f8ff['x'],'top':_0x51f8ff['y'],'width':0x0,'height':0x0};const _0x434ac6={'point':_0x51f8ff,'angle':_0x510b91,'bounds':_0x563894},_0x4aaf4c=_0x19d728?_0x434ac6:_0x1e382b,_0x505d34=_0x19d728?_0x1e382b:_0x434ac6,_0x3beadf=this[_0x2d3f0a(0x578)][_0x2d3f0a(0x460)](),_0x5079f5=routeConnectorLineShape(_0x4aaf4c,_0x505d34,_0x3beadf);this['_activeShapeModel']['removeLinePoints']();const _0x5dede1=computeConnectorRouteLayout(_0x5079f5,_0x3beadf);if(_0x101fa0)this[_0x2d3f0a(0x5cd)](_0x5dede1,_0x101fa0,_0x31cdb4,_0x19d728,_0x605564);else this[_0x2d3f0a(0x49d)](_0x5dede1,_0x31cdb4,_0x19d728,_0x605564);}[_0x5a2394(0x631)](_0xdd23fb,_0x2eda13,_0x1f5062,_0x5f2516){const _0x74607c=_0x5a2394,_0x21bc49=this[_0x74607c(0x578)]['getShapeData']()[_0x74607c(0x5d0)],_0x176e4d={..._0x21bc49},_0x115136={'shapeId':_0x2eda13[_0x74607c(0x35b)],'cxnIndex':_0x2eda13['cxnIndex']};if(_0x1f5062)_0x176e4d[_0x74607c(0x47b)]=_0x115136;else _0x176e4d['to']=_0x115136;const _0x258a97=this[_0x74607c(0x578)][_0x74607c(0x460)](),_0x2443ba=computeConnectorRouteLayout(_0xdd23fb['worldPoints'],_0x258a97),_0x25094b={'unitId':this[_0x74607c(0x1fe)],'subUnitId':this[_0x74607c(0x17f)],'connectorShapeId':this[_0x74607c(0x379)],'width':_0xdd23fb[_0x74607c(0x3d3)]['width'],'height':_0xdd23fb['worldRect'][_0x74607c(0x233)],'left':_0xdd23fb['worldRect'][_0x74607c(0x384)],'top':_0xdd23fb[_0x74607c(0x3d3)]['top'],'flipX':_0xdd23fb[_0x74607c(0x3d3)]['flipX']||![],'flipY':_0xdd23fb[_0x74607c(0x3d3)][_0x74607c(0x570)]||![],'newAdjustValues':_0x2443ba['adjustValues'],'oldAdjustValues':_0x5f2516,'oldRelation':_0x21bc49,'newRelation':_0x176e4d,'newLineType':_0x2443ba['lineType'],'oldLineType':_0x258a97};this[_0x74607c(0x2c9)][_0x74607c(0x60d)](UpdateConnectorRelationCommand['id'],_0x25094b);}[_0x5a2394(0x30f)](_0x572367,_0x45201e){const _0x4f709e=_0x5a2394,_0x2cb7e6=this[_0x4f709e(0x578)][_0x4f709e(0x460)](),_0x4b64cf=computeConnectorRouteLayout(_0x572367['worldPoints'],_0x2cb7e6),_0x83420={'unitId':this[_0x4f709e(0x1fe)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x4f709e(0x379)],'width':_0x572367['worldRect'][_0x4f709e(0x2a5)],'height':_0x572367[_0x4f709e(0x3d3)][_0x4f709e(0x233)],'left':_0x572367[_0x4f709e(0x3d3)][_0x4f709e(0x384)],'top':_0x572367[_0x4f709e(0x3d3)][_0x4f709e(0x278)],'flipX':_0x572367[_0x4f709e(0x3d3)]['flipX']||![],'flipY':_0x572367[_0x4f709e(0x3d3)][_0x4f709e(0x570)]||![],'angle':_0x572367[_0x4f709e(0x3d3)][_0x4f709e(0x195)]||0x0,'newAdjustValues':_0x4b64cf['adjustValues'],'oldAdjustValues':_0x45201e,'newLineType':_0x4b64cf[_0x4f709e(0x1f3)],'oldLineType':_0x2cb7e6};this['_commandService']['executeCommand'](UpdateLineShapeResizeCommand['id'],_0x83420);}['_executeConnectedRouteConnectionCommand'](_0x16c539,_0x368361,_0x6459b2,_0xe07ef6,_0x4fa736){const _0x2f57ae=_0x5a2394,_0x410935=this[_0x2f57ae(0x578)][_0x2f57ae(0x484)]()[_0x2f57ae(0x5d0)],_0x55e42e={..._0x410935},_0x57d06b={'shapeId':_0x368361[_0x2f57ae(0x35b)],'cxnIndex':_0x368361[_0x2f57ae(0x58e)]};_0xe07ef6?(_0x55e42e[_0x2f57ae(0x47b)]=_0x57d06b,_0x55e42e['to']=_0x6459b2):(_0x55e42e['from']=_0x6459b2,_0x55e42e['to']=_0x57d06b);const _0x33eed4={'unitId':this['_unitId'],'subUnitId':this[_0x2f57ae(0x17f)],'connectorShapeId':this[_0x2f57ae(0x379)],'width':_0x16c539['worldRect']['width'],'height':_0x16c539[_0x2f57ae(0x3d3)][_0x2f57ae(0x233)],'left':_0x16c539[_0x2f57ae(0x3d3)][_0x2f57ae(0x384)],'top':_0x16c539[_0x2f57ae(0x3d3)]['top'],'flipX':_0x16c539[_0x2f57ae(0x3d3)][_0x2f57ae(0x1ac)]||![],'flipY':_0x16c539[_0x2f57ae(0x3d3)]['flipY']||![],'oldAdjustValues':_0x4fa736,'newAdjustValues':_0x16c539[_0x2f57ae(0x652)],'newLineType':_0x16c539[_0x2f57ae(0x1f3)],'rotation':_0x16c539[_0x2f57ae(0x36b)],'oldRelation':_0x410935,'newRelation':_0x55e42e};this['_commandService'][_0x2f57ae(0x60d)](UpdateConnectorRelationCommand['id'],_0x33eed4);}[_0x5a2394(0x49d)](_0x2fe7b8,_0x23d113,_0x38b6b5,_0x5133d8){const _0x53e20a=_0x5a2394,_0x16ef37=this[_0x53e20a(0x578)]['getShapeData']()[_0x53e20a(0x5d0)],_0x6ccd43={};_0x38b6b5?(_0x6ccd43['to']=_0x23d113,_0x6ccd43['from']=void 0x0):(_0x6ccd43[_0x53e20a(0x47b)]=_0x23d113,_0x6ccd43['to']=void 0x0);const _0x446ebd={'unitId':this[_0x53e20a(0x1fe)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x53e20a(0x379)],'width':_0x2fe7b8[_0x53e20a(0x3d3)][_0x53e20a(0x2a5)],'height':_0x2fe7b8[_0x53e20a(0x3d3)][_0x53e20a(0x233)],'left':_0x2fe7b8['worldRect'][_0x53e20a(0x384)],'top':_0x2fe7b8['worldRect'][_0x53e20a(0x278)],'flipX':_0x2fe7b8[_0x53e20a(0x3d3)][_0x53e20a(0x1ac)]||![],'flipY':_0x2fe7b8[_0x53e20a(0x3d3)][_0x53e20a(0x570)]||![],'oldAdjustValues':_0x5133d8,'newAdjustValues':_0x2fe7b8[_0x53e20a(0x652)],'newLineType':_0x2fe7b8[_0x53e20a(0x1f3)],'rotation':_0x2fe7b8[_0x53e20a(0x36b)],'oldRelation':_0x16ef37,'newRelation':_0x6ccd43};this[_0x53e20a(0x2c9)]['executeCommand'](UpdateConnectorRelationCommand['id'],_0x446ebd);}[_0x5a2394(0x576)](_0x54569c,_0x14b5ba,_0x24c124){const _0x3020d0=_0x5a2394;this[_0x3020d0(0x1e9)](toDisposable(_0x54569c[_0x3020d0(0x4b6)]['subscribeEvent']((_0x5e5972,_0x4c8753)=>{const _0x3eb04e=_0x3020d0,_0xd11975=_0x54569c[_0x3eb04e(0x58b)]();this[_0x3eb04e(0x578)]=this[_0x3eb04e(0x539)][_0x3eb04e(0x3ae)](_0xd11975[_0x3eb04e(0x221)],_0xd11975[_0x3eb04e(0x3c7)],_0xd11975[_0x3eb04e(0x183)]);if(!this[_0x3eb04e(0x578)])return;const _0x1c6dbf={};this[_0x3eb04e(0x578)][_0x3eb04e(0x318)]()['forEach'](_0x560194=>{const _0xc4c513=_0x3eb04e,_0x20c227=this[_0xc4c513(0x578)][_0xc4c513(0x2d7)](_0x560194);if(_0x20c227!==void 0x0)_0x1c6dbf[_0x560194]=_0x20c227;});const _0xb60cc8=this[_0x3eb04e(0x3ac)]();if(!_0xb60cc8)return;this['_baseDrawingRect']={..._0xb60cc8};const _0x5796e1=new ConnectorCoordinateTransform(this[_0x3eb04e(0x655)]),_0x13c02d=getDrawingShapeKeyByDrawingSearch({'unitId':this[_0x3eb04e(0x1fe)],'subUnitId':this[_0x3eb04e(0x17f)],'drawingId':this[_0x3eb04e(0x379)]}),_0x50c47a=_0x14b5ba[_0x3eb04e(0x328)](_0x13c02d);this['_isConnecting']=!![],_0x14b5ba[_0x3eb04e(0x523)](),this[_0x3eb04e(0x4fa)]['startConnectionDetection'](_0x14b5ba,this['_unitId'],this['_subUnitId'],this[_0x3eb04e(0x379)]),this[_0x3eb04e(0x4e4)]=null;const _0xe28ae4=this[_0x3eb04e(0x578)]['getConnectorLinePoints'](),_0x502ab8=_0xe28ae4[0x0],_0x4b5f86=_0xe28ae4[_0xe28ae4[_0x3eb04e(0x380)]-0x1],_0x3bef89=_0x24c124?_0x5796e1[_0x3eb04e(0x1ef)](_0x4b5f86):_0x5796e1[_0x3eb04e(0x1ef)](_0x502ab8);this['_cxtHandlerPointerMove']=_0x14b5ba['onPointerMove$'][_0x3eb04e(0x217)]((_0x2aece3,_0x3ce83b)=>{const _0x55f544=_0x3eb04e;if(!this['_isConnecting']||!this[_0x55f544(0x578)])return;!this['_hasReset']&&(this[_0x55f544(0x4f2)][_0x55f544(0x45d)](),this['_activeShapeModel'][_0x55f544(0x37d)](),this[_0x55f544(0x3d7)]=!![]);const _0x53f82d=this['_getScrollInfo'](this[_0x55f544(0x1fe)],this[_0x55f544(0x17f)]),_0x29d41d=this[_0x55f544(0x52c)](this[_0x55f544(0x1fe)],this[_0x55f544(0x17f)]),_0x1aa389={'x':_0x2aece3[_0x55f544(0x396)]/_0x29d41d+_0x53f82d['x'],'y':_0x2aece3[_0x55f544(0x2b1)]/_0x29d41d+_0x53f82d['y']},_0x260eb3=this['_sheetBasicShapeConnectionPointController']['updateConnectionDetection'](_0x1aa389);if(_0x260eb3){const {shapeId:_0x5776cd,unitId:_0x2446a4,subUnitId:_0x36123}=_0x260eb3;if(_0x5776cd&&_0x2446a4&&_0x36123){const _0x421a8e=getDrawingShapeKeyByDrawingSearch({'unitId':_0x2446a4,'subUnitId':_0x36123,'drawingId':_0x5776cd});_0x260eb3['angle']=(_0x14b5ba['getObjectIncludeInGroup'](_0x421a8e)[_0x55f544(0x195)]||0x0)+_0x260eb3['angle'];}}this['_currentConnectionTarget']=_0x260eb3;const _0x2fb507=_0x24c124?this[_0x55f544(0x578)][_0x55f544(0x230)]():this[_0x55f544(0x578)][_0x55f544(0x5ba)]();if(_0x2fb507){this[_0x55f544(0x3cf)](_0x2fb507,_0x1aa389,_0x24c124,_0x50c47a,_0x54569c);return;}this[_0x55f544(0x1b5)](_0x1aa389,_0x3bef89,_0x24c124,_0x50c47a,_0x54569c);}),this[_0x3eb04e(0x3cc)]=_0x14b5ba[_0x3eb04e(0x60b)][_0x3eb04e(0x217)]((_0x1ced35,_0x48ce31)=>{const _0x4af1d9=_0x3eb04e;this[_0x4af1d9(0x1c9)](_0x14b5ba,_0x3bef89,_0x1ced35,_0x24c124,_0x1c6dbf);}),_0x4c8753[_0x3eb04e(0x562)]();})));}[_0x5a2394(0x568)](_0x1d143e,_0x9d4076,_0x40b724){const _0x2e917a=_0x5a2394,_0x5bfbab=this[_0x2e917a(0x539)][_0x2e917a(0x4d4)](_0x1d143e,_0x9d4076,_0x40b724);if(!_0x5bfbab||_0x5bfbab[_0x2e917a(0x380)]===0x0)return;const _0x5f39d9=this[_0x2e917a(0x400)]['getRenderById'](_0x1d143e);if(!_0x5f39d9)return;const {scene:_0x57380d}=_0x5f39d9;for(const _0x518339 of _0x5bfbab){const _0x301197=_0x518339[_0x2e917a(0x527)],_0x39820a=this[_0x2e917a(0x539)][_0x2e917a(0x3ae)](_0x1d143e,_0x9d4076,_0x301197);if(!_0x39820a)continue;const _0x1a06c4=_0x39820a[_0x2e917a(0x5ba)](),_0x6019f7=_0x39820a[_0x2e917a(0x230)](),_0x568b98=(_0x1a06c4===null||_0x1a06c4===void 0x0?void 0x0:_0x1a06c4['shapeId'])===_0x40b724,_0x1cd8ab=getDrawingShapeKeyByDrawingSearch({'unitId':_0x1d143e,'subUnitId':_0x9d4076,'drawingId':_0x301197}),_0x7c2305=_0x57380d[_0x2e917a(0x328)](_0x1cd8ab);if(!_0x7c2305)continue;const _0x1f9049=this['_drawingManagerService'][_0x2e917a(0x590)]({'unitId':_0x1d143e,'subUnitId':_0x9d4076,'drawingId':_0x301197});if(!(_0x1f9049===null||_0x1f9049===void 0x0?void 0x0:_0x1f9049[_0x2e917a(0x23f)]))continue;if(_0x1a06c4&&_0x6019f7)this[_0x2e917a(0x62f)](_0x1d143e,_0x9d4076,_0x301197,_0x39820a,_0x1a06c4,_0x6019f7,_0x7c2305);else this[_0x2e917a(0x493)](_0x1d143e,_0x9d4076,_0x301197,_0x39820a,_0x568b98?_0x1a06c4:_0x6019f7,_0x568b98,_0x1f9049,_0x7c2305);}}[_0x5a2394(0x62f)](_0x202915,_0x1be426,_0x3eeef6,_0x3780c1,_0x29fb8d,_0x57bb01,_0x493646){const _0x3b0530=_0x5a2394,_0x294c65=this['_unitId'],_0x3d1965=this[_0x3b0530(0x17f)];this[_0x3b0530(0x1fe)]=_0x202915,this[_0x3b0530(0x17f)]=_0x1be426;const _0x1bf102=this['_getConnectPointInfo'](_0x29fb8d),_0x448bfc=this[_0x3b0530(0x226)](_0x57bb01);this[_0x3b0530(0x1fe)]=_0x294c65,this[_0x3b0530(0x17f)]=_0x3d1965;if(!_0x1bf102||!_0x448bfc)return;const _0x48cbfd=_0x3780c1[_0x3b0530(0x460)](),_0x514f2e=routeConnectorLineShape(_0x1bf102,_0x448bfc,_0x48cbfd);if(_0x514f2e)_0x3780c1[_0x3b0530(0x25f)](_0x514f2e);const _0x17364e=computeConnectorRouteLayout(_0x514f2e,_0x48cbfd);if(_0x17364e['lineType']!==_0x48cbfd)_0x3780c1[_0x3b0530(0x314)](_0x17364e[_0x3b0530(0x1f3)]);_0x3780c1[_0x3b0530(0x37d)]();for(const [_0x50cf5e,_0x34ef4f]of Object[_0x3b0530(0x416)](_0x17364e[_0x3b0530(0x652)]))_0x3780c1['setAdjustValueByName'](_0x50cf5e,_0x34ef4f);_0x3780c1[_0x3b0530(0x58a)]({'width':_0x17364e['worldRect'][_0x3b0530(0x2a5)],'height':_0x17364e[_0x3b0530(0x3d3)][_0x3b0530(0x233)]}),_0x493646[_0x3b0530(0x2e5)]({'flipX':_0x17364e[_0x3b0530(0x3d3)][_0x3b0530(0x1ac)],'flipY':_0x17364e[_0x3b0530(0x3d3)]['flipY'],'left':_0x17364e['worldRect']['left'],'top':_0x17364e[_0x3b0530(0x3d3)]['top'],'width':_0x17364e['worldRect'][_0x3b0530(0x2a5)],'height':_0x17364e['worldRect'][_0x3b0530(0x233)],'angle':_0x17364e['rotation']}),_0x3780c1['removeLinePoints']();}['_moveConnectorWithShape'](_0x167272,_0x2042a7,_0x5e73d5,_0x3f9dfe,_0x908949,_0x493e17,_0x3195e9,_0x61b42e){const _0x4d4973=_0x5a2394,_0x449c84=this[_0x4d4973(0x1fe)],_0x532500=this[_0x4d4973(0x17f)];this[_0x4d4973(0x1fe)]=_0x167272,this[_0x4d4973(0x17f)]=_0x2042a7;const _0x334260=this[_0x4d4973(0x226)](_0x908949);this[_0x4d4973(0x1fe)]=_0x449c84,this['_subUnitId']=_0x532500;if(!_0x334260)return;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x3195e9['transform'],_0x2592b7=_0x3f9dfe['getConnectorLinePoints']();if(_0x2592b7[_0x4d4973(0x380)]<0x2)return;const _0x37f01c=new ConnectorCoordinateTransform({'left':left,'top':top,'width':width,'height':height,'flipX':flipX,'flipY':flipY}),_0x5007a2=_0x493e17?_0x2592b7[_0x2592b7[_0x4d4973(0x380)]-0x1]:_0x2592b7[0x0],_0x1da94f=_0x37f01c[_0x4d4973(0x1ef)](_0x5007a2),_0x1a30c1=ConnectorCoordinateTransform[_0x4d4973(0x572)](_0x1da94f,_0x334260[_0x4d4973(0x331)],!_0x493e17);_0x61b42e[_0x4d4973(0x2e5)]({'flipX':_0x1a30c1[_0x4d4973(0x3d3)][_0x4d4973(0x1ac)],'flipY':_0x1a30c1['worldRect'][_0x4d4973(0x570)],'left':_0x1a30c1['worldRect'][_0x4d4973(0x384)],'top':_0x1a30c1['worldRect']['top'],'width':_0x1a30c1['worldRect'][_0x4d4973(0x2a5)],'height':_0x1a30c1['worldRect'][_0x4d4973(0x233)],'angle':_0x1a30c1[_0x4d4973(0x3d3)][_0x4d4973(0x195)]}),_0x61b42e['makeDirty'](!![]);}[_0x5a2394(0x4f6)](){const _0x1bbde4=_0x5a2394;if(this[_0x1bbde4(0x31f)][_0x1bbde4(0x380)]===0x0)return;this['_connectorObjects'][_0x1bbde4(0x386)](_0x1fa51d=>{const _0x19bd2d=_0x1bbde4;_0x1fa51d[_0x19bd2d(0x2cb)]();}),this[_0x1bbde4(0x31f)]=[];}[_0x5a2394(0x3ab)](){const _0x2e6e1f=_0x5a2394,_0x3b1664=this['_univerInstanceService'][_0x2e6e1f(0x3b9)](UniverInstanceType['UNIVER_SHEET']);this[_0x2e6e1f(0x1e9)](_0x3b1664[_0x2e6e1f(0x573)](switchMap(_0x13d9a0=>{const _0x1d0ba3=_0x2e6e1f;if(!_0x13d9a0)return EMPTY;return _0x13d9a0[_0x1d0ba3(0x370)][_0x1d0ba3(0x573)](switchMap(_0xb0eab6=>{const _0x589b6d=_0x1d0ba3;if(!_0xb0eab6)return EMPTY;const _0x190b95=_0x13d9a0['getUnitId'](),_0x593937=this[_0x589b6d(0x400)][_0x589b6d(0x534)](_0x190b95),_0x585b80=_0x593937===null||_0x593937===void 0x0?void 0x0:_0x593937[_0x589b6d(0x1e3)];if(!_0x585b80)return EMPTY;return of(_0x585b80);}));}))[_0x2e6e1f(0x395)](_0x1a4087=>{const _0x619240=_0x2e6e1f,_0x25d468=_0x1a4087[_0x619240(0x5ef)]();this[_0x619240(0x1e9)](_0x1a4087[_0x619240(0x52f)]['subscribeEvent'](_0x57144e=>{const _0x39d373=_0x619240;if(this[_0x39d373(0x638)]&&this[_0x39d373(0x379)])this[_0x39d373(0x4f6)]();})),this['disposeWithMe'](_0x25d468[_0x619240(0x337)]['subscribe'](_0x89876b=>{const _0x4c28ed=_0x619240,{objects:_0x3ec19d}=_0x89876b;this[_0x4c28ed(0x4f6)]();if(_0x3ec19d!==null&&_0x3ec19d[_0x4c28ed(0x3d0)]===0x1){if(_0x3ec19d[_0x4c28ed(0x282)]()[_0x4c28ed(0x5b4)]()[_0x4c28ed(0x3ff)]instanceof DrawingShape)this[_0x4c28ed(0x638)]=!![];}})),this[_0x619240(0x1e9)](_0x25d468[_0x619240(0x3e0)][_0x619240(0x395)](_0x24a992=>{const _0x39c1b5=_0x619240;if(this[_0x39c1b5(0x638)])this['_clearShapeConnectorHandlerObjects']();})),this['disposeWithMe'](_0x1a4087[_0x619240(0x60b)][_0x619240(0x217)](()=>{const _0x8e3ea8=_0x619240;this['_isDrawingShapePointDown']&&(this[_0x8e3ea8(0x638)]=![],this[_0x8e3ea8(0x44c)]());})),this[_0x619240(0x1e9)](_0x25d468[_0x619240(0x397)][_0x619240(0x395)](()=>{const _0x4d1bc0=_0x619240;this[_0x4d1bc0(0x1fe)]&&this['_subUnitId']&&this[_0x4d1bc0(0x379)]&&(this[_0x4d1bc0(0x482)][_0x4d1bc0(0x590)]({'unitId':this[_0x4d1bc0(0x1fe)],'subUnitId':this[_0x4d1bc0(0x17f)],'drawingId':this[_0x4d1bc0(0x379)]})&&(this['_clearShapeConnectorHandlerObjects'](),this[_0x4d1bc0(0x44c)]()));}));}));}[_0x5a2394(0x2b3)](){const _0xf31ffe=_0x5a2394;this[_0xf31ffe(0x1e9)](this['_drawingManagerService'][_0xf31ffe(0x4b8)][_0xf31ffe(0x395)](_0xa34d8a=>{const _0x33bba8=_0xf31ffe;if(_0xa34d8a[_0x33bba8(0x380)]===0x1){const _0x1551f3=_0xa34d8a[0x0];if(_0x1551f3[_0x33bba8(0x561)]===DrawingTypeEnum['DRAWING_SHAPE']){const _0x59e025=this[_0x33bba8(0x539)]['getShapeModel'](_0x1551f3[_0x33bba8(0x221)],_0x1551f3[_0x33bba8(0x3c7)],_0x1551f3[_0x33bba8(0x183)]);if(_0x59e025&&isConnectorShape(_0x59e025[_0x33bba8(0x460)]())){this[_0x33bba8(0x379)]=_0x1551f3[_0x33bba8(0x183)],this[_0x33bba8(0x1fe)]=_0x1551f3[_0x33bba8(0x221)],this[_0x33bba8(0x17f)]=_0x1551f3[_0x33bba8(0x3c7)],this[_0x33bba8(0x4f6)](),this[_0x33bba8(0x44c)]();return;}}}this['_activeShapeId']=void 0x0,this['_unitId']=void 0x0,this['_subUnitId']=void 0x0,this[_0x33bba8(0x4f6)]();})),this['disposeWithMe'](this[_0xf31ffe(0x482)][_0xf31ffe(0x3aa)]['subscribe'](_0x40de02=>{const _0x451b1a=_0xf31ffe;if(_0x40de02['length']===0x1){var _0x51074e;const _0x45cf4f=_0x40de02[0x0],_0x2609f6=(_0x51074e=this[_0x451b1a(0x482)][_0x451b1a(0x590)](_0x45cf4f))===null||_0x51074e===void 0x0?void 0x0:_0x51074e['drawingType'];if(_0x2609f6===DrawingTypeEnum[_0x451b1a(0x37f)]&&_0x45cf4f[_0x451b1a(0x183)]===this[_0x451b1a(0x379)])this[_0x451b1a(0x4f6)](),this[_0x451b1a(0x44c)]();else{if(!this['_activeShapeId']&&_0x2609f6===DrawingTypeEnum['DRAWING_SHAPE'])this[_0x451b1a(0x568)](_0x45cf4f['unitId'],_0x45cf4f['subUnitId'],_0x45cf4f[_0x451b1a(0x183)]);}}})),this[_0xf31ffe(0x1e9)](this[_0xf31ffe(0x482)][_0xf31ffe(0x383)][_0xf31ffe(0x395)](_0x5cb904=>{const _0x168861=_0xf31ffe;for(const _0x598d1a of _0x5cb904){const {drawingId:_0x1b82a1}=_0x598d1a;if(this[_0x168861(0x379)]===_0x1b82a1){this[_0x168861(0x209)]();return;}}}));}[_0x5a2394(0x3cf)](_0x278381,_0x28884f,_0x43f927,_0x5e8e17,_0x29dad8){const _0x346b9c=_0x5a2394;var _0x297009,_0x3e389d;if(!this[_0x346b9c(0x578)])return;const _0x1d1be8=this[_0x346b9c(0x226)](_0x278381);if(!_0x1d1be8)return;const _0x4590cc=this[_0x346b9c(0x4e4)]?this['_currentConnectionTarget'][_0x346b9c(0x298)]:_0x28884f,_0xb51c85=this[_0x346b9c(0x4e4)]?this['_currentConnectionTarget'][_0x346b9c(0x195)]:this[_0x346b9c(0x319)](_0x1d1be8[_0x346b9c(0x331)],_0x4590cc);let _0x151b2e;if(this['_currentConnectionTarget']){const _0xa30dec=this[_0x346b9c(0x482)]['getDrawingByParam']({'unitId':this[_0x346b9c(0x4e4)][_0x346b9c(0x221)],'subUnitId':this['_currentConnectionTarget'][_0x346b9c(0x3c7)],'drawingId':this[_0x346b9c(0x4e4)][_0x346b9c(0x35b)]});if(_0xa30dec===null||_0xa30dec===void 0x0?void 0x0:_0xa30dec['transform']){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x1d76cf}=_0xa30dec[_0x346b9c(0x23f)];_0x151b2e=getBasicShapeRotateBound({'left':left,'top':top,'width':width,'height':height},_0x1d76cf||0x0);}else _0x151b2e={'left':_0x4590cc['x'],'top':_0x4590cc['y'],'width':0x0,'height':0x0};}else _0x151b2e={'left':_0x4590cc['x'],'top':_0x4590cc['y'],'width':0x0,'height':0x0};const _0x5919ba={'point':_0x4590cc,'angle':_0xb51c85,'bounds':_0x151b2e},_0x448e71=_0x43f927?_0x5919ba:_0x1d1be8,_0x451444=_0x43f927?_0x1d1be8:_0x5919ba,_0x36f46c=this[_0x346b9c(0x578)][_0x346b9c(0x460)](),_0x386341=routeConnectorLineShape(_0x448e71,_0x451444,_0x36f46c);console[_0x346b9c(0x3a2)](_0x448e71,_0x451444);if(_0x386341)this[_0x346b9c(0x578)][_0x346b9c(0x25f)](_0x386341);const _0x339079=computeConnectorRouteLayout(_0x386341,_0x36f46c);if(_0x339079[_0x346b9c(0x1f3)]!==_0x36f46c)this[_0x346b9c(0x578)][_0x346b9c(0x314)](_0x339079[_0x346b9c(0x1f3)]);for(const [_0x202011,_0x2813bf]of Object[_0x346b9c(0x416)](_0x339079[_0x346b9c(0x652)]))this[_0x346b9c(0x578)][_0x346b9c(0x3d4)](_0x202011,_0x2813bf);this[_0x346b9c(0x578)][_0x346b9c(0x58a)]({'width':_0x339079[_0x346b9c(0x3d3)][_0x346b9c(0x2a5)],'height':_0x339079[_0x346b9c(0x3d3)][_0x346b9c(0x233)]}),_0x5e8e17[_0x346b9c(0x2e5)]({'flipX':_0x339079[_0x346b9c(0x3d3)][_0x346b9c(0x1ac)],'flipY':_0x339079[_0x346b9c(0x3d3)][_0x346b9c(0x570)],'left':_0x339079[_0x346b9c(0x3d3)][_0x346b9c(0x384)],'top':_0x339079[_0x346b9c(0x3d3)]['top'],'width':_0x339079[_0x346b9c(0x3d3)]['width'],'height':_0x339079['worldRect'][_0x346b9c(0x233)],'angle':_0x339079[_0x346b9c(0x36b)]}),_0x5e8e17['makeDirty'](!![]);const _0x2d4fa0=(_0x297009=(_0x3e389d=this[_0x346b9c(0x4e4)])===null||_0x3e389d===void 0x0?void 0x0:_0x3e389d['worldPoint'])!==null&&_0x297009!==void 0x0?_0x297009:_0x28884f;_0x29dad8[_0x346b9c(0x2e5)]({'left':_0x2d4fa0['x']-ShapeDefaultConfig[_0x346b9c(0x4e2)],'top':_0x2d4fa0['y']-ShapeDefaultConfig[_0x346b9c(0x4e2)]});}[_0x5a2394(0x1b5)](_0x28fb8f,_0x1ca347,_0x17456c,_0x143c25,_0x4b3bed){const _0x25bfbd=_0x5a2394;var _0xad98aa,_0x2342ed,_0xb4b29c,_0x4e0252;const _0x552c07=(_0xad98aa=(_0x2342ed=this[_0x25bfbd(0x4e4)])===null||_0x2342ed===void 0x0?void 0x0:_0x2342ed[_0x25bfbd(0x298)])!==null&&_0xad98aa!==void 0x0?_0xad98aa:_0x28fb8f,_0x3e421b=ConnectorCoordinateTransform[_0x25bfbd(0x572)](_0x1ca347,_0x552c07,_0x17456c);_0x143c25[_0x25bfbd(0x2e5)]({'flipX':_0x3e421b[_0x25bfbd(0x3d3)]['flipX'],'flipY':_0x3e421b[_0x25bfbd(0x3d3)]['flipY'],'left':_0x3e421b[_0x25bfbd(0x3d3)][_0x25bfbd(0x384)],'top':_0x3e421b[_0x25bfbd(0x3d3)][_0x25bfbd(0x278)],'width':_0x3e421b[_0x25bfbd(0x3d3)][_0x25bfbd(0x2a5)],'height':_0x3e421b[_0x25bfbd(0x3d3)][_0x25bfbd(0x233)],'angle':_0x3e421b[_0x25bfbd(0x3d3)][_0x25bfbd(0x195)]});const _0x27a905=(_0xb4b29c=(_0x4e0252=this[_0x25bfbd(0x4e4)])===null||_0x4e0252===void 0x0?void 0x0:_0x4e0252['worldPoint'])!==null&&_0xb4b29c!==void 0x0?_0xb4b29c:_0x28fb8f;_0x4b3bed['transformByState']({'left':_0x27a905['x']-ShapeDefaultConfig['cxnPointRadius'],'top':_0x27a905['y']-ShapeDefaultConfig[_0x25bfbd(0x4e2)]});}['_getConnectPointInfo'](_0x359066){const _0x4cca2e=_0x5a2394;if(!this[_0x4cca2e(0x1fe)]||!this[_0x4cca2e(0x17f)])return null;const {shapeId:_0x3a7cb0,cxnIndex:_0x292c0b}=_0x359066,_0x33719a=this[_0x4cca2e(0x539)][_0x4cca2e(0x3ae)](this[_0x4cca2e(0x1fe)],this[_0x4cca2e(0x17f)],_0x3a7cb0);if(!_0x33719a)return null;const _0x5e6f03=this[_0x4cca2e(0x482)]['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this[_0x4cca2e(0x17f)],'drawingId':_0x3a7cb0});if(!(_0x5e6f03===null||_0x5e6f03===void 0x0?void 0x0:_0x5e6f03[_0x4cca2e(0x23f)]))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x85fef9}=_0x5e6f03[_0x4cca2e(0x23f)];_0x33719a[_0x4cca2e(0x58a)]({'width':width,'height':height});const _0x2a7547=_0x33719a['getConnectionSiteList']()[_0x4cca2e(0x433)](_0x3e36df=>_0x3e36df[_0x4cca2e(0x1db)]===_0x292c0b);if(!_0x2a7547)return null;let _0x109a8c=flipX?width-_0x2a7547['x']:_0x2a7547['x'],_0x2ca6b5=flipY?height-_0x2a7547['y']:_0x2a7547['y'];if(_0x85fef9!==0x0&&_0x85fef9!==void 0x0&&_0x85fef9!==null){const _0x5a1ecb=_0x85fef9*Math['PI']/0xb4,_0xb733b0=Math[_0x4cca2e(0x422)](_0x5a1ecb),_0x3a920d=Math[_0x4cca2e(0x41c)](_0x5a1ecb),_0x2293e4=width/0x2,_0x5ca0d8=height/0x2,_0x10ce01=_0x109a8c-_0x2293e4,_0x4baddb=_0x2ca6b5-_0x5ca0d8;_0x109a8c=_0x2293e4+_0x10ce01*_0xb733b0-_0x4baddb*_0x3a920d,_0x2ca6b5=_0x5ca0d8+_0x10ce01*_0x3a920d+_0x4baddb*_0xb733b0;}_0x109a8c+=left,_0x2ca6b5+=top;let _0x494421=_0x2a7547['ang']/0xea60;if(flipX)_0x494421=0xb4-_0x494421;if(flipY)_0x494421=-_0x494421;_0x494421+=_0x85fef9||0x0,_0x494421=(_0x494421%0x168+0x168)%0x168;const _0xf4239a=getBasicShapeRotateBound({'left':left,'top':top,'width':width,'height':height},_0x85fef9||0x0);return{'point':{'x':_0x109a8c,'y':_0x2ca6b5},'angle':_0x494421,'bounds':_0xf4239a};}['_calculateFreeEndpointAngle'](_0x441eae,_0x184d85){const _0x290420=_0x5a2394,_0x10b4b8=_0x184d85['x']-_0x441eae['x'],_0x17d35f=_0x184d85['y']-_0x441eae['y'];if(Math[_0x290420(0x35f)](_0x10b4b8)>=Math['abs'](_0x17d35f))return _0x10b4b8>=0x0?0xb4:0x0;else return _0x17d35f>=0x0?0x10e:0x5a;}[_0x5a2394(0x209)](){const _0x39c442=_0x5a2394;this['_activeShapeId']=void 0x0,this[_0x39c442(0x1fe)]=void 0x0,this[_0x39c442(0x17f)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();}[_0x5a2394(0x2cb)](){const _0x27733d=_0x5a2394;this[_0x27733d(0x4f6)](),super[_0x27733d(0x2cb)]();}};SheetShapeConnectorController=__decorate([__decorateParam(0x1,ICommandService),__decorateParam(0x2,IRenderManagerService),__decorateParam(0x3,IDrawingManagerService),__decorateParam(0x4,IUniverInstanceService),__decorateParam(0x5,Inject(SheetsShapeService)),__decorateParam(0x6,Inject(SheetShapeAdjustController)),__decorateParam(0x7,Inject(SheetBasicShapeConnectionPointController))],SheetShapeConnectorController);let SheetsShapeUIPermissionController=class SheetsShapeUIPermissionController extends Disposable{constructor(_0x2ff18e,_0x47d743,_0x3d9b5a){const _0x546e2b=_0x5a2394;super(),this[_0x546e2b(0x2c9)]=_0x2ff18e,this[_0x546e2b(0x34a)]=_0x47d743,this[_0x546e2b(0x50a)]=_0x3d9b5a,this[_0x546e2b(0x4eb)]();}[_0x5a2394(0x4eb)](){const _0x4663fa=_0x5a2394;this[_0x4663fa(0x1e9)](this[_0x4663fa(0x2c9)]['beforeCommandExecuted'](_0x45fb2b=>{const _0xa3036a=_0x4663fa;let _0x3d4fb9,_0x53503c;if(_0x45fb2b['id']===InsertShapeCommand['id']||_0x45fb2b['id']===SetShapeDrawingDataCommand['id']||_0x45fb2b['id']===UpdateConnectorRelationCommand['id']){const _0x30a07e=_0x45fb2b[_0xa3036a(0x438)];_0x3d4fb9=_0x30a07e['unitId'],_0x53503c=_0x30a07e[_0xa3036a(0x3c7)];}if(!_0x3d4fb9||!_0x53503c)return;if(!this[_0xa3036a(0x50a)][_0xa3036a(0x56a)]({'workbookTypes':[WorkbookEditablePermission],'worksheetTypes':[WorksheetEditPermission]},_0x3d4fb9,_0x53503c))this[_0xa3036a(0x50a)]['blockExecuteWithoutPermission'](this[_0xa3036a(0x34a)]['t'](_0xa3036a(0x240)));}));}};SheetsShapeUIPermissionController=__decorate([__decorateParam(0x0,Inject(ICommandService)),__decorateParam(0x1,Inject(LocaleService)),__decorateParam(0x2,Inject(SheetPermissionCheckController))],SheetsShapeUIPermissionController);const ShapeEditor=function(_0x2f6e49){const _0x3b787a=_0x5a2394,{containerWidth:_0x2aa5b7,containerHeight:_0x374752,scaleX:_0x25167a,scaleY:_0x118479}=_0x2f6e49,_0x29f0f7=_0x25167a||0x1,_0x3d9b3d=_0x118479||0x1,_0x4d8620=useDependency(ShapeTextEditingService),_0x1f2ecb=useDependency(IEditorService),_0x3e3cdf=useDependency(IRenderManagerService),_0x28bc74=useDependency(IUniverInstanceService),_0x378668=useDependency(IDrawingManagerService),_0x5e6945=useDependency(SheetsShapeService),_0xa1e88a=useDependency(ICommandService),_0x42ad8c=useObservable(_0x4d8620[_0x3b787a(0x59f)]),_0x2522ae=useObservable(_0x4d8620[_0x3b787a(0x1f9)]),_0xfbbf45=useRef(null),_0x4e4220=useRef(null),_0x516f0d=useRef(null),_0x1eb892=useRef(null),_0x452309=useRef(null),_0x443cde=useRef(null),[_0x359da6,_0x40e2b8]=useState({'editorHeight':_0x374752,'marginTop':0x0,'useAbsolutePosition':![]}),_0x1b8775=useCallback(_0xe6f58=>{queueMicrotask(()=>{_0x40e2b8(_0xe6f58);});},[]),_0x58bacf=useCallback(()=>{const _0x2d40ff=_0x3b787a;return _0x28bc74[_0x2d40ff(0x377)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY,UniverInstanceType[_0x2d40ff(0x1da)]);},[_0x28bc74]),_0x20e6aa=useCallback(()=>{const _0x371b18=_0x3b787a;var _0x490a12;const _0x40540d=_0x29f0f7,_0x5c0eec=_0x3d9b3d;if(!_0x42ad8c)return{'scaleAdjust':0x1,'renderScaleX':_0x40540d,'renderScaleY':_0x5c0eec};const _0x32e32c=_0x3e3cdf[_0x371b18(0x534)](_0x42ad8c[_0x371b18(0x221)]),_0x558064=_0x32e32c===null||_0x32e32c===void 0x0?void 0x0:_0x32e32c[_0x371b18(0x1e3)][_0x371b18(0x3c4)](),_0x25749c=_0x32e32c===null||_0x32e32c===void 0x0?void 0x0:_0x32e32c[_0x371b18(0x448)]['getCanvasElement'](),_0x546ec5=_0x25749c?Number[_0x371b18(0x34f)](_0x25749c[_0x371b18(0x51c)][_0x371b18(0x2a5)]||''):0x0,_0x57c00d=(_0x490a12=_0x25749c===null||_0x25749c===void 0x0?void 0x0:_0x25749c['getBoundingClientRect']()[_0x371b18(0x2a5)])!==null&&_0x490a12!==void 0x0?_0x490a12:0x0,_0x5a2840=_0x546ec5>0x0&&_0x57c00d>0x0?_0x57c00d/_0x546ec5:0x1;return{'scaleAdjust':Number[_0x371b18(0x21e)](_0x5a2840)&&_0x5a2840>0x0?_0x5a2840:0x1,'renderScaleX':(_0x558064===null||_0x558064===void 0x0?void 0x0:_0x558064[_0x371b18(0x4ca)])||_0x40540d,'renderScaleY':(_0x558064===null||_0x558064===void 0x0?void 0x0:_0x558064['scaleY'])||_0x5c0eec};},[_0x29f0f7,_0x3d9b3d,_0x42ad8c,_0x3e3cdf]),_0x4a3d1a=useCallback(()=>{const _0x2a89c4=_0x3b787a;if(!_0x42ad8c)return{'left':0x0,'top':0x0,'width':_0x2aa5b7/_0x29f0f7,'height':_0x374752/_0x3d9b3d};const {unitId:_0x32f8af,subUnitId:_0x35584f,shapeId:_0x337379}=_0x42ad8c,_0x5d3a5e=_0x5e6945[_0x2a89c4(0x3ae)](_0x32f8af,_0x35584f,_0x337379);if(!_0x5d3a5e)return{'left':0x0,'top':0x0,'width':_0x2aa5b7/_0x29f0f7,'height':_0x374752/_0x3d9b3d};const _0x1ac496={'left':0x0,'top':0x0,'width':_0x2aa5b7/_0x29f0f7,'height':_0x374752/_0x3d9b3d};return _0x5d3a5e[_0x2a89c4(0x420)](_0x1ac496);},[_0x42ad8c,_0x2aa5b7,_0x374752,_0x29f0f7,_0x3d9b3d,_0x5e6945]),_0x410f06=useCallback(()=>{const _0x2fd8f0=_0x3b787a;if(!_0x42ad8c)return null;const {unitId:_0x2cc7ac,subUnitId:_0x409758,shapeId:_0x2e762c}=_0x42ad8c,_0x2c8aa3=_0x5e6945[_0x2fd8f0(0x3ae)](_0x2cc7ac,_0x409758,_0x2e762c);if(!_0x2c8aa3)return null;const _0x186216=_0x2c8aa3[_0x2fd8f0(0x5bb)]();if(!_0x186216)return null;const _0x159c08={'unitId':_0x2cc7ac,'subUnitId':_0x409758,'drawingId':_0x2e762c},_0x253e8a=_0x378668['getDrawingByParam'](_0x159c08);let _0x24e154={'angle':0x0,'flipX':![],'flipY':![]};if(_0x253e8a&&_0x253e8a[_0x2fd8f0(0x23f)])_0x24e154=_0x253e8a['transform'];const _0xb9ce5c={'left':0x0,'top':0x0,'width':_0x2aa5b7/_0x29f0f7,'height':_0x374752/_0x3d9b3d},_0x48a1fa=_0x2c8aa3['getShapeTextRect'](_0xb9ce5c);let _0x4623c6,_0x14e17a=VerticalAlign[_0x2fd8f0(0x253)],_0x143c74=HorizontalAlign[_0x2fd8f0(0x1b3)];if(_0x2fd8f0(0x51f)in _0x186216&&_0x186216[_0x2fd8f0(0x51f)]){var _0x296f1e,_0x1aaa4a;const _0x5004a4=_0x186216[_0x2fd8f0(0x51f)];if(_0x5004a4===null||_0x5004a4===void 0x0?void 0x0:_0x5004a4[_0x2fd8f0(0x34b)])_0x4623c6=_0x5004a4[_0x2fd8f0(0x34b)];_0x14e17a=(_0x296f1e=_0x5004a4===null||_0x5004a4===void 0x0?void 0x0:_0x5004a4['va'])!==null&&_0x296f1e!==void 0x0?_0x296f1e:VerticalAlign[_0x2fd8f0(0x253)],_0x143c74=(_0x1aaa4a=_0x5004a4===null||_0x5004a4===void 0x0?void 0x0:_0x5004a4['ha'])!==null&&_0x1aaa4a!==void 0x0?_0x1aaa4a:HorizontalAlign[_0x2fd8f0(0x1b3)];}return{'doc':_0x4623c6,'verticalAlign':_0x14e17a,'horizontalAlign':_0x143c74,'textRect':_0x48a1fa,'transform':_0x24e154,'isHorizontal':_0x186216[_0x2fd8f0(0x23e)]};},[_0x42ad8c,_0x5e6945,_0x378668,_0x2aa5b7,_0x374752,_0x29f0f7,_0x3d9b3d]),_0x546800=useMemo(()=>{const _0x2a5a23=_0x3b787a,_0x81cb02=_0x410f06();if(_0x81cb02===null||_0x81cb02===void 0x0?void 0x0:_0x81cb02[_0x2a5a23(0x34b)])return prepareShapeTextDocumentData(_0x81cb02[_0x2a5a23(0x34b)],{'isHorizontal':!![],'textRect':_0x81cb02[_0x2a5a23(0x4ed)],'verticalAlign':_0x81cb02[_0x2a5a23(0x459)],'horizontalAlign':_0x81cb02[_0x2a5a23(0x474)]});return{'id':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0}]},'documentStyle':{'pageSize':{'width':_0x2aa5b7/_0x29f0f7,'height':Infinity}}};},[_0x410f06,_0x2aa5b7,_0x29f0f7]),_0x23e8fe=useEditor({'editorId':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'initialValue':_0x546800,'container':_0x4e4220,'autoFocus':![],'isSingle':![]}),_0x177478=useIsFocusing(DOCS_SHAPE_EDITOR_UNIT_ID_KEY);useKeyboardEvent(_0x177478,{'keyCodes':[{'keyCode':KeyCode[_0x3b787a(0x46a)]}],'handler':()=>{const _0x1e8458=_0x3b787a;_0xa1e88a[_0x1e8458(0x60d)](BreakLineCommand['id']);}},_0x23e8fe),useLeftAndRightArrow(_0x177478,![],_0x23e8fe);const _0x47cca1=useCallback((_0x1acdca=!![])=>{const _0x785d14=_0x3b787a;var _0x4b9a86,_0x1fadbc,_0x499df7;if(!_0x23e8fe)return;const _0x1a6b41=_0x23e8fe[_0x785d14(0x3c6)]()[_0x785d14(0x433)](_0x23e627=>_0x23e627[_0x785d14(0x34d)]),_0x4595a4=((_0x4b9a86=(_0x1fadbc=_0x23e8fe[_0x785d14(0x619)]()[_0x785d14(0x5e7)])===null||_0x1fadbc===void 0x0?void 0x0:_0x1fadbc[_0x785d14(0x25c)][_0x785d14(0x380)])!==null&&_0x4b9a86!==void 0x0?_0x4b9a86:0x2)-0x2,_0x17bdaf=(_0x499df7=_0x1a6b41===null||_0x1a6b41===void 0x0?void 0x0:_0x1a6b41[_0x785d14(0x49a)])!==null&&_0x499df7!==void 0x0?_0x499df7:_0x1acdca?_0x4595a4:null;if(_0x17bdaf===null)return;_0x23e8fe[_0x785d14(0x268)]([{'startOffset':_0x17bdaf,'endOffset':_0x17bdaf}],![]);},[_0x23e8fe]),_0x2d7166=useCallback(()=>{const _0x253b10=_0x3b787a;_0x452309[_0x253b10(0x2e8)]!==null&&(cancelAnimationFrame(_0x452309['current']),_0x452309[_0x253b10(0x2e8)]=null),_0x443cde[_0x253b10(0x2e8)]!==null&&(window[_0x253b10(0x2ff)](_0x443cde['current']),_0x443cde[_0x253b10(0x2e8)]=null);},[]),_0xc768a6=useCallback(()=>{const _0x1b01e9=_0x3b787a;var _0x281058,_0x2e7d3a,_0xe46169;if(!_0x23e8fe)return;const _0x492b10=_0x3e3cdf[_0x1b01e9(0x534)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x297a04=_0x492b10===null||_0x492b10===void 0x0?void 0x0:_0x492b10[_0x1b01e9(0x42d)](DocSkeletonManagerService);if(!_0x297a04)return;const _0x501d5c=_0x297a04[_0x1b01e9(0x628)](),_0xd02529=_0x58bacf(),{renderScaleX:_0x16507c,renderScaleY:_0x184065,scaleAdjust:_0x50cda9}=_0x20e6aa(),_0x5dbc16=_0x410f06(),_0x1c3ff9=(_0x281058=_0x5dbc16===null||_0x5dbc16===void 0x0?void 0x0:_0x5dbc16[_0x1b01e9(0x459)])!==null&&_0x281058!==void 0x0?_0x281058:VerticalAlign['TOP'],_0x38caab=(_0x2e7d3a=_0x5dbc16===null||_0x5dbc16===void 0x0?void 0x0:_0x5dbc16['horizontalAlign'])!==null&&_0x2e7d3a!==void 0x0?_0x2e7d3a:HorizontalAlign[_0x1b01e9(0x1b3)],_0x335a08=(_0xe46169=_0x4a3d1a())!==null&&_0xe46169!==void 0x0?_0xe46169:{'left':0x0,'top':0x0,'width':_0x2aa5b7/_0x29f0f7,'height':_0x374752/_0x3d9b3d};_0xd02529&&(_0xd02529[_0x1b01e9(0x426)](Math[_0x1b01e9(0x455)](_0x16507c,_0x184065)),_0xd02529['updateDocumentStyle']({'pageSize':{'width':_0x335a08[_0x1b01e9(0x2a5)],'height':Infinity}}),_0xd02529[_0x1b01e9(0x5e1)]({'verticalAlign':_0x1c3ff9,'horizontalAlign':_0x38caab,'centerAngle':0x0,'vertexAngle':0x0,'wrapStrategy':WrapStrategy['WRAP']}));_0x501d5c[_0x1b01e9(0x3e7)]();const {actualHeight:_0x5cc22c}=_0x501d5c[_0x1b01e9(0x5df)](),_0x3ca0fb=_0x335a08['height'];let _0x12d1f9=_0x3ca0fb,_0x191f8e=0x0;if(_0x5cc22c<=_0x3ca0fb){if(_0x1c3ff9===VerticalAlign[_0x1b01e9(0x531)])_0x191f8e=(_0x3ca0fb-_0x5cc22c)/0x2;else{if(_0x1c3ff9===VerticalAlign[_0x1b01e9(0x441)])_0x191f8e=_0x3ca0fb-_0x5cc22c;}_0x12d1f9=_0x3ca0fb,_0x1b8775({'editorHeight':_0x335a08[_0x1b01e9(0x233)]*_0x3d9b3d,'marginTop':0x0,'useAbsolutePosition':![]});}else{let _0x443c77=0x0;if(_0x1c3ff9===VerticalAlign[_0x1b01e9(0x531)])_0x443c77=(_0x3ca0fb-_0x5cc22c)/0x2;else{if(_0x1c3ff9===VerticalAlign[_0x1b01e9(0x441)])_0x443c77=_0x3ca0fb-_0x5cc22c;}_0x191f8e=0x0,_0x1b8775({'editorHeight':_0x5cc22c*_0x3d9b3d,'marginTop':_0x443c77*_0x3d9b3d,'useAbsolutePosition':!![]}),_0x12d1f9=_0x5cc22c;}_0xd02529&&(_0xd02529[_0x1b01e9(0x3e9)]({'pageSize':{'width':_0x335a08[_0x1b01e9(0x2a5)],'height':_0x12d1f9}}),_0xd02529[_0x1b01e9(0x564)]({'t':_0x191f8e}),_0x501d5c[_0x1b01e9(0x3e7)]());if(_0x492b10){const _0x23c908=_0x335a08[_0x1b01e9(0x2a5)]*_0x29f0f7,_0x25c51b=_0x12d1f9*_0x3d9b3d;_0x492b10[_0x1b01e9(0x1e3)]['transformByState']({'width':_0x23c908*_0x50cda9/_0x16507c,'height':_0x25c51b*_0x50cda9/_0x184065,'scaleX':_0x16507c*_0x50cda9,'scaleY':_0x184065*_0x50cda9});if(_0x492b10[_0x1b01e9(0x2cd)])_0x492b10[_0x1b01e9(0x2cd)][_0x1b01e9(0x2c3)](_0x23c908*_0x50cda9/_0x16507c,_0x25c51b*_0x50cda9/_0x184065);}},[_0x23e8fe,_0x3e3cdf,_0x58bacf,_0x20e6aa,_0x410f06,_0x4a3d1a,_0x2aa5b7,_0x374752,_0x29f0f7,_0x3d9b3d,_0x1b8775]),_0x174908=useCallback((_0x271555=![])=>{_0x2d7166(),_0x452309['current']=requestAnimationFrame(()=>{const _0x46ecde=_0x21c0;_0xc768a6();if(_0x271555)_0x47cca1(![]);_0x452309[_0x46ecde(0x2e8)]=null,_0x443cde[_0x46ecde(0x2e8)]=window[_0x46ecde(0x180)](()=>{_0xc768a6();if(_0x271555)_0x47cca1(![]);_0x443cde['current']=null;},0x14);});},[_0xc768a6,_0x2d7166,_0x47cca1]);useEffect(()=>{const _0x2aa104=_0x3b787a;if(!_0x23e8fe||!_0x42ad8c)return;const {shapeId:_0x3d9839,unitId:_0x3b7d10,subUnitId:_0x356c16}=_0x42ad8c;if(_0x2522ae){var _0x45caee,_0x342df7,_0x138106,_0x2b07ea;const _0x1125d1=stripShapeTextDocumentLayout(_0x23e8fe[_0x2aa104(0x619)]()),_0xc114a0=_0x410f06(),_0x2883e2={'va':(_0x45caee=_0xc114a0===null||_0xc114a0===void 0x0?void 0x0:_0xc114a0['verticalAlign'])!==null&&_0x45caee!==void 0x0?_0x45caee:VerticalAlign[_0x2aa104(0x253)],'ha':(_0x342df7=_0xc114a0===null||_0xc114a0===void 0x0?void 0x0:_0xc114a0[_0x2aa104(0x474)])!==null&&_0x342df7!==void 0x0?_0x342df7:HorizontalAlign[_0x2aa104(0x1b3)],'doc':_0x1125d1};_0xa1e88a['executeCommand'](UpdateShapeDataCommand['id'],{'unitId':_0x3b7d10,'subUnitId':_0x356c16,'shapeId':_0x3d9839,'shapeData':{'shapeText':{'isHorizontal':(_0x138106=_0xc114a0===null||_0xc114a0===void 0x0?void 0x0:_0xc114a0[_0x2aa104(0x23e)])!==null&&_0x138106!==void 0x0?_0x138106:!![],'dataModel':_0x2883e2}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x2b07ea=_0xc114a0===null||_0xc114a0===void 0x0?void 0x0:_0xc114a0[_0x2aa104(0x23e)])!==null&&_0x2b07ea!==void 0x0?_0x2b07ea:!![],'dataModel':_0x516f0d[_0x2aa104(0x2e8)]}}}});return;}const _0x39499e=_0x410f06();if(_0x39499e===null||_0x39499e===void 0x0?void 0x0:_0x39499e['doc']){_0x516f0d[_0x2aa104(0x2e8)]={'va':_0x39499e[_0x2aa104(0x459)],'ha':_0x39499e[_0x2aa104(0x474)],'doc':Tools[_0x2aa104(0x63f)](_0x39499e[_0x2aa104(0x34b)])};const _0x51a9bc=prepareShapeTextDocumentData(_0x39499e[_0x2aa104(0x34b)],{'isHorizontal':!![],'textRect':_0x39499e['textRect'],'verticalAlign':_0x39499e[_0x2aa104(0x459)],'horizontalAlign':_0x39499e[_0x2aa104(0x474)]});return _0x23e8fe['setDocumentData'](_0x51a9bc,null),()=>{const _0x359e54=_0x2aa104;var _0x3b32eb,_0x60d751,_0x4ca645,_0x319d0f;const _0x3ca546=stripShapeTextDocumentLayout(_0x23e8fe['getDocumentData']()),_0x2f6eb4=_0x410f06(),_0x2d44e8={'va':(_0x3b32eb=_0x2f6eb4===null||_0x2f6eb4===void 0x0?void 0x0:_0x2f6eb4[_0x359e54(0x459)])!==null&&_0x3b32eb!==void 0x0?_0x3b32eb:VerticalAlign[_0x359e54(0x253)],'ha':(_0x60d751=_0x2f6eb4===null||_0x2f6eb4===void 0x0?void 0x0:_0x2f6eb4[_0x359e54(0x474)])!==null&&_0x60d751!==void 0x0?_0x60d751:HorizontalAlign[_0x359e54(0x1b3)],'doc':_0x3ca546};_0xa1e88a[_0x359e54(0x60d)](UpdateShapeDataCommand['id'],{'unitId':_0x3b7d10,'subUnitId':_0x356c16,'shapeId':_0x3d9839,'shapeData':{'shapeText':{'isHorizontal':(_0x4ca645=_0x2f6eb4===null||_0x2f6eb4===void 0x0?void 0x0:_0x2f6eb4[_0x359e54(0x23e)])!==null&&_0x4ca645!==void 0x0?_0x4ca645:!![],'dataModel':_0x2d44e8}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x319d0f=_0x2f6eb4===null||_0x2f6eb4===void 0x0?void 0x0:_0x2f6eb4['isHorizontal'])!==null&&_0x319d0f!==void 0x0?_0x319d0f:!![],'dataModel':_0x516f0d[_0x359e54(0x2e8)]}}}});};}else _0x23e8fe['setDocumentData'](_0x546800,null);},[_0x23e8fe,_0x42ad8c,_0x2522ae]),useEffect(()=>{const _0x32db64=_0x3b787a;if(!_0x23e8fe||!_0x42ad8c)return;return _0x1f2ecb[_0x32db64(0x239)](!![]),_0xc768a6(),_0x1eb892[_0x32db64(0x2e8)]=requestAnimationFrame(()=>{const _0x344ad5=_0x32db64;_0x1f2ecb[_0x344ad5(0x586)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x47cca1(),_0x174908(),_0x1eb892[_0x344ad5(0x2e8)]=null;}),()=>{const _0x29395b=_0x32db64;_0x1eb892[_0x29395b(0x2e8)]!==null&&(cancelAnimationFrame(_0x1eb892['current']),_0x1eb892[_0x29395b(0x2e8)]=null),_0x2d7166(),_0x1f2ecb[_0x29395b(0x239)](!![]);};},[_0x23e8fe,_0x42ad8c,_0x1f2ecb,_0xc768a6,_0x47cca1,_0x174908,_0x2d7166]),useEffect(()=>{const _0x49b8fc=_0x3b787a;if(!_0x23e8fe)return;const _0x2ba51c=_0xa1e88a[_0x49b8fc(0x4b4)](_0x4f2e27=>{const _0x38e9a7=_0x49b8fc;if(_0x4f2e27['id']===RichTextEditingMutation['id']){if(_0x4f2e27[_0x38e9a7(0x438)][_0x38e9a7(0x221)]===DOCS_SHAPE_EDITOR_UNIT_ID_KEY){if(_0x42ad8c){if(!_0x42ad8c['visible'])_0x4d8620[_0x38e9a7(0x312)]({..._0x42ad8c,'visible':!![]});else _0xc768a6();}}}if(_0x4f2e27['id']===SetShapeTextVerticalAlignCommand['id'])_0x174908(!![]);});return()=>{const _0x172631=_0x49b8fc;_0x2ba51c[_0x172631(0x2cb)]();};},[_0x23e8fe,_0xc768a6,_0x42ad8c,_0x174908,_0x4d8620]),useEffect(()=>{return _0xc768a6(),_0x174908(),()=>{_0x2d7166();};},[_0xc768a6,_0x174908,_0x2d7166]);const _0x295e09=useMemo(()=>{const _0x2d1492=_0x3b787a;var _0x41d52b;const _0x4dd1bf=(_0x41d52b=_0x4a3d1a())!==null&&_0x41d52b!==void 0x0?_0x41d52b:{'left':0x0,'top':0x0,'width':_0x2aa5b7/_0x29f0f7,'height':_0x374752/_0x3d9b3d},_0x4f40bf=_0x4dd1bf[_0x2d1492(0x384)]*_0x29f0f7,_0x791990=_0x4dd1bf[_0x2d1492(0x278)]*_0x3d9b3d,_0x1de828=_0x4dd1bf[_0x2d1492(0x2a5)]*_0x29f0f7;if(_0x359da6[_0x2d1492(0x2e1)])return{'top':_0x791990+_0x359da6[_0x2d1492(0x468)],'left':_0x4f40bf,'width':_0x1de828,'height':_0x359da6[_0x2d1492(0x19c)]};return{'top':_0x791990,'left':_0x4f40bf,'width':_0x1de828,'height':_0x359da6[_0x2d1492(0x19c)]};},[_0x359da6,_0x4a3d1a,_0x2aa5b7,_0x374752,_0x29f0f7,_0x3d9b3d]),_0x327da2=useMemo(()=>{const _0x5a301f=_0x3b787a,_0x54c0a1=_0x410f06(),_0x5f4e87=_0x54c0a1===null||_0x54c0a1===void 0x0?void 0x0:_0x54c0a1[_0x5a301f(0x23f)];if(_0x5f4e87)return _0x5f4e87||{'angle':0x0,'flipX':![],'flipY':![]};return{'angle':0x0,'flipX':![],'flipY':![]};},[_0x410f06]);return jsx('div',{'ref':_0xfbbf45,'data-u-comp':'shape-text-editor','className':_0x3b787a(0x47c),'style':{'transform':_0x3b787a(0x27b)+_0x327da2[_0x3b787a(0x195)]+_0x3b787a(0x204)+(_0x327da2[_0x3b787a(0x570)]?-0x1:0x1)+')'},'children':jsx(_0x3b787a(0x307),{'ref':_0x4e4220,'className':_0x3b787a(0x506),'data-u-comp':'shape-text-editor-content','style':_0x295e09,'data-editorid':DOCS_SHAPE_EDITOR_UNIT_ID_KEY})});};ShapeEditor[_0x5a2394(0x5ea)]=_0x5a2394(0x36c);const DEFAULT_HIDDEN_POSITION={'left':-0x270f,'top':-0x270f,'width':0x64,'height':0x64,'angle':0x0,'scaleX':0x1,'scaleY':0x1};function calcBestDOMPositionForFreezeZones(_0x27440b,_0x1af9ae,_0x322e46,_0x2050c7){const _0x18dc8e=_0x5a2394,{scaleX:_0x5d32b7,scaleY:_0x5b643b}=_0x322e46[_0x18dc8e(0x3c4)](),{startColumn:_0x57568f,startRow:_0x222419,xSplit:_0x404bfb,ySplit:_0x5979b2}=_0x2050c7[_0x18dc8e(0x3ec)]['getFreeze'](),_0x122219=_0x322e46['getViewport'](SHEET_VIEWPORT_KEY[_0x18dc8e(0x347)]),_0x573577=_0x322e46[_0x18dc8e(0x245)](SHEET_VIEWPORT_KEY['VIEW_MAIN_LEFT_TOP']),_0xfcea02=_0x322e46['getViewport'](SHEET_VIEWPORT_KEY['VIEW_MAIN_TOP']),_0x8558a3=_0x322e46[_0x18dc8e(0x245)](SHEET_VIEWPORT_KEY[_0x18dc8e(0x2d5)]),{rowHeaderWidth:_0x213a0f,columnHeaderHeight:_0x17ce3d}=_0x2050c7,_0x598670=_0x2050c7[_0x18dc8e(0x338)](_0x222419)+_0x17ce3d,_0x1b52fc=_0x2050c7[_0x18dc8e(0x26b)](_0x57568f)+_0x213a0f,_0x218e41=_0x2050c7[_0x18dc8e(0x338)](_0x222419-_0x5979b2)+_0x17ce3d,_0x1cc2e2=_0x2050c7[_0x18dc8e(0x26b)](_0x57568f-_0x404bfb)+_0x213a0f,_0x594bad=[],_0x2afca8=(_0x1f2e76,_0x25259d,_0x285f6d)=>{if(!_0x1f2e76)return null;const {viewportScrollX:_0x148141,viewportScrollY:_0x156f4f}=_0x1f2e76;let _0x3f421c,_0x218524;if(_0x25259d)_0x3f421c=(_0x27440b-(_0x1cc2e2-_0x213a0f))*_0x5d32b7;else _0x3f421c=(_0x27440b-_0x148141)*_0x5d32b7;if(_0x285f6d)_0x218524=(_0x1af9ae-(_0x218e41-_0x17ce3d))*_0x5b643b;else _0x218524=(_0x1af9ae-_0x156f4f)*_0x5b643b;return{'domX':_0x3f421c,'domY':_0x218524};},_0x21438f=_0x27440b<_0x1b52fc&&_0x404bfb>0x0,_0x180c98=_0x1af9ae<_0x598670&&_0x5979b2>0x0,_0xcafdb2=_0x27440b>=_0x1b52fc||_0x404bfb===0x0,_0x4fe8c9=_0x1af9ae>=_0x598670||_0x5979b2===0x0;if(_0x21438f&&_0x180c98&&_0x573577){const _0x1b21e4=_0x2afca8(_0x573577,!![],!![]);if(_0x1b21e4)_0x594bad[_0x18dc8e(0x646)](_0x1b21e4);}if(_0x180c98&&_0xcafdb2&&_0xfcea02){const _0x569597=_0x2afca8(_0xfcea02,![],!![]);if(_0x569597)_0x594bad['push'](_0x569597);}if(_0x21438f&&_0x4fe8c9&&_0x8558a3){const _0x19edca=_0x2afca8(_0x8558a3,!![],![]);if(_0x19edca)_0x594bad[_0x18dc8e(0x646)](_0x19edca);}if(_0xcafdb2&&_0x4fe8c9&&_0x122219){const _0x24e238=_0x2afca8(_0x122219,![],![]);if(_0x24e238)_0x594bad['push'](_0x24e238);}if(_0x594bad[_0x18dc8e(0x380)]===0x0){var _0x183c63,_0x32b7c2;return{'domX':(_0x27440b-((_0x183c63=_0x122219===null||_0x122219===void 0x0?void 0x0:_0x122219[_0x18dc8e(0x5fb)])!==null&&_0x183c63!==void 0x0?_0x183c63:0x0))*_0x5d32b7,'domY':(_0x1af9ae-((_0x32b7c2=_0x122219===null||_0x122219===void 0x0?void 0x0:_0x122219[_0x18dc8e(0x34e)])!==null&&_0x32b7c2!==void 0x0?_0x32b7c2:0x0))*_0x5b643b};}let _0x2819c7=_0x594bad[0x0][_0x18dc8e(0x3c2)],_0x5aa256=_0x594bad[0x0]['domY'];for(const _0x1f7040 of _0x594bad){if(_0x1f7040[_0x18dc8e(0x3c2)]>_0x2819c7)_0x2819c7=_0x1f7040['domX'];if(_0x1f7040[_0x18dc8e(0x5d1)]>_0x5aa256)_0x5aa256=_0x1f7040[_0x18dc8e(0x5d1)];}return{'domX':_0x2819c7,'domY':_0x5aa256};}function calcShapePosition(_0x6c3109,_0x2fbff2,_0x38b0c5,_0x4a3eb6,_0x822ee5,_0x4ff207,_0x4e2e94){const _0x3d399d=_0x5a2394,{scaleX:_0x55f43b,scaleY:_0x4f2193}=_0x4ff207[_0x3d399d(0x3c4)](),{domX:_0x4867d5,domY:_0x3bdc7f}=calcBestDOMPositionForFreezeZones(_0x6c3109,_0x2fbff2,_0x4ff207,_0x4e2e94);return{'left':_0x4867d5,'top':_0x3bdc7f,'width':_0x38b0c5*_0x55f43b,'height':_0x4a3eb6*_0x4f2193,'angle':_0x822ee5,'scaleX':_0x55f43b,'scaleY':_0x4f2193};}function useShapePosition(_0x1c0201){const _0x2f30d1=_0x5a2394,{editingParams:_0x1a7402,scene:_0x5e78b5,skeleton:_0x2f3125,getShapeTransform:_0x5f10f4}=_0x1c0201,[_0x1fec9b,_0x190877]=useState(DEFAULT_HIDDEN_POSITION),_0x3b668d=useRef(_0x1fec9b);_0x3b668d[_0x2f30d1(0x2e8)]=_0x1fec9b;const _0x186cd9=useCallback(()=>{const _0x51d009=_0x2f30d1;if(!_0x1a7402||!_0x5e78b5||!_0x2f3125){if(_0x3b668d[_0x51d009(0x2e8)]!==DEFAULT_HIDDEN_POSITION)_0x190877(DEFAULT_HIDDEN_POSITION);return;}const _0x18d76f=_0x5f10f4();if(!_0x18d76f){if(_0x3b668d[_0x51d009(0x2e8)]!==DEFAULT_HIDDEN_POSITION)_0x190877(DEFAULT_HIDDEN_POSITION);return;}const {left:_0x522cd8,top:_0xd0da54,width:_0x3e76cb,height:_0x1816b0,angle:_0x39380a}=_0x18d76f;if(!_0x1a7402[_0x51d009(0x2d0)]){const {scaleX:_0x1862d7,scaleY:_0xaa79fd}=_0x5e78b5[_0x51d009(0x3c4)]();_0x190877({'left':-0x270f,'top':-0x270f,'width':_0x3e76cb*_0x1862d7,'height':_0x1816b0*_0xaa79fd,'angle':0x0,'scaleX':_0x1862d7,'scaleY':_0xaa79fd});return;}_0x190877(calcShapePosition(_0x522cd8,_0xd0da54,_0x3e76cb,_0x1816b0,_0x39380a,_0x5e78b5,_0x2f3125));},[_0x1a7402,_0x5e78b5,_0x2f3125,_0x5f10f4]);return useEffect(()=>{_0x186cd9();},[_0x1a7402,_0x186cd9]),{'position':_0x1fec9b,'updatePosition':_0x186cd9};}const ShapePositionWrapper=memo(_0x28d7e3=>{const _0xc85848=_0x5a2394,{children:_0x282a15,onPositionUpdate:_0x515e56}=_0x28d7e3,_0x470279=useRef(null),_0x38f4f3=useDependency(ShapeTextEditingService),_0x4eaf79=useDependency(IRenderManagerService),_0x78d9fc=useObservable(_0x38f4f3['editingParams$']),_0x13c3cf=useMemo(()=>{const _0x20a652=_0x21c0;if(!_0x78d9fc)return null;return _0x4eaf79[_0x20a652(0x534)](_0x78d9fc[_0x20a652(0x221)]);},[_0x78d9fc,_0x4eaf79]),_0x401880=useMemo(()=>{const _0x44bbba=_0x21c0;var _0x8bd9e4;return(_0x8bd9e4=_0x13c3cf===null||_0x13c3cf===void 0x0?void 0x0:_0x13c3cf[_0x44bbba(0x1e3)])!==null&&_0x8bd9e4!==void 0x0?_0x8bd9e4:null;},[_0x13c3cf]),{position:_0x3cc95f,updatePosition:_0x365240}=useShapePosition({'editingParams':_0x78d9fc,'scene':_0x401880,'skeleton':useMemo(()=>{const _0x2f1e87=_0x21c0;var _0x163e75,_0x4d3b2d;if(!_0x78d9fc||!_0x13c3cf)return null;return(_0x163e75=(_0x4d3b2d=_0x13c3cf[_0x2f1e87(0x42d)](SheetSkeletonManagerService)[_0x2f1e87(0x1b4)](_0x78d9fc[_0x2f1e87(0x3c7)]))===null||_0x4d3b2d===void 0x0?void 0x0:_0x4d3b2d[_0x2f1e87(0x60f)])!==null&&_0x163e75!==void 0x0?_0x163e75:null;},[_0x78d9fc,_0x13c3cf]),'getShapeTransform':useCallback(()=>{const _0x40b70e=_0x21c0;if(!_0x78d9fc||!_0x401880)return null;const _0x4fdd84=_0x78d9fc['shapeKey'],_0x2118ac=_0x401880[_0x40b70e(0x348)](_0x4fdd84);if(_0x2118ac instanceof DrawingShape)return{'left':_0x2118ac[_0x40b70e(0x384)],'top':_0x2118ac[_0x40b70e(0x278)],'width':_0x2118ac['width'],'height':_0x2118ac['height'],'angle':_0x2118ac[_0x40b70e(0x195)]};return null;},[_0x78d9fc,_0x401880])}),_0x558b2b=useCallback(()=>{const _0x288e68=_0x21c0,_0x413a8c=_0x470279['current'];if(!_0x413a8c)return;_0x413a8c[_0x288e68(0x51c)][_0x288e68(0x384)]=_0x3cc95f['left']+'px',_0x413a8c[_0x288e68(0x51c)][_0x288e68(0x278)]=_0x3cc95f[_0x288e68(0x278)]+'px',_0x413a8c[_0x288e68(0x51c)]['width']=_0x3cc95f[_0x288e68(0x2a5)]+'px',_0x413a8c[_0x288e68(0x51c)][_0x288e68(0x233)]=_0x3cc95f[_0x288e68(0x233)]+'px';},[_0x3cc95f]);return useEffect(()=>{const _0x1c8acb=_0x21c0;_0x558b2b(),_0x515e56===null||_0x515e56===void 0x0||_0x515e56({'width':_0x3cc95f[_0x1c8acb(0x2a5)],'height':_0x3cc95f[_0x1c8acb(0x233)],'scaleX':_0x3cc95f[_0x1c8acb(0x4ca)],'scaleY':_0x3cc95f[_0x1c8acb(0x29f)]});},[_0x3cc95f,_0x558b2b,_0x515e56]),useEffect(()=>{const _0x2c53fc=_0x21c0;if(!_0x401880)return;const _0x44b892=_0x401880[_0x2c53fc(0x245)](SHEET_VIEWPORT_KEY['VIEW_MAIN']);if(!_0x44b892)return;const _0x3b18d5=_0x44b892['onScrollAfter$']['subscribeEvent'](()=>{_0x365240();});return()=>{const _0x3a39c9=_0x2c53fc;_0x3b18d5[_0x3a39c9(0x593)]();};},[_0x401880,_0x365240]),useEffect(()=>{const _0x427d38=_0x21c0;if(!_0x78d9fc||!_0x401880)return;const _0x398992=_0x78d9fc[_0x427d38(0x3cd)],_0x4822ad=_0x401880[_0x427d38(0x348)](_0x398992);if(_0x4822ad instanceof DrawingShape){const _0x46e84a=_0x4822ad[_0x427d38(0x403)]['subscribeEvent'](()=>{_0x365240();});return()=>{const _0x2fd250=_0x427d38;_0x46e84a[_0x2fd250(0x593)]();};}},[_0x78d9fc,_0x401880,_0x365240]),jsx('div',{'ref':_0x470279,'data-u-comp':_0xc85848(0x2b4),'className':_0xc85848(0x3e3),'style':useMemo(()=>({'left':_0x3cc95f[_0xc85848(0x384)],'top':_0x3cc95f[_0xc85848(0x278)],'width':_0x3cc95f[_0xc85848(0x2a5)],'height':_0x3cc95f['height'],'pointerEvents':(_0x78d9fc===null||_0x78d9fc===void 0x0?void 0x0:_0x78d9fc[_0xc85848(0x2d0)])?'auto':_0xc85848(0x50c)}),[_0x3cc95f,_0x78d9fc===null||_0x78d9fc===void 0x0?void 0x0:_0x78d9fc[_0xc85848(0x2d0)]]),'children':_0x282a15});});ShapePositionWrapper[_0x5a2394(0x5ea)]=_0x5a2394(0x329);const ShapeTextEditorContainer=memo(()=>{const _0xf81d2a=_0x5a2394,_0x2ae898=useObservable(useDependency(ShapeTextEditingService)[_0xf81d2a(0x59f)]),[_0x5a318c,_0x3ec994]=useState({'width':0x64,'height':0x64,'scaleX':0x1,'scaleY':0x1}),_0x50fbb9=useCallback(_0xf7df60=>{const _0x4d8493=_0xf81d2a;_0x3ec994({'width':_0xf7df60[_0x4d8493(0x2a5)],'height':_0xf7df60[_0x4d8493(0x233)],'scaleX':_0xf7df60[_0x4d8493(0x4ca)],'scaleY':_0xf7df60[_0x4d8493(0x29f)]});},[]);if(!(_0x2ae898===null||_0x2ae898===void 0x0?void 0x0:_0x2ae898['visible']))return null;return jsx(ShapePositionWrapper,{'onPositionUpdate':_0x50fbb9,'children':jsx(ShapeEditor,{'containerWidth':_0x5a318c['width'],'containerHeight':_0x5a318c['height'],'scaleX':_0x5a318c['scaleX'],'scaleY':_0x5a318c[_0xf81d2a(0x29f)]})});});ShapeTextEditorContainer[_0x5a2394(0x5ea)]=_0x5a2394(0x219);let UniverSheetsShapeUIPlugin=class UniverSheetsShapeUIPlugin extends Plugin{constructor(_0x3c1d44=defaultPluginConfig,_0x2784a2,_0x52c6a5,_0x278e0f,_0x5a4f42){const _0x55a77f=_0x5a2394;super(),this[_0x55a77f(0x51a)]=_0x3c1d44,this[_0x55a77f(0x597)]=_0x2784a2,this[_0x55a77f(0x2c9)]=_0x52c6a5,this[_0x55a77f(0x5e6)]=_0x278e0f,this['_renderManagerService']=_0x5a4f42;const {..._0x46e8ed}=merge({},defaultPluginConfig,this[_0x55a77f(0x51a)]);this[_0x55a77f(0x5e6)]['setConfig'](SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY,_0x46e8ed),this['_initCommands']();}[_0x5a2394(0x5c8)](){touchDependencies(this['_injector'],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController]]);}[_0x5a2394(0x54f)](){const _0x46b7e9=_0x5a2394;[[SheetBasicShapeConnectionPointController],[SheetShapeAdjustController],[SheetShapeClipboardController]]['forEach'](_0x1460c3=>this['_injector']['add'](_0x1460c3)),touchDependencies(this[_0x46b7e9(0x597)],[[SheetShapeClipboardController]]),this[_0x46b7e9(0x400)]['registerRenderModule'](UniverInstanceType[_0x46b7e9(0x533)],[SheetBasicShapeConnectionPointController]),this[_0x46b7e9(0x400)][_0x46b7e9(0x4be)](UniverInstanceType[_0x46b7e9(0x533)],[SheetShapeAdjustController]),this[_0x46b7e9(0x400)][_0x46b7e9(0x4be)](UniverInstanceType[_0x46b7e9(0x533)],[ImageClipAdjustController]),this[_0x46b7e9(0x400)][_0x46b7e9(0x4be)](UniverInstanceType['UNIVER_SHEET'],[SheetShapeConnectorController]),this[_0x46b7e9(0x400)]['registerRenderModule'](UniverInstanceType[_0x46b7e9(0x533)],[ShapeTextEditingRenderController]);}[_0x5a2394(0x4b1)](){const _0x5e728c=_0x5a2394,_0x1d2d13=this[_0x5e728c(0x597)];_0x1d2d13[_0x5e728c(0x359)](ComponentManager)[_0x5e728c(0x2a7)](ShapeTextEditorContainer$1,ShapeTextEditorContainer),[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]][_0x5e728c(0x386)](_0x26494b=>_0x1d2d13['add'](_0x26494b)),touchDependencies(this[_0x5e728c(0x597)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]]);}[_0x5a2394(0x2ed)](){const _0x2fdef3=_0x5a2394;[MenuInsertShapeCommand,UpdateShapeDataCommand,SetShapeTextVerticalAlignCommand,SetShapeTextHorizontalAlignCommand,SetShapeTextFontSizeCommand,SetShapeTextFontSizeDecreaseCommand,SetShapeTextFontSizeIncreaseCommand,CloseSheetShapeFormatPanelOperation,OpenSheetShapeFormatPanelOperation,ShapeDocAlignCommand,ActiveDrawingSelectedOperation][_0x2fdef3(0x386)](_0xfdbae9=>this[_0x2fdef3(0x1e9)](this['_commandService'][_0x2fdef3(0x19b)](_0xfdbae9)));}};_defineProperty(UniverSheetsShapeUIPlugin,_0x5a2394(0x5f9),UniverInstanceType[_0x5a2394(0x533)]),_defineProperty(UniverSheetsShapeUIPlugin,'pluginName',_0x5a2394(0x425)),_defineProperty(UniverSheetsShapeUIPlugin,_0x5a2394(0x5f8),name),_defineProperty(UniverSheetsShapeUIPlugin,_0x5a2394(0x2c2),version),UniverSheetsShapeUIPlugin=__decorate([DependentOn(UniverSheetsDrawingUIPlugin,UniverSheetsShapePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,ICommandService),__decorateParam(0x3,IConfigService),__decorateParam(0x4,IRenderManagerService)],UniverSheetsShapeUIPlugin);export{SetShapeTextFontSizeCommand,SetShapeTextFontSizeDecreaseCommand,SetShapeTextFontSizeIncreaseCommand,SetShapeTextHorizontalAlignCommand,SetShapeTextVerticalAlignCommand,ShapeDocAlignCommand,SheetsShapeUIController,UniverSheetsShapeUIPlugin,UpdateShapeDataCommand};