@univerjs-pro/boards-mind-ui 1.0.0-alpha.8 → 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/views/BoardMindMapFloatingToolbar.d.ts +0 -91
- 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/es/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 _0x5cd39e=_0x49d4;(function(_0x5e08e1,_0x5e75f8){const _0x49c088=_0x49d4,_0x5d83a1=_0x5e08e1();while(!![]){try{const _0x11161d=-parseInt(_0x49c088(0x28a))/0x1+-parseInt(_0x49c088(0x23c))/0x2*(parseInt(_0x49c088(0x3af))/0x3)+parseInt(_0x49c088(0x499))/0x4+-parseInt(_0x49c088(0x4a2))/0x5*(parseInt(_0x49c088(0x2b2))/0x6)+parseInt(_0x49c088(0x382))/0x7*(parseInt(_0x49c088(0x257))/0x8)+parseInt(_0x49c088(0x3aa))/0x9*(parseInt(_0x49c088(0x352))/0xa)+parseInt(_0x49c088(0x2a9))/0xb*(-parseInt(_0x49c088(0x30d))/0xc);if(_0x11161d===_0x5e75f8)break;else _0x5d83a1['push'](_0x5d83a1['shift']());}catch(_0x52e8e1){_0x5d83a1['push'](_0x5d83a1['shift']());}}}(_0x3246,0x36ce9));import{BoardElementType as _0x475625,BoardToolType as _0x49b814,IBoardElementService as _0x1973ec,IBoardMindMapAdapterService as _0x584e7d,UniverBoardsPlugin as _0x45718a,documentTextStyleToBoardShapeTextStyle as _0x371f6d,offsetBoardConnectorGeometry as _0x2c3b4a,resolveBoardElementWorldBounds as _0x3b0740}from'@univerjs-pro/boards';import{AddMindMapChildOperation as _0x5a7781,AddMindMapSiblingOperation as _0x31669e,ChangeMindMapBranchLineTypeOperation as _0xf4f5f9,ChangeMindMapLayoutOperation as _0x34ea91,CopyMindMapNodeOperation as _0x87da50,DeleteMindMapNodeOperation as _0x162f22,DetachMindMapNodeOperation as _0x40c6c6,ExportMindMapOpmlOperation as _0x11019d,IMindMapClipboardService as _0x52fb41,ImportMindMapOpmlOperation as _0x25dbd2,InsertBoardMindMapOperation as _0x5c6398,LayoutMindMapOperation as _0x189a28,MIND_MAP_DEFAULT_LAYOUT as _0x52b473,MIND_MAP_DEFAULT_NODE_SIZE as _0x2df34d,MIND_MAP_DEFAULT_NODE_TEXT as _0x5c59e5,MIND_MAP_LAYOUT_SPACING_LIMITS as _0x2ccb6b,PasteMindMapAsNewMindMapOperation as _0x2589e7,PasteMindMapNodeOperation as _0xcb5308,PromoteMindMapNodeOperation as _0x4eb711,ReparentMindMapNodeOperation as _0x2bd3f3,ToggleMindMapNodeCollapseOperation as _0x5332c0,TranslateMindMapOperation as _0x5b950f,UniverBoardsMindPlugin as _0x2d3c5f,UpdateMindMapIncomingConnectorOperation as _0x4df192,UpdateMindMapNodeOperation as _0x240a0f,compareMindMapOrderKey as _0xe5f8fa,getMindMapConnectorMeta as _0x4d74a8,getMindMapContainerMeta as _0x6b0265,getMindMapDefaultChildOrderKey as _0x37a369,getMindMapNodeMeta as _0x554e66,isMindMapPlainStructureKind as _0x695402,resolveMindMapBranchLineTypeForStructure as _0x23e255,resolveMindMapLayoutPreview as _0x5bed8c,resolveMindMapNodeHostSize as _0x4f1e84}from'@univerjs-pro/boards-mind';import{BOARDS_UI_PLUGIN_CONFIG_KEY as _0x1b5f05,BOARD_RENDER_LAYER_INDEX as _0x28f70c,BOARD_RENDER_OBJECT_Z_INDEX as _0x5d1061,BOARD_SHORTCUT_BINDINGS as _0x532fb2,BoardCanvasPopManagerService as _0x141476,BoardInteractionSurfaceService as _0x7423a,BoardShapeIntrinsicSizeService as _0x32986d,BoardTextEditingService as _0x58f4d9,IBoardElementStateService as _0x44050b,IBoardUIStateService as _0x297a03,UniverBoardsUIPlugin as _0xef3d3e,getBoardElementRenderObjectKey as _0x55cbfb,parseBoardElementRenderObjectKey as _0x1781d4,resolveBoardFloatingToolbarSelection as _0x58b522,syncBoardElementRenderObject as _0xea6e63}from'@univerjs-pro/boards-ui';import{UniverLicensePlugin as _0x215979}from'@univerjs-pro/license';import{CommandType as _0x3aee7d,DEFAULT_STYLES as _0x34b337,DependentOn as _0x3746e4,Disposable as _0x1cd6b,DisposableCollection as _0x1a0936,HorizontalAlign as _0x525df4,ICommandService as _0x59364d,IConfigService as _0x377adc,IContextService as _0x54f4db,IUniverInstanceService as _0x3b7906,Inject as _0x20cede,Injector as _0x381005,LocaleService as _0x3bc354,Plugin as _0x3b8ea1,RxDisposable as _0x4a70b2,UniverInstanceType as _0x4aab0d,VerticalAlign as _0x4a5acf,generateRandomId as _0x57c380,merge as _0x1d7130,toDisposable as _0x450a20}from'@univerjs/core';import{BaseObject as _0x3002ad,IRenderManagerService as _0x135db7,UniverRenderEnginePlugin as _0x2a012}from'@univerjs/engine-render';import{Subject as _0x2246ad,takeUntil as _0x4deb35}from'rxjs';import{SHAPE_FLOATING_TOOLBAR_DEFAULT_STROKE_COLOR as _0x489684,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_BACKGROUND_COLOR as _0x301890,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_COLOR as _0x558f17,SHAPE_TEXT_EDITOR_QUOTE_COMMAND_ID as _0x45ff11,ShapeFillButton as _0x45c412,ShapeFloatingToolbarContent as _0x6838b8,ShapeFloatingToolbarDropdownTrigger as _0x518b99,ShapeFloatingToolbarFontSizeSelect as _0x169dfc,ShapeFloatingToolbarIcon as _0xac81e8,ShapeFloatingToolbarMenuItem as _0x5a51fe,ShapeFloatingToolbarMenuPanel as _0x4c45bd,ShapeStrokePanelButton as _0x216cb9,ShapeStrokePanelContent as _0x3e103b,TextFillButton as _0xbb0aef,TypographyPanelButton as _0x485d96,buildShapeTextDataUpdate as _0x4ced1d}from'@univerjs-pro/shape-editor-ui';import{ShapeLineDashEnum as _0x10f66d,ShapeLineTypeEnum as _0x222ad0}from'@univerjs-pro/engine-shape';import{Button as _0x295b03,Dropdown as _0x1e6134,Input as _0x380d36,InputNumber as _0x1db4b4,Segmented as _0x323347,Separator as _0x60934,Textarea as _0x2fdd7f,borderClassName as _0x84ba83,clsx as _0x166644}from'@univerjs/design';import{AlignBottomIcon as _0x12270c,AlignTextBothIcon as _0x58a71f,AlignTopIcon as _0x1e84da,HorizontallyIcon as _0x4f2966,LeftJustifyingIcon as _0x4c788e,MoreHorizontalIcon as _0x127a01,RightJustifyingIcon as _0x4e2906,SearchIcon as _0x4b7a22,ShapeLineIcon as _0x924ca0,VerticalCenterIcon as _0x190275}from'@univerjs/icons';import{ComponentManager as _0x22545b,IDialogService as _0x3d7afb,IShortcutService as _0xf5ea37,KeyCode as _0x5ac689,MetaKeys as _0x3b20d6,useDependency as _0x56ab42}from'@univerjs/ui';import{useState as _0x325ac1}from'react';import{Fragment as _0x31ad0b,jsx as _0x50af7a,jsxs as _0x5d1226}from'react/jsx-runtime';var jt=_0x5cd39e(0x2ed),Mt='1.0.0-beta.0';const Nt={};function Pt(_0x33d001){'@babel/helpers - typeof';const _0x1871c5=_0x5cd39e;return Pt=typeof Symbol==_0x1871c5(0x498)&&typeof Symbol['iterator']==_0x1871c5(0x25e)?function(_0x3b8f02){return typeof _0x3b8f02;}:function(_0x83ad3d){const _0x575b0f=_0x1871c5;return _0x83ad3d&&typeof Symbol==_0x575b0f(0x498)&&_0x83ad3d['constructor']===Symbol&&_0x83ad3d!==Symbol['prototype']?_0x575b0f(0x25e):typeof _0x83ad3d;},Pt(_0x33d001);}function Ft(_0x4e6693,_0x46714c){const _0xde9f74=_0x5cd39e;if(Pt(_0x4e6693)!=_0xde9f74(0x49c)||!_0x4e6693)return _0x4e6693;var _0x99759=_0x4e6693[Symbol[_0xde9f74(0x212)]];if(_0x99759!==void 0x0){var _0x4ee260=_0x99759[_0xde9f74(0x445)](_0x4e6693,_0x46714c||_0xde9f74(0x495));if(Pt(_0x4ee260)!=_0xde9f74(0x49c))return _0x4ee260;throw TypeError(_0xde9f74(0x292));}return(_0x46714c===_0xde9f74(0x2c4)?String:Number)(_0x4e6693);}function It(_0x1818f5){const _0x192761=_0x5cd39e;var _0x258e9d=Ft(_0x1818f5,_0x192761(0x2c4));return Pt(_0x258e9d)==_0x192761(0x25e)?_0x258e9d:_0x258e9d+'';}function G(_0x52569a,_0x311ac5,_0x411075){const _0x3f5389=_0x5cd39e;return(_0x311ac5=It(_0x311ac5))in _0x52569a?Object[_0x3f5389(0x306)](_0x52569a,_0x311ac5,{'value':_0x411075,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52569a[_0x311ac5]=_0x411075,_0x52569a;}function K(_0x5d4643,_0x2ebf75){return function(_0x126811,_0x2a8f70){_0x2ebf75(_0x126811,_0x2a8f70,_0x5d4643);};}function _0x3246(){const _0x172b67=['univer-w-[202px]\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-white\x20univer-px-4\x20univer-py-4\x20univer-shadow-lg','bottom','left','paste','createControl$','getUnitId','_refresh$','mind-map-layout-dropdown','divider-','resolve','dataModel','tree-alternate','bold','branchLineType','_dragStart','textBaseline','Dash','_getSceneObject','_activePointerDragDisposables','isFinite','_objectPointerDisposables','direction','true','_activePreview','_instanceSrv','_createTopologyBoundsByElementId','setShapeSidebarOpen','navigator','boards-mind-ui.panel.emptyNodes','univer-flex\x20univer-min-w-0\x20univer-flex-1\x20univer-items-center\x20univer-gap-1','_syncChildDragPreview','pointermove','_isChildDragPastActivationThreshold','isTransforming','_componentManager','rounded-orthogonal','bounds','asObservable','buttons','elementRemove$','then','boards-mind-ui.panel.spacing.parentGap','width','onPointerDown$','registerCommand','visible','_instanceService','_cancelPointerChildDrag','toggle-collapse','univer-w-20\x20univer-shrink-0','doc','font','univer-w-24','MindMap','pluginName','paste-as-new','getOwnPropertyDescriptor','_applyDragTopologyAction','layout-panel-divider','_insertStateService','call','FOCUSING_MIND_MAP_TEXT_EDITOR','horizontalGap','_getLiveObjectBounds','univer-h-9\x20univer-w-12','_syncPointerChildDragPreview','univer-flex\x20univer-gap-2','parentBounds','arrow-down','clientX','registerProvider','connectorAlpha','px\x20','ghostFontWeight','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','rootRadius','_previewRefreshService','parseInt','_config','removeEventListener','_boardElementService','set','_toFiniteBounds','Escape','_syncElementDataToScene','timelineAxisGap','ARROW_LEFT','vertical','dispose','structureScopeId','lineWidthScreen','_syncMindMapTextEditorContext','registerAdapter','dragObjectAlpha','_resolveChildDragTopologyAction','boards-mind-ui.alignCenter','_intrinsicSizeService','foreignAttributes','boards-mind-ui.toolbar.primary.typography','_scheduleAttachObjectPointerListeners','boards-mind-ui.panel.structureKind.mindmapHorizontal','repeat(','surfaceColor','siblingDotGap','selectedIds','render','isRoot','strokeStyle','Enter','decorate','_collapseAll','unsubscribe','_updateHostSize','clearControl$','registerRenderModule','effectAllowed','add-sibling-before','none','close','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-xs\x20univer-text-gray-600','div','RIGHT','ghostFillColor','lineWidth','ARROW_UP','refresh$','board.mind-map.panel','disposeWithMe','lineCap','UNIVER_BOARDS_MIND_UI_PLUGIN','strokeWidth','context','_hideSelectionForChildDrag','popup','MIDDLE','addEventListener','globalAlpha','_injector','M56\x2039h11M13\x2050h11','tree-diagram','default','_normalizeChildren','_isPopupSelectionStillActive','function','1288408BomRnR','ghost','Mind\x20map','object','_resolveRootTopLeft','delete','findIndex','boards-mind-ui.panel.searchNodes','updateElement','355itoJgc','rootHeight','getElementData','onReady','fill','_seedExistingNodeSizes','_queueLayout','M56\x2011h11M56\x2051h11','find','badgeCount','children','show','oKey','_cloneBlueprintNode','rgba(','spacing','add-sibling-after','_createQuoteShortcut','_restoreActivePreview','subscribe','_previewHostSize','_copySelectedNode','trim','_resolveSelectedMindMapEntryFromState','params','max','_getMindMapChildren','_removeDragPreviewObject','sourceBounds','getState','collapseAllNodes','rootTextColor','skipNextObservers','snapDistance','board.operation.mind-map.keyboard-shortcut','targetNodeId','liveRootBounds','newParentNodeId','univer-text-xs\x20univer-text-gray-400\x20dark:!univer-text-gray-500','mind-map','onCommandExecuted','_activeScopeId','open-description','_mindMapClipboardService','board-mind-map-pending-insert-object','fillText','boards-mind-ui.panel.spacing.branchGap','nodeWidth','_syncDragPreview','SHIFT','getElementById','map','top-center','_removeObject','_handleShortcut','_clearPopupIfSelectionChanged','boards-mind-ui.panel.rename','branchGap','_openDescriptionDialog','ENTER','toPrimitive','success','_resolveSelectedEntry','path','structureKind','visualRadius','_resolveDirtyBounds','getTransformerByCreate','foldChildNodes','onPointerCancel$','setHoveredControl','activeEditingId','_cloneBlueprint','boards-mind-ui.panel.branchLineType.orthogonal','primaryColor','enableObjectsEvent','child','_childDragSelectionHidden','_getZoomRatio','addSibling','getHitControl','_interactionSurfaceService','ignoreExternalFocusChanges','transformByState','fromEntries','add-child-left','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','allowRootReparent','_getPointerLiveBounds','mindmap','getObjectIncludeInGroup','univer-mb-0','typography','stopPropagation','_object','data','_resolvePreviewSourceBounds','middle','title','selectElements','_handleNodeUpdateCommand','shapeText','2jCPtpy','hide','height','M47\x2025h13M47\x2035h13M47\x2045h13','scene','_objectEventDisposables','univer-min-w-[240px]','objects','register','ARROW_DOWN','_findChildNodeAtPoint','tree-right','_addSiblingOrChild','copy','_removePreviewObject','boards-mind-ui.toolbar.action.fill',',\x20minmax(0,\x201fr))','_resolveArrowNavigationTarget','_commandService','toolbar','text','siblingHoverRadius','connectorData','center','Solid','values','transientPreviewForeground','8fLDnPy','items','_resolveCreateChildSide','span','defaultValue','label','structure','symbol','changing$','board.mind-map.floating-toolbar','side','arrow-left','boards-mind-ui.alignBottom','curve','boards-mind-ui.toolbar.panel.line','_getBoardPointFromEvent','style-divider','setContextValue','boards-mind-ui.toolbar.primary.more','_executeNodeOperation','univer-h-7\x20univer-min-w-9\x20univer-w-auto\x20univer-gap-1\x20univer-px-1.5','zIndex','exec','shapeId','_previewObject','getActivePageId','_boardCanvasPopManagerService','textAlign','_layoutFlushScheduled','circle','_attachActivePointerDragListeners','univer-max-w-[min(760px,calc(100vw-32px))]','lineJoin','_pointerDragStart','_executeChildDragAction','UNIVER_BOARD','boards-mind-ui.panel.branchLineType.curve','addSiblingNode','_syncRootScopePreview','solid','textStyle','_boardUIStateService','disableObjectsEvent','_capturePointerChildDragStart','depth','_shortcutService','_nodeSizeByKey','M24\x2012v32M24\x2019c0\x204\x203\x206\x207\x206h7M24\x2029c0\x204\x203\x206\x207\x206h7M24\x2039c0\x204\x203\x206\x207\x206h7','_elementStateService','abs','_applyRootTranslation','266109tnpcAi','DELETE','onPointerMove$','offsetX','addParentNode','boards-mind-ui.panel.spacing.siblingGap','hasChildren','fontSize','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','mind-map-stroke','referenceNodeId','transientPreview','elementUpdate$','boards-mind-ui.panel.structureKind.treeLeft','_initEditingRestore','removeObjects','_resolveCurrentBoardContext','incomingConnectorStyle','_ensureDragPreviewObject','attachPopupToObject','LEFT','M12\x2026h11M58\x2036h11M12\x2045h11','_resolveControlSide','dashType','save','ArrowUp','_createShortcutItems','univer-size-5','value','_enableMindMapToolbarTool','Timeline','3014tQcZAu','_captureDragStart','boards-mind-ui.toolbar.action.delete','reparent','univer-w-full\x20univer-text-xs','tree-left','_textEditingService','boards-mind-ui.alignRight','_openSelectedTextEditing','3180JyecUD','OPERATION','_syncRootReparentPreview','controls','preventDefault','add-child','1.8','_uiStateService','_resolveControlBounds','dot','isHit','_isControlEvent','M56\x2012v32M56\x2019c0\x204-3\x206-7\x206h-7M56\x2029c0\x204-3\x206-7\x206h-7M56\x2039c0\x204-3\x206-7\x206h-7','requestRender','boards-mind-ui.toolbar.panel.more','filter','_debouncedLayouts','_getPointFromEvent','string','_syncPreviewObject','setActiveTool','color','boards-mind-ui.description','getSnapshot','getEditing','textFill','type','rootFontWeight','_note','focusedId','forEach','add-child-bottom','number','fontFamily','pointercancel','board-mind-map-node-controls-object','_disposeActivePointerDragListeners','_restoreObjectToDragStart','more','_resolveHostSize','Select','getTemplate','primary','gap','_syncLayoutPreview','notify','_buildPopupSelectionKey','boundsByElementId','orthogonal','changeStart$','getObject','univer-min-w-0\x20univer-flex-1\x20univer-justify-start\x20univer-truncate\x20univer-text-left','getBoundingClientRect','_activeNodeId','lineTo','univer-mb-2\x20univer-text-lg\x20univer-text-gray-900','zoomRatio','section','_isEditingMindMapNode','@univerjs-pro/boards-mind-ui','_handlePointerDown','collapse-all','_attachObjectPointerScheduled','svg','shapeData','ArrowDown','clientY','custom','univer-cursor-not-allowed\x20univer-text-gray-300\x20hover:univer-bg-transparent','transform','_template','_isPointInBounds','timeline-horizontal','branch-rounded-orthogonal','collapsePlusMinDistance','after','onDblclick$','nodeHeight','panel','evented','tools','layout','before','univer-bg-[#e8eefc]\x20univer-text-[#2f6fed]\x20hover:univer-bg-[#e8eefc]','defineProperty','viewportPanOffset','importExport','boards-mind-ui.alignTop','add-child-right','boards-mind-ui.panel.layout.both','italic','11952bFtZjV','CENTER','dash','_queuedLayouts','elementData','ArrowLeft','mind-map-font-size','opacity','boards-mind-ui.panel.layout.right','univer-border-b\x20univer-border-gray-200\x20univer-p-4','item','setEditing','titleKey','blueprint','nodeId','_getPointerScreenPoint','reduce','_state','univer-space-y-1','_debouncedLayoutTimer','_syncControls','interactionSurfaceActive$','element','clearPendingInsert','setTemplate','_queueDebouncedLayout','rootWidth','_showPopupForSelection','boards-mind-ui.panel.tab.','updateState','editingParams$','dropdown','addChildRadius','_syncChildDragPreviewObject','parentNodeId','push','M4.5\x2016.5h4.2c1.9\x200\x203.3-1.5\x203.3-3.3','_popupSelectionKey','univer-text-xs\x20univer-text-gray-500','fillStyle','hideRootControls','detach','button','univer-grid\x20univer-h-14\x20univer-overflow-hidden\x20univer-rounded-xl\x20univer-bg-gray-100\x20univer-p-1','0\x200\x2080\x2056','getUnit','badgeFontSize','placement','boards-mind-ui.panel.pasteOPML','boards-mind-ui.panel.importOPML','branch-curve','state$','boards-mind-ui.toolbar.panel.typography','localeCompare','boards-mind-ui.panel.tab.structure','textPaddingScreen','siblingGap','stroke','fallbackNodeWidth','branch-orthogonal','point','owner','currentColor','_navigateByTopology','_init','RoundDot','univer-flex\x20univer-justify-end\x20univer-gap-2','_getElementKey','fontColor','2450BejJEq','move','elementAdd$','hypot','toLowerCase','_stateService','_syncSceneInputMode','addChildNode','dispose$','subUnitId','glyphWidth','rootStartBounds','sourceHighlightFillColor','action','add-child-top','boards-mind-ui.panel.tab.layout','_applyPointerChildDrag','_getBlankBoardContext','add-sibling-or-child','_contextService','round','arrow-up','clipboard','ghostBounds','_lastChildDragAction','panOffset','boards-mind-ui.toolbar.primary.line','right','unitId','elementId','add','includes','dividerBefore','radius','promote','labelKey','onPointerUp$','siblingGlyphSize','boards-mind-ui.panel.','kind','_pasteAsNewMindMap','dataTransfer','_resolveRootChildControlSides','boards-mind-ui.toolbar.action.paste','get','sort','sourceDashScreen','_handlePointerMove','1735244uJRMaO','pipe','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','_attachObjectEvents','_popupDisposable','0\x200\x2024\x2024','hoveredControl','executeCommand','small','boards-mind-ui.alignLeft','min','moveTo','_configService','univer-space-y-3','makeDirty','strikethrough','_drawSourceHighlight','description','hasCommand','_resolvePreviewTextStyle','_drawConnectorPreview','root','JUSTIFIED','top','boards-mind-ui.panel.layout.left','connectorAffordance','transientControl','_childDragActivated','_createKeyboardShortcutOperation','boards-mind-ui.toolbar.action.copy','boards-mind-ui.alignJustify','boards-mind-ui.alignMiddle','closePath','_handleElementUpdate','univer-mb-3\x20univer-w-full','_provider','_resolveNodeSize','pointerup','addObject','length','13383RJGBPB','rgb','slice','quadraticCurveTo','_executeAndLayout','399531ctjIYW','collapsed','addChildGlyphSize','_pasteUnderSelectedNode','M40\x209v40M40\x2020c8\x200\x2011\x204\x2011\x2011v8M40\x2035c-8\x200-11\x204-11\x2011v4','ghostRadius','orderKey','SquareDot','setConfig','rootText','timeline-vertical','_dragPreviewObject','outlineItems','_subscribeElementDataChanges','offsetY','BACKSPACE','rootChildSides','boards-mind-ui.panel.branchLineType.roundedOrthogonal','boards-mind-ui.cancel','glyphHoverWidth','preview','horizontalAlign','entries','key','verticalAlign','siblingDotRadius','underline','enabled','boards-mind-ui.panel.exportOPML','_ensureObject','addChild','connector','M20\x2025h13M20\x2035h13M20\x2045h13','M16\x2029h18c7\x200\x2010-5\x2010-12v-3M34\x2029h10c7\x200\x2010\x205\x2010\x2012v3','_getBoardsUIConfig','_getSelectedMindMapContext','changeEnd$','clearSelection','univer-h-28\x20univer-resize-none\x20univer-text-xs','keys','univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-white','#d8dce3','mindmap-vertical','boards-mind-ui.panel.structureKind.timelineVertical','beginPath','icon','_renderManagerService','getPayload','univer-space-y-2','writeText','pendingInsert','version','makeDirtyNoDebounce','restore','arrow-right','join','_executeCreateAndEdit','getContextValue','extraProps','subscribeEvent','glyphSize','_lastPoint','isInteractionSurfaceActive','from','_consumePointerEvent','mindmap-horizontal','board-mind-map-drag-preview-object','style','M19.5\x207.5h-4.2c-1.9\x200-3.3\x201.5-3.3\x203.3','_consumeControlEvent','flatMap','_boardTextEditingService','_renderContext','edit-text','_ensurePreviewObject','_countDescendants','univer-flex\x20univer-flex-col\x20univer-gap-2','dropEffect','badgeFontWeight','univer-mb-4','getConfig','_resolveChildSide','_clearPopup','structured','packageName','scopeId','some','_rememberNodeSize','pointerStartX','ArrowRight'];_0x3246=function(){return _0x172b67;};return _0x3246();}function q(_0xda0533,_0x32ccf2,_0x50a8c1,_0x59b6c3){const _0x446fe7=_0x5cd39e;var _0x5ac168=arguments[_0x446fe7(0x3a9)],_0x1c6b79=_0x5ac168<0x3?_0x32ccf2:_0x59b6c3===null?_0x59b6c3=Object[_0x446fe7(0x441)](_0x32ccf2,_0x50a8c1):_0x59b6c3,_0x167331;if(typeof Reflect==_0x446fe7(0x49c)&&typeof Reflect[_0x446fe7(0x476)]==_0x446fe7(0x498))_0x1c6b79=Reflect[_0x446fe7(0x476)](_0xda0533,_0x32ccf2,_0x50a8c1,_0x59b6c3);else{for(var _0x38eb8b=_0xda0533[_0x446fe7(0x3a9)]-0x1;_0x38eb8b>=0x0;_0x38eb8b--)(_0x167331=_0xda0533[_0x38eb8b])&&(_0x1c6b79=(_0x5ac168<0x3?_0x167331(_0x1c6b79):_0x5ac168>0x3?_0x167331(_0x32ccf2,_0x50a8c1,_0x1c6b79):_0x167331(_0x32ccf2,_0x50a8c1))||_0x1c6b79);}return _0x5ac168>0x3&&_0x1c6b79&&Object['defineProperty'](_0x32ccf2,_0x50a8c1,_0x1c6b79),_0x1c6b79;}let Lt=class extends _0x4a70b2{constructor(_0x5c6484,_0x33f3da,_0x9ebe3c){const _0x5d2243=_0x5cd39e;super(),this[_0x5d2243(0x3f7)]=_0x5c6484,this[_0x5d2243(0x459)]=_0x33f3da,this[_0x5d2243(0x24e)]=_0x9ebe3c,G(this,_0x5d2243(0x285),new Map()),G(this,'_queuedLayouts',new Map()),G(this,'_debouncedLayouts',new Map()),G(this,_0x5d2243(0x273),!0x1),G(this,'_debouncedLayoutTimer',null),this[_0x5d2243(0x34d)]();}[_0x5cd39e(0x34d)](){const _0xa0d8d7=_0x5cd39e;this[_0xa0d8d7(0x4a7)](),this['disposeWithMe'](_0x450a20(this[_0xa0d8d7(0x459)]['elementAdd$'][_0xa0d8d7(0x383)](_0x4deb35(this[_0xa0d8d7(0x35a)]))[_0xa0d8d7(0x4b5)](_0x436315=>{const _0x5b4c23=_0xa0d8d7;_0x436315[_0x5b4c23(0x2d0)](_0x5c41a8=>{const _0x1909ac=_0x5b4c23;let _0x5f441a=this['_boardElementService'][_0x1909ac(0x208)](_0x5c41a8[_0x1909ac(0x36e)],_0x5c41a8[_0x1909ac(0x35b)],_0x5c41a8['elementId']);this[_0x1909ac(0x406)](_0x5c41a8,_0x5f441a);});}))),this[_0xa0d8d7(0x488)](_0x450a20(this[_0xa0d8d7(0x459)][_0xa0d8d7(0x296)][_0xa0d8d7(0x383)](_0x4deb35(this[_0xa0d8d7(0x35a)]))[_0xa0d8d7(0x4b5)](_0x292cdb=>{const _0x40794a=_0xa0d8d7;_0x292cdb['forEach'](_0x22fb14=>this[_0x40794a(0x3a3)](_0x22fb14));})));let _0x5409a4=this[_0xa0d8d7(0x24e)][_0xa0d8d7(0x1fe)];typeof _0x5409a4=='function'&&this[_0xa0d8d7(0x488)](_0x5409a4[_0xa0d8d7(0x445)](this['_commandService'],_0x913c00=>{const _0x182009=_0xa0d8d7;if(_0x913c00['id']!==_0x240a0f['id'])return;let _0x231bd0=_0x913c00[_0x182009(0x4ba)];this[_0x182009(0x23a)](_0x231bd0);})),this[_0xa0d8d7(0x488)](_0x450a20(()=>{const _0x4fbc73=_0xa0d8d7;this[_0x4fbc73(0x320)]!==null&&(clearTimeout(this[_0x4fbc73(0x320)]),this['_debouncedLayoutTimer']=null);}));}[_0x5cd39e(0x4a7)](){const _0x5e912c=_0x5cd39e;let _0x2dfede=this['_renderContext'][_0x5e912c(0x36e)],_0x2f31a1=this[_0x5e912c(0x459)]['getElementDataForUnit'](_0x2dfede);Object[_0x5e912c(0x3c5)](_0x2f31a1)[_0x5e912c(0x2d0)](([_0x5ba974,_0x27c9db])=>{const _0x178e14=_0x5e912c;Object[_0x178e14(0x255)](_0x27c9db[_0x178e14(0x235)])[_0x178e14(0x2d0)](_0x31fd35=>{const _0x2f3d56=_0x178e14;this[_0x2f3d56(0x406)]({'unitId':_0x2dfede,'subUnitId':_0x5ba974,'elementId':_0x31fd35[_0x2f3d56(0x36f)]},_0x31fd35);});});}[_0x5cd39e(0x3a3)](_0x1149e1){const _0x33aabd=_0x5cd39e;if(_0x1149e1[_0x33aabd(0x36e)]!==this[_0x33aabd(0x3f7)][_0x33aabd(0x36e)])return;let _0x423ec6=this[_0x33aabd(0x459)][_0x33aabd(0x208)](_0x1149e1[_0x33aabd(0x36e)],_0x1149e1[_0x33aabd(0x35b)],_0x1149e1[_0x33aabd(0x36f)]),_0x567b2f=_0x554e66(_0x423ec6==null?void 0x0:_0x423ec6[_0x33aabd(0x323)]),_0x1fde91=this['_resolveNodeSize'](_0x423ec6);if(!_0x567b2f||!_0x1fde91){this[_0x33aabd(0x285)]['delete'](this[_0x33aabd(0x350)](_0x1149e1));return;}let _0x530891=this[_0x33aabd(0x350)](_0x1149e1),_0x54889f=this['_nodeSizeByKey'][_0x33aabd(0x37e)](_0x530891);this[_0x33aabd(0x285)][_0x33aabd(0x45a)](_0x530891,_0x1fde91),!(_0x54889f&&_0x54889f[_0x33aabd(0x433)]===_0x1fde91[_0x33aabd(0x433)]&&_0x54889f[_0x33aabd(0x23e)]===_0x1fde91[_0x33aabd(0x23e)])&&this[_0x33aabd(0x4a8)]({'unitId':_0x1149e1[_0x33aabd(0x36e)],'subUnitId':_0x1149e1[_0x33aabd(0x35b)],'scopeId':_0x567b2f[_0x33aabd(0x462)],'anchorNodeId':_0x1149e1[_0x33aabd(0x36f)]});}[_0x5cd39e(0x406)](_0x5e13a8,_0x5cb599){const _0x3d3912=_0x5cd39e;if(_0x5e13a8[_0x3d3912(0x36e)]!==this[_0x3d3912(0x3f7)]['unitId'])return;let _0x98968e=_0x554e66(_0x5cb599==null?void 0x0:_0x5cb599[_0x3d3912(0x323)]),_0x190478=this[_0x3d3912(0x3a6)](_0x5cb599);!_0x98968e||!_0x190478||this[_0x3d3912(0x285)][_0x3d3912(0x45a)](this[_0x3d3912(0x350)](_0x5e13a8),_0x190478);}[_0x5cd39e(0x3a6)](_0x499c99){const _0x546361=_0x5cd39e;let _0x241f98=(_0x499c99==null?void 0x0:_0x499c99[_0x546361(0x2f7)])??(_0x499c99==null?void 0x0:_0x499c99[_0x546361(0x323)]['transform']),_0x1a1194=_0x241f98==null?void 0x0:_0x241f98['width'],_0x5624c5=_0x241f98==null?void 0x0:_0x241f98[_0x546361(0x23e)];return!Number['isFinite'](_0x1a1194)||!Number['isFinite'](_0x5624c5)?null:{'width':_0x1a1194,'height':_0x5624c5};}[_0x5cd39e(0x4a8)](_0x3a9b2e){const _0x46bb7e=_0x5cd39e;this['_queuedLayouts'][_0x46bb7e(0x45a)](_0x3a9b2e[_0x46bb7e(0x36e)]+':'+_0x3a9b2e['subUnitId']+':'+_0x3a9b2e['scopeId'],_0x3a9b2e),!this['_layoutFlushScheduled']&&(this['_layoutFlushScheduled']=!0x0,Promise[_0x46bb7e(0x412)]()['then'](()=>{const _0x58c5c3=_0x46bb7e;this['_layoutFlushScheduled']=!0x1;let _0x520633=Array['from'](this[_0x58c5c3(0x310)]['values']());this[_0x58c5c3(0x310)]['clear'](),_0x520633['forEach'](_0x4f7439=>{const _0x1588b6=_0x58c5c3;this['_commandService'][_0x1588b6(0x389)](_0x189a28['id'],_0x4f7439);});}));}[_0x5cd39e(0x23a)](_0x46e89a){const _0x14e737=_0x5cd39e;if(!(_0x46e89a!=null&&_0x46e89a[_0x14e737(0x36e)])||!_0x46e89a['subUnitId']||!_0x46e89a[_0x14e737(0x31b)]||_0x46e89a[_0x14e737(0x36e)]!==this[_0x14e737(0x3f7)]['unitId'])return;let _0x2c6e61=this[_0x14e737(0x459)][_0x14e737(0x208)](_0x46e89a['unitId'],_0x46e89a[_0x14e737(0x35b)],_0x46e89a[_0x14e737(0x31b)]),_0x85192e=_0x554e66(_0x2c6e61==null?void 0x0:_0x2c6e61['element']);_0x85192e&&this[_0x14e737(0x326)]({'unitId':_0x46e89a[_0x14e737(0x36e)],'subUnitId':_0x46e89a[_0x14e737(0x35b)],'scopeId':_0x85192e[_0x14e737(0x462)],'anchorNodeId':_0x46e89a[_0x14e737(0x31b)]});}[_0x5cd39e(0x326)](_0xd483ca){const _0x2db752=_0x5cd39e;this[_0x2db752(0x2c2)][_0x2db752(0x45a)](_0xd483ca[_0x2db752(0x36e)]+':'+_0xd483ca[_0x2db752(0x35b)]+':'+_0xd483ca['scopeId'],_0xd483ca),this['_debouncedLayoutTimer']!==null&&clearTimeout(this[_0x2db752(0x320)]),this['_debouncedLayoutTimer']=setTimeout(()=>{const _0x303db0=_0x2db752;this[_0x303db0(0x320)]=null;let _0x25daa5=Array[_0x303db0(0x3ee)](this[_0x303db0(0x2c2)][_0x303db0(0x255)]());this[_0x303db0(0x2c2)]['clear'](),_0x25daa5[_0x303db0(0x2d0)](_0x136626=>{const _0x33c16d=_0x303db0;this['_commandService'][_0x33c16d(0x389)](_0x189a28['id'],_0x136626);});},0x50);}[_0x5cd39e(0x350)](_0x31a29b){const _0x18f8a7=_0x5cd39e;return _0x31a29b[_0x18f8a7(0x36e)]+':'+_0x31a29b['subUnitId']+':'+_0x31a29b[_0x18f8a7(0x36f)];}};Lt=q([K(0x1,_0x20cede(_0x1973ec)),K(0x2,_0x59364d)],Lt);const J={'primaryColor':_0x489684,'surfaceColor':_0x301890,'textColor':_0x558f17,'fontFamily':_0x34b337['ff']};function Rt(_0x4b316b,_0x590b64){const _0x3ba433=_0x5cd39e;let _0x660ac0=Math[_0x3ba433(0x38c)](0x1,Math[_0x3ba433(0x4bb)](0x0,Number[_0x3ba433(0x41c)](_0x590b64)?_0x590b64:0x1)),_0x56e61f=_0x4b316b[_0x3ba433(0x4b8)](),_0x2b21ec=/^#([0-9a-fA-F]{6})$/[_0x3ba433(0x26d)](_0x56e61f);if(!_0x2b21ec)return _0x4b316b;let _0x18fe53=_0x2b21ec[0x1];return _0x3ba433(0x4b0)+Number[_0x3ba433(0x456)](_0x18fe53['slice'](0x0,0x2),0x10)+',\x20'+Number[_0x3ba433(0x456)](_0x18fe53[_0x3ba433(0x3ac)](0x2,0x4),0x10)+',\x20'+Number[_0x3ba433(0x456)](_0x18fe53['slice'](0x4,0x6),0x10)+',\x20'+_0x660ac0+')';}const Y={'primaryColor':J[_0x5cd39e(0x220)],'ghostFillColor':Rt(J[_0x5cd39e(0x46f)],0.72),'ghostTextColor':Rt(J['textColor'],0.62),'rootTextColor':Rt(J[_0x5cd39e(0x46f)],0.86),'sourceHighlightFillColor':Rt(J[_0x5cd39e(0x220)],0.12),'sourceHighlightStrokeColor':Rt(J['primaryColor'],0.9),'objectAlpha':0.72,'dragObjectAlpha':0.78,'connectorAlpha':0.64,'lineWidthScreen':0x2,'fallbackNodeWidth':_0x2df34d[_0x5cd39e(0x205)],'fallbackNodeHeight':_0x2df34d[_0x5cd39e(0x2ff)],'branchGap':_0x52b473['branchGap'],'sourceHaloScreen':0x4,'ghostRadius':0x8,'rootRadius':0xa,'fontFamily':J[_0x5cd39e(0x2d3)],'ghostFontWeight':0x1f4,'rootFontWeight':0x258,'rootFontSize':0x12,'textPaddingScreen':0xc,'dirtyPaddingScreen':0x18,'sourceDashScreen':[0x6,0x4]};function X(_0x489fbb,_0x260255,_0x44230e,_0xdf36cc,_0x9311f,_0x58b19f){const _0x5589e4=_0x5cd39e;let _0x64d16=Math[_0x5589e4(0x38c)](_0x58b19f,_0xdf36cc/0x2,_0x9311f/0x2);_0x489fbb[_0x5589e4(0x3db)](),_0x489fbb[_0x5589e4(0x38d)](_0x260255+_0x64d16,_0x44230e),_0x489fbb[_0x5589e4(0x2e8)](_0x260255+_0xdf36cc-_0x64d16,_0x44230e),_0x489fbb['quadraticCurveTo'](_0x260255+_0xdf36cc,_0x44230e,_0x260255+_0xdf36cc,_0x44230e+_0x64d16),_0x489fbb[_0x5589e4(0x2e8)](_0x260255+_0xdf36cc,_0x44230e+_0x9311f-_0x64d16),_0x489fbb[_0x5589e4(0x3ad)](_0x260255+_0xdf36cc,_0x44230e+_0x9311f,_0x260255+_0xdf36cc-_0x64d16,_0x44230e+_0x9311f),_0x489fbb[_0x5589e4(0x2e8)](_0x260255+_0x64d16,_0x44230e+_0x9311f),_0x489fbb[_0x5589e4(0x3ad)](_0x260255,_0x44230e+_0x9311f,_0x260255,_0x44230e+_0x9311f-_0x64d16),_0x489fbb[_0x5589e4(0x2e8)](_0x260255,_0x44230e+_0x64d16),_0x489fbb[_0x5589e4(0x3ad)](_0x260255,_0x44230e,_0x260255+_0x64d16,_0x44230e),_0x489fbb[_0x5589e4(0x3a2)]();}function zt(_0x15bee9,_0x2867d0,_0x19f867){const _0x2a665d=_0x5cd39e;return _0x15bee9+'\x20'+_0x2867d0/_0x19f867+_0x2a665d(0x451)+Y[_0x2a665d(0x2d3)];}const Bt=_0x5cd39e(0x3f1),Vt=_0x28f70c[_0x5cd39e(0x3c3)];function Z(_0xe87be2,_0x5aedc9){const _0x18cd2a=_0x5cd39e;return Number[_0x18cd2a(0x41c)](_0xe87be2)?_0xe87be2:_0x5aedc9;}function Ht(){const _0x105794=_0x5cd39e;return Y[_0x105794(0x347)];}function Ut(){return Y['fallbackNodeHeight'];}function Wt(_0x1ab19d){const _0x42f15b=_0x5cd39e;return _0x1ab19d===0x1?_0x42f15b(0x40b):_0x1ab19d===0x3?_0x42f15b(0x36d):_0x42f15b(0x253);}function Gt(_0x3c5e86,_0x3746f5,_0x2bf566,_0x3332ed){return _0x2bf566===0x1?_0x3c5e86+_0x3332ed:_0x2bf566===0x3?_0x3c5e86+_0x3746f5-_0x3332ed:_0x3c5e86+_0x3746f5/0x2;}var Kt=class extends _0x3002ad{constructor(_0x5bacbe=Bt,_0x43017d){const _0x33c526=_0x5cd39e;super(_0x5bacbe),G(this,_0x33c526(0x31e),{'ghostBounds':null,'parentBounds':null,'side':_0x33c526(0x36d),'zoomRatio':0x1}),this[_0x33c526(0x301)]=!0x1,this['zIndex']=_0x5d1061[_0x33c526(0x256)],this[_0x33c526(0x32a)](_0x43017d);}[_0x5cd39e(0x32a)](_0x5a57e4){const _0x281aab=_0x5cd39e;if(this[_0x281aab(0x31e)]={...this['_state'],..._0x5a57e4},this[_0x281aab(0x31e)][_0x281aab(0x369)]){let _0x2f4bc2=this[_0x281aab(0x218)]();this['transformByState'](_0x2f4bc2),this['show']();}else this[_0x281aab(0x23d)]();let _0x199dbc=this;typeof _0x199dbc[_0x281aab(0x3e3)]==_0x281aab(0x498)?_0x199dbc[_0x281aab(0x3e3)](!0x0):this[_0x281aab(0x390)](!0x0);}[_0x5cd39e(0x2bc)](_0x514de5){return!0x1;}[_0x5cd39e(0x472)](_0x45173a,_0x41c673){const _0xdac5d=_0x5cd39e;let _0x1c6341=this['_state'][_0xdac5d(0x369)];if(!_0x1c6341||!this['visible'])return this['makeDirty'](!0x1),this;let _0x2083fc=Number['isFinite'](this[_0xdac5d(0x31e)][_0xdac5d(0x2ea)])&&(this['_state']['zoomRatio']??0x0)>0x0?this['_state'][_0xdac5d(0x2ea)]:0x1,_0x25f3dc=Z(_0x1c6341[_0xdac5d(0x40b)],0x0),_0x3b9111=Z(_0x1c6341[_0xdac5d(0x399)],0x0),_0x1d8f41=Math['max'](0x1,Z(_0x1c6341['width'],Ht())),_0x5e5229=Math[_0xdac5d(0x4bb)](0x1,Z(_0x1c6341[_0xdac5d(0x23e)],Ut()));if(_0x45173a[_0xdac5d(0x2a2)](),_0x45173a[_0xdac5d(0x491)]=Y[_0xdac5d(0x466)],_0x45173a[_0xdac5d(0x484)]=Y[_0xdac5d(0x463)]/_0x2083fc,_0x45173a[_0xdac5d(0x474)]=Y['primaryColor'],_0x45173a[_0xdac5d(0x334)]=Y[_0xdac5d(0x483)],this[_0xdac5d(0x396)](_0x45173a,{'left':_0x25f3dc,'top':_0x3b9111,'width':_0x1d8f41,'height':_0x5e5229},_0x2083fc),this[_0xdac5d(0x392)](_0x45173a,_0x2083fc),this[_0xdac5d(0x31e)]['renderGhostNode']===!0x1)return _0x45173a[_0xdac5d(0x3e4)](),this[_0xdac5d(0x390)](!0x1),this;X(_0x45173a,_0x25f3dc,_0x3b9111,_0x1d8f41,_0x5e5229,Y[_0xdac5d(0x3b4)]),_0x45173a[_0xdac5d(0x4a6)](),_0x45173a[_0xdac5d(0x346)]();let _0x221f36=this[_0xdac5d(0x31e)]['textStyle'],_0x4cbfec=Number[_0xdac5d(0x41c)](_0x221f36==null?void 0x0:_0x221f36[_0xdac5d(0x291)])&&((_0x221f36==null?void 0x0:_0x221f36[_0xdac5d(0x291)])??0x0)>0x0?_0x221f36[_0xdac5d(0x291)]:0x10,_0x3e8064=Y[_0xdac5d(0x344)]/_0x2083fc;return _0x45173a[_0xdac5d(0x334)]=(_0x221f36==null?void 0x0:_0x221f36['color'])??Y['ghostTextColor'],_0x45173a[_0xdac5d(0x43c)]=zt(Y[_0xdac5d(0x452)],_0x4cbfec,_0x2083fc),_0x45173a[_0xdac5d(0x272)]=Wt(_0x221f36==null?void 0x0:_0x221f36[_0xdac5d(0x3c4)]),_0x45173a[_0xdac5d(0x418)]=_0xdac5d(0x237),_0x45173a[_0xdac5d(0x203)]((_0x221f36==null?void 0x0:_0x221f36[_0xdac5d(0x250)])||_0x5c59e5,Gt(_0x25f3dc,_0x1d8f41,_0x221f36==null?void 0x0:_0x221f36[_0xdac5d(0x3c4)],_0x3e8064),_0x3b9111+_0x5e5229/0x2,Math[_0xdac5d(0x4bb)](0x1,_0x1d8f41-_0x3e8064*0x2)),_0x45173a[_0xdac5d(0x3e4)](),this[_0xdac5d(0x390)](!0x1),this;}[_0x5cd39e(0x218)](){const _0x177bf7=_0x5cd39e;let _0x3dce60=this[_0x177bf7(0x31e)]['ghostBounds'],_0x1920fa=Number[_0x177bf7(0x41c)](this[_0x177bf7(0x31e)][_0x177bf7(0x2ea)])&&(this[_0x177bf7(0x31e)][_0x177bf7(0x2ea)]??0x0)>0x0?this['_state'][_0x177bf7(0x2ea)]:0x1,_0x211a7e=Y['dirtyPaddingScreen']/_0x1920fa;if(!_0x3dce60)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x45d347=Z(_0x3dce60[_0x177bf7(0x40b)],0x0),_0x57cf8a=Z(_0x3dce60[_0x177bf7(0x399)],0x0),_0x3fc19b=Math[_0x177bf7(0x4bb)](0x1,Z(_0x3dce60['width'],Ht())),_0x1bccf2=Math[_0x177bf7(0x4bb)](0x1,Z(_0x3dce60['height'],Ut())),_0x181982=this['_state'][_0x177bf7(0x4be)],_0x325c51=this[_0x177bf7(0x31e)]['parentBounds'],_0x513608=Z(_0x181982==null?void 0x0:_0x181982[_0x177bf7(0x40b)],_0x45d347),_0x127c9b=Z(_0x181982==null?void 0x0:_0x181982[_0x177bf7(0x399)],_0x57cf8a),_0x3702d0=Math[_0x177bf7(0x4bb)](0x1,Z(_0x181982==null?void 0x0:_0x181982['width'],_0x3fc19b)),_0x328834=Math[_0x177bf7(0x4bb)](0x1,Z(_0x181982==null?void 0x0:_0x181982[_0x177bf7(0x23e)],_0x1bccf2));if(!_0x325c51){let _0x2d89ac=Math[_0x177bf7(0x38c)](_0x45d347,_0x513608)-_0x211a7e,_0x3248e0=Math['min'](_0x57cf8a,_0x127c9b)-_0x211a7e,_0x2ccfbb=Math['max'](_0x45d347+_0x3fc19b,_0x513608+_0x3702d0)+_0x211a7e,_0x1ea1b7=Math[_0x177bf7(0x4bb)](_0x57cf8a+_0x1bccf2,_0x127c9b+_0x328834)+_0x211a7e;return{'left':_0x2d89ac,'top':_0x3248e0,'width':_0x2ccfbb-_0x2d89ac,'height':_0x1ea1b7-_0x3248e0};}let _0x567d6e=Z(_0x325c51[_0x177bf7(0x40b)],_0x45d347),_0x735076=Z(_0x325c51[_0x177bf7(0x399)],_0x57cf8a),_0x3add5a=Math[_0x177bf7(0x4bb)](0x1,Z(_0x325c51[_0x177bf7(0x433)],Ht())),_0x11974a=Math[_0x177bf7(0x4bb)](0x1,Z(_0x325c51[_0x177bf7(0x23e)],Ut())),_0x37b797=Math[_0x177bf7(0x38c)](_0x45d347,_0x567d6e,_0x513608)-_0x211a7e,_0x1f069b=Math[_0x177bf7(0x38c)](_0x57cf8a,_0x735076,_0x127c9b)-_0x211a7e,_0x1d5f3e=Math[_0x177bf7(0x4bb)](_0x45d347+_0x3fc19b,_0x567d6e+_0x3add5a,_0x513608+_0x3702d0)+_0x211a7e,_0x10020a=Math[_0x177bf7(0x4bb)](_0x57cf8a+_0x1bccf2,_0x735076+_0x11974a,_0x127c9b+_0x328834)+_0x211a7e;return{'left':_0x37b797,'top':_0x1f069b,'width':_0x1d5f3e-_0x37b797,'height':_0x10020a-_0x1f069b};}[_0x5cd39e(0x392)](_0x113cf4,_0x19a475){const _0x20d6d4=_0x5cd39e;var _0x831f9c;let _0x2d4888=this[_0x20d6d4(0x31e)][_0x20d6d4(0x4be)];if(!_0x2d4888)return;let _0x1a0172=Y['sourceHaloScreen']/_0x19a475,_0x593496=Z(_0x2d4888[_0x20d6d4(0x40b)],0x0)-_0x1a0172,_0x3311b7=Z(_0x2d4888[_0x20d6d4(0x399)],0x0)-_0x1a0172,_0x593cd6=Math[_0x20d6d4(0x4bb)](0x1,Z(_0x2d4888['width'],Ht()))+_0x1a0172*0x2,_0x5429e2=Math[_0x20d6d4(0x4bb)](0x1,Z(_0x2d4888[_0x20d6d4(0x23e)],Ut()))+_0x1a0172*0x2;_0x113cf4[_0x20d6d4(0x2a2)](),_0x113cf4[_0x20d6d4(0x491)]=0x1,_0x113cf4[_0x20d6d4(0x484)]=Y[_0x20d6d4(0x463)]/_0x19a475,_0x113cf4[_0x20d6d4(0x474)]=Y['sourceHighlightStrokeColor'],_0x113cf4[_0x20d6d4(0x334)]=Y[_0x20d6d4(0x35e)],(_0x831f9c=_0x113cf4['setLineDash'])==null||_0x831f9c[_0x20d6d4(0x445)](_0x113cf4,Y[_0x20d6d4(0x380)][_0x20d6d4(0x209)](_0x1bcd5d=>_0x1bcd5d/_0x19a475)),X(_0x113cf4,_0x593496,_0x3311b7,_0x593cd6,_0x5429e2,Y[_0x20d6d4(0x454)]),_0x113cf4[_0x20d6d4(0x4a6)](),_0x113cf4[_0x20d6d4(0x346)](),_0x113cf4['restore']();}[_0x5cd39e(0x396)](_0x3958a2,_0x5a9354,_0x1f9463){const _0x43bb8f=_0x5cd39e;let _0x379503=this[_0x43bb8f(0x31e)][_0x43bb8f(0x44c)];if(!_0x379503)return;let _0x406bab=Z(_0x379503['left'],0x0),_0x1076dc=Z(_0x379503['top'],0x0),_0x20c44f=Math[_0x43bb8f(0x4bb)](0x1,Z(_0x379503['width'],Ht())),_0x540462=Math[_0x43bb8f(0x4bb)](0x1,Z(_0x379503[_0x43bb8f(0x23e)],Ut())),_0x190e60=Y[_0x43bb8f(0x20f)],_0x5cb2db=this[_0x43bb8f(0x31e)][_0x43bb8f(0x261)]??_0x43bb8f(0x36d);if(_0x3958a2['save'](),_0x3958a2['globalAlpha']=Y[_0x43bb8f(0x450)],_0x3958a2[_0x43bb8f(0x474)]=Y[_0x43bb8f(0x220)],_0x3958a2[_0x43bb8f(0x484)]=Y[_0x43bb8f(0x463)]/_0x1f9463,_0x3958a2[_0x43bb8f(0x489)]=_0x43bb8f(0x366),_0x3958a2[_0x43bb8f(0x277)]=_0x43bb8f(0x366),_0x3958a2[_0x43bb8f(0x3db)](),_0x5cb2db===_0x43bb8f(0x399)||_0x5cb2db===_0x43bb8f(0x40a)){let _0x3a8633=_0x406bab+_0x20c44f/0x2,_0x1efec1=_0x5a9354[_0x43bb8f(0x40b)]+_0x5a9354[_0x43bb8f(0x433)]/0x2,_0x12525b=_0x5cb2db===_0x43bb8f(0x40a)?_0x1076dc+_0x540462:_0x1076dc,_0x265393=_0x5cb2db===_0x43bb8f(0x40a)?_0x5a9354[_0x43bb8f(0x399)]:_0x5a9354[_0x43bb8f(0x399)]+_0x5a9354['height'],_0x133b6e=_0x5cb2db===_0x43bb8f(0x40a)?Math[_0x43bb8f(0x38c)](_0x12525b+_0x190e60,(_0x12525b+_0x265393)/0x2):Math[_0x43bb8f(0x4bb)](_0x12525b-_0x190e60,(_0x12525b+_0x265393)/0x2);_0x3958a2[_0x43bb8f(0x38d)](_0x3a8633,_0x12525b),_0x3958a2[_0x43bb8f(0x2e8)](_0x3a8633,_0x133b6e),_0x3958a2[_0x43bb8f(0x2e8)](_0x1efec1,_0x133b6e),_0x3958a2[_0x43bb8f(0x2e8)](_0x1efec1,_0x265393);}else{let _0x30d81f=_0x1076dc+_0x540462/0x2,_0x545d73=_0x5a9354[_0x43bb8f(0x399)]+_0x5a9354[_0x43bb8f(0x23e)]/0x2,_0xa7fd1c=_0x5cb2db==='right'?_0x406bab+_0x20c44f:_0x406bab,_0x41b01c=_0x5cb2db===_0x43bb8f(0x36d)?_0x5a9354[_0x43bb8f(0x40b)]:_0x5a9354[_0x43bb8f(0x40b)]+_0x5a9354['width'],_0x604747=_0x5cb2db===_0x43bb8f(0x36d)?Math[_0x43bb8f(0x38c)](_0xa7fd1c+_0x190e60,(_0xa7fd1c+_0x41b01c)/0x2):Math[_0x43bb8f(0x4bb)](_0xa7fd1c-_0x190e60,(_0xa7fd1c+_0x41b01c)/0x2);_0x3958a2['moveTo'](_0xa7fd1c,_0x30d81f),_0x3958a2[_0x43bb8f(0x2e8)](_0x604747,_0x30d81f),_0x3958a2[_0x43bb8f(0x2e8)](_0x604747,_0x545d73),_0x3958a2['lineTo'](_0x41b01c,_0x545d73);}_0x3958a2[_0x43bb8f(0x346)](),_0x3958a2['restore']();}};function qt(_0xfb6ba4,_0x4664a5){const _0xcfb506=_0x5cd39e;return(_0x4664a5==null?void 0x0:_0x4664a5[_0xfb6ba4['elementId']])??_0xfb6ba4[_0xcfb506(0x323)][_0xcfb506(0x2f7)];}function Jt(_0x52dd87,_0x289044){const _0x338335=_0x5cd39e;let _0x4b5d19=qt(_0x52dd87,_0x289044);return{'x':(_0x4b5d19[_0x338335(0x40b)]??0x0)+(_0x4b5d19['width']??0x0)/0x2,'y':(_0x4b5d19[_0x338335(0x399)]??0x0)+(_0x4b5d19[_0x338335(0x23e)]??0x0)/0x2};}function Yt(_0x4496b1,_0x5f3143){const _0x42e91d=_0x5cd39e;return Math[_0x42e91d(0x355)](_0x4496b1['x']-_0x5f3143['x'],_0x4496b1['y']-_0x5f3143['y']);}function Xt(_0x2894ce,_0x235c75){const _0x9b70f2=_0x5cd39e;let _0x3ad6c6=_0x2894ce[_0x9b70f2(0x40b)]??0x0,_0x104d18=_0x2894ce[_0x9b70f2(0x399)]??0x0,_0xa5adf=_0x3ad6c6+(_0x2894ce['width']??0x0),_0x360572=_0x104d18+(_0x2894ce[_0x9b70f2(0x23e)]??0x0),_0x3d0cf6=_0x235c75['left']??0x0,_0x54493d=_0x235c75[_0x9b70f2(0x399)]??0x0,_0x2bbf9a=_0x3d0cf6+(_0x235c75[_0x9b70f2(0x433)]??0x0),_0x3ce510=_0x54493d+(_0x235c75['height']??0x0),_0x445799=Math[_0x9b70f2(0x4bb)](_0x3d0cf6-_0xa5adf,_0x3ad6c6-_0x2bbf9a,0x0),_0x25840c=Math[_0x9b70f2(0x4bb)](_0x54493d-_0x360572,_0x104d18-_0x3ce510,0x0);return Math[_0x9b70f2(0x355)](_0x445799,_0x25840c);}function Zt(_0x4f9c9e,_0x52fcef,_0x56d468){const _0xb0995c=_0x5cd39e;var _0x370501;let _0x809965=_0x554e66((_0x370501=_0x4f9c9e[_0x52fcef])==null?void 0x0:_0x370501[_0xb0995c(0x323)]);for(;_0x809965!=null&&_0x809965[_0xb0995c(0x32f)];){var _0x29db08;if(_0x809965[_0xb0995c(0x32f)]===_0x56d468)return!0x0;_0x809965=_0x554e66((_0x29db08=_0x4f9c9e[_0x809965[_0xb0995c(0x32f)]])==null?void 0x0:_0x29db08[_0xb0995c(0x323)]);}return!0x1;}function Qt(_0x462513,_0x4148ac,_0x3dc6ea){const _0x586ae1=_0x5cd39e;let _0xde28cf=qt(_0x462513,_0x3dc6ea),_0x1f9c69=_0xde28cf[_0x586ae1(0x399)]??0x0,_0x2506c4=_0xde28cf[_0x586ae1(0x23e)]??0x0;return _0x2506c4<=0x0?null:_0x4148ac['y']<=_0x1f9c69+_0x2506c4/0x3?'before':_0x4148ac['y']>=_0x1f9c69+_0x2506c4*0x2/0x3?_0x586ae1(0x2fd):null;}function $t(_0x5081c2,_0x42b93c){const _0x14bdf6=_0x5cd39e;let _0x4d7b4d=_0x42b93c==null?void 0x0:_0x42b93c[_0x5081c2];return Number[_0x14bdf6(0x41c)](_0x4d7b4d==null?void 0x0:_0x4d7b4d['left'])&&Number[_0x14bdf6(0x41c)](_0x4d7b4d==null?void 0x0:_0x4d7b4d[_0x14bdf6(0x399)])?{'kind':_0x14bdf6(0x336),'left':_0x4d7b4d[_0x14bdf6(0x40b)],'top':_0x4d7b4d['top']}:{'kind':_0x14bdf6(0x336)};}function en(_0x4d7289,_0x3a9d23,_0x567068){const _0x348305=_0x5cd39e;let _0x201d1e=_0x4d7289[_0x3a9d23],_0x51d011=_0x554e66(_0x201d1e==null?void 0x0:_0x201d1e[_0x348305(0x323)]);if(!_0x201d1e||!_0x51d011||!_0x51d011['parentNodeId']&&!(_0x567068!=null&&_0x567068[_0x348305(0x22d)]))return{'kind':_0x348305(0x47e)};let _0x50bf29=_0x567068==null?void 0x0:_0x567068[_0x348305(0x2e1)],_0x3caf51=qt(_0x201d1e,_0x50bf29),_0x1086ef=Jt(_0x201d1e,_0x50bf29),_0x4bae73=Object[_0x348305(0x255)](_0x4d7289)['map'](_0xf1e184=>{const _0x5bbd2b=_0x348305;let _0x3142ff=_0x554e66(_0xf1e184[_0x5bbd2b(0x323)]);return!_0x3142ff||_0xf1e184[_0x5bbd2b(0x36f)]===_0x3a9d23||_0xf1e184[_0x5bbd2b(0x36f)]===_0x51d011[_0x5bbd2b(0x32f)]||_0x567068!=null&&_0x567068[_0x5bbd2b(0x22d)]&&!_0x51d011[_0x5bbd2b(0x32f)]&&_0x3142ff['structureScopeId']===_0x51d011[_0x5bbd2b(0x462)]||Zt(_0x4d7289,_0xf1e184[_0x5bbd2b(0x36f)],_0x3a9d23)?null:{'item':_0xf1e184,'snapDistance':Xt(_0x3caf51,qt(_0xf1e184,_0x50bf29)),'center':Jt(_0xf1e184,_0x50bf29)};})[_0x348305(0x2c1)](_0x3577e7=>!!_0x3577e7)[_0x348305(0x37f)]((_0xff8cda,_0x588153)=>_0xff8cda[_0x348305(0x1f7)]-_0x588153[_0x348305(0x1f7)]||Yt(_0x1086ef,_0xff8cda[_0x348305(0x253)])-Yt(_0x1086ef,_0x588153[_0x348305(0x253)]))[0x0];if(_0x4bae73&&_0x4bae73['snapDistance']<=0x64){let _0x2d3f54=_0x554e66(_0x4bae73[_0x348305(0x317)][_0x348305(0x323)]),_0x154342=_0x2d3f54!=null&&_0x2d3f54[_0x348305(0x32f)]?Qt(_0x4bae73[_0x348305(0x317)],_0x1086ef,_0x50bf29):null;return _0x2d3f54!=null&&_0x2d3f54[_0x348305(0x32f)]&&_0x154342?{'kind':'reparent','newParentNodeId':_0x2d3f54['parentNodeId'],'side':_0x2d3f54[_0x348305(0x261)]??_0x348305(0x36d),'referenceNodeId':_0x4bae73[_0x348305(0x317)][_0x348305(0x36f)],'placement':_0x154342}:{'kind':_0x348305(0x2ac),'newParentNodeId':_0x4bae73['item'][_0x348305(0x36f)],'side':_0x1086ef['x']<_0x4bae73[_0x348305(0x253)]['x']?_0x348305(0x40b):'right'};}if(_0x567068!=null&&_0x567068['detachWhenNoSnap'])return $t(_0x3a9d23,_0x50bf29);if(!_0x51d011[_0x348305(0x32f)])return{'kind':_0x348305(0x47e)};let _0x2dd030=_0x4d7289[_0x51d011['parentNodeId']];return _0x2dd030&&Yt(_0x1086ef,Jt(_0x2dd030,_0x50bf29))>0x230?$t(_0x3a9d23,_0x50bf29):{'kind':_0x348305(0x47e)};}function tn(_0x75a651,_0xe6c9f0){const _0x2d278d=_0x5cd39e;var _0xce61e2,_0x54e7a7;return _0x75a651['elementId']===_0xe6c9f0||((_0xce61e2=_0x554e66(_0x75a651[_0x2d278d(0x323)]))==null?void 0x0:_0xce61e2[_0x2d278d(0x462)])===_0xe6c9f0||((_0x54e7a7=_0x4d74a8(_0x75a651[_0x2d278d(0x323)]))==null?void 0x0:_0x54e7a7[_0x2d278d(0x462)])===_0xe6c9f0;}function nn(_0x5829ea,_0x5111bd,_0x3b60e8,_0x93f749){const _0x157f8d=_0x5cd39e;let _0x5f14d9=_0x5829ea[_0x5111bd];if(!_0x5f14d9)return _0x5829ea;let _0x57a05e=_0x5f14d9[_0x157f8d(0x2f7)]??_0x5f14d9[_0x157f8d(0x323)][_0x157f8d(0x2f7)]??{};return{..._0x5829ea,[_0x5111bd]:{..._0x5f14d9,'transform':{..._0x57a05e,'left':(_0x57a05e['left']??0x0)+_0x3b60e8,'top':(_0x57a05e[_0x157f8d(0x399)]??0x0)+_0x93f749},'element':{..._0x5f14d9[_0x157f8d(0x323)],'transform':{..._0x5f14d9[_0x157f8d(0x323)][_0x157f8d(0x2f7)],'left':(_0x5f14d9[_0x157f8d(0x323)][_0x157f8d(0x2f7)][_0x157f8d(0x40b)]??0x0)+_0x3b60e8,'top':(_0x5f14d9['element'][_0x157f8d(0x2f7)][_0x157f8d(0x399)]??0x0)+_0x93f749}}}};}function rn(_0xed5a0){const _0x28deba=_0x5cd39e;if(!Number[_0x28deba(0x41c)](_0xed5a0[_0x28deba(0x1fa)][_0x28deba(0x40b)])||!Number['isFinite'](_0xed5a0[_0x28deba(0x1fa)][_0x28deba(0x399)])||!Number[_0x28deba(0x41c)](_0xed5a0[_0x28deba(0x35d)][_0x28deba(0x40b)])||!Number[_0x28deba(0x41c)](_0xed5a0[_0x28deba(0x35d)][_0x28deba(0x399)]))return null;let _0xa61795=_0xed5a0['liveRootBounds'][_0x28deba(0x40b)]-_0xed5a0[_0x28deba(0x35d)][_0x28deba(0x40b)],_0x2d659f=_0xed5a0[_0x28deba(0x1fa)][_0x28deba(0x399)]-_0xed5a0[_0x28deba(0x35d)][_0x28deba(0x399)],_0x465fb4=nn(_0xed5a0[_0x28deba(0x311)],_0xed5a0['scopeId'],_0xa61795,_0x2d659f),_0xa02c56=[];return Object[_0x28deba(0x255)](_0x465fb4)['forEach'](_0x2f737e=>{const _0x10ed05=_0x28deba;if(_0x2f737e[_0x10ed05(0x36f)]===_0xed5a0['rootNodeId']||_0x2f737e[_0x10ed05(0x36f)]===_0xed5a0['scopeId']||!tn(_0x2f737e,_0xed5a0[_0x10ed05(0x404)]))return;if('connectorData'in _0x2f737e[_0x10ed05(0x323)]){var _0x2a3c12;let _0x35a10d=(_0x2a3c12=_0xed5a0['elementData'][_0x2f737e[_0x10ed05(0x36f)]])==null?void 0x0:_0x2a3c12[_0x10ed05(0x323)];_0x35a10d&&_0x10ed05(0x252)in _0x35a10d&&_0xa02c56['push']({'kind':_0x10ed05(0x3ce),'elementId':_0x2f737e['elementId'],'element':_0x2c3b4a(_0x35a10d,{'x':_0xa61795,'y':_0x2d659f})});return;}let _0x3aa127=_0x3b0740(_0x465fb4,_0x2f737e[_0x10ed05(0x36f)]);_0x3aa127&&_0xa02c56[_0x10ed05(0x330)]({'kind':_0x10ed05(0x42d),'elementId':_0x2f737e['elementId'],'bounds':_0x3aa127});}),{'deltaX':_0xa61795,'deltaY':_0x2d659f,'elementData':_0x465fb4,'items':_0xa02c56};}let an=class extends _0x4a70b2{constructor(_0x33e932,_0x3ec8da,_0x214d24,_0x51015f,_0x557f35,_0x30e873){const _0x4b7cb4=_0x5cd39e;super(),this[_0x4b7cb4(0x3f7)]=_0x33e932,this[_0x4b7cb4(0x459)]=_0x3ec8da,this[_0x4b7cb4(0x287)]=_0x214d24,this[_0x4b7cb4(0x24e)]=_0x51015f,this['_uiStateService']=_0x557f35,this[_0x4b7cb4(0x437)]=_0x30e873,G(this,_0x4b7cb4(0x417),null),G(this,_0x4b7cb4(0x278),null),G(this,_0x4b7cb4(0x3ba),null),G(this,'_childDragActivated',!0x1),G(this,_0x4b7cb4(0x36a),null),G(this,'_objectPointerDisposables',null),G(this,'_attachObjectPointerScheduled',!0x1),G(this,'_activePointerDragDisposables',null),G(this,_0x4b7cb4(0x223),!0x1),this['_init']();}[_0x5cd39e(0x34d)](){const _0x21f255=_0x5cd39e;var _0x35c875,_0x14cb08,_0x27402a,_0x3e52eb,_0x2b1897;let _0x388822=this['_renderContext'][_0x21f255(0x240)][_0x21f255(0x219)]();this[_0x21f255(0x488)](_0x450a20(_0x388822[_0x21f255(0x2e3)][_0x21f255(0x383)](_0x4deb35(this[_0x21f255(0x35a)]))[_0x21f255(0x4b5)](()=>{const _0x3f6e8b=_0x21f255;this[_0x3f6e8b(0x2aa)]();}))),this[_0x21f255(0x488)](_0x450a20(((_0x35c875=_0x388822[_0x21f255(0x25f)])==null?void 0x0:_0x35c875[_0x21f255(0x383)](_0x4deb35(this['dispose$']))[_0x21f255(0x4b5)](_0x4fe001=>{const _0x45fb4f=_0x21f255;this[_0x45fb4f(0x206)](_0x4fe001==null?void 0x0:_0x4fe001[_0x45fb4f(0x243)]);}))??{'dispose':()=>{}})),this['disposeWithMe'](_0x450a20(_0x388822['changeEnd$'][_0x21f255(0x383)](_0x4deb35(this[_0x21f255(0x35a)]))[_0x21f255(0x4b5)](_0x1bb396=>{const _0x2b4c5d=_0x21f255;setTimeout(()=>this[_0x2b4c5d(0x442)](_0x1bb396==null?void 0x0:_0x1bb396[_0x2b4c5d(0x243)]),0x0);}))),this['disposeWithMe'](_0x450a20(((_0x14cb08=this['_renderContext'][_0x21f255(0x240)][_0x21f255(0x434)])==null?void 0x0:_0x14cb08[_0x21f255(0x3ea)]({'priority':0x3,'next':([_0x50af00])=>this[_0x21f255(0x282)](_0x50af00)}))??{'dispose':()=>{}})),this[_0x21f255(0x488)](_0x450a20(((_0x27402a=this['_renderContext']['scene'][_0x21f255(0x28c)])==null?void 0x0:_0x27402a['subscribeEvent']({'priority':0x3,'next':([_0x3155ab,_0x51fb5f])=>this[_0x21f255(0x44a)](_0x3155ab,_0x51fb5f)}))??{'dispose':()=>{}})),this[_0x21f255(0x488)](_0x450a20(((_0x3e52eb=this[_0x21f255(0x3f7)][_0x21f255(0x240)][_0x21f255(0x376)])==null?void 0x0:_0x3e52eb[_0x21f255(0x3ea)]({'priority':0x3,'next':([_0x1a4ad1,_0x322d5d])=>this[_0x21f255(0x362)](_0x1a4ad1,_0x322d5d)}))??{'dispose':()=>{}})),this[_0x21f255(0x488)](_0x450a20(((_0x2b1897=this[_0x21f255(0x3f7)][_0x21f255(0x240)][_0x21f255(0x21b)])==null?void 0x0:_0x2b1897[_0x21f255(0x3ea)]({'priority':0x3,'next':([,_0x421083])=>this[_0x21f255(0x438)](_0x421083)}))??{'dispose':()=>{}})),this['disposeWithMe'](_0x450a20(()=>{const _0x5a6848=_0x21f255;var _0x20e2aa;return(_0x20e2aa=this[_0x5a6848(0x41d)])==null?void 0x0:_0x20e2aa[_0x5a6848(0x461)]();})),this[_0x21f255(0x488)](_0x450a20(()=>this[_0x21f255(0x2d6)]())),this[_0x21f255(0x3bc)](),this[_0x21f255(0x46c)](),this['disposeWithMe'](_0x450a20(()=>this[_0x21f255(0x4bd)]()));}['_subscribeElementDataChanges'](){const _0x1f1743=_0x5cd39e;let _0x340b4d=this['_boardElementService'],_0x442fc7=_0x5ec77c=>{const _0xcc26d0=_0x49d4;let _0x1e24e8=_0x5ec77c==null?void 0x0:_0x5ec77c[_0xcc26d0(0x4b5)](()=>this[_0xcc26d0(0x46c)]());_0x1e24e8&&this[_0xcc26d0(0x488)](_0x450a20(()=>{const _0x36e7b3=_0xcc26d0;var _0x10d00f,_0x1e0ac2;(_0x10d00f=_0x1e24e8[_0x36e7b3(0x461)])==null||_0x10d00f['call'](_0x1e24e8),(_0x1e0ac2=_0x1e24e8[_0x36e7b3(0x478)])==null||_0x1e0ac2[_0x36e7b3(0x445)](_0x1e24e8);}));};_0x442fc7(_0x340b4d[_0x1f1743(0x354)]),_0x442fc7(_0x340b4d['elementUpdate$']),_0x442fc7(_0x340b4d[_0x1f1743(0x430)]),this[_0x1f1743(0x287)][_0x1f1743(0x340)]&&this[_0x1f1743(0x488)](_0x450a20(this[_0x1f1743(0x287)][_0x1f1743(0x340)][_0x1f1743(0x383)](_0x4deb35(this[_0x1f1743(0x35a)]))[_0x1f1743(0x4b5)](()=>{const _0x3636d9=_0x1f1743;this[_0x3636d9(0x46c)]();})));}[_0x5cd39e(0x46c)](){const _0x5e1f6c=_0x5cd39e;this[_0x5e1f6c(0x2f0)]||(this[_0x5e1f6c(0x2f0)]=!0x0,Promise[_0x5e1f6c(0x412)]()[_0x5e1f6c(0x431)](()=>this['_attachObjectPointerListeners']()));}['_attachObjectPointerListeners'](){const _0x22df40=_0x5cd39e;var _0x10cff3;this['_attachObjectPointerScheduled']=!0x1;let _0x3fbe6f=this[_0x22df40(0x29a)](),_0x1471d9=this[_0x22df40(0x3f7)]['scene'];if(!_0x3fbe6f||typeof _0x1471d9[_0x22df40(0x2e4)]!=_0x22df40(0x498))return;let _0x20cb6e=this['_boardElementService'][_0x22df40(0x4a4)](_0x3fbe6f[_0x22df40(0x36e)],_0x3fbe6f[_0x22df40(0x35b)]),_0x58f872=new _0x1a0936();(_0x10cff3=this[_0x22df40(0x41d)])==null||_0x10cff3[_0x22df40(0x461)](),this[_0x22df40(0x41d)]=_0x58f872,Object[_0x22df40(0x255)](_0x20cb6e)['forEach'](_0x272ec7=>{const _0x3cd931=_0x22df40;var _0x53990f,_0x2860fe;let _0x12c138=_0x554e66(_0x272ec7[_0x3cd931(0x323)]);if(!(_0x12c138!=null&&_0x12c138['parentNodeId']))return;let _0x3bc733=_0x55cbfb(_0x3fbe6f[_0x3cd931(0x36e)],_0x272ec7[_0x3cd931(0x36f)]),_0x53345e=((_0x53990f=_0x1471d9[_0x3cd931(0x230)])==null?void 0x0:_0x53990f[_0x3cd931(0x445)](_0x1471d9,_0x3bc733))??((_0x2860fe=_0x1471d9[_0x3cd931(0x2e4)])==null?void 0x0:_0x2860fe[_0x3cd931(0x445)](_0x1471d9,_0x3bc733));_0x53345e!=null&&_0x53345e['onPointerDown$']&&_0x58f872[_0x3cd931(0x370)](_0x53345e[_0x3cd931(0x434)]['subscribeEvent']({'priority':-0xa,'next':([_0x376878,_0x43feee])=>this[_0x3cd931(0x282)](_0x376878,{'unitId':_0x3fbe6f[_0x3cd931(0x36e)],'subUnitId':_0x3fbe6f[_0x3cd931(0x35b)],'nodeId':_0x272ec7[_0x3cd931(0x36f)]},_0x43feee)}));});}['_resolveCurrentBoardContext'](){const _0x18b565=_0x5cd39e;let _0x5e6b48=this['_elementStateService'][_0x18b565(0x2c9)]()[_0x18b565(0x48c)];if(_0x5e6b48)return _0x5e6b48;let _0x37da2b=this[_0x18b565(0x3f7)][_0x18b565(0x36e)],_0x23bff4=_0x37da2b?this[_0x18b565(0x437)]['getUnit'](_0x37da2b,_0x4aab0d[_0x18b565(0x27a)]):null,_0x2ea179=_0x23bff4==null?void 0x0:_0x23bff4[_0x18b565(0x270)]();return!_0x23bff4||!_0x2ea179?null:{'unitId':_0x23bff4[_0x18b565(0x40e)](),'subUnitId':_0x2ea179};}[_0x5cd39e(0x2aa)](){const _0x3deec8=_0x5cd39e;let _0x223c68=this['_elementStateService'][_0x3deec8(0x2c9)]();this[_0x3deec8(0x39d)]=!0x1,this['_childDragSelectionHidden']=!0x1,this[_0x3deec8(0x36a)]=null;let _0x2ad365=_0x223c68[_0x3deec8(0x48c)],_0x2d4a71=_0x223c68[_0x3deec8(0x2cf)]??_0x223c68[_0x3deec8(0x471)][0x0];if(!_0x2ad365||!_0x2d4a71||_0x223c68[_0x3deec8(0x471)][_0x3deec8(0x3a9)]!==0x1){this[_0x3deec8(0x417)]=null,this[_0x3deec8(0x4bd)]();return;}let _0x133101=this['_boardElementService']['getElementData'](_0x2ad365['unitId'],_0x2ad365[_0x3deec8(0x35b)]),_0x5f14dd=_0x133101[_0x2d4a71],_0xdee469=_0x554e66(_0x5f14dd==null?void 0x0:_0x5f14dd[_0x3deec8(0x323)]);if(!_0x5f14dd||!_0xdee469){this[_0x3deec8(0x417)]=null,this['_removeDragPreviewObject']();return;}let _0x14ef33=_0x3b0740(_0x133101,_0x2d4a71),_0x18fc02=_0x5f14dd['element'][_0x3deec8(0x2f7)];this[_0x3deec8(0x417)]={'kind':_0xdee469[_0x3deec8(0x32f)]===null?_0x3deec8(0x397):'child','unitId':_0x2ad365['unitId'],'subUnitId':_0x2ad365[_0x3deec8(0x35b)],'nodeId':_0x2d4a71,'scopeId':_0xdee469['structureScopeId'],'left':(_0x14ef33==null?void 0x0:_0x14ef33[_0x3deec8(0x40b)])??_0x18fc02[_0x3deec8(0x40b)]??0x0,'top':(_0x14ef33==null?void 0x0:_0x14ef33[_0x3deec8(0x399)])??_0x18fc02[_0x3deec8(0x399)]??0x0,'width':(_0x14ef33==null?void 0x0:_0x14ef33[_0x3deec8(0x433)])??_0x18fc02[_0x3deec8(0x433)]??0x0,'height':(_0x14ef33==null?void 0x0:_0x14ef33[_0x3deec8(0x23e)])??_0x18fc02['height']??0x0,'elementData':_0x133101};}[_0x5cd39e(0x282)](_0x19b3f7,_0x384b64,_0x5afd86){const _0x5d503d=_0x5cd39e;var _0x26876f,_0x49fd34;if((_0x19b3f7[_0x5d503d(0x337)]??0x0)!==0x0)return;let _0x442682=this[_0x5d503d(0x287)]['getSnapshot']();if(_0x442682[_0x5d503d(0x21d)]){this[_0x5d503d(0x278)]=null;return;}let _0x458f2e=_0x384b64?{'unitId':_0x384b64[_0x5d503d(0x36e)],'subUnitId':_0x384b64[_0x5d503d(0x35b)]}:_0x442682[_0x5d503d(0x48c)]??this[_0x5d503d(0x29a)](),_0x45ac05=(_0x384b64==null?void 0x0:_0x384b64[_0x5d503d(0x31b)])??(_0x442682[_0x5d503d(0x471)]['length']===0x1?_0x442682['focusedId']??_0x442682['selectedIds'][0x0]:void 0x0);if(!_0x458f2e){this[_0x5d503d(0x278)]=null;return;}let _0x4476c7=this[_0x5d503d(0x459)][_0x5d503d(0x4a4)](_0x458f2e[_0x5d503d(0x36e)],_0x458f2e[_0x5d503d(0x35b)]),_0x31edca=this[_0x5d503d(0x266)](_0x19b3f7);if(!_0x384b64){let _0x178a94=_0x45ac05?_0x4476c7[_0x45ac05]:null,_0x119045=_0x554e66(_0x178a94==null?void 0x0:_0x178a94[_0x5d503d(0x323)]),_0x4bcd46=_0x45ac05?_0x3b0740(_0x4476c7,_0x45ac05)??(_0x178a94==null?void 0x0:_0x178a94[_0x5d503d(0x323)][_0x5d503d(0x2f7)]):null;(!(_0x119045!=null&&_0x119045[_0x5d503d(0x32f)])||!_0x4bcd46||!this[_0x5d503d(0x2f9)](_0x31edca,{'left':_0x4bcd46[_0x5d503d(0x40b)]??0x0,'top':_0x4bcd46[_0x5d503d(0x399)]??0x0,'width':_0x4bcd46['width']??0x0,'height':_0x4bcd46[_0x5d503d(0x23e)]??0x0}))&&(_0x45ac05=this[_0x5d503d(0x246)](_0x4476c7,_0x31edca));}if(!_0x45ac05){this[_0x5d503d(0x278)]=null;return;}let _0x2e3a85=_0x4476c7[_0x45ac05],_0x1bb919=_0x554e66(_0x2e3a85==null?void 0x0:_0x2e3a85['element']);if(!_0x2e3a85||!(_0x1bb919!=null&&_0x1bb919[_0x5d503d(0x32f)])){this[_0x5d503d(0x278)]=null;return;}(_0x26876f=(_0x49fd34=this[_0x5d503d(0x287)])[_0x5d503d(0x239)])==null||_0x26876f[_0x5d503d(0x445)](_0x49fd34,_0x458f2e,[_0x45ac05],_0x45ac05),_0x5afd86==null||_0x5afd86[_0x5d503d(0x233)]();let _0x429457=_0x3b0740(_0x4476c7,_0x45ac05),_0x1c5ddb=_0x2e3a85['element'][_0x5d503d(0x2f7)],_0x52cbba={'left':(_0x429457==null?void 0x0:_0x429457[_0x5d503d(0x40b)])??_0x1c5ddb[_0x5d503d(0x40b)]??0x0,'top':(_0x429457==null?void 0x0:_0x429457[_0x5d503d(0x399)])??_0x1c5ddb[_0x5d503d(0x399)]??0x0,'width':(_0x429457==null?void 0x0:_0x429457['width'])??_0x1c5ddb['width']??0x0,'height':(_0x429457==null?void 0x0:_0x429457['height'])??_0x1c5ddb[_0x5d503d(0x23e)]??0x0};if(!_0x384b64&&!this[_0x5d503d(0x2f9)](_0x31edca,_0x52cbba)){this[_0x5d503d(0x278)]=null;return;}let _0x2d605c=this[_0x5d503d(0x31c)](_0x19b3f7);this[_0x5d503d(0x39d)]=!0x1,this[_0x5d503d(0x223)]=!0x1,this[_0x5d503d(0x36a)]=null,this[_0x5d503d(0x278)]={'kind':'child','unitId':_0x458f2e['unitId'],'subUnitId':_0x458f2e['subUnitId'],'nodeId':_0x45ac05,'scopeId':_0x1bb919['structureScopeId'],..._0x52cbba,'pointerStartX':_0x2d605c['x'],'pointerStartY':_0x2d605c['y'],'elementData':_0x4476c7},this['_attachActivePointerDragListeners'](),this['_consumePointerEvent'](_0x19b3f7,_0x5afd86);}[_0x5cd39e(0x44a)](_0x4d240c,_0xd7d5db){const _0x365303=_0x5cd39e;var _0x469ad5,_0x10ce71;let _0x768ac6=this[_0x365303(0x278)];if(!_0x768ac6||_0x4d240c[_0x365303(0x42f)]!==void 0x0&&_0x4d240c[_0x365303(0x42f)]!==0x1)return;let _0x3eab01=this[_0x365303(0x22e)](_0x4d240c,_0x768ac6);if(!this[_0x365303(0x429)](_0x768ac6,_0x3eab01))return;this[_0x365303(0x39d)]||this[_0x365303(0x48d)](),this[_0x365303(0x39d)]=!0x0;let _0xecaaf8=this['_createTopologyBoundsByElementId'](_0x768ac6[_0x365303(0x311)],_0x768ac6['nodeId'],_0x3eab01),_0x1f3c32=en(_0x768ac6['elementData'],_0x768ac6[_0x365303(0x31b)],{'boundsByElementId':_0xecaaf8,'detachWhenNoSnap':!0x0});this[_0x365303(0x36a)]=_0x1f3c32,this['_syncChildDragPreviewObject'](_0x3eab01,_0x1f3c32,_0xecaaf8),this[_0x365303(0x3ef)](_0x4d240c,_0xd7d5db),this[_0x365303(0x3f7)][_0x365303(0x240)][_0x365303(0x390)](!0x0),(_0x469ad5=(_0x10ce71=this['_renderContext']['scene'])['requestRender'])==null||_0x469ad5[_0x365303(0x445)](_0x10ce71);}[_0x5cd39e(0x362)](_0xb5b76d,_0x25a9d0){const _0x1cd5a1=_0x5cd39e;let _0x508d71=this[_0x1cd5a1(0x278)];if(!_0x508d71)return;if(this[_0x1cd5a1(0x278)]=null,this[_0x1cd5a1(0x2d6)](),this[_0x1cd5a1(0x4bd)](),!this[_0x1cd5a1(0x39d)]){this[_0x1cd5a1(0x36a)]=null;return;}let _0x13f5fb=this[_0x1cd5a1(0x459)][_0x1cd5a1(0x4a4)](_0x508d71['unitId'],_0x508d71[_0x1cd5a1(0x35b)]),_0x5d2ce7=this[_0x1cd5a1(0x22e)](_0xb5b76d,_0x508d71),_0x4e6d85=this[_0x1cd5a1(0x422)](_0x13f5fb,_0x508d71[_0x1cd5a1(0x31b)],_0x5d2ce7),_0x189fde=en(_0x13f5fb,_0x508d71[_0x1cd5a1(0x31b)],{'boundsByElementId':_0x4e6d85,'detachWhenNoSnap':!0x0});this[_0x1cd5a1(0x36a)]=null,this['_executeChildDragAction'](_0x508d71[_0x1cd5a1(0x36e)],_0x508d71[_0x1cd5a1(0x35b)],_0x508d71[_0x1cd5a1(0x31b)],_0x13f5fb,_0x189fde),this[_0x1cd5a1(0x223)]=!0x1,this[_0x1cd5a1(0x3ef)](_0xb5b76d,_0x25a9d0);}[_0x5cd39e(0x438)](_0x1e645a){const _0x513034=_0x5cd39e;let _0x49610d=this[_0x513034(0x278)];if(_0x49610d){if(this['_pointerDragStart']=null,this[_0x513034(0x2d6)](),this[_0x513034(0x39d)]=!0x1,this[_0x513034(0x36a)]=null,this[_0x513034(0x4bd)](),this[_0x513034(0x223)]){var _0x36b811,_0xe0aaf2;(_0x36b811=(_0xe0aaf2=this[_0x513034(0x287)])['selectElements'])==null||_0x36b811[_0x513034(0x445)](_0xe0aaf2,{'unitId':_0x49610d['unitId'],'subUnitId':_0x49610d['subUnitId']},[_0x49610d[_0x513034(0x31b)]],_0x49610d[_0x513034(0x31b)]),this[_0x513034(0x223)]=!0x1;}_0x1e645a==null||_0x1e645a['stopPropagation']();}}[_0x5cd39e(0x275)](){const _0x32348b=_0x5cd39e;this['_disposeActivePointerDragListeners']();let _0x333b9c=typeof window>'u'?null:window;if(!(_0x333b9c!=null&&_0x333b9c[_0x32348b(0x490)]))return;let _0x5b1aaf=new _0x1a0936(),_0x2da572=_0x4d15ac=>this[_0x32348b(0x44a)](_0x4d15ac),_0x2f7870=_0x47ba9a=>this[_0x32348b(0x362)](_0x47ba9a),_0x4c6fc6=()=>this[_0x32348b(0x438)]();_0x333b9c[_0x32348b(0x490)]('pointermove',_0x2da572,{'capture':!0x0}),_0x333b9c[_0x32348b(0x490)]('pointerup',_0x2f7870,{'capture':!0x0}),_0x333b9c['addEventListener'](_0x32348b(0x2d4),_0x4c6fc6,{'capture':!0x0}),_0x5b1aaf['add'](_0x450a20(()=>{const _0x49ad9c=_0x32348b;_0x333b9c[_0x49ad9c(0x458)](_0x49ad9c(0x428),_0x2da572,{'capture':!0x0}),_0x333b9c[_0x49ad9c(0x458)](_0x49ad9c(0x3a7),_0x2f7870,{'capture':!0x0}),_0x333b9c['removeEventListener'](_0x49ad9c(0x2d4),_0x4c6fc6,{'capture':!0x0});})),this[_0x32348b(0x41b)]=_0x5b1aaf;}[_0x5cd39e(0x246)](_0xfa434a,_0x386779){const _0x2c7c1e=_0x5cd39e;let _0x655c8f=Object[_0x2c7c1e(0x255)](_0xfa434a);for(let _0x5a22c2=_0x655c8f[_0x2c7c1e(0x3a9)]-0x1;_0x5a22c2>=0x0;--_0x5a22c2){let _0x1fdf3d=_0x655c8f[_0x5a22c2],_0x56b043=_0x554e66(_0x1fdf3d[_0x2c7c1e(0x323)]);if(!(_0x56b043!=null&&_0x56b043[_0x2c7c1e(0x32f)]))continue;let _0x59c50a=_0x3b0740(_0xfa434a,_0x1fdf3d[_0x2c7c1e(0x36f)])??_0x1fdf3d['element']['transform'];if(this[_0x2c7c1e(0x2f9)](_0x386779,{'left':_0x59c50a['left']??0x0,'top':_0x59c50a[_0x2c7c1e(0x399)]??0x0,'width':_0x59c50a[_0x2c7c1e(0x433)]??0x0,'height':_0x59c50a[_0x2c7c1e(0x23e)]??0x0}))return _0x1fdf3d[_0x2c7c1e(0x36f)];}}[_0x5cd39e(0x2d6)](){const _0xb40f9b=_0x5cd39e;var _0x5b4ce1;(_0x5b4ce1=this['_activePointerDragDisposables'])==null||_0x5b4ce1[_0xb40f9b(0x461)](),this[_0xb40f9b(0x41b)]=null;}[_0x5cd39e(0x206)](_0x5d61e2){const _0x334490=_0x5cd39e;let _0x213ace=this[_0x334490(0x417)];if(_0x213ace){if(_0x213ace[_0x334490(0x379)]===_0x334490(0x397)){this[_0x334490(0x27d)](_0x5d61e2),this[_0x334490(0x2b4)](_0x5d61e2);return;}this[_0x334490(0x427)](_0x5d61e2);}}[_0x5cd39e(0x27d)](_0x5da82e){const _0x5c9215=_0x5cd39e;let _0x4a549b=this[_0x5c9215(0x417)];if(!_0x4a549b||_0x4a549b[_0x5c9215(0x379)]!=='root')return;let _0x320fcd=_0x5da82e==null?void 0x0:_0x5da82e[_0x5c9215(0x37e)](_0x55cbfb(_0x4a549b[_0x5c9215(0x36e)],_0x4a549b[_0x5c9215(0x31b)]));if(!_0x320fcd||!Number['isFinite'](_0x320fcd['left'])||!Number[_0x5c9215(0x41c)](_0x320fcd[_0x5c9215(0x399)]))return;let _0xed3a9f=rn({'elementData':_0x4a549b['elementData'],'rootNodeId':_0x4a549b['nodeId'],'scopeId':_0x4a549b[_0x5c9215(0x404)],'rootStartBounds':{'left':_0x4a549b[_0x5c9215(0x40b)],'top':_0x4a549b['top']},'liveRootBounds':{'left':_0x320fcd[_0x5c9215(0x40b)],'top':_0x320fcd[_0x5c9215(0x399)]}});if(!_0xed3a9f)return;let _0x20950a=this[_0x5c9215(0x3f7)][_0x5c9215(0x240)],_0x4eea9c=_0x20950a,_0x28a9d6=!0x1;_0xed3a9f[_0x5c9215(0x258)][_0x5c9215(0x2d0)](_0x33aaf0=>{const _0x50a384=_0x5c9215;var _0x37a6b4;let _0x303efc=_0x55cbfb(_0x4a549b[_0x50a384(0x36e)],_0x33aaf0[_0x50a384(0x36f)]),_0x4de256=((_0x37a6b4=_0x4eea9c[_0x50a384(0x230)])==null?void 0x0:_0x37a6b4[_0x50a384(0x445)](_0x4eea9c,_0x303efc))??_0x20950a[_0x50a384(0x2e4)](_0x303efc);if(_0x4de256){if(_0x33aaf0['kind']===_0x50a384(0x3ce)&&typeof _0x4de256[_0x50a384(0x4a1)]==_0x50a384(0x498)){_0x4de256[_0x50a384(0x4a1)](_0x33aaf0['element'],_0xed3a9f['elementData']),_0x28a9d6=!0x0;return;}_0x33aaf0[_0x50a384(0x379)]===_0x50a384(0x42d)&&(_0x4de256[_0x50a384(0x229)](_0x33aaf0[_0x50a384(0x42d)]),typeof _0x4de256[_0x50a384(0x3e3)]=='function'?_0x4de256[_0x50a384(0x3e3)](!0x0):_0x4de256[_0x50a384(0x390)](!0x0),_0x28a9d6=!0x0);}}),_0x28a9d6&&_0x20950a[_0x5c9215(0x390)](!0x0);}[_0x5cd39e(0x2b4)](_0xc6a2ca){const _0x2e05dc=_0x5cd39e;var _0x4d9793,_0x4c5a05;let _0x23d4f4=this[_0x2e05dc(0x417)];if(!_0x23d4f4||_0x23d4f4['kind']!==_0x2e05dc(0x397))return;let _0x2f46fc=_0xc6a2ca==null?void 0x0:_0xc6a2ca[_0x2e05dc(0x37e)](_0x55cbfb(_0x23d4f4[_0x2e05dc(0x36e)],_0x23d4f4[_0x2e05dc(0x31b)]));if(!_0x2f46fc||!Number[_0x2e05dc(0x41c)](_0x2f46fc['left'])||!Number[_0x2e05dc(0x41c)](_0x2f46fc[_0x2e05dc(0x399)])){this[_0x2e05dc(0x4bd)]();return;}let _0x5a08fb=this[_0x2e05dc(0x448)](_0x2f46fc,_0x23d4f4),_0x2c5d99=this['_createTopologyBoundsByElementId'](_0x23d4f4[_0x2e05dc(0x311)],_0x23d4f4[_0x2e05dc(0x31b)],_0x5a08fb),_0xd84aec=en(_0x23d4f4[_0x2e05dc(0x311)],_0x23d4f4[_0x2e05dc(0x31b)],{'boundsByElementId':_0x2c5d99,'allowRootReparent':!0x0});if(_0xd84aec[_0x2e05dc(0x379)]!=='reparent'){this['_removeDragPreviewObject']();return;}let _0x17bc81=this['_ensureDragPreviewObject']();_0x17bc81&&(_0x17bc81[_0x2e05dc(0x32a)]({'ghostBounds':_0x5a08fb,'sourceBounds':null,'parentBounds':_0x2c5d99[_0xd84aec[_0x2e05dc(0x1fb)]],'side':_0xd84aec[_0x2e05dc(0x261)],'textStyle':void 0x0,'renderGhostNode':!0x1}),this[_0x2e05dc(0x3f7)][_0x2e05dc(0x240)][_0x2e05dc(0x390)](!0x0),(_0x4d9793=(_0x4c5a05=this[_0x2e05dc(0x3f7)][_0x2e05dc(0x240)])['requestRender'])==null||_0x4d9793[_0x2e05dc(0x445)](_0x4c5a05));}['_syncChildDragPreview'](_0x473e2d){const _0x510fd3=_0x5cd39e;var _0x3f9da5,_0x17c9eb;let _0x148521=this[_0x510fd3(0x417)];if(!_0x148521||_0x148521['kind']!==_0x510fd3(0x222))return;let _0x419116=_0x473e2d==null?void 0x0:_0x473e2d[_0x510fd3(0x37e)](_0x55cbfb(_0x148521[_0x510fd3(0x36e)],_0x148521[_0x510fd3(0x31b)]));if(!_0x419116){this[_0x510fd3(0x4bd)]();return;}let _0x37b980=this['_getLiveObjectBounds'](_0x419116,_0x148521);if(!this['_isChildDragPastActivationThreshold'](_0x148521,_0x37b980)){this[_0x510fd3(0x36a)]=null,this[_0x510fd3(0x4bd)](),this['_restoreObjectToDragStart'](_0x419116,_0x148521),this[_0x510fd3(0x3f7)][_0x510fd3(0x240)][_0x510fd3(0x390)](!0x0);return;}this[_0x510fd3(0x39d)]||this[_0x510fd3(0x48d)](),this[_0x510fd3(0x39d)]=!0x0;let _0x1d19d0=this[_0x510fd3(0x422)](_0x148521[_0x510fd3(0x311)],_0x148521[_0x510fd3(0x31b)],_0x37b980),_0xc0de53=en(_0x148521[_0x510fd3(0x311)],_0x148521[_0x510fd3(0x31b)],{'boundsByElementId':_0x1d19d0,'detachWhenNoSnap':!0x0});this[_0x510fd3(0x36a)]=_0xc0de53,this[_0x510fd3(0x32e)](_0x37b980,_0xc0de53,_0x1d19d0),this[_0x510fd3(0x2d7)](_0x419116,_0x148521),this['_renderContext'][_0x510fd3(0x240)][_0x510fd3(0x390)](!0x0),(_0x3f9da5=(_0x17c9eb=this[_0x510fd3(0x3f7)]['scene'])[_0x510fd3(0x2bf)])==null||_0x3f9da5['call'](_0x17c9eb);}[_0x5cd39e(0x442)](_0x3e0d35){const _0x5d654a=_0x5cd39e;let _0x241342=this[_0x5d654a(0x287)]['getSnapshot'](),_0x21ebf8=_0x241342['context'],_0x444c8e=_0x241342[_0x5d654a(0x2cf)]??_0x241342['selectedIds'][0x0];if(!_0x21ebf8||!_0x444c8e||_0x241342[_0x5d654a(0x471)]['length']!==0x1){this[_0x5d654a(0x4bd)](),this['_dragStart']=null;return;}this[_0x5d654a(0x4bd)]();let _0x2f6f2f=this[_0x5d654a(0x459)][_0x5d654a(0x4a4)](_0x21ebf8['unitId'],_0x21ebf8[_0x5d654a(0x35b)]);if(this[_0x5d654a(0x289)](_0x21ebf8['unitId'],_0x21ebf8['subUnitId'],_0x444c8e,_0x2f6f2f,_0x3e0d35))return;let _0x4314cb=this['_resolveChildDragTopologyAction'](_0x21ebf8[_0x5d654a(0x36e)],_0x21ebf8['subUnitId'],_0x444c8e,_0x2f6f2f,_0x3e0d35);this['_executeChildDragAction'](_0x21ebf8[_0x5d654a(0x36e)],_0x21ebf8[_0x5d654a(0x35b)],_0x444c8e,_0x2f6f2f,_0x4314cb);}[_0x5cd39e(0x279)](_0x266bcb,_0x36f325,_0x583c25,_0x512c80,_0x3a0d19){const _0xf2171c=_0x5cd39e;if(_0x3a0d19[_0xf2171c(0x379)]==='reparent'){var _0x3db93f,_0x3296a4;let _0x1a804e=_0x554e66((_0x3db93f=_0x512c80[_0x583c25])==null?void 0x0:_0x3db93f['element']),_0x2d3f77=_0x554e66((_0x3296a4=_0x512c80[_0x3a0d19[_0xf2171c(0x1fb)]])==null?void 0x0:_0x3296a4['element']);this[_0xf2171c(0x3ae)](_0x2bd3f3['id'],{'unitId':_0x266bcb,'subUnitId':_0x36f325,'nodeId':_0x583c25,'newParentNodeId':_0x3a0d19[_0xf2171c(0x1fb)],'side':_0x3a0d19[_0xf2171c(0x261)],..._0x3a0d19['referenceNodeId']?{'referenceNodeId':_0x3a0d19[_0xf2171c(0x294)]}:null,..._0x3a0d19[_0xf2171c(0x33c)]?{'placement':_0x3a0d19[_0xf2171c(0x33c)]}:null},[_0x1a804e==null?void 0x0:_0x1a804e['structureScopeId'],_0x2d3f77==null?void 0x0:_0x2d3f77['structureScopeId']],_0x583c25);return;}if(_0x3a0d19[_0xf2171c(0x379)]===_0xf2171c(0x336)){var _0x3eb885;let _0x4bb196=_0x554e66((_0x3eb885=_0x512c80[_0x583c25])==null?void 0x0:_0x3eb885['element']);this[_0xf2171c(0x3ae)](_0x40c6c6['id'],{'unitId':_0x266bcb,'subUnitId':_0x36f325,'nodeId':_0x583c25,...Number['isFinite'](_0x3a0d19[_0xf2171c(0x40b)])?{'left':_0x3a0d19[_0xf2171c(0x40b)]}:null,...Number['isFinite'](_0x3a0d19['top'])?{'top':_0x3a0d19[_0xf2171c(0x399)]}:null},[_0x4bb196==null?void 0x0:_0x4bb196[_0xf2171c(0x462)]],_0x583c25);}}[_0x5cd39e(0x289)](_0x2d3aab,_0x1bca7a,_0x46e37c,_0x27183b,_0x4d5d19){const _0x198d8e=_0x5cd39e;let _0x2e9f6c=this[_0x198d8e(0x417)];if((_0x2e9f6c==null?void 0x0:_0x2e9f6c[_0x198d8e(0x379)])==='root'&&(this[_0x198d8e(0x417)]=null),!_0x2e9f6c||_0x2e9f6c[_0x198d8e(0x36e)]!==_0x2d3aab||_0x2e9f6c[_0x198d8e(0x35b)]!==_0x1bca7a||_0x2e9f6c[_0x198d8e(0x31b)]!==_0x46e37c)return!0x1;let _0x43c356=_0x27183b[_0x46e37c],_0x2b4303=_0x554e66(_0x43c356==null?void 0x0:_0x43c356[_0x198d8e(0x323)]);if(!_0x43c356||!_0x2b4303||_0x2b4303[_0x198d8e(0x32f)]!==null)return!0x1;let _0x4080d2=_0x4d5d19==null?void 0x0:_0x4d5d19[_0x198d8e(0x37e)](_0x55cbfb(_0x2d3aab,_0x46e37c)),_0x1e6bdd=_0x3b0740(_0x27183b,_0x46e37c),_0x4f7df6=Number['isFinite'](_0x4080d2==null?void 0x0:_0x4080d2['left'])?_0x4080d2['left']:(_0x1e6bdd==null?void 0x0:_0x1e6bdd[_0x198d8e(0x40b)])??_0x43c356[_0x198d8e(0x323)][_0x198d8e(0x2f7)][_0x198d8e(0x40b)]??0x0,_0x11d908=Number[_0x198d8e(0x41c)](_0x4080d2==null?void 0x0:_0x4080d2['top'])?_0x4080d2[_0x198d8e(0x399)]:(_0x1e6bdd==null?void 0x0:_0x1e6bdd[_0x198d8e(0x399)])??_0x43c356[_0x198d8e(0x323)]['transform'][_0x198d8e(0x399)]??0x0,_0x38eb4c=_0x4f7df6-_0x2e9f6c[_0x198d8e(0x40b)],_0xdb29d=_0x11d908-_0x2e9f6c[_0x198d8e(0x399)];if(_0x38eb4c===0x0&&_0xdb29d===0x0)return!0x0;let _0x3584c4={'left':_0x4f7df6,'top':_0x11d908,'width':Number[_0x198d8e(0x41c)](_0x4080d2==null?void 0x0:_0x4080d2[_0x198d8e(0x433)])?_0x4080d2[_0x198d8e(0x433)]:_0x2e9f6c['width'],'height':Number['isFinite'](_0x4080d2==null?void 0x0:_0x4080d2[_0x198d8e(0x23e)])?_0x4080d2['height']:_0x2e9f6c[_0x198d8e(0x23e)]},_0x2ed64b=en(_0x27183b,_0x46e37c,{'boundsByElementId':this[_0x198d8e(0x422)](_0x27183b,_0x46e37c,_0x3584c4),'allowRootReparent':!0x0});if(_0x2ed64b[_0x198d8e(0x379)]===_0x198d8e(0x2ac))return this['_executeChildDragAction'](_0x2d3aab,_0x1bca7a,_0x46e37c,_0x27183b,_0x2ed64b),!0x0;let _0x244f1c=!!_0x1e6bdd&&Math[_0x198d8e(0x288)](_0x1e6bdd['left']-_0x4f7df6)<0.001&&Math[_0x198d8e(0x288)](_0x1e6bdd[_0x198d8e(0x399)]-_0x11d908)<0.001;return this[_0x198d8e(0x24e)][_0x198d8e(0x389)](_0x5b950f['id'],{'unitId':_0x2d3aab,'subUnitId':_0x1bca7a,'scopeId':_0x2e9f6c[_0x198d8e(0x404)],'deltaX':_0x38eb4c,'deltaY':_0xdb29d,..._0x244f1c?{'excludeElementIds':[_0x46e37c],'preserveExcludedWorldTransforms':!0x0}:null}),!0x0;}[_0x5cd39e(0x467)](_0x5a6bc3,_0x5f2aa1,_0x16cda1,_0x22f0c9,_0x15b184){const _0x427025=_0x5cd39e;let _0x51c83b=this['_dragStart'];if(!_0x51c83b||_0x51c83b['kind']!==_0x427025(0x222)||_0x51c83b[_0x427025(0x36e)]!==_0x5a6bc3||_0x51c83b[_0x427025(0x35b)]!==_0x5f2aa1||_0x51c83b[_0x427025(0x31b)]!==_0x16cda1)return{'kind':_0x427025(0x47e)};this[_0x427025(0x417)]=null;let _0x2a9cab=_0x15b184==null?void 0x0:_0x15b184[_0x427025(0x37e)](_0x55cbfb(_0x5a6bc3,_0x16cda1));if(!this[_0x427025(0x39d)])return _0x2a9cab&&this['_restoreObjectToDragStart'](_0x2a9cab,_0x51c83b),this[_0x427025(0x36a)]=null,{'kind':_0x427025(0x47e)};if(!_0x2a9cab){let _0xdcf23f=this[_0x427025(0x36a)]??{'kind':_0x427025(0x47e)};return this[_0x427025(0x36a)]=null,_0xdcf23f;}let _0x2993a4=this[_0x427025(0x448)](_0x2a9cab,_0x51c83b);if(this[_0x427025(0x2d7)](_0x2a9cab,_0x51c83b),!this[_0x427025(0x429)](_0x51c83b,_0x2993a4))return this[_0x427025(0x36a)]=null,{'kind':_0x427025(0x47e)};let _0x3478be=en(_0x22f0c9,_0x16cda1,{'boundsByElementId':this['_createTopologyBoundsByElementId'](_0x22f0c9,_0x16cda1,_0x2993a4),'detachWhenNoSnap':!0x0});return this[_0x427025(0x36a)]=null,_0x3478be;}[_0x5cd39e(0x429)](_0x2af8f2,_0x5a798d){const _0x13272d=_0x5cd39e;let _0x46099c=(_0x5a798d[_0x13272d(0x40b)]??_0x2af8f2['left'])-_0x2af8f2[_0x13272d(0x40b)],_0x5ab01e=(_0x5a798d[_0x13272d(0x399)]??_0x2af8f2[_0x13272d(0x399)])-_0x2af8f2[_0x13272d(0x399)];return Math[_0x13272d(0x355)](_0x46099c,_0x5ab01e)>=0x12;}[_0x5cd39e(0x22e)](_0x166b97,_0x37169a){const _0x48126a=_0x5cd39e;let _0x40ec02=this[_0x48126a(0x31c)](_0x166b97),_0xc9eaeb=this[_0x48126a(0x224)]();return{'left':_0x37169a[_0x48126a(0x40b)]+(_0x40ec02['x']-_0x37169a[_0x48126a(0x407)])/_0xc9eaeb,'top':_0x37169a[_0x48126a(0x399)]+(_0x40ec02['y']-_0x37169a['pointerStartY'])/_0xc9eaeb,'width':_0x37169a[_0x48126a(0x433)],'height':_0x37169a[_0x48126a(0x23e)]};}[_0x5cd39e(0x266)](_0x32b1dd){const _0x4dd01c=_0x5cd39e;let _0x1c9637=this[_0x4dd01c(0x2b9)]['getState'](),_0x51ef20=(_0x1c9637==null?void 0x0:_0x1c9637[_0x4dd01c(0x307)])??{'x':0x0,'y':0x0},_0x543068=this[_0x4dd01c(0x224)]();return{'x':Math[_0x4dd01c(0x366)](((_0x32b1dd['offsetX']??0x0)-_0x51ef20['x'])/_0x543068),'y':Math['round'](((_0x32b1dd['offsetY']??0x0)-_0x51ef20['y'])/_0x543068)};}[_0x5cd39e(0x31c)](_0x682aa9){const _0x5766ba=_0x5cd39e;return{'x':Number[_0x5766ba(0x41c)](_0x682aa9[_0x5766ba(0x44e)])?_0x682aa9[_0x5766ba(0x44e)]:_0x682aa9[_0x5766ba(0x28d)]??0x0,'y':Number[_0x5766ba(0x41c)](_0x682aa9['clientY'])?_0x682aa9[_0x5766ba(0x2f4)]:_0x682aa9[_0x5766ba(0x3bd)]??0x0};}[_0x5cd39e(0x224)](){const _0x5eddf6=_0x5cd39e;let _0x20f91a=this[_0x5eddf6(0x2b9)][_0x5eddf6(0x4bf)]()[_0x5eddf6(0x2ea)];return Number['isFinite'](_0x20f91a)&&(_0x20f91a??0x0)>0x0?_0x20f91a:0x1;}[_0x5cd39e(0x2f9)](_0x1c4444,_0x5622f5){const _0x16ffdb=_0x5cd39e;return _0x1c4444['x']>=_0x5622f5['left']&&_0x1c4444['x']<=_0x5622f5[_0x16ffdb(0x40b)]+_0x5622f5[_0x16ffdb(0x433)]&&_0x1c4444['y']>=_0x5622f5[_0x16ffdb(0x399)]&&_0x1c4444['y']<=_0x5622f5[_0x16ffdb(0x399)]+_0x5622f5['height'];}[_0x5cd39e(0x3ef)](_0x3e9acf,_0x1d66f8){const _0x1e3afb=_0x5cd39e;var _0x41164a,_0x5d4018;_0x1d66f8==null||_0x1d66f8['stopPropagation'](),_0x1d66f8&&(_0x1d66f8[_0x1e3afb(0x1f6)]=!0x0),(_0x41164a=_0x3e9acf[_0x1e3afb(0x2b6)])==null||_0x41164a[_0x1e3afb(0x445)](_0x3e9acf),(_0x5d4018=_0x3e9acf[_0x1e3afb(0x233)])==null||_0x5d4018[_0x1e3afb(0x445)](_0x3e9acf);}[_0x5cd39e(0x48d)](){const _0x300542=_0x5cd39e;var _0x1374f9,_0x40f34f;this['_childDragSelectionHidden']||=((_0x1374f9=(_0x40f34f=this['_elementStateService'])[_0x300542(0x3d4)])==null||_0x1374f9[_0x300542(0x445)](_0x40f34f),!0x0);}[_0x5cd39e(0x448)](_0x3e9cb0,_0xe151){const _0x51c49f=_0x5cd39e;return{'left':Number['isFinite'](_0x3e9cb0[_0x51c49f(0x40b)])?_0x3e9cb0['left']:_0xe151['left'],'top':Number['isFinite'](_0x3e9cb0[_0x51c49f(0x399)])?_0x3e9cb0[_0x51c49f(0x399)]:_0xe151['top'],'width':Number[_0x51c49f(0x41c)](_0x3e9cb0[_0x51c49f(0x433)])?_0x3e9cb0['width']:_0xe151[_0x51c49f(0x433)],'height':Number[_0x51c49f(0x41c)](_0x3e9cb0['height'])?_0x3e9cb0[_0x51c49f(0x23e)]:_0xe151['height']};}[_0x5cd39e(0x2d7)](_0x2856ee,_0xd7dc65){const _0x4883c0=_0x5cd39e;typeof _0x2856ee[_0x4883c0(0x229)]==_0x4883c0(0x498)&&_0x2856ee['transformByState']({'left':_0xd7dc65[_0x4883c0(0x40b)],'top':_0xd7dc65[_0x4883c0(0x399)],'width':_0xd7dc65[_0x4883c0(0x433)],'height':_0xd7dc65[_0x4883c0(0x23e)]}),typeof _0x2856ee['makeDirtyNoDebounce']==_0x4883c0(0x498)?_0x2856ee[_0x4883c0(0x3e3)](!0x0):typeof _0x2856ee[_0x4883c0(0x390)]==_0x4883c0(0x498)&&_0x2856ee[_0x4883c0(0x390)](!0x0);}[_0x5cd39e(0x422)](_0x5c1755,_0x58c0a1,_0x5a6d37){const _0x308b8c=_0x5cd39e;return Object[_0x308b8c(0x22a)](Object['keys'](_0x5c1755)[_0x308b8c(0x209)](_0x5d7667=>_0x5d7667===_0x58c0a1?[_0x5d7667,_0x5a6d37]:[_0x5d7667,_0x3b0740(_0x5c1755,_0x5d7667)??_0x5c1755[_0x5d7667]['element'][_0x308b8c(0x2f7)]]));}[_0x5cd39e(0x29c)](){const _0x2ca265=_0x5cd39e;if(this[_0x2ca265(0x3ba)])return this['_dragPreviewObject'];let _0x48b104=this[_0x2ca265(0x3f7)]['scene'];return typeof _0x48b104[_0x2ca265(0x3a8)]==_0x2ca265(0x498)?(this[_0x2ca265(0x3ba)]=new Kt(Bt),_0x48b104['addObject'](this[_0x2ca265(0x3ba)],Vt),this[_0x2ca265(0x3ba)]):null;}[_0x5cd39e(0x32e)](_0x297428,_0x41a6a1,_0x2a29e9){const _0x1e8059=_0x5cd39e;let _0x5584cb=this['_ensureDragPreviewObject']();_0x5584cb&&_0x5584cb[_0x1e8059(0x32a)]({'ghostBounds':_0x297428,'sourceBounds':this[_0x1e8059(0x236)](),'parentBounds':_0x41a6a1[_0x1e8059(0x379)]===_0x1e8059(0x2ac)?_0x2a29e9[_0x41a6a1[_0x1e8059(0x1fb)]]:null,'side':_0x41a6a1[_0x1e8059(0x379)]==='reparent'?_0x41a6a1[_0x1e8059(0x261)]:_0x1e8059(0x36d),'textStyle':this[_0x1e8059(0x395)](),'renderGhostNode':!0x0});}['_resolvePreviewSourceBounds'](){const _0x419883=_0x5cd39e;let _0xe40298=this[_0x419883(0x278)]??this['_dragStart'];return _0xe40298?{'left':_0xe40298['left'],'top':_0xe40298['top'],'width':_0xe40298[_0x419883(0x433)],'height':_0xe40298[_0x419883(0x23e)]}:null;}[_0x5cd39e(0x395)](){const _0x2d3de2=_0x5cd39e;var _0x52e82c,_0xb3a729;let _0xf0ad16=this[_0x2d3de2(0x278)]??this[_0x2d3de2(0x417)],_0x495a92=_0xf0ad16==null||(_0x52e82c=_0xf0ad16[_0x2d3de2(0x311)][_0xf0ad16[_0x2d3de2(0x31b)]])==null?void 0x0:_0x52e82c[_0x2d3de2(0x323)],_0x361939=_0x495a92==null||(_0xb3a729=_0x495a92[_0x2d3de2(0x2f2)])==null?void 0x0:_0xb3a729[_0x2d3de2(0x23b)];if(_0x361939)return{'text':typeof _0x361939[_0x2d3de2(0x250)]==_0x2d3de2(0x2c4)?_0x361939[_0x2d3de2(0x250)]:void 0x0,'fontSize':Number['isFinite'](_0x361939[_0x2d3de2(0x291)])?_0x361939[_0x2d3de2(0x291)]:void 0x0,'color':typeof _0x361939[_0x2d3de2(0x2c7)]==_0x2d3de2(0x2c4)?_0x361939[_0x2d3de2(0x2c7)]:void 0x0,'horizontalAlign':Number[_0x2d3de2(0x41c)](_0x361939[_0x2d3de2(0x3c4)])?_0x361939['horizontalAlign']:void 0x0};}[_0x5cd39e(0x4bd)](){const _0x46dccd=_0x5cd39e;var _0x551191,_0xbde153,_0x116650;if(!this['_dragPreviewObject'])return;let _0xc42ab5=this[_0x46dccd(0x3f7)]['scene'];(_0x551191=_0xc42ab5['removeObjects'])==null||_0x551191['call'](_0xc42ab5,[this['_dragPreviewObject']]),this[_0x46dccd(0x3ba)]=null,(_0xbde153=(_0x116650=this[_0x46dccd(0x3f7)]['scene'])[_0x46dccd(0x390)])==null||_0xbde153[_0x46dccd(0x445)](_0x116650,!0x0);}[_0x5cd39e(0x3ae)](_0x58f273,_0x40ccb9,_0x2ff9a1,_0x946d5f){const _0x1df365=_0x5cd39e;let _0x41201c=[...new Set(_0x2ff9a1[_0x1df365(0x2c1)](_0x5b02c9=>!!_0x5b02c9))],_0x401e1c=this[_0x1df365(0x24e)][_0x1df365(0x389)](_0x58f273,_0x40ccb9);Promise[_0x1df365(0x412)](_0x401e1c)['then'](_0x41e2b5=>{const _0x4e8ebf=_0x1df365;var _0x436436,_0x2b73d8,_0x542984,_0x5876ae;if(_0x41e2b5){if(_0x41201c[_0x4e8ebf(0x2d0)](_0x52328b=>{const _0x49aa15=_0x4e8ebf;this[_0x49aa15(0x24e)]['executeCommand'](_0x189a28['id'],{'unitId':_0x40ccb9[_0x49aa15(0x36e)],'subUnitId':_0x40ccb9['subUnitId'],'scopeId':_0x52328b});}),_0x946d5f&&typeof _0x40ccb9['unitId']==_0x4e8ebf(0x2c4)&&typeof _0x40ccb9[_0x4e8ebf(0x35b)]==_0x4e8ebf(0x2c4)){var _0x12b1de,_0x4f5668;(_0x12b1de=(_0x4f5668=this[_0x4e8ebf(0x287)])[_0x4e8ebf(0x239)])==null||_0x12b1de['call'](_0x4f5668,{'unitId':_0x40ccb9[_0x4e8ebf(0x36e)],'subUnitId':_0x40ccb9[_0x4e8ebf(0x35b)]},[_0x946d5f],_0x946d5f);}(_0x436436=(_0x2b73d8=this['_renderContext'][_0x4e8ebf(0x240)])[_0x4e8ebf(0x390)])==null||_0x436436[_0x4e8ebf(0x445)](_0x2b73d8,!0x0),(_0x542984=(_0x5876ae=this[_0x4e8ebf(0x3f7)]['scene'])[_0x4e8ebf(0x2bf)])==null||_0x542984[_0x4e8ebf(0x445)](_0x5876ae);}});}};an=q([K(0x1,_0x20cede(_0x1973ec)),K(0x2,_0x20cede(_0x44050b)),K(0x3,_0x59364d),K(0x4,_0x297a03),K(0x5,_0x3b7906)],an);const on='board.mind-map.description-dialog',sn='board-mind-map-description-dialog';function cn(_0x53a5d4){const _0x537825=_0x5cd39e;let {unitId:_0x5e364b,subUnitId:_0x24c9d2,nodeId:_0x5e7621,initialDescription:_0xf4075b=''}=_0x53a5d4,_0x589635=_0x56ab42(_0x59364d),_0xc7e46b=_0x56ab42(_0x3d7afb),_0x37f612=_0x56ab42(_0x3bc354),[_0x23604e,_0x1006a2]=_0x325ac1(_0xf4075b),_0x206132=()=>_0xc7e46b[_0x537825(0x47f)](sn);return _0x5d1226(_0x537825(0x481),{'className':'univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','data-board-mind-map-description-dialog':_0x537825(0x41f),'children':[_0x5d1226(_0x537825(0x25c),{'className':_0x537825(0x3fb),'children':[_0x50af7a(_0x537825(0x25a),{'className':_0x537825(0x3d7),'children':_0x37f612['t'](_0x537825(0x2c8))}),_0x50af7a(_0x2fdd7f,{'autoFocus':!0x0,'className':'univer-h-32\x20univer-resize-none\x20univer-text-sm','placeholder':_0x37f612['t']('boards-mind-ui.descriptionPlaceholder'),'value':_0x23604e,'onValueChange':_0x1006a2})]}),_0x5d1226(_0x537825(0x481),{'className':_0x537825(0x34f),'children':[_0x50af7a(_0x295b03,{'size':'small','variant':_0x537825(0x495),'onClick':_0x206132,'children':_0x37f612['t'](_0x537825(0x3c1))}),_0x50af7a(_0x295b03,{'size':'small','variant':_0x537825(0x2dc),'onClick':()=>{const _0x5bde7d=_0x537825;_0x589635[_0x5bde7d(0x389)](_0x240a0f['id'],{'unitId':_0x5e364b,'subUnitId':_0x24c9d2,'nodeId':_0x5e7621,'foreignAttributes':{'_note':_0x23604e[_0x5bde7d(0x4b8)]()?_0x23604e:null}}),_0x206132();},'children':_0x37f612['t']('boards-mind-ui.saveDescription')})]})]});}const ln=_0x5cd39e(0x1f8),un={'copy':_0x532fb2[_0x5cd39e(0x249)],'paste':_0x532fb2[_0x5cd39e(0x40c)],'paste-as-new':_0x532fb2[_0x5cd39e(0x40c)],'add-child':_0x532fb2[_0x5cd39e(0x359)],'add-sibling-or-child':_0x532fb2[_0x5cd39e(0x27c)],'promote':_0x532fb2[_0x5cd39e(0x28e)],'toggle-collapse':_0x532fb2[_0x5cd39e(0x21a)],'collapse-all':_0x532fb2[_0x5cd39e(0x1f4)],'edit-text':_0x532fb2['editCurrentNode'],'open-description':_0x532fb2['addDescription'],'delete':_0x5ac689[_0x5cd39e(0x28b)],'arrow-left':_0x5ac689[_0x5cd39e(0x45f)],'arrow-right':_0x5ac689['ARROW_RIGHT'],'arrow-up':_0x5ac689[_0x5cd39e(0x485)],'arrow-down':_0x5ac689[_0x5cd39e(0x245)]},dn={'delete':[_0x5ac689[_0x5cd39e(0x3be)]]};function fn(_0x1d95c6){return[un[_0x1d95c6],...dn[_0x1d95c6]??[]];}let pn=class extends _0x4a70b2{constructor(_0x547deb,_0x5a6351,_0xf04378,_0x12a697,_0x327508,_0x1f4f1f,_0x333a1f,_0x20340a){const _0x589c79=_0x5cd39e;super(),this[_0x589c79(0x459)]=_0x547deb,this[_0x589c79(0x287)]=_0x5a6351,this[_0x589c79(0x280)]=_0xf04378,this[_0x589c79(0x201)]=_0x12a697,this[_0x589c79(0x24e)]=_0x327508,this[_0x589c79(0x284)]=_0x1f4f1f,this[_0x589c79(0x3f6)]=_0x333a1f,this['_dialogService']=_0x20340a,this[_0x589c79(0x34d)]();}[_0x5cd39e(0x34d)](){const _0xdcde3a=_0x5cd39e;this[_0xdcde3a(0x488)](this[_0xdcde3a(0x24e)][_0xdcde3a(0x435)](this['_createKeyboardShortcutOperation']())),this[_0xdcde3a(0x2a4)]()[_0xdcde3a(0x2d0)](_0x20b4a7=>{const _0x117780=_0xdcde3a;this[_0x117780(0x488)](this['_shortcutService']['registerShortcut'](_0x20b4a7));});}[_0x5cd39e(0x39e)](){const _0x2440d0=_0x5cd39e;return{'id':ln,'type':_0x3aee7d[_0x2440d0(0x2b3)],'handler':(_0x339f59,_0x3bd1b5)=>this[_0x2440d0(0x20c)](_0x3bd1b5==null?void 0x0:_0x3bd1b5[_0x2440d0(0x35f)])};}['_createShortcutItems'](){const _0x3c6574=_0x5cd39e;let _0x162b04=(_0x214b01,_0x2de9b0)=>({'id':ln,'binding':_0x214b01,'priority':0xa0,'preconditions':()=>!!this[_0x3c6574(0x3d2)](),'staticParameters':{'action':_0x2de9b0}}),_0xeac89c=_0x5c1d98=>fn(_0x5c1d98)['map'](_0x4d5e6a=>_0x162b04(_0x4d5e6a,_0x5c1d98));return[..._0xeac89c(_0x3c6574(0x249)),{'id':ln,'binding':un[_0x3c6574(0x40c)],'priority':0xa0,'preconditions':()=>!!this[_0x3c6574(0x201)][_0x3c6574(0x3de)]()&&!!this[_0x3c6574(0x3d2)](),'staticParameters':{'action':_0x3c6574(0x40c)}},{'id':ln,'binding':un[_0x3c6574(0x440)],'priority':0x96,'preconditions':()=>!!this[_0x3c6574(0x201)]['getPayload']()&&!!this[_0x3c6574(0x363)](),'staticParameters':{'action':_0x3c6574(0x440)}},..._0xeac89c(_0x3c6574(0x2b7)),..._0xeac89c('add-sibling-or-child'),..._0xeac89c(_0x3c6574(0x374)),..._0xeac89c('toggle-collapse'),..._0xeac89c(_0x3c6574(0x2ef)),..._0xeac89c(_0x3c6574(0x3f8)),..._0xeac89c(_0x3c6574(0x200)),..._0xeac89c(_0x3c6574(0x49e)),..._0xeac89c(_0x3c6574(0x262)),..._0xeac89c(_0x3c6574(0x3e5)),..._0xeac89c(_0x3c6574(0x367)),..._0xeac89c(_0x3c6574(0x44d))];}[_0x5cd39e(0x20c)](_0x52f2e9){const _0x4d523c=_0x5cd39e;return _0x52f2e9===_0x4d523c(0x249)?this[_0x4d523c(0x4b7)]():_0x52f2e9==='paste'?this['_pasteUnderSelectedNode']():_0x52f2e9===_0x4d523c(0x440)?this[_0x4d523c(0x37a)]():_0x52f2e9===_0x4d523c(0x2b7)?this['_addChild']():_0x52f2e9==='add-sibling-or-child'?this[_0x4d523c(0x248)]():_0x52f2e9===_0x4d523c(0x374)?this[_0x4d523c(0x26a)](_0x4eb711['id']):_0x52f2e9===_0x4d523c(0x439)?this[_0x4d523c(0x26a)](_0x5332c0['id']):_0x52f2e9==='collapse-all'?this[_0x4d523c(0x477)]():_0x52f2e9===_0x4d523c(0x3f8)?this[_0x4d523c(0x2b1)]():_0x52f2e9==='open-description'?this[_0x4d523c(0x210)]():_0x52f2e9==='delete'?this[_0x4d523c(0x26a)](_0x162f22['id']):_0x52f2e9&&mn(_0x52f2e9)?this['_navigateByTopology'](_0x52f2e9):!0x1;}['_copySelectedNode'](){const _0x3be3b4=_0x5cd39e;let _0x489820=this[_0x3be3b4(0x3d2)]();return _0x489820?(this[_0x3be3b4(0x24e)][_0x3be3b4(0x389)](_0x87da50['id'],{'unitId':_0x489820['unitId'],'subUnitId':_0x489820[_0x3be3b4(0x35b)],'nodeId':_0x489820[_0x3be3b4(0x31b)]}),!0x0):!0x1;}[_0x5cd39e(0x3b2)](){const _0x389af2=_0x5cd39e;let _0x500456=this[_0x389af2(0x3d2)]();return!_0x500456||!this[_0x389af2(0x201)][_0x389af2(0x3de)]()?!0x1:(this[_0x389af2(0x3ae)](_0xcb5308['id'],{'unitId':_0x500456[_0x389af2(0x36e)],'subUnitId':_0x500456[_0x389af2(0x35b)],'targetNodeId':_0x500456['nodeId']},_0x500456[_0x389af2(0x404)]),!0x0);}['_pasteAsNewMindMap'](){const _0x2cf4e5=_0x5cd39e;let _0x29418f=this[_0x2cf4e5(0x363)]();if(!_0x29418f||!this[_0x2cf4e5(0x201)][_0x2cf4e5(0x3de)]())return!0x1;let _0x53fc54=this[_0x2cf4e5(0x280)][_0x2cf4e5(0x4bf)](),_0x3ba3db=Number[_0x2cf4e5(0x41c)](_0x53fc54[_0x2cf4e5(0x2ea)])&&_0x53fc54[_0x2cf4e5(0x2ea)]>0x0?_0x53fc54[_0x2cf4e5(0x2ea)]:0x1,_0x306809=Math[_0x2cf4e5(0x366)]((0x40-_0x53fc54[_0x2cf4e5(0x307)]['x'])/_0x3ba3db),_0x47740a=Math['round']((0x40-_0x53fc54[_0x2cf4e5(0x307)]['y'])/_0x3ba3db);return this[_0x2cf4e5(0x24e)][_0x2cf4e5(0x389)](_0x2589e7['id'],{'unitId':_0x29418f[_0x2cf4e5(0x36e)],'subUnitId':_0x29418f[_0x2cf4e5(0x35b)],'left':_0x306809,'top':_0x47740a}),!0x0;}['_addChild'](){const _0x268651=_0x5cd39e;let _0x2a4e22=this[_0x268651(0x3d2)]();if(!_0x2a4e22)return!0x1;let _0x11b9c0=_0x57c380(0x6);return this[_0x268651(0x3e7)](_0x5a7781['id'],{'unitId':_0x2a4e22[_0x268651(0x36e)],'subUnitId':_0x2a4e22['subUnitId'],'parentNodeId':_0x2a4e22[_0x268651(0x31b)],'nodeId':_0x11b9c0,'connectorId':_0x57c380(0x6)},_0x2a4e22['scopeId'],_0x11b9c0),!0x0;}['_addSiblingOrChild'](){const _0x5cdd28=_0x5cd39e;let _0x173bc6=this[_0x5cdd28(0x3d2)]();if(!_0x173bc6)return!0x1;let _0x49140c=_0x57c380(0x6);return this[_0x5cdd28(0x3e7)](_0x173bc6[_0x5cdd28(0x473)]?_0x5a7781['id']:_0x31669e['id'],{'unitId':_0x173bc6[_0x5cdd28(0x36e)],'subUnitId':_0x173bc6[_0x5cdd28(0x35b)],..._0x173bc6[_0x5cdd28(0x473)]?{'parentNodeId':_0x173bc6['nodeId'],'nodeId':_0x49140c}:{'nodeId':_0x173bc6[_0x5cdd28(0x31b)],'siblingNodeId':_0x49140c},'connectorId':_0x57c380(0x6)},_0x173bc6[_0x5cdd28(0x404)],_0x49140c),!0x0;}['_executeNodeOperation'](_0x4ae5d8){const _0x128596=_0x5cd39e;let _0x49316e=this[_0x128596(0x3d2)]();return _0x49316e?(this[_0x128596(0x3ae)](_0x4ae5d8,{'unitId':_0x49316e[_0x128596(0x36e)],'subUnitId':_0x49316e[_0x128596(0x35b)],'nodeId':_0x49316e[_0x128596(0x31b)]},_0x49316e['scopeId']),!0x0):!0x1;}[_0x5cd39e(0x477)](){const _0x345333=_0x5cd39e;let _0xd25f35=this[_0x345333(0x3d2)]();if(!_0xd25f35)return!0x1;let _0x3ff671=this[_0x345333(0x459)][_0x345333(0x4a4)](_0xd25f35[_0x345333(0x36e)],_0xd25f35['subUnitId']),_0x4279c6=Object[_0x345333(0x255)](_0x3ff671)['map'](_0x18ef45=>{const _0x44bfbe=_0x345333;let _0x4cb5bd=_0x554e66(_0x18ef45['element']);return(_0x4cb5bd==null?void 0x0:_0x4cb5bd[_0x44bfbe(0x462)])===_0xd25f35['scopeId']&&this[_0x44bfbe(0x4bc)](_0x3ff671,_0xd25f35[_0x44bfbe(0x404)],_0x18ef45[_0x44bfbe(0x36f)])[_0x44bfbe(0x3a9)]>0x0?{'nodeId':_0x18ef45[_0x44bfbe(0x36f)],'collapsed':_0x4cb5bd[_0x44bfbe(0x3b0)]}:null;})[_0x345333(0x2c1)](_0x2011dc=>!!_0x2011dc);if(_0x4279c6[_0x345333(0x3a9)]===0x0)return!0x1;let _0x157459=_0x4279c6[_0x345333(0x405)](_0x1765a3=>!_0x1765a3[_0x345333(0x3b0)]),_0x16479d=_0x4279c6[_0x345333(0x209)](_0x13b2a4=>this[_0x345333(0x24e)][_0x345333(0x389)](_0x5332c0['id'],{'unitId':_0xd25f35[_0x345333(0x36e)],'subUnitId':_0xd25f35[_0x345333(0x35b)],'nodeId':_0x13b2a4[_0x345333(0x31b)],'collapsed':_0x157459}));return Promise['all'](_0x16479d[_0x345333(0x209)](_0x1227ac=>Promise[_0x345333(0x412)](_0x1227ac)))[_0x345333(0x431)](_0x5781ed=>{const _0x2c1dbb=_0x345333;_0x5781ed[_0x2c1dbb(0x405)](Boolean)&&this[_0x2c1dbb(0x24e)][_0x2c1dbb(0x389)](_0x189a28['id'],{'unitId':_0xd25f35[_0x2c1dbb(0x36e)],'subUnitId':_0xd25f35[_0x2c1dbb(0x35b)],'scopeId':_0xd25f35[_0x2c1dbb(0x404)]});}),!0x0;}['_openSelectedTextEditing'](){const _0x3d317d=_0x5cd39e;let _0x1b1076=this[_0x3d317d(0x3d2)]();return _0x1b1076?(this[_0x3d317d(0x287)][_0x3d317d(0x239)]({'unitId':_0x1b1076[_0x3d317d(0x36e)],'subUnitId':_0x1b1076['subUnitId']},[_0x1b1076[_0x3d317d(0x31b)]],_0x1b1076[_0x3d317d(0x31b)]),this['_boardTextEditingService'][_0x3d317d(0x228)](),this[_0x3d317d(0x3f6)][_0x3d317d(0x318)]({'unitId':_0x1b1076['unitId'],'subUnitId':_0x1b1076['subUnitId'],'shapeId':_0x1b1076[_0x3d317d(0x31b)],'shapeKey':_0x55cbfb(_0x1b1076[_0x3d317d(0x36e)],_0x1b1076[_0x3d317d(0x31b)]),'visible':!0x0}),!0x0):!0x1;}[_0x5cd39e(0x210)](){const _0x12602b=_0x5cd39e;let _0x374b37=this['_getSelectedMindMapContext']();return _0x374b37?(this['_dialogService']['open']({'id':sn,'title':{'title':_0x12602b(0x2c8)},'width':0x1a4,'draggable':!0x0,'mask':!0x1,'maskClosable':!0x0,'children':{'label':on,'unitId':_0x374b37[_0x12602b(0x36e)],'subUnitId':_0x374b37[_0x12602b(0x35b)],'nodeId':_0x374b37['nodeId'],'initialDescription':_0x374b37[_0x12602b(0x393)]}}),!0x0):!0x1;}[_0x5cd39e(0x34c)](_0x3f5a04){const _0x51e8eb=_0x5cd39e;let _0x3bdeab=this[_0x51e8eb(0x3d2)]();if(!_0x3bdeab)return!0x1;let _0x16a32e=this[_0x51e8eb(0x459)][_0x51e8eb(0x4a4)](_0x3bdeab[_0x51e8eb(0x36e)],_0x3bdeab[_0x51e8eb(0x35b)]),_0x502cfa=_0x16a32e[_0x3bdeab[_0x51e8eb(0x31b)]],_0x43d6d7=_0x554e66(_0x502cfa==null?void 0x0:_0x502cfa[_0x51e8eb(0x323)]);if(!_0x502cfa||!_0x43d6d7)return!0x1;let _0x2680b6={'arrow-left':_0x51e8eb(0x312),'arrow-right':_0x51e8eb(0x408),'arrow-up':'ArrowUp','arrow-down':_0x51e8eb(0x2f3)}[_0x3f5a04];if(!_0x2680b6)return!0x1;let _0x2c1d53=this['_resolveArrowNavigationTarget'](_0x16a32e,_0x3bdeab[_0x51e8eb(0x31b)],_0x43d6d7,_0x2680b6);return _0x2c1d53?(this[_0x51e8eb(0x287)]['selectElements']({'unitId':_0x3bdeab['unitId'],'subUnitId':_0x3bdeab[_0x51e8eb(0x35b)]},[_0x2c1d53],_0x2c1d53),!0x0):!0x1;}[_0x5cd39e(0x24d)](_0x41a744,_0x2d13b3,_0x3e55c7,_0x2b1348){const _0x217dba=_0x5cd39e;let _0x37e25c=this[_0x217dba(0x4bc)](_0x41a744,_0x3e55c7['structureScopeId'],_0x2d13b3);if(_0x3e55c7[_0x217dba(0x32f)]===null){if(_0x2b1348===_0x217dba(0x312)){var _0x2e6b2c;return((_0x2e6b2c=_0x37e25c['find'](_0x1ee8c5=>{const _0x4a2802=_0x217dba;var _0x48719b;return((_0x48719b=_0x554e66(_0x1ee8c5['element']))==null?void 0x0:_0x48719b[_0x4a2802(0x261)])===_0x4a2802(0x40b);}))==null?void 0x0:_0x2e6b2c[_0x217dba(0x36f)])??null;}if(_0x2b1348===_0x217dba(0x408)){var _0x50c8bc;return((_0x50c8bc=_0x37e25c[_0x217dba(0x4aa)](_0x2b237b=>{const _0x2c4e74=_0x217dba;var _0x44a291;return(((_0x44a291=_0x554e66(_0x2b237b[_0x2c4e74(0x323)]))==null?void 0x0:_0x44a291['side'])??_0x2c4e74(0x36d))===_0x2c4e74(0x36d);}))==null?void 0x0:_0x50c8bc[_0x217dba(0x36f)])??null;}return null;}let _0x124f37=_0x3e55c7[_0x217dba(0x261)]??'right',_0x52b603=_0x124f37===_0x217dba(0x36d)?'ArrowLeft':_0x217dba(0x408),_0x5acdae=_0x124f37===_0x217dba(0x36d)?'ArrowRight':_0x217dba(0x312);if(_0x2b1348===_0x52b603)return _0x3e55c7[_0x217dba(0x32f)];if(_0x2b1348===_0x5acdae){var _0xa15e00;return((_0xa15e00=_0x37e25c[0x0])==null?void 0x0:_0xa15e00[_0x217dba(0x36f)])??null;}if(_0x2b1348==='ArrowUp'||_0x2b1348===_0x217dba(0x2f3)){let _0x5024f7=this['_getMindMapChildren'](_0x41a744,_0x3e55c7[_0x217dba(0x462)],_0x3e55c7[_0x217dba(0x32f)]),_0x40de07=_0x5024f7[_0x217dba(0x49f)](_0x5a74fc=>_0x5a74fc[_0x217dba(0x36f)]===_0x2d13b3),_0x13b4df=_0x2b1348===_0x217dba(0x2a3)?_0x5024f7[_0x40de07-0x1]:_0x5024f7[_0x40de07+0x1];return(_0x13b4df==null?void 0x0:_0x13b4df[_0x217dba(0x36f)])??null;}return null;}[_0x5cd39e(0x4bc)](_0x479a68,_0x4cf52d,_0x278793){const _0x5c2e62=_0x5cd39e;return Object[_0x5c2e62(0x255)](_0x479a68)[_0x5c2e62(0x2c1)](_0x288e46=>{const _0xfa930d=_0x5c2e62;let _0x35a8a8=_0x554e66(_0x288e46['element']);return(_0x35a8a8==null?void 0x0:_0x35a8a8[_0xfa930d(0x462)])===_0x4cf52d&&_0x35a8a8[_0xfa930d(0x32f)]===_0x278793&&_0x288e46[_0xfa930d(0x323)][_0xfa930d(0x436)]!==!0x1;})['sort']((_0x401a6a,_0x4eb5ed)=>{const _0x5a1aae=_0x5c2e62;let _0x592de4=_0x554e66(_0x401a6a['element']),_0x3aae9f=_0x554e66(_0x4eb5ed['element']);return _0xe5f8fa(_0x592de4==null?void 0x0:_0x592de4['orderKey'],_0x3aae9f==null?void 0x0:_0x3aae9f[_0x5a1aae(0x3b5)])||_0x401a6a['elementId'][_0x5a1aae(0x342)](_0x4eb5ed[_0x5a1aae(0x36f)]);});}['_getSelectedMindMapContext'](){const _0x3e675a=_0x5cd39e;var _0x7277bd;let _0xb89657=this[_0x3e675a(0x287)][_0x3e675a(0x2c9)](),_0x82967b=_0xb89657['focusedId']??_0xb89657[_0x3e675a(0x471)][0x0];if(!_0xb89657[_0x3e675a(0x48c)]||!_0x82967b||_0xb89657[_0x3e675a(0x471)]['length']!==0x1||_0xb89657[_0x3e675a(0x21d)]||_0xb89657[_0x3e675a(0x42a)])return null;let _0x5dd713=this[_0x3e675a(0x459)]['getElementData'](_0xb89657[_0x3e675a(0x48c)][_0x3e675a(0x36e)],_0xb89657['context'][_0x3e675a(0x35b)])[_0x82967b],_0x239927=_0x554e66(_0x5dd713==null?void 0x0:_0x5dd713[_0x3e675a(0x323)]);return!_0x5dd713||!_0x239927?null:{'unitId':_0xb89657[_0x3e675a(0x48c)][_0x3e675a(0x36e)],'subUnitId':_0xb89657[_0x3e675a(0x48c)][_0x3e675a(0x35b)],'nodeId':_0x82967b,'scopeId':_0x239927[_0x3e675a(0x462)],'isRoot':_0x239927['parentNodeId']===null,'description':((_0x7277bd=_0x239927[_0x3e675a(0x46a)])==null?void 0x0:_0x7277bd[_0x3e675a(0x2ce)])??''};}[_0x5cd39e(0x363)](){const _0x2c3fd3=_0x5cd39e;let _0x21b1c4=this[_0x2c3fd3(0x287)][_0x2c3fd3(0x2c9)]();return!_0x21b1c4[_0x2c3fd3(0x48c)]||_0x21b1c4[_0x2c3fd3(0x21d)]||_0x21b1c4[_0x2c3fd3(0x42a)]||_0x21b1c4['selectedIds']['length']>0x0||_0x21b1c4[_0x2c3fd3(0x2cf)]?null:{'unitId':_0x21b1c4[_0x2c3fd3(0x48c)]['unitId'],'subUnitId':_0x21b1c4[_0x2c3fd3(0x48c)][_0x2c3fd3(0x35b)]};}[_0x5cd39e(0x3ae)](_0x3c3341,_0x4542d7,_0x95bbef){const _0x31a81b=_0x5cd39e;let _0x10da2a=this[_0x31a81b(0x24e)][_0x31a81b(0x389)](_0x3c3341,_0x4542d7);Promise['resolve'](_0x10da2a)[_0x31a81b(0x431)](_0x41bea7=>{const _0x2ddbbe=_0x31a81b;_0x41bea7&&this[_0x2ddbbe(0x24e)][_0x2ddbbe(0x389)](_0x189a28['id'],{'unitId':_0x4542d7[_0x2ddbbe(0x36e)],'subUnitId':_0x4542d7[_0x2ddbbe(0x35b)],'scopeId':_0x95bbef});});}[_0x5cd39e(0x3e7)](_0x4d4db2,_0x4ac936,_0x438168,_0x1f708a){const _0x572c47=_0x5cd39e;let _0x48fc56={'unitId':_0x4ac936['unitId'],'subUnitId':_0x4ac936[_0x572c47(0x35b)]},_0x47acac=this[_0x572c47(0x24e)]['executeCommand'](_0x4d4db2,_0x4ac936);Promise[_0x572c47(0x412)](_0x47acac)[_0x572c47(0x431)](_0x4a6be0=>{const _0x23f2db=_0x572c47;_0x4a6be0&&(this[_0x23f2db(0x24e)][_0x23f2db(0x389)](_0x189a28['id'],{..._0x48fc56,'scopeId':_0x438168}),this[_0x23f2db(0x287)][_0x23f2db(0x239)](_0x48fc56,[_0x1f708a],_0x1f708a),this[_0x23f2db(0x3f6)][_0x23f2db(0x228)](),this['_boardTextEditingService'][_0x23f2db(0x318)]({..._0x48fc56,'shapeId':_0x1f708a,'shapeKey':_0x55cbfb(_0x48fc56['unitId'],_0x1f708a),'visible':!0x0}));});}};pn=q([K(0x0,_0x20cede(_0x1973ec)),K(0x1,_0x20cede(_0x44050b)),K(0x2,_0x20cede(_0x297a03)),K(0x3,_0x20cede(_0x52fb41)),K(0x4,_0x59364d),K(0x5,_0xf5ea37),K(0x6,_0x20cede(_0x58f4d9)),K(0x7,_0x3d7afb)],pn);function mn(_0x2bc89a){const _0x595022=_0x5cd39e;return _0x2bc89a==='arrow-left'||_0x2bc89a==='arrow-right'||_0x2bc89a===_0x595022(0x367)||_0x2bc89a==='arrow-down';}const hn={'min':0x1,'max':0x5,'defaultValue':0x3},gn={'min':0x0,'max':0x64,'defaultValue':0x64},_n=[{'kind':_0x5cd39e(0x32c),'titleKey':_0x5cd39e(0x36c),'panel':'line'},{'kind':_0x5cd39e(0x351),'titleKey':'boards-mind-ui.toolbar.primary.fontColor'},{'kind':_0x5cd39e(0x232),'titleKey':_0x5cd39e(0x46b)},{'kind':'dropdown','titleKey':_0x5cd39e(0x269),'panel':_0x5cd39e(0x2d8),'dividerBefore':!0x0}],vn={'addSibling':_0x5cd39e(0x364),'addChild':_0x5cd39e(0x2b7),'copy':_0x5cd39e(0x249),'paste':'paste','delete':_0x5cd39e(0x49e)},yn=[{'key':_0x5cd39e(0x1fd),'title':_0x5cd39e(0x49b),'items':[{'value':_0x5cd39e(0x3f0),'icon':'mindmap-horizontal'},{'value':_0x5cd39e(0x3d9),'icon':'mindmap-vertical'}]},{'key':_0x5cd39e(0x494),'title':'Tree\x20diagram','items':[{'value':'tree-right','icon':_0x5cd39e(0x247)},{'value':_0x5cd39e(0x2ae),'icon':_0x5cd39e(0x2ae)},{'value':_0x5cd39e(0x414),'icon':_0x5cd39e(0x414)}]},{'key':'timeline','title':_0x5cd39e(0x2a8),'items':[{'value':'timeline-horizontal','icon':'timeline-horizontal'},{'value':_0x5cd39e(0x3b9),'icon':_0x5cd39e(0x3b9)}]}],bn={'key':'branch','title':'Branch','items':[{'value':_0x5cd39e(0x264),'icon':_0x5cd39e(0x33f)},{'value':_0x5cd39e(0x42c),'icon':_0x5cd39e(0x2fb)},{'value':_0x5cd39e(0x2e2),'icon':_0x5cd39e(0x348)}]},xn=_0x5cd39e(0x260);function Sn(_0x169c49,_0x24f722){const _0x12103b=_0x5cd39e;_0x169c49[_0x12103b(0x389)](ln,{'action':_0x24f722});}const Cn={'line':_0x924ca0,'more':_0x127a01};function wn(_0x3b8cbc){const _0x16e539=_0x5cd39e;_0x3b8cbc[_0x16e539(0x233)](),_0x3b8cbc['preventDefault']();}function Tn(_0x386561,_0xa4c799=_0x5cd39e(0x2a5),_0x517872){return _0x50af7a(_0xac81e8,{'children':_0x50af7a(_0x386561,{'className':_0xa4c799,'extend':_0x517872})});}function En(_0x5233c9){const _0x454f2e=_0x5cd39e;var _0x119e59,_0x102aed;let _0x84dd3b=(_0x5233c9==null?void 0x0:_0x5233c9[_0x454f2e(0x23b)])??{},_0x24f5d3=_0x84dd3b[_0x454f2e(0x413)]&&typeof _0x84dd3b['dataModel']=='object'?_0x84dd3b['dataModel']:{},_0x5406c8=(_0x119e59=_0x24f5d3[_0x454f2e(0x43b)])==null||(_0x119e59=_0x119e59['documentStyle'])==null?void 0x0:_0x119e59[_0x454f2e(0x27f)];return{'color':typeof _0x84dd3b['color']==_0x454f2e(0x2c4)?_0x84dd3b[_0x454f2e(0x2c7)]:(_0x5406c8==null||(_0x102aed=_0x5406c8['cl'])==null?void 0x0:_0x102aed[_0x454f2e(0x3ab)])??_0x558f17,'fontFamily':typeof _0x84dd3b[_0x454f2e(0x2d3)]==_0x454f2e(0x2c4)?_0x84dd3b[_0x454f2e(0x2d3)]:(_0x5406c8==null?void 0x0:_0x5406c8['ff'])??_0x34b337['ff'],'fontSize':typeof _0x84dd3b[_0x454f2e(0x291)]==_0x454f2e(0x2d2)?_0x84dd3b[_0x454f2e(0x291)]:typeof(_0x5406c8==null?void 0x0:_0x5406c8['fs'])==_0x454f2e(0x2d2)?_0x5406c8['fs']:_0x34b337['fs'],'horizontalAlign':_0x84dd3b['horizontalAlign']??_0x24f5d3['ha']??_0x525df4['LEFT'],'textFill':_0x84dd3b['textFill']&&typeof _0x84dd3b[_0x454f2e(0x2cb)]==_0x454f2e(0x49c)?_0x84dd3b[_0x454f2e(0x2cb)]:_0x5406c8==null?void 0x0:_0x5406c8['textFill'],'verticalAlign':_0x84dd3b[_0x454f2e(0x3c7)]??_0x24f5d3['va']??_0x4a5acf[_0x454f2e(0x48f)]};}function Dn(_0x556e16,_0x1e4394){const _0x12f9d8=_0x5cd39e;if(!_0x1e4394)return;let _0x3806cc=fn(_0x1e4394);if(!_0x3806cc[_0x12f9d8(0x3a9)])return;let _0x3aa6d4=_0x3806cc[_0x12f9d8(0x209)](_0x78dd0=>_0x556e16['getShortcutDisplay']({'id':'board.operation.mind-map.keyboard-shortcut','binding':_0x78dd0,'staticParameters':{'action':_0x1e4394}})??void 0x0)[_0x12f9d8(0x2c1)](_0x4d9727=>!!_0x4d9727);return _0x3aa6d4[_0x12f9d8(0x3a9)]?[...new Set(_0x3aa6d4)][_0x12f9d8(0x3e6)]('/'):void 0x0;}async function On(_0x3ea493,_0xf0e27){const _0x45edb0=_0x5cd39e;return await Promise[_0x45edb0(0x412)](_0x3ea493[_0x45edb0(0x389)](_0x34ea91['id'],_0xf0e27))?(await Promise[_0x45edb0(0x412)](_0x3ea493[_0x45edb0(0x389)](_0x189a28['id'],{'unitId':_0xf0e27['unitId'],'subUnitId':_0xf0e27['subUnitId'],'scopeId':_0xf0e27[_0x45edb0(0x404)]})),!0x0):!0x1;}async function kn(_0x5711ed,_0x32a39e){const _0xac3640=_0x5cd39e;return await Promise[_0xac3640(0x412)](_0x5711ed[_0xac3640(0x389)](_0xf4f5f9['id'],_0x32a39e))?(await Promise[_0xac3640(0x412)](_0x5711ed[_0xac3640(0x389)](_0x189a28['id'],{'unitId':_0x32a39e['unitId'],'subUnitId':_0x32a39e[_0xac3640(0x35b)],'scopeId':_0x32a39e[_0xac3640(0x404)]})),!0x0):!0x1;}function An({className:_0x500930=_0x5cd39e(0x2a5)}){const _0x4f4599=_0x5cd39e;return _0x50af7a(_0xac81e8,{'children':_0x5d1226(_0x4f4599(0x2f1),{'className':_0x500930,'viewBox':_0x4f4599(0x387),'fill':_0x4f4599(0x47e),'aria-hidden':_0x4f4599(0x41f),'children':[_0x50af7a('path',{'d':_0x4f4599(0x453),'stroke':_0x4f4599(0x34b),'strokeWidth':_0x4f4599(0x2b8),'strokeLinecap':_0x4f4599(0x366)}),_0x50af7a(_0x4f4599(0x215),{'d':_0x4f4599(0x3f3),'stroke':_0x4f4599(0x34b),'strokeWidth':_0x4f4599(0x2b8),'strokeLinecap':_0x4f4599(0x366)}),_0x50af7a(_0x4f4599(0x215),{'d':_0x4f4599(0x331),'stroke':_0x4f4599(0x34b),'strokeWidth':_0x4f4599(0x2b8),'strokeLinecap':_0x4f4599(0x366)})]})});}function jn({icon:_0x45fd47}){const _0x206afc=_0x5cd39e;let _0x20a1de=_0x206afc(0x3d8),_0x25ed80={'stroke':_0x206afc(0x34b),'strokeWidth':2.6,'strokeLinecap':'round','strokeLinejoin':'round'},_0x217893={'stroke':_0x20a1de,'strokeWidth':3.2,'strokeLinecap':'round'};return _0x5d1226(_0x206afc(0x2f1),{'className':_0x206afc(0x449),'viewBox':_0x206afc(0x339),'fill':_0x206afc(0x47e),'aria-hidden':_0x206afc(0x41f),'children':[_0x45fd47===_0x206afc(0x3f0)&&_0x5d1226(_0x31ad0b,{'children':[_0x50af7a(_0x206afc(0x215),{'d':'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',..._0x25ed80}),_0x50af7a(_0x206afc(0x215),{'d':'M12\x2015h9M12\x2028h9M12\x2041h9M59\x2015h9M59\x2028h9M59\x2041h9',..._0x217893})]}),_0x45fd47==='mindmap-vertical'&&_0x5d1226(_0x31ad0b,{'children':[_0x50af7a('path',{'d':_0x206afc(0x22c),..._0x25ed80}),_0x50af7a(_0x206afc(0x215),{'d':'M22\x208h36M22\x2048h36M14\x2018v20M66\x2018v20','stroke':_0x20a1de,'strokeWidth':2.6,'strokeLinecap':_0x206afc(0x366),'strokeDasharray':'6\x207'})]}),_0x45fd47===_0x206afc(0x247)&&_0x5d1226(_0x31ad0b,{'children':[_0x50af7a(_0x206afc(0x215),{'d':_0x206afc(0x286),..._0x25ed80}),_0x50af7a(_0x206afc(0x215),{'d':_0x206afc(0x23f),..._0x217893}),_0x50af7a(_0x206afc(0x274),{'cx':'24','cy':'12','r':'3','fill':_0x206afc(0x34b)})]}),_0x45fd47===_0x206afc(0x2ae)&&_0x5d1226(_0x31ad0b,{'children':[_0x50af7a(_0x206afc(0x215),{'d':_0x206afc(0x2be),..._0x25ed80}),_0x50af7a(_0x206afc(0x215),{'d':_0x206afc(0x3cf),..._0x217893}),_0x50af7a(_0x206afc(0x274),{'cx':'56','cy':'12','r':'3','fill':_0x206afc(0x34b)})]}),_0x45fd47==='tree-alternate'&&_0x5d1226(_0x31ad0b,{'children':[_0x50af7a(_0x206afc(0x215),{'d':'M42\x2012v32M42\x2020c0\x204-3\x206-7\x206h-7M42\x2030c0\x204\x203\x206\x207\x206h7M42\x2039c0\x204-3\x206-7\x206h-7',..._0x25ed80}),_0x50af7a('path',{'d':_0x206afc(0x29f),..._0x217893}),_0x50af7a(_0x206afc(0x274),{'cx':'42','cy':'12','r':'3','fill':_0x206afc(0x34b)})]}),_0x45fd47===_0x206afc(0x2fa)&&_0x5d1226(_0x31ad0b,{'children':[_0x50af7a(_0x206afc(0x215),{'d':'M15\x2031h50M35\x2031V18c0-4\x203-7\x208-7h9M35\x2031v13c0\x204\x203\x207\x208\x207h9',..._0x25ed80}),_0x50af7a(_0x206afc(0x215),{'d':_0x206afc(0x4a9),..._0x217893}),_0x50af7a(_0x206afc(0x274),{'cx':'17','cy':'31','r':'3','fill':_0x206afc(0x34b)})]}),_0x45fd47===_0x206afc(0x3b9)&&_0x5d1226(_0x31ad0b,{'children':[_0x50af7a(_0x206afc(0x215),{'d':_0x206afc(0x3b3),..._0x25ed80}),_0x50af7a(_0x206afc(0x215),{'d':_0x206afc(0x493),..._0x217893}),_0x50af7a(_0x206afc(0x274),{'cx':'40','cy':'9','r':'3','fill':_0x206afc(0x34b)})]}),_0x45fd47===_0x206afc(0x33f)&&_0x50af7a(_0x31ad0b,{'children':_0x50af7a('path',{'d':'M16\x2028c16\x200\x2025-13\x2043-13M16\x2028c16\x200\x2025\x2013\x2043\x2013',..._0x25ed80})}),_0x45fd47==='branch-rounded-orthogonal'&&_0x50af7a(_0x31ad0b,{'children':_0x50af7a(_0x206afc(0x215),{'d':_0x206afc(0x3d0),..._0x25ed80})}),_0x45fd47===_0x206afc(0x348)&&_0x50af7a(_0x31ad0b,{'children':_0x50af7a('path',{'d':'M17\x2033h21M38\x2017v30M38\x2017h24',..._0x25ed80})})]});}function Mn(_0x23985c,_0x3e1934){const _0x568c41=_0x5cd39e;let _0x32ec23=_0x23985c[_0x568c41(0x27f)],_0x5094c0=_0x371f6d(_0x32ec23),_0x1ddda1={..._0x5094c0[_0x568c41(0x2c7)]===void 0x0?null:{'color':_0x5094c0[_0x568c41(0x2c7)]},..._0x5094c0[_0x568c41(0x2d3)]===void 0x0?null:{'fontFamily':_0x5094c0[_0x568c41(0x2d3)]},..._0x5094c0[_0x568c41(0x291)]===void 0x0?null:{'fontSize':_0x5094c0[_0x568c41(0x291)]},..._0x5094c0[_0x568c41(0x415)]===void 0x0?null:{'bold':_0x5094c0[_0x568c41(0x415)]},..._0x5094c0['italic']===void 0x0?null:{'italic':_0x5094c0[_0x568c41(0x30c)]},..._0x5094c0[_0x568c41(0x3c9)]===void 0x0?null:{'underline':_0x5094c0[_0x568c41(0x3c9)]},..._0x5094c0[_0x568c41(0x391)]===void 0x0?null:{'strikethrough':_0x5094c0[_0x568c41(0x391)]},..._0x5094c0[_0x568c41(0x2cb)]===void 0x0?null:{'textFill':_0x5094c0['textFill']}};_0x23985c[_0x568c41(0x3c4)]!==void 0x0&&(_0x1ddda1['horizontalAlign']=_0x23985c[_0x568c41(0x3c4)]),_0x23985c[_0x568c41(0x3c7)]!==void 0x0&&(_0x1ddda1['verticalAlign']=_0x23985c[_0x568c41(0x3c7)]),Object[_0x568c41(0x3d6)](_0x1ddda1)[_0x568c41(0x3a9)]>0x0&&_0x3e1934({'textStyle':_0x1ddda1});}function Nn(_0x47d40d,_0x26058e,_0x5741d6){const _0x4004a0=_0x5cd39e;let _0x4f7373=_0x47d40d??{},_0x181846=_0x4ced1d(_0x4f7373,_0x26058e),_0x17028b=_0x181846[_0x4004a0(0x23b)]??_0x4f7373[_0x4004a0(0x23b)]??{};return{..._0x4f7373,..._0x181846,'shapeText':{..._0x17028b,..._0x5741d6[_0x4004a0(0x2c7)]===void 0x0?null:{'color':_0x5741d6['color']},..._0x5741d6[_0x4004a0(0x291)]===void 0x0?null:{'fontSize':_0x5741d6[_0x4004a0(0x291)]},..._0x5741d6[_0x4004a0(0x415)]===void 0x0?null:{'bold':_0x5741d6[_0x4004a0(0x415)]},..._0x5741d6[_0x4004a0(0x30c)]===void 0x0?null:{'italic':_0x5741d6[_0x4004a0(0x30c)]},..._0x5741d6[_0x4004a0(0x3c9)]===void 0x0?null:{'underline':_0x5741d6[_0x4004a0(0x3c9)]},..._0x5741d6[_0x4004a0(0x391)]===void 0x0?null:{'strikethrough':_0x5741d6[_0x4004a0(0x391)]},..._0x5741d6['horizontalAlign']===void 0x0?null:{'horizontalAlign':_0x5741d6['horizontalAlign']},..._0x5741d6[_0x4004a0(0x3c7)]===void 0x0?null:{'verticalAlign':_0x5741d6[_0x4004a0(0x3c7)]},..._0x5741d6['textFill']===void 0x0?null:{'textFill':_0x5741d6[_0x4004a0(0x2cb)]}}};}function Pn(_0x4bf9a4,_0x83c165){const _0xe041c8=_0x5cd39e;let _0x37ae27=_0x4bf9a4==null?void 0x0:_0x4bf9a4[_0xe041c8(0x346)];_0x37ae27&&_0x83c165({'lineType':_0x37ae27[_0xe041c8(0x2a1)]===_0x10f66d[_0xe041c8(0x34e)]||_0x37ae27['dashType']===_0x10f66d[_0xe041c8(0x3b6)]?_0xe041c8(0x2bb):_0x37ae27[_0xe041c8(0x2a1)]===_0x10f66d['Dash']?_0xe041c8(0x30f):_0xe041c8(0x27e),...typeof _0x37ae27[_0xe041c8(0x433)]==_0xe041c8(0x2d2)?{'strokeWidth':_0x37ae27['width']}:null,...typeof _0x37ae27[_0xe041c8(0x2c7)]==_0xe041c8(0x2c4)?{'stroke':_0x37ae27[_0xe041c8(0x2c7)]}:null,...typeof _0x37ae27[_0xe041c8(0x314)]==_0xe041c8(0x2d2)?{'opacity':_0x37ae27[_0xe041c8(0x314)]}:null});}function Fn(_0x159789){const _0x15c5ac=_0x5cd39e;return _0x159789!=null&&_0x159789[_0x15c5ac(0x3a9)]?_0x159789[0x0]<=0x2?_0x10f66d[_0x15c5ac(0x34e)]:_0x10f66d[_0x15c5ac(0x419)]:_0x10f66d[_0x15c5ac(0x254)];}function In(_0x2f38e2){const _0x4739da=_0x5cd39e;return{'stroke':{'lineStrokeType':_0x222ad0['SolidLine'],'dashType':Fn(_0x2f38e2==null?void 0x0:_0x2f38e2['dash']),'color':(_0x2f38e2==null?void 0x0:_0x2f38e2[_0x4739da(0x346)])??_0x489684,'width':(_0x2f38e2==null?void 0x0:_0x2f38e2[_0x4739da(0x48b)])??hn['defaultValue'],'opacity':(_0x2f38e2==null?void 0x0:_0x2f38e2[_0x4739da(0x314)])??gn[_0x4739da(0x25b)]/0x64}};}function _0x49d4(_0x1d8832,_0x415199){_0x1d8832=_0x1d8832-0x1f4;const _0x32469a=_0x3246();let _0x49d48b=_0x32469a[_0x1d8832];return _0x49d48b;}function Ln(_0x3417b5){const _0x910f51=_0x5cd39e;var _0x3b8d6b,_0x1043d3,_0xa9a9cf;let _0x3bdf88=_0x56ab42(_0x59364d),_0x4bf0be=_0x56ab42(_0xf5ea37),_0x57eeb5=_0x56ab42(_0x3bc354),[_0x492f2c,_0x1b6874]=_0x325ac1(null),[_0x473f40,_0x4ace55]=_0x325ac1((_0x3b8d6b=_0x3417b5[_0x910f51(0x48e)][_0x910f51(0x3e9)])==null?void 0x0:_0x3b8d6b[_0x910f51(0x2f2)]),_0x5a39df=_0x3417b5[_0x910f51(0x48e)][_0x910f51(0x3e9)];if(!_0x5a39df)return null;let _0x4b3a2f={'unitId':_0x5a39df['unitId'],'subUnitId':_0x5a39df['subUnitId']},_0x4482ed=_0x12ff05=>{const _0xb38e90=_0x910f51;_0x3bdf88[_0xb38e90(0x389)](_0x240a0f['id'],{..._0x4b3a2f,'nodeId':_0x5a39df[_0xb38e90(0x36f)],..._0x12ff05});},_0x587e8d=(_0x1908fb,_0x1ed324)=>{const _0x119a6b=_0x910f51;let _0x3d47d9=_0x1ed324??{};_0x4ace55(_0x4cdab5=>({..._0x4cdab5??{},..._0x3d47d9})),_0x4482ed({..._0x3d47d9[_0x119a6b(0x4a6)]===void 0x0?null:{'fill':_0x3d47d9['fill']},..._0x3d47d9['stroke']===void 0x0?null:{'stroke':_0x3d47d9['stroke']}});},_0x260ada=_0x3bb466=>{const _0x9c747=_0x910f51;_0x3bdf88[_0x9c747(0x389)](_0x4df192['id'],{..._0x4b3a2f,'nodeId':_0x5a39df[_0x9c747(0x36f)],'style':_0x3bb466});},_0x15dad0=In(_0x5a39df[_0x910f51(0x29b)]),_0x442e20=_0x4d2c50=>Dn(_0x4bf0be,_0x4d2c50),_0x46ad50=_0xa12dce=>{Sn(_0x3bdf88,_0xa12dce);},_0x198645=(_0x473f40==null?void 0x0:_0x473f40[_0x910f51(0x23b)])??{},_0x3585c1=En(_0x473f40),_0xa6a88=_0x21b25e=>{Mn(_0x21b25e,_0x2e1940=>{_0x4ace55(_0x2c0d01=>Nn(_0x2c0d01,_0x21b25e,_0x2e1940['textStyle'])),_0x4482ed(_0x2e1940);});},_0x252c21=[{'label':_0x57eeb5['t'](_0x910f51(0x38b)),'value':_0x525df4[_0x910f51(0x29e)],'icon':_0x50af7a(_0x4c788e,{})},{'label':_0x57eeb5['t'](_0x910f51(0x468)),'value':_0x525df4[_0x910f51(0x30e)],'icon':_0x50af7a(_0x4f2966,{})},{'label':_0x57eeb5['t'](_0x910f51(0x2b0)),'value':_0x525df4[_0x910f51(0x482)],'icon':_0x50af7a(_0x4e2906,{})},{'label':_0x57eeb5['t'](_0x910f51(0x3a0)),'value':_0x525df4[_0x910f51(0x398)],'icon':_0x50af7a(_0x58a71f,{})}],_0x364f96=[{'label':_0x57eeb5['t'](_0x910f51(0x309)),'value':_0x4a5acf['TOP'],'icon':_0x50af7a(_0x1e84da,{})},{'label':_0x57eeb5['t'](_0x910f51(0x3a1)),'value':_0x4a5acf[_0x910f51(0x48f)],'icon':_0x50af7a(_0x190275,{})},{'label':_0x57eeb5['t'](_0x910f51(0x263)),'value':_0x4a5acf['BOTTOM'],'icon':_0x50af7a(_0x12270c,{})}],_0x2794d2=()=>{const _0x163ab3=_0x910f51;_0x46ad50(_0x163ab3(0x364));},_0x2e1a40=()=>{const _0x5aa7df=_0x910f51;_0x46ad50(_0x5aa7df(0x2b7));},_0xcf83f6=()=>{const _0x215376=_0x910f51;_0x46ad50(_0x215376(0x249));},_0x95a7cf=()=>{_0x46ad50('paste');},_0x139aca=()=>{const _0x2c8087=_0x910f51;_0x46ad50(_0x2c8087(0x49e));},_0x2253da=((_0x1043d3=_0x5a39df[_0x910f51(0x303)])==null?void 0x0:_0x1043d3[_0x910f51(0x216)])??_0x52b473[_0x910f51(0x216)],_0x3fbc40=_0x23e255(_0x2253da,((_0xa9a9cf=_0x5a39df[_0x910f51(0x303)])==null?void 0x0:_0xa9a9cf['branchLineType'])??_0x52b473[_0x910f51(0x416)]),_0x39ee36=_0x2f064a=>{const _0x5cc420=_0x910f51;let _0x4f76cd=_0x23e255(_0x2f064a,_0x3fbc40);On(_0x3bdf88,{..._0x4b3a2f,'scopeId':_0x5a39df[_0x5cc420(0x404)],'structureKind':_0x2f064a,..._0x4f76cd===_0x3fbc40?null:{'branchLineType':_0x4f76cd}}),_0x1b6874(null);},_0x59f23b=_0x3d034b=>{const _0x2cacfa=_0x910f51;kn(_0x3bdf88,{..._0x4b3a2f,'scopeId':_0x5a39df[_0x2cacfa(0x404)],'branchLineType':_0x3d034b}),_0x1b6874(null);},_0x57f6d6=(_0x53bead,_0x122f79,_0x189f2e,_0x4128c8=!0x1)=>_0x50af7a(_0x910f51(0x337),{'type':_0x910f51(0x337),'disabled':_0x4128c8,'className':_0x166644(_0x910f51(0x384),_0x122f79&&_0x910f51(0x305),_0x4128c8&&_0x910f51(0x2f6)),'onMouseDown':wn,'onPointerDown':wn,'onClick':_0x3863f1=>{const _0x434ac3=_0x910f51;_0x3863f1[_0x434ac3(0x233)](),!_0x4128c8&&_0x189f2e();},'children':_0x50af7a(jn,{'icon':_0x53bead[_0x910f51(0x3dc)]})},_0x53bead[_0x910f51(0x2a6)]),_0x565a0d=()=>_0x5d1226(_0x910f51(0x481),{'className':_0x910f51(0x409),'onMouseDown':_0x5b96d3=>_0x5b96d3[_0x910f51(0x233)](),'onPointerDown':_0xa18c50=>_0xa18c50[_0x910f51(0x233)](),'children':[yn[_0x910f51(0x209)](_0x3a950d=>_0x5d1226(_0x910f51(0x481),{'className':_0x910f51(0x3fe),'children':[_0x50af7a(_0x910f51(0x481),{'className':_0x910f51(0x2e9),'children':_0x3a950d[_0x910f51(0x238)]}),_0x50af7a('div',{'className':_0x910f51(0x338),'style':{'gridTemplateColumns':_0x910f51(0x46e)+_0x3a950d[_0x910f51(0x258)][_0x910f51(0x3a9)]+_0x910f51(0x24c)},'children':_0x3a950d[_0x910f51(0x258)]['map'](_0x2c6f03=>_0x57f6d6(_0x2c6f03,_0x2c6f03['value']===_0x2253da,()=>_0x39ee36(_0x2c6f03[_0x910f51(0x2a6)])))})]},_0x3a950d[_0x910f51(0x3c6)])),_0x50af7a(_0x60934,{}),_0x5d1226('div',{'className':_0x910f51(0x231),'children':[_0x50af7a(_0x910f51(0x481),{'className':_0x910f51(0x2e9),'children':bn[_0x910f51(0x238)]}),_0x50af7a(_0x910f51(0x481),{'className':_0x910f51(0x338),'style':{'gridTemplateColumns':_0x910f51(0x46e)+bn[_0x910f51(0x258)]['length']+',\x20minmax(0,\x201fr))'},'children':bn['items']['map'](_0x55d341=>_0x57f6d6(_0x55d341,_0x55d341['value']===_0x3fbc40,()=>_0x59f23b(_0x55d341[_0x910f51(0x2a6)]),_0x55d341[_0x910f51(0x2a6)]===_0x910f51(0x264)&&!_0x695402(_0x2253da)))})]})]}),_0x494b1d=_0x24cc23=>{const _0x5e1dcc=_0x910f51;switch(_0x24cc23){case'line':return _0x50af7a(_0x3e103b,{'title':_0x57eeb5['t'](_0x5e1dcc(0x265)),'shapeData':_0x15dad0,'modeOptions':[_0x5e1dcc(0x27e),_0x5e1dcc(0x30f),_0x5e1dcc(0x2bb)],'showDashDropdown':!0x1,'widthRange':{'min':hn['min'],'max':hn[_0x5e1dcc(0x4bb)],'step':0x1},'onUpdateShapeData':(_0x37331d,_0x38da9c)=>{Pn(_0x38da9c,_0x260ada);}});case'more':return _0x50af7a(_0x4c45bd,{'title':_0x57eeb5['t'](_0x5e1dcc(0x2c0)),'minWidthClassName':_0x5e1dcc(0x242),'children':_0x5d1226(_0x5e1dcc(0x481),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1','children':[_0x50af7a(_0x5a51fe,{'label':_0x57eeb5['t']('boards-mind-ui.toolbar.action.addSibling'),'shortcut':_0x442e20(vn[_0x5e1dcc(0x225)]),'onClick':_0x2794d2}),_0x50af7a(_0x5a51fe,{'label':_0x57eeb5['t']('boards-mind-ui.toolbar.action.addChild'),'shortcut':_0x442e20(vn[_0x5e1dcc(0x3cd)]),'onClick':_0x2e1a40}),_0x50af7a(_0x60934,{}),_0x50af7a(_0x5a51fe,{'label':_0x57eeb5['t'](_0x5e1dcc(0x39f)),'shortcut':_0x442e20(vn['copy']),'onClick':_0xcf83f6}),_0x50af7a(_0x5a51fe,{'label':_0x57eeb5['t'](_0x5e1dcc(0x37d)),'shortcut':_0x442e20(vn['paste']),'onClick':_0x95a7cf}),_0x50af7a(_0x5a51fe,{'label':_0x57eeb5['t'](_0x5e1dcc(0x2ab)),'shortcut':_0x442e20(vn['delete']),'onClick':_0x139aca})]})});default:return null;}},_0x1362cf=_n[_0x910f51(0x3f5)](_0x31ed83=>{const _0x1ccd8c=_0x910f51;let _0xa9ba3b=[];if(_0x31ed83[_0x1ccd8c(0x372)]&&_0xa9ba3b[_0x1ccd8c(0x330)](_0x50af7a(_0x60934,{'orientation':_0x1ccd8c(0x460)},_0x1ccd8c(0x411)+_0x31ed83['kind'])),_0x31ed83[_0x1ccd8c(0x379)]===_0x1ccd8c(0x232))return _0xa9ba3b[_0x1ccd8c(0x330)](_0x50af7a(_0x485d96,{'title':_0x57eeb5['t'](_0x1ccd8c(0x341)),'fontFamily':_0x3585c1['fontFamily'],'textStyle':{'isBold':_0x198645[_0x1ccd8c(0x415)]===!0x0,'isItalic':_0x198645['italic']===!0x0,'isUnderline':_0x198645['underline']===!0x0,'isStrike':_0x198645[_0x1ccd8c(0x391)]===!0x0},'horizontalAlign':_0x3585c1[_0x1ccd8c(0x3c4)],'verticalAlign':_0x3585c1['verticalAlign'],'horizontalAlignOptions':_0x252c21,'verticalAlignOptions':_0x364f96,'onUpdateText':_0xa6a88},_0x31ed83[_0x1ccd8c(0x379)])),_0xa9ba3b;if(_0x31ed83['kind']===_0x1ccd8c(0x351)){let _0x357393={'fs':_0x3585c1[_0x1ccd8c(0x291)],'cl':{'rgb':_0x3585c1[_0x1ccd8c(0x2c7)]},..._0x3585c1[_0x1ccd8c(0x2cb)]===void 0x0?null:{'textFill':_0x3585c1[_0x1ccd8c(0x2cb)]}};return _0xa9ba3b[_0x1ccd8c(0x330)](_0x50af7a(_0xbb0aef,{'title':_0x57eeb5['t']('boards-mind-ui.toolbar.action.fontColor'),'textStyle':_0x357393,'fallbackColor':_0x3585c1['color'],'onChange':_0x32fc1f=>_0xa6a88({'textStyle':_0x32fc1f})},_0x31ed83[_0x1ccd8c(0x379)])),_0xa9ba3b[_0x1ccd8c(0x330)](_0x50af7a(_0x169dfc,{'value':String(_0x3585c1[_0x1ccd8c(0x291)]),'onChange':_0x364a3a=>{_0xa6a88({'textStyle':{'fs':_0x364a3a}});}},_0x1ccd8c(0x313))),_0xa9ba3b;}return _0xa9ba3b[_0x1ccd8c(0x330)](_0x50af7a(_0x1e6134,{'open':_0x492f2c===_0x31ed83[_0x1ccd8c(0x300)],'overlay':_0x494b1d(_0x31ed83[_0x1ccd8c(0x300)]),'onOpenChange':_0x48f4c1=>_0x1b6874(_0x48f4c1?_0x31ed83['panel']:null),'children':_0x50af7a(_0x1ccd8c(0x25a),{'children':_0x50af7a(_0x518b99,{'title':_0x57eeb5['t'](_0x31ed83[_0x1ccd8c(0x319)]),'active':_0x492f2c===_0x31ed83[_0x1ccd8c(0x300)],'icon':Tn(Cn[_0x31ed83[_0x1ccd8c(0x300)]]),'sizeClassName':'univer-h-7\x20univer-min-w-9\x20univer-w-auto\x20univer-gap-1\x20univer-px-1.5','onMouseDown':wn,'onPointerDown':wn})})},_0x31ed83['panel'])),_0xa9ba3b;});return _0x5d1226(_0x6838b8,{'maxWidthClassName':_0x910f51(0x276),'onMouseDown':_0x530f45=>_0x530f45[_0x910f51(0x233)](),'children':[[..._0x5a39df['isRootNode']?[_0x50af7a(_0x1e6134,{'open':_0x492f2c===_0x910f51(0x303),'overlay':_0x565a0d(),'onOpenChange':_0x2ef6cf=>_0x1b6874(_0x2ef6cf?_0x910f51(0x303):null),'children':_0x50af7a(_0x910f51(0x25a),{'children':_0x50af7a(_0x518b99,{'title':_0x57eeb5['t']('boards-mind-ui.toolbar.action.layout'),'active':_0x492f2c===_0x910f51(0x303),'icon':_0x50af7a(An,{}),'sizeClassName':_0x910f51(0x26b),'onMouseDown':wn,'onPointerDown':wn})})},_0x910f51(0x410)),_0x50af7a(_0x60934,{'orientation':_0x910f51(0x460)},_0x910f51(0x443))]:[],_0x50af7a(_0x45c412,{'title':_0x57eeb5['t'](_0x910f51(0x24b)),'shapeData':_0x473f40??{},'onUpdateShapeData':_0x587e8d},'mind-map-fill'),_0x50af7a(_0x216cb9,{'title':_0x57eeb5['t']('boards-mind-ui.toolbar.action.stroke'),'shapeData':_0x473f40??{},'onUpdateShapeData':_0x587e8d},_0x910f51(0x293)),_0x50af7a(_0x60934,{'orientation':'vertical'},_0x910f51(0x267))],_0x1362cf]});}function Rn(_0x2edacb){let {left:_0x439537,top:_0x5b16e9,width:_0x48e3f0,height:_0x354897}=_0x2edacb;return{'left':_0x439537,'right':_0x439537+_0x48e3f0,'top':_0x5b16e9-0x38,'bottom':_0x5b16e9+_0x354897};}let zn=class extends _0x4a70b2{constructor(_0x4b1af1,_0x53d710,_0x532392,_0x53565a,_0x2cee16,_0x30d6fa){const _0x482510=_0x5cd39e;super(),this[_0x482510(0x3f7)]=_0x4b1af1,this[_0x482510(0x271)]=_0x53d710,this[_0x482510(0x459)]=_0x532392,this[_0x482510(0x287)]=_0x53565a,this[_0x482510(0x3f6)]=_0x2cee16,this[_0x482510(0x227)]=_0x30d6fa,G(this,_0x482510(0x386),null),G(this,'_popupSelectionKey',null),this[_0x482510(0x34d)]();}['dispose'](){const _0xa2533e=_0x5cd39e;this[_0xa2533e(0x401)](),super[_0xa2533e(0x461)]();}['_init'](){const _0x5971cd=_0x5cd39e;let _0x31050b=this[_0x5971cd(0x3f7)]['scene'][_0x5971cd(0x219)]();this[_0x5971cd(0x488)](_0x450a20(_0x31050b[_0x5971cd(0x40d)]['pipe'](_0x4deb35(this[_0x5971cd(0x35a)]))[_0x5971cd(0x4b5)](()=>this[_0x5971cd(0x328)]()))),this['disposeWithMe'](_0x450a20(_0x31050b[_0x5971cd(0x47a)][_0x5971cd(0x383)](_0x4deb35(this['dispose$']))[_0x5971cd(0x4b5)](()=>this[_0x5971cd(0x20d)]()))),this[_0x5971cd(0x488)](_0x450a20(_0x31050b[_0x5971cd(0x2e3)]['pipe'](_0x4deb35(this[_0x5971cd(0x35a)]))[_0x5971cd(0x4b5)](()=>this[_0x5971cd(0x401)]()))),this[_0x5971cd(0x488)](_0x450a20(_0x31050b[_0x5971cd(0x3d3)][_0x5971cd(0x383)](_0x4deb35(this[_0x5971cd(0x35a)]))['subscribe'](()=>setTimeout(()=>this[_0x5971cd(0x328)](),0x0)))),this['disposeWithMe'](_0x450a20(this[_0x5971cd(0x287)][_0x5971cd(0x340)][_0x5971cd(0x383)](_0x4deb35(this[_0x5971cd(0x35a)]))[_0x5971cd(0x4b5)](()=>setTimeout(()=>this['_showPopupForSelection'](),0x0)))),this['disposeWithMe'](_0x450a20(this[_0x5971cd(0x227)][_0x5971cd(0x322)][_0x5971cd(0x383)](_0x4deb35(this['dispose$']))[_0x5971cd(0x4b5)](_0x6994a5=>{const _0x23142a=_0x5971cd;if(_0x6994a5){this[_0x23142a(0x401)]();return;}setTimeout(()=>this[_0x23142a(0x328)](),0x0);}))),this[_0x5971cd(0x488)](_0x450a20(this[_0x5971cd(0x3f6)]['editingParams$']['pipe'](_0x4deb35(this[_0x5971cd(0x35a)]))[_0x5971cd(0x4b5)](_0x410282=>{const _0xf5889=_0x5971cd;if((_0x410282==null?void 0x0:_0x410282[_0xf5889(0x36e)])===this[_0xf5889(0x3f7)][_0xf5889(0x36e)]){if(_0x410282['visible']){this[_0xf5889(0x401)]();return;}setTimeout(()=>this[_0xf5889(0x328)](),0x0);}})));}[_0x5cd39e(0x401)](){const _0x1be3c4=_0x5cd39e;var _0x1c14c9;(_0x1c14c9=this[_0x1be3c4(0x386)])==null||_0x1c14c9[_0x1be3c4(0x461)](),this[_0x1be3c4(0x386)]=null,this[_0x1be3c4(0x332)]=null;}[_0x5cd39e(0x20d)](){setTimeout(()=>{const _0x4dd932=_0x49d4;this[_0x4dd932(0x497)]()||this['_clearPopup']();},0x0);}[_0x5cd39e(0x497)](){const _0x440098=_0x5cd39e;let _0x30b236=this[_0x440098(0x287)][_0x440098(0x2c9)]();return!!_0x30b236['context']&&_0x30b236[_0x440098(0x471)][_0x440098(0x3a9)]>0x0&&this['_popupSelectionKey']===this[_0x440098(0x2e0)](_0x30b236[_0x440098(0x48c)][_0x440098(0x36e)],_0x30b236[_0x440098(0x48c)][_0x440098(0x35b)],_0x30b236[_0x440098(0x471)]);}[_0x5cd39e(0x2e0)](_0x100175,_0x304232,_0x3297b5){const _0x3d6168=_0x5cd39e;return _0x100175+':'+_0x304232+':'+_0x3297b5[_0x3d6168(0x3e6)](',');}['_resolveIncomingConnectorStyle'](_0x52b3eb,_0x44049d,_0x3fa79b,_0x2bf603){const _0x3ff9d0=_0x5cd39e;let _0x3b75c0=this[_0x3ff9d0(0x459)][_0x3ff9d0(0x4a4)](_0x52b3eb,_0x44049d),_0x34c6e4=Object[_0x3ff9d0(0x255)](_0x3b75c0)[_0x3ff9d0(0x4aa)](_0x177e4e=>{const _0x14cd1d=_0x3ff9d0;let _0x1b6cc2=_0x4d74a8(_0x177e4e['element']);return(_0x1b6cc2==null?void 0x0:_0x1b6cc2[_0x14cd1d(0x462)])===_0x3fa79b&&_0x1b6cc2['childNodeId']===_0x2bf603;});if(!(!_0x34c6e4||!('connectorData'in _0x34c6e4['element'])))return _0x34c6e4['element'][_0x3ff9d0(0x252)][_0x3ff9d0(0x3f2)];}['_showPopupForSelection'](){const _0x3f77c7=_0x5cd39e;var _0x35e66b,_0x28c5b0,_0x150e77;if(this[_0x3f77c7(0x227)][_0x3f77c7(0x3ed)]){this[_0x3f77c7(0x401)]();return;}let _0x380ba3=this[_0x3f77c7(0x3f6)][_0x3f77c7(0x2ca)]();if((_0x380ba3==null?void 0x0:_0x380ba3['visible'])===!0x0&&_0x380ba3['unitId']===this[_0x3f77c7(0x3f7)][_0x3f77c7(0x36e)]){this[_0x3f77c7(0x401)]();return;}let _0x705cf6=this[_0x3f77c7(0x287)][_0x3f77c7(0x2c9)]();if(_0x705cf6[_0x3f77c7(0x42a)]){this[_0x3f77c7(0x401)]();return;}if(_0x58b522({'context':_0x705cf6[_0x3f77c7(0x48c)],'selectedIds':_0x705cf6[_0x3f77c7(0x471)],'getElementById':(_0x2d06e6,_0x315ed8,_0xd864b4)=>this[_0x3f77c7(0x459)]['getElementById'](_0x2d06e6,_0x315ed8,_0xd864b4)})[_0x3f77c7(0x34a)]!==_0x3f77c7(0x1fd)){this[_0x3f77c7(0x401)]();return;}let _0x47b31e=this[_0x3f77c7(0x3f7)][_0x3f77c7(0x240)][_0x3f77c7(0x219)]()['getSelectedObjectMap'](),_0x18ffef=Array[_0x3f77c7(0x3ee)](_0x47b31e[_0x3f77c7(0x255)]())[_0x3f77c7(0x209)](_0x3641d1=>this[_0x3f77c7(0x214)](_0x3641d1))['filter'](_0x47f253=>!!_0x47f253)[_0x3f77c7(0x2c1)](_0x1a456e=>!!_0x554e66(_0x1a456e[_0x3f77c7(0x311)]['element'])),_0x40d17c=_0x18ffef[_0x3f77c7(0x4aa)](_0x1a3987=>_0x1a3987[_0x3f77c7(0x311)]['elementId']===_0x705cf6[_0x3f77c7(0x2cf)])??_0x18ffef[0x0]??this[_0x3f77c7(0x4b9)]();if(!_0x40d17c){this['_clearPopup']();return;}let _0x1ac4b4=_0x554e66(_0x40d17c['elementData'][_0x3f77c7(0x323)]);if(!_0x1ac4b4){this[_0x3f77c7(0x401)]();return;}let _0x194d7c=(_0x35e66b=this[_0x3f77c7(0x459)][_0x3f77c7(0x4a4)](_0x40d17c[_0x3f77c7(0x311)][_0x3f77c7(0x36e)],_0x40d17c[_0x3f77c7(0x311)][_0x3f77c7(0x35b)])[_0x1ac4b4['structureScopeId']])==null?void 0x0:_0x35e66b[_0x3f77c7(0x323)],_0x2fd00a=_0x6b0265(_0x194d7c),_0x22f974=_0x194d7c==null||(_0x28c5b0=_0x194d7c['custom'])==null||(_0x28c5b0=_0x28c5b0[_0x3f77c7(0x22f)])==null||(_0x28c5b0=_0x28c5b0[_0x3f77c7(0x303)])==null?void 0x0:_0x28c5b0[_0x3f77c7(0x216)],_0x25a8bf=((_0x2fd00a==null?void 0x0:_0x2fd00a['layout'][_0x3f77c7(0x216)])??_0x22f974)==='mindmap-vertical'&&(_0x1ac4b4[_0x3f77c7(0x32f)]===null||_0x1ac4b4[_0x3f77c7(0x261)]===_0x3f77c7(0x399)),_0x2a6a6b=_0x1ac4b4[_0x3f77c7(0x32f)]!==null&&_0x1ac4b4['side']!==_0x3f77c7(0x399)&&_0x1ac4b4['side']!==_0x3f77c7(0x40a),_0x50b931=_0x25a8bf||_0x2a6a6b,_0xb60dac=((_0x150e77=_0x705cf6[_0x3f77c7(0x48c)])==null?void 0x0:_0x150e77[_0x3f77c7(0x36e)])===_0x40d17c[_0x3f77c7(0x311)][_0x3f77c7(0x36e)]&&_0x705cf6[_0x3f77c7(0x48c)][_0x3f77c7(0x35b)]===_0x40d17c[_0x3f77c7(0x311)][_0x3f77c7(0x35b)]&&_0x705cf6[_0x3f77c7(0x471)]['length']?_0x705cf6['selectedIds']:[_0x40d17c[_0x3f77c7(0x311)][_0x3f77c7(0x36f)]],_0x3e5715=this[_0x3f77c7(0x2e0)](_0x40d17c[_0x3f77c7(0x311)][_0x3f77c7(0x36e)],_0x40d17c['elementData']['subUnitId'],_0xb60dac);this[_0x3f77c7(0x386)]&&this[_0x3f77c7(0x332)]===_0x3e5715||(this[_0x3f77c7(0x401)](),this[_0x3f77c7(0x386)]=this[_0x3f77c7(0x488)](this[_0x3f77c7(0x271)][_0x3f77c7(0x29d)](_0x40d17c[_0x3f77c7(0x311)][_0x3f77c7(0x36e)],_0x40d17c[_0x3f77c7(0x311)]['subUnitId'],_0x40d17c[_0x3f77c7(0x49c)],{'componentKey':xn,'direction':_0x3f77c7(0x20a),'offset':[0x0,0x8],..._0x50b931?{'anchorBoundResolver':Rn}:null,'extraProps':{'unitId':_0x40d17c[_0x3f77c7(0x311)][_0x3f77c7(0x36e)],'subUnitId':_0x40d17c[_0x3f77c7(0x311)]['subUnitId'],'elementId':_0x40d17c[_0x3f77c7(0x311)][_0x3f77c7(0x36f)],'scopeId':_0x1ac4b4[_0x3f77c7(0x462)],'isRootNode':_0x1ac4b4[_0x3f77c7(0x32f)]===null,'left':_0x40d17c['elementData'][_0x3f77c7(0x323)][_0x3f77c7(0x2f7)]['left']??0x0,'top':_0x40d17c[_0x3f77c7(0x311)][_0x3f77c7(0x323)][_0x3f77c7(0x2f7)]['top']??0x0,'shapeData':_0x40d17c['elementData']['element'][_0x3f77c7(0x2cc)]===_0x475625['Shape']?_0x40d17c[_0x3f77c7(0x311)][_0x3f77c7(0x323)][_0x3f77c7(0x2f2)]:void 0x0,'layout':_0x2fd00a==null?void 0x0:_0x2fd00a[_0x3f77c7(0x303)],'incomingConnectorStyle':this['_resolveIncomingConnectorStyle'](_0x40d17c[_0x3f77c7(0x311)][_0x3f77c7(0x36e)],_0x40d17c[_0x3f77c7(0x311)][_0x3f77c7(0x35b)],_0x1ac4b4[_0x3f77c7(0x462)],_0x40d17c[_0x3f77c7(0x311)][_0x3f77c7(0x36f)])}})),this[_0x3f77c7(0x332)]=_0x3e5715);}[_0x5cd39e(0x4b9)](){const _0x24c7d4=_0x5cd39e;var _0x4f176b;let _0x417ef0=this['_elementStateService'][_0x24c7d4(0x2c9)](),_0x2834f2=_0x417ef0[_0x24c7d4(0x48c)],_0xbc1bfb=_0x417ef0['focusedId']??_0x417ef0[_0x24c7d4(0x471)][0x0];if(!_0x2834f2||!_0xbc1bfb)return null;let _0x31a111=this[_0x24c7d4(0x459)]['getElementById'](_0x2834f2[_0x24c7d4(0x36e)],_0x2834f2['subUnitId'],_0xbc1bfb);if(!_0x31a111||!_0x554e66(_0x31a111[_0x24c7d4(0x323)]))return null;let _0x2f14d2=_0x55cbfb(_0x2834f2[_0x24c7d4(0x36e)],_0xbc1bfb),_0x456ed8=this[_0x24c7d4(0x3f7)][_0x24c7d4(0x240)],_0x260679=((_0x4f176b=_0x456ed8['getObjectIncludeInGroup'])==null?void 0x0:_0x4f176b['call'](_0x456ed8,_0x2f14d2))??this[_0x24c7d4(0x3f7)][_0x24c7d4(0x240)][_0x24c7d4(0x2e4)](_0x2f14d2);return _0x260679?{'object':_0x260679,'elementData':_0x31a111}:null;}[_0x5cd39e(0x214)](_0x421451){const _0x9f6bcd=_0x5cd39e;var _0x24dcb7;if(!_0x421451)return null;let _0xd9ee45=_0x1781d4(_0x421451[_0x9f6bcd(0x4ae)]);if(!_0xd9ee45)return null;let _0x55261d=this['_elementStateService'][_0x9f6bcd(0x2c9)](),_0x21f75e=((_0x24dcb7=_0x55261d[_0x9f6bcd(0x48c)])==null?void 0x0:_0x24dcb7[_0x9f6bcd(0x36e)])===_0xd9ee45[_0x9f6bcd(0x36e)]?_0x55261d['context']['subUnitId']:void 0x0;if(!_0x21f75e)return null;let _0x5a7fd8=this[_0x9f6bcd(0x459)][_0x9f6bcd(0x208)](_0xd9ee45[_0x9f6bcd(0x36e)],_0x21f75e,_0xd9ee45['elementId']);return _0x5a7fd8?{'object':_0x421451,'elementData':_0x5a7fd8}:null;}};zn=q([K(0x1,_0x20cede(_0x141476)),K(0x2,_0x20cede(_0x1973ec)),K(0x3,_0x20cede(_0x44050b)),K(0x4,_0x20cede(_0x58f4d9)),K(0x5,_0x20cede(_0x7423a))],zn);const Bn=_0x5cd39e(0x202),Vn=_0x28f70c[_0x5cd39e(0x3c3)];function Hn(_0x44d300,_0x3aec74){const _0x300828=_0x5cd39e;return(_0x44d300??[])[_0x300828(0x31d)]((_0x57a554,_0x5de69e)=>(_0x57a554[_0x5de69e[_0x300828(0x261)]??_0x3aec74]['push'](_0x5de69e),_0x57a554),{'left':[],'right':[],'top':[],'bottom':[]});}function Un(_0x3e85f1){const _0x53e987=_0x5cd39e;return _0x3e85f1==='tree-left'||_0x3e85f1==='tree-right'||_0x3e85f1===_0x53e987(0x414);}function Wn(_0x1c5714){const _0x1c94a2=_0x5cd39e;return _0x1c5714==='timeline-horizontal'||_0x1c5714===_0x1c94a2(0x3b9);}function Gn(_0x3f0793,_0x2b7c99,_0x127971){const _0x5c219b=_0x5cd39e;return _0x127971==='tree-left'?_0x5c219b(0x40b):_0x127971===_0x5c219b(0x247)?_0x5c219b(0x36d):_0x3f0793[_0x5c219b(0x261)]==='left'||_0x3f0793[_0x5c219b(0x261)]===_0x5c219b(0x36d)?_0x3f0793['side']:_0x2b7c99%0x2==0x0?_0x5c219b(0x40b):'right';}function Kn(_0x4a2668,_0x22c6d7){const _0x546f37=_0x5cd39e;return(_0x22c6d7==null?void 0x0:_0x22c6d7[_0x546f37(0x397)][_0x546f37(0x4ac)])??_0x4a2668??[];}var qn=class extends _0x3002ad{constructor(_0x21656e=Bn,_0x3af2f2){const _0x19d34c=_0x5cd39e;super(_0x21656e),G(this,_0x19d34c(0x31e),{'point':null,'children':[]}),this[_0x19d34c(0x301)]=!0x1,this['zIndex']=_0x5d1061[_0x19d34c(0x295)],this[_0x19d34c(0x32a)](_0x3af2f2);}[_0x5cd39e(0x32a)](_0x504e03){const _0x54bd16=_0x5cd39e;this[_0x54bd16(0x31e)]={...this[_0x54bd16(0x31e)],..._0x504e03},this[_0x54bd16(0x31e)][_0x54bd16(0x349)]?this[_0x54bd16(0x4ad)]():this[_0x54bd16(0x23d)](),this[_0x54bd16(0x390)](!0x0);}[_0x5cd39e(0x2bc)](_0xdde6dc){return!0x1;}[_0x5cd39e(0x472)](_0x45a182,_0x33782d){const _0x5f171c=_0x5cd39e;let _0x242d7d=this[_0x5f171c(0x31e)][_0x5f171c(0x349)];if(!_0x242d7d||!this[_0x5f171c(0x436)])return this['makeDirty'](!0x1),this;let _0x9ae258=Number['isFinite'](this[_0x5f171c(0x31e)]['zoomRatio'])&&(this['_state'][_0x5f171c(0x2ea)]??0x0)>0x0?this['_state'][_0x5f171c(0x2ea)]:0x1,_0x1d75cb=_0x2df34d[_0x5f171c(0x327)],_0x51fc27=_0x2df34d['rootHeight'],_0x19e3b3=_0x2df34d[_0x5f171c(0x205)],_0x10b211=_0x2df34d[_0x5f171c(0x2ff)],_0x12b79c=_0x52b473['horizontalGap'],_0x55f913=_0x52b473[_0x5f171c(0x345)],_0xcac11d=this[_0x5f171c(0x31e)][_0x5f171c(0x216)]==='mindmap-vertical',_0x51818e=Hn(this[_0x5f171c(0x31e)][_0x5f171c(0x4ac)],_0xcac11d?_0x5f171c(0x40a):_0x5f171c(0x36d)),_0x540516=_0x242d7d['x']-_0x1d75cb/0x2,_0x3ab8ae=_0x242d7d['y']-_0x51fc27/0x2;if(_0x45a182['save'](),_0x45a182['globalAlpha']=Y['objectAlpha'],_0x45a182['lineWidth']=Y[_0x5f171c(0x463)]/_0x9ae258,_0x45a182['strokeStyle']=Y['primaryColor'],Wn(this[_0x5f171c(0x31e)]['structureKind'])){let _0x1d5534=Kn(this[_0x5f171c(0x31e)][_0x5f171c(0x4ac)],this[_0x5f171c(0x31e)][_0x5f171c(0x31a)]),_0x48c4bf=this[_0x5f171c(0x31e)][_0x5f171c(0x216)]===_0x5f171c(0x2fa);if(_0x1d5534['length']>0x0){if(_0x45a182[_0x5f171c(0x3db)](),_0x48c4bf){let _0x2f10b1=_0x19e3b3,_0x379acc=_0x10b211,_0x305482=_0x52b473[_0x5f171c(0x45e)],_0x1dba2a=_0x242d7d['y'],_0x501d74=_0x540516+_0x1d75cb,_0x2d05b8=_0x242d7d['y']-_0x379acc/0x2,_0x599547=_0x540516+_0x1d75cb+_0x305482;_0x45a182[_0x5f171c(0x38d)](_0x501d74,_0x1dba2a),_0x45a182[_0x5f171c(0x2e8)](_0x599547,_0x1dba2a),_0x1d5534[_0x5f171c(0x2d0)]((_0x3f07d0,_0x5dbc8b)=>{const _0xdc11fa=_0x5f171c;let _0x3ea1a2=_0x599547+_0x5dbc8b*(_0x2f10b1+_0x305482);if(_0x5dbc8b>0x0){let _0x274581=_0x599547+(_0x5dbc8b-0x1)*(_0x2f10b1+_0x305482)+_0x2f10b1;_0x45a182[_0xdc11fa(0x38d)](_0x274581,_0x1dba2a),_0x45a182[_0xdc11fa(0x2e8)](_0x3ea1a2,_0x1dba2a);}_0x45a182['moveTo'](_0x3ea1a2,_0x1dba2a),_0x45a182['lineTo'](_0x3ea1a2+_0x2f10b1,_0x1dba2a);}),_0x45a182[_0x5f171c(0x346)](),_0x1d5534['forEach']((_0x181f33,_0x12f425)=>{const _0x145ecc=_0x5f171c;X(_0x45a182,_0x599547+_0x12f425*(_0x2f10b1+_0x305482),_0x2d05b8,_0x2f10b1,_0x379acc,Y[_0x145ecc(0x3b4)]),_0x45a182[_0x145ecc(0x334)]=Y[_0x145ecc(0x483)],_0x45a182[_0x145ecc(0x4a6)](),_0x45a182[_0x145ecc(0x346)]();}),_0x1d5534[_0x5f171c(0x2d0)]((_0x38cbc5,_0x412b78)=>{const _0x1b6562=_0x5f171c;if(!(_0x1b6562(0x4ac)in _0x38cbc5)||_0x38cbc5[_0x1b6562(0x4ac)][_0x1b6562(0x3a9)]===0x0)return;let _0x254cb6=_0x599547+_0x412b78*(_0x2f10b1+_0x305482),_0x1d9a6d=_0x254cb6+_0x2f10b1/0x2,_0x2c5664=_0x38cbc5[_0x1b6562(0x261)]===_0x1b6562(0x40a)?_0x1b6562(0x40a):_0x1b6562(0x399),_0x5ad19f=_0x38cbc5[_0x1b6562(0x4ac)][_0x1b6562(0x3ac)](0x0,0x2),_0x708c32=_0x5ad19f[_0x1b6562(0x3a9)]*_0x379acc+Math['max'](0x0,_0x5ad19f['length']-0x1)*_0x55f913,_0x4ef378=_0x254cb6+_0x2f10b1+_0x52b473['branchGap'],_0x398c5e=_0x2c5664===_0x1b6562(0x399)?_0x2d05b8-_0x12b79c-_0x708c32:_0x2d05b8+_0x379acc+_0x12b79c,_0x468b9d=_0x398c5e+_0x708c32/0x2;_0x45a182[_0x1b6562(0x3db)](),_0x45a182['moveTo'](_0x1d9a6d,_0x2c5664===_0x1b6562(0x399)?_0x2d05b8:_0x2d05b8+_0x379acc),_0x45a182[_0x1b6562(0x2e8)](_0x1d9a6d,_0x468b9d),_0x45a182[_0x1b6562(0x2e8)](_0x4ef378,_0x468b9d),_0x5ad19f[_0x1b6562(0x2d0)]((_0x1e9d52,_0x4181da)=>{const _0x117a30=_0x1b6562;let _0x57809a=_0x398c5e+_0x4181da*(_0x379acc+_0x55f913)+_0x379acc/0x2;_0x45a182[_0x117a30(0x38d)](_0x4ef378,_0x57809a),_0x45a182['lineTo'](_0x4ef378+_0x2f10b1,_0x57809a);}),_0x45a182[_0x1b6562(0x346)](),_0x5ad19f[_0x1b6562(0x2d0)]((_0x1f1349,_0x2c8d50)=>{const _0x120113=_0x1b6562;let _0x59ff02=_0x398c5e+_0x2c8d50*(_0x379acc+_0x55f913);X(_0x45a182,_0x4ef378,_0x59ff02,_0x2f10b1,_0x379acc,Y[_0x120113(0x3b4)]),_0x45a182['fillStyle']=Y[_0x120113(0x483)],_0x45a182[_0x120113(0x4a6)](),_0x45a182['stroke']();});});}else{let _0x33e980=_0x242d7d['x'],_0x5a09b4=_0x3ab8ae+_0x51fc27,_0x5e4113=_0x52b473[_0x5f171c(0x45e)],_0x104ec6=_0x3ab8ae+_0x51fc27+_0x5e4113,_0x25f639=_0x104ec6+(_0x1d5534[_0x5f171c(0x3a9)]-0x1)*(_0x10b211+_0x5e4113)+_0x10b211/0x2;_0x45a182[_0x5f171c(0x38d)](_0x33e980,_0x5a09b4),_0x45a182[_0x5f171c(0x2e8)](_0x33e980,_0x25f639),_0x1d5534[_0x5f171c(0x2d0)]((_0x499ef1,_0x4f2fa5)=>{const _0x388bbf=_0x5f171c;let _0xbbe666=_0x104ec6+_0x4f2fa5*(_0x10b211+_0x5e4113)+_0x10b211/0x2,_0x1b8eb0=_0x499ef1[_0x388bbf(0x261)]===_0x388bbf(0x36d)?_0x388bbf(0x36d):'left',_0x57d848=_0x1b8eb0===_0x388bbf(0x36d)?_0x33e980+_0x52b473['branchGap']:_0x33e980-_0x52b473['branchGap']-_0x19e3b3,_0x529b98=_0x1b8eb0===_0x388bbf(0x36d)?_0x57d848:_0x57d848+_0x19e3b3;_0x45a182[_0x388bbf(0x38d)](_0x33e980,_0xbbe666),_0x45a182[_0x388bbf(0x2e8)](_0x529b98,_0xbbe666);}),_0x45a182['stroke'](),_0x1d5534[_0x5f171c(0x2d0)]((_0x33192d,_0x222015)=>{const _0x43355d=_0x5f171c;let _0x3205d5=_0x104ec6+_0x222015*(_0x10b211+_0x5e4113);X(_0x45a182,(_0x33192d[_0x43355d(0x261)]==='right'?'right':_0x43355d(0x40b))==_0x43355d(0x36d)?_0x33e980+_0x52b473[_0x43355d(0x20f)]:_0x33e980-_0x52b473[_0x43355d(0x20f)]-_0x19e3b3,_0x3205d5,_0x19e3b3,_0x10b211,Y[_0x43355d(0x3b4)]),_0x45a182[_0x43355d(0x334)]=Y['ghostFillColor'],_0x45a182[_0x43355d(0x4a6)](),_0x45a182['stroke']();}),_0x1d5534[_0x5f171c(0x2d0)]((_0x5c0af7,_0x4449e8)=>{const _0x1c8681=_0x5f171c;if(!(_0x1c8681(0x4ac)in _0x5c0af7)||_0x5c0af7[_0x1c8681(0x4ac)][_0x1c8681(0x3a9)]===0x0)return;let _0x3009ac=_0x104ec6+_0x4449e8*(_0x10b211+_0x5e4113)+_0x10b211/0x2,_0x2f5828=_0x5c0af7[_0x1c8681(0x261)]===_0x1c8681(0x36d)?'right':_0x1c8681(0x40b),_0x45e972=_0x5c0af7[_0x1c8681(0x4ac)][_0x1c8681(0x3ac)](0x0,0x2),_0x544c41=_0x45e972[_0x1c8681(0x3a9)]*_0x10b211+Math[_0x1c8681(0x4bb)](0x0,_0x45e972[_0x1c8681(0x3a9)]-0x1)*_0x55f913,_0x5d1f5b=_0x2f5828==='right'?_0x33e980+_0x52b473[_0x1c8681(0x20f)]:_0x33e980-_0x52b473[_0x1c8681(0x20f)]-_0x19e3b3,_0x2f010f=_0x2f5828==='right'?_0x5d1f5b+_0x19e3b3+_0x12b79c:_0x5d1f5b-_0x12b79c-_0x19e3b3,_0x4ab7c8=_0x3009ac-_0x544c41/0x2,_0x397d7c=_0x2f5828===_0x1c8681(0x36d)?_0x5d1f5b+_0x19e3b3:_0x5d1f5b,_0x45021d=_0x2f5828==='right'?_0x2f010f:_0x2f010f+_0x19e3b3;_0x45a182['beginPath'](),_0x45a182[_0x1c8681(0x38d)](_0x397d7c,_0x3009ac),_0x45a182[_0x1c8681(0x2e8)](_0x45021d,_0x3009ac),_0x45e972['forEach']((_0x40d918,_0x100dcf)=>{const _0x14dc53=_0x1c8681;let _0x1dff4a=_0x4ab7c8+_0x100dcf*(_0x10b211+_0x55f913)+_0x10b211/0x2;_0x45a182[_0x14dc53(0x38d)](_0x45021d,_0x1dff4a),_0x45a182[_0x14dc53(0x2e8)](_0x2f5828==='right'?_0x2f010f+_0x19e3b3:_0x2f010f,_0x1dff4a);}),_0x45a182[_0x1c8681(0x346)](),_0x45e972[_0x1c8681(0x2d0)]((_0x5b9b99,_0x2cdef8)=>{const _0x12344d=_0x1c8681;let _0x382291=_0x4ab7c8+_0x2cdef8*(_0x10b211+_0x55f913);X(_0x45a182,_0x2f010f,_0x382291,_0x19e3b3,_0x10b211,Y[_0x12344d(0x3b4)]),_0x45a182[_0x12344d(0x334)]=Y[_0x12344d(0x483)],_0x45a182['fill'](),_0x45a182['stroke']();});});}}}else{if(Un(this[_0x5f171c(0x31e)][_0x5f171c(0x216)])){let _0xea7ace=this[_0x5f171c(0x31e)]['children']??[],_0x10b5d2=_0x3ab8ae+_0x51fc27,_0x304fcf=_0x10b5d2+_0x12b79c,_0x2978db=_0x242d7d['x'];if(_0xea7ace[_0x5f171c(0x3a9)]>0x0){let _0x2232c0=_0x304fcf+(_0xea7ace['length']-0x1)*(_0x10b211+_0x55f913)+_0x10b211/0x2;_0x45a182[_0x5f171c(0x3db)](),_0x45a182[_0x5f171c(0x38d)](_0x2978db,_0x10b5d2),_0x45a182['lineTo'](_0x2978db,_0x2232c0),_0xea7ace['forEach']((_0x3263c8,_0x196d49)=>{const _0x48841a=_0x5f171c;let _0x56dad7=Gn(_0x3263c8,_0x196d49,this[_0x48841a(0x31e)][_0x48841a(0x216)]),_0x312d56=_0x304fcf+_0x196d49*(_0x10b211+_0x55f913),_0x4440c4=_0x56dad7===_0x48841a(0x36d)?_0x2978db+_0x12b79c:_0x2978db-_0x12b79c-_0x19e3b3,_0x52b0fc=_0x312d56+_0x10b211/0x2;_0x45a182['moveTo'](_0x2978db,_0x52b0fc),_0x45a182['lineTo'](_0x56dad7==='right'?_0x4440c4:_0x4440c4+_0x19e3b3,_0x52b0fc);}),_0x45a182[_0x5f171c(0x346)](),_0xea7ace[_0x5f171c(0x2d0)]((_0x510c0f,_0x5f01ec)=>{const _0x39591e=_0x5f171c;let _0x446ef1=Gn(_0x510c0f,_0x5f01ec,this['_state'][_0x39591e(0x216)]),_0x30e60e=_0x304fcf+_0x5f01ec*(_0x10b211+_0x55f913);X(_0x45a182,_0x446ef1===_0x39591e(0x36d)?_0x2978db+_0x12b79c:_0x2978db-_0x12b79c-_0x19e3b3,_0x30e60e,_0x19e3b3,_0x10b211,Y['ghostRadius']),_0x45a182[_0x39591e(0x334)]=Y[_0x39591e(0x483)],_0x45a182[_0x39591e(0x4a6)](),_0x45a182[_0x39591e(0x346)]();});}}else _0xcac11d&&['top','bottom'][_0x5f171c(0x2d0)](_0x4a0641=>{const _0x5e8d41=_0x5f171c;let _0x1853b8=_0x51818e[_0x4a0641];if(_0x1853b8[_0x5e8d41(0x3a9)]===0x0)return;let _0x2e0c38=_0x1853b8[_0x5e8d41(0x3a9)]*_0x19e3b3+Math[_0x5e8d41(0x4bb)](0x0,_0x1853b8[_0x5e8d41(0x3a9)]-0x1)*_0x55f913,_0x466885=_0x242d7d['x']-_0x2e0c38/0x2,_0x2a873a=_0x4a0641==='bottom'?_0x3ab8ae+_0x51fc27:_0x3ab8ae,_0x1aacfa=_0x4a0641===_0x5e8d41(0x40a)?_0x2a873a+_0x52b473['branchGap']:_0x2a873a-_0x52b473[_0x5e8d41(0x20f)],_0x54ac61=_0x4a0641===_0x5e8d41(0x40a)?_0x3ab8ae+_0x51fc27+_0x12b79c:_0x3ab8ae-_0x12b79c-_0x10b211;_0x45a182['beginPath'](),_0x45a182[_0x5e8d41(0x38d)](_0x242d7d['x'],_0x2a873a),_0x45a182[_0x5e8d41(0x2e8)](_0x242d7d['x'],_0x1aacfa),_0x1853b8[_0x5e8d41(0x3a9)]>0x1&&(_0x45a182['moveTo'](_0x466885+_0x19e3b3/0x2,_0x1aacfa),_0x45a182[_0x5e8d41(0x2e8)](_0x466885+_0x2e0c38-_0x19e3b3/0x2,_0x1aacfa)),_0x1853b8[_0x5e8d41(0x2d0)]((_0x33ed59,_0x3cde16)=>{const _0x449f48=_0x5e8d41;let _0x1342ec=_0x466885+_0x3cde16*(_0x19e3b3+_0x55f913)+_0x19e3b3/0x2;_0x45a182[_0x449f48(0x38d)](_0x1342ec,_0x1aacfa),_0x45a182[_0x449f48(0x2e8)](_0x1342ec,_0x4a0641===_0x449f48(0x40a)?_0x54ac61:_0x54ac61+_0x10b211);}),_0x45a182[_0x5e8d41(0x346)](),_0x1853b8['forEach']((_0x2fbfb2,_0x4d251f)=>{const _0x4cb390=_0x5e8d41;X(_0x45a182,_0x466885+_0x4d251f*(_0x19e3b3+_0x55f913),_0x54ac61,_0x19e3b3,_0x10b211,Y[_0x4cb390(0x3b4)]),_0x45a182[_0x4cb390(0x334)]=Y[_0x4cb390(0x483)],_0x45a182[_0x4cb390(0x4a6)](),_0x45a182[_0x4cb390(0x346)]();});});}(_0xcac11d||Un(this[_0x5f171c(0x31e)][_0x5f171c(0x216)])||Wn(this[_0x5f171c(0x31e)][_0x5f171c(0x216)])?[]:[_0x5f171c(0x40b),_0x5f171c(0x36d)])[_0x5f171c(0x2d0)](_0x1c6d91=>{const _0x2914c6=_0x5f171c;let _0x4f15cd=_0x51818e[_0x1c6d91];if(_0x4f15cd[_0x2914c6(0x3a9)]===0x0)return;let _0x2cda21=_0x4f15cd['length']*_0x10b211+Math[_0x2914c6(0x4bb)](0x0,_0x4f15cd[_0x2914c6(0x3a9)]-0x1)*_0x55f913,_0x146e9f=_0x242d7d['y']-_0x2cda21/0x2,_0x167de3=_0x1c6d91==='right'?_0x540516+_0x1d75cb:_0x540516,_0x59f0a7=_0x1c6d91===_0x2914c6(0x36d)?_0x167de3+_0x52b473[_0x2914c6(0x20f)]:_0x167de3-_0x52b473[_0x2914c6(0x20f)],_0x30775d=_0x1c6d91===_0x2914c6(0x36d)?_0x540516+_0x1d75cb+_0x12b79c:_0x540516-_0x12b79c-_0x19e3b3;_0x45a182[_0x2914c6(0x3db)](),_0x45a182[_0x2914c6(0x38d)](_0x167de3,_0x242d7d['y']),_0x45a182[_0x2914c6(0x2e8)](_0x59f0a7,_0x242d7d['y']),_0x4f15cd[_0x2914c6(0x3a9)]>0x1&&(_0x45a182[_0x2914c6(0x38d)](_0x59f0a7,_0x146e9f+_0x10b211/0x2),_0x45a182[_0x2914c6(0x2e8)](_0x59f0a7,_0x146e9f+_0x2cda21-_0x10b211/0x2)),_0x4f15cd[_0x2914c6(0x2d0)]((_0x50c044,_0x3dacef)=>{const _0x2909b6=_0x2914c6;let _0x155abb=_0x146e9f+_0x3dacef*(_0x10b211+_0x55f913)+_0x10b211/0x2;_0x45a182[_0x2909b6(0x38d)](_0x59f0a7,_0x155abb),_0x45a182['lineTo'](_0x1c6d91===_0x2909b6(0x36d)?_0x30775d:_0x30775d+_0x19e3b3,_0x155abb);}),_0x45a182[_0x2914c6(0x346)](),_0x4f15cd[_0x2914c6(0x2d0)]((_0x42045c,_0x209e09)=>{const _0xbcea69=_0x2914c6;let _0x22e82a=_0x146e9f+_0x209e09*(_0x10b211+_0x55f913);X(_0x45a182,_0x30775d,_0x22e82a,_0x19e3b3,_0x10b211,Y[_0xbcea69(0x3b4)]),_0x45a182['fillStyle']=Y[_0xbcea69(0x483)],_0x45a182[_0xbcea69(0x4a6)](),_0x45a182[_0xbcea69(0x346)]();});}),X(_0x45a182,_0x540516,_0x3ab8ae,_0x1d75cb,_0x51fc27,Y[_0x5f171c(0x454)]),_0x45a182[_0x5f171c(0x334)]=Y[_0x5f171c(0x220)],_0x45a182[_0x5f171c(0x4a6)](),_0x45a182[_0x5f171c(0x346)](),_0x45a182[_0x5f171c(0x334)]=Y[_0x5f171c(0x1f5)],_0x45a182['font']=zt(Y[_0x5f171c(0x2cd)],Y['rootFontSize'],_0x9ae258),_0x45a182[_0x5f171c(0x272)]=_0x5f171c(0x253),_0x45a182[_0x5f171c(0x418)]=_0x5f171c(0x237);let _0x198fa3=Y[_0x5f171c(0x344)]/_0x9ae258;return _0x45a182['fillText'](_0x5c59e5,_0x242d7d['x'],_0x242d7d['y'],Math[_0x5f171c(0x4bb)](0x1,_0x1d75cb-_0x198fa3*0x2)),_0x45a182['restore'](),this[_0x5f171c(0x390)](!0x1),this;}};const Jn={'children':[{'text':_0x5c59e5,'orderKey':_0x37a369(0x0),'side':_0x5cd39e(0x36d)},{'text':_0x5c59e5,'orderKey':_0x37a369(0x1),'side':_0x5cd39e(0x36d)},{'text':_0x5c59e5,'orderKey':_0x37a369(0x2),'side':_0x5cd39e(0x36d)}]};var Yn=class extends _0x1cd6b{constructor(..._0x2e2025){const _0xde2479=_0x5cd39e;super(..._0x2e2025),G(this,_0xde2479(0x2f8),Jn);}['setTemplate'](_0x28adfb){const _0x50e38c=_0x5cd39e;var _0x1765b4;let _0x58291e=(_0x28adfb==null?void 0x0:_0x28adfb[_0x50e38c(0x4ac)])??(_0x28adfb==null||(_0x1765b4=_0x28adfb[_0x50e38c(0x31a)])==null?void 0x0:_0x1765b4[_0x50e38c(0x397)][_0x50e38c(0x4ac)]);this['_template']={'rootText':_0x28adfb==null?void 0x0:_0x28adfb[_0x50e38c(0x3b8)],'structureKind':_0x28adfb==null?void 0x0:_0x28adfb[_0x50e38c(0x216)],'branchLineType':_0x28adfb==null?void 0x0:_0x28adfb[_0x50e38c(0x416)],'children':this[_0x50e38c(0x496)](_0x58291e,_0x28adfb==null?void 0x0:_0x28adfb[_0x50e38c(0x216)]),'blueprint':_0x28adfb!=null&&_0x28adfb[_0x50e38c(0x31a)]?this[_0x50e38c(0x21e)](_0x28adfb[_0x50e38c(0x31a)]):void 0x0};}[_0x5cd39e(0x2db)](){const _0x2e86d5=_0x5cd39e;var _0x5aa0f8;return{'rootText':this[_0x2e86d5(0x2f8)][_0x2e86d5(0x3b8)],'structureKind':this[_0x2e86d5(0x2f8)]['structureKind'],'branchLineType':this[_0x2e86d5(0x2f8)][_0x2e86d5(0x416)],'children':(_0x5aa0f8=this['_template'][_0x2e86d5(0x4ac)])==null?void 0x0:_0x5aa0f8[_0x2e86d5(0x209)](_0x4b56fc=>({..._0x4b56fc})),'blueprint':this[_0x2e86d5(0x2f8)][_0x2e86d5(0x31a)]?this[_0x2e86d5(0x21e)](this['_template'][_0x2e86d5(0x31a)]):void 0x0};}[_0x5cd39e(0x21e)](_0x293ab9){const _0x137f1b=_0x5cd39e;return{'title':_0x293ab9[_0x137f1b(0x238)],'root':this[_0x137f1b(0x4af)](_0x293ab9['root'])};}[_0x5cd39e(0x4af)](_0x5525b0){const _0x4440b1=_0x5cd39e;return{..._0x5525b0,'foreignAttributes':_0x5525b0[_0x4440b1(0x46a)]?{..._0x5525b0[_0x4440b1(0x46a)]}:void 0x0,'children':_0x5525b0['children'][_0x4440b1(0x209)](_0x74c224=>this['_cloneBlueprintNode'](_0x74c224))};}[_0x5cd39e(0x496)](_0x3b1aa7,_0x59fc94){const _0x537439=_0x5cd39e;let _0x2d795c=!_0x3b1aa7,_0xbbb9fd=_0x3b1aa7??Jn[_0x537439(0x4ac)];return _0xbbb9fd==null?void 0x0:_0xbbb9fd[_0x537439(0x209)]((_0x4cffa7,_0x202721)=>({..._0x4cffa7,'text':_0x4cffa7[_0x537439(0x250)]??_0x5c59e5,'side':this[_0x537439(0x400)](_0x4cffa7['side'],_0x202721,_0x59fc94,_0x2d795c)}));}[_0x5cd39e(0x400)](_0x2a3b51,_0x287ff4,_0x44f100,_0x2c047a){const _0xf6c720=_0x5cd39e;return _0x44f100===_0xf6c720(0x3d9)?_0x2c047a?'bottom':_0x2a3b51??_0xf6c720(0x40a):_0x44f100===_0xf6c720(0x2ae)?_0x2c047a?'left':_0x2a3b51??_0xf6c720(0x40b):_0x44f100===_0xf6c720(0x247)?_0x2c047a?_0xf6c720(0x36d):_0x2a3b51??'right':_0x44f100==='tree-alternate'?_0x2c047a?_0x287ff4%0x2==0x0?'left':_0xf6c720(0x36d):_0x2a3b51??(_0x287ff4%0x2==0x0?_0xf6c720(0x40b):_0xf6c720(0x36d)):_0x44f100==='timeline-horizontal'?_0x2c047a?_0x287ff4%0x2==0x0?_0xf6c720(0x399):_0xf6c720(0x40a):_0x2a3b51??(_0x287ff4%0x2==0x0?_0xf6c720(0x399):_0xf6c720(0x40a)):_0x44f100===_0xf6c720(0x3b9)?_0x2c047a?_0x287ff4%0x2==0x0?'left':_0xf6c720(0x36d):_0x2a3b51??(_0x287ff4%0x2==0x0?_0xf6c720(0x40b):_0xf6c720(0x36d)):_0x2a3b51;}};function Xn(_0x3f293e,_0xdfe93d){const _0x27e727=_0x5cd39e;let _0x567eee=Number[_0x27e727(0x41c)](_0xdfe93d['zoomRatio'])&&_0xdfe93d[_0x27e727(0x2ea)]>0x0?_0xdfe93d[_0x27e727(0x2ea)]:0x1;return{'x':Math[_0x27e727(0x366)]((_0x3f293e['offsetX']-_0xdfe93d[_0x27e727(0x36b)]['x'])/_0x567eee),'y':Math[_0x27e727(0x366)]((_0x3f293e[_0x27e727(0x3bd)]-_0xdfe93d['panOffset']['y'])/_0x567eee)};}function Zn(_0x3b6a08){const _0x5cf414=_0x5cd39e;var _0x290261;if(_0x3b6a08!=null&&_0x3b6a08[_0x5cf414(0x461)]){_0x3b6a08[_0x5cf414(0x461)]();return;}_0x3b6a08==null||(_0x290261=_0x3b6a08[_0x5cf414(0x478)])==null||_0x290261['call'](_0x3b6a08);}function Qn(_0x54c6ec){const _0xa9a6b5=_0x5cd39e;var _0x384c3c;return _0x54c6ec['activeTool']===_0x49b814[_0xa9a6b5(0x43e)]&&((_0x384c3c=_0x54c6ec[_0xa9a6b5(0x3e1)])==null?void 0x0:_0x384c3c['type'])===_0x49b814[_0xa9a6b5(0x43e)];}let $n=class extends _0x4a70b2{constructor(_0x11e591,_0x1dc88a,_0x189541,_0x3df89c,_0x253f5a,_0x27f5e6,_0x570bb6){const _0x270622=_0x5cd39e;super(),this[_0x270622(0x3f7)]=_0x11e591,this[_0x270622(0x421)]=_0x1dc88a,this[_0x270622(0x357)]=_0x189541,this[_0x270622(0x24e)]=_0x3df89c,this[_0x270622(0x444)]=_0x253f5a,this[_0x270622(0x287)]=_0x27f5e6,this[_0x270622(0x3f6)]=_0x570bb6,G(this,_0x270622(0x26f),null),G(this,_0x270622(0x3ec),null),this[_0x270622(0x34d)]();}[_0x5cd39e(0x34d)](){const _0x1bb7b4=_0x5cd39e;var _0x51bdf6;let {scene:_0x2311ad,unitId:_0x964f27}=this[_0x1bb7b4(0x3f7)],_0x22757b=this[_0x1bb7b4(0x421)][_0x1bb7b4(0x33a)](_0x964f27,_0x4aab0d['UNIVER_BOARD']);if(!_0x22757b)return;let _0x62b6bc=(_0x51bdf6=_0x2311ad[_0x1bb7b4(0x28c)])==null?void 0x0:_0x51bdf6['subscribeEvent']((_0x2a0e5f,_0x54107c)=>{const _0x3fff5e=_0x1bb7b4;this[_0x3fff5e(0x381)](_0x2a0e5f,_0x54107c);}),_0x1a9470=_0x2311ad[_0x1bb7b4(0x434)]['subscribeEvent']((_0x258847,_0x4090da)=>{const _0x2afe53=_0x1bb7b4;this[_0x2afe53(0x2ee)](_0x22757b,_0x258847,_0x4090da);});this[_0x1bb7b4(0x488)](_0x450a20(()=>Zn(_0x62b6bc))),this['disposeWithMe'](_0x450a20(()=>Zn(_0x1a9470)));let _0x3b9723=this[_0x1bb7b4(0x357)][_0x1bb7b4(0x340)][_0x1bb7b4(0x4b5)](()=>{const _0x57a63d=_0x1bb7b4;this['_syncSceneInputMode'](),this[_0x57a63d(0x2c5)]();});this[_0x1bb7b4(0x488)](_0x450a20(()=>Zn(_0x3b9723))),this[_0x1bb7b4(0x488)](_0x450a20(()=>{const _0x3ac91a=_0x1bb7b4;_0x2311ad[_0x3ac91a(0x221)](),this[_0x3ac91a(0x24a)]();})),this[_0x1bb7b4(0x358)](),this[_0x1bb7b4(0x2c5)]();}['_syncSceneInputMode'](){const _0x3e3cfc=_0x5cd39e;Qn(this[_0x3e3cfc(0x357)][_0x3e3cfc(0x4bf)]())?this[_0x3e3cfc(0x3f7)]['scene'][_0x3e3cfc(0x281)]():this[_0x3e3cfc(0x3f7)][_0x3e3cfc(0x240)]['enableObjectsEvent']();}[_0x5cd39e(0x2c5)](){const _0x1f01f2=_0x5cd39e;var _0x4715d8,_0x30c175;let _0x14ead1=this[_0x1f01f2(0x357)][_0x1f01f2(0x4bf)]();if(!Qn(_0x14ead1)){this['_removePreviewObject']();return;}let _0x4658b2=this['_ensurePreviewObject'](),_0x59202e=this[_0x1f01f2(0x444)][_0x1f01f2(0x2db)]();_0x4658b2[_0x1f01f2(0x32a)]({'point':this[_0x1f01f2(0x3ec)],'structureKind':_0x59202e[_0x1f01f2(0x216)],'children':_0x59202e[_0x1f01f2(0x4ac)],'blueprint':_0x59202e[_0x1f01f2(0x31a)],'zoomRatio':_0x14ead1[_0x1f01f2(0x2ea)]}),(_0x4715d8=(_0x30c175=this[_0x1f01f2(0x3f7)][_0x1f01f2(0x240)])[_0x1f01f2(0x390)])==null||_0x4715d8[_0x1f01f2(0x445)](_0x30c175,!0x0);}[_0x5cd39e(0x3f9)](){const _0x559c98=_0x5cd39e;var _0xadd58c,_0x446d8e;if(this[_0x559c98(0x26f)])return this['_previewObject'];let _0x46e9c0=this[_0x559c98(0x444)]['getTemplate'](),_0x17bac5=new qn(Bn,{'point':this[_0x559c98(0x3ec)],'structureKind':_0x46e9c0[_0x559c98(0x216)],'children':_0x46e9c0[_0x559c98(0x4ac)],'blueprint':_0x46e9c0['blueprint'],'zoomRatio':this['_stateService'][_0x559c98(0x4bf)]()[_0x559c98(0x2ea)]});return this['_previewObject']=_0x17bac5,(_0xadd58c=(_0x446d8e=this[_0x559c98(0x3f7)][_0x559c98(0x240)])[_0x559c98(0x3a8)])==null||_0xadd58c[_0x559c98(0x445)](_0x446d8e,_0x17bac5,Vn),_0x17bac5;}[_0x5cd39e(0x24a)](){const _0x3d2707=_0x5cd39e;var _0x39e6b3,_0x1afc0d,_0x110e42,_0x540cc5;if(!this['_previewObject']){this[_0x3d2707(0x3ec)]=null;return;}(_0x39e6b3=(_0x1afc0d=this[_0x3d2707(0x3f7)][_0x3d2707(0x240)])[_0x3d2707(0x299)])==null||_0x39e6b3[_0x3d2707(0x445)](_0x1afc0d,[this[_0x3d2707(0x26f)]]),this['_previewObject']=null,this[_0x3d2707(0x3ec)]=null,(_0x110e42=(_0x540cc5=this[_0x3d2707(0x3f7)][_0x3d2707(0x240)])['makeDirty'])==null||_0x110e42['call'](_0x540cc5,!0x0);}['_getPointFromEvent'](_0x4bfb6d){const _0x41add1=_0x5cd39e;let _0x48e538=this[_0x41add1(0x357)][_0x41add1(0x4bf)]();return Xn(_0x4bfb6d,{'panOffset':_0x48e538['viewportPanOffset'],'zoomRatio':_0x48e538[_0x41add1(0x2ea)]});}[_0x5cd39e(0x49d)](_0x4df8a8){const _0x33e438=_0x5cd39e;return{'left':Math[_0x33e438(0x366)](_0x4df8a8['x']-_0x2df34d[_0x33e438(0x327)]/0x2),'top':Math['round'](_0x4df8a8['y']-_0x2df34d[_0x33e438(0x4a3)]/0x2)};}[_0x5cd39e(0x381)](_0x411549,_0x1c4308){const _0x2416fa=_0x5cd39e;Qn(this[_0x2416fa(0x357)][_0x2416fa(0x4bf)]())&&(this[_0x2416fa(0x3ec)]=this[_0x2416fa(0x2c3)](_0x411549),this[_0x2416fa(0x2c5)](),_0x1c4308[_0x2416fa(0x233)]());}[_0x5cd39e(0x2ee)](_0x30ca0c,_0x10eff1,_0x396787){const _0x4efc00=_0x5cd39e;var _0x38a92f;let _0x5e23ca=this[_0x4efc00(0x357)][_0x4efc00(0x4bf)](),_0xb9ba4=_0x10eff1[_0x4efc00(0x337)]??0x0;if(!Qn(_0x5e23ca)||_0xb9ba4!==0x0)return;let _0x15a51a=this[_0x4efc00(0x2c3)](_0x10eff1),_0x4aa151=this['_resolveRootTopLeft'](_0x15a51a),_0x279260=this[_0x4efc00(0x444)][_0x4efc00(0x2db)](),_0x9331f4=_0x57c380(0x6),_0x3ec829=_0x30ca0c[_0x4efc00(0x270)](),_0x129ea4=this[_0x4efc00(0x24e)]['executeCommand'](_0x5c6398['id'],{'unitId':this[_0x4efc00(0x3f7)][_0x4efc00(0x36e)],'subUnitId':_0x3ec829,'left':_0x4aa151[_0x4efc00(0x40b)],'top':_0x4aa151[_0x4efc00(0x399)],'rootNodeId':_0x9331f4,'rootText':_0x279260[_0x4efc00(0x3b8)],'structureKind':_0x279260['structureKind'],'branchLineType':_0x279260['branchLineType'],'children':_0x279260[_0x4efc00(0x4ac)],'blueprint':_0x279260[_0x4efc00(0x31a)]});Promise[_0x4efc00(0x412)](_0x129ea4)['then'](_0x36a709=>{const _0x18baea=_0x4efc00;if(!_0x36a709)return;let _0x23b7d8={'unitId':this[_0x18baea(0x3f7)][_0x18baea(0x36e)],'subUnitId':_0x3ec829};this[_0x18baea(0x287)][_0x18baea(0x239)](_0x23b7d8,[_0x9331f4],_0x9331f4),this[_0x18baea(0x3f6)]['ignoreExternalFocusChanges'](),this[_0x18baea(0x3f6)][_0x18baea(0x318)]({..._0x23b7d8,'shapeId':_0x9331f4,'shapeKey':_0x55cbfb(_0x23b7d8['unitId'],_0x9331f4),'visible':!0x0});}),this['_stateService'][_0x4efc00(0x2c6)](_0x49b814[_0x4efc00(0x2da)]),_0x396787[_0x4efc00(0x233)](),(_0x38a92f=_0x10eff1['preventDefault'])==null||_0x38a92f['call'](_0x10eff1);}};$n=q([K(0x1,_0x3b7906),K(0x2,_0x297a03),K(0x3,_0x59364d),K(0x4,_0x20cede(Yn)),K(0x5,_0x44050b),K(0x6,_0x20cede(_0x58f4d9))],$n);var er=class extends _0x1cd6b{constructor(..._0x5b6da2){const _0x52c4c3=_0x5cd39e;super(..._0x5b6da2),G(this,_0x52c4c3(0x40f),new _0x2246ad()),G(this,_0x52c4c3(0x486),this[_0x52c4c3(0x40f)][_0x52c4c3(0x42e)]());}['notify'](_0x1c84fe){this['_refresh$']['next'](_0x1c84fe);}['dispose'](){const _0x471941=_0x5cd39e;this[_0x471941(0x40f)]['complete'](),super[_0x471941(0x461)]();}};function tr(_0xd1736b){const _0x1a0372=_0x5cd39e;return typeof _0xd1736b==_0x1a0372(0x2d2)&&Number[_0x1a0372(0x41c)](_0xd1736b)&&_0xd1736b>0x0;}function nr(_0x4fa3c7,_0x34f42c,_0x2f2418){const _0x2d5c63=_0x5cd39e;let _0x2e2210=_0x4fa3c7[_0x34f42c],_0x483af3=_0x554e66(_0x2e2210==null?void 0x0:_0x2e2210[_0x2d5c63(0x323)]);if(!_0x2e2210||!_0x483af3)return null;let _0x5557be=_0x4f1e84(_0x2e2210,_0x2f2418);if(!_0x5557be)return null;let _0x23fd9=_0x2e2210[_0x2d5c63(0x2f7)]??_0x2e2210[_0x2d5c63(0x323)]['transform'];return _0x5bed8c({..._0x4fa3c7,[_0x34f42c]:{..._0x2e2210,'transform':{..._0x23fd9,'width':_0x5557be[_0x2d5c63(0x433)],'height':_0x5557be['height']},'element':{..._0x2e2210[_0x2d5c63(0x323)],'transform':{..._0x2e2210[_0x2d5c63(0x323)][_0x2d5c63(0x2f7)],'width':_0x5557be[_0x2d5c63(0x433)],'height':_0x5557be['height']}}}},_0x483af3[_0x2d5c63(0x462)]);}let rr=class extends _0x4a70b2{constructor(_0x168998,_0xefbdd8,_0x4a2317,_0x4bbdc1,_0x5965f4){const _0x1478b9=_0x5cd39e;super(),this['_renderContext']=_0x168998,this[_0x1478b9(0x469)]=_0xefbdd8,this[_0x1478b9(0x459)]=_0x4a2317,this['_textEditingService']=_0x4bbdc1,this[_0x1478b9(0x455)]=_0x5965f4,G(this,_0x1478b9(0x420),null),G(this,_0x1478b9(0x3a5),{'match':_0x3d9d1f=>_0x3d9d1f['unitId']===this['_renderContext'][_0x1478b9(0x36e)]&&!!_0x554e66(_0x3d9d1f[_0x1478b9(0x323)]),'resolveHostSize':_0x2c643b=>this[_0x1478b9(0x2d9)](_0x2c643b),'previewHostSize':_0x51a839=>this[_0x1478b9(0x4b6)](_0x51a839),'updateHostSize':_0x248df5=>this[_0x1478b9(0x479)](_0x248df5)}),this['disposeWithMe'](this[_0x1478b9(0x469)][_0x1478b9(0x44f)](this['_provider'])),this['_initEditingRestore'](),this[_0x1478b9(0x488)](_0x450a20(()=>this[_0x1478b9(0x4b4)]()));}[_0x5cd39e(0x479)](_0x1492b2){const _0x4e0625=_0x5cd39e;return this[_0x4e0625(0x4b6)](_0x1492b2);}[_0x5cd39e(0x4b6)](_0x44d805){const _0x4c9364=_0x5cd39e;let _0x4af276=this[_0x4c9364(0x2d9)](_0x44d805);if(!_0x4af276)return!0x1;let _0x56e09a=_0x44d805[_0x4c9364(0x311)][_0x4c9364(0x2f7)]??_0x44d805[_0x4c9364(0x311)][_0x4c9364(0x323)]['transform'];return!this[_0x4c9364(0x420)]&&_0x56e09a[_0x4c9364(0x433)]===_0x4af276[_0x4c9364(0x433)]&&_0x56e09a[_0x4c9364(0x23e)]===_0x4af276[_0x4c9364(0x23e)]||this[_0x4c9364(0x2de)](_0x44d805,_0x4af276),!0x0;}[_0x5cd39e(0x2d9)](_0x25d189){const _0x5a98f9=_0x5cd39e;return!tr(_0x25d189['params'][_0x5a98f9(0x433)])||!tr(_0x25d189[_0x5a98f9(0x4ba)][_0x5a98f9(0x23e)])?null:_0x4f1e84(_0x25d189['elementData'],{'width':_0x25d189['params'][_0x5a98f9(0x433)],'height':_0x25d189[_0x5a98f9(0x4ba)][_0x5a98f9(0x23e)]});}[_0x5cd39e(0x298)](){const _0x3e6f18=_0x5cd39e;this[_0x3e6f18(0x488)](_0x450a20(this[_0x3e6f18(0x2af)][_0x3e6f18(0x32b)]['pipe'](_0x4deb35(this[_0x3e6f18(0x35a)]))['subscribe'](_0xa93c8c=>{const _0x582eab=_0x3e6f18;_0xa93c8c||this[_0x582eab(0x4b4)]();})));}[_0x5cd39e(0x2de)](_0xa8eba7,_0xae0c9f){const _0x5e71e2=_0x5cd39e;var _0x472dfd;let _0x3b665a=this[_0x5e71e2(0x459)][_0x5e71e2(0x4a4)](_0xa8eba7['params'][_0x5e71e2(0x36e)],_0xa8eba7[_0x5e71e2(0x4ba)][_0x5e71e2(0x35b)]),_0x512dd0=nr(_0x3b665a,_0xa8eba7['params'][_0x5e71e2(0x26e)],_0xae0c9f),_0x99c304=_0x554e66((_0x472dfd=_0x3b665a[_0xa8eba7[_0x5e71e2(0x4ba)]['shapeId']])==null?void 0x0:_0x472dfd['element']);!_0x512dd0||!_0x99c304||(this['_activePreview']={'unitId':_0xa8eba7['params'][_0x5e71e2(0x36e)],'subUnitId':_0xa8eba7[_0x5e71e2(0x4ba)][_0x5e71e2(0x35b)],'scopeId':_0x99c304[_0x5e71e2(0x462)]},this[_0x5e71e2(0x45d)](_0x512dd0,_0x99c304[_0x5e71e2(0x462)])&&this[_0x5e71e2(0x455)][_0x5e71e2(0x2df)]({'unitId':_0xa8eba7[_0x5e71e2(0x4ba)][_0x5e71e2(0x36e)],'subUnitId':_0xa8eba7[_0x5e71e2(0x4ba)][_0x5e71e2(0x35b)],'nodeId':_0xa8eba7[_0x5e71e2(0x4ba)][_0x5e71e2(0x26e)],'scopeId':_0x99c304[_0x5e71e2(0x462)]}));}[_0x5cd39e(0x4b4)](){const _0x2d8231=_0x5cd39e;let _0xea48e5=this['_activePreview'];if(!_0xea48e5)return;this[_0x2d8231(0x420)]=null;let _0x4db195=this['_boardElementService'][_0x2d8231(0x4a4)](_0xea48e5[_0x2d8231(0x36e)],_0xea48e5[_0x2d8231(0x35b)]);this['_syncElementDataToScene'](_0x4db195,_0xea48e5['scopeId'])&&this[_0x2d8231(0x455)][_0x2d8231(0x2df)]({'unitId':_0xea48e5['unitId'],'subUnitId':_0xea48e5[_0x2d8231(0x35b)],'nodeId':_0xea48e5[_0x2d8231(0x404)],'scopeId':_0xea48e5[_0x2d8231(0x404)]});}[_0x5cd39e(0x45d)](_0x5e62a4,_0x5a253b){const _0x41fa53=_0x5cd39e;let _0x19a338=!0x1;if(Object[_0x41fa53(0x255)](_0x5e62a4)[_0x41fa53(0x2d0)](_0x4b82b1=>{const _0x3ac352=_0x41fa53;var _0x3592c8;let _0x1a0a03=_0x554e66(_0x4b82b1['element']),_0x32098b=(_0x3592c8=_0x4b82b1[_0x3ac352(0x323)][_0x3ac352(0x2f5)])==null?void 0x0:_0x3592c8[_0x3ac352(0x402)];if(_0x4b82b1[_0x3ac352(0x36f)]!==_0x5a253b&&(_0x1a0a03==null?void 0x0:_0x1a0a03[_0x3ac352(0x462)])!==_0x5a253b&&(_0x32098b==null?void 0x0:_0x32098b[_0x3ac352(0x462)])!==_0x5a253b)return;let _0x50c01d=this[_0x3ac352(0x41a)](_0x4b82b1['elementId']);_0x50c01d&&(_0x19a338=_0xea6e63(_0x50c01d,_0x4b82b1,{'elementData':_0x5e62a4,'unitId':this['_renderContext'][_0x3ac352(0x36e)]})||_0x19a338);}),_0x19a338){var _0xe1bc3,_0x1af9c3;this[_0x41fa53(0x3f7)]['scene']['makeDirty'](!0x0),(_0xe1bc3=(_0x1af9c3=this[_0x41fa53(0x3f7)][_0x41fa53(0x240)])[_0x41fa53(0x2bf)])==null||_0xe1bc3[_0x41fa53(0x445)](_0x1af9c3);}return _0x19a338;}[_0x5cd39e(0x41a)](_0xa011d2){const _0x283329=_0x5cd39e;var _0x284bc6;let _0x489a0e=_0x55cbfb(this[_0x283329(0x3f7)][_0x283329(0x36e)],_0xa011d2),_0x947636=this[_0x283329(0x3f7)][_0x283329(0x240)];return((_0x284bc6=_0x947636[_0x283329(0x230)])==null?void 0x0:_0x284bc6[_0x283329(0x445)](_0x947636,_0x489a0e))??this[_0x283329(0x3f7)][_0x283329(0x240)][_0x283329(0x2e4)](_0x489a0e)??null;}};rr=q([K(0x1,_0x20cede(_0x32986d)),K(0x2,_0x20cede(_0x1973ec)),K(0x3,_0x20cede(_0x58f4d9)),K(0x4,_0x20cede(er))],rr);const Q={'radius':0x12,'addChildRadius':0xe,'siblingHoverRadius':0xa,'siblingDotRadius':0x5,'siblingDotGap':0x3,'gap':0xa,'collapsePlusMinDistance':0x2c,'primaryColor':J[_0x5cd39e(0x220)],'surfaceColor':J[_0x5cd39e(0x46f)],'borderWidth':0x2,'glyphSize':0x8,'addChildGlyphSize':0x6,'siblingGlyphSize':5.5,'glyphWidth':2.4,'glyphHoverWidth':0x3,'badgeFontWeight':0x258,'badgeFontSize':0x12,'fontFamily':J['fontFamily']};function ir(_0x1e0aa9){const _0x2d4f8f=_0x5cd39e;let _0x32f933=Q[_0x2d4f8f(0x373)],_0x13bac7=Q[_0x2d4f8f(0x32d)],_0x1c4d79=Q[_0x2d4f8f(0x251)],_0x262fd1=Q[_0x2d4f8f(0x2dd)],_0xe4350b=Q[_0x2d4f8f(0x3c8)],_0x32a2a3=_0xe4350b+Q[_0x2d4f8f(0x470)],_0x11ebf7=Q[_0x2d4f8f(0x2fc)],_0xfba025=_0x1e0aa9[_0x2d4f8f(0x42d)][_0x2d4f8f(0x399)]+_0x1e0aa9['bounds'][_0x2d4f8f(0x23e)]/0x2,_0x1f54cf=_0x1e0aa9[_0x2d4f8f(0x42d)][_0x2d4f8f(0x40b)]+_0x1e0aa9[_0x2d4f8f(0x42d)][_0x2d4f8f(0x433)]/0x2,_0x435e39=_0x1e0aa9[_0x2d4f8f(0x42d)][_0x2d4f8f(0x40b)]-_0x32f933-_0x262fd1,_0x16dfb5=_0x1e0aa9[_0x2d4f8f(0x42d)][_0x2d4f8f(0x40b)]+_0x1e0aa9[_0x2d4f8f(0x42d)][_0x2d4f8f(0x433)]+_0x32f933+_0x262fd1,_0x3a12a0=_0x1e0aa9['bounds'][_0x2d4f8f(0x399)]-_0x32f933-_0x262fd1,_0x79b73d=_0x1e0aa9[_0x2d4f8f(0x42d)][_0x2d4f8f(0x399)]+_0x1e0aa9[_0x2d4f8f(0x42d)][_0x2d4f8f(0x23e)]+_0x32f933+_0x262fd1,_0x282b01=_0x1e0aa9[_0x2d4f8f(0x42d)][_0x2d4f8f(0x40b)]-_0x13bac7-_0x262fd1,_0x330d18=_0x1e0aa9[_0x2d4f8f(0x42d)]['left']+_0x1e0aa9['bounds'][_0x2d4f8f(0x433)]+_0x13bac7+_0x262fd1,_0x14dba9=_0x1e0aa9[_0x2d4f8f(0x42d)]['top']-_0x13bac7-_0x262fd1,_0x1827d1=_0x1e0aa9[_0x2d4f8f(0x42d)][_0x2d4f8f(0x399)]+_0x1e0aa9[_0x2d4f8f(0x42d)]['height']+_0x13bac7+_0x262fd1,_0x28b6e9=[],_0x2977d2=_0x1e0aa9[_0x2d4f8f(0x261)]===_0x2d4f8f(0x399)||_0x1e0aa9[_0x2d4f8f(0x261)]==='bottom',_0x33cb0e=_0x2977d2?_0x1f54cf:_0x1e0aa9['side']==='left'?_0x435e39:_0x16dfb5,_0x8c48b=_0x2977d2?_0x1e0aa9[_0x2d4f8f(0x261)]===_0x2d4f8f(0x399)?_0x3a12a0:_0x79b73d:_0xfba025;if(_0x1e0aa9[_0x2d4f8f(0x290)]&&_0x1e0aa9['collapsedDescendantCount']>0x0)return _0x28b6e9['push']({'kind':_0x2d4f8f(0x439),'x':_0x33cb0e,'y':_0x8c48b,'radius':_0x32f933,'badgeCount':_0x1e0aa9['collapsedDescendantCount']}),_0x28b6e9;if(_0x1e0aa9[_0x2d4f8f(0x473)]?(_0x1e0aa9[_0x2d4f8f(0x3bf)]??(_0x2977d2?['top',_0x2d4f8f(0x40a)]:['left',_0x2d4f8f(0x36d)]))[_0x2d4f8f(0x2d0)](_0x4f2718=>{const _0x5c0032=_0x2d4f8f;_0x4f2718===_0x5c0032(0x399)?_0x28b6e9[_0x5c0032(0x330)]({'kind':_0x5c0032(0x360),'x':_0x1f54cf,'y':_0x14dba9,'radius':_0x13bac7}):_0x4f2718===_0x5c0032(0x40a)?_0x28b6e9[_0x5c0032(0x330)]({'kind':_0x5c0032(0x2d1),'x':_0x1f54cf,'y':_0x1827d1,'radius':_0x13bac7}):_0x4f2718===_0x5c0032(0x40b)?_0x28b6e9[_0x5c0032(0x330)]({'kind':_0x5c0032(0x22b),'x':_0x282b01,'y':_0xfba025,'radius':_0x13bac7}):_0x28b6e9[_0x5c0032(0x330)]({'kind':_0x5c0032(0x30a),'x':_0x330d18,'y':_0xfba025,'radius':_0x13bac7});}):(_0x28b6e9[_0x2d4f8f(0x330)]({'kind':_0x1e0aa9[_0x2d4f8f(0x261)]==='left'?_0x2d4f8f(0x22b):_0x1e0aa9[_0x2d4f8f(0x261)]==='top'?_0x2d4f8f(0x360):_0x1e0aa9[_0x2d4f8f(0x261)]===_0x2d4f8f(0x40a)?_0x2d4f8f(0x2d1):_0x2d4f8f(0x30a),'x':_0x2977d2?_0x1f54cf:_0x1e0aa9[_0x2d4f8f(0x261)]===_0x2d4f8f(0x40b)?_0x282b01:_0x330d18,'y':_0x2977d2?_0x1e0aa9['side']===_0x2d4f8f(0x399)?_0x14dba9:_0x1827d1:_0xfba025,'radius':_0x13bac7}),_0x2977d2?(_0x28b6e9[_0x2d4f8f(0x330)]({'kind':_0x2d4f8f(0x47d),'placement':_0x2d4f8f(0x304),'x':_0x1e0aa9['bounds'][_0x2d4f8f(0x40b)]-_0x32a2a3,'y':_0xfba025,'radius':_0x1c4d79,'visualRadius':_0xe4350b}),_0x28b6e9[_0x2d4f8f(0x330)]({'kind':_0x2d4f8f(0x4b2),'placement':_0x2d4f8f(0x2fd),'x':_0x1e0aa9[_0x2d4f8f(0x42d)][_0x2d4f8f(0x40b)]+_0x1e0aa9[_0x2d4f8f(0x42d)][_0x2d4f8f(0x433)]+_0x32a2a3,'y':_0xfba025,'radius':_0x1c4d79,'visualRadius':_0xe4350b})):(_0x28b6e9[_0x2d4f8f(0x330)]({'kind':_0x2d4f8f(0x47d),'placement':_0x2d4f8f(0x304),'x':_0x1f54cf,'y':_0x1e0aa9[_0x2d4f8f(0x42d)][_0x2d4f8f(0x399)]-_0x32a2a3,'radius':_0x1c4d79,'visualRadius':_0xe4350b}),_0x28b6e9[_0x2d4f8f(0x330)]({'kind':_0x2d4f8f(0x4b2),'placement':'after','x':_0x1f54cf,'y':_0x1e0aa9[_0x2d4f8f(0x42d)][_0x2d4f8f(0x399)]+_0x1e0aa9['bounds']['height']+_0x32a2a3,'radius':_0x1c4d79,'visualRadius':_0xe4350b}))),_0x1e0aa9[_0x2d4f8f(0x290)]){let _0x2d7f80={'kind':_0x2d4f8f(0x439),'x':_0x33cb0e,'y':_0x8c48b,'radius':_0x32f933};_0x28b6e9[_0x2d4f8f(0x330)](_0x2d7f80);let _0x1ed486=_0x28b6e9['find'](_0x775f3b=>_0x775f3b[_0x2d4f8f(0x379)]===(_0x1e0aa9[_0x2d4f8f(0x261)]==='left'?'add-child-left':_0x1e0aa9[_0x2d4f8f(0x261)]===_0x2d4f8f(0x399)?_0x2d4f8f(0x360):_0x1e0aa9[_0x2d4f8f(0x261)]===_0x2d4f8f(0x40a)?'add-child-bottom':_0x2d4f8f(0x30a)));_0x1ed486&&Math['hypot'](_0x1ed486['x']-_0x2d7f80['x'],_0x1ed486['y']-_0x2d7f80['y'])<_0x11ebf7&&(_0x1e0aa9[_0x2d4f8f(0x261)]==='top'||_0x1e0aa9[_0x2d4f8f(0x261)]===_0x2d4f8f(0x40a)?_0x1ed486['y']=_0x2d7f80['y']+(_0x1e0aa9[_0x2d4f8f(0x261)]===_0x2d4f8f(0x399)?-_0x11ebf7:_0x11ebf7):_0x1ed486['x']=_0x2d7f80['x']+(_0x1e0aa9[_0x2d4f8f(0x261)]===_0x2d4f8f(0x40b)?-_0x11ebf7:_0x11ebf7));}return _0x28b6e9;}const ar=_0x5cd39e(0x2d5),or=_0x28f70c[_0x5cd39e(0x39b)];function sr(_0x416151,_0x202140){const _0x178e89=_0x5cd39e;return!!_0x416151&&_0x416151[_0x178e89(0x379)]===_0x202140['kind']&&_0x416151['x']===_0x202140['x']&&_0x416151['y']===_0x202140['y'];}var cr=class extends _0x3002ad{constructor(_0x44c5b8=ar,_0x1316d9){const _0x5bd006=_0x5cd39e;super(_0x44c5b8),G(this,_0x5bd006(0x31e),{'controls':[]}),this['evented']=!0x0,this[_0x5bd006(0x26c)]=_0x5d1061[_0x5bd006(0x39c)],this[_0x5bd006(0x32a)](_0x1316d9);}[_0x5cd39e(0x32a)](_0x3754bb){const _0x3700fc=_0x5cd39e;this[_0x3700fc(0x31e)]={...this[_0x3700fc(0x31e)],..._0x3754bb},this[_0x3700fc(0x31e)][_0x3700fc(0x2b5)]['length']>0x0?this[_0x3700fc(0x4ad)]():this[_0x3700fc(0x23d)](),this[_0x3700fc(0x390)](!0x0);}[_0x5cd39e(0x21c)](_0x4b1637){const _0x54c6b2=_0x5cd39e;!_0x4b1637&&!this['_state'][_0x54c6b2(0x388)]||_0x4b1637&&sr(this['_state'][_0x54c6b2(0x388)],_0x4b1637)||(this['_state']={...this['_state'],'hoveredControl':_0x4b1637},this[_0x54c6b2(0x390)](!0x0));}[_0x5cd39e(0x226)](_0x3e43f8){const _0x5517b6=_0x5cd39e;for(let _0x32869d=this[_0x5517b6(0x31e)][_0x5517b6(0x2b5)][_0x5517b6(0x3a9)]-0x1;_0x32869d>=0x0;--_0x32869d){let _0x1143ab=this[_0x5517b6(0x31e)]['controls'][_0x32869d];if(Math['hypot'](_0x3e43f8['x']-_0x1143ab['x'],_0x3e43f8['y']-_0x1143ab['y'])<=_0x1143ab[_0x5517b6(0x373)])return _0x1143ab;}return null;}[_0x5cd39e(0x2bc)](_0x49b14f){const _0x36b83e=_0x5cd39e;return!!this[_0x36b83e(0x226)]({'x':_0x49b14f['x'],'y':_0x49b14f['y']});}['render'](_0x408eb9,_0x211344){const _0x2898ee=_0x5cd39e;return!this[_0x2898ee(0x436)]||this[_0x2898ee(0x31e)][_0x2898ee(0x2b5)][_0x2898ee(0x3a9)]===0x0?(this[_0x2898ee(0x390)](!0x1),this):(_0x408eb9[_0x2898ee(0x2a2)](),this[_0x2898ee(0x31e)][_0x2898ee(0x2b5)][_0x2898ee(0x2d0)](_0x27a1b7=>{const _0x57c10f=_0x2898ee;let _0x549879=sr(this['_state'][_0x57c10f(0x388)],_0x27a1b7),_0xa9fb84=_0x27a1b7['badgeCount']!==void 0x0,_0x386b8a=_0x27a1b7[_0x57c10f(0x379)]==='add-child-left'||_0x27a1b7[_0x57c10f(0x379)]==='add-child-right'||_0x27a1b7[_0x57c10f(0x379)]===_0x57c10f(0x360)||_0x27a1b7[_0x57c10f(0x379)]===_0x57c10f(0x2d1),_0x2a709f=_0x27a1b7[_0x57c10f(0x379)]===_0x57c10f(0x47d)||_0x27a1b7[_0x57c10f(0x379)]===_0x57c10f(0x4b2),_0x5b6bc6=_0x2a709f&&!_0x549879?_0x27a1b7[_0x57c10f(0x217)]??_0x27a1b7[_0x57c10f(0x373)]:_0x27a1b7['radius'];if(_0x408eb9[_0x57c10f(0x3db)](),_0x408eb9[_0x57c10f(0x334)]=_0x27a1b7['kind']===_0x57c10f(0x439)?Q['surfaceColor']:Q[_0x57c10f(0x220)],_0x408eb9[_0x57c10f(0x474)]=Q[_0x57c10f(0x220)],_0x408eb9[_0x57c10f(0x484)]=Q['borderWidth'],_0x408eb9['arc'](_0x27a1b7['x'],_0x27a1b7['y'],_0x5b6bc6,0x0,Math['PI']*0x2),_0x408eb9[_0x57c10f(0x4a6)](),(!_0x2a709f||_0x549879)&&_0x408eb9[_0x57c10f(0x346)](),!_0xa9fb84&&(!_0x2a709f||_0x549879)){if(_0x408eb9[_0x57c10f(0x3db)](),_0x408eb9[_0x57c10f(0x474)]=_0x27a1b7[_0x57c10f(0x379)]==='toggle-collapse'?Q['primaryColor']:Q[_0x57c10f(0x46f)],_0x408eb9[_0x57c10f(0x484)]=_0x2a709f?Q[_0x57c10f(0x35c)]:_0x549879?Q[_0x57c10f(0x3c2)]:Q[_0x57c10f(0x35c)],_0x408eb9[_0x57c10f(0x489)]='round',_0x27a1b7[_0x57c10f(0x379)]===_0x57c10f(0x439)){let _0x387123=Q[_0x57c10f(0x3eb)];_0x408eb9[_0x57c10f(0x38d)](_0x27a1b7['x']+_0x387123/0x2,_0x27a1b7['y']-_0x387123),_0x408eb9[_0x57c10f(0x2e8)](_0x27a1b7['x']-_0x387123/0x2,_0x27a1b7['y']),_0x408eb9[_0x57c10f(0x2e8)](_0x27a1b7['x']+_0x387123/0x2,_0x27a1b7['y']+_0x387123);}else{let _0x1dacc6=_0x2a709f?Q[_0x57c10f(0x377)]:_0x386b8a?Q[_0x57c10f(0x3b1)]:Q[_0x57c10f(0x3eb)];_0x408eb9[_0x57c10f(0x38d)](_0x27a1b7['x']-_0x1dacc6,_0x27a1b7['y']),_0x408eb9[_0x57c10f(0x2e8)](_0x27a1b7['x']+_0x1dacc6,_0x27a1b7['y']),_0x408eb9[_0x57c10f(0x38d)](_0x27a1b7['x'],_0x27a1b7['y']-_0x1dacc6),_0x408eb9[_0x57c10f(0x2e8)](_0x27a1b7['x'],_0x27a1b7['y']+_0x1dacc6);}_0x408eb9[_0x57c10f(0x346)]();}_0xa9fb84&&(_0x408eb9[_0x57c10f(0x334)]=Q[_0x57c10f(0x220)],_0x408eb9[_0x57c10f(0x43c)]=Q[_0x57c10f(0x3fd)]+'\x20'+Q[_0x57c10f(0x33b)]+_0x57c10f(0x451)+Q['fontFamily'],_0x408eb9[_0x57c10f(0x272)]=_0x57c10f(0x253),_0x408eb9[_0x57c10f(0x418)]=_0x57c10f(0x237),_0x408eb9['fillText'](String(_0x27a1b7[_0x57c10f(0x4ab)]),_0x27a1b7['x'],_0x27a1b7['y']));}),_0x408eb9[_0x2898ee(0x3e4)](),this[_0x2898ee(0x390)](!0x1),this);}};function lr(_0x433456){const _0x54208c=_0x5cd39e;return _0x433456===_0x54208c(0x2ae)||_0x433456==='tree-right'||_0x433456===_0x54208c(0x414);}function ur(_0x4bfed5){const _0x2b0c4a=_0x5cd39e;return _0x4bfed5===_0x2b0c4a(0x2fa)||_0x4bfed5===_0x2b0c4a(0x3b9);}function dr(_0x59f110,_0x38e471){const _0xafe3f6=_0x5cd39e;let _0x75033c=Number[_0xafe3f6(0x41c)](_0x38e471['zoomRatio'])&&_0x38e471[_0xafe3f6(0x2ea)]>0x0?_0x38e471[_0xafe3f6(0x2ea)]:0x1;return{'x':Math[_0xafe3f6(0x366)]((_0x59f110[_0xafe3f6(0x28d)]-_0x38e471[_0xafe3f6(0x36b)]['x'])/_0x75033c),'y':Math[_0xafe3f6(0x366)]((_0x59f110['offsetY']-_0x38e471[_0xafe3f6(0x36b)]['y'])/_0x75033c)};}let fr=class extends _0x4a70b2{constructor(_0x4a5e40,_0x178486,_0x39b073,_0x337709,_0x30e8c0,_0x5da8a1,_0x4adf65){const _0x77a9a7=_0x5cd39e;super(),this[_0x77a9a7(0x3f7)]=_0x4a5e40,this[_0x77a9a7(0x459)]=_0x178486,this['_elementStateService']=_0x39b073,this['_stateService']=_0x337709,this[_0x77a9a7(0x24e)]=_0x30e8c0,this['_boardTextEditingService']=_0x5da8a1,this[_0x77a9a7(0x455)]=_0x4adf65,G(this,'_object',null),G(this,'_objectEventDisposables',null),G(this,'_activeNodeId',null),G(this,_0x77a9a7(0x1ff),null),this[_0x77a9a7(0x34d)]();}['_init'](){const _0x19e8db=_0x5cd39e;var _0x1f3e5b,_0x5eedb1,_0xec39cd;let {scene:_0x277897}=this[_0x19e8db(0x3f7)],_0x1bc49e=(_0x1f3e5b=_0x277897[_0x19e8db(0x219)])==null?void 0x0:_0x1f3e5b['call'](_0x277897);_0x1bc49e&&(this[_0x19e8db(0x488)](_0x450a20(_0x1bc49e['changing$'][_0x19e8db(0x383)](_0x4deb35(this['dispose$']))[_0x19e8db(0x4b5)](({objects:_0x381da6})=>{this['_syncControls'](_0x381da6,{'hideRootControls':!0x0});}))),this[_0x19e8db(0x488)](_0x450a20(_0x1bc49e[_0x19e8db(0x3d3)][_0x19e8db(0x383)](_0x4deb35(this[_0x19e8db(0x35a)]))['subscribe'](_0x33e710=>{const _0x5e0f42=_0x19e8db;let _0x3ed024=_0x33e710==null?void 0x0:_0x33e710[_0x5e0f42(0x243)];this['_syncControls'](_0x3ed024),setTimeout(()=>this[_0x5e0f42(0x321)](_0x3ed024),0x0);})))),this[_0x19e8db(0x488)](_0x450a20(this[_0x19e8db(0x287)][_0x19e8db(0x340)][_0x19e8db(0x383)](_0x4deb35(this[_0x19e8db(0x35a)]))['subscribe'](()=>this[_0x19e8db(0x321)]()))),this['disposeWithMe'](_0x450a20(this[_0x19e8db(0x357)][_0x19e8db(0x340)]['pipe'](_0x4deb35(this[_0x19e8db(0x35a)]))[_0x19e8db(0x4b5)](()=>this['_syncControls']()))),this['disposeWithMe'](_0x450a20(this[_0x19e8db(0x455)][_0x19e8db(0x486)][_0x19e8db(0x383)](_0x4deb35(this[_0x19e8db(0x35a)]))[_0x19e8db(0x4b5)](_0x49524e=>{const _0x2901ab=_0x19e8db;let _0x18d9b9=this['_elementStateService'][_0x2901ab(0x2c9)]()['context'];!_0x18d9b9||_0x18d9b9['unitId']!==_0x49524e[_0x2901ab(0x36e)]||_0x18d9b9[_0x2901ab(0x35b)]!==_0x49524e[_0x2901ab(0x35b)]||this[_0x2901ab(0x1ff)]&&this['_activeScopeId']!==_0x49524e[_0x2901ab(0x404)]||this[_0x2901ab(0x321)]();}))),this[_0x19e8db(0x488)](_0x450a20(_0x277897[_0x19e8db(0x28c)][_0x19e8db(0x3ea)](_0x27b252=>this[_0x19e8db(0x381)](_0x27b252)))),this[_0x19e8db(0x488)](_0x450a20(_0x277897[_0x19e8db(0x434)]['subscribeEvent']({'priority':0x4,'next':([_0x5d6dda,_0x47a3c5])=>{const _0x33503e=_0x19e8db;this[_0x33503e(0x2ee)](_0x5d6dda)&&this[_0x33503e(0x3f4)](_0x5d6dda,_0x47a3c5);}}))),this[_0x19e8db(0x488)](_0x450a20(((_0x5eedb1=_0x277897[_0x19e8db(0x376)])==null?void 0x0:_0x5eedb1[_0x19e8db(0x3ea)]({'priority':0x4,'next':([_0x45bd93,_0x2a1fe9])=>{const _0x409273=_0x19e8db;this['_isControlEvent'](_0x45bd93)&&this[_0x409273(0x3f4)](_0x45bd93,_0x2a1fe9);}}))??{'dispose':()=>{}})),this['disposeWithMe'](_0x450a20(((_0xec39cd=_0x277897['onDblclick$'])==null?void 0x0:_0xec39cd['subscribeEvent']({'priority':0x4,'next':([_0x577e4d,_0x432385])=>{this['_isControlEvent'](_0x577e4d)&&this['_consumeControlEvent'](_0x577e4d,_0x432385);}}))??{'dispose':()=>{}})),this['disposeWithMe'](_0x450a20(()=>this[_0x19e8db(0x20b)]())),this['_syncControls']();}[_0x5cd39e(0x3cc)](){const _0x3d15e5=_0x5cd39e;return this[_0x3d15e5(0x234)]?this[_0x3d15e5(0x234)]:(this[_0x3d15e5(0x234)]=new cr(ar),this[_0x3d15e5(0x385)](this['_object']),this['_renderContext']['scene'][_0x3d15e5(0x3a8)](this['_object'],or),this[_0x3d15e5(0x234)]);}[_0x5cd39e(0x385)](_0x3cce27){const _0x246bae=_0x5cd39e;var _0x3e7818;(_0x3e7818=this[_0x246bae(0x241)])==null||_0x3e7818[_0x246bae(0x461)]();let _0x553bdd=new _0x1a0936();_0x553bdd[_0x246bae(0x370)](_0x3cce27[_0x246bae(0x434)][_0x246bae(0x3ea)]({'priority':0x4,'next':([_0x4732ba,_0xe45c03])=>{const _0x2d432b=_0x246bae;this[_0x2d432b(0x2ee)](_0x4732ba)&&this[_0x2d432b(0x3f4)](_0x4732ba,_0xe45c03);}})),_0x553bdd[_0x246bae(0x370)](_0x3cce27[_0x246bae(0x376)][_0x246bae(0x3ea)]({'priority':0x4,'next':([_0x20c783,_0x1710a5])=>{const _0x5438dd=_0x246bae;this[_0x5438dd(0x2bd)](_0x20c783)&&this[_0x5438dd(0x3f4)](_0x20c783,_0x1710a5);}})),_0x553bdd[_0x246bae(0x370)](_0x3cce27[_0x246bae(0x2fe)][_0x246bae(0x3ea)]({'priority':0x4,'next':([_0x3d95b0,_0x194d54])=>{const _0x8c325c=_0x246bae;this['_isControlEvent'](_0x3d95b0)&&this[_0x8c325c(0x3f4)](_0x3d95b0,_0x194d54);}})),this[_0x246bae(0x241)]=_0x553bdd;}[_0x5cd39e(0x20b)](){const _0x35af21=_0x5cd39e;var _0x49842d;this[_0x35af21(0x234)]&&(this[_0x35af21(0x3f7)][_0x35af21(0x240)]['removeObjects']([this[_0x35af21(0x234)]]),(_0x49842d=this[_0x35af21(0x241)])==null||_0x49842d[_0x35af21(0x461)](),this[_0x35af21(0x241)]=null,this[_0x35af21(0x234)]=null,this[_0x35af21(0x2e7)]=null,this[_0x35af21(0x1ff)]=null,this[_0x35af21(0x3f7)][_0x35af21(0x240)]['makeDirty'](!0x0));}[_0x5cd39e(0x321)](_0x2abb4f,_0x2a8e9a){const _0x3cd25c=_0x5cd39e;var _0x4584ea,_0x58e1a9;let _0xb4d371=this[_0x3cd25c(0x287)][_0x3cd25c(0x2c9)](),_0x563b00=_0xb4d371[_0x3cd25c(0x48c)],_0x453e41=_0xb4d371[_0x3cd25c(0x2cf)]??_0xb4d371[_0x3cd25c(0x471)][0x0];if(!_0x563b00||!_0x453e41||_0xb4d371[_0x3cd25c(0x471)][_0x3cd25c(0x3a9)]!==0x1){this[_0x3cd25c(0x20b)]();return;}let _0x5af379=this[_0x3cd25c(0x459)][_0x3cd25c(0x4a4)](_0x563b00['unitId'],_0x563b00[_0x3cd25c(0x35b)]),_0x1a1cd6=_0x5af379[_0x453e41],_0x2c3b26=_0x554e66(_0x1a1cd6==null?void 0x0:_0x1a1cd6['element']);if(!_0x1a1cd6||!_0x2c3b26){this[_0x3cd25c(0x20b)]();return;}let _0x26b150=_0x55cbfb(_0x563b00[_0x3cd25c(0x36e)],_0x453e41);if(_0x2a8e9a!=null&&_0x2a8e9a[_0x3cd25c(0x335)]&&_0x2c3b26[_0x3cd25c(0x32f)]==null&&_0x2abb4f!=null&&_0x2abb4f['has'](_0x26b150)){this[_0x3cd25c(0x20b)]();return;}let _0x21de2d=this[_0x3cd25c(0x2ba)](_0x5af379,_0x563b00[_0x3cd25c(0x36e)],_0x453e41,_0x2abb4f);if(!_0x21de2d){this[_0x3cd25c(0x20b)]();return;}let _0x370d75=Object[_0x3cd25c(0x255)](_0x5af379)[_0x3cd25c(0x2c1)](_0x3b5c16=>{const _0x202db0=_0x3cd25c;var _0x16c9fb;return((_0x16c9fb=_0x554e66(_0x3b5c16[_0x202db0(0x323)]))==null?void 0x0:_0x16c9fb[_0x202db0(0x32f)])===_0x453e41;}),_0x2a5fed=_0x2c3b26[_0x3cd25c(0x3b0)]?this['_countDescendants'](_0x5af379,_0x453e41):0x0;this['_activeNodeId']=_0x453e41,this[_0x3cd25c(0x1ff)]=_0x2c3b26[_0x3cd25c(0x462)];let _0x106549=(_0x4584ea=_0x5af379[_0x2c3b26[_0x3cd25c(0x462)]])==null?void 0x0:_0x4584ea['element'],_0x781eab=_0x6b0265(_0x106549),_0x21d173=_0x106549==null||(_0x58e1a9=_0x106549[_0x3cd25c(0x2f5)])==null||(_0x58e1a9=_0x58e1a9[_0x3cd25c(0x22f)])==null||(_0x58e1a9=_0x58e1a9[_0x3cd25c(0x303)])==null?void 0x0:_0x58e1a9[_0x3cd25c(0x216)],_0x55c26f=(_0x781eab==null?void 0x0:_0x781eab[_0x3cd25c(0x303)][_0x3cd25c(0x216)])??_0x21d173,_0x148a3f=_0x2c3b26['parentNodeId']==null,_0x397251=this[_0x3cd25c(0x2a0)](_0x2c3b26['side'],_0x148a3f,_0x55c26f);this[_0x3cd25c(0x3cc)]()['updateState']({'controls':ir({'bounds':_0x21de2d,'isRoot':_0x148a3f,'side':_0x397251,'rootChildSides':this[_0x3cd25c(0x37c)](_0x148a3f,_0x55c26f),'hasChildren':_0x370d75[_0x3cd25c(0x3a9)]>0x0,'collapsedDescendantCount':_0x2a5fed})}),this[_0x3cd25c(0x3f7)][_0x3cd25c(0x240)]['makeDirty'](!0x0);}[_0x5cd39e(0x2a0)](_0x1c3165,_0x219a15,_0x5e64b6){const _0x39e829=_0x5cd39e;return _0x5e64b6==='timeline-vertical'?!_0x219a15&&(_0x1c3165===_0x39e829(0x40b)||_0x1c3165===_0x39e829(0x36d))?_0x1c3165:_0x39e829(0x40a):_0x5e64b6===_0x39e829(0x3d9)?!_0x219a15&&(_0x1c3165===_0x39e829(0x399)||_0x1c3165==='bottom')?_0x1c3165:'bottom':_0x1c3165==='left'?'left':'right';}[_0x5cd39e(0x37c)](_0x38b920,_0xfec5a4){const _0x52c280=_0x5cd39e;if(_0x38b920){if(lr(_0xfec5a4))return[_0x52c280(0x40a)];if(_0xfec5a4===_0x52c280(0x2fa))return[_0x52c280(0x36d)];if(_0xfec5a4===_0x52c280(0x3b9))return[_0x52c280(0x40a)];}}[_0x5cd39e(0x259)](_0x5790de){const _0x223e14=_0x5cd39e;var _0x1573f1,_0x3f083d;let _0xe5e002=this[_0x223e14(0x287)][_0x223e14(0x2c9)]()[_0x223e14(0x48c)];if(!_0xe5e002||!this[_0x223e14(0x2e7)])return;let _0x5d8a47=this['_boardElementService'][_0x223e14(0x4a4)](_0xe5e002['unitId'],_0xe5e002[_0x223e14(0x35b)]),_0x288b62=_0x554e66((_0x1573f1=_0x5d8a47[this[_0x223e14(0x2e7)]])==null?void 0x0:_0x1573f1[_0x223e14(0x323)]),_0x35315a=_0x288b62?_0x6b0265((_0x3f083d=_0x5d8a47[_0x288b62['structureScopeId']])==null?void 0x0:_0x3f083d['element']):null;if(!((_0x288b62==null?void 0x0:_0x288b62[_0x223e14(0x32f)])==null&&(lr(_0x35315a==null?void 0x0:_0x35315a[_0x223e14(0x303)]['structureKind'])||ur(_0x35315a==null?void 0x0:_0x35315a[_0x223e14(0x303)][_0x223e14(0x216)]))))return _0x5790de==='add-child-left'?_0x223e14(0x40b):_0x5790de===_0x223e14(0x360)?_0x223e14(0x399):_0x5790de===_0x223e14(0x2d1)?'bottom':_0x223e14(0x36d);}[_0x5cd39e(0x2ba)](_0x5d3114,_0x2d80fc,_0x130efb,_0x666124){const _0x2e669a=_0x5cd39e;var _0xf95378,_0x475179;let _0x3c9f2f=_0x55cbfb(_0x2d80fc,_0x130efb),_0x1a7ed5=_0x666124==null?void 0x0:_0x666124['get'](_0x3c9f2f),_0x588b4c=this[_0x2e669a(0x45b)](_0x1a7ed5);if(_0x588b4c)return _0x588b4c;let _0x2d355d=this['_renderContext'][_0x2e669a(0x240)],_0xb33461=((_0xf95378=_0x2d355d[_0x2e669a(0x230)])==null?void 0x0:_0xf95378[_0x2e669a(0x445)](_0x2d355d,_0x3c9f2f))??((_0x475179=_0x2d355d[_0x2e669a(0x2e4)])==null?void 0x0:_0x475179[_0x2e669a(0x445)](_0x2d355d,_0x3c9f2f));return this[_0x2e669a(0x45b)](_0xb33461)||_0x3b0740(_0x5d3114,_0x130efb);}[_0x5cd39e(0x45b)](_0x392847){const _0x29b5f4=_0x5cd39e;return _0x392847&&Number[_0x29b5f4(0x41c)](_0x392847[_0x29b5f4(0x40b)])&&Number[_0x29b5f4(0x41c)](_0x392847['top'])&&Number[_0x29b5f4(0x41c)](_0x392847[_0x29b5f4(0x433)])&&Number['isFinite'](_0x392847[_0x29b5f4(0x23e)])?{'left':_0x392847[_0x29b5f4(0x40b)],'top':_0x392847[_0x29b5f4(0x399)],'width':_0x392847[_0x29b5f4(0x433)],'height':_0x392847['height']}:null;}[_0x5cd39e(0x3fa)](_0x58649,_0x4457c6){const _0x4bbf13=_0x5cd39e;return Object['values'](_0x58649)[_0x4bbf13(0x2c1)](_0x329e5c=>{const _0xb8f1eb=_0x4bbf13;var _0x386835;return((_0x386835=_0x554e66(_0x329e5c[_0xb8f1eb(0x323)]))==null?void 0x0:_0x386835[_0xb8f1eb(0x32f)])===_0x4457c6;})[_0x4bbf13(0x31d)]((_0x303230,_0x155ecd)=>_0x303230+0x1+this['_countDescendants'](_0x58649,_0x155ecd['elementId']),0x0);}['_handlePointerMove'](_0x2b9946){const _0x2648a7=_0x5cd39e;if(!this['_object'])return;let _0x21f7c5=this[_0x2648a7(0x357)][_0x2648a7(0x4bf)](),_0x134752=dr(_0x2b9946,{'panOffset':_0x21f7c5[_0x2648a7(0x307)],'zoomRatio':_0x21f7c5[_0x2648a7(0x2ea)]});this[_0x2648a7(0x234)][_0x2648a7(0x21c)](this[_0x2648a7(0x234)][_0x2648a7(0x226)](_0x134752));}[_0x5cd39e(0x2ee)](_0x418c98){const _0x598627=_0x5cd39e;if(!this[_0x598627(0x234)]||!this['_activeNodeId']||(_0x418c98['button']??0x0)!==0x0)return!0x1;let _0x1a865a=this[_0x598627(0x287)][_0x598627(0x2c9)]()[_0x598627(0x48c)];if(!_0x1a865a)return!0x1;let _0xe6e9e1=this['_stateService'][_0x598627(0x4bf)](),_0x225a6d=dr(_0x418c98,{'panOffset':_0xe6e9e1[_0x598627(0x307)],'zoomRatio':_0xe6e9e1[_0x598627(0x2ea)]}),_0x5e7015=this[_0x598627(0x234)][_0x598627(0x226)](_0x225a6d);if(!_0x5e7015)return!0x1;if(_0x5e7015['kind']===_0x598627(0x439))return this[_0x598627(0x3ae)](_0x5332c0['id'],{'unitId':_0x1a865a[_0x598627(0x36e)],'subUnitId':_0x1a865a[_0x598627(0x35b)],'nodeId':this[_0x598627(0x2e7)]}),!0x0;if(_0x5e7015[_0x598627(0x379)]===_0x598627(0x22b)||_0x5e7015['kind']===_0x598627(0x30a)||_0x5e7015['kind']===_0x598627(0x360)||_0x5e7015[_0x598627(0x379)]==='add-child-bottom'){let _0x2a34b5=_0x57c380(0x6);return this[_0x598627(0x3e7)](_0x5a7781['id'],{'unitId':_0x1a865a['unitId'],'subUnitId':_0x1a865a[_0x598627(0x35b)],'parentNodeId':this[_0x598627(0x2e7)],'side':this['_resolveCreateChildSide'](_0x5e7015['kind']),'nodeId':_0x2a34b5,'connectorId':_0x57c380(0x6)},_0x2a34b5),!0x0;}if(_0x5e7015[_0x598627(0x379)]===_0x598627(0x47d)||_0x5e7015[_0x598627(0x379)]===_0x598627(0x4b2)){let _0x12a3ca=_0x57c380(0x6);return this['_executeCreateAndEdit'](_0x31669e['id'],{'unitId':_0x1a865a['unitId'],'subUnitId':_0x1a865a[_0x598627(0x35b)],'nodeId':this['_activeNodeId'],'placement':_0x5e7015[_0x598627(0x33c)]??(_0x5e7015[_0x598627(0x379)]===_0x598627(0x47d)?'before':'after'),'siblingNodeId':_0x12a3ca,'connectorId':_0x57c380(0x6)},_0x12a3ca),!0x0;}return!0x0;}['_isControlEvent'](_0x2af83c){const _0x1dba76=_0x5cd39e;if(!this[_0x1dba76(0x234)]||(_0x2af83c['button']??0x0)!==0x0)return!0x1;let _0x378e88=this[_0x1dba76(0x357)][_0x1dba76(0x4bf)](),_0xbf3e69=dr(_0x2af83c,{'panOffset':_0x378e88['viewportPanOffset'],'zoomRatio':_0x378e88[_0x1dba76(0x2ea)]});return!!this[_0x1dba76(0x234)][_0x1dba76(0x226)](_0xbf3e69);}['_consumeControlEvent'](_0x5eef8f,_0x36a917){const _0x35e8ea=_0x5cd39e;var _0xa36df8,_0x506e27;_0x36a917['stopPropagation'](),(_0xa36df8=_0x5eef8f[_0x35e8ea(0x2b6)])==null||_0xa36df8[_0x35e8ea(0x445)](_0x5eef8f),(_0x506e27=_0x5eef8f[_0x35e8ea(0x233)])==null||_0x506e27[_0x35e8ea(0x445)](_0x5eef8f);}[_0x5cd39e(0x3ae)](_0x591e67,_0x2592f4){const _0x571028=_0x5cd39e;let _0xbab18=this[_0x571028(0x1ff)],_0x35578b=this[_0x571028(0x24e)][_0x571028(0x389)](_0x591e67,_0x2592f4);Promise['resolve'](_0x35578b)['then'](_0x4e0f37=>{const _0x50b132=_0x571028;!_0x4e0f37||!_0xbab18||(this[_0x50b132(0x321)](),Promise[_0x50b132(0x412)](this['_commandService'][_0x50b132(0x389)](_0x189a28['id'],{'unitId':_0x2592f4[_0x50b132(0x36e)],'subUnitId':_0x2592f4[_0x50b132(0x35b)],'scopeId':_0xbab18}))['then'](()=>this[_0x50b132(0x321)]()));});}[_0x5cd39e(0x3e7)](_0x740695,_0x4b01fd,_0x558b83){const _0x43de08=_0x5cd39e;let _0x18a0c7={'unitId':_0x4b01fd[_0x43de08(0x36e)],'subUnitId':_0x4b01fd['subUnitId']},_0x4a65d3=this['_commandService'][_0x43de08(0x389)](_0x740695,_0x4b01fd);Promise[_0x43de08(0x412)](_0x4a65d3)[_0x43de08(0x431)](_0xada5ca=>{const _0x7ca468=_0x43de08;_0xada5ca&&(this['_syncControls'](),this[_0x7ca468(0x287)]['selectElements'](_0x18a0c7,[_0x558b83],_0x558b83),this[_0x7ca468(0x3f6)][_0x7ca468(0x228)](),this[_0x7ca468(0x3f6)]['setEditing']({..._0x18a0c7,'shapeId':_0x558b83,'shapeKey':_0x55cbfb(_0x18a0c7[_0x7ca468(0x36e)],_0x558b83),'visible':!0x0}));});}};fr=q([K(0x1,_0x20cede(_0x1973ec)),K(0x2,_0x20cede(_0x44050b)),K(0x3,_0x20cede(_0x297a03)),K(0x4,_0x59364d),K(0x5,_0x20cede(_0x58f4d9)),K(0x6,_0x20cede(er))],fr);const pr=_0x5cd39e(0x446);let mr=class extends _0x4a70b2{constructor(_0x5bbab1,_0x2b5d0b,_0x7e9f7b,_0x55952e,_0x533ae0){const _0x52360d=_0x5cd39e;super(),this[_0x52360d(0x459)]=_0x5bbab1,this[_0x52360d(0x287)]=_0x2b5d0b,this[_0x52360d(0x365)]=_0x7e9f7b,this[_0x52360d(0x24e)]=_0x55952e,this['_shortcutService']=_0x533ae0,this[_0x52360d(0x34d)]();}['_init'](){const _0x293f29=_0x5cd39e;this['disposeWithMe'](this['_shortcutService']['registerShortcut'](this[_0x293f29(0x4b3)]())),this[_0x293f29(0x488)](_0x450a20(this[_0x293f29(0x287)][_0x293f29(0x340)][_0x293f29(0x383)](_0x4deb35(this['dispose$']))['subscribe'](()=>{this['_syncMindMapTextEditorContext']();}))),this[_0x293f29(0x488)](_0x450a20(()=>{const _0x321a48=_0x293f29;this[_0x321a48(0x365)][_0x321a48(0x268)](pr,!0x1);})),this['_syncMindMapTextEditorContext']();}[_0x5cd39e(0x4b3)](){const _0x5f2894=_0x5cd39e;return{'id':_0x45ff11,'binding':_0x5ac689[_0x5f2894(0x211)]|_0x3b20d6[_0x5f2894(0x207)],'priority':0x3e8,'preconditions':_0x58b13f=>_0x58b13f[_0x5f2894(0x3e8)](_0x5f2894(0x446))&&this['_commandService'][_0x5f2894(0x394)](_0x45ff11)};}[_0x5cd39e(0x464)](){const _0x474517=_0x5cd39e;this['_contextService']['setContextValue'](pr,this[_0x474517(0x2ec)]());}[_0x5cd39e(0x2ec)](){const _0xb11370=_0x5cd39e;var _0x452a9c;let _0x46378e=this[_0xb11370(0x287)][_0xb11370(0x2c9)](),_0x2cdb23=_0x46378e[_0xb11370(0x48c)],_0x5309c8=_0x46378e[_0xb11370(0x21d)];return!_0x2cdb23||!_0x5309c8?!0x1:!!_0x554e66((_0x452a9c=this[_0xb11370(0x459)][_0xb11370(0x4a4)](_0x2cdb23[_0xb11370(0x36e)],_0x2cdb23['subUnitId'])[_0x5309c8])==null?void 0x0:_0x452a9c[_0xb11370(0x323)]);}['dispose'](){const _0x50878d=_0x5cd39e;super['dispose'](),this[_0x50878d(0x365)][_0x50878d(0x268)](pr,!0x1);}};mr=q([K(0x0,_0x20cede(_0x1973ec)),K(0x1,_0x20cede(_0x44050b)),K(0x2,_0x54f4db),K(0x3,_0x59364d),K(0x4,_0xf5ea37)],mr);const hr=['structure',_0x5cd39e(0x303),_0x5cd39e(0x308)];_0x52b473[_0x5cd39e(0x447)],_0x52b473[_0x5cd39e(0x345)],_0x52b473[_0x5cd39e(0x20f)];const gr=[{'labelKey':_0x5cd39e(0x432),'key':'horizontalGap',..._0x2ccb6b['horizontalGap']},{'labelKey':_0x5cd39e(0x28f),'key':_0x5cd39e(0x345),..._0x2ccb6b[_0x5cd39e(0x345)]},{'labelKey':_0x5cd39e(0x204),'key':_0x5cd39e(0x20f),..._0x2ccb6b[_0x5cd39e(0x20f)]}],_r=[{'labelKey':_0x5cd39e(0x315),'value':'right'},{'labelKey':_0x5cd39e(0x39a),'value':_0x5cd39e(0x40b)},{'labelKey':_0x5cd39e(0x30b),'value':'both'}],vr=[{'labelKey':_0x5cd39e(0x46d),'value':_0x5cd39e(0x3f0)},{'labelKey':'boards-mind-ui.panel.structureKind.mindmapVertical','value':_0x5cd39e(0x3d9)},{'labelKey':'boards-mind-ui.panel.structureKind.treeRight','value':_0x5cd39e(0x247)},{'labelKey':_0x5cd39e(0x297),'value':_0x5cd39e(0x2ae)},{'labelKey':'boards-mind-ui.panel.structureKind.treeAlternate','value':_0x5cd39e(0x414)},{'labelKey':'boards-mind-ui.panel.structureKind.timelineHorizontal','value':'timeline-horizontal'},{'labelKey':_0x5cd39e(0x3da),'value':'timeline-vertical'}],yr=[{'labelKey':_0x5cd39e(0x27b),'value':'curve'},{'labelKey':_0x5cd39e(0x3c0),'value':_0x5cd39e(0x42c)},{'labelKey':_0x5cd39e(0x21f),'value':_0x5cd39e(0x2e2)}];function br(_0x34f8a3){const _0xefb3f7=_0x5cd39e;let _0x2ba9d7=(_0x34f8a3==null?void 0x0:_0x34f8a3[_0xefb3f7(0x216)])??_0x52b473['structureKind'];return{'spacing':{'horizontalGap':(_0x34f8a3==null?void 0x0:_0x34f8a3['horizontalGap'])??_0x52b473[_0xefb3f7(0x447)],'siblingGap':(_0x34f8a3==null?void 0x0:_0x34f8a3[_0xefb3f7(0x345)])??_0x52b473['siblingGap'],'branchGap':(_0x34f8a3==null?void 0x0:_0x34f8a3[_0xefb3f7(0x20f)])??_0x52b473[_0xefb3f7(0x20f)]},'direction':(_0x34f8a3==null?void 0x0:_0x34f8a3[_0xefb3f7(0x41e)])??_0x52b473[_0xefb3f7(0x41e)],'structureKind':_0x2ba9d7,'branchLineType':_0x23e255(_0x2ba9d7,_0x34f8a3==null?void 0x0:_0x34f8a3['branchLineType'])};}async function xr(_0x266cc4,_0x5de8f5){const _0x39ff8e=_0x5cd39e;return await Promise[_0x39ff8e(0x412)](_0x266cc4[_0x39ff8e(0x389)](_0x34ea91['id'],_0x5de8f5))?(await Promise[_0x39ff8e(0x412)](_0x266cc4['executeCommand'](_0x189a28['id'],{'unitId':_0x5de8f5['unitId'],'subUnitId':_0x5de8f5[_0x39ff8e(0x35b)],'scopeId':_0x5de8f5[_0x39ff8e(0x404)]})),!0x0):!0x1;}async function Sr(_0x19be09,_0x4babf7){const _0xaded5=_0x5cd39e;return await Promise[_0xaded5(0x412)](_0x19be09[_0xaded5(0x389)](_0xf4f5f9['id'],_0x4babf7))?(await Promise[_0xaded5(0x412)](_0x19be09[_0xaded5(0x389)](_0x189a28['id'],{'unitId':_0x4babf7['unitId'],'subUnitId':_0x4babf7[_0xaded5(0x35b)],'scopeId':_0x4babf7[_0xaded5(0x404)]})),!0x0):!0x1;}async function Cr(_0x31e826,_0x144ea0){const _0x100de6=_0x5cd39e;return await Promise['resolve'](_0x31e826[_0x100de6(0x389)](_0x34ea91['id'],{'unitId':_0x144ea0[_0x100de6(0x36e)],'subUnitId':_0x144ea0[_0x100de6(0x35b)],'scopeId':_0x144ea0[_0x100de6(0x404)],..._0x144ea0['horizontalGap']===void 0x0?{}:{'horizontalGap':_0x144ea0[_0x100de6(0x447)]},..._0x144ea0[_0x100de6(0x345)]===void 0x0?{}:{'siblingGap':_0x144ea0[_0x100de6(0x345)]},..._0x144ea0[_0x100de6(0x20f)]===void 0x0?{}:{'branchGap':_0x144ea0[_0x100de6(0x20f)]}}))?(await Promise['resolve'](_0x31e826[_0x100de6(0x389)](_0x189a28['id'],{'unitId':_0x144ea0[_0x100de6(0x36e)],'subUnitId':_0x144ea0[_0x100de6(0x35b)],'scopeId':_0x144ea0[_0x100de6(0x404)]})),!0x0):!0x1;}async function wr(_0x16402f,_0x1e004d){const _0x2e632b=_0x5cd39e;return _0x1e004d['nodeId']===_0x1e004d[_0x2e632b(0x1f9)]||!await Promise[_0x2e632b(0x412)](_0x16402f[_0x2e632b(0x389)](_0x2bd3f3['id'],{'unitId':_0x1e004d['unitId'],'subUnitId':_0x1e004d['subUnitId'],'nodeId':_0x1e004d[_0x2e632b(0x31b)],'targetNodeId':_0x1e004d[_0x2e632b(0x1f9)],'referenceNodeId':_0x1e004d['targetNodeId'],'placement':_0x1e004d[_0x2e632b(0x33c)]}))?!0x1:(await Promise['resolve'](_0x16402f['executeCommand'](_0x189a28['id'],{'unitId':_0x1e004d['unitId'],'subUnitId':_0x1e004d[_0x2e632b(0x35b)],'scopeId':_0x1e004d['scopeId']})),!0x0);}async function Tr(_0x3f9057,_0x127abb){const _0x339c6f=_0x5cd39e;let _0x30f38a=_0x127abb[_0x339c6f(0x250)][_0x339c6f(0x4b8)]();return!_0x30f38a||!await Promise['resolve'](_0x3f9057[_0x339c6f(0x389)](_0x240a0f['id'],{'unitId':_0x127abb[_0x339c6f(0x36e)],'subUnitId':_0x127abb[_0x339c6f(0x35b)],'nodeId':_0x127abb[_0x339c6f(0x31b)],'text':_0x30f38a}))?!0x1:(await Promise[_0x339c6f(0x412)](_0x3f9057[_0x339c6f(0x389)](_0x189a28['id'],{'unitId':_0x127abb[_0x339c6f(0x36e)],'subUnitId':_0x127abb[_0x339c6f(0x35b)],'scopeId':_0x127abb[_0x339c6f(0x404)]})),!0x0);}async function Er(_0x54023a){const _0x5d5b55=_0x5cd39e;var _0x14c8c8;let _0x2ce23d=(_0x14c8c8=globalThis[_0x5d5b55(0x424)])==null?void 0x0:_0x14c8c8[_0x5d5b55(0x368)];return _0x2ce23d!=null&&_0x2ce23d[_0x5d5b55(0x3e0)]?(await _0x2ce23d[_0x5d5b55(0x3e0)](_0x54023a),!0x0):!0x1;}async function Dr(_0x1642bf,_0x5076b6,_0x2bad4e=Er){const _0x127a7d=_0x5cd39e;let _0x4513af=await Promise[_0x127a7d(0x412)](_0x1642bf[_0x127a7d(0x389)](_0x11019d['id'],_0x5076b6));if(typeof _0x4513af!='string'||!_0x4513af)return!0x1;try{return await _0x2bad4e(_0x4513af)!==!0x1;}catch{return!0x1;}}async function Or(_0x272818,_0x66e754){const _0x387985=_0x5cd39e;if(!_0x66e754['opml'][_0x387985(0x4b8)]())return!0x1;let _0x19c58d=await Promise['resolve'](_0x272818['executeCommand'](_0x25dbd2['id'],_0x66e754));return typeof _0x19c58d==_0x387985(0x49c)&&!!_0x19c58d&&_0x19c58d[_0x387985(0x213)]===!0x0;}function kr(_0x36bce8,_0x16ab32){const _0x22c492=_0x5cd39e;let _0x185a91=_0x16ab32['trim']()[_0x22c492(0x356)]();return _0x185a91?_0x36bce8[_0x22c492(0x2c1)](_0xfe873=>_0xfe873['text'][_0x22c492(0x356)]()[_0x22c492(0x371)](_0x185a91)):_0x36bce8;}function Ar(_0x2087f3){const _0x1a379f=_0x5cd39e;return{'paddingInlineStart':0x8+(Number[_0x1a379f(0x41c)](_0x2087f3)&&_0x2087f3>0x0?_0x2087f3:0x0)*0x10};}function jr(_0x5bc374){const _0x45a9a1=_0x5cd39e;return _0x5d1226(_0x45a9a1(0x2eb),{'className':_0x166644(_0x45a9a1(0x316),_0x84ba83),'data-board-mind-map-panel-section':_0x45a9a1(0x41f),'children':[_0x50af7a('h3',{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-gray-100','children':_0x5bc374[_0x45a9a1(0x238)]}),_0x5bc374['children']]});}function Mr(_0x27d2ab){const _0x3a67dc=_0x5cd39e;let _0x57c073=_0x56ab42(_0x59364d),_0xcaf9d=_0x56ab42(_0x44050b),_0x2abd0f=_0x56ab42(_0x3bc354),_0x15f9af=_0x27d2ab[_0x3a67dc(0x3bb)]??[],[_0x2faee9,_0x2abe8a]=_0x325ac1(''),[_0x568703,_0x43a791]=_0x325ac1(null),[_0x2ee1e8,_0x55f628]=_0x325ac1(''),_0x278dd3=br(_0x27d2ab[_0x3a67dc(0x303)]),[_0x567cd1,_0x51f218]=_0x325ac1(_0x278dd3[_0x3a67dc(0x4b1)]),[_0x2a0556,_0x398da0]=_0x325ac1(_0x278dd3[_0x3a67dc(0x41e)]),[_0x3ef66d,_0x5afc4b]=_0x325ac1(_0x278dd3[_0x3a67dc(0x216)]),[_0x30ece4,_0x223e8c]=_0x325ac1(_0x278dd3[_0x3a67dc(0x416)]),[_0x365241,_0x2179a0]=_0x325ac1({'layout':_0x27d2ab['layout'],'scopeId':_0x27d2ab[_0x3a67dc(0x404)]}),[_0xfbebff,_0x427d64]=_0x325ac1(null),[_0x2fedcf,_0x4856ee]=_0x325ac1(_0x3a67dc(0x25d)),_0x2d31d4=kr(_0x15f9af,_0x2faee9),_0x5d0311={'unitId':_0x27d2ab[_0x3a67dc(0x36e)],'subUnitId':_0x27d2ab[_0x3a67dc(0x35b)],'scopeId':_0x27d2ab['scopeId']},_0x3487aa=hr['map'](_0x2bd46e=>({'label':_0x2abd0f['t'](_0x3a67dc(0x329)+_0x2bd46e),'value':_0x2bd46e})),_0x1f1c3a=yr[_0x3a67dc(0x2c1)](_0x3eebb6=>_0x3eebb6[_0x3a67dc(0x2a6)]!==_0x3a67dc(0x264)||_0x695402(_0x3ef66d)),_0x109891=_0x115429=>{_0x398da0(_0x115429),xr(_0x57c073,{..._0x5d0311,'direction':_0x115429});};if(_0x365241[_0x3a67dc(0x303)]!==_0x27d2ab['layout']||_0x365241['scopeId']!==_0x27d2ab['scopeId']){let _0x57bd01=br(_0x27d2ab[_0x3a67dc(0x303)]);_0x2179a0({'layout':_0x27d2ab[_0x3a67dc(0x303)],'scopeId':_0x27d2ab['scopeId']}),_0x51f218(_0x57bd01[_0x3a67dc(0x4b1)]),_0x398da0(_0x57bd01[_0x3a67dc(0x41e)]),_0x5afc4b(_0x57bd01[_0x3a67dc(0x216)]),_0x223e8c(_0x57bd01[_0x3a67dc(0x416)]);}let _0x11d68c=_0x2cdea6=>{let _0x4a9a71=_0x23e255(_0x2cdea6,_0x30ece4);_0x5afc4b(_0x2cdea6),_0x223e8c(_0x4a9a71),xr(_0x57c073,{..._0x5d0311,'structureKind':_0x2cdea6,..._0x4a9a71===_0x30ece4?null:{'branchLineType':_0x4a9a71}});},_0x159216=_0x44e90e=>{let _0x43524e=_0x23e255(_0x3ef66d,_0x44e90e);_0x223e8c(_0x43524e),Sr(_0x57c073,{..._0x5d0311,'branchLineType':_0x43524e});},_0x4c611b=(_0x390584,_0x328fc2)=>{let _0x48face={..._0x567cd1,[_0x390584]:_0x328fc2};_0x51f218(_0x48face),Cr(_0x57c073,{..._0x5d0311,..._0x48face});},_0x4b3f95=()=>{const _0xe3929d=_0x3a67dc;Or(_0x57c073,{'unitId':_0x27d2ab[_0xe3929d(0x36e)],'subUnitId':_0x27d2ab['subUnitId'],'left':0x78,'top':0x78,'opml':_0x2ee1e8})[_0xe3929d(0x431)](_0x4857f6=>{_0x4857f6&&_0x55f628('');});},_0x2483a4=()=>{Dr(_0x57c073,_0x5d0311);},_0x4871d2=(_0x11f2e2,_0x71c25f)=>{_0x43a791({'nodeId':_0x11f2e2,'text':_0x71c25f});},_0x4c4701=()=>{const _0x3c0e5d=_0x3a67dc;_0x568703&&Tr(_0x57c073,{..._0x5d0311,'nodeId':_0x568703[_0x3c0e5d(0x31b)],'text':_0x568703[_0x3c0e5d(0x250)]})['then'](_0x211b9b=>{_0x211b9b&&_0x43a791(null);});},_0x4c30af=(_0x2c5426,_0x212803)=>{const _0x504909=_0x3a67dc;if(_0x2c5426[_0x504909(0x2b6)](),!_0xfbebff||_0xfbebff===_0x212803)return;let _0x9fcd33=_0x2c5426['currentTarget'][_0x504909(0x2e6)](),_0x2ca9ba=_0x2c5426[_0x504909(0x2f4)]<_0x9fcd33[_0x504909(0x399)]+_0x9fcd33['height']/0x2?_0x504909(0x304):'after';_0x427d64(null),wr(_0x57c073,{..._0x5d0311,'nodeId':_0xfbebff,'targetNodeId':_0x212803,'placement':_0x2ca9ba});};return _0x5d1226(_0x3a67dc(0x481),{'className':'univer-size-full\x20univer-bg-white\x20univer-text-sm\x20univer-text-gray-700\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-200','data-board-mind-map-panel':_0x3a67dc(0x41f),'children':[_0x50af7a('div',{'className':_0x166644('univer-border-b\x20univer-border-gray-200\x20univer-p-3',_0x84ba83),'data-board-mind-map-panel-tabs':_0x3a67dc(0x41f),'children':_0x50af7a(_0x323347,{'className':'univer-w-full\x20univer-text-xs','items':_0x3487aa,'value':_0x2fedcf,'onChange':_0x3d8957=>_0x4856ee(_0x3d8957)})}),_0x2fedcf===_0x3a67dc(0x25d)&&_0x50af7a(jr,{'title':_0x2abd0f['t'](_0x3a67dc(0x343)),'children':_0x5d1226('div',{'children':[_0x50af7a(_0x380d36,{'slot':_0x50af7a(_0x4b7a22,{}),'value':_0x2faee9,'placeholder':_0x2abd0f['t'](_0x3a67dc(0x4a0)),'className':_0x3a67dc(0x3a4),'onChange':_0x2abe8a}),_0x2d31d4[_0x3a67dc(0x3a9)]?_0x50af7a('ol',{'className':_0x3a67dc(0x31f),'children':_0x2d31d4[_0x3a67dc(0x209)](_0x4cd453=>_0x50af7a('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':Ar(_0x4cd453[_0x3a67dc(0x283)]),'onDragStart':_0x10f1a8=>{const _0x4c6e2f=_0x3a67dc;var _0x592550;_0x427d64(_0x4cd453[_0x4c6e2f(0x31b)]),(_0x592550=_0x10f1a8[_0x4c6e2f(0x37b)])==null||_0x592550['setData']('text/plain',_0x4cd453[_0x4c6e2f(0x31b)]),_0x10f1a8[_0x4c6e2f(0x37b)]&&(_0x10f1a8['dataTransfer'][_0x4c6e2f(0x47c)]=_0x4c6e2f(0x353));},'onDragOver':_0x28ed1f=>{const _0x4ec5d4=_0x3a67dc;_0x28ed1f[_0x4ec5d4(0x2b6)](),_0x28ed1f['dataTransfer']&&(_0x28ed1f[_0x4ec5d4(0x37b)][_0x4ec5d4(0x3fc)]=_0x4ec5d4(0x353));},'onDrop':_0x5794da=>_0x4c30af(_0x5794da,_0x4cd453[_0x3a67dc(0x31b)]),'onDragEnd':()=>_0x427d64(null),'children':(_0x568703==null?void 0x0:_0x568703['nodeId'])===_0x4cd453[_0x3a67dc(0x31b)]?_0x5d1226(_0x3a67dc(0x481),{'className':_0x3a67dc(0x426),'children':[_0x50af7a(_0x380d36,{'autoFocus':!0x0,'size':_0x3a67dc(0x38a),'value':_0x568703[_0x3a67dc(0x250)],'onChange':_0xfc1135=>_0x43a791({'nodeId':_0x4cd453[_0x3a67dc(0x31b)],'text':_0xfc1135}),'onKeyDown':_0x40414c=>{const _0x96bfe4=_0x3a67dc;_0x40414c[_0x96bfe4(0x3c6)]===_0x96bfe4(0x475)&&_0x4c4701(),_0x40414c[_0x96bfe4(0x3c6)]===_0x96bfe4(0x45c)&&_0x43a791(null);}}),_0x50af7a(_0x295b03,{'size':'small','variant':_0x3a67dc(0x2dc),'disabled':!_0x568703[_0x3a67dc(0x250)][_0x3a67dc(0x4b8)](),'onClick':_0x4c4701,'children':_0x2abd0f['t'](_0x3a67dc(0x20e))}),_0x50af7a(_0x295b03,{'size':_0x3a67dc(0x38a),'variant':_0x3a67dc(0x495),'onClick':()=>_0x43a791(null),'children':_0x2abd0f['t']('boards-mind-ui.panel.cancel')})]}):_0x5d1226(_0x31ad0b,{'children':[_0x50af7a(_0x295b03,{'size':'small','variant':_0x3a67dc(0x49a),'className':_0x3a67dc(0x2e5),'onClick':()=>_0xcaf9d['selectElements']({'unitId':_0x27d2ab['unitId'],'subUnitId':_0x27d2ab['subUnitId']},[_0x4cd453[_0x3a67dc(0x31b)]],_0x4cd453[_0x3a67dc(0x31b)]),'children':_0x4cd453['text']}),_0x50af7a(_0x295b03,{'className':_0x3a67dc(0x333),'size':_0x3a67dc(0x38a),'variant':_0x3a67dc(0x495),'onClick':()=>_0x4871d2(_0x4cd453[_0x3a67dc(0x31b)],_0x4cd453[_0x3a67dc(0x250)]),'children':_0x2abd0f['t'](_0x3a67dc(0x20e))})]})},_0x4cd453['nodeId']))}):_0x50af7a(_0x3a67dc(0x481),{'className':_0x3a67dc(0x1fc),'data-board-mind-map-panel-empty-state':_0x3a67dc(0x41f),'children':_0x2abd0f['t'](_0x3a67dc(0x425))})]})}),_0x2fedcf==='layout'&&_0x50af7a(jr,{'title':_0x2abd0f['t'](_0x3a67dc(0x361)),'children':_0x5d1226('div',{'className':_0x3a67dc(0x38f),'children':[_0x50af7a(_0x3a67dc(0x481),{'className':_0x3a67dc(0x44b),'children':_0x50af7a(_0x323347,{'className':'univer-w-full\x20univer-text-xs','items':vr[_0x3a67dc(0x209)](_0x378dba=>({'label':_0x2abd0f['t'](_0x378dba['labelKey']),'value':_0x378dba[_0x3a67dc(0x2a6)]})),'value':_0x3ef66d,'onChange':_0x2b134e=>_0x11d68c(_0x2b134e)})}),_0x50af7a(_0x3a67dc(0x481),{'className':_0x3a67dc(0x44b),'children':_0x50af7a(_0x323347,{'className':_0x3a67dc(0x2ad),'items':_r[_0x3a67dc(0x209)](_0x326078=>({'label':_0x2abd0f['t'](_0x326078[_0x3a67dc(0x375)]),'value':_0x326078['value']})),'value':_0x2a0556,'onChange':_0x4105f2=>_0x109891(_0x4105f2)})}),_0x50af7a(_0x3a67dc(0x481),{'className':_0x3a67dc(0x44b),'children':_0x50af7a(_0x323347,{'className':_0x3a67dc(0x2ad),'items':_0x1f1c3a[_0x3a67dc(0x209)](_0x446bbf=>({'label':_0x2abd0f['t'](_0x446bbf[_0x3a67dc(0x375)]),'value':_0x446bbf[_0x3a67dc(0x2a6)]})),'value':_0x30ece4,'onChange':_0x38cf9b=>_0x159216(_0x38cf9b)})}),_0x50af7a(_0x3a67dc(0x481),{'className':_0x3a67dc(0x3df),'children':gr[_0x3a67dc(0x209)](({labelKey:_0x43e12e,key:_0x31f42e,min:_0x28299e,max:_0x9d5963})=>_0x5d1226(_0x3a67dc(0x25c),{'className':_0x3a67dc(0x480),'children':[_0x50af7a(_0x3a67dc(0x25a),{'className':_0x3a67dc(0x43a),'children':_0x2abd0f['t'](_0x3a67dc(0x378)+_0x43e12e)}),_0x50af7a(_0x1db4b4,{'min':_0x28299e,'max':_0x9d5963,'step':0x4,'value':_0x567cd1[_0x31f42e],'precision':0x0,'className':_0x3a67dc(0x43d),'onChange':_0x2463ed=>_0x4c611b(_0x31f42e,Number(_0x2463ed??_0x28299e))})]},_0x31f42e))})]})}),_0x2fedcf===_0x3a67dc(0x308)&&_0x50af7a(jr,{'title':_0x2abd0f['t']('boards-mind-ui.panel.tab.importExport'),'children':_0x5d1226(_0x3a67dc(0x481),{'className':_0x3a67dc(0x3fb),'children':[_0x50af7a(_0x2fdd7f,{'className':_0x3a67dc(0x3d5),'placeholder':_0x2abd0f['t'](_0x3a67dc(0x33d)),'value':_0x2ee1e8,'onValueChange':_0x55f628}),_0x5d1226(_0x3a67dc(0x481),{'className':_0x3a67dc(0x44b),'children':[_0x50af7a(_0x295b03,{'size':_0x3a67dc(0x38a),'variant':_0x3a67dc(0x2dc),'disabled':!_0x2ee1e8[_0x3a67dc(0x4b8)](),'onClick':_0x4b3f95,'children':_0x2abd0f['t'](_0x3a67dc(0x33e))}),_0x50af7a(_0x295b03,{'size':_0x3a67dc(0x38a),'variant':'default','onClick':_0x2483a4,'children':_0x2abd0f['t'](_0x3a67dc(0x3cb))})]})]})})]});}let Nr=class extends _0x1cd6b{constructor(_0x22ce5d){const _0x480ddb=_0x5cd39e;super(),this[_0x480ddb(0x42b)]=_0x22ce5d,this['_registerComponents']();}['_registerComponents'](){const _0x1cfc2e=_0x5cd39e;this[_0x1cfc2e(0x488)](this['_componentManager']['register'](on,cn)),this[_0x1cfc2e(0x488)](this[_0x1cfc2e(0x42b)][_0x1cfc2e(0x244)](xn,Ln)),this[_0x1cfc2e(0x488)](this[_0x1cfc2e(0x42b)][_0x1cfc2e(0x244)](_0x1cfc2e(0x487),Mr));}};Nr=q([K(0x0,_0x20cede(_0x22545b))],Nr);let Pr=class{constructor(_0x3dad22,_0x357a15){const _0x31bd93=_0x5cd39e;this['_stateService']=_0x3dad22,this[_0x31bd93(0x444)]=_0x357a15;}['beginMindMapMode'](_0x1f0823){const _0x25834c=_0x5cd39e;return this['_insertStateService'][_0x25834c(0x325)]({'rootText':_0x1f0823['rootText'],'structureKind':_0x1f0823[_0x25834c(0x216)],'branchLineType':_0x1f0823['branchLineType'],'children':_0x1f0823[_0x25834c(0x4ac)],'blueprint':_0x1f0823[_0x25834c(0x31a)]}),this[_0x25834c(0x357)][_0x25834c(0x423)](!0x1),this[_0x25834c(0x357)][_0x25834c(0x324)](),this['_stateService'][_0x25834c(0x2c6)](_0x49b814[_0x25834c(0x43e)]),this[_0x25834c(0x357)]['setPendingInsert']({'type':_0x49b814[_0x25834c(0x43e)]}),!0x0;}};Pr=q([K(0x0,_0x297a03),K(0x1,_0x20cede(Yn))],Pr);let $=class extends _0x3b8ea1{constructor(_0x7e7199=Nt,_0x3e73c1,_0x3c1f47,_0x2d6269){const _0x446b8c=_0x5cd39e;super(),this[_0x446b8c(0x457)]=_0x7e7199,this['_injector']=_0x3e73c1,this[_0x446b8c(0x38e)]=_0x3c1f47,this[_0x446b8c(0x3dd)]=_0x2d6269;let {..._0x12a430}=_0x1d7130({},Nt,this['_config']);this[_0x446b8c(0x38e)][_0x446b8c(0x3b7)]('boards-mind-ui.config',_0x12a430);}['onStarting'](){const _0x24e35d=_0x5cd39e;this[_0x24e35d(0x492)][_0x24e35d(0x370)]([Yn]),this[_0x24e35d(0x492)][_0x24e35d(0x370)]([er]),this['_injector'][_0x24e35d(0x370)]([Pr]),this[_0x24e35d(0x492)][_0x24e35d(0x370)]([pn]),this[_0x24e35d(0x492)][_0x24e35d(0x370)]([mr]),this['_injector'][_0x24e35d(0x370)]([Nr]);let _0x714d37=this[_0x24e35d(0x492)][_0x24e35d(0x37e)](Pr),_0x485990=this[_0x24e35d(0x492)][_0x24e35d(0x37e)](_0x584e7d);this[_0x24e35d(0x488)](_0x485990[_0x24e35d(0x465)](_0x714d37)),this[_0x24e35d(0x488)](this[_0x24e35d(0x492)][_0x24e35d(0x37e)](pn)),this[_0x24e35d(0x488)](this[_0x24e35d(0x492)][_0x24e35d(0x37e)](mr)),this[_0x24e35d(0x488)](this['_injector'][_0x24e35d(0x37e)](Nr)),this[_0x24e35d(0x2a7)]();}[_0x5cd39e(0x4a5)](){const _0x586b7f=_0x5cd39e;this[_0x586b7f(0x488)](this[_0x586b7f(0x3dd)][_0x586b7f(0x47b)](_0x4aab0d[_0x586b7f(0x27a)],$n)),this[_0x586b7f(0x488)](this[_0x586b7f(0x3dd)][_0x586b7f(0x47b)](_0x4aab0d['UNIVER_BOARD'],fr)),this[_0x586b7f(0x488)](this[_0x586b7f(0x3dd)]['registerRenderModule'](_0x4aab0d[_0x586b7f(0x27a)],zn)),this[_0x586b7f(0x488)](this['_renderManagerService'][_0x586b7f(0x47b)](_0x4aab0d[_0x586b7f(0x27a)],an)),this['disposeWithMe'](this[_0x586b7f(0x3dd)][_0x586b7f(0x47b)](_0x4aab0d[_0x586b7f(0x27a)],Lt)),this[_0x586b7f(0x488)](this[_0x586b7f(0x3dd)][_0x586b7f(0x47b)](_0x4aab0d[_0x586b7f(0x27a)],rr));}[_0x5cd39e(0x2a7)](){const _0x59ca04=_0x5cd39e;var _0x3143f4,_0x3d39d6;let _0x238683=this[_0x59ca04(0x3d1)]();this[_0x59ca04(0x38e)][_0x59ca04(0x3b7)](_0x1b5f05,{..._0x238683,'toolbar':{..._0x238683[_0x59ca04(0x24f)],'tools':{...(_0x3143f4=_0x238683['toolbar'])==null?void 0x0:_0x3143f4['tools'],[_0x49b814['MindMap']]:Fr((_0x3d39d6=_0x238683[_0x59ca04(0x24f)])==null||(_0x3d39d6=_0x3d39d6[_0x59ca04(0x302)])==null?void 0x0:_0x3d39d6[_0x49b814[_0x59ca04(0x43e)]])}}});}[_0x5cd39e(0x3d1)](){const _0x37e4a0=_0x5cd39e;return this[_0x37e4a0(0x38e)][_0x37e4a0(0x3ff)](_0x1b5f05)??{};}};G($,_0x5cd39e(0x43f),_0x5cd39e(0x48a)),G($,_0x5cd39e(0x403),jt),G($,_0x5cd39e(0x3e2),Mt),G($,_0x5cd39e(0x2cc),_0x4aab0d['UNIVER_BOARD']),$=q([_0x3746e4(_0x215979,_0x2a012,_0x45718a,_0x2d3c5f,_0xef3d3e),K(0x1,_0x20cede(_0x381005)),K(0x2,_0x377adc),K(0x3,_0x135db7)],$);function Fr(_0x4597fb){const _0x376d25=_0x5cd39e;return _0x4597fb===!0x1?!0x1:typeof _0x4597fb!=_0x376d25(0x49c)||{..._0x4597fb,'enabled':_0x4597fb[_0x376d25(0x3ca)]??!0x0};}export{$ as UniverBoardsMindUIPlugin};
|