@univerjs-pro/boards-mind-ui 1.0.0-alpha.8 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +12 -12
- 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-autosize-layout.render-controller.d.ts +1 -4
- package/lib/types/controllers/board-mind-map-drag-topology.render-controller.d.ts +2 -0
- package/lib/types/controllers/board-mind-map-insert.render-controller.d.ts +0 -1
- package/lib/types/controllers/board-mind-map-intrinsic-size.render-controller.d.ts +4 -2
- package/lib/types/controllers/board-mind-map-keyboard-shortcut.controller.d.ts +7 -10
- package/lib/types/controllers/board-mind-map-node-controls.render-controller.d.ts +3 -2
- package/lib/types/controllers/board-mind-map-shortcut-context.render-controller.d.ts +14 -0
- package/lib/types/controllers/board-mind-map-text-editing-shortcut.controller.d.ts +2 -10
- package/lib/types/services/board-mind-map-shortcut-runtime.service.d.ts +19 -0
- package/lib/types/views/BoardMindMapFloatingToolbar.d.ts +2 -93
- package/lib/types/views/BoardMindMapPanel.d.ts +0 -17
- package/lib/types/views/board-mind-map-floating-toolbar-config.d.ts +92 -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 +14 -14
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4e28b3=_0x4c93;(function(_0x4e48c6,_0x101a37){const _0x46315d=_0x4c93,_0x18d6cc=_0x4e48c6();while(!![]){try{const _0x2d2445=parseInt(_0x46315d(0x272))/0x1+-parseInt(_0x46315d(0x379))/0x2*(-parseInt(_0x46315d(0x1c4))/0x3)+parseInt(_0x46315d(0x3f5))/0x4*(parseInt(_0x46315d(0x2b8))/0x5)+-parseInt(_0x46315d(0x365))/0x6+parseInt(_0x46315d(0x156))/0x7+parseInt(_0x46315d(0x22b))/0x8+-parseInt(_0x46315d(0x352))/0x9;if(_0x2d2445===_0x101a37)break;else _0x18d6cc['push'](_0x18d6cc['shift']());}catch(_0x4d9bea){_0x18d6cc['push'](_0x18d6cc['shift']());}}}(_0x5a5c,0xb6176));import{BoardElementType as _0x2cd328,BoardToolType as _0x138a65,IBoardElementService as _0x5af7fa,IBoardMindMapAdapterService as _0x16e4f0,UniverBoardsPlugin as _0x2baeb1,documentTextStyleToBoardShapeTextStyle as _0x3e6fcc,offsetBoardConnectorGeometry as _0x31298f,resolveBoardElementWorldBounds as _0x8188de}from'@univerjs-pro/boards';import{AddMindMapChildOperation as _0x1c61db,AddMindMapSiblingOperation as _0x4427c3,ChangeMindMapBranchLineTypeOperation as _0x394c10,ChangeMindMapLayoutOperation as _0xfb8f84,CopyMindMapNodeOperation as _0x5a3321,DeleteMindMapNodeOperation as _0x443802,DetachMindMapNodeOperation as _0x465ffb,ExportMindMapOpmlOperation as _0x46bb7e,IMindMapClipboardService as _0x3771ca,ImportMindMapOpmlOperation as _0x55b80c,InsertBoardMindMapOperation as _0xa00b3d,LayoutMindMapOperation as _0x3a4dc0,MIND_MAP_DEFAULT_LAYOUT as _0x1defe8,MIND_MAP_DEFAULT_NODE_SIZE as _0x1163ab,MIND_MAP_DEFAULT_NODE_TEXT as _0x5ce379,MIND_MAP_LAYOUT_SPACING_LIMITS as _0x2f7fbc,PasteMindMapAsNewMindMapOperation as _0x5cbfdf,PasteMindMapNodeOperation as _0x2153bf,PromoteMindMapNodeOperation as _0x3c763e,ReparentMindMapNodeOperation as _0x3bb170,ToggleMindMapNodeCollapseOperation as _0xdc2fc2,TranslateMindMapOperation as _0x5876ce,UniverBoardsMindPlugin as _0x4f31e9,UpdateMindMapIncomingConnectorOperation as _0xb6fca8,UpdateMindMapNodeOperation as _0x36d216,compareMindMapOrderKey as _0x359903,getMindMapConnectorMeta as _0x42da87,getMindMapContainerMeta as _0x30a9b0,getMindMapDefaultChildOrderKey as _0x3cc2d7,getMindMapNodeMeta as _0x130c96,isMindMapPlainStructureKind as _0x3e1084,resolveMindMapBranchLineTypeForStructure as _0x5be6e7,resolveMindMapLayoutPreview as _0x4637d2,resolveMindMapNodeHostSize as _0x387b00}from'@univerjs-pro/boards-mind';import{BOARDS_UI_PLUGIN_CONFIG_KEY as _0x2306cf,BOARD_RENDER_LAYER_INDEX as _0x394cf0,BOARD_RENDER_OBJECT_Z_INDEX as _0x5d51da,BOARD_SHORTCUT_BINDINGS as _0xfbb3e1,BoardCanvasPopManagerService as _0x11b6e9,BoardInteractionSurfaceService as _0x51f3dc,BoardShapeIntrinsicSizeService as _0x38e758,BoardTextEditingService as _0x4aee4d,IBoardElementStateService as _0x4ad25d,IBoardUIStateService as _0x4b72d1,UniverBoardsUIPlugin as _0x385ee3,getBoardElementRenderObjectKey as _0x239fd6,parseBoardElementRenderObjectKey as _0x16c9be,resolveBoardFloatingToolbarSelection as _0x4a534b,syncBoardElementRenderObject as _0x7e58a4}from'@univerjs-pro/boards-ui';import{UniverLicensePlugin as _0x350152}from'@univerjs-pro/license';import{CommandType as _0x23b005,DEFAULT_STYLES as _0x5bb012,DependentOn as _0x4f9b5b,Disposable as _0x45f66c,DisposableCollection as _0x4ee20c,HorizontalAlign as _0x5d9bb5,ICommandService as _0x4c9d00,IConfigService as _0x4d4aaf,IContextService as _0x135d5f,IUniverInstanceService as _0x34a716,Inject as _0x19f927,Injector as _0x1072f4,LocaleService as _0x19a155,Plugin as _0x3485b7,RxDisposable as _0x43afa6,UniverInstanceType as _0x2934fe,VerticalAlign as _0x2f2760,generateRandomId as _0x257cfe,merge as _0xce87f2,toDisposable as _0x288fdc}from'@univerjs/core';import{BaseObject as _0x344c5d,IRenderManagerService as _0x90772c,UniverRenderEnginePlugin as _0x259006}from'@univerjs/engine-render';import{ComponentManager as _0x4aefa5,IDialogService as _0x527822,IShortcutService as _0x2f95f0,KeyCode as _0x5e6623,MetaKeys as _0x67ae32,UniverUIPlugin as _0x779761,useDependency as _0x3d87e3}from'@univerjs/ui';import{Subject as _0x168ca7,takeUntil as _0x362352}from'rxjs';import{SHAPE_FLOATING_TOOLBAR_DEFAULT_STROKE_COLOR as _0x53a3c6,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_BACKGROUND_COLOR as _0x33f965,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_COLOR as _0x1c0553,SHAPE_TEXT_EDITOR_QUOTE_COMMAND_ID as _0x381e8c,ShapeFillButton as _0x5647d1,ShapeFloatingToolbarContent as _0x53b2ae,ShapeFloatingToolbarDropdownTrigger as _0x16a3f4,ShapeFloatingToolbarFontSizeSelect as _0x5c0f56,ShapeFloatingToolbarIcon as _0x34bbcc,ShapeFloatingToolbarMenuItem as _0x2e4721,ShapeFloatingToolbarMenuPanel as _0x4b1b45,ShapeStrokePanelButton as _0x43cd4d,ShapeStrokePanelContent as _0x3fabe2,TextFillButton as _0xfd025f,TypographyPanelButton as _0x30da04,buildShapeTextDataUpdate as _0x48adbf}from'@univerjs-pro/shape-editor-ui';import{ShapeLineDashEnum as _0x582dab,ShapeLineTypeEnum as _0x8a7be5}from'@univerjs-pro/engine-shape';import{Button as _0x25b887,Dropdown as _0x48b1d8,Input as _0x4f73bf,InputNumber as _0x5687ca,Segmented as _0x2edc6b,Separator as _0x2cfe4c,Textarea as _0x55a337,borderClassName as _0x4b17ce,clsx as _0x4dee74}from'@univerjs/design';import{AlignBottomIcon as _0x587431,AlignTextBothIcon as _0x13b8d2,AlignTopIcon as _0x703b0,HorizontallyIcon as _0x54ade2,LeftJustifyingIcon as _0x24b89d,MoreHorizontalIcon as _0xc85f91,RightJustifyingIcon as _0x122c61,SearchIcon as _0x32fc43,ShapeLineIcon as _0x2d11b3,VerticalCenterIcon as _0x10f89b}from'@univerjs/icons';import{useEffect as _0x102d6a,useState as _0x33a7c5}from'react';import{Fragment as _0x533ee7,jsx as _0xdbc3b,jsxs as _0x1e5b1d}from'react/jsx-runtime';var Mt='@univerjs-pro/boards-mind-ui',Nt=_0x4e28b3(0x19d);const Pt={};function Ft(_0x1eb0e7){'@babel/helpers - typeof';const _0x4c2005=_0x4e28b3;return Ft=typeof Symbol==_0x4c2005(0x1a6)&&typeof Symbol[_0x4c2005(0x1cc)]=='symbol'?function(_0x55715e){return typeof _0x55715e;}:function(_0x382883){const _0x589373=_0x4c2005;return _0x382883&&typeof Symbol=='function'&&_0x382883[_0x589373(0x1d2)]===Symbol&&_0x382883!==Symbol['prototype']?'symbol':typeof _0x382883;},Ft(_0x1eb0e7);}function It(_0x321052,_0x2e6d68){const _0x59c1c5=_0x4e28b3;if(Ft(_0x321052)!='object'||!_0x321052)return _0x321052;var _0x515de3=_0x321052[Symbol[_0x59c1c5(0x246)]];if(_0x515de3!==void 0x0){var _0x2d8554=_0x515de3[_0x59c1c5(0x1e1)](_0x321052,_0x2e6d68||_0x59c1c5(0x2f8));if(Ft(_0x2d8554)!=_0x59c1c5(0x381))return _0x2d8554;throw TypeError(_0x59c1c5(0x1b2));}return(_0x2e6d68===_0x59c1c5(0x304)?String:Number)(_0x321052);}function Lt(_0x122498){const _0x515c85=_0x4e28b3;var _0x5250d8=It(_0x122498,'string');return Ft(_0x5250d8)==_0x515c85(0x3e2)?_0x5250d8:_0x5250d8+'';}function K(_0x3f0d1b,_0x2b00c8,_0x23b702){const _0x46de42=_0x4e28b3;return(_0x2b00c8=Lt(_0x2b00c8))in _0x3f0d1b?Object[_0x46de42(0x1eb)](_0x3f0d1b,_0x2b00c8,{'value':_0x23b702,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3f0d1b[_0x2b00c8]=_0x23b702,_0x3f0d1b;}function q(_0x14c31a,_0x3e8580){return function(_0x302a9a,_0x8de701){_0x3e8580(_0x302a9a,_0x8de701,_0x14c31a);};}function J(_0x256cd9,_0x269253,_0x3071fb,_0x4fbdbf){const _0x518af5=_0x4e28b3;var _0x58002d=arguments[_0x518af5(0x282)],_0x3423c3=_0x58002d<0x3?_0x269253:_0x4fbdbf===null?_0x4fbdbf=Object[_0x518af5(0x2e8)](_0x269253,_0x3071fb):_0x4fbdbf,_0xcef2c8;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x518af5(0x1a6))_0x3423c3=Reflect[_0x518af5(0x320)](_0x256cd9,_0x269253,_0x3071fb,_0x4fbdbf);else{for(var _0x42ff0f=_0x256cd9[_0x518af5(0x282)]-0x1;_0x42ff0f>=0x0;_0x42ff0f--)(_0xcef2c8=_0x256cd9[_0x42ff0f])&&(_0x3423c3=(_0x58002d<0x3?_0xcef2c8(_0x3423c3):_0x58002d>0x3?_0xcef2c8(_0x269253,_0x3071fb,_0x3423c3):_0xcef2c8(_0x269253,_0x3071fb))||_0x3423c3);}return _0x58002d>0x3&&_0x3423c3&&Object[_0x518af5(0x1eb)](_0x269253,_0x3071fb,_0x3423c3),_0x3423c3;}let Rt=class extends _0x43afa6{constructor(_0x4e9183,_0x226838,_0x521784){const _0x575ad6=_0x4e28b3;super(),this[_0x575ad6(0x1f3)]=_0x4e9183,this['_boardElementService']=_0x226838,this[_0x575ad6(0x19a)]=_0x521784,K(this,_0x575ad6(0x18f),new Map()),K(this,_0x575ad6(0x1cf),new Map()),K(this,_0x575ad6(0x3ec),new Map()),K(this,_0x575ad6(0x3ab),!0x1),K(this,_0x575ad6(0x1de),null),this['_init']();}[_0x4e28b3(0x169)](){const _0x1f5661=_0x4e28b3;this[_0x1f5661(0x308)](),this[_0x1f5661(0x40b)](_0x288fdc(this['_boardElementService'][_0x1f5661(0x16e)][_0x1f5661(0x34f)](_0x362352(this['dispose$']))[_0x1f5661(0x345)](_0x4811aa=>{const _0x5af6b1=_0x1f5661;_0x4811aa[_0x5af6b1(0x3c2)](_0x18183e=>{const _0x50015b=_0x5af6b1;let _0x275f08=this[_0x50015b(0x234)][_0x50015b(0x402)](_0x18183e[_0x50015b(0x204)],_0x18183e[_0x50015b(0x1e8)],_0x18183e[_0x50015b(0x404)]);this[_0x50015b(0x289)](_0x18183e,_0x275f08);});}))),this['disposeWithMe'](_0x288fdc(this[_0x1f5661(0x234)]['elementUpdate$'][_0x1f5661(0x34f)](_0x362352(this[_0x1f5661(0x2a2)]))[_0x1f5661(0x345)](_0x5cfcca=>{const _0x1ad74d=_0x1f5661;_0x5cfcca[_0x1ad74d(0x3c2)](_0x4fcb14=>this[_0x1ad74d(0x166)](_0x4fcb14));})));let _0x11a089=this[_0x1f5661(0x19a)]['onCommandExecuted'];typeof _0x11a089==_0x1f5661(0x1a6)&&this[_0x1f5661(0x40b)](_0x11a089[_0x1f5661(0x1e1)](this[_0x1f5661(0x19a)],_0x13b19c=>{const _0x3196fe=_0x1f5661;if(_0x13b19c['id']!==_0x36d216['id'])return;let _0x11bb1f=_0x13b19c[_0x3196fe(0x1f5)];this[_0x3196fe(0x1ca)](_0x11bb1f);})),this[_0x1f5661(0x40b)](_0x288fdc(()=>{const _0x335a3f=_0x1f5661;this['_debouncedLayoutTimer']!==null&&(clearTimeout(this['_debouncedLayoutTimer']),this[_0x335a3f(0x1de)]=null);}));}[_0x4e28b3(0x308)](){const _0x50d7dc=_0x4e28b3;let _0x4e6cf6=this[_0x50d7dc(0x1f3)][_0x50d7dc(0x204)],_0x8e3b46=this['_boardElementService']['getElementDataForUnit'](_0x4e6cf6);Object[_0x50d7dc(0x335)](_0x8e3b46)['forEach'](([_0x41e57c,_0x10ccae])=>{const _0x17a3c1=_0x50d7dc;Object[_0x17a3c1(0x326)](_0x10ccae['data'])[_0x17a3c1(0x3c2)](_0x3581ec=>{const _0x2c3cb4=_0x17a3c1;this[_0x2c3cb4(0x289)]({'unitId':_0x4e6cf6,'subUnitId':_0x41e57c,'elementId':_0x3581ec[_0x2c3cb4(0x404)]},_0x3581ec);});});}['_handleElementUpdate'](_0x6ea680){const _0x1a97c3=_0x4e28b3;if(_0x6ea680[_0x1a97c3(0x204)]!==this[_0x1a97c3(0x1f3)]['unitId'])return;let _0x6a1d00=this[_0x1a97c3(0x234)]['getElementById'](_0x6ea680[_0x1a97c3(0x204)],_0x6ea680[_0x1a97c3(0x1e8)],_0x6ea680[_0x1a97c3(0x404)]),_0x3d02ed=_0x130c96(_0x6a1d00==null?void 0x0:_0x6a1d00[_0x1a97c3(0x409)]),_0x4554f7=this[_0x1a97c3(0x3d1)](_0x6a1d00);if(!_0x3d02ed||!_0x4554f7){this[_0x1a97c3(0x18f)][_0x1a97c3(0x269)](this[_0x1a97c3(0x21f)](_0x6ea680));return;}let _0x5885e2=this[_0x1a97c3(0x21f)](_0x6ea680),_0x7b0629=this[_0x1a97c3(0x18f)][_0x1a97c3(0x349)](_0x5885e2);this['_nodeSizeByKey'][_0x1a97c3(0x297)](_0x5885e2,_0x4554f7),!(_0x7b0629&&_0x7b0629[_0x1a97c3(0x1b5)]===_0x4554f7[_0x1a97c3(0x1b5)]&&_0x7b0629['height']===_0x4554f7[_0x1a97c3(0x323)])&&this[_0x1a97c3(0x3b0)]({'unitId':_0x6ea680[_0x1a97c3(0x204)],'subUnitId':_0x6ea680[_0x1a97c3(0x1e8)],'scopeId':_0x3d02ed['structureScopeId'],'anchorNodeId':_0x6ea680[_0x1a97c3(0x404)]});}[_0x4e28b3(0x289)](_0x2f8db4,_0x28c1e6){const _0x4557c2=_0x4e28b3;if(_0x2f8db4[_0x4557c2(0x204)]!==this[_0x4557c2(0x1f3)]['unitId'])return;let _0x4ac055=_0x130c96(_0x28c1e6==null?void 0x0:_0x28c1e6[_0x4557c2(0x409)]),_0x39df94=this[_0x4557c2(0x3d1)](_0x28c1e6);!_0x4ac055||!_0x39df94||this[_0x4557c2(0x18f)][_0x4557c2(0x297)](this[_0x4557c2(0x21f)](_0x2f8db4),_0x39df94);}[_0x4e28b3(0x3d1)](_0x3b6a61){const _0x4ca3dc=_0x4e28b3;var _0x4049b1;let _0x4cb5fe=(_0x4049b1=_0x3b6a61==null?void 0x0:_0x3b6a61[_0x4ca3dc(0x2eb)])==null?_0x3b6a61==null?void 0x0:_0x3b6a61[_0x4ca3dc(0x409)]['transform']:_0x4049b1,_0x5299d0=_0x4cb5fe==null?void 0x0:_0x4cb5fe[_0x4ca3dc(0x1b5)],_0x2c42fc=_0x4cb5fe==null?void 0x0:_0x4cb5fe[_0x4ca3dc(0x323)];return!Number[_0x4ca3dc(0x2de)](_0x5299d0)||!Number[_0x4ca3dc(0x2de)](_0x2c42fc)?null:{'width':_0x5299d0,'height':_0x2c42fc};}[_0x4e28b3(0x3b0)](_0x44bfca){const _0x559c3b=_0x4e28b3;this[_0x559c3b(0x1cf)][_0x559c3b(0x297)](_0x44bfca[_0x559c3b(0x204)]+':'+_0x44bfca[_0x559c3b(0x1e8)]+':'+_0x44bfca['scopeId'],_0x44bfca),!this[_0x559c3b(0x3ab)]&&(this[_0x559c3b(0x3ab)]=!0x0,Promise[_0x559c3b(0x1c8)]()[_0x559c3b(0x378)](()=>{const _0x398c8d=_0x559c3b;this[_0x398c8d(0x3ab)]=!0x1;let _0x221e80=Array[_0x398c8d(0x15d)](this[_0x398c8d(0x1cf)][_0x398c8d(0x326)]());this[_0x398c8d(0x1cf)][_0x398c8d(0x219)](),_0x221e80['forEach'](_0x42bfb6=>{const _0x46bbff=_0x398c8d;this[_0x46bbff(0x19a)][_0x46bbff(0x3d6)](_0x3a4dc0['id'],_0x42bfb6);});}));}[_0x4e28b3(0x1ca)](_0x114307){const _0x150735=_0x4e28b3;if(!(_0x114307!=null&&_0x114307[_0x150735(0x204)])||!_0x114307[_0x150735(0x1e8)]||!_0x114307['nodeId']||_0x114307[_0x150735(0x204)]!==this[_0x150735(0x1f3)][_0x150735(0x204)])return;let _0x363ca5=this[_0x150735(0x234)]['getElementById'](_0x114307[_0x150735(0x204)],_0x114307['subUnitId'],_0x114307[_0x150735(0x263)]),_0x2fc771=_0x130c96(_0x363ca5==null?void 0x0:_0x363ca5[_0x150735(0x409)]);_0x2fc771&&this[_0x150735(0x1fd)]({'unitId':_0x114307[_0x150735(0x204)],'subUnitId':_0x114307[_0x150735(0x1e8)],'scopeId':_0x2fc771[_0x150735(0x3fe)],'anchorNodeId':_0x114307['nodeId']});}['_queueDebouncedLayout'](_0x478e38){const _0x2bf056=_0x4e28b3;this[_0x2bf056(0x3ec)][_0x2bf056(0x297)](_0x478e38[_0x2bf056(0x204)]+':'+_0x478e38[_0x2bf056(0x1e8)]+':'+_0x478e38[_0x2bf056(0x38b)],_0x478e38),this[_0x2bf056(0x1de)]!==null&&clearTimeout(this[_0x2bf056(0x1de)]),this[_0x2bf056(0x1de)]=setTimeout(()=>{const _0x39d571=_0x2bf056;this[_0x39d571(0x1de)]=null;let _0x2fd341=Array[_0x39d571(0x15d)](this[_0x39d571(0x3ec)][_0x39d571(0x326)]());this['_debouncedLayouts'][_0x39d571(0x219)](),_0x2fd341[_0x39d571(0x3c2)](_0x445d13=>{const _0x1fb204=_0x39d571;this[_0x1fb204(0x19a)][_0x1fb204(0x3d6)](_0x3a4dc0['id'],_0x445d13);});},0x50);}['_getElementKey'](_0x1d959f){const _0x4b04c8=_0x4e28b3;return _0x1d959f[_0x4b04c8(0x204)]+':'+_0x1d959f[_0x4b04c8(0x1e8)]+':'+_0x1d959f['elementId'];}};Rt=J([q(0x1,_0x19f927(_0x5af7fa)),q(0x2,_0x4c9d00)],Rt);const Y={'primaryColor':_0x53a3c6,'surfaceColor':_0x33f965,'textColor':_0x1c0553,'fontFamily':_0x5bb012['ff']};function zt(_0x531989,_0x4388df){const _0x58e61a=_0x4e28b3;let _0x270b0e=Math[_0x58e61a(0x312)](0x1,Math['max'](0x0,Number[_0x58e61a(0x2de)](_0x4388df)?_0x4388df:0x1)),_0xdcbbba=_0x531989['trim'](),_0x5dc28c=/^#([0-9a-fA-F]{6})$/[_0x58e61a(0x16a)](_0xdcbbba);if(!_0x5dc28c)return _0x531989;let _0x486b0b=_0x5dc28c[0x1];return _0x58e61a(0x1b1)+Number[_0x58e61a(0x2fe)](_0x486b0b[_0x58e61a(0x32e)](0x0,0x2),0x10)+',\x20'+Number[_0x58e61a(0x2fe)](_0x486b0b[_0x58e61a(0x32e)](0x2,0x4),0x10)+',\x20'+Number[_0x58e61a(0x2fe)](_0x486b0b['slice'](0x4,0x6),0x10)+',\x20'+_0x270b0e+')';}const X={'primaryColor':Y[_0x4e28b3(0x265)],'ghostFillColor':zt(Y[_0x4e28b3(0x3c4)],0.72),'ghostTextColor':zt(Y['textColor'],0.62),'rootTextColor':zt(Y[_0x4e28b3(0x3c4)],0.86),'sourceHighlightFillColor':zt(Y[_0x4e28b3(0x265)],0.12),'sourceHighlightStrokeColor':zt(Y['primaryColor'],0.9),'objectAlpha':0.72,'dragObjectAlpha':0.78,'connectorAlpha':0.64,'lineWidthScreen':0x2,'fallbackNodeWidth':_0x1163ab['nodeWidth'],'fallbackNodeHeight':_0x1163ab['nodeHeight'],'branchGap':_0x1defe8[_0x4e28b3(0x25d)],'sourceHaloScreen':0x4,'ghostRadius':0x8,'rootRadius':0xa,'fontFamily':Y[_0x4e28b3(0x31d)],'ghostFontWeight':0x1f4,'rootFontWeight':0x258,'rootFontSize':0x12,'textPaddingScreen':0xc,'dirtyPaddingScreen':0x18,'sourceDashScreen':[0x6,0x4]};function Z(_0x1906d4,_0x3930ce,_0x24d5e2,_0x4c5444,_0x1ec861,_0x14b521){const _0x38076c=_0x4e28b3;let _0x11668b=Math[_0x38076c(0x312)](_0x14b521,_0x4c5444/0x2,_0x1ec861/0x2);_0x1906d4[_0x38076c(0x3c5)](),_0x1906d4['moveTo'](_0x3930ce+_0x11668b,_0x24d5e2),_0x1906d4[_0x38076c(0x2f7)](_0x3930ce+_0x4c5444-_0x11668b,_0x24d5e2),_0x1906d4[_0x38076c(0x35f)](_0x3930ce+_0x4c5444,_0x24d5e2,_0x3930ce+_0x4c5444,_0x24d5e2+_0x11668b),_0x1906d4['lineTo'](_0x3930ce+_0x4c5444,_0x24d5e2+_0x1ec861-_0x11668b),_0x1906d4[_0x38076c(0x35f)](_0x3930ce+_0x4c5444,_0x24d5e2+_0x1ec861,_0x3930ce+_0x4c5444-_0x11668b,_0x24d5e2+_0x1ec861),_0x1906d4[_0x38076c(0x2f7)](_0x3930ce+_0x11668b,_0x24d5e2+_0x1ec861),_0x1906d4['quadraticCurveTo'](_0x3930ce,_0x24d5e2+_0x1ec861,_0x3930ce,_0x24d5e2+_0x1ec861-_0x11668b),_0x1906d4[_0x38076c(0x2f7)](_0x3930ce,_0x24d5e2+_0x11668b),_0x1906d4[_0x38076c(0x35f)](_0x3930ce,_0x24d5e2,_0x3930ce+_0x11668b,_0x24d5e2),_0x1906d4['closePath']();}function Bt(_0x4335e0,_0x4904fa,_0x1f8e0b){const _0x4899a3=_0x4e28b3;return _0x4335e0+'\x20'+_0x4904fa/_0x1f8e0b+_0x4899a3(0x17c)+X['fontFamily'];}const Vt=_0x4e28b3(0x355),Ht=_0x394cf0[_0x4e28b3(0x2a9)];function Q(_0x386b3c,_0x41004e){const _0x1a7463=_0x4e28b3;return Number[_0x1a7463(0x2de)](_0x386b3c)?_0x386b3c:_0x41004e;}function Ut(){return X['fallbackNodeWidth'];}function Wt(){const _0x4b27c5=_0x4e28b3;return X[_0x4b27c5(0x19f)];}function Gt(_0x13631a){const _0xc79bc9=_0x4e28b3;return _0x13631a===0x1?_0xc79bc9(0x33e):_0x13631a===0x3?_0xc79bc9(0x244):_0xc79bc9(0x2cc);}function Kt(_0x17f4c6,_0x448f9b,_0x107d23,_0x2cf814){return _0x107d23===0x1?_0x17f4c6+_0x2cf814:_0x107d23===0x3?_0x17f4c6+_0x448f9b-_0x2cf814:_0x17f4c6+_0x448f9b/0x2;}var qt=class extends _0x344c5d{constructor(_0x5a1d92=Vt,_0x2f39ca){const _0x2a5e1b=_0x4e28b3;super(_0x5a1d92),K(this,_0x2a5e1b(0x179),{'ghostBounds':null,'parentBounds':null,'side':_0x2a5e1b(0x244),'zoomRatio':0x1}),this['evented']=!0x1,this[_0x2a5e1b(0x2e1)]=_0x5d51da[_0x2a5e1b(0x371)],this[_0x2a5e1b(0x3e7)](_0x2f39ca);}['updateState'](_0x3f168c){const _0x3aa3b4=_0x4e28b3;if(this[_0x3aa3b4(0x179)]={...this[_0x3aa3b4(0x179)],..._0x3f168c},this[_0x3aa3b4(0x179)][_0x3aa3b4(0x14d)]){let _0x4d46ee=this['_resolveDirtyBounds']();this['transformByState'](_0x4d46ee),this['show']();}else this[_0x3aa3b4(0x1d1)]();let _0x21d645=this;typeof _0x21d645[_0x3aa3b4(0x1e0)]==_0x3aa3b4(0x1a6)?_0x21d645[_0x3aa3b4(0x1e0)](!0x0):this['makeDirty'](!0x0);}[_0x4e28b3(0x187)](_0x1bfb90){return!0x1;}['render'](_0x19ecf8,_0x57c9c2){const _0x2cc653=_0x4e28b3;var _0x7184a5,_0x5968e9,_0x1274a8;let _0x2f7612=this['_state'][_0x2cc653(0x14d)];if(!_0x2f7612||!this['visible'])return this[_0x2cc653(0x29f)](!0x1),this;let _0x11c16b=Number[_0x2cc653(0x2de)](this[_0x2cc653(0x179)]['zoomRatio'])&&((_0x7184a5=this['_state'][_0x2cc653(0x1be)])==null?0x0:_0x7184a5)>0x0?this['_state'][_0x2cc653(0x1be)]:0x1,_0x8f31bf=Q(_0x2f7612[_0x2cc653(0x33e)],0x0),_0x480c06=Q(_0x2f7612[_0x2cc653(0x3a3)],0x0),_0xd99ad=Math['max'](0x1,Q(_0x2f7612[_0x2cc653(0x1b5)],Ut())),_0x42e74b=Math[_0x2cc653(0x205)](0x1,Q(_0x2f7612['height'],Wt()));if(_0x19ecf8[_0x2cc653(0x362)](),_0x19ecf8[_0x2cc653(0x232)]=X[_0x2cc653(0x281)],_0x19ecf8['lineWidth']=X[_0x2cc653(0x196)]/_0x11c16b,_0x19ecf8['strokeStyle']=X[_0x2cc653(0x265)],_0x19ecf8[_0x2cc653(0x33c)]=X[_0x2cc653(0x3f9)],this[_0x2cc653(0x2a8)](_0x19ecf8,{'left':_0x8f31bf,'top':_0x480c06,'width':_0xd99ad,'height':_0x42e74b},_0x11c16b),this[_0x2cc653(0x1b9)](_0x19ecf8,_0x11c16b),this['_state'][_0x2cc653(0x182)]===!0x1)return _0x19ecf8[_0x2cc653(0x3e0)](),this['makeDirty'](!0x1),this;Z(_0x19ecf8,_0x8f31bf,_0x480c06,_0xd99ad,_0x42e74b,X[_0x2cc653(0x1e2)]),_0x19ecf8[_0x2cc653(0x29e)](),_0x19ecf8['stroke']();let _0xc06315=this[_0x2cc653(0x179)]['textStyle'],_0x216f38=Number[_0x2cc653(0x2de)](_0xc06315==null?void 0x0:_0xc06315['fontSize'])&&((_0x5968e9=_0xc06315==null?void 0x0:_0xc06315['fontSize'])==null?0x0:_0x5968e9)>0x0?_0xc06315[_0x2cc653(0x419)]:0x10,_0x547531=X[_0x2cc653(0x253)]/_0x11c16b;return _0x19ecf8[_0x2cc653(0x33c)]=(_0x1274a8=_0xc06315==null?void 0x0:_0xc06315[_0x2cc653(0x36d)])==null?X[_0x2cc653(0x1df)]:_0x1274a8,_0x19ecf8[_0x2cc653(0x32f)]=Bt(X[_0x2cc653(0x337)],_0x216f38,_0x11c16b),_0x19ecf8['textAlign']=Gt(_0xc06315==null?void 0x0:_0xc06315['horizontalAlign']),_0x19ecf8[_0x2cc653(0x21e)]=_0x2cc653(0x1ef),_0x19ecf8[_0x2cc653(0x17f)]((_0xc06315==null?void 0x0:_0xc06315['text'])||_0x5ce379,Kt(_0x8f31bf,_0xd99ad,_0xc06315==null?void 0x0:_0xc06315[_0x2cc653(0x287)],_0x547531),_0x480c06+_0x42e74b/0x2,Math[_0x2cc653(0x205)](0x1,_0xd99ad-_0x547531*0x2)),_0x19ecf8[_0x2cc653(0x3e0)](),this[_0x2cc653(0x29f)](!0x1),this;}[_0x4e28b3(0x1b6)](){const _0x34b4f7=_0x4e28b3;var _0x38e121;let _0xcec7da=this[_0x34b4f7(0x179)]['ghostBounds'],_0x2305bb=Number[_0x34b4f7(0x2de)](this[_0x34b4f7(0x179)][_0x34b4f7(0x1be)])&&((_0x38e121=this['_state'][_0x34b4f7(0x1be)])==null?0x0:_0x38e121)>0x0?this[_0x34b4f7(0x179)][_0x34b4f7(0x1be)]:0x1,_0xde6377=X[_0x34b4f7(0x1e4)]/_0x2305bb;if(!_0xcec7da)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x52926a=Q(_0xcec7da[_0x34b4f7(0x33e)],0x0),_0x534fa9=Q(_0xcec7da[_0x34b4f7(0x3a3)],0x0),_0x19139d=Math[_0x34b4f7(0x205)](0x1,Q(_0xcec7da[_0x34b4f7(0x1b5)],Ut())),_0x4f84e6=Math['max'](0x1,Q(_0xcec7da[_0x34b4f7(0x323)],Wt())),_0x349649=this[_0x34b4f7(0x179)][_0x34b4f7(0x305)],_0x1cc7d4=this['_state'][_0x34b4f7(0x3ff)],_0x528d07=Q(_0x349649==null?void 0x0:_0x349649[_0x34b4f7(0x33e)],_0x52926a),_0x1c9fd2=Q(_0x349649==null?void 0x0:_0x349649['top'],_0x534fa9),_0x52da07=Math[_0x34b4f7(0x205)](0x1,Q(_0x349649==null?void 0x0:_0x349649['width'],_0x19139d)),_0x3edb2b=Math[_0x34b4f7(0x205)](0x1,Q(_0x349649==null?void 0x0:_0x349649['height'],_0x4f84e6));if(!_0x1cc7d4){let _0x52457b=Math[_0x34b4f7(0x312)](_0x52926a,_0x528d07)-_0xde6377,_0x3cb64b=Math[_0x34b4f7(0x312)](_0x534fa9,_0x1c9fd2)-_0xde6377,_0x1502e4=Math[_0x34b4f7(0x205)](_0x52926a+_0x19139d,_0x528d07+_0x52da07)+_0xde6377,_0x1f4bbc=Math['max'](_0x534fa9+_0x4f84e6,_0x1c9fd2+_0x3edb2b)+_0xde6377;return{'left':_0x52457b,'top':_0x3cb64b,'width':_0x1502e4-_0x52457b,'height':_0x1f4bbc-_0x3cb64b};}let _0x5068c9=Q(_0x1cc7d4[_0x34b4f7(0x33e)],_0x52926a),_0x3d6177=Q(_0x1cc7d4[_0x34b4f7(0x3a3)],_0x534fa9),_0x2ba249=Math['max'](0x1,Q(_0x1cc7d4[_0x34b4f7(0x1b5)],Ut())),_0x4f7691=Math[_0x34b4f7(0x205)](0x1,Q(_0x1cc7d4['height'],Wt())),_0x39b13a=Math['min'](_0x52926a,_0x5068c9,_0x528d07)-_0xde6377,_0x6a0dfb=Math[_0x34b4f7(0x312)](_0x534fa9,_0x3d6177,_0x1c9fd2)-_0xde6377,_0x4f3425=Math[_0x34b4f7(0x205)](_0x52926a+_0x19139d,_0x5068c9+_0x2ba249,_0x528d07+_0x52da07)+_0xde6377,_0x3ba2ec=Math[_0x34b4f7(0x205)](_0x534fa9+_0x4f84e6,_0x3d6177+_0x4f7691,_0x1c9fd2+_0x3edb2b)+_0xde6377;return{'left':_0x39b13a,'top':_0x6a0dfb,'width':_0x4f3425-_0x39b13a,'height':_0x3ba2ec-_0x6a0dfb};}[_0x4e28b3(0x1b9)](_0x22c625,_0x35c71b){const _0x3df28b=_0x4e28b3;var _0x36d26b;let _0x4a40c1=this[_0x3df28b(0x179)][_0x3df28b(0x305)];if(!_0x4a40c1)return;let _0x4163e1=X[_0x3df28b(0x230)]/_0x35c71b,_0x4f3dc9=Q(_0x4a40c1['left'],0x0)-_0x4163e1,_0x3999af=Q(_0x4a40c1[_0x3df28b(0x3a3)],0x0)-_0x4163e1,_0x52053e=Math['max'](0x1,Q(_0x4a40c1[_0x3df28b(0x1b5)],Ut()))+_0x4163e1*0x2,_0x26d974=Math[_0x3df28b(0x205)](0x1,Q(_0x4a40c1[_0x3df28b(0x323)],Wt()))+_0x4163e1*0x2;_0x22c625[_0x3df28b(0x362)](),_0x22c625[_0x3df28b(0x232)]=0x1,_0x22c625[_0x3df28b(0x408)]=X[_0x3df28b(0x196)]/_0x35c71b,_0x22c625[_0x3df28b(0x386)]=X[_0x3df28b(0x2ac)],_0x22c625[_0x3df28b(0x33c)]=X[_0x3df28b(0x333)],(_0x36d26b=_0x22c625[_0x3df28b(0x36c)])==null||_0x36d26b[_0x3df28b(0x1e1)](_0x22c625,X[_0x3df28b(0x252)][_0x3df28b(0x1cb)](_0x2c4fa6=>_0x2c4fa6/_0x35c71b)),Z(_0x22c625,_0x4f3dc9,_0x3999af,_0x52053e,_0x26d974,X[_0x3df28b(0x172)]),_0x22c625['fill'](),_0x22c625[_0x3df28b(0x18d)](),_0x22c625[_0x3df28b(0x3e0)]();}[_0x4e28b3(0x2a8)](_0x189f53,_0x1d0629,_0x187520){const _0x308013=_0x4e28b3;var _0x24f432;let _0x106a01=this[_0x308013(0x179)][_0x308013(0x3ff)];if(!_0x106a01)return;let _0x3c8b1c=Q(_0x106a01[_0x308013(0x33e)],0x0),_0x470bbf=Q(_0x106a01[_0x308013(0x3a3)],0x0),_0x16f0f9=Math[_0x308013(0x205)](0x1,Q(_0x106a01[_0x308013(0x1b5)],Ut())),_0x30f080=Math[_0x308013(0x205)](0x1,Q(_0x106a01[_0x308013(0x323)],Wt())),_0x3ac3fb=X['branchGap'],_0x28e3e3=(_0x24f432=this[_0x308013(0x179)][_0x308013(0x164)])==null?_0x308013(0x244):_0x24f432;if(_0x189f53[_0x308013(0x362)](),_0x189f53[_0x308013(0x232)]=X['connectorAlpha'],_0x189f53[_0x308013(0x386)]=X[_0x308013(0x265)],_0x189f53[_0x308013(0x408)]=X[_0x308013(0x196)]/_0x187520,_0x189f53[_0x308013(0x208)]=_0x308013(0x414),_0x189f53['lineJoin']=_0x308013(0x414),_0x189f53[_0x308013(0x3c5)](),_0x28e3e3===_0x308013(0x3a3)||_0x28e3e3===_0x308013(0x3f0)){let _0x5c9314=_0x3c8b1c+_0x16f0f9/0x2,_0x2987a8=_0x1d0629[_0x308013(0x33e)]+_0x1d0629[_0x308013(0x1b5)]/0x2,_0x37f148=_0x28e3e3==='bottom'?_0x470bbf+_0x30f080:_0x470bbf,_0x275ec8=_0x28e3e3===_0x308013(0x3f0)?_0x1d0629[_0x308013(0x3a3)]:_0x1d0629[_0x308013(0x3a3)]+_0x1d0629[_0x308013(0x323)],_0x2be725=_0x28e3e3===_0x308013(0x3f0)?Math['min'](_0x37f148+_0x3ac3fb,(_0x37f148+_0x275ec8)/0x2):Math['max'](_0x37f148-_0x3ac3fb,(_0x37f148+_0x275ec8)/0x2);_0x189f53[_0x308013(0x328)](_0x5c9314,_0x37f148),_0x189f53[_0x308013(0x2f7)](_0x5c9314,_0x2be725),_0x189f53[_0x308013(0x2f7)](_0x2987a8,_0x2be725),_0x189f53[_0x308013(0x2f7)](_0x2987a8,_0x275ec8);}else{let _0xac11c1=_0x470bbf+_0x30f080/0x2,_0x4068c2=_0x1d0629['top']+_0x1d0629[_0x308013(0x323)]/0x2,_0x1a40fd=_0x28e3e3===_0x308013(0x244)?_0x3c8b1c+_0x16f0f9:_0x3c8b1c,_0x1e33c5=_0x28e3e3==='right'?_0x1d0629[_0x308013(0x33e)]:_0x1d0629[_0x308013(0x33e)]+_0x1d0629[_0x308013(0x1b5)],_0x3939c7=_0x28e3e3===_0x308013(0x244)?Math['min'](_0x1a40fd+_0x3ac3fb,(_0x1a40fd+_0x1e33c5)/0x2):Math[_0x308013(0x205)](_0x1a40fd-_0x3ac3fb,(_0x1a40fd+_0x1e33c5)/0x2);_0x189f53[_0x308013(0x328)](_0x1a40fd,_0xac11c1),_0x189f53[_0x308013(0x2f7)](_0x3939c7,_0xac11c1),_0x189f53[_0x308013(0x2f7)](_0x3939c7,_0x4068c2),_0x189f53[_0x308013(0x2f7)](_0x1e33c5,_0x4068c2);}_0x189f53['stroke'](),_0x189f53[_0x308013(0x3e0)]();}};function Jt(_0x37cda9,_0x279a30){const _0x249aa8=_0x4e28b3;var _0x28f946;return(_0x28f946=_0x279a30==null?void 0x0:_0x279a30[_0x37cda9[_0x249aa8(0x404)]])==null?_0x37cda9[_0x249aa8(0x409)][_0x249aa8(0x2eb)]:_0x28f946;}function Yt(_0x783487,_0x397764){const _0x1710f8=_0x4e28b3;var _0x20705f,_0x2edbbf,_0x24fffe,_0x37100e;let _0x4d077f=Jt(_0x783487,_0x397764);return{'x':((_0x20705f=_0x4d077f[_0x1710f8(0x33e)])==null?0x0:_0x20705f)+((_0x2edbbf=_0x4d077f[_0x1710f8(0x1b5)])==null?0x0:_0x2edbbf)/0x2,'y':((_0x24fffe=_0x4d077f[_0x1710f8(0x3a3)])==null?0x0:_0x24fffe)+((_0x37100e=_0x4d077f[_0x1710f8(0x323)])==null?0x0:_0x37100e)/0x2};}function Xt(_0x1a258f,_0x9c97f3){const _0x18d0fc=_0x4e28b3;return Math[_0x18d0fc(0x14f)](_0x1a258f['x']-_0x9c97f3['x'],_0x1a258f['y']-_0x9c97f3['y']);}function Zt(_0x255e5a,_0x1ca7ed){const _0x2f6805=_0x4e28b3;var _0x199016,_0x477de8,_0x120332,_0x32e739,_0x2c9b6a,_0x54cb79,_0x4acc65,_0x5335ab;let _0x48a5f2=(_0x199016=_0x255e5a[_0x2f6805(0x33e)])==null?0x0:_0x199016,_0x5bc7b4=(_0x477de8=_0x255e5a[_0x2f6805(0x3a3)])==null?0x0:_0x477de8,_0x3a46ac=_0x48a5f2+((_0x120332=_0x255e5a['width'])==null?0x0:_0x120332),_0x31bc18=_0x5bc7b4+((_0x32e739=_0x255e5a[_0x2f6805(0x323)])==null?0x0:_0x32e739),_0x34ec4d=(_0x2c9b6a=_0x1ca7ed['left'])==null?0x0:_0x2c9b6a,_0x319097=(_0x54cb79=_0x1ca7ed['top'])==null?0x0:_0x54cb79,_0x35d8b6=_0x34ec4d+((_0x4acc65=_0x1ca7ed[_0x2f6805(0x1b5)])==null?0x0:_0x4acc65),_0x363030=_0x319097+((_0x5335ab=_0x1ca7ed[_0x2f6805(0x323)])==null?0x0:_0x5335ab),_0x206e52=Math['max'](_0x34ec4d-_0x3a46ac,_0x48a5f2-_0x35d8b6,0x0),_0x10c154=Math[_0x2f6805(0x205)](_0x319097-_0x31bc18,_0x5bc7b4-_0x363030,0x0);return Math[_0x2f6805(0x14f)](_0x206e52,_0x10c154);}function Qt(_0x2662ba,_0x5d6d96,_0x1760cf){const _0x38f589=_0x4e28b3;var _0x57a0e6;let _0x1a0c29=_0x130c96((_0x57a0e6=_0x2662ba[_0x5d6d96])==null?void 0x0:_0x57a0e6[_0x38f589(0x409)]);for(;_0x1a0c29!=null&&_0x1a0c29['parentNodeId'];){var _0x56b944;if(_0x1a0c29[_0x38f589(0x197)]===_0x1760cf)return!0x0;_0x1a0c29=_0x130c96((_0x56b944=_0x2662ba[_0x1a0c29['parentNodeId']])==null?void 0x0:_0x56b944[_0x38f589(0x409)]);}return!0x1;}function $t(_0x56a217,_0x5e0ec1,_0x420954){const _0x41c646=_0x4e28b3;var _0x2150bc,_0x5dbb95;let _0x4cb43a=Jt(_0x56a217,_0x420954),_0x3e1a60=(_0x2150bc=_0x4cb43a[_0x41c646(0x3a3)])==null?0x0:_0x2150bc,_0x3129ed=(_0x5dbb95=_0x4cb43a['height'])==null?0x0:_0x5dbb95;return _0x3129ed<=0x0?null:_0x5e0ec1['y']<=_0x3e1a60+_0x3129ed/0x3?_0x41c646(0x22e):_0x5e0ec1['y']>=_0x3e1a60+_0x3129ed*0x2/0x3?'after':null;}function en(_0x135eaa,_0x198596){const _0x26bdd0=_0x4e28b3;let _0x30ba30=_0x198596==null?void 0x0:_0x198596[_0x135eaa];return Number[_0x26bdd0(0x2de)](_0x30ba30==null?void 0x0:_0x30ba30['left'])&&Number['isFinite'](_0x30ba30==null?void 0x0:_0x30ba30[_0x26bdd0(0x3a3)])?{'kind':_0x26bdd0(0x39b),'left':_0x30ba30['left'],'top':_0x30ba30['top']}:{'kind':_0x26bdd0(0x39b)};}function tn(_0x253330,_0x5422a2,_0x28e4de){const _0x1529c5=_0x4e28b3;let _0xceaf90=_0x253330[_0x5422a2],_0x4b13df=_0x130c96(_0xceaf90==null?void 0x0:_0xceaf90['element']);if(!_0xceaf90||!_0x4b13df||!_0x4b13df[_0x1529c5(0x197)]&&!(_0x28e4de!=null&&_0x28e4de[_0x1529c5(0x16b)]))return{'kind':_0x1529c5(0x38c)};let _0x47214c=_0x28e4de==null?void 0x0:_0x28e4de[_0x1529c5(0x393)],_0x6c2666=Jt(_0xceaf90,_0x47214c),_0x2253fa=Yt(_0xceaf90,_0x47214c),_0x1f6e7d=Object[_0x1529c5(0x326)](_0x253330)[_0x1529c5(0x1cb)](_0x5a1043=>{const _0x1ba989=_0x1529c5;let _0x1cc9ae=_0x130c96(_0x5a1043['element']);return!_0x1cc9ae||_0x5a1043[_0x1ba989(0x404)]===_0x5422a2||_0x5a1043[_0x1ba989(0x404)]===_0x4b13df[_0x1ba989(0x197)]||_0x28e4de!=null&&_0x28e4de['allowRootReparent']&&!_0x4b13df[_0x1ba989(0x197)]&&_0x1cc9ae['structureScopeId']===_0x4b13df[_0x1ba989(0x3fe)]||Qt(_0x253330,_0x5a1043['elementId'],_0x5422a2)?null:{'item':_0x5a1043,'snapDistance':Zt(_0x6c2666,Jt(_0x5a1043,_0x47214c)),'center':Yt(_0x5a1043,_0x47214c)};})['filter'](_0x45fea9=>!!_0x45fea9)[_0x1529c5(0x3b9)]((_0x5cc575,_0x1b72f5)=>_0x5cc575[_0x1529c5(0x3cb)]-_0x1b72f5['snapDistance']||Xt(_0x2253fa,_0x5cc575[_0x1529c5(0x2cc)])-Xt(_0x2253fa,_0x1b72f5[_0x1529c5(0x2cc)]))[0x0];if(_0x1f6e7d&&_0x1f6e7d[_0x1529c5(0x3cb)]<=0x64){let _0x16b0bf=_0x130c96(_0x1f6e7d[_0x1529c5(0x1d5)]['element']),_0x46b59b=_0x16b0bf!=null&&_0x16b0bf[_0x1529c5(0x197)]?$t(_0x1f6e7d['item'],_0x2253fa,_0x47214c):null;if(_0x16b0bf!=null&&_0x16b0bf['parentNodeId']&&_0x46b59b){var _0x5a31ed;return{'kind':'reparent','newParentNodeId':_0x16b0bf[_0x1529c5(0x197)],'side':(_0x5a31ed=_0x16b0bf[_0x1529c5(0x164)])==null?'right':_0x5a31ed,'referenceNodeId':_0x1f6e7d[_0x1529c5(0x1d5)][_0x1529c5(0x404)],'placement':_0x46b59b};}return{'kind':_0x1529c5(0x3b2),'newParentNodeId':_0x1f6e7d[_0x1529c5(0x1d5)][_0x1529c5(0x404)],'side':_0x2253fa['x']<_0x1f6e7d[_0x1529c5(0x2cc)]['x']?_0x1529c5(0x33e):_0x1529c5(0x244)};}if(_0x28e4de!=null&&_0x28e4de[_0x1529c5(0x395)])return en(_0x5422a2,_0x47214c);if(!_0x4b13df[_0x1529c5(0x197)])return{'kind':'none'};let _0x285810=_0x253330[_0x4b13df['parentNodeId']];return _0x285810&&Xt(_0x2253fa,Yt(_0x285810,_0x47214c))>0x230?en(_0x5422a2,_0x47214c):{'kind':'none'};}function nn(_0x53a1d2,_0x126047){const _0x1dc86b=_0x4e28b3;var _0x3df4bb,_0x24f6f3;return _0x53a1d2[_0x1dc86b(0x404)]===_0x126047||((_0x3df4bb=_0x130c96(_0x53a1d2[_0x1dc86b(0x409)]))==null?void 0x0:_0x3df4bb[_0x1dc86b(0x3fe)])===_0x126047||((_0x24f6f3=_0x42da87(_0x53a1d2[_0x1dc86b(0x409)]))==null?void 0x0:_0x24f6f3['structureScopeId'])===_0x126047;}function rn(_0x5f1c5b,_0x3a62c1,_0x2f6b48,_0x452683){const _0x4410=_0x4e28b3;var _0x54afec,_0x3757bd,_0x1ebef6,_0x3902e8,_0x344f4c,_0x1afaa7;let _0x500d57=_0x5f1c5b[_0x3a62c1];if(!_0x500d57)return _0x5f1c5b;let _0x27a1ac=(_0x54afec=(_0x3757bd=_0x500d57[_0x4410(0x2eb)])==null?_0x500d57[_0x4410(0x409)]['transform']:_0x3757bd)==null?{}:_0x54afec;return{..._0x5f1c5b,[_0x3a62c1]:{..._0x500d57,'transform':{..._0x27a1ac,'left':((_0x1ebef6=_0x27a1ac[_0x4410(0x33e)])==null?0x0:_0x1ebef6)+_0x2f6b48,'top':((_0x3902e8=_0x27a1ac[_0x4410(0x3a3)])==null?0x0:_0x3902e8)+_0x452683},'element':{..._0x500d57[_0x4410(0x409)],'transform':{..._0x500d57['element'][_0x4410(0x2eb)],'left':((_0x344f4c=_0x500d57[_0x4410(0x409)]['transform'][_0x4410(0x33e)])==null?0x0:_0x344f4c)+_0x2f6b48,'top':((_0x1afaa7=_0x500d57[_0x4410(0x409)]['transform'][_0x4410(0x3a3)])==null?0x0:_0x1afaa7)+_0x452683}}}};}function an(_0x89889a){const _0x4bf2ed=_0x4e28b3;if(!Number[_0x4bf2ed(0x2de)](_0x89889a[_0x4bf2ed(0x22a)]['left'])||!Number[_0x4bf2ed(0x2de)](_0x89889a[_0x4bf2ed(0x22a)][_0x4bf2ed(0x3a3)])||!Number['isFinite'](_0x89889a[_0x4bf2ed(0x1aa)][_0x4bf2ed(0x33e)])||!Number['isFinite'](_0x89889a[_0x4bf2ed(0x1aa)][_0x4bf2ed(0x3a3)]))return null;let _0x47a231=_0x89889a[_0x4bf2ed(0x22a)][_0x4bf2ed(0x33e)]-_0x89889a[_0x4bf2ed(0x1aa)][_0x4bf2ed(0x33e)],_0x1b0ebc=_0x89889a[_0x4bf2ed(0x22a)][_0x4bf2ed(0x3a3)]-_0x89889a['rootStartBounds']['top'],_0x59138c=rn(_0x89889a['elementData'],_0x89889a[_0x4bf2ed(0x38b)],_0x47a231,_0x1b0ebc),_0x205869=[];return Object[_0x4bf2ed(0x326)](_0x59138c)[_0x4bf2ed(0x3c2)](_0x4aa2df=>{const _0x413466=_0x4bf2ed;if(_0x4aa2df[_0x413466(0x404)]===_0x89889a[_0x413466(0x215)]||_0x4aa2df[_0x413466(0x404)]===_0x89889a[_0x413466(0x38b)]||!nn(_0x4aa2df,_0x89889a['scopeId']))return;if('connectorData'in _0x4aa2df['element']){var _0xced695;let _0x26cc11=(_0xced695=_0x89889a[_0x413466(0x25a)][_0x4aa2df[_0x413466(0x404)]])==null?void 0x0:_0xced695['element'];_0x26cc11&&_0x413466(0x296)in _0x26cc11&&_0x205869['push']({'kind':_0x413466(0x34c),'elementId':_0x4aa2df[_0x413466(0x404)],'element':_0x31298f(_0x26cc11,{'x':_0x47a231,'y':_0x1b0ebc})});return;}let _0x422040=_0x8188de(_0x59138c,_0x4aa2df[_0x413466(0x404)]);_0x422040&&_0x205869[_0x413466(0x251)]({'kind':'bounds','elementId':_0x4aa2df['elementId'],'bounds':_0x422040});}),{'deltaX':_0x47a231,'deltaY':_0x1b0ebc,'elementData':_0x59138c,'items':_0x205869};}let on=class extends _0x43afa6{constructor(_0x666407,_0x1d2377,_0x67a80b,_0x21612d,_0x3bf55d,_0x2c9ef9){const _0x113f26=_0x4e28b3;super(),this['_renderContext']=_0x666407,this['_boardElementService']=_0x1d2377,this[_0x113f26(0x1e3)]=_0x67a80b,this['_commandService']=_0x21612d,this['_uiStateService']=_0x3bf55d,this[_0x113f26(0x218)]=_0x2c9ef9,K(this,_0x113f26(0x3f7),null),K(this,'_pointerDragStart',null),K(this,'_dragPreviewObject',null),K(this,_0x113f26(0x324),!0x1),K(this,_0x113f26(0x364),null),K(this,_0x113f26(0x412),null),K(this,'_attachObjectPointerScheduled',!0x1),K(this,'_activePointerDragDisposables',null),K(this,_0x113f26(0x1f6),!0x1),this['_init']();}[_0x4e28b3(0x169)](){const _0x33def7=_0x4e28b3;var _0x49f713,_0x1370be,_0x515acb,_0x1a03c9,_0x2ade10,_0xdc83dd,_0x51ece2,_0x2a9e30,_0x91b159,_0x4fc4d7;let _0xbabf7=this[_0x33def7(0x1f3)][_0x33def7(0x171)]['getTransformerByCreate']();this['disposeWithMe'](_0x288fdc(_0xbabf7['changeStart$'][_0x33def7(0x34f)](_0x362352(this[_0x33def7(0x2a2)]))[_0x33def7(0x345)](()=>{const _0x413c36=_0x33def7;this[_0x413c36(0x2b4)]();}))),this['disposeWithMe'](_0x288fdc((_0x49f713=(_0x1370be=_0xbabf7['changing$'])==null?void 0x0:_0x1370be[_0x33def7(0x34f)](_0x362352(this[_0x33def7(0x2a2)]))[_0x33def7(0x345)](_0x3d82ac=>{this['_syncDragPreview'](_0x3d82ac==null?void 0x0:_0x3d82ac['objects']);}))==null?{'dispose':()=>{}}:_0x49f713)),this[_0x33def7(0x40b)](_0x288fdc(_0xbabf7['changeEnd$'][_0x33def7(0x34f)](_0x362352(this[_0x33def7(0x2a2)]))[_0x33def7(0x345)](_0x332fdb=>{const _0x3230c9=_0x33def7;setTimeout(()=>this[_0x3230c9(0x14e)](_0x332fdb==null?void 0x0:_0x332fdb[_0x3230c9(0x1ab)]),0x0);}))),this[_0x33def7(0x40b)](_0x288fdc((_0x515acb=(_0x1a03c9=this[_0x33def7(0x1f3)][_0x33def7(0x171)][_0x33def7(0x33d)])==null?void 0x0:_0x1a03c9[_0x33def7(0x36e)]({'priority':0x3,'next':([_0x57c306])=>this[_0x33def7(0x1f9)](_0x57c306)}))==null?{'dispose':()=>{}}:_0x515acb)),this['disposeWithMe'](_0x288fdc((_0x2ade10=(_0xdc83dd=this[_0x33def7(0x1f3)][_0x33def7(0x171)][_0x33def7(0x1a4)])==null?void 0x0:_0xdc83dd['subscribeEvent']({'priority':0x3,'next':([_0x2105cc,_0x29a4da])=>this[_0x33def7(0x2d6)](_0x2105cc,_0x29a4da)}))==null?{'dispose':()=>{}}:_0x2ade10)),this[_0x33def7(0x40b)](_0x288fdc((_0x51ece2=(_0x2a9e30=this['_renderContext'][_0x33def7(0x171)][_0x33def7(0x194)])==null?void 0x0:_0x2a9e30[_0x33def7(0x36e)]({'priority':0x3,'next':([_0x3c231d,_0x25ff61])=>this[_0x33def7(0x38e)](_0x3c231d,_0x25ff61)}))==null?{'dispose':()=>{}}:_0x51ece2)),this[_0x33def7(0x40b)](_0x288fdc((_0x91b159=(_0x4fc4d7=this[_0x33def7(0x1f3)]['scene'][_0x33def7(0x1d9)])==null?void 0x0:_0x4fc4d7[_0x33def7(0x36e)]({'priority':0x3,'next':([,_0x4df382])=>this[_0x33def7(0x293)](_0x4df382)}))==null?{'dispose':()=>{}}:_0x91b159)),this[_0x33def7(0x40b)](_0x288fdc(()=>{const _0x26e044=_0x33def7;var _0x47b5fa;return(_0x47b5fa=this[_0x26e044(0x412)])==null?void 0x0:_0x47b5fa['dispose']();})),this[_0x33def7(0x40b)](_0x288fdc(()=>this[_0x33def7(0x3a8)]())),this[_0x33def7(0x228)](),this[_0x33def7(0x336)](),this[_0x33def7(0x40b)](_0x288fdc(()=>this['_removeDragPreviewObject']()));}[_0x4e28b3(0x228)](){const _0x131954=_0x4e28b3;let _0x5c9383=this[_0x131954(0x234)],_0x40699f=_0x3259bd=>{const _0x12f4b1=_0x131954;let _0x5f2588=_0x3259bd==null?void 0x0:_0x3259bd['subscribe'](()=>this[_0x12f4b1(0x336)]());_0x5f2588&&this[_0x12f4b1(0x40b)](_0x288fdc(()=>{const _0x3e2b30=_0x12f4b1;var _0x226a0c,_0x5d158f;(_0x226a0c=_0x5f2588[_0x3e2b30(0x29d)])==null||_0x226a0c[_0x3e2b30(0x1e1)](_0x5f2588),(_0x5d158f=_0x5f2588[_0x3e2b30(0x1ee)])==null||_0x5d158f['call'](_0x5f2588);}));};_0x40699f(_0x5c9383[_0x131954(0x16e)]),_0x40699f(_0x5c9383['elementUpdate$']),_0x40699f(_0x5c9383[_0x131954(0x300)]),this[_0x131954(0x1e3)][_0x131954(0x27f)]&&this['disposeWithMe'](_0x288fdc(this[_0x131954(0x1e3)][_0x131954(0x27f)][_0x131954(0x34f)](_0x362352(this[_0x131954(0x2a2)]))['subscribe'](()=>{const _0x254bea=_0x131954;this[_0x254bea(0x336)]();})));}[_0x4e28b3(0x336)](){const _0x55c2a6=_0x4e28b3;this[_0x55c2a6(0x2a6)]||(this[_0x55c2a6(0x2a6)]=!0x0,Promise['resolve']()[_0x55c2a6(0x378)](()=>this[_0x55c2a6(0x1d7)]()));}['_attachObjectPointerListeners'](){const _0x1829ed=_0x4e28b3;var _0x5f03f0;this[_0x1829ed(0x2a6)]=!0x1;let _0x4253d8=this[_0x1829ed(0x2d3)](),_0x37b9d7=this['_renderContext'][_0x1829ed(0x171)];if(!_0x4253d8||typeof _0x37b9d7[_0x1829ed(0x3fc)]!='function')return;let _0x113d8d=this['_boardElementService'][_0x1829ed(0x36f)](_0x4253d8[_0x1829ed(0x204)],_0x4253d8[_0x1829ed(0x1e8)]),_0x475336=new _0x4ee20c();(_0x5f03f0=this[_0x1829ed(0x412)])==null||_0x5f03f0[_0x1829ed(0x29d)](),this[_0x1829ed(0x412)]=_0x475336,Object[_0x1829ed(0x326)](_0x113d8d)[_0x1829ed(0x3c2)](_0x58309f=>{const _0x29e5c0=_0x1829ed;var _0x4fcca7,_0x3bd1e5,_0x226384;let _0x3c322d=_0x130c96(_0x58309f['element']);if(!(_0x3c322d!=null&&_0x3c322d[_0x29e5c0(0x197)]))return;let _0x5c2096=_0x239fd6(_0x4253d8[_0x29e5c0(0x204)],_0x58309f[_0x29e5c0(0x404)]),_0x13b28a=(_0x4fcca7=(_0x3bd1e5=_0x37b9d7[_0x29e5c0(0x24c)])==null?void 0x0:_0x3bd1e5[_0x29e5c0(0x1e1)](_0x37b9d7,_0x5c2096))==null?(_0x226384=_0x37b9d7['getObject'])==null?void 0x0:_0x226384[_0x29e5c0(0x1e1)](_0x37b9d7,_0x5c2096):_0x4fcca7;_0x13b28a!=null&&_0x13b28a[_0x29e5c0(0x33d)]&&_0x475336['add'](_0x13b28a[_0x29e5c0(0x33d)][_0x29e5c0(0x36e)]({'priority':-0xa,'next':([_0x210fa8,_0x5aff8e])=>this[_0x29e5c0(0x1f9)](_0x210fa8,{'unitId':_0x4253d8[_0x29e5c0(0x204)],'subUnitId':_0x4253d8[_0x29e5c0(0x1e8)],'nodeId':_0x58309f[_0x29e5c0(0x404)]},_0x5aff8e)}));});}['_resolveCurrentBoardContext'](){const _0x523b65=_0x4e28b3;let _0x3be04b=this[_0x523b65(0x1e3)][_0x523b65(0x2af)]()['context'];if(_0x3be04b)return _0x3be04b;let _0x34d604=this['_renderContext'][_0x523b65(0x204)],_0x17492a=_0x34d604?this[_0x523b65(0x218)]['getUnit'](_0x34d604,_0x2934fe[_0x523b65(0x302)]):null,_0x3326e6=_0x17492a==null?void 0x0:_0x17492a[_0x523b65(0x3be)]();return!_0x17492a||!_0x3326e6?null:{'unitId':_0x17492a[_0x523b65(0x2c1)](),'subUnitId':_0x3326e6};}[_0x4e28b3(0x2b4)](){const _0x36bba3=_0x4e28b3;var _0x9e6b3b,_0x5c3afa,_0xc9a810,_0x3621bb,_0x47f853,_0x45576c,_0x55b381,_0x5a267e,_0x376706;let _0x224563=this[_0x36bba3(0x1e3)][_0x36bba3(0x2af)]();this['_childDragActivated']=!0x1,this[_0x36bba3(0x1f6)]=!0x1,this[_0x36bba3(0x364)]=null;let _0x58d166=_0x224563['context'],_0x3c24d6=(_0x9e6b3b=_0x224563[_0x36bba3(0x26f)])==null?_0x224563[_0x36bba3(0x315)][0x0]:_0x9e6b3b;if(!_0x58d166||!_0x3c24d6||_0x224563[_0x36bba3(0x315)][_0x36bba3(0x282)]!==0x1){this[_0x36bba3(0x3f7)]=null,this['_removeDragPreviewObject']();return;}let _0x537848=this['_boardElementService'][_0x36bba3(0x36f)](_0x58d166[_0x36bba3(0x204)],_0x58d166['subUnitId']),_0x2a4e7f=_0x537848[_0x3c24d6],_0x105db7=_0x130c96(_0x2a4e7f==null?void 0x0:_0x2a4e7f['element']);if(!_0x2a4e7f||!_0x105db7){this['_dragStart']=null,this[_0x36bba3(0x41a)]();return;}let _0x489b72=_0x8188de(_0x537848,_0x3c24d6),_0x31c71d=_0x2a4e7f[_0x36bba3(0x409)][_0x36bba3(0x2eb)];this['_dragStart']={'kind':_0x105db7[_0x36bba3(0x197)]===null?_0x36bba3(0x407):_0x36bba3(0x1f4),'unitId':_0x58d166['unitId'],'subUnitId':_0x58d166[_0x36bba3(0x1e8)],'nodeId':_0x3c24d6,'scopeId':_0x105db7[_0x36bba3(0x3fe)],'left':(_0x5c3afa=(_0xc9a810=_0x489b72==null?void 0x0:_0x489b72[_0x36bba3(0x33e)])==null?_0x31c71d[_0x36bba3(0x33e)]:_0xc9a810)==null?0x0:_0x5c3afa,'top':(_0x3621bb=(_0x47f853=_0x489b72==null?void 0x0:_0x489b72[_0x36bba3(0x3a3)])==null?_0x31c71d[_0x36bba3(0x3a3)]:_0x47f853)==null?0x0:_0x3621bb,'width':(_0x45576c=(_0x55b381=_0x489b72==null?void 0x0:_0x489b72[_0x36bba3(0x1b5)])==null?_0x31c71d['width']:_0x55b381)==null?0x0:_0x45576c,'height':(_0x5a267e=(_0x376706=_0x489b72==null?void 0x0:_0x489b72[_0x36bba3(0x323)])==null?_0x31c71d['height']:_0x376706)==null?0x0:_0x5a267e,'elementData':_0x537848};}[_0x4e28b3(0x1f9)](_0x59ae69,_0x40c9f0,_0x26496f){const _0x2d93c9=_0x4e28b3;var _0x1cb50f,_0x1b4538,_0x2b9e99,_0x4d5370,_0x456383,_0x570ada,_0x5d76bf,_0x44cd2,_0x4a6ca2,_0x42f1a2,_0x15577b,_0x526811,_0x4b13a0,_0x52160e;if(((_0x1cb50f=_0x59ae69[_0x2d93c9(0x3c7)])==null?0x0:_0x1cb50f)!==0x0)return;let _0x219a5f=this[_0x2d93c9(0x1e3)][_0x2d93c9(0x2af)]();if(_0x219a5f[_0x2d93c9(0x2bc)]){this[_0x2d93c9(0x3e6)]=null;return;}let _0x238cad=_0x40c9f0?{'unitId':_0x40c9f0[_0x2d93c9(0x204)],'subUnitId':_0x40c9f0[_0x2d93c9(0x1e8)]}:(_0x1b4538=_0x219a5f[_0x2d93c9(0x1ed)])==null?this[_0x2d93c9(0x2d3)]():_0x1b4538,_0x5a6778=(_0x2b9e99=_0x40c9f0==null?void 0x0:_0x40c9f0[_0x2d93c9(0x263)])==null?_0x219a5f[_0x2d93c9(0x315)][_0x2d93c9(0x282)]===0x1?(_0x4d5370=_0x219a5f[_0x2d93c9(0x26f)])==null?_0x219a5f[_0x2d93c9(0x315)][0x0]:_0x4d5370:void 0x0:_0x2b9e99;if(!_0x238cad){this['_pointerDragStart']=null;return;}let _0x23719b=this[_0x2d93c9(0x234)]['getElementData'](_0x238cad[_0x2d93c9(0x204)],_0x238cad[_0x2d93c9(0x1e8)]),_0x3c7ff1=this['_getBoardPointFromEvent'](_0x59ae69);if(!_0x40c9f0){var _0x3e40f3,_0x59b791,_0x3ee20b,_0x23a334,_0x19214b;let _0x15697d=_0x5a6778?_0x23719b[_0x5a6778]:null,_0xc7a77=_0x130c96(_0x15697d==null?void 0x0:_0x15697d[_0x2d93c9(0x409)]),_0x2ebb2b=_0x5a6778?(_0x3e40f3=_0x8188de(_0x23719b,_0x5a6778))==null?_0x15697d==null?void 0x0:_0x15697d[_0x2d93c9(0x409)][_0x2d93c9(0x2eb)]:_0x3e40f3:null;(!(_0xc7a77!=null&&_0xc7a77['parentNodeId'])||!_0x2ebb2b||!this['_isPointInBounds'](_0x3c7ff1,{'left':(_0x59b791=_0x2ebb2b[_0x2d93c9(0x33e)])==null?0x0:_0x59b791,'top':(_0x3ee20b=_0x2ebb2b[_0x2d93c9(0x3a3)])==null?0x0:_0x3ee20b,'width':(_0x23a334=_0x2ebb2b[_0x2d93c9(0x1b5)])==null?0x0:_0x23a334,'height':(_0x19214b=_0x2ebb2b['height'])==null?0x0:_0x19214b}))&&(_0x5a6778=this[_0x2d93c9(0x19c)](_0x23719b,_0x3c7ff1));}if(!_0x5a6778){this[_0x2d93c9(0x3e6)]=null;return;}let _0x25e1f4=_0x23719b[_0x5a6778],_0x4322b6=_0x130c96(_0x25e1f4==null?void 0x0:_0x25e1f4['element']);if(!_0x25e1f4||!(_0x4322b6!=null&&_0x4322b6[_0x2d93c9(0x197)])){this['_pointerDragStart']=null;return;}(_0x456383=(_0x570ada=this[_0x2d93c9(0x1e3)])[_0x2d93c9(0x15b)])==null||_0x456383[_0x2d93c9(0x1e1)](_0x570ada,_0x238cad,[_0x5a6778],_0x5a6778),_0x26496f==null||_0x26496f['stopPropagation']();let _0x4ce2f6=_0x8188de(_0x23719b,_0x5a6778),_0x45ccaf=_0x25e1f4[_0x2d93c9(0x409)][_0x2d93c9(0x2eb)],_0x4fd0b8={'left':(_0x5d76bf=(_0x44cd2=_0x4ce2f6==null?void 0x0:_0x4ce2f6[_0x2d93c9(0x33e)])==null?_0x45ccaf['left']:_0x44cd2)==null?0x0:_0x5d76bf,'top':(_0x4a6ca2=(_0x42f1a2=_0x4ce2f6==null?void 0x0:_0x4ce2f6[_0x2d93c9(0x3a3)])==null?_0x45ccaf[_0x2d93c9(0x3a3)]:_0x42f1a2)==null?0x0:_0x4a6ca2,'width':(_0x15577b=(_0x526811=_0x4ce2f6==null?void 0x0:_0x4ce2f6[_0x2d93c9(0x1b5)])==null?_0x45ccaf[_0x2d93c9(0x1b5)]:_0x526811)==null?0x0:_0x15577b,'height':(_0x4b13a0=(_0x52160e=_0x4ce2f6==null?void 0x0:_0x4ce2f6['height'])==null?_0x45ccaf[_0x2d93c9(0x323)]:_0x52160e)==null?0x0:_0x4b13a0};if(!_0x40c9f0&&!this['_isPointInBounds'](_0x3c7ff1,_0x4fd0b8)){this[_0x2d93c9(0x3e6)]=null;return;}let _0x379cf3=this[_0x2d93c9(0x29b)](_0x59ae69);this[_0x2d93c9(0x324)]=!0x1,this['_childDragSelectionHidden']=!0x1,this[_0x2d93c9(0x364)]=null,this['_pointerDragStart']={'kind':'child','unitId':_0x238cad[_0x2d93c9(0x204)],'subUnitId':_0x238cad[_0x2d93c9(0x1e8)],'nodeId':_0x5a6778,'scopeId':_0x4322b6['structureScopeId'],..._0x4fd0b8,'pointerStartX':_0x379cf3['x'],'pointerStartY':_0x379cf3['y'],'elementData':_0x23719b},this[_0x2d93c9(0x1e6)](),this[_0x2d93c9(0x26a)](_0x59ae69,_0x26496f);}[_0x4e28b3(0x2d6)](_0x33ff8e,_0x38ace6){const _0x3322ed=_0x4e28b3;var _0x12817b,_0x145d9a;let _0xd28e6b=this['_pointerDragStart'];if(!_0xd28e6b||_0x33ff8e['buttons']!==void 0x0&&_0x33ff8e['buttons']!==0x1)return;let _0x166637=this[_0x3322ed(0x369)](_0x33ff8e,_0xd28e6b);if(!this['_isChildDragPastActivationThreshold'](_0xd28e6b,_0x166637))return;this[_0x3322ed(0x324)]||this[_0x3322ed(0x16f)](),this[_0x3322ed(0x324)]=!0x0;let _0x4886d2=this[_0x3322ed(0x235)](_0xd28e6b[_0x3322ed(0x25a)],_0xd28e6b['nodeId'],_0x166637),_0x17b7c4=tn(_0xd28e6b[_0x3322ed(0x25a)],_0xd28e6b['nodeId'],{'boundsByElementId':_0x4886d2,'detachWhenNoSnap':!0x0});this['_lastChildDragAction']=_0x17b7c4,this[_0x3322ed(0x217)](_0x166637,_0x17b7c4,_0x4886d2),this[_0x3322ed(0x26a)](_0x33ff8e,_0x38ace6),this[_0x3322ed(0x1f3)][_0x3322ed(0x171)][_0x3322ed(0x29f)](!0x0),(_0x12817b=(_0x145d9a=this[_0x3322ed(0x1f3)][_0x3322ed(0x171)])['requestRender'])==null||_0x12817b[_0x3322ed(0x1e1)](_0x145d9a);}[_0x4e28b3(0x38e)](_0x26369,_0x3724cb){const _0x2e0819=_0x4e28b3;let _0x1ff87f=this[_0x2e0819(0x3e6)];if(!_0x1ff87f)return;if(this[_0x2e0819(0x3e6)]=null,this[_0x2e0819(0x3a8)](),this['_removeDragPreviewObject'](),!this['_childDragActivated']){this[_0x2e0819(0x364)]=null;return;}let _0x174208=this[_0x2e0819(0x234)][_0x2e0819(0x36f)](_0x1ff87f['unitId'],_0x1ff87f['subUnitId']),_0x435634=this[_0x2e0819(0x369)](_0x26369,_0x1ff87f),_0x364244=this[_0x2e0819(0x235)](_0x174208,_0x1ff87f['nodeId'],_0x435634),_0x5ed69c=tn(_0x174208,_0x1ff87f[_0x2e0819(0x263)],{'boundsByElementId':_0x364244,'detachWhenNoSnap':!0x0});this[_0x2e0819(0x364)]=null,this[_0x2e0819(0x1ea)](_0x1ff87f[_0x2e0819(0x204)],_0x1ff87f[_0x2e0819(0x1e8)],_0x1ff87f[_0x2e0819(0x263)],_0x174208,_0x5ed69c),this[_0x2e0819(0x1f6)]=!0x1,this['_consumePointerEvent'](_0x26369,_0x3724cb);}[_0x4e28b3(0x293)](_0x3d4581){const _0x35323c=_0x4e28b3;let _0x477919=this[_0x35323c(0x3e6)];if(_0x477919){if(this[_0x35323c(0x3e6)]=null,this[_0x35323c(0x3a8)](),this['_childDragActivated']=!0x1,this[_0x35323c(0x364)]=null,this[_0x35323c(0x41a)](),this['_childDragSelectionHidden']){var _0xbb206,_0x415133;(_0xbb206=(_0x415133=this[_0x35323c(0x1e3)])[_0x35323c(0x15b)])==null||_0xbb206[_0x35323c(0x1e1)](_0x415133,{'unitId':_0x477919['unitId'],'subUnitId':_0x477919[_0x35323c(0x1e8)]},[_0x477919[_0x35323c(0x263)]],_0x477919[_0x35323c(0x263)]),this['_childDragSelectionHidden']=!0x1;}_0x3d4581==null||_0x3d4581[_0x35323c(0x372)]();}}[_0x4e28b3(0x1e6)](){const _0x2d2f98=_0x4e28b3;this[_0x2d2f98(0x3a8)]();let _0x1cf7ab=typeof window>'u'?null:window;if(!(_0x1cf7ab!=null&&_0x1cf7ab[_0x2d2f98(0x1d6)]))return;let _0x12514e=new _0x4ee20c(),_0x3de023=_0x44a521=>this['_syncPointerChildDragPreview'](_0x44a521),_0x5f8298=_0xcfbeab=>this[_0x2d2f98(0x38e)](_0xcfbeab),_0x2623bf=()=>this[_0x2d2f98(0x293)]();_0x1cf7ab[_0x2d2f98(0x1d6)](_0x2d2f98(0x20d),_0x3de023,{'capture':!0x0}),_0x1cf7ab[_0x2d2f98(0x1d6)](_0x2d2f98(0x31c),_0x5f8298,{'capture':!0x0}),_0x1cf7ab[_0x2d2f98(0x1d6)](_0x2d2f98(0x3e8),_0x2623bf,{'capture':!0x0}),_0x12514e[_0x2d2f98(0x398)](_0x288fdc(()=>{const _0x21f71c=_0x2d2f98;_0x1cf7ab['removeEventListener']('pointermove',_0x3de023,{'capture':!0x0}),_0x1cf7ab[_0x21f71c(0x152)](_0x21f71c(0x31c),_0x5f8298,{'capture':!0x0}),_0x1cf7ab[_0x21f71c(0x152)]('pointercancel',_0x2623bf,{'capture':!0x0});})),this['_activePointerDragDisposables']=_0x12514e;}[_0x4e28b3(0x19c)](_0x5cefad,_0x378ee9){const _0xfd42f7=_0x4e28b3;let _0x2fa10d=Object[_0xfd42f7(0x326)](_0x5cefad);for(let _0x6d2e0a=_0x2fa10d[_0xfd42f7(0x282)]-0x1;_0x6d2e0a>=0x0;--_0x6d2e0a){var _0x1b9bc8,_0x2bb313,_0x467b31,_0x2e2967,_0x27c40a;let _0x32f56d=_0x2fa10d[_0x6d2e0a],_0x4c55cd=_0x130c96(_0x32f56d['element']);if(!(_0x4c55cd!=null&&_0x4c55cd['parentNodeId']))continue;let _0x57cebb=(_0x1b9bc8=_0x8188de(_0x5cefad,_0x32f56d[_0xfd42f7(0x404)]))==null?_0x32f56d[_0xfd42f7(0x409)][_0xfd42f7(0x2eb)]:_0x1b9bc8;if(this[_0xfd42f7(0x16d)](_0x378ee9,{'left':(_0x2bb313=_0x57cebb['left'])==null?0x0:_0x2bb313,'top':(_0x467b31=_0x57cebb[_0xfd42f7(0x3a3)])==null?0x0:_0x467b31,'width':(_0x2e2967=_0x57cebb[_0xfd42f7(0x1b5)])==null?0x0:_0x2e2967,'height':(_0x27c40a=_0x57cebb['height'])==null?0x0:_0x27c40a}))return _0x32f56d[_0xfd42f7(0x404)];}}[_0x4e28b3(0x3a8)](){const _0x76eb50=_0x4e28b3;var _0x458d10;(_0x458d10=this[_0x76eb50(0x1cd)])==null||_0x458d10[_0x76eb50(0x29d)](),this[_0x76eb50(0x1cd)]=null;}[_0x4e28b3(0x3b1)](_0x2771b4){const _0x3b1e3f=_0x4e28b3;let _0x54b0a7=this[_0x3b1e3f(0x3f7)];if(_0x54b0a7){if(_0x54b0a7['kind']===_0x3b1e3f(0x407)){this[_0x3b1e3f(0x384)](_0x2771b4),this[_0x3b1e3f(0x33f)](_0x2771b4);return;}this[_0x3b1e3f(0x2b6)](_0x2771b4);}}[_0x4e28b3(0x384)](_0x33d286){const _0x1158ff=_0x4e28b3;let _0x158f27=this[_0x1158ff(0x3f7)];if(!_0x158f27||_0x158f27[_0x1158ff(0x15e)]!==_0x1158ff(0x407))return;let _0x12fce0=_0x33d286==null?void 0x0:_0x33d286['get'](_0x239fd6(_0x158f27[_0x1158ff(0x204)],_0x158f27[_0x1158ff(0x263)]));if(!_0x12fce0||!Number[_0x1158ff(0x2de)](_0x12fce0['left'])||!Number['isFinite'](_0x12fce0[_0x1158ff(0x3a3)]))return;let _0x229f2e=an({'elementData':_0x158f27['elementData'],'rootNodeId':_0x158f27[_0x1158ff(0x263)],'scopeId':_0x158f27[_0x1158ff(0x38b)],'rootStartBounds':{'left':_0x158f27[_0x1158ff(0x33e)],'top':_0x158f27[_0x1158ff(0x3a3)]},'liveRootBounds':{'left':_0x12fce0[_0x1158ff(0x33e)],'top':_0x12fce0['top']}});if(!_0x229f2e)return;let _0xf5138a=this['_renderContext']['scene'],_0x58488c=_0xf5138a,_0x1f26bb=!0x1;_0x229f2e[_0x1158ff(0x3bb)][_0x1158ff(0x3c2)](_0x4ed971=>{const _0x737573=_0x1158ff;var _0x3c7125,_0x310610;let _0x57422f=_0x239fd6(_0x158f27[_0x737573(0x204)],_0x4ed971[_0x737573(0x404)]),_0x4124f5=(_0x3c7125=(_0x310610=_0x58488c[_0x737573(0x24c)])==null?void 0x0:_0x310610['call'](_0x58488c,_0x57422f))==null?_0xf5138a['getObject'](_0x57422f):_0x3c7125;if(_0x4124f5){if(_0x4ed971[_0x737573(0x15e)]===_0x737573(0x34c)&&typeof _0x4124f5['updateElement']==_0x737573(0x1a6)){_0x4124f5[_0x737573(0x18c)](_0x4ed971[_0x737573(0x409)],_0x229f2e[_0x737573(0x25a)]),_0x1f26bb=!0x0;return;}_0x4ed971[_0x737573(0x15e)]===_0x737573(0x27c)&&(_0x4124f5[_0x737573(0x1e7)](_0x4ed971[_0x737573(0x27c)]),typeof _0x4124f5[_0x737573(0x1e0)]==_0x737573(0x1a6)?_0x4124f5[_0x737573(0x1e0)](!0x0):_0x4124f5['makeDirty'](!0x0),_0x1f26bb=!0x0);}}),_0x1f26bb&&_0xf5138a[_0x1158ff(0x29f)](!0x0);}[_0x4e28b3(0x33f)](_0x2b4495){const _0x42abdd=_0x4e28b3;var _0x4f12c5,_0x4fa8ce;let _0x5d5648=this['_dragStart'];if(!_0x5d5648||_0x5d5648[_0x42abdd(0x15e)]!=='root')return;let _0x42eed8=_0x2b4495==null?void 0x0:_0x2b4495[_0x42abdd(0x349)](_0x239fd6(_0x5d5648[_0x42abdd(0x204)],_0x5d5648[_0x42abdd(0x263)]));if(!_0x42eed8||!Number['isFinite'](_0x42eed8[_0x42abdd(0x33e)])||!Number[_0x42abdd(0x2de)](_0x42eed8[_0x42abdd(0x3a3)])){this[_0x42abdd(0x41a)]();return;}let _0x5e881e=this[_0x42abdd(0x38a)](_0x42eed8,_0x5d5648),_0x3c2bca=this[_0x42abdd(0x235)](_0x5d5648[_0x42abdd(0x25a)],_0x5d5648[_0x42abdd(0x263)],_0x5e881e),_0x495b1e=tn(_0x5d5648[_0x42abdd(0x25a)],_0x5d5648[_0x42abdd(0x263)],{'boundsByElementId':_0x3c2bca,'allowRootReparent':!0x0});if(_0x495b1e['kind']!==_0x42abdd(0x3b2)){this[_0x42abdd(0x41a)]();return;}let _0x423558=this['_ensureDragPreviewObject']();_0x423558&&(_0x423558[_0x42abdd(0x3e7)]({'ghostBounds':_0x5e881e,'sourceBounds':null,'parentBounds':_0x3c2bca[_0x495b1e[_0x42abdd(0x290)]],'side':_0x495b1e[_0x42abdd(0x164)],'textStyle':void 0x0,'renderGhostNode':!0x1}),this[_0x42abdd(0x1f3)][_0x42abdd(0x171)][_0x42abdd(0x29f)](!0x0),(_0x4f12c5=(_0x4fa8ce=this[_0x42abdd(0x1f3)][_0x42abdd(0x171)])[_0x42abdd(0x24e)])==null||_0x4f12c5[_0x42abdd(0x1e1)](_0x4fa8ce));}['_syncChildDragPreview'](_0x48c879){const _0x40df8f=_0x4e28b3;var _0x3b44fc,_0x568821;let _0x4a7af5=this[_0x40df8f(0x3f7)];if(!_0x4a7af5||_0x4a7af5[_0x40df8f(0x15e)]!=='child')return;let _0x2dcf6d=_0x48c879==null?void 0x0:_0x48c879[_0x40df8f(0x349)](_0x239fd6(_0x4a7af5[_0x40df8f(0x204)],_0x4a7af5[_0x40df8f(0x263)]));if(!_0x2dcf6d){this[_0x40df8f(0x41a)]();return;}let _0x2bece4=this[_0x40df8f(0x38a)](_0x2dcf6d,_0x4a7af5);if(!this[_0x40df8f(0x266)](_0x4a7af5,_0x2bece4)){this['_lastChildDragAction']=null,this[_0x40df8f(0x41a)](),this[_0x40df8f(0x2d9)](_0x2dcf6d,_0x4a7af5),this['_renderContext']['scene'][_0x40df8f(0x29f)](!0x0);return;}this['_childDragActivated']||this[_0x40df8f(0x16f)](),this['_childDragActivated']=!0x0;let _0x58c761=this[_0x40df8f(0x235)](_0x4a7af5[_0x40df8f(0x25a)],_0x4a7af5[_0x40df8f(0x263)],_0x2bece4),_0x491b92=tn(_0x4a7af5[_0x40df8f(0x25a)],_0x4a7af5[_0x40df8f(0x263)],{'boundsByElementId':_0x58c761,'detachWhenNoSnap':!0x0});this[_0x40df8f(0x364)]=_0x491b92,this['_syncChildDragPreviewObject'](_0x2bece4,_0x491b92,_0x58c761),this[_0x40df8f(0x2d9)](_0x2dcf6d,_0x4a7af5),this['_renderContext']['scene'][_0x40df8f(0x29f)](!0x0),(_0x3b44fc=(_0x568821=this[_0x40df8f(0x1f3)][_0x40df8f(0x171)])[_0x40df8f(0x24e)])==null||_0x3b44fc[_0x40df8f(0x1e1)](_0x568821);}[_0x4e28b3(0x14e)](_0x5d75b0){const _0x28de61=_0x4e28b3;var _0x191557;let _0x5bba3f=this[_0x28de61(0x1e3)][_0x28de61(0x2af)](),_0x3a92c3=_0x5bba3f['context'],_0x40b147=(_0x191557=_0x5bba3f[_0x28de61(0x26f)])==null?_0x5bba3f[_0x28de61(0x315)][0x0]:_0x191557;if(!_0x3a92c3||!_0x40b147||_0x5bba3f[_0x28de61(0x315)]['length']!==0x1){this[_0x28de61(0x41a)](),this[_0x28de61(0x3f7)]=null;return;}this[_0x28de61(0x41a)]();let _0x39d02d=this[_0x28de61(0x234)]['getElementData'](_0x3a92c3[_0x28de61(0x204)],_0x3a92c3[_0x28de61(0x1e8)]);if(this['_applyRootTranslation'](_0x3a92c3[_0x28de61(0x204)],_0x3a92c3[_0x28de61(0x1e8)],_0x40b147,_0x39d02d,_0x5d75b0))return;let _0x5ce644=this['_resolveChildDragTopologyAction'](_0x3a92c3[_0x28de61(0x204)],_0x3a92c3[_0x28de61(0x1e8)],_0x40b147,_0x39d02d,_0x5d75b0);this[_0x28de61(0x1ea)](_0x3a92c3[_0x28de61(0x204)],_0x3a92c3[_0x28de61(0x1e8)],_0x40b147,_0x39d02d,_0x5ce644);}[_0x4e28b3(0x1ea)](_0x57a4a4,_0x2879c7,_0x4f069b,_0x22d66a,_0x89af7a){const _0x26169b=_0x4e28b3;if(_0x89af7a[_0x26169b(0x15e)]==='reparent'){var _0x36da6a,_0x7e5351;let _0x58a4ec=_0x130c96((_0x36da6a=_0x22d66a[_0x4f069b])==null?void 0x0:_0x36da6a[_0x26169b(0x409)]),_0x41150c=_0x130c96((_0x7e5351=_0x22d66a[_0x89af7a[_0x26169b(0x290)]])==null?void 0x0:_0x7e5351[_0x26169b(0x409)]);this['_executeAndLayout'](_0x3bb170['id'],{'unitId':_0x57a4a4,'subUnitId':_0x2879c7,'nodeId':_0x4f069b,'newParentNodeId':_0x89af7a['newParentNodeId'],'side':_0x89af7a[_0x26169b(0x164)],..._0x89af7a[_0x26169b(0x33b)]?{'referenceNodeId':_0x89af7a['referenceNodeId']}:null,..._0x89af7a[_0x26169b(0x385)]?{'placement':_0x89af7a['placement']}:null},[_0x58a4ec==null?void 0x0:_0x58a4ec[_0x26169b(0x3fe)],_0x41150c==null?void 0x0:_0x41150c[_0x26169b(0x3fe)]],_0x4f069b);return;}if(_0x89af7a[_0x26169b(0x15e)]===_0x26169b(0x39b)){var _0x1dd118;let _0x2ec7e4=_0x130c96((_0x1dd118=_0x22d66a[_0x4f069b])==null?void 0x0:_0x1dd118['element']);this[_0x26169b(0x310)](_0x465ffb['id'],{'unitId':_0x57a4a4,'subUnitId':_0x2879c7,'nodeId':_0x4f069b,...Number[_0x26169b(0x2de)](_0x89af7a[_0x26169b(0x33e)])?{'left':_0x89af7a[_0x26169b(0x33e)]}:null,...Number[_0x26169b(0x2de)](_0x89af7a[_0x26169b(0x3a3)])?{'top':_0x89af7a[_0x26169b(0x3a3)]}:null},[_0x2ec7e4==null?void 0x0:_0x2ec7e4[_0x26169b(0x3fe)]],_0x4f069b);}}['_applyRootTranslation'](_0x54ac55,_0x392e40,_0x691c86,_0x523089,_0x2174e0){const _0xb5845f=_0x4e28b3;var _0x1a83ad,_0x1491e1,_0x7cbe47,_0x47acdb;let _0x196d1d=this[_0xb5845f(0x3f7)];if((_0x196d1d==null?void 0x0:_0x196d1d[_0xb5845f(0x15e)])===_0xb5845f(0x407)&&(this['_dragStart']=null),!_0x196d1d||_0x196d1d[_0xb5845f(0x204)]!==_0x54ac55||_0x196d1d['subUnitId']!==_0x392e40||_0x196d1d[_0xb5845f(0x263)]!==_0x691c86)return!0x1;let _0x527bc8=_0x523089[_0x691c86],_0xb8c76b=_0x130c96(_0x527bc8==null?void 0x0:_0x527bc8[_0xb5845f(0x409)]);if(!_0x527bc8||!_0xb8c76b||_0xb8c76b[_0xb5845f(0x197)]!==null)return!0x1;let _0x5b57a7=_0x2174e0==null?void 0x0:_0x2174e0['get'](_0x239fd6(_0x54ac55,_0x691c86)),_0xfe92b3=_0x8188de(_0x523089,_0x691c86),_0x467ba4=Number['isFinite'](_0x5b57a7==null?void 0x0:_0x5b57a7['left'])?_0x5b57a7[_0xb5845f(0x33e)]:(_0x1a83ad=(_0x1491e1=_0xfe92b3==null?void 0x0:_0xfe92b3[_0xb5845f(0x33e)])==null?_0x527bc8[_0xb5845f(0x409)]['transform'][_0xb5845f(0x33e)]:_0x1491e1)==null?0x0:_0x1a83ad,_0x3ce458=Number[_0xb5845f(0x2de)](_0x5b57a7==null?void 0x0:_0x5b57a7[_0xb5845f(0x3a3)])?_0x5b57a7['top']:(_0x7cbe47=(_0x47acdb=_0xfe92b3==null?void 0x0:_0xfe92b3['top'])==null?_0x527bc8['element'][_0xb5845f(0x2eb)]['top']:_0x47acdb)==null?0x0:_0x7cbe47,_0x355631=_0x467ba4-_0x196d1d[_0xb5845f(0x33e)],_0x81c5ec=_0x3ce458-_0x196d1d[_0xb5845f(0x3a3)];if(_0x355631===0x0&&_0x81c5ec===0x0)return!0x0;let _0x25fdd1={'left':_0x467ba4,'top':_0x3ce458,'width':Number[_0xb5845f(0x2de)](_0x5b57a7==null?void 0x0:_0x5b57a7[_0xb5845f(0x1b5)])?_0x5b57a7[_0xb5845f(0x1b5)]:_0x196d1d['width'],'height':Number[_0xb5845f(0x2de)](_0x5b57a7==null?void 0x0:_0x5b57a7[_0xb5845f(0x323)])?_0x5b57a7[_0xb5845f(0x323)]:_0x196d1d[_0xb5845f(0x323)]},_0xf9d9a0=tn(_0x523089,_0x691c86,{'boundsByElementId':this[_0xb5845f(0x235)](_0x523089,_0x691c86,_0x25fdd1),'allowRootReparent':!0x0});if(_0xf9d9a0[_0xb5845f(0x15e)]===_0xb5845f(0x3b2))return this[_0xb5845f(0x1ea)](_0x54ac55,_0x392e40,_0x691c86,_0x523089,_0xf9d9a0),!0x0;let _0x1ff7da=!!_0xfe92b3&&Math[_0xb5845f(0x2aa)](_0xfe92b3[_0xb5845f(0x33e)]-_0x467ba4)<0.001&&Math['abs'](_0xfe92b3[_0xb5845f(0x3a3)]-_0x3ce458)<0.001;return this[_0xb5845f(0x19a)]['executeCommand'](_0x5876ce['id'],{'unitId':_0x54ac55,'subUnitId':_0x392e40,'scopeId':_0x196d1d[_0xb5845f(0x38b)],'deltaX':_0x355631,'deltaY':_0x81c5ec,..._0x1ff7da?{'excludeElementIds':[_0x691c86],'preserveExcludedWorldTransforms':!0x0}:null}),!0x0;}[_0x4e28b3(0x2ce)](_0x8991c7,_0x399f15,_0x38d7e5,_0x204226,_0x2d1af2){const _0x18a5ad=_0x4e28b3;let _0x227bf4=this['_dragStart'];if(!_0x227bf4||_0x227bf4[_0x18a5ad(0x15e)]!==_0x18a5ad(0x1f4)||_0x227bf4[_0x18a5ad(0x204)]!==_0x8991c7||_0x227bf4[_0x18a5ad(0x1e8)]!==_0x399f15||_0x227bf4[_0x18a5ad(0x263)]!==_0x38d7e5)return{'kind':'none'};this[_0x18a5ad(0x3f7)]=null;let _0x3a2549=_0x2d1af2==null?void 0x0:_0x2d1af2[_0x18a5ad(0x349)](_0x239fd6(_0x8991c7,_0x38d7e5));if(!this[_0x18a5ad(0x324)])return _0x3a2549&&this[_0x18a5ad(0x2d9)](_0x3a2549,_0x227bf4),this[_0x18a5ad(0x364)]=null,{'kind':_0x18a5ad(0x38c)};if(!_0x3a2549){var _0x310b13;let _0x2f82a9=(_0x310b13=this['_lastChildDragAction'])==null?{'kind':_0x18a5ad(0x38c)}:_0x310b13;return this[_0x18a5ad(0x364)]=null,_0x2f82a9;}let _0xe8ca32=this[_0x18a5ad(0x38a)](_0x3a2549,_0x227bf4);if(this['_restoreObjectToDragStart'](_0x3a2549,_0x227bf4),!this[_0x18a5ad(0x266)](_0x227bf4,_0xe8ca32))return this[_0x18a5ad(0x364)]=null,{'kind':_0x18a5ad(0x38c)};let _0x5e9987=tn(_0x204226,_0x38d7e5,{'boundsByElementId':this[_0x18a5ad(0x235)](_0x204226,_0x38d7e5,_0xe8ca32),'detachWhenNoSnap':!0x0});return this[_0x18a5ad(0x364)]=null,_0x5e9987;}[_0x4e28b3(0x266)](_0x3240b5,_0x24caeb){const _0x23e6fa=_0x4e28b3;var _0x469f2a,_0x51357b;let _0x476c85=((_0x469f2a=_0x24caeb['left'])==null?_0x3240b5['left']:_0x469f2a)-_0x3240b5['left'],_0x28a725=((_0x51357b=_0x24caeb['top'])==null?_0x3240b5[_0x23e6fa(0x3a3)]:_0x51357b)-_0x3240b5['top'];return Math[_0x23e6fa(0x14f)](_0x476c85,_0x28a725)>=0x12;}[_0x4e28b3(0x369)](_0x2929c1,_0x40eea4){const _0x2ee10c=_0x4e28b3;let _0x98e8fa=this[_0x2ee10c(0x29b)](_0x2929c1),_0x56f369=this[_0x2ee10c(0x339)]();return{'left':_0x40eea4[_0x2ee10c(0x33e)]+(_0x98e8fa['x']-_0x40eea4[_0x2ee10c(0x173)])/_0x56f369,'top':_0x40eea4[_0x2ee10c(0x3a3)]+(_0x98e8fa['y']-_0x40eea4[_0x2ee10c(0x416)])/_0x56f369,'width':_0x40eea4[_0x2ee10c(0x1b5)],'height':_0x40eea4[_0x2ee10c(0x323)]};}[_0x4e28b3(0x23f)](_0x13819d){const _0x184153=_0x4e28b3;var _0x8dee70,_0x48f204,_0xd4bbfb;let _0x32f0ab=this[_0x184153(0x226)][_0x184153(0x15a)](),_0x222820=(_0x8dee70=_0x32f0ab==null?void 0x0:_0x32f0ab[_0x184153(0x2c8)])==null?{'x':0x0,'y':0x0}:_0x8dee70,_0x4c6582=this[_0x184153(0x339)]();return{'x':Math[_0x184153(0x414)]((((_0x48f204=_0x13819d[_0x184153(0x3ba)])==null?0x0:_0x48f204)-_0x222820['x'])/_0x4c6582),'y':Math[_0x184153(0x414)]((((_0xd4bbfb=_0x13819d[_0x184153(0x1b0)])==null?0x0:_0xd4bbfb)-_0x222820['y'])/_0x4c6582)};}[_0x4e28b3(0x29b)](_0x5d7939){const _0x3beb47=_0x4e28b3;var _0x15548e,_0x185257;return{'x':Number[_0x3beb47(0x2de)](_0x5d7939[_0x3beb47(0x2e9)])?_0x5d7939[_0x3beb47(0x2e9)]:(_0x15548e=_0x5d7939[_0x3beb47(0x3ba)])==null?0x0:_0x15548e,'y':Number[_0x3beb47(0x2de)](_0x5d7939[_0x3beb47(0x383)])?_0x5d7939['clientY']:(_0x185257=_0x5d7939[_0x3beb47(0x1b0)])==null?0x0:_0x185257};}[_0x4e28b3(0x339)](){const _0x3d4c85=_0x4e28b3;let _0x19f238=this['_uiStateService'][_0x3d4c85(0x15a)]()['zoomRatio'];return Number[_0x3d4c85(0x2de)](_0x19f238)&&(_0x19f238==null?0x0:_0x19f238)>0x0?_0x19f238:0x1;}['_isPointInBounds'](_0x4f1839,_0x59bd12){const _0x8d5b82=_0x4e28b3;return _0x4f1839['x']>=_0x59bd12[_0x8d5b82(0x33e)]&&_0x4f1839['x']<=_0x59bd12[_0x8d5b82(0x33e)]+_0x59bd12[_0x8d5b82(0x1b5)]&&_0x4f1839['y']>=_0x59bd12[_0x8d5b82(0x3a3)]&&_0x4f1839['y']<=_0x59bd12[_0x8d5b82(0x3a3)]+_0x59bd12[_0x8d5b82(0x323)];}[_0x4e28b3(0x26a)](_0x4f3c88,_0x2b695b){const _0x2e878a=_0x4e28b3;var _0x1a1d11,_0x142b37;_0x2b695b==null||_0x2b695b[_0x2e878a(0x372)](),_0x2b695b&&(_0x2b695b[_0x2e878a(0x155)]=!0x0),(_0x1a1d11=_0x4f3c88[_0x2e878a(0x2a0)])==null||_0x1a1d11['call'](_0x4f3c88),(_0x142b37=_0x4f3c88[_0x2e878a(0x372)])==null||_0x142b37[_0x2e878a(0x1e1)](_0x4f3c88);}['_hideSelectionForChildDrag'](){const _0x277306=_0x4e28b3;var _0x56ab77,_0x5d6944;this[_0x277306(0x1f6)]||((_0x56ab77=(_0x5d6944=this[_0x277306(0x1e3)])[_0x277306(0x2fd)])==null||_0x56ab77[_0x277306(0x1e1)](_0x5d6944),this[_0x277306(0x1f6)]=!0x0);}[_0x4e28b3(0x38a)](_0xee336e,_0x2da18f){const _0x321228=_0x4e28b3;return{'left':Number['isFinite'](_0xee336e['left'])?_0xee336e['left']:_0x2da18f[_0x321228(0x33e)],'top':Number['isFinite'](_0xee336e[_0x321228(0x3a3)])?_0xee336e['top']:_0x2da18f[_0x321228(0x3a3)],'width':Number[_0x321228(0x2de)](_0xee336e[_0x321228(0x1b5)])?_0xee336e[_0x321228(0x1b5)]:_0x2da18f[_0x321228(0x1b5)],'height':Number[_0x321228(0x2de)](_0xee336e['height'])?_0xee336e['height']:_0x2da18f[_0x321228(0x323)]};}[_0x4e28b3(0x2d9)](_0x5b2080,_0x3ae09e){const _0x437741=_0x4e28b3;typeof _0x5b2080[_0x437741(0x1e7)]==_0x437741(0x1a6)&&_0x5b2080[_0x437741(0x1e7)]({'left':_0x3ae09e[_0x437741(0x33e)],'top':_0x3ae09e[_0x437741(0x3a3)],'width':_0x3ae09e[_0x437741(0x1b5)],'height':_0x3ae09e['height']}),typeof _0x5b2080[_0x437741(0x1e0)]==_0x437741(0x1a6)?_0x5b2080[_0x437741(0x1e0)](!0x0):typeof _0x5b2080['makeDirty']==_0x437741(0x1a6)&&_0x5b2080[_0x437741(0x29f)](!0x0);}[_0x4e28b3(0x235)](_0x46cafd,_0x30902c,_0x595ee4){const _0x1687b2=_0x4e28b3;return Object[_0x1687b2(0x247)](Object[_0x1687b2(0x356)](_0x46cafd)[_0x1687b2(0x1cb)](_0x188f67=>{const _0x14af8f=_0x1687b2;if(_0x188f67===_0x30902c)return[_0x188f67,_0x595ee4];let _0xd0de30=_0x8188de(_0x46cafd,_0x188f67);return[_0x188f67,_0xd0de30==null?_0x46cafd[_0x188f67][_0x14af8f(0x409)][_0x14af8f(0x2eb)]:_0xd0de30];}));}['_ensureDragPreviewObject'](){const _0x51bbb0=_0x4e28b3;if(this[_0x51bbb0(0x279)])return this[_0x51bbb0(0x279)];let _0x19ca17=this[_0x51bbb0(0x1f3)][_0x51bbb0(0x171)];return typeof _0x19ca17['addObject']==_0x51bbb0(0x1a6)?(this[_0x51bbb0(0x279)]=new qt(Vt),_0x19ca17[_0x51bbb0(0x153)](this[_0x51bbb0(0x279)],Ht),this[_0x51bbb0(0x279)]):null;}[_0x4e28b3(0x217)](_0x5f3f0c,_0x7736e,_0x18217c){const _0xd6d01b=_0x4e28b3;let _0x1daa04=this['_ensureDragPreviewObject']();_0x1daa04&&_0x1daa04[_0xd6d01b(0x3e7)]({'ghostBounds':_0x5f3f0c,'sourceBounds':this[_0xd6d01b(0x2ca)](),'parentBounds':_0x7736e[_0xd6d01b(0x15e)]===_0xd6d01b(0x3b2)?_0x18217c[_0x7736e['newParentNodeId']]:null,'side':_0x7736e['kind']===_0xd6d01b(0x3b2)?_0x7736e[_0xd6d01b(0x164)]:_0xd6d01b(0x244),'textStyle':this[_0xd6d01b(0x1a0)](),'renderGhostNode':!0x0});}[_0x4e28b3(0x2ca)](){const _0x1605df=_0x4e28b3;var _0x3db366;let _0x21bfdd=(_0x3db366=this[_0x1605df(0x3e6)])==null?this[_0x1605df(0x3f7)]:_0x3db366;return _0x21bfdd?{'left':_0x21bfdd[_0x1605df(0x33e)],'top':_0x21bfdd[_0x1605df(0x3a3)],'width':_0x21bfdd[_0x1605df(0x1b5)],'height':_0x21bfdd['height']}:null;}['_resolvePreviewTextStyle'](){const _0xee3904=_0x4e28b3;var _0x4af031,_0x394c95,_0x449cbc;let _0x567e2a=(_0x4af031=this[_0xee3904(0x3e6)])==null?this['_dragStart']:_0x4af031,_0x5ab71e=_0x567e2a==null||(_0x394c95=_0x567e2a[_0xee3904(0x25a)][_0x567e2a[_0xee3904(0x263)]])==null?void 0x0:_0x394c95[_0xee3904(0x409)],_0x4fb594=_0x5ab71e==null||(_0x449cbc=_0x5ab71e[_0xee3904(0x292)])==null?void 0x0:_0x449cbc[_0xee3904(0x186)];if(_0x4fb594)return{'text':typeof _0x4fb594['text']=='string'?_0x4fb594[_0xee3904(0x288)]:void 0x0,'fontSize':Number['isFinite'](_0x4fb594[_0xee3904(0x419)])?_0x4fb594['fontSize']:void 0x0,'color':typeof _0x4fb594[_0xee3904(0x36d)]=='string'?_0x4fb594[_0xee3904(0x36d)]:void 0x0,'horizontalAlign':Number[_0xee3904(0x2de)](_0x4fb594[_0xee3904(0x287)])?_0x4fb594['horizontalAlign']:void 0x0};}[_0x4e28b3(0x41a)](){const _0x3af249=_0x4e28b3;var _0x238782,_0x1867e5,_0x1eecce;if(!this['_dragPreviewObject'])return;let _0x4e762b=this[_0x3af249(0x1f3)][_0x3af249(0x171)];(_0x238782=_0x4e762b[_0x3af249(0x1bc)])==null||_0x238782['call'](_0x4e762b,[this[_0x3af249(0x279)]]),this['_dragPreviewObject']=null,(_0x1867e5=(_0x1eecce=this[_0x3af249(0x1f3)][_0x3af249(0x171)])[_0x3af249(0x29f)])==null||_0x1867e5['call'](_0x1eecce,!0x0);}['_executeAndLayout'](_0x5ee7ac,_0x5e163b,_0x40da00,_0x3e8501){const _0x35725d=_0x4e28b3;let _0x4e37ee=[...new Set(_0x40da00[_0x35725d(0x20e)](_0xd79233=>!!_0xd79233))],_0x1427cb=this[_0x35725d(0x19a)][_0x35725d(0x3d6)](_0x5ee7ac,_0x5e163b);Promise[_0x35725d(0x1c8)](_0x1427cb)[_0x35725d(0x378)](_0x2e8830=>{const _0x1ea69c=_0x35725d;var _0x218784,_0x1e2489,_0x2b8737,_0x329ab1;if(_0x2e8830){if(_0x4e37ee[_0x1ea69c(0x3c2)](_0x1a9b20=>{const _0x233387=_0x1ea69c;this[_0x233387(0x19a)]['executeCommand'](_0x3a4dc0['id'],{'unitId':_0x5e163b['unitId'],'subUnitId':_0x5e163b[_0x233387(0x1e8)],'scopeId':_0x1a9b20});}),_0x3e8501&&typeof _0x5e163b[_0x1ea69c(0x204)]=='string'&&typeof _0x5e163b[_0x1ea69c(0x1e8)]==_0x1ea69c(0x304)){var _0x12958c,_0x1dafb7;(_0x12958c=(_0x1dafb7=this[_0x1ea69c(0x1e3)])['selectElements'])==null||_0x12958c[_0x1ea69c(0x1e1)](_0x1dafb7,{'unitId':_0x5e163b[_0x1ea69c(0x204)],'subUnitId':_0x5e163b['subUnitId']},[_0x3e8501],_0x3e8501);}(_0x218784=(_0x1e2489=this['_renderContext']['scene'])[_0x1ea69c(0x29f)])==null||_0x218784[_0x1ea69c(0x1e1)](_0x1e2489,!0x0),(_0x2b8737=(_0x329ab1=this[_0x1ea69c(0x1f3)][_0x1ea69c(0x171)])[_0x1ea69c(0x24e)])==null||_0x2b8737[_0x1ea69c(0x1e1)](_0x329ab1);}});}};on=J([q(0x1,_0x19f927(_0x5af7fa)),q(0x2,_0x19f927(_0x4ad25d)),q(0x3,_0x4c9d00),q(0x4,_0x4b72d1),q(0x5,_0x34a716)],on);const sn='board.mind-map.description-dialog',cn=_0x4e28b3(0x1c0);function ln(_0x1948e0){const _0x104373=_0x4e28b3;let {unitId:_0x1f3304,subUnitId:_0x2f652d,nodeId:_0x339406,initialDescription:_0x3472d2=''}=_0x1948e0,_0x5351be=_0x3d87e3(_0x4c9d00),_0x486321=_0x3d87e3(_0x527822),_0x18334e=_0x3d87e3(_0x19a155),[_0x33ade8,_0x4f8f72]=_0x33a7c5(_0x3472d2),_0x6258af=()=>_0x486321['close'](cn);return _0x1e5b1d(_0x104373(0x3b6),{'className':'univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','data-board-mind-map-description-dialog':_0x104373(0x30b),'children':[_0x1e5b1d(_0x104373(0x2ae),{'className':_0x104373(0x250),'children':[_0xdbc3b(_0x104373(0x316),{'className':'univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-white','children':_0x18334e['t']('boards-mind-ui.description')}),_0xdbc3b(_0x55a337,{'autoFocus':!0x0,'className':_0x104373(0x3da),'placeholder':_0x18334e['t'](_0x104373(0x3a6)),'value':_0x33ade8,'onValueChange':_0x4f8f72})]}),_0x1e5b1d(_0x104373(0x3b6),{'className':'univer-flex\x20univer-justify-end\x20univer-gap-2','children':[_0xdbc3b(_0x25b887,{'size':_0x104373(0x225),'variant':_0x104373(0x2f8),'onClick':_0x6258af,'children':_0x18334e['t'](_0x104373(0x363))}),_0xdbc3b(_0x25b887,{'size':_0x104373(0x225),'variant':_0x104373(0x2e2),'onClick':()=>{const _0x54698f=_0x104373;_0x5351be[_0x54698f(0x3d6)](_0x36d216['id'],{'unitId':_0x1f3304,'subUnitId':_0x2f652d,'nodeId':_0x339406,'foreignAttributes':{'_note':_0x33ade8[_0x54698f(0x239)]()?_0x33ade8:null}}),_0x6258af();},'children':_0x18334e['t'](_0x104373(0x34a))})]})]});}const un='board.operation.mind-map.keyboard-shortcut',dn={'copy':_0xfbb3e1[_0x4e28b3(0x39c)],'paste':_0xfbb3e1[_0x4e28b3(0x3ac)],'paste-as-new':_0xfbb3e1[_0x4e28b3(0x3ac)],'add-child':_0xfbb3e1['addChildNode'],'add-sibling-or-child':_0xfbb3e1[_0x4e28b3(0x212)],'promote':_0xfbb3e1[_0x4e28b3(0x24b)],'toggle-collapse':_0xfbb3e1[_0x4e28b3(0x19e)],'collapse-all':_0xfbb3e1['collapseAllNodes'],'edit-text':_0xfbb3e1[_0x4e28b3(0x27a)],'open-description':_0xfbb3e1[_0x4e28b3(0x231)],'delete':_0x5e6623[_0x4e28b3(0x1d8)],'arrow-left':_0x5e6623[_0x4e28b3(0x2dc)],'arrow-right':_0x5e6623['ARROW_RIGHT'],'arrow-up':_0x5e6623['ARROW_UP'],'arrow-down':_0x5e6623[_0x4e28b3(0x30f)]},fn={'delete':[_0x5e6623[_0x4e28b3(0x243)]]};function pn(_0x5eafec){var _0x398f43;return[dn[_0x5eafec],...(_0x398f43=fn[_0x5eafec])==null?[]:_0x398f43];}let mn=class extends _0x43afa6{constructor(_0x2d7943,_0x3332ca,_0x270419,_0x39f0ff,_0x2b2547,_0x104836,_0xf092aa,_0x29191c){const _0x399df4=_0x4e28b3;super(),this[_0x399df4(0x234)]=_0x2d7943,this[_0x399df4(0x1e3)]=_0x3332ca,this[_0x399df4(0x2f2)]=_0x270419,this[_0x399df4(0x1e5)]=_0x39f0ff,this[_0x399df4(0x19a)]=_0x2b2547,this[_0x399df4(0x3f2)]=_0x104836,this[_0x399df4(0x201)]=_0xf092aa,this['_dialogService']=_0x29191c,this['_init']();}[_0x4e28b3(0x169)](){const _0xaa0bb0=_0x4e28b3;this['disposeWithMe'](this[_0xaa0bb0(0x19a)][_0xaa0bb0(0x1ba)](this[_0xaa0bb0(0x19b)]())),this['_createShortcutItems']()[_0xaa0bb0(0x3c2)](_0x4d085a=>{const _0x4b9653=_0xaa0bb0;this[_0x4b9653(0x40b)](this['_shortcutService'][_0x4b9653(0x3de)](_0x4d085a));});}[_0x4e28b3(0x19b)](){const _0x41f8ef=_0x4e28b3;return{'id':un,'type':_0x23b005[_0x41f8ef(0x3b3)],'handler':(_0x1be144,_0x5a7d25)=>this[_0x41f8ef(0x3ca)](_0x5a7d25==null?void 0x0:_0x5a7d25['action'])};}[_0x4e28b3(0x20f)](){const _0x3aa2d9=_0x4e28b3;let _0x6756a4=(_0x1cff21,_0x2e3221)=>({'id':un,'binding':_0x1cff21,'priority':0xa0,'preconditions':()=>!!this[_0x3aa2d9(0x2be)](),'staticParameters':{'action':_0x2e3221}}),_0x3789da=_0x109c8b=>pn(_0x109c8b)[_0x3aa2d9(0x1cb)](_0x241a1b=>_0x6756a4(_0x241a1b,_0x109c8b));return[..._0x3789da(_0x3aa2d9(0x39c)),{'id':un,'binding':dn[_0x3aa2d9(0x3ac)],'priority':0xa0,'preconditions':()=>!!this[_0x3aa2d9(0x1e5)][_0x3aa2d9(0x40e)]()&&!!this[_0x3aa2d9(0x2be)](),'staticParameters':{'action':_0x3aa2d9(0x3ac)}},{'id':un,'binding':dn[_0x3aa2d9(0x1a5)],'priority':0x96,'preconditions':()=>!!this[_0x3aa2d9(0x1e5)]['getPayload']()&&!!this[_0x3aa2d9(0x163)](),'staticParameters':{'action':_0x3aa2d9(0x1a5)}},..._0x3789da(_0x3aa2d9(0x334)),..._0x3789da(_0x3aa2d9(0x27d)),..._0x3789da(_0x3aa2d9(0x14c)),..._0x3789da(_0x3aa2d9(0x1b3)),..._0x3789da(_0x3aa2d9(0x214)),..._0x3789da(_0x3aa2d9(0x162)),..._0x3789da(_0x3aa2d9(0x332)),..._0x3789da(_0x3aa2d9(0x269)),..._0x3789da(_0x3aa2d9(0x2e0)),..._0x3789da('arrow-right'),..._0x3789da(_0x3aa2d9(0x380)),..._0x3789da(_0x3aa2d9(0x3d2))];}['_handleShortcut'](_0x2a2179){const _0x420639=_0x4e28b3;return _0x2a2179===_0x420639(0x39c)?this[_0x420639(0x347)]():_0x2a2179===_0x420639(0x3ac)?this[_0x420639(0x3ae)]():_0x2a2179==='paste-as-new'?this[_0x420639(0x391)]():_0x2a2179===_0x420639(0x334)?this['_addChild']():_0x2a2179==='add-sibling-or-child'?this[_0x420639(0x245)]():_0x2a2179===_0x420639(0x14c)?this[_0x420639(0x1fb)](_0x3c763e['id']):_0x2a2179==='toggle-collapse'?this['_executeNodeOperation'](_0xdc2fc2['id']):_0x2a2179===_0x420639(0x214)?this['_collapseAll']():_0x2a2179==='edit-text'?this[_0x420639(0x34e)]():_0x2a2179===_0x420639(0x332)?this[_0x420639(0x28c)]():_0x2a2179===_0x420639(0x269)?this[_0x420639(0x1fb)](_0x443802['id']):_0x2a2179&&hn(_0x2a2179)?this['_navigateByTopology'](_0x2a2179):!0x1;}[_0x4e28b3(0x347)](){const _0x220eaa=_0x4e28b3;let _0x18026c=this[_0x220eaa(0x2be)]();return _0x18026c?(this[_0x220eaa(0x19a)][_0x220eaa(0x3d6)](_0x5a3321['id'],{'unitId':_0x18026c[_0x220eaa(0x204)],'subUnitId':_0x18026c['subUnitId'],'nodeId':_0x18026c[_0x220eaa(0x263)]}),!0x0):!0x1;}[_0x4e28b3(0x3ae)](){const _0x169613=_0x4e28b3;let _0x2ee4a9=this['_getSelectedMindMapContext']();return!_0x2ee4a9||!this[_0x169613(0x1e5)][_0x169613(0x40e)]()?!0x1:(this[_0x169613(0x310)](_0x2153bf['id'],{'unitId':_0x2ee4a9[_0x169613(0x204)],'subUnitId':_0x2ee4a9['subUnitId'],'targetNodeId':_0x2ee4a9[_0x169613(0x263)]},_0x2ee4a9[_0x169613(0x38b)]),!0x0);}[_0x4e28b3(0x391)](){const _0x51a571=_0x4e28b3;let _0xf72f12=this[_0x51a571(0x163)]();if(!_0xf72f12||!this[_0x51a571(0x1e5)][_0x51a571(0x40e)]())return!0x1;let _0x429d69=this[_0x51a571(0x2f2)]['getState'](),_0x110e10=Number[_0x51a571(0x2de)](_0x429d69[_0x51a571(0x1be)])&&_0x429d69[_0x51a571(0x1be)]>0x0?_0x429d69[_0x51a571(0x1be)]:0x1,_0xb82d39=Math['round']((0x40-_0x429d69[_0x51a571(0x2c8)]['x'])/_0x110e10),_0x5951a3=Math[_0x51a571(0x414)]((0x40-_0x429d69['viewportPanOffset']['y'])/_0x110e10);return this[_0x51a571(0x19a)]['executeCommand'](_0x5cbfdf['id'],{'unitId':_0xf72f12[_0x51a571(0x204)],'subUnitId':_0xf72f12[_0x51a571(0x1e8)],'left':_0xb82d39,'top':_0x5951a3}),!0x0;}['_addChild'](){const _0x3175ad=_0x4e28b3;let _0x45154c=this[_0x3175ad(0x2be)]();if(!_0x45154c)return!0x1;let _0x3e41fb=_0x257cfe(0x6);return this[_0x3175ad(0x285)](_0x1c61db['id'],{'unitId':_0x45154c['unitId'],'subUnitId':_0x45154c[_0x3175ad(0x1e8)],'parentNodeId':_0x45154c[_0x3175ad(0x263)],'nodeId':_0x3e41fb,'connectorId':_0x257cfe(0x6)},_0x45154c[_0x3175ad(0x38b)],_0x3e41fb),!0x0;}['_addSiblingOrChild'](){const _0x5e452b=_0x4e28b3;let _0x51c936=this['_getSelectedMindMapContext']();if(!_0x51c936)return!0x1;let _0x54b6d0=_0x257cfe(0x6);return this[_0x5e452b(0x285)](_0x51c936[_0x5e452b(0x37e)]?_0x1c61db['id']:_0x4427c3['id'],{'unitId':_0x51c936['unitId'],'subUnitId':_0x51c936[_0x5e452b(0x1e8)],..._0x51c936[_0x5e452b(0x37e)]?{'parentNodeId':_0x51c936['nodeId'],'nodeId':_0x54b6d0}:{'nodeId':_0x51c936[_0x5e452b(0x263)],'siblingNodeId':_0x54b6d0},'connectorId':_0x257cfe(0x6)},_0x51c936[_0x5e452b(0x38b)],_0x54b6d0),!0x0;}[_0x4e28b3(0x1fb)](_0x56242e){const _0x3df786=_0x4e28b3;let _0x27c11e=this['_getSelectedMindMapContext']();return _0x27c11e?(this[_0x3df786(0x310)](_0x56242e,{'unitId':_0x27c11e[_0x3df786(0x204)],'subUnitId':_0x27c11e[_0x3df786(0x1e8)],'nodeId':_0x27c11e[_0x3df786(0x263)]},_0x27c11e[_0x3df786(0x38b)]),!0x0):!0x1;}[_0x4e28b3(0x3ad)](){const _0x11896c=_0x4e28b3;let _0x12195e=this[_0x11896c(0x2be)]();if(!_0x12195e)return!0x1;let _0x441b35=this[_0x11896c(0x234)][_0x11896c(0x36f)](_0x12195e[_0x11896c(0x204)],_0x12195e['subUnitId']),_0x53f8ae=Object['values'](_0x441b35)[_0x11896c(0x1cb)](_0x3cc500=>{const _0x36991=_0x11896c;let _0x3a7015=_0x130c96(_0x3cc500[_0x36991(0x409)]);return(_0x3a7015==null?void 0x0:_0x3a7015[_0x36991(0x3fe)])===_0x12195e[_0x36991(0x38b)]&&this[_0x36991(0x1b7)](_0x441b35,_0x12195e[_0x36991(0x38b)],_0x3cc500[_0x36991(0x404)])[_0x36991(0x282)]>0x0?{'nodeId':_0x3cc500['elementId'],'collapsed':_0x3a7015['collapsed']}:null;})[_0x11896c(0x20e)](_0x56c216=>!!_0x56c216);if(_0x53f8ae[_0x11896c(0x282)]===0x0)return!0x1;let _0x8418b7=_0x53f8ae[_0x11896c(0x240)](_0x3c60a8=>!_0x3c60a8[_0x11896c(0x341)]),_0x559932=_0x53f8ae['map'](_0xc348a3=>this['_commandService'][_0x11896c(0x3d6)](_0xdc2fc2['id'],{'unitId':_0x12195e[_0x11896c(0x204)],'subUnitId':_0x12195e[_0x11896c(0x1e8)],'nodeId':_0xc348a3['nodeId'],'collapsed':_0x8418b7}));return Promise['all'](_0x559932[_0x11896c(0x1cb)](_0x31ff86=>Promise['resolve'](_0x31ff86)))[_0x11896c(0x378)](_0x33a575=>{const _0x3a9635=_0x11896c;_0x33a575['some'](Boolean)&&this[_0x3a9635(0x19a)][_0x3a9635(0x3d6)](_0x3a4dc0['id'],{'unitId':_0x12195e[_0x3a9635(0x204)],'subUnitId':_0x12195e[_0x3a9635(0x1e8)],'scopeId':_0x12195e['scopeId']});}),!0x0;}['_openSelectedTextEditing'](){const _0x2ce4e7=_0x4e28b3;let _0x370aa0=this[_0x2ce4e7(0x2be)]();return _0x370aa0?(this[_0x2ce4e7(0x1e3)][_0x2ce4e7(0x15b)]({'unitId':_0x370aa0['unitId'],'subUnitId':_0x370aa0[_0x2ce4e7(0x1e8)]},[_0x370aa0[_0x2ce4e7(0x263)]],_0x370aa0[_0x2ce4e7(0x263)]),this['_boardTextEditingService'][_0x2ce4e7(0x284)](),this[_0x2ce4e7(0x201)][_0x2ce4e7(0x2b3)]({'unitId':_0x370aa0['unitId'],'subUnitId':_0x370aa0['subUnitId'],'shapeId':_0x370aa0[_0x2ce4e7(0x263)],'shapeKey':_0x239fd6(_0x370aa0[_0x2ce4e7(0x204)],_0x370aa0[_0x2ce4e7(0x263)]),'visible':!0x0}),!0x0):!0x1;}['_openDescriptionDialog'](){const _0x1750a9=_0x4e28b3;let _0x1e8f8c=this[_0x1750a9(0x2be)]();return _0x1e8f8c?(this['_dialogService'][_0x1750a9(0x268)]({'id':cn,'title':{'title':_0x1750a9(0x15c)},'width':0x1a4,'draggable':!0x0,'mask':!0x1,'maskClosable':!0x0,'children':{'label':sn,'unitId':_0x1e8f8c[_0x1750a9(0x204)],'subUnitId':_0x1e8f8c[_0x1750a9(0x1e8)],'nodeId':_0x1e8f8c['nodeId'],'initialDescription':_0x1e8f8c[_0x1750a9(0x318)]}}),!0x0):!0x1;}[_0x4e28b3(0x3c3)](_0x31f960){const _0x1a266e=_0x4e28b3;let _0x108d15=this[_0x1a266e(0x2be)]();if(!_0x108d15)return!0x1;let _0x23f2fe=this[_0x1a266e(0x234)]['getElementData'](_0x108d15['unitId'],_0x108d15[_0x1a266e(0x1e8)]),_0x220734=_0x23f2fe[_0x108d15['nodeId']],_0x4582b0=_0x130c96(_0x220734==null?void 0x0:_0x220734[_0x1a266e(0x409)]);if(!_0x220734||!_0x4582b0)return!0x1;let _0x184ccd={'arrow-left':_0x1a266e(0x278),'arrow-right':_0x1a266e(0x2db),'arrow-up':_0x1a266e(0x3d4),'arrow-down':_0x1a266e(0x3c9)}[_0x31f960];if(!_0x184ccd)return!0x1;let _0x2ec8c5=this[_0x1a266e(0x176)](_0x23f2fe,_0x108d15['nodeId'],_0x4582b0,_0x184ccd);return _0x2ec8c5?(this[_0x1a266e(0x1e3)]['selectElements']({'unitId':_0x108d15['unitId'],'subUnitId':_0x108d15[_0x1a266e(0x1e8)]},[_0x2ec8c5],_0x2ec8c5),!0x0):!0x1;}[_0x4e28b3(0x176)](_0x2bc3e4,_0x17192b,_0x345537,_0x451c70){const _0x73068b=_0x4e28b3;var _0x15a09a;let _0x3c0796=this[_0x73068b(0x1b7)](_0x2bc3e4,_0x345537['structureScopeId'],_0x17192b);if(_0x345537['parentNodeId']===null){if(_0x451c70===_0x73068b(0x278)){var _0x5d2af6,_0x427262;return(_0x5d2af6=(_0x427262=_0x3c0796[_0x73068b(0x203)](_0x219d19=>{const _0x56a785=_0x73068b;var _0x43081e;return((_0x43081e=_0x130c96(_0x219d19['element']))==null?void 0x0:_0x43081e['side'])===_0x56a785(0x33e);}))==null?void 0x0:_0x427262['elementId'])==null?null:_0x5d2af6;}if(_0x451c70==='ArrowRight'){var _0x36d325,_0x5f5913;return(_0x36d325=(_0x5f5913=_0x3c0796[_0x73068b(0x203)](_0x169a6a=>{const _0x358855=_0x73068b;var _0x4a26d1,_0x2fe044;return((_0x4a26d1=(_0x2fe044=_0x130c96(_0x169a6a[_0x358855(0x409)]))==null?void 0x0:_0x2fe044[_0x358855(0x164)])==null?'right':_0x4a26d1)===_0x358855(0x244);}))==null?void 0x0:_0x5f5913[_0x73068b(0x404)])==null?null:_0x36d325;}return null;}let _0x3ac191=(_0x15a09a=_0x345537[_0x73068b(0x164)])==null?_0x73068b(0x244):_0x15a09a,_0x40d24d=_0x3ac191==='right'?_0x73068b(0x278):_0x73068b(0x2db),_0x5cd3c4=_0x3ac191===_0x73068b(0x244)?_0x73068b(0x2db):_0x73068b(0x278);if(_0x451c70===_0x40d24d)return _0x345537[_0x73068b(0x197)];if(_0x451c70===_0x5cd3c4){var _0x484347,_0x1ed845;return(_0x484347=(_0x1ed845=_0x3c0796[0x0])==null?void 0x0:_0x1ed845['elementId'])==null?null:_0x484347;}if(_0x451c70===_0x73068b(0x3d4)||_0x451c70===_0x73068b(0x3c9)){var _0x42798f;let _0x5aaa9c=this[_0x73068b(0x1b7)](_0x2bc3e4,_0x345537[_0x73068b(0x3fe)],_0x345537[_0x73068b(0x197)]),_0x5a31d8=_0x5aaa9c['findIndex'](_0x559045=>_0x559045[_0x73068b(0x404)]===_0x17192b),_0x38b8e0=_0x451c70===_0x73068b(0x3d4)?_0x5aaa9c[_0x5a31d8-0x1]:_0x5aaa9c[_0x5a31d8+0x1];return(_0x42798f=_0x38b8e0==null?void 0x0:_0x38b8e0[_0x73068b(0x404)])==null?null:_0x42798f;}return null;}[_0x4e28b3(0x1b7)](_0x4aea51,_0xe1ba5c,_0x384411){const _0x563361=_0x4e28b3;return Object[_0x563361(0x326)](_0x4aea51)['filter'](_0x2ae2f1=>{const _0x437820=_0x563361;let _0x1da0cb=_0x130c96(_0x2ae2f1[_0x437820(0x409)]);return(_0x1da0cb==null?void 0x0:_0x1da0cb['structureScopeId'])===_0xe1ba5c&&_0x1da0cb['parentNodeId']===_0x384411&&_0x2ae2f1[_0x437820(0x409)][_0x437820(0x274)]!==!0x1;})[_0x563361(0x3b9)]((_0x1e9225,_0x302b4a)=>{const _0x32e8e1=_0x563361;let _0x57ec11=_0x130c96(_0x1e9225['element']),_0x454de6=_0x130c96(_0x302b4a[_0x32e8e1(0x409)]);return _0x359903(_0x57ec11==null?void 0x0:_0x57ec11[_0x32e8e1(0x39f)],_0x454de6==null?void 0x0:_0x454de6['orderKey'])||_0x1e9225[_0x32e8e1(0x404)][_0x32e8e1(0x224)](_0x302b4a[_0x32e8e1(0x404)]);});}[_0x4e28b3(0x2be)](){const _0x3f0e8b=_0x4e28b3;var _0x49c879,_0xfb1c22,_0x502650;let _0xbc086=this['_elementStateService'][_0x3f0e8b(0x2af)](),_0x5498ec=(_0x49c879=_0xbc086[_0x3f0e8b(0x26f)])==null?_0xbc086['selectedIds'][0x0]:_0x49c879;if(!_0xbc086['context']||!_0x5498ec||_0xbc086['selectedIds']['length']!==0x1||_0xbc086['activeEditingId']||_0xbc086[_0x3f0e8b(0x257)])return null;let _0x2734d1=this[_0x3f0e8b(0x234)][_0x3f0e8b(0x36f)](_0xbc086['context']['unitId'],_0xbc086[_0x3f0e8b(0x1ed)]['subUnitId'])[_0x5498ec],_0x3531e9=_0x130c96(_0x2734d1==null?void 0x0:_0x2734d1[_0x3f0e8b(0x409)]);return!_0x2734d1||!_0x3531e9?null:{'unitId':_0xbc086['context'][_0x3f0e8b(0x204)],'subUnitId':_0xbc086[_0x3f0e8b(0x1ed)][_0x3f0e8b(0x1e8)],'nodeId':_0x5498ec,'scopeId':_0x3531e9[_0x3f0e8b(0x3fe)],'isRoot':_0x3531e9['parentNodeId']===null,'description':(_0xfb1c22=(_0x502650=_0x3531e9[_0x3f0e8b(0x283)])==null?void 0x0:_0x502650[_0x3f0e8b(0x2ff)])==null?'':_0xfb1c22};}[_0x4e28b3(0x163)](){const _0x47f9f4=_0x4e28b3;let _0x40f95f=this[_0x47f9f4(0x1e3)][_0x47f9f4(0x2af)]();return!_0x40f95f[_0x47f9f4(0x1ed)]||_0x40f95f[_0x47f9f4(0x2bc)]||_0x40f95f[_0x47f9f4(0x257)]||_0x40f95f[_0x47f9f4(0x315)]['length']>0x0||_0x40f95f['focusedId']?null:{'unitId':_0x40f95f['context'][_0x47f9f4(0x204)],'subUnitId':_0x40f95f[_0x47f9f4(0x1ed)]['subUnitId']};}['_executeAndLayout'](_0x443756,_0x3f21f1,_0xd009d2){const _0x543a07=_0x4e28b3;let _0x14b737=this['_commandService']['executeCommand'](_0x443756,_0x3f21f1);Promise[_0x543a07(0x1c8)](_0x14b737)['then'](_0x3be9c2=>{const _0x539594=_0x543a07;_0x3be9c2&&this[_0x539594(0x19a)]['executeCommand'](_0x3a4dc0['id'],{'unitId':_0x3f21f1['unitId'],'subUnitId':_0x3f21f1[_0x539594(0x1e8)],'scopeId':_0xd009d2});});}[_0x4e28b3(0x285)](_0x5662c1,_0x341214,_0x444c32,_0x11b0e7){const _0x4c6142=_0x4e28b3;let _0xd566bd={'unitId':_0x341214[_0x4c6142(0x204)],'subUnitId':_0x341214[_0x4c6142(0x1e8)]},_0x3364ee=this[_0x4c6142(0x19a)]['executeCommand'](_0x5662c1,_0x341214);Promise[_0x4c6142(0x1c8)](_0x3364ee)[_0x4c6142(0x378)](_0x319de9=>{const _0x383fca=_0x4c6142;_0x319de9&&(this['_commandService'][_0x383fca(0x3d6)](_0x3a4dc0['id'],{..._0xd566bd,'scopeId':_0x444c32}),this['_elementStateService'][_0x383fca(0x15b)](_0xd566bd,[_0x11b0e7],_0x11b0e7),this[_0x383fca(0x201)][_0x383fca(0x284)](),this[_0x383fca(0x201)][_0x383fca(0x2b3)]({..._0xd566bd,'shapeId':_0x11b0e7,'shapeKey':_0x239fd6(_0xd566bd[_0x383fca(0x204)],_0x11b0e7),'visible':!0x0}));});}};mn=J([q(0x0,_0x19f927(_0x5af7fa)),q(0x1,_0x19f927(_0x4ad25d)),q(0x2,_0x19f927(_0x4b72d1)),q(0x3,_0x19f927(_0x3771ca)),q(0x4,_0x4c9d00),q(0x5,_0x2f95f0),q(0x6,_0x19f927(_0x4aee4d)),q(0x7,_0x527822)],mn);function hn(_0x3c80c1){const _0x115c48=_0x4e28b3;return _0x3c80c1==='arrow-left'||_0x3c80c1===_0x115c48(0x17b)||_0x3c80c1===_0x115c48(0x380)||_0x3c80c1===_0x115c48(0x3d2);}const gn=_0x4e28b3(0x36b),_n={'min':0x1,'max':0x5,'defaultValue':0x3},vn={'min':0x0,'max':0x64,'defaultValue':0x64},yn=[{'kind':_0x4e28b3(0x1ad),'titleKey':'boards-mind-ui.toolbar.primary.line','panel':_0x4e28b3(0x22d)},{'kind':_0x4e28b3(0x3d5),'titleKey':_0x4e28b3(0x220)},{'kind':'typography','titleKey':_0x4e28b3(0x2e6)},{'kind':_0x4e28b3(0x1ad),'titleKey':'boards-mind-ui.toolbar.primary.more','panel':_0x4e28b3(0x38d),'dividerBefore':!0x0}],bn={'addSibling':_0x4e28b3(0x27d),'addChild':_0x4e28b3(0x334),'copy':_0x4e28b3(0x39c),'paste':_0x4e28b3(0x3ac),'delete':_0x4e28b3(0x269)},xn=[{'key':_0x4e28b3(0x361),'title':_0x4e28b3(0x2f6),'items':[{'value':'mindmap-horizontal','icon':_0x4e28b3(0x1fc)},{'value':'mindmap-vertical','icon':_0x4e28b3(0x351)}]},{'key':_0x4e28b3(0x377),'title':_0x4e28b3(0x190),'items':[{'value':_0x4e28b3(0x2d8),'icon':_0x4e28b3(0x2d8)},{'value':_0x4e28b3(0x37b),'icon':'tree-left'},{'value':'tree-alternate','icon':_0x4e28b3(0x400)}]},{'key':_0x4e28b3(0x211),'title':'Timeline','items':[{'value':_0x4e28b3(0x28b),'icon':_0x4e28b3(0x28b)},{'value':_0x4e28b3(0x3a4),'icon':_0x4e28b3(0x3a4)}]}],Sn={'key':'branch','title':_0x4e28b3(0x2df),'items':[{'value':'curve','icon':_0x4e28b3(0x2c5)},{'value':_0x4e28b3(0x168),'icon':_0x4e28b3(0x321)},{'value':_0x4e28b3(0x17a),'icon':'branch-orthogonal'}]};function Cn(_0x2c3471,_0x1eb62c){const _0x159976=_0x4e28b3;_0x2c3471[_0x159976(0x3d6)](un,{'action':_0x1eb62c});}const wn={'line':_0x2d11b3,'more':_0xc85f91};function Tn(_0x4c314c){const _0x2418c1=_0x4e28b3;_0x4c314c['stopPropagation'](),_0x4c314c[_0x2418c1(0x2a0)]();}function En(_0x36dfd7,_0x1080a8=_0x4e28b3(0x1ae),_0x3a553f){return _0xdbc3b(_0x34bbcc,{'children':_0xdbc3b(_0x36dfd7,{'className':_0x1080a8,'extend':_0x3a553f})});}function Dn(_0xc73966){const _0x553ae4=_0x4e28b3;var _0x249776,_0x2e991b,_0x31d6a3,_0x218a92,_0x1ae24c,_0x1cf8eb,_0x45434e,_0x462f61,_0x20c816;let _0x1ce044=(_0x249776=_0xc73966==null?void 0x0:_0xc73966[_0x553ae4(0x186)])==null?{}:_0x249776,_0x305c7e=_0x1ce044[_0x553ae4(0x2a5)]&&typeof _0x1ce044[_0x553ae4(0x2a5)]=='object'?_0x1ce044[_0x553ae4(0x2a5)]:{},_0x3766ae=(_0x2e991b=_0x305c7e['doc'])==null||(_0x2e991b=_0x2e991b[_0x553ae4(0x3e1)])==null?void 0x0:_0x2e991b[_0x553ae4(0x23a)];return{'color':typeof _0x1ce044[_0x553ae4(0x36d)]==_0x553ae4(0x304)?_0x1ce044[_0x553ae4(0x36d)]:(_0x31d6a3=_0x3766ae==null||(_0x218a92=_0x3766ae['cl'])==null?void 0x0:_0x218a92[_0x553ae4(0x2e4)])==null?_0x1c0553:_0x31d6a3,'fontFamily':typeof _0x1ce044[_0x553ae4(0x31d)]=='string'?_0x1ce044[_0x553ae4(0x31d)]:(_0x1ae24c=_0x3766ae==null?void 0x0:_0x3766ae['ff'])==null?_0x5bb012['ff']:_0x1ae24c,'fontSize':typeof _0x1ce044['fontSize']=='number'?_0x1ce044['fontSize']:typeof(_0x3766ae==null?void 0x0:_0x3766ae['fs'])==_0x553ae4(0x1dd)?_0x3766ae['fs']:_0x5bb012['fs'],'horizontalAlign':(_0x1cf8eb=(_0x45434e=_0x1ce044[_0x553ae4(0x287)])==null?_0x305c7e['ha']:_0x45434e)==null?_0x5d9bb5['LEFT']:_0x1cf8eb,'textFill':_0x1ce044[_0x553ae4(0x411)]&&typeof _0x1ce044[_0x553ae4(0x411)]==_0x553ae4(0x381)?_0x1ce044['textFill']:_0x3766ae==null?void 0x0:_0x3766ae[_0x553ae4(0x411)],'verticalAlign':(_0x462f61=(_0x20c816=_0x1ce044[_0x553ae4(0x342)])==null?_0x305c7e['va']:_0x20c816)==null?_0x2f2760[_0x553ae4(0x401)]:_0x462f61};}function On(_0x54e62f,_0x7a85a6){const _0x2fcf20=_0x4e28b3;if(!_0x7a85a6)return;let _0x4f7647=pn(_0x7a85a6);if(!_0x4f7647[_0x2fcf20(0x282)])return;let _0x13e995=_0x4f7647['map'](_0x2d7105=>{const _0x3e0dd6=_0x2fcf20;var _0x34a732;return(_0x34a732=_0x54e62f['getShortcutDisplay']({'id':_0x3e0dd6(0x18a),'binding':_0x2d7105,'staticParameters':{'action':_0x7a85a6}}))==null?void 0x0:_0x34a732;})[_0x2fcf20(0x20e)](_0x22a007=>!!_0x22a007);return _0x13e995[_0x2fcf20(0x282)]?[...new Set(_0x13e995)]['join']('/'):void 0x0;}async function kn(_0x31e3c6,_0x357977){const _0x7b829b=_0x4e28b3;return await Promise[_0x7b829b(0x1c8)](_0x31e3c6['executeCommand'](_0xfb8f84['id'],_0x357977))?(await Promise['resolve'](_0x31e3c6[_0x7b829b(0x3d6)](_0x3a4dc0['id'],{'unitId':_0x357977[_0x7b829b(0x204)],'subUnitId':_0x357977[_0x7b829b(0x1e8)],'scopeId':_0x357977['scopeId']})),!0x0):!0x1;}async function An(_0x3721dc,_0xd6499b){const _0x3ce73f=_0x4e28b3;return await Promise['resolve'](_0x3721dc[_0x3ce73f(0x3d6)](_0x394c10['id'],_0xd6499b))?(await Promise[_0x3ce73f(0x1c8)](_0x3721dc[_0x3ce73f(0x3d6)](_0x3a4dc0['id'],{'unitId':_0xd6499b[_0x3ce73f(0x204)],'subUnitId':_0xd6499b['subUnitId'],'scopeId':_0xd6499b[_0x3ce73f(0x38b)]})),!0x0):!0x1;}function jn({className:_0x9c2dc8=_0x4e28b3(0x1ae)}){const _0x58fd3a=_0x4e28b3;return _0xdbc3b(_0x34bbcc,{'children':_0x1e5b1d(_0x58fd3a(0x403),{'className':_0x9c2dc8,'viewBox':'0\x200\x2024\x2024','fill':'none','aria-hidden':'true','children':[_0xdbc3b(_0x58fd3a(0x258),{'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':_0x58fd3a(0x3c1),'strokeWidth':_0x58fd3a(0x1f7),'strokeLinecap':_0x58fd3a(0x414)}),_0xdbc3b('path',{'d':_0x58fd3a(0x167),'stroke':_0x58fd3a(0x3c1),'strokeWidth':'1.8','strokeLinecap':_0x58fd3a(0x414)}),_0xdbc3b(_0x58fd3a(0x258),{'d':_0x58fd3a(0x1c5),'stroke':_0x58fd3a(0x3c1),'strokeWidth':_0x58fd3a(0x1f7),'strokeLinecap':_0x58fd3a(0x414)})]})});}function Mn({icon:_0x1fbcb6}){const _0x2c17df=_0x4e28b3;let _0x3095c3='#d8dce3',_0x252ea6={'stroke':_0x2c17df(0x3c1),'strokeWidth':2.6,'strokeLinecap':_0x2c17df(0x414),'strokeLinejoin':'round'},_0x3f6379={'stroke':_0x3095c3,'strokeWidth':3.2,'strokeLinecap':_0x2c17df(0x414)};return _0x1e5b1d('svg',{'className':_0x2c17df(0x1c9),'viewBox':'0\x200\x2080\x2056','fill':_0x2c17df(0x38c),'aria-hidden':_0x2c17df(0x30b),'children':[_0x1fbcb6==='mindmap-horizontal'&&_0x1e5b1d(_0x533ee7,{'children':[_0xdbc3b(_0x2c17df(0x258),{'d':_0x2c17df(0x35d),..._0x252ea6}),_0xdbc3b(_0x2c17df(0x258),{'d':_0x2c17df(0x2ba),..._0x3f6379})]}),_0x1fbcb6===_0x2c17df(0x351)&&_0x1e5b1d(_0x533ee7,{'children':[_0xdbc3b('path',{'d':_0x2c17df(0x3f4),..._0x252ea6}),_0xdbc3b(_0x2c17df(0x258),{'d':'M22\x208h36M22\x2048h36M14\x2018v20M66\x2018v20','stroke':_0x3095c3,'strokeWidth':2.6,'strokeLinecap':'round','strokeDasharray':'6\x207'})]}),_0x1fbcb6===_0x2c17df(0x2d8)&&_0x1e5b1d(_0x533ee7,{'children':[_0xdbc3b(_0x2c17df(0x258),{'d':_0x2c17df(0x3ed),..._0x252ea6}),_0xdbc3b(_0x2c17df(0x258),{'d':_0x2c17df(0x189),..._0x3f6379}),_0xdbc3b(_0x2c17df(0x3a1),{'cx':'24','cy':'12','r':'3','fill':_0x2c17df(0x3c1)})]}),_0x1fbcb6===_0x2c17df(0x37b)&&_0x1e5b1d(_0x533ee7,{'children':[_0xdbc3b(_0x2c17df(0x258),{'d':_0x2c17df(0x32c),..._0x252ea6}),_0xdbc3b(_0x2c17df(0x258),{'d':_0x2c17df(0x21a),..._0x3f6379}),_0xdbc3b(_0x2c17df(0x3a1),{'cx':'56','cy':'12','r':'3','fill':'currentColor'})]}),_0x1fbcb6===_0x2c17df(0x400)&&_0x1e5b1d(_0x533ee7,{'children':[_0xdbc3b(_0x2c17df(0x258),{'d':'M42\x2012v32M42\x2020c0\x204-3\x206-7\x206h-7M42\x2030c0\x204\x203\x206\x207\x206h7M42\x2039c0\x204-3\x206-7\x206h-7',..._0x252ea6}),_0xdbc3b(_0x2c17df(0x258),{'d':_0x2c17df(0x343),..._0x3f6379}),_0xdbc3b(_0x2c17df(0x3a1),{'cx':'42','cy':'12','r':'3','fill':'currentColor'})]}),_0x1fbcb6===_0x2c17df(0x28b)&&_0x1e5b1d(_0x533ee7,{'children':[_0xdbc3b('path',{'d':_0x2c17df(0x2ea),..._0x252ea6}),_0xdbc3b(_0x2c17df(0x258),{'d':_0x2c17df(0x1c7),..._0x3f6379}),_0xdbc3b('circle',{'cx':'17','cy':'31','r':'3','fill':_0x2c17df(0x3c1)})]}),_0x1fbcb6===_0x2c17df(0x3a4)&&_0x1e5b1d(_0x533ee7,{'children':[_0xdbc3b('path',{'d':_0x2c17df(0x2b2),..._0x252ea6}),_0xdbc3b(_0x2c17df(0x258),{'d':'M56\x2039h11M13\x2050h11',..._0x3f6379}),_0xdbc3b(_0x2c17df(0x3a1),{'cx':'40','cy':'9','r':'3','fill':_0x2c17df(0x3c1)})]}),_0x1fbcb6===_0x2c17df(0x2c5)&&_0xdbc3b(_0x533ee7,{'children':_0xdbc3b('path',{'d':_0x2c17df(0x3f1),..._0x252ea6})}),_0x1fbcb6===_0x2c17df(0x321)&&_0xdbc3b(_0x533ee7,{'children':_0xdbc3b('path',{'d':_0x2c17df(0x353),..._0x252ea6})}),_0x1fbcb6===_0x2c17df(0x2c3)&&_0xdbc3b(_0x533ee7,{'children':_0xdbc3b('path',{'d':_0x2c17df(0x23b),..._0x252ea6})})]});}function Nn(_0x1ebbb0,_0x445ac7){const _0x16f5b9=_0x4e28b3;let _0x17619c=_0x1ebbb0[_0x16f5b9(0x23a)],_0x531b89=_0x3e6fcc(_0x17619c),_0x23996d={..._0x531b89[_0x16f5b9(0x36d)]===void 0x0?null:{'color':_0x531b89[_0x16f5b9(0x36d)]},..._0x531b89[_0x16f5b9(0x31d)]===void 0x0?null:{'fontFamily':_0x531b89[_0x16f5b9(0x31d)]},..._0x531b89[_0x16f5b9(0x419)]===void 0x0?null:{'fontSize':_0x531b89[_0x16f5b9(0x419)]},..._0x531b89['bold']===void 0x0?null:{'bold':_0x531b89[_0x16f5b9(0x3eb)]},..._0x531b89['italic']===void 0x0?null:{'italic':_0x531b89['italic']},..._0x531b89[_0x16f5b9(0x209)]===void 0x0?null:{'underline':_0x531b89[_0x16f5b9(0x209)]},..._0x531b89[_0x16f5b9(0x2f3)]===void 0x0?null:{'strikethrough':_0x531b89[_0x16f5b9(0x2f3)]},..._0x531b89[_0x16f5b9(0x411)]===void 0x0?null:{'textFill':_0x531b89['textFill']}};_0x1ebbb0[_0x16f5b9(0x287)]!==void 0x0&&(_0x23996d[_0x16f5b9(0x287)]=_0x1ebbb0['horizontalAlign']),_0x1ebbb0[_0x16f5b9(0x342)]!==void 0x0&&(_0x23996d['verticalAlign']=_0x1ebbb0['verticalAlign']),Object['keys'](_0x23996d)['length']>0x0&&_0x445ac7({'textStyle':_0x23996d});}function Pn(_0x2718c6,_0x3f8c25,_0x149cfd){const _0x4a00ed=_0x4e28b3;var _0x1e2d16,_0x19a04e;let _0x25cf48=_0x2718c6==null?{}:_0x2718c6,_0xa27334=_0x48adbf(_0x25cf48,_0x3f8c25),_0x21236f=(_0x1e2d16=(_0x19a04e=_0xa27334[_0x4a00ed(0x186)])==null?_0x25cf48[_0x4a00ed(0x186)]:_0x19a04e)==null?{}:_0x1e2d16;return{..._0x25cf48,..._0xa27334,'shapeText':{..._0x21236f,..._0x149cfd[_0x4a00ed(0x36d)]===void 0x0?null:{'color':_0x149cfd[_0x4a00ed(0x36d)]},..._0x149cfd[_0x4a00ed(0x419)]===void 0x0?null:{'fontSize':_0x149cfd[_0x4a00ed(0x419)]},..._0x149cfd['bold']===void 0x0?null:{'bold':_0x149cfd[_0x4a00ed(0x3eb)]},..._0x149cfd[_0x4a00ed(0x1dc)]===void 0x0?null:{'italic':_0x149cfd[_0x4a00ed(0x1dc)]},..._0x149cfd[_0x4a00ed(0x209)]===void 0x0?null:{'underline':_0x149cfd['underline']},..._0x149cfd[_0x4a00ed(0x2f3)]===void 0x0?null:{'strikethrough':_0x149cfd[_0x4a00ed(0x2f3)]},..._0x149cfd['horizontalAlign']===void 0x0?null:{'horizontalAlign':_0x149cfd[_0x4a00ed(0x287)]},..._0x149cfd[_0x4a00ed(0x342)]===void 0x0?null:{'verticalAlign':_0x149cfd[_0x4a00ed(0x342)]},..._0x149cfd['textFill']===void 0x0?null:{'textFill':_0x149cfd[_0x4a00ed(0x411)]}}};}function Fn(_0x23802a,_0x531511){const _0xf6a39=_0x4e28b3;let _0x1ff657=_0x23802a==null?void 0x0:_0x23802a[_0xf6a39(0x18d)];_0x1ff657&&_0x531511({'lineType':_0x1ff657['dashType']===_0x582dab[_0xf6a39(0x34d)]||_0x1ff657[_0xf6a39(0x3bf)]===_0x582dab[_0xf6a39(0x277)]?_0xf6a39(0x35e):_0x1ff657[_0xf6a39(0x3bf)]===_0x582dab[_0xf6a39(0x299)]?'dash':_0xf6a39(0x2f5),...typeof _0x1ff657[_0xf6a39(0x1b5)]=='number'?{'strokeWidth':_0x1ff657[_0xf6a39(0x1b5)]}:null,...typeof _0x1ff657['color']==_0xf6a39(0x304)?{'stroke':_0x1ff657[_0xf6a39(0x36d)]}:null,...typeof _0x1ff657['opacity']==_0xf6a39(0x1dd)?{'opacity':_0x1ff657[_0xf6a39(0x418)]}:null});}function In(_0x43500a){const _0x5d2ff1=_0x4e28b3;return _0x43500a!=null&&_0x43500a[_0x5d2ff1(0x282)]?_0x43500a[0x0]<=0x2?_0x582dab['RoundDot']:_0x582dab[_0x5d2ff1(0x299)]:_0x582dab['Solid'];}function Ln(_0x1750fc){const _0x581d9f=_0x4e28b3;var _0x15864e,_0x4892aa,_0x240be4;return{'stroke':{'lineStrokeType':_0x8a7be5['SolidLine'],'dashType':In(_0x1750fc==null?void 0x0:_0x1750fc[_0x581d9f(0x26d)]),'color':(_0x15864e=_0x1750fc==null?void 0x0:_0x1750fc[_0x581d9f(0x18d)])==null?_0x53a3c6:_0x15864e,'width':(_0x4892aa=_0x1750fc==null?void 0x0:_0x1750fc[_0x581d9f(0x2ed)])==null?_n[_0x581d9f(0x405)]:_0x4892aa,'opacity':(_0x240be4=_0x1750fc==null?void 0x0:_0x1750fc[_0x581d9f(0x418)])==null?vn['defaultValue']/0x64:_0x240be4}};}function Rn(_0x2a383a){const _0x17b10d=_0x4e28b3;var _0x1e176d,_0x5048e9,_0x495cb2,_0x4990e3,_0x1fee5f,_0x5f43cd;let _0x5c5b00=_0x3d87e3(_0x4c9d00),_0x2aaadf=_0x3d87e3(_0x2f95f0),_0x25b819=_0x3d87e3(_0x19a155),[_0x4c685b,_0x3ec656]=_0x33a7c5(null),[_0x1365cd,_0x146ce1]=_0x33a7c5((_0x1e176d=_0x2a383a[_0x17b10d(0x311)][_0x17b10d(0x329)])==null?void 0x0:_0x1e176d[_0x17b10d(0x292)]),_0x314164=_0x2a383a[_0x17b10d(0x311)][_0x17b10d(0x329)];if(!_0x314164)return null;let _0x5585ec={'unitId':_0x314164[_0x17b10d(0x204)],'subUnitId':_0x314164[_0x17b10d(0x1e8)]},_0x22323b=_0x13ebb3=>{const _0xc93055=_0x17b10d;_0x5c5b00[_0xc93055(0x3d6)](_0x36d216['id'],{..._0x5585ec,'nodeId':_0x314164[_0xc93055(0x404)],..._0x13ebb3});},_0x38d067=(_0x2e9a56,_0x17c0f5)=>{const _0x31867b=_0x17b10d;let _0x302cb6=_0x17c0f5==null?{}:_0x17c0f5;_0x146ce1(_0x37c927=>({..._0x37c927==null?{}:_0x37c927,..._0x302cb6})),_0x22323b({..._0x302cb6[_0x31867b(0x29e)]===void 0x0?null:{'fill':_0x302cb6[_0x31867b(0x29e)]},..._0x302cb6[_0x31867b(0x18d)]===void 0x0?null:{'stroke':_0x302cb6[_0x31867b(0x18d)]}});},_0xa54156=_0x27b083=>{const _0x3a01b0=_0x17b10d;_0x5c5b00['executeCommand'](_0xb6fca8['id'],{..._0x5585ec,'nodeId':_0x314164[_0x3a01b0(0x404)],'style':_0x27b083});},_0x20c8b0=Ln(_0x314164[_0x17b10d(0x3b4)]),_0x24bce6=_0x5deb52=>On(_0x2aaadf,_0x5deb52),_0x1f04a4=_0x1be465=>{Cn(_0x5c5b00,_0x1be465);},_0x1fb592=(_0x5048e9=_0x1365cd==null?void 0x0:_0x1365cd[_0x17b10d(0x186)])==null?{}:_0x5048e9,_0x4d9e15=Dn(_0x1365cd),_0x520538=_0x1bfa75=>{Nn(_0x1bfa75,_0x121724=>{const _0x33a468=_0x4c93;_0x146ce1(_0x3cdc83=>Pn(_0x3cdc83,_0x1bfa75,_0x121724[_0x33a468(0x23a)])),_0x22323b(_0x121724);});},_0x361196=[{'label':_0x25b819['t'](_0x17b10d(0x360)),'value':_0x5d9bb5[_0x17b10d(0x21d)],'icon':_0xdbc3b(_0x24b89d,{})},{'label':_0x25b819['t'](_0x17b10d(0x346)),'value':_0x5d9bb5[_0x17b10d(0x2bf)],'icon':_0xdbc3b(_0x54ade2,{})},{'label':_0x25b819['t'](_0x17b10d(0x3cc)),'value':_0x5d9bb5[_0x17b10d(0x2fc)],'icon':_0xdbc3b(_0x122c61,{})},{'label':_0x25b819['t'](_0x17b10d(0x1d3)),'value':_0x5d9bb5[_0x17b10d(0x2b1)],'icon':_0xdbc3b(_0x13b8d2,{})}],_0xf246f7=[{'label':_0x25b819['t'](_0x17b10d(0x40d)),'value':_0x2f2760[_0x17b10d(0x40a)],'icon':_0xdbc3b(_0x703b0,{})},{'label':_0x25b819['t'](_0x17b10d(0x25f)),'value':_0x2f2760[_0x17b10d(0x401)],'icon':_0xdbc3b(_0x10f89b,{})},{'label':_0x25b819['t']('boards-mind-ui.alignBottom'),'value':_0x2f2760['BOTTOM'],'icon':_0xdbc3b(_0x587431,{})}],_0x50af42=()=>{const _0x5bab2e=_0x17b10d;_0x1f04a4(_0x5bab2e(0x27d));},_0x5b5230=()=>{const _0x358695=_0x17b10d;_0x1f04a4(_0x358695(0x334));},_0x33ba3b=()=>{const _0xc73c75=_0x17b10d;_0x1f04a4(_0xc73c75(0x39c));},_0x27ae63=()=>{const _0x47a396=_0x17b10d;_0x1f04a4(_0x47a396(0x3ac));},_0x523339=()=>{_0x1f04a4('delete');},_0x1607e7=(_0x495cb2=(_0x4990e3=_0x314164[_0x17b10d(0x20c)])==null?void 0x0:_0x4990e3[_0x17b10d(0x2c7)])==null?_0x1defe8['structureKind']:_0x495cb2,_0x3f35ac=_0x5be6e7(_0x1607e7,(_0x1fee5f=(_0x5f43cd=_0x314164['layout'])==null?void 0x0:_0x5f43cd[_0x17b10d(0x191)])==null?_0x1defe8[_0x17b10d(0x191)]:_0x1fee5f),_0x560824=_0x40db91=>{const _0x38f25d=_0x17b10d;let _0x54bddd=_0x5be6e7(_0x40db91,_0x3f35ac);kn(_0x5c5b00,{..._0x5585ec,'scopeId':_0x314164[_0x38f25d(0x38b)],'structureKind':_0x40db91,..._0x54bddd===_0x3f35ac?null:{'branchLineType':_0x54bddd}}),_0x3ec656(null);},_0x5b078f=_0x495f97=>{const _0x2cdfda=_0x17b10d;An(_0x5c5b00,{..._0x5585ec,'scopeId':_0x314164[_0x2cdfda(0x38b)],'branchLineType':_0x495f97}),_0x3ec656(null);},_0x4ed138=(_0x48e531,_0x4da69e,_0x5073a9,_0x4990a3=!0x1)=>_0xdbc3b(_0x17b10d(0x3c7),{'type':_0x17b10d(0x3c7),'disabled':_0x4990a3,'className':_0x4dee74(_0x17b10d(0x31f),_0x4da69e&&_0x17b10d(0x3a0),_0x4990a3&&'univer-cursor-not-allowed\x20univer-text-gray-300\x20hover:univer-bg-transparent'),'onMouseDown':Tn,'onPointerDown':Tn,'onClick':_0x20d975=>{const _0x33ae36=_0x17b10d;_0x20d975[_0x33ae36(0x372)](),!_0x4990a3&&_0x5073a9();},'children':_0xdbc3b(Mn,{'icon':_0x48e531[_0x17b10d(0x358)]})},_0x48e531[_0x17b10d(0x18e)]),_0x5b879b=()=>_0x1e5b1d(_0x17b10d(0x3b6),{'className':_0x17b10d(0x39e),'onMouseDown':_0x52c0b9=>_0x52c0b9[_0x17b10d(0x372)](),'onPointerDown':_0x34bcd9=>_0x34bcd9[_0x17b10d(0x372)](),'children':[xn[_0x17b10d(0x1cb)](_0x2f50ad=>_0x1e5b1d(_0x17b10d(0x3b6),{'className':_0x17b10d(0x17e),'children':[_0xdbc3b(_0x17b10d(0x3b6),{'className':_0x17b10d(0x327),'children':_0x2f50ad[_0x17b10d(0x392)]}),_0xdbc3b(_0x17b10d(0x3b6),{'className':_0x17b10d(0x185),'style':{'gridTemplateColumns':'repeat('+_0x2f50ad[_0x17b10d(0x3bb)][_0x17b10d(0x282)]+_0x17b10d(0x2b7)},'children':_0x2f50ad[_0x17b10d(0x3bb)][_0x17b10d(0x1cb)](_0x3f8b59=>_0x4ed138(_0x3f8b59,_0x3f8b59[_0x17b10d(0x18e)]===_0x1607e7,()=>_0x560824(_0x3f8b59[_0x17b10d(0x18e)])))})]},_0x2f50ad['key'])),_0xdbc3b(_0x2cfe4c,{}),_0x1e5b1d(_0x17b10d(0x3b6),{'className':_0x17b10d(0x376),'children':[_0xdbc3b(_0x17b10d(0x3b6),{'className':'univer-mb-2\x20univer-text-lg\x20univer-text-gray-900','children':Sn['title']}),_0xdbc3b(_0x17b10d(0x3b6),{'className':_0x17b10d(0x185),'style':{'gridTemplateColumns':_0x17b10d(0x382)+Sn['items'][_0x17b10d(0x282)]+',\x20minmax(0,\x201fr))'},'children':Sn['items']['map'](_0x36102f=>_0x4ed138(_0x36102f,_0x36102f[_0x17b10d(0x18e)]===_0x3f35ac,()=>_0x5b078f(_0x36102f[_0x17b10d(0x18e)]),_0x36102f[_0x17b10d(0x18e)]===_0x17b10d(0x2d1)&&!_0x3e1084(_0x1607e7)))})]})]}),_0x1dd423=_0x2557b2=>{const _0x49814e=_0x17b10d;switch(_0x2557b2){case'line':return _0xdbc3b(_0x3fabe2,{'title':_0x25b819['t'](_0x49814e(0x2a3)),'shapeData':_0x20c8b0,'modeOptions':[_0x49814e(0x2f5),_0x49814e(0x26d),_0x49814e(0x35e)],'showDashDropdown':!0x1,'widthRange':{'min':_n[_0x49814e(0x312)],'max':_n[_0x49814e(0x205)],'step':0x1},'onUpdateShapeData':(_0x50eec0,_0x8ad2b)=>{Fn(_0x8ad2b,_0xa54156);}});case _0x49814e(0x38d):return _0xdbc3b(_0x4b1b45,{'title':_0x25b819['t']('boards-mind-ui.toolbar.panel.more'),'minWidthClassName':'univer-min-w-[240px]','children':_0x1e5b1d(_0x49814e(0x3b6),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1','children':[_0xdbc3b(_0x2e4721,{'labelKey':_0x49814e(0x1bb),'shortcut':_0x24bce6(bn['addSibling']),'onClick':_0x50af42}),_0xdbc3b(_0x2e4721,{'labelKey':_0x49814e(0x20b),'shortcut':_0x24bce6(bn[_0x49814e(0x23d)]),'onClick':_0x5b5230}),_0xdbc3b(_0x2cfe4c,{}),_0xdbc3b(_0x2e4721,{'labelKey':_0x49814e(0x259),'shortcut':_0x24bce6(bn[_0x49814e(0x39c)]),'onClick':_0x33ba3b}),_0xdbc3b(_0x2e4721,{'labelKey':'boards-mind-ui.toolbar.action.paste','shortcut':_0x24bce6(bn[_0x49814e(0x3ac)]),'onClick':_0x27ae63}),_0xdbc3b(_0x2e4721,{'labelKey':_0x49814e(0x15f),'shortcut':_0x24bce6(bn[_0x49814e(0x269)]),'onClick':_0x523339})]})});default:return null;}},_0x1f965a=yn['flatMap'](_0xd1de23=>{const _0x46dd04=_0x17b10d;let _0x23a507=[];if(_0xd1de23[_0x46dd04(0x262)]&&_0x23a507[_0x46dd04(0x251)](_0xdbc3b(_0x2cfe4c,{'orientation':_0x46dd04(0x389)},_0x46dd04(0x37a)+_0xd1de23['kind'])),_0xd1de23[_0x46dd04(0x15e)]==='typography')return _0x23a507[_0x46dd04(0x251)](_0xdbc3b(_0x30da04,{'title':_0x25b819['t']('boards-mind-ui.toolbar.panel.typography'),'fontFamily':_0x4d9e15['fontFamily'],'textStyle':{'isBold':_0x1fb592[_0x46dd04(0x3eb)]===!0x0,'isItalic':_0x1fb592['italic']===!0x0,'isUnderline':_0x1fb592[_0x46dd04(0x209)]===!0x0,'isStrike':_0x1fb592[_0x46dd04(0x2f3)]===!0x0},'horizontalAlign':_0x4d9e15[_0x46dd04(0x287)],'verticalAlign':_0x4d9e15[_0x46dd04(0x342)],'horizontalAlignOptions':_0x361196,'verticalAlignOptions':_0xf246f7,'onUpdateText':_0x520538},_0xd1de23[_0x46dd04(0x15e)])),_0x23a507;if(_0xd1de23[_0x46dd04(0x15e)]==='fontColor'){let _0xa0bc00={'fs':_0x4d9e15[_0x46dd04(0x419)],'cl':{'rgb':_0x4d9e15[_0x46dd04(0x36d)]},..._0x4d9e15['textFill']===void 0x0?null:{'textFill':_0x4d9e15['textFill']}};return _0x23a507['push'](_0xdbc3b(_0xfd025f,{'title':_0x25b819['t'](_0x46dd04(0x249)),'textStyle':_0xa0bc00,'fallbackColor':_0x4d9e15[_0x46dd04(0x36d)],'onChange':_0x8b2aec=>_0x520538({'textStyle':_0x8b2aec})},_0xd1de23['kind'])),_0x23a507[_0x46dd04(0x251)](_0xdbc3b(_0x5c0f56,{'value':String(_0x4d9e15[_0x46dd04(0x419)]),'onChange':_0x45bda4=>{_0x520538({'textStyle':{'fs':_0x45bda4}});}},_0x46dd04(0x366))),_0x23a507;}return _0x23a507['push'](_0xdbc3b(_0x48b1d8,{'open':_0x4c685b===_0xd1de23['panel'],'overlay':_0x1dd423(_0xd1de23[_0x46dd04(0x154)]),'onOpenChange':_0x1af368=>_0x3ec656(_0x1af368?_0xd1de23[_0x46dd04(0x154)]:null),'children':_0xdbc3b(_0x46dd04(0x316),{'children':_0xdbc3b(_0x16a3f4,{'title':_0x25b819['t'](_0xd1de23['titleKey']),'active':_0x4c685b===_0xd1de23[_0x46dd04(0x154)],'icon':En(wn[_0xd1de23[_0x46dd04(0x154)]]),'sizeClassName':'univer-h-7\x20univer-min-w-9\x20univer-w-auto\x20univer-gap-1\x20univer-px-1.5','onMouseDown':Tn,'onPointerDown':Tn})})},_0xd1de23[_0x46dd04(0x154)])),_0x23a507;});return _0x1e5b1d(_0x53b2ae,{'maxWidthClassName':_0x17b10d(0x261),'onMouseDown':_0x36dafa=>_0x36dafa[_0x17b10d(0x372)](),'children':[[..._0x314164[_0x17b10d(0x3e9)]?[_0xdbc3b(_0x48b1d8,{'open':_0x4c685b===_0x17b10d(0x20c),'overlay':_0x5b879b(),'onOpenChange':_0x578439=>_0x3ec656(_0x578439?_0x17b10d(0x20c):null),'children':_0xdbc3b('span',{'children':_0xdbc3b(_0x16a3f4,{'title':_0x25b819['t'](_0x17b10d(0x399)),'active':_0x4c685b==='layout','icon':_0xdbc3b(jn,{}),'sizeClassName':_0x17b10d(0x271),'onMouseDown':Tn,'onPointerDown':Tn})})},_0x17b10d(0x303)),_0xdbc3b(_0x2cfe4c,{'orientation':_0x17b10d(0x389)},_0x17b10d(0x2fb))]:[],_0xdbc3b(_0x5647d1,{'title':_0x25b819['t'](_0x17b10d(0x2e7)),'shapeData':_0x1365cd==null?{}:_0x1365cd,'onUpdateShapeData':_0x38d067},'mind-map-fill'),_0xdbc3b(_0x43cd4d,{'title':_0x25b819['t']('boards-mind-ui.toolbar.action.stroke'),'shapeData':_0x1365cd==null?{}:_0x1365cd,'onUpdateShapeData':_0x38d067},_0x17b10d(0x1b4)),_0xdbc3b(_0x2cfe4c,{'orientation':_0x17b10d(0x389)},_0x17b10d(0x2d2))],_0x1f965a]});}function zn(_0x8b4ead){let {left:_0x3535ee,top:_0x385391,width:_0x56e854,height:_0x3db30e}=_0x8b4ead;return{'left':_0x3535ee,'right':_0x3535ee+_0x56e854,'top':_0x385391-0x38,'bottom':_0x385391+_0x3db30e};}let Bn=class extends _0x43afa6{constructor(_0x13ea76,_0x595a1c,_0x44f70f,_0x496b1e,_0x8a6df2,_0x34e313){const _0x26351a=_0x4e28b3;super(),this[_0x26351a(0x1f3)]=_0x13ea76,this[_0x26351a(0x344)]=_0x595a1c,this[_0x26351a(0x234)]=_0x44f70f,this[_0x26351a(0x1e3)]=_0x496b1e,this['_boardTextEditingService']=_0x8a6df2,this[_0x26351a(0x1c3)]=_0x34e313,K(this,_0x26351a(0x181),null),K(this,'_popupSelectionKey',null),this[_0x26351a(0x169)]();}[_0x4e28b3(0x29d)](){const _0x5655f5=_0x4e28b3;this[_0x5655f5(0x18b)](),super[_0x5655f5(0x29d)]();}[_0x4e28b3(0x169)](){const _0x367c44=_0x4e28b3;let _0x39f6bb=this[_0x367c44(0x1f3)][_0x367c44(0x171)][_0x367c44(0x170)]();this[_0x367c44(0x40b)](_0x288fdc(_0x39f6bb[_0x367c44(0x2b0)][_0x367c44(0x34f)](_0x362352(this[_0x367c44(0x2a2)]))['subscribe'](()=>this[_0x367c44(0x221)]()))),this[_0x367c44(0x40b)](_0x288fdc(_0x39f6bb[_0x367c44(0x40c)][_0x367c44(0x34f)](_0x362352(this['dispose$']))[_0x367c44(0x345)](()=>this[_0x367c44(0x415)]()))),this[_0x367c44(0x40b)](_0x288fdc(_0x39f6bb[_0x367c44(0x394)]['pipe'](_0x362352(this[_0x367c44(0x2a2)]))[_0x367c44(0x345)](()=>this[_0x367c44(0x18b)]()))),this[_0x367c44(0x40b)](_0x288fdc(_0x39f6bb[_0x367c44(0x36a)][_0x367c44(0x34f)](_0x362352(this[_0x367c44(0x2a2)]))[_0x367c44(0x345)](()=>setTimeout(()=>this['_showPopupForSelection'](),0x0)))),this[_0x367c44(0x40b)](_0x288fdc(this[_0x367c44(0x1e3)]['state$'][_0x367c44(0x34f)](_0x362352(this['dispose$']))[_0x367c44(0x345)](()=>setTimeout(()=>this['_showPopupForSelection'](),0x0)))),this[_0x367c44(0x40b)](_0x288fdc(this[_0x367c44(0x1c3)][_0x367c44(0x233)][_0x367c44(0x34f)](_0x362352(this[_0x367c44(0x2a2)]))[_0x367c44(0x345)](_0x2b4a05=>{const _0x37b159=_0x367c44;if(_0x2b4a05){this[_0x37b159(0x18b)]();return;}setTimeout(()=>this[_0x37b159(0x221)](),0x0);}))),this[_0x367c44(0x40b)](_0x288fdc(this['_boardTextEditingService']['editingParams$'][_0x367c44(0x34f)](_0x362352(this[_0x367c44(0x2a2)]))[_0x367c44(0x345)](_0x4b436e=>{const _0x4a3ab4=_0x367c44;if((_0x4b436e==null?void 0x0:_0x4b436e[_0x4a3ab4(0x204)])===this[_0x4a3ab4(0x1f3)]['unitId']){if(_0x4b436e[_0x4a3ab4(0x274)]){this['_clearPopup']();return;}setTimeout(()=>this[_0x4a3ab4(0x221)](),0x0);}})));}[_0x4e28b3(0x18b)](){const _0x30b892=_0x4e28b3;var _0x3c984b;(_0x3c984b=this['_popupDisposable'])==null||_0x3c984b[_0x30b892(0x29d)](),this[_0x30b892(0x181)]=null,this[_0x30b892(0x223)]=null;}[_0x4e28b3(0x415)](){setTimeout(()=>{const _0xcf8ecf=_0x4c93;this[_0xcf8ecf(0x3db)]()||this[_0xcf8ecf(0x18b)]();},0x0);}['_isPopupSelectionStillActive'](){const _0x444633=_0x4e28b3;let _0x363bc0=this[_0x444633(0x1e3)]['getSnapshot']();return!!_0x363bc0[_0x444633(0x1ed)]&&_0x363bc0[_0x444633(0x315)][_0x444633(0x282)]>0x0&&this[_0x444633(0x223)]===this['_buildPopupSelectionKey'](_0x363bc0[_0x444633(0x1ed)]['unitId'],_0x363bc0[_0x444633(0x1ed)][_0x444633(0x1e8)],_0x363bc0['selectedIds']);}[_0x4e28b3(0x396)](_0x4f882d,_0x1d2ebf,_0x3c88b7){const _0x3da3a=_0x4e28b3;return _0x4f882d+':'+_0x1d2ebf+':'+_0x3c88b7[_0x3da3a(0x3fa)](',');}[_0x4e28b3(0x213)](_0x11d9fa,_0x1ffe56,_0x3e8faa,_0x386dc1){const _0x50a392=_0x4e28b3;let _0x4d9380=this[_0x50a392(0x234)][_0x50a392(0x36f)](_0x11d9fa,_0x1ffe56),_0x5bb472=Object['values'](_0x4d9380)[_0x50a392(0x203)](_0x514ad5=>{let _0x1977a6=_0x42da87(_0x514ad5['element']);return(_0x1977a6==null?void 0x0:_0x1977a6['structureScopeId'])===_0x3e8faa&&_0x1977a6['childNodeId']===_0x386dc1;});if(!(!_0x5bb472||!(_0x50a392(0x296)in _0x5bb472[_0x50a392(0x409)])))return _0x5bb472[_0x50a392(0x409)][_0x50a392(0x296)][_0x50a392(0x350)];}['_showPopupForSelection'](){const _0x567bb1=_0x4e28b3;var _0x2c8e5f,_0x1379e0,_0x10a0b0,_0x54417e,_0x47b45a,_0x6f2273,_0x24779a,_0x1adfef;if(this[_0x567bb1(0x1c3)][_0x567bb1(0x3bc)]){this['_clearPopup']();return;}let _0x58363d=this['_boardTextEditingService'][_0x567bb1(0x3dd)]();if((_0x58363d==null?void 0x0:_0x58363d['visible'])===!0x0&&_0x58363d['unitId']===this[_0x567bb1(0x1f3)][_0x567bb1(0x204)]){this[_0x567bb1(0x18b)]();return;}let _0x3c2b33=this[_0x567bb1(0x1e3)][_0x567bb1(0x2af)]();if(_0x3c2b33[_0x567bb1(0x257)]){this[_0x567bb1(0x18b)]();return;}if(_0x4a534b({'context':_0x3c2b33['context'],'selectedIds':_0x3c2b33[_0x567bb1(0x315)],'getElementById':(_0x38cb23,_0x544bfd,_0xdf86ff)=>this[_0x567bb1(0x234)][_0x567bb1(0x402)](_0x38cb23,_0x544bfd,_0xdf86ff)})[_0x567bb1(0x1f0)]!==_0x567bb1(0x361)){this[_0x567bb1(0x18b)]();return;}let _0x496dad=this[_0x567bb1(0x1f3)][_0x567bb1(0x171)][_0x567bb1(0x170)]()[_0x567bb1(0x28f)](),_0x2740c7=Array[_0x567bb1(0x15d)](_0x496dad[_0x567bb1(0x326)]())[_0x567bb1(0x1cb)](_0x315841=>this[_0x567bb1(0x199)](_0x315841))[_0x567bb1(0x20e)](_0x7de034=>!!_0x7de034)[_0x567bb1(0x20e)](_0x22e8ed=>!!_0x130c96(_0x22e8ed[_0x567bb1(0x25a)][_0x567bb1(0x409)])),_0x4df04c=(_0x2c8e5f=(_0x1379e0=_0x2740c7['find'](_0x465c60=>_0x465c60[_0x567bb1(0x25a)][_0x567bb1(0x404)]===_0x3c2b33[_0x567bb1(0x26f)]))==null?_0x2740c7[0x0]:_0x1379e0)==null?this[_0x567bb1(0x3fd)]():_0x2c8e5f;if(!_0x4df04c){this[_0x567bb1(0x18b)]();return;}let _0x5eec18=_0x130c96(_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x409)]);if(!_0x5eec18){this['_clearPopup']();return;}let _0x308317=(_0x10a0b0=this[_0x567bb1(0x234)][_0x567bb1(0x36f)](_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x204)],_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x1e8)])[_0x5eec18['structureScopeId']])==null?void 0x0:_0x10a0b0[_0x567bb1(0x409)],_0x3b8f99=_0x30a9b0(_0x308317),_0x575cd2=_0x308317==null||(_0x54417e=_0x308317[_0x567bb1(0x3f3)])==null||(_0x54417e=_0x54417e[_0x567bb1(0x248)])==null||(_0x54417e=_0x54417e[_0x567bb1(0x20c)])==null?void 0x0:_0x54417e[_0x567bb1(0x2c7)],_0x3e4bb1=((_0x47b45a=_0x3b8f99==null?void 0x0:_0x3b8f99[_0x567bb1(0x20c)][_0x567bb1(0x2c7)])==null?_0x575cd2:_0x47b45a)===_0x567bb1(0x351)&&(_0x5eec18[_0x567bb1(0x197)]===null||_0x5eec18[_0x567bb1(0x164)]===_0x567bb1(0x3a3)),_0x56d61d=_0x5eec18[_0x567bb1(0x197)]!==null&&_0x5eec18[_0x567bb1(0x164)]!==_0x567bb1(0x3a3)&&_0x5eec18[_0x567bb1(0x164)]!==_0x567bb1(0x3f0),_0x255713=_0x3e4bb1||_0x56d61d,_0x5d3396=((_0x6f2273=_0x3c2b33[_0x567bb1(0x1ed)])==null?void 0x0:_0x6f2273[_0x567bb1(0x204)])===_0x4df04c['elementData']['unitId']&&_0x3c2b33['context']['subUnitId']===_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x1e8)]&&_0x3c2b33[_0x567bb1(0x315)][_0x567bb1(0x282)]?_0x3c2b33[_0x567bb1(0x315)]:[_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x404)]],_0x1d7830=this['_buildPopupSelectionKey'](_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x204)],_0x4df04c['elementData'][_0x567bb1(0x1e8)],_0x5d3396);this[_0x567bb1(0x181)]&&this[_0x567bb1(0x223)]===_0x1d7830||(this['_clearPopup'](),this[_0x567bb1(0x181)]=this[_0x567bb1(0x40b)](this[_0x567bb1(0x344)][_0x567bb1(0x35c)](_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x204)],_0x4df04c[_0x567bb1(0x25a)]['subUnitId'],_0x4df04c['object'],{'componentKey':gn,'direction':_0x567bb1(0x3d3),'offset':[0x0,0x8],..._0x255713?{'anchorBoundResolver':zn}:null,'extraProps':{'unitId':_0x4df04c[_0x567bb1(0x25a)]['unitId'],'subUnitId':_0x4df04c['elementData'][_0x567bb1(0x1e8)],'elementId':_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x404)],'scopeId':_0x5eec18[_0x567bb1(0x3fe)],'isRootNode':_0x5eec18[_0x567bb1(0x197)]===null,'left':(_0x24779a=_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x409)]['transform'][_0x567bb1(0x33e)])==null?0x0:_0x24779a,'top':(_0x1adfef=_0x4df04c['elementData'][_0x567bb1(0x409)][_0x567bb1(0x2eb)][_0x567bb1(0x3a3)])==null?0x0:_0x1adfef,'shapeData':_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x409)][_0x567bb1(0x2a1)]===_0x2cd328[_0x567bb1(0x38f)]?_0x4df04c['elementData']['element']['shapeData']:void 0x0,'layout':_0x3b8f99==null?void 0x0:_0x3b8f99[_0x567bb1(0x20c)],'incomingConnectorStyle':this[_0x567bb1(0x213)](_0x4df04c[_0x567bb1(0x25a)]['unitId'],_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x1e8)],_0x5eec18[_0x567bb1(0x3fe)],_0x4df04c[_0x567bb1(0x25a)]['elementId'])}})),this[_0x567bb1(0x223)]=_0x1d7830);}[_0x4e28b3(0x3fd)](){const _0x101929=_0x4e28b3;var _0x53d168,_0x2d38b7,_0x20656e;let _0x47820b=this[_0x101929(0x1e3)][_0x101929(0x2af)](),_0x70b6b=_0x47820b[_0x101929(0x1ed)],_0x37bb09=(_0x53d168=_0x47820b['focusedId'])==null?_0x47820b[_0x101929(0x315)][0x0]:_0x53d168;if(!_0x70b6b||!_0x37bb09)return null;let _0x5cc627=this[_0x101929(0x234)][_0x101929(0x402)](_0x70b6b[_0x101929(0x204)],_0x70b6b[_0x101929(0x1e8)],_0x37bb09);if(!_0x5cc627||!_0x130c96(_0x5cc627[_0x101929(0x409)]))return null;let _0xca7ee3=_0x239fd6(_0x70b6b[_0x101929(0x204)],_0x37bb09),_0x92ec13=this[_0x101929(0x1f3)]['scene'],_0x588019=(_0x2d38b7=(_0x20656e=_0x92ec13[_0x101929(0x24c)])==null?void 0x0:_0x20656e[_0x101929(0x1e1)](_0x92ec13,_0xca7ee3))==null?this[_0x101929(0x1f3)][_0x101929(0x171)][_0x101929(0x3fc)](_0xca7ee3):_0x2d38b7;return _0x588019?{'object':_0x588019,'elementData':_0x5cc627}:null;}['_resolveSelectedEntry'](_0x302e7a){const _0xace9de=_0x4e28b3;var _0x4d3cc2;if(!_0x302e7a)return null;let _0x538977=_0x16c9be(_0x302e7a[_0xace9de(0x1ce)]);if(!_0x538977)return null;let _0x3f1ead=this[_0xace9de(0x1e3)][_0xace9de(0x2af)](),_0x1166a6=((_0x4d3cc2=_0x3f1ead[_0xace9de(0x1ed)])==null?void 0x0:_0x4d3cc2[_0xace9de(0x204)])===_0x538977['unitId']?_0x3f1ead[_0xace9de(0x1ed)][_0xace9de(0x1e8)]:void 0x0;if(!_0x1166a6)return null;let _0x137870=this[_0xace9de(0x234)][_0xace9de(0x402)](_0x538977[_0xace9de(0x204)],_0x1166a6,_0x538977['elementId']);return _0x137870?{'object':_0x302e7a,'elementData':_0x137870}:null;}};Bn=J([q(0x1,_0x19f927(_0x11b6e9)),q(0x2,_0x19f927(_0x5af7fa)),q(0x3,_0x19f927(_0x4ad25d)),q(0x4,_0x19f927(_0x4aee4d)),q(0x5,_0x19f927(_0x51f3dc))],Bn);const Vn=_0x4e28b3(0x16c),Hn=_0x394cf0[_0x4e28b3(0x2a9)];function Un(_0x49cc24,_0x132206){const _0x36989e=_0x4e28b3;return(_0x49cc24==null?[]:_0x49cc24)[_0x36989e(0x3f6)]((_0x2b81c8,_0x1bed1b)=>{const _0x52fadc=_0x36989e;var _0x2fa687;return _0x2b81c8[(_0x2fa687=_0x1bed1b[_0x52fadc(0x164)])==null?_0x132206:_0x2fa687][_0x52fadc(0x251)](_0x1bed1b),_0x2b81c8;},{'left':[],'right':[],'top':[],'bottom':[]});}function Wn(_0x532b0d){const _0x3a51d0=_0x4e28b3;return _0x532b0d==='tree-left'||_0x532b0d===_0x3a51d0(0x2d8)||_0x532b0d===_0x3a51d0(0x400);}function _0x5a5c(){const _0x528faf=['registerRenderModule','activeEditingId','getContextValue','_getSelectedMindMapContext','CENTER','_createQuoteShortcut','getUnitId','_resolveControlSide','branch-orthogonal','univer-text-xs\x20univer-text-gray-500','branch-curve','boards-mind-ui.panel.tab.importExport','structureKind','viewportPanOffset','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-xs\x20univer-text-gray-600','_resolvePreviewSourceBounds','hideRootControls','center','_syncControls','_resolveChildDragTopologyAction','_cloneBlueprint','_syncLayoutPreview','curve','style-divider','_resolveCurrentBoardContext','textAlign','boards-mind-ui.panel.spacing.branchGap','_syncPointerChildDragPreview','getTemplate','tree-right','_restoreObjectToDragStart','_removePreviewObject','ArrowRight','ARROW_LEFT','_renderManagerService','isFinite','Branch','arrow-left','zIndex','primary','boards-mind-ui.panel.importOPML','rgb','text/plain','boards-mind-ui.toolbar.primary.typography','boards-mind-ui.toolbar.action.fill','getOwnPropertyDescriptor','clientX','M15\x2031h50M35\x2031V18c0-4\x203-7\x208-7h9M35\x2031v13c0\x204\x203\x207\x208\x207h9','transform','show','strokeWidth','siblingGlyphSize','timelineAxisGap','_configService','after','_boardUIStateService','strikethrough','boards-mind-ui.panel.searchNodes','solid','Mind\x20map','lineTo','default','univer-mb-3\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-gray-100','collapsePlusMinDistance','layout-panel-divider','RIGHT','clearSelection','parseInt','_note','elementRemove$','point','UNIVER_BOARD','mind-map-layout-dropdown','string','sourceBounds','activeTool','_previewRefreshService','_seedExistingNodeSizes','getHitControl','_attachObjectEvents','true','structure','_initEditingRestore','boards-mind-ui.panel.emptyNodes','ARROW_DOWN','_executeAndLayout','popup','min','getConfig','success','selectedIds','span','univer-h-28\x20univer-resize-none\x20univer-text-xs','description','addChildGlyphSize','direction','_insertStateService','pointerup','fontFamily','_config','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-white','decorate','branch-rounded-orthogonal','boards-mind-ui.panel.structureKind.mindmapVertical','height','_childDragActivated','version','values','univer-mb-2\x20univer-text-lg\x20univer-text-gray-900','moveTo','extraProps','_stateService','_syncSceneInputMode','M56\x2012v32M56\x2019c0\x204-3\x206-7\x206h-7M56\x2029c0\x204-3\x206-7\x206h-7M56\x2039c0\x204-3\x206-7\x206h-7','boards-mind-ui.panel.pasteOPML','slice','font','add-sibling-after','_activeScopeId','open-description','sourceHighlightFillColor','add-child','entries','_scheduleAttachObjectPointerListeners','ghostFontWeight','_enableMindMapToolbarTool','_getZoomRatio','onStarting','referenceNodeId','fillStyle','onPointerDown$','left','_syncRootReparentPreview','add-child-right','collapsed','verticalAlign','M12\x2026h11M58\x2036h11M12\x2045h11','_boardCanvasPopManagerService','subscribe','boards-mind-ui.alignCenter','_copySelectedNode','enabled','get','boards-mind-ui.saveDescription','transientControl','connector','RoundDot','_openSelectedTextEditing','pipe','style','mindmap-vertical','23094576VOFBEJ','M16\x2029h18c7\x200\x2010-5\x2010-12v-3M34\x2029h10c7\x200\x2010\x205\x2010\x2012v3','boards-mind-ui.panel.structureKind.timelineVertical','board-mind-map-drag-preview-object','keys','transientPreview','icon','dropEffect','glyphWidth','Select','attachPopupToObject','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','dot','quadraticCurveTo','boards-mind-ui.alignLeft','mind-map','save','boards-mind-ui.cancel','_lastChildDragAction','3793458iEpFqU','mind-map-font-size','boards-mind-ui.config','setShapeSidebarOpen','_getPointerLiveBounds','changeEnd$','board.mind-map.floating-toolbar','setLineDash','color','subscribeEvent','getElementData','_ensurePreviewObject','transientPreviewForeground','stopPropagation','children','Escape','editingParams$','univer-mb-0','tree-diagram','then','1942022Exkzmo','divider-','tree-left','_previewObject','onChange','isRoot','_isEditingMindMapNode','arrow-up','object','repeat(','clientY','_syncRootScopePreview','placement','strokeStyle','clipboard','add-sibling-before','vertical','_getLiveObjectBounds','scopeId','none','more','_applyPointerChildDrag','Shape','next','_pasteAsNewMindMap','title','boundsByElementId','changeStart$','detachWhenNoSnap','_buildPopupSelectionKey','boards-mind-ui.panel.rename','add','boards-mind-ui.toolbar.action.layout','boards-mind-ui.panel.layout.right','detach','copy','_textEditingService','univer-w-[202px]\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-white\x20univer-px-4\x20univer-py-4\x20univer-shadow-lg','orderKey','univer-bg-[#e8eefc]\x20univer-text-[#2f6fed]\x20hover:univer-bg-[#e8eefc]','circle','blueprint','top','timeline-vertical','boards-mind-ui.panel.structureKind.treeLeft','boards-mind-ui.descriptionPlaceholder','_getPointFromEvent','_disposeActivePointerDragListeners','_handlePointerMove','effectAllowed','_layoutFlushScheduled','paste','_collapseAll','_pasteUnderSelectedNode','univer-mb-3\x20univer-w-full','_queueLayout','_syncDragPreview','reparent','OPERATION','incomingConnectorStyle','labelKey','div','setTemplate','setHoveredControl','sort','offsetX','items','isInteractionSurfaceActive','onDblclick$','getActivePageId','dashType','getUnit','currentColor','forEach','_navigateByTopology','surfaceColor','beginPath','visualRadius','button','_toFiniteBounds','ArrowDown','_handleShortcut','snapDistance','boards-mind-ui.alignRight','univer-border-b\x20univer-border-gray-200\x20univer-p-4','siblingGap','_activePreview','_restoreActivePreview','_resolveNodeSize','arrow-down','top-center','ArrowUp','fontColor','executeCommand','depth','_consumeControlEvent','_isControlEvent','univer-h-32\x20univer-resize-none\x20univer-text-sm','_isPopupSelectionStillActive','both','getEditing','registerShortcut','rootChildSides','restore','documentStyle','symbol','_removeObject','controls','_cloneBlueprintNode','_pointerDragStart','updateState','pointercancel','isRootNode','hoveredControl','bold','_debouncedLayouts','M24\x2012v32M24\x2019c0\x204\x203\x206\x207\x206h7M24\x2029c0\x204\x203\x206\x207\x206h7M24\x2039c0\x204\x203\x206\x207\x206h7','refresh$','_countDescendants','bottom','M16\x2028c16\x200\x2025-13\x2043-13M16\x2028c16\x200\x2025\x2013\x2043\x2013','_shortcutService','custom','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','360LIVYiX','reduce','_dragStart','disableObjectsEvent','ghostFillColor','join','_activeNodeId','getObject','_resolveSelectedMindMapEntryFromState','structureScopeId','parentBounds','tree-alternate','MIDDLE','getElementById','svg','elementId','defaultValue','_syncPreviewObject','root','lineWidth','element','TOP','disposeWithMe','clearControl$','boards-mind-ui.alignTop','getPayload','has','boards-mind-ui.panel.exportOPML','textFill','_objectPointerDisposables','_componentManager','round','_clearPopupIfSelectionChanged','pointerStartY','radius','opacity','fontSize','_removeDragPreviewObject','promote','ghostBounds','_applyDragTopologyAction','hypot','boards-mind-ui.panel.structureKind.treeRight','_refresh$','removeEventListener','addObject','panel','skipNextObservers','4480686EmkwSS','hasCommand','univer-flex\x20univer-min-w-0\x20univer-flex-1\x20univer-items-center\x20univer-gap-1','add-child-left','getState','selectElements','boards-mind-ui.description','from','kind','boards-mind-ui.toolbar.action.delete','setPendingInsert','hasChildren','edit-text','_getBlankBoardContext','side','collapsedDescendantCount','_handleElementUpdate','M19.5\x207.5h-4.2c-1.9\x200-3.3\x201.5-3.3\x203.3','rounded-orthogonal','_init','exec','allowRootReparent','board-mind-map-pending-insert-object','_isPointInBounds','elementAdd$','_hideSelectionForChildDrag','getTransformerByCreate','scene','rootRadius','pointerStartX','_previewHostSize','currentTarget','_resolveArrowNavigationTarget','SHIFT','_normalizeChildren','_state','orthogonal','arrow-right','px\x20','univer-size-full\x20univer-bg-white\x20univer-text-sm\x20univer-text-gray-700\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-200','univer-mb-4','fillText','opml','_popupDisposable','renderGhostNode','_syncMindMapTextEditorContext','_contextService','univer-grid\x20univer-h-14\x20univer-overflow-hidden\x20univer-rounded-xl\x20univer-bg-gray-100\x20univer-p-1','shapeText','isHit','board-mind-map-node-controls-object','M47\x2025h13M47\x2035h13M47\x2045h13','board.operation.mind-map.keyboard-shortcut','_clearPopup','updateElement','stroke','value','_nodeSizeByKey','Tree\x20diagram','branchLineType','register','_resolveRootTopLeft','onPointerUp$','enableObjectsEvent','lineWidthScreen','parentNodeId','univer-w-24','_resolveSelectedEntry','_commandService','_createKeyboardShortcutOperation','_findChildNodeAtPoint','1.0.0-alpha.8','foldChildNodes','fallbackNodeHeight','_resolvePreviewTextStyle','asObservable','borderWidth','render','onPointerMove$','paste-as-new','function','_template','_getBoardsUIConfig','rootHeight','rootStartBounds','objects','_lastPoint','dropdown','univer-size-5','horizontalGap','offsetY','rgba(','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','toggle-collapse','mind-map-stroke','width','_resolveDirtyBounds','_getMindMapChildren','boards-mind-ui.panel.layout.both','_drawSourceHighlight','registerCommand','boards-mind-ui.toolbar.action.addSibling','removeObjects','glyphHoverWidth','zoomRatio','targetNodeId','board-mind-map-description-dialog','_handlePointerDown','univer-w-20\x20univer-shrink-0','_interactionSurfaceService','3JvrWsf','M4.5\x2016.5h4.2c1.9\x200\x203.3-1.5\x203.3-3.3','univer-w-full\x20univer-text-xs','M56\x2011h11M56\x2051h11','resolve','univer-h-9\x20univer-w-12','_handleNodeUpdateCommand','map','iterator','_activePointerDragDisposables','oKey','_queuedLayouts','siblingHoverRadius','hide','constructor','boards-mind-ui.alignJustify','UNIVER_BOARDS_MIND_UI_PLUGIN','item','addEventListener','_attachObjectPointerListeners','DELETE','onPointerCancel$','siblingDotRadius','univer-min-w-0\x20univer-flex-1\x20univer-justify-start\x20univer-truncate\x20univer-text-left','italic','number','_debouncedLayoutTimer','ghostTextColor','makeDirtyNoDebounce','call','ghostRadius','_elementStateService','dirtyPaddingScreen','_mindMapClipboardService','_attachActivePointerDragListeners','transformByState','subUnitId','univer-space-y-1','_executeChildDragAction','defineProperty','spacing','context','unsubscribe','middle','owner','_registerComponents','addChildRadius','_renderContext','child','params','_childDragSelectionHidden','1.8','_resolveRootChildControlSides','_capturePointerChildDragStart','_objectEventDisposables','_executeNodeOperation','mindmap-horizontal','_queueDebouncedLayout','setConfig','_resolveChildSide','_injector','_boardTextEditingService','dataTransfer','find','unitId','max','panOffset','_object','lineCap','underline','setContextValue','boards-mind-ui.toolbar.action.addChild','layout','pointermove','filter','_createShortcutItems','_getSceneObject','timeline','addSiblingNode','_resolveIncomingConnectorStyle','collapse-all','rootNodeId','move','_syncChildDragPreviewObject','_instanceService','clear','M20\x2025h13M20\x2035h13M20\x2045h13','_resolveCreateChildSide','univer-flex\x20univer-gap-2','LEFT','textBaseline','_getElementKey','boards-mind-ui.toolbar.primary.fontColor','_showPopupForSelection','outlineItems','_popupSelectionKey','localeCompare','small','_uiStateService','rootWidth','_subscribeElementDataChanges','registerProvider','liveRootBounds','6166864WOQIOb','_ensureObject','line','before','boards-mind-ui.panel.structureKind.timelineHorizontal','sourceHaloScreen','addDescription','globalAlpha','interactionSurfaceActive$','_boardElementService','_createTopologyBoundsByElementId','board.mind-map.panel','toolbar','glyphSize','trim','textStyle','M17\x2033h21M38\x2017v30M38\x2017h24','key','addChild','getBoundingClientRect','_getBoardPointFromEvent','some','arc','boards-mind-ui.panel.tab.structure','BACKSPACE','right','_addSiblingOrChild','toPrimitive','fromEntries','mindmap','boards-mind-ui.toolbar.action.fontColor','badgeFontWeight','addParentNode','getObjectIncludeInGroup','tools','requestRender','setActiveTool','univer-flex\x20univer-flex-col\x20univer-gap-2','push','sourceDashScreen','textPaddingScreen','importExport','rootTextColor','_provider','isTransforming','path','boards-mind-ui.toolbar.action.copy','elementData','ghost','FOCUSING_MIND_MAP_TEXT_EDITOR','branchGap','setData','boards-mind-ui.alignMiddle','notify','univer-max-w-[min(760px,calc(100vw-32px))]','dividerBefore','nodeId','clearPendingInsert','primaryColor','_isChildDragPastActivationThreshold','rootText','open','delete','_consumePointerEvent','shapeId','boards-mind-ui.panel.spacing.siblingGap','dash','badgeCount','focusedId','siblingDotGap','univer-h-7\x20univer-min-w-9\x20univer-w-auto\x20univer-gap-1\x20univer-px-1.5','383006xJIAnp','toLowerCase','visible','add-child-bottom','_syncElementDataToScene','SquareDot','ArrowLeft','_dragPreviewObject','editCurrentNode','objectAlpha','bounds','add-sibling-or-child','rootFontSize','state$','boards-mind-ui.panel.branchLineType.orthogonal','dragObjectAlpha','length','foreignAttributes','ignoreExternalFocusChanges','_executeCreateAndEdit','add-child-top','horizontalAlign','text','_rememberNodeSize','_resolveControlBounds','timeline-horizontal','_openDescriptionDialog','univer-text-xs\x20univer-text-gray-400\x20dark:!univer-text-gray-500','boards-mind-ui.panel.structureKind.mindmapHorizontal','getSelectedObjectMap','newParentNodeId','_instanceSrv','shapeData','_cancelPointerChildDrag','_resolveHostSize','boards-mind-ui.panel.','connectorData','set','gap','Dash','section','_getPointerScreenPoint','boards-mind-ui.panel.cancel','dispose','fill','makeDirty','preventDefault','type','dispose$','boards-mind-ui.toolbar.panel.line','complete','dataModel','_attachObjectPointerScheduled','MindMap','_drawConnectorPreview','preview','abs','badgeFontSize','sourceHighlightStrokeColor','univer-space-y-3','label','getSnapshot','createControl$','JUSTIFIED','M40\x209v40M40\x2020c8\x200\x2011\x204\x2011\x2011v8M40\x2035c-8\x200-11\x204-11\x2011v4','setEditing','_captureDragStart','changing$','_syncChildDragPreview',',\x20minmax(0,\x201fr))','65510mitfZY','boards-mind-ui.panel.structureKind.treeAlternate','M12\x2015h9M12\x2028h9M12\x2041h9M59\x2015h9M59\x2028h9M59\x2041h9'];_0x5a5c=function(){return _0x528faf;};return _0x5a5c();}function Gn(_0x17b0f2){const _0x2f27e9=_0x4e28b3;return _0x17b0f2===_0x2f27e9(0x28b)||_0x17b0f2==='timeline-vertical';}function Kn(_0x2e9c2e,_0x55d3f0,_0x400b2e){const _0x388b8f=_0x4e28b3;return _0x400b2e===_0x388b8f(0x37b)?_0x388b8f(0x33e):_0x400b2e===_0x388b8f(0x2d8)?_0x388b8f(0x244):_0x2e9c2e[_0x388b8f(0x164)]===_0x388b8f(0x33e)||_0x2e9c2e[_0x388b8f(0x164)]===_0x388b8f(0x244)?_0x2e9c2e[_0x388b8f(0x164)]:_0x55d3f0%0x2==0x0?_0x388b8f(0x33e):'right';}function qn(_0x1015fe,_0x1d9f7e){const _0x3282e7=_0x4e28b3;var _0x324236,_0x413f03;return(_0x324236=(_0x413f03=_0x1d9f7e==null?void 0x0:_0x1d9f7e[_0x3282e7(0x407)][_0x3282e7(0x373)])==null?_0x1015fe:_0x413f03)==null?[]:_0x324236;}var Jn=class extends _0x344c5d{constructor(_0x2882c5=Vn,_0xae968f){const _0x235a84=_0x4e28b3;super(_0x2882c5),K(this,_0x235a84(0x179),{'point':null,'children':[]}),this['evented']=!0x1,this[_0x235a84(0x2e1)]=_0x5d51da[_0x235a84(0x357)],this[_0x235a84(0x3e7)](_0xae968f);}['updateState'](_0x53394a){const _0x4b3e5c=_0x4e28b3;this[_0x4b3e5c(0x179)]={...this[_0x4b3e5c(0x179)],..._0x53394a},this[_0x4b3e5c(0x179)]['point']?this['show']():this[_0x4b3e5c(0x1d1)](),this[_0x4b3e5c(0x29f)](!0x0);}[_0x4e28b3(0x187)](_0x16982a){return!0x1;}[_0x4e28b3(0x1a3)](_0x4a7482,_0x27b189){const _0x41b95f=_0x4e28b3;var _0x54ed39;let _0x181b88=this[_0x41b95f(0x179)][_0x41b95f(0x301)];if(!_0x181b88||!this[_0x41b95f(0x274)])return this[_0x41b95f(0x29f)](!0x1),this;let _0xff4d1b=Number[_0x41b95f(0x2de)](this['_state'][_0x41b95f(0x1be)])&&((_0x54ed39=this['_state']['zoomRatio'])==null?0x0:_0x54ed39)>0x0?this[_0x41b95f(0x179)][_0x41b95f(0x1be)]:0x1,_0x42bc3d=_0x1163ab['rootWidth'],_0x29a6e3=_0x1163ab[_0x41b95f(0x1a9)],_0x19f3b1=_0x1163ab['nodeWidth'],_0x17c012=_0x1163ab['nodeHeight'],_0x31c7bb=_0x1defe8['horizontalGap'],_0x5053e7=_0x1defe8[_0x41b95f(0x3ce)],_0x14af3b=this[_0x41b95f(0x179)]['structureKind']===_0x41b95f(0x351),_0x26678c=Un(this['_state'][_0x41b95f(0x373)],_0x14af3b?_0x41b95f(0x3f0):'right'),_0x2ceb81=_0x181b88['x']-_0x42bc3d/0x2,_0x5a1804=_0x181b88['y']-_0x29a6e3/0x2;if(_0x4a7482[_0x41b95f(0x362)](),_0x4a7482[_0x41b95f(0x232)]=X[_0x41b95f(0x27b)],_0x4a7482[_0x41b95f(0x408)]=X[_0x41b95f(0x196)]/_0xff4d1b,_0x4a7482[_0x41b95f(0x386)]=X[_0x41b95f(0x265)],Gn(this[_0x41b95f(0x179)][_0x41b95f(0x2c7)])){let _0x5c4168=qn(this['_state'][_0x41b95f(0x373)],this[_0x41b95f(0x179)][_0x41b95f(0x3a2)]),_0x531538=this[_0x41b95f(0x179)]['structureKind']==='timeline-horizontal';if(_0x5c4168[_0x41b95f(0x282)]>0x0){if(_0x4a7482[_0x41b95f(0x3c5)](),_0x531538){let _0x5bf8da=_0x19f3b1,_0x117e0e=_0x17c012,_0x56531c=_0x1defe8[_0x41b95f(0x2ef)],_0x2ae5bf=_0x181b88['y'],_0x1c229f=_0x2ceb81+_0x42bc3d,_0x383f97=_0x181b88['y']-_0x117e0e/0x2,_0x4aa6c7=_0x2ceb81+_0x42bc3d+_0x56531c;_0x4a7482[_0x41b95f(0x328)](_0x1c229f,_0x2ae5bf),_0x4a7482[_0x41b95f(0x2f7)](_0x4aa6c7,_0x2ae5bf),_0x5c4168[_0x41b95f(0x3c2)]((_0x4ba9a4,_0x1713ba)=>{const _0x5b593c=_0x41b95f;let _0x765df9=_0x4aa6c7+_0x1713ba*(_0x5bf8da+_0x56531c);if(_0x1713ba>0x0){let _0x4816e0=_0x4aa6c7+(_0x1713ba-0x1)*(_0x5bf8da+_0x56531c)+_0x5bf8da;_0x4a7482[_0x5b593c(0x328)](_0x4816e0,_0x2ae5bf),_0x4a7482[_0x5b593c(0x2f7)](_0x765df9,_0x2ae5bf);}_0x4a7482[_0x5b593c(0x328)](_0x765df9,_0x2ae5bf),_0x4a7482[_0x5b593c(0x2f7)](_0x765df9+_0x5bf8da,_0x2ae5bf);}),_0x4a7482[_0x41b95f(0x18d)](),_0x5c4168[_0x41b95f(0x3c2)]((_0x1995aa,_0x353602)=>{const _0x3d0010=_0x41b95f;Z(_0x4a7482,_0x4aa6c7+_0x353602*(_0x5bf8da+_0x56531c),_0x383f97,_0x5bf8da,_0x117e0e,X['ghostRadius']),_0x4a7482[_0x3d0010(0x33c)]=X[_0x3d0010(0x3f9)],_0x4a7482[_0x3d0010(0x29e)](),_0x4a7482[_0x3d0010(0x18d)]();}),_0x5c4168[_0x41b95f(0x3c2)]((_0x17326a,_0x350184)=>{const _0x41b667=_0x41b95f;if(!(_0x41b667(0x373)in _0x17326a)||_0x17326a[_0x41b667(0x373)][_0x41b667(0x282)]===0x0)return;let _0xc792ab=_0x4aa6c7+_0x350184*(_0x5bf8da+_0x56531c),_0x37fcf9=_0xc792ab+_0x5bf8da/0x2,_0x4e1371=_0x17326a[_0x41b667(0x164)]===_0x41b667(0x3f0)?_0x41b667(0x3f0):_0x41b667(0x3a3),_0x17bbc1=_0x17326a[_0x41b667(0x373)][_0x41b667(0x32e)](0x0,0x2),_0x4ab299=_0x17bbc1[_0x41b667(0x282)]*_0x117e0e+Math[_0x41b667(0x205)](0x0,_0x17bbc1[_0x41b667(0x282)]-0x1)*_0x5053e7,_0x488c18=_0xc792ab+_0x5bf8da+_0x1defe8[_0x41b667(0x25d)],_0x7b96f3=_0x4e1371==='top'?_0x383f97-_0x31c7bb-_0x4ab299:_0x383f97+_0x117e0e+_0x31c7bb,_0x27729e=_0x7b96f3+_0x4ab299/0x2;_0x4a7482[_0x41b667(0x3c5)](),_0x4a7482[_0x41b667(0x328)](_0x37fcf9,_0x4e1371===_0x41b667(0x3a3)?_0x383f97:_0x383f97+_0x117e0e),_0x4a7482[_0x41b667(0x2f7)](_0x37fcf9,_0x27729e),_0x4a7482['lineTo'](_0x488c18,_0x27729e),_0x17bbc1[_0x41b667(0x3c2)]((_0xc3c2ed,_0x5d194a)=>{let _0xb2f65e=_0x7b96f3+_0x5d194a*(_0x117e0e+_0x5053e7)+_0x117e0e/0x2;_0x4a7482['moveTo'](_0x488c18,_0xb2f65e),_0x4a7482['lineTo'](_0x488c18+_0x5bf8da,_0xb2f65e);}),_0x4a7482[_0x41b667(0x18d)](),_0x17bbc1['forEach']((_0x35f235,_0x25a944)=>{const _0x3f037b=_0x41b667;let _0x100799=_0x7b96f3+_0x25a944*(_0x117e0e+_0x5053e7);Z(_0x4a7482,_0x488c18,_0x100799,_0x5bf8da,_0x117e0e,X[_0x3f037b(0x1e2)]),_0x4a7482[_0x3f037b(0x33c)]=X[_0x3f037b(0x3f9)],_0x4a7482[_0x3f037b(0x29e)](),_0x4a7482[_0x3f037b(0x18d)]();});});}else{let _0x3563ca=_0x181b88['x'],_0x32923b=_0x5a1804+_0x29a6e3,_0x16c683=_0x1defe8[_0x41b95f(0x2ef)],_0x37eaf3=_0x5a1804+_0x29a6e3+_0x16c683,_0x374319=_0x37eaf3+(_0x5c4168['length']-0x1)*(_0x17c012+_0x16c683)+_0x17c012/0x2;_0x4a7482[_0x41b95f(0x328)](_0x3563ca,_0x32923b),_0x4a7482['lineTo'](_0x3563ca,_0x374319),_0x5c4168[_0x41b95f(0x3c2)]((_0x2c841c,_0x2bd038)=>{const _0x578c80=_0x41b95f;let _0x2e4be0=_0x37eaf3+_0x2bd038*(_0x17c012+_0x16c683)+_0x17c012/0x2,_0x27543d=_0x2c841c[_0x578c80(0x164)]===_0x578c80(0x244)?_0x578c80(0x244):_0x578c80(0x33e),_0x31ec9f=_0x27543d===_0x578c80(0x244)?_0x3563ca+_0x1defe8[_0x578c80(0x25d)]:_0x3563ca-_0x1defe8[_0x578c80(0x25d)]-_0x19f3b1,_0x35feaa=_0x27543d===_0x578c80(0x244)?_0x31ec9f:_0x31ec9f+_0x19f3b1;_0x4a7482[_0x578c80(0x328)](_0x3563ca,_0x2e4be0),_0x4a7482[_0x578c80(0x2f7)](_0x35feaa,_0x2e4be0);}),_0x4a7482[_0x41b95f(0x18d)](),_0x5c4168[_0x41b95f(0x3c2)]((_0x21f4d7,_0x4ada3e)=>{const _0x5af5e8=_0x41b95f;let _0x40b631=_0x37eaf3+_0x4ada3e*(_0x17c012+_0x16c683);Z(_0x4a7482,(_0x21f4d7[_0x5af5e8(0x164)]===_0x5af5e8(0x244)?_0x5af5e8(0x244):_0x5af5e8(0x33e))=='right'?_0x3563ca+_0x1defe8[_0x5af5e8(0x25d)]:_0x3563ca-_0x1defe8['branchGap']-_0x19f3b1,_0x40b631,_0x19f3b1,_0x17c012,X[_0x5af5e8(0x1e2)]),_0x4a7482[_0x5af5e8(0x33c)]=X[_0x5af5e8(0x3f9)],_0x4a7482[_0x5af5e8(0x29e)](),_0x4a7482[_0x5af5e8(0x18d)]();}),_0x5c4168[_0x41b95f(0x3c2)]((_0x102ded,_0x429012)=>{const _0x2558bc=_0x41b95f;if(!('children'in _0x102ded)||_0x102ded['children'][_0x2558bc(0x282)]===0x0)return;let _0x5843a4=_0x37eaf3+_0x429012*(_0x17c012+_0x16c683)+_0x17c012/0x2,_0x145c3b=_0x102ded['side']===_0x2558bc(0x244)?_0x2558bc(0x244):_0x2558bc(0x33e),_0x58add7=_0x102ded[_0x2558bc(0x373)][_0x2558bc(0x32e)](0x0,0x2),_0x400d38=_0x58add7['length']*_0x17c012+Math['max'](0x0,_0x58add7[_0x2558bc(0x282)]-0x1)*_0x5053e7,_0x416f20=_0x145c3b===_0x2558bc(0x244)?_0x3563ca+_0x1defe8[_0x2558bc(0x25d)]:_0x3563ca-_0x1defe8['branchGap']-_0x19f3b1,_0x18c21e=_0x145c3b===_0x2558bc(0x244)?_0x416f20+_0x19f3b1+_0x31c7bb:_0x416f20-_0x31c7bb-_0x19f3b1,_0x5ad4fa=_0x5843a4-_0x400d38/0x2,_0x327ba5=_0x145c3b==='right'?_0x416f20+_0x19f3b1:_0x416f20,_0x50bf04=_0x145c3b===_0x2558bc(0x244)?_0x18c21e:_0x18c21e+_0x19f3b1;_0x4a7482['beginPath'](),_0x4a7482['moveTo'](_0x327ba5,_0x5843a4),_0x4a7482[_0x2558bc(0x2f7)](_0x50bf04,_0x5843a4),_0x58add7['forEach']((_0x5528ac,_0x1f4b7f)=>{const _0x2e3d0d=_0x2558bc;let _0x15f0b4=_0x5ad4fa+_0x1f4b7f*(_0x17c012+_0x5053e7)+_0x17c012/0x2;_0x4a7482[_0x2e3d0d(0x328)](_0x50bf04,_0x15f0b4),_0x4a7482[_0x2e3d0d(0x2f7)](_0x145c3b==='right'?_0x18c21e+_0x19f3b1:_0x18c21e,_0x15f0b4);}),_0x4a7482['stroke'](),_0x58add7['forEach']((_0x456d53,_0x550758)=>{const _0x4d59dd=_0x2558bc;let _0x1b8193=_0x5ad4fa+_0x550758*(_0x17c012+_0x5053e7);Z(_0x4a7482,_0x18c21e,_0x1b8193,_0x19f3b1,_0x17c012,X['ghostRadius']),_0x4a7482[_0x4d59dd(0x33c)]=X[_0x4d59dd(0x3f9)],_0x4a7482[_0x4d59dd(0x29e)](),_0x4a7482[_0x4d59dd(0x18d)]();});});}}}else{if(Wn(this[_0x41b95f(0x179)][_0x41b95f(0x2c7)])){var _0x5aa782;let _0x3425f1=(_0x5aa782=this['_state'][_0x41b95f(0x373)])==null?[]:_0x5aa782,_0x51cc34=_0x5a1804+_0x29a6e3,_0x518076=_0x51cc34+_0x31c7bb,_0x2755b6=_0x181b88['x'];if(_0x3425f1[_0x41b95f(0x282)]>0x0){let _0x27dcc4=_0x518076+(_0x3425f1[_0x41b95f(0x282)]-0x1)*(_0x17c012+_0x5053e7)+_0x17c012/0x2;_0x4a7482['beginPath'](),_0x4a7482['moveTo'](_0x2755b6,_0x51cc34),_0x4a7482[_0x41b95f(0x2f7)](_0x2755b6,_0x27dcc4),_0x3425f1['forEach']((_0x4b3424,_0x4694a2)=>{const _0x15c927=_0x41b95f;let _0x120aa6=Kn(_0x4b3424,_0x4694a2,this[_0x15c927(0x179)][_0x15c927(0x2c7)]),_0x20f398=_0x518076+_0x4694a2*(_0x17c012+_0x5053e7),_0x2a3a87=_0x120aa6==='right'?_0x2755b6+_0x31c7bb:_0x2755b6-_0x31c7bb-_0x19f3b1,_0x31741b=_0x20f398+_0x17c012/0x2;_0x4a7482[_0x15c927(0x328)](_0x2755b6,_0x31741b),_0x4a7482[_0x15c927(0x2f7)](_0x120aa6===_0x15c927(0x244)?_0x2a3a87:_0x2a3a87+_0x19f3b1,_0x31741b);}),_0x4a7482[_0x41b95f(0x18d)](),_0x3425f1[_0x41b95f(0x3c2)]((_0x3a862f,_0x389115)=>{const _0x21ddf3=_0x41b95f;let _0x37374e=Kn(_0x3a862f,_0x389115,this[_0x21ddf3(0x179)][_0x21ddf3(0x2c7)]),_0x50aa85=_0x518076+_0x389115*(_0x17c012+_0x5053e7);Z(_0x4a7482,_0x37374e==='right'?_0x2755b6+_0x31c7bb:_0x2755b6-_0x31c7bb-_0x19f3b1,_0x50aa85,_0x19f3b1,_0x17c012,X['ghostRadius']),_0x4a7482[_0x21ddf3(0x33c)]=X[_0x21ddf3(0x3f9)],_0x4a7482[_0x21ddf3(0x29e)](),_0x4a7482['stroke']();});}}else _0x14af3b&&[_0x41b95f(0x3a3),_0x41b95f(0x3f0)][_0x41b95f(0x3c2)](_0x4aa1a9=>{const _0x2006ed=_0x41b95f;let _0x17acdd=_0x26678c[_0x4aa1a9];if(_0x17acdd[_0x2006ed(0x282)]===0x0)return;let _0x202ab1=_0x17acdd[_0x2006ed(0x282)]*_0x19f3b1+Math['max'](0x0,_0x17acdd[_0x2006ed(0x282)]-0x1)*_0x5053e7,_0x3e3f58=_0x181b88['x']-_0x202ab1/0x2,_0x279968=_0x4aa1a9===_0x2006ed(0x3f0)?_0x5a1804+_0x29a6e3:_0x5a1804,_0x386cda=_0x4aa1a9==='bottom'?_0x279968+_0x1defe8[_0x2006ed(0x25d)]:_0x279968-_0x1defe8[_0x2006ed(0x25d)],_0x1fb622=_0x4aa1a9===_0x2006ed(0x3f0)?_0x5a1804+_0x29a6e3+_0x31c7bb:_0x5a1804-_0x31c7bb-_0x17c012;_0x4a7482[_0x2006ed(0x3c5)](),_0x4a7482[_0x2006ed(0x328)](_0x181b88['x'],_0x279968),_0x4a7482[_0x2006ed(0x2f7)](_0x181b88['x'],_0x386cda),_0x17acdd[_0x2006ed(0x282)]>0x1&&(_0x4a7482[_0x2006ed(0x328)](_0x3e3f58+_0x19f3b1/0x2,_0x386cda),_0x4a7482['lineTo'](_0x3e3f58+_0x202ab1-_0x19f3b1/0x2,_0x386cda)),_0x17acdd[_0x2006ed(0x3c2)]((_0x4dce29,_0x504663)=>{const _0x34020b=_0x2006ed;let _0x3e7c59=_0x3e3f58+_0x504663*(_0x19f3b1+_0x5053e7)+_0x19f3b1/0x2;_0x4a7482['moveTo'](_0x3e7c59,_0x386cda),_0x4a7482['lineTo'](_0x3e7c59,_0x4aa1a9===_0x34020b(0x3f0)?_0x1fb622:_0x1fb622+_0x17c012);}),_0x4a7482[_0x2006ed(0x18d)](),_0x17acdd[_0x2006ed(0x3c2)]((_0x1f770b,_0x241575)=>{const _0x9efbad=_0x2006ed;Z(_0x4a7482,_0x3e3f58+_0x241575*(_0x19f3b1+_0x5053e7),_0x1fb622,_0x19f3b1,_0x17c012,X['ghostRadius']),_0x4a7482[_0x9efbad(0x33c)]=X[_0x9efbad(0x3f9)],_0x4a7482[_0x9efbad(0x29e)](),_0x4a7482[_0x9efbad(0x18d)]();});});}(_0x14af3b||Wn(this['_state']['structureKind'])||Gn(this['_state'][_0x41b95f(0x2c7)])?[]:[_0x41b95f(0x33e),'right'])['forEach'](_0x16d7c5=>{const _0x46f3e8=_0x41b95f;let _0x4c34b6=_0x26678c[_0x16d7c5];if(_0x4c34b6[_0x46f3e8(0x282)]===0x0)return;let _0x448ec2=_0x4c34b6[_0x46f3e8(0x282)]*_0x17c012+Math['max'](0x0,_0x4c34b6['length']-0x1)*_0x5053e7,_0x50219c=_0x181b88['y']-_0x448ec2/0x2,_0x118c9b=_0x16d7c5===_0x46f3e8(0x244)?_0x2ceb81+_0x42bc3d:_0x2ceb81,_0x3d56c2=_0x16d7c5==='right'?_0x118c9b+_0x1defe8[_0x46f3e8(0x25d)]:_0x118c9b-_0x1defe8[_0x46f3e8(0x25d)],_0x28bb7e=_0x16d7c5===_0x46f3e8(0x244)?_0x2ceb81+_0x42bc3d+_0x31c7bb:_0x2ceb81-_0x31c7bb-_0x19f3b1;_0x4a7482[_0x46f3e8(0x3c5)](),_0x4a7482[_0x46f3e8(0x328)](_0x118c9b,_0x181b88['y']),_0x4a7482[_0x46f3e8(0x2f7)](_0x3d56c2,_0x181b88['y']),_0x4c34b6['length']>0x1&&(_0x4a7482[_0x46f3e8(0x328)](_0x3d56c2,_0x50219c+_0x17c012/0x2),_0x4a7482[_0x46f3e8(0x2f7)](_0x3d56c2,_0x50219c+_0x448ec2-_0x17c012/0x2)),_0x4c34b6[_0x46f3e8(0x3c2)]((_0x504e9a,_0x24d34b)=>{const _0x263410=_0x46f3e8;let _0x1863f9=_0x50219c+_0x24d34b*(_0x17c012+_0x5053e7)+_0x17c012/0x2;_0x4a7482[_0x263410(0x328)](_0x3d56c2,_0x1863f9),_0x4a7482[_0x263410(0x2f7)](_0x16d7c5===_0x263410(0x244)?_0x28bb7e:_0x28bb7e+_0x19f3b1,_0x1863f9);}),_0x4a7482[_0x46f3e8(0x18d)](),_0x4c34b6['forEach']((_0x3140fc,_0x18c42b)=>{const _0x400e99=_0x46f3e8;let _0x3377cb=_0x50219c+_0x18c42b*(_0x17c012+_0x5053e7);Z(_0x4a7482,_0x28bb7e,_0x3377cb,_0x19f3b1,_0x17c012,X[_0x400e99(0x1e2)]),_0x4a7482[_0x400e99(0x33c)]=X[_0x400e99(0x3f9)],_0x4a7482['fill'](),_0x4a7482['stroke']();});}),Z(_0x4a7482,_0x2ceb81,_0x5a1804,_0x42bc3d,_0x29a6e3,X[_0x41b95f(0x172)]),_0x4a7482[_0x41b95f(0x33c)]=X[_0x41b95f(0x265)],_0x4a7482['fill'](),_0x4a7482['stroke'](),_0x4a7482['fillStyle']=X[_0x41b95f(0x255)],_0x4a7482[_0x41b95f(0x32f)]=Bt(X['rootFontWeight'],X[_0x41b95f(0x27e)],_0xff4d1b),_0x4a7482[_0x41b95f(0x2d4)]=_0x41b95f(0x2cc),_0x4a7482[_0x41b95f(0x21e)]='middle';let _0x17a4b7=X['textPaddingScreen']/_0xff4d1b;return _0x4a7482[_0x41b95f(0x17f)](_0x5ce379,_0x181b88['x'],_0x181b88['y'],Math[_0x41b95f(0x205)](0x1,_0x42bc3d-_0x17a4b7*0x2)),_0x4a7482['restore'](),this[_0x41b95f(0x29f)](!0x1),this;}};const Yn={'children':[{'text':_0x5ce379,'orderKey':_0x3cc2d7(0x0),'side':'right'},{'text':_0x5ce379,'orderKey':_0x3cc2d7(0x1),'side':_0x4e28b3(0x244)},{'text':_0x5ce379,'orderKey':_0x3cc2d7(0x2),'side':_0x4e28b3(0x244)}]};var Xn=class extends _0x45f66c{constructor(..._0x25d7ed){const _0x2c9dfe=_0x4e28b3;super(..._0x25d7ed),K(this,_0x2c9dfe(0x1a7),Yn);}[_0x4e28b3(0x3b7)](_0x2ca8dc){const _0x4ef367=_0x4e28b3;var _0x46355b,_0x57b1d5;let _0xd71005=(_0x46355b=_0x2ca8dc==null?void 0x0:_0x2ca8dc[_0x4ef367(0x373)])==null?_0x2ca8dc==null||(_0x57b1d5=_0x2ca8dc['blueprint'])==null?void 0x0:_0x57b1d5['root'][_0x4ef367(0x373)]:_0x46355b;this[_0x4ef367(0x1a7)]={'rootText':_0x2ca8dc==null?void 0x0:_0x2ca8dc[_0x4ef367(0x267)],'structureKind':_0x2ca8dc==null?void 0x0:_0x2ca8dc['structureKind'],'branchLineType':_0x2ca8dc==null?void 0x0:_0x2ca8dc[_0x4ef367(0x191)],'children':this[_0x4ef367(0x178)](_0xd71005,_0x2ca8dc==null?void 0x0:_0x2ca8dc['structureKind']),'blueprint':_0x2ca8dc!=null&&_0x2ca8dc['blueprint']?this[_0x4ef367(0x2cf)](_0x2ca8dc['blueprint']):void 0x0};}[_0x4e28b3(0x2d7)](){const _0x4dc205=_0x4e28b3;var _0x3d8dfa;return{'rootText':this['_template']['rootText'],'structureKind':this[_0x4dc205(0x1a7)][_0x4dc205(0x2c7)],'branchLineType':this[_0x4dc205(0x1a7)]['branchLineType'],'children':(_0x3d8dfa=this[_0x4dc205(0x1a7)][_0x4dc205(0x373)])==null?void 0x0:_0x3d8dfa['map'](_0x45f1b9=>({..._0x45f1b9})),'blueprint':this['_template']['blueprint']?this[_0x4dc205(0x2cf)](this[_0x4dc205(0x1a7)][_0x4dc205(0x3a2)]):void 0x0};}[_0x4e28b3(0x2cf)](_0x2f5dce){const _0x179d4c=_0x4e28b3;return{'title':_0x2f5dce[_0x179d4c(0x392)],'root':this['_cloneBlueprintNode'](_0x2f5dce[_0x179d4c(0x407)])};}['_cloneBlueprintNode'](_0x568817){const _0x33be07=_0x4e28b3;return{..._0x568817,'foreignAttributes':_0x568817['foreignAttributes']?{..._0x568817[_0x33be07(0x283)]}:void 0x0,'children':_0x568817['children'][_0x33be07(0x1cb)](_0x356a13=>this[_0x33be07(0x3e5)](_0x356a13))};}[_0x4e28b3(0x178)](_0x25e58b,_0x5ba321){const _0x585850=_0x4e28b3;let _0x32caa2=!_0x25e58b,_0x3f6627=_0x25e58b==null?Yn[_0x585850(0x373)]:_0x25e58b;return _0x3f6627==null?void 0x0:_0x3f6627[_0x585850(0x1cb)]((_0x40f370,_0x4def32)=>{const _0x15c5d2=_0x585850;var _0x121732;return{..._0x40f370,'text':(_0x121732=_0x40f370[_0x15c5d2(0x288)])==null?_0x5ce379:_0x121732,'side':this[_0x15c5d2(0x1ff)](_0x40f370[_0x15c5d2(0x164)],_0x4def32,_0x5ba321,_0x32caa2)};});}[_0x4e28b3(0x1ff)](_0x461fa2,_0x21631b,_0xef3d29,_0x3bea7a){const _0x2f7d34=_0x4e28b3;return _0xef3d29===_0x2f7d34(0x351)?_0x3bea7a||_0x461fa2==null?_0x2f7d34(0x3f0):_0x461fa2:_0xef3d29==='tree-left'?_0x3bea7a||_0x461fa2==null?_0x2f7d34(0x33e):_0x461fa2:_0xef3d29===_0x2f7d34(0x2d8)?_0x3bea7a||_0x461fa2==null?_0x2f7d34(0x244):_0x461fa2:_0xef3d29===_0x2f7d34(0x400)?_0x3bea7a||_0x461fa2==null?_0x21631b%0x2==0x0?_0x2f7d34(0x33e):'right':_0x461fa2:_0xef3d29===_0x2f7d34(0x28b)?_0x3bea7a||_0x461fa2==null?_0x21631b%0x2==0x0?_0x2f7d34(0x3a3):_0x2f7d34(0x3f0):_0x461fa2:_0xef3d29===_0x2f7d34(0x3a4)&&(_0x3bea7a||_0x461fa2==null)?_0x21631b%0x2==0x0?_0x2f7d34(0x33e):_0x2f7d34(0x244):_0x461fa2;}};function Zn(_0xea3938,_0x4cec13){const _0x5bab85=_0x4e28b3;let _0x9eba84=Number[_0x5bab85(0x2de)](_0x4cec13[_0x5bab85(0x1be)])&&_0x4cec13[_0x5bab85(0x1be)]>0x0?_0x4cec13['zoomRatio']:0x1;return{'x':Math['round']((_0xea3938['offsetX']-_0x4cec13['panOffset']['x'])/_0x9eba84),'y':Math[_0x5bab85(0x414)]((_0xea3938[_0x5bab85(0x1b0)]-_0x4cec13['panOffset']['y'])/_0x9eba84)};}function Qn(_0x3d6506){const _0x4e21ae=_0x4e28b3;var _0x1b9c15;if(_0x3d6506!=null&&_0x3d6506[_0x4e21ae(0x29d)]){_0x3d6506['dispose']();return;}_0x3d6506==null||(_0x1b9c15=_0x3d6506[_0x4e21ae(0x1ee)])==null||_0x1b9c15[_0x4e21ae(0x1e1)](_0x3d6506);}function $n(_0x3d027a){const _0x34754d=_0x4e28b3;var _0x5ea038;return _0x3d027a[_0x34754d(0x306)]===_0x138a65[_0x34754d(0x2a7)]&&((_0x5ea038=_0x3d027a['pendingInsert'])==null?void 0x0:_0x5ea038['type'])===_0x138a65['MindMap'];}let er=class extends _0x43afa6{constructor(_0x5eeed7,_0x3ddb9c,_0x1e84af,_0x3ec877,_0xd9d07c,_0x3a879c,_0x17ace1){const _0x29f8f8=_0x4e28b3;super(),this['_renderContext']=_0x5eeed7,this['_instanceSrv']=_0x3ddb9c,this[_0x29f8f8(0x32a)]=_0x1e84af,this[_0x29f8f8(0x19a)]=_0x3ec877,this['_insertStateService']=_0xd9d07c,this[_0x29f8f8(0x1e3)]=_0x3a879c,this['_boardTextEditingService']=_0x17ace1,K(this,_0x29f8f8(0x37c),null),K(this,_0x29f8f8(0x1ac),null),this[_0x29f8f8(0x169)]();}[_0x4e28b3(0x169)](){const _0x10600b=_0x4e28b3;var _0x26467a;let {scene:_0x18e8e6,unitId:_0x8ebbae}=this[_0x10600b(0x1f3)],_0xfb6b6a=this[_0x10600b(0x291)][_0x10600b(0x3c0)](_0x8ebbae,_0x2934fe[_0x10600b(0x302)]);if(!_0xfb6b6a)return;let _0x37da36=(_0x26467a=_0x18e8e6['onPointerMove$'])==null?void 0x0:_0x26467a['subscribeEvent']((_0x2b7def,_0x294d25)=>{const _0xfb15b1=_0x10600b;this[_0xfb15b1(0x3a9)](_0x2b7def,_0x294d25);}),_0x27695b=_0x18e8e6[_0x10600b(0x33d)][_0x10600b(0x36e)]((_0xdeb4ab,_0x2613a7)=>{const _0x4ea559=_0x10600b;this[_0x4ea559(0x1c1)](_0xfb6b6a,_0xdeb4ab,_0x2613a7);});this[_0x10600b(0x40b)](_0x288fdc(()=>Qn(_0x37da36))),this[_0x10600b(0x40b)](_0x288fdc(()=>Qn(_0x27695b)));let _0x1992d5=this[_0x10600b(0x32a)][_0x10600b(0x27f)][_0x10600b(0x345)](()=>{const _0x17b3bd=_0x10600b;this[_0x17b3bd(0x32b)](),this[_0x17b3bd(0x406)]();});this[_0x10600b(0x40b)](_0x288fdc(()=>Qn(_0x1992d5))),this[_0x10600b(0x40b)](_0x288fdc(()=>{const _0x536a5e=_0x10600b;_0x18e8e6[_0x536a5e(0x195)](),this['_removePreviewObject']();})),this['_syncSceneInputMode'](),this['_syncPreviewObject']();}[_0x4e28b3(0x32b)](){const _0x1b70cc=_0x4e28b3;$n(this[_0x1b70cc(0x32a)][_0x1b70cc(0x15a)]())?this[_0x1b70cc(0x1f3)][_0x1b70cc(0x171)][_0x1b70cc(0x3f8)]():this[_0x1b70cc(0x1f3)][_0x1b70cc(0x171)][_0x1b70cc(0x195)]();}[_0x4e28b3(0x406)](){const _0x3c7f5f=_0x4e28b3;var _0x426bd6,_0x49a3c8;let _0x4cb63a=this[_0x3c7f5f(0x32a)]['getState']();if(!$n(_0x4cb63a)){this[_0x3c7f5f(0x2da)]();return;}let _0x5a00c1=this['_ensurePreviewObject'](),_0x25e8ef=this['_insertStateService'][_0x3c7f5f(0x2d7)]();_0x5a00c1['updateState']({'point':this[_0x3c7f5f(0x1ac)],'structureKind':_0x25e8ef['structureKind'],'children':_0x25e8ef['children'],'blueprint':_0x25e8ef['blueprint'],'zoomRatio':_0x4cb63a[_0x3c7f5f(0x1be)]}),(_0x426bd6=(_0x49a3c8=this['_renderContext'][_0x3c7f5f(0x171)])['makeDirty'])==null||_0x426bd6[_0x3c7f5f(0x1e1)](_0x49a3c8,!0x0);}[_0x4e28b3(0x370)](){const _0x11ac32=_0x4e28b3;var _0x58442f,_0x5b2fca;if(this[_0x11ac32(0x37c)])return this['_previewObject'];let _0x48a60d=this[_0x11ac32(0x31b)][_0x11ac32(0x2d7)](),_0x14c8ca=new Jn(Vn,{'point':this[_0x11ac32(0x1ac)],'structureKind':_0x48a60d[_0x11ac32(0x2c7)],'children':_0x48a60d[_0x11ac32(0x373)],'blueprint':_0x48a60d[_0x11ac32(0x3a2)],'zoomRatio':this[_0x11ac32(0x32a)][_0x11ac32(0x15a)]()['zoomRatio']});return this[_0x11ac32(0x37c)]=_0x14c8ca,(_0x58442f=(_0x5b2fca=this['_renderContext'][_0x11ac32(0x171)])[_0x11ac32(0x153)])==null||_0x58442f[_0x11ac32(0x1e1)](_0x5b2fca,_0x14c8ca,Hn),_0x14c8ca;}[_0x4e28b3(0x2da)](){const _0x587e5c=_0x4e28b3;var _0x1d4ba2,_0x5f3f24,_0x10ff31,_0x2efed0;if(!this['_previewObject']){this['_lastPoint']=null;return;}(_0x1d4ba2=(_0x5f3f24=this['_renderContext'][_0x587e5c(0x171)])[_0x587e5c(0x1bc)])==null||_0x1d4ba2[_0x587e5c(0x1e1)](_0x5f3f24,[this[_0x587e5c(0x37c)]]),this[_0x587e5c(0x37c)]=null,this[_0x587e5c(0x1ac)]=null,(_0x10ff31=(_0x2efed0=this[_0x587e5c(0x1f3)][_0x587e5c(0x171)])[_0x587e5c(0x29f)])==null||_0x10ff31[_0x587e5c(0x1e1)](_0x2efed0,!0x0);}[_0x4e28b3(0x3a7)](_0x3849d3){const _0x457ac8=_0x4e28b3;let _0x27ba35=this[_0x457ac8(0x32a)]['getState']();return Zn(_0x3849d3,{'panOffset':_0x27ba35[_0x457ac8(0x2c8)],'zoomRatio':_0x27ba35[_0x457ac8(0x1be)]});}[_0x4e28b3(0x193)](_0x363f52){const _0x1aad34=_0x4e28b3;return{'left':Math[_0x1aad34(0x414)](_0x363f52['x']-_0x1163ab[_0x1aad34(0x227)]/0x2),'top':Math['round'](_0x363f52['y']-_0x1163ab[_0x1aad34(0x1a9)]/0x2)};}[_0x4e28b3(0x3a9)](_0x4538ee,_0x12efce){const _0x26950c=_0x4e28b3;$n(this['_stateService'][_0x26950c(0x15a)]())&&(this['_lastPoint']=this[_0x26950c(0x3a7)](_0x4538ee),this['_syncPreviewObject'](),_0x12efce['stopPropagation']());}[_0x4e28b3(0x1c1)](_0x2243d2,_0x1894ed,_0x24fff5){const _0x2618f2=_0x4e28b3;var _0x12b23b,_0x272725;let _0x577aaf=this[_0x2618f2(0x32a)][_0x2618f2(0x15a)](),_0x3d1f7c=(_0x12b23b=_0x1894ed[_0x2618f2(0x3c7)])==null?0x0:_0x12b23b;if(!$n(_0x577aaf)||_0x3d1f7c!==0x0)return;let _0x95d353=this[_0x2618f2(0x3a7)](_0x1894ed),_0x564440=this[_0x2618f2(0x193)](_0x95d353),_0x5b3c21=this[_0x2618f2(0x31b)][_0x2618f2(0x2d7)](),_0x490c4d=_0x257cfe(0x6),_0x3a3354=_0x2243d2[_0x2618f2(0x3be)](),_0x3b469b=this[_0x2618f2(0x19a)]['executeCommand'](_0xa00b3d['id'],{'unitId':this[_0x2618f2(0x1f3)][_0x2618f2(0x204)],'subUnitId':_0x3a3354,'left':_0x564440[_0x2618f2(0x33e)],'top':_0x564440[_0x2618f2(0x3a3)],'rootNodeId':_0x490c4d,'rootText':_0x5b3c21['rootText'],'structureKind':_0x5b3c21[_0x2618f2(0x2c7)],'branchLineType':_0x5b3c21[_0x2618f2(0x191)],'children':_0x5b3c21[_0x2618f2(0x373)],'blueprint':_0x5b3c21[_0x2618f2(0x3a2)]});Promise[_0x2618f2(0x1c8)](_0x3b469b)['then'](_0x38a4f9=>{const _0x1eba2a=_0x2618f2;if(!_0x38a4f9)return;let _0x526c5e={'unitId':this[_0x1eba2a(0x1f3)][_0x1eba2a(0x204)],'subUnitId':_0x3a3354};this[_0x1eba2a(0x1e3)]['selectElements'](_0x526c5e,[_0x490c4d],_0x490c4d),this['_boardTextEditingService'][_0x1eba2a(0x284)](),this['_boardTextEditingService'][_0x1eba2a(0x2b3)]({..._0x526c5e,'shapeId':_0x490c4d,'shapeKey':_0x239fd6(_0x526c5e['unitId'],_0x490c4d),'visible':!0x0});}),this[_0x2618f2(0x32a)][_0x2618f2(0x24f)](_0x138a65[_0x2618f2(0x35b)]),_0x24fff5[_0x2618f2(0x372)](),(_0x272725=_0x1894ed[_0x2618f2(0x2a0)])==null||_0x272725[_0x2618f2(0x1e1)](_0x1894ed);}};er=J([q(0x1,_0x34a716),q(0x2,_0x4b72d1),q(0x3,_0x4c9d00),q(0x4,_0x19f927(Xn)),q(0x5,_0x4ad25d),q(0x6,_0x19f927(_0x4aee4d))],er);var tr=class extends _0x45f66c{constructor(..._0x364703){const _0x531467=_0x4e28b3;super(..._0x364703),K(this,'_refresh$',new _0x168ca7()),K(this,_0x531467(0x3ee),this[_0x531467(0x151)][_0x531467(0x1a1)]());}['notify'](_0x10e3ff){const _0x3f9feb=_0x4e28b3;this[_0x3f9feb(0x151)][_0x3f9feb(0x390)](_0x10e3ff);}[_0x4e28b3(0x29d)](){const _0x23fbd3=_0x4e28b3;this[_0x23fbd3(0x151)][_0x23fbd3(0x2a4)](),super['dispose']();}};function nr(_0x47f2fa){const _0x3398ed=_0x4e28b3;return typeof _0x47f2fa==_0x3398ed(0x1dd)&&Number['isFinite'](_0x47f2fa)&&_0x47f2fa>0x0;}function rr(_0x1a6ef1,_0x473232,_0x33fed9){const _0x56353f=_0x4e28b3;var _0x181df9;let _0x13ccad=_0x1a6ef1[_0x473232],_0x1079d5=_0x130c96(_0x13ccad==null?void 0x0:_0x13ccad[_0x56353f(0x409)]);if(!_0x13ccad||!_0x1079d5)return null;let _0x371ba5=_0x387b00(_0x13ccad,_0x33fed9);if(!_0x371ba5)return null;let _0x2c04f2=(_0x181df9=_0x13ccad['transform'])==null?_0x13ccad['element']['transform']:_0x181df9;return _0x4637d2({..._0x1a6ef1,[_0x473232]:{..._0x13ccad,'transform':{..._0x2c04f2,'width':_0x371ba5[_0x56353f(0x1b5)],'height':_0x371ba5['height']},'element':{..._0x13ccad[_0x56353f(0x409)],'transform':{..._0x13ccad['element'][_0x56353f(0x2eb)],'width':_0x371ba5[_0x56353f(0x1b5)],'height':_0x371ba5[_0x56353f(0x323)]}}}},_0x1079d5[_0x56353f(0x3fe)]);}let ir=class extends _0x43afa6{constructor(_0x432781,_0x48e894,_0x440f9c,_0x5b1116,_0x3fa209){const _0x468202=_0x4e28b3;super(),this[_0x468202(0x1f3)]=_0x432781,this['_intrinsicSizeService']=_0x48e894,this['_boardElementService']=_0x440f9c,this[_0x468202(0x39d)]=_0x5b1116,this['_previewRefreshService']=_0x3fa209,K(this,_0x468202(0x3cf),null),K(this,_0x468202(0x256),{'match':_0x397108=>_0x397108[_0x468202(0x204)]===this[_0x468202(0x1f3)][_0x468202(0x204)]&&!!_0x130c96(_0x397108[_0x468202(0x409)]),'resolveHostSize':_0x56ee75=>this[_0x468202(0x294)](_0x56ee75),'previewHostSize':_0x5a391d=>this[_0x468202(0x174)](_0x5a391d),'updateHostSize':_0x2cc948=>this['_updateHostSize'](_0x2cc948)}),this['disposeWithMe'](this['_intrinsicSizeService'][_0x468202(0x229)](this['_provider'])),this[_0x468202(0x30d)](),this['disposeWithMe'](_0x288fdc(()=>this[_0x468202(0x3d0)]()));}['_updateHostSize'](_0x56496c){const _0x1ada38=_0x4e28b3;return this[_0x1ada38(0x174)](_0x56496c);}[_0x4e28b3(0x174)](_0x37dadd){const _0x6c77b6=_0x4e28b3;var _0x3271fa;let _0x52d682=this['_resolveHostSize'](_0x37dadd);if(!_0x52d682)return!0x1;let _0x1c8d5e=(_0x3271fa=_0x37dadd['elementData'][_0x6c77b6(0x2eb)])==null?_0x37dadd[_0x6c77b6(0x25a)][_0x6c77b6(0x409)][_0x6c77b6(0x2eb)]:_0x3271fa;return!this[_0x6c77b6(0x3cf)]&&_0x1c8d5e[_0x6c77b6(0x1b5)]===_0x52d682[_0x6c77b6(0x1b5)]&&_0x1c8d5e[_0x6c77b6(0x323)]===_0x52d682[_0x6c77b6(0x323)]||this['_syncLayoutPreview'](_0x37dadd,_0x52d682),!0x0;}[_0x4e28b3(0x294)](_0x5e3c06){const _0x1f7529=_0x4e28b3;return!nr(_0x5e3c06[_0x1f7529(0x1f5)]['width'])||!nr(_0x5e3c06[_0x1f7529(0x1f5)][_0x1f7529(0x323)])?null:_0x387b00(_0x5e3c06[_0x1f7529(0x25a)],{'width':_0x5e3c06[_0x1f7529(0x1f5)][_0x1f7529(0x1b5)],'height':_0x5e3c06[_0x1f7529(0x1f5)][_0x1f7529(0x323)]});}['_initEditingRestore'](){const _0x5c7853=_0x4e28b3;this[_0x5c7853(0x40b)](_0x288fdc(this[_0x5c7853(0x39d)][_0x5c7853(0x375)][_0x5c7853(0x34f)](_0x362352(this[_0x5c7853(0x2a2)]))[_0x5c7853(0x345)](_0x3ae765=>{const _0xc54e67=_0x5c7853;_0x3ae765||this[_0xc54e67(0x3d0)]();})));}[_0x4e28b3(0x2d0)](_0x12e58b,_0x77a0f7){const _0x2058f3=_0x4e28b3;var _0x7be07f;let _0x27bba3=this[_0x2058f3(0x234)]['getElementData'](_0x12e58b['params'][_0x2058f3(0x204)],_0x12e58b[_0x2058f3(0x1f5)][_0x2058f3(0x1e8)]),_0x111fce=rr(_0x27bba3,_0x12e58b[_0x2058f3(0x1f5)][_0x2058f3(0x26b)],_0x77a0f7),_0x5dd338=_0x130c96((_0x7be07f=_0x27bba3[_0x12e58b[_0x2058f3(0x1f5)][_0x2058f3(0x26b)]])==null?void 0x0:_0x7be07f[_0x2058f3(0x409)]);!_0x111fce||!_0x5dd338||(this[_0x2058f3(0x3cf)]={'unitId':_0x12e58b['params'][_0x2058f3(0x204)],'subUnitId':_0x12e58b[_0x2058f3(0x1f5)]['subUnitId'],'scopeId':_0x5dd338[_0x2058f3(0x3fe)]},this[_0x2058f3(0x276)](_0x111fce,_0x5dd338['structureScopeId'])&&this[_0x2058f3(0x307)][_0x2058f3(0x260)]({'unitId':_0x12e58b['params'][_0x2058f3(0x204)],'subUnitId':_0x12e58b['params'][_0x2058f3(0x1e8)],'nodeId':_0x12e58b[_0x2058f3(0x1f5)][_0x2058f3(0x26b)],'scopeId':_0x5dd338[_0x2058f3(0x3fe)]}));}[_0x4e28b3(0x3d0)](){const _0x3f417b=_0x4e28b3;let _0x5b90cb=this[_0x3f417b(0x3cf)];if(!_0x5b90cb)return;this[_0x3f417b(0x3cf)]=null;let _0x43d7fb=this['_boardElementService']['getElementData'](_0x5b90cb[_0x3f417b(0x204)],_0x5b90cb[_0x3f417b(0x1e8)]);this[_0x3f417b(0x276)](_0x43d7fb,_0x5b90cb[_0x3f417b(0x38b)])&&this[_0x3f417b(0x307)][_0x3f417b(0x260)]({'unitId':_0x5b90cb[_0x3f417b(0x204)],'subUnitId':_0x5b90cb[_0x3f417b(0x1e8)],'nodeId':_0x5b90cb[_0x3f417b(0x38b)],'scopeId':_0x5b90cb[_0x3f417b(0x38b)]});}[_0x4e28b3(0x276)](_0x577240,_0x77d3e7){const _0x14abed=_0x4e28b3;let _0x450d96=!0x1;if(Object[_0x14abed(0x326)](_0x577240)[_0x14abed(0x3c2)](_0x2d1607=>{const _0x133222=_0x14abed;var _0x52605f;let _0x2b9002=_0x130c96(_0x2d1607[_0x133222(0x409)]),_0x52cb7e=(_0x52605f=_0x2d1607['element'][_0x133222(0x3f3)])==null?void 0x0:_0x52605f['structured'];if(_0x2d1607[_0x133222(0x404)]!==_0x77d3e7&&(_0x2b9002==null?void 0x0:_0x2b9002[_0x133222(0x3fe)])!==_0x77d3e7&&(_0x52cb7e==null?void 0x0:_0x52cb7e[_0x133222(0x3fe)])!==_0x77d3e7)return;let _0x14beb8=this[_0x133222(0x210)](_0x2d1607[_0x133222(0x404)]);_0x14beb8&&(_0x450d96=_0x7e58a4(_0x14beb8,_0x2d1607,{'elementData':_0x577240,'unitId':this[_0x133222(0x1f3)]['unitId']})||_0x450d96);}),_0x450d96){var _0x1ec787,_0x555c8a;this[_0x14abed(0x1f3)][_0x14abed(0x171)][_0x14abed(0x29f)](!0x0),(_0x1ec787=(_0x555c8a=this['_renderContext'][_0x14abed(0x171)])['requestRender'])==null||_0x1ec787[_0x14abed(0x1e1)](_0x555c8a);}return _0x450d96;}[_0x4e28b3(0x210)](_0x59db74){const _0x75e842=_0x4e28b3;var _0x23a0f6,_0x30dcbd,_0x228ea4;let _0x5f36bc=_0x239fd6(this['_renderContext'][_0x75e842(0x204)],_0x59db74),_0x32f929=this['_renderContext'][_0x75e842(0x171)];return(_0x23a0f6=(_0x30dcbd=(_0x228ea4=_0x32f929[_0x75e842(0x24c)])==null?void 0x0:_0x228ea4[_0x75e842(0x1e1)](_0x32f929,_0x5f36bc))==null?this[_0x75e842(0x1f3)]['scene']['getObject'](_0x5f36bc):_0x30dcbd)==null?null:_0x23a0f6;}};ir=J([q(0x1,_0x19f927(_0x38e758)),q(0x2,_0x19f927(_0x5af7fa)),q(0x3,_0x19f927(_0x4aee4d)),q(0x4,_0x19f927(tr))],ir);const $={'radius':0x12,'addChildRadius':0xe,'siblingHoverRadius':0xa,'siblingDotRadius':0x5,'siblingDotGap':0x3,'gap':0xa,'collapsePlusMinDistance':0x2c,'primaryColor':Y['primaryColor'],'surfaceColor':Y[_0x4e28b3(0x3c4)],'borderWidth':0x2,'glyphSize':0x8,'addChildGlyphSize':0x6,'siblingGlyphSize':5.5,'glyphWidth':2.4,'glyphHoverWidth':0x3,'badgeFontWeight':0x258,'badgeFontSize':0x12,'fontFamily':Y[_0x4e28b3(0x31d)]};function ar(_0x36f253){const _0x32743b=_0x4e28b3;let _0x1f10a9=$['radius'],_0x178c08=$[_0x32743b(0x1f2)],_0x525d4c=$[_0x32743b(0x1d0)],_0xb99c1c=$[_0x32743b(0x298)],_0x5cdcbc=$[_0x32743b(0x1da)],_0x24ce45=_0x5cdcbc+$[_0x32743b(0x270)],_0x286ab7=$[_0x32743b(0x2fa)],_0x13328b=_0x36f253[_0x32743b(0x27c)]['top']+_0x36f253[_0x32743b(0x27c)][_0x32743b(0x323)]/0x2,_0x763e17=_0x36f253[_0x32743b(0x27c)]['left']+_0x36f253[_0x32743b(0x27c)][_0x32743b(0x1b5)]/0x2,_0xf48925=_0x36f253[_0x32743b(0x27c)][_0x32743b(0x33e)]-_0x1f10a9-_0xb99c1c,_0xa55eb2=_0x36f253[_0x32743b(0x27c)]['left']+_0x36f253[_0x32743b(0x27c)][_0x32743b(0x1b5)]+_0x1f10a9+_0xb99c1c,_0x199b52=_0x36f253['bounds'][_0x32743b(0x3a3)]-_0x1f10a9-_0xb99c1c,_0x511234=_0x36f253[_0x32743b(0x27c)][_0x32743b(0x3a3)]+_0x36f253[_0x32743b(0x27c)][_0x32743b(0x323)]+_0x1f10a9+_0xb99c1c,_0x58e2e1=_0x36f253[_0x32743b(0x27c)][_0x32743b(0x33e)]-_0x178c08-_0xb99c1c,_0x1122e9=_0x36f253[_0x32743b(0x27c)][_0x32743b(0x33e)]+_0x36f253[_0x32743b(0x27c)][_0x32743b(0x1b5)]+_0x178c08+_0xb99c1c,_0x59d73f=_0x36f253['bounds'][_0x32743b(0x3a3)]-_0x178c08-_0xb99c1c,_0x41b97f=_0x36f253['bounds'][_0x32743b(0x3a3)]+_0x36f253[_0x32743b(0x27c)]['height']+_0x178c08+_0xb99c1c,_0x2b1646=[],_0x197fc9=_0x36f253[_0x32743b(0x164)]==='top'||_0x36f253[_0x32743b(0x164)]===_0x32743b(0x3f0),_0xbdf053=_0x197fc9?_0x763e17:_0x36f253[_0x32743b(0x164)]===_0x32743b(0x33e)?_0xf48925:_0xa55eb2,_0x3460a9=_0x197fc9?_0x36f253['side']==='top'?_0x199b52:_0x511234:_0x13328b;if(_0x36f253[_0x32743b(0x161)]&&_0x36f253[_0x32743b(0x165)]>0x0)return _0x2b1646[_0x32743b(0x251)]({'kind':_0x32743b(0x1b3),'x':_0xbdf053,'y':_0x3460a9,'radius':_0x1f10a9,'badgeCount':_0x36f253['collapsedDescendantCount']}),_0x2b1646;if(_0x36f253[_0x32743b(0x37e)]){var _0x41607e;((_0x41607e=_0x36f253[_0x32743b(0x3df)])==null?_0x197fc9?['top',_0x32743b(0x3f0)]:[_0x32743b(0x33e),_0x32743b(0x244)]:_0x41607e)[_0x32743b(0x3c2)](_0x4736e3=>{const _0x13b58c=_0x32743b;_0x4736e3===_0x13b58c(0x3a3)?_0x2b1646['push']({'kind':_0x13b58c(0x286),'x':_0x763e17,'y':_0x59d73f,'radius':_0x178c08}):_0x4736e3===_0x13b58c(0x3f0)?_0x2b1646[_0x13b58c(0x251)]({'kind':'add-child-bottom','x':_0x763e17,'y':_0x41b97f,'radius':_0x178c08}):_0x4736e3===_0x13b58c(0x33e)?_0x2b1646['push']({'kind':_0x13b58c(0x159),'x':_0x58e2e1,'y':_0x13328b,'radius':_0x178c08}):_0x2b1646[_0x13b58c(0x251)]({'kind':_0x13b58c(0x340),'x':_0x1122e9,'y':_0x13328b,'radius':_0x178c08});});}else _0x2b1646[_0x32743b(0x251)]({'kind':_0x36f253[_0x32743b(0x164)]===_0x32743b(0x33e)?_0x32743b(0x159):_0x36f253[_0x32743b(0x164)]===_0x32743b(0x3a3)?_0x32743b(0x286):_0x36f253[_0x32743b(0x164)]===_0x32743b(0x3f0)?_0x32743b(0x275):'add-child-right','x':_0x197fc9?_0x763e17:_0x36f253['side']==='left'?_0x58e2e1:_0x1122e9,'y':_0x197fc9?_0x36f253[_0x32743b(0x164)]===_0x32743b(0x3a3)?_0x59d73f:_0x41b97f:_0x13328b,'radius':_0x178c08}),_0x197fc9?(_0x2b1646[_0x32743b(0x251)]({'kind':_0x32743b(0x388),'placement':_0x32743b(0x22e),'x':_0x36f253['bounds']['left']-_0x24ce45,'y':_0x13328b,'radius':_0x525d4c,'visualRadius':_0x5cdcbc}),_0x2b1646[_0x32743b(0x251)]({'kind':_0x32743b(0x330),'placement':_0x32743b(0x2f1),'x':_0x36f253['bounds'][_0x32743b(0x33e)]+_0x36f253[_0x32743b(0x27c)][_0x32743b(0x1b5)]+_0x24ce45,'y':_0x13328b,'radius':_0x525d4c,'visualRadius':_0x5cdcbc})):(_0x2b1646[_0x32743b(0x251)]({'kind':'add-sibling-before','placement':_0x32743b(0x22e),'x':_0x763e17,'y':_0x36f253[_0x32743b(0x27c)][_0x32743b(0x3a3)]-_0x24ce45,'radius':_0x525d4c,'visualRadius':_0x5cdcbc}),_0x2b1646['push']({'kind':'add-sibling-after','placement':'after','x':_0x763e17,'y':_0x36f253[_0x32743b(0x27c)][_0x32743b(0x3a3)]+_0x36f253[_0x32743b(0x27c)][_0x32743b(0x323)]+_0x24ce45,'radius':_0x525d4c,'visualRadius':_0x5cdcbc}));if(_0x36f253['hasChildren']){let _0x3bd552={'kind':_0x32743b(0x1b3),'x':_0xbdf053,'y':_0x3460a9,'radius':_0x1f10a9};_0x2b1646[_0x32743b(0x251)](_0x3bd552);let _0x1a2328=_0x2b1646[_0x32743b(0x203)](_0x419cdb=>_0x419cdb[_0x32743b(0x15e)]===(_0x36f253[_0x32743b(0x164)]===_0x32743b(0x33e)?_0x32743b(0x159):_0x36f253[_0x32743b(0x164)]===_0x32743b(0x3a3)?_0x32743b(0x286):_0x36f253[_0x32743b(0x164)]===_0x32743b(0x3f0)?_0x32743b(0x275):_0x32743b(0x340)));_0x1a2328&&Math[_0x32743b(0x14f)](_0x1a2328['x']-_0x3bd552['x'],_0x1a2328['y']-_0x3bd552['y'])<_0x286ab7&&(_0x36f253['side']===_0x32743b(0x3a3)||_0x36f253[_0x32743b(0x164)]===_0x32743b(0x3f0)?_0x1a2328['y']=_0x3bd552['y']+(_0x36f253['side']==='top'?-_0x286ab7:_0x286ab7):_0x1a2328['x']=_0x3bd552['x']+(_0x36f253[_0x32743b(0x164)]==='left'?-_0x286ab7:_0x286ab7));}return _0x2b1646;}const or=_0x4e28b3(0x188),sr=_0x394cf0['connectorAffordance'];function cr(_0x539f04,_0x4b44fc){const _0x49a80d=_0x4e28b3;return!!_0x539f04&&_0x539f04[_0x49a80d(0x15e)]===_0x4b44fc[_0x49a80d(0x15e)]&&_0x539f04['x']===_0x4b44fc['x']&&_0x539f04['y']===_0x4b44fc['y'];}var lr=class extends _0x344c5d{constructor(_0x50ca9d=or,_0x2b00e6){const _0x3b106c=_0x4e28b3;super(_0x50ca9d),K(this,'_state',{'controls':[]}),this['evented']=!0x0,this[_0x3b106c(0x2e1)]=_0x5d51da[_0x3b106c(0x34b)],this[_0x3b106c(0x3e7)](_0x2b00e6);}[_0x4e28b3(0x3e7)](_0x1b91c4){const _0x12da9a=_0x4e28b3;this[_0x12da9a(0x179)]={...this['_state'],..._0x1b91c4},this['_state'][_0x12da9a(0x3e4)]['length']>0x0?this[_0x12da9a(0x2ec)]():this['hide'](),this['makeDirty'](!0x0);}[_0x4e28b3(0x3b8)](_0x4f25b0){const _0x3bf325=_0x4e28b3;!_0x4f25b0&&!this[_0x3bf325(0x179)][_0x3bf325(0x3ea)]||_0x4f25b0&&cr(this[_0x3bf325(0x179)][_0x3bf325(0x3ea)],_0x4f25b0)||(this['_state']={...this[_0x3bf325(0x179)],'hoveredControl':_0x4f25b0},this[_0x3bf325(0x29f)](!0x0));}[_0x4e28b3(0x309)](_0x31a66c){const _0x5aef5e=_0x4e28b3;for(let _0x46949e=this['_state']['controls'][_0x5aef5e(0x282)]-0x1;_0x46949e>=0x0;--_0x46949e){let _0x12335b=this[_0x5aef5e(0x179)][_0x5aef5e(0x3e4)][_0x46949e];if(Math[_0x5aef5e(0x14f)](_0x31a66c['x']-_0x12335b['x'],_0x31a66c['y']-_0x12335b['y'])<=_0x12335b[_0x5aef5e(0x417)])return _0x12335b;}return null;}[_0x4e28b3(0x187)](_0x22bbfd){const _0x100746=_0x4e28b3;return!!this[_0x100746(0x309)]({'x':_0x22bbfd['x'],'y':_0x22bbfd['y']});}[_0x4e28b3(0x1a3)](_0x495ccb,_0x24e79a){const _0x400437=_0x4e28b3;return!this['visible']||this[_0x400437(0x179)][_0x400437(0x3e4)][_0x400437(0x282)]===0x0?(this[_0x400437(0x29f)](!0x1),this):(_0x495ccb['save'](),this['_state'][_0x400437(0x3e4)][_0x400437(0x3c2)](_0x555b16=>{const _0x2a03c4=_0x400437;var _0x1be75d;let _0x1973a7=cr(this[_0x2a03c4(0x179)]['hoveredControl'],_0x555b16),_0x31a66f=_0x555b16['badgeCount']!==void 0x0,_0xc9d6b3=_0x555b16[_0x2a03c4(0x15e)]===_0x2a03c4(0x159)||_0x555b16[_0x2a03c4(0x15e)]===_0x2a03c4(0x340)||_0x555b16['kind']==='add-child-top'||_0x555b16[_0x2a03c4(0x15e)]==='add-child-bottom',_0x11409b=_0x555b16[_0x2a03c4(0x15e)]==='add-sibling-before'||_0x555b16[_0x2a03c4(0x15e)]==='add-sibling-after',_0x4cc0d5=_0x11409b&&!_0x1973a7?(_0x1be75d=_0x555b16[_0x2a03c4(0x3c6)])==null?_0x555b16[_0x2a03c4(0x417)]:_0x1be75d:_0x555b16[_0x2a03c4(0x417)];if(_0x495ccb['beginPath'](),_0x495ccb['fillStyle']=_0x555b16[_0x2a03c4(0x15e)]===_0x2a03c4(0x1b3)?$[_0x2a03c4(0x3c4)]:$[_0x2a03c4(0x265)],_0x495ccb[_0x2a03c4(0x386)]=$[_0x2a03c4(0x265)],_0x495ccb[_0x2a03c4(0x408)]=$[_0x2a03c4(0x1a2)],_0x495ccb[_0x2a03c4(0x241)](_0x555b16['x'],_0x555b16['y'],_0x4cc0d5,0x0,Math['PI']*0x2),_0x495ccb[_0x2a03c4(0x29e)](),(!_0x11409b||_0x1973a7)&&_0x495ccb[_0x2a03c4(0x18d)](),!_0x31a66f&&(!_0x11409b||_0x1973a7)){if(_0x495ccb[_0x2a03c4(0x3c5)](),_0x495ccb['strokeStyle']=_0x555b16[_0x2a03c4(0x15e)]===_0x2a03c4(0x1b3)?$[_0x2a03c4(0x265)]:$[_0x2a03c4(0x3c4)],_0x495ccb[_0x2a03c4(0x408)]=_0x11409b?$[_0x2a03c4(0x35a)]:_0x1973a7?$[_0x2a03c4(0x1bd)]:$[_0x2a03c4(0x35a)],_0x495ccb[_0x2a03c4(0x208)]='round',_0x555b16[_0x2a03c4(0x15e)]===_0x2a03c4(0x1b3)){let _0x3e0781=$[_0x2a03c4(0x238)];_0x495ccb['moveTo'](_0x555b16['x']+_0x3e0781/0x2,_0x555b16['y']-_0x3e0781),_0x495ccb[_0x2a03c4(0x2f7)](_0x555b16['x']-_0x3e0781/0x2,_0x555b16['y']),_0x495ccb['lineTo'](_0x555b16['x']+_0x3e0781/0x2,_0x555b16['y']+_0x3e0781);}else{let _0x289112=_0x11409b?$[_0x2a03c4(0x2ee)]:_0xc9d6b3?$[_0x2a03c4(0x319)]:$[_0x2a03c4(0x238)];_0x495ccb[_0x2a03c4(0x328)](_0x555b16['x']-_0x289112,_0x555b16['y']),_0x495ccb[_0x2a03c4(0x2f7)](_0x555b16['x']+_0x289112,_0x555b16['y']),_0x495ccb[_0x2a03c4(0x328)](_0x555b16['x'],_0x555b16['y']-_0x289112),_0x495ccb[_0x2a03c4(0x2f7)](_0x555b16['x'],_0x555b16['y']+_0x289112);}_0x495ccb['stroke']();}_0x31a66f&&(_0x495ccb[_0x2a03c4(0x33c)]=$[_0x2a03c4(0x265)],_0x495ccb[_0x2a03c4(0x32f)]=$[_0x2a03c4(0x24a)]+'\x20'+$[_0x2a03c4(0x2ab)]+_0x2a03c4(0x17c)+$[_0x2a03c4(0x31d)],_0x495ccb[_0x2a03c4(0x2d4)]=_0x2a03c4(0x2cc),_0x495ccb[_0x2a03c4(0x21e)]='middle',_0x495ccb['fillText'](String(_0x555b16[_0x2a03c4(0x26e)]),_0x555b16['x'],_0x555b16['y']));}),_0x495ccb[_0x400437(0x3e0)](),this['makeDirty'](!0x1),this);}};function ur(_0x10ecc1){const _0x596e5b=_0x4e28b3;return _0x10ecc1==='tree-left'||_0x10ecc1==='tree-right'||_0x10ecc1===_0x596e5b(0x400);}function _0x4c93(_0x12f608,_0x5443bc){_0x12f608=_0x12f608-0x14c;const _0x5a5c05=_0x5a5c();let _0x4c93ec=_0x5a5c05[_0x12f608];return _0x4c93ec;}function dr(_0x2ecab7){const _0x5888b5=_0x4e28b3;return _0x2ecab7===_0x5888b5(0x28b)||_0x2ecab7==='timeline-vertical';}function fr(_0x2a9929,_0x470d51){const _0x255843=_0x4e28b3;let _0x1138d7=Number['isFinite'](_0x470d51['zoomRatio'])&&_0x470d51[_0x255843(0x1be)]>0x0?_0x470d51[_0x255843(0x1be)]:0x1;return{'x':Math[_0x255843(0x414)]((_0x2a9929['offsetX']-_0x470d51[_0x255843(0x206)]['x'])/_0x1138d7),'y':Math['round']((_0x2a9929[_0x255843(0x1b0)]-_0x470d51['panOffset']['y'])/_0x1138d7)};}let pr=class extends _0x43afa6{constructor(_0x524477,_0x2f1dac,_0x23fe87,_0x232188,_0x4e22e6,_0x1f633f,_0x5f0b24){const _0x32336b=_0x4e28b3;super(),this[_0x32336b(0x1f3)]=_0x524477,this[_0x32336b(0x234)]=_0x2f1dac,this[_0x32336b(0x1e3)]=_0x23fe87,this['_stateService']=_0x232188,this[_0x32336b(0x19a)]=_0x4e22e6,this[_0x32336b(0x201)]=_0x1f633f,this[_0x32336b(0x307)]=_0x5f0b24,K(this,'_object',null),K(this,_0x32336b(0x1fa),null),K(this,_0x32336b(0x3fb),null),K(this,_0x32336b(0x331),null),this['_init']();}[_0x4e28b3(0x169)](){const _0x534666=_0x4e28b3;var _0x39e295,_0x321e47,_0x142bc6,_0x48bb55,_0x58ec28;let {scene:_0xc983a9}=this[_0x534666(0x1f3)],_0x4bbd5d=(_0x39e295=_0xc983a9[_0x534666(0x170)])==null?void 0x0:_0x39e295[_0x534666(0x1e1)](_0xc983a9);_0x4bbd5d&&(this[_0x534666(0x40b)](_0x288fdc(_0x4bbd5d[_0x534666(0x2b5)]['pipe'](_0x362352(this['dispose$']))[_0x534666(0x345)](({objects:_0x4fb981})=>{const _0x56e0bb=_0x534666;this[_0x56e0bb(0x2cd)](_0x4fb981,{'hideRootControls':!0x0});}))),this['disposeWithMe'](_0x288fdc(_0x4bbd5d['changeEnd$'][_0x534666(0x34f)](_0x362352(this[_0x534666(0x2a2)]))[_0x534666(0x345)](_0x34bb03=>{const _0x2e85f3=_0x534666;let _0x5a8285=_0x34bb03==null?void 0x0:_0x34bb03[_0x2e85f3(0x1ab)];this['_syncControls'](_0x5a8285),setTimeout(()=>this[_0x2e85f3(0x2cd)](_0x5a8285),0x0);})))),this[_0x534666(0x40b)](_0x288fdc(this[_0x534666(0x1e3)][_0x534666(0x27f)][_0x534666(0x34f)](_0x362352(this[_0x534666(0x2a2)]))[_0x534666(0x345)](()=>this[_0x534666(0x2cd)]()))),this[_0x534666(0x40b)](_0x288fdc(this[_0x534666(0x32a)][_0x534666(0x27f)][_0x534666(0x34f)](_0x362352(this[_0x534666(0x2a2)]))[_0x534666(0x345)](()=>this['_syncControls']()))),this['disposeWithMe'](_0x288fdc(this['_previewRefreshService']['refresh$']['pipe'](_0x362352(this[_0x534666(0x2a2)]))[_0x534666(0x345)](_0x2e1886=>{const _0x10399c=_0x534666;let _0x560042=this[_0x10399c(0x1e3)][_0x10399c(0x2af)]()['context'];!_0x560042||_0x560042[_0x10399c(0x204)]!==_0x2e1886[_0x10399c(0x204)]||_0x560042[_0x10399c(0x1e8)]!==_0x2e1886[_0x10399c(0x1e8)]||this[_0x10399c(0x331)]&&this['_activeScopeId']!==_0x2e1886['scopeId']||this[_0x10399c(0x2cd)]();}))),this[_0x534666(0x40b)](_0x288fdc(_0xc983a9[_0x534666(0x1a4)][_0x534666(0x36e)](_0x4f8f24=>this['_handlePointerMove'](_0x4f8f24)))),this[_0x534666(0x40b)](_0x288fdc(_0xc983a9[_0x534666(0x33d)][_0x534666(0x36e)]({'priority':0x4,'next':([_0x365c70,_0xe127e1])=>{const _0x235387=_0x534666;this[_0x235387(0x1c1)](_0x365c70)&&this['_consumeControlEvent'](_0x365c70,_0xe127e1);}}))),this[_0x534666(0x40b)](_0x288fdc((_0x321e47=(_0x142bc6=_0xc983a9['onPointerUp$'])==null?void 0x0:_0x142bc6['subscribeEvent']({'priority':0x4,'next':([_0x49f472,_0x9a45a6])=>{const _0x10a7e8=_0x534666;this[_0x10a7e8(0x3d9)](_0x49f472)&&this[_0x10a7e8(0x3d8)](_0x49f472,_0x9a45a6);}}))==null?{'dispose':()=>{}}:_0x321e47)),this['disposeWithMe'](_0x288fdc((_0x48bb55=(_0x58ec28=_0xc983a9[_0x534666(0x3bd)])==null?void 0x0:_0x58ec28[_0x534666(0x36e)]({'priority':0x4,'next':([_0x275eee,_0x220a1e])=>{const _0x4a6b9d=_0x534666;this[_0x4a6b9d(0x3d9)](_0x275eee)&&this['_consumeControlEvent'](_0x275eee,_0x220a1e);}}))==null?{'dispose':()=>{}}:_0x48bb55)),this['disposeWithMe'](_0x288fdc(()=>this[_0x534666(0x3e3)]())),this['_syncControls']();}[_0x4e28b3(0x22c)](){const _0x1134b6=_0x4e28b3;return this[_0x1134b6(0x207)]?this[_0x1134b6(0x207)]:(this[_0x1134b6(0x207)]=new lr(or),this[_0x1134b6(0x30a)](this[_0x1134b6(0x207)]),this[_0x1134b6(0x1f3)]['scene'][_0x1134b6(0x153)](this['_object'],sr),this['_object']);}['_attachObjectEvents'](_0x1482fd){const _0x533467=_0x4e28b3;var _0xbb4383;(_0xbb4383=this[_0x533467(0x1fa)])==null||_0xbb4383[_0x533467(0x29d)]();let _0x37bf5e=new _0x4ee20c();_0x37bf5e['add'](_0x1482fd[_0x533467(0x33d)][_0x533467(0x36e)]({'priority':0x4,'next':([_0x39fabc,_0x4c39a6])=>{const _0x26fa82=_0x533467;this['_handlePointerDown'](_0x39fabc)&&this[_0x26fa82(0x3d8)](_0x39fabc,_0x4c39a6);}})),_0x37bf5e[_0x533467(0x398)](_0x1482fd[_0x533467(0x194)][_0x533467(0x36e)]({'priority':0x4,'next':([_0x269745,_0xc718f3])=>{const _0x57a75d=_0x533467;this[_0x57a75d(0x3d9)](_0x269745)&&this[_0x57a75d(0x3d8)](_0x269745,_0xc718f3);}})),_0x37bf5e[_0x533467(0x398)](_0x1482fd[_0x533467(0x3bd)][_0x533467(0x36e)]({'priority':0x4,'next':([_0x35e888,_0x56f5b2])=>{const _0x3bc076=_0x533467;this[_0x3bc076(0x3d9)](_0x35e888)&&this['_consumeControlEvent'](_0x35e888,_0x56f5b2);}})),this[_0x533467(0x1fa)]=_0x37bf5e;}[_0x4e28b3(0x3e3)](){const _0x58820d=_0x4e28b3;var _0x112a44;this['_object']&&(this[_0x58820d(0x1f3)][_0x58820d(0x171)]['removeObjects']([this[_0x58820d(0x207)]]),(_0x112a44=this[_0x58820d(0x1fa)])==null||_0x112a44['dispose'](),this[_0x58820d(0x1fa)]=null,this[_0x58820d(0x207)]=null,this[_0x58820d(0x3fb)]=null,this[_0x58820d(0x331)]=null,this['_renderContext'][_0x58820d(0x171)][_0x58820d(0x29f)](!0x0));}[_0x4e28b3(0x2cd)](_0x34cf15,_0x416518){const _0x3578c6=_0x4e28b3;var _0x2c1627,_0x2bfb55,_0x1d3798,_0x494bb9;let _0xc5adc8=this[_0x3578c6(0x1e3)]['getSnapshot'](),_0x34c66b=_0xc5adc8[_0x3578c6(0x1ed)],_0x5b85b5=(_0x2c1627=_0xc5adc8[_0x3578c6(0x26f)])==null?_0xc5adc8[_0x3578c6(0x315)][0x0]:_0x2c1627;if(!_0x34c66b||!_0x5b85b5||_0xc5adc8[_0x3578c6(0x315)][_0x3578c6(0x282)]!==0x1){this[_0x3578c6(0x3e3)]();return;}let _0x55ac70=this[_0x3578c6(0x234)]['getElementData'](_0x34c66b[_0x3578c6(0x204)],_0x34c66b['subUnitId']),_0x36ed52=_0x55ac70[_0x5b85b5],_0x552cd4=_0x130c96(_0x36ed52==null?void 0x0:_0x36ed52['element']);if(!_0x36ed52||!_0x552cd4){this[_0x3578c6(0x3e3)]();return;}let _0x419ba2=_0x239fd6(_0x34c66b[_0x3578c6(0x204)],_0x5b85b5);if(_0x416518!=null&&_0x416518[_0x3578c6(0x2cb)]&&_0x552cd4[_0x3578c6(0x197)]==null&&_0x34cf15!=null&&_0x34cf15[_0x3578c6(0x40f)](_0x419ba2)){this[_0x3578c6(0x3e3)]();return;}let _0x3c509f=this['_resolveControlBounds'](_0x55ac70,_0x34c66b[_0x3578c6(0x204)],_0x5b85b5,_0x34cf15);if(!_0x3c509f){this[_0x3578c6(0x3e3)]();return;}let _0x17fa2b=Object[_0x3578c6(0x326)](_0x55ac70)[_0x3578c6(0x20e)](_0x4a02a9=>{const _0x36530a=_0x3578c6;var _0x26381d;return((_0x26381d=_0x130c96(_0x4a02a9[_0x36530a(0x409)]))==null?void 0x0:_0x26381d[_0x36530a(0x197)])===_0x5b85b5;}),_0x3bf892=_0x552cd4['collapsed']?this[_0x3578c6(0x3ef)](_0x55ac70,_0x5b85b5):0x0;this[_0x3578c6(0x3fb)]=_0x5b85b5,this[_0x3578c6(0x331)]=_0x552cd4['structureScopeId'];let _0xe44eb0=(_0x2bfb55=_0x55ac70[_0x552cd4[_0x3578c6(0x3fe)]])==null?void 0x0:_0x2bfb55[_0x3578c6(0x409)],_0x3cbb80=_0x30a9b0(_0xe44eb0),_0x3ef0e2=_0xe44eb0==null||(_0x1d3798=_0xe44eb0[_0x3578c6(0x3f3)])==null||(_0x1d3798=_0x1d3798[_0x3578c6(0x248)])==null||(_0x1d3798=_0x1d3798['layout'])==null?void 0x0:_0x1d3798[_0x3578c6(0x2c7)],_0x300a79=(_0x494bb9=_0x3cbb80==null?void 0x0:_0x3cbb80[_0x3578c6(0x20c)][_0x3578c6(0x2c7)])==null?_0x3ef0e2:_0x494bb9,_0x34cd19=_0x552cd4['parentNodeId']==null,_0x193480=this[_0x3578c6(0x2c2)](_0x552cd4[_0x3578c6(0x164)],_0x34cd19,_0x300a79);this[_0x3578c6(0x22c)]()['updateState']({'controls':ar({'bounds':_0x3c509f,'isRoot':_0x34cd19,'side':_0x193480,'rootChildSides':this['_resolveRootChildControlSides'](_0x34cd19,_0x300a79),'hasChildren':_0x17fa2b[_0x3578c6(0x282)]>0x0,'collapsedDescendantCount':_0x3bf892})}),this[_0x3578c6(0x1f3)][_0x3578c6(0x171)][_0x3578c6(0x29f)](!0x0);}[_0x4e28b3(0x2c2)](_0x363a3d,_0x550324,_0x45398b){const _0x915b9e=_0x4e28b3;return _0x45398b===_0x915b9e(0x3a4)?!_0x550324&&(_0x363a3d==='left'||_0x363a3d===_0x915b9e(0x244))?_0x363a3d:_0x915b9e(0x3f0):_0x45398b===_0x915b9e(0x351)?!_0x550324&&(_0x363a3d===_0x915b9e(0x3a3)||_0x363a3d===_0x915b9e(0x3f0))?_0x363a3d:'bottom':_0x363a3d===_0x915b9e(0x33e)?_0x915b9e(0x33e):_0x915b9e(0x244);}[_0x4e28b3(0x1f8)](_0x2fb84a,_0x4d2bdc){const _0x269e70=_0x4e28b3;if(_0x2fb84a){if(ur(_0x4d2bdc))return[_0x269e70(0x3f0)];if(_0x4d2bdc===_0x269e70(0x28b))return['right'];if(_0x4d2bdc===_0x269e70(0x3a4))return[_0x269e70(0x3f0)];}}[_0x4e28b3(0x21b)](_0xbac86){const _0x4f081c=_0x4e28b3;var _0x1d1d2c,_0x456547;let _0x3567dc=this[_0x4f081c(0x1e3)]['getSnapshot']()[_0x4f081c(0x1ed)];if(!_0x3567dc||!this[_0x4f081c(0x3fb)])return;let _0x1ba2e2=this[_0x4f081c(0x234)][_0x4f081c(0x36f)](_0x3567dc['unitId'],_0x3567dc['subUnitId']),_0x8a8d2=_0x130c96((_0x1d1d2c=_0x1ba2e2[this[_0x4f081c(0x3fb)]])==null?void 0x0:_0x1d1d2c[_0x4f081c(0x409)]),_0x1c538b=_0x8a8d2?_0x30a9b0((_0x456547=_0x1ba2e2[_0x8a8d2['structureScopeId']])==null?void 0x0:_0x456547[_0x4f081c(0x409)]):null;if(!((_0x8a8d2==null?void 0x0:_0x8a8d2[_0x4f081c(0x197)])==null&&(ur(_0x1c538b==null?void 0x0:_0x1c538b[_0x4f081c(0x20c)]['structureKind'])||dr(_0x1c538b==null?void 0x0:_0x1c538b[_0x4f081c(0x20c)]['structureKind']))))return _0xbac86===_0x4f081c(0x159)?_0x4f081c(0x33e):_0xbac86===_0x4f081c(0x286)?'top':_0xbac86===_0x4f081c(0x275)?_0x4f081c(0x3f0):_0x4f081c(0x244);}[_0x4e28b3(0x28a)](_0x25bc99,_0x225f8e,_0xe609c6,_0xce1de9){const _0x483b8f=_0x4e28b3;var _0x35f627,_0x3a16e0,_0x106ad5;let _0x5d304c=_0x239fd6(_0x225f8e,_0xe609c6),_0x21ff0c=_0xce1de9==null?void 0x0:_0xce1de9[_0x483b8f(0x349)](_0x5d304c),_0x333d86=this[_0x483b8f(0x3c8)](_0x21ff0c);if(_0x333d86)return _0x333d86;let _0x48dc6b=this[_0x483b8f(0x1f3)]['scene'],_0x2e7c89=(_0x35f627=(_0x3a16e0=_0x48dc6b['getObjectIncludeInGroup'])==null?void 0x0:_0x3a16e0[_0x483b8f(0x1e1)](_0x48dc6b,_0x5d304c))==null?(_0x106ad5=_0x48dc6b[_0x483b8f(0x3fc)])==null?void 0x0:_0x106ad5[_0x483b8f(0x1e1)](_0x48dc6b,_0x5d304c):_0x35f627;return this[_0x483b8f(0x3c8)](_0x2e7c89)||_0x8188de(_0x25bc99,_0xe609c6);}[_0x4e28b3(0x3c8)](_0x487934){const _0x3cb7f8=_0x4e28b3;return _0x487934&&Number['isFinite'](_0x487934['left'])&&Number['isFinite'](_0x487934['top'])&&Number['isFinite'](_0x487934[_0x3cb7f8(0x1b5)])&&Number[_0x3cb7f8(0x2de)](_0x487934[_0x3cb7f8(0x323)])?{'left':_0x487934[_0x3cb7f8(0x33e)],'top':_0x487934[_0x3cb7f8(0x3a3)],'width':_0x487934[_0x3cb7f8(0x1b5)],'height':_0x487934[_0x3cb7f8(0x323)]}:null;}['_countDescendants'](_0x1eec6e,_0x169a04){const _0x31f57c=_0x4e28b3;return Object[_0x31f57c(0x326)](_0x1eec6e)[_0x31f57c(0x20e)](_0xa1f038=>{const _0x119b60=_0x31f57c;var _0x36617d;return((_0x36617d=_0x130c96(_0xa1f038['element']))==null?void 0x0:_0x36617d[_0x119b60(0x197)])===_0x169a04;})[_0x31f57c(0x3f6)]((_0x3ea32e,_0x14b14e)=>_0x3ea32e+0x1+this[_0x31f57c(0x3ef)](_0x1eec6e,_0x14b14e[_0x31f57c(0x404)]),0x0);}[_0x4e28b3(0x3a9)](_0x1ea00f){const _0x491493=_0x4e28b3;if(!this[_0x491493(0x207)])return;let _0x36c7be=this[_0x491493(0x32a)][_0x491493(0x15a)](),_0x2f4732=fr(_0x1ea00f,{'panOffset':_0x36c7be['viewportPanOffset'],'zoomRatio':_0x36c7be[_0x491493(0x1be)]});this['_object'][_0x491493(0x3b8)](this['_object'][_0x491493(0x309)](_0x2f4732));}[_0x4e28b3(0x1c1)](_0x3cada4){const _0x389e0f=_0x4e28b3;var _0x1a64d9;if(!this['_object']||!this[_0x389e0f(0x3fb)]||((_0x1a64d9=_0x3cada4[_0x389e0f(0x3c7)])==null?0x0:_0x1a64d9)!==0x0)return!0x1;let _0xeff6c0=this[_0x389e0f(0x1e3)][_0x389e0f(0x2af)]()[_0x389e0f(0x1ed)];if(!_0xeff6c0)return!0x1;let _0x59fcdb=this[_0x389e0f(0x32a)][_0x389e0f(0x15a)](),_0x3a57d9=fr(_0x3cada4,{'panOffset':_0x59fcdb[_0x389e0f(0x2c8)],'zoomRatio':_0x59fcdb[_0x389e0f(0x1be)]}),_0x347615=this[_0x389e0f(0x207)][_0x389e0f(0x309)](_0x3a57d9);if(!_0x347615)return!0x1;if(_0x347615[_0x389e0f(0x15e)]===_0x389e0f(0x1b3))return this[_0x389e0f(0x310)](_0xdc2fc2['id'],{'unitId':_0xeff6c0[_0x389e0f(0x204)],'subUnitId':_0xeff6c0['subUnitId'],'nodeId':this['_activeNodeId']}),!0x0;if(_0x347615[_0x389e0f(0x15e)]===_0x389e0f(0x159)||_0x347615[_0x389e0f(0x15e)]==='add-child-right'||_0x347615[_0x389e0f(0x15e)]===_0x389e0f(0x286)||_0x347615[_0x389e0f(0x15e)]===_0x389e0f(0x275)){let _0x1f9c91=_0x257cfe(0x6);return this[_0x389e0f(0x285)](_0x1c61db['id'],{'unitId':_0xeff6c0['unitId'],'subUnitId':_0xeff6c0[_0x389e0f(0x1e8)],'parentNodeId':this[_0x389e0f(0x3fb)],'side':this[_0x389e0f(0x21b)](_0x347615['kind']),'nodeId':_0x1f9c91,'connectorId':_0x257cfe(0x6)},_0x1f9c91),!0x0;}if(_0x347615[_0x389e0f(0x15e)]==='add-sibling-before'||_0x347615[_0x389e0f(0x15e)]===_0x389e0f(0x330)){var _0x1e6717;let _0x2b4a3e=_0x257cfe(0x6);return this[_0x389e0f(0x285)](_0x4427c3['id'],{'unitId':_0xeff6c0[_0x389e0f(0x204)],'subUnitId':_0xeff6c0['subUnitId'],'nodeId':this[_0x389e0f(0x3fb)],'placement':(_0x1e6717=_0x347615[_0x389e0f(0x385)])==null?_0x347615[_0x389e0f(0x15e)]==='add-sibling-before'?_0x389e0f(0x22e):_0x389e0f(0x2f1):_0x1e6717,'siblingNodeId':_0x2b4a3e,'connectorId':_0x257cfe(0x6)},_0x2b4a3e),!0x0;}return!0x0;}[_0x4e28b3(0x3d9)](_0x1432f3){const _0x215a44=_0x4e28b3;var _0x127c6a;if(!this[_0x215a44(0x207)]||((_0x127c6a=_0x1432f3['button'])==null?0x0:_0x127c6a)!==0x0)return!0x1;let _0x3e1b80=this[_0x215a44(0x32a)][_0x215a44(0x15a)](),_0x14e4a5=fr(_0x1432f3,{'panOffset':_0x3e1b80['viewportPanOffset'],'zoomRatio':_0x3e1b80[_0x215a44(0x1be)]});return!!this[_0x215a44(0x207)][_0x215a44(0x309)](_0x14e4a5);}[_0x4e28b3(0x3d8)](_0x189408,_0x5c4928){const _0x4f1dae=_0x4e28b3;var _0x281a44,_0x203a68;_0x5c4928[_0x4f1dae(0x372)](),(_0x281a44=_0x189408['preventDefault'])==null||_0x281a44[_0x4f1dae(0x1e1)](_0x189408),(_0x203a68=_0x189408['stopPropagation'])==null||_0x203a68[_0x4f1dae(0x1e1)](_0x189408);}['_executeAndLayout'](_0x32eed0,_0x2c94ab){const _0x22f26e=_0x4e28b3;let _0x503aa2=this[_0x22f26e(0x331)],_0x3b910d=this['_commandService'][_0x22f26e(0x3d6)](_0x32eed0,_0x2c94ab);Promise[_0x22f26e(0x1c8)](_0x3b910d)[_0x22f26e(0x378)](_0x4d699f=>{const _0x3b0dd3=_0x22f26e;!_0x4d699f||!_0x503aa2||(this[_0x3b0dd3(0x2cd)](),Promise[_0x3b0dd3(0x1c8)](this['_commandService']['executeCommand'](_0x3a4dc0['id'],{'unitId':_0x2c94ab[_0x3b0dd3(0x204)],'subUnitId':_0x2c94ab['subUnitId'],'scopeId':_0x503aa2}))[_0x3b0dd3(0x378)](()=>this[_0x3b0dd3(0x2cd)]()));});}[_0x4e28b3(0x285)](_0x5dda05,_0x56816,_0x32036d){const _0x608efc=_0x4e28b3;let _0x46742f={'unitId':_0x56816[_0x608efc(0x204)],'subUnitId':_0x56816[_0x608efc(0x1e8)]},_0x140cec=this['_commandService'][_0x608efc(0x3d6)](_0x5dda05,_0x56816);Promise[_0x608efc(0x1c8)](_0x140cec)[_0x608efc(0x378)](_0x4ec7d6=>{const _0x310f50=_0x608efc;_0x4ec7d6&&(this['_syncControls'](),this[_0x310f50(0x1e3)][_0x310f50(0x15b)](_0x46742f,[_0x32036d],_0x32036d),this[_0x310f50(0x201)][_0x310f50(0x284)](),this[_0x310f50(0x201)][_0x310f50(0x2b3)]({..._0x46742f,'shapeId':_0x32036d,'shapeKey':_0x239fd6(_0x46742f['unitId'],_0x32036d),'visible':!0x0}));});}};pr=J([q(0x1,_0x19f927(_0x5af7fa)),q(0x2,_0x19f927(_0x4ad25d)),q(0x3,_0x19f927(_0x4b72d1)),q(0x4,_0x4c9d00),q(0x5,_0x19f927(_0x4aee4d)),q(0x6,_0x19f927(tr))],pr);const mr='FOCUSING_MIND_MAP_TEXT_EDITOR';let hr=class extends _0x43afa6{constructor(_0x469d6,_0x4aac37,_0x5563c5,_0xbc082c,_0xb37777){const _0x1cd08e=_0x4e28b3;super(),this[_0x1cd08e(0x234)]=_0x469d6,this['_elementStateService']=_0x4aac37,this[_0x1cd08e(0x184)]=_0x5563c5,this['_commandService']=_0xbc082c,this[_0x1cd08e(0x3f2)]=_0xb37777,this[_0x1cd08e(0x169)]();}[_0x4e28b3(0x169)](){const _0x59ed78=_0x4e28b3;this['disposeWithMe'](this['_shortcutService'][_0x59ed78(0x3de)](this[_0x59ed78(0x2c0)]())),this['disposeWithMe'](_0x288fdc(this[_0x59ed78(0x1e3)]['state$']['pipe'](_0x362352(this[_0x59ed78(0x2a2)]))[_0x59ed78(0x345)](()=>{this['_syncMindMapTextEditorContext']();}))),this[_0x59ed78(0x40b)](_0x288fdc(()=>{const _0x156f44=_0x59ed78;this[_0x156f44(0x184)][_0x156f44(0x20a)](mr,!0x1);})),this[_0x59ed78(0x183)]();}['_createQuoteShortcut'](){const _0x59a2f5=_0x4e28b3;return{'id':_0x381e8c,'binding':_0x5e6623['ENTER']|_0x67ae32[_0x59a2f5(0x177)],'priority':0x3e8,'preconditions':_0x458f0d=>_0x458f0d[_0x59a2f5(0x2bd)](_0x59a2f5(0x25c))&&this[_0x59a2f5(0x19a)][_0x59a2f5(0x157)](_0x381e8c)};}[_0x4e28b3(0x183)](){const _0x5b93cc=_0x4e28b3;this[_0x5b93cc(0x184)][_0x5b93cc(0x20a)](mr,this[_0x5b93cc(0x37f)]());}[_0x4e28b3(0x37f)](){const _0x149838=_0x4e28b3;var _0x436cbe;let _0x3018e5=this[_0x149838(0x1e3)][_0x149838(0x2af)](),_0x47de43=_0x3018e5['context'],_0x3e7dcb=_0x3018e5[_0x149838(0x2bc)];return!_0x47de43||!_0x3e7dcb?!0x1:!!_0x130c96((_0x436cbe=this['_boardElementService']['getElementData'](_0x47de43[_0x149838(0x204)],_0x47de43['subUnitId'])[_0x3e7dcb])==null?void 0x0:_0x436cbe[_0x149838(0x409)]);}['dispose'](){const _0x82bd22=_0x4e28b3;super['dispose'](),this[_0x82bd22(0x184)]['setContextValue'](mr,!0x1);}};hr=J([q(0x0,_0x19f927(_0x5af7fa)),q(0x1,_0x19f927(_0x4ad25d)),q(0x2,_0x135d5f),q(0x3,_0x4c9d00),q(0x4,_0x2f95f0)],hr);const gr=['structure',_0x4e28b3(0x20c),_0x4e28b3(0x254)];_0x1defe8[_0x4e28b3(0x1af)],_0x1defe8[_0x4e28b3(0x3ce)],_0x1defe8[_0x4e28b3(0x25d)];const _r=[{'labelKey':'boards-mind-ui.panel.spacing.parentGap','key':_0x4e28b3(0x1af),..._0x2f7fbc['horizontalGap']},{'labelKey':_0x4e28b3(0x26c),'key':'siblingGap',..._0x2f7fbc[_0x4e28b3(0x3ce)]},{'labelKey':_0x4e28b3(0x2d5),'key':_0x4e28b3(0x25d),..._0x2f7fbc[_0x4e28b3(0x25d)]}],vr=[{'labelKey':_0x4e28b3(0x39a),'value':_0x4e28b3(0x244)},{'labelKey':'boards-mind-ui.panel.layout.left','value':_0x4e28b3(0x33e)},{'labelKey':_0x4e28b3(0x1b8),'value':_0x4e28b3(0x3dc)}],yr=[{'labelKey':_0x4e28b3(0x28e),'value':_0x4e28b3(0x1fc)},{'labelKey':_0x4e28b3(0x322),'value':_0x4e28b3(0x351)},{'labelKey':_0x4e28b3(0x150),'value':_0x4e28b3(0x2d8)},{'labelKey':_0x4e28b3(0x3a5),'value':'tree-left'},{'labelKey':_0x4e28b3(0x2b9),'value':_0x4e28b3(0x400)},{'labelKey':_0x4e28b3(0x22f),'value':_0x4e28b3(0x28b)},{'labelKey':_0x4e28b3(0x354),'value':_0x4e28b3(0x3a4)}],br=[{'labelKey':'boards-mind-ui.panel.branchLineType.curve','value':'curve'},{'labelKey':'boards-mind-ui.panel.branchLineType.roundedOrthogonal','value':_0x4e28b3(0x168)},{'labelKey':_0x4e28b3(0x280),'value':_0x4e28b3(0x17a)}];function xr(_0x12ca10){const _0x575848=_0x4e28b3;var _0x789abe,_0x44a5e1,_0x1e6c1a,_0x1b9cc3,_0x10e099;let _0x52ec1f=(_0x789abe=_0x12ca10==null?void 0x0:_0x12ca10[_0x575848(0x2c7)])==null?_0x1defe8[_0x575848(0x2c7)]:_0x789abe;return{'spacing':{'horizontalGap':(_0x44a5e1=_0x12ca10==null?void 0x0:_0x12ca10['horizontalGap'])==null?_0x1defe8['horizontalGap']:_0x44a5e1,'siblingGap':(_0x1e6c1a=_0x12ca10==null?void 0x0:_0x12ca10[_0x575848(0x3ce)])==null?_0x1defe8['siblingGap']:_0x1e6c1a,'branchGap':(_0x1b9cc3=_0x12ca10==null?void 0x0:_0x12ca10[_0x575848(0x25d)])==null?_0x1defe8[_0x575848(0x25d)]:_0x1b9cc3},'direction':(_0x10e099=_0x12ca10==null?void 0x0:_0x12ca10[_0x575848(0x31a)])==null?_0x1defe8[_0x575848(0x31a)]:_0x10e099,'structureKind':_0x52ec1f,'branchLineType':_0x5be6e7(_0x52ec1f,_0x12ca10==null?void 0x0:_0x12ca10[_0x575848(0x191)])};}async function Sr(_0x25b688,_0x594a96){const _0x478463=_0x4e28b3;return await Promise[_0x478463(0x1c8)](_0x25b688[_0x478463(0x3d6)](_0xfb8f84['id'],_0x594a96))?(await Promise[_0x478463(0x1c8)](_0x25b688[_0x478463(0x3d6)](_0x3a4dc0['id'],{'unitId':_0x594a96[_0x478463(0x204)],'subUnitId':_0x594a96[_0x478463(0x1e8)],'scopeId':_0x594a96[_0x478463(0x38b)]})),!0x0):!0x1;}async function Cr(_0x11b8c5,_0x39a8fc){const _0x5d0dc5=_0x4e28b3;return await Promise[_0x5d0dc5(0x1c8)](_0x11b8c5[_0x5d0dc5(0x3d6)](_0x394c10['id'],_0x39a8fc))?(await Promise[_0x5d0dc5(0x1c8)](_0x11b8c5[_0x5d0dc5(0x3d6)](_0x3a4dc0['id'],{'unitId':_0x39a8fc[_0x5d0dc5(0x204)],'subUnitId':_0x39a8fc[_0x5d0dc5(0x1e8)],'scopeId':_0x39a8fc[_0x5d0dc5(0x38b)]})),!0x0):!0x1;}async function wr(_0xc4470a,_0xb77a02){const _0x259510=_0x4e28b3;return await Promise['resolve'](_0xc4470a[_0x259510(0x3d6)](_0xfb8f84['id'],{'unitId':_0xb77a02[_0x259510(0x204)],'subUnitId':_0xb77a02[_0x259510(0x1e8)],'scopeId':_0xb77a02['scopeId'],..._0xb77a02[_0x259510(0x1af)]===void 0x0?{}:{'horizontalGap':_0xb77a02[_0x259510(0x1af)]},..._0xb77a02[_0x259510(0x3ce)]===void 0x0?{}:{'siblingGap':_0xb77a02[_0x259510(0x3ce)]},..._0xb77a02[_0x259510(0x25d)]===void 0x0?{}:{'branchGap':_0xb77a02[_0x259510(0x25d)]}}))?(await Promise[_0x259510(0x1c8)](_0xc4470a[_0x259510(0x3d6)](_0x3a4dc0['id'],{'unitId':_0xb77a02['unitId'],'subUnitId':_0xb77a02[_0x259510(0x1e8)],'scopeId':_0xb77a02['scopeId']})),!0x0):!0x1;}async function Tr(_0x1b41f1,_0x27403e){const _0x119eb6=_0x4e28b3;return _0x27403e['nodeId']===_0x27403e[_0x119eb6(0x1bf)]||!await Promise['resolve'](_0x1b41f1[_0x119eb6(0x3d6)](_0x3bb170['id'],{'unitId':_0x27403e[_0x119eb6(0x204)],'subUnitId':_0x27403e[_0x119eb6(0x1e8)],'nodeId':_0x27403e[_0x119eb6(0x263)],'targetNodeId':_0x27403e[_0x119eb6(0x1bf)],'referenceNodeId':_0x27403e[_0x119eb6(0x1bf)],'placement':_0x27403e[_0x119eb6(0x385)]}))?!0x1:(await Promise[_0x119eb6(0x1c8)](_0x1b41f1[_0x119eb6(0x3d6)](_0x3a4dc0['id'],{'unitId':_0x27403e[_0x119eb6(0x204)],'subUnitId':_0x27403e[_0x119eb6(0x1e8)],'scopeId':_0x27403e[_0x119eb6(0x38b)]})),!0x0);}async function Er(_0x5a09cd,_0x2c1556){const _0x1facdd=_0x4e28b3;let _0x160db6=_0x2c1556['text'][_0x1facdd(0x239)]();return!_0x160db6||!await Promise['resolve'](_0x5a09cd[_0x1facdd(0x3d6)](_0x36d216['id'],{'unitId':_0x2c1556[_0x1facdd(0x204)],'subUnitId':_0x2c1556[_0x1facdd(0x1e8)],'nodeId':_0x2c1556[_0x1facdd(0x263)],'text':_0x160db6}))?!0x1:(await Promise[_0x1facdd(0x1c8)](_0x5a09cd[_0x1facdd(0x3d6)](_0x3a4dc0['id'],{'unitId':_0x2c1556[_0x1facdd(0x204)],'subUnitId':_0x2c1556[_0x1facdd(0x1e8)],'scopeId':_0x2c1556[_0x1facdd(0x38b)]})),!0x0);}async function Dr(_0x34c278){const _0x34eb06=_0x4e28b3;var _0xa9812;let _0x28c9ab=(_0xa9812=globalThis['navigator'])==null?void 0x0:_0xa9812[_0x34eb06(0x387)];return _0x28c9ab!=null&&_0x28c9ab['writeText']?(await _0x28c9ab['writeText'](_0x34c278),!0x0):!0x1;}async function Or(_0x221e20,_0x437193,_0xe4d6e8=Dr){const _0x19f4b1=_0x4e28b3;let _0x1aae3f=await Promise['resolve'](_0x221e20[_0x19f4b1(0x3d6)](_0x46bb7e['id'],_0x437193));if(typeof _0x1aae3f!=_0x19f4b1(0x304)||!_0x1aae3f)return!0x1;try{return await _0xe4d6e8(_0x1aae3f)!==!0x1;}catch{return!0x1;}}async function kr(_0x4178b5,_0x38955b){const _0x679bd8=_0x4e28b3;if(!_0x38955b[_0x679bd8(0x180)][_0x679bd8(0x239)]())return!0x1;let _0x2da5b9=await Promise[_0x679bd8(0x1c8)](_0x4178b5[_0x679bd8(0x3d6)](_0x55b80c['id'],_0x38955b));return typeof _0x2da5b9==_0x679bd8(0x381)&&!!_0x2da5b9&&_0x2da5b9[_0x679bd8(0x314)]===!0x0;}function Ar(_0x557954,_0x39815b){const _0x42efca=_0x4e28b3;let _0x42d479=_0x39815b[_0x42efca(0x239)]()[_0x42efca(0x273)]();return _0x42d479?_0x557954[_0x42efca(0x20e)](_0x517dcc=>_0x517dcc[_0x42efca(0x288)][_0x42efca(0x273)]()['includes'](_0x42d479)):_0x557954;}function jr(_0x594e9d){const _0x17516f=_0x4e28b3;return{'paddingInlineStart':0x8+(Number[_0x17516f(0x2de)](_0x594e9d)&&_0x594e9d>0x0?_0x594e9d:0x0)*0x10};}function Mr(_0x301202){const _0x399028=_0x4e28b3;return _0xdbc3b(_0x399028(0x3b6),{'className':_0x399028(0x17d),'data-board-mind-map-panel':_0x399028(0x30b),'children':_0x301202[_0x399028(0x373)]});}function Nr(_0x1f5e7a){const _0x34cca0=_0x4e28b3;return _0xdbc3b('div',{'className':_0x4dee74('univer-border-b\x20univer-border-gray-200\x20univer-p-3',_0x4b17ce),'data-board-mind-map-panel-tabs':'true','children':_0xdbc3b(_0x2edc6b,{'className':'univer-w-full\x20univer-text-xs','items':_0x1f5e7a[_0x34cca0(0x3bb)],'value':_0x1f5e7a[_0x34cca0(0x18e)],'onChange':_0x1f5e7a[_0x34cca0(0x37d)]})});}function Pr(_0x1c539f){const _0x167ab1=_0x4e28b3;return _0x1e5b1d(_0x167ab1(0x29a),{'className':_0x4dee74(_0x167ab1(0x3cd),_0x4b17ce),'data-board-mind-map-panel-section':_0x167ab1(0x30b),'children':[_0xdbc3b('h3',{'className':_0x167ab1(0x2f9),'children':_0x1c539f[_0x167ab1(0x392)]}),_0x1c539f[_0x167ab1(0x373)]]});}function Fr(_0x44aa39){const _0xdafe8b=_0x4e28b3;return _0xdbc3b(_0xdafe8b(0x3b6),{'className':_0xdafe8b(0x28d),'data-board-mind-map-panel-empty-state':_0xdafe8b(0x30b),'children':_0x44aa39[_0xdafe8b(0x373)]});}function Ir(_0x274095){const _0x3487bc=_0x4e28b3;let _0x371d93=_0x3d87e3(_0x19a155);return _0xdbc3b(_0x25b887,{'className':_0x3487bc(0x2c4),'size':_0x3487bc(0x225),'variant':_0x3487bc(0x2f8),'onClick':_0x274095['onClick'],'children':_0x371d93['t'](_0x3487bc(0x397))});}function Lr(_0x252e45){const _0x19b52a=_0x4e28b3;var _0x47f93d;let _0x532b2a=_0x3d87e3(_0x4c9d00),_0x54d789=_0x3d87e3(_0x4ad25d),_0x4f40d0=_0x3d87e3(_0x19a155),_0x4c7e0e=(_0x47f93d=_0x252e45[_0x19b52a(0x222)])==null?[]:_0x47f93d,[_0x14c086,_0xf7fdb1]=_0x33a7c5(''),[_0x75af1a,_0x4863ad]=_0x33a7c5(null),[_0x5148a4,_0x47802b]=_0x33a7c5(''),_0x1b8f79=xr(_0x252e45[_0x19b52a(0x20c)]),[_0x454289,_0x40fd2]=_0x33a7c5(_0x1b8f79[_0x19b52a(0x1ec)]),[_0xc26435,_0x4d61b6]=_0x33a7c5(_0x1b8f79[_0x19b52a(0x31a)]),[_0xdf8909,_0x8fee94]=_0x33a7c5(_0x1b8f79['structureKind']),[_0x5867ff,_0x3f8bec]=_0x33a7c5(_0x1b8f79[_0x19b52a(0x191)]),[_0x4ef989,_0x3217d1]=_0x33a7c5(null),[_0x46bccd,_0x5b287c]=_0x33a7c5('structure'),_0x442cc4=Ar(_0x4c7e0e,_0x14c086),_0xe462d9={'unitId':_0x252e45[_0x19b52a(0x204)],'subUnitId':_0x252e45[_0x19b52a(0x1e8)],'scopeId':_0x252e45[_0x19b52a(0x38b)]},_0x1aa18f=gr[_0x19b52a(0x1cb)](_0x424c84=>({'label':_0x4f40d0['t']('boards-mind-ui.panel.tab.'+_0x424c84),'value':_0x424c84})),_0x202d43=br['filter'](_0x50d493=>_0x50d493[_0x19b52a(0x18e)]!=='curve'||_0x3e1084(_0xdf8909)),_0xb42323=_0x5cf99d=>{_0x4d61b6(_0x5cf99d),Sr(_0x532b2a,{..._0xe462d9,'direction':_0x5cf99d});};_0x102d6a(()=>{const _0x14d585=_0x19b52a;let _0x2e752f=xr(_0x252e45[_0x14d585(0x20c)]);_0x40fd2(_0x2e752f[_0x14d585(0x1ec)]),_0x4d61b6(_0x2e752f['direction']),_0x8fee94(_0x2e752f[_0x14d585(0x2c7)]),_0x3f8bec(_0x2e752f[_0x14d585(0x191)]);},[_0x252e45[_0x19b52a(0x20c)],_0x252e45[_0x19b52a(0x38b)]]);let _0x1853d5=_0x10e8e8=>{let _0x28e0bb=_0x5be6e7(_0x10e8e8,_0x5867ff);_0x8fee94(_0x10e8e8),_0x3f8bec(_0x28e0bb),Sr(_0x532b2a,{..._0xe462d9,'structureKind':_0x10e8e8,..._0x28e0bb===_0x5867ff?null:{'branchLineType':_0x28e0bb}});},_0xecb2f2=_0x55af93=>{let _0x342adb=_0x5be6e7(_0xdf8909,_0x55af93);_0x3f8bec(_0x342adb),Cr(_0x532b2a,{..._0xe462d9,'branchLineType':_0x342adb});},_0x34b71f=(_0x4f674c,_0x5a8d10)=>{let _0x3ceccc={..._0x454289,[_0x4f674c]:_0x5a8d10};_0x40fd2(_0x3ceccc),wr(_0x532b2a,{..._0xe462d9,..._0x3ceccc});},_0xad6563=()=>{kr(_0x532b2a,{'unitId':_0x252e45['unitId'],'subUnitId':_0x252e45['subUnitId'],'left':0x78,'top':0x78,'opml':_0x5148a4})['then'](_0x40ef13=>{_0x40ef13&&_0x47802b('');});},_0x65688c=()=>{Or(_0x532b2a,_0xe462d9);},_0x378b5e=(_0x1a283d,_0x5d22ca)=>{_0x4863ad({'nodeId':_0x1a283d,'text':_0x5d22ca});},_0x3265ee=()=>{_0x75af1a&&Er(_0x532b2a,{..._0xe462d9,'nodeId':_0x75af1a['nodeId'],'text':_0x75af1a['text']})['then'](_0x6dd143=>{_0x6dd143&&_0x4863ad(null);});},_0x1e6baf=(_0x3466e7,_0x4658b7)=>{const _0xb7b8c=_0x19b52a;if(_0x3466e7[_0xb7b8c(0x2a0)](),!_0x4ef989||_0x4ef989===_0x4658b7)return;let _0x31657a=_0x3466e7[_0xb7b8c(0x175)][_0xb7b8c(0x23e)](),_0x2255ba=_0x3466e7[_0xb7b8c(0x383)]<_0x31657a['top']+_0x31657a[_0xb7b8c(0x323)]/0x2?_0xb7b8c(0x22e):_0xb7b8c(0x2f1);_0x3217d1(null),Tr(_0x532b2a,{..._0xe462d9,'nodeId':_0x4ef989,'targetNodeId':_0x4658b7,'placement':_0x2255ba});};return _0x1e5b1d(Mr,{'children':[_0xdbc3b(Nr,{'items':_0x1aa18f,'value':_0x46bccd,'onChange':_0x47479e=>_0x5b287c(_0x47479e)}),_0x46bccd===_0x19b52a(0x30c)&&_0xdbc3b(Pr,{'title':_0x4f40d0['t'](_0x19b52a(0x242)),'children':_0x1e5b1d(_0x19b52a(0x3b6),{'children':[_0xdbc3b(_0x4f73bf,{'slot':_0xdbc3b(_0x32fc43,{}),'value':_0x14c086,'placeholder':_0x4f40d0['t'](_0x19b52a(0x2f4)),'className':_0x19b52a(0x3af),'onChange':_0xf7fdb1}),_0x442cc4[_0x19b52a(0x282)]?_0xdbc3b('ol',{'className':_0x19b52a(0x1e9),'children':_0x442cc4[_0x19b52a(0x1cb)](_0x35c631=>_0xdbc3b('li',{'draggable':!0x0,'className':'univer-flex\x20univer-items-center\x20univer-gap-1\x20univer-truncate\x20univer-rounded\x20univer-py-1\x20univer-text-left\x20univer-text-gray-800','style':jr(_0x35c631[_0x19b52a(0x3d7)]),'onDragStart':_0x13c761=>{const _0x1f42fa=_0x19b52a;var _0x1d1bef;_0x3217d1(_0x35c631[_0x1f42fa(0x263)]),(_0x1d1bef=_0x13c761[_0x1f42fa(0x202)])==null||_0x1d1bef[_0x1f42fa(0x25e)](_0x1f42fa(0x2e5),_0x35c631[_0x1f42fa(0x263)]),_0x13c761[_0x1f42fa(0x202)]&&(_0x13c761[_0x1f42fa(0x202)][_0x1f42fa(0x3aa)]=_0x1f42fa(0x216));},'onDragOver':_0xdda745=>{const _0x12b93f=_0x19b52a;_0xdda745[_0x12b93f(0x2a0)](),_0xdda745[_0x12b93f(0x202)]&&(_0xdda745['dataTransfer'][_0x12b93f(0x359)]='move');},'onDrop':_0x326452=>_0x1e6baf(_0x326452,_0x35c631['nodeId']),'onDragEnd':()=>_0x3217d1(null),'children':(_0x75af1a==null?void 0x0:_0x75af1a['nodeId'])===_0x35c631['nodeId']?_0x1e5b1d(_0x19b52a(0x3b6),{'className':_0x19b52a(0x158),'children':[_0xdbc3b(_0x4f73bf,{'autoFocus':!0x0,'size':_0x19b52a(0x225),'value':_0x75af1a[_0x19b52a(0x288)],'onChange':_0x18b961=>_0x4863ad({'nodeId':_0x35c631[_0x19b52a(0x263)],'text':_0x18b961}),'onKeyDown':_0x547e00=>{const _0x15c83e=_0x19b52a;_0x547e00['key']==='Enter'&&_0x3265ee(),_0x547e00[_0x15c83e(0x23c)]===_0x15c83e(0x374)&&_0x4863ad(null);}}),_0xdbc3b(_0x25b887,{'size':_0x19b52a(0x225),'variant':'primary','disabled':!_0x75af1a[_0x19b52a(0x288)][_0x19b52a(0x239)](),'onClick':_0x3265ee,'children':_0x4f40d0['t'](_0x19b52a(0x397))}),_0xdbc3b(_0x25b887,{'size':'small','variant':_0x19b52a(0x2f8),'onClick':()=>_0x4863ad(null),'children':_0x4f40d0['t'](_0x19b52a(0x29c))})]}):_0x1e5b1d(_0x533ee7,{'children':[_0xdbc3b(_0x25b887,{'size':_0x19b52a(0x225),'variant':_0x19b52a(0x25b),'className':_0x19b52a(0x1db),'onClick':()=>_0x54d789[_0x19b52a(0x15b)]({'unitId':_0x252e45[_0x19b52a(0x204)],'subUnitId':_0x252e45['subUnitId']},[_0x35c631[_0x19b52a(0x263)]],_0x35c631['nodeId']),'children':_0x35c631[_0x19b52a(0x288)]}),_0xdbc3b(Ir,{'onClick':()=>_0x378b5e(_0x35c631[_0x19b52a(0x263)],_0x35c631[_0x19b52a(0x288)])})]})},_0x35c631['nodeId']))}):_0xdbc3b(Fr,{'children':_0x4f40d0['t'](_0x19b52a(0x30e))})]})}),_0x46bccd===_0x19b52a(0x20c)&&_0xdbc3b(Pr,{'title':_0x4f40d0['t']('boards-mind-ui.panel.tab.layout'),'children':_0x1e5b1d(_0x19b52a(0x3b6),{'className':_0x19b52a(0x2ad),'children':[_0xdbc3b(_0x19b52a(0x3b6),{'className':_0x19b52a(0x21c),'children':_0xdbc3b(_0x2edc6b,{'className':'univer-w-full\x20univer-text-xs','items':yr[_0x19b52a(0x1cb)](_0xabd3de=>({'label':_0x4f40d0['t'](_0xabd3de[_0x19b52a(0x3b5)]),'value':_0xabd3de['value']})),'value':_0xdf8909,'onChange':_0xbaaa65=>_0x1853d5(_0xbaaa65)})}),_0xdbc3b(_0x19b52a(0x3b6),{'className':_0x19b52a(0x21c),'children':_0xdbc3b(_0x2edc6b,{'className':'univer-w-full\x20univer-text-xs','items':vr['map'](_0x5b6dde=>({'label':_0x4f40d0['t'](_0x5b6dde[_0x19b52a(0x3b5)]),'value':_0x5b6dde[_0x19b52a(0x18e)]})),'value':_0xc26435,'onChange':_0x2c6911=>_0xb42323(_0x2c6911)})}),_0xdbc3b(_0x19b52a(0x3b6),{'className':'univer-flex\x20univer-gap-2','children':_0xdbc3b(_0x2edc6b,{'className':_0x19b52a(0x1c6),'items':_0x202d43[_0x19b52a(0x1cb)](_0xf6dc70=>({'label':_0x4f40d0['t'](_0xf6dc70[_0x19b52a(0x3b5)]),'value':_0xf6dc70['value']})),'value':_0x5867ff,'onChange':_0x1e8dcd=>_0xecb2f2(_0x1e8dcd)})}),_0xdbc3b('div',{'className':'univer-space-y-2','children':_r['map'](({labelKey:_0x374ae0,key:_0x1287d6,min:_0x1db0b0,max:_0x4704ef})=>_0x1e5b1d(_0x19b52a(0x2ae),{'className':_0x19b52a(0x2c9),'children':[_0xdbc3b(_0x19b52a(0x316),{'className':_0x19b52a(0x1c2),'children':_0x4f40d0['t'](_0x19b52a(0x295)+_0x374ae0)}),_0xdbc3b(_0x5687ca,{'min':_0x1db0b0,'max':_0x4704ef,'step':0x4,'value':_0x454289[_0x1287d6],'precision':0x0,'className':_0x19b52a(0x198),'onChange':_0xcc48ba=>_0x34b71f(_0x1287d6,Number(_0xcc48ba==null?_0x1db0b0:_0xcc48ba))})]},_0x1287d6))})]})}),_0x46bccd===_0x19b52a(0x254)&&_0xdbc3b(Pr,{'title':_0x4f40d0['t'](_0x19b52a(0x2c6)),'children':_0x1e5b1d(_0x19b52a(0x3b6),{'className':_0x19b52a(0x250),'children':[_0xdbc3b(_0x55a337,{'className':_0x19b52a(0x317),'placeholder':_0x4f40d0['t'](_0x19b52a(0x32d)),'value':_0x5148a4,'onValueChange':_0x47802b}),_0x1e5b1d(_0x19b52a(0x3b6),{'className':_0x19b52a(0x21c),'children':[_0xdbc3b(_0x25b887,{'size':'small','variant':_0x19b52a(0x2e2),'disabled':!_0x5148a4['trim'](),'onClick':_0xad6563,'children':_0x4f40d0['t'](_0x19b52a(0x2e3))}),_0xdbc3b(_0x25b887,{'size':_0x19b52a(0x225),'variant':_0x19b52a(0x2f8),'onClick':_0x65688c,'children':_0x4f40d0['t'](_0x19b52a(0x410))})]})]})})]});}let Rr=class extends _0x45f66c{constructor(_0x5eaff9){const _0x3118ea=_0x4e28b3;super(),this[_0x3118ea(0x413)]=_0x5eaff9,this['_registerComponents']();}[_0x4e28b3(0x1f1)](){const _0x3748d6=_0x4e28b3;this[_0x3748d6(0x40b)](this[_0x3748d6(0x413)][_0x3748d6(0x192)](sn,ln)),this[_0x3748d6(0x40b)](this['_componentManager'][_0x3748d6(0x192)](gn,Rn)),this[_0x3748d6(0x40b)](this[_0x3748d6(0x413)][_0x3748d6(0x192)](_0x3748d6(0x236),Lr));}};Rr=J([q(0x0,_0x19f927(_0x4aefa5))],Rr);let zr=class{constructor(_0x174f3d,_0x218360){const _0x43e603=_0x4e28b3;this[_0x43e603(0x32a)]=_0x174f3d,this[_0x43e603(0x31b)]=_0x218360;}['beginMindMapMode'](_0x15fbf4){const _0x4db8c2=_0x4e28b3;return this[_0x4db8c2(0x31b)]['setTemplate']({'rootText':_0x15fbf4[_0x4db8c2(0x267)],'structureKind':_0x15fbf4['structureKind'],'branchLineType':_0x15fbf4[_0x4db8c2(0x191)],'children':_0x15fbf4[_0x4db8c2(0x373)],'blueprint':_0x15fbf4['blueprint']}),this[_0x4db8c2(0x32a)][_0x4db8c2(0x368)](!0x1),this['_stateService'][_0x4db8c2(0x264)](),this[_0x4db8c2(0x32a)][_0x4db8c2(0x24f)](_0x138a65['MindMap']),this[_0x4db8c2(0x32a)][_0x4db8c2(0x160)]({'type':_0x138a65['MindMap']}),!0x0;}};zr=J([q(0x0,_0x4b72d1),q(0x1,_0x19f927(Xn))],zr);let Br=class extends _0x3485b7{constructor(_0x570f1c=Pt,_0x53cb09,_0x54b59f,_0x536afb){const _0x51d863=_0x4e28b3;super(),this['_config']=_0x570f1c,this[_0x51d863(0x200)]=_0x53cb09,this[_0x51d863(0x2f0)]=_0x54b59f,this['_renderManagerService']=_0x536afb;let {..._0x37882b}=_0xce87f2({},Pt,this[_0x51d863(0x31e)]);this[_0x51d863(0x2f0)]['setConfig'](_0x51d863(0x367),_0x37882b);}[_0x4e28b3(0x33a)](){const _0x9249eb=_0x4e28b3;this['_injector'][_0x9249eb(0x398)]([Xn]),this[_0x9249eb(0x200)][_0x9249eb(0x398)]([tr]),this[_0x9249eb(0x200)][_0x9249eb(0x398)]([zr]),this['_injector'][_0x9249eb(0x398)]([mn]),this[_0x9249eb(0x200)][_0x9249eb(0x398)]([hr]),this[_0x9249eb(0x200)]['add']([Rr]);let _0x5adb11=this[_0x9249eb(0x200)]['get'](zr),_0x11e5e9=this[_0x9249eb(0x200)][_0x9249eb(0x349)](_0x16e4f0);this['disposeWithMe'](_0x11e5e9['registerAdapter'](_0x5adb11)),this[_0x9249eb(0x40b)](this[_0x9249eb(0x200)][_0x9249eb(0x349)](mn)),this[_0x9249eb(0x40b)](this['_injector']['get'](hr)),this['disposeWithMe'](this[_0x9249eb(0x200)][_0x9249eb(0x349)](Rr)),this[_0x9249eb(0x338)]();}['onReady'](){const _0x5c7504=_0x4e28b3;this[_0x5c7504(0x40b)](this[_0x5c7504(0x2dd)][_0x5c7504(0x2bb)](_0x2934fe[_0x5c7504(0x302)],er)),this['disposeWithMe'](this['_renderManagerService'][_0x5c7504(0x2bb)](_0x2934fe[_0x5c7504(0x302)],pr)),this[_0x5c7504(0x40b)](this[_0x5c7504(0x2dd)][_0x5c7504(0x2bb)](_0x2934fe[_0x5c7504(0x302)],Bn)),this[_0x5c7504(0x40b)](this[_0x5c7504(0x2dd)][_0x5c7504(0x2bb)](_0x2934fe['UNIVER_BOARD'],on)),this[_0x5c7504(0x40b)](this[_0x5c7504(0x2dd)][_0x5c7504(0x2bb)](_0x2934fe[_0x5c7504(0x302)],Rt)),this[_0x5c7504(0x40b)](this['_renderManagerService'][_0x5c7504(0x2bb)](_0x2934fe['UNIVER_BOARD'],ir));}[_0x4e28b3(0x338)](){const _0x1930b3=_0x4e28b3;var _0x2a0047,_0x5e8b3c;let _0x3a114f=this['_getBoardsUIConfig']();this['_configService'][_0x1930b3(0x1fe)](_0x2306cf,{..._0x3a114f,'toolbar':{..._0x3a114f[_0x1930b3(0x237)],'tools':{...(_0x2a0047=_0x3a114f[_0x1930b3(0x237)])==null?void 0x0:_0x2a0047[_0x1930b3(0x24d)],[_0x138a65[_0x1930b3(0x2a7)]]:Vr((_0x5e8b3c=_0x3a114f['toolbar'])==null||(_0x5e8b3c=_0x5e8b3c[_0x1930b3(0x24d)])==null?void 0x0:_0x5e8b3c[_0x138a65[_0x1930b3(0x2a7)]])}}});}[_0x4e28b3(0x1a8)](){const _0x5a3086=_0x4e28b3;var _0x5d6e0a;return(_0x5d6e0a=this[_0x5a3086(0x2f0)][_0x5a3086(0x313)](_0x2306cf))==null?{}:_0x5d6e0a;}};K(Br,'pluginName',_0x4e28b3(0x1d4)),K(Br,'packageName',Mt),K(Br,_0x4e28b3(0x325),Nt),K(Br,_0x4e28b3(0x2a1),_0x2934fe[_0x4e28b3(0x302)]),Br=J([_0x4f9b5b(_0x350152,_0x259006,_0x779761,_0x2baeb1,_0x4f31e9,_0x385ee3),q(0x1,_0x19f927(_0x1072f4)),q(0x2,_0x4d4aaf),q(0x3,_0x90772c)],Br);function Vr(_0x5a8082){const _0x18b3b6=_0x4e28b3;if(_0x5a8082===!0x1)return!0x1;if(typeof _0x5a8082==_0x18b3b6(0x381)){var _0x383a10;return{..._0x5a8082,'enabled':(_0x383a10=_0x5a8082[_0x18b3b6(0x348)])==null||_0x383a10};}return!0x0;}export{Br as UniverBoardsMindUIPlugin};
|
|
1
|
+
const _0x3f9745=_0x4e59;(function(_0x466286,_0x440372){const _0x2666b1=_0x4e59,_0x3ac2fe=_0x466286();while(!![]){try{const _0x375a8b=-parseInt(_0x2666b1(0x361))/0x1+-parseInt(_0x2666b1(0x215))/0x2*(parseInt(_0x2666b1(0x137))/0x3)+parseInt(_0x2666b1(0x2be))/0x4*(parseInt(_0x2666b1(0x23a))/0x5)+-parseInt(_0x2666b1(0x191))/0x6*(-parseInt(_0x2666b1(0x2ba))/0x7)+parseInt(_0x2666b1(0x3a2))/0x8*(parseInt(_0x2666b1(0x352))/0x9)+-parseInt(_0x2666b1(0x2ca))/0xa*(parseInt(_0x2666b1(0x212))/0xb)+parseInt(_0x2666b1(0x252))/0xc;if(_0x375a8b===_0x440372)break;else _0x3ac2fe['push'](_0x3ac2fe['shift']());}catch(_0x4a38a9){_0x3ac2fe['push'](_0x3ac2fe['shift']());}}}(_0x2e2b,0x4e0f5));import{BoardElementType as _0x10925f,BoardToolType as _0x3cc27d,IBoardElementService as _0x221653,IBoardMindMapAdapterService as _0x5b3775,UniverBoardsPlugin as _0x2a4c91,documentTextStyleToBoardShapeTextStyle as _0x14f44b,offsetBoardConnectorGeometry as _0x10f3f3,resolveBoardElementWorldBounds as _0x266721}from'@univerjs-pro/boards';import{AddMindMapChildOperation as _0x1e1375,AddMindMapSiblingOperation as _0x2fd84d,ChangeMindMapBranchLineTypeOperation as _0xbc0b93,ChangeMindMapLayoutOperation as _0x692b62,CopyMindMapNodeOperation as _0x273549,DeleteMindMapNodeOperation as _0x48a6ce,DetachMindMapNodeOperation as _0x4080b7,ExportMindMapOpmlOperation as _0x267fc4,IMindMapClipboardService as _0x2056f2,ImportMindMapOpmlOperation as _0x94ae9e,InsertBoardMindMapOperation as _0x34f3d2,LayoutMindMapOperation as _0x14174c,MIND_MAP_DEFAULT_LAYOUT as _0x3122e8,MIND_MAP_DEFAULT_NODE_SIZE as _0x41e078,MIND_MAP_DEFAULT_NODE_TEXT as _0x26492b,MIND_MAP_LAYOUT_SPACING_LIMITS as _0x125a67,PasteMindMapAsNewMindMapOperation as _0x21dc36,PasteMindMapNodeOperation as _0x107e65,PromoteMindMapNodeOperation as _0x25e131,ReparentMindMapNodeOperation as _0x3ae598,ToggleMindMapNodeCollapseOperation as _0x1866d6,TranslateMindMapOperation as _0x5e4c9d,UniverBoardsMindPlugin as _0x1ba8b2,UpdateMindMapIncomingConnectorOperation as _0x546f64,UpdateMindMapNodeOperation as _0x36c50b,compareMindMapOrderKey as _0x59630c,getMindMapConnectorMeta as _0x5b914f,getMindMapContainerMeta as _0x211be1,getMindMapDefaultChildOrderKey as _0x24bf32,getMindMapNodeMeta as _0x446d08,isMindMapPlainStructureKind as _0x1463d3,resolveMindMapBranchLineTypeForStructure as _0x6ebcdf,resolveMindMapLayoutPreview as _0x204dae,resolveMindMapNodeHostSize as _0x1458fb}from'@univerjs-pro/boards-mind';import{BOARDS_UI_PLUGIN_CONFIG_KEY as _0xffe17f,BOARD_RENDER_LAYER_INDEX as _0x527bdc,BOARD_RENDER_OBJECT_Z_INDEX as _0x211718,BOARD_SHORTCUT_BINDINGS as _0x1d9e54,BoardCanvasPopManagerService as _0x43d900,BoardInteractionSurfaceService as _0x5ece23,BoardShapeIntrinsicSizeService as _0x902e5b,BoardTextEditingService as _0x347ed5,IBoardElementStateService as _0x213d24,IBoardUIStateService as _0x25c205,UniverBoardsUIPlugin as _0x56b8f0,areBoardShapeTextValuesEquivalent as _0x568f53,getBoardElementRenderObjectKey as _0x16f58d,parseBoardElementRenderObjectKey as _0x503eb6,resolveBoardFloatingToolbarSelection as _0x5128cb,syncBoardElementRenderObject as _0x21ac57}from'@univerjs-pro/boards-ui';import{UniverLicensePlugin as _0x306390}from'@univerjs-pro/license';import{CommandType as _0x4d7358,DEFAULT_STYLES as _0x3c33f8,DependentOn as _0x507080,Disposable as _0x248e7a,DisposableCollection as _0x418d95,HorizontalAlign as _0x308ca0,ICommandService as _0xe6cdb9,IConfigService as _0x2abf0f,IContextService as _0x56e1d4,IUniverInstanceService as _0x23feb0,Inject as _0x23a0df,Injector as _0x31d5d4,LocaleService as _0x231606,Plugin as _0x515eb4,RxDisposable as _0xa1f691,UniverInstanceType as _0x1a4a16,VerticalAlign as _0x49ff9d,generateRandomId as _0x57f8a7,merge as _0x2c7fc6,toDisposable as _0x1203fe}from'@univerjs/core';import{BaseObject as _0x1e60f7,IRenderManagerService as _0x54cb1b,UniverRenderEnginePlugin as _0x3f4e04}from'@univerjs/engine-render';import{Subject as _0x567d3e,takeUntil as _0xba2edd}from'rxjs';import{SHAPE_FLOATING_TOOLBAR_DEFAULT_STROKE_COLOR as _0x42ac00,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_BACKGROUND_COLOR as _0xe3594f,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_COLOR as _0x6f7fc0,SHAPE_TEXT_EDITOR_QUOTE_COMMAND_ID as _0x31e404,ShapeFillButton as _0x3bfbb9,ShapeFloatingToolbarContent as _0x27f53a,ShapeFloatingToolbarDropdownTrigger as _0x4e7c80,ShapeFloatingToolbarFontSizeSelect as _0x4937de,ShapeFloatingToolbarIcon as _0x389bfd,ShapeFloatingToolbarMenuItem as _0x338770,ShapeFloatingToolbarMenuPanel as _0xe1cdee,ShapeStrokePanelButton as _0x53b0ae,ShapeStrokePanelContent as _0x2917c2,TextFillButton as _0x162144,TypographyPanelButton as _0x537d64,buildShapeTextDataUpdate as _0x50abd0}from'@univerjs-pro/shape-editor-ui';import{ShapeLineDashEnum as _0x33bb19,ShapeLineTypeEnum as _0x1c3074}from'@univerjs-pro/engine-shape';import{Button as _0x4d32f6,Dropdown as _0x2b414b,Input as _0xa22a14,InputNumber as _0x372151,Segmented as _0x32fdcd,Separator as _0x32dc4d,Textarea as _0x55509e,borderClassName as _0x414a47,clsx as _0x53b1eb}from'@univerjs/design';import{AlignBottomIcon as _0x393a34,AlignTextBothIcon as _0x4a0d34,AlignTopIcon as _0x1eb1a1,HorizontallyIcon as _0x1c57d4,LeftJustifyingIcon as _0x42866f,MoreHorizontalIcon as _0x658bf2,RightJustifyingIcon as _0x270a25,SearchIcon as _0x383621,ShapeLineIcon as _0x385dec,VerticalCenterIcon as _0x52971c}from'@univerjs/icons';import{ComponentManager as _0x3cc304,IDialogService as _0x593950,IShortcutService as _0x469a0d,KeyCode as _0x5acd83,MetaKeys as _0x47904c,UndoRedoGroupService as _0x4eb695,useDependency as _0x637cd2}from'@univerjs/ui';import{useState as _0x31c5ea}from'react';import{Fragment as _0x5f274b,jsx as _0x20d080,jsxs as _0x1df344}from'react/jsx-runtime';var Nt='@univerjs-pro/boards-mind-ui',Pt='1.0.0-beta.1';const Ft={};function It(_0x8871a3){'@babel/helpers - typeof';const _0x37b90f=_0x4e59;return It=typeof Symbol==_0x37b90f(0x23b)&&typeof Symbol[_0x37b90f(0x360)]==_0x37b90f(0x13b)?function(_0x10f118){return typeof _0x10f118;}:function(_0x1c6ad6){const _0x133295=_0x37b90f;return _0x1c6ad6&&typeof Symbol==_0x133295(0x23b)&&_0x1c6ad6[_0x133295(0x317)]===Symbol&&_0x1c6ad6!==Symbol[_0x133295(0x2cc)]?_0x133295(0x13b):typeof _0x1c6ad6;},It(_0x8871a3);}function Lt(_0xcbdc15,_0x5aa299){const _0x2c7b62=_0x4e59;if(It(_0xcbdc15)!=_0x2c7b62(0x375)||!_0xcbdc15)return _0xcbdc15;var _0x4640bf=_0xcbdc15[Symbol[_0x2c7b62(0x2b8)]];if(_0x4640bf!==void 0x0){var _0x2ce72a=_0x4640bf[_0x2c7b62(0x1aa)](_0xcbdc15,_0x5aa299||_0x2c7b62(0x20d));if(It(_0x2ce72a)!='object')return _0x2ce72a;throw TypeError(_0x2c7b62(0x345));}return(_0x5aa299===_0x2c7b62(0x18c)?String:Number)(_0xcbdc15);}function Rt(_0x5df7ca){const _0xfc192b=_0x4e59;var _0x1a74ca=Lt(_0x5df7ca,_0xfc192b(0x18c));return It(_0x1a74ca)==_0xfc192b(0x13b)?_0x1a74ca:_0x1a74ca+'';}function G(_0x35702e,_0x41a60d,_0x622a17){const _0x3be97e=_0x4e59;return(_0x41a60d=Rt(_0x41a60d))in _0x35702e?Object[_0x3be97e(0x232)](_0x35702e,_0x41a60d,{'value':_0x622a17,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x35702e[_0x41a60d]=_0x622a17,_0x35702e;}function K(_0x3cd8ed,_0x15b166){return function(_0x2b054a,_0x1989ab){_0x15b166(_0x2b054a,_0x1989ab,_0x3cd8ed);};}function q(_0xdb8cd1,_0x47b68b,_0x519460,_0x340786){const _0x437328=_0x4e59;var _0x3f2751=arguments[_0x437328(0x3cb)],_0x2cd8f0=_0x3f2751<0x3?_0x47b68b:_0x340786===null?_0x340786=Object[_0x437328(0x1f5)](_0x47b68b,_0x519460):_0x340786,_0x17bf23;if(typeof Reflect==_0x437328(0x375)&&typeof Reflect['decorate']=='function')_0x2cd8f0=Reflect['decorate'](_0xdb8cd1,_0x47b68b,_0x519460,_0x340786);else{for(var _0x23b1d4=_0xdb8cd1[_0x437328(0x3cb)]-0x1;_0x23b1d4>=0x0;_0x23b1d4--)(_0x17bf23=_0xdb8cd1[_0x23b1d4])&&(_0x2cd8f0=(_0x3f2751<0x3?_0x17bf23(_0x2cd8f0):_0x3f2751>0x3?_0x17bf23(_0x47b68b,_0x519460,_0x2cd8f0):_0x17bf23(_0x47b68b,_0x519460))||_0x2cd8f0);}return _0x3f2751>0x3&&_0x2cd8f0&&Object[_0x437328(0x232)](_0x47b68b,_0x519460,_0x2cd8f0),_0x2cd8f0;}let zt=class extends _0xa1f691{constructor(_0x33f4c7,_0x4dd84e,_0x3f5012){const _0x1af410=_0x4e59;super(),this['_renderContext']=_0x33f4c7,this[_0x1af410(0x2e7)]=_0x4dd84e,this[_0x1af410(0x3b0)]=_0x3f5012,G(this,_0x1af410(0x19f),new Map()),G(this,_0x1af410(0x1e3),new Map()),G(this,_0x1af410(0x21d),!0x1),this[_0x1af410(0x284)]();}['_init'](){const _0x9791a4=_0x4e59;this['_seedExistingNodeSizes'](),this['disposeWithMe'](_0x1203fe(this['_boardElementService']['elementAdd$'][_0x9791a4(0x24c)](_0xba2edd(this['dispose$']))[_0x9791a4(0x155)](_0x5d3923=>{_0x5d3923['forEach'](_0x437ea2=>{const _0x217025=_0x4e59;let _0x5c53f0=this[_0x217025(0x2e7)][_0x217025(0x1e1)](_0x437ea2[_0x217025(0x293)],_0x437ea2[_0x217025(0x15e)],_0x437ea2['elementId']);this[_0x217025(0x3cd)](_0x437ea2,_0x5c53f0);});}))),this['disposeWithMe'](_0x1203fe(this[_0x9791a4(0x2e7)][_0x9791a4(0x28a)][_0x9791a4(0x24c)](_0xba2edd(this[_0x9791a4(0x22d)]))[_0x9791a4(0x155)](_0x1974d6=>{const _0x17a008=_0x9791a4;_0x1974d6['forEach'](_0x48feaf=>this[_0x17a008(0x1a7)](_0x48feaf));})));}[_0x3f9745(0x2c3)](){const _0x1a3816=_0x3f9745;let _0x334488=this[_0x1a3816(0x184)][_0x1a3816(0x293)],_0x2c80ea=this[_0x1a3816(0x2e7)][_0x1a3816(0x24b)](_0x334488);Object[_0x1a3816(0x1cf)](_0x2c80ea)['forEach'](([_0x27eba8,_0x2ba413])=>{const _0x2dc300=_0x1a3816;Object['values'](_0x2ba413[_0x2dc300(0x386)])[_0x2dc300(0x185)](_0x47712d=>{this['_rememberNodeSize']({'unitId':_0x334488,'subUnitId':_0x27eba8,'elementId':_0x47712d['elementId']},_0x47712d);});});}[_0x3f9745(0x1a7)](_0x4b10af){const _0x1bcf8c=_0x3f9745;if(_0x4b10af['unitId']!==this[_0x1bcf8c(0x184)][_0x1bcf8c(0x293)])return;let _0x54c78c=this[_0x1bcf8c(0x2e7)][_0x1bcf8c(0x1e1)](_0x4b10af[_0x1bcf8c(0x293)],_0x4b10af[_0x1bcf8c(0x15e)],_0x4b10af[_0x1bcf8c(0x341)]),_0x39da55=_0x446d08(_0x54c78c==null?void 0x0:_0x54c78c[_0x1bcf8c(0x1ba)]),_0x28931e=this['_resolveNodeSize'](_0x54c78c);if(!_0x39da55||!_0x28931e){this[_0x1bcf8c(0x19f)][_0x1bcf8c(0x1f2)](this[_0x1bcf8c(0x26f)](_0x4b10af));return;}let _0x31cee8=this[_0x1bcf8c(0x26f)](_0x4b10af),_0xaa6d6a=this[_0x1bcf8c(0x19f)][_0x1bcf8c(0x3bb)](_0x31cee8);this['_nodeSizeByKey'][_0x1bcf8c(0x21e)](_0x31cee8,_0x28931e),!(_0xaa6d6a&&_0xaa6d6a['width']===_0x28931e['width']&&_0xaa6d6a['height']===_0x28931e[_0x1bcf8c(0x12b)])&&this[_0x1bcf8c(0x21b)]({'unitId':_0x4b10af['unitId'],'subUnitId':_0x4b10af[_0x1bcf8c(0x15e)],'scopeId':_0x39da55[_0x1bcf8c(0x305)]});}[_0x3f9745(0x3cd)](_0x3873ad,_0x31c517){const _0x1c2bdd=_0x3f9745;if(_0x3873ad[_0x1c2bdd(0x293)]!==this['_renderContext'][_0x1c2bdd(0x293)])return;let _0x3e3cf0=_0x446d08(_0x31c517==null?void 0x0:_0x31c517[_0x1c2bdd(0x1ba)]),_0x4d74e7=this[_0x1c2bdd(0x2a4)](_0x31c517);!_0x3e3cf0||!_0x4d74e7||this['_nodeSizeByKey'][_0x1c2bdd(0x21e)](this[_0x1c2bdd(0x26f)](_0x3873ad),_0x4d74e7);}[_0x3f9745(0x2a4)](_0x32a10c){const _0x5dfff6=_0x3f9745;let _0x1302ce=(_0x32a10c==null?void 0x0:_0x32a10c[_0x5dfff6(0x1e4)])??(_0x32a10c==null?void 0x0:_0x32a10c[_0x5dfff6(0x1ba)]['transform']),_0x41eb51=_0x1302ce==null?void 0x0:_0x1302ce[_0x5dfff6(0x276)],_0x30b5db=_0x1302ce==null?void 0x0:_0x1302ce['height'];return!Number[_0x5dfff6(0x271)](_0x41eb51)||!Number[_0x5dfff6(0x271)](_0x30b5db)?null:{'width':_0x41eb51,'height':_0x30b5db};}[_0x3f9745(0x21b)](_0x2ec271){const _0x15af95=_0x3f9745;this[_0x15af95(0x1e3)][_0x15af95(0x21e)](_0x2ec271[_0x15af95(0x293)]+':'+_0x2ec271['subUnitId']+':'+_0x2ec271[_0x15af95(0x327)],_0x2ec271),!this[_0x15af95(0x21d)]&&(this[_0x15af95(0x21d)]=!0x0,Promise[_0x15af95(0x376)]()['then'](()=>{const _0x26ccc7=_0x15af95;this[_0x26ccc7(0x21d)]=!0x1;let _0x3cd4a6=Array[_0x26ccc7(0x238)](this[_0x26ccc7(0x1e3)][_0x26ccc7(0x2c8)]());this[_0x26ccc7(0x1e3)][_0x26ccc7(0x38c)](),_0x3cd4a6[_0x26ccc7(0x185)](_0x285bd0=>{const _0x3123fd=_0x26ccc7;this[_0x3123fd(0x39b)](_0x285bd0);});}));}[_0x3f9745(0x39b)](_0xea8766){const _0x561abc=_0x3f9745;var _0x5657f7;let _0x221827=this[_0x561abc(0x2e7)][_0x561abc(0x1e1)](_0xea8766[_0x561abc(0x293)],_0xea8766[_0x561abc(0x15e)],_0xea8766[_0x561abc(0x327)]),_0x53ed68=(_0x5657f7=_0x211be1(_0x221827==null?void 0x0:_0x221827['element']))==null?void 0x0:_0x5657f7[_0x561abc(0x13c)];this[_0x561abc(0x3b0)][_0x561abc(0x36f)](_0x14174c['id'],{..._0xea8766,'skipUndo':!0x0,..._0x53ed68?{'anchorNodeId':_0x53ed68}:null});}[_0x3f9745(0x26f)](_0x57aae5){const _0x40bcd5=_0x3f9745;return _0x57aae5[_0x40bcd5(0x293)]+':'+_0x57aae5[_0x40bcd5(0x15e)]+':'+_0x57aae5[_0x40bcd5(0x341)];}};zt=q([K(0x1,_0x23a0df(_0x221653)),K(0x2,_0xe6cdb9)],zt);const J={'primaryColor':_0x42ac00,'surfaceColor':_0xe3594f,'textColor':_0x6f7fc0,'fontFamily':_0x3c33f8['ff']};function Bt(_0x5b8ca5,_0x3d5370){const _0x233445=_0x3f9745;let _0x3ca57d=Math[_0x233445(0x37b)](0x1,Math['max'](0x0,Number[_0x233445(0x271)](_0x3d5370)?_0x3d5370:0x1)),_0x38a91b=_0x5b8ca5[_0x233445(0x200)](),_0x1d09b4=/^#([0-9a-fA-F]{6})$/['exec'](_0x38a91b);if(!_0x1d09b4)return _0x5b8ca5;let _0x501805=_0x1d09b4[0x1];return _0x233445(0x2dc)+Number[_0x233445(0x14c)](_0x501805[_0x233445(0x1a9)](0x0,0x2),0x10)+',\x20'+Number[_0x233445(0x14c)](_0x501805[_0x233445(0x1a9)](0x2,0x4),0x10)+',\x20'+Number[_0x233445(0x14c)](_0x501805['slice'](0x4,0x6),0x10)+',\x20'+_0x3ca57d+')';}const Y={'primaryColor':J['primaryColor'],'ghostFillColor':Bt(J[_0x3f9745(0x1cc)],0.72),'ghostTextColor':Bt(J[_0x3f9745(0x27c)],0.62),'rootTextColor':Bt(J['surfaceColor'],0.86),'sourceHighlightFillColor':Bt(J[_0x3f9745(0x147)],0.12),'sourceHighlightStrokeColor':Bt(J[_0x3f9745(0x147)],0.9),'objectAlpha':0.72,'dragObjectAlpha':0.78,'connectorAlpha':0.64,'lineWidthScreen':0x2,'fallbackNodeWidth':_0x41e078[_0x3f9745(0x2a8)],'fallbackNodeHeight':_0x41e078[_0x3f9745(0x2e0)],'branchGap':_0x3122e8['branchGap'],'sourceHaloScreen':0x4,'ghostRadius':0x8,'rootRadius':0xa,'fontFamily':J[_0x3f9745(0x36d)],'ghostFontWeight':0x1f4,'rootFontWeight':0x258,'rootFontSize':0x12,'textPaddingScreen':0xc,'dirtyPaddingScreen':0x18,'sourceDashScreen':[0x6,0x4]};function X(_0x36e496,_0x4df910,_0x202733,_0x4703f0,_0x222837,_0x2f9ce2){const _0x3f84c7=_0x3f9745;let _0x464676=Math[_0x3f84c7(0x37b)](_0x2f9ce2,_0x4703f0/0x2,_0x222837/0x2);_0x36e496[_0x3f84c7(0x3be)](),_0x36e496[_0x3f84c7(0x17a)](_0x4df910+_0x464676,_0x202733),_0x36e496[_0x3f84c7(0x1b8)](_0x4df910+_0x4703f0-_0x464676,_0x202733),_0x36e496['quadraticCurveTo'](_0x4df910+_0x4703f0,_0x202733,_0x4df910+_0x4703f0,_0x202733+_0x464676),_0x36e496['lineTo'](_0x4df910+_0x4703f0,_0x202733+_0x222837-_0x464676),_0x36e496[_0x3f84c7(0x2f2)](_0x4df910+_0x4703f0,_0x202733+_0x222837,_0x4df910+_0x4703f0-_0x464676,_0x202733+_0x222837),_0x36e496[_0x3f84c7(0x1b8)](_0x4df910+_0x464676,_0x202733+_0x222837),_0x36e496[_0x3f84c7(0x2f2)](_0x4df910,_0x202733+_0x222837,_0x4df910,_0x202733+_0x222837-_0x464676),_0x36e496[_0x3f84c7(0x1b8)](_0x4df910,_0x202733+_0x464676),_0x36e496[_0x3f84c7(0x2f2)](_0x4df910,_0x202733,_0x4df910+_0x464676,_0x202733),_0x36e496['closePath']();}function Vt(_0x2fc0eb,_0x5e88b0,_0x26e5ae){const _0x49fc7f=_0x3f9745;return _0x2fc0eb+'\x20'+_0x5e88b0/_0x26e5ae+_0x49fc7f(0x1b9)+Y['fontFamily'];}const Ht=_0x3f9745(0x36e),Ut=_0x527bdc[_0x3f9745(0x159)];function Z(_0x20d57d,_0x2a19f8){const _0x54617d=_0x3f9745;return Number[_0x54617d(0x271)](_0x20d57d)?_0x20d57d:_0x2a19f8;}function Wt(){const _0x3d580d=_0x3f9745;return Y[_0x3d580d(0x288)];}function Gt(){const _0x328570=_0x3f9745;return Y[_0x328570(0x33e)];}function Kt(_0x4bf0af){const _0x3dcdf6=_0x3f9745;return _0x4bf0af===0x1?_0x3dcdf6(0x1cd):_0x4bf0af===0x3?_0x3dcdf6(0x2f9):_0x3dcdf6(0x18b);}function qt(_0x4793b7,_0x47837f,_0x54b830,_0x6585ad){return _0x54b830===0x1?_0x4793b7+_0x6585ad:_0x54b830===0x3?_0x4793b7+_0x47837f-_0x6585ad:_0x4793b7+_0x47837f/0x2;}var Jt=class extends _0x1e60f7{constructor(_0x5f1b45=Ht,_0x1c1ee3){const _0x245e2d=_0x3f9745;super(_0x5f1b45),G(this,_0x245e2d(0x196),{'ghostBounds':null,'parentBounds':null,'side':'right','zoomRatio':0x1}),this[_0x245e2d(0x3dc)]=!0x1,this[_0x245e2d(0x25c)]=_0x211718[_0x245e2d(0x2c9)],this['updateState'](_0x1c1ee3);}['updateState'](_0xb10d4e){const _0x2f1001=_0x3f9745;if(this[_0x2f1001(0x196)]={...this[_0x2f1001(0x196)],..._0xb10d4e},this['_state'][_0x2f1001(0x274)]){let _0x10de06=this[_0x2f1001(0x3d8)]();this['transformByState'](_0x10de06),this[_0x2f1001(0x20f)]();}else this[_0x2f1001(0x189)]();let _0x59199a=this;typeof _0x59199a[_0x2f1001(0x2ce)]=='function'?_0x59199a[_0x2f1001(0x2ce)](!0x0):this['makeDirty'](!0x0);}['isHit'](_0x5212b7){return!0x1;}['render'](_0xd29b88,_0x1826e0){const _0x9c7b63=_0x3f9745;let _0x3d8fad=this[_0x9c7b63(0x196)][_0x9c7b63(0x274)];if(!_0x3d8fad||!this['visible'])return this[_0x9c7b63(0x257)](!0x1),this;let _0x7bd1e4=Number[_0x9c7b63(0x271)](this['_state'][_0x9c7b63(0x2c7)])&&(this[_0x9c7b63(0x196)][_0x9c7b63(0x2c7)]??0x0)>0x0?this['_state'][_0x9c7b63(0x2c7)]:0x1,_0x2c1ef8=Z(_0x3d8fad['left'],0x0),_0x30d7cd=Z(_0x3d8fad[_0x9c7b63(0x136)],0x0),_0x11368e=Math[_0x9c7b63(0x312)](0x1,Z(_0x3d8fad[_0x9c7b63(0x276)],Wt())),_0x43941d=Math[_0x9c7b63(0x312)](0x1,Z(_0x3d8fad[_0x9c7b63(0x12b)],Gt()));if(_0xd29b88[_0x9c7b63(0x3c6)](),_0xd29b88[_0x9c7b63(0x15c)]=Y[_0x9c7b63(0x1b2)],_0xd29b88[_0x9c7b63(0x2a2)]=Y[_0x9c7b63(0x323)]/_0x7bd1e4,_0xd29b88[_0x9c7b63(0x176)]=Y[_0x9c7b63(0x147)],_0xd29b88[_0x9c7b63(0x23c)]=Y[_0x9c7b63(0x3fa)],this['_drawConnectorPreview'](_0xd29b88,{'left':_0x2c1ef8,'top':_0x30d7cd,'width':_0x11368e,'height':_0x43941d},_0x7bd1e4),this['_drawSourceHighlight'](_0xd29b88,_0x7bd1e4),this[_0x9c7b63(0x196)]['renderGhostNode']===!0x1)return _0xd29b88[_0x9c7b63(0x1ed)](),this[_0x9c7b63(0x257)](!0x1),this;X(_0xd29b88,_0x2c1ef8,_0x30d7cd,_0x11368e,_0x43941d,Y[_0x9c7b63(0x294)]),_0xd29b88[_0x9c7b63(0x173)](),_0xd29b88[_0x9c7b63(0x1da)]();let _0x210e06=this['_state']['textStyle'],_0x310f47=Number[_0x9c7b63(0x271)](_0x210e06==null?void 0x0:_0x210e06[_0x9c7b63(0x371)])&&((_0x210e06==null?void 0x0:_0x210e06[_0x9c7b63(0x371)])??0x0)>0x0?_0x210e06[_0x9c7b63(0x371)]:0x10,_0x348a14=Y[_0x9c7b63(0x193)]/_0x7bd1e4;return _0xd29b88[_0x9c7b63(0x23c)]=(_0x210e06==null?void 0x0:_0x210e06[_0x9c7b63(0x17b)])??Y[_0x9c7b63(0x1fe)],_0xd29b88[_0x9c7b63(0x218)]=Vt(Y['ghostFontWeight'],_0x310f47,_0x7bd1e4),_0xd29b88[_0x9c7b63(0x168)]=Kt(_0x210e06==null?void 0x0:_0x210e06['horizontalAlign']),_0xd29b88[_0x9c7b63(0x36b)]='middle',_0xd29b88[_0x9c7b63(0x13a)]((_0x210e06==null?void 0x0:_0x210e06['text'])||_0x26492b,qt(_0x2c1ef8,_0x11368e,_0x210e06==null?void 0x0:_0x210e06[_0x9c7b63(0x369)],_0x348a14),_0x30d7cd+_0x43941d/0x2,Math[_0x9c7b63(0x312)](0x1,_0x11368e-_0x348a14*0x2)),_0xd29b88[_0x9c7b63(0x1ed)](),this[_0x9c7b63(0x257)](!0x1),this;}[_0x3f9745(0x3d8)](){const _0x1a81f2=_0x3f9745;let _0x266197=this[_0x1a81f2(0x196)][_0x1a81f2(0x274)],_0x3d7b3a=Number[_0x1a81f2(0x271)](this[_0x1a81f2(0x196)][_0x1a81f2(0x2c7)])&&(this[_0x1a81f2(0x196)][_0x1a81f2(0x2c7)]??0x0)>0x0?this[_0x1a81f2(0x196)]['zoomRatio']:0x1,_0xe58580=Y[_0x1a81f2(0x3cc)]/_0x3d7b3a;if(!_0x266197)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x59f499=Z(_0x266197['left'],0x0),_0x2e24f7=Z(_0x266197[_0x1a81f2(0x136)],0x0),_0x58d4d3=Math[_0x1a81f2(0x312)](0x1,Z(_0x266197[_0x1a81f2(0x276)],Wt())),_0x3dba71=Math[_0x1a81f2(0x312)](0x1,Z(_0x266197[_0x1a81f2(0x12b)],Gt())),_0x13e1dd=this[_0x1a81f2(0x196)][_0x1a81f2(0x1ab)],_0x4b6ec6=this[_0x1a81f2(0x196)]['parentBounds'],_0x23a633=Z(_0x13e1dd==null?void 0x0:_0x13e1dd[_0x1a81f2(0x1cd)],_0x59f499),_0x45a355=Z(_0x13e1dd==null?void 0x0:_0x13e1dd['top'],_0x2e24f7),_0xc24604=Math['max'](0x1,Z(_0x13e1dd==null?void 0x0:_0x13e1dd[_0x1a81f2(0x276)],_0x58d4d3)),_0x1c2244=Math[_0x1a81f2(0x312)](0x1,Z(_0x13e1dd==null?void 0x0:_0x13e1dd[_0x1a81f2(0x12b)],_0x3dba71));if(!_0x4b6ec6){let _0x5622f8=Math[_0x1a81f2(0x37b)](_0x59f499,_0x23a633)-_0xe58580,_0x14f284=Math[_0x1a81f2(0x37b)](_0x2e24f7,_0x45a355)-_0xe58580,_0x29b80c=Math['max'](_0x59f499+_0x58d4d3,_0x23a633+_0xc24604)+_0xe58580,_0x3cbeb6=Math['max'](_0x2e24f7+_0x3dba71,_0x45a355+_0x1c2244)+_0xe58580;return{'left':_0x5622f8,'top':_0x14f284,'width':_0x29b80c-_0x5622f8,'height':_0x3cbeb6-_0x14f284};}let _0x60093=Z(_0x4b6ec6[_0x1a81f2(0x1cd)],_0x59f499),_0x52a0f7=Z(_0x4b6ec6[_0x1a81f2(0x136)],_0x2e24f7),_0x15e72b=Math[_0x1a81f2(0x312)](0x1,Z(_0x4b6ec6[_0x1a81f2(0x276)],Wt())),_0x4d3185=Math[_0x1a81f2(0x312)](0x1,Z(_0x4b6ec6[_0x1a81f2(0x12b)],Gt())),_0x4d0ee5=Math[_0x1a81f2(0x37b)](_0x59f499,_0x60093,_0x23a633)-_0xe58580,_0xd90fe4=Math[_0x1a81f2(0x37b)](_0x2e24f7,_0x52a0f7,_0x45a355)-_0xe58580,_0x1fcc7d=Math[_0x1a81f2(0x312)](_0x59f499+_0x58d4d3,_0x60093+_0x15e72b,_0x23a633+_0xc24604)+_0xe58580,_0x3c0b38=Math[_0x1a81f2(0x312)](_0x2e24f7+_0x3dba71,_0x52a0f7+_0x4d3185,_0x45a355+_0x1c2244)+_0xe58580;return{'left':_0x4d0ee5,'top':_0xd90fe4,'width':_0x1fcc7d-_0x4d0ee5,'height':_0x3c0b38-_0xd90fe4};}[_0x3f9745(0x1ef)](_0x33d134,_0x426645){const _0x57fa8c=_0x3f9745;var _0x1bfe5b;let _0x243c6=this['_state']['sourceBounds'];if(!_0x243c6)return;let _0x3cb160=Y[_0x57fa8c(0x2d6)]/_0x426645,_0x5ce8e9=Z(_0x243c6['left'],0x0)-_0x3cb160,_0x407e83=Z(_0x243c6[_0x57fa8c(0x136)],0x0)-_0x3cb160,_0x557e75=Math['max'](0x1,Z(_0x243c6['width'],Wt()))+_0x3cb160*0x2,_0x7cc556=Math['max'](0x1,Z(_0x243c6[_0x57fa8c(0x12b)],Gt()))+_0x3cb160*0x2;_0x33d134['save'](),_0x33d134[_0x57fa8c(0x15c)]=0x1,_0x33d134[_0x57fa8c(0x2a2)]=Y[_0x57fa8c(0x323)]/_0x426645,_0x33d134[_0x57fa8c(0x176)]=Y['sourceHighlightStrokeColor'],_0x33d134[_0x57fa8c(0x23c)]=Y[_0x57fa8c(0x2b3)],(_0x1bfe5b=_0x33d134[_0x57fa8c(0x262)])==null||_0x1bfe5b[_0x57fa8c(0x1aa)](_0x33d134,Y[_0x57fa8c(0x3e1)][_0x57fa8c(0x3ea)](_0x53fa3f=>_0x53fa3f/_0x426645)),X(_0x33d134,_0x5ce8e9,_0x407e83,_0x557e75,_0x7cc556,Y[_0x57fa8c(0x3ae)]),_0x33d134[_0x57fa8c(0x173)](),_0x33d134['stroke'](),_0x33d134[_0x57fa8c(0x1ed)]();}[_0x3f9745(0x17f)](_0x2af5ef,_0x43b6ae,_0x5695ca){const _0x1d52e8=_0x3f9745;let _0x7e133b=this[_0x1d52e8(0x196)][_0x1d52e8(0x1a5)];if(!_0x7e133b)return;let _0x4e1010=Z(_0x7e133b[_0x1d52e8(0x1cd)],0x0),_0x8c704d=Z(_0x7e133b[_0x1d52e8(0x136)],0x0),_0x3e44df=Math['max'](0x1,Z(_0x7e133b[_0x1d52e8(0x276)],Wt())),_0x25faed=Math[_0x1d52e8(0x312)](0x1,Z(_0x7e133b['height'],Gt())),_0x4a5374=Y['branchGap'],_0x1fa103=this[_0x1d52e8(0x196)][_0x1d52e8(0x24a)]??_0x1d52e8(0x2f9);if(_0x2af5ef[_0x1d52e8(0x3c6)](),_0x2af5ef[_0x1d52e8(0x15c)]=Y[_0x1d52e8(0x1be)],_0x2af5ef[_0x1d52e8(0x176)]=Y['primaryColor'],_0x2af5ef[_0x1d52e8(0x2a2)]=Y[_0x1d52e8(0x323)]/_0x5695ca,_0x2af5ef[_0x1d52e8(0x27f)]=_0x1d52e8(0x141),_0x2af5ef[_0x1d52e8(0x1dc)]=_0x1d52e8(0x141),_0x2af5ef[_0x1d52e8(0x3be)](),_0x1fa103===_0x1d52e8(0x136)||_0x1fa103===_0x1d52e8(0x255)){let _0x4d3f88=_0x4e1010+_0x3e44df/0x2,_0x504597=_0x43b6ae['left']+_0x43b6ae[_0x1d52e8(0x276)]/0x2,_0xf28aed=_0x1fa103==='bottom'?_0x8c704d+_0x25faed:_0x8c704d,_0x127eec=_0x1fa103==='bottom'?_0x43b6ae[_0x1d52e8(0x136)]:_0x43b6ae['top']+_0x43b6ae[_0x1d52e8(0x12b)],_0x5c2cde=_0x1fa103===_0x1d52e8(0x255)?Math[_0x1d52e8(0x37b)](_0xf28aed+_0x4a5374,(_0xf28aed+_0x127eec)/0x2):Math[_0x1d52e8(0x312)](_0xf28aed-_0x4a5374,(_0xf28aed+_0x127eec)/0x2);_0x2af5ef[_0x1d52e8(0x17a)](_0x4d3f88,_0xf28aed),_0x2af5ef[_0x1d52e8(0x1b8)](_0x4d3f88,_0x5c2cde),_0x2af5ef[_0x1d52e8(0x1b8)](_0x504597,_0x5c2cde),_0x2af5ef[_0x1d52e8(0x1b8)](_0x504597,_0x127eec);}else{let _0x4e7b78=_0x8c704d+_0x25faed/0x2,_0x45156d=_0x43b6ae[_0x1d52e8(0x136)]+_0x43b6ae[_0x1d52e8(0x12b)]/0x2,_0x4e4c10=_0x1fa103===_0x1d52e8(0x2f9)?_0x4e1010+_0x3e44df:_0x4e1010,_0x256cf0=_0x1fa103===_0x1d52e8(0x2f9)?_0x43b6ae['left']:_0x43b6ae[_0x1d52e8(0x1cd)]+_0x43b6ae[_0x1d52e8(0x276)],_0x11c773=_0x1fa103===_0x1d52e8(0x2f9)?Math[_0x1d52e8(0x37b)](_0x4e4c10+_0x4a5374,(_0x4e4c10+_0x256cf0)/0x2):Math[_0x1d52e8(0x312)](_0x4e4c10-_0x4a5374,(_0x4e4c10+_0x256cf0)/0x2);_0x2af5ef[_0x1d52e8(0x17a)](_0x4e4c10,_0x4e7b78),_0x2af5ef[_0x1d52e8(0x1b8)](_0x11c773,_0x4e7b78),_0x2af5ef[_0x1d52e8(0x1b8)](_0x11c773,_0x45156d),_0x2af5ef[_0x1d52e8(0x1b8)](_0x256cf0,_0x45156d);}_0x2af5ef[_0x1d52e8(0x1da)](),_0x2af5ef['restore']();}};function Yt(_0x6222b6,_0x32faea){const _0x13e84e=_0x3f9745;return(_0x32faea==null?void 0x0:_0x32faea[_0x6222b6[_0x13e84e(0x341)]])??_0x6222b6[_0x13e84e(0x1ba)][_0x13e84e(0x1e4)];}function Xt(_0x394796,_0x1bb862){const _0x2377bb=_0x3f9745;let _0x8bf709=Yt(_0x394796,_0x1bb862);return{'x':(_0x8bf709[_0x2377bb(0x1cd)]??0x0)+(_0x8bf709['width']??0x0)/0x2,'y':(_0x8bf709[_0x2377bb(0x136)]??0x0)+(_0x8bf709['height']??0x0)/0x2};}function Zt(_0x260756,_0x335844){const _0x3fbdc5=_0x3f9745;return Math[_0x3fbdc5(0x172)](_0x260756['x']-_0x335844['x'],_0x260756['y']-_0x335844['y']);}function Qt(_0x292b7f,_0xf53e89){const _0x3089de=_0x3f9745;let _0x181e75=_0x292b7f[_0x3089de(0x1cd)]??0x0,_0x5354c1=_0x292b7f['top']??0x0,_0x19f4d4=_0x181e75+(_0x292b7f['width']??0x0),_0x597d64=_0x5354c1+(_0x292b7f[_0x3089de(0x12b)]??0x0),_0x1937f9=_0xf53e89[_0x3089de(0x1cd)]??0x0,_0x4fe793=_0xf53e89['top']??0x0,_0x36ce3c=_0x1937f9+(_0xf53e89[_0x3089de(0x276)]??0x0),_0x301df7=_0x4fe793+(_0xf53e89[_0x3089de(0x12b)]??0x0),_0x58187c=Math[_0x3089de(0x312)](_0x1937f9-_0x19f4d4,_0x181e75-_0x36ce3c,0x0),_0x8831d5=Math[_0x3089de(0x312)](_0x4fe793-_0x597d64,_0x5354c1-_0x301df7,0x0);return Math[_0x3089de(0x172)](_0x58187c,_0x8831d5);}function $t(_0x33ae23,_0x525bb7,_0x3186ba){const _0x3421a0=_0x3f9745;var _0x1abb33;let _0x493c6b=_0x446d08((_0x1abb33=_0x33ae23[_0x525bb7])==null?void 0x0:_0x1abb33[_0x3421a0(0x1ba)]);for(;_0x493c6b!=null&&_0x493c6b['parentNodeId'];){var _0x53b8e7;if(_0x493c6b[_0x3421a0(0x167)]===_0x3186ba)return!0x0;_0x493c6b=_0x446d08((_0x53b8e7=_0x33ae23[_0x493c6b[_0x3421a0(0x167)]])==null?void 0x0:_0x53b8e7[_0x3421a0(0x1ba)]);}return!0x1;}function en(_0x216edc,_0x96ccbb,_0x2cfe50){const _0x2d0d79=_0x3f9745;let _0x1c3c9b=Yt(_0x216edc,_0x2cfe50),_0x5a0b3a=_0x1c3c9b[_0x2d0d79(0x136)]??0x0,_0x2f05bd=_0x1c3c9b['height']??0x0;return _0x2f05bd<=0x0?null:_0x96ccbb['y']<=_0x5a0b3a+_0x2f05bd/0x3?_0x2d0d79(0x25b):_0x96ccbb['y']>=_0x5a0b3a+_0x2f05bd*0x2/0x3?_0x2d0d79(0x24f):null;}function tn(_0x5276e2,_0x267d32){const _0x533f20=_0x3f9745;let _0x56c43e=_0x267d32==null?void 0x0:_0x267d32[_0x5276e2];return Number[_0x533f20(0x271)](_0x56c43e==null?void 0x0:_0x56c43e['left'])&&Number['isFinite'](_0x56c43e==null?void 0x0:_0x56c43e[_0x533f20(0x136)])?{'kind':_0x533f20(0x221),'left':_0x56c43e[_0x533f20(0x1cd)],'top':_0x56c43e[_0x533f20(0x136)]}:{'kind':'detach'};}function nn(_0x288b0f,_0x240e48,_0x38c557){const _0x520a94=_0x3f9745;let _0x3e14fb=_0x288b0f[_0x240e48],_0x4f742c=_0x446d08(_0x3e14fb==null?void 0x0:_0x3e14fb['element']);if(!_0x3e14fb||!_0x4f742c||!_0x4f742c[_0x520a94(0x167)]&&!(_0x38c557!=null&&_0x38c557['allowRootReparent']))return{'kind':_0x520a94(0x3f1)};let _0x91c0a9=_0x38c557==null?void 0x0:_0x38c557[_0x520a94(0x364)],_0x11c383=Yt(_0x3e14fb,_0x91c0a9),_0x2aac9b=Xt(_0x3e14fb,_0x91c0a9),_0x4ea7e6=Object[_0x520a94(0x2c8)](_0x288b0f)[_0x520a94(0x3ea)](_0x1cea99=>{const _0x17f548=_0x520a94;let _0x2a694a=_0x446d08(_0x1cea99[_0x17f548(0x1ba)]);return!_0x2a694a||_0x1cea99['elementId']===_0x240e48||_0x1cea99['elementId']===_0x4f742c[_0x17f548(0x167)]||_0x38c557!=null&&_0x38c557[_0x17f548(0x2e2)]&&!_0x4f742c['parentNodeId']&&_0x2a694a['structureScopeId']===_0x4f742c['structureScopeId']||$t(_0x288b0f,_0x1cea99['elementId'],_0x240e48)?null:{'item':_0x1cea99,'snapDistance':Qt(_0x11c383,Yt(_0x1cea99,_0x91c0a9)),'center':Xt(_0x1cea99,_0x91c0a9)};})[_0x520a94(0x183)](_0x477dc3=>!!_0x477dc3)[_0x520a94(0x1c1)]((_0x19a337,_0xce0045)=>_0x19a337[_0x520a94(0x289)]-_0xce0045[_0x520a94(0x289)]||Zt(_0x2aac9b,_0x19a337[_0x520a94(0x18b)])-Zt(_0x2aac9b,_0xce0045[_0x520a94(0x18b)]))[0x0];if(_0x4ea7e6&&_0x4ea7e6[_0x520a94(0x289)]<=0x64){let _0x4296d9=_0x446d08(_0x4ea7e6['item'][_0x520a94(0x1ba)]),_0x427067=_0x4296d9!=null&&_0x4296d9[_0x520a94(0x167)]?en(_0x4ea7e6[_0x520a94(0x399)],_0x2aac9b,_0x91c0a9):null;return _0x4296d9!=null&&_0x4296d9[_0x520a94(0x167)]&&_0x427067?{'kind':_0x520a94(0x13d),'newParentNodeId':_0x4296d9['parentNodeId'],'side':_0x4296d9[_0x520a94(0x24a)]??'right','referenceNodeId':_0x4ea7e6[_0x520a94(0x399)][_0x520a94(0x341)],'placement':_0x427067}:{'kind':_0x520a94(0x13d),'newParentNodeId':_0x4ea7e6['item'][_0x520a94(0x341)],'side':_0x2aac9b['x']<_0x4ea7e6[_0x520a94(0x18b)]['x']?'left':_0x520a94(0x2f9)};}if(_0x38c557!=null&&_0x38c557[_0x520a94(0x357)])return tn(_0x240e48,_0x91c0a9);if(!_0x4f742c[_0x520a94(0x167)])return{'kind':_0x520a94(0x3f1)};let _0x2ef4fa=_0x288b0f[_0x4f742c[_0x520a94(0x167)]];return _0x2ef4fa&&Zt(_0x2aac9b,Xt(_0x2ef4fa,_0x91c0a9))>0x230?tn(_0x240e48,_0x91c0a9):{'kind':_0x520a94(0x3f1)};}function rn(_0x2f8df6,_0x11a18c){const _0x3c9c37=_0x3f9745;var _0x4a9aef,_0x5a1bea;return _0x2f8df6[_0x3c9c37(0x341)]===_0x11a18c||((_0x4a9aef=_0x446d08(_0x2f8df6[_0x3c9c37(0x1ba)]))==null?void 0x0:_0x4a9aef[_0x3c9c37(0x305)])===_0x11a18c||((_0x5a1bea=_0x5b914f(_0x2f8df6[_0x3c9c37(0x1ba)]))==null?void 0x0:_0x5a1bea[_0x3c9c37(0x305)])===_0x11a18c;}function an(_0x1999f0,_0x13f887,_0x20cb6c,_0x3f360c){const _0x210414=_0x3f9745;let _0x58aa8e=_0x1999f0[_0x13f887];if(!_0x58aa8e)return _0x1999f0;let _0x5548c1=_0x58aa8e[_0x210414(0x1e4)]??_0x58aa8e[_0x210414(0x1ba)]['transform']??{};return{..._0x1999f0,[_0x13f887]:{..._0x58aa8e,'transform':{..._0x5548c1,'left':(_0x5548c1[_0x210414(0x1cd)]??0x0)+_0x20cb6c,'top':(_0x5548c1[_0x210414(0x136)]??0x0)+_0x3f360c},'element':{..._0x58aa8e[_0x210414(0x1ba)],'transform':{..._0x58aa8e[_0x210414(0x1ba)][_0x210414(0x1e4)],'left':(_0x58aa8e[_0x210414(0x1ba)][_0x210414(0x1e4)][_0x210414(0x1cd)]??0x0)+_0x20cb6c,'top':(_0x58aa8e[_0x210414(0x1ba)]['transform'][_0x210414(0x136)]??0x0)+_0x3f360c}}}};}function on(_0x4c923f){const _0x3e40ef=_0x3f9745;if(!Number[_0x3e40ef(0x271)](_0x4c923f[_0x3e40ef(0x14d)][_0x3e40ef(0x1cd)])||!Number[_0x3e40ef(0x271)](_0x4c923f[_0x3e40ef(0x14d)]['top'])||!Number[_0x3e40ef(0x271)](_0x4c923f['rootStartBounds'][_0x3e40ef(0x1cd)])||!Number[_0x3e40ef(0x271)](_0x4c923f[_0x3e40ef(0x25d)][_0x3e40ef(0x136)]))return null;let _0x43cb14=_0x4c923f[_0x3e40ef(0x14d)][_0x3e40ef(0x1cd)]-_0x4c923f[_0x3e40ef(0x25d)][_0x3e40ef(0x1cd)],_0x5040e8=_0x4c923f[_0x3e40ef(0x14d)]['top']-_0x4c923f[_0x3e40ef(0x25d)][_0x3e40ef(0x136)],_0x4b7bf7=an(_0x4c923f[_0x3e40ef(0x1ee)],_0x4c923f[_0x3e40ef(0x327)],_0x43cb14,_0x5040e8),_0x1f0ee6=[];return Object[_0x3e40ef(0x2c8)](_0x4b7bf7)['forEach'](_0x25cf8e=>{const _0x574151=_0x3e40ef;if(_0x25cf8e['elementId']===_0x4c923f['rootNodeId']||_0x25cf8e[_0x574151(0x341)]===_0x4c923f['scopeId']||!rn(_0x25cf8e,_0x4c923f[_0x574151(0x327)]))return;if(_0x574151(0x336)in _0x25cf8e[_0x574151(0x1ba)]){var _0x3c79ac;let _0x39951e=(_0x3c79ac=_0x4c923f[_0x574151(0x1ee)][_0x25cf8e[_0x574151(0x341)]])==null?void 0x0:_0x3c79ac['element'];_0x39951e&&_0x574151(0x336)in _0x39951e&&_0x1f0ee6['push']({'kind':_0x574151(0x31d),'elementId':_0x25cf8e[_0x574151(0x341)],'element':_0x10f3f3(_0x39951e,{'x':_0x43cb14,'y':_0x5040e8})});return;}let _0x187fa8=_0x266721(_0x4b7bf7,_0x25cf8e[_0x574151(0x341)]);_0x187fa8&&_0x1f0ee6['push']({'kind':_0x574151(0x1ae),'elementId':_0x25cf8e[_0x574151(0x341)],'bounds':_0x187fa8});}),{'deltaX':_0x43cb14,'deltaY':_0x5040e8,'elementData':_0x4b7bf7,'items':_0x1f0ee6};}let sn=class extends _0xa1f691{constructor(_0xa287ea,_0x98a151,_0x2f8279,_0x1bfb34,_0x60d10b,_0x5427b1){const _0x259376=_0x3f9745;super(),this[_0x259376(0x184)]=_0xa287ea,this[_0x259376(0x2e7)]=_0x98a151,this['_elementStateService']=_0x2f8279,this['_commandService']=_0x1bfb34,this['_uiStateService']=_0x60d10b,this[_0x259376(0x163)]=_0x5427b1,G(this,_0x259376(0x282),null),G(this,_0x259376(0x1b7),null),G(this,'_dragPreviewObject',null),G(this,_0x259376(0x30f),!0x1),G(this,_0x259376(0x237),null),G(this,_0x259376(0x380),null),G(this,_0x259376(0x37f),!0x1),G(this,'_activePointerDragDisposables',null),G(this,_0x259376(0x2eb),!0x1),this[_0x259376(0x284)]();}[_0x3f9745(0x284)](){const _0x5064df=_0x3f9745;var _0x5ea208,_0x14de90,_0x90f87b,_0x26ceca,_0x59188e;let _0x3e0a69=this['_renderContext']['scene']['getTransformerByCreate']();this[_0x5064df(0x241)](_0x1203fe(_0x3e0a69[_0x5064df(0x3bf)][_0x5064df(0x24c)](_0xba2edd(this['dispose$']))[_0x5064df(0x155)](()=>{const _0x16347d=_0x5064df;this[_0x16347d(0x2d0)]();}))),this[_0x5064df(0x241)](_0x1203fe(((_0x5ea208=_0x3e0a69[_0x5064df(0x2df)])==null?void 0x0:_0x5ea208['pipe'](_0xba2edd(this[_0x5064df(0x22d)]))[_0x5064df(0x155)](_0x13ad77=>{const _0x351ac2=_0x5064df;this[_0x351ac2(0x194)](_0x13ad77==null?void 0x0:_0x13ad77[_0x351ac2(0x140)]);}))??{'dispose':()=>{}})),this[_0x5064df(0x241)](_0x1203fe(_0x3e0a69[_0x5064df(0x1f9)][_0x5064df(0x24c)](_0xba2edd(this['dispose$']))['subscribe'](_0xa7b9c6=>{const _0x202d02=_0x5064df;setTimeout(()=>this['_applyDragTopologyAction'](_0xa7b9c6==null?void 0x0:_0xa7b9c6[_0x202d02(0x140)]),0x0);}))),this[_0x5064df(0x241)](_0x1203fe(((_0x14de90=this['_renderContext'][_0x5064df(0x139)][_0x5064df(0x26d)])==null?void 0x0:_0x14de90['subscribeEvent']({'priority':0x3,'next':([_0x2e707e])=>this[_0x5064df(0x23f)](_0x2e707e)}))??{'dispose':()=>{}})),this[_0x5064df(0x241)](_0x1203fe(((_0x90f87b=this['_renderContext'][_0x5064df(0x139)]['onPointerMove$'])==null?void 0x0:_0x90f87b[_0x5064df(0x199)]({'priority':0x3,'next':([_0x2ba273,_0x3e5c94])=>this[_0x5064df(0x22b)](_0x2ba273,_0x3e5c94)}))??{'dispose':()=>{}})),this[_0x5064df(0x241)](_0x1203fe(((_0x26ceca=this[_0x5064df(0x184)]['scene'][_0x5064df(0x3f0)])==null?void 0x0:_0x26ceca[_0x5064df(0x199)]({'priority':0x3,'next':([_0xe74203,_0x2e6631])=>this[_0x5064df(0x14b)](_0xe74203,_0x2e6631)}))??{'dispose':()=>{}})),this[_0x5064df(0x241)](_0x1203fe(((_0x59188e=this[_0x5064df(0x184)][_0x5064df(0x139)]['onPointerCancel$'])==null?void 0x0:_0x59188e[_0x5064df(0x199)]({'priority':0x3,'next':([,_0x5bae41])=>this['_cancelPointerChildDrag'](_0x5bae41)}))??{'dispose':()=>{}})),this[_0x5064df(0x241)](_0x1203fe(()=>{const _0x3cf704=_0x5064df;var _0x2cbf31;return(_0x2cbf31=this[_0x3cf704(0x380)])==null?void 0x0:_0x2cbf31[_0x3cf704(0x19d)]();})),this[_0x5064df(0x241)](_0x1203fe(()=>this[_0x5064df(0x2f0)]())),this[_0x5064df(0x344)](),this['_scheduleAttachObjectPointerListeners'](),this[_0x5064df(0x241)](_0x1203fe(()=>this[_0x5064df(0x3dd)]()));}['_subscribeElementDataChanges'](){const _0x35fe09=_0x3f9745;[this[_0x35fe09(0x2e7)][_0x35fe09(0x14a)],this[_0x35fe09(0x2e7)]['elementUpdate$'],this[_0x35fe09(0x2e7)][_0x35fe09(0x2e3)]]['forEach'](_0x39f57c=>{const _0x5153ba=_0x35fe09;this['disposeWithMe'](_0x1203fe(_0x39f57c[_0x5153ba(0x24c)](_0xba2edd(this[_0x5153ba(0x22d)]))[_0x5153ba(0x155)](()=>{const _0x5a5c29=_0x5153ba;this[_0x5a5c29(0x30c)]();})));}),this['_elementStateService']['state$']&&this[_0x35fe09(0x241)](_0x1203fe(this[_0x35fe09(0x1de)][_0x35fe09(0x25a)][_0x35fe09(0x24c)](_0xba2edd(this[_0x35fe09(0x22d)]))[_0x35fe09(0x155)](()=>{const _0x500c40=_0x35fe09;this[_0x500c40(0x30c)]();})));}[_0x3f9745(0x30c)](){const _0x581492=_0x3f9745;this[_0x581492(0x37f)]||(this[_0x581492(0x37f)]=!0x0,Promise[_0x581492(0x376)]()['then'](()=>this[_0x581492(0x39c)]()));}['_attachObjectPointerListeners'](){const _0x3f394c=_0x3f9745;var _0x3b04ae;this[_0x3f394c(0x37f)]=!0x1;let _0x326d57=this['_resolveCurrentBoardContext'](),_0x3133c9=this[_0x3f394c(0x184)][_0x3f394c(0x139)];if(!_0x326d57||typeof _0x3133c9[_0x3f394c(0x18d)]!=_0x3f394c(0x23b))return;let _0x1f3fe9=this[_0x3f394c(0x2e7)][_0x3f394c(0x192)](_0x326d57[_0x3f394c(0x293)],_0x326d57[_0x3f394c(0x15e)]),_0x3c51ea=new _0x418d95();(_0x3b04ae=this[_0x3f394c(0x380)])==null||_0x3b04ae[_0x3f394c(0x19d)](),this['_objectPointerDisposables']=_0x3c51ea,Object[_0x3f394c(0x2c8)](_0x1f3fe9)[_0x3f394c(0x185)](_0x5343f1=>{const _0xdb7590=_0x3f394c;var _0x3eeafe,_0x3a18e8;let _0xaba2ad=_0x446d08(_0x5343f1[_0xdb7590(0x1ba)]);if(!(_0xaba2ad!=null&&_0xaba2ad[_0xdb7590(0x167)]))return;let _0x323ade=_0x16f58d(_0x326d57[_0xdb7590(0x293)],_0x5343f1[_0xdb7590(0x341)]),_0x243f3a=((_0x3eeafe=_0x3133c9['getObjectIncludeInGroup'])==null?void 0x0:_0x3eeafe['call'](_0x3133c9,_0x323ade))??((_0x3a18e8=_0x3133c9['getObject'])==null?void 0x0:_0x3a18e8['call'](_0x3133c9,_0x323ade));_0x243f3a!=null&&_0x243f3a[_0xdb7590(0x26d)]&&_0x3c51ea[_0xdb7590(0x301)](_0x243f3a['onPointerDown$'][_0xdb7590(0x199)]({'priority':-0xa,'next':([_0x4329b6,_0x4cff02])=>this[_0xdb7590(0x23f)](_0x4329b6,{'unitId':_0x326d57[_0xdb7590(0x293)],'subUnitId':_0x326d57[_0xdb7590(0x15e)],'nodeId':_0x5343f1['elementId']},_0x4cff02)}));});}[_0x3f9745(0x33c)](){const _0x422251=_0x3f9745;let _0x42ce3c=this['_elementStateService'][_0x422251(0x195)]()['context'];if(_0x42ce3c)return _0x42ce3c;let _0x46bf43=this['_renderContext'][_0x422251(0x293)],_0x1663a6=_0x46bf43?this['_instanceService']['getUnit'](_0x46bf43,_0x1a4a16[_0x422251(0x1df)]):null,_0x3e3285=_0x1663a6==null?void 0x0:_0x1663a6[_0x422251(0x296)]();return!_0x1663a6||!_0x3e3285?null:{'unitId':_0x1663a6[_0x422251(0x1eb)](),'subUnitId':_0x3e3285};}['_captureDragStart'](){const _0x39d66b=_0x3f9745;let _0x42eaa6=this['_elementStateService']['getSnapshot']();this[_0x39d66b(0x30f)]=!0x1,this[_0x39d66b(0x2eb)]=!0x1,this[_0x39d66b(0x237)]=null;let _0x34e152=_0x42eaa6['context'],_0x53d496=_0x42eaa6['focusedId']??_0x42eaa6[_0x39d66b(0x3af)][0x0];if(!_0x34e152||!_0x53d496){this['_dragStart']=null,this[_0x39d66b(0x3dd)]();return;}let _0x2aa8ec=this['_boardElementService'][_0x39d66b(0x192)](_0x34e152[_0x39d66b(0x293)],_0x34e152['subUnitId']);if(_0x42eaa6['selectedIds']['length']>0x1){let _0x3e9a53=this['_resolveCompleteSelectedScope'](_0x2aa8ec,_0x42eaa6[_0x39d66b(0x3af)]);if(!_0x3e9a53){this[_0x39d66b(0x282)]=null,this['_removeDragPreviewObject']();return;}let _0x492b87=_0x2aa8ec[_0x3e9a53[_0x39d66b(0x13c)]],_0x2605ed=_0x266721(_0x2aa8ec,_0x3e9a53[_0x39d66b(0x13c)]),_0x1215aa=_0x492b87[_0x39d66b(0x1ba)][_0x39d66b(0x1e4)];this[_0x39d66b(0x282)]={'kind':_0x39d66b(0x33f),'unitId':_0x34e152['unitId'],'subUnitId':_0x34e152['subUnitId'],'nodeId':_0x3e9a53[_0x39d66b(0x13c)],'scopeId':_0x3e9a53[_0x39d66b(0x327)],'left':(_0x2605ed==null?void 0x0:_0x2605ed[_0x39d66b(0x1cd)])??_0x1215aa[_0x39d66b(0x1cd)]??0x0,'top':(_0x2605ed==null?void 0x0:_0x2605ed['top'])??_0x1215aa[_0x39d66b(0x136)]??0x0,'width':(_0x2605ed==null?void 0x0:_0x2605ed['width'])??_0x1215aa[_0x39d66b(0x276)]??0x0,'height':(_0x2605ed==null?void 0x0:_0x2605ed[_0x39d66b(0x12b)])??_0x1215aa['height']??0x0,'elementData':_0x2aa8ec};return;}let _0x50eb70=_0x2aa8ec[_0x53d496],_0x6c0049=_0x446d08(_0x50eb70==null?void 0x0:_0x50eb70[_0x39d66b(0x1ba)]);if(!_0x50eb70||!_0x6c0049){this['_dragStart']=null,this[_0x39d66b(0x3dd)]();return;}let _0x43b4b3=_0x266721(_0x2aa8ec,_0x53d496),_0x18612d=_0x50eb70[_0x39d66b(0x1ba)][_0x39d66b(0x1e4)];this[_0x39d66b(0x282)]={'kind':_0x6c0049[_0x39d66b(0x167)]===null?_0x39d66b(0x3aa):_0x39d66b(0x368),'unitId':_0x34e152[_0x39d66b(0x293)],'subUnitId':_0x34e152[_0x39d66b(0x15e)],'nodeId':_0x53d496,'scopeId':_0x6c0049[_0x39d66b(0x305)],'left':(_0x43b4b3==null?void 0x0:_0x43b4b3[_0x39d66b(0x1cd)])??_0x18612d[_0x39d66b(0x1cd)]??0x0,'top':(_0x43b4b3==null?void 0x0:_0x43b4b3[_0x39d66b(0x136)])??_0x18612d[_0x39d66b(0x136)]??0x0,'width':(_0x43b4b3==null?void 0x0:_0x43b4b3['width'])??_0x18612d[_0x39d66b(0x276)]??0x0,'height':(_0x43b4b3==null?void 0x0:_0x43b4b3[_0x39d66b(0x12b)])??_0x18612d[_0x39d66b(0x12b)]??0x0,'elementData':_0x2aa8ec};}[_0x3f9745(0x16e)](_0x4d6a04,_0x5854ec){const _0x3880ba=_0x3f9745;let _0x3ebaab=new Set(_0x5854ec),_0x16bb2d=_0x5854ec[_0x3880ba(0x3ea)](_0x5ed981=>{const _0x2b840a=_0x3880ba;var _0x8ef21b,_0x3c4398,_0x36f759,_0x374b7e;let _0x1c12a7=(_0x8ef21b=_0x4d6a04[_0x5ed981])==null?void 0x0:_0x8ef21b[_0x2b840a(0x1ba)];return((_0x3c4398=_0x446d08(_0x1c12a7))==null?void 0x0:_0x3c4398['structureScopeId'])??((_0x36f759=_0x5b914f(_0x1c12a7))==null?void 0x0:_0x36f759[_0x2b840a(0x305)])??((_0x374b7e=_0x211be1(_0x1c12a7))==null?void 0x0:_0x374b7e[_0x2b840a(0x305)])??null;});if(_0x16bb2d['some'](_0x1ff84f=>_0x1ff84f===null)||new Set(_0x16bb2d)['size']!==0x1)return null;let _0x1fa97a=_0x16bb2d[0x0];if(!_0x1fa97a)return null;let _0x351173=Object[_0x3880ba(0x2c8)](_0x4d6a04)[_0x3880ba(0x183)](_0xa0a868=>{const _0xdccb97=_0x3880ba;var _0x4fc2cd;return _0xa0a868[_0xdccb97(0x1ba)][_0xdccb97(0x3ce)]!==!0x1&&((_0x4fc2cd=_0x446d08(_0xa0a868[_0xdccb97(0x1ba)]))==null?void 0x0:_0x4fc2cd['structureScopeId'])===_0x1fa97a;});if(_0x351173[_0x3880ba(0x3cb)]===0x0||_0x351173[_0x3880ba(0x12a)](_0x26c7b5=>!_0x3ebaab[_0x3880ba(0x170)](_0x26c7b5['elementId'])))return null;let _0x19ace8=_0x351173[_0x3880ba(0x183)](_0xb147e=>{const _0x50424d=_0x3880ba;var _0x27c396;return((_0x27c396=_0x446d08(_0xb147e[_0x50424d(0x1ba)]))==null?void 0x0:_0x27c396[_0x50424d(0x167)])===null;});return _0x19ace8['length']===0x1?{'rootNodeId':_0x19ace8[0x0][_0x3880ba(0x341)],'scopeId':_0x1fa97a}:null;}[_0x3f9745(0x23f)](_0x107367,_0x314dc0,_0x3231ca){const _0x3bb986=_0x3f9745;var _0x14a713,_0x4960bb;if((_0x107367[_0x3bb986(0x3fc)]??0x0)!==0x0)return;let _0x35be90=this['_elementStateService'][_0x3bb986(0x195)]();if(_0x35be90['activeEditingId']){this['_pointerDragStart']=null;return;}let _0x2dddac=_0x314dc0?{'unitId':_0x314dc0['unitId'],'subUnitId':_0x314dc0[_0x3bb986(0x15e)]}:_0x35be90[_0x3bb986(0x152)]??this[_0x3bb986(0x33c)](),_0x533442=(_0x314dc0==null?void 0x0:_0x314dc0[_0x3bb986(0x321)])??(_0x35be90[_0x3bb986(0x3af)][_0x3bb986(0x3cb)]===0x1?_0x35be90[_0x3bb986(0x240)]??_0x35be90[_0x3bb986(0x3af)][0x0]:void 0x0);if(!_0x2dddac){this[_0x3bb986(0x1b7)]=null;return;}let _0x40d1c7=this[_0x3bb986(0x2e7)]['getElementData'](_0x2dddac['unitId'],_0x2dddac[_0x3bb986(0x15e)]),_0x3b460a=this[_0x3bb986(0x337)](_0x107367);if(!_0x314dc0){let _0x4e14c4=_0x533442?_0x40d1c7[_0x533442]:null,_0x34300a=_0x446d08(_0x4e14c4==null?void 0x0:_0x4e14c4[_0x3bb986(0x1ba)]),_0x470e80=_0x533442?_0x266721(_0x40d1c7,_0x533442)??(_0x4e14c4==null?void 0x0:_0x4e14c4[_0x3bb986(0x1ba)][_0x3bb986(0x1e4)]):null;(!(_0x34300a!=null&&_0x34300a[_0x3bb986(0x167)])||!_0x470e80||!this['_isPointInBounds'](_0x3b460a,{'left':_0x470e80['left']??0x0,'top':_0x470e80['top']??0x0,'width':_0x470e80[_0x3bb986(0x276)]??0x0,'height':_0x470e80[_0x3bb986(0x12b)]??0x0}))&&(_0x533442=this[_0x3bb986(0x3e8)](_0x40d1c7,_0x3b460a));}if(!_0x533442){this[_0x3bb986(0x1b7)]=null;return;}let _0x3370e2=_0x40d1c7[_0x533442],_0x1c9769=_0x446d08(_0x3370e2==null?void 0x0:_0x3370e2[_0x3bb986(0x1ba)]);if(!_0x3370e2||!(_0x1c9769!=null&&_0x1c9769[_0x3bb986(0x167)])){this[_0x3bb986(0x1b7)]=null;return;}(_0x14a713=(_0x4960bb=this[_0x3bb986(0x1de)])[_0x3bb986(0x339)])==null||_0x14a713[_0x3bb986(0x1aa)](_0x4960bb,_0x2dddac,[_0x533442],_0x533442),_0x3231ca==null||_0x3231ca[_0x3bb986(0x22f)]();let _0x44cdc2=_0x266721(_0x40d1c7,_0x533442),_0x395002=_0x3370e2[_0x3bb986(0x1ba)][_0x3bb986(0x1e4)],_0x5c2898={'left':(_0x44cdc2==null?void 0x0:_0x44cdc2[_0x3bb986(0x1cd)])??_0x395002[_0x3bb986(0x1cd)]??0x0,'top':(_0x44cdc2==null?void 0x0:_0x44cdc2[_0x3bb986(0x136)])??_0x395002['top']??0x0,'width':(_0x44cdc2==null?void 0x0:_0x44cdc2[_0x3bb986(0x276)])??_0x395002[_0x3bb986(0x276)]??0x0,'height':(_0x44cdc2==null?void 0x0:_0x44cdc2['height'])??_0x395002['height']??0x0};if(!_0x314dc0&&!this[_0x3bb986(0x32f)](_0x3b460a,_0x5c2898)){this[_0x3bb986(0x1b7)]=null;return;}let _0xdbe4b6=this[_0x3bb986(0x3eb)](_0x107367);this[_0x3bb986(0x30f)]=!0x1,this[_0x3bb986(0x2eb)]=!0x1,this['_lastChildDragAction']=null,this['_pointerDragStart']={'kind':_0x3bb986(0x368),'unitId':_0x2dddac['unitId'],'subUnitId':_0x2dddac[_0x3bb986(0x15e)],'nodeId':_0x533442,'scopeId':_0x1c9769[_0x3bb986(0x305)],..._0x5c2898,'pointerStartX':_0xdbe4b6['x'],'pointerStartY':_0xdbe4b6['y'],'elementData':_0x40d1c7},this[_0x3bb986(0x227)](),this['_consumePointerEvent'](_0x107367,_0x3231ca);}[_0x3f9745(0x22b)](_0x38b9e1,_0xb55e91){const _0x2a13b3=_0x3f9745;var _0x85dca8,_0x504e39;let _0x85daf8=this[_0x2a13b3(0x1b7)];if(!_0x85daf8||_0x38b9e1['buttons']!==void 0x0&&_0x38b9e1[_0x2a13b3(0x3fd)]!==0x1)return;let _0x5becf4=this[_0x2a13b3(0x1e6)](_0x38b9e1,_0x85daf8);if(!this[_0x2a13b3(0x366)](_0x85daf8,_0x5becf4))return;this[_0x2a13b3(0x30f)]||this[_0x2a13b3(0x2f1)](),this[_0x2a13b3(0x30f)]=!0x0;let _0x4295b9=this[_0x2a13b3(0x39e)](_0x85daf8[_0x2a13b3(0x1ee)],_0x85daf8[_0x2a13b3(0x321)],_0x5becf4),_0x5e8456=nn(_0x85daf8[_0x2a13b3(0x1ee)],_0x85daf8['nodeId'],{'boundsByElementId':_0x4295b9,'detachWhenNoSnap':!0x0});this['_lastChildDragAction']=_0x5e8456,this[_0x2a13b3(0x3de)](_0x5becf4,_0x5e8456,_0x4295b9),this[_0x2a13b3(0x38f)](_0x38b9e1,_0xb55e91),this[_0x2a13b3(0x184)][_0x2a13b3(0x139)][_0x2a13b3(0x257)](!0x0),(_0x85dca8=(_0x504e39=this[_0x2a13b3(0x184)]['scene'])[_0x2a13b3(0x2f5)])==null||_0x85dca8[_0x2a13b3(0x1aa)](_0x504e39);}['_applyPointerChildDrag'](_0xc6e119,_0x5a83b3){const _0x32dce9=_0x3f9745;let _0x4e0a6f=this[_0x32dce9(0x1b7)];if(!_0x4e0a6f)return;if(this[_0x32dce9(0x1b7)]=null,this[_0x32dce9(0x2f0)](),this[_0x32dce9(0x3dd)](),!this[_0x32dce9(0x30f)]){this[_0x32dce9(0x237)]=null;return;}let _0x12239d=this[_0x32dce9(0x2e7)]['getElementData'](_0x4e0a6f['unitId'],_0x4e0a6f[_0x32dce9(0x15e)]),_0x4145df=this[_0x32dce9(0x1e6)](_0xc6e119,_0x4e0a6f),_0x3f6045=this['_createTopologyBoundsByElementId'](_0x12239d,_0x4e0a6f['nodeId'],_0x4145df),_0x2153fc=nn(_0x12239d,_0x4e0a6f[_0x32dce9(0x321)],{'boundsByElementId':_0x3f6045,'detachWhenNoSnap':!0x0});this[_0x32dce9(0x237)]=null,this[_0x32dce9(0x1fd)](_0x4e0a6f[_0x32dce9(0x293)],_0x4e0a6f[_0x32dce9(0x15e)],_0x4e0a6f[_0x32dce9(0x321)],_0x12239d,_0x2153fc),this['_childDragSelectionHidden']=!0x1,this[_0x32dce9(0x38f)](_0xc6e119,_0x5a83b3);}[_0x3f9745(0x217)](_0x1fae8b){const _0x17fe34=_0x3f9745;let _0x20e6b3=this[_0x17fe34(0x1b7)];if(_0x20e6b3){if(this[_0x17fe34(0x1b7)]=null,this[_0x17fe34(0x2f0)](),this['_childDragActivated']=!0x1,this[_0x17fe34(0x237)]=null,this[_0x17fe34(0x3dd)](),this['_childDragSelectionHidden']){var _0x3e8c22,_0x1b2748;(_0x3e8c22=(_0x1b2748=this[_0x17fe34(0x1de)])[_0x17fe34(0x339)])==null||_0x3e8c22['call'](_0x1b2748,{'unitId':_0x20e6b3[_0x17fe34(0x293)],'subUnitId':_0x20e6b3['subUnitId']},[_0x20e6b3[_0x17fe34(0x321)]],_0x20e6b3[_0x17fe34(0x321)]),this['_childDragSelectionHidden']=!0x1;}_0x1fae8b==null||_0x1fae8b['stopPropagation']();}}[_0x3f9745(0x227)](){const _0x32ddff=_0x3f9745;this[_0x32ddff(0x2f0)]();let _0x255521=typeof window>'u'?null:window;if(!(_0x255521!=null&&_0x255521['addEventListener']))return;let _0x37fab3=new _0x418d95(),_0x5efb7a=_0xdf1513=>this[_0x32ddff(0x22b)](_0xdf1513),_0x1d8ce1=_0x557782=>this[_0x32ddff(0x14b)](_0x557782),_0x6f81a1=()=>this[_0x32ddff(0x217)]();_0x255521[_0x32ddff(0x15d)](_0x32ddff(0x396),_0x5efb7a,{'capture':!0x0}),_0x255521[_0x32ddff(0x15d)](_0x32ddff(0x29f),_0x1d8ce1,{'capture':!0x0}),_0x255521[_0x32ddff(0x15d)]('pointercancel',_0x6f81a1,{'capture':!0x0}),_0x37fab3[_0x32ddff(0x301)](_0x1203fe(()=>{const _0x5a66ce=_0x32ddff;_0x255521['removeEventListener'](_0x5a66ce(0x396),_0x5efb7a,{'capture':!0x0}),_0x255521[_0x5a66ce(0x363)](_0x5a66ce(0x29f),_0x1d8ce1,{'capture':!0x0}),_0x255521[_0x5a66ce(0x363)](_0x5a66ce(0x18a),_0x6f81a1,{'capture':!0x0});})),this[_0x32ddff(0x3d1)]=_0x37fab3;}[_0x3f9745(0x3e8)](_0x3b998d,_0x3f7416){const _0x11035b=_0x3f9745;let _0x31660e=Object[_0x11035b(0x2c8)](_0x3b998d);for(let _0x1b0f27=_0x31660e['length']-0x1;_0x1b0f27>=0x0;--_0x1b0f27){let _0x50c683=_0x31660e[_0x1b0f27],_0x563055=_0x446d08(_0x50c683[_0x11035b(0x1ba)]);if(!(_0x563055!=null&&_0x563055[_0x11035b(0x167)]))continue;let _0x5220ea=_0x266721(_0x3b998d,_0x50c683[_0x11035b(0x341)])??_0x50c683[_0x11035b(0x1ba)]['transform'];if(this[_0x11035b(0x32f)](_0x3f7416,{'left':_0x5220ea[_0x11035b(0x1cd)]??0x0,'top':_0x5220ea[_0x11035b(0x136)]??0x0,'width':_0x5220ea[_0x11035b(0x276)]??0x0,'height':_0x5220ea['height']??0x0}))return _0x50c683['elementId'];}}['_disposeActivePointerDragListeners'](){const _0x7d90dc=_0x3f9745;var _0x24ec4;(_0x24ec4=this[_0x7d90dc(0x3d1)])==null||_0x24ec4['dispose'](),this[_0x7d90dc(0x3d1)]=null;}[_0x3f9745(0x194)](_0x4c879d){const _0xc6aa6c=_0x3f9745;let _0x51918f=this[_0xc6aa6c(0x282)];if(_0x51918f){if((_0x51918f[_0xc6aa6c(0x190)]===_0xc6aa6c(0x3aa)||_0x51918f[_0xc6aa6c(0x190)]===_0xc6aa6c(0x33f))&&this[_0xc6aa6c(0x121)](_0x4c879d),_0x51918f[_0xc6aa6c(0x190)]===_0xc6aa6c(0x3aa)){this[_0xc6aa6c(0x135)](_0x4c879d);return;}this['_syncChildDragPreview'](_0x4c879d);}}[_0x3f9745(0x121)](_0x599d26){const _0x4e47c8=_0x3f9745;let _0x5423b7=this[_0x4e47c8(0x282)];if(!_0x5423b7||_0x5423b7['kind']!==_0x4e47c8(0x3aa)&&_0x5423b7[_0x4e47c8(0x190)]!==_0x4e47c8(0x33f))return;let _0x143888=_0x599d26==null?void 0x0:_0x599d26['get'](_0x16f58d(_0x5423b7[_0x4e47c8(0x293)],_0x5423b7[_0x4e47c8(0x321)]));if(!_0x143888||!Number[_0x4e47c8(0x271)](_0x143888['left'])||!Number[_0x4e47c8(0x271)](_0x143888[_0x4e47c8(0x136)]))return;let _0x3407b4=on({'elementData':_0x5423b7[_0x4e47c8(0x1ee)],'rootNodeId':_0x5423b7[_0x4e47c8(0x321)],'scopeId':_0x5423b7[_0x4e47c8(0x327)],'rootStartBounds':{'left':_0x5423b7[_0x4e47c8(0x1cd)],'top':_0x5423b7[_0x4e47c8(0x136)]},'liveRootBounds':{'left':_0x143888['left'],'top':_0x143888[_0x4e47c8(0x136)]}});if(!_0x3407b4)return;let _0x40775f=this['_renderContext'][_0x4e47c8(0x139)],_0x324f17=_0x40775f,_0x215d33=!0x1;_0x3407b4['items'][_0x4e47c8(0x185)](_0x1a9b01=>{const _0x1d6f1a=_0x4e47c8;var _0x278eb5;let _0x57b5e2=_0x16f58d(_0x5423b7[_0x1d6f1a(0x293)],_0x1a9b01[_0x1d6f1a(0x341)]),_0x1670f3=((_0x278eb5=_0x324f17[_0x1d6f1a(0x31e)])==null?void 0x0:_0x278eb5[_0x1d6f1a(0x1aa)](_0x324f17,_0x57b5e2))??_0x40775f[_0x1d6f1a(0x18d)](_0x57b5e2);if(_0x1670f3){if(_0x1a9b01[_0x1d6f1a(0x190)]===_0x1d6f1a(0x31d)&&typeof _0x1670f3['updateElement']=='function'){_0x1670f3[_0x1d6f1a(0x2b5)](_0x1a9b01['element'],_0x3407b4[_0x1d6f1a(0x1ee)]),_0x215d33=!0x0;return;}_0x1a9b01[_0x1d6f1a(0x190)]===_0x1d6f1a(0x1ae)&&(_0x1670f3[_0x1d6f1a(0x392)](_0x1a9b01[_0x1d6f1a(0x1ae)]),typeof _0x1670f3[_0x1d6f1a(0x2ce)]==_0x1d6f1a(0x23b)?_0x1670f3[_0x1d6f1a(0x2ce)](!0x0):_0x1670f3[_0x1d6f1a(0x257)](!0x0),_0x215d33=!0x0);}}),_0x215d33&&_0x40775f['makeDirty'](!0x0);}[_0x3f9745(0x135)](_0x5cd617){const _0x49d29e=_0x3f9745;var _0x1cb947,_0xa952dc;let _0x5e29d2=this[_0x49d29e(0x282)];if(!_0x5e29d2||_0x5e29d2[_0x49d29e(0x190)]!==_0x49d29e(0x3aa))return;let _0x3dd135=_0x5cd617==null?void 0x0:_0x5cd617[_0x49d29e(0x3bb)](_0x16f58d(_0x5e29d2[_0x49d29e(0x293)],_0x5e29d2['nodeId']));if(!_0x3dd135||!Number['isFinite'](_0x3dd135[_0x49d29e(0x1cd)])||!Number[_0x49d29e(0x271)](_0x3dd135[_0x49d29e(0x136)])){this[_0x49d29e(0x3dd)]();return;}let _0x3e4447=this[_0x49d29e(0x15a)](_0x3dd135,_0x5e29d2),_0x10895a=this[_0x49d29e(0x39e)](_0x5e29d2[_0x49d29e(0x1ee)],_0x5e29d2[_0x49d29e(0x321)],_0x3e4447),_0x2540ba=nn(_0x5e29d2[_0x49d29e(0x1ee)],_0x5e29d2[_0x49d29e(0x321)],{'boundsByElementId':_0x10895a,'allowRootReparent':!0x0});if(_0x2540ba[_0x49d29e(0x190)]!==_0x49d29e(0x13d)){this[_0x49d29e(0x3dd)]();return;}let _0x32ef20=this[_0x49d29e(0x1b1)]();_0x32ef20&&(_0x32ef20[_0x49d29e(0x210)]({'ghostBounds':_0x3e4447,'sourceBounds':null,'parentBounds':_0x10895a[_0x2540ba['newParentNodeId']],'side':_0x2540ba[_0x49d29e(0x24a)],'textStyle':void 0x0,'renderGhostNode':!0x1}),this[_0x49d29e(0x184)]['scene'][_0x49d29e(0x257)](!0x0),(_0x1cb947=(_0xa952dc=this['_renderContext'][_0x49d29e(0x139)])[_0x49d29e(0x2f5)])==null||_0x1cb947['call'](_0xa952dc));}[_0x3f9745(0x158)](_0x90d9d8){const _0x16ea13=_0x3f9745;var _0x4cb59c,_0x3a7aea;let _0x2358a4=this[_0x16ea13(0x282)];if(!_0x2358a4||_0x2358a4[_0x16ea13(0x190)]!==_0x16ea13(0x368))return;let _0x4fcc2f=_0x90d9d8==null?void 0x0:_0x90d9d8['get'](_0x16f58d(_0x2358a4[_0x16ea13(0x293)],_0x2358a4[_0x16ea13(0x321)]));if(!_0x4fcc2f){this[_0x16ea13(0x3dd)]();return;}let _0x4aeb0b=this[_0x16ea13(0x15a)](_0x4fcc2f,_0x2358a4);if(!this['_isChildDragPastActivationThreshold'](_0x2358a4,_0x4aeb0b)){this[_0x16ea13(0x237)]=null,this[_0x16ea13(0x3dd)](),this['_restoreObjectToDragStart'](_0x4fcc2f,_0x2358a4),this[_0x16ea13(0x184)][_0x16ea13(0x139)][_0x16ea13(0x257)](!0x0);return;}this[_0x16ea13(0x30f)]||this[_0x16ea13(0x2f1)](),this[_0x16ea13(0x30f)]=!0x0;let _0xdc5f2b=this[_0x16ea13(0x39e)](_0x2358a4[_0x16ea13(0x1ee)],_0x2358a4['nodeId'],_0x4aeb0b),_0x4b3076=nn(_0x2358a4[_0x16ea13(0x1ee)],_0x2358a4[_0x16ea13(0x321)],{'boundsByElementId':_0xdc5f2b,'detachWhenNoSnap':!0x0});this[_0x16ea13(0x237)]=_0x4b3076,this[_0x16ea13(0x3de)](_0x4aeb0b,_0x4b3076,_0xdc5f2b),this[_0x16ea13(0x2fa)](_0x4fcc2f,_0x2358a4),this[_0x16ea13(0x184)][_0x16ea13(0x139)][_0x16ea13(0x257)](!0x0),(_0x4cb59c=(_0x3a7aea=this['_renderContext'][_0x16ea13(0x139)])[_0x16ea13(0x2f5)])==null||_0x4cb59c['call'](_0x3a7aea);}['_applyDragTopologyAction'](_0x1ab52a){const _0x1f0f36=_0x3f9745;var _0x430394;let _0x17066c=this[_0x1f0f36(0x1de)][_0x1f0f36(0x195)](),_0x184b50=_0x17066c[_0x1f0f36(0x152)],_0x41118a=_0x17066c[_0x1f0f36(0x240)]??_0x17066c[_0x1f0f36(0x3af)][0x0];if(_0x184b50&&((_0x430394=this[_0x1f0f36(0x282)])==null?void 0x0:_0x430394[_0x1f0f36(0x190)])===_0x1f0f36(0x33f)){this['_removeDragPreviewObject'](),this[_0x1f0f36(0x11d)](_0x184b50[_0x1f0f36(0x293)],_0x184b50[_0x1f0f36(0x15e)],_0x1ab52a);return;}if(!_0x184b50||!_0x41118a||_0x17066c[_0x1f0f36(0x3af)][_0x1f0f36(0x3cb)]!==0x1){this[_0x1f0f36(0x3dd)](),this[_0x1f0f36(0x282)]=null;return;}this[_0x1f0f36(0x3dd)]();let _0x149319=this['_boardElementService'][_0x1f0f36(0x192)](_0x184b50['unitId'],_0x184b50[_0x1f0f36(0x15e)]);if(this[_0x1f0f36(0x298)](_0x184b50[_0x1f0f36(0x293)],_0x184b50[_0x1f0f36(0x15e)],_0x41118a,_0x149319,_0x1ab52a))return;let _0x1d40eb=this[_0x1f0f36(0x3f7)](_0x184b50[_0x1f0f36(0x293)],_0x184b50[_0x1f0f36(0x15e)],_0x41118a,_0x149319,_0x1ab52a);this[_0x1f0f36(0x1fd)](_0x184b50[_0x1f0f36(0x293)],_0x184b50['subUnitId'],_0x41118a,_0x149319,_0x1d40eb);}[_0x3f9745(0x11d)](_0x1b4956,_0x10bfad,_0x1a6c62){const _0x454da1=_0x3f9745;let _0x2b418f=this['_dragStart'];if(this[_0x454da1(0x282)]=null,!_0x2b418f||_0x2b418f[_0x454da1(0x190)]!==_0x454da1(0x33f)||_0x2b418f[_0x454da1(0x293)]!==_0x1b4956||_0x2b418f['subUnitId']!==_0x10bfad)return;let _0x365261=_0x1a6c62==null?void 0x0:_0x1a6c62[_0x454da1(0x3bb)](_0x16f58d(_0x1b4956,_0x2b418f[_0x454da1(0x321)])),_0x3fbfd4=_0x365261&&Number[_0x454da1(0x271)](_0x365261[_0x454da1(0x1cd)])?_0x365261['left']??_0x2b418f[_0x454da1(0x1cd)]:_0x2b418f[_0x454da1(0x1cd)],_0x34b53f=_0x365261&&Number[_0x454da1(0x271)](_0x365261[_0x454da1(0x136)])?_0x365261['top']??_0x2b418f['top']:_0x2b418f[_0x454da1(0x136)],_0x10bcc=_0x3fbfd4-_0x2b418f['left'],_0x106d06=_0x34b53f-_0x2b418f[_0x454da1(0x136)];(_0x10bcc!==0x0||_0x106d06!==0x0)&&this[_0x454da1(0x3b0)]['executeCommand'](_0x5e4c9d['id'],{'unitId':_0x1b4956,'subUnitId':_0x10bfad,'scopeId':_0x2b418f[_0x454da1(0x327)],'deltaX':_0x10bcc,'deltaY':_0x106d06});}[_0x3f9745(0x1fd)](_0x4ac20c,_0x2f10de,_0x5ad99d,_0x1f8bfa,_0x458be7){const _0xecb38e=_0x3f9745;if(_0x458be7[_0xecb38e(0x190)]==='reparent'){var _0x4c4ef4,_0x1b3981;let _0x39f5d1=_0x446d08((_0x4c4ef4=_0x1f8bfa[_0x5ad99d])==null?void 0x0:_0x4c4ef4[_0xecb38e(0x1ba)]),_0x4a5aad=_0x446d08((_0x1b3981=_0x1f8bfa[_0x458be7[_0xecb38e(0x28b)]])==null?void 0x0:_0x1b3981[_0xecb38e(0x1ba)]);this[_0xecb38e(0x3f8)](_0x3ae598['id'],{'unitId':_0x4ac20c,'subUnitId':_0x2f10de,'nodeId':_0x5ad99d,'newParentNodeId':_0x458be7['newParentNodeId'],'side':_0x458be7['side'],..._0x458be7['referenceNodeId']?{'referenceNodeId':_0x458be7[_0xecb38e(0x29a)]}:null,..._0x458be7['placement']?{'placement':_0x458be7[_0xecb38e(0x1ad)]}:null},[_0x39f5d1==null?void 0x0:_0x39f5d1[_0xecb38e(0x305)],_0x4a5aad==null?void 0x0:_0x4a5aad['structureScopeId']],_0x5ad99d);return;}if(_0x458be7[_0xecb38e(0x190)]===_0xecb38e(0x221)){var _0x4aa6d9;let _0x4d6120=_0x446d08((_0x4aa6d9=_0x1f8bfa[_0x5ad99d])==null?void 0x0:_0x4aa6d9[_0xecb38e(0x1ba)]);this[_0xecb38e(0x3f8)](_0x4080b7['id'],{'unitId':_0x4ac20c,'subUnitId':_0x2f10de,'nodeId':_0x5ad99d,...Number[_0xecb38e(0x271)](_0x458be7[_0xecb38e(0x1cd)])?{'left':_0x458be7['left']}:null,...Number[_0xecb38e(0x271)](_0x458be7[_0xecb38e(0x136)])?{'top':_0x458be7[_0xecb38e(0x136)]}:null},[_0x4d6120==null?void 0x0:_0x4d6120[_0xecb38e(0x305)]],_0x5ad99d);}}[_0x3f9745(0x298)](_0x39dba9,_0x5e935a,_0x2abd0e,_0x320edc,_0x4bde14){const _0x2a9a82=_0x3f9745;let _0x3ac189=this[_0x2a9a82(0x282)];if((_0x3ac189==null?void 0x0:_0x3ac189[_0x2a9a82(0x190)])===_0x2a9a82(0x3aa)&&(this[_0x2a9a82(0x282)]=null),!_0x3ac189||_0x3ac189[_0x2a9a82(0x293)]!==_0x39dba9||_0x3ac189['subUnitId']!==_0x5e935a||_0x3ac189['nodeId']!==_0x2abd0e)return!0x1;let _0x280ca6=_0x320edc[_0x2abd0e],_0x4029b3=_0x446d08(_0x280ca6==null?void 0x0:_0x280ca6[_0x2a9a82(0x1ba)]);if(!_0x280ca6||!_0x4029b3||_0x4029b3[_0x2a9a82(0x167)]!==null)return!0x1;let _0x2593ed=_0x4bde14==null?void 0x0:_0x4bde14[_0x2a9a82(0x3bb)](_0x16f58d(_0x39dba9,_0x2abd0e)),_0x3ab812=_0x266721(_0x320edc,_0x2abd0e),_0x23d466=Number[_0x2a9a82(0x271)](_0x2593ed==null?void 0x0:_0x2593ed[_0x2a9a82(0x1cd)])?_0x2593ed['left']:(_0x3ab812==null?void 0x0:_0x3ab812[_0x2a9a82(0x1cd)])??_0x280ca6[_0x2a9a82(0x1ba)][_0x2a9a82(0x1e4)][_0x2a9a82(0x1cd)]??0x0,_0x4e0da1=Number[_0x2a9a82(0x271)](_0x2593ed==null?void 0x0:_0x2593ed[_0x2a9a82(0x136)])?_0x2593ed[_0x2a9a82(0x136)]:(_0x3ab812==null?void 0x0:_0x3ab812[_0x2a9a82(0x136)])??_0x280ca6[_0x2a9a82(0x1ba)]['transform'][_0x2a9a82(0x136)]??0x0,_0x1f0401=_0x23d466-_0x3ac189['left'],_0x104bb7=_0x4e0da1-_0x3ac189[_0x2a9a82(0x136)];if(_0x1f0401===0x0&&_0x104bb7===0x0)return!0x0;let _0x2a63e3={'left':_0x23d466,'top':_0x4e0da1,'width':Number['isFinite'](_0x2593ed==null?void 0x0:_0x2593ed[_0x2a9a82(0x276)])?_0x2593ed[_0x2a9a82(0x276)]:_0x3ac189['width'],'height':Number[_0x2a9a82(0x271)](_0x2593ed==null?void 0x0:_0x2593ed['height'])?_0x2593ed[_0x2a9a82(0x12b)]:_0x3ac189[_0x2a9a82(0x12b)]},_0x2ddaa6=nn(_0x320edc,_0x2abd0e,{'boundsByElementId':this[_0x2a9a82(0x39e)](_0x320edc,_0x2abd0e,_0x2a63e3),'allowRootReparent':!0x0});if(_0x2ddaa6[_0x2a9a82(0x190)]===_0x2a9a82(0x13d))return this['_executeChildDragAction'](_0x39dba9,_0x5e935a,_0x2abd0e,_0x320edc,_0x2ddaa6),!0x0;let _0x516061=!!_0x3ab812&&Math[_0x2a9a82(0x19a)](_0x3ab812[_0x2a9a82(0x1cd)]-_0x23d466)<0.001&&Math[_0x2a9a82(0x19a)](_0x3ab812['top']-_0x4e0da1)<0.001;return this['_commandService'][_0x2a9a82(0x36f)](_0x5e4c9d['id'],{'unitId':_0x39dba9,'subUnitId':_0x5e935a,'scopeId':_0x3ac189[_0x2a9a82(0x327)],'deltaX':_0x1f0401,'deltaY':_0x104bb7,..._0x516061?{'excludeElementIds':[_0x2abd0e],'preserveExcludedWorldTransforms':!0x0}:null}),!0x0;}[_0x3f9745(0x3f7)](_0x43ad6f,_0x5d12dd,_0x3d6084,_0x31fb2e,_0x3d52e7){const _0x314c54=_0x3f9745;let _0x339b05=this['_dragStart'];if(!_0x339b05||_0x339b05[_0x314c54(0x190)]!==_0x314c54(0x368)||_0x339b05[_0x314c54(0x293)]!==_0x43ad6f||_0x339b05[_0x314c54(0x15e)]!==_0x5d12dd||_0x339b05['nodeId']!==_0x3d6084)return{'kind':_0x314c54(0x3f1)};this[_0x314c54(0x282)]=null;let _0x2372ac=_0x3d52e7==null?void 0x0:_0x3d52e7[_0x314c54(0x3bb)](_0x16f58d(_0x43ad6f,_0x3d6084));if(!this['_childDragActivated'])return _0x2372ac&&this[_0x314c54(0x2fa)](_0x2372ac,_0x339b05),this[_0x314c54(0x237)]=null,{'kind':_0x314c54(0x3f1)};if(!_0x2372ac){let _0x5afd38=this[_0x314c54(0x237)]??{'kind':_0x314c54(0x3f1)};return this[_0x314c54(0x237)]=null,_0x5afd38;}let _0x5273ac=this['_getLiveObjectBounds'](_0x2372ac,_0x339b05);if(this['_restoreObjectToDragStart'](_0x2372ac,_0x339b05),!this[_0x314c54(0x366)](_0x339b05,_0x5273ac))return this[_0x314c54(0x237)]=null,{'kind':_0x314c54(0x3f1)};let _0x3f2e70=nn(_0x31fb2e,_0x3d6084,{'boundsByElementId':this[_0x314c54(0x39e)](_0x31fb2e,_0x3d6084,_0x5273ac),'detachWhenNoSnap':!0x0});return this[_0x314c54(0x237)]=null,_0x3f2e70;}[_0x3f9745(0x366)](_0x103c40,_0x4bd4dc){const _0x10ad86=_0x3f9745;let _0x51e96e=(_0x4bd4dc[_0x10ad86(0x1cd)]??_0x103c40['left'])-_0x103c40[_0x10ad86(0x1cd)],_0x20b84c=(_0x4bd4dc[_0x10ad86(0x136)]??_0x103c40[_0x10ad86(0x136)])-_0x103c40[_0x10ad86(0x136)];return Math[_0x10ad86(0x172)](_0x51e96e,_0x20b84c)>=0x12;}[_0x3f9745(0x1e6)](_0x173acc,_0x6b4037){const _0x21f8e6=_0x3f9745;let _0x29b002=this[_0x21f8e6(0x3eb)](_0x173acc),_0x4fab37=this[_0x21f8e6(0x397)]();return{'left':_0x6b4037[_0x21f8e6(0x1cd)]+(_0x29b002['x']-_0x6b4037[_0x21f8e6(0x30e)])/_0x4fab37,'top':_0x6b4037['top']+(_0x29b002['y']-_0x6b4037[_0x21f8e6(0x1af)])/_0x4fab37,'width':_0x6b4037[_0x21f8e6(0x276)],'height':_0x6b4037[_0x21f8e6(0x12b)]};}[_0x3f9745(0x337)](_0x3ef681){const _0x9d9e1d=_0x3f9745;let _0x542b0e=this[_0x9d9e1d(0x278)][_0x9d9e1d(0x2f3)](),_0x5e9cd9=(_0x542b0e==null?void 0x0:_0x542b0e['viewportPanOffset'])??{'x':0x0,'y':0x0},_0x205026=this['_getZoomRatio']();return{'x':Math['round'](((_0x3ef681[_0x9d9e1d(0x250)]??0x0)-_0x5e9cd9['x'])/_0x205026),'y':Math[_0x9d9e1d(0x141)](((_0x3ef681['offsetY']??0x0)-_0x5e9cd9['y'])/_0x205026)};}['_getPointerScreenPoint'](_0x2c995b){const _0x5173d0=_0x3f9745;return{'x':Number[_0x5173d0(0x271)](_0x2c995b[_0x5173d0(0x134)])?_0x2c995b[_0x5173d0(0x134)]:_0x2c995b[_0x5173d0(0x250)]??0x0,'y':Number[_0x5173d0(0x271)](_0x2c995b[_0x5173d0(0x340)])?_0x2c995b['clientY']:_0x2c995b[_0x5173d0(0x372)]??0x0};}['_getZoomRatio'](){const _0x3df31d=_0x3f9745;let _0x4030c8=this[_0x3df31d(0x278)][_0x3df31d(0x2f3)]()[_0x3df31d(0x2c7)];return Number[_0x3df31d(0x271)](_0x4030c8)&&(_0x4030c8??0x0)>0x0?_0x4030c8:0x1;}['_isPointInBounds'](_0x5c1953,_0xbc30a2){const _0x138a13=_0x3f9745;return _0x5c1953['x']>=_0xbc30a2[_0x138a13(0x1cd)]&&_0x5c1953['x']<=_0xbc30a2[_0x138a13(0x1cd)]+_0xbc30a2[_0x138a13(0x276)]&&_0x5c1953['y']>=_0xbc30a2['top']&&_0x5c1953['y']<=_0xbc30a2['top']+_0xbc30a2[_0x138a13(0x12b)];}[_0x3f9745(0x38f)](_0x3925db,_0x54128b){const _0x1aa247=_0x3f9745;var _0x3cf3b3,_0x59346c;_0x54128b==null||_0x54128b[_0x1aa247(0x22f)](),_0x54128b&&(_0x54128b[_0x1aa247(0x2d7)]=!0x0),(_0x3cf3b3=_0x3925db[_0x1aa247(0x128)])==null||_0x3cf3b3[_0x1aa247(0x1aa)](_0x3925db),(_0x59346c=_0x3925db[_0x1aa247(0x22f)])==null||_0x59346c['call'](_0x3925db);}['_hideSelectionForChildDrag'](){const _0x3a5f69=_0x3f9745;var _0x18e935,_0x116026;this[_0x3a5f69(0x2eb)]||=((_0x18e935=(_0x116026=this['_elementStateService'])[_0x3a5f69(0x39a)])==null||_0x18e935[_0x3a5f69(0x1aa)](_0x116026),!0x0);}[_0x3f9745(0x15a)](_0x532fca,_0x38ae5d){const _0x50fdd1=_0x3f9745;return{'left':Number[_0x50fdd1(0x271)](_0x532fca[_0x50fdd1(0x1cd)])?_0x532fca[_0x50fdd1(0x1cd)]:_0x38ae5d[_0x50fdd1(0x1cd)],'top':Number[_0x50fdd1(0x271)](_0x532fca[_0x50fdd1(0x136)])?_0x532fca[_0x50fdd1(0x136)]:_0x38ae5d['top'],'width':Number[_0x50fdd1(0x271)](_0x532fca[_0x50fdd1(0x276)])?_0x532fca[_0x50fdd1(0x276)]:_0x38ae5d[_0x50fdd1(0x276)],'height':Number[_0x50fdd1(0x271)](_0x532fca[_0x50fdd1(0x12b)])?_0x532fca[_0x50fdd1(0x12b)]:_0x38ae5d[_0x50fdd1(0x12b)]};}[_0x3f9745(0x2fa)](_0x14067c,_0x5ded6f){const _0x581eaa=_0x3f9745;typeof _0x14067c['transformByState']==_0x581eaa(0x23b)&&_0x14067c['transformByState']({'left':_0x5ded6f[_0x581eaa(0x1cd)],'top':_0x5ded6f[_0x581eaa(0x136)],'width':_0x5ded6f[_0x581eaa(0x276)],'height':_0x5ded6f['height']}),typeof _0x14067c[_0x581eaa(0x2ce)]==_0x581eaa(0x23b)?_0x14067c['makeDirtyNoDebounce'](!0x0):typeof _0x14067c[_0x581eaa(0x257)]==_0x581eaa(0x23b)&&_0x14067c[_0x581eaa(0x257)](!0x0);}[_0x3f9745(0x39e)](_0x38ecaa,_0x36e4dc,_0x1fdb10){const _0x1ebbdc=_0x3f9745;return Object[_0x1ebbdc(0x3d5)](Object[_0x1ebbdc(0x38b)](_0x38ecaa)['map'](_0x23c495=>_0x23c495===_0x36e4dc?[_0x23c495,_0x1fdb10]:[_0x23c495,_0x266721(_0x38ecaa,_0x23c495)??_0x38ecaa[_0x23c495]['element'][_0x1ebbdc(0x1e4)]]));}[_0x3f9745(0x1b1)](){const _0x5741df=_0x3f9745;if(this[_0x5741df(0x245)])return this['_dragPreviewObject'];let _0x5062ed=this[_0x5741df(0x184)][_0x5741df(0x139)];return typeof _0x5062ed['addObject']==_0x5741df(0x23b)?(this['_dragPreviewObject']=new Jt(Ht),_0x5062ed[_0x5741df(0x3ca)](this[_0x5741df(0x245)],Ut),this['_dragPreviewObject']):null;}[_0x3f9745(0x3de)](_0x484e44,_0xe46f5e,_0x2c7646){const _0x89d21f=_0x3f9745;let _0x4f3c6d=this[_0x89d21f(0x1b1)]();_0x4f3c6d&&_0x4f3c6d['updateState']({'ghostBounds':_0x484e44,'sourceBounds':this[_0x89d21f(0x23d)](),'parentBounds':_0xe46f5e[_0x89d21f(0x190)]===_0x89d21f(0x13d)?_0x2c7646[_0xe46f5e['newParentNodeId']]:null,'side':_0xe46f5e[_0x89d21f(0x190)]===_0x89d21f(0x13d)?_0xe46f5e[_0x89d21f(0x24a)]:_0x89d21f(0x2f9),'textStyle':this['_resolvePreviewTextStyle'](),'renderGhostNode':!0x0});}[_0x3f9745(0x23d)](){const _0x59c6f1=_0x3f9745;let _0x53c494=this[_0x59c6f1(0x1b7)]??this[_0x59c6f1(0x282)];return _0x53c494?{'left':_0x53c494[_0x59c6f1(0x1cd)],'top':_0x53c494['top'],'width':_0x53c494[_0x59c6f1(0x276)],'height':_0x53c494[_0x59c6f1(0x12b)]}:null;}[_0x3f9745(0x18e)](){const _0x348cd8=_0x3f9745;var _0x336068,_0x1b300b;let _0x437d80=this[_0x348cd8(0x1b7)]??this[_0x348cd8(0x282)],_0xb7b1c9=_0x437d80==null||(_0x336068=_0x437d80[_0x348cd8(0x1ee)][_0x437d80['nodeId']])==null?void 0x0:_0x336068[_0x348cd8(0x1ba)],_0x407527=_0xb7b1c9==null||(_0x1b300b=_0xb7b1c9[_0x348cd8(0x351)])==null?void 0x0:_0x1b300b[_0x348cd8(0x394)];if(_0x407527)return{'text':typeof _0x407527[_0x348cd8(0x129)]==_0x348cd8(0x18c)?_0x407527[_0x348cd8(0x129)]:void 0x0,'fontSize':Number[_0x348cd8(0x271)](_0x407527['fontSize'])?_0x407527['fontSize']:void 0x0,'color':typeof _0x407527['color']==_0x348cd8(0x18c)?_0x407527[_0x348cd8(0x17b)]:void 0x0,'horizontalAlign':Number[_0x348cd8(0x271)](_0x407527['horizontalAlign'])?_0x407527[_0x348cd8(0x369)]:void 0x0};}[_0x3f9745(0x3dd)](){const _0x52147d=_0x3f9745;var _0x31588a,_0xf253e8,_0x362f2d;if(!this['_dragPreviewObject'])return;let _0x3d13e8=this[_0x52147d(0x184)][_0x52147d(0x139)];(_0x31588a=_0x3d13e8['removeObjects'])==null||_0x31588a[_0x52147d(0x1aa)](_0x3d13e8,[this[_0x52147d(0x245)]]),this[_0x52147d(0x245)]=null,(_0xf253e8=(_0x362f2d=this[_0x52147d(0x184)][_0x52147d(0x139)])[_0x52147d(0x257)])==null||_0xf253e8[_0x52147d(0x1aa)](_0x362f2d,!0x0);}[_0x3f9745(0x3f8)](_0x23f4ec,_0x5bdd06,_0x319dbb,_0x2f586e){const _0x49194d=_0x3f9745;let _0x2f2db2=[...new Set(_0x319dbb[_0x49194d(0x183)](_0x633e9e=>!!_0x633e9e))],_0x3f6ff9=this[_0x49194d(0x3b0)]['executeCommand'](_0x23f4ec,_0x5bdd06);Promise[_0x49194d(0x376)](_0x3f6ff9)[_0x49194d(0x16d)](_0xcdbee1=>{const _0x1d9009=_0x49194d;var _0x311ec0,_0x507acd,_0x30be59,_0x506c61;if(_0xcdbee1){if(_0x2f2db2[_0x1d9009(0x185)](_0x2a15c4=>{const _0x298d0e=_0x1d9009;this[_0x298d0e(0x3b0)][_0x298d0e(0x36f)](_0x14174c['id'],{'unitId':_0x5bdd06[_0x298d0e(0x293)],'subUnitId':_0x5bdd06[_0x298d0e(0x15e)],'scopeId':_0x2a15c4});}),_0x2f586e&&typeof _0x5bdd06[_0x1d9009(0x293)]==_0x1d9009(0x18c)&&typeof _0x5bdd06[_0x1d9009(0x15e)]=='string'){var _0x5438b1,_0x130879;(_0x5438b1=(_0x130879=this[_0x1d9009(0x1de)])['selectElements'])==null||_0x5438b1[_0x1d9009(0x1aa)](_0x130879,{'unitId':_0x5bdd06[_0x1d9009(0x293)],'subUnitId':_0x5bdd06['subUnitId']},[_0x2f586e],_0x2f586e);}(_0x311ec0=(_0x507acd=this[_0x1d9009(0x184)]['scene'])[_0x1d9009(0x257)])==null||_0x311ec0[_0x1d9009(0x1aa)](_0x507acd,!0x0),(_0x30be59=(_0x506c61=this['_renderContext'][_0x1d9009(0x139)])[_0x1d9009(0x2f5)])==null||_0x30be59['call'](_0x506c61);}});}};sn=q([K(0x1,_0x23a0df(_0x221653)),K(0x2,_0x23a0df(_0x213d24)),K(0x3,_0xe6cdb9),K(0x4,_0x25c205),K(0x5,_0x23feb0)],sn);let cn=class extends _0x248e7a{constructor(_0x5ae86e,_0x3731e3,_0x3d83d0,_0x4c954a,_0x144c4d,_0x193585,_0x37b1e0,_0x2c7d51,_0x73b45f){const _0x484334=_0x3f9745;super(),this[_0x484334(0x19c)]=_0x5ae86e,this[_0x484334(0x318)]=_0x3731e3,this[_0x484334(0x304)]=_0x3d83d0,this['elementStateService']=_0x4c954a,this[_0x484334(0x2c2)]=_0x144c4d,this[_0x484334(0x2aa)]=_0x193585,this[_0x484334(0x2d1)]=_0x37b1e0,this[_0x484334(0x302)]=_0x2c7d51,this['textEditingService']=_0x73b45f;}};cn=q([K(0x1,_0xe6cdb9),K(0x2,_0x221653),K(0x3,_0x213d24),K(0x4,_0x25c205),K(0x5,_0x2056f2),K(0x6,_0x593950),K(0x7,_0x23a0df(_0x231606)),K(0x8,_0x23a0df(_0x347ed5))],cn);const ln=_0x3f9745(0x179),un=_0x3f9745(0x1a0);function dn(_0x489e80){const _0x548e92=_0x3f9745;let {unitId:_0x2bb8b0,subUnitId:_0x3d8f83,nodeId:_0xfcd819,initialDescription:_0x510516=''}=_0x489e80,_0x11e006=_0x637cd2(_0xe6cdb9),_0x5474c8=_0x637cd2(_0x593950),_0x2da82f=_0x637cd2(_0x231606),[_0x1f67fa,_0x3180c0]=_0x31c5ea(_0x510516),_0x26444b=()=>_0x5474c8[_0x548e92(0x275)](un);return _0x1df344(_0x548e92(0x3f4),{'className':_0x548e92(0x28c),'data-board-mind-map-description-dialog':_0x548e92(0x373),'children':[_0x1df344(_0x548e92(0x23e),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-2','children':[_0x20d080(_0x548e92(0x181),{'className':_0x548e92(0x1d3),'children':_0x2da82f['t'](_0x548e92(0x3c1))}),_0x20d080(_0x55509e,{'autoFocus':!0x0,'className':_0x548e92(0x343),'placeholder':_0x2da82f['t'](_0x548e92(0x16f)),'value':_0x1f67fa,'onValueChange':_0x3180c0})]}),_0x1df344('div',{'className':_0x548e92(0x3a5),'children':[_0x20d080(_0x4d32f6,{'size':'small','variant':_0x548e92(0x20d),'onClick':_0x26444b,'children':_0x2da82f['t']('boards-mind-ui.cancel')}),_0x20d080(_0x4d32f6,{'size':_0x548e92(0x203),'variant':_0x548e92(0x16c),'onClick':()=>{const _0x30c2d9=_0x548e92;_0x11e006[_0x30c2d9(0x36f)](_0x36c50b['id'],{'unitId':_0x2bb8b0,'subUnitId':_0x3d8f83,'nodeId':_0xfcd819,'foreignAttributes':{'_note':_0x1f67fa['trim']()?_0x1f67fa:null}}),_0x26444b();},'children':_0x2da82f['t']('boards-mind-ui.saveDescription')})]})]});}const fn=_0x3f9745(0x25e),pn='FOCUSING_MIND_MAP_NODE',mn=_0x3f9745(0x1f8),hn={'copy':_0x1d9e54[_0x3f9745(0x34d)],'paste':_0x1d9e54[_0x3f9745(0x3d0)],'paste-as-new':_0x1d9e54[_0x3f9745(0x3d0)],'add-child':_0x1d9e54[_0x3f9745(0x2bc)],'add-sibling-or-child':_0x1d9e54[_0x3f9745(0x2d3)],'promote':_0x1d9e54['addParentNode'],'toggle-collapse':_0x1d9e54[_0x3f9745(0x29d)],'collapse-all':_0x1d9e54[_0x3f9745(0x316)],'edit-text':_0x1d9e54['editCurrentNode'],'open-description':_0x1d9e54[_0x3f9745(0x2b2)],'delete':_0x5acd83[_0x3f9745(0x2ff)],'arrow-left':_0x5acd83[_0x3f9745(0x13f)],'arrow-right':_0x5acd83['ARROW_RIGHT'],'arrow-up':_0x5acd83[_0x3f9745(0x2d5)],'arrow-down':_0x5acd83[_0x3f9745(0x273)]},gn={'delete':[_0x5acd83['BACKSPACE']]};function _n(_0x39c4a5){return[hn[_0x39c4a5],...gn[_0x39c4a5]??[]];}let vn=class extends _0xa1f691{constructor(_0x131acd,_0x4c9862,_0x10b4e5){const _0x3dbcc4=_0x3f9745;super(),this[_0x3dbcc4(0x1a6)]=_0x131acd,this[_0x3dbcc4(0x3b0)]=_0x4c9862,this['_shortcutService']=_0x10b4e5,this['_init']();}[_0x3f9745(0x284)](){const _0x56a51c=_0x3f9745;this[_0x56a51c(0x241)](this[_0x56a51c(0x3b0)][_0x56a51c(0x21c)](this[_0x56a51c(0x1b5)]())),this[_0x56a51c(0x34c)]()[_0x56a51c(0x185)](_0x5ea7d0=>{const _0x2372fc=_0x56a51c;this['disposeWithMe'](this['_shortcutService'][_0x2372fc(0x1bd)](_0x5ea7d0));});}['_createKeyboardShortcutOperation'](){const _0xdc2802=_0x3f9745;return{'id':fn,'type':_0x4d7358[_0xdc2802(0x1e5)],'handler':(_0xfe452b,_0x4c76b6,_0x171d76)=>{const _0x2442d9=_0xdc2802;let _0x93606d=yn(_0xfe452b,_0x171d76);return _0x93606d?this[_0x2442d9(0x26a)](_0x93606d,_0x4c76b6==null?void 0x0:_0x4c76b6[_0x2442d9(0x38d)]):!0x1;}};}[_0x3f9745(0x34c)](){const _0x46b370=_0x3f9745;let _0x16c86c=(_0x1fa4d5,_0x1e2464)=>({'id':fn,'binding':_0x1fa4d5,'priority':0xa0,'preconditions':_0x3eb768=>!!_0x3eb768[_0x46b370(0x303)](pn),'staticParameters':{'action':_0x1e2464}}),_0x337672=_0x2ddeb5=>_n(_0x2ddeb5)['map'](_0x204469=>_0x16c86c(_0x204469,_0x2ddeb5));return[..._0x337672(_0x46b370(0x34d)),{'id':fn,'binding':hn[_0x46b370(0x3d0)],'priority':0xa0,'preconditions':_0x61fcde=>!!this[_0x46b370(0x1a6)][_0x46b370(0x233)]()&&!!_0x61fcde[_0x46b370(0x303)]('FOCUSING_MIND_MAP_NODE'),'staticParameters':{'action':_0x46b370(0x3d0)}},{'id':fn,'binding':hn['paste-as-new'],'priority':0x96,'preconditions':_0x2d56f7=>!!this[_0x46b370(0x1a6)]['getPayload']()&&!!_0x2d56f7[_0x46b370(0x303)]('FOCUSING_MIND_MAP_BLANK_BOARD'),'staticParameters':{'action':_0x46b370(0x338)}},..._0x337672('add-child'),..._0x337672(_0x46b370(0x398)),..._0x337672(_0x46b370(0x292)),..._0x337672('toggle-collapse'),..._0x337672('collapse-all'),..._0x337672(_0x46b370(0x20b)),..._0x337672(_0x46b370(0x1d1)),..._0x337672(_0x46b370(0x1f2)),..._0x337672('arrow-left'),..._0x337672(_0x46b370(0x356)),..._0x337672(_0x46b370(0x30d)),..._0x337672('arrow-down')];}[_0x3f9745(0x26a)](_0x16076c,_0x3ab4ca){const _0x1d0e80=_0x3f9745;return _0x3ab4ca===_0x1d0e80(0x34d)?this[_0x1d0e80(0x17e)](_0x16076c):_0x3ab4ca===_0x1d0e80(0x3d0)?this[_0x1d0e80(0x395)](_0x16076c):_0x3ab4ca===_0x1d0e80(0x338)?this['_pasteAsNewMindMap'](_0x16076c):_0x3ab4ca===_0x1d0e80(0x120)?this[_0x1d0e80(0x38e)](_0x16076c):_0x3ab4ca===_0x1d0e80(0x398)?this['_addSiblingOrChild'](_0x16076c):_0x3ab4ca==='promote'?this['_executeNodeOperation'](_0x16076c,_0x25e131['id']):_0x3ab4ca==='toggle-collapse'?this[_0x1d0e80(0x385)](_0x16076c,_0x1866d6['id']):_0x3ab4ca===_0x1d0e80(0x1e0)?this[_0x1d0e80(0x325)](_0x16076c):_0x3ab4ca===_0x1d0e80(0x20b)?this[_0x1d0e80(0x142)](_0x16076c):_0x3ab4ca===_0x1d0e80(0x1d1)?this[_0x1d0e80(0x3c4)](_0x16076c):_0x3ab4ca===_0x1d0e80(0x1f2)?this[_0x1d0e80(0x34a)](_0x16076c):_0x3ab4ca&&bn(_0x3ab4ca)?this[_0x1d0e80(0x3cf)](_0x16076c,_0x3ab4ca):!0x1;}[_0x3f9745(0x17e)](_0x5ace4c){const _0x117efd=_0x3f9745;let _0x1c352e=this[_0x117efd(0x1f0)](_0x5ace4c);return _0x1c352e?(_0x5ace4c[_0x117efd(0x318)][_0x117efd(0x36f)](_0x273549['id'],{'unitId':_0x1c352e['unitId'],'subUnitId':_0x1c352e[_0x117efd(0x15e)],'nodeId':_0x1c352e[_0x117efd(0x321)]}),!0x0):!0x1;}[_0x3f9745(0x395)](_0x4387b3){const _0x8b8a73=_0x3f9745;let _0x5cf21a=this[_0x8b8a73(0x1f0)](_0x4387b3);return!_0x5cf21a||!_0x4387b3[_0x8b8a73(0x2aa)][_0x8b8a73(0x233)]()?!0x1:(this[_0x8b8a73(0x3f8)](_0x4387b3,_0x107e65['id'],{'unitId':_0x5cf21a[_0x8b8a73(0x293)],'subUnitId':_0x5cf21a[_0x8b8a73(0x15e)],'targetNodeId':_0x5cf21a[_0x8b8a73(0x321)]},_0x5cf21a[_0x8b8a73(0x327)]),!0x0);}[_0x3f9745(0x3b9)](_0x406614){const _0x1fa341=_0x3f9745;let _0x567870=this['_getBlankBoardContext'](_0x406614);if(!_0x567870||!_0x406614[_0x1fa341(0x2aa)]['getPayload']())return!0x1;let _0x323ab0=_0x406614[_0x1fa341(0x2c2)][_0x1fa341(0x2f3)](),_0x12b6c2=Number[_0x1fa341(0x271)](_0x323ab0[_0x1fa341(0x2c7)])&&_0x323ab0[_0x1fa341(0x2c7)]>0x0?_0x323ab0['zoomRatio']:0x1,_0x5d2aa8=Math[_0x1fa341(0x141)]((0x40-_0x323ab0['viewportPanOffset']['x'])/_0x12b6c2),_0x518bad=Math['round']((0x40-_0x323ab0[_0x1fa341(0x390)]['y'])/_0x12b6c2);return _0x406614[_0x1fa341(0x318)][_0x1fa341(0x36f)](_0x21dc36['id'],{'unitId':_0x567870[_0x1fa341(0x293)],'subUnitId':_0x567870[_0x1fa341(0x15e)],'left':_0x5d2aa8,'top':_0x518bad}),!0x0;}[_0x3f9745(0x38e)](_0x4dcb7e){const _0x120a88=_0x3f9745;let _0x50ce31=this[_0x120a88(0x1f0)](_0x4dcb7e);if(!_0x50ce31)return!0x1;let _0x5da869=_0x57f8a7(0x6);return this['_executeCreateAndEdit'](_0x4dcb7e,_0x1e1375['id'],{'unitId':_0x50ce31[_0x120a88(0x293)],'subUnitId':_0x50ce31[_0x120a88(0x15e)],'parentNodeId':_0x50ce31[_0x120a88(0x321)],'nodeId':_0x5da869,'connectorId':_0x57f8a7(0x6),'text':_0x4dcb7e[_0x120a88(0x302)]['t']('boards-mind-ui.panel.addText')},_0x50ce31[_0x120a88(0x327)],_0x5da869),!0x0;}[_0x3f9745(0x3d7)](_0x1fc08c){const _0x246649=_0x3f9745;let _0x33fbff=this[_0x246649(0x1f0)](_0x1fc08c);if(!_0x33fbff)return!0x1;let _0xf0f388=_0x57f8a7(0x6);return this[_0x246649(0x347)](_0x1fc08c,_0x33fbff[_0x246649(0x220)]?_0x1e1375['id']:_0x2fd84d['id'],{'unitId':_0x33fbff[_0x246649(0x293)],'subUnitId':_0x33fbff[_0x246649(0x15e)],..._0x33fbff[_0x246649(0x220)]?{'parentNodeId':_0x33fbff[_0x246649(0x321)],'nodeId':_0xf0f388}:{'nodeId':_0x33fbff['nodeId'],'siblingNodeId':_0xf0f388},'connectorId':_0x57f8a7(0x6),'text':_0x1fc08c[_0x246649(0x302)]['t'](_0x246649(0x3b4))},_0x33fbff[_0x246649(0x327)],_0xf0f388),!0x0;}['_executeNodeOperation'](_0x3bde2f,_0x26909c){const _0x3f32fe=_0x3f9745;let _0x313cbe=this['_getSelectedMindMapContext'](_0x3bde2f);return _0x313cbe?(this[_0x3f32fe(0x3f8)](_0x3bde2f,_0x26909c,{'unitId':_0x313cbe[_0x3f32fe(0x293)],'subUnitId':_0x313cbe[_0x3f32fe(0x15e)],'nodeId':_0x313cbe[_0x3f32fe(0x321)]},_0x313cbe[_0x3f32fe(0x327)]),!0x0):!0x1;}[_0x3f9745(0x34a)](_0xc3b4ef){const _0x5c9c82=_0x3f9745;let _0x4b4d5e=this[_0x5c9c82(0x1f0)](_0xc3b4ef);if(!_0x4b4d5e)return!0x1;let _0x45a004=_0xc3b4ef[_0x5c9c82(0x318)][_0x5c9c82(0x197)](_0x48a6ce['id'],{'unitId':_0x4b4d5e[_0x5c9c82(0x293)],'subUnitId':_0x4b4d5e[_0x5c9c82(0x15e)],'nodeId':_0x4b4d5e[_0x5c9c82(0x321)]});return _0x45a004&&_0xc3b4ef['elementStateService'][_0x5c9c82(0x39a)](),_0x45a004;}['_collapseAll'](_0x85d539){const _0x36049f=_0x3f9745;let _0xf006a0=this['_getSelectedMindMapContext'](_0x85d539);if(!_0xf006a0)return!0x1;let _0x1e704f=_0x85d539[_0x36049f(0x304)][_0x36049f(0x192)](_0xf006a0['unitId'],_0xf006a0[_0x36049f(0x15e)]),_0x8aa114=Object[_0x36049f(0x2c8)](_0x1e704f)[_0x36049f(0x3ea)](_0x348f79=>{const _0x8e0e3f=_0x36049f;let _0x1f162b=_0x446d08(_0x348f79[_0x8e0e3f(0x1ba)]);return(_0x1f162b==null?void 0x0:_0x1f162b[_0x8e0e3f(0x305)])===_0xf006a0[_0x8e0e3f(0x327)]&&this[_0x8e0e3f(0x258)](_0x1e704f,_0xf006a0['scopeId'],_0x348f79['elementId'])[_0x8e0e3f(0x3cb)]>0x0?{'nodeId':_0x348f79[_0x8e0e3f(0x341)],'collapsed':_0x1f162b[_0x8e0e3f(0x326)]}:null;})[_0x36049f(0x183)](_0x9adc1b=>!!_0x9adc1b);if(_0x8aa114['length']===0x0)return!0x1;let _0xb645a0=_0x8aa114[_0x36049f(0x12a)](_0x111568=>!_0x111568['collapsed']),_0x150c00=_0x85d539[_0x36049f(0x318)],_0x4d12c9=_0x8aa114[_0x36049f(0x3ea)](_0x299911=>_0x150c00[_0x36049f(0x36f)](_0x1866d6['id'],{'unitId':_0xf006a0['unitId'],'subUnitId':_0xf006a0[_0x36049f(0x15e)],'nodeId':_0x299911[_0x36049f(0x321)],'collapsed':_0xb645a0}));return Promise[_0x36049f(0x391)](_0x4d12c9[_0x36049f(0x3ea)](_0x3b3b1b=>Promise['resolve'](_0x3b3b1b)))[_0x36049f(0x16d)](_0x288961=>{const _0x3f1c3a=_0x36049f;_0x288961[_0x3f1c3a(0x12a)](Boolean)&&_0x150c00[_0x3f1c3a(0x36f)](_0x14174c['id'],{'unitId':_0xf006a0['unitId'],'subUnitId':_0xf006a0[_0x3f1c3a(0x15e)],'scopeId':_0xf006a0['scopeId']});}),!0x0;}[_0x3f9745(0x142)](_0x2a5e15){const _0x3b4c62=_0x3f9745;let _0x1da1d1=this[_0x3b4c62(0x1f0)](_0x2a5e15);if(!_0x1da1d1)return!0x1;_0x2a5e15[_0x3b4c62(0x1b4)][_0x3b4c62(0x339)]({'unitId':_0x1da1d1[_0x3b4c62(0x293)],'subUnitId':_0x1da1d1[_0x3b4c62(0x15e)]},[_0x1da1d1[_0x3b4c62(0x321)]],_0x1da1d1[_0x3b4c62(0x321)]);let _0x4e9a8f=_0x2a5e15[_0x3b4c62(0x208)];return _0x4e9a8f[_0x3b4c62(0x265)](),_0x4e9a8f[_0x3b4c62(0x133)]({'unitId':_0x1da1d1[_0x3b4c62(0x293)],'subUnitId':_0x1da1d1[_0x3b4c62(0x15e)],'shapeId':_0x1da1d1['nodeId'],'shapeKey':_0x16f58d(_0x1da1d1[_0x3b4c62(0x293)],_0x1da1d1['nodeId']),'visible':!0x0}),!0x0;}[_0x3f9745(0x3c4)](_0x28aa76){const _0x344c9c=_0x3f9745;let _0x33ccef=this['_getSelectedMindMapContext'](_0x28aa76);return _0x33ccef?(_0x28aa76[_0x344c9c(0x2d1)][_0x344c9c(0x2ef)]({'id':un,'title':{'title':'boards-mind-ui.description'},'width':0x1a4,'draggable':!0x0,'mask':!0x1,'maskClosable':!0x0,'children':{'label':ln,'unitId':_0x33ccef[_0x344c9c(0x293)],'subUnitId':_0x33ccef[_0x344c9c(0x15e)],'nodeId':_0x33ccef['nodeId'],'initialDescription':_0x33ccef['description']}}),!0x0):!0x1;}[_0x3f9745(0x3cf)](_0x8f6be6,_0x4c498e){const _0x2911ed=_0x3f9745;let _0x2951ed=this[_0x2911ed(0x1f0)](_0x8f6be6);if(!_0x2951ed)return!0x1;let _0x46b814=_0x8f6be6[_0x2911ed(0x304)][_0x2911ed(0x192)](_0x2951ed[_0x2911ed(0x293)],_0x2951ed[_0x2911ed(0x15e)]),_0x537e05=_0x46b814[_0x2951ed['nodeId']],_0x17e2d0=_0x446d08(_0x537e05==null?void 0x0:_0x537e05[_0x2911ed(0x1ba)]);if(!_0x537e05||!_0x17e2d0)return!0x1;let _0x2b6e52={'arrow-left':_0x2911ed(0x130),'arrow-right':_0x2911ed(0x1bc),'arrow-up':'ArrowUp','arrow-down':_0x2911ed(0x306)}[_0x4c498e];if(!_0x2b6e52)return!0x1;let _0x1f38fc=this[_0x2911ed(0x2ea)](_0x46b814,_0x2951ed[_0x2911ed(0x321)],_0x17e2d0,_0x2b6e52);return _0x1f38fc?(_0x8f6be6[_0x2911ed(0x1b4)]['selectElements']({'unitId':_0x2951ed[_0x2911ed(0x293)],'subUnitId':_0x2951ed[_0x2911ed(0x15e)]},[_0x1f38fc],_0x1f38fc),!0x0):!0x1;}[_0x3f9745(0x2ea)](_0x11a8c4,_0x5019d1,_0x1947d5,_0xac9646){const _0x3a797c=_0x3f9745;let _0x249a85=this['_getMindMapChildren'](_0x11a8c4,_0x1947d5[_0x3a797c(0x305)],_0x5019d1);if(_0x1947d5[_0x3a797c(0x167)]===null){if(_0xac9646===_0x3a797c(0x130)){var _0x4a647e;return((_0x4a647e=_0x249a85['find'](_0x5fba00=>{const _0x2887de=_0x3a797c;var _0x1bbe8b;return((_0x1bbe8b=_0x446d08(_0x5fba00[_0x2887de(0x1ba)]))==null?void 0x0:_0x1bbe8b[_0x2887de(0x24a)])==='left';}))==null?void 0x0:_0x4a647e[_0x3a797c(0x341)])??null;}if(_0xac9646==='ArrowRight'){var _0x202a0a;return((_0x202a0a=_0x249a85[_0x3a797c(0x2cb)](_0x1cd417=>{const _0x4d4bac=_0x3a797c;var _0x12bb30;return(((_0x12bb30=_0x446d08(_0x1cd417[_0x4d4bac(0x1ba)]))==null?void 0x0:_0x12bb30['side'])??_0x4d4bac(0x2f9))===_0x4d4bac(0x2f9);}))==null?void 0x0:_0x202a0a['elementId'])??null;}return null;}let _0x5db307=_0x1947d5[_0x3a797c(0x24a)]??'right',_0x401f3e=_0x5db307===_0x3a797c(0x2f9)?_0x3a797c(0x130):'ArrowRight',_0x35e8f2=_0x5db307===_0x3a797c(0x2f9)?_0x3a797c(0x1bc):'ArrowLeft';if(_0xac9646===_0x401f3e)return _0x1947d5[_0x3a797c(0x167)];if(_0xac9646===_0x35e8f2){var _0x415a4d;return((_0x415a4d=_0x249a85[0x0])==null?void 0x0:_0x415a4d[_0x3a797c(0x341)])??null;}if(_0xac9646===_0x3a797c(0x39f)||_0xac9646===_0x3a797c(0x306)){let _0x5a399a=this[_0x3a797c(0x258)](_0x11a8c4,_0x1947d5['structureScopeId'],_0x1947d5['parentNodeId']),_0x51aa19=_0x5a399a[_0x3a797c(0x1d0)](_0x3ebe9b=>_0x3ebe9b[_0x3a797c(0x341)]===_0x5019d1),_0x47f230=_0xac9646==='ArrowUp'?_0x5a399a[_0x51aa19-0x1]:_0x5a399a[_0x51aa19+0x1];return(_0x47f230==null?void 0x0:_0x47f230[_0x3a797c(0x341)])??null;}return null;}[_0x3f9745(0x258)](_0x2e4665,_0x38cac5,_0x2f3241){const _0x124968=_0x3f9745;return Object[_0x124968(0x2c8)](_0x2e4665)[_0x124968(0x183)](_0x374103=>{const _0x303b3a=_0x124968;let _0x81a135=_0x446d08(_0x374103['element']);return(_0x81a135==null?void 0x0:_0x81a135[_0x303b3a(0x305)])===_0x38cac5&&_0x81a135[_0x303b3a(0x167)]===_0x2f3241&&_0x374103['element'][_0x303b3a(0x3ce)]!==!0x1;})[_0x124968(0x1c1)]((_0x1c11af,_0x516ea8)=>{const _0x1ce062=_0x124968;let _0x5546e9=_0x446d08(_0x1c11af[_0x1ce062(0x1ba)]),_0x5978c8=_0x446d08(_0x516ea8[_0x1ce062(0x1ba)]);return _0x59630c(_0x5546e9==null?void 0x0:_0x5546e9['orderKey'],_0x5978c8==null?void 0x0:_0x5978c8['orderKey'])||_0x1c11af[_0x1ce062(0x341)][_0x1ce062(0x2e1)](_0x516ea8['elementId']);});}[_0x3f9745(0x1f0)](_0x42a07e){const _0x2857f=_0x3f9745;var _0x5da418;let _0x2439d7=_0x42a07e['elementStateService']['getSnapshot'](),_0x24ec3a=_0x2439d7[_0x2857f(0x240)]??_0x2439d7[_0x2857f(0x3af)][0x0];if(!_0x2439d7[_0x2857f(0x152)]||!_0x24ec3a||_0x2439d7[_0x2857f(0x3af)][_0x2857f(0x3cb)]!==0x1||_0x2439d7[_0x2857f(0x206)]||_0x2439d7[_0x2857f(0x2e6)])return null;let _0x25425c=_0x42a07e[_0x2857f(0x304)][_0x2857f(0x192)](_0x2439d7['context']['unitId'],_0x2439d7['context'][_0x2857f(0x15e)])[_0x24ec3a],_0x509e7a=_0x446d08(_0x25425c==null?void 0x0:_0x25425c['element']);return!_0x25425c||!_0x509e7a?null:{'unitId':_0x2439d7[_0x2857f(0x152)][_0x2857f(0x293)],'subUnitId':_0x2439d7[_0x2857f(0x152)][_0x2857f(0x15e)],'nodeId':_0x24ec3a,'scopeId':_0x509e7a['structureScopeId'],'isRoot':_0x509e7a['parentNodeId']===null,'description':((_0x5da418=_0x509e7a[_0x2857f(0x165)])==null?void 0x0:_0x5da418[_0x2857f(0x222)])??''};}[_0x3f9745(0x32e)](_0x569991){const _0x4c679c=_0x3f9745;let _0x2ba229=_0x569991['elementStateService'][_0x4c679c(0x195)]();return!_0x2ba229[_0x4c679c(0x152)]||_0x2ba229[_0x4c679c(0x206)]||_0x2ba229['isTransforming']||_0x2ba229[_0x4c679c(0x3af)][_0x4c679c(0x3cb)]>0x0||_0x2ba229['focusedId']?null:{'unitId':_0x2ba229[_0x4c679c(0x152)][_0x4c679c(0x293)],'subUnitId':_0x2ba229[_0x4c679c(0x152)][_0x4c679c(0x15e)]};}['_executeAndLayout'](_0x3957a4,_0x7de7be,_0x18b49f,_0xb58d72){const _0x536e81=_0x3f9745;let _0x1d50ed=_0x3957a4[_0x536e81(0x318)],_0x5a93a9=_0x1d50ed[_0x536e81(0x36f)](_0x7de7be,_0x18b49f);Promise[_0x536e81(0x376)](_0x5a93a9)[_0x536e81(0x16d)](_0x17daa6=>{const _0x5f42b6=_0x536e81;_0x17daa6&&_0x1d50ed[_0x5f42b6(0x36f)](_0x14174c['id'],{'unitId':_0x18b49f['unitId'],'subUnitId':_0x18b49f[_0x5f42b6(0x15e)],'scopeId':_0xb58d72});});}[_0x3f9745(0x347)](_0x304238,_0x65f59e,_0x49d404,_0x3c37ab,_0x530df4){const _0x21b599=_0x3f9745;let _0x514edf={'unitId':_0x49d404['unitId'],'subUnitId':_0x49d404['subUnitId']},_0x21824a=_0x304238[_0x21b599(0x318)],_0x979e7c=_0x21824a[_0x21b599(0x36f)](_0x65f59e,_0x49d404);Promise[_0x21b599(0x376)](_0x979e7c)['then'](_0x22ba2e=>{const _0xd40f5c=_0x21b599;if(!_0x22ba2e)return;_0x21824a[_0xd40f5c(0x36f)](_0x14174c['id'],{..._0x514edf,'scopeId':_0x3c37ab}),_0x304238[_0xd40f5c(0x1b4)][_0xd40f5c(0x339)](_0x514edf,[_0x530df4],_0x530df4);let _0x2b79ee=_0x304238[_0xd40f5c(0x208)];_0x2b79ee[_0xd40f5c(0x265)](),_0x2b79ee[_0xd40f5c(0x133)]({..._0x514edf,'shapeId':_0x530df4,'shapeKey':_0x16f58d(_0x514edf[_0xd40f5c(0x293)],_0x530df4),'visible':!0x0});});}};vn=q([K(0x0,_0x2056f2),K(0x1,_0xe6cdb9),K(0x2,_0x469a0d)],vn);function yn(_0x3e36e6,_0x387770){const _0x3bed2a=_0x3f9745;var _0x194f8f,_0x3b7a8a;let _0x50e544=typeof(_0x387770==null?void 0x0:_0x387770[_0x3bed2a(0x293)])=='string'?_0x387770['unitId']:(_0x194f8f=_0x3e36e6[_0x3bed2a(0x3bb)](_0x23feb0)[_0x3bed2a(0x25f)](_0x1a4a16['UNIVER_BOARD']))==null?void 0x0:_0x194f8f[_0x3bed2a(0x1eb)]();return _0x50e544?((_0x3b7a8a=_0x3e36e6[_0x3bed2a(0x3bb)](_0x54cb1b)[_0x3bed2a(0x31c)](_0x50e544))==null?void 0x0:_0x3b7a8a[_0x3bed2a(0x3c0)](cn))??null:null;}function bn(_0x58296c){const _0x14e208=_0x3f9745;return _0x58296c===_0x14e208(0x2a7)||_0x58296c==='arrow-right'||_0x58296c===_0x14e208(0x30d)||_0x58296c==='arrow-down';}const xn={'min':0x1,'max':0x5,'defaultValue':0x3},Sn={'min':0x0,'max':0x64,'defaultValue':0x64},Cn=[{'kind':_0x3f9745(0x314),'titleKey':_0x3f9745(0x2ad),'panel':'line'},{'kind':_0x3f9745(0x3b2),'titleKey':_0x3f9745(0x1c7)},{'kind':_0x3f9745(0x15f),'titleKey':'boards-mind-ui.toolbar.primary.typography'},{'kind':_0x3f9745(0x314),'titleKey':_0x3f9745(0x2f8),'panel':_0x3f9745(0x211),'dividerBefore':!0x0}],wn={'addSibling':_0x3f9745(0x398),'addChild':'add-child','copy':'copy','paste':_0x3f9745(0x3d0),'delete':_0x3f9745(0x1f2)},Tn=[{'key':_0x3f9745(0x3c9),'title':_0x3f9745(0x313),'items':[{'value':_0x3f9745(0x2f4),'icon':'mindmap-horizontal'},{'value':_0x3f9745(0x30b),'icon':_0x3f9745(0x30b)}]},{'key':_0x3f9745(0x1b3),'title':_0x3f9745(0x31a),'items':[{'value':'tree-right','icon':_0x3f9745(0x37e)},{'value':'tree-left','icon':_0x3f9745(0x2fc)},{'value':'tree-alternate','icon':'tree-alternate'}]},{'key':'timeline','title':_0x3f9745(0x346),'items':[{'value':'timeline-horizontal','icon':_0x3f9745(0x166)},{'value':_0x3f9745(0x300),'icon':_0x3f9745(0x300)}]}],En={'key':_0x3f9745(0x3b7),'title':_0x3f9745(0x35e),'items':[{'value':_0x3f9745(0x297),'icon':'branch-curve'},{'value':_0x3f9745(0x2a1),'icon':'branch-rounded-orthogonal'},{'value':'orthogonal','icon':'branch-orthogonal'}]},Dn=_0x3f9745(0x1e9);function On(_0x520051,_0x4aace5){const _0x4f05f9=_0x3f9745;_0x520051[_0x4f05f9(0x36f)](fn,{'action':_0x4aace5});}const kn={'line':_0x385dec,'more':_0x658bf2};function An(_0x4798a5){const _0x242a62=_0x3f9745;_0x4798a5[_0x242a62(0x22f)](),_0x4798a5[_0x242a62(0x128)]();}function jn(_0x402bd5,_0x2d92f7=_0x3f9745(0x3ef),_0x256e46){return _0x20d080(_0x389bfd,{'children':_0x20d080(_0x402bd5,{'className':_0x2d92f7,'extend':_0x256e46})});}function Mn(_0x341508){const _0x1c1a87=_0x3f9745;var _0x4a2390,_0x6b20b4;let _0x4826fb=(_0x341508==null?void 0x0:_0x341508['shapeText'])??{},_0x2c701c=_0x4826fb[_0x1c1a87(0x322)]&&typeof _0x4826fb[_0x1c1a87(0x322)]==_0x1c1a87(0x375)?_0x4826fb['dataModel']:{},_0x460981=(_0x4a2390=_0x2c701c[_0x1c1a87(0x1fa)])==null||(_0x4a2390=_0x4a2390[_0x1c1a87(0x22a)])==null?void 0x0:_0x4a2390[_0x1c1a87(0x127)];return{'color':typeof _0x4826fb[_0x1c1a87(0x17b)]==_0x1c1a87(0x18c)?_0x4826fb[_0x1c1a87(0x17b)]:(_0x460981==null||(_0x6b20b4=_0x460981['cl'])==null?void 0x0:_0x6b20b4[_0x1c1a87(0x2d2)])??_0x6f7fc0,'fontFamily':typeof _0x4826fb[_0x1c1a87(0x36d)]=='string'?_0x4826fb[_0x1c1a87(0x36d)]:(_0x460981==null?void 0x0:_0x460981['ff'])??_0x3c33f8['ff'],'fontSize':typeof _0x4826fb[_0x1c1a87(0x371)]==_0x1c1a87(0x1dd)?_0x4826fb[_0x1c1a87(0x371)]:typeof(_0x460981==null?void 0x0:_0x460981['fs'])==_0x1c1a87(0x1dd)?_0x460981['fs']:_0x3c33f8['fs'],'horizontalAlign':_0x4826fb['horizontalAlign']??_0x2c701c['ha']??_0x308ca0[_0x1c1a87(0x236)],'textFill':_0x4826fb['textFill']&&typeof _0x4826fb[_0x1c1a87(0x367)]==_0x1c1a87(0x375)?_0x4826fb[_0x1c1a87(0x367)]:_0x460981==null?void 0x0:_0x460981[_0x1c1a87(0x367)],'verticalAlign':_0x4826fb['verticalAlign']??_0x2c701c['va']??_0x49ff9d['MIDDLE']};}function Nn(_0x43e5ce,_0x121d96){const _0x37ef87=_0x3f9745;if(!_0x121d96)return;let _0x1f7913=_n(_0x121d96);if(!_0x1f7913[_0x37ef87(0x3cb)])return;let _0x1a976f=_0x1f7913[_0x37ef87(0x3ea)](_0x46278b=>_0x43e5ce[_0x37ef87(0x1b0)]({'id':_0x37ef87(0x25e),'binding':_0x46278b,'staticParameters':{'action':_0x121d96}})??void 0x0)[_0x37ef87(0x183)](_0x194f58=>!!_0x194f58);return _0x1a976f[_0x37ef87(0x3cb)]?[...new Set(_0x1a976f)][_0x37ef87(0x285)]('/'):void 0x0;}async function Pn(_0x1c2a3b,_0x5a47b8,_0x148075){const _0x14b945=_0x3f9745;return await Promise[_0x14b945(0x376)](_0x5a47b8(()=>_0x1c2a3b[_0x14b945(0x36f)](_0x692b62['id'],_0x148075)))?(await Promise[_0x14b945(0x376)](_0x5a47b8(()=>_0x1c2a3b[_0x14b945(0x36f)](_0x14174c['id'],{'unitId':_0x148075['unitId'],'subUnitId':_0x148075[_0x14b945(0x15e)],'scopeId':_0x148075[_0x14b945(0x327)]}))),!0x0):!0x1;}async function Fn(_0x309f9b,_0x163114,_0x279172){const _0x47fdfa=_0x3f9745;return await Promise[_0x47fdfa(0x376)](_0x163114(()=>_0x309f9b[_0x47fdfa(0x36f)](_0xbc0b93['id'],_0x279172)))?(await Promise[_0x47fdfa(0x376)](_0x163114(()=>_0x309f9b[_0x47fdfa(0x36f)](_0x14174c['id'],{'unitId':_0x279172[_0x47fdfa(0x293)],'subUnitId':_0x279172['subUnitId'],'scopeId':_0x279172[_0x47fdfa(0x327)]}))),!0x0):!0x1;}function In({className:_0x54cc2f='univer-size-5'}){const _0x163569=_0x3f9745;return _0x20d080(_0x389bfd,{'children':_0x1df344(_0x163569(0x123),{'className':_0x54cc2f,'viewBox':'0\x200\x2024\x2024','fill':_0x163569(0x3f1),'aria-hidden':_0x163569(0x373),'children':[_0x20d080(_0x163569(0x188),{'d':_0x163569(0x39d),'stroke':_0x163569(0x259),'strokeWidth':'1.8','strokeLinecap':_0x163569(0x141)}),_0x20d080(_0x163569(0x188),{'d':'M19.5\x207.5h-4.2c-1.9\x200-3.3\x201.5-3.3\x203.3','stroke':_0x163569(0x259),'strokeWidth':_0x163569(0x157),'strokeLinecap':'round'}),_0x20d080(_0x163569(0x188),{'d':'M4.5\x2016.5h4.2c1.9\x200\x203.3-1.5\x203.3-3.3','stroke':_0x163569(0x259),'strokeWidth':_0x163569(0x157),'strokeLinecap':_0x163569(0x141)})]})});}function Ln({icon:_0xf0de55}){const _0x1c2bed=_0x3f9745;let _0x338bf3=_0x1c2bed(0x3a4),_0x46090b={'stroke':_0x1c2bed(0x259),'strokeWidth':2.6,'strokeLinecap':_0x1c2bed(0x141),'strokeLinejoin':_0x1c2bed(0x141)},_0x291913={'stroke':_0x338bf3,'strokeWidth':3.2,'strokeLinecap':_0x1c2bed(0x141)};return _0x1df344(_0x1c2bed(0x123),{'className':_0x1c2bed(0x1a3),'viewBox':_0x1c2bed(0x307),'fill':'none','aria-hidden':_0x1c2bed(0x373),'children':[_0xf0de55===_0x1c2bed(0x2f4)&&_0x1df344(_0x5f274b,{'children':[_0x20d080('path',{'d':_0x1c2bed(0x389),..._0x46090b}),_0x20d080(_0x1c2bed(0x188),{'d':_0x1c2bed(0x2de),..._0x291913})]}),_0xf0de55==='mindmap-vertical'&&_0x1df344(_0x5f274b,{'children':[_0x20d080(_0x1c2bed(0x188),{'d':'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',..._0x46090b}),_0x20d080(_0x1c2bed(0x188),{'d':'M22\x208h36M22\x2048h36M14\x2018v20M66\x2018v20','stroke':_0x338bf3,'strokeWidth':2.6,'strokeLinecap':_0x1c2bed(0x141),'strokeDasharray':'6\x207'})]}),_0xf0de55==='tree-right'&&_0x1df344(_0x5f274b,{'children':[_0x20d080(_0x1c2bed(0x188),{'d':_0x1c2bed(0x1d5),..._0x46090b}),_0x20d080(_0x1c2bed(0x188),{'d':_0x1c2bed(0x33b),..._0x291913}),_0x20d080(_0x1c2bed(0x15b),{'cx':'24','cy':'12','r':'3','fill':_0x1c2bed(0x259)})]}),_0xf0de55===_0x1c2bed(0x2fc)&&_0x1df344(_0x5f274b,{'children':[_0x20d080(_0x1c2bed(0x188),{'d':'M56\x2012v32M56\x2019c0\x204-3\x206-7\x206h-7M56\x2029c0\x204-3\x206-7\x206h-7M56\x2039c0\x204-3\x206-7\x206h-7',..._0x46090b}),_0x20d080(_0x1c2bed(0x188),{'d':_0x1c2bed(0x229),..._0x291913}),_0x20d080(_0x1c2bed(0x15b),{'cx':'56','cy':'12','r':'3','fill':_0x1c2bed(0x259)})]}),_0xf0de55===_0x1c2bed(0x2a6)&&_0x1df344(_0x5f274b,{'children':[_0x20d080(_0x1c2bed(0x188),{'d':'M42\x2012v32M42\x2020c0\x204-3\x206-7\x206h-7M42\x2030c0\x204\x203\x206\x207\x206h7M42\x2039c0\x204-3\x206-7\x206h-7',..._0x46090b}),_0x20d080(_0x1c2bed(0x188),{'d':_0x1c2bed(0x270),..._0x291913}),_0x20d080(_0x1c2bed(0x15b),{'cx':'42','cy':'12','r':'3','fill':'currentColor'})]}),_0xf0de55===_0x1c2bed(0x166)&&_0x1df344(_0x5f274b,{'children':[_0x20d080(_0x1c2bed(0x188),{'d':_0x1c2bed(0x2fb),..._0x46090b}),_0x20d080(_0x1c2bed(0x188),{'d':'M56\x2011h11M56\x2051h11',..._0x291913}),_0x20d080(_0x1c2bed(0x15b),{'cx':'17','cy':'31','r':'3','fill':_0x1c2bed(0x259)})]}),_0xf0de55==='timeline-vertical'&&_0x1df344(_0x5f274b,{'children':[_0x20d080(_0x1c2bed(0x188),{'d':'M40\x209v40M40\x2020c8\x200\x2011\x204\x2011\x2011v8M40\x2035c-8\x200-11\x204-11\x2011v4',..._0x46090b}),_0x20d080(_0x1c2bed(0x188),{'d':_0x1c2bed(0x3c3),..._0x291913}),_0x20d080('circle',{'cx':'40','cy':'9','r':'3','fill':_0x1c2bed(0x259)})]}),_0xf0de55===_0x1c2bed(0x18f)&&_0x20d080(_0x5f274b,{'children':_0x20d080(_0x1c2bed(0x188),{'d':_0x1c2bed(0x149),..._0x46090b})}),_0xf0de55==='branch-rounded-orthogonal'&&_0x20d080(_0x5f274b,{'children':_0x20d080('path',{'d':_0x1c2bed(0x1d8),..._0x46090b})}),_0xf0de55===_0x1c2bed(0x151)&&_0x20d080(_0x5f274b,{'children':_0x20d080(_0x1c2bed(0x188),{'d':_0x1c2bed(0x331),..._0x46090b})})]});}function Rn(_0x3661ec,_0x5c98f4){const _0x5cc3c5=_0x3f9745;let _0x139af0=_0x3661ec['textStyle'],_0x53febf=_0x14f44b(_0x139af0),_0x5ad241={..._0x53febf[_0x5cc3c5(0x17b)]===void 0x0?null:{'color':_0x53febf['color']},..._0x53febf[_0x5cc3c5(0x36d)]===void 0x0?null:{'fontFamily':_0x53febf[_0x5cc3c5(0x36d)]},..._0x53febf[_0x5cc3c5(0x371)]===void 0x0?null:{'fontSize':_0x53febf[_0x5cc3c5(0x371)]},..._0x53febf[_0x5cc3c5(0x3ad)]===void 0x0?null:{'bold':_0x53febf[_0x5cc3c5(0x3ad)]},..._0x53febf[_0x5cc3c5(0x381)]===void 0x0?null:{'italic':_0x53febf[_0x5cc3c5(0x381)]},..._0x53febf[_0x5cc3c5(0x231)]===void 0x0?null:{'underline':_0x53febf[_0x5cc3c5(0x231)]},..._0x53febf[_0x5cc3c5(0x1e7)]===void 0x0?null:{'strikethrough':_0x53febf[_0x5cc3c5(0x1e7)]},..._0x53febf[_0x5cc3c5(0x367)]===void 0x0?null:{'textFill':_0x53febf[_0x5cc3c5(0x367)]}};_0x3661ec['horizontalAlign']!==void 0x0&&(_0x5ad241[_0x5cc3c5(0x369)]=_0x3661ec['horizontalAlign']),_0x3661ec['verticalAlign']!==void 0x0&&(_0x5ad241[_0x5cc3c5(0x29e)]=_0x3661ec[_0x5cc3c5(0x29e)]),Object[_0x5cc3c5(0x38b)](_0x5ad241)[_0x5cc3c5(0x3cb)]>0x0&&_0x5c98f4({'textStyle':_0x5ad241});}function zn(_0x2e21b1,_0x364964,_0x234fa9){const _0x43be53=_0x3f9745;let _0x33299d=_0x2e21b1??{},_0x22a97c=_0x50abd0(_0x33299d,_0x364964),_0x873211=_0x22a97c[_0x43be53(0x394)]??_0x33299d['shapeText']??{};return{..._0x33299d,..._0x22a97c,'shapeText':{..._0x873211,..._0x234fa9[_0x43be53(0x17b)]===void 0x0?null:{'color':_0x234fa9['color']},..._0x234fa9[_0x43be53(0x371)]===void 0x0?null:{'fontSize':_0x234fa9['fontSize']},..._0x234fa9[_0x43be53(0x3ad)]===void 0x0?null:{'bold':_0x234fa9[_0x43be53(0x3ad)]},..._0x234fa9['italic']===void 0x0?null:{'italic':_0x234fa9['italic']},..._0x234fa9[_0x43be53(0x231)]===void 0x0?null:{'underline':_0x234fa9[_0x43be53(0x231)]},..._0x234fa9[_0x43be53(0x1e7)]===void 0x0?null:{'strikethrough':_0x234fa9['strikethrough']},..._0x234fa9['horizontalAlign']===void 0x0?null:{'horizontalAlign':_0x234fa9['horizontalAlign']},..._0x234fa9['verticalAlign']===void 0x0?null:{'verticalAlign':_0x234fa9[_0x43be53(0x29e)]},..._0x234fa9[_0x43be53(0x367)]===void 0x0?null:{'textFill':_0x234fa9[_0x43be53(0x367)]}}};}function _0x2e2b(){const _0xeefdb2=['detachWhenNoSnap','line','next','setShapeSidebarOpen','univer-size-full\x20univer-bg-gray-0\x20univer-text-sm\x20univer-text-gray-700\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-200','onReady','_popupSelectionKey','Branch','setHoveredControl','iterator','261525qZtTjj','univer-grid\x20univer-h-14\x20univer-overflow-hidden\x20univer-rounded-xl\x20univer-bg-gray-100\x20univer-p-1','removeEventListener','boundsByElementId','boards-mind-ui.panel.tab.structure','_isChildDragPastActivationThreshold','textFill','child','horizontalAlign','univer-flex\x20univer-min-w-0\x20univer-flex-1\x20univer-items-center\x20univer-gap-1','textBaseline','clipboard','fontFamily','board-mind-map-drag-preview-object','executeCommand','setActiveTool','fontSize','offsetY','true','boards-mind-ui.panel.tab.importExport','object','resolve','badgeCount','univer-space-y-3','boards-mind-ui.toolbar.action.addChild','structured','min','_renderManagerService','siblingGap','tree-right','_attachObjectPointerScheduled','_objectPointerDisposables','italic','univer-space-y-1','siblingHoverRadius','childNodeId','_executeNodeOperation','data','boards-mind-ui.panel.tab.layout','mindmap','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','univer-space-y-2','keys','clear','action','_addChild','_consumePointerEvent','viewportPanOffset','all','transformByState','_popupDisposable','shapeText','_pasteUnderSelectedNode','pointermove','_getZoomRatio','add-sibling-or-child','item','clearSelection','_executeRootAnchoredLayout','_attachObjectPointerListeners','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','_createTopologyBoundsByElementId','ArrowUp','borderWidth','register','56UuJluS','_createQuoteShortcut','#d8dce3','univer-flex\x20univer-justify-end\x20univer-gap-2','toLowerCase','isInteractionSurfaceActive','onPointerMove$','toggle-collapse','root','getUnit','_resolveSelectedEntry','bold','rootRadius','selectedIds','_commandService','horizontalGap','fontColor','ghost','boards-mind-ui.panel.addText','onDblclick$','UNIVER_BOARDS_MIND_UI_PLUGIN','branch','rootTextColor','_pasteAsNewMindMap','_provider','get','MIDDLE','_enableMindMapToolbarTool','beginPath','changeStart$','with','boards-mind-ui.description','_getSceneObject','M56\x2039h11M13\x2050h11','_openDescriptionDialog','key','save','boards-mind-ui.toolbar.action.delete','dot','mind-map','addObject','length','dirtyPaddingScreen','_rememberNodeSize','visible','_navigateByTopology','paste','_activePointerDragDisposables','Select','boards-mind-ui.panel.structureKind.treeLeft','toolbar','fromEntries','boards-mind-ui.panel.cancel','_addSiblingOrChild','_resolveDirtyBounds','_isPopupSelectionStillActive','getTemplate','rootFontWeight','evented','_removeDragPreviewObject','_syncChildDragPreviewObject','_activeNodeId','boards-mind-ui.toolbar.action.stroke','sourceDashScreen','boards-mind-ui.alignBottom','writeText','children','JUSTIFIED','_lastPoint','boards-mind-ui.toolbar.action.paste','_findChildNodeAtPoint','orthogonal','map','_getPointerScreenPoint','render','mind-map-fill','setConfig','univer-size-5','onPointerUp$','none','items','attachPopupToObject','div','clearControl$','_buildPopupSelectionKey','_resolveChildDragTopologyAction','_executeAndLayout','_textEditingService','ghostFillColor','_resolveControlSide','button','buttons','direction','_previewHostSize','_applyScopeTranslation','univer-mb-4','defaultValue','add-child','_syncRootScopePreview','_toFiniteBounds','svg','SolidLine','rootWidth','shapeId','textStyle','preventDefault','text','some','height','_shortcutService','boards-mind-ui.panel.branchLineType.curve','labelKey','_resolveHostSize','ArrowLeft','_interactionSurfaceService','_stateService','setEditing','clientX','_syncRootReparentPreview','top','184713ViKThv','RoundDot','scene','fillText','symbol','rootNodeId','reparent','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','ARROW_LEFT','objects','round','_openSelectedTextEditing','section','vertical','addChild','boards-mind-ui.panel.structureKind.timelineVertical','primaryColor','blueprint','M16\x2028c16\x200\x2025-13\x2043-13M16\x2028c16\x200\x2025\x2013\x2043\x2013','elementAdd$','_applyPointerChildDrag','parseInt','liveRootBounds','univer-cursor-not-allowed\x20univer-text-gray-300\x20hover:univer-bg-transparent','timelineAxisGap','boards-mind-ui.panel.structureKind.timelineHorizontal','branch-orthogonal','context','dropEffect','activeTool','subscribe','FOCUSING_MIND_MAP_TEXT_EDITOR','1.8','_syncChildDragPreview','preview','_getLiveObjectBounds','circle','globalAlpha','addEventListener','subUnitId','typography','dash','middle','boards-mind-ui.panel.pasteOPML','_instanceService','boards-mind-ui.panel.spacing.parentGap','foreignAttributes','timeline-horizontal','parentNodeId','textAlign','univer-w-24','add-sibling-before','_previewRefreshService','primary','then','_resolveCompleteSelectedScope','boards-mind-ui.descriptionPlaceholder','has','boards-mind-ui.toolbar.panel.typography','hypot','fill','_removeObject','ENTER','strokeStyle','dividerBefore','boards-mind-ui.panel.structureKind.mindmapVertical','board.mind-map.description-dialog','moveTo','color','panel','boards-mind-ui.panel.rename','_copySelectedNode','_drawConnectorPreview','_resolveControlBounds','span','oldShapeText','filter','_renderContext','forEach','_intrinsicSizeService','_registerComponents','path','hide','pointercancel','center','string','getObject','_resolvePreviewTextStyle','branch-curve','kind','30tRRNOK','getElementData','textPaddingScreen','_syncDragPreview','getSnapshot','_state','syncExecuteCommand','Dash','subscribeEvent','abs','add-child-top','renderContext','dispose','_resolveSelectedMindMapEntryFromState','_nodeSizeByKey','board-mind-map-description-dialog','add-sibling-after','beginMindMapMode','univer-h-9\x20univer-w-12','unsubscribe','parentBounds','_mindMapClipboardService','_handleElementUpdate','univer-max-w-[min(760px,calc(100vw-32px))]','slice','call','sourceBounds','hostSize','placement','bounds','pointerStartY','getShortcutDisplay','_ensureDragPreviewObject','dragObjectAlpha','tree-diagram','elementStateService','_createKeyboardShortcutOperation','_insertStateService','_pointerDragStart','lineTo','px\x20','element','layout','ArrowRight','registerShortcut','connectorAlpha','title','_resolveIncomingConnectorStyle','sort','opml','boards-mind-ui.toolbar.action.addSibling','boards-mind-ui.toolbar.action.fill','_clearPopup','boards-mind-ui.panel.searchNodes','boards-mind-ui.toolbar.primary.fontColor','siblingDotGap','_template','boards-mind-ui.panel.spacing.siblingGap','MindMap','surfaceColor','left','_resolveChildSide','entries','findIndex','open-description','clearPendingInsert','univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','univer-mb-3\x20univer-w-full','M24\x2012v32M24\x2019c0\x204\x203\x206\x207\x206h7M24\x2029c0\x204\x203\x206\x207\x206h7M24\x2039c0\x204\x203\x206\x207\x206h7','setPendingInsert','hideRootControls','M16\x2029h18c7\x200\x2010-5\x2010-12v-3M34\x2029h10c7\x200\x2010\x205\x2010\x2012v3','_updateShapeText','stroke','importExport','lineJoin','number','_elementStateService','UNIVER_BOARD','collapse-all','getElementById','both','_queuedLayouts','transform','OPERATION','_getPointerLiveBounds','strikethrough','BOTTOM','board.mind-map.floating-toolbar','getBoundingClientRect','getUnitId','_boardCanvasPopManagerService','restore','elementData','_drawSourceHighlight','_getSelectedMindMapContext','interactionSurfaceActive$','delete','boards-mind-ui.toolbar.panel.line','getEditing','getOwnPropertyDescriptor','style-divider','getTransformerByCreate','FOCUSING_MIND_MAP_BLANK_BOARD','changeEnd$','doc','_configService',',\x20minmax(0,\x201fr))','_executeChildDragAction','ghostTextColor','success','trim','boards-mind-ui.alignJustify','addSibling','small','push','boards-mind-ui.panel.layout.both','activeEditingId','_showPopupForSelection','textEditingService','pendingInsert','removeObjects','edit-text','includes','default','outlineItems','show','updateState','more','11TZiAXP','layout-panel-divider','glyphHoverWidth','10wqgvCl','add-child-bottom','_cancelPointerChildDrag','font','structure','_handlePointerDown','_queueLayout','registerCommand','_layoutFlushScheduled','set','univer-h-7\x20univer-min-w-9\x20univer-w-auto\x20univer-gap-1\x20univer-px-1.5','isRoot','detach','_note','add-child-right','structureKind','boards-mind-ui.panel.exportOPML','branchGap','_attachActivePointerDragListeners','univer-bg-[#e8eefc]\x20univer-text-[#2f6fed]\x20hover:univer-bg-[#e8eefc]','M20\x2025h13M20\x2035h13M20\x2045h13','documentStyle','_syncPointerChildDragPreview','currentTarget','dispose$','type','stopPropagation','boards-mind-ui.alignRight','underline','defineProperty','getPayload','SquareDot','boards-mind-ui.config','LEFT','_lastChildDragAction','from','pluginName','100dvoUHj','function','fillStyle','_resolvePreviewSourceBounds','label','_capturePointerChildDragStart','focusedId','disposeWithMe','univer-mb-0','_contextService','_restoreActivePreview','_dragPreviewObject','_localeService','_refresh$','getHitControl','refresh$','side','getElementDataForUnit','pipe','_initEditingRestore','boards-mind-ui.toolbar.panel.more','after','offsetX','boards-mind-ui.panel.tab.','5585640OBbKeg','incomingConnectorStyle','move','bottom','dataTransfer','makeDirty','_getMindMapChildren','currentColor','state$','before','zIndex','rootStartBounds','board.operation.mind-map.keyboard-shortcut','getCurrentUnitOfType','boards-mind-ui.panel.branchLineType.orthogonal','enabled','setLineDash','getConfig','_syncControls','ignoreExternalFocusChanges','glyphSize','boards-mind-ui.alignCenter','_syncLayoutPreview','rootChildSides','handleShortcut','point','collapsedDescendantCount','onPointerDown$','value','_getElementKey','M12\x2026h11M58\x2036h11M12\x2045h11','isFinite','_consumeControlEvent','ARROW_DOWN','ghostBounds','close','width','text/plain','_uiStateService','board-mind-map-node-controls-object','version','Enter','textColor','_syncElementDataToScene','_injector','lineCap','_resolveRootTopLeft','branchLineType','_dragStart','visualRadius','_init','join','oKey','transientControl','fallbackNodeWidth','snapDistance','elementUpdate$','newParentNodeId','univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','registerRenderModule','CENTER','_normalizeChildren','boards-mind-ui.panel.importOPML','tools','promote','unitId','ghostRadius','_removePreviewObject','getActivePageId','curve','_applyRootTranslation','popup','referenceNodeId','navigator','_getBoardsUIConfig','foldChildNodes','verticalAlign','pointerup','_handlePointerMove','rounded-orthogonal','lineWidth','board-mind-map-pending-insert-object','_resolveNodeSize','packageName','tree-alternate','arrow-left','nodeWidth','radius','clipboardService','board.mind-map.panel','editingParams$','boards-mind-ui.toolbar.primary.line','univer-mb-2\x20univer-text-lg\x20univer-text-gray-900','_syncPreviewObject','TOP','panOffset','addDescription','sourceHighlightFillColor','complete','updateElement','boards-mind-ui.panel.structureKind.treeAlternate','controls','toPrimitive','params','291221tBwvwd','asObservable','addChildNode','_componentManager','9004DOYGuJ','univer-flex\x20univer-gap-2','registerProvider','univer-flex\x20univer-flex-col\x20univer-gap-2','uiStateService','_seedExistingNodeSizes','_ensureObject','hasChildren','opacity','zoomRatio','values','transientPreviewForeground','2206990KJqkGs','find','prototype','_activeScopeId','makeDirtyNoDebounce','icon','_captureDragStart','dialogService','rgb','addSiblingNode','univer-w-20\x20univer-shrink-0','ARROW_UP','sourceHaloScreen','skipNextObservers','depth','createRunner','getSelectedObjectMap','isHit','rgba(','notify','M12\x2015h9M12\x2028h9M12\x2041h9M59\x2015h9M59\x2028h9M59\x2041h9','changing$','nodeHeight','localeCompare','allowRootReparent','elementRemove$','badgeFontSize','_syncContext','isTransforming','_boardElementService','boards-mind-ui.toolbar.action.fontColor','custom','_resolveArrowNavigationTarget','_childDragSelectionHidden','_activePreview','_attachObjectEvents','_objectEventDisposables','open','_disposeActivePointerDragListeners','_hideSelectionForChildDrag','quadraticCurveTo','getState','mindmap-horizontal','requestRender','_object','Escape','boards-mind-ui.toolbar.primary.more','right','_restoreObjectToDragStart','M15\x2031h50M35\x2031V18c0-4\x203-7\x208-7h9M35\x2031v13c0\x204\x203\x207\x208\x207h9','tree-left','targetNodeId','rootFontSize','DELETE','timeline-vertical','add','localeService','getContextValue','elementService','structureScopeId','ArrowDown','0\x200\x2080\x2056','_ensurePreviewObject','_clearPopupIfSelectionChanged','_previewObject','mindmap-vertical','_scheduleAttachObjectPointerListeners','arrow-up','pointerStartX','_childDragActivated','addChildGlyphSize','style','max','Mind\x20map','dropdown','_cloneBlueprintNode','collapseAllNodes','constructor','commandService','gap','Tree\x20diagram','_resolveCreateChildSide','getRenderUnitById','connector','getObjectIncludeInGroup','extraProps','setContextValue','nodeId','dataModel','lineWidthScreen','_config','_collapseAll','collapsed','scopeId','dashType','repeat(','hoveredControl','_isControlEvent','siblingGlyphSize','_resolveRootChildControlSides','_getBlankBoardContext','_isPointInBounds','connectorAffordance','M17\x2033h21M38\x2017v30M38\x2017h24','_countDescendants','reduce','_boardTextEditingService','univer-text-xs\x20univer-text-gray-500','connectorData','_getBoardPointFromEvent','paste-as-new','selectElements','_resetContext','M47\x2025h13M47\x2035h13M47\x2045h13','_resolveCurrentBoardContext','registerAdapter','fallbackNodeHeight','scope','clientY','elementId','univer-text-xs\x20univer-text-gray-400\x20dark:!univer-text-gray-500','univer-h-32\x20univer-resize-none\x20univer-text-sm','_subscribeElementDataChanges','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Timeline','_executeCreateAndEdit','glyphWidth','Shape','_deleteSelectedNode','_updateHostSize','_createShortcutItems','copy','univer-min-w-[240px]','boards-mind-ui.panel.structureKind.treeRight','univer-w-full\x20univer-text-xs','shapeData','503109wdAgjS','rootText','RIGHT','add-child-left','arrow-right'];_0x2e2b=function(){return _0xeefdb2;};return _0x2e2b();}function Bn(_0x5c1070,_0x1337d7){const _0x9b783a=_0x3f9745;let _0x5a60ee=_0x5c1070==null?void 0x0:_0x5c1070[_0x9b783a(0x1da)];_0x5a60ee&&_0x1337d7({'lineType':_0x5a60ee[_0x9b783a(0x328)]===_0x33bb19[_0x9b783a(0x138)]||_0x5a60ee[_0x9b783a(0x328)]===_0x33bb19[_0x9b783a(0x234)]?_0x9b783a(0x3c8):_0x5a60ee[_0x9b783a(0x328)]===_0x33bb19[_0x9b783a(0x198)]?_0x9b783a(0x160):'solid',...typeof _0x5a60ee[_0x9b783a(0x276)]==_0x9b783a(0x1dd)?{'strokeWidth':_0x5a60ee['width']}:null,...typeof _0x5a60ee[_0x9b783a(0x17b)]=='string'?{'stroke':_0x5a60ee[_0x9b783a(0x17b)]}:null,...typeof _0x5a60ee['opacity']==_0x9b783a(0x1dd)?{'opacity':_0x5a60ee[_0x9b783a(0x2c6)]}:null});}function Vn(_0x21a925){const _0x287870=_0x3f9745;return _0x21a925!=null&&_0x21a925[_0x287870(0x3cb)]?_0x21a925[0x0]<=0x2?_0x33bb19['RoundDot']:_0x33bb19[_0x287870(0x198)]:_0x33bb19['Solid'];}function Hn(_0x19fc7a){const _0x4b4ddd=_0x3f9745;return{'stroke':{'lineStrokeType':_0x1c3074[_0x4b4ddd(0x124)],'dashType':Vn(_0x19fc7a==null?void 0x0:_0x19fc7a[_0x4b4ddd(0x160)]),'color':(_0x19fc7a==null?void 0x0:_0x19fc7a['stroke'])??_0x42ac00,'width':(_0x19fc7a==null?void 0x0:_0x19fc7a['strokeWidth'])??xn[_0x4b4ddd(0x11f)],'opacity':(_0x19fc7a==null?void 0x0:_0x19fc7a['opacity'])??Sn[_0x4b4ddd(0x11f)]/0x64}};}function Un(_0x4958c9){const _0x570a91=_0x3f9745;var _0x3e94d0,_0x4d18ca,_0xb52a76;let _0x23447a=_0x637cd2(_0xe6cdb9),_0x4aa5bd=_0x637cd2(_0x469a0d),_0x163905=_0x637cd2(_0x231606),_0x2c8d46=_0x637cd2(_0x4eb695),[_0x440d38,_0x48f6b4]=_0x31c5ea(null),[_0x1291d8,_0x4d0cb0]=_0x31c5ea((_0x3e94d0=_0x4958c9[_0x570a91(0x299)][_0x570a91(0x31f)])==null?void 0x0:_0x3e94d0[_0x570a91(0x351)]),_0x12a1c1=_0x4958c9[_0x570a91(0x299)][_0x570a91(0x31f)];if(!_0x12a1c1)return null;let _0x43fcda={'unitId':_0x12a1c1[_0x570a91(0x293)],'subUnitId':_0x12a1c1[_0x570a91(0x15e)]},_0x1ef9cc=_0x2e58ec=>{const _0x5a97fe=_0x570a91;_0x23447a[_0x5a97fe(0x36f)](_0x36c50b['id'],{..._0x43fcda,'nodeId':_0x12a1c1[_0x5a97fe(0x341)],..._0x2e58ec});},_0x207254=(_0x21159d,_0x445d95)=>{const _0x587cfb=_0x570a91;let _0x52b65a=_0x445d95??{};_0x4d0cb0(_0x2f8fb0=>({..._0x2f8fb0??{},..._0x52b65a})),_0x1ef9cc({..._0x52b65a[_0x587cfb(0x173)]===void 0x0?null:{'fill':_0x52b65a[_0x587cfb(0x173)]},..._0x52b65a[_0x587cfb(0x1da)]===void 0x0?null:{'stroke':_0x52b65a[_0x587cfb(0x1da)]}});},_0x4e5279=_0x4fa88e=>{const _0x43107e=_0x570a91;_0x23447a[_0x43107e(0x36f)](_0x546f64['id'],{..._0x43fcda,'nodeId':_0x12a1c1[_0x43107e(0x341)],'style':_0x4fa88e});},_0x3cef22=Hn(_0x12a1c1[_0x570a91(0x253)]),_0x559f6e=_0xff3dc9=>Nn(_0x4aa5bd,_0xff3dc9),_0x5d54bb=_0x235ac6=>{On(_0x23447a,_0x235ac6);},_0x44f873=(_0x1291d8==null?void 0x0:_0x1291d8[_0x570a91(0x394)])??{},_0x2234bc=Mn(_0x1291d8),_0x316f0d=_0x19a96a=>{Rn(_0x19a96a,_0x2db51c=>{const _0x3df382=_0x4e59;_0x4d0cb0(_0x9f566f=>zn(_0x9f566f,_0x19a96a,_0x2db51c[_0x3df382(0x127)])),_0x1ef9cc(_0x2db51c);});},_0x264860=[{'label':_0x163905['t']('boards-mind-ui.alignLeft'),'value':_0x308ca0['LEFT'],'icon':_0x20d080(_0x42866f,{})},{'label':_0x163905['t'](_0x570a91(0x267)),'value':_0x308ca0[_0x570a91(0x28e)],'icon':_0x20d080(_0x1c57d4,{})},{'label':_0x163905['t'](_0x570a91(0x230)),'value':_0x308ca0[_0x570a91(0x354)],'icon':_0x20d080(_0x270a25,{})},{'label':_0x163905['t'](_0x570a91(0x201)),'value':_0x308ca0[_0x570a91(0x3e5)],'icon':_0x20d080(_0x4a0d34,{})}],_0x4b2cf1=[{'label':_0x163905['t']('boards-mind-ui.alignTop'),'value':_0x49ff9d[_0x570a91(0x2b0)],'icon':_0x20d080(_0x1eb1a1,{})},{'label':_0x163905['t']('boards-mind-ui.alignMiddle'),'value':_0x49ff9d[_0x570a91(0x3bc)],'icon':_0x20d080(_0x52971c,{})},{'label':_0x163905['t'](_0x570a91(0x3e2)),'value':_0x49ff9d[_0x570a91(0x1e8)],'icon':_0x20d080(_0x393a34,{})}],_0x3128d7=()=>{const _0x2d1e80=_0x570a91;_0x5d54bb(_0x2d1e80(0x398));},_0x1a85a0=()=>{const _0x5cf470=_0x570a91;_0x5d54bb(_0x5cf470(0x120));},_0x451440=()=>{_0x5d54bb('copy');},_0x57b72a=()=>{const _0x2528ea=_0x570a91;_0x5d54bb(_0x2528ea(0x3d0));},_0x17adfb=()=>{_0x5d54bb('delete');},_0xa7ad19=((_0x4d18ca=_0x12a1c1[_0x570a91(0x1bb)])==null?void 0x0:_0x4d18ca[_0x570a91(0x224)])??_0x3122e8[_0x570a91(0x224)],_0x41af79=_0x6ebcdf(_0xa7ad19,((_0xb52a76=_0x12a1c1[_0x570a91(0x1bb)])==null?void 0x0:_0xb52a76[_0x570a91(0x281)])??_0x3122e8['branchLineType']),_0x2fc0c5=_0x109d89=>{const _0x2867bc=_0x570a91;let _0x4a5706=_0x6ebcdf(_0x109d89,_0x41af79);Pn(_0x23447a,_0x2c8d46[_0x2867bc(0x2d9)](_0x12a1c1[_0x2867bc(0x293)]),{..._0x43fcda,'scopeId':_0x12a1c1['scopeId'],'structureKind':_0x109d89,..._0x4a5706===_0x41af79?null:{'branchLineType':_0x4a5706}}),_0x48f6b4(null);},_0x1d05c1=_0x6b28ae=>{const _0x5cd78b=_0x570a91;Fn(_0x23447a,_0x2c8d46[_0x5cd78b(0x2d9)](_0x12a1c1[_0x5cd78b(0x293)]),{..._0x43fcda,'scopeId':_0x12a1c1[_0x5cd78b(0x327)],'branchLineType':_0x6b28ae}),_0x48f6b4(null);},_0x2318b5=(_0x1cbb0b,_0x5f1e3e,_0x7908cf,_0x5024b7=!0x1)=>_0x20d080('button',{'type':_0x570a91(0x3fc),'disabled':_0x5024b7,'className':_0x53b1eb('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',_0x5f1e3e&&_0x570a91(0x228),_0x5024b7&&_0x570a91(0x14e)),'onMouseDown':An,'onPointerDown':An,'onClick':_0xb0875f=>{const _0x2c3359=_0x570a91;_0xb0875f[_0x2c3359(0x22f)](),!_0x5024b7&&_0x7908cf();},'children':_0x20d080(Ln,{'icon':_0x1cbb0b[_0x570a91(0x2cf)]})},_0x1cbb0b[_0x570a91(0x26e)]),_0x111881=()=>_0x1df344('div',{'className':_0x570a91(0x13e),'onMouseDown':_0x24801d=>_0x24801d['stopPropagation'](),'onPointerDown':_0x5a436b=>_0x5a436b['stopPropagation'](),'children':[Tn['map'](_0x149caa=>_0x1df344(_0x570a91(0x3f4),{'className':_0x570a91(0x11e),'children':[_0x20d080(_0x570a91(0x3f4),{'className':_0x570a91(0x2ae),'children':_0x149caa[_0x570a91(0x1bf)]}),_0x20d080(_0x570a91(0x3f4),{'className':_0x570a91(0x362),'style':{'gridTemplateColumns':_0x570a91(0x329)+_0x149caa[_0x570a91(0x3f2)][_0x570a91(0x3cb)]+',\x20minmax(0,\x201fr))'},'children':_0x149caa[_0x570a91(0x3f2)]['map'](_0x188055=>_0x2318b5(_0x188055,_0x188055[_0x570a91(0x26e)]===_0xa7ad19,()=>_0x2fc0c5(_0x188055['value'])))})]},_0x149caa[_0x570a91(0x3c5)])),_0x20d080(_0x32dc4d,{}),_0x1df344(_0x570a91(0x3f4),{'className':_0x570a91(0x242),'children':[_0x20d080('div',{'className':_0x570a91(0x2ae),'children':En['title']}),_0x20d080(_0x570a91(0x3f4),{'className':_0x570a91(0x362),'style':{'gridTemplateColumns':_0x570a91(0x329)+En['items'][_0x570a91(0x3cb)]+_0x570a91(0x1fc)},'children':En['items'][_0x570a91(0x3ea)](_0x20dd8c=>_0x2318b5(_0x20dd8c,_0x20dd8c[_0x570a91(0x26e)]===_0x41af79,()=>_0x1d05c1(_0x20dd8c[_0x570a91(0x26e)]),_0x20dd8c['value']===_0x570a91(0x297)&&!_0x1463d3(_0xa7ad19)))})]})]}),_0x1ce913=_0x52202b=>{const _0x308a8b=_0x570a91;switch(_0x52202b){case _0x308a8b(0x358):return _0x20d080(_0x2917c2,{'title':_0x163905['t'](_0x308a8b(0x1f3)),'shapeData':_0x3cef22,'modeOptions':['solid',_0x308a8b(0x160),_0x308a8b(0x3c8)],'showDashDropdown':!0x1,'widthRange':{'min':xn[_0x308a8b(0x37b)],'max':xn['max'],'step':0x1},'onUpdateShapeData':(_0x49def9,_0x21c290)=>{Bn(_0x21c290,_0x4e5279);}});case'more':return _0x20d080(_0xe1cdee,{'title':_0x163905['t'](_0x308a8b(0x24e)),'minWidthClassName':_0x308a8b(0x34e),'children':_0x1df344(_0x308a8b(0x3f4),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1','children':[_0x20d080(_0x338770,{'label':_0x163905['t'](_0x308a8b(0x1c3)),'shortcut':_0x559f6e(wn[_0x308a8b(0x202)]),'onClick':_0x3128d7}),_0x20d080(_0x338770,{'label':_0x163905['t'](_0x308a8b(0x379)),'shortcut':_0x559f6e(wn[_0x308a8b(0x145)]),'onClick':_0x1a85a0}),_0x20d080(_0x32dc4d,{}),_0x20d080(_0x338770,{'label':_0x163905['t']('boards-mind-ui.toolbar.action.copy'),'shortcut':_0x559f6e(wn[_0x308a8b(0x34d)]),'onClick':_0x451440}),_0x20d080(_0x338770,{'label':_0x163905['t'](_0x308a8b(0x3e7)),'shortcut':_0x559f6e(wn[_0x308a8b(0x3d0)]),'onClick':_0x57b72a}),_0x20d080(_0x338770,{'label':_0x163905['t'](_0x308a8b(0x3c7)),'shortcut':_0x559f6e(wn[_0x308a8b(0x1f2)]),'onClick':_0x17adfb})]})});default:return null;}},_0xa3cda3=Cn['flatMap'](_0x109c06=>{const _0x4361e6=_0x570a91;let _0x2141d8=[];if(_0x109c06[_0x4361e6(0x177)]&&_0x2141d8[_0x4361e6(0x204)](_0x20d080(_0x32dc4d,{'orientation':_0x4361e6(0x144)},'divider-'+_0x109c06[_0x4361e6(0x190)])),_0x109c06[_0x4361e6(0x190)]==='typography')return _0x2141d8['push'](_0x20d080(_0x537d64,{'title':_0x163905['t'](_0x4361e6(0x171)),'fontFamily':_0x2234bc[_0x4361e6(0x36d)],'textStyle':{'isBold':_0x44f873[_0x4361e6(0x3ad)]===!0x0,'isItalic':_0x44f873[_0x4361e6(0x381)]===!0x0,'isUnderline':_0x44f873['underline']===!0x0,'isStrike':_0x44f873[_0x4361e6(0x1e7)]===!0x0},'horizontalAlign':_0x2234bc[_0x4361e6(0x369)],'verticalAlign':_0x2234bc[_0x4361e6(0x29e)],'horizontalAlignOptions':_0x264860,'verticalAlignOptions':_0x4b2cf1,'onUpdateText':_0x316f0d},_0x109c06[_0x4361e6(0x190)])),_0x2141d8;if(_0x109c06[_0x4361e6(0x190)]===_0x4361e6(0x3b2)){let _0x449f7f={'fs':_0x2234bc[_0x4361e6(0x371)],'cl':{'rgb':_0x2234bc[_0x4361e6(0x17b)]},..._0x2234bc[_0x4361e6(0x367)]===void 0x0?null:{'textFill':_0x2234bc[_0x4361e6(0x367)]}};return _0x2141d8[_0x4361e6(0x204)](_0x20d080(_0x162144,{'title':_0x163905['t'](_0x4361e6(0x2e8)),'textStyle':_0x449f7f,'fallbackColor':_0x2234bc[_0x4361e6(0x17b)],'onChange':_0x273bc4=>_0x316f0d({'textStyle':_0x273bc4})},_0x109c06[_0x4361e6(0x190)])),_0x2141d8[_0x4361e6(0x204)](_0x20d080(_0x4937de,{'value':String(_0x2234bc[_0x4361e6(0x371)]),'onChange':_0x484568=>{_0x316f0d({'textStyle':{'fs':_0x484568}});}},'mind-map-font-size')),_0x2141d8;}return _0x2141d8[_0x4361e6(0x204)](_0x20d080(_0x2b414b,{'open':_0x440d38===_0x109c06[_0x4361e6(0x17c)],'overlay':_0x1ce913(_0x109c06[_0x4361e6(0x17c)]),'onOpenChange':_0x2f7a5a=>_0x48f6b4(_0x2f7a5a?_0x109c06[_0x4361e6(0x17c)]:null),'children':_0x20d080(_0x4361e6(0x181),{'children':_0x20d080(_0x4e7c80,{'title':_0x163905['t'](_0x109c06['titleKey']),'active':_0x440d38===_0x109c06['panel'],'icon':jn(kn[_0x109c06[_0x4361e6(0x17c)]]),'sizeClassName':_0x4361e6(0x21f),'onMouseDown':An,'onPointerDown':An})})},_0x109c06[_0x4361e6(0x17c)])),_0x2141d8;});return _0x1df344(_0x27f53a,{'maxWidthClassName':_0x570a91(0x1a8),'onMouseDown':_0x47fa6b=>_0x47fa6b[_0x570a91(0x22f)](),'children':[[..._0x12a1c1['isRootNode']?[_0x20d080(_0x2b414b,{'open':_0x440d38===_0x570a91(0x1bb),'overlay':_0x111881(),'onOpenChange':_0x28cfaa=>_0x48f6b4(_0x28cfaa?_0x570a91(0x1bb):null),'children':_0x20d080(_0x570a91(0x181),{'children':_0x20d080(_0x4e7c80,{'title':_0x163905['t']('boards-mind-ui.toolbar.action.layout'),'active':_0x440d38==='layout','icon':_0x20d080(In,{}),'sizeClassName':_0x570a91(0x21f),'onMouseDown':An,'onPointerDown':An})})},'mind-map-layout-dropdown'),_0x20d080(_0x32dc4d,{'orientation':'vertical'},_0x570a91(0x213))]:[],_0x20d080(_0x3bfbb9,{'title':_0x163905['t'](_0x570a91(0x1c4)),'shapeData':_0x1291d8??{},'onUpdateShapeData':_0x207254},_0x570a91(0x3ed)),_0x20d080(_0x53b0ae,{'title':_0x163905['t'](_0x570a91(0x3e0)),'shapeData':_0x1291d8??{},'onUpdateShapeData':_0x207254},'mind-map-stroke'),_0x20d080(_0x32dc4d,{'orientation':_0x570a91(0x144)},_0x570a91(0x1f6))],_0xa3cda3]});}function Wn(_0x11a97c){let {left:_0x1843fd,top:_0x3d525b,width:_0x1004fa,height:_0x13ac9c}=_0x11a97c;return{'left':_0x1843fd,'right':_0x1843fd+_0x1004fa,'top':_0x3d525b-0x38,'bottom':_0x3d525b+_0x13ac9c};}let Gn=class extends _0xa1f691{constructor(_0x13528d,_0x5c4399,_0x588d39,_0x9dbab7,_0x106867,_0x40339a){const _0x546933=_0x3f9745;super(),this[_0x546933(0x184)]=_0x13528d,this['_boardCanvasPopManagerService']=_0x5c4399,this[_0x546933(0x2e7)]=_0x588d39,this[_0x546933(0x1de)]=_0x9dbab7,this['_boardTextEditingService']=_0x106867,this[_0x546933(0x131)]=_0x40339a,G(this,_0x546933(0x393),null),G(this,_0x546933(0x35d),null),this['_init']();}[_0x3f9745(0x19d)](){const _0x328015=_0x3f9745;this[_0x328015(0x1c5)](),super[_0x328015(0x19d)]();}[_0x3f9745(0x284)](){const _0x527257=_0x3f9745;let _0x37d2f7=this[_0x527257(0x184)][_0x527257(0x139)]['getTransformerByCreate']();this[_0x527257(0x241)](_0x1203fe(_0x37d2f7['createControl$'][_0x527257(0x24c)](_0xba2edd(this[_0x527257(0x22d)]))[_0x527257(0x155)](()=>this[_0x527257(0x207)]()))),this[_0x527257(0x241)](_0x1203fe(_0x37d2f7[_0x527257(0x3f5)][_0x527257(0x24c)](_0xba2edd(this[_0x527257(0x22d)]))[_0x527257(0x155)](()=>this[_0x527257(0x309)]()))),this[_0x527257(0x241)](_0x1203fe(_0x37d2f7['changeStart$'][_0x527257(0x24c)](_0xba2edd(this['dispose$']))[_0x527257(0x155)](()=>this[_0x527257(0x1c5)]()))),this[_0x527257(0x241)](_0x1203fe(_0x37d2f7[_0x527257(0x1f9)][_0x527257(0x24c)](_0xba2edd(this['dispose$']))['subscribe'](()=>setTimeout(()=>this[_0x527257(0x207)](),0x0)))),this[_0x527257(0x241)](_0x1203fe(this[_0x527257(0x1de)][_0x527257(0x25a)][_0x527257(0x24c)](_0xba2edd(this[_0x527257(0x22d)]))[_0x527257(0x155)](()=>setTimeout(()=>this[_0x527257(0x207)](),0x0)))),this[_0x527257(0x241)](_0x1203fe(this['_interactionSurfaceService'][_0x527257(0x1f1)][_0x527257(0x24c)](_0xba2edd(this['dispose$']))['subscribe'](_0x5a3dfa=>{if(_0x5a3dfa){this['_clearPopup']();return;}setTimeout(()=>this['_showPopupForSelection'](),0x0);}))),this['disposeWithMe'](_0x1203fe(this[_0x527257(0x334)][_0x527257(0x2ac)]['pipe'](_0xba2edd(this['dispose$']))[_0x527257(0x155)](_0x53d367=>{const _0x369015=_0x527257;if((_0x53d367==null?void 0x0:_0x53d367[_0x369015(0x293)])===this['_renderContext'][_0x369015(0x293)]){if(_0x53d367[_0x369015(0x3ce)]){this[_0x369015(0x1c5)]();return;}setTimeout(()=>this[_0x369015(0x207)](),0x0);}})));}[_0x3f9745(0x1c5)](){const _0x4b15bb=_0x3f9745;var _0x3095ad;(_0x3095ad=this['_popupDisposable'])==null||_0x3095ad['dispose'](),this[_0x4b15bb(0x393)]=null,this['_popupSelectionKey']=null;}[_0x3f9745(0x309)](){setTimeout(()=>{const _0x618a8c=_0x4e59;this[_0x618a8c(0x3d9)]()||this[_0x618a8c(0x1c5)]();},0x0);}[_0x3f9745(0x3d9)](){const _0x38c3e8=_0x3f9745;let _0x5a803e=this[_0x38c3e8(0x1de)][_0x38c3e8(0x195)]();return!!_0x5a803e[_0x38c3e8(0x152)]&&_0x5a803e[_0x38c3e8(0x3af)][_0x38c3e8(0x3cb)]>0x0&&this[_0x38c3e8(0x35d)]===this[_0x38c3e8(0x3f6)](_0x5a803e[_0x38c3e8(0x152)][_0x38c3e8(0x293)],_0x5a803e[_0x38c3e8(0x152)]['subUnitId'],_0x5a803e['selectedIds']);}[_0x3f9745(0x3f6)](_0x4376b2,_0x5dcef1,_0x202a7f){return _0x4376b2+':'+_0x5dcef1+':'+_0x202a7f['join'](',');}[_0x3f9745(0x1c0)](_0x1ccfdf,_0x26525d,_0x5a70b5,_0x17e2b8){const _0x328eaf=_0x3f9745;let _0x3effc7=this['_boardElementService'][_0x328eaf(0x192)](_0x1ccfdf,_0x26525d),_0x49d769=Object[_0x328eaf(0x2c8)](_0x3effc7)[_0x328eaf(0x2cb)](_0x11d89d=>{const _0x50e71a=_0x328eaf;let _0x3d64c7=_0x5b914f(_0x11d89d[_0x50e71a(0x1ba)]);return(_0x3d64c7==null?void 0x0:_0x3d64c7[_0x50e71a(0x305)])===_0x5a70b5&&_0x3d64c7[_0x50e71a(0x384)]===_0x17e2b8;});if(!(!_0x49d769||!(_0x328eaf(0x336)in _0x49d769[_0x328eaf(0x1ba)])))return _0x49d769['element'][_0x328eaf(0x336)][_0x328eaf(0x311)];}[_0x3f9745(0x207)](){const _0x2f876f=_0x3f9745;var _0x2f1036,_0x5c9d16,_0x4876df;if(this[_0x2f876f(0x131)][_0x2f876f(0x3a7)]){this['_clearPopup']();return;}let _0x346804=this[_0x2f876f(0x334)][_0x2f876f(0x1f4)]();if((_0x346804==null?void 0x0:_0x346804[_0x2f876f(0x3ce)])===!0x0&&_0x346804[_0x2f876f(0x293)]===this[_0x2f876f(0x184)][_0x2f876f(0x293)]){this[_0x2f876f(0x1c5)]();return;}let _0xe952ac=this[_0x2f876f(0x1de)][_0x2f876f(0x195)]();if(_0xe952ac[_0x2f876f(0x2e6)]){this[_0x2f876f(0x1c5)]();return;}if(_0x5128cb({'context':_0xe952ac['context'],'selectedIds':_0xe952ac[_0x2f876f(0x3af)],'getElementById':(_0x28da52,_0x5c533f,_0x2d899d)=>this['_boardElementService'][_0x2f876f(0x1e1)](_0x28da52,_0x5c533f,_0x2d899d)})['owner']!=='mind-map'){this[_0x2f876f(0x1c5)]();return;}let _0x5ea70a=this['_renderContext'][_0x2f876f(0x139)]['getTransformerByCreate']()[_0x2f876f(0x2da)](),_0xa667b6=Array[_0x2f876f(0x238)](_0x5ea70a[_0x2f876f(0x2c8)]())[_0x2f876f(0x3ea)](_0x5995a3=>this[_0x2f876f(0x3ac)](_0x5995a3))[_0x2f876f(0x183)](_0x25cf56=>!!_0x25cf56)[_0x2f876f(0x183)](_0x3e2060=>!!_0x446d08(_0x3e2060[_0x2f876f(0x1ee)][_0x2f876f(0x1ba)])),_0x13ecf7=_0xa667b6[_0x2f876f(0x2cb)](_0x3a0388=>_0x3a0388[_0x2f876f(0x1ee)][_0x2f876f(0x341)]===_0xe952ac[_0x2f876f(0x240)])??_0xa667b6[0x0]??this[_0x2f876f(0x19e)]();if(!_0x13ecf7){this['_clearPopup']();return;}let _0x10b9cd=_0x446d08(_0x13ecf7[_0x2f876f(0x1ee)][_0x2f876f(0x1ba)]);if(!_0x10b9cd){this['_clearPopup']();return;}let _0x1e0176=(_0x2f1036=this['_boardElementService'][_0x2f876f(0x192)](_0x13ecf7[_0x2f876f(0x1ee)]['unitId'],_0x13ecf7[_0x2f876f(0x1ee)][_0x2f876f(0x15e)])[_0x10b9cd['structureScopeId']])==null?void 0x0:_0x2f1036[_0x2f876f(0x1ba)],_0x4b465f=_0x211be1(_0x1e0176),_0x53f8c1=_0x1e0176==null||(_0x5c9d16=_0x1e0176[_0x2f876f(0x2e9)])==null||(_0x5c9d16=_0x5c9d16[_0x2f876f(0x388)])==null||(_0x5c9d16=_0x5c9d16[_0x2f876f(0x1bb)])==null?void 0x0:_0x5c9d16[_0x2f876f(0x224)],_0x410e38=((_0x4b465f==null?void 0x0:_0x4b465f[_0x2f876f(0x1bb)][_0x2f876f(0x224)])??_0x53f8c1)===_0x2f876f(0x30b)&&(_0x10b9cd[_0x2f876f(0x167)]===null||_0x10b9cd[_0x2f876f(0x24a)]==='top'),_0x5430f0=_0x10b9cd[_0x2f876f(0x167)]!==null&&_0x10b9cd[_0x2f876f(0x24a)]!==_0x2f876f(0x136)&&_0x10b9cd[_0x2f876f(0x24a)]!==_0x2f876f(0x255),_0x2e9840=_0x410e38||_0x5430f0,_0x302ead=((_0x4876df=_0xe952ac[_0x2f876f(0x152)])==null?void 0x0:_0x4876df[_0x2f876f(0x293)])===_0x13ecf7[_0x2f876f(0x1ee)]['unitId']&&_0xe952ac[_0x2f876f(0x152)][_0x2f876f(0x15e)]===_0x13ecf7[_0x2f876f(0x1ee)][_0x2f876f(0x15e)]&&_0xe952ac[_0x2f876f(0x3af)][_0x2f876f(0x3cb)]?_0xe952ac[_0x2f876f(0x3af)]:[_0x13ecf7[_0x2f876f(0x1ee)][_0x2f876f(0x341)]],_0x3d0ca0=this[_0x2f876f(0x3f6)](_0x13ecf7['elementData'][_0x2f876f(0x293)],_0x13ecf7[_0x2f876f(0x1ee)]['subUnitId'],_0x302ead);this[_0x2f876f(0x393)]&&this[_0x2f876f(0x35d)]===_0x3d0ca0||(this['_clearPopup'](),this[_0x2f876f(0x393)]=this['disposeWithMe'](this[_0x2f876f(0x1ec)][_0x2f876f(0x3f3)](_0x13ecf7[_0x2f876f(0x1ee)][_0x2f876f(0x293)],_0x13ecf7[_0x2f876f(0x1ee)][_0x2f876f(0x15e)],_0x13ecf7[_0x2f876f(0x375)],{'componentKey':Dn,'direction':'top-center','offset':[0x0,0x8],..._0x2e9840?{'anchorBoundResolver':Wn}:null,'extraProps':{'unitId':_0x13ecf7[_0x2f876f(0x1ee)][_0x2f876f(0x293)],'subUnitId':_0x13ecf7['elementData'][_0x2f876f(0x15e)],'elementId':_0x13ecf7[_0x2f876f(0x1ee)][_0x2f876f(0x341)],'scopeId':_0x10b9cd[_0x2f876f(0x305)],'isRootNode':_0x10b9cd[_0x2f876f(0x167)]===null,'left':_0x13ecf7[_0x2f876f(0x1ee)]['element']['transform']['left']??0x0,'top':_0x13ecf7['elementData']['element'][_0x2f876f(0x1e4)][_0x2f876f(0x136)]??0x0,'shapeData':_0x13ecf7[_0x2f876f(0x1ee)][_0x2f876f(0x1ba)][_0x2f876f(0x22e)]===_0x10925f[_0x2f876f(0x349)]?_0x13ecf7[_0x2f876f(0x1ee)]['element']['shapeData']:void 0x0,'layout':_0x4b465f==null?void 0x0:_0x4b465f['layout'],'incomingConnectorStyle':this[_0x2f876f(0x1c0)](_0x13ecf7[_0x2f876f(0x1ee)]['unitId'],_0x13ecf7[_0x2f876f(0x1ee)][_0x2f876f(0x15e)],_0x10b9cd[_0x2f876f(0x305)],_0x13ecf7[_0x2f876f(0x1ee)]['elementId'])}})),this[_0x2f876f(0x35d)]=_0x3d0ca0);}[_0x3f9745(0x19e)](){const _0x475eef=_0x3f9745;var _0x4d6110;let _0xe6648e=this['_elementStateService'][_0x475eef(0x195)](),_0x188c5b=_0xe6648e[_0x475eef(0x152)],_0xad5e13=_0xe6648e[_0x475eef(0x240)]??_0xe6648e[_0x475eef(0x3af)][0x0];if(!_0x188c5b||!_0xad5e13)return null;let _0x238eb4=this[_0x475eef(0x2e7)]['getElementById'](_0x188c5b[_0x475eef(0x293)],_0x188c5b[_0x475eef(0x15e)],_0xad5e13);if(!_0x238eb4||!_0x446d08(_0x238eb4[_0x475eef(0x1ba)]))return null;let _0x21a98f=_0x16f58d(_0x188c5b['unitId'],_0xad5e13),_0x2b1fa0=this[_0x475eef(0x184)][_0x475eef(0x139)],_0x5eae8f=((_0x4d6110=_0x2b1fa0[_0x475eef(0x31e)])==null?void 0x0:_0x4d6110['call'](_0x2b1fa0,_0x21a98f))??this[_0x475eef(0x184)]['scene'][_0x475eef(0x18d)](_0x21a98f);return _0x5eae8f?{'object':_0x5eae8f,'elementData':_0x238eb4}:null;}[_0x3f9745(0x3ac)](_0x85e07c){const _0xa36e57=_0x3f9745;var _0x25c70e;if(!_0x85e07c)return null;let _0x1b4df3=_0x503eb6(_0x85e07c[_0xa36e57(0x286)]);if(!_0x1b4df3)return null;let _0x567f74=this['_elementStateService'][_0xa36e57(0x195)](),_0x3cc936=((_0x25c70e=_0x567f74[_0xa36e57(0x152)])==null?void 0x0:_0x25c70e[_0xa36e57(0x293)])===_0x1b4df3[_0xa36e57(0x293)]?_0x567f74[_0xa36e57(0x152)][_0xa36e57(0x15e)]:void 0x0;if(!_0x3cc936)return null;let _0x30ab1d=this[_0xa36e57(0x2e7)][_0xa36e57(0x1e1)](_0x1b4df3[_0xa36e57(0x293)],_0x3cc936,_0x1b4df3[_0xa36e57(0x341)]);return _0x30ab1d?{'object':_0x85e07c,'elementData':_0x30ab1d}:null;}};Gn=q([K(0x1,_0x23a0df(_0x43d900)),K(0x2,_0x23a0df(_0x221653)),K(0x3,_0x23a0df(_0x213d24)),K(0x4,_0x23a0df(_0x347ed5)),K(0x5,_0x23a0df(_0x5ece23))],Gn);const Kn=_0x3f9745(0x2a3),qn=_0x527bdc[_0x3f9745(0x159)];function Jn(_0x31aa03,_0xb84004){const _0x185833=_0x3f9745;return(_0x31aa03??[])[_0x185833(0x333)]((_0x1df36a,_0x547eed)=>(_0x1df36a[_0x547eed[_0x185833(0x24a)]??_0xb84004][_0x185833(0x204)](_0x547eed),_0x1df36a),{'left':[],'right':[],'top':[],'bottom':[]});}function Yn(_0x2856c3){const _0x2ac4ab=_0x3f9745;return _0x2856c3===_0x2ac4ab(0x2fc)||_0x2856c3==='tree-right'||_0x2856c3===_0x2ac4ab(0x2a6);}function Xn(_0x39d9db){const _0x837ae4=_0x3f9745;return _0x39d9db==='timeline-horizontal'||_0x39d9db===_0x837ae4(0x300);}function Zn(_0x2f7fa4,_0x2b9b83,_0x37505c){const _0x147547=_0x3f9745;return _0x37505c===_0x147547(0x2fc)?'left':_0x37505c===_0x147547(0x37e)?_0x147547(0x2f9):_0x2f7fa4[_0x147547(0x24a)]===_0x147547(0x1cd)||_0x2f7fa4[_0x147547(0x24a)]==='right'?_0x2f7fa4[_0x147547(0x24a)]:_0x2b9b83%0x2==0x0?'left':_0x147547(0x2f9);}function Qn(_0x5ebec1,_0x112c8e){const _0x33d7f1=_0x3f9745;return(_0x112c8e==null?void 0x0:_0x112c8e['root'][_0x33d7f1(0x3e4)])??_0x5ebec1??[];}var $n=class extends _0x1e60f7{constructor(_0x5f05e2=Kn,_0x2003b5){const _0x1c467a=_0x3f9745;super(_0x5f05e2),G(this,_0x1c467a(0x196),{'point':null,'children':[]}),this[_0x1c467a(0x3dc)]=!0x1,this[_0x1c467a(0x25c)]=_0x211718['transientPreview'],this[_0x1c467a(0x210)](_0x2003b5);}[_0x3f9745(0x210)](_0x3cdd01){const _0x373277=_0x3f9745;this[_0x373277(0x196)]={...this[_0x373277(0x196)],..._0x3cdd01},this[_0x373277(0x196)][_0x373277(0x26b)]?this[_0x373277(0x20f)]():this[_0x373277(0x189)](),this[_0x373277(0x257)](!0x0);}[_0x3f9745(0x2db)](_0x375855){return!0x1;}['render'](_0x42d1b0,_0x20dece){const _0x1a9fe9=_0x3f9745;let _0x5a0e11=this[_0x1a9fe9(0x196)][_0x1a9fe9(0x26b)];if(!_0x5a0e11||!this[_0x1a9fe9(0x3ce)])return this['makeDirty'](!0x1),this;let _0x8fd445=Number[_0x1a9fe9(0x271)](this['_state'][_0x1a9fe9(0x2c7)])&&(this[_0x1a9fe9(0x196)]['zoomRatio']??0x0)>0x0?this['_state']['zoomRatio']:0x1,_0x272a9f=_0x41e078['rootWidth'],_0xfc903d=_0x41e078['rootHeight'],_0x3317b8=_0x41e078[_0x1a9fe9(0x2a8)],_0x39a078=_0x41e078[_0x1a9fe9(0x2e0)],_0x243940=_0x3122e8[_0x1a9fe9(0x3b1)],_0x2001e9=_0x3122e8[_0x1a9fe9(0x37d)],_0x66c410=this[_0x1a9fe9(0x196)][_0x1a9fe9(0x224)]===_0x1a9fe9(0x30b),_0x4b5cf1=Jn(this[_0x1a9fe9(0x196)]['children'],_0x66c410?_0x1a9fe9(0x255):_0x1a9fe9(0x2f9)),_0x3cf8aa=_0x5a0e11['x']-_0x272a9f/0x2,_0x4cebf2=_0x5a0e11['y']-_0xfc903d/0x2;if(_0x42d1b0[_0x1a9fe9(0x3c6)](),_0x42d1b0[_0x1a9fe9(0x15c)]=Y['objectAlpha'],_0x42d1b0[_0x1a9fe9(0x2a2)]=Y[_0x1a9fe9(0x323)]/_0x8fd445,_0x42d1b0[_0x1a9fe9(0x176)]=Y['primaryColor'],Xn(this['_state']['structureKind'])){let _0x1af53e=Qn(this[_0x1a9fe9(0x196)]['children'],this[_0x1a9fe9(0x196)][_0x1a9fe9(0x148)]),_0x1a20bf=this[_0x1a9fe9(0x196)][_0x1a9fe9(0x224)]===_0x1a9fe9(0x166);if(_0x1af53e[_0x1a9fe9(0x3cb)]>0x0){if(_0x42d1b0[_0x1a9fe9(0x3be)](),_0x1a20bf){let _0x55cb70=_0x3317b8,_0x37973e=_0x39a078,_0x464c40=_0x3122e8[_0x1a9fe9(0x14f)],_0x5052c4=_0x5a0e11['y'],_0x349ec6=_0x3cf8aa+_0x272a9f,_0x260815=_0x5a0e11['y']-_0x37973e/0x2,_0x4e6a2e=_0x3cf8aa+_0x272a9f+_0x464c40;_0x42d1b0[_0x1a9fe9(0x17a)](_0x349ec6,_0x5052c4),_0x42d1b0['lineTo'](_0x4e6a2e,_0x5052c4),_0x1af53e['forEach']((_0x4f7172,_0x26b4d1)=>{const _0x26df0c=_0x1a9fe9;let _0x983add=_0x4e6a2e+_0x26b4d1*(_0x55cb70+_0x464c40);if(_0x26b4d1>0x0){let _0x3ba23c=_0x4e6a2e+(_0x26b4d1-0x1)*(_0x55cb70+_0x464c40)+_0x55cb70;_0x42d1b0[_0x26df0c(0x17a)](_0x3ba23c,_0x5052c4),_0x42d1b0['lineTo'](_0x983add,_0x5052c4);}_0x42d1b0[_0x26df0c(0x17a)](_0x983add,_0x5052c4),_0x42d1b0['lineTo'](_0x983add+_0x55cb70,_0x5052c4);}),_0x42d1b0[_0x1a9fe9(0x1da)](),_0x1af53e[_0x1a9fe9(0x185)]((_0x19a865,_0x18adb8)=>{const _0x8cedb3=_0x1a9fe9;X(_0x42d1b0,_0x4e6a2e+_0x18adb8*(_0x55cb70+_0x464c40),_0x260815,_0x55cb70,_0x37973e,Y[_0x8cedb3(0x294)]),_0x42d1b0[_0x8cedb3(0x23c)]=Y[_0x8cedb3(0x3fa)],_0x42d1b0[_0x8cedb3(0x173)](),_0x42d1b0['stroke']();}),_0x1af53e['forEach']((_0x66c4c3,_0x7fa0e8)=>{const _0x31e9a3=_0x1a9fe9;if(!(_0x31e9a3(0x3e4)in _0x66c4c3)||_0x66c4c3[_0x31e9a3(0x3e4)][_0x31e9a3(0x3cb)]===0x0)return;let _0x440971=_0x4e6a2e+_0x7fa0e8*(_0x55cb70+_0x464c40),_0x4a375b=_0x440971+_0x55cb70/0x2,_0x1b50bc=_0x66c4c3['side']===_0x31e9a3(0x255)?_0x31e9a3(0x255):_0x31e9a3(0x136),_0x44eac5=_0x66c4c3[_0x31e9a3(0x3e4)]['slice'](0x0,0x2),_0x4653ac=_0x44eac5[_0x31e9a3(0x3cb)]*_0x37973e+Math[_0x31e9a3(0x312)](0x0,_0x44eac5[_0x31e9a3(0x3cb)]-0x1)*_0x2001e9,_0x1eb7be=_0x440971+_0x55cb70+_0x3122e8[_0x31e9a3(0x226)],_0x4664e2=_0x1b50bc===_0x31e9a3(0x136)?_0x260815-_0x243940-_0x4653ac:_0x260815+_0x37973e+_0x243940,_0x14203f=_0x4664e2+_0x4653ac/0x2;_0x42d1b0[_0x31e9a3(0x3be)](),_0x42d1b0['moveTo'](_0x4a375b,_0x1b50bc===_0x31e9a3(0x136)?_0x260815:_0x260815+_0x37973e),_0x42d1b0[_0x31e9a3(0x1b8)](_0x4a375b,_0x14203f),_0x42d1b0[_0x31e9a3(0x1b8)](_0x1eb7be,_0x14203f),_0x44eac5[_0x31e9a3(0x185)]((_0x2f0c5e,_0x29313b)=>{const _0x1d5146=_0x31e9a3;let _0x3fe7ba=_0x4664e2+_0x29313b*(_0x37973e+_0x2001e9)+_0x37973e/0x2;_0x42d1b0['moveTo'](_0x1eb7be,_0x3fe7ba),_0x42d1b0[_0x1d5146(0x1b8)](_0x1eb7be+_0x55cb70,_0x3fe7ba);}),_0x42d1b0['stroke'](),_0x44eac5[_0x31e9a3(0x185)]((_0x164259,_0x32102a)=>{const _0x3fcdfd=_0x31e9a3;let _0x18e79c=_0x4664e2+_0x32102a*(_0x37973e+_0x2001e9);X(_0x42d1b0,_0x1eb7be,_0x18e79c,_0x55cb70,_0x37973e,Y['ghostRadius']),_0x42d1b0[_0x3fcdfd(0x23c)]=Y[_0x3fcdfd(0x3fa)],_0x42d1b0[_0x3fcdfd(0x173)](),_0x42d1b0['stroke']();});});}else{let _0x2fa23f=_0x5a0e11['x'],_0x4af517=_0x4cebf2+_0xfc903d,_0x455725=_0x3122e8['timelineAxisGap'],_0x60aa91=_0x4cebf2+_0xfc903d+_0x455725,_0x4d18c4=_0x60aa91+(_0x1af53e[_0x1a9fe9(0x3cb)]-0x1)*(_0x39a078+_0x455725)+_0x39a078/0x2;_0x42d1b0[_0x1a9fe9(0x17a)](_0x2fa23f,_0x4af517),_0x42d1b0['lineTo'](_0x2fa23f,_0x4d18c4),_0x1af53e['forEach']((_0x5b3fd1,_0x341d99)=>{const _0x32f3ec=_0x1a9fe9;let _0x25a555=_0x60aa91+_0x341d99*(_0x39a078+_0x455725)+_0x39a078/0x2,_0x599889=_0x5b3fd1[_0x32f3ec(0x24a)]===_0x32f3ec(0x2f9)?_0x32f3ec(0x2f9):_0x32f3ec(0x1cd),_0x17fbdc=_0x599889===_0x32f3ec(0x2f9)?_0x2fa23f+_0x3122e8['branchGap']:_0x2fa23f-_0x3122e8[_0x32f3ec(0x226)]-_0x3317b8,_0x5957d5=_0x599889===_0x32f3ec(0x2f9)?_0x17fbdc:_0x17fbdc+_0x3317b8;_0x42d1b0[_0x32f3ec(0x17a)](_0x2fa23f,_0x25a555),_0x42d1b0['lineTo'](_0x5957d5,_0x25a555);}),_0x42d1b0[_0x1a9fe9(0x1da)](),_0x1af53e['forEach']((_0x312fac,_0x35bd1c)=>{const _0x1f052c=_0x1a9fe9;let _0x33eb3e=_0x60aa91+_0x35bd1c*(_0x39a078+_0x455725);X(_0x42d1b0,(_0x312fac[_0x1f052c(0x24a)]===_0x1f052c(0x2f9)?_0x1f052c(0x2f9):_0x1f052c(0x1cd))=='right'?_0x2fa23f+_0x3122e8[_0x1f052c(0x226)]:_0x2fa23f-_0x3122e8[_0x1f052c(0x226)]-_0x3317b8,_0x33eb3e,_0x3317b8,_0x39a078,Y['ghostRadius']),_0x42d1b0['fillStyle']=Y['ghostFillColor'],_0x42d1b0['fill'](),_0x42d1b0[_0x1f052c(0x1da)]();}),_0x1af53e[_0x1a9fe9(0x185)]((_0x4b0714,_0x58d1a2)=>{const _0xc46b7a=_0x1a9fe9;if(!('children'in _0x4b0714)||_0x4b0714['children'][_0xc46b7a(0x3cb)]===0x0)return;let _0x53701d=_0x60aa91+_0x58d1a2*(_0x39a078+_0x455725)+_0x39a078/0x2,_0x4ff5d6=_0x4b0714[_0xc46b7a(0x24a)]===_0xc46b7a(0x2f9)?_0xc46b7a(0x2f9):_0xc46b7a(0x1cd),_0x2213bc=_0x4b0714[_0xc46b7a(0x3e4)][_0xc46b7a(0x1a9)](0x0,0x2),_0x5564ec=_0x2213bc[_0xc46b7a(0x3cb)]*_0x39a078+Math['max'](0x0,_0x2213bc[_0xc46b7a(0x3cb)]-0x1)*_0x2001e9,_0x4d99f9=_0x4ff5d6===_0xc46b7a(0x2f9)?_0x2fa23f+_0x3122e8[_0xc46b7a(0x226)]:_0x2fa23f-_0x3122e8[_0xc46b7a(0x226)]-_0x3317b8,_0x4ff41d=_0x4ff5d6===_0xc46b7a(0x2f9)?_0x4d99f9+_0x3317b8+_0x243940:_0x4d99f9-_0x243940-_0x3317b8,_0x38b86b=_0x53701d-_0x5564ec/0x2,_0x580a15=_0x4ff5d6==='right'?_0x4d99f9+_0x3317b8:_0x4d99f9,_0x27bbeb=_0x4ff5d6==='right'?_0x4ff41d:_0x4ff41d+_0x3317b8;_0x42d1b0['beginPath'](),_0x42d1b0['moveTo'](_0x580a15,_0x53701d),_0x42d1b0[_0xc46b7a(0x1b8)](_0x27bbeb,_0x53701d),_0x2213bc[_0xc46b7a(0x185)]((_0x496f7e,_0x506f7e)=>{const _0x2e4afc=_0xc46b7a;let _0x3c9bcb=_0x38b86b+_0x506f7e*(_0x39a078+_0x2001e9)+_0x39a078/0x2;_0x42d1b0['moveTo'](_0x27bbeb,_0x3c9bcb),_0x42d1b0[_0x2e4afc(0x1b8)](_0x4ff5d6===_0x2e4afc(0x2f9)?_0x4ff41d+_0x3317b8:_0x4ff41d,_0x3c9bcb);}),_0x42d1b0[_0xc46b7a(0x1da)](),_0x2213bc[_0xc46b7a(0x185)]((_0x26cf8d,_0x341f1b)=>{const _0x32f20e=_0xc46b7a;let _0xcfa134=_0x38b86b+_0x341f1b*(_0x39a078+_0x2001e9);X(_0x42d1b0,_0x4ff41d,_0xcfa134,_0x3317b8,_0x39a078,Y[_0x32f20e(0x294)]),_0x42d1b0[_0x32f20e(0x23c)]=Y[_0x32f20e(0x3fa)],_0x42d1b0[_0x32f20e(0x173)](),_0x42d1b0[_0x32f20e(0x1da)]();});});}}}else{if(Yn(this[_0x1a9fe9(0x196)][_0x1a9fe9(0x224)])){let _0x4b6da0=this[_0x1a9fe9(0x196)][_0x1a9fe9(0x3e4)]??[],_0x1220ae=_0x4cebf2+_0xfc903d,_0x46c49f=_0x1220ae+_0x243940,_0x4513d0=_0x5a0e11['x'];if(_0x4b6da0[_0x1a9fe9(0x3cb)]>0x0){let _0x28cfc6=_0x46c49f+(_0x4b6da0[_0x1a9fe9(0x3cb)]-0x1)*(_0x39a078+_0x2001e9)+_0x39a078/0x2;_0x42d1b0['beginPath'](),_0x42d1b0[_0x1a9fe9(0x17a)](_0x4513d0,_0x1220ae),_0x42d1b0[_0x1a9fe9(0x1b8)](_0x4513d0,_0x28cfc6),_0x4b6da0[_0x1a9fe9(0x185)]((_0x3f204f,_0x199926)=>{const _0x51b5e6=_0x1a9fe9;let _0x5b723e=Zn(_0x3f204f,_0x199926,this['_state']['structureKind']),_0x57f0c0=_0x46c49f+_0x199926*(_0x39a078+_0x2001e9),_0x1d5d5f=_0x5b723e===_0x51b5e6(0x2f9)?_0x4513d0+_0x243940:_0x4513d0-_0x243940-_0x3317b8,_0x3a5784=_0x57f0c0+_0x39a078/0x2;_0x42d1b0['moveTo'](_0x4513d0,_0x3a5784),_0x42d1b0[_0x51b5e6(0x1b8)](_0x5b723e===_0x51b5e6(0x2f9)?_0x1d5d5f:_0x1d5d5f+_0x3317b8,_0x3a5784);}),_0x42d1b0[_0x1a9fe9(0x1da)](),_0x4b6da0['forEach']((_0x1e392a,_0x4cd1de)=>{const _0xc157cc=_0x1a9fe9;let _0x2d58ad=Zn(_0x1e392a,_0x4cd1de,this['_state'][_0xc157cc(0x224)]),_0x109e98=_0x46c49f+_0x4cd1de*(_0x39a078+_0x2001e9);X(_0x42d1b0,_0x2d58ad===_0xc157cc(0x2f9)?_0x4513d0+_0x243940:_0x4513d0-_0x243940-_0x3317b8,_0x109e98,_0x3317b8,_0x39a078,Y[_0xc157cc(0x294)]),_0x42d1b0['fillStyle']=Y[_0xc157cc(0x3fa)],_0x42d1b0['fill'](),_0x42d1b0[_0xc157cc(0x1da)]();});}}else _0x66c410&&[_0x1a9fe9(0x136),_0x1a9fe9(0x255)][_0x1a9fe9(0x185)](_0xd8697b=>{const _0x34d07f=_0x1a9fe9;let _0x30bc28=_0x4b5cf1[_0xd8697b];if(_0x30bc28[_0x34d07f(0x3cb)]===0x0)return;let _0xa41051=_0x30bc28[_0x34d07f(0x3cb)]*_0x3317b8+Math[_0x34d07f(0x312)](0x0,_0x30bc28[_0x34d07f(0x3cb)]-0x1)*_0x2001e9,_0x3a3d6c=_0x5a0e11['x']-_0xa41051/0x2,_0x588f00=_0xd8697b===_0x34d07f(0x255)?_0x4cebf2+_0xfc903d:_0x4cebf2,_0x181671=_0xd8697b===_0x34d07f(0x255)?_0x588f00+_0x3122e8[_0x34d07f(0x226)]:_0x588f00-_0x3122e8['branchGap'],_0x28fed7=_0xd8697b===_0x34d07f(0x255)?_0x4cebf2+_0xfc903d+_0x243940:_0x4cebf2-_0x243940-_0x39a078;_0x42d1b0['beginPath'](),_0x42d1b0['moveTo'](_0x5a0e11['x'],_0x588f00),_0x42d1b0['lineTo'](_0x5a0e11['x'],_0x181671),_0x30bc28[_0x34d07f(0x3cb)]>0x1&&(_0x42d1b0[_0x34d07f(0x17a)](_0x3a3d6c+_0x3317b8/0x2,_0x181671),_0x42d1b0[_0x34d07f(0x1b8)](_0x3a3d6c+_0xa41051-_0x3317b8/0x2,_0x181671)),_0x30bc28[_0x34d07f(0x185)]((_0x188bc6,_0x2662f5)=>{const _0x2e579b=_0x34d07f;let _0x558c95=_0x3a3d6c+_0x2662f5*(_0x3317b8+_0x2001e9)+_0x3317b8/0x2;_0x42d1b0[_0x2e579b(0x17a)](_0x558c95,_0x181671),_0x42d1b0['lineTo'](_0x558c95,_0xd8697b===_0x2e579b(0x255)?_0x28fed7:_0x28fed7+_0x39a078);}),_0x42d1b0[_0x34d07f(0x1da)](),_0x30bc28['forEach']((_0xc5dd20,_0x2f59fa)=>{const _0x47b486=_0x34d07f;X(_0x42d1b0,_0x3a3d6c+_0x2f59fa*(_0x3317b8+_0x2001e9),_0x28fed7,_0x3317b8,_0x39a078,Y[_0x47b486(0x294)]),_0x42d1b0[_0x47b486(0x23c)]=Y[_0x47b486(0x3fa)],_0x42d1b0[_0x47b486(0x173)](),_0x42d1b0[_0x47b486(0x1da)]();});});}(_0x66c410||Yn(this[_0x1a9fe9(0x196)][_0x1a9fe9(0x224)])||Xn(this[_0x1a9fe9(0x196)][_0x1a9fe9(0x224)])?[]:[_0x1a9fe9(0x1cd),'right'])['forEach'](_0x4458e9=>{const _0x6ff9=_0x1a9fe9;let _0x5cc164=_0x4b5cf1[_0x4458e9];if(_0x5cc164[_0x6ff9(0x3cb)]===0x0)return;let _0x26a8d2=_0x5cc164['length']*_0x39a078+Math[_0x6ff9(0x312)](0x0,_0x5cc164[_0x6ff9(0x3cb)]-0x1)*_0x2001e9,_0x322e03=_0x5a0e11['y']-_0x26a8d2/0x2,_0x8a95b2=_0x4458e9===_0x6ff9(0x2f9)?_0x3cf8aa+_0x272a9f:_0x3cf8aa,_0x4718a4=_0x4458e9===_0x6ff9(0x2f9)?_0x8a95b2+_0x3122e8['branchGap']:_0x8a95b2-_0x3122e8[_0x6ff9(0x226)],_0x276fb3=_0x4458e9==='right'?_0x3cf8aa+_0x272a9f+_0x243940:_0x3cf8aa-_0x243940-_0x3317b8;_0x42d1b0['beginPath'](),_0x42d1b0[_0x6ff9(0x17a)](_0x8a95b2,_0x5a0e11['y']),_0x42d1b0[_0x6ff9(0x1b8)](_0x4718a4,_0x5a0e11['y']),_0x5cc164[_0x6ff9(0x3cb)]>0x1&&(_0x42d1b0[_0x6ff9(0x17a)](_0x4718a4,_0x322e03+_0x39a078/0x2),_0x42d1b0[_0x6ff9(0x1b8)](_0x4718a4,_0x322e03+_0x26a8d2-_0x39a078/0x2)),_0x5cc164[_0x6ff9(0x185)]((_0x584daa,_0x29c1aa)=>{const _0x1181b5=_0x6ff9;let _0x54a700=_0x322e03+_0x29c1aa*(_0x39a078+_0x2001e9)+_0x39a078/0x2;_0x42d1b0[_0x1181b5(0x17a)](_0x4718a4,_0x54a700),_0x42d1b0[_0x1181b5(0x1b8)](_0x4458e9==='right'?_0x276fb3:_0x276fb3+_0x3317b8,_0x54a700);}),_0x42d1b0[_0x6ff9(0x1da)](),_0x5cc164[_0x6ff9(0x185)]((_0x27d3d5,_0x3edeb7)=>{const _0x443f73=_0x6ff9;let _0x39093d=_0x322e03+_0x3edeb7*(_0x39a078+_0x2001e9);X(_0x42d1b0,_0x276fb3,_0x39093d,_0x3317b8,_0x39a078,Y[_0x443f73(0x294)]),_0x42d1b0['fillStyle']=Y['ghostFillColor'],_0x42d1b0[_0x443f73(0x173)](),_0x42d1b0[_0x443f73(0x1da)]();});}),X(_0x42d1b0,_0x3cf8aa,_0x4cebf2,_0x272a9f,_0xfc903d,Y[_0x1a9fe9(0x3ae)]),_0x42d1b0[_0x1a9fe9(0x23c)]=Y[_0x1a9fe9(0x147)],_0x42d1b0[_0x1a9fe9(0x173)](),_0x42d1b0['stroke'](),_0x42d1b0[_0x1a9fe9(0x23c)]=Y[_0x1a9fe9(0x3b8)],_0x42d1b0[_0x1a9fe9(0x218)]=Vt(Y[_0x1a9fe9(0x3db)],Y[_0x1a9fe9(0x2fe)],_0x8fd445),_0x42d1b0[_0x1a9fe9(0x168)]=_0x1a9fe9(0x18b),_0x42d1b0[_0x1a9fe9(0x36b)]='middle';let _0xa1c577=Y[_0x1a9fe9(0x193)]/_0x8fd445;return _0x42d1b0[_0x1a9fe9(0x13a)](_0x26492b,_0x5a0e11['x'],_0x5a0e11['y'],Math[_0x1a9fe9(0x312)](0x1,_0x272a9f-_0xa1c577*0x2)),_0x42d1b0[_0x1a9fe9(0x1ed)](),this[_0x1a9fe9(0x257)](!0x1),this;}};const er={'children':[{'text':_0x26492b,'orderKey':_0x24bf32(0x0),'side':_0x3f9745(0x2f9)},{'text':_0x26492b,'orderKey':_0x24bf32(0x1),'side':_0x3f9745(0x2f9)},{'text':_0x26492b,'orderKey':_0x24bf32(0x2),'side':_0x3f9745(0x2f9)}]};var tr=class extends _0x248e7a{constructor(..._0xf34b78){super(..._0xf34b78),G(this,'_template',er);}['setTemplate'](_0x57f2c6){const _0x473719=_0x3f9745;var _0x44e5ff;let _0x4c5bb9=(_0x57f2c6==null?void 0x0:_0x57f2c6['children'])??(_0x57f2c6==null||(_0x44e5ff=_0x57f2c6[_0x473719(0x148)])==null?void 0x0:_0x44e5ff[_0x473719(0x3aa)]['children']);this[_0x473719(0x1c9)]={'rootText':_0x57f2c6==null?void 0x0:_0x57f2c6['rootText'],'structureKind':_0x57f2c6==null?void 0x0:_0x57f2c6[_0x473719(0x224)],'branchLineType':_0x57f2c6==null?void 0x0:_0x57f2c6['branchLineType'],'children':this[_0x473719(0x28f)](_0x4c5bb9,_0x57f2c6==null?void 0x0:_0x57f2c6[_0x473719(0x224)]),'blueprint':_0x57f2c6!=null&&_0x57f2c6[_0x473719(0x148)]?this['_cloneBlueprint'](_0x57f2c6[_0x473719(0x148)]):void 0x0};}[_0x3f9745(0x3da)](){const _0x277b44=_0x3f9745;var _0x58c96f;return{'rootText':this[_0x277b44(0x1c9)][_0x277b44(0x353)],'structureKind':this[_0x277b44(0x1c9)]['structureKind'],'branchLineType':this[_0x277b44(0x1c9)][_0x277b44(0x281)],'children':(_0x58c96f=this[_0x277b44(0x1c9)][_0x277b44(0x3e4)])==null?void 0x0:_0x58c96f[_0x277b44(0x3ea)](_0x12d3ce=>({..._0x12d3ce})),'blueprint':this[_0x277b44(0x1c9)][_0x277b44(0x148)]?this['_cloneBlueprint'](this[_0x277b44(0x1c9)][_0x277b44(0x148)]):void 0x0};}['_cloneBlueprint'](_0x24cfff){const _0x1187f7=_0x3f9745;return{'title':_0x24cfff[_0x1187f7(0x1bf)],'root':this['_cloneBlueprintNode'](_0x24cfff[_0x1187f7(0x3aa)])};}[_0x3f9745(0x315)](_0xe028d8){const _0x4449ff=_0x3f9745;return{..._0xe028d8,'foreignAttributes':_0xe028d8[_0x4449ff(0x165)]?{..._0xe028d8['foreignAttributes']}:void 0x0,'children':_0xe028d8[_0x4449ff(0x3e4)]['map'](_0x5affb1=>this['_cloneBlueprintNode'](_0x5affb1))};}[_0x3f9745(0x28f)](_0xa57be3,_0x54a03b){const _0x2970b9=_0x3f9745;let _0x4cbcb4=!_0xa57be3,_0x33e6c2=_0xa57be3??er['children'];return _0x33e6c2==null?void 0x0:_0x33e6c2[_0x2970b9(0x3ea)]((_0x32fc2f,_0x27d127)=>({..._0x32fc2f,'text':_0x32fc2f[_0x2970b9(0x129)]??_0x26492b,'side':this[_0x2970b9(0x1ce)](_0x32fc2f[_0x2970b9(0x24a)],_0x27d127,_0x54a03b,_0x4cbcb4)}));}['_resolveChildSide'](_0x38ce4a,_0x17223f,_0x396db4,_0x4ed9bb){const _0x4e542b=_0x3f9745;return _0x396db4==='mindmap-vertical'?_0x4ed9bb?_0x4e542b(0x255):_0x38ce4a??_0x4e542b(0x255):_0x396db4===_0x4e542b(0x2fc)?_0x4ed9bb?_0x4e542b(0x1cd):_0x38ce4a??'left':_0x396db4===_0x4e542b(0x37e)?_0x4ed9bb?_0x4e542b(0x2f9):_0x38ce4a??_0x4e542b(0x2f9):_0x396db4===_0x4e542b(0x2a6)?_0x4ed9bb?_0x17223f%0x2==0x0?_0x4e542b(0x1cd):'right':_0x38ce4a??(_0x17223f%0x2==0x0?_0x4e542b(0x1cd):'right'):_0x396db4===_0x4e542b(0x166)?_0x4ed9bb?_0x17223f%0x2==0x0?'top':'bottom':_0x38ce4a??(_0x17223f%0x2==0x0?_0x4e542b(0x136):'bottom'):_0x396db4===_0x4e542b(0x300)?_0x4ed9bb?_0x17223f%0x2==0x0?_0x4e542b(0x1cd):_0x4e542b(0x2f9):_0x38ce4a??(_0x17223f%0x2==0x0?_0x4e542b(0x1cd):_0x4e542b(0x2f9)):_0x38ce4a;}};function nr(_0x2b215e,_0x398b49){const _0x9bbf82=_0x3f9745;let _0x11a354=Number[_0x9bbf82(0x271)](_0x398b49['zoomRatio'])&&_0x398b49[_0x9bbf82(0x2c7)]>0x0?_0x398b49[_0x9bbf82(0x2c7)]:0x1;return{'x':Math[_0x9bbf82(0x141)]((_0x2b215e[_0x9bbf82(0x250)]-_0x398b49[_0x9bbf82(0x2b1)]['x'])/_0x11a354),'y':Math[_0x9bbf82(0x141)]((_0x2b215e[_0x9bbf82(0x372)]-_0x398b49['panOffset']['y'])/_0x11a354)};}function rr(_0x4454f6){const _0x1ea0f5=_0x3f9745;var _0x2f0536;if(_0x4454f6!=null&&_0x4454f6[_0x1ea0f5(0x19d)]){_0x4454f6['dispose']();return;}_0x4454f6==null||(_0x2f0536=_0x4454f6[_0x1ea0f5(0x1a4)])==null||_0x2f0536[_0x1ea0f5(0x1aa)](_0x4454f6);}function ir(_0x165a5c){const _0x384b91=_0x3f9745;var _0x3de56a;return _0x165a5c[_0x384b91(0x154)]===_0x3cc27d[_0x384b91(0x1cb)]&&((_0x3de56a=_0x165a5c[_0x384b91(0x209)])==null?void 0x0:_0x3de56a[_0x384b91(0x22e)])===_0x3cc27d['MindMap'];}let ar=class extends _0xa1f691{constructor(_0x74f378,_0x147f39,_0x54be03,_0x5230bf,_0x58386b,_0x17450b,_0x390998){const _0x5b7c1d=_0x3f9745;super(),this[_0x5b7c1d(0x184)]=_0x74f378,this['_instanceSrv']=_0x147f39,this[_0x5b7c1d(0x132)]=_0x54be03,this[_0x5b7c1d(0x3b0)]=_0x5230bf,this[_0x5b7c1d(0x1b6)]=_0x58386b,this['_elementStateService']=_0x17450b,this[_0x5b7c1d(0x334)]=_0x390998,G(this,_0x5b7c1d(0x30a),null),G(this,_0x5b7c1d(0x3e6),null),this[_0x5b7c1d(0x284)]();}['_init'](){const _0x16689b=_0x3f9745;var _0xdf73cc;let {scene:_0x4779b4,unitId:_0x235d8d}=this[_0x16689b(0x184)],_0x11daee=this['_instanceSrv'][_0x16689b(0x3ab)](_0x235d8d,_0x1a4a16[_0x16689b(0x1df)]);if(!_0x11daee)return;let _0x49de6f=(_0xdf73cc=_0x4779b4[_0x16689b(0x3a8)])==null?void 0x0:_0xdf73cc[_0x16689b(0x199)]((_0x4c35f3,_0x1ae10d)=>{this['_handlePointerMove'](_0x4c35f3,_0x1ae10d);}),_0x5da7fb=_0x4779b4[_0x16689b(0x26d)][_0x16689b(0x199)]((_0x3e5260,_0x575aad)=>{const _0x46f42c=_0x16689b;this[_0x46f42c(0x21a)](_0x11daee,_0x3e5260,_0x575aad);});this[_0x16689b(0x241)](_0x1203fe(()=>rr(_0x49de6f))),this[_0x16689b(0x241)](_0x1203fe(()=>rr(_0x5da7fb)));let _0x17bcbf=this[_0x16689b(0x132)]['state$']['subscribe'](()=>this[_0x16689b(0x2af)]());this[_0x16689b(0x241)](_0x1203fe(()=>rr(_0x17bcbf))),this[_0x16689b(0x241)](_0x1203fe(()=>{this['_removePreviewObject']();})),this[_0x16689b(0x2af)]();}[_0x3f9745(0x2af)](){const _0x3e4e1f=_0x3f9745;var _0x178da1,_0x3f6c66;let _0x390b07=this[_0x3e4e1f(0x132)][_0x3e4e1f(0x2f3)]();if(!ir(_0x390b07)){this[_0x3e4e1f(0x295)]();return;}let _0x2fe38c=this[_0x3e4e1f(0x308)](),_0x33fc48=this['_insertStateService'][_0x3e4e1f(0x3da)]();_0x2fe38c[_0x3e4e1f(0x210)]({'point':this[_0x3e4e1f(0x3e6)],'structureKind':_0x33fc48[_0x3e4e1f(0x224)],'children':_0x33fc48[_0x3e4e1f(0x3e4)],'blueprint':_0x33fc48[_0x3e4e1f(0x148)],'zoomRatio':_0x390b07[_0x3e4e1f(0x2c7)]}),(_0x178da1=(_0x3f6c66=this[_0x3e4e1f(0x184)][_0x3e4e1f(0x139)])[_0x3e4e1f(0x257)])==null||_0x178da1[_0x3e4e1f(0x1aa)](_0x3f6c66,!0x0);}[_0x3f9745(0x308)](){const _0x102320=_0x3f9745;var _0x5585de,_0xce228e;if(this[_0x102320(0x30a)])return this[_0x102320(0x30a)];let _0x1099df=this[_0x102320(0x1b6)][_0x102320(0x3da)](),_0x2a0c28=new $n(Kn,{'point':this['_lastPoint'],'structureKind':_0x1099df[_0x102320(0x224)],'children':_0x1099df[_0x102320(0x3e4)],'blueprint':_0x1099df[_0x102320(0x148)],'zoomRatio':this[_0x102320(0x132)][_0x102320(0x2f3)]()['zoomRatio']});return this['_previewObject']=_0x2a0c28,(_0x5585de=(_0xce228e=this[_0x102320(0x184)]['scene'])['addObject'])==null||_0x5585de[_0x102320(0x1aa)](_0xce228e,_0x2a0c28,qn),_0x2a0c28;}['_removePreviewObject'](){const _0x274408=_0x3f9745;var _0x5083d8,_0x30900a,_0x3b5dab,_0x2a88eb;if(!this[_0x274408(0x30a)]){this[_0x274408(0x3e6)]=null;return;}(_0x5083d8=(_0x30900a=this['_renderContext'][_0x274408(0x139)])[_0x274408(0x20a)])==null||_0x5083d8[_0x274408(0x1aa)](_0x30900a,[this[_0x274408(0x30a)]]),this[_0x274408(0x30a)]=null,this[_0x274408(0x3e6)]=null,(_0x3b5dab=(_0x2a88eb=this['_renderContext'][_0x274408(0x139)])[_0x274408(0x257)])==null||_0x3b5dab['call'](_0x2a88eb,!0x0);}['_getPointFromEvent'](_0x513e70){const _0x218d2b=_0x3f9745;let _0x5e4b77=this[_0x218d2b(0x132)][_0x218d2b(0x2f3)]();return nr(_0x513e70,{'panOffset':_0x5e4b77[_0x218d2b(0x390)],'zoomRatio':_0x5e4b77[_0x218d2b(0x2c7)]});}['_resolveRootTopLeft'](_0x36d0f8){const _0x4ad8ba=_0x3f9745;return{'left':Math[_0x4ad8ba(0x141)](_0x36d0f8['x']-_0x41e078[_0x4ad8ba(0x125)]/0x2),'top':Math[_0x4ad8ba(0x141)](_0x36d0f8['y']-_0x41e078['rootHeight']/0x2)};}[_0x3f9745(0x2a0)](_0x5a3775,_0x3298cd){const _0xc83663=_0x3f9745;ir(this[_0xc83663(0x132)][_0xc83663(0x2f3)]())&&(this[_0xc83663(0x3e6)]=this['_getPointFromEvent'](_0x5a3775),this['_syncPreviewObject'](),_0x3298cd[_0xc83663(0x22f)]());}[_0x3f9745(0x21a)](_0x14f5cc,_0x3e94cc,_0x1d857b){const _0x22835f=_0x3f9745;var _0x548611;let _0x4d199c=this[_0x22835f(0x132)]['getState'](),_0x3db129=_0x3e94cc[_0x22835f(0x3fc)]??0x0;if(!ir(_0x4d199c)||_0x3db129!==0x0)return;let _0x2008b8=this['_getPointFromEvent'](_0x3e94cc),_0x17cb96=this[_0x22835f(0x280)](_0x2008b8),_0x21a52c=this[_0x22835f(0x1b6)][_0x22835f(0x3da)](),_0x17871e=_0x57f8a7(0x6),_0x4fa6ae=_0x14f5cc[_0x22835f(0x296)](),_0x1b316f=this[_0x22835f(0x3b0)][_0x22835f(0x36f)](_0x34f3d2['id'],{'unitId':this[_0x22835f(0x184)][_0x22835f(0x293)],'subUnitId':_0x4fa6ae,'left':_0x17cb96[_0x22835f(0x1cd)],'top':_0x17cb96[_0x22835f(0x136)],'rootNodeId':_0x17871e,'rootText':_0x21a52c['rootText'],'structureKind':_0x21a52c[_0x22835f(0x224)],'branchLineType':_0x21a52c[_0x22835f(0x281)],'children':_0x21a52c[_0x22835f(0x3e4)],'blueprint':_0x21a52c[_0x22835f(0x148)]});Promise[_0x22835f(0x376)](_0x1b316f)['then'](_0x55e092=>{const _0x2d7302=_0x22835f;if(!_0x55e092)return;let _0x11a052={'unitId':this[_0x2d7302(0x184)][_0x2d7302(0x293)],'subUnitId':_0x4fa6ae};this[_0x2d7302(0x1de)][_0x2d7302(0x339)](_0x11a052,[_0x17871e],_0x17871e),this['_boardTextEditingService'][_0x2d7302(0x265)](),this[_0x2d7302(0x334)][_0x2d7302(0x133)]({..._0x11a052,'shapeId':_0x17871e,'shapeKey':_0x16f58d(_0x11a052['unitId'],_0x17871e),'visible':!0x0});}),this[_0x22835f(0x132)][_0x22835f(0x370)](_0x3cc27d[_0x22835f(0x3d2)]),_0x1d857b[_0x22835f(0x22f)](),(_0x548611=_0x3e94cc[_0x22835f(0x128)])==null||_0x548611[_0x22835f(0x1aa)](_0x3e94cc);}};ar=q([K(0x1,_0x23feb0),K(0x2,_0x25c205),K(0x3,_0xe6cdb9),K(0x4,_0x23a0df(tr)),K(0x5,_0x213d24),K(0x6,_0x23a0df(_0x347ed5))],ar);var or=class extends _0x248e7a{constructor(..._0x34acba){const _0x2fab22=_0x3f9745;super(..._0x34acba),G(this,'_refresh$',new _0x567d3e()),G(this,_0x2fab22(0x249),this[_0x2fab22(0x247)][_0x2fab22(0x2bb)]());}[_0x3f9745(0x2dd)](_0x263aa1){const _0x4adc3d=_0x3f9745;this[_0x4adc3d(0x247)][_0x4adc3d(0x359)](_0x263aa1);}[_0x3f9745(0x19d)](){const _0x315f0d=_0x3f9745;this[_0x315f0d(0x247)][_0x315f0d(0x2b4)](),super[_0x315f0d(0x19d)]();}};function sr(_0x2878e0){const _0xc1f1e4=_0x3f9745;return typeof _0x2878e0==_0xc1f1e4(0x1dd)&&Number[_0xc1f1e4(0x271)](_0x2878e0)&&_0x2878e0>0x0;}function cr(_0x5b4641,_0x384e37,_0x200f81){const _0x3486af=_0x3f9745;let _0xcfc1b6=_0x5b4641[_0x384e37],_0x38ffeb=_0x446d08(_0xcfc1b6==null?void 0x0:_0xcfc1b6['element']);if(!_0xcfc1b6||!_0x38ffeb)return null;let _0x38296a=_0x1458fb(_0xcfc1b6,_0x200f81);if(!_0x38296a)return null;let _0x256238=_0xcfc1b6[_0x3486af(0x1e4)]??_0xcfc1b6[_0x3486af(0x1ba)][_0x3486af(0x1e4)];return _0x204dae({..._0x5b4641,[_0x384e37]:{..._0xcfc1b6,'transform':{..._0x256238,'width':_0x38296a['width'],'height':_0x38296a[_0x3486af(0x12b)]},'element':{..._0xcfc1b6[_0x3486af(0x1ba)],'transform':{..._0xcfc1b6[_0x3486af(0x1ba)][_0x3486af(0x1e4)],'width':_0x38296a[_0x3486af(0x276)],'height':_0x38296a[_0x3486af(0x12b)]}}}},_0x38ffeb[_0x3486af(0x305)]);}let lr=class extends _0xa1f691{constructor(_0x265012,_0x32f658,_0x84b263,_0x2f0ff5,_0x324578,_0x260bd2){const _0x5dc3fb=_0x3f9745;super(),this[_0x5dc3fb(0x184)]=_0x265012,this[_0x5dc3fb(0x186)]=_0x32f658,this['_boardElementService']=_0x84b263,this['_textEditingService']=_0x2f0ff5,this[_0x5dc3fb(0x16b)]=_0x324578,this[_0x5dc3fb(0x3b0)]=_0x260bd2,G(this,'_activePreview',null),G(this,_0x5dc3fb(0x3ba),{'match':_0x40b82c=>_0x40b82c[_0x5dc3fb(0x293)]===this['_renderContext']['unitId']&&!!_0x446d08(_0x40b82c[_0x5dc3fb(0x1ba)]),'resolveHostSize':_0x7189d8=>this[_0x5dc3fb(0x12f)](_0x7189d8),'previewHostSize':_0x1ec6e1=>this['_previewHostSize'](_0x1ec6e1),'updateHostSize':_0xd8951e=>this[_0x5dc3fb(0x34b)](_0xd8951e),'updateShapeText':_0x38b7d0=>this[_0x5dc3fb(0x1d9)](_0x38b7d0)}),this[_0x5dc3fb(0x241)](this[_0x5dc3fb(0x186)][_0x5dc3fb(0x2c0)](this['_provider'])),this[_0x5dc3fb(0x24d)](),this['disposeWithMe'](_0x1203fe(()=>this['_restoreActivePreview']()));}[_0x3f9745(0x34b)](_0xb39a2){const _0xaaf264=_0x3f9745;return this[_0xaaf264(0x3ff)](_0xb39a2);}['_updateShapeText'](_0x4df6d2){const _0x56b118=_0x3f9745;let _0x42140b=_0x4df6d2[_0x56b118(0x2b9)]['hostSize']?this[_0x56b118(0x12f)]({'elementData':_0x4df6d2['elementData'],'params':_0x4df6d2[_0x56b118(0x2b9)][_0x56b118(0x1ac)]}):null,_0x1a4ccc=_0x4df6d2[_0x56b118(0x1ee)][_0x56b118(0x1e4)]??_0x4df6d2['elementData'][_0x56b118(0x1ba)][_0x56b118(0x1e4)];return!(_0x42140b&&(_0x42140b[_0x56b118(0x276)]!==_0x1a4ccc['width']||_0x42140b[_0x56b118(0x12b)]!==_0x1a4ccc[_0x56b118(0x12b)]))&&_0x568f53(_0x4df6d2[_0x56b118(0x2b9)][_0x56b118(0x394)],_0x4df6d2['params'][_0x56b118(0x182)])?!0x0:this[_0x56b118(0x3b0)][_0x56b118(0x197)](_0x36c50b['id'],{'unitId':_0x4df6d2[_0x56b118(0x2b9)][_0x56b118(0x293)],'subUnitId':_0x4df6d2[_0x56b118(0x2b9)][_0x56b118(0x15e)],'nodeId':_0x4df6d2['params']['shapeId'],'shapeText':_0x4df6d2['params'][_0x56b118(0x394)],..._0x42140b?{'hostSize':{'width':_0x42140b[_0x56b118(0x276)],'height':_0x42140b[_0x56b118(0x12b)]}}:null});}[_0x3f9745(0x3ff)](_0xd6c430){const _0x26a9a5=_0x3f9745;let _0x18e667=this[_0x26a9a5(0x12f)](_0xd6c430);if(!_0x18e667)return!0x1;let _0x1684fc=_0xd6c430[_0x26a9a5(0x1ee)][_0x26a9a5(0x1e4)]??_0xd6c430[_0x26a9a5(0x1ee)][_0x26a9a5(0x1ba)]['transform'];return!this[_0x26a9a5(0x2ec)]&&_0x1684fc[_0x26a9a5(0x276)]===_0x18e667[_0x26a9a5(0x276)]&&_0x1684fc[_0x26a9a5(0x12b)]===_0x18e667[_0x26a9a5(0x12b)]||this[_0x26a9a5(0x268)](_0xd6c430,_0x18e667),!0x0;}[_0x3f9745(0x12f)](_0x514b92){const _0x5a71e2=_0x3f9745;return!sr(_0x514b92[_0x5a71e2(0x2b9)][_0x5a71e2(0x276)])||!sr(_0x514b92[_0x5a71e2(0x2b9)][_0x5a71e2(0x12b)])?null:_0x1458fb(_0x514b92[_0x5a71e2(0x1ee)],{'width':_0x514b92[_0x5a71e2(0x2b9)][_0x5a71e2(0x276)],'height':_0x514b92[_0x5a71e2(0x2b9)][_0x5a71e2(0x12b)]});}['_initEditingRestore'](){const _0x2f8252=_0x3f9745;this[_0x2f8252(0x241)](_0x1203fe(this[_0x2f8252(0x3f9)][_0x2f8252(0x2ac)][_0x2f8252(0x24c)](_0xba2edd(this[_0x2f8252(0x22d)]))[_0x2f8252(0x155)](_0x3c040f=>{const _0xfc993=_0x2f8252;_0x3c040f||this[_0xfc993(0x244)]();})));}[_0x3f9745(0x268)](_0x2bf960,_0x5ae062){const _0x475718=_0x3f9745;var _0x1d03c4;let _0x30577d=this[_0x475718(0x2e7)][_0x475718(0x192)](_0x2bf960[_0x475718(0x2b9)][_0x475718(0x293)],_0x2bf960[_0x475718(0x2b9)][_0x475718(0x15e)]),_0x54e9b6=cr(_0x30577d,_0x2bf960[_0x475718(0x2b9)][_0x475718(0x126)],_0x5ae062),_0x451ac9=_0x446d08((_0x1d03c4=_0x30577d[_0x2bf960[_0x475718(0x2b9)]['shapeId']])==null?void 0x0:_0x1d03c4[_0x475718(0x1ba)]);!_0x54e9b6||!_0x451ac9||(this[_0x475718(0x2ec)]={'unitId':_0x2bf960[_0x475718(0x2b9)][_0x475718(0x293)],'subUnitId':_0x2bf960['params']['subUnitId'],'scopeId':_0x451ac9[_0x475718(0x305)]},this[_0x475718(0x27d)](_0x54e9b6,_0x451ac9['structureScopeId'])&&this[_0x475718(0x16b)][_0x475718(0x2dd)]({'unitId':_0x2bf960[_0x475718(0x2b9)]['unitId'],'subUnitId':_0x2bf960[_0x475718(0x2b9)][_0x475718(0x15e)],'nodeId':_0x2bf960[_0x475718(0x2b9)][_0x475718(0x126)],'scopeId':_0x451ac9[_0x475718(0x305)]}));}[_0x3f9745(0x244)](){const _0x40023b=_0x3f9745;let _0x842aa3=this['_activePreview'];if(!_0x842aa3)return;this[_0x40023b(0x2ec)]=null;let _0x36bd13=this['_boardElementService']['getElementData'](_0x842aa3['unitId'],_0x842aa3[_0x40023b(0x15e)]);this['_syncElementDataToScene'](_0x36bd13,_0x842aa3[_0x40023b(0x327)])&&this['_previewRefreshService']['notify']({'unitId':_0x842aa3['unitId'],'subUnitId':_0x842aa3['subUnitId'],'nodeId':_0x842aa3['scopeId'],'scopeId':_0x842aa3[_0x40023b(0x327)]});}[_0x3f9745(0x27d)](_0x32b791,_0x89784){const _0x38a620=_0x3f9745;let _0x582d4d=!0x1;if(Object['values'](_0x32b791)[_0x38a620(0x185)](_0x1293cc=>{const _0x31b83d=_0x38a620;var _0x42fce5;let _0x340536=_0x446d08(_0x1293cc[_0x31b83d(0x1ba)]),_0x3c7762=(_0x42fce5=_0x1293cc[_0x31b83d(0x1ba)][_0x31b83d(0x2e9)])==null?void 0x0:_0x42fce5[_0x31b83d(0x37a)];if(_0x1293cc[_0x31b83d(0x341)]!==_0x89784&&(_0x340536==null?void 0x0:_0x340536['structureScopeId'])!==_0x89784&&(_0x3c7762==null?void 0x0:_0x3c7762[_0x31b83d(0x305)])!==_0x89784)return;let _0x19f53d=this[_0x31b83d(0x3c2)](_0x1293cc[_0x31b83d(0x341)]);_0x19f53d&&(_0x582d4d=_0x21ac57(_0x19f53d,_0x1293cc,{'elementData':_0x32b791,'unitId':this['_renderContext'][_0x31b83d(0x293)]})||_0x582d4d);}),_0x582d4d){var _0x1ebe46,_0x44e005;this[_0x38a620(0x184)]['scene'][_0x38a620(0x257)](!0x0),(_0x1ebe46=(_0x44e005=this[_0x38a620(0x184)]['scene'])[_0x38a620(0x2f5)])==null||_0x1ebe46['call'](_0x44e005);}return _0x582d4d;}['_getSceneObject'](_0x4c755d){const _0x46df63=_0x3f9745;var _0x3de55a;let _0x217b9b=_0x16f58d(this[_0x46df63(0x184)]['unitId'],_0x4c755d),_0x26f8a8=this[_0x46df63(0x184)][_0x46df63(0x139)];return((_0x3de55a=_0x26f8a8[_0x46df63(0x31e)])==null?void 0x0:_0x3de55a[_0x46df63(0x1aa)](_0x26f8a8,_0x217b9b))??this[_0x46df63(0x184)]['scene'][_0x46df63(0x18d)](_0x217b9b)??null;}};lr=q([K(0x1,_0x23a0df(_0x902e5b)),K(0x2,_0x23a0df(_0x221653)),K(0x3,_0x23a0df(_0x347ed5)),K(0x4,_0x23a0df(or)),K(0x5,_0xe6cdb9)],lr);const Q={'radius':0x12,'addChildRadius':0xe,'siblingHoverRadius':0xa,'siblingDotRadius':0x5,'siblingDotGap':0x3,'gap':0xa,'collapsePlusMinDistance':0x2c,'primaryColor':J['primaryColor'],'surfaceColor':J['surfaceColor'],'borderWidth':0x2,'glyphSize':0x8,'addChildGlyphSize':0x6,'siblingGlyphSize':5.5,'glyphWidth':2.4,'glyphHoverWidth':0x3,'badgeFontWeight':0x258,'badgeFontSize':0x12,'fontFamily':J[_0x3f9745(0x36d)]};function ur(_0x1c2aa3){const _0x51549b=_0x3f9745;let _0xa5dafd=Q['radius'],_0x1300a9=Q['addChildRadius'],_0x777090=Q[_0x51549b(0x383)],_0x18de1a=Q[_0x51549b(0x319)],_0x58c6d3=Q['siblingDotRadius'],_0x5e5ccb=_0x58c6d3+Q[_0x51549b(0x1c8)],_0x4a8b37=Q['collapsePlusMinDistance'],_0x26ac19=_0x1c2aa3[_0x51549b(0x1ae)][_0x51549b(0x136)]+_0x1c2aa3['bounds']['height']/0x2,_0x3066af=_0x1c2aa3[_0x51549b(0x1ae)]['left']+_0x1c2aa3[_0x51549b(0x1ae)][_0x51549b(0x276)]/0x2,_0x276f3a=_0x1c2aa3[_0x51549b(0x1ae)][_0x51549b(0x1cd)]-_0xa5dafd-_0x18de1a,_0x145124=_0x1c2aa3[_0x51549b(0x1ae)][_0x51549b(0x1cd)]+_0x1c2aa3['bounds']['width']+_0xa5dafd+_0x18de1a,_0x52b31a=_0x1c2aa3[_0x51549b(0x1ae)]['top']-_0xa5dafd-_0x18de1a,_0x4d8722=_0x1c2aa3['bounds']['top']+_0x1c2aa3[_0x51549b(0x1ae)]['height']+_0xa5dafd+_0x18de1a,_0xf4f65c=_0x1c2aa3['bounds'][_0x51549b(0x1cd)]-_0x1300a9-_0x18de1a,_0x50c421=_0x1c2aa3[_0x51549b(0x1ae)][_0x51549b(0x1cd)]+_0x1c2aa3[_0x51549b(0x1ae)][_0x51549b(0x276)]+_0x1300a9+_0x18de1a,_0x552dcf=_0x1c2aa3[_0x51549b(0x1ae)][_0x51549b(0x136)]-_0x1300a9-_0x18de1a,_0x388d23=_0x1c2aa3[_0x51549b(0x1ae)][_0x51549b(0x136)]+_0x1c2aa3[_0x51549b(0x1ae)][_0x51549b(0x12b)]+_0x1300a9+_0x18de1a,_0x35b2bf=[],_0x24938a=_0x1c2aa3['side']==='top'||_0x1c2aa3[_0x51549b(0x24a)]===_0x51549b(0x255),_0x485a99=_0x24938a?_0x3066af:_0x1c2aa3[_0x51549b(0x24a)]===_0x51549b(0x1cd)?_0x276f3a:_0x145124,_0x3a830b=_0x24938a?_0x1c2aa3[_0x51549b(0x24a)]===_0x51549b(0x136)?_0x52b31a:_0x4d8722:_0x26ac19;if(_0x1c2aa3[_0x51549b(0x2c5)]&&_0x1c2aa3[_0x51549b(0x26c)]>0x0)return _0x35b2bf[_0x51549b(0x204)]({'kind':'toggle-collapse','x':_0x485a99,'y':_0x3a830b,'radius':_0xa5dafd,'badgeCount':_0x1c2aa3['collapsedDescendantCount']}),_0x35b2bf;if(_0x1c2aa3['isRoot']?(_0x1c2aa3[_0x51549b(0x269)]??(_0x24938a?[_0x51549b(0x136),'bottom']:['left',_0x51549b(0x2f9)]))[_0x51549b(0x185)](_0x46a147=>{const _0x3a8086=_0x51549b;_0x46a147==='top'?_0x35b2bf[_0x3a8086(0x204)]({'kind':_0x3a8086(0x19b),'x':_0x3066af,'y':_0x552dcf,'radius':_0x1300a9}):_0x46a147===_0x3a8086(0x255)?_0x35b2bf[_0x3a8086(0x204)]({'kind':_0x3a8086(0x216),'x':_0x3066af,'y':_0x388d23,'radius':_0x1300a9}):_0x46a147===_0x3a8086(0x1cd)?_0x35b2bf[_0x3a8086(0x204)]({'kind':_0x3a8086(0x355),'x':_0xf4f65c,'y':_0x26ac19,'radius':_0x1300a9}):_0x35b2bf['push']({'kind':_0x3a8086(0x223),'x':_0x50c421,'y':_0x26ac19,'radius':_0x1300a9});}):(_0x35b2bf[_0x51549b(0x204)]({'kind':_0x1c2aa3[_0x51549b(0x24a)]===_0x51549b(0x1cd)?_0x51549b(0x355):_0x1c2aa3[_0x51549b(0x24a)]===_0x51549b(0x136)?_0x51549b(0x19b):_0x1c2aa3[_0x51549b(0x24a)]==='bottom'?'add-child-bottom':_0x51549b(0x223),'x':_0x24938a?_0x3066af:_0x1c2aa3[_0x51549b(0x24a)]===_0x51549b(0x1cd)?_0xf4f65c:_0x50c421,'y':_0x24938a?_0x1c2aa3[_0x51549b(0x24a)]==='top'?_0x552dcf:_0x388d23:_0x26ac19,'radius':_0x1300a9}),_0x24938a?(_0x35b2bf[_0x51549b(0x204)]({'kind':_0x51549b(0x16a),'placement':_0x51549b(0x25b),'x':_0x1c2aa3[_0x51549b(0x1ae)][_0x51549b(0x1cd)]-_0x5e5ccb,'y':_0x26ac19,'radius':_0x777090,'visualRadius':_0x58c6d3}),_0x35b2bf[_0x51549b(0x204)]({'kind':'add-sibling-after','placement':_0x51549b(0x24f),'x':_0x1c2aa3[_0x51549b(0x1ae)][_0x51549b(0x1cd)]+_0x1c2aa3[_0x51549b(0x1ae)][_0x51549b(0x276)]+_0x5e5ccb,'y':_0x26ac19,'radius':_0x777090,'visualRadius':_0x58c6d3})):(_0x35b2bf[_0x51549b(0x204)]({'kind':_0x51549b(0x16a),'placement':_0x51549b(0x25b),'x':_0x3066af,'y':_0x1c2aa3[_0x51549b(0x1ae)]['top']-_0x5e5ccb,'radius':_0x777090,'visualRadius':_0x58c6d3}),_0x35b2bf[_0x51549b(0x204)]({'kind':_0x51549b(0x1a1),'placement':_0x51549b(0x24f),'x':_0x3066af,'y':_0x1c2aa3[_0x51549b(0x1ae)][_0x51549b(0x136)]+_0x1c2aa3[_0x51549b(0x1ae)][_0x51549b(0x12b)]+_0x5e5ccb,'radius':_0x777090,'visualRadius':_0x58c6d3}))),_0x1c2aa3[_0x51549b(0x2c5)]){let _0x363756={'kind':'toggle-collapse','x':_0x485a99,'y':_0x3a830b,'radius':_0xa5dafd};_0x35b2bf['push'](_0x363756);let _0x777126=_0x35b2bf[_0x51549b(0x2cb)](_0x5de408=>_0x5de408[_0x51549b(0x190)]===(_0x1c2aa3[_0x51549b(0x24a)]===_0x51549b(0x1cd)?_0x51549b(0x355):_0x1c2aa3[_0x51549b(0x24a)]===_0x51549b(0x136)?_0x51549b(0x19b):_0x1c2aa3['side']===_0x51549b(0x255)?_0x51549b(0x216):_0x51549b(0x223)));_0x777126&&Math[_0x51549b(0x172)](_0x777126['x']-_0x363756['x'],_0x777126['y']-_0x363756['y'])<_0x4a8b37&&(_0x1c2aa3['side']===_0x51549b(0x136)||_0x1c2aa3[_0x51549b(0x24a)]===_0x51549b(0x255)?_0x777126['y']=_0x363756['y']+(_0x1c2aa3[_0x51549b(0x24a)]==='top'?-_0x4a8b37:_0x4a8b37):_0x777126['x']=_0x363756['x']+(_0x1c2aa3[_0x51549b(0x24a)]===_0x51549b(0x1cd)?-_0x4a8b37:_0x4a8b37));}return _0x35b2bf;}function _0x4e59(_0x510e7d,_0x46755a){_0x510e7d=_0x510e7d-0x11d;const _0x2e2b9c=_0x2e2b();let _0x4e594a=_0x2e2b9c[_0x510e7d];return _0x4e594a;}const dr=_0x3f9745(0x279),fr=_0x527bdc[_0x3f9745(0x330)];function pr(_0x4eaa21,_0x3d7875){const _0x401163=_0x3f9745;return!!_0x4eaa21&&_0x4eaa21['kind']===_0x3d7875[_0x401163(0x190)]&&_0x4eaa21['x']===_0x3d7875['x']&&_0x4eaa21['y']===_0x3d7875['y'];}var mr=class extends _0x1e60f7{constructor(_0x22f545=dr,_0x4b9098){const _0x1a114a=_0x3f9745;super(_0x22f545),G(this,_0x1a114a(0x196),{'controls':[]}),this[_0x1a114a(0x3dc)]=!0x0,this[_0x1a114a(0x25c)]=_0x211718[_0x1a114a(0x287)],this['updateState'](_0x4b9098);}[_0x3f9745(0x210)](_0x5a90b4){const _0x5a34c0=_0x3f9745;this[_0x5a34c0(0x196)]={...this[_0x5a34c0(0x196)],..._0x5a90b4},this[_0x5a34c0(0x196)][_0x5a34c0(0x2b7)][_0x5a34c0(0x3cb)]>0x0?this[_0x5a34c0(0x20f)]():this[_0x5a34c0(0x189)](),this[_0x5a34c0(0x257)](!0x0);}[_0x3f9745(0x35f)](_0x1a4eec){const _0x143ffe=_0x3f9745;!_0x1a4eec&&!this[_0x143ffe(0x196)]['hoveredControl']||_0x1a4eec&&pr(this[_0x143ffe(0x196)][_0x143ffe(0x32a)],_0x1a4eec)||(this[_0x143ffe(0x196)]={...this[_0x143ffe(0x196)],'hoveredControl':_0x1a4eec},this[_0x143ffe(0x257)](!0x0));}[_0x3f9745(0x248)](_0x333c12){const _0x1a4dfd=_0x3f9745;for(let _0x8c7302=this[_0x1a4dfd(0x196)][_0x1a4dfd(0x2b7)][_0x1a4dfd(0x3cb)]-0x1;_0x8c7302>=0x0;--_0x8c7302){let _0x122f30=this[_0x1a4dfd(0x196)][_0x1a4dfd(0x2b7)][_0x8c7302];if(Math['hypot'](_0x333c12['x']-_0x122f30['x'],_0x333c12['y']-_0x122f30['y'])<=_0x122f30['radius'])return _0x122f30;}return null;}[_0x3f9745(0x2db)](_0x550907){const _0x20257d=_0x3f9745;return!!this[_0x20257d(0x248)]({'x':_0x550907['x'],'y':_0x550907['y']});}[_0x3f9745(0x3ec)](_0x28f8a3,_0x163b40){const _0x2b36bc=_0x3f9745;return!this[_0x2b36bc(0x3ce)]||this[_0x2b36bc(0x196)][_0x2b36bc(0x2b7)][_0x2b36bc(0x3cb)]===0x0?(this['makeDirty'](!0x1),this):(_0x28f8a3[_0x2b36bc(0x3c6)](),this[_0x2b36bc(0x196)][_0x2b36bc(0x2b7)][_0x2b36bc(0x185)](_0x305530=>{const _0x1fe1da=_0x2b36bc;let _0x1b5f89=pr(this[_0x1fe1da(0x196)][_0x1fe1da(0x32a)],_0x305530),_0x4a5a95=_0x305530[_0x1fe1da(0x377)]!==void 0x0,_0x9881fe=_0x305530[_0x1fe1da(0x190)]===_0x1fe1da(0x355)||_0x305530[_0x1fe1da(0x190)]===_0x1fe1da(0x223)||_0x305530[_0x1fe1da(0x190)]===_0x1fe1da(0x19b)||_0x305530['kind']===_0x1fe1da(0x216),_0x60fa86=_0x305530[_0x1fe1da(0x190)]===_0x1fe1da(0x16a)||_0x305530[_0x1fe1da(0x190)]===_0x1fe1da(0x1a1),_0x50b3a0=_0x60fa86&&!_0x1b5f89?_0x305530[_0x1fe1da(0x283)]??_0x305530[_0x1fe1da(0x2a9)]:_0x305530[_0x1fe1da(0x2a9)];if(_0x28f8a3[_0x1fe1da(0x3be)](),_0x28f8a3[_0x1fe1da(0x23c)]=_0x305530[_0x1fe1da(0x190)]==='toggle-collapse'?Q[_0x1fe1da(0x1cc)]:Q[_0x1fe1da(0x147)],_0x28f8a3[_0x1fe1da(0x176)]=Q[_0x1fe1da(0x147)],_0x28f8a3['lineWidth']=Q[_0x1fe1da(0x3a0)],_0x28f8a3['arc'](_0x305530['x'],_0x305530['y'],_0x50b3a0,0x0,Math['PI']*0x2),_0x28f8a3['fill'](),(!_0x60fa86||_0x1b5f89)&&_0x28f8a3[_0x1fe1da(0x1da)](),!_0x4a5a95&&(!_0x60fa86||_0x1b5f89)){if(_0x28f8a3[_0x1fe1da(0x3be)](),_0x28f8a3[_0x1fe1da(0x176)]=_0x305530[_0x1fe1da(0x190)]===_0x1fe1da(0x3a9)?Q['primaryColor']:Q[_0x1fe1da(0x1cc)],_0x28f8a3[_0x1fe1da(0x2a2)]=_0x60fa86?Q[_0x1fe1da(0x348)]:_0x1b5f89?Q[_0x1fe1da(0x214)]:Q[_0x1fe1da(0x348)],_0x28f8a3[_0x1fe1da(0x27f)]='round',_0x305530[_0x1fe1da(0x190)]===_0x1fe1da(0x3a9)){let _0x1dd941=Q[_0x1fe1da(0x266)];_0x28f8a3[_0x1fe1da(0x17a)](_0x305530['x']+_0x1dd941/0x2,_0x305530['y']-_0x1dd941),_0x28f8a3['lineTo'](_0x305530['x']-_0x1dd941/0x2,_0x305530['y']),_0x28f8a3[_0x1fe1da(0x1b8)](_0x305530['x']+_0x1dd941/0x2,_0x305530['y']+_0x1dd941);}else{let _0xa617ab=_0x60fa86?Q[_0x1fe1da(0x32c)]:_0x9881fe?Q[_0x1fe1da(0x310)]:Q[_0x1fe1da(0x266)];_0x28f8a3[_0x1fe1da(0x17a)](_0x305530['x']-_0xa617ab,_0x305530['y']),_0x28f8a3[_0x1fe1da(0x1b8)](_0x305530['x']+_0xa617ab,_0x305530['y']),_0x28f8a3[_0x1fe1da(0x17a)](_0x305530['x'],_0x305530['y']-_0xa617ab),_0x28f8a3[_0x1fe1da(0x1b8)](_0x305530['x'],_0x305530['y']+_0xa617ab);}_0x28f8a3['stroke']();}_0x4a5a95&&(_0x28f8a3[_0x1fe1da(0x23c)]=Q[_0x1fe1da(0x147)],_0x28f8a3[_0x1fe1da(0x218)]=Q['badgeFontWeight']+'\x20'+Q[_0x1fe1da(0x2e4)]+_0x1fe1da(0x1b9)+Q[_0x1fe1da(0x36d)],_0x28f8a3[_0x1fe1da(0x168)]=_0x1fe1da(0x18b),_0x28f8a3[_0x1fe1da(0x36b)]=_0x1fe1da(0x161),_0x28f8a3[_0x1fe1da(0x13a)](String(_0x305530[_0x1fe1da(0x377)]),_0x305530['x'],_0x305530['y']));}),_0x28f8a3[_0x2b36bc(0x1ed)](),this[_0x2b36bc(0x257)](!0x1),this);}};function hr(_0x3c5d08){const _0x441e02=_0x3f9745;return _0x3c5d08===_0x441e02(0x2fc)||_0x3c5d08===_0x441e02(0x37e)||_0x3c5d08==='tree-alternate';}function gr(_0x1e00e8){const _0x339482=_0x3f9745;return _0x1e00e8===_0x339482(0x166)||_0x1e00e8===_0x339482(0x300);}function _r(_0xcfb7f,_0x19bc48){const _0x45eeb8=_0x3f9745;let _0x22b886=Number[_0x45eeb8(0x271)](_0x19bc48[_0x45eeb8(0x2c7)])&&_0x19bc48[_0x45eeb8(0x2c7)]>0x0?_0x19bc48['zoomRatio']:0x1;return{'x':Math['round']((_0xcfb7f[_0x45eeb8(0x250)]-_0x19bc48[_0x45eeb8(0x2b1)]['x'])/_0x22b886),'y':Math['round']((_0xcfb7f[_0x45eeb8(0x372)]-_0x19bc48[_0x45eeb8(0x2b1)]['y'])/_0x22b886)};}let vr=class extends _0xa1f691{constructor(_0x124937,_0x4488cf,_0x32b1f6,_0x3a8dd5,_0x1fc7f7,_0x428368,_0xdfb0bc,_0x58e905){const _0x1f310a=_0x3f9745;super(),this['_renderContext']=_0x124937,this[_0x1f310a(0x2e7)]=_0x4488cf,this[_0x1f310a(0x1de)]=_0x32b1f6,this[_0x1f310a(0x132)]=_0x3a8dd5,this[_0x1f310a(0x3b0)]=_0x1fc7f7,this[_0x1f310a(0x334)]=_0x428368,this[_0x1f310a(0x246)]=_0xdfb0bc,this[_0x1f310a(0x16b)]=_0x58e905,G(this,_0x1f310a(0x2f6),null),G(this,_0x1f310a(0x2ee),null),G(this,_0x1f310a(0x3df),null),G(this,_0x1f310a(0x2cd),null),this['_init']();}[_0x3f9745(0x284)](){const _0xfffd9c=_0x3f9745;var _0x5f677d,_0x4fe4b6,_0x3045be;let {scene:_0x53b886}=this[_0xfffd9c(0x184)],_0xabb7a=(_0x5f677d=_0x53b886[_0xfffd9c(0x1f7)])==null?void 0x0:_0x5f677d[_0xfffd9c(0x1aa)](_0x53b886);_0xabb7a&&(this[_0xfffd9c(0x241)](_0x1203fe(_0xabb7a['changing$'][_0xfffd9c(0x24c)](_0xba2edd(this['dispose$']))[_0xfffd9c(0x155)](({objects:_0x8148f8})=>{const _0x15aaa1=_0xfffd9c;this[_0x15aaa1(0x264)](_0x8148f8,{'hideRootControls':!0x0});}))),this[_0xfffd9c(0x241)](_0x1203fe(_0xabb7a['changeEnd$'][_0xfffd9c(0x24c)](_0xba2edd(this[_0xfffd9c(0x22d)]))[_0xfffd9c(0x155)](_0x23e8e3=>{const _0x32112a=_0xfffd9c;let _0x53e15d=_0x23e8e3==null?void 0x0:_0x23e8e3[_0x32112a(0x140)];this['_syncControls'](_0x53e15d),setTimeout(()=>this['_syncControls'](_0x53e15d),0x0);})))),this['disposeWithMe'](_0x1203fe(this[_0xfffd9c(0x1de)][_0xfffd9c(0x25a)]['pipe'](_0xba2edd(this['dispose$']))[_0xfffd9c(0x155)](()=>this['_syncControls']()))),this[_0xfffd9c(0x241)](_0x1203fe(this[_0xfffd9c(0x132)]['state$']['pipe'](_0xba2edd(this[_0xfffd9c(0x22d)]))[_0xfffd9c(0x155)](()=>this[_0xfffd9c(0x264)]()))),this[_0xfffd9c(0x241)](_0x1203fe(this[_0xfffd9c(0x16b)]['refresh$'][_0xfffd9c(0x24c)](_0xba2edd(this['dispose$']))[_0xfffd9c(0x155)](_0x5d06f9=>{const _0x6d8e8e=_0xfffd9c;let _0x4f59f4=this[_0x6d8e8e(0x1de)][_0x6d8e8e(0x195)]()['context'];!_0x4f59f4||_0x4f59f4[_0x6d8e8e(0x293)]!==_0x5d06f9[_0x6d8e8e(0x293)]||_0x4f59f4[_0x6d8e8e(0x15e)]!==_0x5d06f9[_0x6d8e8e(0x15e)]||this[_0x6d8e8e(0x2cd)]&&this[_0x6d8e8e(0x2cd)]!==_0x5d06f9['scopeId']||this[_0x6d8e8e(0x264)]();}))),this[_0xfffd9c(0x241)](_0x1203fe(_0x53b886['onPointerMove$'][_0xfffd9c(0x199)](_0x5bcb05=>this[_0xfffd9c(0x2a0)](_0x5bcb05)))),this[_0xfffd9c(0x241)](_0x1203fe(_0x53b886[_0xfffd9c(0x26d)]['subscribeEvent']({'priority':0x4,'next':([_0x27873b,_0x193be3])=>{const _0x714fab=_0xfffd9c;this[_0x714fab(0x21a)](_0x27873b)&&this[_0x714fab(0x272)](_0x27873b,_0x193be3);}}))),this[_0xfffd9c(0x241)](_0x1203fe(((_0x4fe4b6=_0x53b886[_0xfffd9c(0x3f0)])==null?void 0x0:_0x4fe4b6['subscribeEvent']({'priority':0x4,'next':([_0x2a2295,_0x3d842b])=>{const _0x2d2d94=_0xfffd9c;this[_0x2d2d94(0x32b)](_0x2a2295)&&this[_0x2d2d94(0x272)](_0x2a2295,_0x3d842b);}}))??{'dispose':()=>{}})),this[_0xfffd9c(0x241)](_0x1203fe(((_0x3045be=_0x53b886[_0xfffd9c(0x3b5)])==null?void 0x0:_0x3045be[_0xfffd9c(0x199)]({'priority':0x4,'next':([_0x23d568,_0x3085b4])=>{const _0x387ceb=_0xfffd9c;this[_0x387ceb(0x32b)](_0x23d568)&&this['_consumeControlEvent'](_0x23d568,_0x3085b4);}}))??{'dispose':()=>{}})),this[_0xfffd9c(0x241)](_0x1203fe(()=>this[_0xfffd9c(0x174)]())),this[_0xfffd9c(0x264)]();}['_ensureObject'](){const _0x2e0c4d=_0x3f9745;return this[_0x2e0c4d(0x2f6)]?this[_0x2e0c4d(0x2f6)]:(this[_0x2e0c4d(0x2f6)]=new mr(dr),this['_attachObjectEvents'](this[_0x2e0c4d(0x2f6)]),this['_renderContext']['scene'][_0x2e0c4d(0x3ca)](this[_0x2e0c4d(0x2f6)],fr),this[_0x2e0c4d(0x2f6)]);}[_0x3f9745(0x2ed)](_0x2ec472){const _0x14acd1=_0x3f9745;var _0x4834a7;(_0x4834a7=this['_objectEventDisposables'])==null||_0x4834a7[_0x14acd1(0x19d)]();let _0x54be5b=new _0x418d95();_0x54be5b[_0x14acd1(0x301)](_0x2ec472[_0x14acd1(0x26d)][_0x14acd1(0x199)]({'priority':0x4,'next':([_0x337550,_0x3addcc])=>{const _0x27fe65=_0x14acd1;this[_0x27fe65(0x21a)](_0x337550)&&this[_0x27fe65(0x272)](_0x337550,_0x3addcc);}})),_0x54be5b[_0x14acd1(0x301)](_0x2ec472[_0x14acd1(0x3f0)][_0x14acd1(0x199)]({'priority':0x4,'next':([_0x17b8b2,_0x13b649])=>{const _0x380a8c=_0x14acd1;this[_0x380a8c(0x32b)](_0x17b8b2)&&this[_0x380a8c(0x272)](_0x17b8b2,_0x13b649);}})),_0x54be5b[_0x14acd1(0x301)](_0x2ec472['onDblclick$'][_0x14acd1(0x199)]({'priority':0x4,'next':([_0x48fc32,_0x37eb94])=>{const _0x136a45=_0x14acd1;this[_0x136a45(0x32b)](_0x48fc32)&&this[_0x136a45(0x272)](_0x48fc32,_0x37eb94);}})),this[_0x14acd1(0x2ee)]=_0x54be5b;}[_0x3f9745(0x174)](){const _0x349161=_0x3f9745;var _0x153034;this[_0x349161(0x2f6)]&&(this[_0x349161(0x184)][_0x349161(0x139)][_0x349161(0x20a)]([this[_0x349161(0x2f6)]]),(_0x153034=this[_0x349161(0x2ee)])==null||_0x153034[_0x349161(0x19d)](),this[_0x349161(0x2ee)]=null,this[_0x349161(0x2f6)]=null,this[_0x349161(0x3df)]=null,this[_0x349161(0x2cd)]=null,this[_0x349161(0x184)][_0x349161(0x139)][_0x349161(0x257)](!0x0));}[_0x3f9745(0x264)](_0x4710c8,_0x1a703e){const _0x20749b=_0x3f9745;var _0x5596ec,_0x337a11;let _0xc39d47=this[_0x20749b(0x1de)][_0x20749b(0x195)](),_0x4f8973=_0xc39d47[_0x20749b(0x152)],_0x46e4f5=_0xc39d47[_0x20749b(0x240)]??_0xc39d47[_0x20749b(0x3af)][0x0];if(!_0x4f8973||!_0x46e4f5||_0xc39d47[_0x20749b(0x3af)][_0x20749b(0x3cb)]!==0x1){this[_0x20749b(0x174)]();return;}let _0x34b4c3=this[_0x20749b(0x2e7)][_0x20749b(0x192)](_0x4f8973[_0x20749b(0x293)],_0x4f8973[_0x20749b(0x15e)]),_0x410f1a=_0x34b4c3[_0x46e4f5],_0x91e857=_0x446d08(_0x410f1a==null?void 0x0:_0x410f1a['element']);if(!_0x410f1a||!_0x91e857){this[_0x20749b(0x174)]();return;}let _0x52b12d=_0x16f58d(_0x4f8973['unitId'],_0x46e4f5);if(_0x1a703e!=null&&_0x1a703e[_0x20749b(0x1d7)]&&_0x91e857['parentNodeId']==null&&_0x4710c8!=null&&_0x4710c8['has'](_0x52b12d)){this[_0x20749b(0x174)]();return;}let _0x4a3dc6=this[_0x20749b(0x180)](_0x34b4c3,_0x4f8973[_0x20749b(0x293)],_0x46e4f5,_0x4710c8);if(!_0x4a3dc6){this[_0x20749b(0x174)]();return;}let _0x5c376b=Object['values'](_0x34b4c3)['filter'](_0x18298c=>{const _0x2d57f7=_0x20749b;var _0x238da4;return((_0x238da4=_0x446d08(_0x18298c[_0x2d57f7(0x1ba)]))==null?void 0x0:_0x238da4['parentNodeId'])===_0x46e4f5;}),_0x2f7201=_0x91e857[_0x20749b(0x326)]?this['_countDescendants'](_0x34b4c3,_0x46e4f5):0x0;this[_0x20749b(0x3df)]=_0x46e4f5,this['_activeScopeId']=_0x91e857['structureScopeId'];let _0x19eb9e=(_0x5596ec=_0x34b4c3[_0x91e857['structureScopeId']])==null?void 0x0:_0x5596ec[_0x20749b(0x1ba)],_0x4ca7d5=_0x211be1(_0x19eb9e),_0x37b239=_0x19eb9e==null||(_0x337a11=_0x19eb9e[_0x20749b(0x2e9)])==null||(_0x337a11=_0x337a11[_0x20749b(0x388)])==null||(_0x337a11=_0x337a11[_0x20749b(0x1bb)])==null?void 0x0:_0x337a11['structureKind'],_0x3832d0=(_0x4ca7d5==null?void 0x0:_0x4ca7d5[_0x20749b(0x1bb)][_0x20749b(0x224)])??_0x37b239,_0x42253a=_0x91e857[_0x20749b(0x167)]==null,_0x52ed6a=this['_resolveControlSide'](_0x91e857['side'],_0x42253a,_0x3832d0);this[_0x20749b(0x2c4)]()['updateState']({'controls':ur({'bounds':_0x4a3dc6,'isRoot':_0x42253a,'side':_0x52ed6a,'rootChildSides':this[_0x20749b(0x32d)](_0x42253a,_0x3832d0),'hasChildren':_0x5c376b[_0x20749b(0x3cb)]>0x0,'collapsedDescendantCount':_0x2f7201})}),this['_renderContext']['scene']['makeDirty'](!0x0);}[_0x3f9745(0x3fb)](_0x50fd10,_0x39846d,_0x2d8eb1){const _0x2fb2d5=_0x3f9745;return _0x2d8eb1===_0x2fb2d5(0x300)?!_0x39846d&&(_0x50fd10===_0x2fb2d5(0x1cd)||_0x50fd10===_0x2fb2d5(0x2f9))?_0x50fd10:_0x2fb2d5(0x255):_0x2d8eb1==='mindmap-vertical'?!_0x39846d&&(_0x50fd10===_0x2fb2d5(0x136)||_0x50fd10===_0x2fb2d5(0x255))?_0x50fd10:'bottom':_0x50fd10==='left'?_0x2fb2d5(0x1cd):_0x2fb2d5(0x2f9);}[_0x3f9745(0x32d)](_0x15614b,_0x23d96f){const _0x289644=_0x3f9745;if(_0x15614b){if(hr(_0x23d96f))return[_0x289644(0x255)];if(_0x23d96f==='timeline-horizontal')return[_0x289644(0x2f9)];if(_0x23d96f===_0x289644(0x300))return[_0x289644(0x255)];}}[_0x3f9745(0x31b)](_0x327ccd){const _0x31af8d=_0x3f9745;var _0x1aa45b,_0x29f6c6;let _0x5b1ecc=this['_elementStateService']['getSnapshot']()['context'];if(!_0x5b1ecc||!this[_0x31af8d(0x3df)])return;let _0x375063=this[_0x31af8d(0x2e7)][_0x31af8d(0x192)](_0x5b1ecc[_0x31af8d(0x293)],_0x5b1ecc[_0x31af8d(0x15e)]),_0x244c17=_0x446d08((_0x1aa45b=_0x375063[this[_0x31af8d(0x3df)]])==null?void 0x0:_0x1aa45b[_0x31af8d(0x1ba)]),_0x51309d=_0x244c17?_0x211be1((_0x29f6c6=_0x375063[_0x244c17[_0x31af8d(0x305)]])==null?void 0x0:_0x29f6c6[_0x31af8d(0x1ba)]):null;if(!((_0x244c17==null?void 0x0:_0x244c17[_0x31af8d(0x167)])==null&&(hr(_0x51309d==null?void 0x0:_0x51309d[_0x31af8d(0x1bb)][_0x31af8d(0x224)])||gr(_0x51309d==null?void 0x0:_0x51309d[_0x31af8d(0x1bb)][_0x31af8d(0x224)]))))return _0x327ccd===_0x31af8d(0x355)?_0x31af8d(0x1cd):_0x327ccd===_0x31af8d(0x19b)?_0x31af8d(0x136):_0x327ccd==='add-child-bottom'?_0x31af8d(0x255):'right';}[_0x3f9745(0x180)](_0x507599,_0x3860dc,_0x2c27fe,_0x36c955){const _0x19a892=_0x3f9745;var _0x36aae8,_0x5714be;let _0x430546=_0x16f58d(_0x3860dc,_0x2c27fe),_0x275878=_0x36c955==null?void 0x0:_0x36c955[_0x19a892(0x3bb)](_0x430546),_0x13d972=this['_toFiniteBounds'](_0x275878);if(_0x13d972)return _0x13d972;let _0x5c06e2=this['_renderContext'][_0x19a892(0x139)],_0x3a7e4c=((_0x36aae8=_0x5c06e2[_0x19a892(0x31e)])==null?void 0x0:_0x36aae8[_0x19a892(0x1aa)](_0x5c06e2,_0x430546))??((_0x5714be=_0x5c06e2[_0x19a892(0x18d)])==null?void 0x0:_0x5714be[_0x19a892(0x1aa)](_0x5c06e2,_0x430546));return this[_0x19a892(0x122)](_0x3a7e4c)||_0x266721(_0x507599,_0x2c27fe);}[_0x3f9745(0x122)](_0x521b23){const _0x5167ac=_0x3f9745;return _0x521b23&&Number[_0x5167ac(0x271)](_0x521b23[_0x5167ac(0x1cd)])&&Number[_0x5167ac(0x271)](_0x521b23[_0x5167ac(0x136)])&&Number[_0x5167ac(0x271)](_0x521b23[_0x5167ac(0x276)])&&Number[_0x5167ac(0x271)](_0x521b23[_0x5167ac(0x12b)])?{'left':_0x521b23['left'],'top':_0x521b23[_0x5167ac(0x136)],'width':_0x521b23[_0x5167ac(0x276)],'height':_0x521b23['height']}:null;}[_0x3f9745(0x332)](_0x1670ce,_0x314755){const _0x1f74a9=_0x3f9745;return Object[_0x1f74a9(0x2c8)](_0x1670ce)[_0x1f74a9(0x183)](_0x1e721a=>{const _0x2b3285=_0x1f74a9;var _0x5579d8;return((_0x5579d8=_0x446d08(_0x1e721a['element']))==null?void 0x0:_0x5579d8[_0x2b3285(0x167)])===_0x314755;})[_0x1f74a9(0x333)]((_0x695b78,_0xabaed)=>_0x695b78+0x1+this['_countDescendants'](_0x1670ce,_0xabaed[_0x1f74a9(0x341)]),0x0);}[_0x3f9745(0x2a0)](_0x168d67){const _0x34b01f=_0x3f9745;if(!this[_0x34b01f(0x2f6)])return;let _0x17dd67=this[_0x34b01f(0x132)][_0x34b01f(0x2f3)](),_0x4b6dea=_r(_0x168d67,{'panOffset':_0x17dd67[_0x34b01f(0x390)],'zoomRatio':_0x17dd67[_0x34b01f(0x2c7)]});this[_0x34b01f(0x2f6)][_0x34b01f(0x35f)](this['_object'][_0x34b01f(0x248)](_0x4b6dea));}[_0x3f9745(0x21a)](_0x33dda5){const _0x3aa1c3=_0x3f9745;if(!this[_0x3aa1c3(0x2f6)]||!this[_0x3aa1c3(0x3df)]||(_0x33dda5[_0x3aa1c3(0x3fc)]??0x0)!==0x0)return!0x1;let _0x34b835=this['_elementStateService'][_0x3aa1c3(0x195)]()[_0x3aa1c3(0x152)];if(!_0x34b835)return!0x1;let _0x543540=this[_0x3aa1c3(0x132)][_0x3aa1c3(0x2f3)](),_0x2349b8=_r(_0x33dda5,{'panOffset':_0x543540[_0x3aa1c3(0x390)],'zoomRatio':_0x543540[_0x3aa1c3(0x2c7)]}),_0x272bec=this['_object'][_0x3aa1c3(0x248)](_0x2349b8);if(!_0x272bec)return!0x1;if(_0x272bec[_0x3aa1c3(0x190)]===_0x3aa1c3(0x3a9))return this['_executeAndLayout'](_0x1866d6['id'],{'unitId':_0x34b835[_0x3aa1c3(0x293)],'subUnitId':_0x34b835['subUnitId'],'nodeId':this['_activeNodeId']}),!0x0;if(_0x272bec[_0x3aa1c3(0x190)]===_0x3aa1c3(0x355)||_0x272bec[_0x3aa1c3(0x190)]===_0x3aa1c3(0x223)||_0x272bec[_0x3aa1c3(0x190)]===_0x3aa1c3(0x19b)||_0x272bec[_0x3aa1c3(0x190)]===_0x3aa1c3(0x216)){let _0x3bffde=_0x57f8a7(0x6);return this[_0x3aa1c3(0x347)](_0x1e1375['id'],{'unitId':_0x34b835[_0x3aa1c3(0x293)],'subUnitId':_0x34b835[_0x3aa1c3(0x15e)],'parentNodeId':this[_0x3aa1c3(0x3df)],'side':this[_0x3aa1c3(0x31b)](_0x272bec[_0x3aa1c3(0x190)]),'nodeId':_0x3bffde,'connectorId':_0x57f8a7(0x6),'text':this[_0x3aa1c3(0x246)]['t'](_0x3aa1c3(0x3b4))},_0x3bffde),!0x0;}if(_0x272bec[_0x3aa1c3(0x190)]===_0x3aa1c3(0x16a)||_0x272bec[_0x3aa1c3(0x190)]==='add-sibling-after'){let _0x211a53=_0x57f8a7(0x6);return this[_0x3aa1c3(0x347)](_0x2fd84d['id'],{'unitId':_0x34b835['unitId'],'subUnitId':_0x34b835[_0x3aa1c3(0x15e)],'nodeId':this[_0x3aa1c3(0x3df)],'placement':_0x272bec[_0x3aa1c3(0x1ad)]??(_0x272bec[_0x3aa1c3(0x190)]==='add-sibling-before'?_0x3aa1c3(0x25b):_0x3aa1c3(0x24f)),'siblingNodeId':_0x211a53,'connectorId':_0x57f8a7(0x6),'text':this[_0x3aa1c3(0x246)]['t'](_0x3aa1c3(0x3b4))},_0x211a53),!0x0;}return!0x0;}[_0x3f9745(0x32b)](_0x152d3c){const _0x382931=_0x3f9745;if(!this['_object']||(_0x152d3c['button']??0x0)!==0x0)return!0x1;let _0x26a09d=this['_stateService'][_0x382931(0x2f3)](),_0x8ddc5a=_r(_0x152d3c,{'panOffset':_0x26a09d[_0x382931(0x390)],'zoomRatio':_0x26a09d[_0x382931(0x2c7)]});return!!this['_object'][_0x382931(0x248)](_0x8ddc5a);}['_consumeControlEvent'](_0xe59571,_0x23728e){const _0x19c447=_0x3f9745;var _0xede1c9,_0xf50b1d;_0x23728e['stopPropagation'](),(_0xede1c9=_0xe59571[_0x19c447(0x128)])==null||_0xede1c9[_0x19c447(0x1aa)](_0xe59571),(_0xf50b1d=_0xe59571[_0x19c447(0x22f)])==null||_0xf50b1d[_0x19c447(0x1aa)](_0xe59571);}[_0x3f9745(0x3f8)](_0x4c78d5,_0x4a4fc1){const _0x4f4e8b=_0x3f9745;let _0x5ae714=this[_0x4f4e8b(0x2cd)],_0x52a054=this[_0x4f4e8b(0x3b0)][_0x4f4e8b(0x36f)](_0x4c78d5,_0x4a4fc1);Promise[_0x4f4e8b(0x376)](_0x52a054)[_0x4f4e8b(0x16d)](_0x22abbf=>{const _0xa6d42f=_0x4f4e8b;!_0x22abbf||!_0x5ae714||(this[_0xa6d42f(0x264)](),Promise[_0xa6d42f(0x376)](this[_0xa6d42f(0x3b0)][_0xa6d42f(0x36f)](_0x14174c['id'],{'unitId':_0x4a4fc1[_0xa6d42f(0x293)],'subUnitId':_0x4a4fc1[_0xa6d42f(0x15e)],'scopeId':_0x5ae714}))[_0xa6d42f(0x16d)](()=>this[_0xa6d42f(0x264)]()));});}['_executeCreateAndEdit'](_0x233660,_0x46bcd4,_0x1f6417){const _0x29fab3=_0x3f9745;let _0x1bae95={'unitId':_0x46bcd4[_0x29fab3(0x293)],'subUnitId':_0x46bcd4[_0x29fab3(0x15e)]},_0x325785=this[_0x29fab3(0x3b0)]['executeCommand'](_0x233660,_0x46bcd4);Promise['resolve'](_0x325785)[_0x29fab3(0x16d)](_0x5a68a7=>{const _0xbf9091=_0x29fab3;_0x5a68a7&&(this['_syncControls'](),this[_0xbf9091(0x1de)][_0xbf9091(0x339)](_0x1bae95,[_0x1f6417],_0x1f6417),this['_boardTextEditingService']['ignoreExternalFocusChanges'](),this[_0xbf9091(0x334)][_0xbf9091(0x133)]({..._0x1bae95,'shapeId':_0x1f6417,'shapeKey':_0x16f58d(_0x1bae95[_0xbf9091(0x293)],_0x1f6417),'visible':!0x0}));});}};vr=q([K(0x1,_0x23a0df(_0x221653)),K(0x2,_0x23a0df(_0x213d24)),K(0x3,_0x23a0df(_0x25c205)),K(0x4,_0xe6cdb9),K(0x5,_0x23a0df(_0x347ed5)),K(0x6,_0x23a0df(_0x231606)),K(0x7,_0x23a0df(or))],vr);const yr=_0x3f9745(0x156);let br=class extends _0xa1f691{constructor(_0x16d8f5,_0x41f77b){const _0xc6bc91=_0x3f9745;super(),this[_0xc6bc91(0x3b0)]=_0x16d8f5,this[_0xc6bc91(0x12c)]=_0x41f77b,this[_0xc6bc91(0x284)]();}[_0x3f9745(0x284)](){const _0x57a1a8=_0x3f9745;this[_0x57a1a8(0x241)](this[_0x57a1a8(0x12c)]['registerShortcut'](this[_0x57a1a8(0x3a3)]()));}[_0x3f9745(0x3a3)](){const _0x3ed4b5=_0x3f9745;return{'id':_0x31e404,'binding':_0x5acd83[_0x3ed4b5(0x175)]|_0x47904c['SHIFT'],'priority':0x3e8,'preconditions':_0x4ba511=>_0x4ba511[_0x3ed4b5(0x303)]('FOCUSING_MIND_MAP_TEXT_EDITOR')&&this[_0x3ed4b5(0x3b0)]['hasCommand'](_0x31e404)};}};br=q([K(0x0,_0xe6cdb9),K(0x1,_0x469a0d)],br);const xr=[pn,mn,yr];let Sr=class extends _0xa1f691{constructor(_0x3005c0,_0x3346bc,_0x425f37,_0x2cd775,_0x5391ce){const _0x249fb9=_0x3f9745;super(),this['_boardElementService']=_0x3346bc,this[_0x249fb9(0x1de)]=_0x425f37,this['_textEditingService']=_0x2cd775,this[_0x249fb9(0x243)]=_0x5391ce,this[_0x249fb9(0x241)](_0x1203fe(this[_0x249fb9(0x1de)]['state$'][_0x249fb9(0x24c)](_0xba2edd(this['dispose$']))['subscribe'](()=>{const _0x14302f=_0x249fb9;this[_0x14302f(0x2e5)]();}))),this['disposeWithMe'](_0x1203fe(this[_0x249fb9(0x3f9)][_0x249fb9(0x2ac)]['pipe'](_0xba2edd(this[_0x249fb9(0x22d)]))['subscribe'](()=>{const _0x9aec9=_0x249fb9;this[_0x9aec9(0x2e5)]();}))),this['_syncContext']();}[_0x3f9745(0x2e5)](){const _0x28eb88=_0x3f9745;var _0x5a969c,_0x809c1d;let _0x3273d9=this[_0x28eb88(0x1de)][_0x28eb88(0x195)](),_0xd62042=this[_0x28eb88(0x3f9)][_0x28eb88(0x1f4)](),_0x2fda59=_0xd62042!=null&&_0xd62042['visible']?_0xd62042[_0x28eb88(0x126)]:_0x3273d9[_0x28eb88(0x206)],_0xa9d3f8=_0x3273d9[_0x28eb88(0x240)]??_0x3273d9[_0x28eb88(0x3af)][0x0],_0x3ae12b=!!_0x3273d9[_0x28eb88(0x152)]&&!!_0xa9d3f8&&_0x3273d9[_0x28eb88(0x3af)][_0x28eb88(0x3cb)]===0x1&&!_0x2fda59&&!_0x3273d9['isTransforming'],_0x6e08f4=_0x3273d9[_0x28eb88(0x152)]?this[_0x28eb88(0x2e7)][_0x28eb88(0x192)](_0x3273d9[_0x28eb88(0x152)][_0x28eb88(0x293)],_0x3273d9[_0x28eb88(0x152)][_0x28eb88(0x15e)]):{};this[_0x28eb88(0x243)]['setContextValue'](pn,_0x3ae12b&&!!_0x446d08((_0x5a969c=_0x6e08f4[_0xa9d3f8])==null?void 0x0:_0x5a969c[_0x28eb88(0x1ba)])),this[_0x28eb88(0x243)][_0x28eb88(0x320)](mn,!!_0x3273d9[_0x28eb88(0x152)]&&_0x3273d9[_0x28eb88(0x3af)]['length']===0x0&&!_0x3273d9['focusedId']&&!_0x2fda59&&!_0x3273d9[_0x28eb88(0x2e6)]),this[_0x28eb88(0x243)][_0x28eb88(0x320)](yr,!!_0x2fda59&&!!_0x446d08((_0x809c1d=_0x6e08f4[_0x2fda59])==null?void 0x0:_0x809c1d[_0x28eb88(0x1ba)]));}[_0x3f9745(0x19d)](){const _0x190b84=_0x3f9745;this[_0x190b84(0x33a)](),super['dispose']();}['_resetContext'](){const _0x5574a5=_0x3f9745;xr[_0x5574a5(0x185)](_0x2e0e9c=>this[_0x5574a5(0x243)][_0x5574a5(0x320)](_0x2e0e9c,!0x1));}};Sr=q([K(0x1,_0x23a0df(_0x221653)),K(0x2,_0x23a0df(_0x213d24)),K(0x3,_0x23a0df(_0x347ed5)),K(0x4,_0x56e1d4)],Sr);const Cr=[_0x3f9745(0x219),'layout',_0x3f9745(0x1db)];_0x3122e8[_0x3f9745(0x3b1)],_0x3122e8['siblingGap'],_0x3122e8['branchGap'];const wr=[{'labelKey':_0x3f9745(0x164),'key':_0x3f9745(0x3b1),..._0x125a67['horizontalGap']},{'labelKey':_0x3f9745(0x1ca),'key':'siblingGap',..._0x125a67[_0x3f9745(0x37d)]},{'labelKey':'boards-mind-ui.panel.spacing.branchGap','key':_0x3f9745(0x226),..._0x125a67[_0x3f9745(0x226)]}],Tr=[{'labelKey':'boards-mind-ui.panel.layout.right','value':_0x3f9745(0x2f9)},{'labelKey':'boards-mind-ui.panel.layout.left','value':_0x3f9745(0x1cd)},{'labelKey':_0x3f9745(0x205),'value':_0x3f9745(0x1e2)}],Er=[{'labelKey':'boards-mind-ui.panel.structureKind.mindmapHorizontal','value':'mindmap-horizontal'},{'labelKey':_0x3f9745(0x178),'value':_0x3f9745(0x30b)},{'labelKey':_0x3f9745(0x34f),'value':_0x3f9745(0x37e)},{'labelKey':_0x3f9745(0x3d3),'value':'tree-left'},{'labelKey':_0x3f9745(0x2b6),'value':'tree-alternate'},{'labelKey':_0x3f9745(0x150),'value':'timeline-horizontal'},{'labelKey':_0x3f9745(0x146),'value':_0x3f9745(0x300)}],Dr=[{'labelKey':_0x3f9745(0x12d),'value':_0x3f9745(0x297)},{'labelKey':'boards-mind-ui.panel.branchLineType.roundedOrthogonal','value':_0x3f9745(0x2a1)},{'labelKey':_0x3f9745(0x260),'value':_0x3f9745(0x3e9)}];function Or(_0x3ac47c){const _0x3f3167=_0x3f9745;let _0x13f12e=(_0x3ac47c==null?void 0x0:_0x3ac47c[_0x3f3167(0x224)])??_0x3122e8[_0x3f3167(0x224)];return{'spacing':{'horizontalGap':(_0x3ac47c==null?void 0x0:_0x3ac47c[_0x3f3167(0x3b1)])??_0x3122e8[_0x3f3167(0x3b1)],'siblingGap':(_0x3ac47c==null?void 0x0:_0x3ac47c[_0x3f3167(0x37d)])??_0x3122e8[_0x3f3167(0x37d)],'branchGap':(_0x3ac47c==null?void 0x0:_0x3ac47c['branchGap'])??_0x3122e8['branchGap']},'direction':(_0x3ac47c==null?void 0x0:_0x3ac47c[_0x3f3167(0x3fe)])??_0x3122e8[_0x3f3167(0x3fe)],'structureKind':_0x13f12e,'branchLineType':_0x6ebcdf(_0x13f12e,_0x3ac47c==null?void 0x0:_0x3ac47c[_0x3f3167(0x281)])};}async function kr(_0x1eafc9,_0x12d45d){const _0x4ea34b=_0x3f9745;return await Promise[_0x4ea34b(0x376)](_0x1eafc9[_0x4ea34b(0x36f)](_0x692b62['id'],_0x12d45d))?(await Promise[_0x4ea34b(0x376)](_0x1eafc9[_0x4ea34b(0x36f)](_0x14174c['id'],{'unitId':_0x12d45d[_0x4ea34b(0x293)],'subUnitId':_0x12d45d['subUnitId'],'scopeId':_0x12d45d[_0x4ea34b(0x327)]})),!0x0):!0x1;}async function Ar(_0x42925d,_0x2712a2){const _0x51abcb=_0x3f9745;return await Promise[_0x51abcb(0x376)](_0x42925d[_0x51abcb(0x36f)](_0xbc0b93['id'],_0x2712a2))?(await Promise[_0x51abcb(0x376)](_0x42925d[_0x51abcb(0x36f)](_0x14174c['id'],{'unitId':_0x2712a2[_0x51abcb(0x293)],'subUnitId':_0x2712a2[_0x51abcb(0x15e)],'scopeId':_0x2712a2['scopeId']})),!0x0):!0x1;}async function jr(_0x3a7beb,_0x2246d5){const _0x5dbfd8=_0x3f9745;return await Promise['resolve'](_0x3a7beb['executeCommand'](_0x692b62['id'],{'unitId':_0x2246d5['unitId'],'subUnitId':_0x2246d5[_0x5dbfd8(0x15e)],'scopeId':_0x2246d5['scopeId'],..._0x2246d5[_0x5dbfd8(0x3b1)]===void 0x0?{}:{'horizontalGap':_0x2246d5['horizontalGap']},..._0x2246d5[_0x5dbfd8(0x37d)]===void 0x0?{}:{'siblingGap':_0x2246d5[_0x5dbfd8(0x37d)]},..._0x2246d5[_0x5dbfd8(0x226)]===void 0x0?{}:{'branchGap':_0x2246d5[_0x5dbfd8(0x226)]}}))?(await Promise[_0x5dbfd8(0x376)](_0x3a7beb[_0x5dbfd8(0x36f)](_0x14174c['id'],{'unitId':_0x2246d5[_0x5dbfd8(0x293)],'subUnitId':_0x2246d5[_0x5dbfd8(0x15e)],'scopeId':_0x2246d5[_0x5dbfd8(0x327)]})),!0x0):!0x1;}async function Mr(_0x4ba068,_0x3fd4e6){const _0x29e474=_0x3f9745;return _0x3fd4e6[_0x29e474(0x321)]===_0x3fd4e6[_0x29e474(0x2fd)]||!await Promise['resolve'](_0x4ba068[_0x29e474(0x36f)](_0x3ae598['id'],{'unitId':_0x3fd4e6[_0x29e474(0x293)],'subUnitId':_0x3fd4e6['subUnitId'],'nodeId':_0x3fd4e6[_0x29e474(0x321)],'targetNodeId':_0x3fd4e6[_0x29e474(0x2fd)],'referenceNodeId':_0x3fd4e6[_0x29e474(0x2fd)],'placement':_0x3fd4e6[_0x29e474(0x1ad)]}))?!0x1:(await Promise['resolve'](_0x4ba068[_0x29e474(0x36f)](_0x14174c['id'],{'unitId':_0x3fd4e6[_0x29e474(0x293)],'subUnitId':_0x3fd4e6['subUnitId'],'scopeId':_0x3fd4e6['scopeId']})),!0x0);}async function Nr(_0x970c87,_0x488617){const _0xd41808=_0x3f9745;let _0x2bdb68=_0x488617['text'][_0xd41808(0x200)]();return!_0x2bdb68||!await Promise[_0xd41808(0x376)](_0x970c87[_0xd41808(0x36f)](_0x36c50b['id'],{'unitId':_0x488617[_0xd41808(0x293)],'subUnitId':_0x488617['subUnitId'],'nodeId':_0x488617[_0xd41808(0x321)],'text':_0x2bdb68}))?!0x1:(await Promise[_0xd41808(0x376)](_0x970c87[_0xd41808(0x36f)](_0x14174c['id'],{'unitId':_0x488617['unitId'],'subUnitId':_0x488617[_0xd41808(0x15e)],'scopeId':_0x488617['scopeId']})),!0x0);}async function Pr(_0x1f360d){const _0x5d029b=_0x3f9745;var _0x5967b3;let _0x393acc=(_0x5967b3=globalThis[_0x5d029b(0x29b)])==null?void 0x0:_0x5967b3[_0x5d029b(0x36c)];return _0x393acc!=null&&_0x393acc[_0x5d029b(0x3e3)]?(await _0x393acc[_0x5d029b(0x3e3)](_0x1f360d),!0x0):!0x1;}async function Fr(_0x508a52,_0x5a98c2,_0x20e9f9=Pr){const _0x4b128c=_0x3f9745;let _0x51c46e=await Promise[_0x4b128c(0x376)](_0x508a52[_0x4b128c(0x36f)](_0x267fc4['id'],_0x5a98c2));if(typeof _0x51c46e!='string'||!_0x51c46e)return!0x1;try{return await _0x20e9f9(_0x51c46e)!==!0x1;}catch{return!0x1;}}async function Ir(_0xa9bfe0,_0xdc529f){const _0xfd5766=_0x3f9745;if(!_0xdc529f[_0xfd5766(0x1c2)][_0xfd5766(0x200)]())return!0x1;let _0x196217=await Promise['resolve'](_0xa9bfe0[_0xfd5766(0x36f)](_0x94ae9e['id'],_0xdc529f));return typeof _0x196217==_0xfd5766(0x375)&&!!_0x196217&&_0x196217[_0xfd5766(0x1ff)]===!0x0;}function Lr(_0x492429,_0x47aa63){const _0x34e7be=_0x3f9745;let _0x2656af=_0x47aa63[_0x34e7be(0x200)]()[_0x34e7be(0x3a6)]();return _0x2656af?_0x492429['filter'](_0x1c149c=>_0x1c149c[_0x34e7be(0x129)]['toLowerCase']()[_0x34e7be(0x20c)](_0x2656af)):_0x492429;}function Rr(_0x40dad7){const _0xedeb54=_0x3f9745;return{'paddingInlineStart':0x8+(Number[_0xedeb54(0x271)](_0x40dad7)&&_0x40dad7>0x0?_0x40dad7:0x0)*0x10};}function zr(_0x2f537c){const _0x5a0ff1=_0x3f9745;return _0x1df344(_0x5a0ff1(0x143),{'className':_0x53b1eb('univer-border-b\x20univer-border-gray-200\x20univer-p-4',_0x414a47),'data-board-mind-map-panel-section':_0x5a0ff1(0x373),'children':[_0x20d080('h3',{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-gray-100','children':_0x2f537c[_0x5a0ff1(0x1bf)]}),_0x2f537c[_0x5a0ff1(0x3e4)]]});}function Br(_0x21e980){const _0x7f9e14=_0x3f9745;let _0x13c6fb=_0x637cd2(_0xe6cdb9),_0xe46f1e=_0x637cd2(_0x213d24),_0x4efe63=_0x637cd2(_0x231606),_0x1a01a5=_0x21e980[_0x7f9e14(0x20e)]??[],[_0x1a525b,_0x309b45]=_0x31c5ea(''),[_0x458de1,_0x59de0a]=_0x31c5ea(null),[_0x48df65,_0xbe55b7]=_0x31c5ea(''),_0xdaff4c=Or(_0x21e980[_0x7f9e14(0x1bb)]),[_0x1293d7,_0x2e503f]=_0x31c5ea(_0xdaff4c['spacing']),[_0xbfc18a,_0x1ed31d]=_0x31c5ea(_0xdaff4c['direction']),[_0x2513a0,_0x16f747]=_0x31c5ea(_0xdaff4c[_0x7f9e14(0x224)]),[_0x322d05,_0xbc1fac]=_0x31c5ea(_0xdaff4c[_0x7f9e14(0x281)]),[_0x42a5e4,_0x5de191]=_0x31c5ea({'layout':_0x21e980[_0x7f9e14(0x1bb)],'scopeId':_0x21e980['scopeId']}),[_0x248e01,_0x1de812]=_0x31c5ea(null),[_0x35b1da,_0xfd5f9f]=_0x31c5ea(_0x7f9e14(0x219)),_0x3425f1=Lr(_0x1a01a5,_0x1a525b),_0x2e58dc={'unitId':_0x21e980[_0x7f9e14(0x293)],'subUnitId':_0x21e980[_0x7f9e14(0x15e)],'scopeId':_0x21e980[_0x7f9e14(0x327)]},_0x1974fe=Cr[_0x7f9e14(0x3ea)](_0x4c9b9c=>({'label':_0x4efe63['t'](_0x7f9e14(0x251)+_0x4c9b9c),'value':_0x4c9b9c})),_0x839e91=Dr[_0x7f9e14(0x183)](_0x3c6cfd=>_0x3c6cfd[_0x7f9e14(0x26e)]!==_0x7f9e14(0x297)||_0x1463d3(_0x2513a0)),_0x568b41=_0x4e9f70=>{_0x1ed31d(_0x4e9f70),kr(_0x13c6fb,{..._0x2e58dc,'direction':_0x4e9f70});};if(_0x42a5e4[_0x7f9e14(0x1bb)]!==_0x21e980['layout']||_0x42a5e4[_0x7f9e14(0x327)]!==_0x21e980[_0x7f9e14(0x327)]){let _0x392305=Or(_0x21e980[_0x7f9e14(0x1bb)]);_0x5de191({'layout':_0x21e980['layout'],'scopeId':_0x21e980[_0x7f9e14(0x327)]}),_0x2e503f(_0x392305['spacing']),_0x1ed31d(_0x392305['direction']),_0x16f747(_0x392305[_0x7f9e14(0x224)]),_0xbc1fac(_0x392305[_0x7f9e14(0x281)]);}let _0xeb1b9e=_0x61a736=>{let _0x25ef8b=_0x6ebcdf(_0x61a736,_0x322d05);_0x16f747(_0x61a736),_0xbc1fac(_0x25ef8b),kr(_0x13c6fb,{..._0x2e58dc,'structureKind':_0x61a736,..._0x25ef8b===_0x322d05?null:{'branchLineType':_0x25ef8b}});},_0x1ffa36=_0x1d6573=>{let _0x55a500=_0x6ebcdf(_0x2513a0,_0x1d6573);_0xbc1fac(_0x55a500),Ar(_0x13c6fb,{..._0x2e58dc,'branchLineType':_0x55a500});},_0x19d418=(_0x1e652c,_0x2dbe53)=>{let _0x550567={..._0x1293d7,[_0x1e652c]:_0x2dbe53};_0x2e503f(_0x550567),jr(_0x13c6fb,{..._0x2e58dc,..._0x550567});},_0x1af577=()=>{const _0x5a4413=_0x7f9e14;Ir(_0x13c6fb,{'unitId':_0x21e980[_0x5a4413(0x293)],'subUnitId':_0x21e980[_0x5a4413(0x15e)],'left':0x78,'top':0x78,'opml':_0x48df65})['then'](_0x543e7d=>{_0x543e7d&&_0xbe55b7('');});},_0x43e8b8=()=>{Fr(_0x13c6fb,_0x2e58dc);},_0x2302ce=(_0x217b33,_0x2418af)=>{_0x59de0a({'nodeId':_0x217b33,'text':_0x2418af});},_0x54a9c6=()=>{const _0x3ed9f7=_0x7f9e14;_0x458de1&&Nr(_0x13c6fb,{..._0x2e58dc,'nodeId':_0x458de1[_0x3ed9f7(0x321)],'text':_0x458de1[_0x3ed9f7(0x129)]})[_0x3ed9f7(0x16d)](_0x3692f4=>{_0x3692f4&&_0x59de0a(null);});},_0x207af9=(_0x454bba,_0x2ca491)=>{const _0x16de1d=_0x7f9e14;if(_0x454bba['preventDefault'](),!_0x248e01||_0x248e01===_0x2ca491)return;let _0x1a968b=_0x454bba[_0x16de1d(0x22c)][_0x16de1d(0x1ea)](),_0x585f13=_0x454bba[_0x16de1d(0x340)]<_0x1a968b[_0x16de1d(0x136)]+_0x1a968b[_0x16de1d(0x12b)]/0x2?_0x16de1d(0x25b):_0x16de1d(0x24f);_0x1de812(null),Mr(_0x13c6fb,{..._0x2e58dc,'nodeId':_0x248e01,'targetNodeId':_0x2ca491,'placement':_0x585f13});};return _0x1df344(_0x7f9e14(0x3f4),{'className':_0x7f9e14(0x35b),'data-board-mind-map-panel':_0x7f9e14(0x373),'children':[_0x20d080('div',{'className':_0x53b1eb('univer-border-b\x20univer-border-gray-200\x20univer-p-3',_0x414a47),'data-board-mind-map-panel-tabs':_0x7f9e14(0x373),'children':_0x20d080(_0x32fdcd,{'className':_0x7f9e14(0x350),'items':_0x1974fe,'value':_0x35b1da,'onChange':_0x446c36=>_0xfd5f9f(_0x446c36)})}),_0x35b1da===_0x7f9e14(0x219)&&_0x20d080(zr,{'title':_0x4efe63['t'](_0x7f9e14(0x365)),'children':_0x1df344(_0x7f9e14(0x3f4),{'children':[_0x20d080(_0xa22a14,{'slot':_0x20d080(_0x383621,{}),'value':_0x1a525b,'placeholder':_0x4efe63['t'](_0x7f9e14(0x1c6)),'className':_0x7f9e14(0x1d4),'onChange':_0x309b45}),_0x3425f1['length']?_0x20d080('ol',{'className':_0x7f9e14(0x382),'children':_0x3425f1[_0x7f9e14(0x3ea)](_0x198872=>_0x20d080('li',{'draggable':!0x0,'className':'univer-flex\x20univer-items-center\x20univer-gap-1\x20univer-truncate\x20univer-rounded\x20univer-py-1\x20univer-text-left\x20univer-text-gray-800','style':Rr(_0x198872[_0x7f9e14(0x2d8)]),'onDragStart':_0x3f0d9b=>{const _0x376c07=_0x7f9e14;var _0x35af85;_0x1de812(_0x198872[_0x376c07(0x321)]),(_0x35af85=_0x3f0d9b['dataTransfer'])==null||_0x35af85['setData'](_0x376c07(0x277),_0x198872['nodeId']),_0x3f0d9b[_0x376c07(0x256)]&&(_0x3f0d9b['dataTransfer']['effectAllowed']='move');},'onDragOver':_0x512828=>{const _0x486ece=_0x7f9e14;_0x512828[_0x486ece(0x128)](),_0x512828['dataTransfer']&&(_0x512828['dataTransfer'][_0x486ece(0x153)]=_0x486ece(0x254));},'onDrop':_0x49e945=>_0x207af9(_0x49e945,_0x198872[_0x7f9e14(0x321)]),'onDragEnd':()=>_0x1de812(null),'children':(_0x458de1==null?void 0x0:_0x458de1[_0x7f9e14(0x321)])===_0x198872['nodeId']?_0x1df344(_0x7f9e14(0x3f4),{'className':_0x7f9e14(0x36a),'children':[_0x20d080(_0xa22a14,{'autoFocus':!0x0,'size':_0x7f9e14(0x203),'value':_0x458de1['text'],'onChange':_0x4e894d=>_0x59de0a({'nodeId':_0x198872[_0x7f9e14(0x321)],'text':_0x4e894d}),'onKeyDown':_0x4d5677=>{const _0x345b5c=_0x7f9e14;_0x4d5677[_0x345b5c(0x3c5)]===_0x345b5c(0x27b)&&_0x54a9c6(),_0x4d5677[_0x345b5c(0x3c5)]===_0x345b5c(0x2f7)&&_0x59de0a(null);}}),_0x20d080(_0x4d32f6,{'size':'small','variant':_0x7f9e14(0x16c),'disabled':!_0x458de1['text'][_0x7f9e14(0x200)](),'onClick':_0x54a9c6,'children':_0x4efe63['t']('boards-mind-ui.panel.rename')}),_0x20d080(_0x4d32f6,{'size':_0x7f9e14(0x203),'variant':'default','onClick':()=>_0x59de0a(null),'children':_0x4efe63['t'](_0x7f9e14(0x3d6))})]}):_0x1df344(_0x5f274b,{'children':[_0x20d080(_0x4d32f6,{'size':_0x7f9e14(0x203),'variant':_0x7f9e14(0x3b3),'className':'univer-min-w-0\x20univer-flex-1\x20univer-justify-start\x20univer-truncate\x20univer-text-left','onClick':()=>_0xe46f1e[_0x7f9e14(0x339)]({'unitId':_0x21e980[_0x7f9e14(0x293)],'subUnitId':_0x21e980[_0x7f9e14(0x15e)]},[_0x198872['nodeId']],_0x198872[_0x7f9e14(0x321)]),'children':_0x198872['text']}),_0x20d080(_0x4d32f6,{'className':_0x7f9e14(0x335),'size':'small','variant':_0x7f9e14(0x20d),'onClick':()=>_0x2302ce(_0x198872[_0x7f9e14(0x321)],_0x198872['text']),'children':_0x4efe63['t'](_0x7f9e14(0x17d))})]})},_0x198872[_0x7f9e14(0x321)]))}):_0x20d080(_0x7f9e14(0x3f4),{'className':_0x7f9e14(0x342),'data-board-mind-map-panel-empty-state':_0x7f9e14(0x373),'children':_0x4efe63['t']('boards-mind-ui.panel.emptyNodes')})]})}),_0x35b1da==='layout'&&_0x20d080(zr,{'title':_0x4efe63['t'](_0x7f9e14(0x387)),'children':_0x1df344(_0x7f9e14(0x3f4),{'className':_0x7f9e14(0x378),'children':[_0x20d080(_0x7f9e14(0x3f4),{'className':'univer-flex\x20univer-gap-2','children':_0x20d080(_0x32fdcd,{'className':'univer-w-full\x20univer-text-xs','items':Er[_0x7f9e14(0x3ea)](_0x462d83=>({'label':_0x4efe63['t'](_0x462d83['labelKey']),'value':_0x462d83['value']})),'value':_0x2513a0,'onChange':_0x5df0bb=>_0xeb1b9e(_0x5df0bb)})}),_0x20d080(_0x7f9e14(0x3f4),{'className':_0x7f9e14(0x2bf),'children':_0x20d080(_0x32fdcd,{'className':_0x7f9e14(0x350),'items':Tr[_0x7f9e14(0x3ea)](_0x699b47=>({'label':_0x4efe63['t'](_0x699b47[_0x7f9e14(0x12e)]),'value':_0x699b47[_0x7f9e14(0x26e)]})),'value':_0xbfc18a,'onChange':_0xc3cf08=>_0x568b41(_0xc3cf08)})}),_0x20d080(_0x7f9e14(0x3f4),{'className':'univer-flex\x20univer-gap-2','children':_0x20d080(_0x32fdcd,{'className':_0x7f9e14(0x350),'items':_0x839e91[_0x7f9e14(0x3ea)](_0x3f9b34=>({'label':_0x4efe63['t'](_0x3f9b34[_0x7f9e14(0x12e)]),'value':_0x3f9b34['value']})),'value':_0x322d05,'onChange':_0x3b5a8b=>_0x1ffa36(_0x3b5a8b)})}),_0x20d080(_0x7f9e14(0x3f4),{'className':_0x7f9e14(0x38a),'children':wr['map'](({labelKey:_0x3c0aa0,key:_0x48a4ba,min:_0x530a6b,max:_0xeac311})=>_0x1df344(_0x7f9e14(0x23e),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-xs\x20univer-text-gray-600','children':[_0x20d080(_0x7f9e14(0x181),{'className':_0x7f9e14(0x2d4),'children':_0x4efe63['t']('boards-mind-ui.panel.'+_0x3c0aa0)}),_0x20d080(_0x372151,{'min':_0x530a6b,'max':_0xeac311,'step':0x4,'value':_0x1293d7[_0x48a4ba],'precision':0x0,'className':_0x7f9e14(0x169),'onChange':_0x14d34c=>_0x19d418(_0x48a4ba,Number(_0x14d34c??_0x530a6b))})]},_0x48a4ba))})]})}),_0x35b1da==='importExport'&&_0x20d080(zr,{'title':_0x4efe63['t'](_0x7f9e14(0x374)),'children':_0x1df344(_0x7f9e14(0x3f4),{'className':_0x7f9e14(0x2c1),'children':[_0x20d080(_0x55509e,{'className':'univer-h-28\x20univer-resize-none\x20univer-text-xs','placeholder':_0x4efe63['t'](_0x7f9e14(0x162)),'value':_0x48df65,'onValueChange':_0xbe55b7}),_0x1df344(_0x7f9e14(0x3f4),{'className':_0x7f9e14(0x2bf),'children':[_0x20d080(_0x4d32f6,{'size':_0x7f9e14(0x203),'variant':'primary','disabled':!_0x48df65['trim'](),'onClick':_0x1af577,'children':_0x4efe63['t'](_0x7f9e14(0x290))}),_0x20d080(_0x4d32f6,{'size':'small','variant':_0x7f9e14(0x20d),'onClick':_0x43e8b8,'children':_0x4efe63['t'](_0x7f9e14(0x225))})]})]})})]});}let Vr=class extends _0x248e7a{constructor(_0x2dc726){const _0xf2dc58=_0x3f9745;super(),this['_componentManager']=_0x2dc726,this[_0xf2dc58(0x187)]();}[_0x3f9745(0x187)](){const _0x138857=_0x3f9745;this[_0x138857(0x241)](this[_0x138857(0x2bd)][_0x138857(0x3a1)](ln,dn)),this[_0x138857(0x241)](this[_0x138857(0x2bd)][_0x138857(0x3a1)](Dn,Un)),this[_0x138857(0x241)](this[_0x138857(0x2bd)]['register'](_0x138857(0x2ab),Br));}};Vr=q([K(0x0,_0x23a0df(_0x3cc304))],Vr);let Hr=class{constructor(_0xf8b11,_0x79e946){const _0x3be827=_0x3f9745;this[_0x3be827(0x132)]=_0xf8b11,this['_insertStateService']=_0x79e946;}[_0x3f9745(0x1a2)](_0x11df39){const _0x217db9=_0x3f9745;return this[_0x217db9(0x1b6)]['setTemplate']({'rootText':_0x11df39[_0x217db9(0x353)],'structureKind':_0x11df39[_0x217db9(0x224)],'branchLineType':_0x11df39[_0x217db9(0x281)],'children':_0x11df39[_0x217db9(0x3e4)],'blueprint':_0x11df39[_0x217db9(0x148)]}),this[_0x217db9(0x132)][_0x217db9(0x35a)](!0x1),this[_0x217db9(0x132)][_0x217db9(0x1d2)](),this[_0x217db9(0x132)]['setActiveTool'](_0x3cc27d[_0x217db9(0x1cb)]),this[_0x217db9(0x132)][_0x217db9(0x1d6)]({'type':_0x3cc27d[_0x217db9(0x1cb)]}),!0x0;}};Hr=q([K(0x0,_0x25c205),K(0x1,_0x23a0df(tr))],Hr);const Ur=[cn],Wr=[Sr];let $=class extends _0x515eb4{constructor(_0x5e5dcc=Ft,_0x319ea6,_0x46d8f1,_0x29618f){const _0x3587fe=_0x3f9745;super(),this[_0x3587fe(0x324)]=_0x5e5dcc,this[_0x3587fe(0x27e)]=_0x319ea6,this['_configService']=_0x46d8f1,this['_renderManagerService']=_0x29618f;let {..._0x54e91f}=_0x2c7fc6({},Ft,this['_config']);this[_0x3587fe(0x1fb)][_0x3587fe(0x3ee)](_0x3587fe(0x235),_0x54e91f);}['onStarting'](){const _0x13f985=_0x3f9745;this[_0x13f985(0x27e)]['add']([tr]),this[_0x13f985(0x27e)][_0x13f985(0x301)]([or]),this[_0x13f985(0x27e)]['add']([Hr]),this[_0x13f985(0x27e)][_0x13f985(0x301)]([vn]),this[_0x13f985(0x27e)][_0x13f985(0x301)]([br]),this['_injector']['add']([Vr]);let _0x284b3c=this['_injector'][_0x13f985(0x3bb)](Hr),_0x253f87=this[_0x13f985(0x27e)]['get'](_0x5b3775);this['disposeWithMe'](_0x253f87[_0x13f985(0x33d)](_0x284b3c)),this[_0x13f985(0x241)](this[_0x13f985(0x27e)][_0x13f985(0x3bb)](vn)),this[_0x13f985(0x241)](this[_0x13f985(0x27e)][_0x13f985(0x3bb)](br)),this['disposeWithMe'](this['_injector'][_0x13f985(0x3bb)](Vr)),this['_enableMindMapToolbarTool']();}[_0x3f9745(0x35c)](){const _0x28ccf5=_0x3f9745;this[_0x28ccf5(0x241)](this[_0x28ccf5(0x37c)][_0x28ccf5(0x28d)](_0x1a4a16[_0x28ccf5(0x1df)],Ur)),this[_0x28ccf5(0x241)](this[_0x28ccf5(0x37c)][_0x28ccf5(0x28d)](_0x1a4a16[_0x28ccf5(0x1df)],Wr)),this[_0x28ccf5(0x241)](this[_0x28ccf5(0x37c)][_0x28ccf5(0x28d)](_0x1a4a16['UNIVER_BOARD'],ar)),this[_0x28ccf5(0x241)](this[_0x28ccf5(0x37c)][_0x28ccf5(0x28d)](_0x1a4a16[_0x28ccf5(0x1df)],vr)),this[_0x28ccf5(0x241)](this['_renderManagerService']['registerRenderModule'](_0x1a4a16['UNIVER_BOARD'],Gn)),this[_0x28ccf5(0x241)](this[_0x28ccf5(0x37c)]['registerRenderModule'](_0x1a4a16[_0x28ccf5(0x1df)],sn)),this[_0x28ccf5(0x241)](this['_renderManagerService'][_0x28ccf5(0x28d)](_0x1a4a16[_0x28ccf5(0x1df)],zt)),this[_0x28ccf5(0x241)](this[_0x28ccf5(0x37c)][_0x28ccf5(0x28d)](_0x1a4a16[_0x28ccf5(0x1df)],lr));}[_0x3f9745(0x3bd)](){const _0x57c4f2=_0x3f9745;var _0x1e6a90,_0x353608;let _0x1bc10f=this[_0x57c4f2(0x29c)]();this[_0x57c4f2(0x1fb)][_0x57c4f2(0x3ee)](_0xffe17f,{..._0x1bc10f,'toolbar':{..._0x1bc10f[_0x57c4f2(0x3d4)],'tools':{...(_0x1e6a90=_0x1bc10f[_0x57c4f2(0x3d4)])==null?void 0x0:_0x1e6a90[_0x57c4f2(0x291)],[_0x3cc27d[_0x57c4f2(0x1cb)]]:Gr((_0x353608=_0x1bc10f[_0x57c4f2(0x3d4)])==null||(_0x353608=_0x353608['tools'])==null?void 0x0:_0x353608[_0x3cc27d[_0x57c4f2(0x1cb)]])}}});}['_getBoardsUIConfig'](){const _0x863367=_0x3f9745;return this[_0x863367(0x1fb)][_0x863367(0x263)](_0xffe17f)??{};}};G($,_0x3f9745(0x239),_0x3f9745(0x3b6)),G($,_0x3f9745(0x2a5),Nt),G($,_0x3f9745(0x27a),Pt),G($,'type',_0x1a4a16[_0x3f9745(0x1df)]),$=q([_0x507080(_0x306390,_0x3f4e04,_0x2a4c91,_0x1ba8b2,_0x56b8f0),K(0x1,_0x23a0df(_0x31d5d4)),K(0x2,_0x2abf0f),K(0x3,_0x54cb1b)],$);function Gr(_0x227c75){const _0x5cf192=_0x3f9745;return _0x227c75===!0x1?!0x1:typeof _0x227c75!=_0x5cf192(0x375)||{..._0x227c75,'enabled':_0x227c75[_0x5cf192(0x261)]??!0x0};}export{$ as UniverBoardsMindUIPlugin};
|