@univerjs-pro/boards-mind-ui 1.5.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -1
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +1 -1
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +1 -1
  50. package/lib/locale/it-IT.js +1 -1
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +1 -1
  54. package/lib/locale/pt-BR.js +1 -1
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +1 -1
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/umd/index.js +1 -1
  62. package/lib/umd/locale/ar-SA.js +1 -1
  63. package/lib/umd/locale/ca-ES.js +1 -1
  64. package/lib/umd/locale/de-DE.js +1 -1
  65. package/lib/umd/locale/en-US.js +1 -1
  66. package/lib/umd/locale/es-ES.js +1 -1
  67. package/lib/umd/locale/fa-IR.js +1 -1
  68. package/lib/umd/locale/fr-FR.js +1 -1
  69. package/lib/umd/locale/id-ID.js +1 -1
  70. package/lib/umd/locale/it-IT.js +1 -1
  71. package/lib/umd/locale/ja-JP.js +1 -1
  72. package/lib/umd/locale/ko-KR.js +1 -1
  73. package/lib/umd/locale/pl-PL.js +1 -1
  74. package/lib/umd/locale/pt-BR.js +1 -1
  75. package/lib/umd/locale/ru-RU.js +1 -1
  76. package/lib/umd/locale/sk-SK.js +1 -1
  77. package/lib/umd/locale/vi-VN.js +1 -1
  78. package/lib/umd/locale/zh-CN.js +1 -1
  79. package/lib/umd/locale/zh-HK.js +1 -1
  80. package/lib/umd/locale/zh-TW.js +1 -1
  81. package/package.json +13 -12
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x1b767a,_0x28b843){const _0x5c305a=_0x2d97,_0x415ae4=_0x1b767a();while(!![]){try{const _0x553092=parseInt(_0x5c305a(0x50a))/0x1+-parseInt(_0x5c305a(0x45a))/0x2*(-parseInt(_0x5c305a(0x27e))/0x3)+-parseInt(_0x5c305a(0x576))/0x4*(parseInt(_0x5c305a(0x336))/0x5)+parseInt(_0x5c305a(0x580))/0x6*(-parseInt(_0x5c305a(0x1fe))/0x7)+-parseInt(_0x5c305a(0x4e6))/0x8+parseInt(_0x5c305a(0x4fd))/0x9*(-parseInt(_0x5c305a(0x446))/0xa)+parseInt(_0x5c305a(0x213))/0xb;if(_0x553092===_0x28b843)break;else _0x415ae4['push'](_0x415ae4['shift']());}catch(_0x3731c3){_0x415ae4['push'](_0x415ae4['shift']());}}}(_0x5dc0,0x68f5f),function(_0x4a6f1f,_0x224f23){const _0x54bb59=_0x2d97;typeof exports==_0x54bb59(0x402)&&typeof module<'u'?_0x224f23(exports,require('@univerjs-pro/boards'),require('@univerjs-pro/boards-mind'),require('@univerjs-pro/boards-ui'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/engine-render'),require('rxjs'),require('@univerjs/ui'),require('@univerjs-pro/shape-editor-ui'),require('@univerjs-pro/engine-shape'),require('@univerjs/design'),require('react'),require('react/jsx-runtime')):typeof define==_0x54bb59(0x204)&&define['amd']?define(['exports',_0x54bb59(0x1e9),'@univerjs-pro/boards-mind','@univerjs-pro/boards-ui',_0x54bb59(0x2ed),_0x54bb59(0x50d),_0x54bb59(0x2d6),_0x54bb59(0x2e5),_0x54bb59(0x3e0),'@univerjs-pro/shape-editor-ui',_0x54bb59(0x5df),_0x54bb59(0x4f8),'react',_0x54bb59(0x2ad)],_0x224f23):(_0x4a6f1f=typeof globalThis<'u'?globalThis:_0x4a6f1f||self,_0x224f23(_0x4a6f1f[_0x54bb59(0x5a9)]={},_0x4a6f1f[_0x54bb59(0x49c)],_0x4a6f1f['UniverProBoardsMind'],_0x4a6f1f['UniverProBoardsUi'],_0x4a6f1f[_0x54bb59(0x58e)],_0x4a6f1f['UniverCore'],_0x4a6f1f['UniverEngineRender'],_0x4a6f1f[_0x54bb59(0x2e5)],_0x4a6f1f[_0x54bb59(0x33a)],_0x4a6f1f[_0x54bb59(0x420)],_0x4a6f1f[_0x54bb59(0x3dd)],_0x4a6f1f[_0x54bb59(0x461)],_0x4a6f1f[_0x54bb59(0x249)],_0x4a6f1f[_0x54bb59(0x249)]));}(this,function(_0x2058fe,_0x22188d,_0x6837b2,_0x23cfd0,_0x2d01f4,_0x3a2278,_0x924b47,_0x45614e,_0x4468ef,_0x39938,_0x3c2905,_0x403267,_0x3b9d96,_0x5c99c0){const _0x2fba6e=_0x2d97;Object[_0x2fba6e(0x303)](_0x2058fe,Symbol[_0x2fba6e(0x347)],{'value':_0x2fba6e(0x5cf)});var _0x53efe8=_0x2fba6e(0x44d),_0x439f81=_0x2fba6e(0x317);let _0x40f506=_0x2fba6e(0x233),_0x3957fa={};function _0x41c981(_0x4b9c9a){'@babel/helpers - typeof';const _0x4d4959=_0x2fba6e;return _0x41c981=typeof Symbol==_0x4d4959(0x204)&&typeof Symbol['iterator']==_0x4d4959(0x2aa)?function(_0x3ff62d){return typeof _0x3ff62d;}:function(_0x2cc0c8){const _0x1d1bde=_0x4d4959;return _0x2cc0c8&&typeof Symbol=='function'&&_0x2cc0c8['constructor']===Symbol&&_0x2cc0c8!==Symbol[_0x1d1bde(0x56e)]?_0x1d1bde(0x2aa):typeof _0x2cc0c8;},_0x41c981(_0x4b9c9a);}function _0x1c76a1(_0x7cbac5,_0x56128e){const _0x3d2c82=_0x2fba6e;if(_0x41c981(_0x7cbac5)!=_0x3d2c82(0x402)||!_0x7cbac5)return _0x7cbac5;var _0x3beb77;if(typeof Symbol<'u'&&(_0x3beb77=_0x7cbac5[Symbol[_0x3d2c82(0x408)]])!==void 0x0){var _0x157d4a=_0x3beb77[_0x3d2c82(0x3b6)](_0x7cbac5,_0x56128e||_0x3d2c82(0x462));if(_0x41c981(_0x157d4a)!=_0x3d2c82(0x402))return _0x157d4a;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x56128e===_0x3d2c82(0x43d)?String:Number)(_0x7cbac5);}function _0x2e1006(_0x47ea10){const _0x45973d=_0x2fba6e;var _0x367dfa=_0x1c76a1(_0x47ea10,_0x45973d(0x43d));return _0x41c981(_0x367dfa)=='symbol'?_0x367dfa:_0x367dfa+'';}function _0x251ac6(_0x16d74f,_0x595e61,_0x211df5){return(_0x595e61=_0x2e1006(_0x595e61))in _0x16d74f?Object['defineProperty'](_0x16d74f,_0x595e61,{'value':_0x211df5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x16d74f[_0x595e61]=_0x211df5,_0x16d74f;}function _0x32dcf8(_0x5a58de,_0x4f9b4b){return function(_0x37312c,_0x22df82){_0x4f9b4b(_0x37312c,_0x22df82,_0x5a58de);};}function _0x19a741(_0x12e724,_0x57097c,_0xfeb45c,_0x3a23be){const _0x97e9c=_0x2fba6e;var _0x1e9416=arguments[_0x97e9c(0x333)],_0x26e62c=_0x1e9416<0x3?_0x57097c:_0x3a23be===null?_0x3a23be=Object['getOwnPropertyDescriptor'](_0x57097c,_0xfeb45c):_0x3a23be,_0x22b4a4;if(typeof Reflect==_0x97e9c(0x402)&&typeof Reflect[_0x97e9c(0x3c0)]=='function')_0x26e62c=Reflect[_0x97e9c(0x3c0)](_0x12e724,_0x57097c,_0xfeb45c,_0x3a23be);else{for(var _0x1d51ab=_0x12e724[_0x97e9c(0x333)]-0x1;_0x1d51ab>=0x0;_0x1d51ab--)(_0x22b4a4=_0x12e724[_0x1d51ab])&&(_0x26e62c=(_0x1e9416<0x3?_0x22b4a4(_0x26e62c):_0x1e9416>0x3?_0x22b4a4(_0x57097c,_0xfeb45c,_0x26e62c):_0x22b4a4(_0x57097c,_0xfeb45c))||_0x26e62c);}return _0x1e9416>0x3&&_0x26e62c&&Object[_0x97e9c(0x303)](_0x57097c,_0xfeb45c,_0x26e62c),_0x26e62c;}let _0x53b6ea=class extends _0x3a2278['RxDisposable']{constructor(_0x1daffb,_0x4558cf,_0x2d1117){const _0x345b9f=_0x2fba6e;super(),this[_0x345b9f(0x595)]=_0x1daffb,this[_0x345b9f(0x4ec)]=_0x4558cf,this[_0x345b9f(0x4a0)]=_0x2d1117,_0x251ac6(this,'_nodeSizeByKey',new Map()),_0x251ac6(this,'_queuedLayouts',new Map()),_0x251ac6(this,'_layoutFlushScheduled',!0x1),this['_init']();}[_0x2fba6e(0x374)](){const _0xac3b91=_0x2fba6e;this[_0xac3b91(0x30c)](),this[_0xac3b91(0x417)]((0x0,_0x3a2278['toDisposable'])(this[_0xac3b91(0x4ec)][_0xac3b91(0x295)][_0xac3b91(0x456)]((0x0,_0x45614e['takeUntil'])(this[_0xac3b91(0x4e8)]))[_0xac3b91(0x55f)](_0x7ca1ec=>{const _0x29f351=_0xac3b91;_0x7ca1ec[_0x29f351(0x3d8)](_0x5d8f7f=>{const _0x53e07a=_0x29f351;let _0x45cdaf=this['_boardElementService'][_0x53e07a(0x2a0)](_0x5d8f7f[_0x53e07a(0x3b0)],_0x5d8f7f[_0x53e07a(0x363)],_0x5d8f7f['elementId']);this[_0x53e07a(0x4df)](_0x5d8f7f,_0x45cdaf);});}))),this[_0xac3b91(0x417)]((0x0,_0x3a2278[_0xac3b91(0x3af)])(this['_boardElementService']['elementUpdate$'][_0xac3b91(0x456)]((0x0,_0x45614e[_0xac3b91(0x2a9)])(this['dispose$']))[_0xac3b91(0x55f)](_0x21c38e=>{const _0x229fdd=_0xac3b91;_0x21c38e['forEach'](_0x5e670c=>this[_0x229fdd(0x373)](_0x5e670c));})));}[_0x2fba6e(0x30c)](){const _0x253252=_0x2fba6e;let _0x75c2e3=this['_renderContext'][_0x253252(0x3b0)],_0x472432=this[_0x253252(0x4ec)][_0x253252(0x35b)](_0x75c2e3);Object[_0x253252(0x5a6)](_0x472432)[_0x253252(0x3d8)](([_0x4c2f05,_0x453eed])=>{const _0x3aafd7=_0x253252;Object[_0x3aafd7(0x2dd)](_0x453eed[_0x3aafd7(0x250)])[_0x3aafd7(0x3d8)](_0x23eb9c=>{const _0xcf4699=_0x3aafd7;this[_0xcf4699(0x4df)]({'unitId':_0x75c2e3,'subUnitId':_0x4c2f05,'elementId':_0x23eb9c[_0xcf4699(0x289)]},_0x23eb9c);});});}['_handleElementUpdate'](_0x4e43d8){const _0x4d6c25=_0x2fba6e;if(_0x4e43d8[_0x4d6c25(0x3b0)]!==this[_0x4d6c25(0x595)][_0x4d6c25(0x3b0)])return;let _0x5b32dc=this[_0x4d6c25(0x4ec)]['getElementById'](_0x4e43d8[_0x4d6c25(0x3b0)],_0x4e43d8[_0x4d6c25(0x363)],_0x4e43d8[_0x4d6c25(0x289)]),_0x3496b3=(0x0,_0x6837b2[_0x4d6c25(0x258)])(_0x5b32dc==null?void 0x0:_0x5b32dc[_0x4d6c25(0x21f)]),_0x3892c5=this[_0x4d6c25(0x23d)](_0x5b32dc);if(!_0x3496b3||!_0x3892c5){this[_0x4d6c25(0x380)][_0x4d6c25(0x37d)](this[_0x4d6c25(0x4b1)](_0x4e43d8));return;}let _0x1aa4a8=this[_0x4d6c25(0x4b1)](_0x4e43d8),_0xfdc755=this['_nodeSizeByKey'][_0x4d6c25(0x383)](_0x1aa4a8);this[_0x4d6c25(0x380)][_0x4d6c25(0x566)](_0x1aa4a8,_0x3892c5),_0xfdc755&&_0xfdc755[_0x4d6c25(0x53b)]===_0x3892c5['width']&&_0xfdc755[_0x4d6c25(0x541)]===_0x3892c5[_0x4d6c25(0x541)]||this[_0x4d6c25(0x583)]({'unitId':_0x4e43d8[_0x4d6c25(0x3b0)],'subUnitId':_0x4e43d8['subUnitId'],'scopeId':_0x3496b3[_0x4d6c25(0x2b3)]});}[_0x2fba6e(0x4df)](_0x22c382,_0x37308a){const _0x2c5e31=_0x2fba6e;if(_0x22c382[_0x2c5e31(0x3b0)]!==this[_0x2c5e31(0x595)]['unitId'])return;let _0x3ee902=(0x0,_0x6837b2[_0x2c5e31(0x258)])(_0x37308a==null?void 0x0:_0x37308a[_0x2c5e31(0x21f)]),_0x2e7b37=this['_resolveNodeSize'](_0x37308a);_0x3ee902&&_0x2e7b37&&this[_0x2c5e31(0x380)][_0x2c5e31(0x566)](this[_0x2c5e31(0x4b1)](_0x22c382),_0x2e7b37);}[_0x2fba6e(0x23d)](_0x1df6f9){const _0x26d59a=_0x2fba6e;let _0x236de1=(_0x1df6f9==null?void 0x0:_0x1df6f9[_0x26d59a(0x485)])??(_0x1df6f9==null?void 0x0:_0x1df6f9[_0x26d59a(0x21f)]['transform']),_0x5a94d1=_0x236de1==null?void 0x0:_0x236de1[_0x26d59a(0x53b)],_0x41d4aa=_0x236de1==null?void 0x0:_0x236de1[_0x26d59a(0x541)];return!Number[_0x26d59a(0x47e)](_0x5a94d1)||!Number[_0x26d59a(0x47e)](_0x41d4aa)?null:{'width':_0x5a94d1,'height':_0x41d4aa};}[_0x2fba6e(0x583)](_0x4e4ed6){const _0x47fd31=_0x2fba6e;this[_0x47fd31(0x5e8)][_0x47fd31(0x566)](_0x4e4ed6[_0x47fd31(0x3b0)]+':'+_0x4e4ed6['subUnitId']+':'+_0x4e4ed6[_0x47fd31(0x5c3)],_0x4e4ed6),this[_0x47fd31(0x5de)]||(this['_layoutFlushScheduled']=!0x0,Promise[_0x47fd31(0x52b)]()[_0x47fd31(0x2ea)](()=>{const _0x4e6062=_0x47fd31;this[_0x4e6062(0x5de)]=!0x1;let _0x386fb7=Array[_0x4e6062(0x280)](this['_queuedLayouts'][_0x4e6062(0x2dd)]());this['_queuedLayouts'][_0x4e6062(0x44f)](),_0x386fb7[_0x4e6062(0x3d8)](_0x5c8366=>{const _0x3fc891=_0x4e6062;this[_0x3fc891(0x443)](_0x5c8366);});}));}['_executeRootAnchoredLayout'](_0x1b45d9){const _0x313f60=_0x2fba6e;var _0x3534c2;let _0x18f07b=this[_0x313f60(0x4ec)]['getElementById'](_0x1b45d9[_0x313f60(0x3b0)],_0x1b45d9[_0x313f60(0x363)],_0x1b45d9['scopeId']),_0x32f96c=(_0x3534c2=(0x0,_0x6837b2[_0x313f60(0x205)])(_0x18f07b==null?void 0x0:_0x18f07b[_0x313f60(0x21f)]))==null?void 0x0:_0x3534c2[_0x313f60(0x3ee)];this['_commandService'][_0x313f60(0x4ad)](_0x6837b2[_0x313f60(0x543)]['id'],{..._0x1b45d9,'skipUndo':!0x0,..._0x32f96c?{'anchorNodeId':_0x32f96c}:null});}[_0x2fba6e(0x4b1)](_0xc6c03c){const _0x126158=_0x2fba6e;return _0xc6c03c[_0x126158(0x3b0)]+':'+_0xc6c03c['subUnitId']+':'+_0xc6c03c['elementId'];}};_0x53b6ea=_0x19a741([_0x32dcf8(0x1,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x22188d[_0x2fba6e(0x37e)])),_0x32dcf8(0x2,_0x3a2278[_0x2fba6e(0x4c8)])],_0x53b6ea);let _0x1187c2={'primaryColor':_0x39938[_0x2fba6e(0x37c)],'surfaceColor':_0x39938[_0x2fba6e(0x2f2)],'textColor':_0x39938[_0x2fba6e(0x33b)],'fontFamily':_0x3a2278[_0x2fba6e(0x2d8)]['ff']};function _0x3f30c2(_0x574aa2,_0x13ad85){const _0x349c93=_0x2fba6e;let _0x4797ef=Math[_0x349c93(0x4fb)](0x1,Math[_0x349c93(0x2a8)](0x0,Number[_0x349c93(0x47e)](_0x13ad85)?_0x13ad85:0x1)),_0xdaf2b9=_0x574aa2[_0x349c93(0x232)](),_0x55b588=/^#([0-9a-fA-F]{6})$/[_0x349c93(0x235)](_0xdaf2b9);if(!_0x55b588)return _0x574aa2;let _0x1d6fc0=_0x55b588[0x1];return _0x349c93(0x571)+Number[_0x349c93(0x434)](_0x1d6fc0[_0x349c93(0x33d)](0x0,0x2),0x10)+',\x20'+Number[_0x349c93(0x434)](_0x1d6fc0[_0x349c93(0x33d)](0x2,0x4),0x10)+',\x20'+Number['parseInt'](_0x1d6fc0[_0x349c93(0x33d)](0x4,0x6),0x10)+',\x20'+_0x4797ef+')';}let _0x11f202={'primaryColor':_0x1187c2[_0x2fba6e(0x388)],'ghostFillColor':_0x3f30c2(_0x1187c2[_0x2fba6e(0x4ae)],0.72),'ghostTextColor':_0x3f30c2(_0x1187c2[_0x2fba6e(0x51a)],0.62),'rootTextColor':_0x3f30c2(_0x1187c2[_0x2fba6e(0x4ae)],0.86),'sourceHighlightFillColor':_0x3f30c2(_0x1187c2[_0x2fba6e(0x388)],0.12),'sourceHighlightStrokeColor':_0x3f30c2(_0x1187c2['primaryColor'],0.9),'objectAlpha':0.72,'dragObjectAlpha':0.78,'connectorAlpha':0.64,'lineWidthScreen':0x2,'fallbackNodeWidth':_0x6837b2['MIND_MAP_DEFAULT_NODE_SIZE'][_0x2fba6e(0x239)],'fallbackNodeHeight':_0x6837b2['MIND_MAP_DEFAULT_NODE_SIZE'][_0x2fba6e(0x3fe)],'branchGap':_0x6837b2[_0x2fba6e(0x5b2)][_0x2fba6e(0x217)],'sourceHaloScreen':0x4,'ghostRadius':0x8,'rootRadius':0xa,'fontFamily':_0x1187c2['fontFamily'],'ghostFontWeight':0x1f4,'rootFontWeight':0x258,'rootFontSize':0x12,'textPaddingScreen':0xc,'dirtyPaddingScreen':0x18,'sourceDashScreen':[0x6,0x4]};function _0x3b9dc6(_0x1be5fa,_0x5ec8e1,_0x59b70a,_0x488299,_0x2ddb8b,_0x4ef597){const _0x35b7e9=_0x2fba6e;let _0x81b8fe=Math[_0x35b7e9(0x4fb)](_0x4ef597,_0x488299/0x2,_0x2ddb8b/0x2);_0x1be5fa[_0x35b7e9(0x404)](),_0x1be5fa[_0x35b7e9(0x564)](_0x5ec8e1+_0x81b8fe,_0x59b70a),_0x1be5fa['lineTo'](_0x5ec8e1+_0x488299-_0x81b8fe,_0x59b70a),_0x1be5fa['quadraticCurveTo'](_0x5ec8e1+_0x488299,_0x59b70a,_0x5ec8e1+_0x488299,_0x59b70a+_0x81b8fe),_0x1be5fa[_0x35b7e9(0x3bd)](_0x5ec8e1+_0x488299,_0x59b70a+_0x2ddb8b-_0x81b8fe),_0x1be5fa[_0x35b7e9(0x2a7)](_0x5ec8e1+_0x488299,_0x59b70a+_0x2ddb8b,_0x5ec8e1+_0x488299-_0x81b8fe,_0x59b70a+_0x2ddb8b),_0x1be5fa[_0x35b7e9(0x3bd)](_0x5ec8e1+_0x81b8fe,_0x59b70a+_0x2ddb8b),_0x1be5fa[_0x35b7e9(0x2a7)](_0x5ec8e1,_0x59b70a+_0x2ddb8b,_0x5ec8e1,_0x59b70a+_0x2ddb8b-_0x81b8fe),_0x1be5fa[_0x35b7e9(0x3bd)](_0x5ec8e1,_0x59b70a+_0x81b8fe),_0x1be5fa[_0x35b7e9(0x2a7)](_0x5ec8e1,_0x59b70a,_0x5ec8e1+_0x81b8fe,_0x59b70a),_0x1be5fa[_0x35b7e9(0x2d5)]();}function _0x2a3ac3(_0x24def8,_0x47ecce,_0x56fb15){const _0x14bd23=_0x2fba6e;return _0x24def8+'\x20'+_0x47ecce/_0x56fb15+'px\x20'+_0x11f202[_0x14bd23(0x3ec)];}let _0x40cff0='board-mind-map-drag-preview-object',_0x4ffe8e=_0x23cfd0[_0x2fba6e(0x3e2)][_0x2fba6e(0x514)];function _0x2b0b25(_0x343d88,_0x562df2){const _0x3971ea=_0x2fba6e;return Number[_0x3971ea(0x47e)](_0x343d88)?_0x343d88:_0x562df2;}function _0x2e3986(){const _0x5f093b=_0x2fba6e;return _0x11f202[_0x5f093b(0x3f5)];}function _0x3bfe6e(){const _0x54e6c8=_0x2fba6e;return _0x11f202[_0x54e6c8(0x4a9)];}function _0x32f135(_0x5536e5){const _0x3b72f1=_0x2fba6e;return _0x5536e5===0x1?_0x3b72f1(0x5c2):_0x5536e5===0x3?_0x3b72f1(0x40d):_0x3b72f1(0x58d);}function _0x1b7489(_0x1a7394,_0x48e1ae,_0x1f8eb0,_0x3fa860){return _0x1f8eb0===0x1?_0x1a7394+_0x3fa860:_0x1f8eb0===0x3?_0x1a7394+_0x48e1ae-_0x3fa860:_0x1a7394+_0x48e1ae/0x2;}var _0x2689c8=class extends _0x924b47[_0x2fba6e(0x3bb)]{constructor(_0x5a06be=_0x40cff0,_0x4aeaae){const _0x6ff5f9=_0x2fba6e;super(_0x5a06be),_0x251ac6(this,_0x6ff5f9(0x432),{'ghostBounds':null,'parentBounds':null,'side':_0x6ff5f9(0x40d),'zoomRatio':0x1}),this[_0x6ff5f9(0x56b)]=!0x1,this[_0x6ff5f9(0x519)]=_0x23cfd0[_0x6ff5f9(0x439)][_0x6ff5f9(0x47c)],this[_0x6ff5f9(0x2f4)](_0x4aeaae);}['updateState'](_0x2a466a){const _0x353291=_0x2fba6e;if(this[_0x353291(0x432)]={...this[_0x353291(0x432)],..._0x2a466a},this[_0x353291(0x432)][_0x353291(0x5d3)]){let _0x28e107=this['_resolveDirtyBounds']();this['transformByState'](_0x28e107),this[_0x353291(0x486)]();}else this['hide']();let _0x4be1f1=this;typeof _0x4be1f1['makeDirtyNoDebounce']=='function'?_0x4be1f1[_0x353291(0x255)](!0x0):this[_0x353291(0x2b5)](!0x0);}[_0x2fba6e(0x219)](_0x4d31ee){return!0x1;}[_0x2fba6e(0x251)](_0x42863b,_0x151acf){const _0x24797a=_0x2fba6e;let _0x3306a4=this[_0x24797a(0x432)][_0x24797a(0x5d3)];if(!_0x3306a4||!this[_0x24797a(0x33f)])return this[_0x24797a(0x2b5)](!0x1),this;let _0x54d617=Number[_0x24797a(0x47e)](this[_0x24797a(0x432)]['zoomRatio'])&&(this['_state'][_0x24797a(0x3b3)]??0x0)>0x0?this[_0x24797a(0x432)][_0x24797a(0x3b3)]:0x1,_0x3cadf0=_0x2b0b25(_0x3306a4[_0x24797a(0x5c2)],0x0),_0x242732=_0x2b0b25(_0x3306a4[_0x24797a(0x29b)],0x0),_0x191334=Math['max'](0x1,_0x2b0b25(_0x3306a4[_0x24797a(0x53b)],_0x2e3986())),_0x7ecebe=Math[_0x24797a(0x2a8)](0x1,_0x2b0b25(_0x3306a4[_0x24797a(0x541)],_0x3bfe6e()));if(_0x42863b[_0x24797a(0x489)](),_0x42863b[_0x24797a(0x304)]=_0x11f202[_0x24797a(0x301)],_0x42863b[_0x24797a(0x573)]=_0x11f202[_0x24797a(0x32b)]/_0x54d617,_0x42863b[_0x24797a(0x2e2)]=_0x11f202[_0x24797a(0x388)],_0x42863b[_0x24797a(0x57f)]=_0x11f202[_0x24797a(0x271)],this['_drawConnectorPreview'](_0x42863b,{'left':_0x3cadf0,'top':_0x242732,'width':_0x191334,'height':_0x7ecebe},_0x54d617),this[_0x24797a(0x24b)](_0x42863b,_0x54d617),this[_0x24797a(0x432)][_0x24797a(0x2b4)]===!0x1)return _0x42863b['restore'](),this[_0x24797a(0x2b5)](!0x1),this;_0x3b9dc6(_0x42863b,_0x3cadf0,_0x242732,_0x191334,_0x7ecebe,_0x11f202['ghostRadius']),_0x42863b[_0x24797a(0x23b)](),_0x42863b[_0x24797a(0x58b)]();let _0x720064=this[_0x24797a(0x432)][_0x24797a(0x326)],_0x23e98e=Number[_0x24797a(0x47e)](_0x720064==null?void 0x0:_0x720064[_0x24797a(0x27f)])&&((_0x720064==null?void 0x0:_0x720064[_0x24797a(0x27f)])??0x0)>0x0?_0x720064[_0x24797a(0x27f)]:0x10,_0x1a2fde=_0x11f202[_0x24797a(0x274)]/_0x54d617;return _0x42863b[_0x24797a(0x57f)]=(_0x720064==null?void 0x0:_0x720064['color'])??_0x11f202[_0x24797a(0x3d0)],_0x42863b['font']=_0x2a3ac3(_0x11f202['ghostFontWeight'],_0x23e98e,_0x54d617),_0x42863b['textAlign']=_0x32f135(_0x720064==null?void 0x0:_0x720064[_0x24797a(0x361)]),_0x42863b[_0x24797a(0x45f)]=_0x24797a(0x371),_0x42863b[_0x24797a(0x52a)]((_0x720064==null?void 0x0:_0x720064[_0x24797a(0x2e1)])||_0x6837b2[_0x24797a(0x354)],_0x1b7489(_0x3cadf0,_0x191334,_0x720064==null?void 0x0:_0x720064[_0x24797a(0x361)],_0x1a2fde),_0x242732+_0x7ecebe/0x2,Math[_0x24797a(0x2a8)](0x1,_0x191334-_0x1a2fde*0x2)),_0x42863b[_0x24797a(0x4e1)](),this[_0x24797a(0x2b5)](!0x1),this;}[_0x2fba6e(0x4de)](){const _0x53173d=_0x2fba6e;let _0x343c1f=this[_0x53173d(0x432)]['ghostBounds'],_0xef92d9=Number[_0x53173d(0x47e)](this[_0x53173d(0x432)][_0x53173d(0x3b3)])&&(this[_0x53173d(0x432)][_0x53173d(0x3b3)]??0x0)>0x0?this[_0x53173d(0x432)]['zoomRatio']:0x1,_0x362718=_0x11f202[_0x53173d(0x58f)]/_0xef92d9;if(!_0x343c1f)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0xe72ceb=_0x2b0b25(_0x343c1f[_0x53173d(0x5c2)],0x0),_0x31692c=_0x2b0b25(_0x343c1f[_0x53173d(0x29b)],0x0),_0x49a147=Math[_0x53173d(0x2a8)](0x1,_0x2b0b25(_0x343c1f['width'],_0x2e3986())),_0x573d9b=Math[_0x53173d(0x2a8)](0x1,_0x2b0b25(_0x343c1f['height'],_0x3bfe6e())),_0x1126c2=this[_0x53173d(0x432)][_0x53173d(0x2a5)],_0x42acf8=this['_state'][_0x53173d(0x2e3)],_0x22d05a=_0x2b0b25(_0x1126c2==null?void 0x0:_0x1126c2[_0x53173d(0x5c2)],_0xe72ceb),_0x1e5ba6=_0x2b0b25(_0x1126c2==null?void 0x0:_0x1126c2[_0x53173d(0x29b)],_0x31692c),_0x40eecc=Math[_0x53173d(0x2a8)](0x1,_0x2b0b25(_0x1126c2==null?void 0x0:_0x1126c2[_0x53173d(0x53b)],_0x49a147)),_0x2126b6=Math[_0x53173d(0x2a8)](0x1,_0x2b0b25(_0x1126c2==null?void 0x0:_0x1126c2[_0x53173d(0x541)],_0x573d9b));if(!_0x42acf8){let _0xe8d0bd=Math[_0x53173d(0x4fb)](_0xe72ceb,_0x22d05a)-_0x362718,_0x1269d3=Math[_0x53173d(0x4fb)](_0x31692c,_0x1e5ba6)-_0x362718,_0x54756c=Math[_0x53173d(0x2a8)](_0xe72ceb+_0x49a147,_0x22d05a+_0x40eecc)+_0x362718,_0x360f69=Math[_0x53173d(0x2a8)](_0x31692c+_0x573d9b,_0x1e5ba6+_0x2126b6)+_0x362718;return{'left':_0xe8d0bd,'top':_0x1269d3,'width':_0x54756c-_0xe8d0bd,'height':_0x360f69-_0x1269d3};}let _0x4286d5=_0x2b0b25(_0x42acf8[_0x53173d(0x5c2)],_0xe72ceb),_0x5d3e44=_0x2b0b25(_0x42acf8[_0x53173d(0x29b)],_0x31692c),_0x296029=Math[_0x53173d(0x2a8)](0x1,_0x2b0b25(_0x42acf8['width'],_0x2e3986())),_0x4b958e=Math[_0x53173d(0x2a8)](0x1,_0x2b0b25(_0x42acf8[_0x53173d(0x541)],_0x3bfe6e())),_0x44e074=Math['min'](_0xe72ceb,_0x4286d5,_0x22d05a)-_0x362718,_0x13d6f1=Math[_0x53173d(0x4fb)](_0x31692c,_0x5d3e44,_0x1e5ba6)-_0x362718,_0x382629=Math['max'](_0xe72ceb+_0x49a147,_0x4286d5+_0x296029,_0x22d05a+_0x40eecc)+_0x362718,_0x2abfc0=Math[_0x53173d(0x2a8)](_0x31692c+_0x573d9b,_0x5d3e44+_0x4b958e,_0x1e5ba6+_0x2126b6)+_0x362718;return{'left':_0x44e074,'top':_0x13d6f1,'width':_0x382629-_0x44e074,'height':_0x2abfc0-_0x13d6f1};}['_drawSourceHighlight'](_0x5a7266,_0x167765){const _0xfb2547=_0x2fba6e;var _0x1ca610;let _0xfd92f6=this[_0xfb2547(0x432)][_0xfb2547(0x2a5)];if(!_0xfd92f6)return;let _0x9d26a7=_0x11f202['sourceHaloScreen']/_0x167765,_0x3996d1=_0x2b0b25(_0xfd92f6[_0xfb2547(0x5c2)],0x0)-_0x9d26a7,_0x215175=_0x2b0b25(_0xfd92f6['top'],0x0)-_0x9d26a7,_0x55fce9=Math[_0xfb2547(0x2a8)](0x1,_0x2b0b25(_0xfd92f6['width'],_0x2e3986()))+_0x9d26a7*0x2,_0x282af3=Math['max'](0x1,_0x2b0b25(_0xfd92f6[_0xfb2547(0x541)],_0x3bfe6e()))+_0x9d26a7*0x2;_0x5a7266[_0xfb2547(0x489)](),_0x5a7266['globalAlpha']=0x1,_0x5a7266[_0xfb2547(0x573)]=_0x11f202[_0xfb2547(0x32b)]/_0x167765,_0x5a7266[_0xfb2547(0x2e2)]=_0x11f202[_0xfb2547(0x452)],_0x5a7266[_0xfb2547(0x57f)]=_0x11f202[_0xfb2547(0x418)],(_0x1ca610=_0x5a7266[_0xfb2547(0x4ea)])==null||_0x1ca610[_0xfb2547(0x3b6)](_0x5a7266,_0x11f202[_0xfb2547(0x325)][_0xfb2547(0x3ff)](_0x2ad67a=>_0x2ad67a/_0x167765)),_0x3b9dc6(_0x5a7266,_0x3996d1,_0x215175,_0x55fce9,_0x282af3,_0x11f202[_0xfb2547(0x2f0)]),_0x5a7266[_0xfb2547(0x23b)](),_0x5a7266[_0xfb2547(0x58b)](),_0x5a7266[_0xfb2547(0x4e1)]();}[_0x2fba6e(0x460)](_0x3fb7ac,_0x5c45bf,_0x223f74){const _0x1a5414=_0x2fba6e;let _0x59fae9=this[_0x1a5414(0x432)][_0x1a5414(0x2e3)];if(!_0x59fae9)return;let _0x468cc3=_0x2b0b25(_0x59fae9[_0x1a5414(0x5c2)],0x0),_0x2eb4b6=_0x2b0b25(_0x59fae9[_0x1a5414(0x29b)],0x0),_0x14b78b=Math[_0x1a5414(0x2a8)](0x1,_0x2b0b25(_0x59fae9[_0x1a5414(0x53b)],_0x2e3986())),_0x2d01e3=Math[_0x1a5414(0x2a8)](0x1,_0x2b0b25(_0x59fae9[_0x1a5414(0x541)],_0x3bfe6e())),_0x5c05e1=_0x11f202[_0x1a5414(0x217)],_0x1e18c5=this[_0x1a5414(0x432)][_0x1a5414(0x3b2)]??_0x1a5414(0x40d);if(_0x3fb7ac[_0x1a5414(0x489)](),_0x3fb7ac[_0x1a5414(0x304)]=_0x11f202[_0x1a5414(0x291)],_0x3fb7ac[_0x1a5414(0x2e2)]=_0x11f202[_0x1a5414(0x388)],_0x3fb7ac[_0x1a5414(0x573)]=_0x11f202['lineWidthScreen']/_0x223f74,_0x3fb7ac[_0x1a5414(0x306)]=_0x1a5414(0x51c),_0x3fb7ac[_0x1a5414(0x25e)]='round',_0x3fb7ac['beginPath'](),_0x1e18c5==='top'||_0x1e18c5===_0x1a5414(0x365)){let _0x19a6f8=_0x468cc3+_0x14b78b/0x2,_0x5ea9a1=_0x5c45bf[_0x1a5414(0x5c2)]+_0x5c45bf[_0x1a5414(0x53b)]/0x2,_0x1c5241=_0x1e18c5===_0x1a5414(0x365)?_0x2eb4b6+_0x2d01e3:_0x2eb4b6,_0x4a5383=_0x1e18c5===_0x1a5414(0x365)?_0x5c45bf[_0x1a5414(0x29b)]:_0x5c45bf[_0x1a5414(0x29b)]+_0x5c45bf[_0x1a5414(0x541)],_0x2e422c=_0x1e18c5==='bottom'?Math[_0x1a5414(0x4fb)](_0x1c5241+_0x5c05e1,(_0x1c5241+_0x4a5383)/0x2):Math[_0x1a5414(0x2a8)](_0x1c5241-_0x5c05e1,(_0x1c5241+_0x4a5383)/0x2);_0x3fb7ac[_0x1a5414(0x564)](_0x19a6f8,_0x1c5241),_0x3fb7ac[_0x1a5414(0x3bd)](_0x19a6f8,_0x2e422c),_0x3fb7ac['lineTo'](_0x5ea9a1,_0x2e422c),_0x3fb7ac[_0x1a5414(0x3bd)](_0x5ea9a1,_0x4a5383);}else{let _0x174b85=_0x2eb4b6+_0x2d01e3/0x2,_0x137538=_0x5c45bf['top']+_0x5c45bf[_0x1a5414(0x541)]/0x2,_0x3d7a00=_0x1e18c5==='right'?_0x468cc3+_0x14b78b:_0x468cc3,_0x1eb1e0=_0x1e18c5==='right'?_0x5c45bf[_0x1a5414(0x5c2)]:_0x5c45bf[_0x1a5414(0x5c2)]+_0x5c45bf[_0x1a5414(0x53b)],_0x541383=_0x1e18c5===_0x1a5414(0x40d)?Math[_0x1a5414(0x4fb)](_0x3d7a00+_0x5c05e1,(_0x3d7a00+_0x1eb1e0)/0x2):Math['max'](_0x3d7a00-_0x5c05e1,(_0x3d7a00+_0x1eb1e0)/0x2);_0x3fb7ac['moveTo'](_0x3d7a00,_0x174b85),_0x3fb7ac[_0x1a5414(0x3bd)](_0x541383,_0x174b85),_0x3fb7ac['lineTo'](_0x541383,_0x137538),_0x3fb7ac[_0x1a5414(0x3bd)](_0x1eb1e0,_0x137538);}_0x3fb7ac[_0x1a5414(0x58b)](),_0x3fb7ac[_0x1a5414(0x4e1)]();}};function _0x4959f0(_0x2aa0b1,_0x4912da){return(_0x4912da==null?void 0x0:_0x4912da[_0x2aa0b1['elementId']])??_0x2aa0b1['element']['transform'];}function _0x4ae6dc(_0x1a5288,_0x46c47c){const _0x5a0eb0=_0x2fba6e;let _0xda2426=_0x4959f0(_0x1a5288,_0x46c47c);return{'x':(_0xda2426['left']??0x0)+(_0xda2426['width']??0x0)/0x2,'y':(_0xda2426[_0x5a0eb0(0x29b)]??0x0)+(_0xda2426['height']??0x0)/0x2};}function _0x1f7946(_0x29cb87,_0x10cb5a){const _0x4e64e9=_0x2fba6e;return Math[_0x4e64e9(0x3d2)](_0x29cb87['x']-_0x10cb5a['x'],_0x29cb87['y']-_0x10cb5a['y']);}function _0x422596(_0xd11940,_0x1e3307){const _0x19e9d1=_0x2fba6e;let _0x35081c=_0xd11940[_0x19e9d1(0x5c2)]??0x0,_0x5b143d=_0xd11940['top']??0x0,_0x739c04=_0x35081c+(_0xd11940['width']??0x0),_0x33ee4f=_0x5b143d+(_0xd11940['height']??0x0),_0x5f3885=_0x1e3307[_0x19e9d1(0x5c2)]??0x0,_0x1ae5c1=_0x1e3307[_0x19e9d1(0x29b)]??0x0,_0x21f911=_0x5f3885+(_0x1e3307[_0x19e9d1(0x53b)]??0x0),_0xc4f17=_0x1ae5c1+(_0x1e3307[_0x19e9d1(0x541)]??0x0),_0x124b38=Math[_0x19e9d1(0x2a8)](_0x5f3885-_0x739c04,_0x35081c-_0x21f911,0x0),_0x418207=Math[_0x19e9d1(0x2a8)](_0x1ae5c1-_0x33ee4f,_0x5b143d-_0xc4f17,0x0);return Math[_0x19e9d1(0x3d2)](_0x124b38,_0x418207);}function _0x244529(_0x4456cc,_0x5d8532,_0x4b530b){const _0x249f30=_0x2fba6e;var _0x63165d;let _0x4acf6e=(0x0,_0x6837b2[_0x249f30(0x258)])((_0x63165d=_0x4456cc[_0x5d8532])==null?void 0x0:_0x63165d[_0x249f30(0x21f)]);for(;_0x4acf6e!=null&&_0x4acf6e['parentNodeId'];){var _0x54c2ff;if(_0x4acf6e[_0x249f30(0x1e6)]===_0x4b530b)return!0x0;_0x4acf6e=(0x0,_0x6837b2['getMindMapNodeMeta'])((_0x54c2ff=_0x4456cc[_0x4acf6e[_0x249f30(0x1e6)]])==null?void 0x0:_0x54c2ff[_0x249f30(0x21f)]);}return!0x1;}function _0xdb89f8(_0x553dee,_0x113398,_0xf1b67c){const _0x5cfd98=_0x2fba6e;let _0x4fab8b=_0x4959f0(_0x553dee,_0xf1b67c),_0x2515e0=_0x4fab8b[_0x5cfd98(0x29b)]??0x0,_0x44d2c7=_0x4fab8b['height']??0x0;return _0x44d2c7<=0x0?null:_0x113398['y']<=_0x2515e0+_0x44d2c7/0x3?'before':_0x113398['y']>=_0x2515e0+_0x44d2c7*0x2/0x3?_0x5cfd98(0x2a6):null;}function _0xf06e8c(_0x3ec2ca,_0x3a1566){const _0xeb2795=_0x2fba6e;let _0x39e812=_0x3a1566==null?void 0x0:_0x3a1566[_0x3ec2ca];return Number[_0xeb2795(0x47e)](_0x39e812==null?void 0x0:_0x39e812[_0xeb2795(0x5c2)])&&Number['isFinite'](_0x39e812==null?void 0x0:_0x39e812[_0xeb2795(0x29b)])?{'kind':_0xeb2795(0x4e9),'left':_0x39e812[_0xeb2795(0x5c2)],'top':_0x39e812[_0xeb2795(0x29b)]}:{'kind':_0xeb2795(0x4e9)};}function _0x414a56(_0xf52330,_0x21356a,_0x4e65c8){const _0x1279bd=_0x2fba6e;let _0xfa5526=_0xf52330[_0x21356a],_0x412251=(0x0,_0x6837b2[_0x1279bd(0x258)])(_0xfa5526==null?void 0x0:_0xfa5526['element']);if(!_0xfa5526||!_0x412251||!_0x412251['parentNodeId']&&!(_0x4e65c8!=null&&_0x4e65c8[_0x1279bd(0x21e)]))return{'kind':_0x1279bd(0x58c)};let _0x5bbab7=_0x4e65c8==null?void 0x0:_0x4e65c8[_0x1279bd(0x20f)],_0x3097ed=_0x4959f0(_0xfa5526,_0x5bbab7),_0x27d932=_0x4ae6dc(_0xfa5526,_0x5bbab7),_0x3bc3fd=Object['values'](_0xf52330)['map'](_0x3b37d9=>{const _0x16e9c1=_0x1279bd;let _0xe0b6a3=(0x0,_0x6837b2[_0x16e9c1(0x258)])(_0x3b37d9[_0x16e9c1(0x21f)]);return!_0xe0b6a3||_0x3b37d9[_0x16e9c1(0x289)]===_0x21356a||_0x3b37d9[_0x16e9c1(0x289)]===_0x412251[_0x16e9c1(0x1e6)]||_0x4e65c8!=null&&_0x4e65c8[_0x16e9c1(0x21e)]&&!_0x412251[_0x16e9c1(0x1e6)]&&_0xe0b6a3[_0x16e9c1(0x2b3)]===_0x412251['structureScopeId']||_0x244529(_0xf52330,_0x3b37d9[_0x16e9c1(0x289)],_0x21356a)?null:{'item':_0x3b37d9,'snapDistance':_0x422596(_0x3097ed,_0x4959f0(_0x3b37d9,_0x5bbab7)),'center':_0x4ae6dc(_0x3b37d9,_0x5bbab7)};})[_0x1279bd(0x412)](_0x19d84d=>!!_0x19d84d)[_0x1279bd(0x4cd)]((_0x4930e8,_0x467f39)=>_0x4930e8[_0x1279bd(0x5dc)]-_0x467f39[_0x1279bd(0x5dc)]||_0x1f7946(_0x27d932,_0x4930e8[_0x1279bd(0x58d)])-_0x1f7946(_0x27d932,_0x467f39[_0x1279bd(0x58d)]))[0x0];if(_0x3bc3fd&&_0x3bc3fd[_0x1279bd(0x5dc)]<=0x64){let _0x164df1=(0x0,_0x6837b2[_0x1279bd(0x258)])(_0x3bc3fd[_0x1279bd(0x312)][_0x1279bd(0x21f)]),_0x359cec=_0x164df1!=null&&_0x164df1[_0x1279bd(0x1e6)]?_0xdb89f8(_0x3bc3fd[_0x1279bd(0x312)],_0x27d932,_0x5bbab7):null;return _0x164df1!=null&&_0x164df1[_0x1279bd(0x1e6)]&&_0x359cec?{'kind':_0x1279bd(0x51b),'newParentNodeId':_0x164df1[_0x1279bd(0x1e6)],'side':_0x164df1[_0x1279bd(0x3b2)]??_0x1279bd(0x40d),'referenceNodeId':_0x3bc3fd['item'][_0x1279bd(0x289)],'placement':_0x359cec}:{'kind':_0x1279bd(0x51b),'newParentNodeId':_0x3bc3fd[_0x1279bd(0x312)][_0x1279bd(0x289)],'side':_0x27d932['x']<_0x3bc3fd['center']['x']?_0x1279bd(0x5c2):_0x1279bd(0x40d)};}if(_0x4e65c8!=null&&_0x4e65c8['detachWhenNoSnap'])return _0xf06e8c(_0x21356a,_0x5bbab7);if(!_0x412251[_0x1279bd(0x1e6)])return{'kind':_0x1279bd(0x58c)};let _0x6ba9a0=_0xf52330[_0x412251[_0x1279bd(0x1e6)]];return _0x6ba9a0&&_0x1f7946(_0x27d932,_0x4ae6dc(_0x6ba9a0,_0x5bbab7))>0x230?_0xf06e8c(_0x21356a,_0x5bbab7):{'kind':_0x1279bd(0x58c)};}function _0x2fee7c(_0x17e64a,_0x467ea1){const _0x40fd0c=_0x2fba6e;var _0x455d31,_0x17321a;return _0x17e64a[_0x40fd0c(0x289)]===_0x467ea1||((_0x455d31=(0x0,_0x6837b2[_0x40fd0c(0x258)])(_0x17e64a[_0x40fd0c(0x21f)]))==null?void 0x0:_0x455d31[_0x40fd0c(0x2b3)])===_0x467ea1||((_0x17321a=(0x0,_0x6837b2[_0x40fd0c(0x46c)])(_0x17e64a[_0x40fd0c(0x21f)]))==null?void 0x0:_0x17321a[_0x40fd0c(0x2b3)])===_0x467ea1;}function _0x3a7560(_0x3c166a,_0x1bf983,_0x183fa6,_0xf2d88e){const _0x357d3b=_0x2fba6e;let _0x1a7f2f=_0x3c166a[_0x1bf983];if(!_0x1a7f2f)return _0x3c166a;let _0x5cbfd8=_0x1a7f2f['transform']??_0x1a7f2f['element'][_0x357d3b(0x485)]??{};return{..._0x3c166a,[_0x1bf983]:{..._0x1a7f2f,'transform':{..._0x5cbfd8,'left':(_0x5cbfd8['left']??0x0)+_0x183fa6,'top':(_0x5cbfd8[_0x357d3b(0x29b)]??0x0)+_0xf2d88e},'element':{..._0x1a7f2f['element'],'transform':{..._0x1a7f2f[_0x357d3b(0x21f)][_0x357d3b(0x485)],'left':(_0x1a7f2f[_0x357d3b(0x21f)][_0x357d3b(0x485)]['left']??0x0)+_0x183fa6,'top':(_0x1a7f2f['element']['transform'][_0x357d3b(0x29b)]??0x0)+_0xf2d88e}}}};}function _0x2d03bd(_0xb49a5c){const _0x5c6a1a=_0x2fba6e;if(!Number[_0x5c6a1a(0x47e)](_0xb49a5c[_0x5c6a1a(0x2b1)][_0x5c6a1a(0x5c2)])||!Number[_0x5c6a1a(0x47e)](_0xb49a5c[_0x5c6a1a(0x2b1)][_0x5c6a1a(0x29b)])||!Number['isFinite'](_0xb49a5c[_0x5c6a1a(0x272)]['left'])||!Number['isFinite'](_0xb49a5c[_0x5c6a1a(0x272)][_0x5c6a1a(0x29b)]))return null;let _0x4577e0=_0xb49a5c[_0x5c6a1a(0x2b1)][_0x5c6a1a(0x5c2)]-_0xb49a5c[_0x5c6a1a(0x272)][_0x5c6a1a(0x5c2)],_0x56061b=_0xb49a5c[_0x5c6a1a(0x2b1)][_0x5c6a1a(0x29b)]-_0xb49a5c[_0x5c6a1a(0x272)][_0x5c6a1a(0x29b)],_0x4863a3=_0x3a7560(_0xb49a5c[_0x5c6a1a(0x1f4)],_0xb49a5c[_0x5c6a1a(0x5c3)],_0x4577e0,_0x56061b),_0x25cd66=[];return Object[_0x5c6a1a(0x2dd)](_0x4863a3)[_0x5c6a1a(0x3d8)](_0x289722=>{const _0x55b9d0=_0x5c6a1a;if(_0x289722[_0x55b9d0(0x289)]===_0xb49a5c[_0x55b9d0(0x3ee)]||_0x289722[_0x55b9d0(0x289)]===_0xb49a5c[_0x55b9d0(0x5c3)]||!_0x2fee7c(_0x289722,_0xb49a5c[_0x55b9d0(0x5c3)]))return;if('connectorData'in _0x289722[_0x55b9d0(0x21f)]){var _0x35d652;let _0x40dd5a=(_0x35d652=_0xb49a5c[_0x55b9d0(0x1f4)][_0x289722[_0x55b9d0(0x289)]])==null?void 0x0:_0x35d652['element'];_0x40dd5a&&_0x55b9d0(0x4dd)in _0x40dd5a&&_0x25cd66[_0x55b9d0(0x394)]({'kind':'connector','elementId':_0x289722['elementId'],'element':(0x0,_0x22188d[_0x55b9d0(0x275)])(_0x40dd5a,{'x':_0x4577e0,'y':_0x56061b})});return;}let _0x42365a=(0x0,_0x22188d[_0x55b9d0(0x5bf)])(_0x4863a3,_0x289722[_0x55b9d0(0x289)]);_0x42365a&&_0x25cd66[_0x55b9d0(0x394)]({'kind':_0x55b9d0(0x327),'elementId':_0x289722[_0x55b9d0(0x289)],'bounds':_0x42365a});}),{'deltaX':_0x4577e0,'deltaY':_0x56061b,'elementData':_0x4863a3,'items':_0x25cd66};}let _0x1b34c0=class extends _0x3a2278[_0x2fba6e(0x22d)]{constructor(_0x4cd681,_0x6f27d4,_0x15c1e1,_0x426802,_0x119b58,_0x3de0cf,_0x307cc7){const _0x22c862=_0x2fba6e;super(),this[_0x22c862(0x595)]=_0x4cd681,this[_0x22c862(0x4ec)]=_0x6f27d4,this['_elementStateService']=_0x15c1e1,this[_0x22c862(0x4a0)]=_0x426802,this[_0x22c862(0x5d6)]=_0x119b58,this['_instanceService']=_0x3de0cf,this['_undoRedoGroupService']=_0x307cc7,_0x251ac6(this,_0x22c862(0x3c8),null),_0x251ac6(this,_0x22c862(0x5cd),null),_0x251ac6(this,'_dragPreviewObject',null),_0x251ac6(this,_0x22c862(0x2a1),!0x1),_0x251ac6(this,'_lastChildDragAction',null),_0x251ac6(this,_0x22c862(0x389),null),_0x251ac6(this,_0x22c862(0x1e4),!0x1),_0x251ac6(this,_0x22c862(0x415),null),_0x251ac6(this,_0x22c862(0x3a7),!0x1),this['_init']();}['_init'](){const _0x307c50=_0x2fba6e;var _0xf640ec,_0x1e9e9c,_0x389e5,_0x566ceb,_0x309559;let _0x45c8cb=this[_0x307c50(0x595)][_0x307c50(0x2fd)][_0x307c50(0x2c2)]();this[_0x307c50(0x417)]((0x0,_0x3a2278[_0x307c50(0x3af)])(_0x45c8cb[_0x307c50(0x581)]['pipe']((0x0,_0x45614e['takeUntil'])(this[_0x307c50(0x4e8)]))['subscribe'](()=>{const _0xe77944=_0x307c50;this[_0xe77944(0x269)]();}))),this['disposeWithMe']((0x0,_0x3a2278[_0x307c50(0x3af)])(((_0xf640ec=_0x45c8cb[_0x307c50(0x3f2)])==null?void 0x0:_0xf640ec[_0x307c50(0x456)]((0x0,_0x45614e[_0x307c50(0x2a9)])(this[_0x307c50(0x4e8)]))['subscribe'](_0x308d69=>{const _0x133472=_0x307c50;this[_0x133472(0x3e4)](_0x308d69==null?void 0x0:_0x308d69[_0x133472(0x3db)]);}))??{'dispose':()=>{}})),this['disposeWithMe']((0x0,_0x3a2278['toDisposable'])(_0x45c8cb[_0x307c50(0x5c6)][_0x307c50(0x456)]((0x0,_0x45614e[_0x307c50(0x2a9)])(this[_0x307c50(0x4e8)]))[_0x307c50(0x55f)](_0x334376=>{const _0x141136=_0x307c50;setTimeout(()=>this[_0x141136(0x584)](_0x334376==null?void 0x0:_0x334376['objects']),0x0);}))),this['disposeWithMe']((0x0,_0x3a2278[_0x307c50(0x3af)])(((_0x1e9e9c=this[_0x307c50(0x595)][_0x307c50(0x2fd)][_0x307c50(0x3ea)])==null?void 0x0:_0x1e9e9c[_0x307c50(0x1e1)]({'priority':0x3,'next':([_0x5afab2])=>this['_capturePointerChildDragStart'](_0x5afab2)}))??{'dispose':()=>{}})),this[_0x307c50(0x417)]((0x0,_0x3a2278[_0x307c50(0x3af)])(((_0x389e5=this[_0x307c50(0x595)][_0x307c50(0x2fd)][_0x307c50(0x57c)])==null?void 0x0:_0x389e5['subscribeEvent']({'priority':0x3,'next':([_0x297c2c,_0xba7ab9])=>this[_0x307c50(0x4ab)](_0x297c2c,_0xba7ab9)}))??{'dispose':()=>{}})),this[_0x307c50(0x417)]((0x0,_0x3a2278['toDisposable'])(((_0x566ceb=this['_renderContext'][_0x307c50(0x2fd)][_0x307c50(0x4f5)])==null?void 0x0:_0x566ceb[_0x307c50(0x1e1)]({'priority':0x3,'next':([_0x1ac3fa,_0x440f78])=>this['_applyPointerChildDrag'](_0x1ac3fa,_0x440f78)}))??{'dispose':()=>{}})),this[_0x307c50(0x417)]((0x0,_0x3a2278[_0x307c50(0x3af)])(((_0x309559=this[_0x307c50(0x595)][_0x307c50(0x2fd)]['onPointerCancel$'])==null?void 0x0:_0x309559[_0x307c50(0x1e1)]({'priority':0x3,'next':([,_0x46153d])=>this[_0x307c50(0x202)](_0x46153d)}))??{'dispose':()=>{}})),this[_0x307c50(0x417)]((0x0,_0x3a2278[_0x307c50(0x3af)])(()=>{const _0x4b862c=_0x307c50;var _0x472170;return(_0x472170=this['_objectPointerDisposables'])==null?void 0x0:_0x472170[_0x4b862c(0x450)]();})),this[_0x307c50(0x417)]((0x0,_0x3a2278[_0x307c50(0x3af)])(()=>this[_0x307c50(0x492)]())),this[_0x307c50(0x45b)](),this['_scheduleAttachObjectPointerListeners'](),this[_0x307c50(0x417)]((0x0,_0x3a2278[_0x307c50(0x3af)])(()=>this[_0x307c50(0x2df)]()));}['_subscribeElementDataChanges'](){const _0x5f200e=_0x2fba6e;[this[_0x5f200e(0x4ec)][_0x5f200e(0x295)],this[_0x5f200e(0x4ec)]['elementUpdate$'],this[_0x5f200e(0x4ec)][_0x5f200e(0x23c)]][_0x5f200e(0x3d8)](_0xe6d01c=>{const _0x5713d3=_0x5f200e;this[_0x5713d3(0x417)]((0x0,_0x3a2278[_0x5713d3(0x3af)])(_0xe6d01c[_0x5713d3(0x456)]((0x0,_0x45614e[_0x5713d3(0x2a9)])(this[_0x5713d3(0x4e8)]))['subscribe'](()=>{const _0xf32b8c=_0x5713d3;this[_0xf32b8c(0x247)]();})));}),this[_0x5f200e(0x5a0)][_0x5f200e(0x1ea)]&&this[_0x5f200e(0x417)]((0x0,_0x3a2278[_0x5f200e(0x3af)])(this[_0x5f200e(0x5a0)]['state$'][_0x5f200e(0x456)]((0x0,_0x45614e[_0x5f200e(0x2a9)])(this[_0x5f200e(0x4e8)]))[_0x5f200e(0x55f)](()=>{const _0x3050d5=_0x5f200e;this[_0x3050d5(0x247)]();})));}['_scheduleAttachObjectPointerListeners'](){const _0x1b3948=_0x2fba6e;this['_attachObjectPointerScheduled']||(this[_0x1b3948(0x1e4)]=!0x0,Promise[_0x1b3948(0x52b)]()['then'](()=>this['_attachObjectPointerListeners']()));}[_0x2fba6e(0x4f9)](){const _0x43ec27=_0x2fba6e;var _0x23edf2;this[_0x43ec27(0x1e4)]=!0x1;let _0x13eb1a=this['_resolveCurrentBoardContext'](),_0x6fd6de=this[_0x43ec27(0x595)]['scene'];if(!_0x13eb1a||typeof _0x6fd6de['getObject']!='function')return;let _0x5563d3=this[_0x43ec27(0x4ec)]['getElementData'](_0x13eb1a[_0x43ec27(0x3b0)],_0x13eb1a['subUnitId']),_0x45a68c=new _0x3a2278[(_0x43ec27(0x4cf))]();(_0x23edf2=this[_0x43ec27(0x389)])==null||_0x23edf2[_0x43ec27(0x450)](),this['_objectPointerDisposables']=_0x45a68c,Object[_0x43ec27(0x2dd)](_0x5563d3)[_0x43ec27(0x3d8)](_0x2b2901=>{const _0x1120b0=_0x43ec27;var _0x5c7e85,_0x2ccd33;let _0x230603=(0x0,_0x6837b2['getMindMapNodeMeta'])(_0x2b2901[_0x1120b0(0x21f)]);if(!(_0x230603!=null&&_0x230603['parentNodeId']))return;let _0x375253=(0x0,_0x23cfd0['getBoardElementRenderObjectKey'])(_0x13eb1a['unitId'],_0x2b2901[_0x1120b0(0x289)]),_0x3ce8b5=((_0x5c7e85=_0x6fd6de['getObjectIncludeInGroup'])==null?void 0x0:_0x5c7e85[_0x1120b0(0x3b6)](_0x6fd6de,_0x375253))??((_0x2ccd33=_0x6fd6de[_0x1120b0(0x4a3)])==null?void 0x0:_0x2ccd33[_0x1120b0(0x3b6)](_0x6fd6de,_0x375253));_0x3ce8b5!=null&&_0x3ce8b5[_0x1120b0(0x3ea)]&&_0x45a68c['add'](_0x3ce8b5[_0x1120b0(0x3ea)][_0x1120b0(0x1e1)]({'priority':-0xa,'next':([_0x29f7e0,_0x4b5a6d])=>this['_capturePointerChildDragStart'](_0x29f7e0,{'unitId':_0x13eb1a[_0x1120b0(0x3b0)],'subUnitId':_0x13eb1a[_0x1120b0(0x363)],'nodeId':_0x2b2901[_0x1120b0(0x289)]},_0x4b5a6d)}));});}[_0x2fba6e(0x342)](){const _0x322452=_0x2fba6e;let _0x34813e=this['_elementStateService']['getSnapshot']()[_0x322452(0x5ab)];if(_0x34813e)return _0x34813e;let _0x1c5650=this[_0x322452(0x595)][_0x322452(0x3b0)],_0x6681e7=_0x1c5650?this[_0x322452(0x44b)]['getUnit'](_0x1c5650,_0x3a2278[_0x322452(0x1f1)][_0x322452(0x309)]):null,_0x4ebc5e=_0x6681e7==null?void 0x0:_0x6681e7[_0x322452(0x46f)]();return!_0x6681e7||!_0x4ebc5e?null:{'unitId':_0x6681e7[_0x322452(0x2ae)](),'subUnitId':_0x4ebc5e};}[_0x2fba6e(0x269)](){const _0x148b66=_0x2fba6e;let _0x114bcc=this[_0x148b66(0x5a0)][_0x148b66(0x39a)]();this['_childDragActivated']=!0x1,this['_childDragSelectionHidden']=!0x1,this[_0x148b66(0x5b8)]=null;let _0x3f8020=_0x114bcc[_0x148b66(0x5ab)],_0xd67975=_0x114bcc['focusedId']??_0x114bcc[_0x148b66(0x369)][0x0];if(!_0x3f8020||!_0xd67975){this[_0x148b66(0x3c8)]=null,this[_0x148b66(0x2df)]();return;}let _0x80e7ae=this[_0x148b66(0x4ec)][_0x148b66(0x5d8)](_0x3f8020[_0x148b66(0x3b0)],_0x3f8020[_0x148b66(0x363)]);if(_0x114bcc['selectedIds']['length']>0x1){let _0xd35d65=this[_0x148b66(0x311)](_0x80e7ae,_0x114bcc[_0x148b66(0x369)]);if(!_0xd35d65){this[_0x148b66(0x3c8)]=null,this[_0x148b66(0x2df)]();return;}let _0x53b266=_0x80e7ae[_0xd35d65[_0x148b66(0x3ee)]],_0x9f726f=(0x0,_0x22188d[_0x148b66(0x5bf)])(_0x80e7ae,_0xd35d65[_0x148b66(0x3ee)]),_0x2cecab=_0x53b266[_0x148b66(0x21f)][_0x148b66(0x485)];this['_dragStart']={'kind':_0x148b66(0x359),'unitId':_0x3f8020['unitId'],'subUnitId':_0x3f8020[_0x148b66(0x363)],'nodeId':_0xd35d65['rootNodeId'],'scopeId':_0xd35d65[_0x148b66(0x5c3)],'left':(_0x9f726f==null?void 0x0:_0x9f726f[_0x148b66(0x5c2)])??_0x2cecab[_0x148b66(0x5c2)]??0x0,'top':(_0x9f726f==null?void 0x0:_0x9f726f[_0x148b66(0x29b)])??_0x2cecab[_0x148b66(0x29b)]??0x0,'width':(_0x9f726f==null?void 0x0:_0x9f726f[_0x148b66(0x53b)])??_0x2cecab[_0x148b66(0x53b)]??0x0,'height':(_0x9f726f==null?void 0x0:_0x9f726f[_0x148b66(0x541)])??_0x2cecab[_0x148b66(0x541)]??0x0,'elementData':_0x80e7ae};return;}let _0x43a04b=_0x80e7ae[_0xd67975],_0x1a8483=(0x0,_0x6837b2[_0x148b66(0x258)])(_0x43a04b==null?void 0x0:_0x43a04b[_0x148b66(0x21f)]);if(!_0x43a04b||!_0x1a8483){this[_0x148b66(0x3c8)]=null,this[_0x148b66(0x2df)]();return;}let _0xd9dd3b=(0x0,_0x22188d[_0x148b66(0x5bf)])(_0x80e7ae,_0xd67975),_0x301bd7=_0x43a04b[_0x148b66(0x21f)]['transform'];this[_0x148b66(0x3c8)]={'kind':_0x1a8483[_0x148b66(0x1e6)]===null?'root':_0x148b66(0x553),'unitId':_0x3f8020['unitId'],'subUnitId':_0x3f8020[_0x148b66(0x363)],'nodeId':_0xd67975,'scopeId':_0x1a8483['structureScopeId'],'left':(_0xd9dd3b==null?void 0x0:_0xd9dd3b[_0x148b66(0x5c2)])??_0x301bd7['left']??0x0,'top':(_0xd9dd3b==null?void 0x0:_0xd9dd3b[_0x148b66(0x29b)])??_0x301bd7[_0x148b66(0x29b)]??0x0,'width':(_0xd9dd3b==null?void 0x0:_0xd9dd3b[_0x148b66(0x53b)])??_0x301bd7[_0x148b66(0x53b)]??0x0,'height':(_0xd9dd3b==null?void 0x0:_0xd9dd3b[_0x148b66(0x541)])??_0x301bd7['height']??0x0,'elementData':_0x80e7ae};}['_resolveCompleteSelectedScope'](_0x98d893,_0x2c7555){const _0x3b5014=_0x2fba6e;let _0x1fe66e=new Set(_0x2c7555),_0x4f0c44=_0x2c7555[_0x3b5014(0x3ff)](_0x41fb08=>{const _0x3d39a7=_0x3b5014;var _0x15bd3e,_0x2edd1a,_0x1033a4,_0x18f571;let _0x124609=(_0x15bd3e=_0x98d893[_0x41fb08])==null?void 0x0:_0x15bd3e[_0x3d39a7(0x21f)];return((_0x2edd1a=(0x0,_0x6837b2[_0x3d39a7(0x258)])(_0x124609))==null?void 0x0:_0x2edd1a[_0x3d39a7(0x2b3)])??((_0x1033a4=(0x0,_0x6837b2[_0x3d39a7(0x46c)])(_0x124609))==null?void 0x0:_0x1033a4['structureScopeId'])??((_0x18f571=(0x0,_0x6837b2[_0x3d39a7(0x205)])(_0x124609))==null?void 0x0:_0x18f571[_0x3d39a7(0x2b3)])??null;});if(_0x4f0c44['some'](_0x1370f0=>_0x1370f0===null)||new Set(_0x4f0c44)['size']!==0x1)return null;let _0x1e2669=_0x4f0c44[0x0];if(!_0x1e2669)return null;let _0x581a12=Object[_0x3b5014(0x2dd)](_0x98d893)[_0x3b5014(0x412)](_0x531c2e=>{const _0x5821ff=_0x3b5014;var _0x5e2c7b;return _0x531c2e[_0x5821ff(0x21f)][_0x5821ff(0x33f)]!==!0x1&&((_0x5e2c7b=(0x0,_0x6837b2[_0x5821ff(0x258)])(_0x531c2e[_0x5821ff(0x21f)]))==null?void 0x0:_0x5e2c7b[_0x5821ff(0x2b3)])===_0x1e2669;});if(_0x581a12[_0x3b5014(0x333)]===0x0||_0x581a12[_0x3b5014(0x501)](_0x9ca142=>!_0x1fe66e[_0x3b5014(0x5ad)](_0x9ca142[_0x3b5014(0x289)])))return null;let _0x268aa0=_0x581a12['filter'](_0x432a1a=>{const _0x2ea202=_0x3b5014;var _0x2fbce1;return((_0x2fbce1=(0x0,_0x6837b2['getMindMapNodeMeta'])(_0x432a1a[_0x2ea202(0x21f)]))==null?void 0x0:_0x2fbce1[_0x2ea202(0x1e6)])===null;});return _0x268aa0[_0x3b5014(0x333)]===0x1?{'rootNodeId':_0x268aa0[0x0][_0x3b5014(0x289)],'scopeId':_0x1e2669}:null;}[_0x2fba6e(0x592)](_0x563a4f,_0x368539,_0x38d818){const _0x5eca08=_0x2fba6e;var _0x4b1452,_0x16e1fa,_0x556461,_0x3bfa51,_0xd0c53b;if(this[_0x5eca08(0x5d6)]['getState']()[_0x5eca08(0x59b)]===_0x5eca08(0x505)||(_0x563a4f[_0x5eca08(0x438)]??0x0)!==0x0)return;let _0x40c692=this['_elementStateService'][_0x5eca08(0x39a)]();if(_0x40c692['activeEditingId']){this[_0x5eca08(0x5cd)]=null;return;}let _0x1596e8=_0x368539?{'unitId':_0x368539[_0x5eca08(0x3b0)],'subUnitId':_0x368539[_0x5eca08(0x363)]}:_0x40c692[_0x5eca08(0x5ab)]??this[_0x5eca08(0x342)](),_0x268d88=(_0x368539==null?void 0x0:_0x368539['nodeId'])??(_0x40c692[_0x5eca08(0x369)][_0x5eca08(0x333)]===0x1?_0x40c692[_0x5eca08(0x4e4)]??_0x40c692[_0x5eca08(0x369)][0x0]:void 0x0);if(!_0x1596e8){this[_0x5eca08(0x5cd)]=null;return;}let _0x88f8e1=this[_0x5eca08(0x4ec)]['getElementData'](_0x1596e8['unitId'],_0x1596e8[_0x5eca08(0x363)]),_0x5f0eea=this[_0x5eca08(0x54d)](_0x563a4f);if(!_0x368539){let _0x275aea=_0x268d88?_0x88f8e1[_0x268d88]:null,_0x1aeb82=(0x0,_0x6837b2[_0x5eca08(0x258)])(_0x275aea==null?void 0x0:_0x275aea[_0x5eca08(0x21f)]),_0x47aec0=_0x268d88?(0x0,_0x22188d[_0x5eca08(0x5bf)])(_0x88f8e1,_0x268d88)??(_0x275aea==null?void 0x0:_0x275aea[_0x5eca08(0x21f)][_0x5eca08(0x485)]):null;_0x1aeb82!=null&&_0x1aeb82[_0x5eca08(0x1e6)]&&_0x47aec0&&this['_isPointInBounds'](_0x5f0eea,{'left':_0x47aec0[_0x5eca08(0x5c2)]??0x0,'top':_0x47aec0['top']??0x0,'width':_0x47aec0['width']??0x0,'height':_0x47aec0[_0x5eca08(0x541)]??0x0})||(_0x268d88=this[_0x5eca08(0x51e)](_0x88f8e1,_0x5f0eea));}if(!_0x268d88){this[_0x5eca08(0x5cd)]=null;return;}let _0x39f8c7=_0x88f8e1[_0x268d88],_0x104b19=(0x0,_0x6837b2[_0x5eca08(0x258)])(_0x39f8c7==null?void 0x0:_0x39f8c7[_0x5eca08(0x21f)]);if(!_0x39f8c7||!(_0x104b19!=null&&_0x104b19['parentNodeId'])){this['_pointerDragStart']=null;return;}this['_instanceService'][_0x5eca08(0x2ac)](_0x1596e8[_0x5eca08(0x3b0)]),(_0x4b1452=this['_renderContext'][_0x5eca08(0x487)])==null||(_0x16e1fa=_0x4b1452[_0x5eca08(0x4a6)])==null||(_0x16e1fa=_0x16e1fa[_0x5eca08(0x3b6)](_0x4b1452))==null||(_0x556461=_0x16e1fa[_0x5eca08(0x42d)])==null||_0x556461[_0x5eca08(0x3b6)](_0x16e1fa,{'preventScroll':!0x0}),(_0x3bfa51=(_0xd0c53b=this[_0x5eca08(0x5a0)])[_0x5eca08(0x382)])==null||_0x3bfa51[_0x5eca08(0x3b6)](_0xd0c53b,_0x1596e8,[_0x268d88],_0x268d88),_0x38d818==null||_0x38d818['stopPropagation']();let _0x48110b=(0x0,_0x22188d[_0x5eca08(0x5bf)])(_0x88f8e1,_0x268d88),_0x966a1b=_0x39f8c7['element'][_0x5eca08(0x485)],_0x20adf2={'left':(_0x48110b==null?void 0x0:_0x48110b['left'])??_0x966a1b['left']??0x0,'top':(_0x48110b==null?void 0x0:_0x48110b['top'])??_0x966a1b['top']??0x0,'width':(_0x48110b==null?void 0x0:_0x48110b[_0x5eca08(0x53b)])??_0x966a1b['width']??0x0,'height':(_0x48110b==null?void 0x0:_0x48110b[_0x5eca08(0x541)])??_0x966a1b[_0x5eca08(0x541)]??0x0};if(!_0x368539&&!this[_0x5eca08(0x1fd)](_0x5f0eea,_0x20adf2)){this[_0x5eca08(0x5cd)]=null;return;}let _0x3b00c0=this[_0x5eca08(0x45d)](_0x563a4f);this[_0x5eca08(0x2a1)]=!0x1,this[_0x5eca08(0x3a7)]=!0x1,this['_lastChildDragAction']=null,this['_pointerDragStart']={'kind':_0x5eca08(0x553),'unitId':_0x1596e8['unitId'],'subUnitId':_0x1596e8[_0x5eca08(0x363)],'nodeId':_0x268d88,'scopeId':_0x104b19[_0x5eca08(0x2b3)],..._0x20adf2,'pointerStartX':_0x3b00c0['x'],'pointerStartY':_0x3b00c0['y'],'elementData':_0x88f8e1},this[_0x5eca08(0x4d4)](),this[_0x5eca08(0x518)](_0x563a4f,_0x38d818);}[_0x2fba6e(0x4ab)](_0x56a949,_0x3a7b8a){const _0x2b7968=_0x2fba6e;var _0x23e06a,_0x2b02d1;let _0x4d5537=this[_0x2b7968(0x5cd)];if(!_0x4d5537||_0x56a949['buttons']!==void 0x0&&_0x56a949[_0x2b7968(0x349)]!==0x1)return;let _0x54af03=this['_getPointerLiveBounds'](_0x56a949,_0x4d5537);if(!this[_0x2b7968(0x4d7)](_0x4d5537,_0x54af03))return;this['_childDragActivated']||this[_0x2b7968(0x313)](),this[_0x2b7968(0x2a1)]=!0x0;let _0x51581a=this[_0x2b7968(0x3d1)](_0x4d5537[_0x2b7968(0x1f4)],_0x4d5537[_0x2b7968(0x55a)],_0x54af03),_0x26c87d=_0x414a56(_0x4d5537[_0x2b7968(0x1f4)],_0x4d5537['nodeId'],{'boundsByElementId':_0x51581a,'detachWhenNoSnap':!0x0});this[_0x2b7968(0x5b8)]=_0x26c87d,this['_syncChildDragPreviewObject'](_0x54af03,_0x26c87d,_0x51581a),this[_0x2b7968(0x518)](_0x56a949,_0x3a7b8a),this[_0x2b7968(0x595)][_0x2b7968(0x2fd)]['makeDirty'](!0x0),(_0x23e06a=(_0x2b02d1=this['_renderContext'][_0x2b7968(0x2fd)])[_0x2b7968(0x4f1)])==null||_0x23e06a[_0x2b7968(0x3b6)](_0x2b02d1);}[_0x2fba6e(0x473)](_0x296b8e,_0x4df52d){const _0x3345d4=_0x2fba6e;let _0x4cba7b=this[_0x3345d4(0x5cd)];if(!_0x4cba7b)return;if(this[_0x3345d4(0x5cd)]=null,this[_0x3345d4(0x492)](),this[_0x3345d4(0x2df)](),!this[_0x3345d4(0x2a1)]){this['_lastChildDragAction']=null;return;}let _0x205c5e=this['_boardElementService']['getElementData'](_0x4cba7b['unitId'],_0x4cba7b[_0x3345d4(0x363)]),_0x58461e=this[_0x3345d4(0x36e)](_0x296b8e,_0x4cba7b),_0x48d899=this[_0x3345d4(0x3d1)](_0x205c5e,_0x4cba7b['nodeId'],_0x58461e),_0x548fb9=_0x414a56(_0x205c5e,_0x4cba7b[_0x3345d4(0x55a)],{'boundsByElementId':_0x48d899,'detachWhenNoSnap':!0x0});this[_0x3345d4(0x5b8)]=null,this['_executeChildDragAction'](_0x4cba7b[_0x3345d4(0x3b0)],_0x4cba7b['subUnitId'],_0x4cba7b[_0x3345d4(0x55a)],_0x205c5e,_0x548fb9),this['_childDragSelectionHidden']=!0x1,this[_0x3345d4(0x518)](_0x296b8e,_0x4df52d);}[_0x2fba6e(0x202)](_0x496296){const _0xaa9378=_0x2fba6e;let _0x100c9a=this[_0xaa9378(0x5cd)];if(_0x100c9a){if(this[_0xaa9378(0x5cd)]=null,this['_disposeActivePointerDragListeners'](),this[_0xaa9378(0x2a1)]=!0x1,this['_lastChildDragAction']=null,this[_0xaa9378(0x2df)](),this[_0xaa9378(0x3a7)]){var _0xef16a,_0x10b513;(_0xef16a=(_0x10b513=this['_elementStateService'])[_0xaa9378(0x382)])==null||_0xef16a[_0xaa9378(0x3b6)](_0x10b513,{'unitId':_0x100c9a[_0xaa9378(0x3b0)],'subUnitId':_0x100c9a[_0xaa9378(0x363)]},[_0x100c9a[_0xaa9378(0x55a)]],_0x100c9a['nodeId']),this[_0xaa9378(0x3a7)]=!0x1;}_0x496296==null||_0x496296[_0xaa9378(0x55e)]();}}['_attachActivePointerDragListeners'](){const _0x1c9415=_0x2fba6e;this[_0x1c9415(0x492)]();let _0x1d9fac=typeof window>'u'?null:window;if(!(_0x1d9fac!=null&&_0x1d9fac[_0x1c9415(0x234)]))return;let _0x451241=new _0x3a2278[(_0x1c9415(0x4cf))](),_0x2da67e=_0x12978a=>this[_0x1c9415(0x4ab)](_0x12978a),_0x417784=_0x26eaf6=>this[_0x1c9415(0x473)](_0x26eaf6),_0x3aaafd=()=>this[_0x1c9415(0x202)]();_0x1d9fac[_0x1c9415(0x234)](_0x1c9415(0x4f2),_0x2da67e,{'capture':!0x0}),_0x1d9fac['addEventListener']('pointerup',_0x417784,{'capture':!0x0}),_0x1d9fac['addEventListener'](_0x1c9415(0x203),_0x3aaafd,{'capture':!0x0}),_0x451241[_0x1c9415(0x36d)]((0x0,_0x3a2278['toDisposable'])(()=>{const _0x4037ed=_0x1c9415;_0x1d9fac['removeEventListener'](_0x4037ed(0x4f2),_0x2da67e,{'capture':!0x0}),_0x1d9fac[_0x4037ed(0x53f)](_0x4037ed(0x24e),_0x417784,{'capture':!0x0}),_0x1d9fac[_0x4037ed(0x53f)](_0x4037ed(0x203),_0x3aaafd,{'capture':!0x0});})),this[_0x1c9415(0x415)]=_0x451241;}['_findChildNodeAtPoint'](_0x2fb6f1,_0x426d61){const _0x1c0e3d=_0x2fba6e;let _0x3b0189=Object[_0x1c0e3d(0x2dd)](_0x2fb6f1);for(let _0x50e03f=_0x3b0189[_0x1c0e3d(0x333)]-0x1;_0x50e03f>=0x0;--_0x50e03f){let _0x29b875=_0x3b0189[_0x50e03f],_0x35a93a=(0x0,_0x6837b2[_0x1c0e3d(0x258)])(_0x29b875['element']);if(!(_0x35a93a!=null&&_0x35a93a[_0x1c0e3d(0x1e6)]))continue;let _0x12d69a=(0x0,_0x22188d['resolveBoardElementWorldBounds'])(_0x2fb6f1,_0x29b875[_0x1c0e3d(0x289)])??_0x29b875[_0x1c0e3d(0x21f)][_0x1c0e3d(0x485)];if(this[_0x1c0e3d(0x1fd)](_0x426d61,{'left':_0x12d69a[_0x1c0e3d(0x5c2)]??0x0,'top':_0x12d69a[_0x1c0e3d(0x29b)]??0x0,'width':_0x12d69a[_0x1c0e3d(0x53b)]??0x0,'height':_0x12d69a[_0x1c0e3d(0x541)]??0x0}))return _0x29b875[_0x1c0e3d(0x289)];}}[_0x2fba6e(0x492)](){const _0x2b5604=_0x2fba6e;var _0x245fbb;(_0x245fbb=this[_0x2b5604(0x415)])==null||_0x245fbb[_0x2b5604(0x450)](),this['_activePointerDragDisposables']=null;}['_syncDragPreview'](_0x3e3188){const _0x159c7c=_0x2fba6e;let _0x39ac55=this[_0x159c7c(0x3c8)];_0x39ac55&&((_0x39ac55['kind']===_0x159c7c(0x370)||_0x39ac55[_0x159c7c(0x520)]===_0x159c7c(0x359))&&this[_0x159c7c(0x3ef)](_0x3e3188),_0x39ac55[_0x159c7c(0x520)]===_0x159c7c(0x370)?this[_0x159c7c(0x3b7)](_0x3e3188):this['_syncChildDragPreview'](_0x3e3188));}[_0x2fba6e(0x3ef)](_0x39ecea){const _0x58100c=_0x2fba6e;let _0x2cdde6=this['_dragStart'];if(!_0x2cdde6||_0x2cdde6['kind']!=='root'&&_0x2cdde6[_0x58100c(0x520)]!=='scope')return;let _0x588d9a=_0x39ecea==null?void 0x0:_0x39ecea['get']((0x0,_0x23cfd0[_0x58100c(0x285)])(_0x2cdde6[_0x58100c(0x3b0)],_0x2cdde6[_0x58100c(0x55a)]));if(!_0x588d9a||!Number['isFinite'](_0x588d9a[_0x58100c(0x5c2)])||!Number[_0x58100c(0x47e)](_0x588d9a['top']))return;let _0x2c346a=_0x2d03bd({'elementData':_0x2cdde6[_0x58100c(0x1f4)],'rootNodeId':_0x2cdde6[_0x58100c(0x55a)],'scopeId':_0x2cdde6['scopeId'],'rootStartBounds':{'left':_0x2cdde6['left'],'top':_0x2cdde6[_0x58100c(0x29b)]},'liveRootBounds':{'left':_0x588d9a[_0x58100c(0x5c2)],'top':_0x588d9a['top']}});if(!_0x2c346a)return;let _0x152d6f=this[_0x58100c(0x595)]['scene'],_0x1ca488=_0x152d6f,_0x5d4630=!0x1;_0x2c346a[_0x58100c(0x413)][_0x58100c(0x3d8)](_0x4994d0=>{const _0x1337ee=_0x58100c;var _0x47d3f5;let _0x23350e=(0x0,_0x23cfd0[_0x1337ee(0x285)])(_0x2cdde6[_0x1337ee(0x3b0)],_0x4994d0[_0x1337ee(0x289)]),_0x2955eb=((_0x47d3f5=_0x1ca488[_0x1337ee(0x2d3)])==null?void 0x0:_0x47d3f5[_0x1337ee(0x3b6)](_0x1ca488,_0x23350e))??_0x152d6f['getObject'](_0x23350e);_0x2955eb&&(_0x4994d0[_0x1337ee(0x520)]==='connector'&&typeof _0x2955eb['updateElement']==_0x1337ee(0x204)?(_0x2955eb[_0x1337ee(0x557)](_0x4994d0['element'],_0x2c346a[_0x1337ee(0x1f4)]),_0x5d4630=!0x0):_0x4994d0['kind']==='bounds'&&(_0x2955eb[_0x1337ee(0x2fb)](_0x4994d0[_0x1337ee(0x327)]),typeof _0x2955eb[_0x1337ee(0x255)]==_0x1337ee(0x204)?_0x2955eb[_0x1337ee(0x255)](!0x0):_0x2955eb[_0x1337ee(0x2b5)](!0x0),_0x5d4630=!0x0));}),_0x5d4630&&_0x152d6f[_0x58100c(0x2b5)](!0x0);}[_0x2fba6e(0x3b7)](_0x1cd5de){const _0x459eca=_0x2fba6e;var _0x591aea,_0x1d4321;let _0xd310e4=this[_0x459eca(0x3c8)];if(!_0xd310e4||_0xd310e4[_0x459eca(0x520)]!==_0x459eca(0x370))return;let _0x534264=_0x1cd5de==null?void 0x0:_0x1cd5de['get']((0x0,_0x23cfd0[_0x459eca(0x285)])(_0xd310e4['unitId'],_0xd310e4['nodeId']));if(!_0x534264||!Number['isFinite'](_0x534264[_0x459eca(0x5c2)])||!Number[_0x459eca(0x47e)](_0x534264[_0x459eca(0x29b)])){this[_0x459eca(0x2df)]();return;}let _0x34752d=this[_0x459eca(0x2ce)](_0x534264,_0xd310e4),_0x1c464a=this[_0x459eca(0x3d1)](_0xd310e4[_0x459eca(0x1f4)],_0xd310e4[_0x459eca(0x55a)],_0x34752d),_0x4585b6=_0x414a56(_0xd310e4[_0x459eca(0x1f4)],_0xd310e4[_0x459eca(0x55a)],{'boundsByElementId':_0x1c464a,'allowRootReparent':!0x0});if(_0x4585b6['kind']!==_0x459eca(0x51b)){this[_0x459eca(0x2df)]();return;}let _0x343aa7=this[_0x459eca(0x4b2)]();_0x343aa7&&(_0x343aa7[_0x459eca(0x2f4)]({'ghostBounds':_0x34752d,'sourceBounds':null,'parentBounds':_0x1c464a[_0x4585b6[_0x459eca(0x530)]],'side':_0x4585b6['side'],'textStyle':void 0x0,'renderGhostNode':!0x1}),this[_0x459eca(0x595)][_0x459eca(0x2fd)][_0x459eca(0x2b5)](!0x0),(_0x591aea=(_0x1d4321=this[_0x459eca(0x595)][_0x459eca(0x2fd)])[_0x459eca(0x4f1)])==null||_0x591aea[_0x459eca(0x3b6)](_0x1d4321));}[_0x2fba6e(0x24d)](_0x2e2baa){const _0x1cd827=_0x2fba6e;var _0x3044e0,_0x3a5a44;let _0x9cbec3=this[_0x1cd827(0x3c8)];if(!_0x9cbec3||_0x9cbec3['kind']!==_0x1cd827(0x553))return;let _0x13c899=_0x2e2baa==null?void 0x0:_0x2e2baa[_0x1cd827(0x383)]((0x0,_0x23cfd0[_0x1cd827(0x285)])(_0x9cbec3['unitId'],_0x9cbec3[_0x1cd827(0x55a)]));if(!_0x13c899){this[_0x1cd827(0x2df)]();return;}let _0x49348a=this[_0x1cd827(0x2ce)](_0x13c899,_0x9cbec3);if(!this[_0x1cd827(0x4d7)](_0x9cbec3,_0x49348a)){this[_0x1cd827(0x5b8)]=null,this[_0x1cd827(0x2df)](),this[_0x1cd827(0x30e)](_0x13c899,_0x9cbec3),this[_0x1cd827(0x595)][_0x1cd827(0x2fd)][_0x1cd827(0x2b5)](!0x0);return;}this['_childDragActivated']||this[_0x1cd827(0x313)](),this[_0x1cd827(0x2a1)]=!0x0;let _0x5bf3c9=this['_createTopologyBoundsByElementId'](_0x9cbec3[_0x1cd827(0x1f4)],_0x9cbec3[_0x1cd827(0x55a)],_0x49348a),_0x4344ec=_0x414a56(_0x9cbec3[_0x1cd827(0x1f4)],_0x9cbec3['nodeId'],{'boundsByElementId':_0x5bf3c9,'detachWhenNoSnap':!0x0});this[_0x1cd827(0x5b8)]=_0x4344ec,this[_0x1cd827(0x2b9)](_0x49348a,_0x4344ec,_0x5bf3c9),this[_0x1cd827(0x30e)](_0x13c899,_0x9cbec3),this['_renderContext'][_0x1cd827(0x2fd)][_0x1cd827(0x2b5)](!0x0),(_0x3044e0=(_0x3a5a44=this[_0x1cd827(0x595)][_0x1cd827(0x2fd)])[_0x1cd827(0x4f1)])==null||_0x3044e0[_0x1cd827(0x3b6)](_0x3a5a44);}[_0x2fba6e(0x584)](_0x34eb8c){const _0x399fd9=_0x2fba6e;var _0x21ef86;let _0x2b34b1=this[_0x399fd9(0x5a0)]['getSnapshot'](),_0x594023=_0x2b34b1[_0x399fd9(0x5ab)],_0x1ea148=_0x2b34b1[_0x399fd9(0x4e4)]??_0x2b34b1[_0x399fd9(0x369)][0x0];if(_0x594023&&((_0x21ef86=this[_0x399fd9(0x3c8)])==null?void 0x0:_0x21ef86['kind'])===_0x399fd9(0x359)){this[_0x399fd9(0x2df)](),this[_0x399fd9(0x4fa)](_0x594023[_0x399fd9(0x3b0)],_0x594023[_0x399fd9(0x363)],_0x34eb8c);return;}if(!_0x594023||!_0x1ea148||_0x2b34b1[_0x399fd9(0x369)][_0x399fd9(0x333)]!==0x1){this[_0x399fd9(0x2df)](),this[_0x399fd9(0x3c8)]=null;return;}this[_0x399fd9(0x2df)]();let _0x2e8c66=this[_0x399fd9(0x4ec)][_0x399fd9(0x5d8)](_0x594023[_0x399fd9(0x3b0)],_0x594023['subUnitId']);if(this[_0x399fd9(0x5c1)](_0x594023['unitId'],_0x594023[_0x399fd9(0x363)],_0x1ea148,_0x2e8c66,_0x34eb8c))return;let _0x5200c3=this[_0x399fd9(0x436)](_0x594023[_0x399fd9(0x3b0)],_0x594023[_0x399fd9(0x363)],_0x1ea148,_0x2e8c66,_0x34eb8c);this[_0x399fd9(0x229)](_0x594023[_0x399fd9(0x3b0)],_0x594023[_0x399fd9(0x363)],_0x1ea148,_0x2e8c66,_0x5200c3);}['_applyScopeTranslation'](_0x3c522f,_0x5e65e7,_0x18ce21){const _0x26c910=_0x2fba6e;let _0x180e5f=this['_dragStart'];if(this[_0x26c910(0x3c8)]=null,!_0x180e5f||_0x180e5f['kind']!==_0x26c910(0x359)||_0x180e5f[_0x26c910(0x3b0)]!==_0x3c522f||_0x180e5f[_0x26c910(0x363)]!==_0x5e65e7)return;let _0x3af8c8=_0x18ce21==null?void 0x0:_0x18ce21['get']((0x0,_0x23cfd0[_0x26c910(0x285)])(_0x3c522f,_0x180e5f[_0x26c910(0x55a)])),_0x2950af=_0x3af8c8&&Number[_0x26c910(0x47e)](_0x3af8c8['left'])?_0x3af8c8['left']??_0x180e5f['left']:_0x180e5f[_0x26c910(0x5c2)],_0x133e7d=_0x3af8c8&&Number[_0x26c910(0x47e)](_0x3af8c8[_0x26c910(0x29b)])?_0x3af8c8[_0x26c910(0x29b)]??_0x180e5f[_0x26c910(0x29b)]:_0x180e5f[_0x26c910(0x29b)],_0x12fd48=_0x2950af-_0x180e5f[_0x26c910(0x5c2)],_0x1a74ee=_0x133e7d-_0x180e5f[_0x26c910(0x29b)];(_0x12fd48!==0x0||_0x1a74ee!==0x0)&&this[_0x26c910(0x4a0)][_0x26c910(0x4ad)](_0x6837b2[_0x26c910(0x346)]['id'],{'unitId':_0x3c522f,'subUnitId':_0x5e65e7,'scopeId':_0x180e5f[_0x26c910(0x5c3)],'deltaX':_0x12fd48,'deltaY':_0x1a74ee});}['_executeChildDragAction'](_0x1ffdae,_0x54a283,_0x2ea8d5,_0xbfba9b,_0x21b6a0){const _0x3d4a4c=_0x2fba6e;if(_0x21b6a0[_0x3d4a4c(0x520)]===_0x3d4a4c(0x51b)){var _0x13cab2,_0x4ef76c;let _0x2abdd7=(0x0,_0x6837b2[_0x3d4a4c(0x258)])((_0x13cab2=_0xbfba9b[_0x2ea8d5])==null?void 0x0:_0x13cab2[_0x3d4a4c(0x21f)]),_0xeff00d=(0x0,_0x6837b2[_0x3d4a4c(0x258)])((_0x4ef76c=_0xbfba9b[_0x21b6a0['newParentNodeId']])==null?void 0x0:_0x4ef76c['element']);this['_executeAndLayout'](_0x6837b2[_0x3d4a4c(0x41b)]['id'],{'unitId':_0x1ffdae,'subUnitId':_0x54a283,'nodeId':_0x2ea8d5,'newParentNodeId':_0x21b6a0[_0x3d4a4c(0x530)],'side':_0x21b6a0[_0x3d4a4c(0x3b2)],..._0x21b6a0[_0x3d4a4c(0x50c)]?{'referenceNodeId':_0x21b6a0['referenceNodeId']}:null,..._0x21b6a0[_0x3d4a4c(0x4c5)]?{'placement':_0x21b6a0[_0x3d4a4c(0x4c5)]}:null},[_0x2abdd7==null?void 0x0:_0x2abdd7[_0x3d4a4c(0x2b3)],_0xeff00d==null?void 0x0:_0xeff00d[_0x3d4a4c(0x2b3)]],_0x2ea8d5);}else{if(_0x21b6a0[_0x3d4a4c(0x520)]===_0x3d4a4c(0x4e9)){var _0x5d6331;let _0x300697=(0x0,_0x6837b2['getMindMapNodeMeta'])((_0x5d6331=_0xbfba9b[_0x2ea8d5])==null?void 0x0:_0x5d6331[_0x3d4a4c(0x21f)]);this['_executeAndLayout'](_0x6837b2[_0x3d4a4c(0x381)]['id'],{'unitId':_0x1ffdae,'subUnitId':_0x54a283,'nodeId':_0x2ea8d5,...Number[_0x3d4a4c(0x47e)](_0x21b6a0[_0x3d4a4c(0x5c2)])?{'left':_0x21b6a0['left']}:null,...Number[_0x3d4a4c(0x47e)](_0x21b6a0[_0x3d4a4c(0x29b)])?{'top':_0x21b6a0[_0x3d4a4c(0x29b)]}:null},[_0x300697==null?void 0x0:_0x300697[_0x3d4a4c(0x2b3)]],_0x2ea8d5);}}}['_applyRootTranslation'](_0x1a7979,_0x1ed11c,_0x2326eb,_0x1b78d2,_0x200d8d){const _0x45ab31=_0x2fba6e;let _0x28a59a=this['_dragStart'];if((_0x28a59a==null?void 0x0:_0x28a59a[_0x45ab31(0x520)])==='root'&&(this[_0x45ab31(0x3c8)]=null),!_0x28a59a||_0x28a59a[_0x45ab31(0x3b0)]!==_0x1a7979||_0x28a59a['subUnitId']!==_0x1ed11c||_0x28a59a['nodeId']!==_0x2326eb)return!0x1;let _0x3456b7=_0x1b78d2[_0x2326eb],_0x1eb402=(0x0,_0x6837b2[_0x45ab31(0x258)])(_0x3456b7==null?void 0x0:_0x3456b7[_0x45ab31(0x21f)]);if(!_0x3456b7||!_0x1eb402||_0x1eb402[_0x45ab31(0x1e6)]!==null)return!0x1;let _0x21e3af=_0x200d8d==null?void 0x0:_0x200d8d[_0x45ab31(0x383)]((0x0,_0x23cfd0[_0x45ab31(0x285)])(_0x1a7979,_0x2326eb)),_0x48ab7a=(0x0,_0x22188d[_0x45ab31(0x5bf)])(_0x1b78d2,_0x2326eb),_0x44d852=Number[_0x45ab31(0x47e)](_0x21e3af==null?void 0x0:_0x21e3af[_0x45ab31(0x5c2)])?_0x21e3af[_0x45ab31(0x5c2)]:(_0x48ab7a==null?void 0x0:_0x48ab7a[_0x45ab31(0x5c2)])??_0x3456b7['element']['transform'][_0x45ab31(0x5c2)]??0x0,_0x4840a3=Number['isFinite'](_0x21e3af==null?void 0x0:_0x21e3af[_0x45ab31(0x29b)])?_0x21e3af[_0x45ab31(0x29b)]:(_0x48ab7a==null?void 0x0:_0x48ab7a[_0x45ab31(0x29b)])??_0x3456b7['element'][_0x45ab31(0x485)][_0x45ab31(0x29b)]??0x0,_0x47086d=_0x44d852-_0x28a59a[_0x45ab31(0x5c2)],_0x598323=_0x4840a3-_0x28a59a[_0x45ab31(0x29b)];if(_0x47086d===0x0&&_0x598323===0x0)return!0x0;let _0x186456={'left':_0x44d852,'top':_0x4840a3,'width':Number[_0x45ab31(0x47e)](_0x21e3af==null?void 0x0:_0x21e3af[_0x45ab31(0x53b)])?_0x21e3af[_0x45ab31(0x53b)]:_0x28a59a['width'],'height':Number[_0x45ab31(0x47e)](_0x21e3af==null?void 0x0:_0x21e3af[_0x45ab31(0x541)])?_0x21e3af[_0x45ab31(0x541)]:_0x28a59a[_0x45ab31(0x541)]},_0x51cce4=_0x414a56(_0x1b78d2,_0x2326eb,{'boundsByElementId':this[_0x45ab31(0x3d1)](_0x1b78d2,_0x2326eb,_0x186456),'allowRootReparent':!0x0});if(_0x51cce4[_0x45ab31(0x520)]===_0x45ab31(0x51b))return this[_0x45ab31(0x229)](_0x1a7979,_0x1ed11c,_0x2326eb,_0x1b78d2,_0x51cce4),!0x0;let _0x40561a=!!_0x48ab7a&&Math[_0x45ab31(0x5ed)](_0x48ab7a[_0x45ab31(0x5c2)]-_0x44d852)<0.001&&Math[_0x45ab31(0x5ed)](_0x48ab7a['top']-_0x4840a3)<0.001;return this[_0x45ab31(0x4a0)]['executeCommand'](_0x6837b2['TranslateMindMapOperation']['id'],{'unitId':_0x1a7979,'subUnitId':_0x1ed11c,'scopeId':_0x28a59a[_0x45ab31(0x5c3)],'deltaX':_0x47086d,'deltaY':_0x598323,..._0x40561a?{'excludeElementIds':[_0x2326eb],'preserveExcludedWorldTransforms':!0x0}:null}),!0x0;}[_0x2fba6e(0x436)](_0x5ed118,_0x5f5d23,_0x2ecabb,_0x362e07,_0x1bbb1e){const _0x31d365=_0x2fba6e;let _0x414f29=this['_dragStart'];if(!_0x414f29||_0x414f29[_0x31d365(0x520)]!=='child'||_0x414f29['unitId']!==_0x5ed118||_0x414f29[_0x31d365(0x363)]!==_0x5f5d23||_0x414f29[_0x31d365(0x55a)]!==_0x2ecabb)return{'kind':'none'};this[_0x31d365(0x3c8)]=null;let _0x41c295=_0x1bbb1e==null?void 0x0:_0x1bbb1e[_0x31d365(0x383)]((0x0,_0x23cfd0[_0x31d365(0x285)])(_0x5ed118,_0x2ecabb));if(!this[_0x31d365(0x2a1)])return _0x41c295&&this[_0x31d365(0x30e)](_0x41c295,_0x414f29),this[_0x31d365(0x5b8)]=null,{'kind':'none'};if(!_0x41c295){let _0x3062a6=this[_0x31d365(0x5b8)]??{'kind':_0x31d365(0x58c)};return this['_lastChildDragAction']=null,_0x3062a6;}let _0x269cce=this[_0x31d365(0x2ce)](_0x41c295,_0x414f29);if(this[_0x31d365(0x30e)](_0x41c295,_0x414f29),!this[_0x31d365(0x4d7)](_0x414f29,_0x269cce))return this['_lastChildDragAction']=null,{'kind':_0x31d365(0x58c)};let _0x206c5a=_0x414a56(_0x362e07,_0x2ecabb,{'boundsByElementId':this['_createTopologyBoundsByElementId'](_0x362e07,_0x2ecabb,_0x269cce),'detachWhenNoSnap':!0x0});return this[_0x31d365(0x5b8)]=null,_0x206c5a;}[_0x2fba6e(0x4d7)](_0x25382e,_0x293d7c){const _0x31f479=_0x2fba6e;let _0x41de71=(_0x293d7c['left']??_0x25382e[_0x31f479(0x5c2)])-_0x25382e[_0x31f479(0x5c2)],_0x45b42d=(_0x293d7c[_0x31f479(0x29b)]??_0x25382e[_0x31f479(0x29b)])-_0x25382e[_0x31f479(0x29b)];return Math[_0x31f479(0x3d2)](_0x41de71,_0x45b42d)>=0x12;}[_0x2fba6e(0x36e)](_0x9066df,_0x52e071){const _0x1937a2=_0x2fba6e;let _0x5f461b=this[_0x1937a2(0x45d)](_0x9066df),_0x565802=this['_getZoomRatio']();return{'left':_0x52e071['left']+(_0x5f461b['x']-_0x52e071[_0x1937a2(0x3eb)])/_0x565802,'top':_0x52e071[_0x1937a2(0x29b)]+(_0x5f461b['y']-_0x52e071[_0x1937a2(0x5b4)])/_0x565802,'width':_0x52e071[_0x1937a2(0x53b)],'height':_0x52e071[_0x1937a2(0x541)]};}[_0x2fba6e(0x54d)](_0x3304a5){const _0x5843f4=_0x2fba6e;let _0x345a33=this[_0x5843f4(0x5d6)][_0x5843f4(0x3ca)](),_0xa72c5b=(_0x345a33==null?void 0x0:_0x345a33['viewportPanOffset'])??{'x':0x0,'y':0x0},_0x3d78a4=this[_0x5843f4(0x416)]();return{'x':Math[_0x5843f4(0x51c)](((_0x3304a5[_0x5843f4(0x44a)]??0x0)-_0xa72c5b['x'])/_0x3d78a4),'y':Math[_0x5843f4(0x51c)](((_0x3304a5[_0x5843f4(0x2d0)]??0x0)-_0xa72c5b['y'])/_0x3d78a4)};}[_0x2fba6e(0x45d)](_0x494f37){const _0x1abbff=_0x2fba6e;return{'x':Number[_0x1abbff(0x47e)](_0x494f37[_0x1abbff(0x4a1)])?_0x494f37[_0x1abbff(0x4a1)]:_0x494f37[_0x1abbff(0x44a)]??0x0,'y':Number['isFinite'](_0x494f37[_0x1abbff(0x392)])?_0x494f37[_0x1abbff(0x392)]:_0x494f37[_0x1abbff(0x2d0)]??0x0};}['_getZoomRatio'](){const _0x47c41b=_0x2fba6e;let _0x57c706=this[_0x47c41b(0x5d6)][_0x47c41b(0x3ca)]()[_0x47c41b(0x3b3)];return Number[_0x47c41b(0x47e)](_0x57c706)&&(_0x57c706??0x0)>0x0?_0x57c706:0x1;}['_isPointInBounds'](_0x464f47,_0x391fea){const _0x3d6e96=_0x2fba6e;return _0x464f47['x']>=_0x391fea['left']&&_0x464f47['x']<=_0x391fea[_0x3d6e96(0x5c2)]+_0x391fea[_0x3d6e96(0x53b)]&&_0x464f47['y']>=_0x391fea[_0x3d6e96(0x29b)]&&_0x464f47['y']<=_0x391fea[_0x3d6e96(0x29b)]+_0x391fea[_0x3d6e96(0x541)];}['_consumePointerEvent'](_0x1a90f2,_0x1d45b5){const _0x41a448=_0x2fba6e;var _0x2b3719,_0x1b4ae2;_0x1d45b5==null||_0x1d45b5[_0x41a448(0x55e)](),_0x1d45b5&&(_0x1d45b5[_0x41a448(0x4ba)]=!0x0),(_0x2b3719=_0x1a90f2[_0x41a448(0x40b)])==null||_0x2b3719[_0x41a448(0x3b6)](_0x1a90f2),(_0x1b4ae2=_0x1a90f2[_0x41a448(0x55e)])==null||_0x1b4ae2[_0x41a448(0x3b6)](_0x1a90f2);}[_0x2fba6e(0x313)](){const _0x4bfaf4=_0x2fba6e;var _0x1c2b01,_0x538745;this['_childDragSelectionHidden']||=((_0x1c2b01=(_0x538745=this[_0x4bfaf4(0x5a0)])[_0x4bfaf4(0x341)])==null||_0x1c2b01[_0x4bfaf4(0x3b6)](_0x538745),!0x0);}[_0x2fba6e(0x2ce)](_0x4a505b,_0x2b7bc2){const _0x9c52fd=_0x2fba6e;return{'left':Number[_0x9c52fd(0x47e)](_0x4a505b[_0x9c52fd(0x5c2)])?_0x4a505b[_0x9c52fd(0x5c2)]:_0x2b7bc2[_0x9c52fd(0x5c2)],'top':Number[_0x9c52fd(0x47e)](_0x4a505b[_0x9c52fd(0x29b)])?_0x4a505b[_0x9c52fd(0x29b)]:_0x2b7bc2['top'],'width':Number[_0x9c52fd(0x47e)](_0x4a505b[_0x9c52fd(0x53b)])?_0x4a505b[_0x9c52fd(0x53b)]:_0x2b7bc2[_0x9c52fd(0x53b)],'height':Number[_0x9c52fd(0x47e)](_0x4a505b[_0x9c52fd(0x541)])?_0x4a505b[_0x9c52fd(0x541)]:_0x2b7bc2['height']};}[_0x2fba6e(0x30e)](_0x3c83f5,_0x208cd9){const _0x10a766=_0x2fba6e;typeof _0x3c83f5[_0x10a766(0x2fb)]=='function'&&_0x3c83f5[_0x10a766(0x2fb)]({'left':_0x208cd9[_0x10a766(0x5c2)],'top':_0x208cd9[_0x10a766(0x29b)],'width':_0x208cd9['width'],'height':_0x208cd9[_0x10a766(0x541)]}),typeof _0x3c83f5[_0x10a766(0x255)]==_0x10a766(0x204)?_0x3c83f5[_0x10a766(0x255)](!0x0):typeof _0x3c83f5[_0x10a766(0x2b5)]==_0x10a766(0x204)&&_0x3c83f5[_0x10a766(0x2b5)](!0x0);}['_createTopologyBoundsByElementId'](_0x19e704,_0x2edc4e,_0x3bab5e){const _0x1387d7=_0x2fba6e;return Object[_0x1387d7(0x476)](Object['keys'](_0x19e704)[_0x1387d7(0x3ff)](_0x47dd7a=>_0x47dd7a===_0x2edc4e?[_0x47dd7a,_0x3bab5e]:[_0x47dd7a,(0x0,_0x22188d[_0x1387d7(0x5bf)])(_0x19e704,_0x47dd7a)??_0x19e704[_0x47dd7a][_0x1387d7(0x21f)][_0x1387d7(0x485)]]));}[_0x2fba6e(0x4b2)](){const _0x4db86a=_0x2fba6e;if(this['_dragPreviewObject'])return this[_0x4db86a(0x4c7)];let _0x552ba8=this[_0x4db86a(0x595)][_0x4db86a(0x2fd)];return typeof _0x552ba8['addObject']==_0x4db86a(0x204)?(this[_0x4db86a(0x4c7)]=new _0x2689c8(_0x40cff0),_0x552ba8[_0x4db86a(0x48f)](this[_0x4db86a(0x4c7)],_0x4ffe8e),this['_dragPreviewObject']):null;}[_0x2fba6e(0x2b9)](_0x461de1,_0x19e69e,_0xb650ac){const _0x582b3e=_0x2fba6e;let _0x39b5c4=this[_0x582b3e(0x4b2)]();_0x39b5c4&&_0x39b5c4[_0x582b3e(0x2f4)]({'ghostBounds':_0x461de1,'sourceBounds':this['_resolvePreviewSourceBounds'](),'parentBounds':_0x19e69e[_0x582b3e(0x520)]===_0x582b3e(0x51b)?_0xb650ac[_0x19e69e[_0x582b3e(0x530)]]:null,'side':_0x19e69e['kind']===_0x582b3e(0x51b)?_0x19e69e[_0x582b3e(0x3b2)]:'right','textStyle':this[_0x582b3e(0x5ef)](),'renderGhostNode':!0x0});}[_0x2fba6e(0x209)](){const _0x4795db=_0x2fba6e;let _0x3624f4=this['_pointerDragStart']??this[_0x4795db(0x3c8)];return _0x3624f4?{'left':_0x3624f4[_0x4795db(0x5c2)],'top':_0x3624f4[_0x4795db(0x29b)],'width':_0x3624f4['width'],'height':_0x3624f4[_0x4795db(0x541)]}:null;}[_0x2fba6e(0x5ef)](){const _0x228d5d=_0x2fba6e;var _0x38d36e,_0x2d0b4f;let _0x27a87e=this[_0x228d5d(0x5cd)]??this['_dragStart'],_0xb8d46f=_0x27a87e==null||(_0x38d36e=_0x27a87e[_0x228d5d(0x1f4)][_0x27a87e[_0x228d5d(0x55a)]])==null?void 0x0:_0x38d36e[_0x228d5d(0x21f)],_0x1f52b7=_0xb8d46f==null||(_0x2d0b4f=_0xb8d46f['shapeData'])==null?void 0x0:_0x2d0b4f[_0x228d5d(0x252)];if(_0x1f52b7)return{'text':typeof _0x1f52b7[_0x228d5d(0x2e1)]==_0x228d5d(0x43d)?_0x1f52b7['text']:void 0x0,'fontSize':Number[_0x228d5d(0x47e)](_0x1f52b7[_0x228d5d(0x27f)])?_0x1f52b7[_0x228d5d(0x27f)]:void 0x0,'color':typeof _0x1f52b7['color']==_0x228d5d(0x43d)?_0x1f52b7[_0x228d5d(0x482)]:void 0x0,'horizontalAlign':Number['isFinite'](_0x1f52b7[_0x228d5d(0x361)])?_0x1f52b7[_0x228d5d(0x361)]:void 0x0};}[_0x2fba6e(0x2df)](){const _0x31bcf9=_0x2fba6e;var _0x168363,_0x5aaa8d,_0x1cccaa;if(!this[_0x31bcf9(0x4c7)])return;let _0x1df505=this[_0x31bcf9(0x595)][_0x31bcf9(0x2fd)];(_0x168363=_0x1df505['removeObjects'])==null||_0x168363[_0x31bcf9(0x3b6)](_0x1df505,[this['_dragPreviewObject']]),this[_0x31bcf9(0x4c7)]=null,(_0x5aaa8d=(_0x1cccaa=this[_0x31bcf9(0x595)]['scene'])[_0x31bcf9(0x2b5)])==null||_0x5aaa8d[_0x31bcf9(0x3b6)](_0x1cccaa,!0x0);}[_0x2fba6e(0x502)](_0x290198,_0x41a0c2,_0x56a294,_0x4523c2){const _0x3c790f=_0x2fba6e;let _0x50a742=[...new Set(_0x56a294['filter'](_0x889d45=>!!_0x889d45))],_0x59a1e9=typeof _0x41a0c2[_0x3c790f(0x3b0)]==_0x3c790f(0x43d)?_0x41a0c2[_0x3c790f(0x3b0)]:this['_renderContext']['unitId'],_0x2f0b09=this[_0x3c790f(0x496)][_0x3c790f(0x35e)](_0x59a1e9),_0x10863d=_0x2f0b09(()=>this['_commandService']['executeCommand'](_0x290198,_0x41a0c2));Promise[_0x3c790f(0x52b)](_0x10863d)['then'](_0x4e311d=>{const _0x34801d=_0x3c790f;var _0x2a4df9,_0xcd3970,_0xd095f8,_0x9a8809;if(_0x4e311d){if(_0x50a742[_0x34801d(0x3d8)](_0xd5bab5=>{const _0x436f9d=_0x34801d;_0x2f0b09(()=>this[_0x436f9d(0x4a0)][_0x436f9d(0x4ad)](_0x6837b2['LayoutMindMapOperation']['id'],{'unitId':_0x41a0c2[_0x436f9d(0x3b0)],'subUnitId':_0x41a0c2[_0x436f9d(0x363)],'scopeId':_0xd5bab5}));}),_0x4523c2&&typeof _0x41a0c2['unitId']==_0x34801d(0x43d)&&typeof _0x41a0c2['subUnitId']=='string'){var _0x2e993d,_0x164f12;(_0x2e993d=(_0x164f12=this[_0x34801d(0x5a0)])[_0x34801d(0x382)])==null||_0x2e993d[_0x34801d(0x3b6)](_0x164f12,{'unitId':_0x41a0c2['unitId'],'subUnitId':_0x41a0c2[_0x34801d(0x363)]},[_0x4523c2],_0x4523c2);}(_0x2a4df9=(_0xcd3970=this[_0x34801d(0x595)][_0x34801d(0x2fd)])[_0x34801d(0x2b5)])==null||_0x2a4df9[_0x34801d(0x3b6)](_0xcd3970,!0x0),(_0xd095f8=(_0x9a8809=this['_renderContext'][_0x34801d(0x2fd)])[_0x34801d(0x4f1)])==null||_0xd095f8['call'](_0x9a8809);}});}};_0x1b34c0=_0x19a741([_0x32dcf8(0x1,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x22188d[_0x2fba6e(0x37e)])),_0x32dcf8(0x2,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x23cfd0[_0x2fba6e(0x3a4)])),_0x32dcf8(0x3,_0x3a2278['ICommandService']),_0x32dcf8(0x4,_0x23cfd0[_0x2fba6e(0x2ef)]),_0x32dcf8(0x5,_0x3a2278[_0x2fba6e(0x5da)]),_0x32dcf8(0x6,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x4468ef[_0x2fba6e(0x2d1)]))],_0x1b34c0);function _0x1a7e5f({ref:_0x296355,..._0x38bee2}){const _0x1c28e9=_0x2fba6e;let {preserveStrokeWidth:_0x4a262f,icon:_0x19ae3a,id:_0x3be97d,className:_0x2b9f47,extend:_0x36f243,..._0x4b184b}=_0x38bee2,_0x50430d=(_0x1c28e9(0x4a5)+_0x3be97d+'\x20'+(_0x2b9f47||''))[_0x1c28e9(0x232)](),_0x360bc3='_'+(0x0,_0x3b9d96[_0x1c28e9(0x4c0)])(),_0x1550cf=(0x0,_0x3b9d96[_0x1c28e9(0x319)])(null);return(0x0,_0x3b9d96[_0x1c28e9(0x5ce)])(_0x296355,()=>_0x1550cf[_0x1c28e9(0x3fa)]),(0x0,_0x3b9d96[_0x1c28e9(0x364)])(()=>{const _0x2a4cd3=_0x1c28e9;if(_0x4a262f&&_0x1550cf[_0x2a4cd3(0x3fa)]&&_0x1550cf[_0x2a4cd3(0x3fa)][_0x2a4cd3(0x2ec)]===_0x19ae3a[_0x2a4cd3(0x2eb)])return _0xfc92f4(_0x1550cf[_0x2a4cd3(0x3fa)]);},[_0x4a262f,_0x19ae3a]),_0x35410f(_0x19ae3a,''+_0x3be97d,{'defIds':_0x19ae3a[_0x1c28e9(0x329)],'idSuffix':_0x360bc3},{'ref':_0x1550cf,'className':_0x50430d,..._0x4b184b},_0x36f243);}function _0x35410f(_0xa51ee0,_0x155bb2,_0x3d6f2e,_0x115b64,_0x513be4){const _0x53ac74=_0x2fba6e;return(0x0,_0x3b9d96[_0x53ac74(0x4c3)])(_0xa51ee0[_0x53ac74(0x2eb)],{'key':_0x155bb2,..._0x602412(_0xa51ee0,_0x3d6f2e,_0x513be4),..._0x115b64},(_0x1ca227(_0xa51ee0,_0x3d6f2e)[_0x53ac74(0x2db)]||[])[_0x53ac74(0x3ff)]((_0x409482,_0x24d157)=>_0x35410f(_0x409482,_0x155bb2+'-'+_0xa51ee0[_0x53ac74(0x2eb)]+'-'+_0x24d157,_0x3d6f2e,void 0x0,_0x513be4)));}function _0x602412(_0x5dd607,_0x16ec3a,_0x18eca2){const _0x158c90=_0x2fba6e;let _0x3f85e9={..._0x5dd607[_0x158c90(0x299)]};_0x18eca2!=null&&_0x18eca2[_0x158c90(0x278)]&&_0x3f85e9[_0x158c90(0x23b)]===_0x158c90(0x278)&&(_0x3f85e9[_0x158c90(0x23b)]=_0x18eca2[_0x158c90(0x278)]),_0x18eca2!=null&&_0x18eca2[_0x158c90(0x278)]&&_0x3f85e9[_0x158c90(0x58b)]===_0x158c90(0x278)&&(_0x3f85e9[_0x158c90(0x58b)]=_0x18eca2[_0x158c90(0x278)]),_0x5dd607[_0x158c90(0x2eb)]==='mask'&&_0x3f85e9['id']&&(_0x3f85e9['id']+=_0x16ec3a[_0x158c90(0x497)]),Object[_0x158c90(0x5a6)](_0x3f85e9)[_0x158c90(0x3d8)](([_0x59c072,_0x7f6f8d])=>{const _0x59e418=_0x158c90;_0x59c072==='mask'&&typeof _0x7f6f8d==_0x59e418(0x43d)&&(_0x3f85e9[_0x59c072]=_0x7f6f8d[_0x59e418(0x35c)](/url\(#(.*)\)/,_0x59e418(0x504)+_0x16ec3a['idSuffix']+')'));});let {defIds:_0x4b45d8}=_0x16ec3a;return!_0x4b45d8||_0x4b45d8[_0x158c90(0x333)]===0x0||(_0x5dd607[_0x158c90(0x2eb)]===_0x158c90(0x480)&&_0x3f85e9['xlink:href']&&(_0x3f85e9[_0x158c90(0x368)]+=_0x16ec3a[_0x158c90(0x497)]),Object['entries'](_0x3f85e9)[_0x158c90(0x3d8)](([_0x3446a2,_0x1d090c])=>{const _0x271b7c=_0x158c90;typeof _0x1d090c==_0x271b7c(0x43d)&&(_0x3f85e9[_0x3446a2]=_0x1d090c[_0x271b7c(0x35c)](/url\(#(.*)\)/,_0x271b7c(0x504)+_0x16ec3a['idSuffix']+')'));})),_0x3f85e9;}function _0x1ca227(_0x123f9a,_0x58c560){const _0x5471d8=_0x2fba6e;var _0x35a948;let {defIds:_0xf8f5c3}=_0x58c560;return!_0xf8f5c3||_0xf8f5c3[_0x5471d8(0x333)]===0x0?_0x123f9a:_0x123f9a['tag']===_0x5471d8(0x535)&&(_0x35a948=_0x123f9a[_0x5471d8(0x2db)])!=null&&_0x35a948[_0x5471d8(0x333)]?{..._0x123f9a,'children':_0x123f9a[_0x5471d8(0x2db)][_0x5471d8(0x3ff)](_0x45681f=>typeof _0x45681f[_0x5471d8(0x299)]['id']==_0x5471d8(0x43d)&&_0xf8f5c3&&_0xf8f5c3[_0x5471d8(0x2e6)](_0x45681f['attrs']['id'])?{..._0x45681f,'attrs':{..._0x45681f[_0x5471d8(0x299)],'id':_0x45681f[_0x5471d8(0x299)]['id']+_0x58c560[_0x5471d8(0x497)]}}:_0x45681f)}:_0x123f9a;}function _0xfc92f4(_0x826c7d){const _0x1e94e4=_0x2fba6e;let _0x3eee2d=_0x826c7d['viewBox'][_0x1e94e4(0x491)],_0x551dfb=Math[_0x1e94e4(0x2a8)](_0x3eee2d['width'],_0x3eee2d['height']);if(!Number[_0x1e94e4(0x47e)](_0x551dfb)||_0x551dfb<=0x0||_0x3eee2d[_0x1e94e4(0x53b)]<=0x0||_0x3eee2d[_0x1e94e4(0x541)]<=0x0)return()=>void 0x0;let _0x1d1a0f=0x10/_0x551dfb,_0x16d19e=Array['from'](_0x826c7d[_0x1e94e4(0x227)](_0x1e94e4(0x348)))[_0x1e94e4(0x3be)](_0x237d3a=>{const _0x592690=_0x1e94e4;let _0x1c976e=getComputedStyle(_0x237d3a),_0x59c9c6=Number['parseFloat'](_0x1c976e[_0x592690(0x5d9)]);return _0x1c976e[_0x592690(0x58b)]===_0x592690(0x58c)||Number[_0x592690(0x5b9)](_0x1c976e[_0x592690(0x4e2)])===0x0||_0x1c976e[_0x592690(0x282)]===_0x592690(0x47f)||!Number[_0x592690(0x47e)](_0x59c9c6)||_0x59c9c6<=0x0?[]:[{'element':_0x237d3a,'hadStyleAttribute':_0x237d3a['hasAttribute']('style'),'originalStrokeWidth':_0x59c9c6,'strokeWidth':_0x37d36a(_0x237d3a[_0x592690(0x22c)],_0x592690(0x215))}];})[_0x1e94e4(0x3ff)](_0x57c8f6=>({'appliedStrokeWidth':null,'element':_0x57c8f6[_0x1e94e4(0x21f)],'hadStyleAttribute':_0x57c8f6['hadStyleAttribute'],'isReleased':!0x1,'originalStrokeWidth':_0x57c8f6[_0x1e94e4(0x3a0)],'strokeWidth':_0x57c8f6['strokeWidth']}));if(_0x16d19e[_0x1e94e4(0x333)]===0x0)return()=>void 0x0;let _0x59aa90=(_0x6c3f19,_0x2649a0)=>{const _0x59b41c=_0x1e94e4;if(_0x3eee2d['width']<=0x0||_0x3eee2d[_0x59b41c(0x541)]<=0x0||_0x6c3f19<=0x0||_0x2649a0<=0x0)return;let _0x4c5cbb=Math[_0x59b41c(0x4fb)](_0x6c3f19/_0x3eee2d[_0x59b41c(0x53b)],_0x2649a0/_0x3eee2d[_0x59b41c(0x541)]);!Number['isFinite'](_0x4c5cbb)||_0x4c5cbb<=0x0||_0x16d19e['forEach'](_0x225ae3=>{const _0x2e4ba1=_0x59b41c;if(_0x225ae3[_0x2e4ba1(0x5a1)])return;if(_0x225ae3['appliedStrokeWidth']!==null&&(_0x225ae3[_0x2e4ba1(0x21f)][_0x2e4ba1(0x22c)][_0x2e4ba1(0x259)](_0x2e4ba1(0x215))!==_0x225ae3[_0x2e4ba1(0x29f)]||_0x225ae3['element'][_0x2e4ba1(0x22c)][_0x2e4ba1(0x4cc)](_0x2e4ba1(0x215))!==_0x225ae3[_0x2e4ba1(0x5d9)][_0x2e4ba1(0x34a)])){_0x225ae3[_0x2e4ba1(0x29f)]=null,_0x225ae3[_0x2e4ba1(0x5a1)]=!0x0;return;}let _0x3f16fb=_0x225ae3[_0x2e4ba1(0x3a0)]*_0x1d1a0f/_0x4c5cbb,_0xfcc004=Number(_0x3f16fb[_0x2e4ba1(0x59a)](0xc))+'px';_0x225ae3['element'][_0x2e4ba1(0x22c)]['setProperty'](_0x2e4ba1(0x215),_0xfcc004,_0x225ae3[_0x2e4ba1(0x5d9)][_0x2e4ba1(0x34a)]),_0x225ae3[_0x2e4ba1(0x29f)]=_0xfcc004;});},_0x7e0685=_0x826c7d['getBoundingClientRect']();_0x59aa90(_0x7e0685[_0x1e94e4(0x53b)],_0x7e0685[_0x1e94e4(0x541)]);let _0x564fa6=typeof ResizeObserver>'u'?null:new ResizeObserver(_0x28676c=>{const _0x3037f2=_0x1e94e4;if(_0x28676c['some'](_0x8e42fe=>_0x8e42fe['target']===_0x826c7d)){let _0x5bcef1=_0x826c7d[_0x3037f2(0x441)]();_0x59aa90(_0x5bcef1[_0x3037f2(0x53b)],_0x5bcef1[_0x3037f2(0x541)]);}});return _0x564fa6==null||_0x564fa6['observe'](_0x826c7d),()=>{const _0xbd55bb=_0x1e94e4;_0x564fa6==null||_0x564fa6[_0xbd55bb(0x444)](),_0x16d19e[_0xbd55bb(0x3d8)](_0x20d1a4=>{const _0x3443c7=_0xbd55bb;_0x20d1a4[_0x3443c7(0x29f)]!==null&&(_0x4df757(_0x20d1a4[_0x3443c7(0x21f)][_0x3443c7(0x22c)],_0x3443c7(0x215),_0x20d1a4['appliedStrokeWidth'],_0x20d1a4['strokeWidth'][_0x3443c7(0x34a)],_0x20d1a4[_0x3443c7(0x5d9)]),!_0x20d1a4[_0x3443c7(0x49d)]&&_0x20d1a4['element'][_0x3443c7(0x22c)][_0x3443c7(0x333)]===0x0&&_0x20d1a4['element'][_0x3443c7(0x344)](_0x3443c7(0x22c)));});};}function _0x37d36a(_0x222160,_0x9e503d){const _0x199092=_0x2fba6e;return{'priority':_0x222160[_0x199092(0x4cc)](_0x9e503d),'value':_0x222160[_0x199092(0x259)](_0x9e503d)};}function _0x4df757(_0x1d3daa,_0x2bfe27,_0x3830d0,_0x316ee2,_0x406966){const _0x5832bf=_0x2fba6e;_0x1d3daa['getPropertyValue'](_0x2bfe27)===_0x3830d0&&_0x1d3daa[_0x5832bf(0x4cc)](_0x2bfe27)===_0x316ee2&&(_0x406966[_0x5832bf(0x360)]?_0x1d3daa[_0x5832bf(0x2b6)](_0x2bfe27,_0x406966['value'],_0x406966[_0x5832bf(0x34a)]):_0x1d3daa[_0x5832bf(0x546)](_0x2bfe27));}_0x1a7e5f['displayName']=_0x2fba6e(0x39b);let _0x355132={'tag':_0x2fba6e(0x238),'attrs':{'xmlns':_0x2fba6e(0x475),'fill':'none','viewBox':_0x2fba6e(0x23a),'width':_0x2fba6e(0x228),'height':_0x2fba6e(0x228)},'children':[{'tag':'path','attrs':{'fill':_0x2fba6e(0x3ab),'d':_0x2fba6e(0x507),'fillRule':_0x2fba6e(0x34f),'clipRule':_0x2fba6e(0x34f)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x2fba6e(0x3a3),'fillRule':_0x2fba6e(0x34f),'clipRule':_0x2fba6e(0x34f)}},{'tag':'path','attrs':{'fill':_0x2fba6e(0x3ab),'d':'M7.9999\x2010.5671C8.33127\x2010.5671\x208.5999\x2010.2985\x208.5999\x209.96714V2.30047C8.5999\x201.9691\x208.33127\x201.70047\x207.9999\x201.70047C7.66853\x201.70047\x207.3999\x201.9691\x207.3999\x202.30047V9.96714C7.3999\x2010.2985\x207.66853\x2010.5671\x207.9999\x2010.5671Z','fillRule':'evenodd','clipRule':_0x2fba6e(0x34f)}}]},_0xcc7e2e=(0x0,_0x3b9d96[_0x2fba6e(0x5af)])(function(_0x1107d2,_0x246fbf){const _0x327e9f=_0x2fba6e;return(0x0,_0x3b9d96[_0x327e9f(0x4c3)])(_0x1a7e5f,Object[_0x327e9f(0x1e3)]({},_0x1107d2,{'id':_0x327e9f(0x343),'ref':_0x246fbf,'icon':_0x355132}));});_0xcc7e2e['displayName']=_0x2fba6e(0x43f);let _0x1410b6={'tag':_0x2fba6e(0x238),'attrs':{'xmlns':_0x2fba6e(0x475),'fill':_0x2fba6e(0x58c),'viewBox':_0x2fba6e(0x23a),'width':'1em','height':_0x2fba6e(0x228)},'children':[{'tag':_0x2fba6e(0x1df),'attrs':{'fill':_0x2fba6e(0x3ab),'d':_0x2fba6e(0x396)}},{'tag':_0x2fba6e(0x1df),'attrs':{'fill':'currentColor','d':_0x2fba6e(0x3d6)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x2fba6e(0x2d7)}},{'tag':'path','attrs':{'fill':_0x2fba6e(0x3ab),'d':_0x2fba6e(0x397)}}]},_0x536a03=(0x0,_0x3b9d96[_0x2fba6e(0x5af)])(function(_0x313120,_0x5a9d6e){const _0x1af048=_0x2fba6e;return(0x0,_0x3b9d96[_0x1af048(0x4c3)])(_0x1a7e5f,Object[_0x1af048(0x1e3)]({},_0x313120,{'id':'align-text-both-icon','ref':_0x5a9d6e,'icon':_0x1410b6}));});_0x536a03[_0x2fba6e(0x5b0)]=_0x2fba6e(0x42b);let _0x2fbb82={'tag':_0x2fba6e(0x238),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x2fba6e(0x23a),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x2fba6e(0x3ab),'d':'M1.3999\x202.3002C1.3999\x202.63157\x201.66853\x202.9002\x201.9999\x202.9002H13.9999C14.3313\x202.9002\x2014.5999\x202.63157\x2014.5999\x202.3002C14.5999\x201.96882\x2014.3313\x201.7002\x2013.9999\x201.7002H1.9999C1.66853\x201.7002\x201.3999\x201.96882\x201.3999\x202.3002Z'}},{'tag':'path','attrs':{'fill':_0x2fba6e(0x3ab),'d':'M8.22957\x205.47839C8.30034\x205.50767\x208.36664\x205.55107\x208.42417\x205.6086L10.4242\x207.6086C10.6585\x207.84291\x2010.6585\x208.22281\x2010.4242\x208.45713C10.1899\x208.69144\x209.80995\x208.69144\x209.57564\x208.45713L8.5999\x207.48139V13.6995C8.5999\x2014.0309\x208.33127\x2014.2995\x207.9999\x2014.2995C7.66853\x2014.2995\x207.3999\x2014.0309\x207.3999\x2013.6995V7.48139L6.42417\x208.45713C6.18985\x208.69144\x205.80995\x208.69144\x205.57564\x208.45713C5.34132\x208.22281\x205.34132\x207.84291\x205.57564\x207.6086L7.57541\x205.60882C7.7522\x205.43203\x208.01209\x205.38841\x208.22957\x205.47839Z'}}]},_0x1c8767=(0x0,_0x3b9d96[_0x2fba6e(0x5af)])(function(_0x37d6dd,_0x18b16d){const _0x25b8d3=_0x2fba6e;return(0x0,_0x3b9d96[_0x25b8d3(0x4c3)])(_0x1a7e5f,Object[_0x25b8d3(0x1e3)]({},_0x37d6dd,{'id':_0x25b8d3(0x500),'ref':_0x18b16d,'icon':_0x2fbb82}));});_0x1c8767['displayName']=_0x2fba6e(0x211);let _0x5d6a3c={'tag':_0x2fba6e(0x238),'attrs':{'xmlns':_0x2fba6e(0x475),'fill':_0x2fba6e(0x58c),'viewBox':_0x2fba6e(0x23a),'width':_0x2fba6e(0x228),'height':_0x2fba6e(0x228)},'children':[{'tag':_0x2fba6e(0x1df),'attrs':{'fill':_0x2fba6e(0x3ab),'d':_0x2fba6e(0x5d4),'fillRule':_0x2fba6e(0x34f),'clipRule':'evenodd'}}]},_0x5459d0=(0x0,_0x3b9d96[_0x2fba6e(0x5af)])(function(_0x17d774,_0x622783){const _0x38e6b0=_0x2fba6e;return(0x0,_0x3b9d96[_0x38e6b0(0x4c3)])(_0x1a7e5f,Object[_0x38e6b0(0x1e3)]({},_0x17d774,{'id':_0x38e6b0(0x320),'ref':_0x622783,'icon':_0x5d6a3c}));});_0x5459d0[_0x2fba6e(0x5b0)]='BoldIcon';let _0x15c796={'tag':_0x2fba6e(0x238),'attrs':{'xmlns':_0x2fba6e(0x475),'fill':_0x2fba6e(0x58c),'viewBox':_0x2fba6e(0x23a),'width':'1em','height':_0x2fba6e(0x228)},'children':[{'tag':_0x2fba6e(0x1df),'attrs':{'fill':'currentColor','d':_0x2fba6e(0x396)}},{'tag':_0x2fba6e(0x1df),'attrs':{'fill':'currentColor','d':_0x2fba6e(0x4e3)}},{'tag':_0x2fba6e(0x1df),'attrs':{'fill':_0x2fba6e(0x3ab),'d':'M1.3999\x209.8334C1.3999\x209.50203\x201.66853\x209.2334\x201.9999\x209.2334H13.9999C14.3313\x209.2334\x2014.5999\x209.50203\x2014.5999\x209.8334C14.5999\x2010.1648\x2014.3313\x2010.4334\x2013.9999\x2010.4334H1.9999C1.66853\x2010.4334\x201.3999\x2010.1648\x201.3999\x209.8334Z'}},{'tag':'path','attrs':{'fill':_0x2fba6e(0x3ab),'d':_0x2fba6e(0x26e)}}]},_0x575714=(0x0,_0x3b9d96[_0x2fba6e(0x5af)])(function(_0x59099b,_0x399315){const _0x5a598a=_0x2fba6e;return(0x0,_0x3b9d96[_0x5a598a(0x4c3)])(_0x1a7e5f,Object['assign']({},_0x59099b,{'id':_0x5a598a(0x242),'ref':_0x399315,'icon':_0x15c796}));});_0x575714[_0x2fba6e(0x5b0)]='HorizontallyIcon';let _0x264e77={'tag':_0x2fba6e(0x238),'attrs':{'xmlns':_0x2fba6e(0x475),'fill':_0x2fba6e(0x58c),'viewBox':_0x2fba6e(0x23a),'width':'1em','height':_0x2fba6e(0x228)},'children':[{'tag':_0x2fba6e(0x1df),'attrs':{'fill':_0x2fba6e(0x3ab),'d':_0x2fba6e(0x263)}}]},_0x112350=(0x0,_0x3b9d96[_0x2fba6e(0x5af)])(function(_0x446e6d,_0xbeb7e3){const _0x1f041c=_0x2fba6e;return(0x0,_0x3b9d96[_0x1f041c(0x4c3)])(_0x1a7e5f,Object[_0x1f041c(0x1e3)]({},_0x446e6d,{'id':_0x1f041c(0x3bf),'ref':_0xbeb7e3,'icon':_0x264e77}));});_0x112350[_0x2fba6e(0x5b0)]=_0x2fba6e(0x355);let _0x362a87={'tag':_0x2fba6e(0x238),'attrs':{'xmlns':_0x2fba6e(0x475),'fill':_0x2fba6e(0x58c),'viewBox':_0x2fba6e(0x23a),'width':_0x2fba6e(0x228),'height':'1em'},'children':[{'tag':_0x2fba6e(0x1df),'attrs':{'fill':_0x2fba6e(0x3ab),'d':_0x2fba6e(0x396)}},{'tag':_0x2fba6e(0x1df),'attrs':{'fill':_0x2fba6e(0x3ab),'d':_0x2fba6e(0x310)}},{'tag':_0x2fba6e(0x1df),'attrs':{'fill':_0x2fba6e(0x3ab),'d':_0x2fba6e(0x2d7)}},{'tag':_0x2fba6e(0x1df),'attrs':{'fill':_0x2fba6e(0x3ab),'d':'M1.9999\x2012.9004C1.66853\x2012.9004\x201.3999\x2013.169\x201.3999\x2013.5004C1.3999\x2013.8318\x201.66853\x2014.1004\x201.9999\x2014.1004H11.3332C11.6646\x2014.1004\x2011.9332\x2013.8318\x2011.9332\x2013.5004C11.9332\x2013.169\x2011.6646\x2012.9004\x2011.3332\x2012.9004H1.9999Z'}}]},_0x7d167a=(0x0,_0x3b9d96[_0x2fba6e(0x5af)])(function(_0xf3c397,_0x2493ce){const _0x1dc63a=_0x2fba6e;return(0x0,_0x3b9d96[_0x1dc63a(0x4c3)])(_0x1a7e5f,Object[_0x1dc63a(0x1e3)]({},_0xf3c397,{'id':'left-justifying-icon','ref':_0x2493ce,'icon':_0x362a87}));});_0x7d167a[_0x2fba6e(0x5b0)]=_0x2fba6e(0x50e);let _0x4ac656={'tag':_0x2fba6e(0x238),'attrs':{'xmlns':_0x2fba6e(0x475),'fill':'none','viewBox':_0x2fba6e(0x23a),'width':'1em','height':_0x2fba6e(0x228)},'children':[{'tag':_0x2fba6e(0x1df),'attrs':{'fill':_0x2fba6e(0x3ab),'d':_0x2fba6e(0x3e5)}},{'tag':_0x2fba6e(0x1df),'attrs':{'fill':_0x2fba6e(0x3ab),'d':_0x2fba6e(0x4d8)}},{'tag':_0x2fba6e(0x1df),'attrs':{'fill':_0x2fba6e(0x3ab),'d':_0x2fba6e(0x42f)}}]},_0x4f2042=(0x0,_0x3b9d96[_0x2fba6e(0x5af)])(function(_0x450cec,_0x2e8071){const _0x4e5a71=_0x2fba6e;return(0x0,_0x3b9d96['createElement'])(_0x1a7e5f,Object[_0x4e5a71(0x1e3)]({},_0x450cec,{'id':_0x4e5a71(0x38b),'ref':_0x2e8071,'icon':_0x4ac656}));});_0x4f2042[_0x2fba6e(0x5b0)]=_0x2fba6e(0x335);let _0xa0e208={'tag':_0x2fba6e(0x238),'attrs':{'xmlns':_0x2fba6e(0x475),'fill':'none','viewBox':_0x2fba6e(0x23a),'width':_0x2fba6e(0x228),'height':'1em'},'children':[{'tag':_0x2fba6e(0x1df),'attrs':{'fill':_0x2fba6e(0x3ab),'d':_0x2fba6e(0x396)}},{'tag':'path','attrs':{'fill':'currentColor','d':'M4.66665\x205.56641C4.33528\x205.56641\x204.06665\x205.83504\x204.06665\x206.16641C4.06665\x206.49778\x204.33528\x206.76641\x204.66665\x206.76641H14C14.3314\x206.76641\x2014.6\x206.49778\x2014.6\x206.16641C14.6\x205.83504\x2014.3314\x205.56641\x2014\x205.56641H4.66665Z'}},{'tag':_0x2fba6e(0x1df),'attrs':{'fill':_0x2fba6e(0x3ab),'d':_0x2fba6e(0x2d7)}},{'tag':_0x2fba6e(0x1df),'attrs':{'fill':_0x2fba6e(0x3ab),'d':'M4.66665\x2012.9004C4.33528\x2012.9004\x204.06665\x2013.169\x204.06665\x2013.5004C4.06665\x2013.8318\x204.33528\x2014.1004\x204.66665\x2014.1004H14C14.3314\x2014.1004\x2014.6\x2013.8318\x2014.6\x2013.5004C14.6\x2013.169\x2014.3314\x2012.9004\x2014\x2012.9004H4.66665Z'}}]},_0x53cc18=(0x0,_0x3b9d96[_0x2fba6e(0x5af)])(function(_0x2978c8,_0xe599a7){const _0x4e40d8=_0x2fba6e;return(0x0,_0x3b9d96[_0x4e40d8(0x4c3)])(_0x1a7e5f,Object[_0x4e40d8(0x1e3)]({},_0x2978c8,{'id':'right-justifying-icon','ref':_0xe599a7,'icon':_0xa0e208}));});_0x53cc18['displayName']=_0x2fba6e(0x449);let _0x14ba45={'tag':_0x2fba6e(0x238),'attrs':{'xmlns':_0x2fba6e(0x475),'fill':'none','viewBox':_0x2fba6e(0x23a),'width':_0x2fba6e(0x228),'height':_0x2fba6e(0x228)},'children':[{'tag':'g','attrs':{'stroke':_0x2fba6e(0x3ab),'strokeLinecap':_0x2fba6e(0x51c),'strokeLinejoin':_0x2fba6e(0x51c),'strokeWidth':1.2},'children':[{'tag':'circle','attrs':{'cx':0x7,'cy':0x7,'r':5.2}},{'tag':'path','attrs':{'d':'M10.8\x2010.8L14.2\x2014.2'}}]}]},_0x3f4d53=(0x0,_0x3b9d96[_0x2fba6e(0x5af)])(function(_0x3588eb,_0x5f20bf){const _0x43a241=_0x2fba6e;return(0x0,_0x3b9d96[_0x43a241(0x4c3)])(_0x1a7e5f,Object[_0x43a241(0x1e3)]({},_0x3588eb,{'id':_0x43a241(0x210),'ref':_0x5f20bf,'icon':_0x14ba45}));});_0x3f4d53[_0x2fba6e(0x5b0)]='SearchIcon';let _0x5a6ab6={'tag':_0x2fba6e(0x238),'attrs':{'xmlns':_0x2fba6e(0x475),'fill':_0x2fba6e(0x58c),'viewBox':_0x2fba6e(0x5a4),'width':_0x2fba6e(0x228),'height':_0x2fba6e(0x228)},'children':[{'tag':_0x2fba6e(0x1df),'attrs':{'stroke':'currentColor','d':'M3.5\x203.5L16.5\x2016.5','strokeLinecap':_0x2fba6e(0x51c),'strokeWidth':1.6}}]},_0x3e3af0=(0x0,_0x3b9d96[_0x2fba6e(0x5af)])(function(_0x4d9d32,_0x5cee21){const _0x21ce71=_0x2fba6e;return(0x0,_0x3b9d96[_0x21ce71(0x4c3)])(_0x1a7e5f,Object[_0x21ce71(0x1e3)]({},_0x4d9d32,{'id':'shape-line-icon','ref':_0x5cee21,'icon':_0x5a6ab6}));});_0x3e3af0[_0x2fba6e(0x5b0)]=_0x2fba6e(0x286);let _0x537ee2={'tag':_0x2fba6e(0x238),'attrs':{'xmlns':_0x2fba6e(0x475),'fill':'none','viewBox':_0x2fba6e(0x23a),'width':_0x2fba6e(0x228),'height':_0x2fba6e(0x228)},'children':[{'tag':'path','attrs':{'fill':_0x2fba6e(0x3ab),'d':_0x2fba6e(0x5a2)}},{'tag':'path','attrs':{'fill':_0x2fba6e(0x3ab),'d':'M2.11953\x208.5999H7.88935C10.1109\x209.46549\x2010.5895\x2010.7649\x2010.4268\x2011.6869C10.2475\x2012.703\x209.26939\x2013.5898\x208.00009\x2013.5898C6.63323\x2013.5898\x205.77631\x2013.0502\x205.25534\x2012.528C4.99021\x2012.2623\x204.80823\x2011.9965\x204.69365\x2011.7993C4.63659\x2011.7011\x204.59698\x2011.6211\x204.5727\x2011.5686C4.56059\x2011.5424\x204.55236\x2011.5231\x204.54774\x2011.512L4.54352\x2011.5016C4.4267\x2011.193\x204.0823\x2011.0363\x203.77279\x2011.1516C3.46228\x2011.2673\x203.30438\x2011.6129\x203.4201\x2011.9234L3.9649\x2011.7203C3.4201\x2011.9234\x203.41998\x2011.9231\x203.4201\x2011.9234L3.4206\x2011.9247L3.42118\x2011.9263L3.42262\x2011.9301L3.42661\x2011.9403C3.42977\x2011.9484\x203.43394\x2011.9588\x203.43914\x2011.9713C3.44956\x2011.9965\x203.46418\x2012.0304\x203.48334\x2012.0719C3.52161\x2012.1547\x203.57828\x2012.2682\x203.65608\x2012.4021C3.81124\x2012.6692\x204.0534\x2013.0223\x204.40584\x2013.3756C5.12\x2014.0914\x206.27196\x2014.7898\x208.00009\x2014.7898C9.82574\x2014.7898\x2011.3236\x2013.5101\x2011.6085\x2011.8955C11.812\x2010.7422\x2011.3901\x209.55402\x2010.2665\x208.5999H13.8804C14.2117\x208.5999\x2014.4803\x208.33127\x2014.4803\x207.9999C14.4803\x207.66853\x2014.2117\x207.3999\x2013.8804\x207.3999H8.01411C8.0048\x207.39968\x207.99551\x207.39969\x207.98625\x207.3999H2.11953C1.78816\x207.3999\x201.51953\x207.66853\x201.51953\x207.9999C1.51953\x208.33127\x201.78816\x208.5999\x202.11953\x208.5999Z'}}]},_0x470a4b=(0x0,_0x3b9d96[_0x2fba6e(0x5af)])(function(_0x11901f,_0x4416fc){const _0x2deb25=_0x2fba6e;return(0x0,_0x3b9d96[_0x2deb25(0x4c3)])(_0x1a7e5f,Object[_0x2deb25(0x1e3)]({},_0x11901f,{'id':_0x2deb25(0x386),'ref':_0x4416fc,'icon':_0x537ee2}));});_0x470a4b[_0x2fba6e(0x5b0)]=_0x2fba6e(0x440);let _0x7b030e={'tag':_0x2fba6e(0x238),'attrs':{'xmlns':_0x2fba6e(0x475),'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x2fba6e(0x228)},'children':[{'tag':_0x2fba6e(0x1df),'attrs':{'fill':'currentColor','d':'M4.46416\x202.03237C4.46416\x201.701\x204.19553\x201.43237\x203.86416\x201.43237C3.53279\x201.43237\x203.26416\x201.701\x203.26416\x202.03237V7.33338C3.26416\x2010.0313\x205.35834\x2012.2667\x207.9999\x2012.2667C10.6415\x2012.2667\x2012.7356\x2010.0313\x2012.7356\x207.33338V2.03237C12.7356\x201.701\x2012.467\x201.43237\x2012.1356\x201.43237C11.8043\x201.43237\x2011.5356\x201.701\x2011.5356\x202.03237V7.33338C11.5356\x209.42194\x209.92656\x2011.0667\x207.9999\x2011.0667C6.07325\x2011.0667\x204.46416\x209.42194\x204.46416\x207.33338V2.03237Z'}},{'tag':_0x2fba6e(0x1df),'attrs':{'fill':'currentColor','d':'M2.66641\x2013.4663C2.33504\x2013.4663\x202.06641\x2013.7349\x202.06641\x2014.0663C2.06641\x2014.3977\x202.33504\x2014.6663\x202.66641\x2014.6663H13.3331C13.6644\x2014.6663\x2013.9331\x2014.3977\x2013.9331\x2014.0663C13.9331\x2013.7349\x2013.6644\x2013.4663\x2013.3331\x2013.4663H2.66641Z'}}]},_0x5d7433=(0x0,_0x3b9d96[_0x2fba6e(0x5af)])(function(_0x32d836,_0x2060f5){const _0x3cc056=_0x2fba6e;return(0x0,_0x3b9d96[_0x3cc056(0x4c3)])(_0x1a7e5f,Object[_0x3cc056(0x1e3)]({},_0x32d836,{'id':_0x3cc056(0x577),'ref':_0x2060f5,'icon':_0x7b030e}));});_0x5d7433[_0x2fba6e(0x5b0)]=_0x2fba6e(0x2cb);let _0xa41499={'tag':_0x2fba6e(0x238),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2fba6e(0x58c),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':_0x2fba6e(0x1df),'attrs':{'fill':_0x2fba6e(0x3ab),'d':_0x2fba6e(0x28c)}},{'tag':_0x2fba6e(0x1df),'attrs':{'fill':_0x2fba6e(0x3ab),'d':'M5.57564\x2011.5756L7.57564\x209.57564C7.80995\x209.34132\x208.18985\x209.34132\x208.42417\x209.57564L10.4242\x2011.5756C10.6585\x2011.81\x2010.6585\x2012.1899\x2010.4242\x2012.4242C10.1899\x2012.6585\x209.80995\x2012.6585\x209.57564\x2012.4242L8.5999\x2011.4484V14.6665C8.5999\x2014.9979\x208.33127\x2015.2665\x207.9999\x2015.2665C7.66853\x2015.2665\x207.3999\x2014.9979\x207.3999\x2014.6665V11.4484L6.42417\x2012.4242C6.18985\x2012.6585\x205.80995\x2012.6585\x205.57564\x2012.4242C5.34132\x2012.1899\x205.34132\x2011.81\x205.57564\x2011.5756Z'}},{'tag':_0x2fba6e(0x1df),'attrs':{'fill':'currentColor','d':_0x2fba6e(0x297)}}]},_0x13dee6=(0x0,_0x3b9d96['forwardRef'])(function(_0x2470cd,_0x212eb6){const _0xd80491=_0x2fba6e;return(0x0,_0x3b9d96[_0xd80491(0x4c3)])(_0x1a7e5f,Object[_0xd80491(0x1e3)]({},_0x2470cd,{'id':'vertical-center-icon','ref':_0x212eb6,'icon':_0xa41499}));});_0x13dee6[_0x2fba6e(0x5b0)]='VerticalCenterIcon';let _0x3d1af8=class extends _0x3a2278[_0x2fba6e(0x328)]{constructor(_0x594ec9,_0x3ef953,_0x2a8963,_0x2e4d3b,_0x46f30f,_0x24ccc6,_0x35976c,_0x33fb9d,_0x1ec170){const _0x541dbe=_0x2fba6e;super(),this[_0x541dbe(0x515)]=_0x594ec9,this[_0x541dbe(0x2c6)]=_0x3ef953,this['elementService']=_0x2a8963,this[_0x541dbe(0x31a)]=_0x2e4d3b,this[_0x541dbe(0x25a)]=_0x46f30f,this[_0x541dbe(0x555)]=_0x24ccc6,this[_0x541dbe(0x424)]=_0x35976c,this[_0x541dbe(0x2cf)]=_0x33fb9d,this[_0x541dbe(0x3d9)]=_0x1ec170;}};_0x3d1af8=_0x19a741([_0x32dcf8(0x1,_0x3a2278[_0x2fba6e(0x4c8)]),_0x32dcf8(0x2,_0x22188d[_0x2fba6e(0x37e)]),_0x32dcf8(0x3,_0x23cfd0[_0x2fba6e(0x3a4)]),_0x32dcf8(0x4,_0x23cfd0['IBoardUIStateService']),_0x32dcf8(0x5,_0x6837b2['IMindMapClipboardService']),_0x32dcf8(0x6,_0x4468ef[_0x2fba6e(0x257)]),_0x32dcf8(0x7,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x3a2278[_0x2fba6e(0x55c)])),_0x32dcf8(0x8,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x23cfd0[_0x2fba6e(0x36f)]))],_0x3d1af8);let _0x4574bf=_0x2fba6e(0x409),_0x11f96a=_0x2fba6e(0x5f0);function _0x35f384(_0x214e18){const _0x3e9099=_0x2fba6e;let {unitId:_0x17c731,subUnitId:_0x49261f,nodeId:_0x2e3091,initialDescription:_0x45618f=''}=_0x214e18,_0x4bcd74=(0x0,_0x4468ef[_0x3e9099(0x2be)])(_0x3a2278[_0x3e9099(0x4c8)]),_0x34d437=(0x0,_0x4468ef[_0x3e9099(0x2be)])(_0x4468ef[_0x3e9099(0x257)]),_0x49b82f=(0x0,_0x4468ef['useDependency'])(_0x3a2278['LocaleService']),[_0x1b5249,_0x524727]=(0x0,_0x3b9d96[_0x3e9099(0x3a8)])(_0x45618f),_0x4f5407=()=>_0x34d437['close'](_0x11f96a);return(0x0,_0x5c99c0[_0x3e9099(0x1fb)])(_0x3e9099(0x559),{'className':_0x3e9099(0x284),'data-board-mind-map-description-dialog':_0x3e9099(0x5f1),'children':[(0x0,_0x5c99c0[_0x3e9099(0x1fb)])(_0x3e9099(0x308),{'className':_0x3e9099(0x3f9),'children':[(0x0,_0x5c99c0[_0x3e9099(0x538)])(_0x3e9099(0x547),{'className':_0x3e9099(0x212),'children':_0x49b82f['t'](_0x3e9099(0x372))}),(0x0,_0x5c99c0[_0x3e9099(0x538)])(_0x403267['Textarea'],{'autoFocus':!0x0,'className':_0x3e9099(0x40a),'placeholder':_0x49b82f['t'](_0x3e9099(0x1eb)),'value':_0x1b5249,'onValueChange':_0x524727})]}),(0x0,_0x5c99c0['jsxs'])('div',{'className':_0x3e9099(0x2a2),'children':[(0x0,_0x5c99c0[_0x3e9099(0x538)])(_0x403267[_0x3e9099(0x321)],{'size':'small','variant':_0x3e9099(0x462),'onClick':_0x4f5407,'children':_0x49b82f['t']('boards-mind-ui.cancel')}),(0x0,_0x5c99c0[_0x3e9099(0x538)])(_0x403267[_0x3e9099(0x321)],{'size':_0x3e9099(0x56f),'variant':_0x3e9099(0x26c),'onClick':()=>{const _0x282686=_0x3e9099;_0x4bcd74[_0x282686(0x4ad)](_0x6837b2['UpdateMindMapNodeOperation']['id'],{'unitId':_0x17c731,'subUnitId':_0x49261f,'nodeId':_0x2e3091,'foreignAttributes':{'_note':_0x1b5249[_0x282686(0x232)]()?_0x1b5249:null}}),_0x4f5407();},'children':_0x49b82f['t'](_0x3e9099(0x398))})]})]});}let _0x5c5324=_0x2fba6e(0x5a8),_0x357132=_0x2fba6e(0x5eb),_0x2e6338=_0x2fba6e(0x5aa),_0x2e58fa={'copy':_0x23cfd0[_0x2fba6e(0x31f)][_0x2fba6e(0x26a)],'paste':_0x23cfd0[_0x2fba6e(0x31f)][_0x2fba6e(0x1f7)],'paste-as-new':_0x23cfd0[_0x2fba6e(0x31f)]['paste'],'add-child':_0x23cfd0[_0x2fba6e(0x31f)][_0x2fba6e(0x1fc)],'add-sibling-or-child':_0x23cfd0[_0x2fba6e(0x31f)][_0x2fba6e(0x358)],'promote':_0x23cfd0['BOARD_SHORTCUT_BINDINGS'][_0x2fba6e(0x455)],'toggle-collapse':_0x23cfd0[_0x2fba6e(0x31f)][_0x2fba6e(0x25b)],'collapse-all':_0x23cfd0[_0x2fba6e(0x31f)]['collapseAllNodes'],'edit-text':_0x23cfd0[_0x2fba6e(0x31f)]['editCurrentNode'],'open-description':_0x23cfd0['BOARD_SHORTCUT_BINDINGS'][_0x2fba6e(0x1ef)],'delete':_0x4468ef[_0x2fba6e(0x4c2)][_0x2fba6e(0x2de)],'arrow-left':_0x4468ef[_0x2fba6e(0x4c2)][_0x2fba6e(0x27b)],'arrow-right':_0x4468ef[_0x2fba6e(0x4c2)]['ARROW_RIGHT'],'arrow-up':_0x4468ef['KeyCode'][_0x2fba6e(0x2e4)],'arrow-down':_0x4468ef[_0x2fba6e(0x4c2)][_0x2fba6e(0x4a8)]},_0x106464={'delete':[_0x4468ef[_0x2fba6e(0x4c2)][_0x2fba6e(0x425)]]};function _0x4ad69f(_0x3207ee){return[_0x2e58fa[_0x3207ee],..._0x106464[_0x3207ee]??[]];}let _0x22779d=class extends _0x3a2278[_0x2fba6e(0x22d)]{constructor(_0x130693,_0x24226c,_0x463e61,_0x1214d0){const _0xc1c901=_0x2fba6e;super(),this['_mindMapClipboardService']=_0x130693,this[_0xc1c901(0x4a0)]=_0x24226c,this[_0xc1c901(0x21b)]=_0x463e61,this[_0xc1c901(0x496)]=_0x1214d0,this[_0xc1c901(0x374)]();}[_0x2fba6e(0x374)](){const _0x463e39=_0x2fba6e;this[_0x463e39(0x417)](this['_commandService'][_0x463e39(0x498)](this['_createKeyboardShortcutOperation']())),this[_0x463e39(0x5e2)]()[_0x463e39(0x3d8)](_0x52ea46=>{const _0x33e248=_0x463e39;this[_0x33e248(0x417)](this['_shortcutService']['registerShortcut'](_0x52ea46));});}['_createKeyboardShortcutOperation'](){const _0x12b2ae=_0x2fba6e;return{'id':_0x5c5324,'type':_0x3a2278[_0x12b2ae(0x4e7)]['OPERATION'],'handler':(_0x3026ef,_0x48ff16,_0x32f6d8)=>{const _0x49e993=_0x12b2ae;let _0x3051d3=_0x1d7683(_0x3026ef,_0x32f6d8);return _0x3051d3?this[_0x49e993(0x41d)](_0x3051d3,_0x48ff16==null?void 0x0:_0x48ff16[_0x49e993(0x390)]):!0x1;}};}[_0x2fba6e(0x5e2)](){const _0x581bd9=_0x2fba6e;let _0x4069d1=(_0x386b4e,_0xcb4ca4)=>({'id':_0x5c5324,'binding':_0x386b4e,'priority':0xa0,'preconditions':_0x24be15=>(0x0,_0x23cfd0[_0x581bd9(0x3c6)])(_0x24be15)&&!!_0x24be15['getContextValue']('FOCUSING_MIND_MAP_NODE'),'staticParameters':{'action':_0xcb4ca4}}),_0xe26d1d=_0x17ec58=>_0x4ad69f(_0x17ec58)[_0x581bd9(0x3ff)](_0xb4dd74=>_0x4069d1(_0xb4dd74,_0x17ec58));return[..._0xe26d1d(_0x581bd9(0x26a)),{'id':_0x5c5324,'binding':_0x2e58fa[_0x581bd9(0x1f7)],'priority':0xa0,'preconditions':_0x46e0b6=>(0x0,_0x23cfd0[_0x581bd9(0x3c6)])(_0x46e0b6)&&!!this[_0x581bd9(0x375)]['getPayload']()&&!!_0x46e0b6[_0x581bd9(0x3dc)](_0x581bd9(0x5eb)),'staticParameters':{'action':_0x581bd9(0x1f7)}},{'id':_0x5c5324,'binding':_0x2e58fa['paste-as-new'],'priority':0x96,'preconditions':_0x165c1f=>(0x0,_0x23cfd0[_0x581bd9(0x3c6)])(_0x165c1f)&&!!this[_0x581bd9(0x375)]['getPayload']()&&!!_0x165c1f['getContextValue'](_0x581bd9(0x5aa)),'staticParameters':{'action':_0x581bd9(0x34e)}},..._0xe26d1d('add-child'),..._0xe26d1d(_0x581bd9(0x26b)),..._0xe26d1d(_0x581bd9(0x26f)),..._0xe26d1d('toggle-collapse'),..._0xe26d1d(_0x581bd9(0x556)),..._0xe26d1d(_0x581bd9(0x4a4)),..._0xe26d1d('open-description'),..._0xe26d1d(_0x581bd9(0x37d)),..._0xe26d1d(_0x581bd9(0x2bf)),..._0xe26d1d(_0x581bd9(0x352)),..._0xe26d1d('arrow-up'),..._0xe26d1d(_0x581bd9(0x1de))];}[_0x2fba6e(0x41d)](_0x510880,_0xf8709c){const _0x57c255=_0x2fba6e;return _0x510880['uiStateService']['getState']()['interactionMode']===_0x57c255(0x505)&&_0xf8709c!==_0x57c255(0x26a)?!0x1:_0xf8709c==='copy'?this[_0x57c255(0x464)](_0x510880):_0xf8709c==='paste'?this['_pasteUnderSelectedNode'](_0x510880):_0xf8709c===_0x57c255(0x34e)?this[_0x57c255(0x511)](_0x510880):_0xf8709c===_0x57c255(0x305)?this[_0x57c255(0x3ae)](_0x510880):_0xf8709c==='add-sibling-or-child'?this['_addSiblingOrChild'](_0x510880):_0xf8709c==='promote'?this[_0x57c255(0x570)](_0x510880,_0x6837b2[_0x57c255(0x4c6)]['id']):_0xf8709c===_0x57c255(0x3a6)?this['_executeNodeOperation'](_0x510880,_0x6837b2['ToggleMindMapNodeCollapseOperation']['id']):_0xf8709c===_0x57c255(0x556)?this[_0x57c255(0x472)](_0x510880):_0xf8709c===_0x57c255(0x4a4)?this[_0x57c255(0x40c)](_0x510880):_0xf8709c===_0x57c255(0x4d6)?this[_0x57c255(0x2e7)](_0x510880):_0xf8709c==='delete'?this[_0x57c255(0x290)](_0x510880):_0xf8709c&&_0xb44e50(_0xf8709c)?this['_navigateByTopology'](_0x510880,_0xf8709c):!0x1;}[_0x2fba6e(0x464)](_0x453f04){const _0x30f06e=_0x2fba6e;let _0x5499e3=this['_getSelectedMindMapContext'](_0x453f04);return _0x5499e3?(_0x453f04[_0x30f06e(0x2c6)][_0x30f06e(0x4ad)](_0x6837b2[_0x30f06e(0x4b4)]['id'],{'unitId':_0x5499e3[_0x30f06e(0x3b0)],'subUnitId':_0x5499e3[_0x30f06e(0x363)],'nodeId':_0x5499e3['nodeId']}),!0x0):!0x1;}['_pasteUnderSelectedNode'](_0xdf07f5){const _0x165992=_0x2fba6e;let _0x4c2a7c=this['_getSelectedMindMapContext'](_0xdf07f5);return!_0x4c2a7c||!_0xdf07f5[_0x165992(0x555)][_0x165992(0x445)]()?!0x1:(this[_0x165992(0x502)](_0xdf07f5,_0x6837b2[_0x165992(0x38e)]['id'],{'unitId':_0x4c2a7c[_0x165992(0x3b0)],'subUnitId':_0x4c2a7c[_0x165992(0x363)],'targetNodeId':_0x4c2a7c['nodeId']},_0x4c2a7c['scopeId']),!0x0);}['_pasteAsNewMindMap'](_0x39f09c){const _0x55d899=_0x2fba6e;let _0x34ba8d=this[_0x55d899(0x539)](_0x39f09c);if(!_0x34ba8d||!_0x39f09c['clipboardService'][_0x55d899(0x445)]())return!0x1;let _0x42fde1=_0x39f09c[_0x55d899(0x25a)]['getState'](),_0x1dd2c0=Number['isFinite'](_0x42fde1[_0x55d899(0x3b3)])&&_0x42fde1[_0x55d899(0x3b3)]>0x0?_0x42fde1[_0x55d899(0x3b3)]:0x1,_0xa20009=Math['round']((0x40-_0x42fde1[_0x55d899(0x22b)]['x'])/_0x1dd2c0),_0x56c748=Math[_0x55d899(0x51c)]((0x40-_0x42fde1[_0x55d899(0x22b)]['y'])/_0x1dd2c0);return _0x39f09c[_0x55d899(0x2c6)][_0x55d899(0x4ad)](_0x6837b2[_0x55d899(0x44e)]['id'],{'unitId':_0x34ba8d['unitId'],'subUnitId':_0x34ba8d[_0x55d899(0x363)],'left':_0xa20009,'top':_0x56c748}),!0x0;}[_0x2fba6e(0x3ae)](_0x87b118){const _0x2e2df5=_0x2fba6e;let _0x52db48=this['_getSelectedMindMapContext'](_0x87b118);if(!_0x52db48)return!0x1;let _0x5eab0d=(0x0,_0x3a2278[_0x2e2df5(0x243)])(0x6);return this[_0x2e2df5(0x39d)](_0x87b118,_0x6837b2[_0x2e2df5(0x46b)]['id'],{'unitId':_0x52db48[_0x2e2df5(0x3b0)],'subUnitId':_0x52db48[_0x2e2df5(0x363)],'parentNodeId':_0x52db48[_0x2e2df5(0x55a)],'nodeId':_0x5eab0d,'connectorId':(0x0,_0x3a2278[_0x2e2df5(0x243)])(0x6),'text':_0x87b118[_0x2e2df5(0x2cf)]['t'](_0x2e2df5(0x3ba))},_0x52db48[_0x2e2df5(0x5c3)],_0x5eab0d),!0x0;}[_0x2fba6e(0x302)](_0x114e71){const _0x42894e=_0x2fba6e;let _0x2c76d6=this['_getSelectedMindMapContext'](_0x114e71);if(!_0x2c76d6)return!0x1;let _0x5cee38=(0x0,_0x3a2278[_0x42894e(0x243)])(0x6);return this[_0x42894e(0x39d)](_0x114e71,_0x2c76d6[_0x42894e(0x5c9)]?_0x6837b2[_0x42894e(0x46b)]['id']:_0x6837b2['AddMindMapSiblingOperation']['id'],{'unitId':_0x2c76d6[_0x42894e(0x3b0)],'subUnitId':_0x2c76d6[_0x42894e(0x363)],..._0x2c76d6['isRoot']?{'parentNodeId':_0x2c76d6[_0x42894e(0x55a)],'nodeId':_0x5cee38}:{'nodeId':_0x2c76d6[_0x42894e(0x55a)],'siblingNodeId':_0x5cee38},'connectorId':(0x0,_0x3a2278[_0x42894e(0x243)])(0x6),'text':_0x114e71[_0x42894e(0x2cf)]['t'](_0x42894e(0x3ba))},_0x2c76d6[_0x42894e(0x5c3)],_0x5cee38),!0x0;}[_0x2fba6e(0x570)](_0x3f2e2e,_0xd832a1){const _0x454b55=_0x2fba6e;let _0x5126e8=this[_0x454b55(0x2f7)](_0x3f2e2e);return _0x5126e8?(this[_0x454b55(0x502)](_0x3f2e2e,_0xd832a1,{'unitId':_0x5126e8[_0x454b55(0x3b0)],'subUnitId':_0x5126e8[_0x454b55(0x363)],'nodeId':_0x5126e8['nodeId']},_0x5126e8[_0x454b55(0x5c3)]),!0x0):!0x1;}['_deleteSelectedNode'](_0x5dcf77){const _0xd43b7b=_0x2fba6e;let _0x7f601d=this[_0xd43b7b(0x2f7)](_0x5dcf77);if(!_0x7f601d)return!0x1;let _0x2f2d22=_0x5dcf77['commandService']['syncExecuteCommand'](_0x6837b2[_0xd43b7b(0x549)]['id'],{'unitId':_0x7f601d['unitId'],'subUnitId':_0x7f601d[_0xd43b7b(0x363)],'nodeId':_0x7f601d[_0xd43b7b(0x55a)]});return _0x2f2d22&&_0x5dcf77[_0xd43b7b(0x31a)]['clearSelection'](),_0x2f2d22;}[_0x2fba6e(0x472)](_0x409eca){const _0x59199e=_0x2fba6e;let _0x31c66a=this[_0x59199e(0x2f7)](_0x409eca);if(!_0x31c66a)return!0x1;let _0x104f7d=_0x409eca[_0x59199e(0x54f)][_0x59199e(0x5d8)](_0x31c66a[_0x59199e(0x3b0)],_0x31c66a[_0x59199e(0x363)]),_0x1442f7=Object[_0x59199e(0x2dd)](_0x104f7d)[_0x59199e(0x3ff)](_0x443e71=>{const _0x5523a0=_0x59199e;let _0x3a6830=(0x0,_0x6837b2[_0x5523a0(0x258)])(_0x443e71[_0x5523a0(0x21f)]);return(_0x3a6830==null?void 0x0:_0x3a6830[_0x5523a0(0x2b3)])===_0x31c66a['scopeId']&&this[_0x5523a0(0x5ae)](_0x104f7d,_0x31c66a[_0x5523a0(0x5c3)],_0x443e71['elementId'])[_0x5523a0(0x333)]>0x0?{'nodeId':_0x443e71['elementId'],'collapsed':_0x3a6830[_0x5523a0(0x28d)]}:null;})[_0x59199e(0x412)](_0x52c2f6=>!!_0x52c2f6);if(_0x1442f7[_0x59199e(0x333)]===0x0)return!0x1;let _0x3cf0fb=_0x1442f7[_0x59199e(0x501)](_0x46fc91=>!_0x46fc91[_0x59199e(0x28d)]),_0x503cb7=_0x409eca[_0x59199e(0x2c6)],_0x196ef8=this[_0x59199e(0x496)][_0x59199e(0x35e)](_0x31c66a[_0x59199e(0x3b0)]),_0x59d6e5=_0x1442f7[_0x59199e(0x3ff)](_0x3abc5e=>_0x196ef8(()=>_0x503cb7['executeCommand'](_0x6837b2['ToggleMindMapNodeCollapseOperation']['id'],{'unitId':_0x31c66a[_0x59199e(0x3b0)],'subUnitId':_0x31c66a[_0x59199e(0x363)],'nodeId':_0x3abc5e[_0x59199e(0x55a)],'collapsed':_0x3cf0fb})));return Promise[_0x59199e(0x3c3)](_0x59d6e5[_0x59199e(0x3ff)](_0x21e132=>Promise[_0x59199e(0x52b)](_0x21e132)))[_0x59199e(0x2ea)](_0x26465b=>{const _0x41cf9b=_0x59199e;_0x26465b['some'](Boolean)&&_0x196ef8(()=>_0x503cb7[_0x41cf9b(0x4ad)](_0x6837b2[_0x41cf9b(0x543)]['id'],{'unitId':_0x31c66a[_0x41cf9b(0x3b0)],'subUnitId':_0x31c66a[_0x41cf9b(0x363)],'scopeId':_0x31c66a[_0x41cf9b(0x5c3)]}));}),!0x0;}[_0x2fba6e(0x40c)](_0x367c01){const _0x3b8cc4=_0x2fba6e;let _0x105954=this['_getSelectedMindMapContext'](_0x367c01);if(!_0x105954)return!0x1;_0x367c01[_0x3b8cc4(0x31a)][_0x3b8cc4(0x382)]({'unitId':_0x105954[_0x3b8cc4(0x3b0)],'subUnitId':_0x105954[_0x3b8cc4(0x363)]},[_0x105954[_0x3b8cc4(0x55a)]],_0x105954[_0x3b8cc4(0x55a)]);let _0x4d90bd=_0x367c01[_0x3b8cc4(0x3d9)];return _0x4d90bd[_0x3b8cc4(0x463)](),_0x4d90bd[_0x3b8cc4(0x337)]({'unitId':_0x105954[_0x3b8cc4(0x3b0)],'subUnitId':_0x105954[_0x3b8cc4(0x363)],'shapeId':_0x105954[_0x3b8cc4(0x55a)],'shapeKey':(0x0,_0x23cfd0[_0x3b8cc4(0x285)])(_0x105954[_0x3b8cc4(0x3b0)],_0x105954['nodeId']),'visible':!0x0}),!0x0;}[_0x2fba6e(0x2e7)](_0x2c46e3){const _0x409ac5=_0x2fba6e;let _0x2e4f5a=this[_0x409ac5(0x2f7)](_0x2c46e3);return _0x2e4f5a?(_0x2c46e3[_0x409ac5(0x424)][_0x409ac5(0x4d0)]({'id':_0x11f96a,'title':{'title':_0x409ac5(0x372)},'width':0x1a4,'draggable':!0x0,'mask':!0x1,'maskClosable':!0x0,'children':{'label':_0x4574bf,'unitId':_0x2e4f5a[_0x409ac5(0x3b0)],'subUnitId':_0x2e4f5a['subUnitId'],'nodeId':_0x2e4f5a[_0x409ac5(0x55a)],'initialDescription':_0x2e4f5a['description']}}),!0x0):!0x1;}[_0x2fba6e(0x3f7)](_0xd62a0e,_0x1b6b83){const _0x18c591=_0x2fba6e;let _0x4f9411=this[_0x18c591(0x2f7)](_0xd62a0e);if(!_0x4f9411)return!0x1;let _0x3b2403=_0xd62a0e[_0x18c591(0x54f)][_0x18c591(0x5d8)](_0x4f9411[_0x18c591(0x3b0)],_0x4f9411[_0x18c591(0x363)]),_0x3f55ab=_0x3b2403[_0x4f9411['nodeId']],_0x456adc=(0x0,_0x6837b2[_0x18c591(0x258)])(_0x3f55ab==null?void 0x0:_0x3f55ab[_0x18c591(0x21f)]);if(!_0x3f55ab||!_0x456adc)return!0x1;let _0x214ff6={'arrow-left':_0x18c591(0x237),'arrow-right':_0x18c591(0x281),'arrow-up':'ArrowUp','arrow-down':_0x18c591(0x29d)}[_0x1b6b83];if(!_0x214ff6)return!0x1;let _0x521d40=this[_0x18c591(0x3c2)](_0x3b2403,_0x4f9411[_0x18c591(0x55a)],_0x456adc,_0x214ff6);return _0x521d40?(_0xd62a0e[_0x18c591(0x31a)][_0x18c591(0x382)]({'unitId':_0x4f9411['unitId'],'subUnitId':_0x4f9411['subUnitId']},[_0x521d40],_0x521d40),!0x0):!0x1;}[_0x2fba6e(0x3c2)](_0x222fd6,_0x1ed836,_0x2796ad,_0x420817){const _0x51336a=_0x2fba6e;let _0x186790=this[_0x51336a(0x5ae)](_0x222fd6,_0x2796ad[_0x51336a(0x2b3)],_0x1ed836);if(_0x2796ad[_0x51336a(0x1e6)]===null){if(_0x420817===_0x51336a(0x237)){var _0x1db790;return((_0x1db790=_0x186790[_0x51336a(0x57e)](_0x232a43=>{const _0x1cab1c=_0x51336a;var _0x54a852;return((_0x54a852=(0x0,_0x6837b2[_0x1cab1c(0x258)])(_0x232a43[_0x1cab1c(0x21f)]))==null?void 0x0:_0x54a852[_0x1cab1c(0x3b2)])===_0x1cab1c(0x5c2);}))==null?void 0x0:_0x1db790[_0x51336a(0x289)])??null;}if(_0x420817===_0x51336a(0x281)){var _0x383dcd;return((_0x383dcd=_0x186790['find'](_0x2eff14=>{const _0x46cdaf=_0x51336a;var _0x1a5e74;return(((_0x1a5e74=(0x0,_0x6837b2[_0x46cdaf(0x258)])(_0x2eff14[_0x46cdaf(0x21f)]))==null?void 0x0:_0x1a5e74[_0x46cdaf(0x3b2)])??_0x46cdaf(0x40d))===_0x46cdaf(0x40d);}))==null?void 0x0:_0x383dcd[_0x51336a(0x289)])??null;}return null;}let _0x43b309=_0x2796ad[_0x51336a(0x3b2)]??'right',_0x54ae0a=_0x43b309===_0x51336a(0x40d)?_0x51336a(0x237):_0x51336a(0x281),_0xd72301=_0x43b309==='right'?_0x51336a(0x281):_0x51336a(0x237);if(_0x420817===_0x54ae0a)return _0x2796ad[_0x51336a(0x1e6)];if(_0x420817===_0xd72301){var _0x489d23;return((_0x489d23=_0x186790[0x0])==null?void 0x0:_0x489d23[_0x51336a(0x289)])??null;}if(_0x420817===_0x51336a(0x3ac)||_0x420817===_0x51336a(0x29d)){let _0x31211f=this[_0x51336a(0x5ae)](_0x222fd6,_0x2796ad[_0x51336a(0x2b3)],_0x2796ad['parentNodeId']),_0x5a2b14=_0x31211f[_0x51336a(0x4ef)](_0x223105=>_0x223105[_0x51336a(0x289)]===_0x1ed836),_0x4def13=_0x420817==='ArrowUp'?_0x31211f[_0x5a2b14-0x1]:_0x31211f[_0x5a2b14+0x1];return(_0x4def13==null?void 0x0:_0x4def13[_0x51336a(0x289)])??null;}return null;}[_0x2fba6e(0x5ae)](_0x183ff2,_0x4d84c9,_0xa2df0a){return Object['values'](_0x183ff2)['filter'](_0xa9af39=>{const _0xd205f2=_0x2d97;let _0x24370f=(0x0,_0x6837b2[_0xd205f2(0x258)])(_0xa9af39[_0xd205f2(0x21f)]);return(_0x24370f==null?void 0x0:_0x24370f[_0xd205f2(0x2b3)])===_0x4d84c9&&_0x24370f['parentNodeId']===_0xa2df0a&&_0xa9af39[_0xd205f2(0x21f)][_0xd205f2(0x33f)]!==!0x1;})['sort']((_0x590781,_0x15c6c9)=>{const _0x19bb01=_0x2d97;let _0x4566bb=(0x0,_0x6837b2[_0x19bb01(0x258)])(_0x590781[_0x19bb01(0x21f)]),_0x5999b2=(0x0,_0x6837b2[_0x19bb01(0x258)])(_0x15c6c9[_0x19bb01(0x21f)]);return(0x0,_0x6837b2[_0x19bb01(0x395)])(_0x4566bb==null?void 0x0:_0x4566bb[_0x19bb01(0x542)],_0x5999b2==null?void 0x0:_0x5999b2['orderKey'])||_0x590781[_0x19bb01(0x289)][_0x19bb01(0x53d)](_0x15c6c9['elementId']);});}[_0x2fba6e(0x2f7)](_0x1c895d){const _0x155105=_0x2fba6e;var _0x471fcf;let _0x219819=_0x1c895d['elementStateService']['getSnapshot'](),_0x2d64d1=_0x219819[_0x155105(0x4e4)]??_0x219819[_0x155105(0x369)][0x0];if(!_0x2d64d1||_0x219819[_0x155105(0x369)][_0x155105(0x333)]!==0x1||_0x219819[_0x155105(0x3de)]||_0x219819[_0x155105(0x30f)])return null;let _0x245a43=_0x219819[_0x155105(0x5ab)]??{'unitId':_0x1c895d['renderContext'][_0x155105(0x3b0)],'subUnitId':_0x1c895d[_0x155105(0x515)]['unit'][_0x155105(0x46f)]()},_0x3e5752=_0x1c895d[_0x155105(0x54f)]['getElementData'](_0x245a43[_0x155105(0x3b0)],_0x245a43[_0x155105(0x363)])[_0x2d64d1],_0x387fe7=(0x0,_0x6837b2[_0x155105(0x258)])(_0x3e5752==null?void 0x0:_0x3e5752[_0x155105(0x21f)]);return!_0x3e5752||!_0x387fe7?null:{'unitId':_0x245a43['unitId'],'subUnitId':_0x245a43[_0x155105(0x363)],'nodeId':_0x2d64d1,'scopeId':_0x387fe7[_0x155105(0x2b3)],'isRoot':_0x387fe7[_0x155105(0x1e6)]===null,'description':((_0x471fcf=_0x387fe7[_0x155105(0x4ed)])==null?void 0x0:_0x471fcf['_note'])??''};}[_0x2fba6e(0x539)](_0x558227){const _0xb7cbe9=_0x2fba6e;var _0x131552,_0x37d017;let _0x5364d7=_0x558227[_0xb7cbe9(0x31a)][_0xb7cbe9(0x39a)]();return _0x5364d7['activeEditingId']||_0x5364d7['isTransforming']||_0x5364d7[_0xb7cbe9(0x369)][_0xb7cbe9(0x333)]>0x0||_0x5364d7['focusedId']?null:{'unitId':((_0x131552=_0x5364d7[_0xb7cbe9(0x5ab)])==null?void 0x0:_0x131552[_0xb7cbe9(0x3b0)])??_0x558227[_0xb7cbe9(0x515)]['unitId'],'subUnitId':((_0x37d017=_0x5364d7['context'])==null?void 0x0:_0x37d017['subUnitId'])??_0x558227[_0xb7cbe9(0x515)]['unit'][_0xb7cbe9(0x46f)]()};}['_executeAndLayout'](_0x195dda,_0xbfab3f,_0x5e7dae,_0x2730bf){const _0x30616b=_0x2fba6e;let _0x4f3828=_0x195dda[_0x30616b(0x2c6)],_0x48c3ce=this[_0x30616b(0x496)]['createRunner'](_0x5e7dae[_0x30616b(0x3b0)]),_0x569cf3=_0x48c3ce(()=>_0x4f3828[_0x30616b(0x4ad)](_0xbfab3f,_0x5e7dae));Promise[_0x30616b(0x52b)](_0x569cf3)[_0x30616b(0x2ea)](_0x5616ca=>{const _0x3e352a=_0x30616b;_0x5616ca&&_0x48c3ce(()=>_0x4f3828[_0x3e352a(0x4ad)](_0x6837b2[_0x3e352a(0x543)]['id'],{'unitId':_0x5e7dae[_0x3e352a(0x3b0)],'subUnitId':_0x5e7dae[_0x3e352a(0x363)],'scopeId':_0x2730bf}));});}[_0x2fba6e(0x39d)](_0x4a9326,_0x3fc07a,_0x138ca5,_0x1026ae,_0x391b39){const _0x3fc0c7=_0x2fba6e;let _0x19b878={'unitId':_0x138ca5[_0x3fc0c7(0x3b0)],'subUnitId':_0x138ca5[_0x3fc0c7(0x363)]},_0x3bc37b=_0x4a9326[_0x3fc0c7(0x2c6)],_0x2ffb19=this[_0x3fc0c7(0x496)][_0x3fc0c7(0x35e)](_0x138ca5[_0x3fc0c7(0x3b0)]),_0x356349=_0x2ffb19(()=>_0x3bc37b[_0x3fc0c7(0x4ad)](_0x3fc07a,_0x138ca5));Promise[_0x3fc0c7(0x52b)](_0x356349)['then'](_0x22d8ed=>{const _0x4d8fcc=_0x3fc0c7;if(!_0x22d8ed)return;_0x2ffb19(()=>_0x3bc37b['executeCommand'](_0x6837b2[_0x4d8fcc(0x543)]['id'],{..._0x19b878,'scopeId':_0x1026ae})),_0x4a9326[_0x4d8fcc(0x31a)][_0x4d8fcc(0x382)](_0x19b878,[_0x391b39],_0x391b39);let _0x20e184=_0x4a9326[_0x4d8fcc(0x3d9)];_0x20e184[_0x4d8fcc(0x463)](),_0x20e184[_0x4d8fcc(0x337)]({..._0x19b878,'shapeId':_0x391b39,'shapeKey':(0x0,_0x23cfd0[_0x4d8fcc(0x285)])(_0x19b878[_0x4d8fcc(0x3b0)],_0x391b39),'visible':!0x0});});}};_0x22779d=_0x19a741([_0x32dcf8(0x0,_0x6837b2[_0x2fba6e(0x59f)]),_0x32dcf8(0x1,_0x3a2278[_0x2fba6e(0x4c8)]),_0x32dcf8(0x2,_0x4468ef[_0x2fba6e(0x294)]),_0x32dcf8(0x3,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x4468ef[_0x2fba6e(0x2d1)]))],_0x22779d);function _0x1d7683(_0x2b790b,_0x2b8033){const _0x4dd03d=_0x2fba6e;var _0x4e223a,_0x1786a8;let _0x174fcc=typeof(_0x2b8033==null?void 0x0:_0x2b8033['unitId'])==_0x4dd03d(0x43d)?_0x2b8033[_0x4dd03d(0x3b0)]:(_0x4e223a=_0x2b790b[_0x4dd03d(0x383)](_0x3a2278[_0x4dd03d(0x5da)])[_0x4dd03d(0x4eb)](_0x3a2278[_0x4dd03d(0x1f1)][_0x4dd03d(0x309)]))==null?void 0x0:_0x4e223a['getUnitId']();return _0x174fcc?((_0x1786a8=_0x2b790b[_0x4dd03d(0x383)](_0x924b47['IRenderManagerService'])[_0x4dd03d(0x484)](_0x174fcc))==null?void 0x0:_0x1786a8[_0x4dd03d(0x208)](_0x3d1af8))??null:null;}function _0xb44e50(_0x1d4bdc){const _0x552539=_0x2fba6e;return _0x1d4bdc===_0x552539(0x2bf)||_0x1d4bdc===_0x552539(0x352)||_0x1d4bdc==='arrow-up'||_0x1d4bdc===_0x552539(0x1de);}let _0x2c24e3={'min':0x1,'max':0x5,'defaultValue':0x3},_0x24420b={'min':0x0,'max':0x64,'defaultValue':0x64},_0x2c9562=[{'kind':_0x2fba6e(0x240),'titleKey':_0x2fba6e(0x51f),'panel':_0x2fba6e(0x38a)},{'kind':_0x2fba6e(0x454),'titleKey':_0x2fba6e(0x5c4)},{'kind':_0x2fba6e(0x5ac),'titleKey':_0x2fba6e(0x253)},{'kind':_0x2fba6e(0x240),'titleKey':'boards-mind-ui.toolbar.primary.more','panel':_0x2fba6e(0x391),'dividerBefore':!0x0}],_0x35dfae={'addSibling':_0x2fba6e(0x26b),'addChild':_0x2fba6e(0x305),'copy':_0x2fba6e(0x26a),'paste':'paste','delete':'delete'},_0x1e2642=[{'key':_0x2fba6e(0x3c9),'title':'Mind\x20map','items':[{'value':_0x2fba6e(0x4af),'icon':'mindmap-horizontal','labelKey':_0x2fba6e(0x5ea)},{'value':_0x2fba6e(0x4bf),'icon':'mindmap-vertical','labelKey':'boards-mind-ui.panel.structureKind.mindmapVertical'}]},{'key':_0x2fba6e(0x4b5),'title':'Tree\x20diagram','items':[{'value':_0x2fba6e(0x2cc),'icon':'tree-right','labelKey':'boards-mind-ui.panel.structureKind.treeRight'},{'value':'tree-left','icon':_0x2fba6e(0x316),'labelKey':'boards-mind-ui.panel.structureKind.treeLeft'},{'value':_0x2fba6e(0x25c),'icon':'tree-alternate','labelKey':_0x2fba6e(0x506)}]},{'key':_0x2fba6e(0x526),'title':_0x2fba6e(0x3c7),'items':[{'value':_0x2fba6e(0x25f),'icon':_0x2fba6e(0x25f),'labelKey':_0x2fba6e(0x422)},{'value':_0x2fba6e(0x216),'icon':_0x2fba6e(0x216),'labelKey':_0x2fba6e(0x2c9)}]}],_0x3a1ac9={'key':_0x2fba6e(0x533),'title':'Branch','items':[{'value':_0x2fba6e(0x48b),'icon':_0x2fba6e(0x5cb),'labelKey':_0x2fba6e(0x42c)},{'value':_0x2fba6e(0x292),'icon':_0x2fba6e(0x5e6),'labelKey':_0x2fba6e(0x3e7)},{'value':_0x2fba6e(0x2b7),'icon':_0x2fba6e(0x323),'labelKey':_0x2fba6e(0x56c)}]},_0x5dd790=_0x2fba6e(0x27d);function _0x45b0c4(_0x4505f1,_0x436752){const _0x17c1bf=_0x2fba6e;_0x4505f1[_0x17c1bf(0x4ad)](_0x5c5324,{'action':_0x436752});}let _0x14665a={'line':_0x3e3af0,'more':_0x4f2042};function _0x10ec0b(_0x4baa82){const _0x4e47a6=_0x2fba6e;_0x4baa82[_0x4e47a6(0x55e)](),_0x4baa82[_0x4e47a6(0x40b)]();}function _0x5826bd(_0x10953e,_0x56a80b='univer-size-5',_0x35b61d){const _0x5df388=_0x2fba6e;return(0x0,_0x5c99c0[_0x5df388(0x538)])(_0x39938[_0x5df388(0x46d)],{'children':(0x0,_0x5c99c0[_0x5df388(0x538)])(_0x10953e,{'className':_0x56a80b,'extend':_0x35b61d})});}function _0xa2b34(_0x3d993f){const _0x90ad48=_0x2fba6e;var _0x1c2f02,_0x3edb58;let _0x480122=(_0x3d993f==null?void 0x0:_0x3d993f['shapeText'])??{},_0x2ef4e6=_0x480122[_0x90ad48(0x279)]&&typeof _0x480122[_0x90ad48(0x279)]==_0x90ad48(0x402)?_0x480122[_0x90ad48(0x279)]:{},_0x4ed890=(_0x1c2f02=_0x2ef4e6[_0x90ad48(0x2f3)])==null||(_0x1c2f02=_0x1c2f02['documentStyle'])==null?void 0x0:_0x1c2f02[_0x90ad48(0x326)];return{'color':typeof _0x480122['color']=='string'?_0x480122['color']:(_0x4ed890==null||(_0x3edb58=_0x4ed890['cl'])==null?void 0x0:_0x3edb58['rgb'])??_0x39938[_0x90ad48(0x33b)],'fontFamily':typeof _0x480122[_0x90ad48(0x3ec)]==_0x90ad48(0x43d)?_0x480122['fontFamily']:(_0x4ed890==null?void 0x0:_0x4ed890['ff'])??_0x3a2278[_0x90ad48(0x2d8)]['ff'],'fontSize':typeof _0x480122['fontSize']==_0x90ad48(0x5cc)?_0x480122[_0x90ad48(0x27f)]:typeof(_0x4ed890==null?void 0x0:_0x4ed890['fs'])=='number'?_0x4ed890['fs']:_0x3a2278['DEFAULT_STYLES']['fs'],'horizontalAlign':_0x480122[_0x90ad48(0x361)]??_0x2ef4e6['ha']??_0x3a2278[_0x90ad48(0x35f)][_0x90ad48(0x256)],'textFill':_0x480122['textFill']&&typeof _0x480122[_0x90ad48(0x470)]==_0x90ad48(0x402)?_0x480122[_0x90ad48(0x470)]:_0x4ed890==null?void 0x0:_0x4ed890['textFill'],'verticalAlign':_0x480122[_0x90ad48(0x419)]??_0x2ef4e6['va']??_0x3a2278[_0x90ad48(0x594)][_0x90ad48(0x599)]};}function _0x49c363(_0x59e585,_0x5a4324){const _0x2b970f=_0x2fba6e;if(!_0x5a4324)return;let _0x8f4ba3=_0x4ad69f(_0x5a4324);if(!_0x8f4ba3[_0x2b970f(0x333)])return;let _0x790071=_0x8f4ba3['map'](_0xf52a24=>_0x59e585[_0x2b970f(0x266)]({'id':_0x2b970f(0x5a8),'binding':_0xf52a24,'staticParameters':{'action':_0x5a4324}})??void 0x0)[_0x2b970f(0x412)](_0x325c0b=>!!_0x325c0b);return _0x790071[_0x2b970f(0x333)]?[...new Set(_0x790071)][_0x2b970f(0x28f)]('/'):void 0x0;}async function _0x39a7d8(_0x3f72dc,_0x8eb9ac,_0x42a15d){const _0x3d94d4=_0x2fba6e;return await Promise[_0x3d94d4(0x52b)](_0x8eb9ac(()=>_0x3f72dc[_0x3d94d4(0x4ad)](_0x6837b2['ChangeMindMapLayoutOperation']['id'],_0x42a15d)))?(await Promise[_0x3d94d4(0x52b)](_0x8eb9ac(()=>_0x3f72dc[_0x3d94d4(0x4ad)](_0x6837b2['LayoutMindMapOperation']['id'],{'unitId':_0x42a15d[_0x3d94d4(0x3b0)],'subUnitId':_0x42a15d['subUnitId'],'scopeId':_0x42a15d[_0x3d94d4(0x5c3)]}))),!0x0):!0x1;}async function _0x41dc18(_0x17280b,_0x572131,_0x29f61d){const _0x2b208f=_0x2fba6e;return await Promise[_0x2b208f(0x52b)](_0x572131(()=>_0x17280b[_0x2b208f(0x4ad)](_0x6837b2[_0x2b208f(0x4f6)]['id'],_0x29f61d)))?(await Promise['resolve'](_0x572131(()=>_0x17280b[_0x2b208f(0x4ad)](_0x6837b2[_0x2b208f(0x543)]['id'],{'unitId':_0x29f61d[_0x2b208f(0x3b0)],'subUnitId':_0x29f61d['subUnitId'],'scopeId':_0x29f61d[_0x2b208f(0x5c3)]}))),!0x0):!0x1;}function _0x35e1b9({className:_0x18cbe1='univer-size-5'}){const _0x3d14cc=_0x2fba6e;return(0x0,_0x5c99c0[_0x3d14cc(0x538)])(_0x39938[_0x3d14cc(0x46d)],{'children':(0x0,_0x5c99c0['jsxs'])('svg',{'className':_0x18cbe1,'viewBox':_0x3d14cc(0x2d4),'fill':_0x3d14cc(0x58c),'aria-hidden':_0x3d14cc(0x5f1),'children':[(0x0,_0x5c99c0[_0x3d14cc(0x538)])(_0x3d14cc(0x1df),{'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':_0x3d14cc(0x3ab),'strokeWidth':'1.8','strokeLinecap':_0x3d14cc(0x51c)}),(0x0,_0x5c99c0[_0x3d14cc(0x538)])(_0x3d14cc(0x1df),{'d':_0x3d14cc(0x469),'stroke':_0x3d14cc(0x3ab),'strokeWidth':'1.8','strokeLinecap':'round'}),(0x0,_0x5c99c0[_0x3d14cc(0x538)])(_0x3d14cc(0x1df),{'d':_0x3d14cc(0x4b9),'stroke':_0x3d14cc(0x3ab),'strokeWidth':'1.8','strokeLinecap':_0x3d14cc(0x51c)})]})});}function _0x173835({icon:_0x136be1}){const _0x56825c=_0x2fba6e;let _0x248e0b='#d8dce3',_0x1a479c={'stroke':'currentColor','strokeWidth':2.6,'strokeLinecap':_0x56825c(0x51c),'strokeLinejoin':_0x56825c(0x51c)},_0x29785e={'stroke':_0x248e0b,'strokeWidth':3.2,'strokeLinecap':'round'};return(0x0,_0x5c99c0['jsxs'])('svg',{'className':_0x56825c(0x28e),'viewBox':_0x56825c(0x2f6),'fill':_0x56825c(0x58c),'aria-hidden':_0x56825c(0x5f1),'children':[_0x136be1===_0x56825c(0x4af)&&(0x0,_0x5c99c0['jsxs'])(_0x5c99c0['Fragment'],{'children':[(0x0,_0x5c99c0[_0x56825c(0x538)])(_0x56825c(0x1df),{'d':_0x56825c(0x46a),..._0x1a479c}),(0x0,_0x5c99c0['jsx'])(_0x56825c(0x1df),{'d':'M12\x2015h9M12\x2028h9M12\x2041h9M59\x2015h9M59\x2028h9M59\x2041h9',..._0x29785e})]}),_0x136be1===_0x56825c(0x4bf)&&(0x0,_0x5c99c0[_0x56825c(0x1fb)])(_0x5c99c0[_0x56825c(0x399)],{'children':[(0x0,_0x5c99c0['jsx'])(_0x56825c(0x1df),{'d':'M21\x2028h38M40\x2011v34M28\x2016c7\x204\x2010\x208\x2012\x2012\x202-4\x205-8\x2012-12M28\x2040c7-4\x2010-8\x2012-12\x202\x204\x205\x208\x2012\x2012',..._0x1a479c}),(0x0,_0x5c99c0[_0x56825c(0x538)])(_0x56825c(0x1df),{'d':_0x56825c(0x512),'stroke':_0x248e0b,'strokeWidth':2.6,'strokeLinecap':_0x56825c(0x51c),'strokeDasharray':_0x56825c(0x524)})]}),_0x136be1==='tree-right'&&(0x0,_0x5c99c0[_0x56825c(0x1fb)])(_0x5c99c0[_0x56825c(0x399)],{'children':[(0x0,_0x5c99c0[_0x56825c(0x538)])(_0x56825c(0x1df),{'d':_0x56825c(0x567),..._0x1a479c}),(0x0,_0x5c99c0[_0x56825c(0x538)])(_0x56825c(0x1df),{'d':'M47\x2025h13M47\x2035h13M47\x2045h13',..._0x29785e}),(0x0,_0x5c99c0[_0x56825c(0x538)])(_0x56825c(0x1f6),{'cx':'24','cy':'12','r':'3','fill':_0x56825c(0x3ab)})]}),_0x136be1===_0x56825c(0x316)&&(0x0,_0x5c99c0[_0x56825c(0x1fb)])(_0x5c99c0[_0x56825c(0x399)],{'children':[(0x0,_0x5c99c0['jsx'])('path',{'d':'M56\x2012v32M56\x2019c0\x204-3\x206-7\x206h-7M56\x2029c0\x204-3\x206-7\x206h-7M56\x2039c0\x204-3\x206-7\x206h-7',..._0x1a479c}),(0x0,_0x5c99c0[_0x56825c(0x538)])(_0x56825c(0x1df),{'d':_0x56825c(0x46e),..._0x29785e}),(0x0,_0x5c99c0[_0x56825c(0x538)])(_0x56825c(0x1f6),{'cx':'56','cy':'12','r':'3','fill':_0x56825c(0x3ab)})]}),_0x136be1===_0x56825c(0x25c)&&(0x0,_0x5c99c0[_0x56825c(0x1fb)])(_0x5c99c0[_0x56825c(0x399)],{'children':[(0x0,_0x5c99c0[_0x56825c(0x538)])(_0x56825c(0x1df),{'d':'M42\x2012v32M42\x2020c0\x204-3\x206-7\x206h-7M42\x2030c0\x204\x203\x206\x207\x206h7M42\x2039c0\x204-3\x206-7\x206h-7',..._0x1a479c}),(0x0,_0x5c99c0['jsx'])(_0x56825c(0x1df),{'d':_0x56825c(0x5b5),..._0x29785e}),(0x0,_0x5c99c0[_0x56825c(0x538)])(_0x56825c(0x1f6),{'cx':'42','cy':'12','r':'3','fill':_0x56825c(0x3ab)})]}),_0x136be1===_0x56825c(0x25f)&&(0x0,_0x5c99c0[_0x56825c(0x1fb)])(_0x5c99c0[_0x56825c(0x399)],{'children':[(0x0,_0x5c99c0['jsx'])('path',{'d':_0x56825c(0x2ca),..._0x1a479c}),(0x0,_0x5c99c0['jsx'])(_0x56825c(0x1df),{'d':'M56\x2011h11M56\x2051h11',..._0x29785e}),(0x0,_0x5c99c0[_0x56825c(0x538)])(_0x56825c(0x1f6),{'cx':'17','cy':'31','r':'3','fill':'currentColor'})]}),_0x136be1===_0x56825c(0x216)&&(0x0,_0x5c99c0[_0x56825c(0x1fb)])(_0x5c99c0['Fragment'],{'children':[(0x0,_0x5c99c0[_0x56825c(0x538)])(_0x56825c(0x1df),{'d':_0x56825c(0x1e7),..._0x1a479c}),(0x0,_0x5c99c0['jsx'])(_0x56825c(0x1df),{'d':_0x56825c(0x307),..._0x29785e}),(0x0,_0x5c99c0['jsx'])('circle',{'cx':'40','cy':'9','r':'3','fill':_0x56825c(0x3ab)})]}),_0x136be1==='branch-curve'&&(0x0,_0x5c99c0[_0x56825c(0x538)])(_0x5c99c0[_0x56825c(0x399)],{'children':(0x0,_0x5c99c0[_0x56825c(0x538)])(_0x56825c(0x1df),{'d':_0x56825c(0x5b6),..._0x1a479c})}),_0x136be1===_0x56825c(0x5e6)&&(0x0,_0x5c99c0[_0x56825c(0x538)])(_0x5c99c0['Fragment'],{'children':(0x0,_0x5c99c0['jsx'])(_0x56825c(0x1df),{'d':_0x56825c(0x481),..._0x1a479c})}),_0x136be1===_0x56825c(0x323)&&(0x0,_0x5c99c0['jsx'])(_0x5c99c0[_0x56825c(0x399)],{'children':(0x0,_0x5c99c0[_0x56825c(0x538)])(_0x56825c(0x1df),{'d':_0x56825c(0x532),..._0x1a479c})})]});}function _0x301e5c(_0x2964a1,_0x3a9a23){const _0x2bb707=_0x2fba6e;let _0x16dcaa=_0x2964a1[_0x2bb707(0x326)],_0xac7c75=(0x0,_0x22188d[_0x2bb707(0x3fb)])(_0x16dcaa),_0x1f0ced={..._0xac7c75[_0x2bb707(0x482)]===void 0x0?null:{'color':_0xac7c75[_0x2bb707(0x482)]},..._0xac7c75[_0x2bb707(0x3ec)]===void 0x0?null:{'fontFamily':_0xac7c75[_0x2bb707(0x3ec)]},..._0xac7c75[_0x2bb707(0x27f)]===void 0x0?null:{'fontSize':_0xac7c75[_0x2bb707(0x27f)]},..._0xac7c75['bold']===void 0x0?null:{'bold':_0xac7c75['bold']},..._0xac7c75[_0x2bb707(0x479)]===void 0x0?null:{'italic':_0xac7c75[_0x2bb707(0x479)]},..._0xac7c75[_0x2bb707(0x23e)]===void 0x0?null:{'underline':_0xac7c75[_0x2bb707(0x23e)]},..._0xac7c75['strikethrough']===void 0x0?null:{'strikethrough':_0xac7c75[_0x2bb707(0x339)]},..._0xac7c75[_0x2bb707(0x470)]===void 0x0?null:{'textFill':_0xac7c75['textFill']}};_0x2964a1['horizontalAlign']!==void 0x0&&(_0x1f0ced[_0x2bb707(0x361)]=_0x2964a1[_0x2bb707(0x361)]),_0x2964a1[_0x2bb707(0x419)]!==void 0x0&&(_0x1f0ced['verticalAlign']=_0x2964a1[_0x2bb707(0x419)]),Object[_0x2bb707(0x2c3)](_0x1f0ced)['length']>0x0&&_0x3a9a23({'textStyle':_0x1f0ced});}function _0x594aba(_0x16a395,_0x4311fe,_0x5922c7){const _0x35da7b=_0x2fba6e;let _0x39d1a5=_0x16a395??{},_0xe58064=(0x0,_0x39938['buildShapeTextDataUpdate'])(_0x39d1a5,_0x4311fe),_0x41be12=_0xe58064[_0x35da7b(0x252)]??_0x39d1a5[_0x35da7b(0x252)]??{};return{..._0x39d1a5,..._0xe58064,'shapeText':{..._0x41be12,..._0x5922c7[_0x35da7b(0x482)]===void 0x0?null:{'color':_0x5922c7[_0x35da7b(0x482)]},..._0x5922c7['fontSize']===void 0x0?null:{'fontSize':_0x5922c7['fontSize']},..._0x5922c7['bold']===void 0x0?null:{'bold':_0x5922c7[_0x35da7b(0x3f8)]},..._0x5922c7[_0x35da7b(0x479)]===void 0x0?null:{'italic':_0x5922c7[_0x35da7b(0x479)]},..._0x5922c7[_0x35da7b(0x23e)]===void 0x0?null:{'underline':_0x5922c7[_0x35da7b(0x23e)]},..._0x5922c7[_0x35da7b(0x339)]===void 0x0?null:{'strikethrough':_0x5922c7[_0x35da7b(0x339)]},..._0x5922c7[_0x35da7b(0x361)]===void 0x0?null:{'horizontalAlign':_0x5922c7[_0x35da7b(0x361)]},..._0x5922c7['verticalAlign']===void 0x0?null:{'verticalAlign':_0x5922c7[_0x35da7b(0x419)]},..._0x5922c7[_0x35da7b(0x470)]===void 0x0?null:{'textFill':_0x5922c7[_0x35da7b(0x470)]}}};}function _0x2cb8f9(_0x22f30e,_0xc0d43f){const _0x36532b=_0x2fba6e;let _0x401fc2=_0x22f30e==null?void 0x0:_0x22f30e[_0x36532b(0x58b)];_0x401fc2&&_0xc0d43f({'lineType':_0x401fc2[_0x36532b(0x283)]===_0x3c2905[_0x36532b(0x3a9)]['RoundDot']||_0x401fc2[_0x36532b(0x283)]===_0x3c2905[_0x36532b(0x3a9)][_0x36532b(0x4d2)]?_0x36532b(0x58a):_0x401fc2[_0x36532b(0x283)]===_0x3c2905[_0x36532b(0x3a9)][_0x36532b(0x221)]?'dash':'solid',...typeof _0x401fc2[_0x36532b(0x53b)]==_0x36532b(0x5cc)?{'strokeWidth':_0x401fc2['width']}:null,...typeof _0x401fc2[_0x36532b(0x482)]==_0x36532b(0x43d)?{'stroke':_0x401fc2[_0x36532b(0x482)]}:null,...typeof _0x401fc2[_0x36532b(0x59c)]==_0x36532b(0x5cc)?{'opacity':_0x401fc2[_0x36532b(0x59c)]}:null});}function _0x578cc3(_0x993753){const _0x63695a=_0x2fba6e;return _0x993753!=null&&_0x993753[_0x63695a(0x333)]?_0x993753[0x0]<=0x2?_0x3c2905[_0x63695a(0x3a9)][_0x63695a(0x330)]:_0x3c2905[_0x63695a(0x3a9)][_0x63695a(0x221)]:_0x3c2905['ShapeLineDashEnum'][_0x63695a(0x3cf)];}function _0x2367bb(_0x52e3ae){const _0x43b084=_0x2fba6e;return{'stroke':{'lineStrokeType':_0x3c2905['ShapeLineTypeEnum'][_0x43b084(0x57d)],'dashType':_0x578cc3(_0x52e3ae==null?void 0x0:_0x52e3ae['dash']),'color':(_0x52e3ae==null?void 0x0:_0x52e3ae[_0x43b084(0x58b)])??_0x39938[_0x43b084(0x37c)],'width':(_0x52e3ae==null?void 0x0:_0x52e3ae[_0x43b084(0x5d9)])??_0x2c24e3['defaultValue'],'opacity':(_0x52e3ae==null?void 0x0:_0x52e3ae[_0x43b084(0x59c)])??_0x24420b['defaultValue']/0x64}};}function _0x3040c7(_0x1f93d7){const _0x526247=_0x2fba6e;var _0xfdd0e3,_0x6fa7df,_0x104ca6;let _0x4c979a=(0x0,_0x4468ef[_0x526247(0x2be)])(_0x3a2278['ICommandService']),_0x8cb2b7=(0x0,_0x4468ef[_0x526247(0x2be)])(_0x4468ef[_0x526247(0x294)]),_0x56dffa=(0x0,_0x4468ef['useDependency'])(_0x3a2278['LocaleService']),_0x4c3623=(0x0,_0x4468ef[_0x526247(0x2be)])(_0x4468ef[_0x526247(0x2d1)]),[_0x22ec24,_0x4f3bcd]=(0x0,_0x3b9d96[_0x526247(0x3a8)])(null),[_0x60e643,_0x1f9a9c]=(0x0,_0x3b9d96[_0x526247(0x3a8)])((_0xfdd0e3=_0x1f93d7[_0x526247(0x5b3)][_0x526247(0x39e)])==null?void 0x0:_0xfdd0e3[_0x526247(0x376)]),_0x5881ba=_0x1f93d7[_0x526247(0x5b3)][_0x526247(0x39e)];if(!_0x5881ba)return null;let _0x2f06ab={'unitId':_0x5881ba[_0x526247(0x3b0)],'subUnitId':_0x5881ba['subUnitId']},_0x1e2cf9=_0x4a918a=>{const _0x570e2e=_0x526247;_0x4c979a[_0x570e2e(0x4ad)](_0x6837b2[_0x570e2e(0x2f9)]['id'],{..._0x2f06ab,'nodeId':_0x5881ba[_0x570e2e(0x289)],..._0x4a918a});},_0x282cfd=(_0x24ed93,_0x2aa8ae)=>{const _0x5c8277=_0x526247;let _0x3aad6d=_0x2aa8ae??{};_0x1f9a9c(_0x9f963f=>({..._0x9f963f??{},..._0x3aad6d})),_0x1e2cf9({..._0x3aad6d['fill']===void 0x0?null:{'fill':_0x3aad6d[_0x5c8277(0x23b)]},..._0x3aad6d[_0x5c8277(0x58b)]===void 0x0?null:{'stroke':_0x3aad6d[_0x5c8277(0x58b)]}});},_0x2971fb=_0x1d3998=>{const _0x3b7cd5=_0x526247;_0x4c979a[_0x3b7cd5(0x4ad)](_0x6837b2[_0x3b7cd5(0x41e)]['id'],{..._0x2f06ab,'nodeId':_0x5881ba['elementId'],'style':_0x1d3998});},_0x5914f5=_0x2367bb(_0x5881ba[_0x526247(0x4fe)]),_0x3b56f5=_0xfc7757=>_0x49c363(_0x8cb2b7,_0xfc7757),_0x5bbe45=_0x5dd197=>{_0x45b0c4(_0x4c979a,_0x5dd197);},_0x3a6a74=(_0x60e643==null?void 0x0:_0x60e643['shapeText'])??{},_0x3f7e06=_0xa2b34(_0x60e643),_0x134573=_0x262771=>{_0x301e5c(_0x262771,_0x4bbe59=>{_0x1f9a9c(_0x430058=>_0x594aba(_0x430058,_0x262771,_0x4bbe59['textStyle'])),_0x1e2cf9(_0x4bbe59);});},_0x53cb5d=[{'label':_0x56dffa['t'](_0x526247(0x2d9)),'value':_0x3a2278[_0x526247(0x35f)][_0x526247(0x256)],'icon':(0x0,_0x5c99c0[_0x526247(0x538)])(_0x7d167a,{})},{'label':_0x56dffa['t'](_0x526247(0x54a)),'value':_0x3a2278[_0x526247(0x35f)][_0x526247(0x244)],'icon':(0x0,_0x5c99c0[_0x526247(0x538)])(_0x575714,{})},{'label':_0x56dffa['t']('boards-mind-ui.alignRight'),'value':_0x3a2278[_0x526247(0x35f)][_0x526247(0x22f)],'icon':(0x0,_0x5c99c0[_0x526247(0x538)])(_0x53cc18,{})},{'label':_0x56dffa['t']('boards-mind-ui.alignJustify'),'value':_0x3a2278['HorizontalAlign']['JUSTIFIED'],'icon':(0x0,_0x5c99c0[_0x526247(0x538)])(_0x536a03,{})}],_0x41288e=[{'label':_0x56dffa['t']('boards-mind-ui.alignTop'),'value':_0x3a2278[_0x526247(0x594)][_0x526247(0x318)],'icon':(0x0,_0x5c99c0[_0x526247(0x538)])(_0x1c8767,{})},{'label':_0x56dffa['t'](_0x526247(0x591)),'value':_0x3a2278[_0x526247(0x594)][_0x526247(0x599)],'icon':(0x0,_0x5c99c0['jsx'])(_0x13dee6,{})},{'label':_0x56dffa['t']('boards-mind-ui.alignBottom'),'value':_0x3a2278[_0x526247(0x594)][_0x526247(0x2b2)],'icon':(0x0,_0x5c99c0[_0x526247(0x538)])(_0xcc7e2e,{})}],_0x33ea38=()=>{const _0x561d93=_0x526247;_0x5bbe45(_0x561d93(0x26b));},_0x3a82e8=()=>{_0x5bbe45('add-child');},_0xbe3023=()=>{const _0x57ee5d=_0x526247;_0x5bbe45(_0x57ee5d(0x26a));},_0xe14a9c=()=>{const _0x59d513=_0x526247;_0x5bbe45(_0x59d513(0x1f7));},_0x47c63a=()=>{_0x5bbe45('delete');},_0xc70372=((_0x6fa7df=_0x5881ba[_0x526247(0x1e2)])==null?void 0x0:_0x6fa7df[_0x526247(0x1f8)])??_0x6837b2[_0x526247(0x5b2)][_0x526247(0x1f8)],_0x1fd61b=(0x0,_0x6837b2[_0x526247(0x356)])(_0xc70372,((_0x104ca6=_0x5881ba[_0x526247(0x1e2)])==null?void 0x0:_0x104ca6[_0x526247(0x3cd)])??_0x6837b2[_0x526247(0x5b2)]['branchLineType']),_0x5d2846=_0x15f925=>{const _0x21d45f=_0x526247;let _0x48c533=(0x0,_0x6837b2[_0x21d45f(0x356)])(_0x15f925,_0x1fd61b);_0x39a7d8(_0x4c979a,_0x4c3623[_0x21d45f(0x35e)](_0x5881ba['unitId']),{..._0x2f06ab,'scopeId':_0x5881ba['scopeId'],'structureKind':_0x15f925,..._0x48c533===_0x1fd61b?null:{'branchLineType':_0x48c533}}),_0x4f3bcd(null);},_0x2424f7=_0xe06289=>{const _0x571f06=_0x526247;_0x41dc18(_0x4c979a,_0x4c3623[_0x571f06(0x35e)](_0x5881ba[_0x571f06(0x3b0)]),{..._0x2f06ab,'scopeId':_0x5881ba[_0x571f06(0x5c3)],'branchLineType':_0xe06289}),_0x4f3bcd(null);},_0x20e414=(_0x20982b,_0x5871e3,_0x1337ca,_0x287357=!0x1)=>(0x0,_0x5c99c0[_0x526247(0x538)])(_0x526247(0x438),{'type':'button','aria-label':_0x56dffa['t'](_0x20982b[_0x526247(0x4ce)]),'disabled':_0x287357,'className':(0x0,_0x403267['clsx'])(_0x526247(0x54b),_0x5871e3&&'univer-bg-[#e8eefc]\x20univer-text-[#2f6fed]\x20hover:univer-bg-[#e8eefc]',_0x287357&&_0x526247(0x406)),'onMouseDown':_0x10ec0b,'onPointerDown':_0x10ec0b,'onClick':_0x55efdc=>{const _0x37deaa=_0x526247;_0x55efdc[_0x37deaa(0x55e)](),_0x287357||_0x1337ca();},'children':(0x0,_0x5c99c0[_0x526247(0x538)])(_0x173835,{'icon':_0x20982b[_0x526247(0x4ff)]})},_0x20982b[_0x526247(0x360)]),_0x4bd24e=()=>(0x0,_0x5c99c0[_0x526247(0x1fb)])(_0x526247(0x559),{'className':'univer-w-[202px]\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20univer-py-4\x20univer-shadow-lg','onMouseDown':_0x3e92b6=>_0x3e92b6[_0x526247(0x55e)](),'onPointerDown':_0x8038a6=>_0x8038a6['stopPropagation'](),'children':[_0x1e2642[_0x526247(0x3ff)](_0x344115=>(0x0,_0x5c99c0[_0x526247(0x1fb)])(_0x526247(0x559),{'className':_0x526247(0x377),'children':[(0x0,_0x5c99c0[_0x526247(0x538)])(_0x526247(0x559),{'className':'univer-mb-2\x20univer-text-lg\x20univer-text-gray-900','children':_0x344115[_0x526247(0x4b7)]}),(0x0,_0x5c99c0[_0x526247(0x538)])(_0x526247(0x559),{'className':'univer-grid\x20univer-h-14\x20univer-overflow-hidden\x20univer-rounded-xl\x20univer-bg-gray-100\x20univer-p-1','style':{'gridTemplateColumns':'repeat('+_0x344115[_0x526247(0x413)]['length']+_0x526247(0x248)},'children':_0x344115[_0x526247(0x413)][_0x526247(0x3ff)](_0x4a2af0=>_0x20e414(_0x4a2af0,_0x4a2af0['value']===_0xc70372,()=>_0x5d2846(_0x4a2af0[_0x526247(0x360)])))})]},_0x344115[_0x526247(0x41a)])),(0x0,_0x5c99c0[_0x526247(0x538)])(_0x403267[_0x526247(0x5d2)],{}),(0x0,_0x5c99c0[_0x526247(0x1fb)])(_0x526247(0x559),{'className':'univer-mb-0','children':[(0x0,_0x5c99c0[_0x526247(0x538)])(_0x526247(0x559),{'className':_0x526247(0x540),'children':_0x3a1ac9[_0x526247(0x4b7)]}),(0x0,_0x5c99c0[_0x526247(0x538)])('div',{'className':_0x526247(0x48a),'style':{'gridTemplateColumns':_0x526247(0x28a)+_0x3a1ac9['items'][_0x526247(0x333)]+_0x526247(0x248)},'children':_0x3a1ac9['items'][_0x526247(0x3ff)](_0x19dda5=>_0x20e414(_0x19dda5,_0x19dda5['value']===_0x1fd61b,()=>_0x2424f7(_0x19dda5['value']),_0x19dda5[_0x526247(0x360)]==='curve'&&!(0x0,_0x6837b2[_0x526247(0x2f8)])(_0xc70372)))})]})]}),_0x3b75cb=_0x18ec58=>{const _0x4bf7a8=_0x526247;switch(_0x18ec58){case _0x4bf7a8(0x38a):return(0x0,_0x5c99c0[_0x4bf7a8(0x538)])(_0x39938[_0x4bf7a8(0x25d)],{'title':_0x56dffa['t'](_0x4bf7a8(0x2af)),'shapeData':_0x5914f5,'modeOptions':[_0x4bf7a8(0x42e),_0x4bf7a8(0x55b),'dot'],'showDashDropdown':!0x1,'widthRange':{'min':_0x2c24e3[_0x4bf7a8(0x4fb)],'max':_0x2c24e3[_0x4bf7a8(0x2a8)],'step':0x1},'onUpdateShapeData':(_0x5f49c8,_0xb32b80)=>{_0x2cb8f9(_0xb32b80,_0x2971fb);}});case _0x4bf7a8(0x391):return(0x0,_0x5c99c0[_0x4bf7a8(0x538)])(_0x39938[_0x4bf7a8(0x222)],{'title':_0x56dffa['t'](_0x4bf7a8(0x264)),'minWidthClassName':_0x4bf7a8(0x521),'children':(0x0,_0x5c99c0[_0x4bf7a8(0x1fb)])(_0x4bf7a8(0x559),{'className':_0x4bf7a8(0x48e),'children':[(0x0,_0x5c99c0['jsx'])(_0x39938[_0x4bf7a8(0x575)],{'label':_0x56dffa['t'](_0x4bf7a8(0x353)),'shortcut':_0x3b56f5(_0x35dfae[_0x4bf7a8(0x5a3)]),'onClick':_0x33ea38}),(0x0,_0x5c99c0[_0x4bf7a8(0x538)])(_0x39938[_0x4bf7a8(0x575)],{'label':_0x56dffa['t'](_0x4bf7a8(0x3a1)),'shortcut':_0x3b56f5(_0x35dfae[_0x4bf7a8(0x3f1)]),'onClick':_0x3a82e8}),(0x0,_0x5c99c0[_0x4bf7a8(0x538)])(_0x403267[_0x4bf7a8(0x5d2)],{}),(0x0,_0x5c99c0[_0x4bf7a8(0x538)])(_0x39938[_0x4bf7a8(0x575)],{'label':_0x56dffa['t'](_0x4bf7a8(0x2f5)),'shortcut':_0x3b56f5(_0x35dfae[_0x4bf7a8(0x26a)]),'onClick':_0xbe3023}),(0x0,_0x5c99c0['jsx'])(_0x39938[_0x4bf7a8(0x575)],{'label':_0x56dffa['t'](_0x4bf7a8(0x296)),'shortcut':_0x3b56f5(_0x35dfae[_0x4bf7a8(0x1f7)]),'onClick':_0xe14a9c}),(0x0,_0x5c99c0[_0x4bf7a8(0x538)])(_0x39938[_0x4bf7a8(0x575)],{'label':_0x56dffa['t'](_0x4bf7a8(0x367)),'shortcut':_0x3b56f5(_0x35dfae[_0x4bf7a8(0x37d)]),'onClick':_0x47c63a})]})});default:return null;}},_0x4b05e9=_0x2c9562[_0x526247(0x3be)](_0x34279d=>{const _0x34db57=_0x526247;let _0x2094df=[];if(_0x34279d[_0x34db57(0x29e)]&&_0x2094df[_0x34db57(0x394)]((0x0,_0x5c99c0['jsx'])(_0x403267['Separator'],{'orientation':'vertical'},_0x34db57(0x508)+_0x34279d['kind'])),_0x34279d[_0x34db57(0x520)]===_0x34db57(0x5ac))return _0x2094df[_0x34db57(0x394)]((0x0,_0x5c99c0['jsx'])(_0x39938[_0x34db57(0x48d)],{'title':_0x56dffa['t'](_0x34db57(0x2bb)),'fontFamily':_0x3f7e06[_0x34db57(0x3ec)],'textStyle':{'isBold':_0x3a6a74[_0x34db57(0x3f8)]===!0x0,'isItalic':_0x3a6a74[_0x34db57(0x479)]===!0x0,'isUnderline':_0x3a6a74[_0x34db57(0x23e)]===!0x0,'isStrike':_0x3a6a74[_0x34db57(0x339)]===!0x0},'horizontalAlign':_0x3f7e06[_0x34db57(0x361)],'verticalAlign':_0x3f7e06[_0x34db57(0x419)],'horizontalAlignOptions':_0x53cb5d,'verticalAlignOptions':_0x41288e,'onUpdateText':_0x134573},_0x34279d[_0x34db57(0x520)])),_0x2094df;if(_0x34279d['kind']===_0x34db57(0x454)){let _0x13bf7a={'fs':_0x3f7e06[_0x34db57(0x27f)],'cl':{'rgb':_0x3f7e06[_0x34db57(0x482)]},..._0x3f7e06[_0x34db57(0x470)]===void 0x0?null:{'textFill':_0x3f7e06['textFill']}};return _0x2094df[_0x34db57(0x394)]((0x0,_0x5c99c0[_0x34db57(0x538)])(_0x39938[_0x34db57(0x4f3)],{'title':_0x56dffa['t'](_0x34db57(0x423)),'textStyle':_0x13bf7a,'fallbackColor':_0x3f7e06[_0x34db57(0x482)],'onChange':_0xee5b89=>_0x134573({'textStyle':_0xee5b89})},_0x34279d[_0x34db57(0x520)])),_0x2094df[_0x34db57(0x394)]((0x0,_0x5c99c0[_0x34db57(0x538)])(_0x39938[_0x34db57(0x5c5)],{'value':String(_0x3f7e06[_0x34db57(0x27f)]),'onChange':_0x5cf931=>{_0x134573({'textStyle':{'fs':_0x5cf931}});}},_0x34db57(0x1ed))),_0x2094df;}return _0x2094df['push']((0x0,_0x5c99c0[_0x34db57(0x538)])(_0x403267[_0x34db57(0x54e)],{'open':_0x22ec24===_0x34279d[_0x34db57(0x34c)],'overlay':_0x3b75cb(_0x34279d[_0x34db57(0x34c)]),'onOpenChange':_0x3f0d57=>_0x4f3bcd(_0x3f0d57?_0x34279d[_0x34db57(0x34c)]:null),'children':(0x0,_0x5c99c0[_0x34db57(0x538)])(_0x34db57(0x547),{'children':(0x0,_0x5c99c0['jsx'])(_0x39938[_0x34db57(0x2cd)],{'title':_0x56dffa['t'](_0x34279d[_0x34db57(0x393)]),'active':_0x22ec24===_0x34279d[_0x34db57(0x34c)],'icon':_0x5826bd(_0x14665a[_0x34279d[_0x34db57(0x34c)]]),'sizeClassName':_0x34db57(0x334),'onMouseDown':_0x10ec0b,'onPointerDown':_0x10ec0b})})},_0x34279d[_0x34db57(0x34c)])),_0x2094df;}),_0x15bb58=[..._0x5881ba[_0x526247(0x3e1)]?[(0x0,_0x5c99c0[_0x526247(0x538)])(_0x403267[_0x526247(0x54e)],{'open':_0x22ec24===_0x526247(0x1e2),'overlay':_0x4bd24e(),'onOpenChange':_0x5de6d9=>_0x4f3bcd(_0x5de6d9?_0x526247(0x1e2):null),'children':(0x0,_0x5c99c0[_0x526247(0x538)])(_0x526247(0x547),{'children':(0x0,_0x5c99c0[_0x526247(0x538)])(_0x39938[_0x526247(0x2cd)],{'title':_0x56dffa['t']('boards-mind-ui.toolbar.action.layout'),'active':_0x22ec24==='layout','icon':(0x0,_0x5c99c0[_0x526247(0x538)])(_0x35e1b9,{}),'sizeClassName':_0x526247(0x334),'onMouseDown':_0x10ec0b,'onPointerDown':_0x10ec0b})})},_0x526247(0x3e3)),(0x0,_0x5c99c0[_0x526247(0x538)])(_0x403267[_0x526247(0x5d2)],{'orientation':_0x526247(0x2c8)},_0x526247(0x261))]:[],(0x0,_0x5c99c0['jsx'])(_0x39938[_0x526247(0x597)],{'title':_0x56dffa['t'](_0x526247(0x4bc)),'shapeData':_0x60e643??{},'onUpdateShapeData':_0x282cfd},'mind-map-fill'),(0x0,_0x5c99c0[_0x526247(0x538)])(_0x39938[_0x526247(0x50f)],{'title':_0x56dffa['t'](_0x526247(0x2ee)),'shapeData':_0x60e643??{},'onUpdateShapeData':_0x282cfd},'mind-map-stroke'),(0x0,_0x5c99c0[_0x526247(0x538)])(_0x403267[_0x526247(0x5d2)],{'orientation':'vertical'},_0x526247(0x596))];return(0x0,_0x5c99c0[_0x526247(0x1fb)])(_0x39938[_0x526247(0x536)],{'maxWidthClassName':'univer-max-w-[min(760px,calc(100vw-32px))]','onMouseDown':_0x426465=>_0x426465[_0x526247(0x55e)](),'children':[_0x15bb58,_0x4b05e9]});}function _0x1a0d17(_0x265081){let {left:_0xfe5a56,top:_0x1f660a,width:_0x1171e1,height:_0x523f14}=_0x265081;return{'left':_0xfe5a56,'right':_0xfe5a56+_0x1171e1,'top':_0x1f660a-0x38,'bottom':_0x1f660a+_0x523f14};}let _0x5afa04=class extends _0x3a2278['RxDisposable']{constructor(_0x25adca,_0x48827f,_0x124e40,_0x2acde9,_0x287e3a,_0x49ca12){const _0x7aaad3=_0x2fba6e;super(),this[_0x7aaad3(0x595)]=_0x25adca,this['_boardCanvasPopManagerService']=_0x48827f,this[_0x7aaad3(0x4ec)]=_0x124e40,this['_elementStateService']=_0x2acde9,this[_0x7aaad3(0x3aa)]=_0x287e3a,this['_interactionSurfaceService']=_0x49ca12,_0x251ac6(this,_0x7aaad3(0x21a),null),_0x251ac6(this,_0x7aaad3(0x1f0),null),this[_0x7aaad3(0x374)]();}[_0x2fba6e(0x450)](){const _0x1a33f9=_0x2fba6e;this[_0x1a33f9(0x35a)](),super[_0x1a33f9(0x450)]();}[_0x2fba6e(0x374)](){const _0x4109c1=_0x2fba6e;let _0xfd5806=this[_0x4109c1(0x595)][_0x4109c1(0x2fd)][_0x4109c1(0x2c2)]();this['disposeWithMe']((0x0,_0x3a2278[_0x4109c1(0x3af)])(_0xfd5806[_0x4109c1(0x260)][_0x4109c1(0x456)]((0x0,_0x45614e[_0x4109c1(0x2a9)])(this[_0x4109c1(0x4e8)]))[_0x4109c1(0x55f)](()=>this['_showPopupForSelection']()))),this['disposeWithMe']((0x0,_0x3a2278['toDisposable'])(_0xfd5806[_0x4109c1(0x3d3)][_0x4109c1(0x456)]((0x0,_0x45614e[_0x4109c1(0x2a9)])(this[_0x4109c1(0x4e8)]))[_0x4109c1(0x55f)](()=>this['_clearPopupIfSelectionChanged']()))),this['disposeWithMe']((0x0,_0x3a2278[_0x4109c1(0x3af)])(_0xfd5806['changeStart$'][_0x4109c1(0x456)]((0x0,_0x45614e[_0x4109c1(0x2a9)])(this['dispose$']))['subscribe'](()=>this[_0x4109c1(0x35a)]()))),this[_0x4109c1(0x417)]((0x0,_0x3a2278[_0x4109c1(0x3af)])(_0xfd5806[_0x4109c1(0x5c6)][_0x4109c1(0x456)]((0x0,_0x45614e['takeUntil'])(this[_0x4109c1(0x4e8)]))[_0x4109c1(0x55f)](()=>setTimeout(()=>this['_showPopupForSelection'](),0x0)))),this[_0x4109c1(0x417)]((0x0,_0x3a2278[_0x4109c1(0x3af)])(this[_0x4109c1(0x5a0)][_0x4109c1(0x1ea)][_0x4109c1(0x456)]((0x0,_0x45614e[_0x4109c1(0x2a9)])(this[_0x4109c1(0x4e8)]))[_0x4109c1(0x55f)](()=>setTimeout(()=>this[_0x4109c1(0x2ba)](),0x0)))),this[_0x4109c1(0x417)]((0x0,_0x3a2278[_0x4109c1(0x3af)])(this[_0x4109c1(0x38f)]['interactionSurfaceActive$']['pipe']((0x0,_0x45614e[_0x4109c1(0x2a9)])(this['dispose$']))[_0x4109c1(0x55f)](_0x27cc8e=>{const _0x32c93e=_0x4109c1;_0x27cc8e?this['_clearPopup']():setTimeout(()=>this[_0x32c93e(0x2ba)](),0x0);}))),this['disposeWithMe']((0x0,_0x3a2278[_0x4109c1(0x3af)])(this['_boardTextEditingService']['editingParams$'][_0x4109c1(0x456)]((0x0,_0x45614e['takeUntil'])(this[_0x4109c1(0x4e8)]))[_0x4109c1(0x55f)](_0x450911=>{const _0x5345e2=_0x4109c1;(_0x450911==null?void 0x0:_0x450911[_0x5345e2(0x3b0)])===this[_0x5345e2(0x595)]['unitId']&&(_0x450911[_0x5345e2(0x33f)]?this['_clearPopup']():setTimeout(()=>this[_0x5345e2(0x2ba)](),0x0));})));}['_clearPopup'](){const _0x1f9f1c=_0x2fba6e;var _0xf7e638;(_0xf7e638=this[_0x1f9f1c(0x21a)])==null||_0xf7e638[_0x1f9f1c(0x450)](),this[_0x1f9f1c(0x21a)]=null,this[_0x1f9f1c(0x1f0)]=null;}[_0x2fba6e(0x42a)](){setTimeout(()=>{const _0x474aa9=_0x2d97;this[_0x474aa9(0x57b)]()||this['_clearPopup']();},0x0);}[_0x2fba6e(0x57b)](){const _0x575105=_0x2fba6e;let _0x5d2c4d=this[_0x575105(0x5a0)][_0x575105(0x39a)]();return!!_0x5d2c4d[_0x575105(0x5ab)]&&_0x5d2c4d[_0x575105(0x369)][_0x575105(0x333)]>0x0&&this[_0x575105(0x1f0)]===this[_0x575105(0x2ab)](_0x5d2c4d[_0x575105(0x5ab)][_0x575105(0x3b0)],_0x5d2c4d[_0x575105(0x5ab)][_0x575105(0x363)],_0x5d2c4d['selectedIds']);}[_0x2fba6e(0x2ab)](_0x5d1eed,_0x5a46ac,_0x5eef3e){const _0x48f0ad=_0x2fba6e;return _0x5d1eed+':'+_0x5a46ac+':'+_0x5eef3e[_0x48f0ad(0x28f)](',');}[_0x2fba6e(0x405)](_0x298108,_0x3ec952,_0x58f70c,_0x486583){const _0x2fcede=_0x2fba6e;let _0x2fe605=this[_0x2fcede(0x4ec)][_0x2fcede(0x5d8)](_0x298108,_0x3ec952),_0x38042e=Object['values'](_0x2fe605)[_0x2fcede(0x57e)](_0xaf63c3=>{const _0x4e5768=_0x2fcede;let _0x56f5af=(0x0,_0x6837b2['getMindMapConnectorMeta'])(_0xaf63c3[_0x4e5768(0x21f)]);return(_0x56f5af==null?void 0x0:_0x56f5af[_0x4e5768(0x2b3)])===_0x58f70c&&_0x56f5af[_0x4e5768(0x32c)]===_0x486583;});if(_0x38042e&&'connectorData'in _0x38042e[_0x2fcede(0x21f)])return _0x38042e[_0x2fcede(0x21f)][_0x2fcede(0x4dd)][_0x2fcede(0x22c)];}[_0x2fba6e(0x2ba)](){const _0x338a2a=_0x2fba6e;var _0x2a0de8,_0x5ea82d,_0x5bc367;if(this[_0x338a2a(0x38f)][_0x338a2a(0x4be)]){this[_0x338a2a(0x35a)]();return;}let _0x5ae34e=this[_0x338a2a(0x3aa)][_0x338a2a(0x29c)]();if((_0x5ae34e==null?void 0x0:_0x5ae34e['visible'])===!0x0&&_0x5ae34e['unitId']===this['_renderContext'][_0x338a2a(0x3b0)]){this[_0x338a2a(0x35a)]();return;}let _0x599672=this['_elementStateService'][_0x338a2a(0x39a)]();if(_0x599672[_0x338a2a(0x30f)]||(0x0,_0x23cfd0[_0x338a2a(0x27a)])({'context':_0x599672[_0x338a2a(0x5ab)],'selectedIds':_0x599672[_0x338a2a(0x369)],'getElementById':(_0x4020dd,_0x54b6b1,_0x560d67)=>this[_0x338a2a(0x4ec)][_0x338a2a(0x2a0)](_0x4020dd,_0x54b6b1,_0x560d67)})['owner']!=='mind-map'){this[_0x338a2a(0x35a)]();return;}let _0x5c5f8d=this[_0x338a2a(0x595)]['scene']['getTransformerByCreate']()['getSelectedObjectMap'](),_0x9a903a=Array['from'](_0x5c5f8d[_0x338a2a(0x2dd)]())['map'](_0x3e8f60=>this['_resolveSelectedEntry'](_0x3e8f60))[_0x338a2a(0x412)](_0x973d18=>!!_0x973d18)[_0x338a2a(0x412)](_0x2e1da5=>!!(0x0,_0x6837b2['getMindMapNodeMeta'])(_0x2e1da5[_0x338a2a(0x1f4)][_0x338a2a(0x21f)])),_0x198fb4=_0x9a903a[_0x338a2a(0x57e)](_0x26ed3a=>_0x26ed3a[_0x338a2a(0x1f4)][_0x338a2a(0x289)]===_0x599672['focusedId'])??_0x9a903a[0x0]??this[_0x338a2a(0x4f0)]();if(!_0x198fb4){this[_0x338a2a(0x35a)]();return;}let _0x5685c3=(0x0,_0x6837b2['getMindMapNodeMeta'])(_0x198fb4[_0x338a2a(0x1f4)][_0x338a2a(0x21f)]);if(!_0x5685c3){this[_0x338a2a(0x35a)]();return;}let _0x17774f=(_0x2a0de8=this[_0x338a2a(0x4ec)][_0x338a2a(0x5d8)](_0x198fb4[_0x338a2a(0x1f4)][_0x338a2a(0x3b0)],_0x198fb4[_0x338a2a(0x1f4)][_0x338a2a(0x363)])[_0x5685c3[_0x338a2a(0x2b3)]])==null?void 0x0:_0x2a0de8[_0x338a2a(0x21f)],_0x1a4e5e=(0x0,_0x6837b2[_0x338a2a(0x205)])(_0x17774f),_0x4e13da=_0x17774f==null||(_0x5ea82d=_0x17774f[_0x338a2a(0x214)])==null||(_0x5ea82d=_0x5ea82d[_0x338a2a(0x529)])==null||(_0x5ea82d=_0x5ea82d['layout'])==null?void 0x0:_0x5ea82d['structureKind'],_0x2ad698=((_0x1a4e5e==null?void 0x0:_0x1a4e5e[_0x338a2a(0x1e2)][_0x338a2a(0x1f8)])??_0x4e13da)===_0x338a2a(0x4bf)&&(_0x5685c3['parentNodeId']===null||_0x5685c3['side']===_0x338a2a(0x29b)),_0x50442e=_0x5685c3[_0x338a2a(0x1e6)]!==null&&_0x5685c3['side']!==_0x338a2a(0x29b)&&_0x5685c3[_0x338a2a(0x3b2)]!==_0x338a2a(0x365),_0x6e6f50=_0x2ad698||_0x50442e,_0x326de6=((_0x5bc367=_0x599672[_0x338a2a(0x5ab)])==null?void 0x0:_0x5bc367[_0x338a2a(0x3b0)])===_0x198fb4['elementData'][_0x338a2a(0x3b0)]&&_0x599672['context']['subUnitId']===_0x198fb4[_0x338a2a(0x1f4)]['subUnitId']&&_0x599672[_0x338a2a(0x369)]['length']?_0x599672[_0x338a2a(0x369)]:[_0x198fb4['elementData'][_0x338a2a(0x289)]],_0x3eebc3=this[_0x338a2a(0x2ab)](_0x198fb4['elementData'][_0x338a2a(0x3b0)],_0x198fb4[_0x338a2a(0x1f4)]['subUnitId'],_0x326de6);this[_0x338a2a(0x21a)]&&this[_0x338a2a(0x1f0)]===_0x3eebc3||(this[_0x338a2a(0x35a)](),this[_0x338a2a(0x21a)]=this['disposeWithMe'](this[_0x338a2a(0x2e8)][_0x338a2a(0x2fe)](_0x198fb4[_0x338a2a(0x1f4)]['unitId'],_0x198fb4[_0x338a2a(0x1f4)]['subUnitId'],_0x198fb4[_0x338a2a(0x402)],{'componentKey':_0x5dd790,'direction':_0x338a2a(0x38c),'offset':[0x0,0x8],..._0x6e6f50?{'anchorBoundResolver':_0x1a0d17}:null,'extraProps':{'unitId':_0x198fb4[_0x338a2a(0x1f4)][_0x338a2a(0x3b0)],'subUnitId':_0x198fb4['elementData'][_0x338a2a(0x363)],'elementId':_0x198fb4['elementData'][_0x338a2a(0x289)],'scopeId':_0x5685c3[_0x338a2a(0x2b3)],'isRootNode':_0x5685c3[_0x338a2a(0x1e6)]===null,'left':_0x198fb4[_0x338a2a(0x1f4)]['element'][_0x338a2a(0x485)][_0x338a2a(0x5c2)]??0x0,'top':_0x198fb4['elementData']['element'][_0x338a2a(0x485)][_0x338a2a(0x29b)]??0x0,'shapeData':_0x198fb4[_0x338a2a(0x1f4)][_0x338a2a(0x21f)][_0x338a2a(0x3b4)]===_0x22188d[_0x338a2a(0x41c)][_0x338a2a(0x53a)]?_0x198fb4[_0x338a2a(0x1f4)][_0x338a2a(0x21f)][_0x338a2a(0x376)]:void 0x0,'layout':_0x1a4e5e==null?void 0x0:_0x1a4e5e['layout'],'incomingConnectorStyle':this[_0x338a2a(0x405)](_0x198fb4[_0x338a2a(0x1f4)][_0x338a2a(0x3b0)],_0x198fb4['elementData'][_0x338a2a(0x363)],_0x5685c3[_0x338a2a(0x2b3)],_0x198fb4[_0x338a2a(0x1f4)]['elementId'])}})),this[_0x338a2a(0x1f0)]=_0x3eebc3);}[_0x2fba6e(0x4f0)](){const _0x325fc5=_0x2fba6e;var _0x2e86a6;let _0x3979c3=this[_0x325fc5(0x5a0)][_0x325fc5(0x39a)](),_0x3b2c63=_0x3979c3[_0x325fc5(0x5ab)],_0x5e4090=_0x3979c3[_0x325fc5(0x4e4)]??_0x3979c3[_0x325fc5(0x369)][0x0];if(!_0x3b2c63||!_0x5e4090)return null;let _0x29a569=this['_boardElementService'][_0x325fc5(0x2a0)](_0x3b2c63[_0x325fc5(0x3b0)],_0x3b2c63[_0x325fc5(0x363)],_0x5e4090);if(!_0x29a569||!(0x0,_0x6837b2[_0x325fc5(0x258)])(_0x29a569[_0x325fc5(0x21f)]))return null;let _0xfc8e89=(0x0,_0x23cfd0[_0x325fc5(0x285)])(_0x3b2c63[_0x325fc5(0x3b0)],_0x5e4090),_0x3de22b=this[_0x325fc5(0x595)][_0x325fc5(0x2fd)],_0x404f21=((_0x2e86a6=_0x3de22b[_0x325fc5(0x2d3)])==null?void 0x0:_0x2e86a6[_0x325fc5(0x3b6)](_0x3de22b,_0xfc8e89))??this[_0x325fc5(0x595)][_0x325fc5(0x2fd)][_0x325fc5(0x4a3)](_0xfc8e89);return _0x404f21?{'object':_0x404f21,'elementData':_0x29a569}:null;}[_0x2fba6e(0x268)](_0x29ffd5){const _0x1b4a2d=_0x2fba6e;var _0x308530;if(!_0x29ffd5)return null;let _0x5bc0eb=(0x0,_0x23cfd0[_0x1b4a2d(0x435)])(_0x29ffd5[_0x1b4a2d(0x589)]);if(!_0x5bc0eb)return null;let _0x449243=this['_elementStateService'][_0x1b4a2d(0x39a)](),_0xfce266=((_0x308530=_0x449243['context'])==null?void 0x0:_0x308530[_0x1b4a2d(0x3b0)])===_0x5bc0eb[_0x1b4a2d(0x3b0)]?_0x449243['context'][_0x1b4a2d(0x363)]:void 0x0;if(!_0xfce266)return null;let _0x43dd79=this[_0x1b4a2d(0x4ec)]['getElementById'](_0x5bc0eb['unitId'],_0xfce266,_0x5bc0eb[_0x1b4a2d(0x289)]);return _0x43dd79?{'object':_0x29ffd5,'elementData':_0x43dd79}:null;}};_0x5afa04=_0x19a741([_0x32dcf8(0x1,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x23cfd0['BoardCanvasPopManagerService'])),_0x32dcf8(0x2,(0x0,_0x3a2278['Inject'])(_0x22188d['IBoardElementService'])),_0x32dcf8(0x3,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x23cfd0[_0x2fba6e(0x3a4)])),_0x32dcf8(0x4,(0x0,_0x3a2278['Inject'])(_0x23cfd0['BoardTextEditingService'])),_0x32dcf8(0x5,(0x0,_0x3a2278['Inject'])(_0x23cfd0['BoardInteractionSurfaceService']))],_0x5afa04);let _0x293b04=_0x2fba6e(0x474),_0x333457=_0x23cfd0[_0x2fba6e(0x3e2)][_0x2fba6e(0x514)];var _0x278829=class extends _0x924b47[_0x2fba6e(0x3bb)]{constructor(_0x28c3e0=_0x293b04,_0x5bd751){const _0x585c53=_0x2fba6e;super(_0x28c3e0),_0x251ac6(this,'_state',{'point':null,'children':[]}),_0x251ac6(this,_0x585c53(0x483),null),this[_0x585c53(0x56b)]=!0x1,this['zIndex']=_0x23cfd0[_0x585c53(0x439)][_0x585c53(0x2e9)],this['updateState'](_0x5bd751);}[_0x2fba6e(0x2f4)](_0x4c209f){const _0xe127b=_0x2fba6e;let _0xdb4968=this[_0xe127b(0x432)];if(this[_0xe127b(0x432)]={..._0xdb4968,..._0x4c209f},!this['_preview']||_0xdb4968[_0xe127b(0x1f8)]!==this['_state'][_0xe127b(0x1f8)]||_0xdb4968['rootText']!==this[_0xe127b(0x432)][_0xe127b(0x3ed)]||_0xdb4968['branchLineType']!==this['_state'][_0xe127b(0x3cd)]||!_0x3a2278[_0xe127b(0x517)][_0xe127b(0x447)](_0xdb4968['children'],this[_0xe127b(0x432)][_0xe127b(0x2db)])||!_0x3a2278[_0xe127b(0x517)][_0xe127b(0x447)](_0xdb4968[_0xe127b(0x47a)],this[_0xe127b(0x432)][_0xe127b(0x47a)])){let _0x358903={'left':0x0,'top':0x0,'structureKind':this[_0xe127b(0x432)][_0xe127b(0x1f8)],'branchLineType':this['_state'][_0xe127b(0x3cd)]},_0x272fbe=this[_0xe127b(0x432)]['blueprint'];_0x272fbe&&this[_0xe127b(0x432)][_0xe127b(0x3ed)]&&(_0x272fbe={..._0x272fbe,'root':{..._0x272fbe['root'],'text':this['_state'][_0xe127b(0x3ed)]}}),this[_0xe127b(0x483)]=_0x272fbe?(0x0,_0x6837b2[_0xe127b(0x31d)])({..._0x358903,'blueprint':_0x272fbe}):(0x0,_0x6837b2['createMindMapElements'])({..._0x358903,'rootText':this['_state'][_0xe127b(0x3ed)],'children':this[_0xe127b(0x432)][_0xe127b(0x2db)]});}this[_0xe127b(0x432)][_0xe127b(0x200)]?this['show']():this[_0xe127b(0x33e)](),this[_0xe127b(0x2b5)](!0x0);}[_0x2fba6e(0x219)](_0x57611a){return!0x1;}[_0x2fba6e(0x1fa)](_0x94b53c){const _0x323249=_0x2fba6e;var _0x452c61,_0x47870e;return{'left':Math[_0x323249(0x51c)](_0x94b53c['x']-(((_0x452c61=this[_0x323249(0x483)])==null?void 0x0:_0x452c61[_0x323249(0x457)][_0x323249(0x485)][_0x323249(0x53b)])??_0x6837b2[_0x323249(0x585)]['rootWidth'])/0x2),'top':Math[_0x323249(0x51c)](_0x94b53c['y']-(((_0x47870e=this[_0x323249(0x483)])==null?void 0x0:_0x47870e['rootNode'][_0x323249(0x485)]['height'])??_0x6837b2['MIND_MAP_DEFAULT_NODE_SIZE'][_0x323249(0x298)])/0x2)};}[_0x2fba6e(0x251)](_0x220ca6,_0x4c98f0){const _0x1f2f39=_0x2fba6e;var _0x146fed;let _0x30f614=this['_state'][_0x1f2f39(0x200)],_0x116e26=this[_0x1f2f39(0x483)];if(!_0x30f614||!_0x116e26||!this[_0x1f2f39(0x33f)])return this[_0x1f2f39(0x2b5)](!0x1),this;let _0x5e8d7e=Number[_0x1f2f39(0x47e)](this['_state'][_0x1f2f39(0x3b3)])&&(this[_0x1f2f39(0x432)][_0x1f2f39(0x3b3)]??0x0)>0x0?this[_0x1f2f39(0x432)][_0x1f2f39(0x3b3)]:0x1,_0x1f6143=_0x116e26[_0x1f2f39(0x457)]['transform'][_0x1f2f39(0x53b)]??_0x6837b2[_0x1f2f39(0x585)]['rootWidth'],_0x53d88e=_0x116e26[_0x1f2f39(0x457)][_0x1f2f39(0x485)][_0x1f2f39(0x541)]??_0x6837b2['MIND_MAP_DEFAULT_NODE_SIZE'][_0x1f2f39(0x298)],_0x1a8275=this[_0x1f2f39(0x1fa)](_0x30f614),_0x440af6=_0x1a8275[_0x1f2f39(0x5c2)]-(_0x116e26[_0x1f2f39(0x457)][_0x1f2f39(0x485)][_0x1f2f39(0x5c2)]??0x0),_0x273708=_0x1a8275[_0x1f2f39(0x29b)]-(_0x116e26[_0x1f2f39(0x457)][_0x1f2f39(0x485)][_0x1f2f39(0x29b)]??0x0),_0x4c301f=_0x440af6-(_0x116e26['container'][_0x1f2f39(0x485)]['left']??0x0),_0x4ba70e=_0x273708-(_0x116e26[_0x1f2f39(0x403)][_0x1f2f39(0x485)][_0x1f2f39(0x29b)]??0x0);_0x220ca6[_0x1f2f39(0x489)](),_0x220ca6[_0x1f2f39(0x304)]=_0x11f202[_0x1f2f39(0x324)],_0x220ca6[_0x1f2f39(0x573)]=_0x11f202[_0x1f2f39(0x32b)]/_0x5e8d7e,_0x220ca6['strokeStyle']=_0x11f202['primaryColor'],_0x220ca6[_0x1f2f39(0x404)]();for(let _0x31dfb1 of((_0x146fed=_0x116e26['container'][_0x1f2f39(0x453)]['shapeData']['customGeometry'])==null?void 0x0:_0x146fed['pathLst'])??[])for(let _0x18cf3d of _0x31dfb1[_0x1f2f39(0x5e4)]??[]){let _0x252cff=Number(_0x18cf3d['points'][0x0])+_0x440af6,_0x195ae3=Number(_0x18cf3d[_0x1f2f39(0x26d)][0x1])+_0x273708;_0x18cf3d[_0x1f2f39(0x458)]==='M'?_0x220ca6[_0x1f2f39(0x564)](_0x252cff,_0x195ae3):_0x18cf3d[_0x1f2f39(0x458)]==='L'&&_0x220ca6[_0x1f2f39(0x3bd)](_0x252cff,_0x195ae3);}for(let _0x13112f of _0x116e26[_0x1f2f39(0x516)]){var _0x25b7e2;if(_0x13112f[_0x1f2f39(0x33f)]===!0x1)continue;let _0xafae96=_0x13112f[_0x1f2f39(0x4dd)],_0x35c1bc=_0xafae96[_0x1f2f39(0x5c8)][_0x1f2f39(0x520)]===_0x1f2f39(0x43c)?_0xafae96[_0x1f2f39(0x5c8)]:_0xafae96[_0x1f2f39(0x5c8)][_0x1f2f39(0x20b)],_0x1d0b12=_0xafae96['end'][_0x1f2f39(0x520)]===_0x1f2f39(0x43c)?_0xafae96[_0x1f2f39(0x3e6)]:_0xafae96[_0x1f2f39(0x3e6)][_0x1f2f39(0x20b)];if(!_0x35c1bc||!_0x1d0b12)continue;_0x220ca6['moveTo'](_0x35c1bc['x']+_0x4c301f,_0x35c1bc['y']+_0x4ba70e);let _0x290e73=(_0x25b7e2=_0xafae96[_0x1f2f39(0x218)])==null?void 0x0:_0x25b7e2[_0x1f2f39(0x548)];if(_0xafae96[_0x1f2f39(0x36a)]===_0x1f2f39(0x48b)&&_0x290e73&&_0x290e73[_0x1f2f39(0x333)]>=0x2)_0x220ca6[_0x1f2f39(0x231)](_0x290e73[0x0]['x']+_0x4c301f,_0x290e73[0x0]['y']+_0x4ba70e,_0x290e73[0x1]['x']+_0x4c301f,_0x290e73[0x1]['y']+_0x4ba70e,_0x1d0b12['x']+_0x4c301f,_0x1d0b12['y']+_0x4ba70e);else{var _0xc605b5;for(let _0x549016 of((_0xc605b5=_0xafae96[_0x1f2f39(0x32d)])==null?void 0x0:_0xc605b5[_0x1f2f39(0x4c9)])??[])_0x220ca6[_0x1f2f39(0x3bd)](_0x549016['x']+_0x4c301f,_0x549016['y']+_0x4ba70e);_0x220ca6[_0x1f2f39(0x3bd)](_0x1d0b12['x']+_0x4c301f,_0x1d0b12['y']+_0x4ba70e);}}_0x220ca6['stroke']();for(let _0x26eb0b of _0x116e26[_0x1f2f39(0x273)])_0x26eb0b['id']!==_0x116e26[_0x1f2f39(0x457)]['id']&&_0x26eb0b[_0x1f2f39(0x33f)]!==!0x1&&(_0x3b9dc6(_0x220ca6,_0x440af6+(_0x26eb0b[_0x1f2f39(0x485)][_0x1f2f39(0x5c2)]??0x0),_0x273708+(_0x26eb0b['transform'][_0x1f2f39(0x29b)]??0x0),_0x26eb0b[_0x1f2f39(0x485)][_0x1f2f39(0x53b)]??_0x6837b2[_0x1f2f39(0x585)][_0x1f2f39(0x239)],_0x26eb0b[_0x1f2f39(0x485)][_0x1f2f39(0x541)]??_0x6837b2[_0x1f2f39(0x585)]['nodeHeight'],_0x11f202[_0x1f2f39(0x32f)]),_0x220ca6[_0x1f2f39(0x57f)]=_0x11f202[_0x1f2f39(0x271)],_0x220ca6[_0x1f2f39(0x23b)](),_0x220ca6[_0x1f2f39(0x58b)]());_0x3b9dc6(_0x220ca6,_0x1a8275[_0x1f2f39(0x5c2)],_0x1a8275[_0x1f2f39(0x29b)],_0x1f6143,_0x53d88e,_0x11f202['rootRadius']),_0x220ca6[_0x1f2f39(0x57f)]=_0x11f202[_0x1f2f39(0x388)],_0x220ca6[_0x1f2f39(0x23b)](),_0x220ca6[_0x1f2f39(0x58b)](),_0x220ca6[_0x1f2f39(0x57f)]=_0x11f202['rootTextColor'],_0x220ca6[_0x1f2f39(0x54c)]=_0x2a3ac3(_0x11f202['rootFontWeight'],_0x11f202[_0x1f2f39(0x478)],_0x5e8d7e),_0x220ca6['textAlign']=_0x1f2f39(0x58d),_0x220ca6['textBaseline']=_0x1f2f39(0x371);let _0x24fffc=_0x11f202[_0x1f2f39(0x274)]/_0x5e8d7e;return _0x220ca6[_0x1f2f39(0x52a)](_0x6837b2[_0x1f2f39(0x354)],_0x1a8275[_0x1f2f39(0x5c2)]+_0x1f6143/0x2,_0x1a8275[_0x1f2f39(0x29b)]+_0x53d88e/0x2,Math['max'](0x1,_0x1f6143-_0x24fffc*0x2)),_0x220ca6[_0x1f2f39(0x4e1)](),this[_0x1f2f39(0x2b5)](!0x1),this;}};let _0x24947d={'children':[{'text':_0x6837b2[_0x2fba6e(0x354)],'orderKey':(0x0,_0x6837b2[_0x2fba6e(0x1e0)])(0x0),'side':_0x2fba6e(0x40d)},{'text':_0x6837b2[_0x2fba6e(0x354)],'orderKey':(0x0,_0x6837b2[_0x2fba6e(0x1e0)])(0x1),'side':_0x2fba6e(0x40d)},{'text':_0x6837b2['MIND_MAP_DEFAULT_NODE_TEXT'],'orderKey':(0x0,_0x6837b2[_0x2fba6e(0x1e0)])(0x2),'side':_0x2fba6e(0x40d)}]};var _0x218570=class extends _0x3a2278[_0x2fba6e(0x328)]{constructor(..._0x52b5d9){const _0x586fc9=_0x2fba6e;super(..._0x52b5d9),_0x251ac6(this,_0x586fc9(0x560),_0x24947d);}[_0x2fba6e(0x5c0)](_0x21a701){const _0x4a4356=_0x2fba6e;var _0x6dd93b;let _0x96da0f=(_0x21a701==null?void 0x0:_0x21a701[_0x4a4356(0x2db)])??(_0x21a701==null||(_0x6dd93b=_0x21a701[_0x4a4356(0x47a)])==null?void 0x0:_0x6dd93b['root'][_0x4a4356(0x2db)]);this[_0x4a4356(0x560)]={'rootText':_0x21a701==null?void 0x0:_0x21a701[_0x4a4356(0x3ed)],'structureKind':_0x21a701==null?void 0x0:_0x21a701[_0x4a4356(0x1f8)],'branchLineType':_0x21a701==null?void 0x0:_0x21a701[_0x4a4356(0x3cd)],'children':this[_0x4a4356(0x2ff)](_0x96da0f,_0x21a701==null?void 0x0:_0x21a701[_0x4a4356(0x1f8)]),'blueprint':_0x21a701!=null&&_0x21a701[_0x4a4356(0x47a)]?this['_cloneBlueprint'](_0x21a701[_0x4a4356(0x47a)]):void 0x0};}['getTemplate'](){const _0xfc1e86=_0x2fba6e;var _0x3a0eb5;return{'rootText':this[_0xfc1e86(0x560)][_0xfc1e86(0x3ed)],'structureKind':this[_0xfc1e86(0x560)][_0xfc1e86(0x1f8)],'branchLineType':this[_0xfc1e86(0x560)][_0xfc1e86(0x3cd)],'children':(_0x3a0eb5=this[_0xfc1e86(0x560)]['children'])==null?void 0x0:_0x3a0eb5['map'](_0x193d1c=>({..._0x193d1c})),'blueprint':this[_0xfc1e86(0x560)][_0xfc1e86(0x47a)]?this[_0xfc1e86(0x267)](this[_0xfc1e86(0x560)]['blueprint']):void 0x0};}[_0x2fba6e(0x267)](_0x30894b){const _0x6a8781=_0x2fba6e;return{'title':_0x30894b[_0x6a8781(0x4b7)],'root':this[_0x6a8781(0x314)](_0x30894b['root'])};}[_0x2fba6e(0x314)](_0x18ab21){const _0x1d7d4d=_0x2fba6e;return{..._0x18ab21,'foreignAttributes':_0x18ab21[_0x1d7d4d(0x4ed)]?{..._0x18ab21[_0x1d7d4d(0x4ed)]}:void 0x0,'children':_0x18ab21[_0x1d7d4d(0x2db)][_0x1d7d4d(0x3ff)](_0x2aecaf=>this[_0x1d7d4d(0x314)](_0x2aecaf))};}[_0x2fba6e(0x2ff)](_0xcee057,_0x52753a){const _0x7cf629=_0x2fba6e;let _0x5bfe6e=!_0xcee057,_0x28540c=_0xcee057??_0x24947d[_0x7cf629(0x2db)];return _0x28540c==null?void 0x0:_0x28540c[_0x7cf629(0x3ff)]((_0x76e6cb,_0x58f83c)=>({..._0x76e6cb,'text':_0x76e6cb[_0x7cf629(0x2e1)]??_0x6837b2['MIND_MAP_DEFAULT_NODE_TEXT'],'side':this['_resolveChildSide'](_0x76e6cb[_0x7cf629(0x3b2)],_0x58f83c,_0x52753a,_0x5bfe6e)}));}[_0x2fba6e(0x410)](_0x5e5788,_0x49703a,_0x37d3ef,_0x10771c){const _0x18552a=_0x2fba6e;return _0x37d3ef==='mindmap-vertical'?_0x10771c?_0x18552a(0x365):_0x5e5788??_0x18552a(0x365):_0x37d3ef==='tree-left'?_0x10771c?_0x18552a(0x5c2):_0x5e5788??_0x18552a(0x5c2):_0x37d3ef===_0x18552a(0x2cc)?_0x10771c?_0x18552a(0x40d):_0x5e5788??_0x18552a(0x40d):_0x37d3ef===_0x18552a(0x25c)?_0x10771c?_0x49703a%0x2==0x0?_0x18552a(0x5c2):'right':_0x5e5788??(_0x49703a%0x2==0x0?_0x18552a(0x5c2):'right'):_0x37d3ef==='timeline-horizontal'?_0x10771c?_0x49703a%0x2==0x0?'top':_0x18552a(0x365):_0x5e5788??(_0x49703a%0x2==0x0?'top':_0x18552a(0x365)):_0x37d3ef===_0x18552a(0x216)?_0x10771c?_0x49703a%0x2==0x0?_0x18552a(0x5c2):_0x18552a(0x40d):_0x5e5788??(_0x49703a%0x2==0x0?_0x18552a(0x5c2):'right'):_0x5e5788;}};function _0x478f0e(_0x161936,_0x101391){const _0x53fc6c=_0x2fba6e;let _0x5e3648=Number[_0x53fc6c(0x47e)](_0x101391['zoomRatio'])&&_0x101391['zoomRatio']>0x0?_0x101391[_0x53fc6c(0x3b3)]:0x1;return{'x':Math[_0x53fc6c(0x51c)]((_0x161936[_0x53fc6c(0x44a)]-_0x101391[_0x53fc6c(0x568)]['x'])/_0x5e3648),'y':Math[_0x53fc6c(0x51c)]((_0x161936[_0x53fc6c(0x2d0)]-_0x101391['panOffset']['y'])/_0x5e3648)};}function _0x362be4(_0x1d613d){const _0x83e9e5=_0x2fba6e;var _0x43e0f3;_0x1d613d!=null&&_0x1d613d[_0x83e9e5(0x450)]?_0x1d613d[_0x83e9e5(0x450)]():_0x1d613d==null||(_0x43e0f3=_0x1d613d[_0x83e9e5(0x50b)])==null||_0x43e0f3[_0x83e9e5(0x3b6)](_0x1d613d);}function _0x5a4b55(_0x432f44){const _0x50ee1f=_0x2fba6e;var _0x88bed1;return _0x432f44['activeTool']===_0x22188d['BoardToolType'][_0x50ee1f(0x2dc)]&&((_0x88bed1=_0x432f44[_0x50ee1f(0x45c)])==null?void 0x0:_0x88bed1[_0x50ee1f(0x3b4)])===_0x22188d[_0x50ee1f(0x2c0)][_0x50ee1f(0x2dc)];}let _0x31b33f=class extends _0x3a2278[_0x2fba6e(0x22d)]{constructor(_0x207cdf,_0x464a73,_0x23e7dc,_0x4164a8,_0x3b701a,_0x506ec5,_0x5eb411){const _0x30a8e7=_0x2fba6e;super(),this[_0x30a8e7(0x595)]=_0x207cdf,this['_instanceSrv']=_0x464a73,this[_0x30a8e7(0x471)]=_0x23e7dc,this['_commandService']=_0x4164a8,this['_insertStateService']=_0x3b701a,this[_0x30a8e7(0x5a0)]=_0x506ec5,this[_0x30a8e7(0x3aa)]=_0x5eb411,_0x251ac6(this,_0x30a8e7(0x2a4),null),_0x251ac6(this,_0x30a8e7(0x246),null),this[_0x30a8e7(0x374)]();}[_0x2fba6e(0x374)](){const _0x1736d3=_0x2fba6e;var _0x5000d8;let {scene:_0x2f9e87,unitId:_0x1cb9d2}=this[_0x1736d3(0x595)],_0x23a4a0=this[_0x1736d3(0x5a5)]['getUnit'](_0x1cb9d2,_0x3a2278[_0x1736d3(0x1f1)][_0x1736d3(0x309)]);if(!_0x23a4a0)return;let _0xb16f1b=(_0x5000d8=_0x2f9e87[_0x1736d3(0x57c)])==null?void 0x0:_0x5000d8[_0x1736d3(0x1e1)]({'priority':0x4,'next':([_0x89c7ad,_0x56157a])=>this['_handlePointerMove'](_0x89c7ad,_0x56157a)}),_0x478569=_0x2f9e87['onPointerDown$'][_0x1736d3(0x1e1)]({'priority':0x4,'next':([_0x5554b1,_0x5f42a3])=>this['_handlePointerDown'](_0x23a4a0,_0x5554b1,_0x5f42a3)});this[_0x1736d3(0x417)]((0x0,_0x3a2278[_0x1736d3(0x3af)])(()=>_0x362be4(_0xb16f1b))),this[_0x1736d3(0x417)]((0x0,_0x3a2278['toDisposable'])(()=>_0x362be4(_0x478569)));let _0x47a2db=this[_0x1736d3(0x471)][_0x1736d3(0x1ea)]['subscribe'](()=>this[_0x1736d3(0x288)]());this['disposeWithMe']((0x0,_0x3a2278[_0x1736d3(0x3af)])(()=>_0x362be4(_0x47a2db))),this['disposeWithMe']((0x0,_0x3a2278[_0x1736d3(0x3af)])(()=>{const _0x344fb9=_0x1736d3;this[_0x344fb9(0x20e)]();})),this[_0x1736d3(0x288)]();}['_syncPreviewObject'](){const _0x1d48da=_0x2fba6e;var _0x51e723,_0x3489de;let _0xb6c181=this[_0x1d48da(0x471)][_0x1d48da(0x3ca)]();if(!_0x5a4b55(_0xb6c181)){this[_0x1d48da(0x20e)]();return;}let _0x110531=this[_0x1d48da(0x3b8)](),_0x25c7b9=this['_insertStateService']['getTemplate']();_0x110531[_0x1d48da(0x2f4)]({'point':this['_lastPoint'],'structureKind':_0x25c7b9[_0x1d48da(0x1f8)],'rootText':_0x25c7b9['rootText'],'branchLineType':_0x25c7b9[_0x1d48da(0x3cd)],'children':_0x25c7b9['children'],'blueprint':_0x25c7b9[_0x1d48da(0x47a)],'zoomRatio':_0xb6c181['zoomRatio']}),(_0x51e723=(_0x3489de=this[_0x1d48da(0x595)][_0x1d48da(0x2fd)])['makeDirty'])==null||_0x51e723['call'](_0x3489de,!0x0);}[_0x2fba6e(0x3b8)](){const _0x5594a9=_0x2fba6e;var _0x3d9f52,_0x1064b3;if(this[_0x5594a9(0x2a4)])return this['_previewObject'];let _0x55a0a6=this[_0x5594a9(0x30d)][_0x5594a9(0x4da)](),_0x5398dc=new _0x278829(_0x293b04,{'point':this[_0x5594a9(0x246)],'structureKind':_0x55a0a6['structureKind'],'rootText':_0x55a0a6[_0x5594a9(0x3ed)],'branchLineType':_0x55a0a6['branchLineType'],'children':_0x55a0a6['children'],'blueprint':_0x55a0a6[_0x5594a9(0x47a)],'zoomRatio':this[_0x5594a9(0x471)][_0x5594a9(0x3ca)]()[_0x5594a9(0x3b3)]});return this[_0x5594a9(0x2a4)]=_0x5398dc,(_0x3d9f52=(_0x1064b3=this[_0x5594a9(0x595)][_0x5594a9(0x2fd)])[_0x5594a9(0x48f)])==null||_0x3d9f52[_0x5594a9(0x3b6)](_0x1064b3,_0x5398dc,_0x333457),_0x5398dc;}[_0x2fba6e(0x20e)](){const _0x5a33af=_0x2fba6e;var _0x56432e,_0x26fe55,_0x46933e,_0x15a4ba;this['_previewObject']?((_0x56432e=(_0x26fe55=this['_renderContext'][_0x5a33af(0x2fd)])[_0x5a33af(0x510)])==null||_0x56432e['call'](_0x26fe55,[this[_0x5a33af(0x2a4)]]),this[_0x5a33af(0x2a4)]=null,this[_0x5a33af(0x246)]=null,(_0x46933e=(_0x15a4ba=this['_renderContext'][_0x5a33af(0x2fd)])['makeDirty'])==null||_0x46933e['call'](_0x15a4ba,!0x0)):this[_0x5a33af(0x246)]=null;}[_0x2fba6e(0x451)](_0x3daafa){const _0x51a172=_0x2fba6e;let _0x2c7ee0=this[_0x51a172(0x471)]['getState']();return _0x478f0e(_0x3daafa,{'panOffset':_0x2c7ee0['viewportPanOffset'],'zoomRatio':_0x2c7ee0[_0x51a172(0x3b3)]});}[_0x2fba6e(0x52f)](_0x3cc26c,_0x5b5dcf){const _0x57e1f6=_0x2fba6e;_0x5a4b55(this['_stateService'][_0x57e1f6(0x3ca)]())&&(this[_0x57e1f6(0x246)]=this[_0x57e1f6(0x451)](_0x3cc26c),this['_syncPreviewObject'](),_0x5b5dcf[_0x57e1f6(0x55e)]());}async[_0x2fba6e(0x262)](_0x17e95b,_0x28db7f,_0x564a07){const _0x4642d0=_0x2fba6e;let _0x2e1381=await this[_0x4642d0(0x562)](_0x17e95b,_0x28db7f,_0x564a07);if(!_0x2e1381)return;let _0x56d073={'unitId':this[_0x4642d0(0x595)][_0x4642d0(0x3b0)],'subUnitId':_0x2e1381[_0x4642d0(0x363)]};this[_0x4642d0(0x3aa)][_0x4642d0(0x463)](),this[_0x4642d0(0x3aa)]['setEditing']({..._0x56d073,'shapeId':_0x2e1381[_0x4642d0(0x3ee)],'shapeKey':(0x0,_0x23cfd0['getBoardElementRenderObjectKey'])(_0x56d073['unitId'],_0x2e1381[_0x4642d0(0x3ee)]),'visible':!0x0});}async[_0x2fba6e(0x562)](_0x25f9b2,_0x2d1312,_0x5e1514){const _0x37845b=_0x2fba6e;var _0x1c3de7;let _0x3cd205=this[_0x37845b(0x471)][_0x37845b(0x3ca)](),_0xd2f0cd=_0x2d1312[_0x37845b(0x438)]??0x0;if(!_0x5a4b55(_0x3cd205)||_0xd2f0cd!==0x0)return null;let _0x5f6807=this[_0x37845b(0x451)](_0x2d1312);this[_0x37845b(0x246)]=_0x5f6807,this[_0x37845b(0x288)]();let _0x390202=this['_ensurePreviewObject']()[_0x37845b(0x1fa)](_0x5f6807),_0x4b2fd3=this['_insertStateService']['getTemplate'](),_0x33dc2d=(0x0,_0x3a2278[_0x37845b(0x243)])(0x6),_0x2e3fa4=_0x25f9b2['getActivePageId'](),_0xbc54a5=this[_0x37845b(0x4a0)][_0x37845b(0x4ad)](_0x6837b2[_0x37845b(0x33c)]['id'],{'unitId':this[_0x37845b(0x595)][_0x37845b(0x3b0)],'subUnitId':_0x2e3fa4,'left':_0x390202[_0x37845b(0x5c2)],'top':_0x390202[_0x37845b(0x29b)],'rootNodeId':_0x33dc2d,'rootText':_0x4b2fd3[_0x37845b(0x3ed)],'structureKind':_0x4b2fd3['structureKind'],'branchLineType':_0x4b2fd3[_0x37845b(0x3cd)],'children':_0x4b2fd3[_0x37845b(0x2db)],'blueprint':_0x4b2fd3[_0x37845b(0x47a)]});if(this[_0x37845b(0x471)]['setActiveTool'](_0x22188d[_0x37845b(0x2c0)][_0x37845b(0x407)]),_0x5e1514['stopPropagation'](),(_0x1c3de7=_0x2d1312[_0x37845b(0x40b)])==null||_0x1c3de7[_0x37845b(0x3b6)](_0x2d1312),!await _0xbc54a5||this['_disposed'])return null;let _0x52ee8c={'unitId':this['_renderContext']['unitId'],'subUnitId':_0x2e3fa4};return this[_0x37845b(0x5a0)][_0x37845b(0x382)](_0x52ee8c,[_0x33dc2d],_0x33dc2d),{'rootNodeId':_0x33dc2d,'subUnitId':_0x2e3fa4};}};_0x31b33f=_0x19a741([_0x32dcf8(0x1,_0x3a2278[_0x2fba6e(0x5da)]),_0x32dcf8(0x2,_0x23cfd0[_0x2fba6e(0x2ef)]),_0x32dcf8(0x3,_0x3a2278[_0x2fba6e(0x4c8)]),_0x32dcf8(0x4,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x218570)),_0x32dcf8(0x5,_0x23cfd0[_0x2fba6e(0x3a4)]),_0x32dcf8(0x6,(0x0,_0x3a2278['Inject'])(_0x23cfd0[_0x2fba6e(0x36f)]))],_0x31b33f);var _0x11978c=class extends _0x3a2278[_0x2fba6e(0x328)]{constructor(..._0x4ed561){const _0x7cd88f=_0x2fba6e;super(..._0x4ed561),_0x251ac6(this,_0x7cd88f(0x3b9),new _0x45614e['Subject']()),_0x251ac6(this,_0x7cd88f(0x35d),this[_0x7cd88f(0x3b9)][_0x7cd88f(0x2d2)]());}[_0x2fba6e(0x55d)](_0x3b9885){const _0x3acd3e=_0x2fba6e;this[_0x3acd3e(0x3b9)][_0x3acd3e(0x30a)](_0x3b9885);}[_0x2fba6e(0x450)](){const _0x306bdd=_0x2fba6e;this['_refresh$'][_0x306bdd(0x24a)](),super[_0x306bdd(0x450)]();}};function _0x22d770(_0x201bf5){const _0x1c4616=_0x2fba6e;return typeof _0x201bf5==_0x1c4616(0x5cc)&&Number[_0x1c4616(0x47e)](_0x201bf5)&&_0x201bf5>0x0;}function _0x5d196b(_0x411190,_0x1e0a20,_0x44fb27){const _0x444f9c=_0x2fba6e;let _0x16a036=_0x411190[_0x1e0a20],_0x2ccfac=(0x0,_0x6837b2[_0x444f9c(0x258)])(_0x16a036==null?void 0x0:_0x16a036[_0x444f9c(0x21f)]);if(!_0x16a036||!_0x2ccfac)return null;let _0x548b2e=(0x0,_0x6837b2[_0x444f9c(0x2c4)])(_0x16a036,_0x44fb27);if(!_0x548b2e)return null;let _0x32ad90=_0x16a036[_0x444f9c(0x485)]??_0x16a036[_0x444f9c(0x21f)][_0x444f9c(0x485)],_0x59d812={..._0x411190,[_0x1e0a20]:{..._0x16a036,'transform':{..._0x32ad90,'width':_0x548b2e[_0x444f9c(0x53b)],'height':_0x548b2e[_0x444f9c(0x541)]},'element':{..._0x16a036[_0x444f9c(0x21f)],'transform':{..._0x16a036[_0x444f9c(0x21f)]['transform'],'width':_0x548b2e[_0x444f9c(0x53b)],'height':_0x548b2e['height']}}}};return(0x0,_0x6837b2['resolveMindMapLayoutPreview'])(_0x59d812,_0x2ccfac[_0x444f9c(0x2b3)]);}let _0x22ca15=class extends _0x3a2278[_0x2fba6e(0x22d)]{constructor(_0x286072,_0x31fae6,_0x596720,_0x58a0d3,_0xff705d,_0x594321){const _0x1637c2=_0x2fba6e;super(),this[_0x1637c2(0x595)]=_0x286072,this[_0x1637c2(0x387)]=_0x31fae6,this[_0x1637c2(0x4ec)]=_0x596720,this[_0x1637c2(0x428)]=_0x58a0d3,this[_0x1637c2(0x499)]=_0xff705d,this['_commandService']=_0x594321,_0x251ac6(this,_0x1637c2(0x426),null),_0x251ac6(this,_0x1637c2(0x527),{'match':_0x535de6=>_0x535de6['unitId']===this[_0x1637c2(0x595)]['unitId']&&!!(0x0,_0x6837b2['getMindMapNodeMeta'])(_0x535de6['element']),'resolveHostSize':_0x68abfa=>this[_0x1637c2(0x39c)](_0x68abfa),'previewHostSize':_0x2963f6=>this['_previewHostSize'](_0x2963f6),'updateHostSize':_0x7e5133=>this[_0x1637c2(0x49f)](_0x7e5133),'updateShapeText':_0x47dced=>this[_0x1637c2(0x534)](_0x47dced)}),this['disposeWithMe'](this[_0x1637c2(0x387)]['registerProvider'](this[_0x1637c2(0x527)])),this[_0x1637c2(0x433)](),this[_0x1637c2(0x417)]((0x0,_0x3a2278['toDisposable'])(()=>this[_0x1637c2(0x5d0)]()));}[_0x2fba6e(0x49f)](_0x488df5){return this['_previewHostSize'](_0x488df5);}[_0x2fba6e(0x534)](_0x2d417a){const _0x1b8f42=_0x2fba6e;let _0x2812ed=_0x2d417a[_0x1b8f42(0x2e0)][_0x1b8f42(0x277)]?this['_resolveHostSize']({'elementData':_0x2d417a[_0x1b8f42(0x1f4)],'params':_0x2d417a[_0x1b8f42(0x2e0)][_0x1b8f42(0x277)]}):null,_0x33acf4=_0x2d417a[_0x1b8f42(0x1f4)][_0x1b8f42(0x485)]??_0x2d417a[_0x1b8f42(0x1f4)][_0x1b8f42(0x21f)][_0x1b8f42(0x485)];return(!_0x2812ed||_0x2812ed[_0x1b8f42(0x53b)]===_0x33acf4['width']&&_0x2812ed[_0x1b8f42(0x541)]===_0x33acf4[_0x1b8f42(0x541)])&&(0x0,_0x23cfd0['areBoardShapeTextValuesEquivalent'])(_0x2d417a[_0x1b8f42(0x2e0)]['shapeText'],_0x2d417a[_0x1b8f42(0x2e0)][_0x1b8f42(0x47b)])?!0x0:this[_0x1b8f42(0x4a0)][_0x1b8f42(0x241)](_0x6837b2[_0x1b8f42(0x2f9)]['id'],{'unitId':_0x2d417a[_0x1b8f42(0x2e0)]['unitId'],'subUnitId':_0x2d417a[_0x1b8f42(0x2e0)]['subUnitId'],'nodeId':_0x2d417a[_0x1b8f42(0x2e0)][_0x1b8f42(0x2f1)],'shapeText':_0x2d417a['params'][_0x1b8f42(0x252)],..._0x2812ed?{'hostSize':{'width':_0x2812ed[_0x1b8f42(0x53b)],'height':_0x2812ed['height']}}:null});}[_0x2fba6e(0x340)](_0x5a38ed){const _0x52306e=_0x2fba6e;let _0x45569a=this[_0x52306e(0x39c)](_0x5a38ed);if(!_0x45569a)return!0x1;let _0x4a8ddc=_0x5a38ed['elementData'][_0x52306e(0x485)]??_0x5a38ed[_0x52306e(0x1f4)]['element'][_0x52306e(0x485)];return!this[_0x52306e(0x426)]&&_0x4a8ddc[_0x52306e(0x53b)]===_0x45569a[_0x52306e(0x53b)]&&_0x4a8ddc[_0x52306e(0x541)]===_0x45569a[_0x52306e(0x541)]||this[_0x52306e(0x2da)](_0x5a38ed,_0x45569a),!0x0;}[_0x2fba6e(0x39c)](_0x159c44){const _0x384d19=_0x2fba6e;return!_0x22d770(_0x159c44[_0x384d19(0x2e0)]['width'])||!_0x22d770(_0x159c44[_0x384d19(0x2e0)]['height'])?null:(0x0,_0x6837b2[_0x384d19(0x2c4)])(_0x159c44[_0x384d19(0x1f4)],{'width':_0x159c44['params'][_0x384d19(0x53b)],'height':_0x159c44['params']['height']});}['_initEditingRestore'](){const _0x1756db=_0x2fba6e;this['disposeWithMe']((0x0,_0x3a2278[_0x1756db(0x3af)])(this['_textEditingService'][_0x1756db(0x3cc)]['pipe']((0x0,_0x45614e['takeUntil'])(this[_0x1756db(0x4e8)]))[_0x1756db(0x55f)](_0x5e3242=>{const _0x572d41=_0x1756db;_0x5e3242||this[_0x572d41(0x5d0)]();})));}[_0x2fba6e(0x2da)](_0x417d01,_0x2d9513){const _0x51cd79=_0x2fba6e;var _0x56d955;let _0x417794=this[_0x51cd79(0x4ec)][_0x51cd79(0x5d8)](_0x417d01[_0x51cd79(0x2e0)][_0x51cd79(0x3b0)],_0x417d01[_0x51cd79(0x2e0)][_0x51cd79(0x363)]),_0x4f78f4=_0x5d196b(_0x417794,_0x417d01[_0x51cd79(0x2e0)][_0x51cd79(0x2f1)],_0x2d9513),_0x1cd8a3=(0x0,_0x6837b2[_0x51cd79(0x258)])((_0x56d955=_0x417794[_0x417d01[_0x51cd79(0x2e0)][_0x51cd79(0x2f1)]])==null?void 0x0:_0x56d955[_0x51cd79(0x21f)]);_0x4f78f4&&_0x1cd8a3&&(this[_0x51cd79(0x426)]={'unitId':_0x417d01[_0x51cd79(0x2e0)]['unitId'],'subUnitId':_0x417d01[_0x51cd79(0x2e0)][_0x51cd79(0x363)],'scopeId':_0x1cd8a3[_0x51cd79(0x2b3)]},this[_0x51cd79(0x4bd)](_0x4f78f4,_0x1cd8a3['structureScopeId'])&&this[_0x51cd79(0x499)][_0x51cd79(0x55d)]({'unitId':_0x417d01['params'][_0x51cd79(0x3b0)],'subUnitId':_0x417d01[_0x51cd79(0x2e0)][_0x51cd79(0x363)],'nodeId':_0x417d01[_0x51cd79(0x2e0)]['shapeId'],'scopeId':_0x1cd8a3[_0x51cd79(0x2b3)]}));}['_restoreActivePreview'](){const _0x2d666c=_0x2fba6e;let _0x1aa14a=this['_activePreview'];if(!_0x1aa14a)return;this['_activePreview']=null;let _0x4efbe8=this[_0x2d666c(0x4ec)][_0x2d666c(0x5d8)](_0x1aa14a[_0x2d666c(0x3b0)],_0x1aa14a[_0x2d666c(0x363)]);this[_0x2d666c(0x4bd)](_0x4efbe8,_0x1aa14a[_0x2d666c(0x5c3)])&&this[_0x2d666c(0x499)][_0x2d666c(0x55d)]({'unitId':_0x1aa14a['unitId'],'subUnitId':_0x1aa14a[_0x2d666c(0x363)],'nodeId':_0x1aa14a[_0x2d666c(0x5c3)],'scopeId':_0x1aa14a[_0x2d666c(0x5c3)]});}[_0x2fba6e(0x4bd)](_0x3356d5,_0x311116){const _0x239ed9=_0x2fba6e;let _0x446c19=!0x1;if(Object[_0x239ed9(0x2dd)](_0x3356d5)[_0x239ed9(0x3d8)](_0x46b7ff=>{const _0x35a4ed=_0x239ed9;var _0x2234d1;let _0x41d2d2=(0x0,_0x6837b2[_0x35a4ed(0x258)])(_0x46b7ff[_0x35a4ed(0x21f)]),_0x190b44=(_0x2234d1=_0x46b7ff[_0x35a4ed(0x21f)][_0x35a4ed(0x214)])==null?void 0x0:_0x2234d1[_0x35a4ed(0x5e7)];if(_0x46b7ff[_0x35a4ed(0x289)]!==_0x311116&&(_0x41d2d2==null?void 0x0:_0x41d2d2[_0x35a4ed(0x2b3)])!==_0x311116&&(_0x190b44==null?void 0x0:_0x190b44[_0x35a4ed(0x2b3)])!==_0x311116)return;let _0x2d3310=this[_0x35a4ed(0x4b6)](_0x46b7ff['elementId']);_0x2d3310&&(_0x446c19=(0x0,_0x23cfd0[_0x35a4ed(0x47d)])(_0x2d3310,_0x46b7ff,{'elementData':_0x3356d5,'unitId':this[_0x35a4ed(0x595)][_0x35a4ed(0x3b0)]})||_0x446c19);}),_0x446c19){var _0x5d26b2,_0x1debe4;this[_0x239ed9(0x595)][_0x239ed9(0x2fd)][_0x239ed9(0x2b5)](!0x0),(_0x5d26b2=(_0x1debe4=this['_renderContext'][_0x239ed9(0x2fd)])['requestRender'])==null||_0x5d26b2[_0x239ed9(0x3b6)](_0x1debe4);}return _0x446c19;}[_0x2fba6e(0x4b6)](_0x4c71a7){const _0xc836bf=_0x2fba6e;var _0x2a5bfa;let _0x2e79b3=(0x0,_0x23cfd0[_0xc836bf(0x285)])(this[_0xc836bf(0x595)]['unitId'],_0x4c71a7),_0x30a44d=this['_renderContext'][_0xc836bf(0x2fd)];return((_0x2a5bfa=_0x30a44d[_0xc836bf(0x2d3)])==null?void 0x0:_0x2a5bfa[_0xc836bf(0x3b6)](_0x30a44d,_0x2e79b3))??this['_renderContext'][_0xc836bf(0x2fd)][_0xc836bf(0x4a3)](_0x2e79b3)??null;}};_0x22ca15=_0x19a741([_0x32dcf8(0x1,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x23cfd0[_0x2fba6e(0x448)])),_0x32dcf8(0x2,(0x0,_0x3a2278['Inject'])(_0x22188d[_0x2fba6e(0x37e)])),_0x32dcf8(0x3,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x23cfd0['BoardTextEditingService'])),_0x32dcf8(0x4,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x11978c)),_0x32dcf8(0x5,_0x3a2278[_0x2fba6e(0x4c8)])],_0x22ca15);let _0x29ff9d={'touchHitRadius':0x16,'radius':0x12,'addChildRadius':0xe,'siblingHoverRadius':0xa,'siblingDotRadius':0x5,'siblingDotGap':0x3,'gap':0xa,'collapsePlusMinDistance':0x2c,'primaryColor':_0x1187c2['primaryColor'],'surfaceColor':_0x1187c2[_0x2fba6e(0x4ae)],'borderWidth':0x2,'glyphSize':0x8,'addChildGlyphSize':0x6,'siblingGlyphSize':5.5,'glyphWidth':2.4,'glyphHoverWidth':0x3,'badgeFontWeight':0x258,'badgeFontSize':0x12,'fontFamily':_0x1187c2[_0x2fba6e(0x3ec)]};function _0x257503(_0x41a535){const _0x13ded4=_0x2fba6e;let _0x40098f=_0x29ff9d[_0x13ded4(0x2a3)],_0x308366=_0x29ff9d[_0x13ded4(0x523)],_0x48d597=_0x29ff9d[_0x13ded4(0x56a)],_0x5a5c00=_0x29ff9d['gap'],_0x330205=_0x29ff9d[_0x13ded4(0x4cb)],_0x54c9b9=_0x330205+_0x29ff9d[_0x13ded4(0x4a7)],_0x24c9e9=_0x29ff9d[_0x13ded4(0x4c1)],_0x307c73=_0x41a535[_0x13ded4(0x327)][_0x13ded4(0x29b)]+_0x41a535[_0x13ded4(0x327)][_0x13ded4(0x541)]/0x2,_0x25a18b=_0x41a535['bounds']['left']+_0x41a535[_0x13ded4(0x327)][_0x13ded4(0x53b)]/0x2,_0x55cd6f=_0x41a535[_0x13ded4(0x327)]['left']-_0x40098f-_0x5a5c00,_0x2930a6=_0x41a535[_0x13ded4(0x327)][_0x13ded4(0x5c2)]+_0x41a535[_0x13ded4(0x327)][_0x13ded4(0x53b)]+_0x40098f+_0x5a5c00,_0x1e7543=_0x41a535[_0x13ded4(0x327)][_0x13ded4(0x29b)]-_0x40098f-_0x5a5c00,_0x53ada5=_0x41a535[_0x13ded4(0x327)]['top']+_0x41a535[_0x13ded4(0x327)]['height']+_0x40098f+_0x5a5c00,_0x50c8f5=_0x41a535[_0x13ded4(0x327)]['left']-_0x308366-_0x5a5c00,_0x59622c=_0x41a535[_0x13ded4(0x327)][_0x13ded4(0x5c2)]+_0x41a535[_0x13ded4(0x327)][_0x13ded4(0x53b)]+_0x308366+_0x5a5c00,_0x5cdcb4=_0x41a535[_0x13ded4(0x327)][_0x13ded4(0x29b)]-_0x308366-_0x5a5c00,_0x92de2a=_0x41a535['bounds'][_0x13ded4(0x29b)]+_0x41a535[_0x13ded4(0x327)][_0x13ded4(0x541)]+_0x308366+_0x5a5c00,_0x3dafcb=[],_0x39a7bc=_0x41a535[_0x13ded4(0x3b2)]===_0x13ded4(0x29b)||_0x41a535[_0x13ded4(0x3b2)]==='bottom',_0x3cd3dc=_0x39a7bc?_0x25a18b:_0x41a535[_0x13ded4(0x3b2)]==='left'?_0x55cd6f:_0x2930a6,_0x132e18=_0x39a7bc?_0x41a535[_0x13ded4(0x3b2)]===_0x13ded4(0x29b)?_0x1e7543:_0x53ada5:_0x307c73;if(_0x41a535[_0x13ded4(0x5dd)]&&_0x41a535['collapsedDescendantCount']>0x0)return _0x3dafcb[_0x13ded4(0x394)]({'kind':_0x13ded4(0x3a6),'x':_0x3cd3dc,'y':_0x132e18,'radius':_0x40098f,'badgeCount':_0x41a535['collapsedDescendantCount']}),_0x3dafcb;if(_0x41a535[_0x13ded4(0x5c9)]?(_0x41a535[_0x13ded4(0x4f4)]??(_0x39a7bc?[_0x13ded4(0x29b),'bottom']:[_0x13ded4(0x5c2),_0x13ded4(0x40d)]))['forEach'](_0x2d3209=>{const _0x3124fa=_0x13ded4;_0x2d3209===_0x3124fa(0x29b)?_0x3dafcb[_0x3124fa(0x394)]({'kind':_0x3124fa(0x254),'x':_0x25a18b,'y':_0x5cdcb4,'radius':_0x308366}):_0x2d3209==='bottom'?_0x3dafcb[_0x3124fa(0x394)]({'kind':_0x3124fa(0x558),'x':_0x25a18b,'y':_0x92de2a,'radius':_0x308366}):_0x2d3209===_0x3124fa(0x5c2)?_0x3dafcb['push']({'kind':_0x3124fa(0x563),'x':_0x50c8f5,'y':_0x307c73,'radius':_0x308366}):_0x3dafcb[_0x3124fa(0x394)]({'kind':_0x3124fa(0x223),'x':_0x59622c,'y':_0x307c73,'radius':_0x308366});}):(_0x3dafcb[_0x13ded4(0x394)]({'kind':_0x41a535[_0x13ded4(0x3b2)]==='left'?'add-child-left':_0x41a535['side']==='top'?_0x13ded4(0x254):_0x41a535[_0x13ded4(0x3b2)]===_0x13ded4(0x365)?_0x13ded4(0x558):'add-child-right','x':_0x39a7bc?_0x25a18b:_0x41a535[_0x13ded4(0x3b2)]===_0x13ded4(0x5c2)?_0x50c8f5:_0x59622c,'y':_0x39a7bc?_0x41a535[_0x13ded4(0x3b2)]==='top'?_0x5cdcb4:_0x92de2a:_0x307c73,'radius':_0x308366}),_0x39a7bc?(_0x3dafcb['push']({'kind':'add-sibling-before','placement':_0x13ded4(0x421),'x':_0x41a535[_0x13ded4(0x327)]['left']-_0x54c9b9,'y':_0x307c73,'radius':_0x48d597,'visualRadius':_0x330205}),_0x3dafcb['push']({'kind':_0x13ded4(0x220),'placement':_0x13ded4(0x2a6),'x':_0x41a535[_0x13ded4(0x327)]['left']+_0x41a535[_0x13ded4(0x327)]['width']+_0x54c9b9,'y':_0x307c73,'radius':_0x48d597,'visualRadius':_0x330205})):(_0x3dafcb[_0x13ded4(0x394)]({'kind':_0x13ded4(0x49b),'placement':_0x13ded4(0x421),'x':_0x25a18b,'y':_0x41a535[_0x13ded4(0x327)]['top']-_0x54c9b9,'radius':_0x48d597,'visualRadius':_0x330205}),_0x3dafcb[_0x13ded4(0x394)]({'kind':_0x13ded4(0x220),'placement':_0x13ded4(0x2a6),'x':_0x25a18b,'y':_0x41a535[_0x13ded4(0x327)]['top']+_0x41a535[_0x13ded4(0x327)][_0x13ded4(0x541)]+_0x54c9b9,'radius':_0x48d597,'visualRadius':_0x330205}))),_0x41a535[_0x13ded4(0x5dd)]){let _0x4ef556={'kind':'toggle-collapse','x':_0x3cd3dc,'y':_0x132e18,'radius':_0x40098f};_0x3dafcb[_0x13ded4(0x394)](_0x4ef556);let _0x3098a1=_0x3dafcb[_0x13ded4(0x57e)](_0x443813=>_0x443813[_0x13ded4(0x520)]===(_0x41a535[_0x13ded4(0x3b2)]===_0x13ded4(0x5c2)?_0x13ded4(0x563):_0x41a535[_0x13ded4(0x3b2)]===_0x13ded4(0x29b)?'add-child-top':_0x41a535[_0x13ded4(0x3b2)]===_0x13ded4(0x365)?_0x13ded4(0x558):_0x13ded4(0x223)));_0x3098a1&&Math['hypot'](_0x3098a1['x']-_0x4ef556['x'],_0x3098a1['y']-_0x4ef556['y'])<_0x24c9e9&&(_0x41a535[_0x13ded4(0x3b2)]===_0x13ded4(0x29b)||_0x41a535['side']===_0x13ded4(0x365)?_0x3098a1['y']=_0x4ef556['y']+(_0x41a535[_0x13ded4(0x3b2)]===_0x13ded4(0x29b)?-_0x24c9e9:_0x24c9e9):_0x3098a1['x']=_0x4ef556['x']+(_0x41a535[_0x13ded4(0x3b2)]===_0x13ded4(0x5c2)?-_0x24c9e9:_0x24c9e9));}return _0x3dafcb;}let _0x5224bc=_0x2fba6e(0x56d),_0x5eda3c=_0x23cfd0[_0x2fba6e(0x3e2)][_0x2fba6e(0x2c5)];function _0x58b265(_0x1d4813,_0xd9c7b){const _0x32aef8=_0x2fba6e;return!!_0x1d4813&&_0x1d4813[_0x32aef8(0x520)]===_0xd9c7b[_0x32aef8(0x520)]&&_0x1d4813['x']===_0xd9c7b['x']&&_0x1d4813['y']===_0xd9c7b['y'];}var _0x569184=class extends _0x924b47[_0x2fba6e(0x245)]{constructor(_0x5d95ef=_0x5224bc,_0x37695a){const _0x2a7dce=_0x2fba6e;super(_0x5d95ef),_0x251ac6(this,_0x2a7dce(0x432),{'controls':[]}),this[_0x2a7dce(0x56b)]=!0x0,this[_0x2a7dce(0x519)]=_0x23cfd0[_0x2a7dce(0x439)][_0x2a7dce(0x3da)],this[_0x2a7dce(0x2f4)](_0x37695a);}['updateState'](_0x388eef){const _0x46bdc3=_0x2fba6e;this[_0x46bdc3(0x432)]={...this['_state'],..._0x388eef},this[_0x46bdc3(0x432)][_0x46bdc3(0x548)]['length']>0x0?this['show']():this[_0x46bdc3(0x33e)](),this[_0x46bdc3(0x2b5)](!0x0);}[_0x2fba6e(0x3df)](_0x5c0b99){const _0x54d218=_0x2fba6e;!_0x5c0b99&&!this['_state'][_0x54d218(0x27c)]||_0x5c0b99&&_0x58b265(this[_0x54d218(0x432)][_0x54d218(0x27c)],_0x5c0b99)||(this['_state']={...this[_0x54d218(0x432)],'hoveredControl':_0x5c0b99},this[_0x54d218(0x2b5)](!0x0));}[_0x2fba6e(0x37a)](_0x50aeae,_0x5a8531){const _0x3feea1=_0x2fba6e;var _0x4c1309;let _0x124f98=(_0x4c1309=this['getScene']())==null?void 0x0:_0x4c1309[_0x3feea1(0x32e)](),_0xd7cf4e=null,_0x18c84a=0x1/0x0;for(let _0x50b4f1=this[_0x3feea1(0x432)]['controls'][_0x3feea1(0x333)]-0x1;_0x50b4f1>=0x0;--_0x50b4f1){let _0x53ea4f=this[_0x3feea1(0x432)]['controls'][_0x50b4f1],_0x429061=Math['hypot'](_0x50aeae['x']-_0x53ea4f['x'],_0x50aeae['y']-_0x53ea4f['y']);if(_0x5a8531!==_0x924b47[_0x3feea1(0x400)][_0x3feea1(0x3fd)]){if(_0x429061<=_0x53ea4f[_0x3feea1(0x2a3)])return _0x53ea4f;continue;}let _0xa58807=Math[_0x3feea1(0x3d2)]((_0x50aeae['x']-_0x53ea4f['x'])*((_0x124f98==null?void 0x0:_0x124f98['scaleX'])??0x1),(_0x50aeae['y']-_0x53ea4f['y'])*((_0x124f98==null?void 0x0:_0x124f98['scaleY'])??0x1));(_0x429061<=_0x53ea4f[_0x3feea1(0x2a3)]||_0xa58807<=_0x29ff9d['touchHitRadius'])&&_0xa58807<_0x18c84a&&(_0xd7cf4e=_0x53ea4f,_0x18c84a=_0xa58807);}return _0xd7cf4e;}[_0x2fba6e(0x437)](_0x43bef9){const _0x30a82b=_0x2fba6e;var _0x3fd532;let _0x27ef49=this[_0x30a82b(0x37a)](_0x43bef9,_0x924b47[_0x30a82b(0x400)][_0x30a82b(0x3fd)]),_0x546083=(_0x3fd532=this['getScene']())==null?void 0x0:_0x3fd532[_0x30a82b(0x32e)]();return _0x27ef49?Math[_0x30a82b(0x3d2)]((_0x43bef9['x']-_0x27ef49['x'])*((_0x546083==null?void 0x0:_0x546083[_0x30a82b(0x3e9)])??0x1),(_0x43bef9['y']-_0x27ef49['y'])*((_0x546083==null?void 0x0:_0x546083[_0x30a82b(0x3bc)])??0x1)):0x1/0x0;}[_0x2fba6e(0x219)](_0x2a7c0b){const _0x28fc9d=_0x2fba6e;return!!this[_0x28fc9d(0x37a)]({'x':_0x2a7c0b['x'],'y':_0x2a7c0b['y']});}[_0x2fba6e(0x251)](_0x4cfd52,_0x2ce235){const _0x568205=_0x2fba6e;return!this[_0x568205(0x33f)]||this['_state']['controls'][_0x568205(0x333)]===0x0?(this['makeDirty'](!0x1),this):(_0x4cfd52[_0x568205(0x489)](),this[_0x568205(0x432)][_0x568205(0x548)][_0x568205(0x3d8)](_0x383185=>{const _0x12f528=_0x568205;let _0x51f3fd=_0x58b265(this[_0x12f528(0x432)][_0x12f528(0x27c)],_0x383185),_0x470cf7=_0x383185[_0x12f528(0x5e1)]!==void 0x0,_0x3de74f=_0x383185[_0x12f528(0x520)]===_0x12f528(0x563)||_0x383185[_0x12f528(0x520)]===_0x12f528(0x223)||_0x383185[_0x12f528(0x520)]==='add-child-top'||_0x383185[_0x12f528(0x520)]===_0x12f528(0x558),_0x43a8ee=_0x383185[_0x12f528(0x520)]===_0x12f528(0x49b)||_0x383185[_0x12f528(0x520)]===_0x12f528(0x220),_0x5bece2=_0x43a8ee&&!_0x51f3fd?_0x383185[_0x12f528(0x4db)]??_0x383185['radius']:_0x383185[_0x12f528(0x2a3)];if(_0x4cfd52['beginPath'](),_0x4cfd52['fillStyle']=_0x383185['kind']===_0x12f528(0x3a6)?_0x29ff9d[_0x12f528(0x4ae)]:_0x29ff9d[_0x12f528(0x388)],_0x4cfd52[_0x12f528(0x2e2)]=_0x29ff9d[_0x12f528(0x388)],_0x4cfd52[_0x12f528(0x573)]=_0x29ff9d[_0x12f528(0x2b8)],_0x4cfd52[_0x12f528(0x45e)](_0x383185['x'],_0x383185['y'],_0x5bece2,0x0,Math['PI']*0x2),_0x4cfd52[_0x12f528(0x23b)](),(!_0x43a8ee||_0x51f3fd)&&_0x4cfd52[_0x12f528(0x58b)](),!_0x470cf7&&(!_0x43a8ee||_0x51f3fd)){if(_0x4cfd52[_0x12f528(0x404)](),_0x4cfd52['strokeStyle']=_0x383185['kind']===_0x12f528(0x3a6)?_0x29ff9d[_0x12f528(0x388)]:_0x29ff9d[_0x12f528(0x4ae)],_0x4cfd52[_0x12f528(0x573)]=_0x43a8ee?_0x29ff9d['glyphWidth']:_0x51f3fd?_0x29ff9d[_0x12f528(0x23f)]:_0x29ff9d[_0x12f528(0x579)],_0x4cfd52[_0x12f528(0x306)]=_0x12f528(0x51c),_0x383185[_0x12f528(0x520)]===_0x12f528(0x3a6)){let _0x552608=_0x29ff9d[_0x12f528(0x509)];_0x4cfd52['moveTo'](_0x383185['x']+_0x552608/0x2,_0x383185['y']-_0x552608),_0x4cfd52[_0x12f528(0x3bd)](_0x383185['x']-_0x552608/0x2,_0x383185['y']),_0x4cfd52['lineTo'](_0x383185['x']+_0x552608/0x2,_0x383185['y']+_0x552608);}else{let _0x3da673=_0x43a8ee?_0x29ff9d[_0x12f528(0x551)]:_0x3de74f?_0x29ff9d[_0x12f528(0x3f6)]:_0x29ff9d[_0x12f528(0x509)];_0x4cfd52['moveTo'](_0x383185['x']-_0x3da673,_0x383185['y']),_0x4cfd52[_0x12f528(0x3bd)](_0x383185['x']+_0x3da673,_0x383185['y']),_0x4cfd52[_0x12f528(0x564)](_0x383185['x'],_0x383185['y']-_0x3da673),_0x4cfd52['lineTo'](_0x383185['x'],_0x383185['y']+_0x3da673);}_0x4cfd52['stroke']();}_0x470cf7&&(_0x4cfd52['fillStyle']=_0x29ff9d[_0x12f528(0x388)],_0x4cfd52['font']=_0x29ff9d['badgeFontWeight']+'\x20'+_0x29ff9d['badgeFontSize']+_0x12f528(0x3f4)+_0x29ff9d[_0x12f528(0x3ec)],_0x4cfd52['textAlign']=_0x12f528(0x58d),_0x4cfd52['textBaseline']='middle',_0x4cfd52[_0x12f528(0x52a)](String(_0x383185[_0x12f528(0x5e1)]),_0x383185['x'],_0x383185['y']));}),_0x4cfd52[_0x568205(0x4e1)](),this['makeDirty'](!0x1),this);}};function _0x227b4f(_0x36db55){return _0x36db55==='tree-left'||_0x36db55==='tree-right'||_0x36db55==='tree-alternate';}function _0x531187(_0x1045ac){const _0x3093cf=_0x2fba6e;return _0x1045ac==='timeline-horizontal'||_0x1045ac===_0x3093cf(0x216);}function _0x2bb3b6(_0x19d9bc,_0x1d60b9){const _0x286fbb=_0x2fba6e;let _0x554992=Number[_0x286fbb(0x47e)](_0x1d60b9[_0x286fbb(0x3b3)])&&_0x1d60b9[_0x286fbb(0x3b3)]>0x0?_0x1d60b9[_0x286fbb(0x3b3)]:0x1;return{'x':Math[_0x286fbb(0x51c)]((_0x19d9bc[_0x286fbb(0x44a)]-_0x1d60b9[_0x286fbb(0x568)]['x'])/_0x554992),'y':Math[_0x286fbb(0x51c)]((_0x19d9bc[_0x286fbb(0x2d0)]-_0x1d60b9[_0x286fbb(0x568)]['y'])/_0x554992)};}let _0x190b69=class extends _0x3a2278['RxDisposable']{constructor(_0x5504f3,_0x414bee,_0x40ba4a,_0x599346,_0x283032,_0x5b9c9a,_0x5ea73b,_0x5d046a,_0x853e6c){const _0x3189ce=_0x2fba6e;super(),this['_renderContext']=_0x5504f3,this[_0x3189ce(0x4ec)]=_0x414bee,this['_elementStateService']=_0x40ba4a,this[_0x3189ce(0x471)]=_0x599346,this[_0x3189ce(0x4a0)]=_0x283032,this[_0x3189ce(0x3aa)]=_0x5b9c9a,this[_0x3189ce(0x350)]=_0x5ea73b,this[_0x3189ce(0x499)]=_0x5d046a,this[_0x3189ce(0x496)]=_0x853e6c,_0x251ac6(this,_0x3189ce(0x3ce),null),_0x251ac6(this,_0x3189ce(0x5e3),null),_0x251ac6(this,'_activeNodeId',null),_0x251ac6(this,'_activeScopeId',null),this[_0x3189ce(0x374)]();}['_init'](){const _0x355d10=_0x2fba6e;var _0xa703dd,_0x753c60,_0x5acd02;let {scene:_0x731379}=this['_renderContext'],_0x2e1f4b=(_0xa703dd=_0x731379[_0x355d10(0x2c2)])==null?void 0x0:_0xa703dd[_0x355d10(0x3b6)](_0x731379);_0x2e1f4b&&(this[_0x355d10(0x417)]((0x0,_0x3a2278['toDisposable'])(_0x2e1f4b['changing$']['pipe']((0x0,_0x45614e[_0x355d10(0x2a9)])(this[_0x355d10(0x4e8)]))[_0x355d10(0x55f)](({objects:_0x24af94})=>{const _0x3f3091=_0x355d10;this[_0x3f3091(0x1ec)](_0x24af94,{'hideRootControls':!0x0});}))),this[_0x355d10(0x417)]((0x0,_0x3a2278['toDisposable'])(_0x2e1f4b[_0x355d10(0x5c6)]['pipe']((0x0,_0x45614e[_0x355d10(0x2a9)])(this[_0x355d10(0x4e8)]))[_0x355d10(0x55f)](_0x1f6191=>{const _0x5d5c07=_0x355d10;let _0x210f97=_0x1f6191==null?void 0x0:_0x1f6191['objects'];this[_0x5d5c07(0x1ec)](_0x210f97),setTimeout(()=>this[_0x5d5c07(0x1ec)](_0x210f97),0x0);})))),this[_0x355d10(0x417)]((0x0,_0x3a2278[_0x355d10(0x3af)])(this[_0x355d10(0x5a0)][_0x355d10(0x1ea)][_0x355d10(0x456)]((0x0,_0x45614e[_0x355d10(0x2a9)])(this[_0x355d10(0x4e8)]))['subscribe'](()=>this[_0x355d10(0x1ec)]()))),this[_0x355d10(0x417)]((0x0,_0x3a2278[_0x355d10(0x3af)])(this[_0x355d10(0x471)][_0x355d10(0x1ea)][_0x355d10(0x456)]((0x0,_0x45614e['takeUntil'])(this[_0x355d10(0x4e8)]))['subscribe'](()=>this['_syncControls']()))),this[_0x355d10(0x417)]((0x0,_0x3a2278[_0x355d10(0x3af)])(this['_boardElementService'][_0x355d10(0x59e)][_0x355d10(0x456)]((0x0,_0x45614e[_0x355d10(0x2a9)])(this[_0x355d10(0x4e8)]))['subscribe'](_0x1a6d9c=>{const _0x4b0743=_0x355d10;let _0x56b089=this[_0x4b0743(0x5a0)][_0x4b0743(0x39a)]()[_0x4b0743(0x5ab)];_0x56b089&&_0x1a6d9c[_0x4b0743(0x501)](_0x4f9414=>_0x4f9414[_0x4b0743(0x3b0)]===_0x56b089[_0x4b0743(0x3b0)]&&_0x4f9414[_0x4b0743(0x363)]===_0x56b089[_0x4b0743(0x363)]&&(_0x4f9414['elementId']===this['_activeNodeId']||_0x4f9414[_0x4b0743(0x289)]===this[_0x4b0743(0x287)]))&&this[_0x4b0743(0x1ec)]();}))),this[_0x355d10(0x417)]((0x0,_0x3a2278['toDisposable'])(this[_0x355d10(0x499)][_0x355d10(0x35d)][_0x355d10(0x456)]((0x0,_0x45614e[_0x355d10(0x2a9)])(this[_0x355d10(0x4e8)]))[_0x355d10(0x55f)](_0x2dc32c=>{const _0x2d42c6=_0x355d10;let _0x1d469e=this['_elementStateService'][_0x2d42c6(0x39a)]()['context'];_0x1d469e&&_0x1d469e['unitId']===_0x2dc32c[_0x2d42c6(0x3b0)]&&_0x1d469e[_0x2d42c6(0x363)]===_0x2dc32c[_0x2d42c6(0x363)]&&(this[_0x2d42c6(0x287)]&&this[_0x2d42c6(0x287)]!==_0x2dc32c['scopeId']||this[_0x2d42c6(0x1ec)]());}))),this[_0x355d10(0x417)]((0x0,_0x3a2278['toDisposable'])(_0x731379[_0x355d10(0x57c)][_0x355d10(0x1e1)](_0x1d4896=>this[_0x355d10(0x52f)](_0x1d4896)))),this[_0x355d10(0x417)]((0x0,_0x3a2278[_0x355d10(0x3af)])(_0x731379[_0x355d10(0x3ea)][_0x355d10(0x1e1)]({'priority':0x4,'next':([_0x282039,_0x96f560])=>{const _0x3ea72f=_0x355d10;this[_0x3ea72f(0x262)](_0x282039)&&this[_0x3ea72f(0x459)](_0x282039,_0x96f560);}}))),this[_0x355d10(0x417)]((0x0,_0x3a2278['toDisposable'])(((_0x753c60=_0x731379[_0x355d10(0x4f5)])==null?void 0x0:_0x753c60['subscribeEvent']({'priority':0x4,'next':([_0x23ae73,_0x292dce])=>{const _0x1cf65d=_0x355d10;this[_0x1cf65d(0x3f0)](_0x23ae73)&&this[_0x1cf65d(0x459)](_0x23ae73,_0x292dce);}}))??{'dispose':()=>{}})),this[_0x355d10(0x417)]((0x0,_0x3a2278['toDisposable'])(((_0x5acd02=_0x731379[_0x355d10(0x59d)])==null?void 0x0:_0x5acd02[_0x355d10(0x1e1)]({'priority':0x4,'next':([_0x4fc6dd,_0x20a631])=>{const _0x3473dc=_0x355d10;this[_0x3473dc(0x3f0)](_0x4fc6dd)&&this[_0x3473dc(0x459)](_0x4fc6dd,_0x20a631);}}))??{'dispose':()=>{}})),this['disposeWithMe']((0x0,_0x3a2278[_0x355d10(0x3af)])(()=>this[_0x355d10(0x36c)]())),this[_0x355d10(0x1ec)]();}[_0x2fba6e(0x293)](){const _0x5080ae=_0x2fba6e;return this[_0x5080ae(0x3ce)]||(this[_0x5080ae(0x3ce)]=new _0x569184(_0x5224bc),this[_0x5080ae(0x5e0)](this[_0x5080ae(0x3ce)]),this[_0x5080ae(0x595)]['scene'][_0x5080ae(0x48f)](this[_0x5080ae(0x3ce)],_0x5eda3c)),this[_0x5080ae(0x3ce)];}['_attachObjectEvents'](_0x51ae16){const _0x349cd6=_0x2fba6e;var _0x5e41f5;(_0x5e41f5=this[_0x349cd6(0x5e3)])==null||_0x5e41f5[_0x349cd6(0x450)]();let _0xe95ee7=new _0x3a2278[(_0x349cd6(0x4cf))]();_0xe95ee7[_0x349cd6(0x36d)](_0x51ae16[_0x349cd6(0x3ea)][_0x349cd6(0x1e1)]({'priority':0x4,'next':([_0x39af63,_0x452066])=>{this['_handlePointerDown'](_0x39af63)&&this['_consumeControlEvent'](_0x39af63,_0x452066);}})),_0xe95ee7['add'](_0x51ae16[_0x349cd6(0x4f5)][_0x349cd6(0x1e1)]({'priority':0x4,'next':([_0x436438,_0x11bf07])=>{const _0x2657df=_0x349cd6;this[_0x2657df(0x3f0)](_0x436438)&&this[_0x2657df(0x459)](_0x436438,_0x11bf07);}})),_0xe95ee7[_0x349cd6(0x36d)](_0x51ae16[_0x349cd6(0x59d)][_0x349cd6(0x1e1)]({'priority':0x4,'next':([_0x44ac0b,_0xb871c4])=>{const _0x4a087d=_0x349cd6;this[_0x4a087d(0x3f0)](_0x44ac0b)&&this[_0x4a087d(0x459)](_0x44ac0b,_0xb871c4);}})),this[_0x349cd6(0x5e3)]=_0xe95ee7;}[_0x2fba6e(0x36c)](){const _0x7d3898=_0x2fba6e;var _0x5e542f;this['_object']&&(this[_0x7d3898(0x595)][_0x7d3898(0x2fd)][_0x7d3898(0x510)]([this[_0x7d3898(0x3ce)]]),(_0x5e542f=this[_0x7d3898(0x5e3)])==null||_0x5e542f[_0x7d3898(0x450)](),this['_objectEventDisposables']=null,this[_0x7d3898(0x3ce)]=null,this['_activeNodeId']=null,this[_0x7d3898(0x287)]=null,this[_0x7d3898(0x595)]['scene'][_0x7d3898(0x2b5)](!0x0));}[_0x2fba6e(0x1ec)](_0x1290a,_0x44e3a8){const _0x4438fd=_0x2fba6e;var _0x100363,_0x4e1a4f;if(this[_0x4438fd(0x471)][_0x4438fd(0x3ca)]()[_0x4438fd(0x59b)]===_0x4438fd(0x505)){this[_0x4438fd(0x36c)]();return;}let _0x4c602a=this['_elementStateService']['getSnapshot'](),_0x2b1888=_0x4c602a[_0x4438fd(0x5ab)],_0x51e3a6=_0x4c602a[_0x4438fd(0x4e4)]??_0x4c602a[_0x4438fd(0x369)][0x0];if(!_0x2b1888||!_0x51e3a6||_0x4c602a['selectedIds'][_0x4438fd(0x333)]!==0x1){this[_0x4438fd(0x36c)]();return;}let _0x224349=this[_0x4438fd(0x4ec)][_0x4438fd(0x5d8)](_0x2b1888[_0x4438fd(0x3b0)],_0x2b1888[_0x4438fd(0x363)]),_0x45f6ee=_0x224349[_0x51e3a6],_0xb78af0=(0x0,_0x6837b2[_0x4438fd(0x258)])(_0x45f6ee==null?void 0x0:_0x45f6ee[_0x4438fd(0x21f)]);if(!_0x45f6ee||!_0xb78af0){this['_removeObject']();return;}let _0x4bb097=(0x0,_0x23cfd0[_0x4438fd(0x285)])(_0x2b1888['unitId'],_0x51e3a6);if(_0x44e3a8!=null&&_0x44e3a8[_0x4438fd(0x1e8)]&&_0xb78af0[_0x4438fd(0x1e6)]==null&&_0x1290a!=null&&_0x1290a[_0x4438fd(0x5ad)](_0x4bb097)){this[_0x4438fd(0x36c)]();return;}let _0x559940=this[_0x4438fd(0x468)](_0x224349,_0x2b1888['unitId'],_0x51e3a6,_0x1290a);if(!_0x559940){this[_0x4438fd(0x36c)]();return;}let _0x529959=Object[_0x4438fd(0x2dd)](_0x224349)[_0x4438fd(0x412)](_0x4c6e0c=>{const _0x4c9bc5=_0x4438fd;var _0x36581c;return((_0x36581c=(0x0,_0x6837b2[_0x4c9bc5(0x258)])(_0x4c6e0c[_0x4c9bc5(0x21f)]))==null?void 0x0:_0x36581c[_0x4c9bc5(0x1e6)])===_0x51e3a6;}),_0x5bf7b0=_0xb78af0[_0x4438fd(0x28d)]?this[_0x4438fd(0x52c)](_0x224349,_0x51e3a6):0x0;this[_0x4438fd(0x3c5)]=_0x51e3a6,this['_activeScopeId']=_0xb78af0[_0x4438fd(0x2b3)];let _0x503436=(_0x100363=_0x224349[_0xb78af0[_0x4438fd(0x2b3)]])==null?void 0x0:_0x100363[_0x4438fd(0x21f)],_0x2bdaa5=(0x0,_0x6837b2[_0x4438fd(0x205)])(_0x503436),_0x3567bb=_0x503436==null||(_0x4e1a4f=_0x503436[_0x4438fd(0x214)])==null||(_0x4e1a4f=_0x4e1a4f[_0x4438fd(0x529)])==null||(_0x4e1a4f=_0x4e1a4f[_0x4438fd(0x1e2)])==null?void 0x0:_0x4e1a4f[_0x4438fd(0x1f8)],_0x33adf1=(_0x2bdaa5==null?void 0x0:_0x2bdaa5['layout']['structureKind'])??_0x3567bb,_0x59524a=_0xb78af0[_0x4438fd(0x1e6)]==null,_0x5efa68=this[_0x4438fd(0x3ad)](_0xb78af0[_0x4438fd(0x3b2)],_0x59524a,_0x33adf1);this[_0x4438fd(0x293)]()[_0x4438fd(0x2f4)]({'controls':_0x257503({'bounds':_0x559940,'isRoot':_0x59524a,'side':_0x5efa68,'rootChildSides':this['_resolveRootChildControlSides'](_0x59524a,_0x33adf1),'hasChildren':_0x529959[_0x4438fd(0x333)]>0x0,'collapsedDescendantCount':_0x5bf7b0})}),this[_0x4438fd(0x595)]['scene'][_0x4438fd(0x2b5)](!0x0);}['_resolveControlSide'](_0xb5efc7,_0x301c47,_0x3dd2ae){const _0x5b25e3=_0x2fba6e;return _0x3dd2ae===_0x5b25e3(0x216)?!_0x301c47&&(_0xb5efc7===_0x5b25e3(0x5c2)||_0xb5efc7===_0x5b25e3(0x40d))?_0xb5efc7:_0x5b25e3(0x365):_0x3dd2ae===_0x5b25e3(0x4bf)?!_0x301c47&&(_0xb5efc7===_0x5b25e3(0x29b)||_0xb5efc7===_0x5b25e3(0x365))?_0xb5efc7:_0x5b25e3(0x365):_0xb5efc7==='left'?_0x5b25e3(0x5c2):_0x5b25e3(0x40d);}[_0x2fba6e(0x5c7)](_0x30cb6a,_0x12c620){const _0x20e357=_0x2fba6e;if(_0x30cb6a){if(_0x227b4f(_0x12c620))return[_0x20e357(0x365)];if(_0x12c620==='timeline-horizontal')return[_0x20e357(0x40d)];if(_0x12c620==='timeline-vertical')return[_0x20e357(0x365)];}}[_0x2fba6e(0x488)](_0x5d5894){const _0x4e4d03=_0x2fba6e;var _0xcbbdae,_0x6942bc;let _0x1da2ad=this['_elementStateService']['getSnapshot']()[_0x4e4d03(0x5ab)];if(!_0x1da2ad||!this[_0x4e4d03(0x3c5)])return;let _0x598b6c=this[_0x4e4d03(0x4ec)][_0x4e4d03(0x5d8)](_0x1da2ad[_0x4e4d03(0x3b0)],_0x1da2ad['subUnitId']),_0x37be8c=(0x0,_0x6837b2[_0x4e4d03(0x258)])((_0xcbbdae=_0x598b6c[this[_0x4e4d03(0x3c5)]])==null?void 0x0:_0xcbbdae['element']),_0x47def9=_0x37be8c?(0x0,_0x6837b2['getMindMapContainerMeta'])((_0x6942bc=_0x598b6c[_0x37be8c[_0x4e4d03(0x2b3)]])==null?void 0x0:_0x6942bc[_0x4e4d03(0x21f)]):null;if((_0x37be8c==null?void 0x0:_0x37be8c[_0x4e4d03(0x1e6)])!=null||!_0x227b4f(_0x47def9==null?void 0x0:_0x47def9['layout'][_0x4e4d03(0x1f8)])&&!_0x531187(_0x47def9==null?void 0x0:_0x47def9[_0x4e4d03(0x1e2)][_0x4e4d03(0x1f8)]))return _0x5d5894===_0x4e4d03(0x563)?'left':_0x5d5894===_0x4e4d03(0x254)?'top':_0x5d5894==='add-child-bottom'?_0x4e4d03(0x365):_0x4e4d03(0x40d);}['_resolveControlBounds'](_0x20496b,_0xcb51ae,_0x5f3af6,_0x1986ae){const _0xa930c9=_0x2fba6e;var _0x5d5eb3,_0x24c102;let _0x52c05d=(0x0,_0x23cfd0[_0xa930c9(0x285)])(_0xcb51ae,_0x5f3af6),_0x13461b=_0x1986ae==null?void 0x0:_0x1986ae['get'](_0x52c05d),_0x58021e=this[_0xa930c9(0x429)](_0x13461b);if(_0x58021e)return _0x58021e;let _0x588929=this[_0xa930c9(0x595)][_0xa930c9(0x2fd)],_0x2bf504=((_0x5d5eb3=_0x588929['getObjectIncludeInGroup'])==null?void 0x0:_0x5d5eb3[_0xa930c9(0x3b6)](_0x588929,_0x52c05d))??((_0x24c102=_0x588929[_0xa930c9(0x4a3)])==null?void 0x0:_0x24c102[_0xa930c9(0x3b6)](_0x588929,_0x52c05d));return this['_toFiniteBounds'](_0x2bf504)||(0x0,_0x22188d[_0xa930c9(0x5bf)])(_0x20496b,_0x5f3af6);}[_0x2fba6e(0x429)](_0xda010a){const _0x15de17=_0x2fba6e;return _0xda010a&&Number[_0x15de17(0x47e)](_0xda010a[_0x15de17(0x5c2)])&&Number[_0x15de17(0x47e)](_0xda010a[_0x15de17(0x29b)])&&Number[_0x15de17(0x47e)](_0xda010a[_0x15de17(0x53b)])&&Number[_0x15de17(0x47e)](_0xda010a[_0x15de17(0x541)])?{'left':_0xda010a[_0x15de17(0x5c2)],'top':_0xda010a[_0x15de17(0x29b)],'width':_0xda010a['width'],'height':_0xda010a[_0x15de17(0x541)]}:null;}['_countDescendants'](_0xac617c,_0x745383){const _0x4032d1=_0x2fba6e;return Object[_0x4032d1(0x2dd)](_0xac617c)['filter'](_0x452b3b=>{const _0x3a3909=_0x4032d1;var _0x518efe;return((_0x518efe=(0x0,_0x6837b2[_0x3a3909(0x258)])(_0x452b3b['element']))==null?void 0x0:_0x518efe['parentNodeId'])===_0x745383;})[_0x4032d1(0x554)]((_0x404d03,_0x1377aa)=>_0x404d03+0x1+this[_0x4032d1(0x52c)](_0xac617c,_0x1377aa[_0x4032d1(0x289)]),0x0);}[_0x2fba6e(0x52f)](_0x1c2f00){const _0x332854=_0x2fba6e;if(!this[_0x332854(0x3ce)])return;let _0x33c001=this[_0x332854(0x471)][_0x332854(0x3ca)](),_0x4fd187=_0x2bb3b6(_0x1c2f00,{'panOffset':_0x33c001['viewportPanOffset'],'zoomRatio':_0x33c001[_0x332854(0x3b3)]});this[_0x332854(0x3ce)][_0x332854(0x3df)](this['_object']['getHitControl'](_0x4fd187,_0x1c2f00[_0x332854(0x31e)]));}[_0x2fba6e(0x262)](_0x546e64){const _0xcf2cf9=_0x2fba6e;if(!this['_object']||!this[_0xcf2cf9(0x3c5)]||(_0x546e64[_0xcf2cf9(0x438)]??0x0)!==0x0)return!0x1;let _0x42bac6=this[_0xcf2cf9(0x5a0)][_0xcf2cf9(0x39a)]()[_0xcf2cf9(0x5ab)];if(!_0x42bac6)return!0x1;let _0xbb27c9=this[_0xcf2cf9(0x471)][_0xcf2cf9(0x3ca)](),_0x45f150=_0x2bb3b6(_0x546e64,{'panOffset':_0xbb27c9['viewportPanOffset'],'zoomRatio':_0xbb27c9[_0xcf2cf9(0x3b3)]}),_0x232c6a=this[_0xcf2cf9(0x3ce)][_0xcf2cf9(0x37a)](_0x45f150,_0x546e64[_0xcf2cf9(0x31e)]);if(!_0x232c6a)return!0x1;if(_0x232c6a[_0xcf2cf9(0x520)]===_0xcf2cf9(0x3a6))return this[_0xcf2cf9(0x502)](_0x6837b2[_0xcf2cf9(0x5bb)]['id'],{'unitId':_0x42bac6[_0xcf2cf9(0x3b0)],'subUnitId':_0x42bac6['subUnitId'],'nodeId':this[_0xcf2cf9(0x3c5)]}),!0x0;if(_0x232c6a[_0xcf2cf9(0x520)]===_0xcf2cf9(0x563)||_0x232c6a[_0xcf2cf9(0x520)]===_0xcf2cf9(0x223)||_0x232c6a[_0xcf2cf9(0x520)]===_0xcf2cf9(0x254)||_0x232c6a['kind']==='add-child-bottom'){let _0x50c431=(0x0,_0x3a2278[_0xcf2cf9(0x243)])(0x6);return this[_0xcf2cf9(0x39d)](_0x6837b2[_0xcf2cf9(0x46b)]['id'],{'unitId':_0x42bac6['unitId'],'subUnitId':_0x42bac6[_0xcf2cf9(0x363)],'parentNodeId':this['_activeNodeId'],'side':this[_0xcf2cf9(0x488)](_0x232c6a[_0xcf2cf9(0x520)]),'nodeId':_0x50c431,'connectorId':(0x0,_0x3a2278[_0xcf2cf9(0x243)])(0x6),'text':this[_0xcf2cf9(0x350)]['t'](_0xcf2cf9(0x3ba))},_0x50c431),!0x0;}if(_0x232c6a[_0xcf2cf9(0x520)]==='add-sibling-before'||_0x232c6a[_0xcf2cf9(0x520)]===_0xcf2cf9(0x220)){let _0x1e4e3d=(0x0,_0x3a2278[_0xcf2cf9(0x243)])(0x6);return this[_0xcf2cf9(0x39d)](_0x6837b2[_0xcf2cf9(0x465)]['id'],{'unitId':_0x42bac6[_0xcf2cf9(0x3b0)],'subUnitId':_0x42bac6[_0xcf2cf9(0x363)],'nodeId':this[_0xcf2cf9(0x3c5)],'placement':_0x232c6a['placement']??(_0x232c6a[_0xcf2cf9(0x520)]===_0xcf2cf9(0x49b)?_0xcf2cf9(0x421):_0xcf2cf9(0x2a6)),'siblingNodeId':_0x1e4e3d,'connectorId':(0x0,_0x3a2278[_0xcf2cf9(0x243)])(0x6),'text':this['_localeService']['t'](_0xcf2cf9(0x3ba))},_0x1e4e3d),!0x0;}return!0x0;}[_0x2fba6e(0x3f0)](_0xe3592a){const _0x31d66e=_0x2fba6e;if(!this[_0x31d66e(0x3ce)]||(_0xe3592a[_0x31d66e(0x438)]??0x0)!==0x0)return!0x1;let _0x56e397=this[_0x31d66e(0x471)][_0x31d66e(0x3ca)](),_0x2fd8c0=_0x2bb3b6(_0xe3592a,{'panOffset':_0x56e397[_0x31d66e(0x22b)],'zoomRatio':_0x56e397[_0x31d66e(0x3b3)]});return!!this[_0x31d66e(0x3ce)][_0x31d66e(0x37a)](_0x2fd8c0,_0xe3592a[_0x31d66e(0x31e)]);}[_0x2fba6e(0x459)](_0x18a2b1,_0x23432e){const _0x1fda05=_0x2fba6e;var _0x3544ce,_0x4187a1;_0x23432e[_0x1fda05(0x55e)](),(_0x3544ce=_0x18a2b1[_0x1fda05(0x40b)])==null||_0x3544ce[_0x1fda05(0x3b6)](_0x18a2b1),(_0x4187a1=_0x18a2b1[_0x1fda05(0x55e)])==null||_0x4187a1[_0x1fda05(0x3b6)](_0x18a2b1);}[_0x2fba6e(0x502)](_0x2f36c5,_0x594d5d){const _0x58d207=_0x2fba6e;let _0x39d88d=this[_0x58d207(0x287)];this[_0x58d207(0x496)][_0x58d207(0x550)](_0x594d5d[_0x58d207(0x3b0)],()=>{const _0x3beae5=_0x58d207;this[_0x3beae5(0x4a0)][_0x3beae5(0x241)](_0x2f36c5,_0x594d5d)&&_0x39d88d&&(this['_commandService'][_0x3beae5(0x241)](_0x6837b2[_0x3beae5(0x543)]['id'],{'unitId':_0x594d5d[_0x3beae5(0x3b0)],'subUnitId':_0x594d5d[_0x3beae5(0x363)],'scopeId':_0x39d88d}),this[_0x3beae5(0x1ec)]());});}['_executeCreateAndEdit'](_0x5c9bff,_0x9060b1,_0x470d5c){const _0x31b655=_0x2fba6e;let _0x5725cd={'unitId':_0x9060b1[_0x31b655(0x3b0)],'subUnitId':_0x9060b1[_0x31b655(0x363)]},_0x592ae8=this[_0x31b655(0x4a0)][_0x31b655(0x4ad)](_0x5c9bff,_0x9060b1);Promise[_0x31b655(0x52b)](_0x592ae8)[_0x31b655(0x2ea)](_0x1a410c=>{const _0x4a57eb=_0x31b655;_0x1a410c&&(this[_0x4a57eb(0x1ec)](),this[_0x4a57eb(0x5a0)][_0x4a57eb(0x382)](_0x5725cd,[_0x470d5c],_0x470d5c),this[_0x4a57eb(0x3aa)][_0x4a57eb(0x463)](),this[_0x4a57eb(0x3aa)][_0x4a57eb(0x337)]({..._0x5725cd,'shapeId':_0x470d5c,'shapeKey':(0x0,_0x23cfd0[_0x4a57eb(0x285)])(_0x5725cd[_0x4a57eb(0x3b0)],_0x470d5c),'visible':!0x0}));});}};_0x190b69=_0x19a741([_0x32dcf8(0x1,(0x0,_0x3a2278['Inject'])(_0x22188d['IBoardElementService'])),_0x32dcf8(0x2,(0x0,_0x3a2278['Inject'])(_0x23cfd0[_0x2fba6e(0x3a4)])),_0x32dcf8(0x3,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x23cfd0[_0x2fba6e(0x2ef)])),_0x32dcf8(0x4,_0x3a2278[_0x2fba6e(0x4c8)]),_0x32dcf8(0x5,(0x0,_0x3a2278['Inject'])(_0x23cfd0[_0x2fba6e(0x36f)])),_0x32dcf8(0x6,(0x0,_0x3a2278['Inject'])(_0x3a2278[_0x2fba6e(0x55c)])),_0x32dcf8(0x7,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x11978c)),_0x32dcf8(0x8,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x4468ef[_0x2fba6e(0x2d1)]))],_0x190b69);let _0x442ea6=_0x2fba6e(0x34d),_0x1602f6=class extends _0x3a2278[_0x2fba6e(0x22d)]{constructor(_0x5221d5,_0x1993c3){const _0x1125b6=_0x2fba6e;super(),this[_0x1125b6(0x4a0)]=_0x5221d5,this['_shortcutService']=_0x1993c3,this[_0x1125b6(0x374)]();}[_0x2fba6e(0x374)](){const _0x4d63b2=_0x2fba6e;this[_0x4d63b2(0x417)](this['_shortcutService'][_0x4d63b2(0x3e8)](this[_0x4d63b2(0x51d)]()));}[_0x2fba6e(0x51d)](){const _0x2f4c49=_0x2fba6e;return{'id':_0x39938[_0x2f4c49(0x4ca)],'binding':_0x4468ef[_0x2f4c49(0x4c2)][_0x2f4c49(0x1ee)]|_0x4468ef[_0x2f4c49(0x467)]['SHIFT'],'priority':0x3e8,'preconditions':_0x2b6838=>_0x2b6838['getContextValue'](_0x2f4c49(0x34d))&&this[_0x2f4c49(0x4a0)][_0x2f4c49(0x52d)](_0x39938[_0x2f4c49(0x4ca)])};}};_0x1602f6=_0x19a741([_0x32dcf8(0x0,_0x3a2278[_0x2fba6e(0x4c8)]),_0x32dcf8(0x1,_0x4468ef[_0x2fba6e(0x294)])],_0x1602f6);let _0x3231f4=[_0x357132,_0x2e6338,_0x442ea6],_0x2f7b05=class extends _0x3a2278[_0x2fba6e(0x22d)]{constructor(_0x312457,_0x23749d,_0x308ca3,_0x5becbb,_0x4537e0){const _0x5b42f8=_0x2fba6e;super(),this['_renderContext']=_0x312457,this[_0x5b42f8(0x4ec)]=_0x23749d,this[_0x5b42f8(0x5a0)]=_0x308ca3,this['_textEditingService']=_0x5becbb,this[_0x5b42f8(0x5ec)]=_0x4537e0,_0x251ac6(this,_0x5b42f8(0x21c),!0x1),this[_0x5b42f8(0x417)]((0x0,_0x3a2278['toDisposable'])(this[_0x5b42f8(0x595)]['activated$'][_0x5b42f8(0x456)]((0x0,_0x45614e[_0x5b42f8(0x2a9)])(this[_0x5b42f8(0x4e8)]))[_0x5b42f8(0x55f)](_0x152c09=>{const _0x7d2ae7=_0x5b42f8;this[_0x7d2ae7(0x21c)]=_0x152c09,this[_0x7d2ae7(0x2fa)]();}))),this[_0x5b42f8(0x417)]((0x0,_0x3a2278[_0x5b42f8(0x3af)])(this[_0x5b42f8(0x5a0)]['state$'][_0x5b42f8(0x456)]((0x0,_0x45614e[_0x5b42f8(0x2a9)])(this[_0x5b42f8(0x4e8)]))[_0x5b42f8(0x55f)](()=>{const _0x51183c=_0x5b42f8;this[_0x51183c(0x2fa)]();}))),this[_0x5b42f8(0x417)]((0x0,_0x3a2278[_0x5b42f8(0x3af)])(this[_0x5b42f8(0x428)]['editingParams$'][_0x5b42f8(0x456)]((0x0,_0x45614e[_0x5b42f8(0x2a9)])(this['dispose$']))[_0x5b42f8(0x55f)](()=>{this['_syncContext']();}))),this[_0x5b42f8(0x2fa)]();}[_0x2fba6e(0x2fa)](){const _0x330703=_0x2fba6e;var _0x2c896b,_0x1308e3;let _0x1f45be=this[_0x330703(0x5a0)][_0x330703(0x39a)](),_0x25d242=this[_0x330703(0x428)][_0x330703(0x29c)](),_0x42edc2=_0x25d242!=null&&_0x25d242[_0x330703(0x33f)]?_0x25d242['shapeId']:_0x1f45be['activeEditingId'],_0x42212e=_0x1f45be['focusedId']??_0x1f45be['selectedIds'][0x0],_0x4e5926=_0x1f45be['context']??{'unitId':this['_renderContext'][_0x330703(0x3b0)],'subUnitId':this[_0x330703(0x595)][_0x330703(0x32a)]['getActivePageId']()},_0x49b560=this[_0x330703(0x21c)]&&!!_0x42212e&&_0x1f45be[_0x330703(0x369)]['length']===0x1&&!_0x42edc2&&!_0x1f45be['isTransforming'],_0x1ac89c=this['_isActive']?this[_0x330703(0x4ec)][_0x330703(0x5d8)](_0x4e5926[_0x330703(0x3b0)],_0x4e5926['subUnitId']):{};this[_0x330703(0x5ec)]['setContextValue'](_0x357132,_0x49b560&&!!(0x0,_0x6837b2[_0x330703(0x258)])((_0x2c896b=_0x1ac89c[_0x42212e])==null?void 0x0:_0x2c896b[_0x330703(0x21f)])),this[_0x330703(0x5ec)][_0x330703(0x5ba)](_0x2e6338,this[_0x330703(0x21c)]&&_0x1f45be['selectedIds'][_0x330703(0x333)]===0x0&&!_0x1f45be[_0x330703(0x4e4)]&&!_0x42edc2&&!_0x1f45be[_0x330703(0x30f)]),this['_contextService'][_0x330703(0x5ba)](_0x442ea6,!!_0x42edc2&&!!(0x0,_0x6837b2['getMindMapNodeMeta'])((_0x1308e3=_0x1ac89c[_0x42edc2])==null?void 0x0:_0x1308e3['element']));}[_0x2fba6e(0x450)](){const _0x2cb53a=_0x2fba6e;this[_0x2cb53a(0x366)](),super[_0x2cb53a(0x450)]();}['_resetContext'](){const _0x51a1ef=_0x2fba6e;_0x3231f4[_0x51a1ef(0x3d8)](_0xe2cb52=>this[_0x51a1ef(0x5ec)][_0x51a1ef(0x5ba)](_0xe2cb52,!0x1));}};_0x2f7b05=_0x19a741([_0x32dcf8(0x1,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x22188d[_0x2fba6e(0x37e)])),_0x32dcf8(0x2,(0x0,_0x3a2278['Inject'])(_0x23cfd0['IBoardElementStateService'])),_0x32dcf8(0x3,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x23cfd0['BoardTextEditingService'])),_0x32dcf8(0x4,_0x3a2278[_0x2fba6e(0x4a2)])],_0x2f7b05);var _0x1d8b31=class extends _0x31b33f{async['_handlePointerDown'](_0x393893,_0x3e92e6,_0xeb874d){const _0x17d641=_0x2fba6e;await this[_0x17d641(0x562)](_0x393893,_0x3e92e6,_0xeb874d);}};let _0x488fdf={'id':_0x2fba6e(0x3a5),'type':_0x3a2278[_0x2fba6e(0x4e7)][_0x2fba6e(0x4ee)],'handler':(_0x4786ee,_0x13bb06)=>!!(_0x13bb06!=null&&_0x13bb06[_0x2fba6e(0x3b0)])&&!!_0x13bb06[_0x2fba6e(0x363)]&&!!_0x13bb06['scopeId']},_0x5e58ee='board.mind-map.panel',_0x26df92=[_0x2fba6e(0x39f),_0x2fba6e(0x1e2),_0x2fba6e(0x24f)];_0x6837b2['MIND_MAP_DEFAULT_LAYOUT'][_0x2fba6e(0x5d5)],_0x6837b2[_0x2fba6e(0x5b2)][_0x2fba6e(0x21d)],_0x6837b2[_0x2fba6e(0x5b2)][_0x2fba6e(0x217)];let _0x40bda5=[{'labelKey':'boards-mind-ui.panel.spacing.parentGap','key':'horizontalGap',..._0x6837b2[_0x2fba6e(0x22e)]['horizontalGap']},{'labelKey':'boards-mind-ui.panel.spacing.siblingGap','key':_0x2fba6e(0x21d),..._0x6837b2['MIND_MAP_LAYOUT_SPACING_LIMITS'][_0x2fba6e(0x21d)]},{'labelKey':'boards-mind-ui.panel.spacing.branchGap','key':_0x2fba6e(0x217),..._0x6837b2[_0x2fba6e(0x22e)][_0x2fba6e(0x217)]}],_0x14bc23=[{'labelKey':_0x2fba6e(0x593),'value':'right'},{'labelKey':_0x2fba6e(0x537),'value':_0x2fba6e(0x5c2)},{'labelKey':_0x2fba6e(0x495),'value':_0x2fba6e(0x1e5)}],_0x234253=[{'labelKey':_0x2fba6e(0x5ea),'value':'mindmap-horizontal'},{'labelKey':_0x2fba6e(0x29a),'value':_0x2fba6e(0x4bf)},{'labelKey':_0x2fba6e(0x4bb),'value':_0x2fba6e(0x2cc)},{'labelKey':_0x2fba6e(0x427),'value':_0x2fba6e(0x316)},{'labelKey':'boards-mind-ui.panel.structureKind.treeAlternate','value':_0x2fba6e(0x25c)},{'labelKey':_0x2fba6e(0x422),'value':'timeline-horizontal'},{'labelKey':'boards-mind-ui.panel.structureKind.timelineVertical','value':_0x2fba6e(0x216)}],_0x143804=[{'labelKey':_0x2fba6e(0x42c),'value':'curve'},{'labelKey':'boards-mind-ui.panel.branchLineType.roundedOrthogonal','value':_0x2fba6e(0x292)},{'labelKey':_0x2fba6e(0x56c),'value':_0x2fba6e(0x2b7)}];function _0x2acf3b(_0xf97937){const _0x3adad2=_0x2fba6e;let _0x3ab21c=(_0xf97937==null?void 0x0:_0xf97937[_0x3adad2(0x1f8)])??_0x6837b2['MIND_MAP_DEFAULT_LAYOUT'][_0x3adad2(0x1f8)];return{'spacing':{'horizontalGap':(_0xf97937==null?void 0x0:_0xf97937['horizontalGap'])??_0x6837b2[_0x3adad2(0x5b2)][_0x3adad2(0x5d5)],'siblingGap':(_0xf97937==null?void 0x0:_0xf97937[_0x3adad2(0x21d)])??_0x6837b2[_0x3adad2(0x5b2)]['siblingGap'],'branchGap':(_0xf97937==null?void 0x0:_0xf97937['branchGap'])??_0x6837b2[_0x3adad2(0x5b2)][_0x3adad2(0x217)]},'direction':(_0xf97937==null?void 0x0:_0xf97937['direction'])??_0x6837b2[_0x3adad2(0x5b2)][_0x3adad2(0x4c4)],'structureKind':_0x3ab21c,'branchLineType':(0x0,_0x6837b2['resolveMindMapBranchLineTypeForStructure'])(_0x3ab21c,_0xf97937==null?void 0x0:_0xf97937[_0x3adad2(0x3cd)])};}async function _0x58c515(_0x8d31ab,_0x1353dd){const _0x3e369c=_0x2fba6e;return await Promise[_0x3e369c(0x52b)](_0x8d31ab['executeCommand'](_0x6837b2['ChangeMindMapLayoutOperation']['id'],_0x1353dd))?(await Promise['resolve'](_0x8d31ab[_0x3e369c(0x4ad)](_0x6837b2[_0x3e369c(0x543)]['id'],{'unitId':_0x1353dd[_0x3e369c(0x3b0)],'subUnitId':_0x1353dd[_0x3e369c(0x363)],'scopeId':_0x1353dd['scopeId']})),!0x0):!0x1;}async function _0x220aeb(_0x193975,_0x424819){const _0x1792c9=_0x2fba6e;return await Promise[_0x1792c9(0x52b)](_0x193975['executeCommand'](_0x6837b2[_0x1792c9(0x4f6)]['id'],_0x424819))?(await Promise['resolve'](_0x193975[_0x1792c9(0x4ad)](_0x6837b2[_0x1792c9(0x543)]['id'],{'unitId':_0x424819[_0x1792c9(0x3b0)],'subUnitId':_0x424819['subUnitId'],'scopeId':_0x424819[_0x1792c9(0x5c3)]})),!0x0):!0x1;}async function _0x3671da(_0x2bf9f4,_0x5ad1ee){const _0x1bdfd9=_0x2fba6e;return await Promise[_0x1bdfd9(0x52b)](_0x2bf9f4['executeCommand'](_0x6837b2[_0x1bdfd9(0x4d9)]['id'],{'unitId':_0x5ad1ee[_0x1bdfd9(0x3b0)],'subUnitId':_0x5ad1ee[_0x1bdfd9(0x363)],'scopeId':_0x5ad1ee['scopeId'],..._0x5ad1ee[_0x1bdfd9(0x5d5)]===void 0x0?{}:{'horizontalGap':_0x5ad1ee[_0x1bdfd9(0x5d5)]},..._0x5ad1ee[_0x1bdfd9(0x21d)]===void 0x0?{}:{'siblingGap':_0x5ad1ee['siblingGap']},..._0x5ad1ee['branchGap']===void 0x0?{}:{'branchGap':_0x5ad1ee[_0x1bdfd9(0x217)]}}))?(await Promise[_0x1bdfd9(0x52b)](_0x2bf9f4[_0x1bdfd9(0x4ad)](_0x6837b2[_0x1bdfd9(0x543)]['id'],{'unitId':_0x5ad1ee[_0x1bdfd9(0x3b0)],'subUnitId':_0x5ad1ee[_0x1bdfd9(0x363)],'scopeId':_0x5ad1ee[_0x1bdfd9(0x5c3)]})),!0x0):!0x1;}async function _0x1b3168(_0x40dd59,_0x20a4de){const _0x5dd129=_0x2fba6e;return _0x20a4de[_0x5dd129(0x55a)]===_0x20a4de[_0x5dd129(0x225)]||!await Promise[_0x5dd129(0x52b)](_0x40dd59[_0x5dd129(0x4ad)](_0x6837b2[_0x5dd129(0x41b)]['id'],{'unitId':_0x20a4de[_0x5dd129(0x3b0)],'subUnitId':_0x20a4de[_0x5dd129(0x363)],'nodeId':_0x20a4de[_0x5dd129(0x55a)],'targetNodeId':_0x20a4de[_0x5dd129(0x225)],'referenceNodeId':_0x20a4de['targetNodeId'],'placement':_0x20a4de[_0x5dd129(0x4c5)]}))?!0x1:(await Promise[_0x5dd129(0x52b)](_0x40dd59['executeCommand'](_0x6837b2[_0x5dd129(0x543)]['id'],{'unitId':_0x20a4de[_0x5dd129(0x3b0)],'subUnitId':_0x20a4de[_0x5dd129(0x363)],'scopeId':_0x20a4de['scopeId']})),!0x0);}async function _0x24c7be(_0x882d72,_0x119bb3){const _0x2c80be=_0x2fba6e;let _0xe6fc9d=_0x119bb3[_0x2c80be(0x2e1)]['trim']();return!_0xe6fc9d||!await Promise['resolve'](_0x882d72[_0x2c80be(0x4ad)](_0x6837b2['UpdateMindMapNodeOperation']['id'],{'unitId':_0x119bb3[_0x2c80be(0x3b0)],'subUnitId':_0x119bb3['subUnitId'],'nodeId':_0x119bb3[_0x2c80be(0x55a)],'text':_0xe6fc9d}))?!0x1:(await Promise['resolve'](_0x882d72['executeCommand'](_0x6837b2[_0x2c80be(0x543)]['id'],{'unitId':_0x119bb3[_0x2c80be(0x3b0)],'subUnitId':_0x119bb3[_0x2c80be(0x363)],'scopeId':_0x119bb3[_0x2c80be(0x5c3)]})),!0x0);}async function _0x5b4c82(_0x274e5e){const _0x2ba95e=_0x2fba6e;var _0x2aba87;let _0xba9c1=(_0x2aba87=globalThis['navigator'])==null?void 0x0:_0x2aba87[_0x2ba95e(0x4d1)];return _0xba9c1!=null&&_0xba9c1[_0x2ba95e(0x3a2)]?(await _0xba9c1[_0x2ba95e(0x3a2)](_0x274e5e),!0x0):!0x1;}async function _0x367dc1(_0x560f15,_0x2a451e,_0x332da2=_0x5b4c82){const _0x2d4bc8=_0x2fba6e;let _0x2bd482=await Promise[_0x2d4bc8(0x52b)](_0x560f15[_0x2d4bc8(0x4ad)](_0x6837b2[_0x2d4bc8(0x378)]['id'],_0x2a451e));if(typeof _0x2bd482!=_0x2d4bc8(0x43d)||!_0x2bd482)return!0x1;try{return await _0x332da2(_0x2bd482)!==!0x1;}catch{return!0x1;}}async function _0x4e8940(_0x2cfd04,_0x1a0a4c){const _0x38397f=_0x2fba6e;return _0x1a0a4c[_0x38397f(0x466)][_0x38397f(0x232)]()?(await _0x2cfd04['executeCommand'](_0x6837b2[_0x38397f(0x493)]['id'],_0x1a0a4c))[_0x38397f(0x207)]:!0x1;}function _0x7bed69(_0x500379,_0x1601d2){const _0x61221=_0x2fba6e;let _0x3b6fbe=_0x61221(0x376)in _0x500379[_0x61221(0x21f)]?_0x500379[_0x61221(0x21f)]['shapeData'][_0x61221(0x252)]:void 0x0;return(_0x3b6fbe==null?void 0x0:_0x3b6fbe['text'])||_0x1601d2;}function _0x3382bf(_0x345b40,_0x324241,_0x112692=_0x6837b2[_0x2fba6e(0x354)]){const _0x1e039e=_0x2fba6e;let _0x450c6d=Object[_0x1e039e(0x2dd)](_0x345b40)[_0x1e039e(0x3ff)](_0x4284ac=>{const _0x398e2c=_0x1e039e;let _0x3ec945=(0x0,_0x6837b2['getMindMapNodeMeta'])(_0x4284ac[_0x398e2c(0x21f)]);return(_0x3ec945==null?void 0x0:_0x3ec945[_0x398e2c(0x2b3)])===_0x324241?{'data':_0x4284ac,'meta':_0x3ec945}:null;})[_0x1e039e(0x412)](_0x1a8c35=>!!_0x1a8c35),_0x505811=new Map();_0x450c6d[_0x1e039e(0x3d8)](_0x273c7a=>{const _0x439764=_0x1e039e;let _0x31f300=_0x273c7a[_0x439764(0x49e)][_0x439764(0x1e6)];_0x505811[_0x439764(0x566)](_0x31f300,[..._0x505811[_0x439764(0x383)](_0x31f300)??[],_0x273c7a]);}),_0x505811[_0x1e039e(0x3d8)](_0x189ad1=>{const _0x2bdf0f=_0x1e039e;_0x189ad1['sort']((_0x32fcae,_0x16790e)=>(0x0,_0x6837b2[_0x2bdf0f(0x395)])(_0x32fcae[_0x2bdf0f(0x49e)]['orderKey'],_0x16790e[_0x2bdf0f(0x49e)][_0x2bdf0f(0x542)])||_0x32fcae[_0x2bdf0f(0x250)]['elementId']['localeCompare'](_0x16790e['data']['elementId']));});let _0x71c1df=[],_0x3556db=(_0x237c6a,_0x7ce938)=>{const _0xe95feb=_0x1e039e;(_0x505811[_0xe95feb(0x383)](_0x237c6a)??[])[_0xe95feb(0x3d8)](_0x233bfb=>{const _0x8e5e0a=_0xe95feb;_0x71c1df[_0x8e5e0a(0x394)]({'nodeId':_0x233bfb[_0x8e5e0a(0x250)]['elementId'],'depth':_0x7ce938,'text':_0x7bed69(_0x233bfb[_0x8e5e0a(0x250)],_0x112692)}),_0x3556db(_0x233bfb['data'][_0x8e5e0a(0x289)],_0x7ce938+0x1);});};return _0x3556db(null,0x0),_0x71c1df;}function _0x23bdf0(_0x4270c6,_0x5986f2){const _0x4e8a3d=_0x2fba6e;let _0x146871=_0x5986f2['trim']()[_0x4e8a3d(0x5db)]();return _0x146871?_0x4270c6[_0x4e8a3d(0x412)](_0x5ac12c=>_0x5ac12c['text']['toLowerCase']()[_0x4e8a3d(0x2e6)](_0x146871)):_0x4270c6;}function _0x495cbd(_0x3f8a5f){return{'paddingInlineStart':0x8+(Number['isFinite'](_0x3f8a5f)&&_0x3f8a5f>0x0?_0x3f8a5f:0x0)*0x10};}function _0xf6eb4(_0xfab2b5){const _0x8feff0=_0x2fba6e;return(0x0,_0x5c99c0[_0x8feff0(0x538)])(_0x403267[_0x8feff0(0x351)],{'className':_0x8feff0(0x3b5),..._0xfab2b5});}function _0x573ce6(_0x500e51){const _0x274be9=_0x2fba6e;return(0x0,_0x5c99c0[_0x274be9(0x1fb)])(_0x274be9(0x490),{'className':_0x274be9(0x338),'data-board-mind-map-panel-section':_0x274be9(0x5f1),'children':[(0x0,_0x5c99c0['jsx'])('h3',{'className':_0x274be9(0x236),'children':_0x500e51[_0x274be9(0x4b7)]}),_0x500e51[_0x274be9(0x2db)]]});}function _0xff8229(_0x5d2357,_0x24ab30=_0x2fba6e(0x39f)){const _0x61305a=_0x2fba6e;var _0x43f0ba,_0x2b53c7,_0x1838e8;let _0x1445f6=(0x0,_0x4468ef['useDependency'])(_0x3a2278['ICommandService']),_0x3087ff=(0x0,_0x4468ef[_0x61305a(0x2be)])(_0x23cfd0[_0x61305a(0x3a4)]),_0x20c907=(0x0,_0x4468ef[_0x61305a(0x2be)])(_0x22188d[_0x61305a(0x37e)]),_0x32cd8b=(0x0,_0x4468ef[_0x61305a(0x2be)])(_0x3a2278['LocaleService']),[,_0x32ecc1]=(0x0,_0x3b9d96['useReducer'])(_0x10f034=>_0x10f034+0x1,0x0);(0x0,_0x3b9d96[_0x61305a(0x44c)])(()=>{const _0x3d1ee5=_0x61305a;let _0x574be0=(0x0,_0x45614e[_0x3d1ee5(0x3d5)])(_0x20c907[_0x3d1ee5(0x295)],_0x20c907[_0x3d1ee5(0x59e)],_0x20c907[_0x3d1ee5(0x23c)])['subscribe'](_0x217ec8=>{const _0xd0051d=_0x3d1ee5;_0x217ec8[_0xd0051d(0x501)](_0x753be4=>_0x753be4[_0xd0051d(0x3b0)]===_0x5d2357['unitId']&&_0x753be4[_0xd0051d(0x363)]===_0x5d2357['subUnitId'])&&_0x32ecc1();});return()=>_0x574be0[_0x3d1ee5(0x50b)]();},[_0x20c907,_0x5d2357[_0x61305a(0x3b0)],_0x5d2357['subUnitId']]);let _0x36aa52=_0x20c907[_0x61305a(0x5d8)](_0x5d2357[_0x61305a(0x3b0)],_0x5d2357['subUnitId']),_0x11670b=_0x3382bf(_0x36aa52,_0x5d2357[_0x61305a(0x5c3)],_0x32cd8b['t'](_0x61305a(0x3ba))),_0xca443=(_0x43f0ba=(0x0,_0x6837b2[_0x61305a(0x205)])((_0x2b53c7=_0x36aa52[_0x5d2357[_0x61305a(0x5c3)]])==null?void 0x0:_0x2b53c7[_0x61305a(0x21f)]))==null?void 0x0:_0x43f0ba[_0x61305a(0x1e2)],[_0x42f7e3,_0x2f58ca]=(0x0,_0x3b9d96[_0x61305a(0x3a8)])(''),[_0x484132,_0x49c361]=(0x0,_0x3b9d96[_0x61305a(0x3a8)])(null),[_0x44da5b,_0xa930ab]=(0x0,_0x3b9d96[_0x61305a(0x3a8)])(''),{spacing:_0x552171,direction:_0x463201,structureKind:_0x5b00dc,branchLineType:_0x1e2bbf}=_0x2acf3b(_0xca443),[_0x481ebd,_0x2c35cd]=(0x0,_0x3b9d96[_0x61305a(0x3a8)])(null),[_0x535817,_0x43f554]=(0x0,_0x3b9d96[_0x61305a(0x3a8)])(_0x24ab30),_0x25075c=_0x23bdf0(_0x11670b,_0x42f7e3),_0x4e113a={'unitId':_0x5d2357['unitId'],'subUnitId':_0x5d2357[_0x61305a(0x363)],'scopeId':_0x5d2357[_0x61305a(0x5c3)]};return{'commandService':_0x1445f6,'elementStateService':_0x3087ff,'localeService':_0x32cd8b,'query':_0x42f7e3,'setQuery':_0x2f58ca,'editingOutlineNode':_0x484132,'setEditingOutlineNode':_0x49c361,'opmlText':_0x44da5b,'setOpmlText':_0xa930ab,'spacing':_0x552171,'layoutDirection':_0x463201,'structureKind':_0x5b00dc,'branchLineType':_0x1e2bbf,'setDraggedOutlineNodeId':_0x2c35cd,'activeTab':_0x535817,'setActiveTab':_0x43f554,'visibleOutlineItems':_0x25075c,'baseParams':_0x4e113a,'tabItems':_0x26df92[_0x61305a(0x3ff)](_0x139b75=>({'label':_0x32cd8b['t'](_0x61305a(0x4b8)+_0x139b75),'value':_0x139b75})),'selectedNode':_0x5d2357[_0x61305a(0x55a)]?(_0x1838e8=_0x36aa52[_0x5d2357['nodeId']])==null?void 0x0:_0x1838e8[_0x61305a(0x21f)]:void 0x0,'branchLineItems':_0x143804[_0x61305a(0x412)](_0x37977f=>_0x37977f[_0x61305a(0x360)]!=='curve'||(0x0,_0x6837b2[_0x61305a(0x2f8)])(_0x5b00dc)),'changeLayout':_0x4723e2=>_0x58c515(_0x1445f6,{..._0x4e113a,'direction':_0x4723e2}),'changeStructureKind':_0xa49ef=>{const _0x5e49a7=_0x61305a;let _0x4d294f=(0x0,_0x6837b2[_0x5e49a7(0x356)])(_0xa49ef,_0x1e2bbf);return _0x58c515(_0x1445f6,{..._0x4e113a,'structureKind':_0xa49ef,..._0x4d294f===_0x1e2bbf?null:{'branchLineType':_0x4d294f}});},'changeBranchLineType':_0x31345=>{let _0x24da22=(0x0,_0x6837b2['resolveMindMapBranchLineTypeForStructure'])(_0x5b00dc,_0x31345);return _0x220aeb(_0x1445f6,{..._0x4e113a,'branchLineType':_0x24da22});},'changeSpacing':(_0x1e0f30,_0x35b804)=>{let _0x4c79f3={..._0x552171,[_0x1e0f30]:_0x35b804};return _0x3671da(_0x1445f6,{..._0x4e113a,..._0x4c79f3});},'importOpml':()=>{const _0xb6f610=_0x61305a;_0x4e8940(_0x1445f6,{'unitId':_0x5d2357['unitId'],'subUnitId':_0x5d2357[_0xb6f610(0x363)],'left':0x78,'top':0x78,'opml':_0x44da5b})[_0xb6f610(0x2ea)](_0x15e201=>{_0x15e201&&_0xa930ab('');});},'exportOpml':()=>_0x367dc1(_0x1445f6,_0x4e113a),'startRenameNode':(_0x658be2,_0x19b92c)=>{_0x49c361({'nodeId':_0x658be2,'text':_0x19b92c});},'commitRenameNode':()=>{const _0x333910=_0x61305a;_0x484132&&_0x24c7be(_0x1445f6,{..._0x4e113a,'nodeId':_0x484132[_0x333910(0x55a)],'text':_0x484132[_0x333910(0x2e1)]})['then'](_0x3f1034=>{_0x3f1034&&_0x49c361(null);});},'reorderNode':(_0x1a056f,_0x1a0c0c)=>{const _0x47239a=_0x61305a;if(_0x1a056f[_0x47239a(0x40b)](),!_0x481ebd||_0x481ebd===_0x1a0c0c)return;let _0x1815d1=_0x1a056f[_0x47239a(0x224)][_0x47239a(0x441)](),_0x253090=_0x1a056f[_0x47239a(0x392)]<_0x1815d1[_0x47239a(0x29b)]+_0x1815d1['height']/0x2?_0x47239a(0x421):_0x47239a(0x2a6);_0x2c35cd(null),_0x1b3168(_0x1445f6,{..._0x4e113a,'nodeId':_0x481ebd,'targetNodeId':_0x1a0c0c,'placement':_0x253090});}};}function _0x2c1504(_0x316b36){const _0x70c1af=_0x2fba6e;let {elementStateService:_0x23645d,localeService:_0x40a013,query:_0x5c43e7,setQuery:_0x63e8da,editingOutlineNode:_0x170c7b,setEditingOutlineNode:_0xf3ef49,opmlText:_0x2ba40c,setOpmlText:_0x57b9a2,spacing:_0x39a7eb,layoutDirection:_0x501c30,structureKind:_0x117505,branchLineType:_0x1dfdbf,setDraggedOutlineNodeId:_0x10cd11,activeTab:_0x2ed5c1,setActiveTab:_0x16d4d0,visibleOutlineItems:_0x403196,tabItems:_0x455f92,branchLineItems:_0x4409f8,changeLayout:_0xe30bdc,changeStructureKind:_0x5e4c11,changeBranchLineType:_0x4aba1b,changeSpacing:_0x5efee9,importOpml:_0x31c42,exportOpml:_0x3594c5,startRenameNode:_0x15dafa,commitRenameNode:_0xdd044c,reorderNode:_0xecd9c2}=_0xff8229(_0x316b36);return(0x0,_0x5c99c0[_0x70c1af(0x1fb)])('div',{'className':_0x70c1af(0x24c),'data-board-mind-map-panel':_0x70c1af(0x5f1),'children':[(0x0,_0x5c99c0[_0x70c1af(0x538)])(_0x70c1af(0x559),{'className':'univer-py-3','data-board-mind-map-panel-tabs':_0x70c1af(0x5f1),'children':(0x0,_0x5c99c0[_0x70c1af(0x538)])(_0xf6eb4,{'items':_0x455f92,'value':_0x2ed5c1,'onChange':_0x49cae2=>_0x16d4d0(_0x49cae2)})}),_0x2ed5c1===_0x70c1af(0x39f)&&(0x0,_0x5c99c0[_0x70c1af(0x538)])(_0x573ce6,{'title':_0x40a013['t'](_0x70c1af(0x586)),'children':(0x0,_0x5c99c0['jsxs'])(_0x70c1af(0x559),{'children':[(0x0,_0x5c99c0[_0x70c1af(0x538)])(_0x403267[_0x70c1af(0x230)],{'slot':(0x0,_0x5c99c0['jsx'])(_0x3f4d53,{}),'value':_0x5c43e7,'placeholder':_0x40a013['t'](_0x70c1af(0x4dc)),'className':(0x0,_0x403267[_0x70c1af(0x43a)])(_0x70c1af(0x2bc),!0x1),'onChange':_0x63e8da}),_0x403196['length']?(0x0,_0x5c99c0[_0x70c1af(0x538)])('ol',{'className':_0x70c1af(0x1f5),'children':_0x403196[_0x70c1af(0x3ff)](_0x4e255f=>(0x0,_0x5c99c0[_0x70c1af(0x538)])('li',{'draggable':!0x0,'className':_0x70c1af(0x5d1),'style':_0x495cbd(_0x4e255f[_0x70c1af(0x43e)]),'onDragStart':_0x4e77a5=>{const _0x17aaab=_0x70c1af;var _0x40d76f;_0x10cd11(_0x4e255f[_0x17aaab(0x55a)]),(_0x40d76f=_0x4e77a5[_0x17aaab(0x4b3)])==null||_0x40d76f[_0x17aaab(0x411)]('text/plain',_0x4e255f[_0x17aaab(0x55a)]),_0x4e77a5[_0x17aaab(0x4b3)]&&(_0x4e77a5[_0x17aaab(0x4b3)][_0x17aaab(0x494)]='move');},'onDragOver':_0x2009f1=>{const _0x129e9e=_0x70c1af;_0x2009f1[_0x129e9e(0x40b)](),_0x2009f1[_0x129e9e(0x4b3)]&&(_0x2009f1[_0x129e9e(0x4b3)]['dropEffect']=_0x129e9e(0x522));},'onDrop':_0xead64f=>_0xecd9c2(_0xead64f,_0x4e255f[_0x70c1af(0x55a)]),'onDragEnd':()=>_0x10cd11(null),'children':(_0x170c7b==null?void 0x0:_0x170c7b[_0x70c1af(0x55a)])===_0x4e255f[_0x70c1af(0x55a)]?(0x0,_0x5c99c0[_0x70c1af(0x1fb)])(_0x70c1af(0x559),{'className':(0x0,_0x403267[_0x70c1af(0x43a)])(_0x70c1af(0x322),_0x70c1af(0x31c)),'children':[(0x0,_0x5c99c0[_0x70c1af(0x538)])(_0x403267[_0x70c1af(0x230)],{'autoFocus':!0x0,'size':_0x70c1af(0x56f),'className':void 0x0,'value':_0x170c7b[_0x70c1af(0x2e1)],'onChange':_0x310ed4=>_0xf3ef49({'nodeId':_0x4e255f[_0x70c1af(0x55a)],'text':_0x310ed4}),'onKeyDown':_0x52024c=>{const _0x584862=_0x70c1af;_0x52024c[_0x584862(0x41a)]===_0x584862(0x565)&&_0xdd044c(),_0x52024c['key']===_0x584862(0x578)&&_0xf3ef49(null);}}),(0x0,_0x5c99c0['jsx'])(_0x403267[_0x70c1af(0x321)],{'className':void 0x0,'size':_0x70c1af(0x56f),'variant':_0x70c1af(0x26c),'disabled':!_0x170c7b['text'][_0x70c1af(0x232)](),'onClick':_0xdd044c,'children':_0x40a013['t'](_0x70c1af(0x3c1))}),(0x0,_0x5c99c0[_0x70c1af(0x538)])(_0x403267[_0x70c1af(0x321)],{'className':void 0x0,'size':_0x70c1af(0x56f),'variant':_0x70c1af(0x462),'onClick':()=>_0xf3ef49(null),'children':_0x40a013['t'](_0x70c1af(0x49a))})]}):(0x0,_0x5c99c0[_0x70c1af(0x1fb)])(_0x5c99c0[_0x70c1af(0x399)],{'children':[(0x0,_0x5c99c0[_0x70c1af(0x538)])(_0x403267['Button'],{'size':_0x70c1af(0x56f),'variant':_0x70c1af(0x1f2),'className':(0x0,_0x403267['clsx'])(_0x70c1af(0x57a),!0x1),'onClick':()=>_0x23645d['selectElements']({'unitId':_0x316b36[_0x70c1af(0x3b0)],'subUnitId':_0x316b36[_0x70c1af(0x363)]},[_0x4e255f['nodeId']],_0x4e255f[_0x70c1af(0x55a)]),'children':_0x4e255f[_0x70c1af(0x2e1)]}),(0x0,_0x5c99c0['jsx'])(_0x403267[_0x70c1af(0x321)],{'className':(0x0,_0x403267[_0x70c1af(0x43a)])(_0x70c1af(0x379),_0x70c1af(0x587)),'size':_0x70c1af(0x56f),'variant':_0x70c1af(0x462),'onClick':()=>_0x15dafa(_0x4e255f[_0x70c1af(0x55a)],_0x4e255f[_0x70c1af(0x2e1)]),'children':_0x40a013['t'](_0x70c1af(0x3c1))})]})},_0x4e255f[_0x70c1af(0x55a)]))}):(0x0,_0x5c99c0[_0x70c1af(0x538)])('div',{'className':_0x70c1af(0x37b),'data-board-mind-map-panel-empty-state':_0x70c1af(0x5f1),'children':_0x40a013['t'](_0x70c1af(0x34b))})]})}),_0x2ed5c1===_0x70c1af(0x1e2)&&(0x0,_0x5c99c0[_0x70c1af(0x538)])(_0x573ce6,{'title':_0x40a013['t']('boards-mind-ui.panel.tab.layout'),'children':(0x0,_0x5c99c0[_0x70c1af(0x1fb)])(_0x70c1af(0x559),{'className':'univer-space-y-3','children':[(0x0,_0x5c99c0['jsx'])(_0x70c1af(0x559),{'className':'univer-flex\x20univer-gap-2','children':(0x0,_0x5c99c0[_0x70c1af(0x538)])(_0x403267[_0x70c1af(0x407)],{'className':_0x70c1af(0x4ac),'aria-label':_0x40a013['t'](_0x70c1af(0x2b0)),'options':_0x234253['map'](_0x15e3a6=>({'label':_0x40a013['t'](_0x15e3a6[_0x70c1af(0x4ce)]),'value':_0x15e3a6[_0x70c1af(0x360)]})),'value':_0x117505,'onChange':_0x417308=>_0x5e4c11(_0x417308)})}),(0x0,_0x5c99c0['jsx'])('div',{'className':_0x70c1af(0x362),'children':(0x0,_0x5c99c0[_0x70c1af(0x538)])(_0xf6eb4,{'items':_0x14bc23['map'](_0x194687=>({'label':_0x40a013['t'](_0x194687[_0x70c1af(0x4ce)]),'value':_0x194687[_0x70c1af(0x360)]})),'value':_0x501c30,'onChange':_0x6131fc=>_0xe30bdc(_0x6131fc)})}),(0x0,_0x5c99c0[_0x70c1af(0x538)])(_0x70c1af(0x559),{'className':'univer-flex\x20univer-gap-2','children':(0x0,_0x5c99c0[_0x70c1af(0x538)])(_0xf6eb4,{'items':_0x4409f8[_0x70c1af(0x3ff)](_0x5b9f9b=>({'label':_0x40a013['t'](_0x5b9f9b['labelKey']),'value':_0x5b9f9b['value']})),'value':_0x1dfdbf,'onChange':_0x43341b=>_0x4aba1b(_0x43341b)})}),(0x0,_0x5c99c0['jsx'])(_0x70c1af(0x559),{'className':_0x70c1af(0x5e5),'children':_0x40bda5[_0x70c1af(0x3ff)](({labelKey:_0xee3f6c,key:_0x584f2c,min:_0x3ba0e4,max:_0x362587})=>(0x0,_0x5c99c0[_0x70c1af(0x1fb)])(_0x70c1af(0x308),{'className':_0x70c1af(0x5a7),'children':[(0x0,_0x5c99c0[_0x70c1af(0x538)])(_0x70c1af(0x547),{'className':_0x70c1af(0x5be),'children':_0x40a013['t'](_0xee3f6c)}),(0x0,_0x5c99c0[_0x70c1af(0x538)])(_0x403267[_0x70c1af(0x442)],{'controls':!0x0,'inputClassName':void 0x0,'min':_0x3ba0e4,'max':_0x362587,'step':0x4,'value':_0x39a7eb[_0x584f2c],'precision':0x0,'className':'univer-w-24','onChange':_0x44d741=>_0x5efee9(_0x584f2c,Number(_0x44d741??_0x3ba0e4))})]},_0x584f2c))})]})}),_0x2ed5c1==='importExport'&&(0x0,_0x5c99c0[_0x70c1af(0x538)])(_0x573ce6,{'title':_0x40a013['t']('boards-mind-ui.panel.tab.importExport'),'children':(0x0,_0x5c99c0[_0x70c1af(0x1fb)])('div',{'className':_0x70c1af(0x3f9),'children':[(0x0,_0x5c99c0[_0x70c1af(0x538)])(_0x403267[_0x70c1af(0x206)],{'className':(0x0,_0x403267['clsx'])(_0x70c1af(0x545),_0x70c1af(0x587)),'placeholder':_0x40a013['t'](_0x70c1af(0x590)),'value':_0x2ba40c,'onValueChange':_0x57b9a2}),(0x0,_0x5c99c0[_0x70c1af(0x1fb)])('div',{'className':_0x70c1af(0x362),'children':[(0x0,_0x5c99c0[_0x70c1af(0x538)])(_0x403267['Button'],{'className':void 0x0,'size':'small','variant':_0x70c1af(0x26c),'disabled':!_0x2ba40c['trim'](),'onClick':_0x31c42,'children':_0x40a013['t'](_0x70c1af(0x1f3))}),(0x0,_0x5c99c0['jsx'])(_0x403267[_0x70c1af(0x321)],{'className':void 0x0,'size':_0x70c1af(0x56f),'variant':_0x70c1af(0x462),'onClick':_0x3594c5,'children':_0x40a013['t'](_0x70c1af(0x4e5))})]})]})})]});}let _0x46fe81=class extends _0x3a2278['Disposable']{constructor(_0x3a9cf9,_0x37f8b2,_0x328229){const _0x40a8f1=_0x2fba6e;super(),this['_commandService']=_0x3a9cf9,this[_0x40a8f1(0x350)]=_0x37f8b2,this['_sidebarService']=_0x328229,_0x251ac6(this,_0x40a8f1(0x582),null),this[_0x40a8f1(0x417)](this[_0x40a8f1(0x4a0)][_0x40a8f1(0x498)](_0x488fdf)),this[_0x40a8f1(0x417)](this[_0x40a8f1(0x4a0)]['onCommandExecuted'](_0x147a83=>{const _0x1d413b=_0x40a8f1;if(_0x147a83['id']!==_0x488fdf['id'])return;let _0x1371bd=_0x147a83['params'];_0x1371bd&&_0x1d413b(0x3b0)in _0x1371bd&&typeof _0x1371bd[_0x1d413b(0x3b0)]=='string'&&_0x1d413b(0x363)in _0x1371bd&&typeof _0x1371bd['subUnitId']=='string'&&'scopeId'in _0x1371bd&&typeof _0x1371bd[_0x1d413b(0x5c3)]==_0x1d413b(0x43d)&&this[_0x1d413b(0x4d0)]({'unitId':_0x1371bd[_0x1d413b(0x3b0)],'subUnitId':_0x1371bd[_0x1d413b(0x363)],'scopeId':_0x1371bd[_0x1d413b(0x5c3)],'nodeId':_0x1d413b(0x55a)in _0x1371bd&&typeof _0x1371bd[_0x1d413b(0x55a)]==_0x1d413b(0x43d)?_0x1371bd[_0x1d413b(0x55a)]:void 0x0});}));}[_0x2fba6e(0x450)](){const _0x151a2c=_0x2fba6e;var _0x1611ff;(_0x1611ff=this['_sidebarDisposable'])==null||_0x1611ff[_0x151a2c(0x450)](),this[_0x151a2c(0x582)]=null,super[_0x151a2c(0x450)]();}[_0x2fba6e(0x4d0)](_0x298ac0){const _0x357876=_0x2fba6e;var _0x762e9d;let _0x1ccf5c={'label':_0x5e58ee,..._0x298ac0},_0x2d2430={'id':_0x5e58ee,'layout':_0x357876(0x5d7),'header':{'title':this[_0x357876(0x350)]['t'](_0x357876(0x385))},'width':0x184,'children':_0x1ccf5c,'onClose':()=>{const _0x42536a=_0x357876;this[_0x42536a(0x582)]=null;}};(_0x762e9d=this[_0x357876(0x582)])==null||_0x762e9d[_0x357876(0x450)](),this[_0x357876(0x582)]=this['_sidebarService'][_0x357876(0x4d0)](_0x2d2430);}};_0x46fe81=_0x19a741([_0x32dcf8(0x0,_0x3a2278[_0x2fba6e(0x4c8)]),_0x32dcf8(0x1,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x3a2278[_0x2fba6e(0x55c)])),_0x32dcf8(0x2,(0x0,_0x3a2278['Inject'])(_0x4468ef[_0x2fba6e(0x43b)]))],_0x46fe81);function _0x976f98(_0x5eec79){const _0x337b66=_0x2fba6e;let _0x626cb4=(0x0,_0x4468ef[_0x337b66(0x2be)])(_0x3a2278[_0x337b66(0x4c8)]),_0x4d4fc9=_0x5eec79['popup'][_0x337b66(0x39e)];return _0x4d4fc9?(0x0,_0x5c99c0['jsx'])(_0x39938[_0x337b66(0x5ca)],{'shapeRef':{'hostType':_0x3a2278['UniverInstanceType'][_0x337b66(0x309)],'unitId':_0x4d4fc9['unitId'],'subUnitId':_0x4d4fc9[_0x337b66(0x363)],'shapeId':_0x4d4fc9[_0x337b66(0x289)]},'onText':()=>_0x45b0c4(_0x626cb4,_0x337b66(0x4a4)),'onStyle':()=>_0x626cb4['executeCommand'](_0x488fdf['id'],{'unitId':_0x4d4fc9[_0x337b66(0x3b0)],'subUnitId':_0x4d4fc9[_0x337b66(0x363)],'scopeId':_0x4d4fc9['scopeId'],'nodeId':_0x4d4fc9[_0x337b66(0x289)]}),'onDelete':()=>_0x45b0c4(_0x626cb4,'delete')}):null;}function _0x579175(_0x1ed4cd){const _0x576165=_0x2fba6e;var _0x331dd0,_0xb3ce0c,_0x4d2204,_0x1445e2,_0x2d33d0;let _0x22658b=(0x0,_0x4468ef[_0x576165(0x2be)])(_0x3a2278[_0x576165(0x4c8)]),_0x18974b=(0x0,_0x4468ef[_0x576165(0x2be)])(_0x3a2278[_0x576165(0x55c)]),_0x4b8b5a=(0x0,_0x4468ef[_0x576165(0x2be)])(_0x4468ef[_0x576165(0x37f)]),_0x76813e=(0x0,_0x4468ef[_0x576165(0x572)])(_0x4b8b5a[_0x576165(0x226)],_0x4b8b5a['getFonts']()),[_0x332864,_0x6a9a8a]=(0x0,_0x3b9d96[_0x576165(0x3a8)])(null),_0x2a3c45=(0x0,_0x39938[_0x576165(0x503)])(_0x1ed4cd[_0x576165(0x376)]),_0x2ad960=_0x2a3c45['ff']??_0x3c2905['ShapeDefaultConfig'][_0x576165(0x252)][_0x576165(0x3ec)],_0x448fc1=_0x2a3c45['fs']??_0x3c2905['ShapeDefaultConfig']['shapeText'][_0x576165(0x27f)];function _0x3a802b(_0x326ae0){const _0x648355=_0x576165;return _0x22658b[_0x648355(0x4ad)](_0x6837b2[_0x648355(0x2f9)]['id'],{'unitId':_0x1ed4cd[_0x648355(0x3b0)],'subUnitId':_0x1ed4cd[_0x648355(0x363)],'nodeId':_0x1ed4cd['nodeId'],..._0x326ae0});}let _0x3957b0=[{'key':_0x576165(0x23b),'value':((_0x331dd0=_0x1ed4cd[_0x576165(0x376)][_0x576165(0x23b)])==null?void 0x0:_0x331dd0['color'])??_0x3c2905[_0x576165(0x22a)]['fill']},{'key':_0x576165(0x58b),'value':((_0xb3ce0c=_0x1ed4cd['shapeData']['stroke'])==null?void 0x0:_0xb3ce0c[_0x576165(0x482)])??_0x3c2905[_0x576165(0x22a)][_0x576165(0x58b)]},{'key':_0x576165(0x454),'value':((_0x4d2204=_0x2a3c45['cl'])==null?void 0x0:_0x4d2204[_0x576165(0x574)])??_0x3c2905[_0x576165(0x22a)]['shapeText']['color']}];if(_0x332864){var _0xb5681b;return(0x0,_0x5c99c0[_0x576165(0x1fb)])('div',{'className':_0x576165(0x270),'children':[(0x0,_0x5c99c0['jsx'])(_0x403267['Button'],{'className':_0x576165(0x201),'onClick':()=>_0x6a9a8a(null),'size':_0x576165(0x371),'children':_0x18974b['t'](_0x576165(0x49a))}),_0x332864==='fontFamily'?_0x76813e==null?void 0x0:_0x76813e[_0x576165(0x3ff)](_0x1c4692=>(0x0,_0x5c99c0['jsx'])(_0x403267[_0x576165(0x321)],{'className':_0x576165(0x201),'aria-pressed':_0x2ad960===_0x1c4692[_0x576165(0x360)],'variant':_0x2ad960===_0x1c4692['value']?'primary':_0x576165(0x462),'onClick':async()=>{const _0x441e81=_0x576165;await _0x3a802b({'textStyle':{'fontFamily':_0x1c4692[_0x441e81(0x360)]}}),_0x6a9a8a(null);},'size':'middle','children':_0x1c4692[_0x576165(0x308)]},_0x1c4692[_0x576165(0x360)])):(0x0,_0x5c99c0[_0x576165(0x538)])(_0x403267['MobileColorPresets'],{'value':(_0xb5681b=_0x3957b0['find'](({key:_0x21e9e6})=>_0x21e9e6===_0x332864))==null?void 0x0:_0xb5681b['value'],'onSelect':async _0x34f329=>{const _0x3b9a8c=_0x576165;_0x332864===_0x3b9a8c(0x23b)?await _0x3a802b({'fillColor':_0x34f329}):_0x332864===_0x3b9a8c(0x58b)?await _0x3a802b({'strokeColor':_0x34f329}):await _0x3a802b({'textStyle':{'color':_0x34f329}}),_0x6a9a8a(null);}})]});}let _0x3feb6d=[{'key':_0x576165(0x3f8),'active':_0x2a3c45['bl']===_0x3a2278['BooleanNumber'][_0x576165(0x1f9)],'icon':(0x0,_0x5c99c0[_0x576165(0x538)])(_0x5459d0,{})},{'key':_0x576165(0x479),'active':_0x2a3c45['it']===_0x3a2278['BooleanNumber'][_0x576165(0x1f9)],'icon':(0x0,_0x5c99c0[_0x576165(0x538)])(_0x112350,{})},{'key':_0x576165(0x23e),'active':((_0x1445e2=_0x2a3c45['ul'])==null?void 0x0:_0x1445e2['s'])===_0x3a2278[_0x576165(0x384)][_0x576165(0x1f9)],'icon':(0x0,_0x5c99c0[_0x576165(0x538)])(_0x5d7433,{})},{'key':_0x576165(0x339),'active':((_0x2d33d0=_0x2a3c45['st'])==null?void 0x0:_0x2d33d0['s'])===_0x3a2278['BooleanNumber'][_0x576165(0x1f9)],'icon':(0x0,_0x5c99c0[_0x576165(0x538)])(_0x470a4b,{})}];return(0x0,_0x5c99c0[_0x576165(0x1fb)])(_0x576165(0x559),{'className':_0x576165(0x270),'children':[(0x0,_0x5c99c0[_0x576165(0x538)])(_0x576165(0x559),{'className':_0x576165(0x3f3),'children':_0x3feb6d[_0x576165(0x3ff)](({key:_0x3dfa63,active:_0x3331fc,icon:_0x525f48})=>(0x0,_0x5c99c0[_0x576165(0x538)])(_0x403267[_0x576165(0x321)],{'aria-label':_0x18974b['t'](_0x576165(0x4d5)+_0x3dfa63),'aria-pressed':_0x3331fc,'variant':_0x3331fc?'primary':_0x576165(0x462),'onClick':()=>_0x3a802b({'textStyle':{[_0x3dfa63]:!_0x3331fc}}),'size':_0x576165(0x371),'children':_0x525f48},_0x3dfa63))}),(0x0,_0x5c99c0[_0x576165(0x1fb)])(_0x403267[_0x576165(0x321)],{'className':_0x576165(0x345),'onClick':()=>_0x6a9a8a(_0x576165(0x3ec)),'size':_0x576165(0x371),'children':[(0x0,_0x5c99c0[_0x576165(0x538)])(_0x576165(0x547),{'children':_0x18974b['t'](_0x576165(0x561))}),(0x0,_0x5c99c0[_0x576165(0x538)])(_0x576165(0x547),{'children':_0x2ad960})]}),(0x0,_0x5c99c0['jsxs'])(_0x576165(0x308),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-4','children':[(0x0,_0x5c99c0[_0x576165(0x538)])(_0x576165(0x547),{'children':_0x18974b['t'](_0x576165(0x3c4))}),(0x0,_0x5c99c0['jsx'])(_0x403267['InputNumber'],{'className':_0x576165(0x20c),'controls':!0x1,'min':0x1,'value':_0x448fc1,'onChange':_0x1ec711=>{if(_0x1ec711!=null)return _0x3a802b({'textStyle':{'fontSize':_0x1ec711}});},'size':'small'})]}),_0x3957b0['map'](({key:_0x51cb4a,value:_0x1be70c})=>(0x0,_0x5c99c0[_0x576165(0x1fb)])(_0x403267[_0x576165(0x321)],{'className':_0x576165(0x345),'onClick':()=>_0x6a9a8a(_0x51cb4a),'size':_0x576165(0x371),'children':[(0x0,_0x5c99c0[_0x576165(0x538)])(_0x576165(0x547),{'children':_0x18974b['t'](_0x576165(0x513)+_0x51cb4a)}),(0x0,_0x5c99c0['jsx'])(_0x576165(0x547),{'className':'univer-size-6\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200','style':{'backgroundColor':_0x1be70c}})]},_0x51cb4a))]});}function _0x50c103(_0x1eb7ae){const _0x79d7a7=_0x2fba6e;return(0x0,_0x5c99c0[_0x79d7a7(0x538)])(_0x79d7a7(0x559),{'className':(0x0,_0x403267['clsx'])(_0x79d7a7(0x477),_0x1eb7ae[_0x79d7a7(0x413)][_0x79d7a7(0x333)]===0x4?_0x79d7a7(0x3cb):_0x79d7a7(0x276)),'children':_0x1eb7ae['items'][_0x79d7a7(0x3ff)](_0x4a9690=>(0x0,_0x5c99c0[_0x79d7a7(0x538)])(_0x403267['Button'],{'className':_0x79d7a7(0x332),'variant':_0x1eb7ae[_0x79d7a7(0x360)]===_0x4a9690[_0x79d7a7(0x360)]?_0x79d7a7(0x26c):'default','aria-pressed':_0x1eb7ae[_0x79d7a7(0x360)]===_0x4a9690[_0x79d7a7(0x360)],'onClick':()=>_0x1eb7ae[_0x79d7a7(0x31b)](_0x4a9690[_0x79d7a7(0x360)]),'size':_0x79d7a7(0x371),'children':(0x0,_0x5c99c0[_0x79d7a7(0x538)])(_0x79d7a7(0x547),{'className':_0x79d7a7(0x401),'children':_0x4a9690[_0x79d7a7(0x308)]})},_0x4a9690[_0x79d7a7(0x360)]))});}function _0x254aa7(_0x1d008e){const _0x105029=_0x2fba6e;let {commandService:_0xbc35cd,elementStateService:_0x535dab,localeService:_0x3b6961,query:_0x48c669,setQuery:_0x56b6e1,editingOutlineNode:_0x592d6d,setEditingOutlineNode:_0x6e6955,opmlText:_0x2c18f2,setOpmlText:_0x22f609,spacing:_0x42388b,layoutDirection:_0x1552af,structureKind:_0x561a98,branchLineType:_0x4352d8,activeTab:_0x53765e,setActiveTab:_0x35404e,visibleOutlineItems:_0x139676,baseParams:_0x2048a5,tabItems:_0x2de7a0,selectedNode:_0x9dd792,branchLineItems:_0x33b4ee,changeLayout:_0x22feb0,changeStructureKind:_0x550fb4,changeBranchLineType:_0x4794f7,changeSpacing:_0x48e61c,importOpml:_0x160884,startRenameNode:_0x5e777b,commitRenameNode:_0x5edbc7}=_0xff8229(_0x1d008e,_0x1d008e[_0x105029(0x55a)]?'style':_0x105029(0x39f));return(_0x9dd792==null?void 0x0:_0x9dd792[_0x105029(0x3b4)])===_0x22188d[_0x105029(0x41c)][_0x105029(0x53a)]&&_0x2de7a0['unshift']({'label':_0x3b6961['t']('boards-mind-ui.panel.nodeStyle.style'),'value':_0x105029(0x22c)}),(0x0,_0x5c99c0[_0x105029(0x1fb)])(_0x105029(0x559),{'className':'univer-size-full\x20univer-bg-gray-0\x20univer-text-sm\x20univer-text-gray-700\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-200','data-board-mind-map-panel':_0x105029(0x5f1),'children':[(0x0,_0x5c99c0[_0x105029(0x538)])('div',{'className':_0x105029(0x20d),'data-board-mind-map-panel-tabs':_0x105029(0x5f1),'children':(0x0,_0x5c99c0[_0x105029(0x538)])(_0x403267[_0x105029(0x351)],{'className':_0x105029(0x552),'items':_0x2de7a0,'value':_0x53765e,'onChange':_0xbbc1ad=>_0x35404e(_0xbbc1ad)})}),_0x53765e===_0x105029(0x22c)&&(_0x9dd792==null?void 0x0:_0x9dd792[_0x105029(0x3b4)])===_0x22188d[_0x105029(0x41c)][_0x105029(0x53a)]&&(0x0,_0x5c99c0['jsx'])(_0x579175,{'unitId':_0x1d008e[_0x105029(0x3b0)],'subUnitId':_0x1d008e[_0x105029(0x363)],'nodeId':_0x9dd792['id'],'shapeData':_0x9dd792['shapeData']}),_0x53765e==='structure'&&(0x0,_0x5c99c0[_0x105029(0x538)])(_0x573ce6,{'title':_0x3b6961['t'](_0x105029(0x586)),'children':(0x0,_0x5c99c0[_0x105029(0x1fb)])(_0x105029(0x559),{'children':[(0x0,_0x5c99c0[_0x105029(0x538)])(_0x403267[_0x105029(0x230)],{'slot':(0x0,_0x5c99c0['jsx'])(_0x3f4d53,{}),'value':_0x48c669,'placeholder':_0x3b6961['t'](_0x105029(0x4dc)),'className':(0x0,_0x403267[_0x105029(0x43a)])(_0x105029(0x2bc),''),'onChange':_0x56b6e1,'size':_0x105029(0x56f)}),_0x139676[_0x105029(0x333)]?(0x0,_0x5c99c0['jsx'])('ol',{'className':_0x105029(0x1f5),'children':_0x139676[_0x105029(0x3ff)](_0x3a7761=>(0x0,_0x5c99c0['jsx'])('li',{'className':_0x105029(0x5d1),'style':_0x495cbd(_0x3a7761['depth']),'children':(_0x592d6d==null?void 0x0:_0x592d6d[_0x105029(0x55a)])===_0x3a7761[_0x105029(0x55a)]?(0x0,_0x5c99c0['jsxs'])(_0x105029(0x559),{'className':(0x0,_0x403267[_0x105029(0x43a)])(_0x105029(0x322),_0x105029(0x531)),'children':[(0x0,_0x5c99c0[_0x105029(0x538)])(_0x403267['Input'],{'autoFocus':!0x1,'size':'small','className':'univer-w-full','value':_0x592d6d[_0x105029(0x2e1)],'onChange':_0x5e2735=>_0x6e6955({'nodeId':_0x3a7761[_0x105029(0x55a)],'text':_0x5e2735}),'onKeyDown':_0x57647d=>{const _0x5d4fbc=_0x105029;_0x57647d[_0x5d4fbc(0x41a)]===_0x5d4fbc(0x565)&&_0x5edbc7(),_0x57647d[_0x5d4fbc(0x41a)]===_0x5d4fbc(0x578)&&_0x6e6955(null);}}),(0x0,_0x5c99c0[_0x105029(0x538)])(_0x403267[_0x105029(0x321)],{'className':'univer-flex-1','size':_0x105029(0x371),'variant':'primary','disabled':!_0x592d6d['text'][_0x105029(0x232)](),'onClick':_0x5edbc7,'children':_0x3b6961['t'](_0x105029(0x3c1))}),(0x0,_0x5c99c0[_0x105029(0x538)])(_0x403267[_0x105029(0x321)],{'className':'univer-flex-1','size':_0x105029(0x371),'variant':_0x105029(0x462),'onClick':()=>_0x6e6955(null),'children':_0x3b6961['t'](_0x105029(0x49a))})]}):(0x0,_0x5c99c0[_0x105029(0x1fb)])(_0x5c99c0[_0x105029(0x399)],{'children':[(0x0,_0x5c99c0[_0x105029(0x538)])(_0x403267[_0x105029(0x321)],{'size':_0x105029(0x371),'variant':_0x105029(0x1f2),'className':(0x0,_0x403267[_0x105029(0x43a)])(_0x105029(0x57a),''),'onClick':()=>_0x535dab['selectElements']({'unitId':_0x1d008e[_0x105029(0x3b0)],'subUnitId':_0x1d008e[_0x105029(0x363)]},[_0x3a7761[_0x105029(0x55a)]],_0x3a7761[_0x105029(0x55a)]),'children':_0x3a7761[_0x105029(0x2e1)]}),(0x0,_0x5c99c0['jsx'])(_0x403267['Button'],{'className':(0x0,_0x403267[_0x105029(0x43a)])(_0x105029(0x379),_0x105029(0x5bd)),'size':_0x105029(0x371),'variant':_0x105029(0x462),'onClick':()=>_0x5e777b(_0x3a7761['nodeId'],_0x3a7761[_0x105029(0x2e1)]),'children':_0x3b6961['t'](_0x105029(0x3c1))})]})},_0x3a7761[_0x105029(0x55a)]))}):(0x0,_0x5c99c0[_0x105029(0x538)])(_0x105029(0x559),{'className':'univer-text-xs\x20univer-text-gray-400\x20dark:!univer-text-gray-500','data-board-mind-map-panel-empty-state':_0x105029(0x5f1),'children':_0x3b6961['t'](_0x105029(0x34b))})]})}),_0x53765e===_0x105029(0x1e2)&&(0x0,_0x5c99c0['jsx'])(_0x573ce6,{'title':_0x3b6961['t'](_0x105029(0x2b0)),'children':(0x0,_0x5c99c0['jsxs'])('div',{'className':_0x105029(0x5b1),'children':[(0x0,_0x5c99c0[_0x105029(0x538)])('div',{'className':'univer-flex\x20univer-gap-2','children':(0x0,_0x5c99c0[_0x105029(0x538)])(_0x50c103,{'items':_0x234253['map'](_0x3ac0ac=>({'label':_0x3b6961['t'](_0x3ac0ac['labelKey']),'value':_0x3ac0ac[_0x105029(0x360)]})),'value':_0x561a98,'onChange':_0x5cb57c=>_0x550fb4(_0x5cb57c)})}),(0x0,_0x5c99c0[_0x105029(0x538)])(_0x105029(0x559),{'className':'univer-flex\x20univer-gap-2','children':(0x0,_0x5c99c0[_0x105029(0x538)])(_0x50c103,{'items':_0x14bc23[_0x105029(0x3ff)](_0x120718=>({'label':_0x3b6961['t'](_0x120718['labelKey']),'value':_0x120718[_0x105029(0x360)]})),'value':_0x1552af,'onChange':_0xbf9f12=>_0x22feb0(_0xbf9f12)})}),(0x0,_0x5c99c0[_0x105029(0x538)])(_0x105029(0x559),{'className':_0x105029(0x362),'children':(0x0,_0x5c99c0[_0x105029(0x538)])(_0x50c103,{'items':_0x33b4ee[_0x105029(0x3ff)](_0x4e9037=>({'label':_0x3b6961['t'](_0x4e9037[_0x105029(0x4ce)]),'value':_0x4e9037[_0x105029(0x360)]})),'value':_0x4352d8,'onChange':_0x4234b9=>_0x4794f7(_0x4234b9)})}),(0x0,_0x5c99c0[_0x105029(0x538)])(_0x105029(0x559),{'className':_0x105029(0x5e5),'children':_0x40bda5['map'](({labelKey:_0x3471d4,key:_0x225086,min:_0x3e7004,max:_0x3acfea})=>(0x0,_0x5c99c0[_0x105029(0x1fb)])(_0x105029(0x308),{'className':_0x105029(0x5a7),'children':[(0x0,_0x5c99c0[_0x105029(0x538)])('span',{'className':_0x105029(0x28b),'children':_0x3b6961['t'](_0x3471d4)}),(0x0,_0x5c99c0[_0x105029(0x538)])(_0x403267[_0x105029(0x442)],{'controls':!0x1,'min':_0x3e7004,'max':_0x3acfea,'step':0x4,'value':_0x42388b[_0x225086],'precision':0x0,'className':_0x105029(0x20c),'onChange':_0x41c525=>_0x48e61c(_0x225086,Number(_0x41c525??_0x3e7004)),'size':'small'})]},_0x225086))})]})}),_0x53765e===_0x105029(0x24f)&&(0x0,_0x5c99c0[_0x105029(0x538)])(_0x573ce6,{'title':_0x3b6961['t']('boards-mind-ui.panel.tab.importExport'),'children':(0x0,_0x5c99c0['jsxs'])('div',{'className':_0x105029(0x3f9),'children':[(0x0,_0x5c99c0[_0x105029(0x538)])(_0x403267[_0x105029(0x206)],{'className':(0x0,_0x403267[_0x105029(0x43a)])('univer-h-28\x20univer-resize-none',''),'placeholder':_0x3b6961['t'](_0x105029(0x590)),'value':_0x2c18f2,'onValueChange':_0x22f609,'size':_0x105029(0x56f)}),(0x0,_0x5c99c0[_0x105029(0x1fb)])(_0x105029(0x559),{'className':_0x105029(0x362),'children':[(0x0,_0x5c99c0[_0x105029(0x538)])(_0x403267[_0x105029(0x321)],{'className':_0x105029(0x4aa),'size':_0x105029(0x371),'variant':_0x105029(0x26c),'disabled':!_0x2c18f2['trim'](),'onClick':_0x160884,'children':_0x3b6961['t'](_0x105029(0x1f3))}),(0x0,_0x5c99c0['jsx'])(_0x403267[_0x105029(0x321)],{'className':_0x105029(0x4aa),'size':'middle','variant':_0x105029(0x462),'onClick':async()=>{const _0x157d26=_0x105029;let _0x75312f=await _0xbc35cd[_0x157d26(0x4ad)](_0x6837b2[_0x157d26(0x378)]['id'],_0x2048a5);_0x75312f!==!0x1&&_0x22f609(_0x75312f);},'children':_0x3b6961['t'](_0x105029(0x4e5))})]})]})})]});}let _0x6a259f=class extends _0x3a2278[_0x2fba6e(0x328)]{constructor(_0x34fa57){const _0x3df6d9=_0x2fba6e;super(),this[_0x3df6d9(0x430)]=_0x34fa57,this[_0x3df6d9(0x544)]();}[_0x2fba6e(0x544)](){const _0x11fb1f=_0x2fba6e;this[_0x11fb1f(0x417)](this[_0x11fb1f(0x430)][_0x11fb1f(0x588)](_0x4574bf,_0x35f384)),this[_0x11fb1f(0x417)](this['_componentManager'][_0x11fb1f(0x588)](_0x5dd790,_0x976f98)),this[_0x11fb1f(0x417)](this[_0x11fb1f(0x430)][_0x11fb1f(0x588)](_0x5e58ee,_0x254aa7));}};_0x6a259f=_0x19a741([_0x32dcf8(0x0,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x4468ef['ComponentManager']))],_0x6a259f);let _0x35d45a=class extends _0x3a2278[_0x2fba6e(0x328)]{constructor(_0x58ab3f,_0x5c0456,_0x118c21){const _0xd63552=_0x2fba6e;super(),this[_0xd63552(0x4a0)]=_0x58ab3f,this[_0xd63552(0x350)]=_0x5c0456,this[_0xd63552(0x2c7)]=_0x118c21,_0x251ac6(this,'_sidebarDisposable',null),this[_0xd63552(0x417)](this['_commandService'][_0xd63552(0x498)](_0x488fdf)),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x176911=>{const _0x10b8f5=_0xd63552;if(_0x176911['id']!==_0x488fdf['id'])return;let _0x2387d4=_0x176911[_0x10b8f5(0x2e0)];_0x2387d4&&_0x10b8f5(0x3b0)in _0x2387d4&&typeof _0x2387d4[_0x10b8f5(0x3b0)]==_0x10b8f5(0x43d)&&_0x10b8f5(0x363)in _0x2387d4&&typeof _0x2387d4[_0x10b8f5(0x363)]==_0x10b8f5(0x43d)&&_0x10b8f5(0x5c3)in _0x2387d4&&typeof _0x2387d4['scopeId']==_0x10b8f5(0x43d)&&this[_0x10b8f5(0x4d0)]({'unitId':_0x2387d4[_0x10b8f5(0x3b0)],'subUnitId':_0x2387d4[_0x10b8f5(0x363)],'scopeId':_0x2387d4[_0x10b8f5(0x5c3)],'nodeId':_0x10b8f5(0x55a)in _0x2387d4&&typeof _0x2387d4[_0x10b8f5(0x55a)]==_0x10b8f5(0x43d)?_0x2387d4['nodeId']:void 0x0});}));}[_0x2fba6e(0x450)](){const _0x1410dd=_0x2fba6e;var _0xcdc138;(_0xcdc138=this[_0x1410dd(0x582)])==null||_0xcdc138[_0x1410dd(0x450)](),this[_0x1410dd(0x582)]=null,super[_0x1410dd(0x450)]();}['open'](_0x5b27e1){const _0x1b9bc9=_0x2fba6e;var _0x4e7df9;let _0x4abe6d={'label':_0x5e58ee,..._0x5b27e1};(_0x4e7df9=this[_0x1b9bc9(0x582)])==null||_0x4e7df9[_0x1b9bc9(0x450)](),this[_0x1b9bc9(0x582)]=this[_0x1b9bc9(0x2c7)]['open']({'id':_0x5e58ee,'header':{'title':this[_0x1b9bc9(0x350)]['t'](_0x1b9bc9(0x385))},'width':0x184,'children':_0x4abe6d,'onClose':()=>{const _0x9bdce5=_0x1b9bc9;this[_0x9bdce5(0x582)]=null;}});}};_0x35d45a=_0x19a741([_0x32dcf8(0x0,_0x3a2278['ICommandService']),_0x32dcf8(0x1,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x3a2278[_0x2fba6e(0x55c)])),_0x32dcf8(0x2,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x4468ef['ISidebarService']))],_0x35d45a);let _0x353575=class extends _0x3a2278[_0x2fba6e(0x328)]{constructor(_0x3c5d72){const _0x502a33=_0x2fba6e;super(),this[_0x502a33(0x430)]=_0x3c5d72,this['_registerComponents']();}[_0x2fba6e(0x544)](){const _0x4a2771=_0x2fba6e;this[_0x4a2771(0x417)](this[_0x4a2771(0x430)][_0x4a2771(0x588)](_0x4574bf,_0x35f384)),this['disposeWithMe'](this['_componentManager'][_0x4a2771(0x588)](_0x5dd790,_0x3040c7)),this[_0x4a2771(0x417)](this[_0x4a2771(0x430)]['register'](_0x5e58ee,_0x2c1504));}};_0x353575=_0x19a741([_0x32dcf8(0x0,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x4468ef[_0x2fba6e(0x2bd)]))],_0x353575);let _0x1d6f71=class{constructor(_0x43b86e,_0x5d1cf9,_0x17a19b){const _0x44a704=_0x2fba6e;this['_stateService']=_0x43b86e,this['_insertStateService']=_0x5d1cf9,this[_0x44a704(0x4fc)]=_0x17a19b;}['beginMindMapMode'](_0x48a30a){const _0x517cc0=_0x2fba6e;var _0x4ee456,_0x531ec6;let _0x3bfdcb=(_0x4ee456=this['_renderManagerService']['getRenderUnitById'](_0x48a30a[_0x517cc0(0x3b0)]))==null||(_0x531ec6=_0x4ee456[_0x517cc0(0x5ee)])==null?void 0x0:_0x531ec6[_0x517cc0(0x3b6)](_0x4ee456),_0x582fa3=(_0x3bfdcb==null?void 0x0:_0x3bfdcb['get'](_0x23cfd0[_0x517cc0(0x2ef)]))??this[_0x517cc0(0x471)];return((_0x3bfdcb==null?void 0x0:_0x3bfdcb[_0x517cc0(0x383)](_0x218570))??this['_insertStateService'])[_0x517cc0(0x5c0)]({'rootText':_0x48a30a[_0x517cc0(0x3ed)],'structureKind':_0x48a30a[_0x517cc0(0x1f8)],'branchLineType':_0x48a30a['branchLineType'],'children':_0x48a30a[_0x517cc0(0x2db)],'blueprint':_0x48a30a[_0x517cc0(0x47a)]}),_0x582fa3['setShapeSidebarOpen'](!0x1),_0x582fa3['clearPendingInsert'](),_0x582fa3[_0x517cc0(0x36b)](_0x22188d[_0x517cc0(0x2c0)][_0x517cc0(0x2dc)]),_0x582fa3[_0x517cc0(0x40f)]({'type':_0x22188d[_0x517cc0(0x2c0)][_0x517cc0(0x2dc)]}),!0x0;}};_0x1d6f71=_0x19a741([_0x32dcf8(0x0,_0x23cfd0[_0x2fba6e(0x2ef)]),_0x32dcf8(0x1,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x218570)),_0x32dcf8(0x2,_0x924b47['IRenderManagerService'])],_0x1d6f71);let _0x20294f=_0x2fba6e(0x5bc),_0x3f6a27=[_0x3d1af8],_0x1897f1=[_0x2f7b05],_0x77b3ac=class extends _0x3a2278[_0x2fba6e(0x4e0)]{constructor(_0x38c0ba=_0x3957fa,_0xf5f707,_0x4c5d1d,_0x345480){const _0x16635d=_0x2fba6e;super(),this['_config']=_0x38c0ba,this[_0x16635d(0x52e)]=_0xf5f707,this['_configService']=_0x4c5d1d,this[_0x16635d(0x4fc)]=_0x345480;let {..._0x52dfb2}=(0x0,_0x3a2278[_0x16635d(0x3d5)])({},_0x3957fa,this['_config']);this[_0x16635d(0x53e)]['setConfig'](_0x40f506,_0x52dfb2);}[_0x2fba6e(0x2fc)](){const _0x498149=_0x2fba6e;_0x23cfd0['UniverBoardsUIPlugin'][_0x498149(0x5e9)](this[_0x498149(0x52e)],[[_0x218570],[_0x11978c]]),this[_0x498149(0x265)]()['forEach'](_0x545d3e=>this['_injector']['add'](_0x545d3e));let _0x4727ea=this[_0x498149(0x52e)][_0x498149(0x383)](_0x1d6f71),_0x25609b=this[_0x498149(0x52e)][_0x498149(0x383)](_0x22188d[_0x498149(0x5b7)]);this[_0x498149(0x417)](_0x25609b[_0x498149(0x38d)](_0x4727ea)),this[_0x498149(0x417)](this[_0x498149(0x52e)][_0x498149(0x383)](_0x22779d)),this['disposeWithMe'](this[_0x498149(0x52e)][_0x498149(0x383)](_0x1602f6)),this['disposeWithMe'](this[_0x498149(0x52e)][_0x498149(0x383)](_0x35d45a)),this[_0x498149(0x417)](this['_injector'][_0x498149(0x383)](_0x353575)),this['_enableMindMapToolbarTool']();}['_getDependencies'](){return[[_0x218570],[_0x11978c],[_0x1d6f71],[_0x22779d],[_0x1602f6],[_0x35d45a],[_0x353575]];}[_0x2fba6e(0x357)](){return[_0x3f6a27,_0x1897f1,[_0x31b33f],[_0x190b69],[_0x5afa04],[_0x1b34c0],[_0x53b6ea],[_0x22ca15]];}['onReady'](){const _0x3d3449=_0x2fba6e;this[_0x3d3449(0x357)]()[_0x3d3449(0x3d8)](_0x1cf40c=>{const _0x33d963=_0x3d3449;this[_0x33d963(0x417)](this['_renderManagerService'][_0x33d963(0x3fc)](_0x3a2278[_0x33d963(0x1f1)][_0x33d963(0x309)],_0x1cf40c));});}[_0x2fba6e(0x431)](){const _0x5ccc81=_0x2fba6e;var _0x55da74,_0x4c292e;let _0x4366e3=this[_0x5ccc81(0x2c1)]();this[_0x5ccc81(0x53e)][_0x5ccc81(0x525)](_0x23cfd0[_0x5ccc81(0x300)],{..._0x4366e3,'toolbar':{..._0x4366e3['toolbar'],'tools':{...(_0x55da74=_0x4366e3['toolbar'])==null?void 0x0:_0x55da74[_0x5ccc81(0x3d7)],[_0x22188d['BoardToolType']['MindMap']]:_0x1445fe((_0x4c292e=_0x4366e3[_0x5ccc81(0x48c)])==null||(_0x4c292e=_0x4c292e[_0x5ccc81(0x3d7)])==null?void 0x0:_0x4c292e[_0x22188d['BoardToolType'][_0x5ccc81(0x2dc)]])}}});}[_0x2fba6e(0x2c1)](){const _0x248a68=_0x2fba6e;return this[_0x248a68(0x53e)][_0x248a68(0x4d3)](_0x23cfd0[_0x248a68(0x300)])??{};}};_0x251ac6(_0x77b3ac,'pluginName',_0x20294f),_0x251ac6(_0x77b3ac,'packageName',_0x53efe8),_0x251ac6(_0x77b3ac,_0x2fba6e(0x315),_0x439f81),_0x251ac6(_0x77b3ac,_0x2fba6e(0x3b4),_0x3a2278[_0x2fba6e(0x1f1)][_0x2fba6e(0x309)]),_0x77b3ac=_0x19a741([(0x0,_0x3a2278['DependentOn'])(_0x2d01f4[_0x2fba6e(0x4b0)],_0x924b47['UniverRenderEnginePlugin'],_0x22188d[_0x2fba6e(0x40e)],_0x6837b2[_0x2fba6e(0x528)],_0x23cfd0['UniverBoardsUIPlugin']),_0x32dcf8(0x1,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x3a2278[_0x2fba6e(0x3d4)])),_0x32dcf8(0x2,_0x3a2278[_0x2fba6e(0x4f7)]),_0x32dcf8(0x3,_0x924b47[_0x2fba6e(0x331)])],_0x77b3ac);function _0x1445fe(_0x3c567e){const _0xb5089c=_0x2fba6e;return _0x3c567e===!0x1?!0x1:typeof _0x3c567e!=_0xb5089c(0x402)||{..._0x3c567e,'enabled':_0x3c567e[_0xb5089c(0x569)]??!0x0};}let _0x243451=class extends _0x3a2278[_0x2fba6e(0x4e0)]{constructor(_0x342deb=_0x3957fa,_0x4c207e,_0x1ea2df,_0x17624a){const _0x2b3d79=_0x2fba6e;super(),this['_config']=_0x342deb,this[_0x2b3d79(0x52e)]=_0x4c207e,this[_0x2b3d79(0x53e)]=_0x1ea2df,this['_renderManagerService']=_0x17624a;let {..._0x438025}=(0x0,_0x3a2278['merge'])({},_0x3957fa,this[_0x2b3d79(0x41f)]);this[_0x2b3d79(0x53e)][_0x2b3d79(0x525)](_0x40f506,_0x438025);}[_0x2fba6e(0x2fc)](){const _0xb69eba=_0x2fba6e;let _0x456cb1=[[_0x218570],[_0x11978c]];_0x23cfd0[_0xb69eba(0x53c)][_0xb69eba(0x5e9)](this['_injector'],_0x456cb1),[..._0x456cb1,[_0x1d6f71],[_0x22779d],[_0x1602f6],[_0x46fe81],[_0x6a259f]]['forEach'](_0x54abb3=>this[_0xb69eba(0x52e)][_0xb69eba(0x36d)](_0x54abb3)),this['disposeWithMe'](this[_0xb69eba(0x52e)][_0xb69eba(0x383)](_0x22188d[_0xb69eba(0x5b7)])[_0xb69eba(0x38d)](this[_0xb69eba(0x52e)]['get'](_0x1d6f71))),this['disposeWithMe'](this['_injector'][_0xb69eba(0x383)](_0x22779d)),this[_0xb69eba(0x417)](this[_0xb69eba(0x52e)][_0xb69eba(0x383)](_0x1602f6)),this['disposeWithMe'](this[_0xb69eba(0x52e)]['get'](_0x46fe81)),this[_0xb69eba(0x417)](this[_0xb69eba(0x52e)][_0xb69eba(0x383)](_0x6a259f)),this[_0xb69eba(0x431)]();}['onReady'](){[[_0x3d1af8],[_0x2f7b05],[_0x31b33f,{'useClass':_0x1d8b31}],[_0x190b69],[_0x5afa04],[_0x1b34c0],[_0x53b6ea],[_0x22ca15]]['forEach'](_0x24279c=>{const _0x52e3d7=_0x2d97;this['disposeWithMe'](this[_0x52e3d7(0x4fc)][_0x52e3d7(0x3fc)](_0x3a2278[_0x52e3d7(0x1f1)]['UNIVER_BOARD'],_0x24279c));});}[_0x2fba6e(0x431)](){const _0x2c77f6=_0x2fba6e;var _0x3a4e36,_0x27c39f;let _0x216617=this[_0x2c77f6(0x2c1)]();this[_0x2c77f6(0x53e)][_0x2c77f6(0x525)](_0x23cfd0[_0x2c77f6(0x300)],{..._0x216617,'toolbar':{..._0x216617[_0x2c77f6(0x48c)],'tools':{...(_0x3a4e36=_0x216617[_0x2c77f6(0x48c)])==null?void 0x0:_0x3a4e36[_0x2c77f6(0x3d7)],[_0x22188d[_0x2c77f6(0x2c0)][_0x2c77f6(0x2dc)]]:_0x40f407((_0x27c39f=_0x216617['toolbar'])==null||(_0x27c39f=_0x27c39f[_0x2c77f6(0x3d7)])==null?void 0x0:_0x27c39f[_0x22188d[_0x2c77f6(0x2c0)][_0x2c77f6(0x2dc)]])}}});}[_0x2fba6e(0x2c1)](){const _0x122427=_0x2fba6e;return this[_0x122427(0x53e)]['getConfig'](_0x23cfd0[_0x122427(0x300)])??{};}};_0x251ac6(_0x243451,_0x2fba6e(0x414),_0x20294f),_0x251ac6(_0x243451,_0x2fba6e(0x3b1),_0x53efe8),_0x251ac6(_0x243451,_0x2fba6e(0x315),_0x439f81),_0x251ac6(_0x243451,_0x2fba6e(0x3b4),_0x3a2278[_0x2fba6e(0x1f1)][_0x2fba6e(0x309)]),_0x243451=_0x19a741([(0x0,_0x3a2278['DependentOn'])(_0x2d01f4[_0x2fba6e(0x4b0)],_0x924b47[_0x2fba6e(0x30b)],_0x22188d[_0x2fba6e(0x40e)],_0x6837b2[_0x2fba6e(0x528)],_0x23cfd0[_0x2fba6e(0x53c)]),_0x32dcf8(0x1,(0x0,_0x3a2278[_0x2fba6e(0x598)])(_0x3a2278[_0x2fba6e(0x3d4)])),_0x32dcf8(0x2,_0x3a2278[_0x2fba6e(0x4f7)]),_0x32dcf8(0x3,_0x924b47[_0x2fba6e(0x331)])],_0x243451);function _0x40f407(_0x967abd){const _0x1af452=_0x2fba6e;return _0x967abd===!0x1?!0x1:typeof _0x967abd!='object'||{..._0x967abd,'enabled':_0x967abd[_0x1af452(0x569)]??!0x0};}Object['defineProperty'](_0x2058fe,_0x2fba6e(0x20a),{'enumerable':!0x0,'get':function(){return _0x243451;}}),Object[_0x2fba6e(0x303)](_0x2058fe,_0x2fba6e(0x1ff),{'enumerable':!0x0,'get':function(){return _0x77b3ac;}});}));function _0x2d97(_0x596091,_0x1e399c){_0x596091=_0x596091-0x1de;const _0x5dc06f=_0x5dc0();let _0x2d97c3=_0x5dc06f[_0x596091];return _0x2d97c3;}function _0x5dc0(){const _0x4d5d4b=['unsubscribe','referenceNodeId','@univerjs/core','LeftJustifyingIcon','ShapeStrokePanelButton','removeObjects','_pasteAsNewMindMap','M22\x208h36M22\x2048h36M14\x2018v20M66\x2018v20','boards-mind-ui.toolbar.action.','preview','renderContext','connectors','Tools','_consumePointerEvent','zIndex','textColor','reparent','round','_createQuoteShortcut','_findChildNodeAtPoint','boards-mind-ui.toolbar.primary.line','kind','univer-min-w-[240px]','move','addChildRadius','6\x207','setConfig','timeline','_provider','UniverBoardsMindPlugin','mindmap','fillText','resolve','_countDescendants','hasCommand','_injector','_handlePointerMove','newParentNodeId','univer-flex-wrap','M17\x2033h21M38\x2017v30M38\x2017h24','branch','_updateShapeText','defs','ShapeFloatingToolbarContent','boards-mind-ui.panel.layout.left','jsx','_getBlankBoardContext','Shape','width','UniverBoardsMobileUIPlugin','localeCompare','_configService','removeEventListener','univer-mb-2\x20univer-text-lg\x20univer-text-gray-900','height','orderKey','LayoutMindMapOperation','_registerComponents','univer-h-28\x20univer-resize-none','removeProperty','span','controls','DeleteMindMapNodeOperation','boards-mind-ui.alignCenter','univer-flex\x20univer-h-12\x20univer-min-w-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-900\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-0','font','_getBoardPointFromEvent','Dropdown','elementService','run','siblingGlyphSize','univer-w-full\x20[&_button]:univer-whitespace-normal\x20[&_button]:univer-break-words\x20[&_button]:univer-px-1','child','reduce','clipboardService','collapse-all','updateElement','add-child-bottom','div','nodeId','dash','LocaleService','notify','stopPropagation','subscribe','_template','boards-mind-ui.panel.nodeStyle.fontFamily','_insertMindMap','add-child-left','moveTo','Enter','set','M24\x2012v32M24\x2019c0\x204\x203\x206\x207\x206h7M24\x2029c0\x204\x203\x206\x207\x206h7M24\x2039c0\x204\x203\x206\x207\x206h7','panOffset','enabled','siblingHoverRadius','evented','boards-mind-ui.panel.branchLineType.orthogonal','board-mind-map-node-controls-object','prototype','small','_executeNodeOperation','rgba(','useObservable','lineWidth','rgb','ShapeFloatingToolbarMenuItem','2227204UoTWJR','underline-icon','Escape','glyphWidth','univer-min-w-0\x20univer-flex-1\x20univer-justify-start\x20univer-truncate\x20univer-text-left','_isPopupSelectionStillActive','onPointerMove$','SolidLine','find','fillStyle','74742dUYqni','changeStart$','_sidebarDisposable','_queueLayout','_applyDragTopologyAction','MIND_MAP_DEFAULT_NODE_SIZE','boards-mind-ui.panel.tab.structure','univer-text-xs','register','oKey','dot','stroke','none','center','UniverProLicense','dirtyPaddingScreen','boards-mind-ui.panel.pasteOPML','boards-mind-ui.alignMiddle','_capturePointerChildDragStart','boards-mind-ui.panel.layout.right','VerticalAlign','_renderContext','style-divider','ShapeFillButton','Inject','MIDDLE','toFixed','interactionMode','opacity','onDblclick$','elementUpdate$','IMindMapClipboardService','_elementStateService','isReleased','M8.00033\x201.20996C6.43345\x201.20996\x205.23596\x201.88077\x204.64804\x202.94304C4.06338\x203.99943\x204.15123\x205.32084\x204.90099\x206.47062C5.08199\x206.7482\x205.45374\x206.82648\x205.73131\x206.64548C6.00888\x206.46448\x206.08716\x206.09273\x205.90616\x205.81516C5.36418\x204.98402\x205.35768\x204.13897\x205.69797\x203.52412C6.035\x202.91515\x206.78176\x202.40996\x208.00033\x202.40996C9.19423\x202.40996\x2010.0017\x202.93409\x2010.5236\x203.46755C10.7871\x203.73682\x2010.9756\x204.00712\x2011.0974\x204.20903C11.158\x204.30951\x2011.2013\x204.39164\x2011.2284\x204.44625C11.2419\x204.47351\x2011.2514\x204.49377\x2011.2568\x204.50588L11.2621\x204.51771C11.3901\x204.82216\x2011.7407\x204.96686\x2012.046\x204.83992C12.3519\x204.71267\x2012.4968\x204.36149\x2012.3695\x204.05552L11.8231\x204.28278C12.3695\x204.05552\x2012.3697\x204.0558\x2012.3695\x204.05552L12.3691\x204.05437L12.3685\x204.05298L12.367\x204.04953L12.3629\x204.03993L12.3498\x204.01036C12.3388\x203.98619\x2012.3234\x203.95326\x2012.3033\x203.91282C12.2632\x203.83203\x2012.2043\x203.72072\x2012.1249\x203.58908C11.9666\x203.32674\x2011.7235\x202.97805\x2011.3814\x202.62834C10.6921\x201.92381\x209.59192\x201.20996\x208.00033\x201.20996Z','addSibling','0\x200\x2020\x2020','_instanceSrv','entries','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-xs\x20univer-text-gray-600','board.operation.mind-map.keyboard-shortcut','UniverProBoardsMindUi','FOCUSING_MIND_MAP_BLANK_BOARD','context','typography','has','_getMindMapChildren','forwardRef','displayName','univer-space-y-3','MIND_MAP_DEFAULT_LAYOUT','popup','pointerStartY','M12\x2026h11M58\x2036h11M12\x2045h11','M16\x2028c16\x200\x2025-13\x2043-13M16\x2028c16\x200\x2025\x2013\x2043\x2013','IBoardMindMapAdapterService','_lastChildDragAction','parseFloat','setContextValue','ToggleMindMapNodeCollapseOperation','UNIVER_BOARDS_MIND_UI_PLUGIN','univer-px-3','univer-w-20\x20univer-shrink-0','resolveBoardElementWorldBounds','setTemplate','_applyRootTranslation','left','scopeId','boards-mind-ui.toolbar.primary.fontColor','ShapeFloatingToolbarFontSizeSelect','changeEnd$','_resolveRootChildControlSides','start','isRoot','MobileShapeMenu','branch-curve','number','_pointerDragStart','useImperativeHandle','Module','_restoreActivePreview','univer-flex\x20univer-items-center\x20univer-gap-1\x20univer-truncate\x20univer-rounded\x20univer-py-1\x20univer-text-left\x20univer-text-gray-800','Separator','ghostBounds','M4.65791\x201.30005C3.77355\x201.30005\x203.05664\x202.01696\x203.05664\x202.90132V12.8588C3.05664\x2013.8755\x203.88086\x2014.6998\x204.89759\x2014.6998H9.1016C11.2233\x2014.6998\x2012.9433\x2012.9798\x2012.9433\x2010.8581C12.9433\x209.13925\x2011.8145\x207.68407\x2010.2578\x207.1934C10.8806\x206.56856\x2011.2655\x205.70659\x2011.2655\x204.75472C11.2655\x202.84676\x209.71883\x201.30005\x207.81087\x201.30005H4.65791ZM4.25664\x202.90132C4.25664\x202.6797\x204.4363\x202.50005\x204.65791\x202.50005H7.81087C9.05609\x202.50005\x2010.0655\x203.5095\x2010.0655\x204.75472C10.0655\x205.99993\x209.05609\x207.00938\x207.81087\x207.00938H4.25664V2.90132ZM4.25664\x2012.8588V8.21636H9.1016C10.5606\x208.21636\x2011.7433\x209.39909\x2011.7433\x2010.8581C11.7433\x2012.317\x2010.5606\x2013.4998\x209.1016\x2013.4998H4.89759C4.5436\x2013.4998\x204.25664\x2013.2128\x204.25664\x2012.8588Z','horizontalGap','_uiStateService','canvas','getElementData','strokeWidth','IUniverInstanceService','toLowerCase','snapDistance','hasChildren','_layoutFlushScheduled','@univerjs-pro/engine-shape','_attachObjectEvents','badgeCount','_createShortcutItems','_objectEventDisposables','dataArray','univer-space-y-2','branch-rounded-orthogonal','structured','_queuedLayouts','registerRuntimeScopedDependencies','boards-mind-ui.panel.structureKind.mindmapHorizontal','FOCUSING_MIND_MAP_NODE','_contextService','abs','getInjector','_resolvePreviewTextStyle','board-mind-map-description-dialog','true','arrow-down','path','getMindMapDefaultChildOrderKey','subscribeEvent','layout','assign','_attachObjectPointerScheduled','both','parentNodeId','M40\x209v40M40\x2020c8\x200\x2011\x204\x2011\x2011v8M40\x2035c-8\x200-11\x204-11\x2011v4','hideRootControls','@univerjs-pro/boards','state$','boards-mind-ui.descriptionPlaceholder','_syncControls','mind-map-font-size','ENTER','addDescription','_popupSelectionKey','UniverInstanceType','ghost','boards-mind-ui.panel.importOPML','elementData','univer-space-y-1','circle','paste','structureKind','TRUE','getRootTopLeft','jsxs','addChildNode','_isPointInBounds','7oWTymU','UniverBoardsMindUIPlugin','point','univer-w-full','_cancelPointerChildDrag','pointercancel','function','getMindMapContainerMeta','Textarea','success','with','_resolvePreviewSourceBounds','UniverBoardsMindMobileUIPlugin','fallbackPoint','univer-w-32','univer-py-3','_removePreviewObject','boundsByElementId','search-icon','AlignTopIcon','univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','17008563bSCflb','custom','stroke-width','timeline-vertical','branchGap','curveData','isHit','_popupDisposable','_shortcutService','_isActive','siblingGap','allowRootReparent','element','add-sibling-after','Dash','ShapeFloatingToolbarMenuPanel','add-child-right','currentTarget','targetNodeId','fonts$','querySelectorAll','1em','_executeChildDragAction','ShapeDefaultConfig','viewportPanOffset','style','RxDisposable','MIND_MAP_LAYOUT_SPACING_LIMITS','RIGHT','Input','bezierCurveTo','trim','boards-mind-ui.config','addEventListener','exec','univer-mb-3\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-gray-100','ArrowLeft','svg','nodeWidth','0\x200\x2016\x2016','fill','elementRemove$','_resolveNodeSize','underline','glyphHoverWidth','dropdown','syncExecuteCommand','horizontally-icon','generateRandomId','CENTER','Control','_lastPoint','_scheduleAttachObjectPointerListeners',',\x20minmax(0,\x201fr))','React','complete','_drawSourceHighlight','univer-size-full\x20univer-bg-gray-0\x20univer-text-sm\x20univer-text-gray-700\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-200','_syncChildDragPreview','pointerup','importExport','data','render','shapeText','boards-mind-ui.toolbar.primary.typography','add-child-top','makeDirtyNoDebounce','LEFT','IDialogService','getMindMapNodeMeta','getPropertyValue','uiStateService','foldChildNodes','tree-alternate','ShapeStrokePanelContent','lineJoin','timeline-horizontal','createControl$','layout-panel-divider','_handlePointerDown','M9.80385\x201.40005H11.9997C12.3311\x201.40005\x2012.5997\x201.66868\x2012.5997\x202.00005C12.5997\x202.33143\x2012.3311\x202.60005\x2011.9997\x202.60005H10.1185L7.12251\x2013.4001H9.33324C9.66461\x2013.4001\x209.93324\x2013.6687\x209.93324\x2014.0001C9.93324\x2014.3314\x209.66461\x2014.6001\x209.33324\x2014.6001H6.34785C6.33847\x2014.6003\x206.32905\x2014.6003\x206.31962\x2014.6001H3.9999C3.66853\x2014.6001\x203.3999\x2014.3314\x203.3999\x2014.0001C3.3999\x2013.6687\x203.66853\x2013.4001\x203.9999\x2013.4001H5.87719L8.87322\x202.60005H6.66641C6.33504\x202.60005\x206.06641\x202.33143\x206.06641\x202.00005C6.06641\x201.66868\x206.33504\x201.40005\x206.66641\x201.40005H9.52916C9.61698\x201.37929\x209.71064\x201.3781\x209.80385\x201.40005Z','boards-mind-ui.toolbar.panel.more','_getDependencies','getShortcutDisplay','_cloneBlueprint','_resolveSelectedEntry','_captureDragStart','copy','add-sibling-or-child','primary','points','M3.33315\x2012.9004C3.00178\x2012.9004\x202.73315\x2013.169\x202.73315\x2013.5004C2.73315\x2013.8318\x203.00178\x2014.1004\x203.33315\x2014.1004H12.6665C12.9979\x2014.1004\x2013.2665\x2013.8318\x2013.2665\x2013.5004C13.2665\x2013.169\x2012.9979\x2012.9004\x2012.6665\x2012.9004H3.33315Z','promote','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-py-4','ghostFillColor','rootStartBounds','nodes','textPaddingScreen','offsetBoardConnectorGeometry','univer-grid-cols-3','hostSize','colorChannel1','dataModel','resolveBoardFloatingToolbarSelection','ARROW_LEFT','hoveredControl','board.mind-map.floating-toolbar','130107mimUzK','fontSize','from','ArrowRight','vectorEffect','dashType','univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','getBoardElementRenderObjectKey','ShapeLineIcon','_activeScopeId','_syncPreviewObject','elementId','repeat(','univer-flex-1\x20univer-text-sm','M7.9999\x200.733398C8.33127\x200.733398\x208.5999\x201.00203\x208.5999\x201.3334V4.55137L9.57564\x203.57564C9.80995\x203.34132\x2010.1899\x203.34132\x2010.4242\x203.57564C10.6585\x203.80995\x2010.6585\x204.18985\x2010.4242\x204.42417L8.42417\x206.42417C8.18985\x206.65848\x207.80995\x206.65848\x207.57564\x206.42417L5.57564\x204.42417C5.34132\x204.18985\x205.34132\x203.80995\x205.57564\x203.57564C5.80995\x203.34132\x206.18985\x203.34132\x206.42417\x203.57564L7.3999\x204.55137V1.3334C7.3999\x201.00203\x207.66853\x200.733398\x207.9999\x200.733398Z','collapsed','univer-h-9\x20univer-w-12','join','_deleteSelectedNode','connectorAlpha','rounded-orthogonal','_ensureObject','IShortcutService','elementAdd$','boards-mind-ui.toolbar.action.paste','M1.9999\x207.40015C1.66853\x207.40015\x201.3999\x207.66878\x201.3999\x208.00015C1.3999\x208.33152\x201.66853\x208.60015\x201.9999\x208.60015H13.9999C14.3313\x208.60015\x2014.5999\x208.33152\x2014.5999\x208.00015C14.5999\x207.66878\x2014.3313\x207.40015\x2013.9999\x207.40015H1.9999Z','rootHeight','attrs','boards-mind-ui.panel.structureKind.mindmapVertical','top','getEditing','ArrowDown','dividerBefore','appliedStrokeWidth','getElementById','_childDragActivated','univer-flex\x20univer-justify-end\x20univer-gap-2','radius','_previewObject','sourceBounds','after','quadraticCurveTo','max','takeUntil','symbol','_buildPopupSelectionKey','focusUnit','react/jsx-runtime','getUnitId','boards-mind-ui.toolbar.panel.line','boards-mind-ui.panel.tab.layout','liveRootBounds','BOTTOM','structureScopeId','renderGhostNode','makeDirty','setProperty','orthogonal','borderWidth','_syncChildDragPreviewObject','_showPopupForSelection','boards-mind-ui.toolbar.panel.typography','univer-mb-3\x20univer-w-full','ComponentManager','useDependency','arrow-left','BoardToolType','_getBoardsUIConfig','getTransformerByCreate','keys','resolveMindMapNodeHostSize','connectorAffordance','commandService','_sidebarService','vertical','boards-mind-ui.panel.structureKind.timelineVertical','M15\x2031h50M35\x2031V18c0-4\x203-7\x208-7h9M35\x2031v13c0\x204\x203\x207\x208\x207h9','UnderlineIcon','tree-right','ShapeFloatingToolbarDropdownTrigger','_getLiveObjectBounds','localeService','offsetY','UndoRedoGroupService','asObservable','getObjectIncludeInGroup','0\x200\x2024\x2024','closePath','@univerjs/engine-render','M1.3999\x209.8334C1.3999\x209.50203\x201.66853\x209.2334\x201.9999\x209.2334H13.9999C14.3313\x209.2334\x2014.5999\x209.50203\x2014.5999\x209.8334C14.5999\x2010.1648\x2014.3313\x2010.4334\x2013.9999\x2010.4334H1.9999C1.66853\x2010.4334\x201.3999\x2010.1648\x201.3999\x209.8334Z','DEFAULT_STYLES','boards-mind-ui.alignLeft','_syncLayoutPreview','children','MindMap','values','DELETE','_removeDragPreviewObject','params','text','strokeStyle','parentBounds','ARROW_UP','rxjs','includes','_openDescriptionDialog','_boardCanvasPopManagerService','transientPreview','then','tag','localName','@univerjs-pro/license','boards-mind-ui.toolbar.action.stroke','IBoardUIStateService','rootRadius','shapeId','SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_BACKGROUND_COLOR','doc','updateState','boards-mind-ui.toolbar.action.copy','0\x200\x2080\x2056','_getSelectedMindMapContext','isMindMapPlainStructureKind','UpdateMindMapNodeOperation','_syncContext','transformByState','onStarting','scene','attachPopupToObject','_normalizeChildren','BOARDS_UI_PLUGIN_CONFIG_KEY','dragObjectAlpha','_addSiblingOrChild','defineProperty','globalAlpha','add-child','lineCap','M56\x2039h11M13\x2050h11','label','UNIVER_BOARD','next','UniverRenderEnginePlugin','_seedExistingNodeSizes','_insertStateService','_restoreObjectToDragStart','isTransforming','M1.9999\x205.56641C1.66853\x205.56641\x201.3999\x205.83504\x201.3999\x206.16641C1.3999\x206.49778\x201.66853\x206.76641\x201.9999\x206.76641H11.3332C11.6646\x206.76641\x2011.9332\x206.49778\x2011.9332\x206.16641C11.9332\x205.83504\x2011.6646\x205.56641\x2011.3332\x205.56641H1.9999Z','_resolveCompleteSelectedScope','item','_hideSelectionForChildDrag','_cloneBlueprintNode','version','tree-left','1.5.0','TOP','useRef','elementStateService','onChange','univer-items-center','createMindMapElementsFromBlueprint','deviceType','BOARD_SHORTCUT_BINDINGS','bold-icon','Button','univer-flex\x20univer-min-w-0\x20univer-flex-1\x20univer-gap-2','branch-orthogonal','objectAlpha','sourceDashScreen','textStyle','bounds','Disposable','defIds','unit','lineWidthScreen','childNodeId','orthogonalData','getAncestorScale','ghostRadius','RoundDot','IRenderManagerService','univer-min-w-0\x20univer-whitespace-normal\x20univer-px-2','length','univer-h-7\x20univer-min-w-9\x20univer-w-auto\x20univer-gap-1\x20univer-px-1.5','MoreHorizontalIcon','5tcoRyw','setEditing','univer-py-4','strikethrough','UniverUi','SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_COLOR','InsertBoardMindMapOperation','slice','hide','visible','_previewHostSize','clearSelection','_resolveCurrentBoardContext','align-bottom-icon','removeAttribute','univer-w-full\x20univer-justify-between','TranslateMindMapOperation','toStringTag','circle,\x20ellipse,\x20line,\x20path,\x20polygon,\x20polyline,\x20rect,\x20text,\x20textPath,\x20tspan,\x20use','buttons','priority','boards-mind-ui.panel.emptyNodes','panel','FOCUSING_MIND_MAP_TEXT_EDITOR','paste-as-new','evenodd','_localeService','Segmented','arrow-right','boards-mind-ui.toolbar.action.addSibling','MIND_MAP_DEFAULT_NODE_TEXT','ItalicIcon','resolveMindMapBranchLineTypeForStructure','_getRenderModules','addSiblingNode','scope','_clearPopup','getElementDataForUnit','replace','refresh$','createRunner','HorizontalAlign','value','horizontalAlign','univer-flex\x20univer-gap-2','subUnitId','useLayoutEffect','bottom','_resetContext','boards-mind-ui.toolbar.action.delete','xlink:href','selectedIds','routing','setActiveTool','_removeObject','add','_getPointerLiveBounds','BoardTextEditingService','root','middle','boards-mind-ui.description','_handleElementUpdate','_init','_mindMapClipboardService','shapeData','univer-mb-4','ExportMindMapOpmlOperation','univer-text-gray-500','getHitControl','univer-text-xs\x20univer-text-gray-400\x20dark:!univer-text-gray-500','SHAPE_FLOATING_TOOLBAR_DEFAULT_STROKE_COLOR','delete','IBoardElementService','IFontService','_nodeSizeByKey','DetachMindMapNodeOperation','selectElements','get','BooleanNumber','boards-mind-ui.panel.title','strikethrough-icon','_intrinsicSizeService','primaryColor','_objectPointerDisposables','line','more-horizontal-icon','top-center','registerAdapter','PasteMindMapNodeOperation','_interactionSurfaceService','action','more','clientY','titleKey','push','compareMindMapOrderKey','M1.9999\x201.89941C1.66853\x201.89941\x201.3999\x202.16804\x201.3999\x202.49941C1.3999\x202.83078\x201.66853\x203.09941\x201.9999\x203.09941H13.9999C14.3313\x203.09941\x2014.5999\x202.83078\x2014.5999\x202.49941C14.5999\x202.16804\x2014.3313\x201.89941\x2013.9999\x201.89941H1.9999Z','M1.9999\x2012.9004C1.66853\x2012.9004\x201.3999\x2013.169\x201.3999\x2013.5004C1.3999\x2013.8318\x201.66853\x2014.1004\x201.9999\x2014.1004H13.9999C14.3313\x2014.1004\x2014.5999\x2013.8318\x2014.5999\x2013.5004C14.5999\x2013.169\x2014.3313\x2012.9004\x2013.9999\x2012.9004H1.9999Z','boards-mind-ui.saveDescription','Fragment','getSnapshot','UniverIcon','_resolveHostSize','_executeCreateAndEdit','extraProps','structure','originalStrokeWidth','boards-mind-ui.toolbar.action.addChild','writeText','M7.57564\x2010.3914C7.80995\x2010.6257\x208.18985\x2010.6257\x208.42417\x2010.3914L10.4242\x208.3914C10.6585\x208.15709\x2010.6585\x207.77719\x2010.4242\x207.54287C10.1899\x207.30856\x209.80995\x207.30856\x209.57564\x207.54287L7.9999\x209.11861L6.42417\x207.54287C6.18985\x207.30856\x205.80995\x207.30856\x205.57564\x207.54287C5.34132\x207.77719\x205.34132\x208.15709\x205.57564\x208.3914L7.57564\x2010.3914Z','IBoardElementStateService','board.operation.mind-map.open-panel','toggle-collapse','_childDragSelectionHidden','useState','ShapeLineDashEnum','_boardTextEditingService','currentColor','ArrowUp','_resolveControlSide','_addChild','toDisposable','unitId','packageName','side','zoomRatio','type','univer-w-full\x20univer-text-xs','call','_syncRootReparentPreview','_ensurePreviewObject','_refresh$','boards-mind-ui.panel.addText','BaseObject','scaleY','lineTo','flatMap','italic-icon','decorate','boards-mind-ui.panel.rename','_resolveArrowNavigationTarget','all','boards-mind-ui.panel.nodeStyle.fontSize','_activeNodeId','isBoardShortcutAvailable','Timeline','_dragStart','mind-map','getState','univer-grid-cols-[repeat(4,minmax(min-content,1fr))]\x20max-[359px]:univer-grid-cols-2','editingParams$','branchLineType','_object','Solid','ghostTextColor','_createTopologyBoundsByElementId','hypot','clearControl$','Injector','merge','M1.9999\x205.56641C1.66853\x205.56641\x201.3999\x205.83504\x201.3999\x206.16641C1.3999\x206.49778\x201.66853\x206.76641\x201.9999\x206.76641H13.9999C14.3313\x206.76641\x2014.5999\x206.49778\x2014.5999\x206.16641C14.5999\x205.83504\x2014.3313\x205.56641\x2013.9999\x205.56641H1.9999Z','tools','forEach','textEditingService','transientControl','objects','getContextValue','UniverProEngineShape','activeEditingId','setHoveredControl','@univerjs/ui','isRootNode','BOARD_RENDER_LAYER_INDEX','mind-map-layout-dropdown','_syncDragPreview','M3\x209C3.55228\x209\x204\x208.55228\x204\x208C4\x207.44772\x203.55228\x207\x203\x207C2.44772\x207\x202\x207.44772\x202\x208C2\x208.55228\x202.44772\x209\x203\x209Z','end','boards-mind-ui.panel.branchLineType.roundedOrthogonal','registerShortcut','scaleX','onPointerDown$','pointerStartX','fontFamily','rootText','rootNodeId','_syncRootScopePreview','_isControlEvent','addChild','changing$','univer-grid\x20univer-grid-cols-4\x20univer-gap-2','px\x20','fallbackNodeWidth','addChildGlyphSize','_navigateByTopology','bold','univer-flex\x20univer-flex-col\x20univer-gap-2','current','documentTextStyleToBoardShapeTextStyle','registerRenderModule','Touch','nodeHeight','map','DeviceType','univer-min-w-0\x20univer-break-words','object','container','beginPath','_resolveIncomingConnectorStyle','univer-cursor-not-allowed\x20univer-text-gray-300\x20hover:univer-bg-transparent','Select','toPrimitive','board.mind-map.description-dialog','univer-h-32\x20univer-resize-none\x20univer-text-sm','preventDefault','_openSelectedTextEditing','right','UniverBoardsPlugin','setPendingInsert','_resolveChildSide','setData','filter','items','pluginName','_activePointerDragDisposables','_getZoomRatio','disposeWithMe','sourceHighlightFillColor','verticalAlign','key','ReparentMindMapNodeOperation','BoardElementType','handleShortcut','UpdateMindMapIncomingConnectorOperation','_config','UniverProShapeEditorUi','before','boards-mind-ui.panel.structureKind.timelineHorizontal','boards-mind-ui.toolbar.action.fontColor','dialogService','BACKSPACE','_activePreview','boards-mind-ui.panel.structureKind.treeLeft','_textEditingService','_toFiniteBounds','_clearPopupIfSelectionChanged','AlignTextBothIcon','boards-mind-ui.panel.branchLineType.curve','focus','solid','M13\x209C13.5523\x209\x2014\x208.55228\x2014\x208C14\x207.44772\x2013.5523\x207\x2013\x207C12.4477\x207\x2012\x207.44772\x2012\x208C12\x208.55228\x2012.4477\x209\x2013\x209Z','_componentManager','_enableMindMapToolbarTool','_state','_initEditingRestore','parseInt','parseBoardElementRenderObjectKey','_resolveChildDragTopologyAction','getTouchHitDistance','button','BOARD_RENDER_OBJECT_Z_INDEX','clsx','ISidebarService','free','string','depth','AlignBottomIcon','StrikethroughIcon','getBoundingClientRect','InputNumber','_executeRootAnchoredLayout','disconnect','getPayload','2570PsFfCI','diffValue','BoardShapeIntrinsicSizeService','RightJustifyingIcon','offsetX','_instanceService','useEffect','@univerjs-pro/boards-mind-ui','PasteMindMapAsNewMindMapOperation','clear','dispose','_getPointFromEvent','sourceHighlightStrokeColor','containerData','fontColor','addParentNode','pipe','rootNode','command','_consumeControlEvent','14ftMOtj','_subscribeElementDataChanges','pendingInsert','_getPointerScreenPoint','arc','textBaseline','_drawConnectorPreview','UniverDesign','default','ignoreExternalFocusChanges','_copySelectedNode','AddMindMapSiblingOperation','opml','MetaKeys','_resolveControlBounds','M19.5\x207.5h-4.2c-1.9\x200-3.3\x201.5-3.3\x203.3','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','AddMindMapChildOperation','getMindMapConnectorMeta','ShapeFloatingToolbarIcon','M20\x2025h13M20\x2035h13M20\x2045h13','getActivePageId','textFill','_stateService','_collapseAll','_applyPointerChildDrag','board-mind-map-pending-insert-object','http://www.w3.org/2000/svg','fromEntries','univer-grid\x20univer-w-full\x20univer-gap-2','rootFontSize','italic','blueprint','oldShapeText','transientPreviewForeground','syncBoardElementRenderObject','isFinite','non-scaling-stroke','use','M16\x2029h18c7\x200\x2010-5\x2010-12v-3M34\x2029h10c7\x200\x2010\x205\x2010\x2012v3','color','_preview','getRenderUnitById','transform','show','engine','_resolveCreateChildSide','save','univer-grid\x20univer-h-14\x20univer-overflow-hidden\x20univer-rounded-xl\x20univer-bg-gray-100\x20univer-p-1','curve','toolbar','TypographyPanelButton','univer-flex\x20univer-flex-col\x20univer-gap-1','addObject','section','baseVal','_disposeActivePointerDragListeners','ImportMindMapOpmlOperation','effectAllowed','boards-mind-ui.panel.layout.both','_undoRedoGroupService','idSuffix','registerCommand','_previewRefreshService','boards-mind-ui.panel.cancel','add-sibling-before','UniverProBoards','hadStyleAttribute','meta','_updateHostSize','_commandService','clientX','IContextService','getObject','edit-text','univerjs-icon\x20univerjs-icon-','getCanvasElement','siblingDotGap','ARROW_DOWN','fallbackNodeHeight','univer-flex-1','_syncPointerChildDragPreview','univer-w-full\x20univer-min-w-0','executeCommand','surfaceColor','mindmap-horizontal','UniverLicensePlugin','_getElementKey','_ensureDragPreviewObject','dataTransfer','CopyMindMapNodeOperation','tree-diagram','_getSceneObject','title','boards-mind-ui.panel.tab.','M4.5\x2016.5h4.2c1.9\x200\x203.3-1.5\x203.3-3.3','skipNextObservers','boards-mind-ui.panel.structureKind.treeRight','boards-mind-ui.toolbar.action.fill','_syncElementDataToScene','isInteractionSurfaceActive','mindmap-vertical','useId','collapsePlusMinDistance','KeyCode','createElement','direction','placement','PromoteMindMapNodeOperation','_dragPreviewObject','ICommandService','routePoints','SHAPE_TEXT_EDITOR_QUOTE_COMMAND_ID','siblingDotRadius','getPropertyPriority','sort','labelKey','DisposableCollection','open','clipboard','SquareDot','getConfig','_attachActivePointerDragListeners','boards-mind-ui.panel.nodeStyle.','open-description','_isChildDragPastActivationThreshold','M8\x209C8.55228\x209\x209\x208.55228\x209\x208C9\x207.44772\x208.55228\x207\x208\x207C7.44772\x207\x207\x207.44772\x207\x208C7\x208.55228\x207.44772\x209\x208\x209Z','ChangeMindMapLayoutOperation','getTemplate','visualRadius','boards-mind-ui.panel.searchNodes','connectorData','_resolveDirtyBounds','_rememberNodeSize','Plugin','restore','strokeOpacity','M3.33315\x205.56641C3.00178\x205.56641\x202.73315\x205.83504\x202.73315\x206.16641C2.73315\x206.49778\x203.00178\x206.76641\x203.33315\x206.76641H12.6665C12.9979\x206.76641\x2013.2665\x206.49778\x2013.2665\x206.16641C13.2665\x205.83504\x2012.9979\x205.56641\x2012.6665\x205.56641H3.33315Z','focusedId','boards-mind-ui.panel.exportOPML','602832XQrvbb','CommandType','dispose$','detach','setLineDash','getCurrentUnitOfType','_boardElementService','foreignAttributes','OPERATION','findIndex','_resolveSelectedMindMapEntryFromState','requestRender','pointermove','TextFillButton','rootChildSides','onPointerUp$','ChangeMindMapBranchLineTypeOperation','IConfigService','@univerjs/design','_attachObjectPointerListeners','_applyScopeTranslation','min','_renderManagerService','28827scGpoc','incomingConnectorStyle','icon','align-top-icon','some','_executeAndLayout','getTextStyle','url(#$1','viewing','boards-mind-ui.panel.structureKind.treeAlternate','M1.3999\x2013.6999C1.3999\x2013.3685\x201.66853\x2013.0999\x201.9999\x2013.0999H13.9999C14.3313\x2013.0999\x2014.5999\x2013.3685\x2014.5999\x2013.6999C14.5999\x2014.0312\x2014.3313\x2014.2999\x2013.9999\x2014.2999H1.9999C1.66853\x2014.2999\x201.3999\x2014.0312\x201.3999\x2013.6999Z','divider-','glyphSize','47886lpffEA'];_0x5dc0=function(){return _0x4d5d4b;};return _0x5dc0();}
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("@univerjs-pro/boards"),require("@univerjs-pro/boards-mind"),require("@univerjs-pro/boards-ui"),require("@univerjs-pro/license"),require("@univerjs/core"),require("@univerjs/engine-render"),require("rxjs"),require("@univerjs/ui"),require("@univerjs-pro/shape-editor-ui"),require("@univerjs-pro/engine-shape"),require("@univerjs/design"),require("react"),require("react/jsx-runtime")):typeof define==`function`&&define.amd?define([`exports`,`@univerjs-pro/boards`,`@univerjs-pro/boards-mind`,`@univerjs-pro/boards-ui`,`@univerjs-pro/license`,`@univerjs/core`,`@univerjs/engine-render`,`rxjs`,`@univerjs/ui`,`@univerjs-pro/shape-editor-ui`,`@univerjs-pro/engine-shape`,`@univerjs/design`,`react`,`react/jsx-runtime`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.UniverProBoardsMindUi={},e.UniverProBoards,e.UniverProBoardsMind,e.UniverProBoardsUi,e.UniverProLicense,e.UniverCore,e.UniverEngineRender,e.rxjs,e.UniverUi,e.UniverProShapeEditorUi,e.UniverProEngineShape,e.UniverDesign,e.React,e.React))})(this,function(e,t,n,r,i,a,o,s,c,l,u,d,f,p){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var m=`@univerjs-pro/boards-mind-ui`,h=`1.5.2`;let g=`boards-mind-ui.config`,_={};function v(e){"@babel/helpers - typeof";return v=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},v(e)}function y(e,t){if(v(e)!=`object`||!e)return e;var n;if(typeof Symbol<`u`&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t||`default`);if(v(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function b(e){var t=y(e,`string`);return v(t)==`symbol`?t:t+``}function x(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t){return function(n,r){t(n,r,e)}}function C(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}let w=class extends a.RxDisposable{constructor(e,t,n){super(),this._renderContext=e,this._boardElementService=t,this._commandService=n,x(this,`_nodeSizeByKey`,/* @__PURE__ */ new Map),x(this,`_queuedLayouts`,/* @__PURE__ */ new Map),x(this,`_layoutFlushScheduled`,!1),this._init()}_init(){this._seedExistingNodeSizes(),this.disposeWithMe((0,a.toDisposable)(this._boardElementService.elementAdd$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(e=>{e.forEach(e=>{let t=this._boardElementService.getElementById(e.unitId,e.subUnitId,e.elementId);this._rememberNodeSize(e,t)})}))),this.disposeWithMe((0,a.toDisposable)(this._boardElementService.elementUpdate$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(e=>{e.forEach(e=>this._handleElementUpdate(e))})))}_seedExistingNodeSizes(){let e=this._renderContext.unitId,t=this._boardElementService.getElementDataForUnit(e);Object.entries(t).forEach(([t,n])=>{Object.values(n.data).forEach(n=>{this._rememberNodeSize({unitId:e,subUnitId:t,elementId:n.elementId},n)})})}_handleElementUpdate(e){if(e.unitId!==this._renderContext.unitId)return;let t=this._boardElementService.getElementById(e.unitId,e.subUnitId,e.elementId),r=(0,n.getMindMapNodeMeta)(t==null?void 0:t.element),i=this._resolveNodeSize(t);if(!r||!i){this._nodeSizeByKey.delete(this._getElementKey(e));return}let a=this._getElementKey(e),o=this._nodeSizeByKey.get(a);this._nodeSizeByKey.set(a,i),o&&o.width===i.width&&o.height===i.height||this._queueLayout({unitId:e.unitId,subUnitId:e.subUnitId,scopeId:r.structureScopeId})}_rememberNodeSize(e,t){if(e.unitId!==this._renderContext.unitId)return;let r=(0,n.getMindMapNodeMeta)(t==null?void 0:t.element),i=this._resolveNodeSize(t);r&&i&&this._nodeSizeByKey.set(this._getElementKey(e),i)}_resolveNodeSize(e){let t=(e==null?void 0:e.transform)??(e==null?void 0:e.element.transform),n=t==null?void 0:t.width,r=t==null?void 0:t.height;return!Number.isFinite(n)||!Number.isFinite(r)?null:{width:n,height:r}}_queueLayout(e){this._queuedLayouts.set(`${e.unitId}:${e.subUnitId}:${e.scopeId}`,e),this._layoutFlushScheduled||(this._layoutFlushScheduled=!0,Promise.resolve().then(()=>{this._layoutFlushScheduled=!1;let e=Array.from(this._queuedLayouts.values());this._queuedLayouts.clear(),e.forEach(e=>{this._executeRootAnchoredLayout(e)})}))}_executeRootAnchoredLayout(e){var t;let r=this._boardElementService.getElementById(e.unitId,e.subUnitId,e.scopeId),i=(t=(0,n.getMindMapContainerMeta)(r==null?void 0:r.element))==null?void 0:t.rootNodeId;this._commandService.executeCommand(n.LayoutMindMapOperation.id,{...e,skipUndo:!0,...i?{anchorNodeId:i}:null})}_getElementKey(e){return`${e.unitId}:${e.subUnitId}:${e.elementId}`}};w=C([S(1,(0,a.Inject)(t.IBoardElementService)),S(2,a.ICommandService)],w);let T={primaryColor:l.SHAPE_FLOATING_TOOLBAR_DEFAULT_STROKE_COLOR,surfaceColor:l.SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_BACKGROUND_COLOR,textColor:l.SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_COLOR,fontFamily:a.DEFAULT_STYLES.ff};function E(e,t){let n=Math.min(1,Math.max(0,Number.isFinite(t)?t:1)),r=e.trim(),i=/^#([0-9a-fA-F]{6})$/.exec(r);if(!i)return e;let a=i[1];return`rgba(${Number.parseInt(a.slice(0,2),16)}, ${Number.parseInt(a.slice(2,4),16)}, ${Number.parseInt(a.slice(4,6),16)}, ${n})`}let D={primaryColor:T.primaryColor,ghostFillColor:E(T.surfaceColor,.72),ghostTextColor:E(T.textColor,.62),rootTextColor:E(T.surfaceColor,.86),sourceHighlightFillColor:E(T.primaryColor,.12),sourceHighlightStrokeColor:E(T.primaryColor,.9),objectAlpha:.72,dragObjectAlpha:.78,connectorAlpha:.64,lineWidthScreen:2,fallbackNodeWidth:n.MIND_MAP_DEFAULT_NODE_SIZE.nodeWidth,fallbackNodeHeight:n.MIND_MAP_DEFAULT_NODE_SIZE.nodeHeight,branchGap:n.MIND_MAP_DEFAULT_LAYOUT.branchGap,sourceHaloScreen:4,ghostRadius:8,rootRadius:10,fontFamily:T.fontFamily,ghostFontWeight:500,rootFontWeight:600,rootFontSize:18,textPaddingScreen:12,dirtyPaddingScreen:24,sourceDashScreen:[6,4]};function O(e,t,n,r,i,a){let o=Math.min(a,r/2,i/2);e.beginPath(),e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.quadraticCurveTo(t+r,n,t+r,n+o),e.lineTo(t+r,n+i-o),e.quadraticCurveTo(t+r,n+i,t+r-o,n+i),e.lineTo(t+o,n+i),e.quadraticCurveTo(t,n+i,t,n+i-o),e.lineTo(t,n+o),e.quadraticCurveTo(t,n,t+o,n),e.closePath()}function k(e,t,n){return`${e} ${t/n}px ${D.fontFamily}`}let A=`board-mind-map-drag-preview-object`,j=r.BOARD_RENDER_LAYER_INDEX.preview;function M(e,t){return Number.isFinite(e)?e:t}function N(){return D.fallbackNodeWidth}function P(){return D.fallbackNodeHeight}function F(e){return e===1?`left`:e===3?`right`:`center`}function ee(e,t,n,r){return n===1?e+r:n===3?e+t-r:e+t/2}var te=class extends o.BaseObject{constructor(e=A,t){super(e),x(this,`_state`,{ghostBounds:null,parentBounds:null,side:`right`,zoomRatio:1}),this.evented=!1,this.zIndex=r.BOARD_RENDER_OBJECT_Z_INDEX.transientPreviewForeground,this.updateState(t)}updateState(e){if(this._state={...this._state,...e},this._state.ghostBounds){let e=this._resolveDirtyBounds();this.transformByState(e),this.show()}else this.hide();let t=this;typeof t.makeDirtyNoDebounce==`function`?t.makeDirtyNoDebounce(!0):this.makeDirty(!0)}isHit(e){return!1}render(e,t){let r=this._state.ghostBounds;if(!r||!this.visible)return this.makeDirty(!1),this;let i=Number.isFinite(this._state.zoomRatio)&&(this._state.zoomRatio??0)>0?this._state.zoomRatio:1,a=M(r.left,0),o=M(r.top,0),s=Math.max(1,M(r.width,N())),c=Math.max(1,M(r.height,P()));if(e.save(),e.globalAlpha=D.dragObjectAlpha,e.lineWidth=D.lineWidthScreen/i,e.strokeStyle=D.primaryColor,e.fillStyle=D.ghostFillColor,this._drawConnectorPreview(e,{left:a,top:o,width:s,height:c},i),this._drawSourceHighlight(e,i),this._state.renderGhostNode===!1)return e.restore(),this.makeDirty(!1),this;O(e,a,o,s,c,D.ghostRadius),e.fill(),e.stroke();let l=this._state.textStyle,u=Number.isFinite(l==null?void 0:l.fontSize)&&((l==null?void 0:l.fontSize)??0)>0?l.fontSize:16,d=D.textPaddingScreen/i;return e.fillStyle=(l==null?void 0:l.color)??D.ghostTextColor,e.font=k(D.ghostFontWeight,u,i),e.textAlign=F(l==null?void 0:l.horizontalAlign),e.textBaseline=`middle`,e.fillText((l==null?void 0:l.text)||n.MIND_MAP_DEFAULT_NODE_TEXT,ee(a,s,l==null?void 0:l.horizontalAlign,d),o+c/2,Math.max(1,s-d*2)),e.restore(),this.makeDirty(!1),this}_resolveDirtyBounds(){let e=this._state.ghostBounds,t=Number.isFinite(this._state.zoomRatio)&&(this._state.zoomRatio??0)>0?this._state.zoomRatio:1,n=D.dirtyPaddingScreen/t;if(!e)return{left:0,top:0,width:1,height:1};let r=M(e.left,0),i=M(e.top,0),a=Math.max(1,M(e.width,N())),o=Math.max(1,M(e.height,P())),s=this._state.sourceBounds,c=this._state.parentBounds,l=M(s==null?void 0:s.left,r),u=M(s==null?void 0:s.top,i),d=Math.max(1,M(s==null?void 0:s.width,a)),f=Math.max(1,M(s==null?void 0:s.height,o));if(!c){let e=Math.min(r,l)-n,t=Math.min(i,u)-n,s=Math.max(r+a,l+d)+n,c=Math.max(i+o,u+f)+n;return{left:e,top:t,width:s-e,height:c-t}}let p=M(c.left,r),m=M(c.top,i),h=Math.max(1,M(c.width,N())),g=Math.max(1,M(c.height,P())),_=Math.min(r,p,l)-n,v=Math.min(i,m,u)-n,y=Math.max(r+a,p+h,l+d)+n,b=Math.max(i+o,m+g,u+f)+n;return{left:_,top:v,width:y-_,height:b-v}}_drawSourceHighlight(e,t){var n;let r=this._state.sourceBounds;if(!r)return;let i=D.sourceHaloScreen/t,a=M(r.left,0)-i,o=M(r.top,0)-i,s=Math.max(1,M(r.width,N()))+i*2,c=Math.max(1,M(r.height,P()))+i*2;e.save(),e.globalAlpha=1,e.lineWidth=D.lineWidthScreen/t,e.strokeStyle=D.sourceHighlightStrokeColor,e.fillStyle=D.sourceHighlightFillColor,(n=e.setLineDash)==null||n.call(e,D.sourceDashScreen.map(e=>e/t)),O(e,a,o,s,c,D.rootRadius),e.fill(),e.stroke(),e.restore()}_drawConnectorPreview(e,t,n){let r=this._state.parentBounds;if(!r)return;let i=M(r.left,0),a=M(r.top,0),o=Math.max(1,M(r.width,N())),s=Math.max(1,M(r.height,P())),c=D.branchGap,l=this._state.side??`right`;if(e.save(),e.globalAlpha=D.connectorAlpha,e.strokeStyle=D.primaryColor,e.lineWidth=D.lineWidthScreen/n,e.lineCap=`round`,e.lineJoin=`round`,e.beginPath(),l===`top`||l===`bottom`){let n=i+o/2,r=t.left+t.width/2,u=l===`bottom`?a+s:a,d=l===`bottom`?t.top:t.top+t.height,f=l===`bottom`?Math.min(u+c,(u+d)/2):Math.max(u-c,(u+d)/2);e.moveTo(n,u),e.lineTo(n,f),e.lineTo(r,f),e.lineTo(r,d)}else{let n=a+s/2,r=t.top+t.height/2,u=l===`right`?i+o:i,d=l===`right`?t.left:t.left+t.width,f=l===`right`?Math.min(u+c,(u+d)/2):Math.max(u-c,(u+d)/2);e.moveTo(u,n),e.lineTo(f,n),e.lineTo(f,r),e.lineTo(d,r)}e.stroke(),e.restore()}};function I(e,t){return(t==null?void 0:t[e.elementId])??e.element.transform}function ne(e,t){let n=I(e,t);return{x:(n.left??0)+(n.width??0)/2,y:(n.top??0)+(n.height??0)/2}}function re(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}function ie(e,t){let n=e.left??0,r=e.top??0,i=n+(e.width??0),a=r+(e.height??0),o=t.left??0,s=t.top??0,c=o+(t.width??0),l=s+(t.height??0),u=Math.max(o-i,n-c,0),d=Math.max(s-a,r-l,0);return Math.hypot(u,d)}function ae(e,t,r){var i;let a=(0,n.getMindMapNodeMeta)((i=e[t])==null?void 0:i.element);for(;a!=null&&a.parentNodeId;){var o;if(a.parentNodeId===r)return!0;a=(0,n.getMindMapNodeMeta)((o=e[a.parentNodeId])==null?void 0:o.element)}return!1}function oe(e,t,n){let r=I(e,n),i=r.top??0,a=r.height??0;return a<=0?null:t.y<=i+a/3?`before`:t.y>=i+a*2/3?`after`:null}function se(e,t){let n=t==null?void 0:t[e];return Number.isFinite(n==null?void 0:n.left)&&Number.isFinite(n==null?void 0:n.top)?{kind:`detach`,left:n.left,top:n.top}:{kind:`detach`}}function L(e,t,r){let i=e[t],a=(0,n.getMindMapNodeMeta)(i==null?void 0:i.element);if(!i||!a||!a.parentNodeId&&!(r!=null&&r.allowRootReparent))return{kind:`none`};let o=r==null?void 0:r.boundsByElementId,s=I(i,o),c=ne(i,o),l=Object.values(e).map(i=>{let c=(0,n.getMindMapNodeMeta)(i.element);return!c||i.elementId===t||i.elementId===a.parentNodeId||r!=null&&r.allowRootReparent&&!a.parentNodeId&&c.structureScopeId===a.structureScopeId||ae(e,i.elementId,t)?null:{item:i,snapDistance:ie(s,I(i,o)),center:ne(i,o)}}).filter(e=>!!e).sort((e,t)=>e.snapDistance-t.snapDistance||re(c,e.center)-re(c,t.center))[0];if(l&&l.snapDistance<=100){let e=(0,n.getMindMapNodeMeta)(l.item.element),t=e!=null&&e.parentNodeId?oe(l.item,c,o):null;return e!=null&&e.parentNodeId&&t?{kind:`reparent`,newParentNodeId:e.parentNodeId,side:e.side??`right`,referenceNodeId:l.item.elementId,placement:t}:{kind:`reparent`,newParentNodeId:l.item.elementId,side:c.x<l.center.x?`left`:`right`}}if(r!=null&&r.detachWhenNoSnap)return se(t,o);if(!a.parentNodeId)return{kind:`none`};let u=e[a.parentNodeId];return u&&re(c,ne(u,o))>560?se(t,o):{kind:`none`}}function ce(e,t){var r,i;return e.elementId===t||((r=(0,n.getMindMapNodeMeta)(e.element))==null?void 0:r.structureScopeId)===t||((i=(0,n.getMindMapConnectorMeta)(e.element))==null?void 0:i.structureScopeId)===t}function le(e,t,n,r){let i=e[t];if(!i)return e;let a=i.transform??i.element.transform??{};return{...e,[t]:{...i,transform:{...a,left:(a.left??0)+n,top:(a.top??0)+r},element:{...i.element,transform:{...i.element.transform,left:(i.element.transform.left??0)+n,top:(i.element.transform.top??0)+r}}}}}function ue(e){if(!Number.isFinite(e.liveRootBounds.left)||!Number.isFinite(e.liveRootBounds.top)||!Number.isFinite(e.rootStartBounds.left)||!Number.isFinite(e.rootStartBounds.top))return null;let n=e.liveRootBounds.left-e.rootStartBounds.left,r=e.liveRootBounds.top-e.rootStartBounds.top,i=le(e.elementData,e.scopeId,n,r),a=[];return Object.values(i).forEach(o=>{if(o.elementId===e.rootNodeId||o.elementId===e.scopeId||!ce(o,e.scopeId))return;if(`connectorData`in o.element){var s;let i=(s=e.elementData[o.elementId])==null?void 0:s.element;i&&`connectorData`in i&&a.push({kind:`connector`,elementId:o.elementId,element:(0,t.offsetBoardConnectorGeometry)(i,{x:n,y:r})});return}let c=(0,t.resolveBoardElementWorldBounds)(i,o.elementId);c&&a.push({kind:`bounds`,elementId:o.elementId,bounds:c})}),{deltaX:n,deltaY:r,elementData:i,items:a}}let de=class extends a.RxDisposable{constructor(e,t,n,r,i,a,o){super(),this._renderContext=e,this._boardElementService=t,this._elementStateService=n,this._commandService=r,this._uiStateService=i,this._instanceService=a,this._undoRedoGroupService=o,x(this,`_dragStart`,null),x(this,`_pointerDragStart`,null),x(this,`_dragPreviewObject`,null),x(this,`_childDragActivated`,!1),x(this,`_lastChildDragAction`,null),x(this,`_objectPointerDisposables`,null),x(this,`_attachObjectPointerScheduled`,!1),x(this,`_activePointerDragDisposables`,null),x(this,`_childDragSelectionHidden`,!1),this._init()}_init(){var e,t,n,r,i;let o=this._renderContext.scene.getTransformerByCreate();this.disposeWithMe((0,a.toDisposable)(o.changeStart$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(()=>{this._captureDragStart()}))),this.disposeWithMe((0,a.toDisposable)(((e=o.changing$)==null?void 0:e.pipe((0,s.takeUntil)(this.dispose$)).subscribe(e=>{this._syncDragPreview(e==null?void 0:e.objects)}))??{dispose:()=>{}})),this.disposeWithMe((0,a.toDisposable)(o.changeEnd$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(e=>{setTimeout(()=>this._applyDragTopologyAction(e==null?void 0:e.objects),0)}))),this.disposeWithMe((0,a.toDisposable)(((t=this._renderContext.scene.onPointerDown$)==null?void 0:t.subscribeEvent({priority:3,next:([e])=>this._capturePointerChildDragStart(e)}))??{dispose:()=>{}})),this.disposeWithMe((0,a.toDisposable)(((n=this._renderContext.scene.onPointerMove$)==null?void 0:n.subscribeEvent({priority:3,next:([e,t])=>this._syncPointerChildDragPreview(e,t)}))??{dispose:()=>{}})),this.disposeWithMe((0,a.toDisposable)(((r=this._renderContext.scene.onPointerUp$)==null?void 0:r.subscribeEvent({priority:3,next:([e,t])=>this._applyPointerChildDrag(e,t)}))??{dispose:()=>{}})),this.disposeWithMe((0,a.toDisposable)(((i=this._renderContext.scene.onPointerCancel$)==null?void 0:i.subscribeEvent({priority:3,next:([,e])=>this._cancelPointerChildDrag(e)}))??{dispose:()=>{}})),this.disposeWithMe((0,a.toDisposable)(()=>{var e;return(e=this._objectPointerDisposables)==null?void 0:e.dispose()})),this.disposeWithMe((0,a.toDisposable)(()=>this._disposeActivePointerDragListeners())),this._subscribeElementDataChanges(),this._scheduleAttachObjectPointerListeners(),this.disposeWithMe((0,a.toDisposable)(()=>this._removeDragPreviewObject()))}_subscribeElementDataChanges(){[this._boardElementService.elementAdd$,this._boardElementService.elementUpdate$,this._boardElementService.elementRemove$].forEach(e=>{this.disposeWithMe((0,a.toDisposable)(e.pipe((0,s.takeUntil)(this.dispose$)).subscribe(()=>{this._scheduleAttachObjectPointerListeners()})))}),this._elementStateService.state$&&this.disposeWithMe((0,a.toDisposable)(this._elementStateService.state$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(()=>{this._scheduleAttachObjectPointerListeners()})))}_scheduleAttachObjectPointerListeners(){this._attachObjectPointerScheduled||(this._attachObjectPointerScheduled=!0,Promise.resolve().then(()=>this._attachObjectPointerListeners()))}_attachObjectPointerListeners(){var e;this._attachObjectPointerScheduled=!1;let t=this._resolveCurrentBoardContext(),i=this._renderContext.scene;if(!t||typeof i.getObject!=`function`)return;let o=this._boardElementService.getElementData(t.unitId,t.subUnitId),s=new a.DisposableCollection;(e=this._objectPointerDisposables)==null||e.dispose(),this._objectPointerDisposables=s,Object.values(o).forEach(e=>{var a,o;let c=(0,n.getMindMapNodeMeta)(e.element);if(!(c!=null&&c.parentNodeId))return;let l=(0,r.getBoardElementRenderObjectKey)(t.unitId,e.elementId),u=((a=i.getObjectIncludeInGroup)==null?void 0:a.call(i,l))??((o=i.getObject)==null?void 0:o.call(i,l));u!=null&&u.onPointerDown$&&s.add(u.onPointerDown$.subscribeEvent({priority:-10,next:([n,r])=>this._capturePointerChildDragStart(n,{unitId:t.unitId,subUnitId:t.subUnitId,nodeId:e.elementId},r)}))})}_resolveCurrentBoardContext(){let e=this._elementStateService.getSnapshot().context;if(e)return e;let t=this._renderContext.unitId,n=t?this._instanceService.getUnit(t,a.UniverInstanceType.UNIVER_BOARD):null,r=n==null?void 0:n.getActivePageId();return!n||!r?null:{unitId:n.getUnitId(),subUnitId:r}}_captureDragStart(){let e=this._elementStateService.getSnapshot();this._childDragActivated=!1,this._childDragSelectionHidden=!1,this._lastChildDragAction=null;let r=e.context,i=e.focusedId??e.selectedIds[0];if(!r||!i){this._dragStart=null,this._removeDragPreviewObject();return}let a=this._boardElementService.getElementData(r.unitId,r.subUnitId);if(e.selectedIds.length>1){let n=this._resolveCompleteSelectedScope(a,e.selectedIds);if(!n){this._dragStart=null,this._removeDragPreviewObject();return}let i=a[n.rootNodeId],o=(0,t.resolveBoardElementWorldBounds)(a,n.rootNodeId),s=i.element.transform;this._dragStart={kind:`scope`,unitId:r.unitId,subUnitId:r.subUnitId,nodeId:n.rootNodeId,scopeId:n.scopeId,left:(o==null?void 0:o.left)??s.left??0,top:(o==null?void 0:o.top)??s.top??0,width:(o==null?void 0:o.width)??s.width??0,height:(o==null?void 0:o.height)??s.height??0,elementData:a};return}let o=a[i],s=(0,n.getMindMapNodeMeta)(o==null?void 0:o.element);if(!o||!s){this._dragStart=null,this._removeDragPreviewObject();return}let c=(0,t.resolveBoardElementWorldBounds)(a,i),l=o.element.transform;this._dragStart={kind:s.parentNodeId===null?`root`:`child`,unitId:r.unitId,subUnitId:r.subUnitId,nodeId:i,scopeId:s.structureScopeId,left:(c==null?void 0:c.left)??l.left??0,top:(c==null?void 0:c.top)??l.top??0,width:(c==null?void 0:c.width)??l.width??0,height:(c==null?void 0:c.height)??l.height??0,elementData:a}}_resolveCompleteSelectedScope(e,t){let r=new Set(t),i=t.map(t=>{var r,i,a,o;let s=(r=e[t])==null?void 0:r.element;return((i=(0,n.getMindMapNodeMeta)(s))==null?void 0:i.structureScopeId)??((a=(0,n.getMindMapConnectorMeta)(s))==null?void 0:a.structureScopeId)??((o=(0,n.getMindMapContainerMeta)(s))==null?void 0:o.structureScopeId)??null});if(i.some(e=>e===null)||new Set(i).size!==1)return null;let a=i[0];if(!a)return null;let o=Object.values(e).filter(e=>{var t;return e.element.visible!==!1&&((t=(0,n.getMindMapNodeMeta)(e.element))==null?void 0:t.structureScopeId)===a});if(o.length===0||o.some(e=>!r.has(e.elementId)))return null;let s=o.filter(e=>{var t;return((t=(0,n.getMindMapNodeMeta)(e.element))==null?void 0:t.parentNodeId)===null});return s.length===1?{rootNodeId:s[0].elementId,scopeId:a}:null}_capturePointerChildDragStart(e,r,i){var a,o,s,c,l;if(this._uiStateService.getState().interactionMode===`viewing`||(e.button??0)!==0)return;let u=this._elementStateService.getSnapshot();if(u.activeEditingId){this._pointerDragStart=null;return}let d=r?{unitId:r.unitId,subUnitId:r.subUnitId}:u.context??this._resolveCurrentBoardContext(),f=(r==null?void 0:r.nodeId)??(u.selectedIds.length===1?u.focusedId??u.selectedIds[0]:void 0);if(!d){this._pointerDragStart=null;return}let p=this._boardElementService.getElementData(d.unitId,d.subUnitId),m=this._getBoardPointFromEvent(e);if(!r){let e=f?p[f]:null,r=(0,n.getMindMapNodeMeta)(e==null?void 0:e.element),i=f?(0,t.resolveBoardElementWorldBounds)(p,f)??(e==null?void 0:e.element.transform):null;r!=null&&r.parentNodeId&&i&&this._isPointInBounds(m,{left:i.left??0,top:i.top??0,width:i.width??0,height:i.height??0})||(f=this._findChildNodeAtPoint(p,m))}if(!f){this._pointerDragStart=null;return}let h=p[f],g=(0,n.getMindMapNodeMeta)(h==null?void 0:h.element);if(!h||!(g!=null&&g.parentNodeId)){this._pointerDragStart=null;return}this._instanceService.focusUnit(d.unitId),(a=this._renderContext.engine)==null||(o=a.getCanvasElement)==null||(o=o.call(a))==null||(s=o.focus)==null||s.call(o,{preventScroll:!0}),(c=(l=this._elementStateService).selectElements)==null||c.call(l,d,[f],f),i==null||i.stopPropagation();let _=(0,t.resolveBoardElementWorldBounds)(p,f),v=h.element.transform,y={left:(_==null?void 0:_.left)??v.left??0,top:(_==null?void 0:_.top)??v.top??0,width:(_==null?void 0:_.width)??v.width??0,height:(_==null?void 0:_.height)??v.height??0};if(!r&&!this._isPointInBounds(m,y)){this._pointerDragStart=null;return}let b=this._getPointerScreenPoint(e);this._childDragActivated=!1,this._childDragSelectionHidden=!1,this._lastChildDragAction=null,this._pointerDragStart={kind:`child`,unitId:d.unitId,subUnitId:d.subUnitId,nodeId:f,scopeId:g.structureScopeId,...y,pointerStartX:b.x,pointerStartY:b.y,elementData:p},this._attachActivePointerDragListeners(),this._consumePointerEvent(e,i)}_syncPointerChildDragPreview(e,t){var n,r;let i=this._pointerDragStart;if(!i||e.buttons!==void 0&&e.buttons!==1)return;let a=this._getPointerLiveBounds(e,i);if(!this._isChildDragPastActivationThreshold(i,a))return;this._childDragActivated||this._hideSelectionForChildDrag(),this._childDragActivated=!0;let o=this._createTopologyBoundsByElementId(i.elementData,i.nodeId,a),s=L(i.elementData,i.nodeId,{boundsByElementId:o,detachWhenNoSnap:!0});this._lastChildDragAction=s,this._syncChildDragPreviewObject(a,s,o),this._consumePointerEvent(e,t),this._renderContext.scene.makeDirty(!0),(n=(r=this._renderContext.scene).requestRender)==null||n.call(r)}_applyPointerChildDrag(e,t){let n=this._pointerDragStart;if(!n)return;if(this._pointerDragStart=null,this._disposeActivePointerDragListeners(),this._removeDragPreviewObject(),!this._childDragActivated){this._lastChildDragAction=null;return}let r=this._boardElementService.getElementData(n.unitId,n.subUnitId),i=this._getPointerLiveBounds(e,n),a=this._createTopologyBoundsByElementId(r,n.nodeId,i),o=L(r,n.nodeId,{boundsByElementId:a,detachWhenNoSnap:!0});this._lastChildDragAction=null,this._executeChildDragAction(n.unitId,n.subUnitId,n.nodeId,r,o),this._childDragSelectionHidden=!1,this._consumePointerEvent(e,t)}_cancelPointerChildDrag(e){let t=this._pointerDragStart;if(t){if(this._pointerDragStart=null,this._disposeActivePointerDragListeners(),this._childDragActivated=!1,this._lastChildDragAction=null,this._removeDragPreviewObject(),this._childDragSelectionHidden){var n,r;(n=(r=this._elementStateService).selectElements)==null||n.call(r,{unitId:t.unitId,subUnitId:t.subUnitId},[t.nodeId],t.nodeId),this._childDragSelectionHidden=!1}e==null||e.stopPropagation()}}_attachActivePointerDragListeners(){this._disposeActivePointerDragListeners();let e=typeof window>`u`?null:window;if(!(e!=null&&e.addEventListener))return;let t=new a.DisposableCollection,n=e=>this._syncPointerChildDragPreview(e),r=e=>this._applyPointerChildDrag(e),i=()=>this._cancelPointerChildDrag();e.addEventListener(`pointermove`,n,{capture:!0}),e.addEventListener(`pointerup`,r,{capture:!0}),e.addEventListener(`pointercancel`,i,{capture:!0}),t.add((0,a.toDisposable)(()=>{e.removeEventListener(`pointermove`,n,{capture:!0}),e.removeEventListener(`pointerup`,r,{capture:!0}),e.removeEventListener(`pointercancel`,i,{capture:!0})})),this._activePointerDragDisposables=t}_findChildNodeAtPoint(e,r){let i=Object.values(e);for(let a=i.length-1;a>=0;--a){let o=i[a],s=(0,n.getMindMapNodeMeta)(o.element);if(!(s!=null&&s.parentNodeId))continue;let c=(0,t.resolveBoardElementWorldBounds)(e,o.elementId)??o.element.transform;if(this._isPointInBounds(r,{left:c.left??0,top:c.top??0,width:c.width??0,height:c.height??0}))return o.elementId}}_disposeActivePointerDragListeners(){var e;(e=this._activePointerDragDisposables)==null||e.dispose(),this._activePointerDragDisposables=null}_syncDragPreview(e){let t=this._dragStart;t&&((t.kind===`root`||t.kind===`scope`)&&this._syncRootScopePreview(e),t.kind===`root`?this._syncRootReparentPreview(e):this._syncChildDragPreview(e))}_syncRootScopePreview(e){let t=this._dragStart;if(!t||t.kind!==`root`&&t.kind!==`scope`)return;let n=e==null?void 0:e.get((0,r.getBoardElementRenderObjectKey)(t.unitId,t.nodeId));if(!n||!Number.isFinite(n.left)||!Number.isFinite(n.top))return;let i=ue({elementData:t.elementData,rootNodeId:t.nodeId,scopeId:t.scopeId,rootStartBounds:{left:t.left,top:t.top},liveRootBounds:{left:n.left,top:n.top}});if(!i)return;let a=this._renderContext.scene,o=a,s=!1;i.items.forEach(e=>{var n;let c=(0,r.getBoardElementRenderObjectKey)(t.unitId,e.elementId),l=((n=o.getObjectIncludeInGroup)==null?void 0:n.call(o,c))??a.getObject(c);l&&(e.kind===`connector`&&typeof l.updateElement==`function`?(l.updateElement(e.element,i.elementData),s=!0):e.kind===`bounds`&&(l.transformByState(e.bounds),typeof l.makeDirtyNoDebounce==`function`?l.makeDirtyNoDebounce(!0):l.makeDirty(!0),s=!0))}),s&&a.makeDirty(!0)}_syncRootReparentPreview(e){var t,n;let i=this._dragStart;if(!i||i.kind!==`root`)return;let a=e==null?void 0:e.get((0,r.getBoardElementRenderObjectKey)(i.unitId,i.nodeId));if(!a||!Number.isFinite(a.left)||!Number.isFinite(a.top)){this._removeDragPreviewObject();return}let o=this._getLiveObjectBounds(a,i),s=this._createTopologyBoundsByElementId(i.elementData,i.nodeId,o),c=L(i.elementData,i.nodeId,{boundsByElementId:s,allowRootReparent:!0});if(c.kind!==`reparent`){this._removeDragPreviewObject();return}let l=this._ensureDragPreviewObject();l&&(l.updateState({ghostBounds:o,sourceBounds:null,parentBounds:s[c.newParentNodeId],side:c.side,textStyle:void 0,renderGhostNode:!1}),this._renderContext.scene.makeDirty(!0),(t=(n=this._renderContext.scene).requestRender)==null||t.call(n))}_syncChildDragPreview(e){var t,n;let i=this._dragStart;if(!i||i.kind!==`child`)return;let a=e==null?void 0:e.get((0,r.getBoardElementRenderObjectKey)(i.unitId,i.nodeId));if(!a){this._removeDragPreviewObject();return}let o=this._getLiveObjectBounds(a,i);if(!this._isChildDragPastActivationThreshold(i,o)){this._lastChildDragAction=null,this._removeDragPreviewObject(),this._restoreObjectToDragStart(a,i),this._renderContext.scene.makeDirty(!0);return}this._childDragActivated||this._hideSelectionForChildDrag(),this._childDragActivated=!0;let s=this._createTopologyBoundsByElementId(i.elementData,i.nodeId,o),c=L(i.elementData,i.nodeId,{boundsByElementId:s,detachWhenNoSnap:!0});this._lastChildDragAction=c,this._syncChildDragPreviewObject(o,c,s),this._restoreObjectToDragStart(a,i),this._renderContext.scene.makeDirty(!0),(t=(n=this._renderContext.scene).requestRender)==null||t.call(n)}_applyDragTopologyAction(e){var t;let n=this._elementStateService.getSnapshot(),r=n.context,i=n.focusedId??n.selectedIds[0];if(r&&((t=this._dragStart)==null?void 0:t.kind)===`scope`){this._removeDragPreviewObject(),this._applyScopeTranslation(r.unitId,r.subUnitId,e);return}if(!r||!i||n.selectedIds.length!==1){this._removeDragPreviewObject(),this._dragStart=null;return}this._removeDragPreviewObject();let a=this._boardElementService.getElementData(r.unitId,r.subUnitId);if(this._applyRootTranslation(r.unitId,r.subUnitId,i,a,e))return;let o=this._resolveChildDragTopologyAction(r.unitId,r.subUnitId,i,a,e);this._executeChildDragAction(r.unitId,r.subUnitId,i,a,o)}_applyScopeTranslation(e,t,i){let a=this._dragStart;if(this._dragStart=null,!a||a.kind!==`scope`||a.unitId!==e||a.subUnitId!==t)return;let o=i==null?void 0:i.get((0,r.getBoardElementRenderObjectKey)(e,a.nodeId)),s=o&&Number.isFinite(o.left)?o.left??a.left:a.left,c=o&&Number.isFinite(o.top)?o.top??a.top:a.top,l=s-a.left,u=c-a.top;(l!==0||u!==0)&&this._commandService.executeCommand(n.TranslateMindMapOperation.id,{unitId:e,subUnitId:t,scopeId:a.scopeId,deltaX:l,deltaY:u})}_executeChildDragAction(e,t,r,i,a){if(a.kind===`reparent`){var o,s;let c=(0,n.getMindMapNodeMeta)((o=i[r])==null?void 0:o.element),l=(0,n.getMindMapNodeMeta)((s=i[a.newParentNodeId])==null?void 0:s.element);this._executeAndLayout(n.ReparentMindMapNodeOperation.id,{unitId:e,subUnitId:t,nodeId:r,newParentNodeId:a.newParentNodeId,side:a.side,...a.referenceNodeId?{referenceNodeId:a.referenceNodeId}:null,...a.placement?{placement:a.placement}:null},[c==null?void 0:c.structureScopeId,l==null?void 0:l.structureScopeId],r)}else if(a.kind===`detach`){var c;let o=(0,n.getMindMapNodeMeta)((c=i[r])==null?void 0:c.element);this._executeAndLayout(n.DetachMindMapNodeOperation.id,{unitId:e,subUnitId:t,nodeId:r,...Number.isFinite(a.left)?{left:a.left}:null,...Number.isFinite(a.top)?{top:a.top}:null},[o==null?void 0:o.structureScopeId],r)}}_applyRootTranslation(e,i,a,o,s){let c=this._dragStart;if((c==null?void 0:c.kind)===`root`&&(this._dragStart=null),!c||c.unitId!==e||c.subUnitId!==i||c.nodeId!==a)return!1;let l=o[a],u=(0,n.getMindMapNodeMeta)(l==null?void 0:l.element);if(!l||!u||u.parentNodeId!==null)return!1;let d=s==null?void 0:s.get((0,r.getBoardElementRenderObjectKey)(e,a)),f=(0,t.resolveBoardElementWorldBounds)(o,a),p=Number.isFinite(d==null?void 0:d.left)?d.left:(f==null?void 0:f.left)??l.element.transform.left??0,m=Number.isFinite(d==null?void 0:d.top)?d.top:(f==null?void 0:f.top)??l.element.transform.top??0,h=p-c.left,g=m-c.top;if(h===0&&g===0)return!0;let _={left:p,top:m,width:Number.isFinite(d==null?void 0:d.width)?d.width:c.width,height:Number.isFinite(d==null?void 0:d.height)?d.height:c.height},v=L(o,a,{boundsByElementId:this._createTopologyBoundsByElementId(o,a,_),allowRootReparent:!0});if(v.kind===`reparent`)return this._executeChildDragAction(e,i,a,o,v),!0;let y=!!f&&Math.abs(f.left-p)<.001&&Math.abs(f.top-m)<.001;return this._commandService.executeCommand(n.TranslateMindMapOperation.id,{unitId:e,subUnitId:i,scopeId:c.scopeId,deltaX:h,deltaY:g,...y?{excludeElementIds:[a],preserveExcludedWorldTransforms:!0}:null}),!0}_resolveChildDragTopologyAction(e,t,n,i,a){let o=this._dragStart;if(!o||o.kind!==`child`||o.unitId!==e||o.subUnitId!==t||o.nodeId!==n)return{kind:`none`};this._dragStart=null;let s=a==null?void 0:a.get((0,r.getBoardElementRenderObjectKey)(e,n));if(!this._childDragActivated)return s&&this._restoreObjectToDragStart(s,o),this._lastChildDragAction=null,{kind:`none`};if(!s){let e=this._lastChildDragAction??{kind:`none`};return this._lastChildDragAction=null,e}let c=this._getLiveObjectBounds(s,o);if(this._restoreObjectToDragStart(s,o),!this._isChildDragPastActivationThreshold(o,c))return this._lastChildDragAction=null,{kind:`none`};let l=L(i,n,{boundsByElementId:this._createTopologyBoundsByElementId(i,n,c),detachWhenNoSnap:!0});return this._lastChildDragAction=null,l}_isChildDragPastActivationThreshold(e,t){let n=(t.left??e.left)-e.left,r=(t.top??e.top)-e.top;return Math.hypot(n,r)>=18}_getPointerLiveBounds(e,t){let n=this._getPointerScreenPoint(e),r=this._getZoomRatio();return{left:t.left+(n.x-t.pointerStartX)/r,top:t.top+(n.y-t.pointerStartY)/r,width:t.width,height:t.height}}_getBoardPointFromEvent(e){let t=this._uiStateService.getState(),n=(t==null?void 0:t.viewportPanOffset)??{x:0,y:0},r=this._getZoomRatio();return{x:Math.round(((e.offsetX??0)-n.x)/r),y:Math.round(((e.offsetY??0)-n.y)/r)}}_getPointerScreenPoint(e){return{x:Number.isFinite(e.clientX)?e.clientX:e.offsetX??0,y:Number.isFinite(e.clientY)?e.clientY:e.offsetY??0}}_getZoomRatio(){let e=this._uiStateService.getState().zoomRatio;return Number.isFinite(e)&&(e??0)>0?e:1}_isPointInBounds(e,t){return e.x>=t.left&&e.x<=t.left+t.width&&e.y>=t.top&&e.y<=t.top+t.height}_consumePointerEvent(e,t){var n,r;t==null||t.stopPropagation(),t&&(t.skipNextObservers=!0),(n=e.preventDefault)==null||n.call(e),(r=e.stopPropagation)==null||r.call(e)}_hideSelectionForChildDrag(){var e,t;this._childDragSelectionHidden||=((e=(t=this._elementStateService).clearSelection)==null||e.call(t),!0)}_getLiveObjectBounds(e,t){return{left:Number.isFinite(e.left)?e.left:t.left,top:Number.isFinite(e.top)?e.top:t.top,width:Number.isFinite(e.width)?e.width:t.width,height:Number.isFinite(e.height)?e.height:t.height}}_restoreObjectToDragStart(e,t){typeof e.transformByState==`function`&&e.transformByState({left:t.left,top:t.top,width:t.width,height:t.height}),typeof e.makeDirtyNoDebounce==`function`?e.makeDirtyNoDebounce(!0):typeof e.makeDirty==`function`&&e.makeDirty(!0)}_createTopologyBoundsByElementId(e,n,r){return Object.fromEntries(Object.keys(e).map(i=>i===n?[i,r]:[i,(0,t.resolveBoardElementWorldBounds)(e,i)??e[i].element.transform]))}_ensureDragPreviewObject(){if(this._dragPreviewObject)return this._dragPreviewObject;let e=this._renderContext.scene;return typeof e.addObject==`function`?(this._dragPreviewObject=new te(A),e.addObject(this._dragPreviewObject,j),this._dragPreviewObject):null}_syncChildDragPreviewObject(e,t,n){let r=this._ensureDragPreviewObject();r&&r.updateState({ghostBounds:e,sourceBounds:this._resolvePreviewSourceBounds(),parentBounds:t.kind===`reparent`?n[t.newParentNodeId]:null,side:t.kind===`reparent`?t.side:`right`,textStyle:this._resolvePreviewTextStyle(),renderGhostNode:!0})}_resolvePreviewSourceBounds(){let e=this._pointerDragStart??this._dragStart;return e?{left:e.left,top:e.top,width:e.width,height:e.height}:null}_resolvePreviewTextStyle(){var e,t;let n=this._pointerDragStart??this._dragStart,r=n==null||(e=n.elementData[n.nodeId])==null?void 0:e.element,i=r==null||(t=r.shapeData)==null?void 0:t.shapeText;if(i)return{text:typeof i.text==`string`?i.text:void 0,fontSize:Number.isFinite(i.fontSize)?i.fontSize:void 0,color:typeof i.color==`string`?i.color:void 0,horizontalAlign:Number.isFinite(i.horizontalAlign)?i.horizontalAlign:void 0}}_removeDragPreviewObject(){var e,t,n;if(!this._dragPreviewObject)return;let r=this._renderContext.scene;(e=r.removeObjects)==null||e.call(r,[this._dragPreviewObject]),this._dragPreviewObject=null,(t=(n=this._renderContext.scene).makeDirty)==null||t.call(n,!0)}_executeAndLayout(e,t,r,i){let a=[...new Set(r.filter(e=>!!e))],o=typeof t.unitId==`string`?t.unitId:this._renderContext.unitId,s=this._undoRedoGroupService.createRunner(o),c=s(()=>this._commandService.executeCommand(e,t));Promise.resolve(c).then(e=>{var r,o,c,l;if(e){if(a.forEach(e=>{s(()=>this._commandService.executeCommand(n.LayoutMindMapOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,scopeId:e}))}),i&&typeof t.unitId==`string`&&typeof t.subUnitId==`string`){var u,d;(u=(d=this._elementStateService).selectElements)==null||u.call(d,{unitId:t.unitId,subUnitId:t.subUnitId},[i],i)}(r=(o=this._renderContext.scene).makeDirty)==null||r.call(o,!0),(c=(l=this._renderContext.scene).requestRender)==null||c.call(l)}})}};de=C([S(1,(0,a.Inject)(t.IBoardElementService)),S(2,(0,a.Inject)(r.IBoardElementStateService)),S(3,a.ICommandService),S(4,r.IBoardUIStateService),S(5,a.IUniverInstanceService),S(6,(0,a.Inject)(c.UndoRedoGroupService))],de);function R({ref:e,...t}){let{preserveStrokeWidth:n,icon:r,id:i,className:a,extend:o,...s}=t,c=`univerjs-icon univerjs-icon-${i} ${a||``}`.trim(),l=`_${(0,f.useId)()}`,u=(0,f.useRef)(null);return(0,f.useImperativeHandle)(e,()=>u.current),(0,f.useLayoutEffect)(()=>{if(n&&u.current&&u.current.localName===r.tag)return he(u.current)},[n,r]),fe(r,`${i}`,{defIds:r.defIds,idSuffix:l},{ref:u,className:c,...s},o)}function fe(e,t,n,r,i){return(0,f.createElement)(e.tag,{key:t,...pe(e,n,i),...r},(me(e,n).children||[]).map((r,a)=>fe(r,`${t}-${e.tag}-${a}`,n,void 0,i)))}function pe(e,t,n){let r={...e.attrs};n!=null&&n.colorChannel1&&r.fill===`colorChannel1`&&(r.fill=n.colorChannel1),n!=null&&n.colorChannel1&&r.stroke===`colorChannel1`&&(r.stroke=n.colorChannel1),e.tag===`mask`&&r.id&&(r.id+=t.idSuffix),Object.entries(r).forEach(([e,n])=>{e===`mask`&&typeof n==`string`&&(r[e]=n.replace(/url\(#(.*)\)/,`url(#$1${t.idSuffix})`))});let{defIds:i}=t;return!i||i.length===0||(e.tag===`use`&&r[`xlink:href`]&&(r[`xlink:href`]+=t.idSuffix),Object.entries(r).forEach(([e,n])=>{typeof n==`string`&&(r[e]=n.replace(/url\(#(.*)\)/,`url(#$1${t.idSuffix})`))})),r}function me(e,t){var n;let{defIds:r}=t;return!r||r.length===0?e:e.tag===`defs`&&(n=e.children)!=null&&n.length?{...e,children:e.children.map(e=>typeof e.attrs.id==`string`&&r&&r.includes(e.attrs.id)?{...e,attrs:{...e.attrs,id:e.attrs.id+t.idSuffix}}:e)}:e}function he(e){let t=e.viewBox.baseVal,n=Math.max(t.width,t.height);if(!Number.isFinite(n)||n<=0||t.width<=0||t.height<=0)return()=>void 0;let r=16/n,i=Array.from(e.querySelectorAll(`circle, ellipse, line, path, polygon, polyline, rect, text, textPath, tspan, use`)).flatMap(e=>{let t=getComputedStyle(e),n=Number.parseFloat(t.strokeWidth);return t.stroke===`none`||Number.parseFloat(t.strokeOpacity)===0||t.vectorEffect===`non-scaling-stroke`||!Number.isFinite(n)||n<=0?[]:[{element:e,hadStyleAttribute:e.hasAttribute(`style`),originalStrokeWidth:n,strokeWidth:ge(e.style,`stroke-width`)}]}).map(e=>({appliedStrokeWidth:null,element:e.element,hadStyleAttribute:e.hadStyleAttribute,isReleased:!1,originalStrokeWidth:e.originalStrokeWidth,strokeWidth:e.strokeWidth}));if(i.length===0)return()=>void 0;let a=(e,n)=>{if(t.width<=0||t.height<=0||e<=0||n<=0)return;let a=Math.min(e/t.width,n/t.height);!Number.isFinite(a)||a<=0||i.forEach(e=>{if(e.isReleased)return;if(e.appliedStrokeWidth!==null&&(e.element.style.getPropertyValue(`stroke-width`)!==e.appliedStrokeWidth||e.element.style.getPropertyPriority(`stroke-width`)!==e.strokeWidth.priority)){e.appliedStrokeWidth=null,e.isReleased=!0;return}let t=e.originalStrokeWidth*r/a,n=`${Number(t.toFixed(12))}px`;e.element.style.setProperty(`stroke-width`,n,e.strokeWidth.priority),e.appliedStrokeWidth=n})},o=e.getBoundingClientRect();a(o.width,o.height);let s=typeof ResizeObserver>`u`?null:new ResizeObserver(t=>{if(t.some(t=>t.target===e)){let t=e.getBoundingClientRect();a(t.width,t.height)}});return s==null||s.observe(e),()=>{s==null||s.disconnect(),i.forEach(e=>{e.appliedStrokeWidth!==null&&(_e(e.element.style,`stroke-width`,e.appliedStrokeWidth,e.strokeWidth.priority,e.strokeWidth),!e.hadStyleAttribute&&e.element.style.length===0&&e.element.removeAttribute(`style`))})}}function ge(e,t){return{priority:e.getPropertyPriority(t),value:e.getPropertyValue(t)}}function _e(e,t,n,r,i){e.getPropertyValue(t)===n&&e.getPropertyPriority(t)===r&&(i.value?e.setProperty(t,i.value,i.priority):e.removeProperty(t))}R.displayName=`UniverIcon`;let ve={tag:`svg`,attrs:{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`currentColor`,d:`M1.3999 13.6999C1.3999 13.3685 1.66853 13.0999 1.9999 13.0999H13.9999C14.3313 13.0999 14.5999 13.3685 14.5999 13.6999C14.5999 14.0312 14.3313 14.2999 13.9999 14.2999H1.9999C1.66853 14.2999 1.3999 14.0312 1.3999 13.6999Z`,fillRule:`evenodd`,clipRule:`evenodd`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M7.57564 10.3914C7.80995 10.6257 8.18985 10.6257 8.42417 10.3914L10.4242 8.3914C10.6585 8.15709 10.6585 7.77719 10.4242 7.54287C10.1899 7.30856 9.80995 7.30856 9.57564 7.54287L7.9999 9.11861L6.42417 7.54287C6.18985 7.30856 5.80995 7.30856 5.57564 7.54287C5.34132 7.77719 5.34132 8.15709 5.57564 8.3914L7.57564 10.3914Z`,fillRule:`evenodd`,clipRule:`evenodd`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M7.9999 10.5671C8.33127 10.5671 8.5999 10.2985 8.5999 9.96714V2.30047C8.5999 1.9691 8.33127 1.70047 7.9999 1.70047C7.66853 1.70047 7.3999 1.9691 7.3999 2.30047V9.96714C7.3999 10.2985 7.66853 10.5671 7.9999 10.5671Z`,fillRule:`evenodd`,clipRule:`evenodd`}}]},ye=(0,f.forwardRef)(function(e,t){return(0,f.createElement)(R,Object.assign({},e,{id:`align-bottom-icon`,ref:t,icon:ve}))});ye.displayName=`AlignBottomIcon`;let be={tag:`svg`,attrs:{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`currentColor`,d:`M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941C1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941C14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999Z`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M1.9999 5.56641C1.66853 5.56641 1.3999 5.83504 1.3999 6.16641C1.3999 6.49778 1.66853 6.76641 1.9999 6.76641H13.9999C14.3313 6.76641 14.5999 6.49778 14.5999 6.16641C14.5999 5.83504 14.3313 5.56641 13.9999 5.56641H1.9999Z`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334C14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334Z`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M1.9999 12.9004C1.66853 12.9004 1.3999 13.169 1.3999 13.5004C1.3999 13.8318 1.66853 14.1004 1.9999 14.1004H13.9999C14.3313 14.1004 14.5999 13.8318 14.5999 13.5004C14.5999 13.169 14.3313 12.9004 13.9999 12.9004H1.9999Z`}}]},xe=(0,f.forwardRef)(function(e,t){return(0,f.createElement)(R,Object.assign({},e,{id:`align-text-both-icon`,ref:t,icon:be}))});xe.displayName=`AlignTextBothIcon`;let Se={tag:`svg`,attrs:{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`currentColor`,d:`M1.3999 2.3002C1.3999 2.63157 1.66853 2.9002 1.9999 2.9002H13.9999C14.3313 2.9002 14.5999 2.63157 14.5999 2.3002C14.5999 1.96882 14.3313 1.7002 13.9999 1.7002H1.9999C1.66853 1.7002 1.3999 1.96882 1.3999 2.3002Z`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M8.22957 5.47839C8.30034 5.50767 8.36664 5.55107 8.42417 5.6086L10.4242 7.6086C10.6585 7.84291 10.6585 8.22281 10.4242 8.45713C10.1899 8.69144 9.80995 8.69144 9.57564 8.45713L8.5999 7.48139V13.6995C8.5999 14.0309 8.33127 14.2995 7.9999 14.2995C7.66853 14.2995 7.3999 14.0309 7.3999 13.6995V7.48139L6.42417 8.45713C6.18985 8.69144 5.80995 8.69144 5.57564 8.45713C5.34132 8.22281 5.34132 7.84291 5.57564 7.6086L7.57541 5.60882C7.7522 5.43203 8.01209 5.38841 8.22957 5.47839Z`}}]},Ce=(0,f.forwardRef)(function(e,t){return(0,f.createElement)(R,Object.assign({},e,{id:`align-top-icon`,ref:t,icon:Se}))});Ce.displayName=`AlignTopIcon`;let we={tag:`svg`,attrs:{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`currentColor`,d:`M4.65791 1.30005C3.77355 1.30005 3.05664 2.01696 3.05664 2.90132V12.8588C3.05664 13.8755 3.88086 14.6998 4.89759 14.6998H9.1016C11.2233 14.6998 12.9433 12.9798 12.9433 10.8581C12.9433 9.13925 11.8145 7.68407 10.2578 7.1934C10.8806 6.56856 11.2655 5.70659 11.2655 4.75472C11.2655 2.84676 9.71883 1.30005 7.81087 1.30005H4.65791ZM4.25664 2.90132C4.25664 2.6797 4.4363 2.50005 4.65791 2.50005H7.81087C9.05609 2.50005 10.0655 3.5095 10.0655 4.75472C10.0655 5.99993 9.05609 7.00938 7.81087 7.00938H4.25664V2.90132ZM4.25664 12.8588V8.21636H9.1016C10.5606 8.21636 11.7433 9.39909 11.7433 10.8581C11.7433 12.317 10.5606 13.4998 9.1016 13.4998H4.89759C4.5436 13.4998 4.25664 13.2128 4.25664 12.8588Z`,fillRule:`evenodd`,clipRule:`evenodd`}}]},Te=(0,f.forwardRef)(function(e,t){return(0,f.createElement)(R,Object.assign({},e,{id:`bold-icon`,ref:t,icon:we}))});Te.displayName=`BoldIcon`;let Ee={tag:`svg`,attrs:{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`currentColor`,d:`M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941C1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941C14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999Z`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M3.33315 5.56641C3.00178 5.56641 2.73315 5.83504 2.73315 6.16641C2.73315 6.49778 3.00178 6.76641 3.33315 6.76641H12.6665C12.9979 6.76641 13.2665 6.49778 13.2665 6.16641C13.2665 5.83504 12.9979 5.56641 12.6665 5.56641H3.33315Z`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334C14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334Z`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M3.33315 12.9004C3.00178 12.9004 2.73315 13.169 2.73315 13.5004C2.73315 13.8318 3.00178 14.1004 3.33315 14.1004H12.6665C12.9979 14.1004 13.2665 13.8318 13.2665 13.5004C13.2665 13.169 12.9979 12.9004 12.6665 12.9004H3.33315Z`}}]},De=(0,f.forwardRef)(function(e,t){return(0,f.createElement)(R,Object.assign({},e,{id:`horizontally-icon`,ref:t,icon:Ee}))});De.displayName=`HorizontallyIcon`;let Oe={tag:`svg`,attrs:{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`currentColor`,d:`M9.80385 1.40005H11.9997C12.3311 1.40005 12.5997 1.66868 12.5997 2.00005C12.5997 2.33143 12.3311 2.60005 11.9997 2.60005H10.1185L7.12251 13.4001H9.33324C9.66461 13.4001 9.93324 13.6687 9.93324 14.0001C9.93324 14.3314 9.66461 14.6001 9.33324 14.6001H6.34785C6.33847 14.6003 6.32905 14.6003 6.31962 14.6001H3.9999C3.66853 14.6001 3.3999 14.3314 3.3999 14.0001C3.3999 13.6687 3.66853 13.4001 3.9999 13.4001H5.87719L8.87322 2.60005H6.66641C6.33504 2.60005 6.06641 2.33143 6.06641 2.00005C6.06641 1.66868 6.33504 1.40005 6.66641 1.40005H9.52916C9.61698 1.37929 9.71064 1.3781 9.80385 1.40005Z`}}]},ke=(0,f.forwardRef)(function(e,t){return(0,f.createElement)(R,Object.assign({},e,{id:`italic-icon`,ref:t,icon:Oe}))});ke.displayName=`ItalicIcon`;let Ae={tag:`svg`,attrs:{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`currentColor`,d:`M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941C1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941C14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999Z`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M1.9999 5.56641C1.66853 5.56641 1.3999 5.83504 1.3999 6.16641C1.3999 6.49778 1.66853 6.76641 1.9999 6.76641H11.3332C11.6646 6.76641 11.9332 6.49778 11.9332 6.16641C11.9332 5.83504 11.6646 5.56641 11.3332 5.56641H1.9999Z`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334C14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334Z`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M1.9999 12.9004C1.66853 12.9004 1.3999 13.169 1.3999 13.5004C1.3999 13.8318 1.66853 14.1004 1.9999 14.1004H11.3332C11.6646 14.1004 11.9332 13.8318 11.9332 13.5004C11.9332 13.169 11.6646 12.9004 11.3332 12.9004H1.9999Z`}}]},je=(0,f.forwardRef)(function(e,t){return(0,f.createElement)(R,Object.assign({},e,{id:`left-justifying-icon`,ref:t,icon:Ae}))});je.displayName=`LeftJustifyingIcon`;let Me={tag:`svg`,attrs:{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`currentColor`,d:`M3 9C3.55228 9 4 8.55228 4 8C4 7.44772 3.55228 7 3 7C2.44772 7 2 7.44772 2 8C2 8.55228 2.44772 9 3 9Z`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M13 9C13.5523 9 14 8.55228 14 8C14 7.44772 13.5523 7 13 7C12.4477 7 12 7.44772 12 8C12 8.55228 12.4477 9 13 9Z`}}]},Ne=(0,f.forwardRef)(function(e,t){return(0,f.createElement)(R,Object.assign({},e,{id:`more-horizontal-icon`,ref:t,icon:Me}))});Ne.displayName=`MoreHorizontalIcon`;let Pe={tag:`svg`,attrs:{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`currentColor`,d:`M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941C1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941C14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999Z`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M4.66665 5.56641C4.33528 5.56641 4.06665 5.83504 4.06665 6.16641C4.06665 6.49778 4.33528 6.76641 4.66665 6.76641H14C14.3314 6.76641 14.6 6.49778 14.6 6.16641C14.6 5.83504 14.3314 5.56641 14 5.56641H4.66665Z`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334C14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334Z`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M4.66665 12.9004C4.33528 12.9004 4.06665 13.169 4.06665 13.5004C4.06665 13.8318 4.33528 14.1004 4.66665 14.1004H14C14.3314 14.1004 14.6 13.8318 14.6 13.5004C14.6 13.169 14.3314 12.9004 14 12.9004H4.66665Z`}}]},Fe=(0,f.forwardRef)(function(e,t){return(0,f.createElement)(R,Object.assign({},e,{id:`right-justifying-icon`,ref:t,icon:Pe}))});Fe.displayName=`RightJustifyingIcon`;let Ie={tag:`svg`,attrs:{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:1.2},children:[{tag:`circle`,attrs:{cx:7,cy:7,r:5.2}},{tag:`path`,attrs:{d:`M10.8 10.8L14.2 14.2`}}]}]},Le=(0,f.forwardRef)(function(e,t){return(0,f.createElement)(R,Object.assign({},e,{id:`search-icon`,ref:t,icon:Ie}))});Le.displayName=`SearchIcon`;let Re={tag:`svg`,attrs:{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 20 20`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{stroke:`currentColor`,d:`M3.5 3.5L16.5 16.5`,strokeLinecap:`round`,strokeWidth:1.6}}]},ze=(0,f.forwardRef)(function(e,t){return(0,f.createElement)(R,Object.assign({},e,{id:`shape-line-icon`,ref:t,icon:Re}))});ze.displayName=`ShapeLineIcon`;let Be={tag:`svg`,attrs:{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`currentColor`,d:`M8.00033 1.20996C6.43345 1.20996 5.23596 1.88077 4.64804 2.94304C4.06338 3.99943 4.15123 5.32084 4.90099 6.47062C5.08199 6.7482 5.45374 6.82648 5.73131 6.64548C6.00888 6.46448 6.08716 6.09273 5.90616 5.81516C5.36418 4.98402 5.35768 4.13897 5.69797 3.52412C6.035 2.91515 6.78176 2.40996 8.00033 2.40996C9.19423 2.40996 10.0017 2.93409 10.5236 3.46755C10.7871 3.73682 10.9756 4.00712 11.0974 4.20903C11.158 4.30951 11.2013 4.39164 11.2284 4.44625C11.2419 4.47351 11.2514 4.49377 11.2568 4.50588L11.2621 4.51771C11.3901 4.82216 11.7407 4.96686 12.046 4.83992C12.3519 4.71267 12.4968 4.36149 12.3695 4.05552L11.8231 4.28278C12.3695 4.05552 12.3697 4.0558 12.3695 4.05552L12.3691 4.05437L12.3685 4.05298L12.367 4.04953L12.3629 4.03993L12.3498 4.01036C12.3388 3.98619 12.3234 3.95326 12.3033 3.91282C12.2632 3.83203 12.2043 3.72072 12.1249 3.58908C11.9666 3.32674 11.7235 2.97805 11.3814 2.62834C10.6921 1.92381 9.59192 1.20996 8.00033 1.20996Z`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M2.11953 8.5999H7.88935C10.1109 9.46549 10.5895 10.7649 10.4268 11.6869C10.2475 12.703 9.26939 13.5898 8.00009 13.5898C6.63323 13.5898 5.77631 13.0502 5.25534 12.528C4.99021 12.2623 4.80823 11.9965 4.69365 11.7993C4.63659 11.7011 4.59698 11.6211 4.5727 11.5686C4.56059 11.5424 4.55236 11.5231 4.54774 11.512L4.54352 11.5016C4.4267 11.193 4.0823 11.0363 3.77279 11.1516C3.46228 11.2673 3.30438 11.6129 3.4201 11.9234L3.9649 11.7203C3.4201 11.9234 3.41998 11.9231 3.4201 11.9234L3.4206 11.9247L3.42118 11.9263L3.42262 11.9301L3.42661 11.9403C3.42977 11.9484 3.43394 11.9588 3.43914 11.9713C3.44956 11.9965 3.46418 12.0304 3.48334 12.0719C3.52161 12.1547 3.57828 12.2682 3.65608 12.4021C3.81124 12.6692 4.0534 13.0223 4.40584 13.3756C5.12 14.0914 6.27196 14.7898 8.00009 14.7898C9.82574 14.7898 11.3236 13.5101 11.6085 11.8955C11.812 10.7422 11.3901 9.55402 10.2665 8.5999H13.8804C14.2117 8.5999 14.4803 8.33127 14.4803 7.9999C14.4803 7.66853 14.2117 7.3999 13.8804 7.3999H8.01411C8.0048 7.39968 7.99551 7.39969 7.98625 7.3999H2.11953C1.78816 7.3999 1.51953 7.66853 1.51953 7.9999C1.51953 8.33127 1.78816 8.5999 2.11953 8.5999Z`}}]},Ve=(0,f.forwardRef)(function(e,t){return(0,f.createElement)(R,Object.assign({},e,{id:`strikethrough-icon`,ref:t,icon:Be}))});Ve.displayName=`StrikethroughIcon`;let He={tag:`svg`,attrs:{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`currentColor`,d:`M4.46416 2.03237C4.46416 1.701 4.19553 1.43237 3.86416 1.43237C3.53279 1.43237 3.26416 1.701 3.26416 2.03237V7.33338C3.26416 10.0313 5.35834 12.2667 7.9999 12.2667C10.6415 12.2667 12.7356 10.0313 12.7356 7.33338V2.03237C12.7356 1.701 12.467 1.43237 12.1356 1.43237C11.8043 1.43237 11.5356 1.701 11.5356 2.03237V7.33338C11.5356 9.42194 9.92656 11.0667 7.9999 11.0667C6.07325 11.0667 4.46416 9.42194 4.46416 7.33338V2.03237Z`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M2.66641 13.4663C2.33504 13.4663 2.06641 13.7349 2.06641 14.0663C2.06641 14.3977 2.33504 14.6663 2.66641 14.6663H13.3331C13.6644 14.6663 13.9331 14.3977 13.9331 14.0663C13.9331 13.7349 13.6644 13.4663 13.3331 13.4663H2.66641Z`}}]},Ue=(0,f.forwardRef)(function(e,t){return(0,f.createElement)(R,Object.assign({},e,{id:`underline-icon`,ref:t,icon:He}))});Ue.displayName=`UnderlineIcon`;let We={tag:`svg`,attrs:{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`currentColor`,d:`M7.9999 0.733398C8.33127 0.733398 8.5999 1.00203 8.5999 1.3334V4.55137L9.57564 3.57564C9.80995 3.34132 10.1899 3.34132 10.4242 3.57564C10.6585 3.80995 10.6585 4.18985 10.4242 4.42417L8.42417 6.42417C8.18985 6.65848 7.80995 6.65848 7.57564 6.42417L5.57564 4.42417C5.34132 4.18985 5.34132 3.80995 5.57564 3.57564C5.80995 3.34132 6.18985 3.34132 6.42417 3.57564L7.3999 4.55137V1.3334C7.3999 1.00203 7.66853 0.733398 7.9999 0.733398Z`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M5.57564 11.5756L7.57564 9.57564C7.80995 9.34132 8.18985 9.34132 8.42417 9.57564L10.4242 11.5756C10.6585 11.81 10.6585 12.1899 10.4242 12.4242C10.1899 12.6585 9.80995 12.6585 9.57564 12.4242L8.5999 11.4484V14.6665C8.5999 14.9979 8.33127 15.2665 7.9999 15.2665C7.66853 15.2665 7.3999 14.9979 7.3999 14.6665V11.4484L6.42417 12.4242C6.18985 12.6585 5.80995 12.6585 5.57564 12.4242C5.34132 12.1899 5.34132 11.81 5.57564 11.5756Z`}},{tag:`path`,attrs:{fill:`currentColor`,d:`M1.9999 7.40015C1.66853 7.40015 1.3999 7.66878 1.3999 8.00015C1.3999 8.33152 1.66853 8.60015 1.9999 8.60015H13.9999C14.3313 8.60015 14.5999 8.33152 14.5999 8.00015C14.5999 7.66878 14.3313 7.40015 13.9999 7.40015H1.9999Z`}}]},Ge=(0,f.forwardRef)(function(e,t){return(0,f.createElement)(R,Object.assign({},e,{id:`vertical-center-icon`,ref:t,icon:We}))});Ge.displayName=`VerticalCenterIcon`;let z=class extends a.Disposable{constructor(e,t,n,r,i,a,o,s,c){super(),this.renderContext=e,this.commandService=t,this.elementService=n,this.elementStateService=r,this.uiStateService=i,this.clipboardService=a,this.dialogService=o,this.localeService=s,this.textEditingService=c}};z=C([S(1,a.ICommandService),S(2,t.IBoardElementService),S(3,r.IBoardElementStateService),S(4,r.IBoardUIStateService),S(5,n.IMindMapClipboardService),S(6,c.IDialogService),S(7,(0,a.Inject)(a.LocaleService)),S(8,(0,a.Inject)(r.BoardTextEditingService))],z);let Ke=`board.mind-map.description-dialog`,qe=`board-mind-map-description-dialog`;function Je(e){let{unitId:t,subUnitId:r,nodeId:i,initialDescription:o=``}=e,s=(0,c.useDependency)(a.ICommandService),l=(0,c.useDependency)(c.IDialogService),u=(0,c.useDependency)(a.LocaleService),[m,h]=(0,f.useState)(o),g=()=>l.close(qe);return/* @__PURE__ */ (0,p.jsxs)(`div`,{className:`univer-flex univer-w-full univer-flex-col univer-gap-4`,"data-board-mind-map-description-dialog":`true`,children:[/* @__PURE__ */ (0,p.jsxs)(`label`,{className:`univer-flex univer-flex-col univer-gap-2`,children:[/* @__PURE__ */ (0,p.jsx)(`span`,{className:`univer-text-sm univer-font-medium univer-text-gray-900 dark:!univer-text-gray-0`,children:u.t(`boards-mind-ui.description`)}),/* @__PURE__ */ (0,p.jsx)(d.Textarea,{autoFocus:!0,className:`univer-h-32 univer-resize-none univer-text-sm`,placeholder:u.t(`boards-mind-ui.descriptionPlaceholder`),value:m,onValueChange:h})]}),/* @__PURE__ */ (0,p.jsxs)(`div`,{className:`univer-flex univer-justify-end univer-gap-2`,children:[/* @__PURE__ */ (0,p.jsx)(d.Button,{size:`small`,variant:`default`,onClick:g,children:u.t(`boards-mind-ui.cancel`)}),/* @__PURE__ */ (0,p.jsx)(d.Button,{size:`small`,variant:`primary`,onClick:()=>{s.executeCommand(n.UpdateMindMapNodeOperation.id,{unitId:t,subUnitId:r,nodeId:i,foreignAttributes:{_note:m.trim()?m:null}}),g()},children:u.t(`boards-mind-ui.saveDescription`)})]})]})}let B=`board.operation.mind-map.keyboard-shortcut`,Ye=`FOCUSING_MIND_MAP_NODE`,Xe=`FOCUSING_MIND_MAP_BLANK_BOARD`,Ze={copy:r.BOARD_SHORTCUT_BINDINGS.copy,paste:r.BOARD_SHORTCUT_BINDINGS.paste,"paste-as-new":r.BOARD_SHORTCUT_BINDINGS.paste,"add-child":r.BOARD_SHORTCUT_BINDINGS.addChildNode,"add-sibling-or-child":r.BOARD_SHORTCUT_BINDINGS.addSiblingNode,promote:r.BOARD_SHORTCUT_BINDINGS.addParentNode,"toggle-collapse":r.BOARD_SHORTCUT_BINDINGS.foldChildNodes,"collapse-all":r.BOARD_SHORTCUT_BINDINGS.collapseAllNodes,"edit-text":r.BOARD_SHORTCUT_BINDINGS.editCurrentNode,"open-description":r.BOARD_SHORTCUT_BINDINGS.addDescription,delete:c.KeyCode.DELETE,"arrow-left":c.KeyCode.ARROW_LEFT,"arrow-right":c.KeyCode.ARROW_RIGHT,"arrow-up":c.KeyCode.ARROW_UP,"arrow-down":c.KeyCode.ARROW_DOWN},Qe={delete:[c.KeyCode.BACKSPACE]};function $e(e){return[Ze[e],...Qe[e]??[]]}let V=class extends a.RxDisposable{constructor(e,t,n,r){super(),this._mindMapClipboardService=e,this._commandService=t,this._shortcutService=n,this._undoRedoGroupService=r,this._init()}_init(){this.disposeWithMe(this._commandService.registerCommand(this._createKeyboardShortcutOperation())),this._createShortcutItems().forEach(e=>{this.disposeWithMe(this._shortcutService.registerShortcut(e))})}_createKeyboardShortcutOperation(){return{id:B,type:a.CommandType.OPERATION,handler:(e,t,n)=>{let r=et(e,n);return r?this.handleShortcut(r,t==null?void 0:t.action):!1}}}_createShortcutItems(){let e=(e,t)=>({id:B,binding:e,priority:160,preconditions:e=>(0,r.isBoardShortcutAvailable)(e)&&!!e.getContextValue(`FOCUSING_MIND_MAP_NODE`),staticParameters:{action:t}}),t=t=>$e(t).map(n=>e(n,t));return[...t(`copy`),{id:B,binding:Ze.paste,priority:160,preconditions:e=>(0,r.isBoardShortcutAvailable)(e)&&!!this._mindMapClipboardService.getPayload()&&!!e.getContextValue(`FOCUSING_MIND_MAP_NODE`),staticParameters:{action:`paste`}},{id:B,binding:Ze[`paste-as-new`],priority:150,preconditions:e=>(0,r.isBoardShortcutAvailable)(e)&&!!this._mindMapClipboardService.getPayload()&&!!e.getContextValue(`FOCUSING_MIND_MAP_BLANK_BOARD`),staticParameters:{action:`paste-as-new`}},...t(`add-child`),...t(`add-sibling-or-child`),...t(`promote`),...t(`toggle-collapse`),...t(`collapse-all`),...t(`edit-text`),...t(`open-description`),...t(`delete`),...t(`arrow-left`),...t(`arrow-right`),...t(`arrow-up`),...t(`arrow-down`)]}handleShortcut(e,t){return e.uiStateService.getState().interactionMode===`viewing`&&t!==`copy`?!1:t===`copy`?this._copySelectedNode(e):t===`paste`?this._pasteUnderSelectedNode(e):t===`paste-as-new`?this._pasteAsNewMindMap(e):t===`add-child`?this._addChild(e):t===`add-sibling-or-child`?this._addSiblingOrChild(e):t===`promote`?this._executeNodeOperation(e,n.PromoteMindMapNodeOperation.id):t===`toggle-collapse`?this._executeNodeOperation(e,n.ToggleMindMapNodeCollapseOperation.id):t===`collapse-all`?this._collapseAll(e):t===`edit-text`?this._openSelectedTextEditing(e):t===`open-description`?this._openDescriptionDialog(e):t===`delete`?this._deleteSelectedNode(e):t&&tt(t)?this._navigateByTopology(e,t):!1}_copySelectedNode(e){let t=this._getSelectedMindMapContext(e);return t?(e.commandService.executeCommand(n.CopyMindMapNodeOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,nodeId:t.nodeId}),!0):!1}_pasteUnderSelectedNode(e){let t=this._getSelectedMindMapContext(e);return!t||!e.clipboardService.getPayload()?!1:(this._executeAndLayout(e,n.PasteMindMapNodeOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,targetNodeId:t.nodeId},t.scopeId),!0)}_pasteAsNewMindMap(e){let t=this._getBlankBoardContext(e);if(!t||!e.clipboardService.getPayload())return!1;let r=e.uiStateService.getState(),i=Number.isFinite(r.zoomRatio)&&r.zoomRatio>0?r.zoomRatio:1,a=Math.round((64-r.viewportPanOffset.x)/i),o=Math.round((64-r.viewportPanOffset.y)/i);return e.commandService.executeCommand(n.PasteMindMapAsNewMindMapOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,left:a,top:o}),!0}_addChild(e){let t=this._getSelectedMindMapContext(e);if(!t)return!1;let r=(0,a.generateRandomId)(6);return this._executeCreateAndEdit(e,n.AddMindMapChildOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,parentNodeId:t.nodeId,nodeId:r,connectorId:(0,a.generateRandomId)(6),text:e.localeService.t(`boards-mind-ui.panel.addText`)},t.scopeId,r),!0}_addSiblingOrChild(e){let t=this._getSelectedMindMapContext(e);if(!t)return!1;let r=(0,a.generateRandomId)(6);return this._executeCreateAndEdit(e,t.isRoot?n.AddMindMapChildOperation.id:n.AddMindMapSiblingOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,...t.isRoot?{parentNodeId:t.nodeId,nodeId:r}:{nodeId:t.nodeId,siblingNodeId:r},connectorId:(0,a.generateRandomId)(6),text:e.localeService.t(`boards-mind-ui.panel.addText`)},t.scopeId,r),!0}_executeNodeOperation(e,t){let n=this._getSelectedMindMapContext(e);return n?(this._executeAndLayout(e,t,{unitId:n.unitId,subUnitId:n.subUnitId,nodeId:n.nodeId},n.scopeId),!0):!1}_deleteSelectedNode(e){let t=this._getSelectedMindMapContext(e);if(!t)return!1;let r=e.commandService.syncExecuteCommand(n.DeleteMindMapNodeOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,nodeId:t.nodeId});return r&&e.elementStateService.clearSelection(),r}_collapseAll(e){let t=this._getSelectedMindMapContext(e);if(!t)return!1;let r=e.elementService.getElementData(t.unitId,t.subUnitId),i=Object.values(r).map(e=>{let i=(0,n.getMindMapNodeMeta)(e.element);return(i==null?void 0:i.structureScopeId)===t.scopeId&&this._getMindMapChildren(r,t.scopeId,e.elementId).length>0?{nodeId:e.elementId,collapsed:i.collapsed}:null}).filter(e=>!!e);if(i.length===0)return!1;let a=i.some(e=>!e.collapsed),o=e.commandService,s=this._undoRedoGroupService.createRunner(t.unitId),c=i.map(e=>s(()=>o.executeCommand(n.ToggleMindMapNodeCollapseOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,nodeId:e.nodeId,collapsed:a})));return Promise.all(c.map(e=>Promise.resolve(e))).then(e=>{e.some(Boolean)&&s(()=>o.executeCommand(n.LayoutMindMapOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,scopeId:t.scopeId}))}),!0}_openSelectedTextEditing(e){let t=this._getSelectedMindMapContext(e);if(!t)return!1;e.elementStateService.selectElements({unitId:t.unitId,subUnitId:t.subUnitId},[t.nodeId],t.nodeId);let n=e.textEditingService;return n.ignoreExternalFocusChanges(),n.setEditing({unitId:t.unitId,subUnitId:t.subUnitId,shapeId:t.nodeId,shapeKey:(0,r.getBoardElementRenderObjectKey)(t.unitId,t.nodeId),visible:!0}),!0}_openDescriptionDialog(e){let t=this._getSelectedMindMapContext(e);return t?(e.dialogService.open({id:qe,title:{title:`boards-mind-ui.description`},width:420,draggable:!0,mask:!1,maskClosable:!0,children:{label:Ke,unitId:t.unitId,subUnitId:t.subUnitId,nodeId:t.nodeId,initialDescription:t.description}}),!0):!1}_navigateByTopology(e,t){let r=this._getSelectedMindMapContext(e);if(!r)return!1;let i=e.elementService.getElementData(r.unitId,r.subUnitId),a=i[r.nodeId],o=(0,n.getMindMapNodeMeta)(a==null?void 0:a.element);if(!a||!o)return!1;let s={"arrow-left":`ArrowLeft`,"arrow-right":`ArrowRight`,"arrow-up":`ArrowUp`,"arrow-down":`ArrowDown`}[t];if(!s)return!1;let c=this._resolveArrowNavigationTarget(i,r.nodeId,o,s);return c?(e.elementStateService.selectElements({unitId:r.unitId,subUnitId:r.subUnitId},[c],c),!0):!1}_resolveArrowNavigationTarget(e,t,r,i){let a=this._getMindMapChildren(e,r.structureScopeId,t);if(r.parentNodeId===null){if(i===`ArrowLeft`){var o;return((o=a.find(e=>{var t;return((t=(0,n.getMindMapNodeMeta)(e.element))==null?void 0:t.side)===`left`}))==null?void 0:o.elementId)??null}if(i===`ArrowRight`){var s;return((s=a.find(e=>{var t;return(((t=(0,n.getMindMapNodeMeta)(e.element))==null?void 0:t.side)??`right`)===`right`}))==null?void 0:s.elementId)??null}return null}let c=r.side??`right`,l=c===`right`?`ArrowLeft`:`ArrowRight`,u=c===`right`?`ArrowRight`:`ArrowLeft`;if(i===l)return r.parentNodeId;if(i===u){var d;return((d=a[0])==null?void 0:d.elementId)??null}if(i===`ArrowUp`||i===`ArrowDown`){let n=this._getMindMapChildren(e,r.structureScopeId,r.parentNodeId),a=n.findIndex(e=>e.elementId===t),o=i===`ArrowUp`?n[a-1]:n[a+1];return(o==null?void 0:o.elementId)??null}return null}_getMindMapChildren(e,t,r){return Object.values(e).filter(e=>{let i=(0,n.getMindMapNodeMeta)(e.element);return(i==null?void 0:i.structureScopeId)===t&&i.parentNodeId===r&&e.element.visible!==!1}).sort((e,t)=>{let r=(0,n.getMindMapNodeMeta)(e.element),i=(0,n.getMindMapNodeMeta)(t.element);return(0,n.compareMindMapOrderKey)(r==null?void 0:r.orderKey,i==null?void 0:i.orderKey)||e.elementId.localeCompare(t.elementId)})}_getSelectedMindMapContext(e){var t;let r=e.elementStateService.getSnapshot(),i=r.focusedId??r.selectedIds[0];if(!i||r.selectedIds.length!==1||r.activeEditingId||r.isTransforming)return null;let a=r.context??{unitId:e.renderContext.unitId,subUnitId:e.renderContext.unit.getActivePageId()},o=e.elementService.getElementData(a.unitId,a.subUnitId)[i],s=(0,n.getMindMapNodeMeta)(o==null?void 0:o.element);return!o||!s?null:{unitId:a.unitId,subUnitId:a.subUnitId,nodeId:i,scopeId:s.structureScopeId,isRoot:s.parentNodeId===null,description:((t=s.foreignAttributes)==null?void 0:t._note)??``}}_getBlankBoardContext(e){var t,n;let r=e.elementStateService.getSnapshot();return r.activeEditingId||r.isTransforming||r.selectedIds.length>0||r.focusedId?null:{unitId:((t=r.context)==null?void 0:t.unitId)??e.renderContext.unitId,subUnitId:((n=r.context)==null?void 0:n.subUnitId)??e.renderContext.unit.getActivePageId()}}_executeAndLayout(e,t,r,i){let a=e.commandService,o=this._undoRedoGroupService.createRunner(r.unitId),s=o(()=>a.executeCommand(t,r));Promise.resolve(s).then(e=>{e&&o(()=>a.executeCommand(n.LayoutMindMapOperation.id,{unitId:r.unitId,subUnitId:r.subUnitId,scopeId:i}))})}_executeCreateAndEdit(e,t,i,a,o){let s={unitId:i.unitId,subUnitId:i.subUnitId},c=e.commandService,l=this._undoRedoGroupService.createRunner(i.unitId),u=l(()=>c.executeCommand(t,i));Promise.resolve(u).then(t=>{if(!t)return;l(()=>c.executeCommand(n.LayoutMindMapOperation.id,{...s,scopeId:a})),e.elementStateService.selectElements(s,[o],o);let i=e.textEditingService;i.ignoreExternalFocusChanges(),i.setEditing({...s,shapeId:o,shapeKey:(0,r.getBoardElementRenderObjectKey)(s.unitId,o),visible:!0})})}};V=C([S(0,n.IMindMapClipboardService),S(1,a.ICommandService),S(2,c.IShortcutService),S(3,(0,a.Inject)(c.UndoRedoGroupService))],V);function et(e,t){var n,r;let i=typeof(t==null?void 0:t.unitId)==`string`?t.unitId:(n=e.get(a.IUniverInstanceService).getCurrentUnitOfType(a.UniverInstanceType.UNIVER_BOARD))==null?void 0:n.getUnitId();return i?((r=e.get(o.IRenderManagerService).getRenderUnitById(i))==null?void 0:r.with(z))??null:null}function tt(e){return e===`arrow-left`||e===`arrow-right`||e===`arrow-up`||e===`arrow-down`}let nt={min:1,max:5,defaultValue:3},rt={min:0,max:100,defaultValue:100},it=[{kind:`dropdown`,titleKey:`boards-mind-ui.toolbar.primary.line`,panel:`line`},{kind:`fontColor`,titleKey:`boards-mind-ui.toolbar.primary.fontColor`},{kind:`typography`,titleKey:`boards-mind-ui.toolbar.primary.typography`},{kind:`dropdown`,titleKey:`boards-mind-ui.toolbar.primary.more`,panel:`more`,dividerBefore:!0}],H={addSibling:`add-sibling-or-child`,addChild:`add-child`,copy:`copy`,paste:`paste`,delete:`delete`},at=[{key:`mind-map`,title:`Mind map`,items:[{value:`mindmap-horizontal`,icon:`mindmap-horizontal`,labelKey:`boards-mind-ui.panel.structureKind.mindmapHorizontal`},{value:`mindmap-vertical`,icon:`mindmap-vertical`,labelKey:`boards-mind-ui.panel.structureKind.mindmapVertical`}]},{key:`tree-diagram`,title:`Tree diagram`,items:[{value:`tree-right`,icon:`tree-right`,labelKey:`boards-mind-ui.panel.structureKind.treeRight`},{value:`tree-left`,icon:`tree-left`,labelKey:`boards-mind-ui.panel.structureKind.treeLeft`},{value:`tree-alternate`,icon:`tree-alternate`,labelKey:`boards-mind-ui.panel.structureKind.treeAlternate`}]},{key:`timeline`,title:`Timeline`,items:[{value:`timeline-horizontal`,icon:`timeline-horizontal`,labelKey:`boards-mind-ui.panel.structureKind.timelineHorizontal`},{value:`timeline-vertical`,icon:`timeline-vertical`,labelKey:`boards-mind-ui.panel.structureKind.timelineVertical`}]}],ot={key:`branch`,title:`Branch`,items:[{value:`curve`,icon:`branch-curve`,labelKey:`boards-mind-ui.panel.branchLineType.curve`},{value:`rounded-orthogonal`,icon:`branch-rounded-orthogonal`,labelKey:`boards-mind-ui.panel.branchLineType.roundedOrthogonal`},{value:`orthogonal`,icon:`branch-orthogonal`,labelKey:`boards-mind-ui.panel.branchLineType.orthogonal`}]},st=`board.mind-map.floating-toolbar`;function ct(e,t){e.executeCommand(B,{action:t})}let lt={line:ze,more:Ne};function U(e){e.stopPropagation(),e.preventDefault()}function ut(e,t=`univer-size-5`,n){return/* @__PURE__ */ (0,p.jsx)(l.ShapeFloatingToolbarIcon,{children:/* @__PURE__ */ (0,p.jsx)(e,{className:t,extend:n})})}function dt(e){var t,n;let r=(e==null?void 0:e.shapeText)??{},i=r.dataModel&&typeof r.dataModel==`object`?r.dataModel:{},o=(t=i.doc)==null||(t=t.documentStyle)==null?void 0:t.textStyle;return{color:typeof r.color==`string`?r.color:(o==null||(n=o.cl)==null?void 0:n.rgb)??l.SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_COLOR,fontFamily:typeof r.fontFamily==`string`?r.fontFamily:(o==null?void 0:o.ff)??a.DEFAULT_STYLES.ff,fontSize:typeof r.fontSize==`number`?r.fontSize:typeof(o==null?void 0:o.fs)==`number`?o.fs:a.DEFAULT_STYLES.fs,horizontalAlign:r.horizontalAlign??i.ha??a.HorizontalAlign.LEFT,textFill:r.textFill&&typeof r.textFill==`object`?r.textFill:o==null?void 0:o.textFill,verticalAlign:r.verticalAlign??i.va??a.VerticalAlign.MIDDLE}}function ft(e,t){if(!t)return;let n=$e(t);if(!n.length)return;let r=n.map(n=>e.getShortcutDisplay({id:`board.operation.mind-map.keyboard-shortcut`,binding:n,staticParameters:{action:t}})??void 0).filter(e=>!!e);return r.length?[...new Set(r)].join(`/`):void 0}async function pt(e,t,r){return await Promise.resolve(t(()=>e.executeCommand(n.ChangeMindMapLayoutOperation.id,r)))?(await Promise.resolve(t(()=>e.executeCommand(n.LayoutMindMapOperation.id,{unitId:r.unitId,subUnitId:r.subUnitId,scopeId:r.scopeId}))),!0):!1}async function mt(e,t,r){return await Promise.resolve(t(()=>e.executeCommand(n.ChangeMindMapBranchLineTypeOperation.id,r)))?(await Promise.resolve(t(()=>e.executeCommand(n.LayoutMindMapOperation.id,{unitId:r.unitId,subUnitId:r.subUnitId,scopeId:r.scopeId}))),!0):!1}function ht({className:e=`univer-size-5`}){return/* @__PURE__ */ (0,p.jsx)(l.ShapeFloatingToolbarIcon,{children:/* @__PURE__ */ (0,p.jsxs)(`svg`,{className:e,viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`,children:[/* @__PURE__ */ (0,p.jsx)(`path`,{d:`M4.5 7.5h4.2c1.9 0 3.3 1.5 3.3 3.3v2.4c0 1.8 1.4 3.3 3.3 3.3h4.2`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`}),/* @__PURE__ */ (0,p.jsx)(`path`,{d:`M19.5 7.5h-4.2c-1.9 0-3.3 1.5-3.3 3.3`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`}),/* @__PURE__ */ (0,p.jsx)(`path`,{d:`M4.5 16.5h4.2c1.9 0 3.3-1.5 3.3-3.3`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`})]})})}function gt({icon:e}){let t=`#d8dce3`,n={stroke:`currentColor`,strokeWidth:2.6,strokeLinecap:`round`,strokeLinejoin:`round`},r={stroke:t,strokeWidth:3.2,strokeLinecap:`round`};return/* @__PURE__ */ (0,p.jsxs)(`svg`,{className:`univer-h-9 univer-w-12`,viewBox:`0 0 80 56`,fill:`none`,"aria-hidden":`true`,children:[e===`mindmap-horizontal`&&/* @__PURE__ */ (0,p.jsxs)(p.Fragment,{children:[/* @__PURE__ */ (0,p.jsx)(`path`,{d:`M31 13c9 8 9 22 18 30M49 13c-9 8-9 22-18 30M31 13c-7 4-9 9-9 15s2 11 9 15M49 13c7 4 9 9 9 15s-2 11-9 15`,...n}),/* @__PURE__ */ (0,p.jsx)(`path`,{d:`M12 15h9M12 28h9M12 41h9M59 15h9M59 28h9M59 41h9`,...r})]}),e===`mindmap-vertical`&&/* @__PURE__ */ (0,p.jsxs)(p.Fragment,{children:[/* @__PURE__ */ (0,p.jsx)(`path`,{d:`M21 28h38M40 11v34M28 16c7 4 10 8 12 12 2-4 5-8 12-12M28 40c7-4 10-8 12-12 2 4 5 8 12 12`,...n}),/* @__PURE__ */ (0,p.jsx)(`path`,{d:`M22 8h36M22 48h36M14 18v20M66 18v20`,stroke:t,strokeWidth:2.6,strokeLinecap:`round`,strokeDasharray:`6 7`})]}),e===`tree-right`&&/* @__PURE__ */ (0,p.jsxs)(p.Fragment,{children:[/* @__PURE__ */ (0,p.jsx)(`path`,{d:`M24 12v32M24 19c0 4 3 6 7 6h7M24 29c0 4 3 6 7 6h7M24 39c0 4 3 6 7 6h7`,...n}),/* @__PURE__ */ (0,p.jsx)(`path`,{d:`M47 25h13M47 35h13M47 45h13`,...r}),/* @__PURE__ */ (0,p.jsx)(`circle`,{cx:`24`,cy:`12`,r:`3`,fill:`currentColor`})]}),e===`tree-left`&&/* @__PURE__ */ (0,p.jsxs)(p.Fragment,{children:[/* @__PURE__ */ (0,p.jsx)(`path`,{d:`M56 12v32M56 19c0 4-3 6-7 6h-7M56 29c0 4-3 6-7 6h-7M56 39c0 4-3 6-7 6h-7`,...n}),/* @__PURE__ */ (0,p.jsx)(`path`,{d:`M20 25h13M20 35h13M20 45h13`,...r}),/* @__PURE__ */ (0,p.jsx)(`circle`,{cx:`56`,cy:`12`,r:`3`,fill:`currentColor`})]}),e===`tree-alternate`&&/* @__PURE__ */ (0,p.jsxs)(p.Fragment,{children:[/* @__PURE__ */ (0,p.jsx)(`path`,{d:`M42 12v32M42 20c0 4-3 6-7 6h-7M42 30c0 4 3 6 7 6h7M42 39c0 4-3 6-7 6h-7`,...n}),/* @__PURE__ */ (0,p.jsx)(`path`,{d:`M12 26h11M58 36h11M12 45h11`,...r}),/* @__PURE__ */ (0,p.jsx)(`circle`,{cx:`42`,cy:`12`,r:`3`,fill:`currentColor`})]}),e===`timeline-horizontal`&&/* @__PURE__ */ (0,p.jsxs)(p.Fragment,{children:[/* @__PURE__ */ (0,p.jsx)(`path`,{d:`M15 31h50M35 31V18c0-4 3-7 8-7h9M35 31v13c0 4 3 7 8 7h9`,...n}),/* @__PURE__ */ (0,p.jsx)(`path`,{d:`M56 11h11M56 51h11`,...r}),/* @__PURE__ */ (0,p.jsx)(`circle`,{cx:`17`,cy:`31`,r:`3`,fill:`currentColor`})]}),e===`timeline-vertical`&&/* @__PURE__ */ (0,p.jsxs)(p.Fragment,{children:[/* @__PURE__ */ (0,p.jsx)(`path`,{d:`M40 9v40M40 20c8 0 11 4 11 11v8M40 35c-8 0-11 4-11 11v4`,...n}),/* @__PURE__ */ (0,p.jsx)(`path`,{d:`M56 39h11M13 50h11`,...r}),/* @__PURE__ */ (0,p.jsx)(`circle`,{cx:`40`,cy:`9`,r:`3`,fill:`currentColor`})]}),e===`branch-curve`&&/* @__PURE__ */ (0,p.jsx)(p.Fragment,{children:/* @__PURE__ */ (0,p.jsx)(`path`,{d:`M16 28c16 0 25-13 43-13M16 28c16 0 25 13 43 13`,...n})}),e===`branch-rounded-orthogonal`&&/* @__PURE__ */ (0,p.jsx)(p.Fragment,{children:/* @__PURE__ */ (0,p.jsx)(`path`,{d:`M16 29h18c7 0 10-5 10-12v-3M34 29h10c7 0 10 5 10 12v3`,...n})}),e===`branch-orthogonal`&&/* @__PURE__ */ (0,p.jsx)(p.Fragment,{children:/* @__PURE__ */ (0,p.jsx)(`path`,{d:`M17 33h21M38 17v30M38 17h24`,...n})})]})}function _t(e,n){let r=e.textStyle,i=(0,t.documentTextStyleToBoardShapeTextStyle)(r),a={...i.color===void 0?null:{color:i.color},...i.fontFamily===void 0?null:{fontFamily:i.fontFamily},...i.fontSize===void 0?null:{fontSize:i.fontSize},...i.bold===void 0?null:{bold:i.bold},...i.italic===void 0?null:{italic:i.italic},...i.underline===void 0?null:{underline:i.underline},...i.strikethrough===void 0?null:{strikethrough:i.strikethrough},...i.textFill===void 0?null:{textFill:i.textFill}};e.horizontalAlign!==void 0&&(a.horizontalAlign=e.horizontalAlign),e.verticalAlign!==void 0&&(a.verticalAlign=e.verticalAlign),Object.keys(a).length>0&&n({textStyle:a})}function vt(e,t,n){let r=e??{},i=(0,l.buildShapeTextDataUpdate)(r,t),a=i.shapeText??r.shapeText??{};return{...r,...i,shapeText:{...a,...n.color===void 0?null:{color:n.color},...n.fontSize===void 0?null:{fontSize:n.fontSize},...n.bold===void 0?null:{bold:n.bold},...n.italic===void 0?null:{italic:n.italic},...n.underline===void 0?null:{underline:n.underline},...n.strikethrough===void 0?null:{strikethrough:n.strikethrough},...n.horizontalAlign===void 0?null:{horizontalAlign:n.horizontalAlign},...n.verticalAlign===void 0?null:{verticalAlign:n.verticalAlign},...n.textFill===void 0?null:{textFill:n.textFill}}}}function yt(e,t){let n=e==null?void 0:e.stroke;n&&t({lineType:n.dashType===u.ShapeLineDashEnum.RoundDot||n.dashType===u.ShapeLineDashEnum.SquareDot?`dot`:n.dashType===u.ShapeLineDashEnum.Dash?`dash`:`solid`,...typeof n.width==`number`?{strokeWidth:n.width}:null,...typeof n.color==`string`?{stroke:n.color}:null,...typeof n.opacity==`number`?{opacity:n.opacity}:null})}function bt(e){return e!=null&&e.length?e[0]<=2?u.ShapeLineDashEnum.RoundDot:u.ShapeLineDashEnum.Dash:u.ShapeLineDashEnum.Solid}function xt(e){return{stroke:{lineStrokeType:u.ShapeLineTypeEnum.SolidLine,dashType:bt(e==null?void 0:e.dash),color:(e==null?void 0:e.stroke)??l.SHAPE_FLOATING_TOOLBAR_DEFAULT_STROKE_COLOR,width:(e==null?void 0:e.strokeWidth)??nt.defaultValue,opacity:(e==null?void 0:e.opacity)??rt.defaultValue/100}}}function St(e){var t,r,i;let o=(0,c.useDependency)(a.ICommandService),s=(0,c.useDependency)(c.IShortcutService),u=(0,c.useDependency)(a.LocaleService),m=(0,c.useDependency)(c.UndoRedoGroupService),[h,g]=(0,f.useState)(null),[_,v]=(0,f.useState)((t=e.popup.extraProps)==null?void 0:t.shapeData),y=e.popup.extraProps;if(!y)return null;let b={unitId:y.unitId,subUnitId:y.subUnitId},x=e=>{o.executeCommand(n.UpdateMindMapNodeOperation.id,{...b,nodeId:y.elementId,...e})},S=(e,t)=>{let n=t??{};v(e=>({...e??{},...n})),x({...n.fill===void 0?null:{fill:n.fill},...n.stroke===void 0?null:{stroke:n.stroke}})},C=e=>{o.executeCommand(n.UpdateMindMapIncomingConnectorOperation.id,{...b,nodeId:y.elementId,style:e})},w=xt(y.incomingConnectorStyle),T=e=>ft(s,e),E=e=>{ct(o,e)},D=(_==null?void 0:_.shapeText)??{},O=dt(_),k=e=>{_t(e,t=>{v(n=>vt(n,e,t.textStyle)),x(t)})},A=[{label:u.t(`boards-mind-ui.alignLeft`),value:a.HorizontalAlign.LEFT,icon:/* @__PURE__ */ (0,p.jsx)(je,{})},{label:u.t(`boards-mind-ui.alignCenter`),value:a.HorizontalAlign.CENTER,icon:/* @__PURE__ */ (0,p.jsx)(De,{})},{label:u.t(`boards-mind-ui.alignRight`),value:a.HorizontalAlign.RIGHT,icon:/* @__PURE__ */ (0,p.jsx)(Fe,{})},{label:u.t(`boards-mind-ui.alignJustify`),value:a.HorizontalAlign.JUSTIFIED,icon:/* @__PURE__ */ (0,p.jsx)(xe,{})}],j=[{label:u.t(`boards-mind-ui.alignTop`),value:a.VerticalAlign.TOP,icon:/* @__PURE__ */ (0,p.jsx)(Ce,{})},{label:u.t(`boards-mind-ui.alignMiddle`),value:a.VerticalAlign.MIDDLE,icon:/* @__PURE__ */ (0,p.jsx)(Ge,{})},{label:u.t(`boards-mind-ui.alignBottom`),value:a.VerticalAlign.BOTTOM,icon:/* @__PURE__ */ (0,p.jsx)(ye,{})}],M=()=>{E(`add-sibling-or-child`)},N=()=>{E(`add-child`)},P=()=>{E(`copy`)},F=()=>{E(`paste`)},ee=()=>{E(`delete`)},te=((r=y.layout)==null?void 0:r.structureKind)??n.MIND_MAP_DEFAULT_LAYOUT.structureKind,I=(0,n.resolveMindMapBranchLineTypeForStructure)(te,((i=y.layout)==null?void 0:i.branchLineType)??n.MIND_MAP_DEFAULT_LAYOUT.branchLineType),ne=e=>{let t=(0,n.resolveMindMapBranchLineTypeForStructure)(e,I);pt(o,m.createRunner(y.unitId),{...b,scopeId:y.scopeId,structureKind:e,...t===I?null:{branchLineType:t}}),g(null)},re=e=>{mt(o,m.createRunner(y.unitId),{...b,scopeId:y.scopeId,branchLineType:e}),g(null)},ie=(e,t,n,r=!1)=>/* @__PURE__ */ (0,p.jsx)(`button`,{type:`button`,"aria-label":u.t(e.labelKey),disabled:r,className:(0,d.clsx)(`univer-flex univer-h-12 univer-min-w-0 univer-items-center univer-justify-center univer-rounded-lg univer-border-0 univer-bg-transparent univer-p-0 univer-text-gray-900 univer-outline-none univer-transition-colors hover:univer-bg-gray-0`,t&&`univer-bg-[#e8eefc] univer-text-[#2f6fed] hover:univer-bg-[#e8eefc]`,r&&`univer-cursor-not-allowed univer-text-gray-300 hover:univer-bg-transparent`),onMouseDown:U,onPointerDown:U,onClick:e=>{e.stopPropagation(),r||n()},children:/* @__PURE__ */ (0,p.jsx)(gt,{icon:e.icon})},e.value),ae=()=>/* @__PURE__ */ (0,p.jsxs)(`div`,{className:`univer-w-[202px] univer-rounded-xl univer-border univer-border-gray-200 univer-bg-gray-0 univer-px-4 univer-py-4 univer-shadow-lg`,onMouseDown:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),children:[at.map(e=>/* @__PURE__ */ (0,p.jsxs)(`div`,{className:`univer-mb-4`,children:[/* @__PURE__ */ (0,p.jsx)(`div`,{className:`univer-mb-2 univer-text-lg univer-text-gray-900`,children:e.title}),/* @__PURE__ */ (0,p.jsx)(`div`,{className:`univer-grid univer-h-14 univer-overflow-hidden univer-rounded-xl univer-bg-gray-100 univer-p-1`,style:{gridTemplateColumns:`repeat(${e.items.length}, minmax(0, 1fr))`},children:e.items.map(e=>ie(e,e.value===te,()=>ne(e.value)))})]},e.key)),/* @__PURE__ */ (0,p.jsx)(d.Separator,{}),/* @__PURE__ */ (0,p.jsxs)(`div`,{className:`univer-mb-0`,children:[/* @__PURE__ */ (0,p.jsx)(`div`,{className:`univer-mb-2 univer-text-lg univer-text-gray-900`,children:ot.title}),/* @__PURE__ */ (0,p.jsx)(`div`,{className:`univer-grid univer-h-14 univer-overflow-hidden univer-rounded-xl univer-bg-gray-100 univer-p-1`,style:{gridTemplateColumns:`repeat(${ot.items.length}, minmax(0, 1fr))`},children:ot.items.map(e=>ie(e,e.value===I,()=>re(e.value),e.value===`curve`&&!(0,n.isMindMapPlainStructureKind)(te)))})]})]}),oe=e=>{switch(e){case`line`:return/* @__PURE__ */ (0,p.jsx)(l.ShapeStrokePanelContent,{title:u.t(`boards-mind-ui.toolbar.panel.line`),shapeData:w,modeOptions:[`solid`,`dash`,`dot`],showDashDropdown:!1,widthRange:{min:nt.min,max:nt.max,step:1},onUpdateShapeData:(e,t)=>{yt(t,C)}});case`more`:return/* @__PURE__ */ (0,p.jsx)(l.ShapeFloatingToolbarMenuPanel,{title:u.t(`boards-mind-ui.toolbar.panel.more`),minWidthClassName:`univer-min-w-[240px]`,children:/* @__PURE__ */ (0,p.jsxs)(`div`,{className:`univer-flex univer-flex-col univer-gap-1`,children:[/* @__PURE__ */ (0,p.jsx)(l.ShapeFloatingToolbarMenuItem,{label:u.t(`boards-mind-ui.toolbar.action.addSibling`),shortcut:T(H.addSibling),onClick:M}),/* @__PURE__ */ (0,p.jsx)(l.ShapeFloatingToolbarMenuItem,{label:u.t(`boards-mind-ui.toolbar.action.addChild`),shortcut:T(H.addChild),onClick:N}),/* @__PURE__ */ (0,p.jsx)(d.Separator,{}),/* @__PURE__ */ (0,p.jsx)(l.ShapeFloatingToolbarMenuItem,{label:u.t(`boards-mind-ui.toolbar.action.copy`),shortcut:T(H.copy),onClick:P}),/* @__PURE__ */ (0,p.jsx)(l.ShapeFloatingToolbarMenuItem,{label:u.t(`boards-mind-ui.toolbar.action.paste`),shortcut:T(H.paste),onClick:F}),/* @__PURE__ */ (0,p.jsx)(l.ShapeFloatingToolbarMenuItem,{label:u.t(`boards-mind-ui.toolbar.action.delete`),shortcut:T(H.delete),onClick:ee})]})});default:return null}},se=it.flatMap(e=>{let t=[];if(e.dividerBefore&&t.push(/* @__PURE__ */ (0,p.jsx)(d.Separator,{orientation:`vertical`},`divider-${e.kind}`)),e.kind===`typography`)return t.push(/* @__PURE__ */ (0,p.jsx)(l.TypographyPanelButton,{title:u.t(`boards-mind-ui.toolbar.panel.typography`),fontFamily:O.fontFamily,textStyle:{isBold:D.bold===!0,isItalic:D.italic===!0,isUnderline:D.underline===!0,isStrike:D.strikethrough===!0},horizontalAlign:O.horizontalAlign,verticalAlign:O.verticalAlign,horizontalAlignOptions:A,verticalAlignOptions:j,onUpdateText:k},e.kind)),t;if(e.kind===`fontColor`){let n={fs:O.fontSize,cl:{rgb:O.color},...O.textFill===void 0?null:{textFill:O.textFill}};return t.push(/* @__PURE__ */ (0,p.jsx)(l.TextFillButton,{title:u.t(`boards-mind-ui.toolbar.action.fontColor`),textStyle:n,fallbackColor:O.color,onChange:e=>k({textStyle:e})},e.kind)),t.push(/* @__PURE__ */ (0,p.jsx)(l.ShapeFloatingToolbarFontSizeSelect,{value:String(O.fontSize),onChange:e=>{k({textStyle:{fs:e}})}},`mind-map-font-size`)),t}return t.push(/* @__PURE__ */ (0,p.jsx)(d.Dropdown,{open:h===e.panel,overlay:oe(e.panel),onOpenChange:t=>g(t?e.panel:null),children:/* @__PURE__ */ (0,p.jsx)(`span`,{children:/* @__PURE__ */ (0,p.jsx)(l.ShapeFloatingToolbarDropdownTrigger,{title:u.t(e.titleKey),active:h===e.panel,icon:ut(lt[e.panel]),sizeClassName:`univer-h-7 univer-min-w-9 univer-w-auto univer-gap-1 univer-px-1.5`,onMouseDown:U,onPointerDown:U})})},e.panel)),t}),L=[...y.isRootNode?[/* @__PURE__ */ (0,p.jsx)(d.Dropdown,{open:h===`layout`,overlay:ae(),onOpenChange:e=>g(e?`layout`:null),children:/* @__PURE__ */ (0,p.jsx)(`span`,{children:/* @__PURE__ */ (0,p.jsx)(l.ShapeFloatingToolbarDropdownTrigger,{title:u.t(`boards-mind-ui.toolbar.action.layout`),active:h===`layout`,icon:/* @__PURE__ */ (0,p.jsx)(ht,{}),sizeClassName:`univer-h-7 univer-min-w-9 univer-w-auto univer-gap-1 univer-px-1.5`,onMouseDown:U,onPointerDown:U})})},`mind-map-layout-dropdown`),/* @__PURE__ */ (0,p.jsx)(d.Separator,{orientation:`vertical`},`layout-panel-divider`)]:[],/* @__PURE__ */ (0,p.jsx)(l.ShapeFillButton,{title:u.t(`boards-mind-ui.toolbar.action.fill`),shapeData:_??{},onUpdateShapeData:S},`mind-map-fill`),/* @__PURE__ */ (0,p.jsx)(l.ShapeStrokePanelButton,{title:u.t(`boards-mind-ui.toolbar.action.stroke`),shapeData:_??{},onUpdateShapeData:S},`mind-map-stroke`),/* @__PURE__ */ (0,p.jsx)(d.Separator,{orientation:`vertical`},`style-divider`)];return/* @__PURE__ */ (0,p.jsxs)(l.ShapeFloatingToolbarContent,{maxWidthClassName:`univer-max-w-[min(760px,calc(100vw-32px))]`,onMouseDown:e=>e.stopPropagation(),children:[L,se]})}function Ct(e){let{left:t,top:n,width:r,height:i}=e;return{left:t,right:t+r,top:n-56,bottom:n+i}}let wt=class extends a.RxDisposable{constructor(e,t,n,r,i,a){super(),this._renderContext=e,this._boardCanvasPopManagerService=t,this._boardElementService=n,this._elementStateService=r,this._boardTextEditingService=i,this._interactionSurfaceService=a,x(this,`_popupDisposable`,null),x(this,`_popupSelectionKey`,null),this._init()}dispose(){this._clearPopup(),super.dispose()}_init(){let e=this._renderContext.scene.getTransformerByCreate();this.disposeWithMe((0,a.toDisposable)(e.createControl$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(()=>this._showPopupForSelection()))),this.disposeWithMe((0,a.toDisposable)(e.clearControl$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(()=>this._clearPopupIfSelectionChanged()))),this.disposeWithMe((0,a.toDisposable)(e.changeStart$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(()=>this._clearPopup()))),this.disposeWithMe((0,a.toDisposable)(e.changeEnd$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(()=>setTimeout(()=>this._showPopupForSelection(),0)))),this.disposeWithMe((0,a.toDisposable)(this._elementStateService.state$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(()=>setTimeout(()=>this._showPopupForSelection(),0)))),this.disposeWithMe((0,a.toDisposable)(this._interactionSurfaceService.interactionSurfaceActive$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(e=>{e?this._clearPopup():setTimeout(()=>this._showPopupForSelection(),0)}))),this.disposeWithMe((0,a.toDisposable)(this._boardTextEditingService.editingParams$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(e=>{(e==null?void 0:e.unitId)===this._renderContext.unitId&&(e.visible?this._clearPopup():setTimeout(()=>this._showPopupForSelection(),0))})))}_clearPopup(){var e;(e=this._popupDisposable)==null||e.dispose(),this._popupDisposable=null,this._popupSelectionKey=null}_clearPopupIfSelectionChanged(){setTimeout(()=>{this._isPopupSelectionStillActive()||this._clearPopup()},0)}_isPopupSelectionStillActive(){let e=this._elementStateService.getSnapshot();return!!e.context&&e.selectedIds.length>0&&this._popupSelectionKey===this._buildPopupSelectionKey(e.context.unitId,e.context.subUnitId,e.selectedIds)}_buildPopupSelectionKey(e,t,n){return`${e}:${t}:${n.join(`,`)}`}_resolveIncomingConnectorStyle(e,t,r,i){let a=this._boardElementService.getElementData(e,t),o=Object.values(a).find(e=>{let t=(0,n.getMindMapConnectorMeta)(e.element);return(t==null?void 0:t.structureScopeId)===r&&t.childNodeId===i});if(o&&`connectorData`in o.element)return o.element.connectorData.style}_showPopupForSelection(){var e,i,a;if(this._interactionSurfaceService.isInteractionSurfaceActive){this._clearPopup();return}let o=this._boardTextEditingService.getEditing();if((o==null?void 0:o.visible)===!0&&o.unitId===this._renderContext.unitId){this._clearPopup();return}let s=this._elementStateService.getSnapshot();if(s.isTransforming||(0,r.resolveBoardFloatingToolbarSelection)({context:s.context,selectedIds:s.selectedIds,getElementById:(e,t,n)=>this._boardElementService.getElementById(e,t,n)}).owner!==`mind-map`){this._clearPopup();return}let c=this._renderContext.scene.getTransformerByCreate().getSelectedObjectMap(),l=Array.from(c.values()).map(e=>this._resolveSelectedEntry(e)).filter(e=>!!e).filter(e=>!!(0,n.getMindMapNodeMeta)(e.elementData.element)),u=l.find(e=>e.elementData.elementId===s.focusedId)??l[0]??this._resolveSelectedMindMapEntryFromState();if(!u){this._clearPopup();return}let d=(0,n.getMindMapNodeMeta)(u.elementData.element);if(!d){this._clearPopup();return}let f=(e=this._boardElementService.getElementData(u.elementData.unitId,u.elementData.subUnitId)[d.structureScopeId])==null?void 0:e.element,p=(0,n.getMindMapContainerMeta)(f),m=f==null||(i=f.custom)==null||(i=i.mindmap)==null||(i=i.layout)==null?void 0:i.structureKind,h=((p==null?void 0:p.layout.structureKind)??m)===`mindmap-vertical`&&(d.parentNodeId===null||d.side===`top`),g=d.parentNodeId!==null&&d.side!==`top`&&d.side!==`bottom`,_=h||g,v=((a=s.context)==null?void 0:a.unitId)===u.elementData.unitId&&s.context.subUnitId===u.elementData.subUnitId&&s.selectedIds.length?s.selectedIds:[u.elementData.elementId],y=this._buildPopupSelectionKey(u.elementData.unitId,u.elementData.subUnitId,v);this._popupDisposable&&this._popupSelectionKey===y||(this._clearPopup(),this._popupDisposable=this.disposeWithMe(this._boardCanvasPopManagerService.attachPopupToObject(u.elementData.unitId,u.elementData.subUnitId,u.object,{componentKey:st,direction:`top-center`,offset:[0,8],..._?{anchorBoundResolver:Ct}:null,extraProps:{unitId:u.elementData.unitId,subUnitId:u.elementData.subUnitId,elementId:u.elementData.elementId,scopeId:d.structureScopeId,isRootNode:d.parentNodeId===null,left:u.elementData.element.transform.left??0,top:u.elementData.element.transform.top??0,shapeData:u.elementData.element.type===t.BoardElementType.Shape?u.elementData.element.shapeData:void 0,layout:p==null?void 0:p.layout,incomingConnectorStyle:this._resolveIncomingConnectorStyle(u.elementData.unitId,u.elementData.subUnitId,d.structureScopeId,u.elementData.elementId)}})),this._popupSelectionKey=y)}_resolveSelectedMindMapEntryFromState(){var e;let t=this._elementStateService.getSnapshot(),i=t.context,a=t.focusedId??t.selectedIds[0];if(!i||!a)return null;let o=this._boardElementService.getElementById(i.unitId,i.subUnitId,a);if(!o||!(0,n.getMindMapNodeMeta)(o.element))return null;let s=(0,r.getBoardElementRenderObjectKey)(i.unitId,a),c=this._renderContext.scene,l=((e=c.getObjectIncludeInGroup)==null?void 0:e.call(c,s))??this._renderContext.scene.getObject(s);return l?{object:l,elementData:o}:null}_resolveSelectedEntry(e){var t;if(!e)return null;let n=(0,r.parseBoardElementRenderObjectKey)(e.oKey);if(!n)return null;let i=this._elementStateService.getSnapshot(),a=((t=i.context)==null?void 0:t.unitId)===n.unitId?i.context.subUnitId:void 0;if(!a)return null;let o=this._boardElementService.getElementById(n.unitId,a,n.elementId);return o?{object:e,elementData:o}:null}};wt=C([S(1,(0,a.Inject)(r.BoardCanvasPopManagerService)),S(2,(0,a.Inject)(t.IBoardElementService)),S(3,(0,a.Inject)(r.IBoardElementStateService)),S(4,(0,a.Inject)(r.BoardTextEditingService)),S(5,(0,a.Inject)(r.BoardInteractionSurfaceService))],wt);let Tt=`board-mind-map-pending-insert-object`,Et=r.BOARD_RENDER_LAYER_INDEX.preview;var Dt=class extends o.BaseObject{constructor(e=Tt,t){super(e),x(this,`_state`,{point:null,children:[]}),x(this,`_preview`,null),this.evented=!1,this.zIndex=r.BOARD_RENDER_OBJECT_Z_INDEX.transientPreview,this.updateState(t)}updateState(e){let t=this._state;if(this._state={...t,...e},!this._preview||t.structureKind!==this._state.structureKind||t.rootText!==this._state.rootText||t.branchLineType!==this._state.branchLineType||!a.Tools.diffValue(t.children,this._state.children)||!a.Tools.diffValue(t.blueprint,this._state.blueprint)){let e={left:0,top:0,structureKind:this._state.structureKind,branchLineType:this._state.branchLineType},t=this._state.blueprint;t&&this._state.rootText&&(t={...t,root:{...t.root,text:this._state.rootText}}),this._preview=t?(0,n.createMindMapElementsFromBlueprint)({...e,blueprint:t}):(0,n.createMindMapElements)({...e,rootText:this._state.rootText,children:this._state.children})}this._state.point?this.show():this.hide(),this.makeDirty(!0)}isHit(e){return!1}getRootTopLeft(e){var t,r;return{left:Math.round(e.x-(((t=this._preview)==null?void 0:t.rootNode.transform.width)??n.MIND_MAP_DEFAULT_NODE_SIZE.rootWidth)/2),top:Math.round(e.y-(((r=this._preview)==null?void 0:r.rootNode.transform.height)??n.MIND_MAP_DEFAULT_NODE_SIZE.rootHeight)/2)}}render(e,t){var r;let i=this._state.point,a=this._preview;if(!i||!a||!this.visible)return this.makeDirty(!1),this;let o=Number.isFinite(this._state.zoomRatio)&&(this._state.zoomRatio??0)>0?this._state.zoomRatio:1,s=a.rootNode.transform.width??n.MIND_MAP_DEFAULT_NODE_SIZE.rootWidth,c=a.rootNode.transform.height??n.MIND_MAP_DEFAULT_NODE_SIZE.rootHeight,l=this.getRootTopLeft(i),u=l.left-(a.rootNode.transform.left??0),d=l.top-(a.rootNode.transform.top??0),f=u-(a.container.transform.left??0),p=d-(a.container.transform.top??0);e.save(),e.globalAlpha=D.objectAlpha,e.lineWidth=D.lineWidthScreen/o,e.strokeStyle=D.primaryColor,e.beginPath();for(let t of((r=a.container.containerData.shapeData.customGeometry)==null?void 0:r.pathLst)??[])for(let n of t.dataArray??[]){let t=Number(n.points[0])+u,r=Number(n.points[1])+d;n.command===`M`?e.moveTo(t,r):n.command===`L`&&e.lineTo(t,r)}for(let t of a.connectors){var m;if(t.visible===!1)continue;let n=t.connectorData,r=n.start.kind===`free`?n.start:n.start.fallbackPoint,i=n.end.kind===`free`?n.end:n.end.fallbackPoint;if(!r||!i)continue;e.moveTo(r.x+f,r.y+p);let a=(m=n.curveData)==null?void 0:m.controls;if(n.routing===`curve`&&a&&a.length>=2)e.bezierCurveTo(a[0].x+f,a[0].y+p,a[1].x+f,a[1].y+p,i.x+f,i.y+p);else{var h;for(let t of((h=n.orthogonalData)==null?void 0:h.routePoints)??[])e.lineTo(t.x+f,t.y+p);e.lineTo(i.x+f,i.y+p)}}e.stroke();for(let t of a.nodes)t.id!==a.rootNode.id&&t.visible!==!1&&(O(e,u+(t.transform.left??0),d+(t.transform.top??0),t.transform.width??n.MIND_MAP_DEFAULT_NODE_SIZE.nodeWidth,t.transform.height??n.MIND_MAP_DEFAULT_NODE_SIZE.nodeHeight,D.ghostRadius),e.fillStyle=D.ghostFillColor,e.fill(),e.stroke());O(e,l.left,l.top,s,c,D.rootRadius),e.fillStyle=D.primaryColor,e.fill(),e.stroke(),e.fillStyle=D.rootTextColor,e.font=k(D.rootFontWeight,D.rootFontSize,o),e.textAlign=`center`,e.textBaseline=`middle`;let g=D.textPaddingScreen/o;return e.fillText(n.MIND_MAP_DEFAULT_NODE_TEXT,l.left+s/2,l.top+c/2,Math.max(1,s-g*2)),e.restore(),this.makeDirty(!1),this}};let Ot={children:[{text:n.MIND_MAP_DEFAULT_NODE_TEXT,orderKey:(0,n.getMindMapDefaultChildOrderKey)(0),side:`right`},{text:n.MIND_MAP_DEFAULT_NODE_TEXT,orderKey:(0,n.getMindMapDefaultChildOrderKey)(1),side:`right`},{text:n.MIND_MAP_DEFAULT_NODE_TEXT,orderKey:(0,n.getMindMapDefaultChildOrderKey)(2),side:`right`}]};var W=class extends a.Disposable{constructor(...e){super(...e),x(this,`_template`,Ot)}setTemplate(e){var t;let n=(e==null?void 0:e.children)??(e==null||(t=e.blueprint)==null?void 0:t.root.children);this._template={rootText:e==null?void 0:e.rootText,structureKind:e==null?void 0:e.structureKind,branchLineType:e==null?void 0:e.branchLineType,children:this._normalizeChildren(n,e==null?void 0:e.structureKind),blueprint:e!=null&&e.blueprint?this._cloneBlueprint(e.blueprint):void 0}}getTemplate(){var e;return{rootText:this._template.rootText,structureKind:this._template.structureKind,branchLineType:this._template.branchLineType,children:(e=this._template.children)==null?void 0:e.map(e=>({...e})),blueprint:this._template.blueprint?this._cloneBlueprint(this._template.blueprint):void 0}}_cloneBlueprint(e){return{title:e.title,root:this._cloneBlueprintNode(e.root)}}_cloneBlueprintNode(e){return{...e,foreignAttributes:e.foreignAttributes?{...e.foreignAttributes}:void 0,children:e.children.map(e=>this._cloneBlueprintNode(e))}}_normalizeChildren(e,t){let r=!e,i=e??Ot.children;return i==null?void 0:i.map((e,i)=>({...e,text:e.text??n.MIND_MAP_DEFAULT_NODE_TEXT,side:this._resolveChildSide(e.side,i,t,r)}))}_resolveChildSide(e,t,n,r){return n===`mindmap-vertical`?r?`bottom`:e??`bottom`:n===`tree-left`?r?`left`:e??`left`:n===`tree-right`?r?`right`:e??`right`:n===`tree-alternate`?r?t%2==0?`left`:`right`:e??(t%2==0?`left`:`right`):n===`timeline-horizontal`?r?t%2==0?`top`:`bottom`:e??(t%2==0?`top`:`bottom`):n===`timeline-vertical`?r?t%2==0?`left`:`right`:e??(t%2==0?`left`:`right`):e}};function kt(e,t){let n=Number.isFinite(t.zoomRatio)&&t.zoomRatio>0?t.zoomRatio:1;return{x:Math.round((e.offsetX-t.panOffset.x)/n),y:Math.round((e.offsetY-t.panOffset.y)/n)}}function At(e){var t;e!=null&&e.dispose?e.dispose():e==null||(t=e.unsubscribe)==null||t.call(e)}function jt(e){var n;return e.activeTool===t.BoardToolType.MindMap&&((n=e.pendingInsert)==null?void 0:n.type)===t.BoardToolType.MindMap}let G=class extends a.RxDisposable{constructor(e,t,n,r,i,a,o){super(),this._renderContext=e,this._instanceSrv=t,this._stateService=n,this._commandService=r,this._insertStateService=i,this._elementStateService=a,this._boardTextEditingService=o,x(this,`_previewObject`,null),x(this,`_lastPoint`,null),this._init()}_init(){var e;let{scene:t,unitId:n}=this._renderContext,r=this._instanceSrv.getUnit(n,a.UniverInstanceType.UNIVER_BOARD);if(!r)return;let i=(e=t.onPointerMove$)==null?void 0:e.subscribeEvent({priority:4,next:([e,t])=>this._handlePointerMove(e,t)}),o=t.onPointerDown$.subscribeEvent({priority:4,next:([e,t])=>this._handlePointerDown(r,e,t)});this.disposeWithMe((0,a.toDisposable)(()=>At(i))),this.disposeWithMe((0,a.toDisposable)(()=>At(o)));let s=this._stateService.state$.subscribe(()=>this._syncPreviewObject());this.disposeWithMe((0,a.toDisposable)(()=>At(s))),this.disposeWithMe((0,a.toDisposable)(()=>{this._removePreviewObject()})),this._syncPreviewObject()}_syncPreviewObject(){var e,t;let n=this._stateService.getState();if(!jt(n)){this._removePreviewObject();return}let r=this._ensurePreviewObject(),i=this._insertStateService.getTemplate();r.updateState({point:this._lastPoint,structureKind:i.structureKind,rootText:i.rootText,branchLineType:i.branchLineType,children:i.children,blueprint:i.blueprint,zoomRatio:n.zoomRatio}),(e=(t=this._renderContext.scene).makeDirty)==null||e.call(t,!0)}_ensurePreviewObject(){var e,t;if(this._previewObject)return this._previewObject;let n=this._insertStateService.getTemplate(),r=new Dt(Tt,{point:this._lastPoint,structureKind:n.structureKind,rootText:n.rootText,branchLineType:n.branchLineType,children:n.children,blueprint:n.blueprint,zoomRatio:this._stateService.getState().zoomRatio});return this._previewObject=r,(e=(t=this._renderContext.scene).addObject)==null||e.call(t,r,Et),r}_removePreviewObject(){var e,t,n,r;this._previewObject?((e=(t=this._renderContext.scene).removeObjects)==null||e.call(t,[this._previewObject]),this._previewObject=null,this._lastPoint=null,(n=(r=this._renderContext.scene).makeDirty)==null||n.call(r,!0)):this._lastPoint=null}_getPointFromEvent(e){let t=this._stateService.getState();return kt(e,{panOffset:t.viewportPanOffset,zoomRatio:t.zoomRatio})}_handlePointerMove(e,t){jt(this._stateService.getState())&&(this._lastPoint=this._getPointFromEvent(e),this._syncPreviewObject(),t.stopPropagation())}async _handlePointerDown(e,t,n){let i=await this._insertMindMap(e,t,n);if(!i)return;let a={unitId:this._renderContext.unitId,subUnitId:i.subUnitId};this._boardTextEditingService.ignoreExternalFocusChanges(),this._boardTextEditingService.setEditing({...a,shapeId:i.rootNodeId,shapeKey:(0,r.getBoardElementRenderObjectKey)(a.unitId,i.rootNodeId),visible:!0})}async _insertMindMap(e,r,i){var o;let s=this._stateService.getState(),c=r.button??0;if(!jt(s)||c!==0)return null;let l=this._getPointFromEvent(r);this._lastPoint=l,this._syncPreviewObject();let u=this._ensurePreviewObject().getRootTopLeft(l),d=this._insertStateService.getTemplate(),f=(0,a.generateRandomId)(6),p=e.getActivePageId(),m=this._commandService.executeCommand(n.InsertBoardMindMapOperation.id,{unitId:this._renderContext.unitId,subUnitId:p,left:u.left,top:u.top,rootNodeId:f,rootText:d.rootText,structureKind:d.structureKind,branchLineType:d.branchLineType,children:d.children,blueprint:d.blueprint});if(this._stateService.setActiveTool(t.BoardToolType.Select),i.stopPropagation(),(o=r.preventDefault)==null||o.call(r),!await m||this._disposed)return null;let h={unitId:this._renderContext.unitId,subUnitId:p};return this._elementStateService.selectElements(h,[f],f),{rootNodeId:f,subUnitId:p}}};G=C([S(1,a.IUniverInstanceService),S(2,r.IBoardUIStateService),S(3,a.ICommandService),S(4,(0,a.Inject)(W)),S(5,r.IBoardElementStateService),S(6,(0,a.Inject)(r.BoardTextEditingService))],G);var K=class extends a.Disposable{constructor(...e){super(...e),x(this,`_refresh$`,new s.Subject),x(this,`refresh$`,this._refresh$.asObservable())}notify(e){this._refresh$.next(e)}dispose(){this._refresh$.complete(),super.dispose()}};function Mt(e){return typeof e==`number`&&Number.isFinite(e)&&e>0}function Nt(e,t,r){let i=e[t],a=(0,n.getMindMapNodeMeta)(i==null?void 0:i.element);if(!i||!a)return null;let o=(0,n.resolveMindMapNodeHostSize)(i,r);if(!o)return null;let s=i.transform??i.element.transform,c={...e,[t]:{...i,transform:{...s,width:o.width,height:o.height},element:{...i.element,transform:{...i.element.transform,width:o.width,height:o.height}}}};return(0,n.resolveMindMapLayoutPreview)(c,a.structureScopeId)}let Pt=class extends a.RxDisposable{constructor(e,t,r,i,o,s){super(),this._renderContext=e,this._intrinsicSizeService=t,this._boardElementService=r,this._textEditingService=i,this._previewRefreshService=o,this._commandService=s,x(this,`_activePreview`,null),x(this,`_provider`,{match:e=>e.unitId===this._renderContext.unitId&&!!(0,n.getMindMapNodeMeta)(e.element),resolveHostSize:e=>this._resolveHostSize(e),previewHostSize:e=>this._previewHostSize(e),updateHostSize:e=>this._updateHostSize(e),updateShapeText:e=>this._updateShapeText(e)}),this.disposeWithMe(this._intrinsicSizeService.registerProvider(this._provider)),this._initEditingRestore(),this.disposeWithMe((0,a.toDisposable)(()=>this._restoreActivePreview()))}_updateHostSize(e){return this._previewHostSize(e)}_updateShapeText(e){let t=e.params.hostSize?this._resolveHostSize({elementData:e.elementData,params:e.params.hostSize}):null,i=e.elementData.transform??e.elementData.element.transform;return(!t||t.width===i.width&&t.height===i.height)&&(0,r.areBoardShapeTextValuesEquivalent)(e.params.shapeText,e.params.oldShapeText)?!0:this._commandService.syncExecuteCommand(n.UpdateMindMapNodeOperation.id,{unitId:e.params.unitId,subUnitId:e.params.subUnitId,nodeId:e.params.shapeId,shapeText:e.params.shapeText,...t?{hostSize:{width:t.width,height:t.height}}:null})}_previewHostSize(e){let t=this._resolveHostSize(e);if(!t)return!1;let n=e.elementData.transform??e.elementData.element.transform;return!this._activePreview&&n.width===t.width&&n.height===t.height||this._syncLayoutPreview(e,t),!0}_resolveHostSize(e){return!Mt(e.params.width)||!Mt(e.params.height)?null:(0,n.resolveMindMapNodeHostSize)(e.elementData,{width:e.params.width,height:e.params.height})}_initEditingRestore(){this.disposeWithMe((0,a.toDisposable)(this._textEditingService.editingParams$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(e=>{e||this._restoreActivePreview()})))}_syncLayoutPreview(e,t){var r;let i=this._boardElementService.getElementData(e.params.unitId,e.params.subUnitId),a=Nt(i,e.params.shapeId,t),o=(0,n.getMindMapNodeMeta)((r=i[e.params.shapeId])==null?void 0:r.element);a&&o&&(this._activePreview={unitId:e.params.unitId,subUnitId:e.params.subUnitId,scopeId:o.structureScopeId},this._syncElementDataToScene(a,o.structureScopeId)&&this._previewRefreshService.notify({unitId:e.params.unitId,subUnitId:e.params.subUnitId,nodeId:e.params.shapeId,scopeId:o.structureScopeId}))}_restoreActivePreview(){let e=this._activePreview;if(!e)return;this._activePreview=null;let t=this._boardElementService.getElementData(e.unitId,e.subUnitId);this._syncElementDataToScene(t,e.scopeId)&&this._previewRefreshService.notify({unitId:e.unitId,subUnitId:e.subUnitId,nodeId:e.scopeId,scopeId:e.scopeId})}_syncElementDataToScene(e,t){let i=!1;if(Object.values(e).forEach(a=>{var o;let s=(0,n.getMindMapNodeMeta)(a.element),c=(o=a.element.custom)==null?void 0:o.structured;if(a.elementId!==t&&(s==null?void 0:s.structureScopeId)!==t&&(c==null?void 0:c.structureScopeId)!==t)return;let l=this._getSceneObject(a.elementId);l&&(i=(0,r.syncBoardElementRenderObject)(l,a,{elementData:e,unitId:this._renderContext.unitId})||i)}),i){var a,o;this._renderContext.scene.makeDirty(!0),(a=(o=this._renderContext.scene).requestRender)==null||a.call(o)}return i}_getSceneObject(e){var t;let n=(0,r.getBoardElementRenderObjectKey)(this._renderContext.unitId,e),i=this._renderContext.scene;return((t=i.getObjectIncludeInGroup)==null?void 0:t.call(i,n))??this._renderContext.scene.getObject(n)??null}};Pt=C([S(1,(0,a.Inject)(r.BoardShapeIntrinsicSizeService)),S(2,(0,a.Inject)(t.IBoardElementService)),S(3,(0,a.Inject)(r.BoardTextEditingService)),S(4,(0,a.Inject)(K)),S(5,a.ICommandService)],Pt);let q={touchHitRadius:22,radius:18,addChildRadius:14,siblingHoverRadius:10,siblingDotRadius:5,siblingDotGap:3,gap:10,collapsePlusMinDistance:44,primaryColor:T.primaryColor,surfaceColor:T.surfaceColor,borderWidth:2,glyphSize:8,addChildGlyphSize:6,siblingGlyphSize:5.5,glyphWidth:2.4,glyphHoverWidth:3,badgeFontWeight:600,badgeFontSize:18,fontFamily:T.fontFamily};function Ft(e){let t=q.radius,n=q.addChildRadius,r=q.siblingHoverRadius,i=q.gap,a=q.siblingDotRadius,o=a+q.siblingDotGap,s=q.collapsePlusMinDistance,c=e.bounds.top+e.bounds.height/2,l=e.bounds.left+e.bounds.width/2,u=e.bounds.left-t-i,d=e.bounds.left+e.bounds.width+t+i,f=e.bounds.top-t-i,p=e.bounds.top+e.bounds.height+t+i,m=e.bounds.left-n-i,h=e.bounds.left+e.bounds.width+n+i,g=e.bounds.top-n-i,_=e.bounds.top+e.bounds.height+n+i,v=[],y=e.side===`top`||e.side===`bottom`,b=y?l:e.side===`left`?u:d,x=y?e.side===`top`?f:p:c;if(e.hasChildren&&e.collapsedDescendantCount>0)return v.push({kind:`toggle-collapse`,x:b,y:x,radius:t,badgeCount:e.collapsedDescendantCount}),v;if(e.isRoot?(e.rootChildSides??(y?[`top`,`bottom`]:[`left`,`right`])).forEach(e=>{e===`top`?v.push({kind:`add-child-top`,x:l,y:g,radius:n}):e===`bottom`?v.push({kind:`add-child-bottom`,x:l,y:_,radius:n}):e===`left`?v.push({kind:`add-child-left`,x:m,y:c,radius:n}):v.push({kind:`add-child-right`,x:h,y:c,radius:n})}):(v.push({kind:e.side===`left`?`add-child-left`:e.side===`top`?`add-child-top`:e.side===`bottom`?`add-child-bottom`:`add-child-right`,x:y?l:e.side===`left`?m:h,y:y?e.side===`top`?g:_:c,radius:n}),y?(v.push({kind:`add-sibling-before`,placement:`before`,x:e.bounds.left-o,y:c,radius:r,visualRadius:a}),v.push({kind:`add-sibling-after`,placement:`after`,x:e.bounds.left+e.bounds.width+o,y:c,radius:r,visualRadius:a})):(v.push({kind:`add-sibling-before`,placement:`before`,x:l,y:e.bounds.top-o,radius:r,visualRadius:a}),v.push({kind:`add-sibling-after`,placement:`after`,x:l,y:e.bounds.top+e.bounds.height+o,radius:r,visualRadius:a}))),e.hasChildren){let n={kind:`toggle-collapse`,x:b,y:x,radius:t};v.push(n);let r=v.find(t=>t.kind===(e.side===`left`?`add-child-left`:e.side===`top`?`add-child-top`:e.side===`bottom`?`add-child-bottom`:`add-child-right`));r&&Math.hypot(r.x-n.x,r.y-n.y)<s&&(e.side===`top`||e.side===`bottom`?r.y=n.y+(e.side===`top`?-s:s):r.x=n.x+(e.side===`left`?-s:s))}return v}let It=`board-mind-map-node-controls-object`,Lt=r.BOARD_RENDER_LAYER_INDEX.connectorAffordance;function Rt(e,t){return!!e&&e.kind===t.kind&&e.x===t.x&&e.y===t.y}var zt=class extends o.Control{constructor(e=It,t){super(e),x(this,`_state`,{controls:[]}),this.evented=!0,this.zIndex=r.BOARD_RENDER_OBJECT_Z_INDEX.transientControl,this.updateState(t)}updateState(e){this._state={...this._state,...e},this._state.controls.length>0?this.show():this.hide(),this.makeDirty(!0)}setHoveredControl(e){!e&&!this._state.hoveredControl||e&&Rt(this._state.hoveredControl,e)||(this._state={...this._state,hoveredControl:e},this.makeDirty(!0))}getHitControl(e,t){var n;let r=(n=this.getScene())==null?void 0:n.getAncestorScale(),i=null,a=1/0;for(let n=this._state.controls.length-1;n>=0;--n){let s=this._state.controls[n],c=Math.hypot(e.x-s.x,e.y-s.y);if(t!==o.DeviceType.Touch){if(c<=s.radius)return s;continue}let l=Math.hypot((e.x-s.x)*((r==null?void 0:r.scaleX)??1),(e.y-s.y)*((r==null?void 0:r.scaleY)??1));(c<=s.radius||l<=q.touchHitRadius)&&l<a&&(i=s,a=l)}return i}getTouchHitDistance(e){var t;let n=this.getHitControl(e,o.DeviceType.Touch),r=(t=this.getScene())==null?void 0:t.getAncestorScale();return n?Math.hypot((e.x-n.x)*((r==null?void 0:r.scaleX)??1),(e.y-n.y)*((r==null?void 0:r.scaleY)??1)):1/0}isHit(e){return!!this.getHitControl({x:e.x,y:e.y})}render(e,t){return!this.visible||this._state.controls.length===0?(this.makeDirty(!1),this):(e.save(),this._state.controls.forEach(t=>{let n=Rt(this._state.hoveredControl,t),r=t.badgeCount!==void 0,i=t.kind===`add-child-left`||t.kind===`add-child-right`||t.kind===`add-child-top`||t.kind===`add-child-bottom`,a=t.kind===`add-sibling-before`||t.kind===`add-sibling-after`,o=a&&!n?t.visualRadius??t.radius:t.radius;if(e.beginPath(),e.fillStyle=t.kind===`toggle-collapse`?q.surfaceColor:q.primaryColor,e.strokeStyle=q.primaryColor,e.lineWidth=q.borderWidth,e.arc(t.x,t.y,o,0,Math.PI*2),e.fill(),(!a||n)&&e.stroke(),!r&&(!a||n)){if(e.beginPath(),e.strokeStyle=t.kind===`toggle-collapse`?q.primaryColor:q.surfaceColor,e.lineWidth=a?q.glyphWidth:n?q.glyphHoverWidth:q.glyphWidth,e.lineCap=`round`,t.kind===`toggle-collapse`){let n=q.glyphSize;e.moveTo(t.x+n/2,t.y-n),e.lineTo(t.x-n/2,t.y),e.lineTo(t.x+n/2,t.y+n)}else{let n=a?q.siblingGlyphSize:i?q.addChildGlyphSize:q.glyphSize;e.moveTo(t.x-n,t.y),e.lineTo(t.x+n,t.y),e.moveTo(t.x,t.y-n),e.lineTo(t.x,t.y+n)}e.stroke()}r&&(e.fillStyle=q.primaryColor,e.font=`${q.badgeFontWeight} ${q.badgeFontSize}px ${q.fontFamily}`,e.textAlign=`center`,e.textBaseline=`middle`,e.fillText(String(t.badgeCount),t.x,t.y))}),e.restore(),this.makeDirty(!1),this)}};function Bt(e){return e===`tree-left`||e===`tree-right`||e===`tree-alternate`}function Vt(e){return e===`timeline-horizontal`||e===`timeline-vertical`}function Ht(e,t){let n=Number.isFinite(t.zoomRatio)&&t.zoomRatio>0?t.zoomRatio:1;return{x:Math.round((e.offsetX-t.panOffset.x)/n),y:Math.round((e.offsetY-t.panOffset.y)/n)}}let Ut=class extends a.RxDisposable{constructor(e,t,n,r,i,a,o,s,c){super(),this._renderContext=e,this._boardElementService=t,this._elementStateService=n,this._stateService=r,this._commandService=i,this._boardTextEditingService=a,this._localeService=o,this._previewRefreshService=s,this._undoRedoGroupService=c,x(this,`_object`,null),x(this,`_objectEventDisposables`,null),x(this,`_activeNodeId`,null),x(this,`_activeScopeId`,null),this._init()}_init(){var e,t,n;let{scene:r}=this._renderContext,i=(e=r.getTransformerByCreate)==null?void 0:e.call(r);i&&(this.disposeWithMe((0,a.toDisposable)(i.changing$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(({objects:e})=>{this._syncControls(e,{hideRootControls:!0})}))),this.disposeWithMe((0,a.toDisposable)(i.changeEnd$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(e=>{let t=e==null?void 0:e.objects;this._syncControls(t),setTimeout(()=>this._syncControls(t),0)})))),this.disposeWithMe((0,a.toDisposable)(this._elementStateService.state$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(()=>this._syncControls()))),this.disposeWithMe((0,a.toDisposable)(this._stateService.state$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(()=>this._syncControls()))),this.disposeWithMe((0,a.toDisposable)(this._boardElementService.elementUpdate$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(e=>{let t=this._elementStateService.getSnapshot().context;t&&e.some(e=>e.unitId===t.unitId&&e.subUnitId===t.subUnitId&&(e.elementId===this._activeNodeId||e.elementId===this._activeScopeId))&&this._syncControls()}))),this.disposeWithMe((0,a.toDisposable)(this._previewRefreshService.refresh$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(e=>{let t=this._elementStateService.getSnapshot().context;t&&t.unitId===e.unitId&&t.subUnitId===e.subUnitId&&(this._activeScopeId&&this._activeScopeId!==e.scopeId||this._syncControls())}))),this.disposeWithMe((0,a.toDisposable)(r.onPointerMove$.subscribeEvent(e=>this._handlePointerMove(e)))),this.disposeWithMe((0,a.toDisposable)(r.onPointerDown$.subscribeEvent({priority:4,next:([e,t])=>{this._handlePointerDown(e)&&this._consumeControlEvent(e,t)}}))),this.disposeWithMe((0,a.toDisposable)(((t=r.onPointerUp$)==null?void 0:t.subscribeEvent({priority:4,next:([e,t])=>{this._isControlEvent(e)&&this._consumeControlEvent(e,t)}}))??{dispose:()=>{}})),this.disposeWithMe((0,a.toDisposable)(((n=r.onDblclick$)==null?void 0:n.subscribeEvent({priority:4,next:([e,t])=>{this._isControlEvent(e)&&this._consumeControlEvent(e,t)}}))??{dispose:()=>{}})),this.disposeWithMe((0,a.toDisposable)(()=>this._removeObject())),this._syncControls()}_ensureObject(){return this._object||(this._object=new zt(It),this._attachObjectEvents(this._object),this._renderContext.scene.addObject(this._object,Lt)),this._object}_attachObjectEvents(e){var t;(t=this._objectEventDisposables)==null||t.dispose();let n=new a.DisposableCollection;n.add(e.onPointerDown$.subscribeEvent({priority:4,next:([e,t])=>{this._handlePointerDown(e)&&this._consumeControlEvent(e,t)}})),n.add(e.onPointerUp$.subscribeEvent({priority:4,next:([e,t])=>{this._isControlEvent(e)&&this._consumeControlEvent(e,t)}})),n.add(e.onDblclick$.subscribeEvent({priority:4,next:([e,t])=>{this._isControlEvent(e)&&this._consumeControlEvent(e,t)}})),this._objectEventDisposables=n}_removeObject(){var e;this._object&&(this._renderContext.scene.removeObjects([this._object]),(e=this._objectEventDisposables)==null||e.dispose(),this._objectEventDisposables=null,this._object=null,this._activeNodeId=null,this._activeScopeId=null,this._renderContext.scene.makeDirty(!0))}_syncControls(e,t){var i,a;if(this._stateService.getState().interactionMode===`viewing`){this._removeObject();return}let o=this._elementStateService.getSnapshot(),s=o.context,c=o.focusedId??o.selectedIds[0];if(!s||!c||o.selectedIds.length!==1){this._removeObject();return}let l=this._boardElementService.getElementData(s.unitId,s.subUnitId),u=l[c],d=(0,n.getMindMapNodeMeta)(u==null?void 0:u.element);if(!u||!d){this._removeObject();return}let f=(0,r.getBoardElementRenderObjectKey)(s.unitId,c);if(t!=null&&t.hideRootControls&&d.parentNodeId==null&&e!=null&&e.has(f)){this._removeObject();return}let p=this._resolveControlBounds(l,s.unitId,c,e);if(!p){this._removeObject();return}let m=Object.values(l).filter(e=>{var t;return((t=(0,n.getMindMapNodeMeta)(e.element))==null?void 0:t.parentNodeId)===c}),h=d.collapsed?this._countDescendants(l,c):0;this._activeNodeId=c,this._activeScopeId=d.structureScopeId;let g=(i=l[d.structureScopeId])==null?void 0:i.element,_=(0,n.getMindMapContainerMeta)(g),v=g==null||(a=g.custom)==null||(a=a.mindmap)==null||(a=a.layout)==null?void 0:a.structureKind,y=(_==null?void 0:_.layout.structureKind)??v,b=d.parentNodeId==null,x=this._resolveControlSide(d.side,b,y);this._ensureObject().updateState({controls:Ft({bounds:p,isRoot:b,side:x,rootChildSides:this._resolveRootChildControlSides(b,y),hasChildren:m.length>0,collapsedDescendantCount:h})}),this._renderContext.scene.makeDirty(!0)}_resolveControlSide(e,t,n){return n===`timeline-vertical`?!t&&(e===`left`||e===`right`)?e:`bottom`:n===`mindmap-vertical`?!t&&(e===`top`||e===`bottom`)?e:`bottom`:e===`left`?`left`:`right`}_resolveRootChildControlSides(e,t){if(e){if(Bt(t))return[`bottom`];if(t===`timeline-horizontal`)return[`right`];if(t===`timeline-vertical`)return[`bottom`]}}_resolveCreateChildSide(e){var t,r;let i=this._elementStateService.getSnapshot().context;if(!i||!this._activeNodeId)return;let a=this._boardElementService.getElementData(i.unitId,i.subUnitId),o=(0,n.getMindMapNodeMeta)((t=a[this._activeNodeId])==null?void 0:t.element),s=o?(0,n.getMindMapContainerMeta)((r=a[o.structureScopeId])==null?void 0:r.element):null;if((o==null?void 0:o.parentNodeId)!=null||!Bt(s==null?void 0:s.layout.structureKind)&&!Vt(s==null?void 0:s.layout.structureKind))return e===`add-child-left`?`left`:e===`add-child-top`?`top`:e===`add-child-bottom`?`bottom`:`right`}_resolveControlBounds(e,n,i,a){var o,s;let c=(0,r.getBoardElementRenderObjectKey)(n,i),l=a==null?void 0:a.get(c),u=this._toFiniteBounds(l);if(u)return u;let d=this._renderContext.scene,f=((o=d.getObjectIncludeInGroup)==null?void 0:o.call(d,c))??((s=d.getObject)==null?void 0:s.call(d,c));return this._toFiniteBounds(f)||(0,t.resolveBoardElementWorldBounds)(e,i)}_toFiniteBounds(e){return e&&Number.isFinite(e.left)&&Number.isFinite(e.top)&&Number.isFinite(e.width)&&Number.isFinite(e.height)?{left:e.left,top:e.top,width:e.width,height:e.height}:null}_countDescendants(e,t){return Object.values(e).filter(e=>{var r;return((r=(0,n.getMindMapNodeMeta)(e.element))==null?void 0:r.parentNodeId)===t}).reduce((t,n)=>t+1+this._countDescendants(e,n.elementId),0)}_handlePointerMove(e){if(!this._object)return;let t=this._stateService.getState(),n=Ht(e,{panOffset:t.viewportPanOffset,zoomRatio:t.zoomRatio});this._object.setHoveredControl(this._object.getHitControl(n,e.deviceType))}_handlePointerDown(e){if(!this._object||!this._activeNodeId||(e.button??0)!==0)return!1;let t=this._elementStateService.getSnapshot().context;if(!t)return!1;let r=this._stateService.getState(),i=Ht(e,{panOffset:r.viewportPanOffset,zoomRatio:r.zoomRatio}),o=this._object.getHitControl(i,e.deviceType);if(!o)return!1;if(o.kind===`toggle-collapse`)return this._executeAndLayout(n.ToggleMindMapNodeCollapseOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,nodeId:this._activeNodeId}),!0;if(o.kind===`add-child-left`||o.kind===`add-child-right`||o.kind===`add-child-top`||o.kind===`add-child-bottom`){let e=(0,a.generateRandomId)(6);return this._executeCreateAndEdit(n.AddMindMapChildOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,parentNodeId:this._activeNodeId,side:this._resolveCreateChildSide(o.kind),nodeId:e,connectorId:(0,a.generateRandomId)(6),text:this._localeService.t(`boards-mind-ui.panel.addText`)},e),!0}if(o.kind===`add-sibling-before`||o.kind===`add-sibling-after`){let e=(0,a.generateRandomId)(6);return this._executeCreateAndEdit(n.AddMindMapSiblingOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,nodeId:this._activeNodeId,placement:o.placement??(o.kind===`add-sibling-before`?`before`:`after`),siblingNodeId:e,connectorId:(0,a.generateRandomId)(6),text:this._localeService.t(`boards-mind-ui.panel.addText`)},e),!0}return!0}_isControlEvent(e){if(!this._object||(e.button??0)!==0)return!1;let t=this._stateService.getState(),n=Ht(e,{panOffset:t.viewportPanOffset,zoomRatio:t.zoomRatio});return!!this._object.getHitControl(n,e.deviceType)}_consumeControlEvent(e,t){var n,r;t.stopPropagation(),(n=e.preventDefault)==null||n.call(e),(r=e.stopPropagation)==null||r.call(e)}_executeAndLayout(e,t){let r=this._activeScopeId;this._undoRedoGroupService.run(t.unitId,()=>{this._commandService.syncExecuteCommand(e,t)&&r&&(this._commandService.syncExecuteCommand(n.LayoutMindMapOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,scopeId:r}),this._syncControls())})}_executeCreateAndEdit(e,t,n){let i={unitId:t.unitId,subUnitId:t.subUnitId},a=this._commandService.executeCommand(e,t);Promise.resolve(a).then(e=>{e&&(this._syncControls(),this._elementStateService.selectElements(i,[n],n),this._boardTextEditingService.ignoreExternalFocusChanges(),this._boardTextEditingService.setEditing({...i,shapeId:n,shapeKey:(0,r.getBoardElementRenderObjectKey)(i.unitId,n),visible:!0}))})}};Ut=C([S(1,(0,a.Inject)(t.IBoardElementService)),S(2,(0,a.Inject)(r.IBoardElementStateService)),S(3,(0,a.Inject)(r.IBoardUIStateService)),S(4,a.ICommandService),S(5,(0,a.Inject)(r.BoardTextEditingService)),S(6,(0,a.Inject)(a.LocaleService)),S(7,(0,a.Inject)(K)),S(8,(0,a.Inject)(c.UndoRedoGroupService))],Ut);let Wt=`FOCUSING_MIND_MAP_TEXT_EDITOR`,J=class extends a.RxDisposable{constructor(e,t){super(),this._commandService=e,this._shortcutService=t,this._init()}_init(){this.disposeWithMe(this._shortcutService.registerShortcut(this._createQuoteShortcut()))}_createQuoteShortcut(){return{id:l.SHAPE_TEXT_EDITOR_QUOTE_COMMAND_ID,binding:c.KeyCode.ENTER|c.MetaKeys.SHIFT,priority:1e3,preconditions:e=>e.getContextValue(`FOCUSING_MIND_MAP_TEXT_EDITOR`)&&this._commandService.hasCommand(l.SHAPE_TEXT_EDITOR_QUOTE_COMMAND_ID)}}};J=C([S(0,a.ICommandService),S(1,c.IShortcutService)],J);let Gt=[Ye,Xe,Wt],Kt=class extends a.RxDisposable{constructor(e,t,n,r,i){super(),this._renderContext=e,this._boardElementService=t,this._elementStateService=n,this._textEditingService=r,this._contextService=i,x(this,`_isActive`,!1),this.disposeWithMe((0,a.toDisposable)(this._renderContext.activated$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(e=>{this._isActive=e,this._syncContext()}))),this.disposeWithMe((0,a.toDisposable)(this._elementStateService.state$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(()=>{this._syncContext()}))),this.disposeWithMe((0,a.toDisposable)(this._textEditingService.editingParams$.pipe((0,s.takeUntil)(this.dispose$)).subscribe(()=>{this._syncContext()}))),this._syncContext()}_syncContext(){var e,t;let r=this._elementStateService.getSnapshot(),i=this._textEditingService.getEditing(),a=i!=null&&i.visible?i.shapeId:r.activeEditingId,o=r.focusedId??r.selectedIds[0],s=r.context??{unitId:this._renderContext.unitId,subUnitId:this._renderContext.unit.getActivePageId()},c=this._isActive&&!!o&&r.selectedIds.length===1&&!a&&!r.isTransforming,l=this._isActive?this._boardElementService.getElementData(s.unitId,s.subUnitId):{};this._contextService.setContextValue(Ye,c&&!!(0,n.getMindMapNodeMeta)((e=l[o])==null?void 0:e.element)),this._contextService.setContextValue(Xe,this._isActive&&r.selectedIds.length===0&&!r.focusedId&&!a&&!r.isTransforming),this._contextService.setContextValue(Wt,!!a&&!!(0,n.getMindMapNodeMeta)((t=l[a])==null?void 0:t.element))}dispose(){this._resetContext(),super.dispose()}_resetContext(){Gt.forEach(e=>this._contextService.setContextValue(e,!1))}};Kt=C([S(1,(0,a.Inject)(t.IBoardElementService)),S(2,(0,a.Inject)(r.IBoardElementStateService)),S(3,(0,a.Inject)(r.BoardTextEditingService)),S(4,a.IContextService)],Kt);var qt=class extends G{async _handlePointerDown(e,t,n){await this._insertMindMap(e,t,n)}};let Jt={id:`board.operation.mind-map.open-panel`,type:a.CommandType.OPERATION,handler:(e,t)=>!!(t!=null&&t.unitId)&&!!t.subUnitId&&!!t.scopeId},Y=`board.mind-map.panel`,Yt=[`structure`,`layout`,`importExport`];n.MIND_MAP_DEFAULT_LAYOUT.horizontalGap,n.MIND_MAP_DEFAULT_LAYOUT.siblingGap,n.MIND_MAP_DEFAULT_LAYOUT.branchGap;let Xt=[{labelKey:`boards-mind-ui.panel.spacing.parentGap`,key:`horizontalGap`,...n.MIND_MAP_LAYOUT_SPACING_LIMITS.horizontalGap},{labelKey:`boards-mind-ui.panel.spacing.siblingGap`,key:`siblingGap`,...n.MIND_MAP_LAYOUT_SPACING_LIMITS.siblingGap},{labelKey:`boards-mind-ui.panel.spacing.branchGap`,key:`branchGap`,...n.MIND_MAP_LAYOUT_SPACING_LIMITS.branchGap}],Zt=[{labelKey:`boards-mind-ui.panel.layout.right`,value:`right`},{labelKey:`boards-mind-ui.panel.layout.left`,value:`left`},{labelKey:`boards-mind-ui.panel.layout.both`,value:`both`}],Qt=[{labelKey:`boards-mind-ui.panel.structureKind.mindmapHorizontal`,value:`mindmap-horizontal`},{labelKey:`boards-mind-ui.panel.structureKind.mindmapVertical`,value:`mindmap-vertical`},{labelKey:`boards-mind-ui.panel.structureKind.treeRight`,value:`tree-right`},{labelKey:`boards-mind-ui.panel.structureKind.treeLeft`,value:`tree-left`},{labelKey:`boards-mind-ui.panel.structureKind.treeAlternate`,value:`tree-alternate`},{labelKey:`boards-mind-ui.panel.structureKind.timelineHorizontal`,value:`timeline-horizontal`},{labelKey:`boards-mind-ui.panel.structureKind.timelineVertical`,value:`timeline-vertical`}],$t=[{labelKey:`boards-mind-ui.panel.branchLineType.curve`,value:`curve`},{labelKey:`boards-mind-ui.panel.branchLineType.roundedOrthogonal`,value:`rounded-orthogonal`},{labelKey:`boards-mind-ui.panel.branchLineType.orthogonal`,value:`orthogonal`}];function en(e){let t=(e==null?void 0:e.structureKind)??n.MIND_MAP_DEFAULT_LAYOUT.structureKind;return{spacing:{horizontalGap:(e==null?void 0:e.horizontalGap)??n.MIND_MAP_DEFAULT_LAYOUT.horizontalGap,siblingGap:(e==null?void 0:e.siblingGap)??n.MIND_MAP_DEFAULT_LAYOUT.siblingGap,branchGap:(e==null?void 0:e.branchGap)??n.MIND_MAP_DEFAULT_LAYOUT.branchGap},direction:(e==null?void 0:e.direction)??n.MIND_MAP_DEFAULT_LAYOUT.direction,structureKind:t,branchLineType:(0,n.resolveMindMapBranchLineTypeForStructure)(t,e==null?void 0:e.branchLineType)}}async function tn(e,t){return await Promise.resolve(e.executeCommand(n.ChangeMindMapLayoutOperation.id,t))?(await Promise.resolve(e.executeCommand(n.LayoutMindMapOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,scopeId:t.scopeId})),!0):!1}async function nn(e,t){return await Promise.resolve(e.executeCommand(n.ChangeMindMapBranchLineTypeOperation.id,t))?(await Promise.resolve(e.executeCommand(n.LayoutMindMapOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,scopeId:t.scopeId})),!0):!1}async function rn(e,t){return await Promise.resolve(e.executeCommand(n.ChangeMindMapLayoutOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,scopeId:t.scopeId,...t.horizontalGap===void 0?{}:{horizontalGap:t.horizontalGap},...t.siblingGap===void 0?{}:{siblingGap:t.siblingGap},...t.branchGap===void 0?{}:{branchGap:t.branchGap}}))?(await Promise.resolve(e.executeCommand(n.LayoutMindMapOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,scopeId:t.scopeId})),!0):!1}async function an(e,t){return t.nodeId===t.targetNodeId||!await Promise.resolve(e.executeCommand(n.ReparentMindMapNodeOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,nodeId:t.nodeId,targetNodeId:t.targetNodeId,referenceNodeId:t.targetNodeId,placement:t.placement}))?!1:(await Promise.resolve(e.executeCommand(n.LayoutMindMapOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,scopeId:t.scopeId})),!0)}async function on(e,t){let r=t.text.trim();return!r||!await Promise.resolve(e.executeCommand(n.UpdateMindMapNodeOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,nodeId:t.nodeId,text:r}))?!1:(await Promise.resolve(e.executeCommand(n.LayoutMindMapOperation.id,{unitId:t.unitId,subUnitId:t.subUnitId,scopeId:t.scopeId})),!0)}async function sn(e){var t;let n=(t=globalThis.navigator)==null?void 0:t.clipboard;return n!=null&&n.writeText?(await n.writeText(e),!0):!1}async function cn(e,t,r=sn){let i=await Promise.resolve(e.executeCommand(n.ExportMindMapOpmlOperation.id,t));if(typeof i!=`string`||!i)return!1;try{return await r(i)!==!1}catch{return!1}}async function ln(e,t){return t.opml.trim()?(await e.executeCommand(n.ImportMindMapOpmlOperation.id,t)).success:!1}function un(e,t){let n=`shapeData`in e.element?e.element.shapeData.shapeText:void 0;return(n==null?void 0:n.text)||t}function dn(e,t,r=n.MIND_MAP_DEFAULT_NODE_TEXT){let i=Object.values(e).map(e=>{let r=(0,n.getMindMapNodeMeta)(e.element);return(r==null?void 0:r.structureScopeId)===t?{data:e,meta:r}:null}).filter(e=>!!e),a=/* @__PURE__ */ new Map;i.forEach(e=>{let t=e.meta.parentNodeId;a.set(t,[...a.get(t)??[],e])}),a.forEach(e=>{e.sort((e,t)=>(0,n.compareMindMapOrderKey)(e.meta.orderKey,t.meta.orderKey)||e.data.elementId.localeCompare(t.data.elementId))});let o=[],s=(e,t)=>{(a.get(e)??[]).forEach(e=>{o.push({nodeId:e.data.elementId,depth:t,text:un(e.data,r)}),s(e.data.elementId,t+1)})};return s(null,0),o}function fn(e,t){let n=t.trim().toLowerCase();return n?e.filter(e=>e.text.toLowerCase().includes(n)):e}function pn(e){return{paddingInlineStart:8+(Number.isFinite(e)&&e>0?e:0)*16}}function mn(e){return/* @__PURE__ */ (0,p.jsx)(d.Segmented,{className:`univer-w-full univer-text-xs`,...e})}function X(e){return/* @__PURE__ */ (0,p.jsxs)(`section`,{className:`univer-py-4`,"data-board-mind-map-panel-section":`true`,children:[/* @__PURE__ */ (0,p.jsx)(`h3`,{className:`univer-mb-3 univer-text-sm univer-font-semibold univer-text-gray-900 dark:!univer-text-gray-100`,children:e.title}),e.children]})}function hn(e,i=`structure`){var o,l,u;let d=(0,c.useDependency)(a.ICommandService),p=(0,c.useDependency)(r.IBoardElementStateService),m=(0,c.useDependency)(t.IBoardElementService),h=(0,c.useDependency)(a.LocaleService),[,g]=(0,f.useReducer)(e=>e+1,0);(0,f.useEffect)(()=>{let t=(0,s.merge)(m.elementAdd$,m.elementUpdate$,m.elementRemove$).subscribe(t=>{t.some(t=>t.unitId===e.unitId&&t.subUnitId===e.subUnitId)&&g()});return()=>t.unsubscribe()},[m,e.unitId,e.subUnitId]);let _=m.getElementData(e.unitId,e.subUnitId),v=dn(_,e.scopeId,h.t(`boards-mind-ui.panel.addText`)),y=(o=(0,n.getMindMapContainerMeta)((l=_[e.scopeId])==null?void 0:l.element))==null?void 0:o.layout,[b,x]=(0,f.useState)(``),[S,C]=(0,f.useState)(null),[w,T]=(0,f.useState)(``),{spacing:E,direction:D,structureKind:O,branchLineType:k}=en(y),[A,j]=(0,f.useState)(null),[M,N]=(0,f.useState)(i),P=fn(v,b),F={unitId:e.unitId,subUnitId:e.subUnitId,scopeId:e.scopeId};return{commandService:d,elementStateService:p,localeService:h,query:b,setQuery:x,editingOutlineNode:S,setEditingOutlineNode:C,opmlText:w,setOpmlText:T,spacing:E,layoutDirection:D,structureKind:O,branchLineType:k,setDraggedOutlineNodeId:j,activeTab:M,setActiveTab:N,visibleOutlineItems:P,baseParams:F,tabItems:Yt.map(e=>({label:h.t(`boards-mind-ui.panel.tab.${e}`),value:e})),selectedNode:e.nodeId?(u=_[e.nodeId])==null?void 0:u.element:void 0,branchLineItems:$t.filter(e=>e.value!==`curve`||(0,n.isMindMapPlainStructureKind)(O)),changeLayout:e=>tn(d,{...F,direction:e}),changeStructureKind:e=>{let t=(0,n.resolveMindMapBranchLineTypeForStructure)(e,k);return tn(d,{...F,structureKind:e,...t===k?null:{branchLineType:t}})},changeBranchLineType:e=>{let t=(0,n.resolveMindMapBranchLineTypeForStructure)(O,e);return nn(d,{...F,branchLineType:t})},changeSpacing:(e,t)=>{let n={...E,[e]:t};return rn(d,{...F,...n})},importOpml:()=>{ln(d,{unitId:e.unitId,subUnitId:e.subUnitId,left:120,top:120,opml:w}).then(e=>{e&&T(``)})},exportOpml:()=>cn(d,F),startRenameNode:(e,t)=>{C({nodeId:e,text:t})},commitRenameNode:()=>{S&&on(d,{...F,nodeId:S.nodeId,text:S.text}).then(e=>{e&&C(null)})},reorderNode:(e,t)=>{if(e.preventDefault(),!A||A===t)return;let n=e.currentTarget.getBoundingClientRect(),r=e.clientY<n.top+n.height/2?`before`:`after`;j(null),an(d,{...F,nodeId:A,targetNodeId:t,placement:r})}}}function gn(e){let{elementStateService:t,localeService:n,query:r,setQuery:i,editingOutlineNode:a,setEditingOutlineNode:o,opmlText:s,setOpmlText:c,spacing:l,layoutDirection:u,structureKind:f,branchLineType:m,setDraggedOutlineNodeId:h,activeTab:g,setActiveTab:_,visibleOutlineItems:v,tabItems:y,branchLineItems:b,changeLayout:x,changeStructureKind:S,changeBranchLineType:C,changeSpacing:w,importOpml:T,exportOpml:E,startRenameNode:D,commitRenameNode:O,reorderNode:k}=hn(e);return/* @__PURE__ */ (0,p.jsxs)(`div`,{className:`univer-size-full univer-bg-gray-0 univer-text-sm univer-text-gray-700 dark:!univer-bg-gray-900 dark:!univer-text-gray-200`,"data-board-mind-map-panel":`true`,children:[/* @__PURE__ */ (0,p.jsx)(`div`,{className:`univer-py-3`,"data-board-mind-map-panel-tabs":`true`,children:/* @__PURE__ */ (0,p.jsx)(mn,{items:y,value:g,onChange:e=>_(e)})}),g===`structure`&&/* @__PURE__ */ (0,p.jsx)(X,{title:n.t(`boards-mind-ui.panel.tab.structure`),children:/* @__PURE__ */ (0,p.jsxs)(`div`,{children:[/* @__PURE__ */ (0,p.jsx)(d.Input,{slot:/* @__PURE__ */ (0,p.jsx)(Le,{}),value:r,placeholder:n.t(`boards-mind-ui.panel.searchNodes`),className:(0,d.clsx)(`univer-mb-3 univer-w-full`,!1),onChange:i}),v.length?/* @__PURE__ */ (0,p.jsx)(`ol`,{className:`univer-space-y-1`,children:v.map(r=>/* @__PURE__ */ (0,p.jsx)(`li`,{draggable:!0,className:`univer-flex univer-items-center univer-gap-1 univer-truncate univer-rounded univer-py-1 univer-text-left univer-text-gray-800`,style:pn(r.depth),onDragStart:e=>{var t;h(r.nodeId),(t=e.dataTransfer)==null||t.setData(`text/plain`,r.nodeId),e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`)},onDragOver:e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`)},onDrop:e=>k(e,r.nodeId),onDragEnd:()=>h(null),children:(a==null?void 0:a.nodeId)===r.nodeId?/* @__PURE__ */ (0,p.jsxs)(`div`,{className:(0,d.clsx)(`univer-flex univer-min-w-0 univer-flex-1 univer-gap-2`,`univer-items-center`),children:[/* @__PURE__ */ (0,p.jsx)(d.Input,{autoFocus:!0,size:`small`,className:void 0,value:a.text,onChange:e=>o({nodeId:r.nodeId,text:e}),onKeyDown:e=>{e.key===`Enter`&&O(),e.key===`Escape`&&o(null)}}),/* @__PURE__ */ (0,p.jsx)(d.Button,{className:void 0,size:`small`,variant:`primary`,disabled:!a.text.trim(),onClick:O,children:n.t(`boards-mind-ui.panel.rename`)}),/* @__PURE__ */ (0,p.jsx)(d.Button,{className:void 0,size:`small`,variant:`default`,onClick:()=>o(null),children:n.t(`boards-mind-ui.panel.cancel`)})]}):/* @__PURE__ */ (0,p.jsxs)(p.Fragment,{children:[/* @__PURE__ */ (0,p.jsx)(d.Button,{size:`small`,variant:`ghost`,className:(0,d.clsx)(`univer-min-w-0 univer-flex-1 univer-justify-start univer-truncate univer-text-left`,!1),onClick:()=>t.selectElements({unitId:e.unitId,subUnitId:e.subUnitId},[r.nodeId],r.nodeId),children:r.text}),/* @__PURE__ */ (0,p.jsx)(d.Button,{className:(0,d.clsx)(`univer-text-gray-500`,`univer-text-xs`),size:`small`,variant:`default`,onClick:()=>D(r.nodeId,r.text),children:n.t(`boards-mind-ui.panel.rename`)})]})},r.nodeId))}):/* @__PURE__ */ (0,p.jsx)(`div`,{className:`univer-text-xs univer-text-gray-400 dark:!univer-text-gray-500`,"data-board-mind-map-panel-empty-state":`true`,children:n.t(`boards-mind-ui.panel.emptyNodes`)})]})}),g===`layout`&&/* @__PURE__ */ (0,p.jsx)(X,{title:n.t(`boards-mind-ui.panel.tab.layout`),children:/* @__PURE__ */ (0,p.jsxs)(`div`,{className:`univer-space-y-3`,children:[/* @__PURE__ */ (0,p.jsx)(`div`,{className:`univer-flex univer-gap-2`,children:/* @__PURE__ */ (0,p.jsx)(d.Select,{className:`univer-w-full univer-min-w-0`,"aria-label":n.t(`boards-mind-ui.panel.tab.layout`),options:Qt.map(e=>({label:n.t(e.labelKey),value:e.value})),value:f,onChange:e=>S(e)})}),/* @__PURE__ */ (0,p.jsx)(`div`,{className:`univer-flex univer-gap-2`,children:/* @__PURE__ */ (0,p.jsx)(mn,{items:Zt.map(e=>({label:n.t(e.labelKey),value:e.value})),value:u,onChange:e=>x(e)})}),/* @__PURE__ */ (0,p.jsx)(`div`,{className:`univer-flex univer-gap-2`,children:/* @__PURE__ */ (0,p.jsx)(mn,{items:b.map(e=>({label:n.t(e.labelKey),value:e.value})),value:m,onChange:e=>C(e)})}),/* @__PURE__ */ (0,p.jsx)(`div`,{className:`univer-space-y-2`,children:Xt.map(({labelKey:e,key:t,min:r,max:i})=>/* @__PURE__ */ (0,p.jsxs)(`label`,{className:`univer-flex univer-items-center univer-gap-2 univer-text-xs univer-text-gray-600`,children:[/* @__PURE__ */ (0,p.jsx)(`span`,{className:`univer-w-20 univer-shrink-0`,children:n.t(e)}),/* @__PURE__ */ (0,p.jsx)(d.InputNumber,{controls:!0,inputClassName:void 0,min:r,max:i,step:4,value:l[t],precision:0,className:`univer-w-24`,onChange:e=>w(t,Number(e??r))})]},t))})]})}),g===`importExport`&&/* @__PURE__ */ (0,p.jsx)(X,{title:n.t(`boards-mind-ui.panel.tab.importExport`),children:/* @__PURE__ */ (0,p.jsxs)(`div`,{className:`univer-flex univer-flex-col univer-gap-2`,children:[/* @__PURE__ */ (0,p.jsx)(d.Textarea,{className:(0,d.clsx)(`univer-h-28 univer-resize-none`,`univer-text-xs`),placeholder:n.t(`boards-mind-ui.panel.pasteOPML`),value:s,onValueChange:c}),/* @__PURE__ */ (0,p.jsxs)(`div`,{className:`univer-flex univer-gap-2`,children:[/* @__PURE__ */ (0,p.jsx)(d.Button,{className:void 0,size:`small`,variant:`primary`,disabled:!s.trim(),onClick:T,children:n.t(`boards-mind-ui.panel.importOPML`)}),/* @__PURE__ */ (0,p.jsx)(d.Button,{className:void 0,size:`small`,variant:`default`,onClick:E,children:n.t(`boards-mind-ui.panel.exportOPML`)})]})]})})]})}let _n=class extends a.Disposable{constructor(e,t,n){super(),this._commandService=e,this._localeService=t,this._sidebarService=n,x(this,`_sidebarDisposable`,null),this.disposeWithMe(this._commandService.registerCommand(Jt)),this.disposeWithMe(this._commandService.onCommandExecuted(e=>{if(e.id!==Jt.id)return;let t=e.params;t&&`unitId`in t&&typeof t.unitId==`string`&&`subUnitId`in t&&typeof t.subUnitId==`string`&&`scopeId`in t&&typeof t.scopeId==`string`&&this.open({unitId:t.unitId,subUnitId:t.subUnitId,scopeId:t.scopeId,nodeId:`nodeId`in t&&typeof t.nodeId==`string`?t.nodeId:void 0})}))}dispose(){var e;(e=this._sidebarDisposable)==null||e.dispose(),this._sidebarDisposable=null,super.dispose()}open(e){var t;let n={label:Y,...e},r={id:Y,layout:`canvas`,header:{title:this._localeService.t(`boards-mind-ui.panel.title`)},width:388,children:n,onClose:()=>{this._sidebarDisposable=null}};(t=this._sidebarDisposable)==null||t.dispose(),this._sidebarDisposable=this._sidebarService.open(r)}};_n=C([S(0,a.ICommandService),S(1,(0,a.Inject)(a.LocaleService)),S(2,(0,a.Inject)(c.ISidebarService))],_n);function vn(e){let t=(0,c.useDependency)(a.ICommandService),n=e.popup.extraProps;return n?/* @__PURE__ */ (0,p.jsx)(l.MobileShapeMenu,{shapeRef:{hostType:a.UniverInstanceType.UNIVER_BOARD,unitId:n.unitId,subUnitId:n.subUnitId,shapeId:n.elementId},onText:()=>ct(t,`edit-text`),onStyle:()=>t.executeCommand(Jt.id,{unitId:n.unitId,subUnitId:n.subUnitId,scopeId:n.scopeId,nodeId:n.elementId}),onDelete:()=>ct(t,`delete`)}):null}function yn(e){var t,r,i,o,s;let m=(0,c.useDependency)(a.ICommandService),h=(0,c.useDependency)(a.LocaleService),g=(0,c.useDependency)(c.IFontService),_=(0,c.useObservable)(g.fonts$,g.getFonts()),[v,y]=(0,f.useState)(null),b=(0,l.getTextStyle)(e.shapeData),x=b.ff??u.ShapeDefaultConfig.shapeText.fontFamily,S=b.fs??u.ShapeDefaultConfig.shapeText.fontSize;function C(t){return m.executeCommand(n.UpdateMindMapNodeOperation.id,{unitId:e.unitId,subUnitId:e.subUnitId,nodeId:e.nodeId,...t})}let w=[{key:`fill`,value:((t=e.shapeData.fill)==null?void 0:t.color)??u.ShapeDefaultConfig.fill},{key:`stroke`,value:((r=e.shapeData.stroke)==null?void 0:r.color)??u.ShapeDefaultConfig.stroke},{key:`fontColor`,value:((i=b.cl)==null?void 0:i.rgb)??u.ShapeDefaultConfig.shapeText.color}];if(v){var T;return/* @__PURE__ */ (0,p.jsxs)(`div`,{className:`univer-flex univer-flex-col univer-gap-4 univer-py-4`,children:[/* @__PURE__ */ (0,p.jsx)(d.Button,{className:`univer-w-full`,onClick:()=>y(null),size:`middle`,children:h.t(`boards-mind-ui.panel.cancel`)}),v===`fontFamily`?_==null?void 0:_.map(e=>/* @__PURE__ */ (0,p.jsx)(d.Button,{className:`univer-w-full`,"aria-pressed":x===e.value,variant:x===e.value?`primary`:`default`,onClick:async()=>{await C({textStyle:{fontFamily:e.value}}),y(null)},size:`middle`,children:e.label},e.value)):/* @__PURE__ */ (0,p.jsx)(d.MobileColorPresets,{value:(T=w.find(({key:e})=>e===v))==null?void 0:T.value,onSelect:async e=>{v===`fill`?await C({fillColor:e}):v===`stroke`?await C({strokeColor:e}):await C({textStyle:{color:e}}),y(null)}})]})}let E=[{key:`bold`,active:b.bl===a.BooleanNumber.TRUE,icon:/* @__PURE__ */ (0,p.jsx)(Te,{})},{key:`italic`,active:b.it===a.BooleanNumber.TRUE,icon:/* @__PURE__ */ (0,p.jsx)(ke,{})},{key:`underline`,active:((o=b.ul)==null?void 0:o.s)===a.BooleanNumber.TRUE,icon:/* @__PURE__ */ (0,p.jsx)(Ue,{})},{key:`strikethrough`,active:((s=b.st)==null?void 0:s.s)===a.BooleanNumber.TRUE,icon:/* @__PURE__ */ (0,p.jsx)(Ve,{})}];return/* @__PURE__ */ (0,p.jsxs)(`div`,{className:`univer-flex univer-flex-col univer-gap-4 univer-py-4`,children:[/* @__PURE__ */ (0,p.jsx)(`div`,{className:`univer-grid univer-grid-cols-4 univer-gap-2`,children:E.map(({key:e,active:t,icon:n})=>/* @__PURE__ */ (0,p.jsx)(d.Button,{"aria-label":h.t(`boards-mind-ui.panel.nodeStyle.${e}`),"aria-pressed":t,variant:t?`primary`:`default`,onClick:()=>C({textStyle:{[e]:!t}}),size:`middle`,children:n},e))}),/* @__PURE__ */ (0,p.jsxs)(d.Button,{className:`univer-w-full univer-justify-between`,onClick:()=>y(`fontFamily`),size:`middle`,children:[/* @__PURE__ */ (0,p.jsx)(`span`,{children:h.t(`boards-mind-ui.panel.nodeStyle.fontFamily`)}),/* @__PURE__ */ (0,p.jsx)(`span`,{children:x})]}),/* @__PURE__ */ (0,p.jsxs)(`label`,{className:`univer-flex univer-items-center univer-justify-between univer-gap-4`,children:[/* @__PURE__ */ (0,p.jsx)(`span`,{children:h.t(`boards-mind-ui.panel.nodeStyle.fontSize`)}),/* @__PURE__ */ (0,p.jsx)(d.InputNumber,{className:`univer-w-32`,controls:!1,min:1,value:S,onChange:e=>{if(e!=null)return C({textStyle:{fontSize:e}})},size:`small`})]}),w.map(({key:e,value:t})=>/* @__PURE__ */ (0,p.jsxs)(d.Button,{className:`univer-w-full univer-justify-between`,onClick:()=>y(e),size:`middle`,children:[/* @__PURE__ */ (0,p.jsx)(`span`,{children:h.t(`boards-mind-ui.toolbar.action.${e}`)}),/* @__PURE__ */ (0,p.jsx)(`span`,{className:`univer-size-6 univer-rounded univer-border univer-border-solid univer-border-gray-200`,style:{backgroundColor:t}})]},e))]})}function bn(e){return/* @__PURE__ */ (0,p.jsx)(`div`,{className:(0,d.clsx)(`univer-grid univer-w-full univer-gap-2`,e.items.length===4?`univer-grid-cols-[repeat(4,minmax(min-content,1fr))] max-[359px]:univer-grid-cols-2`:`univer-grid-cols-3`),children:e.items.map(t=>/* @__PURE__ */ (0,p.jsx)(d.Button,{className:`univer-min-w-0 univer-whitespace-normal univer-px-2`,variant:e.value===t.value?`primary`:`default`,"aria-pressed":e.value===t.value,onClick:()=>e.onChange(t.value),size:`middle`,children:/* @__PURE__ */ (0,p.jsx)(`span`,{className:`univer-min-w-0 univer-break-words`,children:t.label})},t.value))})}function xn(e){let{commandService:r,elementStateService:i,localeService:a,query:o,setQuery:s,editingOutlineNode:c,setEditingOutlineNode:l,opmlText:u,setOpmlText:f,spacing:m,layoutDirection:h,structureKind:g,branchLineType:_,activeTab:v,setActiveTab:y,visibleOutlineItems:b,baseParams:x,tabItems:S,selectedNode:C,branchLineItems:w,changeLayout:T,changeStructureKind:E,changeBranchLineType:D,changeSpacing:O,importOpml:k,startRenameNode:A,commitRenameNode:j}=hn(e,e.nodeId?`style`:`structure`);return(C==null?void 0:C.type)===t.BoardElementType.Shape&&S.unshift({label:a.t(`boards-mind-ui.panel.nodeStyle.style`),value:`style`}),/* @__PURE__ */ (0,p.jsxs)(`div`,{className:`univer-size-full univer-bg-gray-0 univer-text-sm univer-text-gray-700 dark:!univer-bg-gray-900 dark:!univer-text-gray-200`,"data-board-mind-map-panel":`true`,children:[/* @__PURE__ */ (0,p.jsx)(`div`,{className:`univer-py-3`,"data-board-mind-map-panel-tabs":`true`,children:/* @__PURE__ */ (0,p.jsx)(d.Segmented,{className:`univer-w-full [&_button]:univer-whitespace-normal [&_button]:univer-break-words [&_button]:univer-px-1`,items:S,value:v,onChange:e=>y(e)})}),v===`style`&&(C==null?void 0:C.type)===t.BoardElementType.Shape&&/* @__PURE__ */ (0,p.jsx)(yn,{unitId:e.unitId,subUnitId:e.subUnitId,nodeId:C.id,shapeData:C.shapeData}),v===`structure`&&/* @__PURE__ */ (0,p.jsx)(X,{title:a.t(`boards-mind-ui.panel.tab.structure`),children:/* @__PURE__ */ (0,p.jsxs)(`div`,{children:[/* @__PURE__ */ (0,p.jsx)(d.Input,{slot:/* @__PURE__ */ (0,p.jsx)(Le,{}),value:o,placeholder:a.t(`boards-mind-ui.panel.searchNodes`),className:(0,d.clsx)(`univer-mb-3 univer-w-full`,``),onChange:s,size:`small`}),b.length?/* @__PURE__ */ (0,p.jsx)(`ol`,{className:`univer-space-y-1`,children:b.map(t=>/* @__PURE__ */ (0,p.jsx)(`li`,{className:`univer-flex univer-items-center univer-gap-1 univer-truncate univer-rounded univer-py-1 univer-text-left univer-text-gray-800`,style:pn(t.depth),children:(c==null?void 0:c.nodeId)===t.nodeId?/* @__PURE__ */ (0,p.jsxs)(`div`,{className:(0,d.clsx)(`univer-flex univer-min-w-0 univer-flex-1 univer-gap-2`,`univer-flex-wrap`),children:[/* @__PURE__ */ (0,p.jsx)(d.Input,{autoFocus:!1,size:`small`,className:`univer-w-full`,value:c.text,onChange:e=>l({nodeId:t.nodeId,text:e}),onKeyDown:e=>{e.key===`Enter`&&j(),e.key===`Escape`&&l(null)}}),/* @__PURE__ */ (0,p.jsx)(d.Button,{className:`univer-flex-1`,size:`middle`,variant:`primary`,disabled:!c.text.trim(),onClick:j,children:a.t(`boards-mind-ui.panel.rename`)}),/* @__PURE__ */ (0,p.jsx)(d.Button,{className:`univer-flex-1`,size:`middle`,variant:`default`,onClick:()=>l(null),children:a.t(`boards-mind-ui.panel.cancel`)})]}):/* @__PURE__ */ (0,p.jsxs)(p.Fragment,{children:[/* @__PURE__ */ (0,p.jsx)(d.Button,{size:`middle`,variant:`ghost`,className:(0,d.clsx)(`univer-min-w-0 univer-flex-1 univer-justify-start univer-truncate univer-text-left`,``),onClick:()=>i.selectElements({unitId:e.unitId,subUnitId:e.subUnitId},[t.nodeId],t.nodeId),children:t.text}),/* @__PURE__ */ (0,p.jsx)(d.Button,{className:(0,d.clsx)(`univer-text-gray-500`,`univer-px-3`),size:`middle`,variant:`default`,onClick:()=>A(t.nodeId,t.text),children:a.t(`boards-mind-ui.panel.rename`)})]})},t.nodeId))}):/* @__PURE__ */ (0,p.jsx)(`div`,{className:`univer-text-xs univer-text-gray-400 dark:!univer-text-gray-500`,"data-board-mind-map-panel-empty-state":`true`,children:a.t(`boards-mind-ui.panel.emptyNodes`)})]})}),v===`layout`&&/* @__PURE__ */ (0,p.jsx)(X,{title:a.t(`boards-mind-ui.panel.tab.layout`),children:/* @__PURE__ */ (0,p.jsxs)(`div`,{className:`univer-space-y-3`,children:[/* @__PURE__ */ (0,p.jsx)(`div`,{className:`univer-flex univer-gap-2`,children:/* @__PURE__ */ (0,p.jsx)(bn,{items:Qt.map(e=>({label:a.t(e.labelKey),value:e.value})),value:g,onChange:e=>E(e)})}),/* @__PURE__ */ (0,p.jsx)(`div`,{className:`univer-flex univer-gap-2`,children:/* @__PURE__ */ (0,p.jsx)(bn,{items:Zt.map(e=>({label:a.t(e.labelKey),value:e.value})),value:h,onChange:e=>T(e)})}),/* @__PURE__ */ (0,p.jsx)(`div`,{className:`univer-flex univer-gap-2`,children:/* @__PURE__ */ (0,p.jsx)(bn,{items:w.map(e=>({label:a.t(e.labelKey),value:e.value})),value:_,onChange:e=>D(e)})}),/* @__PURE__ */ (0,p.jsx)(`div`,{className:`univer-space-y-2`,children:Xt.map(({labelKey:e,key:t,min:n,max:r})=>/* @__PURE__ */ (0,p.jsxs)(`label`,{className:`univer-flex univer-items-center univer-gap-2 univer-text-xs univer-text-gray-600`,children:[/* @__PURE__ */ (0,p.jsx)(`span`,{className:`univer-flex-1 univer-text-sm`,children:a.t(e)}),/* @__PURE__ */ (0,p.jsx)(d.InputNumber,{controls:!1,min:n,max:r,step:4,value:m[t],precision:0,className:`univer-w-32`,onChange:e=>O(t,Number(e??n)),size:`small`})]},t))})]})}),v===`importExport`&&/* @__PURE__ */ (0,p.jsx)(X,{title:a.t(`boards-mind-ui.panel.tab.importExport`),children:/* @__PURE__ */ (0,p.jsxs)(`div`,{className:`univer-flex univer-flex-col univer-gap-2`,children:[/* @__PURE__ */ (0,p.jsx)(d.Textarea,{className:(0,d.clsx)(`univer-h-28 univer-resize-none`,``),placeholder:a.t(`boards-mind-ui.panel.pasteOPML`),value:u,onValueChange:f,size:`small`}),/* @__PURE__ */ (0,p.jsxs)(`div`,{className:`univer-flex univer-gap-2`,children:[/* @__PURE__ */ (0,p.jsx)(d.Button,{className:`univer-flex-1`,size:`middle`,variant:`primary`,disabled:!u.trim(),onClick:k,children:a.t(`boards-mind-ui.panel.importOPML`)}),/* @__PURE__ */ (0,p.jsx)(d.Button,{className:`univer-flex-1`,size:`middle`,variant:`default`,onClick:async()=>{let e=await r.executeCommand(n.ExportMindMapOpmlOperation.id,x);e!==!1&&f(e)},children:a.t(`boards-mind-ui.panel.exportOPML`)})]})]})})]})}let Sn=class extends a.Disposable{constructor(e){super(),this._componentManager=e,this._registerComponents()}_registerComponents(){this.disposeWithMe(this._componentManager.register(Ke,Je)),this.disposeWithMe(this._componentManager.register(st,vn)),this.disposeWithMe(this._componentManager.register(Y,xn))}};Sn=C([S(0,(0,a.Inject)(c.ComponentManager))],Sn);let Cn=class extends a.Disposable{constructor(e,t,n){super(),this._commandService=e,this._localeService=t,this._sidebarService=n,x(this,`_sidebarDisposable`,null),this.disposeWithMe(this._commandService.registerCommand(Jt)),this.disposeWithMe(this._commandService.onCommandExecuted(e=>{if(e.id!==Jt.id)return;let t=e.params;t&&`unitId`in t&&typeof t.unitId==`string`&&`subUnitId`in t&&typeof t.subUnitId==`string`&&`scopeId`in t&&typeof t.scopeId==`string`&&this.open({unitId:t.unitId,subUnitId:t.subUnitId,scopeId:t.scopeId,nodeId:`nodeId`in t&&typeof t.nodeId==`string`?t.nodeId:void 0})}))}dispose(){var e;(e=this._sidebarDisposable)==null||e.dispose(),this._sidebarDisposable=null,super.dispose()}open(e){var t;let n={label:Y,...e};(t=this._sidebarDisposable)==null||t.dispose(),this._sidebarDisposable=this._sidebarService.open({id:Y,header:{title:this._localeService.t(`boards-mind-ui.panel.title`)},width:388,children:n,onClose:()=>{this._sidebarDisposable=null}})}};Cn=C([S(0,a.ICommandService),S(1,(0,a.Inject)(a.LocaleService)),S(2,(0,a.Inject)(c.ISidebarService))],Cn);let wn=class extends a.Disposable{constructor(e){super(),this._componentManager=e,this._registerComponents()}_registerComponents(){this.disposeWithMe(this._componentManager.register(Ke,Je)),this.disposeWithMe(this._componentManager.register(st,St)),this.disposeWithMe(this._componentManager.register(Y,gn))}};wn=C([S(0,(0,a.Inject)(c.ComponentManager))],wn);let Z=class{constructor(e,t,n){this._stateService=e,this._insertStateService=t,this._renderManagerService=n}beginMindMapMode(e){var n,i;let a=(n=this._renderManagerService.getRenderUnitById(e.unitId))==null||(i=n.getInjector)==null?void 0:i.call(n),o=(a==null?void 0:a.get(r.IBoardUIStateService))??this._stateService;return((a==null?void 0:a.get(W))??this._insertStateService).setTemplate({rootText:e.rootText,structureKind:e.structureKind,branchLineType:e.branchLineType,children:e.children,blueprint:e.blueprint}),o.setShapeSidebarOpen(!1),o.clearPendingInsert(),o.setActiveTool(t.BoardToolType.MindMap),o.setPendingInsert({type:t.BoardToolType.MindMap}),!0}};Z=C([S(0,r.IBoardUIStateService),S(1,(0,a.Inject)(W)),S(2,o.IRenderManagerService)],Z);let Tn=`UNIVER_BOARDS_MIND_UI_PLUGIN`,En=[z],Dn=[Kt],Q=class extends a.Plugin{constructor(e=_,t,n,r){super(),this._config=e,this._injector=t,this._configService=n,this._renderManagerService=r;let{...i}=(0,a.merge)({},_,this._config);this._configService.setConfig(g,i)}onStarting(){r.UniverBoardsUIPlugin.registerRuntimeScopedDependencies(this._injector,[[W],[K]]),this._getDependencies().forEach(e=>this._injector.add(e));let e=this._injector.get(Z),n=this._injector.get(t.IBoardMindMapAdapterService);this.disposeWithMe(n.registerAdapter(e)),this.disposeWithMe(this._injector.get(V)),this.disposeWithMe(this._injector.get(J)),this.disposeWithMe(this._injector.get(Cn)),this.disposeWithMe(this._injector.get(wn)),this._enableMindMapToolbarTool()}_getDependencies(){return[[W],[K],[Z],[V],[J],[Cn],[wn]]}_getRenderModules(){return[En,Dn,[G],[Ut],[wt],[de],[w],[Pt]]}onReady(){this._getRenderModules().forEach(e=>{this.disposeWithMe(this._renderManagerService.registerRenderModule(a.UniverInstanceType.UNIVER_BOARD,e))})}_enableMindMapToolbarTool(){var e,n;let i=this._getBoardsUIConfig();this._configService.setConfig(r.BOARDS_UI_PLUGIN_CONFIG_KEY,{...i,toolbar:{...i.toolbar,tools:{...(e=i.toolbar)==null?void 0:e.tools,[t.BoardToolType.MindMap]:On((n=i.toolbar)==null||(n=n.tools)==null?void 0:n[t.BoardToolType.MindMap])}}})}_getBoardsUIConfig(){return this._configService.getConfig(r.BOARDS_UI_PLUGIN_CONFIG_KEY)??{}}};x(Q,`pluginName`,Tn),x(Q,`packageName`,m),x(Q,`version`,h),x(Q,`type`,a.UniverInstanceType.UNIVER_BOARD),Q=C([(0,a.DependentOn)(i.UniverLicensePlugin,o.UniverRenderEnginePlugin,t.UniverBoardsPlugin,n.UniverBoardsMindPlugin,r.UniverBoardsUIPlugin),S(1,(0,a.Inject)(a.Injector)),S(2,a.IConfigService),S(3,o.IRenderManagerService)],Q);function On(e){return e===!1?!1:typeof e!=`object`||{...e,enabled:e.enabled??!0}}let $=class extends a.Plugin{constructor(e=_,t,n,r){super(),this._config=e,this._injector=t,this._configService=n,this._renderManagerService=r;let{...i}=(0,a.merge)({},_,this._config);this._configService.setConfig(g,i)}onStarting(){let e=[[W],[K]];r.UniverBoardsMobileUIPlugin.registerRuntimeScopedDependencies(this._injector,e),[...e,[Z],[V],[J],[_n],[Sn]].forEach(e=>this._injector.add(e)),this.disposeWithMe(this._injector.get(t.IBoardMindMapAdapterService).registerAdapter(this._injector.get(Z))),this.disposeWithMe(this._injector.get(V)),this.disposeWithMe(this._injector.get(J)),this.disposeWithMe(this._injector.get(_n)),this.disposeWithMe(this._injector.get(Sn)),this._enableMindMapToolbarTool()}onReady(){[[z],[Kt],[G,{useClass:qt}],[Ut],[wt],[de],[w],[Pt]].forEach(e=>{this.disposeWithMe(this._renderManagerService.registerRenderModule(a.UniverInstanceType.UNIVER_BOARD,e))})}_enableMindMapToolbarTool(){var e,n;let i=this._getBoardsUIConfig();this._configService.setConfig(r.BOARDS_UI_PLUGIN_CONFIG_KEY,{...i,toolbar:{...i.toolbar,tools:{...(e=i.toolbar)==null?void 0:e.tools,[t.BoardToolType.MindMap]:kn((n=i.toolbar)==null||(n=n.tools)==null?void 0:n[t.BoardToolType.MindMap])}}})}_getBoardsUIConfig(){return this._configService.getConfig(r.BOARDS_UI_PLUGIN_CONFIG_KEY)??{}}};x($,`pluginName`,Tn),x($,`packageName`,m),x($,`version`,h),x($,`type`,a.UniverInstanceType.UNIVER_BOARD),$=C([(0,a.DependentOn)(i.UniverLicensePlugin,o.UniverRenderEnginePlugin,t.UniverBoardsPlugin,n.UniverBoardsMindPlugin,r.UniverBoardsMobileUIPlugin),S(1,(0,a.Inject)(a.Injector)),S(2,a.IConfigService),S(3,o.IRenderManagerService)],$);function kn(e){return e===!1?!1:typeof e!=`object`||{...e,enabled:e.enabled??!0}}Object.defineProperty(e,"UniverBoardsMindMobileUIPlugin",{enumerable:!0,get:function(){return $}}),Object.defineProperty(e,"UniverBoardsMindUIPlugin",{enumerable:!0,get:function(){return Q}})});