@univerjs-pro/sheets-shape-ui 1.0.0-alpha.6 → 1.0.0-alpha.8

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 (88) 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/types/const.d.ts +1 -1
  62. package/lib/types/controllers/sheet-shape-render.controller.d.ts +7 -1
  63. package/lib/types/controllers/ui.controller.d.ts +1 -98
  64. package/lib/types/locale/en-US.d.ts +2 -10
  65. package/lib/types/menu/shape-context-menu.d.ts +7 -0
  66. package/lib/types/view-model/drawing-shape.d.ts +7 -0
  67. package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbar.d.ts +1 -1
  68. package/lib/umd/index.js +1 -1
  69. package/lib/umd/locale/ar-SA.js +1 -1
  70. package/lib/umd/locale/ca-ES.js +1 -1
  71. package/lib/umd/locale/de-DE.js +1 -1
  72. package/lib/umd/locale/en-US.js +1 -1
  73. package/lib/umd/locale/es-ES.js +1 -1
  74. package/lib/umd/locale/fa-IR.js +1 -1
  75. package/lib/umd/locale/fr-FR.js +1 -1
  76. package/lib/umd/locale/id-ID.js +1 -1
  77. package/lib/umd/locale/it-IT.js +1 -1
  78. package/lib/umd/locale/ja-JP.js +1 -1
  79. package/lib/umd/locale/ko-KR.js +1 -1
  80. package/lib/umd/locale/pl-PL.js +1 -1
  81. package/lib/umd/locale/pt-BR.js +1 -1
  82. package/lib/umd/locale/ru-RU.js +1 -1
  83. package/lib/umd/locale/sk-SK.js +1 -1
  84. package/lib/umd/locale/vi-VN.js +1 -1
  85. package/lib/umd/locale/zh-CN.js +1 -1
  86. package/lib/umd/locale/zh-HK.js +1 -1
  87. package/lib/umd/locale/zh-TW.js +1 -1
  88. package/package.json +20 -19
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0xfa9e3b,_0x3ae2d5){const _0x5406c6=_0x1d9e,_0x23f2ac=_0xfa9e3b();while(!![]){try{const _0x3b144e=parseInt(_0x5406c6(0x280))/0x1+-parseInt(_0x5406c6(0x274))/0x2+parseInt(_0x5406c6(0x218))/0x3+-parseInt(_0x5406c6(0x2e8))/0x4+parseInt(_0x5406c6(0x30e))/0x5+parseInt(_0x5406c6(0x1cd))/0x6*(parseInt(_0x5406c6(0x327))/0x7)+-parseInt(_0x5406c6(0x217))/0x8*(parseInt(_0x5406c6(0x2db))/0x9);if(_0x3b144e===_0x3ae2d5)break;else _0x23f2ac['push'](_0x23f2ac['shift']());}catch(_0x1ded22){_0x23f2ac['push'](_0x23f2ac['shift']());}}}(_0x4795,0xcd7a3),function(_0x48a97d,_0x38b19f){const _0x102867=_0x1d9e;typeof exports==_0x102867(0x24a)&&typeof module<'u'?_0x38b19f(exports,require('@univerjs/ui'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/shape-editor-ui'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/drawing'),require('@univerjs/engine-render'),require('@univerjs/sheets-ui'),require('rxjs'),require('@univerjs/drawing-ui'),require('react/jsx-runtime'),require('@univerjs-pro/license'),require('@univerjs/sheets-drawing-ui'),require('react'),require('@univerjs/sheets-drawing'),require('@univerjs/docs'),require('@univerjs/docs-ui')):typeof define==_0x102867(0x2f1)&&define[_0x102867(0x1bb)]?define([_0x102867(0x475),_0x102867(0x42e),'@univerjs-pro/engine-shape',_0x102867(0x35c),'@univerjs-pro/sheets-shape',_0x102867(0x3ce),_0x102867(0x2b7),'@univerjs/drawing',_0x102867(0x209),'@univerjs/sheets-ui','rxjs','@univerjs/drawing-ui','react/jsx-runtime',_0x102867(0x300),_0x102867(0x3a5),'react',_0x102867(0x207),'@univerjs/docs',_0x102867(0x1f6)],_0x38b19f):(_0x48a97d=typeof globalThis<'u'?globalThis:_0x48a97d||self,_0x38b19f(_0x48a97d[_0x102867(0x165)]={},_0x48a97d[_0x102867(0x213)],_0x48a97d['UniverProEngineShape'],_0x48a97d[_0x102867(0x28e)],_0x48a97d[_0x102867(0x270)],_0x48a97d[_0x102867(0x296)],_0x48a97d[_0x102867(0x33d)],_0x48a97d[_0x102867(0x47d)],_0x48a97d[_0x102867(0x311)],_0x48a97d['UniverSheetsUi'],_0x48a97d[_0x102867(0x15f)],_0x48a97d[_0x102867(0x420)],_0x48a97d['React'],_0x48a97d['UniverProLicense'],_0x48a97d['UniverSheetsDrawingUi'],_0x48a97d[_0x102867(0x2fd)],_0x48a97d[_0x102867(0x2ed)],_0x48a97d[_0x102867(0x2ae)],_0x48a97d[_0x102867(0x18c)]));}(this,function(_0x34aab0,_0x13ac91,_0x5b498f,_0x5d2674,_0x4af378,_0x4149d4,_0x45e9dd,_0x85b915,_0x55342f,_0x57bfe3,_0x5c1471,_0x306eb1,_0x20ca5c,_0x46c8ac,_0x2ac673,_0x2423ea,_0x1e9ca9,_0x1d9065,_0x35224d){const _0x256dbb=_0x1d9e;Object[_0x256dbb(0x172)](_0x34aab0,Symbol[_0x256dbb(0x36e)],{'value':_0x256dbb(0x309)});function _0xb3efd8(_0x444893,_0x2382d4){const _0x5bc00f=_0x256dbb;let _0x5d970c={};for(let _0x219c0a of Object[_0x5bc00f(0x33e)](_0x2382d4)){let _0x51322d=_0x2382d4[_0x219c0a],_0x579a65=_0x444893[_0x219c0a];if(_0x51322d!==void 0x0){if(_0x579a65===void 0x0){_0x5d970c[_0x219c0a]=void 0x0;continue;}typeof _0x51322d==_0x5bc00f(0x24a)&&_0x51322d&&!Array['isArray'](_0x51322d)&&typeof _0x579a65==_0x5bc00f(0x24a)&&_0x579a65&&!Array[_0x5bc00f(0x35b)](_0x579a65)?_0x5d970c[_0x219c0a]=_0xb3efd8(_0x579a65,_0x51322d):_0x5d970c[_0x219c0a]=_0x579a65;}}return _0x5d970c;}let _0xf9a118={'type':_0x4149d4['CommandType'][_0x256dbb(0x42b)],'id':_0x256dbb(0x3b5),'handler':(_0x1ee0eb,_0x5dc23b)=>{const _0xbc95d=_0x256dbb;let _0xda9e27=_0x1ee0eb[_0xbc95d(0x451)](_0x4af378[_0xbc95d(0x29e)]),{unitId:_0x2f5eeb,subUnitId:_0x4425e3,shapeType:_0x341447,shapeId:_0x16ffad,shapeData:_0x516ffd,oldShapeJSON:_0x578a27}=_0x5dc23b;if(!_0xda9e27['getShapeModel'](_0x2f5eeb,_0x4425e3,_0x16ffad))return!0x1;let _0x3268a6=_0x1ee0eb[_0xbc95d(0x451)](_0x4149d4[_0xbc95d(0x357)]),_0x471374=_0x1ee0eb['get'](_0x4149d4[_0xbc95d(0x216)]),{oldShapeType:_0x4443cc,oldShapeData:_0x48a6ba={}}=_0x578a27,_0x38c532=_0xb3efd8(_0x48a6ba,_0x516ffd||{}),_0x13caea={'id':_0x4af378[_0xbc95d(0x303)]['id'],'params':{'unitId':_0x2f5eeb,'subUnitId':_0x4425e3,'shapeId':_0x16ffad,'shapeType':_0x341447,'shapeData':_0x516ffd}},_0x308d38={'id':_0x4af378[_0xbc95d(0x303)]['id'],'params':{'unitId':_0x2f5eeb,'subUnitId':_0x4425e3,'shapeId':_0x16ffad,'shapeType':_0x4443cc,'shapeData':_0x38c532}};return _0x3268a6[_0xbc95d(0x2a0)](_0x13caea['id'],_0x13caea[_0xbc95d(0x3c3)])?(_0x471374[_0xbc95d(0x225)]({'unitID':_0x2f5eeb,'undoMutations':[_0x308d38],'redoMutations':[_0x13caea]}),!0x0):!0x1;}};function _0x4ab2ae(_0x528421,_0x2060d7,_0x1c3e0f,_0x58e71b,_0x315671,_0xf657a7){const _0x284c50=_0x256dbb;let _0xe5f832={'unitId':_0x2060d7,'subUnitId':_0x1c3e0f,'shapeId':_0x58e71b,'shapeData':_0xf657a7,'oldShapeJSON':_0x315671};return _0x528421[_0x284c50(0x2aa)](_0xf9a118['id'],_0xe5f832);}function _0x354e36(_0x3c4a9e,_0x43f1c9,_0x337c9e,_0x251f9b,_0x2e0364,_0x5990bc){const _0x5d5597=_0x256dbb;let _0x31979e={'unitId':_0x43f1c9,'subUnitId':_0x337c9e,'shapeId':_0x251f9b,'shapeData':_0x5990bc,'oldShapeJSON':_0x2e0364};return _0x3c4a9e[_0x5d5597(0x2aa)](_0xf9a118['id'],_0x31979e);}function _0xb4c55e(_0x2bb068){'@babel/helpers - typeof';const _0x1ebbc4=_0x256dbb;return _0xb4c55e=typeof Symbol=='function'&&typeof Symbol[_0x1ebbc4(0x162)]==_0x1ebbc4(0x45c)?function(_0x4f889f){return typeof _0x4f889f;}:function(_0x3376b2){const _0x330ab3=_0x1ebbc4;return _0x3376b2&&typeof Symbol==_0x330ab3(0x2f1)&&_0x3376b2[_0x330ab3(0x23c)]===Symbol&&_0x3376b2!==Symbol[_0x330ab3(0x304)]?_0x330ab3(0x45c):typeof _0x3376b2;},_0xb4c55e(_0x2bb068);}function _0x2bcb65(_0x175bfc,_0x40defd){const _0x5eae3c=_0x256dbb;if(_0xb4c55e(_0x175bfc)!='object'||!_0x175bfc)return _0x175bfc;var _0x2a135b=_0x175bfc[Symbol['toPrimitive']];if(_0x2a135b!==void 0x0){var _0x2a7819=_0x2a135b[_0x5eae3c(0x175)](_0x175bfc,_0x40defd||_0x5eae3c(0x307));if(_0xb4c55e(_0x2a7819)!=_0x5eae3c(0x24a))return _0x2a7819;throw TypeError(_0x5eae3c(0x341));}return(_0x40defd===_0x5eae3c(0x3aa)?String:Number)(_0x175bfc);}function _0x57cd1d(_0x5ac157){const _0x19e098=_0x256dbb;var _0x3be7be=_0x2bcb65(_0x5ac157,'string');return _0xb4c55e(_0x3be7be)==_0x19e098(0x45c)?_0x3be7be:_0x3be7be+'';}function _0x25449f(_0x37aa1d,_0x380f1c,_0x480d30){return(_0x380f1c=_0x57cd1d(_0x380f1c))in _0x37aa1d?Object['defineProperty'](_0x37aa1d,_0x380f1c,{'value':_0x480d30,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x37aa1d[_0x380f1c]=_0x480d30,_0x37aa1d;}function _0x542cff(_0x2b077a,_0x57d7ce,_0x35e267){const _0x568314=_0x256dbb;var _0x2061a4;let _0x542043=(0x0,_0x5d2674[_0x568314(0x2c4)])(_0x2b077a,{..._0x57d7ce,'dataModel':{...(_0x2061a4=_0x57d7ce[_0x568314(0x2e2)])==null?{}:_0x2061a4,..._0x35e267?{'doc':_0x35e267}:null}}),_0x2fe8c9=(0x0,_0x5d2674[_0x568314(0x373)])(_0x542043);return{'clip':(0x0,_0x5d2674['shouldClipShapeTextDocument'])(_0x542043,_0x2fe8c9),'wrapStrategy':_0x2fe8c9};}var _0x1a5a1c=class extends _0x55342f[_0x256dbb(0x349)]{constructor(_0x5bffed,_0x11f89b){const _0xc2378d=_0x256dbb;super(_0x5bffed,_0x11f89b),_0x25449f(this,_0xc2378d(0x478),void 0x0),_0x25449f(this,'_transformCalculateSrcRect',!0x0),_0x25449f(this,_0xc2378d(0x33f),_0x4149d4[_0xc2378d(0x29a)][_0xc2378d(0x3ca)]),_0x25449f(this,_0xc2378d(0x2a5),!0x0),this[_0xc2378d(0x478)]={..._0x11f89b},this['_init']();}[_0x256dbb(0x3ff)](){const _0x54011e=_0x256dbb;this[_0x54011e(0x259)][_0x54011e(0x2c1)](_0x5dee2e=>{const _0x238a42=_0x54011e;this[_0x238a42(0x441)](_0x5dee2e);});}[_0x256dbb(0x460)](_0x394685){const _0x2a708a=_0x256dbb;this[_0x2a708a(0x478)][_0x2a708a(0x26d)]=_0x394685;}[_0x256dbb(0x474)](_0x13a656){const _0x39fb3a=_0x256dbb;this[_0x39fb3a(0x478)][_0x39fb3a(0x1ef)]=_0x13a656,this[_0x39fb3a(0x329)](!0x0);}get[_0x256dbb(0x384)](){const _0x419adc=_0x256dbb;return this[_0x419adc(0x478)]['unitId'];}get[_0x256dbb(0x1d7)](){const _0x2f1ca6=_0x256dbb;return this[_0x2f1ca6(0x478)]['subUnitId'];}[_0x256dbb(0x441)](_0x58d2de){const _0x316c06=_0x256dbb;if(this[_0x316c06(0x478)]['srcRect']==null||!this[_0x316c06(0x1fb)])return;let {width:_0x306d75,height:_0x275dd6}=this,{width:_0x264af4=0x0,height:_0x56413e=0x0}=_0x58d2de[_0x316c06(0x302)],{left:_0x398f2e=0x0,top:_0x4f46cb=0x0,right:_0x8d1daa=0x0,bottom:_0x4f9b2c=0x0}=this[_0x316c06(0x478)][_0x316c06(0x17b)],_0x3bc233=_0x398f2e,_0x37a22a=_0x4f46cb,_0x5616a6=_0x8d1daa,_0x4d33d4=_0x4f9b2c,_0x1916cd=!0x1;if(_0x264af4!==0x0&&_0x264af4!==_0x306d75){let _0xcdb1e8=_0x398f2e/_0x264af4,_0x601e20=_0x8d1daa/_0x264af4;_0x3bc233=_0x306d75*_0xcdb1e8,_0x5616a6=_0x306d75*_0x601e20,_0x1916cd=!0x0;}if(_0x56413e!==0x0&&_0x56413e!==_0x275dd6){let _0x3482c2=_0x4f46cb/_0x56413e,_0x18ae06=_0x4f9b2c/_0x56413e;_0x37a22a=_0x275dd6*_0x3482c2,_0x4d33d4=_0x275dd6*_0x18ae06,_0x1916cd=!0x0;}_0x1916cd&&this[_0x316c06(0x2a3)]({'left':_0x3bc233,'top':_0x37a22a,'right':_0x5616a6,'bottom':_0x4d33d4});}[_0x256dbb(0x2a3)](_0x4434dc){const _0x4b8f88=_0x256dbb;this[_0x4b8f88(0x478)]['srcRect']=_0x4434dc,this[_0x4b8f88(0x329)](!0x0);}['setFillImage'](_0xe50751){const _0x2a1d15=_0x256dbb;this[_0x2a1d15(0x478)][_0x2a1d15(0x334)]=_0xe50751,this[_0x2a1d15(0x329)](!0x0);}set[_0x256dbb(0x206)](_0x4f0add){const _0x1e8306=_0x256dbb;this[_0x1e8306(0x1c2)]=_0x4f0add;}get[_0x256dbb(0x206)](){const _0x3506d9=_0x256dbb;this[_0x3506d9(0x1c2)]||this[_0x3506d9(0x15e)]();let _0x5f356b=this[_0x3506d9(0x1c2)][_0x3506d9(0x41c)]();return this[_0x3506d9(0x1b7)](_0x5f356b);}get[_0x256dbb(0x361)](){const _0x4c2c4f=_0x256dbb;return this[_0x4c2c4f(0x478)][_0x4c2c4f(0x361)];}get['shapeId'](){const _0x563cd1=_0x256dbb;return this[_0x563cd1(0x478)][_0x563cd1(0x204)];}get[_0x256dbb(0x160)](){const _0x203525=_0x256dbb;return _0x55342f[_0x203525(0x255)][_0x203525(0x3de)];}[_0x256dbb(0x313)](_0x441cb7,_0xe3f081,_0x4c1699,_0x2666d3){const _0x42b717=_0x256dbb;let _0x497d95=this[_0x42b717(0x478)][_0x42b717(0x361)];if(!_0x497d95||!_0xe3f081)return;let _0x43b459=_0x4c1699==null?this['width']:_0x4c1699,_0xad9285=_0x2666d3==null?this[_0x42b717(0x3e6)]:_0x2666d3,_0x1a972d={'shapeType':_0x497d95['getShapeType'](),'width':_0x43b459,'height':_0xad9285},_0x4654e1={'renderMode':_0x5b498f[_0x42b717(0x29f)]['Path'],'oKey':this[_0x42b717(0x22b)],'image':this[_0x42b717(0x478)][_0x42b717(0x334)],'angle':this['angle']};_0x497d95[_0x42b717(0x374)](_0x1a972d),_0x441cb7[_0x42b717(0x456)]();let _0x3a3b8a={'top':0x0,'left':0x0,'width':_0x43b459,'height':_0xad9285};_0x497d95[_0x42b717(0x3d5)](_0x441cb7,_0x3a3b8a,_0x4654e1),_0x441cb7[_0x42b717(0x429)]();let _0x2bf927=_0x497d95[_0x42b717(0x19f)](),_0x890400=_0x497d95[_0x42b717(0x452)](_0x3a3b8a),_0x5817e0=_0x497d95['isLineShape']();if(_0x2bf927&&_0x890400&&!_0x5817e0){_0x441cb7['save'](),this[_0x42b717(0x1d4)]()['flipX']&&_0x441cb7[_0x42b717(0x2f5)](-0x1,0x1);let _0x1ddee3=_0x43b459/0x2,_0x1065fc=_0xad9285/0x2;_0x441cb7[_0x42b717(0x46e)](-_0x1ddee3,-_0x1065fc),_0x441cb7[_0x42b717(0x15a)](),this[_0x42b717(0x27a)](_0x441cb7,_0x2bf927,_0x890400),_0x441cb7[_0x42b717(0x429)]();}}['getDrawingPoints'](_0x1fca6a){}['_drawShapeText'](_0x14f9e2,_0x3ed219,_0xc760ac){const _0xcd06bb=_0x256dbb;var _0x114689;this[_0xcd06bb(0x478)][_0xcd06bb(0x1ef)]||(!((_0x114689=_0x3ed219['dataModel'])!=null&&_0x114689['doc'])&&_0xcd06bb(0x24b)in _0x3ed219&&_0x3ed219[_0xcd06bb(0x24b)]===!0x1?this['_drawSimpleText'](_0x14f9e2,_0x3ed219,_0xc760ac):this[_0xcd06bb(0x47b)](_0x14f9e2,_0x3ed219,_0xc760ac));}[_0x256dbb(0x399)](_0x5f29bd,_0x47ab55,_0x4aceb0){const _0x5a652f=_0x256dbb;var _0x94e702;this[_0x5a652f(0x47b)](_0x5f29bd,{..._0x47ab55,'text':(_0x94e702=_0x47ab55[_0x5a652f(0x3a2)])==null?'':_0x94e702,'dataModel':{'doc':(0x0,_0x5d2674[_0x5a652f(0x1ba)])(_0x47ab55,_0x5a652f(0x301)+this[_0x5a652f(0x22b)])}},_0x4aceb0);}[_0x256dbb(0x47b)](_0x1b2641,_0x16ea85,_0x395672){const _0x5be402=_0x256dbb;var _0x3f2c12,_0x59bd70;let _0x47b475=this[_0x5be402(0x478)][_0x5be402(0x1a5)];if(!_0x16ea85[_0x5be402(0x2e2)]||!_0x47b475)return;let _0x3dced4=(0x0,_0x5d2674[_0x5be402(0x2ac)])(_0x16ea85[_0x5be402(0x2e2)]);if(!_0x3dced4)return;let _0x5a8a73=_0x3dced4[_0x5be402(0x375)];if(!_0x5a8a73)return;let _0x4a378d=(_0x3f2c12=_0x3dced4['va'])==null?_0x4149d4[_0x5be402(0x41a)]['TOP']:_0x3f2c12,_0x1e8fa=(_0x59bd70=_0x3dced4['ha'])==null?_0x4149d4[_0x5be402(0x363)][_0x5be402(0x444)]:_0x59bd70,_0x557e65=_0x542cff(this['_props'][_0x5be402(0x361)][_0x5be402(0x1ae)](),_0x16ea85,_0x5a8a73),_0x1483dc=_0x16ea85[_0x5be402(0x26f)],_0x54fef7=new _0x4149d4[(_0x5be402(0x355))]((0x0,_0x5d2674[_0x5be402(0x380)])(_0x5a8a73,{'isHorizontal':_0x1483dc!==!0x1,'textRect':_0x395672,'verticalAlign':_0x4a378d,'horizontalAlign':_0x1e8fa,'wrapStrategy':_0x557e65[_0x5be402(0x2ef)]})),_0x2200ea=new _0x55342f[(_0x5be402(0x163))](_0x54fef7),_0xe3e240=_0x55342f[_0x5be402(0x470)][_0x5be402(0x443)](_0x2200ea,_0x47b475);_0xe3e240[_0x5be402(0x161)]();let _0x1bfae8=_0xe3e240['getActualSize']()['actualHeight'],_0x2631d0=(0x0,_0x5d2674[_0x5be402(0x18e)])({'contentHeight':_0x1bfae8,'verticalAlign':_0x4a378d,'viewportHeight':_0x395672['height']});_0x54fef7['updateDocumentStyle']({'pageSize':{'width':_0x1483dc===!0x1?_0x395672['height']:_0x395672[_0x5be402(0x3ea)],'height':_0x2631d0['contentHeight']}}),_0x54fef7[_0x5be402(0x3ed)]({'t':_0x2631d0[_0x5be402(0x3b9)]}),_0xe3e240['calculate']();let _0x2c235c=new _0x55342f['Documents'](_0x5be402(0x3f7)+this[_0x5be402(0x22b)],_0xe3e240,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x5be402(0x329)](!0x0)});_0x2c235c[_0x5be402(0x2ab)](_0x395672[_0x5be402(0x3ea)],_0x2631d0[_0x5be402(0x289)]),_0x1b2641[_0x5be402(0x456)](),_0x1b2641[_0x5be402(0x41d)](_0x395672['left'],_0x395672[_0x5be402(0x1dd)]),_0x557e65[_0x5be402(0x336)]&&(_0x1b2641['beginPath'](),_0x1b2641[_0x5be402(0x168)](0x0,_0x2631d0[_0x5be402(0x367)],_0x395672[_0x5be402(0x3ea)],_0x2631d0[_0x5be402(0x222)]),_0x1b2641[_0x5be402(0x336)]()),_0x2631d0['contentVerticalOffset']&&_0x1b2641['translateWithPrecision'](0x0,_0x2631d0[_0x5be402(0x230)]),_0x2c235c[_0x5be402(0x276)](_0x1b2641),_0x1b2641[_0x5be402(0x429)](),_0x2c235c[_0x5be402(0x1c5)](),_0xe3e240[_0x5be402(0x1c5)](),_0x2200ea[_0x5be402(0x1c5)](),_0x54fef7[_0x5be402(0x1c5)]();}[_0x256dbb(0x3d5)](_0x513042,_0x2bb847,_0x1525cb=!0x1){const _0x1f5fb6=_0x256dbb;if(!this['visible'])return this['makeDirty'](!0x1),this;let {width:_0x351fb7,height:_0x38ef41,left:_0xb85c23,top:_0x527759}=this,_0x3bb3d3=this[_0x1f5fb6(0x479)]();if(_0x351fb7=_0x3bb3d3['width'],_0x38ef41=_0x3bb3d3[_0x1f5fb6(0x3e6)],_0xb85c23=_0x3bb3d3[_0x1f5fb6(0x392)],_0x527759=_0x3bb3d3[_0x1f5fb6(0x1dd)],this[_0x1f5fb6(0x1ee)](_0x2bb847)){let {top:_0x4777e1,left:_0x375447,bottom:_0x597ada,right:_0x21b7c6}=_0x2bb847[_0x1f5fb6(0x424)];if(_0x351fb7+this['strokeWidth']+_0xb85c23<_0x375447||_0x21b7c6<_0xb85c23||_0x38ef41+this[_0x1f5fb6(0x1bc)]+_0x527759<_0x4777e1||_0x597ada<_0x527759)return this;}let _0x2fa392=_0xb85c23+_0x351fb7/0x2,_0x1473a2=_0x527759+_0x38ef41/0x2,_0x4c7e11=this['transform'][_0x1f5fb6(0x387)]();if(this[_0x1f5fb6(0x478)][_0x1f5fb6(0x1ef)]){let _0x1aa866=this[_0x1f5fb6(0x1d4)](),_0x408236=new _0x55342f['Transform']();_0x408236[_0x1f5fb6(0x486)]({..._0x1aa866}),_0x4c7e11=_0x408236[_0x1f5fb6(0x387)]();}return _0x513042[_0x1f5fb6(0x456)](),this[_0x1f5fb6(0x478)][_0x1f5fb6(0x361)]['isRenderLinePointsMode']===!0x0||_0x513042[_0x1f5fb6(0x206)](_0x4c7e11[0x0],_0x4c7e11[0x1],_0x4c7e11[0x2],_0x4c7e11[0x3],_0x2fa392,_0x1473a2),this[_0x1f5fb6(0x313)](_0x513042,_0x2bb847,_0x351fb7,_0x38ef41),_0x513042[_0x1f5fb6(0x429)](),this[_0x1f5fb6(0x329)](!0x1),this;}[_0x256dbb(0x27d)](_0x1a8103){const _0x22af62=_0x256dbb;let {left:_0x4e8c26,top:_0x2adebd,width:_0x594ddd,height:_0x190b62}=this[_0x22af62(0x479)](),_0x14f3eb=this[_0x22af62(0x206)][_0x22af62(0x387)](),_0x4d80f8=_0x4e8c26+_0x594ddd/0x2,_0x4cd8ff=_0x2adebd+_0x190b62/0x2,_0x571b4b=new _0x55342f[(_0x22af62(0x1bd))]([_0x14f3eb[0x0],_0x14f3eb[0x1],_0x14f3eb[0x2],_0x14f3eb[0x3],_0x4d80f8,_0x4cd8ff]),_0x1b0c30=this[_0x22af62(0x354)]();return(this[_0x22af62(0x23f)]&&(_0x1b0c30==null?void 0x0:_0x1b0c30['classType'])===_0x55342f[_0x22af62(0x255)]['GROUP']?_0x1b0c30[_0x22af62(0x3d9)][_0x22af62(0x3d2)](_0x571b4b):_0x571b4b)[_0x22af62(0x3dc)]()[_0x22af62(0x3af)](_0x1a8103);}[_0x256dbb(0x1e6)](_0xc20aa7){const _0x1327ca=_0x256dbb;let {left:_0x3e9b04,top:_0x2ee241,width:_0x99e2a1,height:_0x2710fc}=this[_0x1327ca(0x479)](),_0x1ec112=_0x3e9b04+_0x99e2a1/0x2,_0x4798f5=_0x2ee241+_0x2710fc/0x2,_0x3ea6f5=this[_0x1327ca(0x206)][_0x1327ca(0x387)](),_0x25d624=new _0x55342f[(_0x1327ca(0x1bd))]([_0x3ea6f5[0x0],_0x3ea6f5[0x1],_0x3ea6f5[0x2],_0x3ea6f5[0x3],_0x1ec112,_0x4798f5]),_0x4acd87=this['getParent'](),_0x2cd2d5=(this['isInGroup']&&(_0x4acd87==null?void 0x0:_0x4acd87[_0x1327ca(0x160)])===_0x55342f[_0x1327ca(0x255)]['GROUP']?_0x4acd87[_0x1327ca(0x3d9)]['multiply'](_0x25d624):_0x25d624)[_0x1327ca(0x3dc)]()['applyPoint'](_0xc20aa7),_0x281d61=_0x99e2a1/0x2,_0x2bbce3=_0x2710fc/0x2,_0x1c68ac=this[_0x1327ca(0x478)][_0x1327ca(0x361)];return _0x1c68ac&&_0x1c68ac['isLineShape']()?_0x1c68ac[_0x1327ca(0x476)](_0x2cd2d5['x'],_0x2cd2d5['y'],_0x99e2a1,_0x2710fc):_0x2cd2d5['x']>=-_0x281d61-this[_0x1327ca(0x1bc)]/0x2&&_0x2cd2d5['x']<=_0x281d61+this[_0x1327ca(0x1bc)]/0x2&&_0x2cd2d5['y']>=-_0x2bbce3-this[_0x1327ca(0x1bc)]/0x2&&_0x2cd2d5['y']<=_0x2bbce3+this['strokeWidth']/0x2;}[_0x256dbb(0x1c5)](){const _0x38a72c=_0x256dbb;this['_props'][_0x38a72c(0x361)]=null,super['dispose']();}},_0x120a95=class extends _0x55342f['Shape']{constructor(_0x3daec5,_0x18dba8){const _0x1036f0=_0x256dbb;super(_0x3daec5,_0x18dba8),_0x25449f(this,'_shapeId',null),_0x25449f(this,_0x1036f0(0x44e),null),_0x25449f(this,'_unitId',null),_0x25449f(this,'_subUnitId',null),_0x18dba8&&this[_0x1036f0(0x3b2)](_0x18dba8);}[_0x256dbb(0x37d)](){const _0xcb4445=_0x256dbb;return{'unitId':this[_0xcb4445(0x15c)],'subUnitId':this[_0xcb4445(0x299)],'drawingId':this[_0xcb4445(0x1c6)]};}[_0x256dbb(0x3b2)](_0x500959){const _0x1d02e6=_0x256dbb;_0x500959[_0x1d02e6(0x204)]!==void 0x0&&(this['_shapeId']=_0x500959['shapeId']),_0x500959[_0x1d02e6(0x1cc)]!==void 0x0&&(this[_0x1d02e6(0x44e)]=_0x500959[_0x1d02e6(0x1cc)]),_0x500959[_0x1d02e6(0x384)]!==void 0x0&&(this[_0x1d02e6(0x15c)]=_0x500959[_0x1d02e6(0x384)]),_0x500959[_0x1d02e6(0x1d7)]!==void 0x0&&(this[_0x1d02e6(0x299)]=_0x500959['subUnitId']),this[_0x1d02e6(0x38d)]({'width':_0x500959['width'],'height':_0x500959['height']});}[_0x256dbb(0x313)](_0x3a3c33){const _0x73e65f=_0x256dbb;_0x55342f[_0x73e65f(0x241)][_0x73e65f(0x258)](_0x3a3c33,{'radius':_0x5b498f[_0x73e65f(0x29b)][_0x73e65f(0x192)],'fill':_0x5b498f[_0x73e65f(0x29b)][_0x73e65f(0x227)],'stroke':_0x5b498f[_0x73e65f(0x29b)][_0x73e65f(0x248)],'strokeWidth':0x1,'evented':!0x0});}};function _0x4529c8(_0x27275a,_0x1ff482){return function(_0x4b0598,_0x91fc1f){_0x1ff482(_0x4b0598,_0x91fc1f,_0x27275a);};}function _0x53314b(_0x61d8b8,_0x577026,_0x38386e,_0x3791b7){const _0x25f53e=_0x256dbb;var _0x15fb60=arguments[_0x25f53e(0x234)],_0x29401c=_0x15fb60<0x3?_0x577026:_0x3791b7===null?_0x3791b7=Object['getOwnPropertyDescriptor'](_0x577026,_0x38386e):_0x3791b7,_0x5ee4a9;if(typeof Reflect==_0x25f53e(0x24a)&&typeof Reflect[_0x25f53e(0x383)]==_0x25f53e(0x2f1))_0x29401c=Reflect[_0x25f53e(0x383)](_0x61d8b8,_0x577026,_0x38386e,_0x3791b7);else{for(var _0x1e7c06=_0x61d8b8[_0x25f53e(0x234)]-0x1;_0x1e7c06>=0x0;_0x1e7c06--)(_0x5ee4a9=_0x61d8b8[_0x1e7c06])&&(_0x29401c=(_0x15fb60<0x3?_0x5ee4a9(_0x29401c):_0x15fb60>0x3?_0x5ee4a9(_0x577026,_0x38386e,_0x29401c):_0x5ee4a9(_0x577026,_0x38386e))||_0x29401c);}return _0x15fb60>0x3&&_0x29401c&&Object['defineProperty'](_0x577026,_0x38386e,_0x29401c),_0x29401c;}let _0x542c35=class extends _0x4149d4[_0x256dbb(0x450)]{constructor(_0x38a632,_0x3720a8,_0x3e50b7,_0x585753,_0x4168ce){const _0x67b95e=_0x256dbb;super(),this[_0x67b95e(0x1be)]=_0x38a632,this['_sheetsShapeService']=_0x3720a8,this[_0x67b95e(0x481)]=_0x3e50b7,this['_imageIoService']=_0x585753,this[_0x67b95e(0x189)]=_0x4168ce;}['renderDrawingShape'](_0x34b618,_0x42588f,_0x490860){const _0x1d5681=_0x256dbb;let {transform:_0x31b3d1,drawingType:_0x4f9b6b,srcRect:_0x508420,prstGeom:_0x328d29,groupId:_0x1ff384,unitId:_0x3967b2,subUnitId:_0x33ba53,drawingId:_0x40cb9b,isMultiTransform:_0x5e7ba9,transforms:_0x530ccf,hidden:_0x14fc69,selectable:_0xebde6b}=_0x34b618;if(_0x4f9b6b!==_0x4149d4['DrawingTypeEnum'][_0x1d5681(0x3ca)]||!this[_0x1d5681(0x1be)][_0x1d5681(0x37a)]()||_0x31b3d1==null)return;let _0x424035=this[_0x1d5681(0x1be)]['getDrawingEditable']();_0x424035&&_0x42588f['initTransformer'](_0x5d2674[_0x1d5681(0x3d8)]);let _0x1df860=_0x5e7ba9&&_0x530ccf?_0x530ccf:[_0x31b3d1],_0xeea86=[];for(let _0x3f3d7a of _0x1df860){let {left:_0x4f0f59,top:_0x5ceaae,width:_0x5a4a31,height:_0x11827,angle:_0x11c8ff,flipX:_0x9029c8,flipY:_0x46bfe3,skewX:_0xbbf74a,skewY:_0x5021a6}=_0x3f3d7a,_0x4031c7=_0x1df860[_0x1d5681(0x1a0)](_0x3f3d7a),_0x174853=(0x0,_0x85b915[_0x1d5681(0x437)])({'unitId':_0x3967b2,'subUnitId':_0x33ba53,'drawingId':_0x40cb9b},_0x5e7ba9?_0x4031c7:void 0x0),_0x2054d9=_0x42588f[_0x1d5681(0x1aa)](_0x174853);if(_0x2054d9!=null){_0x2054d9[_0x1d5681(0x38d)]({'left':_0x4f0f59,'top':_0x5ceaae,'width':_0x5a4a31,'height':_0x11827,'angle':_0x11c8ff,'flipX':_0x9029c8,'flipY':_0x46bfe3,'skewX':_0xbbf74a,'skewY':_0x5021a6});continue;}let _0x4504b6=this['_drawingManagerService'][_0x1d5681(0x3a4)](_0x3967b2,_0x33ba53),_0x17f48c=_0x4504b6[_0x1d5681(0x1a0)](_0x40cb9b);if(_0x42588f['getObjectIncludeInGroup'](_0x174853)||!this[_0x1d5681(0x1be)]['getDrawingVisible']())continue;let _0x4cfc05=this[_0x1d5681(0x191)]['getShapeModel'](_0x3967b2,_0x33ba53,_0x40cb9b);if(!_0x4cfc05)continue;let _0x2b622c=new _0x1a5a1c(_0x174853,{...(0x0,_0x5b498f[_0x1d5681(0x237)])(_0x4cfc05['getShapeType']())?{..._0x3f3d7a,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x3f3d7a},'zIndex':_0x17f48c===-0x1?_0x4504b6[_0x1d5681(0x234)]-0x1:_0x17f48c,'shapeModel':_0x4cfc05,'localeService':this['_localeService'],'shapeId':_0x40cb9b,'unitId':_0x3967b2,'subUnitId':_0x33ba53,'visible':_0x14fc69!==!0x0,'evented':_0xebde6b!==!0x1});_0x42588f[_0x1d5681(0x3d1)](_0x2b622c,_0x55342f[_0x1d5681(0x28c)]),_0x424035&&_0x42588f[_0x1d5681(0x30d)](_0x2b622c),_0x1ff384&&(0x0,_0x306eb1[_0x1d5681(0x360)])({'drawingId':_0x1ff384,'unitId':_0x3967b2,'subUnitId':_0x33ba53},_0x2b622c,_0x42588f,this['_drawingManagerService']),_0x328d29!=null&&_0x2b622c[_0x1d5681(0x460)](_0x328d29),_0x508420!=null&&_0x2b622c[_0x1d5681(0x2a3)](_0x508420);let _0x297ef2=this['_loadShapePictureFill'](_0x2b622c,_0x4cfc05[_0x1d5681(0x1ae)]());if(_0x297ef2){var _0x3b0db7;_0x490860==null||(_0x3b0db7=_0x490860[_0x1d5681(0x1d6)])==null||_0x3b0db7['add'](_0x297ef2);}_0xeea86[_0x1d5681(0x28f)](_0x2b622c);}return _0xeea86;}['refreshShapeFillImage'](_0xfc3515){const _0x4a9f81=_0x256dbb;let _0x357b7b=_0xfc3515[_0x4a9f81(0x361)][_0x4a9f81(0x1ae)](),_0x5e697b=_0x357b7b[_0x4a9f81(0x35a)];if(!_0x5e697b||_0x5e697b[_0x4a9f81(0x461)]!==_0x5b498f['ShapeFillEnum']['PictureFill']||!_0x5e697b['fillImageSource']){_0xfc3515['setFillImage'](void 0x0);return;}this[_0x4a9f81(0x3c7)](_0xfc3515,_0x357b7b);}[_0x256dbb(0x3c7)](_0x4f4b83,_0x1880f3){const _0x2ce0bc=_0x256dbb;var _0x569ac5;let _0x2c7022=_0x1880f3[_0x2ce0bc(0x35a)];if(!_0x2c7022||_0x2c7022['fillType']!==_0x5b498f[_0x2ce0bc(0x322)][_0x2ce0bc(0x440)]||!_0x2c7022[_0x2ce0bc(0x448)])return;let _0x131b42=_0x2c7022[_0x2ce0bc(0x448)],_0x541271=(_0x569ac5=_0x2c7022['fillImageSourceType'])==null?_0x5b498f[_0x2ce0bc(0x35d)][_0x2ce0bc(0x1f2)]:_0x569ac5,_0x4093c3=this[_0x2ce0bc(0x1ab)]['getImageSourceCache'](_0x131b42,_0x541271);if(_0x4093c3){_0x4f4b83[_0x2ce0bc(0x3a8)](_0x4093c3);return;}return this[_0x2ce0bc(0x1f8)](_0x4f4b83,_0x131b42,_0x541271);}async[_0x256dbb(0x1f8)](_0x4bab19,_0x493a9c,_0x33793b){const _0xe68810=_0x256dbb;let _0x3a104d;try{if(_0x33793b===_0x5b498f[_0xe68810(0x35d)][_0xe68810(0x20e)])_0x3a104d=await this['_imageIoService'][_0xe68810(0x3be)](_0x493a9c);else{if(_0x33793b===_0x5b498f['ImageSourceTypeEnum'][_0xe68810(0x1f2)])try{_0x3a104d=await this['_urlImageService'][_0xe68810(0x3be)](_0x493a9c);}catch{_0x3a104d=_0x493a9c;}else _0x3a104d=_0x493a9c;}}catch(_0x2745dd){console[_0xe68810(0x477)](_0xe68810(0x2da),_0x2745dd);return;}await new Promise(_0x1f00d8=>{const _0x2b3187=_0xe68810;let _0x5b998e=new window[(_0x2b3187(0x332))]();_0x5b998e[_0x2b3187(0x293)]=()=>{const _0x3191bf=_0x2b3187;this[_0x3191bf(0x1ab)][_0x3191bf(0x1c0)](_0x493a9c,_0x33793b,_0x5b998e),_0x4bab19[_0x3191bf(0x3a8)](_0x5b998e),_0x1f00d8();},_0x5b998e[_0x2b3187(0x407)]=()=>{const _0x3d0453=_0x2b3187;console['error'](_0x3d0453(0x2cf),_0x493a9c),_0x1f00d8();},_0x5b998e[_0x2b3187(0x316)]=_0x3a104d;});}};_0x542c35=_0x53314b([_0x4529c8(0x0,_0x85b915['IDrawingManagerService']),_0x4529c8(0x1,(0x0,_0x4149d4['Inject'])(_0x4af378['SheetsShapeService'])),_0x4529c8(0x2,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x4149d4[_0x256dbb(0x3f4)])),_0x4529c8(0x3,_0x4149d4[_0x256dbb(0x1e9)]),_0x4529c8(0x4,_0x4149d4['IURLImageService'])],_0x542c35);let _0x4404c6=class extends _0x4149d4[_0x256dbb(0x450)]{constructor(_0x1e3d1b,_0x2475be,_0x3f5bd0,_0x20b8b7,_0x2f58b1,_0x293fbf){const _0x5051e9=_0x256dbb;super(),this['_drawingManagerService']=_0x1e3d1b,this[_0x5051e9(0x191)]=_0x2475be,this['_renderManagerService']=_0x3f5bd0,this[_0x5051e9(0x2e6)]=_0x20b8b7,this[_0x5051e9(0x17e)]=_0x2f58b1,this[_0x5051e9(0x366)]=_0x293fbf,_0x25449f(this,_0x5051e9(0x2d3),null),_0x25449f(this,_0x5051e9(0x15c),null),_0x25449f(this,'_subUnitId',null),_0x25449f(this,'_activeShapeAdjustPointList',void 0x0),_0x25449f(this,_0x5051e9(0x1da),[]),_0x25449f(this,_0x5051e9(0x1ca),0x0),_0x25449f(this,_0x5051e9(0x2d2),0x0),_0x25449f(this,_0x5051e9(0x2fa),0x0),_0x25449f(this,_0x5051e9(0x2a4),0x0),_0x25449f(this,'_isStartAdjusting',!0x1),_0x25449f(this,_0x5051e9(0x205),void 0x0),_0x25449f(this,_0x5051e9(0x462),void 0x0),_0x25449f(this,_0x5051e9(0x184),void 0x0),_0x25449f(this,'_adjHandlerPointerUp',void 0x0),_0x25449f(this,_0x5051e9(0x266),!0x1),this[_0x5051e9(0x1e7)](),this[_0x5051e9(0x3e5)]();}[_0x256dbb(0x2c0)](_0x3a44ae,_0x56edc0,_0x273965){const _0x2f47b5=_0x256dbb;let _0x20d3d7=this[_0x2f47b5(0x191)][_0x2f47b5(0x3d0)](_0x3a44ae,_0x56edc0,_0x273965);if(_0x20d3d7)return _0x20d3d7[_0x2f47b5(0x3f3)]();}[_0x256dbb(0x2c7)](){this['_clearShapeAdjustControls']();}[_0x256dbb(0x40b)](){const _0x1cdecd=_0x256dbb;this[_0x1cdecd(0x1cf)](!0x0);}[_0x256dbb(0x1a1)](_0x40d48e){const _0x4c4bb0=_0x256dbb;this[_0x4c4bb0(0x266)]=_0x40d48e;}[_0x256dbb(0x221)](_0x7ecf2c,_0x1bbffd,_0x3b1df1,_0x205c87){const _0x42bf21=_0x256dbb;let _0x839530=this[_0x42bf21(0x191)][_0x42bf21(0x3d0)](_0x7ecf2c,_0x1bbffd,_0x3b1df1);if(_0x839530)return _0x839530[_0x42bf21(0x2bd)](_0x205c87);}['_createShapeAdjustControls'](_0x383b08=!0x1){const _0x547b4e=_0x256dbb;if(this[_0x547b4e(0x15c)]===null||this[_0x547b4e(0x299)]===null||this[_0x547b4e(0x2d3)]===null)return;let _0x3d71f7=this[_0x547b4e(0x2c3)][_0x547b4e(0x1a3)](this['_unitId']);if(!_0x3d71f7||!_0x3d71f7[_0x547b4e(0x23a)](_0x57bfe3[_0x547b4e(0x376)])[_0x547b4e(0x352)]())return;let {scene:_0x242c2b}=_0x3d71f7,_0x28894e={'unitId':this[_0x547b4e(0x15c)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x547b4e(0x2d3)]},_0x4b9b14=this['_drawingManagerService'][_0x547b4e(0x472)](_0x28894e),{transform:_0x899997}=_0x4b9b14;if(!_0x899997||_0x4b9b14[_0x547b4e(0x277)]!==_0x4149d4[_0x547b4e(0x29a)][_0x547b4e(0x3ca)])return;let {left:_0x2efa53,top:_0x54cef0,width:_0x32d5e5,height:_0x48e2e5,flipX:_0x5b1e8c,flipY:_0x607a82,angle:_0x31edb7=0x0}=_0x899997;if(_0x2efa53===void 0x0||_0x54cef0===void 0x0)return;_0x383b08&&(this[_0x547b4e(0x279)]=this['_getShapeAdjustPointListById'](this[_0x547b4e(0x15c)],this[_0x547b4e(0x299)],this['_activeShapeId']));let _0x4d28ef=this['_activeShapeAdjustPointList'];for(let _0x328209=0x0;_0x328209<_0x4d28ef[_0x547b4e(0x234)];_0x328209++){let _0x1a137a=_0x4d28ef[_0x328209],_0x4bb287=_0x1a137a['x'],_0xd46e68=_0x1a137a['y'];if(_0x5b1e8c&&(_0x4bb287=(_0x32d5e5||0x0)-_0x4bb287),_0x607a82&&(_0xd46e68=(_0x48e2e5||0x0)-_0xd46e68),_0x31edb7!==0x0){let _0x33f5e5=(_0x32d5e5||0x0)/0x2,_0x39dfd0=(_0x48e2e5||0x0)/0x2,_0x3b12f0=_0x31edb7*Math['PI']/0xb4,_0x4eb4b3=Math[_0x547b4e(0x359)](_0x3b12f0),_0x239a00=Math['sin'](_0x3b12f0),_0x4a61ab=_0x4bb287-_0x33f5e5,_0x5982b9=_0xd46e68-_0x39dfd0;_0x4bb287=_0x33f5e5+(_0x4a61ab*_0x4eb4b3-_0x5982b9*_0x239a00),_0xd46e68=_0x39dfd0+(_0x4a61ab*_0x239a00+_0x5982b9*_0x4eb4b3);}let _0x240d1d={'x':_0x4bb287,'y':_0xd46e68,'adjName':_0x1a137a['adjName']};this[_0x547b4e(0x398)](_0x242c2b,_0x240d1d,_0x240d1d[_0x547b4e(0x1cc)],_0x2efa53,_0x54cef0,this[_0x547b4e(0x15c)],this[_0x547b4e(0x299)]);}}['_updateShapeAdjustControls'](_0x557c34=!0x1){const _0x43fecd=_0x256dbb;_0x557c34&&(this[_0x43fecd(0x295)](),this['_createShapeAdjustControls'](_0x557c34));}[_0x256dbb(0x398)](_0x34e77a,_0xbac3fe,_0x45a2b1,_0x412142,_0x5436f9,_0x3d2a4b,_0x235ce5){const _0x4f95c6=_0x256dbb;if(!this[_0x4f95c6(0x2d3)])return;let _0x334ed7=_0x34e77a[_0x4f95c6(0x1aa)](_0x4f95c6(0x335)+this[_0x4f95c6(0x2d3)]+'-'+_0x45a2b1);if(_0x334ed7){_0x334ed7[_0x4f95c6(0x38d)]({'left':_0xbac3fe['x']+_0x412142-_0x5b498f[_0x4f95c6(0x29b)][_0x4f95c6(0x192)],'top':_0xbac3fe['y']+_0x5436f9-_0x5b498f[_0x4f95c6(0x29b)][_0x4f95c6(0x192)]});return;}let _0x474fb7={'left':_0xbac3fe['x']+_0x412142-_0x5b498f['ShapeDefaultConfig']['adjHandleSize'],'top':_0xbac3fe['y']+_0x5436f9-_0x5b498f['ShapeDefaultConfig'][_0x4f95c6(0x192)],'adjName':_0x45a2b1,'shapeId':this[_0x4f95c6(0x2d3)],'unitId':_0x3d2a4b,'subUnitId':_0x235ce5,'width':_0x5b498f[_0x4f95c6(0x29b)][_0x4f95c6(0x192)]+0x8,'height':_0x5b498f[_0x4f95c6(0x29b)]['adjHandleSize']+0x8,'zIndex':_0x55342f[_0x4f95c6(0x28c)]+0x1,'evented':!0x0},_0x4e45b2=new _0x120a95(_0x4f95c6(0x335)+this[_0x4f95c6(0x2d3)]+'-'+_0x45a2b1,_0x474fb7);this['_shapes']['push'](_0x4e45b2),this['_attachAdjustEvent'](_0x4e45b2,_0x34e77a,_0x45a2b1),_0x34e77a[_0x4f95c6(0x3d1)](_0x4e45b2,_0x55342f[_0x4f95c6(0x28c)]+0x1);}['_clearShapeAdjustControls'](){const _0x2d3a8a=_0x256dbb;this[_0x2d3a8a(0x1da)][_0x2d3a8a(0x234)]!==0x0&&(this[_0x2d3a8a(0x1da)][_0x2d3a8a(0x43e)](_0x46ed9b=>{const _0x27b31d=_0x2d3a8a;_0x46ed9b[_0x27b31d(0x1c5)]();}),this[_0x2d3a8a(0x1da)]=[]);}[_0x256dbb(0x17a)](){this['_createShapeAdjustControls']();}['_getScrollInfo'](_0x4f99e1,_0x25c62e){const _0x3fef8e=_0x256dbb;var _0x1eba10;let _0x464772={'x':0x0,'y':0x0};if(!_0x4f99e1||!_0x25c62e)return _0x464772;let _0x43b690=this[_0x3fef8e(0x2c3)][_0x3fef8e(0x1a3)](_0x4f99e1);if(!_0x43b690||!_0x43b690[_0x3fef8e(0x23a)](_0x57bfe3[_0x3fef8e(0x376)])[_0x3fef8e(0x3cd)](_0x25c62e))return _0x464772;let _0x4b7d6f=_0x43b690[_0x3fef8e(0x23a)](_0x57bfe3[_0x3fef8e(0x1d3)]),_0x2c9c1b=_0x4b7d6f==null?void 0x0:_0x4b7d6f[_0x3fef8e(0x3f6)]();if(!_0x2c9c1b)return _0x464772;let _0x4a5387=(_0x1eba10=this[_0x3fef8e(0x17e)][_0x3fef8e(0x21a)](_0x4f99e1))==null?void 0x0:_0x1eba10[_0x3fef8e(0x397)](_0x25c62e);if(!_0x4a5387)return _0x464772;let _0x4261cf=(0x0,_0x57bfe3[_0x3fef8e(0x254)])(_0x2c9c1b[_0x3fef8e(0x1e0)],_0x2c9c1b[_0x3fef8e(0x25e)],_0x43b690[_0x3fef8e(0x257)],_0x4a5387);return _0x4261cf?{'x':_0x4261cf['viewportScrollX'],'y':_0x4261cf[_0x3fef8e(0x1c3)]}:_0x464772;}[_0x256dbb(0x298)](_0x341265,_0x5b4f62){const _0x1eecc9=_0x256dbb;var _0x3fec44,_0xa55591;let _0x35ea8d=(_0x3fec44=this[_0x1eecc9(0x17e)][_0x1eecc9(0x21a)](_0x341265))==null?void 0x0:_0x3fec44['getSheetBySheetId'](_0x5b4f62);return(_0xa55591=_0x35ea8d==null?void 0x0:_0x35ea8d['getZoomRatio']())==null?0x1:_0xa55591;}[_0x256dbb(0x306)](_0x3c6f37,_0x47e2cd,_0x51b395){const _0x18ff49=_0x256dbb;this[_0x18ff49(0x283)]((0x0,_0x4149d4[_0x18ff49(0x2c2)])(_0x3c6f37[_0x18ff49(0x371)]['subscribeEvent']((_0xe159e1,_0x167c9d)=>{const _0x41a625=_0x18ff49;var _0xc0286,_0x1b3420,_0x257135,_0x1f07f8;let _0x5daeac=_0x3c6f37[_0x41a625(0x37d)]();this[_0x41a625(0x205)]=this['_getShapeAdjustInfosById'](_0x5daeac[_0x41a625(0x384)],_0x5daeac[_0x41a625(0x1d7)],_0x5daeac[_0x41a625(0x346)],_0x51b395),this[_0x41a625(0x462)]=this[_0x41a625(0x191)][_0x41a625(0x3d0)](_0x5daeac[_0x41a625(0x384)],_0x5daeac['subUnitId'],_0x5daeac['drawingId']);let _0x492803=this[_0x41a625(0x1be)][_0x41a625(0x472)]({'unitId':this['_unitId'],'subUnitId':this[_0x41a625(0x299)],'drawingId':this[_0x41a625(0x2d3)]}),{transform:_0x16377f}=_0x492803;if(_0x16377f){let {left:_0x5a2208,top:_0x4ba470,width:_0xf541a0,height:_0xbcaa1b}=_0x16377f;this[_0x41a625(0x1ca)]=_0x5a2208||0x0,this[_0x41a625(0x2d2)]=_0x4ba470||0x0,this['_baseShapeWidth']=_0xf541a0||0x0,this[_0x41a625(0x2a4)]=_0xbcaa1b||0x0;}let _0x47202b=!!((_0xc0286=_0x492803['transform'])!=null&&_0xc0286['flipX']),_0x508761=!!((_0x1b3420=_0x492803[_0x41a625(0x206)])!=null&&_0x1b3420[_0x41a625(0x201)]),_0x2422fb=((_0x257135=_0x492803[_0x41a625(0x206)])==null?void 0x0:_0x257135[_0x41a625(0x372)])||0x0;this[_0x41a625(0x3fd)]=!0x0,_0x47e2cd[_0x41a625(0x381)]();let _0x309dc6=(_0x1f07f8=this[_0x41a625(0x462)])==null?void 0x0:_0x1f07f8[_0x41a625(0x40e)](_0x51b395),_0x568264={[_0x51b395]:_0x309dc6};this['_adjHandlerPointerMove']=_0x47e2cd[_0x41a625(0x3b8)][_0x41a625(0x2c1)]((_0x4629f6,_0x2b5dde)=>{const _0x48bcc0=_0x41a625;if(!this[_0x48bcc0(0x3fd)])return;let {offsetX:_0x190c8c,offsetY:_0xe17442}=_0x4629f6,_0x4ccae9=this[_0x48bcc0(0x205)];if(this['_activeShapeModel']&&_0x4ccae9){_0x47e2cd[_0x48bcc0(0x381)](),_0x47e2cd[_0x48bcc0(0x181)](_0x55342f[_0x48bcc0(0x183)]['CROSSHAIR']);let _0x4a8f12={'left':0x0,'top':0x0,'width':this[_0x48bcc0(0x2fa)],'height':this[_0x48bcc0(0x2a4)]},_0x395917=this[_0x48bcc0(0x1c7)](this[_0x48bcc0(0x15c)],this['_subUnitId']),_0x2eb0b5=this[_0x48bcc0(0x298)](this[_0x48bcc0(0x15c)],this[_0x48bcc0(0x299)]),_0x504efd=_0x190c8c/_0x2eb0b5+_0x395917['x']-this[_0x48bcc0(0x1ca)],_0x596c38=_0xe17442/_0x2eb0b5+_0x395917['y']-this[_0x48bcc0(0x2d2)];if(_0x2422fb!==0x0){let _0x54574c=this[_0x48bcc0(0x2fa)]/0x2,_0x52398c=this['_baseShapeHeight']/0x2,_0x4f44c1=_0x2422fb*Math['PI']/0xb4,_0x3825cc=Math['cos'](_0x4f44c1),_0x507c8f=Math[_0x48bcc0(0x42f)](_0x4f44c1),_0x29dce1=_0x504efd-_0x54574c,_0x4dbd7e=_0x596c38-_0x52398c;_0x504efd=_0x54574c+(_0x29dce1*_0x3825cc+_0x4dbd7e*_0x507c8f),_0x596c38=_0x52398c+(-_0x29dce1*_0x507c8f+_0x4dbd7e*_0x3825cc);}_0x47202b&&(_0x504efd=this[_0x48bcc0(0x2fa)]-_0x504efd),_0x508761&&(_0x596c38=this[_0x48bcc0(0x2a4)]-_0x596c38);let _0x1a60d8={'x':_0x504efd,'y':_0x596c38},_0x1c2dff=this['_activeShapeModel'][_0x48bcc0(0x250)](_0x4a8f12,_0x1a60d8,_0x4ccae9,_0x47202b,_0x508761),_0x5d76fa=_0x4ccae9['gdRefX']||_0x4ccae9[_0x48bcc0(0x1b9)]||_0x4ccae9[_0x48bcc0(0x2c9)]||_0x4ccae9['gdRefR'];if(_0x5d76fa===void 0x0)return;this[_0x48bcc0(0x462)]['setAdjustValueByName'](_0x5d76fa,_0x1c2dff);let _0x178361=this[_0x48bcc0(0x1be)][_0x48bcc0(0x472)]({'unitId':_0x5daeac[_0x48bcc0(0x384)],'subUnitId':_0x5daeac[_0x48bcc0(0x1d7)],'drawingId':_0x5daeac[_0x48bcc0(0x346)]});_0x178361&&(this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x178361,_0x47e2cd),this[_0x48bcc0(0x279)]=this[_0x48bcc0(0x2c0)](_0x5daeac[_0x48bcc0(0x384)],_0x5daeac[_0x48bcc0(0x1d7)],_0x5daeac[_0x48bcc0(0x346)]),this[_0x48bcc0(0x17a)]());}_0x2b5dde[_0x48bcc0(0x264)]();}),this[_0x41a625(0x3e1)]=_0x47e2cd[_0x41a625(0x29d)][_0x41a625(0x2c1)]((_0x3bac2a,_0x456b8b)=>{const _0x484305=_0x41a625;this[_0x484305(0x184)]['unsubscribe'](),this['_adjHandlerPointerUp']['unsubscribe'](),_0x47e2cd[_0x484305(0x1fa)]();let _0x3dbbab=this[_0x484305(0x205)];if(_0x3dbbab){let _0x40e4bc=_0x5daeac[_0x484305(0x384)],_0x300218=_0x5daeac[_0x484305(0x1d7)],_0x1339da=_0x5daeac[_0x484305(0x346)],_0x38c64d=_0x3dbbab[_0x484305(0x16c)]||_0x3dbbab[_0x484305(0x1b9)]||_0x3dbbab['gdRefAng']||_0x3dbbab['gdRefR'];if(_0x38c64d!==void 0x0){var _0x236a31;let _0x5b35ab=(_0x236a31=this[_0x484305(0x462)])==null?void 0x0:_0x236a31[_0x484305(0x40e)](_0x38c64d);_0x5b35ab!==void 0x0&&_0x4ab2ae(this[_0x484305(0x366)],_0x40e4bc,_0x300218,_0x1339da,{'oldShapeData':{'adjustValues':_0x568264}},{'adjustValues':{[_0x38c64d]:_0x5b35ab}});}}this[_0x484305(0x205)]=void 0x0,this[_0x484305(0x462)]=void 0x0,this[_0x484305(0x3fd)]=!0x1,_0x456b8b['stopPropagation'](),_0x47e2cd[_0x484305(0x362)]();}),_0x167c9d[_0x41a625(0x264)]();})));}[_0x256dbb(0x3e5)](){const _0x85d849=_0x256dbb;let _0x1e362d=this[_0x85d849(0x17e)][_0x85d849(0x2f4)](_0x4149d4[_0x85d849(0x305)][_0x85d849(0x1ea)]);this[_0x85d849(0x283)](_0x1e362d[_0x85d849(0x290)]((0x0,_0x5c1471[_0x85d849(0x2cb)])(_0x527d5c=>_0x527d5c?_0x527d5c[_0x85d849(0x345)][_0x85d849(0x290)]((0x0,_0x5c1471[_0x85d849(0x2cb)])(_0x393dc1=>{const _0x40dfc1=_0x85d849;if(!_0x393dc1)return _0x5c1471[_0x40dfc1(0x3e9)];let _0x145b34=_0x527d5c[_0x40dfc1(0x2ea)](),_0x168155=this[_0x40dfc1(0x2c3)]['getRenderById'](_0x145b34),_0x1ba479=_0x168155==null?void 0x0:_0x168155[_0x40dfc1(0x257)];return _0x1ba479?(0x0,_0x5c1471['of'])(_0x1ba479):_0x5c1471[_0x40dfc1(0x3e9)];})):_0x5c1471[_0x85d849(0x3e9)]))[_0x85d849(0x22a)](_0x1769c2=>{const _0x16ffe7=_0x85d849;let _0x3f9a69=_0x1769c2[_0x16ffe7(0x2e9)]();this[_0x16ffe7(0x283)](_0x1769c2['onPointerMove$'][_0x16ffe7(0x2c1)](()=>{const _0x4cf0af=_0x16ffe7;this[_0x4cf0af(0x266)];})),this[_0x16ffe7(0x283)](_0x3f9a69[_0x16ffe7(0x43a)][_0x16ffe7(0x22a)](_0x89e295=>{const _0x920d16=_0x16ffe7;let {objects:_0x115f9c}=_0x89e295;this[_0x920d16(0x20b)](),_0x115f9c!==null&&_0x115f9c[_0x920d16(0x3d7)]===0x1&&_0x115f9c[_0x920d16(0x272)]()[_0x920d16(0x32b)]()[_0x920d16(0x38a)]instanceof _0x1a5a1c&&this[_0x920d16(0x1a1)](!0x0);})),this[_0x16ffe7(0x283)](_0x3f9a69[_0x16ffe7(0x2ce)][_0x16ffe7(0x22a)](()=>{const _0x119785=_0x16ffe7;this[_0x119785(0x266)]&&this['_clearShapeAdjustControls']();})),this[_0x16ffe7(0x283)](_0x1769c2['onPointerUp$']['subscribeEvent'](()=>{const _0x3a2a30=_0x16ffe7;this[_0x3a2a30(0x266)]&&(this[_0x3a2a30(0x1a1)](!0x1),this['_createShapeAdjustControls']());})),this[_0x16ffe7(0x283)](_0x3f9a69[_0x16ffe7(0x269)][_0x16ffe7(0x22a)](()=>{const _0x77813f=_0x16ffe7;this[_0x77813f(0x15c)]&&this[_0x77813f(0x299)]&&this[_0x77813f(0x2d3)]&&this[_0x77813f(0x1be)][_0x77813f(0x472)]({'unitId':this[_0x77813f(0x15c)],'subUnitId':this[_0x77813f(0x299)],'drawingId':this[_0x77813f(0x2d3)]})&&(this[_0x77813f(0x279)]=this[_0x77813f(0x2c0)](this[_0x77813f(0x15c)],this['_subUnitId'],this[_0x77813f(0x2d3)]),this['_updateAdjustControlPositions']());}));}));}[_0x256dbb(0x1e7)](){const _0x1ce1db=_0x256dbb;this[_0x1ce1db(0x283)](this[_0x1ce1db(0x1be)][_0x1ce1db(0x47a)]['subscribe'](_0x591b1f=>{const _0x48f64f=_0x1ce1db;if(_0x591b1f[_0x48f64f(0x234)]===0x1){let _0x218318=_0x591b1f[0x0];if(_0x218318[_0x48f64f(0x277)]===_0x4149d4['DrawingTypeEnum'][_0x48f64f(0x3ca)]){this[_0x48f64f(0x2d3)]=_0x218318[_0x48f64f(0x346)];let {unitId:_0x45abb6,subUnitId:_0x286732}=_0x218318;this[_0x48f64f(0x279)]=this[_0x48f64f(0x2c0)](_0x45abb6,_0x286732,this[_0x48f64f(0x2d3)]),this[_0x48f64f(0x15c)]=_0x45abb6,this[_0x48f64f(0x299)]=_0x286732,this[_0x48f64f(0x295)](),this[_0x48f64f(0x20b)]();}else this[_0x48f64f(0x2d3)]=null,this[_0x48f64f(0x279)]=void 0x0,this[_0x48f64f(0x15c)]=null,this[_0x48f64f(0x299)]=null,this['_clearShapeAdjustControls']();}(_0x591b1f[_0x48f64f(0x234)]>0x1||_0x591b1f[_0x48f64f(0x234)]===0x0)&&(this[_0x48f64f(0x2d3)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x48f64f(0x15c)]=null,this[_0x48f64f(0x299)]=null,this['_clearShapeAdjustControls']());})),this[_0x1ce1db(0x283)](this['_drawingManagerService'][_0x1ce1db(0x1bf)]['subscribe'](_0x1b6a32=>{const _0x22b708=_0x1ce1db;if(_0x1b6a32[_0x22b708(0x234)]===0x1){var _0x5aa894;let _0x112a4d=_0x1b6a32[0x0];((_0x5aa894=this[_0x22b708(0x1be)][_0x22b708(0x472)](_0x112a4d))==null?void 0x0:_0x5aa894[_0x22b708(0x277)])===_0x4149d4['DrawingTypeEnum'][_0x22b708(0x3ca)]&&this[_0x22b708(0x1cf)](!0x0);}})),this[_0x1ce1db(0x283)](this['_drawingManagerService'][_0x1ce1db(0x1c8)][_0x1ce1db(0x22a)](_0x5cbabd=>{const _0x2f342b=_0x1ce1db;for(let _0x1aca6b of _0x5cbabd)this[_0x2f342b(0x2d3)]===_0x1aca6b['drawingId']&&(this[_0x2f342b(0x2d3)]=null,this[_0x2f342b(0x279)]=void 0x0,this['_unitId']=null,this['_subUnitId']=null,this[_0x2f342b(0x295)]());}));}};_0x4404c6=_0x53314b([_0x4529c8(0x0,_0x85b915[_0x256dbb(0x44d)]),_0x4529c8(0x1,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x4af378['SheetsShapeService'])),_0x4529c8(0x2,(0x0,_0x4149d4['Inject'])(_0x55342f[_0x256dbb(0x16f)])),_0x4529c8(0x3,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x542c35)),_0x4529c8(0x4,_0x4149d4[_0x256dbb(0x2b3)]),_0x4529c8(0x5,_0x4149d4[_0x256dbb(0x357)])],_0x4404c6);let _0x59fea1={'id':_0x256dbb(0x308),'type':_0x4149d4['CommandType'][_0x256dbb(0x473)],'handler':(_0x2d5717,_0x72b850)=>{const _0x166387=_0x256dbb;let _0x482465=_0x2d5717[_0x166387(0x451)](_0x85b915['IDrawingManagerService']),_0x30ea31=_0x2d5717[_0x166387(0x451)](_0x55342f['IRenderManagerService']),_0x4b8da8=_0x2d5717[_0x166387(0x451)](_0x4404c6);if(_0x72b850==null)return!0x0;if(_0x72b850['length']>0x0){var _0x5e6641;let _0xc0811e=(_0x5e6641=_0x30ea31['getRenderById'](_0x72b850[0x0][_0x166387(0x384)]))==null?void 0x0:_0x5e6641[_0x166387(0x257)];if(_0xc0811e){let {unitId:_0x2e8c1d,subUnitId:_0x4baf34,drawingId:_0x506de1}=_0x72b850[0x0],_0x52e016=(0x0,_0x85b915[_0x166387(0x437)])({'unitId':_0x2e8c1d,'subUnitId':_0x4baf34,'drawingId':_0x506de1},void 0x0),_0x48ffd4=_0xc0811e['getObjectIncludeInGroup'](_0x52e016);if(_0x48ffd4){var _0x727d25;(_0x727d25=_0x30ea31[_0x166387(0x1a3)](_0x72b850[0x0][_0x166387(0x384)]))==null||(_0x727d25=_0x727d25[_0x166387(0x257)][_0x166387(0x3a0)]())==null||_0x727d25['activeAnObject'](_0x48ffd4);}}_0x482465[_0x166387(0x19c)](_0x72b850),_0x4b8da8['setShouldShowAdjust'](!0x1);}return!0x0;}},_0x546d4c={'type':_0x4149d4['CommandType']['COMMAND'],'id':'sheet.command.menu-insert-shape','handler':async(_0x585b85,_0x5e0713)=>{const _0x4b6bce=_0x256dbb;let _0x1d1182=(0x0,_0x45e9dd[_0x4b6bce(0x1ec)])(_0x585b85[_0x4b6bce(0x451)](_0x4149d4[_0x4b6bce(0x2b3)]));if(!_0x1d1182)return!0x1;let _0x42e991=_0x585b85['get'](_0x45e9dd[_0x4b6bce(0x1a2)])[_0x4b6bce(0x261)]();if(!_0x42e991)return!0x1;let _0xf0d13c=_0x585b85[_0x4b6bce(0x451)](_0x4149d4['ICommandService']),{unitId:_0xeaeb9c,subUnitId:_0x40f6e5}=_0x1d1182,{value:_0xfffe50,enhanceParams:_0xf72744}=_0x5e0713,{range:_0x3f8e5b}=_0x42e991,_0x37754b={'unitId':_0xeaeb9c,'subUnitId':_0x40f6e5,'shapeType':_0xfffe50,'range':_0x3f8e5b,'shapeId':(0x0,_0x4149d4['generateRandomId'])()};if(_0xf72744){let _0x9339e1=(0x0,_0x5b498f[_0x4b6bce(0x237)])(_0xfffe50),_0x548567=_0xfffe50===_0x5b498f[_0x4b6bce(0x2a1)]['Rect'];_0x9339e1&&(_0xf72744[_0x4b6bce(0x339)]||_0xf72744[_0x4b6bce(0x188)])&&(_0x37754b[_0x4b6bce(0x1f3)]={'ln':{'startArrow':_0xf72744[_0x4b6bce(0x339)]?{'type':_0x5b498f[_0x4b6bce(0x1a4)][_0x4b6bce(0x177)],'size':_0x5b498f[_0x4b6bce(0x395)][_0x4b6bce(0x414)]}:void 0x0,'endArrow':_0xf72744[_0x4b6bce(0x188)]?{'type':_0x5b498f['ShapeArrowTypeEnum'][_0x4b6bce(0x177)],'size':_0x5b498f['ShapeArrowSizeEnum'][_0x4b6bce(0x33b)]}:void 0x0}}),_0x548567&&(_0xf72744[_0x4b6bce(0x21d)]||_0xf72744[_0x4b6bce(0x419)])&&(_0x37754b[_0x4b6bce(0x1f3)]=(0x0,_0x5d2674[_0x4b6bce(0x31b)])({'fill':{'fillType':_0x5b498f[_0x4b6bce(0x322)][_0x4b6bce(0x193)],'color':_0x4b6bce(0x46c)},'isHorizontal':!!_0xf72744[_0x4b6bce(0x21d)],'stroke':{'lineStrokeType':_0x5b498f['ShapeLineTypeEnum']['SolidLine'],'width':0x1,'color':_0x4b6bce(0x2d0)}}));}let _0x3ffc50=_0xf0d13c[_0x4b6bce(0x2a0)](_0x4af378[_0x4b6bce(0x330)]['id'],_0x37754b);return setTimeout(()=>{const _0x5a6f89=_0x4b6bce;_0xf0d13c[_0x5a6f89(0x2aa)](_0x59fea1['id'],[{'unitId':_0xeaeb9c,'subUnitId':_0x40f6e5,'drawingId':_0x37754b[_0x5a6f89(0x204)]}]);},0xc8),_0x3ffc50;}},_0x5815da='sheet.shape.edit.panel',_0x58150d='sheet.shape.object-list.panel',_0x415db9=_0x256dbb(0x16d),_0x251518=(0x0,_0x4149d4[_0x256dbb(0x219)])('SHAPE_TEXT'),_0x2f1acd=_0x256dbb(0x463),_0x39f904={'id':_0x256dbb(0x2f2),'type':_0x4149d4[_0x256dbb(0x401)][_0x256dbb(0x42b)],'handler':(_0x170fed,_0x2367d9)=>{const _0x3d0d12=_0x256dbb;let _0x20fac5=_0x170fed[_0x3d0d12(0x451)](_0x13ac91[_0x3d0d12(0x2cc)]),_0x4c61b3=_0x170fed[_0x3d0d12(0x451)](_0x4149d4[_0x3d0d12(0x3f4)]),_0x45078e=_0x170fed[_0x3d0d12(0x451)](_0x4149d4['IUniverInstanceService']),_0x51fbbe=_0x170fed['get'](_0x4149d4[_0x3d0d12(0x357)]);return(0x0,_0x45e9dd['getSheetCommandTarget'])(_0x45078e)?(_0x2367d9==null?void 0x0:_0x2367d9['value'])===_0x3d0d12(0x415)?(_0x20fac5[_0x3d0d12(0x415)](_0x58150d),!0x0):(_0x20fac5[_0x3d0d12(0x27f)]({'id':_0x58150d,'header':{'title':_0x4c61b3['t'](_0x3d0d12(0x2f6))},'children':{'label':_0x58150d},'onClose':()=>{const _0x30c1cf=_0x3d0d12;_0x51fbbe[_0x30c1cf(0x2a0)](_0x85b915['SetDrawingSelectedOperation']['id'],[]);},'width':0x168}),!0x0):!0x1;}},_0x361f72=class extends _0x4149d4[_0x256dbb(0x450)]{constructor(_0xe354b3,_0x5e16e4){const _0x5231ed=_0x256dbb;super(),this[_0x5231ed(0x1ff)]=_0xe354b3,this[_0x5231ed(0x1be)]=_0x5e16e4,this[_0x5231ed(0x393)](),this[_0x5231ed(0x1ff)][_0x5231ed(0x2b1)](!0x0),this[_0x5231ed(0x283)]({'dispose':()=>this[_0x5231ed(0x1ff)][_0x5231ed(0x2b1)](!0x1)});}[_0x256dbb(0x393)](){const _0x39caec=_0x256dbb;let _0x11dbf3=this['_clipService'],_0x5aa799=new Map(),_0x1242cc=_0x11dbf3[_0x39caec(0x28d)]((_0x49e7a0,_0x249909,_0x19f50f,_0x2524b7,_0x181ba)=>{const _0x23d11c=_0x39caec;let _0x505cd2=_0x249909;if(_0x505cd2===_0x5b498f[_0x23d11c(0x2a1)]['None']||_0x249909===_0x23d11c(0x220))return!0x1;try{let _0x4550d8=_0x5aa799[_0x23d11c(0x451)](_0x249909);return _0x4550d8||(_0x4550d8=new _0x5b498f[(_0x23d11c(0x370))](_0x505cd2,_0x23d11c(0x2f9)+_0x249909),_0x5aa799[_0x23d11c(0x2e0)](_0x249909,_0x4550d8)),_0x181ba&&_0x4550d8[_0x23d11c(0x265)]({'adjustValues':_0x181ba},!0x0),_0x4550d8['updateContext']({'width':_0x19f50f,'height':_0x2524b7}),_0x4550d8[_0x23d11c(0x1ce)](_0x49e7a0,{'left':0x0,'top':0x0,'width':_0x19f50f,'height':_0x2524b7});}catch{return!0x1;}});this[_0x39caec(0x283)](_0x1242cc),this['disposeWithMe']({'dispose':()=>_0x5aa799[_0x39caec(0x2f7)]()});}[_0x256dbb(0x32a)](_0xcdf649,_0x347b32,_0x17f659,_0x4f9072,_0x4eccda){const _0x59ae85=_0x256dbb;let _0x494fc8=this[_0x59ae85(0x1be)][_0x59ae85(0x323)](_0xcdf649,_0x347b32);if(!_0x494fc8[_0x17f659])return;let _0x4b3590={..._0x494fc8[_0x17f659],'prstGeom':_0x4f9072,'adjustValues':_0x4eccda};this[_0x59ae85(0x1be)][_0x59ae85(0x358)]([_0x4b3590]);}};_0x361f72=_0x53314b([_0x4529c8(0x0,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x306eb1['DrawingImageClipService'])),_0x4529c8(0x1,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x85b915['IDrawingManagerService']))],_0x361f72);let _0x58637e=_0x256dbb(0x2e4),_0x2b58a6='sheet.image-clip.shape-picker.component';function _0x439aff({onShapeClick:_0x2611b5,excludeGroups:_0x48fd40}){const _0x5cf00c=_0x256dbb;return(0x0,_0x20ca5c[_0x5cf00c(0x3e2)])(_0x5d2674[_0x5cf00c(0x3d3)],{'excludeGroups':_0x48fd40,'onShapeClick':_0x2611b5,'scrollContainer':'parent'});}function _0x220a6e(){const _0x10265b=_0x256dbb;let _0x1befaa=(0x0,_0x13ac91[_0x10265b(0x30f)])(_0x85b915[_0x10265b(0x44d)]),_0x31974c=(0x0,_0x13ac91[_0x10265b(0x30f)])(_0x361f72);return(0x0,_0x20ca5c['jsx'])(_0x5d2674[_0x10265b(0x1e1)],{'buttonLabel':_0x10265b(0x16e),'excludeGroups':[_0x5d2674[_0x10265b(0x195)]['Line']],'onShapeClick':_0xb61dda=>{const _0x34c2e0=_0x10265b;let _0x31fd0f=_0x1befaa[_0x34c2e0(0x3c1)]()['find'](_0x1bd79f=>_0x1bd79f[_0x34c2e0(0x277)]===_0x4149d4[_0x34c2e0(0x29a)]['DRAWING_IMAGE']);if(!_0x31fd0f)return;let {unitId:_0x1abfb0,subUnitId:_0xc14eda,drawingId:_0x181faf}=_0x31fd0f;_0x31974c[_0x34c2e0(0x32a)](_0x1abfb0,_0xc14eda,_0x181faf,_0xb61dda[_0x34c2e0(0x46a)]);}});}function _0x4d4392(){const _0x227265=_0x256dbb;let _0x1f2817=(0x0,_0x13ac91['useDependency'])(_0x13ac91[_0x227265(0x2f0)]),_0x2aae7d=(0x0,_0x13ac91[_0x227265(0x30f)])(_0x85b915['IDrawingManagerService']),_0x3812eb=(0x0,_0x13ac91['useDependency'])(_0x4149d4['IUniverInstanceService']),_0x3fb9b3=_0x2aae7d[_0x227265(0x3c1)]()[0x0],_0x2dd836=_0x3fb9b3?_0x3812eb[_0x227265(0x176)](_0x3fb9b3[_0x227265(0x384)]):void 0x0,_0xdb0c1a=_0x2dd836===_0x4149d4[_0x227265(0x305)][_0x227265(0x42a)]?_0x227265(0x2c8):_0x2dd836===_0x4149d4['UniverInstanceType']['UNIVER_SHEET']?_0x2b58a6:void 0x0,_0x144ecb=_0xdb0c1a?_0x1f2817[_0x227265(0x451)](_0xdb0c1a):void 0x0;return _0x144ecb?(0x0,_0x20ca5c[_0x227265(0x3e2)])(_0x144ecb,{}):null;}function _0x32c5e8(){const _0xd99203=_0x256dbb;let _0x155c50=(0x0,_0x13ac91[_0xd99203(0x30f)])(_0x4149d4[_0xd99203(0x357)]);return(0x0,_0x20ca5c[_0xd99203(0x3e2)])(_0x439aff,{'onShapeClick':_0x32cf3e=>{const _0x3138bf=_0xd99203;_0x155c50[_0x3138bf(0x2aa)](_0x546d4c['id'],{'value':_0x32cf3e[_0x3138bf(0x46a)],'enhanceParams':{'endArrow':_0x32cf3e[_0x3138bf(0x188)],'startArrow':_0x32cf3e[_0x3138bf(0x339)],'horizontal':_0x32cf3e[_0x3138bf(0x21d)],'vertical':_0x32cf3e['vertical']}});}});}function _0x2a6ecc(_0x264abf){const _0x16594c=_0x256dbb;let _0x2caf0c=_0x264abf[_0x16594c(0x451)](_0x4149d4[_0x16594c(0x2b3)]);return{'id':_0x546d4c['id'],'type':_0x13ac91[_0x16594c(0x431)][_0x16594c(0x240)],'selections':[{'label':{'name':_0x58637e,'hoverable':!0x1,'selectable':!0x1,'props':{'id':_0x546d4c['id']}}}],'icon':_0x16594c(0x1de),'tooltip':_0x16594c(0x267),'activated$':(0x0,_0x57bfe3[_0x16594c(0x3df)])(_0x2caf0c,!0x1,()=>new _0x5c1471[(_0x16594c(0x27e))](_0x57f02e=>{const _0x551cd8=_0x16594c;_0x57f02e[_0x551cd8(0x32b)](!0x1);})),'hidden$':(0x0,_0x13ac91[_0x16594c(0x228)])(_0x264abf,_0x4149d4['UniverInstanceType'][_0x16594c(0x1ea)]),'disabled$':(0x0,_0x57bfe3[_0x16594c(0x3db)])(_0x264abf)};}function _0x155955(_0x274e90){const _0x2afbae=_0x256dbb;let _0x3fc31c=_0x274e90[_0x2afbae(0x451)](_0x4149d4[_0x2afbae(0x2b3)]);return{'id':_0x39f904['id'],'type':_0x13ac91[_0x2afbae(0x431)][_0x2afbae(0x211)],'icon':_0x2afbae(0x3f8),'title':_0x2afbae(0x45d),'tooltip':_0x2afbae(0x45d),'activated$':(0x0,_0x57bfe3[_0x2afbae(0x3df)])(_0x3fc31c,!0x1,()=>new _0x5c1471[(_0x2afbae(0x27e))](_0x2d303f=>{const _0x4fcdc5=_0x2afbae;_0x2d303f[_0x4fcdc5(0x32b)](!0x1);})),'hidden$':(0x0,_0x13ac91[_0x2afbae(0x228)])(_0x274e90,_0x4149d4[_0x2afbae(0x305)][_0x2afbae(0x1ea)]),'disabled$':(0x0,_0x57bfe3[_0x2afbae(0x3db)])(_0x274e90)};}let _0x170537={[_0x13ac91[_0x256dbb(0x2b0)]['MEDIA']]:{[_0x546d4c['id']]:{'order':0x4,'menuItemFactory':_0x2a6ecc},[_0x39f904['id']]:{'order':4.1,'menuItemFactory':_0x155955}}};var _0xcbe27d='@univerjs-pro/sheets-shape-ui',_0x3f5c5e=_0x256dbb(0x38e);let _0x4ab750={'type':_0x4149d4['CommandType'][_0x256dbb(0x473)],'id':_0x256dbb(0x24d),'handler'(){return!0x0;}},_0x2f9ccc={'type':_0x4149d4[_0x256dbb(0x401)]['OPERATION'],'id':_0x256dbb(0x39d),'handler'(){return!0x0;}},_0x5ef579={};function _0x3806de({ref:_0x1f52f1,..._0x4fa25b}){const _0x228b6e=_0x256dbb;let {icon:_0x3434fd,id:_0x13d4e7,className:_0x24138f,extend:_0x199735,..._0x2ebe04}=_0x4fa25b,_0x379e83=(_0x228b6e(0x347)+_0x13d4e7+'\x20'+(_0x24138f||''))[_0x228b6e(0x158)](),_0xd1b48a=(0x0,_0x2423ea[_0x228b6e(0x32c)])('_'+_0xdade3c());return _0x4035d7(_0x3434fd,''+_0x13d4e7,{'defIds':_0x3434fd[_0x228b6e(0x2a8)],'idSuffix':_0xd1b48a[_0x228b6e(0x404)]},{'ref':_0x1f52f1,'className':_0x379e83,..._0x2ebe04},_0x199735);}function _0x4035d7(_0x5c20da,_0x55e6ae,_0x5f45d5,_0x2c15a6,_0x410d08){const _0x37cd45=_0x256dbb;return(0x0,_0x2423ea[_0x37cd45(0x3fa)])(_0x5c20da[_0x37cd45(0x2fe)],{'key':_0x55e6ae,..._0x2a91d7(_0x5c20da,_0x5f45d5,_0x410d08),..._0x2c15a6},(_0x4963e9(_0x5c20da,_0x5f45d5)[_0x37cd45(0x34c)]||[])[_0x37cd45(0x38f)]((_0x5924ed,_0x2af2a3)=>_0x4035d7(_0x5924ed,_0x55e6ae+'-'+_0x5c20da[_0x37cd45(0x2fe)]+'-'+_0x2af2a3,_0x5f45d5,void 0x0,_0x410d08)));}function _0x2a91d7(_0x449029,_0xef6c53,_0x22fe57){const _0x5dd27d=_0x256dbb;let _0x4b5393={..._0x449029[_0x5dd27d(0x245)]};_0x22fe57!=null&&_0x22fe57[_0x5dd27d(0x457)]&&_0x4b5393['fill']===_0x5dd27d(0x457)&&(_0x4b5393[_0x5dd27d(0x35a)]=_0x22fe57[_0x5dd27d(0x457)]),_0x22fe57!=null&&_0x22fe57[_0x5dd27d(0x457)]&&_0x4b5393['stroke']==='colorChannel1'&&(_0x4b5393['stroke']=_0x22fe57['colorChannel1']),_0x449029[_0x5dd27d(0x2fe)]===_0x5dd27d(0x406)&&_0x4b5393['id']&&(_0x4b5393['id']+=_0xef6c53['idSuffix']),Object[_0x5dd27d(0x1b6)](_0x4b5393)[_0x5dd27d(0x43e)](([_0x106fc8,_0x703a7b])=>{const _0xb5df94=_0x5dd27d;_0x106fc8==='mask'&&typeof _0x703a7b==_0xb5df94(0x3aa)&&(_0x4b5393[_0x106fc8]=_0x703a7b['replace'](/url\(#(.*)\)/,'url(#$1'+_0xef6c53[_0xb5df94(0x1b8)]+')'));});let {defIds:_0x552744}=_0xef6c53;return!_0x552744||_0x552744[_0x5dd27d(0x234)]===0x0?_0x4b5393:(_0x449029['tag']===_0x5dd27d(0x469)&&_0x4b5393[_0x5dd27d(0x236)]&&(_0x4b5393['xlink:href']+=_0xef6c53[_0x5dd27d(0x1b8)]),Object[_0x5dd27d(0x1b6)](_0x4b5393)[_0x5dd27d(0x43e)](([_0x162b71,_0x106f29])=>{const _0x1aec10=_0x5dd27d;typeof _0x106f29==_0x1aec10(0x3aa)&&(_0x4b5393[_0x162b71]=_0x106f29['replace'](/url\(#(.*)\)/,_0x1aec10(0x194)+_0xef6c53['idSuffix']+')'));}),_0x4b5393);}function _0x4963e9(_0x433f0c,_0xdbaa21){const _0x3f7b8f=_0x256dbb;var _0x58f6cc;let {defIds:_0x4c4916}=_0xdbaa21;return!_0x4c4916||_0x4c4916[_0x3f7b8f(0x234)]===0x0?_0x433f0c:_0x433f0c[_0x3f7b8f(0x2fe)]===_0x3f7b8f(0x43f)&&(_0x58f6cc=_0x433f0c[_0x3f7b8f(0x34c)])!=null&&_0x58f6cc['length']?{..._0x433f0c,'children':_0x433f0c['children'][_0x3f7b8f(0x38f)](_0x3bd22e=>typeof _0x3bd22e[_0x3f7b8f(0x245)]['id']=='string'&&_0x4c4916&&_0x4c4916[_0x3f7b8f(0x321)](_0x3bd22e['attrs']['id'])?{..._0x3bd22e,'attrs':{..._0x3bd22e[_0x3f7b8f(0x245)],'id':_0x3bd22e[_0x3f7b8f(0x245)]['id']+_0xdbaa21[_0x3f7b8f(0x1b8)]}}:_0x3bd22e)}:_0x433f0c;}function _0xdade3c(){const _0x4cc480=_0x256dbb;return Math[_0x4cc480(0x210)]()[_0x4cc480(0x18a)](0x24)[_0x4cc480(0x44c)](0x2,0x8);}_0x3806de[_0x256dbb(0x229)]=_0x256dbb(0x394);let _0x5a5031={'tag':_0x256dbb(0x1dc),'attrs':{'xmlns':_0x256dbb(0x3dd),'fill':_0x256dbb(0x169),'viewBox':'0\x200\x2016\x2016','width':_0x256dbb(0x2d5),'height':_0x256dbb(0x2d5)},'children':[{'tag':_0x256dbb(0x251),'attrs':{'fill':_0x256dbb(0x457),'d':_0x256dbb(0x263),'fillRule':_0x256dbb(0x25f),'clipRule':'evenodd'}},{'tag':_0x256dbb(0x251),'attrs':{'fill':_0x256dbb(0x3c6),'d':_0x256dbb(0x36a),'fillRule':_0x256dbb(0x25f),'clipRule':'evenodd'}}]},_0x9cc0ed=(0x0,_0x2423ea['forwardRef'])(function(_0x543de7,_0x197c3a){const _0x3f468a=_0x256dbb;return(0x0,_0x2423ea[_0x3f468a(0x3fa)])(_0x3806de,Object[_0x3f468a(0x294)]({},_0x543de7,{'id':_0x3f468a(0x3cb),'ref':_0x197c3a,'icon':_0x5a5031}));});_0x9cc0ed[_0x256dbb(0x229)]=_0x256dbb(0x3f8);function _0x34a560(_0xbb8a61){const _0x42decc=_0x256dbb;return _0xbb8a61[_0x42decc(0x158)]()||void 0x0;}function _0x336f64(_0x99fd68){const _0x5abf99=_0x256dbb;switch(_0x99fd68[_0x5abf99(0x277)]){case _0x4149d4[_0x5abf99(0x29a)][_0x5abf99(0x2bf)]:return _0x5abf99(0x334);case _0x4149d4['DrawingTypeEnum'][_0x5abf99(0x173)]:return _0x5abf99(0x187);case _0x4149d4['DrawingTypeEnum'][_0x5abf99(0x164)]:return _0x5abf99(0x27c);case _0x4149d4['DrawingTypeEnum'][_0x5abf99(0x3b6)]:return _0x5abf99(0x34b);case _0x4149d4[_0x5abf99(0x29a)][_0x5abf99(0x3bc)]:return'video';case _0x4149d4[_0x5abf99(0x29a)]['DRAWING_GROUP']:return _0x5abf99(0x3f2);case _0x4149d4[_0x5abf99(0x29a)][_0x5abf99(0x344)]:return _0x5abf99(0x22c);case _0x4149d4['DrawingTypeEnum']['DRAWING_DOM']:return _0x5abf99(0x199);case _0x4149d4[_0x5abf99(0x29a)][_0x5abf99(0x3ca)]:return _0x5abf99(0x353);default:return'object';}}function _0x20927c(_0x35cdcb,_0x4132bf,_0x31b804){const _0x2fe3d6=_0x256dbb;var _0x50fac3;return((_0x50fac3=_0x35cdcb[_0x2fe3d6(0x19b)])==null?void 0x0:_0x50fac3['trim']())||(0x0,_0x306eb1[_0x2fe3d6(0x1db)])(_0x31b804,_0x336f64(_0x35cdcb))+'\x20'+(_0x4132bf+0x1);}function _0x4ca727(){const _0x4e673a=_0x256dbb;var _0x2a96c6,_0x3f2dbb,_0x20ac1a,_0x5b1522;let _0x4e4a45=(0x0,_0x13ac91[_0x4e673a(0x30f)])(_0x4149d4[_0x4e673a(0x3f4)]),_0x5262f7=(0x0,_0x13ac91[_0x4e673a(0x30f)])(_0x4149d4[_0x4e673a(0x357)]),_0x1b4c08=(0x0,_0x13ac91[_0x4e673a(0x30f)])(_0x4149d4['IUniverInstanceService']),_0x29fa38=(0x0,_0x13ac91[_0x4e673a(0x30f)])(_0x1e9ca9[_0x4e673a(0x3b0)]),_0x3ef1a3=(0x0,_0x13ac91[_0x4e673a(0x30f)])(_0x85b915['IDrawingManagerService']),_0x4dba26=(0x0,_0x13ac91['useDependency'])(_0x55342f[_0x4e673a(0x16f)]),[,_0xdf380d]=(0x0,_0x2423ea[_0x4e673a(0x3b4)])(_0x7a420=>_0x7a420+0x1,0x0),_0x1a81f6=_0x1b4c08[_0x4e673a(0x47c)](_0x4149d4[_0x4e673a(0x305)][_0x4e673a(0x1ea)]),_0x657ece=(_0x2a96c6=_0x1a81f6==null?void 0x0:_0x1a81f6['getUnitId']())==null?'':_0x2a96c6,_0x1dc1a6=(_0x3f2dbb=_0x1a81f6==null||(_0x20ac1a=_0x1a81f6['getActiveSheet']())==null?void 0x0:_0x20ac1a['getSheetId']())==null?'':_0x3f2dbb,_0x396c46=(0x0,_0x13ac91[_0x4e673a(0x466)])(()=>_0x3ef1a3[_0x4e673a(0x47a)],_0x3ef1a3[_0x4e673a(0x3c1)](),!0x1,[_0x3ef1a3]);(0x0,_0x2423ea['useEffect'])(()=>{const _0x3dd874=_0x4e673a;let _0x2fda15=_0x5262f7[_0x3dd874(0x185)](()=>_0xdf380d());return()=>_0x2fda15[_0x3dd874(0x1c5)]();},[_0x5262f7]);let _0x587d77=_0x657ece&&_0x1dc1a6?_0x29fa38['getDrawingData'](_0x657ece,_0x1dc1a6):{},_0x496855=_0x657ece&&_0x1dc1a6?_0x29fa38[_0x4e673a(0x3a4)](_0x657ece,_0x1dc1a6):[],_0x3b3b29=(0x0,_0x2423ea[_0x4e673a(0x196)])(()=>(0x0,_0x306eb1[_0x4e673a(0x45b)])(_0x4e4a45),[_0x4e4a45]),_0x501d86=(0x0,_0x2423ea['useMemo'])(()=>{const _0x2fb666=_0x4e673a;let _0x3f1bd2=_0x496855['map'](_0x2f66c1=>_0x587d77[_0x2f66c1])[_0x2fb666(0x1c4)](_0xfceaa4=>!!_0xfceaa4)[_0x2fb666(0x253)](),_0x5f2bd4=_0x3f1bd2[_0x2fb666(0x318)]((_0x1c3b22,_0x41cd03)=>(_0x1c3b22[(0x0,_0x306eb1[_0x2fb666(0x364)])(_0x41cd03['drawingType'])]+=0x1,_0x1c3b22),{'canvas':0x0,'floating':0x0}),_0x39a4c0={'canvas':0x0,'floating':0x0};return _0x3f1bd2[_0x2fb666(0x38f)]((_0x43b37c,_0x6776c7)=>{const _0x815d3e=_0x2fb666;let _0x4d74fc=(0x0,_0x306eb1[_0x815d3e(0x364)])(_0x43b37c[_0x815d3e(0x277)]),_0x85e19a=_0x4d74fc===_0x306eb1[_0x815d3e(0x386)],_0x16ac0e=_0x39a4c0[_0x4d74fc]++;return{'id':_0x43b37c[_0x815d3e(0x346)],'name':_0x20927c(_0x43b37c,_0x6776c7,_0x4e4a45),'description':_0x43b37c['description'],'visible':_0x43b37c[_0x815d3e(0x23d)]!==!0x0,'selectable':_0x43b37c[_0x815d3e(0x325)]!==!0x1,'sectionId':_0x4d74fc,'sectionTitle':_0x85e19a?_0x3b3b29['sectionFloating']:_0x3b3b29[_0x815d3e(0x15b)],'capabilities':_0x85e19a?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x85e19a&&_0x16ac0e>0x0,'canMoveBackward':!_0x85e19a&&_0x16ac0e<_0x5f2bd4[_0x815d3e(0x17f)]-0x1,'canReorder':!_0x85e19a};});},[_0x587d77,_0x496855,_0x3b3b29[_0x4e673a(0x15b)],_0x3b3b29['sectionFloating'],_0x4e4a45]),_0x406686=(0x0,_0x2423ea[_0x4e673a(0x196)])(()=>(_0x396c46==null?[]:_0x396c46)['filter'](_0x42ac67=>_0x42ac67[_0x4e673a(0x384)]===_0x657ece&&_0x42ac67['subUnitId']===_0x1dc1a6)['map'](_0x24df22=>_0x24df22[_0x4e673a(0x346)]),[_0x396c46,_0x1dc1a6,_0x657ece]),_0x2facd2=(_0x5b1522=_0x406686[_0x406686[_0x4e673a(0x234)]-0x1])==null?null:_0x5b1522,_0x4a2a26=_0x5a9068=>{const _0x5903e1=_0x4e673a;var _0x5938e4;return(_0x5938e4=_0x29fa38[_0x5903e1(0x472)]({'unitId':_0x657ece,'subUnitId':_0x1dc1a6,'drawingId':_0x5a9068}))==null?null:_0x5938e4;},_0x1d4a24=_0x167392=>{const _0x5168ea=_0x4e673a;!_0x657ece||!_0x167392[_0x5168ea(0x234)]||_0x5262f7[_0x5168ea(0x2aa)](_0x1e9ca9[_0x5168ea(0x30a)]['id'],{'unitId':_0x657ece,'drawings':_0x167392});},_0x47ebfa=(_0x8a1bf5,_0xdcbba1)=>{_0x4a2a26(_0x8a1bf5)&&_0x1d4a24([{'unitId':_0x657ece,'subUnitId':_0x1dc1a6,'drawingId':_0x8a1bf5,..._0xdcbba1}]);},_0x48d5a7=(_0x12a4ad,_0x59df5b)=>{const _0x521fc=_0x4e673a;if(!_0x657ece||!_0x1dc1a6)return;let _0x54f46d=_0x59df5b?_0x406686[_0x521fc(0x321)](_0x12a4ad)?_0x406686[_0x521fc(0x1c4)](_0x436b0b=>_0x436b0b!==_0x12a4ad):[..._0x406686,_0x12a4ad]:[_0x12a4ad];_0x5262f7['syncExecuteCommand'](_0x85b915['SetDrawingSelectedOperation']['id'],_0x54f46d[_0x521fc(0x38f)](_0x2224fe=>({'unitId':_0x657ece,'subUnitId':_0x1dc1a6,'drawingId':_0x2224fe})));let _0x184449=_0x54f46d[_0x54f46d[_0x521fc(0x234)]-0x1];_0x184449?(0x0,_0x5d2674[_0x521fc(0x32f)])(_0x4dba26,{'unitId':_0x657ece,'subUnitId':_0x1dc1a6,'drawingId':_0x184449}):(0x0,_0x5d2674[_0x521fc(0x428)])(_0x4dba26,_0x657ece);},_0x4b3ce2=(_0x272810,_0xfd3080)=>{const _0x3321bf=_0x4e673a;_0x1d4a24(_0x272810[_0x3321bf(0x38f)](_0x1cfeff=>_0x4a2a26(_0x1cfeff))['filter'](_0x5b31c0=>!!_0x5b31c0)[_0x3321bf(0x1c4)](_0x2b7699=>_0x2b7699['hidden']!==!0x0!==_0xfd3080)[_0x3321bf(0x38f)](_0xa7bd06=>({'unitId':_0x657ece,'subUnitId':_0x1dc1a6,'drawingId':_0xa7bd06[_0x3321bf(0x346)],'hidden':!_0xfd3080})));},_0x3f04eb=_0x5186d7=>{const _0x57e9ca=_0x4e673a;let _0x5462e1=_0x4a2a26(_0x5186d7);_0x5462e1&&_0x47ebfa(_0x5186d7,{'selectable':_0x5462e1[_0x57e9ca(0x325)]===!0x1?void 0x0:!0x1});},_0x1b1683=(_0x582362,_0x2ce037)=>{const _0x25cc7e=_0x4e673a;var _0x1ddea4,_0x855fe6;let _0xe5c316=_0x34a560(_0x2ce037);((_0x1ddea4=(_0x855fe6=_0x4a2a26(_0x582362))==null?void 0x0:_0x855fe6[_0x25cc7e(0x19b)])==null?void 0x0:_0x1ddea4)!==_0xe5c316&&_0x47ebfa(_0x582362,{'name':_0xe5c316});},_0x4de047=(_0x3ba426,_0x26dd07)=>{const _0x53f3e3=_0x4e673a;var _0x406157,_0x512040;let _0x545004=_0x34a560(_0x26dd07);((_0x406157=(_0x512040=_0x4a2a26(_0x3ba426))==null?void 0x0:_0x512040[_0x53f3e3(0x416)])==null?void 0x0:_0x406157)!==_0x545004&&_0x47ebfa(_0x3ba426,{'description':_0x545004});},_0x526552=(_0x1d4d04,_0x26b891)=>{const _0x3c80c3=_0x4e673a;!_0x657ece||!_0x1dc1a6||_0x5262f7[_0x3c80c3(0x2aa)](_0x1e9ca9[_0x3c80c3(0x2dc)]['id'],{'unitId':_0x657ece,'subUnitId':_0x1dc1a6,'drawingIds':[_0x1d4d04],'arrangeType':_0x26b891});};return!_0x657ece||!_0x1dc1a6?(0x0,_0x20ca5c[_0x4e673a(0x3e2)])(_0x4e673a(0x3d6),{'className':_0x4e673a(0x3bd),'children':_0x3b3b29['title']}):(0x0,_0x20ca5c['jsx'])(_0x306eb1['ObjectListPanelBase'],{'items':_0x501d86,'selectedIds':_0x406686,'focusedId':_0x2facd2,'labels':_0x3b3b29,'onSelect':_0x48d5a7,'onSetVisible':_0x4b3ce2,'onCommitName':_0x1b1683,'onCommitDescription':_0x4de047,'onMoveForward':_0x380cc0=>_0x526552(_0x380cc0,_0x4149d4[_0x4e673a(0x23b)][_0x4e673a(0x18f)]),'onMoveBackward':_0x38fece=>_0x526552(_0x38fece,_0x4149d4[_0x4e673a(0x23b)][_0x4e673a(0x31f)]),'onToggleSelectable':_0x3f04eb});}let _0x388c60=class{constructor(_0x2d163e){const _0x2d3d63=_0x256dbb;this[_0x2d3d63(0x2c3)]=_0x2d163e;}['updateShapeFillImage'](_0x38211e,_0x382adc){const _0x34a2b5=_0x256dbb;let _0x50dd32=this[_0x34a2b5(0x2c3)][_0x34a2b5(0x1a3)](_0x38211e['unitId']),_0x21496f=_0x50dd32==null?void 0x0:_0x50dd32[_0x34a2b5(0x257)];if(!_0x21496f)return;let _0x46aadb=(0x0,_0x85b915['getDrawingShapeKeyByDrawingSearch'])(_0x38211e),_0x2fc206=_0x21496f[_0x34a2b5(0x1aa)](_0x46aadb);_0x2fc206==null||_0x2fc206[_0x34a2b5(0x3a8)](_0x382adc);}};_0x388c60=_0x53314b([_0x4529c8(0x0,_0x55342f[_0x256dbb(0x16f)])],_0x388c60);function _0x243d8c(){const _0x16c9e5=_0x256dbb;let _0x4da549=(0x0,_0x13ac91['useDependency'])(_0x85b915[_0x16c9e5(0x44d)]),_0x37d7bf=(0x0,_0x13ac91['useObservable'])(()=>_0x4da549[_0x16c9e5(0x47a)],_0x4da549['getFocusDrawings'](),!0x1,[_0x4da549]);return _0x37d7bf[_0x16c9e5(0x234)]===0x0?null:(0x0,_0x20ca5c[_0x16c9e5(0x3e2)])(_0x16c9e5(0x3d6),{'children':(0x0,_0x20ca5c[_0x16c9e5(0x291)])(_0x16c9e5(0x3d6),{'className':'univer-box-border\x20univer-px-4\x20univer-text-sm','children':[(0x0,_0x20ca5c[_0x16c9e5(0x3e2)])(_0x306eb1[_0x16c9e5(0x44f)],{'drawings':_0x37d7bf,'hasCropper':!0x1}),(0x0,_0x20ca5c[_0x16c9e5(0x3e2)])(_0x2ac673['SheetDrawingAnchor'],{'drawings':_0x37d7bf})]})});}function _0x5ee247(_0x1ccb34){const _0x177c9b=_0x256dbb;let {unitId:_0x2668d3,subUnitId:_0x438753,shapeId:_0x2e06e3}=_0x1ccb34,_0x3a6a37=(0x0,_0x13ac91['useDependency'])(_0x4149d4[_0x177c9b(0x357)]),_0x5c6551=(0x0,_0x13ac91['useDependency'])(_0x388c60);return(0x0,_0x20ca5c[_0x177c9b(0x3e2)])(_0x5d2674[_0x177c9b(0x231)],{..._0x1ccb34,'positionEditor':(0x0,_0x20ca5c['jsx'])(_0x243d8c,{}),'onUpdateShapeData':(_0x23d0ec,_0x261c17)=>{_0x4ab2ae(_0x3a6a37,_0x2668d3,_0x438753,_0x2e06e3,_0x23d0ec,_0x261c17);},'onUpdateLineShapeData':(_0x3bf149,_0x41e8d3)=>{_0x354e36(_0x3a6a37,_0x2668d3,_0x438753,_0x2e06e3,_0x3bf149,_0x41e8d3);},'onUpdateShapeFillImage':_0x792a75=>{const _0x279275=_0x177c9b;_0x5c6551[_0x279275(0x31d)]({'unitId':_0x2668d3,'subUnitId':_0x438753,'drawingId':_0x2e06e3},_0x792a75);}});}function _0x3af480(_0x58a37a){const _0x1cb8b2=_0x256dbb;let _0x88504=_0x58a37a[_0x1cb8b2(0x32e)][_0x1cb8b2(0x159)];return _0x88504?(0x0,_0x20ca5c[_0x1cb8b2(0x3e2)])(_0x353260,{..._0x88504}):null;}function _0x353260(_0x13d288){const _0x35517d=_0x256dbb;var _0x424f12,_0x5bff66;let _0x2867b9=(0x0,_0x13ac91[_0x35517d(0x30f)])(_0x4149d4[_0x35517d(0x357)]),_0x22d8e0=(0x0,_0x13ac91['useDependency'])(_0x4af378['SheetsShapeService']),{unitId:_0x476d3b,subUnitId:_0x30a2b5,drawingId:_0xbd86ed,drawingType:_0xa00d5b,shapeType:_0x338d20}=_0x13d288,[_0x25cf8f,_0x5a59a0]=(0x0,_0x2423ea[_0x35517d(0x449)])(_0x13d288['shapeData']),_0x294008=(0x0,_0x2423ea[_0x35517d(0x196)])(()=>(0x0,_0x5d2674[_0x35517d(0x2d6)])(_0x25cf8f),[_0x25cf8f]),_0x19ef84=(0x0,_0x2423ea['useMemo'])(()=>(0x0,_0x5d2674[_0x35517d(0x243)])(_0x25cf8f),[_0x25cf8f]);(0x0,_0x2423ea[_0x35517d(0x468)])(()=>{const _0x18332f=_0x35517d;let _0x32d0b2=_0x2867b9[_0x18332f(0x185)](_0x45a1c7=>{const _0x4cd868=_0x18332f;if(_0x45a1c7['id']!==_0x4af378[_0x4cd868(0x303)]['id'])return;let _0x39fdae=_0x22d8e0['getShapeDataById'](_0x476d3b,_0x30a2b5,_0xbd86ed);_0x39fdae&&_0x5a59a0(_0x39fdae);});return()=>_0x32d0b2[_0x18332f(0x1c5)]();},[_0x2867b9,_0xbd86ed,_0x22d8e0,_0x30a2b5,_0x476d3b]);let _0x200f11=_0x37e443=>{_0x5a59a0(_0x30b7e2=>({..._0x30b7e2,..._0x37e443}));},_0x58c9b9=_0xa14913=>{const _0x516d5b=_0x35517d;let _0x1cc768=(0x0,_0x5d2674[_0x516d5b(0x18d)])(_0x25cf8f,_0xa14913);_0x4ab2ae(_0x2867b9,_0x476d3b,_0x30a2b5,_0xbd86ed,{'oldShapeData':{'shapeText':_0x25cf8f[_0x516d5b(0x3cc)]}},_0x1cc768),_0x200f11(_0x1cc768);};return(0x0,_0x20ca5c['jsx'])(_0x5d2674[_0x35517d(0x35e)],{'shapeData':_0x25cf8f,'shapeType':_0x338d20,'textStyle':{'ff':_0x5b498f[_0x35517d(0x29b)][_0x35517d(0x3cc)][_0x35517d(0x33a)],'fs':_0x5b498f[_0x35517d(0x29b)][_0x35517d(0x3cc)][_0x35517d(0x340)],'cl':{'rgb':_0x5b498f[_0x35517d(0x29b)]['shapeText']['color']},..._0x294008},'textModel':_0x19ef84?{'ha':(_0x424f12=_0x19ef84['ha'])==null?_0x4149d4[_0x35517d(0x363)]['LEFT']:_0x424f12,'va':(_0x5bff66=_0x19ef84['va'])==null?_0x4149d4[_0x35517d(0x41a)]['TOP']:_0x5bff66}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x5b498f[_0x35517d(0x29b)][_0x35517d(0x35a)],'defaultGradientEndColor':_0x5b498f[_0x35517d(0x29b)][_0x35517d(0x1d1)],'defaultStrokeColor':_0x5b498f[_0x35517d(0x29b)][_0x35517d(0x2e1)],'onUpdateShapeData':(_0x2be86d,_0x89803b)=>{_0x4ab2ae(_0x2867b9,_0x476d3b,_0x30a2b5,_0xbd86ed,_0x2be86d,_0x89803b),_0x89803b&&_0x200f11(_0x89803b);},'onUpdateText':_0x58c9b9,'onOpenPanel':()=>{_0x2867b9['executeCommand'](_0x2f9ccc['id'],{'unitId':_0x476d3b,'subUnitId':_0x30a2b5,'drawingId':_0xbd86ed});},'onDelete':()=>{const _0x3983cb=_0x35517d;_0x2867b9['executeCommand'](_0x1e9ca9[_0x3983cb(0x45a)]['id'],{'unitId':_0x476d3b,'drawings':[{'unitId':_0x476d3b,'subUnitId':_0x30a2b5,'drawingId':_0xbd86ed,'drawingType':_0xa00d5b}]});}});}var _0x37fab1=class extends _0x4149d4[_0x256dbb(0x450)]{constructor(..._0x115ab4){const _0x2d9502=_0x256dbb;super(..._0x115ab4),_0x25449f(this,_0x2d9502(0x167),new _0x5c1471[(_0x2d9502(0x1ed))](null)),_0x25449f(this,'editingParams$',this[_0x2d9502(0x167)][_0x2d9502(0x413)]()),_0x25449f(this,_0x2d9502(0x239),new _0x5c1471['BehaviorSubject'](!0x1)),_0x25449f(this,_0x2d9502(0x18b),this['_onSavingEditorData$'][_0x2d9502(0x413)]());}[_0x256dbb(0x1c5)](){const _0x8f047a=_0x256dbb;this[_0x8f047a(0x167)][_0x8f047a(0x32b)](null),this[_0x8f047a(0x167)]['complete'](),this['_onSavingEditorData$']['next'](!0x1),this[_0x8f047a(0x239)][_0x8f047a(0x23e)](),super['dispose']();}[_0x256dbb(0x474)](_0xcd14af){const _0x299ac3=_0x256dbb;this[_0x299ac3(0x167)]['next'](_0xcd14af),_0xcd14af==null&&this['_onSavingEditorData$'][_0x299ac3(0x32b)](!0x1);}['setOnSavingEditorData'](_0x4db6e0){const _0x258822=_0x256dbb;this[_0x258822(0x239)][_0x258822(0x32b)](_0x4db6e0);}['getEditing'](){const _0x35b8e4=_0x256dbb;return this['_editingParams$'][_0x35b8e4(0x28a)]();}[_0x256dbb(0x36f)](_0x16a399){const _0x34a587=_0x256dbb;this[_0x34a587(0x202)]()&&(this[_0x34a587(0x1d9)](!0x0),requestAnimationFrame(()=>{this['setEditing'](null);}));}[_0x256dbb(0x453)](){const _0x2aa5e9=_0x256dbb;this[_0x2aa5e9(0x202)]()&&this[_0x2aa5e9(0x474)](null);}};let _0x3393b6=(0x0,_0x2423ea[_0x256dbb(0x20c)])(()=>{const _0x155992=_0x256dbb;let _0x48bf49=(0x0,_0x13ac91['useDependency'])(_0x37fab1),_0x1763e5=(0x0,_0x13ac91[_0x155992(0x30f)])(_0x4af378['SheetsShapeService']),_0x85cbbb=(0x0,_0x13ac91[_0x155992(0x30f)])(_0x85b915[_0x155992(0x44d)]),_0x7320f0=(0x0,_0x13ac91[_0x155992(0x30f)])(_0x4149d4['ICommandService']),_0x395b18=(0x0,_0x13ac91[_0x155992(0x30f)])(_0x55342f[_0x155992(0x16f)]);return(0x0,_0x20ca5c[_0x155992(0x3e2)])(_0x5d2674[_0x155992(0x37f)],{'adapter':(0x0,_0x2423ea[_0x155992(0x196)])(()=>({'getShapeModel':(_0x4e761b,_0x1958a6,_0x497c63)=>_0x1763e5[_0x155992(0x3d0)](_0x4e761b,_0x1958a6,_0x497c63),'getShapeData':(_0x48b80e,_0x5cbe1d,_0x580441)=>_0x1763e5[_0x155992(0x47f)](_0x48b80e,_0x5cbe1d,_0x580441),'getDrawingTransform':(_0x570568,_0x278629,_0x38a513)=>{const _0x6fcd97=_0x155992;let _0x1bf63c=_0x85cbbb[_0x6fcd97(0x472)]({'unitId':_0x570568,'subUnitId':_0x278629,'drawingId':_0x38a513});return _0x1bf63c==null?void 0x0:_0x1bf63c[_0x6fcd97(0x206)];},'updateShapeText':({unitId:_0x1bd51e,subUnitId:_0x104793,shapeId:_0xb0a86f,shapeText:_0x2598e6,oldShapeText:_0x1fe72d})=>{const _0x6cd728=_0x155992;_0x7320f0[_0x6cd728(0x2aa)](_0xf9a118['id'],{'unitId':_0x1bd51e,'subUnitId':_0x104793,'shapeId':_0xb0a86f,'shapeData':{'shapeText':_0x2598e6},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x1fe72d}}});},'updateHostSize':({unitId:_0x32f17f,subUnitId:_0x568d94,shapeId:_0x3cb5c1,width:_0x59d5ca,height:_0x226979})=>{const _0x1a7b56=_0x155992;var _0xec50d5,_0x576828,_0x248638;let _0x261a04=_0x85cbbb[_0x1a7b56(0x472)]({'unitId':_0x32f17f,'subUnitId':_0x568d94,'drawingId':_0x3cb5c1}),_0x5ac2ee=_0x261a04==null?void 0x0:_0x261a04[_0x1a7b56(0x206)];if(!_0x261a04||!_0x5ac2ee)return;let _0x35ad00={..._0x5ac2ee,'width':_0x59d5ca,'height':_0x226979},_0x202cb4=(_0xec50d5=_0x395b18['getRenderById'](_0x32f17f))==null||(_0xec50d5=_0xec50d5[_0x1a7b56(0x23a)](_0x57bfe3[_0x1a7b56(0x376)])[_0x1a7b56(0x39a)](_0x568d94))==null?void 0x0:_0xec50d5[_0x1a7b56(0x31e)],_0x229d90=_0x202cb4?(_0x576828=(0x0,_0x1e9ca9['transformToDrawingPosition'])(_0x35ad00,_0x202cb4))==null?_0x261a04['sheetTransform']:_0x576828:_0x261a04[_0x1a7b56(0x244)],_0x138238=_0x202cb4?(_0x248638=(0x0,_0x1e9ca9[_0x1a7b56(0x3ab)])(_0x35ad00,_0x202cb4))==null?_0x261a04[_0x1a7b56(0x3d4)]:_0x248638:_0x261a04[_0x1a7b56(0x3d4)];_0x7320f0[_0x1a7b56(0x2aa)](_0x1e9ca9['SetSheetDrawingCommand']['id'],{'unitId':_0x32f17f,'drawings':[{..._0x261a04,'transform':_0x35ad00,'sheetTransform':_0x229d90,'axisAlignSheetTransform':_0x138238}]});},'allowHostSizeShrink':({unitId:_0x1f991c,subUnitId:_0xc44c71,shapeId:_0x293ada})=>(0x0,_0x5d2674['shouldAllowShapeTextEditorHostSizeShrink'])(_0x1763e5[_0x155992(0x47f)](_0x1f991c,_0xc44c71,_0x293ada))}),[_0x7320f0,_0x85cbbb,_0x395b18,_0x1763e5]),'editingService':_0x48bf49,'editorUnitId':_0x251518,'positionOptions':(0x0,_0x2423ea[_0x155992(0x196)])(()=>({'viewportKeys':{'main':_0x55342f['SHEET_VIEWPORT_KEY'][_0x155992(0x2a9)],'leftTop':_0x55342f['SHEET_VIEWPORT_KEY'][_0x155992(0x333)],'top':_0x55342f[_0x155992(0x324)][_0x155992(0x287)],'left':_0x55342f['SHEET_VIEWPORT_KEY']['VIEW_MAIN_LEFT']},'getSkeleton':(_0x4cfc01,_0x52a6aa)=>{const _0x86afd9=_0x155992;var _0x2f45ff,_0x104c56;return(_0x2f45ff=(_0x104c56=_0x4cfc01[_0x86afd9(0x23a)](_0x57bfe3['SheetSkeletonManagerService'])[_0x86afd9(0x39a)](_0x52a6aa[_0x86afd9(0x1d7)]))==null?void 0x0:_0x104c56[_0x86afd9(0x31e)])==null?null:_0x2f45ff;}}),[])});}),_0x142a64=class extends _0x4149d4[_0x256dbb(0x450)]{constructor(_0x187beb,_0x3d9d5a){const _0xb710c0=_0x256dbb;super(),this[_0xb710c0(0x445)]=_0x187beb,this[_0xb710c0(0x1e8)]=_0x3d9d5a,this[_0xb710c0(0x1f1)](),this['_registerComponents']();}[_0x256dbb(0x1f1)](){const _0x375192=_0x256dbb;this['_iconManager'][_0x375192(0x182)](_0x375192(0x3f8))||this[_0x375192(0x283)](this['_iconManager'][_0x375192(0x3fe)]({'CopyDoubleIcon':_0x9cc0ed}));}['_registerComponents'](){const _0x15bacc=_0x256dbb;this[_0x15bacc(0x283)](this[_0x15bacc(0x445)][_0x15bacc(0x3fe)](_0x5815da,_0x5ee247)),this[_0x15bacc(0x283)](this[_0x15bacc(0x445)][_0x15bacc(0x3fe)](_0x58150d,_0x4ca727)),this['disposeWithMe'](this[_0x15bacc(0x445)][_0x15bacc(0x3fe)](_0x58637e,_0x32c5e8)),this[_0x15bacc(0x283)](this['_componentManager']['register'](_0x2b58a6,_0x220a6e)),this[_0x15bacc(0x445)][_0x15bacc(0x451)](_0x306eb1['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'])||this[_0x15bacc(0x283)](this[_0x15bacc(0x445)]['register'](_0x306eb1[_0x15bacc(0x19a)],_0x4d4392)),this[_0x15bacc(0x283)](this[_0x15bacc(0x445)]['register'](_0x415db9,_0x3af480)),this[_0x15bacc(0x283)](this['_componentManager']['register'](_0x2f1acd,_0x5d2674['ShapeTextFloatToolbar'])),this[_0x15bacc(0x283)](this[_0x15bacc(0x445)][_0x15bacc(0x3fe)](_0x15bacc(0x314),_0x3393b6));}};_0x142a64=_0x53314b([_0x4529c8(0x0,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x13ac91[_0x256dbb(0x2f0)])),_0x4529c8(0x1,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x13ac91[_0x256dbb(0x226)]))],_0x142a64);let _0x7b8dd9=class extends _0x4149d4['Disposable']{constructor(_0x313368,_0x1460fc,_0x17329b,_0x3ef8aa,_0x13afc7){const _0x37edc0=_0x256dbb;super(),this[_0x37edc0(0x1f4)]=_0x313368,this[_0x37edc0(0x1be)]=_0x1460fc,this[_0x37edc0(0x2c3)]=_0x17329b,this[_0x37edc0(0x17e)]=_0x3ef8aa,this['_imageShapeClipController']=_0x13afc7,_0x25449f(this,_0x37edc0(0x30b),null),_0x25449f(this,_0x37edc0(0x15c),null),_0x25449f(this,_0x37edc0(0x299),null),_0x25449f(this,_0x37edc0(0x40f),void 0x0),_0x25449f(this,_0x37edc0(0x1da),[]),_0x25449f(this,_0x37edc0(0x200),0x0),_0x25449f(this,_0x37edc0(0x34a),0x0),_0x25449f(this,_0x37edc0(0x47e),0x0),_0x25449f(this,_0x37edc0(0x247),0x0),_0x25449f(this,_0x37edc0(0x3fd),!0x1),_0x25449f(this,_0x37edc0(0x205),void 0x0),_0x25449f(this,_0x37edc0(0x462),void 0x0),_0x25449f(this,'_adjHandlerPointerMove',void 0x0),_0x25449f(this,_0x37edc0(0x3e1),void 0x0),_0x25449f(this,_0x37edc0(0x2df),!0x1),this[_0x37edc0(0x190)](),this['_registerMoveHandler']();}[_0x256dbb(0x2c7)](){const _0x39dfd2=_0x256dbb;this[_0x39dfd2(0x32d)]();}['refreshAdjustControls'](){const _0x185a1b=_0x256dbb;this[_0x185a1b(0x32d)](),this['_createControls'](!0x0);}[_0x256dbb(0x310)](_0x1f4b49,_0x1dff84,_0x1a0291,_0x5b34ae){const _0x4d70d5=_0x256dbb;let _0x5574ef=_0x1f4b49;if(!(_0x5574ef===_0x5b498f[_0x4d70d5(0x2a1)]['None']||_0x1f4b49===_0x4d70d5(0x220)))try{let _0x2e57a2=new _0x5b498f[(_0x4d70d5(0x370))](_0x5574ef,_0x4d70d5(0x464)+_0x1f4b49);return _0x5b34ae&&_0x2e57a2[_0x4d70d5(0x265)]({'adjustValues':_0x5b34ae},!0x0),_0x2e57a2[_0x4d70d5(0x374)]({'width':_0x1dff84,'height':_0x1a0291}),_0x2e57a2;}catch{return;}}[_0x256dbb(0x326)](_0x14adb2,_0x1b1698,_0x3237d2){const _0x301eb2=_0x256dbb;let _0x1cef74={'unitId':_0x14adb2,'subUnitId':_0x1b1698,'drawingId':_0x3237d2},_0x5cf060=this[_0x301eb2(0x1be)][_0x301eb2(0x472)](_0x1cef74);if(!(!_0x5cf060||_0x5cf060[_0x301eb2(0x277)]!==_0x4149d4[_0x301eb2(0x29a)]['DRAWING_IMAGE']))return _0x5cf060;}[_0x256dbb(0x246)](_0x3b44a4,_0xcd269,_0x54ca83){const _0xd952ca=_0x256dbb;let _0x4b18fc=this[_0xd952ca(0x2c3)][_0xd952ca(0x1a3)](_0x3b44a4);if(!_0x4b18fc)return;let {scene:_0x5af652}=_0x4b18fc,_0x5a6779=(0x0,_0x85b915[_0xd952ca(0x437)])({'unitId':_0x3b44a4,'subUnitId':_0xcd269,'drawingId':_0x54ca83}),_0x188694=_0x5af652[_0xd952ca(0x379)](_0x5a6779);if(_0x188694 instanceof _0x55342f[_0xd952ca(0x332)]){let _0x4d1436=_0x188694['prstGeom'];if(_0x4d1436)return{'prstGeom':_0x4d1436,'adjustValues':_0x188694['prstGeomAdjValues']};}}[_0x256dbb(0x405)](_0x111898=!0x1){const _0x8ecacd=_0x256dbb;if(!this[_0x8ecacd(0x15c)]||!this[_0x8ecacd(0x299)]||!this[_0x8ecacd(0x30b)])return;let _0x2cb266=this[_0x8ecacd(0x2c3)][_0x8ecacd(0x1a3)](this[_0x8ecacd(0x15c)]);if(!_0x2cb266||!_0x2cb266[_0x8ecacd(0x23a)](_0x57bfe3[_0x8ecacd(0x376)])['getCurrentSkeleton']())return;let {scene:_0x58e602}=_0x2cb266,_0x436fa2=this['_getImageDrawingInfo'](this[_0x8ecacd(0x15c)],this[_0x8ecacd(0x299)],this[_0x8ecacd(0x30b)]);if(!_0x436fa2)return;let {transform:_0x1a766f}=_0x436fa2;if(!_0x1a766f)return;let {left:_0x586e47,top:_0x1e0231,width:_0x453d77,height:_0x4e04ae,flipX:_0xf06376,flipY:_0x4075c1,angle:_0xb6a1c9=0x0}=_0x1a766f;if(_0x586e47===void 0x0||_0x1e0231===void 0x0)return;let _0x948b46=this['_getImagePrstGeom'](this['_unitId'],this[_0x8ecacd(0x299)],this['_activeImageId']);if(!_0x948b46)return;if(_0x111898){let _0x9a4ea3=this['_getOrCreateShapeModel'](_0x948b46['prstGeom'],_0x453d77||0x0,_0x4e04ae||0x0,_0x948b46['adjustValues']);if(!_0x9a4ea3)return;this[_0x8ecacd(0x40f)]=_0x9a4ea3[_0x8ecacd(0x3f3)]();}let _0x37fa50=this[_0x8ecacd(0x40f)];if(!(!_0x37fa50||_0x37fa50[_0x8ecacd(0x234)]===0x0))for(let _0x3443f0=0x0;_0x3443f0<_0x37fa50[_0x8ecacd(0x234)];_0x3443f0++){let _0x53daf1=_0x37fa50[_0x3443f0],_0x57dc47=_0x53daf1['x'],_0x2ba47c=_0x53daf1['y'];if(_0xf06376&&(_0x57dc47=(_0x453d77||0x0)-_0x57dc47),_0x4075c1&&(_0x2ba47c=(_0x4e04ae||0x0)-_0x2ba47c),_0xb6a1c9!==0x0){let _0x26680a=(_0x453d77||0x0)/0x2,_0xac26e2=(_0x4e04ae||0x0)/0x2,_0x2b2b7b=_0xb6a1c9*Math['PI']/0xb4,_0xaa8462=Math[_0x8ecacd(0x359)](_0x2b2b7b),_0x14b413=Math['sin'](_0x2b2b7b),_0x345115=_0x57dc47-_0x26680a,_0x3c0786=_0x2ba47c-_0xac26e2;_0x57dc47=_0x26680a+(_0x345115*_0xaa8462-_0x3c0786*_0x14b413),_0x2ba47c=_0xac26e2+(_0x345115*_0x14b413+_0x3c0786*_0xaa8462);}let _0xd6eb90={'x':_0x57dc47,'y':_0x2ba47c,'adjName':_0x53daf1[_0x8ecacd(0x1cc)]};this['_addControl'](_0x58e602,_0xd6eb90,_0xd6eb90['adjName'],_0x586e47,_0x1e0231,this[_0x8ecacd(0x15c)],this[_0x8ecacd(0x299)]);}}[_0x256dbb(0x26a)](_0x24fb5e,_0x430ba7,_0xe62f7e,_0x85360d,_0x349675,_0x41f621,_0x29bf25){const _0x33daa6=_0x256dbb;if(!this['_activeImageId'])return;let _0x46829d=_0x33daa6(0x3ef)+this['_activeImageId']+'-'+_0xe62f7e,_0x1e9ae5=_0x24fb5e[_0x33daa6(0x1aa)](_0x46829d);if(_0x1e9ae5){_0x1e9ae5[_0x33daa6(0x38d)]({'left':_0x430ba7['x']+_0x85360d-_0x5b498f[_0x33daa6(0x29b)][_0x33daa6(0x192)],'top':_0x430ba7['y']+_0x349675-_0x5b498f[_0x33daa6(0x29b)][_0x33daa6(0x192)]});return;}let _0x4114ea=new _0x120a95(_0x46829d,{'left':_0x430ba7['x']+_0x85360d-_0x5b498f[_0x33daa6(0x29b)][_0x33daa6(0x192)],'top':_0x430ba7['y']+_0x349675-_0x5b498f['ShapeDefaultConfig'][_0x33daa6(0x192)],'adjName':_0xe62f7e,'shapeId':this['_activeImageId'],'unitId':_0x41f621,'subUnitId':_0x29bf25,'width':_0x5b498f['ShapeDefaultConfig'][_0x33daa6(0x192)]+0x8,'height':_0x5b498f[_0x33daa6(0x29b)]['adjHandleSize']+0x8,'zIndex':_0x55342f[_0x33daa6(0x28c)]+0x1,'evented':!0x0});this[_0x33daa6(0x1da)][_0x33daa6(0x28f)](_0x4114ea),this[_0x33daa6(0x306)](_0x4114ea,_0x24fb5e,_0xe62f7e),_0x24fb5e[_0x33daa6(0x3d1)](_0x4114ea,_0x55342f[_0x33daa6(0x28c)]+0x1);}[_0x256dbb(0x32d)](){const _0x315479=_0x256dbb;this[_0x315479(0x1da)][_0x315479(0x234)]!==0x0&&(this[_0x315479(0x1da)][_0x315479(0x43e)](_0x38e7e4=>_0x38e7e4['dispose']()),this['_shapes']=[]);}[_0x256dbb(0x1c7)](_0x32d1de,_0x2f76dc){const _0x1e1a71=_0x256dbb;var _0x5ed9ed;let _0x7507c5={'x':0x0,'y':0x0},_0x591335=this[_0x1e1a71(0x2c3)][_0x1e1a71(0x1a3)](_0x32d1de);if(!_0x591335||!_0x591335['with'](_0x57bfe3['SheetSkeletonManagerService'])[_0x1e1a71(0x3cd)](_0x2f76dc))return _0x7507c5;let _0x5eb2c6=_0x591335['with'](_0x57bfe3[_0x1e1a71(0x1d3)]),_0x15f8fa=_0x5eb2c6==null?void 0x0:_0x5eb2c6[_0x1e1a71(0x3f6)]();if(!_0x15f8fa)return _0x7507c5;let _0x4592c4=(_0x5ed9ed=this[_0x1e1a71(0x17e)]['getUnit'](_0x32d1de))==null?void 0x0:_0x5ed9ed[_0x1e1a71(0x397)](_0x2f76dc);if(!_0x4592c4)return _0x7507c5;let _0x190ed2=(0x0,_0x57bfe3[_0x1e1a71(0x254)])(_0x15f8fa[_0x1e1a71(0x1e0)],_0x15f8fa[_0x1e1a71(0x25e)],_0x591335['scene'],_0x4592c4);return _0x190ed2?{'x':_0x190ed2['viewportScrollX'],'y':_0x190ed2[_0x1e1a71(0x1c3)]}:_0x7507c5;}[_0x256dbb(0x298)](_0x4710e2,_0x4dfd52){const _0x2c22c0=_0x256dbb;var _0x847c3c,_0x12b2a1;let _0x5f4074=(_0x847c3c=this[_0x2c22c0(0x17e)]['getUnit'](_0x4710e2))==null?void 0x0:_0x847c3c[_0x2c22c0(0x397)](_0x4dfd52);return(_0x12b2a1=_0x5f4074==null?void 0x0:_0x5f4074[_0x2c22c0(0x214)]())==null?0x1:_0x12b2a1;}[_0x256dbb(0x306)](_0xfb8ef8,_0x355963,_0x2e0fe7){const _0x4136c7=_0x256dbb;this['disposeWithMe']((0x0,_0x4149d4[_0x4136c7(0x2c2)])(_0xfb8ef8[_0x4136c7(0x371)][_0x4136c7(0x2c1)]((_0x168dad,_0x4f9769)=>{const _0x1baa31=_0x4136c7;var _0x270d3d,_0x5a7118,_0xf73128;let {unitId:_0x392c79,subUnitId:_0x33b1c7,drawingId:_0x40d3a6}=_0xfb8ef8['getDrawingSearch'](),_0x3eb7d1=this[_0x1baa31(0x326)](_0x392c79,_0x33b1c7,_0x40d3a6);if(!(_0x3eb7d1!=null&&_0x3eb7d1['transform']))return;let {left:_0x5024b0,top:_0x1ad961,width:_0x2a8d96,height:_0x5ace36}=_0x3eb7d1['transform'];this[_0x1baa31(0x200)]=_0x5024b0||0x0,this['_baseTop']=_0x1ad961||0x0,this[_0x1baa31(0x47e)]=_0x2a8d96||0x0,this[_0x1baa31(0x247)]=_0x5ace36||0x0;let _0x39421f=!!((_0x270d3d=_0x3eb7d1[_0x1baa31(0x206)])!=null&&_0x270d3d[_0x1baa31(0x337)]),_0x5debbe=!!((_0x5a7118=_0x3eb7d1[_0x1baa31(0x206)])!=null&&_0x5a7118['flipY']),_0x2c750e=((_0xf73128=_0x3eb7d1[_0x1baa31(0x206)])==null?void 0x0:_0xf73128[_0x1baa31(0x372)])||0x0,_0x489a2c=this[_0x1baa31(0x246)](_0x392c79,_0x33b1c7,_0x40d3a6);if(!_0x489a2c)return;let _0x49706c=this[_0x1baa31(0x310)](_0x489a2c[_0x1baa31(0x26d)],this[_0x1baa31(0x47e)],this[_0x1baa31(0x247)],_0x489a2c['adjustValues']);if(!_0x49706c||(this[_0x1baa31(0x462)]=_0x49706c,this[_0x1baa31(0x205)]=_0x49706c[_0x1baa31(0x2bd)](_0x2e0fe7),!this['_activeAdjustInfo']))return;this[_0x1baa31(0x3fd)]=!0x0,_0x355963[_0x1baa31(0x381)]();let _0x5ad67d=_0x489a2c[_0x1baa31(0x26d)];this['_adjHandlerPointerMove']=_0x355963[_0x1baa31(0x3b8)][_0x1baa31(0x2c1)]((_0x48c2d0,_0x5b9864)=>{const _0x50aead=_0x1baa31;if(!this[_0x50aead(0x3fd)])return;let {offsetX:_0x3aa1df,offsetY:_0x23a3c3}=_0x48c2d0,_0x20bd6a=this[_0x50aead(0x205)];if(!this['_activeShapeModel']||!_0x20bd6a)return;_0x355963[_0x50aead(0x381)](),_0x355963['setCursor'](_0x55342f[_0x50aead(0x183)][_0x50aead(0x38c)]);let _0xfc5623={'left':0x0,'top':0x0,'width':this[_0x50aead(0x47e)],'height':this[_0x50aead(0x247)]},_0x1156bd=this[_0x50aead(0x1c7)](_0x392c79,_0x33b1c7),_0x259467=this[_0x50aead(0x298)](_0x392c79,_0x33b1c7),_0x5b6f0c=_0x3aa1df/_0x259467+_0x1156bd['x']-this[_0x50aead(0x200)],_0x3eaed4=_0x23a3c3/_0x259467+_0x1156bd['y']-this['_baseTop'];if(_0x2c750e!==0x0){let _0x5c3dbd=this[_0x50aead(0x47e)]/0x2,_0x507c0f=this[_0x50aead(0x247)]/0x2,_0x2242ad=_0x2c750e*Math['PI']/0xb4,_0x46fc74=Math['cos'](_0x2242ad),_0x2325a9=Math[_0x50aead(0x42f)](_0x2242ad),_0x36d168=_0x5b6f0c-_0x5c3dbd,_0x78de0c=_0x3eaed4-_0x507c0f;_0x5b6f0c=_0x5c3dbd+(_0x36d168*_0x46fc74+_0x78de0c*_0x2325a9),_0x3eaed4=_0x507c0f+(-_0x36d168*_0x2325a9+_0x78de0c*_0x46fc74);}_0x39421f&&(_0x5b6f0c=this[_0x50aead(0x47e)]-_0x5b6f0c),_0x5debbe&&(_0x3eaed4=this[_0x50aead(0x247)]-_0x3eaed4);let _0x5323ae=this[_0x50aead(0x462)][_0x50aead(0x250)](_0xfc5623,{'x':_0x5b6f0c,'y':_0x3eaed4},_0x20bd6a,_0x39421f,_0x5debbe),_0x569c4f=_0x20bd6a['gdRefX']||_0x20bd6a['gdRefY']||_0x20bd6a[_0x50aead(0x2c9)]||_0x20bd6a[_0x50aead(0x2a2)];_0x569c4f!==void 0x0&&(this[_0x50aead(0x462)][_0x50aead(0x16b)](_0x569c4f,_0x5323ae),this['_activeShapeModel']['updateContext']({'width':this[_0x50aead(0x47e)],'height':this[_0x50aead(0x247)]}),this[_0x50aead(0x403)](_0x392c79,_0x33b1c7,_0x40d3a6,_0x569c4f,_0x5323ae),this[_0x50aead(0x40f)]=this[_0x50aead(0x462)][_0x50aead(0x3f3)](),this['_activeAdjustInfo']=this[_0x50aead(0x462)][_0x50aead(0x2bd)](_0x2e0fe7),this['_createControls'](),_0x5b9864['stopPropagation']());}),this[_0x1baa31(0x3e1)]=_0x355963[_0x1baa31(0x29d)]['subscribeEvent']((_0x34a0db,_0x268b72)=>{const _0x1199bd=_0x1baa31;if(this[_0x1199bd(0x184)][_0x1199bd(0x22d)](),this[_0x1199bd(0x3e1)][_0x1199bd(0x22d)](),_0x355963['resetCursor'](),this['_activeShapeModel']){let _0x2ebee6=this[_0x1199bd(0x462)][_0x1199bd(0x38b)](),_0x3d3539={};for(let _0x4d8e81 of _0x2ebee6){let _0xa7d972=this[_0x1199bd(0x462)][_0x1199bd(0x40e)](_0x4d8e81);_0xa7d972!==void 0x0&&(_0x3d3539[_0x4d8e81]=_0xa7d972);}this[_0x1199bd(0x317)][_0x1199bd(0x32a)](_0x392c79,_0x33b1c7,_0x40d3a6,_0x5ad67d,_0x3d3539);}this[_0x1199bd(0x205)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x1199bd(0x3fd)]=!0x1,_0x268b72['stopPropagation'](),_0x355963[_0x1199bd(0x362)]();}),_0x4f9769[_0x1baa31(0x264)]();})));}[_0x256dbb(0x403)](_0x49693e,_0x3fc3fb,_0x524ad7,_0x5d20d2,_0x332d8d){const _0x3c74ff=_0x256dbb;let _0x53e080=this[_0x3c74ff(0x2c3)][_0x3c74ff(0x1a3)](_0x49693e);if(!_0x53e080)return;let {scene:_0x53e6a2}=_0x53e080,_0x2768b7=(0x0,_0x85b915[_0x3c74ff(0x437)])({'unitId':_0x49693e,'subUnitId':_0x3fc3fb,'drawingId':_0x524ad7}),_0x125ca4=_0x53e6a2['getObject'](_0x2768b7);if(_0x125ca4 instanceof _0x55342f['Image']){var _0x18bd19;let _0x4d260b=(_0x18bd19=_0x125ca4[_0x3c74ff(0x465)])==null?{}:_0x18bd19;_0x125ca4[_0x3c74ff(0x19e)]({..._0x4d260b,[_0x5d20d2]:_0x332d8d}),_0x125ca4[_0x3c74ff(0x329)](!0x0);}}[_0x256dbb(0x180)](){const _0x562125=_0x256dbb;let _0x11a074=this[_0x562125(0x17e)]['getCurrentTypeOfUnit$'](_0x4149d4[_0x562125(0x305)][_0x562125(0x1ea)]);this[_0x562125(0x283)](_0x11a074[_0x562125(0x290)]((0x0,_0x5c1471['switchMap'])(_0x59f7f0=>_0x59f7f0?_0x59f7f0[_0x562125(0x345)][_0x562125(0x290)]((0x0,_0x5c1471['switchMap'])(_0x159c94=>{const _0x4a6993=_0x562125;if(!_0x159c94)return _0x5c1471[_0x4a6993(0x3e9)];let _0xddd4c8=_0x59f7f0[_0x4a6993(0x2ea)](),_0x1095ec=this[_0x4a6993(0x2c3)]['getRenderById'](_0xddd4c8),_0x109413=_0x1095ec==null?void 0x0:_0x1095ec[_0x4a6993(0x257)];return _0x109413?(0x0,_0x5c1471['of'])(_0x109413):_0x5c1471['EMPTY'];})):_0x5c1471[_0x562125(0x3e9)]))[_0x562125(0x22a)](_0x41080f=>{const _0x52cb48=_0x562125;let _0x56cce5=_0x41080f[_0x52cb48(0x2e9)]();this[_0x52cb48(0x283)](_0x41080f[_0x52cb48(0x3b8)][_0x52cb48(0x2c1)](()=>{const _0x32630d=_0x52cb48;this[_0x32630d(0x2df)]&&this['_clearControls']();})),this[_0x52cb48(0x283)](_0x56cce5[_0x52cb48(0x43a)][_0x52cb48(0x22a)](_0xf36857=>{const _0x296fb2=_0x52cb48;let {objects:_0x2809c8}=_0xf36857;if(this[_0x296fb2(0x405)](),_0x2809c8!==null&&_0x2809c8[_0x296fb2(0x3d7)]===0x1){let _0x4d0512=_0x2809c8[_0x296fb2(0x272)]()['next']()[_0x296fb2(0x38a)];_0x4d0512 instanceof _0x55342f[_0x296fb2(0x332)]&&_0x4d0512[_0x296fb2(0x26d)]&&(this[_0x296fb2(0x2df)]=!0x0);}})),this['disposeWithMe'](_0x56cce5[_0x52cb48(0x2ce)][_0x52cb48(0x22a)](()=>{const _0x19b48c=_0x52cb48;this[_0x19b48c(0x2df)]&&this[_0x19b48c(0x32d)]();})),this[_0x52cb48(0x283)](_0x41080f[_0x52cb48(0x29d)][_0x52cb48(0x2c1)](()=>{const _0x2df850=_0x52cb48;this[_0x2df850(0x2df)]&&(this[_0x2df850(0x2df)]=!0x1,this[_0x2df850(0x405)]());})),this[_0x52cb48(0x283)](_0x56cce5[_0x52cb48(0x269)][_0x52cb48(0x22a)](()=>{const _0x374b68=_0x52cb48;if(this[_0x374b68(0x15c)]&&this[_0x374b68(0x299)]&&this['_activeImageId']){let _0x9d254c=this[_0x374b68(0x246)](this['_unitId'],this[_0x374b68(0x299)],this[_0x374b68(0x30b)]);if(_0x9d254c){var _0x30c1ee,_0x5bff04;let _0xeb1069=this[_0x374b68(0x326)](this[_0x374b68(0x15c)],this[_0x374b68(0x299)],this[_0x374b68(0x30b)]),_0x5e61e9=(_0xeb1069==null||(_0x30c1ee=_0xeb1069['transform'])==null?void 0x0:_0x30c1ee['width'])||0x0,_0x1d6ce6=(_0xeb1069==null||(_0x5bff04=_0xeb1069[_0x374b68(0x206)])==null?void 0x0:_0x5bff04[_0x374b68(0x3e6)])||0x0,_0x52103c=this[_0x374b68(0x310)](_0x9d254c['prstGeom'],_0x5e61e9,_0x1d6ce6,_0x9d254c[_0x374b68(0x1a6)]);_0x52103c&&(this['_activeAdjustPointList']=_0x52103c[_0x374b68(0x3f3)](),this['_clearControls'](),this['_createControls'](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x2a465f=_0x256dbb;this['disposeWithMe'](this['_drawingManagerService'][_0x2a465f(0x47a)][_0x2a465f(0x22a)](_0x405d6d=>{const _0x2ca7cb=_0x2a465f;if(_0x405d6d['length']===0x1){let _0x22ddce=_0x405d6d[0x0];if(_0x22ddce['drawingType']===_0x4149d4[_0x2ca7cb(0x29a)][_0x2ca7cb(0x2bf)]){let {unitId:_0x39535b,subUnitId:_0x4e5959,drawingId:_0x1dbfac}=_0x22ddce,_0x3fefa2=this[_0x2ca7cb(0x246)](_0x39535b,_0x4e5959,_0x1dbfac);if(_0x3fefa2){var _0x543c70,_0x171348;this['_activeImageId']=_0x1dbfac,this[_0x2ca7cb(0x15c)]=_0x39535b,this[_0x2ca7cb(0x299)]=_0x4e5959;let _0x506a93=this[_0x2ca7cb(0x326)](_0x39535b,_0x4e5959,_0x1dbfac),_0x378f54=(_0x506a93==null||(_0x543c70=_0x506a93[_0x2ca7cb(0x206)])==null?void 0x0:_0x543c70['width'])||0x0,_0xd6d438=(_0x506a93==null||(_0x171348=_0x506a93[_0x2ca7cb(0x206)])==null?void 0x0:_0x171348['height'])||0x0,_0x14fac0=this['_getOrCreateShapeModel'](_0x3fefa2[_0x2ca7cb(0x26d)],_0x378f54,_0xd6d438,_0x3fefa2['adjustValues']);_0x14fac0&&(this[_0x2ca7cb(0x40f)]=_0x14fac0['getDrawingPoints']()),this[_0x2ca7cb(0x32d)](),this[_0x2ca7cb(0x405)](!0x0);}else this[_0x2ca7cb(0x36b)]();}else this[_0x2ca7cb(0x36b)]();}else this[_0x2ca7cb(0x36b)]();})),this[_0x2a465f(0x283)](this[_0x2a465f(0x1be)][_0x2a465f(0x1bf)]['subscribe'](_0x50af8a=>{const _0x2d8be4=_0x2a465f;if(_0x50af8a[_0x2d8be4(0x234)]===0x1){let _0x1952d8=_0x50af8a[0x0],_0x3646c7=this[_0x2d8be4(0x1be)][_0x2d8be4(0x472)](_0x1952d8);(_0x3646c7==null?void 0x0:_0x3646c7[_0x2d8be4(0x277)])===_0x4149d4[_0x2d8be4(0x29a)][_0x2d8be4(0x2bf)]&&this['_activeImageId']===_0x1952d8['drawingId']&&(this[_0x2d8be4(0x32d)](),this[_0x2d8be4(0x405)](!0x0));}})),this['disposeWithMe'](this['_drawingManagerService'][_0x2a465f(0x1c8)][_0x2a465f(0x22a)](_0x1f8f72=>{const _0x92deed=_0x2a465f;for(let _0x50e034 of _0x1f8f72)this['_activeImageId']===_0x50e034[_0x92deed(0x346)]&&this[_0x92deed(0x36b)]();}));}[_0x256dbb(0x36b)](){const _0x3ff4bb=_0x256dbb;this['_activeImageId']=null,this[_0x3ff4bb(0x15c)]=null,this['_subUnitId']=null,this[_0x3ff4bb(0x40f)]=void 0x0,this[_0x3ff4bb(0x32d)]();}};_0x7b8dd9=_0x53314b([_0x4529c8(0x1,_0x85b915[_0x256dbb(0x44d)]),_0x4529c8(0x2,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x55342f[_0x256dbb(0x16f)])),_0x4529c8(0x3,_0x4149d4[_0x256dbb(0x2b3)]),_0x4529c8(0x4,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x361f72))],_0x7b8dd9);let _0x310ed5=class extends _0x4149d4[_0x256dbb(0x450)]{constructor(_0x313564,_0x391975,_0x4fdec6,_0x5c2329){const _0x555ce5=_0x256dbb;super(),this[_0x555ce5(0x17e)]=_0x313564,this[_0x555ce5(0x319)]=_0x391975,this[_0x555ce5(0x348)]=_0x4fdec6,this[_0x555ce5(0x191)]=_0x5c2329,this['_initSheetChange']();}[_0x256dbb(0x34f)](){const _0x3846f7=_0x256dbb;this['disposeWithMe'](this[_0x3846f7(0x319)][_0x3846f7(0x223)]({'getMutations':_0x59ec1a=>{const _0xdfde87=_0x3846f7;if(_0x59ec1a['id']===_0x45e9dd[_0xdfde87(0x3e7)]['id']){let _0x3668a4=(0x0,_0x45e9dd[_0xdfde87(0x1ec)])(this[_0xdfde87(0x17e)],_0x59ec1a[_0xdfde87(0x3c3)]);if(!_0x3668a4)return{'redos':[],'undos':[]};let {unitId:_0x1ee6f7,subUnitId:_0x2c164d}=_0x3668a4,_0x57ca35=this['_sheetDrawingService'][_0xdfde87(0x323)](_0x1ee6f7,_0x2c164d),_0x2e0bda=Object[_0xdfde87(0x272)](_0x57ca35)[_0xdfde87(0x1c4)](_0x25441a=>_0x25441a[_0xdfde87(0x277)]===_0x4149d4['DrawingTypeEnum'][_0xdfde87(0x3ca)]);if(_0x2e0bda[_0xdfde87(0x234)]===0x0)return{'redos':[],'undos':[]};let _0x5e4002=[],_0x10ae6a=[];for(let _0x5b3580=0x0;_0x5b3580<_0x2e0bda['length'];_0x5b3580++){let _0x46df47=_0x2e0bda[_0x5b3580],_0x1bd2df=this[_0xdfde87(0x191)][_0xdfde87(0x3d0)](_0x46df47[_0xdfde87(0x384)],_0x46df47[_0xdfde87(0x1d7)],_0x46df47[_0xdfde87(0x346)]);if(!_0x1bd2df)continue;let {redo:_0x9e4e5b,undo:_0x31b12c,objects:_0x1daf68}=this[_0xdfde87(0x348)][_0xdfde87(0x3c0)]([_0x46df47]);_0x5e4002[_0xdfde87(0x28f)]({'id':_0x4af378['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x1ee6f7,'subUnitId':_0x2c164d,'shapeId':_0x46df47[_0xdfde87(0x346)]}}),_0x5e4002[_0xdfde87(0x28f)]({'id':_0x1e9ca9[_0xdfde87(0x2a6)]['id'],'params':{'unitId':_0x1ee6f7,'subUnitId':_0x2c164d,'type':_0x1e9ca9['DrawingApplyType'][_0xdfde87(0x1fc)],'op':_0x9e4e5b,'objects':_0x1daf68}}),_0x10ae6a['push']({'id':_0x1e9ca9[_0xdfde87(0x2a6)]['id'],'params':{'unitId':_0x1ee6f7,'subUnitId':_0x2c164d,'type':_0x1e9ca9[_0xdfde87(0x2ee)][_0xdfde87(0x20d)],'op':_0x31b12c,'objects':_0x1daf68}}),_0x10ae6a[_0xdfde87(0x28f)]({'id':_0x4af378[_0xdfde87(0x1b0)]['id'],'params':{'unitId':_0x1ee6f7,'subUnitId':_0x2c164d,'shapeId':_0x46df47[_0xdfde87(0x346)],'shapeType':_0x1bd2df[_0xdfde87(0x203)](),'shapeData':JSON[_0xdfde87(0x21e)](JSON['stringify'](_0x1bd2df[_0xdfde87(0x1ae)]()))}});}return{'redos':_0x5e4002,'undos':_0x10ae6a};}else{if(_0x59ec1a['id']===_0x45e9dd[_0xdfde87(0x40d)]['id']){let {unitId:_0x9edd15,subUnitId:_0xb8cd86,targetSubUnitId:_0x117ea4}=_0x59ec1a['params'];if(!_0x9edd15||!_0xb8cd86||!_0x117ea4)return{'redos':[],'undos':[]};let _0x2642c4=this[_0xdfde87(0x348)][_0xdfde87(0x323)](_0x9edd15,_0xb8cd86),_0x445c0d=Object[_0xdfde87(0x272)](_0x2642c4)[_0xdfde87(0x1c4)](_0x30905a=>_0x30905a[_0xdfde87(0x277)]===_0x4149d4[_0xdfde87(0x29a)][_0xdfde87(0x3ca)]);if(_0x445c0d['length']===0x0)return{'redos':[],'undos':[]};let _0x55eb8b=[],_0x5e5edc=[];for(let _0x1a207d=0x0;_0x1a207d<_0x445c0d[_0xdfde87(0x234)];_0x1a207d++){let _0x37f02d=_0x445c0d[_0x1a207d],_0x3060cc=this[_0xdfde87(0x191)][_0xdfde87(0x3d0)](_0x37f02d[_0xdfde87(0x384)],_0x37f02d[_0xdfde87(0x1d7)],_0x37f02d[_0xdfde87(0x346)]);if(!_0x3060cc)continue;let _0x7ace47=(0x0,_0x4149d4['generateRandomId'])(),_0x5139e5={..._0x37f02d,'unitId':_0x9edd15,'subUnitId':_0x117ea4,'drawingId':_0x7ace47},{redo:_0x5a3dbc,undo:_0x4145bb,objects:_0x32d14d}=this[_0xdfde87(0x348)][_0xdfde87(0x408)]([_0x5139e5]);_0x55eb8b[_0xdfde87(0x28f)]({'id':_0x1e9ca9[_0xdfde87(0x2a6)]['id'],'params':{'unitId':_0x9edd15,'subUnitId':_0x117ea4,'type':_0x1e9ca9[_0xdfde87(0x2ee)]['INSERT'],'op':_0x5a3dbc,'objects':_0x32d14d}}),_0x55eb8b['push']({'id':_0x4af378[_0xdfde87(0x1b0)]['id'],'params':{'unitId':_0x9edd15,'subUnitId':_0x117ea4,'shapeId':_0x7ace47,'shapeType':_0x3060cc[_0xdfde87(0x203)](),'shapeData':JSON[_0xdfde87(0x21e)](JSON['stringify'](_0x3060cc[_0xdfde87(0x1ae)]()))}}),_0x5e5edc[_0xdfde87(0x28f)]({'id':_0x4af378['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x9edd15,'subUnitId':_0x117ea4,'shapeId':_0x7ace47}}),_0x5e5edc[_0xdfde87(0x28f)]({'id':_0x1e9ca9[_0xdfde87(0x2a6)]['id'],'params':{'unitId':_0x9edd15,'subUnitId':_0x117ea4,'type':_0x1e9ca9[_0xdfde87(0x2ee)][_0xdfde87(0x1fc)],'op':_0x4145bb,'objects':_0x32d14d}});}return{'redos':_0x55eb8b,'undos':_0x5e5edc};}}return{'redos':[],'undos':[]};}}));}};_0x310ed5=_0x53314b([_0x4529c8(0x0,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x4149d4[_0x256dbb(0x2b3)])),_0x4529c8(0x1,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x45e9dd[_0x256dbb(0x2c5)])),_0x4529c8(0x2,(0x0,_0x4149d4['Inject'])(_0x1e9ca9[_0x256dbb(0x3b0)])),_0x4529c8(0x3,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x4af378[_0x256dbb(0x29e)]))],_0x310ed5);let _0x11fb45=class extends _0x4149d4[_0x256dbb(0x450)]{constructor(_0x12bba1,_0x57fd3e,_0x241bce,_0x3f4142,_0x4a32c0){const _0x3a7462=_0x256dbb;super(),this[_0x3a7462(0x1f4)]=_0x12bba1,this[_0x3a7462(0x427)]=_0x57fd3e,this[_0x3a7462(0x1be)]=_0x241bce,this[_0x3a7462(0x2ff)]=_0x3f4142,this[_0x3a7462(0x191)]=_0x4a32c0,_0x25449f(this,'_lastEditingShapeKey',null),this['_initEvents'](),this[_0x3a7462(0x29c)](),this['_initEditingParams']();}['_initEvents'](){const _0x5424aa=_0x256dbb;let {scene:_0x29deed}=this[_0x5424aa(0x1f4)];this[_0x5424aa(0x283)](_0x29deed[_0x5424aa(0x1d0)][_0x5424aa(0x2c1)](_0x5b740b=>{const _0x55d123=_0x5424aa;let {offsetX:_0x187826,offsetY:_0x27b6bc}=_0x5b740b,_0x54c452=_0x29deed[_0x55d123(0x331)](_0x55342f[_0x55d123(0x2fb)][_0x55d123(0x285)]([_0x187826,_0x27b6bc]));if(_0x54c452 instanceof _0x1a5a1c){if((0x0,_0x5b498f[_0x55d123(0x237)])(this[_0x55d123(0x191)][_0x55d123(0x203)](_0x54c452['unitId'],_0x54c452['subUnitId'],_0x54c452[_0x55d123(0x204)])))return;this[_0x55d123(0x427)]['setEditing']({'visible':!0x0,'unitId':_0x54c452[_0x55d123(0x384)],'subUnitId':_0x54c452[_0x55d123(0x1d7)],'shapeId':_0x54c452[_0x55d123(0x204)],'shapeKey':_0x54c452[_0x55d123(0x22b)]});}}));}[_0x256dbb(0x29c)](){const _0x2e4367=_0x256dbb;this['disposeWithMe'](this['_drawingManagerService'][_0x2e4367(0x47a)][_0x2e4367(0x22a)](_0x46546d=>{const _0x1a7dd3=_0x2e4367;if(_0x46546d[_0x1a7dd3(0x234)]===0x1){let _0x56ac80=_0x46546d[0x0],_0x5ee0f6=this[_0x1a7dd3(0x1be)][_0x1a7dd3(0x472)](_0x56ac80);if((_0x5ee0f6==null?void 0x0:_0x5ee0f6[_0x1a7dd3(0x277)])===_0x4149d4[_0x1a7dd3(0x29a)][_0x1a7dd3(0x3ca)]){let _0x5ebaba=this[_0x1a7dd3(0x427)][_0x1a7dd3(0x202)]();if((_0x5ebaba==null?void 0x0:_0x5ebaba[_0x1a7dd3(0x204)])===_0x56ac80[_0x1a7dd3(0x346)]&&_0x5ebaba[_0x1a7dd3(0x2cd)])return;(0x0,_0x5b498f['isConnectorShape'])(this[_0x1a7dd3(0x191)]['getShapeType'](_0x56ac80[_0x1a7dd3(0x384)],_0x56ac80[_0x1a7dd3(0x1d7)],_0x56ac80[_0x1a7dd3(0x346)]))&&this[_0x1a7dd3(0x427)][_0x1a7dd3(0x474)](null);}else this[_0x1a7dd3(0x427)][_0x1a7dd3(0x202)]()&&(this[_0x1a7dd3(0x427)][_0x1a7dd3(0x1d9)](!0x0),requestAnimationFrame(()=>{const _0x317432=_0x1a7dd3;this[_0x317432(0x427)]['setEditing'](null);}));}else this[_0x1a7dd3(0x427)]['getEditing']()&&(this[_0x1a7dd3(0x427)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x21fea3=_0x1a7dd3;this[_0x21fea3(0x427)][_0x21fea3(0x474)](null);}));})),this['disposeWithMe'](this[_0x2e4367(0x1be)]['remove$'][_0x2e4367(0x22a)](_0x544baa=>{const _0x1d0d19=_0x2e4367;let _0x271b4f=this[_0x1d0d19(0x427)][_0x1d0d19(0x202)]();_0x271b4f&&_0x544baa['some'](_0x20027c=>_0x20027c[_0x1d0d19(0x346)]===_0x271b4f[_0x1d0d19(0x204)])&&this[_0x1d0d19(0x427)][_0x1d0d19(0x474)](null);}));}[_0x256dbb(0x356)](){const _0xb4e142=_0x256dbb;this[_0xb4e142(0x283)](this['_shapeTextEditingService'][_0xb4e142(0x2e7)][_0xb4e142(0x22a)](_0x55222c=>{const _0x4c1211=_0xb4e142;let {scene:_0x3774c8}=this[_0x4c1211(0x1f4)];if(this[_0x4c1211(0x3bb)]){let _0x5401f7=_0x3774c8['getObjectIncludeInGroup'](this[_0x4c1211(0x3bb)]);_0x5401f7&&_0x5401f7[_0x4c1211(0x474)](!0x1);}if(_0x55222c){let _0x315e92=!!_0x55222c[_0x4c1211(0x2cd)],_0x494331=_0x3774c8[_0x4c1211(0x1aa)](_0x55222c[_0x4c1211(0x1a8)]);_0x494331&&(_0x494331[_0x4c1211(0x474)](_0x315e92),this[_0x4c1211(0x3bb)]=_0x55222c[_0x4c1211(0x1a8)]),this[_0x4c1211(0x2ff)][_0x4c1211(0x400)](_0x4149d4[_0x4c1211(0x2d4)],_0x315e92);}else this[_0x4c1211(0x3bb)]=null,this['_contextService'][_0x4c1211(0x400)](_0x4149d4[_0x4c1211(0x2d4)],!0x1);}));}};_0x11fb45=_0x53314b([_0x4529c8(0x1,(0x0,_0x4149d4['Inject'])(_0x37fab1)),_0x4529c8(0x2,_0x85b915[_0x256dbb(0x44d)]),_0x4529c8(0x3,_0x4149d4['IContextService']),_0x4529c8(0x4,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x4af378[_0x256dbb(0x29e)]))],_0x11fb45);let _0x5b28ae=class extends _0x5d2674[_0x256dbb(0x3e4)]{constructor(_0x17892d,_0x242356,_0x1fbdc4,_0x5420d3){super(_0x17892d,_0x242356,_0x1fbdc4,_0x5420d3,{'componentKey':_0x2f1acd,'editorUnitId':_0x251518});}};_0x5b28ae=_0x53314b([_0x4529c8(0x1,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x1d9065[_0x256dbb(0x412)])),_0x4529c8(0x2,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x35224d[_0x256dbb(0x208)])),_0x4529c8(0x3,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x35224d['DocSelectionRenderService']))],_0x5b28ae);let _0x3cca7c=class extends _0x4149d4[_0x256dbb(0x450)]{constructor(_0x3a18e5,_0x4f248d,_0x597af0,_0x283185,_0x5bc518,_0x51d81f){const _0x39ab18=_0x256dbb;super(),this[_0x39ab18(0x366)]=_0x3a18e5,this['_renderManagerService']=_0x4f248d,this['_drawingManagerService']=_0x597af0,this[_0x39ab18(0x35f)]=_0x283185,this[_0x39ab18(0x438)]=_0x5bc518,this['_sheetDrawingShapeRenderController']=_0x51d81f,_0x25449f(this,_0x39ab18(0x389),new Set()),this['_initialize']();}[_0x256dbb(0x37e)](){const _0x4e7858=_0x256dbb;this[_0x4e7858(0x315)](),this[_0x4e7858(0x368)](),this[_0x4e7858(0x1d5)]();}[_0x256dbb(0x315)](){const _0x1b9aee=_0x256dbb;this[_0x1b9aee(0x283)](this[_0x1b9aee(0x1be)][_0x1b9aee(0x421)][_0x1b9aee(0x22a)](_0x174736=>{const _0xf7e1d9=_0x1b9aee;this[_0xf7e1d9(0x224)](_0x174736);}));}[_0x256dbb(0x368)](){const _0x1299d4=_0x256dbb;this[_0x1299d4(0x283)](this[_0x1299d4(0x366)][_0x1299d4(0x185)](_0x167b72=>{const _0x1c15f9=_0x1299d4;if(_0x167b72['id']===_0x4af378['UpdateSheetsShapeDataMutation']['id']){let {unitId:_0x39b3b3,subUnitId:_0x4771b2,shapeId:_0xefe2cb}=_0x167b72[_0x1c15f9(0x3c3)],_0x59d3f9=this[_0x1c15f9(0x1eb)](_0x39b3b3),_0x5098cb=(0x0,_0x85b915[_0x1c15f9(0x437)])({'unitId':_0x39b3b3,'subUnitId':_0x4771b2,'drawingId':_0xefe2cb}),_0x465f9a=_0x59d3f9==null?void 0x0:_0x59d3f9['scene'][_0x1c15f9(0x1aa)](_0x5098cb);_0x465f9a&&(this[_0x1c15f9(0x2e6)][_0x1c15f9(0x281)](_0x465f9a),_0x465f9a['makeDirty'](!0x0));return;}if(_0x167b72['id']===_0x4af378[_0x1c15f9(0x1b0)]['id']){var _0x3e423e;let {unitId:_0x4c349a,subUnitId:_0x5d43f2,shapeId:_0x45063f}=_0x167b72[_0x1c15f9(0x3c3)],_0x4c9a6f=this[_0x1c15f9(0x1eb)](_0x4c349a);if(_0x4c9a6f==null)return;let {scene:_0x572354}=_0x4c9a6f,_0x56793f=(0x0,_0x85b915[_0x1c15f9(0x437)])({'unitId':_0x4c349a,'subUnitId':_0x5d43f2,'drawingId':_0x45063f}),_0x4244ae=_0x572354['getObjectIncludeInGroup'](_0x56793f);if(!((_0x3e423e=this[_0x1c15f9(0x2c3)][_0x1c15f9(0x1a3)](_0x4c349a))!=null&&_0x3e423e[_0x1c15f9(0x23a)](_0x57bfe3[_0x1c15f9(0x376)])[_0x1c15f9(0x3cd)](_0x5d43f2)))return!0x1;if(_0x4244ae)return;this['_insertShapes']([{'unitId':_0x4c349a,'subUnitId':_0x5d43f2,'drawingId':_0x45063f}]);}}));}[_0x256dbb(0x1d5)](){const _0x291de3=_0x256dbb;this[_0x291de3(0x283)](this['_drawingManagerService'][_0x291de3(0x1bf)][_0x291de3(0x22a)](_0x3776cd=>{_0x3776cd['forEach'](_0x37fcba=>{const _0xcc86e=_0x1d9e;let {unitId:_0x2b53e6,subUnitId:_0x1c2c4e,drawingId:_0x589f6b}=_0x37fcba,_0x33ed67=this[_0xcc86e(0x1be)][_0xcc86e(0x472)](_0x37fcba);if(_0x33ed67==null)return;let {transform:_0x3630c5,drawingType:_0x5ee054,srcRect:_0x1ffcc6,prstGeom:_0x13f4b5}=_0x33ed67;if(_0x5ee054!==_0x4149d4[_0xcc86e(0x29a)]['DRAWING_SHAPE'])return;let _0x245b69=this['_getSceneAndTransformerByDrawingSearch'](_0x2b53e6);if(_0x245b69==null)return;let {scene:_0xbb2013,transformer:_0x591935}=_0x245b69;if(_0x3630c5==null)return!0x0;let _0x5a4add=(0x0,_0x85b915[_0xcc86e(0x437)])({'unitId':_0x2b53e6,'subUnitId':_0x1c2c4e,'drawingId':_0x589f6b}),_0x5295b3=_0xbb2013[_0xcc86e(0x1aa)](_0x5a4add);if(_0x5295b3==null)return!0x0;_0x5295b3[_0xcc86e(0x2a3)](_0x1ffcc6),_0x5295b3[_0xcc86e(0x460)](_0x13f4b5);});}));}[_0x256dbb(0x224)](_0x5911c5){const _0x231161=_0x256dbb;for(let _0x51c7b9 of _0x5911c5){var _0x234619;let {unitId:_0x4d7c7f,subUnitId:_0x37b2db,drawingId:_0x221fd4}=_0x51c7b9,_0x35fcd3=this[_0x231161(0x1eb)](_0x4d7c7f),_0x297ba6=(_0x234619=(0x0,_0x306eb1[_0x231161(0x37b)])(this[_0x231161(0x35f)],_0x4d7c7f))==null?void 0x0:_0x234619[_0x231161(0x1d7)];if(_0x35fcd3==null||_0x297ba6!==_0x37b2db)return;let _0x4fb089=(0x0,_0x85b915[_0x231161(0x437)])({'unitId':_0x4d7c7f,'subUnitId':_0x37b2db,'drawingId':_0x221fd4});if(this[_0x231161(0x389)][_0x231161(0x182)](_0x4fb089)||_0x35fcd3[_0x231161(0x257)][_0x231161(0x1aa)](_0x4fb089)!=null)return;let _0x335e12=this['_drawingManagerService'][_0x231161(0x472)](_0x51c7b9);if(_0x335e12==null||_0x335e12[_0x231161(0x277)]!==_0x4149d4[_0x231161(0x29a)][_0x231161(0x3ca)])return;if((0x0,_0x5b498f[_0x231161(0x237)])((_0x335e12[_0x231161(0x41f)]||{})[_0x231161(0x3c4)])){let _0x391291=_0x335e12[_0x231161(0x206)];_0x391291&&(_0x335e12['transform']={..._0x391291,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x231161(0x389)]['add'](_0x4fb089);try{this[_0x231161(0x2e6)][_0x231161(0x422)](_0x335e12,_0x35fcd3[_0x231161(0x257)]);}finally{this[_0x231161(0x389)][_0x231161(0x1e4)](_0x4fb089);}queueMicrotask(()=>{const _0x4a3f61=_0x231161;if(this[_0x4a3f61(0x235)])return;let _0x5391b3=(0x0,_0x85b915[_0x4a3f61(0x437)])(_0x51c7b9);if(!_0x35fcd3[_0x4a3f61(0x257)]['getObjectIncludeInGroup'](_0x5391b3))return;let _0x30ef56=this[_0x4a3f61(0x1be)][_0x4a3f61(0x472)](_0x51c7b9);_0x30ef56&&this[_0x4a3f61(0x1be)][_0x4a3f61(0x1a9)]([_0x30ef56]);});}}[_0x256dbb(0x1eb)](_0x53750a){const _0x3a9d76=_0x256dbb;if(_0x53750a==null)return;let _0x5554be=this['_renderManagerService']['getRenderById'](_0x53750a),_0x114ee3=_0x5554be==null?void 0x0:_0x5554be[_0x3a9d76(0x257)];return _0x114ee3==null?null:{'scene':_0x114ee3,'transformer':_0x114ee3['getTransformerByCreate']()};}};_0x3cca7c=_0x53314b([_0x4529c8(0x0,_0x4149d4[_0x256dbb(0x357)]),_0x4529c8(0x1,_0x55342f[_0x256dbb(0x16f)]),_0x4529c8(0x2,_0x85b915[_0x256dbb(0x44d)]),_0x4529c8(0x3,_0x4149d4['IUniverInstanceService']),_0x4529c8(0x4,(0x0,_0x4149d4['Inject'])(_0x306eb1[_0x256dbb(0x3e0)])),_0x4529c8(0x5,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x542c35))],_0x3cca7c);let _0x35de0f={'normal':{'fill':_0x5b498f[_0x256dbb(0x29b)][_0x256dbb(0x388)],'stroke':_0x5b498f[_0x256dbb(0x29b)]['cxnPointStroke'],'strokeWidth':_0x5b498f[_0x256dbb(0x29b)][_0x256dbb(0x482)]},'highlighted':{'fill':_0x256dbb(0x434),'stroke':_0x256dbb(0x170),'strokeWidth':0x2}};var _0x2480fa=class extends _0x55342f['Shape']{constructor(_0x561940,_0x5118b4){const _0x2b3ce6=_0x256dbb;super(_0x561940,_0x5118b4),_0x25449f(this,'_targetShapeId',''),_0x25449f(this,_0x2b3ce6(0x2fc),-0x1),_0x25449f(this,_0x2b3ce6(0x15c),''),_0x25449f(this,_0x2b3ce6(0x299),''),_0x25449f(this,_0x2b3ce6(0x3eb),!0x1),_0x5118b4&&this[_0x2b3ce6(0x3b2)](_0x5118b4);}[_0x256dbb(0x1c9)](){const _0x16a797=_0x256dbb;return{'unitId':this['_unitId'],'subUnitId':this[_0x16a797(0x299)],'shapeId':this[_0x16a797(0x22e)],'cxnIndex':this[_0x16a797(0x2fc)]};}[_0x256dbb(0x3ba)](_0x32d4c9){const _0x2a495b=_0x256dbb;this[_0x2a495b(0x3eb)]!==_0x32d4c9&&(this[_0x2a495b(0x3eb)]=_0x32d4c9,this[_0x2a495b(0x329)](!0x0));}[_0x256dbb(0x292)](){const _0x8be914=_0x256dbb;return this[_0x8be914(0x3eb)];}[_0x256dbb(0x3b2)](_0x36bc3c){const _0x450024=_0x256dbb;var _0x485215,_0x3940c8;_0x36bc3c[_0x450024(0x21b)]!==void 0x0&&(this[_0x450024(0x22e)]=_0x36bc3c[_0x450024(0x21b)]),_0x36bc3c[_0x450024(0x390)]!==void 0x0&&(this[_0x450024(0x2fc)]=_0x36bc3c['cxnIndex']),_0x36bc3c[_0x450024(0x384)]!==void 0x0&&(this[_0x450024(0x15c)]=_0x36bc3c[_0x450024(0x384)]),_0x36bc3c[_0x450024(0x1d7)]!==void 0x0&&(this[_0x450024(0x299)]=_0x36bc3c[_0x450024(0x1d7)]),_0x36bc3c[_0x450024(0x292)]!==void 0x0&&(this[_0x450024(0x3eb)]=_0x36bc3c[_0x450024(0x292)]),this['transformByState']({'width':(_0x485215=_0x36bc3c[_0x450024(0x3ea)])==null?_0x5b498f[_0x450024(0x29b)][_0x450024(0x1fd)]*0x2:_0x485215,'height':(_0x3940c8=_0x36bc3c[_0x450024(0x3e6)])==null?_0x5b498f[_0x450024(0x29b)][_0x450024(0x1fd)]*0x2:_0x3940c8});}[_0x256dbb(0x313)](_0x2a6a29){const _0x563612=_0x256dbb;let _0x389e24=this[_0x563612(0x3eb)]?_0x35de0f['highlighted']:_0x35de0f[_0x563612(0x297)];_0x55342f[_0x563612(0x241)]['drawWith'](_0x2a6a29,{'radius':_0x5b498f[_0x563612(0x29b)][_0x563612(0x1fd)],'fill':_0x389e24[_0x563612(0x35a)],'stroke':_0x389e24['stroke'],'strokeWidth':_0x389e24['strokeWidth'],'evented':!0x0});}};let _0x4bc6ac=class extends _0x4149d4[_0x256dbb(0x450)]{constructor(_0x1da57f,_0x192636,_0x393375,_0x5a8fca){const _0x26130c=_0x256dbb;super(),this['_context']=_0x1da57f,this[_0x26130c(0x2c3)]=_0x192636,this[_0x26130c(0x1be)]=_0x393375,this[_0x26130c(0x191)]=_0x5a8fca,_0x25449f(this,_0x26130c(0x1b1),[]),_0x25449f(this,_0x26130c(0x446),null),_0x25449f(this,_0x26130c(0x27b),-0x1),_0x25449f(this,_0x26130c(0x1d8),null),_0x25449f(this,'_unitId',''),_0x25449f(this,_0x26130c(0x299),''),_0x25449f(this,_0x26130c(0x2b9),null);}[_0x256dbb(0x42d)](_0x3cb16a,_0x309120,_0xe16f4d,_0x3ba47e){const _0xf66696=_0x256dbb;this['_currentScene']=_0x3cb16a,this[_0xf66696(0x15c)]=_0x309120,this[_0xf66696(0x299)]=_0xe16f4d,this[_0xf66696(0x2b9)]=_0x3ba47e;}['updateConnectionDetection'](_0x310241){const _0x2b8811=_0x256dbb;if(!this['_currentScene'])return null;let _0x46ae7a=this[_0x2b8811(0x2bb)](_0x310241);return _0x46ae7a?(this[_0x2b8811(0x446)]!==_0x46ae7a['shapeId']&&(this[_0x2b8811(0x21c)](),this[_0x2b8811(0x40a)](_0x46ae7a[_0x2b8811(0x204)],_0x46ae7a['shapeModel']),this[_0x2b8811(0x446)]=_0x46ae7a[_0x2b8811(0x204)]),this[_0x2b8811(0x1e2)](_0x310241)):(this['_activeTargetShapeId']!==null&&(this[_0x2b8811(0x21c)](),this[_0x2b8811(0x446)]=null),null);}[_0x256dbb(0x282)](){const _0x53d65c=_0x256dbb;this[_0x53d65c(0x21c)](),this[_0x53d65c(0x1d8)]=null,this[_0x53d65c(0x446)]=null,this['_highlightedSiteIndex']=-0x1,this['_draggingConnectorId']=null;}[_0x256dbb(0x2e3)](){const _0x5e3e60=_0x256dbb;return this['_activeTargetShapeId']===null||this['_highlightedSiteIndex']<0x0?null:{'shapeId':this[_0x5e3e60(0x446)],'cxnIndex':this['_highlightedSiteIndex']};}[_0x256dbb(0x2bb)](_0x2a3dea){const _0x243600=_0x256dbb;let _0x50abd8=this[_0x243600(0x1be)][_0x243600(0x323)](this['_unitId'],this[_0x243600(0x299)]);for(let _0x1e3e92 of Object[_0x243600(0x33e)](_0x50abd8)){if(_0x1e3e92===this[_0x243600(0x2b9)]||_0x50abd8[_0x1e3e92]['drawingType']!==_0x4149d4[_0x243600(0x29a)][_0x243600(0x3ca)])continue;let _0xe62e8f=this[_0x243600(0x191)][_0x243600(0x3d0)](this[_0x243600(0x15c)],this[_0x243600(0x299)],_0x1e3e92);if(!_0xe62e8f||(0x0,_0x5b498f[_0x243600(0x237)])(_0xe62e8f[_0x243600(0x203)]())||_0xe62e8f[_0x243600(0x328)]()[_0x243600(0x234)]===0x0||!this[_0x243600(0x1d8)])continue;let _0x287f1b=(0x0,_0x85b915['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0x243600(0x15c)],'subUnitId':this[_0x243600(0x299)],'drawingId':_0x1e3e92}),_0x2f2e0f=this[_0x243600(0x1d8)]['getObjectIncludeInGroup'](_0x287f1b);if(!_0x2f2e0f)continue;let {left:_0x4a18d1,top:_0x50c89e,width:_0x5e3a96,height:_0x40776d}=_0x2f2e0f[_0x243600(0x479)](),_0x3629c5=_0x4a18d1+_0x5e3a96/0x2,_0x46e7ea=_0x50c89e+_0x40776d/0x2,_0x541a0b=_0x2f2e0f[_0x243600(0x206)][_0x243600(0x387)](),_0x23d7d3=new _0x55342f[(_0x243600(0x1bd))]([_0x541a0b[0x0],_0x541a0b[0x1],_0x541a0b[0x2],_0x541a0b[0x3],_0x3629c5,_0x46e7ea]),_0x13a028=_0x2f2e0f['getParent'](),_0x3d4233=(_0x2f2e0f[_0x243600(0x23f)]&&(_0x13a028==null?void 0x0:_0x13a028[_0x243600(0x160)])===_0x55342f['RENDER_CLASS_TYPE'][_0x243600(0x24f)]?_0x13a028['ancestorTransform'][_0x243600(0x3d2)](_0x23d7d3):_0x23d7d3)['invert']()[_0x243600(0x3af)](_0x2a3dea),_0x2e0450=_0x5e3a96/0x2,_0x2654bd=_0x40776d/0x2;if(_0x3d4233['x']>=-_0x2e0450-0x5&&_0x3d4233['x']<=_0x2e0450+0x5&&_0x3d4233['y']>=-_0x2654bd-0x5&&_0x3d4233['y']<=_0x2654bd+0x5)return{'shapeId':_0x1e3e92,'shapeModel':_0xe62e8f};}return null;}[_0x256dbb(0x40a)](_0x1ace11,_0x159471){const _0x548ad4=_0x256dbb;if(!this[_0x548ad4(0x1d8)])return;let _0x3e1d5d=(0x0,_0x85b915[_0x548ad4(0x437)])({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0x1ace11}),_0x28a05e=this[_0x548ad4(0x1d8)][_0x548ad4(0x1aa)](_0x3e1d5d);if(!_0x28a05e)return;let {left:_0x438bf1,top:_0x5e3736,width:_0xf7dbd1,height:_0x3fca1c}=_0x28a05e[_0x548ad4(0x479)](),_0x257238=_0x438bf1+_0xf7dbd1/0x2,_0x313e78=_0x5e3736+_0x3fca1c/0x2,_0x1c3d69=_0x28a05e[_0x548ad4(0x206)][_0x548ad4(0x387)](),_0x3e475b=new _0x55342f[(_0x548ad4(0x1bd))]([_0x1c3d69[0x0],_0x1c3d69[0x1],_0x1c3d69[0x2],_0x1c3d69[0x3],_0x257238,_0x313e78]),_0x31664d=_0x28a05e['getParent'](),_0x360bd7=_0x28a05e[_0x548ad4(0x23f)]&&(_0x31664d==null?void 0x0:_0x31664d[_0x548ad4(0x160)])===_0x55342f[_0x548ad4(0x255)]['GROUP']?_0x31664d[_0x548ad4(0x3d9)][_0x548ad4(0x3d2)](_0x3e475b):_0x3e475b;_0x159471[_0x548ad4(0x374)]({'width':_0xf7dbd1,'height':_0x3fca1c});let _0x59ef2d=_0x159471['getConnectionSiteList']();for(let _0x30d99e of _0x59ef2d){let _0x4e5c1a=_0x30d99e['x']-_0xf7dbd1/0x2,_0x34e3a9=_0x30d99e['y']-_0x3fca1c/0x2,_0xc09b7e=_0x360bd7[_0x548ad4(0x3af)]({'x':_0x4e5c1a,'y':_0x34e3a9}),_0x3d02df=_0xc09b7e['x'],_0x485552=_0xc09b7e['y'],_0x568a96=new _0x2480fa(_0x548ad4(0x433)+_0x1ace11+'-'+_0x30d99e['index'],{'left':_0x3d02df-_0x5b498f[_0x548ad4(0x29b)][_0x548ad4(0x1fd)],'top':_0x485552-_0x5b498f[_0x548ad4(0x29b)][_0x548ad4(0x1fd)],'targetShapeId':_0x1ace11,'cxnIndex':_0x30d99e['index'],'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'width':_0x5b498f[_0x548ad4(0x29b)][_0x548ad4(0x1fd)]*0x2,'height':_0x5b498f[_0x548ad4(0x29b)][_0x548ad4(0x1fd)]*0x2,'zIndex':_0x55342f[_0x548ad4(0x28c)]+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x548ad4(0x28f)](_0x568a96),this[_0x548ad4(0x1d8)]['addObject'](_0x568a96,_0x55342f[_0x548ad4(0x28c)]+0x2);}}[_0x256dbb(0x1e2)](_0x5c4001){const _0x505a58=_0x256dbb;let _0x343d80=null,_0x553016=0x1/0x0,_0x1d8da7=null;for(let _0x4762a8 of this['_connectionSiteObjects']){let _0x502c1f=_0x4762a8[_0x505a58(0x392)]+_0x5b498f[_0x505a58(0x29b)]['cxnPointRadius'],_0x2d2ae4=_0x4762a8[_0x505a58(0x1dd)]+_0x5b498f[_0x505a58(0x29b)][_0x505a58(0x1fd)],_0x1207e4=_0x5c4001['x']-_0x502c1f,_0x179504=_0x5c4001['y']-_0x2d2ae4,_0x394819=Math[_0x505a58(0x1e5)](_0x1207e4*_0x1207e4+_0x179504*_0x179504);_0x394819<_0x553016&&(_0x553016=_0x394819,_0x343d80=_0x4762a8,_0x1d8da7={'x':_0x502c1f,'y':_0x2d2ae4});}let _0x12c48d=_0x553016<=0xa&&_0x343d80?_0x343d80['getConnectionInfo']()['cxnIndex']:-0x1;if(_0x12c48d!==this[_0x505a58(0x27b)]){for(let _0xb949de of this[_0x505a58(0x1b1)]){let _0x50dbc9=_0xb949de[_0x505a58(0x1c9)]();_0xb949de[_0x505a58(0x3ba)](_0x50dbc9[_0x505a58(0x390)]===_0x12c48d);}this[_0x505a58(0x27b)]=_0x12c48d;}if(_0x553016<=0xa&&_0x343d80&&_0x1d8da7){let _0x33fe78=_0x343d80['getConnectionInfo'](),_0x137eb0=this['_getConnectionSiteAngle'](_0x33fe78[_0x505a58(0x204)],_0x33fe78[_0x505a58(0x390)]);return{'shapeId':_0x33fe78[_0x505a58(0x204)],'cxnIndex':_0x33fe78[_0x505a58(0x390)],'unitId':_0x33fe78[_0x505a58(0x384)],'subUnitId':_0x33fe78[_0x505a58(0x1d7)],'worldPoint':_0x1d8da7,'angle':_0x137eb0};}return null;}[_0x256dbb(0x25d)](_0x432a94,_0x2cc3e7){const _0x20fb06=_0x256dbb;let _0x4803e7=this[_0x20fb06(0x191)][_0x20fb06(0x3d0)](this[_0x20fb06(0x15c)],this[_0x20fb06(0x299)],_0x432a94);if(!_0x4803e7)return 0x0;let _0x1bea45=this[_0x20fb06(0x1be)][_0x20fb06(0x472)]({'unitId':this[_0x20fb06(0x15c)],'subUnitId':this[_0x20fb06(0x299)],'drawingId':_0x432a94});if(!(_0x1bea45!=null&&_0x1bea45[_0x20fb06(0x206)]))return 0x0;let {width:_0x236ed9=0x0,height:_0x341544=0x0,flipX:_0x12d4a4=!0x1,flipY:_0x39f32e=!0x1}=_0x1bea45[_0x20fb06(0x206)];_0x4803e7[_0x20fb06(0x374)]({'width':_0x236ed9,'height':_0x341544});let _0x27f5d0=_0x4803e7[_0x20fb06(0x328)]()[_0x20fb06(0x417)](_0x9c8e91=>_0x9c8e91[_0x20fb06(0x215)]===_0x2cc3e7);if(!_0x27f5d0)return 0x0;let _0x311d4a=_0x27f5d0[_0x20fb06(0x1af)]/0xea60;return _0x12d4a4&&(_0x311d4a=0xb4-_0x311d4a),_0x39f32e&&(_0x311d4a=-_0x311d4a),_0x311d4a=(_0x311d4a%0x168+0x168)%0x168,_0x311d4a;}['_clearConnectionSites'](){const _0x1dd875=_0x256dbb;for(let _0x5e434e of this[_0x1dd875(0x1b1)])_0x5e434e['dispose']();this['_connectionSiteObjects']=[],this[_0x1dd875(0x27b)]=-0x1;}[_0x256dbb(0x1c5)](){const _0x561603=_0x256dbb;this[_0x561603(0x21c)](),super[_0x561603(0x1c5)]();}};_0x4bc6ac=_0x53314b([_0x4529c8(0x1,(0x0,_0x4149d4['Inject'])(_0x55342f['IRenderManagerService'])),_0x4529c8(0x2,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x85b915[_0x256dbb(0x44d)])),_0x4529c8(0x3,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x4af378[_0x256dbb(0x29e)]))],_0x4bc6ac);let _0x59f179=class extends _0x4149d4[_0x256dbb(0x450)]{constructor(_0x5845ce,_0x571f4a,_0x59c05d,_0x1a6c5b,_0x3a06bd){const _0x20cf38=_0x256dbb;super(),this[_0x20cf38(0x3ec)]=_0x5845ce,this['_sheetClipboardService']=_0x571f4a,this[_0x20cf38(0x348)]=_0x59c05d,this[_0x20cf38(0x21f)]=_0x1a6c5b,this[_0x20cf38(0x1a7)]=_0x3a06bd,_0x25449f(this,'_copyInfo',void 0x0),this[_0x20cf38(0x36c)](),this[_0x20cf38(0x43c)]();}get[_0x256dbb(0x2e5)](){const _0x3019e1=_0x256dbb;return this[_0x3019e1(0x348)][_0x3019e1(0x3c1)]();}[_0x256dbb(0x43c)](){this['_groupCopyPasteController']['registerFeaturePasteHook'](({fromUnitId:_0x533d19,fromSubUnitId:_0x5ed14f,toUnitId:_0x3fb1ca,toSubUnitId:_0x27453f,idMap:_0x374282})=>{const _0xd90588=_0x1d9e;let _0x4a1ec3=[],_0x10441a=[];for(let [_0x5345ab,_0x58634b]of _0x374282[_0xd90588(0x1b6)]()){let _0x11df86=this[_0xd90588(0x21f)][_0xd90588(0x3d0)](_0x533d19,_0x5ed14f,_0x5345ab);if(!_0x11df86)continue;let _0x71916a=_0x11df86[_0xd90588(0x203)](),_0x1ae9c3=JSON[_0xd90588(0x21e)](JSON[_0xd90588(0x45e)](_0x11df86[_0xd90588(0x1ae)]()));if(_0x1ae9c3[_0xd90588(0x2eb)]){var _0x532aea,_0x37285f;let _0x87bbbd=(_0x532aea=_0x1ae9c3[_0xd90588(0x2eb)]['from'])==null?void 0x0:_0x532aea[_0xd90588(0x204)],_0x164452=(_0x37285f=_0x1ae9c3[_0xd90588(0x2eb)]['to'])==null?void 0x0:_0x37285f['shapeId'],_0x4905da=_0x87bbbd?_0x374282[_0xd90588(0x182)](_0x87bbbd):!0x0,_0x2f830a=_0x164452?_0x374282['has'](_0x164452):!0x0;_0x4905da&&_0x87bbbd&&_0x1ae9c3[_0xd90588(0x2eb)][_0xd90588(0x1f0)]?_0x1ae9c3['relation'][_0xd90588(0x1f0)]={..._0x1ae9c3[_0xd90588(0x2eb)][_0xd90588(0x1f0)],'shapeId':_0x374282[_0xd90588(0x451)](_0x87bbbd)}:_0x1ae9c3['relation'][_0xd90588(0x1f0)]=void 0x0,_0x2f830a&&_0x164452&&_0x1ae9c3[_0xd90588(0x2eb)]['to']?_0x1ae9c3[_0xd90588(0x2eb)]['to']={..._0x1ae9c3[_0xd90588(0x2eb)]['to'],'shapeId':_0x374282['get'](_0x164452)}:_0x1ae9c3['relation']['to']=void 0x0;}_0x4a1ec3['push']({'id':_0x4af378[_0xd90588(0x1b0)]['id'],'params':{'unitId':_0x3fb1ca,'subUnitId':_0x27453f,'shapeId':_0x58634b,'shapeType':_0x71916a,'shapeData':_0x1ae9c3}}),_0x10441a[_0xd90588(0x28f)]({'id':_0x4af378[_0xd90588(0x458)]['id'],'params':{'unitId':_0x3fb1ca,'subUnitId':_0x27453f,'shapeId':_0x58634b}});}return{'redos':_0x4a1ec3,'undos':_0x10441a};});}['_initCopyPaste'](){const _0x13c2e5=_0x256dbb;this[_0x13c2e5(0x283)](this[_0x13c2e5(0x430)][_0x13c2e5(0x338)]({'id':_0x13c2e5(0x3ae),'onBeforeCopy':(_0x1f3dee,_0x2b3f03,_0x5571f4,_0xdcc8cd)=>{const _0x9f0091=_0x13c2e5;this[_0x9f0091(0x1ac)]=null;let _0x56dfd6=this[_0x9f0091(0x2e5)];if(_0x56dfd6[_0x9f0091(0x234)]){let _0x6b9d00=_0x56dfd6[_0x9f0091(0x1c4)](_0x288f94=>_0x288f94[_0x9f0091(0x277)]===_0x4149d4['DrawingTypeEnum'][_0x9f0091(0x3ca)]);if(_0x6b9d00['length']===0x0)return;this['_copyInfo']={'unitId':_0x1f3dee,'subUnitId':_0x2b3f03,'copyType':_0xdcc8cd,'drawings':_0x6b9d00};}else this['_createCopyInfoByRange'](_0x1f3dee,_0x2b3f03,_0x5571f4,_0xdcc8cd);},'onPasteCells':(_0x37b5ec,_0x538c59,_0x274e3e,_0x1220ad)=>{const _0x1c2c56=_0x13c2e5;if(!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x5712c1}=_0x1220ad;return _0x5712c1===_0x57bfe3[_0x1c2c56(0x233)][_0x1c2c56(0x39c)]?this[_0x1c2c56(0x3a9)](_0x538c59,this[_0x1c2c56(0x1ac)][_0x1c2c56(0x284)]===_0x57bfe3[_0x1c2c56(0x1d2)]['CUT']):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x25c347=>this[_0x13c2e5(0x1ac)]?this[_0x13c2e5(0x3a9)](_0x25c347,this[_0x13c2e5(0x1ac)][_0x13c2e5(0x284)]===_0x57bfe3[_0x13c2e5(0x1d2)][_0x13c2e5(0x3f5)]):{'redos':[],'undos':[]}}));}[_0x256dbb(0x252)](_0x301930,_0x3e3625,_0x850112,_0x42ff6b){const _0x1148ea=_0x256dbb;let _0x37cf94=this[_0x1148ea(0x3ec)][_0x1148ea(0x3cd)](_0x301930,_0x3e3625);if(!_0x37cf94)return;let _0x28fd53=(0x0,_0x45e9dd[_0x1148ea(0x2bc)])(_0x37cf94,_0x850112);if(!_0x28fd53)return;let {startX:_0x2ad4c1,endX:_0x2ee3be,startY:_0x39fa37,endY:_0x202c15}=_0x28fd53,_0x1a6135=this[_0x1148ea(0x348)][_0x1148ea(0x323)](_0x301930,_0x3e3625),_0xec897f=this[_0x1148ea(0x2e5)][_0x1148ea(0x19d)]();for(let [_0x4cfa85,_0x52c3ff]of Object[_0x1148ea(0x1b6)](_0x1a6135)){if(_0x52c3ff[_0x1148ea(0x277)]!==_0x4149d4[_0x1148ea(0x29a)]['DRAWING_SHAPE'])continue;let {transform:_0x186cc7}=_0x52c3ff;if(!_0x186cc7)continue;let {left:_0xd3d102=0x0,top:_0x10e451=0x0,width:_0xac02c=0x0,height:_0x41dab6=0x0}=_0x186cc7;_0x2ad4c1<=_0xd3d102&&_0x2ee3be>=_0xd3d102+_0xac02c&&_0x39fa37<=_0x10e451&&_0x202c15>=_0x10e451+_0x41dab6&&_0xec897f['push'](_0x52c3ff);}_0xec897f[_0x1148ea(0x234)]>0x0&&(this[_0x1148ea(0x1ac)]={'unitId':_0x301930,'subUnitId':_0x3e3625,'copyType':_0x42ff6b,'copyRange':_0x850112,'drawings':_0xec897f});}[_0x256dbb(0x3a9)](_0x28c0dd,_0xdeaf){const _0x2282ae=_0x256dbb;let {unitId:_0x1322a8,subUnitId:_0x4fbcc4,range:_0x2f3308}=_0x28c0dd,_0x22eab7=this[_0x2282ae(0x3ec)][_0x2282ae(0x3cd)](_0x1322a8,_0x4fbcc4);if(!_0x22eab7)return{'redos':[],'undos':[]};let _0x108abd=(0x0,_0x45e9dd[_0x2282ae(0x42c)])(_0x2f3308),{unitId:_0x24d1f2,subUnitId:_0x466787,copyRange:_0xddcaf1,drawings:_0x56fd6a}=this[_0x2282ae(0x1ac)],_0x27f838=this['_sheetSkeletonService'][_0x2282ae(0x3cd)](_0x24d1f2,_0x466787);if(!_0x27f838)return{'redos':[],'undos':[]};let _0x25b91d;if(!_0xddcaf1){let _0x48037b=0x1/0x0,_0x36de70=0x1/0x0;for(let _0x3f2005 of _0x56fd6a){var _0x2ad2b9;let {left:_0x4c007f=0x0,top:_0x4bfbdd=0x0}=(_0x2ad2b9=_0x3f2005['transform'])==null?{}:_0x2ad2b9;_0x4c007f<_0x48037b&&(_0x48037b=_0x4c007f),_0x4bfbdd<_0x36de70&&(_0x36de70=_0x4bfbdd);}_0x48037b!==0x1/0x0&&_0x36de70!==0x1/0x0&&(_0x25b91d={'left':_0x48037b,'top':_0x36de70});}let _0x414a66=new Map();if(!_0xdeaf){for(let _0x1e58f6 of _0x56fd6a)_0x414a66[_0x2282ae(0x2e0)](_0x1e58f6[_0x2282ae(0x346)],(0x0,_0x4149d4[_0x2282ae(0x435)])());}let _0xcb99e2=[],_0x5c86d4=[];for(let _0x623e97 of _0x56fd6a){let {drawingId:_0x13be68,transform:_0x1d73c6,sheetTransform:_0x5c6b05}=_0x623e97;if(!_0x1d73c6||!_0x5c6b05)continue;let _0x116112=this[_0x2282ae(0x1b4)]({'transform':_0x1d73c6,'sheetTransform':_0x5c6b05},{'skeleton':_0x27f838,'range':_0xddcaf1},{'skeleton':_0x22eab7,'range':_0x108abd},_0x25b91d);if(_0xdeaf){let {redos:_0x258201,undos:_0x1a7eb5}=this['_generateCutPasteMutations']({'fromUnitId':_0x24d1f2,'fromSubUnitId':_0x466787,'toUnitId':_0x1322a8,'toSubUnitId':_0x4fbcc4,'drawing':_0x623e97,'newTransforms':_0x116112});_0xcb99e2[_0x2282ae(0x28f)](..._0x258201),_0x5c86d4[_0x2282ae(0x28f)](..._0x1a7eb5);continue;}let {redos:_0x210a2b,undos:_0x363cad}=this[_0x2282ae(0x256)]({'toUnitId':_0x1322a8,'toSubUnitId':_0x4fbcc4,'drawing':_0x623e97,'newTransforms':_0x116112,'newDrawingId':_0x414a66[_0x2282ae(0x451)](_0x13be68),'idMap':_0x414a66});_0xcb99e2[_0x2282ae(0x28f)](..._0x210a2b),_0x5c86d4[_0x2282ae(0x28f)](..._0x363cad);}return{'redos':_0xcb99e2,'undos':_0x5c86d4};}['_generateCutPasteMutations'](_0x520daf){const _0x455149=_0x256dbb;let {fromUnitId:_0x45b06a,fromSubUnitId:_0x408904,toUnitId:_0x4127d8,toSubUnitId:_0x102e24,drawing:_0x4a165a,newTransforms:_0x53e03a}=_0x520daf,_0x34a760={..._0x4a165a,'unitId':_0x4127d8,'subUnitId':_0x102e24,'transform':_0x53e03a[_0x455149(0x206)],'sheetTransform':_0x53e03a[_0x455149(0x244)]};if(_0x4127d8===_0x45b06a&&_0x102e24===_0x408904){let {redo:_0x4822e4,undo:_0x3f6fd0,objects:_0x44e68a}=this[_0x455149(0x348)][_0x455149(0x480)]([_0x34a760]);return{'redos':[{'id':_0x1e9ca9[_0x455149(0x2a6)]['id'],'params':{'unitId':_0x4127d8,'subUnitId':_0x102e24,'type':_0x1e9ca9[_0x455149(0x2ee)][_0x455149(0x30c)],'op':_0x4822e4,'objects':_0x44e68a}}],'undos':[{'id':_0x1e9ca9[_0x455149(0x2a6)]['id'],'params':{'unitId':_0x4127d8,'subUnitId':_0x102e24,'type':_0x1e9ca9['DrawingApplyType'][_0x455149(0x30c)],'op':_0x3f6fd0,'objects':_0x44e68a}}]};}else{let _0x24d466=this['_sheetDrawingService']['getBatchRemoveOp']([_0x4a165a]),_0x38ee7b=this[_0x455149(0x348)][_0x455149(0x408)]([_0x34a760]),_0x18972e=this[_0x455149(0x21f)][_0x455149(0x3d0)](_0x4a165a[_0x455149(0x384)],_0x4a165a[_0x455149(0x1d7)],_0x4a165a['drawingId']);if(!_0x18972e)return{'redos':[],'undos':[]};let _0x176b4d=_0x18972e['getShapeType'](),_0xfe698e=JSON[_0x455149(0x21e)](JSON[_0x455149(0x45e)](_0x18972e[_0x455149(0x1ae)]()));return{'redos':[{'id':_0x1e9ca9[_0x455149(0x2a6)]['id'],'params':{'unitId':_0x45b06a,'subUnitId':_0x408904,'type':_0x1e9ca9[_0x455149(0x2ee)]['REMOVE'],'op':_0x24d466['redo'],'objects':_0x24d466[_0x455149(0x2b8)]}},{'id':_0x4af378[_0x455149(0x458)]['id'],'params':{'unitId':_0x45b06a,'subUnitId':_0x408904,'shapeId':_0x4a165a[_0x455149(0x346)]}},{'id':_0x1e9ca9[_0x455149(0x2a6)]['id'],'params':{'unitId':_0x4127d8,'subUnitId':_0x102e24,'type':_0x1e9ca9[_0x455149(0x2ee)][_0x455149(0x20d)],'op':_0x38ee7b['redo'],'objects':_0x38ee7b['objects']}},{'id':_0x4af378[_0x455149(0x1b0)]['id'],'params':{'unitId':_0x4127d8,'subUnitId':_0x102e24,'shapeId':_0x4a165a[_0x455149(0x346)],'shapeType':_0x176b4d,'shapeData':_0xfe698e}}],'undos':[{'id':_0x1e9ca9[_0x455149(0x2a6)]['id'],'params':{'unitId':_0x45b06a,'subUnitId':_0x408904,'type':_0x1e9ca9['DrawingApplyType'][_0x455149(0x20d)],'op':_0x24d466[_0x455149(0x25a)],'objects':_0x24d466['objects']}},{'id':_0x4af378['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x45b06a,'subUnitId':_0x408904,'shapeId':_0x4a165a['drawingId'],'shapeType':_0x176b4d,'shapeData':_0xfe698e}},{'id':_0x1e9ca9[_0x455149(0x2a6)]['id'],'params':{'unitId':_0x4127d8,'subUnitId':_0x102e24,'type':_0x1e9ca9[_0x455149(0x2ee)][_0x455149(0x1fc)],'op':_0x38ee7b[_0x455149(0x25a)],'objects':_0x38ee7b['objects']}},{'id':_0x4af378['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x4127d8,'subUnitId':_0x102e24,'shapeId':_0x4a165a[_0x455149(0x346)]}}]};}}[_0x256dbb(0x256)](_0x52c8a3){const _0x612e4e=_0x256dbb;let {toUnitId:_0x59d940,toSubUnitId:_0x5b179a,drawing:_0x3bdce6,newTransforms:_0x5cfa9a,newDrawingId:_0x5dddde,idMap:_0x3d45fb}=_0x52c8a3,_0x507542={..._0x3bdce6,'unitId':_0x59d940,'subUnitId':_0x5b179a,'drawingId':_0x5dddde,'transform':_0x5cfa9a[_0x612e4e(0x206)],'sheetTransform':_0x5cfa9a[_0x612e4e(0x244)]},{redo:_0x4d5128,undo:_0x34acd3,objects:_0x1ebe7f}=this[_0x612e4e(0x348)][_0x612e4e(0x408)]([_0x507542]),_0xd8ac4e=this['_shapeService']['getShapeModel'](_0x3bdce6[_0x612e4e(0x384)],_0x3bdce6[_0x612e4e(0x1d7)],_0x3bdce6['drawingId']);if(!_0xd8ac4e)return{'redos':[],'undos':[]};let _0x6a82d3=_0xd8ac4e[_0x612e4e(0x203)](),_0x38d451=JSON['parse'](JSON['stringify'](_0xd8ac4e['getShapeData']()));if(_0x38d451[_0x612e4e(0x2eb)]){var _0x2ff1d3,_0x4add2b;let _0x512c48=(_0x2ff1d3=_0x38d451[_0x612e4e(0x2eb)][_0x612e4e(0x1f0)])==null?void 0x0:_0x2ff1d3[_0x612e4e(0x204)],_0x3ac7ea=(_0x4add2b=_0x38d451[_0x612e4e(0x2eb)]['to'])==null?void 0x0:_0x4add2b[_0x612e4e(0x204)],_0x29f929=_0x512c48?_0x3d45fb[_0x612e4e(0x182)](_0x512c48):!0x0,_0x4cee92=_0x3ac7ea?_0x3d45fb[_0x612e4e(0x182)](_0x3ac7ea):!0x0;_0x29f929&&_0x512c48&&_0x38d451['relation']['from']?_0x38d451[_0x612e4e(0x2eb)][_0x612e4e(0x1f0)]={..._0x38d451[_0x612e4e(0x2eb)][_0x612e4e(0x1f0)],'shapeId':_0x3d45fb[_0x612e4e(0x451)](_0x512c48)}:_0x38d451[_0x612e4e(0x2eb)][_0x612e4e(0x1f0)]=void 0x0,_0x4cee92&&_0x3ac7ea&&_0x38d451[_0x612e4e(0x2eb)]['to']?_0x38d451[_0x612e4e(0x2eb)]['to']={..._0x38d451[_0x612e4e(0x2eb)]['to'],'shapeId':_0x3d45fb[_0x612e4e(0x451)](_0x3ac7ea)}:_0x38d451[_0x612e4e(0x2eb)]['to']=void 0x0;}return{'redos':[{'id':_0x1e9ca9[_0x612e4e(0x2a6)]['id'],'params':{'unitId':_0x59d940,'subUnitId':_0x5b179a,'type':_0x1e9ca9[_0x612e4e(0x2ee)][_0x612e4e(0x20d)],'op':_0x4d5128,'objects':_0x1ebe7f}},{'id':_0x4af378[_0x612e4e(0x1b0)]['id'],'params':{'unitId':_0x59d940,'subUnitId':_0x5b179a,'shapeId':_0x5dddde,'shapeType':_0x6a82d3,'shapeData':_0x38d451}}],'undos':[{'id':_0x1e9ca9[_0x612e4e(0x2a6)]['id'],'params':{'unitId':_0x59d940,'subUnitId':_0x5b179a,'type':_0x1e9ca9[_0x612e4e(0x2ee)][_0x612e4e(0x1fc)],'op':_0x34acd3,'objects':_0x1ebe7f}},{'id':_0x4af378[_0x612e4e(0x458)]['id'],'params':{'unitId':_0x59d940,'subUnitId':_0x5b179a,'shapeId':_0x5dddde}}]};}['_updateTransform'](_0x2d0a06,_0x1a70be,_0x2824f4,_0x1a0583){const _0x3880b8=_0x256dbb;var _0x33baa9;let {range:_0x1fb729,skeleton:_0x3118a1}=_0x1a70be,{range:_0x28b267,skeleton:_0xbe35cc}=_0x2824f4,{transform:_0x2163ef,sheetTransform:_0x321db9}=_0x2d0a06,_0x2b1904={..._0x2163ef};if(_0x1fb729){let _0x3deb5a=(0x0,_0x45e9dd['attachRangeWithCoord'])(_0x3118a1,_0x1fb729),_0x3fd99a=(0x0,_0x45e9dd['attachRangeWithCoord'])(_0xbe35cc,_0x28b267);if(_0x3deb5a&&_0x3fd99a){var _0x7870f1,_0x178931;let _0x3203bd=_0x3fd99a[_0x3880b8(0x44a)]-_0x3deb5a[_0x3880b8(0x44a)],_0xe16ce=_0x3fd99a[_0x3880b8(0x2d7)]-_0x3deb5a[_0x3880b8(0x2d7)];_0x2b1904[_0x3880b8(0x392)]=((_0x7870f1=_0x2b1904[_0x3880b8(0x392)])==null?0x0:_0x7870f1)+_0x3203bd,_0x2b1904[_0x3880b8(0x1dd)]=((_0x178931=_0x2b1904[_0x3880b8(0x1dd)])==null?0x0:_0x178931)+_0xe16ce;}}else{let _0xd6f417=(0x0,_0x45e9dd[_0x3880b8(0x2bc)])(_0xbe35cc,_0x28b267);if(_0x1a0583&&_0xd6f417){var _0x1b7ea8,_0x136b46;let _0x464577=((_0x1b7ea8=_0x2b1904[_0x3880b8(0x392)])==null?0x0:_0x1b7ea8)-_0x1a0583[_0x3880b8(0x392)],_0x1c9349=((_0x136b46=_0x2b1904[_0x3880b8(0x1dd)])==null?0x0:_0x136b46)-_0x1a0583['top'];_0x2b1904[_0x3880b8(0x392)]=_0xd6f417['startX']+_0x464577,_0x2b1904[_0x3880b8(0x1dd)]=_0xd6f417[_0x3880b8(0x2d7)]+_0x1c9349;}else _0x2b1904[_0x3880b8(0x392)]=_0xd6f417==null?void 0x0:_0xd6f417[_0x3880b8(0x44a)],_0x2b1904[_0x3880b8(0x1dd)]=_0xd6f417==null?void 0x0:_0xd6f417[_0x3880b8(0x2d7)];}return{'transform':_0x2b1904,'sheetTransform':(_0x33baa9=(0x0,_0x1e9ca9['transformToDrawingPosition'])(_0x2b1904,_0xbe35cc))==null?_0x321db9:_0x33baa9};}};_0x59f179=_0x53314b([_0x4529c8(0x0,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x45e9dd[_0x256dbb(0x423)])),_0x4529c8(0x1,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x57bfe3[_0x256dbb(0x1e3)])),_0x4529c8(0x2,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x1e9ca9['ISheetDrawingService'])),_0x4529c8(0x3,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x4af378[_0x256dbb(0x29e)])),_0x4529c8(0x4,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x2ac673[_0x256dbb(0x396)]))],_0x59f179);var _0x3a45df=class extends _0x55342f[_0x256dbb(0x349)]{constructor(_0x14a6c7,_0x3edac8){const _0x664022=_0x256dbb;super(_0x14a6c7,_0x3edac8),_0x25449f(this,_0x664022(0x1c6),null),_0x25449f(this,'_index',null),_0x25449f(this,_0x664022(0x15c),null),_0x25449f(this,'_subUnitId',null),_0x25449f(this,_0x664022(0x1b5),!0x1),_0x3edac8&&this['setShapeProps'](_0x3edac8);}[_0x256dbb(0x37d)](){const _0x43c379=_0x256dbb;return{'unitId':this[_0x43c379(0x15c)],'subUnitId':this[_0x43c379(0x299)],'drawingId':this[_0x43c379(0x1c6)]};}['setShapeProps'](_0x6eb2f0){const _0x586321=_0x256dbb;_0x6eb2f0[_0x586321(0x204)]!==void 0x0&&(this[_0x586321(0x1c6)]=_0x6eb2f0[_0x586321(0x204)]),_0x6eb2f0[_0x586321(0x384)]!==void 0x0&&(this[_0x586321(0x15c)]=_0x6eb2f0[_0x586321(0x384)]),_0x6eb2f0[_0x586321(0x1d7)]!==void 0x0&&(this[_0x586321(0x299)]=_0x6eb2f0[_0x586321(0x1d7)]),_0x6eb2f0[_0x586321(0x410)]!==void 0x0&&(this[_0x586321(0x1b5)]=_0x6eb2f0[_0x586321(0x410)]),this[_0x586321(0x38d)]({'width':_0x6eb2f0['width'],'height':_0x6eb2f0[_0x586321(0x3e6)]});}['_draw'](_0x43c568){const _0x445e2a=_0x256dbb;_0x55342f[_0x445e2a(0x241)]['drawWith'](_0x43c568,{'radius':_0x5b498f['ShapeDefaultConfig'][_0x445e2a(0x1fd)],'fill':_0x5b498f[_0x445e2a(0x29b)][_0x445e2a(0x388)],'stroke':_0x5b498f[_0x445e2a(0x29b)][_0x445e2a(0x483)],'strokeWidth':_0x5b498f[_0x445e2a(0x29b)][_0x445e2a(0x482)],'evented':!0x0});}};let _0x1c6283=class extends _0x4149d4[_0x256dbb(0x450)]{constructor(_0x19a19a,_0x1816cc,_0x402262,_0x5a7a82,_0x102dbc,_0x35506c,_0x401177,_0x2c6efe){const _0x53712e=_0x256dbb;super(),this[_0x53712e(0x1f4)]=_0x19a19a,this[_0x53712e(0x366)]=_0x1816cc,this[_0x53712e(0x2c3)]=_0x402262,this[_0x53712e(0x1be)]=_0x5a7a82,this['_univerInstanceService']=_0x102dbc,this[_0x53712e(0x191)]=_0x35506c,this[_0x53712e(0x351)]=_0x401177,this['_sheetBasicShapeConnectionPointController']=_0x2c6efe,_0x25449f(this,'_activeShapeId',void 0x0),_0x25449f(this,_0x53712e(0x15c),void 0x0),_0x25449f(this,_0x53712e(0x299),void 0x0),_0x25449f(this,_0x53712e(0x24c),[]),_0x25449f(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),_0x25449f(this,'_activeShapeModel',void 0x0),_0x25449f(this,_0x53712e(0x3b7),!0x1),_0x25449f(this,_0x53712e(0x44b),!0x1),_0x25449f(this,_0x53712e(0x17c),!0x1),_0x25449f(this,_0x53712e(0x454),void 0x0),_0x25449f(this,'_cxtHandlerPointerUp',void 0x0),_0x25449f(this,_0x53712e(0x418),null),this['_initialize']();}['_initialize'](){const _0x3f0566=_0x256dbb;this['_registerDrawingFocusChangeHandler'](),this[_0x3f0566(0x3e5)]();}[_0x256dbb(0x278)](){const _0x5e4b5d=_0x256dbb;if(!this[_0x5e4b5d(0x15c)]||!this[_0x5e4b5d(0x299)]||!this[_0x5e4b5d(0x2d3)])return;let _0x7d7551={'unitId':this[_0x5e4b5d(0x15c)],'subUnitId':this[_0x5e4b5d(0x299)],'drawingId':this['_activeShapeId']},{transform:_0x1d61cc}=this['_drawingManagerService'][_0x5e4b5d(0x472)](_0x7d7551);if(_0x1d61cc)return{'left':_0x1d61cc[_0x5e4b5d(0x392)]||0x0,'top':_0x1d61cc['top']||0x0,'width':_0x1d61cc[_0x5e4b5d(0x3ea)]||0x0,'height':_0x1d61cc['height']||0x0,'flipX':_0x1d61cc[_0x5e4b5d(0x337)]||!0x1,'flipY':_0x1d61cc[_0x5e4b5d(0x201)]||!0x1,'angle':_0x1d61cc[_0x5e4b5d(0x372)]};}[_0x256dbb(0x455)](){const _0x3b497c=_0x256dbb;if(this[_0x3b497c(0x15c)]===void 0x0||this['_subUnitId']===void 0x0||this[_0x3b497c(0x2d3)]===void 0x0)return;let _0x3c7881=this[_0x3b497c(0x2c3)][_0x3b497c(0x1a3)](this[_0x3b497c(0x15c)]);if(!_0x3c7881||!_0x3c7881[_0x3b497c(0x23a)](_0x57bfe3[_0x3b497c(0x376)])[_0x3b497c(0x352)]())return;let {scene:_0x1ea98a}=_0x3c7881,_0x38756e=this[_0x3b497c(0x278)]();if(!_0x38756e)return;let _0x650c7c=this['_sheetsShapeService'][_0x3b497c(0x3d0)](this['_unitId'],this[_0x3b497c(0x299)],this['_activeShapeId']);if(!_0x650c7c||!(0x0,_0x5b498f['isConnectorShape'])(_0x650c7c[_0x3b497c(0x203)]()))return;let _0x13aed2=_0x650c7c['getConnectorLinePoints']();if(_0x13aed2['length']<0x2)return;let _0x3310bf=new _0x5b498f[(_0x3b497c(0x24e))](_0x38756e),_0x511630=_0x13aed2[0x0],_0x293acb=_0x13aed2[_0x13aed2[_0x3b497c(0x234)]-0x1],_0x21626e=_0x3310bf[_0x3b497c(0x3e3)](_0x511630),_0x425465=_0x3310bf[_0x3b497c(0x3e3)](_0x293acb);this[_0x3b497c(0x232)](_0x1ea98a,{..._0x21626e},!0x0),this[_0x3b497c(0x232)](_0x1ea98a,{..._0x425465},!0x1);}['_addShapeConnectorHandlerObject'](_0x1d3ebb,_0x5a0f3b,_0x59ae47){const _0x165560=_0x256dbb;if(this[_0x165560(0x2d3)]===void 0x0||this[_0x165560(0x15c)]===void 0x0||this[_0x165560(0x299)]===void 0x0)return;let _0x463bfc='connector-handler-'+this[_0x165560(0x15c)]+'-'+this[_0x165560(0x299)]+'-'+this[_0x165560(0x2d3)]+'-'+(_0x59ae47?_0x165560(0x3f9):_0x165560(0x45f)),_0x51bbc2=_0x1d3ebb[_0x165560(0x1aa)](_0x463bfc);if(_0x51bbc2){_0x51bbc2[_0x165560(0x38d)]({'left':_0x5a0f3b['x']-_0x5b498f[_0x165560(0x29b)][_0x165560(0x1fd)],'top':_0x5a0f3b['y']-_0x5b498f[_0x165560(0x29b)][_0x165560(0x1fd)]});return;}let _0x46e795=new _0x3a45df(_0x463bfc,{'left':_0x5a0f3b['x']-_0x5b498f[_0x165560(0x29b)][_0x165560(0x1fd)],'top':_0x5a0f3b['y']-_0x5b498f[_0x165560(0x29b)][_0x165560(0x1fd)],'shapeId':this[_0x165560(0x2d3)],'unitId':this[_0x165560(0x15c)],'subUnitId':this[_0x165560(0x299)],'isStartConnectorPoint':_0x59ae47,'width':_0x5b498f[_0x165560(0x29b)][_0x165560(0x1fd)]*0x2,'height':_0x5b498f[_0x165560(0x29b)][_0x165560(0x1fd)]*0x2,'zIndex':_0x55342f['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this['_connectorObjects'][_0x165560(0x28f)](_0x46e795),this[_0x165560(0x3c2)](_0x46e795,_0x1d3ebb,_0x59ae47),_0x1d3ebb['addObject'](_0x46e795,_0x55342f[_0x165560(0x28c)]+0x1);}[_0x256dbb(0x1c7)](_0x24237d,_0x3417ad){const _0x5ceae7=_0x256dbb;var _0x5d23ac;let _0x2fb3c6={'x':0x0,'y':0x0};if(!_0x24237d||!_0x3417ad)return _0x2fb3c6;let _0x185428=this[_0x5ceae7(0x2c3)][_0x5ceae7(0x1a3)](_0x24237d);if(!_0x185428||!_0x185428['with'](_0x57bfe3[_0x5ceae7(0x376)])[_0x5ceae7(0x3cd)](_0x3417ad))return _0x2fb3c6;let _0x4e7664=_0x185428[_0x5ceae7(0x23a)](_0x57bfe3[_0x5ceae7(0x1d3)]),_0x3972f8=_0x4e7664==null?void 0x0:_0x4e7664['getCurrentScrollState']();if(!_0x3972f8)return _0x2fb3c6;let _0x5e91c4=(_0x5d23ac=this['_univerInstanceService'][_0x5ceae7(0x21a)](_0x24237d))==null?void 0x0:_0x5d23ac[_0x5ceae7(0x397)](_0x3417ad);if(!_0x5e91c4)return _0x2fb3c6;let _0xfbe3d6=(0x0,_0x57bfe3[_0x5ceae7(0x254)])(_0x3972f8[_0x5ceae7(0x1e0)],_0x3972f8[_0x5ceae7(0x25e)],_0x185428[_0x5ceae7(0x257)],_0x5e91c4);return _0xfbe3d6?{'x':_0xfbe3d6['viewportScrollX'],'y':_0xfbe3d6['viewportScrollY']}:_0x2fb3c6;}[_0x256dbb(0x298)](_0x358677,_0x3b6486){const _0x42c8c1=_0x256dbb;var _0x11a05e,_0x329c0a;let _0x30d267=(_0x11a05e=this[_0x42c8c1(0x17e)][_0x42c8c1(0x21a)](_0x358677))==null?void 0x0:_0x11a05e['getSheetBySheetId'](_0x3b6486);return(_0x329c0a=_0x30d267==null?void 0x0:_0x30d267['getZoomRatio']())==null?0x1:_0x329c0a;}[_0x256dbb(0x2b2)](_0x66a02a,_0x3e0bb3,_0x5c44ee,_0x46b3ba,_0x63fa9a){const _0x29b881=_0x256dbb;this['_cxtHandlerPointerMove']['unsubscribe'](),this[_0x29b881(0x275)]['unsubscribe'](),this[_0x29b881(0x351)][_0x29b881(0x40b)]();let _0x418dcf=this['_currentConnectionTarget'];this[_0x29b881(0x26b)][_0x29b881(0x282)]();let _0x254bd6=this[_0x29b881(0x1c7)](this['_unitId'],this['_subUnitId']),_0x58b3ab=this[_0x29b881(0x298)](this[_0x29b881(0x15c)],this[_0x29b881(0x299)]),_0x4f524d={'x':_0x5c44ee[_0x29b881(0x484)]/_0x58b3ab+_0x254bd6['x'],'y':_0x5c44ee['offsetY']/_0x58b3ab+_0x254bd6['y']},_0x37b162=_0x418dcf?_0x418dcf[_0x29b881(0x3ac)]:_0x4f524d,_0xb5fd46=_0x46b3ba?this[_0x29b881(0x462)][_0x29b881(0x411)]():this[_0x29b881(0x462)][_0x29b881(0x17d)](),_0x34994f=this[_0x29b881(0x462)][_0x29b881(0x203)]();_0xb5fd46?this[_0x29b881(0x3a7)](_0xb5fd46,_0x37b162,_0x46b3ba,_0x418dcf,_0x63fa9a):this[_0x29b881(0x262)](_0x3e0bb3,_0x37b162,_0x46b3ba,_0x418dcf,_0x63fa9a,_0x34994f),this['_isConnecting']=!0x1,this['_hasReset']=!0x1,this[_0x29b881(0x418)]=null,_0x66a02a[_0x29b881(0x362)]();}['_handleFreeEndpointPointerUp'](_0x2675c2,_0x364893,_0x357f4f,_0x16ff06,_0x1339e9,_0x161b5d){const _0x229fb9=_0x256dbb;let _0x2eb7e3=_0x161b5d===_0x5b498f[_0x229fb9(0x2a1)]['Line']||_0x161b5d===_0x5b498f[_0x229fb9(0x2a1)][_0x229fb9(0x242)],_0x80171f=_0x357f4f?_0x364893:_0x2675c2,_0x37ab34=_0x357f4f?_0x2675c2:_0x364893,_0x44839e=this[_0x229fb9(0x462)][_0x229fb9(0x442)](),_0x4595d8=(0x0,_0x5b498f[_0x229fb9(0x43b)])(this[_0x229fb9(0x462)][_0x229fb9(0x203)]()),_0x2e4dd8=_0x5b498f[_0x229fb9(0x24e)][_0x229fb9(0x3a1)](_0x44839e,_0x4595d8),_0x3c3a89=_0x2eb7e3?_0x5b498f[_0x229fb9(0x24e)][_0x229fb9(0x1cb)](_0x80171f,_0x37ab34):_0x5b498f[_0x229fb9(0x24e)][_0x229fb9(0x1ad)](_0x2675c2,_0x364893,_0x357f4f,_0x2e4dd8);_0x16ff06?this['_executeConnectionCommand'](_0x3c3a89,_0x16ff06,_0x357f4f,_0x1339e9):this[_0x229fb9(0x46b)](_0x3c3a89,_0x1339e9);}[_0x256dbb(0x3a7)](_0x47ea03,_0x1bc5c5,_0x7ab1ba,_0x119ece,_0x591fb8){const _0x37fdf3=_0x256dbb;let _0x4e24ea=this[_0x37fdf3(0x2b4)](_0x47ea03);if(!_0x4e24ea)return;let _0x3dcbbb=_0x119ece?_0x119ece[_0x37fdf3(0x372)]:this[_0x37fdf3(0x174)](_0x4e24ea[_0x37fdf3(0x425)],_0x1bc5c5),_0x602e02;if(_0x119ece){let _0x2c1921=this[_0x37fdf3(0x1be)][_0x37fdf3(0x472)]({'unitId':_0x119ece[_0x37fdf3(0x384)],'subUnitId':_0x119ece[_0x37fdf3(0x1d7)],'drawingId':_0x119ece[_0x37fdf3(0x204)]});if(_0x2c1921!=null&&_0x2c1921[_0x37fdf3(0x206)]){let {left:_0xeeb57d=0x0,top:_0x4db70e=0x0,width:_0xe921aa=0x0,height:_0x1df6f7=0x0,angle:_0x1f8b5a}=_0x2c1921[_0x37fdf3(0x206)];_0x602e02=(0x0,_0x5b498f[_0x37fdf3(0x385)])({'left':_0xeeb57d,'top':_0x4db70e,'width':_0xe921aa,'height':_0x1df6f7},_0x1f8b5a||0x0);}else _0x602e02={'left':_0x1bc5c5['x'],'top':_0x1bc5c5['y'],'width':0x0,'height':0x0};}else _0x602e02={'left':_0x1bc5c5['x'],'top':_0x1bc5c5['y'],'width':0x0,'height':0x0};let _0x83479c={'point':_0x1bc5c5,'angle':_0x3dcbbb,'bounds':_0x602e02},_0x48e83f=_0x7ab1ba?_0x83479c:_0x4e24ea,_0x4a44a2=_0x7ab1ba?_0x4e24ea:_0x83479c,_0x74ee05=this[_0x37fdf3(0x462)][_0x37fdf3(0x203)](),_0x48cd41=(0x0,_0x5b498f['routeConnectorLineShape'])(_0x48e83f,_0x4a44a2,_0x74ee05);this[_0x37fdf3(0x462)][_0x37fdf3(0x1f7)]();let _0x3880ea=(0x0,_0x5b498f[_0x37fdf3(0x166)])(_0x48cd41,_0x74ee05);_0x119ece?this[_0x37fdf3(0x212)](_0x3880ea,_0x119ece,_0x47ea03,_0x7ab1ba,_0x591fb8):this[_0x37fdf3(0x2c6)](_0x3880ea,_0x47ea03,_0x7ab1ba,_0x591fb8);}[_0x256dbb(0x377)](_0x373c57,_0x41f3d5,_0x197a00,_0x13a137){const _0x3045dc=_0x256dbb;let _0x5c6101=this[_0x3045dc(0x462)][_0x3045dc(0x1ae)]()[_0x3045dc(0x2eb)],_0x13f075={..._0x5c6101},_0x174336={'shapeId':_0x41f3d5[_0x3045dc(0x204)],'cxnIndex':_0x41f3d5[_0x3045dc(0x390)]};_0x197a00?_0x13f075[_0x3045dc(0x1f0)]=_0x174336:_0x13f075['to']=_0x174336;let _0x532f01=this['_activeShapeModel'][_0x3045dc(0x203)](),_0x41bc49=(0x0,_0x5b498f['computeConnectorRouteLayout'])(_0x373c57[_0x3045dc(0x2d9)],_0x532f01),_0x288c85={'unitId':this[_0x3045dc(0x15c)],'subUnitId':this[_0x3045dc(0x299)],'connectorShapeId':this[_0x3045dc(0x2d3)],'width':_0x373c57[_0x3045dc(0x3e8)]['width'],'height':_0x373c57[_0x3045dc(0x3e8)][_0x3045dc(0x3e6)],'left':_0x373c57[_0x3045dc(0x3e8)]['left'],'top':_0x373c57[_0x3045dc(0x3e8)]['top'],'flipX':_0x373c57[_0x3045dc(0x3e8)][_0x3045dc(0x337)]||!0x1,'flipY':_0x373c57[_0x3045dc(0x3e8)][_0x3045dc(0x201)]||!0x1,'newAdjustValues':_0x41bc49[_0x3045dc(0x1a6)],'oldAdjustValues':_0x13a137,'oldRelation':_0x5c6101,'newRelation':_0x13f075,'newLineType':_0x41bc49[_0x3045dc(0x369)],'oldLineType':_0x532f01};this['_commandService']['executeCommand'](_0x4af378[_0x3045dc(0x459)]['id'],_0x288c85);}[_0x256dbb(0x46b)](_0xbc41b3,_0x4b3d67){const _0x29f175=_0x256dbb;let _0x277636=this['_activeShapeModel']['getShapeType'](),_0x44cfd3=(0x0,_0x5b498f[_0x29f175(0x166)])(_0xbc41b3[_0x29f175(0x2d9)],_0x277636),_0x47b299={'unitId':this['_unitId'],'subUnitId':this[_0x29f175(0x299)],'shapeId':this[_0x29f175(0x2d3)],'width':_0xbc41b3[_0x29f175(0x3e8)][_0x29f175(0x3ea)],'height':_0xbc41b3[_0x29f175(0x3e8)][_0x29f175(0x3e6)],'left':_0xbc41b3[_0x29f175(0x3e8)][_0x29f175(0x392)],'top':_0xbc41b3[_0x29f175(0x3e8)][_0x29f175(0x1dd)],'flipX':_0xbc41b3[_0x29f175(0x3e8)][_0x29f175(0x337)]||!0x1,'flipY':_0xbc41b3[_0x29f175(0x3e8)][_0x29f175(0x201)]||!0x1,'angle':_0xbc41b3[_0x29f175(0x3e8)][_0x29f175(0x372)]||0x0,'newAdjustValues':_0x44cfd3[_0x29f175(0x1a6)],'oldAdjustValues':_0x4b3d67,'newLineType':_0x44cfd3[_0x29f175(0x369)],'oldLineType':_0x277636};this[_0x29f175(0x366)]['executeCommand'](_0x4af378[_0x29f175(0x409)]['id'],_0x47b299);}[_0x256dbb(0x212)](_0x483b19,_0x12f437,_0x2ec2a4,_0x306f38,_0x13d5c1){const _0x45317=_0x256dbb;let _0x35ab25=this[_0x45317(0x462)][_0x45317(0x1ae)]()[_0x45317(0x2eb)],_0x530e69={..._0x35ab25},_0x52fd03={'shapeId':_0x12f437[_0x45317(0x204)],'cxnIndex':_0x12f437[_0x45317(0x390)]};_0x306f38?(_0x530e69[_0x45317(0x1f0)]=_0x52fd03,_0x530e69['to']=_0x2ec2a4):(_0x530e69['from']=_0x2ec2a4,_0x530e69['to']=_0x52fd03);let _0x5ee798={'unitId':this[_0x45317(0x15c)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x45317(0x2d3)],'width':_0x483b19[_0x45317(0x3e8)][_0x45317(0x3ea)],'height':_0x483b19[_0x45317(0x3e8)][_0x45317(0x3e6)],'left':_0x483b19[_0x45317(0x3e8)]['left'],'top':_0x483b19['worldRect'][_0x45317(0x1dd)],'flipX':_0x483b19[_0x45317(0x3e8)]['flipX']||!0x1,'flipY':_0x483b19[_0x45317(0x3e8)][_0x45317(0x201)]||!0x1,'oldAdjustValues':_0x13d5c1,'newAdjustValues':_0x483b19[_0x45317(0x1a6)],'newLineType':_0x483b19[_0x45317(0x369)],'rotation':_0x483b19['rotation'],'oldRelation':_0x35ab25,'newRelation':_0x530e69};this[_0x45317(0x366)][_0x45317(0x2aa)](_0x4af378[_0x45317(0x459)]['id'],_0x5ee798);}[_0x256dbb(0x2c6)](_0x5d4eef,_0x4667be,_0x3f29e2,_0x389a18){const _0x3770f2=_0x256dbb;let _0x9eac77=this['_activeShapeModel'][_0x3770f2(0x1ae)]()[_0x3770f2(0x2eb)],_0x2f06d0={};_0x3f29e2?(_0x2f06d0['to']=_0x4667be,_0x2f06d0[_0x3770f2(0x1f0)]=void 0x0):(_0x2f06d0[_0x3770f2(0x1f0)]=_0x4667be,_0x2f06d0['to']=void 0x0);let _0x4bb9e={'unitId':this['_unitId'],'subUnitId':this[_0x3770f2(0x299)],'connectorShapeId':this[_0x3770f2(0x2d3)],'width':_0x5d4eef[_0x3770f2(0x3e8)][_0x3770f2(0x3ea)],'height':_0x5d4eef[_0x3770f2(0x3e8)][_0x3770f2(0x3e6)],'left':_0x5d4eef[_0x3770f2(0x3e8)]['left'],'top':_0x5d4eef['worldRect']['top'],'flipX':_0x5d4eef[_0x3770f2(0x3e8)][_0x3770f2(0x337)]||!0x1,'flipY':_0x5d4eef['worldRect'][_0x3770f2(0x201)]||!0x1,'oldAdjustValues':_0x389a18,'newAdjustValues':_0x5d4eef[_0x3770f2(0x1a6)],'newLineType':_0x5d4eef[_0x3770f2(0x369)],'rotation':_0x5d4eef[_0x3770f2(0x3fc)],'oldRelation':_0x9eac77,'newRelation':_0x2f06d0};this['_commandService'][_0x3770f2(0x2aa)](_0x4af378[_0x3770f2(0x459)]['id'],_0x4bb9e);}[_0x256dbb(0x3c2)](_0x308346,_0x4e45cc,_0xf2cf93){const _0x4deda0=_0x256dbb;this[_0x4deda0(0x283)]((0x0,_0x4149d4['toDisposable'])(_0x308346['onPointerDown$'][_0x4deda0(0x2c1)]((_0xd53004,_0x3b5845)=>{const _0xf18de6=_0x4deda0;let _0x2afadb=_0x308346[_0xf18de6(0x37d)]();if(this['_activeShapeModel']=this[_0xf18de6(0x191)][_0xf18de6(0x3d0)](_0x2afadb[_0xf18de6(0x384)],_0x2afadb[_0xf18de6(0x1d7)],_0x2afadb[_0xf18de6(0x346)]),!this[_0xf18de6(0x462)])return;let _0x39bef3={};this['_activeShapeModel'][_0xf18de6(0x38b)]()[_0xf18de6(0x43e)](_0x53925c=>{const _0x1b69bd=_0xf18de6;let _0x86b052=this[_0x1b69bd(0x462)][_0x1b69bd(0x40e)](_0x53925c);_0x86b052!==void 0x0&&(_0x39bef3[_0x53925c]=_0x86b052);});let _0x28866b=this[_0xf18de6(0x278)]();if(!_0x28866b)return;this[_0xf18de6(0x40c)]={..._0x28866b};let _0x18527f=new _0x5b498f['ConnectorCoordinateTransform'](this['_baseDrawingRect']),_0x2a8e4a=(0x0,_0x85b915[_0xf18de6(0x437)])({'unitId':this[_0xf18de6(0x15c)],'subUnitId':this[_0xf18de6(0x299)],'drawingId':this['_activeShapeId']}),_0x36a7ee=_0x4e45cc[_0xf18de6(0x1aa)](_0x2a8e4a);this[_0xf18de6(0x3b7)]=!0x0,_0x4e45cc['disableObjectsEvent'](),this[_0xf18de6(0x26b)][_0xf18de6(0x42d)](_0x4e45cc,this[_0xf18de6(0x15c)],this[_0xf18de6(0x299)],this['_activeShapeId']),this['_currentConnectionTarget']=null;let _0xceedc7=this[_0xf18de6(0x462)][_0xf18de6(0x442)](),_0x233b44=_0xceedc7[0x0],_0x1e90ab=_0xceedc7[_0xceedc7[_0xf18de6(0x234)]-0x1],_0x39edeb=_0xf2cf93?_0x18527f['localToWorld'](_0x1e90ab):_0x18527f['localToWorld'](_0x233b44);this[_0xf18de6(0x454)]=_0x4e45cc[_0xf18de6(0x3b8)][_0xf18de6(0x2c1)]((_0x3f92ae,_0x5d5456)=>{const _0xf1834a=_0xf18de6;if(!this['_isConnecting']||!this[_0xf1834a(0x462)])return;this[_0xf1834a(0x17c)]||(this[_0xf1834a(0x351)][_0xf1834a(0x2c7)](),this[_0xf1834a(0x462)][_0xf1834a(0x3a6)](),this[_0xf1834a(0x17c)]=!0x0);let _0x4898ae=this[_0xf1834a(0x1c7)](this[_0xf1834a(0x15c)],this[_0xf1834a(0x299)]),_0xc14822=this[_0xf1834a(0x298)](this[_0xf1834a(0x15c)],this[_0xf1834a(0x299)]),_0x1a4c41={'x':_0x3f92ae[_0xf1834a(0x484)]/_0xc14822+_0x4898ae['x'],'y':_0x3f92ae[_0xf1834a(0x20a)]/_0xc14822+_0x4898ae['y']},_0x24b48e=this[_0xf1834a(0x26b)]['updateConnectionDetection'](_0x1a4c41);if(_0x24b48e){let {shapeId:_0x35b991,unitId:_0x385695,subUnitId:_0x550d95}=_0x24b48e;if(_0x35b991&&_0x385695&&_0x550d95){let _0x50c03e=(0x0,_0x85b915[_0xf1834a(0x437)])({'unitId':_0x385695,'subUnitId':_0x550d95,'drawingId':_0x35b991});_0x24b48e['angle']=(_0x4e45cc['getObjectIncludeInGroup'](_0x50c03e)[_0xf1834a(0x372)]||0x0)+_0x24b48e[_0xf1834a(0x372)];}}this[_0xf1834a(0x418)]=_0x24b48e;let _0x3caaec=_0xf2cf93?this[_0xf1834a(0x462)][_0xf1834a(0x411)]():this[_0xf1834a(0x462)]['getStartConnectInfo']();if(_0x3caaec){this[_0xf1834a(0x286)](_0x3caaec,_0x1a4c41,_0xf2cf93,_0x36a7ee,_0x308346);return;}this[_0xf1834a(0x485)](_0x1a4c41,_0x39edeb,_0xf2cf93,_0x36a7ee,_0x308346);}),this['_cxtHandlerPointerUp']=_0x4e45cc[_0xf18de6(0x29d)][_0xf18de6(0x2c1)]((_0x187e5e,_0xd99ad1)=>{const _0x2ba110=_0xf18de6;this[_0x2ba110(0x2b2)](_0x4e45cc,_0x39edeb,_0x187e5e,_0xf2cf93,_0x39bef3);}),_0x3b5845[_0xf18de6(0x264)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x3db02e,_0x23a2e1,_0x3ef1ab){const _0xa417b6=_0x256dbb;let _0x3ef71b=this[_0xa417b6(0x191)][_0xa417b6(0x2d1)](_0x3db02e,_0x23a2e1,_0x3ef1ab);if(!_0x3ef71b||_0x3ef71b[_0xa417b6(0x234)]===0x0)return;let _0x956d8e=this[_0xa417b6(0x2c3)][_0xa417b6(0x1a3)](_0x3db02e);if(!_0x956d8e)return;let {scene:_0x54c7b6}=_0x956d8e;for(let _0xdc7ae8 of _0x3ef71b){let _0x5cff57=_0xdc7ae8[_0xa417b6(0x3fb)],_0x45b7cc=this[_0xa417b6(0x191)][_0xa417b6(0x3d0)](_0x3db02e,_0x23a2e1,_0x5cff57);if(!_0x45b7cc)continue;let _0x385b53=_0x45b7cc[_0xa417b6(0x17d)](),_0x2f6c28=_0x45b7cc['getEndConnectInfo'](),_0x2b6c5a=(_0x385b53==null?void 0x0:_0x385b53[_0xa417b6(0x204)])===_0x3ef1ab,_0x1b2faa=(0x0,_0x85b915[_0xa417b6(0x437)])({'unitId':_0x3db02e,'subUnitId':_0x23a2e1,'drawingId':_0x5cff57}),_0x134d2e=_0x54c7b6[_0xa417b6(0x1aa)](_0x1b2faa);if(!_0x134d2e)continue;let _0x54b0e9=this[_0xa417b6(0x1be)][_0xa417b6(0x472)]({'unitId':_0x3db02e,'subUnitId':_0x23a2e1,'drawingId':_0x5cff57});_0x54b0e9!=null&&_0x54b0e9[_0xa417b6(0x206)]&&(_0x385b53&&_0x2f6c28?this[_0xa417b6(0x171)](_0x3db02e,_0x23a2e1,_0x5cff57,_0x45b7cc,_0x385b53,_0x2f6c28,_0x134d2e):this['_moveConnectorWithShape'](_0x3db02e,_0x23a2e1,_0x5cff57,_0x45b7cc,_0x2b6c5a?_0x385b53:_0x2f6c28,_0x2b6c5a,_0x54b0e9,_0x134d2e));}}[_0x256dbb(0x171)](_0x99ddba,_0xef14ca,_0x552159,_0x12951c,_0x587332,_0x386aec,_0x55703d){const _0x1c5ebd=_0x256dbb;let _0x49b5b0=this[_0x1c5ebd(0x15c)],_0x5e82d4=this['_subUnitId'];this['_unitId']=_0x99ddba,this[_0x1c5ebd(0x299)]=_0xef14ca;let _0x474060=this[_0x1c5ebd(0x2b4)](_0x587332),_0x3cdd20=this[_0x1c5ebd(0x2b4)](_0x386aec);if(this[_0x1c5ebd(0x15c)]=_0x49b5b0,this[_0x1c5ebd(0x299)]=_0x5e82d4,!_0x474060||!_0x3cdd20)return;let _0x322229=_0x12951c[_0x1c5ebd(0x203)](),_0x1a39eb=(0x0,_0x5b498f['routeConnectorLineShape'])(_0x474060,_0x3cdd20,_0x322229);_0x1a39eb&&_0x12951c[_0x1c5ebd(0x157)](_0x1a39eb);let _0x239451=(0x0,_0x5b498f[_0x1c5ebd(0x166)])(_0x1a39eb,_0x322229);_0x239451['lineType']!==_0x322229&&_0x12951c['changeShapeType'](_0x239451[_0x1c5ebd(0x369)]),_0x12951c[_0x1c5ebd(0x3a6)]();for(let [_0x167bd0,_0x35af18]of Object[_0x1c5ebd(0x1b6)](_0x239451[_0x1c5ebd(0x1a6)]))_0x12951c[_0x1c5ebd(0x16b)](_0x167bd0,_0x35af18);_0x12951c[_0x1c5ebd(0x374)]({'width':_0x239451['worldRect']['width'],'height':_0x239451[_0x1c5ebd(0x3e8)]['height']}),_0x55703d[_0x1c5ebd(0x38d)]({'flipX':_0x239451['worldRect']['flipX'],'flipY':_0x239451[_0x1c5ebd(0x3e8)][_0x1c5ebd(0x201)],'left':_0x239451[_0x1c5ebd(0x3e8)][_0x1c5ebd(0x392)],'top':_0x239451[_0x1c5ebd(0x3e8)][_0x1c5ebd(0x1dd)],'width':_0x239451[_0x1c5ebd(0x3e8)][_0x1c5ebd(0x3ea)],'height':_0x239451[_0x1c5ebd(0x3e8)][_0x1c5ebd(0x3e6)],'angle':_0x239451[_0x1c5ebd(0x3fc)]}),_0x12951c[_0x1c5ebd(0x1f7)]();}['_moveConnectorWithShape'](_0x1a5d77,_0x3f3402,_0x36e404,_0x454a37,_0xc556ea,_0x2f48a3,_0x502e9d,_0x508c56){const _0x2d19e3=_0x256dbb;let _0x2996a0=this[_0x2d19e3(0x15c)],_0x22dca2=this[_0x2d19e3(0x299)];this[_0x2d19e3(0x15c)]=_0x1a5d77,this['_subUnitId']=_0x3f3402;let _0x3f6143=this[_0x2d19e3(0x2b4)](_0xc556ea);if(this[_0x2d19e3(0x15c)]=_0x2996a0,this[_0x2d19e3(0x299)]=_0x22dca2,!_0x3f6143)return;let {left:_0x2acea6=0x0,top:_0x32213e=0x0,width:_0x57be7a=0x0,height:_0x1239ab=0x0,flipX:_0x11c124=!0x1,flipY:_0x5680bb=!0x1}=_0x502e9d[_0x2d19e3(0x206)],_0x489ecb=_0x454a37['getConnectorLinePoints']();if(_0x489ecb[_0x2d19e3(0x234)]<0x2)return;let _0x3a7cf5=new _0x5b498f[(_0x2d19e3(0x24e))]({'left':_0x2acea6,'top':_0x32213e,'width':_0x57be7a,'height':_0x1239ab,'flipX':_0x11c124,'flipY':_0x5680bb}),_0x3e4d20=_0x2f48a3?_0x489ecb[_0x489ecb[_0x2d19e3(0x234)]-0x1]:_0x489ecb[0x0],_0x2adf0e=_0x3a7cf5[_0x2d19e3(0x3e3)](_0x3e4d20),_0x33a7e7=_0x5b498f['ConnectorCoordinateTransform'][_0x2d19e3(0x1ad)](_0x2adf0e,_0x3f6143[_0x2d19e3(0x425)],!_0x2f48a3);_0x508c56[_0x2d19e3(0x38d)]({'flipX':_0x33a7e7[_0x2d19e3(0x3e8)][_0x2d19e3(0x337)],'flipY':_0x33a7e7['worldRect']['flipY'],'left':_0x33a7e7[_0x2d19e3(0x3e8)][_0x2d19e3(0x392)],'top':_0x33a7e7[_0x2d19e3(0x3e8)][_0x2d19e3(0x1dd)],'width':_0x33a7e7[_0x2d19e3(0x3e8)]['width'],'height':_0x33a7e7[_0x2d19e3(0x3e8)][_0x2d19e3(0x3e6)],'angle':_0x33a7e7['worldRect'][_0x2d19e3(0x372)]}),_0x508c56[_0x2d19e3(0x329)](!0x0);}[_0x256dbb(0x37c)](){const _0x2fdfff=_0x256dbb;this['_connectorObjects']['length']!==0x0&&(this[_0x2fdfff(0x24c)][_0x2fdfff(0x43e)](_0x524d84=>{_0x524d84['dispose']();}),this[_0x2fdfff(0x24c)]=[]);}[_0x256dbb(0x3e5)](){const _0x4adafc=_0x256dbb;let _0x165de4=this[_0x4adafc(0x17e)][_0x4adafc(0x2f4)](_0x4149d4[_0x4adafc(0x305)]['UNIVER_SHEET']);this[_0x4adafc(0x283)](_0x165de4['pipe']((0x0,_0x5c1471[_0x4adafc(0x2cb)])(_0x489e0b=>_0x489e0b?_0x489e0b['activeSheet$'][_0x4adafc(0x290)]((0x0,_0x5c1471['switchMap'])(_0x175c46=>{const _0x366ca0=_0x4adafc;if(!_0x175c46)return _0x5c1471[_0x366ca0(0x3e9)];let _0x2e6c02=_0x489e0b[_0x366ca0(0x2ea)](),_0x541723=this[_0x366ca0(0x2c3)]['getRenderById'](_0x2e6c02),_0x95b0fb=_0x541723==null?void 0x0:_0x541723[_0x366ca0(0x257)];return _0x95b0fb?(0x0,_0x5c1471['of'])(_0x95b0fb):_0x5c1471[_0x366ca0(0x3e9)];})):_0x5c1471[_0x4adafc(0x3e9)]))[_0x4adafc(0x22a)](_0x545239=>{const _0x1984b1=_0x4adafc;let _0x5f4ee2=_0x545239[_0x1984b1(0x2e9)]();this[_0x1984b1(0x283)](_0x545239[_0x1984b1(0x3b8)]['subscribeEvent'](_0x1b80ec=>{const _0x4cf17b=_0x1984b1;this[_0x4cf17b(0x44b)]&&this[_0x4cf17b(0x2d3)]&&this[_0x4cf17b(0x37c)]();})),this[_0x1984b1(0x283)](_0x5f4ee2[_0x1984b1(0x43a)]['subscribe'](_0x425517=>{const _0x1f865f=_0x1984b1;let {objects:_0x218573}=_0x425517;this[_0x1f865f(0x37c)](),_0x218573!==null&&_0x218573['size']===0x1&&_0x218573[_0x1f865f(0x272)]()[_0x1f865f(0x32b)]()['value']instanceof _0x1a5a1c&&(this['_isDrawingShapePointDown']=!0x0);})),this['disposeWithMe'](_0x5f4ee2[_0x1984b1(0x2ce)][_0x1984b1(0x22a)](_0x58db5f=>{const _0x5eeb9a=_0x1984b1;this[_0x5eeb9a(0x44b)]&&this[_0x5eeb9a(0x37c)]();})),this[_0x1984b1(0x283)](_0x545239[_0x1984b1(0x29d)][_0x1984b1(0x2c1)](()=>{const _0x50fe0e=_0x1984b1;this['_isDrawingShapePointDown']&&(this['_isDrawingShapePointDown']=!0x1,this[_0x50fe0e(0x455)]());})),this[_0x1984b1(0x283)](_0x5f4ee2[_0x1984b1(0x269)][_0x1984b1(0x22a)](()=>{const _0x406bda=_0x1984b1;this[_0x406bda(0x15c)]&&this[_0x406bda(0x299)]&&this[_0x406bda(0x2d3)]&&this[_0x406bda(0x1be)][_0x406bda(0x472)]({'unitId':this[_0x406bda(0x15c)],'subUnitId':this[_0x406bda(0x299)],'drawingId':this['_activeShapeId']})&&(this['_clearShapeConnectorHandlerObjects'](),this[_0x406bda(0x455)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0xe917f4=_0x256dbb;this[_0xe917f4(0x283)](this[_0xe917f4(0x1be)][_0xe917f4(0x47a)]['subscribe'](_0x3f1a1d=>{const _0x31e1fe=_0xe917f4;if(_0x3f1a1d[_0x31e1fe(0x234)]===0x1){let _0x24a6f8=_0x3f1a1d[0x0];if(_0x24a6f8[_0x31e1fe(0x277)]===_0x4149d4['DrawingTypeEnum'][_0x31e1fe(0x3ca)]){let _0x38990b=this[_0x31e1fe(0x191)][_0x31e1fe(0x3d0)](_0x24a6f8['unitId'],_0x24a6f8['subUnitId'],_0x24a6f8[_0x31e1fe(0x346)]);if(_0x38990b&&(0x0,_0x5b498f[_0x31e1fe(0x237)])(_0x38990b[_0x31e1fe(0x203)]())){this[_0x31e1fe(0x2d3)]=_0x24a6f8[_0x31e1fe(0x346)],this[_0x31e1fe(0x15c)]=_0x24a6f8[_0x31e1fe(0x384)],this[_0x31e1fe(0x299)]=_0x24a6f8[_0x31e1fe(0x1d7)],this[_0x31e1fe(0x37c)](),this[_0x31e1fe(0x455)]();return;}}}this[_0x31e1fe(0x2d3)]=void 0x0,this[_0x31e1fe(0x15c)]=void 0x0,this[_0x31e1fe(0x299)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this['disposeWithMe'](this['_drawingManagerService'][_0xe917f4(0x1bf)][_0xe917f4(0x22a)](_0x32bb7b=>{const _0x2392f1=_0xe917f4;if(_0x32bb7b[_0x2392f1(0x234)]===0x1){var _0x5e81d8;let _0x54e861=_0x32bb7b[0x0],_0x445335=(_0x5e81d8=this[_0x2392f1(0x1be)][_0x2392f1(0x472)](_0x54e861))==null?void 0x0:_0x5e81d8[_0x2392f1(0x277)];_0x445335===_0x4149d4['DrawingTypeEnum']['DRAWING_SHAPE']&&_0x54e861['drawingId']===this[_0x2392f1(0x2d3)]?(this[_0x2392f1(0x37c)](),this[_0x2392f1(0x455)]()):!this[_0x2392f1(0x2d3)]&&_0x445335===_0x4149d4[_0x2392f1(0x29a)][_0x2392f1(0x3ca)]&&this[_0x2392f1(0x1b3)](_0x54e861[_0x2392f1(0x384)],_0x54e861['subUnitId'],_0x54e861[_0x2392f1(0x346)]);}})),this[_0xe917f4(0x283)](this['_drawingManagerService'][_0xe917f4(0x1c8)]['subscribe'](_0x242ad2=>{const _0x11de80=_0xe917f4;for(let _0x147154 of _0x242ad2){let {drawingId:_0x31d4aa}=_0x147154;if(this[_0x11de80(0x2d3)]===_0x31d4aa){this[_0x11de80(0x350)]();return;}}}));}[_0x256dbb(0x286)](_0x24c1bd,_0x399d69,_0x3a90ac,_0x5cbe1c,_0x7d3d8a){const _0x6bf6f8=_0x256dbb;var _0x27809e,_0x4d1623;if(!this[_0x6bf6f8(0x462)])return;let _0x4af1b0=this[_0x6bf6f8(0x2b4)](_0x24c1bd);if(!_0x4af1b0)return;let _0x40b22e=this[_0x6bf6f8(0x418)]?this['_currentConnectionTarget'][_0x6bf6f8(0x3ac)]:_0x399d69,_0x3c0ed2=this[_0x6bf6f8(0x418)]?this['_currentConnectionTarget'][_0x6bf6f8(0x372)]:this[_0x6bf6f8(0x174)](_0x4af1b0['point'],_0x40b22e),_0xecf9fc;if(this[_0x6bf6f8(0x418)]){let _0x52476f=this[_0x6bf6f8(0x1be)][_0x6bf6f8(0x472)]({'unitId':this[_0x6bf6f8(0x418)][_0x6bf6f8(0x384)],'subUnitId':this[_0x6bf6f8(0x418)][_0x6bf6f8(0x1d7)],'drawingId':this['_currentConnectionTarget'][_0x6bf6f8(0x204)]});if(_0x52476f!=null&&_0x52476f['transform']){let {left:_0x42e8cc=0x0,top:_0xc56281=0x0,width:_0xafebaf=0x0,height:_0x5678e8=0x0,angle:_0x56e964}=_0x52476f[_0x6bf6f8(0x206)];_0xecf9fc=(0x0,_0x5b498f[_0x6bf6f8(0x385)])({'left':_0x42e8cc,'top':_0xc56281,'width':_0xafebaf,'height':_0x5678e8},_0x56e964||0x0);}else _0xecf9fc={'left':_0x40b22e['x'],'top':_0x40b22e['y'],'width':0x0,'height':0x0};}else _0xecf9fc={'left':_0x40b22e['x'],'top':_0x40b22e['y'],'width':0x0,'height':0x0};let _0x456e34={'point':_0x40b22e,'angle':_0x3c0ed2,'bounds':_0xecf9fc},_0x49e342=_0x3a90ac?_0x456e34:_0x4af1b0,_0x1fc78f=_0x3a90ac?_0x4af1b0:_0x456e34,_0x3458b4=this['_activeShapeModel']['getShapeType'](),_0x2957d5=(0x0,_0x5b498f[_0x6bf6f8(0x2ec)])(_0x49e342,_0x1fc78f,_0x3458b4);_0x2957d5&&this['_activeShapeModel'][_0x6bf6f8(0x157)](_0x2957d5);let _0x3cb5ca=(0x0,_0x5b498f['computeConnectorRouteLayout'])(_0x2957d5,_0x3458b4);_0x3cb5ca[_0x6bf6f8(0x369)]!==_0x3458b4&&this[_0x6bf6f8(0x462)][_0x6bf6f8(0x3b3)](_0x3cb5ca[_0x6bf6f8(0x369)]);for(let [_0x4faf84,_0x104751]of Object[_0x6bf6f8(0x1b6)](_0x3cb5ca['adjustValues']))this[_0x6bf6f8(0x462)][_0x6bf6f8(0x16b)](_0x4faf84,_0x104751);this[_0x6bf6f8(0x462)][_0x6bf6f8(0x374)]({'width':_0x3cb5ca[_0x6bf6f8(0x3e8)][_0x6bf6f8(0x3ea)],'height':_0x3cb5ca[_0x6bf6f8(0x3e8)][_0x6bf6f8(0x3e6)]}),_0x5cbe1c[_0x6bf6f8(0x38d)]({'flipX':_0x3cb5ca[_0x6bf6f8(0x3e8)]['flipX'],'flipY':_0x3cb5ca[_0x6bf6f8(0x3e8)][_0x6bf6f8(0x201)],'left':_0x3cb5ca[_0x6bf6f8(0x3e8)][_0x6bf6f8(0x392)],'top':_0x3cb5ca[_0x6bf6f8(0x3e8)]['top'],'width':_0x3cb5ca[_0x6bf6f8(0x3e8)]['width'],'height':_0x3cb5ca[_0x6bf6f8(0x3e8)][_0x6bf6f8(0x3e6)],'angle':_0x3cb5ca[_0x6bf6f8(0x3fc)]}),_0x5cbe1c[_0x6bf6f8(0x329)](!0x0);let _0x449d85=(_0x27809e=(_0x4d1623=this[_0x6bf6f8(0x418)])==null?void 0x0:_0x4d1623[_0x6bf6f8(0x3ac)])==null?_0x399d69:_0x27809e;_0x7d3d8a[_0x6bf6f8(0x38d)]({'left':_0x449d85['x']-_0x5b498f[_0x6bf6f8(0x29b)][_0x6bf6f8(0x1fd)],'top':_0x449d85['y']-_0x5b498f['ShapeDefaultConfig'][_0x6bf6f8(0x1fd)]});}[_0x256dbb(0x485)](_0x55b029,_0x1d20bc,_0xb9b7b4,_0x308c97,_0x7d9c80){const _0x472203=_0x256dbb;var _0x1a7dc9,_0x10055a,_0x586bc5,_0x135c69;let _0x36a869=(_0x1a7dc9=(_0x10055a=this[_0x472203(0x418)])==null?void 0x0:_0x10055a[_0x472203(0x3ac)])==null?_0x55b029:_0x1a7dc9,_0x2304c0=_0x5b498f[_0x472203(0x24e)][_0x472203(0x1ad)](_0x1d20bc,_0x36a869,_0xb9b7b4);_0x308c97['transformByState']({'flipX':_0x2304c0[_0x472203(0x3e8)]['flipX'],'flipY':_0x2304c0['worldRect']['flipY'],'left':_0x2304c0[_0x472203(0x3e8)][_0x472203(0x392)],'top':_0x2304c0['worldRect'][_0x472203(0x1dd)],'width':_0x2304c0['worldRect'][_0x472203(0x3ea)],'height':_0x2304c0['worldRect'][_0x472203(0x3e6)],'angle':_0x2304c0['worldRect']['angle']});let _0x3d43ed=(_0x586bc5=(_0x135c69=this[_0x472203(0x418)])==null?void 0x0:_0x135c69[_0x472203(0x3ac)])==null?_0x55b029:_0x586bc5;_0x7d9c80[_0x472203(0x38d)]({'left':_0x3d43ed['x']-_0x5b498f[_0x472203(0x29b)][_0x472203(0x1fd)],'top':_0x3d43ed['y']-_0x5b498f[_0x472203(0x29b)][_0x472203(0x1fd)]});}[_0x256dbb(0x2b4)](_0x1f824d){const _0x59cb87=_0x256dbb;if(!this[_0x59cb87(0x15c)]||!this[_0x59cb87(0x299)])return null;let {shapeId:_0x27b9b2,cxnIndex:_0x5a474d}=_0x1f824d,_0x5d1906=this[_0x59cb87(0x191)][_0x59cb87(0x3d0)](this[_0x59cb87(0x15c)],this[_0x59cb87(0x299)],_0x27b9b2);if(!_0x5d1906)return null;let _0x48e2f3=this[_0x59cb87(0x1be)][_0x59cb87(0x472)]({'unitId':this[_0x59cb87(0x15c)],'subUnitId':this[_0x59cb87(0x299)],'drawingId':_0x27b9b2});if(!(_0x48e2f3!=null&&_0x48e2f3[_0x59cb87(0x206)]))return null;let {left:_0x536a70=0x0,top:_0x3bb67a=0x0,width:_0x3727ec=0x0,height:_0x443f20=0x0,flipX:_0x345172=!0x1,flipY:_0x5e7607=!0x1,angle:_0x1dc637}=_0x48e2f3[_0x59cb87(0x206)];_0x5d1906['updateContext']({'width':_0x3727ec,'height':_0x443f20});let _0x3467f0=_0x5d1906[_0x59cb87(0x328)]()['find'](_0x32af2f=>_0x32af2f[_0x59cb87(0x215)]===_0x5a474d);if(!_0x3467f0)return null;let _0x283cee=_0x345172?_0x3727ec-_0x3467f0['x']:_0x3467f0['x'],_0x6bf030=_0x5e7607?_0x443f20-_0x3467f0['y']:_0x3467f0['y'];if(_0x1dc637!==0x0&&_0x1dc637!=null){let _0x1c6b91=_0x1dc637*Math['PI']/0xb4,_0xbfa4db=Math[_0x59cb87(0x359)](_0x1c6b91),_0x6fb697=Math[_0x59cb87(0x42f)](_0x1c6b91),_0x488cb3=_0x3727ec/0x2,_0x203b82=_0x443f20/0x2,_0x5c6d9f=_0x283cee-_0x488cb3,_0x5bea6f=_0x6bf030-_0x203b82;_0x283cee=_0x488cb3+_0x5c6d9f*_0xbfa4db-_0x5bea6f*_0x6fb697,_0x6bf030=_0x203b82+_0x5c6d9f*_0x6fb697+_0x5bea6f*_0xbfa4db;}_0x283cee+=_0x536a70,_0x6bf030+=_0x3bb67a;let _0x47b78d=_0x3467f0[_0x59cb87(0x1af)]/0xea60;_0x345172&&(_0x47b78d=0xb4-_0x47b78d),_0x5e7607&&(_0x47b78d=-_0x47b78d),_0x47b78d+=_0x1dc637||0x0,_0x47b78d=(_0x47b78d%0x168+0x168)%0x168;let _0x524c16=(0x0,_0x5b498f[_0x59cb87(0x385)])({'left':_0x536a70,'top':_0x3bb67a,'width':_0x3727ec,'height':_0x443f20},_0x1dc637||0x0);return{'point':{'x':_0x283cee,'y':_0x6bf030},'angle':_0x47b78d,'bounds':_0x524c16};}['_calculateFreeEndpointAngle'](_0x1b9a9a,_0xf31f36){let _0x5e0be1=_0xf31f36['x']-_0x1b9a9a['x'],_0x88a26a=_0xf31f36['y']-_0x1b9a9a['y'];return Math['abs'](_0x5e0be1)>=Math['abs'](_0x88a26a)?_0x5e0be1>=0x0?0xb4:0x0:_0x88a26a>=0x0?0x10e:0x5a;}[_0x256dbb(0x350)](){const _0x98d41e=_0x256dbb;this[_0x98d41e(0x2d3)]=void 0x0,this[_0x98d41e(0x15c)]=void 0x0,this['_subUnitId']=void 0x0,this['_clearShapeConnectorHandlerObjects']();}[_0x256dbb(0x1c5)](){const _0x1e6929=_0x256dbb;this[_0x1e6929(0x37c)](),super[_0x1e6929(0x1c5)]();}};_0x1c6283=_0x53314b([_0x4529c8(0x1,_0x4149d4[_0x256dbb(0x357)]),_0x4529c8(0x2,_0x55342f[_0x256dbb(0x16f)]),_0x4529c8(0x3,_0x85b915[_0x256dbb(0x44d)]),_0x4529c8(0x4,_0x4149d4[_0x256dbb(0x2b3)]),_0x4529c8(0x5,(0x0,_0x4149d4['Inject'])(_0x4af378[_0x256dbb(0x29e)])),_0x4529c8(0x6,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x4404c6)),_0x4529c8(0x7,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x4bc6ac))],_0x1c6283);let _0x3344fc=class extends _0x4149d4[_0x256dbb(0x450)]{constructor(_0x116128,_0x4d79e1,_0x38e264){const _0x50fd80=_0x256dbb;super(),this['_sheetPrintInterceptorService']=_0x116128,this[_0x50fd80(0x1be)]=_0x4d79e1,this[_0x50fd80(0x1fe)]=_0x38e264,this['_initPrinting']();}[_0x256dbb(0x1b2)](){const _0x2ee04a=_0x256dbb;this[_0x2ee04a(0x283)](this[_0x2ee04a(0x3da)][_0x2ee04a(0x342)][_0x2ee04a(0x382)](this['_sheetPrintInterceptorService'][_0x2ee04a(0x342)][_0x2ee04a(0x2dd)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x1ec83f,_0x375796,_0x54995d)=>{const _0x5b4c5a=_0x2ee04a;var _0x29dc0f;let {unitId:_0x52d58f,subUnitId:_0x326f08,scene:_0x9374c1,resourceCollector:_0x3c501a}=_0x375796,_0x51680e=(_0x29dc0f=this['_drawingManagerService']['getDrawingDataForUnit'](_0x52d58f))==null?void 0x0:_0x29dc0f[_0x326f08];return _0x51680e==null||_0x51680e[_0x5b4c5a(0x3c8)][_0x5b4c5a(0x43e)](_0xf16720=>{const _0x16244e=_0x5b4c5a;let _0x587552=_0x51680e[_0x16244e(0x41f)][_0xf16720];_0x587552[_0x16244e(0x277)]===_0x4149d4[_0x16244e(0x29a)]['DRAWING_SHAPE']&&!_0x587552[_0x16244e(0x23d)]&&this[_0x16244e(0x1fe)][_0x16244e(0x422)](_0x587552,_0x9374c1,{'resourceCollector':_0x3c501a});}),_0x54995d(_0x1ec83f);}}));}};_0x3344fc=_0x53314b([_0x4529c8(0x0,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x57bfe3[_0x256dbb(0x178)])),_0x4529c8(0x1,_0x85b915['IDrawingManagerService']),_0x4529c8(0x2,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x542c35))],_0x3344fc);let _0x57108b=class extends _0x4149d4[_0x256dbb(0x450)]{constructor(_0x568410,_0x1fe764,_0x2f5b1e){super(),this['_commandService']=_0x568410,this['_localeService']=_0x1fe764,this['_sheetPermissionCheckController']=_0x2f5b1e,this['_initPermission']();}[_0x256dbb(0x2de)](){const _0x295fdb=_0x256dbb;this[_0x295fdb(0x283)](this[_0x295fdb(0x366)][_0x295fdb(0x3f1)](_0x3928c8=>{const _0x2ca44e=_0x295fdb;let _0xdc5b3e,_0x4d9477;if(_0x3928c8['id']===_0x4af378[_0x2ca44e(0x330)]['id']||_0x3928c8['id']===_0x4af378[_0x2ca44e(0x186)]['id']||_0x3928c8['id']===_0x4af378[_0x2ca44e(0x459)]['id']){let _0x2a4589=_0x3928c8[_0x2ca44e(0x3c3)];_0xdc5b3e=_0x2a4589[_0x2ca44e(0x384)],_0x4d9477=_0x2a4589[_0x2ca44e(0x1d7)];}!_0xdc5b3e||!_0x4d9477||this['_sheetPermissionCheckController'][_0x2ca44e(0x432)]({'workbookTypes':[_0x45e9dd['WorkbookEditablePermission']],'worksheetTypes':[_0x45e9dd[_0x2ca44e(0x34d)]]},_0xdc5b3e,_0x4d9477)||this['_sheetPermissionCheckController'][_0x2ca44e(0x3f0)](this[_0x2ca44e(0x481)]['t'](_0x2ca44e(0x467)));}));}};_0x57108b=_0x53314b([_0x4529c8(0x0,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x4149d4[_0x256dbb(0x357)])),_0x4529c8(0x1,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x4149d4[_0x256dbb(0x3f4)])),_0x4529c8(0x2,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x45e9dd['SheetPermissionCheckController']))],_0x57108b);let _0x4204c3=class extends _0x4149d4[_0x256dbb(0x450)]{constructor(_0x51d7dc,_0x5c844f,_0x39167e,_0x1489d7,_0x127ac2,_0x167416,_0x4ce0a4,_0x222e63,_0x4df09c,_0x5f1d83,_0xe03135){const _0x5b0724=_0x256dbb;super(),this[_0x5b0724(0x17e)]=_0x51d7dc,this[_0x5b0724(0x36d)]=_0x5c844f,this[_0x5b0724(0x33c)]=_0x39167e,this['_sheetsShapeService']=_0x1489d7,this[_0x5b0724(0x481)]=_0x127ac2,this['_commandService']=_0x167416,this['_drawingManagerService']=_0x4ce0a4,this['_sheetCanvasPopManagerService']=_0x222e63,this[_0x5b0724(0x2ff)]=_0x4df09c,this[_0x5b0724(0x2c3)]=_0x5f1d83,this[_0x5b0724(0x427)]=_0xe03135,_0x25449f(this,'_sidebarDisposable',null),_0x25449f(this,_0x5b0724(0x34e),null),_0x25449f(this,_0x5b0724(0x402),!0x1),_0x25449f(this,_0x5b0724(0x268),0x0),_0x25449f(this,_0x5b0724(0x15d),new Set()),_0x25449f(this,_0x5b0724(0x365),[]),this[_0x5b0724(0x273)](),this[_0x5b0724(0x283)](this[_0x5b0724(0x17e)][_0x5b0724(0x2f4)](_0x4149d4[_0x5b0724(0x305)][_0x5b0724(0x1ea)])[_0x5b0724(0x22a)](_0x47e1be=>{const _0x3cff6a=_0x5b0724;if(!_0x47e1be){var _0x1f59e2;(_0x1f59e2=this['_sidebarDisposable'])==null||_0x1f59e2[_0x3cff6a(0x1c5)]();return;}this['_createShapePopupMenu'](_0x47e1be);})),this['_registerOperations'](),this['_registerShapeMenu'](),this['initShapePopupMenu'](),this[_0x5b0724(0x283)](this[_0x5b0724(0x427)]['editingParams$'][_0x5b0724(0x22a)](_0x2b7b51=>{const _0x49f84e=_0x5b0724;_0x2b7b51&&this[_0x49f84e(0x20f)]();}));}[_0x256dbb(0x273)](){const _0x578e1a=_0x256dbb;this[_0x578e1a(0x33c)][_0x578e1a(0x26e)](_0x170537);}[_0x256dbb(0x249)](){const _0x3775f2=_0x256dbb;this['_sheetCanvasPopManagerService'][_0x3775f2(0x1f5)](_0x4149d4[_0x3775f2(0x29a)][_0x3775f2(0x3ca)],this[_0x3775f2(0x3ad)][_0x3775f2(0x22f)](this)),this[_0x3775f2(0x39e)]['registerFeatureMenuOffset'](_0x4149d4[_0x3775f2(0x29a)][_0x3775f2(0x3ca)],0x6,0x4);}['initShapePopupMenu'](){const _0x25fc9e=_0x256dbb;this[_0x25fc9e(0x17e)]['getAllUnitsForType'](_0x4149d4['UniverInstanceType'][_0x25fc9e(0x1ea)])[_0x25fc9e(0x43e)](_0xa9fe17=>this['_createShapePopupMenu'](_0xa9fe17));}[_0x256dbb(0x3ad)](_0x569dde,_0x57cc4f,_0x3f9493,_0xe2e7f0){const _0x36aaf6=_0x256dbb;return[{'label':'sheets-shape-ui.openPanel','index':0x0,'commandId':_0x2f9ccc['id'],'commandParams':{'unitId':_0x569dde,'subUnitId':_0x57cc4f,'drawingId':_0x3f9493},'disable':_0xe2e7f0===_0x4149d4['DrawingTypeEnum'][_0x36aaf6(0x391)]},{'label':_0x36aaf6(0x41e),'index':0x1,'commandId':_0x1e9ca9['RemoveSheetDrawingCommand']['id'],'commandParams':{'unitId':_0x569dde,'drawings':[{'unitId':_0x569dde,'subUnitId':_0x57cc4f,'drawingId':_0x3f9493,'drawingType':_0xe2e7f0}]},'disable':!0x1},{'label':_0x36aaf6(0x320),'index':0x2,'commandId':_0x4ab750['id'],'commandParams':{'unitId':_0x569dde,'subUnitId':_0x57cc4f,'drawingId':_0x3f9493},'disable':!0x1},{'label':_0x36aaf6(0x2be),'index':0x3,'commandId':_0x4af378[_0x36aaf6(0x471)]['id'],'commandParams':{'unitId':_0x569dde,'subUnitId':_0x57cc4f,'shapeId':_0x3f9493,'flipH':!0x0},'disable':!0x1},{'label':_0x36aaf6(0x2f3),'index':0x4,'commandId':_0x4af378[_0x36aaf6(0x471)]['id'],'commandParams':{'unitId':_0x569dde,'subUnitId':_0x57cc4f,'shapeId':_0x3f9493,'flipV':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.rotateRight90','index':0x4,'commandId':_0x4af378['SetSheetsShapeRotateCommand']['id'],'commandParams':{'unitId':_0x569dde,'subUnitId':_0x57cc4f,'shapeId':_0x3f9493,'rotate':0x5a},'disable':!0x1},{'label':_0x36aaf6(0x288),'index':0x4,'commandId':_0x4af378['SetSheetsShapeRotateCommand']['id'],'commandParams':{'unitId':_0x569dde,'subUnitId':_0x57cc4f,'shapeId':_0x3f9493,'rotate':-0x5a},'disable':!0x1},{'label':'sheets-shape-ui.toggleTextVertical','index':0x4,'commandId':_0x4af378[_0x36aaf6(0x2a7)]['id'],'commandParams':{'unitId':_0x569dde,'subUnitId':_0x57cc4f,'shapeId':_0x3f9493},'disable':!0x1}];}[_0x256dbb(0x343)](_0x39547,_0x3f3840,_0x820565){const _0x7bf204=_0x256dbb;let _0x533e39=this[_0x7bf204(0x191)][_0x7bf204(0x2d8)](_0x39547,_0x3f3840,_0x820565),_0x598cec=this[_0x7bf204(0x191)][_0x7bf204(0x47f)](_0x39547,_0x3f3840,_0x820565);return _0x533e39!==void 0x0&&_0x598cec!==void 0x0?{'shapeData':_0x598cec,'shapeId':_0x820565,'shapeType':_0x533e39,'unitId':_0x39547,'subUnitId':_0x3f3840,'version':this[_0x7bf204(0x268)],'disableShapeOption':!0x1}:null;}[_0x256dbb(0x3b1)](_0x422643){const _0x14013b=_0x256dbb;if(!_0x422643)return;let _0xa20309=_0x422643[_0x14013b(0x2ea)]();this[_0x14013b(0x2c3)][_0x14013b(0x182)](_0xa20309)&&!this[_0x14013b(0x15d)][_0x14013b(0x182)](_0xa20309)&&(this[_0x14013b(0x3c9)](_0xa20309),this[_0x14013b(0x15d)][_0x14013b(0x39f)](_0xa20309));}[_0x256dbb(0x20f)](){const _0x5184ef=_0x256dbb;this[_0x5184ef(0x365)][_0x5184ef(0x43e)](_0x3f3e74=>_0x3f3e74['dispose']()),this[_0x5184ef(0x365)][_0x5184ef(0x234)]=0x0;}['_popupMenuListener'](_0x49097a){const _0x3ebc3c=_0x256dbb;var _0x3b0074;let _0x500857=(_0x3b0074=this['_renderManagerService'][_0x3ebc3c(0x1a3)](_0x49097a))==null?void 0x0:_0x3b0074[_0x3ebc3c(0x257)],_0x28c2bf=_0x500857==null?void 0x0:_0x500857['getTransformerByCreate']();!_0x500857||!_0x28c2bf||(this[_0x3ebc3c(0x283)](_0x28c2bf[_0x3ebc3c(0x3ee)]['subscribe'](()=>{const _0x1439cd=_0x3ebc3c;let _0x2d8d33=_0x28c2bf[_0x1439cd(0x43d)]();if(this[_0x1439cd(0x20f)](),this[_0x1439cd(0x402)]||_0x2d8d33['size']>0x1)return;let _0x3d8890=_0x2d8d33[_0x1439cd(0x272)]()[_0x1439cd(0x32b)]()[_0x1439cd(0x38a)];if(!_0x3d8890)return;let _0x23c4a3=this[_0x1439cd(0x1be)][_0x1439cd(0x1c1)](_0x3d8890[_0x1439cd(0x22b)]);if(!_0x23c4a3||_0x23c4a3[_0x1439cd(0x277)]!==_0x4149d4[_0x1439cd(0x29a)][_0x1439cd(0x3ca)])return;let {unitId:_0x5c0e28,subUnitId:_0x2d83a0,drawingId:_0x239dfe,drawingType:_0xacefe8}=_0x23c4a3,_0x281a3d=this[_0x1439cd(0x343)](_0x5c0e28,_0x2d83a0,_0x239dfe);if(!_0x281a3d)return;this[_0x1439cd(0x2ff)]['setContextValue'](_0x4149d4[_0x1439cd(0x260)],!0x0);let _0x5b09b7=this[_0x1439cd(0x39e)][_0x1439cd(0x3bf)](_0x3d8890,{'componentKey':_0x415db9,'direction':_0x1439cd(0x238),'offset':[0x0,_0x5d2674[_0x1439cd(0x31a)]],'extraProps':{'unitId':_0x5c0e28,'subUnitId':_0x2d83a0,'drawingId':_0x239dfe,'drawingType':_0xacefe8,'shapeType':_0x281a3d[_0x1439cd(0x3c4)],'shapeData':_0x281a3d[_0x1439cd(0x1f3)]}});this['_disposePopups']['push'](this['disposeWithMe'](_0x5b09b7)),this[_0x1439cd(0x1be)][_0x1439cd(0x3c1)]()[_0x1439cd(0x417)](_0x3fc384=>_0x3fc384['unitId']===_0x5c0e28&&_0x3fc384[_0x1439cd(0x1d7)]===_0x2d83a0&&_0x3fc384[_0x1439cd(0x346)]===_0x239dfe)||this[_0x1439cd(0x1be)][_0x1439cd(0x19c)]([{'unitId':_0x5c0e28,'subUnitId':_0x2d83a0,'drawingId':_0x239dfe}]);})),this[_0x3ebc3c(0x283)](_0x28c2bf[_0x3ebc3c(0x378)][_0x3ebc3c(0x22a)](()=>{const _0x35dc2c=_0x3ebc3c;this['_clearPopups'](),this['_contextService']['setContextValue'](_0x4149d4[_0x35dc2c(0x260)],!0x1),this[_0x35dc2c(0x1be)][_0x35dc2c(0x19c)](null);})),this[_0x3ebc3c(0x283)](_0x28c2bf[_0x3ebc3c(0x2ce)]['subscribe'](()=>{this['_clearPopups']();})),this[_0x3ebc3c(0x283)](_0x28c2bf[_0x3ebc3c(0x43a)][_0x3ebc3c(0x22a)](()=>{const _0x65cc3d=_0x3ebc3c;this[_0x65cc3d(0x20f)]();})));}[_0x256dbb(0x439)](){const _0x24d831=_0x256dbb;this[_0x24d831(0x283)](this[_0x24d831(0x366)][_0x24d831(0x185)](_0x1f8b69=>{const _0x49e005=_0x24d831;if(_0x1f8b69['id']===_0x2f9ccc['id']){let {unitId:_0x411bca,subUnitId:_0x236e05,drawingId:_0x100678}=_0x1f8b69[_0x49e005(0x3c3)];this[_0x49e005(0x268)]+=0x1,this[_0x49e005(0x34e)]=this[_0x49e005(0x343)](_0x411bca,_0x236e05,_0x100678),this[_0x49e005(0x20f)](),this[_0x49e005(0x2b6)]();}if(_0x1f8b69['id']===_0x4ab750['id']&&(this[_0x49e005(0x34e)]=null,this[_0x49e005(0x179)]()),_0x1f8b69['id']===_0x4af378[_0x49e005(0x303)]['id']){let {unitId:_0x286f3f,subUnitId:_0x398152,shapeId:_0x1dd5ed}=_0x1f8b69[_0x49e005(0x3c3)];if(this[_0x49e005(0x34e)]&&this[_0x49e005(0x34e)]['shapeId']===_0x1dd5ed){let _0x2c893e=this['_getShapeInfo'](_0x286f3f,_0x398152,_0x1dd5ed);_0x2c893e&&(this[_0x49e005(0x268)]+=0x1,_0x2c893e[_0x49e005(0x197)]=this[_0x49e005(0x268)],this[_0x49e005(0x34e)]=_0x2c893e,this[_0x49e005(0x402)]&&this[_0x49e005(0x2b6)]());}}})),this[_0x24d831(0x283)](this['_drawingManagerService'][_0x24d831(0x47a)][_0x24d831(0x22a)](_0x27dd53=>{const _0x3287a9=_0x24d831;if(this[_0x3287a9(0x402)]===!0x1)return;if(_0x27dd53[_0x3287a9(0x234)]===0x0){this[_0x3287a9(0x34e)]=null,this[_0x3287a9(0x179)]();return;}if(_0x27dd53[_0x3287a9(0x234)]===0x1&&_0x27dd53[0x0]['drawingType']===_0x4149d4[_0x3287a9(0x29a)]['DRAWING_SHAPE']&&(this[_0x3287a9(0x268)]+=0x1,this[_0x3287a9(0x34e)]=this[_0x3287a9(0x343)](_0x27dd53[0x0]['unitId'],_0x27dd53[0x0][_0x3287a9(0x1d7)],_0x27dd53[0x0]['drawingId']),this[_0x3287a9(0x34e)])){this[_0x3287a9(0x2b6)]();return;}let _0x1c980c=_0x27dd53[_0x3287a9(0x1c4)](_0x2e4fa4=>_0x2e4fa4[_0x3287a9(0x277)]===_0x4149d4[_0x3287a9(0x29a)][_0x3287a9(0x3ca)]);if(_0x27dd53[_0x3287a9(0x234)]>0x1&&_0x1c980c[_0x3287a9(0x234)]===_0x27dd53[_0x3287a9(0x234)]){if(this[_0x3287a9(0x268)]+=0x1,this[_0x3287a9(0x34e)]=this[_0x3287a9(0x343)](_0x27dd53[0x0][_0x3287a9(0x384)],_0x27dd53[0x0]['subUnitId'],_0x27dd53[0x0]['drawingId']),this[_0x3287a9(0x34e)]){this['_openShapeEditPanel']();return;}}else{if(this[_0x3287a9(0x268)]+=0x1,this[_0x3287a9(0x34e)]=this[_0x3287a9(0x343)](_0x27dd53[0x0][_0x3287a9(0x384)],_0x27dd53[0x0][_0x3287a9(0x1d7)],_0x27dd53[0x0][_0x3287a9(0x346)]),this[_0x3287a9(0x34e)]){this[_0x3287a9(0x34e)][_0x3287a9(0x46f)]=!0x0,this[_0x3287a9(0x2b6)]();return;}}this[_0x3287a9(0x179)]();}));}[_0x256dbb(0x2b6)](){const _0x515d1b=_0x256dbb;this[_0x515d1b(0x34e)]&&(this[_0x515d1b(0x26c)]=this[_0x515d1b(0x36d)]['open']({'id':_0x5815da,'header':{'title':this['_localeService']['t'](_0x515d1b(0x271))},'width':0x184,'children':{'label':_0x5815da,...this[_0x515d1b(0x34e)]},'onClose':()=>{const _0x11918f=_0x515d1b;this[_0x11918f(0x1be)][_0x11918f(0x19c)](null),this['_contextService'][_0x11918f(0x400)](_0x4149d4['FOCUSING_COMMON_DRAWINGS'],!0x1),this['_sidebarDisposable']=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0x256dbb(0x179)](){const _0x1ed6d6=_0x256dbb;this[_0x1ed6d6(0x402)]=!0x1,this['_sidebarService'][_0x1ed6d6(0x415)](_0x5815da),this['_sidebarDisposable']=null,this[_0x1ed6d6(0x2ff)][_0x1ed6d6(0x400)](_0x4149d4['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x1ed6d6(0x1be)][_0x1ed6d6(0x19c)](null);}};_0x4204c3=_0x53314b([_0x4529c8(0x0,_0x4149d4[_0x256dbb(0x2b3)]),_0x4529c8(0x1,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x13ac91[_0x256dbb(0x2cc)])),_0x4529c8(0x2,_0x13ac91[_0x256dbb(0x2b5)]),_0x4529c8(0x3,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x4af378[_0x256dbb(0x29e)])),_0x4529c8(0x4,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x4149d4[_0x256dbb(0x3f4)])),_0x4529c8(0x5,_0x4149d4['ICommandService']),_0x4529c8(0x6,_0x85b915[_0x256dbb(0x44d)]),_0x4529c8(0x7,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x57bfe3['SheetCanvasPopManagerService'])),_0x4529c8(0x8,_0x4149d4['IContextService']),_0x4529c8(0x9,_0x55342f[_0x256dbb(0x16f)]),_0x4529c8(0xa,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x37fab1))],_0x4204c3);let _0x1408e3=class extends _0x4149d4[_0x256dbb(0x41b)]{constructor(_0x33e25f=_0x5ef579,_0x5443bb,_0x5d3080,_0x36d838,_0x23c6e7){const _0x2f7f14=_0x256dbb;super(),this[_0x2f7f14(0x198)]=_0x33e25f,this[_0x2f7f14(0x2af)]=_0x5443bb,this[_0x2f7f14(0x366)]=_0x5d3080,this['_configService']=_0x36d838,this[_0x2f7f14(0x2c3)]=_0x23c6e7;let {..._0x198e3f}=(0x0,_0x4149d4['merge'])({},_0x5ef579,this[_0x2f7f14(0x198)]);this[_0x2f7f14(0x28b)][_0x2f7f14(0x2f8)](_0x2f7f14(0x39b),_0x198e3f),this['_initCommands']();}[_0x256dbb(0x3a3)](){const _0x5bf3be=_0x256dbb;(0x0,_0x4149d4[_0x5bf3be(0x31c)])(this['_injector'],[[_0x4204c3],[_0x3cca7c],[_0x542c35],[_0x3344fc]]);}[_0x256dbb(0x1df)](){const _0x4739af=_0x256dbb;this[_0x4739af(0x2af)]['get'](_0x4204c3)[_0x4739af(0x447)]();}[_0x256dbb(0x25b)](){const _0x283017=_0x256dbb;[[_0x4bc6ac],[_0x4404c6],[_0x59f179]][_0x283017(0x43e)](_0x5c15df=>this['_injector'][_0x283017(0x39f)](_0x5c15df)),(0x0,_0x4149d4[_0x283017(0x31c)])(this[_0x283017(0x2af)],[[_0x59f179],[_0x4404c6]]),this[_0x283017(0x2c3)][_0x283017(0x2ba)](_0x4149d4[_0x283017(0x305)]['UNIVER_SHEET'],[_0x4bc6ac]),this[_0x283017(0x2c3)][_0x283017(0x2ba)](_0x4149d4['UniverInstanceType']['UNIVER_SHEET'],[_0x7b8dd9]),this[_0x283017(0x2c3)]['registerRenderModule'](_0x4149d4['UniverInstanceType']['UNIVER_SHEET'],[_0x1c6283]),this[_0x283017(0x2c3)][_0x283017(0x2ba)](_0x4149d4[_0x283017(0x305)][_0x283017(0x1ea)],[_0x11fb45]),this['_renderManagerService'][_0x283017(0x2ba)](_0x4149d4['UniverInstanceType'][_0x283017(0x42a)],[_0x5b28ae]);}['onStarting'](){const _0x2c9339=_0x256dbb;this[_0x2c9339(0x2af)][_0x2c9339(0x39f)]([_0x142a64]),this[_0x2c9339(0x2af)][_0x2c9339(0x451)](_0x142a64);let _0x264fbb=this[_0x2c9339(0x2af)];[[_0x4204c3],[_0x3cca7c],[_0x542c35],[_0x3344fc],[_0x388c60],[_0x37fab1],[_0x310ed5],[_0x361f72],[_0x57108b]][_0x2c9339(0x43e)](_0x2d7ddd=>_0x264fbb['add'](_0x2d7ddd)),(0x0,_0x4149d4[_0x2c9339(0x31c)])(this[_0x2c9339(0x2af)],[[_0x4204c3],[_0x3cca7c],[_0x542c35],[_0x388c60],[_0x37fab1],[_0x310ed5],[_0x361f72],[_0x57108b]]);}[_0x256dbb(0x1f9)](){const _0x4fa63b=_0x256dbb;[_0x546d4c,_0xf9a118,_0x4ab750,_0x2f9ccc,_0x39f904,_0x59fea1][_0x4fa63b(0x43e)](_0x495e66=>this['disposeWithMe'](this[_0x4fa63b(0x366)][_0x4fa63b(0x3cf)](_0x495e66)));}};_0x25449f(_0x1408e3,_0x256dbb(0x46a),_0x4149d4[_0x256dbb(0x305)][_0x256dbb(0x1ea)]),_0x25449f(_0x1408e3,_0x256dbb(0x3c5),_0x256dbb(0x25c)),_0x25449f(_0x1408e3,_0x256dbb(0x46d),_0xcbe27d),_0x25449f(_0x1408e3,'version',_0x3f5c5e),_0x1408e3=_0x53314b([(0x0,_0x4149d4[_0x256dbb(0x16a)])(_0x46c8ac['UniverLicensePlugin'],_0x5d2674[_0x256dbb(0x156)],_0x2ac673[_0x256dbb(0x426)],_0x4af378[_0x256dbb(0x2ad)]),_0x4529c8(0x1,(0x0,_0x4149d4[_0x256dbb(0x2ca)])(_0x4149d4[_0x256dbb(0x436)])),_0x4529c8(0x2,_0x4149d4[_0x256dbb(0x357)]),_0x4529c8(0x3,_0x4149d4['IConfigService']),_0x4529c8(0x4,_0x55342f[_0x256dbb(0x16f)])],_0x1408e3),_0x34aab0['SheetsShapeUIMenuSchema']=_0x170537,Object[_0x256dbb(0x172)](_0x34aab0,_0x256dbb(0x312),{'enumerable':!0x0,'get':function(){return _0x1408e3;}});}));function _0x1d9e(_0xbf3912,_0x2314a0){_0xbf3912=_0xbf3912-0x156;const _0x4795d8=_0x4795();let _0x1d9efa=_0x4795d8[_0xbf3912];return _0x1d9efa;}function _0x4795(){const _0x13106e=['wrapStrategy','ComponentManager','function','sheet.operation.open-shape-object-list-panel','sheets-shape-ui.toggleFlipV','getCurrentTypeOfUnit$','scale','sheets-shape-ui.objectListPanel.title','clear','setConfig','clip-','_baseShapeWidth','Vector2','_cxnIndex','React','tag','_contextService','@univerjs-pro/license','sheets-shape-text-','preValue','UpdateSheetsShapeDataMutation','prototype','UniverInstanceType','_attachAdjustEvent','default','drawing.operation.set-drawing-active','Module','SetSheetDrawingCommand','_activeImageId','UPDATE','attachTransformerTo','3000485QFiKai','useDependency','_getOrCreateShapeModel','UniverEngineRender','UniverSheetsShapeUIPlugin','_draw','SheetShapeTextEditorContainer','_drawingAddListener','src','_imageShapeClipController','reduce','_sheetInterceptorService','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','createShapeTextBoxShapeData','touchDependencies','updateShapeFillImage','skeleton','backward','sheets-shape-ui.hidePanel','includes','ShapeFillEnum','getDrawingData','SHEET_VIEWPORT_KEY','selectable','_getImageDrawingInfo','32977JgNoTc','getConnectionSiteList','makeDirty','clipByShape','next','useRef','_clearControls','popup','activateDrawingObject','InsertShapeCommand','pick','Image','VIEW_MAIN_LEFT_TOP','image','shape-adjust-point-','clip','flipX','addClipboardHook','startArrow','fontFamily','Large','_menuManagerService','UniverSheets','keys','_drawingType','fontSize','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','interceptor','_getShapeInfo','DRAWING_UNIT','activeSheet$','drawingId','univerjs-icon\x20univerjs-icon-','_sheetDrawingService','Shape','_baseTop','smartArt','children','WorksheetEditPermission','_activeShapeInfo','_initSheetChange','_reset','_sheetShapeAdjustController','getCurrentSkeleton','shape','getParent','DocumentDataModel','_initEditingParams','ICommandService','featurePluginUpdateNotification','cos','fill','isArray','@univerjs-pro/shape-editor-ui','ImageSourceTypeEnum','ShapeFloatingToolbar','_currentUniverService','insertGroupObject','shapeModel','enableObjectsEvent','HorizontalAlign','getObjectListPanelSectionIdForDrawingType','_disposePopups','_commandService','clipTop','_commandExecutedListener','lineType','M1.33203\x205.40015C1.33203\x204.55622\x202.01618\x203.87207\x202.86011\x203.87207H10.5998C11.4437\x203.87207\x2012.1278\x204.55622\x2012.1278\x205.40015V13.1398C12.1278\x2013.9837\x2011.4437\x2014.6679\x2010.5998\x2014.6679H2.86011C2.01618\x2014.6679\x201.33203\x2013.9837\x201.33203\x2013.1398V5.40015ZM2.86011\x205.14217C2.71763\x205.14217\x202.60213\x205.25767\x202.60213\x205.40015V13.1398C2.60213\x2013.2823\x202.71763\x2013.3978\x202.86011\x2013.3978H10.5998C10.7422\x2013.3978\x2010.8577\x2013.2823\x2010.8577\x2013.1398V5.40015C10.8577\x205.25767\x2010.7422\x205.14217\x2010.5998\x205.14217H2.86011Z','_resetState','_initCopyPaste','_sidebarService','toStringTag','completeEditing','ShapeModel','onPointerDown$','angle','resolveShapeTextEditorWrapStrategy','updateContext','doc','SheetSkeletonManagerService','_executeConnectionCommand','clearControl$','getObject','getDrawingVisible','getCurrentUnitInfo','_clearShapeConnectorHandlerObjects','getDrawingSearch','_initialize','ShapeTextEditorContainer','prepareShapeTextDocumentData','disableObjectsEvent','intercept','decorate','unitId','getBasicShapeRotateBound','OBJECT_LIST_FLOATING_SECTION_ID','getMatrix','cxnPointFill','_insertingShapeKeys','value','getAdjustNames','CROSSHAIR','transformByState','1.0.0-alpha.6','map','cxnIndex','DRAWING_DOM','left','_registerImageShapeClipDelegate','UniverIcon','ShapeArrowSizeEnum','SheetsDrawingGroupCopyPasteController','getSheetBySheetId','_addShapeAdjustControl','_drawSimpleText','getSkeletonParam','sheets-shape-ui.config','DEFAULT_PASTE','sheet.operation.open-sheet-shape-format-panel','_sheetCanvasPopManagerService','add','getTransformer','getBentTypeFromPoints','text','onRendered','getDrawingOrder','@univerjs/sheets-drawing-ui','clearAdjustValue','_handleConnectedEndpointPointerUp','setFillImage','_generatePasteMutations','string','transformToAxisAlignPosition','worldPoint','getShapePopupMenus','sheets-shape-ui','applyPoint','ISheetDrawingService','_createShapePopupMenu','setShapeProps','changeShapeType','useReducer','sheet.command.update-shape-data','DRAWING_SMART_ART','_isConnecting','onPointerMove$','marginTop','setHighlighted','_lastEditingShapeKey','DRAWING_VIDEO','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','getImage','attachPopupToObject','getBatchRemoveOp','getFocusDrawings','_attachConnectorObjectEvent','params','shapeType','pluginName','currentColor','_loadShapePictureFill','order','_popupMenuListener','DRAWING_SHAPE','copy-double-icon','shapeText','getSkeleton','@univerjs/core','registerCommand','getShapeModel','addObject','multiply','ShapePickerPanel','axisAlignSheetTransform','render','div','size','SHAPE_EDITOR_TRANSFORMER_CONFIG','ancestorTransform','_sheetPrintInterceptorService','getCurrentRangeDisable$','invert','http://www.w3.org/2000/svg','SHAPE','deriveStateFromActiveSheet$','DrawingRenderService','_adjHandlerPointerUp','jsx','localToWorld','ShapeTextFloatMenuRenderControllerBase','_registerDrawingMoveHandler','height','RemoveSheetCommand','worldRect','EMPTY','width','_isHighlighted','_sheetSkeletonService','updateDocumentDataMargin','createControl$','image-clip-adjust-point-','blockExecuteWithoutPermission','beforeCommandExecuted','group','getDrawingPoints','LocaleService','CUT','getCurrentScrollState','shape-text-','CopyDoubleIcon','start','createElement','lineShapeId','rotation','_isStartAdjusting','register','_init','setContextValue','CommandType','_isOpenedShapeEditPanel','_updateImageAdjValues','current','_createControls','mask','onerror','getBatchAddOp','UpdateLineShapeResizeCommand','_showConnectionSites','refreshAdjustControls','_baseDrawingRect','CopySheetCommand','getAdjustValueByName','_activeAdjustPointList','isStartConnectorPoint','getEndConnectInfo','DocSelectionManagerService','asObservable','Medium','close','description','find','_currentConnectionTarget','vertical','VerticalAlign','Plugin','clone','translateWithPrecision','sheets-shape-ui.deleteShape','data','UniverDrawingUi','add$','renderDrawingShape','SheetSkeletonService','viewBound','point','UniverSheetsDrawingUIPlugin','_shapeTextEditingService','clearActiveDrawingObjects','restore','UNIVER_DOC','COMMAND','discreteRangeToRange','startConnectionDetection','@univerjs/ui','sin','_sheetClipboardService','MenuItemType','permissionCheckWithoutRange','connection-site-','#4285f4','generateRandomId','Injector','getDrawingShapeKeyByDrawingSearch','_drawingRenderService','_registerOperations','changeStart$','isCurvedConnectorShape','_registerGroupFeaturePasteHook','getSelectedObjectMap','forEach','defs','PictureFill','_updateSrcRectByTransform','getConnectorLinePoints','create','LEFT','_componentManager','_activeTargetShapeId','initShapePopupMenu','fillImageSource','useState','startX','_isDrawingShapePointDown','substring','IDrawingManagerService','_adjName','DrawingCommonPanel','Disposable','get','getShapeTextRect','cancelEditing','_cxtHandlerPointerMove','_addShapeConnectorHandlerObjects','save','colorChannel1','RemoveSheetsShapeMutation','UpdateConnectorRelationCommand','RemoveSheetDrawingCommand','getObjectListPanelLabels','symbol','sheets-shape-ui.objectListPanel.open','stringify','end','setPrstGeom','fillType','_activeShapeModel','sheet.shape.text.float-menu','clip-adj-','prstGeomAdjValues','useObservable','sheets-shape-ui.permission.editErr','useEffect','use','type','_executeResizeCommand','#FFFFFF','packageName','translate','disableShapeOption','DocumentSkeleton','ToggleSheetsShapeFlipCommand','getDrawingByParam','OPERATION','setEditing','exports','isHitLine','error','_props','getRealBound','focus$','_drawRichText','getCurrentUnitOfType','UniverDrawing','_baseWidth','getShapeDataById','getBatchUpdateOp','_localeService','cxnPointStrokeWidth','cxnPointStroke','offsetX','_handleFreeEndpointMove','composeMatrix','UniverShapeEditorUIPlugin','updateLinePoints','trim','extraProps','beginPath','sectionCanvas','_unitId','_initializedShapePopupMenu','_setTransForm','rxjs','classType','calculate','iterator','DocumentViewModel','DRAWING_TABLE','UniverProSheetsShapeUi','computeConnectorRouteLayout','_editingParams$','rect','none','DependentOn','setAdjustValueByName','gdRefX','sheet.shape.floating-toolbar','sheets-shape-ui.imagePanel.crop.shape','IRenderManagerService','#1a73e8','_rerouteConnectorLine','defineProperty','DRAWING_CHART','_calculateFreeEndpointAngle','call','getUnitType','Arrow','SheetPrintInterceptorService','_closeShapeEditPanel','_updateAdjustControlPositions','srcRect','_hasReset','getStartConnectInfo','_univerInstanceService','canvas','_registerMoveHandler','setCursor','has','CURSOR_TYPE','_adjHandlerPointerMove','onCommandExecuted','SetShapeDrawingDataCommand','chart','endArrow','_urlImageService','toString','onSavingEditorData$','UniverDocsUi','buildShapeTextDataUpdate','resolveShapeTextDocumentRenderLayout','forward','_registerFocusChangeHandler','_sheetsShapeService','adjHandleSize','SolidFill','url(#$1','ShapeGroupEnum','useMemo','version','_config','dom','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','name','focusDrawing','slice','setPrstGeomAdjValues','getShapeTextData','indexOf','setShouldShowAdjust','SheetsSelectionsService','getRenderById','ShapeArrowTypeEnum','localeService','adjustValues','_groupCopyPasteController','shapeKey','refreshTransform','getObjectIncludeInGroup','_imageIoService','_copyInfo','computeConnectorResizeLayout','getShapeData','ang','InsertSheetsShapeMutation','_connectionSiteObjects','_initPrinting','_handleBasicShapeUpdateConnectorLineShape','_updateTransform','_isStartConnectorPoint','entries','transformForAngle','idSuffix','gdRefY','plainShapeTextToDocumentData','amd','strokeWidth','Transform','_drawingManagerService','update$','addImageSourceCache','getDrawingOKey','_transform','viewportScrollY','filter','dispose','_shapeId','_getScrollInfo','remove$','getConnectionInfo','_baseShapeLeft','computeStraightConnectorLayout','adjName','24QFiiaX','buildClipPath','_updateShapeAdjustControls','onDblclick$','gradientEndColor','COPY_TYPE','SheetScrollManagerService','getState','_shapeUpdateListener','resourceCollector','subUnitId','_currentScene','setOnSavingEditorData','_shapes','getObjectListPanelTypeName','svg','top','ShapeIcon','onSteady','sheetViewStartRow','ShapePickerDropdown','_findNearestConnectionSite','ISheetClipboardService','delete','sqrt','isHit','_registerDrawingFocusChangeHandler','_iconManager','IImageIoService','UNIVER_SHEET','_getSceneAndTransformerByDrawingSearch','getSheetCommandTarget','BehaviorSubject','isRender','isEditing','from','_registerIcons','URL','shapeData','_context','registerFeatureMenu','@univerjs/docs-ui','removeLinePoints','_loadAndSetImage','_initCommands','resetCursor','_transformCalculateSrcRect','REMOVE','cxnPointRadius','_shapeRenderController','_clipService','_baseLeft','flipY','getEditing','getShapeType','shapeId','_activeAdjustInfo','transform','@univerjs/sheets-drawing','DocCanvasPopManagerService','@univerjs/engine-render','offsetY','_createShapeAdjustControls','memo','INSERT','UUID','_clearPopups','random','BUTTON','_executeConnectedRouteConnectionCommand','UniverUi','getZoomRatio','index','IUndoRedoService','608vCutMz','1987404ruOQEj','createInternalEditorID','getUnit','targetShapeId','_clearConnectionSites','horizontal','parse','_shapeService','custom','_getShapeAdjustInfosById','clipHeight','interceptCommand','_insertShapes','pushUndoRedo','IconManager','adjHandleFill','getMenuHiddenObservable','displayName','subscribe','oKey','unit','unsubscribe','_targetShapeId','bind','contentVerticalOffset','ShapeEditPanel','_addShapeConnectorHandlerObject','PREDEFINED_HOOK_NAME','length','_disposed','xlink:href','isConnectorShape','top-center','_onSavingEditorData$','with','ArrangeTypeEnum','constructor','hidden','complete','isInGroup','SELECTOR','Circle','StraightConnector1','getTextModel','sheetTransform','attrs','_getImagePrstGeom','_baseHeight','adjHandleStroke','_registerShapeMenu','object','isRichText','_connectorObjects','sheet.operation.close-sheet-shape-format-panel','ConnectorCoordinateTransform','GROUP','calcAdjValue','path','_createCopyInfoByRange','reverse','getViewportByCell','RENDER_CLASS_TYPE','_generateCopyPasteMutations','scene','drawWith','onTransformChange$','undo','onReady','SHEET_SHAPE_UI_PLUGIN','_getConnectionSiteAngle','sheetViewStartColumn','evenodd','FOCUSING_COMMON_DRAWINGS','getCurrentLastSelection','_handleFreeEndpointPointerUp','M5.4004\x202.60213C5.25792\x202.60213\x205.14241\x202.71763\x205.14241\x202.86011V4.32679C5.14241\x204.67752\x204.85809\x204.96184\x204.50736\x204.96184C4.15663\x204.96184\x203.87231\x204.67752\x203.87231\x204.32679V2.86011C3.87231\x202.01618\x204.55646\x201.33203\x205.4004\x201.33203H13.14C13.984\x201.33203\x2014.6681\x202.01618\x2014.6681\x202.86011V10.5998C14.6681\x2011.4437\x2013.984\x2012.1278\x2013.14\x2012.1278H11.6568C11.3061\x2012.1278\x2011.0218\x2011.8435\x2011.0218\x2011.4928C11.0218\x2011.1421\x2011.3061\x2010.8577\x2011.6568\x2010.8577H13.14C13.2825\x2010.8577\x2013.398\x2010.7422\x2013.398\x2010.5998V2.86011C13.398\x202.71763\x2013.2825\x202.60213\x2013.14\x202.60213H5.4004Z','stopPropagation','setShapeData','_isShouldShowDrawingShapeAdjust','sheets-shape-ui.insertShape','_shapeEditPanelVersion','changeEnd$','_addControl','_sheetBasicShapeConnectionPointController','_sidebarDisposable','prstGeom','mergeMenu','isHorizontal','UniverProSheetsShape','sheets-shape-ui.formatShape','values','_initMenu','560692PszjVZ','_cxtHandlerPointerUp','draw','drawingType','_getDrawingRect','_activeShapeAdjustPointList','_drawShapeText','_highlightedSiteIndex','table','getInverseCoord','Observable','open','77260JqEVRd','refreshShapeFillImage','endConnectionDetection','disposeWithMe','copyType','FromArray','_handleConnectedEndpointMove','VIEW_MAIN_TOP','sheets-shape-ui.rotateLeft90','contentHeight','getValue','_configService','DRAWING_OBJECT_LAYER_INDEX','registerClipDelegate','UniverProShapeEditorUi','push','pipe','jsxs','isHighlighted','onload','assign','_clearShapeAdjustControls','UniverCore','normal','_getZoomRatio','_subUnitId','DrawingTypeEnum','ShapeDefaultConfig','_initSelection','onPointerUp$','SheetsShapeService','ShapeRenderModeEnum','syncExecuteCommand','ShapeTypeEnum','gdRefR','setSrcRect','_baseShapeHeight','isDrawingObject','SetDrawingApplyMutation','SetSheetsShapeTextVerticalToggleCommand','defIds','VIEW_MAIN','executeCommand','resize','normalizeShapeTextModel','UniverSheetsShapePlugin','UniverDocs','_injector','RibbonInsertGroup','setCanUseShapeClip','_handleConnectorPointerUp','IUniverInstanceService','_getConnectPointInfo','IMenuManagerService','_openShapeEditPanel','@univerjs/sheets','objects','_draggingConnectorId','registerRenderModule','_findShapeAtPoint','attachRangeWithCoord','getAdjustInfoByName','sheets-shape-ui.toggleFlipH','DRAWING_IMAGE','_getShapeAdjustPointListById','subscribeEvent','toDisposable','_renderManagerService','resolveShapeTextEditorBehaviorShapeData','SheetInterceptorService','_executeConnectedRouteResizeCommand','clearAdjustControls','doc.image-clip.shape-picker.component','gdRefAng','Inject','switchMap','ISidebarService','visible','changing$','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','#bcbcbc','getBasicShapeRelation','_baseShapeTop','_activeShapeId','FOCUSING_SHAPE_TEXT_EDITOR','1em','getTextStyle','startY','getShapeTypeById','worldPoints','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','17091mFomMA','SetDrawingArrangeCommand','getInterceptPoints','_initPermission','_isImagePointerDown','set','stroke','dataModel','getConnectionRelation','sheet.shape.picker.component','_focusedDrawings','_sheetDrawingShapeRenderController','editingParams$','369456eSvUjZ','getTransformerByCreate','getUnitId','relation','routeConnectorLineShape','UniverSheetsDrawing','DrawingApplyType'];_0x4795=function(){return _0x13106e;};return _0x4795();}
1
+ function _0x19bc(){const _0x1d9f57=['getObjectIncludeInGroup','classType','onReady','horizontal','clone','dataModel','ObjectListPanelBase','_baseHeight','getImageSourceCache','setHighlighted','computeConnectorRouteLayout','useObservable','#4285f4','render','_executeResizeCommand','function','getCurrentTypeOfUnit$','getDrawingOKey','startArrow','calculate','defs','isInGroup','_formulaAnimation','sheet.command.update-shape-data','params','DocumentSkeleton','getRenderUnitById','ShapeTypeEnum','_draw','REMOVE','CURSOR_TYPE','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','ArrangeTypeEnum','getObjectListPanelLabels','_getShapeAdjustInfosById','custom','isRender','Vector2','_adjName','translateWithPrecision','sheet.menu.shape.flip-vertical','_baseShapeHeight','_sheetDrawingShapeRenderController','_showConnectionSites','permissionCheckWithoutRange','_onSavingEditorData$','_executeConnectionCommand','_drawRichTextLayer','useMemo','_shapeService','_drawRichText','onerror','UniverIcon','_handleConnectedEndpointPointerUp','DRAWING_VIDEO','setAdjustValueByName','_commandService','attrs','_generatePasteMutations','sheets-shape-ui.objectListPanel.title','_shapeTextEditingService','mask','SHAPE','delete','setFormulaPresentation','_createCopyInfoByRange','_sheetClipboardService','ContextMenuPosition','_imageShapeClipController','offsetY','_drawingType','updateLinePoints','cxnPointFill','_rerouteConnectorLine','getDrawingShapeKeyByDrawingSearch','getConnectorLinePoints','FlipHorizontalIcon','generateRandomId','setPrstGeom','onTransformChange$','startX','M8\x2014V14.2','_registerDrawingFocusChangeHandler','DocSelectionRenderService','getUnit','@univerjs/docs-ui','_addShapeConnectorHandlerObjects','axisAlignSheetTransform','_disposed','196382AJfFMQ','merge','prstGeomAdjValues','_clearShapeConnectorHandlerObjects','VIEW_MAIN_LEFT','ShapeIcon','2230020DDThTe','isHitLine','popup','getBasicShapeRotateBound','onPointerMove$','SHEET_VIEWPORT_KEY','close','memo','removeLinePoints','resolveFormulaShapeAutoFitSize','onRendered','forEach','clip-adj-','set','defIds','completeEditing','SolidFill','drawWith','_formulaKey','registerClipDelegate','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','UniverUi','M2.6\x203.3L6.2\x208L2.6\x2012.7V3.3Z','Rect','Large','changeEnd$','transform','_releaseRenderCache','getMatrix','intercept','setShouldShowAdjust','getUnitId','isHorizontal','worldPoints','sheets-shape-ui.objectListPanel.open','WorksheetEditPermission','UniverSheetsPlugin','setConfig','shapeId','doc','prototype','ComponentManager','getConnectionSiteList','jsx','get','_calculateFreeEndpointAngle','formulaBinding','_transform','addObject','_handleFreeEndpointMove','sheet.shape.object-list.panel','UniverSheetsUi','length','createElement','visible','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','ShapeModel','canvas','@univerjs-pro/shape-editor-ui','_props','registerFeaturePasteHook','URL','EMPTY','setOnSavingEditorData','FOCUSING_SHAPE_TEXT_EDITOR','MenuItemType','_highlightedSiteIndex','data','UniverDrawingPlugin','colorChannel1','gradientEndColor','computeStraightConnectorLayout','drawingType','image','_baseShapeTop','ImageSourceTypeEnum','localToWorld','updateShapeFillImage','toDisposable','replace','UniverShapeEditorPlugin','_activeImageId','getSheetCommandTarget','ShapeDefaultConfig','IImageIoService','getSheetId','isLineShape','DrawingApplyType','_shapeUpdateListener','getActiveSheet','ISheetClipboardService','_setTransForm','update$','_isConnecting','6GKVJQu','point','@univerjs/sheets-ui','UniverSheetsShapePlugin','_lastEditingShapeKey','clipHeight','getSkeleton','SetDrawingArrangeCommand','unsubscribe','DrawingImageClipService','getSelectedObjectMap','VerticalAlign','_sheetsShapeService','calcAdjValues','_initCopyPaste','url(#$1','_sheetCanvasPopManagerService','_isHighlighted','sheet.operation.open-sheet-shape-format-panel','getZoomRatio','useState','0\x200\x2016\x2016','useReducer','create','@univerjs/ui','RemoveSheetsShapeMutation','_urlImageService','parent','adjustValues','switchMap','_applyFormulaAutoFitSize','sheetViewStartColumn','getTransformerByCreate','_baseWidth','ToggleSheetsShapeFlipCommand','fillImageSourceType','M14\x208H14.2','isHit','unitId','SELECTOR','useRef','sheet.shape.edit.panel','_initPrinting','extensionGroups','_getShapeAdjustPointListById','current','UniverProLicense','svg','keys','getEndConnectInfo','undo','focus$','SolidLine','refreshTransform','prepareShapeTextDocumentData','getBentTypeFromPoints','Shape','Observable','OBJECT_LIST_FLOATING_SECTION_ID','PictureFill','decorate','INSERT','xlink:href','setContextValue','_config','getParent','_registerComponents','@univerjs/engine-render','offsetX','_injector','copyType','_clearConnectionSites','_getOrCreateShapeModel','getUnitType','objects','getOwnPropertyDescriptor','SheetsShapeService','sheets-shape-ui.flipHorizontal','isRichText','plainShapeTextToDocumentData','worldPoint','getCurrentScrollState','_activeTargetShapeId','SetDrawingSelectedOperation','240823dJnXYN','UniverDocs','clearActiveDrawingObjects','UniverProSheetsShapeUi','getShapeDataById','_renderManagerService','clearAdjustValue','complete','attachRangeWithCoord','changing$','error','onStarting','ShapeTextEditorContainer','includes','Image','filter','SetSheetDrawingCommand','_generateCopyPasteMutations','getDrawingEditable','fillType','transformToDrawingPosition','_handleBasicShapeUpdateConnectorLineShape','setCursor','useEffect','ShapeRenderModeEnum','Injector','VIEW_MAIN_LEFT_TOP','_isOpenedShapeEditPanel','viewportScrollX','debounceRefreshControls','_initPermission','getDrawingByParam','entries','RibbonInsertGroup','iterator','fontFamily','getValue','UpdateSheetsShapeDataMutation','BUTTON','image-clip-adjust-point-','_sidebarService','_baseTop','useFormulaShapeToolbar','DRAWING_OBJECT_LAYER_INDEX','IConfigService','substring','shape-adjust-point-','_createControls','routeConnectorLineShape','dom','applyPoint','_drawingAddListener','strokeWidth','@univerjs/drawing','currentColor','marginTop','stroke','SheetScrollManagerService','OPERATION','SetDrawingApplyMutation','_attachAdjustEvent','M8\x206.2V7.8','index','_initEvents','createShapeFormulaDocument','displayName','UniverEngineRender','trim','UniverDrawingUIPlugin','remove$','endArrow','doc.image-clip.shape-picker.component','SheetsSelectionsService','srcRect','getTransformer','SheetPermissionCheckController','_isShouldShowDrawingShapeAdjust','getAdjustInfoByName','WorkbookEditablePermission','resolveShapeTextEditorWrapStrategy','_initCommands','FlipVerticalIcon','flip-horizontal-icon','default','DRAWING_TABLE','_addShapeAdjustControl','contentVerticalOffset','getFocusDrawings','_transformCalculateSrcRect','getMenuHiddenObservable','isDrawingObject','_cxtHandlerPointerUp','_initSheetChange','_localeService','renderDrawingShape','clearAdjustControls','disableObjectsEvent','none','getSkeletonParam','sheet.operation.close-sheet-shape-format-panel','size','isStartConnectorPoint','_formulaShapes','blockExecuteWithoutPermission','getPresentation','SheetCanvasPopManagerService','_registerGroupFeaturePasteHook','_activeAdjustInfo','_updateAdjustControlPositions','TOP','focusDrawing','724779bFSUyR','shapeModel','_baseLeft','_getZoomRatio','_sheetPrintInterceptorService','drawFormulaShapeAnimationLayers','Disposable','IRenderManagerService','add','Circle','getTextModel','UniverDrawing','resolveShapeTextEditorBehaviorShapeData','has','object','wrapStrategy','refreshAdjustControls','Documents','shapeType','ConnectorCoordinateTransform','assign','_clearShapeAdjustControls','_drawingRenderService','DrawingTypeEnum','_isDrawingShapePointDown','_disposePopups','ShapePickerDropdown','map','_activeAdjustPointList','_connectorObjects','_clearControls','DRAWING_CHART','PREDEFINED_HOOK_NAME','activeSheet$','viewportScrollY','subscribeEvent','getScene','getConnectionInfo','_createShapeAdjustControls','_currentUniverService','UniverSheetsDrawingPlugin','_baseDrawingRect','_unitId','left','setFillImage','slice','_attachConnectorObjectEvent','_getConnectionSiteAngle','name','getShapeTextData','Inject','sheets-shape-ui.flipVertical','version','ShapePickerPanel','LEFT','getBasicShapeRelation','from','updateConnectionDetection','_isImagePointerDown','DRAWING','_executeConnectedRouteResizeCommand','table','_generateCutPasteMutations','DocumentViewModel','_addControl','draw','DEFAULT_PASTE','UniverProEngineShape','useDependency','reverse','_connectionSiteObjects','unregister','resize','_loadShapePictureFill','lineShapeId','value','composeMatrix','Line','_updateSrcRectByTransform','160924eIlKwh','resetCursor','CommandType','setEditing','redo','ISheetDrawingService','_currentScene','cancelEditing','CUT','sheets-shape-ui.formatShape','isEditing','forwardRef','_contextService','getShapeModel','UUID','sectionCanvas','pluginName','IContextService','translate','_focusedDrawings','_registerMoveHandler','type','IUndoRedoService','_loadAndSetImage','sheet.command.menu-insert-shape','_initEditingParams','SheetShapeTextEditorContainer','symbol','getShapeTypeById','string','SheetInterceptorService','UniverLicensePlugin','worldRect','InsertSheetsShapeMutation','jsxs','scene','@univerjs/sheets-drawing-ui','preValue','_iconManager','_imageIoService','rotation','_getConnectPointInfo','touchDependencies','sheets-shape-ui.insertShape','_adjHandlerPointerUp','SheetSkeletonService','round','ShapeArrowTypeEnum','_shapeRenderController','values','_updateImageAdjValues','FormulaShapeAnimationController','20485RpPkIr','_openShapeEditPanel','ancestorTransform','_createShapePopupMenu','_updateShapeAdjustControls','shapeText','_adjHandlerPointerMove','getShapeType','packageName','UpdateConnectorRelationCommand','sheet.image-clip.shape-picker.component','_activeShapeId','COPY_TYPE','ShapeEditPanel','call','80ynMxJw','setSrcRect','_closeShapeEditPanel','getInterceptPoints','_hasReset','InsertShapeCommand','shape','_getImagePrstGeom','fill','getDrawingData','None','dispose','parse','start','IUniverInstanceService','getAdjustValueByName','onCommandExecuted','subscribe','1.0.0-alpha.8','adjHandleSize','_activeShapeInfo','M2.2\x208H3.8','beginPath','lineType','buildShapeTextDataUpdate','UniverDocsUi','_registerFocusChangeHandler','shouldClipShapeTextDocument','setShapeProps','attachTransformerTo','@univerjs/sheets-drawing','resourceCollector','_subUnitId','animationEnabled','IDrawingManagerService','UPDATE','prstGeom','_univerInstanceService','_activeShapeModel','getCurrentLastSelection','selectable','getDrawingVisible','getBatchRemoveOp','getDrawingEffectBounds','height','contentHeight','M13.4\x203.3L9.8\x208L13.4\x2012.7V3.3Z','getObjectListPanelTypeName','_handleConnectorPointerUp','adjName','onPointerDown$','stopPropagation','_currentConnectionTarget','@univerjs-pro/shape-editor','getBatchAddOp','DocSelectionManagerService','_drawingManagerService','_initMenu','_getImageDrawingInfo','_resetState','adjHandleStroke','DRAWING_GROUP','getObject','normal','_shapes','_sheetSkeletonService','flipY','DrawingCommonPanel','SheetSkeletonManagerService','@univerjs-pro/sheets-shape','refreshShapeFillImage','push','ICommandService','_insertingShapeKeys','_registerImageShapeClipDelegate','sin','IconManager','getEditing','Fragment','updateContext','getViewportByCell','insertGroupObject','open','_isStartAdjusting','1em','angle','group','mergeMenu','startWith','_getScrollInfo','_registerDrawingMoveHandler','idSuffix','_targetShapeId','transformByState','HorizontalAlign','use','_draggingConnectorId','shapeKey','_sheetInterceptorService','SheetsShapeUIMenuSchema','enableObjectsEvent','restore','_init','interceptor','_initializedShapePopupMenu','UniverRenderEnginePlugin','getImage','ISidebarService','react','1329342MDkjGp','DRAWING_DOM','text','_baseShapeWidth','ShapeLineTypeEnum','with','indexOf','Plugin','fillImageSource','getShapeData','410MIpYXe','_handleFreeEndpointPointerUp','_context','_shapeFormulaService','_cxnIndex','_registerIcons','register','@univerjs/drawing-ui','ShapeTextFloatToolbar','DocumentDataModel','IMenuManagerService','_cxtHandlerPointerMove','transformForAngle','onSavingEditorData$','_getDrawingRect','width','vertical','hidden','getObjectListPanelSectionIdForDrawingType','getState','presentation','_activeShapeAdjustPointList','ObjectLayersIcon','isRenderLinePointsMode','UNIVER_DOC','syncExecuteCommand','cos','UniverSheetsUIPlugin','stringify','next','getShapeTextRect','getStartConnectInfo','connection-site-','discreteRangeToRange','_baseShapeLeft','subUnitId','cxnPointRadius','_handleConnectedEndpointMove','featurePluginUpdateNotification','_findNearestConnectionSite','COMMAND','_reset','_addShapeConnectorHandlerObject','_clearPopups','RemoveSheetDrawingCommand','UpdateLineShapeResizeCommand','_drawSimpleText','shouldAllowShapeTextEditorHostSizeShrink','#1a73e8','_copyInfo','_clipService','getRealBound','drawing.operation.set-drawing-active','executeCommand','updateDocumentStyle','clip-','resolveShapeTextDocumentRenderLayout','cxnIndex','cxnPointStroke','invert','UniverDocsPlugin','_getSceneAndTransformerByDrawingSearch','Path','_registerOperations','formulaPresentation','refreshFormulaPresentation','beforeCommandExecuted','univer-box-border\x20univer-px-4\x20univer-text-sm','VIEW_MAIN_TOP','CROSSHAIR','isHighlighted','_initialize','_sheetPermissionCheckController','drawingId','registerCommand','DRAWING_IMAGE','_editingParams$','getDrawingPoints','makeDirty','getCurrentRangeDisable$','SHEET_SHAPE_UI_PLUGIN','M8\x2010.2V11.8','UniverUIPlugin','_findShapeAtPoint','object-layers-icon','sheet.operation.open-shape-object-list-panel','_shapeId','adjHandleFill','pipe','oKey','_moveConnectorWithShape','some','flipX','skeleton','_configService','setPresentation','getInverseCoord','description','_updateTransform','unit','isArray','connector-handler-','relation','DRAWING_SMART_ART','shape-text-','CopySheetCommand','find','changeStart$','LocaleService','_menuManagerService','Arrow','ShapeTextFloatMenuRenderControllerBase','_isStartConnectorPoint','_sheetBasicShapeConnectionPointController','BehaviorSubject','fontSize','@univerjs-pro/engine-shape','disposeWithMe','getDrawingOrder','order','changeShapeType','setShapeData','startConnectionDetection','div','top-center','save','_componentManager','M2\x204.75\x208\x201.8l6\x202.95L8\x207.7\x202\x204.75Z','registerRenderModule','_sheetDrawingService','startY','_sheetShapeAdjustController','IURLImageService','_popupMenuListener','_renderWithCache','#FFFFFF','getSheetBySheetId','Transform','_insertShapes','endConnectionDetection','getCurrentSkeleton','getDrawingSearch','sectionFloating','http://www.w3.org/2000/svg','sheets-shape-ui.config','GROUP','children','editingParams$','isConnectorShape','_sidebarDisposable','UniverSheetsDrawingUIPlugin','top','ShapeGroupEnum','sheetTransform','getBatchUpdateOp','clearControl$','toStringTag','FOCUSING_COMMON_DRAWINGS','getAdjustNames','normalizeShapeTextModel','RENDER_CLASS_TYPE','animateFormulaPresentation','cxnPointStrokeWidth','OTHERS','DRAWING_SHAPE','multiply','asObservable','transformToAxisAlignPosition','@univerjs/docs','shapeData','initShapePopupMenu','SheetDrawingAnchor','_commandExecutedListener','UniverProSheetsShape','path','UniverDocsUIPlugin','tag','onPointerUp$','UNIVER_SHEET','UniverSheetsDrawingUi','onSteady','UniverInstanceType','_getShapeInfo','deriveStateFromActiveSheet$','localeService','smartArt','constructor','sheet.shape.picker.component','UniverSheets','@univerjs/sheets','defineProperty','clipByShape','628swCgtR','targetShapeId','_shapeEditPanelVersion'];_0x19bc=function(){return _0x1d9f57;};return _0x19bc();}function _0x93c9(_0x453bb0,_0x5a236e){_0x453bb0=_0x453bb0-0x10b;const _0x19bcd9=_0x19bc();let _0x93c90d=_0x19bcd9[_0x453bb0];return _0x93c90d;}(function(_0x2586f0,_0x376f2f){const _0x41a4a6=_0x93c9,_0x144b5d=_0x2586f0();while(!![]){try{const _0x36c275=-parseInt(_0x41a4a6(0x127))/0x1+-parseInt(_0x41a4a6(0x2fd))/0x2*(-parseInt(_0x41a4a6(0x361))/0x3)+parseInt(_0x41a4a6(0x2a1))/0x4*(parseInt(_0x41a4a6(0x15b))/0x5)+-parseInt(_0x41a4a6(0x303))/0x6+parseInt(_0x41a4a6(0x1d7))/0x7+-parseInt(_0x41a4a6(0x16a))/0x8*(parseInt(_0x41a4a6(0x424))/0x9)+-parseInt(_0x41a4a6(0x1e1))/0xa*(-parseInt(_0x41a4a6(0x3b5))/0xb);if(_0x36c275===_0x376f2f)break;else _0x144b5d['push'](_0x144b5d['shift']());}catch(_0x13021e){_0x144b5d['push'](_0x144b5d['shift']());}}}(_0x19bc,0x8fdaa),function(_0xb75d89,_0x3558e6){const _0x502680=_0x93c9;typeof exports==_0x502680(0x432)&&typeof module<'u'?_0x3558e6(exports,require('@univerjs/ui'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/shape-editor'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/drawing'),require('@univerjs/engine-render'),require('@univerjs/sheets-ui'),require('rxjs'),require('@univerjs-pro/shape-editor-ui'),require('@univerjs/drawing-ui'),require('react/jsx-runtime'),require('@univerjs-pro/license'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets-drawing-ui'),require('react')):typeof define=='function'&&define['amd']?define(['exports',_0x502680(0x379),_0x502680(0x255),_0x502680(0x19f),_0x502680(0x1af),'@univerjs/core',_0x502680(0x29e),_0x502680(0x3ea),_0x502680(0x3a4),_0x502680(0x363),'rxjs',_0x502680(0x33d),_0x502680(0x1e8),'react/jsx-runtime','@univerjs-pro/license',_0x502680(0x289),_0x502680(0x2f9),_0x502680(0x188),_0x502680(0x14b),_0x502680(0x1d6)],_0x3558e6):(_0xb75d89=typeof globalThis<'u'?globalThis:_0xb75d89||self,_0x3558e6(_0xb75d89[_0x502680(0x3b8)]={},_0xb75d89[_0x502680(0x318)],_0xb75d89[_0x502680(0x11b)],_0xb75d89['UniverProShapeEditor'],_0xb75d89[_0x502680(0x28e)],_0xb75d89['UniverCore'],_0xb75d89[_0x502680(0x29d)],_0xb75d89[_0x502680(0x42f)],_0xb75d89[_0x502680(0x3f7)],_0xb75d89[_0x502680(0x336)],_0xb75d89['rxjs'],_0xb75d89['UniverProShapeEditorUi'],_0xb75d89['UniverDrawingUi'],_0xb75d89['React'],_0xb75d89[_0x502680(0x38f)],_0xb75d89[_0x502680(0x3b6)],_0xb75d89[_0x502680(0x183)],_0xb75d89['UniverSheetsDrawing'],_0xb75d89[_0x502680(0x294)],_0xb75d89['React']));}(this,function(_0x962624,_0x4b5551,_0x3d21cd,_0x32598e,_0x1b87be,_0x2eccf5,_0x2554f2,_0x215a9,_0x114b3e,_0x3c12d8,_0x124e3f,_0x25b599,_0x34fb64,_0x2dcc44,_0x3fe551,_0x4f7558,_0x2a24ec,_0x2a2650,_0x101b82,_0x33f0ff){const _0x1e3977=_0x93c9;Object[_0x1e3977(0x29f)](_0x962624,Symbol[_0x1e3977(0x27d)],{'value':'Module'});function _0x13b692(_0x3b58d1,_0x58c250){const _0x14d7cb=_0x1e3977;let _0x15cec3={};for(let _0x3eb233 of Object[_0x14d7cb(0x391)](_0x58c250)){let _0xa00a01=_0x58c250[_0x3eb233],_0x2160ae=_0x3b58d1[_0x3eb233];if(_0xa00a01!==void 0x0){if(_0x2160ae===void 0x0){_0x15cec3[_0x3eb233]=void 0x0;continue;}typeof _0xa00a01=='object'&&_0xa00a01&&!Array[_0x14d7cb(0x245)](_0xa00a01)&&typeof _0x2160ae==_0x14d7cb(0x432)&&_0x2160ae&&!Array[_0x14d7cb(0x245)](_0x2160ae)?_0x15cec3[_0x3eb233]=_0x13b692(_0x2160ae,_0xa00a01):_0x15cec3[_0x3eb233]=_0x2160ae;}}return _0x15cec3;}let _0x5a577b={'type':_0x2eccf5[_0x1e3977(0x129)][_0x1e3977(0x209)],'id':_0x1e3977(0x2bb),'handler':(_0x5a682d,_0x198b6e)=>{const _0x250e67=_0x1e3977;let _0x3449ab=_0x5a682d['get'](_0x1b87be['SheetsShapeService']),{unitId:_0x35e749,subUnitId:_0x43e097,shapeType:_0x49f9d8,shapeId:_0x29da79,shapeData:_0x564355,oldShapeJSON:_0x25a992}=_0x198b6e;if(!_0x3449ab[_0x250e67(0x134)](_0x35e749,_0x43e097,_0x29da79))return!0x1;let _0x5093d4=_0x5a682d[_0x250e67(0x32f)](_0x2eccf5[_0x250e67(0x1b2)]),_0x54534b=_0x5a682d['get'](_0x2eccf5[_0x250e67(0x13d)]),{oldShapeType:_0x5b9716,oldShapeData:_0x52f8d6={}}=_0x25a992,_0x8b37f1=_0x13b692(_0x52f8d6,_0x564355||{}),_0x112d47={'id':_0x1b87be['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x35e749,'subUnitId':_0x43e097,'shapeId':_0x29da79,'shapeType':_0x49f9d8,'shapeData':_0x564355}},_0x121117={'id':_0x1b87be[_0x250e67(0x3da)]['id'],'params':{'unitId':_0x35e749,'subUnitId':_0x43e097,'shapeId':_0x29da79,'shapeType':_0x5b9716,'shapeData':_0x8b37f1}};return _0x5093d4[_0x250e67(0x1fa)](_0x112d47['id'],_0x112d47['params'])?(_0x54534b['pushUndoRedo']({'unitID':_0x35e749,'undoMutations':[_0x121117],'redoMutations':[_0x112d47]}),!0x0):!0x1;}};function _0x3cdd2e(_0x456e8b,_0x4febf5,_0x136584,_0x396730,_0x5048c9,_0x267cfa){const _0x5c984d=_0x1e3977;let _0x344e56={'unitId':_0x4febf5,'subUnitId':_0x136584,'shapeId':_0x396730,'shapeData':_0x267cfa,'oldShapeJSON':_0x5048c9};return _0x456e8b[_0x5c984d(0x216)](_0x5a577b['id'],_0x344e56);}function _0x43c867(_0x1a6124,_0x2041e8,_0x289e41,_0x387471,_0x30a7be,_0x5061b2){const _0x17265b=_0x1e3977;let _0x1dc160={'unitId':_0x2041e8,'subUnitId':_0x289e41,'shapeId':_0x387471,'shapeData':_0x5061b2,'oldShapeJSON':_0x30a7be};return _0x1a6124[_0x17265b(0x216)](_0x5a577b['id'],_0x1dc160);}function _0x630d7d(_0x393f44){'@babel/helpers - typeof';const _0x11392f=_0x1e3977;return _0x630d7d=typeof Symbol==_0x11392f(0x2b3)&&typeof Symbol[_0x11392f(0x3d7)]==_0x11392f(0x142)?function(_0x46193f){return typeof _0x46193f;}:function(_0x410de8){const _0x4a822f=_0x11392f;return _0x410de8&&typeof Symbol==_0x4a822f(0x2b3)&&_0x410de8[_0x4a822f(0x29b)]===Symbol&&_0x410de8!==Symbol[_0x4a822f(0x32b)]?_0x4a822f(0x142):typeof _0x410de8;},_0x630d7d(_0x393f44);}function _0x5172cd(_0x49b5f8,_0x2de7a4){const _0x5a30fb=_0x1e3977;if(_0x630d7d(_0x49b5f8)!='object'||!_0x49b5f8)return _0x49b5f8;var _0x18f4f8=_0x49b5f8[Symbol['toPrimitive']];if(_0x18f4f8!==void 0x0){var _0xdb346=_0x18f4f8[_0x5a30fb(0x169)](_0x49b5f8,_0x2de7a4||_0x5a30fb(0x408));if(_0x630d7d(_0xdb346)!=_0x5a30fb(0x432))return _0xdb346;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2de7a4===_0x5a30fb(0x144)?String:Number)(_0x49b5f8);}function _0x1f9ce2(_0x35daec){const _0x136a6c=_0x1e3977;var _0x55c94f=_0x5172cd(_0x35daec,_0x136a6c(0x144));return _0x630d7d(_0x55c94f)==_0x136a6c(0x142)?_0x55c94f:_0x55c94f+'';}function _0x163ed0(_0x5381a3,_0x5b002f,_0x53187c){return(_0x5b002f=_0x1f9ce2(_0x5b002f))in _0x5381a3?Object['defineProperty'](_0x5381a3,_0x5b002f,{'value':_0x53187c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5381a3[_0x5b002f]=_0x53187c,_0x5381a3;}function _0x5c230c(_0x4b87ca,_0x17d0e1,_0x4b8c26){const _0x4123bd=_0x1e3977;var _0x480892;let _0xc7c029=(0x0,_0x25b599[_0x4123bd(0x430)])(_0x4b87ca,{..._0x17d0e1,'dataModel':{...(_0x480892=_0x17d0e1['dataModel'])==null?{}:_0x480892,..._0x4b8c26?{'doc':_0x4b8c26}:null}}),_0x25cd00=(0x0,_0x25b599[_0x4123bd(0x404)])(_0xc7c029);return{'clip':(0x0,_0x25b599[_0x4123bd(0x185)])(_0xc7c029,_0x25cd00),'wrapStrategy':_0x25cd00};}var _0x34cbbf=class extends _0x114b3e[_0x1e3977(0x399)]{constructor(_0x3f21c2,_0x52e889){const _0x8bf63d=_0x1e3977;super(_0x3f21c2,_0x52e889),_0x163ed0(this,_0x8bf63d(0x33e),void 0x0),_0x163ed0(this,_0x8bf63d(0x2ba),new _0x25b599[(_0x8bf63d(0x15a))](()=>this[_0x8bf63d(0x22f)](!0x0),()=>this['_applyFormulaAutoFitSize']())),_0x163ed0(this,_0x8bf63d(0x40d),!0x0),_0x163ed0(this,_0x8bf63d(0x2ea),_0x2eccf5['DrawingTypeEnum'][_0x8bf63d(0x285)]),_0x163ed0(this,_0x8bf63d(0x40f),!0x0),this[_0x8bf63d(0x33e)]={..._0x52e889},this[_0x8bf63d(0x2ba)]['setPresentation'](_0x52e889[_0x8bf63d(0x221)],_0x52e889[_0x8bf63d(0x282)]!==!0x1),this[_0x8bf63d(0x1d0)](),this[_0x8bf63d(0x37f)]();}[_0x1e3977(0x1d0)](){const _0x2835a3=_0x1e3977;this[_0x2835a3(0x2f3)]['subscribeEvent'](_0x5dc869=>{const _0x35a531=_0x2835a3;this[_0x35a531(0x126)](_0x5dc869);});}[_0x1e3977(0x2f2)](_0xe10f1){const _0x148f58=_0x1e3977;this[_0x148f58(0x33e)][_0x148f58(0x18e)]=_0xe10f1;}[_0x1e3977(0x12a)](_0x38108d){const _0x17ad46=_0x1e3977;this[_0x17ad46(0x33e)][_0x17ad46(0x131)]=_0x38108d,this[_0x17ad46(0x22f)](!0x0);}['setFormulaPresentation'](_0x111fa2,_0x12bbb7=!0x0){const _0x28e164=_0x1e3977;this[_0x28e164(0x2ba)][_0x28e164(0x240)](_0x111fa2,_0x12bbb7),this['_props'][_0x28e164(0x221)]=_0x111fa2,this[_0x28e164(0x37f)](),this['makeDirty'](!0x0);}['_applyFormulaAutoFitSize'](){const _0x4ca803=_0x1e3977;let _0x10b1c0=this[_0x4ca803(0x33e)][_0x4ca803(0x425)],_0x59a2db=_0x10b1c0[_0x4ca803(0x455)](),_0x37b0b3=(0x0,_0x25b599[_0x4ca803(0x280)])(_0x59a2db==null?void 0x0:_0x59a2db[_0x4ca803(0x2a9)]),_0x10ad4e=_0x37b0b3==null?void 0x0:_0x37b0b3['doc'],_0x16b94f=this[_0x4ca803(0x2ba)]['getAutoFitPresentations']();if(!_0x10ad4e||_0x16b94f[_0x4ca803(0x337)]===0x0)return;_0x10b1c0[_0x4ca803(0x1b9)]({'width':this[_0x4ca803(0x1f0)],'height':this[_0x4ca803(0x196)]});let _0x30340b=(0x0,_0x25b599[_0x4ca803(0x30c)])({'documentData':_0x16b94f[_0x4ca803(0x43f)](_0x28d796=>(0x0,_0x32598e[_0x4ca803(0x3f5)])(_0x10ad4e,_0x28d796)),'height':this['height'],'shapeData':_0x10b1c0[_0x4ca803(0x1e0)](),'textRect':_0x10b1c0['getShapeTextRect']({'left':0x0,'top':0x0,'width':this[_0x4ca803(0x1f0)],'height':this[_0x4ca803(0x196)]}),'width':this[_0x4ca803(0x1f0)]});if(_0x30340b){var _0x80f6cf;this[_0x4ca803(0x120)](_0x30340b[_0x4ca803(0x1f0)],_0x30340b['height']),(_0x80f6cf=this[_0x4ca803(0x448)]())==null||(_0x80f6cf=_0x80f6cf['getTransformer']())==null||_0x80f6cf[_0x4ca803(0x3d2)]();}}get[_0x1e3977(0x387)](){const _0x6cf21=_0x1e3977;return this[_0x6cf21(0x33e)][_0x6cf21(0x387)];}get[_0x1e3977(0x204)](){const _0x7e93fc=_0x1e3977;return this['_props'][_0x7e93fc(0x204)];}[_0x1e3977(0x126)](_0x5a758f){const _0x408f39=_0x1e3977;if(this[_0x408f39(0x33e)]['srcRect']==null||!this[_0x408f39(0x40d)])return;let {width:_0x56674d,height:_0xbb6240}=this,{width:_0x4c436b=0x0,height:_0x3fe4f6=0x0}=_0x5a758f[_0x408f39(0x14c)],{left:_0x917e21=0x0,top:_0x5df631=0x0,right:_0x49987d=0x0,bottom:_0x2f3d2e=0x0}=this[_0x408f39(0x33e)][_0x408f39(0x3fe)],_0x72b40=_0x917e21,_0x530109=_0x5df631,_0x59697f=_0x49987d,_0x16996d=_0x2f3d2e,_0x4ef9f4=!0x1;if(_0x4c436b!==0x0&&_0x4c436b!==_0x56674d){let _0x3d58cf=_0x917e21/_0x4c436b,_0x4cab22=_0x49987d/_0x4c436b;_0x72b40=_0x56674d*_0x3d58cf,_0x59697f=_0x56674d*_0x4cab22,_0x4ef9f4=!0x0;}if(_0x3fe4f6!==0x0&&_0x3fe4f6!==_0xbb6240){let _0x1fb4c2=_0x5df631/_0x3fe4f6,_0x196b0b=_0x2f3d2e/_0x3fe4f6;_0x530109=_0xbb6240*_0x1fb4c2,_0x16996d=_0xbb6240*_0x196b0b,_0x4ef9f4=!0x0;}_0x4ef9f4&&this['setSrcRect']({'left':_0x72b40,'top':_0x530109,'right':_0x59697f,'bottom':_0x16996d});}[_0x1e3977(0x16b)](_0x467426){const _0x5ed86d=_0x1e3977;this[_0x5ed86d(0x33e)][_0x5ed86d(0x3fe)]=_0x467426,this[_0x5ed86d(0x22f)](!0x0);}[_0x1e3977(0x450)](_0x5c8b9e){const _0x1d181e=_0x1e3977;this['_props']['image']=_0x5c8b9e,this[_0x1d181e(0x22f)](!0x0);}set[_0x1e3977(0x31d)](_0x2f6715){const _0xa48227=_0x1e3977;this[_0xa48227(0x332)]=_0x2f6715;}get[_0x1e3977(0x31d)](){const _0x1d88b1=_0x1e3977;this[_0x1d88b1(0x332)]||this[_0x1d88b1(0x35e)]();let _0x246b96=this[_0x1d88b1(0x332)][_0x1d88b1(0x2a8)]();return this[_0x1d88b1(0x1ed)](_0x246b96);}get[_0x1e3977(0x425)](){const _0x4ab39a=_0x1e3977;return this[_0x4ab39a(0x33e)][_0x4ab39a(0x425)];}get[_0x1e3977(0x329)](){const _0xca36fc=_0x1e3977;return this[_0xca36fc(0x33e)][_0xca36fc(0x329)];}get[_0x1e3977(0x2a5)](){const _0x34c3d8=_0x1e3977;return _0x114b3e[_0x34c3d8(0x281)][_0x34c3d8(0x2e2)];}['_draw'](_0x1f2a75,_0x4b6867,_0x34e7e0,_0x5465ea){const _0x54b602=_0x1e3977;let _0x3d14cc=this[_0x54b602(0x33e)]['shapeModel'];if(!_0x3d14cc||!_0x4b6867)return;let _0x1705d0=_0x34e7e0==null?this[_0x54b602(0x1f0)]:_0x34e7e0,_0x45dce8=_0x5465ea==null?this[_0x54b602(0x196)]:_0x5465ea,_0x5cbc8e={'shapeType':_0x3d14cc[_0x54b602(0x162)](),'width':_0x1705d0,'height':_0x45dce8},_0x4003a8={'renderMode':_0x3d21cd[_0x54b602(0x3cd)][_0x54b602(0x21f)],'oKey':this[_0x54b602(0x23a)],'image':this[_0x54b602(0x33e)][_0x54b602(0x34c)],'angle':this[_0x54b602(0x1bf)]};_0x3d14cc[_0x54b602(0x1b9)](_0x5cbc8e),_0x1f2a75[_0x54b602(0x25e)]();let _0x48f5ba={'top':0x0,'left':0x0,'width':_0x1705d0,'height':_0x45dce8},_0x43def7=_0x3d14cc[_0x54b602(0x195)](_0x48f5ba);_0x43def7?this[_0x54b602(0x267)](_0x1f2a75,_0x43def7,_0x28edb0=>{_0x3d14cc['render'](_0x28edb0,_0x48f5ba,_0x4003a8);}):(this[_0x54b602(0x31e)](),_0x3d14cc['render'](_0x1f2a75,_0x48f5ba,_0x4003a8)),_0x1f2a75[_0x54b602(0x1cf)]();let _0x12b189=_0x3d14cc[_0x54b602(0x455)](),_0x43ecc5=_0x3d14cc[_0x54b602(0x1ff)](_0x48f5ba),_0x1252a4=_0x3d14cc[_0x54b602(0x359)]();if(_0x12b189&&_0x43ecc5&&!_0x1252a4){_0x1f2a75[_0x54b602(0x25e)](),this[_0x54b602(0x1f4)]()[_0x54b602(0x23d)]&&_0x1f2a75['scale'](-0x1,0x1);let _0x4c6a4a=_0x1705d0/0x2,_0x142d4a=_0x45dce8/0x2;_0x1f2a75[_0x54b602(0x139)](-_0x4c6a4a,-_0x142d4a),_0x1f2a75[_0x54b602(0x180)](),this['_drawShapeText'](_0x1f2a75,_0x12b189,_0x43ecc5),_0x1f2a75[_0x54b602(0x1cf)]();}}[_0x1e3977(0x22e)](_0x268803){}['_drawShapeText'](_0x2ddbbe,_0x20f9b4,_0x2a9c6d){const _0x87d6c6=_0x1e3977;var _0x3b1efb;this[_0x87d6c6(0x33e)][_0x87d6c6(0x131)]||(!((_0x3b1efb=_0x20f9b4[_0x87d6c6(0x2a9)])!=null&&_0x3b1efb[_0x87d6c6(0x32a)])&&_0x87d6c6(0x3af)in _0x20f9b4&&_0x20f9b4[_0x87d6c6(0x3af)]===!0x1?this[_0x87d6c6(0x20f)](_0x2ddbbe,_0x20f9b4,_0x2a9c6d):this[_0x87d6c6(0x2d6)](_0x2ddbbe,_0x20f9b4,_0x2a9c6d));}[_0x1e3977(0x20f)](_0x2ce6c9,_0x207f66,_0x5968d8){const _0x5632d1=_0x1e3977;var _0x322315;this[_0x5632d1(0x2d6)](_0x2ce6c9,{..._0x207f66,'text':(_0x322315=_0x207f66[_0x5632d1(0x1d9)])==null?'':_0x322315,'dataModel':{'doc':(0x0,_0x25b599[_0x5632d1(0x3b0)])(_0x207f66,'sheets-shape-text-'+this['oKey'])}},_0x5968d8);}['_drawRichText'](_0x1430f7,_0x40729f,_0x39a12c){const _0x46e0ed=_0x1e3977;(0x0,_0x25b599[_0x46e0ed(0x429)])(_0x1430f7,this[_0x46e0ed(0x2ba)],(_0x728913,_0x22a978)=>{const _0x1e5f87=_0x46e0ed;this[_0x1e5f87(0x2d3)](_0x728913,_0x40729f,_0x39a12c,_0x22a978);});}[_0x1e3977(0x2d3)](_0x133d91,_0x51c1fd,_0x45fb01,_0x201ece){const _0x9c7989=_0x1e3977;var _0x2ea188,_0x1ccd3c;let _0x1d94ad=this['_props'][_0x9c7989(0x299)];if(!_0x51c1fd['dataModel']||!_0x1d94ad)return;let _0x498eb4=(0x0,_0x25b599[_0x9c7989(0x280)])(_0x51c1fd['dataModel']);if(!_0x498eb4)return;let _0x1e64e1=_0x498eb4[_0x9c7989(0x32a)];if(!_0x1e64e1)return;let _0x5a9c43=(0x0,_0x32598e[_0x9c7989(0x3f5)])(_0x1e64e1,_0x201ece),_0x512f48=(_0x2ea188=_0x498eb4['va'])==null?_0x2eccf5[_0x9c7989(0x36c)][_0x9c7989(0x422)]:_0x2ea188,_0x21bdcb=(_0x1ccd3c=_0x498eb4['ha'])==null?_0x2eccf5[_0x9c7989(0x1c8)][_0x9c7989(0x10e)]:_0x1ccd3c,_0x1680db=_0x5c230c(this[_0x9c7989(0x33e)][_0x9c7989(0x425)]['getShapeData'](),_0x51c1fd,_0x5a9c43),_0x2d0257=_0x51c1fd[_0x9c7989(0x323)],_0x459d62=new _0x2eccf5[(_0x9c7989(0x1ea))]((0x0,_0x25b599[_0x9c7989(0x397)])(_0x5a9c43,{'isHorizontal':_0x2d0257!==!0x1,'textRect':_0x45fb01,'verticalAlign':_0x512f48,'horizontalAlign':_0x21bdcb,'wrapStrategy':_0x1680db[_0x9c7989(0x433)]})),_0x3d846b=new _0x114b3e[(_0x9c7989(0x117))](_0x459d62),_0x3461fd=_0x114b3e[_0x9c7989(0x2bd)][_0x9c7989(0x378)](_0x3d846b,_0x1d94ad);_0x3461fd[_0x9c7989(0x2b7)]();let _0x1496b1=_0x3461fd['getActualSize']()['actualHeight'],_0xf2d1bf=(0x0,_0x25b599[_0x9c7989(0x219)])({'contentHeight':_0x1496b1,'verticalAlign':_0x512f48,'viewportHeight':_0x45fb01['height']});_0x459d62[_0x9c7989(0x217)]({'pageSize':{'width':_0x2d0257===!0x1?_0x45fb01[_0x9c7989(0x196)]:_0x45fb01[_0x9c7989(0x1f0)],'height':_0xf2d1bf[_0x9c7989(0x197)]}}),_0x459d62['updateDocumentDataMargin']({'t':_0xf2d1bf[_0x9c7989(0x3ec)]}),_0x3461fd[_0x9c7989(0x2b7)]();let _0x13942f=new _0x114b3e[(_0x9c7989(0x435))](_0x9c7989(0x249)+this[_0x9c7989(0x23a)],_0x3461fd,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x9c7989(0x22f)](!0x0)});_0x13942f[_0x9c7989(0x120)](_0x45fb01[_0x9c7989(0x1f0)],_0xf2d1bf[_0x9c7989(0x197)]),_0x133d91[_0x9c7989(0x25e)](),_0x133d91[_0x9c7989(0x2cb)](_0x45fb01[_0x9c7989(0x44f)],_0x45fb01[_0x9c7989(0x278)]),_0x1680db['clip']&&(_0x133d91[_0x9c7989(0x180)](),_0x133d91['rect'](0x0,_0xf2d1bf['clipTop'],_0x45fb01['width'],_0xf2d1bf[_0x9c7989(0x366)]),_0x133d91['clip']()),_0xf2d1bf[_0x9c7989(0x40b)]&&_0x133d91[_0x9c7989(0x2cb)](0x0,_0xf2d1bf[_0x9c7989(0x40b)]),_0x13942f[_0x9c7989(0x119)](_0x133d91),_0x133d91['restore'](),_0x13942f[_0x9c7989(0x175)](),_0x3461fd[_0x9c7989(0x175)](),_0x3d846b[_0x9c7989(0x175)](),_0x459d62[_0x9c7989(0x175)]();}[_0x1e3977(0x2b1)](_0x5a5b7b,_0x1c0dee,_0x4a57bd=!0x1){const _0x4c6ebc=_0x1e3977;if(!this[_0x4c6ebc(0x339)])return this[_0x4c6ebc(0x22f)](!0x1),this;let {width:_0x1541fe,height:_0x11a170,left:_0x14ee96,top:_0x523b8c}=this,_0x5e3381=this[_0x4c6ebc(0x214)]();if(_0x1541fe=_0x5e3381[_0x4c6ebc(0x1f0)],_0x11a170=_0x5e3381[_0x4c6ebc(0x196)],_0x14ee96=_0x5e3381['left'],_0x523b8c=_0x5e3381[_0x4c6ebc(0x278)],this[_0x4c6ebc(0x2c8)](_0x1c0dee)){let {top:_0x5b6b64,left:_0x11e09f,bottom:_0x5eeb25,right:_0x4e8a03}=_0x1c0dee['viewBound'];if(_0x1541fe+this['strokeWidth']+_0x14ee96<_0x11e09f||_0x4e8a03<_0x14ee96||_0x11a170+this[_0x4c6ebc(0x3e9)]+_0x523b8c<_0x5b6b64||_0x5eeb25<_0x523b8c)return this;}let _0x3a93d5=_0x14ee96+_0x1541fe/0x2,_0x44a101=_0x523b8c+_0x11a170/0x2,_0x2a20a4=this[_0x4c6ebc(0x31d)][_0x4c6ebc(0x31f)]();if(this[_0x4c6ebc(0x33e)]['isEditing']){let _0x4db7b5=this['getState'](),_0x1c1b8b=new _0x114b3e[(_0x4c6ebc(0x26a))]();_0x1c1b8b[_0x4c6ebc(0x124)]({..._0x4db7b5}),_0x2a20a4=_0x1c1b8b['getMatrix']();}return _0x5a5b7b[_0x4c6ebc(0x25e)](),this[_0x4c6ebc(0x33e)]['shapeModel'][_0x4c6ebc(0x1f8)]===!0x0||_0x5a5b7b[_0x4c6ebc(0x31d)](_0x2a20a4[0x0],_0x2a20a4[0x1],_0x2a20a4[0x2],_0x2a20a4[0x3],_0x3a93d5,_0x44a101),this[_0x4c6ebc(0x2c0)](_0x5a5b7b,_0x1c0dee,_0x1541fe,_0x11a170),_0x5a5b7b['restore'](),this[_0x4c6ebc(0x22f)](!0x1),this;}[_0x1e3977(0x241)](_0x23c898){const _0xbcb4d6=_0x1e3977;let {left:_0x39434b,top:_0x436684,width:_0x338579,height:_0x2782ec}=this[_0xbcb4d6(0x214)](),_0x576653=this[_0xbcb4d6(0x31d)][_0xbcb4d6(0x31f)](),_0x318e92=_0x39434b+_0x338579/0x2,_0x142fd4=_0x436684+_0x2782ec/0x2,_0x3e20ff=new _0x114b3e['Transform']([_0x576653[0x0],_0x576653[0x1],_0x576653[0x2],_0x576653[0x3],_0x318e92,_0x142fd4]),_0x189154=this[_0xbcb4d6(0x3a2)]();return(this[_0xbcb4d6(0x2b9)]&&(_0x189154==null?void 0x0:_0x189154[_0xbcb4d6(0x2a5)])===_0x114b3e[_0xbcb4d6(0x281)][_0xbcb4d6(0x272)]?_0x189154[_0xbcb4d6(0x15d)][_0xbcb4d6(0x286)](_0x3e20ff):_0x3e20ff)[_0xbcb4d6(0x21c)]()['applyPoint'](_0x23c898);}[_0x1e3977(0x386)](_0x31f9ee){const _0x3a7501=_0x1e3977;let {left:_0x3654fd,top:_0x57303c,width:_0x596a64,height:_0x3788e2}=this[_0x3a7501(0x214)](),_0x189811=_0x3654fd+_0x596a64/0x2,_0x24a1cb=_0x57303c+_0x3788e2/0x2,_0x3cfb21=this['transform']['getMatrix'](),_0x3e720e=new _0x114b3e[(_0x3a7501(0x26a))]([_0x3cfb21[0x0],_0x3cfb21[0x1],_0x3cfb21[0x2],_0x3cfb21[0x3],_0x189811,_0x24a1cb]),_0x190f21=this[_0x3a7501(0x3a2)](),_0x2d4cbb=(this[_0x3a7501(0x2b9)]&&(_0x190f21==null?void 0x0:_0x190f21[_0x3a7501(0x2a5)])===_0x114b3e['RENDER_CLASS_TYPE'][_0x3a7501(0x272)]?_0x190f21[_0x3a7501(0x15d)][_0x3a7501(0x286)](_0x3e720e):_0x3e720e)[_0x3a7501(0x21c)]()[_0x3a7501(0x3e7)](_0x31f9ee),_0x42ad5=_0x596a64/0x2,_0x4055bb=_0x3788e2/0x2,_0x454115=this[_0x3a7501(0x33e)][_0x3a7501(0x425)];return _0x454115&&_0x454115[_0x3a7501(0x359)]()?_0x454115[_0x3a7501(0x304)](_0x2d4cbb['x'],_0x2d4cbb['y'],_0x596a64,_0x3788e2):_0x2d4cbb['x']>=-_0x42ad5-this[_0x3a7501(0x3e9)]/0x2&&_0x2d4cbb['x']<=_0x42ad5+this[_0x3a7501(0x3e9)]/0x2&&_0x2d4cbb['y']>=-_0x4055bb-this[_0x3a7501(0x3e9)]/0x2&&_0x2d4cbb['y']<=_0x4055bb+this[_0x3a7501(0x3e9)]/0x2;}[_0x1e3977(0x175)](){const _0x44b3f6=_0x1e3977;this[_0x44b3f6(0x2ba)][_0x44b3f6(0x175)](),this[_0x44b3f6(0x33e)][_0x44b3f6(0x425)]=null,super['dispose']();}},_0x372832=class extends _0x114b3e['Shape']{constructor(_0x4d80c3,_0x169158){const _0x450226=_0x1e3977;super(_0x4d80c3,_0x169158),_0x163ed0(this,'_shapeId',null),_0x163ed0(this,_0x450226(0x2ca),null),_0x163ed0(this,'_unitId',null),_0x163ed0(this,_0x450226(0x18a),null),_0x169158&&this[_0x450226(0x186)](_0x169158);}[_0x1e3977(0x26e)](){const _0x3494e6=_0x1e3977;return{'unitId':this[_0x3494e6(0x44e)],'subUnitId':this[_0x3494e6(0x18a)],'drawingId':this[_0x3494e6(0x237)]};}['setShapeProps'](_0x3a981f){const _0x529e6c=_0x1e3977;_0x3a981f[_0x529e6c(0x329)]!==void 0x0&&(this['_shapeId']=_0x3a981f['shapeId']),_0x3a981f['adjName']!==void 0x0&&(this[_0x529e6c(0x2ca)]=_0x3a981f[_0x529e6c(0x19b)]),_0x3a981f['unitId']!==void 0x0&&(this[_0x529e6c(0x44e)]=_0x3a981f[_0x529e6c(0x387)]),_0x3a981f[_0x529e6c(0x204)]!==void 0x0&&(this[_0x529e6c(0x18a)]=_0x3a981f['subUnitId']),this[_0x529e6c(0x1c7)]({'width':_0x3a981f[_0x529e6c(0x1f0)],'height':_0x3a981f[_0x529e6c(0x196)]});}[_0x1e3977(0x2c0)](_0x387495){const _0xf9e943=_0x1e3977;_0x114b3e['Circle'][_0xf9e943(0x314)](_0x387495,{'radius':_0x3d21cd[_0xf9e943(0x356)][_0xf9e943(0x17d)],'fill':_0x3d21cd[_0xf9e943(0x356)][_0xf9e943(0x238)],'stroke':_0x3d21cd['ShapeDefaultConfig'][_0xf9e943(0x1a6)],'strokeWidth':0x1,'evented':!0x0});}};function _0x5a8c13(_0x17813e,_0x431ff6){return function(_0x569b0c,_0x11b964){_0x431ff6(_0x569b0c,_0x11b964,_0x17813e);};}function _0xba323d(_0x3a5abe,_0x3aacfa,_0x293857,_0x1d17c6){const _0x502669=_0x1e3977;var _0x1256c3=arguments[_0x502669(0x337)],_0x58810b=_0x1256c3<0x3?_0x3aacfa:_0x1d17c6===null?_0x1d17c6=Object[_0x502669(0x3ac)](_0x3aacfa,_0x293857):_0x1d17c6,_0x2ffa42;if(typeof Reflect=='object'&&typeof Reflect[_0x502669(0x39d)]==_0x502669(0x2b3))_0x58810b=Reflect[_0x502669(0x39d)](_0x3a5abe,_0x3aacfa,_0x293857,_0x1d17c6);else{for(var _0x978540=_0x3a5abe['length']-0x1;_0x978540>=0x0;_0x978540--)(_0x2ffa42=_0x3a5abe[_0x978540])&&(_0x58810b=(_0x1256c3<0x3?_0x2ffa42(_0x58810b):_0x1256c3>0x3?_0x2ffa42(_0x3aacfa,_0x293857,_0x58810b):_0x2ffa42(_0x3aacfa,_0x293857))||_0x58810b);}return _0x1256c3>0x3&&_0x58810b&&Object[_0x502669(0x29f)](_0x3aacfa,_0x293857,_0x58810b),_0x58810b;}let _0x1f5133=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x7cc7a3,_0x1176fd,_0x388e04,_0x58eaad,_0x266637,_0x4169df){const _0x24a093=_0x1e3977;super(),this['_drawingManagerService']=_0x7cc7a3,this['_sheetsShapeService']=_0x1176fd,this['_localeService']=_0x388e04,this[_0x24a093(0x14e)]=_0x58eaad,this[_0x24a093(0x37b)]=_0x266637,this['_shapeFormulaService']=_0x4169df,_0x163ed0(this,'_formulaShapes',new Map()),this[_0x24a093(0x256)](this['_shapeFormulaService']['presentationChanged$']['subscribe'](_0x306625=>{const _0x3b3272=_0x24a093;var _0x38c099;(_0x38c099=this['_formulaShapes']['get'](this[_0x3b3272(0x315)](_0x306625[_0x3b3272(0x387)],_0x306625['subUnitId'],_0x306625[_0x3b3272(0x329)])))==null||_0x38c099['forEach'](_0x38594f=>_0x38594f['setFormulaPresentation'](_0x306625[_0x3b3272(0x1f5)],_0x306625[_0x3b3272(0x18b)]));})),this[_0x24a093(0x256)](this[_0x24a093(0x1a2)][_0x24a093(0x3fa)][_0x24a093(0x17b)](_0x4832d4=>{const _0x1b93c0=_0x24a093;_0x4832d4[_0x1b93c0(0x30e)](_0x29ee60=>{const _0x389cf1=_0x1b93c0;this['_shapeFormulaService'][_0x389cf1(0x11f)]({'unitId':_0x29ee60[_0x389cf1(0x387)],'subUnitId':_0x29ee60[_0x389cf1(0x204)],'shapeId':_0x29ee60[_0x389cf1(0x22a)]}),this[_0x389cf1(0x41b)][_0x389cf1(0x2e3)](this[_0x389cf1(0x315)](_0x29ee60[_0x389cf1(0x387)],_0x29ee60[_0x389cf1(0x204)],_0x29ee60[_0x389cf1(0x22a)]));});}));}[_0x1e3977(0x413)](_0x3f5ce9,_0x49b9c9,_0x22a47b){const _0x1facd8=_0x1e3977;let {transform:_0x17c211,drawingType:_0x4f594e,srcRect:_0x5c3b7e,prstGeom:_0x248394,groupId:_0x1ec179,unitId:_0x237bdf,subUnitId:_0x337415,drawingId:_0x1a49bb,isMultiTransform:_0xe3f488,transforms:_0xc7816,hidden:_0x464bc9,selectable:_0x44b560}=_0x3f5ce9;if(_0x4f594e!==_0x2eccf5[_0x1facd8(0x43b)][_0x1facd8(0x285)]||!this[_0x1facd8(0x1a2)][_0x1facd8(0x193)]()||_0x17c211==null)return;let _0x10a8cf=this[_0x1facd8(0x1a2)][_0x1facd8(0x3c7)]();_0x10a8cf&&_0x49b9c9['initTransformer'](_0x25b599['SHAPE_EDITOR_TRANSFORMER_CONFIG']);let _0x1a022f=_0xe3f488&&_0xc7816?_0xc7816:[_0x17c211],_0xd43528=[];for(let _0x5adaf1 of _0x1a022f){let {left:_0x5eb6b1,top:_0x10d36a,width:_0x1b14c5,height:_0x2c5012,angle:_0x1bbf40,flipX:_0x499b1c,flipY:_0x57d23b,skewX:_0x350df6,skewY:_0x45ed67}=_0x5adaf1,_0x2edc58=_0x1a022f[_0x1facd8(0x1dd)](_0x5adaf1),_0x5e5c3c=(0x0,_0x215a9[_0x1facd8(0x2ee)])({'unitId':_0x237bdf,'subUnitId':_0x337415,'drawingId':_0x1a49bb},_0xe3f488?_0x2edc58:void 0x0),_0x5ab780=_0x49b9c9[_0x1facd8(0x2a4)](_0x5e5c3c);if(_0x5ab780!=null){let _0x598ea8={'unitId':_0x237bdf,'subUnitId':_0x337415,'shapeId':_0x1a49bb};_0x5ab780 instanceof _0x34cbbf&&this[_0x1facd8(0x222)](_0x5ab780,_0x598ea8),_0x5ab780[_0x1facd8(0x1c7)]({'left':_0x5eb6b1,'top':_0x10d36a,'width':_0x1b14c5,'height':_0x2c5012,'angle':_0x1bbf40,'flipX':_0x499b1c,'flipY':_0x57d23b,'skewX':_0x350df6,'skewY':_0x45ed67});continue;}let _0x13302d=this[_0x1facd8(0x1a2)][_0x1facd8(0x257)](_0x237bdf,_0x337415),_0x136862=_0x13302d[_0x1facd8(0x1dd)](_0x1a49bb);if(_0x49b9c9['getObjectIncludeInGroup'](_0x5e5c3c)||!this[_0x1facd8(0x1a2)][_0x1facd8(0x193)]())continue;let _0x10575f=this['_sheetsShapeService'][_0x1facd8(0x134)](_0x237bdf,_0x337415,_0x1a49bb);if(!_0x10575f)continue;let _0x4838ce=(0x0,_0x3d21cd[_0x1facd8(0x275)])(_0x10575f[_0x1facd8(0x162)]()),_0x2b76f3=_0x10575f[_0x1facd8(0x1e0)]()[_0x1facd8(0x331)],_0x39fea5={'unitId':_0x237bdf,'subUnitId':_0x337415,'shapeId':_0x1a49bb};_0x2b76f3&&this[_0x1facd8(0x1e4)][_0x1facd8(0x1e7)](_0x39fea5,_0x2b76f3);let _0x295e5f=new _0x34cbbf(_0x5e5c3c,{..._0x4838ce?{..._0x5adaf1,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x5adaf1},'zIndex':_0x136862===-0x1?_0x13302d['length']-0x1:_0x136862,'shapeModel':_0x10575f,'localeService':this[_0x1facd8(0x412)],'shapeId':_0x1a49bb,'unitId':_0x237bdf,'subUnitId':_0x337415,'visible':_0x464bc9!==!0x0,'evented':_0x44b560!==!0x1,'formulaPresentation':_0x2b76f3?this[_0x1facd8(0x1e4)]['getPresentation'](_0x39fea5):void 0x0,'animateFormulaPresentation':(_0x2b76f3==null?void 0x0:_0x2b76f3[_0x1facd8(0x18b)])!==!0x1});if(_0x2b76f3){var _0x288df8;let _0x52203e=this[_0x1facd8(0x315)](_0x237bdf,_0x337415,_0x1a49bb),_0x18aa22=(_0x288df8=this['_formulaShapes'][_0x1facd8(0x32f)](_0x52203e))==null?new Set():_0x288df8;_0x18aa22[_0x1facd8(0x42c)](_0x295e5f),this[_0x1facd8(0x41b)]['set'](_0x52203e,_0x18aa22);}_0x49b9c9['addObject'](_0x295e5f,_0x114b3e[_0x1facd8(0x3e0)]),_0x10a8cf&&_0x49b9c9[_0x1facd8(0x187)](_0x295e5f),_0x1ec179&&(0x0,_0x34fb64[_0x1facd8(0x1bb)])({'drawingId':_0x1ec179,'unitId':_0x237bdf,'subUnitId':_0x337415},_0x295e5f,_0x49b9c9,this[_0x1facd8(0x1a2)]),_0x248394!=null&&_0x295e5f[_0x1facd8(0x2f2)](_0x248394),_0x5c3b7e!=null&&_0x295e5f[_0x1facd8(0x16b)](_0x5c3b7e);let _0x77c1a5=this[_0x1facd8(0x121)](_0x295e5f,_0x10575f[_0x1facd8(0x1e0)]());if(_0x77c1a5){var _0xb3943d;_0x22a47b==null||(_0xb3943d=_0x22a47b[_0x1facd8(0x189)])==null||_0xb3943d['add'](_0x77c1a5);}_0xd43528[_0x1facd8(0x1b1)](_0x295e5f);}return _0xd43528;}[_0x1e3977(0x315)](_0x3f3c0e,_0x508d57,_0x486d62){return _0x3f3c0e+'\x00'+_0x508d57+'\x00'+_0x486d62;}[_0x1e3977(0x222)](_0x213a8b,_0xd01215){const _0x9ddbf4=_0x1e3977;let _0x3da541=this[_0x9ddbf4(0x36d)]['getShapeModel'](_0xd01215[_0x9ddbf4(0x387)],_0xd01215[_0x9ddbf4(0x204)],_0xd01215[_0x9ddbf4(0x329)]),_0xcfac7d=_0x3da541==null?void 0x0:_0x3da541[_0x9ddbf4(0x1e0)]()[_0x9ddbf4(0x331)],_0x5a736c=this['_formulaKey'](_0xd01215[_0x9ddbf4(0x387)],_0xd01215[_0x9ddbf4(0x204)],_0xd01215['shapeId']);if(_0xcfac7d){var _0x42188c;this[_0x9ddbf4(0x1e4)]['register'](_0xd01215,_0xcfac7d);let _0x2a8038=(_0x42188c=this[_0x9ddbf4(0x41b)][_0x9ddbf4(0x32f)](_0x5a736c))==null?new Set():_0x42188c;_0x2a8038[_0x9ddbf4(0x42c)](_0x213a8b),this[_0x9ddbf4(0x41b)]['set'](_0x5a736c,_0x2a8038);}else{var _0x6325e3;this['_shapeFormulaService'][_0x9ddbf4(0x11f)](_0xd01215),(_0x6325e3=this['_formulaShapes']['get'](_0x5a736c))==null||_0x6325e3['delete'](_0x213a8b);}_0x213a8b[_0x9ddbf4(0x2e4)](_0xcfac7d?this[_0x9ddbf4(0x1e4)][_0x9ddbf4(0x41d)](_0xd01215):void 0x0,(_0xcfac7d==null?void 0x0:_0xcfac7d[_0x9ddbf4(0x18b)])!==!0x1);}[_0x1e3977(0x1b0)](_0x41e5f0){const _0x52796e=_0x1e3977;let _0x269078=_0x41e5f0[_0x52796e(0x425)]['getShapeData'](),_0x1620b4=_0x269078[_0x52796e(0x172)];if(!_0x1620b4||_0x1620b4['fillType']!==_0x3d21cd['ShapeFillEnum'][_0x52796e(0x39c)]||!_0x1620b4[_0x52796e(0x1df)]){_0x41e5f0['setFillImage'](void 0x0);return;}this[_0x52796e(0x121)](_0x41e5f0,_0x269078);}[_0x1e3977(0x121)](_0x1aa9a6,_0x7660cf){const _0xd585db=_0x1e3977;var _0x499816;let _0x92f818=_0x7660cf['fill'];if(!_0x92f818||_0x92f818[_0xd585db(0x3c8)]!==_0x3d21cd['ShapeFillEnum']['PictureFill']||!_0x92f818[_0xd585db(0x1df)])return;let _0x22875b=_0x92f818['fillImageSource'],_0x4c60ea=(_0x499816=_0x92f818[_0xd585db(0x384)])==null?_0x3d21cd[_0xd585db(0x34e)][_0xd585db(0x340)]:_0x499816,_0x50ed12=this['_imageIoService'][_0xd585db(0x2ac)](_0x22875b,_0x4c60ea);if(_0x50ed12){_0x1aa9a6[_0xd585db(0x450)](_0x50ed12);return;}return this[_0xd585db(0x13e)](_0x1aa9a6,_0x22875b,_0x4c60ea);}async[_0x1e3977(0x13e)](_0x5aea33,_0x5ab6db,_0x88be6d){const _0x4b0562=_0x1e3977;let _0x1a1e47;try{if(_0x88be6d===_0x3d21cd[_0x4b0562(0x34e)][_0x4b0562(0x135)])_0x1a1e47=await this['_imageIoService'][_0x4b0562(0x1d4)](_0x5ab6db);else{if(_0x88be6d===_0x3d21cd[_0x4b0562(0x34e)][_0x4b0562(0x340)])try{_0x1a1e47=await this[_0x4b0562(0x37b)]['getImage'](_0x5ab6db);}catch{_0x1a1e47=_0x5ab6db;}else _0x1a1e47=_0x5ab6db;}}catch(_0x2b0b43){console[_0x4b0562(0x3bf)](_0x4b0562(0x33a),_0x2b0b43);return;}await new Promise(_0x5b6968=>{const _0x493ad9=_0x4b0562;let _0x5387a7=new window[(_0x493ad9(0x3c3))]();_0x5387a7['onload']=()=>{this['_imageIoService']['addImageSourceCache'](_0x5ab6db,_0x88be6d,_0x5387a7),_0x5aea33['setFillImage'](_0x5387a7),_0x5b6968();},_0x5387a7[_0x493ad9(0x2d7)]=()=>{const _0x38a65d=_0x493ad9;console[_0x38a65d(0x3bf)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x5ab6db),_0x5b6968();},_0x5387a7['src']=_0x1a1e47;});}};_0x1f5133=_0xba323d([_0x5a8c13(0x0,_0x215a9['IDrawingManagerService']),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be['SheetsShapeService'])),_0x5a8c13(0x2,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2eccf5['LocaleService'])),_0x5a8c13(0x3,_0x2eccf5[_0x1e3977(0x357)]),_0x5a8c13(0x4,_0x2eccf5[_0x1e3977(0x265)]),_0x5a8c13(0x5,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x32598e['ShapeFormulaService']))],_0x1f5133);let _0x34fe5c=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x2793c6,_0x30ff20,_0x16c642,_0x4f2b27,_0xc170d2,_0x6227e3){const _0x3df55f=_0x1e3977;super(),this[_0x3df55f(0x1a2)]=_0x2793c6,this['_sheetsShapeService']=_0x30ff20,this[_0x3df55f(0x3ba)]=_0x16c642,this['_sheetDrawingShapeRenderController']=_0x4f2b27,this[_0x3df55f(0x18f)]=_0xc170d2,this[_0x3df55f(0x2dc)]=_0x6227e3,_0x163ed0(this,'_activeShapeId',null),_0x163ed0(this,_0x3df55f(0x44e),null),_0x163ed0(this,_0x3df55f(0x18a),null),_0x163ed0(this,_0x3df55f(0x1f6),void 0x0),_0x163ed0(this,_0x3df55f(0x1aa),[]),_0x163ed0(this,_0x3df55f(0x203),0x0),_0x163ed0(this,_0x3df55f(0x34d),0x0),_0x163ed0(this,'_baseShapeWidth',0x0),_0x163ed0(this,'_baseShapeHeight',0x0),_0x163ed0(this,'_isStartAdjusting',!0x1),_0x163ed0(this,_0x3df55f(0x420),void 0x0),_0x163ed0(this,_0x3df55f(0x190),void 0x0),_0x163ed0(this,'_adjHandlerPointerMove',void 0x0),_0x163ed0(this,_0x3df55f(0x153),void 0x0),_0x163ed0(this,_0x3df55f(0x401),!0x1),this[_0x3df55f(0x2f6)](),this[_0x3df55f(0x1c4)]();}['_getShapeAdjustPointListById'](_0x74bd0c,_0x305b5b,_0x1f33fc){const _0xfdde03=_0x1e3977;let _0x22b00f=this[_0xfdde03(0x36d)][_0xfdde03(0x134)](_0x74bd0c,_0x305b5b,_0x1f33fc);if(_0x22b00f)return _0x22b00f['getDrawingPoints']();}[_0x1e3977(0x414)](){const _0x9adce5=_0x1e3977;this[_0x9adce5(0x439)]();}[_0x1e3977(0x434)](){const _0x4acf64=_0x1e3977;this[_0x4acf64(0x15f)](!0x0);}['setShouldShowAdjust'](_0x28914b){const _0x276344=_0x1e3977;this[_0x276344(0x401)]=_0x28914b;}[_0x1e3977(0x2c6)](_0x30c886,_0x1da24d,_0x211e12,_0x5a9255){let _0x342997=this['_sheetsShapeService']['getShapeModel'](_0x30c886,_0x1da24d,_0x211e12);if(_0x342997)return _0x342997['getAdjustInfoByName'](_0x5a9255);}[_0x1e3977(0x44a)](_0x2a3067=!0x1){const _0x5203b3=_0x1e3977;if(this[_0x5203b3(0x44e)]===null||this[_0x5203b3(0x18a)]===null||this[_0x5203b3(0x166)]===null)return;let _0x5528dc=this[_0x5203b3(0x3ba)][_0x5203b3(0x2be)](this['_unitId']);if(!_0x5528dc||!_0x5528dc[_0x5203b3(0x1dc)](_0x3c12d8['SheetSkeletonManagerService'])[_0x5203b3(0x26d)]())return;let {scene:_0x310db4}=_0x5528dc,_0xad02ce={'unitId':this[_0x5203b3(0x44e)],'subUnitId':this[_0x5203b3(0x18a)],'drawingId':this[_0x5203b3(0x166)]},_0x51ddfa=this[_0x5203b3(0x1a2)][_0x5203b3(0x3d4)](_0xad02ce),{transform:_0x307b5b}=_0x51ddfa;if(!_0x307b5b||_0x51ddfa['drawingType']!==_0x2eccf5[_0x5203b3(0x43b)]['DRAWING_SHAPE'])return;let {left:_0x105aad,top:_0x2196e5,width:_0x32ca17,height:_0x17a22d,flipX:_0x405ece,flipY:_0x5507f2,angle:_0x406133=0x0}=_0x307b5b;if(_0x105aad===void 0x0||_0x2196e5===void 0x0)return;if(_0x2a3067){let _0x581dd5=this['_sheetsShapeService']['getShapeModel'](this[_0x5203b3(0x44e)],this[_0x5203b3(0x18a)],this[_0x5203b3(0x166)]);_0x581dd5==null||_0x581dd5[_0x5203b3(0x1b9)]({'width':_0x32ca17==null?0x0:_0x32ca17,'height':_0x17a22d==null?0x0:_0x17a22d}),this[_0x5203b3(0x1f6)]=_0x581dd5==null?void 0x0:_0x581dd5[_0x5203b3(0x22e)]();}let _0x297557=this[_0x5203b3(0x1f6)];for(let _0x4c7b38=0x0;_0x4c7b38<_0x297557['length'];_0x4c7b38++){let _0x5f2b46=_0x297557[_0x4c7b38],_0x110da8=_0x5f2b46['x'],_0x1f11b8=_0x5f2b46['y'];if(_0x405ece&&(_0x110da8=(_0x32ca17||0x0)-_0x110da8),_0x5507f2&&(_0x1f11b8=(_0x17a22d||0x0)-_0x1f11b8),_0x406133!==0x0){let _0x533c9f=(_0x32ca17||0x0)/0x2,_0x40f04a=(_0x17a22d||0x0)/0x2,_0x1c1df6=_0x406133*Math['PI']/0xb4,_0x1934f9=Math[_0x5203b3(0x1fb)](_0x1c1df6),_0x2a3d90=Math['sin'](_0x1c1df6),_0x53a019=_0x110da8-_0x533c9f,_0x328ff2=_0x1f11b8-_0x40f04a;_0x110da8=_0x533c9f+(_0x53a019*_0x1934f9-_0x328ff2*_0x2a3d90),_0x1f11b8=_0x40f04a+(_0x53a019*_0x2a3d90+_0x328ff2*_0x1934f9);}let _0x2de920={'x':_0x110da8,'y':_0x1f11b8,'adjName':_0x5f2b46[_0x5203b3(0x19b)]};this[_0x5203b3(0x40a)](_0x310db4,_0x2de920,_0x2de920[_0x5203b3(0x19b)],_0x105aad,_0x2196e5,this[_0x5203b3(0x44e)],this[_0x5203b3(0x18a)]);}}[_0x1e3977(0x15f)](_0x26e31e=!0x1){const _0xd424ac=_0x1e3977;_0x26e31e&&(this['_clearShapeAdjustControls'](),this[_0xd424ac(0x44a)](_0x26e31e));}[_0x1e3977(0x40a)](_0x5b9d3a,_0x26c5ad,_0x219dab,_0x6c0b6d,_0x2b9f66,_0x33f97c,_0xd9aea9){const _0xc050ee=_0x1e3977;if(!this[_0xc050ee(0x166)])return;let _0x41d2ec=_0x5b9d3a['getObjectIncludeInGroup'](_0xc050ee(0x3e3)+this[_0xc050ee(0x166)]+'-'+_0x219dab);if(_0x41d2ec){_0x41d2ec[_0xc050ee(0x1c7)]({'left':_0x26c5ad['x']+_0x6c0b6d-_0x3d21cd[_0xc050ee(0x356)][_0xc050ee(0x17d)],'top':_0x26c5ad['y']+_0x2b9f66-_0x3d21cd['ShapeDefaultConfig'][_0xc050ee(0x17d)]});return;}let _0x43319b={'left':_0x26c5ad['x']+_0x6c0b6d-_0x3d21cd['ShapeDefaultConfig'][_0xc050ee(0x17d)],'top':_0x26c5ad['y']+_0x2b9f66-_0x3d21cd[_0xc050ee(0x356)][_0xc050ee(0x17d)],'adjName':_0x219dab,'shapeId':this[_0xc050ee(0x166)],'unitId':_0x33f97c,'subUnitId':_0xd9aea9,'width':_0x3d21cd[_0xc050ee(0x356)][_0xc050ee(0x17d)]+0x8,'height':_0x3d21cd[_0xc050ee(0x356)][_0xc050ee(0x17d)]+0x8,'zIndex':_0x114b3e[_0xc050ee(0x3e0)]+0x1,'evented':!0x0},_0x305cdc=new _0x372832(_0xc050ee(0x3e3)+this[_0xc050ee(0x166)]+'-'+_0x219dab,_0x43319b);this[_0xc050ee(0x1aa)][_0xc050ee(0x1b1)](_0x305cdc),this[_0xc050ee(0x3f1)](_0x305cdc,_0x5b9d3a,_0x219dab),_0x5b9d3a[_0xc050ee(0x333)](_0x305cdc,_0x114b3e['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x1e3977(0x439)](){const _0x2267e6=_0x1e3977;this[_0x2267e6(0x1aa)]['length']!==0x0&&(this[_0x2267e6(0x1aa)][_0x2267e6(0x30e)](_0x1d5908=>{const _0xaa6563=_0x2267e6;_0x1d5908[_0xaa6563(0x175)]();}),this['_shapes']=[]);}[_0x1e3977(0x421)](){const _0x441fc8=_0x1e3977;this[_0x441fc8(0x44a)]();}['_getScrollInfo'](_0x53b908,_0x3e6b1c){const _0x5bfecc=_0x1e3977;var _0x361dc7;let _0x356eb9={'x':0x0,'y':0x0};if(!_0x53b908||!_0x3e6b1c)return _0x356eb9;let _0x482c33=this[_0x5bfecc(0x3ba)][_0x5bfecc(0x2be)](_0x53b908);if(!_0x482c33||!_0x482c33[_0x5bfecc(0x1dc)](_0x3c12d8[_0x5bfecc(0x1ae)])[_0x5bfecc(0x367)](_0x3e6b1c))return _0x356eb9;let _0x592dfd=_0x482c33[_0x5bfecc(0x1dc)](_0x3c12d8[_0x5bfecc(0x3ee)]),_0x276833=_0x592dfd==null?void 0x0:_0x592dfd['getCurrentScrollState']();if(!_0x276833)return _0x356eb9;let _0x131f6d=(_0x361dc7=this[_0x5bfecc(0x18f)][_0x5bfecc(0x2f8)](_0x53b908))==null?void 0x0:_0x361dc7[_0x5bfecc(0x269)](_0x3e6b1c);if(!_0x131f6d)return _0x356eb9;let _0x337b57=(0x0,_0x3c12d8[_0x5bfecc(0x1ba)])(_0x276833['sheetViewStartRow'],_0x276833[_0x5bfecc(0x380)],_0x482c33['scene'],_0x131f6d);return _0x337b57?{'x':_0x337b57[_0x5bfecc(0x3d1)],'y':_0x337b57[_0x5bfecc(0x446)]}:_0x356eb9;}[_0x1e3977(0x427)](_0x2cb34e,_0x4fd24e){const _0x238fe9=_0x1e3977;var _0x4c7ca3,_0x35e6ed;let _0x2faecd=(_0x4c7ca3=this['_univerInstanceService'][_0x238fe9(0x2f8)](_0x2cb34e))==null?void 0x0:_0x4c7ca3[_0x238fe9(0x269)](_0x4fd24e);return(_0x35e6ed=_0x2faecd==null?void 0x0:_0x2faecd[_0x238fe9(0x374)]())==null?0x1:_0x35e6ed;}[_0x1e3977(0x3f1)](_0xced445,_0x9f3b33,_0x42102f){const _0x2dfe75=_0x1e3977;this[_0x2dfe75(0x256)]((0x0,_0x2eccf5['toDisposable'])(_0xced445[_0x2dfe75(0x19c)][_0x2dfe75(0x447)]((_0x105c61,_0xe7af46)=>{const _0x414260=_0x2dfe75;var _0x375d6,_0x4d9b4d,_0x4d4d93,_0x1288c8,_0x6990cc;let _0x19582a=_0xced445[_0x414260(0x26e)]();this[_0x414260(0x420)]=this['_getShapeAdjustInfosById'](_0x19582a[_0x414260(0x387)],_0x19582a[_0x414260(0x204)],_0x19582a[_0x414260(0x22a)],_0x42102f),this[_0x414260(0x190)]=this[_0x414260(0x36d)][_0x414260(0x134)](_0x19582a[_0x414260(0x387)],_0x19582a[_0x414260(0x204)],_0x19582a[_0x414260(0x22a)]);let _0x8da3f2=this[_0x414260(0x1a2)][_0x414260(0x3d4)]({'unitId':this[_0x414260(0x44e)],'subUnitId':this[_0x414260(0x18a)],'drawingId':this['_activeShapeId']}),{transform:_0x4f1a46}=_0x8da3f2;if(_0x4f1a46){let {left:_0x312d77,top:_0x243d56,width:_0x2399b6,height:_0x8f7753}=_0x4f1a46;this['_baseShapeLeft']=_0x312d77||0x0,this[_0x414260(0x34d)]=_0x243d56||0x0,this['_baseShapeWidth']=_0x2399b6||0x0,this[_0x414260(0x2cd)]=_0x8f7753||0x0;}let _0x1be396=!!((_0x375d6=_0x8da3f2[_0x414260(0x31d)])!=null&&_0x375d6[_0x414260(0x23d)]),_0x3565d3=!!((_0x4d9b4d=_0x8da3f2['transform'])!=null&&_0x4d9b4d[_0x414260(0x1ac)]),_0x1d74d3=((_0x4d4d93=_0x8da3f2[_0x414260(0x31d)])==null?void 0x0:_0x4d4d93[_0x414260(0x1bf)])||0x0;this['_isStartAdjusting']=!0x0,_0x9f3b33['disableObjectsEvent']();let _0x4ec960={...(_0x1288c8=(_0x6990cc=this[_0x414260(0x420)])==null?void 0x0:_0x6990cc['currentAdjustValues'])==null?{}:_0x1288c8};this[_0x414260(0x161)]=_0x9f3b33[_0x414260(0x307)]['subscribeEvent']((_0x9bd5bf,_0x26707d)=>{const _0x3490f2=_0x414260;if(!this[_0x3490f2(0x1bd)])return;let {offsetX:_0xdca601,offsetY:_0x63cbcc}=_0x9bd5bf,_0x3bf5e6=this[_0x3490f2(0x420)];if(this[_0x3490f2(0x190)]&&_0x3bf5e6){_0x9f3b33[_0x3490f2(0x415)](),_0x9f3b33[_0x3490f2(0x3cb)](_0x114b3e[_0x3490f2(0x2c2)][_0x3490f2(0x226)]);let _0x96eaae={'left':0x0,'top':0x0,'width':this[_0x3490f2(0x1da)],'height':this[_0x3490f2(0x2cd)]},_0x4fe392=this[_0x3490f2(0x1c3)](this['_unitId'],this['_subUnitId']),_0x53a14e=this['_getZoomRatio'](this[_0x3490f2(0x44e)],this[_0x3490f2(0x18a)]),_0x59dc85=_0xdca601/_0x53a14e+_0x4fe392['x']-this['_baseShapeLeft'],_0x1a8da8=_0x63cbcc/_0x53a14e+_0x4fe392['y']-this[_0x3490f2(0x34d)];if(_0x1d74d3!==0x0){let _0x33ab50=this[_0x3490f2(0x1da)]/0x2,_0x563370=this['_baseShapeHeight']/0x2,_0x437a23=_0x1d74d3*Math['PI']/0xb4,_0x2071ae=Math[_0x3490f2(0x1fb)](_0x437a23),_0x36888b=Math[_0x3490f2(0x1b5)](_0x437a23),_0x10d6a2=_0x59dc85-_0x33ab50,_0x239ddc=_0x1a8da8-_0x563370;_0x59dc85=_0x33ab50+(_0x10d6a2*_0x2071ae+_0x239ddc*_0x36888b),_0x1a8da8=_0x563370+(-_0x10d6a2*_0x36888b+_0x239ddc*_0x2071ae);}_0x1be396&&(_0x59dc85=this[_0x3490f2(0x1da)]-_0x59dc85),_0x3565d3&&(_0x1a8da8=this['_baseShapeHeight']-_0x1a8da8);let _0x453e93={'x':_0x59dc85,'y':_0x1a8da8},_0x4d264c=this['_activeShapeModel'][_0x3490f2(0x36e)](_0x96eaae,_0x453e93,_0x3bf5e6,_0x1be396,_0x3565d3);if(Object[_0x3490f2(0x391)](_0x4d264c)[_0x3490f2(0x337)]===0x0)return;for(let [_0x18efdb,_0x140fbf]of Object[_0x3490f2(0x3d5)](_0x4d264c))this['_activeShapeModel']['setAdjustValueByName'](_0x18efdb,_0x140fbf);this[_0x3490f2(0x190)][_0x3490f2(0x1b9)]({'width':this[_0x3490f2(0x1da)],'height':this[_0x3490f2(0x2cd)]});let _0x6dd4c9=this['_drawingManagerService'][_0x3490f2(0x3d4)]({'unitId':_0x19582a[_0x3490f2(0x387)],'subUnitId':_0x19582a['subUnitId'],'drawingId':_0x19582a[_0x3490f2(0x22a)]});_0x6dd4c9&&(this[_0x3490f2(0x2ce)][_0x3490f2(0x413)](_0x6dd4c9,_0x9f3b33),this[_0x3490f2(0x1f6)]=this[_0x3490f2(0x38d)](_0x19582a[_0x3490f2(0x387)],_0x19582a['subUnitId'],_0x19582a[_0x3490f2(0x22a)]),this[_0x3490f2(0x421)]());}_0x26707d[_0x3490f2(0x19d)]();}),this[_0x414260(0x153)]=_0x9f3b33['onPointerUp$'][_0x414260(0x447)]((_0x1295c5,_0xe3b75d)=>{const _0x524664=_0x414260;this['_adjHandlerPointerMove'][_0x524664(0x369)](),this[_0x524664(0x153)][_0x524664(0x369)](),_0x9f3b33[_0x524664(0x128)]();let _0x11881d=this['_activeAdjustInfo'];if(_0x11881d){let _0x4da3c8=_0x19582a[_0x524664(0x387)],_0x3b123f=_0x19582a['subUnitId'],_0x7c53e8=_0x19582a['drawingId'],_0x4780be={};for(let _0x3aa24f of Object[_0x524664(0x391)](_0x11881d['currentAdjustValues'])){var _0x141162;let _0x1db343=(_0x141162=this['_activeShapeModel'])==null?void 0x0:_0x141162[_0x524664(0x179)](_0x3aa24f);_0x1db343!==void 0x0&&(_0x4780be[_0x3aa24f]=_0x1db343);}Object[_0x524664(0x391)](_0x4780be)['length']>0x0&&_0x3cdd2e(this[_0x524664(0x2dc)],_0x4da3c8,_0x3b123f,_0x7c53e8,{'oldShapeData':{'adjustValues':_0x4ec960}},{'adjustValues':_0x4780be});}this[_0x524664(0x420)]=void 0x0,this[_0x524664(0x190)]=void 0x0,this['_isStartAdjusting']=!0x1,_0xe3b75d[_0x524664(0x19d)](),_0x9f3b33[_0x524664(0x1ce)]();}),_0xe7af46['stopPropagation']();})));}[_0x1e3977(0x1c4)](){const _0x53dfbc=_0x1e3977;let _0x276994=this[_0x53dfbc(0x18f)][_0x53dfbc(0x2b4)](_0x2eccf5[_0x53dfbc(0x296)]['UNIVER_SHEET']);this[_0x53dfbc(0x256)](_0x276994[_0x53dfbc(0x239)]((0x0,_0x124e3f[_0x53dfbc(0x37e)])(_0x36a86b=>_0x36a86b?_0x36a86b[_0x53dfbc(0x445)]['pipe']((0x0,_0x124e3f[_0x53dfbc(0x37e)])(_0x4df35b=>{const _0xb0ef8e=_0x53dfbc;if(!_0x4df35b)return _0x124e3f[_0xb0ef8e(0x341)];let _0x250df3=_0x36a86b[_0xb0ef8e(0x322)](),_0x2f4e4a=this[_0xb0ef8e(0x3ba)][_0xb0ef8e(0x2be)](_0x250df3),_0x239390=_0x2f4e4a==null?void 0x0:_0x2f4e4a[_0xb0ef8e(0x14a)];return _0x239390?(0x0,_0x124e3f['of'])(_0x239390):_0x124e3f[_0xb0ef8e(0x341)];})):_0x124e3f[_0x53dfbc(0x341)]))[_0x53dfbc(0x17b)](_0x40eb2d=>{const _0x454302=_0x53dfbc;let _0x11e5a1=_0x40eb2d['getTransformerByCreate']();this[_0x454302(0x256)](_0x40eb2d['onPointerMove$'][_0x454302(0x447)](()=>{const _0xff0bad=_0x454302;this[_0xff0bad(0x401)];})),this[_0x454302(0x256)](_0x11e5a1['changeStart$']['subscribe'](_0x37939b=>{const _0x3501c9=_0x454302;let {objects:_0x9530aa}=_0x37939b;this[_0x3501c9(0x44a)](),_0x9530aa!==null&&_0x9530aa[_0x3501c9(0x419)]===0x1&&_0x9530aa[_0x3501c9(0x158)]()[_0x3501c9(0x1fe)]()[_0x3501c9(0x123)]instanceof _0x34cbbf&&this[_0x3501c9(0x321)](!0x0);})),this[_0x454302(0x256)](_0x11e5a1[_0x454302(0x3be)]['subscribe'](()=>{const _0x250487=_0x454302;this[_0x250487(0x401)]&&this['_clearShapeAdjustControls']();})),this['disposeWithMe'](_0x40eb2d[_0x454302(0x292)][_0x454302(0x447)](()=>{const _0x26106b=_0x454302;this[_0x26106b(0x401)]&&(this[_0x26106b(0x321)](!0x1),this['_createShapeAdjustControls']());})),this['disposeWithMe'](_0x11e5a1[_0x454302(0x31c)][_0x454302(0x17b)](()=>{const _0x575b2f=_0x454302;this['_unitId']&&this[_0x575b2f(0x18a)]&&this[_0x575b2f(0x166)]&&this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x575b2f(0x44e)],'subUnitId':this[_0x575b2f(0x18a)],'drawingId':this['_activeShapeId']})&&(this[_0x575b2f(0x1f6)]=this[_0x575b2f(0x38d)](this[_0x575b2f(0x44e)],this[_0x575b2f(0x18a)],this[_0x575b2f(0x166)]),this['_updateAdjustControlPositions']());}));}));}[_0x1e3977(0x2f6)](){const _0x2470b5=_0x1e3977;this[_0x2470b5(0x256)](this[_0x2470b5(0x2dc)][_0x2470b5(0x17a)](_0x6366dd=>{const _0xd9070d=_0x2470b5;if(_0x6366dd['id']!==_0x1b87be[_0xd9070d(0x3da)]['id'])return;let {unitId:_0x11caa1,subUnitId:_0xe516ef,shapeId:_0x4e9e1c}=_0x6366dd[_0xd9070d(0x2bc)];_0x11caa1===this[_0xd9070d(0x44e)]&&_0xe516ef===this[_0xd9070d(0x18a)]&&_0x4e9e1c===this[_0xd9070d(0x166)]&&this[_0xd9070d(0x434)]();})),this['disposeWithMe'](this[_0x2470b5(0x1a2)][_0x2470b5(0x394)]['subscribe'](_0x2d40a2=>{const _0x447ff0=_0x2470b5;if(_0x2d40a2[_0x447ff0(0x337)]===0x1){let _0x5f4b2b=_0x2d40a2[0x0];if(_0x5f4b2b[_0x447ff0(0x34b)]===_0x2eccf5['DrawingTypeEnum'][_0x447ff0(0x285)]){this['_activeShapeId']=_0x5f4b2b['drawingId'];let {unitId:_0x21290c,subUnitId:_0x25a2c9}=_0x5f4b2b;this[_0x447ff0(0x1f6)]=this[_0x447ff0(0x38d)](_0x21290c,_0x25a2c9,this[_0x447ff0(0x166)]),this[_0x447ff0(0x44e)]=_0x21290c,this[_0x447ff0(0x18a)]=_0x25a2c9,this['_clearShapeAdjustControls'](),this['_createShapeAdjustControls']();}else this[_0x447ff0(0x166)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x447ff0(0x44e)]=null,this[_0x447ff0(0x18a)]=null,this['_clearShapeAdjustControls']();}(_0x2d40a2[_0x447ff0(0x337)]>0x1||_0x2d40a2[_0x447ff0(0x337)]===0x0)&&(this[_0x447ff0(0x166)]=null,this[_0x447ff0(0x1f6)]=void 0x0,this['_unitId']=null,this['_subUnitId']=null,this['_clearShapeAdjustControls']());})),this['disposeWithMe'](this[_0x2470b5(0x1a2)]['update$'][_0x2470b5(0x17b)](_0x5e39cf=>{const _0x76ad00=_0x2470b5;if(_0x5e39cf[_0x76ad00(0x337)]===0x1){var _0x4dd6d8;let _0x26e8b6=_0x5e39cf[0x0];((_0x4dd6d8=this['_drawingManagerService'][_0x76ad00(0x3d4)](_0x26e8b6))==null?void 0x0:_0x4dd6d8[_0x76ad00(0x34b)])===_0x2eccf5[_0x76ad00(0x43b)][_0x76ad00(0x285)]&&this[_0x76ad00(0x15f)](!0x0);}})),this[_0x2470b5(0x256)](this['_drawingManagerService'][_0x2470b5(0x3fa)][_0x2470b5(0x17b)](_0x31fa78=>{const _0x183c2c=_0x2470b5;for(let _0x356c8a of _0x31fa78)this[_0x183c2c(0x166)]===_0x356c8a[_0x183c2c(0x22a)]&&(this['_activeShapeId']=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x183c2c(0x44e)]=null,this[_0x183c2c(0x18a)]=null,this[_0x183c2c(0x439)]());}));}};_0x34fe5c=_0xba323d([_0x5a8c13(0x0,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be[_0x1e3977(0x3ad)])),_0x5a8c13(0x2,(0x0,_0x2eccf5['Inject'])(_0x114b3e['IRenderManagerService'])),_0x5a8c13(0x3,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1f5133)),_0x5a8c13(0x4,_0x2eccf5[_0x1e3977(0x178)]),_0x5a8c13(0x5,_0x2eccf5[_0x1e3977(0x1b2)])],_0x34fe5c);let _0x4162f6={'id':_0x1e3977(0x215),'type':_0x2eccf5[_0x1e3977(0x129)][_0x1e3977(0x3ef)],'handler':(_0x537f2d,_0x3a1bfc)=>{const _0x318215=_0x1e3977;let _0x504c70=_0x537f2d[_0x318215(0x32f)](_0x215a9[_0x318215(0x18c)]),_0x57fba5=_0x537f2d[_0x318215(0x32f)](_0x114b3e[_0x318215(0x42b)]),_0x727ffc=_0x537f2d[_0x318215(0x32f)](_0x34fe5c);if(_0x3a1bfc==null)return!0x0;if(_0x3a1bfc[_0x318215(0x337)]>0x0){var _0x392461;let _0x3f3193=(_0x392461=_0x57fba5[_0x318215(0x2be)](_0x3a1bfc[0x0]['unitId']))==null?void 0x0:_0x392461[_0x318215(0x14a)];if(_0x3f3193){let {unitId:_0x489cf6,subUnitId:_0x400008,drawingId:_0x208d26}=_0x3a1bfc[0x0],_0x4b8363=(0x0,_0x215a9[_0x318215(0x2ee)])({'unitId':_0x489cf6,'subUnitId':_0x400008,'drawingId':_0x208d26},void 0x0),_0x12dfcd=_0x3f3193['getObjectIncludeInGroup'](_0x4b8363);if(_0x12dfcd){var _0x137baf;(_0x137baf=_0x57fba5[_0x318215(0x2be)](_0x3a1bfc[0x0][_0x318215(0x387)]))==null||(_0x137baf=_0x137baf[_0x318215(0x14a)][_0x318215(0x3ff)]())==null||_0x137baf['activeAnObject'](_0x12dfcd);}}_0x504c70[_0x318215(0x423)](_0x3a1bfc),_0x727ffc['setShouldShowAdjust'](!0x1);}return!0x0;}},_0x29cd9f={'type':_0x2eccf5['CommandType'][_0x1e3977(0x209)],'id':_0x1e3977(0x13f),'handler':async(_0x53a7f8,_0xc5d2a9)=>{const _0x1d3bc6=_0x1e3977;let _0x12fddb=(0x0,_0x2554f2[_0x1d3bc6(0x355)])(_0x53a7f8['get'](_0x2eccf5[_0x1d3bc6(0x178)]));if(!_0x12fddb)return!0x1;let _0x196094=_0x53a7f8[_0x1d3bc6(0x32f)](_0x2554f2[_0x1d3bc6(0x3fd)])[_0x1d3bc6(0x191)]();if(!_0x196094)return!0x1;let _0x56402c=_0x53a7f8[_0x1d3bc6(0x32f)](_0x2eccf5['ICommandService']),{unitId:_0x2a0919,subUnitId:_0x5a6aec}=_0x12fddb,{value:_0x58d8b0,enhanceParams:_0x555a22}=_0xc5d2a9,{range:_0x2d82a8}=_0x196094,_0x24ab20={'unitId':_0x2a0919,'subUnitId':_0x5a6aec,'shapeType':_0x58d8b0,'range':_0x2d82a8,'shapeId':(0x0,_0x2eccf5[_0x1d3bc6(0x2f1)])()};if(_0x555a22){let _0x460b84=(0x0,_0x3d21cd[_0x1d3bc6(0x275)])(_0x58d8b0),_0x2e1b5f=_0x58d8b0===_0x3d21cd[_0x1d3bc6(0x2bf)][_0x1d3bc6(0x31a)];_0x460b84&&(_0x555a22[_0x1d3bc6(0x2b6)]||_0x555a22[_0x1d3bc6(0x3fb)])&&(_0x24ab20[_0x1d3bc6(0x28a)]={'ln':{'startArrow':_0x555a22['startArrow']?{'type':_0x3d21cd[_0x1d3bc6(0x156)]['Arrow'],'size':_0x3d21cd['ShapeArrowSizeEnum']['Medium']}:void 0x0,'endArrow':_0x555a22['endArrow']?{'type':_0x3d21cd[_0x1d3bc6(0x156)][_0x1d3bc6(0x24f)],'size':_0x3d21cd['ShapeArrowSizeEnum'][_0x1d3bc6(0x31b)]}:void 0x0}}),_0x2e1b5f&&(_0x555a22[_0x1d3bc6(0x2a7)]||_0x555a22[_0x1d3bc6(0x1f1)])&&(_0x24ab20['shapeData']=(0x0,_0x32598e['createShapeTextBoxShapeData'])({'fill':{'fillType':_0x3d21cd['ShapeFillEnum'][_0x1d3bc6(0x313)],'color':_0x1d3bc6(0x268)},'isHorizontal':!!_0x555a22['horizontal'],'stroke':{'lineStrokeType':_0x3d21cd[_0x1d3bc6(0x1db)][_0x1d3bc6(0x395)],'width':0x1,'color':'#bcbcbc'}}));}let _0x3b9b50=_0x56402c[_0x1d3bc6(0x1fa)](_0x1b87be['InsertShapeCommand']['id'],_0x24ab20);return setTimeout(()=>{const _0x15d30e=_0x1d3bc6;_0x56402c[_0x15d30e(0x216)](_0x4162f6['id'],[{'unitId':_0x2a0919,'subUnitId':_0x5a6aec,'drawingId':_0x24ab20['shapeId']}]);},0xc8),_0x3b9b50;}},_0xb9db8d=_0x1e3977(0x38a),_0x19a922=_0x1e3977(0x335),_0x1f1d2c='sheet.shape.floating-toolbar',_0x39b4a9=(0x0,_0x2eccf5['createInternalEditorID'])('SHAPE_TEXT'),_0x9609bf='sheet.shape.text.float-menu',_0x393ac4={'id':_0x1e3977(0x236),'type':_0x2eccf5['CommandType']['COMMAND'],'handler':(_0x357534,_0x2bd638)=>{const _0x9207d1=_0x1e3977;let _0x5d1952=_0x357534[_0x9207d1(0x32f)](_0x4b5551['ISidebarService']),_0x39aed8=_0x357534[_0x9207d1(0x32f)](_0x2eccf5[_0x9207d1(0x24d)]),_0x5c11b8=_0x357534[_0x9207d1(0x32f)](_0x2eccf5[_0x9207d1(0x178)]),_0x5bf9b5=_0x357534[_0x9207d1(0x32f)](_0x2eccf5[_0x9207d1(0x1b2)]);return(0x0,_0x2554f2[_0x9207d1(0x355)])(_0x5c11b8)?(_0x2bd638==null?void 0x0:_0x2bd638[_0x9207d1(0x123)])===_0x9207d1(0x309)?(_0x5d1952[_0x9207d1(0x309)](_0x19a922),!0x0):(_0x5d1952[_0x9207d1(0x1bc)]({'id':_0x19a922,'header':{'title':_0x39aed8['t'](_0x9207d1(0x2df))},'children':{'label':_0x19a922},'onClose':()=>{const _0x2fa475=_0x9207d1;_0x5bf9b5[_0x2fa475(0x1fa)](_0x215a9[_0x2fa475(0x3b4)]['id'],[]);},'width':0x168}),!0x0):!0x1;}},_0x432d68=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x2f0735,_0x4bebf6){const _0x4944aa=_0x1e3977;super(),this[_0x4944aa(0x213)]=_0x2f0735,this[_0x4944aa(0x1a2)]=_0x4bebf6,this[_0x4944aa(0x1b4)](),this['_clipService']['setCanUseShapeClip'](!0x0),this['disposeWithMe']({'dispose':()=>this[_0x4944aa(0x213)]['setCanUseShapeClip'](!0x1)});}[_0x1e3977(0x1b4)](){const _0x4375c7=_0x1e3977;let _0x280a91=this[_0x4375c7(0x213)],_0x8fc27=new Map(),_0x126867=_0x280a91[_0x4375c7(0x316)]((_0x58bd3d,_0x288eaa,_0x2459d3,_0x13309f,_0x4c473c)=>{const _0x368bfc=_0x4375c7;let _0x42771c=_0x288eaa;if(_0x42771c===_0x3d21cd['ShapeTypeEnum'][_0x368bfc(0x174)]||_0x288eaa==='custom')return!0x1;try{let _0x5e6128=_0x8fc27['get'](_0x288eaa);return _0x5e6128||(_0x5e6128=new _0x3d21cd['ShapeModel'](_0x42771c,_0x368bfc(0x218)+_0x288eaa),_0x8fc27[_0x368bfc(0x310)](_0x288eaa,_0x5e6128)),_0x5e6128[_0x368bfc(0x3bb)](),_0x4c473c&&Object[_0x368bfc(0x391)](_0x4c473c)['length']>0x0&&_0x5e6128[_0x368bfc(0x25a)]({'adjustValues':_0x4c473c},!0x0),_0x5e6128[_0x368bfc(0x1b9)]({'width':_0x2459d3,'height':_0x13309f}),_0x5e6128['buildClipPath'](_0x58bd3d,{'left':0x0,'top':0x0,'width':_0x2459d3,'height':_0x13309f});}catch{return!0x1;}});this[_0x4375c7(0x256)](_0x126867),this[_0x4375c7(0x256)]({'dispose':()=>_0x8fc27['clear']()});}[_0x1e3977(0x2a0)](_0x37ac98,_0x2da1e7,_0x57b435,_0x52b1ce,_0x5a0bf6){const _0x1f0925=_0x1e3977;let _0x3971bd=this['_drawingManagerService'][_0x1f0925(0x173)](_0x37ac98,_0x2da1e7);if(!_0x3971bd[_0x57b435])return;let _0x1afec2={..._0x3971bd[_0x57b435],'prstGeom':_0x52b1ce,'adjustValues':_0x5a0bf6};this[_0x1f0925(0x1a2)][_0x1f0925(0x207)]([_0x1afec2]);}};_0x432d68=_0xba323d([_0x5a8c13(0x0,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x34fb64[_0x1e3977(0x36a)])),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x215a9[_0x1e3977(0x18c)]))],_0x432d68);let _0x1ed21a=_0x1e3977(0x29c),_0x456ca6=_0x1e3977(0x165);function _0x17973b({onShapeClick:_0x55471e,excludeGroups:_0xabe569}){const _0x8f636=_0x1e3977;return(0x0,_0x2dcc44['jsx'])(_0x25b599[_0x8f636(0x10d)],{'excludeGroups':_0xabe569,'onShapeClick':_0x55471e,'scrollContainer':_0x8f636(0x37c)});}function _0x5968f5(){const _0x2e9eaf=_0x1e3977;let _0x3e5142=(0x0,_0x4b5551['useDependency'])(_0x215a9[_0x2e9eaf(0x18c)]),_0x516b8e=(0x0,_0x4b5551[_0x2e9eaf(0x11c)])(_0x432d68);return(0x0,_0x2dcc44[_0x2e9eaf(0x32e)])(_0x25b599[_0x2e9eaf(0x43e)],{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0x25b599[_0x2e9eaf(0x279)][_0x2e9eaf(0x125)]],'onShapeClick':_0x3a9590=>{const _0x3ca35c=_0x2e9eaf;let _0x22f012=_0x3e5142[_0x3ca35c(0x40c)]()[_0x3ca35c(0x24b)](_0x572588=>_0x572588[_0x3ca35c(0x34b)]===_0x2eccf5['DrawingTypeEnum'][_0x3ca35c(0x22c)]);if(!_0x22f012)return;let {unitId:_0x2b279a,subUnitId:_0x3f0827,drawingId:_0x57a3d9}=_0x22f012;_0x516b8e[_0x3ca35c(0x2a0)](_0x2b279a,_0x3f0827,_0x57a3d9,_0x3a9590['type']);}});}function _0x49666e(){const _0x91670f=_0x1e3977;let _0x380d26=(0x0,_0x4b5551[_0x91670f(0x11c)])(_0x4b5551[_0x91670f(0x32c)]),_0x7fb1f1=(0x0,_0x4b5551[_0x91670f(0x11c)])(_0x215a9['IDrawingManagerService']),_0x57bbe6=(0x0,_0x4b5551[_0x91670f(0x11c)])(_0x2eccf5['IUniverInstanceService']),_0x4665d7=_0x7fb1f1[_0x91670f(0x40c)]()[0x0],_0x581df4=_0x4665d7?_0x57bbe6[_0x91670f(0x3aa)](_0x4665d7[_0x91670f(0x387)]):void 0x0,_0x3beb59=_0x581df4===_0x2eccf5[_0x91670f(0x296)][_0x91670f(0x1f9)]?_0x91670f(0x3fc):_0x581df4===_0x2eccf5[_0x91670f(0x296)][_0x91670f(0x293)]?_0x456ca6:void 0x0,_0x2f362a=_0x3beb59?_0x380d26[_0x91670f(0x32f)](_0x3beb59):void 0x0;return _0x2f362a?(0x0,_0x2dcc44[_0x91670f(0x32e)])(_0x2f362a,{}):null;}function _0x46b9a0(){let _0xf41edd=(0x0,_0x4b5551['useDependency'])(_0x2eccf5['ICommandService']);return(0x0,_0x2dcc44['jsx'])(_0x17973b,{'onShapeClick':_0x56a378=>{const _0x3d3fb4=_0x93c9;_0xf41edd['executeCommand'](_0x29cd9f['id'],{'value':_0x56a378[_0x3d3fb4(0x13c)],'enhanceParams':{'endArrow':_0x56a378['endArrow'],'startArrow':_0x56a378['startArrow'],'horizontal':_0x56a378[_0x3d3fb4(0x2a7)],'vertical':_0x56a378[_0x3d3fb4(0x1f1)]}});}});}function _0x488c8b(_0x27c005){const _0x1c1309=_0x1e3977;let _0x55a959=_0x27c005[_0x1c1309(0x32f)](_0x2eccf5[_0x1c1309(0x178)]);return{'id':_0x29cd9f['id'],'type':_0x4b5551[_0x1c1309(0x344)][_0x1c1309(0x388)],'selections':[{'label':{'name':_0x1ed21a,'hoverable':!0x1,'selectable':!0x1,'props':{'id':_0x29cd9f['id']}}}],'icon':_0x1c1309(0x302),'tooltip':_0x1c1309(0x152),'activated$':(0x0,_0x3c12d8['deriveStateFromActiveSheet$'])(_0x55a959,!0x1,()=>new _0x124e3f['Observable'](_0x1f8e51=>{const _0x1f2cbb=_0x1c1309;_0x1f8e51[_0x1f2cbb(0x1fe)](!0x1);})),'hidden$':(0x0,_0x4b5551[_0x1c1309(0x40e)])(_0x27c005,_0x2eccf5[_0x1c1309(0x296)][_0x1c1309(0x293)]),'disabled$':(0x0,_0x3c12d8['getCurrentRangeDisable$'])(_0x27c005)};}function _0x436454(_0x286b62){const _0xfaddc8=_0x1e3977;let _0x20fb94=_0x286b62[_0xfaddc8(0x32f)](_0x2eccf5[_0xfaddc8(0x178)]);return{'id':_0x393ac4['id'],'type':_0x4b5551['MenuItemType'][_0xfaddc8(0x3db)],'icon':_0xfaddc8(0x1f7),'title':_0xfaddc8(0x325),'tooltip':_0xfaddc8(0x325),'activated$':(0x0,_0x3c12d8[_0xfaddc8(0x298)])(_0x20fb94,!0x1,()=>new _0x124e3f[(_0xfaddc8(0x39a))](_0x30c544=>{const _0x2df28c=_0xfaddc8;_0x30c544[_0x2df28c(0x1fe)](!0x1);})),'hidden$':(0x0,_0x4b5551['getMenuHiddenObservable'])(_0x286b62,_0x2eccf5[_0xfaddc8(0x296)]['UNIVER_SHEET']),'disabled$':(0x0,_0x3c12d8[_0xfaddc8(0x230)])(_0x286b62)};}let _0x2f7d0f='sheet.menu.shape.flip-horizontal',_0x4dfc59=_0x1e3977(0x2cc);function _0x34faa1(_0x485aa7){const _0x3bde45=_0x1e3977;let _0x4769dd=_0x485aa7[_0x3bde45(0x32f)](_0x215a9[_0x3bde45(0x18c)])[_0x3bde45(0x40c)]();return _0x4769dd[_0x3bde45(0x337)]===0x1&&_0x4769dd[0x0][_0x3bde45(0x34b)]===_0x2eccf5[_0x3bde45(0x43b)][_0x3bde45(0x285)]?_0x4769dd[0x0]:null;}function _0x4e4fbf(_0x3c2214){const _0x8832e0=_0x1e3977;let _0x2e87de=_0x3c2214['get'](_0x215a9[_0x8832e0(0x18c)]);return _0x2e87de[_0x8832e0(0x394)][_0x8832e0(0x239)]((0x0,_0x124e3f[_0x8832e0(0x1c2)])(_0x2e87de['getFocusDrawings']()),(0x0,_0x124e3f[_0x8832e0(0x43f)])(_0x250d80=>_0x250d80[_0x8832e0(0x337)]!==0x1||_0x250d80[0x0]['drawingType']!==_0x2eccf5[_0x8832e0(0x43b)][_0x8832e0(0x285)]));}function _0x36a234(_0x344a31){const _0x3d0d44=_0x1e3977;return{'id':_0x2f7d0f,'commandId':_0x1b87be[_0x3d0d44(0x383)]['id'],'type':_0x4b5551[_0x3d0d44(0x344)][_0x3d0d44(0x3db)],'title':'sheets-shape-ui.flipHorizontal','tooltip':_0x3d0d44(0x3ae),'icon':_0x3d0d44(0x2f0),'hidden$':_0x4e4fbf(_0x344a31),'params':()=>{const _0x40d47d=_0x3d0d44;let _0x4b7333=_0x34faa1(_0x344a31);return _0x4b7333?{'unitId':_0x4b7333[_0x40d47d(0x387)],'subUnitId':_0x4b7333[_0x40d47d(0x204)],'shapeId':_0x4b7333[_0x40d47d(0x22a)],'flipH':!0x0}:void 0x0;}};}function _0x1d3c90(_0x129ece){const _0x22a168=_0x1e3977;return{'id':_0x4dfc59,'commandId':_0x1b87be['ToggleSheetsShapeFlipCommand']['id'],'type':_0x4b5551[_0x22a168(0x344)][_0x22a168(0x3db)],'title':_0x22a168(0x10b),'tooltip':_0x22a168(0x10b),'icon':_0x22a168(0x406),'hidden$':_0x4e4fbf(_0x129ece),'params':()=>{const _0x5da263=_0x22a168;let _0x276f6c=_0x34faa1(_0x129ece);return _0x276f6c?{'unitId':_0x276f6c['unitId'],'subUnitId':_0x276f6c[_0x5da263(0x204)],'shapeId':_0x276f6c[_0x5da263(0x22a)],'flipV':!0x0}:void 0x0;}};}let _0x3b310c={[_0x4b5551['RibbonInsertGroup']['MEDIA']]:{[_0x29cd9f['id']]:{'order':0x4,'menuItemFactory':_0x488c8b}},[_0x4b5551[_0x1e3977(0x3d6)][_0x1e3977(0x284)]]:{[_0x393ac4['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':_0x436454}},[_0x4b5551[_0x1e3977(0x2e7)][_0x1e3977(0x113)]]:{[_0x4b5551['ContextMenuGroup'][_0x1e3977(0x284)]]:{[_0x2f7d0f]:{'order':0x4,'menuItemFactory':_0x36a234},[_0x4dfc59]:{'order':0x5,'menuItemFactory':_0x1d3c90}}}};var _0xa08251='@univerjs-pro/sheets-shape-ui',_0x3fe8c1=_0x1e3977(0x17c);let _0x157efe={'type':_0x2eccf5[_0x1e3977(0x129)][_0x1e3977(0x3ef)],'id':_0x1e3977(0x418),'handler'(){return!0x0;}},_0x148656={'type':_0x2eccf5[_0x1e3977(0x129)][_0x1e3977(0x3ef)],'id':_0x1e3977(0x373),'handler'(){return!0x0;}},_0x4f4787={};function _0x4b8678({ref:_0x1df250,..._0xf7ec53}){const _0xa60854=_0x1e3977;let {icon:_0x11d6d3,id:_0x19b5d5,className:_0x3dfa18,extend:_0x52e6e6,..._0x135d44}=_0xf7ec53,_0x388146=('univerjs-icon\x20univerjs-icon-'+_0x19b5d5+'\x20'+(_0x3dfa18||''))[_0xa60854(0x3f8)](),_0x56e976=(0x0,_0x33f0ff[_0xa60854(0x389)])('_'+_0x4c1645());return _0x32b6df(_0x11d6d3,''+_0x19b5d5,{'defIds':_0x11d6d3[_0xa60854(0x311)],'idSuffix':_0x56e976[_0xa60854(0x38e)]},{'ref':_0x1df250,'className':_0x388146,..._0x135d44},_0x52e6e6);}function _0x32b6df(_0x2cd28b,_0x54fd21,_0x51735d,_0x1fa9d7,_0x4a6d79){const _0x1676aa=_0x1e3977;return(0x0,_0x33f0ff[_0x1676aa(0x338)])(_0x2cd28b['tag'],{'key':_0x54fd21,..._0x384154(_0x2cd28b,_0x51735d,_0x4a6d79),..._0x1fa9d7},(_0x2b9ebc(_0x2cd28b,_0x51735d)[_0x1676aa(0x273)]||[])[_0x1676aa(0x43f)]((_0x123158,_0x51ff65)=>_0x32b6df(_0x123158,_0x54fd21+'-'+_0x2cd28b['tag']+'-'+_0x51ff65,_0x51735d,void 0x0,_0x4a6d79)));}function _0x384154(_0x137561,_0x16eb1d,_0x5e0a33){const _0x2fc0b7=_0x1e3977;let _0x4b6d23={..._0x137561[_0x2fc0b7(0x2dd)]};_0x5e0a33!=null&&_0x5e0a33['colorChannel1']&&_0x4b6d23[_0x2fc0b7(0x172)]===_0x2fc0b7(0x348)&&(_0x4b6d23[_0x2fc0b7(0x172)]=_0x5e0a33['colorChannel1']),_0x5e0a33!=null&&_0x5e0a33['colorChannel1']&&_0x4b6d23[_0x2fc0b7(0x3ed)]==='colorChannel1'&&(_0x4b6d23['stroke']=_0x5e0a33['colorChannel1']),_0x137561[_0x2fc0b7(0x291)]===_0x2fc0b7(0x2e1)&&_0x4b6d23['id']&&(_0x4b6d23['id']+=_0x16eb1d['idSuffix']),Object[_0x2fc0b7(0x3d5)](_0x4b6d23)['forEach'](([_0x555f8c,_0x12606c])=>{const _0x458155=_0x2fc0b7;_0x555f8c===_0x458155(0x2e1)&&typeof _0x12606c==_0x458155(0x144)&&(_0x4b6d23[_0x555f8c]=_0x12606c[_0x458155(0x352)](/url\(#(.*)\)/,_0x458155(0x370)+_0x16eb1d[_0x458155(0x1c5)]+')'));});let {defIds:_0x35e84e}=_0x16eb1d;return!_0x35e84e||_0x35e84e[_0x2fc0b7(0x337)]===0x0?_0x4b6d23:(_0x137561['tag']===_0x2fc0b7(0x1c9)&&_0x4b6d23[_0x2fc0b7(0x39f)]&&(_0x4b6d23[_0x2fc0b7(0x39f)]+=_0x16eb1d[_0x2fc0b7(0x1c5)]),Object[_0x2fc0b7(0x3d5)](_0x4b6d23)[_0x2fc0b7(0x30e)](([_0x309cca,_0x4f4c4f])=>{const _0x5ade92=_0x2fc0b7;typeof _0x4f4c4f==_0x5ade92(0x144)&&(_0x4b6d23[_0x309cca]=_0x4f4c4f[_0x5ade92(0x352)](/url\(#(.*)\)/,_0x5ade92(0x370)+_0x16eb1d['idSuffix']+')'));}),_0x4b6d23);}function _0x2b9ebc(_0x5700d1,_0x296b1f){const _0x3f05ae=_0x1e3977;var _0x2a4d45;let {defIds:_0x5123b1}=_0x296b1f;return!_0x5123b1||_0x5123b1[_0x3f05ae(0x337)]===0x0?_0x5700d1:_0x5700d1[_0x3f05ae(0x291)]===_0x3f05ae(0x2b8)&&(_0x2a4d45=_0x5700d1['children'])!=null&&_0x2a4d45[_0x3f05ae(0x337)]?{..._0x5700d1,'children':_0x5700d1[_0x3f05ae(0x273)]['map'](_0x311dc1=>typeof _0x311dc1[_0x3f05ae(0x2dd)]['id']==_0x3f05ae(0x144)&&_0x5123b1&&_0x5123b1[_0x3f05ae(0x3c2)](_0x311dc1[_0x3f05ae(0x2dd)]['id'])?{..._0x311dc1,'attrs':{..._0x311dc1[_0x3f05ae(0x2dd)],'id':_0x311dc1['attrs']['id']+_0x296b1f['idSuffix']}}:_0x311dc1)}:_0x5700d1;}function _0x4c1645(){const _0x3bb7e5=_0x1e3977;return Math['random']()['toString'](0x24)[_0x3bb7e5(0x3e2)](0x2,0x8);}_0x4b8678[_0x1e3977(0x3f6)]=_0x1e3977(0x2d8);let _0x5dc691={'tag':_0x1e3977(0x390),'attrs':{'xmlns':_0x1e3977(0x270),'fill':_0x1e3977(0x416),'viewBox':_0x1e3977(0x376),'width':_0x1e3977(0x1be),'height':'1em'},'children':[{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':_0x1e3977(0x319),'strokeLinecap':_0x1e3977(0x155),'strokeLinejoin':_0x1e3977(0x155),'strokeWidth':1.3}},{'tag':'path','attrs':{'stroke':_0x1e3977(0x3eb),'d':_0x1e3977(0x198),'strokeLinecap':_0x1e3977(0x155),'strokeLinejoin':_0x1e3977(0x155),'strokeWidth':1.3}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':'M8\x202.2V3.8','strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':'currentColor','d':_0x1e3977(0x3f2),'strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}},{'tag':'path','attrs':{'stroke':_0x1e3977(0x3eb),'d':_0x1e3977(0x232),'strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}},{'tag':'path','attrs':{'stroke':_0x1e3977(0x3eb),'d':_0x1e3977(0x2f5),'strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}}]},_0x194a17=(0x0,_0x33f0ff[_0x1e3977(0x132)])(function(_0x14e816,_0x17215b){const _0x54258a=_0x1e3977;return(0x0,_0x33f0ff[_0x54258a(0x338)])(_0x4b8678,Object[_0x54258a(0x438)]({},_0x14e816,{'id':_0x54258a(0x407),'ref':_0x17215b,'icon':_0x5dc691}));});_0x194a17[_0x1e3977(0x3f6)]=_0x1e3977(0x2f0);let _0x14e41a={'tag':_0x1e3977(0x390),'attrs':{'xmlns':_0x1e3977(0x270),'fill':'none','viewBox':_0x1e3977(0x376),'width':_0x1e3977(0x1be),'height':_0x1e3977(0x1be)},'children':[{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':'M3.3\x202.6L8\x206.2L12.7\x202.6H3.3Z','strokeLinecap':_0x1e3977(0x155),'strokeLinejoin':_0x1e3977(0x155),'strokeWidth':1.3}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':'M3.3\x2013.4L8\x209.8L12.7\x2013.4H3.3Z','strokeLinecap':_0x1e3977(0x155),'strokeLinejoin':'round','strokeWidth':1.3}},{'tag':'path','attrs':{'stroke':'currentColor','d':_0x1e3977(0x17f),'strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':'M6.2\x208H7.8','strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':'M10.2\x208H11.8','strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':_0x1e3977(0x385),'strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}}]},_0x1e6e5=(0x0,_0x33f0ff['forwardRef'])(function(_0x484882,_0x271ecc){const _0x9387e4=_0x1e3977;return(0x0,_0x33f0ff[_0x9387e4(0x338)])(_0x4b8678,Object['assign']({},_0x484882,{'id':'flip-vertical-icon','ref':_0x271ecc,'icon':_0x14e41a}));});_0x1e6e5[_0x1e3977(0x3f6)]=_0x1e3977(0x406);let _0x2b29ce={'tag':_0x1e3977(0x390),'attrs':{'xmlns':_0x1e3977(0x270),'fill':_0x1e3977(0x416),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x1e3977(0x1be)},'children':[{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':_0x1e3977(0x260),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.3}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':'m2\x207.75\x206\x202.95\x206-2.95M2\x2010.75l6\x202.95\x206-2.95','strokeLinecap':_0x1e3977(0x155),'strokeLinejoin':_0x1e3977(0x155),'strokeWidth':1.3}}]},_0x2f353d=(0x0,_0x33f0ff[_0x1e3977(0x132)])(function(_0x38532b,_0x2bbfbf){const _0x1a7444=_0x1e3977;return(0x0,_0x33f0ff['createElement'])(_0x4b8678,Object[_0x1a7444(0x438)]({},_0x38532b,{'id':_0x1a7444(0x235),'ref':_0x2bbfbf,'icon':_0x2b29ce}));});_0x2f353d[_0x1e3977(0x3f6)]=_0x1e3977(0x1f7);function _0x32de57(_0x44d846){return _0x44d846['trim']()||void 0x0;}function _0x5d6260(_0x4f3705){const _0x2d8e31=_0x1e3977;switch(_0x4f3705[_0x2d8e31(0x34b)]){case _0x2eccf5['DrawingTypeEnum']['DRAWING_IMAGE']:return _0x2d8e31(0x34c);case _0x2eccf5[_0x2d8e31(0x43b)][_0x2d8e31(0x443)]:return'chart';case _0x2eccf5[_0x2d8e31(0x43b)][_0x2d8e31(0x409)]:return _0x2d8e31(0x115);case _0x2eccf5[_0x2d8e31(0x43b)][_0x2d8e31(0x248)]:return _0x2d8e31(0x29a);case _0x2eccf5[_0x2d8e31(0x43b)][_0x2d8e31(0x2da)]:return'video';case _0x2eccf5['DrawingTypeEnum'][_0x2d8e31(0x1a7)]:return _0x2d8e31(0x1c0);case _0x2eccf5[_0x2d8e31(0x43b)]['DRAWING_UNIT']:return _0x2d8e31(0x244);case _0x2eccf5[_0x2d8e31(0x43b)][_0x2d8e31(0x1d8)]:return _0x2d8e31(0x3e6);case _0x2eccf5['DrawingTypeEnum'][_0x2d8e31(0x285)]:return _0x2d8e31(0x170);default:return _0x2d8e31(0x432);}}function _0x245041(_0x1e224a,_0x1966a4,_0x1020ca){const _0x5afdcb=_0x1e3977;var _0x4b2e6d;return((_0x4b2e6d=_0x1e224a[_0x5afdcb(0x454)])==null?void 0x0:_0x4b2e6d['trim']())||(0x0,_0x34fb64[_0x5afdcb(0x199)])(_0x1020ca,_0x5d6260(_0x1e224a))+'\x20'+(_0x1966a4+0x1);}function _0x45565c(){const _0xde20f9=_0x1e3977;var _0x171cb6,_0x50ca38,_0x4278bd,_0x2e5bac;let _0x4d8540=(0x0,_0x4b5551['useDependency'])(_0x2eccf5[_0xde20f9(0x24d)]),_0x3208e6=(0x0,_0x4b5551[_0xde20f9(0x11c)])(_0x2eccf5[_0xde20f9(0x1b2)]),_0x1ea424=(0x0,_0x4b5551[_0xde20f9(0x11c)])(_0x2eccf5[_0xde20f9(0x178)]),_0x397819=(0x0,_0x4b5551[_0xde20f9(0x11c)])(_0x2a2650['ISheetDrawingService']),_0xc93c0d=(0x0,_0x4b5551[_0xde20f9(0x11c)])(_0x215a9[_0xde20f9(0x18c)]),_0x39cfbf=(0x0,_0x4b5551[_0xde20f9(0x11c)])(_0x114b3e['IRenderManagerService']),[,_0x365b1f]=(0x0,_0x33f0ff[_0xde20f9(0x377)])(_0x415480=>_0x415480+0x1,0x0),_0x3b4915=_0x1ea424['getCurrentUnitOfType'](_0x2eccf5[_0xde20f9(0x296)]['UNIVER_SHEET']),_0x59e8b8=(_0x171cb6=_0x3b4915==null?void 0x0:_0x3b4915[_0xde20f9(0x322)]())==null?'':_0x171cb6,_0x4c4377=(_0x50ca38=_0x3b4915==null||(_0x4278bd=_0x3b4915[_0xde20f9(0x35c)]())==null?void 0x0:_0x4278bd[_0xde20f9(0x358)]())==null?'':_0x50ca38,_0x5c32ed=(0x0,_0x4b5551[_0xde20f9(0x2af)])(()=>_0xc93c0d[_0xde20f9(0x394)],_0xc93c0d['getFocusDrawings'](),!0x1,[_0xc93c0d]);(0x0,_0x33f0ff['useEffect'])(()=>{const _0x15463d=_0xde20f9;let _0x3f443a=_0x3208e6[_0x15463d(0x17a)](()=>_0x365b1f());return()=>_0x3f443a['dispose']();},[_0x3208e6]);let _0xc7a6c2=_0x59e8b8&&_0x4c4377?_0x397819[_0xde20f9(0x173)](_0x59e8b8,_0x4c4377):{},_0x1e77a1=_0x59e8b8&&_0x4c4377?_0x397819[_0xde20f9(0x257)](_0x59e8b8,_0x4c4377):[],_0x2c3747=(0x0,_0x33f0ff[_0xde20f9(0x2d4)])(()=>(0x0,_0x34fb64[_0xde20f9(0x2c5)])(_0x4d8540),[_0x4d8540]),_0x497080=(0x0,_0x33f0ff[_0xde20f9(0x2d4)])(()=>{const _0x5c2eba=_0xde20f9;let _0x36df50=_0x1e77a1[_0x5c2eba(0x43f)](_0xbdf73c=>_0xc7a6c2[_0xbdf73c])[_0x5c2eba(0x3c4)](_0x4a88c6=>!!_0x4a88c6)[_0x5c2eba(0x11d)](),_0x3d69e9=_0x36df50['reduce']((_0x3aa7f8,_0x3d8ec6)=>(_0x3aa7f8[(0x0,_0x34fb64[_0x5c2eba(0x1f3)])(_0x3d8ec6[_0x5c2eba(0x34b)])]+=0x1,_0x3aa7f8),{'canvas':0x0,'floating':0x0}),_0x1f8552={'canvas':0x0,'floating':0x0};return _0x36df50[_0x5c2eba(0x43f)]((_0x1f10e1,_0x436827)=>{const _0x3340a1=_0x5c2eba;let _0x2dcc5b=(0x0,_0x34fb64['getObjectListPanelSectionIdForDrawingType'])(_0x1f10e1['drawingType']),_0x49f185=_0x2dcc5b===_0x34fb64[_0x3340a1(0x39b)],_0x1ba1ac=_0x1f8552[_0x2dcc5b]++;return{'id':_0x1f10e1[_0x3340a1(0x22a)],'name':_0x245041(_0x1f10e1,_0x436827,_0x4d8540),'description':_0x1f10e1['description'],'visible':_0x1f10e1[_0x3340a1(0x1f2)]!==!0x0,'selectable':_0x1f10e1[_0x3340a1(0x192)]!==!0x1,'sectionId':_0x2dcc5b,'sectionTitle':_0x49f185?_0x2c3747[_0x3340a1(0x26f)]:_0x2c3747[_0x3340a1(0x136)],'capabilities':_0x49f185?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x49f185&&_0x1ba1ac>0x0,'canMoveBackward':!_0x49f185&&_0x1ba1ac<_0x3d69e9[_0x3340a1(0x33c)]-0x1,'canReorder':!_0x49f185};});},[_0xc7a6c2,_0x1e77a1,_0x2c3747[_0xde20f9(0x136)],_0x2c3747['sectionFloating'],_0x4d8540]),_0x2f3461=(0x0,_0x33f0ff[_0xde20f9(0x2d4)])(()=>(_0x5c32ed==null?[]:_0x5c32ed)[_0xde20f9(0x3c4)](_0x2d817d=>_0x2d817d['unitId']===_0x59e8b8&&_0x2d817d[_0xde20f9(0x204)]===_0x4c4377)[_0xde20f9(0x43f)](_0x369862=>_0x369862[_0xde20f9(0x22a)]),[_0x5c32ed,_0x4c4377,_0x59e8b8]),_0x3a17dc=(_0x2e5bac=_0x2f3461[_0x2f3461[_0xde20f9(0x337)]-0x1])==null?null:_0x2e5bac,_0x8628fc=_0xcbf2ba=>{var _0x2d0183;return(_0x2d0183=_0x397819['getDrawingByParam']({'unitId':_0x59e8b8,'subUnitId':_0x4c4377,'drawingId':_0xcbf2ba}))==null?null:_0x2d0183;},_0x36bb11=_0x42a18b=>{const _0xbaf2f2=_0xde20f9;!_0x59e8b8||!_0x42a18b[_0xbaf2f2(0x337)]||_0x3208e6[_0xbaf2f2(0x216)](_0x2a2650[_0xbaf2f2(0x3c5)]['id'],{'unitId':_0x59e8b8,'drawings':_0x42a18b});},_0x359762=(_0x33fbf8,_0x4245c3)=>{_0x8628fc(_0x33fbf8)&&_0x36bb11([{'unitId':_0x59e8b8,'subUnitId':_0x4c4377,'drawingId':_0x33fbf8,..._0x4245c3}]);},_0x3b013e=(_0x5472f5,_0x17dfdc)=>{const _0x4c24e3=_0xde20f9;if(!_0x59e8b8||!_0x4c4377)return;let _0x27e9b9=_0x17dfdc?_0x2f3461[_0x4c24e3(0x3c2)](_0x5472f5)?_0x2f3461['filter'](_0x51f807=>_0x51f807!==_0x5472f5):[..._0x2f3461,_0x5472f5]:[_0x5472f5];_0x3208e6[_0x4c24e3(0x1fa)](_0x215a9[_0x4c24e3(0x3b4)]['id'],_0x27e9b9[_0x4c24e3(0x43f)](_0x3eb2de=>({'unitId':_0x59e8b8,'subUnitId':_0x4c4377,'drawingId':_0x3eb2de})));let _0x2ba1e7=_0x27e9b9[_0x27e9b9[_0x4c24e3(0x337)]-0x1];_0x2ba1e7?(0x0,_0x25b599['activateDrawingObject'])(_0x39cfbf,{'unitId':_0x59e8b8,'subUnitId':_0x4c4377,'drawingId':_0x2ba1e7}):(0x0,_0x25b599[_0x4c24e3(0x3b7)])(_0x39cfbf,_0x59e8b8);},_0x2894e2=(_0x33cb6e,_0x1e3864)=>{const _0x19e818=_0xde20f9;_0x36bb11(_0x33cb6e[_0x19e818(0x43f)](_0x19500d=>_0x8628fc(_0x19500d))[_0x19e818(0x3c4)](_0x40b6b8=>!!_0x40b6b8)['filter'](_0x5abcc8=>_0x5abcc8[_0x19e818(0x1f2)]!==!0x0!==_0x1e3864)[_0x19e818(0x43f)](_0x508cc7=>({'unitId':_0x59e8b8,'subUnitId':_0x4c4377,'drawingId':_0x508cc7['drawingId'],'hidden':!_0x1e3864})));},_0x49b1d8=_0x279c94=>{const _0xf6e29d=_0xde20f9;let _0x2d1538=_0x8628fc(_0x279c94);_0x2d1538&&_0x359762(_0x279c94,{'selectable':_0x2d1538[_0xf6e29d(0x192)]===!0x1&&void 0x0});},_0x541679=(_0x102e06,_0x159aae)=>{const _0x183daa=_0xde20f9;var _0x490660,_0x5ad4bd;let _0x326474=_0x32de57(_0x159aae);((_0x490660=(_0x5ad4bd=_0x8628fc(_0x102e06))==null?void 0x0:_0x5ad4bd[_0x183daa(0x454)])==null?void 0x0:_0x490660)!==_0x326474&&_0x359762(_0x102e06,{'name':_0x326474});},_0x14e4f4=(_0x44b12b,_0x10a2fa)=>{const _0x3ddb11=_0xde20f9;var _0x47fcf1,_0x1952db;let _0x39e949=_0x32de57(_0x10a2fa);((_0x47fcf1=(_0x1952db=_0x8628fc(_0x44b12b))==null?void 0x0:_0x1952db[_0x3ddb11(0x242)])==null?void 0x0:_0x47fcf1)!==_0x39e949&&_0x359762(_0x44b12b,{'description':_0x39e949});},_0x2d1a87=(_0x216f2b,_0x2fdd86)=>{const _0x97295b=_0xde20f9;!_0x59e8b8||!_0x4c4377||_0x3208e6[_0x97295b(0x216)](_0x2a2650[_0x97295b(0x368)]['id'],{'unitId':_0x59e8b8,'subUnitId':_0x4c4377,'drawingIds':[_0x216f2b],'arrangeType':_0x2fdd86});};return!_0x59e8b8||!_0x4c4377?(0x0,_0x2dcc44[_0xde20f9(0x32e)])(_0xde20f9(0x25c),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x2c3747['title']}):(0x0,_0x2dcc44[_0xde20f9(0x32e)])(_0x34fb64[_0xde20f9(0x2aa)],{'items':_0x497080,'selectedIds':_0x2f3461,'focusedId':_0x3a17dc,'labels':_0x2c3747,'onSelect':_0x3b013e,'onSetVisible':_0x2894e2,'onCommitName':_0x541679,'onCommitDescription':_0x14e4f4,'onMoveForward':_0x419892=>_0x2d1a87(_0x419892,_0x2eccf5[_0xde20f9(0x2c4)]['forward']),'onMoveBackward':_0x1a3797=>_0x2d1a87(_0x1a3797,_0x2eccf5[_0xde20f9(0x2c4)]['backward']),'onToggleSelectable':_0x49b1d8});}let _0x2950cd=class{constructor(_0x5f04e1){const _0x43dcd6=_0x1e3977;this[_0x43dcd6(0x3ba)]=_0x5f04e1;}[_0x1e3977(0x350)](_0x4017c9,_0x1b007a){const _0x2841bd=_0x1e3977;let _0x459063=this['_renderManagerService'][_0x2841bd(0x2be)](_0x4017c9[_0x2841bd(0x387)]),_0x4a0c99=_0x459063==null?void 0x0:_0x459063[_0x2841bd(0x14a)];if(!_0x4a0c99)return;let _0x34a44f=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])(_0x4017c9),_0x421216=_0x4a0c99['getObjectIncludeInGroup'](_0x34a44f);_0x421216==null||_0x421216[_0x2841bd(0x450)](_0x1b007a);}};_0x2950cd=_0xba323d([_0x5a8c13(0x0,_0x114b3e[_0x1e3977(0x42b)])],_0x2950cd);function _0x22e8ac(){const _0x13a17a=_0x1e3977;let _0x1543d2=(0x0,_0x4b5551[_0x13a17a(0x11c)])(_0x215a9[_0x13a17a(0x18c)]),_0x2a8a1f=(0x0,_0x4b5551[_0x13a17a(0x2af)])(()=>_0x1543d2['focus$'],_0x1543d2['getFocusDrawings'](),!0x1,[_0x1543d2]);return _0x2a8a1f[_0x13a17a(0x337)]===0x0?null:(0x0,_0x2dcc44[_0x13a17a(0x32e)])(_0x13a17a(0x25c),{'children':(0x0,_0x2dcc44[_0x13a17a(0x149)])('div',{'className':_0x13a17a(0x224),'children':[(0x0,_0x2dcc44['jsx'])(_0x34fb64[_0x13a17a(0x1ad)],{'drawings':_0x2a8a1f,'hasCropper':!0x1}),(0x0,_0x2dcc44[_0x13a17a(0x32e)])(_0x101b82[_0x13a17a(0x28c)],{'drawings':_0x2a8a1f})]})});}function _0x1d45ee(_0x1c1493){const _0xccb28e=_0x1e3977;let {unitId:_0x45b560,subUnitId:_0x1bc2aa,shapeId:_0x491624}=_0x1c1493,_0x32f731=(0x0,_0x4b5551[_0xccb28e(0x11c)])(_0x2eccf5[_0xccb28e(0x1b2)]),_0x16e1e8=(0x0,_0x4b5551[_0xccb28e(0x11c)])(_0x2950cd);return(0x0,_0x2dcc44['jsx'])(_0x25b599[_0xccb28e(0x168)],{..._0x1c1493,'positionEditor':(0x0,_0x2dcc44[_0xccb28e(0x32e)])(_0x22e8ac,{}),'onUpdateShapeData':(_0x2eddf8,_0x519e3c)=>{_0x3cdd2e(_0x32f731,_0x45b560,_0x1bc2aa,_0x491624,_0x2eddf8,_0x519e3c);},'onUpdateLineShapeData':(_0x5f2c00,_0x12195a)=>{_0x43c867(_0x32f731,_0x45b560,_0x1bc2aa,_0x491624,_0x5f2c00,_0x12195a);},'onUpdateShapeFillImage':_0x26bce4=>{_0x16e1e8['updateShapeFillImage']({'unitId':_0x45b560,'subUnitId':_0x1bc2aa,'drawingId':_0x491624},_0x26bce4);}});}function _0x11b3b1(_0x1b1b3c){const _0x2805c3=_0x1e3977;let _0x5511d9=_0x1b1b3c[_0x2805c3(0x305)]['extraProps'];return _0x5511d9?(0x0,_0x2dcc44[_0x2805c3(0x32e)])(_0x4dcbaf,{..._0x5511d9}):null;}function _0x4dcbaf(_0x240d01){const _0x27019a=_0x1e3977;var _0x409270,_0xdc311d;let _0x21ca2=(0x0,_0x4b5551[_0x27019a(0x11c)])(_0x2eccf5[_0x27019a(0x1b2)]),_0x2c3bec=(0x0,_0x4b5551[_0x27019a(0x11c)])(_0x1b87be['SheetsShapeService']),{unitId:_0x4d4597,subUnitId:_0x2e40c7,drawingId:_0x5e3126,drawingType:_0xc8f1b6,shapeType:_0xca6746}=_0x240d01,[_0x4e87e3,_0x1e5c2d]=(0x0,_0x33f0ff[_0x27019a(0x375)])(_0x240d01['shapeData']),_0x413f72=(0x0,_0x33f0ff[_0x27019a(0x2d4)])(()=>(0x0,_0x25b599['getTextStyle'])(_0x4e87e3),[_0x4e87e3]),_0x4e621c=(0x0,_0x33f0ff[_0x27019a(0x2d4)])(()=>(0x0,_0x25b599[_0x27019a(0x42e)])(_0x4e87e3),[_0x4e87e3]);(0x0,_0x33f0ff[_0x27019a(0x3cc)])(()=>{const _0x2edb8f=_0x27019a;let _0x3d388a=_0x21ca2[_0x2edb8f(0x17a)](_0x2b6ce5=>{const _0x2c7ccc=_0x2edb8f;if(_0x2b6ce5['id']!==_0x1b87be[_0x2c7ccc(0x3da)]['id'])return;let _0x1b1be0=_0x2c3bec['getShapeDataById'](_0x4d4597,_0x2e40c7,_0x5e3126);_0x1b1be0&&_0x1e5c2d(_0x1b1be0);});return()=>_0x3d388a[_0x2edb8f(0x175)]();},[_0x21ca2,_0x5e3126,_0x2c3bec,_0x2e40c7,_0x4d4597]);let _0x24bfc7=_0x5e5a53=>{_0x1e5c2d(_0x3cf710=>({..._0x3cf710,..._0x5e5a53}));},_0x3bfd0f=_0x3e3d27=>{const _0x157c54=_0x27019a;let _0x310e6b=(0x0,_0x25b599[_0x157c54(0x182)])(_0x4e87e3,_0x3e3d27);_0x3cdd2e(_0x21ca2,_0x4d4597,_0x2e40c7,_0x5e3126,{'oldShapeData':{'shapeText':_0x4e87e3[_0x157c54(0x160)]}},_0x310e6b),_0x24bfc7(_0x310e6b);},_0x22c66e=(0x0,_0x25b599[_0x27019a(0x3df)])({'hostType':_0x2eccf5['UniverInstanceType']['UNIVER_SHEET'],'unitId':_0x4d4597,'subUnitId':_0x2e40c7,'shapeId':_0x5e3126,'shapeData':_0x4e87e3,'onUpdateBinding':_0x28eb60=>{const _0x95a8ec=_0x27019a;let _0xe10f34={'formulaBinding':_0x28eb60};_0x3cdd2e(_0x21ca2,_0x4d4597,_0x2e40c7,_0x5e3126,{'oldShapeData':{'formulaBinding':_0x4e87e3[_0x95a8ec(0x331)]}},_0xe10f34),_0x24bfc7(_0xe10f34);}});return(0x0,_0x2dcc44['jsxs'])(_0x2dcc44[_0x27019a(0x1b8)],{'children':[(0x0,_0x2dcc44['jsx'])(_0x25b599['ShapeFloatingToolbar'],{'shapeData':_0x4e87e3,'shapeType':_0xca6746,'textStyle':{'ff':_0x3d21cd[_0x27019a(0x356)]['shapeText'][_0x27019a(0x3d8)],'fs':_0x3d21cd[_0x27019a(0x356)][_0x27019a(0x160)][_0x27019a(0x254)],'cl':{'rgb':_0x3d21cd['ShapeDefaultConfig'][_0x27019a(0x160)]['color']},..._0x413f72},'textModel':_0x4e621c?{'ha':(_0x409270=_0x4e621c['ha'])==null?_0x2eccf5['HorizontalAlign']['LEFT']:_0x409270,'va':(_0xdc311d=_0x4e621c['va'])==null?_0x2eccf5['VerticalAlign'][_0x27019a(0x422)]:_0xdc311d}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x3d21cd[_0x27019a(0x356)][_0x27019a(0x172)],'defaultGradientEndColor':_0x3d21cd[_0x27019a(0x356)][_0x27019a(0x349)],'defaultStrokeColor':_0x3d21cd[_0x27019a(0x356)][_0x27019a(0x3ed)],'extensionGroups':_0x22c66e[_0x27019a(0x38c)],'onUpdateShapeData':(_0x360bc9,_0x727d3f)=>{_0x3cdd2e(_0x21ca2,_0x4d4597,_0x2e40c7,_0x5e3126,_0x360bc9,_0x727d3f),_0x727d3f&&_0x24bfc7(_0x727d3f);},'onUpdateText':_0x3bfd0f,'onOpenPanel':()=>{_0x21ca2['executeCommand'](_0x148656['id'],{'unitId':_0x4d4597,'subUnitId':_0x2e40c7,'drawingId':_0x5e3126});},'onDelete':()=>{const _0x9fc523=_0x27019a;_0x21ca2[_0x9fc523(0x216)](_0x2a2650[_0x9fc523(0x20d)]['id'],{'unitId':_0x4d4597,'drawings':[{'unitId':_0x4d4597,'subUnitId':_0x2e40c7,'drawingId':_0x5e3126,'drawingType':_0xc8f1b6}]});}}),_0x22c66e['panel']]});}var _0x31cbef=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(..._0x633089){const _0x118621=_0x1e3977;super(..._0x633089),_0x163ed0(this,_0x118621(0x22d),new _0x124e3f['BehaviorSubject'](null)),_0x163ed0(this,'editingParams$',this[_0x118621(0x22d)]['asObservable']()),_0x163ed0(this,_0x118621(0x2d1),new _0x124e3f[(_0x118621(0x253))](!0x1)),_0x163ed0(this,_0x118621(0x1ee),this[_0x118621(0x2d1)][_0x118621(0x287)]());}['dispose'](){const _0x48f6f2=_0x1e3977;this[_0x48f6f2(0x22d)]['next'](null),this['_editingParams$']['complete'](),this[_0x48f6f2(0x2d1)][_0x48f6f2(0x1fe)](!0x1),this[_0x48f6f2(0x2d1)][_0x48f6f2(0x3bc)](),super[_0x48f6f2(0x175)]();}[_0x1e3977(0x12a)](_0xa8e3fe){const _0x12c931=_0x1e3977;this['_editingParams$'][_0x12c931(0x1fe)](_0xa8e3fe),_0xa8e3fe==null&&this[_0x12c931(0x2d1)][_0x12c931(0x1fe)](!0x1);}[_0x1e3977(0x342)](_0x5d10f0){const _0x16408f=_0x1e3977;this[_0x16408f(0x2d1)][_0x16408f(0x1fe)](_0x5d10f0);}[_0x1e3977(0x1b7)](){const _0xfe1622=_0x1e3977;return this[_0xfe1622(0x22d)][_0xfe1622(0x3d9)]();}[_0x1e3977(0x312)](_0x5afe7d){const _0x38d7b2=_0x1e3977;this[_0x38d7b2(0x1b7)]()&&(this['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x46aa16=_0x38d7b2;this[_0x46aa16(0x12a)](null);}));}[_0x1e3977(0x12e)](){const _0x328486=_0x1e3977;this[_0x328486(0x1b7)]()&&this[_0x328486(0x12a)](null);}};let _0x289f1a=(0x0,_0x33f0ff[_0x1e3977(0x30a)])(()=>{const _0x478c19=_0x1e3977;let _0x25a70e=(0x0,_0x4b5551[_0x478c19(0x11c)])(_0x31cbef),_0x3228ba=(0x0,_0x4b5551[_0x478c19(0x11c)])(_0x1b87be['SheetsShapeService']),_0x562b74=(0x0,_0x4b5551[_0x478c19(0x11c)])(_0x215a9[_0x478c19(0x18c)]),_0x23f9fb=(0x0,_0x4b5551[_0x478c19(0x11c)])(_0x2eccf5[_0x478c19(0x1b2)]),_0x1b049a=(0x0,_0x4b5551[_0x478c19(0x11c)])(_0x114b3e['IRenderManagerService']);return(0x0,_0x2dcc44[_0x478c19(0x32e)])(_0x25b599[_0x478c19(0x3c1)],{'adapter':(0x0,_0x33f0ff[_0x478c19(0x2d4)])(()=>({'getShapeModel':(_0x2631fd,_0x1b7243,_0x39d035)=>_0x3228ba[_0x478c19(0x134)](_0x2631fd,_0x1b7243,_0x39d035),'getShapeData':(_0x281d53,_0xf578f6,_0x1c32dc)=>_0x3228ba[_0x478c19(0x3b9)](_0x281d53,_0xf578f6,_0x1c32dc),'getDrawingTransform':(_0x28526e,_0x5c3986,_0x86a3b5)=>{const _0x5bd0a1=_0x478c19;let _0x520c88=_0x562b74[_0x5bd0a1(0x3d4)]({'unitId':_0x28526e,'subUnitId':_0x5c3986,'drawingId':_0x86a3b5});return _0x520c88==null?void 0x0:_0x520c88['transform'];},'updateShapeText':({unitId:_0x3c0e44,subUnitId:_0x4a152c,shapeId:_0x471c56,shapeText:_0x42c5b1,oldShapeText:_0x3ca308})=>{const _0xde68a4=_0x478c19;_0x23f9fb[_0xde68a4(0x216)](_0x5a577b['id'],{'unitId':_0x3c0e44,'subUnitId':_0x4a152c,'shapeId':_0x471c56,'shapeData':{'shapeText':_0x42c5b1},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x3ca308}}});},'updateHostSize':({unitId:_0x5b948f,subUnitId:_0x2117e2,shapeId:_0x1065fa,width:_0x363472,height:_0x2d8901})=>{const _0x1926fd=_0x478c19;var _0x2340cf,_0x54f2ec,_0x4f261c;let _0x2196ba=_0x562b74['getDrawingByParam']({'unitId':_0x5b948f,'subUnitId':_0x2117e2,'drawingId':_0x1065fa}),_0x2085a4=_0x2196ba==null?void 0x0:_0x2196ba[_0x1926fd(0x31d)];if(!_0x2196ba||!_0x2085a4)return;let _0x3569d4={..._0x2085a4,'width':_0x363472,'height':_0x2d8901},_0x27c7ba=(_0x2340cf=_0x1b049a['getRenderUnitById'](_0x5b948f))==null||(_0x2340cf=_0x2340cf['with'](_0x3c12d8[_0x1926fd(0x1ae)])['getSkeletonParam'](_0x2117e2))==null?void 0x0:_0x2340cf[_0x1926fd(0x23e)],_0x28a7b8=_0x27c7ba?(_0x54f2ec=(0x0,_0x2a2650[_0x1926fd(0x3c9)])(_0x3569d4,_0x27c7ba))==null?_0x2196ba[_0x1926fd(0x27a)]:_0x54f2ec:_0x2196ba[_0x1926fd(0x27a)],_0x404c8d=_0x27c7ba?(_0x4f261c=(0x0,_0x2a2650[_0x1926fd(0x288)])(_0x3569d4,_0x27c7ba))==null?_0x2196ba[_0x1926fd(0x2fb)]:_0x4f261c:_0x2196ba[_0x1926fd(0x2fb)];_0x23f9fb[_0x1926fd(0x216)](_0x2a2650[_0x1926fd(0x3c5)]['id'],{'unitId':_0x5b948f,'drawings':[{..._0x2196ba,'transform':_0x3569d4,'sheetTransform':_0x28a7b8,'axisAlignSheetTransform':_0x404c8d}]});},'allowHostSizeShrink':({unitId:_0x54713a,subUnitId:_0x587fca,shapeId:_0x7490ed})=>(0x0,_0x25b599[_0x478c19(0x210)])(_0x3228ba['getShapeDataById'](_0x54713a,_0x587fca,_0x7490ed))}),[_0x23f9fb,_0x562b74,_0x1b049a,_0x3228ba]),'editingService':_0x25a70e,'editorUnitId':_0x39b4a9,'positionOptions':(0x0,_0x33f0ff[_0x478c19(0x2d4)])(()=>({'viewportKeys':{'main':_0x114b3e['SHEET_VIEWPORT_KEY']['VIEW_MAIN'],'leftTop':_0x114b3e['SHEET_VIEWPORT_KEY'][_0x478c19(0x3cf)],'top':_0x114b3e[_0x478c19(0x308)][_0x478c19(0x225)],'left':_0x114b3e[_0x478c19(0x308)][_0x478c19(0x301)]},'getSkeleton':(_0x480de6,_0x26f00)=>{const _0x1169bd=_0x478c19;var _0x475b1e,_0x46a2a3;return(_0x475b1e=(_0x46a2a3=_0x480de6[_0x1169bd(0x1dc)](_0x3c12d8['SheetSkeletonManagerService'])[_0x1169bd(0x417)](_0x26f00[_0x1169bd(0x204)]))==null?void 0x0:_0x46a2a3[_0x1169bd(0x23e)])==null?null:_0x475b1e;}}),[])});}),_0x1ef4c8=class extends _0x2eccf5['Disposable']{constructor(_0xec0a48,_0x143d46){const _0x323b80=_0x1e3977;super(),this[_0x323b80(0x25f)]=_0xec0a48,this[_0x323b80(0x14d)]=_0x143d46,this['_registerIcons'](),this[_0x323b80(0x3a3)]();}[_0x1e3977(0x1e6)](){const _0x473dae=_0x1e3977;this[_0x473dae(0x14d)][_0x473dae(0x431)](_0x473dae(0x1f7))||this[_0x473dae(0x256)](this[_0x473dae(0x14d)][_0x473dae(0x1e7)]({'ObjectLayersIcon':_0x2f353d})),this[_0x473dae(0x14d)][_0x473dae(0x431)](_0x473dae(0x2f0))||this[_0x473dae(0x256)](this[_0x473dae(0x14d)][_0x473dae(0x1e7)]({'FlipHorizontalIcon':_0x194a17})),this[_0x473dae(0x14d)][_0x473dae(0x431)]('FlipVerticalIcon')||this[_0x473dae(0x256)](this[_0x473dae(0x14d)][_0x473dae(0x1e7)]({'FlipVerticalIcon':_0x1e6e5}));}[_0x1e3977(0x3a3)](){const _0x1b228c=_0x1e3977;this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)][_0x1b228c(0x1e7)](_0xb9db8d,_0x1d45ee)),this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)][_0x1b228c(0x1e7)](_0x19a922,_0x45565c)),this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)]['register'](_0x1ed21a,_0x46b9a0)),this['disposeWithMe'](this[_0x1b228c(0x25f)][_0x1b228c(0x1e7)](_0x456ca6,_0x5968f5)),this[_0x1b228c(0x25f)][_0x1b228c(0x32f)](_0x34fb64[_0x1b228c(0x2c3)])||this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)][_0x1b228c(0x1e7)](_0x34fb64[_0x1b228c(0x2c3)],_0x49666e)),this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)][_0x1b228c(0x1e7)](_0x1f1d2c,_0x11b3b1)),this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)]['register'](_0x9609bf,_0x25b599[_0x1b228c(0x1e9)])),this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)][_0x1b228c(0x1e7)](_0x1b228c(0x141),_0x289f1a));}};_0x1ef4c8=_0xba323d([_0x5a8c13(0x0,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x4b5551['ComponentManager'])),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x4b5551[_0x1e3977(0x1b6)]))],_0x1ef4c8);let _0x1970f0=class extends _0x2eccf5['Disposable']{constructor(_0x3fa445,_0x4013a3,_0x2b43db,_0x2c0d7a,_0x53bb8){const _0x3c861e=_0x1e3977;super(),this['_context']=_0x3fa445,this['_drawingManagerService']=_0x4013a3,this[_0x3c861e(0x3ba)]=_0x2b43db,this[_0x3c861e(0x18f)]=_0x2c0d7a,this['_imageShapeClipController']=_0x53bb8,_0x163ed0(this,_0x3c861e(0x354),null),_0x163ed0(this,'_unitId',null),_0x163ed0(this,_0x3c861e(0x18a),null),_0x163ed0(this,_0x3c861e(0x440),void 0x0),_0x163ed0(this,'_shapes',[]),_0x163ed0(this,_0x3c861e(0x426),0x0),_0x163ed0(this,_0x3c861e(0x3de),0x0),_0x163ed0(this,_0x3c861e(0x382),0x0),_0x163ed0(this,_0x3c861e(0x2ab),0x0),_0x163ed0(this,_0x3c861e(0x1bd),!0x1),_0x163ed0(this,_0x3c861e(0x420),void 0x0),_0x163ed0(this,_0x3c861e(0x190),void 0x0),_0x163ed0(this,_0x3c861e(0x161),void 0x0),_0x163ed0(this,_0x3c861e(0x153),void 0x0),_0x163ed0(this,_0x3c861e(0x112),!0x1),this[_0x3c861e(0x184)](),this[_0x3c861e(0x13b)]();}[_0x1e3977(0x414)](){this['_clearControls']();}['refreshAdjustControls'](){const _0x15196a=_0x1e3977;this[_0x15196a(0x442)](),this[_0x15196a(0x3e4)](!0x0);}[_0x1e3977(0x3a9)](_0x46b908,_0x28c158,_0x3de600,_0x3eb49d){const _0x5074a9=_0x1e3977;let _0x165224=_0x46b908;if(_0x165224!==_0x3d21cd['ShapeTypeEnum'][_0x5074a9(0x174)]&&_0x46b908!==_0x5074a9(0x2c7))try{let _0x12e4b2=new _0x3d21cd[(_0x5074a9(0x33b))](_0x165224,_0x5074a9(0x30f)+_0x46b908);return _0x3eb49d&&_0x12e4b2[_0x5074a9(0x25a)]({'adjustValues':_0x3eb49d},!0x0),_0x12e4b2['updateContext']({'width':_0x28c158,'height':_0x3de600}),_0x12e4b2;}catch{return;}}[_0x1e3977(0x1a4)](_0x836a82,_0x133dc4,_0x9513c9){const _0x2aec9d=_0x1e3977;let _0x3c31f2={'unitId':_0x836a82,'subUnitId':_0x133dc4,'drawingId':_0x9513c9},_0x221c98=this[_0x2aec9d(0x1a2)][_0x2aec9d(0x3d4)](_0x3c31f2);if(!(!_0x221c98||_0x221c98[_0x2aec9d(0x34b)]!==_0x2eccf5[_0x2aec9d(0x43b)][_0x2aec9d(0x22c)]))return _0x221c98;}[_0x1e3977(0x171)](_0x31ed43,_0x2155a3,_0x34c318){const _0x3357a0=_0x1e3977;let _0x16b673=this['_renderManagerService'][_0x3357a0(0x2be)](_0x31ed43);if(!_0x16b673)return;let {scene:_0x32008c}=_0x16b673,_0x5ca56a=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x31ed43,'subUnitId':_0x2155a3,'drawingId':_0x34c318}),_0x17eea4=_0x32008c[_0x3357a0(0x1a8)](_0x5ca56a);if(_0x17eea4 instanceof _0x114b3e[_0x3357a0(0x3c3)]){let _0x5b8eb2=_0x17eea4[_0x3357a0(0x18e)];if(_0x5b8eb2)return{'prstGeom':_0x5b8eb2,'adjustValues':_0x17eea4[_0x3357a0(0x2ff)]};}}[_0x1e3977(0x3e4)](_0x552f19=!0x1){const _0x5cf6c5=_0x1e3977;if(!this[_0x5cf6c5(0x44e)]||!this[_0x5cf6c5(0x18a)]||!this[_0x5cf6c5(0x354)])return;let _0x474644=this['_renderManagerService'][_0x5cf6c5(0x2be)](this['_unitId']);if(!_0x474644||!_0x474644[_0x5cf6c5(0x1dc)](_0x3c12d8['SheetSkeletonManagerService'])[_0x5cf6c5(0x26d)]())return;let {scene:_0x50844b}=_0x474644,_0x1bfe4d=this[_0x5cf6c5(0x1a4)](this[_0x5cf6c5(0x44e)],this[_0x5cf6c5(0x18a)],this[_0x5cf6c5(0x354)]);if(!_0x1bfe4d)return;let {transform:_0x42c56f}=_0x1bfe4d;if(!_0x42c56f)return;let {left:_0x173cff,top:_0x638cb9,width:_0x234acd,height:_0x543965,flipX:_0x64708e,flipY:_0x80a2da,angle:_0x3ced37=0x0}=_0x42c56f;if(_0x173cff===void 0x0||_0x638cb9===void 0x0)return;let _0x405c23=this[_0x5cf6c5(0x171)](this[_0x5cf6c5(0x44e)],this[_0x5cf6c5(0x18a)],this[_0x5cf6c5(0x354)]);if(!_0x405c23)return;if(_0x552f19){let _0x313c7c=this[_0x5cf6c5(0x3a9)](_0x405c23[_0x5cf6c5(0x18e)],_0x234acd||0x0,_0x543965||0x0,_0x405c23[_0x5cf6c5(0x37d)]);if(!_0x313c7c)return;this[_0x5cf6c5(0x440)]=_0x313c7c[_0x5cf6c5(0x22e)]();}let _0x3f492a=this[_0x5cf6c5(0x440)];if(!(!_0x3f492a||_0x3f492a['length']===0x0))for(let _0x280291=0x0;_0x280291<_0x3f492a[_0x5cf6c5(0x337)];_0x280291++){let _0x4e5758=_0x3f492a[_0x280291],_0x3530c1=_0x4e5758['x'],_0x18c428=_0x4e5758['y'];if(_0x64708e&&(_0x3530c1=(_0x234acd||0x0)-_0x3530c1),_0x80a2da&&(_0x18c428=(_0x543965||0x0)-_0x18c428),_0x3ced37!==0x0){let _0x2cbc6b=(_0x234acd||0x0)/0x2,_0x154c7b=(_0x543965||0x0)/0x2,_0x4f65da=_0x3ced37*Math['PI']/0xb4,_0x343ec1=Math[_0x5cf6c5(0x1fb)](_0x4f65da),_0x3affaf=Math['sin'](_0x4f65da),_0x544aa8=_0x3530c1-_0x2cbc6b,_0x410d08=_0x18c428-_0x154c7b;_0x3530c1=_0x2cbc6b+(_0x544aa8*_0x343ec1-_0x410d08*_0x3affaf),_0x18c428=_0x154c7b+(_0x544aa8*_0x3affaf+_0x410d08*_0x343ec1);}let _0x1dd7b6={'x':_0x3530c1,'y':_0x18c428,'adjName':_0x4e5758[_0x5cf6c5(0x19b)]};this[_0x5cf6c5(0x118)](_0x50844b,_0x1dd7b6,_0x1dd7b6[_0x5cf6c5(0x19b)],_0x173cff,_0x638cb9,this[_0x5cf6c5(0x44e)],this[_0x5cf6c5(0x18a)]);}}['_addControl'](_0x59af6f,_0x5edca9,_0x35ff01,_0xdf88c1,_0x4ba137,_0x135d65,_0x5580ad){const _0x38fec5=_0x1e3977;if(!this[_0x38fec5(0x354)])return;let _0x26387d=_0x38fec5(0x3dc)+this[_0x38fec5(0x354)]+'-'+_0x35ff01,_0x2d89ae=_0x59af6f[_0x38fec5(0x2a4)](_0x26387d);if(_0x2d89ae){_0x2d89ae[_0x38fec5(0x1c7)]({'left':_0x5edca9['x']+_0xdf88c1-_0x3d21cd[_0x38fec5(0x356)][_0x38fec5(0x17d)],'top':_0x5edca9['y']+_0x4ba137-_0x3d21cd['ShapeDefaultConfig'][_0x38fec5(0x17d)]});return;}let _0x1280c4=new _0x372832(_0x26387d,{'left':_0x5edca9['x']+_0xdf88c1-_0x3d21cd[_0x38fec5(0x356)][_0x38fec5(0x17d)],'top':_0x5edca9['y']+_0x4ba137-_0x3d21cd['ShapeDefaultConfig'][_0x38fec5(0x17d)],'adjName':_0x35ff01,'shapeId':this[_0x38fec5(0x354)],'unitId':_0x135d65,'subUnitId':_0x5580ad,'width':_0x3d21cd['ShapeDefaultConfig'][_0x38fec5(0x17d)]+0x8,'height':_0x3d21cd[_0x38fec5(0x356)][_0x38fec5(0x17d)]+0x8,'zIndex':_0x114b3e['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0x38fec5(0x1aa)][_0x38fec5(0x1b1)](_0x1280c4),this[_0x38fec5(0x3f1)](_0x1280c4,_0x59af6f,_0x35ff01),_0x59af6f['addObject'](_0x1280c4,_0x114b3e[_0x38fec5(0x3e0)]+0x1);}[_0x1e3977(0x442)](){const _0x2e446b=_0x1e3977;this[_0x2e446b(0x1aa)]['length']!==0x0&&(this['_shapes'][_0x2e446b(0x30e)](_0x223121=>_0x223121[_0x2e446b(0x175)]()),this[_0x2e446b(0x1aa)]=[]);}[_0x1e3977(0x1c3)](_0x26342e,_0x1ea9d7){const _0x37dbb1=_0x1e3977;var _0x4d370c;let _0x318a20={'x':0x0,'y':0x0},_0x89e971=this['_renderManagerService'][_0x37dbb1(0x2be)](_0x26342e);if(!_0x89e971||!_0x89e971['with'](_0x3c12d8[_0x37dbb1(0x1ae)])[_0x37dbb1(0x367)](_0x1ea9d7))return _0x318a20;let _0x51bc21=_0x89e971[_0x37dbb1(0x1dc)](_0x3c12d8[_0x37dbb1(0x3ee)]),_0x200589=_0x51bc21==null?void 0x0:_0x51bc21[_0x37dbb1(0x3b2)]();if(!_0x200589)return _0x318a20;let _0x3980de=(_0x4d370c=this[_0x37dbb1(0x18f)][_0x37dbb1(0x2f8)](_0x26342e))==null?void 0x0:_0x4d370c['getSheetBySheetId'](_0x1ea9d7);if(!_0x3980de)return _0x318a20;let _0x214aff=(0x0,_0x3c12d8[_0x37dbb1(0x1ba)])(_0x200589['sheetViewStartRow'],_0x200589['sheetViewStartColumn'],_0x89e971['scene'],_0x3980de);return _0x214aff?{'x':_0x214aff[_0x37dbb1(0x3d1)],'y':_0x214aff[_0x37dbb1(0x446)]}:_0x318a20;}[_0x1e3977(0x427)](_0x12c5dd,_0x27567b){const _0x254048=_0x1e3977;var _0x1b4292,_0x2e94d9;let _0x2485a9=(_0x1b4292=this[_0x254048(0x18f)][_0x254048(0x2f8)](_0x12c5dd))==null?void 0x0:_0x1b4292[_0x254048(0x269)](_0x27567b);return(_0x2e94d9=_0x2485a9==null?void 0x0:_0x2485a9[_0x254048(0x374)]())==null?0x1:_0x2e94d9;}['_attachAdjustEvent'](_0x3cc853,_0x2731cb,_0x1e98fd){const _0x925634=_0x1e3977;this['disposeWithMe']((0x0,_0x2eccf5[_0x925634(0x351)])(_0x3cc853['onPointerDown$'][_0x925634(0x447)]((_0xe77460,_0x2d8c0a)=>{const _0x59e9d5=_0x925634;var _0x377704,_0x2693e1,_0x39095b;let {unitId:_0x2c93a8,subUnitId:_0x228c4f,drawingId:_0x8fa038}=_0x3cc853[_0x59e9d5(0x26e)](),_0x5e4cc9=this[_0x59e9d5(0x1a4)](_0x2c93a8,_0x228c4f,_0x8fa038);if(!(_0x5e4cc9!=null&&_0x5e4cc9[_0x59e9d5(0x31d)]))return;let {left:_0x21c60b,top:_0x2c3998,width:_0x262392,height:_0x1783f1}=_0x5e4cc9[_0x59e9d5(0x31d)];this[_0x59e9d5(0x426)]=_0x21c60b||0x0,this[_0x59e9d5(0x3de)]=_0x2c3998||0x0,this[_0x59e9d5(0x382)]=_0x262392||0x0,this[_0x59e9d5(0x2ab)]=_0x1783f1||0x0;let _0x224a5e=!!((_0x377704=_0x5e4cc9[_0x59e9d5(0x31d)])!=null&&_0x377704[_0x59e9d5(0x23d)]),_0x1e35e2=!!((_0x2693e1=_0x5e4cc9[_0x59e9d5(0x31d)])!=null&&_0x2693e1[_0x59e9d5(0x1ac)]),_0x4cd614=((_0x39095b=_0x5e4cc9[_0x59e9d5(0x31d)])==null?void 0x0:_0x39095b[_0x59e9d5(0x1bf)])||0x0,_0x3ae807=this[_0x59e9d5(0x171)](_0x2c93a8,_0x228c4f,_0x8fa038);if(!_0x3ae807)return;let _0x4dab28=this['_getOrCreateShapeModel'](_0x3ae807[_0x59e9d5(0x18e)],this[_0x59e9d5(0x382)],this[_0x59e9d5(0x2ab)],_0x3ae807['adjustValues']);if(!_0x4dab28||(this[_0x59e9d5(0x190)]=_0x4dab28,this[_0x59e9d5(0x420)]=_0x4dab28[_0x59e9d5(0x402)](_0x1e98fd),!this[_0x59e9d5(0x420)]))return;this['_isStartAdjusting']=!0x0,_0x2731cb['disableObjectsEvent']();let _0x434ad4=_0x3ae807[_0x59e9d5(0x18e)];this[_0x59e9d5(0x161)]=_0x2731cb[_0x59e9d5(0x307)][_0x59e9d5(0x447)]((_0x3ea717,_0x24a3e0)=>{const _0x22aa3e=_0x59e9d5;if(!this[_0x22aa3e(0x1bd)])return;let {offsetX:_0x227133,offsetY:_0x4149d6}=_0x3ea717,_0x5e50fc=this[_0x22aa3e(0x420)];if(!this[_0x22aa3e(0x190)]||!_0x5e50fc)return;_0x2731cb[_0x22aa3e(0x415)](),_0x2731cb['setCursor'](_0x114b3e[_0x22aa3e(0x2c2)][_0x22aa3e(0x226)]);let _0x419542={'left':0x0,'top':0x0,'width':this[_0x22aa3e(0x382)],'height':this[_0x22aa3e(0x2ab)]},_0x5f3a53=this['_getScrollInfo'](_0x2c93a8,_0x228c4f),_0x53a3c8=this[_0x22aa3e(0x427)](_0x2c93a8,_0x228c4f),_0x522856=_0x227133/_0x53a3c8+_0x5f3a53['x']-this['_baseLeft'],_0x40eee4=_0x4149d6/_0x53a3c8+_0x5f3a53['y']-this[_0x22aa3e(0x3de)];if(_0x4cd614!==0x0){let _0x14cc2b=this['_baseWidth']/0x2,_0x4ede70=this['_baseHeight']/0x2,_0x26c906=_0x4cd614*Math['PI']/0xb4,_0x48a983=Math[_0x22aa3e(0x1fb)](_0x26c906),_0x55dc67=Math[_0x22aa3e(0x1b5)](_0x26c906),_0x137bbf=_0x522856-_0x14cc2b,_0x5523f9=_0x40eee4-_0x4ede70;_0x522856=_0x14cc2b+(_0x137bbf*_0x48a983+_0x5523f9*_0x55dc67),_0x40eee4=_0x4ede70+(-_0x137bbf*_0x55dc67+_0x5523f9*_0x48a983);}_0x224a5e&&(_0x522856=this[_0x22aa3e(0x382)]-_0x522856),_0x1e35e2&&(_0x40eee4=this['_baseHeight']-_0x40eee4);let _0x26d13f=this[_0x22aa3e(0x190)][_0x22aa3e(0x36e)](_0x419542,{'x':_0x522856,'y':_0x40eee4},_0x5e50fc,_0x224a5e,_0x1e35e2);if(Object[_0x22aa3e(0x391)](_0x26d13f)['length']!==0x0){for(let [_0x321c70,_0x192243]of Object['entries'](_0x26d13f))this[_0x22aa3e(0x190)][_0x22aa3e(0x2db)](_0x321c70,_0x192243);this['_activeShapeModel']['updateContext']({'width':this[_0x22aa3e(0x382)],'height':this[_0x22aa3e(0x2ab)]}),this[_0x22aa3e(0x159)](_0x2c93a8,_0x228c4f,_0x8fa038,_0x26d13f),this[_0x22aa3e(0x440)]=this['_activeShapeModel']['getDrawingPoints'](),this[_0x22aa3e(0x3e4)](),_0x24a3e0[_0x22aa3e(0x19d)]();}}),this[_0x59e9d5(0x153)]=_0x2731cb[_0x59e9d5(0x292)]['subscribeEvent']((_0x5be1da,_0x38c21a)=>{const _0x49b6d2=_0x59e9d5;if(this[_0x49b6d2(0x161)][_0x49b6d2(0x369)](),this[_0x49b6d2(0x153)][_0x49b6d2(0x369)](),_0x2731cb[_0x49b6d2(0x128)](),this[_0x49b6d2(0x190)]){let _0x499cfa=this['_activeShapeModel'][_0x49b6d2(0x27f)](),_0x2a351e={};for(let _0x5d756f of _0x499cfa){let _0x5d4ad6=this[_0x49b6d2(0x190)][_0x49b6d2(0x179)](_0x5d756f);_0x5d4ad6!==void 0x0&&(_0x2a351e[_0x5d756f]=_0x5d4ad6);}this[_0x49b6d2(0x2e8)][_0x49b6d2(0x2a0)](_0x2c93a8,_0x228c4f,_0x8fa038,_0x434ad4,_0x2a351e);}this[_0x49b6d2(0x420)]=void 0x0,this[_0x49b6d2(0x190)]=void 0x0,this[_0x49b6d2(0x1bd)]=!0x1,_0x38c21a[_0x49b6d2(0x19d)](),_0x2731cb[_0x49b6d2(0x1ce)]();}),_0x2d8c0a['stopPropagation']();})));}[_0x1e3977(0x159)](_0x5229dc,_0x2cbc37,_0x239cb0,_0x48eaad){const _0x4442a0=_0x1e3977;let _0x144848=this[_0x4442a0(0x3ba)]['getRenderUnitById'](_0x5229dc);if(!_0x144848)return;let {scene:_0x40bbd3}=_0x144848,_0x27d618=(0x0,_0x215a9[_0x4442a0(0x2ee)])({'unitId':_0x5229dc,'subUnitId':_0x2cbc37,'drawingId':_0x239cb0}),_0x3604fb=_0x40bbd3[_0x4442a0(0x1a8)](_0x27d618);if(_0x3604fb instanceof _0x114b3e['Image']){var _0x3c4ff4;let _0x152830=(_0x3c4ff4=_0x3604fb[_0x4442a0(0x2ff)])==null?{}:_0x3c4ff4;_0x3604fb['setPrstGeomAdjValues']({..._0x152830,..._0x48eaad}),_0x3604fb['makeDirty'](!0x0);}}['_registerMoveHandler'](){const _0x44dfda=_0x1e3977;let _0x54d250=this[_0x44dfda(0x18f)][_0x44dfda(0x2b4)](_0x2eccf5[_0x44dfda(0x296)][_0x44dfda(0x293)]);this['disposeWithMe'](_0x54d250['pipe']((0x0,_0x124e3f['switchMap'])(_0x346c5f=>_0x346c5f?_0x346c5f[_0x44dfda(0x445)][_0x44dfda(0x239)]((0x0,_0x124e3f[_0x44dfda(0x37e)])(_0x1f7da1=>{const _0x57cdbb=_0x44dfda;if(!_0x1f7da1)return _0x124e3f[_0x57cdbb(0x341)];let _0x1abce7=_0x346c5f[_0x57cdbb(0x322)](),_0x528082=this[_0x57cdbb(0x3ba)][_0x57cdbb(0x2be)](_0x1abce7),_0x48557d=_0x528082==null?void 0x0:_0x528082[_0x57cdbb(0x14a)];return _0x48557d?(0x0,_0x124e3f['of'])(_0x48557d):_0x124e3f[_0x57cdbb(0x341)];})):_0x124e3f[_0x44dfda(0x341)]))[_0x44dfda(0x17b)](_0x37fe87=>{const _0xfa4761=_0x44dfda;let _0x3b6d07=_0x37fe87['getTransformerByCreate']();this['disposeWithMe'](_0x37fe87[_0xfa4761(0x307)][_0xfa4761(0x447)](()=>{const _0xfde7a8=_0xfa4761;this[_0xfde7a8(0x112)]&&this['_clearControls']();})),this[_0xfa4761(0x256)](_0x3b6d07[_0xfa4761(0x24c)]['subscribe'](_0x314cdf=>{const _0x410e5a=_0xfa4761;let {objects:_0x1b5a62}=_0x314cdf;if(this[_0x410e5a(0x3e4)](),_0x1b5a62!==null&&_0x1b5a62[_0x410e5a(0x419)]===0x1){let _0x274121=_0x1b5a62[_0x410e5a(0x158)]()[_0x410e5a(0x1fe)]()[_0x410e5a(0x123)];_0x274121 instanceof _0x114b3e[_0x410e5a(0x3c3)]&&_0x274121[_0x410e5a(0x18e)]&&(this[_0x410e5a(0x112)]=!0x0);}})),this[_0xfa4761(0x256)](_0x3b6d07[_0xfa4761(0x3be)][_0xfa4761(0x17b)](()=>{const _0x1b3109=_0xfa4761;this[_0x1b3109(0x112)]&&this[_0x1b3109(0x442)]();})),this[_0xfa4761(0x256)](_0x37fe87['onPointerUp$'][_0xfa4761(0x447)](()=>{const _0x2753c0=_0xfa4761;this[_0x2753c0(0x112)]&&(this[_0x2753c0(0x112)]=!0x1,this[_0x2753c0(0x3e4)]());})),this[_0xfa4761(0x256)](_0x3b6d07['changeEnd$'][_0xfa4761(0x17b)](()=>{const _0x2e8c97=_0xfa4761;if(this[_0x2e8c97(0x44e)]&&this['_subUnitId']&&this[_0x2e8c97(0x354)]){let _0x28fe79=this[_0x2e8c97(0x171)](this[_0x2e8c97(0x44e)],this[_0x2e8c97(0x18a)],this['_activeImageId']);if(_0x28fe79){var _0x3217de,_0x2b6d30;let _0x38e383=this[_0x2e8c97(0x1a4)](this[_0x2e8c97(0x44e)],this[_0x2e8c97(0x18a)],this[_0x2e8c97(0x354)]),_0x149c5b=(_0x38e383==null||(_0x3217de=_0x38e383[_0x2e8c97(0x31d)])==null?void 0x0:_0x3217de['width'])||0x0,_0x49f310=(_0x38e383==null||(_0x2b6d30=_0x38e383[_0x2e8c97(0x31d)])==null?void 0x0:_0x2b6d30[_0x2e8c97(0x196)])||0x0,_0xed0dd2=this[_0x2e8c97(0x3a9)](_0x28fe79['prstGeom'],_0x149c5b,_0x49f310,_0x28fe79[_0x2e8c97(0x37d)]);_0xed0dd2&&(this[_0x2e8c97(0x440)]=_0xed0dd2[_0x2e8c97(0x22e)](),this[_0x2e8c97(0x442)](),this[_0x2e8c97(0x3e4)](!0x0));}}}));}));}[_0x1e3977(0x184)](){const _0x1d599f=_0x1e3977;this[_0x1d599f(0x256)](this[_0x1d599f(0x1a2)]['focus$']['subscribe'](_0xbbe5a8=>{const _0x424aaf=_0x1d599f;if(_0xbbe5a8['length']===0x1){let _0x3d6e03=_0xbbe5a8[0x0];if(_0x3d6e03['drawingType']===_0x2eccf5['DrawingTypeEnum']['DRAWING_IMAGE']){let {unitId:_0x189343,subUnitId:_0x43d86e,drawingId:_0x415e0c}=_0x3d6e03,_0x400487=this[_0x424aaf(0x171)](_0x189343,_0x43d86e,_0x415e0c);if(_0x400487){var _0x2fc4ba,_0x30c360;this[_0x424aaf(0x354)]=_0x415e0c,this[_0x424aaf(0x44e)]=_0x189343,this['_subUnitId']=_0x43d86e;let _0x8df1c6=this['_getImageDrawingInfo'](_0x189343,_0x43d86e,_0x415e0c),_0x2b3ae3=(_0x8df1c6==null||(_0x2fc4ba=_0x8df1c6[_0x424aaf(0x31d)])==null?void 0x0:_0x2fc4ba[_0x424aaf(0x1f0)])||0x0,_0x31e454=(_0x8df1c6==null||(_0x30c360=_0x8df1c6[_0x424aaf(0x31d)])==null?void 0x0:_0x30c360[_0x424aaf(0x196)])||0x0,_0x457109=this['_getOrCreateShapeModel'](_0x400487[_0x424aaf(0x18e)],_0x2b3ae3,_0x31e454,_0x400487['adjustValues']);_0x457109&&(this['_activeAdjustPointList']=_0x457109[_0x424aaf(0x22e)]()),this['_clearControls'](),this[_0x424aaf(0x3e4)](!0x0);}else this[_0x424aaf(0x1a5)]();}else this['_resetState']();}else this[_0x424aaf(0x1a5)]();})),this[_0x1d599f(0x256)](this[_0x1d599f(0x1a2)][_0x1d599f(0x35f)][_0x1d599f(0x17b)](_0x207dd6=>{const _0x4bc26e=_0x1d599f;if(_0x207dd6[_0x4bc26e(0x337)]===0x1){let _0x582b40=_0x207dd6[0x0],_0x34a918=this[_0x4bc26e(0x1a2)][_0x4bc26e(0x3d4)](_0x582b40);(_0x34a918==null?void 0x0:_0x34a918[_0x4bc26e(0x34b)])===_0x2eccf5[_0x4bc26e(0x43b)]['DRAWING_IMAGE']&&this['_activeImageId']===_0x582b40['drawingId']&&(this[_0x4bc26e(0x442)](),this[_0x4bc26e(0x3e4)](!0x0));}})),this['disposeWithMe'](this['_drawingManagerService'][_0x1d599f(0x3fa)][_0x1d599f(0x17b)](_0x21734b=>{const _0x1c3bfe=_0x1d599f;for(let _0x4fc74e of _0x21734b)this['_activeImageId']===_0x4fc74e[_0x1c3bfe(0x22a)]&&this[_0x1c3bfe(0x1a5)]();}));}[_0x1e3977(0x1a5)](){const _0x51cfd9=_0x1e3977;this[_0x51cfd9(0x354)]=null,this[_0x51cfd9(0x44e)]=null,this[_0x51cfd9(0x18a)]=null,this[_0x51cfd9(0x440)]=void 0x0,this[_0x51cfd9(0x442)]();}};_0x1970f0=_0xba323d([_0x5a8c13(0x1,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x2,(0x0,_0x2eccf5['Inject'])(_0x114b3e[_0x1e3977(0x42b)])),_0x5a8c13(0x3,_0x2eccf5[_0x1e3977(0x178)]),_0x5a8c13(0x4,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x432d68))],_0x1970f0);let _0x3f5298=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x5b129f,_0x3ef977,_0x4f56e1,_0x266337){const _0x550ba3=_0x1e3977;super(),this['_univerInstanceService']=_0x5b129f,this['_sheetInterceptorService']=_0x3ef977,this[_0x550ba3(0x262)]=_0x4f56e1,this[_0x550ba3(0x36d)]=_0x266337,this[_0x550ba3(0x411)]();}[_0x1e3977(0x411)](){const _0x4f9bfd=_0x1e3977;this[_0x4f9bfd(0x256)](this[_0x4f9bfd(0x1cc)]['interceptCommand']({'getMutations':_0x469dfa=>{const _0x8f6157=_0x4f9bfd;if(_0x469dfa['id']===_0x2554f2['RemoveSheetCommand']['id']){let _0x3c9e6e=(0x0,_0x2554f2[_0x8f6157(0x355)])(this['_univerInstanceService'],_0x469dfa['params']);if(!_0x3c9e6e)return{'redos':[],'undos':[]};let {unitId:_0x40c8f0,subUnitId:_0x2545b1}=_0x3c9e6e,_0x38e178=this[_0x8f6157(0x262)]['getDrawingData'](_0x40c8f0,_0x2545b1),_0x5b3108=Object[_0x8f6157(0x158)](_0x38e178)[_0x8f6157(0x3c4)](_0x207e74=>_0x207e74[_0x8f6157(0x34b)]===_0x2eccf5['DrawingTypeEnum'][_0x8f6157(0x285)]);if(_0x5b3108[_0x8f6157(0x337)]===0x0)return{'redos':[],'undos':[]};let _0x587bcf=[],_0x97b796=[];for(let _0x500ab8=0x0;_0x500ab8<_0x5b3108[_0x8f6157(0x337)];_0x500ab8++){let _0x36eb60=_0x5b3108[_0x500ab8],_0x1f97f1=this[_0x8f6157(0x36d)]['getShapeModel'](_0x36eb60['unitId'],_0x36eb60[_0x8f6157(0x204)],_0x36eb60[_0x8f6157(0x22a)]);if(!_0x1f97f1)continue;let {redo:_0x434bcb,undo:_0x3c3b7c,objects:_0x4688ae}=this[_0x8f6157(0x262)]['getBatchRemoveOp']([_0x36eb60]);_0x587bcf[_0x8f6157(0x1b1)]({'id':_0x1b87be[_0x8f6157(0x37a)]['id'],'params':{'unitId':_0x40c8f0,'subUnitId':_0x2545b1,'shapeId':_0x36eb60[_0x8f6157(0x22a)]}}),_0x587bcf[_0x8f6157(0x1b1)]({'id':_0x2a2650['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x40c8f0,'subUnitId':_0x2545b1,'type':_0x2a2650[_0x8f6157(0x35a)][_0x8f6157(0x2c1)],'op':_0x434bcb,'objects':_0x4688ae}}),_0x97b796[_0x8f6157(0x1b1)]({'id':_0x2a2650[_0x8f6157(0x3f0)]['id'],'params':{'unitId':_0x40c8f0,'subUnitId':_0x2545b1,'type':_0x2a2650['DrawingApplyType'][_0x8f6157(0x39e)],'op':_0x3c3b7c,'objects':_0x4688ae}}),_0x97b796[_0x8f6157(0x1b1)]({'id':_0x1b87be[_0x8f6157(0x148)]['id'],'params':{'unitId':_0x40c8f0,'subUnitId':_0x2545b1,'shapeId':_0x36eb60[_0x8f6157(0x22a)],'shapeType':_0x1f97f1[_0x8f6157(0x162)](),'shapeData':JSON[_0x8f6157(0x176)](JSON[_0x8f6157(0x1fd)](_0x1f97f1['getShapeData']()))}});}return{'redos':_0x587bcf,'undos':_0x97b796};}else{if(_0x469dfa['id']===_0x2554f2[_0x8f6157(0x24a)]['id']){let {unitId:_0x385ed0,subUnitId:_0x34456d,targetSubUnitId:_0x136dfb}=_0x469dfa[_0x8f6157(0x2bc)];if(!_0x385ed0||!_0x34456d||!_0x136dfb)return{'redos':[],'undos':[]};let _0xb01b3a=this[_0x8f6157(0x262)]['getDrawingData'](_0x385ed0,_0x34456d),_0xbf6df9=Object['values'](_0xb01b3a)[_0x8f6157(0x3c4)](_0x463896=>_0x463896[_0x8f6157(0x34b)]===_0x2eccf5[_0x8f6157(0x43b)][_0x8f6157(0x285)]);if(_0xbf6df9['length']===0x0)return{'redos':[],'undos':[]};let _0x1ea3bc=[],_0x238f7e=[];for(let _0x402f9c=0x0;_0x402f9c<_0xbf6df9[_0x8f6157(0x337)];_0x402f9c++){let _0x47bf2a=_0xbf6df9[_0x402f9c],_0x3f0d4f=this[_0x8f6157(0x36d)][_0x8f6157(0x134)](_0x47bf2a[_0x8f6157(0x387)],_0x47bf2a[_0x8f6157(0x204)],_0x47bf2a[_0x8f6157(0x22a)]);if(!_0x3f0d4f)continue;let _0x5736c8=(0x0,_0x2eccf5[_0x8f6157(0x2f1)])(),_0x2f9a94={..._0x47bf2a,'unitId':_0x385ed0,'subUnitId':_0x136dfb,'drawingId':_0x5736c8},{redo:_0x419014,undo:_0x3dc5ae,objects:_0x5565d3}=this[_0x8f6157(0x262)]['getBatchAddOp']([_0x2f9a94]);_0x1ea3bc[_0x8f6157(0x1b1)]({'id':_0x2a2650[_0x8f6157(0x3f0)]['id'],'params':{'unitId':_0x385ed0,'subUnitId':_0x136dfb,'type':_0x2a2650['DrawingApplyType'][_0x8f6157(0x39e)],'op':_0x419014,'objects':_0x5565d3}}),_0x1ea3bc[_0x8f6157(0x1b1)]({'id':_0x1b87be[_0x8f6157(0x148)]['id'],'params':{'unitId':_0x385ed0,'subUnitId':_0x136dfb,'shapeId':_0x5736c8,'shapeType':_0x3f0d4f[_0x8f6157(0x162)](),'shapeData':JSON['parse'](JSON[_0x8f6157(0x1fd)](_0x3f0d4f[_0x8f6157(0x1e0)]()))}}),_0x238f7e[_0x8f6157(0x1b1)]({'id':_0x1b87be['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x385ed0,'subUnitId':_0x136dfb,'shapeId':_0x5736c8}}),_0x238f7e[_0x8f6157(0x1b1)]({'id':_0x2a2650['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x385ed0,'subUnitId':_0x136dfb,'type':_0x2a2650['DrawingApplyType'][_0x8f6157(0x2c1)],'op':_0x3dc5ae,'objects':_0x5565d3}});}return{'redos':_0x1ea3bc,'undos':_0x238f7e};}}return{'redos':[],'undos':[]};}}));}};_0x3f5298=_0xba323d([_0x5a8c13(0x0,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2eccf5['IUniverInstanceService'])),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2554f2[_0x1e3977(0x145)])),_0x5a8c13(0x2,(0x0,_0x2eccf5['Inject'])(_0x2a2650[_0x1e3977(0x12c)])),_0x5a8c13(0x3,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be[_0x1e3977(0x3ad)]))],_0x3f5298);let _0x3ec7c3=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x2a47da,_0x568c88,_0x2dd82c,_0x1be518,_0x5deef1){const _0x4d8fe9=_0x1e3977;super(),this['_context']=_0x2a47da,this[_0x4d8fe9(0x2e0)]=_0x568c88,this[_0x4d8fe9(0x1a2)]=_0x2dd82c,this[_0x4d8fe9(0x133)]=_0x1be518,this[_0x4d8fe9(0x36d)]=_0x5deef1,_0x163ed0(this,_0x4d8fe9(0x365),null),this[_0x4d8fe9(0x3f4)](),this['_initSelection'](),this[_0x4d8fe9(0x140)]();}[_0x1e3977(0x3f4)](){const _0x44f537=_0x1e3977;let {scene:_0x575292}=this['_context'];this[_0x44f537(0x256)](_0x575292['onDblclick$'][_0x44f537(0x447)](_0x4048=>{const _0x35a6dd=_0x44f537;let {offsetX:_0xa533fe,offsetY:_0x4a7ec2}=_0x4048,_0x1d66d2=_0x575292['pick'](_0x114b3e[_0x35a6dd(0x2c9)]['FromArray']([_0xa533fe,_0x4a7ec2]));if(_0x1d66d2 instanceof _0x34cbbf){let _0x1ac9fd=this[_0x35a6dd(0x36d)][_0x35a6dd(0x134)](_0x1d66d2[_0x35a6dd(0x387)],_0x1d66d2[_0x35a6dd(0x204)],_0x1d66d2[_0x35a6dd(0x329)]);if(_0x1ac9fd!=null&&_0x1ac9fd[_0x35a6dd(0x1e0)]()[_0x35a6dd(0x331)]||(0x0,_0x3d21cd['isConnectorShape'])(this[_0x35a6dd(0x36d)][_0x35a6dd(0x162)](_0x1d66d2[_0x35a6dd(0x387)],_0x1d66d2[_0x35a6dd(0x204)],_0x1d66d2['shapeId'])))return;this[_0x35a6dd(0x2e0)]['setEditing']({'visible':!0x0,'unitId':_0x1d66d2[_0x35a6dd(0x387)],'subUnitId':_0x1d66d2[_0x35a6dd(0x204)],'shapeId':_0x1d66d2['shapeId'],'shapeKey':_0x1d66d2['oKey']});}}));}['_initSelection'](){const _0x59ff2a=_0x1e3977;this['disposeWithMe'](this[_0x59ff2a(0x1a2)]['focus$'][_0x59ff2a(0x17b)](_0x4d41a0=>{const _0x3c03f3=_0x59ff2a;if(_0x4d41a0['length']===0x1){let _0x557a46=_0x4d41a0[0x0],_0x1537eb=this['_drawingManagerService'][_0x3c03f3(0x3d4)](_0x557a46);if((_0x1537eb==null?void 0x0:_0x1537eb[_0x3c03f3(0x34b)])===_0x2eccf5[_0x3c03f3(0x43b)]['DRAWING_SHAPE']){var _0x4313a5;let _0x4035af=this[_0x3c03f3(0x2e0)][_0x3c03f3(0x1b7)]();if((_0x4035af==null?void 0x0:_0x4035af[_0x3c03f3(0x329)])===_0x557a46[_0x3c03f3(0x22a)]&&_0x4035af[_0x3c03f3(0x339)])return;let _0x11604a=(0x0,_0x3d21cd[_0x3c03f3(0x275)])(this[_0x3c03f3(0x36d)][_0x3c03f3(0x162)](_0x557a46[_0x3c03f3(0x387)],_0x557a46[_0x3c03f3(0x204)],_0x557a46[_0x3c03f3(0x22a)])),_0x4cac84=!!((_0x4313a5=this[_0x3c03f3(0x36d)][_0x3c03f3(0x134)](_0x557a46[_0x3c03f3(0x387)],_0x557a46['subUnitId'],_0x557a46[_0x3c03f3(0x22a)]))!=null&&_0x4313a5[_0x3c03f3(0x1e0)]()[_0x3c03f3(0x331)]);(_0x11604a||_0x4cac84)&&this['_shapeTextEditingService'][_0x3c03f3(0x12a)](null);}else this[_0x3c03f3(0x2e0)][_0x3c03f3(0x1b7)]()&&(this[_0x3c03f3(0x2e0)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x448a6e=_0x3c03f3;this[_0x448a6e(0x2e0)][_0x448a6e(0x12a)](null);}));}else this[_0x3c03f3(0x2e0)][_0x3c03f3(0x1b7)]()&&(this[_0x3c03f3(0x2e0)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x1ab7c5=_0x3c03f3;this['_shapeTextEditingService'][_0x1ab7c5(0x12a)](null);}));})),this['disposeWithMe'](this[_0x59ff2a(0x1a2)][_0x59ff2a(0x3fa)][_0x59ff2a(0x17b)](_0x2d3fd3=>{const _0x331ebe=_0x59ff2a;let _0x5d6f9b=this[_0x331ebe(0x2e0)]['getEditing']();_0x5d6f9b&&_0x2d3fd3[_0x331ebe(0x23c)](_0x1f10ac=>_0x1f10ac[_0x331ebe(0x22a)]===_0x5d6f9b[_0x331ebe(0x329)])&&this[_0x331ebe(0x2e0)][_0x331ebe(0x12a)](null);}));}['_initEditingParams'](){const _0x1f6c7b=_0x1e3977;this[_0x1f6c7b(0x256)](this['_shapeTextEditingService'][_0x1f6c7b(0x274)][_0x1f6c7b(0x17b)](_0x44e4f3=>{const _0x5a7d85=_0x1f6c7b;let {scene:_0x404b27}=this[_0x5a7d85(0x1e3)];if(this[_0x5a7d85(0x365)]){let _0x41e4b6=_0x404b27[_0x5a7d85(0x2a4)](this[_0x5a7d85(0x365)]);_0x41e4b6&&_0x41e4b6[_0x5a7d85(0x12a)](!0x1);}if(_0x44e4f3){let _0x545fce=!!_0x44e4f3['visible'],_0x13e66c=_0x404b27[_0x5a7d85(0x2a4)](_0x44e4f3['shapeKey']);_0x13e66c&&(_0x13e66c[_0x5a7d85(0x12a)](_0x545fce),this['_lastEditingShapeKey']=_0x44e4f3[_0x5a7d85(0x1cb)]),this[_0x5a7d85(0x133)][_0x5a7d85(0x3a0)](_0x2eccf5[_0x5a7d85(0x343)],_0x545fce);}else this['_lastEditingShapeKey']=null,this['_contextService'][_0x5a7d85(0x3a0)](_0x2eccf5[_0x5a7d85(0x343)],!0x1);}));}};_0x3ec7c3=_0xba323d([_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x31cbef)),_0x5a8c13(0x2,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x3,_0x2eccf5['IContextService']),_0x5a8c13(0x4,(0x0,_0x2eccf5['Inject'])(_0x1b87be[_0x1e3977(0x3ad)]))],_0x3ec7c3);let _0x298514=class extends _0x25b599[_0x1e3977(0x250)]{constructor(_0x54ed25,_0xe3da6f,_0x376272,_0xd36b6c){super(_0x54ed25,_0xe3da6f,_0x376272,_0xd36b6c,{'componentKey':_0x9609bf,'editorUnitId':_0x39b4a9});}};_0x298514=_0xba323d([_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x4f7558[_0x1e3977(0x1a1)])),_0x5a8c13(0x2,(0x0,_0x2eccf5['Inject'])(_0x2a24ec['DocCanvasPopManagerService'])),_0x5a8c13(0x3,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2a24ec[_0x1e3977(0x2f7)]))],_0x298514);let _0x262dc4=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x2fe8cd,_0x565ac4,_0x428a42,_0x1d71ed,_0x3b1f1e,_0x10d110){const _0x4169bb=_0x1e3977;super(),this[_0x4169bb(0x2dc)]=_0x2fe8cd,this[_0x4169bb(0x3ba)]=_0x565ac4,this[_0x4169bb(0x1a2)]=_0x428a42,this['_currentUniverService']=_0x1d71ed,this[_0x4169bb(0x43a)]=_0x3b1f1e,this[_0x4169bb(0x2ce)]=_0x10d110,_0x163ed0(this,_0x4169bb(0x1b3),new Set()),this[_0x4169bb(0x228)]();}[_0x1e3977(0x228)](){const _0xd3b0fe=_0x1e3977;this['_drawingAddListener'](),this[_0xd3b0fe(0x28d)](),this['_shapeUpdateListener']();}[_0x1e3977(0x3e8)](){const _0x53d1e7=_0x1e3977;this[_0x53d1e7(0x256)](this[_0x53d1e7(0x1a2)]['add$'][_0x53d1e7(0x17b)](_0xfe8cf0=>{const _0x406cb8=_0x53d1e7;this[_0x406cb8(0x26b)](_0xfe8cf0);}));}[_0x1e3977(0x28d)](){const _0x45d1c4=_0x1e3977;this['disposeWithMe'](this[_0x45d1c4(0x2dc)][_0x45d1c4(0x17a)](_0x2a94f9=>{const _0x55be22=_0x45d1c4;if(_0x2a94f9['id']===_0x1b87be[_0x55be22(0x3da)]['id']){let {unitId:_0x362b96,subUnitId:_0x8ce8de,shapeId:_0x24a18a}=_0x2a94f9[_0x55be22(0x2bc)],_0x568ef1=this['_getSceneAndTransformerByDrawingSearch'](_0x362b96),_0x39aa73=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x362b96,'subUnitId':_0x8ce8de,'drawingId':_0x24a18a}),_0x13d838=_0x568ef1==null?void 0x0:_0x568ef1[_0x55be22(0x14a)][_0x55be22(0x2a4)](_0x39aa73);_0x13d838&&(this[_0x55be22(0x2ce)][_0x55be22(0x1b0)](_0x13d838),this[_0x55be22(0x2ce)][_0x55be22(0x222)](_0x13d838,{'unitId':_0x362b96,'subUnitId':_0x8ce8de,'shapeId':_0x24a18a}),_0x13d838[_0x55be22(0x22f)](!0x0));return;}if(_0x2a94f9['id']===_0x1b87be[_0x55be22(0x148)]['id']){var _0x42eac5;let {unitId:_0x3d8455,subUnitId:_0x34b010,shapeId:_0x4baaf4}=_0x2a94f9[_0x55be22(0x2bc)],_0xe918bb=this[_0x55be22(0x21e)](_0x3d8455);if(_0xe918bb==null)return;let {scene:_0x53929e}=_0xe918bb,_0x2bf094=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x3d8455,'subUnitId':_0x34b010,'drawingId':_0x4baaf4}),_0x1a8ddb=_0x53929e[_0x55be22(0x2a4)](_0x2bf094);if(!((_0x42eac5=this['_renderManagerService']['getRenderUnitById'](_0x3d8455))!=null&&_0x42eac5[_0x55be22(0x1dc)](_0x3c12d8[_0x55be22(0x1ae)])[_0x55be22(0x367)](_0x34b010)))return!0x1;if(_0x1a8ddb)return;this[_0x55be22(0x26b)]([{'unitId':_0x3d8455,'subUnitId':_0x34b010,'drawingId':_0x4baaf4}]);}}));}[_0x1e3977(0x35b)](){const _0xb39b20=_0x1e3977;this['disposeWithMe'](this[_0xb39b20(0x1a2)][_0xb39b20(0x35f)][_0xb39b20(0x17b)](_0x29cec0=>{_0x29cec0['forEach'](_0x48b6ad=>{const _0x3db831=_0x93c9;let {unitId:_0x35e56e,subUnitId:_0x5c2850,drawingId:_0x5da25e}=_0x48b6ad,_0xb1e2eb=this[_0x3db831(0x1a2)][_0x3db831(0x3d4)](_0x48b6ad);if(_0xb1e2eb==null)return;let {transform:_0x271018,drawingType:_0x2ab470,srcRect:_0x3c16f1,prstGeom:_0x495792}=_0xb1e2eb;if(_0x2ab470!==_0x2eccf5['DrawingTypeEnum']['DRAWING_SHAPE'])return;let _0x4373bc=this[_0x3db831(0x21e)](_0x35e56e);if(_0x4373bc==null)return;let {scene:_0x32e404,transformer:_0x357ff1}=_0x4373bc;if(_0x271018==null)return!0x0;let _0x7ca34b=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x35e56e,'subUnitId':_0x5c2850,'drawingId':_0x5da25e}),_0x29b851=_0x32e404['getObjectIncludeInGroup'](_0x7ca34b);if(_0x29b851==null)return!0x0;_0x29b851[_0x3db831(0x16b)](_0x3c16f1),_0x29b851[_0x3db831(0x2f2)](_0x495792);});}));}['_insertShapes'](_0x1247e1){const _0x5a1298=_0x1e3977;for(let _0x56f20b of _0x1247e1){var _0x12cad0;let {unitId:_0x5d5eac,subUnitId:_0x54cf09,drawingId:_0x364381}=_0x56f20b,_0x5e15e0=this[_0x5a1298(0x21e)](_0x5d5eac),_0x268693=(_0x12cad0=(0x0,_0x34fb64['getCurrentUnitInfo'])(this[_0x5a1298(0x44b)],_0x5d5eac))==null?void 0x0:_0x12cad0[_0x5a1298(0x204)];if(_0x5e15e0==null||_0x268693!==_0x54cf09)return;let _0x18cd70=(0x0,_0x215a9[_0x5a1298(0x2ee)])({'unitId':_0x5d5eac,'subUnitId':_0x54cf09,'drawingId':_0x364381});if(this[_0x5a1298(0x1b3)][_0x5a1298(0x431)](_0x18cd70)||_0x5e15e0['scene'][_0x5a1298(0x2a4)](_0x18cd70)!=null)return;let _0x546f72=this[_0x5a1298(0x1a2)][_0x5a1298(0x3d4)](_0x56f20b);if(_0x546f72==null||_0x546f72['drawingType']!==_0x2eccf5[_0x5a1298(0x43b)][_0x5a1298(0x285)])return;if((0x0,_0x3d21cd[_0x5a1298(0x275)])((_0x546f72['data']||{})[_0x5a1298(0x436)])){let _0x4c3217=_0x546f72['transform'];_0x4c3217&&(_0x546f72['transform']={..._0x4c3217,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x5a1298(0x1b3)][_0x5a1298(0x42c)](_0x18cd70);try{this[_0x5a1298(0x2ce)][_0x5a1298(0x413)](_0x546f72,_0x5e15e0[_0x5a1298(0x14a)]);}finally{this['_insertingShapeKeys'][_0x5a1298(0x2e3)](_0x18cd70);}queueMicrotask(()=>{const _0x394697=_0x5a1298;if(this[_0x394697(0x2fc)])return;let _0x43212d=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])(_0x56f20b);if(!_0x5e15e0['scene'][_0x394697(0x2a4)](_0x43212d))return;let _0x36327e=this['_drawingManagerService'][_0x394697(0x3d4)](_0x56f20b);_0x36327e&&this[_0x394697(0x1a2)][_0x394697(0x396)]([_0x36327e]);});}}[_0x1e3977(0x21e)](_0x5e588e){const _0x6651b0=_0x1e3977;if(_0x5e588e==null)return;let _0x4f0589=this['_renderManagerService']['getRenderUnitById'](_0x5e588e),_0x2c8b71=_0x4f0589==null?void 0x0:_0x4f0589[_0x6651b0(0x14a)];return _0x2c8b71==null?null:{'scene':_0x2c8b71,'transformer':_0x2c8b71[_0x6651b0(0x381)]()};}};_0x262dc4=_0xba323d([_0x5a8c13(0x0,_0x2eccf5[_0x1e3977(0x1b2)]),_0x5a8c13(0x1,_0x114b3e[_0x1e3977(0x42b)]),_0x5a8c13(0x2,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x3,_0x2eccf5[_0x1e3977(0x178)]),_0x5a8c13(0x4,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x34fb64['DrawingRenderService'])),_0x5a8c13(0x5,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1f5133))],_0x262dc4);let _0x3ef74e={'normal':{'fill':_0x3d21cd[_0x1e3977(0x356)][_0x1e3977(0x2ec)],'stroke':_0x3d21cd[_0x1e3977(0x356)][_0x1e3977(0x21b)],'strokeWidth':_0x3d21cd[_0x1e3977(0x356)][_0x1e3977(0x283)]},'highlighted':{'fill':_0x1e3977(0x2b0),'stroke':_0x1e3977(0x211),'strokeWidth':0x2}};var _0x1a9cae=class extends _0x114b3e[_0x1e3977(0x399)]{constructor(_0x119669,_0x5a6fc3){const _0x324b06=_0x1e3977;super(_0x119669,_0x5a6fc3),_0x163ed0(this,_0x324b06(0x1c6),''),_0x163ed0(this,_0x324b06(0x1e5),-0x1),_0x163ed0(this,'_unitId',''),_0x163ed0(this,_0x324b06(0x18a),''),_0x163ed0(this,_0x324b06(0x372),!0x1),_0x5a6fc3&&this[_0x324b06(0x186)](_0x5a6fc3);}['getConnectionInfo'](){const _0x43655d=_0x1e3977;return{'unitId':this[_0x43655d(0x44e)],'subUnitId':this[_0x43655d(0x18a)],'shapeId':this[_0x43655d(0x1c6)],'cxnIndex':this[_0x43655d(0x1e5)]};}[_0x1e3977(0x2ad)](_0xcce30e){const _0x578b95=_0x1e3977;this[_0x578b95(0x372)]!==_0xcce30e&&(this['_isHighlighted']=_0xcce30e,this['makeDirty'](!0x0));}[_0x1e3977(0x227)](){const _0x29aaa9=_0x1e3977;return this[_0x29aaa9(0x372)];}[_0x1e3977(0x186)](_0xe21051){const _0x1ac69e=_0x1e3977;var _0xed605f,_0x1d6dcd;_0xe21051['targetShapeId']!==void 0x0&&(this[_0x1ac69e(0x1c6)]=_0xe21051[_0x1ac69e(0x2a2)]),_0xe21051[_0x1ac69e(0x21a)]!==void 0x0&&(this[_0x1ac69e(0x1e5)]=_0xe21051['cxnIndex']),_0xe21051[_0x1ac69e(0x387)]!==void 0x0&&(this['_unitId']=_0xe21051[_0x1ac69e(0x387)]),_0xe21051[_0x1ac69e(0x204)]!==void 0x0&&(this[_0x1ac69e(0x18a)]=_0xe21051[_0x1ac69e(0x204)]),_0xe21051[_0x1ac69e(0x227)]!==void 0x0&&(this[_0x1ac69e(0x372)]=_0xe21051[_0x1ac69e(0x227)]),this['transformByState']({'width':(_0xed605f=_0xe21051[_0x1ac69e(0x1f0)])==null?_0x3d21cd[_0x1ac69e(0x356)][_0x1ac69e(0x205)]*0x2:_0xed605f,'height':(_0x1d6dcd=_0xe21051['height'])==null?_0x3d21cd[_0x1ac69e(0x356)][_0x1ac69e(0x205)]*0x2:_0x1d6dcd});}['_draw'](_0x1e50f4){const _0x2ca607=_0x1e3977;let _0x543de1=this[_0x2ca607(0x372)]?_0x3ef74e['highlighted']:_0x3ef74e[_0x2ca607(0x1a9)];_0x114b3e[_0x2ca607(0x42d)][_0x2ca607(0x314)](_0x1e50f4,{'radius':_0x3d21cd['ShapeDefaultConfig'][_0x2ca607(0x205)],'fill':_0x543de1[_0x2ca607(0x172)],'stroke':_0x543de1[_0x2ca607(0x3ed)],'strokeWidth':_0x543de1[_0x2ca607(0x3e9)],'evented':!0x0});}};let _0x4bf73b=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x1b2386,_0x34d121,_0x1a2c11,_0x417c1a){const _0x4fe62=_0x1e3977;super(),this[_0x4fe62(0x1e3)]=_0x1b2386,this[_0x4fe62(0x3ba)]=_0x34d121,this['_drawingManagerService']=_0x1a2c11,this[_0x4fe62(0x36d)]=_0x417c1a,_0x163ed0(this,'_connectionSiteObjects',[]),_0x163ed0(this,_0x4fe62(0x3b3),null),_0x163ed0(this,_0x4fe62(0x345),-0x1),_0x163ed0(this,_0x4fe62(0x12d),null),_0x163ed0(this,_0x4fe62(0x44e),''),_0x163ed0(this,_0x4fe62(0x18a),''),_0x163ed0(this,_0x4fe62(0x1ca),null);}[_0x1e3977(0x25b)](_0x32bb67,_0x43467b,_0xf1f540,_0x2a2c31){const _0x58c694=_0x1e3977;this[_0x58c694(0x12d)]=_0x32bb67,this[_0x58c694(0x44e)]=_0x43467b,this[_0x58c694(0x18a)]=_0xf1f540,this[_0x58c694(0x1ca)]=_0x2a2c31;}['updateConnectionDetection'](_0x72f301){const _0x10dced=_0x1e3977;if(!this['_currentScene'])return null;let _0x3987fc=this[_0x10dced(0x234)](_0x72f301);return _0x3987fc?(this[_0x10dced(0x3b3)]!==_0x3987fc['shapeId']&&(this[_0x10dced(0x3a8)](),this[_0x10dced(0x2cf)](_0x3987fc[_0x10dced(0x329)],_0x3987fc[_0x10dced(0x425)]),this[_0x10dced(0x3b3)]=_0x3987fc['shapeId']),this[_0x10dced(0x208)](_0x72f301)):(this[_0x10dced(0x3b3)]!==null&&(this[_0x10dced(0x3a8)](),this[_0x10dced(0x3b3)]=null),null);}[_0x1e3977(0x26c)](){const _0x1a244d=_0x1e3977;this[_0x1a244d(0x3a8)](),this[_0x1a244d(0x12d)]=null,this[_0x1a244d(0x3b3)]=null,this[_0x1a244d(0x345)]=-0x1,this[_0x1a244d(0x1ca)]=null;}['getConnectionRelation'](){const _0x51b7ed=_0x1e3977;return this['_activeTargetShapeId']===null||this[_0x51b7ed(0x345)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x51b7ed(0x345)]};}['_findShapeAtPoint'](_0x58074a){const _0x369b5d=_0x1e3977;let _0x5326dd=this[_0x369b5d(0x1a2)][_0x369b5d(0x173)](this[_0x369b5d(0x44e)],this[_0x369b5d(0x18a)]);for(let _0x472813 of Object['keys'](_0x5326dd)){if(_0x472813===this[_0x369b5d(0x1ca)]||_0x5326dd[_0x472813]['drawingType']!==_0x2eccf5['DrawingTypeEnum'][_0x369b5d(0x285)])continue;let _0x2659ee=this[_0x369b5d(0x36d)][_0x369b5d(0x134)](this['_unitId'],this[_0x369b5d(0x18a)],_0x472813);if(!_0x2659ee||(0x0,_0x3d21cd[_0x369b5d(0x275)])(_0x2659ee[_0x369b5d(0x162)]())||_0x2659ee[_0x369b5d(0x32d)]()[_0x369b5d(0x337)]===0x0||!this['_currentScene'])continue;let _0x3af84a=(0x0,_0x215a9[_0x369b5d(0x2ee)])({'unitId':this[_0x369b5d(0x44e)],'subUnitId':this[_0x369b5d(0x18a)],'drawingId':_0x472813}),_0x39b963=this[_0x369b5d(0x12d)][_0x369b5d(0x2a4)](_0x3af84a);if(!_0x39b963)continue;let {left:_0x46a339,top:_0x396227,width:_0x4a41b5,height:_0x5ba09d}=_0x39b963[_0x369b5d(0x214)](),_0x5f47ba=_0x46a339+_0x4a41b5/0x2,_0x34aff8=_0x396227+_0x5ba09d/0x2,_0x592c6d=_0x39b963[_0x369b5d(0x31d)]['getMatrix'](),_0x18f3b9=new _0x114b3e[(_0x369b5d(0x26a))]([_0x592c6d[0x0],_0x592c6d[0x1],_0x592c6d[0x2],_0x592c6d[0x3],_0x5f47ba,_0x34aff8]),_0x4688bc=_0x39b963['getParent'](),_0x909dfe=(_0x39b963[_0x369b5d(0x2b9)]&&(_0x4688bc==null?void 0x0:_0x4688bc[_0x369b5d(0x2a5)])===_0x114b3e[_0x369b5d(0x281)]['GROUP']?_0x4688bc['ancestorTransform'][_0x369b5d(0x286)](_0x18f3b9):_0x18f3b9)[_0x369b5d(0x21c)]()[_0x369b5d(0x3e7)](_0x58074a),_0x38c178=_0x4a41b5/0x2,_0x17669c=_0x5ba09d/0x2;if(_0x909dfe['x']>=-_0x38c178-0x5&&_0x909dfe['x']<=_0x38c178+0x5&&_0x909dfe['y']>=-_0x17669c-0x5&&_0x909dfe['y']<=_0x17669c+0x5)return{'shapeId':_0x472813,'shapeModel':_0x2659ee};}return null;}['_showConnectionSites'](_0x331ffc,_0x27171e){const _0x2b1aff=_0x1e3977;if(!this[_0x2b1aff(0x12d)])return;let _0x384eb4=(0x0,_0x215a9[_0x2b1aff(0x2ee)])({'unitId':this['_unitId'],'subUnitId':this[_0x2b1aff(0x18a)],'drawingId':_0x331ffc}),_0x4aec95=this['_currentScene'][_0x2b1aff(0x2a4)](_0x384eb4);if(!_0x4aec95)return;let {left:_0x1146b3,top:_0x130201,width:_0x440c0c,height:_0x4dc719}=_0x4aec95[_0x2b1aff(0x214)](),_0x19948f=_0x1146b3+_0x440c0c/0x2,_0x429b8e=_0x130201+_0x4dc719/0x2,_0x213da3=_0x4aec95['transform'][_0x2b1aff(0x31f)](),_0x3f1505=new _0x114b3e[(_0x2b1aff(0x26a))]([_0x213da3[0x0],_0x213da3[0x1],_0x213da3[0x2],_0x213da3[0x3],_0x19948f,_0x429b8e]),_0x3335df=_0x4aec95[_0x2b1aff(0x3a2)](),_0x44d4cf=_0x4aec95[_0x2b1aff(0x2b9)]&&(_0x3335df==null?void 0x0:_0x3335df['classType'])===_0x114b3e[_0x2b1aff(0x281)][_0x2b1aff(0x272)]?_0x3335df[_0x2b1aff(0x15d)][_0x2b1aff(0x286)](_0x3f1505):_0x3f1505;_0x27171e[_0x2b1aff(0x1b9)]({'width':_0x440c0c,'height':_0x4dc719});let _0x4b8cf8=_0x27171e['getConnectionSiteList']();for(let _0x55339d of _0x4b8cf8){let _0x1b6939=_0x55339d['x']-_0x440c0c/0x2,_0x2a2337=_0x55339d['y']-_0x4dc719/0x2,_0x46403e=_0x44d4cf[_0x2b1aff(0x3e7)]({'x':_0x1b6939,'y':_0x2a2337}),_0x3032cd=_0x46403e['x'],_0x27cfe2=_0x46403e['y'],_0x3acf7d=new _0x1a9cae(_0x2b1aff(0x201)+_0x331ffc+'-'+_0x55339d[_0x2b1aff(0x3f3)],{'left':_0x3032cd-_0x3d21cd['ShapeDefaultConfig']['cxnPointRadius'],'top':_0x27cfe2-_0x3d21cd[_0x2b1aff(0x356)]['cxnPointRadius'],'targetShapeId':_0x331ffc,'cxnIndex':_0x55339d['index'],'unitId':this[_0x2b1aff(0x44e)],'subUnitId':this[_0x2b1aff(0x18a)],'width':_0x3d21cd['ShapeDefaultConfig'][_0x2b1aff(0x205)]*0x2,'height':_0x3d21cd['ShapeDefaultConfig'][_0x2b1aff(0x205)]*0x2,'zIndex':_0x114b3e[_0x2b1aff(0x3e0)]+0x2,'evented':!0x1});this[_0x2b1aff(0x11e)]['push'](_0x3acf7d),this[_0x2b1aff(0x12d)][_0x2b1aff(0x333)](_0x3acf7d,_0x114b3e[_0x2b1aff(0x3e0)]+0x2);}}[_0x1e3977(0x208)](_0x2a7f3e){const _0x180b04=_0x1e3977;let _0x59d4cb=null,_0x5a27e5=0x1/0x0,_0x40892a=null;for(let _0x4dfe81 of this[_0x180b04(0x11e)]){let _0x2f4765=_0x4dfe81['left']+_0x3d21cd['ShapeDefaultConfig'][_0x180b04(0x205)],_0x4e6047=_0x4dfe81['top']+_0x3d21cd[_0x180b04(0x356)]['cxnPointRadius'],_0x396779=_0x2a7f3e['x']-_0x2f4765,_0x179313=_0x2a7f3e['y']-_0x4e6047,_0x1033aa=Math['sqrt'](_0x396779*_0x396779+_0x179313*_0x179313);_0x1033aa<_0x5a27e5&&(_0x5a27e5=_0x1033aa,_0x59d4cb=_0x4dfe81,_0x40892a={'x':_0x2f4765,'y':_0x4e6047});}let _0x3848ce=_0x5a27e5<=0xa&&_0x59d4cb?_0x59d4cb[_0x180b04(0x449)]()[_0x180b04(0x21a)]:-0x1;if(_0x3848ce!==this['_highlightedSiteIndex']){for(let _0x306a46 of this[_0x180b04(0x11e)]){let _0x1b2e0c=_0x306a46[_0x180b04(0x449)]();_0x306a46[_0x180b04(0x2ad)](_0x1b2e0c[_0x180b04(0x21a)]===_0x3848ce);}this[_0x180b04(0x345)]=_0x3848ce;}if(_0x5a27e5<=0xa&&_0x59d4cb&&_0x40892a){let _0x54cb27=_0x59d4cb[_0x180b04(0x449)](),_0x228137=this[_0x180b04(0x453)](_0x54cb27[_0x180b04(0x329)],_0x54cb27[_0x180b04(0x21a)]);return{'shapeId':_0x54cb27['shapeId'],'cxnIndex':_0x54cb27['cxnIndex'],'unitId':_0x54cb27[_0x180b04(0x387)],'subUnitId':_0x54cb27[_0x180b04(0x204)],'worldPoint':_0x40892a,'angle':_0x228137};}return null;}['_getConnectionSiteAngle'](_0x237d09,_0x55d3e7){const _0x287405=_0x1e3977;let _0xccaaf5=this[_0x287405(0x36d)][_0x287405(0x134)](this[_0x287405(0x44e)],this[_0x287405(0x18a)],_0x237d09);if(!_0xccaaf5)return 0x0;let _0x126deb=this[_0x287405(0x1a2)][_0x287405(0x3d4)]({'unitId':this[_0x287405(0x44e)],'subUnitId':this[_0x287405(0x18a)],'drawingId':_0x237d09});if(!(_0x126deb!=null&&_0x126deb[_0x287405(0x31d)]))return 0x0;let {width:_0xb269ba=0x0,height:_0x3a7cb4=0x0,flipX:_0x42fc08=!0x1,flipY:_0x560c3a=!0x1}=_0x126deb[_0x287405(0x31d)];_0xccaaf5[_0x287405(0x1b9)]({'width':_0xb269ba,'height':_0x3a7cb4});let _0x533d48=_0xccaaf5[_0x287405(0x32d)]()[_0x287405(0x24b)](_0x47c9ee=>_0x47c9ee['index']===_0x55d3e7);if(!_0x533d48)return 0x0;let _0x13522c=_0x533d48['ang']/0xea60;return _0x42fc08&&(_0x13522c=0xb4-_0x13522c),_0x560c3a&&(_0x13522c=-_0x13522c),_0x13522c=(_0x13522c%0x168+0x168)%0x168,_0x13522c;}[_0x1e3977(0x3a8)](){const _0x41adbc=_0x1e3977;for(let _0x52d15a of this[_0x41adbc(0x11e)])_0x52d15a['dispose']();this['_connectionSiteObjects']=[],this[_0x41adbc(0x345)]=-0x1;}[_0x1e3977(0x175)](){this['_clearConnectionSites'](),super['dispose']();}};_0x4bf73b=_0xba323d([_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x114b3e[_0x1e3977(0x42b)])),_0x5a8c13(0x2,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x215a9[_0x1e3977(0x18c)])),_0x5a8c13(0x3,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be[_0x1e3977(0x3ad)]))],_0x4bf73b);let _0x13cfb8=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x10b042,_0x1d8d9e,_0x5929fa,_0x497746,_0x239146){const _0x41086a=_0x1e3977;super(),this[_0x41086a(0x1ab)]=_0x10b042,this[_0x41086a(0x2e6)]=_0x1d8d9e,this[_0x41086a(0x262)]=_0x5929fa,this[_0x41086a(0x2d5)]=_0x497746,this['_groupCopyPasteController']=_0x239146,_0x163ed0(this,_0x41086a(0x212),void 0x0),this['_initCopyPaste'](),this[_0x41086a(0x41f)]();}get[_0x1e3977(0x13a)](){const _0x2aa7bb=_0x1e3977;return this['_sheetDrawingService'][_0x2aa7bb(0x40c)]();}[_0x1e3977(0x41f)](){const _0x294616=_0x1e3977;this['_groupCopyPasteController'][_0x294616(0x33f)](({fromUnitId:_0x1d3e59,fromSubUnitId:_0x5f37c4,toUnitId:_0x3735db,toSubUnitId:_0x4cc226,idMap:_0x3297f7})=>{const _0x2c6d40=_0x294616;let _0x4e988f=[],_0x37767b=[];for(let [_0x32ceed,_0x33bf63]of _0x3297f7['entries']()){let _0x5c9417=this['_shapeService'][_0x2c6d40(0x134)](_0x1d3e59,_0x5f37c4,_0x32ceed);if(!_0x5c9417)continue;let _0x14bf46=_0x5c9417[_0x2c6d40(0x162)](),_0x4cea82=JSON['parse'](JSON[_0x2c6d40(0x1fd)](_0x5c9417[_0x2c6d40(0x1e0)]()));if(_0x4cea82[_0x2c6d40(0x247)]){var _0x22584f,_0x413aeb;let _0x35a7d0=(_0x22584f=_0x4cea82[_0x2c6d40(0x247)][_0x2c6d40(0x110)])==null?void 0x0:_0x22584f[_0x2c6d40(0x329)],_0x2e8ea=(_0x413aeb=_0x4cea82[_0x2c6d40(0x247)]['to'])==null?void 0x0:_0x413aeb[_0x2c6d40(0x329)],_0x5f43aa=!_0x35a7d0||_0x3297f7[_0x2c6d40(0x431)](_0x35a7d0),_0x381981=!_0x2e8ea||_0x3297f7[_0x2c6d40(0x431)](_0x2e8ea);_0x5f43aa&&_0x35a7d0&&_0x4cea82[_0x2c6d40(0x247)][_0x2c6d40(0x110)]?_0x4cea82[_0x2c6d40(0x247)][_0x2c6d40(0x110)]={..._0x4cea82['relation'][_0x2c6d40(0x110)],'shapeId':_0x3297f7[_0x2c6d40(0x32f)](_0x35a7d0)}:_0x4cea82[_0x2c6d40(0x247)][_0x2c6d40(0x110)]=void 0x0,_0x381981&&_0x2e8ea&&_0x4cea82[_0x2c6d40(0x247)]['to']?_0x4cea82['relation']['to']={..._0x4cea82['relation']['to'],'shapeId':_0x3297f7['get'](_0x2e8ea)}:_0x4cea82[_0x2c6d40(0x247)]['to']=void 0x0;}_0x4e988f[_0x2c6d40(0x1b1)]({'id':_0x1b87be[_0x2c6d40(0x148)]['id'],'params':{'unitId':_0x3735db,'subUnitId':_0x4cc226,'shapeId':_0x33bf63,'shapeType':_0x14bf46,'shapeData':_0x4cea82}}),_0x37767b[_0x2c6d40(0x1b1)]({'id':_0x1b87be[_0x2c6d40(0x37a)]['id'],'params':{'unitId':_0x3735db,'subUnitId':_0x4cc226,'shapeId':_0x33bf63}});}return{'redos':_0x4e988f,'undos':_0x37767b};});}[_0x1e3977(0x36f)](){const _0x28b23d=_0x1e3977;this['disposeWithMe'](this[_0x28b23d(0x2e6)]['addClipboardHook']({'id':'sheets-shape-ui','onBeforeCopy':(_0x5c7db4,_0x24ab24,_0x4ab1d7,_0x391447)=>{const _0x397452=_0x28b23d;this[_0x397452(0x212)]=null;let _0x5ec5a4=this[_0x397452(0x13a)];if(_0x5ec5a4['length']){let _0x36ad3e=_0x5ec5a4[_0x397452(0x3c4)](_0x55564f=>_0x55564f['drawingType']===_0x2eccf5[_0x397452(0x43b)][_0x397452(0x285)]);if(_0x36ad3e[_0x397452(0x337)]===0x0)return;this['_copyInfo']={'unitId':_0x5c7db4,'subUnitId':_0x24ab24,'copyType':_0x391447,'drawings':_0x36ad3e};}else this['_createCopyInfoByRange'](_0x5c7db4,_0x24ab24,_0x4ab1d7,_0x391447);},'onPasteCells':(_0x150428,_0x1b2f0e,_0x168dfb,_0x299bd0)=>{const _0x3595e4=_0x28b23d;if(!this[_0x3595e4(0x212)])return{'redos':[],'undos':[]};let {pasteType:_0x2826e6}=_0x299bd0;return _0x2826e6===_0x3c12d8[_0x3595e4(0x444)][_0x3595e4(0x11a)]?this[_0x3595e4(0x2de)](_0x1b2f0e,this[_0x3595e4(0x212)][_0x3595e4(0x3a7)]===_0x3c12d8[_0x3595e4(0x167)][_0x3595e4(0x12f)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x7d50a5=>this[_0x28b23d(0x212)]?this[_0x28b23d(0x2de)](_0x7d50a5,this[_0x28b23d(0x212)][_0x28b23d(0x3a7)]===_0x3c12d8[_0x28b23d(0x167)][_0x28b23d(0x12f)]):{'redos':[],'undos':[]}}));}[_0x1e3977(0x2e5)](_0x3553b3,_0x239325,_0x1e1b7a,_0x1ed5fe){const _0x5ead1b=_0x1e3977;let _0x2b0d89=this[_0x5ead1b(0x1ab)][_0x5ead1b(0x367)](_0x3553b3,_0x239325);if(!_0x2b0d89)return;let _0x5cb659=(0x0,_0x2554f2['attachRangeWithCoord'])(_0x2b0d89,_0x1e1b7a);if(!_0x5cb659)return;let {startX:_0x54e5dc,endX:_0x8e7ab6,startY:_0x4d5fef,endY:_0x501450}=_0x5cb659,_0x244d01=this['_sheetDrawingService'][_0x5ead1b(0x173)](_0x3553b3,_0x239325),_0x201a95=this[_0x5ead1b(0x13a)][_0x5ead1b(0x451)]();for(let [_0x45fe85,_0x5da171]of Object[_0x5ead1b(0x3d5)](_0x244d01)){if(_0x5da171[_0x5ead1b(0x34b)]!==_0x2eccf5[_0x5ead1b(0x43b)][_0x5ead1b(0x285)])continue;let {transform:_0x7592c7}=_0x5da171;if(!_0x7592c7)continue;let {left:_0x40c60e=0x0,top:_0x1bf872=0x0,width:_0x4f80de=0x0,height:_0xe16e46=0x0}=_0x7592c7;_0x54e5dc<=_0x40c60e&&_0x8e7ab6>=_0x40c60e+_0x4f80de&&_0x4d5fef<=_0x1bf872&&_0x501450>=_0x1bf872+_0xe16e46&&_0x201a95[_0x5ead1b(0x1b1)](_0x5da171);}_0x201a95[_0x5ead1b(0x337)]>0x0&&(this[_0x5ead1b(0x212)]={'unitId':_0x3553b3,'subUnitId':_0x239325,'copyType':_0x1ed5fe,'copyRange':_0x1e1b7a,'drawings':_0x201a95});}[_0x1e3977(0x2de)](_0x1c1f8c,_0xee6fe){const _0x1cd5a8=_0x1e3977;let {unitId:_0x180e47,subUnitId:_0x3ffdbd,range:_0x216ab2}=_0x1c1f8c,_0x168805=this[_0x1cd5a8(0x1ab)][_0x1cd5a8(0x367)](_0x180e47,_0x3ffdbd);if(!_0x168805)return{'redos':[],'undos':[]};let _0x16a710=(0x0,_0x2554f2[_0x1cd5a8(0x202)])(_0x216ab2),{unitId:_0x285b03,subUnitId:_0x388514,copyRange:_0x26f384,drawings:_0xc5b0fa}=this[_0x1cd5a8(0x212)],_0x1625ee=this[_0x1cd5a8(0x1ab)]['getSkeleton'](_0x285b03,_0x388514);if(!_0x1625ee)return{'redos':[],'undos':[]};let _0x53181e;if(!_0x26f384){let _0x50b433=0x1/0x0,_0x17b0ea=0x1/0x0;for(let _0x572e8e of _0xc5b0fa){var _0x3956f9;let {left:_0x492bd5=0x0,top:_0x595cdb=0x0}=(_0x3956f9=_0x572e8e[_0x1cd5a8(0x31d)])==null?{}:_0x3956f9;_0x492bd5<_0x50b433&&(_0x50b433=_0x492bd5),_0x595cdb<_0x17b0ea&&(_0x17b0ea=_0x595cdb);}_0x50b433!==0x1/0x0&&_0x17b0ea!==0x1/0x0&&(_0x53181e={'left':_0x50b433,'top':_0x17b0ea});}let _0x4ea646=new Map();if(!_0xee6fe){for(let _0x4c0b95 of _0xc5b0fa)_0x4ea646['set'](_0x4c0b95['drawingId'],(0x0,_0x2eccf5[_0x1cd5a8(0x2f1)])());}let _0x242a2b=[],_0x34780e=[];for(let _0x30cdbc of _0xc5b0fa){let {drawingId:_0x1868c8,transform:_0x5c189d,sheetTransform:_0xe5b00e}=_0x30cdbc;if(!_0x5c189d||!_0xe5b00e)continue;let _0x157761=this[_0x1cd5a8(0x243)]({'transform':_0x5c189d,'sheetTransform':_0xe5b00e},{'skeleton':_0x1625ee,'range':_0x26f384},{'skeleton':_0x168805,'range':_0x16a710},_0x53181e);if(_0xee6fe){let {redos:_0x389dfb,undos:_0x7d6cfd}=this['_generateCutPasteMutations']({'fromUnitId':_0x285b03,'fromSubUnitId':_0x388514,'toUnitId':_0x180e47,'toSubUnitId':_0x3ffdbd,'drawing':_0x30cdbc,'newTransforms':_0x157761});_0x242a2b[_0x1cd5a8(0x1b1)](..._0x389dfb),_0x34780e['push'](..._0x7d6cfd);continue;}let {redos:_0x5ab811,undos:_0x2e98f6}=this['_generateCopyPasteMutations']({'toUnitId':_0x180e47,'toSubUnitId':_0x3ffdbd,'drawing':_0x30cdbc,'newTransforms':_0x157761,'newDrawingId':_0x4ea646[_0x1cd5a8(0x32f)](_0x1868c8),'idMap':_0x4ea646});_0x242a2b[_0x1cd5a8(0x1b1)](..._0x5ab811),_0x34780e[_0x1cd5a8(0x1b1)](..._0x2e98f6);}return{'redos':_0x242a2b,'undos':_0x34780e};}[_0x1e3977(0x116)](_0xf0719b){const _0x44d169=_0x1e3977;let {fromUnitId:_0x1522a6,fromSubUnitId:_0x325b5,toUnitId:_0x5e64ab,toSubUnitId:_0x1163bb,drawing:_0x1bf8b3,newTransforms:_0x5cc48e}=_0xf0719b,_0x2c794c={..._0x1bf8b3,'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'transform':_0x5cc48e[_0x44d169(0x31d)],'sheetTransform':_0x5cc48e['sheetTransform']};if(_0x5e64ab===_0x1522a6&&_0x1163bb===_0x325b5){let {redo:_0x429cee,undo:_0x22e6b1,objects:_0x47434d}=this[_0x44d169(0x262)][_0x44d169(0x27b)]([_0x2c794c]);return{'redos':[{'id':_0x2a2650[_0x44d169(0x3f0)]['id'],'params':{'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'type':_0x2a2650[_0x44d169(0x35a)][_0x44d169(0x18d)],'op':_0x429cee,'objects':_0x47434d}}],'undos':[{'id':_0x2a2650[_0x44d169(0x3f0)]['id'],'params':{'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'type':_0x2a2650[_0x44d169(0x35a)][_0x44d169(0x18d)],'op':_0x22e6b1,'objects':_0x47434d}}]};}else{let _0x25a6b9=this['_sheetDrawingService'][_0x44d169(0x194)]([_0x1bf8b3]),_0x3c7ea8=this[_0x44d169(0x262)][_0x44d169(0x1a0)]([_0x2c794c]),_0x4f1750=this['_shapeService'][_0x44d169(0x134)](_0x1bf8b3[_0x44d169(0x387)],_0x1bf8b3[_0x44d169(0x204)],_0x1bf8b3[_0x44d169(0x22a)]);if(!_0x4f1750)return{'redos':[],'undos':[]};let _0x5c6608=_0x4f1750[_0x44d169(0x162)](),_0x1c3c41=JSON[_0x44d169(0x176)](JSON[_0x44d169(0x1fd)](_0x4f1750['getShapeData']()));return{'redos':[{'id':_0x2a2650[_0x44d169(0x3f0)]['id'],'params':{'unitId':_0x1522a6,'subUnitId':_0x325b5,'type':_0x2a2650[_0x44d169(0x35a)][_0x44d169(0x2c1)],'op':_0x25a6b9[_0x44d169(0x12b)],'objects':_0x25a6b9[_0x44d169(0x3ab)]}},{'id':_0x1b87be[_0x44d169(0x37a)]['id'],'params':{'unitId':_0x1522a6,'subUnitId':_0x325b5,'shapeId':_0x1bf8b3[_0x44d169(0x22a)]}},{'id':_0x2a2650['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'type':_0x2a2650['DrawingApplyType'][_0x44d169(0x39e)],'op':_0x3c7ea8['redo'],'objects':_0x3c7ea8[_0x44d169(0x3ab)]}},{'id':_0x1b87be[_0x44d169(0x148)]['id'],'params':{'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'shapeId':_0x1bf8b3[_0x44d169(0x22a)],'shapeType':_0x5c6608,'shapeData':_0x1c3c41}}],'undos':[{'id':_0x2a2650[_0x44d169(0x3f0)]['id'],'params':{'unitId':_0x1522a6,'subUnitId':_0x325b5,'type':_0x2a2650[_0x44d169(0x35a)][_0x44d169(0x39e)],'op':_0x25a6b9[_0x44d169(0x393)],'objects':_0x25a6b9['objects']}},{'id':_0x1b87be[_0x44d169(0x148)]['id'],'params':{'unitId':_0x1522a6,'subUnitId':_0x325b5,'shapeId':_0x1bf8b3[_0x44d169(0x22a)],'shapeType':_0x5c6608,'shapeData':_0x1c3c41}},{'id':_0x2a2650[_0x44d169(0x3f0)]['id'],'params':{'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'type':_0x2a2650[_0x44d169(0x35a)][_0x44d169(0x2c1)],'op':_0x3c7ea8['undo'],'objects':_0x3c7ea8[_0x44d169(0x3ab)]}},{'id':_0x1b87be[_0x44d169(0x37a)]['id'],'params':{'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'shapeId':_0x1bf8b3[_0x44d169(0x22a)]}}]};}}[_0x1e3977(0x3c6)](_0x3468ce){const _0x3ad00a=_0x1e3977;let {toUnitId:_0x281b2d,toSubUnitId:_0x128c3f,drawing:_0x2f7464,newTransforms:_0x1c7b30,newDrawingId:_0x103ec3,idMap:_0x138b91}=_0x3468ce,_0x498a08={..._0x2f7464,'unitId':_0x281b2d,'subUnitId':_0x128c3f,'drawingId':_0x103ec3,'transform':_0x1c7b30[_0x3ad00a(0x31d)],'sheetTransform':_0x1c7b30[_0x3ad00a(0x27a)]},{redo:_0x42d960,undo:_0x52afd4,objects:_0x405a4f}=this[_0x3ad00a(0x262)][_0x3ad00a(0x1a0)]([_0x498a08]),_0x18fdd4=this[_0x3ad00a(0x2d5)][_0x3ad00a(0x134)](_0x2f7464[_0x3ad00a(0x387)],_0x2f7464[_0x3ad00a(0x204)],_0x2f7464['drawingId']);if(!_0x18fdd4)return{'redos':[],'undos':[]};let _0xde84c3=_0x18fdd4[_0x3ad00a(0x162)](),_0x54db3f=JSON[_0x3ad00a(0x176)](JSON[_0x3ad00a(0x1fd)](_0x18fdd4[_0x3ad00a(0x1e0)]()));if(_0x54db3f[_0x3ad00a(0x247)]){var _0x550788,_0x89fadd;let _0x40cb12=(_0x550788=_0x54db3f[_0x3ad00a(0x247)]['from'])==null?void 0x0:_0x550788[_0x3ad00a(0x329)],_0x4afa96=(_0x89fadd=_0x54db3f[_0x3ad00a(0x247)]['to'])==null?void 0x0:_0x89fadd['shapeId'],_0x25a7fe=!_0x40cb12||_0x138b91[_0x3ad00a(0x431)](_0x40cb12),_0x5ec238=!_0x4afa96||_0x138b91[_0x3ad00a(0x431)](_0x4afa96);_0x25a7fe&&_0x40cb12&&_0x54db3f[_0x3ad00a(0x247)]['from']?_0x54db3f[_0x3ad00a(0x247)][_0x3ad00a(0x110)]={..._0x54db3f['relation'][_0x3ad00a(0x110)],'shapeId':_0x138b91[_0x3ad00a(0x32f)](_0x40cb12)}:_0x54db3f['relation']['from']=void 0x0,_0x5ec238&&_0x4afa96&&_0x54db3f['relation']['to']?_0x54db3f['relation']['to']={..._0x54db3f['relation']['to'],'shapeId':_0x138b91['get'](_0x4afa96)}:_0x54db3f[_0x3ad00a(0x247)]['to']=void 0x0;}return{'redos':[{'id':_0x2a2650['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x281b2d,'subUnitId':_0x128c3f,'type':_0x2a2650['DrawingApplyType'][_0x3ad00a(0x39e)],'op':_0x42d960,'objects':_0x405a4f}},{'id':_0x1b87be['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x281b2d,'subUnitId':_0x128c3f,'shapeId':_0x103ec3,'shapeType':_0xde84c3,'shapeData':_0x54db3f}}],'undos':[{'id':_0x2a2650['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x281b2d,'subUnitId':_0x128c3f,'type':_0x2a2650[_0x3ad00a(0x35a)][_0x3ad00a(0x2c1)],'op':_0x52afd4,'objects':_0x405a4f}},{'id':_0x1b87be['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x281b2d,'subUnitId':_0x128c3f,'shapeId':_0x103ec3}}]};}[_0x1e3977(0x243)](_0x4b83cc,_0x5babbb,_0x58675d,_0x2e6456){const _0x1efc6b=_0x1e3977;var _0xf4143d;let {range:_0x3a65c6,skeleton:_0x54786f}=_0x5babbb,{range:_0x5ec6ca,skeleton:_0x14e270}=_0x58675d,{transform:_0x1507f9,sheetTransform:_0x17a565}=_0x4b83cc,_0x3cfe61={..._0x1507f9};if(_0x3a65c6){let _0x30c3ac=(0x0,_0x2554f2['attachRangeWithCoord'])(_0x54786f,_0x3a65c6),_0x1214c5=(0x0,_0x2554f2[_0x1efc6b(0x3bd)])(_0x14e270,_0x5ec6ca);if(_0x30c3ac&&_0x1214c5){var _0x26589e,_0x415e6c;let _0x47726d=_0x1214c5['startX']-_0x30c3ac['startX'],_0x24addf=_0x1214c5[_0x1efc6b(0x263)]-_0x30c3ac[_0x1efc6b(0x263)];_0x3cfe61[_0x1efc6b(0x44f)]=((_0x26589e=_0x3cfe61[_0x1efc6b(0x44f)])==null?0x0:_0x26589e)+_0x47726d,_0x3cfe61[_0x1efc6b(0x278)]=((_0x415e6c=_0x3cfe61[_0x1efc6b(0x278)])==null?0x0:_0x415e6c)+_0x24addf;}}else{let _0x5e7272=(0x0,_0x2554f2[_0x1efc6b(0x3bd)])(_0x14e270,_0x5ec6ca);if(_0x2e6456&&_0x5e7272){var _0x262c51,_0x43cb0f;let _0x2b90e1=((_0x262c51=_0x3cfe61[_0x1efc6b(0x44f)])==null?0x0:_0x262c51)-_0x2e6456['left'],_0x403550=((_0x43cb0f=_0x3cfe61['top'])==null?0x0:_0x43cb0f)-_0x2e6456[_0x1efc6b(0x278)];_0x3cfe61[_0x1efc6b(0x44f)]=_0x5e7272[_0x1efc6b(0x2f4)]+_0x2b90e1,_0x3cfe61[_0x1efc6b(0x278)]=_0x5e7272[_0x1efc6b(0x263)]+_0x403550;}else _0x3cfe61[_0x1efc6b(0x44f)]=_0x5e7272==null?void 0x0:_0x5e7272['startX'],_0x3cfe61[_0x1efc6b(0x278)]=_0x5e7272==null?void 0x0:_0x5e7272[_0x1efc6b(0x263)];}return{'transform':_0x3cfe61,'sheetTransform':(_0xf4143d=(0x0,_0x2a2650[_0x1efc6b(0x3c9)])(_0x3cfe61,_0x14e270))==null?_0x17a565:_0xf4143d};}};_0x13cfb8=_0xba323d([_0x5a8c13(0x0,(0x0,_0x2eccf5['Inject'])(_0x2554f2[_0x1e3977(0x154)])),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x3c12d8[_0x1e3977(0x35d)])),_0x5a8c13(0x2,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2a2650[_0x1e3977(0x12c)])),_0x5a8c13(0x3,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be[_0x1e3977(0x3ad)])),_0x5a8c13(0x4,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x101b82['SheetsDrawingGroupCopyPasteController']))],_0x13cfb8);var _0x1bacbd=class extends _0x114b3e[_0x1e3977(0x399)]{constructor(_0x4ed6d9,_0x21c575){const _0x16c815=_0x1e3977;super(_0x4ed6d9,_0x21c575),_0x163ed0(this,_0x16c815(0x237),null),_0x163ed0(this,'_index',null),_0x163ed0(this,_0x16c815(0x44e),null),_0x163ed0(this,'_subUnitId',null),_0x163ed0(this,_0x16c815(0x251),!0x1),_0x21c575&&this[_0x16c815(0x186)](_0x21c575);}[_0x1e3977(0x26e)](){const _0x39ab12=_0x1e3977;return{'unitId':this[_0x39ab12(0x44e)],'subUnitId':this[_0x39ab12(0x18a)],'drawingId':this[_0x39ab12(0x237)]};}[_0x1e3977(0x186)](_0x1d152b){const _0x1437c9=_0x1e3977;_0x1d152b[_0x1437c9(0x329)]!==void 0x0&&(this[_0x1437c9(0x237)]=_0x1d152b[_0x1437c9(0x329)]),_0x1d152b['unitId']!==void 0x0&&(this['_unitId']=_0x1d152b[_0x1437c9(0x387)]),_0x1d152b[_0x1437c9(0x204)]!==void 0x0&&(this[_0x1437c9(0x18a)]=_0x1d152b[_0x1437c9(0x204)]),_0x1d152b[_0x1437c9(0x41a)]!==void 0x0&&(this[_0x1437c9(0x251)]=_0x1d152b['isStartConnectorPoint']),this[_0x1437c9(0x1c7)]({'width':_0x1d152b[_0x1437c9(0x1f0)],'height':_0x1d152b[_0x1437c9(0x196)]});}[_0x1e3977(0x2c0)](_0x293d7e){const _0x2c63d8=_0x1e3977;_0x114b3e[_0x2c63d8(0x42d)][_0x2c63d8(0x314)](_0x293d7e,{'radius':_0x3d21cd[_0x2c63d8(0x356)][_0x2c63d8(0x205)],'fill':_0x3d21cd[_0x2c63d8(0x356)][_0x2c63d8(0x2ec)],'stroke':_0x3d21cd[_0x2c63d8(0x356)]['cxnPointStroke'],'strokeWidth':_0x3d21cd[_0x2c63d8(0x356)][_0x2c63d8(0x283)],'evented':!0x0});}};let _0x511a6f=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x2c7996,_0x2156a9,_0x1c205d,_0x3f1fc5,_0x3ef33f,_0xafb160,_0xe18e6,_0x5197a4){const _0x1efbc1=_0x1e3977;super(),this[_0x1efbc1(0x1e3)]=_0x2c7996,this[_0x1efbc1(0x2dc)]=_0x2156a9,this[_0x1efbc1(0x3ba)]=_0x1c205d,this[_0x1efbc1(0x1a2)]=_0x3f1fc5,this[_0x1efbc1(0x18f)]=_0x3ef33f,this[_0x1efbc1(0x36d)]=_0xafb160,this[_0x1efbc1(0x264)]=_0xe18e6,this[_0x1efbc1(0x252)]=_0x5197a4,_0x163ed0(this,_0x1efbc1(0x166),void 0x0),_0x163ed0(this,_0x1efbc1(0x44e),void 0x0),_0x163ed0(this,'_subUnitId',void 0x0),_0x163ed0(this,_0x1efbc1(0x441),[]),_0x163ed0(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),_0x163ed0(this,_0x1efbc1(0x190),void 0x0),_0x163ed0(this,'_isConnecting',!0x1),_0x163ed0(this,_0x1efbc1(0x43c),!0x1),_0x163ed0(this,_0x1efbc1(0x16e),!0x1),_0x163ed0(this,_0x1efbc1(0x1ec),void 0x0),_0x163ed0(this,_0x1efbc1(0x410),void 0x0),_0x163ed0(this,'_currentConnectionTarget',null),this['_initialize']();}['_initialize'](){const _0x345b62=_0x1e3977;this[_0x345b62(0x2f6)](),this[_0x345b62(0x1c4)]();}[_0x1e3977(0x1ef)](){const _0x23beaa=_0x1e3977;if(!this['_unitId']||!this['_subUnitId']||!this[_0x23beaa(0x166)])return;let _0x5affad={'unitId':this[_0x23beaa(0x44e)],'subUnitId':this[_0x23beaa(0x18a)],'drawingId':this[_0x23beaa(0x166)]},{transform:_0x9d67cd}=this[_0x23beaa(0x1a2)][_0x23beaa(0x3d4)](_0x5affad);if(_0x9d67cd)return{'left':_0x9d67cd[_0x23beaa(0x44f)]||0x0,'top':_0x9d67cd[_0x23beaa(0x278)]||0x0,'width':_0x9d67cd[_0x23beaa(0x1f0)]||0x0,'height':_0x9d67cd['height']||0x0,'flipX':_0x9d67cd['flipX']||!0x1,'flipY':_0x9d67cd[_0x23beaa(0x1ac)]||!0x1,'angle':_0x9d67cd[_0x23beaa(0x1bf)]};}['_addShapeConnectorHandlerObjects'](){const _0x17fc2a=_0x1e3977;if(this['_unitId']===void 0x0||this['_subUnitId']===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x109052=this[_0x17fc2a(0x3ba)][_0x17fc2a(0x2be)](this['_unitId']);if(!_0x109052||!_0x109052[_0x17fc2a(0x1dc)](_0x3c12d8['SheetSkeletonManagerService'])[_0x17fc2a(0x26d)]())return;let {scene:_0x39f945}=_0x109052,_0xd392bf=this['_getDrawingRect']();if(!_0xd392bf)return;let _0x5693c0=this[_0x17fc2a(0x36d)][_0x17fc2a(0x134)](this[_0x17fc2a(0x44e)],this[_0x17fc2a(0x18a)],this[_0x17fc2a(0x166)]);if(!_0x5693c0||!(0x0,_0x3d21cd[_0x17fc2a(0x275)])(_0x5693c0[_0x17fc2a(0x162)]()))return;let _0x28f454=_0x5693c0[_0x17fc2a(0x2ef)]();if(_0x28f454[_0x17fc2a(0x337)]<0x2)return;let _0x3f3e34=new _0x3d21cd[(_0x17fc2a(0x437))](_0xd392bf),_0x1030df=_0x28f454[0x0],_0x411c22=_0x28f454[_0x28f454[_0x17fc2a(0x337)]-0x1],_0x17f6a2=_0x3f3e34[_0x17fc2a(0x34f)](_0x1030df),_0x38604e=_0x3f3e34[_0x17fc2a(0x34f)](_0x411c22);this[_0x17fc2a(0x20b)](_0x39f945,{..._0x17f6a2},!0x0),this[_0x17fc2a(0x20b)](_0x39f945,{..._0x38604e},!0x1);}[_0x1e3977(0x20b)](_0x16c70f,_0x279b68,_0x5a02bd){const _0x25a541=_0x1e3977;if(this[_0x25a541(0x166)]===void 0x0||this[_0x25a541(0x44e)]===void 0x0||this[_0x25a541(0x18a)]===void 0x0)return;let _0x186156=_0x25a541(0x246)+this[_0x25a541(0x44e)]+'-'+this[_0x25a541(0x18a)]+'-'+this[_0x25a541(0x166)]+'-'+(_0x5a02bd?_0x25a541(0x177):'end'),_0x2c1250=_0x16c70f[_0x25a541(0x2a4)](_0x186156);if(_0x2c1250){_0x2c1250[_0x25a541(0x1c7)]({'left':_0x279b68['x']-_0x3d21cd[_0x25a541(0x356)][_0x25a541(0x205)],'top':_0x279b68['y']-_0x3d21cd[_0x25a541(0x356)][_0x25a541(0x205)]});return;}let _0x239666=new _0x1bacbd(_0x186156,{'left':_0x279b68['x']-_0x3d21cd[_0x25a541(0x356)][_0x25a541(0x205)],'top':_0x279b68['y']-_0x3d21cd[_0x25a541(0x356)][_0x25a541(0x205)],'shapeId':this[_0x25a541(0x166)],'unitId':this['_unitId'],'subUnitId':this[_0x25a541(0x18a)],'isStartConnectorPoint':_0x5a02bd,'width':_0x3d21cd[_0x25a541(0x356)]['cxnPointRadius']*0x2,'height':_0x3d21cd['ShapeDefaultConfig']['cxnPointRadius']*0x2,'zIndex':_0x114b3e[_0x25a541(0x3e0)]+0x1,'evented':!0x0});this['_connectorObjects']['push'](_0x239666),this[_0x25a541(0x452)](_0x239666,_0x16c70f,_0x5a02bd),_0x16c70f['addObject'](_0x239666,_0x114b3e[_0x25a541(0x3e0)]+0x1);}[_0x1e3977(0x1c3)](_0x3713a0,_0x51279e){const _0x13f5fb=_0x1e3977;var _0xa3c60;let _0x552d21={'x':0x0,'y':0x0};if(!_0x3713a0||!_0x51279e)return _0x552d21;let _0x54c546=this['_renderManagerService'][_0x13f5fb(0x2be)](_0x3713a0);if(!_0x54c546||!_0x54c546[_0x13f5fb(0x1dc)](_0x3c12d8[_0x13f5fb(0x1ae)])[_0x13f5fb(0x367)](_0x51279e))return _0x552d21;let _0xd4032=_0x54c546[_0x13f5fb(0x1dc)](_0x3c12d8[_0x13f5fb(0x3ee)]),_0x416c80=_0xd4032==null?void 0x0:_0xd4032[_0x13f5fb(0x3b2)]();if(!_0x416c80)return _0x552d21;let _0xea94c1=(_0xa3c60=this[_0x13f5fb(0x18f)][_0x13f5fb(0x2f8)](_0x3713a0))==null?void 0x0:_0xa3c60['getSheetBySheetId'](_0x51279e);if(!_0xea94c1)return _0x552d21;let _0x16f6f7=(0x0,_0x3c12d8[_0x13f5fb(0x1ba)])(_0x416c80['sheetViewStartRow'],_0x416c80[_0x13f5fb(0x380)],_0x54c546[_0x13f5fb(0x14a)],_0xea94c1);return _0x16f6f7?{'x':_0x16f6f7[_0x13f5fb(0x3d1)],'y':_0x16f6f7['viewportScrollY']}:_0x552d21;}[_0x1e3977(0x427)](_0x158d1e,_0x30ca89){const _0x4e4921=_0x1e3977;var _0x117d5c,_0x424590;let _0x35250e=(_0x117d5c=this[_0x4e4921(0x18f)][_0x4e4921(0x2f8)](_0x158d1e))==null?void 0x0:_0x117d5c[_0x4e4921(0x269)](_0x30ca89);return(_0x424590=_0x35250e==null?void 0x0:_0x35250e[_0x4e4921(0x374)]())==null?0x1:_0x424590;}[_0x1e3977(0x19a)](_0x4a07ab,_0x46d342,_0x484901,_0x449d03,_0xe7760b){const _0x582b07=_0x1e3977;this[_0x582b07(0x1ec)][_0x582b07(0x369)](),this[_0x582b07(0x410)][_0x582b07(0x369)](),this[_0x582b07(0x264)][_0x582b07(0x434)]();let _0x2f0804=this[_0x582b07(0x19e)];this['_sheetBasicShapeConnectionPointController'][_0x582b07(0x26c)]();let _0x5f5662=this[_0x582b07(0x1c3)](this[_0x582b07(0x44e)],this['_subUnitId']),_0x424e0c=this['_getZoomRatio'](this[_0x582b07(0x44e)],this['_subUnitId']),_0x229731={'x':_0x484901[_0x582b07(0x3a5)]/_0x424e0c+_0x5f5662['x'],'y':_0x484901['offsetY']/_0x424e0c+_0x5f5662['y']},_0x7304b5=_0x2f0804?_0x2f0804[_0x582b07(0x3b1)]:_0x229731,_0x1ec210=_0x449d03?this[_0x582b07(0x190)]['getEndConnectInfo']():this[_0x582b07(0x190)][_0x582b07(0x200)](),_0x49cfd7=this[_0x582b07(0x190)][_0x582b07(0x162)]();_0x1ec210?this['_handleConnectedEndpointPointerUp'](_0x1ec210,_0x7304b5,_0x449d03,_0x2f0804,_0xe7760b):this['_handleFreeEndpointPointerUp'](_0x46d342,_0x7304b5,_0x449d03,_0x2f0804,_0xe7760b,_0x49cfd7),this[_0x582b07(0x360)]=!0x1,this['_hasReset']=!0x1,this[_0x582b07(0x19e)]=null,_0x4a07ab['enableObjectsEvent']();}[_0x1e3977(0x1e2)](_0x5caaac,_0x38e0e4,_0x4e8888,_0x16e790,_0x3edf88,_0x4dd7f7){const _0x2662f8=_0x1e3977;let _0x1df11f=_0x4dd7f7===_0x3d21cd[_0x2662f8(0x2bf)][_0x2662f8(0x125)]||_0x4dd7f7===_0x3d21cd[_0x2662f8(0x2bf)]['StraightConnector1'],_0x5a6379=_0x4e8888?_0x38e0e4:_0x5caaac,_0x1fd48d=_0x4e8888?_0x5caaac:_0x38e0e4,_0x5a3011=this[_0x2662f8(0x190)][_0x2662f8(0x2ef)](),_0x25a18c=(0x0,_0x3d21cd['isCurvedConnectorShape'])(this[_0x2662f8(0x190)]['getShapeType']()),_0x5a3c75=_0x3d21cd['ConnectorCoordinateTransform'][_0x2662f8(0x398)](_0x5a3011,_0x25a18c),_0x3b76bb=_0x1df11f?_0x3d21cd[_0x2662f8(0x437)][_0x2662f8(0x34a)](_0x5a6379,_0x1fd48d):_0x3d21cd[_0x2662f8(0x437)]['computeConnectorResizeLayout'](_0x5caaac,_0x38e0e4,_0x4e8888,_0x5a3c75);_0x16e790?this[_0x2662f8(0x2d2)](_0x3b76bb,_0x16e790,_0x4e8888,_0x3edf88):this[_0x2662f8(0x2b2)](_0x3b76bb,_0x3edf88);}[_0x1e3977(0x2d9)](_0x1b4351,_0x2af3b2,_0x309316,_0x34c49d,_0x50348d){const _0x414a8a=_0x1e3977;let _0x3c2971=this[_0x414a8a(0x150)](_0x1b4351);if(!_0x3c2971)return;let _0x533164=_0x34c49d?_0x34c49d[_0x414a8a(0x1bf)]:this[_0x414a8a(0x330)](_0x3c2971[_0x414a8a(0x362)],_0x2af3b2),_0x247a00;if(_0x34c49d){let _0x49f1e8=this['_drawingManagerService'][_0x414a8a(0x3d4)]({'unitId':_0x34c49d[_0x414a8a(0x387)],'subUnitId':_0x34c49d['subUnitId'],'drawingId':_0x34c49d[_0x414a8a(0x329)]});if(_0x49f1e8!=null&&_0x49f1e8['transform']){let {left:_0x55257e=0x0,top:_0xe570ff=0x0,width:_0x35611c=0x0,height:_0x2f384b=0x0,angle:_0x264fb7}=_0x49f1e8[_0x414a8a(0x31d)];_0x247a00=(0x0,_0x3d21cd[_0x414a8a(0x306)])({'left':_0x55257e,'top':_0xe570ff,'width':_0x35611c,'height':_0x2f384b},_0x264fb7||0x0);}else _0x247a00={'left':_0x2af3b2['x'],'top':_0x2af3b2['y'],'width':0x0,'height':0x0};}else _0x247a00={'left':_0x2af3b2['x'],'top':_0x2af3b2['y'],'width':0x0,'height':0x0};let _0x1451fd={'point':_0x2af3b2,'angle':_0x533164,'bounds':_0x247a00},_0x4a557f=_0x309316?_0x1451fd:_0x3c2971,_0x3126f=_0x309316?_0x3c2971:_0x1451fd,_0x4ef7c0=this[_0x414a8a(0x190)][_0x414a8a(0x162)](),_0x4c4774=(0x0,_0x3d21cd[_0x414a8a(0x3e5)])(_0x4a557f,_0x3126f,_0x4ef7c0);this[_0x414a8a(0x190)]['removeLinePoints']();let _0x49b8a9=(0x0,_0x3d21cd[_0x414a8a(0x2ae)])(_0x4c4774,_0x4ef7c0);_0x34c49d?this['_executeConnectedRouteConnectionCommand'](_0x49b8a9,_0x34c49d,_0x1b4351,_0x309316,_0x50348d):this[_0x414a8a(0x114)](_0x49b8a9,_0x1b4351,_0x309316,_0x50348d);}[_0x1e3977(0x2d2)](_0x180341,_0x44acb0,_0x1bdd21,_0x4dd3d6){const _0x3334c5=_0x1e3977;let _0x1e0df0=this[_0x3334c5(0x190)][_0x3334c5(0x1e0)]()[_0x3334c5(0x247)],_0xd175d4={..._0x1e0df0},_0x3a8177={'shapeId':_0x44acb0['shapeId'],'cxnIndex':_0x44acb0['cxnIndex']};_0x1bdd21?_0xd175d4['from']=_0x3a8177:_0xd175d4['to']=_0x3a8177;let _0x136898=this[_0x3334c5(0x190)]['getShapeType'](),_0x477adc=(0x0,_0x3d21cd[_0x3334c5(0x2ae)])(_0x180341[_0x3334c5(0x324)],_0x136898),_0x34140d={'unitId':this['_unitId'],'subUnitId':this[_0x3334c5(0x18a)],'connectorShapeId':this[_0x3334c5(0x166)],'width':_0x180341[_0x3334c5(0x147)][_0x3334c5(0x1f0)],'height':_0x180341[_0x3334c5(0x147)][_0x3334c5(0x196)],'left':_0x180341[_0x3334c5(0x147)][_0x3334c5(0x44f)],'top':_0x180341[_0x3334c5(0x147)][_0x3334c5(0x278)],'flipX':_0x180341['worldRect']['flipX']||!0x1,'flipY':_0x180341['worldRect'][_0x3334c5(0x1ac)]||!0x1,'newAdjustValues':_0x477adc['adjustValues'],'oldAdjustValues':_0x4dd3d6,'oldRelation':_0x1e0df0,'newRelation':_0xd175d4,'newLineType':_0x477adc[_0x3334c5(0x181)],'oldLineType':_0x136898};this[_0x3334c5(0x2dc)][_0x3334c5(0x216)](_0x1b87be[_0x3334c5(0x164)]['id'],_0x34140d);}[_0x1e3977(0x2b2)](_0x2b99af,_0x13a04d){const _0x35921a=_0x1e3977;let _0x95af50=this[_0x35921a(0x190)][_0x35921a(0x162)](),_0x1f9923=(0x0,_0x3d21cd[_0x35921a(0x2ae)])(_0x2b99af[_0x35921a(0x324)],_0x95af50),_0x1d44e1={'unitId':this[_0x35921a(0x44e)],'subUnitId':this[_0x35921a(0x18a)],'shapeId':this[_0x35921a(0x166)],'width':_0x2b99af[_0x35921a(0x147)][_0x35921a(0x1f0)],'height':_0x2b99af[_0x35921a(0x147)][_0x35921a(0x196)],'left':_0x2b99af[_0x35921a(0x147)]['left'],'top':_0x2b99af[_0x35921a(0x147)]['top'],'flipX':_0x2b99af[_0x35921a(0x147)][_0x35921a(0x23d)]||!0x1,'flipY':_0x2b99af[_0x35921a(0x147)][_0x35921a(0x1ac)]||!0x1,'angle':_0x2b99af[_0x35921a(0x147)][_0x35921a(0x1bf)]||0x0,'newAdjustValues':_0x1f9923[_0x35921a(0x37d)],'oldAdjustValues':_0x13a04d,'newLineType':_0x1f9923[_0x35921a(0x181)],'oldLineType':_0x95af50};this[_0x35921a(0x2dc)]['executeCommand'](_0x1b87be[_0x35921a(0x20e)]['id'],_0x1d44e1);}['_executeConnectedRouteConnectionCommand'](_0x5dfcfc,_0x10c228,_0x15c99c,_0x4df22a,_0x4e965f){const _0xa853ce=_0x1e3977;let _0x5edd99=this[_0xa853ce(0x190)][_0xa853ce(0x1e0)]()[_0xa853ce(0x247)],_0x4760f9={..._0x5edd99},_0x2dd541={'shapeId':_0x10c228[_0xa853ce(0x329)],'cxnIndex':_0x10c228['cxnIndex']};_0x4df22a?(_0x4760f9[_0xa853ce(0x110)]=_0x2dd541,_0x4760f9['to']=_0x15c99c):(_0x4760f9['from']=_0x15c99c,_0x4760f9['to']=_0x2dd541);let _0x28c113={'unitId':this[_0xa853ce(0x44e)],'subUnitId':this[_0xa853ce(0x18a)],'connectorShapeId':this[_0xa853ce(0x166)],'width':_0x5dfcfc[_0xa853ce(0x147)][_0xa853ce(0x1f0)],'height':_0x5dfcfc[_0xa853ce(0x147)][_0xa853ce(0x196)],'left':_0x5dfcfc[_0xa853ce(0x147)]['left'],'top':_0x5dfcfc['worldRect'][_0xa853ce(0x278)],'flipX':_0x5dfcfc[_0xa853ce(0x147)][_0xa853ce(0x23d)]||!0x1,'flipY':_0x5dfcfc[_0xa853ce(0x147)][_0xa853ce(0x1ac)]||!0x1,'oldAdjustValues':_0x4e965f,'newAdjustValues':_0x5dfcfc[_0xa853ce(0x37d)],'newLineType':_0x5dfcfc[_0xa853ce(0x181)],'rotation':_0x5dfcfc[_0xa853ce(0x14f)],'oldRelation':_0x5edd99,'newRelation':_0x4760f9};this[_0xa853ce(0x2dc)]['executeCommand'](_0x1b87be[_0xa853ce(0x164)]['id'],_0x28c113);}[_0x1e3977(0x114)](_0x36b4f5,_0x2d8090,_0x56e3ab,_0x3f064d){const _0x4dd0ab=_0x1e3977;let _0x35d205=this['_activeShapeModel'][_0x4dd0ab(0x1e0)]()[_0x4dd0ab(0x247)],_0xd06732={};_0x56e3ab?(_0xd06732['to']=_0x2d8090,_0xd06732[_0x4dd0ab(0x110)]=void 0x0):(_0xd06732['from']=_0x2d8090,_0xd06732['to']=void 0x0);let _0x445c08={'unitId':this[_0x4dd0ab(0x44e)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x4dd0ab(0x166)],'width':_0x36b4f5[_0x4dd0ab(0x147)][_0x4dd0ab(0x1f0)],'height':_0x36b4f5[_0x4dd0ab(0x147)][_0x4dd0ab(0x196)],'left':_0x36b4f5[_0x4dd0ab(0x147)][_0x4dd0ab(0x44f)],'top':_0x36b4f5[_0x4dd0ab(0x147)][_0x4dd0ab(0x278)],'flipX':_0x36b4f5[_0x4dd0ab(0x147)]['flipX']||!0x1,'flipY':_0x36b4f5[_0x4dd0ab(0x147)][_0x4dd0ab(0x1ac)]||!0x1,'oldAdjustValues':_0x3f064d,'newAdjustValues':_0x36b4f5[_0x4dd0ab(0x37d)],'newLineType':_0x36b4f5[_0x4dd0ab(0x181)],'rotation':_0x36b4f5['rotation'],'oldRelation':_0x35d205,'newRelation':_0xd06732};this[_0x4dd0ab(0x2dc)][_0x4dd0ab(0x216)](_0x1b87be[_0x4dd0ab(0x164)]['id'],_0x445c08);}['_attachConnectorObjectEvent'](_0x2eaef3,_0x242b50,_0x55c71a){const _0x289e94=_0x1e3977;this[_0x289e94(0x256)]((0x0,_0x2eccf5[_0x289e94(0x351)])(_0x2eaef3[_0x289e94(0x19c)][_0x289e94(0x447)]((_0x54d3a8,_0x54c420)=>{const _0x391ee0=_0x289e94;let _0x182a2d=_0x2eaef3[_0x391ee0(0x26e)]();if(this[_0x391ee0(0x190)]=this[_0x391ee0(0x36d)][_0x391ee0(0x134)](_0x182a2d[_0x391ee0(0x387)],_0x182a2d[_0x391ee0(0x204)],_0x182a2d[_0x391ee0(0x22a)]),!this[_0x391ee0(0x190)])return;let _0x32eaaa={};this[_0x391ee0(0x190)][_0x391ee0(0x27f)]()[_0x391ee0(0x30e)](_0x289c2d=>{const _0x5360a4=_0x391ee0;let _0x261e92=this[_0x5360a4(0x190)]['getAdjustValueByName'](_0x289c2d);_0x261e92!==void 0x0&&(_0x32eaaa[_0x289c2d]=_0x261e92);});let _0x3f25e4=this[_0x391ee0(0x1ef)]();if(!_0x3f25e4)return;this['_baseDrawingRect']={..._0x3f25e4};let _0x12e147=new _0x3d21cd[(_0x391ee0(0x437))](this[_0x391ee0(0x44d)]),_0x22bf9d=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0x391ee0(0x44e)],'subUnitId':this[_0x391ee0(0x18a)],'drawingId':this[_0x391ee0(0x166)]}),_0x3be8b3=_0x242b50[_0x391ee0(0x2a4)](_0x22bf9d);this[_0x391ee0(0x360)]=!0x0,_0x242b50[_0x391ee0(0x415)](),this[_0x391ee0(0x252)][_0x391ee0(0x25b)](_0x242b50,this[_0x391ee0(0x44e)],this[_0x391ee0(0x18a)],this[_0x391ee0(0x166)]),this[_0x391ee0(0x19e)]=null;let _0x2997ab=this[_0x391ee0(0x190)]['getConnectorLinePoints'](),_0x4273b7=_0x2997ab[0x0],_0x38390c=_0x2997ab[_0x2997ab[_0x391ee0(0x337)]-0x1],_0x48c36c=_0x55c71a?_0x12e147['localToWorld'](_0x38390c):_0x12e147[_0x391ee0(0x34f)](_0x4273b7);this[_0x391ee0(0x1ec)]=_0x242b50[_0x391ee0(0x307)][_0x391ee0(0x447)]((_0x422003,_0xa711f7)=>{const _0x334797=_0x391ee0;if(!this[_0x334797(0x360)]||!this[_0x334797(0x190)])return;this[_0x334797(0x16e)]||(this[_0x334797(0x264)][_0x334797(0x414)](),this[_0x334797(0x190)][_0x334797(0x3bb)](),this[_0x334797(0x16e)]=!0x0);let _0x1c4390=this[_0x334797(0x1c3)](this[_0x334797(0x44e)],this[_0x334797(0x18a)]),_0x41cbdc=this[_0x334797(0x427)](this['_unitId'],this[_0x334797(0x18a)]),_0x40b910={'x':_0x422003[_0x334797(0x3a5)]/_0x41cbdc+_0x1c4390['x'],'y':_0x422003[_0x334797(0x2e9)]/_0x41cbdc+_0x1c4390['y']},_0x48a420=this[_0x334797(0x252)][_0x334797(0x111)](_0x40b910);if(_0x48a420){let {shapeId:_0x4bbe40,unitId:_0x3682e9,subUnitId:_0x18a03a}=_0x48a420;if(_0x4bbe40&&_0x3682e9&&_0x18a03a){let _0x4680de=(0x0,_0x215a9[_0x334797(0x2ee)])({'unitId':_0x3682e9,'subUnitId':_0x18a03a,'drawingId':_0x4bbe40});_0x48a420[_0x334797(0x1bf)]=(_0x242b50[_0x334797(0x2a4)](_0x4680de)['angle']||0x0)+_0x48a420['angle'];}}this['_currentConnectionTarget']=_0x48a420;let _0x3de31c=_0x55c71a?this[_0x334797(0x190)][_0x334797(0x392)]():this[_0x334797(0x190)][_0x334797(0x200)]();if(_0x3de31c){this[_0x334797(0x206)](_0x3de31c,_0x40b910,_0x55c71a,_0x3be8b3,_0x2eaef3);return;}this[_0x334797(0x334)](_0x40b910,_0x48c36c,_0x55c71a,_0x3be8b3,_0x2eaef3);}),this[_0x391ee0(0x410)]=_0x242b50[_0x391ee0(0x292)][_0x391ee0(0x447)]((_0x4fa3be,_0xad0d99)=>{this['_handleConnectorPointerUp'](_0x242b50,_0x48c36c,_0x4fa3be,_0x55c71a,_0x32eaaa);}),_0x54c420['stopPropagation']();})));}[_0x1e3977(0x3ca)](_0x32e32b,_0x2401f5,_0x267528){const _0x565b1a=_0x1e3977;let _0x441146=this['_sheetsShapeService'][_0x565b1a(0x10f)](_0x32e32b,_0x2401f5,_0x267528);if(!_0x441146||_0x441146[_0x565b1a(0x337)]===0x0)return;let _0x1cea82=this[_0x565b1a(0x3ba)][_0x565b1a(0x2be)](_0x32e32b);if(!_0x1cea82)return;let {scene:_0x3e373f}=_0x1cea82;for(let _0x4bc905 of _0x441146){let _0x297db4=_0x4bc905[_0x565b1a(0x122)],_0x100730=this[_0x565b1a(0x36d)][_0x565b1a(0x134)](_0x32e32b,_0x2401f5,_0x297db4);if(!_0x100730)continue;let _0x37fc4b=_0x100730[_0x565b1a(0x200)](),_0x325887=_0x100730[_0x565b1a(0x392)](),_0x11174b=(_0x37fc4b==null?void 0x0:_0x37fc4b[_0x565b1a(0x329)])===_0x267528,_0x342698=(0x0,_0x215a9[_0x565b1a(0x2ee)])({'unitId':_0x32e32b,'subUnitId':_0x2401f5,'drawingId':_0x297db4}),_0x527f1b=_0x3e373f[_0x565b1a(0x2a4)](_0x342698);if(!_0x527f1b)continue;let _0x35c18d=this[_0x565b1a(0x1a2)][_0x565b1a(0x3d4)]({'unitId':_0x32e32b,'subUnitId':_0x2401f5,'drawingId':_0x297db4});_0x35c18d!=null&&_0x35c18d[_0x565b1a(0x31d)]&&(_0x37fc4b&&_0x325887?this[_0x565b1a(0x2ed)](_0x32e32b,_0x2401f5,_0x297db4,_0x100730,_0x37fc4b,_0x325887,_0x527f1b):this[_0x565b1a(0x23b)](_0x32e32b,_0x2401f5,_0x297db4,_0x100730,_0x11174b?_0x37fc4b:_0x325887,_0x11174b,_0x35c18d,_0x527f1b));}}[_0x1e3977(0x2ed)](_0x12e0e0,_0x58cf63,_0xfd81af,_0x3aa4d9,_0x365e62,_0x5a847e,_0x2fccef){const _0x765f64=_0x1e3977;let _0x7ccb=this[_0x765f64(0x44e)],_0x1935b6=this[_0x765f64(0x18a)];this['_unitId']=_0x12e0e0,this['_subUnitId']=_0x58cf63;let _0x7ffa76=this[_0x765f64(0x150)](_0x365e62),_0x22f679=this[_0x765f64(0x150)](_0x5a847e);if(this[_0x765f64(0x44e)]=_0x7ccb,this[_0x765f64(0x18a)]=_0x1935b6,!_0x7ffa76||!_0x22f679)return;let _0x9b928e=_0x3aa4d9[_0x765f64(0x162)](),_0x4f75d1=(0x0,_0x3d21cd[_0x765f64(0x3e5)])(_0x7ffa76,_0x22f679,_0x9b928e);_0x4f75d1&&_0x3aa4d9[_0x765f64(0x2eb)](_0x4f75d1);let _0x3b9a2a=(0x0,_0x3d21cd[_0x765f64(0x2ae)])(_0x4f75d1,_0x9b928e);_0x3b9a2a[_0x765f64(0x181)]!==_0x9b928e&&_0x3aa4d9[_0x765f64(0x259)](_0x3b9a2a[_0x765f64(0x181)]),_0x3aa4d9[_0x765f64(0x3bb)]();for(let [_0x383d17,_0x2397bf]of Object['entries'](_0x3b9a2a['adjustValues']))_0x3aa4d9[_0x765f64(0x2db)](_0x383d17,_0x2397bf);_0x3aa4d9['updateContext']({'width':_0x3b9a2a['worldRect'][_0x765f64(0x1f0)],'height':_0x3b9a2a['worldRect'][_0x765f64(0x196)]}),_0x2fccef[_0x765f64(0x1c7)]({'flipX':_0x3b9a2a[_0x765f64(0x147)][_0x765f64(0x23d)],'flipY':_0x3b9a2a['worldRect'][_0x765f64(0x1ac)],'left':_0x3b9a2a[_0x765f64(0x147)][_0x765f64(0x44f)],'top':_0x3b9a2a[_0x765f64(0x147)][_0x765f64(0x278)],'width':_0x3b9a2a[_0x765f64(0x147)][_0x765f64(0x1f0)],'height':_0x3b9a2a[_0x765f64(0x147)][_0x765f64(0x196)],'angle':_0x3b9a2a[_0x765f64(0x14f)]}),_0x3aa4d9[_0x765f64(0x30b)]();}[_0x1e3977(0x23b)](_0x3ad051,_0x22c9a1,_0x1ca777,_0x52be86,_0x4ed50d,_0x5e9e0e,_0x1360eb,_0x15f66d){const _0xd4c487=_0x1e3977;let _0x28effc=this[_0xd4c487(0x44e)],_0x3524c6=this['_subUnitId'];this[_0xd4c487(0x44e)]=_0x3ad051,this[_0xd4c487(0x18a)]=_0x22c9a1;let _0x231074=this[_0xd4c487(0x150)](_0x4ed50d);if(this[_0xd4c487(0x44e)]=_0x28effc,this[_0xd4c487(0x18a)]=_0x3524c6,!_0x231074)return;let {left:_0x32d9f3=0x0,top:_0x378ac9=0x0,width:_0x30a121=0x0,height:_0x5c5b4e=0x0,flipX:_0x4febb3=!0x1,flipY:_0x857269=!0x1}=_0x1360eb['transform'],_0x2f2ab1=_0x52be86[_0xd4c487(0x2ef)]();if(_0x2f2ab1['length']<0x2)return;let _0x586b1e=new _0x3d21cd[(_0xd4c487(0x437))]({'left':_0x32d9f3,'top':_0x378ac9,'width':_0x30a121,'height':_0x5c5b4e,'flipX':_0x4febb3,'flipY':_0x857269}),_0x3ccbb7=_0x5e9e0e?_0x2f2ab1[_0x2f2ab1[_0xd4c487(0x337)]-0x1]:_0x2f2ab1[0x0],_0x4821d4=_0x586b1e[_0xd4c487(0x34f)](_0x3ccbb7),_0x175da4=_0x3d21cd[_0xd4c487(0x437)]['computeConnectorResizeLayout'](_0x4821d4,_0x231074[_0xd4c487(0x362)],!_0x5e9e0e);_0x15f66d[_0xd4c487(0x1c7)]({'flipX':_0x175da4[_0xd4c487(0x147)][_0xd4c487(0x23d)],'flipY':_0x175da4['worldRect']['flipY'],'left':_0x175da4[_0xd4c487(0x147)][_0xd4c487(0x44f)],'top':_0x175da4[_0xd4c487(0x147)][_0xd4c487(0x278)],'width':_0x175da4['worldRect'][_0xd4c487(0x1f0)],'height':_0x175da4['worldRect'][_0xd4c487(0x196)],'angle':_0x175da4['worldRect'][_0xd4c487(0x1bf)]}),_0x15f66d['makeDirty'](!0x0);}[_0x1e3977(0x300)](){const _0x58f5ad=_0x1e3977;this['_connectorObjects'][_0x58f5ad(0x337)]!==0x0&&(this[_0x58f5ad(0x441)][_0x58f5ad(0x30e)](_0x4cd543=>{const _0x18eaf1=_0x58f5ad;_0x4cd543[_0x18eaf1(0x175)]();}),this[_0x58f5ad(0x441)]=[]);}[_0x1e3977(0x1c4)](){const _0x3d9023=_0x1e3977;let _0x5547e2=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x2eccf5['UniverInstanceType'][_0x3d9023(0x293)]);this['disposeWithMe'](_0x5547e2[_0x3d9023(0x239)]((0x0,_0x124e3f[_0x3d9023(0x37e)])(_0x3ffc05=>_0x3ffc05?_0x3ffc05[_0x3d9023(0x445)][_0x3d9023(0x239)]((0x0,_0x124e3f[_0x3d9023(0x37e)])(_0x26f50a=>{const _0x4d144b=_0x3d9023;if(!_0x26f50a)return _0x124e3f[_0x4d144b(0x341)];let _0x4acefa=_0x3ffc05[_0x4d144b(0x322)](),_0x5c6b40=this[_0x4d144b(0x3ba)][_0x4d144b(0x2be)](_0x4acefa),_0x2a3c7b=_0x5c6b40==null?void 0x0:_0x5c6b40[_0x4d144b(0x14a)];return _0x2a3c7b?(0x0,_0x124e3f['of'])(_0x2a3c7b):_0x124e3f[_0x4d144b(0x341)];})):_0x124e3f['EMPTY']))[_0x3d9023(0x17b)](_0x37e6c2=>{const _0x7550f6=_0x3d9023;let _0x115e79=_0x37e6c2[_0x7550f6(0x381)]();this['disposeWithMe'](_0x37e6c2[_0x7550f6(0x307)][_0x7550f6(0x447)](_0x26a1e5=>{const _0x4fde35=_0x7550f6;this[_0x4fde35(0x43c)]&&this['_activeShapeId']&&this[_0x4fde35(0x300)]();})),this[_0x7550f6(0x256)](_0x115e79['changeStart$'][_0x7550f6(0x17b)](_0x36af2c=>{const _0x1c44d4=_0x7550f6;let {objects:_0x3dc268}=_0x36af2c;this[_0x1c44d4(0x300)](),_0x3dc268!==null&&_0x3dc268[_0x1c44d4(0x419)]===0x1&&_0x3dc268[_0x1c44d4(0x158)]()[_0x1c44d4(0x1fe)]()[_0x1c44d4(0x123)]instanceof _0x34cbbf&&(this[_0x1c44d4(0x43c)]=!0x0);})),this[_0x7550f6(0x256)](_0x115e79[_0x7550f6(0x3be)]['subscribe'](_0x27d190=>{const _0x4e7cab=_0x7550f6;this[_0x4e7cab(0x43c)]&&this[_0x4e7cab(0x300)]();})),this[_0x7550f6(0x256)](_0x37e6c2[_0x7550f6(0x292)][_0x7550f6(0x447)](()=>{const _0x4d5b03=_0x7550f6;this['_isDrawingShapePointDown']&&(this[_0x4d5b03(0x43c)]=!0x1,this[_0x4d5b03(0x2fa)]());})),this[_0x7550f6(0x256)](_0x115e79['changeEnd$'][_0x7550f6(0x17b)](()=>{const _0x24c07e=_0x7550f6;this[_0x24c07e(0x44e)]&&this[_0x24c07e(0x18a)]&&this[_0x24c07e(0x166)]&&this[_0x24c07e(0x1a2)]['getDrawingByParam']({'unitId':this[_0x24c07e(0x44e)],'subUnitId':this[_0x24c07e(0x18a)],'drawingId':this['_activeShapeId']})&&(this[_0x24c07e(0x300)](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x1e3977(0x2f6)](){const _0x485fe0=_0x1e3977;this[_0x485fe0(0x256)](this[_0x485fe0(0x1a2)]['focus$'][_0x485fe0(0x17b)](_0x47a928=>{const _0x32ce7f=_0x485fe0;if(_0x47a928['length']===0x1){let _0xe6c74e=_0x47a928[0x0];if(_0xe6c74e['drawingType']===_0x2eccf5[_0x32ce7f(0x43b)]['DRAWING_SHAPE']){let _0x4b825f=this[_0x32ce7f(0x36d)]['getShapeModel'](_0xe6c74e[_0x32ce7f(0x387)],_0xe6c74e[_0x32ce7f(0x204)],_0xe6c74e[_0x32ce7f(0x22a)]);if(_0x4b825f&&(0x0,_0x3d21cd[_0x32ce7f(0x275)])(_0x4b825f['getShapeType']())){this[_0x32ce7f(0x166)]=_0xe6c74e[_0x32ce7f(0x22a)],this[_0x32ce7f(0x44e)]=_0xe6c74e[_0x32ce7f(0x387)],this['_subUnitId']=_0xe6c74e[_0x32ce7f(0x204)],this[_0x32ce7f(0x300)](),this[_0x32ce7f(0x2fa)]();return;}}}this[_0x32ce7f(0x166)]=void 0x0,this['_unitId']=void 0x0,this['_subUnitId']=void 0x0,this[_0x32ce7f(0x300)]();})),this[_0x485fe0(0x256)](this[_0x485fe0(0x1a2)][_0x485fe0(0x35f)][_0x485fe0(0x17b)](_0x1105bf=>{const _0x39e188=_0x485fe0;if(_0x1105bf['length']===0x1){var _0x1d5dd9;let _0x3cbf74=_0x1105bf[0x0],_0x2e685e=(_0x1d5dd9=this[_0x39e188(0x1a2)][_0x39e188(0x3d4)](_0x3cbf74))==null?void 0x0:_0x1d5dd9[_0x39e188(0x34b)];_0x2e685e===_0x2eccf5[_0x39e188(0x43b)][_0x39e188(0x285)]&&_0x3cbf74['drawingId']===this[_0x39e188(0x166)]?(this[_0x39e188(0x300)](),this[_0x39e188(0x2fa)]()):!this[_0x39e188(0x166)]&&_0x2e685e===_0x2eccf5[_0x39e188(0x43b)][_0x39e188(0x285)]&&this[_0x39e188(0x3ca)](_0x3cbf74[_0x39e188(0x387)],_0x3cbf74['subUnitId'],_0x3cbf74['drawingId']);}})),this['disposeWithMe'](this[_0x485fe0(0x1a2)]['remove$'][_0x485fe0(0x17b)](_0x3cd353=>{const _0x170807=_0x485fe0;for(let _0x52081 of _0x3cd353){let {drawingId:_0x5773a2}=_0x52081;if(this[_0x170807(0x166)]===_0x5773a2){this[_0x170807(0x20a)]();return;}}}));}[_0x1e3977(0x206)](_0x3cd745,_0x2d6165,_0x199899,_0x32419a,_0x28c86a){const _0x218af3=_0x1e3977;var _0x3be649,_0x5c0a7e;if(!this[_0x218af3(0x190)])return;let _0x4fcf00=this[_0x218af3(0x150)](_0x3cd745);if(!_0x4fcf00)return;let _0x2d5156=this[_0x218af3(0x19e)]?this[_0x218af3(0x19e)][_0x218af3(0x3b1)]:_0x2d6165,_0x474300=this[_0x218af3(0x19e)]?this[_0x218af3(0x19e)][_0x218af3(0x1bf)]:this[_0x218af3(0x330)](_0x4fcf00['point'],_0x2d5156),_0x2ad999;if(this[_0x218af3(0x19e)]){let _0x42b75c=this['_drawingManagerService'][_0x218af3(0x3d4)]({'unitId':this[_0x218af3(0x19e)]['unitId'],'subUnitId':this[_0x218af3(0x19e)][_0x218af3(0x204)],'drawingId':this[_0x218af3(0x19e)][_0x218af3(0x329)]});if(_0x42b75c!=null&&_0x42b75c['transform']){let {left:_0x22fc49=0x0,top:_0x44be56=0x0,width:_0x4085d4=0x0,height:_0x2df5f4=0x0,angle:_0x394c10}=_0x42b75c['transform'];_0x2ad999=(0x0,_0x3d21cd[_0x218af3(0x306)])({'left':_0x22fc49,'top':_0x44be56,'width':_0x4085d4,'height':_0x2df5f4},_0x394c10||0x0);}else _0x2ad999={'left':_0x2d5156['x'],'top':_0x2d5156['y'],'width':0x0,'height':0x0};}else _0x2ad999={'left':_0x2d5156['x'],'top':_0x2d5156['y'],'width':0x0,'height':0x0};let _0x425944={'point':_0x2d5156,'angle':_0x474300,'bounds':_0x2ad999},_0x41a2bd=_0x199899?_0x425944:_0x4fcf00,_0x339a7d=_0x199899?_0x4fcf00:_0x425944,_0x1b020e=this[_0x218af3(0x190)][_0x218af3(0x162)](),_0x6a3de2=(0x0,_0x3d21cd[_0x218af3(0x3e5)])(_0x41a2bd,_0x339a7d,_0x1b020e);_0x6a3de2&&this['_activeShapeModel'][_0x218af3(0x2eb)](_0x6a3de2);let _0x4c3b68=(0x0,_0x3d21cd['computeConnectorRouteLayout'])(_0x6a3de2,_0x1b020e);_0x4c3b68[_0x218af3(0x181)]!==_0x1b020e&&this[_0x218af3(0x190)][_0x218af3(0x259)](_0x4c3b68[_0x218af3(0x181)]);for(let [_0x24c751,_0x37e4d6]of Object[_0x218af3(0x3d5)](_0x4c3b68[_0x218af3(0x37d)]))this['_activeShapeModel'][_0x218af3(0x2db)](_0x24c751,_0x37e4d6);this[_0x218af3(0x190)]['updateContext']({'width':_0x4c3b68[_0x218af3(0x147)][_0x218af3(0x1f0)],'height':_0x4c3b68['worldRect']['height']}),_0x32419a[_0x218af3(0x1c7)]({'flipX':_0x4c3b68['worldRect'][_0x218af3(0x23d)],'flipY':_0x4c3b68[_0x218af3(0x147)][_0x218af3(0x1ac)],'left':_0x4c3b68[_0x218af3(0x147)][_0x218af3(0x44f)],'top':_0x4c3b68[_0x218af3(0x147)][_0x218af3(0x278)],'width':_0x4c3b68[_0x218af3(0x147)][_0x218af3(0x1f0)],'height':_0x4c3b68[_0x218af3(0x147)]['height'],'angle':_0x4c3b68[_0x218af3(0x14f)]}),_0x32419a['makeDirty'](!0x0);let _0x4ec62c=(_0x3be649=(_0x5c0a7e=this[_0x218af3(0x19e)])==null?void 0x0:_0x5c0a7e[_0x218af3(0x3b1)])==null?_0x2d6165:_0x3be649;_0x28c86a['transformByState']({'left':_0x4ec62c['x']-_0x3d21cd[_0x218af3(0x356)]['cxnPointRadius'],'top':_0x4ec62c['y']-_0x3d21cd['ShapeDefaultConfig']['cxnPointRadius']});}[_0x1e3977(0x334)](_0x1ad03e,_0x18e237,_0x8f5a85,_0x107486,_0x17b8e3){const _0x4c277b=_0x1e3977;var _0x37364e,_0x5ea96a,_0x4c023b,_0x12b853;let _0x47fb69=(_0x37364e=(_0x5ea96a=this[_0x4c277b(0x19e)])==null?void 0x0:_0x5ea96a[_0x4c277b(0x3b1)])==null?_0x1ad03e:_0x37364e,_0x5169bb=_0x3d21cd['ConnectorCoordinateTransform']['computeConnectorResizeLayout'](_0x18e237,_0x47fb69,_0x8f5a85);_0x107486[_0x4c277b(0x1c7)]({'flipX':_0x5169bb[_0x4c277b(0x147)][_0x4c277b(0x23d)],'flipY':_0x5169bb[_0x4c277b(0x147)]['flipY'],'left':_0x5169bb['worldRect']['left'],'top':_0x5169bb[_0x4c277b(0x147)]['top'],'width':_0x5169bb[_0x4c277b(0x147)][_0x4c277b(0x1f0)],'height':_0x5169bb[_0x4c277b(0x147)]['height'],'angle':_0x5169bb[_0x4c277b(0x147)][_0x4c277b(0x1bf)]});let _0x14cee4=(_0x4c023b=(_0x12b853=this[_0x4c277b(0x19e)])==null?void 0x0:_0x12b853['worldPoint'])==null?_0x1ad03e:_0x4c023b;_0x17b8e3['transformByState']({'left':_0x14cee4['x']-_0x3d21cd[_0x4c277b(0x356)][_0x4c277b(0x205)],'top':_0x14cee4['y']-_0x3d21cd[_0x4c277b(0x356)][_0x4c277b(0x205)]});}[_0x1e3977(0x150)](_0x121b84){const _0x362d8d=_0x1e3977;if(!this[_0x362d8d(0x44e)]||!this[_0x362d8d(0x18a)])return null;let {shapeId:_0x3ef477,cxnIndex:_0x5530d3}=_0x121b84,_0x3c45c7=this[_0x362d8d(0x36d)][_0x362d8d(0x134)](this['_unitId'],this[_0x362d8d(0x18a)],_0x3ef477);if(!_0x3c45c7)return null;let _0x51e629=this['_drawingManagerService'][_0x362d8d(0x3d4)]({'unitId':this[_0x362d8d(0x44e)],'subUnitId':this[_0x362d8d(0x18a)],'drawingId':_0x3ef477});if(!(_0x51e629!=null&&_0x51e629['transform']))return null;let {left:_0x1cf372=0x0,top:_0x5c916f=0x0,width:_0x16a2fa=0x0,height:_0x44a130=0x0,flipX:_0x255f3c=!0x1,flipY:_0x4becf9=!0x1,angle:_0xf6ae71}=_0x51e629['transform'];_0x3c45c7[_0x362d8d(0x1b9)]({'width':_0x16a2fa,'height':_0x44a130});let _0x33bccb=_0x3c45c7[_0x362d8d(0x32d)]()[_0x362d8d(0x24b)](_0x2da086=>_0x2da086['index']===_0x5530d3);if(!_0x33bccb)return null;let _0x36aeb1=_0x255f3c?_0x16a2fa-_0x33bccb['x']:_0x33bccb['x'],_0x3de879=_0x4becf9?_0x44a130-_0x33bccb['y']:_0x33bccb['y'];if(_0xf6ae71!==0x0&&_0xf6ae71!=null){let _0x5ec9e1=_0xf6ae71*Math['PI']/0xb4,_0x4bc547=Math['cos'](_0x5ec9e1),_0x3b7e89=Math['sin'](_0x5ec9e1),_0x14f9d9=_0x16a2fa/0x2,_0x3e9855=_0x44a130/0x2,_0x25362b=_0x36aeb1-_0x14f9d9,_0x25271f=_0x3de879-_0x3e9855;_0x36aeb1=_0x14f9d9+_0x25362b*_0x4bc547-_0x25271f*_0x3b7e89,_0x3de879=_0x3e9855+_0x25362b*_0x3b7e89+_0x25271f*_0x4bc547;}_0x36aeb1+=_0x1cf372,_0x3de879+=_0x5c916f;let _0x245a1c=_0x33bccb['ang']/0xea60;_0x255f3c&&(_0x245a1c=0xb4-_0x245a1c),_0x4becf9&&(_0x245a1c=-_0x245a1c),_0x245a1c+=_0xf6ae71||0x0,_0x245a1c=(_0x245a1c%0x168+0x168)%0x168;let _0x191e08=(0x0,_0x3d21cd[_0x362d8d(0x306)])({'left':_0x1cf372,'top':_0x5c916f,'width':_0x16a2fa,'height':_0x44a130},_0xf6ae71||0x0);return{'point':{'x':_0x36aeb1,'y':_0x3de879},'angle':_0x245a1c,'bounds':_0x191e08};}[_0x1e3977(0x330)](_0x1d2174,_0x46b539){let _0x1518ac=_0x46b539['x']-_0x1d2174['x'],_0x535beb=_0x46b539['y']-_0x1d2174['y'];return Math['abs'](_0x1518ac)>=Math['abs'](_0x535beb)?_0x1518ac>=0x0?0xb4:0x0:_0x535beb>=0x0?0x10e:0x5a;}['_reset'](){const _0x58dbce=_0x1e3977;this[_0x58dbce(0x166)]=void 0x0,this[_0x58dbce(0x44e)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x58dbce(0x300)]();}[_0x1e3977(0x175)](){this['_clearShapeConnectorHandlerObjects'](),super['dispose']();}};_0x511a6f=_0xba323d([_0x5a8c13(0x1,_0x2eccf5[_0x1e3977(0x1b2)]),_0x5a8c13(0x2,_0x114b3e[_0x1e3977(0x42b)]),_0x5a8c13(0x3,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x4,_0x2eccf5[_0x1e3977(0x178)]),_0x5a8c13(0x5,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be[_0x1e3977(0x3ad)])),_0x5a8c13(0x6,(0x0,_0x2eccf5['Inject'])(_0x34fe5c)),_0x5a8c13(0x7,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x4bf73b))],_0x511a6f);let _0x186612=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x49b2de,_0x3709cf,_0x32d15f){const _0x5acee5=_0x1e3977;super(),this[_0x5acee5(0x428)]=_0x49b2de,this['_drawingManagerService']=_0x3709cf,this[_0x5acee5(0x157)]=_0x32d15f,this[_0x5acee5(0x38b)]();}['_initPrinting'](){const _0x54e093=_0x1e3977;this[_0x54e093(0x256)](this[_0x54e093(0x428)][_0x54e093(0x1d1)][_0x54e093(0x320)](this[_0x54e093(0x428)][_0x54e093(0x1d1)][_0x54e093(0x16d)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x2f782b,_0x5b75fe,_0x195539)=>{const _0x4c720e=_0x54e093;var _0x55425e;let {unitId:_0x93cbf8,subUnitId:_0x35769d,scene:_0x39bc35,resourceCollector:_0x5e35fc}=_0x5b75fe,_0x1764f2=(_0x55425e=this[_0x4c720e(0x1a2)]['getDrawingDataForUnit'](_0x93cbf8))==null?void 0x0:_0x55425e[_0x35769d];return _0x1764f2==null||_0x1764f2[_0x4c720e(0x258)]['forEach'](_0x5d4466=>{const _0x4dcaee=_0x4c720e;let _0x2c40e3=_0x1764f2[_0x4dcaee(0x346)][_0x5d4466];_0x2c40e3[_0x4dcaee(0x34b)]===_0x2eccf5[_0x4dcaee(0x43b)]['DRAWING_SHAPE']&&!_0x2c40e3[_0x4dcaee(0x1f2)]&&this[_0x4dcaee(0x157)][_0x4dcaee(0x413)](_0x2c40e3,_0x39bc35,{'resourceCollector':_0x5e35fc});}),_0x195539(_0x2f782b);}}));}};_0x186612=_0xba323d([_0x5a8c13(0x0,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x3c12d8['SheetPrintInterceptorService'])),_0x5a8c13(0x1,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x2,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1f5133))],_0x186612);let _0x1361b3=class extends _0x2eccf5['Disposable']{constructor(_0x15e8c3,_0x53802f,_0xde8ffc){const _0x3c9b0a=_0x1e3977;super(),this[_0x3c9b0a(0x2dc)]=_0x15e8c3,this['_localeService']=_0x53802f,this[_0x3c9b0a(0x229)]=_0xde8ffc,this[_0x3c9b0a(0x3d3)]();}[_0x1e3977(0x3d3)](){const _0x5eab34=_0x1e3977;this[_0x5eab34(0x256)](this['_commandService'][_0x5eab34(0x223)](_0x3e3c0d=>{const _0x38977b=_0x5eab34;let _0x5f38c3,_0x5af7f9;if(_0x3e3c0d['id']===_0x1b87be[_0x38977b(0x16f)]['id']||_0x3e3c0d['id']===_0x1b87be['SetShapeDrawingDataCommand']['id']||_0x3e3c0d['id']===_0x1b87be[_0x38977b(0x164)]['id']){let _0x41f39b=_0x3e3c0d[_0x38977b(0x2bc)];_0x5f38c3=_0x41f39b[_0x38977b(0x387)],_0x5af7f9=_0x41f39b[_0x38977b(0x204)];}!_0x5f38c3||!_0x5af7f9||this[_0x38977b(0x229)][_0x38977b(0x2d0)]({'workbookTypes':[_0x2554f2[_0x38977b(0x403)]],'worksheetTypes':[_0x2554f2[_0x38977b(0x326)]]},_0x5f38c3,_0x5af7f9)||this['_sheetPermissionCheckController'][_0x38977b(0x41c)](this[_0x38977b(0x412)]['t']('sheets-shape-ui.permission.editErr'));}));}};_0x1361b3=_0xba323d([_0x5a8c13(0x0,(0x0,_0x2eccf5['Inject'])(_0x2eccf5[_0x1e3977(0x1b2)])),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2eccf5[_0x1e3977(0x24d)])),_0x5a8c13(0x2,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2554f2[_0x1e3977(0x400)]))],_0x1361b3);let _0x23f73b=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x2c7613,_0x2e3386,_0x12e26c,_0x327bb8,_0x4cc101,_0x1f5266,_0x136fda,_0x3e47e3,_0x85c063,_0x5164ac,_0xbec7da){const _0x388667=_0x1e3977;super(),this[_0x388667(0x18f)]=_0x2c7613,this[_0x388667(0x3dd)]=_0x2e3386,this[_0x388667(0x24e)]=_0x12e26c,this[_0x388667(0x36d)]=_0x327bb8,this[_0x388667(0x412)]=_0x4cc101,this['_commandService']=_0x1f5266,this[_0x388667(0x1a2)]=_0x136fda,this[_0x388667(0x371)]=_0x3e47e3,this[_0x388667(0x133)]=_0x85c063,this[_0x388667(0x3ba)]=_0x5164ac,this[_0x388667(0x2e0)]=_0xbec7da,_0x163ed0(this,_0x388667(0x276),null),_0x163ed0(this,_0x388667(0x17e),null),_0x163ed0(this,_0x388667(0x3d0),!0x1),_0x163ed0(this,_0x388667(0x2a3),0x0),_0x163ed0(this,_0x388667(0x1d2),new Set()),_0x163ed0(this,_0x388667(0x43d),[]),this[_0x388667(0x1a3)](),this[_0x388667(0x256)](this[_0x388667(0x18f)][_0x388667(0x2b4)](_0x2eccf5[_0x388667(0x296)]['UNIVER_SHEET'])[_0x388667(0x17b)](_0x22d4b1=>{const _0x73333a=_0x388667;if(!_0x22d4b1){var _0x3199e5;(_0x3199e5=this['_sidebarDisposable'])==null||_0x3199e5[_0x73333a(0x175)]();return;}this['_createShapePopupMenu'](_0x22d4b1);})),this[_0x388667(0x220)](),this[_0x388667(0x28b)](),this['disposeWithMe'](this['_shapeTextEditingService']['editingParams$'][_0x388667(0x17b)](_0x52a9e0=>{const _0x5d666f=_0x388667;_0x52a9e0&&this[_0x5d666f(0x20c)]();}));}[_0x1e3977(0x1a3)](){const _0x47a12f=_0x1e3977;this['_menuManagerService'][_0x47a12f(0x1c1)](_0x3b310c);}['initShapePopupMenu'](){const _0x188818=_0x1e3977;this[_0x188818(0x18f)]['getAllUnitsForType'](_0x2eccf5[_0x188818(0x296)]['UNIVER_SHEET'])[_0x188818(0x30e)](_0x47b56a=>this['_createShapePopupMenu'](_0x47b56a));}[_0x1e3977(0x297)](_0x332bae,_0x5d26d5,_0x909dc5){const _0x42bfb2=_0x1e3977;let _0x3336f0=this[_0x42bfb2(0x36d)][_0x42bfb2(0x143)](_0x332bae,_0x5d26d5,_0x909dc5),_0x165276=this['_sheetsShapeService'][_0x42bfb2(0x3b9)](_0x332bae,_0x5d26d5,_0x909dc5);return _0x3336f0!==void 0x0&&_0x165276!==void 0x0?{'shapeData':_0x165276,'shapeId':_0x909dc5,'shapeType':_0x3336f0,'unitId':_0x332bae,'subUnitId':_0x5d26d5,'version':this[_0x42bfb2(0x2a3)],'disableShapeOption':!0x1}:null;}[_0x1e3977(0x15e)](_0x1d609d){const _0x3a1478=_0x1e3977;if(!_0x1d609d)return;let _0x466334=_0x1d609d[_0x3a1478(0x322)]();this[_0x3a1478(0x3ba)][_0x3a1478(0x431)](_0x466334)&&!this[_0x3a1478(0x1d2)][_0x3a1478(0x431)](_0x466334)&&(this[_0x3a1478(0x266)](_0x466334),this[_0x3a1478(0x1d2)][_0x3a1478(0x42c)](_0x466334));}[_0x1e3977(0x20c)](){const _0x4a4804=_0x1e3977;this[_0x4a4804(0x43d)]['forEach'](_0x206dc8=>_0x206dc8[_0x4a4804(0x175)]()),this[_0x4a4804(0x43d)][_0x4a4804(0x337)]=0x0;}[_0x1e3977(0x266)](_0xe349b6){const _0x169ebf=_0x1e3977;var _0x1d8c02;let _0x4d21e7=(_0x1d8c02=this[_0x169ebf(0x3ba)][_0x169ebf(0x2be)](_0xe349b6))==null?void 0x0:_0x1d8c02[_0x169ebf(0x14a)],_0x5cfd71=_0x4d21e7==null?void 0x0:_0x4d21e7['getTransformerByCreate']();!_0x4d21e7||!_0x5cfd71||(this['disposeWithMe'](_0x5cfd71['createControl$'][_0x169ebf(0x17b)](()=>{const _0x1ebd5c=_0x169ebf;let _0x582491=_0x5cfd71[_0x1ebd5c(0x36b)]();if(this[_0x1ebd5c(0x20c)](),this[_0x1ebd5c(0x3d0)]||_0x582491[_0x1ebd5c(0x419)]>0x1)return;let _0x80dd98=_0x582491['values']()[_0x1ebd5c(0x1fe)]()[_0x1ebd5c(0x123)];if(!_0x80dd98)return;let _0x3e99ee=this[_0x1ebd5c(0x1a2)][_0x1ebd5c(0x2b5)](_0x80dd98[_0x1ebd5c(0x23a)]);if(!_0x3e99ee||_0x3e99ee[_0x1ebd5c(0x34b)]!==_0x2eccf5['DrawingTypeEnum']['DRAWING_SHAPE'])return;let {unitId:_0x3a1667,subUnitId:_0x55187e,drawingId:_0x19c611,drawingType:_0x21527d}=_0x3e99ee,_0x4821ee=this[_0x1ebd5c(0x297)](_0x3a1667,_0x55187e,_0x19c611);if(!_0x4821ee)return;this[_0x1ebd5c(0x133)]['setContextValue'](_0x2eccf5['FOCUSING_COMMON_DRAWINGS'],!0x0);let _0x4340c1=this[_0x1ebd5c(0x371)]['attachPopupToObject'](_0x80dd98,{'componentKey':_0x1f1d2c,'direction':_0x1ebd5c(0x25d),'offset':[0x0,_0x25b599[_0x1ebd5c(0x317)]],'extraProps':{'unitId':_0x3a1667,'subUnitId':_0x55187e,'drawingId':_0x19c611,'drawingType':_0x21527d,'shapeType':_0x4821ee[_0x1ebd5c(0x436)],'shapeData':_0x4821ee[_0x1ebd5c(0x28a)]}});this['_disposePopups'][_0x1ebd5c(0x1b1)](this[_0x1ebd5c(0x256)](_0x4340c1)),this[_0x1ebd5c(0x1a2)][_0x1ebd5c(0x40c)]()[_0x1ebd5c(0x24b)](_0xaa4701=>_0xaa4701[_0x1ebd5c(0x387)]===_0x3a1667&&_0xaa4701[_0x1ebd5c(0x204)]===_0x55187e&&_0xaa4701['drawingId']===_0x19c611)||this[_0x1ebd5c(0x1a2)]['focusDrawing']([{'unitId':_0x3a1667,'subUnitId':_0x55187e,'drawingId':_0x19c611}]);})),this[_0x169ebf(0x256)](_0x5cfd71[_0x169ebf(0x27c)]['subscribe'](()=>{const _0x2b6dcd=_0x169ebf;this[_0x2b6dcd(0x20c)](),this[_0x2b6dcd(0x133)][_0x2b6dcd(0x3a0)](_0x2eccf5[_0x2b6dcd(0x27e)],!0x1),this[_0x2b6dcd(0x1a2)][_0x2b6dcd(0x423)](null);})),this['disposeWithMe'](_0x5cfd71[_0x169ebf(0x3be)][_0x169ebf(0x17b)](()=>{const _0x4c7d3c=_0x169ebf;this[_0x4c7d3c(0x20c)]();})),this['disposeWithMe'](_0x5cfd71['changeStart$'][_0x169ebf(0x17b)](()=>{this['_clearPopups']();})));}[_0x1e3977(0x220)](){const _0x4a7640=_0x1e3977;this[_0x4a7640(0x256)](this[_0x4a7640(0x2dc)][_0x4a7640(0x17a)](_0x44fc21=>{const _0x43e5cb=_0x4a7640;if(_0x44fc21['id']===_0x148656['id']){let {unitId:_0x206763,subUnitId:_0x5dfe46,drawingId:_0x944b5e}=_0x44fc21[_0x43e5cb(0x2bc)];this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x43e5cb(0x297)](_0x206763,_0x5dfe46,_0x944b5e),this[_0x43e5cb(0x20c)](),this['_openShapeEditPanel']();}if(_0x44fc21['id']===_0x157efe['id']&&(this[_0x43e5cb(0x17e)]=null,this[_0x43e5cb(0x16c)]()),_0x44fc21['id']===_0x1b87be[_0x43e5cb(0x3da)]['id']){let {unitId:_0x553cd2,subUnitId:_0x209eba,shapeId:_0x2f4c5f}=_0x44fc21[_0x43e5cb(0x2bc)];if(this[_0x43e5cb(0x17e)]&&this[_0x43e5cb(0x17e)][_0x43e5cb(0x329)]===_0x2f4c5f){let _0x16c0ff=this[_0x43e5cb(0x297)](_0x553cd2,_0x209eba,_0x2f4c5f);_0x16c0ff&&(this['_shapeEditPanelVersion']+=0x1,_0x16c0ff[_0x43e5cb(0x10c)]=this[_0x43e5cb(0x2a3)],this[_0x43e5cb(0x17e)]=_0x16c0ff,this[_0x43e5cb(0x3d0)]&&this[_0x43e5cb(0x15c)]());}}})),this['disposeWithMe'](this[_0x4a7640(0x1a2)][_0x4a7640(0x394)]['subscribe'](_0x1fa47d=>{const _0x22dd65=_0x4a7640;if(this[_0x22dd65(0x3d0)]===!0x1)return;if(_0x1fa47d[_0x22dd65(0x337)]===0x0){this[_0x22dd65(0x17e)]=null,this[_0x22dd65(0x16c)]();return;}if(_0x1fa47d['length']===0x1&&_0x1fa47d[0x0][_0x22dd65(0x34b)]===_0x2eccf5[_0x22dd65(0x43b)]['DRAWING_SHAPE']&&(this[_0x22dd65(0x2a3)]+=0x1,this[_0x22dd65(0x17e)]=this[_0x22dd65(0x297)](_0x1fa47d[0x0]['unitId'],_0x1fa47d[0x0]['subUnitId'],_0x1fa47d[0x0][_0x22dd65(0x22a)]),this['_activeShapeInfo'])){this[_0x22dd65(0x15c)]();return;}let _0x32d712=_0x1fa47d['filter'](_0xfd4cfc=>_0xfd4cfc[_0x22dd65(0x34b)]===_0x2eccf5[_0x22dd65(0x43b)]['DRAWING_SHAPE']);if(_0x1fa47d[_0x22dd65(0x337)]>0x1&&_0x32d712[_0x22dd65(0x337)]===_0x1fa47d[_0x22dd65(0x337)]){if(this[_0x22dd65(0x2a3)]+=0x1,this[_0x22dd65(0x17e)]=this['_getShapeInfo'](_0x1fa47d[0x0][_0x22dd65(0x387)],_0x1fa47d[0x0][_0x22dd65(0x204)],_0x1fa47d[0x0][_0x22dd65(0x22a)]),this[_0x22dd65(0x17e)]){this[_0x22dd65(0x15c)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x22dd65(0x297)](_0x1fa47d[0x0]['unitId'],_0x1fa47d[0x0][_0x22dd65(0x204)],_0x1fa47d[0x0][_0x22dd65(0x22a)]),this[_0x22dd65(0x17e)]){this[_0x22dd65(0x17e)]['disableShapeOption']=!0x0,this[_0x22dd65(0x15c)]();return;}}this['_closeShapeEditPanel']();}));}[_0x1e3977(0x15c)](){const _0x54fee2=_0x1e3977;this['_activeShapeInfo']&&(this[_0x54fee2(0x276)]=this[_0x54fee2(0x3dd)][_0x54fee2(0x1bc)]({'id':_0xb9db8d,'header':{'title':this[_0x54fee2(0x412)]['t'](_0x54fee2(0x130))},'width':0x184,'children':{'label':_0xb9db8d,...this[_0x54fee2(0x17e)]},'onClose':()=>{const _0x57eae2=_0x54fee2;this[_0x57eae2(0x1a2)]['focusDrawing'](null),this[_0x57eae2(0x133)][_0x57eae2(0x3a0)](_0x2eccf5[_0x57eae2(0x27e)],!0x1),this['_sidebarDisposable']=null;}}),this[_0x54fee2(0x3d0)]=!0x0);}['_closeShapeEditPanel'](){const _0x24b7f0=_0x1e3977;this[_0x24b7f0(0x3d0)]=!0x1,this[_0x24b7f0(0x3dd)][_0x24b7f0(0x309)](_0xb9db8d),this[_0x24b7f0(0x276)]=null,this['_contextService']['setContextValue'](_0x2eccf5['FOCUSING_COMMON_DRAWINGS'],!0x1),this['_drawingManagerService'][_0x24b7f0(0x423)](null);}};_0x23f73b=_0xba323d([_0x5a8c13(0x0,_0x2eccf5[_0x1e3977(0x178)]),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x4b5551[_0x1e3977(0x1d5)])),_0x5a8c13(0x2,_0x4b5551[_0x1e3977(0x1eb)]),_0x5a8c13(0x3,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be[_0x1e3977(0x3ad)])),_0x5a8c13(0x4,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2eccf5[_0x1e3977(0x24d)])),_0x5a8c13(0x5,_0x2eccf5[_0x1e3977(0x1b2)]),_0x5a8c13(0x6,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x7,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x3c12d8[_0x1e3977(0x41e)])),_0x5a8c13(0x8,_0x2eccf5[_0x1e3977(0x138)]),_0x5a8c13(0x9,_0x114b3e[_0x1e3977(0x42b)]),_0x5a8c13(0xa,(0x0,_0x2eccf5['Inject'])(_0x31cbef))],_0x23f73b);let _0x2ba9f7=class extends _0x2eccf5[_0x1e3977(0x1de)]{constructor(_0x1b3284=_0x4f4787,_0x2f6512,_0x45b222,_0x2c96b3,_0x3ba019){const _0x34e61a=_0x1e3977;super(),this[_0x34e61a(0x3a1)]=_0x1b3284,this[_0x34e61a(0x3a6)]=_0x2f6512,this[_0x34e61a(0x2dc)]=_0x45b222,this[_0x34e61a(0x23f)]=_0x2c96b3,this[_0x34e61a(0x3ba)]=_0x3ba019;let {..._0x53b7db}=(0x0,_0x2eccf5[_0x34e61a(0x2fe)])({},_0x4f4787,this[_0x34e61a(0x3a1)]);this['_configService'][_0x34e61a(0x328)](_0x34e61a(0x271),_0x53b7db),this['_initCommands']();}[_0x1e3977(0x30d)](){const _0x4db71c=_0x1e3977;(0x0,_0x2eccf5[_0x4db71c(0x151)])(this[_0x4db71c(0x3a6)],[[_0x23f73b],[_0x262dc4],[_0x1f5133],[_0x186612]]);}[_0x1e3977(0x295)](){const _0xd1447b=_0x1e3977;this[_0xd1447b(0x3a6)][_0xd1447b(0x32f)](_0x23f73b)['initShapePopupMenu']();}[_0x1e3977(0x2a6)](){const _0x43aa97=_0x1e3977;[[_0x4bf73b],[_0x34fe5c],[_0x13cfb8]][_0x43aa97(0x30e)](_0x1607fb=>this[_0x43aa97(0x3a6)][_0x43aa97(0x42c)](_0x1607fb)),(0x0,_0x2eccf5['touchDependencies'])(this[_0x43aa97(0x3a6)],[[_0x13cfb8],[_0x34fe5c]]),this[_0x43aa97(0x3ba)][_0x43aa97(0x261)](_0x2eccf5['UniverInstanceType'][_0x43aa97(0x293)],[_0x4bf73b]),this[_0x43aa97(0x3ba)][_0x43aa97(0x261)](_0x2eccf5[_0x43aa97(0x296)][_0x43aa97(0x293)],[_0x1970f0]),this['_renderManagerService']['registerRenderModule'](_0x2eccf5[_0x43aa97(0x296)]['UNIVER_SHEET'],[_0x511a6f]),this['_renderManagerService'][_0x43aa97(0x261)](_0x2eccf5[_0x43aa97(0x296)][_0x43aa97(0x293)],[_0x3ec7c3]),this[_0x43aa97(0x3ba)][_0x43aa97(0x261)](_0x2eccf5['UniverInstanceType']['UNIVER_DOC'],[_0x298514]);}[_0x1e3977(0x3c0)](){const _0x2bd449=_0x1e3977;this['_injector'][_0x2bd449(0x42c)]([_0x1ef4c8]),this['_injector']['get'](_0x1ef4c8);let _0x55c1ff=this['_injector'];[[_0x23f73b],[_0x262dc4],[_0x1f5133],[_0x186612],[_0x2950cd],[_0x31cbef],[_0x3f5298],[_0x432d68],[_0x1361b3]]['forEach'](_0x4a15c8=>_0x55c1ff[_0x2bd449(0x42c)](_0x4a15c8)),(0x0,_0x2eccf5[_0x2bd449(0x151)])(this[_0x2bd449(0x3a6)],[[_0x23f73b],[_0x262dc4],[_0x1f5133],[_0x2950cd],[_0x31cbef],[_0x3f5298],[_0x432d68],[_0x1361b3]]);}[_0x1e3977(0x405)](){const _0x528249=_0x1e3977;[_0x29cd9f,_0x5a577b,_0x157efe,_0x148656,_0x393ac4,_0x4162f6][_0x528249(0x30e)](_0x4f377c=>this['disposeWithMe'](this[_0x528249(0x2dc)][_0x528249(0x22b)](_0x4f377c)));}};_0x163ed0(_0x2ba9f7,'type',_0x2eccf5[_0x1e3977(0x296)][_0x1e3977(0x293)]),_0x163ed0(_0x2ba9f7,_0x1e3977(0x137),_0x1e3977(0x231)),_0x163ed0(_0x2ba9f7,_0x1e3977(0x163),_0xa08251),_0x163ed0(_0x2ba9f7,_0x1e3977(0x10c),_0x3fe8c1),_0x2ba9f7=_0xba323d([(0x0,_0x2eccf5['DependentOn'])(_0x3fe551[_0x1e3977(0x146)],_0x4f7558[_0x1e3977(0x21d)],_0x215a9[_0x1e3977(0x347)],_0x34fb64[_0x1e3977(0x3f9)],_0x114b3e[_0x1e3977(0x1d3)],_0x2554f2[_0x1e3977(0x327)],_0x2a24ec[_0x1e3977(0x290)],_0x2a2650[_0x1e3977(0x44c)],_0x4b5551[_0x1e3977(0x233)],_0x32598e[_0x1e3977(0x353)],_0x101b82[_0x1e3977(0x277)],_0x1b87be[_0x1e3977(0x364)],_0x3c12d8[_0x1e3977(0x1fc)],_0x25b599['UniverShapeEditorUIPlugin']),_0x5a8c13(0x1,(0x0,_0x2eccf5['Inject'])(_0x2eccf5[_0x1e3977(0x3ce)])),_0x5a8c13(0x2,_0x2eccf5[_0x1e3977(0x1b2)]),_0x5a8c13(0x3,_0x2eccf5[_0x1e3977(0x3e1)]),_0x5a8c13(0x4,_0x114b3e['IRenderManagerService'])],_0x2ba9f7),_0x962624[_0x1e3977(0x1cd)]=_0x3b310c,Object[_0x1e3977(0x29f)](_0x962624,'UniverSheetsShapeUIPlugin',{'enumerable':!0x0,'get':function(){return _0x2ba9f7;}});}));