@univerjs-pro/boards-mind-ui 1.0.0-rc.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +75 -0
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/board-mind-map-insert.render-controller.d.ts +10 -3
- package/lib/types/controllers/board-mind-map-panel.controller.d.ts +1 -3
- package/lib/types/controllers/components.controller.d.ts +2 -2
- package/lib/types/controllers/mobile/board-mind-map-insert.render-controller.d.ts +7 -0
- package/lib/types/controllers/mobile/board-mind-map-panel.controller.d.ts +12 -0
- package/lib/types/controllers/mobile/components.controller.d.ts +7 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +9 -0
- package/lib/types/mobile-plugin.d.ts +18 -0
- package/lib/types/plugin.d.ts +3 -0
- package/lib/types/render-objects/board-mind-map-node-controls-object.d.ts +4 -3
- package/lib/types/utils/mind-map-node-controls.util.d.ts +1 -0
- package/lib/types/views/BoardMindMapMobileStylePanel.d.ts +7 -0
- package/lib/types/views/BoardMindMapPanel.d.ts +56 -5
- package/lib/types/views/mobile/BoardMobileMindMapFloatingToolbar.d.ts +3 -0
- package/lib/types/views/mobile/BoardMobileMindMapPanel.d.ts +2 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -14
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3d9742=_0x19c3;(function(_0x4bbf6a,_0x474b46){const _0x189d5a=_0x19c3,_0x4d2752=_0x4bbf6a();while(!![]){try{const _0xc3d1a5=parseInt(_0x189d5a(0x27c))/0x1*(parseInt(_0x189d5a(0x411))/0x2)+parseInt(_0x189d5a(0x277))/0x3+parseInt(_0x189d5a(0x465))/0x4+-parseInt(_0x189d5a(0x31b))/0x5+parseInt(_0x189d5a(0x2d1))/0x6+-parseInt(_0x189d5a(0x2c1))/0x7+parseInt(_0x189d5a(0x1fa))/0x8*(parseInt(_0x189d5a(0x1be))/0x9);if(_0xc3d1a5===_0x474b46)break;else _0x4d2752['push'](_0x4d2752['shift']());}catch(_0x3633cb){_0x4d2752['push'](_0x4d2752['shift']());}}}(_0x2b18,0xedb69));import{BoardElementType as _0x12a1e2,BoardToolType as _0x44aee8,IBoardElementService as _0x6adb2b,IBoardMindMapAdapterService as _0x12c9a1,UniverBoardsPlugin as _0x18ec71,documentTextStyleToBoardShapeTextStyle as _0x2907f4,offsetBoardConnectorGeometry as _0x290005,resolveBoardElementWorldBounds as _0x58d07c}from'@univerjs-pro/boards';import{AddMindMapChildOperation as _0x2f341c,AddMindMapSiblingOperation as _0x97b05c,ChangeMindMapBranchLineTypeOperation as _0x5ee918,ChangeMindMapLayoutOperation as _0x54ccd8,CopyMindMapNodeOperation as _0x152965,DeleteMindMapNodeOperation as _0xdfeb89,DetachMindMapNodeOperation as _0x16e910,ExportMindMapOpmlOperation as _0x4aaf06,IMindMapClipboardService as _0x3e2d72,ImportMindMapOpmlOperation as _0x500911,InsertBoardMindMapOperation as _0x392469,LayoutMindMapOperation as _0x46019e,MIND_MAP_DEFAULT_LAYOUT as _0x43d9d8,MIND_MAP_DEFAULT_NODE_SIZE as _0x136bc3,MIND_MAP_DEFAULT_NODE_TEXT as _0x5c96e4,MIND_MAP_LAYOUT_SPACING_LIMITS as _0xf77dd2,PasteMindMapAsNewMindMapOperation as _0x1c51bf,PasteMindMapNodeOperation as _0xa9b685,PromoteMindMapNodeOperation as _0x194109,ReparentMindMapNodeOperation as _0xad8871,ToggleMindMapNodeCollapseOperation as _0x108bd7,TranslateMindMapOperation as _0x220e2c,UniverBoardsMindPlugin as _0x1ae252,UpdateMindMapIncomingConnectorOperation as _0x55b725,UpdateMindMapNodeOperation as _0x17468f,compareMindMapOrderKey as _0xd5afc9,getMindMapConnectorMeta as _0x8df2eb,getMindMapContainerMeta as _0x24b789,getMindMapDefaultChildOrderKey as _0x2bfc2b,getMindMapNodeMeta as _0x2329f8,isMindMapPlainStructureKind as _0x2045a1,resolveMindMapBranchLineTypeForStructure as _0x490e3e,resolveMindMapLayoutPreview as _0x6d6d67,resolveMindMapNodeHostSize as _0x5e28d6}from'@univerjs-pro/boards-mind';import{BOARDS_UI_PLUGIN_CONFIG_KEY as _0x54d1ca,BOARD_RENDER_LAYER_INDEX as _0x480444,BOARD_RENDER_OBJECT_Z_INDEX as _0x588fe7,BOARD_SHORTCUT_BINDINGS as _0x42c4fd,BoardCanvasPopManagerService as _0x42c832,BoardInteractionSurfaceService as _0x501d6a,BoardShapeIntrinsicSizeService as _0x233f28,BoardTextEditingService as _0x36fa6f,IBoardElementStateService as _0x1bd113,IBoardUIStateService as _0x1d4c5c,UniverBoardsUIPlugin as _0x9e4849,areBoardShapeTextValuesEquivalent as _0x2964d5,getBoardElementRenderObjectKey as _0x4a409b,parseBoardElementRenderObjectKey as _0xa94e38,resolveBoardFloatingToolbarSelection as _0x471b70,syncBoardElementRenderObject as _0x3b4072}from'@univerjs-pro/boards-ui';import{UniverLicensePlugin as _0x1fd571}from'@univerjs-pro/license';import{CommandType as _0x5717c8,DEFAULT_STYLES as _0x53e66a,DependentOn as _0x294b71,Disposable as _0x300276,DisposableCollection as _0x3144e4,HorizontalAlign as _0x3bb02f,ICommandService as _0x234c21,IConfigService as _0x614972,IContextService as _0xa168f2,IUniverInstanceService as _0x42b922,Inject as _0x45c8ba,Injector as _0x191d73,LocaleService as _0x3df9f7,Plugin as _0x3f7c2e,RxDisposable as _0xd55cd7,UniverInstanceType as _0x3eda62,VerticalAlign as _0x24f374,generateRandomId as _0x46ed23,merge as _0x489cbe,toDisposable as _0xdc7696}from'@univerjs/core';import{BaseObject as _0x3960a2,IRenderManagerService as _0x3f3aa4,UniverRenderEnginePlugin as _0x22bfff}from'@univerjs/engine-render';import{Subject as _0x1e7819,takeUntil as _0x4021f1}from'rxjs';import{ComponentManager as _0x11ce63,IDialogService as _0x32bf11,IShortcutService as _0x4c004d,KeyCode as _0x31cd21,MetaKeys as _0x56d8a8,UndoRedoGroupService as _0x5dbd59,useDependency as _0x881b68}from'@univerjs/ui';import{SHAPE_FLOATING_TOOLBAR_DEFAULT_STROKE_COLOR as _0x4e4ca8,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_BACKGROUND_COLOR as _0x49c5e6,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_COLOR as _0x193d2c,SHAPE_TEXT_EDITOR_QUOTE_COMMAND_ID as _0x342a34,ShapeFillButton as _0x5558af,ShapeFloatingToolbarContent as _0x2f2113,ShapeFloatingToolbarDropdownTrigger as _0x2be19c,ShapeFloatingToolbarFontSizeSelect as _0x1c4a53,ShapeFloatingToolbarIcon as _0x1b32eb,ShapeFloatingToolbarMenuItem as _0x437b3f,ShapeFloatingToolbarMenuPanel as _0x49e8ea,ShapeStrokePanelButton as _0xc59a04,ShapeStrokePanelContent as _0x6e631a,TextFillButton as _0x497f75,TypographyPanelButton as _0x3ae88b,buildShapeTextDataUpdate as _0x28febf}from'@univerjs-pro/shape-editor-ui';import{ShapeLineDashEnum as _0x3f3c37,ShapeLineTypeEnum as _0x262c0c}from'@univerjs-pro/engine-shape';import{Button as _0x2442d7,Dropdown as _0x105add,Input as _0x491ceb,InputNumber as _0x3f1c63,Segmented as _0x2c3c9e,Separator as _0x56098f,Textarea as _0x2fe6f5,borderClassName as _0x223ab4,clsx as _0x53cc5f}from'@univerjs/design';import{AlignBottomIcon as _0x5aca85,AlignTextBothIcon as _0x29d7e2,AlignTopIcon as _0x2cd78f,HorizontallyIcon as _0x7ae36a,LeftJustifyingIcon as _0x525016,MoreHorizontalIcon as _0x8a4b3a,RightJustifyingIcon as _0x4d854d,SearchIcon as _0x5a64a7,ShapeLineIcon as _0x4ee2c8,VerticalCenterIcon as _0x2b9091}from'@univerjs/icons';import{useState as _0x3c130b}from'react';import{Fragment as _0x253a8e,jsx as _0xeb0434,jsxs as _0x5d87b6}from'react/jsx-runtime';var Nt=_0x3d9742(0x19c),Pt=_0x3d9742(0x442);const Ft={};function It(_0x3fe0e0){'@babel/helpers - typeof';const _0x50789f=_0x3d9742;return It=typeof Symbol==_0x50789f(0x1a5)&&typeof Symbol['iterator']==_0x50789f(0x230)?function(_0x37a5ba){return typeof _0x37a5ba;}:function(_0x7be105){const _0x90da72=_0x50789f;return _0x7be105&&typeof Symbol==_0x90da72(0x1a5)&&_0x7be105[_0x90da72(0x1c7)]===Symbol&&_0x7be105!==Symbol[_0x90da72(0x34d)]?_0x90da72(0x230):typeof _0x7be105;},It(_0x3fe0e0);}function Lt(_0x2d3daa,_0x351132){const _0x36d2cf=_0x3d9742;if(It(_0x2d3daa)!=_0x36d2cf(0x2b5)||!_0x2d3daa)return _0x2d3daa;var _0x1cf3fb=_0x2d3daa[Symbol[_0x36d2cf(0x2af)]];if(_0x1cf3fb!==void 0x0){var _0x294e72=_0x1cf3fb[_0x36d2cf(0x378)](_0x2d3daa,_0x351132||'default');if(It(_0x294e72)!=_0x36d2cf(0x2b5))return _0x294e72;throw TypeError(_0x36d2cf(0x424));}return(_0x351132===_0x36d2cf(0x347)?String:Number)(_0x2d3daa);}function Rt(_0x5c762d){const _0xbe903=_0x3d9742;var _0x519913=Lt(_0x5c762d,_0xbe903(0x347));return It(_0x519913)==_0xbe903(0x230)?_0x519913:_0x519913+'';}function G(_0x5656d9,_0x138d05,_0x81bfee){const _0x2601a7=_0x3d9742;return(_0x138d05=Rt(_0x138d05))in _0x5656d9?Object[_0x2601a7(0x21f)](_0x5656d9,_0x138d05,{'value':_0x81bfee,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5656d9[_0x138d05]=_0x81bfee,_0x5656d9;}function K(_0x2a4c21,_0x56e53f){return function(_0x3b0a15,_0x22c451){_0x56e53f(_0x3b0a15,_0x22c451,_0x2a4c21);};}function q(_0x4c3c8a,_0x482563,_0x3c1d6c,_0x3dadc0){const _0x35c98b=_0x3d9742;var _0x5745c6=arguments[_0x35c98b(0x32b)],_0x1dfce4=_0x5745c6<0x3?_0x482563:_0x3dadc0===null?_0x3dadc0=Object[_0x35c98b(0x382)](_0x482563,_0x3c1d6c):_0x3dadc0,_0x2618c1;if(typeof Reflect==_0x35c98b(0x2b5)&&typeof Reflect['decorate']==_0x35c98b(0x1a5))_0x1dfce4=Reflect[_0x35c98b(0x266)](_0x4c3c8a,_0x482563,_0x3c1d6c,_0x3dadc0);else{for(var _0xf12405=_0x4c3c8a[_0x35c98b(0x32b)]-0x1;_0xf12405>=0x0;_0xf12405--)(_0x2618c1=_0x4c3c8a[_0xf12405])&&(_0x1dfce4=(_0x5745c6<0x3?_0x2618c1(_0x1dfce4):_0x5745c6>0x3?_0x2618c1(_0x482563,_0x3c1d6c,_0x1dfce4):_0x2618c1(_0x482563,_0x3c1d6c))||_0x1dfce4);}return _0x5745c6>0x3&&_0x1dfce4&&Object['defineProperty'](_0x482563,_0x3c1d6c,_0x1dfce4),_0x1dfce4;}let zt=class extends _0xd55cd7{constructor(_0xaa8f97,_0x22ab4e,_0x5d8db3){const _0x1ce6d3=_0x3d9742;super(),this[_0x1ce6d3(0x457)]=_0xaa8f97,this[_0x1ce6d3(0x2c5)]=_0x22ab4e,this[_0x1ce6d3(0x3af)]=_0x5d8db3,G(this,_0x1ce6d3(0x30e),new Map()),G(this,'_queuedLayouts',new Map()),G(this,'_layoutFlushScheduled',!0x1),this[_0x1ce6d3(0x220)]();}['_init'](){const _0x4c62ae=_0x3d9742;this[_0x4c62ae(0x36a)](),this['disposeWithMe'](_0xdc7696(this[_0x4c62ae(0x2c5)]['elementAdd$'][_0x4c62ae(0x3db)](_0x4021f1(this[_0x4c62ae(0x24f)]))[_0x4c62ae(0x36c)](_0x3cef06=>{const _0x25a82f=_0x4c62ae;_0x3cef06[_0x25a82f(0x44a)](_0x5321cb=>{const _0x1e8f7c=_0x25a82f;let _0x48965a=this[_0x1e8f7c(0x2c5)][_0x1e8f7c(0x386)](_0x5321cb[_0x1e8f7c(0x1b2)],_0x5321cb[_0x1e8f7c(0x2f0)],_0x5321cb[_0x1e8f7c(0x2c6)]);this['_rememberNodeSize'](_0x5321cb,_0x48965a);});}))),this[_0x4c62ae(0x2bf)](_0xdc7696(this[_0x4c62ae(0x2c5)][_0x4c62ae(0x2c0)][_0x4c62ae(0x3db)](_0x4021f1(this[_0x4c62ae(0x24f)]))[_0x4c62ae(0x36c)](_0x28ab6f=>{const _0x17b113=_0x4c62ae;_0x28ab6f[_0x17b113(0x44a)](_0xc7ecdf=>this['_handleElementUpdate'](_0xc7ecdf));})));}[_0x3d9742(0x36a)](){const _0x259415=_0x3d9742;let _0xbb7b78=this[_0x259415(0x457)]['unitId'],_0x1319c4=this[_0x259415(0x2c5)][_0x259415(0x221)](_0xbb7b78);Object['entries'](_0x1319c4)[_0x259415(0x44a)](([_0x584d45,_0xbe27a1])=>{const _0x206323=_0x259415;Object[_0x206323(0x2c9)](_0xbe27a1[_0x206323(0x3da)])[_0x206323(0x44a)](_0x36a44e=>{const _0x524d93=_0x206323;this[_0x524d93(0x1c4)]({'unitId':_0xbb7b78,'subUnitId':_0x584d45,'elementId':_0x36a44e[_0x524d93(0x2c6)]},_0x36a44e);});});}['_handleElementUpdate'](_0x10736e){const _0xae4b67=_0x3d9742;if(_0x10736e[_0xae4b67(0x1b2)]!==this[_0xae4b67(0x457)][_0xae4b67(0x1b2)])return;let _0x3a5ccc=this[_0xae4b67(0x2c5)][_0xae4b67(0x386)](_0x10736e[_0xae4b67(0x1b2)],_0x10736e[_0xae4b67(0x2f0)],_0x10736e[_0xae4b67(0x2c6)]),_0x1bc5a8=_0x2329f8(_0x3a5ccc==null?void 0x0:_0x3a5ccc['element']),_0x2bc737=this[_0xae4b67(0x1d1)](_0x3a5ccc);if(!_0x1bc5a8||!_0x2bc737){this[_0xae4b67(0x30e)][_0xae4b67(0x30a)](this[_0xae4b67(0x28f)](_0x10736e));return;}let _0x1daed7=this[_0xae4b67(0x28f)](_0x10736e),_0x4b2f77=this[_0xae4b67(0x30e)][_0xae4b67(0x421)](_0x1daed7);this[_0xae4b67(0x30e)]['set'](_0x1daed7,_0x2bc737),!(_0x4b2f77&&_0x4b2f77['width']===_0x2bc737[_0xae4b67(0x2cd)]&&_0x4b2f77[_0xae4b67(0x1c1)]===_0x2bc737['height'])&&this['_queueLayout']({'unitId':_0x10736e['unitId'],'subUnitId':_0x10736e[_0xae4b67(0x2f0)],'scopeId':_0x1bc5a8[_0xae4b67(0x405)]});}[_0x3d9742(0x1c4)](_0x557e98,_0x26cbf5){const _0x2a9912=_0x3d9742;if(_0x557e98[_0x2a9912(0x1b2)]!==this[_0x2a9912(0x457)][_0x2a9912(0x1b2)])return;let _0xcbbfcd=_0x2329f8(_0x26cbf5==null?void 0x0:_0x26cbf5[_0x2a9912(0x1f2)]),_0x4a6479=this[_0x2a9912(0x1d1)](_0x26cbf5);!_0xcbbfcd||!_0x4a6479||this[_0x2a9912(0x30e)]['set'](this[_0x2a9912(0x28f)](_0x557e98),_0x4a6479);}['_resolveNodeSize'](_0xb75882){const _0x5936b6=_0x3d9742;let _0x450ea7=(_0xb75882==null?void 0x0:_0xb75882[_0x5936b6(0x1ba)])??(_0xb75882==null?void 0x0:_0xb75882[_0x5936b6(0x1f2)][_0x5936b6(0x1ba)]),_0x1c4a94=_0x450ea7==null?void 0x0:_0x450ea7[_0x5936b6(0x2cd)],_0x337e00=_0x450ea7==null?void 0x0:_0x450ea7[_0x5936b6(0x1c1)];return!Number[_0x5936b6(0x1b5)](_0x1c4a94)||!Number[_0x5936b6(0x1b5)](_0x337e00)?null:{'width':_0x1c4a94,'height':_0x337e00};}[_0x3d9742(0x2e6)](_0xf41800){const _0x4e92ae=_0x3d9742;this[_0x4e92ae(0x44b)][_0x4e92ae(0x2d5)](_0xf41800[_0x4e92ae(0x1b2)]+':'+_0xf41800[_0x4e92ae(0x2f0)]+':'+_0xf41800['scopeId'],_0xf41800),!this[_0x4e92ae(0x251)]&&(this[_0x4e92ae(0x251)]=!0x0,Promise[_0x4e92ae(0x42c)]()[_0x4e92ae(0x3a8)](()=>{const _0x58d536=_0x4e92ae;this[_0x58d536(0x251)]=!0x1;let _0x1d1c4c=Array[_0x58d536(0x3a1)](this['_queuedLayouts']['values']());this[_0x58d536(0x44b)][_0x58d536(0x355)](),_0x1d1c4c[_0x58d536(0x44a)](_0x3ef211=>{const _0x3565a6=_0x58d536;this[_0x3565a6(0x472)](_0x3ef211);});}));}[_0x3d9742(0x472)](_0x235a01){const _0x3e8584=_0x3d9742;var _0xb70a84;let _0x155e1a=this['_boardElementService'][_0x3e8584(0x386)](_0x235a01['unitId'],_0x235a01['subUnitId'],_0x235a01[_0x3e8584(0x275)]),_0xf1b88f=(_0xb70a84=_0x24b789(_0x155e1a==null?void 0x0:_0x155e1a[_0x3e8584(0x1f2)]))==null?void 0x0:_0xb70a84[_0x3e8584(0x2a4)];this['_commandService'][_0x3e8584(0x3c9)](_0x46019e['id'],{..._0x235a01,'skipUndo':!0x0,..._0xf1b88f?{'anchorNodeId':_0xf1b88f}:null});}[_0x3d9742(0x28f)](_0x4ad0f9){const _0x5a4dd7=_0x3d9742;return _0x4ad0f9[_0x5a4dd7(0x1b2)]+':'+_0x4ad0f9[_0x5a4dd7(0x2f0)]+':'+_0x4ad0f9[_0x5a4dd7(0x2c6)];}};zt=q([K(0x1,_0x45c8ba(_0x6adb2b)),K(0x2,_0x234c21)],zt);const J={'primaryColor':_0x4e4ca8,'surfaceColor':_0x49c5e6,'textColor':_0x193d2c,'fontFamily':_0x53e66a['ff']};function Bt(_0x530dc2,_0x7d3601){const _0x1789d8=_0x3d9742;let _0x250253=Math['min'](0x1,Math[_0x1789d8(0x455)](0x0,Number[_0x1789d8(0x1b5)](_0x7d3601)?_0x7d3601:0x1)),_0x57ccdc=_0x530dc2[_0x1789d8(0x29d)](),_0x110056=/^#([0-9a-fA-F]{6})$/[_0x1789d8(0x2ac)](_0x57ccdc);if(!_0x110056)return _0x530dc2;let _0x961e50=_0x110056[0x1];return _0x1789d8(0x3c3)+Number[_0x1789d8(0x3df)](_0x961e50['slice'](0x0,0x2),0x10)+',\x20'+Number[_0x1789d8(0x3df)](_0x961e50[_0x1789d8(0x477)](0x2,0x4),0x10)+',\x20'+Number['parseInt'](_0x961e50[_0x1789d8(0x477)](0x4,0x6),0x10)+',\x20'+_0x250253+')';}const Y={'primaryColor':J[_0x3d9742(0x1d2)],'ghostFillColor':Bt(J[_0x3d9742(0x39f)],0.72),'ghostTextColor':Bt(J['textColor'],0.62),'rootTextColor':Bt(J['surfaceColor'],0.86),'sourceHighlightFillColor':Bt(J[_0x3d9742(0x1d2)],0.12),'sourceHighlightStrokeColor':Bt(J[_0x3d9742(0x1d2)],0.9),'objectAlpha':0.72,'dragObjectAlpha':0.78,'connectorAlpha':0.64,'lineWidthScreen':0x2,'fallbackNodeWidth':_0x136bc3[_0x3d9742(0x435)],'fallbackNodeHeight':_0x136bc3[_0x3d9742(0x3c6)],'branchGap':_0x43d9d8[_0x3d9742(0x479)],'sourceHaloScreen':0x4,'ghostRadius':0x8,'rootRadius':0xa,'fontFamily':J[_0x3d9742(0x3ac)],'ghostFontWeight':0x1f4,'rootFontWeight':0x258,'rootFontSize':0x12,'textPaddingScreen':0xc,'dirtyPaddingScreen':0x18,'sourceDashScreen':[0x6,0x4]};function X(_0x20caff,_0x13a724,_0x509cfb,_0x45750f,_0x546b9a,_0x2d0811){const _0xcc73f1=_0x3d9742;let _0xaee932=Math[_0xcc73f1(0x250)](_0x2d0811,_0x45750f/0x2,_0x546b9a/0x2);_0x20caff[_0xcc73f1(0x26f)](),_0x20caff['moveTo'](_0x13a724+_0xaee932,_0x509cfb),_0x20caff[_0xcc73f1(0x352)](_0x13a724+_0x45750f-_0xaee932,_0x509cfb),_0x20caff['quadraticCurveTo'](_0x13a724+_0x45750f,_0x509cfb,_0x13a724+_0x45750f,_0x509cfb+_0xaee932),_0x20caff[_0xcc73f1(0x352)](_0x13a724+_0x45750f,_0x509cfb+_0x546b9a-_0xaee932),_0x20caff[_0xcc73f1(0x34b)](_0x13a724+_0x45750f,_0x509cfb+_0x546b9a,_0x13a724+_0x45750f-_0xaee932,_0x509cfb+_0x546b9a),_0x20caff[_0xcc73f1(0x352)](_0x13a724+_0xaee932,_0x509cfb+_0x546b9a),_0x20caff[_0xcc73f1(0x34b)](_0x13a724,_0x509cfb+_0x546b9a,_0x13a724,_0x509cfb+_0x546b9a-_0xaee932),_0x20caff[_0xcc73f1(0x352)](_0x13a724,_0x509cfb+_0xaee932),_0x20caff[_0xcc73f1(0x34b)](_0x13a724,_0x509cfb,_0x13a724+_0xaee932,_0x509cfb),_0x20caff['closePath']();}function Vt(_0x1a0962,_0x358e86,_0x24a689){const _0x50271f=_0x3d9742;return _0x1a0962+'\x20'+_0x358e86/_0x24a689+_0x50271f(0x263)+Y[_0x50271f(0x3ac)];}const Ht=_0x3d9742(0x33b),Ut=_0x480444[_0x3d9742(0x1fb)];function Z(_0xc1add6,_0x51c591){const _0x26736f=_0x3d9742;return Number[_0x26736f(0x1b5)](_0xc1add6)?_0xc1add6:_0x51c591;}function Wt(){const _0x11e992=_0x3d9742;return Y[_0x11e992(0x217)];}function Gt(){const _0x401909=_0x3d9742;return Y[_0x401909(0x2ee)];}function Kt(_0x4c94cf){const _0x466bce=_0x3d9742;return _0x4c94cf===0x1?_0x466bce(0x452):_0x4c94cf===0x3?_0x466bce(0x3f8):_0x466bce(0x280);}function qt(_0x3d32d8,_0x4ecd49,_0x523061,_0x2a3d74){return _0x523061===0x1?_0x3d32d8+_0x2a3d74:_0x523061===0x3?_0x3d32d8+_0x4ecd49-_0x2a3d74:_0x3d32d8+_0x4ecd49/0x2;}var Jt=class extends _0x3960a2{constructor(_0x48282a=Ht,_0x5e8fe3){const _0x100ef0=_0x3d9742;super(_0x48282a),G(this,_0x100ef0(0x3d6),{'ghostBounds':null,'parentBounds':null,'side':_0x100ef0(0x3f8),'zoomRatio':0x1}),this['evented']=!0x1,this[_0x100ef0(0x3ff)]=_0x588fe7[_0x100ef0(0x212)],this['updateState'](_0x5e8fe3);}['updateState'](_0x927364){const _0x102014=_0x3d9742;if(this[_0x102014(0x3d6)]={...this[_0x102014(0x3d6)],..._0x927364},this[_0x102014(0x3d6)][_0x102014(0x20b)]){let _0x4308f4=this['_resolveDirtyBounds']();this[_0x102014(0x2cf)](_0x4308f4),this['show']();}else this[_0x102014(0x308)]();let _0x42258c=this;typeof _0x42258c[_0x102014(0x1b9)]==_0x102014(0x1a5)?_0x42258c['makeDirtyNoDebounce'](!0x0):this[_0x102014(0x47c)](!0x0);}[_0x3d9742(0x215)](_0x21b7f6){return!0x1;}[_0x3d9742(0x1c2)](_0x3a6d1f,_0x2931f9){const _0x1a4a02=_0x3d9742;let _0x46807e=this['_state'][_0x1a4a02(0x20b)];if(!_0x46807e||!this[_0x1a4a02(0x1b3)])return this['makeDirty'](!0x1),this;let _0x1d8dfd=Number[_0x1a4a02(0x1b5)](this[_0x1a4a02(0x3d6)][_0x1a4a02(0x258)])&&(this[_0x1a4a02(0x3d6)]['zoomRatio']??0x0)>0x0?this['_state'][_0x1a4a02(0x258)]:0x1,_0x295f42=Z(_0x46807e[_0x1a4a02(0x452)],0x0),_0x6877eb=Z(_0x46807e[_0x1a4a02(0x362)],0x0),_0x4d4869=Math['max'](0x1,Z(_0x46807e[_0x1a4a02(0x2cd)],Wt())),_0x449486=Math[_0x1a4a02(0x455)](0x1,Z(_0x46807e['height'],Gt()));if(_0x3a6d1f[_0x1a4a02(0x39a)](),_0x3a6d1f[_0x1a4a02(0x310)]=Y[_0x1a4a02(0x286)],_0x3a6d1f[_0x1a4a02(0x2fe)]=Y['lineWidthScreen']/_0x1d8dfd,_0x3a6d1f[_0x1a4a02(0x27e)]=Y[_0x1a4a02(0x1d2)],_0x3a6d1f['fillStyle']=Y[_0x1a4a02(0x2bb)],this[_0x1a4a02(0x36d)](_0x3a6d1f,{'left':_0x295f42,'top':_0x6877eb,'width':_0x4d4869,'height':_0x449486},_0x1d8dfd),this[_0x1a4a02(0x247)](_0x3a6d1f,_0x1d8dfd),this[_0x1a4a02(0x3d6)][_0x1a4a02(0x1c8)]===!0x1)return _0x3a6d1f[_0x1a4a02(0x327)](),this[_0x1a4a02(0x47c)](!0x1),this;X(_0x3a6d1f,_0x295f42,_0x6877eb,_0x4d4869,_0x449486,Y[_0x1a4a02(0x2ae)]),_0x3a6d1f[_0x1a4a02(0x2a6)](),_0x3a6d1f[_0x1a4a02(0x3f6)]();let _0x3cba2b=this[_0x1a4a02(0x3d6)]['textStyle'],_0x21b139=Number[_0x1a4a02(0x1b5)](_0x3cba2b==null?void 0x0:_0x3cba2b[_0x1a4a02(0x3b7)])&&((_0x3cba2b==null?void 0x0:_0x3cba2b[_0x1a4a02(0x3b7)])??0x0)>0x0?_0x3cba2b[_0x1a4a02(0x3b7)]:0x10,_0x5c9f3c=Y[_0x1a4a02(0x326)]/_0x1d8dfd;return _0x3a6d1f['fillStyle']=(_0x3cba2b==null?void 0x0:_0x3cba2b['color'])??Y[_0x1a4a02(0x28e)],_0x3a6d1f[_0x1a4a02(0x3e4)]=Vt(Y[_0x1a4a02(0x33a)],_0x21b139,_0x1d8dfd),_0x3a6d1f[_0x1a4a02(0x245)]=Kt(_0x3cba2b==null?void 0x0:_0x3cba2b[_0x1a4a02(0x335)]),_0x3a6d1f[_0x1a4a02(0x2f8)]='middle',_0x3a6d1f[_0x1a4a02(0x3e0)]((_0x3cba2b==null?void 0x0:_0x3cba2b['text'])||_0x5c96e4,qt(_0x295f42,_0x4d4869,_0x3cba2b==null?void 0x0:_0x3cba2b[_0x1a4a02(0x335)],_0x5c9f3c),_0x6877eb+_0x449486/0x2,Math[_0x1a4a02(0x455)](0x1,_0x4d4869-_0x5c9f3c*0x2)),_0x3a6d1f[_0x1a4a02(0x327)](),this[_0x1a4a02(0x47c)](!0x1),this;}[_0x3d9742(0x44c)](){const _0x3e165e=_0x3d9742;let _0x57ebb8=this[_0x3e165e(0x3d6)][_0x3e165e(0x20b)],_0x40edd7=Number[_0x3e165e(0x1b5)](this['_state'][_0x3e165e(0x258)])&&(this[_0x3e165e(0x3d6)][_0x3e165e(0x258)]??0x0)>0x0?this[_0x3e165e(0x3d6)]['zoomRatio']:0x1,_0x587f1f=Y[_0x3e165e(0x31f)]/_0x40edd7;if(!_0x57ebb8)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x403ebc=Z(_0x57ebb8[_0x3e165e(0x452)],0x0),_0x8211f6=Z(_0x57ebb8[_0x3e165e(0x362)],0x0),_0x1d3566=Math[_0x3e165e(0x455)](0x1,Z(_0x57ebb8[_0x3e165e(0x2cd)],Wt())),_0x2c26eb=Math['max'](0x1,Z(_0x57ebb8[_0x3e165e(0x1c1)],Gt())),_0x5ef92f=this[_0x3e165e(0x3d6)][_0x3e165e(0x3ab)],_0x5b5e63=this['_state']['parentBounds'],_0xe0f1d7=Z(_0x5ef92f==null?void 0x0:_0x5ef92f['left'],_0x403ebc),_0x527da1=Z(_0x5ef92f==null?void 0x0:_0x5ef92f[_0x3e165e(0x362)],_0x8211f6),_0x52c6ea=Math[_0x3e165e(0x455)](0x1,Z(_0x5ef92f==null?void 0x0:_0x5ef92f['width'],_0x1d3566)),_0x33cd76=Math[_0x3e165e(0x455)](0x1,Z(_0x5ef92f==null?void 0x0:_0x5ef92f[_0x3e165e(0x1c1)],_0x2c26eb));if(!_0x5b5e63){let _0x216f91=Math['min'](_0x403ebc,_0xe0f1d7)-_0x587f1f,_0x47ab97=Math[_0x3e165e(0x250)](_0x8211f6,_0x527da1)-_0x587f1f,_0x1c7339=Math[_0x3e165e(0x455)](_0x403ebc+_0x1d3566,_0xe0f1d7+_0x52c6ea)+_0x587f1f,_0x295a10=Math[_0x3e165e(0x455)](_0x8211f6+_0x2c26eb,_0x527da1+_0x33cd76)+_0x587f1f;return{'left':_0x216f91,'top':_0x47ab97,'width':_0x1c7339-_0x216f91,'height':_0x295a10-_0x47ab97};}let _0x214286=Z(_0x5b5e63[_0x3e165e(0x452)],_0x403ebc),_0x264500=Z(_0x5b5e63[_0x3e165e(0x362)],_0x8211f6),_0x21e29f=Math[_0x3e165e(0x455)](0x1,Z(_0x5b5e63['width'],Wt())),_0x4d80cd=Math[_0x3e165e(0x455)](0x1,Z(_0x5b5e63[_0x3e165e(0x1c1)],Gt())),_0x10c6b6=Math[_0x3e165e(0x250)](_0x403ebc,_0x214286,_0xe0f1d7)-_0x587f1f,_0x440c19=Math[_0x3e165e(0x250)](_0x8211f6,_0x264500,_0x527da1)-_0x587f1f,_0x3c0cdc=Math['max'](_0x403ebc+_0x1d3566,_0x214286+_0x21e29f,_0xe0f1d7+_0x52c6ea)+_0x587f1f,_0x3c04fa=Math['max'](_0x8211f6+_0x2c26eb,_0x264500+_0x4d80cd,_0x527da1+_0x33cd76)+_0x587f1f;return{'left':_0x10c6b6,'top':_0x440c19,'width':_0x3c0cdc-_0x10c6b6,'height':_0x3c04fa-_0x440c19};}['_drawSourceHighlight'](_0x5deeb5,_0x43ae28){const _0x570cd9=_0x3d9742;var _0x13dada;let _0x3a670b=this['_state'][_0x570cd9(0x3ab)];if(!_0x3a670b)return;let _0x36b1db=Y[_0x570cd9(0x291)]/_0x43ae28,_0x5d7ee4=Z(_0x3a670b[_0x570cd9(0x452)],0x0)-_0x36b1db,_0x8400f6=Z(_0x3a670b[_0x570cd9(0x362)],0x0)-_0x36b1db,_0x2691ed=Math['max'](0x1,Z(_0x3a670b[_0x570cd9(0x2cd)],Wt()))+_0x36b1db*0x2,_0x22b7b3=Math[_0x570cd9(0x455)](0x1,Z(_0x3a670b['height'],Gt()))+_0x36b1db*0x2;_0x5deeb5[_0x570cd9(0x39a)](),_0x5deeb5[_0x570cd9(0x310)]=0x1,_0x5deeb5[_0x570cd9(0x2fe)]=Y[_0x570cd9(0x340)]/_0x43ae28,_0x5deeb5[_0x570cd9(0x27e)]=Y['sourceHighlightStrokeColor'],_0x5deeb5['fillStyle']=Y[_0x570cd9(0x460)],(_0x13dada=_0x5deeb5['setLineDash'])==null||_0x13dada['call'](_0x5deeb5,Y[_0x570cd9(0x333)][_0x570cd9(0x2e1)](_0x2bfa26=>_0x2bfa26/_0x43ae28)),X(_0x5deeb5,_0x5d7ee4,_0x8400f6,_0x2691ed,_0x22b7b3,Y[_0x570cd9(0x40b)]),_0x5deeb5[_0x570cd9(0x2a6)](),_0x5deeb5['stroke'](),_0x5deeb5['restore']();}[_0x3d9742(0x36d)](_0x4bdc42,_0x910931,_0x23c5ee){const _0x5b29aa=_0x3d9742;let _0x4d0918=this[_0x5b29aa(0x3d6)][_0x5b29aa(0x34a)];if(!_0x4d0918)return;let _0x83b744=Z(_0x4d0918[_0x5b29aa(0x452)],0x0),_0x3c6138=Z(_0x4d0918[_0x5b29aa(0x362)],0x0),_0x39d098=Math[_0x5b29aa(0x455)](0x1,Z(_0x4d0918[_0x5b29aa(0x2cd)],Wt())),_0xf7f218=Math[_0x5b29aa(0x455)](0x1,Z(_0x4d0918[_0x5b29aa(0x1c1)],Gt())),_0xad0263=Y[_0x5b29aa(0x479)],_0x36f9ba=this[_0x5b29aa(0x3d6)][_0x5b29aa(0x299)]??'right';if(_0x4bdc42[_0x5b29aa(0x39a)](),_0x4bdc42[_0x5b29aa(0x310)]=Y[_0x5b29aa(0x311)],_0x4bdc42[_0x5b29aa(0x27e)]=Y[_0x5b29aa(0x1d2)],_0x4bdc42[_0x5b29aa(0x2fe)]=Y[_0x5b29aa(0x340)]/_0x23c5ee,_0x4bdc42[_0x5b29aa(0x19a)]='round',_0x4bdc42[_0x5b29aa(0x1b8)]=_0x5b29aa(0x356),_0x4bdc42[_0x5b29aa(0x26f)](),_0x36f9ba===_0x5b29aa(0x362)||_0x36f9ba===_0x5b29aa(0x46d)){let _0x31eee8=_0x83b744+_0x39d098/0x2,_0x49fb41=_0x910931[_0x5b29aa(0x452)]+_0x910931['width']/0x2,_0x4edbe8=_0x36f9ba==='bottom'?_0x3c6138+_0xf7f218:_0x3c6138,_0x4dd2d1=_0x36f9ba===_0x5b29aa(0x46d)?_0x910931[_0x5b29aa(0x362)]:_0x910931[_0x5b29aa(0x362)]+_0x910931[_0x5b29aa(0x1c1)],_0x5cb86e=_0x36f9ba==='bottom'?Math['min'](_0x4edbe8+_0xad0263,(_0x4edbe8+_0x4dd2d1)/0x2):Math[_0x5b29aa(0x455)](_0x4edbe8-_0xad0263,(_0x4edbe8+_0x4dd2d1)/0x2);_0x4bdc42[_0x5b29aa(0x2ab)](_0x31eee8,_0x4edbe8),_0x4bdc42[_0x5b29aa(0x352)](_0x31eee8,_0x5cb86e),_0x4bdc42[_0x5b29aa(0x352)](_0x49fb41,_0x5cb86e),_0x4bdc42[_0x5b29aa(0x352)](_0x49fb41,_0x4dd2d1);}else{let _0x56b8c7=_0x3c6138+_0xf7f218/0x2,_0x49250f=_0x910931[_0x5b29aa(0x362)]+_0x910931[_0x5b29aa(0x1c1)]/0x2,_0x4c96d8=_0x36f9ba===_0x5b29aa(0x3f8)?_0x83b744+_0x39d098:_0x83b744,_0x117f7d=_0x36f9ba==='right'?_0x910931[_0x5b29aa(0x452)]:_0x910931[_0x5b29aa(0x452)]+_0x910931['width'],_0x1b3fa6=_0x36f9ba===_0x5b29aa(0x3f8)?Math['min'](_0x4c96d8+_0xad0263,(_0x4c96d8+_0x117f7d)/0x2):Math[_0x5b29aa(0x455)](_0x4c96d8-_0xad0263,(_0x4c96d8+_0x117f7d)/0x2);_0x4bdc42['moveTo'](_0x4c96d8,_0x56b8c7),_0x4bdc42[_0x5b29aa(0x352)](_0x1b3fa6,_0x56b8c7),_0x4bdc42[_0x5b29aa(0x352)](_0x1b3fa6,_0x49250f),_0x4bdc42[_0x5b29aa(0x352)](_0x117f7d,_0x49250f);}_0x4bdc42[_0x5b29aa(0x3f6)](),_0x4bdc42[_0x5b29aa(0x327)]();}};function Yt(_0x57355a,_0x4e5674){const _0x2d0254=_0x3d9742;return(_0x4e5674==null?void 0x0:_0x4e5674[_0x57355a[_0x2d0254(0x2c6)]])??_0x57355a['element']['transform'];}function Xt(_0x42634a,_0x1760f2){const _0x4aef8e=_0x3d9742;let _0x823f2b=Yt(_0x42634a,_0x1760f2);return{'x':(_0x823f2b[_0x4aef8e(0x452)]??0x0)+(_0x823f2b[_0x4aef8e(0x2cd)]??0x0)/0x2,'y':(_0x823f2b['top']??0x0)+(_0x823f2b[_0x4aef8e(0x1c1)]??0x0)/0x2};}function Zt(_0x360ab7,_0x34efcd){const _0x5b6b95=_0x3d9742;return Math[_0x5b6b95(0x21b)](_0x360ab7['x']-_0x34efcd['x'],_0x360ab7['y']-_0x34efcd['y']);}function Qt(_0x5c4516,_0x284dd1){const _0x5f5350=_0x3d9742;let _0x532d88=_0x5c4516[_0x5f5350(0x452)]??0x0,_0x289554=_0x5c4516[_0x5f5350(0x362)]??0x0,_0xd0f0e2=_0x532d88+(_0x5c4516['width']??0x0),_0x582170=_0x289554+(_0x5c4516[_0x5f5350(0x1c1)]??0x0),_0x1bc3cb=_0x284dd1[_0x5f5350(0x452)]??0x0,_0x25d409=_0x284dd1[_0x5f5350(0x362)]??0x0,_0x2444eb=_0x1bc3cb+(_0x284dd1[_0x5f5350(0x2cd)]??0x0),_0x2ec6b5=_0x25d409+(_0x284dd1[_0x5f5350(0x1c1)]??0x0),_0x5217db=Math[_0x5f5350(0x455)](_0x1bc3cb-_0xd0f0e2,_0x532d88-_0x2444eb,0x0),_0x59513a=Math['max'](_0x25d409-_0x582170,_0x289554-_0x2ec6b5,0x0);return Math[_0x5f5350(0x21b)](_0x5217db,_0x59513a);}function $t(_0x25136a,_0x128955,_0x3c290f){const _0x1b0eb4=_0x3d9742;var _0x329703;let _0x57e071=_0x2329f8((_0x329703=_0x25136a[_0x128955])==null?void 0x0:_0x329703[_0x1b0eb4(0x1f2)]);for(;_0x57e071!=null&&_0x57e071['parentNodeId'];){var _0x2a050b;if(_0x57e071[_0x1b0eb4(0x390)]===_0x3c290f)return!0x0;_0x57e071=_0x2329f8((_0x2a050b=_0x25136a[_0x57e071[_0x1b0eb4(0x390)]])==null?void 0x0:_0x2a050b['element']);}return!0x1;}function _0x2b18(){const _0x3af9ad=['MindMap','_ensureDragPreviewObject','editingParams$','boards-mind-ui.panel.branchLineType.roundedOrthogonal','call','elementRemove$','_resolveArrowNavigationTarget','univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','_popupSelectionKey','_disposeActivePointerDragListeners','createControl$','hasChildren','root','M42\x2012v32M42\x2020c0\x204-3\x206-7\x206h-7M42\x2030c0\x204\x203\x206\x207\x206h7M42\x2039c0\x204-3\x206-7\x206h-7','getOwnPropertyDescriptor','1.8','univer-mb-2\x20univer-text-lg\x20univer-text-gray-900','univer-h-28\x20univer-resize-none\x20univer-text-xs','getElementById','SolidLine','layout-panel-divider','radius','changing$','registerRuntimeScopedDependencies','getRenderUnitById','boards-mind-ui.panel.exportOPML','has','siblingDotRadius','parentNodeId','getCurrentUnitOfType','_syncControls','DELETE','_countDescendants','_previewHostSize','divider-','rootChildSides','createRunner','getShortcutDisplay','save','getUnit','updateElement','_hideSelectionForChildDrag','ARROW_RIGHT','surfaceColor','M16\x2029h18c7\x200\x2010-5\x2010-12v-3M34\x2029h10c7\x200\x2010\x205\x2010\x2012v3','from','span','_attachObjectPointerListeners','dataModel','dividerBefore','child','point','then','badgeCount','ARROW_LEFT','sourceBounds','fontFamily','glyphHoverWidth','move','_commandService','pointermove','dashType','paste','syncExecuteCommand','viewing','dot','_isPopupSelectionStillActive','fontSize','defaultValue','_intrinsicSizeService','visualRadius','pointerup','M19.5\x207.5h-4.2c-1.9\x200-3.3\x201.5-3.3\x203.3','timeline-horizontal','boards-mind-ui.panel.structureKind.treeRight','M12\x2015h9M12\x2028h9M12\x2041h9M59\x2015h9M59\x2028h9M59\x2041h9','_resolveCreateChildSide','_isActive','_uiStateService','rgba(','branch-rounded-orthogonal','rootTextColor','nodeHeight','_buildPopupSelectionKey','clipboard','executeCommand','arc','getActivePageId','getCanvasElement','underline','_cloneBlueprint','promote','clearSelection','rounded-orthogonal','setConfig','selectElements','after','badgeFontWeight','_state','tree-left','boards-mind-ui.toolbar.action.delete','_consumePointerEvent','data','pipe','TOP','currentColor','opml','parseInt','fillText','_pasteAsNewMindMap','layout','Shape','font','registerCommand','boards-mind-ui.toolbar.primary.line','boards-mind-ui.panel.structureKind.timelineHorizontal','boards-mind-ui.panel.layout.left','objectAlpha','close','_collapseAll','color','engine','boards-mind-ui.descriptionPlaceholder','_attachObjectPointerScheduled','getTemplate','opacity','mindmap','sort','liveRootBounds','hostSize','stroke','univer-size-5','right','copy','_clearPopupIfSelectionChanged','textStyle','_syncLayoutPreview','_resolveHostSize','open-description','zIndex','boards-mind-ui.panel.structureKind.mindmapHorizontal','beginMindMapMode','_syncRootScopePreview','getTransformerByCreate','interactionMode','structureScopeId','setEditing','_resolveChildDragTopologyAction','elementStateService','text','M20\x2025h13M20\x2035h13M20\x2045h13','rootRadius','add','boards-mind-ui.panel.layout.right','FOCUSING_MIND_MAP_TEXT_EDITOR','repeat(','next','242116UgrizE','_activePreview','_resolveControlBounds','_getLiveObjectBounds','_getBoardPointFromEvent','tree-alternate','_refresh$','univer-space-y-1','boards-mind-ui.panel.spacing.siblingGap','oKey','_template','title','label','onReady','univer-bg-[#e8eefc]\x20univer-text-[#2f6fed]\x20hover:univer-bg-[#e8eefc]','Timeline','get','_resolveRootChildControlSides','getObject','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','unit','M22\x208h36M22\x2048h36M14\x2018v20M66\x2018v20','tree-diagram','connectorData','addEventListener','getEditing','_restoreObjectToDragStart','resolve','owner','dropdown','0\x200\x2080\x2056','setHoveredControl','activated$','add-child-bottom','_object','_textEditingService','nodeWidth','BOTTOM','collapsed','reparent','setPendingInsert','boards-mind-ui.panel.spacing.branchGap','changeStart$','importExport','boards-mind-ui.toolbar.panel.typography','SquareDot','mind-map-stroke','_objectEventDisposables','_syncElementDataToScene','1.0.0-rc.0','timelineAxisGap','before','mindmap-horizontal','timeline-vertical','structured','_resolveSelectedEntry','shapeData','forEach','_queuedLayouts','_resolveDirtyBounds','open','scope','incomingConnectorStyle','arrow-left','mindmap-vertical','left','mind-map-layout-dropdown','filter','max','isRootNode','_renderContext','_addChild','curve','middle','shapeId','keys','arrow-down','add-sibling-before','setContextValue','sourceHighlightFillColor','addChildNode','_clearPopup','edit-text','boards-mind-ui.panel.','4285624rakFDg','univer-mb-4','blueprint','dash','transientControl','solid','_initEditingRestore','boards-mind-ui.toolbar.primary.more','bottom','depth','univer-h-32\x20univer-resize-none\x20univer-text-sm','addDescription','_boardTextEditingService','_executeRootAnchoredLayout','_executeChildDragAction','handleShortcut','registerAdapter','textFill','slice','_getMindMapChildren','branchGap','M31\x2013c9\x208\x209\x2022\x2018\x2030M49\x2013c-9\x208-9\x2022-18\x2030M31\x2013c-7\x204-9\x209-9\x2015s2\x2011\x209\x2015M49\x2013c7\x204\x209\x209\x209\x2015s-2\x2011-9\x2015','snapDistance','makeDirty','italic','direction','structureKind','_dragStart','_resolveSelectedMindMapEntryFromState','collapseAllNodes','hasCommand','subscribeEvent','transientPreview','with','all','univer-flex\x20univer-h-12\x20univer-min-w-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-900\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-0','univer-mb-3\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-gray-100','button','lineCap','boards-mind-ui.panel.structureKind.treeLeft','@univerjs-pro/boards-mind-ui','addParentNode','siblingGap','getObjectIncludeInGroup','_resolveCompleteSelectedScope','run','renderContext','branch-orthogonal','_resolveRootTopLeft','function','getBoundingClientRect','primary','boards-mind-ui.toolbar.action.copy','extraProps','Dash','isTransforming','show','M56\x2012v32M56\x2019c0\x204-3\x206-7\x206h-7M56\x2029c0\x204-3\x206-7\x206h-7M56\x2039c0\x204-3\x206-7\x206h-7','univer-flex\x20univer-flex-col\x20univer-gap-2','detach','arrow-right','focusUnit','unitId','visible','evented','isFinite','univer-mb-3\x20univer-w-full','M47\x2025h13M47\x2035h13M47\x2045h13','lineJoin','makeDirtyNoDebounce','transform','univer-space-y-2','_navigateByTopology','_activeNodeId','1503wlkhRc','_getBoardsUIConfig','ignoreExternalFocusChanges','height','render','key','_rememberNodeSize','_copySelectedNode','M56\x2039h11M13\x2050h11','constructor','renderGhostNode','focusedId','state$','verticalAlign','boards-mind-ui.toolbar.primary.fontColor','_pasteUnderSelectedNode','both','badgeFontSize','UNIVER_BOARD','_resolveNodeSize','primaryColor','onPointerUp$','svg','boards-mind-ui.panel.branchLineType.orthogonal','_applyPointerChildDrag','_pointerDragStart','glyphSize','_getZoomRatio','_syncRootReparentPreview','FOCUSING_MIND_MAP_BLANK_BOARD','notify','stopPropagation','ArrowLeft','_getPointerScreenPoint','_isControlEvent','setShapeSidebarOpen','flatMap','targetNodeId','navigator','_applyRootTranslation','registerShortcut','collapse-all','structure','dialogService','boards-mind-ui.description','dataTransfer','boards-mind-ui.panel.importOPML','_capturePointerChildDragStart','packageName','add-sibling-after','M4.5\x207.5h4.2c1.9\x200\x203.3\x201.5\x203.3\x203.3v2.4c0\x201.8\x201.4\x203.3\x203.3\x203.3h4.2','univer-h-9\x20univer-w-12','element','findIndex','getConfig','isRoot','getHitControl','abs','_previewRefreshService','_getPointFromEvent','2176LYAAZB','preview','ARROW_UP','placement','clientX','boards-mind-ui.saveDescription','#d8dce3','addObject','_previewObject','focus','getState','mind-map-font-size','custom','_syncPreviewObject','boards-mind-ui.cancel','elementData','objects','ghostBounds','board-mind-map-description-dialog','orderKey','_popupDisposable','doc','_updateHostSize','shapeText','transientPreviewForeground','localeCompare','scene','isHit','onPointerMove$','fallbackNodeWidth','_syncChildDragPreviewObject','univer-text-xs\x20univer-text-gray-500','elementService','hypot','registerRenderModule','mind-map-fill','_removeDragPreviewObject','defineProperty','_init','getElementDataForUnit','ARROW_DOWN','pointerStartY','_toFiniteBounds','clientY','boards-mind-ui.toolbar.action.paste','offsetY','univer-grid\x20univer-h-14\x20univer-overflow-hidden\x20univer-rounded-xl\x20univer-bg-gray-100\x20univer-p-1','Tree\x20diagram','_activeScopeId','_activePointerDragDisposables','_lastPoint','onStarting','path','collapsePlusMinDistance','symbol','popup','Solid','removeObjects','action','_instanceService','text/plain','size','_applyDragTopologyAction','_resolveChildSide','_interactionSurfaceService','_resolvePreviewTextStyle','univer-border-b\x20univer-border-gray-200\x20univer-p-4','toggle-collapse','_applyScopeTranslation','newParentNodeId','push','_boardCanvasPopManagerService','_removeObject','horizontalGap','_componentManager','textAlign','fromEntries','_drawSourceHighlight','_lastChildDragAction','orthogonal','icon','CENTER','items','onPointerDown$','M56\x2011h11M56\x2051h11','dispose$','min','_layoutFlushScheduled','_cancelPointerChildDrag','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-xs\x20univer-text-gray-600','M4.5\x2016.5h4.2c1.9\x200\x203.3-1.5\x203.3-3.3','enabled','type','_handlePointerDown','zoomRatio','textEditingService','style','add-child-left','_syncDragPreview','_attachObjectEvents','univer-w-24','updateState','FOCUSING_MIND_MAP_NODE','ArrowUp','strikethrough','px\x20','getContextValue','_findChildNodeAtPoint','decorate','_isChildDragPastActivationThreshold','getUnitId','_instanceSrv','boards-mind-ui.alignTop','pointercancel','univer-flex\x20univer-gap-2','Branch','viewportPanOffset','beginPath','onDblclick$','_resolveIncomingConnectorStyle','div','removeEventListener','localeService','scopeId','foldChildNodes','273729YVmSmT','_attachActivePointerDragListeners','_localeService','elementAdd$','_updateShapeText','7YmooFo','siblingHoverRadius','strokeStyle','tree-right','center','ArrowRight','boards-mind-ui.panel.cancel','boards-mind-ui.panel.searchNodes','offsetX','editCurrentNode','dragObjectAlpha','univer-min-w-0\x20univer-flex-1\x20univer-justify-start\x20univer-truncate\x20univer-text-left','requestRender','activeEditingId','_scheduleAttachObjectPointerListeners','clearPendingInsert','add-child-top','_elementStateService','ghostTextColor','_getElementKey','foreignAttributes','sourceHaloScreen','register','_provider','univer-w-20\x20univer-shrink-0','circle','M21\x2028h38M40\x2011v34M28\x2016c7\x204\x2010\x208\x2012\x2012\x202-4\x205-8\x2012-12M28\x2040c7-4\x2010-8\x2012-12\x202\x204\x205\x208\x2012\x2012','join','_mindMapClipboardService','side','boards-mind-ui.panel.layout.both','boards-mind-ui.panel.tab.structure','reduce','trim','boards-mind-ui.alignJustify','ArrowDown','complete','addSiblingNode','addChildGlyphSize','_ensurePreviewObject','rootNodeId','branch-curve','fill','M15\x2031h50M35\x2031V18c0-4\x203-7\x208-7h9M35\x2031v13c0\x204\x203\x207\x208\x207h9','boards-mind-ui.toolbar.action.addChild','_config','SHIFT','moveTo','exec','boards-mind-ui.panel.tab.importExport','ghostRadius','toPrimitive','connectorAffordance','getSnapshot','_consumeControlEvent','univer-flex\x20univer-justify-end\x20univer-gap-2','_createQuoteShortcut','object','_deleteSelectedNode','addChild','value','_restoreActivePreview','siblingDotGap','ghostFillColor','clipboardService','add-sibling-or-child','univer-min-w-[240px]','disposeWithMe','elementUpdate$','131838PaZBCO','top-center','univer-flex\x20univer-items-center\x20univer-gap-1\x20univer-truncate\x20univer-rounded\x20univer-py-1\x20univer-text-left\x20univer-text-gray-800','hoveredControl','_boardElementService','elementId','M16\x2028c16\x200\x2025-13\x2043-13M16\x2028c16\x200\x2025\x2013\x2043\x2013','boards-mind-ui.panel.addText','values','hideRootControls','_insertStateService','BACKSPACE','width','UNIVER_BOARDS_MIND_UI_PLUGIN','transformByState','getPayload','2511228HMOHRE','dispose','nodeId','boards-mind-ui.toolbar.action.fontColor','set','item','_contextService','_cloneBlueprintNode','_configService','_getPointerLiveBounds','_executeCreateAndEdit','bold','univer-mb-0','branchLineType','allowRootReparent','_openSelectedTextEditing','map','board-mind-map-node-controls-object','childNodeId','board-mind-map-pending-insert-object','detachWhenNoSnap','_queueLayout','univer-w-full\x20univer-text-xs','default','_shortcutService','_syncContext',',\x20minmax(0,\x201fr))','uiStateService','toolbar','fallbackNodeHeight','rootHeight','subUnitId','boards-mind-ui.alignLeft','boards-mind-ui.panel.structureKind.treeAlternate','rgb','tools','pluginName','vertical','add-child-right','textBaseline','glyphWidth','M40\x209v40M40\x2020c8\x200\x2011\x204\x2011\x2011v8M40\x2035c-8\x200-11\x204-11\x2011v4','RoundDot','children','boundsByElementId','lineWidth','_isPointInBounds','getInjector','_createTopologyBoundsByElementId','_injector','_dragPreviewObject','_showPopupForSelection','connector','controls','_resolveControlSide','hide','mind-map','delete','rootText','buttons','setTemplate','_nodeSizeByKey','arrow-up','globalAlpha','connectorAlpha','Mind\x20map','fillStyle','_captureDragStart','rootStartBounds','_createKeyboardShortcutOperation','unsubscribe','_undoRedoGroupService','0\x200\x2024\x2024','changeEnd$','7407550CEDhuR','referenceNodeId','find','univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','dirtyPaddingScreen','panel','getElementData','writeText','_normalizeChildren','success','_getBlankBoardContext','textPaddingScreen','restore','documentStyle','_removePreviewObject','branch','length','_createShortcutItems','boards-mind-ui.panel.structureKind.mindmapVertical','boards-mind-ui.alignRight','_subscribeElementDataChanges','_getSceneObject','context','toLowerCase','sourceDashScreen','board.mind-map.description-dialog','horizontalAlign','_handlePointerMove','true','asObservable','commandService','ghostFontWeight','board-mind-map-drag-preview-object','MIDDLE','ghost','includes','boards-mind-ui.panel.branchLineType.curve','lineWidthScreen','paste-as-new','panOffset','_syncPointerChildDragPreview','LEFT','strokeWidth','_stateService','string','none','kind','parentBounds','quadraticCurveTo','_childDragSelectionHidden','prototype','boards-mind-ui.toolbar.primary.typography','_getSelectedMindMapContext','boards-mind-ui.panel.structureKind.timelineVertical','_resolveCurrentBoardContext','lineTo','_executeAndLayout','_ensureObject','clear','round','boards-mind-ui.panel.tab.layout','setActiveTool','skipNextObservers','univer-text-xs\x20univer-text-gray-400\x20dark:!univer-text-gray-500','preventDefault','style-divider','_registerComponents','some','number','_renderManagerService','outlineItems','top','selectedIds','rootWidth','more','_childDragActivated','small','bounds','_resolvePreviewSourceBounds','_seedExistingNodeSizes','spacing','subscribe','_drawConnectorPreview','_objectPointerDisposables','add-child','boards-mind-ui.panel.tab.','labelKey','params','M17\x2033h21M38\x2017v30M38\x2017h24'];_0x2b18=function(){return _0x3af9ad;};return _0x2b18();}function en(_0x24bfd5,_0x372a5a,_0x59fdaf){const _0x3afa61=_0x3d9742;let _0x1c577c=Yt(_0x24bfd5,_0x59fdaf),_0x21d70f=_0x1c577c[_0x3afa61(0x362)]??0x0,_0x1d0d85=_0x1c577c['height']??0x0;return _0x1d0d85<=0x0?null:_0x372a5a['y']<=_0x21d70f+_0x1d0d85/0x3?_0x3afa61(0x444):_0x372a5a['y']>=_0x21d70f+_0x1d0d85*0x2/0x3?_0x3afa61(0x3d4):null;}function tn(_0x4cf31f,_0x37a5e3){const _0x33035c=_0x3d9742;let _0x26729d=_0x37a5e3==null?void 0x0:_0x37a5e3[_0x4cf31f];return Number[_0x33035c(0x1b5)](_0x26729d==null?void 0x0:_0x26729d[_0x33035c(0x452)])&&Number[_0x33035c(0x1b5)](_0x26729d==null?void 0x0:_0x26729d['top'])?{'kind':'detach','left':_0x26729d['left'],'top':_0x26729d[_0x33035c(0x362)]}:{'kind':_0x33035c(0x1af)};}function nn(_0x5163d4,_0x3aabec,_0x10522d){const _0x22289f=_0x3d9742;let _0x54cc58=_0x5163d4[_0x3aabec],_0x2c6de4=_0x2329f8(_0x54cc58==null?void 0x0:_0x54cc58[_0x22289f(0x1f2)]);if(!_0x54cc58||!_0x2c6de4||!_0x2c6de4[_0x22289f(0x390)]&&!(_0x10522d!=null&&_0x10522d[_0x22289f(0x2df)]))return{'kind':'none'};let _0x1eb268=_0x10522d==null?void 0x0:_0x10522d[_0x22289f(0x2fd)],_0x43a230=Yt(_0x54cc58,_0x1eb268),_0x82564d=Xt(_0x54cc58,_0x1eb268),_0x38a65b=Object[_0x22289f(0x2c9)](_0x5163d4)[_0x22289f(0x2e1)](_0x42ca39=>{const _0xf5b9f=_0x22289f;let _0x23b3cc=_0x2329f8(_0x42ca39['element']);return!_0x23b3cc||_0x42ca39[_0xf5b9f(0x2c6)]===_0x3aabec||_0x42ca39['elementId']===_0x2c6de4[_0xf5b9f(0x390)]||_0x10522d!=null&&_0x10522d[_0xf5b9f(0x2df)]&&!_0x2c6de4[_0xf5b9f(0x390)]&&_0x23b3cc[_0xf5b9f(0x405)]===_0x2c6de4[_0xf5b9f(0x405)]||$t(_0x5163d4,_0x42ca39[_0xf5b9f(0x2c6)],_0x3aabec)?null:{'item':_0x42ca39,'snapDistance':Qt(_0x43a230,Yt(_0x42ca39,_0x1eb268)),'center':Xt(_0x42ca39,_0x1eb268)};})[_0x22289f(0x454)](_0x40de85=>!!_0x40de85)[_0x22289f(0x3f3)]((_0x57b03f,_0x3a819c)=>_0x57b03f[_0x22289f(0x47b)]-_0x3a819c['snapDistance']||Zt(_0x82564d,_0x57b03f[_0x22289f(0x280)])-Zt(_0x82564d,_0x3a819c[_0x22289f(0x280)]))[0x0];if(_0x38a65b&&_0x38a65b[_0x22289f(0x47b)]<=0x64){let _0x1c3cb6=_0x2329f8(_0x38a65b['item'][_0x22289f(0x1f2)]),_0x2a5cd9=_0x1c3cb6!=null&&_0x1c3cb6[_0x22289f(0x390)]?en(_0x38a65b[_0x22289f(0x2d6)],_0x82564d,_0x1eb268):null;return _0x1c3cb6!=null&&_0x1c3cb6['parentNodeId']&&_0x2a5cd9?{'kind':_0x22289f(0x438),'newParentNodeId':_0x1c3cb6[_0x22289f(0x390)],'side':_0x1c3cb6['side']??_0x22289f(0x3f8),'referenceNodeId':_0x38a65b[_0x22289f(0x2d6)][_0x22289f(0x2c6)],'placement':_0x2a5cd9}:{'kind':_0x22289f(0x438),'newParentNodeId':_0x38a65b[_0x22289f(0x2d6)][_0x22289f(0x2c6)],'side':_0x82564d['x']<_0x38a65b[_0x22289f(0x280)]['x']?_0x22289f(0x452):_0x22289f(0x3f8)};}if(_0x10522d!=null&&_0x10522d[_0x22289f(0x2e5)])return tn(_0x3aabec,_0x1eb268);if(!_0x2c6de4[_0x22289f(0x390)])return{'kind':_0x22289f(0x348)};let _0x58e540=_0x5163d4[_0x2c6de4['parentNodeId']];return _0x58e540&&Zt(_0x82564d,Xt(_0x58e540,_0x1eb268))>0x230?tn(_0x3aabec,_0x1eb268):{'kind':_0x22289f(0x348)};}function rn(_0x30b3bb,_0x114de5){const _0x476f79=_0x3d9742;var _0x579698,_0x3d2fee;return _0x30b3bb[_0x476f79(0x2c6)]===_0x114de5||((_0x579698=_0x2329f8(_0x30b3bb['element']))==null?void 0x0:_0x579698['structureScopeId'])===_0x114de5||((_0x3d2fee=_0x8df2eb(_0x30b3bb['element']))==null?void 0x0:_0x3d2fee[_0x476f79(0x405)])===_0x114de5;}function an(_0x98d40d,_0x4981cb,_0x350950,_0x201116){const _0x9a0136=_0x3d9742;let _0x2ad79d=_0x98d40d[_0x4981cb];if(!_0x2ad79d)return _0x98d40d;let _0x586f8e=_0x2ad79d[_0x9a0136(0x1ba)]??_0x2ad79d[_0x9a0136(0x1f2)]['transform']??{};return{..._0x98d40d,[_0x4981cb]:{..._0x2ad79d,'transform':{..._0x586f8e,'left':(_0x586f8e['left']??0x0)+_0x350950,'top':(_0x586f8e['top']??0x0)+_0x201116},'element':{..._0x2ad79d['element'],'transform':{..._0x2ad79d[_0x9a0136(0x1f2)][_0x9a0136(0x1ba)],'left':(_0x2ad79d[_0x9a0136(0x1f2)]['transform'][_0x9a0136(0x452)]??0x0)+_0x350950,'top':(_0x2ad79d['element'][_0x9a0136(0x1ba)][_0x9a0136(0x362)]??0x0)+_0x201116}}}};}function on(_0x5bc822){const _0xb90c5b=_0x3d9742;if(!Number[_0xb90c5b(0x1b5)](_0x5bc822['liveRootBounds'][_0xb90c5b(0x452)])||!Number[_0xb90c5b(0x1b5)](_0x5bc822[_0xb90c5b(0x3f4)][_0xb90c5b(0x362)])||!Number['isFinite'](_0x5bc822['rootStartBounds'][_0xb90c5b(0x452)])||!Number[_0xb90c5b(0x1b5)](_0x5bc822[_0xb90c5b(0x315)][_0xb90c5b(0x362)]))return null;let _0x4520f2=_0x5bc822[_0xb90c5b(0x3f4)][_0xb90c5b(0x452)]-_0x5bc822[_0xb90c5b(0x315)][_0xb90c5b(0x452)],_0x1782e7=_0x5bc822[_0xb90c5b(0x3f4)][_0xb90c5b(0x362)]-_0x5bc822[_0xb90c5b(0x315)][_0xb90c5b(0x362)],_0x3e8fb=an(_0x5bc822[_0xb90c5b(0x209)],_0x5bc822[_0xb90c5b(0x275)],_0x4520f2,_0x1782e7),_0x59ca7e=[];return Object[_0xb90c5b(0x2c9)](_0x3e8fb)[_0xb90c5b(0x44a)](_0x39f07a=>{const _0x364b4d=_0xb90c5b;if(_0x39f07a[_0x364b4d(0x2c6)]===_0x5bc822['rootNodeId']||_0x39f07a[_0x364b4d(0x2c6)]===_0x5bc822[_0x364b4d(0x275)]||!rn(_0x39f07a,_0x5bc822[_0x364b4d(0x275)]))return;if(_0x364b4d(0x428)in _0x39f07a[_0x364b4d(0x1f2)]){var _0x5b59ab;let _0x1ea3fe=(_0x5b59ab=_0x5bc822[_0x364b4d(0x209)][_0x39f07a[_0x364b4d(0x2c6)]])==null?void 0x0:_0x5b59ab[_0x364b4d(0x1f2)];_0x1ea3fe&&_0x364b4d(0x428)in _0x1ea3fe&&_0x59ca7e[_0x364b4d(0x240)]({'kind':_0x364b4d(0x305),'elementId':_0x39f07a[_0x364b4d(0x2c6)],'element':_0x290005(_0x1ea3fe,{'x':_0x4520f2,'y':_0x1782e7})});return;}let _0x40d0d5=_0x58d07c(_0x3e8fb,_0x39f07a[_0x364b4d(0x2c6)]);_0x40d0d5&&_0x59ca7e[_0x364b4d(0x240)]({'kind':_0x364b4d(0x368),'elementId':_0x39f07a['elementId'],'bounds':_0x40d0d5});}),{'deltaX':_0x4520f2,'deltaY':_0x1782e7,'elementData':_0x3e8fb,'items':_0x59ca7e};}let sn=class extends _0xd55cd7{constructor(_0x2e9828,_0xafd650,_0x2c8edb,_0x386d43,_0x2f5f72,_0x733372,_0x51cb52){const _0xa83f3d=_0x3d9742;super(),this[_0xa83f3d(0x457)]=_0x2e9828,this[_0xa83f3d(0x2c5)]=_0xafd650,this[_0xa83f3d(0x28d)]=_0x2c8edb,this['_commandService']=_0x386d43,this[_0xa83f3d(0x3c2)]=_0x2f5f72,this[_0xa83f3d(0x235)]=_0x733372,this[_0xa83f3d(0x318)]=_0x51cb52,G(this,_0xa83f3d(0x480),null),G(this,'_pointerDragStart',null),G(this,'_dragPreviewObject',null),G(this,_0xa83f3d(0x366),!0x1),G(this,'_lastChildDragAction',null),G(this,_0xa83f3d(0x36e),null),G(this,'_attachObjectPointerScheduled',!0x1),G(this,_0xa83f3d(0x22b),null),G(this,_0xa83f3d(0x34c),!0x1),this['_init']();}[_0x3d9742(0x220)](){const _0x40090c=_0x3d9742;var _0x37f930,_0x2a0d12,_0x2f3539,_0x116dc7,_0x1216aa;let _0x84bb6=this[_0x40090c(0x457)][_0x40090c(0x214)][_0x40090c(0x403)]();this['disposeWithMe'](_0xdc7696(_0x84bb6['changeStart$'][_0x40090c(0x3db)](_0x4021f1(this['dispose$']))['subscribe'](()=>{const _0x59016a=_0x40090c;this[_0x59016a(0x314)]();}))),this[_0x40090c(0x2bf)](_0xdc7696(((_0x37f930=_0x84bb6[_0x40090c(0x38a)])==null?void 0x0:_0x37f930['pipe'](_0x4021f1(this[_0x40090c(0x24f)]))['subscribe'](_0x6e8363=>{const _0x12ee8d=_0x40090c;this['_syncDragPreview'](_0x6e8363==null?void 0x0:_0x6e8363[_0x12ee8d(0x20a)]);}))??{'dispose':()=>{}})),this[_0x40090c(0x2bf)](_0xdc7696(_0x84bb6[_0x40090c(0x31a)]['pipe'](_0x4021f1(this[_0x40090c(0x24f)]))['subscribe'](_0x44f80f=>{const _0x40cf6e=_0x40090c;setTimeout(()=>this[_0x40cf6e(0x238)](_0x44f80f==null?void 0x0:_0x44f80f[_0x40cf6e(0x20a)]),0x0);}))),this[_0x40090c(0x2bf)](_0xdc7696(((_0x2a0d12=this[_0x40090c(0x457)][_0x40090c(0x214)][_0x40090c(0x24d)])==null?void 0x0:_0x2a0d12[_0x40090c(0x484)]({'priority':0x3,'next':([_0x4375ba])=>this[_0x40090c(0x1ed)](_0x4375ba)}))??{'dispose':()=>{}})),this[_0x40090c(0x2bf)](_0xdc7696(((_0x2f3539=this['_renderContext']['scene'][_0x40090c(0x216)])==null?void 0x0:_0x2f3539['subscribeEvent']({'priority':0x3,'next':([_0x254a34,_0x551530])=>this[_0x40090c(0x343)](_0x254a34,_0x551530)}))??{'dispose':()=>{}})),this[_0x40090c(0x2bf)](_0xdc7696(((_0x116dc7=this['_renderContext'][_0x40090c(0x214)]['onPointerUp$'])==null?void 0x0:_0x116dc7[_0x40090c(0x484)]({'priority':0x3,'next':([_0x52074a,_0x53ed60])=>this[_0x40090c(0x1d6)](_0x52074a,_0x53ed60)}))??{'dispose':()=>{}})),this[_0x40090c(0x2bf)](_0xdc7696(((_0x1216aa=this[_0x40090c(0x457)][_0x40090c(0x214)]['onPointerCancel$'])==null?void 0x0:_0x1216aa[_0x40090c(0x484)]({'priority':0x3,'next':([,_0x3c2b00])=>this[_0x40090c(0x252)](_0x3c2b00)}))??{'dispose':()=>{}})),this['disposeWithMe'](_0xdc7696(()=>{const _0x28dc98=_0x40090c;var _0x2392df;return(_0x2392df=this[_0x28dc98(0x36e)])==null?void 0x0:_0x2392df[_0x28dc98(0x2d2)]();})),this[_0x40090c(0x2bf)](_0xdc7696(()=>this[_0x40090c(0x37d)]())),this['_subscribeElementDataChanges'](),this[_0x40090c(0x28a)](),this[_0x40090c(0x2bf)](_0xdc7696(()=>this[_0x40090c(0x21e)]()));}[_0x3d9742(0x32f)](){const _0x518543=_0x3d9742;[this[_0x518543(0x2c5)][_0x518543(0x27a)],this[_0x518543(0x2c5)]['elementUpdate$'],this['_boardElementService'][_0x518543(0x379)]]['forEach'](_0x276d71=>{const _0x162c20=_0x518543;this[_0x162c20(0x2bf)](_0xdc7696(_0x276d71[_0x162c20(0x3db)](_0x4021f1(this[_0x162c20(0x24f)]))[_0x162c20(0x36c)](()=>{const _0x3db5e0=_0x162c20;this[_0x3db5e0(0x28a)]();})));}),this[_0x518543(0x28d)][_0x518543(0x1ca)]&&this[_0x518543(0x2bf)](_0xdc7696(this[_0x518543(0x28d)][_0x518543(0x1ca)]['pipe'](_0x4021f1(this[_0x518543(0x24f)]))['subscribe'](()=>{const _0x23cc8c=_0x518543;this[_0x23cc8c(0x28a)]();})));}['_scheduleAttachObjectPointerListeners'](){const _0xcac7cc=_0x3d9742;this['_attachObjectPointerScheduled']||(this[_0xcac7cc(0x3ef)]=!0x0,Promise[_0xcac7cc(0x42c)]()[_0xcac7cc(0x3a8)](()=>this[_0xcac7cc(0x3a3)]()));}[_0x3d9742(0x3a3)](){const _0x2721dc=_0x3d9742;var _0x1a892a;this[_0x2721dc(0x3ef)]=!0x1;let _0x1f613b=this[_0x2721dc(0x351)](),_0xb65315=this[_0x2721dc(0x457)]['scene'];if(!_0x1f613b||typeof _0xb65315['getObject']!=_0x2721dc(0x1a5))return;let _0x1ffd55=this[_0x2721dc(0x2c5)][_0x2721dc(0x321)](_0x1f613b[_0x2721dc(0x1b2)],_0x1f613b[_0x2721dc(0x2f0)]),_0x53d907=new _0x3144e4();(_0x1a892a=this[_0x2721dc(0x36e)])==null||_0x1a892a[_0x2721dc(0x2d2)](),this[_0x2721dc(0x36e)]=_0x53d907,Object[_0x2721dc(0x2c9)](_0x1ffd55)[_0x2721dc(0x44a)](_0x5b152b=>{const _0x267c68=_0x2721dc;var _0x503ba4,_0x1da730;let _0x3e2b69=_0x2329f8(_0x5b152b[_0x267c68(0x1f2)]);if(!(_0x3e2b69!=null&&_0x3e2b69[_0x267c68(0x390)]))return;let _0x4c7689=_0x4a409b(_0x1f613b[_0x267c68(0x1b2)],_0x5b152b[_0x267c68(0x2c6)]),_0x1acb90=((_0x503ba4=_0xb65315[_0x267c68(0x19f)])==null?void 0x0:_0x503ba4[_0x267c68(0x378)](_0xb65315,_0x4c7689))??((_0x1da730=_0xb65315[_0x267c68(0x423)])==null?void 0x0:_0x1da730[_0x267c68(0x378)](_0xb65315,_0x4c7689));_0x1acb90!=null&&_0x1acb90[_0x267c68(0x24d)]&&_0x53d907[_0x267c68(0x40c)](_0x1acb90[_0x267c68(0x24d)]['subscribeEvent']({'priority':-0xa,'next':([_0x546800,_0x18376d])=>this['_capturePointerChildDragStart'](_0x546800,{'unitId':_0x1f613b[_0x267c68(0x1b2)],'subUnitId':_0x1f613b[_0x267c68(0x2f0)],'nodeId':_0x5b152b[_0x267c68(0x2c6)]},_0x18376d)}));});}[_0x3d9742(0x351)](){const _0x226938=_0x3d9742;let _0x20862b=this[_0x226938(0x28d)][_0x226938(0x2b1)]()[_0x226938(0x331)];if(_0x20862b)return _0x20862b;let _0x494df3=this[_0x226938(0x457)][_0x226938(0x1b2)],_0x5a7f71=_0x494df3?this[_0x226938(0x235)][_0x226938(0x39b)](_0x494df3,_0x3eda62[_0x226938(0x1d0)]):null,_0x4a1e6f=_0x5a7f71==null?void 0x0:_0x5a7f71['getActivePageId']();return!_0x5a7f71||!_0x4a1e6f?null:{'unitId':_0x5a7f71[_0x226938(0x268)](),'subUnitId':_0x4a1e6f};}['_captureDragStart'](){const _0x3dd767=_0x3d9742;let _0x328904=this[_0x3dd767(0x28d)]['getSnapshot']();this[_0x3dd767(0x366)]=!0x1,this[_0x3dd767(0x34c)]=!0x1,this[_0x3dd767(0x248)]=null;let _0xccbc5f=_0x328904['context'],_0xa13117=_0x328904[_0x3dd767(0x1c9)]??_0x328904[_0x3dd767(0x363)][0x0];if(!_0xccbc5f||!_0xa13117){this['_dragStart']=null,this[_0x3dd767(0x21e)]();return;}let _0x48e004=this[_0x3dd767(0x2c5)][_0x3dd767(0x321)](_0xccbc5f[_0x3dd767(0x1b2)],_0xccbc5f[_0x3dd767(0x2f0)]);if(_0x328904[_0x3dd767(0x363)]['length']>0x1){let _0x1c49f9=this['_resolveCompleteSelectedScope'](_0x48e004,_0x328904[_0x3dd767(0x363)]);if(!_0x1c49f9){this[_0x3dd767(0x480)]=null,this[_0x3dd767(0x21e)]();return;}let _0x5ef993=_0x48e004[_0x1c49f9[_0x3dd767(0x2a4)]],_0x546cef=_0x58d07c(_0x48e004,_0x1c49f9['rootNodeId']),_0x202001=_0x5ef993['element'][_0x3dd767(0x1ba)];this[_0x3dd767(0x480)]={'kind':_0x3dd767(0x44e),'unitId':_0xccbc5f[_0x3dd767(0x1b2)],'subUnitId':_0xccbc5f['subUnitId'],'nodeId':_0x1c49f9[_0x3dd767(0x2a4)],'scopeId':_0x1c49f9['scopeId'],'left':(_0x546cef==null?void 0x0:_0x546cef[_0x3dd767(0x452)])??_0x202001['left']??0x0,'top':(_0x546cef==null?void 0x0:_0x546cef['top'])??_0x202001[_0x3dd767(0x362)]??0x0,'width':(_0x546cef==null?void 0x0:_0x546cef['width'])??_0x202001[_0x3dd767(0x2cd)]??0x0,'height':(_0x546cef==null?void 0x0:_0x546cef[_0x3dd767(0x1c1)])??_0x202001[_0x3dd767(0x1c1)]??0x0,'elementData':_0x48e004};return;}let _0xe94c5e=_0x48e004[_0xa13117],_0x218235=_0x2329f8(_0xe94c5e==null?void 0x0:_0xe94c5e['element']);if(!_0xe94c5e||!_0x218235){this['_dragStart']=null,this['_removeDragPreviewObject']();return;}let _0x2ff416=_0x58d07c(_0x48e004,_0xa13117),_0xe9e812=_0xe94c5e[_0x3dd767(0x1f2)][_0x3dd767(0x1ba)];this['_dragStart']={'kind':_0x218235[_0x3dd767(0x390)]===null?_0x3dd767(0x380):_0x3dd767(0x3a6),'unitId':_0xccbc5f['unitId'],'subUnitId':_0xccbc5f['subUnitId'],'nodeId':_0xa13117,'scopeId':_0x218235[_0x3dd767(0x405)],'left':(_0x2ff416==null?void 0x0:_0x2ff416[_0x3dd767(0x452)])??_0xe9e812[_0x3dd767(0x452)]??0x0,'top':(_0x2ff416==null?void 0x0:_0x2ff416['top'])??_0xe9e812[_0x3dd767(0x362)]??0x0,'width':(_0x2ff416==null?void 0x0:_0x2ff416[_0x3dd767(0x2cd)])??_0xe9e812['width']??0x0,'height':(_0x2ff416==null?void 0x0:_0x2ff416[_0x3dd767(0x1c1)])??_0xe9e812[_0x3dd767(0x1c1)]??0x0,'elementData':_0x48e004};}[_0x3d9742(0x1a0)](_0x577aad,_0x1052f7){const _0x5bb961=_0x3d9742;let _0x41f440=new Set(_0x1052f7),_0x38cb4e=_0x1052f7[_0x5bb961(0x2e1)](_0x33c4bf=>{const _0x2a4960=_0x5bb961;var _0x2e45bf,_0x256a09,_0x4a2149,_0x106a25;let _0x43c251=(_0x2e45bf=_0x577aad[_0x33c4bf])==null?void 0x0:_0x2e45bf[_0x2a4960(0x1f2)];return((_0x256a09=_0x2329f8(_0x43c251))==null?void 0x0:_0x256a09[_0x2a4960(0x405)])??((_0x4a2149=_0x8df2eb(_0x43c251))==null?void 0x0:_0x4a2149[_0x2a4960(0x405)])??((_0x106a25=_0x24b789(_0x43c251))==null?void 0x0:_0x106a25[_0x2a4960(0x405)])??null;});if(_0x38cb4e[_0x5bb961(0x35e)](_0x5cd392=>_0x5cd392===null)||new Set(_0x38cb4e)[_0x5bb961(0x237)]!==0x1)return null;let _0x1ec036=_0x38cb4e[0x0];if(!_0x1ec036)return null;let _0x25e52d=Object[_0x5bb961(0x2c9)](_0x577aad)[_0x5bb961(0x454)](_0x258ca4=>{const _0x5007ec=_0x5bb961;var _0x55cf37;return _0x258ca4[_0x5007ec(0x1f2)][_0x5007ec(0x1b3)]!==!0x1&&((_0x55cf37=_0x2329f8(_0x258ca4['element']))==null?void 0x0:_0x55cf37[_0x5007ec(0x405)])===_0x1ec036;});if(_0x25e52d['length']===0x0||_0x25e52d[_0x5bb961(0x35e)](_0x1f3bf5=>!_0x41f440[_0x5bb961(0x38e)](_0x1f3bf5[_0x5bb961(0x2c6)])))return null;let _0x491907=_0x25e52d[_0x5bb961(0x454)](_0x436800=>{const _0x1fa0c8=_0x5bb961;var _0x47e5fa;return((_0x47e5fa=_0x2329f8(_0x436800[_0x1fa0c8(0x1f2)]))==null?void 0x0:_0x47e5fa[_0x1fa0c8(0x390)])===null;});return _0x491907[_0x5bb961(0x32b)]===0x1?{'rootNodeId':_0x491907[0x0]['elementId'],'scopeId':_0x1ec036}:null;}['_capturePointerChildDragStart'](_0x4204ab,_0x331c34,_0x2c9dd5){const _0x47131f=_0x3d9742;var _0x4297b0,_0x3f85e5,_0xb58c65,_0x1323ed,_0x38253d;if(this[_0x47131f(0x3c2)][_0x47131f(0x204)]()[_0x47131f(0x404)]===_0x47131f(0x3b4)||(_0x4204ab[_0x47131f(0x199)]??0x0)!==0x0)return;let _0x64bbca=this[_0x47131f(0x28d)]['getSnapshot']();if(_0x64bbca[_0x47131f(0x289)]){this[_0x47131f(0x1d7)]=null;return;}let _0x22bda1=_0x331c34?{'unitId':_0x331c34['unitId'],'subUnitId':_0x331c34[_0x47131f(0x2f0)]}:_0x64bbca['context']??this[_0x47131f(0x351)](),_0x53e6ed=(_0x331c34==null?void 0x0:_0x331c34[_0x47131f(0x2d3)])??(_0x64bbca[_0x47131f(0x363)]['length']===0x1?_0x64bbca['focusedId']??_0x64bbca[_0x47131f(0x363)][0x0]:void 0x0);if(!_0x22bda1){this['_pointerDragStart']=null;return;}let _0xc1d31a=this[_0x47131f(0x2c5)][_0x47131f(0x321)](_0x22bda1['unitId'],_0x22bda1[_0x47131f(0x2f0)]),_0x1abaa9=this[_0x47131f(0x415)](_0x4204ab);if(!_0x331c34){let _0x68e8d3=_0x53e6ed?_0xc1d31a[_0x53e6ed]:null,_0x4ea517=_0x2329f8(_0x68e8d3==null?void 0x0:_0x68e8d3[_0x47131f(0x1f2)]),_0x4a2359=_0x53e6ed?_0x58d07c(_0xc1d31a,_0x53e6ed)??(_0x68e8d3==null?void 0x0:_0x68e8d3[_0x47131f(0x1f2)]['transform']):null;(!(_0x4ea517!=null&&_0x4ea517['parentNodeId'])||!_0x4a2359||!this[_0x47131f(0x2ff)](_0x1abaa9,{'left':_0x4a2359['left']??0x0,'top':_0x4a2359['top']??0x0,'width':_0x4a2359['width']??0x0,'height':_0x4a2359[_0x47131f(0x1c1)]??0x0}))&&(_0x53e6ed=this[_0x47131f(0x265)](_0xc1d31a,_0x1abaa9));}if(!_0x53e6ed){this[_0x47131f(0x1d7)]=null;return;}let _0x545d9e=_0xc1d31a[_0x53e6ed],_0x200229=_0x2329f8(_0x545d9e==null?void 0x0:_0x545d9e[_0x47131f(0x1f2)]);if(!_0x545d9e||!(_0x200229!=null&&_0x200229['parentNodeId'])){this['_pointerDragStart']=null;return;}this[_0x47131f(0x235)][_0x47131f(0x1b1)](_0x22bda1[_0x47131f(0x1b2)]),(_0x4297b0=this[_0x47131f(0x457)][_0x47131f(0x3ed)])==null||(_0x3f85e5=_0x4297b0[_0x47131f(0x3cc)])==null||(_0x3f85e5=_0x3f85e5['call'](_0x4297b0))==null||(_0xb58c65=_0x3f85e5[_0x47131f(0x203)])==null||_0xb58c65[_0x47131f(0x378)](_0x3f85e5,{'preventScroll':!0x0}),(_0x1323ed=(_0x38253d=this['_elementStateService'])[_0x47131f(0x3d3)])==null||_0x1323ed[_0x47131f(0x378)](_0x38253d,_0x22bda1,[_0x53e6ed],_0x53e6ed),_0x2c9dd5==null||_0x2c9dd5[_0x47131f(0x1dd)]();let _0xe7d9ea=_0x58d07c(_0xc1d31a,_0x53e6ed),_0x2280cb=_0x545d9e['element'][_0x47131f(0x1ba)],_0x1b14db={'left':(_0xe7d9ea==null?void 0x0:_0xe7d9ea[_0x47131f(0x452)])??_0x2280cb[_0x47131f(0x452)]??0x0,'top':(_0xe7d9ea==null?void 0x0:_0xe7d9ea[_0x47131f(0x362)])??_0x2280cb[_0x47131f(0x362)]??0x0,'width':(_0xe7d9ea==null?void 0x0:_0xe7d9ea[_0x47131f(0x2cd)])??_0x2280cb['width']??0x0,'height':(_0xe7d9ea==null?void 0x0:_0xe7d9ea[_0x47131f(0x1c1)])??_0x2280cb[_0x47131f(0x1c1)]??0x0};if(!_0x331c34&&!this['_isPointInBounds'](_0x1abaa9,_0x1b14db)){this[_0x47131f(0x1d7)]=null;return;}let _0x335779=this[_0x47131f(0x1df)](_0x4204ab);this[_0x47131f(0x366)]=!0x1,this[_0x47131f(0x34c)]=!0x1,this[_0x47131f(0x248)]=null,this[_0x47131f(0x1d7)]={'kind':_0x47131f(0x3a6),'unitId':_0x22bda1['unitId'],'subUnitId':_0x22bda1[_0x47131f(0x2f0)],'nodeId':_0x53e6ed,'scopeId':_0x200229[_0x47131f(0x405)],..._0x1b14db,'pointerStartX':_0x335779['x'],'pointerStartY':_0x335779['y'],'elementData':_0xc1d31a},this[_0x47131f(0x278)](),this[_0x47131f(0x3d9)](_0x4204ab,_0x2c9dd5);}[_0x3d9742(0x343)](_0x40e5c8,_0x29d375){const _0x4e4271=_0x3d9742;var _0x506874,_0x263d0f;let _0x5379e1=this[_0x4e4271(0x1d7)];if(!_0x5379e1||_0x40e5c8[_0x4e4271(0x30c)]!==void 0x0&&_0x40e5c8[_0x4e4271(0x30c)]!==0x1)return;let _0x2170b7=this[_0x4e4271(0x2da)](_0x40e5c8,_0x5379e1);if(!this['_isChildDragPastActivationThreshold'](_0x5379e1,_0x2170b7))return;this[_0x4e4271(0x366)]||this[_0x4e4271(0x39d)](),this['_childDragActivated']=!0x0;let _0xd4854d=this['_createTopologyBoundsByElementId'](_0x5379e1[_0x4e4271(0x209)],_0x5379e1[_0x4e4271(0x2d3)],_0x2170b7),_0x19016d=nn(_0x5379e1['elementData'],_0x5379e1[_0x4e4271(0x2d3)],{'boundsByElementId':_0xd4854d,'detachWhenNoSnap':!0x0});this['_lastChildDragAction']=_0x19016d,this[_0x4e4271(0x218)](_0x2170b7,_0x19016d,_0xd4854d),this[_0x4e4271(0x3d9)](_0x40e5c8,_0x29d375),this[_0x4e4271(0x457)][_0x4e4271(0x214)]['makeDirty'](!0x0),(_0x506874=(_0x263d0f=this['_renderContext']['scene'])[_0x4e4271(0x288)])==null||_0x506874[_0x4e4271(0x378)](_0x263d0f);}['_applyPointerChildDrag'](_0x236460,_0x4e3e11){const _0x17df1d=_0x3d9742;let _0x152456=this[_0x17df1d(0x1d7)];if(!_0x152456)return;if(this[_0x17df1d(0x1d7)]=null,this[_0x17df1d(0x37d)](),this[_0x17df1d(0x21e)](),!this[_0x17df1d(0x366)]){this[_0x17df1d(0x248)]=null;return;}let _0x2cfb2e=this['_boardElementService'][_0x17df1d(0x321)](_0x152456[_0x17df1d(0x1b2)],_0x152456['subUnitId']),_0x4c20aa=this['_getPointerLiveBounds'](_0x236460,_0x152456),_0x273323=this[_0x17df1d(0x301)](_0x2cfb2e,_0x152456['nodeId'],_0x4c20aa),_0x26939d=nn(_0x2cfb2e,_0x152456[_0x17df1d(0x2d3)],{'boundsByElementId':_0x273323,'detachWhenNoSnap':!0x0});this[_0x17df1d(0x248)]=null,this['_executeChildDragAction'](_0x152456[_0x17df1d(0x1b2)],_0x152456['subUnitId'],_0x152456['nodeId'],_0x2cfb2e,_0x26939d),this[_0x17df1d(0x34c)]=!0x1,this[_0x17df1d(0x3d9)](_0x236460,_0x4e3e11);}[_0x3d9742(0x252)](_0x4e8add){const _0x1557ab=_0x3d9742;let _0x1a2230=this[_0x1557ab(0x1d7)];if(_0x1a2230){if(this[_0x1557ab(0x1d7)]=null,this[_0x1557ab(0x37d)](),this[_0x1557ab(0x366)]=!0x1,this[_0x1557ab(0x248)]=null,this[_0x1557ab(0x21e)](),this[_0x1557ab(0x34c)]){var _0x27244d,_0x49eb80;(_0x27244d=(_0x49eb80=this['_elementStateService'])[_0x1557ab(0x3d3)])==null||_0x27244d['call'](_0x49eb80,{'unitId':_0x1a2230[_0x1557ab(0x1b2)],'subUnitId':_0x1a2230['subUnitId']},[_0x1a2230[_0x1557ab(0x2d3)]],_0x1a2230['nodeId']),this[_0x1557ab(0x34c)]=!0x1;}_0x4e8add==null||_0x4e8add['stopPropagation']();}}[_0x3d9742(0x278)](){const _0x1ab4bf=_0x3d9742;this[_0x1ab4bf(0x37d)]();let _0x946124=typeof window>'u'?null:window;if(!(_0x946124!=null&&_0x946124[_0x1ab4bf(0x429)]))return;let _0x2355ec=new _0x3144e4(),_0x55545d=_0x5af342=>this[_0x1ab4bf(0x343)](_0x5af342),_0x997e70=_0x4746c9=>this[_0x1ab4bf(0x1d6)](_0x4746c9),_0x58122a=()=>this[_0x1ab4bf(0x252)]();_0x946124[_0x1ab4bf(0x429)]('pointermove',_0x55545d,{'capture':!0x0}),_0x946124[_0x1ab4bf(0x429)](_0x1ab4bf(0x3bb),_0x997e70,{'capture':!0x0}),_0x946124[_0x1ab4bf(0x429)](_0x1ab4bf(0x26b),_0x58122a,{'capture':!0x0}),_0x2355ec[_0x1ab4bf(0x40c)](_0xdc7696(()=>{const _0x3d9569=_0x1ab4bf;_0x946124['removeEventListener'](_0x3d9569(0x3b0),_0x55545d,{'capture':!0x0}),_0x946124['removeEventListener']('pointerup',_0x997e70,{'capture':!0x0}),_0x946124[_0x3d9569(0x273)](_0x3d9569(0x26b),_0x58122a,{'capture':!0x0});})),this[_0x1ab4bf(0x22b)]=_0x2355ec;}[_0x3d9742(0x265)](_0x223f37,_0x4f6ddc){const _0x127f1f=_0x3d9742;let _0x50efb5=Object[_0x127f1f(0x2c9)](_0x223f37);for(let _0x2281b0=_0x50efb5[_0x127f1f(0x32b)]-0x1;_0x2281b0>=0x0;--_0x2281b0){let _0x289f20=_0x50efb5[_0x2281b0],_0x22b136=_0x2329f8(_0x289f20['element']);if(!(_0x22b136!=null&&_0x22b136[_0x127f1f(0x390)]))continue;let _0xbe887b=_0x58d07c(_0x223f37,_0x289f20[_0x127f1f(0x2c6)])??_0x289f20[_0x127f1f(0x1f2)][_0x127f1f(0x1ba)];if(this[_0x127f1f(0x2ff)](_0x4f6ddc,{'left':_0xbe887b[_0x127f1f(0x452)]??0x0,'top':_0xbe887b[_0x127f1f(0x362)]??0x0,'width':_0xbe887b[_0x127f1f(0x2cd)]??0x0,'height':_0xbe887b['height']??0x0}))return _0x289f20[_0x127f1f(0x2c6)];}}['_disposeActivePointerDragListeners'](){const _0x487486=_0x3d9742;var _0x2f4fa0;(_0x2f4fa0=this[_0x487486(0x22b)])==null||_0x2f4fa0[_0x487486(0x2d2)](),this['_activePointerDragDisposables']=null;}[_0x3d9742(0x25c)](_0x42afe7){const _0x26ad2a=_0x3d9742;let _0x26e6d3=this[_0x26ad2a(0x480)];if(_0x26e6d3){if((_0x26e6d3['kind']===_0x26ad2a(0x380)||_0x26e6d3[_0x26ad2a(0x349)]===_0x26ad2a(0x44e))&&this[_0x26ad2a(0x402)](_0x42afe7),_0x26e6d3[_0x26ad2a(0x349)]==='root'){this[_0x26ad2a(0x1da)](_0x42afe7);return;}this['_syncChildDragPreview'](_0x42afe7);}}[_0x3d9742(0x402)](_0x1397d0){const _0x7752a6=_0x3d9742;let _0x2e7a60=this[_0x7752a6(0x480)];if(!_0x2e7a60||_0x2e7a60['kind']!==_0x7752a6(0x380)&&_0x2e7a60[_0x7752a6(0x349)]!==_0x7752a6(0x44e))return;let _0x35f3ce=_0x1397d0==null?void 0x0:_0x1397d0[_0x7752a6(0x421)](_0x4a409b(_0x2e7a60['unitId'],_0x2e7a60['nodeId']));if(!_0x35f3ce||!Number['isFinite'](_0x35f3ce[_0x7752a6(0x452)])||!Number['isFinite'](_0x35f3ce[_0x7752a6(0x362)]))return;let _0x311421=on({'elementData':_0x2e7a60[_0x7752a6(0x209)],'rootNodeId':_0x2e7a60[_0x7752a6(0x2d3)],'scopeId':_0x2e7a60[_0x7752a6(0x275)],'rootStartBounds':{'left':_0x2e7a60[_0x7752a6(0x452)],'top':_0x2e7a60[_0x7752a6(0x362)]},'liveRootBounds':{'left':_0x35f3ce[_0x7752a6(0x452)],'top':_0x35f3ce['top']}});if(!_0x311421)return;let _0x3783f0=this[_0x7752a6(0x457)][_0x7752a6(0x214)],_0x2bb18d=_0x3783f0,_0x368dbf=!0x1;_0x311421[_0x7752a6(0x24c)][_0x7752a6(0x44a)](_0x8bec26=>{const _0x378dab=_0x7752a6;var _0x1f8211;let _0x36c8eb=_0x4a409b(_0x2e7a60[_0x378dab(0x1b2)],_0x8bec26[_0x378dab(0x2c6)]),_0x294ba7=((_0x1f8211=_0x2bb18d[_0x378dab(0x19f)])==null?void 0x0:_0x1f8211[_0x378dab(0x378)](_0x2bb18d,_0x36c8eb))??_0x3783f0[_0x378dab(0x423)](_0x36c8eb);if(_0x294ba7){if(_0x8bec26[_0x378dab(0x349)]==='connector'&&typeof _0x294ba7['updateElement']==_0x378dab(0x1a5)){_0x294ba7[_0x378dab(0x39c)](_0x8bec26[_0x378dab(0x1f2)],_0x311421['elementData']),_0x368dbf=!0x0;return;}_0x8bec26[_0x378dab(0x349)]===_0x378dab(0x368)&&(_0x294ba7[_0x378dab(0x2cf)](_0x8bec26[_0x378dab(0x368)]),typeof _0x294ba7[_0x378dab(0x1b9)]==_0x378dab(0x1a5)?_0x294ba7[_0x378dab(0x1b9)](!0x0):_0x294ba7[_0x378dab(0x47c)](!0x0),_0x368dbf=!0x0);}}),_0x368dbf&&_0x3783f0[_0x7752a6(0x47c)](!0x0);}[_0x3d9742(0x1da)](_0x1294ac){const _0x292574=_0x3d9742;var _0xe7399a,_0x5e0ee6;let _0x18b2dc=this[_0x292574(0x480)];if(!_0x18b2dc||_0x18b2dc[_0x292574(0x349)]!==_0x292574(0x380))return;let _0x564d14=_0x1294ac==null?void 0x0:_0x1294ac['get'](_0x4a409b(_0x18b2dc[_0x292574(0x1b2)],_0x18b2dc[_0x292574(0x2d3)]));if(!_0x564d14||!Number['isFinite'](_0x564d14[_0x292574(0x452)])||!Number['isFinite'](_0x564d14[_0x292574(0x362)])){this[_0x292574(0x21e)]();return;}let _0x3f6cba=this[_0x292574(0x414)](_0x564d14,_0x18b2dc),_0x2d9bb2=this['_createTopologyBoundsByElementId'](_0x18b2dc[_0x292574(0x209)],_0x18b2dc[_0x292574(0x2d3)],_0x3f6cba),_0x561f79=nn(_0x18b2dc[_0x292574(0x209)],_0x18b2dc[_0x292574(0x2d3)],{'boundsByElementId':_0x2d9bb2,'allowRootReparent':!0x0});if(_0x561f79[_0x292574(0x349)]!==_0x292574(0x438)){this['_removeDragPreviewObject']();return;}let _0x518634=this['_ensureDragPreviewObject']();_0x518634&&(_0x518634[_0x292574(0x25f)]({'ghostBounds':_0x3f6cba,'sourceBounds':null,'parentBounds':_0x2d9bb2[_0x561f79[_0x292574(0x23f)]],'side':_0x561f79[_0x292574(0x299)],'textStyle':void 0x0,'renderGhostNode':!0x1}),this[_0x292574(0x457)][_0x292574(0x214)]['makeDirty'](!0x0),(_0xe7399a=(_0x5e0ee6=this['_renderContext']['scene'])['requestRender'])==null||_0xe7399a[_0x292574(0x378)](_0x5e0ee6));}['_syncChildDragPreview'](_0x5bf83a){const _0x1f51bd=_0x3d9742;var _0x400e2c,_0x1a4bf1;let _0x58fdbc=this[_0x1f51bd(0x480)];if(!_0x58fdbc||_0x58fdbc[_0x1f51bd(0x349)]!=='child')return;let _0x6927c3=_0x5bf83a==null?void 0x0:_0x5bf83a['get'](_0x4a409b(_0x58fdbc[_0x1f51bd(0x1b2)],_0x58fdbc[_0x1f51bd(0x2d3)]));if(!_0x6927c3){this[_0x1f51bd(0x21e)]();return;}let _0x400f74=this['_getLiveObjectBounds'](_0x6927c3,_0x58fdbc);if(!this[_0x1f51bd(0x267)](_0x58fdbc,_0x400f74)){this[_0x1f51bd(0x248)]=null,this[_0x1f51bd(0x21e)](),this[_0x1f51bd(0x42b)](_0x6927c3,_0x58fdbc),this[_0x1f51bd(0x457)][_0x1f51bd(0x214)][_0x1f51bd(0x47c)](!0x0);return;}this[_0x1f51bd(0x366)]||this[_0x1f51bd(0x39d)](),this[_0x1f51bd(0x366)]=!0x0;let _0x3fd21b=this[_0x1f51bd(0x301)](_0x58fdbc[_0x1f51bd(0x209)],_0x58fdbc[_0x1f51bd(0x2d3)],_0x400f74),_0x2af5b4=nn(_0x58fdbc[_0x1f51bd(0x209)],_0x58fdbc['nodeId'],{'boundsByElementId':_0x3fd21b,'detachWhenNoSnap':!0x0});this[_0x1f51bd(0x248)]=_0x2af5b4,this['_syncChildDragPreviewObject'](_0x400f74,_0x2af5b4,_0x3fd21b),this[_0x1f51bd(0x42b)](_0x6927c3,_0x58fdbc),this[_0x1f51bd(0x457)][_0x1f51bd(0x214)][_0x1f51bd(0x47c)](!0x0),(_0x400e2c=(_0x1a4bf1=this[_0x1f51bd(0x457)][_0x1f51bd(0x214)])['requestRender'])==null||_0x400e2c[_0x1f51bd(0x378)](_0x1a4bf1);}['_applyDragTopologyAction'](_0x29247a){const _0x59667c=_0x3d9742;var _0x2aa717;let _0x54f2d3=this[_0x59667c(0x28d)][_0x59667c(0x2b1)](),_0x3648c0=_0x54f2d3[_0x59667c(0x331)],_0x37de57=_0x54f2d3[_0x59667c(0x1c9)]??_0x54f2d3[_0x59667c(0x363)][0x0];if(_0x3648c0&&((_0x2aa717=this['_dragStart'])==null?void 0x0:_0x2aa717[_0x59667c(0x349)])==='scope'){this[_0x59667c(0x21e)](),this[_0x59667c(0x23e)](_0x3648c0['unitId'],_0x3648c0[_0x59667c(0x2f0)],_0x29247a);return;}if(!_0x3648c0||!_0x37de57||_0x54f2d3[_0x59667c(0x363)][_0x59667c(0x32b)]!==0x1){this[_0x59667c(0x21e)](),this[_0x59667c(0x480)]=null;return;}this[_0x59667c(0x21e)]();let _0x3db2f4=this['_boardElementService']['getElementData'](_0x3648c0[_0x59667c(0x1b2)],_0x3648c0[_0x59667c(0x2f0)]);if(this[_0x59667c(0x1e5)](_0x3648c0['unitId'],_0x3648c0[_0x59667c(0x2f0)],_0x37de57,_0x3db2f4,_0x29247a))return;let _0x3cab02=this[_0x59667c(0x407)](_0x3648c0['unitId'],_0x3648c0['subUnitId'],_0x37de57,_0x3db2f4,_0x29247a);this[_0x59667c(0x473)](_0x3648c0['unitId'],_0x3648c0['subUnitId'],_0x37de57,_0x3db2f4,_0x3cab02);}[_0x3d9742(0x23e)](_0x251428,_0x1369d4,_0x2a257a){const _0x221134=_0x3d9742;let _0x5cc4d8=this[_0x221134(0x480)];if(this[_0x221134(0x480)]=null,!_0x5cc4d8||_0x5cc4d8[_0x221134(0x349)]!==_0x221134(0x44e)||_0x5cc4d8[_0x221134(0x1b2)]!==_0x251428||_0x5cc4d8['subUnitId']!==_0x1369d4)return;let _0x217062=_0x2a257a==null?void 0x0:_0x2a257a[_0x221134(0x421)](_0x4a409b(_0x251428,_0x5cc4d8[_0x221134(0x2d3)])),_0x50271c=_0x217062&&Number[_0x221134(0x1b5)](_0x217062[_0x221134(0x452)])?_0x217062[_0x221134(0x452)]??_0x5cc4d8['left']:_0x5cc4d8[_0x221134(0x452)],_0x28ed8e=_0x217062&&Number[_0x221134(0x1b5)](_0x217062[_0x221134(0x362)])?_0x217062[_0x221134(0x362)]??_0x5cc4d8[_0x221134(0x362)]:_0x5cc4d8[_0x221134(0x362)],_0x13300c=_0x50271c-_0x5cc4d8[_0x221134(0x452)],_0x4d44ee=_0x28ed8e-_0x5cc4d8[_0x221134(0x362)];(_0x13300c!==0x0||_0x4d44ee!==0x0)&&this[_0x221134(0x3af)][_0x221134(0x3c9)](_0x220e2c['id'],{'unitId':_0x251428,'subUnitId':_0x1369d4,'scopeId':_0x5cc4d8[_0x221134(0x275)],'deltaX':_0x13300c,'deltaY':_0x4d44ee});}[_0x3d9742(0x473)](_0x1bc70d,_0xb332bd,_0x5c8df8,_0x475bad,_0x225ff4){const _0x158772=_0x3d9742;if(_0x225ff4[_0x158772(0x349)]===_0x158772(0x438)){var _0x1343d7,_0x5b66e9;let _0x40f7e8=_0x2329f8((_0x1343d7=_0x475bad[_0x5c8df8])==null?void 0x0:_0x1343d7[_0x158772(0x1f2)]),_0x2ba6e0=_0x2329f8((_0x5b66e9=_0x475bad[_0x225ff4['newParentNodeId']])==null?void 0x0:_0x5b66e9['element']);this[_0x158772(0x353)](_0xad8871['id'],{'unitId':_0x1bc70d,'subUnitId':_0xb332bd,'nodeId':_0x5c8df8,'newParentNodeId':_0x225ff4[_0x158772(0x23f)],'side':_0x225ff4['side'],..._0x225ff4[_0x158772(0x31c)]?{'referenceNodeId':_0x225ff4[_0x158772(0x31c)]}:null,..._0x225ff4[_0x158772(0x1fd)]?{'placement':_0x225ff4['placement']}:null},[_0x40f7e8==null?void 0x0:_0x40f7e8[_0x158772(0x405)],_0x2ba6e0==null?void 0x0:_0x2ba6e0[_0x158772(0x405)]],_0x5c8df8);return;}if(_0x225ff4[_0x158772(0x349)]==='detach'){var _0x11c01d;let _0x461921=_0x2329f8((_0x11c01d=_0x475bad[_0x5c8df8])==null?void 0x0:_0x11c01d[_0x158772(0x1f2)]);this[_0x158772(0x353)](_0x16e910['id'],{'unitId':_0x1bc70d,'subUnitId':_0xb332bd,'nodeId':_0x5c8df8,...Number['isFinite'](_0x225ff4[_0x158772(0x452)])?{'left':_0x225ff4['left']}:null,...Number['isFinite'](_0x225ff4[_0x158772(0x362)])?{'top':_0x225ff4[_0x158772(0x362)]}:null},[_0x461921==null?void 0x0:_0x461921['structureScopeId']],_0x5c8df8);}}[_0x3d9742(0x1e5)](_0x19f182,_0x2b4924,_0x5a3bc4,_0x52bfa4,_0x323ffd){const _0x4a9cbe=_0x3d9742;let _0x395bdb=this['_dragStart'];if((_0x395bdb==null?void 0x0:_0x395bdb[_0x4a9cbe(0x349)])===_0x4a9cbe(0x380)&&(this[_0x4a9cbe(0x480)]=null),!_0x395bdb||_0x395bdb[_0x4a9cbe(0x1b2)]!==_0x19f182||_0x395bdb[_0x4a9cbe(0x2f0)]!==_0x2b4924||_0x395bdb[_0x4a9cbe(0x2d3)]!==_0x5a3bc4)return!0x1;let _0xd1095b=_0x52bfa4[_0x5a3bc4],_0x346782=_0x2329f8(_0xd1095b==null?void 0x0:_0xd1095b[_0x4a9cbe(0x1f2)]);if(!_0xd1095b||!_0x346782||_0x346782[_0x4a9cbe(0x390)]!==null)return!0x1;let _0x529425=_0x323ffd==null?void 0x0:_0x323ffd['get'](_0x4a409b(_0x19f182,_0x5a3bc4)),_0x140f83=_0x58d07c(_0x52bfa4,_0x5a3bc4),_0x38bcd6=Number['isFinite'](_0x529425==null?void 0x0:_0x529425['left'])?_0x529425[_0x4a9cbe(0x452)]:(_0x140f83==null?void 0x0:_0x140f83[_0x4a9cbe(0x452)])??_0xd1095b[_0x4a9cbe(0x1f2)][_0x4a9cbe(0x1ba)][_0x4a9cbe(0x452)]??0x0,_0x38a255=Number[_0x4a9cbe(0x1b5)](_0x529425==null?void 0x0:_0x529425[_0x4a9cbe(0x362)])?_0x529425[_0x4a9cbe(0x362)]:(_0x140f83==null?void 0x0:_0x140f83[_0x4a9cbe(0x362)])??_0xd1095b[_0x4a9cbe(0x1f2)][_0x4a9cbe(0x1ba)]['top']??0x0,_0x582d96=_0x38bcd6-_0x395bdb[_0x4a9cbe(0x452)],_0x5634a2=_0x38a255-_0x395bdb[_0x4a9cbe(0x362)];if(_0x582d96===0x0&&_0x5634a2===0x0)return!0x0;let _0x19bf1c={'left':_0x38bcd6,'top':_0x38a255,'width':Number[_0x4a9cbe(0x1b5)](_0x529425==null?void 0x0:_0x529425['width'])?_0x529425[_0x4a9cbe(0x2cd)]:_0x395bdb[_0x4a9cbe(0x2cd)],'height':Number['isFinite'](_0x529425==null?void 0x0:_0x529425[_0x4a9cbe(0x1c1)])?_0x529425[_0x4a9cbe(0x1c1)]:_0x395bdb[_0x4a9cbe(0x1c1)]},_0x33edd2=nn(_0x52bfa4,_0x5a3bc4,{'boundsByElementId':this[_0x4a9cbe(0x301)](_0x52bfa4,_0x5a3bc4,_0x19bf1c),'allowRootReparent':!0x0});if(_0x33edd2[_0x4a9cbe(0x349)]===_0x4a9cbe(0x438))return this[_0x4a9cbe(0x473)](_0x19f182,_0x2b4924,_0x5a3bc4,_0x52bfa4,_0x33edd2),!0x0;let _0x2ad902=!!_0x140f83&&Math[_0x4a9cbe(0x1f7)](_0x140f83[_0x4a9cbe(0x452)]-_0x38bcd6)<0.001&&Math[_0x4a9cbe(0x1f7)](_0x140f83['top']-_0x38a255)<0.001;return this['_commandService'][_0x4a9cbe(0x3c9)](_0x220e2c['id'],{'unitId':_0x19f182,'subUnitId':_0x2b4924,'scopeId':_0x395bdb[_0x4a9cbe(0x275)],'deltaX':_0x582d96,'deltaY':_0x5634a2,..._0x2ad902?{'excludeElementIds':[_0x5a3bc4],'preserveExcludedWorldTransforms':!0x0}:null}),!0x0;}[_0x3d9742(0x407)](_0x37ab2f,_0x2a4257,_0x524361,_0x455416,_0x499244){const _0x2f2dd7=_0x3d9742;let _0x5a8e2e=this[_0x2f2dd7(0x480)];if(!_0x5a8e2e||_0x5a8e2e[_0x2f2dd7(0x349)]!==_0x2f2dd7(0x3a6)||_0x5a8e2e[_0x2f2dd7(0x1b2)]!==_0x37ab2f||_0x5a8e2e[_0x2f2dd7(0x2f0)]!==_0x2a4257||_0x5a8e2e[_0x2f2dd7(0x2d3)]!==_0x524361)return{'kind':'none'};this[_0x2f2dd7(0x480)]=null;let _0xbaac77=_0x499244==null?void 0x0:_0x499244[_0x2f2dd7(0x421)](_0x4a409b(_0x37ab2f,_0x524361));if(!this[_0x2f2dd7(0x366)])return _0xbaac77&&this[_0x2f2dd7(0x42b)](_0xbaac77,_0x5a8e2e),this[_0x2f2dd7(0x248)]=null,{'kind':_0x2f2dd7(0x348)};if(!_0xbaac77){let _0x1240d8=this['_lastChildDragAction']??{'kind':_0x2f2dd7(0x348)};return this[_0x2f2dd7(0x248)]=null,_0x1240d8;}let _0x309fbe=this[_0x2f2dd7(0x414)](_0xbaac77,_0x5a8e2e);if(this[_0x2f2dd7(0x42b)](_0xbaac77,_0x5a8e2e),!this[_0x2f2dd7(0x267)](_0x5a8e2e,_0x309fbe))return this[_0x2f2dd7(0x248)]=null,{'kind':'none'};let _0x4f6d82=nn(_0x455416,_0x524361,{'boundsByElementId':this[_0x2f2dd7(0x301)](_0x455416,_0x524361,_0x309fbe),'detachWhenNoSnap':!0x0});return this[_0x2f2dd7(0x248)]=null,_0x4f6d82;}[_0x3d9742(0x267)](_0x2717d1,_0x32ad19){const _0x212eeb=_0x3d9742;let _0x3b5f10=(_0x32ad19[_0x212eeb(0x452)]??_0x2717d1['left'])-_0x2717d1[_0x212eeb(0x452)],_0x5086f9=(_0x32ad19[_0x212eeb(0x362)]??_0x2717d1[_0x212eeb(0x362)])-_0x2717d1[_0x212eeb(0x362)];return Math[_0x212eeb(0x21b)](_0x3b5f10,_0x5086f9)>=0x12;}[_0x3d9742(0x2da)](_0x518aad,_0xe93b2f){const _0xd72b93=_0x3d9742;let _0x3a77e7=this[_0xd72b93(0x1df)](_0x518aad),_0x58ff47=this[_0xd72b93(0x1d9)]();return{'left':_0xe93b2f[_0xd72b93(0x452)]+(_0x3a77e7['x']-_0xe93b2f['pointerStartX'])/_0x58ff47,'top':_0xe93b2f['top']+(_0x3a77e7['y']-_0xe93b2f[_0xd72b93(0x223)])/_0x58ff47,'width':_0xe93b2f['width'],'height':_0xe93b2f['height']};}['_getBoardPointFromEvent'](_0x231429){const _0x29ec1c=_0x3d9742;let _0x497231=this[_0x29ec1c(0x3c2)][_0x29ec1c(0x204)](),_0x5c602b=(_0x497231==null?void 0x0:_0x497231[_0x29ec1c(0x26e)])??{'x':0x0,'y':0x0},_0x50a35e=this[_0x29ec1c(0x1d9)]();return{'x':Math[_0x29ec1c(0x356)](((_0x231429[_0x29ec1c(0x284)]??0x0)-_0x5c602b['x'])/_0x50a35e),'y':Math[_0x29ec1c(0x356)](((_0x231429['offsetY']??0x0)-_0x5c602b['y'])/_0x50a35e)};}[_0x3d9742(0x1df)](_0x1fa733){const _0x2282d6=_0x3d9742;return{'x':Number[_0x2282d6(0x1b5)](_0x1fa733['clientX'])?_0x1fa733[_0x2282d6(0x1fe)]:_0x1fa733['offsetX']??0x0,'y':Number[_0x2282d6(0x1b5)](_0x1fa733[_0x2282d6(0x225)])?_0x1fa733[_0x2282d6(0x225)]:_0x1fa733[_0x2282d6(0x227)]??0x0};}[_0x3d9742(0x1d9)](){const _0x553781=_0x3d9742;let _0x130128=this[_0x553781(0x3c2)]['getState']()[_0x553781(0x258)];return Number[_0x553781(0x1b5)](_0x130128)&&(_0x130128??0x0)>0x0?_0x130128:0x1;}['_isPointInBounds'](_0x18ee99,_0xffc5bd){const _0x324337=_0x3d9742;return _0x18ee99['x']>=_0xffc5bd['left']&&_0x18ee99['x']<=_0xffc5bd[_0x324337(0x452)]+_0xffc5bd['width']&&_0x18ee99['y']>=_0xffc5bd['top']&&_0x18ee99['y']<=_0xffc5bd[_0x324337(0x362)]+_0xffc5bd['height'];}[_0x3d9742(0x3d9)](_0x2c0413,_0xb998ba){const _0x14d868=_0x3d9742;var _0x449133,_0x593175;_0xb998ba==null||_0xb998ba['stopPropagation'](),_0xb998ba&&(_0xb998ba[_0x14d868(0x359)]=!0x0),(_0x449133=_0x2c0413[_0x14d868(0x35b)])==null||_0x449133['call'](_0x2c0413),(_0x593175=_0x2c0413[_0x14d868(0x1dd)])==null||_0x593175[_0x14d868(0x378)](_0x2c0413);}[_0x3d9742(0x39d)](){const _0x111340=_0x3d9742;var _0x1d9d47,_0x465038;this[_0x111340(0x34c)]||=((_0x1d9d47=(_0x465038=this['_elementStateService'])[_0x111340(0x3d0)])==null||_0x1d9d47[_0x111340(0x378)](_0x465038),!0x0);}[_0x3d9742(0x414)](_0x2ca387,_0x4d4521){const _0x8c5447=_0x3d9742;return{'left':Number['isFinite'](_0x2ca387[_0x8c5447(0x452)])?_0x2ca387['left']:_0x4d4521[_0x8c5447(0x452)],'top':Number['isFinite'](_0x2ca387['top'])?_0x2ca387[_0x8c5447(0x362)]:_0x4d4521[_0x8c5447(0x362)],'width':Number['isFinite'](_0x2ca387[_0x8c5447(0x2cd)])?_0x2ca387[_0x8c5447(0x2cd)]:_0x4d4521['width'],'height':Number[_0x8c5447(0x1b5)](_0x2ca387['height'])?_0x2ca387[_0x8c5447(0x1c1)]:_0x4d4521[_0x8c5447(0x1c1)]};}[_0x3d9742(0x42b)](_0x8575a1,_0x57e399){const _0x243b73=_0x3d9742;typeof _0x8575a1[_0x243b73(0x2cf)]==_0x243b73(0x1a5)&&_0x8575a1[_0x243b73(0x2cf)]({'left':_0x57e399[_0x243b73(0x452)],'top':_0x57e399['top'],'width':_0x57e399[_0x243b73(0x2cd)],'height':_0x57e399[_0x243b73(0x1c1)]}),typeof _0x8575a1[_0x243b73(0x1b9)]=='function'?_0x8575a1[_0x243b73(0x1b9)](!0x0):typeof _0x8575a1[_0x243b73(0x47c)]==_0x243b73(0x1a5)&&_0x8575a1[_0x243b73(0x47c)](!0x0);}[_0x3d9742(0x301)](_0x4ccdd1,_0x406661,_0x5720e4){const _0x46444e=_0x3d9742;return Object[_0x46444e(0x246)](Object[_0x46444e(0x45c)](_0x4ccdd1)['map'](_0x451845=>_0x451845===_0x406661?[_0x451845,_0x5720e4]:[_0x451845,_0x58d07c(_0x4ccdd1,_0x451845)??_0x4ccdd1[_0x451845][_0x46444e(0x1f2)][_0x46444e(0x1ba)]]));}[_0x3d9742(0x375)](){const _0xb32555=_0x3d9742;if(this[_0xb32555(0x303)])return this[_0xb32555(0x303)];let _0x290e96=this[_0xb32555(0x457)]['scene'];return typeof _0x290e96['addObject']==_0xb32555(0x1a5)?(this[_0xb32555(0x303)]=new Jt(Ht),_0x290e96[_0xb32555(0x201)](this[_0xb32555(0x303)],Ut),this[_0xb32555(0x303)]):null;}['_syncChildDragPreviewObject'](_0x274d94,_0x42d6c4,_0x54e98a){const _0xe28283=_0x3d9742;let _0x599bc0=this['_ensureDragPreviewObject']();_0x599bc0&&_0x599bc0[_0xe28283(0x25f)]({'ghostBounds':_0x274d94,'sourceBounds':this[_0xe28283(0x369)](),'parentBounds':_0x42d6c4['kind']==='reparent'?_0x54e98a[_0x42d6c4['newParentNodeId']]:null,'side':_0x42d6c4[_0xe28283(0x349)]==='reparent'?_0x42d6c4[_0xe28283(0x299)]:_0xe28283(0x3f8),'textStyle':this['_resolvePreviewTextStyle'](),'renderGhostNode':!0x0});}[_0x3d9742(0x369)](){const _0x3b097b=_0x3d9742;let _0x3c49cc=this[_0x3b097b(0x1d7)]??this[_0x3b097b(0x480)];return _0x3c49cc?{'left':_0x3c49cc[_0x3b097b(0x452)],'top':_0x3c49cc[_0x3b097b(0x362)],'width':_0x3c49cc[_0x3b097b(0x2cd)],'height':_0x3c49cc['height']}:null;}[_0x3d9742(0x23b)](){const _0x15a143=_0x3d9742;var _0x3a2d0b,_0x5d5dae;let _0x2a4588=this[_0x15a143(0x1d7)]??this[_0x15a143(0x480)],_0x24c1e7=_0x2a4588==null||(_0x3a2d0b=_0x2a4588['elementData'][_0x2a4588[_0x15a143(0x2d3)]])==null?void 0x0:_0x3a2d0b[_0x15a143(0x1f2)],_0x3d2e58=_0x24c1e7==null||(_0x5d5dae=_0x24c1e7[_0x15a143(0x449)])==null?void 0x0:_0x5d5dae[_0x15a143(0x211)];if(_0x3d2e58)return{'text':typeof _0x3d2e58['text']==_0x15a143(0x347)?_0x3d2e58[_0x15a143(0x409)]:void 0x0,'fontSize':Number['isFinite'](_0x3d2e58[_0x15a143(0x3b7)])?_0x3d2e58[_0x15a143(0x3b7)]:void 0x0,'color':typeof _0x3d2e58['color']==_0x15a143(0x347)?_0x3d2e58['color']:void 0x0,'horizontalAlign':Number[_0x15a143(0x1b5)](_0x3d2e58[_0x15a143(0x335)])?_0x3d2e58[_0x15a143(0x335)]:void 0x0};}[_0x3d9742(0x21e)](){const _0x40b614=_0x3d9742;var _0x50928,_0x33803f,_0xaef069;if(!this[_0x40b614(0x303)])return;let _0x23dc5e=this[_0x40b614(0x457)][_0x40b614(0x214)];(_0x50928=_0x23dc5e['removeObjects'])==null||_0x50928['call'](_0x23dc5e,[this[_0x40b614(0x303)]]),this[_0x40b614(0x303)]=null,(_0x33803f=(_0xaef069=this['_renderContext'][_0x40b614(0x214)])['makeDirty'])==null||_0x33803f[_0x40b614(0x378)](_0xaef069,!0x0);}[_0x3d9742(0x353)](_0x301d09,_0x1ff617,_0xd00f66,_0x54d9d1){const _0x3a7ecb=_0x3d9742;let _0xfdda32=[...new Set(_0xd00f66[_0x3a7ecb(0x454)](_0x52ce48=>!!_0x52ce48))],_0x386814=typeof _0x1ff617[_0x3a7ecb(0x1b2)]==_0x3a7ecb(0x347)?_0x1ff617[_0x3a7ecb(0x1b2)]:this['_renderContext']['unitId'],_0x5559e2=this[_0x3a7ecb(0x318)][_0x3a7ecb(0x398)](_0x386814),_0x14d3c9=_0x5559e2(()=>this[_0x3a7ecb(0x3af)]['executeCommand'](_0x301d09,_0x1ff617));Promise[_0x3a7ecb(0x42c)](_0x14d3c9)['then'](_0x30815e=>{const _0xe9ca62=_0x3a7ecb;var _0x4eda43,_0x115b69,_0x5bc58e,_0x15c83f;if(_0x30815e){if(_0xfdda32[_0xe9ca62(0x44a)](_0x21f2d7=>{const _0x118934=_0xe9ca62;_0x5559e2(()=>this[_0x118934(0x3af)][_0x118934(0x3c9)](_0x46019e['id'],{'unitId':_0x1ff617[_0x118934(0x1b2)],'subUnitId':_0x1ff617['subUnitId'],'scopeId':_0x21f2d7}));}),_0x54d9d1&&typeof _0x1ff617[_0xe9ca62(0x1b2)]==_0xe9ca62(0x347)&&typeof _0x1ff617['subUnitId']=='string'){var _0x4b2a86,_0x26b74e;(_0x4b2a86=(_0x26b74e=this[_0xe9ca62(0x28d)])[_0xe9ca62(0x3d3)])==null||_0x4b2a86['call'](_0x26b74e,{'unitId':_0x1ff617['unitId'],'subUnitId':_0x1ff617[_0xe9ca62(0x2f0)]},[_0x54d9d1],_0x54d9d1);}(_0x4eda43=(_0x115b69=this[_0xe9ca62(0x457)][_0xe9ca62(0x214)])['makeDirty'])==null||_0x4eda43['call'](_0x115b69,!0x0),(_0x5bc58e=(_0x15c83f=this[_0xe9ca62(0x457)][_0xe9ca62(0x214)])[_0xe9ca62(0x288)])==null||_0x5bc58e[_0xe9ca62(0x378)](_0x15c83f);}});}};sn=q([K(0x1,_0x45c8ba(_0x6adb2b)),K(0x2,_0x45c8ba(_0x1bd113)),K(0x3,_0x234c21),K(0x4,_0x1d4c5c),K(0x5,_0x42b922),K(0x6,_0x45c8ba(_0x5dbd59))],sn);let cn=class extends _0x300276{constructor(_0x3cc52b,_0x4c51ca,_0x43d453,_0x1e7ea4,_0x5d9c86,_0x54c5c5,_0x1d7061,_0x28174f,_0x1c57a7){const _0x522201=_0x3d9742;super(),this[_0x522201(0x1a2)]=_0x3cc52b,this['commandService']=_0x4c51ca,this['elementService']=_0x43d453,this[_0x522201(0x408)]=_0x1e7ea4,this['uiStateService']=_0x5d9c86,this['clipboardService']=_0x54c5c5,this['dialogService']=_0x1d7061,this[_0x522201(0x274)]=_0x28174f,this[_0x522201(0x259)]=_0x1c57a7;}};cn=q([K(0x1,_0x234c21),K(0x2,_0x6adb2b),K(0x3,_0x1bd113),K(0x4,_0x1d4c5c),K(0x5,_0x3e2d72),K(0x6,_0x32bf11),K(0x7,_0x45c8ba(_0x3df9f7)),K(0x8,_0x45c8ba(_0x36fa6f))],cn);const ln=_0x3d9742(0x334),un=_0x3d9742(0x20c);function dn(_0x196ef0){const _0x172b48=_0x3d9742;let {unitId:_0x30f92e,subUnitId:_0xd9d9c5,nodeId:_0x17694f,initialDescription:_0x48bce3=''}=_0x196ef0,_0x14a2c4=_0x881b68(_0x234c21),_0x10ba0d=_0x881b68(_0x32bf11),_0x322e49=_0x881b68(_0x3df9f7),[_0x48ade8,_0x29c975]=_0x3c130b(_0x48bce3),_0x154ecb=()=>_0x10ba0d[_0x172b48(0x3ea)](un);return _0x5d87b6('div',{'className':_0x172b48(0x37b),'data-board-mind-map-description-dialog':_0x172b48(0x337),'children':[_0x5d87b6('label',{'className':_0x172b48(0x1ae),'children':[_0xeb0434(_0x172b48(0x3a2),{'className':_0x172b48(0x31e),'children':_0x322e49['t'](_0x172b48(0x1ea))}),_0xeb0434(_0x2fe6f5,{'autoFocus':!0x0,'className':_0x172b48(0x46f),'placeholder':_0x322e49['t'](_0x172b48(0x3ee)),'value':_0x48ade8,'onValueChange':_0x29c975})]}),_0x5d87b6('div',{'className':_0x172b48(0x2b3),'children':[_0xeb0434(_0x2442d7,{'size':'small','variant':_0x172b48(0x2e8),'onClick':_0x154ecb,'children':_0x322e49['t'](_0x172b48(0x208))}),_0xeb0434(_0x2442d7,{'size':'small','variant':_0x172b48(0x1a7),'onClick':()=>{const _0x465525=_0x172b48;_0x14a2c4['executeCommand'](_0x17468f['id'],{'unitId':_0x30f92e,'subUnitId':_0xd9d9c5,'nodeId':_0x17694f,'foreignAttributes':{'_note':_0x48ade8[_0x465525(0x29d)]()?_0x48ade8:null}}),_0x154ecb();},'children':_0x322e49['t'](_0x172b48(0x1ff))})]})]});}const fn='board.operation.mind-map.keyboard-shortcut',pn=_0x3d9742(0x260),mn=_0x3d9742(0x1db),hn={'copy':_0x42c4fd[_0x3d9742(0x3f9)],'paste':_0x42c4fd[_0x3d9742(0x3b2)],'paste-as-new':_0x42c4fd[_0x3d9742(0x3b2)],'add-child':_0x42c4fd[_0x3d9742(0x461)],'add-sibling-or-child':_0x42c4fd[_0x3d9742(0x2a1)],'promote':_0x42c4fd[_0x3d9742(0x19d)],'toggle-collapse':_0x42c4fd[_0x3d9742(0x276)],'collapse-all':_0x42c4fd[_0x3d9742(0x482)],'edit-text':_0x42c4fd[_0x3d9742(0x285)],'open-description':_0x42c4fd[_0x3d9742(0x470)],'delete':_0x31cd21[_0x3d9742(0x393)],'arrow-left':_0x31cd21[_0x3d9742(0x3aa)],'arrow-right':_0x31cd21[_0x3d9742(0x39e)],'arrow-up':_0x31cd21[_0x3d9742(0x1fc)],'arrow-down':_0x31cd21[_0x3d9742(0x222)]},gn={'delete':[_0x31cd21[_0x3d9742(0x2cc)]]};function _n(_0xd20fdc){return[hn[_0xd20fdc],...gn[_0xd20fdc]??[]];}let vn=class extends _0xd55cd7{constructor(_0x552388,_0x90e1e1,_0x4c1fd6,_0x40b988){const _0x312863=_0x3d9742;super(),this[_0x312863(0x298)]=_0x552388,this[_0x312863(0x3af)]=_0x90e1e1,this[_0x312863(0x2e9)]=_0x4c1fd6,this[_0x312863(0x318)]=_0x40b988,this[_0x312863(0x220)]();}[_0x3d9742(0x220)](){const _0x241fc8=_0x3d9742;this[_0x241fc8(0x2bf)](this[_0x241fc8(0x3af)][_0x241fc8(0x3e5)](this['_createKeyboardShortcutOperation']())),this[_0x241fc8(0x32c)]()[_0x241fc8(0x44a)](_0x27b2aa=>{const _0x51c5ca=_0x241fc8;this[_0x51c5ca(0x2bf)](this[_0x51c5ca(0x2e9)][_0x51c5ca(0x1e6)](_0x27b2aa));});}[_0x3d9742(0x316)](){return{'id':fn,'type':_0x5717c8['OPERATION'],'handler':(_0x19173d,_0x14eb13,_0x4896c6)=>{const _0x11d48a=_0x19c3;let _0x332507=yn(_0x19173d,_0x4896c6);return _0x332507?this[_0x11d48a(0x474)](_0x332507,_0x14eb13==null?void 0x0:_0x14eb13[_0x11d48a(0x234)]):!0x1;}};}[_0x3d9742(0x32c)](){const _0xa9c893=_0x3d9742;let _0x12379a=(_0x410d5a,_0x319af4)=>({'id':fn,'binding':_0x410d5a,'priority':0xa0,'preconditions':_0x544c7e=>!!_0x544c7e[_0xa9c893(0x264)](pn),'staticParameters':{'action':_0x319af4}}),_0x3d6a95=_0x326a22=>_n(_0x326a22)['map'](_0x381096=>_0x12379a(_0x381096,_0x326a22));return[..._0x3d6a95(_0xa9c893(0x3f9)),{'id':fn,'binding':hn[_0xa9c893(0x3b2)],'priority':0xa0,'preconditions':_0x2822e9=>!!this[_0xa9c893(0x298)][_0xa9c893(0x2d0)]()&&!!_0x2822e9['getContextValue'](_0xa9c893(0x260)),'staticParameters':{'action':_0xa9c893(0x3b2)}},{'id':fn,'binding':hn[_0xa9c893(0x341)],'priority':0x96,'preconditions':_0x5a5971=>!!this[_0xa9c893(0x298)][_0xa9c893(0x2d0)]()&&!!_0x5a5971[_0xa9c893(0x264)](_0xa9c893(0x1db)),'staticParameters':{'action':_0xa9c893(0x341)}},..._0x3d6a95('add-child'),..._0x3d6a95(_0xa9c893(0x2bd)),..._0x3d6a95(_0xa9c893(0x3cf)),..._0x3d6a95(_0xa9c893(0x23d)),..._0x3d6a95(_0xa9c893(0x1e7)),..._0x3d6a95(_0xa9c893(0x463)),..._0x3d6a95(_0xa9c893(0x3fe)),..._0x3d6a95(_0xa9c893(0x30a)),..._0x3d6a95(_0xa9c893(0x450)),..._0x3d6a95(_0xa9c893(0x1b0)),..._0x3d6a95(_0xa9c893(0x30f)),..._0x3d6a95('arrow-down')];}[_0x3d9742(0x474)](_0x4d04e7,_0x38730d){const _0x27d388=_0x3d9742;return _0x4d04e7[_0x27d388(0x2ec)]['getState']()[_0x27d388(0x404)]===_0x27d388(0x3b4)&&_0x38730d!==_0x27d388(0x3f9)?!0x1:_0x38730d===_0x27d388(0x3f9)?this[_0x27d388(0x1c5)](_0x4d04e7):_0x38730d==='paste'?this[_0x27d388(0x1cd)](_0x4d04e7):_0x38730d===_0x27d388(0x341)?this[_0x27d388(0x3e1)](_0x4d04e7):_0x38730d===_0x27d388(0x36f)?this[_0x27d388(0x458)](_0x4d04e7):_0x38730d===_0x27d388(0x2bd)?this['_addSiblingOrChild'](_0x4d04e7):_0x38730d===_0x27d388(0x3cf)?this['_executeNodeOperation'](_0x4d04e7,_0x194109['id']):_0x38730d==='toggle-collapse'?this['_executeNodeOperation'](_0x4d04e7,_0x108bd7['id']):_0x38730d==='collapse-all'?this[_0x27d388(0x3eb)](_0x4d04e7):_0x38730d===_0x27d388(0x463)?this[_0x27d388(0x2e0)](_0x4d04e7):_0x38730d===_0x27d388(0x3fe)?this['_openDescriptionDialog'](_0x4d04e7):_0x38730d==='delete'?this[_0x27d388(0x2b6)](_0x4d04e7):_0x38730d&&bn(_0x38730d)?this['_navigateByTopology'](_0x4d04e7,_0x38730d):!0x1;}['_copySelectedNode'](_0x545489){const _0x1f796a=_0x3d9742;let _0x1ab7ab=this['_getSelectedMindMapContext'](_0x545489);return _0x1ab7ab?(_0x545489[_0x1f796a(0x339)][_0x1f796a(0x3c9)](_0x152965['id'],{'unitId':_0x1ab7ab['unitId'],'subUnitId':_0x1ab7ab[_0x1f796a(0x2f0)],'nodeId':_0x1ab7ab[_0x1f796a(0x2d3)]}),!0x0):!0x1;}[_0x3d9742(0x1cd)](_0x5824b6){const _0x6946c0=_0x3d9742;let _0x399d14=this[_0x6946c0(0x34f)](_0x5824b6);return!_0x399d14||!_0x5824b6[_0x6946c0(0x2bc)][_0x6946c0(0x2d0)]()?!0x1:(this[_0x6946c0(0x353)](_0x5824b6,_0xa9b685['id'],{'unitId':_0x399d14[_0x6946c0(0x1b2)],'subUnitId':_0x399d14['subUnitId'],'targetNodeId':_0x399d14['nodeId']},_0x399d14[_0x6946c0(0x275)]),!0x0);}[_0x3d9742(0x3e1)](_0x3f9d33){const _0x28dfd9=_0x3d9742;let _0x24f4a1=this[_0x28dfd9(0x325)](_0x3f9d33);if(!_0x24f4a1||!_0x3f9d33[_0x28dfd9(0x2bc)][_0x28dfd9(0x2d0)]())return!0x1;let _0x42aba4=_0x3f9d33[_0x28dfd9(0x2ec)][_0x28dfd9(0x204)](),_0x333e8f=Number[_0x28dfd9(0x1b5)](_0x42aba4[_0x28dfd9(0x258)])&&_0x42aba4[_0x28dfd9(0x258)]>0x0?_0x42aba4['zoomRatio']:0x1,_0x484a12=Math[_0x28dfd9(0x356)]((0x40-_0x42aba4[_0x28dfd9(0x26e)]['x'])/_0x333e8f),_0x1109fc=Math[_0x28dfd9(0x356)]((0x40-_0x42aba4[_0x28dfd9(0x26e)]['y'])/_0x333e8f);return _0x3f9d33[_0x28dfd9(0x339)][_0x28dfd9(0x3c9)](_0x1c51bf['id'],{'unitId':_0x24f4a1['unitId'],'subUnitId':_0x24f4a1[_0x28dfd9(0x2f0)],'left':_0x484a12,'top':_0x1109fc}),!0x0;}[_0x3d9742(0x458)](_0x3d0411){const _0x21c1cf=_0x3d9742;let _0x1b3a84=this[_0x21c1cf(0x34f)](_0x3d0411);if(!_0x1b3a84)return!0x1;let _0x8c7806=_0x46ed23(0x6);return this[_0x21c1cf(0x2db)](_0x3d0411,_0x2f341c['id'],{'unitId':_0x1b3a84[_0x21c1cf(0x1b2)],'subUnitId':_0x1b3a84[_0x21c1cf(0x2f0)],'parentNodeId':_0x1b3a84[_0x21c1cf(0x2d3)],'nodeId':_0x8c7806,'connectorId':_0x46ed23(0x6),'text':_0x3d0411[_0x21c1cf(0x274)]['t']('boards-mind-ui.panel.addText')},_0x1b3a84[_0x21c1cf(0x275)],_0x8c7806),!0x0;}['_addSiblingOrChild'](_0x778805){const _0xddf791=_0x3d9742;let _0x3fbb28=this['_getSelectedMindMapContext'](_0x778805);if(!_0x3fbb28)return!0x1;let _0x25fbc0=_0x46ed23(0x6);return this[_0xddf791(0x2db)](_0x778805,_0x3fbb28['isRoot']?_0x2f341c['id']:_0x97b05c['id'],{'unitId':_0x3fbb28[_0xddf791(0x1b2)],'subUnitId':_0x3fbb28[_0xddf791(0x2f0)],..._0x3fbb28[_0xddf791(0x1f5)]?{'parentNodeId':_0x3fbb28[_0xddf791(0x2d3)],'nodeId':_0x25fbc0}:{'nodeId':_0x3fbb28[_0xddf791(0x2d3)],'siblingNodeId':_0x25fbc0},'connectorId':_0x46ed23(0x6),'text':_0x778805[_0xddf791(0x274)]['t'](_0xddf791(0x2c8))},_0x3fbb28['scopeId'],_0x25fbc0),!0x0;}['_executeNodeOperation'](_0x2dcc17,_0xef9079){const _0x402e44=_0x3d9742;let _0x5d3371=this[_0x402e44(0x34f)](_0x2dcc17);return _0x5d3371?(this[_0x402e44(0x353)](_0x2dcc17,_0xef9079,{'unitId':_0x5d3371[_0x402e44(0x1b2)],'subUnitId':_0x5d3371[_0x402e44(0x2f0)],'nodeId':_0x5d3371[_0x402e44(0x2d3)]},_0x5d3371[_0x402e44(0x275)]),!0x0):!0x1;}[_0x3d9742(0x2b6)](_0x514817){const _0x5c430d=_0x3d9742;let _0x4e4971=this[_0x5c430d(0x34f)](_0x514817);if(!_0x4e4971)return!0x1;let _0x527cd2=_0x514817[_0x5c430d(0x339)][_0x5c430d(0x3b3)](_0xdfeb89['id'],{'unitId':_0x4e4971['unitId'],'subUnitId':_0x4e4971[_0x5c430d(0x2f0)],'nodeId':_0x4e4971[_0x5c430d(0x2d3)]});return _0x527cd2&&_0x514817[_0x5c430d(0x408)]['clearSelection'](),_0x527cd2;}[_0x3d9742(0x3eb)](_0x1b96d0){const _0x1f2be7=_0x3d9742;let _0x12aa0e=this[_0x1f2be7(0x34f)](_0x1b96d0);if(!_0x12aa0e)return!0x1;let _0x1971f2=_0x1b96d0[_0x1f2be7(0x21a)][_0x1f2be7(0x321)](_0x12aa0e['unitId'],_0x12aa0e[_0x1f2be7(0x2f0)]),_0x1850a4=Object[_0x1f2be7(0x2c9)](_0x1971f2)[_0x1f2be7(0x2e1)](_0x1a38b9=>{const _0x337ab2=_0x1f2be7;let _0x2f464c=_0x2329f8(_0x1a38b9[_0x337ab2(0x1f2)]);return(_0x2f464c==null?void 0x0:_0x2f464c[_0x337ab2(0x405)])===_0x12aa0e['scopeId']&&this[_0x337ab2(0x478)](_0x1971f2,_0x12aa0e['scopeId'],_0x1a38b9[_0x337ab2(0x2c6)])[_0x337ab2(0x32b)]>0x0?{'nodeId':_0x1a38b9[_0x337ab2(0x2c6)],'collapsed':_0x2f464c[_0x337ab2(0x437)]}:null;})[_0x1f2be7(0x454)](_0x279cf8=>!!_0x279cf8);if(_0x1850a4[_0x1f2be7(0x32b)]===0x0)return!0x1;let _0x59c8af=_0x1850a4[_0x1f2be7(0x35e)](_0x58b1ae=>!_0x58b1ae['collapsed']),_0x11f927=_0x1b96d0[_0x1f2be7(0x339)],_0x3858c6=this[_0x1f2be7(0x318)]['createRunner'](_0x12aa0e[_0x1f2be7(0x1b2)]),_0x4eedca=_0x1850a4[_0x1f2be7(0x2e1)](_0x59eaab=>_0x3858c6(()=>_0x11f927['executeCommand'](_0x108bd7['id'],{'unitId':_0x12aa0e['unitId'],'subUnitId':_0x12aa0e[_0x1f2be7(0x2f0)],'nodeId':_0x59eaab[_0x1f2be7(0x2d3)],'collapsed':_0x59c8af})));return Promise[_0x1f2be7(0x487)](_0x4eedca[_0x1f2be7(0x2e1)](_0x1edc97=>Promise[_0x1f2be7(0x42c)](_0x1edc97)))[_0x1f2be7(0x3a8)](_0x352716=>{const _0x81ba32=_0x1f2be7;_0x352716[_0x81ba32(0x35e)](Boolean)&&_0x3858c6(()=>_0x11f927['executeCommand'](_0x46019e['id'],{'unitId':_0x12aa0e[_0x81ba32(0x1b2)],'subUnitId':_0x12aa0e[_0x81ba32(0x2f0)],'scopeId':_0x12aa0e[_0x81ba32(0x275)]}));}),!0x0;}[_0x3d9742(0x2e0)](_0xc8eff5){const _0x38a7d7=_0x3d9742;let _0x1f3766=this[_0x38a7d7(0x34f)](_0xc8eff5);if(!_0x1f3766)return!0x1;_0xc8eff5['elementStateService']['selectElements']({'unitId':_0x1f3766[_0x38a7d7(0x1b2)],'subUnitId':_0x1f3766['subUnitId']},[_0x1f3766['nodeId']],_0x1f3766[_0x38a7d7(0x2d3)]);let _0x21480f=_0xc8eff5[_0x38a7d7(0x259)];return _0x21480f[_0x38a7d7(0x1c0)](),_0x21480f[_0x38a7d7(0x406)]({'unitId':_0x1f3766['unitId'],'subUnitId':_0x1f3766[_0x38a7d7(0x2f0)],'shapeId':_0x1f3766['nodeId'],'shapeKey':_0x4a409b(_0x1f3766[_0x38a7d7(0x1b2)],_0x1f3766[_0x38a7d7(0x2d3)]),'visible':!0x0}),!0x0;}['_openDescriptionDialog'](_0x46b523){const _0xc59bd=_0x3d9742;let _0x40d46a=this[_0xc59bd(0x34f)](_0x46b523);return _0x40d46a?(_0x46b523[_0xc59bd(0x1e9)][_0xc59bd(0x44d)]({'id':un,'title':{'title':_0xc59bd(0x1ea)},'width':0x1a4,'draggable':!0x0,'mask':!0x1,'maskClosable':!0x0,'children':{'label':ln,'unitId':_0x40d46a[_0xc59bd(0x1b2)],'subUnitId':_0x40d46a[_0xc59bd(0x2f0)],'nodeId':_0x40d46a[_0xc59bd(0x2d3)],'initialDescription':_0x40d46a['description']}}),!0x0):!0x1;}[_0x3d9742(0x1bc)](_0x48daeb,_0x3906c1){const _0x23265c=_0x3d9742;let _0x27d4ce=this['_getSelectedMindMapContext'](_0x48daeb);if(!_0x27d4ce)return!0x1;let _0x5d0453=_0x48daeb[_0x23265c(0x21a)]['getElementData'](_0x27d4ce[_0x23265c(0x1b2)],_0x27d4ce[_0x23265c(0x2f0)]),_0x37305a=_0x5d0453[_0x27d4ce[_0x23265c(0x2d3)]],_0x25ac7c=_0x2329f8(_0x37305a==null?void 0x0:_0x37305a[_0x23265c(0x1f2)]);if(!_0x37305a||!_0x25ac7c)return!0x1;let _0x2d0842={'arrow-left':_0x23265c(0x1de),'arrow-right':_0x23265c(0x281),'arrow-up':_0x23265c(0x261),'arrow-down':_0x23265c(0x29f)}[_0x3906c1];if(!_0x2d0842)return!0x1;let _0x20b73a=this[_0x23265c(0x37a)](_0x5d0453,_0x27d4ce['nodeId'],_0x25ac7c,_0x2d0842);return _0x20b73a?(_0x48daeb[_0x23265c(0x408)][_0x23265c(0x3d3)]({'unitId':_0x27d4ce[_0x23265c(0x1b2)],'subUnitId':_0x27d4ce[_0x23265c(0x2f0)]},[_0x20b73a],_0x20b73a),!0x0):!0x1;}[_0x3d9742(0x37a)](_0x49633b,_0x169902,_0x4b2bd4,_0x352122){const _0x2dc9af=_0x3d9742;let _0x4763ed=this['_getMindMapChildren'](_0x49633b,_0x4b2bd4[_0x2dc9af(0x405)],_0x169902);if(_0x4b2bd4[_0x2dc9af(0x390)]===null){if(_0x352122===_0x2dc9af(0x1de)){var _0xd6477a;return((_0xd6477a=_0x4763ed[_0x2dc9af(0x31d)](_0x34bb5f=>{const _0xf8c440=_0x2dc9af;var _0xbb1577;return((_0xbb1577=_0x2329f8(_0x34bb5f[_0xf8c440(0x1f2)]))==null?void 0x0:_0xbb1577['side'])===_0xf8c440(0x452);}))==null?void 0x0:_0xd6477a[_0x2dc9af(0x2c6)])??null;}if(_0x352122===_0x2dc9af(0x281)){var _0x20a822;return((_0x20a822=_0x4763ed[_0x2dc9af(0x31d)](_0xc624ea=>{const _0x185660=_0x2dc9af;var _0x3ace01;return(((_0x3ace01=_0x2329f8(_0xc624ea['element']))==null?void 0x0:_0x3ace01['side'])??_0x185660(0x3f8))===_0x185660(0x3f8);}))==null?void 0x0:_0x20a822[_0x2dc9af(0x2c6)])??null;}return null;}let _0x167f7d=_0x4b2bd4['side']??'right',_0x339229=_0x167f7d===_0x2dc9af(0x3f8)?_0x2dc9af(0x1de):_0x2dc9af(0x281),_0x29e1d2=_0x167f7d===_0x2dc9af(0x3f8)?'ArrowRight':'ArrowLeft';if(_0x352122===_0x339229)return _0x4b2bd4[_0x2dc9af(0x390)];if(_0x352122===_0x29e1d2){var _0x53d279;return((_0x53d279=_0x4763ed[0x0])==null?void 0x0:_0x53d279['elementId'])??null;}if(_0x352122===_0x2dc9af(0x261)||_0x352122===_0x2dc9af(0x29f)){let _0x51c770=this[_0x2dc9af(0x478)](_0x49633b,_0x4b2bd4['structureScopeId'],_0x4b2bd4['parentNodeId']),_0x49c523=_0x51c770[_0x2dc9af(0x1f3)](_0x33b45d=>_0x33b45d[_0x2dc9af(0x2c6)]===_0x169902),_0x59db93=_0x352122===_0x2dc9af(0x261)?_0x51c770[_0x49c523-0x1]:_0x51c770[_0x49c523+0x1];return(_0x59db93==null?void 0x0:_0x59db93[_0x2dc9af(0x2c6)])??null;}return null;}[_0x3d9742(0x478)](_0x5e4971,_0x57e8e8,_0x4d14ac){const _0xff48d8=_0x3d9742;return Object[_0xff48d8(0x2c9)](_0x5e4971)[_0xff48d8(0x454)](_0x164e49=>{const _0x3eb258=_0xff48d8;let _0x6e7f95=_0x2329f8(_0x164e49['element']);return(_0x6e7f95==null?void 0x0:_0x6e7f95[_0x3eb258(0x405)])===_0x57e8e8&&_0x6e7f95[_0x3eb258(0x390)]===_0x4d14ac&&_0x164e49[_0x3eb258(0x1f2)][_0x3eb258(0x1b3)]!==!0x1;})['sort']((_0x2cdf43,_0x59307a)=>{const _0x6c6a2a=_0xff48d8;let _0x5e414e=_0x2329f8(_0x2cdf43[_0x6c6a2a(0x1f2)]),_0x5ce4f4=_0x2329f8(_0x59307a[_0x6c6a2a(0x1f2)]);return _0xd5afc9(_0x5e414e==null?void 0x0:_0x5e414e['orderKey'],_0x5ce4f4==null?void 0x0:_0x5ce4f4[_0x6c6a2a(0x20d)])||_0x2cdf43[_0x6c6a2a(0x2c6)][_0x6c6a2a(0x213)](_0x59307a[_0x6c6a2a(0x2c6)]);});}[_0x3d9742(0x34f)](_0x2dc9c2){const _0x213b7c=_0x3d9742;var _0x2741da;let _0x5d6e5b=_0x2dc9c2['elementStateService'][_0x213b7c(0x2b1)](),_0x555173=_0x5d6e5b['focusedId']??_0x5d6e5b[_0x213b7c(0x363)][0x0];if(!_0x555173||_0x5d6e5b['selectedIds'][_0x213b7c(0x32b)]!==0x1||_0x5d6e5b[_0x213b7c(0x289)]||_0x5d6e5b['isTransforming'])return null;let _0x3cf9b1=_0x5d6e5b['context']??{'unitId':_0x2dc9c2[_0x213b7c(0x1a2)][_0x213b7c(0x1b2)],'subUnitId':_0x2dc9c2[_0x213b7c(0x1a2)]['unit'][_0x213b7c(0x3cb)]()},_0x138f14=_0x2dc9c2[_0x213b7c(0x21a)][_0x213b7c(0x321)](_0x3cf9b1['unitId'],_0x3cf9b1[_0x213b7c(0x2f0)])[_0x555173],_0x387f48=_0x2329f8(_0x138f14==null?void 0x0:_0x138f14['element']);return!_0x138f14||!_0x387f48?null:{'unitId':_0x3cf9b1[_0x213b7c(0x1b2)],'subUnitId':_0x3cf9b1[_0x213b7c(0x2f0)],'nodeId':_0x555173,'scopeId':_0x387f48[_0x213b7c(0x405)],'isRoot':_0x387f48[_0x213b7c(0x390)]===null,'description':((_0x2741da=_0x387f48[_0x213b7c(0x290)])==null?void 0x0:_0x2741da['_note'])??''};}[_0x3d9742(0x325)](_0x25d140){const _0x1864b0=_0x3d9742;var _0x202256,_0x57190d;let _0x1f9891=_0x25d140[_0x1864b0(0x408)][_0x1864b0(0x2b1)]();return _0x1f9891[_0x1864b0(0x289)]||_0x1f9891[_0x1864b0(0x1ab)]||_0x1f9891[_0x1864b0(0x363)][_0x1864b0(0x32b)]>0x0||_0x1f9891[_0x1864b0(0x1c9)]?null:{'unitId':((_0x202256=_0x1f9891[_0x1864b0(0x331)])==null?void 0x0:_0x202256['unitId'])??_0x25d140[_0x1864b0(0x1a2)][_0x1864b0(0x1b2)],'subUnitId':((_0x57190d=_0x1f9891['context'])==null?void 0x0:_0x57190d[_0x1864b0(0x2f0)])??_0x25d140['renderContext'][_0x1864b0(0x425)][_0x1864b0(0x3cb)]()};}[_0x3d9742(0x353)](_0x5573b8,_0x3a12cd,_0x5b7d71,_0x22c3f3){const _0x1ee47f=_0x3d9742;let _0x4db2a6=_0x5573b8[_0x1ee47f(0x339)],_0x1b815e=this[_0x1ee47f(0x318)]['createRunner'](_0x5b7d71[_0x1ee47f(0x1b2)]),_0x21f3f3=_0x1b815e(()=>_0x4db2a6[_0x1ee47f(0x3c9)](_0x3a12cd,_0x5b7d71));Promise['resolve'](_0x21f3f3)['then'](_0x3ee7a3=>{const _0x432f2c=_0x1ee47f;_0x3ee7a3&&_0x1b815e(()=>_0x4db2a6[_0x432f2c(0x3c9)](_0x46019e['id'],{'unitId':_0x5b7d71['unitId'],'subUnitId':_0x5b7d71[_0x432f2c(0x2f0)],'scopeId':_0x22c3f3}));});}['_executeCreateAndEdit'](_0x49e176,_0x234d89,_0x2f43be,_0x594445,_0x3ce657){const _0x5e4714=_0x3d9742;let _0x376dc5={'unitId':_0x2f43be[_0x5e4714(0x1b2)],'subUnitId':_0x2f43be[_0x5e4714(0x2f0)]},_0x5eb185=_0x49e176[_0x5e4714(0x339)],_0xb026c=this[_0x5e4714(0x318)][_0x5e4714(0x398)](_0x2f43be['unitId']),_0x56996f=_0xb026c(()=>_0x5eb185[_0x5e4714(0x3c9)](_0x234d89,_0x2f43be));Promise[_0x5e4714(0x42c)](_0x56996f)[_0x5e4714(0x3a8)](_0x87a12e=>{const _0x5ef010=_0x5e4714;if(!_0x87a12e)return;_0xb026c(()=>_0x5eb185['executeCommand'](_0x46019e['id'],{..._0x376dc5,'scopeId':_0x594445})),_0x49e176[_0x5ef010(0x408)][_0x5ef010(0x3d3)](_0x376dc5,[_0x3ce657],_0x3ce657);let _0x1556e8=_0x49e176[_0x5ef010(0x259)];_0x1556e8[_0x5ef010(0x1c0)](),_0x1556e8[_0x5ef010(0x406)]({..._0x376dc5,'shapeId':_0x3ce657,'shapeKey':_0x4a409b(_0x376dc5[_0x5ef010(0x1b2)],_0x3ce657),'visible':!0x0});});}};vn=q([K(0x0,_0x3e2d72),K(0x1,_0x234c21),K(0x2,_0x4c004d),K(0x3,_0x45c8ba(_0x5dbd59))],vn);function yn(_0x4f800b,_0x240a32){const _0x424341=_0x3d9742;var _0x9a6b45,_0x89c5ed;let _0x408989=typeof(_0x240a32==null?void 0x0:_0x240a32[_0x424341(0x1b2)])=='string'?_0x240a32['unitId']:(_0x9a6b45=_0x4f800b[_0x424341(0x421)](_0x42b922)[_0x424341(0x391)](_0x3eda62[_0x424341(0x1d0)]))==null?void 0x0:_0x9a6b45[_0x424341(0x268)]();return _0x408989?((_0x89c5ed=_0x4f800b['get'](_0x3f3aa4)[_0x424341(0x38c)](_0x408989))==null?void 0x0:_0x89c5ed[_0x424341(0x486)](cn))??null:null;}function bn(_0x3d8931){const _0x39818b=_0x3d9742;return _0x3d8931===_0x39818b(0x450)||_0x3d8931===_0x39818b(0x1b0)||_0x3d8931==='arrow-up'||_0x3d8931===_0x39818b(0x45d);}const xn={'min':0x1,'max':0x5,'defaultValue':0x3},Sn={'min':0x0,'max':0x64,'defaultValue':0x64},Cn=[{'kind':_0x3d9742(0x42e),'titleKey':_0x3d9742(0x3e6),'panel':'line'},{'kind':'fontColor','titleKey':_0x3d9742(0x1cc)},{'kind':'typography','titleKey':_0x3d9742(0x34e)},{'kind':'dropdown','titleKey':_0x3d9742(0x46c),'panel':'more','dividerBefore':!0x0}],wn={'addSibling':_0x3d9742(0x2bd),'addChild':_0x3d9742(0x36f),'copy':_0x3d9742(0x3f9),'paste':_0x3d9742(0x3b2),'delete':_0x3d9742(0x30a)},Tn=[{'key':'mind-map','title':_0x3d9742(0x312),'items':[{'value':'mindmap-horizontal','icon':_0x3d9742(0x445),'labelKey':_0x3d9742(0x400)},{'value':_0x3d9742(0x451),'icon':_0x3d9742(0x451),'labelKey':'boards-mind-ui.panel.structureKind.mindmapVertical'}]},{'key':_0x3d9742(0x427),'title':_0x3d9742(0x229),'items':[{'value':_0x3d9742(0x27f),'icon':_0x3d9742(0x27f),'labelKey':_0x3d9742(0x3be)},{'value':_0x3d9742(0x3d7),'icon':_0x3d9742(0x3d7),'labelKey':'boards-mind-ui.panel.structureKind.treeLeft'},{'value':_0x3d9742(0x416),'icon':_0x3d9742(0x416),'labelKey':_0x3d9742(0x2f2)}]},{'key':'timeline','title':_0x3d9742(0x420),'items':[{'value':_0x3d9742(0x3bd),'icon':_0x3d9742(0x3bd),'labelKey':_0x3d9742(0x3e7)},{'value':_0x3d9742(0x446),'icon':_0x3d9742(0x446),'labelKey':_0x3d9742(0x350)}]}],En={'key':_0x3d9742(0x32a),'title':_0x3d9742(0x26d),'items':[{'value':'curve','icon':_0x3d9742(0x2a5),'labelKey':_0x3d9742(0x33f)},{'value':'rounded-orthogonal','icon':'branch-rounded-orthogonal','labelKey':_0x3d9742(0x377)},{'value':'orthogonal','icon':_0x3d9742(0x1a3),'labelKey':_0x3d9742(0x1d5)}]},Dn='board.mind-map.floating-toolbar';function On(_0x3c1853,_0x48a460){const _0x514c55=_0x3d9742;_0x3c1853[_0x514c55(0x3c9)](fn,{'action':_0x48a460});}const kn={'line':_0x4ee2c8,'more':_0x8a4b3a};function An(_0x2b4451){const _0x45db22=_0x3d9742;_0x2b4451[_0x45db22(0x1dd)](),_0x2b4451['preventDefault']();}function jn(_0xedf4ce,_0x2ab1a3=_0x3d9742(0x3f7),_0x4892f8){return _0xeb0434(_0x1b32eb,{'children':_0xeb0434(_0xedf4ce,{'className':_0x2ab1a3,'extend':_0x4892f8})});}function Mn(_0x16d8e3){const _0x579b36=_0x3d9742;var _0x4e25b3,_0x33f24b;let _0x3dcf54=(_0x16d8e3==null?void 0x0:_0x16d8e3['shapeText'])??{},_0x2e0fb0=_0x3dcf54[_0x579b36(0x3a4)]&&typeof _0x3dcf54[_0x579b36(0x3a4)]==_0x579b36(0x2b5)?_0x3dcf54['dataModel']:{},_0x223d7a=(_0x4e25b3=_0x2e0fb0[_0x579b36(0x20f)])==null||(_0x4e25b3=_0x4e25b3[_0x579b36(0x328)])==null?void 0x0:_0x4e25b3[_0x579b36(0x3fb)];return{'color':typeof _0x3dcf54['color']==_0x579b36(0x347)?_0x3dcf54[_0x579b36(0x3ec)]:(_0x223d7a==null||(_0x33f24b=_0x223d7a['cl'])==null?void 0x0:_0x33f24b[_0x579b36(0x2f3)])??_0x193d2c,'fontFamily':typeof _0x3dcf54[_0x579b36(0x3ac)]==_0x579b36(0x347)?_0x3dcf54[_0x579b36(0x3ac)]:(_0x223d7a==null?void 0x0:_0x223d7a['ff'])??_0x53e66a['ff'],'fontSize':typeof _0x3dcf54[_0x579b36(0x3b7)]=='number'?_0x3dcf54[_0x579b36(0x3b7)]:typeof(_0x223d7a==null?void 0x0:_0x223d7a['fs'])==_0x579b36(0x35f)?_0x223d7a['fs']:_0x53e66a['fs'],'horizontalAlign':_0x3dcf54['horizontalAlign']??_0x2e0fb0['ha']??_0x3bb02f[_0x579b36(0x344)],'textFill':_0x3dcf54[_0x579b36(0x476)]&&typeof _0x3dcf54[_0x579b36(0x476)]=='object'?_0x3dcf54[_0x579b36(0x476)]:_0x223d7a==null?void 0x0:_0x223d7a[_0x579b36(0x476)],'verticalAlign':_0x3dcf54[_0x579b36(0x1cb)]??_0x2e0fb0['va']??_0x24f374[_0x579b36(0x33c)]};}function Nn(_0x3bb5dd,_0xe05fe){const _0x5605f2=_0x3d9742;if(!_0xe05fe)return;let _0x2310ba=_n(_0xe05fe);if(!_0x2310ba[_0x5605f2(0x32b)])return;let _0xfbe549=_0x2310ba[_0x5605f2(0x2e1)](_0x24f8d8=>_0x3bb5dd[_0x5605f2(0x399)]({'id':'board.operation.mind-map.keyboard-shortcut','binding':_0x24f8d8,'staticParameters':{'action':_0xe05fe}})??void 0x0)['filter'](_0x52d8b3=>!!_0x52d8b3);return _0xfbe549['length']?[...new Set(_0xfbe549)]['join']('/'):void 0x0;}async function Pn(_0x55ad00,_0x512e3f,_0x99f12b){const _0x1bf3ca=_0x3d9742;return await Promise['resolve'](_0x512e3f(()=>_0x55ad00[_0x1bf3ca(0x3c9)](_0x54ccd8['id'],_0x99f12b)))?(await Promise[_0x1bf3ca(0x42c)](_0x512e3f(()=>_0x55ad00[_0x1bf3ca(0x3c9)](_0x46019e['id'],{'unitId':_0x99f12b[_0x1bf3ca(0x1b2)],'subUnitId':_0x99f12b[_0x1bf3ca(0x2f0)],'scopeId':_0x99f12b[_0x1bf3ca(0x275)]}))),!0x0):!0x1;}async function Fn(_0x41f5fc,_0x3a1e38,_0x382440){const _0x5ccdda=_0x3d9742;return await Promise[_0x5ccdda(0x42c)](_0x3a1e38(()=>_0x41f5fc[_0x5ccdda(0x3c9)](_0x5ee918['id'],_0x382440)))?(await Promise['resolve'](_0x3a1e38(()=>_0x41f5fc[_0x5ccdda(0x3c9)](_0x46019e['id'],{'unitId':_0x382440[_0x5ccdda(0x1b2)],'subUnitId':_0x382440[_0x5ccdda(0x2f0)],'scopeId':_0x382440['scopeId']}))),!0x0):!0x1;}function In({className:_0x2fa321=_0x3d9742(0x3f7)}){const _0x23801d=_0x3d9742;return _0xeb0434(_0x1b32eb,{'children':_0x5d87b6(_0x23801d(0x1d4),{'className':_0x2fa321,'viewBox':_0x23801d(0x319),'fill':_0x23801d(0x348),'aria-hidden':_0x23801d(0x337),'children':[_0xeb0434(_0x23801d(0x22e),{'d':_0x23801d(0x1f0),'stroke':_0x23801d(0x3dd),'strokeWidth':_0x23801d(0x383),'strokeLinecap':_0x23801d(0x356)}),_0xeb0434(_0x23801d(0x22e),{'d':_0x23801d(0x3bc),'stroke':'currentColor','strokeWidth':'1.8','strokeLinecap':_0x23801d(0x356)}),_0xeb0434('path',{'d':_0x23801d(0x254),'stroke':_0x23801d(0x3dd),'strokeWidth':'1.8','strokeLinecap':'round'})]})});}function Ln({icon:_0x26947a}){const _0x44b06c=_0x3d9742;let _0x370b3f=_0x44b06c(0x200),_0x569409={'stroke':_0x44b06c(0x3dd),'strokeWidth':2.6,'strokeLinecap':_0x44b06c(0x356),'strokeLinejoin':'round'},_0x4362e3={'stroke':_0x370b3f,'strokeWidth':3.2,'strokeLinecap':_0x44b06c(0x356)};return _0x5d87b6(_0x44b06c(0x1d4),{'className':_0x44b06c(0x1f1),'viewBox':_0x44b06c(0x42f),'fill':_0x44b06c(0x348),'aria-hidden':'true','children':[_0x26947a===_0x44b06c(0x445)&&_0x5d87b6(_0x253a8e,{'children':[_0xeb0434(_0x44b06c(0x22e),{'d':_0x44b06c(0x47a),..._0x569409}),_0xeb0434('path',{'d':_0x44b06c(0x3bf),..._0x4362e3})]}),_0x26947a==='mindmap-vertical'&&_0x5d87b6(_0x253a8e,{'children':[_0xeb0434(_0x44b06c(0x22e),{'d':_0x44b06c(0x296),..._0x569409}),_0xeb0434(_0x44b06c(0x22e),{'d':_0x44b06c(0x426),'stroke':_0x370b3f,'strokeWidth':2.6,'strokeLinecap':_0x44b06c(0x356),'strokeDasharray':'6\x207'})]}),_0x26947a===_0x44b06c(0x27f)&&_0x5d87b6(_0x253a8e,{'children':[_0xeb0434(_0x44b06c(0x22e),{'d':'M24\x2012v32M24\x2019c0\x204\x203\x206\x207\x206h7M24\x2029c0\x204\x203\x206\x207\x206h7M24\x2039c0\x204\x203\x206\x207\x206h7',..._0x569409}),_0xeb0434('path',{'d':_0x44b06c(0x1b7),..._0x4362e3}),_0xeb0434(_0x44b06c(0x295),{'cx':'24','cy':'12','r':'3','fill':'currentColor'})]}),_0x26947a===_0x44b06c(0x3d7)&&_0x5d87b6(_0x253a8e,{'children':[_0xeb0434(_0x44b06c(0x22e),{'d':_0x44b06c(0x1ad),..._0x569409}),_0xeb0434(_0x44b06c(0x22e),{'d':_0x44b06c(0x40a),..._0x4362e3}),_0xeb0434('circle',{'cx':'56','cy':'12','r':'3','fill':'currentColor'})]}),_0x26947a===_0x44b06c(0x416)&&_0x5d87b6(_0x253a8e,{'children':[_0xeb0434(_0x44b06c(0x22e),{'d':_0x44b06c(0x381),..._0x569409}),_0xeb0434(_0x44b06c(0x22e),{'d':'M12\x2026h11M58\x2036h11M12\x2045h11',..._0x4362e3}),_0xeb0434(_0x44b06c(0x295),{'cx':'42','cy':'12','r':'3','fill':_0x44b06c(0x3dd)})]}),_0x26947a===_0x44b06c(0x3bd)&&_0x5d87b6(_0x253a8e,{'children':[_0xeb0434(_0x44b06c(0x22e),{'d':_0x44b06c(0x2a7),..._0x569409}),_0xeb0434(_0x44b06c(0x22e),{'d':_0x44b06c(0x24e),..._0x4362e3}),_0xeb0434(_0x44b06c(0x295),{'cx':'17','cy':'31','r':'3','fill':_0x44b06c(0x3dd)})]}),_0x26947a===_0x44b06c(0x446)&&_0x5d87b6(_0x253a8e,{'children':[_0xeb0434('path',{'d':_0x44b06c(0x2fa),..._0x569409}),_0xeb0434(_0x44b06c(0x22e),{'d':_0x44b06c(0x1c6),..._0x4362e3}),_0xeb0434('circle',{'cx':'40','cy':'9','r':'3','fill':_0x44b06c(0x3dd)})]}),_0x26947a===_0x44b06c(0x2a5)&&_0xeb0434(_0x253a8e,{'children':_0xeb0434(_0x44b06c(0x22e),{'d':_0x44b06c(0x2c7),..._0x569409})}),_0x26947a===_0x44b06c(0x3c4)&&_0xeb0434(_0x253a8e,{'children':_0xeb0434(_0x44b06c(0x22e),{'d':_0x44b06c(0x3a0),..._0x569409})}),_0x26947a===_0x44b06c(0x1a3)&&_0xeb0434(_0x253a8e,{'children':_0xeb0434(_0x44b06c(0x22e),{'d':_0x44b06c(0x373),..._0x569409})})]});}function Rn(_0xffc724,_0xd26573){const _0x24e25c=_0x3d9742;let _0x44bae2=_0xffc724['textStyle'],_0x525228=_0x2907f4(_0x44bae2),_0x571a7b={..._0x525228[_0x24e25c(0x3ec)]===void 0x0?null:{'color':_0x525228[_0x24e25c(0x3ec)]},..._0x525228[_0x24e25c(0x3ac)]===void 0x0?null:{'fontFamily':_0x525228[_0x24e25c(0x3ac)]},..._0x525228[_0x24e25c(0x3b7)]===void 0x0?null:{'fontSize':_0x525228[_0x24e25c(0x3b7)]},..._0x525228[_0x24e25c(0x2dc)]===void 0x0?null:{'bold':_0x525228[_0x24e25c(0x2dc)]},..._0x525228['italic']===void 0x0?null:{'italic':_0x525228[_0x24e25c(0x47d)]},..._0x525228[_0x24e25c(0x3cd)]===void 0x0?null:{'underline':_0x525228['underline']},..._0x525228[_0x24e25c(0x262)]===void 0x0?null:{'strikethrough':_0x525228[_0x24e25c(0x262)]},..._0x525228['textFill']===void 0x0?null:{'textFill':_0x525228[_0x24e25c(0x476)]}};_0xffc724[_0x24e25c(0x335)]!==void 0x0&&(_0x571a7b['horizontalAlign']=_0xffc724[_0x24e25c(0x335)]),_0xffc724[_0x24e25c(0x1cb)]!==void 0x0&&(_0x571a7b[_0x24e25c(0x1cb)]=_0xffc724[_0x24e25c(0x1cb)]),Object[_0x24e25c(0x45c)](_0x571a7b)[_0x24e25c(0x32b)]>0x0&&_0xd26573({'textStyle':_0x571a7b});}function zn(_0x302491,_0x5dfbd1,_0x362bf8){const _0x25d402=_0x3d9742;let _0xa359b7=_0x302491??{},_0x3f09b6=_0x28febf(_0xa359b7,_0x5dfbd1),_0x32bf35=_0x3f09b6[_0x25d402(0x211)]??_0xa359b7[_0x25d402(0x211)]??{};return{..._0xa359b7,..._0x3f09b6,'shapeText':{..._0x32bf35,..._0x362bf8[_0x25d402(0x3ec)]===void 0x0?null:{'color':_0x362bf8[_0x25d402(0x3ec)]},..._0x362bf8[_0x25d402(0x3b7)]===void 0x0?null:{'fontSize':_0x362bf8[_0x25d402(0x3b7)]},..._0x362bf8['bold']===void 0x0?null:{'bold':_0x362bf8[_0x25d402(0x2dc)]},..._0x362bf8[_0x25d402(0x47d)]===void 0x0?null:{'italic':_0x362bf8[_0x25d402(0x47d)]},..._0x362bf8[_0x25d402(0x3cd)]===void 0x0?null:{'underline':_0x362bf8[_0x25d402(0x3cd)]},..._0x362bf8[_0x25d402(0x262)]===void 0x0?null:{'strikethrough':_0x362bf8[_0x25d402(0x262)]},..._0x362bf8['horizontalAlign']===void 0x0?null:{'horizontalAlign':_0x362bf8['horizontalAlign']},..._0x362bf8['verticalAlign']===void 0x0?null:{'verticalAlign':_0x362bf8[_0x25d402(0x1cb)]},..._0x362bf8[_0x25d402(0x476)]===void 0x0?null:{'textFill':_0x362bf8['textFill']}}};}function Bn(_0x138420,_0x68ca74){const _0x159b7d=_0x3d9742;let _0x41d6fa=_0x138420==null?void 0x0:_0x138420[_0x159b7d(0x3f6)];_0x41d6fa&&_0x68ca74({'lineType':_0x41d6fa[_0x159b7d(0x3b1)]===_0x3f3c37['RoundDot']||_0x41d6fa[_0x159b7d(0x3b1)]===_0x3f3c37[_0x159b7d(0x43e)]?_0x159b7d(0x3b5):_0x41d6fa[_0x159b7d(0x3b1)]===_0x3f3c37[_0x159b7d(0x1aa)]?_0x159b7d(0x468):_0x159b7d(0x46a),...typeof _0x41d6fa[_0x159b7d(0x2cd)]==_0x159b7d(0x35f)?{'strokeWidth':_0x41d6fa['width']}:null,...typeof _0x41d6fa[_0x159b7d(0x3ec)]=='string'?{'stroke':_0x41d6fa[_0x159b7d(0x3ec)]}:null,...typeof _0x41d6fa['opacity']==_0x159b7d(0x35f)?{'opacity':_0x41d6fa[_0x159b7d(0x3f1)]}:null});}function Vn(_0x190e06){const _0x3f31d0=_0x3d9742;return _0x190e06!=null&&_0x190e06['length']?_0x190e06[0x0]<=0x2?_0x3f3c37[_0x3f31d0(0x2fb)]:_0x3f3c37[_0x3f31d0(0x1aa)]:_0x3f3c37[_0x3f31d0(0x232)];}function Hn(_0x4c306d){const _0x4eea09=_0x3d9742;return{'stroke':{'lineStrokeType':_0x262c0c[_0x4eea09(0x387)],'dashType':Vn(_0x4c306d==null?void 0x0:_0x4c306d[_0x4eea09(0x468)]),'color':(_0x4c306d==null?void 0x0:_0x4c306d['stroke'])??_0x4e4ca8,'width':(_0x4c306d==null?void 0x0:_0x4c306d[_0x4eea09(0x345)])??xn[_0x4eea09(0x3b8)],'opacity':(_0x4c306d==null?void 0x0:_0x4c306d[_0x4eea09(0x3f1)])??Sn[_0x4eea09(0x3b8)]/0x64}};}function Un(_0x3805aa){const _0x344966=_0x3d9742;var _0x2c42ae,_0x2babac,_0x2e17b6;let _0x2c37d8=_0x881b68(_0x234c21),_0x3d8944=_0x881b68(_0x4c004d),_0x30d43b=_0x881b68(_0x3df9f7),_0x50741=_0x881b68(_0x5dbd59),[_0x500b8c,_0x5df7b7]=_0x3c130b(null),[_0x5ca39e,_0x29d970]=_0x3c130b((_0x2c42ae=_0x3805aa['popup']['extraProps'])==null?void 0x0:_0x2c42ae['shapeData']),_0x54f79d=_0x3805aa[_0x344966(0x231)][_0x344966(0x1a9)];if(!_0x54f79d)return null;let _0x2e1cec={'unitId':_0x54f79d['unitId'],'subUnitId':_0x54f79d[_0x344966(0x2f0)]},_0x48f2e5=_0x59cc08=>{const _0x3f2306=_0x344966;_0x2c37d8[_0x3f2306(0x3c9)](_0x17468f['id'],{..._0x2e1cec,'nodeId':_0x54f79d[_0x3f2306(0x2c6)],..._0x59cc08});},_0x2f7bc1=(_0x320287,_0x5d90a4)=>{const _0x3ca489=_0x344966;let _0x23f064=_0x5d90a4??{};_0x29d970(_0x28d4ea=>({..._0x28d4ea??{},..._0x23f064})),_0x48f2e5({..._0x23f064[_0x3ca489(0x2a6)]===void 0x0?null:{'fill':_0x23f064[_0x3ca489(0x2a6)]},..._0x23f064[_0x3ca489(0x3f6)]===void 0x0?null:{'stroke':_0x23f064['stroke']}});},_0x4c2d4a=_0x2c9e9f=>{const _0x1cf6c0=_0x344966;_0x2c37d8[_0x1cf6c0(0x3c9)](_0x55b725['id'],{..._0x2e1cec,'nodeId':_0x54f79d[_0x1cf6c0(0x2c6)],'style':_0x2c9e9f});},_0x4c2cbd=Hn(_0x54f79d[_0x344966(0x44f)]),_0x25e155=_0x337c50=>Nn(_0x3d8944,_0x337c50),_0xcecd8d=_0x559086=>{On(_0x2c37d8,_0x559086);},_0x56b98e=(_0x5ca39e==null?void 0x0:_0x5ca39e[_0x344966(0x211)])??{},_0x34f935=Mn(_0x5ca39e),_0x303618=_0x2be217=>{Rn(_0x2be217,_0x5bfda9=>{_0x29d970(_0x15146e=>zn(_0x15146e,_0x2be217,_0x5bfda9['textStyle'])),_0x48f2e5(_0x5bfda9);});},_0x407bbe=[{'label':_0x30d43b['t'](_0x344966(0x2f1)),'value':_0x3bb02f[_0x344966(0x344)],'icon':_0xeb0434(_0x525016,{})},{'label':_0x30d43b['t']('boards-mind-ui.alignCenter'),'value':_0x3bb02f[_0x344966(0x24b)],'icon':_0xeb0434(_0x7ae36a,{})},{'label':_0x30d43b['t'](_0x344966(0x32e)),'value':_0x3bb02f['RIGHT'],'icon':_0xeb0434(_0x4d854d,{})},{'label':_0x30d43b['t'](_0x344966(0x29e)),'value':_0x3bb02f['JUSTIFIED'],'icon':_0xeb0434(_0x29d7e2,{})}],_0x3a4bcc=[{'label':_0x30d43b['t'](_0x344966(0x26a)),'value':_0x24f374[_0x344966(0x3dc)],'icon':_0xeb0434(_0x2cd78f,{})},{'label':_0x30d43b['t']('boards-mind-ui.alignMiddle'),'value':_0x24f374[_0x344966(0x33c)],'icon':_0xeb0434(_0x2b9091,{})},{'label':_0x30d43b['t']('boards-mind-ui.alignBottom'),'value':_0x24f374[_0x344966(0x436)],'icon':_0xeb0434(_0x5aca85,{})}],_0x2985dc=()=>{_0xcecd8d('add-sibling-or-child');},_0x451209=()=>{const _0x239842=_0x344966;_0xcecd8d(_0x239842(0x36f));},_0x5d1f44=()=>{const _0x2d8bb8=_0x344966;_0xcecd8d(_0x2d8bb8(0x3f9));},_0x30eca4=()=>{const _0xf08f32=_0x344966;_0xcecd8d(_0xf08f32(0x3b2));},_0x245799=()=>{const _0x32ba02=_0x344966;_0xcecd8d(_0x32ba02(0x30a));},_0x5aad25=((_0x2babac=_0x54f79d[_0x344966(0x3e2)])==null?void 0x0:_0x2babac[_0x344966(0x47f)])??_0x43d9d8[_0x344966(0x47f)],_0x14436d=_0x490e3e(_0x5aad25,((_0x2e17b6=_0x54f79d[_0x344966(0x3e2)])==null?void 0x0:_0x2e17b6[_0x344966(0x2de)])??_0x43d9d8[_0x344966(0x2de)]),_0x1f5873=_0x58e56d=>{const _0x13b879=_0x344966;let _0x2e5229=_0x490e3e(_0x58e56d,_0x14436d);Pn(_0x2c37d8,_0x50741[_0x13b879(0x398)](_0x54f79d[_0x13b879(0x1b2)]),{..._0x2e1cec,'scopeId':_0x54f79d[_0x13b879(0x275)],'structureKind':_0x58e56d,..._0x2e5229===_0x14436d?null:{'branchLineType':_0x2e5229}}),_0x5df7b7(null);},_0x5bc7e1=_0x4c5cdd=>{const _0x17ed25=_0x344966;Fn(_0x2c37d8,_0x50741[_0x17ed25(0x398)](_0x54f79d[_0x17ed25(0x1b2)]),{..._0x2e1cec,'scopeId':_0x54f79d[_0x17ed25(0x275)],'branchLineType':_0x4c5cdd}),_0x5df7b7(null);},_0x438c5f=(_0x5ad09b,_0x375726,_0x1b0aa5,_0x4bb44b=!0x1)=>_0xeb0434(_0x344966(0x199),{'type':_0x344966(0x199),'aria-label':_0x30d43b['t'](_0x5ad09b[_0x344966(0x371)]),'disabled':_0x4bb44b,'className':_0x53cc5f(_0x344966(0x488),_0x375726&&_0x344966(0x41f),_0x4bb44b&&'univer-cursor-not-allowed\x20univer-text-gray-300\x20hover:univer-bg-transparent'),'onMouseDown':An,'onPointerDown':An,'onClick':_0x13af8e=>{const _0x18b45d=_0x344966;_0x13af8e[_0x18b45d(0x1dd)](),!_0x4bb44b&&_0x1b0aa5();},'children':_0xeb0434(Ln,{'icon':_0x5ad09b[_0x344966(0x24a)]})},_0x5ad09b[_0x344966(0x2b8)]),_0x21424e=()=>_0x5d87b6(_0x344966(0x272),{'className':'univer-w-[202px]\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20univer-py-4\x20univer-shadow-lg','onMouseDown':_0x3bfe08=>_0x3bfe08[_0x344966(0x1dd)](),'onPointerDown':_0x58dc23=>_0x58dc23[_0x344966(0x1dd)](),'children':[Tn[_0x344966(0x2e1)](_0x70642f=>_0x5d87b6(_0x344966(0x272),{'className':_0x344966(0x466),'children':[_0xeb0434(_0x344966(0x272),{'className':_0x344966(0x384),'children':_0x70642f[_0x344966(0x41c)]}),_0xeb0434('div',{'className':'univer-grid\x20univer-h-14\x20univer-overflow-hidden\x20univer-rounded-xl\x20univer-bg-gray-100\x20univer-p-1','style':{'gridTemplateColumns':'repeat('+_0x70642f['items'][_0x344966(0x32b)]+_0x344966(0x2eb)},'children':_0x70642f['items']['map'](_0x46da80=>_0x438c5f(_0x46da80,_0x46da80[_0x344966(0x2b8)]===_0x5aad25,()=>_0x1f5873(_0x46da80['value'])))})]},_0x70642f[_0x344966(0x1c3)])),_0xeb0434(_0x56098f,{}),_0x5d87b6(_0x344966(0x272),{'className':_0x344966(0x2dd),'children':[_0xeb0434(_0x344966(0x272),{'className':_0x344966(0x384),'children':En['title']}),_0xeb0434(_0x344966(0x272),{'className':_0x344966(0x228),'style':{'gridTemplateColumns':_0x344966(0x40f)+En[_0x344966(0x24c)]['length']+',\x20minmax(0,\x201fr))'},'children':En[_0x344966(0x24c)][_0x344966(0x2e1)](_0x96185d=>_0x438c5f(_0x96185d,_0x96185d[_0x344966(0x2b8)]===_0x14436d,()=>_0x5bc7e1(_0x96185d[_0x344966(0x2b8)]),_0x96185d[_0x344966(0x2b8)]===_0x344966(0x459)&&!_0x2045a1(_0x5aad25)))})]})]}),_0x5f1ad5=_0x4229cb=>{const _0xda8d2d=_0x344966;switch(_0x4229cb){case'line':return _0xeb0434(_0x6e631a,{'title':_0x30d43b['t']('boards-mind-ui.toolbar.panel.line'),'shapeData':_0x4c2cbd,'modeOptions':[_0xda8d2d(0x46a),'dash','dot'],'showDashDropdown':!0x1,'widthRange':{'min':xn[_0xda8d2d(0x250)],'max':xn[_0xda8d2d(0x455)],'step':0x1},'onUpdateShapeData':(_0x820e0c,_0x367d6d)=>{Bn(_0x367d6d,_0x4c2d4a);}});case _0xda8d2d(0x365):return _0xeb0434(_0x49e8ea,{'title':_0x30d43b['t']('boards-mind-ui.toolbar.panel.more'),'minWidthClassName':_0xda8d2d(0x2be),'children':_0x5d87b6('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1','children':[_0xeb0434(_0x437b3f,{'label':_0x30d43b['t']('boards-mind-ui.toolbar.action.addSibling'),'shortcut':_0x25e155(wn['addSibling']),'onClick':_0x2985dc}),_0xeb0434(_0x437b3f,{'label':_0x30d43b['t'](_0xda8d2d(0x2a8)),'shortcut':_0x25e155(wn[_0xda8d2d(0x2b7)]),'onClick':_0x451209}),_0xeb0434(_0x56098f,{}),_0xeb0434(_0x437b3f,{'label':_0x30d43b['t'](_0xda8d2d(0x1a8)),'shortcut':_0x25e155(wn['copy']),'onClick':_0x5d1f44}),_0xeb0434(_0x437b3f,{'label':_0x30d43b['t'](_0xda8d2d(0x226)),'shortcut':_0x25e155(wn[_0xda8d2d(0x3b2)]),'onClick':_0x30eca4}),_0xeb0434(_0x437b3f,{'label':_0x30d43b['t'](_0xda8d2d(0x3d8)),'shortcut':_0x25e155(wn[_0xda8d2d(0x30a)]),'onClick':_0x245799})]})});default:return null;}},_0x1915dd=Cn[_0x344966(0x1e2)](_0xe4e5a3=>{const _0x44120d=_0x344966;let _0xc6134b=[];if(_0xe4e5a3[_0x44120d(0x3a5)]&&_0xc6134b[_0x44120d(0x240)](_0xeb0434(_0x56098f,{'orientation':_0x44120d(0x2f6)},_0x44120d(0x396)+_0xe4e5a3['kind'])),_0xe4e5a3[_0x44120d(0x349)]==='typography')return _0xc6134b[_0x44120d(0x240)](_0xeb0434(_0x3ae88b,{'title':_0x30d43b['t'](_0x44120d(0x43d)),'fontFamily':_0x34f935[_0x44120d(0x3ac)],'textStyle':{'isBold':_0x56b98e[_0x44120d(0x2dc)]===!0x0,'isItalic':_0x56b98e['italic']===!0x0,'isUnderline':_0x56b98e[_0x44120d(0x3cd)]===!0x0,'isStrike':_0x56b98e['strikethrough']===!0x0},'horizontalAlign':_0x34f935['horizontalAlign'],'verticalAlign':_0x34f935['verticalAlign'],'horizontalAlignOptions':_0x407bbe,'verticalAlignOptions':_0x3a4bcc,'onUpdateText':_0x303618},_0xe4e5a3[_0x44120d(0x349)])),_0xc6134b;if(_0xe4e5a3[_0x44120d(0x349)]==='fontColor'){let _0x1b9100={'fs':_0x34f935[_0x44120d(0x3b7)],'cl':{'rgb':_0x34f935[_0x44120d(0x3ec)]},..._0x34f935[_0x44120d(0x476)]===void 0x0?null:{'textFill':_0x34f935[_0x44120d(0x476)]}};return _0xc6134b[_0x44120d(0x240)](_0xeb0434(_0x497f75,{'title':_0x30d43b['t'](_0x44120d(0x2d4)),'textStyle':_0x1b9100,'fallbackColor':_0x34f935[_0x44120d(0x3ec)],'onChange':_0x3c4408=>_0x303618({'textStyle':_0x3c4408})},_0xe4e5a3[_0x44120d(0x349)])),_0xc6134b[_0x44120d(0x240)](_0xeb0434(_0x1c4a53,{'value':String(_0x34f935['fontSize']),'onChange':_0x28711c=>{_0x303618({'textStyle':{'fs':_0x28711c}});}},_0x44120d(0x205))),_0xc6134b;}return _0xc6134b[_0x44120d(0x240)](_0xeb0434(_0x105add,{'open':_0x500b8c===_0xe4e5a3[_0x44120d(0x320)],'overlay':_0x5f1ad5(_0xe4e5a3[_0x44120d(0x320)]),'onOpenChange':_0x19455e=>_0x5df7b7(_0x19455e?_0xe4e5a3[_0x44120d(0x320)]:null),'children':_0xeb0434('span',{'children':_0xeb0434(_0x2be19c,{'title':_0x30d43b['t'](_0xe4e5a3['titleKey']),'active':_0x500b8c===_0xe4e5a3[_0x44120d(0x320)],'icon':jn(kn[_0xe4e5a3['panel']]),'sizeClassName':'univer-h-7\x20univer-min-w-9\x20univer-w-auto\x20univer-gap-1\x20univer-px-1.5','onMouseDown':An,'onPointerDown':An})})},_0xe4e5a3['panel'])),_0xc6134b;});return _0x5d87b6(_0x2f2113,{'maxWidthClassName':'univer-max-w-[min(760px,calc(100vw-32px))]','onMouseDown':_0x11a156=>_0x11a156[_0x344966(0x1dd)](),'children':[[..._0x54f79d[_0x344966(0x456)]?[_0xeb0434(_0x105add,{'open':_0x500b8c===_0x344966(0x3e2),'overlay':_0x21424e(),'onOpenChange':_0x52676c=>_0x5df7b7(_0x52676c?_0x344966(0x3e2):null),'children':_0xeb0434(_0x344966(0x3a2),{'children':_0xeb0434(_0x2be19c,{'title':_0x30d43b['t']('boards-mind-ui.toolbar.action.layout'),'active':_0x500b8c==='layout','icon':_0xeb0434(In,{}),'sizeClassName':'univer-h-7\x20univer-min-w-9\x20univer-w-auto\x20univer-gap-1\x20univer-px-1.5','onMouseDown':An,'onPointerDown':An})})},_0x344966(0x453)),_0xeb0434(_0x56098f,{'orientation':_0x344966(0x2f6)},_0x344966(0x388))]:[],_0xeb0434(_0x5558af,{'title':_0x30d43b['t']('boards-mind-ui.toolbar.action.fill'),'shapeData':_0x5ca39e??{},'onUpdateShapeData':_0x2f7bc1},_0x344966(0x21d)),_0xeb0434(_0xc59a04,{'title':_0x30d43b['t']('boards-mind-ui.toolbar.action.stroke'),'shapeData':_0x5ca39e??{},'onUpdateShapeData':_0x2f7bc1},_0x344966(0x43f)),_0xeb0434(_0x56098f,{'orientation':_0x344966(0x2f6)},_0x344966(0x35c))],_0x1915dd]});}function Wn(_0x5330c5){let {left:_0x5abf3b,top:_0x141cf2,width:_0xc8587b,height:_0x1493ac}=_0x5330c5;return{'left':_0x5abf3b,'right':_0x5abf3b+_0xc8587b,'top':_0x141cf2-0x38,'bottom':_0x141cf2+_0x1493ac};}function _0x19c3(_0x5f3150,_0xf6f4be){_0x5f3150=_0x5f3150-0x198;const _0x2b1827=_0x2b18();let _0x19c393=_0x2b1827[_0x5f3150];return _0x19c393;}let Gn=class extends _0xd55cd7{constructor(_0x2cbd84,_0xa9a5ce,_0x136d43,_0x24120d,_0x4faf94,_0x5031f3){const _0xdda459=_0x3d9742;super(),this[_0xdda459(0x457)]=_0x2cbd84,this[_0xdda459(0x241)]=_0xa9a5ce,this[_0xdda459(0x2c5)]=_0x136d43,this[_0xdda459(0x28d)]=_0x24120d,this[_0xdda459(0x471)]=_0x4faf94,this[_0xdda459(0x23a)]=_0x5031f3,G(this,_0xdda459(0x20e),null),G(this,_0xdda459(0x37c),null),this[_0xdda459(0x220)]();}[_0x3d9742(0x2d2)](){const _0x97fecd=_0x3d9742;this[_0x97fecd(0x462)](),super[_0x97fecd(0x2d2)]();}[_0x3d9742(0x220)](){const _0x2600ee=_0x3d9742;let _0x438df=this['_renderContext']['scene'][_0x2600ee(0x403)]();this[_0x2600ee(0x2bf)](_0xdc7696(_0x438df[_0x2600ee(0x37e)]['pipe'](_0x4021f1(this[_0x2600ee(0x24f)]))['subscribe'](()=>this[_0x2600ee(0x304)]()))),this['disposeWithMe'](_0xdc7696(_0x438df['clearControl$'][_0x2600ee(0x3db)](_0x4021f1(this['dispose$']))[_0x2600ee(0x36c)](()=>this[_0x2600ee(0x3fa)]()))),this['disposeWithMe'](_0xdc7696(_0x438df[_0x2600ee(0x43b)][_0x2600ee(0x3db)](_0x4021f1(this[_0x2600ee(0x24f)]))[_0x2600ee(0x36c)](()=>this[_0x2600ee(0x462)]()))),this['disposeWithMe'](_0xdc7696(_0x438df[_0x2600ee(0x31a)]['pipe'](_0x4021f1(this['dispose$']))[_0x2600ee(0x36c)](()=>setTimeout(()=>this[_0x2600ee(0x304)](),0x0)))),this[_0x2600ee(0x2bf)](_0xdc7696(this[_0x2600ee(0x28d)]['state$'][_0x2600ee(0x3db)](_0x4021f1(this[_0x2600ee(0x24f)]))[_0x2600ee(0x36c)](()=>setTimeout(()=>this[_0x2600ee(0x304)](),0x0)))),this[_0x2600ee(0x2bf)](_0xdc7696(this[_0x2600ee(0x23a)]['interactionSurfaceActive$'][_0x2600ee(0x3db)](_0x4021f1(this[_0x2600ee(0x24f)]))[_0x2600ee(0x36c)](_0x52689e=>{const _0x5f55b0=_0x2600ee;if(_0x52689e){this[_0x5f55b0(0x462)]();return;}setTimeout(()=>this[_0x5f55b0(0x304)](),0x0);}))),this[_0x2600ee(0x2bf)](_0xdc7696(this[_0x2600ee(0x471)][_0x2600ee(0x376)][_0x2600ee(0x3db)](_0x4021f1(this[_0x2600ee(0x24f)]))[_0x2600ee(0x36c)](_0x1e0b81=>{const _0x5c157f=_0x2600ee;if((_0x1e0b81==null?void 0x0:_0x1e0b81['unitId'])===this['_renderContext']['unitId']){if(_0x1e0b81[_0x5c157f(0x1b3)]){this[_0x5c157f(0x462)]();return;}setTimeout(()=>this[_0x5c157f(0x304)](),0x0);}})));}[_0x3d9742(0x462)](){const _0x5b4e4d=_0x3d9742;var _0x16c611;(_0x16c611=this[_0x5b4e4d(0x20e)])==null||_0x16c611['dispose'](),this[_0x5b4e4d(0x20e)]=null,this['_popupSelectionKey']=null;}[_0x3d9742(0x3fa)](){setTimeout(()=>{const _0x51ba7c=_0x19c3;this[_0x51ba7c(0x3b6)]()||this[_0x51ba7c(0x462)]();},0x0);}[_0x3d9742(0x3b6)](){const _0x51b2ef=_0x3d9742;let _0x394431=this[_0x51b2ef(0x28d)][_0x51b2ef(0x2b1)]();return!!_0x394431[_0x51b2ef(0x331)]&&_0x394431['selectedIds'][_0x51b2ef(0x32b)]>0x0&&this[_0x51b2ef(0x37c)]===this['_buildPopupSelectionKey'](_0x394431[_0x51b2ef(0x331)]['unitId'],_0x394431['context'][_0x51b2ef(0x2f0)],_0x394431[_0x51b2ef(0x363)]);}['_buildPopupSelectionKey'](_0x5dc147,_0x5e42aa,_0x3be47b){const _0x231fe4=_0x3d9742;return _0x5dc147+':'+_0x5e42aa+':'+_0x3be47b[_0x231fe4(0x297)](',');}[_0x3d9742(0x271)](_0x28497c,_0x39dbf8,_0x43cc11,_0x1b0532){const _0x2b0c92=_0x3d9742;let _0x9c15dc=this[_0x2b0c92(0x2c5)][_0x2b0c92(0x321)](_0x28497c,_0x39dbf8),_0x2844b3=Object[_0x2b0c92(0x2c9)](_0x9c15dc)[_0x2b0c92(0x31d)](_0x33e267=>{const _0x506608=_0x2b0c92;let _0x35a897=_0x8df2eb(_0x33e267[_0x506608(0x1f2)]);return(_0x35a897==null?void 0x0:_0x35a897[_0x506608(0x405)])===_0x43cc11&&_0x35a897[_0x506608(0x2e3)]===_0x1b0532;});if(!(!_0x2844b3||!(_0x2b0c92(0x428)in _0x2844b3['element'])))return _0x2844b3[_0x2b0c92(0x1f2)][_0x2b0c92(0x428)][_0x2b0c92(0x25a)];}[_0x3d9742(0x304)](){const _0x4302d=_0x3d9742;var _0x25b7c8,_0x2d195e,_0x1a880b;if(this['_interactionSurfaceService']['isInteractionSurfaceActive']){this[_0x4302d(0x462)]();return;}let _0xed3499=this[_0x4302d(0x471)][_0x4302d(0x42a)]();if((_0xed3499==null?void 0x0:_0xed3499[_0x4302d(0x1b3)])===!0x0&&_0xed3499[_0x4302d(0x1b2)]===this[_0x4302d(0x457)][_0x4302d(0x1b2)]){this[_0x4302d(0x462)]();return;}let _0x51a0d6=this['_elementStateService']['getSnapshot']();if(_0x51a0d6[_0x4302d(0x1ab)]){this[_0x4302d(0x462)]();return;}if(_0x471b70({'context':_0x51a0d6['context'],'selectedIds':_0x51a0d6['selectedIds'],'getElementById':(_0x28e976,_0x45e578,_0x47cef0)=>this[_0x4302d(0x2c5)][_0x4302d(0x386)](_0x28e976,_0x45e578,_0x47cef0)})[_0x4302d(0x42d)]!==_0x4302d(0x309)){this[_0x4302d(0x462)]();return;}let _0xb37b03=this['_renderContext'][_0x4302d(0x214)][_0x4302d(0x403)]()['getSelectedObjectMap'](),_0x46180a=Array[_0x4302d(0x3a1)](_0xb37b03[_0x4302d(0x2c9)]())[_0x4302d(0x2e1)](_0x58c160=>this[_0x4302d(0x448)](_0x58c160))[_0x4302d(0x454)](_0x1c2d08=>!!_0x1c2d08)[_0x4302d(0x454)](_0x136ff6=>!!_0x2329f8(_0x136ff6[_0x4302d(0x209)]['element'])),_0x517cbd=_0x46180a[_0x4302d(0x31d)](_0x13b8f3=>_0x13b8f3['elementData'][_0x4302d(0x2c6)]===_0x51a0d6['focusedId'])??_0x46180a[0x0]??this[_0x4302d(0x481)]();if(!_0x517cbd){this[_0x4302d(0x462)]();return;}let _0x4da1b8=_0x2329f8(_0x517cbd[_0x4302d(0x209)][_0x4302d(0x1f2)]);if(!_0x4da1b8){this['_clearPopup']();return;}let _0x24ed73=(_0x25b7c8=this[_0x4302d(0x2c5)][_0x4302d(0x321)](_0x517cbd['elementData'][_0x4302d(0x1b2)],_0x517cbd[_0x4302d(0x209)][_0x4302d(0x2f0)])[_0x4da1b8[_0x4302d(0x405)]])==null?void 0x0:_0x25b7c8[_0x4302d(0x1f2)],_0x47bad9=_0x24b789(_0x24ed73),_0x41c456=_0x24ed73==null||(_0x2d195e=_0x24ed73[_0x4302d(0x206)])==null||(_0x2d195e=_0x2d195e[_0x4302d(0x3f2)])==null||(_0x2d195e=_0x2d195e[_0x4302d(0x3e2)])==null?void 0x0:_0x2d195e[_0x4302d(0x47f)],_0x4bb60d=((_0x47bad9==null?void 0x0:_0x47bad9[_0x4302d(0x3e2)][_0x4302d(0x47f)])??_0x41c456)==='mindmap-vertical'&&(_0x4da1b8['parentNodeId']===null||_0x4da1b8['side']===_0x4302d(0x362)),_0x3fa2bf=_0x4da1b8[_0x4302d(0x390)]!==null&&_0x4da1b8[_0x4302d(0x299)]!==_0x4302d(0x362)&&_0x4da1b8[_0x4302d(0x299)]!==_0x4302d(0x46d),_0x176380=_0x4bb60d||_0x3fa2bf,_0x49b836=((_0x1a880b=_0x51a0d6['context'])==null?void 0x0:_0x1a880b[_0x4302d(0x1b2)])===_0x517cbd[_0x4302d(0x209)]['unitId']&&_0x51a0d6[_0x4302d(0x331)][_0x4302d(0x2f0)]===_0x517cbd[_0x4302d(0x209)]['subUnitId']&&_0x51a0d6[_0x4302d(0x363)][_0x4302d(0x32b)]?_0x51a0d6[_0x4302d(0x363)]:[_0x517cbd[_0x4302d(0x209)][_0x4302d(0x2c6)]],_0xcecce0=this[_0x4302d(0x3c7)](_0x517cbd[_0x4302d(0x209)]['unitId'],_0x517cbd[_0x4302d(0x209)][_0x4302d(0x2f0)],_0x49b836);this['_popupDisposable']&&this[_0x4302d(0x37c)]===_0xcecce0||(this[_0x4302d(0x462)](),this[_0x4302d(0x20e)]=this[_0x4302d(0x2bf)](this['_boardCanvasPopManagerService']['attachPopupToObject'](_0x517cbd[_0x4302d(0x209)][_0x4302d(0x1b2)],_0x517cbd[_0x4302d(0x209)][_0x4302d(0x2f0)],_0x517cbd[_0x4302d(0x2b5)],{'componentKey':Dn,'direction':_0x4302d(0x2c2),'offset':[0x0,0x8],..._0x176380?{'anchorBoundResolver':Wn}:null,'extraProps':{'unitId':_0x517cbd['elementData'][_0x4302d(0x1b2)],'subUnitId':_0x517cbd[_0x4302d(0x209)][_0x4302d(0x2f0)],'elementId':_0x517cbd[_0x4302d(0x209)][_0x4302d(0x2c6)],'scopeId':_0x4da1b8[_0x4302d(0x405)],'isRootNode':_0x4da1b8['parentNodeId']===null,'left':_0x517cbd[_0x4302d(0x209)][_0x4302d(0x1f2)][_0x4302d(0x1ba)]['left']??0x0,'top':_0x517cbd['elementData'][_0x4302d(0x1f2)][_0x4302d(0x1ba)]['top']??0x0,'shapeData':_0x517cbd[_0x4302d(0x209)][_0x4302d(0x1f2)]['type']===_0x12a1e2[_0x4302d(0x3e3)]?_0x517cbd[_0x4302d(0x209)][_0x4302d(0x1f2)][_0x4302d(0x449)]:void 0x0,'layout':_0x47bad9==null?void 0x0:_0x47bad9['layout'],'incomingConnectorStyle':this[_0x4302d(0x271)](_0x517cbd['elementData'][_0x4302d(0x1b2)],_0x517cbd[_0x4302d(0x209)][_0x4302d(0x2f0)],_0x4da1b8['structureScopeId'],_0x517cbd['elementData'][_0x4302d(0x2c6)])}})),this[_0x4302d(0x37c)]=_0xcecce0);}['_resolveSelectedMindMapEntryFromState'](){const _0x106d1e=_0x3d9742;var _0x12a866;let _0x3a4f26=this[_0x106d1e(0x28d)][_0x106d1e(0x2b1)](),_0x17a1f7=_0x3a4f26['context'],_0x150df6=_0x3a4f26['focusedId']??_0x3a4f26[_0x106d1e(0x363)][0x0];if(!_0x17a1f7||!_0x150df6)return null;let _0x134385=this[_0x106d1e(0x2c5)]['getElementById'](_0x17a1f7[_0x106d1e(0x1b2)],_0x17a1f7[_0x106d1e(0x2f0)],_0x150df6);if(!_0x134385||!_0x2329f8(_0x134385[_0x106d1e(0x1f2)]))return null;let _0x4b1c71=_0x4a409b(_0x17a1f7[_0x106d1e(0x1b2)],_0x150df6),_0x5e4e5c=this[_0x106d1e(0x457)]['scene'],_0x11f692=((_0x12a866=_0x5e4e5c['getObjectIncludeInGroup'])==null?void 0x0:_0x12a866[_0x106d1e(0x378)](_0x5e4e5c,_0x4b1c71))??this['_renderContext'][_0x106d1e(0x214)][_0x106d1e(0x423)](_0x4b1c71);return _0x11f692?{'object':_0x11f692,'elementData':_0x134385}:null;}['_resolveSelectedEntry'](_0xa7199b){const _0x93d6aa=_0x3d9742;var _0x16026f;if(!_0xa7199b)return null;let _0x4f9ad3=_0xa94e38(_0xa7199b[_0x93d6aa(0x41a)]);if(!_0x4f9ad3)return null;let _0xdc68ab=this[_0x93d6aa(0x28d)][_0x93d6aa(0x2b1)](),_0x2097c6=((_0x16026f=_0xdc68ab[_0x93d6aa(0x331)])==null?void 0x0:_0x16026f['unitId'])===_0x4f9ad3[_0x93d6aa(0x1b2)]?_0xdc68ab[_0x93d6aa(0x331)][_0x93d6aa(0x2f0)]:void 0x0;if(!_0x2097c6)return null;let _0x459f7f=this[_0x93d6aa(0x2c5)]['getElementById'](_0x4f9ad3[_0x93d6aa(0x1b2)],_0x2097c6,_0x4f9ad3[_0x93d6aa(0x2c6)]);return _0x459f7f?{'object':_0xa7199b,'elementData':_0x459f7f}:null;}};Gn=q([K(0x1,_0x45c8ba(_0x42c832)),K(0x2,_0x45c8ba(_0x6adb2b)),K(0x3,_0x45c8ba(_0x1bd113)),K(0x4,_0x45c8ba(_0x36fa6f)),K(0x5,_0x45c8ba(_0x501d6a))],Gn);const Kn=_0x3d9742(0x2e4),qn=_0x480444['preview'];function Jn(_0x1bc408,_0x2a6856){const _0x2fe823=_0x3d9742;return(_0x1bc408??[])[_0x2fe823(0x29c)]((_0x203687,_0x3adfc1)=>(_0x203687[_0x3adfc1[_0x2fe823(0x299)]??_0x2a6856]['push'](_0x3adfc1),_0x203687),{'left':[],'right':[],'top':[],'bottom':[]});}function Yn(_0x2e294f){const _0x39b8aa=_0x3d9742;return _0x2e294f===_0x39b8aa(0x3d7)||_0x2e294f==='tree-right'||_0x2e294f===_0x39b8aa(0x416);}function Xn(_0xa03050){const _0x2cb0ae=_0x3d9742;return _0xa03050==='timeline-horizontal'||_0xa03050===_0x2cb0ae(0x446);}function Zn(_0x24fd5b,_0x100c22,_0x4d6360){const _0x23c12d=_0x3d9742;return _0x4d6360==='tree-left'?_0x23c12d(0x452):_0x4d6360==='tree-right'?_0x23c12d(0x3f8):_0x24fd5b[_0x23c12d(0x299)]===_0x23c12d(0x452)||_0x24fd5b[_0x23c12d(0x299)]===_0x23c12d(0x3f8)?_0x24fd5b['side']:_0x100c22%0x2==0x0?'left':_0x23c12d(0x3f8);}function Qn(_0x2bdd41,_0x2a9457){const _0x1e6f1c=_0x3d9742;return(_0x2a9457==null?void 0x0:_0x2a9457[_0x1e6f1c(0x380)][_0x1e6f1c(0x2fc)])??_0x2bdd41??[];}var $n=class extends _0x3960a2{constructor(_0xce9563=Kn,_0x4d3b27){const _0x578f3a=_0x3d9742;super(_0xce9563),G(this,'_state',{'point':null,'children':[]}),this[_0x578f3a(0x1b4)]=!0x1,this['zIndex']=_0x588fe7[_0x578f3a(0x485)],this[_0x578f3a(0x25f)](_0x4d3b27);}[_0x3d9742(0x25f)](_0x4a5c95){const _0x19cad5=_0x3d9742;this[_0x19cad5(0x3d6)]={...this[_0x19cad5(0x3d6)],..._0x4a5c95},this[_0x19cad5(0x3d6)]['point']?this[_0x19cad5(0x1ac)]():this[_0x19cad5(0x308)](),this['makeDirty'](!0x0);}[_0x3d9742(0x215)](_0x5372dc){return!0x1;}[_0x3d9742(0x1c2)](_0x45ef58,_0x299252){const _0x1d1edf=_0x3d9742;let _0x24ec51=this[_0x1d1edf(0x3d6)][_0x1d1edf(0x3a7)];if(!_0x24ec51||!this[_0x1d1edf(0x1b3)])return this['makeDirty'](!0x1),this;let _0x2d0b6e=Number['isFinite'](this['_state'][_0x1d1edf(0x258)])&&(this[_0x1d1edf(0x3d6)][_0x1d1edf(0x258)]??0x0)>0x0?this[_0x1d1edf(0x3d6)][_0x1d1edf(0x258)]:0x1,_0x1da64d=_0x136bc3[_0x1d1edf(0x364)],_0x10b69e=_0x136bc3[_0x1d1edf(0x2ef)],_0x3a42cd=_0x136bc3[_0x1d1edf(0x435)],_0x2f9d3f=_0x136bc3[_0x1d1edf(0x3c6)],_0x58d784=_0x43d9d8[_0x1d1edf(0x243)],_0x4b84c4=_0x43d9d8[_0x1d1edf(0x19e)],_0x387f88=this[_0x1d1edf(0x3d6)][_0x1d1edf(0x47f)]===_0x1d1edf(0x451),_0x2444a1=Jn(this[_0x1d1edf(0x3d6)]['children'],_0x387f88?_0x1d1edf(0x46d):_0x1d1edf(0x3f8)),_0x4e1354=_0x24ec51['x']-_0x1da64d/0x2,_0x32bb02=_0x24ec51['y']-_0x10b69e/0x2;if(_0x45ef58[_0x1d1edf(0x39a)](),_0x45ef58['globalAlpha']=Y[_0x1d1edf(0x3e9)],_0x45ef58[_0x1d1edf(0x2fe)]=Y['lineWidthScreen']/_0x2d0b6e,_0x45ef58[_0x1d1edf(0x27e)]=Y[_0x1d1edf(0x1d2)],Xn(this[_0x1d1edf(0x3d6)]['structureKind'])){let _0x491bdb=Qn(this[_0x1d1edf(0x3d6)]['children'],this[_0x1d1edf(0x3d6)][_0x1d1edf(0x467)]),_0x435c63=this[_0x1d1edf(0x3d6)]['structureKind']===_0x1d1edf(0x3bd);if(_0x491bdb[_0x1d1edf(0x32b)]>0x0){if(_0x45ef58[_0x1d1edf(0x26f)](),_0x435c63){let _0x45b564=_0x3a42cd,_0x44a893=_0x2f9d3f,_0x7573b0=_0x43d9d8[_0x1d1edf(0x443)],_0x459915=_0x24ec51['y'],_0x5dd6fb=_0x4e1354+_0x1da64d,_0x17e816=_0x24ec51['y']-_0x44a893/0x2,_0xe9d9f8=_0x4e1354+_0x1da64d+_0x7573b0;_0x45ef58[_0x1d1edf(0x2ab)](_0x5dd6fb,_0x459915),_0x45ef58[_0x1d1edf(0x352)](_0xe9d9f8,_0x459915),_0x491bdb[_0x1d1edf(0x44a)]((_0x31665f,_0x38eb63)=>{const _0x2fabcf=_0x1d1edf;let _0x35d9b6=_0xe9d9f8+_0x38eb63*(_0x45b564+_0x7573b0);if(_0x38eb63>0x0){let _0x862a42=_0xe9d9f8+(_0x38eb63-0x1)*(_0x45b564+_0x7573b0)+_0x45b564;_0x45ef58[_0x2fabcf(0x2ab)](_0x862a42,_0x459915),_0x45ef58[_0x2fabcf(0x352)](_0x35d9b6,_0x459915);}_0x45ef58[_0x2fabcf(0x2ab)](_0x35d9b6,_0x459915),_0x45ef58[_0x2fabcf(0x352)](_0x35d9b6+_0x45b564,_0x459915);}),_0x45ef58[_0x1d1edf(0x3f6)](),_0x491bdb[_0x1d1edf(0x44a)]((_0xb2351e,_0x38625f)=>{const _0x2d9a93=_0x1d1edf;X(_0x45ef58,_0xe9d9f8+_0x38625f*(_0x45b564+_0x7573b0),_0x17e816,_0x45b564,_0x44a893,Y[_0x2d9a93(0x2ae)]),_0x45ef58[_0x2d9a93(0x313)]=Y[_0x2d9a93(0x2bb)],_0x45ef58[_0x2d9a93(0x2a6)](),_0x45ef58[_0x2d9a93(0x3f6)]();}),_0x491bdb['forEach']((_0x34bf1d,_0x5bd27f)=>{const _0x211ea6=_0x1d1edf;if(!(_0x211ea6(0x2fc)in _0x34bf1d)||_0x34bf1d[_0x211ea6(0x2fc)][_0x211ea6(0x32b)]===0x0)return;let _0x42a726=_0xe9d9f8+_0x5bd27f*(_0x45b564+_0x7573b0),_0x14489c=_0x42a726+_0x45b564/0x2,_0x191c7a=_0x34bf1d['side']==='bottom'?_0x211ea6(0x46d):_0x211ea6(0x362),_0x13ffb7=_0x34bf1d[_0x211ea6(0x2fc)][_0x211ea6(0x477)](0x0,0x2),_0x575b6c=_0x13ffb7[_0x211ea6(0x32b)]*_0x44a893+Math['max'](0x0,_0x13ffb7[_0x211ea6(0x32b)]-0x1)*_0x4b84c4,_0x19eaca=_0x42a726+_0x45b564+_0x43d9d8[_0x211ea6(0x479)],_0x5c78ee=_0x191c7a===_0x211ea6(0x362)?_0x17e816-_0x58d784-_0x575b6c:_0x17e816+_0x44a893+_0x58d784,_0x1b0345=_0x5c78ee+_0x575b6c/0x2;_0x45ef58[_0x211ea6(0x26f)](),_0x45ef58['moveTo'](_0x14489c,_0x191c7a===_0x211ea6(0x362)?_0x17e816:_0x17e816+_0x44a893),_0x45ef58[_0x211ea6(0x352)](_0x14489c,_0x1b0345),_0x45ef58[_0x211ea6(0x352)](_0x19eaca,_0x1b0345),_0x13ffb7[_0x211ea6(0x44a)]((_0x363a63,_0x287cc8)=>{const _0x18dcde=_0x211ea6;let _0x54e24e=_0x5c78ee+_0x287cc8*(_0x44a893+_0x4b84c4)+_0x44a893/0x2;_0x45ef58[_0x18dcde(0x2ab)](_0x19eaca,_0x54e24e),_0x45ef58[_0x18dcde(0x352)](_0x19eaca+_0x45b564,_0x54e24e);}),_0x45ef58['stroke'](),_0x13ffb7['forEach']((_0x3e5a67,_0x7c0352)=>{const _0x5e1bd2=_0x211ea6;let _0x510dc8=_0x5c78ee+_0x7c0352*(_0x44a893+_0x4b84c4);X(_0x45ef58,_0x19eaca,_0x510dc8,_0x45b564,_0x44a893,Y[_0x5e1bd2(0x2ae)]),_0x45ef58['fillStyle']=Y[_0x5e1bd2(0x2bb)],_0x45ef58[_0x5e1bd2(0x2a6)](),_0x45ef58[_0x5e1bd2(0x3f6)]();});});}else{let _0x541011=_0x24ec51['x'],_0x81824f=_0x32bb02+_0x10b69e,_0x2666ac=_0x43d9d8[_0x1d1edf(0x443)],_0x4586a3=_0x32bb02+_0x10b69e+_0x2666ac,_0x25859c=_0x4586a3+(_0x491bdb[_0x1d1edf(0x32b)]-0x1)*(_0x2f9d3f+_0x2666ac)+_0x2f9d3f/0x2;_0x45ef58[_0x1d1edf(0x2ab)](_0x541011,_0x81824f),_0x45ef58[_0x1d1edf(0x352)](_0x541011,_0x25859c),_0x491bdb['forEach']((_0x39253c,_0x1cc4b8)=>{const _0x1e87e0=_0x1d1edf;let _0x40335b=_0x4586a3+_0x1cc4b8*(_0x2f9d3f+_0x2666ac)+_0x2f9d3f/0x2,_0x2d41bf=_0x39253c[_0x1e87e0(0x299)]===_0x1e87e0(0x3f8)?_0x1e87e0(0x3f8):_0x1e87e0(0x452),_0x3197a4=_0x2d41bf===_0x1e87e0(0x3f8)?_0x541011+_0x43d9d8[_0x1e87e0(0x479)]:_0x541011-_0x43d9d8['branchGap']-_0x3a42cd,_0x57d54d=_0x2d41bf===_0x1e87e0(0x3f8)?_0x3197a4:_0x3197a4+_0x3a42cd;_0x45ef58['moveTo'](_0x541011,_0x40335b),_0x45ef58[_0x1e87e0(0x352)](_0x57d54d,_0x40335b);}),_0x45ef58['stroke'](),_0x491bdb[_0x1d1edf(0x44a)]((_0xb8a8f3,_0x4692df)=>{const _0x1b6cc0=_0x1d1edf;let _0x385f34=_0x4586a3+_0x4692df*(_0x2f9d3f+_0x2666ac);X(_0x45ef58,(_0xb8a8f3[_0x1b6cc0(0x299)]===_0x1b6cc0(0x3f8)?_0x1b6cc0(0x3f8):_0x1b6cc0(0x452))==_0x1b6cc0(0x3f8)?_0x541011+_0x43d9d8[_0x1b6cc0(0x479)]:_0x541011-_0x43d9d8[_0x1b6cc0(0x479)]-_0x3a42cd,_0x385f34,_0x3a42cd,_0x2f9d3f,Y['ghostRadius']),_0x45ef58[_0x1b6cc0(0x313)]=Y['ghostFillColor'],_0x45ef58[_0x1b6cc0(0x2a6)](),_0x45ef58[_0x1b6cc0(0x3f6)]();}),_0x491bdb['forEach']((_0x1732d5,_0x21aa48)=>{const _0x54550c=_0x1d1edf;if(!('children'in _0x1732d5)||_0x1732d5[_0x54550c(0x2fc)][_0x54550c(0x32b)]===0x0)return;let _0x13e88d=_0x4586a3+_0x21aa48*(_0x2f9d3f+_0x2666ac)+_0x2f9d3f/0x2,_0x3dc09f=_0x1732d5[_0x54550c(0x299)]===_0x54550c(0x3f8)?_0x54550c(0x3f8):_0x54550c(0x452),_0x28bbbc=_0x1732d5['children'][_0x54550c(0x477)](0x0,0x2),_0x1d3f5a=_0x28bbbc[_0x54550c(0x32b)]*_0x2f9d3f+Math['max'](0x0,_0x28bbbc[_0x54550c(0x32b)]-0x1)*_0x4b84c4,_0x43d845=_0x3dc09f===_0x54550c(0x3f8)?_0x541011+_0x43d9d8[_0x54550c(0x479)]:_0x541011-_0x43d9d8[_0x54550c(0x479)]-_0x3a42cd,_0x14d2f6=_0x3dc09f===_0x54550c(0x3f8)?_0x43d845+_0x3a42cd+_0x58d784:_0x43d845-_0x58d784-_0x3a42cd,_0x375254=_0x13e88d-_0x1d3f5a/0x2,_0x2b0e6b=_0x3dc09f===_0x54550c(0x3f8)?_0x43d845+_0x3a42cd:_0x43d845,_0x479235=_0x3dc09f===_0x54550c(0x3f8)?_0x14d2f6:_0x14d2f6+_0x3a42cd;_0x45ef58[_0x54550c(0x26f)](),_0x45ef58['moveTo'](_0x2b0e6b,_0x13e88d),_0x45ef58['lineTo'](_0x479235,_0x13e88d),_0x28bbbc[_0x54550c(0x44a)]((_0x19fcd8,_0x595ee8)=>{const _0x5787c4=_0x54550c;let _0x37e974=_0x375254+_0x595ee8*(_0x2f9d3f+_0x4b84c4)+_0x2f9d3f/0x2;_0x45ef58[_0x5787c4(0x2ab)](_0x479235,_0x37e974),_0x45ef58[_0x5787c4(0x352)](_0x3dc09f==='right'?_0x14d2f6+_0x3a42cd:_0x14d2f6,_0x37e974);}),_0x45ef58[_0x54550c(0x3f6)](),_0x28bbbc['forEach']((_0x34ff4a,_0x3613d2)=>{const _0x409b11=_0x54550c;let _0x5b8453=_0x375254+_0x3613d2*(_0x2f9d3f+_0x4b84c4);X(_0x45ef58,_0x14d2f6,_0x5b8453,_0x3a42cd,_0x2f9d3f,Y[_0x409b11(0x2ae)]),_0x45ef58[_0x409b11(0x313)]=Y[_0x409b11(0x2bb)],_0x45ef58[_0x409b11(0x2a6)](),_0x45ef58['stroke']();});});}}}else{if(Yn(this[_0x1d1edf(0x3d6)]['structureKind'])){let _0x264a73=this[_0x1d1edf(0x3d6)][_0x1d1edf(0x2fc)]??[],_0x296339=_0x32bb02+_0x10b69e,_0x431586=_0x296339+_0x58d784,_0x25b874=_0x24ec51['x'];if(_0x264a73['length']>0x0){let _0x360690=_0x431586+(_0x264a73[_0x1d1edf(0x32b)]-0x1)*(_0x2f9d3f+_0x4b84c4)+_0x2f9d3f/0x2;_0x45ef58['beginPath'](),_0x45ef58[_0x1d1edf(0x2ab)](_0x25b874,_0x296339),_0x45ef58[_0x1d1edf(0x352)](_0x25b874,_0x360690),_0x264a73[_0x1d1edf(0x44a)]((_0x130598,_0xc346a4)=>{const _0x540340=_0x1d1edf;let _0x26a65d=Zn(_0x130598,_0xc346a4,this['_state']['structureKind']),_0x107cc7=_0x431586+_0xc346a4*(_0x2f9d3f+_0x4b84c4),_0x4d9f48=_0x26a65d===_0x540340(0x3f8)?_0x25b874+_0x58d784:_0x25b874-_0x58d784-_0x3a42cd,_0x511d03=_0x107cc7+_0x2f9d3f/0x2;_0x45ef58['moveTo'](_0x25b874,_0x511d03),_0x45ef58[_0x540340(0x352)](_0x26a65d===_0x540340(0x3f8)?_0x4d9f48:_0x4d9f48+_0x3a42cd,_0x511d03);}),_0x45ef58[_0x1d1edf(0x3f6)](),_0x264a73[_0x1d1edf(0x44a)]((_0x2c1859,_0x71392e)=>{const _0x1c6ea8=_0x1d1edf;let _0x250ddf=Zn(_0x2c1859,_0x71392e,this[_0x1c6ea8(0x3d6)][_0x1c6ea8(0x47f)]),_0x51d813=_0x431586+_0x71392e*(_0x2f9d3f+_0x4b84c4);X(_0x45ef58,_0x250ddf===_0x1c6ea8(0x3f8)?_0x25b874+_0x58d784:_0x25b874-_0x58d784-_0x3a42cd,_0x51d813,_0x3a42cd,_0x2f9d3f,Y['ghostRadius']),_0x45ef58['fillStyle']=Y['ghostFillColor'],_0x45ef58[_0x1c6ea8(0x2a6)](),_0x45ef58[_0x1c6ea8(0x3f6)]();});}}else _0x387f88&&[_0x1d1edf(0x362),'bottom']['forEach'](_0x2dfd02=>{const _0x51e8a0=_0x1d1edf;let _0x4338ac=_0x2444a1[_0x2dfd02];if(_0x4338ac[_0x51e8a0(0x32b)]===0x0)return;let _0x3507ef=_0x4338ac[_0x51e8a0(0x32b)]*_0x3a42cd+Math[_0x51e8a0(0x455)](0x0,_0x4338ac[_0x51e8a0(0x32b)]-0x1)*_0x4b84c4,_0x3ba4f1=_0x24ec51['x']-_0x3507ef/0x2,_0x1cf5dc=_0x2dfd02==='bottom'?_0x32bb02+_0x10b69e:_0x32bb02,_0x579633=_0x2dfd02===_0x51e8a0(0x46d)?_0x1cf5dc+_0x43d9d8['branchGap']:_0x1cf5dc-_0x43d9d8[_0x51e8a0(0x479)],_0x4b243c=_0x2dfd02===_0x51e8a0(0x46d)?_0x32bb02+_0x10b69e+_0x58d784:_0x32bb02-_0x58d784-_0x2f9d3f;_0x45ef58[_0x51e8a0(0x26f)](),_0x45ef58[_0x51e8a0(0x2ab)](_0x24ec51['x'],_0x1cf5dc),_0x45ef58['lineTo'](_0x24ec51['x'],_0x579633),_0x4338ac['length']>0x1&&(_0x45ef58['moveTo'](_0x3ba4f1+_0x3a42cd/0x2,_0x579633),_0x45ef58[_0x51e8a0(0x352)](_0x3ba4f1+_0x3507ef-_0x3a42cd/0x2,_0x579633)),_0x4338ac[_0x51e8a0(0x44a)]((_0xccbe4,_0x389ecc)=>{const _0x4dd956=_0x51e8a0;let _0xfd6bdc=_0x3ba4f1+_0x389ecc*(_0x3a42cd+_0x4b84c4)+_0x3a42cd/0x2;_0x45ef58[_0x4dd956(0x2ab)](_0xfd6bdc,_0x579633),_0x45ef58[_0x4dd956(0x352)](_0xfd6bdc,_0x2dfd02==='bottom'?_0x4b243c:_0x4b243c+_0x2f9d3f);}),_0x45ef58[_0x51e8a0(0x3f6)](),_0x4338ac[_0x51e8a0(0x44a)]((_0x2dc339,_0x3aeb08)=>{const _0x53cffa=_0x51e8a0;X(_0x45ef58,_0x3ba4f1+_0x3aeb08*(_0x3a42cd+_0x4b84c4),_0x4b243c,_0x3a42cd,_0x2f9d3f,Y['ghostRadius']),_0x45ef58[_0x53cffa(0x313)]=Y[_0x53cffa(0x2bb)],_0x45ef58[_0x53cffa(0x2a6)](),_0x45ef58['stroke']();});});}(_0x387f88||Yn(this['_state'][_0x1d1edf(0x47f)])||Xn(this[_0x1d1edf(0x3d6)][_0x1d1edf(0x47f)])?[]:[_0x1d1edf(0x452),_0x1d1edf(0x3f8)])[_0x1d1edf(0x44a)](_0x539a06=>{const _0x15b5fb=_0x1d1edf;let _0xf585ce=_0x2444a1[_0x539a06];if(_0xf585ce['length']===0x0)return;let _0x56a804=_0xf585ce[_0x15b5fb(0x32b)]*_0x2f9d3f+Math[_0x15b5fb(0x455)](0x0,_0xf585ce[_0x15b5fb(0x32b)]-0x1)*_0x4b84c4,_0xc56ba4=_0x24ec51['y']-_0x56a804/0x2,_0x1dc6af=_0x539a06===_0x15b5fb(0x3f8)?_0x4e1354+_0x1da64d:_0x4e1354,_0x284604=_0x539a06==='right'?_0x1dc6af+_0x43d9d8[_0x15b5fb(0x479)]:_0x1dc6af-_0x43d9d8['branchGap'],_0x89b2c=_0x539a06===_0x15b5fb(0x3f8)?_0x4e1354+_0x1da64d+_0x58d784:_0x4e1354-_0x58d784-_0x3a42cd;_0x45ef58[_0x15b5fb(0x26f)](),_0x45ef58['moveTo'](_0x1dc6af,_0x24ec51['y']),_0x45ef58[_0x15b5fb(0x352)](_0x284604,_0x24ec51['y']),_0xf585ce[_0x15b5fb(0x32b)]>0x1&&(_0x45ef58[_0x15b5fb(0x2ab)](_0x284604,_0xc56ba4+_0x2f9d3f/0x2),_0x45ef58[_0x15b5fb(0x352)](_0x284604,_0xc56ba4+_0x56a804-_0x2f9d3f/0x2)),_0xf585ce[_0x15b5fb(0x44a)]((_0x4dd9c3,_0x4d2e9a)=>{let _0x169eb6=_0xc56ba4+_0x4d2e9a*(_0x2f9d3f+_0x4b84c4)+_0x2f9d3f/0x2;_0x45ef58['moveTo'](_0x284604,_0x169eb6),_0x45ef58['lineTo'](_0x539a06==='right'?_0x89b2c:_0x89b2c+_0x3a42cd,_0x169eb6);}),_0x45ef58[_0x15b5fb(0x3f6)](),_0xf585ce[_0x15b5fb(0x44a)]((_0xa75068,_0x22d1db)=>{const _0xe6b13f=_0x15b5fb;let _0xb93d2d=_0xc56ba4+_0x22d1db*(_0x2f9d3f+_0x4b84c4);X(_0x45ef58,_0x89b2c,_0xb93d2d,_0x3a42cd,_0x2f9d3f,Y['ghostRadius']),_0x45ef58['fillStyle']=Y[_0xe6b13f(0x2bb)],_0x45ef58[_0xe6b13f(0x2a6)](),_0x45ef58[_0xe6b13f(0x3f6)]();});}),X(_0x45ef58,_0x4e1354,_0x32bb02,_0x1da64d,_0x10b69e,Y[_0x1d1edf(0x40b)]),_0x45ef58[_0x1d1edf(0x313)]=Y[_0x1d1edf(0x1d2)],_0x45ef58[_0x1d1edf(0x2a6)](),_0x45ef58[_0x1d1edf(0x3f6)](),_0x45ef58[_0x1d1edf(0x313)]=Y[_0x1d1edf(0x3c5)],_0x45ef58[_0x1d1edf(0x3e4)]=Vt(Y['rootFontWeight'],Y['rootFontSize'],_0x2d0b6e),_0x45ef58[_0x1d1edf(0x245)]=_0x1d1edf(0x280),_0x45ef58[_0x1d1edf(0x2f8)]=_0x1d1edf(0x45a);let _0x23257d=Y[_0x1d1edf(0x326)]/_0x2d0b6e;return _0x45ef58[_0x1d1edf(0x3e0)](_0x5c96e4,_0x24ec51['x'],_0x24ec51['y'],Math[_0x1d1edf(0x455)](0x1,_0x1da64d-_0x23257d*0x2)),_0x45ef58[_0x1d1edf(0x327)](),this[_0x1d1edf(0x47c)](!0x1),this;}};const er={'children':[{'text':_0x5c96e4,'orderKey':_0x2bfc2b(0x0),'side':_0x3d9742(0x3f8)},{'text':_0x5c96e4,'orderKey':_0x2bfc2b(0x1),'side':_0x3d9742(0x3f8)},{'text':_0x5c96e4,'orderKey':_0x2bfc2b(0x2),'side':_0x3d9742(0x3f8)}]};var tr=class extends _0x300276{constructor(..._0x4ec596){super(..._0x4ec596),G(this,'_template',er);}[_0x3d9742(0x30d)](_0x525385){const _0x4dee39=_0x3d9742;var _0x4ab24d;let _0x5dfd48=(_0x525385==null?void 0x0:_0x525385[_0x4dee39(0x2fc)])??(_0x525385==null||(_0x4ab24d=_0x525385[_0x4dee39(0x467)])==null?void 0x0:_0x4ab24d[_0x4dee39(0x380)]['children']);this[_0x4dee39(0x41b)]={'rootText':_0x525385==null?void 0x0:_0x525385[_0x4dee39(0x30b)],'structureKind':_0x525385==null?void 0x0:_0x525385['structureKind'],'branchLineType':_0x525385==null?void 0x0:_0x525385['branchLineType'],'children':this[_0x4dee39(0x323)](_0x5dfd48,_0x525385==null?void 0x0:_0x525385[_0x4dee39(0x47f)]),'blueprint':_0x525385!=null&&_0x525385[_0x4dee39(0x467)]?this[_0x4dee39(0x3ce)](_0x525385['blueprint']):void 0x0};}[_0x3d9742(0x3f0)](){const _0x39118a=_0x3d9742;var _0x4fa8fe;return{'rootText':this[_0x39118a(0x41b)][_0x39118a(0x30b)],'structureKind':this['_template'][_0x39118a(0x47f)],'branchLineType':this[_0x39118a(0x41b)][_0x39118a(0x2de)],'children':(_0x4fa8fe=this[_0x39118a(0x41b)][_0x39118a(0x2fc)])==null?void 0x0:_0x4fa8fe[_0x39118a(0x2e1)](_0x27e002=>({..._0x27e002})),'blueprint':this['_template'][_0x39118a(0x467)]?this[_0x39118a(0x3ce)](this['_template'][_0x39118a(0x467)]):void 0x0};}[_0x3d9742(0x3ce)](_0x1b3897){const _0x1f66fd=_0x3d9742;return{'title':_0x1b3897[_0x1f66fd(0x41c)],'root':this[_0x1f66fd(0x2d8)](_0x1b3897[_0x1f66fd(0x380)])};}['_cloneBlueprintNode'](_0x171daa){const _0x3677f2=_0x3d9742;return{..._0x171daa,'foreignAttributes':_0x171daa[_0x3677f2(0x290)]?{..._0x171daa[_0x3677f2(0x290)]}:void 0x0,'children':_0x171daa[_0x3677f2(0x2fc)][_0x3677f2(0x2e1)](_0x44923f=>this[_0x3677f2(0x2d8)](_0x44923f))};}[_0x3d9742(0x323)](_0x21614e,_0x5ca630){const _0xa65100=_0x3d9742;let _0x333781=!_0x21614e,_0x199a35=_0x21614e??er[_0xa65100(0x2fc)];return _0x199a35==null?void 0x0:_0x199a35[_0xa65100(0x2e1)]((_0x4ae96d,_0x3dd186)=>({..._0x4ae96d,'text':_0x4ae96d[_0xa65100(0x409)]??_0x5c96e4,'side':this[_0xa65100(0x239)](_0x4ae96d[_0xa65100(0x299)],_0x3dd186,_0x5ca630,_0x333781)}));}['_resolveChildSide'](_0x5530e1,_0x1be050,_0x265b51,_0x4328e4){const _0x2e71ba=_0x3d9742;return _0x265b51===_0x2e71ba(0x451)?_0x4328e4?_0x2e71ba(0x46d):_0x5530e1??'bottom':_0x265b51===_0x2e71ba(0x3d7)?_0x4328e4?'left':_0x5530e1??_0x2e71ba(0x452):_0x265b51==='tree-right'?_0x4328e4?'right':_0x5530e1??_0x2e71ba(0x3f8):_0x265b51===_0x2e71ba(0x416)?_0x4328e4?_0x1be050%0x2==0x0?'left':_0x2e71ba(0x3f8):_0x5530e1??(_0x1be050%0x2==0x0?_0x2e71ba(0x452):_0x2e71ba(0x3f8)):_0x265b51==='timeline-horizontal'?_0x4328e4?_0x1be050%0x2==0x0?_0x2e71ba(0x362):_0x2e71ba(0x46d):_0x5530e1??(_0x1be050%0x2==0x0?_0x2e71ba(0x362):'bottom'):_0x265b51===_0x2e71ba(0x446)?_0x4328e4?_0x1be050%0x2==0x0?_0x2e71ba(0x452):_0x2e71ba(0x3f8):_0x5530e1??(_0x1be050%0x2==0x0?_0x2e71ba(0x452):_0x2e71ba(0x3f8)):_0x5530e1;}};function nr(_0x4dc032,_0x4152c0){const _0x220379=_0x3d9742;let _0x59c857=Number[_0x220379(0x1b5)](_0x4152c0[_0x220379(0x258)])&&_0x4152c0[_0x220379(0x258)]>0x0?_0x4152c0[_0x220379(0x258)]:0x1;return{'x':Math[_0x220379(0x356)]((_0x4dc032[_0x220379(0x284)]-_0x4152c0[_0x220379(0x342)]['x'])/_0x59c857),'y':Math[_0x220379(0x356)]((_0x4dc032[_0x220379(0x227)]-_0x4152c0[_0x220379(0x342)]['y'])/_0x59c857)};}function rr(_0x3b11d2){const _0x2585ec=_0x3d9742;var _0x1c5c6f;if(_0x3b11d2!=null&&_0x3b11d2[_0x2585ec(0x2d2)]){_0x3b11d2[_0x2585ec(0x2d2)]();return;}_0x3b11d2==null||(_0x1c5c6f=_0x3b11d2[_0x2585ec(0x317)])==null||_0x1c5c6f[_0x2585ec(0x378)](_0x3b11d2);}function ir(_0x14c8dc){const _0x18445c=_0x3d9742;var _0x1a98f6;return _0x14c8dc['activeTool']===_0x44aee8[_0x18445c(0x374)]&&((_0x1a98f6=_0x14c8dc['pendingInsert'])==null?void 0x0:_0x1a98f6[_0x18445c(0x256)])===_0x44aee8[_0x18445c(0x374)];}let ar=class extends _0xd55cd7{constructor(_0x334d93,_0x57f8e5,_0x207656,_0x4d4a6b,_0x106c5f,_0x530a5b,_0x371283){const _0xaa2f0b=_0x3d9742;super(),this['_renderContext']=_0x334d93,this[_0xaa2f0b(0x269)]=_0x57f8e5,this[_0xaa2f0b(0x346)]=_0x207656,this[_0xaa2f0b(0x3af)]=_0x4d4a6b,this[_0xaa2f0b(0x2cb)]=_0x106c5f,this[_0xaa2f0b(0x28d)]=_0x530a5b,this[_0xaa2f0b(0x471)]=_0x371283,G(this,_0xaa2f0b(0x202),null),G(this,_0xaa2f0b(0x22c),null),this[_0xaa2f0b(0x220)]();}[_0x3d9742(0x220)](){const _0x568ae1=_0x3d9742;var _0x6848e9;let {scene:_0x55245c,unitId:_0x26562a}=this['_renderContext'],_0x3600c4=this[_0x568ae1(0x269)][_0x568ae1(0x39b)](_0x26562a,_0x3eda62[_0x568ae1(0x1d0)]);if(!_0x3600c4)return;let _0x2ff87a=(_0x6848e9=_0x55245c[_0x568ae1(0x216)])==null?void 0x0:_0x6848e9[_0x568ae1(0x484)]({'priority':0x4,'next':([_0x4b62cc,_0x5b9fed])=>this[_0x568ae1(0x336)](_0x4b62cc,_0x5b9fed)}),_0xf7d711=_0x55245c[_0x568ae1(0x24d)]['subscribeEvent']({'priority':0x4,'next':([_0x1f825f,_0x9422e])=>this[_0x568ae1(0x257)](_0x3600c4,_0x1f825f,_0x9422e)});this['disposeWithMe'](_0xdc7696(()=>rr(_0x2ff87a))),this[_0x568ae1(0x2bf)](_0xdc7696(()=>rr(_0xf7d711)));let _0x3a6e53=this[_0x568ae1(0x346)]['state$']['subscribe'](()=>this[_0x568ae1(0x207)]());this[_0x568ae1(0x2bf)](_0xdc7696(()=>rr(_0x3a6e53))),this['disposeWithMe'](_0xdc7696(()=>{const _0x301e69=_0x568ae1;this[_0x301e69(0x329)]();})),this[_0x568ae1(0x207)]();}[_0x3d9742(0x207)](){const _0xfe93b6=_0x3d9742;var _0x12d02a,_0x35d147;let _0x104e05=this[_0xfe93b6(0x346)][_0xfe93b6(0x204)]();if(!ir(_0x104e05)){this[_0xfe93b6(0x329)]();return;}let _0x363d17=this[_0xfe93b6(0x2a3)](),_0x10b7dc=this['_insertStateService'][_0xfe93b6(0x3f0)]();_0x363d17[_0xfe93b6(0x25f)]({'point':this['_lastPoint'],'structureKind':_0x10b7dc[_0xfe93b6(0x47f)],'children':_0x10b7dc[_0xfe93b6(0x2fc)],'blueprint':_0x10b7dc[_0xfe93b6(0x467)],'zoomRatio':_0x104e05[_0xfe93b6(0x258)]}),(_0x12d02a=(_0x35d147=this[_0xfe93b6(0x457)][_0xfe93b6(0x214)])[_0xfe93b6(0x47c)])==null||_0x12d02a[_0xfe93b6(0x378)](_0x35d147,!0x0);}[_0x3d9742(0x2a3)](){const _0x13db18=_0x3d9742;var _0x37af5e,_0x1065ba;if(this[_0x13db18(0x202)])return this['_previewObject'];let _0x80c17d=this['_insertStateService'][_0x13db18(0x3f0)](),_0x401d70=new $n(Kn,{'point':this[_0x13db18(0x22c)],'structureKind':_0x80c17d[_0x13db18(0x47f)],'children':_0x80c17d[_0x13db18(0x2fc)],'blueprint':_0x80c17d[_0x13db18(0x467)],'zoomRatio':this[_0x13db18(0x346)][_0x13db18(0x204)]()['zoomRatio']});return this['_previewObject']=_0x401d70,(_0x37af5e=(_0x1065ba=this['_renderContext'][_0x13db18(0x214)])[_0x13db18(0x201)])==null||_0x37af5e[_0x13db18(0x378)](_0x1065ba,_0x401d70,qn),_0x401d70;}[_0x3d9742(0x329)](){const _0x2d7ee8=_0x3d9742;var _0x569a03,_0x255a51,_0x47ea4e,_0x51d6b6;if(!this[_0x2d7ee8(0x202)]){this[_0x2d7ee8(0x22c)]=null;return;}(_0x569a03=(_0x255a51=this[_0x2d7ee8(0x457)]['scene'])['removeObjects'])==null||_0x569a03[_0x2d7ee8(0x378)](_0x255a51,[this[_0x2d7ee8(0x202)]]),this[_0x2d7ee8(0x202)]=null,this[_0x2d7ee8(0x22c)]=null,(_0x47ea4e=(_0x51d6b6=this[_0x2d7ee8(0x457)][_0x2d7ee8(0x214)])[_0x2d7ee8(0x47c)])==null||_0x47ea4e[_0x2d7ee8(0x378)](_0x51d6b6,!0x0);}[_0x3d9742(0x1f9)](_0x42143c){const _0x17e28c=_0x3d9742;let _0x2cfe48=this[_0x17e28c(0x346)][_0x17e28c(0x204)]();return nr(_0x42143c,{'panOffset':_0x2cfe48[_0x17e28c(0x26e)],'zoomRatio':_0x2cfe48[_0x17e28c(0x258)]});}['_resolveRootTopLeft'](_0x3dee8a){const _0x43b5a4=_0x3d9742;return{'left':Math[_0x43b5a4(0x356)](_0x3dee8a['x']-_0x136bc3[_0x43b5a4(0x364)]/0x2),'top':Math['round'](_0x3dee8a['y']-_0x136bc3[_0x43b5a4(0x2ef)]/0x2)};}[_0x3d9742(0x336)](_0x1048a2,_0x3ec7c0){const _0x327cc5=_0x3d9742;ir(this[_0x327cc5(0x346)][_0x327cc5(0x204)]())&&(this[_0x327cc5(0x22c)]=this[_0x327cc5(0x1f9)](_0x1048a2),this['_syncPreviewObject'](),_0x3ec7c0[_0x327cc5(0x1dd)]());}[_0x3d9742(0x257)](_0xeae2a2,_0x441839,_0x533c2f){const _0x9675b8=_0x3d9742;var _0x504c62;let _0x56320d=this['_stateService']['getState'](),_0x109c77=_0x441839[_0x9675b8(0x199)]??0x0;if(!ir(_0x56320d)||_0x109c77!==0x0)return;let _0x1d968d=this[_0x9675b8(0x1f9)](_0x441839),_0x31c3f4=this[_0x9675b8(0x1a4)](_0x1d968d),_0x21f7d9=this[_0x9675b8(0x2cb)][_0x9675b8(0x3f0)](),_0x8aa567=_0x46ed23(0x6),_0x2776bd=_0xeae2a2[_0x9675b8(0x3cb)](),_0x1200c5=this[_0x9675b8(0x3af)][_0x9675b8(0x3c9)](_0x392469['id'],{'unitId':this[_0x9675b8(0x457)]['unitId'],'subUnitId':_0x2776bd,'left':_0x31c3f4[_0x9675b8(0x452)],'top':_0x31c3f4[_0x9675b8(0x362)],'rootNodeId':_0x8aa567,'rootText':_0x21f7d9['rootText'],'structureKind':_0x21f7d9[_0x9675b8(0x47f)],'branchLineType':_0x21f7d9[_0x9675b8(0x2de)],'children':_0x21f7d9[_0x9675b8(0x2fc)],'blueprint':_0x21f7d9['blueprint']});Promise[_0x9675b8(0x42c)](_0x1200c5)[_0x9675b8(0x3a8)](_0x2bbd05=>{const _0x269cde=_0x9675b8;if(!_0x2bbd05)return;let _0x104d15={'unitId':this[_0x269cde(0x457)][_0x269cde(0x1b2)],'subUnitId':_0x2776bd};this[_0x269cde(0x28d)][_0x269cde(0x3d3)](_0x104d15,[_0x8aa567],_0x8aa567),this['_boardTextEditingService']['ignoreExternalFocusChanges'](),this['_boardTextEditingService']['setEditing']({..._0x104d15,'shapeId':_0x8aa567,'shapeKey':_0x4a409b(_0x104d15[_0x269cde(0x1b2)],_0x8aa567),'visible':!0x0});}),this['_stateService'][_0x9675b8(0x358)](_0x44aee8['Select']),_0x533c2f[_0x9675b8(0x1dd)](),(_0x504c62=_0x441839[_0x9675b8(0x35b)])==null||_0x504c62[_0x9675b8(0x378)](_0x441839);}};ar=q([K(0x1,_0x42b922),K(0x2,_0x1d4c5c),K(0x3,_0x234c21),K(0x4,_0x45c8ba(tr)),K(0x5,_0x1bd113),K(0x6,_0x45c8ba(_0x36fa6f))],ar);var or=class extends _0x300276{constructor(..._0x46bea6){const _0x5f10fa=_0x3d9742;super(..._0x46bea6),G(this,_0x5f10fa(0x417),new _0x1e7819()),G(this,'refresh$',this[_0x5f10fa(0x417)][_0x5f10fa(0x338)]());}[_0x3d9742(0x1dc)](_0x2deeb6){const _0x19cda0=_0x3d9742;this[_0x19cda0(0x417)][_0x19cda0(0x410)](_0x2deeb6);}[_0x3d9742(0x2d2)](){const _0x30e528=_0x3d9742;this['_refresh$'][_0x30e528(0x2a0)](),super[_0x30e528(0x2d2)]();}};function sr(_0x566190){const _0x483b44=_0x3d9742;return typeof _0x566190==_0x483b44(0x35f)&&Number[_0x483b44(0x1b5)](_0x566190)&&_0x566190>0x0;}function cr(_0x256190,_0x7d932c,_0x2e1ab0){const _0x1ee723=_0x3d9742;let _0x4e53d2=_0x256190[_0x7d932c],_0x406f0e=_0x2329f8(_0x4e53d2==null?void 0x0:_0x4e53d2[_0x1ee723(0x1f2)]);if(!_0x4e53d2||!_0x406f0e)return null;let _0x4d5cb4=_0x5e28d6(_0x4e53d2,_0x2e1ab0);if(!_0x4d5cb4)return null;let _0x46713d=_0x4e53d2[_0x1ee723(0x1ba)]??_0x4e53d2['element'][_0x1ee723(0x1ba)];return _0x6d6d67({..._0x256190,[_0x7d932c]:{..._0x4e53d2,'transform':{..._0x46713d,'width':_0x4d5cb4[_0x1ee723(0x2cd)],'height':_0x4d5cb4[_0x1ee723(0x1c1)]},'element':{..._0x4e53d2[_0x1ee723(0x1f2)],'transform':{..._0x4e53d2['element'][_0x1ee723(0x1ba)],'width':_0x4d5cb4['width'],'height':_0x4d5cb4[_0x1ee723(0x1c1)]}}}},_0x406f0e[_0x1ee723(0x405)]);}let lr=class extends _0xd55cd7{constructor(_0x423095,_0x5e8ad2,_0x14380a,_0x3e76b9,_0x1874ef,_0x5550ff){const _0x337c89=_0x3d9742;super(),this[_0x337c89(0x457)]=_0x423095,this[_0x337c89(0x3b9)]=_0x5e8ad2,this['_boardElementService']=_0x14380a,this['_textEditingService']=_0x3e76b9,this[_0x337c89(0x1f8)]=_0x1874ef,this['_commandService']=_0x5550ff,G(this,_0x337c89(0x412),null),G(this,_0x337c89(0x293),{'match':_0x3ee25e=>_0x3ee25e[_0x337c89(0x1b2)]===this[_0x337c89(0x457)]['unitId']&&!!_0x2329f8(_0x3ee25e[_0x337c89(0x1f2)]),'resolveHostSize':_0x157ed5=>this['_resolveHostSize'](_0x157ed5),'previewHostSize':_0x4e9cd2=>this['_previewHostSize'](_0x4e9cd2),'updateHostSize':_0x196fa4=>this[_0x337c89(0x210)](_0x196fa4),'updateShapeText':_0x489e32=>this[_0x337c89(0x27b)](_0x489e32)}),this[_0x337c89(0x2bf)](this[_0x337c89(0x3b9)]['registerProvider'](this[_0x337c89(0x293)])),this[_0x337c89(0x46b)](),this[_0x337c89(0x2bf)](_0xdc7696(()=>this[_0x337c89(0x2b9)]()));}[_0x3d9742(0x210)](_0x133da2){const _0x3a29ea=_0x3d9742;return this[_0x3a29ea(0x395)](_0x133da2);}['_updateShapeText'](_0x33a770){const _0x3877c7=_0x3d9742;let _0x310546=_0x33a770['params'][_0x3877c7(0x3f5)]?this['_resolveHostSize']({'elementData':_0x33a770[_0x3877c7(0x209)],'params':_0x33a770[_0x3877c7(0x372)][_0x3877c7(0x3f5)]}):null,_0x47a780=_0x33a770[_0x3877c7(0x209)][_0x3877c7(0x1ba)]??_0x33a770['elementData'][_0x3877c7(0x1f2)][_0x3877c7(0x1ba)];return!(_0x310546&&(_0x310546[_0x3877c7(0x2cd)]!==_0x47a780['width']||_0x310546['height']!==_0x47a780['height']))&&_0x2964d5(_0x33a770['params'][_0x3877c7(0x211)],_0x33a770[_0x3877c7(0x372)]['oldShapeText'])?!0x0:this[_0x3877c7(0x3af)]['syncExecuteCommand'](_0x17468f['id'],{'unitId':_0x33a770[_0x3877c7(0x372)][_0x3877c7(0x1b2)],'subUnitId':_0x33a770[_0x3877c7(0x372)][_0x3877c7(0x2f0)],'nodeId':_0x33a770[_0x3877c7(0x372)][_0x3877c7(0x45b)],'shapeText':_0x33a770[_0x3877c7(0x372)][_0x3877c7(0x211)],..._0x310546?{'hostSize':{'width':_0x310546[_0x3877c7(0x2cd)],'height':_0x310546['height']}}:null});}[_0x3d9742(0x395)](_0x42730c){const _0xf79d55=_0x3d9742;let _0x6320d5=this['_resolveHostSize'](_0x42730c);if(!_0x6320d5)return!0x1;let _0x4f6f0d=_0x42730c[_0xf79d55(0x209)][_0xf79d55(0x1ba)]??_0x42730c[_0xf79d55(0x209)][_0xf79d55(0x1f2)][_0xf79d55(0x1ba)];return!this[_0xf79d55(0x412)]&&_0x4f6f0d['width']===_0x6320d5[_0xf79d55(0x2cd)]&&_0x4f6f0d['height']===_0x6320d5['height']||this[_0xf79d55(0x3fc)](_0x42730c,_0x6320d5),!0x0;}[_0x3d9742(0x3fd)](_0x26ba7c){const _0x46628c=_0x3d9742;return!sr(_0x26ba7c[_0x46628c(0x372)][_0x46628c(0x2cd)])||!sr(_0x26ba7c['params']['height'])?null:_0x5e28d6(_0x26ba7c[_0x46628c(0x209)],{'width':_0x26ba7c[_0x46628c(0x372)][_0x46628c(0x2cd)],'height':_0x26ba7c['params'][_0x46628c(0x1c1)]});}[_0x3d9742(0x46b)](){const _0x5b44e5=_0x3d9742;this[_0x5b44e5(0x2bf)](_0xdc7696(this['_textEditingService'][_0x5b44e5(0x376)]['pipe'](_0x4021f1(this[_0x5b44e5(0x24f)]))[_0x5b44e5(0x36c)](_0x14f565=>{const _0x150f46=_0x5b44e5;_0x14f565||this[_0x150f46(0x2b9)]();})));}[_0x3d9742(0x3fc)](_0x4d12c8,_0x243e30){const _0x533802=_0x3d9742;var _0x1943cc;let _0x1bbc60=this[_0x533802(0x2c5)][_0x533802(0x321)](_0x4d12c8[_0x533802(0x372)][_0x533802(0x1b2)],_0x4d12c8[_0x533802(0x372)][_0x533802(0x2f0)]),_0x308e05=cr(_0x1bbc60,_0x4d12c8[_0x533802(0x372)][_0x533802(0x45b)],_0x243e30),_0x2ae5f9=_0x2329f8((_0x1943cc=_0x1bbc60[_0x4d12c8[_0x533802(0x372)][_0x533802(0x45b)]])==null?void 0x0:_0x1943cc[_0x533802(0x1f2)]);!_0x308e05||!_0x2ae5f9||(this[_0x533802(0x412)]={'unitId':_0x4d12c8[_0x533802(0x372)][_0x533802(0x1b2)],'subUnitId':_0x4d12c8[_0x533802(0x372)][_0x533802(0x2f0)],'scopeId':_0x2ae5f9['structureScopeId']},this[_0x533802(0x441)](_0x308e05,_0x2ae5f9[_0x533802(0x405)])&&this[_0x533802(0x1f8)][_0x533802(0x1dc)]({'unitId':_0x4d12c8[_0x533802(0x372)][_0x533802(0x1b2)],'subUnitId':_0x4d12c8[_0x533802(0x372)][_0x533802(0x2f0)],'nodeId':_0x4d12c8[_0x533802(0x372)][_0x533802(0x45b)],'scopeId':_0x2ae5f9['structureScopeId']}));}['_restoreActivePreview'](){const _0x2f6d6e=_0x3d9742;let _0x17c115=this[_0x2f6d6e(0x412)];if(!_0x17c115)return;this[_0x2f6d6e(0x412)]=null;let _0x310413=this[_0x2f6d6e(0x2c5)][_0x2f6d6e(0x321)](_0x17c115[_0x2f6d6e(0x1b2)],_0x17c115[_0x2f6d6e(0x2f0)]);this[_0x2f6d6e(0x441)](_0x310413,_0x17c115['scopeId'])&&this[_0x2f6d6e(0x1f8)]['notify']({'unitId':_0x17c115['unitId'],'subUnitId':_0x17c115[_0x2f6d6e(0x2f0)],'nodeId':_0x17c115[_0x2f6d6e(0x275)],'scopeId':_0x17c115['scopeId']});}['_syncElementDataToScene'](_0x6a3102,_0x2a44b8){const _0x4525f7=_0x3d9742;let _0x1eec1a=!0x1;if(Object[_0x4525f7(0x2c9)](_0x6a3102)[_0x4525f7(0x44a)](_0xd553b=>{const _0x589d95=_0x4525f7;var _0x3ba603;let _0x850cfa=_0x2329f8(_0xd553b['element']),_0x5b2cce=(_0x3ba603=_0xd553b[_0x589d95(0x1f2)][_0x589d95(0x206)])==null?void 0x0:_0x3ba603[_0x589d95(0x447)];if(_0xd553b[_0x589d95(0x2c6)]!==_0x2a44b8&&(_0x850cfa==null?void 0x0:_0x850cfa[_0x589d95(0x405)])!==_0x2a44b8&&(_0x5b2cce==null?void 0x0:_0x5b2cce['structureScopeId'])!==_0x2a44b8)return;let _0x11c186=this[_0x589d95(0x330)](_0xd553b['elementId']);_0x11c186&&(_0x1eec1a=_0x3b4072(_0x11c186,_0xd553b,{'elementData':_0x6a3102,'unitId':this['_renderContext'][_0x589d95(0x1b2)]})||_0x1eec1a);}),_0x1eec1a){var _0x406247,_0x51dea1;this[_0x4525f7(0x457)][_0x4525f7(0x214)][_0x4525f7(0x47c)](!0x0),(_0x406247=(_0x51dea1=this[_0x4525f7(0x457)]['scene'])[_0x4525f7(0x288)])==null||_0x406247[_0x4525f7(0x378)](_0x51dea1);}return _0x1eec1a;}[_0x3d9742(0x330)](_0x1657a7){const _0x4aba29=_0x3d9742;var _0x13bb50;let _0x1e9eae=_0x4a409b(this[_0x4aba29(0x457)][_0x4aba29(0x1b2)],_0x1657a7),_0x58d8e0=this[_0x4aba29(0x457)][_0x4aba29(0x214)];return((_0x13bb50=_0x58d8e0[_0x4aba29(0x19f)])==null?void 0x0:_0x13bb50[_0x4aba29(0x378)](_0x58d8e0,_0x1e9eae))??this[_0x4aba29(0x457)][_0x4aba29(0x214)][_0x4aba29(0x423)](_0x1e9eae)??null;}};lr=q([K(0x1,_0x45c8ba(_0x233f28)),K(0x2,_0x45c8ba(_0x6adb2b)),K(0x3,_0x45c8ba(_0x36fa6f)),K(0x4,_0x45c8ba(or)),K(0x5,_0x234c21)],lr);const Q={'radius':0x12,'addChildRadius':0xe,'siblingHoverRadius':0xa,'siblingDotRadius':0x5,'siblingDotGap':0x3,'gap':0xa,'collapsePlusMinDistance':0x2c,'primaryColor':J['primaryColor'],'surfaceColor':J[_0x3d9742(0x39f)],'borderWidth':0x2,'glyphSize':0x8,'addChildGlyphSize':0x6,'siblingGlyphSize':5.5,'glyphWidth':2.4,'glyphHoverWidth':0x3,'badgeFontWeight':0x258,'badgeFontSize':0x12,'fontFamily':J[_0x3d9742(0x3ac)]};function ur(_0x1982ad){const _0x1f62d6=_0x3d9742;let _0x1ae4cb=Q[_0x1f62d6(0x389)],_0x527d92=Q['addChildRadius'],_0x340c7a=Q[_0x1f62d6(0x27d)],_0x26f2ee=Q['gap'],_0x303bf3=Q[_0x1f62d6(0x38f)],_0x4f1a77=_0x303bf3+Q[_0x1f62d6(0x2ba)],_0x282d88=Q[_0x1f62d6(0x22f)],_0x57f940=_0x1982ad[_0x1f62d6(0x368)][_0x1f62d6(0x362)]+_0x1982ad[_0x1f62d6(0x368)]['height']/0x2,_0x58dd2b=_0x1982ad['bounds'][_0x1f62d6(0x452)]+_0x1982ad[_0x1f62d6(0x368)][_0x1f62d6(0x2cd)]/0x2,_0x4594ab=_0x1982ad[_0x1f62d6(0x368)][_0x1f62d6(0x452)]-_0x1ae4cb-_0x26f2ee,_0x33031d=_0x1982ad['bounds']['left']+_0x1982ad[_0x1f62d6(0x368)][_0x1f62d6(0x2cd)]+_0x1ae4cb+_0x26f2ee,_0x4d46f0=_0x1982ad['bounds'][_0x1f62d6(0x362)]-_0x1ae4cb-_0x26f2ee,_0x488da8=_0x1982ad['bounds'][_0x1f62d6(0x362)]+_0x1982ad[_0x1f62d6(0x368)][_0x1f62d6(0x1c1)]+_0x1ae4cb+_0x26f2ee,_0x178398=_0x1982ad['bounds'][_0x1f62d6(0x452)]-_0x527d92-_0x26f2ee,_0xba26d9=_0x1982ad[_0x1f62d6(0x368)][_0x1f62d6(0x452)]+_0x1982ad[_0x1f62d6(0x368)]['width']+_0x527d92+_0x26f2ee,_0x266be0=_0x1982ad[_0x1f62d6(0x368)]['top']-_0x527d92-_0x26f2ee,_0x4c3b22=_0x1982ad[_0x1f62d6(0x368)][_0x1f62d6(0x362)]+_0x1982ad[_0x1f62d6(0x368)][_0x1f62d6(0x1c1)]+_0x527d92+_0x26f2ee,_0xfea3fd=[],_0x13cd74=_0x1982ad['side']==='top'||_0x1982ad['side']===_0x1f62d6(0x46d),_0x1de601=_0x13cd74?_0x58dd2b:_0x1982ad[_0x1f62d6(0x299)]===_0x1f62d6(0x452)?_0x4594ab:_0x33031d,_0x32c890=_0x13cd74?_0x1982ad[_0x1f62d6(0x299)]===_0x1f62d6(0x362)?_0x4d46f0:_0x488da8:_0x57f940;if(_0x1982ad[_0x1f62d6(0x37f)]&&_0x1982ad['collapsedDescendantCount']>0x0)return _0xfea3fd['push']({'kind':_0x1f62d6(0x23d),'x':_0x1de601,'y':_0x32c890,'radius':_0x1ae4cb,'badgeCount':_0x1982ad['collapsedDescendantCount']}),_0xfea3fd;if(_0x1982ad[_0x1f62d6(0x1f5)]?(_0x1982ad[_0x1f62d6(0x397)]??(_0x13cd74?[_0x1f62d6(0x362),_0x1f62d6(0x46d)]:[_0x1f62d6(0x452),_0x1f62d6(0x3f8)]))['forEach'](_0x369852=>{const _0x517e8a=_0x1f62d6;_0x369852===_0x517e8a(0x362)?_0xfea3fd[_0x517e8a(0x240)]({'kind':_0x517e8a(0x28c),'x':_0x58dd2b,'y':_0x266be0,'radius':_0x527d92}):_0x369852===_0x517e8a(0x46d)?_0xfea3fd[_0x517e8a(0x240)]({'kind':_0x517e8a(0x432),'x':_0x58dd2b,'y':_0x4c3b22,'radius':_0x527d92}):_0x369852===_0x517e8a(0x452)?_0xfea3fd[_0x517e8a(0x240)]({'kind':_0x517e8a(0x25b),'x':_0x178398,'y':_0x57f940,'radius':_0x527d92}):_0xfea3fd['push']({'kind':_0x517e8a(0x2f7),'x':_0xba26d9,'y':_0x57f940,'radius':_0x527d92});}):(_0xfea3fd['push']({'kind':_0x1982ad['side']===_0x1f62d6(0x452)?_0x1f62d6(0x25b):_0x1982ad['side']===_0x1f62d6(0x362)?_0x1f62d6(0x28c):_0x1982ad[_0x1f62d6(0x299)]===_0x1f62d6(0x46d)?'add-child-bottom':_0x1f62d6(0x2f7),'x':_0x13cd74?_0x58dd2b:_0x1982ad['side']===_0x1f62d6(0x452)?_0x178398:_0xba26d9,'y':_0x13cd74?_0x1982ad[_0x1f62d6(0x299)]===_0x1f62d6(0x362)?_0x266be0:_0x4c3b22:_0x57f940,'radius':_0x527d92}),_0x13cd74?(_0xfea3fd[_0x1f62d6(0x240)]({'kind':_0x1f62d6(0x45e),'placement':_0x1f62d6(0x444),'x':_0x1982ad[_0x1f62d6(0x368)]['left']-_0x4f1a77,'y':_0x57f940,'radius':_0x340c7a,'visualRadius':_0x303bf3}),_0xfea3fd[_0x1f62d6(0x240)]({'kind':'add-sibling-after','placement':_0x1f62d6(0x3d4),'x':_0x1982ad[_0x1f62d6(0x368)]['left']+_0x1982ad[_0x1f62d6(0x368)][_0x1f62d6(0x2cd)]+_0x4f1a77,'y':_0x57f940,'radius':_0x340c7a,'visualRadius':_0x303bf3})):(_0xfea3fd[_0x1f62d6(0x240)]({'kind':_0x1f62d6(0x45e),'placement':_0x1f62d6(0x444),'x':_0x58dd2b,'y':_0x1982ad[_0x1f62d6(0x368)][_0x1f62d6(0x362)]-_0x4f1a77,'radius':_0x340c7a,'visualRadius':_0x303bf3}),_0xfea3fd['push']({'kind':_0x1f62d6(0x1ef),'placement':_0x1f62d6(0x3d4),'x':_0x58dd2b,'y':_0x1982ad[_0x1f62d6(0x368)][_0x1f62d6(0x362)]+_0x1982ad['bounds'][_0x1f62d6(0x1c1)]+_0x4f1a77,'radius':_0x340c7a,'visualRadius':_0x303bf3}))),_0x1982ad[_0x1f62d6(0x37f)]){let _0x4730d9={'kind':'toggle-collapse','x':_0x1de601,'y':_0x32c890,'radius':_0x1ae4cb};_0xfea3fd[_0x1f62d6(0x240)](_0x4730d9);let _0x4b270a=_0xfea3fd['find'](_0x1e4cb3=>_0x1e4cb3[_0x1f62d6(0x349)]===(_0x1982ad[_0x1f62d6(0x299)]===_0x1f62d6(0x452)?_0x1f62d6(0x25b):_0x1982ad[_0x1f62d6(0x299)]===_0x1f62d6(0x362)?_0x1f62d6(0x28c):_0x1982ad[_0x1f62d6(0x299)]===_0x1f62d6(0x46d)?'add-child-bottom':'add-child-right'));_0x4b270a&&Math[_0x1f62d6(0x21b)](_0x4b270a['x']-_0x4730d9['x'],_0x4b270a['y']-_0x4730d9['y'])<_0x282d88&&(_0x1982ad[_0x1f62d6(0x299)]===_0x1f62d6(0x362)||_0x1982ad[_0x1f62d6(0x299)]===_0x1f62d6(0x46d)?_0x4b270a['y']=_0x4730d9['y']+(_0x1982ad['side']===_0x1f62d6(0x362)?-_0x282d88:_0x282d88):_0x4b270a['x']=_0x4730d9['x']+(_0x1982ad[_0x1f62d6(0x299)]===_0x1f62d6(0x452)?-_0x282d88:_0x282d88));}return _0xfea3fd;}const dr=_0x3d9742(0x2e2),fr=_0x480444[_0x3d9742(0x2b0)];function pr(_0x589e0c,_0x2f4205){const _0x2d240d=_0x3d9742;return!!_0x589e0c&&_0x589e0c[_0x2d240d(0x349)]===_0x2f4205['kind']&&_0x589e0c['x']===_0x2f4205['x']&&_0x589e0c['y']===_0x2f4205['y'];}var mr=class extends _0x3960a2{constructor(_0xb26a04=dr,_0x2fe29a){const _0x29bd07=_0x3d9742;super(_0xb26a04),G(this,_0x29bd07(0x3d6),{'controls':[]}),this['evented']=!0x0,this[_0x29bd07(0x3ff)]=_0x588fe7[_0x29bd07(0x469)],this['updateState'](_0x2fe29a);}[_0x3d9742(0x25f)](_0x56be69){const _0x1a9264=_0x3d9742;this['_state']={...this[_0x1a9264(0x3d6)],..._0x56be69},this[_0x1a9264(0x3d6)][_0x1a9264(0x306)][_0x1a9264(0x32b)]>0x0?this[_0x1a9264(0x1ac)]():this[_0x1a9264(0x308)](),this[_0x1a9264(0x47c)](!0x0);}[_0x3d9742(0x430)](_0x30ab17){const _0x1e822f=_0x3d9742;!_0x30ab17&&!this['_state'][_0x1e822f(0x2c4)]||_0x30ab17&&pr(this[_0x1e822f(0x3d6)][_0x1e822f(0x2c4)],_0x30ab17)||(this[_0x1e822f(0x3d6)]={...this['_state'],'hoveredControl':_0x30ab17},this[_0x1e822f(0x47c)](!0x0));}[_0x3d9742(0x1f6)](_0x40ec29){const _0x359b24=_0x3d9742;for(let _0x194548=this['_state'][_0x359b24(0x306)][_0x359b24(0x32b)]-0x1;_0x194548>=0x0;--_0x194548){let _0x50f18a=this[_0x359b24(0x3d6)]['controls'][_0x194548];if(Math[_0x359b24(0x21b)](_0x40ec29['x']-_0x50f18a['x'],_0x40ec29['y']-_0x50f18a['y'])<=_0x50f18a[_0x359b24(0x389)])return _0x50f18a;}return null;}[_0x3d9742(0x215)](_0x3ac541){const _0x12091e=_0x3d9742;return!!this[_0x12091e(0x1f6)]({'x':_0x3ac541['x'],'y':_0x3ac541['y']});}[_0x3d9742(0x1c2)](_0x2a036d,_0x6c4089){const _0x33e3d3=_0x3d9742;return!this[_0x33e3d3(0x1b3)]||this[_0x33e3d3(0x3d6)][_0x33e3d3(0x306)]['length']===0x0?(this[_0x33e3d3(0x47c)](!0x1),this):(_0x2a036d[_0x33e3d3(0x39a)](),this[_0x33e3d3(0x3d6)]['controls']['forEach'](_0x217a79=>{const _0x32d065=_0x33e3d3;let _0x402071=pr(this[_0x32d065(0x3d6)][_0x32d065(0x2c4)],_0x217a79),_0x6f2a45=_0x217a79['badgeCount']!==void 0x0,_0x341535=_0x217a79['kind']==='add-child-left'||_0x217a79[_0x32d065(0x349)]===_0x32d065(0x2f7)||_0x217a79[_0x32d065(0x349)]===_0x32d065(0x28c)||_0x217a79['kind']==='add-child-bottom',_0x5e63c1=_0x217a79[_0x32d065(0x349)]===_0x32d065(0x45e)||_0x217a79[_0x32d065(0x349)]===_0x32d065(0x1ef),_0x37b2aa=_0x5e63c1&&!_0x402071?_0x217a79[_0x32d065(0x3ba)]??_0x217a79['radius']:_0x217a79['radius'];if(_0x2a036d['beginPath'](),_0x2a036d[_0x32d065(0x313)]=_0x217a79[_0x32d065(0x349)]===_0x32d065(0x23d)?Q[_0x32d065(0x39f)]:Q[_0x32d065(0x1d2)],_0x2a036d['strokeStyle']=Q[_0x32d065(0x1d2)],_0x2a036d[_0x32d065(0x2fe)]=Q['borderWidth'],_0x2a036d[_0x32d065(0x3ca)](_0x217a79['x'],_0x217a79['y'],_0x37b2aa,0x0,Math['PI']*0x2),_0x2a036d[_0x32d065(0x2a6)](),(!_0x5e63c1||_0x402071)&&_0x2a036d[_0x32d065(0x3f6)](),!_0x6f2a45&&(!_0x5e63c1||_0x402071)){if(_0x2a036d[_0x32d065(0x26f)](),_0x2a036d[_0x32d065(0x27e)]=_0x217a79[_0x32d065(0x349)]===_0x32d065(0x23d)?Q[_0x32d065(0x1d2)]:Q['surfaceColor'],_0x2a036d['lineWidth']=_0x5e63c1?Q['glyphWidth']:_0x402071?Q[_0x32d065(0x3ad)]:Q[_0x32d065(0x2f9)],_0x2a036d[_0x32d065(0x19a)]=_0x32d065(0x356),_0x217a79[_0x32d065(0x349)]===_0x32d065(0x23d)){let _0x1a3989=Q['glyphSize'];_0x2a036d[_0x32d065(0x2ab)](_0x217a79['x']+_0x1a3989/0x2,_0x217a79['y']-_0x1a3989),_0x2a036d['lineTo'](_0x217a79['x']-_0x1a3989/0x2,_0x217a79['y']),_0x2a036d[_0x32d065(0x352)](_0x217a79['x']+_0x1a3989/0x2,_0x217a79['y']+_0x1a3989);}else{let _0x3ba2a5=_0x5e63c1?Q['siblingGlyphSize']:_0x341535?Q[_0x32d065(0x2a2)]:Q[_0x32d065(0x1d8)];_0x2a036d['moveTo'](_0x217a79['x']-_0x3ba2a5,_0x217a79['y']),_0x2a036d[_0x32d065(0x352)](_0x217a79['x']+_0x3ba2a5,_0x217a79['y']),_0x2a036d[_0x32d065(0x2ab)](_0x217a79['x'],_0x217a79['y']-_0x3ba2a5),_0x2a036d[_0x32d065(0x352)](_0x217a79['x'],_0x217a79['y']+_0x3ba2a5);}_0x2a036d[_0x32d065(0x3f6)]();}_0x6f2a45&&(_0x2a036d['fillStyle']=Q['primaryColor'],_0x2a036d[_0x32d065(0x3e4)]=Q[_0x32d065(0x3d5)]+'\x20'+Q[_0x32d065(0x1cf)]+_0x32d065(0x263)+Q[_0x32d065(0x3ac)],_0x2a036d[_0x32d065(0x245)]=_0x32d065(0x280),_0x2a036d[_0x32d065(0x2f8)]='middle',_0x2a036d[_0x32d065(0x3e0)](String(_0x217a79[_0x32d065(0x3a9)]),_0x217a79['x'],_0x217a79['y']));}),_0x2a036d[_0x33e3d3(0x327)](),this[_0x33e3d3(0x47c)](!0x1),this);}};function hr(_0x5f3a25){const _0x472dda=_0x3d9742;return _0x5f3a25===_0x472dda(0x3d7)||_0x5f3a25===_0x472dda(0x27f)||_0x5f3a25===_0x472dda(0x416);}function gr(_0x40d560){return _0x40d560==='timeline-horizontal'||_0x40d560==='timeline-vertical';}function _r(_0x800b85,_0x46a188){const _0x226177=_0x3d9742;let _0x3757eb=Number[_0x226177(0x1b5)](_0x46a188[_0x226177(0x258)])&&_0x46a188[_0x226177(0x258)]>0x0?_0x46a188[_0x226177(0x258)]:0x1;return{'x':Math['round']((_0x800b85['offsetX']-_0x46a188[_0x226177(0x342)]['x'])/_0x3757eb),'y':Math[_0x226177(0x356)]((_0x800b85[_0x226177(0x227)]-_0x46a188[_0x226177(0x342)]['y'])/_0x3757eb)};}let vr=class extends _0xd55cd7{constructor(_0x5aabec,_0x26753e,_0x56ae06,_0x274dcf,_0x231e74,_0x4acf73,_0x9c5499,_0x4c3981,_0x50a68b){const _0x2fc842=_0x3d9742;super(),this[_0x2fc842(0x457)]=_0x5aabec,this[_0x2fc842(0x2c5)]=_0x26753e,this['_elementStateService']=_0x56ae06,this['_stateService']=_0x274dcf,this[_0x2fc842(0x3af)]=_0x231e74,this['_boardTextEditingService']=_0x4acf73,this[_0x2fc842(0x279)]=_0x9c5499,this['_previewRefreshService']=_0x4c3981,this[_0x2fc842(0x318)]=_0x50a68b,G(this,_0x2fc842(0x433),null),G(this,_0x2fc842(0x440),null),G(this,_0x2fc842(0x1bd),null),G(this,_0x2fc842(0x22a),null),this[_0x2fc842(0x220)]();}[_0x3d9742(0x220)](){const _0x521a26=_0x3d9742;var _0x2b077a,_0x4cd6be,_0x100542;let {scene:_0xe455d9}=this[_0x521a26(0x457)],_0x815fa1=(_0x2b077a=_0xe455d9['getTransformerByCreate'])==null?void 0x0:_0x2b077a[_0x521a26(0x378)](_0xe455d9);_0x815fa1&&(this['disposeWithMe'](_0xdc7696(_0x815fa1['changing$']['pipe'](_0x4021f1(this['dispose$']))[_0x521a26(0x36c)](({objects:_0x3849ee})=>{const _0x57ce14=_0x521a26;this[_0x57ce14(0x392)](_0x3849ee,{'hideRootControls':!0x0});}))),this[_0x521a26(0x2bf)](_0xdc7696(_0x815fa1['changeEnd$'][_0x521a26(0x3db)](_0x4021f1(this[_0x521a26(0x24f)]))['subscribe'](_0x28e785=>{const _0x3fc784=_0x521a26;let _0x186388=_0x28e785==null?void 0x0:_0x28e785[_0x3fc784(0x20a)];this[_0x3fc784(0x392)](_0x186388),setTimeout(()=>this[_0x3fc784(0x392)](_0x186388),0x0);})))),this[_0x521a26(0x2bf)](_0xdc7696(this[_0x521a26(0x28d)][_0x521a26(0x1ca)]['pipe'](_0x4021f1(this['dispose$']))[_0x521a26(0x36c)](()=>this[_0x521a26(0x392)]()))),this[_0x521a26(0x2bf)](_0xdc7696(this[_0x521a26(0x346)][_0x521a26(0x1ca)][_0x521a26(0x3db)](_0x4021f1(this[_0x521a26(0x24f)]))[_0x521a26(0x36c)](()=>this[_0x521a26(0x392)]()))),this['disposeWithMe'](_0xdc7696(this['_boardElementService']['elementUpdate$']['pipe'](_0x4021f1(this[_0x521a26(0x24f)]))['subscribe'](_0x446f88=>{const _0x256795=_0x521a26;let _0x43ef17=this[_0x256795(0x28d)][_0x256795(0x2b1)]()[_0x256795(0x331)];_0x43ef17&&_0x446f88['some'](_0x13afc7=>_0x13afc7[_0x256795(0x1b2)]===_0x43ef17[_0x256795(0x1b2)]&&_0x13afc7[_0x256795(0x2f0)]===_0x43ef17[_0x256795(0x2f0)]&&(_0x13afc7[_0x256795(0x2c6)]===this[_0x256795(0x1bd)]||_0x13afc7[_0x256795(0x2c6)]===this[_0x256795(0x22a)]))&&this[_0x256795(0x392)]();}))),this[_0x521a26(0x2bf)](_0xdc7696(this[_0x521a26(0x1f8)]['refresh$']['pipe'](_0x4021f1(this[_0x521a26(0x24f)]))[_0x521a26(0x36c)](_0x82c3fd=>{const _0x302de5=_0x521a26;let _0x5d0138=this[_0x302de5(0x28d)][_0x302de5(0x2b1)]()[_0x302de5(0x331)];!_0x5d0138||_0x5d0138[_0x302de5(0x1b2)]!==_0x82c3fd[_0x302de5(0x1b2)]||_0x5d0138[_0x302de5(0x2f0)]!==_0x82c3fd[_0x302de5(0x2f0)]||this['_activeScopeId']&&this[_0x302de5(0x22a)]!==_0x82c3fd[_0x302de5(0x275)]||this[_0x302de5(0x392)]();}))),this[_0x521a26(0x2bf)](_0xdc7696(_0xe455d9[_0x521a26(0x216)]['subscribeEvent'](_0x238027=>this[_0x521a26(0x336)](_0x238027)))),this[_0x521a26(0x2bf)](_0xdc7696(_0xe455d9[_0x521a26(0x24d)][_0x521a26(0x484)]({'priority':0x4,'next':([_0x4ba738,_0x35d9c7])=>{const _0x4fdea7=_0x521a26;this[_0x4fdea7(0x257)](_0x4ba738)&&this[_0x4fdea7(0x2b2)](_0x4ba738,_0x35d9c7);}}))),this[_0x521a26(0x2bf)](_0xdc7696(((_0x4cd6be=_0xe455d9[_0x521a26(0x1d3)])==null?void 0x0:_0x4cd6be[_0x521a26(0x484)]({'priority':0x4,'next':([_0x1b135b,_0x5b8255])=>{const _0x4d5882=_0x521a26;this[_0x4d5882(0x1e0)](_0x1b135b)&&this[_0x4d5882(0x2b2)](_0x1b135b,_0x5b8255);}}))??{'dispose':()=>{}})),this[_0x521a26(0x2bf)](_0xdc7696(((_0x100542=_0xe455d9[_0x521a26(0x270)])==null?void 0x0:_0x100542[_0x521a26(0x484)]({'priority':0x4,'next':([_0x144d73,_0x255528])=>{this['_isControlEvent'](_0x144d73)&&this['_consumeControlEvent'](_0x144d73,_0x255528);}}))??{'dispose':()=>{}})),this[_0x521a26(0x2bf)](_0xdc7696(()=>this['_removeObject']())),this[_0x521a26(0x392)]();}[_0x3d9742(0x354)](){const _0x4bb9e4=_0x3d9742;return this['_object']?this[_0x4bb9e4(0x433)]:(this['_object']=new mr(dr),this[_0x4bb9e4(0x25d)](this[_0x4bb9e4(0x433)]),this[_0x4bb9e4(0x457)][_0x4bb9e4(0x214)][_0x4bb9e4(0x201)](this[_0x4bb9e4(0x433)],fr),this[_0x4bb9e4(0x433)]);}[_0x3d9742(0x25d)](_0x27a79c){const _0x5888c2=_0x3d9742;var _0x47b691;(_0x47b691=this[_0x5888c2(0x440)])==null||_0x47b691[_0x5888c2(0x2d2)]();let _0xfe4114=new _0x3144e4();_0xfe4114['add'](_0x27a79c[_0x5888c2(0x24d)][_0x5888c2(0x484)]({'priority':0x4,'next':([_0x172b96,_0x22b899])=>{const _0x3a809c=_0x5888c2;this[_0x3a809c(0x257)](_0x172b96)&&this[_0x3a809c(0x2b2)](_0x172b96,_0x22b899);}})),_0xfe4114[_0x5888c2(0x40c)](_0x27a79c[_0x5888c2(0x1d3)][_0x5888c2(0x484)]({'priority':0x4,'next':([_0x1df37e,_0x245652])=>{const _0x343a42=_0x5888c2;this[_0x343a42(0x1e0)](_0x1df37e)&&this['_consumeControlEvent'](_0x1df37e,_0x245652);}})),_0xfe4114[_0x5888c2(0x40c)](_0x27a79c[_0x5888c2(0x270)][_0x5888c2(0x484)]({'priority':0x4,'next':([_0x443b41,_0x5dfa12])=>{this['_isControlEvent'](_0x443b41)&&this['_consumeControlEvent'](_0x443b41,_0x5dfa12);}})),this[_0x5888c2(0x440)]=_0xfe4114;}[_0x3d9742(0x242)](){const _0xd27bb6=_0x3d9742;var _0x54b33c;this['_object']&&(this[_0xd27bb6(0x457)]['scene'][_0xd27bb6(0x233)]([this[_0xd27bb6(0x433)]]),(_0x54b33c=this[_0xd27bb6(0x440)])==null||_0x54b33c['dispose'](),this[_0xd27bb6(0x440)]=null,this[_0xd27bb6(0x433)]=null,this[_0xd27bb6(0x1bd)]=null,this[_0xd27bb6(0x22a)]=null,this['_renderContext'][_0xd27bb6(0x214)][_0xd27bb6(0x47c)](!0x0));}['_syncControls'](_0x25f574,_0x2d6470){const _0x3e7d21=_0x3d9742;var _0x270017,_0x2e5d74;if(this[_0x3e7d21(0x346)][_0x3e7d21(0x204)]()[_0x3e7d21(0x404)]===_0x3e7d21(0x3b4)){this[_0x3e7d21(0x242)]();return;}let _0x23672b=this['_elementStateService'][_0x3e7d21(0x2b1)](),_0x285dc6=_0x23672b[_0x3e7d21(0x331)],_0x5a695c=_0x23672b[_0x3e7d21(0x1c9)]??_0x23672b[_0x3e7d21(0x363)][0x0];if(!_0x285dc6||!_0x5a695c||_0x23672b[_0x3e7d21(0x363)]['length']!==0x1){this[_0x3e7d21(0x242)]();return;}let _0x3f2340=this[_0x3e7d21(0x2c5)][_0x3e7d21(0x321)](_0x285dc6[_0x3e7d21(0x1b2)],_0x285dc6['subUnitId']),_0x43ab51=_0x3f2340[_0x5a695c],_0x51300d=_0x2329f8(_0x43ab51==null?void 0x0:_0x43ab51[_0x3e7d21(0x1f2)]);if(!_0x43ab51||!_0x51300d){this[_0x3e7d21(0x242)]();return;}let _0x552258=_0x4a409b(_0x285dc6[_0x3e7d21(0x1b2)],_0x5a695c);if(_0x2d6470!=null&&_0x2d6470[_0x3e7d21(0x2ca)]&&_0x51300d[_0x3e7d21(0x390)]==null&&_0x25f574!=null&&_0x25f574[_0x3e7d21(0x38e)](_0x552258)){this[_0x3e7d21(0x242)]();return;}let _0x30ddf9=this['_resolveControlBounds'](_0x3f2340,_0x285dc6[_0x3e7d21(0x1b2)],_0x5a695c,_0x25f574);if(!_0x30ddf9){this[_0x3e7d21(0x242)]();return;}let _0x2c742f=Object[_0x3e7d21(0x2c9)](_0x3f2340)[_0x3e7d21(0x454)](_0x385166=>{const _0x5a6608=_0x3e7d21;var _0x42a4a1;return((_0x42a4a1=_0x2329f8(_0x385166[_0x5a6608(0x1f2)]))==null?void 0x0:_0x42a4a1[_0x5a6608(0x390)])===_0x5a695c;}),_0x4858b7=_0x51300d[_0x3e7d21(0x437)]?this[_0x3e7d21(0x394)](_0x3f2340,_0x5a695c):0x0;this['_activeNodeId']=_0x5a695c,this[_0x3e7d21(0x22a)]=_0x51300d[_0x3e7d21(0x405)];let _0x14bd7d=(_0x270017=_0x3f2340[_0x51300d['structureScopeId']])==null?void 0x0:_0x270017['element'],_0x5464ce=_0x24b789(_0x14bd7d),_0xf76932=_0x14bd7d==null||(_0x2e5d74=_0x14bd7d[_0x3e7d21(0x206)])==null||(_0x2e5d74=_0x2e5d74[_0x3e7d21(0x3f2)])==null||(_0x2e5d74=_0x2e5d74['layout'])==null?void 0x0:_0x2e5d74['structureKind'],_0x36027f=(_0x5464ce==null?void 0x0:_0x5464ce['layout']['structureKind'])??_0xf76932,_0x2c7805=_0x51300d[_0x3e7d21(0x390)]==null,_0x1ee2b2=this['_resolveControlSide'](_0x51300d['side'],_0x2c7805,_0x36027f);this[_0x3e7d21(0x354)]()[_0x3e7d21(0x25f)]({'controls':ur({'bounds':_0x30ddf9,'isRoot':_0x2c7805,'side':_0x1ee2b2,'rootChildSides':this[_0x3e7d21(0x422)](_0x2c7805,_0x36027f),'hasChildren':_0x2c742f[_0x3e7d21(0x32b)]>0x0,'collapsedDescendantCount':_0x4858b7})}),this[_0x3e7d21(0x457)]['scene'][_0x3e7d21(0x47c)](!0x0);}[_0x3d9742(0x307)](_0x2bf14c,_0x547966,_0x494d76){const _0x22b838=_0x3d9742;return _0x494d76===_0x22b838(0x446)?!_0x547966&&(_0x2bf14c===_0x22b838(0x452)||_0x2bf14c===_0x22b838(0x3f8))?_0x2bf14c:'bottom':_0x494d76===_0x22b838(0x451)?!_0x547966&&(_0x2bf14c===_0x22b838(0x362)||_0x2bf14c===_0x22b838(0x46d))?_0x2bf14c:_0x22b838(0x46d):_0x2bf14c===_0x22b838(0x452)?'left':_0x22b838(0x3f8);}[_0x3d9742(0x422)](_0x504ba1,_0x180535){const _0x5d91e8=_0x3d9742;if(_0x504ba1){if(hr(_0x180535))return['bottom'];if(_0x180535==='timeline-horizontal')return['right'];if(_0x180535==='timeline-vertical')return[_0x5d91e8(0x46d)];}}['_resolveCreateChildSide'](_0x106863){const _0x590834=_0x3d9742;var _0xb84314,_0x2b4f53;let _0x3cb0e0=this['_elementStateService'][_0x590834(0x2b1)]()['context'];if(!_0x3cb0e0||!this[_0x590834(0x1bd)])return;let _0x374613=this[_0x590834(0x2c5)][_0x590834(0x321)](_0x3cb0e0['unitId'],_0x3cb0e0[_0x590834(0x2f0)]),_0x1e0879=_0x2329f8((_0xb84314=_0x374613[this[_0x590834(0x1bd)]])==null?void 0x0:_0xb84314['element']),_0xd035d=_0x1e0879?_0x24b789((_0x2b4f53=_0x374613[_0x1e0879[_0x590834(0x405)]])==null?void 0x0:_0x2b4f53[_0x590834(0x1f2)]):null;if(!((_0x1e0879==null?void 0x0:_0x1e0879[_0x590834(0x390)])==null&&(hr(_0xd035d==null?void 0x0:_0xd035d[_0x590834(0x3e2)][_0x590834(0x47f)])||gr(_0xd035d==null?void 0x0:_0xd035d[_0x590834(0x3e2)]['structureKind']))))return _0x106863==='add-child-left'?'left':_0x106863===_0x590834(0x28c)?'top':_0x106863===_0x590834(0x432)?_0x590834(0x46d):'right';}[_0x3d9742(0x413)](_0x38b427,_0x4fa488,_0x533df0,_0x36df11){const _0x6d0510=_0x3d9742;var _0x17e36,_0x390937;let _0x4b2ceb=_0x4a409b(_0x4fa488,_0x533df0),_0x228a08=_0x36df11==null?void 0x0:_0x36df11['get'](_0x4b2ceb),_0x2d29d7=this[_0x6d0510(0x224)](_0x228a08);if(_0x2d29d7)return _0x2d29d7;let _0x4d2734=this['_renderContext'][_0x6d0510(0x214)],_0x3e50ab=((_0x17e36=_0x4d2734[_0x6d0510(0x19f)])==null?void 0x0:_0x17e36[_0x6d0510(0x378)](_0x4d2734,_0x4b2ceb))??((_0x390937=_0x4d2734[_0x6d0510(0x423)])==null?void 0x0:_0x390937['call'](_0x4d2734,_0x4b2ceb));return this[_0x6d0510(0x224)](_0x3e50ab)||_0x58d07c(_0x38b427,_0x533df0);}['_toFiniteBounds'](_0x271be8){const _0x552fbd=_0x3d9742;return _0x271be8&&Number['isFinite'](_0x271be8[_0x552fbd(0x452)])&&Number[_0x552fbd(0x1b5)](_0x271be8[_0x552fbd(0x362)])&&Number[_0x552fbd(0x1b5)](_0x271be8[_0x552fbd(0x2cd)])&&Number[_0x552fbd(0x1b5)](_0x271be8['height'])?{'left':_0x271be8['left'],'top':_0x271be8['top'],'width':_0x271be8[_0x552fbd(0x2cd)],'height':_0x271be8['height']}:null;}[_0x3d9742(0x394)](_0x563c56,_0x5bc655){const _0x474d43=_0x3d9742;return Object[_0x474d43(0x2c9)](_0x563c56)[_0x474d43(0x454)](_0x200b70=>{const _0x1bb32b=_0x474d43;var _0x481ccd;return((_0x481ccd=_0x2329f8(_0x200b70[_0x1bb32b(0x1f2)]))==null?void 0x0:_0x481ccd[_0x1bb32b(0x390)])===_0x5bc655;})['reduce']((_0x182375,_0x4317db)=>_0x182375+0x1+this[_0x474d43(0x394)](_0x563c56,_0x4317db['elementId']),0x0);}[_0x3d9742(0x336)](_0x3666a1){const _0x541d95=_0x3d9742;if(!this['_object'])return;let _0x5d07a3=this[_0x541d95(0x346)]['getState'](),_0x19314e=_r(_0x3666a1,{'panOffset':_0x5d07a3['viewportPanOffset'],'zoomRatio':_0x5d07a3[_0x541d95(0x258)]});this['_object'][_0x541d95(0x430)](this[_0x541d95(0x433)]['getHitControl'](_0x19314e));}[_0x3d9742(0x257)](_0x3276ee){const _0x5a9b5c=_0x3d9742;if(!this['_object']||!this[_0x5a9b5c(0x1bd)]||(_0x3276ee['button']??0x0)!==0x0)return!0x1;let _0x274b9b=this[_0x5a9b5c(0x28d)][_0x5a9b5c(0x2b1)]()['context'];if(!_0x274b9b)return!0x1;let _0x5782c7=this['_stateService'][_0x5a9b5c(0x204)](),_0x596e08=_r(_0x3276ee,{'panOffset':_0x5782c7[_0x5a9b5c(0x26e)],'zoomRatio':_0x5782c7[_0x5a9b5c(0x258)]}),_0x95e95=this['_object'][_0x5a9b5c(0x1f6)](_0x596e08);if(!_0x95e95)return!0x1;if(_0x95e95[_0x5a9b5c(0x349)]===_0x5a9b5c(0x23d))return this[_0x5a9b5c(0x353)](_0x108bd7['id'],{'unitId':_0x274b9b[_0x5a9b5c(0x1b2)],'subUnitId':_0x274b9b[_0x5a9b5c(0x2f0)],'nodeId':this['_activeNodeId']}),!0x0;if(_0x95e95[_0x5a9b5c(0x349)]==='add-child-left'||_0x95e95[_0x5a9b5c(0x349)]===_0x5a9b5c(0x2f7)||_0x95e95[_0x5a9b5c(0x349)]===_0x5a9b5c(0x28c)||_0x95e95['kind']==='add-child-bottom'){let _0x42cc75=_0x46ed23(0x6);return this['_executeCreateAndEdit'](_0x2f341c['id'],{'unitId':_0x274b9b[_0x5a9b5c(0x1b2)],'subUnitId':_0x274b9b[_0x5a9b5c(0x2f0)],'parentNodeId':this[_0x5a9b5c(0x1bd)],'side':this[_0x5a9b5c(0x3c0)](_0x95e95[_0x5a9b5c(0x349)]),'nodeId':_0x42cc75,'connectorId':_0x46ed23(0x6),'text':this[_0x5a9b5c(0x279)]['t'](_0x5a9b5c(0x2c8))},_0x42cc75),!0x0;}if(_0x95e95[_0x5a9b5c(0x349)]===_0x5a9b5c(0x45e)||_0x95e95[_0x5a9b5c(0x349)]===_0x5a9b5c(0x1ef)){let _0x3ac2f0=_0x46ed23(0x6);return this[_0x5a9b5c(0x2db)](_0x97b05c['id'],{'unitId':_0x274b9b[_0x5a9b5c(0x1b2)],'subUnitId':_0x274b9b[_0x5a9b5c(0x2f0)],'nodeId':this[_0x5a9b5c(0x1bd)],'placement':_0x95e95[_0x5a9b5c(0x1fd)]??(_0x95e95[_0x5a9b5c(0x349)]===_0x5a9b5c(0x45e)?'before':_0x5a9b5c(0x3d4)),'siblingNodeId':_0x3ac2f0,'connectorId':_0x46ed23(0x6),'text':this[_0x5a9b5c(0x279)]['t']('boards-mind-ui.panel.addText')},_0x3ac2f0),!0x0;}return!0x0;}[_0x3d9742(0x1e0)](_0x348a96){const _0x304956=_0x3d9742;if(!this['_object']||(_0x348a96[_0x304956(0x199)]??0x0)!==0x0)return!0x1;let _0x410ad5=this[_0x304956(0x346)][_0x304956(0x204)](),_0x2de9e0=_r(_0x348a96,{'panOffset':_0x410ad5[_0x304956(0x26e)],'zoomRatio':_0x410ad5[_0x304956(0x258)]});return!!this[_0x304956(0x433)][_0x304956(0x1f6)](_0x2de9e0);}[_0x3d9742(0x2b2)](_0x5794da,_0x1d0e7c){const _0x3b9c32=_0x3d9742;var _0x278d33,_0x4bfcd5;_0x1d0e7c['stopPropagation'](),(_0x278d33=_0x5794da[_0x3b9c32(0x35b)])==null||_0x278d33['call'](_0x5794da),(_0x4bfcd5=_0x5794da[_0x3b9c32(0x1dd)])==null||_0x4bfcd5[_0x3b9c32(0x378)](_0x5794da);}[_0x3d9742(0x353)](_0x33a4e9,_0x1bf439){const _0x1bdd9f=_0x3d9742;let _0x4bf541=this['_activeScopeId'];this['_undoRedoGroupService'][_0x1bdd9f(0x1a1)](_0x1bf439['unitId'],()=>{const _0x598e38=_0x1bdd9f;!this['_commandService']['syncExecuteCommand'](_0x33a4e9,_0x1bf439)||!_0x4bf541||(this[_0x598e38(0x3af)][_0x598e38(0x3b3)](_0x46019e['id'],{'unitId':_0x1bf439[_0x598e38(0x1b2)],'subUnitId':_0x1bf439[_0x598e38(0x2f0)],'scopeId':_0x4bf541}),this[_0x598e38(0x392)]());});}['_executeCreateAndEdit'](_0x5745e9,_0x1dadb4,_0x3475da){const _0x43df00=_0x3d9742;let _0x45fed7={'unitId':_0x1dadb4[_0x43df00(0x1b2)],'subUnitId':_0x1dadb4[_0x43df00(0x2f0)]},_0xbde22a=this['_commandService'][_0x43df00(0x3c9)](_0x5745e9,_0x1dadb4);Promise['resolve'](_0xbde22a)[_0x43df00(0x3a8)](_0x1176aa=>{const _0x5abff5=_0x43df00;_0x1176aa&&(this[_0x5abff5(0x392)](),this['_elementStateService'][_0x5abff5(0x3d3)](_0x45fed7,[_0x3475da],_0x3475da),this[_0x5abff5(0x471)][_0x5abff5(0x1c0)](),this[_0x5abff5(0x471)][_0x5abff5(0x406)]({..._0x45fed7,'shapeId':_0x3475da,'shapeKey':_0x4a409b(_0x45fed7[_0x5abff5(0x1b2)],_0x3475da),'visible':!0x0}));});}};vr=q([K(0x1,_0x45c8ba(_0x6adb2b)),K(0x2,_0x45c8ba(_0x1bd113)),K(0x3,_0x45c8ba(_0x1d4c5c)),K(0x4,_0x234c21),K(0x5,_0x45c8ba(_0x36fa6f)),K(0x6,_0x45c8ba(_0x3df9f7)),K(0x7,_0x45c8ba(or)),K(0x8,_0x45c8ba(_0x5dbd59))],vr);const yr=_0x3d9742(0x40e);let br=class extends _0xd55cd7{constructor(_0x17e5e1,_0xf25b2){const _0x9d1ad6=_0x3d9742;super(),this['_commandService']=_0x17e5e1,this[_0x9d1ad6(0x2e9)]=_0xf25b2,this['_init']();}['_init'](){const _0x3e31a6=_0x3d9742;this[_0x3e31a6(0x2bf)](this[_0x3e31a6(0x2e9)]['registerShortcut'](this[_0x3e31a6(0x2b4)]()));}[_0x3d9742(0x2b4)](){const _0x4d6eb8=_0x3d9742;return{'id':_0x342a34,'binding':_0x31cd21['ENTER']|_0x56d8a8[_0x4d6eb8(0x2aa)],'priority':0x3e8,'preconditions':_0x12fa46=>_0x12fa46[_0x4d6eb8(0x264)](_0x4d6eb8(0x40e))&&this[_0x4d6eb8(0x3af)][_0x4d6eb8(0x483)](_0x342a34)};}};br=q([K(0x0,_0x234c21),K(0x1,_0x4c004d)],br);const xr=[pn,mn,yr];let Sr=class extends _0xd55cd7{constructor(_0x4fe574,_0x2c11f9,_0x483f51,_0x20387b,_0x3cbd0e){const _0x3d6e1f=_0x3d9742;super(),this[_0x3d6e1f(0x457)]=_0x4fe574,this['_boardElementService']=_0x2c11f9,this[_0x3d6e1f(0x28d)]=_0x483f51,this[_0x3d6e1f(0x434)]=_0x20387b,this[_0x3d6e1f(0x2d7)]=_0x3cbd0e,G(this,_0x3d6e1f(0x3c1),!0x1),this['disposeWithMe'](_0xdc7696(this[_0x3d6e1f(0x457)][_0x3d6e1f(0x431)]['pipe'](_0x4021f1(this[_0x3d6e1f(0x24f)]))[_0x3d6e1f(0x36c)](_0xd47d54=>{const _0x5700cb=_0x3d6e1f;this[_0x5700cb(0x3c1)]=_0xd47d54,this[_0x5700cb(0x2ea)]();}))),this[_0x3d6e1f(0x2bf)](_0xdc7696(this[_0x3d6e1f(0x28d)][_0x3d6e1f(0x1ca)][_0x3d6e1f(0x3db)](_0x4021f1(this[_0x3d6e1f(0x24f)]))['subscribe'](()=>{const _0x64955c=_0x3d6e1f;this[_0x64955c(0x2ea)]();}))),this[_0x3d6e1f(0x2bf)](_0xdc7696(this[_0x3d6e1f(0x434)]['editingParams$']['pipe'](_0x4021f1(this['dispose$']))[_0x3d6e1f(0x36c)](()=>{this['_syncContext']();}))),this[_0x3d6e1f(0x2ea)]();}[_0x3d9742(0x2ea)](){const _0x44be88=_0x3d9742;var _0x58dafc,_0x1dad99;let _0xa10738=this[_0x44be88(0x28d)]['getSnapshot'](),_0x3abb24=this[_0x44be88(0x434)]['getEditing'](),_0x189bfa=_0x3abb24!=null&&_0x3abb24[_0x44be88(0x1b3)]?_0x3abb24[_0x44be88(0x45b)]:_0xa10738[_0x44be88(0x289)],_0x3ce9bb=_0xa10738[_0x44be88(0x1c9)]??_0xa10738[_0x44be88(0x363)][0x0],_0x54106d=_0xa10738[_0x44be88(0x331)]??{'unitId':this[_0x44be88(0x457)][_0x44be88(0x1b2)],'subUnitId':this[_0x44be88(0x457)][_0x44be88(0x425)][_0x44be88(0x3cb)]()},_0x53d711=this[_0x44be88(0x3c1)]&&!!_0x3ce9bb&&_0xa10738[_0x44be88(0x363)][_0x44be88(0x32b)]===0x1&&!_0x189bfa&&!_0xa10738[_0x44be88(0x1ab)],_0x20bd2d=this['_isActive']?this[_0x44be88(0x2c5)][_0x44be88(0x321)](_0x54106d[_0x44be88(0x1b2)],_0x54106d['subUnitId']):{};this[_0x44be88(0x2d7)]['setContextValue'](pn,_0x53d711&&!!_0x2329f8((_0x58dafc=_0x20bd2d[_0x3ce9bb])==null?void 0x0:_0x58dafc[_0x44be88(0x1f2)])),this['_contextService']['setContextValue'](mn,this[_0x44be88(0x3c1)]&&_0xa10738[_0x44be88(0x363)][_0x44be88(0x32b)]===0x0&&!_0xa10738[_0x44be88(0x1c9)]&&!_0x189bfa&&!_0xa10738[_0x44be88(0x1ab)]),this[_0x44be88(0x2d7)][_0x44be88(0x45f)](yr,!!_0x189bfa&&!!_0x2329f8((_0x1dad99=_0x20bd2d[_0x189bfa])==null?void 0x0:_0x1dad99[_0x44be88(0x1f2)]));}[_0x3d9742(0x2d2)](){this['_resetContext'](),super['dispose']();}['_resetContext'](){const _0x27ece3=_0x3d9742;xr[_0x27ece3(0x44a)](_0x1c0fb1=>this[_0x27ece3(0x2d7)][_0x27ece3(0x45f)](_0x1c0fb1,!0x1));}};Sr=q([K(0x1,_0x45c8ba(_0x6adb2b)),K(0x2,_0x45c8ba(_0x1bd113)),K(0x3,_0x45c8ba(_0x36fa6f)),K(0x4,_0xa168f2)],Sr);const Cr=[_0x3d9742(0x1e8),_0x3d9742(0x3e2),_0x3d9742(0x43c)];_0x43d9d8[_0x3d9742(0x243)],_0x43d9d8[_0x3d9742(0x19e)],_0x43d9d8[_0x3d9742(0x479)];const wr=[{'labelKey':'boards-mind-ui.panel.spacing.parentGap','key':_0x3d9742(0x243),..._0xf77dd2[_0x3d9742(0x243)]},{'labelKey':_0x3d9742(0x419),'key':_0x3d9742(0x19e),..._0xf77dd2['siblingGap']},{'labelKey':_0x3d9742(0x43a),'key':'branchGap',..._0xf77dd2[_0x3d9742(0x479)]}],Tr=[{'labelKey':_0x3d9742(0x40d),'value':_0x3d9742(0x3f8)},{'labelKey':_0x3d9742(0x3e8),'value':_0x3d9742(0x452)},{'labelKey':_0x3d9742(0x29a),'value':_0x3d9742(0x1ce)}],Er=[{'labelKey':_0x3d9742(0x400),'value':'mindmap-horizontal'},{'labelKey':_0x3d9742(0x32d),'value':_0x3d9742(0x451)},{'labelKey':'boards-mind-ui.panel.structureKind.treeRight','value':_0x3d9742(0x27f)},{'labelKey':_0x3d9742(0x19b),'value':_0x3d9742(0x3d7)},{'labelKey':_0x3d9742(0x2f2),'value':'tree-alternate'},{'labelKey':_0x3d9742(0x3e7),'value':'timeline-horizontal'},{'labelKey':'boards-mind-ui.panel.structureKind.timelineVertical','value':_0x3d9742(0x446)}],Dr=[{'labelKey':_0x3d9742(0x33f),'value':'curve'},{'labelKey':_0x3d9742(0x377),'value':_0x3d9742(0x3d1)},{'labelKey':'boards-mind-ui.panel.branchLineType.orthogonal','value':_0x3d9742(0x249)}];function Or(_0x5a7719){const _0x3bb16d=_0x3d9742;let _0x557392=(_0x5a7719==null?void 0x0:_0x5a7719[_0x3bb16d(0x47f)])??_0x43d9d8['structureKind'];return{'spacing':{'horizontalGap':(_0x5a7719==null?void 0x0:_0x5a7719['horizontalGap'])??_0x43d9d8['horizontalGap'],'siblingGap':(_0x5a7719==null?void 0x0:_0x5a7719[_0x3bb16d(0x19e)])??_0x43d9d8[_0x3bb16d(0x19e)],'branchGap':(_0x5a7719==null?void 0x0:_0x5a7719[_0x3bb16d(0x479)])??_0x43d9d8[_0x3bb16d(0x479)]},'direction':(_0x5a7719==null?void 0x0:_0x5a7719[_0x3bb16d(0x47e)])??_0x43d9d8[_0x3bb16d(0x47e)],'structureKind':_0x557392,'branchLineType':_0x490e3e(_0x557392,_0x5a7719==null?void 0x0:_0x5a7719['branchLineType'])};}async function kr(_0x2dbfb0,_0x2324a0){const _0x193538=_0x3d9742;return await Promise[_0x193538(0x42c)](_0x2dbfb0[_0x193538(0x3c9)](_0x54ccd8['id'],_0x2324a0))?(await Promise[_0x193538(0x42c)](_0x2dbfb0['executeCommand'](_0x46019e['id'],{'unitId':_0x2324a0[_0x193538(0x1b2)],'subUnitId':_0x2324a0['subUnitId'],'scopeId':_0x2324a0[_0x193538(0x275)]})),!0x0):!0x1;}async function Ar(_0x370b30,_0x1aa01a){const _0x40f3f=_0x3d9742;return await Promise[_0x40f3f(0x42c)](_0x370b30[_0x40f3f(0x3c9)](_0x5ee918['id'],_0x1aa01a))?(await Promise['resolve'](_0x370b30[_0x40f3f(0x3c9)](_0x46019e['id'],{'unitId':_0x1aa01a['unitId'],'subUnitId':_0x1aa01a[_0x40f3f(0x2f0)],'scopeId':_0x1aa01a[_0x40f3f(0x275)]})),!0x0):!0x1;}async function jr(_0x7c4203,_0xdf04a3){const _0x28cde4=_0x3d9742;return await Promise['resolve'](_0x7c4203[_0x28cde4(0x3c9)](_0x54ccd8['id'],{'unitId':_0xdf04a3[_0x28cde4(0x1b2)],'subUnitId':_0xdf04a3['subUnitId'],'scopeId':_0xdf04a3[_0x28cde4(0x275)],..._0xdf04a3[_0x28cde4(0x243)]===void 0x0?{}:{'horizontalGap':_0xdf04a3[_0x28cde4(0x243)]},..._0xdf04a3[_0x28cde4(0x19e)]===void 0x0?{}:{'siblingGap':_0xdf04a3[_0x28cde4(0x19e)]},..._0xdf04a3['branchGap']===void 0x0?{}:{'branchGap':_0xdf04a3[_0x28cde4(0x479)]}}))?(await Promise['resolve'](_0x7c4203['executeCommand'](_0x46019e['id'],{'unitId':_0xdf04a3['unitId'],'subUnitId':_0xdf04a3['subUnitId'],'scopeId':_0xdf04a3[_0x28cde4(0x275)]})),!0x0):!0x1;}async function Mr(_0x44168e,_0xb86ce){const _0x12800e=_0x3d9742;return _0xb86ce[_0x12800e(0x2d3)]===_0xb86ce[_0x12800e(0x1e3)]||!await Promise['resolve'](_0x44168e[_0x12800e(0x3c9)](_0xad8871['id'],{'unitId':_0xb86ce[_0x12800e(0x1b2)],'subUnitId':_0xb86ce[_0x12800e(0x2f0)],'nodeId':_0xb86ce[_0x12800e(0x2d3)],'targetNodeId':_0xb86ce[_0x12800e(0x1e3)],'referenceNodeId':_0xb86ce[_0x12800e(0x1e3)],'placement':_0xb86ce[_0x12800e(0x1fd)]}))?!0x1:(await Promise[_0x12800e(0x42c)](_0x44168e[_0x12800e(0x3c9)](_0x46019e['id'],{'unitId':_0xb86ce[_0x12800e(0x1b2)],'subUnitId':_0xb86ce[_0x12800e(0x2f0)],'scopeId':_0xb86ce[_0x12800e(0x275)]})),!0x0);}async function Nr(_0x1d1cd0,_0x1c7731){const _0x2ddc30=_0x3d9742;let _0x3e256f=_0x1c7731['text'][_0x2ddc30(0x29d)]();return!_0x3e256f||!await Promise[_0x2ddc30(0x42c)](_0x1d1cd0[_0x2ddc30(0x3c9)](_0x17468f['id'],{'unitId':_0x1c7731[_0x2ddc30(0x1b2)],'subUnitId':_0x1c7731['subUnitId'],'nodeId':_0x1c7731[_0x2ddc30(0x2d3)],'text':_0x3e256f}))?!0x1:(await Promise['resolve'](_0x1d1cd0['executeCommand'](_0x46019e['id'],{'unitId':_0x1c7731[_0x2ddc30(0x1b2)],'subUnitId':_0x1c7731[_0x2ddc30(0x2f0)],'scopeId':_0x1c7731['scopeId']})),!0x0);}async function Pr(_0x244007){const _0x2034f8=_0x3d9742;var _0x4cc9ee;let _0xdd455a=(_0x4cc9ee=globalThis[_0x2034f8(0x1e4)])==null?void 0x0:_0x4cc9ee[_0x2034f8(0x3c8)];return _0xdd455a!=null&&_0xdd455a[_0x2034f8(0x322)]?(await _0xdd455a['writeText'](_0x244007),!0x0):!0x1;}async function Fr(_0x171494,_0x57e10b,_0x22987f=Pr){const _0x5653d9=_0x3d9742;let _0x23ef76=await Promise[_0x5653d9(0x42c)](_0x171494[_0x5653d9(0x3c9)](_0x4aaf06['id'],_0x57e10b));if(typeof _0x23ef76!=_0x5653d9(0x347)||!_0x23ef76)return!0x1;try{return await _0x22987f(_0x23ef76)!==!0x1;}catch{return!0x1;}}async function Ir(_0x2a3f16,_0x4859dd){const _0x40d54b=_0x3d9742;if(!_0x4859dd[_0x40d54b(0x3de)][_0x40d54b(0x29d)]())return!0x1;let _0x334184=await Promise[_0x40d54b(0x42c)](_0x2a3f16[_0x40d54b(0x3c9)](_0x500911['id'],_0x4859dd));return typeof _0x334184==_0x40d54b(0x2b5)&&!!_0x334184&&_0x334184[_0x40d54b(0x324)]===!0x0;}function Lr(_0x269597,_0x10141f){const _0x534f8e=_0x3d9742;let _0x47dd1c=_0x10141f[_0x534f8e(0x29d)]()[_0x534f8e(0x332)]();return _0x47dd1c?_0x269597[_0x534f8e(0x454)](_0x18e830=>_0x18e830[_0x534f8e(0x409)]['toLowerCase']()[_0x534f8e(0x33e)](_0x47dd1c)):_0x269597;}function Rr(_0x2a556b){const _0xd71294=_0x3d9742;return{'paddingInlineStart':0x8+(Number[_0xd71294(0x1b5)](_0x2a556b)&&_0x2a556b>0x0?_0x2a556b:0x0)*0x10};}function zr(_0x20346a){const _0x353237=_0x3d9742;return _0x5d87b6('section',{'className':_0x53cc5f(_0x353237(0x23c),_0x223ab4),'data-board-mind-map-panel-section':_0x353237(0x337),'children':[_0xeb0434('h3',{'className':_0x353237(0x198),'children':_0x20346a[_0x353237(0x41c)]}),_0x20346a[_0x353237(0x2fc)]]});}function Br(_0x5af88e){const _0x2ac640=_0x3d9742;let _0x9a9f45=_0x881b68(_0x234c21),_0x591cd4=_0x881b68(_0x1bd113),_0x7514aa=_0x881b68(_0x3df9f7),_0x4317f8=_0x5af88e[_0x2ac640(0x361)]??[],[_0x3e0980,_0x534f89]=_0x3c130b(''),[_0x34626e,_0x20724e]=_0x3c130b(null),[_0x4b626f,_0x4570e4]=_0x3c130b(''),_0x770db5=Or(_0x5af88e[_0x2ac640(0x3e2)]),[_0x15cc22,_0x3f039d]=_0x3c130b(_0x770db5[_0x2ac640(0x36b)]),[_0x3f6e27,_0x42eb96]=_0x3c130b(_0x770db5[_0x2ac640(0x47e)]),[_0x1fb85f,_0x10e093]=_0x3c130b(_0x770db5[_0x2ac640(0x47f)]),[_0x50515d,_0x5111c3]=_0x3c130b(_0x770db5[_0x2ac640(0x2de)]),[_0x286bfa,_0x4f2ec3]=_0x3c130b({'layout':_0x5af88e['layout'],'scopeId':_0x5af88e['scopeId']}),[_0x463a89,_0x5194d0]=_0x3c130b(null),[_0x46f3da,_0x2231e3]=_0x3c130b('structure'),_0x17832c=Lr(_0x4317f8,_0x3e0980),_0x8934eb={'unitId':_0x5af88e[_0x2ac640(0x1b2)],'subUnitId':_0x5af88e[_0x2ac640(0x2f0)],'scopeId':_0x5af88e[_0x2ac640(0x275)]},_0x56b28c=Cr['map'](_0x5edae8=>({'label':_0x7514aa['t'](_0x2ac640(0x370)+_0x5edae8),'value':_0x5edae8})),_0x4299f1=Dr[_0x2ac640(0x454)](_0x591103=>_0x591103[_0x2ac640(0x2b8)]!=='curve'||_0x2045a1(_0x1fb85f)),_0x3ff5b9=_0x191b16=>{_0x42eb96(_0x191b16),kr(_0x9a9f45,{..._0x8934eb,'direction':_0x191b16});};if(_0x286bfa[_0x2ac640(0x3e2)]!==_0x5af88e['layout']||_0x286bfa[_0x2ac640(0x275)]!==_0x5af88e[_0x2ac640(0x275)]){let _0x55083a=Or(_0x5af88e[_0x2ac640(0x3e2)]);_0x4f2ec3({'layout':_0x5af88e[_0x2ac640(0x3e2)],'scopeId':_0x5af88e[_0x2ac640(0x275)]}),_0x3f039d(_0x55083a[_0x2ac640(0x36b)]),_0x42eb96(_0x55083a[_0x2ac640(0x47e)]),_0x10e093(_0x55083a[_0x2ac640(0x47f)]),_0x5111c3(_0x55083a['branchLineType']);}let _0x446a4e=_0x1122b3=>{let _0x50f155=_0x490e3e(_0x1122b3,_0x50515d);_0x10e093(_0x1122b3),_0x5111c3(_0x50f155),kr(_0x9a9f45,{..._0x8934eb,'structureKind':_0x1122b3,..._0x50f155===_0x50515d?null:{'branchLineType':_0x50f155}});},_0x15d319=_0x2d38e7=>{let _0x193677=_0x490e3e(_0x1fb85f,_0x2d38e7);_0x5111c3(_0x193677),Ar(_0x9a9f45,{..._0x8934eb,'branchLineType':_0x193677});},_0x34f8ac=(_0x546689,_0x52cb78)=>{let _0x3ee164={..._0x15cc22,[_0x546689]:_0x52cb78};_0x3f039d(_0x3ee164),jr(_0x9a9f45,{..._0x8934eb,..._0x3ee164});},_0x2ed682=()=>{const _0x52bef3=_0x2ac640;Ir(_0x9a9f45,{'unitId':_0x5af88e['unitId'],'subUnitId':_0x5af88e[_0x52bef3(0x2f0)],'left':0x78,'top':0x78,'opml':_0x4b626f})[_0x52bef3(0x3a8)](_0xbdd473=>{_0xbdd473&&_0x4570e4('');});},_0x3334f2=()=>{Fr(_0x9a9f45,_0x8934eb);},_0x408a19=(_0x3c356b,_0x1833e1)=>{_0x20724e({'nodeId':_0x3c356b,'text':_0x1833e1});},_0x2dbcb2=()=>{const _0xf54acf=_0x2ac640;_0x34626e&&Nr(_0x9a9f45,{..._0x8934eb,'nodeId':_0x34626e[_0xf54acf(0x2d3)],'text':_0x34626e['text']})[_0xf54acf(0x3a8)](_0x935601=>{_0x935601&&_0x20724e(null);});},_0x56f7fc=(_0x30a9ad,_0x29b948)=>{const _0x26a3ee=_0x2ac640;if(_0x30a9ad[_0x26a3ee(0x35b)](),!_0x463a89||_0x463a89===_0x29b948)return;let _0x37e613=_0x30a9ad['currentTarget'][_0x26a3ee(0x1a6)](),_0x171980=_0x30a9ad[_0x26a3ee(0x225)]<_0x37e613['top']+_0x37e613['height']/0x2?_0x26a3ee(0x444):_0x26a3ee(0x3d4);_0x5194d0(null),Mr(_0x9a9f45,{..._0x8934eb,'nodeId':_0x463a89,'targetNodeId':_0x29b948,'placement':_0x171980});};return _0x5d87b6('div',{'className':'univer-size-full\x20univer-bg-gray-0\x20univer-text-sm\x20univer-text-gray-700\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-200','data-board-mind-map-panel':'true','children':[_0xeb0434(_0x2ac640(0x272),{'className':_0x53cc5f('univer-border-b\x20univer-border-gray-200\x20univer-p-3',_0x223ab4),'data-board-mind-map-panel-tabs':_0x2ac640(0x337),'children':_0xeb0434(_0x2c3c9e,{'className':'univer-w-full\x20univer-text-xs','items':_0x56b28c,'value':_0x46f3da,'onChange':_0x554cfe=>_0x2231e3(_0x554cfe)})}),_0x46f3da===_0x2ac640(0x1e8)&&_0xeb0434(zr,{'title':_0x7514aa['t'](_0x2ac640(0x29b)),'children':_0x5d87b6(_0x2ac640(0x272),{'children':[_0xeb0434(_0x491ceb,{'slot':_0xeb0434(_0x5a64a7,{}),'value':_0x3e0980,'placeholder':_0x7514aa['t'](_0x2ac640(0x283)),'className':_0x2ac640(0x1b6),'onChange':_0x534f89}),_0x17832c[_0x2ac640(0x32b)]?_0xeb0434('ol',{'className':_0x2ac640(0x418),'children':_0x17832c[_0x2ac640(0x2e1)](_0x5ae1db=>_0xeb0434('li',{'draggable':!0x0,'className':_0x2ac640(0x2c3),'style':Rr(_0x5ae1db[_0x2ac640(0x46e)]),'onDragStart':_0xfab49=>{const _0x2a4fe5=_0x2ac640;var _0x19ddcd;_0x5194d0(_0x5ae1db[_0x2a4fe5(0x2d3)]),(_0x19ddcd=_0xfab49[_0x2a4fe5(0x1eb)])==null||_0x19ddcd['setData'](_0x2a4fe5(0x236),_0x5ae1db[_0x2a4fe5(0x2d3)]),_0xfab49['dataTransfer']&&(_0xfab49[_0x2a4fe5(0x1eb)]['effectAllowed']=_0x2a4fe5(0x3ae));},'onDragOver':_0xc9cf2c=>{const _0x5d7c71=_0x2ac640;_0xc9cf2c[_0x5d7c71(0x35b)](),_0xc9cf2c[_0x5d7c71(0x1eb)]&&(_0xc9cf2c[_0x5d7c71(0x1eb)]['dropEffect']=_0x5d7c71(0x3ae));},'onDrop':_0x2b06b8=>_0x56f7fc(_0x2b06b8,_0x5ae1db[_0x2ac640(0x2d3)]),'onDragEnd':()=>_0x5194d0(null),'children':(_0x34626e==null?void 0x0:_0x34626e[_0x2ac640(0x2d3)])===_0x5ae1db[_0x2ac640(0x2d3)]?_0x5d87b6('div',{'className':'univer-flex\x20univer-min-w-0\x20univer-flex-1\x20univer-items-center\x20univer-gap-1','children':[_0xeb0434(_0x491ceb,{'autoFocus':!0x0,'size':_0x2ac640(0x367),'value':_0x34626e['text'],'onChange':_0x24fc1b=>_0x20724e({'nodeId':_0x5ae1db[_0x2ac640(0x2d3)],'text':_0x24fc1b}),'onKeyDown':_0x399f7a=>{const _0x3bd065=_0x2ac640;_0x399f7a[_0x3bd065(0x1c3)]==='Enter'&&_0x2dbcb2(),_0x399f7a[_0x3bd065(0x1c3)]==='Escape'&&_0x20724e(null);}}),_0xeb0434(_0x2442d7,{'size':_0x2ac640(0x367),'variant':_0x2ac640(0x1a7),'disabled':!_0x34626e[_0x2ac640(0x409)][_0x2ac640(0x29d)](),'onClick':_0x2dbcb2,'children':_0x7514aa['t']('boards-mind-ui.panel.rename')}),_0xeb0434(_0x2442d7,{'size':'small','variant':_0x2ac640(0x2e8),'onClick':()=>_0x20724e(null),'children':_0x7514aa['t'](_0x2ac640(0x282))})]}):_0x5d87b6(_0x253a8e,{'children':[_0xeb0434(_0x2442d7,{'size':'small','variant':_0x2ac640(0x33d),'className':_0x2ac640(0x287),'onClick':()=>_0x591cd4['selectElements']({'unitId':_0x5af88e[_0x2ac640(0x1b2)],'subUnitId':_0x5af88e[_0x2ac640(0x2f0)]},[_0x5ae1db[_0x2ac640(0x2d3)]],_0x5ae1db['nodeId']),'children':_0x5ae1db[_0x2ac640(0x409)]}),_0xeb0434(_0x2442d7,{'className':_0x2ac640(0x219),'size':'small','variant':'default','onClick':()=>_0x408a19(_0x5ae1db[_0x2ac640(0x2d3)],_0x5ae1db[_0x2ac640(0x409)]),'children':_0x7514aa['t']('boards-mind-ui.panel.rename')})]})},_0x5ae1db[_0x2ac640(0x2d3)]))}):_0xeb0434(_0x2ac640(0x272),{'className':_0x2ac640(0x35a),'data-board-mind-map-panel-empty-state':_0x2ac640(0x337),'children':_0x7514aa['t']('boards-mind-ui.panel.emptyNodes')})]})}),_0x46f3da==='layout'&&_0xeb0434(zr,{'title':_0x7514aa['t'](_0x2ac640(0x357)),'children':_0x5d87b6(_0x2ac640(0x272),{'className':'univer-space-y-3','children':[_0xeb0434(_0x2ac640(0x272),{'className':'univer-flex\x20univer-gap-2','children':_0xeb0434(_0x2c3c9e,{'className':_0x2ac640(0x2e7),'items':Er[_0x2ac640(0x2e1)](_0x43a84d=>({'label':_0x7514aa['t'](_0x43a84d['labelKey']),'value':_0x43a84d['value']})),'value':_0x1fb85f,'onChange':_0x2e1d6d=>_0x446a4e(_0x2e1d6d)})}),_0xeb0434('div',{'className':'univer-flex\x20univer-gap-2','children':_0xeb0434(_0x2c3c9e,{'className':_0x2ac640(0x2e7),'items':Tr['map'](_0xb229f5=>({'label':_0x7514aa['t'](_0xb229f5['labelKey']),'value':_0xb229f5['value']})),'value':_0x3f6e27,'onChange':_0x1cb79b=>_0x3ff5b9(_0x1cb79b)})}),_0xeb0434(_0x2ac640(0x272),{'className':_0x2ac640(0x26c),'children':_0xeb0434(_0x2c3c9e,{'className':'univer-w-full\x20univer-text-xs','items':_0x4299f1[_0x2ac640(0x2e1)](_0x4474b9=>({'label':_0x7514aa['t'](_0x4474b9[_0x2ac640(0x371)]),'value':_0x4474b9[_0x2ac640(0x2b8)]})),'value':_0x50515d,'onChange':_0x42c5c9=>_0x15d319(_0x42c5c9)})}),_0xeb0434(_0x2ac640(0x272),{'className':_0x2ac640(0x1bb),'children':wr[_0x2ac640(0x2e1)](({labelKey:_0x53370f,key:_0x1d9534,min:_0x86c430,max:_0x318354})=>_0x5d87b6(_0x2ac640(0x41d),{'className':_0x2ac640(0x253),'children':[_0xeb0434(_0x2ac640(0x3a2),{'className':_0x2ac640(0x294),'children':_0x7514aa['t'](_0x2ac640(0x464)+_0x53370f)}),_0xeb0434(_0x3f1c63,{'min':_0x86c430,'max':_0x318354,'step':0x4,'value':_0x15cc22[_0x1d9534],'precision':0x0,'className':_0x2ac640(0x25e),'onChange':_0x2c91d0=>_0x34f8ac(_0x1d9534,Number(_0x2c91d0??_0x86c430))})]},_0x1d9534))})]})}),_0x46f3da===_0x2ac640(0x43c)&&_0xeb0434(zr,{'title':_0x7514aa['t'](_0x2ac640(0x2ad)),'children':_0x5d87b6(_0x2ac640(0x272),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-2','children':[_0xeb0434(_0x2fe6f5,{'className':_0x2ac640(0x385),'placeholder':_0x7514aa['t']('boards-mind-ui.panel.pasteOPML'),'value':_0x4b626f,'onValueChange':_0x4570e4}),_0x5d87b6(_0x2ac640(0x272),{'className':_0x2ac640(0x26c),'children':[_0xeb0434(_0x2442d7,{'size':_0x2ac640(0x367),'variant':'primary','disabled':!_0x4b626f[_0x2ac640(0x29d)](),'onClick':_0x2ed682,'children':_0x7514aa['t'](_0x2ac640(0x1ec))}),_0xeb0434(_0x2442d7,{'size':_0x2ac640(0x367),'variant':_0x2ac640(0x2e8),'onClick':_0x3334f2,'children':_0x7514aa['t'](_0x2ac640(0x38d))})]})]})})]});}let Vr=class extends _0x300276{constructor(_0x252856){const _0x163df1=_0x3d9742;super(),this[_0x163df1(0x244)]=_0x252856,this[_0x163df1(0x35d)]();}[_0x3d9742(0x35d)](){const _0x224025=_0x3d9742;this[_0x224025(0x2bf)](this[_0x224025(0x244)][_0x224025(0x292)](ln,dn)),this[_0x224025(0x2bf)](this[_0x224025(0x244)][_0x224025(0x292)](Dn,Un)),this[_0x224025(0x2bf)](this[_0x224025(0x244)]['register']('board.mind-map.panel',Br));}};Vr=q([K(0x0,_0x45c8ba(_0x11ce63))],Vr);let Hr=class{constructor(_0x44b401,_0x253094,_0x5000fd){const _0x40f435=_0x3d9742;this[_0x40f435(0x346)]=_0x44b401,this[_0x40f435(0x2cb)]=_0x253094,this[_0x40f435(0x360)]=_0x5000fd;}[_0x3d9742(0x401)](_0x11aa3c){const _0x2ca89d=_0x3d9742;var _0x108369,_0x12b021;let _0x2c45a3=(_0x108369=this['_renderManagerService'][_0x2ca89d(0x38c)](_0x11aa3c[_0x2ca89d(0x1b2)]))==null||(_0x12b021=_0x108369[_0x2ca89d(0x300)])==null?void 0x0:_0x12b021[_0x2ca89d(0x378)](_0x108369),_0x587b96=(_0x2c45a3==null?void 0x0:_0x2c45a3[_0x2ca89d(0x421)](_0x1d4c5c))??this['_stateService'];return((_0x2c45a3==null?void 0x0:_0x2c45a3[_0x2ca89d(0x421)](tr))??this[_0x2ca89d(0x2cb)])['setTemplate']({'rootText':_0x11aa3c[_0x2ca89d(0x30b)],'structureKind':_0x11aa3c[_0x2ca89d(0x47f)],'branchLineType':_0x11aa3c[_0x2ca89d(0x2de)],'children':_0x11aa3c[_0x2ca89d(0x2fc)],'blueprint':_0x11aa3c[_0x2ca89d(0x467)]}),_0x587b96[_0x2ca89d(0x1e1)](!0x1),_0x587b96[_0x2ca89d(0x28b)](),_0x587b96['setActiveTool'](_0x44aee8[_0x2ca89d(0x374)]),_0x587b96[_0x2ca89d(0x439)]({'type':_0x44aee8[_0x2ca89d(0x374)]}),!0x0;}};Hr=q([K(0x0,_0x1d4c5c),K(0x1,_0x45c8ba(tr)),K(0x2,_0x3f3aa4)],Hr);const Ur=[cn],Wr=[Sr];let $=class extends _0x3f7c2e{constructor(_0xdf482f=Ft,_0x1cfd07,_0x46ec7e,_0xfcd0db){const _0x2e5ff9=_0x3d9742;super(),this[_0x2e5ff9(0x2a9)]=_0xdf482f,this[_0x2e5ff9(0x302)]=_0x1cfd07,this[_0x2e5ff9(0x2d9)]=_0x46ec7e,this[_0x2e5ff9(0x360)]=_0xfcd0db;let {..._0x29ece6}=_0x489cbe({},Ft,this[_0x2e5ff9(0x2a9)]);this[_0x2e5ff9(0x2d9)]['setConfig']('boards-mind-ui.config',_0x29ece6);}[_0x3d9742(0x22d)](){const _0x47abc7=_0x3d9742;_0x9e4849[_0x47abc7(0x38b)](this[_0x47abc7(0x302)],[[tr],[or]]),this[_0x47abc7(0x302)][_0x47abc7(0x40c)]([tr]),this[_0x47abc7(0x302)][_0x47abc7(0x40c)]([or]),this[_0x47abc7(0x302)][_0x47abc7(0x40c)]([Hr]),this[_0x47abc7(0x302)][_0x47abc7(0x40c)]([vn]),this[_0x47abc7(0x302)]['add']([br]),this[_0x47abc7(0x302)][_0x47abc7(0x40c)]([Vr]);let _0x5d45e9=this[_0x47abc7(0x302)]['get'](Hr),_0x11bb1a=this[_0x47abc7(0x302)]['get'](_0x12c9a1);this[_0x47abc7(0x2bf)](_0x11bb1a[_0x47abc7(0x475)](_0x5d45e9)),this[_0x47abc7(0x2bf)](this[_0x47abc7(0x302)]['get'](vn)),this[_0x47abc7(0x2bf)](this[_0x47abc7(0x302)][_0x47abc7(0x421)](br)),this[_0x47abc7(0x2bf)](this[_0x47abc7(0x302)][_0x47abc7(0x421)](Vr)),this['_enableMindMapToolbarTool']();}[_0x3d9742(0x41e)](){const _0x24f10b=_0x3d9742;this[_0x24f10b(0x2bf)](this[_0x24f10b(0x360)][_0x24f10b(0x21c)](_0x3eda62[_0x24f10b(0x1d0)],Ur)),this[_0x24f10b(0x2bf)](this[_0x24f10b(0x360)][_0x24f10b(0x21c)](_0x3eda62[_0x24f10b(0x1d0)],Wr)),this[_0x24f10b(0x2bf)](this['_renderManagerService']['registerRenderModule'](_0x3eda62[_0x24f10b(0x1d0)],ar)),this[_0x24f10b(0x2bf)](this[_0x24f10b(0x360)][_0x24f10b(0x21c)](_0x3eda62[_0x24f10b(0x1d0)],vr)),this[_0x24f10b(0x2bf)](this[_0x24f10b(0x360)]['registerRenderModule'](_0x3eda62[_0x24f10b(0x1d0)],Gn)),this[_0x24f10b(0x2bf)](this[_0x24f10b(0x360)][_0x24f10b(0x21c)](_0x3eda62[_0x24f10b(0x1d0)],sn)),this[_0x24f10b(0x2bf)](this[_0x24f10b(0x360)]['registerRenderModule'](_0x3eda62[_0x24f10b(0x1d0)],zt)),this[_0x24f10b(0x2bf)](this[_0x24f10b(0x360)][_0x24f10b(0x21c)](_0x3eda62[_0x24f10b(0x1d0)],lr));}['_enableMindMapToolbarTool'](){const _0x313f28=_0x3d9742;var _0x196a07,_0x5d292f;let _0x12e017=this[_0x313f28(0x1bf)]();this[_0x313f28(0x2d9)][_0x313f28(0x3d2)](_0x54d1ca,{..._0x12e017,'toolbar':{..._0x12e017[_0x313f28(0x2ed)],'tools':{...(_0x196a07=_0x12e017[_0x313f28(0x2ed)])==null?void 0x0:_0x196a07[_0x313f28(0x2f4)],[_0x44aee8['MindMap']]:Gr((_0x5d292f=_0x12e017[_0x313f28(0x2ed)])==null||(_0x5d292f=_0x5d292f['tools'])==null?void 0x0:_0x5d292f[_0x44aee8[_0x313f28(0x374)]])}}});}[_0x3d9742(0x1bf)](){const _0x1884d3=_0x3d9742;return this[_0x1884d3(0x2d9)][_0x1884d3(0x1f4)](_0x54d1ca)??{};}};G($,_0x3d9742(0x2f5),_0x3d9742(0x2ce)),G($,_0x3d9742(0x1ee),Nt),G($,'version',Pt),G($,_0x3d9742(0x256),_0x3eda62[_0x3d9742(0x1d0)]),$=q([_0x294b71(_0x1fd571,_0x22bfff,_0x18ec71,_0x1ae252,_0x9e4849),K(0x1,_0x45c8ba(_0x191d73)),K(0x2,_0x614972),K(0x3,_0x3f3aa4)],$);function Gr(_0x5d374d){const _0x567a0f=_0x3d9742;return _0x5d374d===!0x1?!0x1:typeof _0x5d374d!=_0x567a0f(0x2b5)||{..._0x5d374d,'enabled':_0x5d374d[_0x567a0f(0x255)]??!0x0};}export{$ as UniverBoardsMindUIPlugin};
|
|
1
|
+
const _0x2d31a4=_0x4547;(function(_0x59389b,_0x44ea24){const _0x1c19a3=_0x4547,_0x31ca50=_0x59389b();while(!![]){try{const _0x3429a8=parseInt(_0x1c19a3(0x1d1))/0x1*(parseInt(_0x1c19a3(0x1f8))/0x2)+parseInt(_0x1c19a3(0x39b))/0x3+parseInt(_0x1c19a3(0x4ce))/0x4*(parseInt(_0x1c19a3(0x242))/0x5)+parseInt(_0x1c19a3(0x2b1))/0x6+parseInt(_0x1c19a3(0x1c5))/0x7*(parseInt(_0x1c19a3(0x2e1))/0x8)+-parseInt(_0x1c19a3(0x44d))/0x9+-parseInt(_0x1c19a3(0x3f2))/0xa;if(_0x3429a8===_0x44ea24)break;else _0x31ca50['push'](_0x31ca50['shift']());}catch(_0x1583d9){_0x31ca50['push'](_0x31ca50['shift']());}}}(_0x3b8f,0x2e412));import{BoardElementType as _0x2cde10,BoardToolType as _0x1210f4,IBoardElementService as _0x495947,IBoardMindMapAdapterService as _0x38e800,UniverBoardsPlugin as _0x39db0c,documentTextStyleToBoardShapeTextStyle as _0x3b60e2,offsetBoardConnectorGeometry as _0xb199be,resolveBoardElementWorldBounds as _0x59b50d}from'@univerjs-pro/boards';import{AddMindMapChildOperation as _0x3808d0,AddMindMapSiblingOperation as _0x2947b9,ChangeMindMapBranchLineTypeOperation as _0x1982fa,ChangeMindMapLayoutOperation as _0x577e6f,CopyMindMapNodeOperation as _0x5b75b6,DeleteMindMapNodeOperation as _0x1eea2c,DetachMindMapNodeOperation as _0x3b4729,ExportMindMapOpmlOperation as _0x40d1d1,IMindMapClipboardService as _0x44df25,ImportMindMapOpmlOperation as _0x1f6a3b,InsertBoardMindMapOperation as _0x2bec0c,LayoutMindMapOperation as _0x59d4d9,MIND_MAP_DEFAULT_LAYOUT as _0x5242c3,MIND_MAP_DEFAULT_NODE_SIZE as _0x1b9954,MIND_MAP_DEFAULT_NODE_TEXT as _0x355d17,MIND_MAP_LAYOUT_SPACING_LIMITS as _0x16a7d3,PasteMindMapAsNewMindMapOperation as _0xfe8103,PasteMindMapNodeOperation as _0x1dcd5d,PromoteMindMapNodeOperation as _0x25e9ed,ReparentMindMapNodeOperation as _0x48a61f,ToggleMindMapNodeCollapseOperation as _0x16fafb,TranslateMindMapOperation as _0x2c4dd1,UniverBoardsMindPlugin as _0x577257,UpdateMindMapIncomingConnectorOperation as _0x34f5dc,UpdateMindMapNodeOperation as _0x3a4e24,compareMindMapOrderKey as _0x28a7e2,getMindMapConnectorMeta as _0x1b1ea2,getMindMapContainerMeta as _0x3a557b,getMindMapDefaultChildOrderKey as _0x5a5595,getMindMapNodeMeta as _0xd8e37e,isMindMapPlainStructureKind as _0x540733,resolveMindMapBranchLineTypeForStructure as _0x498b4a,resolveMindMapLayoutPreview as _0x278ec5,resolveMindMapNodeHostSize as _0x824281}from'@univerjs-pro/boards-mind';import{BOARDS_UI_PLUGIN_CONFIG_KEY as _0x451d89,BOARD_RENDER_LAYER_INDEX as _0x19c79d,BOARD_RENDER_OBJECT_Z_INDEX as _0x4ea4f2,BOARD_SHORTCUT_BINDINGS as _0x1a695f,BoardCanvasPopManagerService as _0x45c11c,BoardInteractionSurfaceService as _0x17676c,BoardShapeIntrinsicSizeService as _0x11420d,BoardTextEditingService as _0x16b84e,IBoardElementStateService as _0x452a90,IBoardUIStateService as _0x18a088,UniverBoardsMobileUIPlugin as _0x3c9575,UniverBoardsUIPlugin as _0x302504,areBoardShapeTextValuesEquivalent as _0x216b42,getBoardElementRenderObjectKey as _0x1b247d,isBoardShortcutAvailable as _0x3745cb,parseBoardElementRenderObjectKey as _0x2913da,resolveBoardFloatingToolbarSelection as _0x4483a0,syncBoardElementRenderObject as _0x239c11}from'@univerjs-pro/boards-ui';import{UniverLicensePlugin as _0xc6ab10}from'@univerjs-pro/license';import{BooleanNumber as _0x8d9210,CommandType as _0x1162ea,DEFAULT_STYLES as _0x4d3453,DependentOn as _0x42b603,Disposable as _0x13ec99,DisposableCollection as _0xec2352,HorizontalAlign as _0x5d5258,ICommandService as _0x2a0a40,IConfigService as _0x22928b,IContextService as _0x2a095c,IUniverInstanceService as _0x28c364,Inject as _0x4a13c4,Injector as _0x159d73,LocaleService as _0x3ff2da,Plugin as _0x1119d2,RxDisposable as _0x9932d8,UniverInstanceType as _0x4468f4,VerticalAlign as _0xc5d8a5,generateRandomId as _0x75cb4,merge as _0x341d8c,toDisposable as _0x5a6bc0}from'@univerjs/core';import{BaseObject as _0x3866b7,Control as _0x4e627c,DeviceType as _0x4ace31,IRenderManagerService as _0xa5c56c,UniverRenderEnginePlugin as _0x49dfad}from'@univerjs/engine-render';import{Subject as _0x93fc85,merge as _0x38bf41,takeUntil as _0x35dd5f}from'rxjs';import{ComponentManager as _0x48f5c4,IDialogService as _0x807b05,IFontService as _0x5eb3ad,IShortcutService as _0x23e2ca,ISidebarService as _0x2f236d,KeyCode as _0x28bc7e,MetaKeys as _0x341e94,UndoRedoGroupService as _0x352e0c,useDependency as _0x1b73d0,useObservable as _0x49d992}from'@univerjs/ui';import{MobileShapeMenu as _0x4e880f,SHAPE_FLOATING_TOOLBAR_DEFAULT_STROKE_COLOR as _0x78d89c,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_BACKGROUND_COLOR as _0x19667e,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_COLOR as _0x429bd2,SHAPE_TEXT_EDITOR_QUOTE_COMMAND_ID as _0x34a41c,ShapeFillButton as _0x2a02bb,ShapeFloatingToolbarContent as _0x469f68,ShapeFloatingToolbarDropdownTrigger as _0x538e8d,ShapeFloatingToolbarFontSizeSelect as _0x27a669,ShapeFloatingToolbarIcon as _0x4f8372,ShapeFloatingToolbarMenuItem as _0x4cd972,ShapeFloatingToolbarMenuPanel as _0x291659,ShapeStrokePanelButton as _0x5cba12,ShapeStrokePanelContent as _0x345fac,TextFillButton as _0x5efd9f,TypographyPanelButton as _0x427b5f,buildShapeTextDataUpdate as _0x3b39f1,getTextStyle as _0x22040a}from'@univerjs-pro/shape-editor-ui';import{ShapeDefaultConfig as _0x17912c,ShapeLineDashEnum as _0x6d9141,ShapeLineTypeEnum as _0x586b2d}from'@univerjs-pro/engine-shape';import{Button as _0x52c5ff,Dropdown as _0x51a529,Input as _0x12c1c2,InputNumber as _0x49c357,MobileColorPresets as _0x1865a5,Segmented as _0x4d6766,Separator as _0x6d5a9d,Textarea as _0x3b1bc9,borderClassName as _0x54a2dc,clsx as _0x1f61d6}from'@univerjs/design';import{AlignBottomIcon as _0x5097e6,AlignTextBothIcon as _0x5ad6e9,AlignTopIcon as _0x575e02,BoldIcon as _0x36b5ff,HorizontallyIcon as _0x56184a,ItalicIcon as _0x828192,LeftJustifyingIcon as _0x41ed09,MoreHorizontalIcon as _0x160c3e,RightJustifyingIcon as _0x1be74c,SearchIcon as _0x395528,ShapeLineIcon as _0x41e0b5,StrikethroughIcon as _0x1008c5,UnderlineIcon as _0x51461a,VerticalCenterIcon as _0xd7454b}from'@univerjs/icons';function _0x3b8f(){const _0x121b05=['_shortcutService','_getBoardPointFromEvent','liveRootBounds','onPointerCancel$','univer-space-y-3','boards-mind-ui.toolbar.action.paste','description','renderContext','lineTo','_dragStart','6\x207','_nodeSizeByKey','MindMap','_createTopologyBoundsByElementId','focusedId','boards-mind-ui.toolbar.action.fontColor','_previewRefreshService','boards-mind-ui.panel.spacing.parentGap','M20\x2025h13M20\x2035h13M20\x2045h13','createControl$','_cancelPointerChildDrag','_configService','timeline-horizontal','italic','_updateHostSize','univer-space-y-1','branch-rounded-orthogonal','_createQuoteShortcut','surfaceColor','elementAdd$','dirtyPaddingScreen','tree-left','getElementDataForUnit','vertical','_handlePointerMove','_insertMindMap','_dragPreviewObject','add-child-top','createRunner','Escape','boards-mind-ui.panel.structureKind.timelineHorizontal','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-4','univer-text-xs','univer-flex\x20univer-h-12\x20univer-min-w-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-900\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-0','M21\x2028h38M40\x2011v34M28\x2016c7\x204\x2010\x208\x2012\x2012\x202-4\x205-8\x2012-12M28\x2040c7-4\x2010-8\x2012-12\x202\x204\x205\x208\x2012\x2012','max','_copySelectedNode','_componentManager','univer-mb-3\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-gray-100','before','some','_openSelectedTextEditing','clearPendingInsert','transform','_countDescendants','_capturePointerChildDragStart','set','success','siblingGlyphSize','width','scaleX','pluginName','collapseAllNodes','M4.5\x2016.5h4.2c1.9\x200\x203.3-1.5\x203.3-3.3','localeCompare','_state','paste-as-new','branchLineType','univer-mb-4','object','horizontalAlign','_getMindMapChildren','M42\x2012v32M42\x2020c0\x204-3\x206-7\x206h-7M42\x2030c0\x204\x203\x206\x207\x206h7M42\x2039c0\x204-3\x206-7\x206h-7','BACKSPACE','close','_isControlEvent','mind-map-layout-dropdown','timelineAxisGap','glyphWidth','setActiveTool','dropdown','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-xs\x20univer-text-gray-600','univer-size-full\x20univer-bg-gray-0\x20univer-text-sm\x20univer-text-gray-700\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-200','univer-space-y-2','rootWidth','span','mindmap','values','_isChildDragPastActivationThreshold','scene','documentStyle','arrow-up','_objectPointerDisposables','boards-mind-ui.description','requestRender','_interactionSurfaceService','svg','boards-mind-ui.panel.nodeStyle.fontFamily','side','registerRenderModule','child','changeStart$','univer-min-h-12\x20univer-px-3','_resolvePreviewTextStyle','allowRootReparent','executeCommand','_createKeyboardShortcutOperation','entries','isInteractionSurfaceActive','_attachObjectPointerScheduled','textPaddingScreen','orthogonal','moveTo','rootNodeId','bottom','_boardTextEditingService','onPointerMove$','getElementData','text/plain','univer-size-5','setData','679584MMwClC','[&_input]:univer-h-12\x20[&_input]:univer-text-base','_stateService','_resolvePreviewSourceBounds','_getZoomRatio','ARROW_RIGHT','open','key','reparent','siblingGap','_initEditingRestore','_attachObjectPointerListeners','univer-w-[202px]\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20univer-py-4\x20univer-shadow-lg','toggle-collapse','ghostRadius','connector','setEditing','deviceType','boards-mind-ui.panel.nodeStyle.fontSize','univer-size-6\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200','primary','univer-h-9\x20univer-w-12','_instanceService','constructor','_getPointerScreenPoint','rgb','setTemplate','currentColor','removeEventListener','_removeObject','boards-mind-ui.toolbar.panel.more','_seedExistingNodeSizes','ArrowUp','_resolveChildSide','collapsed','UNIVER_BOARD','fontFamily','hoveredControl','sourceHighlightFillColor','Touch','_popupDisposable','_applyDragTopologyAction','_pointerDragStart','px\x20','_resolveCompleteSelectedScope','line','shapeId','rootChildSides','_buildPopupSelectionKey','dropEffect','univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','Solid','extraProps','_syncPreviewObject','_previewObject','univer-h-auto\x20univer-min-h-12\x20univer-whitespace-normal\x20univer-px-2\x20univer-py-2','univer-grid\x20univer-h-14\x20univer-overflow-hidden\x20univer-rounded-xl\x20univer-bg-gray-100\x20univer-p-1','boards-mind-ui.panel.tab.layout','gap','middle','_executeAndLayout','_instanceSrv','doc','_getPointerLiveBounds','detach','newParentNodeId','string','_clearPopupIfSelectionChanged','_activeNodeId','_pasteAsNewMindMap','univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','_resolveControlSide','isHit','kind','boards-mind-ui.cancel','parentNodeId','boards-mind-ui.toolbar.action.delete','add','boards-mind-ui.panel.searchNodes','FOCUSING_MIND_MAP_BLANK_BOARD','FOCUSING_MIND_MAP_TEXT_EDITOR','boards-mind-ui.panel.nodeStyle.style','hasCommand','boards-mind-ui.panel.branchLineType.orthogonal','pointercancel','_restoreObjectToDragStart','addSibling','2389080kRxFVb','_isActive',',\x20minmax(0,\x201fr))','restore','univer-h-12\x20univer-text-base','_getBoardsUIConfig','_resolveSelectedMindMapEntryFromState','selectedIds','_removeDragPreviewObject','registerShortcut','addChildRadius','mind-map','rgba(','toolbar','both','ARROW_DOWN','collapsedDescendantCount','_resolveHostSize','_queueLayout','_disposeActivePointerDragListeners','textEditingService','structure','currentTarget','_executeCreateAndEdit','toLowerCase','_collapseAll','structured','dataModel','add-sibling-before','_ensureObject','textAlign','version','circle','univer-flex\x20univer-flex-col\x20univer-gap-2','open-description','TOP','beginPath','_refresh$','_resolveRootChildControlSides','boards-mind-ui.panel.structureKind.treeLeft','_queuedLayouts','getState','activeTool','Shape','height','RoundDot','makeDirtyNoDebounce','elementId','_objectEventDisposables','divider-','beginMindMapMode','register','_getElementKey','layout-panel-divider','_normalizeChildren','_getLiveObjectBounds','0\x200\x2024\x2024','viewportPanOffset','clientY','M15\x2031h50M35\x2031V18c0-4\x203-7\x208-7h9M35\x2031v13c0\x204\x203\x207\x208\x207h9','_previewHostSize','disposeWithMe','_init','_object','removeObjects','mindmap-vertical','referenceNodeId','scopeId','hypot','_injector','_attachActivePointerDragListeners','zoomRatio','small','board.mind-map.floating-toolbar','round','function','elementData','boards-mind-ui.toolbar.action.addSibling','boards-mind-ui.config','_enableMindMapToolbarTool','fallbackNodeHeight','boards-mind-ui.alignTop','univer-text-base','color','_syncContext','_isPopupSelectionStillActive','boards-mind-ui.alignMiddle','addSiblingNode','_applyPointerChildDrag','verticalAlign','onCommandExecuted','3163968bUlNtw','setPendingInsert','paste','Mind\x20map','typography','subUnitId','tree-alternate','hideRootControls','parseInt','_applyScopeTranslation','_activeScopeId','buttons','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-p-4','_restoreActivePreview','subscribe','hasChildren','tree-right','nodeWidth','notify','textStyle','map','interactionMode','point','dash','getCanvasElement','add-sibling-or-child','_consumePointerEvent','nodeHeight','iterator','univer-mb-0','branchGap','univer-border-b\x20univer-border-gray-200\x20univer-p-3','structureKind','complete','boards-mind-ui.panel.tab.','strikethrough','slice','_resolveSelectedEntry','M31\x2013c9\x208\x209\x2022\x2018\x2030M49\x2013c-9\x208-9\x2022-18\x2030M31\x2013c-7\x204-9\x209-9\x2015s2\x2011\x209\x2015M49\x2013c7\x204\x209\x209\x209\x2015s-2\x2011-9\x2015','ghostTextColor','unshift','_uiStateService','univer-flex\x20univer-min-w-0\x20univer-flex-1\x20univer-gap-2','bold','univer-text-xs\x20univer-text-gray-400\x20dark:!univer-text-gray-500','univer-flex\x20univer-flex-col\x20univer-gap-1','importExport','DELETE','root','textBaseline','boundsByElementId','setShapeSidebarOpen','scope','boards-mind-ui.panel.emptyNodes','getAncestorScale','_resolveCreateChildSide','M16\x2029h18c7\x200\x2010-5\x2010-12v-3M34\x2029h10c7\x200\x2010\x205\x2010\x2012v3','arrow-left','primaryColor','rootTextColor','packageName','resolve','add-child-right','horizontalGap','type','makeDirty','rootRadius','_resolveCurrentBoardContext','_syncRootReparentPreview','offsetY','boards-mind-ui.descriptionPlaceholder','promote','clipboard','save','_handlePointerDown','clipboardService','unitId','action','UNIVER_BOARDS_MIND_UI_PLUGIN','activated$','params','_provider','univer-h-28\x20univer-resize-none','connectorAffordance','_captureDragStart','_getSceneObject','add-child-bottom','center','_drawSourceHighlight','boards-mind-ui.alignJustify','dashType','transientControl','getActivePageId','offsetX','1.8','getTransformerByCreate','boards-mind-ui.panel.addText','rootFontSize','M12\x2015h9M12\x2028h9M12\x2041h9M59\x2015h9M59\x2028h9M59\x2041h9','ArrowDown','pipe','_textEditingService','_note','element','globalAlpha','bounds','style-divider','top-center','_syncControls','getObjectIncludeInGroup','M40\x209v40M40\x2020c8\x200\x2011\x204\x2011\x2011v8M40\x2035c-8\x200-11\x204-11\x2011v4','edit-text','registerCommand','arrow-right','show','textColor','foldChildNodes','FOCUSING_MIND_MAP_NODE','_ensureDragPreviewObject','textFill','all','ghostFillColor','localeService','getElementById','M19.5\x207.5h-4.2c-1.9\x200-3.3\x201.5-3.3\x203.3','fill','subscribeEvent','symbol','_hideSelectionForChildDrag','4inwFjc','reduce','icon','length','left','boards-mind-ui.toolbar.action.stroke','_consumeControlEvent','dialogService','meta','_createShortcutItems','registerAdapter','univer-min-w-0\x20univer-flex-1\x20univer-justify-start\x20univer-truncate\x20univer-text-left','boards-mind-ui.alignLeft','getFonts','univer-h-12\x20univer-w-32\x20univer-text-base','badgeFontSize','state$','onPointerDown$','addEventListener','LEFT','Tree\x20diagram','_localeService','M47\x2025h13M47\x2035h13M47\x2045h13','_sidebarService','visible','incomingConnectorStyle','trim','dispose$','stopPropagation','969815pLJNDm','boards-mind-ui.panel.spacing.siblingGap','elementStateService','_childDragActivated','getRenderUnitById','_template','_findChildNodeAtPoint','univer-border-b\x20univer-border-gray-200\x20univer-p-4','setContextValue','_resetContext','elementRemove$','opacity','5937VNcUry','collapse-all','boards-mind-ui.panel.pasteOPML','blueprint','keys','tree-diagram','then','univer-mb-2\x20univer-text-lg\x20univer-text-gray-900','pointerStartY','unit','changing$','siblingDotGap','add-child','BOTTOM','_lastChildDragAction','_sidebarDisposable','getUnit','snapDistance','fallbackNodeWidth','addChildNode','_resolveDirtyBounds','uiStateService','objects','getObject','siblingDotRadius','_cloneBlueprintNode','boards-mind-ui.panel.cancel','has','_isPointInBounds','titleKey','dataTransfer','boards-mind-ui.panel.nodeStyle.','_activePreview','boards-mind-ui.panel.tab.structure','univer-min-h-12\x20univer-w-full','elementService','rootHeight','labelKey','connectorData','6mdDbDL','univer-w-full\x20univer-text-xs','_openDescriptionDialog','_mindMapClipboardService','M56\x2011h11M56\x2051h11','transformByState','boards-mind-ui.panel.structureKind.mindmapHorizontal','onReady','0\x200\x2080\x2056','branch-orthogonal','_executeRootAnchoredLayout','enabled','branch','forEach','copy','_drawConnectorPreview','lineCap','univer-cursor-not-allowed\x20univer-text-gray-300\x20hover:univer-bg-transparent','objectAlpha','badgeFontWeight','children','boards-mind-ui.panel.branchLineType.curve','univer-flex\x20univer-items-center\x20univer-gap-1\x20univer-truncate\x20univer-rounded\x20univer-py-1\x20univer-text-left\x20univer-text-gray-800','pendingInsert','getPayload','defineProperty','curve','_config','timeline','onStarting','path','addChild','effectAllowed','boards-mind-ui.panel.structureKind.treeAlternate','_resolveNodeSize','clearControl$','borderWidth','rootStartBounds','univer-min-h-12\x20univer-w-full\x20univer-justify-between','_removePreviewObject','setHoveredControl','SolidLine','sort','refresh$','OPERATION','sourceBounds','addObject','sourceDashScreen','push','_addSiblingOrChild','boards-mind-ui.toolbar.panel.typography','_handleElementUpdate','_popupSelectionKey','defaultValue','M12\x2026h11M58\x2036h11M12\x2045h11','_disposed','ghostBounds','mind-map-font-size','univer-items-center','context','right','_boardElementService','_pasteUnderSelectedNode','_ensurePreviewObject','fillText','univer-w-32','isTransforming','lineWidthScreen','move','_attachObjectEvents','_addChild','items','findIndex','getSelectedObjectMap','1239205yJrhDj','boards-mind-ui.toolbar.action.layout','evented','univer-grid-cols-3','univer-min-h-12\x20univer-text-xl','_renderManagerService','call','clear','boards-mind-ui.panel.layout.left','univer-mb-3\x20univer-w-full','getUnitId','editingParams$','_syncRootScopePreview','strokeWidth','next','_resolveControlBounds','_getPointFromEvent','boards-mind-ui.panel.spacing.branchGap','childNodeId','collapsePlusMinDistance','placement','TRUE','top','attachPopupToObject','univer-flex-wrap','univer-h-7\x20univer-min-w-9\x20univer-w-auto\x20univer-gap-1\x20univer-px-1.5','@univerjs-pro/boards-mind-ui','radius','handleShortcut','timeline-vertical','prototype','find','dispose','_contextService','boards-mind-ui.panel.title','getShortcutDisplay','mind-map-stroke','get','panel','renderGhostNode','shapeData','boards-mind-ui.toolbar.action.copy','_syncPointerChildDragPreview','nodeId','changeEnd$','_registerComponents','toPrimitive','MIDDLE','decorate','SHIFT','pointerup','univer-flex\x20univer-gap-2','getSnapshot','ghostFontWeight','getTouchHitDistance','popup','getHitControl','activeEditingId','add-child-left','elementUpdate$','font','delete','scaleY','pointermove','fontSize','ignoreExternalFocusChanges','isRoot','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_syncLayoutPreview','M22\x208h36M22\x2048h36M14\x2018v20M66\x2018v20','univer-text-gray-500','after','ENTER','add-sibling-after','default','_getRenderModules','min','title','boards-mind-ui.toolbar.action.fill','controls','depth','panOffset','focus','exec','data','getInjector','unsubscribe','univer-min-h-12\x20univer-flex-1','viewing','_toFiniteBounds','owner','shapeText','boards-mind-ui.panel.layout.both','button','large','board-mind-map-drag-preview-object','_executeNodeOperation','_commandService','style','_syncChildDragPreviewObject','updateState','focusUnit','underline','glyphSize','commandService','_rememberNodeSize','stroke','transientPreview','univer-w-24','getContextValue','selectElements','895158GVwPue','clientX','_lastPoint','targetNodeId','_syncElementDataToScene','boards-mind-ui.panel.branchLineType.roundedOrthogonal','_executeChildDragAction','dot','boards-mind-ui.toolbar.primary.line','_scheduleAttachObjectPointerListeners','mindmap-horizontal','ArrowRight','_resolveIncomingConnectorStyle','text','_childDragSelectionHidden','hide','setLineDash','fontColor','onDblclick$','custom','filter','_cloneBlueprint','RIGHT','boards-mind-ui.panel.importOPML','M56\x2039h11M13\x2050h11','canvas','zIndex','univer-h-32\x20univer-resize-none\x20univer-text-sm','detachWhenNoSnap','univer-grid\x20univer-w-full\x20univer-gap-2','navigator','interactionSurfaceActive$','boards-mind-ui.alignBottom','closePath','_insertStateService','_navigateByTopology','badgeCount','tools','repeat(','orderKey','_renderContext','rootFontWeight','fillStyle','setConfig','render','div','lineWidth','quadraticCurveTo','8HYkNJu','lineJoin','number','label','Enter','syncExecuteCommand','univer-bg-[#e8eefc]\x20univer-text-[#2f6fed]\x20hover:univer-bg-[#e8eefc]','hostSize','onPointerUp$','getEditing','item','parentBounds','updateElement','_getBlankBoardContext','mind-map-fill','foreignAttributes','fonts$','preventDefault','solid','getTemplate','strokeStyle','_layoutFlushScheduled','run','structureScopeId','boards-mind-ui.panel.structureKind.timelineVertical','abs','more','boards-mind-ui.alignRight','boards-mind-ui.toolbar.action.addChild','value','_resolveChildDragTopologyAction','clearSelection','board.operation.mind-map.keyboard-shortcut','univer-flex-1\x20univer-text-sm','_getSelectedMindMapContext','includes','rounded-orthogonal','_undoRedoGroupService','boards-mind-ui.toolbar.primary.fontColor','sourceHaloScreen','_resolveArrowNavigationTarget','true','oldShapeText','size','_intrinsicSizeService','sourceHighlightStrokeColor','boards-mind-ui.panel.tab.importExport','_clearPopup','_resolveRootTopLeft','arrow-down','_boardCanvasPopManagerService','none','visualRadius','boards-mind-ui.panel.rename','registerRuntimeScopedDependencies','_elementStateService','join','layout','_syncChildDragPreview','#d8dce3','isFinite','boards-mind-ui.panel.layout.right','_activePointerDragDisposables','_showPopupForSelection','_applyRootTranslation'];_0x3b8f=function(){return _0x121b05;};return _0x3b8f();}import{useEffect as _0x416c76,useReducer as _0xf932c1,useState as _0x45ab05}from'react';import{Fragment as _0x2f0da1,jsx as _0x1d0d1f,jsxs as _0xf895cc}from'react/jsx-runtime';var Zt=_0x2d31a4(0x25c),Qt='1.0.0';const $t=_0x2d31a4(0x440),en={};function tn(_0x21efed){'@babel/helpers - typeof';const _0x1947e5=_0x2d31a4;return tn=typeof Symbol=='function'&&typeof Symbol[_0x1947e5(0x469)]==_0x1947e5(0x4cc)?function(_0x53d919){return typeof _0x53d919;}:function(_0x8d7069){const _0x20090c=_0x1947e5;return _0x8d7069&&typeof Symbol==_0x20090c(0x43d)&&_0x8d7069[_0x20090c(0x3b2)]===Symbol&&_0x8d7069!==Symbol[_0x20090c(0x260)]?_0x20090c(0x4cc):typeof _0x8d7069;},tn(_0x21efed);}function nn(_0x4a7993,_0x24942f){const _0x1fc49f=_0x2d31a4;if(tn(_0x4a7993)!='object'||!_0x4a7993)return _0x4a7993;var _0xe50a14=_0x4a7993[Symbol[_0x1fc49f(0x270)]];if(_0xe50a14!==void 0x0){var _0x7b6fa5=_0xe50a14[_0x1fc49f(0x248)](_0x4a7993,_0x24942f||_0x1fc49f(0x28c));if(tn(_0x7b6fa5)!='object')return _0x7b6fa5;throw TypeError(_0x1fc49f(0x285));}return(_0x24942f==='string'?String:Number)(_0x4a7993);}function rn(_0x1ca30c){const _0x234022=_0x2d31a4;var _0x28c493=nn(_0x1ca30c,_0x234022(0x3dd));return tn(_0x28c493)=='symbol'?_0x28c493:_0x28c493+'';}function K(_0x2de83d,_0x1db3cf,_0x3aedac){const _0x59a022=_0x2d31a4;return(_0x1db3cf=rn(_0x1db3cf))in _0x2de83d?Object[_0x59a022(0x211)](_0x2de83d,_0x1db3cf,{'value':_0x3aedac,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2de83d[_0x1db3cf]=_0x3aedac,_0x2de83d;}function q(_0x3a4f02,_0x3f9cc5){return function(_0x5d9e6c,_0x2ec3b6){_0x3f9cc5(_0x5d9e6c,_0x2ec3b6,_0x3a4f02);};}function J(_0x184aa3,_0x5ef15a,_0x135c6c,_0x3309e0){const _0x4deff1=_0x2d31a4;var _0x3b6a69=arguments[_0x4deff1(0x1ab)],_0x4d2b8c=_0x3b6a69<0x3?_0x5ef15a:_0x3309e0===null?_0x3309e0=Object['getOwnPropertyDescriptor'](_0x5ef15a,_0x135c6c):_0x3309e0,_0x4f2dd2;if(typeof Reflect=='object'&&typeof Reflect[_0x4deff1(0x272)]==_0x4deff1(0x43d))_0x4d2b8c=Reflect['decorate'](_0x184aa3,_0x5ef15a,_0x135c6c,_0x3309e0);else{for(var _0x1a0b23=_0x184aa3[_0x4deff1(0x1ab)]-0x1;_0x1a0b23>=0x0;_0x1a0b23--)(_0x4f2dd2=_0x184aa3[_0x1a0b23])&&(_0x4d2b8c=(_0x3b6a69<0x3?_0x4f2dd2(_0x4d2b8c):_0x3b6a69>0x3?_0x4f2dd2(_0x5ef15a,_0x135c6c,_0x4d2b8c):_0x4f2dd2(_0x5ef15a,_0x135c6c))||_0x4d2b8c);}return _0x3b6a69>0x3&&_0x4d2b8c&&Object['defineProperty'](_0x5ef15a,_0x135c6c,_0x4d2b8c),_0x4d2b8c;}let an=class extends _0x9932d8{constructor(_0x2d80e7,_0x434a21,_0x202d5f){const _0x4ded81=_0x2d31a4;super(),this[_0x4ded81(0x2d9)]=_0x2d80e7,this['_boardElementService']=_0x434a21,this['_commandService']=_0x202d5f,K(this,_0x4ded81(0x32d),new Map()),K(this,_0x4ded81(0x41a),new Map()),K(this,_0x4ded81(0x2f6),!0x1),this['_init']();}[_0x2d31a4(0x430)](){const _0x54b2ec=_0x2d31a4;this[_0x54b2ec(0x3ba)](),this[_0x54b2ec(0x42f)](_0x5a6bc0(this[_0x54b2ec(0x235)][_0x54b2ec(0x33f)]['pipe'](_0x35dd5f(this['dispose$']))['subscribe'](_0x8dc087=>{_0x8dc087['forEach'](_0xcf0659=>{const _0x2d7643=_0x4547;let _0x2b1697=this[_0x2d7643(0x235)][_0x2d7643(0x4c8)](_0xcf0659['unitId'],_0xcf0659['subUnitId'],_0xcf0659[_0x2d7643(0x421)]);this[_0x2d7643(0x2ab)](_0xcf0659,_0x2b1697);});}))),this[_0x54b2ec(0x42f)](_0x5a6bc0(this['_boardElementService']['elementUpdate$'][_0x54b2ec(0x4b1)](_0x35dd5f(this[_0x54b2ec(0x1c3)]))[_0x54b2ec(0x45b)](_0x46a0a2=>{const _0x2ca3db=_0x54b2ec;_0x46a0a2['forEach'](_0x5cd312=>this[_0x2ca3db(0x22b)](_0x5cd312));})));}[_0x2d31a4(0x3ba)](){const _0x8d89cf=_0x2d31a4;let _0x17dd12=this[_0x8d89cf(0x2d9)][_0x8d89cf(0x499)],_0x407886=this[_0x8d89cf(0x235)][_0x8d89cf(0x342)](_0x17dd12);Object[_0x8d89cf(0x38d)](_0x407886)[_0x8d89cf(0x205)](([_0x5046a3,_0xa112d1])=>{const _0x1d5593=_0x8d89cf;Object['values'](_0xa112d1[_0x1d5593(0x296)])[_0x1d5593(0x205)](_0x38e874=>{this['_rememberNodeSize']({'unitId':_0x17dd12,'subUnitId':_0x5046a3,'elementId':_0x38e874['elementId']},_0x38e874);});});}['_handleElementUpdate'](_0x2f6f94){const _0xbf7ac=_0x2d31a4;if(_0x2f6f94[_0xbf7ac(0x499)]!==this[_0xbf7ac(0x2d9)][_0xbf7ac(0x499)])return;let _0x2b0b90=this[_0xbf7ac(0x235)][_0xbf7ac(0x4c8)](_0x2f6f94[_0xbf7ac(0x499)],_0x2f6f94[_0xbf7ac(0x452)],_0x2f6f94[_0xbf7ac(0x421)]),_0x20ce85=_0xd8e37e(_0x2b0b90==null?void 0x0:_0x2b0b90[_0xbf7ac(0x4b4)]),_0x7b3ef4=this[_0xbf7ac(0x21a)](_0x2b0b90);if(!_0x20ce85||!_0x7b3ef4){this['_nodeSizeByKey'][_0xbf7ac(0x27f)](this[_0xbf7ac(0x426)](_0x2f6f94));return;}let _0x2cd67c=this['_getElementKey'](_0x2f6f94),_0x31c600=this['_nodeSizeByKey']['get'](_0x2cd67c);this[_0xbf7ac(0x32d)]['set'](_0x2cd67c,_0x7b3ef4),!(_0x31c600&&_0x31c600[_0xbf7ac(0x35d)]===_0x7b3ef4[_0xbf7ac(0x35d)]&&_0x31c600[_0xbf7ac(0x41e)]===_0x7b3ef4[_0xbf7ac(0x41e)])&&this['_queueLayout']({'unitId':_0x2f6f94[_0xbf7ac(0x499)],'subUnitId':_0x2f6f94[_0xbf7ac(0x452)],'scopeId':_0x20ce85['structureScopeId']});}[_0x2d31a4(0x2ab)](_0x5caf25,_0x3f4710){const _0x433d22=_0x2d31a4;if(_0x5caf25[_0x433d22(0x499)]!==this['_renderContext'][_0x433d22(0x499)])return;let _0x5a07d3=_0xd8e37e(_0x3f4710==null?void 0x0:_0x3f4710[_0x433d22(0x4b4)]),_0x5a128f=this[_0x433d22(0x21a)](_0x3f4710);_0x5a07d3&&_0x5a128f&&this[_0x433d22(0x32d)]['set'](this[_0x433d22(0x426)](_0x5caf25),_0x5a128f);}[_0x2d31a4(0x21a)](_0x20b22c){const _0x39a987=_0x2d31a4;let _0x546747=(_0x20b22c==null?void 0x0:_0x20b22c[_0x39a987(0x357)])??(_0x20b22c==null?void 0x0:_0x20b22c[_0x39a987(0x4b4)][_0x39a987(0x357)]),_0x5b3916=_0x546747==null?void 0x0:_0x546747[_0x39a987(0x35d)],_0x4c43ff=_0x546747==null?void 0x0:_0x546747[_0x39a987(0x41e)];return!Number[_0x39a987(0x31d)](_0x5b3916)||!Number[_0x39a987(0x31d)](_0x4c43ff)?null:{'width':_0x5b3916,'height':_0x4c43ff};}[_0x2d31a4(0x404)](_0x16ba0a){const _0x55c6ee=_0x2d31a4;this[_0x55c6ee(0x41a)][_0x55c6ee(0x35a)](_0x16ba0a[_0x55c6ee(0x499)]+':'+_0x16ba0a[_0x55c6ee(0x452)]+':'+_0x16ba0a[_0x55c6ee(0x435)],_0x16ba0a),!this[_0x55c6ee(0x2f6)]&&(this[_0x55c6ee(0x2f6)]=!0x0,Promise[_0x55c6ee(0x48a)]()[_0x55c6ee(0x1d7)](()=>{const _0x692f5d=_0x55c6ee;this[_0x692f5d(0x2f6)]=!0x1;let _0x28622d=Array['from'](this[_0x692f5d(0x41a)]['values']());this['_queuedLayouts'][_0x692f5d(0x249)](),_0x28622d['forEach'](_0x5738f2=>{const _0x554de3=_0x692f5d;this[_0x554de3(0x202)](_0x5738f2);});}));}['_executeRootAnchoredLayout'](_0x63ce28){const _0x292f6d=_0x2d31a4;var _0x25c932;let _0xdf19a8=this['_boardElementService'][_0x292f6d(0x4c8)](_0x63ce28[_0x292f6d(0x499)],_0x63ce28[_0x292f6d(0x452)],_0x63ce28['scopeId']),_0x37e9b0=(_0x25c932=_0x3a557b(_0xdf19a8==null?void 0x0:_0xdf19a8[_0x292f6d(0x4b4)]))==null?void 0x0:_0x25c932[_0x292f6d(0x393)];this[_0x292f6d(0x2a3)][_0x292f6d(0x38b)](_0x59d4d9['id'],{..._0x63ce28,'skipUndo':!0x0,..._0x37e9b0?{'anchorNodeId':_0x37e9b0}:null});}['_getElementKey'](_0x580b01){const _0x148df4=_0x2d31a4;return _0x580b01[_0x148df4(0x499)]+':'+_0x580b01[_0x148df4(0x452)]+':'+_0x580b01[_0x148df4(0x421)];}};an=J([q(0x1,_0x4a13c4(_0x495947)),q(0x2,_0x2a0a40)],an);const Y={'primaryColor':_0x78d89c,'surfaceColor':_0x19667e,'textColor':_0x429bd2,'fontFamily':_0x4d3453['ff']};function on(_0x1de14c,_0xb4ddf1){const _0x1ff7b2=_0x2d31a4;let _0x56894b=Math[_0x1ff7b2(0x28e)](0x1,Math['max'](0x0,Number[_0x1ff7b2(0x31d)](_0xb4ddf1)?_0xb4ddf1:0x1)),_0x229bba=_0x1de14c['trim'](),_0x3b3ef7=/^#([0-9a-fA-F]{6})$/[_0x1ff7b2(0x295)](_0x229bba);if(!_0x3b3ef7)return _0x1de14c;let _0x33884d=_0x3b3ef7[0x1];return _0x1ff7b2(0x3fe)+Number[_0x1ff7b2(0x455)](_0x33884d['slice'](0x0,0x2),0x10)+',\x20'+Number['parseInt'](_0x33884d[_0x1ff7b2(0x471)](0x2,0x4),0x10)+',\x20'+Number[_0x1ff7b2(0x455)](_0x33884d[_0x1ff7b2(0x471)](0x4,0x6),0x10)+',\x20'+_0x56894b+')';}const X={'primaryColor':Y[_0x2d31a4(0x487)],'ghostFillColor':on(Y['surfaceColor'],0.72),'ghostTextColor':on(Y[_0x2d31a4(0x4c0)],0.62),'rootTextColor':on(Y['surfaceColor'],0.86),'sourceHighlightFillColor':on(Y[_0x2d31a4(0x487)],0.12),'sourceHighlightStrokeColor':on(Y[_0x2d31a4(0x487)],0.9),'objectAlpha':0.72,'dragObjectAlpha':0.78,'connectorAlpha':0.64,'lineWidthScreen':0x2,'fallbackNodeWidth':_0x1b9954[_0x2d31a4(0x45e)],'fallbackNodeHeight':_0x1b9954[_0x2d31a4(0x468)],'branchGap':_0x5242c3[_0x2d31a4(0x46b)],'sourceHaloScreen':0x4,'ghostRadius':0x8,'rootRadius':0xa,'fontFamily':Y[_0x2d31a4(0x3bf)],'ghostFontWeight':0x1f4,'rootFontWeight':0x258,'rootFontSize':0x12,'textPaddingScreen':0xc,'dirtyPaddingScreen':0x18,'sourceDashScreen':[0x6,0x4]};function Z(_0x2d37c2,_0x5b47be,_0x34e0b9,_0x4dffc5,_0x18d59f,_0x1906e5){const _0x8a67=_0x2d31a4;let _0x65aa80=Math[_0x8a67(0x28e)](_0x1906e5,_0x4dffc5/0x2,_0x18d59f/0x2);_0x2d37c2[_0x8a67(0x416)](),_0x2d37c2[_0x8a67(0x392)](_0x5b47be+_0x65aa80,_0x34e0b9),_0x2d37c2[_0x8a67(0x32a)](_0x5b47be+_0x4dffc5-_0x65aa80,_0x34e0b9),_0x2d37c2[_0x8a67(0x2e0)](_0x5b47be+_0x4dffc5,_0x34e0b9,_0x5b47be+_0x4dffc5,_0x34e0b9+_0x65aa80),_0x2d37c2[_0x8a67(0x32a)](_0x5b47be+_0x4dffc5,_0x34e0b9+_0x18d59f-_0x65aa80),_0x2d37c2[_0x8a67(0x2e0)](_0x5b47be+_0x4dffc5,_0x34e0b9+_0x18d59f,_0x5b47be+_0x4dffc5-_0x65aa80,_0x34e0b9+_0x18d59f),_0x2d37c2['lineTo'](_0x5b47be+_0x65aa80,_0x34e0b9+_0x18d59f),_0x2d37c2[_0x8a67(0x2e0)](_0x5b47be,_0x34e0b9+_0x18d59f,_0x5b47be,_0x34e0b9+_0x18d59f-_0x65aa80),_0x2d37c2[_0x8a67(0x32a)](_0x5b47be,_0x34e0b9+_0x65aa80),_0x2d37c2['quadraticCurveTo'](_0x5b47be,_0x34e0b9,_0x5b47be+_0x65aa80,_0x34e0b9),_0x2d37c2[_0x8a67(0x2d2)]();}function sn(_0x145e8a,_0x1d1245,_0x39ae24){const _0x5031fc=_0x2d31a4;return _0x145e8a+'\x20'+_0x1d1245/_0x39ae24+_0x5031fc(0x3c6)+X[_0x5031fc(0x3bf)];}const cn=_0x2d31a4(0x2a1),ln=_0x19c79d['preview'];function Q(_0x4288d4,_0x5b3bfb){const _0x373e5f=_0x2d31a4;return Number[_0x373e5f(0x31d)](_0x4288d4)?_0x4288d4:_0x5b3bfb;}function un(){const _0x1105c6=_0x2d31a4;return X[_0x1105c6(0x1e3)];}function dn(){const _0x567372=_0x2d31a4;return X[_0x567372(0x442)];}function fn(_0xf6c824){const _0x1586e3=_0x2d31a4;return _0xf6c824===0x1?_0x1586e3(0x1ac):_0xf6c824===0x3?_0x1586e3(0x234):_0x1586e3(0x4a4);}function pn(_0x1161cf,_0x22f3cd,_0x2e8a16,_0x3ea973){return _0x2e8a16===0x1?_0x1161cf+_0x3ea973:_0x2e8a16===0x3?_0x1161cf+_0x22f3cd-_0x3ea973:_0x1161cf+_0x22f3cd/0x2;}var mn=class extends _0x3866b7{constructor(_0x16b1b9=cn,_0x5cbd8e){const _0x20966e=_0x2d31a4;super(_0x16b1b9),K(this,'_state',{'ghostBounds':null,'parentBounds':null,'side':_0x20966e(0x234),'zoomRatio':0x1}),this['evented']=!0x1,this[_0x20966e(0x2cb)]=_0x4ea4f2['transientPreviewForeground'],this[_0x20966e(0x2a6)](_0x5cbd8e);}[_0x2d31a4(0x2a6)](_0x126559){const _0x55c1c0=_0x2d31a4;if(this[_0x55c1c0(0x363)]={...this[_0x55c1c0(0x363)],..._0x126559},this[_0x55c1c0(0x363)][_0x55c1c0(0x230)]){let _0x524a49=this[_0x55c1c0(0x1e5)]();this['transformByState'](_0x524a49),this[_0x55c1c0(0x4bf)]();}else this[_0x55c1c0(0x2c0)]();let _0x4c0ca6=this;typeof _0x4c0ca6[_0x55c1c0(0x420)]==_0x55c1c0(0x43d)?_0x4c0ca6['makeDirtyNoDebounce'](!0x0):this['makeDirty'](!0x0);}['isHit'](_0x3f9126){return!0x1;}[_0x2d31a4(0x2dd)](_0x435649,_0x436b29){const _0x184f4e=_0x2d31a4;let _0x1deccc=this[_0x184f4e(0x363)][_0x184f4e(0x230)];if(!_0x1deccc||!this[_0x184f4e(0x1c0)])return this[_0x184f4e(0x48e)](!0x1),this;let _0x3efe40=Number[_0x184f4e(0x31d)](this['_state']['zoomRatio'])&&(this[_0x184f4e(0x363)][_0x184f4e(0x439)]??0x0)>0x0?this[_0x184f4e(0x363)][_0x184f4e(0x439)]:0x1,_0xc0931d=Q(_0x1deccc[_0x184f4e(0x1ac)],0x0),_0x44b59a=Q(_0x1deccc[_0x184f4e(0x258)],0x0),_0x54f18c=Math[_0x184f4e(0x34f)](0x1,Q(_0x1deccc[_0x184f4e(0x35d)],un())),_0x3d3b65=Math['max'](0x1,Q(_0x1deccc['height'],dn()));if(_0x435649[_0x184f4e(0x496)](),_0x435649[_0x184f4e(0x4b5)]=X['dragObjectAlpha'],_0x435649[_0x184f4e(0x2df)]=X['lineWidthScreen']/_0x3efe40,_0x435649[_0x184f4e(0x2f5)]=X[_0x184f4e(0x487)],_0x435649[_0x184f4e(0x2db)]=X[_0x184f4e(0x4c6)],this[_0x184f4e(0x207)](_0x435649,{'left':_0xc0931d,'top':_0x44b59a,'width':_0x54f18c,'height':_0x3d3b65},_0x3efe40),this[_0x184f4e(0x4a5)](_0x435649,_0x3efe40),this[_0x184f4e(0x363)][_0x184f4e(0x269)]===!0x1)return _0x435649[_0x184f4e(0x3f5)](),this['makeDirty'](!0x1),this;Z(_0x435649,_0xc0931d,_0x44b59a,_0x54f18c,_0x3d3b65,X['ghostRadius']),_0x435649[_0x184f4e(0x4ca)](),_0x435649['stroke']();let _0x5e674b=this[_0x184f4e(0x363)][_0x184f4e(0x460)],_0x3d125d=Number['isFinite'](_0x5e674b==null?void 0x0:_0x5e674b[_0x184f4e(0x282)])&&((_0x5e674b==null?void 0x0:_0x5e674b[_0x184f4e(0x282)])??0x0)>0x0?_0x5e674b['fontSize']:0x10,_0x243437=X[_0x184f4e(0x390)]/_0x3efe40;return _0x435649[_0x184f4e(0x2db)]=(_0x5e674b==null?void 0x0:_0x5e674b[_0x184f4e(0x445)])??X[_0x184f4e(0x474)],_0x435649[_0x184f4e(0x27e)]=sn(X[_0x184f4e(0x277)],_0x3d125d,_0x3efe40),_0x435649[_0x184f4e(0x410)]=fn(_0x5e674b==null?void 0x0:_0x5e674b['horizontalAlign']),_0x435649[_0x184f4e(0x47e)]=_0x184f4e(0x3d6),_0x435649[_0x184f4e(0x238)]((_0x5e674b==null?void 0x0:_0x5e674b[_0x184f4e(0x2be)])||_0x355d17,pn(_0xc0931d,_0x54f18c,_0x5e674b==null?void 0x0:_0x5e674b[_0x184f4e(0x368)],_0x243437),_0x44b59a+_0x3d3b65/0x2,Math[_0x184f4e(0x34f)](0x1,_0x54f18c-_0x243437*0x2)),_0x435649[_0x184f4e(0x3f5)](),this[_0x184f4e(0x48e)](!0x1),this;}['_resolveDirtyBounds'](){const _0x253784=_0x2d31a4;let _0x395407=this[_0x253784(0x363)][_0x253784(0x230)],_0x565658=Number['isFinite'](this[_0x253784(0x363)][_0x253784(0x439)])&&(this[_0x253784(0x363)][_0x253784(0x439)]??0x0)>0x0?this[_0x253784(0x363)][_0x253784(0x439)]:0x1,_0x10ab0f=X[_0x253784(0x340)]/_0x565658;if(!_0x395407)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0xc29251=Q(_0x395407[_0x253784(0x1ac)],0x0),_0x490857=Q(_0x395407[_0x253784(0x258)],0x0),_0x23f690=Math[_0x253784(0x34f)](0x1,Q(_0x395407['width'],un())),_0x2fec02=Math[_0x253784(0x34f)](0x1,Q(_0x395407[_0x253784(0x41e)],dn())),_0x11cf42=this[_0x253784(0x363)][_0x253784(0x225)],_0x5bd264=this['_state']['parentBounds'],_0x81aeb8=Q(_0x11cf42==null?void 0x0:_0x11cf42['left'],_0xc29251),_0x595bd5=Q(_0x11cf42==null?void 0x0:_0x11cf42[_0x253784(0x258)],_0x490857),_0x342b8f=Math[_0x253784(0x34f)](0x1,Q(_0x11cf42==null?void 0x0:_0x11cf42[_0x253784(0x35d)],_0x23f690)),_0xfaace4=Math[_0x253784(0x34f)](0x1,Q(_0x11cf42==null?void 0x0:_0x11cf42[_0x253784(0x41e)],_0x2fec02));if(!_0x5bd264){let _0x574b0a=Math[_0x253784(0x28e)](_0xc29251,_0x81aeb8)-_0x10ab0f,_0x108fcb=Math['min'](_0x490857,_0x595bd5)-_0x10ab0f,_0x29b4ba=Math[_0x253784(0x34f)](_0xc29251+_0x23f690,_0x81aeb8+_0x342b8f)+_0x10ab0f,_0x335c45=Math[_0x253784(0x34f)](_0x490857+_0x2fec02,_0x595bd5+_0xfaace4)+_0x10ab0f;return{'left':_0x574b0a,'top':_0x108fcb,'width':_0x29b4ba-_0x574b0a,'height':_0x335c45-_0x108fcb};}let _0x1e4fa0=Q(_0x5bd264[_0x253784(0x1ac)],_0xc29251),_0x3c0d88=Q(_0x5bd264[_0x253784(0x258)],_0x490857),_0x30925a=Math[_0x253784(0x34f)](0x1,Q(_0x5bd264[_0x253784(0x35d)],un())),_0x5741d2=Math['max'](0x1,Q(_0x5bd264[_0x253784(0x41e)],dn())),_0x41ce6d=Math[_0x253784(0x28e)](_0xc29251,_0x1e4fa0,_0x81aeb8)-_0x10ab0f,_0x2816d9=Math[_0x253784(0x28e)](_0x490857,_0x3c0d88,_0x595bd5)-_0x10ab0f,_0x145b32=Math[_0x253784(0x34f)](_0xc29251+_0x23f690,_0x1e4fa0+_0x30925a,_0x81aeb8+_0x342b8f)+_0x10ab0f,_0x539fa5=Math['max'](_0x490857+_0x2fec02,_0x3c0d88+_0x5741d2,_0x595bd5+_0xfaace4)+_0x10ab0f;return{'left':_0x41ce6d,'top':_0x2816d9,'width':_0x145b32-_0x41ce6d,'height':_0x539fa5-_0x2816d9};}[_0x2d31a4(0x4a5)](_0x33d846,_0x9cc06e){const _0x2c7457=_0x2d31a4;var _0xfdc190;let _0x413f61=this[_0x2c7457(0x363)][_0x2c7457(0x225)];if(!_0x413f61)return;let _0x5e70ed=X[_0x2c7457(0x308)]/_0x9cc06e,_0x4d5dcb=Q(_0x413f61[_0x2c7457(0x1ac)],0x0)-_0x5e70ed,_0xc2d9b4=Q(_0x413f61[_0x2c7457(0x258)],0x0)-_0x5e70ed,_0x1e2f09=Math[_0x2c7457(0x34f)](0x1,Q(_0x413f61[_0x2c7457(0x35d)],un()))+_0x5e70ed*0x2,_0x380f93=Math['max'](0x1,Q(_0x413f61[_0x2c7457(0x41e)],dn()))+_0x5e70ed*0x2;_0x33d846[_0x2c7457(0x496)](),_0x33d846['globalAlpha']=0x1,_0x33d846[_0x2c7457(0x2df)]=X[_0x2c7457(0x23b)]/_0x9cc06e,_0x33d846[_0x2c7457(0x2f5)]=X[_0x2c7457(0x30e)],_0x33d846[_0x2c7457(0x2db)]=X[_0x2c7457(0x3c1)],(_0xfdc190=_0x33d846[_0x2c7457(0x2c1)])==null||_0xfdc190[_0x2c7457(0x248)](_0x33d846,X[_0x2c7457(0x227)][_0x2c7457(0x461)](_0x17860c=>_0x17860c/_0x9cc06e)),Z(_0x33d846,_0x4d5dcb,_0xc2d9b4,_0x1e2f09,_0x380f93,X[_0x2c7457(0x48f)]),_0x33d846['fill'](),_0x33d846['stroke'](),_0x33d846['restore']();}[_0x2d31a4(0x207)](_0x360cff,_0x2a06a9,_0x38a861){const _0x8d2e8d=_0x2d31a4;let _0x1a0aff=this[_0x8d2e8d(0x363)][_0x8d2e8d(0x2ec)];if(!_0x1a0aff)return;let _0x1c335a=Q(_0x1a0aff['left'],0x0),_0x447e71=Q(_0x1a0aff[_0x8d2e8d(0x258)],0x0),_0x6613b5=Math[_0x8d2e8d(0x34f)](0x1,Q(_0x1a0aff['width'],un())),_0x13dcb8=Math[_0x8d2e8d(0x34f)](0x1,Q(_0x1a0aff[_0x8d2e8d(0x41e)],dn())),_0x1d23cc=X[_0x8d2e8d(0x46b)],_0x1b8688=this[_0x8d2e8d(0x363)][_0x8d2e8d(0x384)]??'right';if(_0x360cff[_0x8d2e8d(0x496)](),_0x360cff[_0x8d2e8d(0x4b5)]=X['connectorAlpha'],_0x360cff[_0x8d2e8d(0x2f5)]=X[_0x8d2e8d(0x487)],_0x360cff[_0x8d2e8d(0x2df)]=X['lineWidthScreen']/_0x38a861,_0x360cff[_0x8d2e8d(0x208)]=_0x8d2e8d(0x43c),_0x360cff[_0x8d2e8d(0x2e2)]='round',_0x360cff['beginPath'](),_0x1b8688==='top'||_0x1b8688===_0x8d2e8d(0x394)){let _0x10daae=_0x1c335a+_0x6613b5/0x2,_0x19a898=_0x2a06a9[_0x8d2e8d(0x1ac)]+_0x2a06a9[_0x8d2e8d(0x35d)]/0x2,_0x4b4bb9=_0x1b8688===_0x8d2e8d(0x394)?_0x447e71+_0x13dcb8:_0x447e71,_0x425434=_0x1b8688===_0x8d2e8d(0x394)?_0x2a06a9[_0x8d2e8d(0x258)]:_0x2a06a9[_0x8d2e8d(0x258)]+_0x2a06a9[_0x8d2e8d(0x41e)],_0x1f8e1a=_0x1b8688==='bottom'?Math[_0x8d2e8d(0x28e)](_0x4b4bb9+_0x1d23cc,(_0x4b4bb9+_0x425434)/0x2):Math['max'](_0x4b4bb9-_0x1d23cc,(_0x4b4bb9+_0x425434)/0x2);_0x360cff[_0x8d2e8d(0x392)](_0x10daae,_0x4b4bb9),_0x360cff['lineTo'](_0x10daae,_0x1f8e1a),_0x360cff[_0x8d2e8d(0x32a)](_0x19a898,_0x1f8e1a),_0x360cff[_0x8d2e8d(0x32a)](_0x19a898,_0x425434);}else{let _0x2b4086=_0x447e71+_0x13dcb8/0x2,_0x1ca401=_0x2a06a9[_0x8d2e8d(0x258)]+_0x2a06a9['height']/0x2,_0x34d63a=_0x1b8688===_0x8d2e8d(0x234)?_0x1c335a+_0x6613b5:_0x1c335a,_0x2e62bd=_0x1b8688==='right'?_0x2a06a9[_0x8d2e8d(0x1ac)]:_0x2a06a9['left']+_0x2a06a9[_0x8d2e8d(0x35d)],_0x4cb858=_0x1b8688===_0x8d2e8d(0x234)?Math[_0x8d2e8d(0x28e)](_0x34d63a+_0x1d23cc,(_0x34d63a+_0x2e62bd)/0x2):Math[_0x8d2e8d(0x34f)](_0x34d63a-_0x1d23cc,(_0x34d63a+_0x2e62bd)/0x2);_0x360cff[_0x8d2e8d(0x392)](_0x34d63a,_0x2b4086),_0x360cff[_0x8d2e8d(0x32a)](_0x4cb858,_0x2b4086),_0x360cff[_0x8d2e8d(0x32a)](_0x4cb858,_0x1ca401),_0x360cff['lineTo'](_0x2e62bd,_0x1ca401);}_0x360cff[_0x8d2e8d(0x2ac)](),_0x360cff['restore']();}};function hn(_0x215f7a,_0x12c2fb){const _0x4d66ca=_0x2d31a4;return(_0x12c2fb==null?void 0x0:_0x12c2fb[_0x215f7a[_0x4d66ca(0x421)]])??_0x215f7a[_0x4d66ca(0x4b4)][_0x4d66ca(0x357)];}function gn(_0x423dbb,_0x4573ba){const _0x1dc568=_0x2d31a4;let _0x506bea=hn(_0x423dbb,_0x4573ba);return{'x':(_0x506bea[_0x1dc568(0x1ac)]??0x0)+(_0x506bea[_0x1dc568(0x35d)]??0x0)/0x2,'y':(_0x506bea[_0x1dc568(0x258)]??0x0)+(_0x506bea[_0x1dc568(0x41e)]??0x0)/0x2};}function _n(_0x473a5a,_0x276d76){const _0x19d82a=_0x2d31a4;return Math[_0x19d82a(0x436)](_0x473a5a['x']-_0x276d76['x'],_0x473a5a['y']-_0x276d76['y']);}function vn(_0x1f22d6,_0x3b70e7){const _0x5446fa=_0x2d31a4;let _0xce236e=_0x1f22d6[_0x5446fa(0x1ac)]??0x0,_0x23b939=_0x1f22d6['top']??0x0,_0x28e7c1=_0xce236e+(_0x1f22d6[_0x5446fa(0x35d)]??0x0),_0x586bd4=_0x23b939+(_0x1f22d6[_0x5446fa(0x41e)]??0x0),_0x2e634a=_0x3b70e7[_0x5446fa(0x1ac)]??0x0,_0x5d0ec4=_0x3b70e7[_0x5446fa(0x258)]??0x0,_0x1b05fa=_0x2e634a+(_0x3b70e7['width']??0x0),_0x1270cf=_0x5d0ec4+(_0x3b70e7['height']??0x0),_0x594ed1=Math[_0x5446fa(0x34f)](_0x2e634a-_0x28e7c1,_0xce236e-_0x1b05fa,0x0),_0x330391=Math[_0x5446fa(0x34f)](_0x5d0ec4-_0x586bd4,_0x23b939-_0x1270cf,0x0);return Math[_0x5446fa(0x436)](_0x594ed1,_0x330391);}function yn(_0x5a9334,_0x1c61ea,_0x1ce862){const _0x14425b=_0x2d31a4;var _0x583adf;let _0x131548=_0xd8e37e((_0x583adf=_0x5a9334[_0x1c61ea])==null?void 0x0:_0x583adf[_0x14425b(0x4b4)]);for(;_0x131548!=null&&_0x131548[_0x14425b(0x3e6)];){var _0x54325b;if(_0x131548[_0x14425b(0x3e6)]===_0x1ce862)return!0x0;_0x131548=_0xd8e37e((_0x54325b=_0x5a9334[_0x131548['parentNodeId']])==null?void 0x0:_0x54325b[_0x14425b(0x4b4)]);}return!0x1;}function bn(_0x1adb9a,_0x438b73,_0x594bcf){const _0x5e3c0c=_0x2d31a4;let _0x24b001=hn(_0x1adb9a,_0x594bcf),_0xde351b=_0x24b001['top']??0x0,_0x503e52=_0x24b001[_0x5e3c0c(0x41e)]??0x0;return _0x503e52<=0x0?null:_0x438b73['y']<=_0xde351b+_0x503e52/0x3?_0x5e3c0c(0x353):_0x438b73['y']>=_0xde351b+_0x503e52*0x2/0x3?_0x5e3c0c(0x289):null;}function xn(_0x5cb67b,_0x42c5ba){const _0x20a9d3=_0x2d31a4;let _0x21acb1=_0x42c5ba==null?void 0x0:_0x42c5ba[_0x5cb67b];return Number[_0x20a9d3(0x31d)](_0x21acb1==null?void 0x0:_0x21acb1[_0x20a9d3(0x1ac)])&&Number[_0x20a9d3(0x31d)](_0x21acb1==null?void 0x0:_0x21acb1[_0x20a9d3(0x258)])?{'kind':_0x20a9d3(0x3db),'left':_0x21acb1[_0x20a9d3(0x1ac)],'top':_0x21acb1[_0x20a9d3(0x258)]}:{'kind':_0x20a9d3(0x3db)};}function Sn(_0x4ddc82,_0x4c3630,_0x3919b5){const _0x483583=_0x2d31a4;let _0x4e5e1c=_0x4ddc82[_0x4c3630],_0x8614e2=_0xd8e37e(_0x4e5e1c==null?void 0x0:_0x4e5e1c['element']);if(!_0x4e5e1c||!_0x8614e2||!_0x8614e2[_0x483583(0x3e6)]&&!(_0x3919b5!=null&&_0x3919b5[_0x483583(0x38a)]))return{'kind':_0x483583(0x314)};let _0x825e69=_0x3919b5==null?void 0x0:_0x3919b5[_0x483583(0x47f)],_0xf0931f=hn(_0x4e5e1c,_0x825e69),_0x41d57d=gn(_0x4e5e1c,_0x825e69),_0x21d1f3=Object['values'](_0x4ddc82)[_0x483583(0x461)](_0x4ee9ab=>{const _0x5d63da=_0x483583;let _0x47c6ea=_0xd8e37e(_0x4ee9ab[_0x5d63da(0x4b4)]);return!_0x47c6ea||_0x4ee9ab[_0x5d63da(0x421)]===_0x4c3630||_0x4ee9ab[_0x5d63da(0x421)]===_0x8614e2[_0x5d63da(0x3e6)]||_0x3919b5!=null&&_0x3919b5[_0x5d63da(0x38a)]&&!_0x8614e2[_0x5d63da(0x3e6)]&&_0x47c6ea[_0x5d63da(0x2f8)]===_0x8614e2[_0x5d63da(0x2f8)]||yn(_0x4ddc82,_0x4ee9ab['elementId'],_0x4c3630)?null:{'item':_0x4ee9ab,'snapDistance':vn(_0xf0931f,hn(_0x4ee9ab,_0x825e69)),'center':gn(_0x4ee9ab,_0x825e69)};})['filter'](_0x29985b=>!!_0x29985b)[_0x483583(0x222)]((_0x3f0b58,_0x3750f4)=>_0x3f0b58[_0x483583(0x1e2)]-_0x3750f4['snapDistance']||_n(_0x41d57d,_0x3f0b58['center'])-_n(_0x41d57d,_0x3750f4[_0x483583(0x4a4)]))[0x0];if(_0x21d1f3&&_0x21d1f3['snapDistance']<=0x64){let _0x50f768=_0xd8e37e(_0x21d1f3[_0x483583(0x2eb)][_0x483583(0x4b4)]),_0x35f7fc=_0x50f768!=null&&_0x50f768[_0x483583(0x3e6)]?bn(_0x21d1f3['item'],_0x41d57d,_0x825e69):null;return _0x50f768!=null&&_0x50f768[_0x483583(0x3e6)]&&_0x35f7fc?{'kind':'reparent','newParentNodeId':_0x50f768[_0x483583(0x3e6)],'side':_0x50f768[_0x483583(0x384)]??_0x483583(0x234),'referenceNodeId':_0x21d1f3['item'][_0x483583(0x421)],'placement':_0x35f7fc}:{'kind':_0x483583(0x3a3),'newParentNodeId':_0x21d1f3['item'][_0x483583(0x421)],'side':_0x41d57d['x']<_0x21d1f3[_0x483583(0x4a4)]['x']?_0x483583(0x1ac):_0x483583(0x234)};}if(_0x3919b5!=null&&_0x3919b5[_0x483583(0x2cd)])return xn(_0x4c3630,_0x825e69);if(!_0x8614e2[_0x483583(0x3e6)])return{'kind':_0x483583(0x314)};let _0x3adee7=_0x4ddc82[_0x8614e2['parentNodeId']];return _0x3adee7&&_n(_0x41d57d,gn(_0x3adee7,_0x825e69))>0x230?xn(_0x4c3630,_0x825e69):{'kind':'none'};}function Cn(_0x47059c,_0x58c043){const _0x579677=_0x2d31a4;var _0x3a419f,_0x6929e1;return _0x47059c[_0x579677(0x421)]===_0x58c043||((_0x3a419f=_0xd8e37e(_0x47059c['element']))==null?void 0x0:_0x3a419f[_0x579677(0x2f8)])===_0x58c043||((_0x6929e1=_0x1b1ea2(_0x47059c[_0x579677(0x4b4)]))==null?void 0x0:_0x6929e1['structureScopeId'])===_0x58c043;}function wn(_0x205b8a,_0x5dc10e,_0x243ebf,_0x298576){const _0x5361b0=_0x2d31a4;let _0x291a26=_0x205b8a[_0x5dc10e];if(!_0x291a26)return _0x205b8a;let _0x2b482a=_0x291a26['transform']??_0x291a26[_0x5361b0(0x4b4)][_0x5361b0(0x357)]??{};return{..._0x205b8a,[_0x5dc10e]:{..._0x291a26,'transform':{..._0x2b482a,'left':(_0x2b482a[_0x5361b0(0x1ac)]??0x0)+_0x243ebf,'top':(_0x2b482a['top']??0x0)+_0x298576},'element':{..._0x291a26[_0x5361b0(0x4b4)],'transform':{..._0x291a26[_0x5361b0(0x4b4)][_0x5361b0(0x357)],'left':(_0x291a26[_0x5361b0(0x4b4)][_0x5361b0(0x357)]['left']??0x0)+_0x243ebf,'top':(_0x291a26[_0x5361b0(0x4b4)]['transform'][_0x5361b0(0x258)]??0x0)+_0x298576}}}};}function Tn(_0x5375db){const _0xcef07c=_0x2d31a4;if(!Number[_0xcef07c(0x31d)](_0x5375db[_0xcef07c(0x324)][_0xcef07c(0x1ac)])||!Number['isFinite'](_0x5375db['liveRootBounds']['top'])||!Number[_0xcef07c(0x31d)](_0x5375db['rootStartBounds'][_0xcef07c(0x1ac)])||!Number[_0xcef07c(0x31d)](_0x5375db[_0xcef07c(0x21d)][_0xcef07c(0x258)]))return null;let _0x45dbca=_0x5375db['liveRootBounds'][_0xcef07c(0x1ac)]-_0x5375db['rootStartBounds'][_0xcef07c(0x1ac)],_0x305445=_0x5375db['liveRootBounds']['top']-_0x5375db[_0xcef07c(0x21d)][_0xcef07c(0x258)],_0x45a381=wn(_0x5375db[_0xcef07c(0x43e)],_0x5375db[_0xcef07c(0x435)],_0x45dbca,_0x305445),_0x5a33ed=[];return Object[_0xcef07c(0x379)](_0x45a381)[_0xcef07c(0x205)](_0x5460a1=>{const _0x395e19=_0xcef07c;if(_0x5460a1['elementId']===_0x5375db[_0x395e19(0x393)]||_0x5460a1[_0x395e19(0x421)]===_0x5375db['scopeId']||!Cn(_0x5460a1,_0x5375db['scopeId']))return;if('connectorData'in _0x5460a1[_0x395e19(0x4b4)]){var _0x8eb34f;let _0xb81b9c=(_0x8eb34f=_0x5375db[_0x395e19(0x43e)][_0x5460a1[_0x395e19(0x421)]])==null?void 0x0:_0x8eb34f[_0x395e19(0x4b4)];_0xb81b9c&&_0x395e19(0x1f7)in _0xb81b9c&&_0x5a33ed[_0x395e19(0x228)]({'kind':_0x395e19(0x3aa),'elementId':_0x5460a1['elementId'],'element':_0xb199be(_0xb81b9c,{'x':_0x45dbca,'y':_0x305445})});return;}let _0x4293be=_0x59b50d(_0x45a381,_0x5460a1[_0x395e19(0x421)]);_0x4293be&&_0x5a33ed[_0x395e19(0x228)]({'kind':_0x395e19(0x4b6),'elementId':_0x5460a1[_0x395e19(0x421)],'bounds':_0x4293be});}),{'deltaX':_0x45dbca,'deltaY':_0x305445,'elementData':_0x45a381,'items':_0x5a33ed};}let En=class extends _0x9932d8{constructor(_0x53277d,_0x207485,_0x5b09a3,_0x52b0ae,_0x323b13,_0x27c4f7,_0xa79591){const _0x97110a=_0x2d31a4;super(),this[_0x97110a(0x2d9)]=_0x53277d,this[_0x97110a(0x235)]=_0x207485,this[_0x97110a(0x318)]=_0x5b09a3,this['_commandService']=_0x52b0ae,this['_uiStateService']=_0x323b13,this[_0x97110a(0x3b1)]=_0x27c4f7,this[_0x97110a(0x306)]=_0xa79591,K(this,_0x97110a(0x32b),null),K(this,'_pointerDragStart',null),K(this,_0x97110a(0x346),null),K(this,'_childDragActivated',!0x1),K(this,_0x97110a(0x1df),null),K(this,'_objectPointerDisposables',null),K(this,'_attachObjectPointerScheduled',!0x1),K(this,_0x97110a(0x31f),null),K(this,_0x97110a(0x2bf),!0x1),this['_init']();}[_0x2d31a4(0x430)](){const _0x7bb0be=_0x2d31a4;var _0x5fb97f,_0x44fa40,_0x3a4273,_0x12433f,_0x503620;let _0x338986=this[_0x7bb0be(0x2d9)]['scene']['getTransformerByCreate']();this['disposeWithMe'](_0x5a6bc0(_0x338986[_0x7bb0be(0x387)][_0x7bb0be(0x4b1)](_0x35dd5f(this['dispose$']))[_0x7bb0be(0x45b)](()=>{const _0x1c70cc=_0x7bb0be;this[_0x1c70cc(0x4a1)]();}))),this[_0x7bb0be(0x42f)](_0x5a6bc0(((_0x5fb97f=_0x338986[_0x7bb0be(0x1db)])==null?void 0x0:_0x5fb97f['pipe'](_0x35dd5f(this[_0x7bb0be(0x1c3)]))[_0x7bb0be(0x45b)](_0x41a074=>{const _0x505e36=_0x7bb0be;this['_syncDragPreview'](_0x41a074==null?void 0x0:_0x41a074[_0x505e36(0x1e7)]);}))??{'dispose':()=>{}})),this[_0x7bb0be(0x42f)](_0x5a6bc0(_0x338986['changeEnd$']['pipe'](_0x35dd5f(this[_0x7bb0be(0x1c3)]))[_0x7bb0be(0x45b)](_0x336010=>{const _0x3517a8=_0x7bb0be;setTimeout(()=>this['_applyDragTopologyAction'](_0x336010==null?void 0x0:_0x336010[_0x3517a8(0x1e7)]),0x0);}))),this[_0x7bb0be(0x42f)](_0x5a6bc0(((_0x44fa40=this[_0x7bb0be(0x2d9)]['scene'][_0x7bb0be(0x1b9)])==null?void 0x0:_0x44fa40[_0x7bb0be(0x4cb)]({'priority':0x3,'next':([_0x37f131])=>this[_0x7bb0be(0x359)](_0x37f131)}))??{'dispose':()=>{}})),this['disposeWithMe'](_0x5a6bc0(((_0x3a4273=this[_0x7bb0be(0x2d9)][_0x7bb0be(0x37b)][_0x7bb0be(0x396)])==null?void 0x0:_0x3a4273['subscribeEvent']({'priority':0x3,'next':([_0x4bd720,_0x2cb0c6])=>this['_syncPointerChildDragPreview'](_0x4bd720,_0x2cb0c6)}))??{'dispose':()=>{}})),this['disposeWithMe'](_0x5a6bc0(((_0x12433f=this['_renderContext'][_0x7bb0be(0x37b)][_0x7bb0be(0x2e9)])==null?void 0x0:_0x12433f[_0x7bb0be(0x4cb)]({'priority':0x3,'next':([_0x1b36b2,_0x1beecf])=>this[_0x7bb0be(0x44a)](_0x1b36b2,_0x1beecf)}))??{'dispose':()=>{}})),this[_0x7bb0be(0x42f)](_0x5a6bc0(((_0x503620=this['_renderContext']['scene'][_0x7bb0be(0x325)])==null?void 0x0:_0x503620['subscribeEvent']({'priority':0x3,'next':([,_0x5493cd])=>this[_0x7bb0be(0x336)](_0x5493cd)}))??{'dispose':()=>{}})),this[_0x7bb0be(0x42f)](_0x5a6bc0(()=>{const _0xc4f24e=_0x7bb0be;var _0x3907c2;return(_0x3907c2=this['_objectPointerDisposables'])==null?void 0x0:_0x3907c2[_0xc4f24e(0x262)]();})),this[_0x7bb0be(0x42f)](_0x5a6bc0(()=>this[_0x7bb0be(0x405)]())),this['_subscribeElementDataChanges'](),this[_0x7bb0be(0x2ba)](),this['disposeWithMe'](_0x5a6bc0(()=>this[_0x7bb0be(0x3fa)]()));}['_subscribeElementDataChanges'](){const _0x327580=_0x2d31a4;[this[_0x327580(0x235)][_0x327580(0x33f)],this[_0x327580(0x235)][_0x327580(0x27d)],this[_0x327580(0x235)]['elementRemove$']]['forEach'](_0x1ab2a5=>{const _0x3d6dbb=_0x327580;this[_0x3d6dbb(0x42f)](_0x5a6bc0(_0x1ab2a5[_0x3d6dbb(0x4b1)](_0x35dd5f(this[_0x3d6dbb(0x1c3)]))['subscribe'](()=>{const _0x192dbc=_0x3d6dbb;this[_0x192dbc(0x2ba)]();})));}),this[_0x327580(0x318)][_0x327580(0x1b8)]&&this[_0x327580(0x42f)](_0x5a6bc0(this[_0x327580(0x318)][_0x327580(0x1b8)][_0x327580(0x4b1)](_0x35dd5f(this[_0x327580(0x1c3)]))[_0x327580(0x45b)](()=>{this['_scheduleAttachObjectPointerListeners']();})));}[_0x2d31a4(0x2ba)](){const _0xa115ff=_0x2d31a4;this[_0xa115ff(0x38f)]||(this[_0xa115ff(0x38f)]=!0x0,Promise[_0xa115ff(0x48a)]()[_0xa115ff(0x1d7)](()=>this[_0xa115ff(0x3a6)]()));}['_attachObjectPointerListeners'](){const _0x2a19df=_0x2d31a4;var _0x82e308;this['_attachObjectPointerScheduled']=!0x1;let _0x468cbf=this['_resolveCurrentBoardContext'](),_0x394c57=this[_0x2a19df(0x2d9)][_0x2a19df(0x37b)];if(!_0x468cbf||typeof _0x394c57[_0x2a19df(0x1e8)]!='function')return;let _0x37c7ce=this[_0x2a19df(0x235)][_0x2a19df(0x397)](_0x468cbf[_0x2a19df(0x499)],_0x468cbf['subUnitId']),_0x2358ed=new _0xec2352();(_0x82e308=this[_0x2a19df(0x37e)])==null||_0x82e308[_0x2a19df(0x262)](),this[_0x2a19df(0x37e)]=_0x2358ed,Object[_0x2a19df(0x379)](_0x37c7ce)['forEach'](_0x124c2f=>{const _0x27ebfd=_0x2a19df;var _0x517a35,_0x29a0b0;let _0xfbe81c=_0xd8e37e(_0x124c2f[_0x27ebfd(0x4b4)]);if(!(_0xfbe81c!=null&&_0xfbe81c[_0x27ebfd(0x3e6)]))return;let _0x432906=_0x1b247d(_0x468cbf[_0x27ebfd(0x499)],_0x124c2f[_0x27ebfd(0x421)]),_0x4f023c=((_0x517a35=_0x394c57[_0x27ebfd(0x4ba)])==null?void 0x0:_0x517a35[_0x27ebfd(0x248)](_0x394c57,_0x432906))??((_0x29a0b0=_0x394c57['getObject'])==null?void 0x0:_0x29a0b0[_0x27ebfd(0x248)](_0x394c57,_0x432906));_0x4f023c!=null&&_0x4f023c[_0x27ebfd(0x1b9)]&&_0x2358ed['add'](_0x4f023c[_0x27ebfd(0x1b9)][_0x27ebfd(0x4cb)]({'priority':-0xa,'next':([_0x1d43d2,_0xde1ee1])=>this[_0x27ebfd(0x359)](_0x1d43d2,{'unitId':_0x468cbf[_0x27ebfd(0x499)],'subUnitId':_0x468cbf[_0x27ebfd(0x452)],'nodeId':_0x124c2f[_0x27ebfd(0x421)]},_0xde1ee1)}));});}['_resolveCurrentBoardContext'](){const _0x57945d=_0x2d31a4;let _0x3c3f56=this[_0x57945d(0x318)][_0x57945d(0x276)]()[_0x57945d(0x233)];if(_0x3c3f56)return _0x3c3f56;let _0x669c40=this[_0x57945d(0x2d9)][_0x57945d(0x499)],_0x73ab72=_0x669c40?this[_0x57945d(0x3b1)][_0x57945d(0x1e1)](_0x669c40,_0x4468f4['UNIVER_BOARD']):null,_0xeda3ba=_0x73ab72==null?void 0x0:_0x73ab72[_0x57945d(0x4a9)]();return!_0x73ab72||!_0xeda3ba?null:{'unitId':_0x73ab72[_0x57945d(0x24c)](),'subUnitId':_0xeda3ba};}[_0x2d31a4(0x4a1)](){const _0x202eb4=_0x2d31a4;let _0x283be5=this[_0x202eb4(0x318)]['getSnapshot']();this[_0x202eb4(0x1c8)]=!0x1,this[_0x202eb4(0x2bf)]=!0x1,this['_lastChildDragAction']=null;let _0x365f95=_0x283be5[_0x202eb4(0x233)],_0x95da36=_0x283be5['focusedId']??_0x283be5['selectedIds'][0x0];if(!_0x365f95||!_0x95da36){this[_0x202eb4(0x32b)]=null,this[_0x202eb4(0x3fa)]();return;}let _0x3d7c0c=this[_0x202eb4(0x235)]['getElementData'](_0x365f95[_0x202eb4(0x499)],_0x365f95[_0x202eb4(0x452)]);if(_0x283be5[_0x202eb4(0x3f9)][_0x202eb4(0x1ab)]>0x1){let _0x206486=this[_0x202eb4(0x3c7)](_0x3d7c0c,_0x283be5[_0x202eb4(0x3f9)]);if(!_0x206486){this[_0x202eb4(0x32b)]=null,this[_0x202eb4(0x3fa)]();return;}let _0x1ae3a8=_0x3d7c0c[_0x206486['rootNodeId']],_0x3121ff=_0x59b50d(_0x3d7c0c,_0x206486['rootNodeId']),_0x2804c4=_0x1ae3a8[_0x202eb4(0x4b4)][_0x202eb4(0x357)];this['_dragStart']={'kind':_0x202eb4(0x481),'unitId':_0x365f95[_0x202eb4(0x499)],'subUnitId':_0x365f95[_0x202eb4(0x452)],'nodeId':_0x206486[_0x202eb4(0x393)],'scopeId':_0x206486[_0x202eb4(0x435)],'left':(_0x3121ff==null?void 0x0:_0x3121ff['left'])??_0x2804c4['left']??0x0,'top':(_0x3121ff==null?void 0x0:_0x3121ff[_0x202eb4(0x258)])??_0x2804c4[_0x202eb4(0x258)]??0x0,'width':(_0x3121ff==null?void 0x0:_0x3121ff[_0x202eb4(0x35d)])??_0x2804c4['width']??0x0,'height':(_0x3121ff==null?void 0x0:_0x3121ff[_0x202eb4(0x41e)])??_0x2804c4['height']??0x0,'elementData':_0x3d7c0c};return;}let _0x3408cf=_0x3d7c0c[_0x95da36],_0x2f177d=_0xd8e37e(_0x3408cf==null?void 0x0:_0x3408cf['element']);if(!_0x3408cf||!_0x2f177d){this[_0x202eb4(0x32b)]=null,this['_removeDragPreviewObject']();return;}let _0x518fde=_0x59b50d(_0x3d7c0c,_0x95da36),_0x15ef61=_0x3408cf['element'][_0x202eb4(0x357)];this[_0x202eb4(0x32b)]={'kind':_0x2f177d[_0x202eb4(0x3e6)]===null?_0x202eb4(0x47d):_0x202eb4(0x386),'unitId':_0x365f95[_0x202eb4(0x499)],'subUnitId':_0x365f95[_0x202eb4(0x452)],'nodeId':_0x95da36,'scopeId':_0x2f177d[_0x202eb4(0x2f8)],'left':(_0x518fde==null?void 0x0:_0x518fde[_0x202eb4(0x1ac)])??_0x15ef61[_0x202eb4(0x1ac)]??0x0,'top':(_0x518fde==null?void 0x0:_0x518fde[_0x202eb4(0x258)])??_0x15ef61['top']??0x0,'width':(_0x518fde==null?void 0x0:_0x518fde[_0x202eb4(0x35d)])??_0x15ef61[_0x202eb4(0x35d)]??0x0,'height':(_0x518fde==null?void 0x0:_0x518fde[_0x202eb4(0x41e)])??_0x15ef61[_0x202eb4(0x41e)]??0x0,'elementData':_0x3d7c0c};}['_resolveCompleteSelectedScope'](_0xcc1cc,_0xadd8dc){const _0x1ae7e5=_0x2d31a4;let _0x587769=new Set(_0xadd8dc),_0x13f607=_0xadd8dc[_0x1ae7e5(0x461)](_0x11df0e=>{const _0x26033a=_0x1ae7e5;var _0x4dfc29,_0x2208dd,_0x298ee4,_0xf65980;let _0x4a6b83=(_0x4dfc29=_0xcc1cc[_0x11df0e])==null?void 0x0:_0x4dfc29['element'];return((_0x2208dd=_0xd8e37e(_0x4a6b83))==null?void 0x0:_0x2208dd[_0x26033a(0x2f8)])??((_0x298ee4=_0x1b1ea2(_0x4a6b83))==null?void 0x0:_0x298ee4[_0x26033a(0x2f8)])??((_0xf65980=_0x3a557b(_0x4a6b83))==null?void 0x0:_0xf65980['structureScopeId'])??null;});if(_0x13f607['some'](_0x190fef=>_0x190fef===null)||new Set(_0x13f607)[_0x1ae7e5(0x30c)]!==0x1)return null;let _0x23a778=_0x13f607[0x0];if(!_0x23a778)return null;let _0x16ad6d=Object[_0x1ae7e5(0x379)](_0xcc1cc)[_0x1ae7e5(0x2c5)](_0x3a9eec=>{const _0x5120e8=_0x1ae7e5;var _0x96b767;return _0x3a9eec[_0x5120e8(0x4b4)][_0x5120e8(0x1c0)]!==!0x1&&((_0x96b767=_0xd8e37e(_0x3a9eec[_0x5120e8(0x4b4)]))==null?void 0x0:_0x96b767[_0x5120e8(0x2f8)])===_0x23a778;});if(_0x16ad6d[_0x1ae7e5(0x1ab)]===0x0||_0x16ad6d['some'](_0x3c83e2=>!_0x587769[_0x1ae7e5(0x1ec)](_0x3c83e2[_0x1ae7e5(0x421)])))return null;let _0x3bb874=_0x16ad6d[_0x1ae7e5(0x2c5)](_0x33f40b=>{const _0x50b52c=_0x1ae7e5;var _0x1e0d4a;return((_0x1e0d4a=_0xd8e37e(_0x33f40b[_0x50b52c(0x4b4)]))==null?void 0x0:_0x1e0d4a[_0x50b52c(0x3e6)])===null;});return _0x3bb874[_0x1ae7e5(0x1ab)]===0x1?{'rootNodeId':_0x3bb874[0x0][_0x1ae7e5(0x421)],'scopeId':_0x23a778}:null;}[_0x2d31a4(0x359)](_0x5925ef,_0x149a16,_0x5f2892){const _0x4e50bc=_0x2d31a4;var _0x13df87,_0x477d33,_0x299bf4,_0x425cae,_0x24ea7a;if(this[_0x4e50bc(0x476)][_0x4e50bc(0x41b)]()[_0x4e50bc(0x462)]===_0x4e50bc(0x29a)||(_0x5925ef[_0x4e50bc(0x29f)]??0x0)!==0x0)return;let _0x5caa33=this['_elementStateService'][_0x4e50bc(0x276)]();if(_0x5caa33[_0x4e50bc(0x27b)]){this[_0x4e50bc(0x3c5)]=null;return;}let _0x243371=_0x149a16?{'unitId':_0x149a16['unitId'],'subUnitId':_0x149a16[_0x4e50bc(0x452)]}:_0x5caa33[_0x4e50bc(0x233)]??this[_0x4e50bc(0x490)](),_0x2418bc=(_0x149a16==null?void 0x0:_0x149a16[_0x4e50bc(0x26d)])??(_0x5caa33[_0x4e50bc(0x3f9)][_0x4e50bc(0x1ab)]===0x1?_0x5caa33['focusedId']??_0x5caa33['selectedIds'][0x0]:void 0x0);if(!_0x243371){this['_pointerDragStart']=null;return;}let _0x5df236=this[_0x4e50bc(0x235)][_0x4e50bc(0x397)](_0x243371[_0x4e50bc(0x499)],_0x243371[_0x4e50bc(0x452)]),_0x4ee2ad=this[_0x4e50bc(0x323)](_0x5925ef);if(!_0x149a16){let _0x2639f9=_0x2418bc?_0x5df236[_0x2418bc]:null,_0x3e5d15=_0xd8e37e(_0x2639f9==null?void 0x0:_0x2639f9[_0x4e50bc(0x4b4)]),_0x3c2d82=_0x2418bc?_0x59b50d(_0x5df236,_0x2418bc)??(_0x2639f9==null?void 0x0:_0x2639f9['element'][_0x4e50bc(0x357)]):null;(!(_0x3e5d15!=null&&_0x3e5d15[_0x4e50bc(0x3e6)])||!_0x3c2d82||!this[_0x4e50bc(0x1ed)](_0x4ee2ad,{'left':_0x3c2d82[_0x4e50bc(0x1ac)]??0x0,'top':_0x3c2d82['top']??0x0,'width':_0x3c2d82[_0x4e50bc(0x35d)]??0x0,'height':_0x3c2d82[_0x4e50bc(0x41e)]??0x0}))&&(_0x2418bc=this[_0x4e50bc(0x1cb)](_0x5df236,_0x4ee2ad));}if(!_0x2418bc){this[_0x4e50bc(0x3c5)]=null;return;}let _0x42e3bc=_0x5df236[_0x2418bc],_0x3af9e7=_0xd8e37e(_0x42e3bc==null?void 0x0:_0x42e3bc[_0x4e50bc(0x4b4)]);if(!_0x42e3bc||!(_0x3af9e7!=null&&_0x3af9e7[_0x4e50bc(0x3e6)])){this[_0x4e50bc(0x3c5)]=null;return;}this[_0x4e50bc(0x3b1)][_0x4e50bc(0x2a7)](_0x243371[_0x4e50bc(0x499)]),(_0x13df87=this['_renderContext']['engine'])==null||(_0x477d33=_0x13df87[_0x4e50bc(0x465)])==null||(_0x477d33=_0x477d33['call'](_0x13df87))==null||(_0x299bf4=_0x477d33[_0x4e50bc(0x294)])==null||_0x299bf4[_0x4e50bc(0x248)](_0x477d33,{'preventScroll':!0x0}),(_0x425cae=(_0x24ea7a=this[_0x4e50bc(0x318)])[_0x4e50bc(0x2b0)])==null||_0x425cae[_0x4e50bc(0x248)](_0x24ea7a,_0x243371,[_0x2418bc],_0x2418bc),_0x5f2892==null||_0x5f2892['stopPropagation']();let _0x1ad0bc=_0x59b50d(_0x5df236,_0x2418bc),_0x35ef9a=_0x42e3bc['element']['transform'],_0x129304={'left':(_0x1ad0bc==null?void 0x0:_0x1ad0bc[_0x4e50bc(0x1ac)])??_0x35ef9a[_0x4e50bc(0x1ac)]??0x0,'top':(_0x1ad0bc==null?void 0x0:_0x1ad0bc[_0x4e50bc(0x258)])??_0x35ef9a[_0x4e50bc(0x258)]??0x0,'width':(_0x1ad0bc==null?void 0x0:_0x1ad0bc['width'])??_0x35ef9a[_0x4e50bc(0x35d)]??0x0,'height':(_0x1ad0bc==null?void 0x0:_0x1ad0bc['height'])??_0x35ef9a['height']??0x0};if(!_0x149a16&&!this[_0x4e50bc(0x1ed)](_0x4ee2ad,_0x129304)){this[_0x4e50bc(0x3c5)]=null;return;}let _0x1ccdd4=this[_0x4e50bc(0x3b3)](_0x5925ef);this[_0x4e50bc(0x1c8)]=!0x1,this[_0x4e50bc(0x2bf)]=!0x1,this[_0x4e50bc(0x1df)]=null,this[_0x4e50bc(0x3c5)]={'kind':_0x4e50bc(0x386),'unitId':_0x243371['unitId'],'subUnitId':_0x243371[_0x4e50bc(0x452)],'nodeId':_0x2418bc,'scopeId':_0x3af9e7[_0x4e50bc(0x2f8)],..._0x129304,'pointerStartX':_0x1ccdd4['x'],'pointerStartY':_0x1ccdd4['y'],'elementData':_0x5df236},this['_attachActivePointerDragListeners'](),this['_consumePointerEvent'](_0x5925ef,_0x5f2892);}[_0x2d31a4(0x26c)](_0x4497f9,_0x1b9998){const _0x280f57=_0x2d31a4;var _0x1674ec,_0x322a7c;let _0x52443b=this[_0x280f57(0x3c5)];if(!_0x52443b||_0x4497f9[_0x280f57(0x458)]!==void 0x0&&_0x4497f9[_0x280f57(0x458)]!==0x1)return;let _0x1e9df6=this[_0x280f57(0x3da)](_0x4497f9,_0x52443b);if(!this[_0x280f57(0x37a)](_0x52443b,_0x1e9df6))return;this[_0x280f57(0x1c8)]||this[_0x280f57(0x4cd)](),this['_childDragActivated']=!0x0;let _0xfff015=this[_0x280f57(0x32f)](_0x52443b[_0x280f57(0x43e)],_0x52443b[_0x280f57(0x26d)],_0x1e9df6),_0x27130f=Sn(_0x52443b[_0x280f57(0x43e)],_0x52443b[_0x280f57(0x26d)],{'boundsByElementId':_0xfff015,'detachWhenNoSnap':!0x0});this[_0x280f57(0x1df)]=_0x27130f,this[_0x280f57(0x2a5)](_0x1e9df6,_0x27130f,_0xfff015),this[_0x280f57(0x467)](_0x4497f9,_0x1b9998),this['_renderContext'][_0x280f57(0x37b)][_0x280f57(0x48e)](!0x0),(_0x1674ec=(_0x322a7c=this['_renderContext']['scene'])['requestRender'])==null||_0x1674ec['call'](_0x322a7c);}['_applyPointerChildDrag'](_0x21930e,_0x481e73){const _0x1abaec=_0x2d31a4;let _0x2ba455=this[_0x1abaec(0x3c5)];if(!_0x2ba455)return;if(this['_pointerDragStart']=null,this[_0x1abaec(0x405)](),this[_0x1abaec(0x3fa)](),!this[_0x1abaec(0x1c8)]){this['_lastChildDragAction']=null;return;}let _0x329bce=this[_0x1abaec(0x235)][_0x1abaec(0x397)](_0x2ba455[_0x1abaec(0x499)],_0x2ba455[_0x1abaec(0x452)]),_0x151434=this[_0x1abaec(0x3da)](_0x21930e,_0x2ba455),_0x305ab9=this[_0x1abaec(0x32f)](_0x329bce,_0x2ba455['nodeId'],_0x151434),_0xc24e51=Sn(_0x329bce,_0x2ba455[_0x1abaec(0x26d)],{'boundsByElementId':_0x305ab9,'detachWhenNoSnap':!0x0});this[_0x1abaec(0x1df)]=null,this[_0x1abaec(0x2b7)](_0x2ba455[_0x1abaec(0x499)],_0x2ba455['subUnitId'],_0x2ba455[_0x1abaec(0x26d)],_0x329bce,_0xc24e51),this[_0x1abaec(0x2bf)]=!0x1,this['_consumePointerEvent'](_0x21930e,_0x481e73);}['_cancelPointerChildDrag'](_0x2497e3){const _0x22c0d9=_0x2d31a4;let _0x54f8f4=this['_pointerDragStart'];if(_0x54f8f4){if(this[_0x22c0d9(0x3c5)]=null,this[_0x22c0d9(0x405)](),this[_0x22c0d9(0x1c8)]=!0x1,this[_0x22c0d9(0x1df)]=null,this[_0x22c0d9(0x3fa)](),this['_childDragSelectionHidden']){var _0x4c9f59,_0x311d37;(_0x4c9f59=(_0x311d37=this[_0x22c0d9(0x318)])[_0x22c0d9(0x2b0)])==null||_0x4c9f59[_0x22c0d9(0x248)](_0x311d37,{'unitId':_0x54f8f4[_0x22c0d9(0x499)],'subUnitId':_0x54f8f4['subUnitId']},[_0x54f8f4[_0x22c0d9(0x26d)]],_0x54f8f4['nodeId']),this[_0x22c0d9(0x2bf)]=!0x1;}_0x2497e3==null||_0x2497e3[_0x22c0d9(0x1c4)]();}}[_0x2d31a4(0x438)](){const _0x1f863a=_0x2d31a4;this[_0x1f863a(0x405)]();let _0x5aba62=typeof window>'u'?null:window;if(!(_0x5aba62!=null&&_0x5aba62[_0x1f863a(0x1ba)]))return;let _0x424a17=new _0xec2352(),_0x4d1365=_0x521ab3=>this[_0x1f863a(0x26c)](_0x521ab3),_0x5f47a0=_0x42ad1f=>this[_0x1f863a(0x44a)](_0x42ad1f),_0x4b02c8=()=>this['_cancelPointerChildDrag']();_0x5aba62[_0x1f863a(0x1ba)]('pointermove',_0x4d1365,{'capture':!0x0}),_0x5aba62[_0x1f863a(0x1ba)]('pointerup',_0x5f47a0,{'capture':!0x0}),_0x5aba62[_0x1f863a(0x1ba)](_0x1f863a(0x3ef),_0x4b02c8,{'capture':!0x0}),_0x424a17['add'](_0x5a6bc0(()=>{const _0x140f00=_0x1f863a;_0x5aba62[_0x140f00(0x3b7)](_0x140f00(0x281),_0x4d1365,{'capture':!0x0}),_0x5aba62[_0x140f00(0x3b7)](_0x140f00(0x274),_0x5f47a0,{'capture':!0x0}),_0x5aba62[_0x140f00(0x3b7)]('pointercancel',_0x4b02c8,{'capture':!0x0});})),this[_0x1f863a(0x31f)]=_0x424a17;}[_0x2d31a4(0x1cb)](_0x39b6fe,_0x5304e6){const _0x80d26b=_0x2d31a4;let _0x2b711c=Object['values'](_0x39b6fe);for(let _0x2977e8=_0x2b711c['length']-0x1;_0x2977e8>=0x0;--_0x2977e8){let _0x1a8521=_0x2b711c[_0x2977e8],_0x164b1d=_0xd8e37e(_0x1a8521[_0x80d26b(0x4b4)]);if(!(_0x164b1d!=null&&_0x164b1d['parentNodeId']))continue;let _0x2f68d6=_0x59b50d(_0x39b6fe,_0x1a8521[_0x80d26b(0x421)])??_0x1a8521[_0x80d26b(0x4b4)][_0x80d26b(0x357)];if(this['_isPointInBounds'](_0x5304e6,{'left':_0x2f68d6[_0x80d26b(0x1ac)]??0x0,'top':_0x2f68d6[_0x80d26b(0x258)]??0x0,'width':_0x2f68d6['width']??0x0,'height':_0x2f68d6[_0x80d26b(0x41e)]??0x0}))return _0x1a8521[_0x80d26b(0x421)];}}[_0x2d31a4(0x405)](){const _0x542918=_0x2d31a4;var _0x2a914b;(_0x2a914b=this[_0x542918(0x31f)])==null||_0x2a914b[_0x542918(0x262)](),this[_0x542918(0x31f)]=null;}['_syncDragPreview'](_0x2d3d73){const _0x2bb7=_0x2d31a4;let _0x5a667b=this[_0x2bb7(0x32b)];if(_0x5a667b){if((_0x5a667b[_0x2bb7(0x3e4)]===_0x2bb7(0x47d)||_0x5a667b[_0x2bb7(0x3e4)]===_0x2bb7(0x481))&&this[_0x2bb7(0x24e)](_0x2d3d73),_0x5a667b['kind']===_0x2bb7(0x47d)){this[_0x2bb7(0x491)](_0x2d3d73);return;}this['_syncChildDragPreview'](_0x2d3d73);}}[_0x2d31a4(0x24e)](_0x30b5c3){const _0x30aab6=_0x2d31a4;let _0x29a9d5=this[_0x30aab6(0x32b)];if(!_0x29a9d5||_0x29a9d5['kind']!==_0x30aab6(0x47d)&&_0x29a9d5[_0x30aab6(0x3e4)]!=='scope')return;let _0x2237cb=_0x30b5c3==null?void 0x0:_0x30b5c3[_0x30aab6(0x267)](_0x1b247d(_0x29a9d5['unitId'],_0x29a9d5['nodeId']));if(!_0x2237cb||!Number[_0x30aab6(0x31d)](_0x2237cb['left'])||!Number[_0x30aab6(0x31d)](_0x2237cb[_0x30aab6(0x258)]))return;let _0x3e2cd9=Tn({'elementData':_0x29a9d5['elementData'],'rootNodeId':_0x29a9d5['nodeId'],'scopeId':_0x29a9d5[_0x30aab6(0x435)],'rootStartBounds':{'left':_0x29a9d5[_0x30aab6(0x1ac)],'top':_0x29a9d5[_0x30aab6(0x258)]},'liveRootBounds':{'left':_0x2237cb[_0x30aab6(0x1ac)],'top':_0x2237cb['top']}});if(!_0x3e2cd9)return;let _0x14ef56=this[_0x30aab6(0x2d9)][_0x30aab6(0x37b)],_0x1a0540=_0x14ef56,_0x4afe8c=!0x1;_0x3e2cd9[_0x30aab6(0x23f)][_0x30aab6(0x205)](_0x171719=>{const _0x26c7a8=_0x30aab6;var _0x92d0db;let _0x2886d3=_0x1b247d(_0x29a9d5[_0x26c7a8(0x499)],_0x171719[_0x26c7a8(0x421)]),_0x13fcee=((_0x92d0db=_0x1a0540['getObjectIncludeInGroup'])==null?void 0x0:_0x92d0db[_0x26c7a8(0x248)](_0x1a0540,_0x2886d3))??_0x14ef56[_0x26c7a8(0x1e8)](_0x2886d3);if(_0x13fcee){if(_0x171719[_0x26c7a8(0x3e4)]===_0x26c7a8(0x3aa)&&typeof _0x13fcee[_0x26c7a8(0x2ed)]=='function'){_0x13fcee[_0x26c7a8(0x2ed)](_0x171719['element'],_0x3e2cd9['elementData']),_0x4afe8c=!0x0;return;}_0x171719['kind']===_0x26c7a8(0x4b6)&&(_0x13fcee['transformByState'](_0x171719[_0x26c7a8(0x4b6)]),typeof _0x13fcee[_0x26c7a8(0x420)]=='function'?_0x13fcee[_0x26c7a8(0x420)](!0x0):_0x13fcee[_0x26c7a8(0x48e)](!0x0),_0x4afe8c=!0x0);}}),_0x4afe8c&&_0x14ef56['makeDirty'](!0x0);}['_syncRootReparentPreview'](_0x5cb8d8){const _0x41a793=_0x2d31a4;var _0x2fdb23,_0x4be9e5;let _0x44a026=this[_0x41a793(0x32b)];if(!_0x44a026||_0x44a026['kind']!==_0x41a793(0x47d))return;let _0x39352f=_0x5cb8d8==null?void 0x0:_0x5cb8d8[_0x41a793(0x267)](_0x1b247d(_0x44a026['unitId'],_0x44a026[_0x41a793(0x26d)]));if(!_0x39352f||!Number[_0x41a793(0x31d)](_0x39352f['left'])||!Number[_0x41a793(0x31d)](_0x39352f[_0x41a793(0x258)])){this[_0x41a793(0x3fa)]();return;}let _0x1cf15e=this['_getLiveObjectBounds'](_0x39352f,_0x44a026),_0x221943=this[_0x41a793(0x32f)](_0x44a026[_0x41a793(0x43e)],_0x44a026[_0x41a793(0x26d)],_0x1cf15e),_0x320815=Sn(_0x44a026[_0x41a793(0x43e)],_0x44a026['nodeId'],{'boundsByElementId':_0x221943,'allowRootReparent':!0x0});if(_0x320815['kind']!=='reparent'){this[_0x41a793(0x3fa)]();return;}let _0x47d1a1=this[_0x41a793(0x4c3)]();_0x47d1a1&&(_0x47d1a1[_0x41a793(0x2a6)]({'ghostBounds':_0x1cf15e,'sourceBounds':null,'parentBounds':_0x221943[_0x320815[_0x41a793(0x3dc)]],'side':_0x320815['side'],'textStyle':void 0x0,'renderGhostNode':!0x1}),this['_renderContext'][_0x41a793(0x37b)]['makeDirty'](!0x0),(_0x2fdb23=(_0x4be9e5=this[_0x41a793(0x2d9)]['scene'])[_0x41a793(0x380)])==null||_0x2fdb23['call'](_0x4be9e5));}[_0x2d31a4(0x31b)](_0x4dad63){const _0x33f205=_0x2d31a4;var _0x42fc17,_0x9d2cde;let _0x3b2d8b=this[_0x33f205(0x32b)];if(!_0x3b2d8b||_0x3b2d8b[_0x33f205(0x3e4)]!=='child')return;let _0x1e14f4=_0x4dad63==null?void 0x0:_0x4dad63[_0x33f205(0x267)](_0x1b247d(_0x3b2d8b[_0x33f205(0x499)],_0x3b2d8b[_0x33f205(0x26d)]));if(!_0x1e14f4){this[_0x33f205(0x3fa)]();return;}let _0x514497=this[_0x33f205(0x429)](_0x1e14f4,_0x3b2d8b);if(!this['_isChildDragPastActivationThreshold'](_0x3b2d8b,_0x514497)){this[_0x33f205(0x1df)]=null,this[_0x33f205(0x3fa)](),this[_0x33f205(0x3f0)](_0x1e14f4,_0x3b2d8b),this[_0x33f205(0x2d9)]['scene'][_0x33f205(0x48e)](!0x0);return;}this['_childDragActivated']||this[_0x33f205(0x4cd)](),this['_childDragActivated']=!0x0;let _0x54b772=this[_0x33f205(0x32f)](_0x3b2d8b[_0x33f205(0x43e)],_0x3b2d8b['nodeId'],_0x514497),_0x1dd5e1=Sn(_0x3b2d8b[_0x33f205(0x43e)],_0x3b2d8b['nodeId'],{'boundsByElementId':_0x54b772,'detachWhenNoSnap':!0x0});this[_0x33f205(0x1df)]=_0x1dd5e1,this[_0x33f205(0x2a5)](_0x514497,_0x1dd5e1,_0x54b772),this['_restoreObjectToDragStart'](_0x1e14f4,_0x3b2d8b),this[_0x33f205(0x2d9)][_0x33f205(0x37b)][_0x33f205(0x48e)](!0x0),(_0x42fc17=(_0x9d2cde=this[_0x33f205(0x2d9)][_0x33f205(0x37b)])[_0x33f205(0x380)])==null||_0x42fc17[_0x33f205(0x248)](_0x9d2cde);}[_0x2d31a4(0x3c4)](_0x32754b){const _0x2f308c=_0x2d31a4;var _0x4c7420;let _0x4cadcf=this['_elementStateService'][_0x2f308c(0x276)](),_0x4625da=_0x4cadcf[_0x2f308c(0x233)],_0x3b7866=_0x4cadcf['focusedId']??_0x4cadcf[_0x2f308c(0x3f9)][0x0];if(_0x4625da&&((_0x4c7420=this[_0x2f308c(0x32b)])==null?void 0x0:_0x4c7420[_0x2f308c(0x3e4)])===_0x2f308c(0x481)){this['_removeDragPreviewObject'](),this['_applyScopeTranslation'](_0x4625da[_0x2f308c(0x499)],_0x4625da['subUnitId'],_0x32754b);return;}if(!_0x4625da||!_0x3b7866||_0x4cadcf[_0x2f308c(0x3f9)][_0x2f308c(0x1ab)]!==0x1){this[_0x2f308c(0x3fa)](),this['_dragStart']=null;return;}this[_0x2f308c(0x3fa)]();let _0x40821e=this[_0x2f308c(0x235)][_0x2f308c(0x397)](_0x4625da[_0x2f308c(0x499)],_0x4625da['subUnitId']);if(this[_0x2f308c(0x321)](_0x4625da[_0x2f308c(0x499)],_0x4625da[_0x2f308c(0x452)],_0x3b7866,_0x40821e,_0x32754b))return;let _0x4e9d3d=this[_0x2f308c(0x2ff)](_0x4625da[_0x2f308c(0x499)],_0x4625da[_0x2f308c(0x452)],_0x3b7866,_0x40821e,_0x32754b);this[_0x2f308c(0x2b7)](_0x4625da[_0x2f308c(0x499)],_0x4625da[_0x2f308c(0x452)],_0x3b7866,_0x40821e,_0x4e9d3d);}[_0x2d31a4(0x456)](_0xc351f6,_0x29c96a,_0x45e7c0){const _0x5db7e=_0x2d31a4;let _0x2a2f44=this[_0x5db7e(0x32b)];if(this['_dragStart']=null,!_0x2a2f44||_0x2a2f44[_0x5db7e(0x3e4)]!==_0x5db7e(0x481)||_0x2a2f44[_0x5db7e(0x499)]!==_0xc351f6||_0x2a2f44[_0x5db7e(0x452)]!==_0x29c96a)return;let _0x3433d1=_0x45e7c0==null?void 0x0:_0x45e7c0[_0x5db7e(0x267)](_0x1b247d(_0xc351f6,_0x2a2f44[_0x5db7e(0x26d)])),_0x22e33e=_0x3433d1&&Number[_0x5db7e(0x31d)](_0x3433d1[_0x5db7e(0x1ac)])?_0x3433d1[_0x5db7e(0x1ac)]??_0x2a2f44[_0x5db7e(0x1ac)]:_0x2a2f44[_0x5db7e(0x1ac)],_0x306c50=_0x3433d1&&Number['isFinite'](_0x3433d1[_0x5db7e(0x258)])?_0x3433d1[_0x5db7e(0x258)]??_0x2a2f44['top']:_0x2a2f44[_0x5db7e(0x258)],_0x207f92=_0x22e33e-_0x2a2f44['left'],_0x5d6234=_0x306c50-_0x2a2f44[_0x5db7e(0x258)];(_0x207f92!==0x0||_0x5d6234!==0x0)&&this[_0x5db7e(0x2a3)]['executeCommand'](_0x2c4dd1['id'],{'unitId':_0xc351f6,'subUnitId':_0x29c96a,'scopeId':_0x2a2f44[_0x5db7e(0x435)],'deltaX':_0x207f92,'deltaY':_0x5d6234});}[_0x2d31a4(0x2b7)](_0x1cedcf,_0x52d083,_0x56ab47,_0xd0529d,_0x394fc2){const _0x5ca625=_0x2d31a4;if(_0x394fc2['kind']===_0x5ca625(0x3a3)){var _0x80b854,_0x5cbeb7;let _0x5debb2=_0xd8e37e((_0x80b854=_0xd0529d[_0x56ab47])==null?void 0x0:_0x80b854[_0x5ca625(0x4b4)]),_0x4c6d62=_0xd8e37e((_0x5cbeb7=_0xd0529d[_0x394fc2[_0x5ca625(0x3dc)]])==null?void 0x0:_0x5cbeb7['element']);this['_executeAndLayout'](_0x48a61f['id'],{'unitId':_0x1cedcf,'subUnitId':_0x52d083,'nodeId':_0x56ab47,'newParentNodeId':_0x394fc2['newParentNodeId'],'side':_0x394fc2[_0x5ca625(0x384)],..._0x394fc2[_0x5ca625(0x434)]?{'referenceNodeId':_0x394fc2[_0x5ca625(0x434)]}:null,..._0x394fc2[_0x5ca625(0x256)]?{'placement':_0x394fc2[_0x5ca625(0x256)]}:null},[_0x5debb2==null?void 0x0:_0x5debb2[_0x5ca625(0x2f8)],_0x4c6d62==null?void 0x0:_0x4c6d62[_0x5ca625(0x2f8)]],_0x56ab47);return;}if(_0x394fc2['kind']==='detach'){var _0xa3b17e;let _0x4c36e0=_0xd8e37e((_0xa3b17e=_0xd0529d[_0x56ab47])==null?void 0x0:_0xa3b17e[_0x5ca625(0x4b4)]);this[_0x5ca625(0x3d7)](_0x3b4729['id'],{'unitId':_0x1cedcf,'subUnitId':_0x52d083,'nodeId':_0x56ab47,...Number[_0x5ca625(0x31d)](_0x394fc2[_0x5ca625(0x1ac)])?{'left':_0x394fc2[_0x5ca625(0x1ac)]}:null,...Number[_0x5ca625(0x31d)](_0x394fc2[_0x5ca625(0x258)])?{'top':_0x394fc2['top']}:null},[_0x4c36e0==null?void 0x0:_0x4c36e0['structureScopeId']],_0x56ab47);}}[_0x2d31a4(0x321)](_0x210ec6,_0x286cbb,_0x5207d5,_0x5bd57d,_0x2962e7){const _0x4abf5a=_0x2d31a4;let _0x41e5d7=this['_dragStart'];if((_0x41e5d7==null?void 0x0:_0x41e5d7['kind'])===_0x4abf5a(0x47d)&&(this[_0x4abf5a(0x32b)]=null),!_0x41e5d7||_0x41e5d7[_0x4abf5a(0x499)]!==_0x210ec6||_0x41e5d7[_0x4abf5a(0x452)]!==_0x286cbb||_0x41e5d7[_0x4abf5a(0x26d)]!==_0x5207d5)return!0x1;let _0x5e2d8f=_0x5bd57d[_0x5207d5],_0xb26172=_0xd8e37e(_0x5e2d8f==null?void 0x0:_0x5e2d8f['element']);if(!_0x5e2d8f||!_0xb26172||_0xb26172[_0x4abf5a(0x3e6)]!==null)return!0x1;let _0x26647f=_0x2962e7==null?void 0x0:_0x2962e7[_0x4abf5a(0x267)](_0x1b247d(_0x210ec6,_0x5207d5)),_0x305c06=_0x59b50d(_0x5bd57d,_0x5207d5),_0x406951=Number['isFinite'](_0x26647f==null?void 0x0:_0x26647f[_0x4abf5a(0x1ac)])?_0x26647f[_0x4abf5a(0x1ac)]:(_0x305c06==null?void 0x0:_0x305c06[_0x4abf5a(0x1ac)])??_0x5e2d8f['element'][_0x4abf5a(0x357)][_0x4abf5a(0x1ac)]??0x0,_0x129dbb=Number[_0x4abf5a(0x31d)](_0x26647f==null?void 0x0:_0x26647f['top'])?_0x26647f[_0x4abf5a(0x258)]:(_0x305c06==null?void 0x0:_0x305c06[_0x4abf5a(0x258)])??_0x5e2d8f['element']['transform'][_0x4abf5a(0x258)]??0x0,_0x519508=_0x406951-_0x41e5d7[_0x4abf5a(0x1ac)],_0x2ac889=_0x129dbb-_0x41e5d7[_0x4abf5a(0x258)];if(_0x519508===0x0&&_0x2ac889===0x0)return!0x0;let _0x5b7e5b={'left':_0x406951,'top':_0x129dbb,'width':Number[_0x4abf5a(0x31d)](_0x26647f==null?void 0x0:_0x26647f[_0x4abf5a(0x35d)])?_0x26647f['width']:_0x41e5d7['width'],'height':Number['isFinite'](_0x26647f==null?void 0x0:_0x26647f[_0x4abf5a(0x41e)])?_0x26647f[_0x4abf5a(0x41e)]:_0x41e5d7[_0x4abf5a(0x41e)]},_0x344d5b=Sn(_0x5bd57d,_0x5207d5,{'boundsByElementId':this[_0x4abf5a(0x32f)](_0x5bd57d,_0x5207d5,_0x5b7e5b),'allowRootReparent':!0x0});if(_0x344d5b[_0x4abf5a(0x3e4)]===_0x4abf5a(0x3a3))return this['_executeChildDragAction'](_0x210ec6,_0x286cbb,_0x5207d5,_0x5bd57d,_0x344d5b),!0x0;let _0x138455=!!_0x305c06&&Math[_0x4abf5a(0x2fa)](_0x305c06['left']-_0x406951)<0.001&&Math[_0x4abf5a(0x2fa)](_0x305c06[_0x4abf5a(0x258)]-_0x129dbb)<0.001;return this[_0x4abf5a(0x2a3)][_0x4abf5a(0x38b)](_0x2c4dd1['id'],{'unitId':_0x210ec6,'subUnitId':_0x286cbb,'scopeId':_0x41e5d7['scopeId'],'deltaX':_0x519508,'deltaY':_0x2ac889,..._0x138455?{'excludeElementIds':[_0x5207d5],'preserveExcludedWorldTransforms':!0x0}:null}),!0x0;}[_0x2d31a4(0x2ff)](_0x325469,_0x3c9ae1,_0x552bf7,_0x12bc02,_0x2db040){const _0x12f2aa=_0x2d31a4;let _0x25694e=this[_0x12f2aa(0x32b)];if(!_0x25694e||_0x25694e[_0x12f2aa(0x3e4)]!==_0x12f2aa(0x386)||_0x25694e[_0x12f2aa(0x499)]!==_0x325469||_0x25694e[_0x12f2aa(0x452)]!==_0x3c9ae1||_0x25694e[_0x12f2aa(0x26d)]!==_0x552bf7)return{'kind':_0x12f2aa(0x314)};this['_dragStart']=null;let _0x387aa6=_0x2db040==null?void 0x0:_0x2db040[_0x12f2aa(0x267)](_0x1b247d(_0x325469,_0x552bf7));if(!this['_childDragActivated'])return _0x387aa6&&this[_0x12f2aa(0x3f0)](_0x387aa6,_0x25694e),this[_0x12f2aa(0x1df)]=null,{'kind':_0x12f2aa(0x314)};if(!_0x387aa6){let _0x39db85=this[_0x12f2aa(0x1df)]??{'kind':'none'};return this[_0x12f2aa(0x1df)]=null,_0x39db85;}let _0x1d5766=this[_0x12f2aa(0x429)](_0x387aa6,_0x25694e);if(this[_0x12f2aa(0x3f0)](_0x387aa6,_0x25694e),!this[_0x12f2aa(0x37a)](_0x25694e,_0x1d5766))return this[_0x12f2aa(0x1df)]=null,{'kind':_0x12f2aa(0x314)};let _0xe92c81=Sn(_0x12bc02,_0x552bf7,{'boundsByElementId':this[_0x12f2aa(0x32f)](_0x12bc02,_0x552bf7,_0x1d5766),'detachWhenNoSnap':!0x0});return this['_lastChildDragAction']=null,_0xe92c81;}[_0x2d31a4(0x37a)](_0x20a97c,_0x388c78){const _0x3c94f8=_0x2d31a4;let _0x462758=(_0x388c78[_0x3c94f8(0x1ac)]??_0x20a97c['left'])-_0x20a97c[_0x3c94f8(0x1ac)],_0x2ab5c3=(_0x388c78[_0x3c94f8(0x258)]??_0x20a97c[_0x3c94f8(0x258)])-_0x20a97c['top'];return Math[_0x3c94f8(0x436)](_0x462758,_0x2ab5c3)>=0x12;}[_0x2d31a4(0x3da)](_0xaf7f71,_0x18e6f2){const _0x2b3dc7=_0x2d31a4;let _0x469b3e=this[_0x2b3dc7(0x3b3)](_0xaf7f71),_0x1d98d7=this[_0x2b3dc7(0x39f)]();return{'left':_0x18e6f2[_0x2b3dc7(0x1ac)]+(_0x469b3e['x']-_0x18e6f2['pointerStartX'])/_0x1d98d7,'top':_0x18e6f2[_0x2b3dc7(0x258)]+(_0x469b3e['y']-_0x18e6f2[_0x2b3dc7(0x1d9)])/_0x1d98d7,'width':_0x18e6f2[_0x2b3dc7(0x35d)],'height':_0x18e6f2['height']};}[_0x2d31a4(0x323)](_0x528b48){const _0x18b3a7=_0x2d31a4;let _0x408c27=this[_0x18b3a7(0x476)][_0x18b3a7(0x41b)](),_0x1a5931=(_0x408c27==null?void 0x0:_0x408c27[_0x18b3a7(0x42b)])??{'x':0x0,'y':0x0},_0x147211=this['_getZoomRatio']();return{'x':Math['round'](((_0x528b48[_0x18b3a7(0x4aa)]??0x0)-_0x1a5931['x'])/_0x147211),'y':Math[_0x18b3a7(0x43c)](((_0x528b48[_0x18b3a7(0x492)]??0x0)-_0x1a5931['y'])/_0x147211)};}['_getPointerScreenPoint'](_0x54bb2a){const _0x121523=_0x2d31a4;return{'x':Number[_0x121523(0x31d)](_0x54bb2a[_0x121523(0x2b2)])?_0x54bb2a['clientX']:_0x54bb2a[_0x121523(0x4aa)]??0x0,'y':Number[_0x121523(0x31d)](_0x54bb2a[_0x121523(0x42c)])?_0x54bb2a[_0x121523(0x42c)]:_0x54bb2a[_0x121523(0x492)]??0x0};}['_getZoomRatio'](){const _0x203295=_0x2d31a4;let _0x572b7d=this[_0x203295(0x476)][_0x203295(0x41b)]()[_0x203295(0x439)];return Number[_0x203295(0x31d)](_0x572b7d)&&(_0x572b7d??0x0)>0x0?_0x572b7d:0x1;}[_0x2d31a4(0x1ed)](_0x35757e,_0x49e800){const _0x4e16d3=_0x2d31a4;return _0x35757e['x']>=_0x49e800[_0x4e16d3(0x1ac)]&&_0x35757e['x']<=_0x49e800[_0x4e16d3(0x1ac)]+_0x49e800[_0x4e16d3(0x35d)]&&_0x35757e['y']>=_0x49e800['top']&&_0x35757e['y']<=_0x49e800[_0x4e16d3(0x258)]+_0x49e800[_0x4e16d3(0x41e)];}['_consumePointerEvent'](_0x96a396,_0x301bc2){const _0x1a830e=_0x2d31a4;var _0x154c46,_0x3307d9;_0x301bc2==null||_0x301bc2[_0x1a830e(0x1c4)](),_0x301bc2&&(_0x301bc2['skipNextObservers']=!0x0),(_0x154c46=_0x96a396[_0x1a830e(0x2f2)])==null||_0x154c46[_0x1a830e(0x248)](_0x96a396),(_0x3307d9=_0x96a396[_0x1a830e(0x1c4)])==null||_0x3307d9['call'](_0x96a396);}[_0x2d31a4(0x4cd)](){const _0x30bd9a=_0x2d31a4;var _0x268599,_0x2e3ef2;this[_0x30bd9a(0x2bf)]||=((_0x268599=(_0x2e3ef2=this['_elementStateService'])[_0x30bd9a(0x300)])==null||_0x268599['call'](_0x2e3ef2),!0x0);}['_getLiveObjectBounds'](_0x5b3c2f,_0x376cff){const _0x5ba966=_0x2d31a4;return{'left':Number[_0x5ba966(0x31d)](_0x5b3c2f[_0x5ba966(0x1ac)])?_0x5b3c2f[_0x5ba966(0x1ac)]:_0x376cff[_0x5ba966(0x1ac)],'top':Number['isFinite'](_0x5b3c2f[_0x5ba966(0x258)])?_0x5b3c2f['top']:_0x376cff[_0x5ba966(0x258)],'width':Number[_0x5ba966(0x31d)](_0x5b3c2f[_0x5ba966(0x35d)])?_0x5b3c2f[_0x5ba966(0x35d)]:_0x376cff[_0x5ba966(0x35d)],'height':Number[_0x5ba966(0x31d)](_0x5b3c2f[_0x5ba966(0x41e)])?_0x5b3c2f[_0x5ba966(0x41e)]:_0x376cff['height']};}[_0x2d31a4(0x3f0)](_0x3d0810,_0x53145f){const _0x5c7647=_0x2d31a4;typeof _0x3d0810['transformByState']=='function'&&_0x3d0810[_0x5c7647(0x1fd)]({'left':_0x53145f[_0x5c7647(0x1ac)],'top':_0x53145f[_0x5c7647(0x258)],'width':_0x53145f[_0x5c7647(0x35d)],'height':_0x53145f[_0x5c7647(0x41e)]}),typeof _0x3d0810['makeDirtyNoDebounce']==_0x5c7647(0x43d)?_0x3d0810[_0x5c7647(0x420)](!0x0):typeof _0x3d0810[_0x5c7647(0x48e)]==_0x5c7647(0x43d)&&_0x3d0810[_0x5c7647(0x48e)](!0x0);}[_0x2d31a4(0x32f)](_0x2c19fd,_0xc46e81,_0x1ad9de){const _0xde62a6=_0x2d31a4;return Object['fromEntries'](Object[_0xde62a6(0x1d5)](_0x2c19fd)[_0xde62a6(0x461)](_0x2a5ea6=>_0x2a5ea6===_0xc46e81?[_0x2a5ea6,_0x1ad9de]:[_0x2a5ea6,_0x59b50d(_0x2c19fd,_0x2a5ea6)??_0x2c19fd[_0x2a5ea6]['element'][_0xde62a6(0x357)]]));}['_ensureDragPreviewObject'](){const _0x5b6417=_0x2d31a4;if(this['_dragPreviewObject'])return this['_dragPreviewObject'];let _0x21f787=this['_renderContext']['scene'];return typeof _0x21f787[_0x5b6417(0x226)]==_0x5b6417(0x43d)?(this[_0x5b6417(0x346)]=new mn(cn),_0x21f787[_0x5b6417(0x226)](this['_dragPreviewObject'],ln),this[_0x5b6417(0x346)]):null;}[_0x2d31a4(0x2a5)](_0x414cb9,_0x4825e2,_0x548d37){const _0x1c6407=_0x2d31a4;let _0x356d24=this[_0x1c6407(0x4c3)]();_0x356d24&&_0x356d24[_0x1c6407(0x2a6)]({'ghostBounds':_0x414cb9,'sourceBounds':this[_0x1c6407(0x39e)](),'parentBounds':_0x4825e2[_0x1c6407(0x3e4)]===_0x1c6407(0x3a3)?_0x548d37[_0x4825e2[_0x1c6407(0x3dc)]]:null,'side':_0x4825e2[_0x1c6407(0x3e4)]==='reparent'?_0x4825e2[_0x1c6407(0x384)]:_0x1c6407(0x234),'textStyle':this[_0x1c6407(0x389)](),'renderGhostNode':!0x0});}[_0x2d31a4(0x39e)](){const _0x49da96=_0x2d31a4;let _0x228182=this[_0x49da96(0x3c5)]??this[_0x49da96(0x32b)];return _0x228182?{'left':_0x228182[_0x49da96(0x1ac)],'top':_0x228182[_0x49da96(0x258)],'width':_0x228182[_0x49da96(0x35d)],'height':_0x228182[_0x49da96(0x41e)]}:null;}[_0x2d31a4(0x389)](){const _0x3d0228=_0x2d31a4;var _0x41649e,_0x1b4d25;let _0x4ae903=this[_0x3d0228(0x3c5)]??this[_0x3d0228(0x32b)],_0x13b6ec=_0x4ae903==null||(_0x41649e=_0x4ae903['elementData'][_0x4ae903[_0x3d0228(0x26d)]])==null?void 0x0:_0x41649e[_0x3d0228(0x4b4)],_0x3c0445=_0x13b6ec==null||(_0x1b4d25=_0x13b6ec[_0x3d0228(0x26a)])==null?void 0x0:_0x1b4d25[_0x3d0228(0x29d)];if(_0x3c0445)return{'text':typeof _0x3c0445[_0x3d0228(0x2be)]=='string'?_0x3c0445[_0x3d0228(0x2be)]:void 0x0,'fontSize':Number[_0x3d0228(0x31d)](_0x3c0445['fontSize'])?_0x3c0445['fontSize']:void 0x0,'color':typeof _0x3c0445[_0x3d0228(0x445)]=='string'?_0x3c0445[_0x3d0228(0x445)]:void 0x0,'horizontalAlign':Number[_0x3d0228(0x31d)](_0x3c0445['horizontalAlign'])?_0x3c0445['horizontalAlign']:void 0x0};}[_0x2d31a4(0x3fa)](){const _0x229026=_0x2d31a4;var _0x3dedf9,_0x46747a,_0x3aef35;if(!this[_0x229026(0x346)])return;let _0x373450=this[_0x229026(0x2d9)]['scene'];(_0x3dedf9=_0x373450['removeObjects'])==null||_0x3dedf9[_0x229026(0x248)](_0x373450,[this[_0x229026(0x346)]]),this['_dragPreviewObject']=null,(_0x46747a=(_0x3aef35=this[_0x229026(0x2d9)][_0x229026(0x37b)])['makeDirty'])==null||_0x46747a[_0x229026(0x248)](_0x3aef35,!0x0);}[_0x2d31a4(0x3d7)](_0x137d96,_0x1d8e67,_0x37d670,_0x531f57){const _0x2cb8d9=_0x2d31a4;let _0x124d32=[...new Set(_0x37d670[_0x2cb8d9(0x2c5)](_0x1761ad=>!!_0x1761ad))],_0x499484=typeof _0x1d8e67[_0x2cb8d9(0x499)]==_0x2cb8d9(0x3dd)?_0x1d8e67[_0x2cb8d9(0x499)]:this[_0x2cb8d9(0x2d9)]['unitId'],_0x2b6d24=this[_0x2cb8d9(0x306)][_0x2cb8d9(0x348)](_0x499484),_0xed92e9=_0x2b6d24(()=>this[_0x2cb8d9(0x2a3)]['executeCommand'](_0x137d96,_0x1d8e67));Promise[_0x2cb8d9(0x48a)](_0xed92e9)[_0x2cb8d9(0x1d7)](_0x5d6805=>{const _0x370a7d=_0x2cb8d9;var _0x828a0b,_0x797b3a,_0xe2f9b5,_0x33a124;if(_0x5d6805){if(_0x124d32[_0x370a7d(0x205)](_0x11f784=>{const _0x57e124=_0x370a7d;_0x2b6d24(()=>this['_commandService'][_0x57e124(0x38b)](_0x59d4d9['id'],{'unitId':_0x1d8e67[_0x57e124(0x499)],'subUnitId':_0x1d8e67[_0x57e124(0x452)],'scopeId':_0x11f784}));}),_0x531f57&&typeof _0x1d8e67['unitId']=='string'&&typeof _0x1d8e67[_0x370a7d(0x452)]==_0x370a7d(0x3dd)){var _0x18ec8e,_0x4b5cad;(_0x18ec8e=(_0x4b5cad=this[_0x370a7d(0x318)])[_0x370a7d(0x2b0)])==null||_0x18ec8e[_0x370a7d(0x248)](_0x4b5cad,{'unitId':_0x1d8e67[_0x370a7d(0x499)],'subUnitId':_0x1d8e67['subUnitId']},[_0x531f57],_0x531f57);}(_0x828a0b=(_0x797b3a=this[_0x370a7d(0x2d9)][_0x370a7d(0x37b)])['makeDirty'])==null||_0x828a0b[_0x370a7d(0x248)](_0x797b3a,!0x0),(_0xe2f9b5=(_0x33a124=this[_0x370a7d(0x2d9)][_0x370a7d(0x37b)])['requestRender'])==null||_0xe2f9b5[_0x370a7d(0x248)](_0x33a124);}});}};En=J([q(0x1,_0x4a13c4(_0x495947)),q(0x2,_0x4a13c4(_0x452a90)),q(0x3,_0x2a0a40),q(0x4,_0x18a088),q(0x5,_0x28c364),q(0x6,_0x4a13c4(_0x352e0c))],En);let Dn=class extends _0x13ec99{constructor(_0x1dce9d,_0x69b81e,_0x45bf60,_0x150b74,_0x4d515b,_0x22b170,_0x2a6e56,_0x3329e6,_0x3fc270){const _0x17d678=_0x2d31a4;super(),this[_0x17d678(0x329)]=_0x1dce9d,this[_0x17d678(0x2aa)]=_0x69b81e,this[_0x17d678(0x1f4)]=_0x45bf60,this['elementStateService']=_0x150b74,this[_0x17d678(0x1e6)]=_0x4d515b,this['clipboardService']=_0x22b170,this[_0x17d678(0x1af)]=_0x2a6e56,this[_0x17d678(0x4c7)]=_0x3329e6,this[_0x17d678(0x406)]=_0x3fc270;}};Dn=J([q(0x1,_0x2a0a40),q(0x2,_0x495947),q(0x3,_0x452a90),q(0x4,_0x18a088),q(0x5,_0x44df25),q(0x6,_0x807b05),q(0x7,_0x4a13c4(_0x3ff2da)),q(0x8,_0x4a13c4(_0x16b84e))],Dn);const On='board.mind-map.description-dialog',kn='board-mind-map-description-dialog';function An(_0x230e4d){const _0x4f107c=_0x2d31a4;let {unitId:_0x5ebf97,subUnitId:_0x456829,nodeId:_0x50ece6,initialDescription:_0x40437d=''}=_0x230e4d,_0x4af1f9=_0x1b73d0(_0x2a0a40),_0x51c2b0=_0x1b73d0(_0x807b05),_0x17d07c=_0x1b73d0(_0x3ff2da),[_0x1034b1,_0xfd4aa9]=_0x45ab05(_0x40437d),_0x1c4290=()=>_0x51c2b0[_0x4f107c(0x36c)](kn);return _0xf895cc(_0x4f107c(0x2de),{'className':_0x4f107c(0x3e1),'data-board-mind-map-description-dialog':_0x4f107c(0x30a),'children':[_0xf895cc(_0x4f107c(0x2e4),{'className':_0x4f107c(0x413),'children':[_0x1d0d1f(_0x4f107c(0x377),{'className':_0x4f107c(0x3cd),'children':_0x17d07c['t'](_0x4f107c(0x37f))}),_0x1d0d1f(_0x3b1bc9,{'autoFocus':!0x0,'className':_0x4f107c(0x2cc),'placeholder':_0x17d07c['t'](_0x4f107c(0x493)),'value':_0x1034b1,'onValueChange':_0xfd4aa9})]}),_0xf895cc(_0x4f107c(0x2de),{'className':'univer-flex\x20univer-justify-end\x20univer-gap-2','children':[_0x1d0d1f(_0x52c5ff,{'size':_0x4f107c(0x43a),'variant':'default','onClick':_0x1c4290,'children':_0x17d07c['t'](_0x4f107c(0x3e5))}),_0x1d0d1f(_0x52c5ff,{'size':_0x4f107c(0x43a),'variant':_0x4f107c(0x3af),'onClick':()=>{const _0x4b0e99=_0x4f107c;_0x4af1f9[_0x4b0e99(0x38b)](_0x3a4e24['id'],{'unitId':_0x5ebf97,'subUnitId':_0x456829,'nodeId':_0x50ece6,'foreignAttributes':{'_note':_0x1034b1[_0x4b0e99(0x1c2)]()?_0x1034b1:null}}),_0x1c4290();},'children':_0x17d07c['t']('boards-mind-ui.saveDescription')})]})]});}const jn='board.operation.mind-map.keyboard-shortcut',Mn=_0x2d31a4(0x4c2),Nn=_0x2d31a4(0x3ea),Pn={'copy':_0x1a695f[_0x2d31a4(0x206)],'paste':_0x1a695f[_0x2d31a4(0x44f)],'paste-as-new':_0x1a695f[_0x2d31a4(0x44f)],'add-child':_0x1a695f[_0x2d31a4(0x1e4)],'add-sibling-or-child':_0x1a695f[_0x2d31a4(0x449)],'promote':_0x1a695f['addParentNode'],'toggle-collapse':_0x1a695f[_0x2d31a4(0x4c1)],'collapse-all':_0x1a695f[_0x2d31a4(0x360)],'edit-text':_0x1a695f['editCurrentNode'],'open-description':_0x1a695f['addDescription'],'delete':_0x28bc7e[_0x2d31a4(0x47c)],'arrow-left':_0x28bc7e['ARROW_LEFT'],'arrow-right':_0x28bc7e[_0x2d31a4(0x3a0)],'arrow-up':_0x28bc7e['ARROW_UP'],'arrow-down':_0x28bc7e[_0x2d31a4(0x401)]},Fn={'delete':[_0x28bc7e[_0x2d31a4(0x36b)]]};function In(_0x5a87d5){return[Pn[_0x5a87d5],...Fn[_0x5a87d5]??[]];}let Ln=class extends _0x9932d8{constructor(_0x5efc5c,_0x2faede,_0x5d842f,_0x12edb9){const _0xda8f46=_0x2d31a4;super(),this['_mindMapClipboardService']=_0x5efc5c,this['_commandService']=_0x2faede,this[_0xda8f46(0x322)]=_0x5d842f,this[_0xda8f46(0x306)]=_0x12edb9,this[_0xda8f46(0x430)]();}[_0x2d31a4(0x430)](){const _0x310680=_0x2d31a4;this[_0x310680(0x42f)](this[_0x310680(0x2a3)][_0x310680(0x4bd)](this[_0x310680(0x38c)]())),this[_0x310680(0x1b1)]()[_0x310680(0x205)](_0x21fb6d=>{const _0x2e012d=_0x310680;this[_0x2e012d(0x42f)](this[_0x2e012d(0x322)][_0x2e012d(0x3fb)](_0x21fb6d));});}[_0x2d31a4(0x38c)](){const _0x3daea9=_0x2d31a4;return{'id':jn,'type':_0x1162ea[_0x3daea9(0x224)],'handler':(_0x878df3,_0x3beb3d,_0x173d20)=>{const _0x1bbd2e=_0x3daea9;let _0x15f9be=Rn(_0x878df3,_0x173d20);return _0x15f9be?this[_0x1bbd2e(0x25e)](_0x15f9be,_0x3beb3d==null?void 0x0:_0x3beb3d[_0x1bbd2e(0x49a)]):!0x1;}};}[_0x2d31a4(0x1b1)](){const _0x57e409=_0x2d31a4;let _0x3d205d=(_0x324f30,_0x3cb866)=>({'id':jn,'binding':_0x324f30,'priority':0xa0,'preconditions':_0x1365cb=>_0x3745cb(_0x1365cb)&&!!_0x1365cb[_0x57e409(0x2af)](_0x57e409(0x4c2)),'staticParameters':{'action':_0x3cb866}}),_0x14e928=_0x2b95cf=>In(_0x2b95cf)[_0x57e409(0x461)](_0x486a7f=>_0x3d205d(_0x486a7f,_0x2b95cf));return[..._0x14e928(_0x57e409(0x206)),{'id':jn,'binding':Pn[_0x57e409(0x44f)],'priority':0xa0,'preconditions':_0x1db257=>_0x3745cb(_0x1db257)&&!!this[_0x57e409(0x1fb)][_0x57e409(0x210)]()&&!!_0x1db257[_0x57e409(0x2af)](_0x57e409(0x4c2)),'staticParameters':{'action':_0x57e409(0x44f)}},{'id':jn,'binding':Pn[_0x57e409(0x364)],'priority':0x96,'preconditions':_0x29c1e3=>_0x3745cb(_0x29c1e3)&&!!this[_0x57e409(0x1fb)][_0x57e409(0x210)]()&&!!_0x29c1e3[_0x57e409(0x2af)](_0x57e409(0x3ea)),'staticParameters':{'action':_0x57e409(0x364)}},..._0x14e928(_0x57e409(0x1dd)),..._0x14e928(_0x57e409(0x466)),..._0x14e928('promote'),..._0x14e928(_0x57e409(0x3a8)),..._0x14e928(_0x57e409(0x1d2)),..._0x14e928(_0x57e409(0x4bc)),..._0x14e928(_0x57e409(0x414)),..._0x14e928(_0x57e409(0x27f)),..._0x14e928(_0x57e409(0x486)),..._0x14e928(_0x57e409(0x4be)),..._0x14e928(_0x57e409(0x37d)),..._0x14e928('arrow-down')];}[_0x2d31a4(0x25e)](_0x49a8e2,_0x49c4f6){const _0xaadeea=_0x2d31a4;return _0x49a8e2[_0xaadeea(0x1e6)][_0xaadeea(0x41b)]()[_0xaadeea(0x462)]===_0xaadeea(0x29a)&&_0x49c4f6!==_0xaadeea(0x206)?!0x1:_0x49c4f6===_0xaadeea(0x206)?this[_0xaadeea(0x350)](_0x49a8e2):_0x49c4f6===_0xaadeea(0x44f)?this[_0xaadeea(0x236)](_0x49a8e2):_0x49c4f6==='paste-as-new'?this[_0xaadeea(0x3e0)](_0x49a8e2):_0x49c4f6===_0xaadeea(0x1dd)?this['_addChild'](_0x49a8e2):_0x49c4f6===_0xaadeea(0x466)?this[_0xaadeea(0x229)](_0x49a8e2):_0x49c4f6===_0xaadeea(0x494)?this[_0xaadeea(0x2a2)](_0x49a8e2,_0x25e9ed['id']):_0x49c4f6===_0xaadeea(0x3a8)?this[_0xaadeea(0x2a2)](_0x49a8e2,_0x16fafb['id']):_0x49c4f6===_0xaadeea(0x1d2)?this[_0xaadeea(0x40b)](_0x49a8e2):_0x49c4f6===_0xaadeea(0x4bc)?this['_openSelectedTextEditing'](_0x49a8e2):_0x49c4f6==='open-description'?this[_0xaadeea(0x1fa)](_0x49a8e2):_0x49c4f6===_0xaadeea(0x27f)?this['_deleteSelectedNode'](_0x49a8e2):_0x49c4f6&&zn(_0x49c4f6)?this[_0xaadeea(0x2d4)](_0x49a8e2,_0x49c4f6):!0x1;}[_0x2d31a4(0x350)](_0x5d8ca3){const _0x368c10=_0x2d31a4;let _0x11632c=this['_getSelectedMindMapContext'](_0x5d8ca3);return _0x11632c?(_0x5d8ca3[_0x368c10(0x2aa)]['executeCommand'](_0x5b75b6['id'],{'unitId':_0x11632c['unitId'],'subUnitId':_0x11632c[_0x368c10(0x452)],'nodeId':_0x11632c['nodeId']}),!0x0):!0x1;}[_0x2d31a4(0x236)](_0x252548){const _0x24fd3e=_0x2d31a4;let _0x4815ee=this[_0x24fd3e(0x303)](_0x252548);return!_0x4815ee||!_0x252548[_0x24fd3e(0x498)][_0x24fd3e(0x210)]()?!0x1:(this[_0x24fd3e(0x3d7)](_0x252548,_0x1dcd5d['id'],{'unitId':_0x4815ee[_0x24fd3e(0x499)],'subUnitId':_0x4815ee[_0x24fd3e(0x452)],'targetNodeId':_0x4815ee['nodeId']},_0x4815ee[_0x24fd3e(0x435)]),!0x0);}['_pasteAsNewMindMap'](_0x23add6){const _0x4b9f79=_0x2d31a4;let _0x51c61f=this[_0x4b9f79(0x2ee)](_0x23add6);if(!_0x51c61f||!_0x23add6[_0x4b9f79(0x498)]['getPayload']())return!0x1;let _0x15a152=_0x23add6[_0x4b9f79(0x1e6)][_0x4b9f79(0x41b)](),_0x5c2f57=Number[_0x4b9f79(0x31d)](_0x15a152['zoomRatio'])&&_0x15a152[_0x4b9f79(0x439)]>0x0?_0x15a152[_0x4b9f79(0x439)]:0x1,_0x3133a0=Math[_0x4b9f79(0x43c)]((0x40-_0x15a152[_0x4b9f79(0x42b)]['x'])/_0x5c2f57),_0x1c3f41=Math['round']((0x40-_0x15a152[_0x4b9f79(0x42b)]['y'])/_0x5c2f57);return _0x23add6[_0x4b9f79(0x2aa)][_0x4b9f79(0x38b)](_0xfe8103['id'],{'unitId':_0x51c61f[_0x4b9f79(0x499)],'subUnitId':_0x51c61f['subUnitId'],'left':_0x3133a0,'top':_0x1c3f41}),!0x0;}[_0x2d31a4(0x23e)](_0x990c5c){const _0x499cf0=_0x2d31a4;let _0x445fd8=this[_0x499cf0(0x303)](_0x990c5c);if(!_0x445fd8)return!0x1;let _0x7fefa0=_0x75cb4(0x6);return this[_0x499cf0(0x409)](_0x990c5c,_0x3808d0['id'],{'unitId':_0x445fd8[_0x499cf0(0x499)],'subUnitId':_0x445fd8[_0x499cf0(0x452)],'parentNodeId':_0x445fd8[_0x499cf0(0x26d)],'nodeId':_0x7fefa0,'connectorId':_0x75cb4(0x6),'text':_0x990c5c[_0x499cf0(0x4c7)]['t'](_0x499cf0(0x4ad))},_0x445fd8[_0x499cf0(0x435)],_0x7fefa0),!0x0;}[_0x2d31a4(0x229)](_0xa196cc){const _0x57c7eb=_0x2d31a4;let _0x3430bc=this[_0x57c7eb(0x303)](_0xa196cc);if(!_0x3430bc)return!0x1;let _0x2699be=_0x75cb4(0x6);return this[_0x57c7eb(0x409)](_0xa196cc,_0x3430bc[_0x57c7eb(0x284)]?_0x3808d0['id']:_0x2947b9['id'],{'unitId':_0x3430bc[_0x57c7eb(0x499)],'subUnitId':_0x3430bc[_0x57c7eb(0x452)],..._0x3430bc['isRoot']?{'parentNodeId':_0x3430bc['nodeId'],'nodeId':_0x2699be}:{'nodeId':_0x3430bc['nodeId'],'siblingNodeId':_0x2699be},'connectorId':_0x75cb4(0x6),'text':_0xa196cc[_0x57c7eb(0x4c7)]['t'](_0x57c7eb(0x4ad))},_0x3430bc[_0x57c7eb(0x435)],_0x2699be),!0x0;}[_0x2d31a4(0x2a2)](_0x28e196,_0x4e6f9f){const _0x2cfd52=_0x2d31a4;let _0x1c79bd=this['_getSelectedMindMapContext'](_0x28e196);return _0x1c79bd?(this[_0x2cfd52(0x3d7)](_0x28e196,_0x4e6f9f,{'unitId':_0x1c79bd['unitId'],'subUnitId':_0x1c79bd[_0x2cfd52(0x452)],'nodeId':_0x1c79bd[_0x2cfd52(0x26d)]},_0x1c79bd[_0x2cfd52(0x435)]),!0x0):!0x1;}['_deleteSelectedNode'](_0x3d98ed){const _0x402b2f=_0x2d31a4;let _0x5adb29=this['_getSelectedMindMapContext'](_0x3d98ed);if(!_0x5adb29)return!0x1;let _0x596532=_0x3d98ed[_0x402b2f(0x2aa)][_0x402b2f(0x2e6)](_0x1eea2c['id'],{'unitId':_0x5adb29['unitId'],'subUnitId':_0x5adb29['subUnitId'],'nodeId':_0x5adb29[_0x402b2f(0x26d)]});return _0x596532&&_0x3d98ed[_0x402b2f(0x1c7)]['clearSelection'](),_0x596532;}[_0x2d31a4(0x40b)](_0x7ef2c9){const _0x7416b7=_0x2d31a4;let _0x123979=this[_0x7416b7(0x303)](_0x7ef2c9);if(!_0x123979)return!0x1;let _0x45df06=_0x7ef2c9[_0x7416b7(0x1f4)][_0x7416b7(0x397)](_0x123979[_0x7416b7(0x499)],_0x123979['subUnitId']),_0x524a41=Object[_0x7416b7(0x379)](_0x45df06)['map'](_0x2b4316=>{const _0x6acf5f=_0x7416b7;let _0x41501c=_0xd8e37e(_0x2b4316[_0x6acf5f(0x4b4)]);return(_0x41501c==null?void 0x0:_0x41501c[_0x6acf5f(0x2f8)])===_0x123979['scopeId']&&this[_0x6acf5f(0x369)](_0x45df06,_0x123979['scopeId'],_0x2b4316[_0x6acf5f(0x421)])[_0x6acf5f(0x1ab)]>0x0?{'nodeId':_0x2b4316[_0x6acf5f(0x421)],'collapsed':_0x41501c['collapsed']}:null;})[_0x7416b7(0x2c5)](_0x390cff=>!!_0x390cff);if(_0x524a41['length']===0x0)return!0x1;let _0x26d8de=_0x524a41[_0x7416b7(0x354)](_0x2c61d7=>!_0x2c61d7[_0x7416b7(0x3bd)]),_0x43255c=_0x7ef2c9[_0x7416b7(0x2aa)],_0x4be8c1=this[_0x7416b7(0x306)][_0x7416b7(0x348)](_0x123979[_0x7416b7(0x499)]),_0x140622=_0x524a41['map'](_0x14e511=>_0x4be8c1(()=>_0x43255c[_0x7416b7(0x38b)](_0x16fafb['id'],{'unitId':_0x123979[_0x7416b7(0x499)],'subUnitId':_0x123979[_0x7416b7(0x452)],'nodeId':_0x14e511[_0x7416b7(0x26d)],'collapsed':_0x26d8de})));return Promise[_0x7416b7(0x4c5)](_0x140622[_0x7416b7(0x461)](_0x5c5845=>Promise[_0x7416b7(0x48a)](_0x5c5845)))[_0x7416b7(0x1d7)](_0x4d46c1=>{const _0x1f92c6=_0x7416b7;_0x4d46c1['some'](Boolean)&&_0x4be8c1(()=>_0x43255c[_0x1f92c6(0x38b)](_0x59d4d9['id'],{'unitId':_0x123979[_0x1f92c6(0x499)],'subUnitId':_0x123979[_0x1f92c6(0x452)],'scopeId':_0x123979['scopeId']}));}),!0x0;}[_0x2d31a4(0x355)](_0x58c439){const _0x27a5a6=_0x2d31a4;let _0x1d6868=this[_0x27a5a6(0x303)](_0x58c439);if(!_0x1d6868)return!0x1;_0x58c439[_0x27a5a6(0x1c7)][_0x27a5a6(0x2b0)]({'unitId':_0x1d6868[_0x27a5a6(0x499)],'subUnitId':_0x1d6868['subUnitId']},[_0x1d6868[_0x27a5a6(0x26d)]],_0x1d6868[_0x27a5a6(0x26d)]);let _0x12c1b5=_0x58c439['textEditingService'];return _0x12c1b5[_0x27a5a6(0x283)](),_0x12c1b5[_0x27a5a6(0x3ab)]({'unitId':_0x1d6868[_0x27a5a6(0x499)],'subUnitId':_0x1d6868['subUnitId'],'shapeId':_0x1d6868['nodeId'],'shapeKey':_0x1b247d(_0x1d6868['unitId'],_0x1d6868['nodeId']),'visible':!0x0}),!0x0;}[_0x2d31a4(0x1fa)](_0x195a48){const _0x16664b=_0x2d31a4;let _0x2004fd=this[_0x16664b(0x303)](_0x195a48);return _0x2004fd?(_0x195a48[_0x16664b(0x1af)]['open']({'id':kn,'title':{'title':_0x16664b(0x37f)},'width':0x1a4,'draggable':!0x0,'mask':!0x1,'maskClosable':!0x0,'children':{'label':On,'unitId':_0x2004fd[_0x16664b(0x499)],'subUnitId':_0x2004fd['subUnitId'],'nodeId':_0x2004fd[_0x16664b(0x26d)],'initialDescription':_0x2004fd[_0x16664b(0x328)]}}),!0x0):!0x1;}['_navigateByTopology'](_0x460b0d,_0x2b7149){const _0x2f9288=_0x2d31a4;let _0x3c7adc=this[_0x2f9288(0x303)](_0x460b0d);if(!_0x3c7adc)return!0x1;let _0x5c26c6=_0x460b0d[_0x2f9288(0x1f4)]['getElementData'](_0x3c7adc['unitId'],_0x3c7adc[_0x2f9288(0x452)]),_0x30df5d=_0x5c26c6[_0x3c7adc[_0x2f9288(0x26d)]],_0x3bf844=_0xd8e37e(_0x30df5d==null?void 0x0:_0x30df5d[_0x2f9288(0x4b4)]);if(!_0x30df5d||!_0x3bf844)return!0x1;let _0x1cbefe={'arrow-left':'ArrowLeft','arrow-right':_0x2f9288(0x2bc),'arrow-up':'ArrowUp','arrow-down':'ArrowDown'}[_0x2b7149];if(!_0x1cbefe)return!0x1;let _0x1a7cf9=this[_0x2f9288(0x309)](_0x5c26c6,_0x3c7adc['nodeId'],_0x3bf844,_0x1cbefe);return _0x1a7cf9?(_0x460b0d[_0x2f9288(0x1c7)]['selectElements']({'unitId':_0x3c7adc[_0x2f9288(0x499)],'subUnitId':_0x3c7adc[_0x2f9288(0x452)]},[_0x1a7cf9],_0x1a7cf9),!0x0):!0x1;}[_0x2d31a4(0x309)](_0x27a693,_0x23ad7e,_0x1ab6da,_0x29a29e){const _0x2a424c=_0x2d31a4;let _0x354194=this[_0x2a424c(0x369)](_0x27a693,_0x1ab6da[_0x2a424c(0x2f8)],_0x23ad7e);if(_0x1ab6da[_0x2a424c(0x3e6)]===null){if(_0x29a29e==='ArrowLeft'){var _0x2ce59c;return((_0x2ce59c=_0x354194[_0x2a424c(0x261)](_0x461591=>{const _0x359f90=_0x2a424c;var _0x25d97a;return((_0x25d97a=_0xd8e37e(_0x461591[_0x359f90(0x4b4)]))==null?void 0x0:_0x25d97a[_0x359f90(0x384)])===_0x359f90(0x1ac);}))==null?void 0x0:_0x2ce59c['elementId'])??null;}if(_0x29a29e==='ArrowRight'){var _0x4c4278;return((_0x4c4278=_0x354194[_0x2a424c(0x261)](_0x11da01=>{const _0x3268f2=_0x2a424c;var _0x5437b9;return(((_0x5437b9=_0xd8e37e(_0x11da01['element']))==null?void 0x0:_0x5437b9[_0x3268f2(0x384)])??_0x3268f2(0x234))==='right';}))==null?void 0x0:_0x4c4278[_0x2a424c(0x421)])??null;}return null;}let _0x36afd0=_0x1ab6da[_0x2a424c(0x384)]??'right',_0x418e00=_0x36afd0==='right'?'ArrowLeft':_0x2a424c(0x2bc),_0x73a669=_0x36afd0===_0x2a424c(0x234)?'ArrowRight':'ArrowLeft';if(_0x29a29e===_0x418e00)return _0x1ab6da[_0x2a424c(0x3e6)];if(_0x29a29e===_0x73a669){var _0x10f6a3;return((_0x10f6a3=_0x354194[0x0])==null?void 0x0:_0x10f6a3[_0x2a424c(0x421)])??null;}if(_0x29a29e===_0x2a424c(0x3bb)||_0x29a29e===_0x2a424c(0x4b0)){let _0x2e0964=this['_getMindMapChildren'](_0x27a693,_0x1ab6da['structureScopeId'],_0x1ab6da[_0x2a424c(0x3e6)]),_0x32d1c4=_0x2e0964[_0x2a424c(0x240)](_0x5b24bb=>_0x5b24bb['elementId']===_0x23ad7e),_0x3dda82=_0x29a29e==='ArrowUp'?_0x2e0964[_0x32d1c4-0x1]:_0x2e0964[_0x32d1c4+0x1];return(_0x3dda82==null?void 0x0:_0x3dda82[_0x2a424c(0x421)])??null;}return null;}[_0x2d31a4(0x369)](_0x36ca47,_0x19e1b9,_0x422552){const _0x12fe5e=_0x2d31a4;return Object[_0x12fe5e(0x379)](_0x36ca47)[_0x12fe5e(0x2c5)](_0x5553bd=>{const _0x280fca=_0x12fe5e;let _0x1365fb=_0xd8e37e(_0x5553bd[_0x280fca(0x4b4)]);return(_0x1365fb==null?void 0x0:_0x1365fb[_0x280fca(0x2f8)])===_0x19e1b9&&_0x1365fb[_0x280fca(0x3e6)]===_0x422552&&_0x5553bd[_0x280fca(0x4b4)][_0x280fca(0x1c0)]!==!0x1;})[_0x12fe5e(0x222)]((_0x1d6830,_0x928b37)=>{const _0x535c9f=_0x12fe5e;let _0x4aba1e=_0xd8e37e(_0x1d6830[_0x535c9f(0x4b4)]),_0x25f9c4=_0xd8e37e(_0x928b37[_0x535c9f(0x4b4)]);return _0x28a7e2(_0x4aba1e==null?void 0x0:_0x4aba1e[_0x535c9f(0x2d8)],_0x25f9c4==null?void 0x0:_0x25f9c4['orderKey'])||_0x1d6830[_0x535c9f(0x421)][_0x535c9f(0x362)](_0x928b37[_0x535c9f(0x421)]);});}['_getSelectedMindMapContext'](_0x24b190){const _0x4c8885=_0x2d31a4;var _0x59a815;let _0x2e1964=_0x24b190[_0x4c8885(0x1c7)]['getSnapshot'](),_0x4fcbbc=_0x2e1964['focusedId']??_0x2e1964[_0x4c8885(0x3f9)][0x0];if(!_0x4fcbbc||_0x2e1964['selectedIds'][_0x4c8885(0x1ab)]!==0x1||_0x2e1964['activeEditingId']||_0x2e1964[_0x4c8885(0x23a)])return null;let _0x1f16c1=_0x2e1964[_0x4c8885(0x233)]??{'unitId':_0x24b190[_0x4c8885(0x329)][_0x4c8885(0x499)],'subUnitId':_0x24b190[_0x4c8885(0x329)][_0x4c8885(0x1da)]['getActivePageId']()},_0x5869b3=_0x24b190[_0x4c8885(0x1f4)]['getElementData'](_0x1f16c1['unitId'],_0x1f16c1[_0x4c8885(0x452)])[_0x4fcbbc],_0x20405a=_0xd8e37e(_0x5869b3==null?void 0x0:_0x5869b3[_0x4c8885(0x4b4)]);return!_0x5869b3||!_0x20405a?null:{'unitId':_0x1f16c1[_0x4c8885(0x499)],'subUnitId':_0x1f16c1['subUnitId'],'nodeId':_0x4fcbbc,'scopeId':_0x20405a[_0x4c8885(0x2f8)],'isRoot':_0x20405a[_0x4c8885(0x3e6)]===null,'description':((_0x59a815=_0x20405a['foreignAttributes'])==null?void 0x0:_0x59a815[_0x4c8885(0x4b3)])??''};}['_getBlankBoardContext'](_0x2c53c9){const _0x84ab74=_0x2d31a4;var _0x5f43e6,_0xaa5f29;let _0x37df05=_0x2c53c9[_0x84ab74(0x1c7)][_0x84ab74(0x276)]();return _0x37df05['activeEditingId']||_0x37df05[_0x84ab74(0x23a)]||_0x37df05[_0x84ab74(0x3f9)][_0x84ab74(0x1ab)]>0x0||_0x37df05[_0x84ab74(0x330)]?null:{'unitId':((_0x5f43e6=_0x37df05[_0x84ab74(0x233)])==null?void 0x0:_0x5f43e6[_0x84ab74(0x499)])??_0x2c53c9[_0x84ab74(0x329)]['unitId'],'subUnitId':((_0xaa5f29=_0x37df05[_0x84ab74(0x233)])==null?void 0x0:_0xaa5f29[_0x84ab74(0x452)])??_0x2c53c9[_0x84ab74(0x329)][_0x84ab74(0x1da)][_0x84ab74(0x4a9)]()};}[_0x2d31a4(0x3d7)](_0x33346b,_0x18d16c,_0x58f278,_0x37c5ef){const _0x25d920=_0x2d31a4;let _0x5c9630=_0x33346b[_0x25d920(0x2aa)],_0x642a1b=this['_undoRedoGroupService']['createRunner'](_0x58f278[_0x25d920(0x499)]),_0x276fd1=_0x642a1b(()=>_0x5c9630[_0x25d920(0x38b)](_0x18d16c,_0x58f278));Promise[_0x25d920(0x48a)](_0x276fd1)[_0x25d920(0x1d7)](_0x3c2e06=>{const _0x5851ca=_0x25d920;_0x3c2e06&&_0x642a1b(()=>_0x5c9630[_0x5851ca(0x38b)](_0x59d4d9['id'],{'unitId':_0x58f278[_0x5851ca(0x499)],'subUnitId':_0x58f278[_0x5851ca(0x452)],'scopeId':_0x37c5ef}));});}['_executeCreateAndEdit'](_0x3eb870,_0x4991b2,_0x26b75a,_0x1e7d2e,_0x448e91){const _0x420705=_0x2d31a4;let _0x440806={'unitId':_0x26b75a[_0x420705(0x499)],'subUnitId':_0x26b75a[_0x420705(0x452)]},_0x5dcb4=_0x3eb870[_0x420705(0x2aa)],_0x552b63=this[_0x420705(0x306)]['createRunner'](_0x26b75a[_0x420705(0x499)]),_0x4cb19a=_0x552b63(()=>_0x5dcb4[_0x420705(0x38b)](_0x4991b2,_0x26b75a));Promise['resolve'](_0x4cb19a)[_0x420705(0x1d7)](_0x505ed0=>{const _0x3f4860=_0x420705;if(!_0x505ed0)return;_0x552b63(()=>_0x5dcb4[_0x3f4860(0x38b)](_0x59d4d9['id'],{..._0x440806,'scopeId':_0x1e7d2e})),_0x3eb870[_0x3f4860(0x1c7)]['selectElements'](_0x440806,[_0x448e91],_0x448e91);let _0x62ec9d=_0x3eb870[_0x3f4860(0x406)];_0x62ec9d[_0x3f4860(0x283)](),_0x62ec9d[_0x3f4860(0x3ab)]({..._0x440806,'shapeId':_0x448e91,'shapeKey':_0x1b247d(_0x440806[_0x3f4860(0x499)],_0x448e91),'visible':!0x0});});}};Ln=J([q(0x0,_0x44df25),q(0x1,_0x2a0a40),q(0x2,_0x23e2ca),q(0x3,_0x4a13c4(_0x352e0c))],Ln);function Rn(_0x4ff2cf,_0x3e9306){const _0x431160=_0x2d31a4;var _0x1691df,_0x5678b4;let _0x599183=typeof(_0x3e9306==null?void 0x0:_0x3e9306[_0x431160(0x499)])=='string'?_0x3e9306[_0x431160(0x499)]:(_0x1691df=_0x4ff2cf['get'](_0x28c364)['getCurrentUnitOfType'](_0x4468f4[_0x431160(0x3be)]))==null?void 0x0:_0x1691df['getUnitId']();return _0x599183?((_0x5678b4=_0x4ff2cf[_0x431160(0x267)](_0xa5c56c)[_0x431160(0x1c9)](_0x599183))==null?void 0x0:_0x5678b4['with'](Dn))??null:null;}function zn(_0x238f92){const _0x5507ee=_0x2d31a4;return _0x238f92===_0x5507ee(0x486)||_0x238f92===_0x5507ee(0x4be)||_0x238f92==='arrow-up'||_0x238f92===_0x5507ee(0x312);}const Bn={'min':0x1,'max':0x5,'defaultValue':0x3},Vn={'min':0x0,'max':0x64,'defaultValue':0x64},Hn=[{'kind':'dropdown','titleKey':_0x2d31a4(0x2b9),'panel':_0x2d31a4(0x3c8)},{'kind':_0x2d31a4(0x2c2),'titleKey':_0x2d31a4(0x307)},{'kind':'typography','titleKey':'boards-mind-ui.toolbar.primary.typography'},{'kind':_0x2d31a4(0x372),'titleKey':'boards-mind-ui.toolbar.primary.more','panel':_0x2d31a4(0x2fb),'dividerBefore':!0x0}],Un={'addSibling':_0x2d31a4(0x466),'addChild':_0x2d31a4(0x1dd),'copy':'copy','paste':_0x2d31a4(0x44f),'delete':_0x2d31a4(0x27f)},Wn=[{'key':_0x2d31a4(0x3fd),'title':_0x2d31a4(0x450),'items':[{'value':_0x2d31a4(0x2bb),'icon':_0x2d31a4(0x2bb),'labelKey':_0x2d31a4(0x1fe)},{'value':_0x2d31a4(0x433),'icon':_0x2d31a4(0x433),'labelKey':'boards-mind-ui.panel.structureKind.mindmapVertical'}]},{'key':_0x2d31a4(0x1d6),'title':_0x2d31a4(0x1bc),'items':[{'value':'tree-right','icon':_0x2d31a4(0x45d),'labelKey':'boards-mind-ui.panel.structureKind.treeRight'},{'value':_0x2d31a4(0x341),'icon':_0x2d31a4(0x341),'labelKey':_0x2d31a4(0x419)},{'value':_0x2d31a4(0x453),'icon':_0x2d31a4(0x453),'labelKey':_0x2d31a4(0x219)}]},{'key':_0x2d31a4(0x214),'title':'Timeline','items':[{'value':_0x2d31a4(0x338),'icon':'timeline-horizontal','labelKey':_0x2d31a4(0x34a)},{'value':_0x2d31a4(0x25f),'icon':'timeline-vertical','labelKey':_0x2d31a4(0x2f9)}]}],Gn={'key':_0x2d31a4(0x204),'title':'Branch','items':[{'value':_0x2d31a4(0x212),'icon':'branch-curve','labelKey':_0x2d31a4(0x20d)},{'value':_0x2d31a4(0x305),'icon':_0x2d31a4(0x33c),'labelKey':_0x2d31a4(0x2b6)},{'value':_0x2d31a4(0x391),'icon':_0x2d31a4(0x201),'labelKey':_0x2d31a4(0x3ee)}]},Kn=_0x2d31a4(0x43b);function qn(_0x30b31a,_0x7b0ffb){_0x30b31a['executeCommand'](jn,{'action':_0x7b0ffb});}const Jn={'line':_0x41e0b5,'more':_0x160c3e};function Yn(_0xb3c238){const _0x25fa4c=_0x2d31a4;_0xb3c238[_0x25fa4c(0x1c4)](),_0xb3c238['preventDefault']();}function Xn(_0x21b03d,_0x2c5e6c=_0x2d31a4(0x399),_0x2a937a){return _0x1d0d1f(_0x4f8372,{'children':_0x1d0d1f(_0x21b03d,{'className':_0x2c5e6c,'extend':_0x2a937a})});}function Zn(_0x3649cd){const _0x16fe17=_0x2d31a4;var _0x20148e,_0x489e01;let _0x579a84=(_0x3649cd==null?void 0x0:_0x3649cd['shapeText'])??{},_0x12b098=_0x579a84[_0x16fe17(0x40d)]&&typeof _0x579a84[_0x16fe17(0x40d)]==_0x16fe17(0x367)?_0x579a84[_0x16fe17(0x40d)]:{},_0x4d0516=(_0x20148e=_0x12b098[_0x16fe17(0x3d9)])==null||(_0x20148e=_0x20148e[_0x16fe17(0x37c)])==null?void 0x0:_0x20148e[_0x16fe17(0x460)];return{'color':typeof _0x579a84[_0x16fe17(0x445)]=='string'?_0x579a84[_0x16fe17(0x445)]:(_0x4d0516==null||(_0x489e01=_0x4d0516['cl'])==null?void 0x0:_0x489e01[_0x16fe17(0x3b4)])??_0x429bd2,'fontFamily':typeof _0x579a84[_0x16fe17(0x3bf)]=='string'?_0x579a84[_0x16fe17(0x3bf)]:(_0x4d0516==null?void 0x0:_0x4d0516['ff'])??_0x4d3453['ff'],'fontSize':typeof _0x579a84[_0x16fe17(0x282)]==_0x16fe17(0x2e3)?_0x579a84[_0x16fe17(0x282)]:typeof(_0x4d0516==null?void 0x0:_0x4d0516['fs'])==_0x16fe17(0x2e3)?_0x4d0516['fs']:_0x4d3453['fs'],'horizontalAlign':_0x579a84['horizontalAlign']??_0x12b098['ha']??_0x5d5258['LEFT'],'textFill':_0x579a84['textFill']&&typeof _0x579a84[_0x16fe17(0x4c4)]==_0x16fe17(0x367)?_0x579a84['textFill']:_0x4d0516==null?void 0x0:_0x4d0516[_0x16fe17(0x4c4)],'verticalAlign':_0x579a84['verticalAlign']??_0x12b098['va']??_0xc5d8a5[_0x16fe17(0x271)]};}function Qn(_0x2de7d0,_0x478aa2){const _0x423d94=_0x2d31a4;if(!_0x478aa2)return;let _0x303da7=In(_0x478aa2);if(!_0x303da7[_0x423d94(0x1ab)])return;let _0x23f582=_0x303da7[_0x423d94(0x461)](_0x23b3b6=>_0x2de7d0[_0x423d94(0x265)]({'id':_0x423d94(0x301),'binding':_0x23b3b6,'staticParameters':{'action':_0x478aa2}})??void 0x0)['filter'](_0x2b8dae=>!!_0x2b8dae);return _0x23f582[_0x423d94(0x1ab)]?[...new Set(_0x23f582)][_0x423d94(0x319)]('/'):void 0x0;}async function $n(_0x286fdd,_0x357737,_0x32dc7b){const _0x4175fe=_0x2d31a4;return await Promise['resolve'](_0x357737(()=>_0x286fdd[_0x4175fe(0x38b)](_0x577e6f['id'],_0x32dc7b)))?(await Promise[_0x4175fe(0x48a)](_0x357737(()=>_0x286fdd['executeCommand'](_0x59d4d9['id'],{'unitId':_0x32dc7b[_0x4175fe(0x499)],'subUnitId':_0x32dc7b['subUnitId'],'scopeId':_0x32dc7b['scopeId']}))),!0x0):!0x1;}async function er(_0x4d22e8,_0x1654c9,_0x573f64){const _0x45e540=_0x2d31a4;return await Promise[_0x45e540(0x48a)](_0x1654c9(()=>_0x4d22e8[_0x45e540(0x38b)](_0x1982fa['id'],_0x573f64)))?(await Promise[_0x45e540(0x48a)](_0x1654c9(()=>_0x4d22e8[_0x45e540(0x38b)](_0x59d4d9['id'],{'unitId':_0x573f64[_0x45e540(0x499)],'subUnitId':_0x573f64[_0x45e540(0x452)],'scopeId':_0x573f64[_0x45e540(0x435)]}))),!0x0):!0x1;}function tr({className:_0x2c0f62=_0x2d31a4(0x399)}){const _0x581801=_0x2d31a4;return _0x1d0d1f(_0x4f8372,{'children':_0xf895cc(_0x581801(0x382),{'className':_0x2c0f62,'viewBox':_0x581801(0x42a),'fill':_0x581801(0x314),'aria-hidden':_0x581801(0x30a),'children':[_0x1d0d1f(_0x581801(0x216),{'d':'M4.5\x207.5h4.2c1.9\x200\x203.3\x201.5\x203.3\x203.3v2.4c0\x201.8\x201.4\x203.3\x203.3\x203.3h4.2','stroke':_0x581801(0x3b6),'strokeWidth':'1.8','strokeLinecap':_0x581801(0x43c)}),_0x1d0d1f(_0x581801(0x216),{'d':_0x581801(0x4c9),'stroke':_0x581801(0x3b6),'strokeWidth':_0x581801(0x4ab),'strokeLinecap':_0x581801(0x43c)}),_0x1d0d1f(_0x581801(0x216),{'d':_0x581801(0x361),'stroke':_0x581801(0x3b6),'strokeWidth':_0x581801(0x4ab),'strokeLinecap':_0x581801(0x43c)})]})});}function nr({icon:_0x37c357}){const _0x1f7602=_0x2d31a4;let _0x27fbd6=_0x1f7602(0x31c),_0x4701b8={'stroke':_0x1f7602(0x3b6),'strokeWidth':2.6,'strokeLinecap':'round','strokeLinejoin':_0x1f7602(0x43c)},_0x5248c9={'stroke':_0x27fbd6,'strokeWidth':3.2,'strokeLinecap':_0x1f7602(0x43c)};return _0xf895cc('svg',{'className':_0x1f7602(0x3b0),'viewBox':_0x1f7602(0x200),'fill':_0x1f7602(0x314),'aria-hidden':_0x1f7602(0x30a),'children':[_0x37c357===_0x1f7602(0x2bb)&&_0xf895cc(_0x2f0da1,{'children':[_0x1d0d1f(_0x1f7602(0x216),{'d':_0x1f7602(0x473),..._0x4701b8}),_0x1d0d1f(_0x1f7602(0x216),{'d':_0x1f7602(0x4af),..._0x5248c9})]}),_0x37c357===_0x1f7602(0x433)&&_0xf895cc(_0x2f0da1,{'children':[_0x1d0d1f(_0x1f7602(0x216),{'d':_0x1f7602(0x34e),..._0x4701b8}),_0x1d0d1f('path',{'d':_0x1f7602(0x287),'stroke':_0x27fbd6,'strokeWidth':2.6,'strokeLinecap':_0x1f7602(0x43c),'strokeDasharray':_0x1f7602(0x32c)})]}),_0x37c357===_0x1f7602(0x45d)&&_0xf895cc(_0x2f0da1,{'children':[_0x1d0d1f(_0x1f7602(0x216),{'d':'M24\x2012v32M24\x2019c0\x204\x203\x206\x207\x206h7M24\x2029c0\x204\x203\x206\x207\x206h7M24\x2039c0\x204\x203\x206\x207\x206h7',..._0x4701b8}),_0x1d0d1f('path',{'d':_0x1f7602(0x1be),..._0x5248c9}),_0x1d0d1f(_0x1f7602(0x412),{'cx':'24','cy':'12','r':'3','fill':_0x1f7602(0x3b6)})]}),_0x37c357===_0x1f7602(0x341)&&_0xf895cc(_0x2f0da1,{'children':[_0x1d0d1f(_0x1f7602(0x216),{'d':'M56\x2012v32M56\x2019c0\x204-3\x206-7\x206h-7M56\x2029c0\x204-3\x206-7\x206h-7M56\x2039c0\x204-3\x206-7\x206h-7',..._0x4701b8}),_0x1d0d1f(_0x1f7602(0x216),{'d':_0x1f7602(0x334),..._0x5248c9}),_0x1d0d1f(_0x1f7602(0x412),{'cx':'56','cy':'12','r':'3','fill':_0x1f7602(0x3b6)})]}),_0x37c357===_0x1f7602(0x453)&&_0xf895cc(_0x2f0da1,{'children':[_0x1d0d1f('path',{'d':_0x1f7602(0x36a),..._0x4701b8}),_0x1d0d1f(_0x1f7602(0x216),{'d':_0x1f7602(0x22e),..._0x5248c9}),_0x1d0d1f(_0x1f7602(0x412),{'cx':'42','cy':'12','r':'3','fill':_0x1f7602(0x3b6)})]}),_0x37c357==='timeline-horizontal'&&_0xf895cc(_0x2f0da1,{'children':[_0x1d0d1f(_0x1f7602(0x216),{'d':_0x1f7602(0x42d),..._0x4701b8}),_0x1d0d1f(_0x1f7602(0x216),{'d':_0x1f7602(0x1fc),..._0x5248c9}),_0x1d0d1f(_0x1f7602(0x412),{'cx':'17','cy':'31','r':'3','fill':_0x1f7602(0x3b6)})]}),_0x37c357==='timeline-vertical'&&_0xf895cc(_0x2f0da1,{'children':[_0x1d0d1f(_0x1f7602(0x216),{'d':_0x1f7602(0x4bb),..._0x4701b8}),_0x1d0d1f(_0x1f7602(0x216),{'d':_0x1f7602(0x2c9),..._0x5248c9}),_0x1d0d1f(_0x1f7602(0x412),{'cx':'40','cy':'9','r':'3','fill':_0x1f7602(0x3b6)})]}),_0x37c357==='branch-curve'&&_0x1d0d1f(_0x2f0da1,{'children':_0x1d0d1f(_0x1f7602(0x216),{'d':'M16\x2028c16\x200\x2025-13\x2043-13M16\x2028c16\x200\x2025\x2013\x2043\x2013',..._0x4701b8})}),_0x37c357==='branch-rounded-orthogonal'&&_0x1d0d1f(_0x2f0da1,{'children':_0x1d0d1f(_0x1f7602(0x216),{'d':_0x1f7602(0x485),..._0x4701b8})}),_0x37c357===_0x1f7602(0x201)&&_0x1d0d1f(_0x2f0da1,{'children':_0x1d0d1f(_0x1f7602(0x216),{'d':'M17\x2033h21M38\x2017v30M38\x2017h24',..._0x4701b8})})]});}function rr(_0x2052c3,_0x26d254){const _0xb5f06b=_0x2d31a4;let _0x154aee=_0x2052c3[_0xb5f06b(0x460)],_0x4d8b23=_0x3b60e2(_0x154aee),_0x4ae577={..._0x4d8b23[_0xb5f06b(0x445)]===void 0x0?null:{'color':_0x4d8b23[_0xb5f06b(0x445)]},..._0x4d8b23['fontFamily']===void 0x0?null:{'fontFamily':_0x4d8b23[_0xb5f06b(0x3bf)]},..._0x4d8b23[_0xb5f06b(0x282)]===void 0x0?null:{'fontSize':_0x4d8b23[_0xb5f06b(0x282)]},..._0x4d8b23['bold']===void 0x0?null:{'bold':_0x4d8b23['bold']},..._0x4d8b23[_0xb5f06b(0x339)]===void 0x0?null:{'italic':_0x4d8b23['italic']},..._0x4d8b23[_0xb5f06b(0x2a8)]===void 0x0?null:{'underline':_0x4d8b23[_0xb5f06b(0x2a8)]},..._0x4d8b23[_0xb5f06b(0x470)]===void 0x0?null:{'strikethrough':_0x4d8b23['strikethrough']},..._0x4d8b23[_0xb5f06b(0x4c4)]===void 0x0?null:{'textFill':_0x4d8b23[_0xb5f06b(0x4c4)]}};_0x2052c3['horizontalAlign']!==void 0x0&&(_0x4ae577[_0xb5f06b(0x368)]=_0x2052c3['horizontalAlign']),_0x2052c3['verticalAlign']!==void 0x0&&(_0x4ae577[_0xb5f06b(0x44b)]=_0x2052c3[_0xb5f06b(0x44b)]),Object['keys'](_0x4ae577)['length']>0x0&&_0x26d254({'textStyle':_0x4ae577});}function ir(_0x5200dd,_0x521825,_0x1642b6){const _0x1457f6=_0x2d31a4;let _0x378554=_0x5200dd??{},_0xc296ef=_0x3b39f1(_0x378554,_0x521825),_0x9ecfbd=_0xc296ef[_0x1457f6(0x29d)]??_0x378554[_0x1457f6(0x29d)]??{};return{..._0x378554,..._0xc296ef,'shapeText':{..._0x9ecfbd,..._0x1642b6[_0x1457f6(0x445)]===void 0x0?null:{'color':_0x1642b6[_0x1457f6(0x445)]},..._0x1642b6[_0x1457f6(0x282)]===void 0x0?null:{'fontSize':_0x1642b6[_0x1457f6(0x282)]},..._0x1642b6[_0x1457f6(0x478)]===void 0x0?null:{'bold':_0x1642b6[_0x1457f6(0x478)]},..._0x1642b6[_0x1457f6(0x339)]===void 0x0?null:{'italic':_0x1642b6['italic']},..._0x1642b6['underline']===void 0x0?null:{'underline':_0x1642b6[_0x1457f6(0x2a8)]},..._0x1642b6[_0x1457f6(0x470)]===void 0x0?null:{'strikethrough':_0x1642b6['strikethrough']},..._0x1642b6[_0x1457f6(0x368)]===void 0x0?null:{'horizontalAlign':_0x1642b6['horizontalAlign']},..._0x1642b6['verticalAlign']===void 0x0?null:{'verticalAlign':_0x1642b6[_0x1457f6(0x44b)]},..._0x1642b6[_0x1457f6(0x4c4)]===void 0x0?null:{'textFill':_0x1642b6[_0x1457f6(0x4c4)]}}};}function ar(_0x501b2a,_0x530b8b){const _0x13a91b=_0x2d31a4;let _0x56d3a6=_0x501b2a==null?void 0x0:_0x501b2a[_0x13a91b(0x2ac)];_0x56d3a6&&_0x530b8b({'lineType':_0x56d3a6[_0x13a91b(0x4a7)]===_0x6d9141[_0x13a91b(0x41f)]||_0x56d3a6[_0x13a91b(0x4a7)]===_0x6d9141['SquareDot']?_0x13a91b(0x2b8):_0x56d3a6[_0x13a91b(0x4a7)]===_0x6d9141['Dash']?'dash':'solid',...typeof _0x56d3a6[_0x13a91b(0x35d)]=='number'?{'strokeWidth':_0x56d3a6[_0x13a91b(0x35d)]}:null,...typeof _0x56d3a6['color']=='string'?{'stroke':_0x56d3a6[_0x13a91b(0x445)]}:null,...typeof _0x56d3a6[_0x13a91b(0x1d0)]=='number'?{'opacity':_0x56d3a6[_0x13a91b(0x1d0)]}:null});}function or(_0xb4647d){const _0x148ab1=_0x2d31a4;return _0xb4647d!=null&&_0xb4647d['length']?_0xb4647d[0x0]<=0x2?_0x6d9141[_0x148ab1(0x41f)]:_0x6d9141['Dash']:_0x6d9141[_0x148ab1(0x3ce)];}function sr(_0x3d256c){const _0xdb668c=_0x2d31a4;return{'stroke':{'lineStrokeType':_0x586b2d[_0xdb668c(0x221)],'dashType':or(_0x3d256c==null?void 0x0:_0x3d256c[_0xdb668c(0x464)]),'color':(_0x3d256c==null?void 0x0:_0x3d256c[_0xdb668c(0x2ac)])??_0x78d89c,'width':(_0x3d256c==null?void 0x0:_0x3d256c[_0xdb668c(0x24f)])??Bn['defaultValue'],'opacity':(_0x3d256c==null?void 0x0:_0x3d256c[_0xdb668c(0x1d0)])??Vn[_0xdb668c(0x22d)]/0x64}};}function cr(_0x579b93){const _0x9b90d5=_0x2d31a4;var _0x2e66d1,_0x21697b,_0x5afe16;let _0x4f42d5=_0x1b73d0(_0x2a0a40),_0x480204=_0x1b73d0(_0x23e2ca),_0x2f075e=_0x1b73d0(_0x3ff2da),_0x1768cb=_0x1b73d0(_0x352e0c),[_0x399763,_0x3780b5]=_0x45ab05(null),[_0x4718db,_0x496b3e]=_0x45ab05((_0x2e66d1=_0x579b93[_0x9b90d5(0x279)][_0x9b90d5(0x3cf)])==null?void 0x0:_0x2e66d1['shapeData']),_0x43fef5=_0x579b93[_0x9b90d5(0x279)][_0x9b90d5(0x3cf)];if(!_0x43fef5)return null;let _0x2b4b6f={'unitId':_0x43fef5[_0x9b90d5(0x499)],'subUnitId':_0x43fef5[_0x9b90d5(0x452)]},_0x52b2=_0x49eff1=>{const _0x6e42f5=_0x9b90d5;_0x4f42d5[_0x6e42f5(0x38b)](_0x3a4e24['id'],{..._0x2b4b6f,'nodeId':_0x43fef5[_0x6e42f5(0x421)],..._0x49eff1});},_0x46cf22=(_0x9a57a8,_0x1112de)=>{const _0x3d0797=_0x9b90d5;let _0x525acf=_0x1112de??{};_0x496b3e(_0x394ca5=>({..._0x394ca5??{},..._0x525acf})),_0x52b2({..._0x525acf['fill']===void 0x0?null:{'fill':_0x525acf[_0x3d0797(0x4ca)]},..._0x525acf[_0x3d0797(0x2ac)]===void 0x0?null:{'stroke':_0x525acf['stroke']}});},_0x5ca873=_0x505a9b=>{const _0x42151a=_0x9b90d5;_0x4f42d5[_0x42151a(0x38b)](_0x34f5dc['id'],{..._0x2b4b6f,'nodeId':_0x43fef5[_0x42151a(0x421)],'style':_0x505a9b});},_0x56b285=sr(_0x43fef5[_0x9b90d5(0x1c1)]),_0x2c3d88=_0x46db90=>Qn(_0x480204,_0x46db90),_0x1e5126=_0x28351f=>{qn(_0x4f42d5,_0x28351f);},_0x3a5087=(_0x4718db==null?void 0x0:_0x4718db[_0x9b90d5(0x29d)])??{},_0x531981=Zn(_0x4718db),_0x5802b3=_0x4f4d82=>{rr(_0x4f4d82,_0x1896f3=>{const _0x3271ed=_0x4547;_0x496b3e(_0x193b86=>ir(_0x193b86,_0x4f4d82,_0x1896f3[_0x3271ed(0x460)])),_0x52b2(_0x1896f3);});},_0x5d8ae3=[{'label':_0x2f075e['t'](_0x9b90d5(0x1b4)),'value':_0x5d5258[_0x9b90d5(0x1bb)],'icon':_0x1d0d1f(_0x41ed09,{})},{'label':_0x2f075e['t']('boards-mind-ui.alignCenter'),'value':_0x5d5258['CENTER'],'icon':_0x1d0d1f(_0x56184a,{})},{'label':_0x2f075e['t'](_0x9b90d5(0x2fc)),'value':_0x5d5258[_0x9b90d5(0x2c7)],'icon':_0x1d0d1f(_0x1be74c,{})},{'label':_0x2f075e['t'](_0x9b90d5(0x4a6)),'value':_0x5d5258['JUSTIFIED'],'icon':_0x1d0d1f(_0x5ad6e9,{})}],_0x1d2755=[{'label':_0x2f075e['t'](_0x9b90d5(0x443)),'value':_0xc5d8a5[_0x9b90d5(0x415)],'icon':_0x1d0d1f(_0x575e02,{})},{'label':_0x2f075e['t'](_0x9b90d5(0x448)),'value':_0xc5d8a5[_0x9b90d5(0x271)],'icon':_0x1d0d1f(_0xd7454b,{})},{'label':_0x2f075e['t'](_0x9b90d5(0x2d1)),'value':_0xc5d8a5[_0x9b90d5(0x1de)],'icon':_0x1d0d1f(_0x5097e6,{})}],_0xdf9bee=()=>{const _0x25d14c=_0x9b90d5;_0x1e5126(_0x25d14c(0x466));},_0x156ce4=()=>{const _0x4e4bc4=_0x9b90d5;_0x1e5126(_0x4e4bc4(0x1dd));},_0x33b496=()=>{const _0x48bfeb=_0x9b90d5;_0x1e5126(_0x48bfeb(0x206));},_0x22e401=()=>{_0x1e5126('paste');},_0x16ffd1=()=>{_0x1e5126('delete');},_0x47542b=((_0x21697b=_0x43fef5[_0x9b90d5(0x31a)])==null?void 0x0:_0x21697b[_0x9b90d5(0x46d)])??_0x5242c3['structureKind'],_0x338a19=_0x498b4a(_0x47542b,((_0x5afe16=_0x43fef5[_0x9b90d5(0x31a)])==null?void 0x0:_0x5afe16[_0x9b90d5(0x365)])??_0x5242c3['branchLineType']),_0x1f1f3a=_0x5238cf=>{const _0x1d39f7=_0x9b90d5;let _0x32c54c=_0x498b4a(_0x5238cf,_0x338a19);$n(_0x4f42d5,_0x1768cb[_0x1d39f7(0x348)](_0x43fef5[_0x1d39f7(0x499)]),{..._0x2b4b6f,'scopeId':_0x43fef5[_0x1d39f7(0x435)],'structureKind':_0x5238cf,..._0x32c54c===_0x338a19?null:{'branchLineType':_0x32c54c}}),_0x3780b5(null);},_0x4c3c65=_0x28ba97=>{const _0x512f80=_0x9b90d5;er(_0x4f42d5,_0x1768cb[_0x512f80(0x348)](_0x43fef5['unitId']),{..._0x2b4b6f,'scopeId':_0x43fef5[_0x512f80(0x435)],'branchLineType':_0x28ba97}),_0x3780b5(null);},_0x252b59=(_0x5738de,_0x245f8a,_0x5bd417,_0x494713=!0x1)=>_0x1d0d1f(_0x9b90d5(0x29f),{'type':_0x9b90d5(0x29f),'aria-label':_0x2f075e['t'](_0x5738de[_0x9b90d5(0x1f6)]),'disabled':_0x494713,'className':_0x1f61d6(_0x9b90d5(0x34d),_0x245f8a&&_0x9b90d5(0x2e7),_0x494713&&_0x9b90d5(0x209)),'onMouseDown':Yn,'onPointerDown':Yn,'onClick':_0x2ec239=>{const _0x184209=_0x9b90d5;_0x2ec239[_0x184209(0x1c4)](),!_0x494713&&_0x5bd417();},'children':_0x1d0d1f(nr,{'icon':_0x5738de[_0x9b90d5(0x1aa)]})},_0x5738de[_0x9b90d5(0x2fe)]),_0x1138be=()=>_0xf895cc(_0x9b90d5(0x2de),{'className':_0x9b90d5(0x3a7),'onMouseDown':_0x447c87=>_0x447c87[_0x9b90d5(0x1c4)](),'onPointerDown':_0x11aaf1=>_0x11aaf1['stopPropagation'](),'children':[Wn[_0x9b90d5(0x461)](_0x421bab=>_0xf895cc(_0x9b90d5(0x2de),{'className':_0x9b90d5(0x366),'children':[_0x1d0d1f(_0x9b90d5(0x2de),{'className':_0x9b90d5(0x1d8),'children':_0x421bab[_0x9b90d5(0x28f)]}),_0x1d0d1f(_0x9b90d5(0x2de),{'className':_0x9b90d5(0x3d3),'style':{'gridTemplateColumns':_0x9b90d5(0x2d7)+_0x421bab[_0x9b90d5(0x23f)][_0x9b90d5(0x1ab)]+_0x9b90d5(0x3f4)},'children':_0x421bab['items']['map'](_0x39475e=>_0x252b59(_0x39475e,_0x39475e[_0x9b90d5(0x2fe)]===_0x47542b,()=>_0x1f1f3a(_0x39475e[_0x9b90d5(0x2fe)])))})]},_0x421bab[_0x9b90d5(0x3a2)])),_0x1d0d1f(_0x6d5a9d,{}),_0xf895cc(_0x9b90d5(0x2de),{'className':_0x9b90d5(0x46a),'children':[_0x1d0d1f(_0x9b90d5(0x2de),{'className':'univer-mb-2\x20univer-text-lg\x20univer-text-gray-900','children':Gn[_0x9b90d5(0x28f)]}),_0x1d0d1f(_0x9b90d5(0x2de),{'className':'univer-grid\x20univer-h-14\x20univer-overflow-hidden\x20univer-rounded-xl\x20univer-bg-gray-100\x20univer-p-1','style':{'gridTemplateColumns':_0x9b90d5(0x2d7)+Gn[_0x9b90d5(0x23f)][_0x9b90d5(0x1ab)]+',\x20minmax(0,\x201fr))'},'children':Gn[_0x9b90d5(0x23f)][_0x9b90d5(0x461)](_0xa73e05=>_0x252b59(_0xa73e05,_0xa73e05[_0x9b90d5(0x2fe)]===_0x338a19,()=>_0x4c3c65(_0xa73e05[_0x9b90d5(0x2fe)]),_0xa73e05['value']===_0x9b90d5(0x212)&&!_0x540733(_0x47542b)))})]})]}),_0x3f6c85=_0x75cbd4=>{const _0x31f8d9=_0x9b90d5;switch(_0x75cbd4){case _0x31f8d9(0x3c8):return _0x1d0d1f(_0x345fac,{'title':_0x2f075e['t']('boards-mind-ui.toolbar.panel.line'),'shapeData':_0x56b285,'modeOptions':[_0x31f8d9(0x2f3),_0x31f8d9(0x464),_0x31f8d9(0x2b8)],'showDashDropdown':!0x1,'widthRange':{'min':Bn[_0x31f8d9(0x28e)],'max':Bn[_0x31f8d9(0x34f)],'step':0x1},'onUpdateShapeData':(_0x1e7292,_0x44c46c)=>{ar(_0x44c46c,_0x5ca873);}});case _0x31f8d9(0x2fb):return _0x1d0d1f(_0x291659,{'title':_0x2f075e['t'](_0x31f8d9(0x3b9)),'minWidthClassName':'univer-min-w-[240px]','children':_0xf895cc(_0x31f8d9(0x2de),{'className':_0x31f8d9(0x47a),'children':[_0x1d0d1f(_0x4cd972,{'label':_0x2f075e['t'](_0x31f8d9(0x43f)),'shortcut':_0x2c3d88(Un[_0x31f8d9(0x3f1)]),'onClick':_0xdf9bee}),_0x1d0d1f(_0x4cd972,{'label':_0x2f075e['t'](_0x31f8d9(0x2fd)),'shortcut':_0x2c3d88(Un[_0x31f8d9(0x217)]),'onClick':_0x156ce4}),_0x1d0d1f(_0x6d5a9d,{}),_0x1d0d1f(_0x4cd972,{'label':_0x2f075e['t'](_0x31f8d9(0x26b)),'shortcut':_0x2c3d88(Un[_0x31f8d9(0x206)]),'onClick':_0x33b496}),_0x1d0d1f(_0x4cd972,{'label':_0x2f075e['t'](_0x31f8d9(0x327)),'shortcut':_0x2c3d88(Un[_0x31f8d9(0x44f)]),'onClick':_0x22e401}),_0x1d0d1f(_0x4cd972,{'label':_0x2f075e['t'](_0x31f8d9(0x3e7)),'shortcut':_0x2c3d88(Un['delete']),'onClick':_0x16ffd1})]})});default:return null;}},_0x3bbaf0=Hn['flatMap'](_0x3fb846=>{const _0x43e609=_0x9b90d5;let _0x422ec1=[];if(_0x3fb846['dividerBefore']&&_0x422ec1[_0x43e609(0x228)](_0x1d0d1f(_0x6d5a9d,{'orientation':_0x43e609(0x343)},_0x43e609(0x423)+_0x3fb846[_0x43e609(0x3e4)])),_0x3fb846[_0x43e609(0x3e4)]===_0x43e609(0x451))return _0x422ec1[_0x43e609(0x228)](_0x1d0d1f(_0x427b5f,{'title':_0x2f075e['t'](_0x43e609(0x22a)),'fontFamily':_0x531981[_0x43e609(0x3bf)],'textStyle':{'isBold':_0x3a5087[_0x43e609(0x478)]===!0x0,'isItalic':_0x3a5087['italic']===!0x0,'isUnderline':_0x3a5087[_0x43e609(0x2a8)]===!0x0,'isStrike':_0x3a5087[_0x43e609(0x470)]===!0x0},'horizontalAlign':_0x531981['horizontalAlign'],'verticalAlign':_0x531981[_0x43e609(0x44b)],'horizontalAlignOptions':_0x5d8ae3,'verticalAlignOptions':_0x1d2755,'onUpdateText':_0x5802b3},_0x3fb846[_0x43e609(0x3e4)])),_0x422ec1;if(_0x3fb846[_0x43e609(0x3e4)]===_0x43e609(0x2c2)){let _0x21a0bf={'fs':_0x531981[_0x43e609(0x282)],'cl':{'rgb':_0x531981['color']},..._0x531981[_0x43e609(0x4c4)]===void 0x0?null:{'textFill':_0x531981[_0x43e609(0x4c4)]}};return _0x422ec1[_0x43e609(0x228)](_0x1d0d1f(_0x5efd9f,{'title':_0x2f075e['t'](_0x43e609(0x331)),'textStyle':_0x21a0bf,'fallbackColor':_0x531981[_0x43e609(0x445)],'onChange':_0x52abd1=>_0x5802b3({'textStyle':_0x52abd1})},_0x3fb846[_0x43e609(0x3e4)])),_0x422ec1[_0x43e609(0x228)](_0x1d0d1f(_0x27a669,{'value':String(_0x531981[_0x43e609(0x282)]),'onChange':_0x191f64=>{_0x5802b3({'textStyle':{'fs':_0x191f64}});}},_0x43e609(0x231))),_0x422ec1;}return _0x422ec1[_0x43e609(0x228)](_0x1d0d1f(_0x51a529,{'open':_0x399763===_0x3fb846[_0x43e609(0x268)],'overlay':_0x3f6c85(_0x3fb846[_0x43e609(0x268)]),'onOpenChange':_0x46e1c6=>_0x3780b5(_0x46e1c6?_0x3fb846[_0x43e609(0x268)]:null),'children':_0x1d0d1f(_0x43e609(0x377),{'children':_0x1d0d1f(_0x538e8d,{'title':_0x2f075e['t'](_0x3fb846[_0x43e609(0x1ee)]),'active':_0x399763===_0x3fb846[_0x43e609(0x268)],'icon':Xn(Jn[_0x3fb846[_0x43e609(0x268)]]),'sizeClassName':_0x43e609(0x25b),'onMouseDown':Yn,'onPointerDown':Yn})})},_0x3fb846[_0x43e609(0x268)])),_0x422ec1;}),_0x521e4b=[..._0x43fef5['isRootNode']?[_0x1d0d1f(_0x51a529,{'open':_0x399763==='layout','overlay':_0x1138be(),'onOpenChange':_0x24498c=>_0x3780b5(_0x24498c?_0x9b90d5(0x31a):null),'children':_0x1d0d1f(_0x9b90d5(0x377),{'children':_0x1d0d1f(_0x538e8d,{'title':_0x2f075e['t'](_0x9b90d5(0x243)),'active':_0x399763===_0x9b90d5(0x31a),'icon':_0x1d0d1f(tr,{}),'sizeClassName':_0x9b90d5(0x25b),'onMouseDown':Yn,'onPointerDown':Yn})})},_0x9b90d5(0x36e)),_0x1d0d1f(_0x6d5a9d,{'orientation':_0x9b90d5(0x343)},_0x9b90d5(0x427))]:[],_0x1d0d1f(_0x2a02bb,{'title':_0x2f075e['t'](_0x9b90d5(0x290)),'shapeData':_0x4718db??{},'onUpdateShapeData':_0x46cf22},_0x9b90d5(0x2ef)),_0x1d0d1f(_0x5cba12,{'title':_0x2f075e['t'](_0x9b90d5(0x1ad)),'shapeData':_0x4718db??{},'onUpdateShapeData':_0x46cf22},_0x9b90d5(0x266)),_0x1d0d1f(_0x6d5a9d,{'orientation':_0x9b90d5(0x343)},_0x9b90d5(0x4b7))];return _0xf895cc(_0x469f68,{'maxWidthClassName':'univer-max-w-[min(760px,calc(100vw-32px))]','onMouseDown':_0x31929e=>_0x31929e[_0x9b90d5(0x1c4)](),'children':[_0x521e4b,_0x3bbaf0]});}function lr(_0x3fc405){let {left:_0x2cc353,top:_0xd102f3,width:_0x4335bf,height:_0x5f1d79}=_0x3fc405;return{'left':_0x2cc353,'right':_0x2cc353+_0x4335bf,'top':_0xd102f3-0x38,'bottom':_0xd102f3+_0x5f1d79};}let ur=class extends _0x9932d8{constructor(_0x4281d9,_0x2fcaf6,_0x29f194,_0xd8ccd3,_0xe1c1be,_0x3e4610){const _0x2b2aa5=_0x2d31a4;super(),this[_0x2b2aa5(0x2d9)]=_0x4281d9,this[_0x2b2aa5(0x313)]=_0x2fcaf6,this['_boardElementService']=_0x29f194,this[_0x2b2aa5(0x318)]=_0xd8ccd3,this[_0x2b2aa5(0x395)]=_0xe1c1be,this[_0x2b2aa5(0x381)]=_0x3e4610,K(this,_0x2b2aa5(0x3c3),null),K(this,'_popupSelectionKey',null),this['_init']();}[_0x2d31a4(0x262)](){const _0x1acb41=_0x2d31a4;this[_0x1acb41(0x310)](),super['dispose']();}['_init'](){const _0x460af8=_0x2d31a4;let _0x132b6e=this['_renderContext'][_0x460af8(0x37b)][_0x460af8(0x4ac)]();this[_0x460af8(0x42f)](_0x5a6bc0(_0x132b6e[_0x460af8(0x335)]['pipe'](_0x35dd5f(this[_0x460af8(0x1c3)]))[_0x460af8(0x45b)](()=>this[_0x460af8(0x320)]()))),this[_0x460af8(0x42f)](_0x5a6bc0(_0x132b6e[_0x460af8(0x21b)][_0x460af8(0x4b1)](_0x35dd5f(this['dispose$']))[_0x460af8(0x45b)](()=>this['_clearPopupIfSelectionChanged']()))),this[_0x460af8(0x42f)](_0x5a6bc0(_0x132b6e[_0x460af8(0x387)][_0x460af8(0x4b1)](_0x35dd5f(this[_0x460af8(0x1c3)]))[_0x460af8(0x45b)](()=>this[_0x460af8(0x310)]()))),this[_0x460af8(0x42f)](_0x5a6bc0(_0x132b6e[_0x460af8(0x26e)][_0x460af8(0x4b1)](_0x35dd5f(this[_0x460af8(0x1c3)]))['subscribe'](()=>setTimeout(()=>this['_showPopupForSelection'](),0x0)))),this['disposeWithMe'](_0x5a6bc0(this[_0x460af8(0x318)][_0x460af8(0x1b8)][_0x460af8(0x4b1)](_0x35dd5f(this['dispose$']))[_0x460af8(0x45b)](()=>setTimeout(()=>this[_0x460af8(0x320)](),0x0)))),this[_0x460af8(0x42f)](_0x5a6bc0(this[_0x460af8(0x381)][_0x460af8(0x2d0)][_0x460af8(0x4b1)](_0x35dd5f(this[_0x460af8(0x1c3)]))[_0x460af8(0x45b)](_0x330cf7=>{const _0x34d73f=_0x460af8;if(_0x330cf7){this[_0x34d73f(0x310)]();return;}setTimeout(()=>this[_0x34d73f(0x320)](),0x0);}))),this[_0x460af8(0x42f)](_0x5a6bc0(this[_0x460af8(0x395)][_0x460af8(0x24d)][_0x460af8(0x4b1)](_0x35dd5f(this[_0x460af8(0x1c3)]))[_0x460af8(0x45b)](_0x3039f1=>{const _0x3ec04e=_0x460af8;if((_0x3039f1==null?void 0x0:_0x3039f1['unitId'])===this[_0x3ec04e(0x2d9)]['unitId']){if(_0x3039f1[_0x3ec04e(0x1c0)]){this['_clearPopup']();return;}setTimeout(()=>this[_0x3ec04e(0x320)](),0x0);}})));}[_0x2d31a4(0x310)](){const _0x3dcc63=_0x2d31a4;var _0x1d707e;(_0x1d707e=this[_0x3dcc63(0x3c3)])==null||_0x1d707e[_0x3dcc63(0x262)](),this[_0x3dcc63(0x3c3)]=null,this['_popupSelectionKey']=null;}[_0x2d31a4(0x3de)](){setTimeout(()=>{const _0x4bdac8=_0x4547;this[_0x4bdac8(0x447)]()||this[_0x4bdac8(0x310)]();},0x0);}[_0x2d31a4(0x447)](){const _0xd82cd9=_0x2d31a4;let _0x5d4754=this[_0xd82cd9(0x318)][_0xd82cd9(0x276)]();return!!_0x5d4754[_0xd82cd9(0x233)]&&_0x5d4754[_0xd82cd9(0x3f9)][_0xd82cd9(0x1ab)]>0x0&&this['_popupSelectionKey']===this[_0xd82cd9(0x3cb)](_0x5d4754['context'][_0xd82cd9(0x499)],_0x5d4754[_0xd82cd9(0x233)][_0xd82cd9(0x452)],_0x5d4754['selectedIds']);}[_0x2d31a4(0x3cb)](_0x4c00e1,_0x4d7b32,_0x37a315){const _0x5d4334=_0x2d31a4;return _0x4c00e1+':'+_0x4d7b32+':'+_0x37a315[_0x5d4334(0x319)](',');}[_0x2d31a4(0x2bd)](_0xe7487d,_0x3fe3f5,_0x22c1c8,_0x2a8a2c){const _0x41c5b8=_0x2d31a4;let _0x1ca4e5=this[_0x41c5b8(0x235)]['getElementData'](_0xe7487d,_0x3fe3f5),_0x1a567f=Object['values'](_0x1ca4e5)[_0x41c5b8(0x261)](_0x3cb635=>{const _0x105531=_0x41c5b8;let _0x270412=_0x1b1ea2(_0x3cb635[_0x105531(0x4b4)]);return(_0x270412==null?void 0x0:_0x270412[_0x105531(0x2f8)])===_0x22c1c8&&_0x270412[_0x105531(0x254)]===_0x2a8a2c;});if(_0x1a567f&&'connectorData'in _0x1a567f[_0x41c5b8(0x4b4)])return _0x1a567f[_0x41c5b8(0x4b4)][_0x41c5b8(0x1f7)][_0x41c5b8(0x2a4)];}[_0x2d31a4(0x320)](){const _0x50fbed=_0x2d31a4;var _0x2632b0,_0x47a157,_0x4f4a4e;if(this[_0x50fbed(0x381)][_0x50fbed(0x38e)]){this[_0x50fbed(0x310)]();return;}let _0x336457=this[_0x50fbed(0x395)][_0x50fbed(0x2ea)]();if((_0x336457==null?void 0x0:_0x336457['visible'])===!0x0&&_0x336457[_0x50fbed(0x499)]===this[_0x50fbed(0x2d9)][_0x50fbed(0x499)]){this[_0x50fbed(0x310)]();return;}let _0x567a9e=this[_0x50fbed(0x318)][_0x50fbed(0x276)]();if(_0x567a9e[_0x50fbed(0x23a)]){this[_0x50fbed(0x310)]();return;}if(_0x4483a0({'context':_0x567a9e['context'],'selectedIds':_0x567a9e[_0x50fbed(0x3f9)],'getElementById':(_0xf7bf35,_0x4baa21,_0x34cda6)=>this['_boardElementService'][_0x50fbed(0x4c8)](_0xf7bf35,_0x4baa21,_0x34cda6)})[_0x50fbed(0x29c)]!==_0x50fbed(0x3fd)){this[_0x50fbed(0x310)]();return;}let _0x1aee39=this[_0x50fbed(0x2d9)]['scene']['getTransformerByCreate']()[_0x50fbed(0x241)](),_0x3001dd=Array['from'](_0x1aee39[_0x50fbed(0x379)]())[_0x50fbed(0x461)](_0x59e8c8=>this[_0x50fbed(0x472)](_0x59e8c8))['filter'](_0x5db336=>!!_0x5db336)[_0x50fbed(0x2c5)](_0x483b48=>!!_0xd8e37e(_0x483b48[_0x50fbed(0x43e)][_0x50fbed(0x4b4)])),_0x4a32b0=_0x3001dd[_0x50fbed(0x261)](_0x3ccb43=>_0x3ccb43[_0x50fbed(0x43e)][_0x50fbed(0x421)]===_0x567a9e['focusedId'])??_0x3001dd[0x0]??this[_0x50fbed(0x3f8)]();if(!_0x4a32b0){this[_0x50fbed(0x310)]();return;}let _0x1f1d4f=_0xd8e37e(_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x4b4)]);if(!_0x1f1d4f){this[_0x50fbed(0x310)]();return;}let _0x1db4ce=(_0x2632b0=this['_boardElementService'][_0x50fbed(0x397)](_0x4a32b0['elementData'][_0x50fbed(0x499)],_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x452)])[_0x1f1d4f[_0x50fbed(0x2f8)]])==null?void 0x0:_0x2632b0[_0x50fbed(0x4b4)],_0x3fe2f6=_0x3a557b(_0x1db4ce),_0x5410e0=_0x1db4ce==null||(_0x47a157=_0x1db4ce['custom'])==null||(_0x47a157=_0x47a157[_0x50fbed(0x378)])==null||(_0x47a157=_0x47a157[_0x50fbed(0x31a)])==null?void 0x0:_0x47a157[_0x50fbed(0x46d)],_0x2c72b4=((_0x3fe2f6==null?void 0x0:_0x3fe2f6[_0x50fbed(0x31a)][_0x50fbed(0x46d)])??_0x5410e0)===_0x50fbed(0x433)&&(_0x1f1d4f['parentNodeId']===null||_0x1f1d4f[_0x50fbed(0x384)]==='top'),_0x351f5c=_0x1f1d4f[_0x50fbed(0x3e6)]!==null&&_0x1f1d4f['side']!=='top'&&_0x1f1d4f[_0x50fbed(0x384)]!=='bottom',_0xb2492e=_0x2c72b4||_0x351f5c,_0x410d82=((_0x4f4a4e=_0x567a9e[_0x50fbed(0x233)])==null?void 0x0:_0x4f4a4e[_0x50fbed(0x499)])===_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x499)]&&_0x567a9e[_0x50fbed(0x233)][_0x50fbed(0x452)]===_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x452)]&&_0x567a9e[_0x50fbed(0x3f9)][_0x50fbed(0x1ab)]?_0x567a9e[_0x50fbed(0x3f9)]:[_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x421)]],_0x370ca8=this[_0x50fbed(0x3cb)](_0x4a32b0['elementData'][_0x50fbed(0x499)],_0x4a32b0['elementData'][_0x50fbed(0x452)],_0x410d82);this['_popupDisposable']&&this[_0x50fbed(0x22c)]===_0x370ca8||(this['_clearPopup'](),this[_0x50fbed(0x3c3)]=this['disposeWithMe'](this[_0x50fbed(0x313)][_0x50fbed(0x259)](_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x499)],_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x452)],_0x4a32b0[_0x50fbed(0x367)],{'componentKey':Kn,'direction':_0x50fbed(0x4b8),'offset':[0x0,0x8],..._0xb2492e?{'anchorBoundResolver':lr}:null,'extraProps':{'unitId':_0x4a32b0['elementData'][_0x50fbed(0x499)],'subUnitId':_0x4a32b0[_0x50fbed(0x43e)]['subUnitId'],'elementId':_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x421)],'scopeId':_0x1f1d4f[_0x50fbed(0x2f8)],'isRootNode':_0x1f1d4f[_0x50fbed(0x3e6)]===null,'left':_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x4b4)][_0x50fbed(0x357)][_0x50fbed(0x1ac)]??0x0,'top':_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x4b4)][_0x50fbed(0x357)][_0x50fbed(0x258)]??0x0,'shapeData':_0x4a32b0['elementData'][_0x50fbed(0x4b4)][_0x50fbed(0x48d)]===_0x2cde10['Shape']?_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x4b4)][_0x50fbed(0x26a)]:void 0x0,'layout':_0x3fe2f6==null?void 0x0:_0x3fe2f6[_0x50fbed(0x31a)],'incomingConnectorStyle':this[_0x50fbed(0x2bd)](_0x4a32b0[_0x50fbed(0x43e)]['unitId'],_0x4a32b0['elementData']['subUnitId'],_0x1f1d4f['structureScopeId'],_0x4a32b0['elementData'][_0x50fbed(0x421)])}})),this['_popupSelectionKey']=_0x370ca8);}[_0x2d31a4(0x3f8)](){const _0x366460=_0x2d31a4;var _0x40474d;let _0x2512f1=this[_0x366460(0x318)][_0x366460(0x276)](),_0x4dbdfc=_0x2512f1[_0x366460(0x233)],_0x54a6a8=_0x2512f1[_0x366460(0x330)]??_0x2512f1[_0x366460(0x3f9)][0x0];if(!_0x4dbdfc||!_0x54a6a8)return null;let _0x2d62b3=this[_0x366460(0x235)][_0x366460(0x4c8)](_0x4dbdfc[_0x366460(0x499)],_0x4dbdfc[_0x366460(0x452)],_0x54a6a8);if(!_0x2d62b3||!_0xd8e37e(_0x2d62b3[_0x366460(0x4b4)]))return null;let _0x524f7a=_0x1b247d(_0x4dbdfc[_0x366460(0x499)],_0x54a6a8),_0x593978=this[_0x366460(0x2d9)][_0x366460(0x37b)],_0x1034b2=((_0x40474d=_0x593978[_0x366460(0x4ba)])==null?void 0x0:_0x40474d[_0x366460(0x248)](_0x593978,_0x524f7a))??this[_0x366460(0x2d9)][_0x366460(0x37b)][_0x366460(0x1e8)](_0x524f7a);return _0x1034b2?{'object':_0x1034b2,'elementData':_0x2d62b3}:null;}[_0x2d31a4(0x472)](_0x9f376e){const _0x32e3c6=_0x2d31a4;var _0x2c1e25;if(!_0x9f376e)return null;let _0x66a447=_0x2913da(_0x9f376e['oKey']);if(!_0x66a447)return null;let _0x51fa17=this[_0x32e3c6(0x318)][_0x32e3c6(0x276)](),_0x4e7884=((_0x2c1e25=_0x51fa17[_0x32e3c6(0x233)])==null?void 0x0:_0x2c1e25['unitId'])===_0x66a447[_0x32e3c6(0x499)]?_0x51fa17['context'][_0x32e3c6(0x452)]:void 0x0;if(!_0x4e7884)return null;let _0x468051=this[_0x32e3c6(0x235)][_0x32e3c6(0x4c8)](_0x66a447[_0x32e3c6(0x499)],_0x4e7884,_0x66a447[_0x32e3c6(0x421)]);return _0x468051?{'object':_0x9f376e,'elementData':_0x468051}:null;}};ur=J([q(0x1,_0x4a13c4(_0x45c11c)),q(0x2,_0x4a13c4(_0x495947)),q(0x3,_0x4a13c4(_0x452a90)),q(0x4,_0x4a13c4(_0x16b84e)),q(0x5,_0x4a13c4(_0x17676c))],ur);const dr='board-mind-map-pending-insert-object',fr=_0x19c79d['preview'];function pr(_0x1b3b13,_0x211ef4){const _0x4b0342=_0x2d31a4;return(_0x1b3b13??[])['reduce']((_0x22596a,_0x430fda)=>(_0x22596a[_0x430fda['side']??_0x211ef4][_0x4b0342(0x228)](_0x430fda),_0x22596a),{'left':[],'right':[],'top':[],'bottom':[]});}function mr(_0x1dfabe){const _0x22d233=_0x2d31a4;return _0x1dfabe===_0x22d233(0x341)||_0x1dfabe===_0x22d233(0x45d)||_0x1dfabe===_0x22d233(0x453);}function hr(_0x1e8744){const _0x4a6e16=_0x2d31a4;return _0x1e8744===_0x4a6e16(0x338)||_0x1e8744===_0x4a6e16(0x25f);}function gr(_0x26aadd,_0x5e7bcf,_0x40e13d){const _0xd5b464=_0x2d31a4;return _0x40e13d===_0xd5b464(0x341)?'left':_0x40e13d===_0xd5b464(0x45d)?_0xd5b464(0x234):_0x26aadd[_0xd5b464(0x384)]===_0xd5b464(0x1ac)||_0x26aadd[_0xd5b464(0x384)]===_0xd5b464(0x234)?_0x26aadd[_0xd5b464(0x384)]:_0x5e7bcf%0x2==0x0?_0xd5b464(0x1ac):_0xd5b464(0x234);}function _r(_0x5081bb,_0x153b4d){const _0x3a5845=_0x2d31a4;return(_0x153b4d==null?void 0x0:_0x153b4d[_0x3a5845(0x47d)][_0x3a5845(0x20c)])??_0x5081bb??[];}var vr=class extends _0x3866b7{constructor(_0xeaf3d3=dr,_0x2c07bd){const _0x3ea436=_0x2d31a4;super(_0xeaf3d3),K(this,_0x3ea436(0x363),{'point':null,'children':[]}),this[_0x3ea436(0x244)]=!0x1,this[_0x3ea436(0x2cb)]=_0x4ea4f2[_0x3ea436(0x2ad)],this[_0x3ea436(0x2a6)](_0x2c07bd);}[_0x2d31a4(0x2a6)](_0x1092ce){const _0x32a91b=_0x2d31a4;this['_state']={...this[_0x32a91b(0x363)],..._0x1092ce},this[_0x32a91b(0x363)]['point']?this['show']():this[_0x32a91b(0x2c0)](),this['makeDirty'](!0x0);}[_0x2d31a4(0x3e3)](_0x5d444a){return!0x1;}[_0x2d31a4(0x2dd)](_0x8403d2,_0x546fa5){const _0x20a539=_0x2d31a4;let _0x3a8634=this[_0x20a539(0x363)][_0x20a539(0x463)];if(!_0x3a8634||!this[_0x20a539(0x1c0)])return this['makeDirty'](!0x1),this;let _0x1946ee=Number[_0x20a539(0x31d)](this['_state'][_0x20a539(0x439)])&&(this[_0x20a539(0x363)][_0x20a539(0x439)]??0x0)>0x0?this[_0x20a539(0x363)][_0x20a539(0x439)]:0x1,_0x4f12d9=_0x1b9954[_0x20a539(0x376)],_0x3a075f=_0x1b9954['rootHeight'],_0x453d95=_0x1b9954[_0x20a539(0x45e)],_0x3c5c9a=_0x1b9954[_0x20a539(0x468)],_0x4cc52a=_0x5242c3['horizontalGap'],_0x424723=_0x5242c3['siblingGap'],_0x101f10=this[_0x20a539(0x363)][_0x20a539(0x46d)]==='mindmap-vertical',_0x4aae8a=pr(this[_0x20a539(0x363)][_0x20a539(0x20c)],_0x101f10?_0x20a539(0x394):_0x20a539(0x234)),_0x32c320=_0x3a8634['x']-_0x4f12d9/0x2,_0x5e08b4=_0x3a8634['y']-_0x3a075f/0x2;if(_0x8403d2[_0x20a539(0x496)](),_0x8403d2[_0x20a539(0x4b5)]=X[_0x20a539(0x20a)],_0x8403d2[_0x20a539(0x2df)]=X['lineWidthScreen']/_0x1946ee,_0x8403d2[_0x20a539(0x2f5)]=X[_0x20a539(0x487)],hr(this[_0x20a539(0x363)]['structureKind'])){let _0x1380eb=_r(this[_0x20a539(0x363)]['children'],this[_0x20a539(0x363)]['blueprint']),_0x2385c6=this['_state']['structureKind']==='timeline-horizontal';if(_0x1380eb[_0x20a539(0x1ab)]>0x0){if(_0x8403d2[_0x20a539(0x416)](),_0x2385c6){let _0x4fb52d=_0x453d95,_0x580ae8=_0x3c5c9a,_0x324d52=_0x5242c3[_0x20a539(0x36f)],_0x42a7f3=_0x3a8634['y'],_0x22b3f9=_0x32c320+_0x4f12d9,_0x29e840=_0x3a8634['y']-_0x580ae8/0x2,_0x629fdf=_0x32c320+_0x4f12d9+_0x324d52;_0x8403d2[_0x20a539(0x392)](_0x22b3f9,_0x42a7f3),_0x8403d2['lineTo'](_0x629fdf,_0x42a7f3),_0x1380eb[_0x20a539(0x205)]((_0xc7e71d,_0x1eeba2)=>{const _0x3c1e96=_0x20a539;let _0x3a504b=_0x629fdf+_0x1eeba2*(_0x4fb52d+_0x324d52);if(_0x1eeba2>0x0){let _0x498809=_0x629fdf+(_0x1eeba2-0x1)*(_0x4fb52d+_0x324d52)+_0x4fb52d;_0x8403d2[_0x3c1e96(0x392)](_0x498809,_0x42a7f3),_0x8403d2[_0x3c1e96(0x32a)](_0x3a504b,_0x42a7f3);}_0x8403d2['moveTo'](_0x3a504b,_0x42a7f3),_0x8403d2[_0x3c1e96(0x32a)](_0x3a504b+_0x4fb52d,_0x42a7f3);}),_0x8403d2[_0x20a539(0x2ac)](),_0x1380eb[_0x20a539(0x205)]((_0x529cf8,_0x49f4bb)=>{const _0x2a2dda=_0x20a539;Z(_0x8403d2,_0x629fdf+_0x49f4bb*(_0x4fb52d+_0x324d52),_0x29e840,_0x4fb52d,_0x580ae8,X[_0x2a2dda(0x3a9)]),_0x8403d2[_0x2a2dda(0x2db)]=X['ghostFillColor'],_0x8403d2[_0x2a2dda(0x4ca)](),_0x8403d2[_0x2a2dda(0x2ac)]();}),_0x1380eb[_0x20a539(0x205)]((_0x3687cc,_0x102337)=>{const _0xa4fdec=_0x20a539;if(!(_0xa4fdec(0x20c)in _0x3687cc)||_0x3687cc[_0xa4fdec(0x20c)]['length']===0x0)return;let _0x712d1d=_0x629fdf+_0x102337*(_0x4fb52d+_0x324d52),_0x554333=_0x712d1d+_0x4fb52d/0x2,_0x3c0608=_0x3687cc[_0xa4fdec(0x384)]===_0xa4fdec(0x394)?_0xa4fdec(0x394):_0xa4fdec(0x258),_0x10f26e=_0x3687cc[_0xa4fdec(0x20c)]['slice'](0x0,0x2),_0x278866=_0x10f26e[_0xa4fdec(0x1ab)]*_0x580ae8+Math['max'](0x0,_0x10f26e[_0xa4fdec(0x1ab)]-0x1)*_0x424723,_0x6e2997=_0x712d1d+_0x4fb52d+_0x5242c3[_0xa4fdec(0x46b)],_0x27d7c3=_0x3c0608===_0xa4fdec(0x258)?_0x29e840-_0x4cc52a-_0x278866:_0x29e840+_0x580ae8+_0x4cc52a,_0x7bc0e6=_0x27d7c3+_0x278866/0x2;_0x8403d2['beginPath'](),_0x8403d2['moveTo'](_0x554333,_0x3c0608===_0xa4fdec(0x258)?_0x29e840:_0x29e840+_0x580ae8),_0x8403d2[_0xa4fdec(0x32a)](_0x554333,_0x7bc0e6),_0x8403d2[_0xa4fdec(0x32a)](_0x6e2997,_0x7bc0e6),_0x10f26e[_0xa4fdec(0x205)]((_0x4fe5f5,_0x2922c6)=>{const _0x553dc0=_0xa4fdec;let _0x462887=_0x27d7c3+_0x2922c6*(_0x580ae8+_0x424723)+_0x580ae8/0x2;_0x8403d2['moveTo'](_0x6e2997,_0x462887),_0x8403d2[_0x553dc0(0x32a)](_0x6e2997+_0x4fb52d,_0x462887);}),_0x8403d2[_0xa4fdec(0x2ac)](),_0x10f26e['forEach']((_0x5e9fe4,_0x3f8638)=>{const _0x49568a=_0xa4fdec;let _0x253e19=_0x27d7c3+_0x3f8638*(_0x580ae8+_0x424723);Z(_0x8403d2,_0x6e2997,_0x253e19,_0x4fb52d,_0x580ae8,X[_0x49568a(0x3a9)]),_0x8403d2['fillStyle']=X[_0x49568a(0x4c6)],_0x8403d2[_0x49568a(0x4ca)](),_0x8403d2[_0x49568a(0x2ac)]();});});}else{let _0x3ee79f=_0x3a8634['x'],_0x298a1b=_0x5e08b4+_0x3a075f,_0x540f86=_0x5242c3[_0x20a539(0x36f)],_0x5fec17=_0x5e08b4+_0x3a075f+_0x540f86,_0x4ad2c7=_0x5fec17+(_0x1380eb[_0x20a539(0x1ab)]-0x1)*(_0x3c5c9a+_0x540f86)+_0x3c5c9a/0x2;_0x8403d2[_0x20a539(0x392)](_0x3ee79f,_0x298a1b),_0x8403d2[_0x20a539(0x32a)](_0x3ee79f,_0x4ad2c7),_0x1380eb[_0x20a539(0x205)]((_0xc96c5,_0x5c003c)=>{const _0x168e07=_0x20a539;let _0x11effe=_0x5fec17+_0x5c003c*(_0x3c5c9a+_0x540f86)+_0x3c5c9a/0x2,_0x2c4f42=_0xc96c5['side']===_0x168e07(0x234)?_0x168e07(0x234):_0x168e07(0x1ac),_0x477d9d=_0x2c4f42===_0x168e07(0x234)?_0x3ee79f+_0x5242c3[_0x168e07(0x46b)]:_0x3ee79f-_0x5242c3['branchGap']-_0x453d95,_0x5ce621=_0x2c4f42===_0x168e07(0x234)?_0x477d9d:_0x477d9d+_0x453d95;_0x8403d2[_0x168e07(0x392)](_0x3ee79f,_0x11effe),_0x8403d2[_0x168e07(0x32a)](_0x5ce621,_0x11effe);}),_0x8403d2['stroke'](),_0x1380eb[_0x20a539(0x205)]((_0x56451e,_0x506397)=>{const _0x32e31a=_0x20a539;let _0x4ce2fa=_0x5fec17+_0x506397*(_0x3c5c9a+_0x540f86);Z(_0x8403d2,(_0x56451e[_0x32e31a(0x384)]==='right'?_0x32e31a(0x234):_0x32e31a(0x1ac))==_0x32e31a(0x234)?_0x3ee79f+_0x5242c3['branchGap']:_0x3ee79f-_0x5242c3[_0x32e31a(0x46b)]-_0x453d95,_0x4ce2fa,_0x453d95,_0x3c5c9a,X[_0x32e31a(0x3a9)]),_0x8403d2[_0x32e31a(0x2db)]=X[_0x32e31a(0x4c6)],_0x8403d2[_0x32e31a(0x4ca)](),_0x8403d2['stroke']();}),_0x1380eb['forEach']((_0x5ea9a9,_0x42a9aa)=>{const _0x13d3fd=_0x20a539;if(!(_0x13d3fd(0x20c)in _0x5ea9a9)||_0x5ea9a9['children']['length']===0x0)return;let _0x1c23bf=_0x5fec17+_0x42a9aa*(_0x3c5c9a+_0x540f86)+_0x3c5c9a/0x2,_0x2823a9=_0x5ea9a9['side']==='right'?_0x13d3fd(0x234):_0x13d3fd(0x1ac),_0x4fe473=_0x5ea9a9['children'][_0x13d3fd(0x471)](0x0,0x2),_0x18c247=_0x4fe473[_0x13d3fd(0x1ab)]*_0x3c5c9a+Math[_0x13d3fd(0x34f)](0x0,_0x4fe473[_0x13d3fd(0x1ab)]-0x1)*_0x424723,_0x5a330d=_0x2823a9===_0x13d3fd(0x234)?_0x3ee79f+_0x5242c3[_0x13d3fd(0x46b)]:_0x3ee79f-_0x5242c3['branchGap']-_0x453d95,_0x2cf23a=_0x2823a9===_0x13d3fd(0x234)?_0x5a330d+_0x453d95+_0x4cc52a:_0x5a330d-_0x4cc52a-_0x453d95,_0x22dc8a=_0x1c23bf-_0x18c247/0x2,_0x46eddd=_0x2823a9===_0x13d3fd(0x234)?_0x5a330d+_0x453d95:_0x5a330d,_0x3480ec=_0x2823a9==='right'?_0x2cf23a:_0x2cf23a+_0x453d95;_0x8403d2[_0x13d3fd(0x416)](),_0x8403d2[_0x13d3fd(0x392)](_0x46eddd,_0x1c23bf),_0x8403d2[_0x13d3fd(0x32a)](_0x3480ec,_0x1c23bf),_0x4fe473[_0x13d3fd(0x205)]((_0x40aa0b,_0x5c7b65)=>{const _0x37d602=_0x13d3fd;let _0x3667ef=_0x22dc8a+_0x5c7b65*(_0x3c5c9a+_0x424723)+_0x3c5c9a/0x2;_0x8403d2[_0x37d602(0x392)](_0x3480ec,_0x3667ef),_0x8403d2[_0x37d602(0x32a)](_0x2823a9===_0x37d602(0x234)?_0x2cf23a+_0x453d95:_0x2cf23a,_0x3667ef);}),_0x8403d2[_0x13d3fd(0x2ac)](),_0x4fe473[_0x13d3fd(0x205)]((_0x40bc19,_0x5ed58f)=>{const _0x320134=_0x13d3fd;let _0xf3af1f=_0x22dc8a+_0x5ed58f*(_0x3c5c9a+_0x424723);Z(_0x8403d2,_0x2cf23a,_0xf3af1f,_0x453d95,_0x3c5c9a,X[_0x320134(0x3a9)]),_0x8403d2['fillStyle']=X['ghostFillColor'],_0x8403d2[_0x320134(0x4ca)](),_0x8403d2[_0x320134(0x2ac)]();});});}}}else{if(mr(this[_0x20a539(0x363)]['structureKind'])){let _0x10c97e=this['_state'][_0x20a539(0x20c)]??[],_0x5a96b8=_0x5e08b4+_0x3a075f,_0x170173=_0x5a96b8+_0x4cc52a,_0x1b3287=_0x3a8634['x'];if(_0x10c97e['length']>0x0){let _0x96be1=_0x170173+(_0x10c97e['length']-0x1)*(_0x3c5c9a+_0x424723)+_0x3c5c9a/0x2;_0x8403d2[_0x20a539(0x416)](),_0x8403d2[_0x20a539(0x392)](_0x1b3287,_0x5a96b8),_0x8403d2['lineTo'](_0x1b3287,_0x96be1),_0x10c97e['forEach']((_0x5d4a5d,_0x2a1693)=>{const _0x5b4616=_0x20a539;let _0x2a74f5=gr(_0x5d4a5d,_0x2a1693,this['_state'][_0x5b4616(0x46d)]),_0x373079=_0x170173+_0x2a1693*(_0x3c5c9a+_0x424723),_0x38b844=_0x2a74f5===_0x5b4616(0x234)?_0x1b3287+_0x4cc52a:_0x1b3287-_0x4cc52a-_0x453d95,_0x1f2c57=_0x373079+_0x3c5c9a/0x2;_0x8403d2[_0x5b4616(0x392)](_0x1b3287,_0x1f2c57),_0x8403d2[_0x5b4616(0x32a)](_0x2a74f5===_0x5b4616(0x234)?_0x38b844:_0x38b844+_0x453d95,_0x1f2c57);}),_0x8403d2['stroke'](),_0x10c97e['forEach']((_0xf8b4,_0x1277cd)=>{const _0x4f4488=_0x20a539;let _0x406152=gr(_0xf8b4,_0x1277cd,this[_0x4f4488(0x363)][_0x4f4488(0x46d)]),_0xc01e7a=_0x170173+_0x1277cd*(_0x3c5c9a+_0x424723);Z(_0x8403d2,_0x406152==='right'?_0x1b3287+_0x4cc52a:_0x1b3287-_0x4cc52a-_0x453d95,_0xc01e7a,_0x453d95,_0x3c5c9a,X[_0x4f4488(0x3a9)]),_0x8403d2['fillStyle']=X[_0x4f4488(0x4c6)],_0x8403d2[_0x4f4488(0x4ca)](),_0x8403d2[_0x4f4488(0x2ac)]();});}}else _0x101f10&&['top','bottom'][_0x20a539(0x205)](_0x5ee3f1=>{const _0x5222b6=_0x20a539;let _0x35f1d7=_0x4aae8a[_0x5ee3f1];if(_0x35f1d7['length']===0x0)return;let _0x34d327=_0x35f1d7['length']*_0x453d95+Math[_0x5222b6(0x34f)](0x0,_0x35f1d7[_0x5222b6(0x1ab)]-0x1)*_0x424723,_0xf6eefd=_0x3a8634['x']-_0x34d327/0x2,_0x301df5=_0x5ee3f1===_0x5222b6(0x394)?_0x5e08b4+_0x3a075f:_0x5e08b4,_0x1dd14f=_0x5ee3f1===_0x5222b6(0x394)?_0x301df5+_0x5242c3[_0x5222b6(0x46b)]:_0x301df5-_0x5242c3['branchGap'],_0x454c25=_0x5ee3f1===_0x5222b6(0x394)?_0x5e08b4+_0x3a075f+_0x4cc52a:_0x5e08b4-_0x4cc52a-_0x3c5c9a;_0x8403d2['beginPath'](),_0x8403d2[_0x5222b6(0x392)](_0x3a8634['x'],_0x301df5),_0x8403d2[_0x5222b6(0x32a)](_0x3a8634['x'],_0x1dd14f),_0x35f1d7[_0x5222b6(0x1ab)]>0x1&&(_0x8403d2['moveTo'](_0xf6eefd+_0x453d95/0x2,_0x1dd14f),_0x8403d2[_0x5222b6(0x32a)](_0xf6eefd+_0x34d327-_0x453d95/0x2,_0x1dd14f)),_0x35f1d7['forEach']((_0x51ef13,_0x5f5320)=>{const _0x524f01=_0x5222b6;let _0x306351=_0xf6eefd+_0x5f5320*(_0x453d95+_0x424723)+_0x453d95/0x2;_0x8403d2[_0x524f01(0x392)](_0x306351,_0x1dd14f),_0x8403d2[_0x524f01(0x32a)](_0x306351,_0x5ee3f1===_0x524f01(0x394)?_0x454c25:_0x454c25+_0x3c5c9a);}),_0x8403d2[_0x5222b6(0x2ac)](),_0x35f1d7['forEach']((_0x37251d,_0xa796df)=>{const _0x4a20cc=_0x5222b6;Z(_0x8403d2,_0xf6eefd+_0xa796df*(_0x453d95+_0x424723),_0x454c25,_0x453d95,_0x3c5c9a,X[_0x4a20cc(0x3a9)]),_0x8403d2['fillStyle']=X['ghostFillColor'],_0x8403d2['fill'](),_0x8403d2[_0x4a20cc(0x2ac)]();});});}(_0x101f10||mr(this[_0x20a539(0x363)][_0x20a539(0x46d)])||hr(this[_0x20a539(0x363)][_0x20a539(0x46d)])?[]:[_0x20a539(0x1ac),_0x20a539(0x234)])[_0x20a539(0x205)](_0x481d8c=>{const _0x467328=_0x20a539;let _0x4cddce=_0x4aae8a[_0x481d8c];if(_0x4cddce['length']===0x0)return;let _0x20b330=_0x4cddce[_0x467328(0x1ab)]*_0x3c5c9a+Math[_0x467328(0x34f)](0x0,_0x4cddce[_0x467328(0x1ab)]-0x1)*_0x424723,_0x5a850e=_0x3a8634['y']-_0x20b330/0x2,_0x5c6794=_0x481d8c===_0x467328(0x234)?_0x32c320+_0x4f12d9:_0x32c320,_0x15dfeb=_0x481d8c==='right'?_0x5c6794+_0x5242c3[_0x467328(0x46b)]:_0x5c6794-_0x5242c3[_0x467328(0x46b)],_0x405608=_0x481d8c===_0x467328(0x234)?_0x32c320+_0x4f12d9+_0x4cc52a:_0x32c320-_0x4cc52a-_0x453d95;_0x8403d2['beginPath'](),_0x8403d2[_0x467328(0x392)](_0x5c6794,_0x3a8634['y']),_0x8403d2['lineTo'](_0x15dfeb,_0x3a8634['y']),_0x4cddce['length']>0x1&&(_0x8403d2['moveTo'](_0x15dfeb,_0x5a850e+_0x3c5c9a/0x2),_0x8403d2[_0x467328(0x32a)](_0x15dfeb,_0x5a850e+_0x20b330-_0x3c5c9a/0x2)),_0x4cddce[_0x467328(0x205)]((_0x4edee6,_0x4976ec)=>{const _0x47cd95=_0x467328;let _0x581e7d=_0x5a850e+_0x4976ec*(_0x3c5c9a+_0x424723)+_0x3c5c9a/0x2;_0x8403d2['moveTo'](_0x15dfeb,_0x581e7d),_0x8403d2[_0x47cd95(0x32a)](_0x481d8c===_0x47cd95(0x234)?_0x405608:_0x405608+_0x453d95,_0x581e7d);}),_0x8403d2[_0x467328(0x2ac)](),_0x4cddce[_0x467328(0x205)]((_0x15dd09,_0x526f6b)=>{const _0x24e52=_0x467328;let _0x2cc465=_0x5a850e+_0x526f6b*(_0x3c5c9a+_0x424723);Z(_0x8403d2,_0x405608,_0x2cc465,_0x453d95,_0x3c5c9a,X['ghostRadius']),_0x8403d2[_0x24e52(0x2db)]=X['ghostFillColor'],_0x8403d2[_0x24e52(0x4ca)](),_0x8403d2[_0x24e52(0x2ac)]();});}),Z(_0x8403d2,_0x32c320,_0x5e08b4,_0x4f12d9,_0x3a075f,X[_0x20a539(0x48f)]),_0x8403d2[_0x20a539(0x2db)]=X[_0x20a539(0x487)],_0x8403d2[_0x20a539(0x4ca)](),_0x8403d2[_0x20a539(0x2ac)](),_0x8403d2[_0x20a539(0x2db)]=X[_0x20a539(0x488)],_0x8403d2[_0x20a539(0x27e)]=sn(X[_0x20a539(0x2da)],X[_0x20a539(0x4ae)],_0x1946ee),_0x8403d2[_0x20a539(0x410)]='center',_0x8403d2['textBaseline']=_0x20a539(0x3d6);let _0x902b2d=X[_0x20a539(0x390)]/_0x1946ee;return _0x8403d2[_0x20a539(0x238)](_0x355d17,_0x3a8634['x'],_0x3a8634['y'],Math['max'](0x1,_0x4f12d9-_0x902b2d*0x2)),_0x8403d2['restore'](),this[_0x20a539(0x48e)](!0x1),this;}};const yr={'children':[{'text':_0x355d17,'orderKey':_0x5a5595(0x0),'side':_0x2d31a4(0x234)},{'text':_0x355d17,'orderKey':_0x5a5595(0x1),'side':_0x2d31a4(0x234)},{'text':_0x355d17,'orderKey':_0x5a5595(0x2),'side':_0x2d31a4(0x234)}]};var br=class extends _0x13ec99{constructor(..._0x1423d1){super(..._0x1423d1),K(this,'_template',yr);}[_0x2d31a4(0x3b5)](_0x4216ce){const _0x39670e=_0x2d31a4;var _0x36a37f;let _0x507a31=(_0x4216ce==null?void 0x0:_0x4216ce[_0x39670e(0x20c)])??(_0x4216ce==null||(_0x36a37f=_0x4216ce['blueprint'])==null?void 0x0:_0x36a37f[_0x39670e(0x47d)][_0x39670e(0x20c)]);this[_0x39670e(0x1ca)]={'rootText':_0x4216ce==null?void 0x0:_0x4216ce['rootText'],'structureKind':_0x4216ce==null?void 0x0:_0x4216ce[_0x39670e(0x46d)],'branchLineType':_0x4216ce==null?void 0x0:_0x4216ce[_0x39670e(0x365)],'children':this[_0x39670e(0x428)](_0x507a31,_0x4216ce==null?void 0x0:_0x4216ce[_0x39670e(0x46d)]),'blueprint':_0x4216ce!=null&&_0x4216ce['blueprint']?this[_0x39670e(0x2c6)](_0x4216ce[_0x39670e(0x1d4)]):void 0x0};}[_0x2d31a4(0x2f4)](){const _0x390876=_0x2d31a4;var _0x4f1847;return{'rootText':this[_0x390876(0x1ca)]['rootText'],'structureKind':this[_0x390876(0x1ca)][_0x390876(0x46d)],'branchLineType':this[_0x390876(0x1ca)]['branchLineType'],'children':(_0x4f1847=this[_0x390876(0x1ca)][_0x390876(0x20c)])==null?void 0x0:_0x4f1847[_0x390876(0x461)](_0x55d47e=>({..._0x55d47e})),'blueprint':this[_0x390876(0x1ca)][_0x390876(0x1d4)]?this['_cloneBlueprint'](this[_0x390876(0x1ca)][_0x390876(0x1d4)]):void 0x0};}[_0x2d31a4(0x2c6)](_0x197631){const _0x24bf0b=_0x2d31a4;return{'title':_0x197631[_0x24bf0b(0x28f)],'root':this['_cloneBlueprintNode'](_0x197631[_0x24bf0b(0x47d)])};}['_cloneBlueprintNode'](_0x30f3c5){const _0x59353a=_0x2d31a4;return{..._0x30f3c5,'foreignAttributes':_0x30f3c5['foreignAttributes']?{..._0x30f3c5[_0x59353a(0x2f0)]}:void 0x0,'children':_0x30f3c5[_0x59353a(0x20c)]['map'](_0x44ab59=>this[_0x59353a(0x1ea)](_0x44ab59))};}[_0x2d31a4(0x428)](_0x33116f,_0x1a6911){const _0x3a510d=_0x2d31a4;let _0x36671f=!_0x33116f,_0x4c7011=_0x33116f??yr[_0x3a510d(0x20c)];return _0x4c7011==null?void 0x0:_0x4c7011[_0x3a510d(0x461)]((_0x1a1871,_0x59e36f)=>({..._0x1a1871,'text':_0x1a1871[_0x3a510d(0x2be)]??_0x355d17,'side':this[_0x3a510d(0x3bc)](_0x1a1871[_0x3a510d(0x384)],_0x59e36f,_0x1a6911,_0x36671f)}));}[_0x2d31a4(0x3bc)](_0x3bc31c,_0x2b761a,_0x334a6f,_0x5a1c91){const _0x4ccb5d=_0x2d31a4;return _0x334a6f===_0x4ccb5d(0x433)?_0x5a1c91?'bottom':_0x3bc31c??'bottom':_0x334a6f==='tree-left'?_0x5a1c91?'left':_0x3bc31c??_0x4ccb5d(0x1ac):_0x334a6f===_0x4ccb5d(0x45d)?_0x5a1c91?_0x4ccb5d(0x234):_0x3bc31c??_0x4ccb5d(0x234):_0x334a6f===_0x4ccb5d(0x453)?_0x5a1c91?_0x2b761a%0x2==0x0?'left':_0x4ccb5d(0x234):_0x3bc31c??(_0x2b761a%0x2==0x0?_0x4ccb5d(0x1ac):_0x4ccb5d(0x234)):_0x334a6f===_0x4ccb5d(0x338)?_0x5a1c91?_0x2b761a%0x2==0x0?'top':_0x4ccb5d(0x394):_0x3bc31c??(_0x2b761a%0x2==0x0?_0x4ccb5d(0x258):_0x4ccb5d(0x394)):_0x334a6f===_0x4ccb5d(0x25f)?_0x5a1c91?_0x2b761a%0x2==0x0?_0x4ccb5d(0x1ac):'right':_0x3bc31c??(_0x2b761a%0x2==0x0?'left':'right'):_0x3bc31c;}};function xr(_0x29e7f9,_0x19d7c3){const _0x578982=_0x2d31a4;let _0x24bf75=Number[_0x578982(0x31d)](_0x19d7c3[_0x578982(0x439)])&&_0x19d7c3[_0x578982(0x439)]>0x0?_0x19d7c3['zoomRatio']:0x1;return{'x':Math['round']((_0x29e7f9[_0x578982(0x4aa)]-_0x19d7c3[_0x578982(0x293)]['x'])/_0x24bf75),'y':Math['round']((_0x29e7f9[_0x578982(0x492)]-_0x19d7c3['panOffset']['y'])/_0x24bf75)};}function Sr(_0x832e90){const _0x5bf42d=_0x2d31a4;var _0x8fe179;if(_0x832e90!=null&&_0x832e90['dispose']){_0x832e90[_0x5bf42d(0x262)]();return;}_0x832e90==null||(_0x8fe179=_0x832e90['unsubscribe'])==null||_0x8fe179['call'](_0x832e90);}function _0x4547(_0x42fea9,_0x46e477){_0x42fea9=_0x42fea9-0x1aa;const _0x3b8f0a=_0x3b8f();let _0x4547e7=_0x3b8f0a[_0x42fea9];return _0x4547e7;}function Cr(_0x1b896e){const _0xb86f6c=_0x2d31a4;var _0x2c21a3;return _0x1b896e[_0xb86f6c(0x41c)]===_0x1210f4[_0xb86f6c(0x32e)]&&((_0x2c21a3=_0x1b896e[_0xb86f6c(0x20f)])==null?void 0x0:_0x2c21a3['type'])===_0x1210f4[_0xb86f6c(0x32e)];}let wr=class extends _0x9932d8{constructor(_0x44f0b1,_0x387532,_0x263e1f,_0x37a489,_0x189adb,_0x19c6f6,_0x2db467){const _0x32b63b=_0x2d31a4;super(),this[_0x32b63b(0x2d9)]=_0x44f0b1,this['_instanceSrv']=_0x387532,this[_0x32b63b(0x39d)]=_0x263e1f,this['_commandService']=_0x37a489,this['_insertStateService']=_0x189adb,this[_0x32b63b(0x318)]=_0x19c6f6,this[_0x32b63b(0x395)]=_0x2db467,K(this,_0x32b63b(0x3d1),null),K(this,'_lastPoint',null),this[_0x32b63b(0x430)]();}[_0x2d31a4(0x430)](){const _0x1237be=_0x2d31a4;var _0x205c78;let {scene:_0x1f503e,unitId:_0x486724}=this['_renderContext'],_0x1bc705=this[_0x1237be(0x3d8)]['getUnit'](_0x486724,_0x4468f4[_0x1237be(0x3be)]);if(!_0x1bc705)return;let _0x545b0f=(_0x205c78=_0x1f503e[_0x1237be(0x396)])==null?void 0x0:_0x205c78[_0x1237be(0x4cb)]({'priority':0x4,'next':([_0x52c2ad,_0x528e52])=>this[_0x1237be(0x344)](_0x52c2ad,_0x528e52)}),_0x36bb0f=_0x1f503e[_0x1237be(0x1b9)]['subscribeEvent']({'priority':0x4,'next':([_0x8a4c16,_0x2ef1de])=>this[_0x1237be(0x497)](_0x1bc705,_0x8a4c16,_0x2ef1de)});this[_0x1237be(0x42f)](_0x5a6bc0(()=>Sr(_0x545b0f))),this[_0x1237be(0x42f)](_0x5a6bc0(()=>Sr(_0x36bb0f)));let _0x1551b6=this[_0x1237be(0x39d)][_0x1237be(0x1b8)]['subscribe'](()=>this[_0x1237be(0x3d0)]());this[_0x1237be(0x42f)](_0x5a6bc0(()=>Sr(_0x1551b6))),this['disposeWithMe'](_0x5a6bc0(()=>{const _0x5c38da=_0x1237be;this[_0x5c38da(0x21f)]();})),this['_syncPreviewObject']();}[_0x2d31a4(0x3d0)](){const _0x3a8fd1=_0x2d31a4;var _0x4e90c6,_0x2f3a3c;let _0x4b783d=this['_stateService'][_0x3a8fd1(0x41b)]();if(!Cr(_0x4b783d)){this[_0x3a8fd1(0x21f)]();return;}let _0x13e43d=this[_0x3a8fd1(0x237)](),_0x1ed78c=this['_insertStateService'][_0x3a8fd1(0x2f4)]();_0x13e43d['updateState']({'point':this[_0x3a8fd1(0x2b3)],'structureKind':_0x1ed78c['structureKind'],'children':_0x1ed78c[_0x3a8fd1(0x20c)],'blueprint':_0x1ed78c[_0x3a8fd1(0x1d4)],'zoomRatio':_0x4b783d[_0x3a8fd1(0x439)]}),(_0x4e90c6=(_0x2f3a3c=this[_0x3a8fd1(0x2d9)][_0x3a8fd1(0x37b)])[_0x3a8fd1(0x48e)])==null||_0x4e90c6[_0x3a8fd1(0x248)](_0x2f3a3c,!0x0);}[_0x2d31a4(0x237)](){const _0x310fcd=_0x2d31a4;var _0x5262af,_0x5e9802;if(this[_0x310fcd(0x3d1)])return this[_0x310fcd(0x3d1)];let _0x122380=this[_0x310fcd(0x2d3)][_0x310fcd(0x2f4)](),_0x695e40=new vr(dr,{'point':this['_lastPoint'],'structureKind':_0x122380['structureKind'],'children':_0x122380[_0x310fcd(0x20c)],'blueprint':_0x122380[_0x310fcd(0x1d4)],'zoomRatio':this['_stateService'][_0x310fcd(0x41b)]()[_0x310fcd(0x439)]});return this[_0x310fcd(0x3d1)]=_0x695e40,(_0x5262af=(_0x5e9802=this[_0x310fcd(0x2d9)]['scene'])['addObject'])==null||_0x5262af[_0x310fcd(0x248)](_0x5e9802,_0x695e40,fr),_0x695e40;}[_0x2d31a4(0x21f)](){const _0x4bfa0b=_0x2d31a4;var _0x559f12,_0x12f94a,_0x439d92,_0x188d7e;if(!this[_0x4bfa0b(0x3d1)]){this[_0x4bfa0b(0x2b3)]=null;return;}(_0x559f12=(_0x12f94a=this[_0x4bfa0b(0x2d9)][_0x4bfa0b(0x37b)])[_0x4bfa0b(0x432)])==null||_0x559f12[_0x4bfa0b(0x248)](_0x12f94a,[this[_0x4bfa0b(0x3d1)]]),this[_0x4bfa0b(0x3d1)]=null,this[_0x4bfa0b(0x2b3)]=null,(_0x439d92=(_0x188d7e=this[_0x4bfa0b(0x2d9)][_0x4bfa0b(0x37b)])[_0x4bfa0b(0x48e)])==null||_0x439d92[_0x4bfa0b(0x248)](_0x188d7e,!0x0);}[_0x2d31a4(0x252)](_0x5b762f){const _0x19827a=_0x2d31a4;let _0x2b709e=this[_0x19827a(0x39d)][_0x19827a(0x41b)]();return xr(_0x5b762f,{'panOffset':_0x2b709e[_0x19827a(0x42b)],'zoomRatio':_0x2b709e[_0x19827a(0x439)]});}[_0x2d31a4(0x311)](_0x5bb0b9){const _0x5a4445=_0x2d31a4;return{'left':Math[_0x5a4445(0x43c)](_0x5bb0b9['x']-_0x1b9954[_0x5a4445(0x376)]/0x2),'top':Math[_0x5a4445(0x43c)](_0x5bb0b9['y']-_0x1b9954[_0x5a4445(0x1f5)]/0x2)};}[_0x2d31a4(0x344)](_0x4e0fa4,_0x357286){const _0x4ce414=_0x2d31a4;Cr(this[_0x4ce414(0x39d)][_0x4ce414(0x41b)]())&&(this['_lastPoint']=this[_0x4ce414(0x252)](_0x4e0fa4),this[_0x4ce414(0x3d0)](),_0x357286[_0x4ce414(0x1c4)]());}async[_0x2d31a4(0x497)](_0x46b632,_0x4f394e,_0x123c95){const _0xe5d376=_0x2d31a4;let _0x1cdb1b=await this[_0xe5d376(0x345)](_0x46b632,_0x4f394e,_0x123c95);if(!_0x1cdb1b)return;let _0x28cf88={'unitId':this['_renderContext']['unitId'],'subUnitId':_0x1cdb1b['subUnitId']};this['_boardTextEditingService'][_0xe5d376(0x283)](),this[_0xe5d376(0x395)]['setEditing']({..._0x28cf88,'shapeId':_0x1cdb1b['rootNodeId'],'shapeKey':_0x1b247d(_0x28cf88['unitId'],_0x1cdb1b['rootNodeId']),'visible':!0x0});}async[_0x2d31a4(0x345)](_0x3dead1,_0x24cdaa,_0x24a0ac){const _0x4cf9d8=_0x2d31a4;var _0x1d913;let _0x327d77=this[_0x4cf9d8(0x39d)][_0x4cf9d8(0x41b)](),_0x45d206=_0x24cdaa['button']??0x0;if(!Cr(_0x327d77)||_0x45d206!==0x0)return null;let _0xf4ec8e=this['_getPointFromEvent'](_0x24cdaa),_0x1a669a=this[_0x4cf9d8(0x311)](_0xf4ec8e),_0x1ca803=this[_0x4cf9d8(0x2d3)][_0x4cf9d8(0x2f4)](),_0x133e38=_0x75cb4(0x6),_0x16c7e9=_0x3dead1[_0x4cf9d8(0x4a9)](),_0x2ad7c6=this[_0x4cf9d8(0x2a3)][_0x4cf9d8(0x38b)](_0x2bec0c['id'],{'unitId':this['_renderContext'][_0x4cf9d8(0x499)],'subUnitId':_0x16c7e9,'left':_0x1a669a[_0x4cf9d8(0x1ac)],'top':_0x1a669a[_0x4cf9d8(0x258)],'rootNodeId':_0x133e38,'rootText':_0x1ca803['rootText'],'structureKind':_0x1ca803['structureKind'],'branchLineType':_0x1ca803[_0x4cf9d8(0x365)],'children':_0x1ca803['children'],'blueprint':_0x1ca803[_0x4cf9d8(0x1d4)]});if(this[_0x4cf9d8(0x39d)][_0x4cf9d8(0x371)](_0x1210f4['Select']),_0x24a0ac[_0x4cf9d8(0x1c4)](),(_0x1d913=_0x24cdaa[_0x4cf9d8(0x2f2)])==null||_0x1d913['call'](_0x24cdaa),!await _0x2ad7c6||this[_0x4cf9d8(0x22f)])return null;let _0x5e985a={'unitId':this[_0x4cf9d8(0x2d9)]['unitId'],'subUnitId':_0x16c7e9};return this[_0x4cf9d8(0x318)]['selectElements'](_0x5e985a,[_0x133e38],_0x133e38),{'rootNodeId':_0x133e38,'subUnitId':_0x16c7e9};}};wr=J([q(0x1,_0x28c364),q(0x2,_0x18a088),q(0x3,_0x2a0a40),q(0x4,_0x4a13c4(br)),q(0x5,_0x452a90),q(0x6,_0x4a13c4(_0x16b84e))],wr);var Tr=class extends _0x13ec99{constructor(..._0x4f0402){const _0x583ae1=_0x2d31a4;super(..._0x4f0402),K(this,_0x583ae1(0x417),new _0x93fc85()),K(this,'refresh$',this[_0x583ae1(0x417)]['asObservable']());}[_0x2d31a4(0x45f)](_0x342856){const _0x4a56fc=_0x2d31a4;this[_0x4a56fc(0x417)][_0x4a56fc(0x250)](_0x342856);}['dispose'](){const _0x447791=_0x2d31a4;this[_0x447791(0x417)][_0x447791(0x46e)](),super[_0x447791(0x262)]();}};function Er(_0x245485){const _0x2bb8ab=_0x2d31a4;return typeof _0x245485=='number'&&Number[_0x2bb8ab(0x31d)](_0x245485)&&_0x245485>0x0;}function Dr(_0x39cd29,_0x483751,_0x3180c5){const _0x1c0d8d=_0x2d31a4;let _0x29261e=_0x39cd29[_0x483751],_0x57b1ed=_0xd8e37e(_0x29261e==null?void 0x0:_0x29261e['element']);if(!_0x29261e||!_0x57b1ed)return null;let _0x4bd37a=_0x824281(_0x29261e,_0x3180c5);if(!_0x4bd37a)return null;let _0x215a54=_0x29261e[_0x1c0d8d(0x357)]??_0x29261e['element'][_0x1c0d8d(0x357)],_0x453f6f={..._0x39cd29,[_0x483751]:{..._0x29261e,'transform':{..._0x215a54,'width':_0x4bd37a['width'],'height':_0x4bd37a['height']},'element':{..._0x29261e[_0x1c0d8d(0x4b4)],'transform':{..._0x29261e['element'][_0x1c0d8d(0x357)],'width':_0x4bd37a[_0x1c0d8d(0x35d)],'height':_0x4bd37a[_0x1c0d8d(0x41e)]}}}};return _0x278ec5(_0x453f6f,_0x57b1ed[_0x1c0d8d(0x2f8)]);}let Or=class extends _0x9932d8{constructor(_0x3fb011,_0xf9bc67,_0x36f8ac,_0x521e7c,_0x47b68c,_0x4208dd){const _0x9e2638=_0x2d31a4;super(),this['_renderContext']=_0x3fb011,this[_0x9e2638(0x30d)]=_0xf9bc67,this[_0x9e2638(0x235)]=_0x36f8ac,this[_0x9e2638(0x4b2)]=_0x521e7c,this['_previewRefreshService']=_0x47b68c,this['_commandService']=_0x4208dd,K(this,_0x9e2638(0x1f1),null),K(this,_0x9e2638(0x49e),{'match':_0x16b3ad=>_0x16b3ad[_0x9e2638(0x499)]===this[_0x9e2638(0x2d9)][_0x9e2638(0x499)]&&!!_0xd8e37e(_0x16b3ad['element']),'resolveHostSize':_0x204c9e=>this[_0x9e2638(0x403)](_0x204c9e),'previewHostSize':_0x401f38=>this[_0x9e2638(0x42e)](_0x401f38),'updateHostSize':_0x15ac31=>this[_0x9e2638(0x33a)](_0x15ac31),'updateShapeText':_0x3d5faf=>this['_updateShapeText'](_0x3d5faf)}),this[_0x9e2638(0x42f)](this[_0x9e2638(0x30d)]['registerProvider'](this[_0x9e2638(0x49e)])),this['_initEditingRestore'](),this[_0x9e2638(0x42f)](_0x5a6bc0(()=>this[_0x9e2638(0x45a)]()));}[_0x2d31a4(0x33a)](_0x328c15){const _0x511da8=_0x2d31a4;return this[_0x511da8(0x42e)](_0x328c15);}['_updateShapeText'](_0x2f40f0){const _0x2fc1cd=_0x2d31a4;let _0x2ba175=_0x2f40f0['params'][_0x2fc1cd(0x2e8)]?this[_0x2fc1cd(0x403)]({'elementData':_0x2f40f0[_0x2fc1cd(0x43e)],'params':_0x2f40f0[_0x2fc1cd(0x49d)][_0x2fc1cd(0x2e8)]}):null,_0x950dea=_0x2f40f0[_0x2fc1cd(0x43e)][_0x2fc1cd(0x357)]??_0x2f40f0[_0x2fc1cd(0x43e)]['element'][_0x2fc1cd(0x357)];return(!_0x2ba175||_0x2ba175[_0x2fc1cd(0x35d)]===_0x950dea[_0x2fc1cd(0x35d)]&&_0x2ba175[_0x2fc1cd(0x41e)]===_0x950dea[_0x2fc1cd(0x41e)])&&_0x216b42(_0x2f40f0[_0x2fc1cd(0x49d)][_0x2fc1cd(0x29d)],_0x2f40f0[_0x2fc1cd(0x49d)][_0x2fc1cd(0x30b)])?!0x0:this['_commandService'][_0x2fc1cd(0x2e6)](_0x3a4e24['id'],{'unitId':_0x2f40f0[_0x2fc1cd(0x49d)][_0x2fc1cd(0x499)],'subUnitId':_0x2f40f0['params'][_0x2fc1cd(0x452)],'nodeId':_0x2f40f0[_0x2fc1cd(0x49d)][_0x2fc1cd(0x3c9)],'shapeText':_0x2f40f0['params'][_0x2fc1cd(0x29d)],..._0x2ba175?{'hostSize':{'width':_0x2ba175[_0x2fc1cd(0x35d)],'height':_0x2ba175[_0x2fc1cd(0x41e)]}}:null});}[_0x2d31a4(0x42e)](_0x3ee996){const _0x2e6982=_0x2d31a4;let _0xd63630=this[_0x2e6982(0x403)](_0x3ee996);if(!_0xd63630)return!0x1;let _0x3036b2=_0x3ee996[_0x2e6982(0x43e)][_0x2e6982(0x357)]??_0x3ee996[_0x2e6982(0x43e)]['element'][_0x2e6982(0x357)];return!this[_0x2e6982(0x1f1)]&&_0x3036b2['width']===_0xd63630[_0x2e6982(0x35d)]&&_0x3036b2['height']===_0xd63630[_0x2e6982(0x41e)]||this[_0x2e6982(0x286)](_0x3ee996,_0xd63630),!0x0;}[_0x2d31a4(0x403)](_0x1342b6){const _0x1585a8=_0x2d31a4;return!Er(_0x1342b6[_0x1585a8(0x49d)]['width'])||!Er(_0x1342b6[_0x1585a8(0x49d)][_0x1585a8(0x41e)])?null:_0x824281(_0x1342b6[_0x1585a8(0x43e)],{'width':_0x1342b6[_0x1585a8(0x49d)]['width'],'height':_0x1342b6[_0x1585a8(0x49d)]['height']});}[_0x2d31a4(0x3a5)](){const _0x2892e9=_0x2d31a4;this[_0x2892e9(0x42f)](_0x5a6bc0(this[_0x2892e9(0x4b2)][_0x2892e9(0x24d)][_0x2892e9(0x4b1)](_0x35dd5f(this[_0x2892e9(0x1c3)]))['subscribe'](_0x2b6ced=>{const _0x5d1c7b=_0x2892e9;_0x2b6ced||this[_0x5d1c7b(0x45a)]();})));}[_0x2d31a4(0x286)](_0x14ada3,_0x471571){const _0x416804=_0x2d31a4;var _0xdd65c4;let _0x47feb6=this[_0x416804(0x235)]['getElementData'](_0x14ada3['params'][_0x416804(0x499)],_0x14ada3[_0x416804(0x49d)][_0x416804(0x452)]),_0x521ac4=Dr(_0x47feb6,_0x14ada3['params'][_0x416804(0x3c9)],_0x471571),_0x547835=_0xd8e37e((_0xdd65c4=_0x47feb6[_0x14ada3[_0x416804(0x49d)][_0x416804(0x3c9)]])==null?void 0x0:_0xdd65c4[_0x416804(0x4b4)]);_0x521ac4&&_0x547835&&(this[_0x416804(0x1f1)]={'unitId':_0x14ada3[_0x416804(0x49d)][_0x416804(0x499)],'subUnitId':_0x14ada3[_0x416804(0x49d)][_0x416804(0x452)],'scopeId':_0x547835[_0x416804(0x2f8)]},this['_syncElementDataToScene'](_0x521ac4,_0x547835[_0x416804(0x2f8)])&&this[_0x416804(0x332)][_0x416804(0x45f)]({'unitId':_0x14ada3[_0x416804(0x49d)][_0x416804(0x499)],'subUnitId':_0x14ada3[_0x416804(0x49d)][_0x416804(0x452)],'nodeId':_0x14ada3['params']['shapeId'],'scopeId':_0x547835[_0x416804(0x2f8)]}));}[_0x2d31a4(0x45a)](){const _0x5d47e4=_0x2d31a4;let _0x3c5fae=this[_0x5d47e4(0x1f1)];if(!_0x3c5fae)return;this[_0x5d47e4(0x1f1)]=null;let _0x4dd64e=this[_0x5d47e4(0x235)][_0x5d47e4(0x397)](_0x3c5fae['unitId'],_0x3c5fae['subUnitId']);this[_0x5d47e4(0x2b5)](_0x4dd64e,_0x3c5fae[_0x5d47e4(0x435)])&&this[_0x5d47e4(0x332)][_0x5d47e4(0x45f)]({'unitId':_0x3c5fae[_0x5d47e4(0x499)],'subUnitId':_0x3c5fae['subUnitId'],'nodeId':_0x3c5fae[_0x5d47e4(0x435)],'scopeId':_0x3c5fae[_0x5d47e4(0x435)]});}[_0x2d31a4(0x2b5)](_0x5f365d,_0x574417){const _0x4534c0=_0x2d31a4;let _0x7d68d8=!0x1;if(Object[_0x4534c0(0x379)](_0x5f365d)['forEach'](_0xcf61f0=>{const _0x4a80ac=_0x4534c0;var _0x17d861;let _0x2382ea=_0xd8e37e(_0xcf61f0[_0x4a80ac(0x4b4)]),_0x106540=(_0x17d861=_0xcf61f0[_0x4a80ac(0x4b4)]['custom'])==null?void 0x0:_0x17d861[_0x4a80ac(0x40c)];if(_0xcf61f0[_0x4a80ac(0x421)]!==_0x574417&&(_0x2382ea==null?void 0x0:_0x2382ea['structureScopeId'])!==_0x574417&&(_0x106540==null?void 0x0:_0x106540[_0x4a80ac(0x2f8)])!==_0x574417)return;let _0x20215e=this[_0x4a80ac(0x4a2)](_0xcf61f0[_0x4a80ac(0x421)]);_0x20215e&&(_0x7d68d8=_0x239c11(_0x20215e,_0xcf61f0,{'elementData':_0x5f365d,'unitId':this[_0x4a80ac(0x2d9)][_0x4a80ac(0x499)]})||_0x7d68d8);}),_0x7d68d8){var _0x2c0a8b,_0x5bc6ce;this['_renderContext'][_0x4534c0(0x37b)][_0x4534c0(0x48e)](!0x0),(_0x2c0a8b=(_0x5bc6ce=this[_0x4534c0(0x2d9)][_0x4534c0(0x37b)])['requestRender'])==null||_0x2c0a8b[_0x4534c0(0x248)](_0x5bc6ce);}return _0x7d68d8;}[_0x2d31a4(0x4a2)](_0x55df97){const _0x9bc593=_0x2d31a4;var _0x4ec7d8;let _0x2779d4=_0x1b247d(this[_0x9bc593(0x2d9)][_0x9bc593(0x499)],_0x55df97),_0x3e1d22=this[_0x9bc593(0x2d9)][_0x9bc593(0x37b)];return((_0x4ec7d8=_0x3e1d22[_0x9bc593(0x4ba)])==null?void 0x0:_0x4ec7d8[_0x9bc593(0x248)](_0x3e1d22,_0x2779d4))??this[_0x9bc593(0x2d9)]['scene'][_0x9bc593(0x1e8)](_0x2779d4)??null;}};Or=J([q(0x1,_0x4a13c4(_0x11420d)),q(0x2,_0x4a13c4(_0x495947)),q(0x3,_0x4a13c4(_0x16b84e)),q(0x4,_0x4a13c4(Tr)),q(0x5,_0x2a0a40)],Or);const $={'touchHitRadius':0x16,'radius':0x12,'addChildRadius':0xe,'siblingHoverRadius':0xa,'siblingDotRadius':0x5,'siblingDotGap':0x3,'gap':0xa,'collapsePlusMinDistance':0x2c,'primaryColor':Y[_0x2d31a4(0x487)],'surfaceColor':Y[_0x2d31a4(0x33e)],'borderWidth':0x2,'glyphSize':0x8,'addChildGlyphSize':0x6,'siblingGlyphSize':5.5,'glyphWidth':2.4,'glyphHoverWidth':0x3,'badgeFontWeight':0x258,'badgeFontSize':0x12,'fontFamily':Y['fontFamily']};function kr(_0x42e938){const _0x4a86bc=_0x2d31a4;let _0x5d6d5d=$[_0x4a86bc(0x25d)],_0x5032d7=$[_0x4a86bc(0x3fc)],_0x5753aa=$['siblingHoverRadius'],_0x697d66=$[_0x4a86bc(0x3d5)],_0x4789cb=$[_0x4a86bc(0x1e9)],_0x38fd3a=_0x4789cb+$[_0x4a86bc(0x1dc)],_0x39d05f=$[_0x4a86bc(0x255)],_0x401857=_0x42e938['bounds']['top']+_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x41e)]/0x2,_0x1fe057=_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x1ac)]+_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x35d)]/0x2,_0x4222f3=_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x1ac)]-_0x5d6d5d-_0x697d66,_0xcfb649=_0x42e938['bounds'][_0x4a86bc(0x1ac)]+_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x35d)]+_0x5d6d5d+_0x697d66,_0x3843b5=_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x258)]-_0x5d6d5d-_0x697d66,_0x158fd6=_0x42e938['bounds'][_0x4a86bc(0x258)]+_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x41e)]+_0x5d6d5d+_0x697d66,_0x2b12d1=_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x1ac)]-_0x5032d7-_0x697d66,_0x18a8d7=_0x42e938['bounds'][_0x4a86bc(0x1ac)]+_0x42e938[_0x4a86bc(0x4b6)]['width']+_0x5032d7+_0x697d66,_0x5bd9bb=_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x258)]-_0x5032d7-_0x697d66,_0x2746c1=_0x42e938['bounds']['top']+_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x41e)]+_0x5032d7+_0x697d66,_0x5f00f0=[],_0x4b72c0=_0x42e938[_0x4a86bc(0x384)]===_0x4a86bc(0x258)||_0x42e938['side']===_0x4a86bc(0x394),_0xa34df3=_0x4b72c0?_0x1fe057:_0x42e938[_0x4a86bc(0x384)]===_0x4a86bc(0x1ac)?_0x4222f3:_0xcfb649,_0x176995=_0x4b72c0?_0x42e938[_0x4a86bc(0x384)]===_0x4a86bc(0x258)?_0x3843b5:_0x158fd6:_0x401857;if(_0x42e938[_0x4a86bc(0x45c)]&&_0x42e938[_0x4a86bc(0x402)]>0x0)return _0x5f00f0[_0x4a86bc(0x228)]({'kind':_0x4a86bc(0x3a8),'x':_0xa34df3,'y':_0x176995,'radius':_0x5d6d5d,'badgeCount':_0x42e938[_0x4a86bc(0x402)]}),_0x5f00f0;if(_0x42e938[_0x4a86bc(0x284)]?(_0x42e938[_0x4a86bc(0x3ca)]??(_0x4b72c0?[_0x4a86bc(0x258),_0x4a86bc(0x394)]:['left',_0x4a86bc(0x234)]))[_0x4a86bc(0x205)](_0x23029=>{const _0x1828bb=_0x4a86bc;_0x23029==='top'?_0x5f00f0[_0x1828bb(0x228)]({'kind':_0x1828bb(0x347),'x':_0x1fe057,'y':_0x5bd9bb,'radius':_0x5032d7}):_0x23029===_0x1828bb(0x394)?_0x5f00f0[_0x1828bb(0x228)]({'kind':_0x1828bb(0x4a3),'x':_0x1fe057,'y':_0x2746c1,'radius':_0x5032d7}):_0x23029==='left'?_0x5f00f0[_0x1828bb(0x228)]({'kind':'add-child-left','x':_0x2b12d1,'y':_0x401857,'radius':_0x5032d7}):_0x5f00f0['push']({'kind':_0x1828bb(0x48b),'x':_0x18a8d7,'y':_0x401857,'radius':_0x5032d7});}):(_0x5f00f0[_0x4a86bc(0x228)]({'kind':_0x42e938[_0x4a86bc(0x384)]===_0x4a86bc(0x1ac)?_0x4a86bc(0x27c):_0x42e938[_0x4a86bc(0x384)]===_0x4a86bc(0x258)?_0x4a86bc(0x347):_0x42e938['side']===_0x4a86bc(0x394)?'add-child-bottom':_0x4a86bc(0x48b),'x':_0x4b72c0?_0x1fe057:_0x42e938[_0x4a86bc(0x384)]==='left'?_0x2b12d1:_0x18a8d7,'y':_0x4b72c0?_0x42e938['side']===_0x4a86bc(0x258)?_0x5bd9bb:_0x2746c1:_0x401857,'radius':_0x5032d7}),_0x4b72c0?(_0x5f00f0[_0x4a86bc(0x228)]({'kind':'add-sibling-before','placement':'before','x':_0x42e938['bounds']['left']-_0x38fd3a,'y':_0x401857,'radius':_0x5753aa,'visualRadius':_0x4789cb}),_0x5f00f0[_0x4a86bc(0x228)]({'kind':_0x4a86bc(0x28b),'placement':_0x4a86bc(0x289),'x':_0x42e938['bounds'][_0x4a86bc(0x1ac)]+_0x42e938['bounds'][_0x4a86bc(0x35d)]+_0x38fd3a,'y':_0x401857,'radius':_0x5753aa,'visualRadius':_0x4789cb})):(_0x5f00f0[_0x4a86bc(0x228)]({'kind':'add-sibling-before','placement':'before','x':_0x1fe057,'y':_0x42e938['bounds']['top']-_0x38fd3a,'radius':_0x5753aa,'visualRadius':_0x4789cb}),_0x5f00f0[_0x4a86bc(0x228)]({'kind':'add-sibling-after','placement':_0x4a86bc(0x289),'x':_0x1fe057,'y':_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x258)]+_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x41e)]+_0x38fd3a,'radius':_0x5753aa,'visualRadius':_0x4789cb}))),_0x42e938['hasChildren']){let _0x21e39a={'kind':_0x4a86bc(0x3a8),'x':_0xa34df3,'y':_0x176995,'radius':_0x5d6d5d};_0x5f00f0[_0x4a86bc(0x228)](_0x21e39a);let _0x4f6b27=_0x5f00f0[_0x4a86bc(0x261)](_0x4986f0=>_0x4986f0[_0x4a86bc(0x3e4)]===(_0x42e938['side']===_0x4a86bc(0x1ac)?'add-child-left':_0x42e938[_0x4a86bc(0x384)]===_0x4a86bc(0x258)?_0x4a86bc(0x347):_0x42e938[_0x4a86bc(0x384)]===_0x4a86bc(0x394)?_0x4a86bc(0x4a3):_0x4a86bc(0x48b)));_0x4f6b27&&Math[_0x4a86bc(0x436)](_0x4f6b27['x']-_0x21e39a['x'],_0x4f6b27['y']-_0x21e39a['y'])<_0x39d05f&&(_0x42e938[_0x4a86bc(0x384)]===_0x4a86bc(0x258)||_0x42e938[_0x4a86bc(0x384)]===_0x4a86bc(0x394)?_0x4f6b27['y']=_0x21e39a['y']+(_0x42e938[_0x4a86bc(0x384)]===_0x4a86bc(0x258)?-_0x39d05f:_0x39d05f):_0x4f6b27['x']=_0x21e39a['x']+(_0x42e938[_0x4a86bc(0x384)]==='left'?-_0x39d05f:_0x39d05f));}return _0x5f00f0;}const Ar='board-mind-map-node-controls-object',jr=_0x19c79d[_0x2d31a4(0x4a0)];function Mr(_0x18f5a3,_0x430ffa){const _0x5cc216=_0x2d31a4;return!!_0x18f5a3&&_0x18f5a3[_0x5cc216(0x3e4)]===_0x430ffa[_0x5cc216(0x3e4)]&&_0x18f5a3['x']===_0x430ffa['x']&&_0x18f5a3['y']===_0x430ffa['y'];}var Nr=class extends _0x4e627c{constructor(_0x4ce956=Ar,_0x1387a2){const _0x2c052f=_0x2d31a4;super(_0x4ce956),K(this,_0x2c052f(0x363),{'controls':[]}),this[_0x2c052f(0x244)]=!0x0,this[_0x2c052f(0x2cb)]=_0x4ea4f2[_0x2c052f(0x4a8)],this['updateState'](_0x1387a2);}[_0x2d31a4(0x2a6)](_0x2a7828){const _0x5657ed=_0x2d31a4;this[_0x5657ed(0x363)]={...this['_state'],..._0x2a7828},this[_0x5657ed(0x363)][_0x5657ed(0x291)][_0x5657ed(0x1ab)]>0x0?this[_0x5657ed(0x4bf)]():this[_0x5657ed(0x2c0)](),this[_0x5657ed(0x48e)](!0x0);}['setHoveredControl'](_0x537cc4){const _0x4f8b96=_0x2d31a4;!_0x537cc4&&!this[_0x4f8b96(0x363)][_0x4f8b96(0x3c0)]||_0x537cc4&&Mr(this[_0x4f8b96(0x363)]['hoveredControl'],_0x537cc4)||(this[_0x4f8b96(0x363)]={...this[_0x4f8b96(0x363)],'hoveredControl':_0x537cc4},this[_0x4f8b96(0x48e)](!0x0));}[_0x2d31a4(0x27a)](_0x32a9e7,_0x55dcfd){const _0x46a6aa=_0x2d31a4;var _0x297ff9;let _0x2f9ecd=(_0x297ff9=this['getScene']())==null?void 0x0:_0x297ff9[_0x46a6aa(0x483)](),_0x48623d=null,_0x15fc64=0x1/0x0;for(let _0x415664=this[_0x46a6aa(0x363)]['controls']['length']-0x1;_0x415664>=0x0;--_0x415664){let _0x54943c=this[_0x46a6aa(0x363)][_0x46a6aa(0x291)][_0x415664],_0x584d1c=Math[_0x46a6aa(0x436)](_0x32a9e7['x']-_0x54943c['x'],_0x32a9e7['y']-_0x54943c['y']);if(_0x55dcfd!==_0x4ace31[_0x46a6aa(0x3c2)]){if(_0x584d1c<=_0x54943c['radius'])return _0x54943c;continue;}let _0xbab551=Math[_0x46a6aa(0x436)]((_0x32a9e7['x']-_0x54943c['x'])*((_0x2f9ecd==null?void 0x0:_0x2f9ecd['scaleX'])??0x1),(_0x32a9e7['y']-_0x54943c['y'])*((_0x2f9ecd==null?void 0x0:_0x2f9ecd['scaleY'])??0x1));(_0x584d1c<=_0x54943c[_0x46a6aa(0x25d)]||_0xbab551<=$['touchHitRadius'])&&_0xbab551<_0x15fc64&&(_0x48623d=_0x54943c,_0x15fc64=_0xbab551);}return _0x48623d;}[_0x2d31a4(0x278)](_0x3676ee){const _0x407c55=_0x2d31a4;var _0x23868a;let _0x5b7bba=this[_0x407c55(0x27a)](_0x3676ee,_0x4ace31[_0x407c55(0x3c2)]),_0x4ba955=(_0x23868a=this['getScene']())==null?void 0x0:_0x23868a[_0x407c55(0x483)]();return _0x5b7bba?Math[_0x407c55(0x436)]((_0x3676ee['x']-_0x5b7bba['x'])*((_0x4ba955==null?void 0x0:_0x4ba955[_0x407c55(0x35e)])??0x1),(_0x3676ee['y']-_0x5b7bba['y'])*((_0x4ba955==null?void 0x0:_0x4ba955[_0x407c55(0x280)])??0x1)):0x1/0x0;}[_0x2d31a4(0x3e3)](_0x407401){const _0x61f720=_0x2d31a4;return!!this[_0x61f720(0x27a)]({'x':_0x407401['x'],'y':_0x407401['y']});}['render'](_0x1611c6,_0x59386d){const _0x106c3d=_0x2d31a4;return!this[_0x106c3d(0x1c0)]||this[_0x106c3d(0x363)][_0x106c3d(0x291)]['length']===0x0?(this[_0x106c3d(0x48e)](!0x1),this):(_0x1611c6[_0x106c3d(0x496)](),this['_state'][_0x106c3d(0x291)]['forEach'](_0x476203=>{const _0x4499bb=_0x106c3d;let _0x235e25=Mr(this['_state'][_0x4499bb(0x3c0)],_0x476203),_0xb7fb24=_0x476203[_0x4499bb(0x2d5)]!==void 0x0,_0x42f9d2=_0x476203['kind']===_0x4499bb(0x27c)||_0x476203['kind']===_0x4499bb(0x48b)||_0x476203['kind']===_0x4499bb(0x347)||_0x476203[_0x4499bb(0x3e4)]===_0x4499bb(0x4a3),_0x4b8f28=_0x476203['kind']===_0x4499bb(0x40e)||_0x476203[_0x4499bb(0x3e4)]===_0x4499bb(0x28b),_0x2ea08e=_0x4b8f28&&!_0x235e25?_0x476203[_0x4499bb(0x315)]??_0x476203[_0x4499bb(0x25d)]:_0x476203[_0x4499bb(0x25d)];if(_0x1611c6[_0x4499bb(0x416)](),_0x1611c6[_0x4499bb(0x2db)]=_0x476203[_0x4499bb(0x3e4)]===_0x4499bb(0x3a8)?$['surfaceColor']:$['primaryColor'],_0x1611c6[_0x4499bb(0x2f5)]=$[_0x4499bb(0x487)],_0x1611c6[_0x4499bb(0x2df)]=$[_0x4499bb(0x21c)],_0x1611c6['arc'](_0x476203['x'],_0x476203['y'],_0x2ea08e,0x0,Math['PI']*0x2),_0x1611c6[_0x4499bb(0x4ca)](),(!_0x4b8f28||_0x235e25)&&_0x1611c6['stroke'](),!_0xb7fb24&&(!_0x4b8f28||_0x235e25)){if(_0x1611c6[_0x4499bb(0x416)](),_0x1611c6['strokeStyle']=_0x476203['kind']===_0x4499bb(0x3a8)?$[_0x4499bb(0x487)]:$[_0x4499bb(0x33e)],_0x1611c6[_0x4499bb(0x2df)]=_0x4b8f28?$['glyphWidth']:_0x235e25?$['glyphHoverWidth']:$[_0x4499bb(0x370)],_0x1611c6[_0x4499bb(0x208)]=_0x4499bb(0x43c),_0x476203[_0x4499bb(0x3e4)]===_0x4499bb(0x3a8)){let _0x229653=$[_0x4499bb(0x2a9)];_0x1611c6[_0x4499bb(0x392)](_0x476203['x']+_0x229653/0x2,_0x476203['y']-_0x229653),_0x1611c6[_0x4499bb(0x32a)](_0x476203['x']-_0x229653/0x2,_0x476203['y']),_0x1611c6[_0x4499bb(0x32a)](_0x476203['x']+_0x229653/0x2,_0x476203['y']+_0x229653);}else{let _0x231fa2=_0x4b8f28?$[_0x4499bb(0x35c)]:_0x42f9d2?$['addChildGlyphSize']:$[_0x4499bb(0x2a9)];_0x1611c6[_0x4499bb(0x392)](_0x476203['x']-_0x231fa2,_0x476203['y']),_0x1611c6[_0x4499bb(0x32a)](_0x476203['x']+_0x231fa2,_0x476203['y']),_0x1611c6[_0x4499bb(0x392)](_0x476203['x'],_0x476203['y']-_0x231fa2),_0x1611c6[_0x4499bb(0x32a)](_0x476203['x'],_0x476203['y']+_0x231fa2);}_0x1611c6[_0x4499bb(0x2ac)]();}_0xb7fb24&&(_0x1611c6['fillStyle']=$[_0x4499bb(0x487)],_0x1611c6['font']=$[_0x4499bb(0x20b)]+'\x20'+$[_0x4499bb(0x1b7)]+_0x4499bb(0x3c6)+$[_0x4499bb(0x3bf)],_0x1611c6['textAlign']=_0x4499bb(0x4a4),_0x1611c6[_0x4499bb(0x47e)]=_0x4499bb(0x3d6),_0x1611c6['fillText'](String(_0x476203[_0x4499bb(0x2d5)]),_0x476203['x'],_0x476203['y']));}),_0x1611c6[_0x106c3d(0x3f5)](),this['makeDirty'](!0x1),this);}};function Pr(_0x5f4faf){const _0x5124a9=_0x2d31a4;return _0x5f4faf===_0x5124a9(0x341)||_0x5f4faf===_0x5124a9(0x45d)||_0x5f4faf==='tree-alternate';}function Fr(_0x19526f){const _0x5c989d=_0x2d31a4;return _0x19526f===_0x5c989d(0x338)||_0x19526f===_0x5c989d(0x25f);}function Ir(_0xbd1a50,_0x349153){const _0x249ebb=_0x2d31a4;let _0x5fddf9=Number[_0x249ebb(0x31d)](_0x349153[_0x249ebb(0x439)])&&_0x349153[_0x249ebb(0x439)]>0x0?_0x349153[_0x249ebb(0x439)]:0x1;return{'x':Math['round']((_0xbd1a50[_0x249ebb(0x4aa)]-_0x349153['panOffset']['x'])/_0x5fddf9),'y':Math[_0x249ebb(0x43c)]((_0xbd1a50[_0x249ebb(0x492)]-_0x349153[_0x249ebb(0x293)]['y'])/_0x5fddf9)};}let Lr=class extends _0x9932d8{constructor(_0x2834ca,_0x5a9862,_0x48076d,_0x2afc21,_0x340b04,_0xa6cd90,_0xea197c,_0x49ffc9,_0x124ca5){const _0x54e3e8=_0x2d31a4;super(),this[_0x54e3e8(0x2d9)]=_0x2834ca,this[_0x54e3e8(0x235)]=_0x5a9862,this['_elementStateService']=_0x48076d,this['_stateService']=_0x2afc21,this[_0x54e3e8(0x2a3)]=_0x340b04,this[_0x54e3e8(0x395)]=_0xa6cd90,this[_0x54e3e8(0x1bd)]=_0xea197c,this[_0x54e3e8(0x332)]=_0x49ffc9,this[_0x54e3e8(0x306)]=_0x124ca5,K(this,_0x54e3e8(0x431),null),K(this,'_objectEventDisposables',null),K(this,_0x54e3e8(0x3df),null),K(this,_0x54e3e8(0x457),null),this[_0x54e3e8(0x430)]();}['_init'](){const _0x3f8a1=_0x2d31a4;var _0x231464,_0x5ce6fd,_0x3551ac;let {scene:_0x22f6ce}=this[_0x3f8a1(0x2d9)],_0x43b0c7=(_0x231464=_0x22f6ce['getTransformerByCreate'])==null?void 0x0:_0x231464['call'](_0x22f6ce);_0x43b0c7&&(this[_0x3f8a1(0x42f)](_0x5a6bc0(_0x43b0c7['changing$']['pipe'](_0x35dd5f(this[_0x3f8a1(0x1c3)]))['subscribe'](({objects:_0x338a3e})=>{this['_syncControls'](_0x338a3e,{'hideRootControls':!0x0});}))),this[_0x3f8a1(0x42f)](_0x5a6bc0(_0x43b0c7[_0x3f8a1(0x26e)][_0x3f8a1(0x4b1)](_0x35dd5f(this[_0x3f8a1(0x1c3)]))[_0x3f8a1(0x45b)](_0x2b7dd1=>{const _0x2d2555=_0x3f8a1;let _0x2cff74=_0x2b7dd1==null?void 0x0:_0x2b7dd1[_0x2d2555(0x1e7)];this[_0x2d2555(0x4b9)](_0x2cff74),setTimeout(()=>this[_0x2d2555(0x4b9)](_0x2cff74),0x0);})))),this[_0x3f8a1(0x42f)](_0x5a6bc0(this[_0x3f8a1(0x318)][_0x3f8a1(0x1b8)][_0x3f8a1(0x4b1)](_0x35dd5f(this[_0x3f8a1(0x1c3)]))[_0x3f8a1(0x45b)](()=>this[_0x3f8a1(0x4b9)]()))),this[_0x3f8a1(0x42f)](_0x5a6bc0(this[_0x3f8a1(0x39d)][_0x3f8a1(0x1b8)][_0x3f8a1(0x4b1)](_0x35dd5f(this[_0x3f8a1(0x1c3)]))['subscribe'](()=>this[_0x3f8a1(0x4b9)]()))),this[_0x3f8a1(0x42f)](_0x5a6bc0(this[_0x3f8a1(0x235)][_0x3f8a1(0x27d)][_0x3f8a1(0x4b1)](_0x35dd5f(this[_0x3f8a1(0x1c3)]))[_0x3f8a1(0x45b)](_0x19112c=>{const _0x47a066=_0x3f8a1;let _0x5c124c=this[_0x47a066(0x318)][_0x47a066(0x276)]()[_0x47a066(0x233)];_0x5c124c&&_0x19112c[_0x47a066(0x354)](_0x4a31c8=>_0x4a31c8[_0x47a066(0x499)]===_0x5c124c[_0x47a066(0x499)]&&_0x4a31c8[_0x47a066(0x452)]===_0x5c124c[_0x47a066(0x452)]&&(_0x4a31c8['elementId']===this[_0x47a066(0x3df)]||_0x4a31c8[_0x47a066(0x421)]===this[_0x47a066(0x457)]))&&this['_syncControls']();}))),this[_0x3f8a1(0x42f)](_0x5a6bc0(this[_0x3f8a1(0x332)][_0x3f8a1(0x223)][_0x3f8a1(0x4b1)](_0x35dd5f(this[_0x3f8a1(0x1c3)]))[_0x3f8a1(0x45b)](_0x3b5d15=>{const _0x59fa51=_0x3f8a1;let _0x12fc7d=this[_0x59fa51(0x318)][_0x59fa51(0x276)]()[_0x59fa51(0x233)];_0x12fc7d&&_0x12fc7d['unitId']===_0x3b5d15[_0x59fa51(0x499)]&&_0x12fc7d[_0x59fa51(0x452)]===_0x3b5d15[_0x59fa51(0x452)]&&(this[_0x59fa51(0x457)]&&this[_0x59fa51(0x457)]!==_0x3b5d15[_0x59fa51(0x435)]||this[_0x59fa51(0x4b9)]());}))),this['disposeWithMe'](_0x5a6bc0(_0x22f6ce[_0x3f8a1(0x396)][_0x3f8a1(0x4cb)](_0x2a26d8=>this['_handlePointerMove'](_0x2a26d8)))),this[_0x3f8a1(0x42f)](_0x5a6bc0(_0x22f6ce['onPointerDown$']['subscribeEvent']({'priority':0x4,'next':([_0x28e341,_0xeee9fa])=>{const _0x53b3d9=_0x3f8a1;this[_0x53b3d9(0x497)](_0x28e341)&&this[_0x53b3d9(0x1ae)](_0x28e341,_0xeee9fa);}}))),this['disposeWithMe'](_0x5a6bc0(((_0x5ce6fd=_0x22f6ce[_0x3f8a1(0x2e9)])==null?void 0x0:_0x5ce6fd[_0x3f8a1(0x4cb)]({'priority':0x4,'next':([_0x53ee19,_0x2001ca])=>{const _0x471d1e=_0x3f8a1;this[_0x471d1e(0x36d)](_0x53ee19)&&this['_consumeControlEvent'](_0x53ee19,_0x2001ca);}}))??{'dispose':()=>{}})),this[_0x3f8a1(0x42f)](_0x5a6bc0(((_0x3551ac=_0x22f6ce[_0x3f8a1(0x2c3)])==null?void 0x0:_0x3551ac[_0x3f8a1(0x4cb)]({'priority':0x4,'next':([_0x564b64,_0x47a341])=>{const _0x17c765=_0x3f8a1;this[_0x17c765(0x36d)](_0x564b64)&&this[_0x17c765(0x1ae)](_0x564b64,_0x47a341);}}))??{'dispose':()=>{}})),this['disposeWithMe'](_0x5a6bc0(()=>this[_0x3f8a1(0x3b8)]())),this[_0x3f8a1(0x4b9)]();}['_ensureObject'](){const _0x1e2f43=_0x2d31a4;return this[_0x1e2f43(0x431)]?this[_0x1e2f43(0x431)]:(this[_0x1e2f43(0x431)]=new Nr(Ar),this[_0x1e2f43(0x23d)](this[_0x1e2f43(0x431)]),this[_0x1e2f43(0x2d9)][_0x1e2f43(0x37b)][_0x1e2f43(0x226)](this[_0x1e2f43(0x431)],jr),this[_0x1e2f43(0x431)]);}['_attachObjectEvents'](_0x57cb23){const _0x8a17ca=_0x2d31a4;var _0x3a3156;(_0x3a3156=this[_0x8a17ca(0x422)])==null||_0x3a3156[_0x8a17ca(0x262)]();let _0x4bed3a=new _0xec2352();_0x4bed3a[_0x8a17ca(0x3e8)](_0x57cb23[_0x8a17ca(0x1b9)][_0x8a17ca(0x4cb)]({'priority':0x4,'next':([_0x3bd4c2,_0x32449c])=>{const _0x3e503c=_0x8a17ca;this[_0x3e503c(0x497)](_0x3bd4c2)&&this[_0x3e503c(0x1ae)](_0x3bd4c2,_0x32449c);}})),_0x4bed3a[_0x8a17ca(0x3e8)](_0x57cb23['onPointerUp$'][_0x8a17ca(0x4cb)]({'priority':0x4,'next':([_0x5b07b6,_0x2c2ae2])=>{const _0x2efade=_0x8a17ca;this[_0x2efade(0x36d)](_0x5b07b6)&&this[_0x2efade(0x1ae)](_0x5b07b6,_0x2c2ae2);}})),_0x4bed3a[_0x8a17ca(0x3e8)](_0x57cb23[_0x8a17ca(0x2c3)][_0x8a17ca(0x4cb)]({'priority':0x4,'next':([_0x10a51f,_0x538322])=>{const _0x47a2cd=_0x8a17ca;this[_0x47a2cd(0x36d)](_0x10a51f)&&this[_0x47a2cd(0x1ae)](_0x10a51f,_0x538322);}})),this[_0x8a17ca(0x422)]=_0x4bed3a;}[_0x2d31a4(0x3b8)](){const _0x152a70=_0x2d31a4;var _0x4f197e;this[_0x152a70(0x431)]&&(this[_0x152a70(0x2d9)][_0x152a70(0x37b)]['removeObjects']([this[_0x152a70(0x431)]]),(_0x4f197e=this[_0x152a70(0x422)])==null||_0x4f197e[_0x152a70(0x262)](),this[_0x152a70(0x422)]=null,this[_0x152a70(0x431)]=null,this[_0x152a70(0x3df)]=null,this[_0x152a70(0x457)]=null,this['_renderContext'][_0x152a70(0x37b)][_0x152a70(0x48e)](!0x0));}['_syncControls'](_0x231dbb,_0x237426){const _0x27fa1f=_0x2d31a4;var _0x2eade8,_0x3a57b4;if(this[_0x27fa1f(0x39d)][_0x27fa1f(0x41b)]()[_0x27fa1f(0x462)]==='viewing'){this[_0x27fa1f(0x3b8)]();return;}let _0x2a5601=this[_0x27fa1f(0x318)]['getSnapshot'](),_0x37c25d=_0x2a5601[_0x27fa1f(0x233)],_0x3111ed=_0x2a5601[_0x27fa1f(0x330)]??_0x2a5601[_0x27fa1f(0x3f9)][0x0];if(!_0x37c25d||!_0x3111ed||_0x2a5601[_0x27fa1f(0x3f9)][_0x27fa1f(0x1ab)]!==0x1){this[_0x27fa1f(0x3b8)]();return;}let _0x22e8db=this['_boardElementService'][_0x27fa1f(0x397)](_0x37c25d['unitId'],_0x37c25d[_0x27fa1f(0x452)]),_0x43388e=_0x22e8db[_0x3111ed],_0x1fcad0=_0xd8e37e(_0x43388e==null?void 0x0:_0x43388e[_0x27fa1f(0x4b4)]);if(!_0x43388e||!_0x1fcad0){this[_0x27fa1f(0x3b8)]();return;}let _0x1c109f=_0x1b247d(_0x37c25d[_0x27fa1f(0x499)],_0x3111ed);if(_0x237426!=null&&_0x237426[_0x27fa1f(0x454)]&&_0x1fcad0['parentNodeId']==null&&_0x231dbb!=null&&_0x231dbb[_0x27fa1f(0x1ec)](_0x1c109f)){this['_removeObject']();return;}let _0x15b047=this[_0x27fa1f(0x251)](_0x22e8db,_0x37c25d[_0x27fa1f(0x499)],_0x3111ed,_0x231dbb);if(!_0x15b047){this['_removeObject']();return;}let _0x346843=Object['values'](_0x22e8db)[_0x27fa1f(0x2c5)](_0x29e7ba=>{const _0x2ccc7b=_0x27fa1f;var _0x315685;return((_0x315685=_0xd8e37e(_0x29e7ba[_0x2ccc7b(0x4b4)]))==null?void 0x0:_0x315685[_0x2ccc7b(0x3e6)])===_0x3111ed;}),_0x3e3aca=_0x1fcad0['collapsed']?this[_0x27fa1f(0x358)](_0x22e8db,_0x3111ed):0x0;this[_0x27fa1f(0x3df)]=_0x3111ed,this[_0x27fa1f(0x457)]=_0x1fcad0['structureScopeId'];let _0x1e1a7f=(_0x2eade8=_0x22e8db[_0x1fcad0['structureScopeId']])==null?void 0x0:_0x2eade8[_0x27fa1f(0x4b4)],_0x34a111=_0x3a557b(_0x1e1a7f),_0x3311a8=_0x1e1a7f==null||(_0x3a57b4=_0x1e1a7f[_0x27fa1f(0x2c4)])==null||(_0x3a57b4=_0x3a57b4['mindmap'])==null||(_0x3a57b4=_0x3a57b4[_0x27fa1f(0x31a)])==null?void 0x0:_0x3a57b4[_0x27fa1f(0x46d)],_0x67636b=(_0x34a111==null?void 0x0:_0x34a111['layout'][_0x27fa1f(0x46d)])??_0x3311a8,_0x1fcb89=_0x1fcad0[_0x27fa1f(0x3e6)]==null,_0x4b61f8=this[_0x27fa1f(0x3e2)](_0x1fcad0['side'],_0x1fcb89,_0x67636b);this[_0x27fa1f(0x40f)]()[_0x27fa1f(0x2a6)]({'controls':kr({'bounds':_0x15b047,'isRoot':_0x1fcb89,'side':_0x4b61f8,'rootChildSides':this[_0x27fa1f(0x418)](_0x1fcb89,_0x67636b),'hasChildren':_0x346843['length']>0x0,'collapsedDescendantCount':_0x3e3aca})}),this[_0x27fa1f(0x2d9)][_0x27fa1f(0x37b)]['makeDirty'](!0x0);}[_0x2d31a4(0x3e2)](_0x7e7764,_0x155ba2,_0x3dec42){const _0x44084f=_0x2d31a4;return _0x3dec42==='timeline-vertical'?!_0x155ba2&&(_0x7e7764===_0x44084f(0x1ac)||_0x7e7764===_0x44084f(0x234))?_0x7e7764:_0x44084f(0x394):_0x3dec42==='mindmap-vertical'?!_0x155ba2&&(_0x7e7764===_0x44084f(0x258)||_0x7e7764===_0x44084f(0x394))?_0x7e7764:_0x44084f(0x394):_0x7e7764===_0x44084f(0x1ac)?_0x44084f(0x1ac):_0x44084f(0x234);}[_0x2d31a4(0x418)](_0xd5b83d,_0x5904dd){const _0x53c27b=_0x2d31a4;if(_0xd5b83d){if(Pr(_0x5904dd))return[_0x53c27b(0x394)];if(_0x5904dd===_0x53c27b(0x338))return[_0x53c27b(0x234)];if(_0x5904dd===_0x53c27b(0x25f))return[_0x53c27b(0x394)];}}[_0x2d31a4(0x484)](_0x405714){const _0x2d2554=_0x2d31a4;var _0x54503b,_0x4282c9;let _0x2f97e8=this[_0x2d2554(0x318)][_0x2d2554(0x276)]()[_0x2d2554(0x233)];if(!_0x2f97e8||!this[_0x2d2554(0x3df)])return;let _0x230ffe=this[_0x2d2554(0x235)][_0x2d2554(0x397)](_0x2f97e8[_0x2d2554(0x499)],_0x2f97e8['subUnitId']),_0xdbdd00=_0xd8e37e((_0x54503b=_0x230ffe[this[_0x2d2554(0x3df)]])==null?void 0x0:_0x54503b['element']),_0xc7d55a=_0xdbdd00?_0x3a557b((_0x4282c9=_0x230ffe[_0xdbdd00[_0x2d2554(0x2f8)]])==null?void 0x0:_0x4282c9[_0x2d2554(0x4b4)]):null;if((_0xdbdd00==null?void 0x0:_0xdbdd00['parentNodeId'])!=null||!Pr(_0xc7d55a==null?void 0x0:_0xc7d55a['layout'][_0x2d2554(0x46d)])&&!Fr(_0xc7d55a==null?void 0x0:_0xc7d55a[_0x2d2554(0x31a)][_0x2d2554(0x46d)]))return _0x405714===_0x2d2554(0x27c)?'left':_0x405714===_0x2d2554(0x347)?_0x2d2554(0x258):_0x405714==='add-child-bottom'?_0x2d2554(0x394):_0x2d2554(0x234);}[_0x2d31a4(0x251)](_0xa858ee,_0x16e919,_0x5eaeb9,_0x2f1d9b){const _0x17ecef=_0x2d31a4;var _0x43b996,_0x4f754b;let _0x199157=_0x1b247d(_0x16e919,_0x5eaeb9),_0x198b34=_0x2f1d9b==null?void 0x0:_0x2f1d9b['get'](_0x199157),_0x531124=this[_0x17ecef(0x29b)](_0x198b34);if(_0x531124)return _0x531124;let _0x43524a=this[_0x17ecef(0x2d9)]['scene'],_0x2c4a18=((_0x43b996=_0x43524a[_0x17ecef(0x4ba)])==null?void 0x0:_0x43b996[_0x17ecef(0x248)](_0x43524a,_0x199157))??((_0x4f754b=_0x43524a[_0x17ecef(0x1e8)])==null?void 0x0:_0x4f754b[_0x17ecef(0x248)](_0x43524a,_0x199157));return this[_0x17ecef(0x29b)](_0x2c4a18)||_0x59b50d(_0xa858ee,_0x5eaeb9);}[_0x2d31a4(0x29b)](_0x5a4689){const _0x161540=_0x2d31a4;return _0x5a4689&&Number[_0x161540(0x31d)](_0x5a4689[_0x161540(0x1ac)])&&Number['isFinite'](_0x5a4689[_0x161540(0x258)])&&Number[_0x161540(0x31d)](_0x5a4689['width'])&&Number['isFinite'](_0x5a4689[_0x161540(0x41e)])?{'left':_0x5a4689[_0x161540(0x1ac)],'top':_0x5a4689['top'],'width':_0x5a4689[_0x161540(0x35d)],'height':_0x5a4689[_0x161540(0x41e)]}:null;}[_0x2d31a4(0x358)](_0x5e9b74,_0x43c46e){const _0x1b1587=_0x2d31a4;return Object['values'](_0x5e9b74)[_0x1b1587(0x2c5)](_0x431e9e=>{const _0x19f46b=_0x1b1587;var _0x56718f;return((_0x56718f=_0xd8e37e(_0x431e9e[_0x19f46b(0x4b4)]))==null?void 0x0:_0x56718f['parentNodeId'])===_0x43c46e;})[_0x1b1587(0x4cf)]((_0x384228,_0x4c45d6)=>_0x384228+0x1+this[_0x1b1587(0x358)](_0x5e9b74,_0x4c45d6['elementId']),0x0);}[_0x2d31a4(0x344)](_0x59a5f5){const _0x4ea094=_0x2d31a4;if(!this[_0x4ea094(0x431)])return;let _0x3e6f6f=this['_stateService'][_0x4ea094(0x41b)](),_0x6bf30e=Ir(_0x59a5f5,{'panOffset':_0x3e6f6f[_0x4ea094(0x42b)],'zoomRatio':_0x3e6f6f[_0x4ea094(0x439)]});this[_0x4ea094(0x431)][_0x4ea094(0x220)](this[_0x4ea094(0x431)]['getHitControl'](_0x6bf30e,_0x59a5f5[_0x4ea094(0x3ac)]));}[_0x2d31a4(0x497)](_0x214ea2){const _0x53b749=_0x2d31a4;if(!this[_0x53b749(0x431)]||!this[_0x53b749(0x3df)]||(_0x214ea2[_0x53b749(0x29f)]??0x0)!==0x0)return!0x1;let _0x4cabdf=this[_0x53b749(0x318)][_0x53b749(0x276)]()[_0x53b749(0x233)];if(!_0x4cabdf)return!0x1;let _0xed96c6=this[_0x53b749(0x39d)][_0x53b749(0x41b)](),_0x2e67ff=Ir(_0x214ea2,{'panOffset':_0xed96c6[_0x53b749(0x42b)],'zoomRatio':_0xed96c6[_0x53b749(0x439)]}),_0x2c46ac=this['_object'][_0x53b749(0x27a)](_0x2e67ff,_0x214ea2[_0x53b749(0x3ac)]);if(!_0x2c46ac)return!0x1;if(_0x2c46ac['kind']===_0x53b749(0x3a8))return this[_0x53b749(0x3d7)](_0x16fafb['id'],{'unitId':_0x4cabdf[_0x53b749(0x499)],'subUnitId':_0x4cabdf[_0x53b749(0x452)],'nodeId':this[_0x53b749(0x3df)]}),!0x0;if(_0x2c46ac[_0x53b749(0x3e4)]===_0x53b749(0x27c)||_0x2c46ac[_0x53b749(0x3e4)]==='add-child-right'||_0x2c46ac[_0x53b749(0x3e4)]===_0x53b749(0x347)||_0x2c46ac[_0x53b749(0x3e4)]===_0x53b749(0x4a3)){let _0x21348b=_0x75cb4(0x6);return this[_0x53b749(0x409)](_0x3808d0['id'],{'unitId':_0x4cabdf['unitId'],'subUnitId':_0x4cabdf[_0x53b749(0x452)],'parentNodeId':this[_0x53b749(0x3df)],'side':this[_0x53b749(0x484)](_0x2c46ac[_0x53b749(0x3e4)]),'nodeId':_0x21348b,'connectorId':_0x75cb4(0x6),'text':this[_0x53b749(0x1bd)]['t'](_0x53b749(0x4ad))},_0x21348b),!0x0;}if(_0x2c46ac[_0x53b749(0x3e4)]==='add-sibling-before'||_0x2c46ac['kind']===_0x53b749(0x28b)){let _0x293847=_0x75cb4(0x6);return this[_0x53b749(0x409)](_0x2947b9['id'],{'unitId':_0x4cabdf[_0x53b749(0x499)],'subUnitId':_0x4cabdf[_0x53b749(0x452)],'nodeId':this[_0x53b749(0x3df)],'placement':_0x2c46ac['placement']??(_0x2c46ac[_0x53b749(0x3e4)]==='add-sibling-before'?_0x53b749(0x353):_0x53b749(0x289)),'siblingNodeId':_0x293847,'connectorId':_0x75cb4(0x6),'text':this[_0x53b749(0x1bd)]['t'](_0x53b749(0x4ad))},_0x293847),!0x0;}return!0x0;}[_0x2d31a4(0x36d)](_0x504316){const _0x70df37=_0x2d31a4;if(!this[_0x70df37(0x431)]||(_0x504316['button']??0x0)!==0x0)return!0x1;let _0x897aa1=this[_0x70df37(0x39d)][_0x70df37(0x41b)](),_0x5d45ff=Ir(_0x504316,{'panOffset':_0x897aa1[_0x70df37(0x42b)],'zoomRatio':_0x897aa1[_0x70df37(0x439)]});return!!this['_object'][_0x70df37(0x27a)](_0x5d45ff,_0x504316[_0x70df37(0x3ac)]);}[_0x2d31a4(0x1ae)](_0x277013,_0x1bb60b){const _0x1fcded=_0x2d31a4;var _0x117b93,_0x185c38;_0x1bb60b[_0x1fcded(0x1c4)](),(_0x117b93=_0x277013[_0x1fcded(0x2f2)])==null||_0x117b93[_0x1fcded(0x248)](_0x277013),(_0x185c38=_0x277013['stopPropagation'])==null||_0x185c38['call'](_0x277013);}['_executeAndLayout'](_0x48885a,_0x41c7b8){const _0x2a50e5=_0x2d31a4;let _0xc6d9cc=this[_0x2a50e5(0x457)];this[_0x2a50e5(0x306)][_0x2a50e5(0x2f7)](_0x41c7b8[_0x2a50e5(0x499)],()=>{const _0x255b92=_0x2a50e5;this[_0x255b92(0x2a3)][_0x255b92(0x2e6)](_0x48885a,_0x41c7b8)&&_0xc6d9cc&&(this['_commandService'][_0x255b92(0x2e6)](_0x59d4d9['id'],{'unitId':_0x41c7b8[_0x255b92(0x499)],'subUnitId':_0x41c7b8['subUnitId'],'scopeId':_0xc6d9cc}),this[_0x255b92(0x4b9)]());});}[_0x2d31a4(0x409)](_0x17e4bf,_0x4676bc,_0x3d0fe7){const _0x181cf9=_0x2d31a4;let _0x1ac23b={'unitId':_0x4676bc['unitId'],'subUnitId':_0x4676bc[_0x181cf9(0x452)]},_0x3e17f2=this[_0x181cf9(0x2a3)]['executeCommand'](_0x17e4bf,_0x4676bc);Promise[_0x181cf9(0x48a)](_0x3e17f2)[_0x181cf9(0x1d7)](_0x20d1eb=>{const _0x57382b=_0x181cf9;_0x20d1eb&&(this['_syncControls'](),this['_elementStateService']['selectElements'](_0x1ac23b,[_0x3d0fe7],_0x3d0fe7),this['_boardTextEditingService']['ignoreExternalFocusChanges'](),this[_0x57382b(0x395)][_0x57382b(0x3ab)]({..._0x1ac23b,'shapeId':_0x3d0fe7,'shapeKey':_0x1b247d(_0x1ac23b['unitId'],_0x3d0fe7),'visible':!0x0}));});}};Lr=J([q(0x1,_0x4a13c4(_0x495947)),q(0x2,_0x4a13c4(_0x452a90)),q(0x3,_0x4a13c4(_0x18a088)),q(0x4,_0x2a0a40),q(0x5,_0x4a13c4(_0x16b84e)),q(0x6,_0x4a13c4(_0x3ff2da)),q(0x7,_0x4a13c4(Tr)),q(0x8,_0x4a13c4(_0x352e0c))],Lr);const Rr='FOCUSING_MIND_MAP_TEXT_EDITOR';let zr=class extends _0x9932d8{constructor(_0x4febc3,_0x3cc8d2){const _0x2388e9=_0x2d31a4;super(),this['_commandService']=_0x4febc3,this[_0x2388e9(0x322)]=_0x3cc8d2,this['_init']();}['_init'](){const _0x4a63d1=_0x2d31a4;this['disposeWithMe'](this[_0x4a63d1(0x322)][_0x4a63d1(0x3fb)](this[_0x4a63d1(0x33d)]()));}['_createQuoteShortcut'](){const _0x59a8db=_0x2d31a4;return{'id':_0x34a41c,'binding':_0x28bc7e[_0x59a8db(0x28a)]|_0x341e94[_0x59a8db(0x273)],'priority':0x3e8,'preconditions':_0xb859ac=>_0xb859ac[_0x59a8db(0x2af)](_0x59a8db(0x3eb))&&this['_commandService'][_0x59a8db(0x3ed)](_0x34a41c)};}};zr=J([q(0x0,_0x2a0a40),q(0x1,_0x23e2ca)],zr);const Br=[Mn,Nn,Rr];let Vr=class extends _0x9932d8{constructor(_0x1e596c,_0x5a7916,_0x27d8ab,_0x4a7d44,_0x3d799e){const _0x2f6701=_0x2d31a4;super(),this[_0x2f6701(0x2d9)]=_0x1e596c,this[_0x2f6701(0x235)]=_0x5a7916,this[_0x2f6701(0x318)]=_0x27d8ab,this[_0x2f6701(0x4b2)]=_0x4a7d44,this[_0x2f6701(0x263)]=_0x3d799e,K(this,_0x2f6701(0x3f3),!0x1),this['disposeWithMe'](_0x5a6bc0(this[_0x2f6701(0x2d9)][_0x2f6701(0x49c)]['pipe'](_0x35dd5f(this['dispose$']))[_0x2f6701(0x45b)](_0x458fe7=>{const _0x237a32=_0x2f6701;this[_0x237a32(0x3f3)]=_0x458fe7,this[_0x237a32(0x446)]();}))),this['disposeWithMe'](_0x5a6bc0(this[_0x2f6701(0x318)][_0x2f6701(0x1b8)][_0x2f6701(0x4b1)](_0x35dd5f(this[_0x2f6701(0x1c3)]))['subscribe'](()=>{this['_syncContext']();}))),this[_0x2f6701(0x42f)](_0x5a6bc0(this[_0x2f6701(0x4b2)][_0x2f6701(0x24d)]['pipe'](_0x35dd5f(this['dispose$']))['subscribe'](()=>{const _0x1ea4e2=_0x2f6701;this[_0x1ea4e2(0x446)]();}))),this[_0x2f6701(0x446)]();}[_0x2d31a4(0x446)](){const _0x41d9ec=_0x2d31a4;var _0x1b25aa,_0x5a68c8;let _0x5ea71e=this[_0x41d9ec(0x318)]['getSnapshot'](),_0x1f0fb8=this[_0x41d9ec(0x4b2)][_0x41d9ec(0x2ea)](),_0x5ddd16=_0x1f0fb8!=null&&_0x1f0fb8['visible']?_0x1f0fb8[_0x41d9ec(0x3c9)]:_0x5ea71e[_0x41d9ec(0x27b)],_0x12be48=_0x5ea71e[_0x41d9ec(0x330)]??_0x5ea71e[_0x41d9ec(0x3f9)][0x0],_0x7dc6a1=_0x5ea71e['context']??{'unitId':this[_0x41d9ec(0x2d9)]['unitId'],'subUnitId':this['_renderContext'][_0x41d9ec(0x1da)][_0x41d9ec(0x4a9)]()},_0x3898bd=this[_0x41d9ec(0x3f3)]&&!!_0x12be48&&_0x5ea71e[_0x41d9ec(0x3f9)][_0x41d9ec(0x1ab)]===0x1&&!_0x5ddd16&&!_0x5ea71e[_0x41d9ec(0x23a)],_0x32b28c=this[_0x41d9ec(0x3f3)]?this[_0x41d9ec(0x235)][_0x41d9ec(0x397)](_0x7dc6a1[_0x41d9ec(0x499)],_0x7dc6a1[_0x41d9ec(0x452)]):{};this['_contextService'][_0x41d9ec(0x1cd)](Mn,_0x3898bd&&!!_0xd8e37e((_0x1b25aa=_0x32b28c[_0x12be48])==null?void 0x0:_0x1b25aa['element'])),this['_contextService'][_0x41d9ec(0x1cd)](Nn,this['_isActive']&&_0x5ea71e['selectedIds'][_0x41d9ec(0x1ab)]===0x0&&!_0x5ea71e[_0x41d9ec(0x330)]&&!_0x5ddd16&&!_0x5ea71e[_0x41d9ec(0x23a)]),this[_0x41d9ec(0x263)][_0x41d9ec(0x1cd)](Rr,!!_0x5ddd16&&!!_0xd8e37e((_0x5a68c8=_0x32b28c[_0x5ddd16])==null?void 0x0:_0x5a68c8[_0x41d9ec(0x4b4)]));}[_0x2d31a4(0x262)](){const _0x179876=_0x2d31a4;this[_0x179876(0x1ce)](),super['dispose']();}[_0x2d31a4(0x1ce)](){const _0x12980b=_0x2d31a4;Br['forEach'](_0x49e8de=>this[_0x12980b(0x263)]['setContextValue'](_0x49e8de,!0x1));}};Vr=J([q(0x1,_0x4a13c4(_0x495947)),q(0x2,_0x4a13c4(_0x452a90)),q(0x3,_0x4a13c4(_0x16b84e)),q(0x4,_0x2a095c)],Vr);var Hr=class extends wr{async['_handlePointerDown'](_0x1a0571,_0x55fb98,_0x206980){await this['_insertMindMap'](_0x1a0571,_0x55fb98,_0x206980);}};const Ur={'id':'board.operation.mind-map.open-panel','type':_0x1162ea[_0x2d31a4(0x224)],'handler':(_0x2e3441,_0x3506c9)=>!!(_0x3506c9!=null&&_0x3506c9['unitId'])&&!!_0x3506c9[_0x2d31a4(0x452)]&&!!_0x3506c9['scopeId']},Wr='board.mind-map.panel',Gr=[_0x2d31a4(0x407),'layout','importExport'];_0x5242c3['horizontalGap'],_0x5242c3[_0x2d31a4(0x3a4)],_0x5242c3[_0x2d31a4(0x46b)];const Kr=[{'labelKey':_0x2d31a4(0x333),'key':_0x2d31a4(0x48c),..._0x16a7d3[_0x2d31a4(0x48c)]},{'labelKey':_0x2d31a4(0x1c6),'key':'siblingGap',..._0x16a7d3[_0x2d31a4(0x3a4)]},{'labelKey':_0x2d31a4(0x253),'key':_0x2d31a4(0x46b),..._0x16a7d3['branchGap']}],qr=[{'labelKey':_0x2d31a4(0x31e),'value':'right'},{'labelKey':_0x2d31a4(0x24a),'value':_0x2d31a4(0x1ac)},{'labelKey':_0x2d31a4(0x29e),'value':_0x2d31a4(0x400)}],Jr=[{'labelKey':_0x2d31a4(0x1fe),'value':_0x2d31a4(0x2bb)},{'labelKey':'boards-mind-ui.panel.structureKind.mindmapVertical','value':_0x2d31a4(0x433)},{'labelKey':'boards-mind-ui.panel.structureKind.treeRight','value':'tree-right'},{'labelKey':_0x2d31a4(0x419),'value':_0x2d31a4(0x341)},{'labelKey':'boards-mind-ui.panel.structureKind.treeAlternate','value':_0x2d31a4(0x453)},{'labelKey':_0x2d31a4(0x34a),'value':_0x2d31a4(0x338)},{'labelKey':_0x2d31a4(0x2f9),'value':_0x2d31a4(0x25f)}],Yr=[{'labelKey':'boards-mind-ui.panel.branchLineType.curve','value':_0x2d31a4(0x212)},{'labelKey':_0x2d31a4(0x2b6),'value':_0x2d31a4(0x305)},{'labelKey':_0x2d31a4(0x3ee),'value':_0x2d31a4(0x391)}];function Xr(_0x1e88d2){const _0x22d01a=_0x2d31a4;let _0x1b3c31=(_0x1e88d2==null?void 0x0:_0x1e88d2[_0x22d01a(0x46d)])??_0x5242c3[_0x22d01a(0x46d)];return{'spacing':{'horizontalGap':(_0x1e88d2==null?void 0x0:_0x1e88d2[_0x22d01a(0x48c)])??_0x5242c3['horizontalGap'],'siblingGap':(_0x1e88d2==null?void 0x0:_0x1e88d2[_0x22d01a(0x3a4)])??_0x5242c3['siblingGap'],'branchGap':(_0x1e88d2==null?void 0x0:_0x1e88d2[_0x22d01a(0x46b)])??_0x5242c3['branchGap']},'direction':(_0x1e88d2==null?void 0x0:_0x1e88d2['direction'])??_0x5242c3['direction'],'structureKind':_0x1b3c31,'branchLineType':_0x498b4a(_0x1b3c31,_0x1e88d2==null?void 0x0:_0x1e88d2[_0x22d01a(0x365)])};}async function Zr(_0x5876b0,_0x2e08db){const _0x570bfc=_0x2d31a4;return await Promise[_0x570bfc(0x48a)](_0x5876b0['executeCommand'](_0x577e6f['id'],_0x2e08db))?(await Promise[_0x570bfc(0x48a)](_0x5876b0['executeCommand'](_0x59d4d9['id'],{'unitId':_0x2e08db['unitId'],'subUnitId':_0x2e08db[_0x570bfc(0x452)],'scopeId':_0x2e08db[_0x570bfc(0x435)]})),!0x0):!0x1;}async function Qr(_0x422a75,_0x667d00){const _0x2da652=_0x2d31a4;return await Promise[_0x2da652(0x48a)](_0x422a75[_0x2da652(0x38b)](_0x1982fa['id'],_0x667d00))?(await Promise[_0x2da652(0x48a)](_0x422a75['executeCommand'](_0x59d4d9['id'],{'unitId':_0x667d00[_0x2da652(0x499)],'subUnitId':_0x667d00[_0x2da652(0x452)],'scopeId':_0x667d00[_0x2da652(0x435)]})),!0x0):!0x1;}async function $r(_0x4631a1,_0x2fe9cd){const _0x19e2c9=_0x2d31a4;return await Promise[_0x19e2c9(0x48a)](_0x4631a1[_0x19e2c9(0x38b)](_0x577e6f['id'],{'unitId':_0x2fe9cd[_0x19e2c9(0x499)],'subUnitId':_0x2fe9cd[_0x19e2c9(0x452)],'scopeId':_0x2fe9cd[_0x19e2c9(0x435)],..._0x2fe9cd[_0x19e2c9(0x48c)]===void 0x0?{}:{'horizontalGap':_0x2fe9cd[_0x19e2c9(0x48c)]},..._0x2fe9cd['siblingGap']===void 0x0?{}:{'siblingGap':_0x2fe9cd['siblingGap']},..._0x2fe9cd['branchGap']===void 0x0?{}:{'branchGap':_0x2fe9cd[_0x19e2c9(0x46b)]}}))?(await Promise[_0x19e2c9(0x48a)](_0x4631a1['executeCommand'](_0x59d4d9['id'],{'unitId':_0x2fe9cd[_0x19e2c9(0x499)],'subUnitId':_0x2fe9cd[_0x19e2c9(0x452)],'scopeId':_0x2fe9cd[_0x19e2c9(0x435)]})),!0x0):!0x1;}async function ei(_0x312907,_0x44aab1){const _0x503473=_0x2d31a4;return _0x44aab1[_0x503473(0x26d)]===_0x44aab1[_0x503473(0x2b4)]||!await Promise[_0x503473(0x48a)](_0x312907[_0x503473(0x38b)](_0x48a61f['id'],{'unitId':_0x44aab1[_0x503473(0x499)],'subUnitId':_0x44aab1[_0x503473(0x452)],'nodeId':_0x44aab1[_0x503473(0x26d)],'targetNodeId':_0x44aab1['targetNodeId'],'referenceNodeId':_0x44aab1[_0x503473(0x2b4)],'placement':_0x44aab1['placement']}))?!0x1:(await Promise['resolve'](_0x312907[_0x503473(0x38b)](_0x59d4d9['id'],{'unitId':_0x44aab1[_0x503473(0x499)],'subUnitId':_0x44aab1[_0x503473(0x452)],'scopeId':_0x44aab1[_0x503473(0x435)]})),!0x0);}async function ti(_0x400532,_0x714c8f){const _0x2a200a=_0x2d31a4;let _0x161e3c=_0x714c8f[_0x2a200a(0x2be)][_0x2a200a(0x1c2)]();return!_0x161e3c||!await Promise['resolve'](_0x400532[_0x2a200a(0x38b)](_0x3a4e24['id'],{'unitId':_0x714c8f['unitId'],'subUnitId':_0x714c8f['subUnitId'],'nodeId':_0x714c8f['nodeId'],'text':_0x161e3c}))?!0x1:(await Promise[_0x2a200a(0x48a)](_0x400532['executeCommand'](_0x59d4d9['id'],{'unitId':_0x714c8f[_0x2a200a(0x499)],'subUnitId':_0x714c8f['subUnitId'],'scopeId':_0x714c8f[_0x2a200a(0x435)]})),!0x0);}async function ni(_0x34093f){const _0x5b8f67=_0x2d31a4;var _0xe7fbbc;let _0xfc0430=(_0xe7fbbc=globalThis[_0x5b8f67(0x2cf)])==null?void 0x0:_0xe7fbbc[_0x5b8f67(0x495)];return _0xfc0430!=null&&_0xfc0430['writeText']?(await _0xfc0430['writeText'](_0x34093f),!0x0):!0x1;}async function ri(_0x17ab69,_0x542bb2,_0x1a70b5=ni){const _0x1ce472=_0x2d31a4;let _0x19d7e4=await Promise['resolve'](_0x17ab69[_0x1ce472(0x38b)](_0x40d1d1['id'],_0x542bb2));if(typeof _0x19d7e4!=_0x1ce472(0x3dd)||!_0x19d7e4)return!0x1;try{return await _0x1a70b5(_0x19d7e4)!==!0x1;}catch{return!0x1;}}async function ii(_0x8d5f8e,_0x347669){const _0x58e0d5=_0x2d31a4;return _0x347669['opml']['trim']()?(await _0x8d5f8e[_0x58e0d5(0x38b)](_0x1f6a3b['id'],_0x347669))[_0x58e0d5(0x35b)]:!0x1;}function ai(_0x42d663,_0x3a05e3){const _0x9ad97a=_0x2d31a4;let _0x84321d=_0x9ad97a(0x26a)in _0x42d663['element']?_0x42d663[_0x9ad97a(0x4b4)]['shapeData'][_0x9ad97a(0x29d)]:void 0x0;return(_0x84321d==null?void 0x0:_0x84321d['text'])||_0x3a05e3;}function oi(_0x3b2a31,_0x1a07a9,_0x1ff9c3=_0x355d17){const _0x22e9e7=_0x2d31a4;let _0x4181ab=Object[_0x22e9e7(0x379)](_0x3b2a31)[_0x22e9e7(0x461)](_0x1da485=>{const _0x7fa8d2=_0x22e9e7;let _0xe05f1c=_0xd8e37e(_0x1da485['element']);return(_0xe05f1c==null?void 0x0:_0xe05f1c[_0x7fa8d2(0x2f8)])===_0x1a07a9?{'data':_0x1da485,'meta':_0xe05f1c}:null;})[_0x22e9e7(0x2c5)](_0xfa442f=>!!_0xfa442f),_0x644249=new Map();_0x4181ab[_0x22e9e7(0x205)](_0x61de0e=>{const _0x5dacc7=_0x22e9e7;let _0xf65b4d=_0x61de0e['meta'][_0x5dacc7(0x3e6)];_0x644249['set'](_0xf65b4d,[..._0x644249[_0x5dacc7(0x267)](_0xf65b4d)??[],_0x61de0e]);}),_0x644249['forEach'](_0x5017a3=>{const _0x57a552=_0x22e9e7;_0x5017a3[_0x57a552(0x222)]((_0x489bee,_0x5d43f8)=>_0x28a7e2(_0x489bee[_0x57a552(0x1b0)][_0x57a552(0x2d8)],_0x5d43f8[_0x57a552(0x1b0)][_0x57a552(0x2d8)])||_0x489bee['data'][_0x57a552(0x421)][_0x57a552(0x362)](_0x5d43f8['data'][_0x57a552(0x421)]));});let _0x17b916=[],_0x2e1828=(_0x6f3a98,_0x38646c)=>{const _0x3344d8=_0x22e9e7;(_0x644249[_0x3344d8(0x267)](_0x6f3a98)??[])[_0x3344d8(0x205)](_0xe1275e=>{const _0x534c34=_0x3344d8;_0x17b916[_0x534c34(0x228)]({'nodeId':_0xe1275e['data'][_0x534c34(0x421)],'depth':_0x38646c,'text':ai(_0xe1275e[_0x534c34(0x296)],_0x1ff9c3)}),_0x2e1828(_0xe1275e[_0x534c34(0x296)]['elementId'],_0x38646c+0x1);});};return _0x2e1828(null,0x0),_0x17b916;}function si(_0x5b6f89,_0x315028){const _0x56abcb=_0x2d31a4;let _0x1377b7=_0x315028[_0x56abcb(0x1c2)]()[_0x56abcb(0x40a)]();return _0x1377b7?_0x5b6f89[_0x56abcb(0x2c5)](_0x2e3a7d=>_0x2e3a7d[_0x56abcb(0x2be)]['toLowerCase']()[_0x56abcb(0x304)](_0x1377b7)):_0x5b6f89;}function ci(_0x56df16){const _0x18c677=_0x2d31a4;return{'paddingInlineStart':0x8+(Number[_0x18c677(0x31d)](_0x56df16)&&_0x56df16>0x0?_0x56df16:0x0)*0x10};}function li(_0x12873f){const _0x29b48c=_0x2d31a4;return _0x1d0d1f(_0x4d6766,{'className':_0x29b48c(0x1f9),..._0x12873f});}function ui(_0x10243d){const _0x51a6c4=_0x2d31a4;return _0xf895cc('section',{'className':_0x1f61d6(_0x51a6c4(0x1cc),_0x54a2dc),'data-board-mind-map-panel-section':_0x51a6c4(0x30a),'children':[_0x1d0d1f('h3',{'className':_0x51a6c4(0x352),'children':_0x10243d[_0x51a6c4(0x28f)]}),_0x10243d[_0x51a6c4(0x20c)]]});}function di(_0x5b587b,_0x4d885f=_0x2d31a4(0x407)){const _0x1d90b0=_0x2d31a4;var _0x4615ab,_0x267d53,_0x31d822;let _0x1051a9=_0x1b73d0(_0x2a0a40),_0x49b88b=_0x1b73d0(_0x452a90),_0x37eba2=_0x1b73d0(_0x495947),_0x2edbdd=_0x1b73d0(_0x3ff2da),[,_0x48f3fb]=_0xf932c1(_0x1d7aa1=>_0x1d7aa1+0x1,0x0);_0x416c76(()=>{const _0x1a8534=_0x4547;let _0xf769ec=_0x38bf41(_0x37eba2[_0x1a8534(0x33f)],_0x37eba2[_0x1a8534(0x27d)],_0x37eba2[_0x1a8534(0x1cf)])[_0x1a8534(0x45b)](_0x23859c=>{const _0x1cf56e=_0x1a8534;_0x23859c[_0x1cf56e(0x354)](_0x27d84a=>_0x27d84a[_0x1cf56e(0x499)]===_0x5b587b[_0x1cf56e(0x499)]&&_0x27d84a[_0x1cf56e(0x452)]===_0x5b587b[_0x1cf56e(0x452)])&&_0x48f3fb();});return()=>_0xf769ec[_0x1a8534(0x298)]();},[_0x37eba2,_0x5b587b[_0x1d90b0(0x499)],_0x5b587b[_0x1d90b0(0x452)]]);let _0x24ab1f=_0x37eba2[_0x1d90b0(0x397)](_0x5b587b[_0x1d90b0(0x499)],_0x5b587b['subUnitId']),_0x334a7c=oi(_0x24ab1f,_0x5b587b[_0x1d90b0(0x435)],_0x2edbdd['t'](_0x1d90b0(0x4ad))),_0x2fd759=(_0x4615ab=_0x3a557b((_0x267d53=_0x24ab1f[_0x5b587b[_0x1d90b0(0x435)]])==null?void 0x0:_0x267d53[_0x1d90b0(0x4b4)]))==null?void 0x0:_0x4615ab['layout'],[_0x203d36,_0x3f3df4]=_0x45ab05(''),[_0x357b1b,_0x50db59]=_0x45ab05(null),[_0x150905,_0x5d579c]=_0x45ab05(''),{spacing:_0x1d2d69,direction:_0xa4b6d1,structureKind:_0x14b660,branchLineType:_0x9cf869}=Xr(_0x2fd759),[_0x1767b7,_0x55891e]=_0x45ab05(null),[_0x343914,_0x186c37]=_0x45ab05(_0x4d885f),_0x2167f6=si(_0x334a7c,_0x203d36),_0x25e5f8={'unitId':_0x5b587b[_0x1d90b0(0x499)],'subUnitId':_0x5b587b[_0x1d90b0(0x452)],'scopeId':_0x5b587b[_0x1d90b0(0x435)]};return{'commandService':_0x1051a9,'elementStateService':_0x49b88b,'localeService':_0x2edbdd,'query':_0x203d36,'setQuery':_0x3f3df4,'editingOutlineNode':_0x357b1b,'setEditingOutlineNode':_0x50db59,'opmlText':_0x150905,'setOpmlText':_0x5d579c,'spacing':_0x1d2d69,'layoutDirection':_0xa4b6d1,'structureKind':_0x14b660,'branchLineType':_0x9cf869,'setDraggedOutlineNodeId':_0x55891e,'activeTab':_0x343914,'setActiveTab':_0x186c37,'visibleOutlineItems':_0x2167f6,'baseParams':_0x25e5f8,'tabItems':Gr[_0x1d90b0(0x461)](_0x2cf9aa=>({'label':_0x2edbdd['t'](_0x1d90b0(0x46f)+_0x2cf9aa),'value':_0x2cf9aa})),'selectedNode':_0x5b587b[_0x1d90b0(0x26d)]?(_0x31d822=_0x24ab1f[_0x5b587b[_0x1d90b0(0x26d)]])==null?void 0x0:_0x31d822[_0x1d90b0(0x4b4)]:void 0x0,'branchLineItems':Yr[_0x1d90b0(0x2c5)](_0x2f17b8=>_0x2f17b8[_0x1d90b0(0x2fe)]!=='curve'||_0x540733(_0x14b660)),'changeLayout':_0x2b27f0=>Zr(_0x1051a9,{..._0x25e5f8,'direction':_0x2b27f0}),'changeStructureKind':_0x410644=>{let _0x1d8681=_0x498b4a(_0x410644,_0x9cf869);return Zr(_0x1051a9,{..._0x25e5f8,'structureKind':_0x410644,..._0x1d8681===_0x9cf869?null:{'branchLineType':_0x1d8681}});},'changeBranchLineType':_0xb95df2=>{let _0x41ef8f=_0x498b4a(_0x14b660,_0xb95df2);return Qr(_0x1051a9,{..._0x25e5f8,'branchLineType':_0x41ef8f});},'changeSpacing':(_0x570103,_0x1d8733)=>{let _0x160e37={..._0x1d2d69,[_0x570103]:_0x1d8733};return $r(_0x1051a9,{..._0x25e5f8,..._0x160e37});},'importOpml':()=>{const _0x5a2845=_0x1d90b0;ii(_0x1051a9,{'unitId':_0x5b587b[_0x5a2845(0x499)],'subUnitId':_0x5b587b[_0x5a2845(0x452)],'left':0x78,'top':0x78,'opml':_0x150905})[_0x5a2845(0x1d7)](_0x489def=>{_0x489def&&_0x5d579c('');});},'exportOpml':()=>ri(_0x1051a9,_0x25e5f8),'startRenameNode':(_0x4704e8,_0x1f3edf)=>{_0x50db59({'nodeId':_0x4704e8,'text':_0x1f3edf});},'commitRenameNode':()=>{const _0x50f060=_0x1d90b0;_0x357b1b&&ti(_0x1051a9,{..._0x25e5f8,'nodeId':_0x357b1b[_0x50f060(0x26d)],'text':_0x357b1b[_0x50f060(0x2be)]})[_0x50f060(0x1d7)](_0x314d46=>{_0x314d46&&_0x50db59(null);});},'reorderNode':(_0x509fda,_0x1ba85e)=>{const _0x8f4543=_0x1d90b0;if(_0x509fda[_0x8f4543(0x2f2)](),!_0x1767b7||_0x1767b7===_0x1ba85e)return;let _0x41ffb6=_0x509fda[_0x8f4543(0x408)]['getBoundingClientRect'](),_0x591757=_0x509fda['clientY']<_0x41ffb6['top']+_0x41ffb6[_0x8f4543(0x41e)]/0x2?'before':_0x8f4543(0x289);_0x55891e(null),ei(_0x1051a9,{..._0x25e5f8,'nodeId':_0x1767b7,'targetNodeId':_0x1ba85e,'placement':_0x591757});}};}function fi(_0x569b7e){const _0x5cb714=_0x2d31a4;let {elementStateService:_0x810dc7,localeService:_0x37aabe,query:_0x403273,setQuery:_0x18251c,editingOutlineNode:_0x7c165d,setEditingOutlineNode:_0x3cb717,opmlText:_0x47dfef,setOpmlText:_0x4bfa45,spacing:_0xa09434,layoutDirection:_0x2de9ef,structureKind:_0x10341e,branchLineType:_0x2f1de7,setDraggedOutlineNodeId:_0x2a09de,activeTab:_0x29adef,setActiveTab:_0x20511c,visibleOutlineItems:_0x587eba,tabItems:_0x115a1d,branchLineItems:_0x2aaf28,changeLayout:_0x1c9a39,changeStructureKind:_0x3a82b8,changeBranchLineType:_0x197232,changeSpacing:_0xd9775a,importOpml:_0x43e699,exportOpml:_0x193db9,startRenameNode:_0x155569,commitRenameNode:_0x189288,reorderNode:_0x951f4b}=di(_0x569b7e);return _0xf895cc(_0x5cb714(0x2de),{'className':'univer-size-full\x20univer-bg-gray-0\x20univer-text-sm\x20univer-text-gray-700\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-200','data-board-mind-map-panel':_0x5cb714(0x30a),'children':[_0x1d0d1f('div',{'className':_0x1f61d6(_0x5cb714(0x46c),_0x54a2dc),'data-board-mind-map-panel-tabs':_0x5cb714(0x30a),'children':_0x1d0d1f(li,{'items':_0x115a1d,'value':_0x29adef,'onChange':_0x42a866=>_0x20511c(_0x42a866)})}),_0x29adef===_0x5cb714(0x407)&&_0x1d0d1f(ui,{'title':_0x37aabe['t'](_0x5cb714(0x1f2)),'children':_0xf895cc(_0x5cb714(0x2de),{'children':[_0x1d0d1f(_0x12c1c2,{'slot':_0x1d0d1f(_0x395528,{}),'value':_0x403273,'placeholder':_0x37aabe['t'](_0x5cb714(0x3e9)),'className':_0x1f61d6(_0x5cb714(0x24b),!0x1),'onChange':_0x18251c}),_0x587eba[_0x5cb714(0x1ab)]?_0x1d0d1f('ol',{'className':'univer-space-y-1','children':_0x587eba[_0x5cb714(0x461)](_0x1aaf0e=>_0x1d0d1f('li',{'draggable':!0x0,'className':_0x5cb714(0x20e),'style':ci(_0x1aaf0e[_0x5cb714(0x292)]),'onDragStart':_0x5a1c3e=>{const _0x50d18b=_0x5cb714;var _0x45eeb5;_0x2a09de(_0x1aaf0e[_0x50d18b(0x26d)]),(_0x45eeb5=_0x5a1c3e[_0x50d18b(0x1ef)])==null||_0x45eeb5[_0x50d18b(0x39a)](_0x50d18b(0x398),_0x1aaf0e[_0x50d18b(0x26d)]),_0x5a1c3e[_0x50d18b(0x1ef)]&&(_0x5a1c3e['dataTransfer'][_0x50d18b(0x218)]=_0x50d18b(0x23c));},'onDragOver':_0x5b30cf=>{const _0x17a943=_0x5cb714;_0x5b30cf[_0x17a943(0x2f2)](),_0x5b30cf[_0x17a943(0x1ef)]&&(_0x5b30cf[_0x17a943(0x1ef)][_0x17a943(0x3cc)]=_0x17a943(0x23c));},'onDrop':_0x4058ac=>_0x951f4b(_0x4058ac,_0x1aaf0e[_0x5cb714(0x26d)]),'onDragEnd':()=>_0x2a09de(null),'children':(_0x7c165d==null?void 0x0:_0x7c165d[_0x5cb714(0x26d)])===_0x1aaf0e[_0x5cb714(0x26d)]?_0xf895cc(_0x5cb714(0x2de),{'className':_0x1f61d6(_0x5cb714(0x477),_0x5cb714(0x232)),'children':[_0x1d0d1f(_0x12c1c2,{'autoFocus':!0x0,'size':_0x5cb714(0x43a),'className':void 0x0,'value':_0x7c165d['text'],'onChange':_0x45b6b8=>_0x3cb717({'nodeId':_0x1aaf0e[_0x5cb714(0x26d)],'text':_0x45b6b8}),'onKeyDown':_0x447b88=>{const _0x426817=_0x5cb714;_0x447b88[_0x426817(0x3a2)]==='Enter'&&_0x189288(),_0x447b88[_0x426817(0x3a2)]===_0x426817(0x349)&&_0x3cb717(null);}}),_0x1d0d1f(_0x52c5ff,{'className':void 0x0,'size':'small','variant':_0x5cb714(0x3af),'disabled':!_0x7c165d[_0x5cb714(0x2be)]['trim'](),'onClick':_0x189288,'children':_0x37aabe['t']('boards-mind-ui.panel.rename')}),_0x1d0d1f(_0x52c5ff,{'className':void 0x0,'size':_0x5cb714(0x43a),'variant':'default','onClick':()=>_0x3cb717(null),'children':_0x37aabe['t'](_0x5cb714(0x1eb))})]}):_0xf895cc(_0x2f0da1,{'children':[_0x1d0d1f(_0x52c5ff,{'size':_0x5cb714(0x43a),'variant':'ghost','className':_0x1f61d6('univer-min-w-0\x20univer-flex-1\x20univer-justify-start\x20univer-truncate\x20univer-text-left',!0x1),'onClick':()=>_0x810dc7[_0x5cb714(0x2b0)]({'unitId':_0x569b7e[_0x5cb714(0x499)],'subUnitId':_0x569b7e[_0x5cb714(0x452)]},[_0x1aaf0e['nodeId']],_0x1aaf0e[_0x5cb714(0x26d)]),'children':_0x1aaf0e[_0x5cb714(0x2be)]}),_0x1d0d1f(_0x52c5ff,{'className':_0x1f61d6(_0x5cb714(0x288),_0x5cb714(0x34c)),'size':_0x5cb714(0x43a),'variant':_0x5cb714(0x28c),'onClick':()=>_0x155569(_0x1aaf0e[_0x5cb714(0x26d)],_0x1aaf0e[_0x5cb714(0x2be)]),'children':_0x37aabe['t']('boards-mind-ui.panel.rename')})]})},_0x1aaf0e[_0x5cb714(0x26d)]))}):_0x1d0d1f(_0x5cb714(0x2de),{'className':_0x5cb714(0x479),'data-board-mind-map-panel-empty-state':_0x5cb714(0x30a),'children':_0x37aabe['t'](_0x5cb714(0x482))})]})}),_0x29adef==='layout'&&_0x1d0d1f(ui,{'title':_0x37aabe['t']('boards-mind-ui.panel.tab.layout'),'children':_0xf895cc(_0x5cb714(0x2de),{'className':_0x5cb714(0x326),'children':[_0x1d0d1f(_0x5cb714(0x2de),{'className':'univer-flex\x20univer-gap-2','children':_0x1d0d1f(li,{'items':Jr[_0x5cb714(0x461)](_0x545127=>({'label':_0x37aabe['t'](_0x545127[_0x5cb714(0x1f6)]),'value':_0x545127[_0x5cb714(0x2fe)]})),'value':_0x10341e,'onChange':_0x1eeafe=>_0x3a82b8(_0x1eeafe)})}),_0x1d0d1f(_0x5cb714(0x2de),{'className':'univer-flex\x20univer-gap-2','children':_0x1d0d1f(li,{'items':qr[_0x5cb714(0x461)](_0x3cc615=>({'label':_0x37aabe['t'](_0x3cc615[_0x5cb714(0x1f6)]),'value':_0x3cc615[_0x5cb714(0x2fe)]})),'value':_0x2de9ef,'onChange':_0x1a4524=>_0x1c9a39(_0x1a4524)})}),_0x1d0d1f(_0x5cb714(0x2de),{'className':_0x5cb714(0x275),'children':_0x1d0d1f(li,{'items':_0x2aaf28[_0x5cb714(0x461)](_0x1cbc71=>({'label':_0x37aabe['t'](_0x1cbc71[_0x5cb714(0x1f6)]),'value':_0x1cbc71[_0x5cb714(0x2fe)]})),'value':_0x2f1de7,'onChange':_0x2984fd=>_0x197232(_0x2984fd)})}),_0x1d0d1f(_0x5cb714(0x2de),{'className':_0x5cb714(0x375),'children':Kr['map'](({labelKey:_0x152d42,key:_0x4eb924,min:_0x197f7d,max:_0x4e7cb1})=>_0xf895cc(_0x5cb714(0x2e4),{'className':_0x5cb714(0x373),'children':[_0x1d0d1f(_0x5cb714(0x377),{'className':'univer-w-20\x20univer-shrink-0','children':_0x37aabe['t'](_0x152d42)}),_0x1d0d1f(_0x49c357,{'controls':!0x0,'inputClassName':void 0x0,'min':_0x197f7d,'max':_0x4e7cb1,'step':0x4,'value':_0xa09434[_0x4eb924],'precision':0x0,'className':_0x5cb714(0x2ae),'onChange':_0x52aed3=>_0xd9775a(_0x4eb924,Number(_0x52aed3??_0x197f7d))})]},_0x4eb924))})]})}),_0x29adef===_0x5cb714(0x47b)&&_0x1d0d1f(ui,{'title':_0x37aabe['t']('boards-mind-ui.panel.tab.importExport'),'children':_0xf895cc(_0x5cb714(0x2de),{'className':_0x5cb714(0x413),'children':[_0x1d0d1f(_0x3b1bc9,{'className':_0x1f61d6(_0x5cb714(0x49f),_0x5cb714(0x34c)),'placeholder':_0x37aabe['t'](_0x5cb714(0x1d3)),'value':_0x47dfef,'onValueChange':_0x4bfa45}),_0xf895cc(_0x5cb714(0x2de),{'className':_0x5cb714(0x275),'children':[_0x1d0d1f(_0x52c5ff,{'className':void 0x0,'size':_0x5cb714(0x43a),'variant':'primary','disabled':!_0x47dfef[_0x5cb714(0x1c2)](),'onClick':_0x43e699,'children':_0x37aabe['t'](_0x5cb714(0x2c8))}),_0x1d0d1f(_0x52c5ff,{'className':void 0x0,'size':_0x5cb714(0x43a),'variant':_0x5cb714(0x28c),'onClick':_0x193db9,'children':_0x37aabe['t']('boards-mind-ui.panel.exportOPML')})]})]})})]});}let pi=class extends _0x13ec99{constructor(_0xc34f76,_0x59fba0,_0x2f65b7){const _0x196824=_0x2d31a4;super(),this['_commandService']=_0xc34f76,this['_localeService']=_0x59fba0,this[_0x196824(0x1bf)]=_0x2f65b7,K(this,_0x196824(0x1e0),null),this['disposeWithMe'](this[_0x196824(0x2a3)][_0x196824(0x4bd)](Ur)),this['disposeWithMe'](this[_0x196824(0x2a3)]['onCommandExecuted'](_0x1bc715=>{const _0x2e755e=_0x196824;if(_0x1bc715['id']!==Ur['id'])return;let _0x2f4496=_0x1bc715[_0x2e755e(0x49d)];_0x2f4496&&_0x2e755e(0x499)in _0x2f4496&&typeof _0x2f4496['unitId']=='string'&&'subUnitId'in _0x2f4496&&typeof _0x2f4496[_0x2e755e(0x452)]==_0x2e755e(0x3dd)&&_0x2e755e(0x435)in _0x2f4496&&typeof _0x2f4496[_0x2e755e(0x435)]==_0x2e755e(0x3dd)&&this[_0x2e755e(0x3a1)]({'unitId':_0x2f4496[_0x2e755e(0x499)],'subUnitId':_0x2f4496[_0x2e755e(0x452)],'scopeId':_0x2f4496[_0x2e755e(0x435)],'nodeId':'nodeId'in _0x2f4496&&typeof _0x2f4496[_0x2e755e(0x26d)]==_0x2e755e(0x3dd)?_0x2f4496[_0x2e755e(0x26d)]:void 0x0});}));}[_0x2d31a4(0x262)](){const _0x4e90f8=_0x2d31a4;var _0x4f346f;(_0x4f346f=this['_sidebarDisposable'])==null||_0x4f346f['dispose'](),this[_0x4e90f8(0x1e0)]=null,super[_0x4e90f8(0x262)]();}[_0x2d31a4(0x3a1)](_0x16107a){const _0x217369=_0x2d31a4;var _0x43a2d9;let _0x4bc550={'label':Wr,..._0x16107a},_0x3f9b62={'id':Wr,'layout':_0x217369(0x2ca),'header':{'title':this[_0x217369(0x1bd)]['t'](_0x217369(0x264))},'width':0x184,'children':_0x4bc550,'onClose':()=>{const _0x5e033c=_0x217369;this[_0x5e033c(0x1e0)]=null;}};(_0x43a2d9=this[_0x217369(0x1e0)])==null||_0x43a2d9[_0x217369(0x262)](),this[_0x217369(0x1e0)]=this[_0x217369(0x1bf)]['open'](_0x3f9b62);}};pi=J([q(0x0,_0x2a0a40),q(0x1,_0x4a13c4(_0x3ff2da)),q(0x2,_0x4a13c4(_0x2f236d))],pi);function mi(_0x24195a){const _0x5c2de5=_0x2d31a4;let _0x310b61=_0x1b73d0(_0x2a0a40),_0x485885=_0x24195a[_0x5c2de5(0x279)]['extraProps'];return _0x485885?_0x1d0d1f(_0x4e880f,{'shapeRef':{'hostType':_0x4468f4[_0x5c2de5(0x3be)],'unitId':_0x485885[_0x5c2de5(0x499)],'subUnitId':_0x485885[_0x5c2de5(0x452)],'shapeId':_0x485885[_0x5c2de5(0x421)]},'onText':()=>qn(_0x310b61,_0x5c2de5(0x4bc)),'onStyle':()=>_0x310b61[_0x5c2de5(0x38b)](Ur['id'],{'unitId':_0x485885[_0x5c2de5(0x499)],'subUnitId':_0x485885[_0x5c2de5(0x452)],'scopeId':_0x485885[_0x5c2de5(0x435)],'nodeId':_0x485885[_0x5c2de5(0x421)]}),'onDelete':()=>qn(_0x310b61,_0x5c2de5(0x27f))}):null;}function hi(_0xf8e8c0){const _0x2f5884=_0x2d31a4;var _0x15fd4a,_0x50fe04,_0x509df0,_0x46a20c,_0x2d4b52;let _0x1dc49c=_0x1b73d0(_0x2a0a40),_0x53e24b=_0x1b73d0(_0x3ff2da),_0x2765b2=_0x1b73d0(_0x5eb3ad),_0x1ea65c=_0x49d992(_0x2765b2[_0x2f5884(0x2f1)],_0x2765b2[_0x2f5884(0x1b5)]()),[_0xdde74,_0x24117b]=_0x45ab05(null),_0x295dcc=_0x22040a(_0xf8e8c0[_0x2f5884(0x26a)]),_0x2dda11=_0x295dcc['ff']??_0x17912c[_0x2f5884(0x29d)][_0x2f5884(0x3bf)],_0x51aaf4=_0x295dcc['fs']??_0x17912c[_0x2f5884(0x29d)][_0x2f5884(0x282)];function _0x5ac5df(_0x5ad618){const _0x935a23=_0x2f5884;return _0x1dc49c['executeCommand'](_0x3a4e24['id'],{'unitId':_0xf8e8c0[_0x935a23(0x499)],'subUnitId':_0xf8e8c0[_0x935a23(0x452)],'nodeId':_0xf8e8c0[_0x935a23(0x26d)],..._0x5ad618});}let _0x21fcfc=[{'key':_0x2f5884(0x4ca),'value':((_0x15fd4a=_0xf8e8c0[_0x2f5884(0x26a)][_0x2f5884(0x4ca)])==null?void 0x0:_0x15fd4a[_0x2f5884(0x445)])??_0x17912c[_0x2f5884(0x4ca)]},{'key':_0x2f5884(0x2ac),'value':((_0x50fe04=_0xf8e8c0['shapeData'][_0x2f5884(0x2ac)])==null?void 0x0:_0x50fe04['color'])??_0x17912c['stroke']},{'key':_0x2f5884(0x2c2),'value':((_0x509df0=_0x295dcc['cl'])==null?void 0x0:_0x509df0[_0x2f5884(0x3b4)])??_0x17912c[_0x2f5884(0x29d)][_0x2f5884(0x445)]}];if(_0xdde74){var _0xb5919f;return _0xf895cc('div',{'className':_0x2f5884(0x459),'children':[_0x1d0d1f(_0x52c5ff,{'className':_0x2f5884(0x1f3),'onClick':()=>_0x24117b(null),'children':_0x53e24b['t'](_0x2f5884(0x1eb))}),_0xdde74===_0x2f5884(0x3bf)?_0x1ea65c==null?void 0x0:_0x1ea65c[_0x2f5884(0x461)](_0x5c1d92=>_0x1d0d1f(_0x52c5ff,{'className':'univer-min-h-12\x20univer-w-full','aria-pressed':_0x2dda11===_0x5c1d92[_0x2f5884(0x2fe)],'variant':_0x2dda11===_0x5c1d92[_0x2f5884(0x2fe)]?_0x2f5884(0x3af):_0x2f5884(0x28c),'onClick':async()=>{const _0x57a87d=_0x2f5884;await _0x5ac5df({'textStyle':{'fontFamily':_0x5c1d92[_0x57a87d(0x2fe)]}}),_0x24117b(null);},'children':_0x5c1d92[_0x2f5884(0x2e4)]},_0x5c1d92[_0x2f5884(0x2fe)])):_0x1d0d1f(_0x1865a5,{'value':(_0xb5919f=_0x21fcfc[_0x2f5884(0x261)](({key:_0x2906c8})=>_0x2906c8===_0xdde74))==null?void 0x0:_0xb5919f[_0x2f5884(0x2fe)],'onSelect':async _0x316920=>{_0xdde74==='fill'?await _0x5ac5df({'fillColor':_0x316920}):_0xdde74==='stroke'?await _0x5ac5df({'strokeColor':_0x316920}):await _0x5ac5df({'textStyle':{'color':_0x316920}}),_0x24117b(null);}})]});}let _0x4f6dfa=[{'key':_0x2f5884(0x478),'active':_0x295dcc['bl']===_0x8d9210[_0x2f5884(0x257)],'icon':_0x1d0d1f(_0x36b5ff,{})},{'key':_0x2f5884(0x339),'active':_0x295dcc['it']===_0x8d9210['TRUE'],'icon':_0x1d0d1f(_0x828192,{})},{'key':_0x2f5884(0x2a8),'active':((_0x46a20c=_0x295dcc['ul'])==null?void 0x0:_0x46a20c['s'])===_0x8d9210['TRUE'],'icon':_0x1d0d1f(_0x51461a,{})},{'key':_0x2f5884(0x470),'active':((_0x2d4b52=_0x295dcc['st'])==null?void 0x0:_0x2d4b52['s'])===_0x8d9210[_0x2f5884(0x257)],'icon':_0x1d0d1f(_0x1008c5,{})}];return _0xf895cc('div',{'className':_0x2f5884(0x459),'children':[_0x1d0d1f(_0x2f5884(0x2de),{'className':'univer-grid\x20univer-grid-cols-4\x20univer-gap-2','children':_0x4f6dfa[_0x2f5884(0x461)](({key:_0x1a27a3,active:_0x21e172,icon:_0x53db41})=>_0x1d0d1f(_0x52c5ff,{'className':_0x2f5884(0x246),'aria-label':_0x53e24b['t'](_0x2f5884(0x1f0)+_0x1a27a3),'aria-pressed':_0x21e172,'variant':_0x21e172?_0x2f5884(0x3af):_0x2f5884(0x28c),'onClick':()=>_0x5ac5df({'textStyle':{[_0x1a27a3]:!_0x21e172}}),'children':_0x53db41},_0x1a27a3))}),_0xf895cc(_0x52c5ff,{'className':_0x2f5884(0x21e),'onClick':()=>_0x24117b(_0x2f5884(0x3bf)),'children':[_0x1d0d1f('span',{'children':_0x53e24b['t'](_0x2f5884(0x383))}),_0x1d0d1f(_0x2f5884(0x377),{'children':_0x2dda11})]}),_0xf895cc(_0x2f5884(0x2e4),{'className':_0x2f5884(0x34b),'children':[_0x1d0d1f(_0x2f5884(0x377),{'children':_0x53e24b['t'](_0x2f5884(0x3ad))}),_0x1d0d1f(_0x49c357,{'className':_0x2f5884(0x239),'inputClassName':_0x2f5884(0x39c),'controls':!0x1,'min':0x1,'value':_0x51aaf4,'onChange':_0x13c3b6=>{if(_0x13c3b6!=null)return _0x5ac5df({'textStyle':{'fontSize':_0x13c3b6}});}})]}),_0x21fcfc[_0x2f5884(0x461)](({key:_0x1ef922,value:_0x1a037f})=>_0xf895cc(_0x52c5ff,{'className':_0x2f5884(0x21e),'onClick':()=>_0x24117b(_0x1ef922),'children':[_0x1d0d1f(_0x2f5884(0x377),{'children':_0x53e24b['t']('boards-mind-ui.toolbar.action.'+_0x1ef922)}),_0x1d0d1f(_0x2f5884(0x377),{'className':_0x2f5884(0x3ae),'style':{'backgroundColor':_0x1a037f}})]},_0x1ef922))]});}function gi(_0x2d8801){const _0x3e086e=_0x2d31a4;return _0x1d0d1f(_0x3e086e(0x2de),{'className':_0x1f61d6(_0x3e086e(0x2ce),_0x2d8801[_0x3e086e(0x23f)][_0x3e086e(0x1ab)]===0x4?'univer-grid-cols-4':_0x3e086e(0x245)),'children':_0x2d8801['items']['map'](_0x5be015=>_0x1d0d1f(_0x52c5ff,{'className':_0x3e086e(0x3d2),'variant':_0x2d8801[_0x3e086e(0x2fe)]===_0x5be015[_0x3e086e(0x2fe)]?_0x3e086e(0x3af):'default','aria-pressed':_0x2d8801['value']===_0x5be015['value'],'onClick':()=>_0x2d8801['onChange'](_0x5be015[_0x3e086e(0x2fe)]),'children':_0x5be015[_0x3e086e(0x2e4)]},_0x5be015[_0x3e086e(0x2fe)]))});}function _i(_0x4d0341){const _0x37e872=_0x2d31a4;let {commandService:_0x4b42cf,elementStateService:_0x105f55,localeService:_0x1b65d2,query:_0x233d1a,setQuery:_0x142345,editingOutlineNode:_0x47ba9a,setEditingOutlineNode:_0x5a62b4,opmlText:_0x3ef754,setOpmlText:_0x44161c,spacing:_0x5c1017,layoutDirection:_0x1faa1e,structureKind:_0x41a18f,branchLineType:_0x453ba7,activeTab:_0x8bac33,setActiveTab:_0x552ab7,visibleOutlineItems:_0x144c05,baseParams:_0x3d7a2f,tabItems:_0x132171,selectedNode:_0x487544,branchLineItems:_0x375b76,changeLayout:_0x28248e,changeStructureKind:_0x528e4d,changeBranchLineType:_0x24121f,changeSpacing:_0x2eb696,importOpml:_0x24a58a,startRenameNode:_0x39e864,commitRenameNode:_0x37378c}=di(_0x4d0341,_0x4d0341[_0x37e872(0x26d)]?'style':'structure');return(_0x487544==null?void 0x0:_0x487544['type'])===_0x2cde10[_0x37e872(0x41d)]&&_0x132171[_0x37e872(0x475)]({'label':_0x1b65d2['t'](_0x37e872(0x3ec)),'value':'style'}),_0xf895cc('div',{'className':_0x37e872(0x374),'data-board-mind-map-panel':_0x37e872(0x30a),'children':[_0x1d0d1f(_0x37e872(0x2de),{'className':_0x1f61d6(_0x37e872(0x46c),_0x54a2dc),'data-board-mind-map-panel-tabs':_0x37e872(0x30a),'children':_0x1d0d1f(gi,{'items':_0x132171,'value':_0x8bac33,'onChange':_0xabdb29=>_0x552ab7(_0xabdb29)})}),_0x8bac33===_0x37e872(0x2a4)&&(_0x487544==null?void 0x0:_0x487544[_0x37e872(0x48d)])===_0x2cde10[_0x37e872(0x41d)]&&_0x1d0d1f(hi,{'unitId':_0x4d0341[_0x37e872(0x499)],'subUnitId':_0x4d0341[_0x37e872(0x452)],'nodeId':_0x487544['id'],'shapeData':_0x487544['shapeData']}),_0x8bac33===_0x37e872(0x407)&&_0x1d0d1f(ui,{'title':_0x1b65d2['t'](_0x37e872(0x1f2)),'children':_0xf895cc(_0x37e872(0x2de),{'children':[_0x1d0d1f(_0x12c1c2,{'slot':_0x1d0d1f(_0x395528,{}),'value':_0x233d1a,'placeholder':_0x1b65d2['t']('boards-mind-ui.panel.searchNodes'),'className':_0x1f61d6('univer-mb-3\x20univer-w-full',_0x37e872(0x3f6)),'onChange':_0x142345}),_0x144c05[_0x37e872(0x1ab)]?_0x1d0d1f('ol',{'className':_0x37e872(0x33b),'children':_0x144c05[_0x37e872(0x461)](_0x16e386=>_0x1d0d1f('li',{'className':_0x37e872(0x20e),'style':ci(_0x16e386[_0x37e872(0x292)]),'children':(_0x47ba9a==null?void 0x0:_0x47ba9a[_0x37e872(0x26d)])===_0x16e386[_0x37e872(0x26d)]?_0xf895cc('div',{'className':_0x1f61d6(_0x37e872(0x477),_0x37e872(0x25a)),'children':[_0x1d0d1f(_0x12c1c2,{'autoFocus':!0x1,'size':_0x37e872(0x2a0),'className':'univer-w-full\x20univer-text-base','value':_0x47ba9a[_0x37e872(0x2be)],'onChange':_0x1c8d25=>_0x5a62b4({'nodeId':_0x16e386[_0x37e872(0x26d)],'text':_0x1c8d25}),'onKeyDown':_0x361920=>{const _0xe6eca4=_0x37e872;_0x361920[_0xe6eca4(0x3a2)]===_0xe6eca4(0x2e5)&&_0x37378c(),_0x361920[_0xe6eca4(0x3a2)]===_0xe6eca4(0x349)&&_0x5a62b4(null);}}),_0x1d0d1f(_0x52c5ff,{'className':_0x37e872(0x299),'size':'small','variant':_0x37e872(0x3af),'disabled':!_0x47ba9a[_0x37e872(0x2be)][_0x37e872(0x1c2)](),'onClick':_0x37378c,'children':_0x1b65d2['t']('boards-mind-ui.panel.rename')}),_0x1d0d1f(_0x52c5ff,{'className':_0x37e872(0x299),'size':_0x37e872(0x43a),'variant':_0x37e872(0x28c),'onClick':()=>_0x5a62b4(null),'children':_0x1b65d2['t'](_0x37e872(0x1eb))})]}):_0xf895cc(_0x2f0da1,{'children':[_0x1d0d1f(_0x52c5ff,{'size':_0x37e872(0x43a),'variant':'ghost','className':_0x1f61d6(_0x37e872(0x1b3),'univer-min-h-12\x20univer-text-base'),'onClick':()=>_0x105f55['selectElements']({'unitId':_0x4d0341[_0x37e872(0x499)],'subUnitId':_0x4d0341[_0x37e872(0x452)]},[_0x16e386[_0x37e872(0x26d)]],_0x16e386[_0x37e872(0x26d)]),'children':_0x16e386['text']}),_0x1d0d1f(_0x52c5ff,{'className':_0x1f61d6(_0x37e872(0x288),_0x37e872(0x388)),'size':_0x37e872(0x43a),'variant':'default','onClick':()=>_0x39e864(_0x16e386[_0x37e872(0x26d)],_0x16e386[_0x37e872(0x2be)]),'children':_0x1b65d2['t'](_0x37e872(0x316))})]})},_0x16e386[_0x37e872(0x26d)]))}):_0x1d0d1f(_0x37e872(0x2de),{'className':_0x37e872(0x479),'data-board-mind-map-panel-empty-state':_0x37e872(0x30a),'children':_0x1b65d2['t']('boards-mind-ui.panel.emptyNodes')})]})}),_0x8bac33==='layout'&&_0x1d0d1f(ui,{'title':_0x1b65d2['t'](_0x37e872(0x3d4)),'children':_0xf895cc('div',{'className':_0x37e872(0x326),'children':[_0x1d0d1f(_0x37e872(0x2de),{'className':_0x37e872(0x275),'children':_0x1d0d1f(gi,{'items':Jr['map'](_0x18da3d=>({'label':_0x1b65d2['t'](_0x18da3d[_0x37e872(0x1f6)]),'value':_0x18da3d[_0x37e872(0x2fe)]})),'value':_0x41a18f,'onChange':_0x4957e8=>_0x528e4d(_0x4957e8)})}),_0x1d0d1f(_0x37e872(0x2de),{'className':'univer-flex\x20univer-gap-2','children':_0x1d0d1f(gi,{'items':qr[_0x37e872(0x461)](_0x153189=>({'label':_0x1b65d2['t'](_0x153189[_0x37e872(0x1f6)]),'value':_0x153189[_0x37e872(0x2fe)]})),'value':_0x1faa1e,'onChange':_0x402934=>_0x28248e(_0x402934)})}),_0x1d0d1f(_0x37e872(0x2de),{'className':_0x37e872(0x275),'children':_0x1d0d1f(gi,{'items':_0x375b76['map'](_0xd7ed57=>({'label':_0x1b65d2['t'](_0xd7ed57['labelKey']),'value':_0xd7ed57[_0x37e872(0x2fe)]})),'value':_0x453ba7,'onChange':_0x5a4ca6=>_0x24121f(_0x5a4ca6)})}),_0x1d0d1f('div',{'className':_0x37e872(0x375),'children':Kr['map'](({labelKey:_0x432fed,key:_0x31de00,min:_0x5576a6,max:_0x4eadea})=>_0xf895cc('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-xs\x20univer-text-gray-600','children':[_0x1d0d1f(_0x37e872(0x377),{'className':_0x37e872(0x302),'children':_0x1b65d2['t'](_0x432fed)}),_0x1d0d1f(_0x49c357,{'controls':!0x1,'inputClassName':_0x37e872(0x39c),'min':_0x5576a6,'max':_0x4eadea,'step':0x4,'value':_0x5c1017[_0x31de00],'precision':0x0,'className':_0x37e872(0x1b6),'onChange':_0x45c18e=>_0x2eb696(_0x31de00,Number(_0x45c18e??_0x5576a6))})]},_0x31de00))})]})}),_0x8bac33===_0x37e872(0x47b)&&_0x1d0d1f(ui,{'title':_0x1b65d2['t'](_0x37e872(0x30f)),'children':_0xf895cc(_0x37e872(0x2de),{'className':_0x37e872(0x413),'children':[_0x1d0d1f(_0x3b1bc9,{'className':_0x1f61d6(_0x37e872(0x49f),_0x37e872(0x444)),'placeholder':_0x1b65d2['t'](_0x37e872(0x1d3)),'value':_0x3ef754,'onValueChange':_0x44161c}),_0xf895cc('div',{'className':_0x37e872(0x275),'children':[_0x1d0d1f(_0x52c5ff,{'className':_0x37e872(0x299),'size':'small','variant':_0x37e872(0x3af),'disabled':!_0x3ef754[_0x37e872(0x1c2)](),'onClick':_0x24a58a,'children':_0x1b65d2['t'](_0x37e872(0x2c8))}),_0x1d0d1f(_0x52c5ff,{'className':_0x37e872(0x299),'size':_0x37e872(0x43a),'variant':_0x37e872(0x28c),'onClick':async()=>{const _0x1f4655=_0x37e872;let _0x422d83=await _0x4b42cf[_0x1f4655(0x38b)](_0x40d1d1['id'],_0x3d7a2f);_0x422d83!==!0x1&&_0x44161c(_0x422d83);},'children':_0x1b65d2['t']('boards-mind-ui.panel.exportOPML')})]})]})})]});}let vi=class extends _0x13ec99{constructor(_0x2b133b){const _0x1570e0=_0x2d31a4;super(),this['_componentManager']=_0x2b133b,this[_0x1570e0(0x26f)]();}[_0x2d31a4(0x26f)](){const _0x4ca410=_0x2d31a4;this[_0x4ca410(0x42f)](this[_0x4ca410(0x351)][_0x4ca410(0x425)](On,An)),this[_0x4ca410(0x42f)](this[_0x4ca410(0x351)][_0x4ca410(0x425)](Kn,mi)),this[_0x4ca410(0x42f)](this[_0x4ca410(0x351)][_0x4ca410(0x425)](Wr,_i));}};vi=J([q(0x0,_0x4a13c4(_0x48f5c4))],vi);let yi=class extends _0x13ec99{constructor(_0x456fba,_0x3921e8,_0x4b16e4){const _0x3ce9ef=_0x2d31a4;super(),this['_commandService']=_0x456fba,this[_0x3ce9ef(0x1bd)]=_0x3921e8,this['_sidebarService']=_0x4b16e4,K(this,_0x3ce9ef(0x1e0),null),this['disposeWithMe'](this[_0x3ce9ef(0x2a3)][_0x3ce9ef(0x4bd)](Ur)),this[_0x3ce9ef(0x42f)](this[_0x3ce9ef(0x2a3)][_0x3ce9ef(0x44c)](_0x3ea9c8=>{const _0x41a096=_0x3ce9ef;if(_0x3ea9c8['id']!==Ur['id'])return;let _0x1223cc=_0x3ea9c8[_0x41a096(0x49d)];_0x1223cc&&_0x41a096(0x499)in _0x1223cc&&typeof _0x1223cc['unitId']=='string'&&_0x41a096(0x452)in _0x1223cc&&typeof _0x1223cc[_0x41a096(0x452)]==_0x41a096(0x3dd)&&_0x41a096(0x435)in _0x1223cc&&typeof _0x1223cc[_0x41a096(0x435)]==_0x41a096(0x3dd)&&this[_0x41a096(0x3a1)]({'unitId':_0x1223cc[_0x41a096(0x499)],'subUnitId':_0x1223cc[_0x41a096(0x452)],'scopeId':_0x1223cc[_0x41a096(0x435)],'nodeId':_0x41a096(0x26d)in _0x1223cc&&typeof _0x1223cc[_0x41a096(0x26d)]=='string'?_0x1223cc[_0x41a096(0x26d)]:void 0x0});}));}['dispose'](){const _0x51ccce=_0x2d31a4;var _0x18ad46;(_0x18ad46=this[_0x51ccce(0x1e0)])==null||_0x18ad46['dispose'](),this[_0x51ccce(0x1e0)]=null,super[_0x51ccce(0x262)]();}[_0x2d31a4(0x3a1)](_0x272ec6){const _0x5e2911=_0x2d31a4;var _0x58faf5;let _0x325626={'label':Wr,..._0x272ec6};(_0x58faf5=this[_0x5e2911(0x1e0)])==null||_0x58faf5[_0x5e2911(0x262)](),this['_sidebarDisposable']=this[_0x5e2911(0x1bf)][_0x5e2911(0x3a1)]({'id':Wr,'header':{'title':this[_0x5e2911(0x1bd)]['t'](_0x5e2911(0x264))},'width':0x184,'children':_0x325626,'onClose':()=>{const _0x20bce9=_0x5e2911;this[_0x20bce9(0x1e0)]=null;}});}};yi=J([q(0x0,_0x2a0a40),q(0x1,_0x4a13c4(_0x3ff2da)),q(0x2,_0x4a13c4(_0x2f236d))],yi);let bi=class extends _0x13ec99{constructor(_0x21a078){const _0x556cc3=_0x2d31a4;super(),this[_0x556cc3(0x351)]=_0x21a078,this[_0x556cc3(0x26f)]();}[_0x2d31a4(0x26f)](){const _0x11d44c=_0x2d31a4;this[_0x11d44c(0x42f)](this['_componentManager'][_0x11d44c(0x425)](On,An)),this['disposeWithMe'](this[_0x11d44c(0x351)][_0x11d44c(0x425)](Kn,cr)),this['disposeWithMe'](this['_componentManager'][_0x11d44c(0x425)](Wr,fi));}};bi=J([q(0x0,_0x4a13c4(_0x48f5c4))],bi);let xi=class{constructor(_0x3bd4a2,_0x297e52,_0x30871){const _0x1a6d9f=_0x2d31a4;this[_0x1a6d9f(0x39d)]=_0x3bd4a2,this[_0x1a6d9f(0x2d3)]=_0x297e52,this[_0x1a6d9f(0x247)]=_0x30871;}[_0x2d31a4(0x424)](_0x581a6f){const _0x255eba=_0x2d31a4;var _0x3f4ba1,_0x33a774;let _0x1b8679=(_0x3f4ba1=this[_0x255eba(0x247)][_0x255eba(0x1c9)](_0x581a6f[_0x255eba(0x499)]))==null||(_0x33a774=_0x3f4ba1[_0x255eba(0x297)])==null?void 0x0:_0x33a774[_0x255eba(0x248)](_0x3f4ba1),_0x3036b9=(_0x1b8679==null?void 0x0:_0x1b8679[_0x255eba(0x267)](_0x18a088))??this['_stateService'];return((_0x1b8679==null?void 0x0:_0x1b8679[_0x255eba(0x267)](br))??this[_0x255eba(0x2d3)])[_0x255eba(0x3b5)]({'rootText':_0x581a6f['rootText'],'structureKind':_0x581a6f[_0x255eba(0x46d)],'branchLineType':_0x581a6f[_0x255eba(0x365)],'children':_0x581a6f[_0x255eba(0x20c)],'blueprint':_0x581a6f[_0x255eba(0x1d4)]}),_0x3036b9[_0x255eba(0x480)](!0x1),_0x3036b9[_0x255eba(0x356)](),_0x3036b9['setActiveTool'](_0x1210f4['MindMap']),_0x3036b9[_0x255eba(0x44e)]({'type':_0x1210f4[_0x255eba(0x32e)]}),!0x0;}};xi=J([q(0x0,_0x18a088),q(0x1,_0x4a13c4(br)),q(0x2,_0xa5c56c)],xi);const Si=_0x2d31a4(0x49b),Ci=[Dn],wi=[Vr];let Ti=class extends _0x1119d2{constructor(_0x2b6905=en,_0x405a48,_0x2308e1,_0x3f17cc){const _0x1377fb=_0x2d31a4;super(),this[_0x1377fb(0x213)]=_0x2b6905,this[_0x1377fb(0x437)]=_0x405a48,this[_0x1377fb(0x337)]=_0x2308e1,this['_renderManagerService']=_0x3f17cc;let {..._0x18a874}=_0x341d8c({},en,this[_0x1377fb(0x213)]);this[_0x1377fb(0x337)][_0x1377fb(0x2dc)]($t,_0x18a874);}[_0x2d31a4(0x215)](){const _0x1b3f6c=_0x2d31a4;_0x302504[_0x1b3f6c(0x317)](this[_0x1b3f6c(0x437)],[[br],[Tr]]),this['_getDependencies']()['forEach'](_0x4adc42=>this[_0x1b3f6c(0x437)][_0x1b3f6c(0x3e8)](_0x4adc42));let _0x467c6a=this['_injector'][_0x1b3f6c(0x267)](xi),_0x515b24=this['_injector']['get'](_0x38e800);this[_0x1b3f6c(0x42f)](_0x515b24['registerAdapter'](_0x467c6a)),this['disposeWithMe'](this[_0x1b3f6c(0x437)][_0x1b3f6c(0x267)](Ln)),this[_0x1b3f6c(0x42f)](this[_0x1b3f6c(0x437)][_0x1b3f6c(0x267)](zr)),this['disposeWithMe'](this['_injector'][_0x1b3f6c(0x267)](yi)),this['disposeWithMe'](this['_injector']['get'](bi)),this[_0x1b3f6c(0x441)]();}['_getDependencies'](){return[[br],[Tr],[xi],[Ln],[zr],[yi],[bi]];}[_0x2d31a4(0x28d)](){return[Ci,wi,[wr],[Lr],[ur],[En],[an],[Or]];}[_0x2d31a4(0x1ff)](){const _0x46e3d8=_0x2d31a4;this[_0x46e3d8(0x28d)]()[_0x46e3d8(0x205)](_0x54a9b1=>{const _0x1f0c9f=_0x46e3d8;this[_0x1f0c9f(0x42f)](this[_0x1f0c9f(0x247)][_0x1f0c9f(0x385)](_0x4468f4[_0x1f0c9f(0x3be)],_0x54a9b1));});}['_enableMindMapToolbarTool'](){const _0x677358=_0x2d31a4;var _0x55f7fe,_0x3dce1d;let _0x4b96b5=this[_0x677358(0x3f7)]();this['_configService'][_0x677358(0x2dc)](_0x451d89,{..._0x4b96b5,'toolbar':{..._0x4b96b5[_0x677358(0x3ff)],'tools':{...(_0x55f7fe=_0x4b96b5['toolbar'])==null?void 0x0:_0x55f7fe[_0x677358(0x2d6)],[_0x1210f4[_0x677358(0x32e)]]:Ei((_0x3dce1d=_0x4b96b5[_0x677358(0x3ff)])==null||(_0x3dce1d=_0x3dce1d['tools'])==null?void 0x0:_0x3dce1d[_0x1210f4['MindMap']])}}});}[_0x2d31a4(0x3f7)](){const _0x1339f3=_0x2d31a4;return this[_0x1339f3(0x337)]['getConfig'](_0x451d89)??{};}};K(Ti,_0x2d31a4(0x35f),Si),K(Ti,_0x2d31a4(0x489),Zt),K(Ti,'version',Qt),K(Ti,_0x2d31a4(0x48d),_0x4468f4[_0x2d31a4(0x3be)]),Ti=J([_0x42b603(_0xc6ab10,_0x49dfad,_0x39db0c,_0x577257,_0x302504),q(0x1,_0x4a13c4(_0x159d73)),q(0x2,_0x22928b),q(0x3,_0xa5c56c)],Ti);function Ei(_0x1bb126){const _0x4e8058=_0x2d31a4;return _0x1bb126===!0x1?!0x1:typeof _0x1bb126!=_0x4e8058(0x367)||{..._0x1bb126,'enabled':_0x1bb126['enabled']??!0x0};}let Di=class extends _0x1119d2{constructor(_0x713ced=en,_0x54552b,_0x46b539,_0x3086f7){const _0x2a1cfa=_0x2d31a4;super(),this[_0x2a1cfa(0x213)]=_0x713ced,this[_0x2a1cfa(0x437)]=_0x54552b,this[_0x2a1cfa(0x337)]=_0x46b539,this[_0x2a1cfa(0x247)]=_0x3086f7;let {..._0x34fa3f}=_0x341d8c({},en,this[_0x2a1cfa(0x213)]);this['_configService'][_0x2a1cfa(0x2dc)]($t,_0x34fa3f);}[_0x2d31a4(0x215)](){const _0x128e74=_0x2d31a4;let _0x1d8244=[[br],[Tr]];_0x3c9575[_0x128e74(0x317)](this['_injector'],_0x1d8244),[..._0x1d8244,[xi],[Ln],[zr],[pi],[vi]][_0x128e74(0x205)](_0x56cf4f=>this[_0x128e74(0x437)][_0x128e74(0x3e8)](_0x56cf4f)),this[_0x128e74(0x42f)](this['_injector'][_0x128e74(0x267)](_0x38e800)[_0x128e74(0x1b2)](this[_0x128e74(0x437)][_0x128e74(0x267)](xi))),this['disposeWithMe'](this[_0x128e74(0x437)][_0x128e74(0x267)](Ln)),this['disposeWithMe'](this['_injector'][_0x128e74(0x267)](zr)),this[_0x128e74(0x42f)](this[_0x128e74(0x437)][_0x128e74(0x267)](pi)),this[_0x128e74(0x42f)](this[_0x128e74(0x437)][_0x128e74(0x267)](vi)),this['_enableMindMapToolbarTool']();}[_0x2d31a4(0x1ff)](){const _0x1de046=_0x2d31a4;[[Dn],[Vr],[wr,{'useClass':Hr}],[Lr],[ur],[En],[an],[Or]][_0x1de046(0x205)](_0x38e036=>{const _0x29dd62=_0x1de046;this[_0x29dd62(0x42f)](this[_0x29dd62(0x247)][_0x29dd62(0x385)](_0x4468f4[_0x29dd62(0x3be)],_0x38e036));});}[_0x2d31a4(0x441)](){const _0x9303e=_0x2d31a4;var _0x24de2e,_0x5f0c60;let _0x545de7=this[_0x9303e(0x3f7)]();this[_0x9303e(0x337)][_0x9303e(0x2dc)](_0x451d89,{..._0x545de7,'toolbar':{..._0x545de7[_0x9303e(0x3ff)],'tools':{...(_0x24de2e=_0x545de7[_0x9303e(0x3ff)])==null?void 0x0:_0x24de2e[_0x9303e(0x2d6)],[_0x1210f4[_0x9303e(0x32e)]]:Oi((_0x5f0c60=_0x545de7['toolbar'])==null||(_0x5f0c60=_0x5f0c60[_0x9303e(0x2d6)])==null?void 0x0:_0x5f0c60[_0x1210f4[_0x9303e(0x32e)]])}}});}[_0x2d31a4(0x3f7)](){const _0x44d021=_0x2d31a4;return this[_0x44d021(0x337)]['getConfig'](_0x451d89)??{};}};K(Di,_0x2d31a4(0x35f),Si),K(Di,_0x2d31a4(0x489),Zt),K(Di,_0x2d31a4(0x411),Qt),K(Di,'type',_0x4468f4[_0x2d31a4(0x3be)]),Di=J([_0x42b603(_0xc6ab10,_0x49dfad,_0x39db0c,_0x577257,_0x3c9575),q(0x1,_0x4a13c4(_0x159d73)),q(0x2,_0x22928b),q(0x3,_0xa5c56c)],Di);function Oi(_0x554cfc){const _0x25e2ea=_0x2d31a4;return _0x554cfc===!0x1?!0x1:typeof _0x554cfc!=_0x25e2ea(0x367)||{..._0x554cfc,'enabled':_0x554cfc[_0x25e2ea(0x203)]??!0x0};}export{Di as UniverBoardsMindMobileUIPlugin,Ti as UniverBoardsMindUIPlugin};
|