@univerjs-pro/sheets-shape-ui 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/commands/command/set-shape-text-align.command.d.ts +5 -0
- package/lib/types/commands/command/set-shape-text-style.command.d.ts +7 -0
- package/lib/types/commands/command/set-shape-text-vertical-align.command.d.ts +5 -0
- package/lib/types/commands/command/shape-doc-align.command.d.ts +10 -0
- package/lib/types/commands/menu/menu-dependencies.d.ts +2 -0
- package/lib/types/commands/menu/object-list.menu.d.ts +4 -0
- package/lib/types/commands/menu/shape-doc-format.menu.d.ts +19 -0
- package/lib/types/commands/menu/shape-font-size.menu.d.ts +6 -0
- package/lib/types/commands/menu/shape-text-align.menu.d.ts +10 -0
- package/lib/types/commands/menu/shape-vertical-align.menu.d.ts +10 -0
- package/lib/types/commands/operations/actvie-drawing-operation.d.ts +2 -0
- package/lib/types/controllers/shape-text-hyper-link.render-controller.d.ts +9 -0
- package/lib/types/view-model/drawing-shape.d.ts +2 -0
- package/lib/types/view-model/shape-data-model.d.ts +8 -0
- package/lib/types/views/ShapeOptions.d.ts +26 -0
- package/lib/types/views/shape-editor-panel/ShapeLineEditor.d.ts +12 -0
- package/lib/types/views/shape-editor-panel/index.d.ts +1 -0
- package/lib/types/views/shape-text-editor/ShapeTextFloatToolbar.d.ts +2 -0
- package/lib/types/views/shapes.d.ts +58 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +19 -19
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x12db2b=_0xde32;(function(_0x40db62,_0x20adcf){const _0x147c2c=_0xde32,_0x1cee01=_0x40db62();while(!![]){try{const _0x576476=-parseInt(_0x147c2c(0x286))/0x1+-parseInt(_0x147c2c(0x4f8))/0x2+-parseInt(_0x147c2c(0x3c1))/0x3+-parseInt(_0x147c2c(0x2ad))/0x4+parseInt(_0x147c2c(0x240))/0x5*(-parseInt(_0x147c2c(0x34a))/0x6)+-parseInt(_0x147c2c(0x2ef))/0x7*(parseInt(_0x147c2c(0x238))/0x8)+parseInt(_0x147c2c(0x40d))/0x9;if(_0x576476===_0x20adcf)break;else _0x1cee01['push'](_0x1cee01['shift']());}catch(_0x20cd38){_0x1cee01['push'](_0x1cee01['shift']());}}}(_0x472f,0xd38fc),Object[_0x12db2b(0x4d1)](exports,Symbol['toStringTag'],{'value':_0x12db2b(0x3e0)}));let e=require('@univerjs-pro/shape-editor-ui'),t=require('@univerjs/ui'),n=require('@univerjs-pro/engine-shape'),r=require('@univerjs-pro/shape-editor'),i=require('@univerjs-pro/sheets-shape'),a=require('@univerjs/core'),o=require('@univerjs/sheets'),s=require('@univerjs/drawing'),c=require('@univerjs/engine-render'),l=require('@univerjs/sheets-ui'),u=require('rxjs'),d=require('@univerjs/drawing-ui'),f=require('@univerjs/design'),p=require('react/jsx-runtime'),m=require('@univerjs/sheets-drawing'),h=require('@univerjs-pro/license'),g=require('@univerjs/docs'),_=require('@univerjs/docs-ui'),v=require('@univerjs/sheets-drawing-ui'),y=require('@univerjs/icons'),b=require('react');function x(_0x17a3a0,_0x31b3af){const _0x1329cf=_0x12db2b;let _0x1e9980={};for(let _0x158361 of Object['keys'](_0x31b3af)){let _0x4e663e=_0x31b3af[_0x158361],_0x2db24a=_0x17a3a0[_0x158361];if(_0x2db24a===void 0x0){_0x1e9980[_0x158361]=void 0x0;continue;}_0x1e9980[_0x158361]=typeof _0x4e663e==_0x1329cf(0x34b)&&_0x4e663e&&!Array[_0x1329cf(0x19b)](_0x4e663e)&&typeof _0x2db24a=='object'&&_0x2db24a&&!Array[_0x1329cf(0x19b)](_0x2db24a)?x(_0x2db24a,_0x4e663e):_0x2db24a;}return _0x1e9980;}const S={'type':a[_0x12db2b(0x21d)][_0x12db2b(0x2d6)],'id':_0x12db2b(0x220),'handler':(_0x40de63,_0x35789c)=>{const _0x1efc93=_0x12db2b;let _0x52d221=_0x40de63['get'](i[_0x1efc93(0x2e7)]),{unitId:_0x4662ec,subUnitId:_0x4e3469,shapeType:_0x560aff,shapeId:_0x46e992,shapeData:_0x410793,replaceShapeData:_0x162a4b,oldShapeJSON:_0x29ca0a}=_0x35789c;if(!_0x52d221['getShapeModel'](_0x4662ec,_0x4e3469,_0x46e992))return!0x1;let _0x46140c=_0x40de63[_0x1efc93(0x3cb)](a['ICommandService']),_0x195edc=_0x40de63['get'](a[_0x1efc93(0x485)]),{oldShapeType:_0x20bbd5,oldShapeData:_0x18320a={}}=_0x29ca0a,_0x855493=_0x162a4b?_0x18320a:x(_0x18320a,_0x410793||{}),_0x27f3bd={'id':i[_0x1efc93(0x36f)]['id'],'params':{'unitId':_0x4662ec,'subUnitId':_0x4e3469,'shapeId':_0x46e992,'shapeType':_0x560aff,'shapeData':_0x410793,'replace':_0x162a4b}},_0x5871d5={'id':i['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x4662ec,'subUnitId':_0x4e3469,'shapeId':_0x46e992,'shapeType':_0x20bbd5,'shapeData':_0x855493,'replace':_0x162a4b}};return _0x46140c[_0x1efc93(0x20e)](_0x27f3bd['id'],_0x27f3bd['params'])?(_0x195edc[_0x1efc93(0x3d5)]({'unitID':_0x4662ec,'undoMutations':[_0x5871d5],'redoMutations':[_0x27f3bd]}),!0x0):!0x1;}};function C(_0x17409d,_0x8d7a04,_0x42a73b,_0x43bc12,_0x546daa,_0x5ca380){const _0x17bce7=_0x12db2b;let _0x824003={'unitId':_0x8d7a04,'subUnitId':_0x42a73b,'shapeId':_0x43bc12,'shapeData':_0x5ca380,'oldShapeJSON':_0x546daa};return _0x17409d[_0x17bce7(0x461)](S['id'],_0x824003);}function w(_0x5d5a36,_0x53437d,_0x53f608,_0x208cd9,_0x2c6c6d,_0x35a05a){const _0x436398=_0x12db2b;let _0x44caba={'unitId':_0x53437d,'subUnitId':_0x53f608,'shapeId':_0x208cd9,'shapeData':_0x35a05a,'oldShapeJSON':_0x2c6c6d};return _0x5d5a36[_0x436398(0x461)](S['id'],_0x44caba);}function T(_0x56f034){'@babel/helpers - typeof';const _0x1ed167=_0x12db2b;return T=typeof Symbol=='function'&&typeof Symbol[_0x1ed167(0x1b7)]==_0x1ed167(0x26c)?function(_0x153e78){return typeof _0x153e78;}:function(_0x1c5376){const _0x16b52a=_0x1ed167;return _0x1c5376&&typeof Symbol==_0x16b52a(0x2f2)&&_0x1c5376[_0x16b52a(0x31b)]===Symbol&&_0x1c5376!==Symbol[_0x16b52a(0x4be)]?'symbol':typeof _0x1c5376;},T(_0x56f034);}function ee(_0x4e6884,_0x19a621){const _0x38f180=_0x12db2b;if(T(_0x4e6884)!=_0x38f180(0x34b)||!_0x4e6884)return _0x4e6884;var _0x4579fc=_0x4e6884[Symbol[_0x38f180(0x38e)]];if(_0x4579fc!==void 0x0){var _0x2d2ac3=_0x4579fc['call'](_0x4e6884,_0x19a621||_0x38f180(0x4c5));if(T(_0x2d2ac3)!=_0x38f180(0x34b))return _0x2d2ac3;throw TypeError(_0x38f180(0x51d));}return(_0x19a621===_0x38f180(0x40e)?String:Number)(_0x4e6884);}function te(_0x1d31cd){const _0x1c4ada=_0x12db2b;var _0x2c7d1e=ee(_0x1d31cd,'string');return T(_0x2c7d1e)==_0x1c4ada(0x26c)?_0x2c7d1e:_0x2c7d1e+'';}function E(_0x386b84,_0x195013,_0x39c158){return(_0x195013=te(_0x195013))in _0x386b84?Object['defineProperty'](_0x386b84,_0x195013,{'value':_0x39c158,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x386b84[_0x195013]=_0x39c158,_0x386b84;}function ne(_0x3f8cbb,_0x62e876,_0xce215f){const _0x160857=_0x12db2b;let _0x2a7e4a={..._0x62e876,'dataModel':{..._0x62e876[_0x160857(0x3d7)]??{},..._0xce215f?{'doc':_0xce215f}:null}},_0x133a90=(0x0,e[_0x160857(0x403)])(_0x3f8cbb,_0x2a7e4a),_0x27c68b=(0x0,e['resolveShapeTextEditorWrapStrategy'])(_0x133a90);return{'clip':(0x0,e[_0x160857(0x23b)])(_0x133a90,_0x27c68b),'wrapStrategy':_0x27c68b};}var D=class extends c['Shape']{constructor(_0x3d0250,_0x5212d0){const _0x4d014b=_0x12db2b;super(_0x3d0250,_0x5212d0),E(this,_0x4d014b(0x4cb),void 0x0),E(this,_0x4d014b(0x27e),new e[(_0x4d014b(0x4f3))](()=>this[_0x4d014b(0x335)](!0x0),()=>this[_0x4d014b(0x398)]())),E(this,'_transformCalculateSrcRect',!0x0),E(this,_0x4d014b(0x4e2),a[_0x4d014b(0x3bd)]['DRAWING_SHAPE']),E(this,'isDrawingObject',!0x0),this[_0x4d014b(0x4cb)]={..._0x5212d0},this['_formulaAnimation'][_0x4d014b(0x1a4)](_0x5212d0[_0x4d014b(0x31a)],_0x5212d0[_0x4d014b(0x425)]!==!0x1),this[_0x4d014b(0x26f)](),this[_0x4d014b(0x398)]();}[_0x12db2b(0x26f)](){const _0xa012ca=_0x12db2b;this[_0xa012ca(0x3ce)]['subscribeEvent'](_0x24b748=>{const _0x43624d=_0xa012ca;this[_0x43624d(0x1a7)](_0x24b748);});}[_0x12db2b(0x357)](_0x44ec1e){const _0x1214d6=_0x12db2b;this[_0x1214d6(0x4cb)][_0x1214d6(0x394)]=_0x44ec1e;}[_0x12db2b(0x215)](_0x1b4a83){const _0x1cf620=_0x12db2b;this[_0x1cf620(0x4cb)][_0x1cf620(0x228)]=_0x1b4a83,this[_0x1cf620(0x335)](!0x0);}[_0x12db2b(0x37f)](_0x47c6db,_0x1a8cd0=!0x0){const _0x3d7b36=_0x12db2b;this[_0x3d7b36(0x27e)][_0x3d7b36(0x1a4)](_0x47c6db,_0x1a8cd0),this[_0x3d7b36(0x4cb)][_0x3d7b36(0x31a)]=_0x47c6db,this[_0x3d7b36(0x398)](),this['makeDirty'](!0x0);}['_applyFormulaAutoFitSize'](){const _0x1f8f2e=_0x12db2b;let _0x304419=this[_0x1f8f2e(0x4cb)][_0x1f8f2e(0x471)],_0x5b395f=_0x304419[_0x1f8f2e(0x2a4)](),_0x467073=(0x0,e[_0x1f8f2e(0x239)])(_0x5b395f==null?void 0x0:_0x5b395f['dataModel']),_0x8d904c=_0x467073==null?void 0x0:_0x467073[_0x1f8f2e(0x3ea)],_0x19cc4a=this['_formulaAnimation'][_0x1f8f2e(0x3b3)]();if(!_0x8d904c||_0x19cc4a[_0x1f8f2e(0x2c6)]===0x0)return;_0x304419[_0x1f8f2e(0x33b)]({'width':this[_0x1f8f2e(0x1c0)],'height':this[_0x1f8f2e(0x4b9)]});let _0x104338=(0x0,e[_0x1f8f2e(0x224)])({'documentData':_0x19cc4a[_0x1f8f2e(0x2f4)](_0x54bc3a=>(0x0,r[_0x1f8f2e(0x43d)])(_0x8d904c,_0x54bc3a)),'height':this[_0x1f8f2e(0x4b9)],'shapeData':_0x304419['getShapeData'](),'textRect':_0x304419[_0x1f8f2e(0x48c)]({'left':0x0,'top':0x0,'width':this[_0x1f8f2e(0x1c0)],'height':this[_0x1f8f2e(0x4b9)]}),'width':this[_0x1f8f2e(0x1c0)]});if(_0x104338){var _0x372299;this[_0x1f8f2e(0x2cc)](_0x104338[_0x1f8f2e(0x1c0)],_0x104338['height']),(_0x372299=this[_0x1f8f2e(0x458)]())==null||(_0x372299=_0x372299['getTransformer']())==null||_0x372299[_0x1f8f2e(0x3fb)]();}}get[_0x12db2b(0x315)](){const _0x20ddbb=_0x12db2b;return this['_props'][_0x20ddbb(0x315)];}get[_0x12db2b(0x19f)](){const _0x1d16bc=_0x12db2b;return this[_0x1d16bc(0x4cb)][_0x1d16bc(0x19f)];}[_0x12db2b(0x1a7)](_0x38ea97){const _0x53d69e=_0x12db2b;if(this[_0x53d69e(0x4cb)][_0x53d69e(0x1ff)]==null||!this[_0x53d69e(0x48e)])return;let {width:_0x1ed0dd,height:_0x2bb821}=this,{width:_0x279355=0x0,height:_0x5e51f1=0x0}=_0x38ea97[_0x53d69e(0x4f2)],{left:_0x413fc1=0x0,top:_0x3d9c6c=0x0,right:_0x3ea074=0x0,bottom:_0x26b346=0x0}=this[_0x53d69e(0x4cb)][_0x53d69e(0x1ff)],_0x593bf2=_0x413fc1,_0x1501b4=_0x3d9c6c,_0x3c280f=_0x3ea074,_0x42dbff=_0x26b346,_0x2edce8=!0x1;if(_0x279355!==0x0&&_0x279355!==_0x1ed0dd){let _0x5b6b5d=_0x413fc1/_0x279355,_0x3f8c38=_0x3ea074/_0x279355;_0x593bf2=_0x1ed0dd*_0x5b6b5d,_0x3c280f=_0x1ed0dd*_0x3f8c38,_0x2edce8=!0x0;}if(_0x5e51f1!==0x0&&_0x5e51f1!==_0x2bb821){let _0x2f3bb2=_0x3d9c6c/_0x5e51f1,_0x36df97=_0x26b346/_0x5e51f1;_0x1501b4=_0x2bb821*_0x2f3bb2,_0x42dbff=_0x2bb821*_0x36df97,_0x2edce8=!0x0;}_0x2edce8&&this['setSrcRect']({'left':_0x593bf2,'top':_0x1501b4,'right':_0x3c280f,'bottom':_0x42dbff});}[_0x12db2b(0x4fb)](_0x3457cf){const _0x5c2ec4=_0x12db2b;this[_0x5c2ec4(0x4cb)][_0x5c2ec4(0x1ff)]=_0x3457cf,this['makeDirty'](!0x0);}[_0x12db2b(0x509)](_0xa7077a){const _0x14ad59=_0x12db2b;this[_0x14ad59(0x4cb)][_0x14ad59(0x3b6)]=_0xa7077a,this[_0x14ad59(0x335)](!0x0);}set[_0x12db2b(0x1f9)](_0x483994){const _0x34dfce=_0x12db2b;this[_0x34dfce(0x497)]=_0x483994;}get['transform'](){const _0x3ef0bf=_0x12db2b;this[_0x3ef0bf(0x497)]||this[_0x3ef0bf(0x2b5)]();let _0x12e9bb=this[_0x3ef0bf(0x497)]['clone']();return this[_0x3ef0bf(0x49f)](_0x12e9bb);}get[_0x12db2b(0x471)](){const _0x320eb0=_0x12db2b;return this[_0x320eb0(0x4cb)][_0x320eb0(0x471)];}get[_0x12db2b(0x502)](){const _0x48e762=_0x12db2b;return this[_0x48e762(0x4cb)][_0x48e762(0x502)];}get[_0x12db2b(0x19d)](){const _0x540774=_0x12db2b;return c[_0x540774(0x2b0)]['SHAPE'];}['_draw'](_0x4f78e7,_0xb58946,_0x4f0291,_0x1b3057){const _0x25dfd9=_0x12db2b;let _0x517b9e=this[_0x25dfd9(0x4cb)][_0x25dfd9(0x471)];if(!_0x517b9e||!_0xb58946)return;let _0x308ece=_0x4f0291??this[_0x25dfd9(0x1c0)],_0x1d40cb=_0x1b3057??this[_0x25dfd9(0x4b9)],_0x2ef3cc={'shapeType':_0x517b9e['getShapeType'](),'width':_0x308ece,'height':_0x1d40cb},_0x2a1087={'renderMode':n[_0x25dfd9(0x4c1)][_0x25dfd9(0x1c8)],'oKey':this[_0x25dfd9(0x2de)],'image':this[_0x25dfd9(0x4cb)]['image'],'angle':this['angle']};_0x517b9e[_0x25dfd9(0x33b)](_0x2ef3cc),_0x4f78e7[_0x25dfd9(0x2d8)]();let _0xcecca8={'top':0x0,'left':0x0,'width':_0x308ece,'height':_0x1d40cb},_0x5bee2b=_0x517b9e[_0x25dfd9(0x3a6)](_0xcecca8);_0x5bee2b?this[_0x25dfd9(0x30f)](_0x4f78e7,_0x5bee2b,_0xa82d28=>{const _0x5d15e2=_0x25dfd9;_0x517b9e[_0x5d15e2(0x301)](_0xa82d28,_0xcecca8,_0x2a1087);}):(this[_0x25dfd9(0x489)](),_0x517b9e[_0x25dfd9(0x301)](_0x4f78e7,_0xcecca8,_0x2a1087)),_0x4f78e7['restore']();let _0x364630=_0x517b9e[_0x25dfd9(0x2a4)](),_0x5cf1ec=_0x517b9e['getShapeTextRect'](_0xcecca8),_0x19653c=_0x517b9e[_0x25dfd9(0x4a0)]();if(_0x364630&&_0x5cf1ec&&!_0x19653c){_0x4f78e7[_0x25dfd9(0x2d8)](),this[_0x25dfd9(0x45b)]()[_0x25dfd9(0x23f)]&&_0x4f78e7[_0x25dfd9(0x49e)](-0x1,0x1);let _0x302915=_0x308ece/0x2,_0x5b7d1c=_0x1d40cb/0x2;_0x4f78e7[_0x25dfd9(0x2a7)](-_0x302915,-_0x5b7d1c),_0x4f78e7[_0x25dfd9(0x2c5)](),this[_0x25dfd9(0x35e)](_0x4f78e7,_0x364630,_0x5cf1ec),_0x4f78e7[_0x25dfd9(0x36d)]();}}[_0x12db2b(0x2aa)](_0x4b9a39){}[_0x12db2b(0x35e)](_0x1b1ec5,_0x132dd1,_0x2ce93b){const _0x218fec=_0x12db2b;var _0x23bf8b;this[_0x218fec(0x4cb)]['isEditing']||(!((_0x23bf8b=_0x132dd1['dataModel'])!=null&&_0x23bf8b[_0x218fec(0x3ea)])&&_0x218fec(0x50e)in _0x132dd1&&_0x132dd1[_0x218fec(0x50e)]===!0x1?this['_drawSimpleText'](_0x1b1ec5,_0x132dd1,_0x2ce93b):this[_0x218fec(0x25d)](_0x1b1ec5,_0x132dd1,_0x2ce93b));}[_0x12db2b(0x19c)](_0x447426,_0x10e508,_0x363fbf){const _0x50cb69=_0x12db2b;this[_0x50cb69(0x25d)](_0x447426,{..._0x10e508,'text':_0x10e508[_0x50cb69(0x37b)]??'','dataModel':{'doc':(0x0,e[_0x50cb69(0x473)])(_0x10e508,'sheets-shape-text-'+this[_0x50cb69(0x2de)])}},_0x363fbf);}['_drawRichText'](_0x5796be,_0x550a75,_0xb199d7){const _0x5492d1=_0x12db2b;(0x0,e[_0x5492d1(0x270)])(_0x5796be,this[_0x5492d1(0x27e)],(_0x2d645d,_0x207722)=>{this['_drawRichTextLayer'](_0x2d645d,_0x550a75,_0xb199d7,_0x207722);});}[_0x12db2b(0x3e8)](_0xa83949,_0x247569,_0x334c37,_0x17fe52){const _0x254afa=_0x12db2b;let _0x396867=this[_0x254afa(0x4cb)][_0x254afa(0x2a1)];if(!_0x247569['dataModel']||!_0x396867)return;let _0x981d8=(0x0,e['normalizeShapeTextModel'])(_0x247569[_0x254afa(0x3d7)]);if(!_0x981d8)return;let _0x49f861=_0x981d8[_0x254afa(0x3ea)];if(!_0x49f861)return;let _0x2e0d92=(0x0,r[_0x254afa(0x43d)])(_0x49f861,_0x17fe52),_0x3e7aa7=_0x981d8['va']??a[_0x254afa(0x1ce)][_0x254afa(0x373)],_0x423f12=_0x981d8['ha']??a[_0x254afa(0x361)]['LEFT'],_0x1e0b1c=ne(this[_0x254afa(0x4cb)][_0x254afa(0x471)][_0x254afa(0x3b1)](),_0x247569,_0x2e0d92),_0x18fbac=_0x247569['isHorizontal'],_0x34a903=(0x0,e[_0x254afa(0x264)])(_0x2e0d92,{'isHorizontal':_0x18fbac!==!0x1,'textRect':_0x334c37,'verticalAlign':_0x3e7aa7,'horizontalAlign':_0x423f12,'wrapStrategy':_0x1e0b1c[_0x254afa(0x475)]}),_0x54646d=new a[(_0x254afa(0x311))](_0x34a903),_0x32bfeb=new c[(_0x254afa(0x46f))](_0x54646d),_0x10103c=c[_0x254afa(0x209)]['create'](_0x32bfeb,_0x396867);_0x10103c[_0x254afa(0x2f7)]();let _0x15cce9=_0x10103c[_0x254afa(0x41d)]()[_0x254afa(0x277)],_0x81a738=(0x0,e[_0x254afa(0x476)])({'contentHeight':_0x15cce9,'verticalAlign':_0x3e7aa7,'viewportHeight':_0x334c37[_0x254afa(0x4b9)]});_0x54646d[_0x254afa(0x3e3)]({'pageSize':{'width':_0x18fbac===!0x1?_0x334c37[_0x254afa(0x4b9)]:_0x334c37[_0x254afa(0x1c0)],'height':(0x0,e[_0x254afa(0x2df)])(_0x2e0d92,_0x81a738['contentHeight'])}}),_0x54646d[_0x254afa(0x4b2)]({'t':_0x81a738[_0x254afa(0x2d1)]}),_0x10103c[_0x254afa(0x2f7)]();let _0x3858f3=new c['Documents'](_0x254afa(0x393)+this['oKey'],_0x10103c,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x254afa(0x335)](!0x0)});_0x3858f3[_0x254afa(0x2cc)](_0x334c37[_0x254afa(0x1c0)],_0x81a738[_0x254afa(0x354)]),_0xa83949[_0x254afa(0x2d8)](),_0xa83949[_0x254afa(0x3ef)](_0x334c37['left'],_0x334c37[_0x254afa(0x213)]),_0x1e0b1c[_0x254afa(0x2a9)]&&(_0xa83949[_0x254afa(0x2c5)](),_0xa83949[_0x254afa(0x1c9)](0x0,_0x81a738[_0x254afa(0x304)],_0x334c37[_0x254afa(0x1c0)],_0x81a738['clipHeight']),_0xa83949['clip']()),_0x81a738[_0x254afa(0x481)]&&_0xa83949['translateWithPrecision'](0x0,_0x81a738[_0x254afa(0x481)]),_0x3858f3[_0x254afa(0x1ed)](_0xa83949),_0xa83949[_0x254afa(0x36d)](),_0x3858f3['dispose'](),_0x10103c['dispose'](),_0x32bfeb[_0x254afa(0x1e8)](),_0x54646d[_0x254afa(0x1e8)]();}['render'](_0x62a20f,_0x41220e,_0x3dc9e3=!0x1){const _0x302d1f=_0x12db2b;if(!this[_0x302d1f(0x25b)])return this[_0x302d1f(0x335)](!0x1),this;let {width:_0x496344,height:_0x1523cf,left:_0x3cac5c,top:_0x54592d}=this,_0x11d6ca=this[_0x302d1f(0x1a2)]();if(_0x496344=_0x11d6ca[_0x302d1f(0x1c0)],_0x1523cf=_0x11d6ca[_0x302d1f(0x4b9)],_0x3cac5c=_0x11d6ca[_0x302d1f(0x328)],_0x54592d=_0x11d6ca[_0x302d1f(0x213)],this[_0x302d1f(0x2bd)](_0x41220e)){let {top:_0x59c587,left:_0x46e456,bottom:_0xc139b6,right:_0x43db74}=_0x41220e[_0x302d1f(0x3c6)];if(_0x496344+this[_0x302d1f(0x4e1)]+_0x3cac5c<_0x46e456||_0x43db74<_0x3cac5c||_0x1523cf+this[_0x302d1f(0x4e1)]+_0x54592d<_0x59c587||_0xc139b6<_0x54592d)return this;}let _0x1d907b=_0x3cac5c+_0x496344/0x2,_0x328759=_0x54592d+_0x1523cf/0x2,_0x2d5050=this['transform']['getMatrix']();if(this[_0x302d1f(0x4cb)][_0x302d1f(0x228)]){let _0xec20e4=this[_0x302d1f(0x45b)](),_0x4f5c24=new c[(_0x302d1f(0x3cd))]();_0x4f5c24[_0x302d1f(0x251)]({..._0xec20e4}),_0x2d5050=_0x4f5c24[_0x302d1f(0x258)]();}return _0x62a20f[_0x302d1f(0x2d8)](),this['_props'][_0x302d1f(0x471)][_0x302d1f(0x51e)]===!0x0||_0x62a20f['transform'](_0x2d5050[0x0],_0x2d5050[0x1],_0x2d5050[0x2],_0x2d5050[0x3],_0x1d907b,_0x328759),this['_draw'](_0x62a20f,_0x41220e,_0x496344,_0x1523cf),_0x62a20f[_0x302d1f(0x36d)](),this[_0x302d1f(0x335)](!0x1),this;}[_0x12db2b(0x359)](_0x36cfd7){const _0xc871aa=_0x12db2b;let {left:_0x26d94b,top:_0x3acb20,width:_0x54be42,height:_0x3e2807}=this['getRealBound'](),_0x5dff79=this['transform'][_0xc871aa(0x258)](),_0x1ef4e7=_0x26d94b+_0x54be42/0x2,_0x5acb02=_0x3acb20+_0x3e2807/0x2,_0x52a71a=new c[(_0xc871aa(0x3cd))]([_0x5dff79[0x0],_0x5dff79[0x1],_0x5dff79[0x2],_0x5dff79[0x3],_0x1ef4e7,_0x5acb02]),_0x35b6c9=this[_0xc871aa(0x1d4)]();return(this[_0xc871aa(0x4eb)]&&(_0x35b6c9==null?void 0x0:_0x35b6c9['classType'])===c[_0xc871aa(0x2b0)][_0xc871aa(0x2a6)]?_0x35b6c9['ancestorTransform'][_0xc871aa(0x227)](_0x52a71a):_0x52a71a)[_0xc871aa(0x2b7)]()[_0xc871aa(0x1ec)](_0x36cfd7);}[_0x12db2b(0x242)](_0x5c1772){const _0x486d51=_0x12db2b;let {left:_0x1595aa,top:_0x25ec02,width:_0x16565e,height:_0x54fae1}=this['getRealBound'](),_0x22b062=_0x1595aa+_0x16565e/0x2,_0x28de4e=_0x25ec02+_0x54fae1/0x2,_0x3c01c9=this['transform'][_0x486d51(0x258)](),_0x497c80=new c[(_0x486d51(0x3cd))]([_0x3c01c9[0x0],_0x3c01c9[0x1],_0x3c01c9[0x2],_0x3c01c9[0x3],_0x22b062,_0x28de4e]),_0x111a2a=this[_0x486d51(0x1d4)](),_0x53bc89=(this[_0x486d51(0x4eb)]&&(_0x111a2a==null?void 0x0:_0x111a2a['classType'])===c[_0x486d51(0x2b0)]['GROUP']?_0x111a2a[_0x486d51(0x363)][_0x486d51(0x227)](_0x497c80):_0x497c80)['invert']()[_0x486d51(0x1ec)](_0x5c1772),_0x2faf6b=_0x16565e/0x2,_0x10fed7=_0x54fae1/0x2,_0x497810=this[_0x486d51(0x4cb)]['shapeModel'];return _0x497810&&_0x497810[_0x486d51(0x4a0)]()?_0x497810['isHitLine'](_0x53bc89['x'],_0x53bc89['y'],_0x16565e,_0x54fae1):_0x53bc89['x']>=-_0x2faf6b-this[_0x486d51(0x4e1)]/0x2&&_0x53bc89['x']<=_0x2faf6b+this[_0x486d51(0x4e1)]/0x2&&_0x53bc89['y']>=-_0x10fed7-this['strokeWidth']/0x2&&_0x53bc89['y']<=_0x10fed7+this[_0x486d51(0x4e1)]/0x2;}[_0x12db2b(0x1e8)](){const _0x16ca03=_0x12db2b;this[_0x16ca03(0x27e)][_0x16ca03(0x1e8)](),this[_0x16ca03(0x4cb)][_0x16ca03(0x471)]=null,super['dispose']();}},O=class extends c[_0x12db2b(0x501)]{constructor(_0x2fdd51,_0x1fdb99){const _0x373354=_0x12db2b;super(_0x2fdd51,_0x1fdb99),E(this,_0x373354(0x234),null),E(this,_0x373354(0x2bc),null),E(this,_0x373354(0x4ae),null),E(this,'_subUnitId',null),_0x1fdb99&&this[_0x373354(0x515)](_0x1fdb99);}[_0x12db2b(0x512)](){const _0xf86344=_0x12db2b;return{'unitId':this[_0xf86344(0x4ae)],'subUnitId':this[_0xf86344(0x460)],'drawingId':this[_0xf86344(0x234)]};}[_0x12db2b(0x515)](_0x4de8fb){const _0x276f2d=_0x12db2b;_0x4de8fb[_0x276f2d(0x502)]!==void 0x0&&(this['_shapeId']=_0x4de8fb['shapeId']),_0x4de8fb[_0x276f2d(0x367)]!==void 0x0&&(this[_0x276f2d(0x2bc)]=_0x4de8fb[_0x276f2d(0x367)]),_0x4de8fb['unitId']!==void 0x0&&(this[_0x276f2d(0x4ae)]=_0x4de8fb[_0x276f2d(0x315)]),_0x4de8fb['subUnitId']!==void 0x0&&(this[_0x276f2d(0x460)]=_0x4de8fb['subUnitId']),this['transformByState']({'width':_0x4de8fb[_0x276f2d(0x1c0)],'height':_0x4de8fb[_0x276f2d(0x4b9)]});}[_0x12db2b(0x2ec)](_0x1ddb8a){const _0x1d0778=_0x12db2b;c['Circle'][_0x1d0778(0x341)](_0x1ddb8a,{'radius':n[_0x1d0778(0x4c8)][_0x1d0778(0x3a3)],'fill':n[_0x1d0778(0x4c8)][_0x1d0778(0x3af)],'stroke':n[_0x1d0778(0x4c8)][_0x1d0778(0x3bb)],'strokeWidth':0x1,'evented':!0x0});}};function k(_0x157c95,_0x30fe58){return function(_0x4b2a09,_0x3c321f){_0x30fe58(_0x4b2a09,_0x3c321f,_0x157c95);};}function A(_0x2f9946,_0x2edb37,_0x3faf80,_0x15c52e){const _0x5d42e4=_0x12db2b;var _0x50896a=arguments[_0x5d42e4(0x2c6)],_0x4b2db8=_0x50896a<0x3?_0x2edb37:_0x15c52e===null?_0x15c52e=Object['getOwnPropertyDescriptor'](_0x2edb37,_0x3faf80):_0x15c52e,_0x1c742a;if(typeof Reflect==_0x5d42e4(0x34b)&&typeof Reflect[_0x5d42e4(0x24c)]=='function')_0x4b2db8=Reflect[_0x5d42e4(0x24c)](_0x2f9946,_0x2edb37,_0x3faf80,_0x15c52e);else{for(var _0x382516=_0x2f9946['length']-0x1;_0x382516>=0x0;_0x382516--)(_0x1c742a=_0x2f9946[_0x382516])&&(_0x4b2db8=(_0x50896a<0x3?_0x1c742a(_0x4b2db8):_0x50896a>0x3?_0x1c742a(_0x2edb37,_0x3faf80,_0x4b2db8):_0x1c742a(_0x2edb37,_0x3faf80))||_0x4b2db8);}return _0x50896a>0x3&&_0x4b2db8&&Object[_0x5d42e4(0x4d1)](_0x2edb37,_0x3faf80,_0x4b2db8),_0x4b2db8;}let j=class extends a[_0x12db2b(0x30e)]{constructor(_0x1b2224,_0x391c77,_0x1b8e24,_0x1cb518,_0x100289,_0x7de62d){const _0xe32df=_0x12db2b;super(),this[_0xe32df(0x324)]=_0x1b2224,this[_0xe32df(0x290)]=_0x391c77,this['_localeService']=_0x1b8e24,this[_0xe32df(0x498)]=_0x1cb518,this[_0xe32df(0x32e)]=_0x100289,this[_0xe32df(0x43e)]=_0x7de62d,E(this,'_formulaShapes',new Map()),this[_0xe32df(0x22a)](this[_0xe32df(0x43e)][_0xe32df(0x1d7)]['subscribe'](_0x1c05cd=>{const _0x2a0569=_0xe32df;var _0x2cdc66;(_0x2cdc66=this['_formulaShapes'][_0x2a0569(0x3cb)](this[_0x2a0569(0x348)](_0x1c05cd['unitId'],_0x1c05cd[_0x2a0569(0x19f)],_0x1c05cd[_0x2a0569(0x502)])))==null||_0x2cdc66[_0x2a0569(0x444)](_0xc0303f=>_0xc0303f[_0x2a0569(0x37f)](_0x1c05cd['presentation'],_0x1c05cd[_0x2a0569(0x4ee)]));})),this['disposeWithMe'](this['_drawingManagerService'][_0xe32df(0x3a1)]['subscribe'](_0x147143=>{_0x147143['forEach'](_0x5675ae=>{const _0x1e47a2=_0xde32;this[_0x1e47a2(0x43e)][_0x1e47a2(0x2b2)]({'unitId':_0x5675ae['unitId'],'subUnitId':_0x5675ae[_0x1e47a2(0x19f)],'shapeId':_0x5675ae[_0x1e47a2(0x474)]}),this[_0x1e47a2(0x2c0)][_0x1e47a2(0x2b8)](this[_0x1e47a2(0x348)](_0x5675ae['unitId'],_0x5675ae[_0x1e47a2(0x19f)],_0x5675ae[_0x1e47a2(0x474)]));});}));}[_0x12db2b(0x3f8)](_0x112f37,_0x5d2ef7,_0x23e61b){const _0x184896=_0x12db2b;let {transform:_0x43e259,drawingType:_0x3dabd6,srcRect:_0x35f56e,prstGeom:_0x1b8316,groupId:_0x3a7876,unitId:_0x4691ae,subUnitId:_0x28f239,drawingId:_0x3f5508,isMultiTransform:_0x55d88b,transforms:_0x2cf2f4,hidden:_0x55f678,selectable:_0x4276d6}=_0x112f37;if(_0x3dabd6!==a[_0x184896(0x3bd)][_0x184896(0x3c0)]||!this[_0x184896(0x324)][_0x184896(0x514)]()||_0x43e259==null)return;let _0x441565=this[_0x184896(0x324)][_0x184896(0x20f)](),_0x25a070=_0x55d88b&&_0x2cf2f4?_0x2cf2f4:[_0x43e259],_0x1e905d=[];for(let _0x275789 of _0x25a070){let {left:_0xc22781,top:_0xdf2cef,width:_0x6cc537,height:_0x95704f,angle:_0x4388f6,flipX:_0x2b628f,flipY:_0x4dc4b3,skewX:_0x278169,skewY:_0x309238}=_0x275789,_0x5413e1=_0x25a070[_0x184896(0x523)](_0x275789),_0x183821=(0x0,s[_0x184896(0x3d3)])({'unitId':_0x4691ae,'subUnitId':_0x28f239,'drawingId':_0x3f5508},_0x55d88b?_0x5413e1:void 0x0),_0x598608=_0x5d2ef7[_0x184896(0x43c)](_0x183821);if(_0x598608!=null){let _0x1bacc4={'unitId':_0x4691ae,'subUnitId':_0x28f239,'shapeId':_0x3f5508};_0x598608 instanceof D&&this[_0x184896(0x1e0)](_0x598608,_0x1bacc4),_0x598608[_0x184896(0x2c8)]({'left':_0xc22781,'top':_0xdf2cef,'width':_0x6cc537,'height':_0x95704f,'angle':_0x4388f6,'flipX':_0x2b628f,'flipY':_0x4dc4b3,'skewX':_0x278169,'skewY':_0x309238});continue;}let _0x2de874=this['_drawingManagerService'][_0x184896(0x47e)](_0x4691ae,_0x28f239),_0x22680c=_0x2de874[_0x184896(0x523)](_0x3f5508);if(_0x5d2ef7[_0x184896(0x43c)](_0x183821)||!this[_0x184896(0x324)][_0x184896(0x514)]())continue;let _0x5d9b86=this[_0x184896(0x290)][_0x184896(0x435)](_0x4691ae,_0x28f239,_0x3f5508);if(!_0x5d9b86)continue;let _0x1eff40=(0x0,n[_0x184896(0x4c9)])(_0x5d9b86[_0x184896(0x517)]())?{...e['SHAPE_EDITOR_TRANSFORMER_CONFIG'],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:e[_0x184896(0x46e)],_0x575827=_0x5d9b86[_0x184896(0x3b1)]()['formulaBinding'],_0x3a94c6={'unitId':_0x4691ae,'subUnitId':_0x28f239,'shapeId':_0x3f5508};_0x575827&&this['_shapeFormulaService'][_0x184896(0x24b)](_0x3a94c6,_0x575827);let _0x1052c7=new D(_0x183821,{..._0x275789,'zIndex':_0x22680c===-0x1?_0x2de874['length']-0x1:_0x22680c,'shapeModel':_0x5d9b86,'localeService':this[_0x184896(0x51b)],'shapeId':_0x3f5508,'unitId':_0x4691ae,'subUnitId':_0x28f239,'visible':_0x55f678!==!0x0,'evented':_0x4276d6!==!0x1,'formulaPresentation':_0x575827?this['_shapeFormulaService']['getPresentation'](_0x3a94c6):void 0x0,'animateFormulaPresentation':(_0x575827==null?void 0x0:_0x575827[_0x184896(0x4ee)])!==!0x1,'transformerConfig':_0x1eff40});if(_0x575827){let _0x143085=this[_0x184896(0x348)](_0x4691ae,_0x28f239,_0x3f5508),_0x44a81f=this[_0x184896(0x2c0)]['get'](_0x143085)??new Set();_0x44a81f[_0x184896(0x2e5)](_0x1052c7),this['_formulaShapes'][_0x184896(0x2e2)](_0x143085,_0x44a81f);}_0x5d2ef7[_0x184896(0x374)](_0x1052c7,c[_0x184896(0x241)]),_0x441565&&_0x5d2ef7[_0x184896(0x420)](_0x1052c7),_0x3a7876&&(0x0,d[_0x184896(0x222)])({'drawingId':_0x3a7876,'unitId':_0x4691ae,'subUnitId':_0x28f239},_0x1052c7,_0x5d2ef7,this[_0x184896(0x324)]),_0x1b8316!=null&&_0x1052c7[_0x184896(0x357)](_0x1b8316),_0x35f56e!=null&&_0x1052c7[_0x184896(0x4fb)](_0x35f56e);let _0xe1aeb2=this['_loadShapePictureFill'](_0x1052c7,_0x5d9b86[_0x184896(0x3b1)]());if(_0xe1aeb2){var _0x48c2b1;_0x23e61b==null||(_0x48c2b1=_0x23e61b['resourceCollector'])==null||_0x48c2b1['add'](_0xe1aeb2);}_0x1e905d[_0x184896(0x32c)](_0x1052c7);}return _0x1e905d;}[_0x12db2b(0x348)](_0x1a76c1,_0x2694c6,_0x1674c7){return _0x1a76c1+'\x00'+_0x2694c6+'\x00'+_0x1674c7;}[_0x12db2b(0x1e0)](_0x1e48c6,_0x50f813){const _0x61fa4d=_0x12db2b;let _0x2c3994=this['_sheetsShapeService']['getShapeModel'](_0x50f813[_0x61fa4d(0x315)],_0x50f813[_0x61fa4d(0x19f)],_0x50f813['shapeId']),_0x21d223=_0x2c3994==null?void 0x0:_0x2c3994['getShapeData']()[_0x61fa4d(0x4ac)],_0x29805a=this['_formulaKey'](_0x50f813[_0x61fa4d(0x315)],_0x50f813['subUnitId'],_0x50f813[_0x61fa4d(0x502)]);if(_0x21d223){this[_0x61fa4d(0x43e)][_0x61fa4d(0x24b)](_0x50f813,_0x21d223);let _0x46096f=this[_0x61fa4d(0x2c0)]['get'](_0x29805a)??new Set();_0x46096f[_0x61fa4d(0x2e5)](_0x1e48c6),this['_formulaShapes'][_0x61fa4d(0x2e2)](_0x29805a,_0x46096f);}else{var _0x5f0ed1;this['_shapeFormulaService']['unregister'](_0x50f813),(_0x5f0ed1=this[_0x61fa4d(0x2c0)]['get'](_0x29805a))==null||_0x5f0ed1[_0x61fa4d(0x2b8)](_0x1e48c6);}_0x1e48c6[_0x61fa4d(0x37f)](_0x21d223?this[_0x61fa4d(0x43e)][_0x61fa4d(0x3c5)](_0x50f813):void 0x0,(_0x21d223==null?void 0x0:_0x21d223[_0x61fa4d(0x4ee)])!==!0x1);}[_0x12db2b(0x490)](_0x283e91){const _0x75e172=_0x12db2b;let _0x319ab7=_0x283e91[_0x75e172(0x471)][_0x75e172(0x3b1)](),_0x2915e7=_0x319ab7[_0x75e172(0x4f9)];if(!_0x2915e7||_0x2915e7[_0x75e172(0x42c)]!==n[_0x75e172(0x39b)][_0x75e172(0x362)]||!_0x2915e7[_0x75e172(0x406)]){_0x283e91[_0x75e172(0x509)](void 0x0);return;}this['_loadShapePictureFill'](_0x283e91,_0x319ab7);}[_0x12db2b(0x272)](_0x1482f5,_0x311261){const _0x1ee1da=_0x12db2b;let _0x5d2f89=_0x311261[_0x1ee1da(0x4f9)];if(!_0x5d2f89||_0x5d2f89[_0x1ee1da(0x42c)]!==n['ShapeFillEnum'][_0x1ee1da(0x362)]||!_0x5d2f89[_0x1ee1da(0x406)])return;let _0x145335=_0x5d2f89['fillImageSource'],_0x3918e2=_0x5d2f89[_0x1ee1da(0x2dd)]??n[_0x1ee1da(0x303)][_0x1ee1da(0x45f)],_0x3a59c2=this['_imageIoService'][_0x1ee1da(0x456)](_0x145335,_0x3918e2);if(_0x3a59c2){_0x1482f5[_0x1ee1da(0x509)](_0x3a59c2);return;}return this[_0x1ee1da(0x1c1)](_0x1482f5,_0x145335,_0x3918e2);}async[_0x12db2b(0x1c1)](_0x49084a,_0x34cd0e,_0x1773a0){const _0x4542ea=_0x12db2b;let _0x3c462b;try{if(_0x1773a0===n[_0x4542ea(0x303)][_0x4542ea(0x1e7)])_0x3c462b=await this[_0x4542ea(0x498)][_0x4542ea(0x1a5)](_0x34cd0e);else{if(_0x1773a0===n[_0x4542ea(0x303)][_0x4542ea(0x45f)])try{_0x3c462b=await this['_urlImageService'][_0x4542ea(0x1a5)](_0x34cd0e);}catch{_0x3c462b=_0x34cd0e;}else _0x3c462b=_0x34cd0e;}}catch(_0x1784bc){console[_0x4542ea(0x3c8)](_0x4542ea(0x443),_0x1784bc);return;}await new Promise(_0x5852e3=>{const _0x2d0ff4=_0x4542ea;let _0x38c5dd=new window[(_0x2d0ff4(0x284))]();_0x38c5dd['onload']=()=>{const _0x527c6b=_0x2d0ff4;this[_0x527c6b(0x498)][_0x527c6b(0x478)](_0x34cd0e,_0x1773a0,_0x38c5dd),_0x49084a[_0x527c6b(0x509)](_0x38c5dd),_0x5852e3();},_0x38c5dd[_0x2d0ff4(0x38b)]=()=>{const _0x32bdb7=_0x2d0ff4;console[_0x32bdb7(0x3c8)](_0x32bdb7(0x2d4),_0x34cd0e),_0x5852e3();},_0x38c5dd['src']=_0x3c462b;});}};j=A([k(0x0,s[_0x12db2b(0x421)]),k(0x1,(0x0,a[_0x12db2b(0x25a)])(i[_0x12db2b(0x2e7)])),k(0x2,(0x0,a[_0x12db2b(0x25a)])(a['LocaleService'])),k(0x3,a[_0x12db2b(0x3cc)]),k(0x4,a[_0x12db2b(0x338)]),k(0x5,(0x0,a[_0x12db2b(0x25a)])(r[_0x12db2b(0x221)]))],j);let M=class extends a['Disposable']{constructor(_0x428d41,_0x1d1553,_0x1879c1,_0x259d82,_0x5f269d,_0x2144f7){const _0x121dc8=_0x12db2b;super(),this['_drawingManagerService']=_0x428d41,this[_0x121dc8(0x290)]=_0x1d1553,this[_0x121dc8(0x401)]=_0x1879c1,this[_0x121dc8(0x340)]=_0x259d82,this[_0x121dc8(0x486)]=_0x5f269d,this[_0x121dc8(0x310)]=_0x2144f7,E(this,'_activeShapeId',null),E(this,_0x121dc8(0x4ae),null),E(this,_0x121dc8(0x460),null),E(this,_0x121dc8(0x30b),void 0x0),E(this,_0x121dc8(0x462),[]),E(this,'_baseShapeLeft',0x0),E(this,_0x121dc8(0x3f3),0x0),E(this,_0x121dc8(0x43a),0x0),E(this,_0x121dc8(0x464),0x0),E(this,'_isStartAdjusting',!0x1),E(this,_0x121dc8(0x1e6),void 0x0),E(this,_0x121dc8(0x1f3),void 0x0),E(this,'_adjHandlerPointerMove',void 0x0),E(this,'_adjHandlerPointerUp',void 0x0),E(this,_0x121dc8(0x4d7),!0x1),this[_0x121dc8(0x4f7)](),this[_0x121dc8(0x423)]();}[_0x12db2b(0x229)](_0x244e51,_0x505c4a,_0x619639){const _0x26fc62=_0x12db2b;let _0x2a2dce=this[_0x26fc62(0x290)][_0x26fc62(0x435)](_0x244e51,_0x505c4a,_0x619639);if(_0x2a2dce)return _0x2a2dce['getDrawingPoints']();}[_0x12db2b(0x318)](){const _0x58475e=_0x12db2b;this[_0x58475e(0x50b)]();}[_0x12db2b(0x1fe)](){const _0x4aa98f=_0x12db2b;this[_0x4aa98f(0x503)](!0x0);}['setShouldShowAdjust'](_0x51b907){this['_isShouldShowDrawingShapeAdjust']=_0x51b907;}['_getShapeAdjustInfosById'](_0x1d3fdc,_0x2a582f,_0x341f4b,_0x2df2ee){const _0x1703a3=_0x12db2b;let _0x3ac6de=this['_sheetsShapeService'][_0x1703a3(0x435)](_0x1d3fdc,_0x2a582f,_0x341f4b);if(_0x3ac6de)return _0x3ac6de['getAdjustInfoByName'](_0x2df2ee);}[_0x12db2b(0x47a)](_0x244b7e=!0x1){const _0xed2f5c=_0x12db2b;if(this['_unitId']===null||this['_subUnitId']===null||this['_activeShapeId']===null)return;let _0x1f2c11=this[_0xed2f5c(0x401)][_0xed2f5c(0x30d)](this[_0xed2f5c(0x4ae)]);if(!_0x1f2c11||!_0x1f2c11[_0xed2f5c(0x203)](l[_0xed2f5c(0x265)])[_0xed2f5c(0x4fa)]())return;let {scene:_0x1f7b92}=_0x1f2c11,_0x283b2d={'unitId':this[_0xed2f5c(0x4ae)],'subUnitId':this[_0xed2f5c(0x460)],'drawingId':this[_0xed2f5c(0x271)]},_0x2efe88=this[_0xed2f5c(0x324)][_0xed2f5c(0x492)](_0x283b2d),{transform:_0x1f949b}=_0x2efe88;if(!_0x1f949b||_0x2efe88[_0xed2f5c(0x2f3)]!==a[_0xed2f5c(0x3bd)][_0xed2f5c(0x3c0)])return;let {left:_0xf48eb3,top:_0x528f5b,width:_0x4e6ed4,height:_0x350427,flipX:_0x2c309c,flipY:_0x3b0c70,angle:_0x1823d5=0x0}=_0x1f949b;if(_0xf48eb3===void 0x0||_0x528f5b===void 0x0)return;if(_0x244b7e){let _0x23f068=this[_0xed2f5c(0x290)][_0xed2f5c(0x435)](this[_0xed2f5c(0x4ae)],this[_0xed2f5c(0x460)],this['_activeShapeId']);_0x23f068==null||_0x23f068[_0xed2f5c(0x33b)]({'width':_0x4e6ed4??0x0,'height':_0x350427??0x0}),this[_0xed2f5c(0x30b)]=_0x23f068==null?void 0x0:_0x23f068[_0xed2f5c(0x2aa)]();}let _0x304beb=this['_activeShapeAdjustPointList'];for(let _0x4fc3a4=0x0;_0x4fc3a4<_0x304beb['length'];_0x4fc3a4++){let _0x28df3e=_0x304beb[_0x4fc3a4],_0x40b09e=_0x28df3e['x'],_0x58b0c=_0x28df3e['y'];if(_0x2c309c&&(_0x40b09e=(_0x4e6ed4||0x0)-_0x40b09e),_0x3b0c70&&(_0x58b0c=(_0x350427||0x0)-_0x58b0c),_0x1823d5!==0x0){let _0x344606=(_0x4e6ed4||0x0)/0x2,_0xc1ffbd=(_0x350427||0x0)/0x2,_0x3b17c1=_0x1823d5*Math['PI']/0xb4,_0xca7f75=Math[_0xed2f5c(0x282)](_0x3b17c1),_0x37c5c3=Math[_0xed2f5c(0x1ab)](_0x3b17c1),_0x56d228=_0x40b09e-_0x344606,_0x1967c1=_0x58b0c-_0xc1ffbd;_0x40b09e=_0x344606+(_0x56d228*_0xca7f75-_0x1967c1*_0x37c5c3),_0x58b0c=_0xc1ffbd+(_0x56d228*_0x37c5c3+_0x1967c1*_0xca7f75);}let _0x4b4e8e={'x':_0x40b09e,'y':_0x58b0c,'adjName':_0x28df3e[_0xed2f5c(0x367)]};this[_0xed2f5c(0x259)](_0x1f7b92,_0x4b4e8e,_0x4b4e8e[_0xed2f5c(0x367)],_0xf48eb3,_0x528f5b,this[_0xed2f5c(0x4ae)],this[_0xed2f5c(0x460)]);}}[_0x12db2b(0x503)](_0x2e115d=!0x1){const _0x5a4cd0=_0x12db2b;_0x2e115d&&(this[_0x5a4cd0(0x50b)](),this[_0x5a4cd0(0x47a)](_0x2e115d));}[_0x12db2b(0x259)](_0x624acc,_0x1cf73b,_0x5ab46b,_0x2e835e,_0x2b5701,_0x51dcb0,_0x17fc38){const _0xb6cc7c=_0x12db2b;if(!this[_0xb6cc7c(0x271)])return;let _0x16caa6=_0x624acc['getObjectIncludeInGroup'](_0xb6cc7c(0x32d)+this[_0xb6cc7c(0x271)]+'-'+_0x5ab46b);if(_0x16caa6){_0x16caa6['transformByState']({'left':_0x1cf73b['x']+_0x2e835e-n[_0xb6cc7c(0x4c8)][_0xb6cc7c(0x3a3)],'top':_0x1cf73b['y']+_0x2b5701-n[_0xb6cc7c(0x4c8)][_0xb6cc7c(0x3a3)]});return;}let _0x329560={'left':_0x1cf73b['x']+_0x2e835e-n[_0xb6cc7c(0x4c8)][_0xb6cc7c(0x3a3)],'top':_0x1cf73b['y']+_0x2b5701-n[_0xb6cc7c(0x4c8)][_0xb6cc7c(0x3a3)],'adjName':_0x5ab46b,'shapeId':this[_0xb6cc7c(0x271)],'unitId':_0x51dcb0,'subUnitId':_0x17fc38,'width':n[_0xb6cc7c(0x4c8)][_0xb6cc7c(0x3a3)]+0x8,'height':n[_0xb6cc7c(0x4c8)][_0xb6cc7c(0x3a3)]+0x8,'zIndex':c[_0xb6cc7c(0x241)]+0x1,'evented':!0x0},_0x29fc72=new O(_0xb6cc7c(0x32d)+this['_activeShapeId']+'-'+_0x5ab46b,_0x329560);this['_shapes'][_0xb6cc7c(0x32c)](_0x29fc72),this['_attachAdjustEvent'](_0x29fc72,_0x624acc,_0x5ab46b),_0x624acc[_0xb6cc7c(0x374)](_0x29fc72,c[_0xb6cc7c(0x241)]+0x1);}[_0x12db2b(0x50b)](){const _0x38a43f=_0x12db2b;this['_shapes']['length']!==0x0&&(this[_0x38a43f(0x462)]['forEach'](_0x3b8517=>{_0x3b8517['dispose']();}),this['_shapes']=[]);}[_0x12db2b(0x400)](){const _0x218330=_0x12db2b;this[_0x218330(0x47a)]();}['_getScrollInfo'](_0x4794c4,_0x326193){const _0x1c0478=_0x12db2b;var _0x33b2d7;let _0x4e0b8e={'x':0x0,'y':0x0};if(!_0x4794c4||!_0x326193)return _0x4e0b8e;let _0x144905=this[_0x1c0478(0x401)][_0x1c0478(0x30d)](_0x4794c4);if(!_0x144905||!_0x144905['with'](l[_0x1c0478(0x265)])[_0x1c0478(0x487)](_0x326193))return _0x4e0b8e;let _0x39a4e4=_0x144905['with'](l[_0x1c0478(0x223)]),_0x29b769=_0x39a4e4==null?void 0x0:_0x39a4e4[_0x1c0478(0x491)]();if(!_0x29b769)return _0x4e0b8e;let _0x3b6d09=(_0x33b2d7=this['_univerInstanceService']['getUnit'](_0x4794c4))==null?void 0x0:_0x33b2d7['getSheetBySheetId'](_0x326193);if(!_0x3b6d09)return _0x4e0b8e;let _0x2432c4=(0x0,l[_0x1c0478(0x3f4)])(_0x29b769[_0x1c0478(0x482)],_0x29b769['sheetViewStartColumn'],_0x144905['scene'],_0x3b6d09);return _0x2432c4?{'x':_0x2432c4['viewportScrollX'],'y':_0x2432c4[_0x1c0478(0x404)]}:_0x4e0b8e;}[_0x12db2b(0x436)](_0x15dd90,_0x3b577b){const _0x18065e=_0x12db2b;var _0x56650a;let _0x10bc85=(_0x56650a=this[_0x18065e(0x486)][_0x18065e(0x42a)](_0x15dd90))==null?void 0x0:_0x56650a[_0x18065e(0x3a5)](_0x3b577b);return(_0x10bc85==null?void 0x0:_0x10bc85[_0x18065e(0x3c2)]())??0x1;}[_0x12db2b(0x24a)](_0x5c1159,_0x318aa3,_0x1d29d9){const _0x38d0c7=_0x12db2b;this[_0x38d0c7(0x22a)]((0x0,a[_0x38d0c7(0x21b)])(_0x5c1159[_0x38d0c7(0x1bc)][_0x38d0c7(0x496)]((_0x4e11d1,_0x3536a3)=>{const _0x5cb227=_0x38d0c7;var _0x278d24,_0x2a472d,_0x1ca669,_0x54b21b;let _0x5b4d93=_0x5c1159[_0x5cb227(0x512)]();this[_0x5cb227(0x1e6)]=this[_0x5cb227(0x4e7)](_0x5b4d93[_0x5cb227(0x315)],_0x5b4d93['subUnitId'],_0x5b4d93[_0x5cb227(0x474)],_0x1d29d9),this[_0x5cb227(0x1f3)]=this[_0x5cb227(0x290)]['getShapeModel'](_0x5b4d93[_0x5cb227(0x315)],_0x5b4d93[_0x5cb227(0x19f)],_0x5b4d93[_0x5cb227(0x474)]);let _0x510ebc=this[_0x5cb227(0x324)][_0x5cb227(0x492)]({'unitId':this[_0x5cb227(0x4ae)],'subUnitId':this[_0x5cb227(0x460)],'drawingId':this[_0x5cb227(0x271)]}),{transform:_0x3d7801}=_0x510ebc;if(_0x3d7801){let {left:_0x383e4e,top:_0x5a79e4,width:_0x17af06,height:_0x5c5c05}=_0x3d7801;this[_0x5cb227(0x4db)]=_0x383e4e||0x0,this[_0x5cb227(0x3f3)]=_0x5a79e4||0x0,this['_baseShapeWidth']=_0x17af06||0x0,this[_0x5cb227(0x464)]=_0x5c5c05||0x0;}let _0x38b44a=!!((_0x278d24=_0x510ebc[_0x5cb227(0x1f9)])!=null&&_0x278d24[_0x5cb227(0x23f)]),_0x2fceb1=!!((_0x2a472d=_0x510ebc[_0x5cb227(0x1f9)])!=null&&_0x2a472d[_0x5cb227(0x233)]),_0x3807c4=((_0x1ca669=_0x510ebc[_0x5cb227(0x1f9)])==null?void 0x0:_0x1ca669[_0x5cb227(0x505)])||0x0;this[_0x5cb227(0x44d)]=!0x0,_0x318aa3[_0x5cb227(0x430)]();let _0x29720e={...((_0x54b21b=this[_0x5cb227(0x1e6)])==null?void 0x0:_0x54b21b[_0x5cb227(0x2d5)])??{}};this[_0x5cb227(0x4ed)]=_0x318aa3[_0x5cb227(0x21c)][_0x5cb227(0x496)]((_0x352e7a,_0xa307cf)=>{const _0x1a9958=_0x5cb227;if(!this[_0x1a9958(0x44d)])return;let {offsetX:_0x2452f0,offsetY:_0x592c95}=_0x352e7a,_0x244b3c=this[_0x1a9958(0x1e6)];if(this[_0x1a9958(0x1f3)]&&_0x244b3c){_0x318aa3['disableObjectsEvent'](),_0x318aa3['setCursor'](c[_0x1a9958(0x35f)]['CROSSHAIR']);let _0xa3400f={'left':0x0,'top':0x0,'width':this[_0x1a9958(0x43a)],'height':this[_0x1a9958(0x464)]},_0x5384c1=this[_0x1a9958(0x2ac)](this[_0x1a9958(0x4ae)],this[_0x1a9958(0x460)]),_0x2df586=this['_getZoomRatio'](this[_0x1a9958(0x4ae)],this[_0x1a9958(0x460)]),_0x4532e3=_0x2452f0/_0x2df586+_0x5384c1['x']-this[_0x1a9958(0x4db)],_0x35863f=_0x592c95/_0x2df586+_0x5384c1['y']-this[_0x1a9958(0x3f3)];if(_0x3807c4!==0x0){let _0x5d58b9=this['_baseShapeWidth']/0x2,_0x3e261a=this[_0x1a9958(0x464)]/0x2,_0x4a55af=_0x3807c4*Math['PI']/0xb4,_0x43c196=Math[_0x1a9958(0x282)](_0x4a55af),_0x22a3db=Math['sin'](_0x4a55af),_0x5eb447=_0x4532e3-_0x5d58b9,_0x47b06e=_0x35863f-_0x3e261a;_0x4532e3=_0x5d58b9+(_0x5eb447*_0x43c196+_0x47b06e*_0x22a3db),_0x35863f=_0x3e261a+(-_0x5eb447*_0x22a3db+_0x47b06e*_0x43c196);}_0x38b44a&&(_0x4532e3=this[_0x1a9958(0x43a)]-_0x4532e3),_0x2fceb1&&(_0x35863f=this[_0x1a9958(0x464)]-_0x35863f);let _0x4ba984={'x':_0x4532e3,'y':_0x35863f},_0xf7cd3f=this[_0x1a9958(0x1f3)][_0x1a9958(0x1ba)](_0xa3400f,_0x4ba984,_0x244b3c,_0x38b44a,_0x2fceb1);if(Object[_0x1a9958(0x43f)](_0xf7cd3f)['length']===0x0)return;for(let [_0x127117,_0x310f31]of Object[_0x1a9958(0x4dd)](_0xf7cd3f))this[_0x1a9958(0x1f3)][_0x1a9958(0x4b1)](_0x127117,_0x310f31);this[_0x1a9958(0x1f3)][_0x1a9958(0x33b)]({'width':this[_0x1a9958(0x43a)],'height':this[_0x1a9958(0x464)]});let _0x5490e5=this[_0x1a9958(0x324)][_0x1a9958(0x492)]({'unitId':_0x5b4d93['unitId'],'subUnitId':_0x5b4d93[_0x1a9958(0x19f)],'drawingId':_0x5b4d93[_0x1a9958(0x474)]});_0x5490e5&&(this[_0x1a9958(0x340)]['renderDrawingShape'](_0x5490e5,_0x318aa3),this[_0x1a9958(0x30b)]=this[_0x1a9958(0x229)](_0x5b4d93[_0x1a9958(0x315)],_0x5b4d93[_0x1a9958(0x19f)],_0x5b4d93['drawingId']),this[_0x1a9958(0x400)]());}_0xa307cf[_0x1a9958(0x35a)]();}),this[_0x5cb227(0x26d)]=_0x318aa3[_0x5cb227(0x1f6)][_0x5cb227(0x496)]((_0x33e771,_0x262526)=>{const _0x5f5acc=_0x5cb227;this[_0x5f5acc(0x4ed)][_0x5f5acc(0x4ef)](),this['_adjHandlerPointerUp'][_0x5f5acc(0x4ef)](),_0x318aa3[_0x5f5acc(0x453)]();let _0x438162=this[_0x5f5acc(0x1e6)];if(_0x438162){let _0x38a8ae=_0x5b4d93[_0x5f5acc(0x315)],_0x307c41=_0x5b4d93[_0x5f5acc(0x19f)],_0x13bcc4=_0x5b4d93['drawingId'],_0x556d1c={};for(let _0x20209d of Object[_0x5f5acc(0x43f)](_0x438162[_0x5f5acc(0x2d5)])){var _0x57d5e3;let _0x512a83=(_0x57d5e3=this[_0x5f5acc(0x1f3)])==null?void 0x0:_0x57d5e3[_0x5f5acc(0x37c)](_0x20209d);_0x512a83!==void 0x0&&(_0x556d1c[_0x20209d]=_0x512a83);}Object[_0x5f5acc(0x43f)](_0x556d1c)[_0x5f5acc(0x2c6)]>0x0&&C(this[_0x5f5acc(0x310)],_0x38a8ae,_0x307c41,_0x13bcc4,{'oldShapeData':{'adjustValues':_0x29720e}},{'adjustValues':_0x556d1c});}this[_0x5f5acc(0x1e6)]=void 0x0,this[_0x5f5acc(0x1f3)]=void 0x0,this[_0x5f5acc(0x44d)]=!0x1,_0x262526[_0x5f5acc(0x35a)](),_0x318aa3['enableObjectsEvent']();}),_0x3536a3[_0x5cb227(0x35a)]();})));}[_0x12db2b(0x423)](){const _0x3c8352=_0x12db2b;let _0x2cc7a7=this[_0x3c8352(0x486)][_0x3c8352(0x4d4)](a[_0x3c8352(0x4c4)][_0x3c8352(0x29c)]);this[_0x3c8352(0x22a)](_0x2cc7a7[_0x3c8352(0x49a)]((0x0,u[_0x3c8352(0x26b)])(_0x120068=>_0x120068?_0x120068[_0x3c8352(0x448)]['pipe']((0x0,u[_0x3c8352(0x26b)])(_0x2721f8=>{const _0x39c632=_0x3c8352;if(!_0x2721f8)return u[_0x39c632(0x399)];let _0x14e496=_0x120068['getUnitId'](),_0x322f8b=this[_0x39c632(0x401)]['getRenderUnitById'](_0x14e496),_0x9108f7=_0x322f8b==null?void 0x0:_0x322f8b[_0x39c632(0x414)];return _0x9108f7?(0x0,u['of'])(_0x9108f7):u[_0x39c632(0x399)];})):u[_0x3c8352(0x399)]))['subscribe'](_0x53932b=>{const _0x5e8652=_0x3c8352;let _0x2b038b=_0x53932b['getTransformerByCreate']();this['disposeWithMe'](_0x53932b[_0x5e8652(0x21c)][_0x5e8652(0x496)](()=>{const _0x53fccb=_0x5e8652;this[_0x53fccb(0x4d7)];})),this[_0x5e8652(0x22a)](_0x2b038b['changeStart$'][_0x5e8652(0x417)](_0xd933c9=>{const _0x3e1dd6=_0x5e8652;let {objects:_0x4def5f}=_0xd933c9;this[_0x3e1dd6(0x47a)](),_0x4def5f!==null&&_0x4def5f[_0x3e1dd6(0x1f5)]===0x1&&_0x4def5f['values']()[_0x3e1dd6(0x247)]()[_0x3e1dd6(0x3fe)]instanceof D&&this['setShouldShowAdjust'](!0x0);})),this[_0x5e8652(0x22a)](_0x2b038b[_0x5e8652(0x38a)][_0x5e8652(0x417)](()=>{const _0x5823fe=_0x5e8652;this[_0x5823fe(0x4d7)]&&this[_0x5823fe(0x50b)]();})),this[_0x5e8652(0x22a)](_0x53932b[_0x5e8652(0x1f6)]['subscribeEvent'](()=>{const _0x4da5fa=_0x5e8652;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x4da5fa(0x358)](!0x1),this[_0x4da5fa(0x47a)]());})),this[_0x5e8652(0x22a)](_0x2b038b[_0x5e8652(0x3e2)][_0x5e8652(0x417)](()=>{const _0x2b8cbb=_0x5e8652;this[_0x2b8cbb(0x4ae)]&&this['_subUnitId']&&this[_0x2b8cbb(0x271)]&&this['_drawingManagerService'][_0x2b8cbb(0x492)]({'unitId':this[_0x2b8cbb(0x4ae)],'subUnitId':this[_0x2b8cbb(0x460)],'drawingId':this[_0x2b8cbb(0x271)]})&&(this[_0x2b8cbb(0x30b)]=this[_0x2b8cbb(0x229)](this[_0x2b8cbb(0x4ae)],this[_0x2b8cbb(0x460)],this[_0x2b8cbb(0x271)]),this[_0x2b8cbb(0x400)]());}));}));}[_0x12db2b(0x4f7)](){const _0x19e635=_0x12db2b;this[_0x19e635(0x22a)](this['_commandService'][_0x19e635(0x3e5)](_0x54c4a2=>{const _0x486d74=_0x19e635;if(_0x54c4a2['id']!==i[_0x486d74(0x36f)]['id'])return;let {unitId:_0x4963f7,subUnitId:_0x5f54ff,shapeId:_0x47be8d}=_0x54c4a2[_0x486d74(0x41b)];_0x4963f7===this[_0x486d74(0x4ae)]&&_0x5f54ff===this[_0x486d74(0x460)]&&_0x47be8d===this[_0x486d74(0x271)]&&this[_0x486d74(0x1fe)]();})),this[_0x19e635(0x22a)](this['_drawingManagerService'][_0x19e635(0x344)][_0x19e635(0x417)](_0x54ed30=>{const _0x48f93f=_0x19e635;if(_0x54ed30[_0x48f93f(0x2c6)]===0x1){let _0x30de65=_0x54ed30[0x0];if(_0x30de65['drawingType']===a[_0x48f93f(0x3bd)][_0x48f93f(0x3c0)]&&this['_univerInstanceService'][_0x48f93f(0x1ad)](_0x30de65[_0x48f93f(0x315)])===a[_0x48f93f(0x4c4)][_0x48f93f(0x29c)]){this[_0x48f93f(0x271)]=_0x30de65[_0x48f93f(0x474)];let {unitId:_0x4f3d0e,subUnitId:_0x16fa6e}=_0x30de65;this[_0x48f93f(0x30b)]=this[_0x48f93f(0x229)](_0x4f3d0e,_0x16fa6e,this[_0x48f93f(0x271)]),this['_unitId']=_0x4f3d0e,this[_0x48f93f(0x460)]=_0x16fa6e,this['_clearShapeAdjustControls'](),this[_0x48f93f(0x47a)]();return;}}this[_0x48f93f(0x271)]=null,this[_0x48f93f(0x30b)]=void 0x0,this[_0x48f93f(0x4ae)]=null,this['_subUnitId']=null,this[_0x48f93f(0x50b)]();})),this[_0x19e635(0x22a)](this[_0x19e635(0x324)][_0x19e635(0x23c)][_0x19e635(0x417)](_0x16416b=>{const _0x3d48b5=_0x19e635;if(_0x16416b['length']===0x1){var _0x87fd88;let _0x4d6b12=_0x16416b[0x0];((_0x87fd88=this['_drawingManagerService'][_0x3d48b5(0x492)](_0x4d6b12))==null?void 0x0:_0x87fd88[_0x3d48b5(0x2f3)])===a[_0x3d48b5(0x3bd)][_0x3d48b5(0x3c0)]&&this['_updateShapeAdjustControls'](!0x0);}})),this['disposeWithMe'](this['_drawingManagerService']['remove$'][_0x19e635(0x417)](_0x4c785b=>{const _0x213521=_0x19e635;for(let _0x477e32 of _0x4c785b)this['_activeShapeId']===_0x477e32[_0x213521(0x474)]&&(this[_0x213521(0x271)]=null,this[_0x213521(0x30b)]=void 0x0,this['_unitId']=null,this[_0x213521(0x460)]=null,this['_clearShapeAdjustControls']());}));}};M=A([k(0x0,s['IDrawingManagerService']),k(0x1,(0x0,a['Inject'])(i['SheetsShapeService'])),k(0x2,(0x0,a[_0x12db2b(0x25a)])(c[_0x12db2b(0x508)])),k(0x3,(0x0,a[_0x12db2b(0x25a)])(j)),k(0x4,a['IUniverInstanceService']),k(0x5,a[_0x12db2b(0x4c6)])],M);const N={'id':_0x12db2b(0x1d6),'type':a['CommandType'][_0x12db2b(0x322)],'handler':(_0x56473f,_0x46b7e2)=>{const _0x5bf736=_0x12db2b;let _0x1ddec5=_0x56473f[_0x5bf736(0x3cb)](s[_0x5bf736(0x421)]),_0x1af43d=_0x56473f[_0x5bf736(0x3cb)](c['IRenderManagerService']),_0x58227d=_0x56473f[_0x5bf736(0x3cb)](M);if(_0x46b7e2==null)return!0x0;if(_0x46b7e2[_0x5bf736(0x2c6)]>0x0){var _0x1f2e62;let _0x526f66=(_0x1f2e62=_0x1af43d[_0x5bf736(0x30d)](_0x46b7e2[0x0][_0x5bf736(0x315)]))==null?void 0x0:_0x1f2e62[_0x5bf736(0x414)];if(_0x526f66){let {unitId:_0x41835e,subUnitId:_0x3ba02d,drawingId:_0x3370c}=_0x46b7e2[0x0],_0x4f842b=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x41835e,'subUnitId':_0x3ba02d,'drawingId':_0x3370c},void 0x0),_0x32720f=_0x526f66[_0x5bf736(0x43c)](_0x4f842b);if(_0x32720f){var _0x4de02f;(_0x4de02f=_0x1af43d['getRenderUnitById'](_0x46b7e2[0x0][_0x5bf736(0x315)]))==null||(_0x4de02f=_0x4de02f[_0x5bf736(0x414)]['getTransformer']())==null||_0x4de02f[_0x5bf736(0x370)](_0x32720f);}}_0x1ddec5['focusDrawing'](_0x46b7e2),_0x58227d[_0x5bf736(0x358)](!0x1);}return!0x0;}},P={'type':a[_0x12db2b(0x21d)][_0x12db2b(0x2d6)],'id':'sheet.command.menu-insert-shape','handler':async(_0x1b49f5,_0x2d75cb)=>{const _0x31206a=_0x12db2b;let _0x5acf10=(0x0,o[_0x31206a(0x2fe)])(_0x1b49f5[_0x31206a(0x3cb)](a[_0x31206a(0x202)]));if(!_0x5acf10)return!0x1;let _0x35680a=_0x1b49f5['get'](o[_0x31206a(0x4d8)])['getCurrentLastSelection']();if(!_0x35680a)return!0x1;let _0x159684=_0x1b49f5[_0x31206a(0x3cb)](a['ICommandService']),{unitId:_0x42d6a3,subUnitId:_0x48856c}=_0x5acf10,{value:_0x516e58,enhanceParams:_0x1c8804}=_0x2d75cb,{range:_0x2f3917}=_0x35680a,_0x119eed={'unitId':_0x42d6a3,'subUnitId':_0x48856c,'shapeType':_0x516e58,'range':_0x2f3917,'shapeId':(0x0,a[_0x31206a(0x47d)])()};if(_0x1c8804){let _0xc2ab35=(0x0,n['isConnectorShape'])(_0x516e58),_0x159db8=_0x516e58===n[_0x31206a(0x378)][_0x31206a(0x3f6)];_0xc2ab35&&(_0x1c8804[_0x31206a(0x3ee)]||_0x1c8804[_0x31206a(0x1e4)])&&(_0x119eed[_0x31206a(0x235)]={'ln':{'startArrow':_0x1c8804[_0x31206a(0x3ee)]?{'type':n[_0x31206a(0x1e1)][_0x31206a(0x387)],'size':n[_0x31206a(0x320)][_0x31206a(0x37a)]}:void 0x0,'endArrow':_0x1c8804['endArrow']?{'type':n[_0x31206a(0x1e1)][_0x31206a(0x387)],'size':n[_0x31206a(0x320)][_0x31206a(0x342)]}:void 0x0}}),_0x159db8&&(_0x1c8804[_0x31206a(0x42e)]||_0x1c8804[_0x31206a(0x2da)])&&(_0x119eed[_0x31206a(0x235)]=(0x0,r['createShapeTextBoxShapeData'])({'fill':{'fillType':n['ShapeFillEnum'][_0x31206a(0x4e3)],'color':_0x31206a(0x201)},'isHorizontal':!!_0x1c8804['horizontal'],'stroke':{'lineStrokeType':n[_0x31206a(0x351)][_0x31206a(0x44c)],'width':0x1,'color':_0x31206a(0x4ce)}}));}let _0x266746=_0x159684['syncExecuteCommand'](i[_0x31206a(0x23e)]['id'],_0x119eed);return setTimeout(()=>{const _0xdd2780=_0x31206a;_0x159684[_0xdd2780(0x461)](N['id'],[{'unitId':_0x42d6a3,'subUnitId':_0x48856c,'drawingId':_0x119eed[_0xdd2780(0x502)]}]);},0xc8),_0x266746;}},F=_0x12db2b(0x4b8),I=_0x12db2b(0x4cf),L=_0x12db2b(0x2a0),R='sheets-shape-ui.ribbon.shape-format',re=(0x0,a[_0x12db2b(0x4a7)])('SHAPE_TEXT'),ie=_0x12db2b(0x525),ae={'id':'sheet.operation.open-shape-object-list-panel','type':a['CommandType'][_0x12db2b(0x2d6)],'handler':(_0x42b559,_0x116f66)=>{const _0x4d2eef=_0x12db2b;let _0x2092da=_0x42b559[_0x4d2eef(0x3cb)](t[_0x4d2eef(0x29d)]),_0x2cbcb3=_0x42b559[_0x4d2eef(0x3cb)](a[_0x4d2eef(0x2e3)]),_0x2a87e0=_0x42b559[_0x4d2eef(0x3cb)](a[_0x4d2eef(0x202)]),_0x5a0564=_0x42b559[_0x4d2eef(0x3cb)](a[_0x4d2eef(0x4c6)]);return(0x0,o[_0x4d2eef(0x2fe)])(_0x2a87e0)?(_0x116f66==null?void 0x0:_0x116f66[_0x4d2eef(0x3fe)])==='close'?(_0x2092da[_0x4d2eef(0x3ac)](I),!0x0):(_0x2092da[_0x4d2eef(0x46d)]({'id':I,'header':{'title':_0x2cbcb3['t'](_0x4d2eef(0x46c))},'children':{'label':I},'onClose':()=>{const _0x32dd00=_0x4d2eef;_0x5a0564[_0x32dd00(0x20e)](s[_0x32dd00(0x3a9)]['id'],[]);},'width':0x168}),!0x0):!0x1;}},z={'type':a[_0x12db2b(0x21d)][_0x12db2b(0x322)],'id':_0x12db2b(0x2eb),'handler'(){return!0x0;}};function oe(_0x3e1e10){const _0x3674c3=_0x12db2b;let _0x373a4a=_0x3e1e10[_0x3674c3(0x3cb)](s['IDrawingManagerService'])[_0x3674c3(0x1fa)](),_0x58ca49=_0x373a4a[_0x3674c3(0x2c6)]===0x1?_0x373a4a[0x0]:null;if(!_0x58ca49||_0x58ca49[_0x3674c3(0x2f3)]!==a['DrawingTypeEnum']['DRAWING_SHAPE'])return null;let _0x41c43d=_0x3e1e10[_0x3674c3(0x3cb)](i[_0x3674c3(0x2e7)]),_0x1b3ba8=_0x41c43d[_0x3674c3(0x50d)](_0x58ca49[_0x3674c3(0x315)],_0x58ca49[_0x3674c3(0x19f)],_0x58ca49[_0x3674c3(0x474)]),_0x5c3ef6=_0x41c43d[_0x3674c3(0x3de)](_0x58ca49[_0x3674c3(0x315)],_0x58ca49[_0x3674c3(0x19f)],_0x58ca49[_0x3674c3(0x474)]);return _0x1b3ba8===void 0x0||!_0x5c3ef6?null:{'drawing':_0x58ca49,'shapeData':_0x5c3ef6,'shapeType':_0x1b3ba8};}const se={'id':'sheet.operation.apply-shape-quick-style','type':a[_0x12db2b(0x21d)][_0x12db2b(0x322)],'handler':(_0x3ceaa4,_0x1449d6)=>{const _0x230dc6=_0x12db2b;let _0x102773=oe(_0x3ceaa4),_0x598b91=(0x0,r[_0x230dc6(0x4a9)])((_0x1449d6==null?void 0x0:_0x1449d6[_0x230dc6(0x3bc)])??(_0x1449d6==null?void 0x0:_0x1449d6[_0x230dc6(0x3fe)])??'');if(!_0x102773||!_0x598b91||_0x598b91[_0x230dc6(0x3e4)]!==(0x0,r[_0x230dc6(0x1f4)])(_0x102773[_0x230dc6(0x235)]))return!0x1;let _0x185379=(0x0,r[_0x230dc6(0x4a4)])(_0x102773['shapeData'],_0x598b91);if(!_0x185379)return!0x1;let {drawing:_0x58479c}=_0x102773;return _0x3ceaa4['get'](a['ICommandService'])['executeCommand'](S['id'],{'unitId':_0x58479c[_0x230dc6(0x315)],'subUnitId':_0x58479c[_0x230dc6(0x19f)],'shapeId':_0x58479c[_0x230dc6(0x474)],'shapeData':_0x185379,'oldShapeJSON':{'oldShapeData':_0x102773[_0x230dc6(0x235)]}});}},ce={'id':_0x12db2b(0x3cf),'type':a[_0x12db2b(0x21d)][_0x12db2b(0x322)],'handler':(_0x346bee,_0x597595)=>{const _0x303556=_0x12db2b;let _0x53ddaa=oe(_0x346bee),_0x3c0900=(_0x597595==null?void 0x0:_0x597595['shapeType'])??(_0x597595==null?void 0x0:_0x597595['value']);if(!_0x53ddaa||!_0x3c0900||(0x0,n[_0x303556(0x4c9)])(_0x53ddaa[_0x303556(0x520)])||(0x0,n[_0x303556(0x4c9)])(_0x3c0900))return!0x1;let _0x15b5bb=(0x0,r['cloneShapeDataForType'])(_0x53ddaa[_0x303556(0x235)],_0x3c0900);if(!_0x15b5bb)return!0x1;let {drawing:_0x139f45}=_0x53ddaa;return _0x346bee['get'](a[_0x303556(0x4c6)])[_0x303556(0x461)](S['id'],{'unitId':_0x139f45[_0x303556(0x315)],'subUnitId':_0x139f45[_0x303556(0x19f)],'shapeId':_0x139f45[_0x303556(0x474)],'shapeType':_0x3c0900,'shapeData':_0x15b5bb,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x53ddaa[_0x303556(0x520)],'oldShapeData':_0x53ddaa['shapeData']}});}};let B=class extends a[_0x12db2b(0x30e)]{constructor(_0x3e7b36,_0x330619){const _0x4e9767=_0x12db2b;super(),this[_0x4e9767(0x415)]=_0x3e7b36,this[_0x4e9767(0x324)]=_0x330619,this[_0x4e9767(0x278)](),this[_0x4e9767(0x415)][_0x4e9767(0x22f)](!0x0),this[_0x4e9767(0x22a)]({'dispose':()=>this['_clipService'][_0x4e9767(0x22f)](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x14dde3=_0x12db2b;let _0x577597=this[_0x14dde3(0x415)],_0x14f1f6=new Map(),_0x543ebb=_0x577597[_0x14dde3(0x1f7)]((_0x216ad0,_0x2bac26,_0x4909ea,_0x1f7523,_0x4b093d)=>{const _0x16bc34=_0x14dde3;let _0x4b69de=_0x2bac26;if(_0x4b69de===n[_0x16bc34(0x378)][_0x16bc34(0x391)]||_0x2bac26===_0x16bc34(0x266))return!0x1;try{let _0x119963=_0x14f1f6[_0x16bc34(0x3cb)](_0x2bac26);return _0x119963||(_0x119963=new n['ShapeModel'](_0x4b69de,_0x16bc34(0x245)+_0x2bac26),_0x14f1f6['set'](_0x2bac26,_0x119963)),_0x119963[_0x16bc34(0x23a)](),_0x4b093d&&Object['keys'](_0x4b093d)[_0x16bc34(0x2c6)]>0x0&&_0x119963[_0x16bc34(0x3d2)]({'adjustValues':_0x4b093d},!0x0),_0x119963['updateContext']({'width':_0x4909ea,'height':_0x1f7523}),_0x119963[_0x16bc34(0x308)](_0x216ad0,{'left':0x0,'top':0x0,'width':_0x4909ea,'height':_0x1f7523});}catch{return!0x1;}});this[_0x14dde3(0x22a)](_0x543ebb),this[_0x14dde3(0x22a)]({'dispose':()=>_0x14f1f6[_0x14dde3(0x483)]()});}[_0x12db2b(0x269)](_0x4652b9,_0xaf9e0b,_0x2b23a6,_0x27e7f4,_0xaef42c){const _0x33b6cc=_0x12db2b;let _0x1f03cb=this[_0x33b6cc(0x324)][_0x33b6cc(0x1a0)](_0x4652b9,_0xaf9e0b);if(!_0x1f03cb[_0x2b23a6])return;let _0x4ca17c={..._0x1f03cb[_0x2b23a6],'prstGeom':_0x27e7f4,'adjustValues':_0xaef42c};this['_drawingManagerService'][_0x33b6cc(0x42f)]([_0x4ca17c]);}};B=A([k(0x0,(0x0,a[_0x12db2b(0x25a)])(d['DrawingImageClipService'])),k(0x1,(0x0,a[_0x12db2b(0x25a)])(s[_0x12db2b(0x421)]))],B);const le=_0x12db2b(0x218),ue=_0x12db2b(0x39a);function de({onShapeClick:_0xd18dd7,excludeGroups:_0x44d85e}){const _0x383821=_0x12db2b;return(0x0,p[_0x383821(0x3fc)])(e[_0x383821(0x21f)],{'excludeGroups':_0x44d85e,'onShapeClick':_0xd18dd7,'scrollContainer':_0x383821(0x457)});}function fe(){const _0xec77f2=_0x12db2b;let _0x2ad5b3=(0x0,t[_0xec77f2(0x350)])(s['IDrawingManagerService']),_0x3af522=(0x0,t[_0xec77f2(0x350)])(B);return(0x0,p[_0xec77f2(0x3fc)])(e[_0xec77f2(0x1fc)],{'buttonLabel':_0xec77f2(0x32b),'excludeGroups':[e[_0xec77f2(0x412)][_0xec77f2(0x1dd)]],'onShapeClick':_0x3214da=>{const _0x1ab84c=_0xec77f2;let _0x40e434=_0x2ad5b3['getFocusDrawings']()[_0x1ab84c(0x440)](_0x4796e5=>_0x4796e5[_0x1ab84c(0x2f3)]===a['DrawingTypeEnum']['DRAWING_IMAGE']);if(!_0x40e434)return;let {unitId:_0x1c62ba,subUnitId:_0x4226fe,drawingId:_0xa12f75}=_0x40e434;_0x3af522[_0x1ab84c(0x269)](_0x1c62ba,_0x4226fe,_0xa12f75,_0x3214da['type']);}});}function pe(){const _0x5396ed=_0x12db2b;let _0x1599b8=(0x0,t['useDependency'])(s[_0x5396ed(0x421)]),_0x9a784e=(0x0,t[_0x5396ed(0x350)])(B);return(0x0,p[_0x5396ed(0x3fc)])(e[_0x5396ed(0x1fc)],{'buttonLabel':_0x5396ed(0x32b),'excludeGroups':[e[_0x5396ed(0x412)][_0x5396ed(0x1dd)]],'DropdownComponent':f[_0x5396ed(0x4d3)],'onShapeClick':_0x44e91b=>{const _0x17bfc7=_0x5396ed;let _0xa736f9=_0x1599b8[_0x17bfc7(0x1fa)]()['find'](_0x19c303=>_0x19c303[_0x17bfc7(0x2f3)]===a[_0x17bfc7(0x3bd)][_0x17bfc7(0x313)]);if(!_0xa736f9)return;let {unitId:_0x245cf1,subUnitId:_0x3cca50,drawingId:_0x4f5dd6}=_0xa736f9;_0x9a784e[_0x17bfc7(0x269)](_0x245cf1,_0x3cca50,_0x4f5dd6,_0x44e91b[_0x17bfc7(0x3e4)]);}});}function me(){const _0x44fd15=_0x12db2b;let _0x3d8c76=(0x0,t[_0x44fd15(0x350)])(t[_0x44fd15(0x3f9)]),_0x36b202=(0x0,t['useDependency'])(s['IDrawingManagerService']),_0x3b7c7f=(0x0,t['useDependency'])(a[_0x44fd15(0x202)]),_0x4a97a4=_0x36b202[_0x44fd15(0x1fa)]()[0x0],_0x4c31b7=_0x4a97a4?_0x3b7c7f[_0x44fd15(0x1ad)](_0x4a97a4['unitId']):void 0x0,_0x56860a=_0x4c31b7===a[_0x44fd15(0x4c4)][_0x44fd15(0x2f6)]?_0x44fd15(0x45a):_0x4c31b7===a['UniverInstanceType']['UNIVER_SHEET']?ue:void 0x0,_0x26c108=_0x56860a?_0x3d8c76[_0x44fd15(0x3cb)](_0x56860a):void 0x0;return _0x26c108?(0x0,p['jsx'])(_0x26c108,{}):null;}function he(){const _0x34fae5=_0x12db2b;let _0x1edc81=(0x0,t[_0x34fae5(0x350)])(a[_0x34fae5(0x4c6)]);return(0x0,p[_0x34fae5(0x3fc)])(de,{'onShapeClick':_0x3814cb=>{const _0x294cae=_0x34fae5;_0x1edc81[_0x294cae(0x461)](P['id'],{'value':_0x3814cb[_0x294cae(0x3e4)],'enhanceParams':{'endArrow':_0x3814cb['endArrow'],'startArrow':_0x3814cb[_0x294cae(0x3ee)],'horizontal':_0x3814cb['horizontal'],'vertical':_0x3814cb[_0x294cae(0x2da)]}});}});}function ge(){const _0x336d49=_0x12db2b;return(0x0,p[_0x336d49(0x3fc)])(he,{});}function _e(_0x45b70b){const _0x11f55d=_0x12db2b;let _0xc57a11=_0x45b70b[_0x11f55d(0x3cb)](a['IUniverInstanceService']);return{'id':P['id'],'type':t['MenuItemType']['SELECTOR'],'selections':[{'label':{'name':le,'hoverable':!0x1,'selectable':!0x1,'props':{'id':P['id']}}}],'icon':_0x11f55d(0x3b9),'tooltip':'sheets-shape-ui.insertShape','activated$':(0x0,l[_0x11f55d(0x23d)])(_0xc57a11,!0x1,()=>new u[(_0x11f55d(0x383))](_0x63e902=>{const _0x38982d=_0x11f55d;_0x63e902[_0x38982d(0x247)](!0x1);})),'hidden$':(0x0,t[_0x11f55d(0x1c7)])(_0x45b70b,a[_0x11f55d(0x4c4)][_0x11f55d(0x29c)]),'disabled$':(0x0,l['getCurrentRangeDisable$'])(_0x45b70b)};}function ve(_0x48763d){const _0xf4b997=_0x12db2b;let _0x163db3=_0x48763d[_0xf4b997(0x3cb)](a[_0xf4b997(0x202)]);return{'id':ae['id'],'type':t[_0xf4b997(0x1e5)][_0xf4b997(0x372)],'icon':_0xf4b997(0x22b),'title':_0xf4b997(0x2b9),'tooltip':'sheets-shape-ui.objectListPanel.open','activated$':(0x0,l[_0xf4b997(0x23d)])(_0x163db3,!0x1,()=>new u[(_0xf4b997(0x383))](_0x521f2a=>{const _0x317046=_0xf4b997;_0x521f2a[_0x317046(0x247)](!0x1);})),'hidden$':(0x0,t['getMenuHiddenObservable'])(_0x48763d,a[_0xf4b997(0x4c4)][_0xf4b997(0x29c)]),'disabled$':(0x0,l[_0xf4b997(0x49b)])(_0x48763d)};}const ye=_0x12db2b(0x307),be=_0x12db2b(0x3dd);function xe(_0x18269d){const _0x5856e1=_0x12db2b;let _0x4298c3=_0x18269d[_0x5856e1(0x3cb)](s['IDrawingManagerService'])[_0x5856e1(0x1fa)]();return _0x4298c3['length']===0x1&&_0x4298c3[0x0][_0x5856e1(0x2f3)]===a[_0x5856e1(0x3bd)][_0x5856e1(0x3c0)]?_0x4298c3[0x0]:null;}function Se(_0xfdb249){const _0x571755=_0x12db2b;let _0x3bc986=_0xfdb249[_0x571755(0x3cb)](s['IDrawingManagerService']);return _0x3bc986['focus$'][_0x571755(0x49a)]((0x0,u[_0x571755(0x1eb)])(_0x3bc986[_0x571755(0x1fa)]()),(0x0,u['map'])(_0x2ceba5=>_0x2ceba5['length']!==0x1||_0x2ceba5[0x0][_0x571755(0x2f3)]!==a[_0x571755(0x3bd)][_0x571755(0x3c0)]));}function Ce(_0x5c82e4){const _0x43e336=_0x12db2b;return{'id':ye,'commandId':i[_0x43e336(0x204)]['id'],'type':t[_0x43e336(0x1e5)][_0x43e336(0x372)],'title':_0x43e336(0x21a),'tooltip':_0x43e336(0x21a),'icon':_0x43e336(0x33d),'hidden$':Se(_0x5c82e4),'params':()=>{const _0x433b05=_0x43e336;let _0x161678=xe(_0x5c82e4);return _0x161678?{'unitId':_0x161678[_0x433b05(0x315)],'subUnitId':_0x161678[_0x433b05(0x19f)],'shapeId':_0x161678[_0x433b05(0x474)],'flipH':!0x0}:void 0x0;}};}function we(_0x119703){const _0xdf6418=_0x12db2b;return{'id':be,'commandId':i[_0xdf6418(0x204)]['id'],'type':t[_0xdf6418(0x1e5)][_0xdf6418(0x372)],'title':_0xdf6418(0x3ed),'tooltip':_0xdf6418(0x3ed),'icon':'FlipVerticalIcon','hidden$':Se(_0x119703),'params':()=>{const _0x1959d7=_0xdf6418;let _0x4c1089=xe(_0x119703);return _0x4c1089?{'unitId':_0x4c1089[_0x1959d7(0x315)],'subUnitId':_0x4c1089[_0x1959d7(0x19f)],'shapeId':_0x4c1089['drawingId'],'flipV':!0x0}:void 0x0;}};}const Te=_0x12db2b(0x2c9),Ee=_0x12db2b(0x504),De=_0x12db2b(0x4fd),Oe=_0x12db2b(0x2b3);function ke(){const _0x44d798=_0x12db2b;let _0x14136b=(0x0,t[_0x44d798(0x350)])(a[_0x44d798(0x4c6)]),_0x118dc4=(0x0,t[_0x44d798(0x350)])(s[_0x44d798(0x421)]),_0x18a0bf=(0x0,t[_0x44d798(0x350)])(i[_0x44d798(0x2e7)]),_0x5da3c4=()=>{const _0x37ab52=_0x44d798;var _0x5c3152;let _0x3e6bfe=_0x118dc4[_0x37ab52(0x1fa)]();if(_0x3e6bfe[_0x37ab52(0x2c6)]!==0x1||((_0x5c3152=_0x3e6bfe[0x0])==null?void 0x0:_0x5c3152[_0x37ab52(0x2f3)])!==a[_0x37ab52(0x3bd)]['DRAWING_SHAPE'])return null;let {unitId:_0x57caf5,subUnitId:_0xd95c24,drawingId:_0x417941}=_0x3e6bfe[0x0],_0xf67453=_0x18a0bf[_0x37ab52(0x50d)](_0x57caf5,_0xd95c24,_0x417941),_0x557d01=_0x18a0bf[_0x37ab52(0x3de)](_0x57caf5,_0xd95c24,_0x417941);return _0xf67453===void 0x0||!_0x557d01?null:{'unitId':_0x57caf5,'subUnitId':_0xd95c24,'drawingId':_0x417941,'shapeType':_0xf67453,'shapeData':_0x557d01};},_0x187e93=(0x0,t[_0x44d798(0x452)])(()=>new u[(_0x44d798(0x383))](_0x140dcb=>{const _0x242d33=_0x44d798;let _0x2310bc=()=>_0x140dcb[_0x242d33(0x247)](_0x5da3c4()),_0x560b31=_0x118dc4['focus$'][_0x242d33(0x417)](_0x2310bc),_0xd23670=_0x14136b[_0x242d33(0x3e5)](_0x299b29=>{const _0x13b7e9=_0x242d33;_0x299b29['id']===i[_0x13b7e9(0x36f)]['id']&&_0x2310bc();});return _0x2310bc(),()=>{const _0x824a01=_0x242d33;_0x560b31[_0x824a01(0x4ef)](),_0xd23670[_0x824a01(0x1e8)]();};}),_0x5da3c4(),!0x1,[_0x14136b,_0x118dc4,_0x18a0bf]);return{'selection':_0x187e93,'updateShapeData':_0x5c9861=>{const _0x5618b2=_0x44d798;_0x187e93&&C(_0x14136b,_0x187e93['unitId'],_0x187e93[_0x5618b2(0x19f)],_0x187e93['drawingId'],{'oldShapeData':_0x187e93[_0x5618b2(0x235)]},_0x5c9861);}};}function Ae(){const _0x1c8728=_0x12db2b;let {selection:_0x4ee198,updateShapeData:_0x49a6cf}=ke();return _0x4ee198?(0x0,p[_0x1c8728(0x3fc)])(e[_0x1c8728(0x3da)],{'shapeData':_0x4ee198[_0x1c8728(0x235)],'shapeType':_0x4ee198[_0x1c8728(0x520)],'onUpdateShapeData':_0x49a6cf}):null;}function je(){const _0x4c4265=_0x12db2b;let _0x1e3474=(0x0,t[_0x4c4265(0x350)])(a['ICommandService']),_0x96d2dc=(0x0,t['useDependency'])(a[_0x4c4265(0x2e3)]),{selection:_0x31f9a5}=ke();return _0x31f9a5?(0x0,p[_0x4c4265(0x3fc)])(e[_0x4c4265(0x459)],{'type':(0x0,r['getShapeQuickStyleType'])(_0x31f9a5[_0x4c4265(0x235)]),'ariaLabel':_0x96d2dc['t']('sheets-shape-ui.quickStyles'),'activePresetId':(0x0,r['resolveActiveShapeQuickStylePresetId'])(_0x31f9a5[_0x4c4265(0x235)]),'onSelect':_0x5a6414=>_0x1e3474[_0x4c4265(0x461)](se['id'],{'presetId':_0x5a6414})}):null;}function Me(){const _0x4f9916=_0x12db2b;let {selection:_0x4381c0,updateShapeData:_0x43e16b}=ke();return _0x4381c0?(0x0,p['jsx'])(e[_0x4f9916(0x1b2)],{'fontFamilyPopupDataComponent':'sheets-shape-format-font-family-menu','shapeData':_0x4381c0['shapeData'],'onUpdateShapeData':_0x43e16b}):null;}function Ne(){const _0x11b7d0=_0x12db2b;var _0x4279d9;let {selection:_0x58c3a6,updateShapeData:_0x197932}=ke(),_0xf013b8=(0x0,e[_0x11b7d0(0x214)])({'hostType':a[_0x11b7d0(0x4c4)][_0x11b7d0(0x29c)],'unitId':(_0x58c3a6==null?void 0x0:_0x58c3a6[_0x11b7d0(0x315)])??'','subUnitId':(_0x58c3a6==null?void 0x0:_0x58c3a6['subUnitId'])??'','shapeId':(_0x58c3a6==null?void 0x0:_0x58c3a6['drawingId'])??'','shapeData':_0x58c3a6==null?void 0x0:_0x58c3a6['shapeData'],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x11b7d0(0x293),'onUpdateBinding':_0x345c14=>_0x197932({'formulaBinding':_0x345c14})}),_0x45c0e6=((_0x4279d9=_0xf013b8[_0x11b7d0(0x3b5)])==null?void 0x0:_0x4279d9[_0x11b7d0(0x3e9)](_0x1ebb80=>_0x1ebb80[_0x11b7d0(0x1be)])[_0x11b7d0(0x27f)](_0x16c84f=>_0x16c84f[_0x11b7d0(0x25b)]!==!0x1))??[];return _0x58c3a6!=null&&_0x58c3a6['shapeData'][_0x11b7d0(0x4ac)]?(0x0,p[_0x11b7d0(0x3fc)])(e[_0x11b7d0(0x2c7)],{'actions':_0x45c0e6,'panel':_0xf013b8['panel']}):null;}const Pe=_0x12db2b(0x454),Fe='sheets-shape-ui.ribbon.shape-format.text-control',Ie=_0x12db2b(0x44b),Le=_0x12db2b(0x314),Re=_0x12db2b(0x445),ze=_0x12db2b(0x3ff),Be='sheets-shape-ui.ribbon.shape-format.arrange-back';function Ve(_0x30e0aa){const _0x349cd5=_0x12db2b;let _0x46e7ba=_0x30e0aa[_0x349cd5(0x3cb)](a[_0x349cd5(0x4c6)]),_0x52ed18=_0x30e0aa[_0x349cd5(0x3cb)](s['IDrawingManagerService']),_0x401d0f=_0x30e0aa[_0x349cd5(0x3cb)](i['SheetsShapeService']);return new u[(_0x349cd5(0x383))](_0xb1588b=>{const _0x3bc5a0=_0x349cd5;let _0x3fa137=()=>{const _0x3f81b5=_0xde32;let _0x34ea52=V(_0x30e0aa),_0x21d9fb=_0x34ea52?_0x401d0f[_0x3f81b5(0x3de)](_0x34ea52[_0x3f81b5(0x315)],_0x34ea52[_0x3f81b5(0x19f)],_0x34ea52[_0x3f81b5(0x474)]):null;_0xb1588b[_0x3f81b5(0x247)](_0x21d9fb?(0x0,r[_0x3f81b5(0x2fb)])(_0x21d9fb)??'':'');},_0x438658=_0x52ed18[_0x3bc5a0(0x344)][_0x3bc5a0(0x417)](_0x3fa137),_0x12a564=_0x46e7ba[_0x3bc5a0(0x3e5)](_0x5dd9d4=>{const _0x2ab32e=_0x3bc5a0;_0x5dd9d4['id']===i[_0x2ab32e(0x36f)]['id']&&_0x3fa137();});return _0x3fa137(),()=>{const _0xfe4e89=_0x3bc5a0;_0x438658[_0xfe4e89(0x4ef)](),_0x12a564[_0xfe4e89(0x1e8)]();};});}function V(_0x2c0b43){const _0x49d29c=_0x12db2b;var _0x3718a8;let _0x2c736c=_0x2c0b43['get'](s['IDrawingManagerService'])[_0x49d29c(0x1fa)]();return _0x2c736c[_0x49d29c(0x2c6)]===0x1&&((_0x3718a8=_0x2c736c[0x0])==null?void 0x0:_0x3718a8[_0x49d29c(0x2f3)])===a[_0x49d29c(0x3bd)][_0x49d29c(0x3c0)]?_0x2c736c[0x0]:null;}function _0xde32(_0x38ed37,_0xb7cb6f){_0x38ed37=_0x38ed37-0x192;const _0x472fce=_0x472f();let _0xde3233=_0x472fce[_0x38ed37];return _0xde3233;}function _0x472f(){const _0x73836d=['DRAWING_SHAPE','4993479rFzoFp','getZoomRatio','_cxtHandlerPointerUp','clearActiveDrawingObjects','getPresentation','viewBound','copyType','error','version','sheetViewStartColumn','get','IImageIoService','Transform','onTransformChange$','sheet.operation.update-shape-type','_disposePopups','_initSelection','setShapeData','getDrawingShapeKeyByDrawingSearch','_getImagePrstGeom','pushUndoRedo','drawing-ui.objectListPanel.descriptionPlaceholder','dataModel','SHEET','MEDIA','ShapeStyleRibbonControl','copyId','isStartConnectorPoint','sheet.menu.shape.flip-vertical','getShapeDataById','getObject','Module','drawing-ui.objectListPanel.moveForward','changeEnd$','updateDocumentStyle','type','onCommandExecuted','RemoveSheetDrawingCommand','_draggingConnectorId','_drawRichTextLayer','flatMap','doc','buildShapeTextDataUpdate','onReady','sheets-shape-ui.flipVertical','startArrow','translateWithPrecision','UniverShapeEditorMobileUIPlugin','drawing-ui.objectListPanel.filterAll','_sidebarService','_baseShapeTop','getViewportByCell','UniverSheetsShapeUIPlugin','Rect','getConnectionRelation','renderDrawingShape','ComponentManager','DisposableCollection','debounceRefreshControls','jsx','shape-editor-ui.toolbar.quickStyles','value','sheets-shape-ui.ribbon.shape-format.arrange-front','_updateAdjustControlPositions','_renderManagerService','selectable','resolveShapeTextEditorBehaviorShapeData','viewportScrollY','BottomIcon','fillImageSource','axisAlignSheetTransform','targetShapeId','getCurrentUnitOfType','getBatchAddOp','_sheetPrintInterceptorService','visible$','57361689DhUvXL','string','UniverSheetsDrawingPlugin','permissionCheckWithoutRange','order','ShapeGroupEnum','registerDependencies','scene','_clipService','_shapeUpdateListener','subscribe','reverse','FormatPainterSessionService','undo','params','_clearShapeConnectorHandlerObjects','getActualSize','_groupCopyPasteController','shapeText','attachTransformerTo','IDrawingManagerService','getCurrentUnitInfo','_registerDrawingMoveHandler','_injector','animateFormulaPresentation','_isStartConnectorPoint','Injector','redo','IRibbonService','getUnit','jsxs','fillType','connector-handler-','horizontal','featurePluginUpdateNotification','disableObjectsEvent','useState','_activeShapeInfo','mergeMenu','useMemo','getShapeModel','_getZoomRatio','interceptCommand','rotation','_baseLeft','_baseShapeWidth','SetDrawingArrangeCommand','getObjectIncludeInGroup','createShapeFormulaDocument','_shapeFormulaService','keys','find','_insertingShapeKeys','editingParams$','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','forEach','sheets-shape-ui.ribbon.shape-format.arrange-backward','pluginName','_sheetInterceptorService','activeSheet$','end','includes','sheets-shape-ui.ribbon.shape-format.formula-control','SolidLine','_isStartAdjusting','VIEW_MAIN','SheetCanvasPopManagerService','getUnitId','_shapeEditPanelVersion','useObservable','resetCursor','sheets-shape-ui.ribbon.shape-format.style-control','_drawingAddListener','getImageSourceCache','parent','getScene','ShapeQuickStyleGallery','doc.image-clip.shape-picker.component','getState','UniverSheetsPlugin','SheetInterceptorService','drawing-ui.objectListPanel.locate','URL','_subUnitId','executeCommand','_shapes','_calculateFreeEndpointAngle','_baseShapeHeight','getAdjustNames','drawing-ui.objectListPanel.empty','_connectionSiteObjects','computeConnectorResizeLayout','registerRenderModule','sheet.operation.close-sheet-shape-format-panel','_sidebarDisposable','sheets-shape-ui.objectListPanel.title','open','SHAPE_EDITOR_TRANSFORMER_CONFIG','DocumentViewModel','MoveUpIcon','shapeModel','pick','plainShapeTextToDocumentData','drawingId','wrapStrategy','resolveShapeTextDocumentRenderLayout','_addControl','addImageSourceCache','_clearCompletionFrame','_createShapeAdjustControls','complete','drawing-ui.objectListPanel.noSelection','generateRandomId','getDrawingOrder','skeleton','_addShapeConnectorHandlerObjects','contentVerticalOffset','sheetViewStartRow','clear','_imageShapeClipController','IUndoRedoService','_univerInstanceService','getSkeleton','_permissionService','_releaseRenderCache','getInterceptPoints','Circle','getShapeTextRect','Fragment','_transformCalculateSrcRect','DocEventManagerService','refreshShapeFillImage','getCurrentScrollState','getDrawingByParam','color','onDblclick$','#4285f4','subscribeEvent','_transform','_imageIoService','_initialize','pipe','getCurrentRangeDisable$','UniverShapeEditorUIPlugin','index','scale','transformForAngle','isLineShape','sheets-shape-ui.deleteShape','UniverLicensePlugin','_executeConnectionCommand','applyQuickStyleToShapeData','_activeTargetShapeId','_shapeTextEditingService','createInternalEditorID','IPermissionService','getShapeQuickStylePreset','SELECTOR','updateConnectionDetection','formulaBinding','highlighted','_unitId','point','drawing-ui.objectListPanel.sectionFloating','setAdjustValueByName','updateDocumentDataMargin','cxnPointFill','UniverDrawingPlugin','transformToDrawingPosition','FlipVerticalIcon','sectionCanvas','sheet.shape.edit.panel','height','normal','_initCopyPaste','OBJECT_LIST_FLOATING_SECTION_ID','worldPoints','prototype','MenuManagerPosition','_activeImageId','ShapeRenderModeEnum','_focusedDrawings','back','UniverInstanceType','default','ICommandService','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','ShapeDefaultConfig','isConnectorShape','fontSize','_props','ang','getDrawingTypeNameKey','#bcbcbc','sheet.shape.object-list.panel','FOCUSING_SHAPE_TEXT_EDITOR','defineProperty','getTextModel','MobileDropdown','getCurrentTypeOfUnit$','removeLinePoints','cxnPointRadius','_isShouldShowDrawingShapeAdjust','SheetsSelectionsService','changeShapeType','hidden','_baseShapeLeft','description','entries','objects','blockExecuteWithoutPermission','_ribbonService','strokeWidth','_drawingType','SolidFill','getConnectionInfo','_commandExecutedListener','drawing-ui.objectListPanel.hide','_getShapeAdjustInfosById','has','_isImagePointerDown','ShapeTextEditorContainer','isInGroup','SHEET_VIEWPORT_KEY','_adjHandlerPointerMove','animationEnabled','unsubscribe','_componentManager','_baseDrawingRect','preValue','FormulaShapeAnimationController','getDrawingDataForUnit','drawing-ui.objectListPanel.unlockAll','sqrt','_registerDrawingFocusChangeHandler','3244984SDgaxI','fill','getCurrentSkeleton','setSrcRect','isHighlighted','sheets-shape-ui.shape-format.text-ribbon-control','getEditing','_copyInfo','clearControl$','Shape','shapeId','_updateShapeAdjustControls','sheets-shape-ui.shape-format.style-ribbon-control','angle','getActiveSheet','_baseHeight','IRenderManagerService','setFillImage','sheets-shape-ui','_clearShapeAdjustControls','computeStraightConnectorLayout','getShapeTypeById','isRichText','start','UniverRenderEnginePlugin','MobileShapeEditorService','getDrawingSearch','ShapeTextFloatMenuRenderControllerBase','getDrawingVisible','setShapeProps','abs','getShapeType','_getDrawingRect','DrawingApplyType','getAdjustInfoByName','_localeService','UniverSheetsDrawingUIPlugin','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','isRenderLinePointsMode','_onSavingEditorData$','shapeType','_handleFreeEndpointPointerUp','_sheetBasicShapeConnectionPointController','indexOf','_popupMenuListener','sheet.shape.text.float-menu','SHAPE_CHANGE_PICKER_COMPONENT','#1a73e8','_registerComponents','Vector2','_connectorObjects','getSheetId','MoveDownIcon','getTransformerByCreate','CopySheetCommand','PRINTING_COMPONENT_COLLECT','isArray','_drawSimpleText','classType','drawing-ui.objectListPanel.name','subUnitId','getDrawingData','getBatchRemoveOp','getRealBound','name','setPresentation','getImage','getBasicShapeRotateBound','_updateSrcRectByTransform','FOCUSING_COMMON_DRAWINGS','_cxnIndex','enableObjectsEvent','sin','_shapeRenderController','getUnitType','sheet.operation.open-mobile-shape-editor','_sheetPermissionCheckController','UniverShapeEditorPlugin','INSERT','ShapeTextRibbonControl','drawing-ui.objectListPanel.unlock','updateLinePoints','ContextMenuPosition','_moveConnectorWithShape','iterator','FromArray','_registerGroupFeaturePasteHook','calcAdjValues','sheets-shape-ui.config','onPointerDown$','ShapeFloatingToolbar','actions','ToggleShapeFloatingToolbarOperation','width','_loadAndSetImage','_sheetCanvasPopManagerService','_sheetSkeletonService','sheets-shape-ui.editText','_handleConnectedEndpointPointerUp','_currentScene','getMenuHiddenObservable','Path','rect','setConfig','_shapePopupMenuDisposable','attachRangeWithCoord','touchDependencies','VerticalAlign','sheetTransform','ShapeFloatingToolbarToggleFactory','CROSSHAIR','_sheetClipboardService','SheetPermissionCheckController','getParent','lineShapeId','drawing.operation.set-drawing-active','presentationChanged$','values','ShapeFormatSettingIcon','ContextMenuGroup','_isOpenedShapeEditPanel','drawing-ui.objectListPanel.title','Line','UniverDocsPlugin','_index','refreshFormulaPresentation','ShapeArrowTypeEnum','getPermissionPoint','_currentUniverService','endArrow','MenuItemType','_activeAdjustInfo','UUID','dispose','PREDEFINED_HOOK_NAME','prstGeomAdjValues','startWith','applyPoint','draw','gradientEndColor','getBatchUpdateOp','interceptor','_registerMoveHandler','_iconManager','_activeShapeModel','getShapeQuickStyleType','size','onPointerUp$','registerClipDelegate','sheets-shape-ui.formatShape','transform','getFocusDrawings','_attachConnectorObjectEvent','ShapePickerDropdown','drawing-ui.objectListPanel.sectionCanvas','refreshAdjustControls','srcRect','disableShapeOption','#FFFFFF','IUniverInstanceService','with','ToggleSheetsShapeFlipCommand','from','startY','IMenuManagerService','computeConnectorRouteLayout','DocumentSkeleton','_shapeFloatingToolbarService','_registerIcons','_isHighlighted','Plugin','syncExecuteCommand','getDrawingEditable','_completionFrame','RemoveSheetsShapeMutation','registerFeatureMenu','top','useFormulaShapeToolbar','setEditing','_currentConnectionTarget','permissionPointUpdate$','sheet.shape.picker.component','_cxtHandlerPointerMove','sheets-shape-ui.flipHorizontal','toDisposable','onPointerMove$','CommandType','_configService','ShapePickerPanel','sheet.command.update-shape-data','ShapeFormulaService','insertGroupObject','SheetScrollManagerService','resolveFormulaShapeAutoFitSize','_sheetDrawingService','shapeKey','multiply','isEditing','_getShapeAdjustPointListById','disposeWithMe','ObjectLayersIcon','drawing-ui.objectListPanel.show','canvasElement','_highlightedSiteIndex','setCanUseShapeClip','DocInterceptorService','ObjectListPanelBase','drawing-ui.objectListPanel.lockAll','flipY','_shapeId','shapeData','drawing-ui.objectListPanel.nameInput','registerCommand','57624OFCYhp','normalizeShapeTextModel','clearAdjustValue','shouldClipShapeTextDocument','update$','deriveStateFromActiveSheet$','InsertShapeCommand','flipX','5rqiqUA','DRAWING_OBJECT_LAYER_INDEX','isHit','DRAWING','SheetSkeletonService','clip-','SheetShapeTextEditorContainer','next','_updateImageAdjValues','StraightConnector1','_attachAdjustEvent','register','decorate','shape-editor-ui.arrange.back','getVisible','WorksheetEditPermission','drawing-ui.objectListPanel.details','composeMatrix','UniverSheetsShapePlugin','offsetY','routeConnectorLineShape','DependentOn','VIEW_MAIN_LEFT_TOP','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','getMatrix','_addShapeAdjustControl','Inject','visible','IConfigService','_drawRichText','BehaviorSubject','_openShapeEditPanel','ShapeFloatingToolbarService','beforeCommandExecuted','worldPoint','VIEW_MAIN_TOP','prepareShapeTextDocumentData','SheetSkeletonManagerService','custom','sectionFloating','_initEvents','clipByShape','_handleFreeEndpointMove','switchMap','symbol','_adjHandlerPointerUp','onSavingEditorData$','_init','drawFormulaShapeAnimationLayers','_activeShapeId','_loadShapePictureFill','trim','univer-box-border\x20univer-px-4\x20univer-text-sm','_clearFocusedShape','cancelEditing','actualHeight','_registerImageShapeClipDelegate','parse','MobileObjectListPanel','backward','packageName','_closeShapeEditPanel','_formulaAnimation','filter','stroke','DEFAULT_PASTE','cos','_clearControls','Image','_getImageDrawingInfo','622025uBuTLA','_baseWidth','SetSheetDrawingCommand','UniverSheetsShapeMobileUIPlugin','endConnectionDetection','useEffect','_isDrawingShapePointDown','extraProps','_update','UniverSheetsDrawingMobileUIPlugin','_sheetsShapeService','_registerFocusChangeHandler','_registerOperations','bottom','stringify','setContextValue','sheets-shape-ui.title','_targetShapeId','canvas','setHighlighted','_getOrCreateShapeModel','ShapeTextFloatToolbar','UNIVER_SHEET','ISidebarService','vertical-center','1.0.2','sheet.shape.floating-toolbar','localeService','ArrangeTypeEnum','connection-site-','getShapeTextData','initShapePopupMenu','GROUP','translate','getTextStyle','clip','getDrawingPoints','_registerFeatureMenu','_getScrollInfo','3629580zZTAlW','addClipboardHook','getCanvasElement','RENDER_CLASS_TYPE','@univerjs-pro/sheets-shape-ui','unregister','sheets-shape-ui.shape-format.formula-ribbon-control','_updateTransform','_setTransForm','intercept','invert','delete','sheets-shape-ui.objectListPanel.open','_createControls','getSkeletonParam','_adjName','isRender','getConnectorLinePoints','setCursor','_formulaShapes','useReducer','forward','_generatePasteMutations','DrawingCommonPanel','beginPath','length','ShapeFormulaRibbonControl','transformByState','sheets-shape-ui.shape-format.quick-style-gallery','clip-adj-','drawing-ui.objectListPanel.dragToReorder','resize','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','_baseTop','relation','mode','marginTop','_editingParams$','_executeConnectedRouteConnectionCommand','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','currentAdjustValues','COMMAND','drawing-ui.objectListPanel.collapse','save','isCurvedConnectorShape','vertical','registerShapeFormatPainter','ConnectorCoordinateTransform','fillImageSourceType','oKey','resolveShapeTextDocumentPageHeight','_showConnectionSites','getConnectionSiteList','set','LocaleService','FloatingObjectToolbarPosition','add','asObservable','SheetsShapeService','_initSheetChange','activateDrawingObject','shape-editor-ui.toolbar.changeShape','sheet.operation.open-sheet-shape-format-panel','_draw','CUT','adjustValues','413fAFDma','_canEdit','SetDrawingApplyMutation','function','drawingType','map','getStartConnectInfo','UNIVER_DOC','calculate','_rerouteConnectorLine','_shapeService','reduce','resolveActiveShapeQuickStylePresetId','drawing-ui.objectListPanel.showAll','PaintIcon','getSheetCommandTarget','data','_insertShapes','render','getContextValue','ImageSourceTypeEnum','clipTop','drawing-ui.objectListPanel.lock','createControl$','sheet.menu.shape.flip-horizontal','buildClipPath','_disposed','_getConnectPointInfo','_activeShapeAdjustPointList','onStarting','getRenderUnitById','Disposable','_renderWithCache','_commandService','DocumentDataModel','style','DRAWING_IMAGE','sheets-shape-ui.ribbon.shape-format.arrange-forward','unitId','getObjectListPanelSectionIdForDrawingType','_handleConnectedEndpointMove','clearAdjustControls','completeEditing','formulaPresentation','constructor','_drawingRenderService','startConnectionDetection','merge','getValue','ShapeArrowSizeEnum','_clearPopups','OPERATION','title','_drawingManagerService','InsertSheetsShapeMutation','ISheetClipboardService','cxnIndex','left','IContextService','drawing-ui.objectListPanel.filterHidden','sheets-shape-ui.imagePanel.crop.shape','push','shape-adjust-point-','_urlImageService','_getShapeInfo','drawing-ui.objectListPanel.moveBackward','getEndConnectInfo','_createCopyInfoByRange','_initPermission','_hasReset','makeDirty','SheetDrawingAnchor','_visible','IURLImageService','_findShapeAtPoint','_executeResizeCommand','updateContext','_handleConnectorPointerUp','FlipHorizontalIcon','some','_context','_sheetDrawingShapeRenderController','drawWith','Large','_menuManagerService','focus$','startX','TopmostIcon','offsetX','_formulaKey','DocSelectionRenderService','1593498fxwJCS','object','div','popup','changeStart$','_initPrinting','useDependency','ShapeLineTypeEnum','resolveShapeContextualRibbonHostMode','cxnPointStrokeWidth','contentHeight','add$','localToWorld','setPrstGeom','setShouldShowAdjust','getInverseCoord','stopPropagation','worldRect','_initEditingParams','_hide','_drawShapeText','CURSOR_TYPE','_config','HorizontalAlign','PictureFill','ancestorTransform','WorkbookEditablePermission','setFallbackVisible','_activeAdjustPointList','adjName','REMOVE','getFocusedUnit','focusDrawing','panel','SHEET_SHAPE_UI_PLUGIN','restore','DrawingRenderService','UpdateSheetsShapeDataMutation','activeAnObject','_initCommands','BUTTON','TOP','addObject','onSteady','front','_generateCopyPasteMutations','ShapeTypeEnum','bindRenderTransformerLifecycle','Medium','text','getAdjustValueByName','SheetsShapeUIMenuSchema','UpdateConnectorRelationCommand','setFormulaPresentation','drawing-ui.objectListPanel.description','_executeConnectedRouteResizeCommand','viewportScrollX','Observable','ISheetDrawingService','onRendered','_sheetShapeAdjustController','Arrow','updateShapeFillImage','image-clip-adjust-point-','changing$','onerror','OTHERS','_generateCutPasteMutations','toPrimitive','_findNearestConnectionSite','lineType','None','_addShapeConnectorHandlerObject','shape-text-','prstGeom','transformToAxisAlignPosition','RibbonInsertGroup','_lastEditingShapeKey','_applyFormulaAutoFitSize','EMPTY','sheet.image-clip.shape-picker.component','ShapeFillEnum','drawing-ui.objectListPanel.lockHint','engine','UniverSheetsUIPlugin','_isConnecting','UndoRedoGroupService','remove$','drawing-ui.objectListPanel.unlockHint','adjHandleSize','getSelectedObjectMap','getSheetBySheetId','getDrawingEffectBounds','IconManager','_clearConnectionSites','SetDrawingSelectedOperation','_resetState','_contextService','close','UPDATE','UniverDocsUIPlugin','adjHandleFill','_getSceneAndTransformerByDrawingSearch','getShapeData','setOnSavingEditorData','getAutoFitPresentations','_handleBasicShapeUpdateConnectorLineShape','extensionGroups','image','SheetsDrawingGroupCopyPasteController','isolated','ShapeIcon','cxnPointStroke','adjHandleStroke','presetId','DrawingTypeEnum','_initMenu','sheets-shape-ui.editShape'];_0x472f=function(){return _0x73836d;};return _0x472f();}function He(_0x5080ed,_0xc83bd2=!0x1){const _0x2aac1d=_0x12db2b;let _0x1df285=_0x5080ed[_0x2aac1d(0x3cb)](a[_0x2aac1d(0x4c6)]),_0xa81bc8=_0x5080ed[_0x2aac1d(0x3cb)](s[_0x2aac1d(0x421)]),_0x3e6ee4=_0x5080ed[_0x2aac1d(0x3cb)](i[_0x2aac1d(0x2e7)]);return new u[(_0x2aac1d(0x383))](_0x2a5f50=>{const _0x335ce5=_0x2aac1d;let _0x49a767=()=>{const _0x145f2f=_0xde32;let _0x1e7cfd=V(_0x5080ed);if(!_0x1e7cfd){_0x2a5f50['next'](!0x0);return;}let _0x1ab071=_0x3e6ee4[_0x145f2f(0x3de)](_0x1e7cfd[_0x145f2f(0x315)],_0x1e7cfd[_0x145f2f(0x19f)],_0x1e7cfd[_0x145f2f(0x474)]);_0x2a5f50[_0x145f2f(0x247)](!_0x1ab071||_0xc83bd2&&_0x1ab071['formulaBinding']==null);},_0x4e4423=_0xa81bc8[_0x335ce5(0x344)]['subscribe'](_0x49a767),_0x21085e=_0x1df285[_0x335ce5(0x3e5)](_0x58b777=>{_0x58b777['id']===i['UpdateSheetsShapeDataMutation']['id']&&_0x49a767();});return _0x49a767(),()=>{const _0x45b04d=_0x335ce5;_0x4e4423[_0x45b04d(0x4ef)](),_0x21085e[_0x45b04d(0x1e8)]();};});}function Ue(_0x2a8ee6){const _0xdaa2fb=_0x12db2b;let _0x55b5e5=_0x2a8ee6['get'](s['IDrawingManagerService']),_0x539250=_0x2a8ee6[_0xdaa2fb(0x3cb)](i[_0xdaa2fb(0x2e7)]);return _0x55b5e5[_0xdaa2fb(0x344)][_0xdaa2fb(0x49a)]((0x0,u['startWith'])(_0x55b5e5[_0xdaa2fb(0x1fa)]()),(0x0,u[_0xdaa2fb(0x2f4)])(()=>{const _0x3571ca=_0xdaa2fb;let _0x367b85=V(_0x2a8ee6),_0x23f3aa=_0x367b85?_0x539250['getShapeTypeById'](_0x367b85[_0x3571ca(0x315)],_0x367b85[_0x3571ca(0x19f)],_0x367b85[_0x3571ca(0x474)]):void 0x0;return _0x23f3aa===void 0x0||(0x0,n[_0x3571ca(0x4c9)])(_0x23f3aa);}));}function We(_0x1103e0){const _0x5abbaf=_0x12db2b;return{'id':se['id'],'type':t[_0x5abbaf(0x1e5)][_0x5abbaf(0x4aa)],'icon':_0x5abbaf(0x2fd),'title':_0x5abbaf(0x3fd),'tooltip':_0x5abbaf(0x3fd),'selections':[{'label':{'name':Te,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ve(_0x1103e0),'hidden$':He(_0x1103e0)};}function Ge(_0x14cd18){const _0x472c8b=_0x12db2b;return{'id':ce['id'],'type':t['MenuItemType']['SELECTOR'],'icon':_0x472c8b(0x3b9),'title':_0x472c8b(0x2ea),'tooltip':_0x472c8b(0x2ea),'slot':!0x0,'selections':[{'label':{'name':e[_0x472c8b(0x526)],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Ue(_0x14cd18)};}function Ke(_0xcb6411,_0x2d48a0,_0x5013c=!0x1){return _0x1274bf=>({'id':_0xcb6411,'type':t['MenuItemType']['BUTTON'],'label':{'name':_0x2d48a0,'hoverable':!0x1,'selectable':!0x1},'hidden$':He(_0x1274bf,_0x5013c)});}const qe=Ke(Pe,Ee),Je=Ke(Fe,De),Ye=Ke(Ie,Oe,!0x0);function Xe(_0x334d3b,_0x341a20,_0x4af9f2,_0x4ec268){const _0x5b5ffd=_0x12db2b;return _0x244bcc=>({'id':_0x334d3b,'commandId':m[_0x5b5ffd(0x43b)]['id'],'type':t[_0x5b5ffd(0x1e5)][_0x5b5ffd(0x372)],'icon':_0x4af9f2,'title':_0x4ec268,'tooltip':_0x4ec268,'hidden$':He(_0x244bcc),'params':()=>{const _0x467ecd=_0x5b5ffd;let _0x4a6c25=V(_0x244bcc);return _0x4a6c25?{'unitId':_0x4a6c25[_0x467ecd(0x315)],'subUnitId':_0x4a6c25[_0x467ecd(0x19f)],'drawingIds':[_0x4a6c25[_0x467ecd(0x474)]],'arrangeType':_0x341a20}:void 0x0;}});}const Ze=Xe(Le,a['ArrangeTypeEnum'][_0x12db2b(0x2c2)],_0x12db2b(0x470),'shape-editor-ui.arrange.forward'),Qe=Xe(Re,a[_0x12db2b(0x2a2)][_0x12db2b(0x27b)],_0x12db2b(0x197),'shape-editor-ui.arrange.backward'),$e=Xe(ze,a['ArrangeTypeEnum'][_0x12db2b(0x376)],_0x12db2b(0x346),'shape-editor-ui.arrange.front'),et=Xe(Be,a[_0x12db2b(0x2a2)][_0x12db2b(0x4c3)],'BottomIcon',_0x12db2b(0x24d));function tt(_0xffef74){const _0x43e837=_0x12db2b;return{'id':z['id'],'type':t['MenuItemType'][_0x43e837(0x372)],'icon':'ShapeFormatSettingIcon','title':_0x43e837(0x1f8),'tooltip':_0x43e837(0x1f8),'hidden$':He(_0xffef74),'params':()=>{const _0x32f310=_0x43e837;let _0x38e133=V(_0xffef74);return _0x38e133?{'unitId':_0x38e133[_0x32f310(0x315)],'subUnitId':_0x38e133[_0x32f310(0x19f)],'drawingId':_0x38e133['drawingId']}:void 0x0;}};}const nt={[t[_0x12db2b(0x4bf)]['RIBBON']]:{[R]:{'order':0x64,'title':_0x12db2b(0x1f8),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[se['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':We},[ce['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ge}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[Pe]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':qe}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[Fe]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Je}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ye]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':Ce},[be]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':we},[Le]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Ze},[Re]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Qe},[ze]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':$e},[Be]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':et}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[Ie]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Ye}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[z['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':tt},[e[_0x12db2b(0x1bf)]['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':e[_0x12db2b(0x1d0)]}}}}},rt={[t[_0x12db2b(0x396)][_0x12db2b(0x3d9)]]:{[P['id']]:{'order':0x4,'menuItemFactory':_e}}},it={...rt,[t[_0x12db2b(0x396)][_0x12db2b(0x38c)]]:{[ae['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ve}},[t[_0x12db2b(0x1b5)][_0x12db2b(0x243)]]:{[t[_0x12db2b(0x1da)]['OTHERS']]:{[ye]:{'order':0x4,'menuItemFactory':Ce},[be]:{'order':0x5,'menuItemFactory':we}}}};var at=_0x12db2b(0x2b1),ot=_0x12db2b(0x29f);const st={'id':_0x12db2b(0x1ae),'type':a[_0x12db2b(0x21d)][_0x12db2b(0x322)],'handler'(_0xf087,_0x8e16bf){const _0x51b8e1=_0x12db2b;return _0x8e16bf?(_0xf087[_0x51b8e1(0x3cb)](e[_0x51b8e1(0x511)])[_0x51b8e1(0x46d)](_0x8e16bf[_0x51b8e1(0x2d0)],{'hostType':a[_0x51b8e1(0x4c4)][_0x51b8e1(0x29c)],'shapeId':_0x8e16bf[_0x51b8e1(0x474)],'subUnitId':_0x8e16bf['subUnitId'],'unitId':_0x8e16bf[_0x51b8e1(0x315)]}),!0x0):!0x1;}},ct=_0x12db2b(0x1bb),lt={};let ut=class extends a[_0x12db2b(0x30e)]{constructor(_0xb0ab94,_0x2692ed,_0x14469c,_0x1d450a,_0x43f6e5){const _0x978c76=_0x12db2b;super(),this[_0x978c76(0x33f)]=_0xb0ab94,this['_drawingManagerService']=_0x2692ed,this[_0x978c76(0x401)]=_0x14469c,this[_0x978c76(0x486)]=_0x1d450a,this[_0x978c76(0x484)]=_0x43f6e5,E(this,_0x978c76(0x4c0),null),E(this,_0x978c76(0x4ae),null),E(this,'_subUnitId',null),E(this,'_activeAdjustPointList',void 0x0),E(this,'_shapes',[]),E(this,_0x978c76(0x439),0x0),E(this,_0x978c76(0x2ce),0x0),E(this,_0x978c76(0x287),0x0),E(this,_0x978c76(0x507),0x0),E(this,'_isStartAdjusting',!0x1),E(this,_0x978c76(0x1e6),void 0x0),E(this,_0x978c76(0x1f3),void 0x0),E(this,_0x978c76(0x4ed),void 0x0),E(this,_0x978c76(0x26d),void 0x0),E(this,_0x978c76(0x4e9),!0x1),this[_0x978c76(0x291)](),this[_0x978c76(0x1f1)]();}[_0x12db2b(0x318)](){this['_clearControls']();}['refreshAdjustControls'](){const _0x52e32b=_0x12db2b;this[_0x52e32b(0x283)](),this[_0x52e32b(0x2ba)](!0x0);}[_0x12db2b(0x29a)](_0x39bb5f,_0x1dd173,_0x38474f,_0x404c4d){const _0x5e1203=_0x12db2b;let _0x479b2a=_0x39bb5f;if(_0x479b2a!==n[_0x5e1203(0x378)][_0x5e1203(0x391)]&&_0x39bb5f!==_0x5e1203(0x266))try{let _0x244b9e=new n['ShapeModel'](_0x479b2a,_0x5e1203(0x2ca)+_0x39bb5f);return _0x404c4d&&_0x244b9e[_0x5e1203(0x3d2)]({'adjustValues':_0x404c4d},!0x0),_0x244b9e['updateContext']({'width':_0x1dd173,'height':_0x38474f}),_0x244b9e;}catch{return;}}['_getImageDrawingInfo'](_0x209033,_0x33d94d,_0x132648){const _0x400dfa=_0x12db2b;let _0x3a3781={'unitId':_0x209033,'subUnitId':_0x33d94d,'drawingId':_0x132648},_0x5c6959=this[_0x400dfa(0x324)][_0x400dfa(0x492)](_0x3a3781);if(_0x5c6959&&_0x5c6959['drawingType']===a['DrawingTypeEnum'][_0x400dfa(0x313)])return _0x5c6959;}[_0x12db2b(0x3d4)](_0x4e79b9,_0x3be2dc,_0x5e9d67){const _0x492b0b=_0x12db2b;let _0x45274f=this[_0x492b0b(0x401)][_0x492b0b(0x30d)](_0x4e79b9);if(!_0x45274f)return;let {scene:_0x259577}=_0x45274f,_0x25c055=(0x0,s[_0x492b0b(0x3d3)])({'unitId':_0x4e79b9,'subUnitId':_0x3be2dc,'drawingId':_0x5e9d67}),_0x27a90e=_0x259577[_0x492b0b(0x3df)](_0x25c055);if(_0x27a90e instanceof c[_0x492b0b(0x284)]){let _0x436248=_0x27a90e[_0x492b0b(0x394)];if(_0x436248)return{'prstGeom':_0x436248,'adjustValues':_0x27a90e[_0x492b0b(0x1ea)]};}}[_0x12db2b(0x2ba)](_0x343da7=!0x1){const _0x2e052d=_0x12db2b;if(!this[_0x2e052d(0x4ae)]||!this['_subUnitId']||!this['_activeImageId'])return;let _0x69528e=this[_0x2e052d(0x401)][_0x2e052d(0x30d)](this[_0x2e052d(0x4ae)]);if(!_0x69528e||!_0x69528e[_0x2e052d(0x203)](l['SheetSkeletonManagerService'])[_0x2e052d(0x4fa)]())return;let {scene:_0x3e3969}=_0x69528e,_0x30f5c6=this[_0x2e052d(0x285)](this[_0x2e052d(0x4ae)],this[_0x2e052d(0x460)],this['_activeImageId']);if(!_0x30f5c6)return;let {transform:_0x4a20fd}=_0x30f5c6;if(!_0x4a20fd)return;let {left:_0xc8d947,top:_0x5c68c1,width:_0x217bcc,height:_0x2b59f1,flipX:_0x5967f4,flipY:_0x394ced,angle:_0x375037=0x0}=_0x4a20fd;if(_0xc8d947===void 0x0||_0x5c68c1===void 0x0)return;let _0x48d6c8=this[_0x2e052d(0x3d4)](this[_0x2e052d(0x4ae)],this[_0x2e052d(0x460)],this[_0x2e052d(0x4c0)]);if(!_0x48d6c8)return;if(_0x343da7){let _0x2544e8=this[_0x2e052d(0x29a)](_0x48d6c8[_0x2e052d(0x394)],_0x217bcc||0x0,_0x2b59f1||0x0,_0x48d6c8[_0x2e052d(0x2ee)]);if(!_0x2544e8)return;this[_0x2e052d(0x366)]=_0x2544e8['getDrawingPoints']();}let _0x240ba6=this[_0x2e052d(0x366)];if(_0x240ba6&&_0x240ba6[_0x2e052d(0x2c6)]!==0x0)for(let _0x433101=0x0;_0x433101<_0x240ba6['length'];_0x433101++){let _0x2e139b=_0x240ba6[_0x433101],_0x417bf8=_0x2e139b['x'],_0x51368b=_0x2e139b['y'];if(_0x5967f4&&(_0x417bf8=(_0x217bcc||0x0)-_0x417bf8),_0x394ced&&(_0x51368b=(_0x2b59f1||0x0)-_0x51368b),_0x375037!==0x0){let _0x4525ca=(_0x217bcc||0x0)/0x2,_0x2a0e97=(_0x2b59f1||0x0)/0x2,_0x528da6=_0x375037*Math['PI']/0xb4,_0x2c077a=Math[_0x2e052d(0x282)](_0x528da6),_0x4e374b=Math[_0x2e052d(0x1ab)](_0x528da6),_0x143cb0=_0x417bf8-_0x4525ca,_0x3310fc=_0x51368b-_0x2a0e97;_0x417bf8=_0x4525ca+(_0x143cb0*_0x2c077a-_0x3310fc*_0x4e374b),_0x51368b=_0x2a0e97+(_0x143cb0*_0x4e374b+_0x3310fc*_0x2c077a);}let _0x1e1d31={'x':_0x417bf8,'y':_0x51368b,'adjName':_0x2e139b[_0x2e052d(0x367)]};this[_0x2e052d(0x477)](_0x3e3969,_0x1e1d31,_0x1e1d31[_0x2e052d(0x367)],_0xc8d947,_0x5c68c1,this[_0x2e052d(0x4ae)],this['_subUnitId']);}}['_addControl'](_0x1d2147,_0x5afc79,_0x1a96a3,_0x4a5ede,_0x418db8,_0x3f91bb,_0x440a6e){const _0x437558=_0x12db2b;if(!this[_0x437558(0x4c0)])return;let _0x39b3c7=_0x437558(0x389)+this['_activeImageId']+'-'+_0x1a96a3,_0x3194e0=_0x1d2147['getObjectIncludeInGroup'](_0x39b3c7);if(_0x3194e0){_0x3194e0['transformByState']({'left':_0x5afc79['x']+_0x4a5ede-n['ShapeDefaultConfig'][_0x437558(0x3a3)],'top':_0x5afc79['y']+_0x418db8-n[_0x437558(0x4c8)][_0x437558(0x3a3)]});return;}let _0x6ba5f=new O(_0x39b3c7,{'left':_0x5afc79['x']+_0x4a5ede-n[_0x437558(0x4c8)][_0x437558(0x3a3)],'top':_0x5afc79['y']+_0x418db8-n[_0x437558(0x4c8)][_0x437558(0x3a3)],'adjName':_0x1a96a3,'shapeId':this['_activeImageId'],'unitId':_0x3f91bb,'subUnitId':_0x440a6e,'width':n[_0x437558(0x4c8)][_0x437558(0x3a3)]+0x8,'height':n[_0x437558(0x4c8)][_0x437558(0x3a3)]+0x8,'zIndex':c[_0x437558(0x241)]+0x1,'evented':!0x0});this[_0x437558(0x462)]['push'](_0x6ba5f),this[_0x437558(0x24a)](_0x6ba5f,_0x1d2147,_0x1a96a3),_0x1d2147[_0x437558(0x374)](_0x6ba5f,c[_0x437558(0x241)]+0x1);}[_0x12db2b(0x283)](){const _0x1a9deb=_0x12db2b;this[_0x1a9deb(0x462)][_0x1a9deb(0x2c6)]!==0x0&&(this[_0x1a9deb(0x462)][_0x1a9deb(0x444)](_0x125b31=>_0x125b31['dispose']()),this[_0x1a9deb(0x462)]=[]);}[_0x12db2b(0x2ac)](_0x35ce24,_0x1038b9){const _0x2bd24b=_0x12db2b;var _0x541e75;let _0x285573={'x':0x0,'y':0x0},_0x182b06=this[_0x2bd24b(0x401)][_0x2bd24b(0x30d)](_0x35ce24);if(!_0x182b06||!_0x182b06[_0x2bd24b(0x203)](l[_0x2bd24b(0x265)])[_0x2bd24b(0x487)](_0x1038b9))return _0x285573;let _0xc602c6=_0x182b06[_0x2bd24b(0x203)](l[_0x2bd24b(0x223)]),_0x16a9a9=_0xc602c6==null?void 0x0:_0xc602c6[_0x2bd24b(0x491)]();if(!_0x16a9a9)return _0x285573;let _0x4ff964=(_0x541e75=this[_0x2bd24b(0x486)][_0x2bd24b(0x42a)](_0x35ce24))==null?void 0x0:_0x541e75[_0x2bd24b(0x3a5)](_0x1038b9);if(!_0x4ff964)return _0x285573;let _0x5cf625=(0x0,l[_0x2bd24b(0x3f4)])(_0x16a9a9['sheetViewStartRow'],_0x16a9a9[_0x2bd24b(0x3ca)],_0x182b06[_0x2bd24b(0x414)],_0x4ff964);return _0x5cf625?{'x':_0x5cf625['viewportScrollX'],'y':_0x5cf625[_0x2bd24b(0x404)]}:_0x285573;}[_0x12db2b(0x436)](_0x3026e2,_0x285ebf){const _0x4e861d=_0x12db2b;var _0x47a997;let _0x28226e=(_0x47a997=this[_0x4e861d(0x486)][_0x4e861d(0x42a)](_0x3026e2))==null?void 0x0:_0x47a997['getSheetBySheetId'](_0x285ebf);return(_0x28226e==null?void 0x0:_0x28226e[_0x4e861d(0x3c2)]())??0x1;}[_0x12db2b(0x24a)](_0x2ee88f,_0x2d0045,_0x463011){const _0x48115a=_0x12db2b;this[_0x48115a(0x22a)]((0x0,a[_0x48115a(0x21b)])(_0x2ee88f['onPointerDown$']['subscribeEvent']((_0x155072,_0x55cab0)=>{const _0x599119=_0x48115a;var _0x5e528b,_0x4cd7d6,_0x58aa37;let {unitId:_0xba8560,subUnitId:_0x1434ba,drawingId:_0x1177ab}=_0x2ee88f[_0x599119(0x512)](),_0x245dcd=this['_getImageDrawingInfo'](_0xba8560,_0x1434ba,_0x1177ab);if(!(_0x245dcd!=null&&_0x245dcd[_0x599119(0x1f9)]))return;let {left:_0x2310dd,top:_0x48c39a,width:_0x490ecc,height:_0x3bc6d2}=_0x245dcd['transform'];this[_0x599119(0x439)]=_0x2310dd||0x0,this[_0x599119(0x2ce)]=_0x48c39a||0x0,this[_0x599119(0x287)]=_0x490ecc||0x0,this[_0x599119(0x507)]=_0x3bc6d2||0x0;let _0x1b8f19=!!((_0x5e528b=_0x245dcd[_0x599119(0x1f9)])!=null&&_0x5e528b['flipX']),_0x4e5b36=!!((_0x4cd7d6=_0x245dcd['transform'])!=null&&_0x4cd7d6[_0x599119(0x233)]),_0x11046c=((_0x58aa37=_0x245dcd[_0x599119(0x1f9)])==null?void 0x0:_0x58aa37['angle'])||0x0,_0xbc525e=this[_0x599119(0x3d4)](_0xba8560,_0x1434ba,_0x1177ab);if(!_0xbc525e)return;let _0x56981e=this['_getOrCreateShapeModel'](_0xbc525e[_0x599119(0x394)],this[_0x599119(0x287)],this[_0x599119(0x507)],_0xbc525e[_0x599119(0x2ee)]);if(!_0x56981e||(this[_0x599119(0x1f3)]=_0x56981e,this[_0x599119(0x1e6)]=_0x56981e[_0x599119(0x51a)](_0x463011),!this[_0x599119(0x1e6)]))return;this[_0x599119(0x44d)]=!0x0,_0x2d0045[_0x599119(0x430)]();let _0x23c580=_0xbc525e[_0x599119(0x394)];this[_0x599119(0x4ed)]=_0x2d0045['onPointerMove$']['subscribeEvent']((_0x5b2cf3,_0x5654f8)=>{const _0x4f56ae=_0x599119;if(!this[_0x4f56ae(0x44d)])return;let {offsetX:_0x469f43,offsetY:_0x1b7bd3}=_0x5b2cf3,_0x87b30a=this[_0x4f56ae(0x1e6)];if(!this['_activeShapeModel']||!_0x87b30a)return;_0x2d0045[_0x4f56ae(0x430)](),_0x2d0045[_0x4f56ae(0x2bf)](c[_0x4f56ae(0x35f)][_0x4f56ae(0x1d1)]);let _0x1d013e={'left':0x0,'top':0x0,'width':this[_0x4f56ae(0x287)],'height':this['_baseHeight']},_0x2c93bb=this[_0x4f56ae(0x2ac)](_0xba8560,_0x1434ba),_0x333998=this[_0x4f56ae(0x436)](_0xba8560,_0x1434ba),_0x16d678=_0x469f43/_0x333998+_0x2c93bb['x']-this[_0x4f56ae(0x439)],_0x24da86=_0x1b7bd3/_0x333998+_0x2c93bb['y']-this[_0x4f56ae(0x2ce)];if(_0x11046c!==0x0){let _0x2bf44a=this[_0x4f56ae(0x287)]/0x2,_0x22e531=this['_baseHeight']/0x2,_0x398b23=_0x11046c*Math['PI']/0xb4,_0x38bd0f=Math[_0x4f56ae(0x282)](_0x398b23),_0x1fe8bc=Math['sin'](_0x398b23),_0x5f232a=_0x16d678-_0x2bf44a,_0x4b9a12=_0x24da86-_0x22e531;_0x16d678=_0x2bf44a+(_0x5f232a*_0x38bd0f+_0x4b9a12*_0x1fe8bc),_0x24da86=_0x22e531+(-_0x5f232a*_0x1fe8bc+_0x4b9a12*_0x38bd0f);}_0x1b8f19&&(_0x16d678=this[_0x4f56ae(0x287)]-_0x16d678),_0x4e5b36&&(_0x24da86=this['_baseHeight']-_0x24da86);let _0x2f6765=this[_0x4f56ae(0x1f3)]['calcAdjValues'](_0x1d013e,{'x':_0x16d678,'y':_0x24da86},_0x87b30a,_0x1b8f19,_0x4e5b36);if(Object[_0x4f56ae(0x43f)](_0x2f6765)['length']!==0x0){for(let [_0x213ec5,_0x87ab33]of Object['entries'](_0x2f6765))this['_activeShapeModel'][_0x4f56ae(0x4b1)](_0x213ec5,_0x87ab33);this[_0x4f56ae(0x1f3)][_0x4f56ae(0x33b)]({'width':this[_0x4f56ae(0x287)],'height':this[_0x4f56ae(0x507)]}),this[_0x4f56ae(0x248)](_0xba8560,_0x1434ba,_0x1177ab,_0x2f6765),this['_activeAdjustPointList']=this['_activeShapeModel'][_0x4f56ae(0x2aa)](),this[_0x4f56ae(0x2ba)](),_0x5654f8[_0x4f56ae(0x35a)]();}}),this[_0x599119(0x26d)]=_0x2d0045[_0x599119(0x1f6)][_0x599119(0x496)]((_0x2fe9a6,_0x3d28a6)=>{const _0x8d228=_0x599119;if(this[_0x8d228(0x4ed)][_0x8d228(0x4ef)](),this[_0x8d228(0x26d)][_0x8d228(0x4ef)](),_0x2d0045['resetCursor'](),this['_activeShapeModel']){let _0x327d39=this['_activeShapeModel'][_0x8d228(0x465)](),_0x5835bd={};for(let _0x3b57d4 of _0x327d39){let _0x5373a2=this[_0x8d228(0x1f3)][_0x8d228(0x37c)](_0x3b57d4);_0x5373a2!==void 0x0&&(_0x5835bd[_0x3b57d4]=_0x5373a2);}this[_0x8d228(0x484)]['clipByShape'](_0xba8560,_0x1434ba,_0x1177ab,_0x23c580,_0x5835bd);}this[_0x8d228(0x1e6)]=void 0x0,this[_0x8d228(0x1f3)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x3d28a6[_0x8d228(0x35a)](),_0x2d0045[_0x8d228(0x1aa)]();}),_0x55cab0[_0x599119(0x35a)]();})));}[_0x12db2b(0x248)](_0x3dec39,_0x4ba6b4,_0x3810af,_0x4d7139){const _0x576137=_0x12db2b;let _0x3a8e0a=this[_0x576137(0x401)]['getRenderUnitById'](_0x3dec39);if(!_0x3a8e0a)return;let {scene:_0x32c57a}=_0x3a8e0a,_0x64e56b=(0x0,s[_0x576137(0x3d3)])({'unitId':_0x3dec39,'subUnitId':_0x4ba6b4,'drawingId':_0x3810af}),_0x27c24b=_0x32c57a[_0x576137(0x3df)](_0x64e56b);if(_0x27c24b instanceof c[_0x576137(0x284)]){let _0x38072d=_0x27c24b['prstGeomAdjValues']??{};_0x27c24b['setPrstGeomAdjValues']({..._0x38072d,..._0x4d7139}),_0x27c24b['makeDirty'](!0x0);}}['_registerMoveHandler'](){const _0x4c1d41=_0x12db2b;let _0x3601be=this['_univerInstanceService'][_0x4c1d41(0x4d4)](a[_0x4c1d41(0x4c4)]['UNIVER_SHEET']);this[_0x4c1d41(0x22a)](_0x3601be[_0x4c1d41(0x49a)]((0x0,u[_0x4c1d41(0x26b)])(_0x3f0445=>_0x3f0445?_0x3f0445[_0x4c1d41(0x448)]['pipe']((0x0,u['switchMap'])(_0x4954a7=>{const _0x16b96e=_0x4c1d41;if(!_0x4954a7)return u[_0x16b96e(0x399)];let _0xfee82a=_0x3f0445['getUnitId'](),_0x4efce3=this[_0x16b96e(0x401)]['getRenderUnitById'](_0xfee82a),_0x41f320=_0x4efce3==null?void 0x0:_0x4efce3[_0x16b96e(0x414)];return _0x41f320?(0x0,u['of'])(_0x41f320):u[_0x16b96e(0x399)];})):u['EMPTY']))[_0x4c1d41(0x417)](_0x566916=>{const _0x20535a=_0x4c1d41;let _0x52ba92=_0x566916[_0x20535a(0x198)]();this[_0x20535a(0x22a)](_0x566916['onPointerMove$']['subscribeEvent'](()=>{const _0x2f2133=_0x20535a;this['_isImagePointerDown']&&this[_0x2f2133(0x283)]();})),this[_0x20535a(0x22a)](_0x52ba92[_0x20535a(0x34e)][_0x20535a(0x417)](_0x215cb1=>{const _0xcda3c2=_0x20535a;let {objects:_0x8bf832}=_0x215cb1;if(this[_0xcda3c2(0x2ba)](),_0x8bf832!==null&&_0x8bf832[_0xcda3c2(0x1f5)]===0x1){let _0x168718=_0x8bf832[_0xcda3c2(0x1d8)]()[_0xcda3c2(0x247)]()['value'];_0x168718 instanceof c[_0xcda3c2(0x284)]&&_0x168718[_0xcda3c2(0x394)]&&(this[_0xcda3c2(0x4e9)]=!0x0);}})),this[_0x20535a(0x22a)](_0x52ba92[_0x20535a(0x38a)][_0x20535a(0x417)](()=>{const _0x308a59=_0x20535a;this[_0x308a59(0x4e9)]&&this[_0x308a59(0x283)]();})),this[_0x20535a(0x22a)](_0x566916['onPointerUp$'][_0x20535a(0x496)](()=>{const _0xdbffa0=_0x20535a;this[_0xdbffa0(0x4e9)]&&(this['_isImagePointerDown']=!0x1,this[_0xdbffa0(0x2ba)]());})),this[_0x20535a(0x22a)](_0x52ba92['changeEnd$']['subscribe'](()=>{const _0x4eaac1=_0x20535a;if(this[_0x4eaac1(0x4ae)]&&this[_0x4eaac1(0x460)]&&this[_0x4eaac1(0x4c0)]){let _0x3432d7=this[_0x4eaac1(0x3d4)](this[_0x4eaac1(0x4ae)],this[_0x4eaac1(0x460)],this[_0x4eaac1(0x4c0)]);if(_0x3432d7){var _0x4a1a00,_0x95f090;let _0x52ea1e=this[_0x4eaac1(0x285)](this[_0x4eaac1(0x4ae)],this[_0x4eaac1(0x460)],this['_activeImageId']),_0x3037c0=(_0x52ea1e==null||(_0x4a1a00=_0x52ea1e[_0x4eaac1(0x1f9)])==null?void 0x0:_0x4a1a00[_0x4eaac1(0x1c0)])||0x0,_0x305c30=(_0x52ea1e==null||(_0x95f090=_0x52ea1e[_0x4eaac1(0x1f9)])==null?void 0x0:_0x95f090[_0x4eaac1(0x4b9)])||0x0,_0x114e52=this[_0x4eaac1(0x29a)](_0x3432d7['prstGeom'],_0x3037c0,_0x305c30,_0x3432d7[_0x4eaac1(0x2ee)]);_0x114e52&&(this[_0x4eaac1(0x366)]=_0x114e52[_0x4eaac1(0x2aa)](),this['_clearControls'](),this['_createControls'](!0x0));}}}));}));}[_0x12db2b(0x291)](){const _0x43d5e8=_0x12db2b;this['disposeWithMe'](this['_drawingManagerService'][_0x43d5e8(0x344)][_0x43d5e8(0x417)](_0x4472b7=>{const _0x5e523c=_0x43d5e8;if(_0x4472b7[_0x5e523c(0x2c6)]===0x1){let _0x498ed6=_0x4472b7[0x0];if(_0x498ed6[_0x5e523c(0x2f3)]===a['DrawingTypeEnum'][_0x5e523c(0x313)]){let {unitId:_0xd3ddfd,subUnitId:_0x9c67df,drawingId:_0x5b7916}=_0x498ed6,_0x1b95a0=this[_0x5e523c(0x3d4)](_0xd3ddfd,_0x9c67df,_0x5b7916);if(_0x1b95a0){var _0x171630,_0x177215;this['_activeImageId']=_0x5b7916,this['_unitId']=_0xd3ddfd,this['_subUnitId']=_0x9c67df;let _0x16103d=this[_0x5e523c(0x285)](_0xd3ddfd,_0x9c67df,_0x5b7916),_0x4f6442=(_0x16103d==null||(_0x171630=_0x16103d[_0x5e523c(0x1f9)])==null?void 0x0:_0x171630[_0x5e523c(0x1c0)])||0x0,_0x3e818a=(_0x16103d==null||(_0x177215=_0x16103d['transform'])==null?void 0x0:_0x177215['height'])||0x0,_0x294870=this[_0x5e523c(0x29a)](_0x1b95a0[_0x5e523c(0x394)],_0x4f6442,_0x3e818a,_0x1b95a0[_0x5e523c(0x2ee)]);_0x294870&&(this[_0x5e523c(0x366)]=_0x294870[_0x5e523c(0x2aa)]()),this['_clearControls'](),this[_0x5e523c(0x2ba)](!0x0);}else this[_0x5e523c(0x3aa)]();}else this['_resetState']();}else this[_0x5e523c(0x3aa)]();})),this[_0x43d5e8(0x22a)](this[_0x43d5e8(0x324)][_0x43d5e8(0x23c)][_0x43d5e8(0x417)](_0x28a2af=>{const _0x4be31f=_0x43d5e8;if(_0x28a2af['length']===0x1){let _0x3af926=_0x28a2af[0x0],_0x59cd9a=this['_drawingManagerService'][_0x4be31f(0x492)](_0x3af926);(_0x59cd9a==null?void 0x0:_0x59cd9a[_0x4be31f(0x2f3)])===a['DrawingTypeEnum'][_0x4be31f(0x313)]&&this[_0x4be31f(0x4c0)]===_0x3af926[_0x4be31f(0x474)]&&(this[_0x4be31f(0x283)](),this[_0x4be31f(0x2ba)](!0x0));}})),this[_0x43d5e8(0x22a)](this[_0x43d5e8(0x324)]['remove$']['subscribe'](_0x299eb5=>{const _0x2cd550=_0x43d5e8;for(let _0x418d54 of _0x299eb5)this[_0x2cd550(0x4c0)]===_0x418d54['drawingId']&&this[_0x2cd550(0x3aa)]();}));}['_resetState'](){const _0x121cf7=_0x12db2b;this['_activeImageId']=null,this[_0x121cf7(0x4ae)]=null,this[_0x121cf7(0x460)]=null,this[_0x121cf7(0x366)]=void 0x0,this[_0x121cf7(0x283)]();}};ut=A([k(0x1,s[_0x12db2b(0x421)]),k(0x2,(0x0,a[_0x12db2b(0x25a)])(c[_0x12db2b(0x508)])),k(0x3,a['IUniverInstanceService']),k(0x4,(0x0,a[_0x12db2b(0x25a)])(B))],ut);function dt(_0x5c14bc){const _0x4aa1d6=_0x12db2b;return _0x5c14bc[_0x4aa1d6(0x273)]()||void 0x0;}function ft(_0x1b9182,_0x3c72f3,_0x13ae0c){const _0x50a2e1=_0x12db2b;var _0x1d6932;return((_0x1d6932=_0x1b9182[_0x50a2e1(0x1a3)])==null?void 0x0:_0x1d6932[_0x50a2e1(0x273)]())||_0x13ae0c['t']('drawing-ui.objectListPanel.typeNames.'+(0x0,e[_0x50a2e1(0x4cd)])(_0x1b9182[_0x50a2e1(0x2f3)]))+'\x20'+(_0x3c72f3+0x1);}function pt({PanelComponent:_0x121458=d[_0x12db2b(0x231)]}){const _0x6badca=_0x12db2b;var _0x12d3cd;let _0x57223d=(0x0,t[_0x6badca(0x350)])(a['LocaleService']),_0x3208b4={'title':_0x57223d['t'](_0x6badca(0x1dc)),'empty':_0x57223d['t'](_0x6badca(0x466)),'showAll':_0x57223d['t'](_0x6badca(0x2fc)),'hideAll':_0x57223d['t']('drawing-ui.objectListPanel.hideAll'),'lockAll':_0x57223d['t'](_0x6badca(0x232)),'unlockAll':_0x57223d['t'](_0x6badca(0x4f5)),'moveForward':_0x57223d['t'](_0x6badca(0x3e1)),'moveBackward':_0x57223d['t'](_0x6badca(0x330)),'close':_0x57223d['t']('drawing-ui.objectListPanel.close'),'show':_0x57223d['t'](_0x6badca(0x22c)),'hide':_0x57223d['t'](_0x6badca(0x4e6)),'lock':_0x57223d['t'](_0x6badca(0x305)),'unlock':_0x57223d['t'](_0x6badca(0x1b3)),'lockHint':_0x57223d['t'](_0x6badca(0x39c)),'unlockHint':_0x57223d['t'](_0x6badca(0x3a2)),'name':_0x57223d['t'](_0x6badca(0x19e)),'nameInput':_0x57223d['t'](_0x6badca(0x236)),'description':_0x57223d['t'](_0x6badca(0x380)),'descriptionPlaceholder':_0x57223d['t'](_0x6badca(0x3d6)),'details':_0x57223d['t'](_0x6badca(0x250)),'noSelection':_0x57223d['t'](_0x6badca(0x47c)),'locate':_0x57223d['t'](_0x6badca(0x45e)),'expand':_0x57223d['t']('drawing-ui.objectListPanel.expand'),'collapse':_0x57223d['t'](_0x6badca(0x2d7)),'dragToReorder':_0x57223d['t'](_0x6badca(0x2cb)),'search':_0x57223d['t']('drawing-ui.objectListPanel.search'),'filterAll':_0x57223d['t'](_0x6badca(0x3f1)),'filterHidden':_0x57223d['t'](_0x6badca(0x32a)),'filterLocked':_0x57223d['t']('drawing-ui.objectListPanel.filterLocked'),'sectionCanvas':_0x57223d['t'](_0x6badca(0x1fd)),'sectionFloating':_0x57223d['t'](_0x6badca(0x4b0))},_0x475e52=(0x0,t[_0x6badca(0x350)])(a['ICommandService']),_0x187502=(0x0,t[_0x6badca(0x350)])(a[_0x6badca(0x202)]),_0x142742=(0x0,t[_0x6badca(0x350)])(m['ISheetDrawingService']),_0x31fbab=(0x0,t['useDependency'])(s[_0x6badca(0x421)]),_0x282d0a=(0x0,t['useDependency'])(c['IRenderManagerService']),[,_0x4cbc98]=(0x0,b[_0x6badca(0x2c1)])(_0xfe365a=>_0xfe365a+0x1,0x0),_0x143e74=_0x187502[_0x6badca(0x409)](a[_0x6badca(0x4c4)][_0x6badca(0x29c)]),_0x303154=(_0x143e74==null?void 0x0:_0x143e74[_0x6badca(0x450)]())??'',_0x568d7d=(_0x143e74==null||(_0x12d3cd=_0x143e74[_0x6badca(0x506)]())==null?void 0x0:_0x12d3cd[_0x6badca(0x196)]())??'',_0x4dce4c=(0x0,t[_0x6badca(0x452)])(()=>_0x31fbab[_0x6badca(0x344)],_0x31fbab[_0x6badca(0x1fa)](),!0x1,[_0x31fbab]);(0x0,b[_0x6badca(0x28b)])(()=>{const _0x2e140a=_0x6badca;let _0x3492a4=_0x475e52[_0x2e140a(0x3e5)](()=>_0x4cbc98());return()=>_0x3492a4['dispose']();},[_0x475e52]);let _0x355e8b=_0x303154&&_0x568d7d?_0x142742['getDrawingData'](_0x303154,_0x568d7d):{},_0xbe927e=(_0x303154&&_0x568d7d?_0x142742[_0x6badca(0x47e)](_0x303154,_0x568d7d):[])['map'](_0x3ae915=>_0x355e8b[_0x3ae915])[_0x6badca(0x27f)](_0x2fc69c=>!!_0x2fc69c)[_0x6badca(0x418)](),_0x2c07eb=_0xbe927e[_0x6badca(0x2fa)]((_0x5a9d77,_0x3c5924)=>(_0x5a9d77[(0x0,d[_0x6badca(0x316)])(_0x3c5924[_0x6badca(0x2f3)])]+=0x1,_0x5a9d77),{'canvas':0x0,'floating':0x0}),_0x1de35d={'canvas':0x0,'floating':0x0},_0x49ed67=_0xbe927e[_0x6badca(0x2f4)]((_0xf628e3,_0x49549d)=>{const _0x192cd5=_0x6badca;let _0x80423d=(0x0,d[_0x192cd5(0x316)])(_0xf628e3['drawingType']),_0x45dcd1=_0x80423d===d[_0x192cd5(0x4bc)],_0x126e9d=_0x1de35d[_0x80423d]++;return{'id':_0xf628e3[_0x192cd5(0x474)],'name':ft(_0xf628e3,_0x49549d,_0x57223d),'description':_0xf628e3['description'],'visible':_0xf628e3['hidden']!==!0x0,'selectable':_0xf628e3[_0x192cd5(0x402)]!==!0x1,'sectionId':_0x80423d,'sectionTitle':_0x45dcd1?_0x3208b4[_0x192cd5(0x267)]:_0x3208b4[_0x192cd5(0x4b7)],'capabilities':_0x45dcd1?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x45dcd1&&_0x126e9d>0x0,'canMoveBackward':!_0x45dcd1&&_0x126e9d<_0x2c07eb[_0x192cd5(0x298)]-0x1,'canReorder':!_0x45dcd1};}),_0x417914=(0x0,b['useMemo'])(()=>(_0x4dce4c??[])[_0x6badca(0x27f)](_0x1f39f2=>_0x1f39f2[_0x6badca(0x315)]===_0x303154&&_0x1f39f2[_0x6badca(0x19f)]===_0x568d7d)[_0x6badca(0x2f4)](_0x2125f3=>_0x2125f3[_0x6badca(0x474)]),[_0x4dce4c,_0x568d7d,_0x303154]),_0x10686d=_0x417914[_0x417914['length']-0x1]??null,_0x468b35=_0x30c4a6=>_0x142742[_0x6badca(0x492)]({'unitId':_0x303154,'subUnitId':_0x568d7d,'drawingId':_0x30c4a6})??null,_0x5100a2=async _0x3cdafe=>{const _0x52c8dd=_0x6badca;_0x303154&&_0x3cdafe['length']&&await _0x475e52[_0x52c8dd(0x461)](m[_0x52c8dd(0x288)]['id'],{'unitId':_0x303154,'drawings':_0x3cdafe});},_0x504900=async(_0x4fa854,_0x7afba8)=>{_0x468b35(_0x4fa854)&&await _0x5100a2([{'unitId':_0x303154,'subUnitId':_0x568d7d,'drawingId':_0x4fa854,..._0x7afba8}]);},_0x2e02a0=(_0xd244cc,_0x37eb94)=>{const _0x4da85c=_0x6badca;if(!_0x303154||!_0x568d7d)return;let _0x3c4a43=_0x37eb94?_0x417914[_0x4da85c(0x44a)](_0xd244cc)?_0x417914[_0x4da85c(0x27f)](_0x3fb6e4=>_0x3fb6e4!==_0xd244cc):[..._0x417914,_0xd244cc]:[_0xd244cc];_0x475e52[_0x4da85c(0x20e)](s[_0x4da85c(0x3a9)]['id'],_0x3c4a43['map'](_0x242a8c=>({'unitId':_0x303154,'subUnitId':_0x568d7d,'drawingId':_0x242a8c})));let _0x360d5c=_0x3c4a43[_0x3c4a43['length']-0x1];_0x360d5c?(0x0,e[_0x4da85c(0x2e9)])(_0x282d0a,{'unitId':_0x303154,'subUnitId':_0x568d7d,'drawingId':_0x360d5c}):(0x0,e[_0x4da85c(0x3c4)])(_0x282d0a,_0x303154);},_0x2be022=async(_0xd24cbf,_0x152d17)=>{const _0x19422b=_0x6badca;await _0x5100a2(_0xd24cbf['map'](_0x49f6c6=>_0x468b35(_0x49f6c6))['filter'](_0x2812d4=>!!_0x2812d4)[_0x19422b(0x27f)](_0x3844de=>_0x3844de[_0x19422b(0x4da)]!==!0x0!==_0x152d17)[_0x19422b(0x2f4)](_0x5a3357=>({'unitId':_0x303154,'subUnitId':_0x568d7d,'drawingId':_0x5a3357[_0x19422b(0x474)],'hidden':!_0x152d17})));},_0x440497=async(_0x44b8f9,_0x5e3ded)=>{const _0x5cf5e8=_0x6badca;await _0x5100a2(_0x44b8f9[_0x5cf5e8(0x2f4)](_0xd0f8=>_0x468b35(_0xd0f8))[_0x5cf5e8(0x27f)](_0x320b7a=>!!_0x320b7a)[_0x5cf5e8(0x27f)](_0x3b81f0=>_0x3b81f0[_0x5cf5e8(0x402)]!==!0x1!==_0x5e3ded)[_0x5cf5e8(0x2f4)](_0x4ab033=>({'unitId':_0x303154,'subUnitId':_0x568d7d,'drawingId':_0x4ab033[_0x5cf5e8(0x474)],'selectable':_0x5e3ded})));},_0x549f6f=_0x41449b=>{const _0x55588e=_0x6badca;let _0x3c8421=_0x468b35(_0x41449b);if(_0x3c8421)return _0x440497([_0x41449b],_0x3c8421[_0x55588e(0x402)]===!0x1);},_0x290651=async(_0x317d13,_0x1b1e2e)=>{const _0x1009eb=_0x6badca;var _0x36185c;let _0x234fe6=dt(_0x1b1e2e);(((_0x36185c=_0x468b35(_0x317d13))==null?void 0x0:_0x36185c[_0x1009eb(0x1a3)])??void 0x0)!==_0x234fe6&&await _0x504900(_0x317d13,{'name':_0x234fe6});},_0x32f475=async(_0x4bf58f,_0x5b54ce)=>{const _0x15f838=_0x6badca;var _0x312fa6;let _0x2629b9=dt(_0x5b54ce);(((_0x312fa6=_0x468b35(_0x4bf58f))==null?void 0x0:_0x312fa6[_0x15f838(0x4dc)])??void 0x0)!==_0x2629b9&&await _0x504900(_0x4bf58f,{'description':_0x2629b9});},_0x3e3aaa=async(_0x4ded65,_0x23136a)=>{const _0x5b5ef3=_0x6badca;_0x303154&&_0x568d7d&&await _0x475e52['executeCommand'](m[_0x5b5ef3(0x43b)]['id'],{'unitId':_0x303154,'subUnitId':_0x568d7d,'drawingIds':[_0x4ded65],'arrangeType':_0x23136a});};return!_0x303154||!_0x568d7d?(0x0,p[_0x6badca(0x3fc)])(_0x6badca(0x34c),{'className':_0x6badca(0x257),'children':_0x3208b4[_0x6badca(0x323)]}):(0x0,p[_0x6badca(0x3fc)])(_0x121458,{'labels':_0x3208b4,'items':_0x49ed67,'selectedIds':_0x417914,'focusedId':_0x10686d,'showHeader':!0x1,'onSelect':_0x2e02a0,'onSetVisible':_0x2be022,'onSetSelectable':_0x440497,'onCommitName':_0x290651,'onCommitDescription':_0x32f475,'onMoveForward':async _0x1da9ec=>_0x3e3aaa(_0x1da9ec,a[_0x6badca(0x2a2)][_0x6badca(0x2c2)]),'onMoveBackward':async _0x440f47=>_0x3e3aaa(_0x440f47,a['ArrangeTypeEnum'][_0x6badca(0x27b)]),'onToggleSelectable':_0x549f6f});}function mt(){const _0x3680e4=_0x12db2b;return(0x0,p[_0x3680e4(0x3fc)])(pt,{'PanelComponent':d[_0x3680e4(0x27a)]});}let ht=class extends a['Disposable']{constructor(_0x2f0d05,_0x107e22){const _0x28bc22=_0x12db2b;super(),this[_0x28bc22(0x22a)](_0x2f0d05['register'](I,mt)),this['disposeWithMe'](_0x107e22[_0x28bc22(0x24b)]({'BottomIcon':y[_0x28bc22(0x405)],'FlipHorizontalIcon':y[_0x28bc22(0x33d)],'FlipVerticalIcon':y['FlipVerticalIcon'],'MoveDownIcon':y[_0x28bc22(0x197)],'MoveUpIcon':y[_0x28bc22(0x470)],'ObjectLayersIcon':y['ObjectLayersIcon'],'ShapeFormatSettingIcon':y[_0x28bc22(0x1d9)],'TopmostIcon':y[_0x28bc22(0x346)]})),this[_0x28bc22(0x22a)](_0x2f0d05['register'](le,ge)),this[_0x28bc22(0x22a)](_0x2f0d05[_0x28bc22(0x24b)](ue,pe)),_0x2f0d05[_0x28bc22(0x3cb)](d[_0x28bc22(0x2cd)])||this['disposeWithMe'](_0x2f0d05[_0x28bc22(0x24b)](d[_0x28bc22(0x2cd)],me));}};ht=A([k(0x0,(0x0,a[_0x12db2b(0x25a)])(t[_0x12db2b(0x3f9)])),k(0x1,(0x0,a[_0x12db2b(0x25a)])(t[_0x12db2b(0x3a7)]))],ht);let H=class extends a[_0x12db2b(0x30e)]{constructor(_0x2265f6){const _0x5e5aa6=_0x12db2b;super(),this[_0x5e5aa6(0x488)]=_0x2265f6,E(this,'_editingParams$',new u[(_0x5e5aa6(0x25e))](null)),E(this,'editingParams$',this[_0x5e5aa6(0x2d2)][_0x5e5aa6(0x2e6)]()),E(this,_0x5e5aa6(0x51f),new u[(_0x5e5aa6(0x25e))](!0x1)),E(this,_0x5e5aa6(0x26e),this[_0x5e5aa6(0x51f)]['asObservable']()),E(this,_0x5e5aa6(0x210),void 0x0),this['disposeWithMe'](this[_0x5e5aa6(0x488)]['permissionPointUpdate$'][_0x5e5aa6(0x417)](()=>{const _0x3ea4f3=_0x5e5aa6;let _0x2d9d90=this['getEditing']();_0x2d9d90!=null&&_0x2d9d90['visible']&&!this[_0x3ea4f3(0x2f0)](_0x2d9d90)&&this[_0x3ea4f3(0x215)](null);}));}[_0x12db2b(0x1e8)](){const _0x5a3647=_0x12db2b;this[_0x5a3647(0x479)](),this[_0x5a3647(0x2d2)][_0x5a3647(0x247)](null),this['_editingParams$'][_0x5a3647(0x47b)](),this[_0x5a3647(0x51f)][_0x5a3647(0x247)](!0x1),this['_onSavingEditorData$'][_0x5a3647(0x47b)](),super[_0x5a3647(0x1e8)]();}[_0x12db2b(0x215)](_0x3e6497){const _0xcbe2a3=_0x12db2b;(_0x3e6497==null||!_0x3e6497[_0xcbe2a3(0x25b)]||this['_canEdit'](_0x3e6497))&&(this[_0xcbe2a3(0x479)](),this[_0xcbe2a3(0x2d2)]['next'](_0x3e6497),(_0x3e6497==null||_0x3e6497[_0xcbe2a3(0x25b)]&&this[_0xcbe2a3(0x51f)][_0xcbe2a3(0x31f)]())&&this[_0xcbe2a3(0x51f)]['next'](!0x1));}[_0x12db2b(0x3b2)](_0x22c9ce){const _0x494069=_0x12db2b;this[_0x494069(0x51f)][_0x494069(0x247)](_0x22c9ce);}[_0x12db2b(0x4fe)](){const _0x327659=_0x12db2b;return this['_editingParams$'][_0x327659(0x31f)]();}[_0x12db2b(0x2f0)](_0x34af64){const _0x4e24f4=_0x12db2b;let _0x4ed482=this['_permissionService'][_0x4e24f4(0x1e2)](new o[(_0x4e24f4(0x364))](_0x34af64[_0x4e24f4(0x315)])['id']),_0x498f84=this[_0x4e24f4(0x488)][_0x4e24f4(0x1e2)](new o[(_0x4e24f4(0x24f))](_0x34af64['unitId'],_0x34af64[_0x4e24f4(0x19f)])['id']);return((_0x4ed482==null?void 0x0:_0x4ed482[_0x4e24f4(0x3fe)])??!0x0)&&((_0x498f84==null?void 0x0:_0x498f84[_0x4e24f4(0x3fe)])??!0x0);}[_0x12db2b(0x319)](_0x1666e4){const _0x5dd59d=_0x12db2b;let _0x330ac7=this[_0x5dd59d(0x4fe)]();_0x330ac7&&this[_0x5dd59d(0x210)]===void 0x0&&(this[_0x5dd59d(0x3b2)](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x5a3cf9=_0x5dd59d;this['_completionFrame']=void 0x0,this[_0x5a3cf9(0x4fe)]()===_0x330ac7&&this[_0x5a3cf9(0x215)](null);}));}['_clearCompletionFrame'](){const _0x2e9529=_0x12db2b;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this[_0x2e9529(0x210)]),this[_0x2e9529(0x210)]=void 0x0);}[_0x12db2b(0x276)](){const _0x603468=_0x12db2b;this[_0x603468(0x4fe)]()&&this[_0x603468(0x215)](null);}};H=A([k(0x0,a['IPermissionService'])],H);let gt=class extends a[_0x12db2b(0x30e)]{constructor(_0x34da28,_0x59ea35,_0xfae0ad,_0x962001,_0x449f6a,_0x2fc8e8){const _0x1e7827=_0x12db2b;super(),this[_0x1e7827(0x33f)]=_0x34da28,this[_0x1e7827(0x424)]=_0x59ea35,this[_0x1e7827(0x4a6)]=_0xfae0ad,this[_0x1e7827(0x324)]=_0x962001,this['_contextService']=_0x449f6a,this['_sheetsShapeService']=_0x2fc8e8,E(this,_0x1e7827(0x397),null),this['_initEvents'](),this[_0x1e7827(0x3d1)](),this[_0x1e7827(0x35c)]();}[_0x12db2b(0x268)](){const _0x8a8931=_0x12db2b;let {scene:_0x554087}=this[_0x8a8931(0x33f)];this[_0x8a8931(0x22a)](_0x554087[_0x8a8931(0x494)][_0x8a8931(0x496)](_0x19e1f5=>{const _0x33e3f0=_0x8a8931;let {offsetX:_0x1ab689,offsetY:_0x22e854}=_0x19e1f5,_0x21162f=_0x554087[_0x33e3f0(0x472)](c[_0x33e3f0(0x194)][_0x33e3f0(0x1b8)]([_0x1ab689,_0x22e854]));if(_0x21162f instanceof D){let _0x40f382=this[_0x33e3f0(0x290)][_0x33e3f0(0x435)](_0x21162f[_0x33e3f0(0x315)],_0x21162f['subUnitId'],_0x21162f[_0x33e3f0(0x502)]);if((0x0,n[_0x33e3f0(0x4c9)])(this[_0x33e3f0(0x290)][_0x33e3f0(0x517)](_0x21162f[_0x33e3f0(0x315)],_0x21162f[_0x33e3f0(0x19f)],_0x21162f[_0x33e3f0(0x502)]))||_0x40f382!=null&&_0x40f382['getShapeData']()['formulaBinding'])return;this[_0x33e3f0(0x4a6)][_0x33e3f0(0x215)]({'visible':!0x0,'unitId':_0x21162f[_0x33e3f0(0x315)],'subUnitId':_0x21162f[_0x33e3f0(0x19f)],'shapeId':_0x21162f[_0x33e3f0(0x502)],'shapeKey':_0x21162f[_0x33e3f0(0x2de)]});}}));}['_initSelection'](){const _0x48435e=_0x12db2b;this[_0x48435e(0x22a)](this[_0x48435e(0x324)][_0x48435e(0x344)][_0x48435e(0x417)](_0x213577=>{const _0x3204b6=_0x48435e;if(_0x213577['length']===0x1){let _0x11c5d3=_0x213577[0x0],_0x1bae49=this[_0x3204b6(0x324)][_0x3204b6(0x492)](_0x11c5d3);if((_0x1bae49==null?void 0x0:_0x1bae49[_0x3204b6(0x2f3)])===a[_0x3204b6(0x3bd)]['DRAWING_SHAPE']){var _0xf549aa;let _0x16b79e=this[_0x3204b6(0x4a6)][_0x3204b6(0x4fe)]();if((_0x16b79e==null?void 0x0:_0x16b79e[_0x3204b6(0x502)])===_0x11c5d3[_0x3204b6(0x474)]&&_0x16b79e[_0x3204b6(0x25b)])return;let _0x51bdbc=(0x0,n[_0x3204b6(0x4c9)])(this[_0x3204b6(0x290)][_0x3204b6(0x517)](_0x11c5d3[_0x3204b6(0x315)],_0x11c5d3[_0x3204b6(0x19f)],_0x11c5d3[_0x3204b6(0x474)])),_0x50453e=!!((_0xf549aa=this['_sheetsShapeService'][_0x3204b6(0x435)](_0x11c5d3['unitId'],_0x11c5d3[_0x3204b6(0x19f)],_0x11c5d3[_0x3204b6(0x474)]))!=null&&_0xf549aa[_0x3204b6(0x3b1)]()[_0x3204b6(0x4ac)]);(_0x51bdbc||_0x50453e)&&this[_0x3204b6(0x4a6)][_0x3204b6(0x215)](null);}else this[_0x3204b6(0x4a6)][_0x3204b6(0x319)]();}else this[_0x3204b6(0x4a6)][_0x3204b6(0x319)]();})),this[_0x48435e(0x22a)](this[_0x48435e(0x324)][_0x48435e(0x3a1)][_0x48435e(0x417)](_0x3ab100=>{const _0x528b85=_0x48435e;let _0x14167e=this[_0x528b85(0x4a6)][_0x528b85(0x4fe)]();_0x14167e&&_0x3ab100[_0x528b85(0x33e)](_0x5423c5=>_0x5423c5[_0x528b85(0x474)]===_0x14167e[_0x528b85(0x502)])&&this['_shapeTextEditingService']['setEditing'](null);}));}['_initEditingParams'](){const _0x5bfd1f=_0x12db2b;this['disposeWithMe'](this[_0x5bfd1f(0x4a6)]['editingParams$'][_0x5bfd1f(0x417)](_0x263eaa=>{const _0x1d0d77=_0x5bfd1f;let {scene:_0x4dedd0}=this[_0x1d0d77(0x33f)];if(this[_0x1d0d77(0x397)]){let _0x3c06ff=_0x4dedd0['getObjectIncludeInGroup'](this['_lastEditingShapeKey']);_0x3c06ff&&_0x3c06ff[_0x1d0d77(0x215)](!0x1);}if(_0x263eaa){let _0x317e24=!!_0x263eaa['visible'],_0x83234d=_0x4dedd0[_0x1d0d77(0x43c)](_0x263eaa[_0x1d0d77(0x226)]);_0x83234d&&(_0x83234d[_0x1d0d77(0x215)](_0x317e24),this[_0x1d0d77(0x397)]=_0x263eaa['shapeKey']),this[_0x1d0d77(0x3ab)][_0x1d0d77(0x295)](a[_0x1d0d77(0x4d0)],_0x317e24);}else this[_0x1d0d77(0x397)]=null,this[_0x1d0d77(0x3ab)][_0x1d0d77(0x295)](a[_0x1d0d77(0x4d0)],!0x1);}));}};gt=A([k(0x1,(0x0,a[_0x12db2b(0x25a)])(a[_0x12db2b(0x427)])),k(0x2,(0x0,a[_0x12db2b(0x25a)])(H)),k(0x3,s[_0x12db2b(0x421)]),k(0x4,a[_0x12db2b(0x329)]),k(0x5,(0x0,a[_0x12db2b(0x25a)])(i[_0x12db2b(0x2e7)]))],gt);var _t=class extends gt{[_0x12db2b(0x268)](){const _0x5c6244=_0x12db2b;let {scene:_0x2b23ec}=this['_context'],_0x12cf6f=this[_0x5c6244(0x424)][_0x5c6244(0x3cb)](e[_0x5c6244(0x511)]);this[_0x5c6244(0x22a)](_0x2b23ec[_0x5c6244(0x494)][_0x5c6244(0x496)](_0xc7ab92=>{const _0x2f88a8=_0x5c6244;let {offsetX:_0x5d7933,offsetY:_0x553080}=_0xc7ab92,_0x272535=_0x2b23ec[_0x2f88a8(0x472)](c[_0x2f88a8(0x194)][_0x2f88a8(0x1b8)]([_0x5d7933,_0x553080]));if(!(_0x272535 instanceof D))return;let _0x94040e=this['_sheetsShapeService'][_0x2f88a8(0x435)](_0x272535[_0x2f88a8(0x315)],_0x272535[_0x2f88a8(0x19f)],_0x272535['shapeId']);(0x0,n[_0x2f88a8(0x4c9)])(this[_0x2f88a8(0x290)][_0x2f88a8(0x517)](_0x272535[_0x2f88a8(0x315)],_0x272535[_0x2f88a8(0x19f)],_0x272535[_0x2f88a8(0x502)]))||_0x94040e!=null&&_0x94040e[_0x2f88a8(0x3b1)]()[_0x2f88a8(0x4ac)]||_0x12cf6f[_0x2f88a8(0x46d)]('text',{'hostType':a[_0x2f88a8(0x4c4)][_0x2f88a8(0x29c)],'unitId':_0x272535[_0x2f88a8(0x315)],'subUnitId':_0x272535['subUnitId'],'shapeId':_0x272535['shapeId']});}));}};const vt={...rt};let U=class extends a['Disposable']{constructor(_0x49fb27,_0x280195,_0x81ff8f,_0x1b354a,_0x533544,_0x454220,_0x397c2b,_0x2c18b7){const _0x54cfe3=_0x12db2b;super(),this[_0x54cfe3(0x343)]=_0x49fb27,this[_0x54cfe3(0x290)]=_0x280195,this[_0x54cfe3(0x310)]=_0x81ff8f,this[_0x54cfe3(0x324)]=_0x1b354a,this[_0x54cfe3(0x1c2)]=_0x533544,this[_0x54cfe3(0x3ab)]=_0x454220,this[_0x54cfe3(0x401)]=_0x397c2b,this[_0x54cfe3(0x4a6)]=_0x2c18b7,E(this,_0x54cfe3(0x1cb),null),this[_0x54cfe3(0x343)][_0x54cfe3(0x433)](vt),this[_0x54cfe3(0x2ab)](),this['disposeWithMe'](this[_0x54cfe3(0x4a6)][_0x54cfe3(0x442)][_0x54cfe3(0x417)](_0x5b1515=>{const _0xb68eab=_0x54cfe3;_0x5b1515&&this[_0xb68eab(0x275)]();}));}[_0x12db2b(0x2a5)](){const _0x463aec=_0x12db2b;this[_0x463aec(0x1cb)]||=this['disposeWithMe']((0x0,e[_0x463aec(0x379)])(this[_0x463aec(0x401)],a[_0x463aec(0x4c4)][_0x463aec(0x29c)],_0x353523=>this['_popupMenuListener'](_0x353523)));}[_0x12db2b(0x2ab)](){const _0x220661=_0x12db2b;this[_0x220661(0x1c2)][_0x220661(0x212)](a[_0x220661(0x3bd)][_0x220661(0x3c0)],(_0x3441f6,_0x441205,_0xf07b47,_0x68a7bf)=>{const _0x4ee2c8=_0x220661;let _0x3478e6=this['_sheetsShapeService'][_0x4ee2c8(0x50d)](_0x3441f6,_0x441205,_0xf07b47),_0x5a97ac=this[_0x4ee2c8(0x290)][_0x4ee2c8(0x3de)](_0x3441f6,_0x441205,_0xf07b47),_0x4ee908=_0x3478e6!==void 0x0&&!(0x0,n[_0x4ee2c8(0x4c9)])(_0x3478e6)&&!(_0x5a97ac!=null&&_0x5a97ac['formulaBinding']);return[{'label':_0x4ee2c8(0x3bf),'index':0x0,'commandId':st['id'],'commandParams':{'unitId':_0x3441f6,'subUnitId':_0x441205,'drawingId':_0xf07b47,'mode':_0x4ee2c8(0x312)},'disable':!0x1},..._0x4ee908?[{'label':_0x4ee2c8(0x1c4),'index':0x1,'commandId':st['id'],'commandParams':{'unitId':_0x3441f6,'subUnitId':_0x441205,'drawingId':_0xf07b47,'mode':_0x4ee2c8(0x37b)},'disable':!0x1}]:[],{'label':_0x4ee2c8(0x4a1),'index':0x2,'commandId':m[_0x4ee2c8(0x3e6)]['id'],'commandParams':{'unitId':_0x3441f6,'drawings':[{'unitId':_0x3441f6,'subUnitId':_0x441205,'drawingId':_0xf07b47,'drawingType':_0x68a7bf}]},'disable':!0x1},{'label':'sheets-shape-ui.flipHorizontal','index':0x3,'commandId':i[_0x4ee2c8(0x204)]['id'],'commandParams':{'unitId':_0x3441f6,'subUnitId':_0x441205,'shapeId':_0xf07b47,'flipH':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.flipVertical','index':0x4,'commandId':i[_0x4ee2c8(0x204)]['id'],'commandParams':{'unitId':_0x3441f6,'subUnitId':_0x441205,'shapeId':_0xf07b47,'flipV':!0x0},'disable':!0x1}];},_0x220661(0x296));}[_0x12db2b(0x524)](_0x3c8fb1){const _0x1d7c58=_0x12db2b;let _0xfd6561=new a[(_0x1d7c58(0x3fa))](),_0x1928ca=null,_0x412c07=()=>{const _0x5868a5=_0x1d7c58;if(!_0x1928ca)return;let _0x34568b=this[_0x5868a5(0x324)][_0x5868a5(0x1fa)](),_0x1888af=_0x34568b[_0x5868a5(0x2c6)]===0x0||_0x34568b[_0x5868a5(0x2c6)]===0x1&&_0x34568b[_0x5868a5(0x33e)](_0x5d9f71=>_0x5d9f71[_0x5868a5(0x315)]===(_0x1928ca==null?void 0x0:_0x1928ca[_0x5868a5(0x315)])&&_0x5d9f71['subUnitId']===(_0x1928ca==null?void 0x0:_0x1928ca[_0x5868a5(0x19f)])&&_0x5d9f71['drawingId']===(_0x1928ca==null?void 0x0:_0x1928ca[_0x5868a5(0x474)]));_0x1928ca=null,_0x1888af&&(this['_contextService'][_0x5868a5(0x295)](a[_0x5868a5(0x1a8)],!0x1),this[_0x5868a5(0x324)][_0x5868a5(0x36a)](null));};return _0xfd6561[_0x1d7c58(0x2e5)](_0x3c8fb1[_0x1d7c58(0x306)][_0x1d7c58(0x417)](()=>{const _0x1657fe=_0x1d7c58;let _0x359c39=_0x3c8fb1['getSelectedObjectMap']();if(_0x359c39['size']>0x1){_0x412c07();return;}let _0x4a12c9=_0x359c39[_0x1657fe(0x1d8)]()[_0x1657fe(0x247)]()[_0x1657fe(0x3fe)];if(!_0x4a12c9){_0x412c07();return;}let _0x2bf4eb=this[_0x1657fe(0x324)]['getDrawingOKey'](_0x4a12c9[_0x1657fe(0x2de)]);if(!_0x2bf4eb||_0x2bf4eb[_0x1657fe(0x2f3)]!==a[_0x1657fe(0x3bd)][_0x1657fe(0x3c0)]){_0x412c07();return;}let {unitId:_0x249fdb,subUnitId:_0x85ab8e,drawingId:_0x392cb0}=_0x2bf4eb;_0x1928ca={'unitId':_0x249fdb,'subUnitId':_0x85ab8e,'drawingId':_0x392cb0},this['_contextService']['setContextValue'](a[_0x1657fe(0x1a8)],!0x0),this[_0x1657fe(0x324)][_0x1657fe(0x1fa)]()[_0x1657fe(0x440)](_0x472ffd=>_0x472ffd[_0x1657fe(0x315)]===_0x249fdb&&_0x472ffd[_0x1657fe(0x19f)]===_0x85ab8e&&_0x472ffd['drawingId']===_0x392cb0)||this['_drawingManagerService'][_0x1657fe(0x36a)]([{'unitId':_0x249fdb,'subUnitId':_0x85ab8e,'drawingId':_0x392cb0}]);})),_0xfd6561[_0x1d7c58(0x2e5)](_0x3c8fb1[_0x1d7c58(0x500)]['subscribe'](()=>{_0x412c07();})),(0x0,a['toDisposable'])(()=>{_0xfd6561['dispose'](),_0x412c07();});}[_0x12db2b(0x275)](){const _0x52e7f6=_0x12db2b;this[_0x52e7f6(0x3ab)][_0x52e7f6(0x295)](a['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x52e7f6(0x324)]['focusDrawing'](null);}};U=A([k(0x0,t[_0x12db2b(0x207)]),k(0x1,(0x0,a[_0x12db2b(0x25a)])(i[_0x12db2b(0x2e7)])),k(0x2,a['ICommandService']),k(0x3,s[_0x12db2b(0x421)]),k(0x4,(0x0,a['Inject'])(l[_0x12db2b(0x44f)])),k(0x5,a['IContextService']),k(0x6,c[_0x12db2b(0x508)]),k(0x7,(0x0,a['Inject'])(H))],U);function yt(_0x391d85,_0x128c9d,_0x5770a3,_0x35800e){const _0x55d9ae=_0x12db2b;let _0x5b24bd=(0x0,s['getOrCreateDrawingCopyPlan'])(_0x391d85,_0x128c9d,_0x5770a3),_0x52e265=[];for(let _0x3ecc71 of _0x128c9d){let _0x1f0087=_0x5b24bd['idMap'][_0x55d9ae(0x3cb)](_0x3ecc71[_0x55d9ae(0x474)]),_0x40b232=_0x35800e(_0x3ecc71);_0x1f0087&&_0x40b232&&_0x52e265[_0x55d9ae(0x32c)]({'targetShapeId':_0x1f0087,'source':_0x40b232});}return _0x52e265;}let W=class extends a[_0x12db2b(0x30e)]{constructor(_0x1a2b65,_0x5990c9,_0x3bd412,_0x1882d7){const _0x5969be=_0x12db2b;super(),this[_0x5969be(0x486)]=_0x1a2b65,this[_0x5969be(0x447)]=_0x5990c9,this[_0x5969be(0x225)]=_0x3bd412,this[_0x5969be(0x290)]=_0x1882d7,this['_initSheetChange']();}[_0x12db2b(0x2e8)](){const _0x3fae28=_0x12db2b;this[_0x3fae28(0x22a)](this[_0x3fae28(0x447)][_0x3fae28(0x437)]({'getMutations':_0x511930=>{const _0x2ee6c6=_0x3fae28;if(_0x511930['id']===o['RemoveSheetCommand']['id']){let _0x432cff=(0x0,o[_0x2ee6c6(0x2fe)])(this[_0x2ee6c6(0x486)],_0x511930['params']);if(!_0x432cff)return{'redos':[],'undos':[]};let {unitId:_0x25a8c9,subUnitId:_0x3ace4a}=_0x432cff,_0x4b5aa1=this[_0x2ee6c6(0x225)][_0x2ee6c6(0x1a0)](_0x25a8c9,_0x3ace4a),_0x150fcd=Object[_0x2ee6c6(0x1d8)](_0x4b5aa1)[_0x2ee6c6(0x27f)](_0x32e8c1=>_0x32e8c1['drawingType']===a[_0x2ee6c6(0x3bd)][_0x2ee6c6(0x3c0)]);if(_0x150fcd[_0x2ee6c6(0x2c6)]===0x0)return{'redos':[],'undos':[]};let _0x2b0416=[],_0x372366=[];for(let _0x5369b7=0x0;_0x5369b7<_0x150fcd[_0x2ee6c6(0x2c6)];_0x5369b7++){let _0x5b60cd=_0x150fcd[_0x5369b7],_0x41d288=this[_0x2ee6c6(0x290)][_0x2ee6c6(0x435)](_0x5b60cd[_0x2ee6c6(0x315)],_0x5b60cd['subUnitId'],_0x5b60cd['drawingId']);_0x41d288&&(_0x2b0416[_0x2ee6c6(0x32c)]({'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x25a8c9,'subUnitId':_0x3ace4a,'shapeId':_0x5b60cd[_0x2ee6c6(0x474)]}}),_0x372366[_0x2ee6c6(0x32c)]({'id':i[_0x2ee6c6(0x325)]['id'],'params':{'unitId':_0x25a8c9,'subUnitId':_0x3ace4a,'shapeId':_0x5b60cd['drawingId'],'shapeType':_0x41d288[_0x2ee6c6(0x517)](),'shapeData':JSON[_0x2ee6c6(0x279)](JSON[_0x2ee6c6(0x294)](_0x41d288['getShapeData']()))}}));}return{'redos':_0x2b0416,'undos':_0x372366};}if(_0x511930['id']===o[_0x2ee6c6(0x199)]['id']){let {unitId:_0x357f26,subUnitId:_0xaf776b,targetSubUnitId:_0x3401a5,copyContext:_0x121993}=_0x511930['params'];if(!_0x357f26||!_0xaf776b||!_0x3401a5)return{'redos':[],'undos':[]};let _0x3e87bf=this[_0x2ee6c6(0x225)][_0x2ee6c6(0x1a0)](_0x357f26,_0xaf776b),_0x4d782f=Object[_0x2ee6c6(0x1d8)](_0x3e87bf)['filter'](_0x25612f=>_0x25612f[_0x2ee6c6(0x2f3)]===a[_0x2ee6c6(0x3bd)]['DRAWING_SHAPE']);if(_0x4d782f[_0x2ee6c6(0x2c6)]===0x0)return{'redos':[],'undos':[]};let _0x5e9c39=yt(_0x121993,_0x4d782f,{'unitId':_0x357f26,'sourceSubUnitId':_0xaf776b,'targetSubUnitId':_0x3401a5},_0x4e1495=>{const _0x2170a6=_0x2ee6c6;let _0x34f330=this[_0x2170a6(0x290)]['getShapeModel'](_0x4e1495[_0x2170a6(0x315)],_0x4e1495[_0x2170a6(0x19f)],_0x4e1495[_0x2170a6(0x474)]);if(_0x34f330)return{'shapeType':_0x34f330[_0x2170a6(0x517)](),'shapeData':JSON[_0x2170a6(0x279)](JSON['stringify'](_0x34f330[_0x2170a6(0x3b1)]()))};}),_0x5f2f92=[],_0x238b33=[];for(let {targetShapeId:_0xa478eb,source:_0x5f2a10}of _0x5e9c39)_0x5f2f92['push']({'id':i[_0x2ee6c6(0x325)]['id'],'params':{'unitId':_0x357f26,'subUnitId':_0x3401a5,'shapeId':_0xa478eb,'shapeType':_0x5f2a10['shapeType'],'shapeData':_0x5f2a10[_0x2ee6c6(0x235)]}}),_0x238b33[_0x2ee6c6(0x32c)]({'id':i[_0x2ee6c6(0x211)]['id'],'params':{'unitId':_0x357f26,'subUnitId':_0x3401a5,'shapeId':_0xa478eb}});return{'redos':_0x5f2f92,'undos':_0x238b33};}return{'redos':[],'undos':[]};}}));}};W=A([k(0x0,(0x0,a[_0x12db2b(0x25a)])(a[_0x12db2b(0x202)])),k(0x1,(0x0,a[_0x12db2b(0x25a)])(o[_0x12db2b(0x45d)])),k(0x2,(0x0,a[_0x12db2b(0x25a)])(m[_0x12db2b(0x384)])),k(0x3,(0x0,a[_0x12db2b(0x25a)])(i['SheetsShapeService']))],W);let G=class extends a[_0x12db2b(0x30e)]{constructor(_0x3d3693,_0x439143,_0x16e46c,_0x2dd96f,_0x247af3,_0x5195f8){const _0x53728b=_0x12db2b;super(),this[_0x53728b(0x310)]=_0x3d3693,this[_0x53728b(0x401)]=_0x439143,this[_0x53728b(0x324)]=_0x16e46c,this[_0x53728b(0x1e3)]=_0x2dd96f,this[_0x53728b(0x31c)]=_0x247af3,this['_sheetDrawingShapeRenderController']=_0x5195f8,E(this,_0x53728b(0x441),new Set()),this[_0x53728b(0x499)]();}[_0x12db2b(0x499)](){const _0x4fa857=_0x12db2b;this[_0x4fa857(0x455)](),this[_0x4fa857(0x4e5)](),this[_0x4fa857(0x416)]();}['_drawingAddListener'](){const _0x1a5149=_0x12db2b;this[_0x1a5149(0x22a)](this['_drawingManagerService'][_0x1a5149(0x355)][_0x1a5149(0x417)](_0x463638=>{const _0x47fdb0=_0x1a5149;this[_0x47fdb0(0x300)](_0x463638);}));}[_0x12db2b(0x4e5)](){const _0x42a987=_0x12db2b;this['disposeWithMe'](this[_0x42a987(0x310)][_0x42a987(0x3e5)]((_0x56622c,_0x1ee1b7)=>{const _0x4036f7=_0x42a987;if(_0x56622c['id']===i[_0x4036f7(0x36f)]['id']){let {unitId:_0x475a9b,subUnitId:_0x51557a,shapeId:_0x19268a}=_0x56622c['params'],_0x284cc0=this[_0x4036f7(0x3b0)](_0x475a9b),_0x4a896a=(0x0,s[_0x4036f7(0x3d3)])({'unitId':_0x475a9b,'subUnitId':_0x51557a,'drawingId':_0x19268a}),_0x148e6d=_0x284cc0==null?void 0x0:_0x284cc0[_0x4036f7(0x414)]['getObjectIncludeInGroup'](_0x4a896a);_0x148e6d&&(this[_0x4036f7(0x340)][_0x4036f7(0x490)](_0x148e6d),this[_0x4036f7(0x340)][_0x4036f7(0x1e0)](_0x148e6d,{'unitId':_0x475a9b,'subUnitId':_0x51557a,'shapeId':_0x19268a}),_0x148e6d['makeDirty'](!0x0));return;}if(_0x56622c['id']===i[_0x4036f7(0x325)]['id']){var _0x39c479;let {unitId:_0x371dec,subUnitId:_0xe676b6,shapeId:_0x57f5e8}=_0x56622c['params'],_0x48a609=this[_0x4036f7(0x3b0)](_0x371dec);if(_0x48a609==null)return;let {scene:_0x3fee1a}=_0x48a609,_0x16c21c=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x371dec,'subUnitId':_0xe676b6,'drawingId':_0x57f5e8}),_0x2d073a=_0x3fee1a[_0x4036f7(0x43c)](_0x16c21c);if(!((_0x39c479=this[_0x4036f7(0x401)][_0x4036f7(0x30d)](_0x371dec))!=null&&_0x39c479['with'](l[_0x4036f7(0x265)])[_0x4036f7(0x487)](_0xe676b6)))return!0x1;if(_0x2d073a)return;if(_0x1ee1b7!=null&&_0x1ee1b7['fromChangeset']){queueMicrotask(()=>{const _0x4ff2b3=_0x4036f7;this['_disposed']||this[_0x4ff2b3(0x300)]([{'unitId':_0x371dec,'subUnitId':_0xe676b6,'drawingId':_0x57f5e8}]);});return;}this['_insertShapes']([{'unitId':_0x371dec,'subUnitId':_0xe676b6,'drawingId':_0x57f5e8}]);}}));}['_shapeUpdateListener'](){const _0xadd372=_0x12db2b;this['disposeWithMe'](this[_0xadd372(0x324)]['update$'][_0xadd372(0x417)](_0x2e7e04=>{const _0x4461ff=_0xadd372;_0x2e7e04[_0x4461ff(0x444)](_0x4301af=>{const _0x3d2b2c=_0x4461ff;let {unitId:_0x5d2bb0,subUnitId:_0x43d69b,drawingId:_0x357663}=_0x4301af,_0x25d663=this[_0x3d2b2c(0x324)][_0x3d2b2c(0x492)](_0x4301af);if(_0x25d663==null)return;let {transform:_0x28981e,drawingType:_0x43557b,srcRect:_0x4199d3,prstGeom:_0x5bd3b4}=_0x25d663;if(_0x43557b!==a[_0x3d2b2c(0x3bd)][_0x3d2b2c(0x3c0)])return;let _0x5568ac=this[_0x3d2b2c(0x3b0)](_0x5d2bb0);if(_0x5568ac==null)return;let {scene:_0x5a9d4d,transformer:_0x45b801}=_0x5568ac;if(_0x28981e==null)return!0x0;let _0x55b539=(0x0,s[_0x3d2b2c(0x3d3)])({'unitId':_0x5d2bb0,'subUnitId':_0x43d69b,'drawingId':_0x357663}),_0x5be914=_0x5a9d4d['getObjectIncludeInGroup'](_0x55b539);if(_0x5be914==null)return!0x0;_0x5be914[_0x3d2b2c(0x4fb)](_0x4199d3),_0x5be914['setPrstGeom'](_0x5bd3b4);});}));}[_0x12db2b(0x300)](_0x258159){const _0x3d9dd5=_0x12db2b;for(let _0x4de93b of _0x258159){var _0x69bfe8;let {unitId:_0x8c04e7,subUnitId:_0x48bd58,drawingId:_0x44655c}=_0x4de93b,_0x292702=this['_getSceneAndTransformerByDrawingSearch'](_0x8c04e7),_0x33106f=(_0x69bfe8=(0x0,d[_0x3d9dd5(0x422)])(this[_0x3d9dd5(0x1e3)],_0x8c04e7))==null?void 0x0:_0x69bfe8[_0x3d9dd5(0x19f)];if(_0x292702==null||_0x33106f!==_0x48bd58)return;let _0x5270f4=(0x0,s[_0x3d9dd5(0x3d3)])({'unitId':_0x8c04e7,'subUnitId':_0x48bd58,'drawingId':_0x44655c});if(this[_0x3d9dd5(0x441)][_0x3d9dd5(0x4e8)](_0x5270f4)||_0x292702[_0x3d9dd5(0x414)][_0x3d9dd5(0x43c)](_0x5270f4)!=null)return;let _0x3a9fc2=this['_drawingManagerService'][_0x3d9dd5(0x492)](_0x4de93b);if(_0x3a9fc2==null||_0x3a9fc2['drawingType']!==a[_0x3d9dd5(0x3bd)][_0x3d9dd5(0x3c0)])return;let _0x4e13d0=_0x3a9fc2[_0x3d9dd5(0x2ff)]||{};if((0x0,n['isConnectorShape'])(_0x4e13d0[_0x3d9dd5(0x520)])){let _0x54e1be=_0x3a9fc2['transform'];_0x54e1be&&(_0x3a9fc2[_0x3d9dd5(0x1f9)]={..._0x54e1be,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x3d9dd5(0x441)][_0x3d9dd5(0x2e5)](_0x5270f4);try{this[_0x3d9dd5(0x340)][_0x3d9dd5(0x3f8)](_0x3a9fc2,_0x292702[_0x3d9dd5(0x414)]);}finally{this[_0x3d9dd5(0x441)][_0x3d9dd5(0x2b8)](_0x5270f4);}queueMicrotask(()=>{const _0x1d43aa=_0x3d9dd5;if(this[_0x1d43aa(0x309)])return;let _0x448c89=(0x0,s[_0x1d43aa(0x3d3)])(_0x4de93b);if(!_0x292702[_0x1d43aa(0x414)][_0x1d43aa(0x43c)](_0x448c89))return;let _0x42554d=this[_0x1d43aa(0x324)][_0x1d43aa(0x492)](_0x4de93b);_0x42554d&&this[_0x1d43aa(0x324)]['refreshTransform']([_0x42554d]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x67e9b7){const _0x1eaeb9=_0x12db2b;if(_0x67e9b7==null)return;let _0x52a466=this[_0x1eaeb9(0x401)]['getRenderUnitById'](_0x67e9b7),_0x1302be=_0x52a466==null?void 0x0:_0x52a466[_0x1eaeb9(0x414)];return _0x1302be==null?null:{'scene':_0x1302be,'transformer':_0x1302be[_0x1eaeb9(0x198)]()};}};G=A([k(0x0,a[_0x12db2b(0x4c6)]),k(0x1,c[_0x12db2b(0x508)]),k(0x2,s[_0x12db2b(0x421)]),k(0x3,a['IUniverInstanceService']),k(0x4,(0x0,a[_0x12db2b(0x25a)])(d[_0x12db2b(0x36e)])),k(0x5,(0x0,a[_0x12db2b(0x25a)])(j))],G);const bt={'normal':{'fill':n[_0x12db2b(0x4c8)][_0x12db2b(0x4b3)],'stroke':n[_0x12db2b(0x4c8)][_0x12db2b(0x3ba)],'strokeWidth':n['ShapeDefaultConfig'][_0x12db2b(0x353)]},'highlighted':{'fill':_0x12db2b(0x495),'stroke':_0x12db2b(0x192),'strokeWidth':0x2}};var xt=class extends c[_0x12db2b(0x501)]{constructor(_0x4d1855,_0x1bcbf6){const _0x1c33fd=_0x12db2b;super(_0x4d1855,_0x1bcbf6),E(this,_0x1c33fd(0x297),''),E(this,_0x1c33fd(0x1a9),-0x1),E(this,_0x1c33fd(0x4ae),''),E(this,'_subUnitId',''),E(this,_0x1c33fd(0x20c),!0x1),_0x1bcbf6&&this[_0x1c33fd(0x515)](_0x1bcbf6);}['getConnectionInfo'](){const _0x306036=_0x12db2b;return{'unitId':this['_unitId'],'subUnitId':this[_0x306036(0x460)],'shapeId':this[_0x306036(0x297)],'cxnIndex':this[_0x306036(0x1a9)]};}[_0x12db2b(0x299)](_0xc1a7e0){const _0x33208f=_0x12db2b;this['_isHighlighted']!==_0xc1a7e0&&(this[_0x33208f(0x20c)]=_0xc1a7e0,this[_0x33208f(0x335)](!0x0));}[_0x12db2b(0x4fc)](){const _0x3af50f=_0x12db2b;return this[_0x3af50f(0x20c)];}[_0x12db2b(0x515)](_0x276586){const _0x33deaa=_0x12db2b;_0x276586[_0x33deaa(0x408)]!==void 0x0&&(this[_0x33deaa(0x297)]=_0x276586[_0x33deaa(0x408)]),_0x276586[_0x33deaa(0x327)]!==void 0x0&&(this['_cxnIndex']=_0x276586[_0x33deaa(0x327)]),_0x276586[_0x33deaa(0x315)]!==void 0x0&&(this[_0x33deaa(0x4ae)]=_0x276586[_0x33deaa(0x315)]),_0x276586['subUnitId']!==void 0x0&&(this[_0x33deaa(0x460)]=_0x276586[_0x33deaa(0x19f)]),_0x276586['isHighlighted']!==void 0x0&&(this[_0x33deaa(0x20c)]=_0x276586[_0x33deaa(0x4fc)]),this[_0x33deaa(0x2c8)]({'width':_0x276586['width']??n[_0x33deaa(0x4c8)][_0x33deaa(0x4d6)]*0x2,'height':_0x276586[_0x33deaa(0x4b9)]??n[_0x33deaa(0x4c8)][_0x33deaa(0x4d6)]*0x2});}[_0x12db2b(0x2ec)](_0x361159){const _0x5ac632=_0x12db2b;let _0x3961fb=this[_0x5ac632(0x20c)]?bt[_0x5ac632(0x4ad)]:bt[_0x5ac632(0x4ba)];c[_0x5ac632(0x48b)]['drawWith'](_0x361159,{'radius':n[_0x5ac632(0x4c8)][_0x5ac632(0x4d6)],'fill':_0x3961fb[_0x5ac632(0x4f9)],'stroke':_0x3961fb['stroke'],'strokeWidth':_0x3961fb['strokeWidth'],'evented':!0x0});}};let K=class extends a[_0x12db2b(0x30e)]{constructor(_0x55e7cb,_0x5d258b,_0xb0c253,_0x3e5232){const _0x4a4f21=_0x12db2b;super(),this[_0x4a4f21(0x33f)]=_0x55e7cb,this[_0x4a4f21(0x401)]=_0x5d258b,this[_0x4a4f21(0x324)]=_0xb0c253,this['_sheetsShapeService']=_0x3e5232,E(this,'_connectionSiteObjects',[]),E(this,_0x4a4f21(0x4a5),null),E(this,_0x4a4f21(0x22e),-0x1),E(this,_0x4a4f21(0x1c6),null),E(this,_0x4a4f21(0x4ae),''),E(this,'_subUnitId',''),E(this,_0x4a4f21(0x3e7),null);}['startConnectionDetection'](_0x396af0,_0x48ef65,_0x552642,_0x3f34c4){const _0x107032=_0x12db2b;this[_0x107032(0x1c6)]=_0x396af0,this[_0x107032(0x4ae)]=_0x48ef65,this[_0x107032(0x460)]=_0x552642,this['_draggingConnectorId']=_0x3f34c4;}[_0x12db2b(0x4ab)](_0x4b067a){const _0x3fef55=_0x12db2b;if(!this[_0x3fef55(0x1c6)])return null;let _0x459ae0=this['_findShapeAtPoint'](_0x4b067a);return _0x459ae0?(this['_activeTargetShapeId']!==_0x459ae0[_0x3fef55(0x502)]&&(this[_0x3fef55(0x3a8)](),this['_showConnectionSites'](_0x459ae0[_0x3fef55(0x502)],_0x459ae0[_0x3fef55(0x471)]),this[_0x3fef55(0x4a5)]=_0x459ae0[_0x3fef55(0x502)]),this[_0x3fef55(0x38f)](_0x4b067a)):(this[_0x3fef55(0x4a5)]!==null&&(this[_0x3fef55(0x3a8)](),this[_0x3fef55(0x4a5)]=null),null);}[_0x12db2b(0x28a)](){const _0x33cb25=_0x12db2b;this[_0x33cb25(0x3a8)](),this[_0x33cb25(0x1c6)]=null,this[_0x33cb25(0x4a5)]=null,this['_highlightedSiteIndex']=-0x1,this[_0x33cb25(0x3e7)]=null;}[_0x12db2b(0x3f7)](){const _0x54c666=_0x12db2b;return this[_0x54c666(0x4a5)]===null||this[_0x54c666(0x22e)]<0x0?null:{'shapeId':this[_0x54c666(0x4a5)],'cxnIndex':this[_0x54c666(0x22e)]};}[_0x12db2b(0x339)](_0x37b992){const _0x45dd43=_0x12db2b;let _0x40ecd9=this['_drawingManagerService'][_0x45dd43(0x1a0)](this[_0x45dd43(0x4ae)],this[_0x45dd43(0x460)]);for(let _0xe2f0ba of Object[_0x45dd43(0x43f)](_0x40ecd9)){if(_0xe2f0ba===this[_0x45dd43(0x3e7)]||_0x40ecd9[_0xe2f0ba][_0x45dd43(0x2f3)]!==a['DrawingTypeEnum']['DRAWING_SHAPE'])continue;let _0x376db2=this['_sheetsShapeService']['getShapeModel'](this['_unitId'],this[_0x45dd43(0x460)],_0xe2f0ba);if(!_0x376db2||(0x0,n[_0x45dd43(0x4c9)])(_0x376db2[_0x45dd43(0x517)]())||_0x376db2[_0x45dd43(0x2e1)]()['length']===0x0||!this[_0x45dd43(0x1c6)])continue;let _0x41955b=(0x0,s[_0x45dd43(0x3d3)])({'unitId':this['_unitId'],'subUnitId':this[_0x45dd43(0x460)],'drawingId':_0xe2f0ba}),_0x5e809f=this['_currentScene'][_0x45dd43(0x43c)](_0x41955b);if(!_0x5e809f)continue;let {left:_0x4093d5,top:_0x3f64a4,width:_0x1e2191,height:_0x466b71}=_0x5e809f['getRealBound'](),_0x10f4df=_0x4093d5+_0x1e2191/0x2,_0x5c2777=_0x3f64a4+_0x466b71/0x2,_0x594e7b=_0x5e809f[_0x45dd43(0x1f9)][_0x45dd43(0x258)](),_0x35492d=new c[(_0x45dd43(0x3cd))]([_0x594e7b[0x0],_0x594e7b[0x1],_0x594e7b[0x2],_0x594e7b[0x3],_0x10f4df,_0x5c2777]),_0x5a05d8=_0x5e809f['getParent'](),_0x2dc064=(_0x5e809f[_0x45dd43(0x4eb)]&&(_0x5a05d8==null?void 0x0:_0x5a05d8[_0x45dd43(0x19d)])===c['RENDER_CLASS_TYPE'][_0x45dd43(0x2a6)]?_0x5a05d8[_0x45dd43(0x363)][_0x45dd43(0x227)](_0x35492d):_0x35492d)[_0x45dd43(0x2b7)]()['applyPoint'](_0x37b992),_0x5d49ad=_0x1e2191/0x2,_0x226a9c=_0x466b71/0x2;if(_0x2dc064['x']>=-_0x5d49ad-0x5&&_0x2dc064['x']<=_0x5d49ad+0x5&&_0x2dc064['y']>=-_0x226a9c-0x5&&_0x2dc064['y']<=_0x226a9c+0x5)return{'shapeId':_0xe2f0ba,'shapeModel':_0x376db2};}return null;}[_0x12db2b(0x2e0)](_0x3dc490,_0x251dcd){const _0x4532e1=_0x12db2b;if(!this[_0x4532e1(0x1c6)])return;let _0x57228f=(0x0,s[_0x4532e1(0x3d3)])({'unitId':this[_0x4532e1(0x4ae)],'subUnitId':this['_subUnitId'],'drawingId':_0x3dc490}),_0x13bdb0=this[_0x4532e1(0x1c6)][_0x4532e1(0x43c)](_0x57228f);if(!_0x13bdb0)return;let {left:_0x5dce86,top:_0xf5eaaf,width:_0x4b93bd,height:_0x50be1f}=_0x13bdb0[_0x4532e1(0x1a2)](),_0x3aa9c9=_0x5dce86+_0x4b93bd/0x2,_0x8cb441=_0xf5eaaf+_0x50be1f/0x2,_0x3dedbc=_0x13bdb0[_0x4532e1(0x1f9)][_0x4532e1(0x258)](),_0x4c283e=new c[(_0x4532e1(0x3cd))]([_0x3dedbc[0x0],_0x3dedbc[0x1],_0x3dedbc[0x2],_0x3dedbc[0x3],_0x3aa9c9,_0x8cb441]),_0x14036f=_0x13bdb0[_0x4532e1(0x1d4)](),_0x3e28da=_0x13bdb0[_0x4532e1(0x4eb)]&&(_0x14036f==null?void 0x0:_0x14036f['classType'])===c['RENDER_CLASS_TYPE'][_0x4532e1(0x2a6)]?_0x14036f[_0x4532e1(0x363)][_0x4532e1(0x227)](_0x4c283e):_0x4c283e;_0x251dcd[_0x4532e1(0x33b)]({'width':_0x4b93bd,'height':_0x50be1f});let _0x365ad2=_0x251dcd[_0x4532e1(0x2e1)]();for(let _0x22eed5 of _0x365ad2){let _0x16bbd8=_0x22eed5['x']-_0x4b93bd/0x2,_0x5a78ad=_0x22eed5['y']-_0x50be1f/0x2,_0x10001b=_0x3e28da['applyPoint']({'x':_0x16bbd8,'y':_0x5a78ad}),_0x482388=_0x10001b['x'],_0x16762e=_0x10001b['y'],_0x4a384d=new xt(_0x4532e1(0x2a3)+_0x3dc490+'-'+_0x22eed5['index'],{'left':_0x482388-n[_0x4532e1(0x4c8)][_0x4532e1(0x4d6)],'top':_0x16762e-n[_0x4532e1(0x4c8)]['cxnPointRadius'],'targetShapeId':_0x3dc490,'cxnIndex':_0x22eed5['index'],'unitId':this[_0x4532e1(0x4ae)],'subUnitId':this['_subUnitId'],'width':n[_0x4532e1(0x4c8)][_0x4532e1(0x4d6)]*0x2,'height':n[_0x4532e1(0x4c8)][_0x4532e1(0x4d6)]*0x2,'zIndex':c['DRAWING_OBJECT_LAYER_INDEX']+0x2,'evented':!0x1});this['_connectionSiteObjects']['push'](_0x4a384d),this[_0x4532e1(0x1c6)]['addObject'](_0x4a384d,c[_0x4532e1(0x241)]+0x2);}}[_0x12db2b(0x38f)](_0x24ca0c){const _0x4f9bfb=_0x12db2b;let _0x5becf3=null,_0x5a3d84=0x1/0x0,_0x151c8c=null;for(let _0x36f25c of this[_0x4f9bfb(0x467)]){let _0x5ea6fb=_0x36f25c[_0x4f9bfb(0x328)]+n[_0x4f9bfb(0x4c8)][_0x4f9bfb(0x4d6)],_0x1c24c9=_0x36f25c[_0x4f9bfb(0x213)]+n[_0x4f9bfb(0x4c8)][_0x4f9bfb(0x4d6)],_0x161166=_0x24ca0c['x']-_0x5ea6fb,_0x14c7aa=_0x24ca0c['y']-_0x1c24c9,_0xaf3275=Math[_0x4f9bfb(0x4f6)](_0x161166*_0x161166+_0x14c7aa*_0x14c7aa);_0xaf3275<_0x5a3d84&&(_0x5a3d84=_0xaf3275,_0x5becf3=_0x36f25c,_0x151c8c={'x':_0x5ea6fb,'y':_0x1c24c9});}let _0x2eb1f1=_0x5a3d84<=0xa&&_0x5becf3?_0x5becf3[_0x4f9bfb(0x4e4)]()[_0x4f9bfb(0x327)]:-0x1;if(_0x2eb1f1!==this[_0x4f9bfb(0x22e)]){for(let _0x5790ed of this[_0x4f9bfb(0x467)]){let _0x1c0584=_0x5790ed[_0x4f9bfb(0x4e4)]();_0x5790ed[_0x4f9bfb(0x299)](_0x1c0584[_0x4f9bfb(0x327)]===_0x2eb1f1);}this[_0x4f9bfb(0x22e)]=_0x2eb1f1;}if(_0x5a3d84<=0xa&&_0x5becf3&&_0x151c8c){let _0x3c91dd=_0x5becf3['getConnectionInfo'](),_0x44e475=this['_getConnectionSiteAngle'](_0x3c91dd[_0x4f9bfb(0x502)],_0x3c91dd[_0x4f9bfb(0x327)]);return{'shapeId':_0x3c91dd[_0x4f9bfb(0x502)],'cxnIndex':_0x3c91dd[_0x4f9bfb(0x327)],'unitId':_0x3c91dd[_0x4f9bfb(0x315)],'subUnitId':_0x3c91dd[_0x4f9bfb(0x19f)],'worldPoint':_0x151c8c,'angle':_0x44e475};}return null;}['_getConnectionSiteAngle'](_0x116221,_0x274bcc){const _0x2fb2b6=_0x12db2b;let _0x83478c=this[_0x2fb2b6(0x290)][_0x2fb2b6(0x435)](this['_unitId'],this[_0x2fb2b6(0x460)],_0x116221);if(!_0x83478c)return 0x0;let _0x575f2f=this['_drawingManagerService'][_0x2fb2b6(0x492)]({'unitId':this[_0x2fb2b6(0x4ae)],'subUnitId':this[_0x2fb2b6(0x460)],'drawingId':_0x116221});if(!(_0x575f2f!=null&&_0x575f2f['transform']))return 0x0;let {width:_0x28cb1d=0x0,height:_0x34b8a0=0x0,flipX:_0x2e71a1=!0x1,flipY:_0x57e58a=!0x1}=_0x575f2f['transform'];_0x83478c[_0x2fb2b6(0x33b)]({'width':_0x28cb1d,'height':_0x34b8a0});let _0x1eaafa=_0x83478c['getConnectionSiteList']()[_0x2fb2b6(0x440)](_0x272b9c=>_0x272b9c['index']===_0x274bcc);if(!_0x1eaafa)return 0x0;let _0x2fdb08=_0x1eaafa['ang']/0xea60;return _0x2e71a1&&(_0x2fdb08=0xb4-_0x2fdb08),_0x57e58a&&(_0x2fdb08=-_0x2fdb08),_0x2fdb08=(_0x2fdb08%0x168+0x168)%0x168,_0x2fdb08;}[_0x12db2b(0x3a8)](){const _0x1a1a46=_0x12db2b;for(let _0x635a70 of this['_connectionSiteObjects'])_0x635a70[_0x1a1a46(0x1e8)]();this[_0x1a1a46(0x467)]=[],this[_0x1a1a46(0x22e)]=-0x1;}['dispose'](){const _0x2d141f=_0x12db2b;this[_0x2d141f(0x3a8)](),super[_0x2d141f(0x1e8)]();}};K=A([k(0x1,(0x0,a[_0x12db2b(0x25a)])(c[_0x12db2b(0x508)])),k(0x2,(0x0,a['Inject'])(s['IDrawingManagerService'])),k(0x3,(0x0,a[_0x12db2b(0x25a)])(i[_0x12db2b(0x2e7)]))],K);let q=class extends a['Disposable']{constructor(_0x4fcbe9,_0x417b26,_0x365f6b,_0x4bcb21,_0xf26b4c){const _0x5601b7=_0x12db2b;super(),this[_0x5601b7(0x1c3)]=_0x4fcbe9,this['_sheetClipboardService']=_0x417b26,this[_0x5601b7(0x225)]=_0x365f6b,this[_0x5601b7(0x2f9)]=_0x4bcb21,this[_0x5601b7(0x41e)]=_0xf26b4c,E(this,'_copyInfo',void 0x0),this['_initCopyPaste'](),this[_0x5601b7(0x1b9)]();}get[_0x12db2b(0x4c2)](){const _0x53e379=_0x12db2b;return this['_sheetDrawingService'][_0x53e379(0x1fa)]();}[_0x12db2b(0x1b9)](){const _0x3e2dd0=_0x12db2b;this[_0x3e2dd0(0x41e)]['registerFeaturePasteHook'](({fromUnitId:_0xb4c754,fromSubUnitId:_0x4d9a23,toUnitId:_0xcdc53e,toSubUnitId:_0x10ee3c,idMap:_0x47a0c3})=>{const _0x1e61c3=_0x3e2dd0;let _0x2e685e=[],_0x35553c=[];for(let [_0x2b1682,_0x548690]of _0x47a0c3[_0x1e61c3(0x4dd)]()){let _0x268844=this[_0x1e61c3(0x2f9)]['getShapeModel'](_0xb4c754,_0x4d9a23,_0x2b1682);if(!_0x268844)continue;let _0xf0f811=_0x268844[_0x1e61c3(0x517)](),_0x568087=JSON[_0x1e61c3(0x279)](JSON['stringify'](_0x268844['getShapeData']()));if(_0x568087[_0x1e61c3(0x2cf)]){var _0x110158,_0x7b4065;let _0x45bf4b=(_0x110158=_0x568087[_0x1e61c3(0x2cf)][_0x1e61c3(0x205)])==null?void 0x0:_0x110158[_0x1e61c3(0x502)],_0x3a1472=(_0x7b4065=_0x568087['relation']['to'])==null?void 0x0:_0x7b4065[_0x1e61c3(0x502)],_0x59084e=!_0x45bf4b||_0x47a0c3[_0x1e61c3(0x4e8)](_0x45bf4b),_0x17a4d5=!_0x3a1472||_0x47a0c3[_0x1e61c3(0x4e8)](_0x3a1472);_0x59084e&&_0x45bf4b&&_0x568087[_0x1e61c3(0x2cf)][_0x1e61c3(0x205)]?_0x568087[_0x1e61c3(0x2cf)][_0x1e61c3(0x205)]={..._0x568087[_0x1e61c3(0x2cf)]['from'],'shapeId':_0x47a0c3[_0x1e61c3(0x3cb)](_0x45bf4b)}:_0x568087[_0x1e61c3(0x2cf)]['from']=void 0x0,_0x17a4d5&&_0x3a1472&&_0x568087[_0x1e61c3(0x2cf)]['to']?_0x568087[_0x1e61c3(0x2cf)]['to']={..._0x568087['relation']['to'],'shapeId':_0x47a0c3[_0x1e61c3(0x3cb)](_0x3a1472)}:_0x568087[_0x1e61c3(0x2cf)]['to']=void 0x0;}_0x2e685e['push']({'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0xcdc53e,'subUnitId':_0x10ee3c,'shapeId':_0x548690,'shapeType':_0xf0f811,'shapeData':_0x568087}}),_0x35553c[_0x1e61c3(0x32c)]({'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0xcdc53e,'subUnitId':_0x10ee3c,'shapeId':_0x548690}});}return{'redos':_0x2e685e,'undos':_0x35553c};});}[_0x12db2b(0x4bb)](){const _0x889b16=_0x12db2b;this[_0x889b16(0x22a)](this[_0x889b16(0x1d2)][_0x889b16(0x2ae)]({'id':_0x889b16(0x50a),'onBeforeCopyFocusedObject':(_0x29770d,_0x4dfc7c,_0x131bd6)=>{const _0x44bfc9=_0x889b16;this[_0x44bfc9(0x4ff)]=null;let _0xb3ddef=this[_0x44bfc9(0x4c2)][_0x44bfc9(0x27f)](_0x5e810c=>_0x5e810c[_0x44bfc9(0x2f3)]===a['DrawingTypeEnum'][_0x44bfc9(0x3c0)]);return _0xb3ddef[_0x44bfc9(0x2c6)]!==0x0&&(this[_0x44bfc9(0x4ff)]={'unitId':_0x29770d,'subUnitId':_0x4dfc7c,'copyType':_0x131bd6,'drawings':_0xb3ddef},!0x0);},'onBeforeCopy':(_0x2bba9a,_0x1843cc,_0x55af6a,_0x4ecdf8)=>{const _0x4a10d5=_0x889b16;this[_0x4a10d5(0x4ff)]=null,this[_0x4a10d5(0x332)](_0x2bba9a,_0x1843cc,_0x55af6a,_0x4ecdf8);},'onPasteCells':(_0x5144ef,_0x2bea06,_0xef9853,_0x2c072e)=>{const _0x2c919b=_0x889b16;if(!_0x2c072e[_0x2c919b(0x3db)]||!_0x5144ef||!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x25d02c}=_0x2c072e;return _0x25d02c===l[_0x2c919b(0x1e9)][_0x2c919b(0x281)]?this[_0x2c919b(0x2c3)](_0x2bea06,this[_0x2c919b(0x4ff)][_0x2c919b(0x3c7)]===l['COPY_TYPE'][_0x2c919b(0x2ed)]):{'redos':[],'undos':[]};}}));}[_0x12db2b(0x332)](_0x2c2de1,_0x33751a,_0x11229b,_0x7840ef){const _0x4fd7b5=_0x12db2b;let _0x3876c0=this[_0x4fd7b5(0x1c3)]['getSkeleton'](_0x2c2de1,_0x33751a);if(!_0x3876c0)return;let _0x3b8cbd=(0x0,o[_0x4fd7b5(0x1cc)])(_0x3876c0,_0x11229b);if(!_0x3b8cbd)return;let {startX:_0x9f74ab,endX:_0x406972,startY:_0xf4d049,endY:_0x43b442}=_0x3b8cbd,_0x1e0182=this[_0x4fd7b5(0x225)]['getDrawingData'](_0x2c2de1,_0x33751a),_0xe84777=[];for(let [_0x4187fb,_0x4442dc]of Object[_0x4fd7b5(0x4dd)](_0x1e0182)){if(_0x4442dc[_0x4fd7b5(0x2f3)]!==a[_0x4fd7b5(0x3bd)]['DRAWING_SHAPE'])continue;let {transform:_0x1c429b}=_0x4442dc;if(!_0x1c429b)continue;let {left:_0x18d15b=0x0,top:_0x2a901a=0x0,width:_0x502824=0x0,height:_0x550c9d=0x0}=_0x1c429b;_0x9f74ab<=_0x18d15b&&_0x406972>=_0x18d15b+_0x502824&&_0xf4d049<=_0x2a901a&&_0x43b442>=_0x2a901a+_0x550c9d&&_0xe84777['push'](_0x4442dc);}_0xe84777[_0x4fd7b5(0x2c6)]>0x0&&(this[_0x4fd7b5(0x4ff)]={'unitId':_0x2c2de1,'subUnitId':_0x33751a,'copyType':_0x7840ef,'copyRange':_0x11229b,'drawings':_0xe84777});}[_0x12db2b(0x2c3)](_0x3f3b99,_0x20628d){const _0x5c20a6=_0x12db2b;let {unitId:_0xac0faa,subUnitId:_0x4b0859,range:_0x3750d7}=_0x3f3b99,_0x31ed25=this[_0x5c20a6(0x1c3)][_0x5c20a6(0x487)](_0xac0faa,_0x4b0859);if(!_0x31ed25)return{'redos':[],'undos':[]};let _0x5f462e=(0x0,o['discreteRangeToRange'])(_0x3750d7),{unitId:_0x22a486,subUnitId:_0x510b1d,copyRange:_0x432729,drawings:_0x35a947}=this[_0x5c20a6(0x4ff)],_0x1aa754=this[_0x5c20a6(0x1c3)]['getSkeleton'](_0x22a486,_0x510b1d);if(!_0x1aa754)return{'redos':[],'undos':[]};let _0x20d82b;if(!_0x432729){let _0x4aef72=0x1/0x0,_0x2d9acd=0x1/0x0;for(let _0x3b91df of _0x35a947){let {left:_0x38e0ac=0x0,top:_0x5ee968=0x0}=_0x3b91df['transform']??{};_0x38e0ac<_0x4aef72&&(_0x4aef72=_0x38e0ac),_0x5ee968<_0x2d9acd&&(_0x2d9acd=_0x5ee968);}_0x4aef72!==0x1/0x0&&_0x2d9acd!==0x1/0x0&&(_0x20d82b={'left':_0x4aef72,'top':_0x2d9acd});}let _0x2c3f42=new Map();if(!_0x20628d){for(let _0x5d7684 of _0x35a947)_0x2c3f42['set'](_0x5d7684['drawingId'],(0x0,a[_0x5c20a6(0x47d)])());}let _0x338a37=[],_0x1aa920=[];for(let _0x3727f1 of _0x35a947){let {drawingId:_0x1e8851,transform:_0x4163fa,sheetTransform:_0x47c9c7}=_0x3727f1;if(!_0x4163fa||!_0x47c9c7)continue;let _0x48dde0=this[_0x5c20a6(0x2b4)]({'transform':_0x4163fa,'sheetTransform':_0x47c9c7},{'skeleton':_0x1aa754,'range':_0x432729},{'skeleton':_0x31ed25,'range':_0x5f462e},_0x20d82b);if(_0x20628d){let {redos:_0x5213b0,undos:_0x3b3ef8}=this[_0x5c20a6(0x38d)]({'fromUnitId':_0x22a486,'fromSubUnitId':_0x510b1d,'toUnitId':_0xac0faa,'toSubUnitId':_0x4b0859,'drawing':_0x3727f1,'newTransforms':_0x48dde0});_0x338a37[_0x5c20a6(0x32c)](..._0x5213b0),_0x1aa920[_0x5c20a6(0x32c)](..._0x3b3ef8);continue;}let {redos:_0x50654e,undos:_0x16dc6c}=this[_0x5c20a6(0x377)]({'toUnitId':_0xac0faa,'toSubUnitId':_0x4b0859,'drawing':_0x3727f1,'newTransforms':_0x48dde0,'newDrawingId':_0x2c3f42[_0x5c20a6(0x3cb)](_0x1e8851),'idMap':_0x2c3f42});_0x338a37[_0x5c20a6(0x32c)](..._0x50654e),_0x1aa920[_0x5c20a6(0x32c)](..._0x16dc6c);}return{'redos':_0x338a37,'undos':_0x1aa920};}['_generateCutPasteMutations'](_0x5be91a){const _0x2ea19a=_0x12db2b;let {fromUnitId:_0x2f9d64,fromSubUnitId:_0x31dcb9,toUnitId:_0x1cd6ae,toSubUnitId:_0x2acf24,drawing:_0x478e28,newTransforms:_0x1141d8}=_0x5be91a,_0x2c6143={..._0x478e28,'unitId':_0x1cd6ae,'subUnitId':_0x2acf24,'transform':_0x1141d8[_0x2ea19a(0x1f9)],'sheetTransform':_0x1141d8[_0x2ea19a(0x1cf)]};if(_0x1cd6ae===_0x2f9d64&&_0x2acf24===_0x31dcb9){let {redo:_0x572654,undo:_0x571d17,objects:_0x5b9dc6}=this[_0x2ea19a(0x225)][_0x2ea19a(0x1ef)]([_0x2c6143]);return{'redos':[{'id':m[_0x2ea19a(0x2f1)]['id'],'params':{'unitId':_0x1cd6ae,'subUnitId':_0x2acf24,'type':m[_0x2ea19a(0x519)]['UPDATE'],'op':_0x572654,'objects':_0x5b9dc6}}],'undos':[{'id':m[_0x2ea19a(0x2f1)]['id'],'params':{'unitId':_0x1cd6ae,'subUnitId':_0x2acf24,'type':m[_0x2ea19a(0x519)][_0x2ea19a(0x3ad)],'op':_0x571d17,'objects':_0x5b9dc6}}]};}{let _0x4141a2=this[_0x2ea19a(0x225)][_0x2ea19a(0x1a1)]([_0x478e28]),_0x404f6b=this[_0x2ea19a(0x225)]['getBatchAddOp']([_0x2c6143]),_0x504088=this[_0x2ea19a(0x2f9)][_0x2ea19a(0x435)](_0x478e28[_0x2ea19a(0x315)],_0x478e28[_0x2ea19a(0x19f)],_0x478e28[_0x2ea19a(0x474)]);if(!_0x504088)return{'redos':[],'undos':[]};let _0x4add8d=_0x504088[_0x2ea19a(0x517)](),_0x444d36=JSON['parse'](JSON['stringify'](_0x504088[_0x2ea19a(0x3b1)]()));return{'redos':[{'id':m[_0x2ea19a(0x2f1)]['id'],'params':{'unitId':_0x2f9d64,'subUnitId':_0x31dcb9,'type':m[_0x2ea19a(0x519)][_0x2ea19a(0x368)],'op':_0x4141a2[_0x2ea19a(0x428)],'objects':_0x4141a2[_0x2ea19a(0x4de)]}},{'id':i[_0x2ea19a(0x211)]['id'],'params':{'unitId':_0x2f9d64,'subUnitId':_0x31dcb9,'shapeId':_0x478e28[_0x2ea19a(0x474)]}},{'id':m[_0x2ea19a(0x2f1)]['id'],'params':{'unitId':_0x1cd6ae,'subUnitId':_0x2acf24,'type':m[_0x2ea19a(0x519)]['INSERT'],'op':_0x404f6b[_0x2ea19a(0x428)],'objects':_0x404f6b[_0x2ea19a(0x4de)]}},{'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x1cd6ae,'subUnitId':_0x2acf24,'shapeId':_0x478e28['drawingId'],'shapeType':_0x4add8d,'shapeData':_0x444d36}}],'undos':[{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2f9d64,'subUnitId':_0x31dcb9,'type':m['DrawingApplyType']['INSERT'],'op':_0x4141a2[_0x2ea19a(0x41a)],'objects':_0x4141a2[_0x2ea19a(0x4de)]}},{'id':i[_0x2ea19a(0x325)]['id'],'params':{'unitId':_0x2f9d64,'subUnitId':_0x31dcb9,'shapeId':_0x478e28[_0x2ea19a(0x474)],'shapeType':_0x4add8d,'shapeData':_0x444d36}},{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x1cd6ae,'subUnitId':_0x2acf24,'type':m[_0x2ea19a(0x519)][_0x2ea19a(0x368)],'op':_0x404f6b[_0x2ea19a(0x41a)],'objects':_0x404f6b[_0x2ea19a(0x4de)]}},{'id':i[_0x2ea19a(0x211)]['id'],'params':{'unitId':_0x1cd6ae,'subUnitId':_0x2acf24,'shapeId':_0x478e28[_0x2ea19a(0x474)]}}]};}}['_generateCopyPasteMutations'](_0x50cd34){const _0x113e56=_0x12db2b;let {toUnitId:_0x5635ed,toSubUnitId:_0x4c95ca,drawing:_0x410ae5,newTransforms:_0x10b60d,newDrawingId:_0x46569b,idMap:_0x4a60fc}=_0x50cd34,_0x54fa98={..._0x410ae5,'unitId':_0x5635ed,'subUnitId':_0x4c95ca,'drawingId':_0x46569b,'transform':_0x10b60d[_0x113e56(0x1f9)],'sheetTransform':_0x10b60d['sheetTransform']},{redo:_0x27b9d8,undo:_0x2c2cf6,objects:_0x3d9cd6}=this[_0x113e56(0x225)][_0x113e56(0x40a)]([_0x54fa98]),_0x1dee67=this['_shapeService']['getShapeModel'](_0x410ae5[_0x113e56(0x315)],_0x410ae5[_0x113e56(0x19f)],_0x410ae5[_0x113e56(0x474)]);if(!_0x1dee67)return{'redos':[],'undos':[]};let _0x1a8ae7=_0x1dee67['getShapeType'](),_0x3ae670=JSON['parse'](JSON[_0x113e56(0x294)](_0x1dee67['getShapeData']()));if(_0x3ae670[_0x113e56(0x2cf)]){var _0x12a84a,_0x5f2baf;let _0x30100c=(_0x12a84a=_0x3ae670[_0x113e56(0x2cf)][_0x113e56(0x205)])==null?void 0x0:_0x12a84a['shapeId'],_0x4f7584=(_0x5f2baf=_0x3ae670['relation']['to'])==null?void 0x0:_0x5f2baf[_0x113e56(0x502)],_0x216e82=!_0x30100c||_0x4a60fc[_0x113e56(0x4e8)](_0x30100c),_0x24ee6d=!_0x4f7584||_0x4a60fc[_0x113e56(0x4e8)](_0x4f7584);_0x216e82&&_0x30100c&&_0x3ae670['relation'][_0x113e56(0x205)]?_0x3ae670['relation'][_0x113e56(0x205)]={..._0x3ae670[_0x113e56(0x2cf)][_0x113e56(0x205)],'shapeId':_0x4a60fc[_0x113e56(0x3cb)](_0x30100c)}:_0x3ae670[_0x113e56(0x2cf)][_0x113e56(0x205)]=void 0x0,_0x24ee6d&&_0x4f7584&&_0x3ae670[_0x113e56(0x2cf)]['to']?_0x3ae670[_0x113e56(0x2cf)]['to']={..._0x3ae670['relation']['to'],'shapeId':_0x4a60fc[_0x113e56(0x3cb)](_0x4f7584)}:_0x3ae670['relation']['to']=void 0x0;}return{'redos':[{'id':m[_0x113e56(0x2f1)]['id'],'params':{'unitId':_0x5635ed,'subUnitId':_0x4c95ca,'type':m[_0x113e56(0x519)][_0x113e56(0x1b1)],'op':_0x27b9d8,'objects':_0x3d9cd6}},{'id':i[_0x113e56(0x325)]['id'],'params':{'unitId':_0x5635ed,'subUnitId':_0x4c95ca,'shapeId':_0x46569b,'shapeType':_0x1a8ae7,'shapeData':_0x3ae670}}],'undos':[{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x5635ed,'subUnitId':_0x4c95ca,'type':m[_0x113e56(0x519)][_0x113e56(0x368)],'op':_0x2c2cf6,'objects':_0x3d9cd6}},{'id':i[_0x113e56(0x211)]['id'],'params':{'unitId':_0x5635ed,'subUnitId':_0x4c95ca,'shapeId':_0x46569b}}]};}[_0x12db2b(0x2b4)](_0x1d31e3,_0x34f095,_0x591f2a,_0x46cd7b){const _0x1a99c2=_0x12db2b;let {range:_0x2fae5b,skeleton:_0x4aabd6}=_0x34f095,{range:_0x5adcf6,skeleton:_0x69de0a}=_0x591f2a,{transform:_0x4af07e,sheetTransform:_0x5cd988}=_0x1d31e3,_0x155a79={..._0x4af07e};if(_0x2fae5b){let _0x557e46=(0x0,o[_0x1a99c2(0x1cc)])(_0x4aabd6,_0x2fae5b),_0x32f656=(0x0,o[_0x1a99c2(0x1cc)])(_0x69de0a,_0x5adcf6);if(_0x557e46&&_0x32f656){let _0x3dbb89=_0x32f656[_0x1a99c2(0x345)]-_0x557e46[_0x1a99c2(0x345)],_0xa245d1=_0x32f656[_0x1a99c2(0x206)]-_0x557e46[_0x1a99c2(0x206)];_0x155a79[_0x1a99c2(0x328)]=(_0x155a79[_0x1a99c2(0x328)]??0x0)+_0x3dbb89,_0x155a79[_0x1a99c2(0x213)]=(_0x155a79[_0x1a99c2(0x213)]??0x0)+_0xa245d1;}}else{let _0x4053a5=(0x0,o['attachRangeWithCoord'])(_0x69de0a,_0x5adcf6);if(_0x46cd7b&&_0x4053a5){let _0x38e7c4=(_0x155a79[_0x1a99c2(0x328)]??0x0)-_0x46cd7b[_0x1a99c2(0x328)],_0x4e1451=(_0x155a79[_0x1a99c2(0x213)]??0x0)-_0x46cd7b[_0x1a99c2(0x213)];_0x155a79[_0x1a99c2(0x328)]=_0x4053a5[_0x1a99c2(0x345)]+_0x38e7c4,_0x155a79[_0x1a99c2(0x213)]=_0x4053a5[_0x1a99c2(0x206)]+_0x4e1451;}else _0x155a79['left']=_0x4053a5==null?void 0x0:_0x4053a5[_0x1a99c2(0x345)],_0x155a79[_0x1a99c2(0x213)]=_0x4053a5==null?void 0x0:_0x4053a5['startY'];}return{'transform':_0x155a79,'sheetTransform':(0x0,m[_0x1a99c2(0x4b5)])(_0x155a79,_0x69de0a)??_0x5cd988};}};q=A([k(0x0,(0x0,a[_0x12db2b(0x25a)])(o[_0x12db2b(0x244)])),k(0x1,(0x0,a[_0x12db2b(0x25a)])(l[_0x12db2b(0x326)])),k(0x2,(0x0,a[_0x12db2b(0x25a)])(m['ISheetDrawingService'])),k(0x3,(0x0,a[_0x12db2b(0x25a)])(i[_0x12db2b(0x2e7)])),k(0x4,(0x0,a[_0x12db2b(0x25a)])(v[_0x12db2b(0x3b7)]))],q);var St=class extends c[_0x12db2b(0x501)]{constructor(_0x4d3fa6,_0x438e99){const _0x187dd8=_0x12db2b;super(_0x4d3fa6,_0x438e99),E(this,_0x187dd8(0x234),null),E(this,_0x187dd8(0x1df),null),E(this,'_unitId',null),E(this,_0x187dd8(0x460),null),E(this,_0x187dd8(0x426),!0x1),_0x438e99&&this[_0x187dd8(0x515)](_0x438e99);}[_0x12db2b(0x512)](){const _0x10cc97=_0x12db2b;return{'unitId':this[_0x10cc97(0x4ae)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x10cc97(0x234)]};}[_0x12db2b(0x515)](_0x440b26){const _0x4fe8a7=_0x12db2b;_0x440b26[_0x4fe8a7(0x502)]!==void 0x0&&(this[_0x4fe8a7(0x234)]=_0x440b26['shapeId']),_0x440b26[_0x4fe8a7(0x315)]!==void 0x0&&(this[_0x4fe8a7(0x4ae)]=_0x440b26['unitId']),_0x440b26[_0x4fe8a7(0x19f)]!==void 0x0&&(this[_0x4fe8a7(0x460)]=_0x440b26[_0x4fe8a7(0x19f)]),_0x440b26[_0x4fe8a7(0x3dc)]!==void 0x0&&(this['_isStartConnectorPoint']=_0x440b26[_0x4fe8a7(0x3dc)]),this[_0x4fe8a7(0x2c8)]({'width':_0x440b26[_0x4fe8a7(0x1c0)],'height':_0x440b26[_0x4fe8a7(0x4b9)]});}[_0x12db2b(0x2ec)](_0x13d103){const _0x597516=_0x12db2b;c[_0x597516(0x48b)][_0x597516(0x341)](_0x13d103,{'radius':n[_0x597516(0x4c8)][_0x597516(0x4d6)],'fill':n[_0x597516(0x4c8)][_0x597516(0x4b3)],'stroke':n['ShapeDefaultConfig'][_0x597516(0x3ba)],'strokeWidth':n['ShapeDefaultConfig'][_0x597516(0x353)],'evented':!0x0});}};let Ct=class extends a[_0x12db2b(0x30e)]{constructor(_0x50eee6,_0xb2e89e,_0x2c5c70,_0x1411c1,_0x53e888,_0x43127f,_0xfeaf49,_0x15d744){const _0x24cce7=_0x12db2b;super(),this[_0x24cce7(0x33f)]=_0x50eee6,this[_0x24cce7(0x310)]=_0xb2e89e,this[_0x24cce7(0x401)]=_0x2c5c70,this[_0x24cce7(0x324)]=_0x1411c1,this['_univerInstanceService']=_0x53e888,this['_sheetsShapeService']=_0x43127f,this['_sheetShapeAdjustController']=_0xfeaf49,this[_0x24cce7(0x522)]=_0x15d744,E(this,_0x24cce7(0x271),void 0x0),E(this,_0x24cce7(0x4ae),void 0x0),E(this,'_subUnitId',void 0x0),E(this,'_connectorObjects',[]),E(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),E(this,'_activeShapeModel',void 0x0),E(this,'_isConnecting',!0x1),E(this,'_isDrawingShapePointDown',!0x1),E(this,_0x24cce7(0x334),!0x1),E(this,_0x24cce7(0x219),void 0x0),E(this,'_cxtHandlerPointerUp',void 0x0),E(this,'_currentConnectionTarget',null),this[_0x24cce7(0x499)]();}[_0x12db2b(0x499)](){const _0x395fbc=_0x12db2b;this[_0x395fbc(0x4f7)](),this['_registerDrawingMoveHandler']();}[_0x12db2b(0x518)](){const _0x46ed6a=_0x12db2b;if(!this[_0x46ed6a(0x4ae)]||!this[_0x46ed6a(0x460)]||!this[_0x46ed6a(0x271)])return;let _0x58bb3b={'unitId':this[_0x46ed6a(0x4ae)],'subUnitId':this[_0x46ed6a(0x460)],'drawingId':this['_activeShapeId']},{transform:_0x453c1c}=this[_0x46ed6a(0x324)][_0x46ed6a(0x492)](_0x58bb3b);if(_0x453c1c)return{'left':_0x453c1c[_0x46ed6a(0x328)]||0x0,'top':_0x453c1c[_0x46ed6a(0x213)]||0x0,'width':_0x453c1c[_0x46ed6a(0x1c0)]||0x0,'height':_0x453c1c['height']||0x0,'flipX':_0x453c1c[_0x46ed6a(0x23f)]||!0x1,'flipY':_0x453c1c[_0x46ed6a(0x233)]||!0x1,'angle':_0x453c1c[_0x46ed6a(0x505)]};}[_0x12db2b(0x480)](){const _0x4d38c1=_0x12db2b;if(this['_unitId']===void 0x0||this[_0x4d38c1(0x460)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x5b60c2=this[_0x4d38c1(0x401)][_0x4d38c1(0x30d)](this[_0x4d38c1(0x4ae)]);if(!_0x5b60c2||!_0x5b60c2[_0x4d38c1(0x203)](l[_0x4d38c1(0x265)])[_0x4d38c1(0x4fa)]())return;let {scene:_0x2d8c14}=_0x5b60c2,_0x1e376b=this[_0x4d38c1(0x518)]();if(!_0x1e376b)return;let _0x50d8b1=this[_0x4d38c1(0x290)]['getShapeModel'](this[_0x4d38c1(0x4ae)],this[_0x4d38c1(0x460)],this[_0x4d38c1(0x271)]);if(!_0x50d8b1||!(0x0,n[_0x4d38c1(0x4c9)])(_0x50d8b1[_0x4d38c1(0x517)]()))return;let _0x183be4=_0x50d8b1[_0x4d38c1(0x2be)]();if(_0x183be4['length']<0x2)return;let _0x518177=new n[(_0x4d38c1(0x2dc))](_0x1e376b),_0x5a6172=_0x183be4[0x0],_0x32aa13=_0x183be4[_0x183be4[_0x4d38c1(0x2c6)]-0x1],_0xa21984=_0x518177[_0x4d38c1(0x356)](_0x5a6172),_0x41af8a=_0x518177[_0x4d38c1(0x356)](_0x32aa13);this[_0x4d38c1(0x392)](_0x2d8c14,{..._0xa21984},!0x0),this['_addShapeConnectorHandlerObject'](_0x2d8c14,{..._0x41af8a},!0x1);}[_0x12db2b(0x392)](_0x3751dc,_0x40eb9d,_0xa65599){const _0x1d6cb6=_0x12db2b;if(this[_0x1d6cb6(0x271)]===void 0x0||this['_unitId']===void 0x0||this['_subUnitId']===void 0x0)return;let _0x193a9a=_0x1d6cb6(0x42d)+this['_unitId']+'-'+this[_0x1d6cb6(0x460)]+'-'+this['_activeShapeId']+'-'+(_0xa65599?_0x1d6cb6(0x50f):_0x1d6cb6(0x449)),_0x3173da=_0x3751dc[_0x1d6cb6(0x43c)](_0x193a9a);if(_0x3173da){_0x3173da['transformByState']({'left':_0x40eb9d['x']-n[_0x1d6cb6(0x4c8)][_0x1d6cb6(0x4d6)],'top':_0x40eb9d['y']-n[_0x1d6cb6(0x4c8)][_0x1d6cb6(0x4d6)]});return;}let _0x3f8107=new St(_0x193a9a,{'left':_0x40eb9d['x']-n[_0x1d6cb6(0x4c8)][_0x1d6cb6(0x4d6)],'top':_0x40eb9d['y']-n[_0x1d6cb6(0x4c8)][_0x1d6cb6(0x4d6)],'shapeId':this[_0x1d6cb6(0x271)],'unitId':this[_0x1d6cb6(0x4ae)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0xa65599,'width':n[_0x1d6cb6(0x4c8)]['cxnPointRadius']*0x2,'height':n[_0x1d6cb6(0x4c8)][_0x1d6cb6(0x4d6)]*0x2,'zIndex':c[_0x1d6cb6(0x241)]+0x1,'evented':!0x0});this[_0x1d6cb6(0x195)]['push'](_0x3f8107),this[_0x1d6cb6(0x1fb)](_0x3f8107,_0x3751dc,_0xa65599),_0x3751dc[_0x1d6cb6(0x374)](_0x3f8107,c['DRAWING_OBJECT_LAYER_INDEX']+0x1);}['_getScrollInfo'](_0x5f464b,_0x546f05){const _0x1d74df=_0x12db2b;var _0x12f06b;let _0x16a519={'x':0x0,'y':0x0};if(!_0x5f464b||!_0x546f05)return _0x16a519;let _0xc20801=this[_0x1d74df(0x401)][_0x1d74df(0x30d)](_0x5f464b);if(!_0xc20801||!_0xc20801[_0x1d74df(0x203)](l[_0x1d74df(0x265)])['getSkeleton'](_0x546f05))return _0x16a519;let _0x4da006=_0xc20801[_0x1d74df(0x203)](l[_0x1d74df(0x223)]),_0x9e3af=_0x4da006==null?void 0x0:_0x4da006[_0x1d74df(0x491)]();if(!_0x9e3af)return _0x16a519;let _0x2955a8=(_0x12f06b=this[_0x1d74df(0x486)][_0x1d74df(0x42a)](_0x5f464b))==null?void 0x0:_0x12f06b[_0x1d74df(0x3a5)](_0x546f05);if(!_0x2955a8)return _0x16a519;let _0x564491=(0x0,l['getViewportByCell'])(_0x9e3af[_0x1d74df(0x482)],_0x9e3af['sheetViewStartColumn'],_0xc20801[_0x1d74df(0x414)],_0x2955a8);return _0x564491?{'x':_0x564491[_0x1d74df(0x382)],'y':_0x564491[_0x1d74df(0x404)]}:_0x16a519;}[_0x12db2b(0x436)](_0x88dcc3,_0x1e7c71){const _0x378792=_0x12db2b;var _0x3f2841;let _0x95330f=(_0x3f2841=this[_0x378792(0x486)]['getUnit'](_0x88dcc3))==null?void 0x0:_0x3f2841[_0x378792(0x3a5)](_0x1e7c71);return(_0x95330f==null?void 0x0:_0x95330f[_0x378792(0x3c2)]())??0x1;}[_0x12db2b(0x33c)](_0x29296c,_0x4dcc74,_0x5829db,_0x10c44b,_0x206ac9){const _0x22c6a2=_0x12db2b;this[_0x22c6a2(0x219)][_0x22c6a2(0x4ef)](),this[_0x22c6a2(0x3c3)][_0x22c6a2(0x4ef)](),this[_0x22c6a2(0x386)][_0x22c6a2(0x1fe)]();let _0x127001=this[_0x22c6a2(0x216)];this['_sheetBasicShapeConnectionPointController']['endConnectionDetection']();let _0x235589=this[_0x22c6a2(0x2ac)](this['_unitId'],this[_0x22c6a2(0x460)]),_0x22d56b=this[_0x22c6a2(0x436)](this['_unitId'],this[_0x22c6a2(0x460)]),_0x5df183={'x':_0x5829db[_0x22c6a2(0x347)]/_0x22d56b+_0x235589['x'],'y':_0x5829db[_0x22c6a2(0x253)]/_0x22d56b+_0x235589['y']},_0x296880=_0x127001?_0x127001[_0x22c6a2(0x262)]:_0x5df183,_0x313882=_0x10c44b?this[_0x22c6a2(0x1f3)][_0x22c6a2(0x331)]():this[_0x22c6a2(0x1f3)]['getStartConnectInfo'](),_0x4a321e=this[_0x22c6a2(0x1f3)]['getShapeType']();_0x313882?this[_0x22c6a2(0x1c5)](_0x313882,_0x296880,_0x10c44b,_0x127001,_0x206ac9):this[_0x22c6a2(0x521)](_0x4dcc74,_0x296880,_0x10c44b,_0x127001,_0x206ac9,_0x4a321e),this[_0x22c6a2(0x39f)]=!0x1,this[_0x22c6a2(0x334)]=!0x1,this[_0x22c6a2(0x216)]=null,_0x29296c[_0x22c6a2(0x1aa)]();}['_handleFreeEndpointPointerUp'](_0x59bae7,_0x4fedb1,_0x4e7ed5,_0x5318e8,_0x346bf4,_0x868621){const _0x30d14e=_0x12db2b;let _0x255af7=_0x868621===n['ShapeTypeEnum'][_0x30d14e(0x1dd)]||_0x868621===n['ShapeTypeEnum'][_0x30d14e(0x249)],_0x587e6a=_0x4e7ed5?_0x4fedb1:_0x59bae7,_0x5e2e67=_0x4e7ed5?_0x59bae7:_0x4fedb1,_0x1f84dd=this[_0x30d14e(0x1f3)]['getConnectorLinePoints'](),_0x5bff55=this['_activeShapeModel'][_0x30d14e(0x517)](),_0x2b502d=(0x0,n[_0x30d14e(0x2d9)])(_0x5bff55),_0x4d7b8c=n[_0x30d14e(0x2dc)]['getBentTypeFromPoints'](_0x1f84dd,_0x2b502d),_0x1c3722=_0x255af7?n[_0x30d14e(0x2dc)][_0x30d14e(0x50c)](_0x587e6a,_0x5e2e67):n[_0x30d14e(0x2dc)]['computeConnectorResizeLayout'](_0x59bae7,_0x4fedb1,_0x4e7ed5,_0x4d7b8c);_0x5318e8?this[_0x30d14e(0x4a3)](_0x1c3722,_0x5318e8,_0x4e7ed5,_0x346bf4):this[_0x30d14e(0x33a)](_0x1c3722,_0x346bf4);}[_0x12db2b(0x1c5)](_0x58f137,_0x4a2360,_0x393118,_0x6a342b,_0x5b563a){const _0x9b4973=_0x12db2b;let _0xcf18f7=this[_0x9b4973(0x30a)](_0x58f137);if(!_0xcf18f7)return;let _0x3d1e4d=_0x6a342b?_0x6a342b[_0x9b4973(0x505)]:this[_0x9b4973(0x463)](_0xcf18f7['point'],_0x4a2360),_0x363ae8;if(_0x6a342b){let _0x23824c=this[_0x9b4973(0x324)][_0x9b4973(0x492)]({'unitId':_0x6a342b[_0x9b4973(0x315)],'subUnitId':_0x6a342b[_0x9b4973(0x19f)],'drawingId':_0x6a342b[_0x9b4973(0x502)]});if(_0x23824c!=null&&_0x23824c[_0x9b4973(0x1f9)]){let {left:_0x1cb2fc=0x0,top:_0x28355f=0x0,width:_0x19631b=0x0,height:_0x1fe634=0x0,angle:_0x46f248}=_0x23824c[_0x9b4973(0x1f9)];_0x363ae8=(0x0,n[_0x9b4973(0x1a6)])({'left':_0x1cb2fc,'top':_0x28355f,'width':_0x19631b,'height':_0x1fe634},_0x46f248||0x0);}else _0x363ae8={'left':_0x4a2360['x'],'top':_0x4a2360['y'],'width':0x0,'height':0x0};}else _0x363ae8={'left':_0x4a2360['x'],'top':_0x4a2360['y'],'width':0x0,'height':0x0};let _0x33659e={'point':_0x4a2360,'angle':_0x3d1e4d,'bounds':_0x363ae8},_0x49d5cb=_0x393118?_0x33659e:_0xcf18f7,_0x8e1f05=_0x393118?_0xcf18f7:_0x33659e,_0x31cb34=this[_0x9b4973(0x1f3)]['getShapeType'](),_0x1f0f7b=(0x0,n[_0x9b4973(0x254)])(_0x49d5cb,_0x8e1f05,_0x31cb34);this[_0x9b4973(0x1f3)]['removeLinePoints']();let _0x440cc9=(0x0,n[_0x9b4973(0x208)])(_0x1f0f7b,_0x31cb34);_0x6a342b?this['_executeConnectedRouteConnectionCommand'](_0x440cc9,_0x6a342b,_0x58f137,_0x393118,_0x5b563a):this['_executeConnectedRouteResizeCommand'](_0x440cc9,_0x58f137,_0x393118,_0x5b563a);}[_0x12db2b(0x4a3)](_0x223570,_0xdac3cc,_0x393ac1,_0x4bad55){const _0x179613=_0x12db2b;let _0x54c5b5=this[_0x179613(0x1f3)][_0x179613(0x3b1)]()[_0x179613(0x2cf)],_0xc8fee8={..._0x54c5b5},_0x1f1351={'shapeId':_0xdac3cc[_0x179613(0x502)],'cxnIndex':_0xdac3cc['cxnIndex']};_0x393ac1?_0xc8fee8[_0x179613(0x205)]=_0x1f1351:_0xc8fee8['to']=_0x1f1351;let _0x23b965=this[_0x179613(0x1f3)][_0x179613(0x517)](),_0xa64629=(0x0,n[_0x179613(0x208)])(_0x223570[_0x179613(0x4bd)],_0x23b965),_0x232929={'unitId':this[_0x179613(0x4ae)],'subUnitId':this[_0x179613(0x460)],'connectorShapeId':this[_0x179613(0x271)],'width':_0x223570['worldRect'][_0x179613(0x1c0)],'height':_0x223570[_0x179613(0x35b)][_0x179613(0x4b9)],'left':_0x223570['worldRect'][_0x179613(0x328)],'top':_0x223570[_0x179613(0x35b)][_0x179613(0x213)],'flipX':_0x223570[_0x179613(0x35b)]['flipX']||!0x1,'flipY':_0x223570[_0x179613(0x35b)][_0x179613(0x233)]||!0x1,'newAdjustValues':_0xa64629[_0x179613(0x2ee)],'oldAdjustValues':_0x4bad55,'oldRelation':_0x54c5b5,'newRelation':_0xc8fee8,'newLineType':_0xa64629[_0x179613(0x390)],'oldLineType':_0x23b965};this[_0x179613(0x310)][_0x179613(0x461)](i[_0x179613(0x37e)]['id'],_0x232929);}[_0x12db2b(0x33a)](_0x5cae31,_0x58a72f){const _0x3a675e=_0x12db2b;let _0x313d4a=this['_activeShapeModel'][_0x3a675e(0x517)](),_0x494cd4=(0x0,n[_0x3a675e(0x208)])(_0x5cae31[_0x3a675e(0x4bd)],_0x313d4a),_0x3333c9={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'shapeId':this[_0x3a675e(0x271)],'width':_0x5cae31[_0x3a675e(0x35b)]['width'],'height':_0x5cae31['worldRect'][_0x3a675e(0x4b9)],'left':_0x5cae31[_0x3a675e(0x35b)]['left'],'top':_0x5cae31[_0x3a675e(0x35b)]['top'],'flipX':_0x5cae31[_0x3a675e(0x35b)]['flipX']||!0x1,'flipY':_0x5cae31[_0x3a675e(0x35b)][_0x3a675e(0x233)]||!0x1,'angle':_0x5cae31[_0x3a675e(0x35b)]['angle']||0x0,'newAdjustValues':_0x494cd4['adjustValues'],'oldAdjustValues':_0x58a72f,'newLineType':_0x494cd4[_0x3a675e(0x390)],'oldLineType':_0x313d4a};this[_0x3a675e(0x310)][_0x3a675e(0x461)](i['UpdateLineShapeResizeCommand']['id'],_0x3333c9);}[_0x12db2b(0x2d3)](_0xb68b29,_0x493e63,_0x109d9c,_0x53e3a2,_0x3ed38b){const _0x5b52d5=_0x12db2b;let _0xfa180f=this[_0x5b52d5(0x1f3)][_0x5b52d5(0x3b1)]()[_0x5b52d5(0x2cf)],_0x137e75={..._0xfa180f},_0x21bb73={'shapeId':_0x493e63['shapeId'],'cxnIndex':_0x493e63[_0x5b52d5(0x327)]};_0x53e3a2?(_0x137e75[_0x5b52d5(0x205)]=_0x21bb73,_0x137e75['to']=_0x109d9c):(_0x137e75[_0x5b52d5(0x205)]=_0x109d9c,_0x137e75['to']=_0x21bb73);let _0x5ef6a8={'unitId':this[_0x5b52d5(0x4ae)],'subUnitId':this[_0x5b52d5(0x460)],'connectorShapeId':this[_0x5b52d5(0x271)],'width':_0xb68b29[_0x5b52d5(0x35b)]['width'],'height':_0xb68b29['worldRect'][_0x5b52d5(0x4b9)],'left':_0xb68b29[_0x5b52d5(0x35b)]['left'],'top':_0xb68b29[_0x5b52d5(0x35b)][_0x5b52d5(0x213)],'flipX':_0xb68b29[_0x5b52d5(0x35b)][_0x5b52d5(0x23f)]||!0x1,'flipY':_0xb68b29[_0x5b52d5(0x35b)][_0x5b52d5(0x233)]||!0x1,'oldAdjustValues':_0x3ed38b,'newAdjustValues':_0xb68b29[_0x5b52d5(0x2ee)],'newLineType':_0xb68b29[_0x5b52d5(0x390)],'rotation':_0xb68b29[_0x5b52d5(0x438)],'oldRelation':_0xfa180f,'newRelation':_0x137e75};this[_0x5b52d5(0x310)][_0x5b52d5(0x461)](i['UpdateConnectorRelationCommand']['id'],_0x5ef6a8);}[_0x12db2b(0x381)](_0x3cfda9,_0x3f6b76,_0x32b2fc,_0x56c2bf){const _0xff762e=_0x12db2b;let _0x2d783d=this[_0xff762e(0x1f3)][_0xff762e(0x3b1)]()[_0xff762e(0x2cf)],_0x6e9efe={};_0x32b2fc?(_0x6e9efe['to']=_0x3f6b76,_0x6e9efe[_0xff762e(0x205)]=void 0x0):(_0x6e9efe[_0xff762e(0x205)]=_0x3f6b76,_0x6e9efe['to']=void 0x0);let _0x54f59c={'unitId':this[_0xff762e(0x4ae)],'subUnitId':this[_0xff762e(0x460)],'connectorShapeId':this[_0xff762e(0x271)],'width':_0x3cfda9[_0xff762e(0x35b)][_0xff762e(0x1c0)],'height':_0x3cfda9[_0xff762e(0x35b)][_0xff762e(0x4b9)],'left':_0x3cfda9[_0xff762e(0x35b)][_0xff762e(0x328)],'top':_0x3cfda9[_0xff762e(0x35b)][_0xff762e(0x213)],'flipX':_0x3cfda9[_0xff762e(0x35b)][_0xff762e(0x23f)]||!0x1,'flipY':_0x3cfda9[_0xff762e(0x35b)]['flipY']||!0x1,'oldAdjustValues':_0x56c2bf,'newAdjustValues':_0x3cfda9[_0xff762e(0x2ee)],'newLineType':_0x3cfda9[_0xff762e(0x390)],'rotation':_0x3cfda9[_0xff762e(0x438)],'oldRelation':_0x2d783d,'newRelation':_0x6e9efe};this['_commandService'][_0xff762e(0x461)](i[_0xff762e(0x37e)]['id'],_0x54f59c);}[_0x12db2b(0x1fb)](_0x4c0acb,_0x19872b,_0x511949){const _0x1370fa=_0x12db2b;this[_0x1370fa(0x22a)]((0x0,a[_0x1370fa(0x21b)])(_0x4c0acb['onPointerDown$'][_0x1370fa(0x496)]((_0xcd8998,_0x2f83ad)=>{const _0x70e8e5=_0x1370fa;let _0x572ecd=_0x4c0acb[_0x70e8e5(0x512)]();if(this[_0x70e8e5(0x1f3)]=this[_0x70e8e5(0x290)][_0x70e8e5(0x435)](_0x572ecd['unitId'],_0x572ecd[_0x70e8e5(0x19f)],_0x572ecd[_0x70e8e5(0x474)]),!this[_0x70e8e5(0x1f3)])return;let _0x52468e={};this['_activeShapeModel'][_0x70e8e5(0x465)]()['forEach'](_0x3b1603=>{const _0x114b97=_0x70e8e5;let _0x20a155=this[_0x114b97(0x1f3)][_0x114b97(0x37c)](_0x3b1603);_0x20a155!==void 0x0&&(_0x52468e[_0x3b1603]=_0x20a155);});let _0x1e7c88=this[_0x70e8e5(0x518)]();if(!_0x1e7c88)return;this[_0x70e8e5(0x4f1)]={..._0x1e7c88};let _0x4c7c69=new n['ConnectorCoordinateTransform'](this[_0x70e8e5(0x4f1)]),_0x21aa1f=(0x0,s[_0x70e8e5(0x3d3)])({'unitId':this['_unitId'],'subUnitId':this[_0x70e8e5(0x460)],'drawingId':this[_0x70e8e5(0x271)]}),_0x5d31a7=_0x19872b[_0x70e8e5(0x43c)](_0x21aa1f);this[_0x70e8e5(0x39f)]=!0x0,_0x19872b[_0x70e8e5(0x430)](),this['_sheetBasicShapeConnectionPointController'][_0x70e8e5(0x31d)](_0x19872b,this[_0x70e8e5(0x4ae)],this[_0x70e8e5(0x460)],this[_0x70e8e5(0x271)]),this[_0x70e8e5(0x216)]=null;let _0x3b8b2d=this[_0x70e8e5(0x1f3)][_0x70e8e5(0x2be)](),_0x5c0ebc=_0x3b8b2d[0x0],_0xeaafa0=_0x3b8b2d[_0x3b8b2d[_0x70e8e5(0x2c6)]-0x1],_0x551d71=_0x511949?_0x4c7c69[_0x70e8e5(0x356)](_0xeaafa0):_0x4c7c69[_0x70e8e5(0x356)](_0x5c0ebc);this[_0x70e8e5(0x219)]=_0x19872b['onPointerMove$']['subscribeEvent']((_0x512ab2,_0xb28a86)=>{const _0x1d459e=_0x70e8e5;if(!this[_0x1d459e(0x39f)]||!this[_0x1d459e(0x1f3)])return;this[_0x1d459e(0x334)]||=(this[_0x1d459e(0x386)][_0x1d459e(0x318)](),this[_0x1d459e(0x1f3)][_0x1d459e(0x23a)](),!0x0);let _0x59eb67=this['_getScrollInfo'](this[_0x1d459e(0x4ae)],this[_0x1d459e(0x460)]),_0x9a84bb=this[_0x1d459e(0x436)](this[_0x1d459e(0x4ae)],this[_0x1d459e(0x460)]),_0x25cf79={'x':_0x512ab2[_0x1d459e(0x347)]/_0x9a84bb+_0x59eb67['x'],'y':_0x512ab2[_0x1d459e(0x253)]/_0x9a84bb+_0x59eb67['y']},_0x4f7572=this['_sheetBasicShapeConnectionPointController'][_0x1d459e(0x4ab)](_0x25cf79);if(_0x4f7572){let {shapeId:_0x41ec53,unitId:_0x3d94d8,subUnitId:_0x10fc43}=_0x4f7572;if(_0x41ec53&&_0x3d94d8&&_0x10fc43){let _0x448421=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x3d94d8,'subUnitId':_0x10fc43,'drawingId':_0x41ec53});_0x4f7572[_0x1d459e(0x505)]=(_0x19872b[_0x1d459e(0x43c)](_0x448421)[_0x1d459e(0x505)]||0x0)+_0x4f7572['angle'];}}this['_currentConnectionTarget']=_0x4f7572;let _0x3ce871=_0x511949?this[_0x1d459e(0x1f3)][_0x1d459e(0x331)]():this[_0x1d459e(0x1f3)][_0x1d459e(0x2f5)]();if(_0x3ce871){this['_handleConnectedEndpointMove'](_0x3ce871,_0x25cf79,_0x511949,_0x5d31a7,_0x4c0acb);return;}this[_0x1d459e(0x26a)](_0x25cf79,_0x551d71,_0x511949,_0x5d31a7,_0x4c0acb);}),this[_0x70e8e5(0x3c3)]=_0x19872b[_0x70e8e5(0x1f6)][_0x70e8e5(0x496)]((_0x122add,_0x237e2a)=>{const _0x1b97bb=_0x70e8e5;this[_0x1b97bb(0x33c)](_0x19872b,_0x551d71,_0x122add,_0x511949,_0x52468e);}),_0x2f83ad['stopPropagation']();})));}[_0x12db2b(0x3b4)](_0x1808c3,_0x31eacd,_0x3608f3){const _0x329284=_0x12db2b;let _0x1afaa2=this['_sheetsShapeService']['getBasicShapeRelation'](_0x1808c3,_0x31eacd,_0x3608f3);if(!_0x1afaa2||_0x1afaa2[_0x329284(0x2c6)]===0x0)return;let _0x133eba=this[_0x329284(0x401)][_0x329284(0x30d)](_0x1808c3);if(!_0x133eba)return;let {scene:_0x2c574c}=_0x133eba;for(let _0x548a18 of _0x1afaa2){let _0x1305cc=_0x548a18[_0x329284(0x1d5)],_0x50f97c=this[_0x329284(0x290)][_0x329284(0x435)](_0x1808c3,_0x31eacd,_0x1305cc);if(!_0x50f97c)continue;let _0x5d1dcc=_0x50f97c[_0x329284(0x2f5)](),_0x424000=_0x50f97c[_0x329284(0x331)](),_0x427cdc=(_0x5d1dcc==null?void 0x0:_0x5d1dcc[_0x329284(0x502)])===_0x3608f3,_0x2fd0e5=(0x0,s[_0x329284(0x3d3)])({'unitId':_0x1808c3,'subUnitId':_0x31eacd,'drawingId':_0x1305cc}),_0x3b00db=_0x2c574c[_0x329284(0x43c)](_0x2fd0e5);if(!_0x3b00db)continue;let _0x37ae9c=this[_0x329284(0x324)]['getDrawingByParam']({'unitId':_0x1808c3,'subUnitId':_0x31eacd,'drawingId':_0x1305cc});_0x37ae9c!=null&&_0x37ae9c['transform']&&(_0x5d1dcc&&_0x424000?this[_0x329284(0x2f8)](_0x1808c3,_0x31eacd,_0x1305cc,_0x50f97c,_0x5d1dcc,_0x424000,_0x3b00db):this[_0x329284(0x1b6)](_0x1808c3,_0x31eacd,_0x1305cc,_0x50f97c,_0x427cdc?_0x5d1dcc:_0x424000,_0x427cdc,_0x37ae9c,_0x3b00db));}}[_0x12db2b(0x2f8)](_0xfafd84,_0x141dfe,_0x2dea86,_0x4d9c1d,_0x4eed42,_0x5f5782,_0x49e5f6){const _0xe0ad1f=_0x12db2b;let _0x37aaa2=this[_0xe0ad1f(0x4ae)],_0x3b477b=this['_subUnitId'];this[_0xe0ad1f(0x4ae)]=_0xfafd84,this['_subUnitId']=_0x141dfe;let _0x495b60=this[_0xe0ad1f(0x30a)](_0x4eed42),_0x451c09=this[_0xe0ad1f(0x30a)](_0x5f5782);if(this[_0xe0ad1f(0x4ae)]=_0x37aaa2,this['_subUnitId']=_0x3b477b,!_0x495b60||!_0x451c09)return;let _0x220b44=_0x4d9c1d[_0xe0ad1f(0x517)](),_0x47175a=(0x0,n['routeConnectorLineShape'])(_0x495b60,_0x451c09,_0x220b44);_0x47175a&&_0x4d9c1d['updateLinePoints'](_0x47175a);let _0x48eaef=(0x0,n[_0xe0ad1f(0x208)])(_0x47175a,_0x220b44);_0x48eaef[_0xe0ad1f(0x390)]!==_0x220b44&&_0x4d9c1d[_0xe0ad1f(0x4d9)](_0x48eaef[_0xe0ad1f(0x390)]),_0x4d9c1d[_0xe0ad1f(0x23a)]();for(let [_0x333016,_0x1f621e]of Object[_0xe0ad1f(0x4dd)](_0x48eaef[_0xe0ad1f(0x2ee)]))_0x4d9c1d[_0xe0ad1f(0x4b1)](_0x333016,_0x1f621e);_0x4d9c1d['updateContext']({'width':_0x48eaef[_0xe0ad1f(0x35b)][_0xe0ad1f(0x1c0)],'height':_0x48eaef[_0xe0ad1f(0x35b)][_0xe0ad1f(0x4b9)]}),_0x49e5f6[_0xe0ad1f(0x2c8)]({'flipX':_0x48eaef[_0xe0ad1f(0x35b)][_0xe0ad1f(0x23f)],'flipY':_0x48eaef[_0xe0ad1f(0x35b)][_0xe0ad1f(0x233)],'left':_0x48eaef[_0xe0ad1f(0x35b)]['left'],'top':_0x48eaef[_0xe0ad1f(0x35b)][_0xe0ad1f(0x213)],'width':_0x48eaef[_0xe0ad1f(0x35b)][_0xe0ad1f(0x1c0)],'height':_0x48eaef[_0xe0ad1f(0x35b)][_0xe0ad1f(0x4b9)],'angle':_0x48eaef['rotation']}),_0x4d9c1d[_0xe0ad1f(0x4d5)]();}[_0x12db2b(0x1b6)](_0x43067d,_0xfebd00,_0x5d2c1f,_0x249851,_0x1295d8,_0x143c6d,_0x503ba8,_0x1f742e){const _0x1071c7=_0x12db2b;let _0x557744=this[_0x1071c7(0x4ae)],_0x58faf8=this[_0x1071c7(0x460)];this[_0x1071c7(0x4ae)]=_0x43067d,this[_0x1071c7(0x460)]=_0xfebd00;let _0x4bb3a0=this[_0x1071c7(0x30a)](_0x1295d8);if(this[_0x1071c7(0x4ae)]=_0x557744,this[_0x1071c7(0x460)]=_0x58faf8,!_0x4bb3a0)return;let {left:_0x29c710=0x0,top:_0xcceff4=0x0,width:_0x133bef=0x0,height:_0x53c13e=0x0,flipX:_0x1c69e4=!0x1,flipY:_0x4d755a=!0x1}=_0x503ba8[_0x1071c7(0x1f9)],_0x3e66f7=_0x249851['getConnectorLinePoints']();if(_0x3e66f7[_0x1071c7(0x2c6)]<0x2)return;let _0x1c36ad=new n['ConnectorCoordinateTransform']({'left':_0x29c710,'top':_0xcceff4,'width':_0x133bef,'height':_0x53c13e,'flipX':_0x1c69e4,'flipY':_0x4d755a}),_0x4f52e3=_0x143c6d?_0x3e66f7[_0x3e66f7[_0x1071c7(0x2c6)]-0x1]:_0x3e66f7[0x0],_0x164824=_0x1c36ad[_0x1071c7(0x356)](_0x4f52e3),_0x83e051=n['ConnectorCoordinateTransform'][_0x1071c7(0x468)](_0x164824,_0x4bb3a0[_0x1071c7(0x4af)],!_0x143c6d);_0x1f742e['transformByState']({'flipX':_0x83e051[_0x1071c7(0x35b)][_0x1071c7(0x23f)],'flipY':_0x83e051[_0x1071c7(0x35b)][_0x1071c7(0x233)],'left':_0x83e051['worldRect'][_0x1071c7(0x328)],'top':_0x83e051[_0x1071c7(0x35b)]['top'],'width':_0x83e051[_0x1071c7(0x35b)]['width'],'height':_0x83e051[_0x1071c7(0x35b)][_0x1071c7(0x4b9)],'angle':_0x83e051['worldRect'][_0x1071c7(0x505)]}),_0x1f742e[_0x1071c7(0x335)](!0x0);}[_0x12db2b(0x41c)](){const _0x1b6b57=_0x12db2b;this[_0x1b6b57(0x195)][_0x1b6b57(0x2c6)]!==0x0&&(this[_0x1b6b57(0x195)]['forEach'](_0x3e66c8=>{const _0x50c951=_0x1b6b57;_0x3e66c8[_0x50c951(0x1e8)]();}),this[_0x1b6b57(0x195)]=[]);}[_0x12db2b(0x423)](){const _0x253602=_0x12db2b;let _0x2d0004=this['_univerInstanceService'][_0x253602(0x4d4)](a['UniverInstanceType'][_0x253602(0x29c)]);this[_0x253602(0x22a)](_0x2d0004[_0x253602(0x49a)]((0x0,u[_0x253602(0x26b)])(_0x5c694a=>_0x5c694a?_0x5c694a[_0x253602(0x448)][_0x253602(0x49a)]((0x0,u[_0x253602(0x26b)])(_0x3c69e7=>{const _0x5a3fed=_0x253602;if(!_0x3c69e7)return u[_0x5a3fed(0x399)];let _0x170e3b=_0x5c694a['getUnitId'](),_0x22ffd4=this['_renderManagerService'][_0x5a3fed(0x30d)](_0x170e3b),_0x346c9e=_0x22ffd4==null?void 0x0:_0x22ffd4[_0x5a3fed(0x414)];return _0x346c9e?(0x0,u['of'])(_0x346c9e):u[_0x5a3fed(0x399)];})):u['EMPTY']))[_0x253602(0x417)](_0x39a563=>{const _0x150a0f=_0x253602;let _0x53058d=_0x39a563[_0x150a0f(0x198)]();this['disposeWithMe'](_0x39a563[_0x150a0f(0x21c)]['subscribeEvent'](_0x77069=>{const _0x4f5d5=_0x150a0f;this[_0x4f5d5(0x28c)]&&this[_0x4f5d5(0x271)]&&this[_0x4f5d5(0x41c)]();})),this[_0x150a0f(0x22a)](_0x53058d[_0x150a0f(0x34e)]['subscribe'](_0x29111d=>{const _0xabafa=_0x150a0f;let {objects:_0x32a3af}=_0x29111d;this['_clearShapeConnectorHandlerObjects'](),_0x32a3af!==null&&_0x32a3af[_0xabafa(0x1f5)]===0x1&&_0x32a3af[_0xabafa(0x1d8)]()[_0xabafa(0x247)]()['value']instanceof D&&(this[_0xabafa(0x28c)]=!0x0);})),this[_0x150a0f(0x22a)](_0x53058d[_0x150a0f(0x38a)][_0x150a0f(0x417)](_0x4a5bd5=>{const _0x34dff6=_0x150a0f;this['_isDrawingShapePointDown']&&this[_0x34dff6(0x41c)]();})),this[_0x150a0f(0x22a)](_0x39a563[_0x150a0f(0x1f6)][_0x150a0f(0x496)](()=>{const _0x32bc97=_0x150a0f;this['_isDrawingShapePointDown']&&(this[_0x32bc97(0x28c)]=!0x1,this[_0x32bc97(0x480)]());})),this[_0x150a0f(0x22a)](_0x53058d['changeEnd$'][_0x150a0f(0x417)](()=>{const _0x5de91d=_0x150a0f;this[_0x5de91d(0x4ae)]&&this[_0x5de91d(0x460)]&&this[_0x5de91d(0x271)]&&this[_0x5de91d(0x324)][_0x5de91d(0x492)]({'unitId':this[_0x5de91d(0x4ae)],'subUnitId':this[_0x5de91d(0x460)],'drawingId':this[_0x5de91d(0x271)]})&&(this[_0x5de91d(0x41c)](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x12db2b(0x4f7)](){const _0x329dbf=_0x12db2b;this[_0x329dbf(0x22a)](this['_drawingManagerService'][_0x329dbf(0x344)][_0x329dbf(0x417)](_0x428f09=>{const _0x50eed9=_0x329dbf;if(_0x428f09[_0x50eed9(0x2c6)]===0x1){let _0x1c2b2b=_0x428f09[0x0];if(_0x1c2b2b[_0x50eed9(0x2f3)]===a[_0x50eed9(0x3bd)][_0x50eed9(0x3c0)]){let _0x4d2225=this['_sheetsShapeService'][_0x50eed9(0x435)](_0x1c2b2b[_0x50eed9(0x315)],_0x1c2b2b['subUnitId'],_0x1c2b2b[_0x50eed9(0x474)]);if(_0x4d2225&&(0x0,n[_0x50eed9(0x4c9)])(_0x4d2225['getShapeType']())){this[_0x50eed9(0x271)]=_0x1c2b2b[_0x50eed9(0x474)],this[_0x50eed9(0x4ae)]=_0x1c2b2b[_0x50eed9(0x315)],this[_0x50eed9(0x460)]=_0x1c2b2b[_0x50eed9(0x19f)],this[_0x50eed9(0x41c)](),this[_0x50eed9(0x480)]();return;}}}this[_0x50eed9(0x271)]=void 0x0,this[_0x50eed9(0x4ae)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x50eed9(0x41c)]();})),this[_0x329dbf(0x22a)](this[_0x329dbf(0x324)][_0x329dbf(0x23c)]['subscribe'](_0x3e6295=>{const _0x14afbc=_0x329dbf;if(_0x3e6295[_0x14afbc(0x2c6)]===0x1){var _0x199d22;let _0xc78327=_0x3e6295[0x0],_0x147782=(_0x199d22=this[_0x14afbc(0x324)][_0x14afbc(0x492)](_0xc78327))==null?void 0x0:_0x199d22[_0x14afbc(0x2f3)];_0x147782===a[_0x14afbc(0x3bd)][_0x14afbc(0x3c0)]&&_0xc78327['drawingId']===this['_activeShapeId']?(this[_0x14afbc(0x41c)](),this[_0x14afbc(0x480)]()):!this[_0x14afbc(0x271)]&&_0x147782===a[_0x14afbc(0x3bd)][_0x14afbc(0x3c0)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0xc78327['unitId'],_0xc78327[_0x14afbc(0x19f)],_0xc78327[_0x14afbc(0x474)]);}})),this[_0x329dbf(0x22a)](this[_0x329dbf(0x324)][_0x329dbf(0x3a1)][_0x329dbf(0x417)](_0x16a0c4=>{const _0x4b3bdd=_0x329dbf;for(let _0x4aea48 of _0x16a0c4){let {drawingId:_0xe3f8e6}=_0x4aea48;if(this[_0x4b3bdd(0x271)]===_0xe3f8e6){this['_reset']();return;}}}));}[_0x12db2b(0x317)](_0x22fb7c,_0x38ca48,_0x35fd2a,_0x1bab88,_0x5d7ae3){const _0x3560a6=_0x12db2b;var _0xbbf6a0;if(!this[_0x3560a6(0x1f3)])return;let _0x3d8a78=this[_0x3560a6(0x30a)](_0x22fb7c);if(!_0x3d8a78)return;let _0xd8c556=this[_0x3560a6(0x216)]?this[_0x3560a6(0x216)][_0x3560a6(0x262)]:_0x38ca48,_0x4834df=this[_0x3560a6(0x216)]?this[_0x3560a6(0x216)][_0x3560a6(0x505)]:this[_0x3560a6(0x463)](_0x3d8a78[_0x3560a6(0x4af)],_0xd8c556),_0x1eb644;if(this['_currentConnectionTarget']){let _0x7b12ee=this[_0x3560a6(0x324)][_0x3560a6(0x492)]({'unitId':this[_0x3560a6(0x216)][_0x3560a6(0x315)],'subUnitId':this['_currentConnectionTarget'][_0x3560a6(0x19f)],'drawingId':this['_currentConnectionTarget'][_0x3560a6(0x502)]});if(_0x7b12ee!=null&&_0x7b12ee[_0x3560a6(0x1f9)]){let {left:_0x6fa35b=0x0,top:_0x31b28d=0x0,width:_0x139a09=0x0,height:_0x3c9d5e=0x0,angle:_0x2caa65}=_0x7b12ee[_0x3560a6(0x1f9)];_0x1eb644=(0x0,n[_0x3560a6(0x1a6)])({'left':_0x6fa35b,'top':_0x31b28d,'width':_0x139a09,'height':_0x3c9d5e},_0x2caa65||0x0);}else _0x1eb644={'left':_0xd8c556['x'],'top':_0xd8c556['y'],'width':0x0,'height':0x0};}else _0x1eb644={'left':_0xd8c556['x'],'top':_0xd8c556['y'],'width':0x0,'height':0x0};let _0x996e29={'point':_0xd8c556,'angle':_0x4834df,'bounds':_0x1eb644},_0x402ec4=_0x35fd2a?_0x996e29:_0x3d8a78,_0x18437d=_0x35fd2a?_0x3d8a78:_0x996e29,_0x565d6e=this[_0x3560a6(0x1f3)][_0x3560a6(0x517)](),_0xeca9bd=(0x0,n[_0x3560a6(0x254)])(_0x402ec4,_0x18437d,_0x565d6e);_0xeca9bd&&this[_0x3560a6(0x1f3)][_0x3560a6(0x1b4)](_0xeca9bd);let _0x206811=(0x0,n[_0x3560a6(0x208)])(_0xeca9bd,_0x565d6e);_0x206811[_0x3560a6(0x390)]!==_0x565d6e&&this['_activeShapeModel'][_0x3560a6(0x4d9)](_0x206811[_0x3560a6(0x390)]);for(let [_0x353c99,_0x307b7b]of Object['entries'](_0x206811[_0x3560a6(0x2ee)]))this['_activeShapeModel']['setAdjustValueByName'](_0x353c99,_0x307b7b);this[_0x3560a6(0x1f3)][_0x3560a6(0x33b)]({'width':_0x206811[_0x3560a6(0x35b)][_0x3560a6(0x1c0)],'height':_0x206811[_0x3560a6(0x35b)][_0x3560a6(0x4b9)]}),_0x1bab88[_0x3560a6(0x2c8)]({'flipX':_0x206811['worldRect'][_0x3560a6(0x23f)],'flipY':_0x206811[_0x3560a6(0x35b)][_0x3560a6(0x233)],'left':_0x206811[_0x3560a6(0x35b)]['left'],'top':_0x206811[_0x3560a6(0x35b)]['top'],'width':_0x206811[_0x3560a6(0x35b)]['width'],'height':_0x206811[_0x3560a6(0x35b)][_0x3560a6(0x4b9)],'angle':_0x206811[_0x3560a6(0x438)]}),_0x1bab88[_0x3560a6(0x335)](!0x0);let _0x24c4f8=((_0xbbf6a0=this[_0x3560a6(0x216)])==null?void 0x0:_0xbbf6a0['worldPoint'])??_0x38ca48;_0x5d7ae3[_0x3560a6(0x2c8)]({'left':_0x24c4f8['x']-n[_0x3560a6(0x4c8)][_0x3560a6(0x4d6)],'top':_0x24c4f8['y']-n[_0x3560a6(0x4c8)][_0x3560a6(0x4d6)]});}[_0x12db2b(0x26a)](_0x143172,_0x1fe148,_0x1b9e9d,_0x143e78,_0x59cd3b){const _0x28bcd1=_0x12db2b;var _0x2a7536,_0xec519e;let _0x288c66=((_0x2a7536=this[_0x28bcd1(0x216)])==null?void 0x0:_0x2a7536[_0x28bcd1(0x262)])??_0x143172,_0xa51024=n['ConnectorCoordinateTransform'][_0x28bcd1(0x468)](_0x1fe148,_0x288c66,_0x1b9e9d);_0x143e78[_0x28bcd1(0x2c8)]({'flipX':_0xa51024[_0x28bcd1(0x35b)][_0x28bcd1(0x23f)],'flipY':_0xa51024[_0x28bcd1(0x35b)]['flipY'],'left':_0xa51024[_0x28bcd1(0x35b)][_0x28bcd1(0x328)],'top':_0xa51024['worldRect'][_0x28bcd1(0x213)],'width':_0xa51024[_0x28bcd1(0x35b)][_0x28bcd1(0x1c0)],'height':_0xa51024[_0x28bcd1(0x35b)][_0x28bcd1(0x4b9)],'angle':_0xa51024[_0x28bcd1(0x35b)]['angle']});let _0x2873a5=((_0xec519e=this[_0x28bcd1(0x216)])==null?void 0x0:_0xec519e[_0x28bcd1(0x262)])??_0x143172;_0x59cd3b[_0x28bcd1(0x2c8)]({'left':_0x2873a5['x']-n[_0x28bcd1(0x4c8)][_0x28bcd1(0x4d6)],'top':_0x2873a5['y']-n[_0x28bcd1(0x4c8)]['cxnPointRadius']});}['_getConnectPointInfo'](_0x38c01d){const _0x5d0230=_0x12db2b;if(!this[_0x5d0230(0x4ae)]||!this[_0x5d0230(0x460)])return null;let {shapeId:_0x548627,cxnIndex:_0x4774c8}=_0x38c01d,_0x16d6ab=this[_0x5d0230(0x290)][_0x5d0230(0x435)](this[_0x5d0230(0x4ae)],this['_subUnitId'],_0x548627);if(!_0x16d6ab)return null;let _0x578491=this[_0x5d0230(0x324)][_0x5d0230(0x492)]({'unitId':this[_0x5d0230(0x4ae)],'subUnitId':this['_subUnitId'],'drawingId':_0x548627});if(!(_0x578491!=null&&_0x578491[_0x5d0230(0x1f9)]))return null;let {left:_0xdb6490=0x0,top:_0x308953=0x0,width:_0x2e6987=0x0,height:_0x4e67dd=0x0,flipX:_0x3baad6=!0x1,flipY:_0x137c4c=!0x1,angle:_0x2963cc}=_0x578491[_0x5d0230(0x1f9)];_0x16d6ab['updateContext']({'width':_0x2e6987,'height':_0x4e67dd});let _0x290ad9=_0x16d6ab[_0x5d0230(0x2e1)]()[_0x5d0230(0x440)](_0x327640=>_0x327640[_0x5d0230(0x49d)]===_0x4774c8);if(!_0x290ad9)return null;let _0x5b933c=_0x3baad6?_0x2e6987-_0x290ad9['x']:_0x290ad9['x'],_0x40b788=_0x137c4c?_0x4e67dd-_0x290ad9['y']:_0x290ad9['y'];if(_0x2963cc!==0x0&&_0x2963cc!=null){let _0x39134b=_0x2963cc*Math['PI']/0xb4,_0x30551f=Math['cos'](_0x39134b),_0x5122e9=Math[_0x5d0230(0x1ab)](_0x39134b),_0x195f71=_0x2e6987/0x2,_0x224fe7=_0x4e67dd/0x2,_0x1a7108=_0x5b933c-_0x195f71,_0xf08d3b=_0x40b788-_0x224fe7;_0x5b933c=_0x195f71+_0x1a7108*_0x30551f-_0xf08d3b*_0x5122e9,_0x40b788=_0x224fe7+_0x1a7108*_0x5122e9+_0xf08d3b*_0x30551f;}_0x5b933c+=_0xdb6490,_0x40b788+=_0x308953;let _0x3eb2c1=_0x290ad9[_0x5d0230(0x4cc)]/0xea60;_0x3baad6&&(_0x3eb2c1=0xb4-_0x3eb2c1),_0x137c4c&&(_0x3eb2c1=-_0x3eb2c1),_0x3eb2c1+=_0x2963cc||0x0,_0x3eb2c1=(_0x3eb2c1%0x168+0x168)%0x168;let _0x51ed7f=(0x0,n['getBasicShapeRotateBound'])({'left':_0xdb6490,'top':_0x308953,'width':_0x2e6987,'height':_0x4e67dd},_0x2963cc||0x0);return{'point':{'x':_0x5b933c,'y':_0x40b788},'angle':_0x3eb2c1,'bounds':_0x51ed7f};}[_0x12db2b(0x463)](_0x8920b,_0x484e2f){const _0x5b5bdb=_0x12db2b;let _0x2d794f=_0x484e2f['x']-_0x8920b['x'],_0x3c04e1=_0x484e2f['y']-_0x8920b['y'];return Math[_0x5b5bdb(0x516)](_0x2d794f)>=Math[_0x5b5bdb(0x516)](_0x3c04e1)?_0x2d794f>=0x0?0xb4:0x0:_0x3c04e1>=0x0?0x10e:0x5a;}['_reset'](){const _0x4d1c9d=_0x12db2b;this[_0x4d1c9d(0x271)]=void 0x0,this['_unitId']=void 0x0,this[_0x4d1c9d(0x460)]=void 0x0,this[_0x4d1c9d(0x41c)]();}[_0x12db2b(0x1e8)](){const _0x553077=_0x12db2b;this[_0x553077(0x41c)](),super['dispose']();}};Ct=A([k(0x1,a[_0x12db2b(0x4c6)]),k(0x2,c['IRenderManagerService']),k(0x3,s[_0x12db2b(0x421)]),k(0x4,a[_0x12db2b(0x202)]),k(0x5,(0x0,a[_0x12db2b(0x25a)])(i[_0x12db2b(0x2e7)])),k(0x6,(0x0,a[_0x12db2b(0x25a)])(M)),k(0x7,(0x0,a[_0x12db2b(0x25a)])(K))],Ct);let J=class extends a['Disposable']{constructor(_0x3cffa4,_0x3d79d8,_0x2636a7){const _0x5acc77=_0x12db2b;super(),this[_0x5acc77(0x40b)]=_0x3cffa4,this[_0x5acc77(0x324)]=_0x3d79d8,this['_shapeRenderController']=_0x2636a7,this['_initPrinting']();}[_0x12db2b(0x34f)](){const _0x318885=_0x12db2b;this[_0x318885(0x22a)](this[_0x318885(0x40b)][_0x318885(0x1f0)][_0x318885(0x2b6)](this[_0x318885(0x40b)]['interceptor'][_0x318885(0x48a)]()[_0x318885(0x19a)],{'handler':(_0x5b5015,_0x457874,_0x579feb)=>{const _0x2735f8=_0x318885;var _0x24da84;let {unitId:_0x45a9c5,subUnitId:_0xf6e43a,scene:_0x25e48b,resourceCollector:_0x4fc16c}=_0x457874,_0x41ecca=(_0x24da84=this[_0x2735f8(0x324)][_0x2735f8(0x4f4)](_0x45a9c5))==null?void 0x0:_0x24da84[_0xf6e43a];return _0x41ecca==null||_0x41ecca[_0x2735f8(0x411)][_0x2735f8(0x444)](_0x32768c=>{const _0x505c01=_0x2735f8;let _0x2d9d2b=_0x41ecca['data'][_0x32768c];_0x2d9d2b[_0x505c01(0x2f3)]===a[_0x505c01(0x3bd)][_0x505c01(0x3c0)]&&!_0x2d9d2b[_0x505c01(0x4da)]&&this[_0x505c01(0x1ac)][_0x505c01(0x3f8)](_0x2d9d2b,_0x25e48b,{'resourceCollector':_0x4fc16c});}),_0x579feb(_0x5b5015);}}));}};J=A([k(0x0,(0x0,a[_0x12db2b(0x25a)])(l['SheetPrintInterceptorService'])),k(0x1,s[_0x12db2b(0x421)]),k(0x2,(0x0,a[_0x12db2b(0x25a)])(j))],J);let Y=class extends a['Disposable']{constructor(_0x478d7c,_0x476498,_0x44b735){const _0x11473d=_0x12db2b;super(),this['_commandService']=_0x478d7c,this[_0x11473d(0x51b)]=_0x476498,this['_sheetPermissionCheckController']=_0x44b735,this[_0x11473d(0x333)]();}[_0x12db2b(0x333)](){const _0x1fe7e9=_0x12db2b;this[_0x1fe7e9(0x22a)](this[_0x1fe7e9(0x310)][_0x1fe7e9(0x261)](_0x46e952=>{const _0x40a118=_0x1fe7e9;let _0x106d3e,_0x347b3a;if(_0x46e952['id']===i[_0x40a118(0x23e)]['id']||_0x46e952['id']===i['SetShapeDrawingDataCommand']['id']||_0x46e952['id']===i['UpdateConnectorRelationCommand']['id']){let _0xa7c328=_0x46e952[_0x40a118(0x41b)];_0x106d3e=_0xa7c328[_0x40a118(0x315)],_0x347b3a=_0xa7c328[_0x40a118(0x19f)];}_0x106d3e&&_0x347b3a&&(this[_0x40a118(0x1af)][_0x40a118(0x410)]({'workbookTypes':[o[_0x40a118(0x364)]],'worksheetTypes':[o[_0x40a118(0x24f)]]},_0x106d3e,_0x347b3a)||this['_sheetPermissionCheckController'][_0x40a118(0x4df)](this[_0x40a118(0x51b)]['t']('sheets-shape-ui.permission.editErr')));}));}};Y=A([k(0x0,(0x0,a[_0x12db2b(0x25a)])(a[_0x12db2b(0x4c6)])),k(0x1,(0x0,a[_0x12db2b(0x25a)])(a[_0x12db2b(0x2e3)])),k(0x2,(0x0,a[_0x12db2b(0x25a)])(o[_0x12db2b(0x1d3)]))],Y);let X=class{constructor(_0xff40a1){const _0x4d25b1=_0x12db2b;this[_0x4d25b1(0x401)]=_0xff40a1;}[_0x12db2b(0x388)](_0x5670b2,_0x551831){const _0x3d60dc=_0x12db2b;let _0x33098f=this[_0x3d60dc(0x401)][_0x3d60dc(0x30d)](_0x5670b2[_0x3d60dc(0x315)]),_0x2a1f7b=_0x33098f==null?void 0x0:_0x33098f[_0x3d60dc(0x414)];if(!_0x2a1f7b)return;let _0x561005=(0x0,s['getDrawingShapeKeyByDrawingSearch'])(_0x5670b2),_0x566ffc=_0x2a1f7b[_0x3d60dc(0x43c)](_0x561005);_0x566ffc==null||_0x566ffc[_0x3d60dc(0x509)](_0x551831);}};X=A([k(0x0,c['IRenderManagerService'])],X);let Z=class extends a[_0x12db2b(0x20d)]{constructor(_0x1b9932=lt,_0x45e37e,_0x141373,_0x1bcc6f,_0x204bd0){const _0x3090f6=_0x12db2b;super(),this[_0x3090f6(0x360)]=_0x1b9932,this[_0x3090f6(0x424)]=_0x45e37e,this[_0x3090f6(0x310)]=_0x141373,this[_0x3090f6(0x21e)]=_0x1bcc6f,this['_renderManagerService']=_0x204bd0;let {..._0x20a09a}=(0x0,a[_0x3090f6(0x31e)])({},lt,this[_0x3090f6(0x360)]);this[_0x3090f6(0x21e)][_0x3090f6(0x1ca)](ct,_0x20a09a),this[_0x3090f6(0x371)]();}[_0x12db2b(0x30c)](){const _0x1a9718=_0x12db2b;this[_0x1a9718(0x424)][_0x1a9718(0x2e5)]([ht]),this[_0x1a9718(0x424)][_0x1a9718(0x3cb)](ht),(0x0,a[_0x1a9718(0x413)])(this[_0x1a9718(0x424)],[[U],[G],[j],[J],[X],[H],[W],[B],[Y]]);}['onReady'](){const _0x91ab14=_0x12db2b;(0x0,a[_0x91ab14(0x413)])(this['_injector'],[[K],[M],[q]]),(0x0,a[_0x91ab14(0x1cd)])(this['_injector'],[[q],[M]]),[[K],[ut],[Ct],[_t]][_0x91ab14(0x444)](_0x4d6e79=>{const _0x773d23=_0x91ab14;this['disposeWithMe'](this[_0x773d23(0x401)][_0x773d23(0x469)](a[_0x773d23(0x4c4)][_0x773d23(0x29c)],_0x4d6e79));});}[_0x12db2b(0x385)](){const _0x26f6e9=_0x12db2b;(0x0,a[_0x26f6e9(0x1cd)])(this[_0x26f6e9(0x424)],[[U],[G],[j],[J],[X],[H],[W],[B],[Y]]);}[_0x12db2b(0x375)](){const _0x281f5f=_0x12db2b;this[_0x281f5f(0x424)][_0x281f5f(0x3cb)](U)[_0x281f5f(0x2a5)]();}[_0x12db2b(0x371)](){const _0x9c21d2=_0x12db2b;[P,S,N,st]['forEach'](_0xf5ad5f=>this['disposeWithMe'](this[_0x9c21d2(0x310)][_0x9c21d2(0x237)](_0xf5ad5f)));}};E(Z,'type',a['UniverInstanceType'][_0x12db2b(0x29c)]),E(Z,'pluginName',_0x12db2b(0x36c)),E(Z,_0x12db2b(0x27c),at),E(Z,_0x12db2b(0x3c9),ot),Z=A([(0x0,a[_0x12db2b(0x255)])(h[_0x12db2b(0x4a2)],g[_0x12db2b(0x1de)],s['UniverDrawingPlugin'],c[_0x12db2b(0x510)],o[_0x12db2b(0x45c)],_[_0x12db2b(0x3ae)],m[_0x12db2b(0x40f)],r[_0x12db2b(0x1b0)],v[_0x12db2b(0x28f)],i[_0x12db2b(0x252)],l['UniverSheetsMobileUIPlugin'],e[_0x12db2b(0x3f0)],t['UniverMobileUIPlugin']),k(0x1,(0x0,a[_0x12db2b(0x25a)])(a['Injector'])),k(0x2,a[_0x12db2b(0x4c6)]),k(0x3,a['IConfigService']),k(0x4,c[_0x12db2b(0x508)])],Z);const wt={'type':a['CommandType'][_0x12db2b(0x322)],'id':_0x12db2b(0x46a),'handler'(){return!0x0;}};function Tt(){const _0x43e312=_0x12db2b;let _0x44095d=(0x0,t[_0x43e312(0x350)])(s[_0x43e312(0x421)]),_0x3f1be4=(0x0,t[_0x43e312(0x452)])(()=>_0x44095d[_0x43e312(0x344)],_0x44095d[_0x43e312(0x1fa)](),!0x1,[_0x44095d]);return _0x3f1be4['length']===0x0?null:(0x0,p[_0x43e312(0x3fc)])(_0x43e312(0x34c),{'children':(0x0,p[_0x43e312(0x42b)])(_0x43e312(0x34c),{'className':_0x43e312(0x274),'children':[(0x0,p[_0x43e312(0x3fc)])(d[_0x43e312(0x2c4)],{'drawings':_0x3f1be4,'hasCropper':!0x1}),(0x0,p[_0x43e312(0x3fc)])(v[_0x43e312(0x336)],{'drawings':_0x3f1be4})]})});}function Et(_0x3949a8){const _0x12889b=_0x12db2b;let {unitId:_0x1cff73,subUnitId:_0x538752,shapeId:_0x381c99}=_0x3949a8,_0x2842b2=(0x0,t['useDependency'])(a[_0x12889b(0x4c6)]),_0x240f68=(0x0,t[_0x12889b(0x350)])(X);return(0x0,p[_0x12889b(0x3fc)])(e['ShapeEditPanel'],{..._0x3949a8,'positionEditor':(0x0,p['jsx'])(Tt,{}),'onUpdateShapeData':(_0x20d1a1,_0x4cf9da)=>{C(_0x2842b2,_0x1cff73,_0x538752,_0x381c99,_0x20d1a1,_0x4cf9da);},'onUpdateLineShapeData':(_0x29efb3,_0x285899)=>{w(_0x2842b2,_0x1cff73,_0x538752,_0x381c99,_0x29efb3,_0x285899);},'onUpdateShapeFillImage':_0x3caaef=>{const _0x37bbe5=_0x12889b;_0x240f68[_0x37bbe5(0x388)]({'unitId':_0x1cff73,'subUnitId':_0x538752,'drawingId':_0x381c99},_0x3caaef);}});}function Dt(_0x59a79c){const _0xf8aebe=_0x12db2b;let _0x21202f=(0x0,t[_0xf8aebe(0x350)])(e[_0xf8aebe(0x260)]),_0x50c27f=(0x0,t[_0xf8aebe(0x452)])(()=>_0x21202f[_0xf8aebe(0x40c)],_0x21202f[_0xf8aebe(0x24e)](),!0x1,[_0x21202f]),_0x4b2a2f=_0x59a79c[_0xf8aebe(0x34d)][_0xf8aebe(0x28d)];return!_0x4b2a2f||!_0x50c27f?null:(0x0,p['jsx'])(Ot,{..._0x4b2a2f,'canvasElement':_0x59a79c[_0xf8aebe(0x34d)][_0xf8aebe(0x22d)]});}function Ot(_0x285497){const _0x56f424=_0x12db2b;let _0x5e3737=(0x0,t[_0x56f424(0x350)])(a[_0x56f424(0x4c6)]),_0x7e7106=(0x0,t[_0x56f424(0x350)])(i[_0x56f424(0x2e7)]),{unitId:_0x16ac23,subUnitId:_0x357e01,drawingId:_0xfbd491,drawingType:_0x5f51f5,shapeType:_0x2dcbc6}=_0x285497,[_0x5426a7,_0x3a5995]=(0x0,b[_0x56f424(0x431)])(_0x285497[_0x56f424(0x235)]),_0x55e7e9=(0x0,b[_0x56f424(0x434)])(()=>(0x0,e[_0x56f424(0x2a8)])(_0x5426a7),[_0x5426a7]),_0x1d2d1b=(0x0,b[_0x56f424(0x434)])(()=>(0x0,e[_0x56f424(0x4d2)])(_0x5426a7),[_0x5426a7]);(0x0,b[_0x56f424(0x28b)])(()=>{const _0x45e485=_0x56f424;let _0x5aa2a9=_0x5e3737[_0x45e485(0x3e5)](_0x342220=>{const _0x2f99be=_0x45e485;if(_0x342220['id']!==i[_0x2f99be(0x36f)]['id'])return;let _0x539f6e=_0x7e7106[_0x2f99be(0x3de)](_0x16ac23,_0x357e01,_0xfbd491);_0x539f6e&&_0x3a5995(_0x539f6e);});return()=>_0x5aa2a9[_0x45e485(0x1e8)]();},[_0x5e3737,_0xfbd491,_0x7e7106,_0x357e01,_0x16ac23]);let _0xdc9393=_0x380f41=>{_0x3a5995(_0x2479c4=>({..._0x2479c4,..._0x380f41}));},_0x5b709e=_0x425a15=>{const _0x4ec5d0=_0x56f424;let _0x51f080=(0x0,e[_0x4ec5d0(0x3eb)])(_0x5426a7,_0x425a15);C(_0x5e3737,_0x16ac23,_0x357e01,_0xfbd491,{'oldShapeData':{'shapeText':_0x5426a7['shapeText']}},_0x51f080),_0xdc9393(_0x51f080);},_0x1defdf=(0x0,e['useFormulaShapeToolbar'])({'hostType':a[_0x56f424(0x4c4)][_0x56f424(0x29c)],'unitId':_0x16ac23,'subUnitId':_0x357e01,'shapeId':_0xfbd491,'shapeData':_0x5426a7,'onUpdateBinding':_0x34aa0e=>{const _0x1c85fb=_0x56f424;let _0x80f739={'formulaBinding':_0x34aa0e};C(_0x5e3737,_0x16ac23,_0x357e01,_0xfbd491,{'oldShapeData':{'formulaBinding':_0x5426a7[_0x1c85fb(0x4ac)]}},_0x80f739),_0xdc9393(_0x80f739);}});return(0x0,p[_0x56f424(0x42b)])(p[_0x56f424(0x48d)],{'children':[(0x0,p[_0x56f424(0x3fc)])(e[_0x56f424(0x1bd)],{'canvasElement':_0x285497[_0x56f424(0x22d)],'shapeData':_0x5426a7,'shapeType':_0x2dcbc6,'textStyle':{'ff':n[_0x56f424(0x4c8)]['shapeText']['fontFamily'],'fs':n[_0x56f424(0x4c8)][_0x56f424(0x41f)][_0x56f424(0x4ca)],'cl':{'rgb':n[_0x56f424(0x4c8)][_0x56f424(0x41f)][_0x56f424(0x493)]},..._0x55e7e9},'textModel':_0x1d2d1b?{'ha':_0x1d2d1b['ha']??a[_0x56f424(0x361)]['LEFT'],'va':_0x1d2d1b['va']??a[_0x56f424(0x1ce)]['TOP']}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':n[_0x56f424(0x4c8)][_0x56f424(0x4f9)],'defaultGradientEndColor':n[_0x56f424(0x4c8)][_0x56f424(0x1ee)],'defaultStrokeColor':n[_0x56f424(0x4c8)][_0x56f424(0x280)],'extensionGroups':_0x1defdf[_0x56f424(0x3b5)],'floatingObjectToolbarPosition':t[_0x56f424(0x2e4)][_0x56f424(0x3d8)],'onUpdateShapeData':(_0x26dd0d,_0x23c84d)=>{C(_0x5e3737,_0x16ac23,_0x357e01,_0xfbd491,_0x26dd0d,_0x23c84d),_0x23c84d&&_0xdc9393(_0x23c84d);},'onUpdateText':_0x5b709e,'onOpenPanel':()=>{const _0x881c5e=_0x56f424;_0x5e3737[_0x881c5e(0x461)](z['id'],{'unitId':_0x16ac23,'subUnitId':_0x357e01,'drawingId':_0xfbd491});},'onDelete':()=>{const _0x1221a4=_0x56f424;_0x5e3737[_0x1221a4(0x461)](m['RemoveSheetDrawingCommand']['id'],{'unitId':_0x16ac23,'drawings':[{'unitId':_0x16ac23,'subUnitId':_0x357e01,'drawingId':_0xfbd491,'drawingType':_0x5f51f5}]});}}),_0x1defdf[_0x56f424(0x36b)]]});}function kt(_0x2502ae){const _0x35cfc2=_0x12db2b;return!!_0x2502ae&&_0x35cfc2(0x407)in _0x2502ae&&_0x35cfc2(0x1cf)in _0x2502ae;}const At=(0x0,b['memo'])(()=>{const _0x15f808=_0x12db2b;let _0x2487a7=(0x0,t['useDependency'])(H),_0xe4dd5a=(0x0,t[_0x15f808(0x350)])(i[_0x15f808(0x2e7)]),_0x2e4bd1=(0x0,t['useDependency'])(s[_0x15f808(0x421)]),_0x196621=(0x0,t[_0x15f808(0x350)])(a['ICommandService']),_0x17e3e2=(0x0,t[_0x15f808(0x350)])(t[_0x15f808(0x3a0)]),_0x115a2f=(0x0,t['useDependency'])(c['IRenderManagerService']),_0x4b826a=(0x0,b[_0x15f808(0x434)])(()=>({'getShapeModel':(_0xb0ae15,_0x18c632,_0x16945f)=>_0xe4dd5a[_0x15f808(0x435)](_0xb0ae15,_0x18c632,_0x16945f),'getShapeData':(_0x5150cf,_0x1caf80,_0x210a52)=>_0xe4dd5a['getShapeDataById'](_0x5150cf,_0x1caf80,_0x210a52),'getDrawingTransform':(_0x41f4d1,_0x38aac2,_0x5bd4ea)=>{const _0x86e57e=_0x15f808;let _0x3a519b=_0x2e4bd1[_0x86e57e(0x492)]({'unitId':_0x41f4d1,'subUnitId':_0x38aac2,'drawingId':_0x5bd4ea});return _0x3a519b==null?void 0x0:_0x3a519b[_0x86e57e(0x1f9)];},'updateShapeText':({unitId:_0x2c938f,subUnitId:_0x3b68e6,shapeId:_0x3f40a8,shapeText:_0x13709c,oldShapeText:_0x1d163f,hostSize:_0xc8ac90})=>{_0x17e3e2['run'](_0x2c938f,()=>{const _0x489efa=_0xde32;var _0x4112b3;let _0x443452=_0x196621[_0x489efa(0x20e)](S['id'],{'unitId':_0x2c938f,'subUnitId':_0x3b68e6,'shapeId':_0x3f40a8,'shapeData':{'shapeText':_0x13709c},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x1d163f}}});if(!_0x443452||!_0xc8ac90)return _0x443452;let _0x3eddba=_0x2e4bd1[_0x489efa(0x492)]({'unitId':_0x2c938f,'subUnitId':_0x3b68e6,'drawingId':_0x3f40a8}),_0x651dd8=_0x3eddba==null?void 0x0:_0x3eddba[_0x489efa(0x1f9)];if(!kt(_0x3eddba)||!_0x651dd8)return!0x1;let _0x344c9e={..._0x651dd8,'width':_0xc8ac90[_0x489efa(0x1c0)],'height':_0xc8ac90[_0x489efa(0x4b9)]},_0x55d89f=(_0x4112b3=_0x115a2f['getRenderUnitById'](_0x2c938f))==null||(_0x4112b3=_0x4112b3[_0x489efa(0x203)](l[_0x489efa(0x265)])[_0x489efa(0x2bb)](_0x3b68e6))==null?void 0x0:_0x4112b3['skeleton'];return _0x196621['syncExecuteCommand'](m[_0x489efa(0x288)]['id'],{'unitId':_0x2c938f,'drawings':[{..._0x3eddba,'transform':_0x344c9e,'sheetTransform':_0x55d89f?(0x0,m[_0x489efa(0x4b5)])(_0x344c9e,_0x55d89f)??_0x3eddba[_0x489efa(0x1cf)]:_0x3eddba['sheetTransform'],'axisAlignSheetTransform':_0x55d89f?(0x0,m[_0x489efa(0x395)])(_0x344c9e,_0x55d89f)??_0x3eddba['axisAlignSheetTransform']:_0x3eddba['axisAlignSheetTransform']}]});});},'updateHostSize':({unitId:_0x4d7f25,subUnitId:_0x4532a0,shapeId:_0x55354a,width:_0x511105,height:_0x218ce3})=>{const _0x4bf9fd=_0x15f808;var _0x1304b4;let _0x514322=_0x2e4bd1[_0x4bf9fd(0x492)]({'unitId':_0x4d7f25,'subUnitId':_0x4532a0,'drawingId':_0x55354a}),_0x24ed26=_0x514322==null?void 0x0:_0x514322[_0x4bf9fd(0x1f9)];if(!kt(_0x514322)||!_0x24ed26)return;let _0x1e5607={..._0x24ed26,'width':_0x511105,'height':_0x218ce3},_0x1018fc=(_0x1304b4=_0x115a2f[_0x4bf9fd(0x30d)](_0x4d7f25))==null||(_0x1304b4=_0x1304b4[_0x4bf9fd(0x203)](l[_0x4bf9fd(0x265)])[_0x4bf9fd(0x2bb)](_0x4532a0))==null?void 0x0:_0x1304b4[_0x4bf9fd(0x47f)],_0x4bd64c=_0x1018fc?(0x0,m[_0x4bf9fd(0x4b5)])(_0x1e5607,_0x1018fc)??_0x514322[_0x4bf9fd(0x1cf)]:_0x514322['sheetTransform'],_0x5942ee=_0x1018fc?(0x0,m[_0x4bf9fd(0x395)])(_0x1e5607,_0x1018fc)??_0x514322['axisAlignSheetTransform']:_0x514322[_0x4bf9fd(0x407)];_0x196621['executeCommand'](m[_0x4bf9fd(0x288)]['id'],{'unitId':_0x4d7f25,'drawings':[{..._0x514322,'transform':_0x1e5607,'sheetTransform':_0x4bd64c,'axisAlignSheetTransform':_0x5942ee}]});},'allowHostSizeShrink':({unitId:_0x111f3b,subUnitId:_0x576f91,shapeId:_0x112629})=>(0x0,e['shouldAllowShapeTextEditorHostSizeShrink'])(_0xe4dd5a['getShapeDataById'](_0x111f3b,_0x576f91,_0x112629)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x196621,_0x2e4bd1,_0x115a2f,_0xe4dd5a,_0x17e3e2]),_0x4970c8=(0x0,b[_0x15f808(0x434)])(()=>({'viewportKeys':{'main':c[_0x15f808(0x4ec)][_0x15f808(0x44e)],'leftTop':c[_0x15f808(0x4ec)][_0x15f808(0x256)],'top':c[_0x15f808(0x4ec)][_0x15f808(0x263)],'left':c[_0x15f808(0x4ec)]['VIEW_MAIN_LEFT']},'getSkeleton':(_0xdcae8f,_0x5c5a94)=>{const _0x3eafdc=_0x15f808;var _0x139d4a;return((_0x139d4a=_0xdcae8f[_0x3eafdc(0x203)](l[_0x3eafdc(0x265)])[_0x3eafdc(0x2bb)](_0x5c5a94['subUnitId']))==null?void 0x0:_0x139d4a[_0x3eafdc(0x47f)])??null;}}),[]);return(0x0,p[_0x15f808(0x3fc)])(e[_0x15f808(0x4ea)],{'adapter':_0x4b826a,'editingService':_0x2487a7,'editorUnitId':re,'positionOptions':_0x4970c8});});let jt=class extends a[_0x12db2b(0x30e)]{constructor(_0x21ceb1,_0x3359aa){const _0x489298=_0x12db2b;super(),this[_0x489298(0x4f0)]=_0x21ceb1,this['_iconManager']=_0x3359aa,this[_0x489298(0x20b)](),this[_0x489298(0x193)]();}[_0x12db2b(0x20b)](){const _0x278929=_0x12db2b;this[_0x278929(0x1f2)][_0x278929(0x4e8)](_0x278929(0x22b))||this[_0x278929(0x22a)](this['_iconManager']['register']({'ObjectLayersIcon':y[_0x278929(0x22b)]})),this[_0x278929(0x1f2)][_0x278929(0x4e8)](_0x278929(0x33d))||this['disposeWithMe'](this['_iconManager']['register']({'FlipHorizontalIcon':y[_0x278929(0x33d)]})),this['_iconManager'][_0x278929(0x4e8)]('FlipVerticalIcon')||this[_0x278929(0x22a)](this['_iconManager'][_0x278929(0x24b)]({'FlipVerticalIcon':y[_0x278929(0x4b6)]})),this[_0x278929(0x1f2)][_0x278929(0x4e8)](_0x278929(0x405))||this[_0x278929(0x22a)](this[_0x278929(0x1f2)][_0x278929(0x24b)]({'BottomIcon':y[_0x278929(0x405)]})),this[_0x278929(0x1f2)][_0x278929(0x4e8)](_0x278929(0x197))||this[_0x278929(0x22a)](this['_iconManager'][_0x278929(0x24b)]({'MoveDownIcon':y[_0x278929(0x197)]})),this[_0x278929(0x1f2)][_0x278929(0x4e8)](_0x278929(0x470))||this[_0x278929(0x22a)](this[_0x278929(0x1f2)][_0x278929(0x24b)]({'MoveUpIcon':y['MoveUpIcon']})),this[_0x278929(0x1f2)][_0x278929(0x4e8)](_0x278929(0x1d9))||this[_0x278929(0x22a)](this['_iconManager'][_0x278929(0x24b)]({'ShapeFormatSettingIcon':y[_0x278929(0x1d9)]})),this[_0x278929(0x1f2)][_0x278929(0x4e8)](_0x278929(0x346))||this[_0x278929(0x22a)](this[_0x278929(0x1f2)]['register']({'TopmostIcon':y[_0x278929(0x346)]}));}[_0x12db2b(0x193)](){const _0x496e75=_0x12db2b;this[_0x496e75(0x22a)](this[_0x496e75(0x4f0)]['register'](F,Et)),this[_0x496e75(0x22a)](this['_componentManager']['register'](I,pt)),this[_0x496e75(0x22a)](this[_0x496e75(0x4f0)][_0x496e75(0x24b)](le,he)),this[_0x496e75(0x22a)](this['_componentManager'][_0x496e75(0x24b)](ue,fe)),this['_componentManager'][_0x496e75(0x3cb)](d[_0x496e75(0x2cd)])||this[_0x496e75(0x22a)](this['_componentManager'][_0x496e75(0x24b)](d[_0x496e75(0x2cd)],me)),this[_0x496e75(0x22a)](this[_0x496e75(0x4f0)][_0x496e75(0x24b)](L,Dt)),this[_0x496e75(0x22a)](this[_0x496e75(0x4f0)][_0x496e75(0x24b)](Ee,Ae)),this['disposeWithMe'](this[_0x496e75(0x4f0)][_0x496e75(0x24b)](Te,je)),this[_0x496e75(0x22a)](this['_componentManager']['register'](De,Me)),this[_0x496e75(0x22a)](this['_componentManager'][_0x496e75(0x24b)](Oe,Ne)),this[_0x496e75(0x22a)](this['_componentManager'][_0x496e75(0x24b)](ie,e[_0x496e75(0x29b)])),this[_0x496e75(0x22a)](this[_0x496e75(0x4f0)]['register'](_0x496e75(0x246),At));}};jt=A([k(0x0,(0x0,a[_0x12db2b(0x25a)])(t[_0x12db2b(0x3f9)])),k(0x1,(0x0,a[_0x12db2b(0x25a)])(t[_0x12db2b(0x3a7)]))],jt);let Mt=class extends a[_0x12db2b(0x30e)]{constructor(_0x424547,_0x5c5d58,_0x4a9081,_0x5791dd,_0x2056cc,_0x40567b,_0x452a1a,_0x54d685,_0x5450ba){const _0x4f9c8c=_0x12db2b;super();let _0x4f25e2=_0x2fa96e=>{const _0x545fd8=_0xde32;var _0x4082bf,_0xc5004e;return(((_0x4082bf=_0x54d685[_0x545fd8(0x1e2)](new o[(_0x545fd8(0x364))](_0x2fa96e['unitId'])['id']))==null?void 0x0:_0x4082bf[_0x545fd8(0x3fe)])??!0x0)&&(((_0xc5004e=_0x54d685['getPermissionPoint'](new o[(_0x545fd8(0x24f))](_0x2fa96e[_0x545fd8(0x315)],_0x2fa96e[_0x545fd8(0x19f)])['id']))==null?void 0x0:_0xc5004e[_0x545fd8(0x3fe)])??!0x0);},_0xff06a0=_0x1e5477=>_0x1e5477[_0x4f9c8c(0x502)]&&_0x4f25e2(_0x1e5477)?_0x4a9081[_0x4f9c8c(0x3de)](_0x1e5477[_0x4f9c8c(0x315)],_0x1e5477['subUnitId'],_0x1e5477[_0x4f9c8c(0x502)])??null:null,_0x416ad4=()=>{const _0x3a6b12=_0x4f9c8c;let _0x391b10=_0x2056cc[_0x3a6b12(0x1fa)](),_0x5ce093=_0x391b10['length']===0x1?_0x391b10[0x0]:null;return(_0x5ce093==null?void 0x0:_0x5ce093['drawingType'])===a[_0x3a6b12(0x3bd)][_0x3a6b12(0x3c0)]&&_0x5ce093['unitId']===_0x424547[_0x3a6b12(0x315)]?{'unitId':_0x5ce093[_0x3a6b12(0x315)],'subUnitId':_0x5ce093[_0x3a6b12(0x19f)],'shapeId':_0x5ce093['drawingId']}:null;};this[_0x4f9c8c(0x22a)]((0x0,e[_0x4f9c8c(0x2db)])(_0x424547,_0x5c5d58,{'changes$':(0x0,u['merge'])(_0x2056cc['focus$'],_0x5791dd[_0x4f9c8c(0x442)],_0x54d685[_0x4f9c8c(0x217)]),'isActive':()=>{const _0x223dbb=_0x4f9c8c;var _0x3b51b9;return((_0x3b51b9=_0x40567b[_0x223dbb(0x369)]())==null?void 0x0:_0x3b51b9[_0x223dbb(0x450)]())===_0x424547[_0x223dbb(0x315)]&&!_0x452a1a[_0x223dbb(0x302)](a[_0x223dbb(0x4d0)])&&_0x2056cc[_0x223dbb(0x1fa)]()[_0x223dbb(0x33e)](_0x9cb9c9=>_0x9cb9c9[_0x223dbb(0x315)]===_0x424547[_0x223dbb(0x315)]);},'getSelectedTarget':_0x416ad4,'getSource':()=>{let _0x570756=_0x416ad4();return _0x570756?_0xff06a0(_0x570756):null;},'getTarget':_0xbd7446=>{const _0x5b26fc=_0x4f9c8c;let _0x28ecef=_0x424547['scene'][_0x5b26fc(0x472)](new c[(_0x5b26fc(0x194))](_0xbd7446[_0x5b26fc(0x347)],_0xbd7446[_0x5b26fc(0x253)]));if(!(_0x28ecef instanceof D))return null;let _0x3d1770={'unitId':_0x424547[_0x5b26fc(0x315)],'subUnitId':_0x28ecef[_0x5b26fc(0x19f)],'shapeId':_0x28ecef[_0x5b26fc(0x502)]};return _0x4f25e2(_0x3d1770)?_0x3d1770:null;},'getShape':_0xff06a0,'update':(_0x507af0,_0x505706,_0x5d3737)=>_0x5450ba['executeCommand'](S['id'],{..._0x507af0,'shapeData':_0x5d3737,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x505706}})}));}};Mt=A([k(0x1,(0x0,a[_0x12db2b(0x25a)])(t[_0x12db2b(0x419)])),k(0x2,(0x0,a[_0x12db2b(0x25a)])(i[_0x12db2b(0x2e7)])),k(0x3,(0x0,a['Inject'])(H)),k(0x4,s[_0x12db2b(0x421)]),k(0x5,a[_0x12db2b(0x202)]),k(0x6,a['IContextService']),k(0x7,a[_0x12db2b(0x4a8)]),k(0x8,a[_0x12db2b(0x4c6)])],Mt);const Nt='sheets-shape-contextual-ribbon';let Pt=class extends a[_0x12db2b(0x30e)]{constructor(_0x4231eb,_0x41d9a4,_0x508e0d,_0x169e28,_0x3d644e,_0x6dbb44){const _0x1ab4a5=_0x12db2b;super(),this[_0x1ab4a5(0x343)]=_0x4231eb,this[_0x1ab4a5(0x4e0)]=_0x41d9a4,this['_drawingManagerService']=_0x508e0d,this[_0x1ab4a5(0x486)]=_0x169e28,this['_renderManagerService']=_0x3d644e,this[_0x1ab4a5(0x20a)]=_0x6dbb44,E(this,'_visible',!0x1),this[_0x1ab4a5(0x343)][_0x1ab4a5(0x433)](nt),this['disposeWithMe']((0x0,a[_0x1ab4a5(0x21b)])(this[_0x1ab4a5(0x324)][_0x1ab4a5(0x344)][_0x1ab4a5(0x417)](()=>this['_update']()))),this['_update']();}['dispose'](){const _0x275eb4=_0x12db2b;this[_0x275eb4(0x20a)][_0x275eb4(0x365)](!0x1,Nt),this[_0x275eb4(0x35d)](),super[_0x275eb4(0x1e8)]();}[_0x12db2b(0x28e)](){const _0x414f4b=_0x12db2b;var _0x3930d1;let _0x2c4a4e=this['_drawingManagerService'][_0x414f4b(0x1fa)](),_0x37464b=_0x2c4a4e[_0x414f4b(0x2c6)]===0x1?_0x2c4a4e[0x0]:void 0x0;if((_0x37464b==null?void 0x0:_0x37464b[_0x414f4b(0x2f3)])!==a[_0x414f4b(0x3bd)]['DRAWING_SHAPE']||this[_0x414f4b(0x486)][_0x414f4b(0x1ad)](_0x37464b[_0x414f4b(0x315)])!==a[_0x414f4b(0x4c4)][_0x414f4b(0x29c)]){this['_shapeFloatingToolbarService'][_0x414f4b(0x365)](!0x1,Nt),this[_0x414f4b(0x35d)]();return;}let _0x5b5c35=(_0x3930d1=this['_renderManagerService']['getRenderUnitById'](_0x37464b[_0x414f4b(0x315)]))==null?void 0x0:_0x3930d1[_0x414f4b(0x39d)][_0x414f4b(0x2af)](),_0x133080=(0x0,e[_0x414f4b(0x352)])(_0x5b5c35)===_0x414f4b(0x3b8);if(this[_0x414f4b(0x20a)][_0x414f4b(0x365)](_0x133080,Nt),_0x133080){this['_hide']();return;}this[_0x414f4b(0x337)]||(this['_visible']=!0x0,this[_0x414f4b(0x4e0)]['showContextualTab'](R,{'activate':!0x0}));}[_0x12db2b(0x35d)](){const _0x25a180=_0x12db2b;this[_0x25a180(0x337)]&&(this['_visible']=!0x1,this[_0x25a180(0x4e0)]['hideContextualTab'](R),this['_ribbonService']['setCollapsedIds']([]));}};Pt=A([k(0x0,t['IMenuManagerService']),k(0x1,t[_0x12db2b(0x429)]),k(0x2,s[_0x12db2b(0x421)]),k(0x3,a[_0x12db2b(0x202)]),k(0x4,c[_0x12db2b(0x508)]),k(0x5,(0x0,a[_0x12db2b(0x25a)])(e[_0x12db2b(0x260)]))],Pt);let Ft=class extends e[_0x12db2b(0x513)]{constructor(_0x45cc24,_0x1a5e2e,_0x503e9c,_0x91dff7,_0x32e23d,_0x33b438,_0x9ffc26,_0x53db36,_0x4a3bd2,_0x581914){super(_0x45cc24,_0x1a5e2e,_0x503e9c,_0x91dff7,_0x32e23d,_0x33b438,_0x9ffc26,_0x53db36,_0x4a3bd2,_0x581914,{'componentKey':ie,'editorUnitId':re});}};Ft=A([k(0x1,(0x0,a[_0x12db2b(0x25a)])(g['DocSelectionManagerService'])),k(0x2,(0x0,a[_0x12db2b(0x25a)])(_['DocCanvasPopManagerService'])),k(0x3,(0x0,a[_0x12db2b(0x25a)])(_[_0x12db2b(0x349)])),k(0x4,a[_0x12db2b(0x4c6)]),k(0x5,(0x0,a['Inject'])(_[_0x12db2b(0x48f)])),k(0x6,(0x0,a[_0x12db2b(0x25a)])(e['ShapeTextHyperLinkPopupService'])),k(0x7,(0x0,a[_0x12db2b(0x25a)])(g[_0x12db2b(0x230)])),k(0x8,(0x0,a[_0x12db2b(0x25a)])(_['DocRenderController'])),k(0x9,(0x0,a[_0x12db2b(0x25a)])(H))],Ft);let Q=class extends a[_0x12db2b(0x30e)]{constructor(_0x472756,_0x44798c,_0x26cb93,_0x43facc,_0x585266,_0x2b37d3,_0x196262,_0xd99d20,_0xeb2492,_0x45a926,_0x438a01){const _0x1b1790=_0x12db2b;super(),this[_0x1b1790(0x486)]=_0x472756,this['_sidebarService']=_0x44798c,this[_0x1b1790(0x343)]=_0x26cb93,this[_0x1b1790(0x290)]=_0x43facc,this[_0x1b1790(0x51b)]=_0x585266,this[_0x1b1790(0x310)]=_0x2b37d3,this[_0x1b1790(0x324)]=_0x196262,this[_0x1b1790(0x1c2)]=_0xd99d20,this[_0x1b1790(0x3ab)]=_0xeb2492,this[_0x1b1790(0x401)]=_0x45a926,this[_0x1b1790(0x4a6)]=_0x438a01,E(this,_0x1b1790(0x46b),null),E(this,_0x1b1790(0x432),null),E(this,'_isOpenedShapeEditPanel',!0x1),E(this,_0x1b1790(0x451),0x0),E(this,_0x1b1790(0x1cb),null),E(this,_0x1b1790(0x3d0),[]),this[_0x1b1790(0x3be)](),this[_0x1b1790(0x22a)](this[_0x1b1790(0x486)][_0x1b1790(0x4d4)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x1b1790(0x417)](_0x2f17c1=>{const _0x1b2d66=_0x1b1790;if(!_0x2f17c1){var _0x556166;(_0x556166=this[_0x1b2d66(0x46b)])==null||_0x556166[_0x1b2d66(0x1e8)]();}})),this[_0x1b1790(0x292)](),this[_0x1b1790(0x2a5)](),this[_0x1b1790(0x22a)](this[_0x1b1790(0x4a6)][_0x1b1790(0x442)][_0x1b1790(0x417)](_0x58d465=>{_0x58d465&&this['_clearPopups']();}));}[_0x12db2b(0x3be)](){const _0x3b8570=_0x12db2b;this[_0x3b8570(0x343)][_0x3b8570(0x433)](it);}[_0x12db2b(0x2a5)](){const _0x4fb699=_0x12db2b;this[_0x4fb699(0x1cb)]||=this[_0x4fb699(0x22a)]((0x0,e['bindRenderTransformerLifecycle'])(this['_renderManagerService'],a[_0x4fb699(0x4c4)][_0x4fb699(0x29c)],_0x354320=>this[_0x4fb699(0x524)](_0x354320)));}[_0x12db2b(0x32f)](_0xd3dc78,_0x311227,_0x490b8d){const _0x76826b=_0x12db2b;let _0x35c062=this[_0x76826b(0x290)]['getShapeTypeById'](_0xd3dc78,_0x311227,_0x490b8d),_0x39c5a6=this['_sheetsShapeService'][_0x76826b(0x3de)](_0xd3dc78,_0x311227,_0x490b8d);return _0x35c062!==void 0x0&&_0x39c5a6!==void 0x0?{'shapeData':_0x39c5a6,'shapeId':_0x490b8d,'shapeType':_0x35c062,'unitId':_0xd3dc78,'subUnitId':_0x311227,'version':this[_0x76826b(0x451)],'disableShapeOption':!0x1}:null;}['_clearPopups'](){const _0x23e4b1=_0x12db2b;this[_0x23e4b1(0x3d0)]['forEach'](_0x2dabaa=>_0x2dabaa[_0x23e4b1(0x1e8)]()),this['_disposePopups'][_0x23e4b1(0x2c6)]=0x0;}[_0x12db2b(0x524)](_0x552e21){const _0x2f6457=_0x12db2b;let _0x3a2339=new a[(_0x2f6457(0x3fa))]();return _0x3a2339[_0x2f6457(0x2e5)](_0x552e21[_0x2f6457(0x306)][_0x2f6457(0x417)](()=>{const _0x129d36=_0x2f6457;let _0x37bee5=_0x552e21[_0x129d36(0x3a4)]();if(this[_0x129d36(0x321)](),this[_0x129d36(0x1db)]||_0x37bee5[_0x129d36(0x1f5)]>0x1)return;let _0x2d3c63=_0x37bee5['values']()[_0x129d36(0x247)]()[_0x129d36(0x3fe)];if(!_0x2d3c63)return;let _0x2b0fa6=this[_0x129d36(0x324)]['getDrawingOKey'](_0x2d3c63['oKey']);if(!_0x2b0fa6||_0x2b0fa6[_0x129d36(0x2f3)]!==a[_0x129d36(0x3bd)]['DRAWING_SHAPE'])return;let {unitId:_0x1409b2,subUnitId:_0x12fed8,drawingId:_0x4b171d,drawingType:_0x6528b9}=_0x2b0fa6,_0xc937cf=this[_0x129d36(0x32f)](_0x1409b2,_0x12fed8,_0x4b171d);if(!_0xc937cf)return;this[_0x129d36(0x3ab)][_0x129d36(0x295)](a[_0x129d36(0x1a8)],!0x0);let _0x5ad61e=this[_0x129d36(0x401)]['getRenderUnitById'](_0x1409b2),_0x309c99=((_0x5ad61e==null?void 0x0:_0x5ad61e['isMainScene'])===!0x1?_0x5ad61e[_0x129d36(0x203)](l['SheetCanvasPopManagerService']):this['_sheetCanvasPopManagerService'])['attachPopupToObject'](_0x2d3c63,{'componentKey':L,'direction':_0x129d36(0x29e),'offset':[0x0,e[_0x129d36(0x4c7)]],'extraProps':{'unitId':_0x1409b2,'subUnitId':_0x12fed8,'drawingId':_0x4b171d,'drawingType':_0x6528b9,'shapeType':_0xc937cf[_0x129d36(0x520)],'shapeData':_0xc937cf[_0x129d36(0x235)]}});this[_0x129d36(0x3d0)][_0x129d36(0x32c)](this[_0x129d36(0x22a)](_0x309c99)),this[_0x129d36(0x324)][_0x129d36(0x1fa)]()[_0x129d36(0x440)](_0x32eaa3=>_0x32eaa3[_0x129d36(0x315)]===_0x1409b2&&_0x32eaa3[_0x129d36(0x19f)]===_0x12fed8&&_0x32eaa3[_0x129d36(0x474)]===_0x4b171d)||this[_0x129d36(0x324)][_0x129d36(0x36a)]([{'unitId':_0x1409b2,'subUnitId':_0x12fed8,'drawingId':_0x4b171d}]);})),_0x3a2339[_0x2f6457(0x2e5)](_0x552e21[_0x2f6457(0x500)]['subscribe'](()=>{const _0x3fbfa6=_0x2f6457;this[_0x3fbfa6(0x321)](),this['_contextService']['setContextValue'](a['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x3fbfa6(0x324)]['focusDrawing'](null);})),_0x3a2339['add'](_0x552e21[_0x2f6457(0x38a)]['subscribe'](()=>{const _0x5d7a42=_0x2f6457;this[_0x5d7a42(0x321)]();})),_0x3a2339[_0x2f6457(0x2e5)](_0x552e21['changeStart$']['subscribe'](()=>{const _0x81df37=_0x2f6457;this[_0x81df37(0x321)]();})),(0x0,a[_0x2f6457(0x21b)])(()=>{const _0x12a946=_0x2f6457;_0x3a2339[_0x12a946(0x1e8)](),this['_clearPopups']();});}['_registerOperations'](){const _0x507e29=_0x12db2b;this[_0x507e29(0x22a)](this['_commandService'][_0x507e29(0x3e5)](_0x8c3f0b=>{const _0x5adf3b=_0x507e29;if(_0x8c3f0b['id']===z['id']){let {unitId:_0x400316,subUnitId:_0x5412dc,drawingId:_0x1cf20c}=_0x8c3f0b[_0x5adf3b(0x41b)];this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x5adf3b(0x32f)](_0x400316,_0x5412dc,_0x1cf20c),this[_0x5adf3b(0x321)](),this[_0x5adf3b(0x25f)]();}if(_0x8c3f0b['id']===wt['id']&&(this[_0x5adf3b(0x432)]=null,this[_0x5adf3b(0x27d)]()),_0x8c3f0b['id']===i[_0x5adf3b(0x36f)]['id']){let {unitId:_0x2e3335,subUnitId:_0xd6850e,shapeId:_0x48e87a}=_0x8c3f0b[_0x5adf3b(0x41b)];if(this[_0x5adf3b(0x432)]&&this[_0x5adf3b(0x432)]['shapeId']===_0x48e87a){let _0x5bed01=this[_0x5adf3b(0x32f)](_0x2e3335,_0xd6850e,_0x48e87a);_0x5bed01&&(this['_shapeEditPanelVersion']+=0x1,_0x5bed01[_0x5adf3b(0x3c9)]=this[_0x5adf3b(0x451)],this[_0x5adf3b(0x432)]=_0x5bed01,this[_0x5adf3b(0x1db)]&&this[_0x5adf3b(0x25f)]());}}})),this['disposeWithMe'](this[_0x507e29(0x324)][_0x507e29(0x344)]['subscribe'](_0x21184e=>{const _0x23d21e=_0x507e29;if(this[_0x23d21e(0x1db)]===!0x1)return;if(_0x21184e[_0x23d21e(0x2c6)]===0x0){this['_activeShapeInfo']=null,this[_0x23d21e(0x27d)]();return;}if(_0x21184e[_0x23d21e(0x2c6)]===0x1&&_0x21184e[0x0]['drawingType']===a[_0x23d21e(0x3bd)]['DRAWING_SHAPE']&&(this['_shapeEditPanelVersion']+=0x1,this[_0x23d21e(0x432)]=this[_0x23d21e(0x32f)](_0x21184e[0x0][_0x23d21e(0x315)],_0x21184e[0x0]['subUnitId'],_0x21184e[0x0][_0x23d21e(0x474)]),this[_0x23d21e(0x432)])){this[_0x23d21e(0x25f)]();return;}let _0x27f042=_0x21184e[_0x23d21e(0x27f)](_0x501209=>_0x501209['drawingType']===a[_0x23d21e(0x3bd)][_0x23d21e(0x3c0)]);if(_0x21184e['length']>0x1&&_0x27f042[_0x23d21e(0x2c6)]===_0x21184e[_0x23d21e(0x2c6)]){if(this[_0x23d21e(0x451)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x21184e[0x0][_0x23d21e(0x315)],_0x21184e[0x0][_0x23d21e(0x19f)],_0x21184e[0x0]['drawingId']),this[_0x23d21e(0x432)]){this[_0x23d21e(0x25f)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x23d21e(0x32f)](_0x21184e[0x0][_0x23d21e(0x315)],_0x21184e[0x0]['subUnitId'],_0x21184e[0x0][_0x23d21e(0x474)]),this[_0x23d21e(0x432)]){this[_0x23d21e(0x432)][_0x23d21e(0x200)]=!0x0,this['_openShapeEditPanel']();return;}}this['_closeShapeEditPanel']();}));}[_0x12db2b(0x25f)](){const _0x45185f=_0x12db2b;this['_activeShapeInfo']&&(this[_0x45185f(0x46b)]=this['_sidebarService'][_0x45185f(0x46d)]({'id':F,'header':{'title':this[_0x45185f(0x51b)]['t'](_0x45185f(0x1f8))},'width':0x184,'children':{'label':F,...this[_0x45185f(0x432)]},'onClose':()=>{const _0x4faafd=_0x45185f;this[_0x4faafd(0x324)]['focusDrawing'](null),this[_0x4faafd(0x3ab)][_0x4faafd(0x295)](a[_0x4faafd(0x1a8)],!0x1),this[_0x4faafd(0x46b)]=null;}}),this[_0x45185f(0x1db)]=!0x0);}[_0x12db2b(0x27d)](){const _0x247e7a=_0x12db2b;this[_0x247e7a(0x1db)]=!0x1,this[_0x247e7a(0x3f2)][_0x247e7a(0x3ac)](F),this[_0x247e7a(0x46b)]=null,this['_contextService']['setContextValue'](a[_0x247e7a(0x1a8)],!0x1),this[_0x247e7a(0x324)][_0x247e7a(0x36a)](null);}};Q=A([k(0x0,a[_0x12db2b(0x202)]),k(0x1,(0x0,a['Inject'])(t[_0x12db2b(0x29d)])),k(0x2,t['IMenuManagerService']),k(0x3,(0x0,a['Inject'])(i[_0x12db2b(0x2e7)])),k(0x4,(0x0,a[_0x12db2b(0x25a)])(a[_0x12db2b(0x2e3)])),k(0x5,a[_0x12db2b(0x4c6)]),k(0x6,s['IDrawingManagerService']),k(0x7,(0x0,a[_0x12db2b(0x25a)])(l['SheetCanvasPopManagerService'])),k(0x8,a[_0x12db2b(0x329)]),k(0x9,c[_0x12db2b(0x508)]),k(0xa,(0x0,a['Inject'])(H))],Q);let $=class extends a[_0x12db2b(0x20d)]{constructor(_0x4df35f=lt,_0x2cf6e8,_0x5b542f,_0x2cda52,_0x4a3baa){const _0x3ead1e=_0x12db2b;super(),this[_0x3ead1e(0x360)]=_0x4df35f,this[_0x3ead1e(0x424)]=_0x2cf6e8,this[_0x3ead1e(0x310)]=_0x5b542f,this[_0x3ead1e(0x21e)]=_0x2cda52,this[_0x3ead1e(0x401)]=_0x4a3baa;let {..._0x583cf7}=(0x0,a[_0x3ead1e(0x31e)])({},lt,this[_0x3ead1e(0x360)]);this[_0x3ead1e(0x21e)]['setConfig'](ct,_0x583cf7),this[_0x3ead1e(0x371)]();}[_0x12db2b(0x385)](){const _0x52e0fe=_0x12db2b;this[_0x52e0fe(0x401)][_0x52e0fe(0x469)](a['UniverInstanceType'][_0x52e0fe(0x2f6)],[Ft]),(0x0,a['touchDependencies'])(this[_0x52e0fe(0x424)],[[Q],[G],[j],[J]]);}[_0x12db2b(0x375)](){const _0x3604b9=_0x12db2b;this[_0x3604b9(0x424)][_0x3604b9(0x3cb)](Q)[_0x3604b9(0x2a5)]();}[_0x12db2b(0x3ec)](){const _0x152c04=_0x12db2b;[[K],[M],[q]][_0x152c04(0x444)](_0x5edfa0=>this[_0x152c04(0x424)][_0x152c04(0x2e5)](_0x5edfa0)),(0x0,a['touchDependencies'])(this[_0x152c04(0x424)],[[q],[M]]),this[_0x152c04(0x401)]['registerRenderModule'](a['UniverInstanceType'][_0x152c04(0x29c)],[K]),this[_0x152c04(0x401)]['registerRenderModule'](a[_0x152c04(0x4c4)][_0x152c04(0x29c)],[ut]),this[_0x152c04(0x401)][_0x152c04(0x469)](a[_0x152c04(0x4c4)][_0x152c04(0x29c)],[Ct]),this['_renderManagerService'][_0x152c04(0x469)](a[_0x152c04(0x4c4)][_0x152c04(0x29c)],[gt]),this[_0x152c04(0x22a)](this[_0x152c04(0x401)][_0x152c04(0x469)](a[_0x152c04(0x4c4)][_0x152c04(0x29c)],[Mt]));}['onStarting'](){const _0x32729f=_0x12db2b;this['_injector']['add']([jt]),this['_injector'][_0x32729f(0x3cb)](jt);let _0x2b0cc8=this['_injector'];[[Q],[G],[j],[J],[X],[H],[W],[B],[Y],[Pt]][_0x32729f(0x444)](_0x360e19=>_0x2b0cc8['add'](_0x360e19)),(0x0,a[_0x32729f(0x1cd)])(this[_0x32729f(0x424)],[[Q],[G],[j],[X],[H],[W],[B],[Y],[Pt]]);}[_0x12db2b(0x371)](){const _0x1c9d3d=_0x12db2b;[P,S,wt,z,ae,N,se,ce][_0x1c9d3d(0x444)](_0xbb4574=>this[_0x1c9d3d(0x22a)](this[_0x1c9d3d(0x310)][_0x1c9d3d(0x237)](_0xbb4574)));}};E($,_0x12db2b(0x3e4),a[_0x12db2b(0x4c4)][_0x12db2b(0x29c)]),E($,_0x12db2b(0x446),_0x12db2b(0x36c)),E($,'packageName',at),E($,'version',ot),$=A([(0x0,a[_0x12db2b(0x255)])(h[_0x12db2b(0x4a2)],g[_0x12db2b(0x1de)],s[_0x12db2b(0x4b4)],d['UniverDrawingUIPlugin'],c[_0x12db2b(0x510)],o[_0x12db2b(0x45c)],_[_0x12db2b(0x3ae)],m[_0x12db2b(0x40f)],r['UniverShapeEditorPlugin'],v[_0x12db2b(0x51c)],i['UniverSheetsShapePlugin'],l[_0x12db2b(0x39e)],e[_0x12db2b(0x49c)]),k(0x1,(0x0,a[_0x12db2b(0x25a)])(a[_0x12db2b(0x427)])),k(0x2,a['ICommandService']),k(0x3,a[_0x12db2b(0x25c)]),k(0x4,c['IRenderManagerService'])],$),exports['SheetsShapeUIContextualRibbonSchema']=nt,exports[_0x12db2b(0x37d)]=it,Object['defineProperty'](exports,_0x12db2b(0x289),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x12db2b(0x4d1)](exports,_0x12db2b(0x3f5),{'enumerable':!0x0,'get':function(){return $;}});
|
|
1
|
+
const _0x5c10b7=_0x1d07;(function(_0x277428,_0x119777){const _0x177c9e=_0x1d07,_0x2d5ad0=_0x277428();while(!![]){try{const _0x7f9601=-parseInt(_0x177c9e(0x1ad))/0x1+-parseInt(_0x177c9e(0x178))/0x2+-parseInt(_0x177c9e(0x263))/0x3*(-parseInt(_0x177c9e(0x28b))/0x4)+-parseInt(_0x177c9e(0x1c3))/0x5+-parseInt(_0x177c9e(0x392))/0x6+-parseInt(_0x177c9e(0x27c))/0x7+-parseInt(_0x177c9e(0x3d8))/0x8*(-parseInt(_0x177c9e(0x1ff))/0x9);if(_0x7f9601===_0x119777)break;else _0x2d5ad0['push'](_0x2d5ad0['shift']());}catch(_0x48bfd9){_0x2d5ad0['push'](_0x2d5ad0['shift']());}}}(_0x1468,0x81a23),Object[_0x5c10b7(0x420)](exports,Symbol[_0x5c10b7(0x389)],{'value':_0x5c10b7(0x3a0)}));let e=require('@univerjs-pro/shape-editor-ui'),t=require('@univerjs/ui'),n=require('@univerjs-pro/engine-shape'),r=require('@univerjs-pro/shape-editor'),i=require('@univerjs-pro/sheets-shape'),a=require('@univerjs/core'),o=require('@univerjs/sheets'),s=require('@univerjs/drawing'),c=require('@univerjs/engine-render'),l=require('@univerjs/sheets-ui'),u=require('rxjs'),d=require('@univerjs/drawing-ui'),f=require('@univerjs/design'),p=require('react/jsx-runtime'),m=require('@univerjs/sheets-drawing'),h=require('@univerjs-pro/license'),g=require('@univerjs/docs'),_=require('@univerjs/docs-ui'),v=require('@univerjs/sheets-drawing-ui'),y=require('@univerjs/icons'),b=require('react');function x(_0x48f544,_0x5b8881){const _0x276103=_0x5c10b7;let _0x778c70={};for(let _0x3e6895 of Object['keys'](_0x5b8881)){let _0x448580=_0x5b8881[_0x3e6895],_0x1496f7=_0x48f544[_0x3e6895];if(_0x1496f7===void 0x0){_0x778c70[_0x3e6895]=void 0x0;continue;}_0x778c70[_0x3e6895]=typeof _0x448580==_0x276103(0x342)&&_0x448580&&!Array['isArray'](_0x448580)&&typeof _0x1496f7=='object'&&_0x1496f7&&!Array[_0x276103(0x34c)](_0x1496f7)?x(_0x1496f7,_0x448580):_0x1496f7;}return _0x778c70;}const S={'type':a[_0x5c10b7(0x4dc)][_0x5c10b7(0x2b1)],'id':_0x5c10b7(0x292),'handler':(_0x4fcabf,_0x2b1e23)=>{const _0x197dac=_0x5c10b7;let _0x20ae78=_0x4fcabf[_0x197dac(0x410)](i[_0x197dac(0x1bf)]),{unitId:_0x18da9f,subUnitId:_0x403ae2,shapeType:_0x335f90,shapeId:_0x2d79e1,shapeData:_0x414618,replaceShapeData:_0x32e14b,oldShapeJSON:_0x4a3907}=_0x2b1e23;if(!_0x20ae78[_0x197dac(0x305)](_0x18da9f,_0x403ae2,_0x2d79e1))return!0x1;let _0x5d0711=_0x4fcabf[_0x197dac(0x410)](a[_0x197dac(0x393)]),_0x373fb1=_0x4fcabf['get'](a['IUndoRedoService']),{oldShapeType:_0x301f21,oldShapeData:_0x28f028={}}=_0x4a3907,_0x8d74e4=_0x32e14b?_0x28f028:x(_0x28f028,_0x414618||{}),_0x51da75={'id':i[_0x197dac(0x186)]['id'],'params':{'unitId':_0x18da9f,'subUnitId':_0x403ae2,'shapeId':_0x2d79e1,'shapeType':_0x335f90,'shapeData':_0x414618,'replace':_0x32e14b}},_0x24df1d={'id':i[_0x197dac(0x186)]['id'],'params':{'unitId':_0x18da9f,'subUnitId':_0x403ae2,'shapeId':_0x2d79e1,'shapeType':_0x301f21,'shapeData':_0x8d74e4,'replace':_0x32e14b}};return _0x5d0711['syncExecuteCommand'](_0x51da75['id'],_0x51da75['params'])?(_0x373fb1[_0x197dac(0x382)]({'unitID':_0x18da9f,'undoMutations':[_0x24df1d],'redoMutations':[_0x51da75]}),!0x0):!0x1;}};function C(_0x3aeb41,_0x5f3d34,_0x56c10d,_0x72d97a,_0x1674f1,_0x154fb4){let _0x42e1ab={'unitId':_0x5f3d34,'subUnitId':_0x56c10d,'shapeId':_0x72d97a,'shapeData':_0x154fb4,'oldShapeJSON':_0x1674f1};return _0x3aeb41['executeCommand'](S['id'],_0x42e1ab);}function w(_0xa2d065,_0x415b1d,_0x12ee1c,_0x526e7,_0x3d77bc,_0x1c68c6){let _0x259e03={'unitId':_0x415b1d,'subUnitId':_0x12ee1c,'shapeId':_0x526e7,'shapeData':_0x1c68c6,'oldShapeJSON':_0x3d77bc};return _0xa2d065['executeCommand'](S['id'],_0x259e03);}function T(_0x2dcf23){'@babel/helpers - typeof';const _0x15b3e6=_0x5c10b7;return T=typeof Symbol==_0x15b3e6(0x39a)&&typeof Symbol['iterator']==_0x15b3e6(0x256)?function(_0x1aaf68){return typeof _0x1aaf68;}:function(_0x41a95e){const _0x5dd0e2=_0x15b3e6;return _0x41a95e&&typeof Symbol==_0x5dd0e2(0x39a)&&_0x41a95e[_0x5dd0e2(0x4b1)]===Symbol&&_0x41a95e!==Symbol['prototype']?_0x5dd0e2(0x256):typeof _0x41a95e;},T(_0x2dcf23);}function ee(_0x7ebe4d,_0x34ec85){const _0x2d4a03=_0x5c10b7;if(T(_0x7ebe4d)!=_0x2d4a03(0x342)||!_0x7ebe4d)return _0x7ebe4d;var _0x3ae81c=_0x7ebe4d[Symbol[_0x2d4a03(0x3c0)]];if(_0x3ae81c!==void 0x0){var _0x5852eb=_0x3ae81c[_0x2d4a03(0x4dd)](_0x7ebe4d,_0x34ec85||'default');if(T(_0x5852eb)!='object')return _0x5852eb;throw TypeError(_0x2d4a03(0x4e8));}return(_0x34ec85===_0x2d4a03(0x43b)?String:Number)(_0x7ebe4d);}function te(_0x5a461d){const _0xb31fa4=_0x5c10b7;var _0x5a8c76=ee(_0x5a461d,_0xb31fa4(0x43b));return T(_0x5a8c76)==_0xb31fa4(0x256)?_0x5a8c76:_0x5a8c76+'';}function E(_0x1aba0f,_0x2a0a01,_0x529839){const _0x4d984d=_0x5c10b7;return(_0x2a0a01=te(_0x2a0a01))in _0x1aba0f?Object[_0x4d984d(0x420)](_0x1aba0f,_0x2a0a01,{'value':_0x529839,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1aba0f[_0x2a0a01]=_0x529839,_0x1aba0f;}function ne(_0x4e86bd,_0x1dde8a,_0x8cc8a2){const _0x7c3c42=_0x5c10b7;let _0x59ace1={..._0x1dde8a,'dataModel':{..._0x1dde8a['dataModel']??{},..._0x8cc8a2?{'doc':_0x8cc8a2}:null}},_0x2f4994=(0x0,e[_0x7c3c42(0x32b)])(_0x4e86bd,_0x59ace1),_0x314625=(0x0,e[_0x7c3c42(0x44f)])(_0x2f4994);return{'clip':(0x0,e['shouldClipShapeTextDocument'])(_0x2f4994,_0x314625),'wrapStrategy':_0x314625};}var D=class extends c[_0x5c10b7(0x2cc)]{constructor(_0x31c5ff,_0x198dac){const _0x4210a8=_0x5c10b7;super(_0x31c5ff,_0x198dac),E(this,_0x4210a8(0x1d7),[]),E(this,_0x4210a8(0x2f4),void 0x0),E(this,'_formulaAnimation',new e[(_0x4210a8(0x32c))](()=>this['makeDirty'](!0x0),()=>this[_0x4210a8(0x3ec)]())),E(this,'_transformCalculateSrcRect',!0x0),E(this,_0x4210a8(0x332),a[_0x4210a8(0x2a4)]['DRAWING_SHAPE']),E(this,_0x4210a8(0x39d),!0x0),this['_props']={..._0x198dac},this[_0x4210a8(0x3f9)][_0x4210a8(0x179)](_0x198dac[_0x4210a8(0x200)],_0x198dac['animateFormulaPresentation']!==!0x1),this['_init'](),this['_applyFormulaAutoFitSize']();}[_0x5c10b7(0x18c)](){this['onTransformChange$']['subscribeEvent'](_0x3ec83a=>{const _0x314884=_0x1d07;this[_0x314884(0x1ab)](_0x3ec83a);});}[_0x5c10b7(0x20c)](_0xe92392){const _0x389ce7=_0x5c10b7;this[_0x389ce7(0x2f4)]['prstGeom']=_0xe92392;}['resolveHyperLinkAt'](_0x102a4c){const _0x549661=_0x5c10b7;if(this[_0x549661(0x2f4)][_0x549661(0x1a9)])return null;let _0x1a2504=this[_0x549661(0x31d)](_0x102a4c),{width:_0x469a55,height:_0x85e6ac}=this['getRealBound']();return(0x0,e['resolveShapeTextHyperLinkAt'])(this[_0x549661(0x1d7)],{'x':(this[_0x549661(0x32f)]?-_0x1a2504['x']:_0x1a2504['x'])+_0x469a55/0x2,'y':_0x1a2504['y']+_0x85e6ac/0x2});}[_0x5c10b7(0x3c6)](_0x8009b6){const _0x43cc94=_0x5c10b7;this[_0x43cc94(0x2f4)][_0x43cc94(0x1a9)]=_0x8009b6,this[_0x43cc94(0x461)](!0x0);}[_0x5c10b7(0x401)](_0x2ec4c8,_0x420ae7=!0x0){const _0x5dca82=_0x5c10b7;this['_formulaAnimation'][_0x5dca82(0x179)](_0x2ec4c8,_0x420ae7),this[_0x5dca82(0x2f4)]['formulaPresentation']=_0x2ec4c8,this[_0x5dca82(0x3ec)](),this['makeDirty'](!0x0);}['_applyFormulaAutoFitSize'](){const _0x16f0f2=_0x5c10b7;let _0x40320a=this[_0x16f0f2(0x2f4)][_0x16f0f2(0x4cf)],_0x2ed047=_0x40320a['getShapeTextData'](),_0x5711c3=(0x0,e[_0x16f0f2(0x42b)])(_0x2ed047==null?void 0x0:_0x2ed047[_0x16f0f2(0x2ed)]),_0x555b38=_0x5711c3==null?void 0x0:_0x5711c3[_0x16f0f2(0x37b)],_0x4e4e86=this[_0x16f0f2(0x3f9)][_0x16f0f2(0x4d2)]();if(!_0x555b38||_0x4e4e86['length']===0x0)return;_0x40320a[_0x16f0f2(0x2bc)]({'width':this[_0x16f0f2(0x3d4)],'height':this[_0x16f0f2(0x2c3)]});let _0x1e9c9b=(0x0,e['resolveFormulaShapeAutoFitSize'])({'documentData':_0x4e4e86[_0x16f0f2(0x4ab)](_0x240f85=>(0x0,r['createShapeFormulaDocument'])(_0x555b38,_0x240f85)),'height':this[_0x16f0f2(0x2c3)],'shapeData':_0x40320a['getShapeData'](),'textRect':_0x40320a[_0x16f0f2(0x33a)]({'left':0x0,'top':0x0,'width':this[_0x16f0f2(0x3d4)],'height':this[_0x16f0f2(0x2c3)]}),'width':this['width']});if(_0x1e9c9b){var _0x45b3da;this[_0x16f0f2(0x249)](_0x1e9c9b[_0x16f0f2(0x3d4)],_0x1e9c9b[_0x16f0f2(0x2c3)]),(_0x45b3da=this[_0x16f0f2(0x488)]())==null||(_0x45b3da=_0x45b3da['getTransformer']())==null||_0x45b3da[_0x16f0f2(0x433)]();}}get[_0x5c10b7(0x2c6)](){const _0x3dcb6d=_0x5c10b7;return this[_0x3dcb6d(0x2f4)]['unitId'];}get[_0x5c10b7(0x2b9)](){const _0x1a6330=_0x5c10b7;return this[_0x1a6330(0x2f4)][_0x1a6330(0x2b9)];}[_0x5c10b7(0x1ab)](_0x1cddff){const _0xbf8b9b=_0x5c10b7;if(this['_props']['srcRect']==null||!this[_0xbf8b9b(0x4b8)])return;let {width:_0x3f3dd1,height:_0x31070f}=this,{width:_0x3a5bc8=0x0,height:_0x8b7a7d=0x0}=_0x1cddff[_0xbf8b9b(0x26c)],{left:_0x1ca3c8=0x0,top:_0x2ac773=0x0,right:_0x23b317=0x0,bottom:_0x18d577=0x0}=this[_0xbf8b9b(0x2f4)][_0xbf8b9b(0x24a)],_0x4b7164=_0x1ca3c8,_0x277fbe=_0x2ac773,_0x525b4b=_0x23b317,_0x542b5d=_0x18d577,_0x519ace=!0x1;if(_0x3a5bc8!==0x0&&_0x3a5bc8!==_0x3f3dd1){let _0x2ce724=_0x1ca3c8/_0x3a5bc8,_0x1a1481=_0x23b317/_0x3a5bc8;_0x4b7164=_0x3f3dd1*_0x2ce724,_0x525b4b=_0x3f3dd1*_0x1a1481,_0x519ace=!0x0;}if(_0x8b7a7d!==0x0&&_0x8b7a7d!==_0x31070f){let _0xf07b8d=_0x2ac773/_0x8b7a7d,_0x2f44e2=_0x18d577/_0x8b7a7d;_0x277fbe=_0x31070f*_0xf07b8d,_0x542b5d=_0x31070f*_0x2f44e2,_0x519ace=!0x0;}_0x519ace&&this[_0xbf8b9b(0x377)]({'left':_0x4b7164,'top':_0x277fbe,'right':_0x525b4b,'bottom':_0x542b5d});}[_0x5c10b7(0x377)](_0x2bcc4e){const _0x1f8199=_0x5c10b7;this[_0x1f8199(0x2f4)][_0x1f8199(0x24a)]=_0x2bcc4e,this[_0x1f8199(0x461)](!0x0);}[_0x5c10b7(0x452)](_0x5e6c45){const _0x12db1f=_0x5c10b7;this['_props'][_0x12db1f(0x3b3)]=_0x5e6c45,this[_0x12db1f(0x461)](!0x0);}set[_0x5c10b7(0x44b)](_0x2ba276){const _0x2b7261=_0x5c10b7;this[_0x2b7261(0x3fe)]=_0x2ba276;}get[_0x5c10b7(0x44b)](){const _0x4c4b20=_0x5c10b7;this[_0x4c4b20(0x3fe)]||this[_0x4c4b20(0x3ed)]();let _0x59d6ed=this[_0x4c4b20(0x3fe)][_0x4c4b20(0x280)]();return this['transformForAngle'](_0x59d6ed);}get[_0x5c10b7(0x4cf)](){return this['_props']['shapeModel'];}get[_0x5c10b7(0x3c8)](){const _0x4bac05=_0x5c10b7;return this[_0x4bac05(0x2f4)][_0x4bac05(0x3c8)];}get[_0x5c10b7(0x355)](){const _0x31f80a=_0x5c10b7;return c[_0x31f80a(0x3be)]['SHAPE'];}[_0x5c10b7(0x2ef)](_0x3edd4f,_0x2ace97,_0x590d97,_0x3949eb){const _0x171d14=_0x5c10b7;let _0xc49f87=this[_0x171d14(0x2f4)][_0x171d14(0x4cf)];if(!_0xc49f87||!_0x2ace97)return;let _0x1c54ad=_0x590d97??this['width'],_0x3a9bc2=_0x3949eb??this[_0x171d14(0x2c3)],_0x35ed5={'shapeType':_0xc49f87[_0x171d14(0x358)](),'width':_0x1c54ad,'height':_0x3a9bc2},_0x555c22={'renderMode':n['ShapeRenderModeEnum']['Path'],'oKey':this[_0x171d14(0x202)],'image':this[_0x171d14(0x2f4)]['image'],'angle':this[_0x171d14(0x457)]};_0xc49f87[_0x171d14(0x2bc)](_0x35ed5),_0x3edd4f[_0x171d14(0x42d)]();let _0xc65feb={'top':0x0,'left':0x0,'width':_0x1c54ad,'height':_0x3a9bc2},_0x3fb49f=_0xc49f87['getDrawingEffectBounds'](_0xc65feb);_0x3fb49f?this[_0x171d14(0x448)](_0x3edd4f,_0x3fb49f,_0x58a047=>{_0xc49f87['render'](_0x58a047,_0xc65feb,_0x555c22);}):(this[_0x171d14(0x4b7)](),_0xc49f87[_0x171d14(0x20e)](_0x3edd4f,_0xc65feb,_0x555c22)),_0x3edd4f[_0x171d14(0x1f9)]();let _0x1282d4=_0xc49f87['getShapeTextData'](),_0x25126b=_0xc49f87[_0x171d14(0x33a)](_0xc65feb),_0x1416e5=_0xc49f87[_0x171d14(0x2ce)]();if(_0x1282d4&&_0x25126b&&!_0x1416e5){_0x3edd4f[_0x171d14(0x42d)](),this['getState']()[_0x171d14(0x32f)]&&_0x3edd4f['scale'](-0x1,0x1);let _0x48d2f4=_0x1c54ad/0x2,_0x1d8e1a=_0x3a9bc2/0x2;_0x3edd4f['translate'](-_0x48d2f4,-_0x1d8e1a),_0x3edd4f['beginPath'](),this[_0x171d14(0x3e5)](_0x3edd4f,_0x1282d4,_0x25126b),_0x3edd4f[_0x171d14(0x1f9)]();}}[_0x5c10b7(0x345)](_0xbe6055){}[_0x5c10b7(0x3e5)](_0xcd7612,_0xe65d2f,_0x1a8f67){const _0x104252=_0x5c10b7;var _0x387b0b;this[_0x104252(0x1d7)]=[],!this['_props'][_0x104252(0x1a9)]&&(!((_0x387b0b=_0xe65d2f['dataModel'])!=null&&_0x387b0b[_0x104252(0x37b)])&&_0x104252(0x182)in _0xe65d2f&&_0xe65d2f[_0x104252(0x182)]===!0x1?this[_0x104252(0x4bf)](_0xcd7612,_0xe65d2f,_0x1a8f67):this[_0x104252(0x2dc)](_0xcd7612,_0xe65d2f,_0x1a8f67));}[_0x5c10b7(0x4bf)](_0x5ab0bc,_0x440bfa,_0x54014a){const _0x28e6c9=_0x5c10b7;this[_0x28e6c9(0x2dc)](_0x5ab0bc,{..._0x440bfa,'text':_0x440bfa['text']??'','dataModel':{'doc':(0x0,e[_0x28e6c9(0x3bc)])(_0x440bfa,_0x28e6c9(0x299)+this[_0x28e6c9(0x202)])}},_0x54014a);}[_0x5c10b7(0x2dc)](_0x307fdc,_0x4564c3,_0x5e47ca){const _0x3c7a3f=_0x5c10b7;(0x0,e[_0x3c7a3f(0x2c7)])(_0x307fdc,this[_0x3c7a3f(0x3f9)],(_0x598be8,_0x1831ed,_0xa3efc3)=>{this['_drawRichTextLayer'](_0x598be8,_0x4564c3,_0x5e47ca,_0x1831ed,_0xa3efc3==='current');});}[_0x5c10b7(0x3f7)](_0x4c1d12,_0x4fa04f,_0x4eafce,_0x2208e3,_0x121799){const _0xbd5651=_0x5c10b7;let _0x19f36e=this[_0xbd5651(0x2f4)][_0xbd5651(0x1e8)];if(!_0x4fa04f[_0xbd5651(0x2ed)]||!_0x19f36e)return;let _0x2ff5f5=(0x0,e[_0xbd5651(0x42b)])(_0x4fa04f['dataModel']);if(!_0x2ff5f5)return;let _0x5f0403=_0x2ff5f5['doc'];if(!_0x5f0403)return;let _0x54b158=(0x0,r[_0xbd5651(0x1d8)])(_0x5f0403,_0x2208e3),_0x4f23bc=_0x2ff5f5['va']??a[_0xbd5651(0x2fb)][_0xbd5651(0x27d)],_0xa09c46=_0x2ff5f5['ha']??a[_0xbd5651(0x197)][_0xbd5651(0x1e4)],_0x54fbc3=ne(this[_0xbd5651(0x2f4)][_0xbd5651(0x4cf)][_0xbd5651(0x3dd)](),_0x4fa04f,_0x54b158),_0x28f3b1=_0x4fa04f[_0xbd5651(0x3e6)],_0x55c6b5=(0x0,e[_0xbd5651(0x36d)])(_0x54b158,{'isHorizontal':_0x28f3b1!==!0x1,'textRect':_0x4eafce,'verticalAlign':_0x4f23bc,'horizontalAlign':_0xa09c46,'wrapStrategy':_0x54fbc3['wrapStrategy']}),_0x54cea1=new a[(_0xbd5651(0x195))](_0x55c6b5),_0x168312=new c[(_0xbd5651(0x492))](_0x54cea1),_0x2028e3=c[_0xbd5651(0x1e5)][_0xbd5651(0x4a8)](_0x168312,_0x19f36e);_0x2028e3[_0xbd5651(0x3a8)]();let _0x206998=_0x2028e3['getActualSize']()[_0xbd5651(0x477)],_0x5e5719=(0x0,e[_0xbd5651(0x30e)])({'contentHeight':_0x206998,'verticalAlign':_0x4f23bc,'viewportHeight':_0x4eafce[_0xbd5651(0x2c3)]});_0x54cea1[_0xbd5651(0x388)]({'pageSize':{'width':_0x28f3b1===!0x1?_0x4eafce[_0xbd5651(0x2c3)]:_0x4eafce[_0xbd5651(0x3d4)],'height':(0x0,e['resolveShapeTextDocumentPageHeight'])(_0x54b158,_0x5e5719[_0xbd5651(0x277)])}}),_0x54cea1['updateDocumentDataMargin']({'t':_0x5e5719[_0xbd5651(0x1c9)]}),_0x2028e3[_0xbd5651(0x3a8)]();let _0x121c90=new c[(_0xbd5651(0x291))](_0xbd5651(0x4c9)+this[_0xbd5651(0x202)],_0x2028e3,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0xbd5651(0x461)](!0x0)});_0x121c90['resize'](_0x4eafce[_0xbd5651(0x3d4)],_0x5e5719[_0xbd5651(0x277)]),_0x4c1d12[_0xbd5651(0x42d)](),_0x4c1d12[_0xbd5651(0x2fd)](_0x4eafce[_0xbd5651(0x3b9)],_0x4eafce[_0xbd5651(0x1bb)]),_0x54fbc3[_0xbd5651(0x224)]&&(_0x4c1d12[_0xbd5651(0x4b5)](),_0x4c1d12['rect'](0x0,_0x5e5719[_0xbd5651(0x18b)],_0x4eafce[_0xbd5651(0x3d4)],_0x5e5719['clipHeight']),_0x4c1d12[_0xbd5651(0x224)]()),_0x5e5719[_0xbd5651(0x28c)]&&_0x4c1d12[_0xbd5651(0x2fd)](0x0,_0x5e5719[_0xbd5651(0x28c)]),_0x121c90[_0xbd5651(0x42c)](_0x4c1d12),_0x121799&&(this[_0xbd5651(0x1d7)]=(0x0,e[_0xbd5651(0x365)])(_0x121c90,{'left':_0x4eafce[_0xbd5651(0x3b9)],'top':_0x4eafce[_0xbd5651(0x1bb)]+_0x5e5719[_0xbd5651(0x28c)]},_0x54fbc3[_0xbd5651(0x224)]?{'left':_0x4eafce['left'],'right':_0x4eafce[_0xbd5651(0x3b9)]+_0x4eafce[_0xbd5651(0x3d4)],'top':_0x4eafce['top']+_0x5e5719['clipTop'],'bottom':_0x4eafce['top']+_0x5e5719['clipTop']+_0x5e5719[_0xbd5651(0x449)]}:void 0x0)),_0x4c1d12[_0xbd5651(0x1f9)](),_0x121c90[_0xbd5651(0x307)](),_0x2028e3[_0xbd5651(0x307)](),_0x168312[_0xbd5651(0x307)](),_0x54cea1[_0xbd5651(0x307)]();}[_0x5c10b7(0x20e)](_0x42eb2d,_0x27846d,_0xf74d9=!0x1){const _0x2af15c=_0x5c10b7;if(!this['visible'])return this[_0x2af15c(0x461)](!0x1),this;let {width:_0xe497a7,height:_0x141720,left:_0xce3be9,top:_0x4694b0}=this,_0x401010=this[_0x2af15c(0x226)]();if(_0xe497a7=_0x401010[_0x2af15c(0x3d4)],_0x141720=_0x401010[_0x2af15c(0x2c3)],_0xce3be9=_0x401010[_0x2af15c(0x3b9)],_0x4694b0=_0x401010[_0x2af15c(0x1bb)],this[_0x2af15c(0x4c6)](_0x27846d)){let {top:_0x40096b,left:_0xa439de,bottom:_0x4c3155,right:_0x6d4ac3}=_0x27846d[_0x2af15c(0x40c)];if(_0xe497a7+this[_0x2af15c(0x1c7)]+_0xce3be9<_0xa439de||_0x6d4ac3<_0xce3be9||_0x141720+this['strokeWidth']+_0x4694b0<_0x40096b||_0x4c3155<_0x4694b0)return this;}let _0x19896f=_0xce3be9+_0xe497a7/0x2,_0x249442=_0x4694b0+_0x141720/0x2,_0x4f8923=this[_0x2af15c(0x44b)]['getMatrix']();if(this[_0x2af15c(0x2f4)]['isEditing']){let _0x36aded=this['getState'](),_0x49cd92=new c[(_0x2af15c(0x17a))]();_0x49cd92['composeMatrix']({..._0x36aded}),_0x4f8923=_0x49cd92[_0x2af15c(0x3f1)]();}return _0x42eb2d[_0x2af15c(0x42d)](),this[_0x2af15c(0x2f4)][_0x2af15c(0x4cf)][_0x2af15c(0x24e)]===!0x0||_0x42eb2d['transform'](_0x4f8923[0x0],_0x4f8923[0x1],_0x4f8923[0x2],_0x4f8923[0x3],_0x19896f,_0x249442),this['_draw'](_0x42eb2d,_0x27846d,_0xe497a7,_0x141720),_0x42eb2d[_0x2af15c(0x1f9)](),this['makeDirty'](!0x1),this;}[_0x5c10b7(0x31d)](_0x40d6e0){const _0x4bd940=_0x5c10b7;let {left:_0x5858f4,top:_0x3e5041,width:_0x191960,height:_0xc801bc}=this[_0x4bd940(0x226)](),_0x1ccd21=this['transform']['getMatrix'](),_0x2c3df4=_0x5858f4+_0x191960/0x2,_0x9a5a73=_0x3e5041+_0xc801bc/0x2,_0x177efd=new c[(_0x4bd940(0x17a))]([_0x1ccd21[0x0],_0x1ccd21[0x1],_0x1ccd21[0x2],_0x1ccd21[0x3],_0x2c3df4,_0x9a5a73]),_0x2fc772=this['getParent']();return(this['isInGroup']&&(_0x2fc772==null?void 0x0:_0x2fc772[_0x4bd940(0x355)])===c[_0x4bd940(0x3be)][_0x4bd940(0x48c)]?_0x2fc772[_0x4bd940(0x3f2)]['multiply'](_0x177efd):_0x177efd)[_0x4bd940(0x242)]()['applyPoint'](_0x40d6e0);}[_0x5c10b7(0x18a)](_0x209ef7){const _0x44eed3=_0x5c10b7;let {left:_0xe23186,top:_0x1d422a,width:_0x28b4d0,height:_0x4679cc}=this[_0x44eed3(0x226)](),_0x38d9b9=_0xe23186+_0x28b4d0/0x2,_0x14ca41=_0x1d422a+_0x4679cc/0x2,_0x2b2031=this[_0x44eed3(0x44b)][_0x44eed3(0x3f1)](),_0x2365d4=new c[(_0x44eed3(0x17a))]([_0x2b2031[0x0],_0x2b2031[0x1],_0x2b2031[0x2],_0x2b2031[0x3],_0x38d9b9,_0x14ca41]),_0x425de6=this[_0x44eed3(0x4c3)](),_0x4a85cc=(this[_0x44eed3(0x1cb)]&&(_0x425de6==null?void 0x0:_0x425de6[_0x44eed3(0x355)])===c[_0x44eed3(0x3be)]['GROUP']?_0x425de6[_0x44eed3(0x3f2)][_0x44eed3(0x3bf)](_0x2365d4):_0x2365d4)[_0x44eed3(0x242)]()[_0x44eed3(0x4ad)](_0x209ef7),_0x4c30e6=_0x28b4d0/0x2,_0x1e74fa=_0x4679cc/0x2,_0x593df5=this[_0x44eed3(0x2f4)][_0x44eed3(0x4cf)];return _0x593df5&&_0x593df5['isLineShape']()?_0x593df5[_0x44eed3(0x322)](_0x4a85cc['x'],_0x4a85cc['y'],_0x28b4d0,_0x4679cc):_0x4a85cc['x']>=-_0x4c30e6-this[_0x44eed3(0x1c7)]/0x2&&_0x4a85cc['x']<=_0x4c30e6+this[_0x44eed3(0x1c7)]/0x2&&_0x4a85cc['y']>=-_0x1e74fa-this[_0x44eed3(0x1c7)]/0x2&&_0x4a85cc['y']<=_0x1e74fa+this[_0x44eed3(0x1c7)]/0x2;}[_0x5c10b7(0x307)](){const _0x11c26b=_0x5c10b7;this['_formulaAnimation'][_0x11c26b(0x307)](),this[_0x11c26b(0x2f4)][_0x11c26b(0x4cf)]=null,super[_0x11c26b(0x307)]();}},O=class extends c['Shape']{constructor(_0x457da4,_0x5de1b0){const _0x1265eb=_0x5c10b7;super(_0x457da4,_0x5de1b0),E(this,_0x1265eb(0x3e3),null),E(this,_0x1265eb(0x428),null),E(this,_0x1265eb(0x2a2),null),E(this,_0x1265eb(0x26f),null),_0x5de1b0&&this[_0x1265eb(0x25b)](_0x5de1b0);}[_0x5c10b7(0x281)](){const _0x3c23b4=_0x5c10b7;return{'unitId':this[_0x3c23b4(0x2a2)],'subUnitId':this[_0x3c23b4(0x26f)],'drawingId':this[_0x3c23b4(0x3e3)]};}[_0x5c10b7(0x25b)](_0x35a15f){const _0x478656=_0x5c10b7;_0x35a15f[_0x478656(0x3c8)]!==void 0x0&&(this[_0x478656(0x3e3)]=_0x35a15f[_0x478656(0x3c8)]),_0x35a15f[_0x478656(0x279)]!==void 0x0&&(this[_0x478656(0x428)]=_0x35a15f[_0x478656(0x279)]),_0x35a15f[_0x478656(0x2c6)]!==void 0x0&&(this['_unitId']=_0x35a15f[_0x478656(0x2c6)]),_0x35a15f[_0x478656(0x2b9)]!==void 0x0&&(this[_0x478656(0x26f)]=_0x35a15f[_0x478656(0x2b9)]),this['transformByState']({'width':_0x35a15f[_0x478656(0x3d4)],'height':_0x35a15f[_0x478656(0x2c3)]});}['_draw'](_0x4eeb1c){const _0x3f013d=_0x5c10b7;c[_0x3f013d(0x191)][_0x3f013d(0x308)](_0x4eeb1c,{'radius':n['ShapeDefaultConfig'][_0x3f013d(0x48e)],'fill':n['ShapeDefaultConfig']['adjHandleFill'],'stroke':n[_0x3f013d(0x1fb)]['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function k(_0x4e0efe,_0x248f2c){return function(_0x5dac69,_0x7cf684){_0x248f2c(_0x5dac69,_0x7cf684,_0x4e0efe);};}function A(_0x346d2c,_0x5a9c83,_0x2e1665,_0x120b69){const _0x61e044=_0x5c10b7;var _0x3780d2=arguments[_0x61e044(0x313)],_0x318c89=_0x3780d2<0x3?_0x5a9c83:_0x120b69===null?_0x120b69=Object[_0x61e044(0x22c)](_0x5a9c83,_0x2e1665):_0x120b69,_0x22bbe7;if(typeof Reflect=='object'&&typeof Reflect[_0x61e044(0x3e4)]=='function')_0x318c89=Reflect['decorate'](_0x346d2c,_0x5a9c83,_0x2e1665,_0x120b69);else{for(var _0x5b763d=_0x346d2c['length']-0x1;_0x5b763d>=0x0;_0x5b763d--)(_0x22bbe7=_0x346d2c[_0x5b763d])&&(_0x318c89=(_0x3780d2<0x3?_0x22bbe7(_0x318c89):_0x3780d2>0x3?_0x22bbe7(_0x5a9c83,_0x2e1665,_0x318c89):_0x22bbe7(_0x5a9c83,_0x2e1665))||_0x318c89);}return _0x3780d2>0x3&&_0x318c89&&Object[_0x61e044(0x420)](_0x5a9c83,_0x2e1665,_0x318c89),_0x318c89;}function _0x1d07(_0x2923b5,_0x5aea1f){_0x2923b5=_0x2923b5-0x16e;const _0x14681b=_0x1468();let _0x1d07f5=_0x14681b[_0x2923b5];return _0x1d07f5;}let j=class extends a[_0x5c10b7(0x374)]{constructor(_0x4ab31e,_0x45b86e,_0x1f737d,_0x87503a,_0x5e75d3,_0x49e010){const _0x3eb05a=_0x5c10b7;super(),this[_0x3eb05a(0x2ac)]=_0x4ab31e,this[_0x3eb05a(0x3d9)]=_0x45b86e,this['_localeService']=_0x1f737d,this[_0x3eb05a(0x17f)]=_0x87503a,this[_0x3eb05a(0x330)]=_0x5e75d3,this[_0x3eb05a(0x453)]=_0x49e010,E(this,_0x3eb05a(0x357),new Map()),this['disposeWithMe'](this[_0x3eb05a(0x453)][_0x3eb05a(0x2ca)][_0x3eb05a(0x45e)](_0xae7825=>{const _0x3c701c=_0x3eb05a;var _0x336fba;(_0x336fba=this['_formulaShapes']['get'](this[_0x3c701c(0x262)](_0xae7825['unitId'],_0xae7825['subUnitId'],_0xae7825[_0x3c701c(0x3c8)])))==null||_0x336fba[_0x3c701c(0x3cd)](_0x35e649=>_0x35e649[_0x3c701c(0x401)](_0xae7825[_0x3c701c(0x2a6)],_0xae7825[_0x3c701c(0x3ae)]));})),this[_0x3eb05a(0x1c0)](this[_0x3eb05a(0x2ac)][_0x3eb05a(0x1f4)][_0x3eb05a(0x45e)](_0x4f4537=>{const _0x22d0aa=_0x3eb05a;_0x4f4537[_0x22d0aa(0x3cd)](_0x26386a=>{const _0x2d5478=_0x22d0aa;this['_shapeFormulaService'][_0x2d5478(0x42f)]({'unitId':_0x26386a[_0x2d5478(0x2c6)],'subUnitId':_0x26386a[_0x2d5478(0x2b9)],'shapeId':_0x26386a[_0x2d5478(0x2de)]}),this['_formulaShapes'][_0x2d5478(0x47e)](this['_formulaKey'](_0x26386a[_0x2d5478(0x2c6)],_0x26386a[_0x2d5478(0x2b9)],_0x26386a[_0x2d5478(0x2de)]));});}));}[_0x5c10b7(0x346)](_0xa396fd,_0xec8ae7,_0x21d9f9){const _0x7f8b7b=_0x5c10b7;let {transform:_0x288e8d,drawingType:_0x313e23,srcRect:_0x7dcdfc,prstGeom:_0x567ddc,groupId:_0x32d4fe,unitId:_0x5d22d5,subUnitId:_0x256c55,drawingId:_0x1baec6,isMultiTransform:_0x381444,transforms:_0x44d18c,hidden:_0x362072,selectable:_0x27cb63}=_0xa396fd;if(_0x313e23!==a[_0x7f8b7b(0x2a4)]['DRAWING_SHAPE']||!this[_0x7f8b7b(0x2ac)][_0x7f8b7b(0x23c)]()||_0x288e8d==null)return;let _0x20caf2=this['_drawingManagerService'][_0x7f8b7b(0x316)](),_0x1a932b=_0x381444&&_0x44d18c?_0x44d18c:[_0x288e8d],_0x3ed9fe=[];for(let _0x575df9 of _0x1a932b){let {left:_0x500d22,top:_0x307e9a,width:_0x257aec,height:_0x3d1267,angle:_0xf9be72,flipX:_0x1a4a60,flipY:_0x26ca65,skewX:_0x24b03c,skewY:_0x1e8ad1}=_0x575df9,_0x2a004b=_0x1a932b['indexOf'](_0x575df9),_0x56c7e9=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x5d22d5,'subUnitId':_0x256c55,'drawingId':_0x1baec6},_0x381444?_0x2a004b:void 0x0),_0x3bf723=_0xec8ae7[_0x7f8b7b(0x24b)](_0x56c7e9);if(_0x3bf723!=null){let _0x35ab8a={'unitId':_0x5d22d5,'subUnitId':_0x256c55,'shapeId':_0x1baec6};_0x3bf723 instanceof D&&this[_0x7f8b7b(0x481)](_0x3bf723,_0x35ab8a),_0x3bf723['transformByState']({'left':_0x500d22,'top':_0x307e9a,'width':_0x257aec,'height':_0x3d1267,'angle':_0xf9be72,'flipX':_0x1a4a60,'flipY':_0x26ca65,'skewX':_0x24b03c,'skewY':_0x1e8ad1});continue;}let _0x2e87ef=this[_0x7f8b7b(0x2ac)]['getDrawingOrder'](_0x5d22d5,_0x256c55),_0x31e321=_0x2e87ef[_0x7f8b7b(0x37a)](_0x1baec6);if(_0xec8ae7[_0x7f8b7b(0x24b)](_0x56c7e9)||!this[_0x7f8b7b(0x2ac)]['getDrawingVisible']())continue;let _0x4cbed7=this[_0x7f8b7b(0x3d9)][_0x7f8b7b(0x305)](_0x5d22d5,_0x256c55,_0x1baec6);if(!_0x4cbed7)continue;let _0x84dad0=(0x0,n['isConnectorShape'])(_0x4cbed7[_0x7f8b7b(0x358)]())?{...e[_0x7f8b7b(0x350)],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:e['SHAPE_EDITOR_TRANSFORMER_CONFIG'],_0x2eef3f=_0x4cbed7[_0x7f8b7b(0x3dd)]()[_0x7f8b7b(0x3ca)],_0x496a4f={'unitId':_0x5d22d5,'subUnitId':_0x256c55,'shapeId':_0x1baec6};_0x2eef3f&&this[_0x7f8b7b(0x453)][_0x7f8b7b(0x203)](_0x496a4f,_0x2eef3f);let _0x2fe0ff=new D(_0x56c7e9,{..._0x575df9,'zIndex':_0x31e321===-0x1?_0x2e87ef[_0x7f8b7b(0x313)]-0x1:_0x31e321,'shapeModel':_0x4cbed7,'localeService':this[_0x7f8b7b(0x207)],'shapeId':_0x1baec6,'unitId':_0x5d22d5,'subUnitId':_0x256c55,'visible':_0x362072!==!0x0,'evented':_0x27cb63!==!0x1,'formulaPresentation':_0x2eef3f?this[_0x7f8b7b(0x453)][_0x7f8b7b(0x4be)](_0x496a4f):void 0x0,'animateFormulaPresentation':(_0x2eef3f==null?void 0x0:_0x2eef3f[_0x7f8b7b(0x3ae)])!==!0x1,'transformerConfig':_0x84dad0});if(_0x2eef3f){let _0x46a1b1=this[_0x7f8b7b(0x262)](_0x5d22d5,_0x256c55,_0x1baec6),_0x2568b8=this[_0x7f8b7b(0x357)]['get'](_0x46a1b1)??new Set();_0x2568b8[_0x7f8b7b(0x1b5)](_0x2fe0ff),this[_0x7f8b7b(0x357)][_0x7f8b7b(0x36f)](_0x46a1b1,_0x2568b8);}_0xec8ae7[_0x7f8b7b(0x34b)](_0x2fe0ff,c[_0x7f8b7b(0x1a6)]),_0x20caf2&&_0xec8ae7['attachTransformerTo'](_0x2fe0ff),_0x32d4fe&&(0x0,d[_0x7f8b7b(0x47a)])({'drawingId':_0x32d4fe,'unitId':_0x5d22d5,'subUnitId':_0x256c55},_0x2fe0ff,_0xec8ae7,this[_0x7f8b7b(0x2ac)]),_0x567ddc!=null&&_0x2fe0ff[_0x7f8b7b(0x20c)](_0x567ddc),_0x7dcdfc!=null&&_0x2fe0ff[_0x7f8b7b(0x377)](_0x7dcdfc);let _0x22c6ee=this[_0x7f8b7b(0x283)](_0x2fe0ff,_0x4cbed7['getShapeData']());if(_0x22c6ee){var _0x29fc29;_0x21d9f9==null||(_0x29fc29=_0x21d9f9['resourceCollector'])==null||_0x29fc29[_0x7f8b7b(0x1b5)](_0x22c6ee);}_0x3ed9fe[_0x7f8b7b(0x27a)](_0x2fe0ff);}return _0x3ed9fe;}[_0x5c10b7(0x262)](_0x1363ed,_0xb112de,_0x111fd9){return _0x1363ed+'\x00'+_0xb112de+'\x00'+_0x111fd9;}['refreshFormulaPresentation'](_0x20d0ee,_0x1e4f43){const _0x2737eb=_0x5c10b7;let _0x51ecde=this[_0x2737eb(0x3d9)][_0x2737eb(0x305)](_0x1e4f43['unitId'],_0x1e4f43[_0x2737eb(0x2b9)],_0x1e4f43[_0x2737eb(0x3c8)]),_0x5c3ca3=_0x51ecde==null?void 0x0:_0x51ecde[_0x2737eb(0x3dd)]()[_0x2737eb(0x3ca)],_0x3b4a6b=this[_0x2737eb(0x262)](_0x1e4f43[_0x2737eb(0x2c6)],_0x1e4f43[_0x2737eb(0x2b9)],_0x1e4f43['shapeId']);if(_0x5c3ca3){this['_shapeFormulaService']['register'](_0x1e4f43,_0x5c3ca3);let _0x23c755=this[_0x2737eb(0x357)][_0x2737eb(0x410)](_0x3b4a6b)??new Set();_0x23c755[_0x2737eb(0x1b5)](_0x20d0ee),this[_0x2737eb(0x357)][_0x2737eb(0x36f)](_0x3b4a6b,_0x23c755);}else{var _0x4277f9;this[_0x2737eb(0x453)]['unregister'](_0x1e4f43),(_0x4277f9=this[_0x2737eb(0x357)][_0x2737eb(0x410)](_0x3b4a6b))==null||_0x4277f9[_0x2737eb(0x47e)](_0x20d0ee);}_0x20d0ee[_0x2737eb(0x401)](_0x5c3ca3?this[_0x2737eb(0x453)]['getPresentation'](_0x1e4f43):void 0x0,(_0x5c3ca3==null?void 0x0:_0x5c3ca3[_0x2737eb(0x3ae)])!==!0x1);}[_0x5c10b7(0x21f)](_0x48ea5c){const _0x2b640c=_0x5c10b7;let _0x1918b7=_0x48ea5c[_0x2b640c(0x4cf)][_0x2b640c(0x3dd)](),_0x430dc4=_0x1918b7[_0x2b640c(0x1dc)];if(!_0x430dc4||_0x430dc4['fillType']!==n[_0x2b640c(0x30a)]['PictureFill']||!_0x430dc4[_0x2b640c(0x21a)]){_0x48ea5c[_0x2b640c(0x452)](void 0x0);return;}this[_0x2b640c(0x283)](_0x48ea5c,_0x1918b7);}[_0x5c10b7(0x283)](_0x37ed5e,_0xd2a472){const _0x2b8478=_0x5c10b7;let _0xb3a84f=_0xd2a472['fill'];if(!_0xb3a84f||_0xb3a84f[_0x2b8478(0x363)]!==n[_0x2b8478(0x30a)][_0x2b8478(0x344)]||!_0xb3a84f[_0x2b8478(0x21a)])return;let _0x54637c=_0xb3a84f[_0x2b8478(0x21a)],_0x104874=_0xb3a84f[_0x2b8478(0x2df)]??n[_0x2b8478(0x1b0)][_0x2b8478(0x406)],_0x339aeb=this['_imageIoService'][_0x2b8478(0x3fb)](_0x54637c,_0x104874);if(_0x339aeb){_0x37ed5e[_0x2b8478(0x452)](_0x339aeb);return;}return this[_0x2b8478(0x1da)](_0x37ed5e,_0x54637c,_0x104874);}async[_0x5c10b7(0x1da)](_0xd95967,_0x57ebcb,_0x327f5c){const _0x2e9345=_0x5c10b7;let _0x438321;try{if(_0x327f5c===n['ImageSourceTypeEnum'][_0x2e9345(0x4ba)])_0x438321=await this[_0x2e9345(0x17f)]['getImage'](_0x57ebcb);else{if(_0x327f5c===n[_0x2e9345(0x1b0)][_0x2e9345(0x406)])try{_0x438321=await this[_0x2e9345(0x330)][_0x2e9345(0x347)](_0x57ebcb);}catch{_0x438321=_0x57ebcb;}else _0x438321=_0x57ebcb;}}catch(_0x4a6bbe){console[_0x2e9345(0x1cd)](_0x2e9345(0x1eb),_0x4a6bbe);return;}await new Promise(_0x4cdac9=>{const _0x16345c=_0x2e9345;let _0x53dd31=new window[(_0x16345c(0x417))]();_0x53dd31[_0x16345c(0x372)]=()=>{const _0x29e45e=_0x16345c;this[_0x29e45e(0x17f)][_0x29e45e(0x480)](_0x57ebcb,_0x327f5c,_0x53dd31),_0xd95967[_0x29e45e(0x452)](_0x53dd31),_0x4cdac9();},_0x53dd31[_0x16345c(0x260)]=()=>{const _0x3f802f=_0x16345c;console['error'](_0x3f802f(0x35f),_0x57ebcb),_0x4cdac9();},_0x53dd31['src']=_0x438321;});}};j=A([k(0x0,s[_0x5c10b7(0x335)]),k(0x1,(0x0,a[_0x5c10b7(0x25d)])(i[_0x5c10b7(0x1bf)])),k(0x2,(0x0,a[_0x5c10b7(0x25d)])(a[_0x5c10b7(0x1ea)])),k(0x3,a[_0x5c10b7(0x205)]),k(0x4,a[_0x5c10b7(0x2d1)]),k(0x5,(0x0,a['Inject'])(r[_0x5c10b7(0x387)]))],j);let M=class extends a[_0x5c10b7(0x374)]{constructor(_0x408d46,_0x59310d,_0x2c5207,_0x542c28,_0x527e36,_0x2db951){const _0x239930=_0x5c10b7;super(),this[_0x239930(0x2ac)]=_0x408d46,this['_sheetsShapeService']=_0x59310d,this[_0x239930(0x33f)]=_0x2c5207,this[_0x239930(0x2d4)]=_0x542c28,this[_0x239930(0x287)]=_0x527e36,this['_commandService']=_0x2db951,E(this,_0x239930(0x490),null),E(this,_0x239930(0x2a2),null),E(this,'_subUnitId',null),E(this,_0x239930(0x213),void 0x0),E(this,_0x239930(0x41e),[]),E(this,'_baseShapeLeft',0x0),E(this,_0x239930(0x46f),0x0),E(this,_0x239930(0x309),0x0),E(this,_0x239930(0x24f),0x0),E(this,_0x239930(0x2e9),!0x1),E(this,'_activeAdjustInfo',void 0x0),E(this,_0x239930(0x4a7),void 0x0),E(this,_0x239930(0x4b6),void 0x0),E(this,_0x239930(0x329),void 0x0),E(this,'_isShouldShowDrawingShapeAdjust',!0x1),this['_registerDrawingFocusChangeHandler'](),this[_0x239930(0x439)]();}[_0x5c10b7(0x27e)](_0x3f7acc,_0xb7af31,_0x570b47){const _0x2ce2fe=_0x5c10b7;let _0x159d1d=this[_0x2ce2fe(0x3d9)]['getShapeModel'](_0x3f7acc,_0xb7af31,_0x570b47);if(_0x159d1d)return _0x159d1d[_0x2ce2fe(0x345)]();}[_0x5c10b7(0x47d)](){const _0x4ff53d=_0x5c10b7;this[_0x4ff53d(0x2a9)]();}[_0x5c10b7(0x2f5)](){const _0x3c7698=_0x5c10b7;this[_0x3c7698(0x35d)](!0x0);}[_0x5c10b7(0x1e0)](_0x6e385f){const _0x2cb23a=_0x5c10b7;this[_0x2cb23a(0x493)]=_0x6e385f;}[_0x5c10b7(0x247)](_0x298f0c,_0x5719d5,_0x446107,_0x31aed8){const _0x32e02c=_0x5c10b7;let _0x544da2=this['_sheetsShapeService'][_0x32e02c(0x305)](_0x298f0c,_0x5719d5,_0x446107);if(_0x544da2)return _0x544da2[_0x32e02c(0x45d)](_0x31aed8);}[_0x5c10b7(0x26e)](_0x1c7eea=!0x1){const _0x4fd812=_0x5c10b7;if(this[_0x4fd812(0x2a2)]===null||this[_0x4fd812(0x26f)]===null||this[_0x4fd812(0x490)]===null)return;let _0x5d109e=this[_0x4fd812(0x33f)][_0x4fd812(0x30f)](this[_0x4fd812(0x2a2)]);if(!_0x5d109e||!_0x5d109e[_0x4fd812(0x300)](l[_0x4fd812(0x31c)])[_0x4fd812(0x25e)]())return;let {scene:_0x23598d}=_0x5d109e,_0x338772={'unitId':this['_unitId'],'subUnitId':this[_0x4fd812(0x26f)],'drawingId':this[_0x4fd812(0x490)]},_0x21f848=this[_0x4fd812(0x2ac)]['getDrawingByParam'](_0x338772),{transform:_0x85f2b0}=_0x21f848;if(!_0x85f2b0||_0x21f848[_0x4fd812(0x1e3)]!==a[_0x4fd812(0x2a4)]['DRAWING_SHAPE'])return;let {left:_0x2e7c65,top:_0x10fd56,width:_0x1144d4,height:_0x5b4046,flipX:_0xc392b4,flipY:_0x48fdba,angle:_0x4b9037=0x0}=_0x85f2b0;if(_0x2e7c65===void 0x0||_0x10fd56===void 0x0)return;if(_0x1c7eea){let _0x19f7ee=this[_0x4fd812(0x3d9)]['getShapeModel'](this['_unitId'],this[_0x4fd812(0x26f)],this[_0x4fd812(0x490)]);_0x19f7ee==null||_0x19f7ee[_0x4fd812(0x2bc)]({'width':_0x1144d4??0x0,'height':_0x5b4046??0x0}),this['_activeShapeAdjustPointList']=_0x19f7ee==null?void 0x0:_0x19f7ee[_0x4fd812(0x345)]();}let _0x3137a3=this['_activeShapeAdjustPointList'];for(let _0x53452a=0x0;_0x53452a<_0x3137a3[_0x4fd812(0x313)];_0x53452a++){let _0x1a52df=_0x3137a3[_0x53452a],_0x4ebc59=_0x1a52df['x'],_0x52d7fb=_0x1a52df['y'];if(_0xc392b4&&(_0x4ebc59=(_0x1144d4||0x0)-_0x4ebc59),_0x48fdba&&(_0x52d7fb=(_0x5b4046||0x0)-_0x52d7fb),_0x4b9037!==0x0){let _0x139193=(_0x1144d4||0x0)/0x2,_0x23f385=(_0x5b4046||0x0)/0x2,_0x3c6b5d=_0x4b9037*Math['PI']/0xb4,_0x4e4d63=Math[_0x4fd812(0x373)](_0x3c6b5d),_0x3e39d1=Math[_0x4fd812(0x35a)](_0x3c6b5d),_0xd5f274=_0x4ebc59-_0x139193,_0x2357cb=_0x52d7fb-_0x23f385;_0x4ebc59=_0x139193+(_0xd5f274*_0x4e4d63-_0x2357cb*_0x3e39d1),_0x52d7fb=_0x23f385+(_0xd5f274*_0x3e39d1+_0x2357cb*_0x4e4d63);}let _0x125837={'x':_0x4ebc59,'y':_0x52d7fb,'adjName':_0x1a52df['adjName']};this[_0x4fd812(0x48d)](_0x23598d,_0x125837,_0x125837[_0x4fd812(0x279)],_0x2e7c65,_0x10fd56,this[_0x4fd812(0x2a2)],this[_0x4fd812(0x26f)]);}}['_updateShapeAdjustControls'](_0x57aa6d=!0x1){const _0x6d8f3d=_0x5c10b7;_0x57aa6d&&(this[_0x6d8f3d(0x2a9)](),this[_0x6d8f3d(0x26e)](_0x57aa6d));}[_0x5c10b7(0x48d)](_0x3a7e9b,_0x4abe8d,_0x212a41,_0x11f71a,_0x28969b,_0x262581,_0x156957){const _0x5d372a=_0x5c10b7;if(!this[_0x5d372a(0x490)])return;let _0xdc6474=_0x3a7e9b[_0x5d372a(0x24b)]('shape-adjust-point-'+this[_0x5d372a(0x490)]+'-'+_0x212a41);if(_0xdc6474){_0xdc6474['transformByState']({'left':_0x4abe8d['x']+_0x11f71a-n[_0x5d372a(0x1fb)]['adjHandleSize'],'top':_0x4abe8d['y']+_0x28969b-n[_0x5d372a(0x1fb)]['adjHandleSize']});return;}let _0x4a827c={'left':_0x4abe8d['x']+_0x11f71a-n[_0x5d372a(0x1fb)][_0x5d372a(0x48e)],'top':_0x4abe8d['y']+_0x28969b-n[_0x5d372a(0x1fb)][_0x5d372a(0x48e)],'adjName':_0x212a41,'shapeId':this['_activeShapeId'],'unitId':_0x262581,'subUnitId':_0x156957,'width':n[_0x5d372a(0x1fb)]['adjHandleSize']+0x8,'height':n[_0x5d372a(0x1fb)]['adjHandleSize']+0x8,'zIndex':c['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0},_0x3d160b=new O('shape-adjust-point-'+this[_0x5d372a(0x490)]+'-'+_0x212a41,_0x4a827c);this[_0x5d372a(0x41e)][_0x5d372a(0x27a)](_0x3d160b),this[_0x5d372a(0x20a)](_0x3d160b,_0x3a7e9b,_0x212a41),_0x3a7e9b[_0x5d372a(0x34b)](_0x3d160b,c[_0x5d372a(0x1a6)]+0x1);}[_0x5c10b7(0x2a9)](){const _0x16f3ca=_0x5c10b7;this['_shapes'][_0x16f3ca(0x313)]!==0x0&&(this[_0x16f3ca(0x41e)][_0x16f3ca(0x3cd)](_0x3fcb78=>{_0x3fcb78['dispose']();}),this['_shapes']=[]);}[_0x5c10b7(0x408)](){const _0x17c756=_0x5c10b7;this[_0x17c756(0x26e)]();}[_0x5c10b7(0x2f8)](_0x5945ee,_0x8a4813){const _0x3aa5ef=_0x5c10b7;var _0xdd401f;let _0x4827f6={'x':0x0,'y':0x0};if(!_0x5945ee||!_0x8a4813)return _0x4827f6;let _0x598302=this['_renderManagerService'][_0x3aa5ef(0x30f)](_0x5945ee);if(!_0x598302||!_0x598302[_0x3aa5ef(0x300)](l[_0x3aa5ef(0x31c)])[_0x3aa5ef(0x29c)](_0x8a4813))return _0x4827f6;let _0x3fab20=_0x598302[_0x3aa5ef(0x300)](l[_0x3aa5ef(0x273)]),_0x5553a3=_0x3fab20==null?void 0x0:_0x3fab20[_0x3aa5ef(0x319)]();if(!_0x5553a3)return _0x4827f6;let _0x74a010=(_0xdd401f=this['_univerInstanceService'][_0x3aa5ef(0x278)](_0x5945ee))==null?void 0x0:_0xdd401f[_0x3aa5ef(0x222)](_0x8a4813);if(!_0x74a010)return _0x4827f6;let _0x169c19=(0x0,l[_0x3aa5ef(0x45b)])(_0x5553a3[_0x3aa5ef(0x18d)],_0x5553a3[_0x3aa5ef(0x23a)],_0x598302[_0x3aa5ef(0x48b)],_0x74a010);return _0x169c19?{'x':_0x169c19['viewportScrollX'],'y':_0x169c19[_0x3aa5ef(0x376)]}:_0x4827f6;}[_0x5c10b7(0x228)](_0x15b40f,_0x2601fd){const _0xf01a2=_0x5c10b7;var _0x3f4d00;let _0xb00cb2=(_0x3f4d00=this[_0xf01a2(0x287)][_0xf01a2(0x278)](_0x15b40f))==null?void 0x0:_0x3f4d00[_0xf01a2(0x222)](_0x2601fd);return(_0xb00cb2==null?void 0x0:_0xb00cb2[_0xf01a2(0x250)]())??0x1;}['_attachAdjustEvent'](_0x3b497c,_0x5b5d13,_0x1a6d24){const _0x12348d=_0x5c10b7;this[_0x12348d(0x1c0)]((0x0,a[_0x12348d(0x3e8)])(_0x3b497c['onPointerDown$'][_0x12348d(0x3e9)]((_0x46fcfe,_0x3907e6)=>{const _0x129a0f=_0x12348d;var _0x1a89b6,_0x451023,_0x3bf487,_0x5443bc;let _0xdbd5da=_0x3b497c[_0x129a0f(0x281)]();this[_0x129a0f(0x409)]=this['_getShapeAdjustInfosById'](_0xdbd5da[_0x129a0f(0x2c6)],_0xdbd5da['subUnitId'],_0xdbd5da[_0x129a0f(0x2de)],_0x1a6d24),this['_activeShapeModel']=this[_0x129a0f(0x3d9)]['getShapeModel'](_0xdbd5da['unitId'],_0xdbd5da[_0x129a0f(0x2b9)],_0xdbd5da[_0x129a0f(0x2de)]);let _0x35c8b9=this[_0x129a0f(0x2ac)]['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this[_0x129a0f(0x26f)],'drawingId':this[_0x129a0f(0x490)]}),{transform:_0x4400e8}=_0x35c8b9;if(_0x4400e8){let {left:_0x590407,top:_0x7bca4e,width:_0x3cfeb8,height:_0x34b287}=_0x4400e8;this[_0x129a0f(0x4db)]=_0x590407||0x0,this[_0x129a0f(0x46f)]=_0x7bca4e||0x0,this[_0x129a0f(0x309)]=_0x3cfeb8||0x0,this[_0x129a0f(0x24f)]=_0x34b287||0x0;}let _0x3938ab=!!((_0x1a89b6=_0x35c8b9[_0x129a0f(0x44b)])!=null&&_0x1a89b6[_0x129a0f(0x32f)]),_0x296698=!!((_0x451023=_0x35c8b9[_0x129a0f(0x44b)])!=null&&_0x451023['flipY']),_0x430c24=((_0x3bf487=_0x35c8b9[_0x129a0f(0x44b)])==null?void 0x0:_0x3bf487[_0x129a0f(0x457)])||0x0;this[_0x129a0f(0x2e9)]=!0x0,_0x5b5d13['disableObjectsEvent']();let _0x535045={...((_0x5443bc=this[_0x129a0f(0x409)])==null?void 0x0:_0x5443bc[_0x129a0f(0x395)])??{}};this[_0x129a0f(0x4b6)]=_0x5b5d13[_0x129a0f(0x238)]['subscribeEvent']((_0x3a3262,_0x352480)=>{const _0x14f22f=_0x129a0f;if(!this[_0x14f22f(0x2e9)])return;let {offsetX:_0x3e82b2,offsetY:_0x115021}=_0x3a3262,_0x1aa5a3=this[_0x14f22f(0x409)];if(this[_0x14f22f(0x4a7)]&&_0x1aa5a3){_0x5b5d13[_0x14f22f(0x43f)](),_0x5b5d13[_0x14f22f(0x423)](c[_0x14f22f(0x48f)][_0x14f22f(0x2b5)]);let _0x18e9ce={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0x14f22f(0x24f)]},_0x4d3f85=this[_0x14f22f(0x2f8)](this[_0x14f22f(0x2a2)],this[_0x14f22f(0x26f)]),_0x54bcbb=this['_getZoomRatio'](this[_0x14f22f(0x2a2)],this['_subUnitId']),_0x280d9a=_0x3e82b2/_0x54bcbb+_0x4d3f85['x']-this[_0x14f22f(0x4db)],_0xbc5d3e=_0x115021/_0x54bcbb+_0x4d3f85['y']-this[_0x14f22f(0x46f)];if(_0x430c24!==0x0){let _0x507f14=this[_0x14f22f(0x309)]/0x2,_0x2ce00d=this[_0x14f22f(0x24f)]/0x2,_0x4e277f=_0x430c24*Math['PI']/0xb4,_0x5be83a=Math['cos'](_0x4e277f),_0x258a1a=Math['sin'](_0x4e277f),_0x334631=_0x280d9a-_0x507f14,_0x34f6f5=_0xbc5d3e-_0x2ce00d;_0x280d9a=_0x507f14+(_0x334631*_0x5be83a+_0x34f6f5*_0x258a1a),_0xbc5d3e=_0x2ce00d+(-_0x334631*_0x258a1a+_0x34f6f5*_0x5be83a);}_0x3938ab&&(_0x280d9a=this[_0x14f22f(0x309)]-_0x280d9a),_0x296698&&(_0xbc5d3e=this[_0x14f22f(0x24f)]-_0xbc5d3e);let _0x4b0fb9={'x':_0x280d9a,'y':_0xbc5d3e},_0x283f79=this[_0x14f22f(0x4a7)][_0x14f22f(0x29d)](_0x18e9ce,_0x4b0fb9,_0x1aa5a3,_0x3938ab,_0x296698);if(Object[_0x14f22f(0x3e0)](_0x283f79)[_0x14f22f(0x313)]===0x0)return;for(let [_0x1e27ef,_0x4a2b4b]of Object[_0x14f22f(0x286)](_0x283f79))this['_activeShapeModel']['setAdjustValueByName'](_0x1e27ef,_0x4a2b4b);this[_0x14f22f(0x4a7)][_0x14f22f(0x2bc)]({'width':this[_0x14f22f(0x309)],'height':this[_0x14f22f(0x24f)]});let _0x2d4c50=this[_0x14f22f(0x2ac)][_0x14f22f(0x341)]({'unitId':_0xdbd5da[_0x14f22f(0x2c6)],'subUnitId':_0xdbd5da[_0x14f22f(0x2b9)],'drawingId':_0xdbd5da[_0x14f22f(0x2de)]});_0x2d4c50&&(this['_sheetDrawingShapeRenderController'][_0x14f22f(0x346)](_0x2d4c50,_0x5b5d13),this[_0x14f22f(0x213)]=this[_0x14f22f(0x27e)](_0xdbd5da[_0x14f22f(0x2c6)],_0xdbd5da[_0x14f22f(0x2b9)],_0xdbd5da[_0x14f22f(0x2de)]),this[_0x14f22f(0x408)]());}_0x352480[_0x14f22f(0x460)]();}),this[_0x129a0f(0x329)]=_0x5b5d13[_0x129a0f(0x487)][_0x129a0f(0x3e9)]((_0x402af2,_0x3d7a28)=>{const _0x3a976d=_0x129a0f;this['_adjHandlerPointerMove'][_0x3a976d(0x21e)](),this[_0x3a976d(0x329)][_0x3a976d(0x21e)](),_0x5b5d13[_0x3a976d(0x42e)]();let _0x30548a=this['_activeAdjustInfo'];if(_0x30548a){let _0x403556=_0xdbd5da[_0x3a976d(0x2c6)],_0x42c314=_0xdbd5da[_0x3a976d(0x2b9)],_0x1863a=_0xdbd5da[_0x3a976d(0x2de)],_0x384ad2={};for(let _0x26465d of Object[_0x3a976d(0x3e0)](_0x30548a[_0x3a976d(0x395)])){var _0x16bebe;let _0x10223c=(_0x16bebe=this[_0x3a976d(0x4a7)])==null?void 0x0:_0x16bebe[_0x3a976d(0x436)](_0x26465d);_0x10223c!==void 0x0&&(_0x384ad2[_0x26465d]=_0x10223c);}Object[_0x3a976d(0x3e0)](_0x384ad2)[_0x3a976d(0x313)]>0x0&&C(this[_0x3a976d(0x3f0)],_0x403556,_0x42c314,_0x1863a,{'oldShapeData':{'adjustValues':_0x535045}},{'adjustValues':_0x384ad2});}this[_0x3a976d(0x409)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x3a976d(0x2e9)]=!0x1,_0x3d7a28['stopPropagation'](),_0x5b5d13[_0x3a976d(0x391)]();}),_0x3907e6[_0x129a0f(0x460)]();})));}[_0x5c10b7(0x439)](){const _0x525c91=_0x5c10b7;let _0x4ad6d8=this[_0x525c91(0x287)]['getCurrentTypeOfUnit$'](a['UniverInstanceType'][_0x525c91(0x353)]);this[_0x525c91(0x1c0)](_0x4ad6d8[_0x525c91(0x2e5)]((0x0,u[_0x525c91(0x32e)])(_0xbabf70=>_0xbabf70?_0xbabf70['activeSheet$'][_0x525c91(0x2e5)]((0x0,u['switchMap'])(_0x400104=>{const _0x535f4d=_0x525c91;if(!_0x400104)return u[_0x535f4d(0x254)];let _0x50b91a=_0xbabf70['getUnitId'](),_0x58d9a6=this[_0x535f4d(0x33f)][_0x535f4d(0x30f)](_0x50b91a),_0x2f90bc=_0x58d9a6==null?void 0x0:_0x58d9a6[_0x535f4d(0x48b)];return _0x2f90bc?(0x0,u['of'])(_0x2f90bc):u['EMPTY'];})):u['EMPTY']))[_0x525c91(0x45e)](_0x461890=>{const _0x5ece0c=_0x525c91;let _0x5caef1=_0x461890[_0x5ece0c(0x325)]();this[_0x5ece0c(0x1c0)](_0x461890[_0x5ece0c(0x238)][_0x5ece0c(0x3e9)](()=>{const _0x51bf70=_0x5ece0c;this[_0x51bf70(0x493)];})),this['disposeWithMe'](_0x5caef1['changeStart$'][_0x5ece0c(0x45e)](_0x502038=>{const _0x3cf12c=_0x5ece0c;let {objects:_0x5b450e}=_0x502038;this[_0x3cf12c(0x26e)](),_0x5b450e!==null&&_0x5b450e[_0x3cf12c(0x20b)]===0x1&&_0x5b450e[_0x3cf12c(0x364)]()['next']()[_0x3cf12c(0x1ed)]instanceof D&&this[_0x3cf12c(0x1e0)](!0x0);})),this[_0x5ece0c(0x1c0)](_0x5caef1[_0x5ece0c(0x450)][_0x5ece0c(0x45e)](()=>{this['_isShouldShowDrawingShapeAdjust']&&this['_clearShapeAdjustControls']();})),this[_0x5ece0c(0x1c0)](_0x461890[_0x5ece0c(0x487)]['subscribeEvent'](()=>{const _0x426fc5=_0x5ece0c;this[_0x426fc5(0x493)]&&(this[_0x426fc5(0x1e0)](!0x1),this[_0x426fc5(0x26e)]());})),this[_0x5ece0c(0x1c0)](_0x5caef1[_0x5ece0c(0x19c)][_0x5ece0c(0x45e)](()=>{const _0x59a636=_0x5ece0c;this[_0x59a636(0x2a2)]&&this['_subUnitId']&&this[_0x59a636(0x490)]&&this[_0x59a636(0x2ac)][_0x59a636(0x341)]({'unitId':this[_0x59a636(0x2a2)],'subUnitId':this[_0x59a636(0x26f)],'drawingId':this['_activeShapeId']})&&(this[_0x59a636(0x213)]=this[_0x59a636(0x27e)](this['_unitId'],this[_0x59a636(0x26f)],this[_0x59a636(0x490)]),this[_0x59a636(0x408)]());}));}));}[_0x5c10b7(0x2b8)](){const _0x2b4390=_0x5c10b7;this[_0x2b4390(0x1c0)](this[_0x2b4390(0x3f0)][_0x2b4390(0x4d1)](_0x2f050f=>{const _0x40a19c=_0x2b4390;if(_0x2f050f['id']!==i[_0x40a19c(0x186)]['id'])return;let {unitId:_0x15d224,subUnitId:_0x508696,shapeId:_0x2b86b7}=_0x2f050f[_0x40a19c(0x2f7)];_0x15d224===this['_unitId']&&_0x508696===this['_subUnitId']&&_0x2b86b7===this[_0x40a19c(0x490)]&&this['refreshAdjustControls']();})),this['disposeWithMe'](this[_0x2b4390(0x2ac)][_0x2b4390(0x47b)][_0x2b4390(0x45e)](_0x14e28e=>{const _0x2d43e5=_0x2b4390;if(_0x14e28e[_0x2d43e5(0x313)]===0x1){let _0x3e3de0=_0x14e28e[0x0];if(_0x3e3de0[_0x2d43e5(0x1e3)]===a['DrawingTypeEnum'][_0x2d43e5(0x2bd)]&&this[_0x2d43e5(0x287)][_0x2d43e5(0x22f)](_0x3e3de0[_0x2d43e5(0x2c6)])===a[_0x2d43e5(0x1c5)][_0x2d43e5(0x353)]){this[_0x2d43e5(0x490)]=_0x3e3de0[_0x2d43e5(0x2de)];let {unitId:_0x3f2f52,subUnitId:_0xc14aef}=_0x3e3de0;this[_0x2d43e5(0x213)]=this[_0x2d43e5(0x27e)](_0x3f2f52,_0xc14aef,this[_0x2d43e5(0x490)]),this['_unitId']=_0x3f2f52,this[_0x2d43e5(0x26f)]=_0xc14aef,this[_0x2d43e5(0x2a9)](),this[_0x2d43e5(0x26e)]();return;}}this[_0x2d43e5(0x490)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x2d43e5(0x2a2)]=null,this[_0x2d43e5(0x26f)]=null,this['_clearShapeAdjustControls']();})),this[_0x2b4390(0x1c0)](this['_drawingManagerService']['update$'][_0x2b4390(0x45e)](_0x3ba109=>{const _0x3381c5=_0x2b4390;if(_0x3ba109[_0x3381c5(0x313)]===0x1){var _0x45fe9f;let _0x4009b2=_0x3ba109[0x0];((_0x45fe9f=this['_drawingManagerService'][_0x3381c5(0x341)](_0x4009b2))==null?void 0x0:_0x45fe9f['drawingType'])===a[_0x3381c5(0x2a4)][_0x3381c5(0x2bd)]&&this[_0x3381c5(0x35d)](!0x0);}})),this['disposeWithMe'](this['_drawingManagerService']['remove$'][_0x2b4390(0x45e)](_0x2b51f3=>{const _0x2ec973=_0x2b4390;for(let _0x39f42a of _0x2b51f3)this[_0x2ec973(0x490)]===_0x39f42a[_0x2ec973(0x2de)]&&(this[_0x2ec973(0x490)]=null,this[_0x2ec973(0x213)]=void 0x0,this['_unitId']=null,this[_0x2ec973(0x26f)]=null,this[_0x2ec973(0x2a9)]());}));}};M=A([k(0x0,s['IDrawingManagerService']),k(0x1,(0x0,a[_0x5c10b7(0x25d)])(i[_0x5c10b7(0x1bf)])),k(0x2,(0x0,a[_0x5c10b7(0x25d)])(c[_0x5c10b7(0x184)])),k(0x3,(0x0,a[_0x5c10b7(0x25d)])(j)),k(0x4,a[_0x5c10b7(0x1f7)]),k(0x5,a[_0x5c10b7(0x393)])],M);const N={'id':_0x5c10b7(0x177),'type':a['CommandType'][_0x5c10b7(0x3b8)],'handler':(_0x13b1e2,_0x242691)=>{const _0x3da0a2=_0x5c10b7;let _0x230c4e=_0x13b1e2[_0x3da0a2(0x410)](s[_0x3da0a2(0x335)]),_0x42efb8=_0x13b1e2['get'](c[_0x3da0a2(0x184)]),_0x30dc6b=_0x13b1e2[_0x3da0a2(0x410)](M);if(_0x242691==null)return!0x0;if(_0x242691[_0x3da0a2(0x313)]>0x0){var _0x56a005;let _0x1dbd57=(_0x56a005=_0x42efb8[_0x3da0a2(0x30f)](_0x242691[0x0]['unitId']))==null?void 0x0:_0x56a005[_0x3da0a2(0x48b)];if(_0x1dbd57){let {unitId:_0x477809,subUnitId:_0x2c276a,drawingId:_0x1d7a0c}=_0x242691[0x0],_0x54c214=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x477809,'subUnitId':_0x2c276a,'drawingId':_0x1d7a0c},void 0x0),_0x247509=_0x1dbd57[_0x3da0a2(0x24b)](_0x54c214);if(_0x247509){var _0x425df7;(_0x425df7=_0x42efb8[_0x3da0a2(0x30f)](_0x242691[0x0]['unitId']))==null||(_0x425df7=_0x425df7[_0x3da0a2(0x48b)][_0x3da0a2(0x3a3)]())==null||_0x425df7[_0x3da0a2(0x39c)](_0x247509);}}_0x230c4e[_0x3da0a2(0x1fe)](_0x242691),_0x30dc6b['setShouldShowAdjust'](!0x1);}return!0x0;}},P={'type':a['CommandType'][_0x5c10b7(0x2b1)],'id':'sheet.command.menu-insert-shape','handler':async(_0x59915d,_0x2118e0)=>{const _0x1d347a=_0x5c10b7;let _0xf6bbf7=(0x0,o[_0x1d347a(0x465)])(_0x59915d[_0x1d347a(0x410)](a[_0x1d347a(0x1f7)]));if(!_0xf6bbf7)return!0x1;let _0xa2511f=_0x59915d[_0x1d347a(0x410)](o['SheetsSelectionsService'])['getCurrentLastSelection']();if(!_0xa2511f)return!0x1;let _0x5aaeb5=_0x59915d['get'](a[_0x1d347a(0x393)]),{unitId:_0x9905e7,subUnitId:_0x372db9}=_0xf6bbf7,{value:_0x483a30,enhanceParams:_0x18e61d}=_0x2118e0,{range:_0x5ba468}=_0xa2511f,_0x385f4d={'unitId':_0x9905e7,'subUnitId':_0x372db9,'shapeType':_0x483a30,'range':_0x5ba468,'shapeId':(0x0,a['generateRandomId'])()};if(_0x18e61d){let _0x997a9f=(0x0,n[_0x1d347a(0x2b0)])(_0x483a30),_0xdea53f=_0x483a30===n[_0x1d347a(0x3ef)][_0x1d347a(0x426)];_0x997a9f&&(_0x18e61d[_0x1d347a(0x304)]||_0x18e61d[_0x1d347a(0x1a7)])&&(_0x385f4d[_0x1d347a(0x2a5)]={'ln':{'startArrow':_0x18e61d['startArrow']?{'type':n[_0x1d347a(0x1b1)]['Arrow'],'size':n['ShapeArrowSizeEnum'][_0x1d347a(0x49b)]}:void 0x0,'endArrow':_0x18e61d[_0x1d347a(0x1a7)]?{'type':n[_0x1d347a(0x1b1)][_0x1d347a(0x1c8)],'size':n[_0x1d347a(0x386)]['Large']}:void 0x0}}),_0xdea53f&&(_0x18e61d[_0x1d347a(0x2ba)]||_0x18e61d['vertical'])&&(_0x385f4d['shapeData']=(0x0,r[_0x1d347a(0x272)])({'fill':{'fillType':n[_0x1d347a(0x30a)][_0x1d347a(0x1b3)],'color':_0x1d347a(0x2b7)},'isHorizontal':!!_0x18e61d[_0x1d347a(0x2ba)],'stroke':{'lineStrokeType':n['ShapeLineTypeEnum'][_0x1d347a(0x484)],'width':0x1,'color':'#bcbcbc'}}));}let _0x1afeb0=_0x5aaeb5[_0x1d347a(0x4b3)](i['InsertShapeCommand']['id'],_0x385f4d);return setTimeout(()=>{const _0x1b4d03=_0x1d347a;_0x5aaeb5[_0x1b4d03(0x4a0)](N['id'],[{'unitId':_0x9905e7,'subUnitId':_0x372db9,'drawingId':_0x385f4d['shapeId']}]);},0xc8),_0x1afeb0;}},F=_0x5c10b7(0x19b),I=_0x5c10b7(0x174),L=_0x5c10b7(0x194),R='sheets-shape-ui.ribbon.shape-format',re=(0x0,a['createInternalEditorID'])(_0x5c10b7(0x42a)),ie='sheet.shape.text.float-menu',ae={'id':_0x5c10b7(0x230),'type':a[_0x5c10b7(0x4dc)][_0x5c10b7(0x2b1)],'handler':(_0x422dde,_0x4f8500)=>{const _0x5b8dad=_0x5c10b7;let _0x4f0297=_0x422dde[_0x5b8dad(0x410)](t[_0x5b8dad(0x17d)]),_0x59c058=_0x422dde['get'](a[_0x5b8dad(0x1ea)]),_0x48ea8a=_0x422dde[_0x5b8dad(0x410)](a[_0x5b8dad(0x1f7)]),_0x249fdf=_0x422dde[_0x5b8dad(0x410)](a[_0x5b8dad(0x393)]);return(0x0,o[_0x5b8dad(0x465)])(_0x48ea8a)?(_0x4f8500==null?void 0x0:_0x4f8500[_0x5b8dad(0x1ed)])==='close'?(_0x4f0297[_0x5b8dad(0x284)](I),!0x0):(_0x4f0297['open']({'id':I,'header':{'title':_0x59c058['t'](_0x5b8dad(0x2e3))},'children':{'label':I},'onClose':()=>{const _0x55cad6=_0x5b8dad;_0x249fdf['syncExecuteCommand'](s[_0x55cad6(0x296)]['id'],[]);},'width':0x168}),!0x0):!0x1;}},z={'type':a[_0x5c10b7(0x4dc)]['OPERATION'],'id':_0x5c10b7(0x340),'handler'(){return!0x0;}};function oe(_0x176d0d){const _0x5e94b9=_0x5c10b7;let _0x210792=_0x176d0d[_0x5e94b9(0x410)](s[_0x5e94b9(0x335)])[_0x5e94b9(0x3ff)](),_0x583b26=_0x210792[_0x5e94b9(0x313)]===0x1?_0x210792[0x0]:null;if(!_0x583b26||_0x583b26['drawingType']!==a['DrawingTypeEnum'][_0x5e94b9(0x2bd)])return null;let _0x15c46d=_0x176d0d['get'](i[_0x5e94b9(0x1bf)]),_0x2a1cf8=_0x15c46d['getShapeTypeById'](_0x583b26[_0x5e94b9(0x2c6)],_0x583b26['subUnitId'],_0x583b26['drawingId']),_0x35bb70=_0x15c46d[_0x5e94b9(0x415)](_0x583b26[_0x5e94b9(0x2c6)],_0x583b26['subUnitId'],_0x583b26[_0x5e94b9(0x2de)]);return _0x2a1cf8===void 0x0||!_0x35bb70?null:{'drawing':_0x583b26,'shapeData':_0x35bb70,'shapeType':_0x2a1cf8};}const se={'id':'sheet.operation.apply-shape-quick-style','type':a[_0x5c10b7(0x4dc)][_0x5c10b7(0x3b8)],'handler':(_0x4f95dc,_0x572ef6)=>{const _0x5412b0=_0x5c10b7;let _0x166f96=oe(_0x4f95dc),_0x18d2d6=(0x0,r[_0x5412b0(0x2ff)])((_0x572ef6==null?void 0x0:_0x572ef6[_0x5412b0(0x3f4)])??(_0x572ef6==null?void 0x0:_0x572ef6['value'])??'');if(!_0x166f96||!_0x18d2d6||_0x18d2d6['type']!==(0x0,r[_0x5412b0(0x437)])(_0x166f96['shapeData']))return!0x1;let _0x1bb21d=(0x0,r['applyQuickStyleToShapeData'])(_0x166f96[_0x5412b0(0x2a5)],_0x18d2d6);if(!_0x1bb21d)return!0x1;let {drawing:_0x1cb222}=_0x166f96;return _0x4f95dc[_0x5412b0(0x410)](a[_0x5412b0(0x393)])['executeCommand'](S['id'],{'unitId':_0x1cb222[_0x5412b0(0x2c6)],'subUnitId':_0x1cb222['subUnitId'],'shapeId':_0x1cb222[_0x5412b0(0x2de)],'shapeData':_0x1bb21d,'oldShapeJSON':{'oldShapeData':_0x166f96[_0x5412b0(0x2a5)]}});}},ce={'id':_0x5c10b7(0x44d),'type':a[_0x5c10b7(0x4dc)][_0x5c10b7(0x3b8)],'handler':(_0x1aa33a,_0x2e87df)=>{const _0x204341=_0x5c10b7;let _0x3768dc=oe(_0x1aa33a),_0x589ae4=(_0x2e87df==null?void 0x0:_0x2e87df[_0x204341(0x17e)])??(_0x2e87df==null?void 0x0:_0x2e87df[_0x204341(0x1ed)]);if(!_0x3768dc||!_0x589ae4||(0x0,n[_0x204341(0x2b0)])(_0x3768dc['shapeType'])||(0x0,n[_0x204341(0x2b0)])(_0x589ae4))return!0x1;let _0x2135a8=(0x0,r[_0x204341(0x472)])(_0x3768dc[_0x204341(0x2a5)],_0x589ae4);if(!_0x2135a8)return!0x1;let {drawing:_0x4499fa}=_0x3768dc;return _0x1aa33a[_0x204341(0x410)](a[_0x204341(0x393)])[_0x204341(0x4a0)](S['id'],{'unitId':_0x4499fa[_0x204341(0x2c6)],'subUnitId':_0x4499fa[_0x204341(0x2b9)],'shapeId':_0x4499fa[_0x204341(0x2de)],'shapeType':_0x589ae4,'shapeData':_0x2135a8,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x3768dc[_0x204341(0x17e)],'oldShapeData':_0x3768dc[_0x204341(0x2a5)]}});}};let B=class extends a[_0x5c10b7(0x374)]{constructor(_0x222c35,_0x1e1bca){const _0x417c22=_0x5c10b7;super(),this[_0x417c22(0x2a3)]=_0x222c35,this['_drawingManagerService']=_0x1e1bca,this['_registerImageShapeClipDelegate'](),this[_0x417c22(0x2a3)][_0x417c22(0x1ba)](!0x0),this[_0x417c22(0x1c0)]({'dispose':()=>this[_0x417c22(0x2a3)]['setCanUseShapeClip'](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x311804=_0x5c10b7;let _0x556313=this[_0x311804(0x2a3)],_0xfefd5f=new Map(),_0x3be0d0=_0x556313[_0x311804(0x298)]((_0x435bc,_0x257551,_0x1c4081,_0x4859b0,_0x347607)=>{const _0x2ab683=_0x311804;let _0x175841=_0x257551;if(_0x175841===n[_0x2ab683(0x3ef)]['None']||_0x257551===_0x2ab683(0x1f3))return!0x1;try{let _0x1f305b=_0xfefd5f[_0x2ab683(0x410)](_0x257551);return _0x1f305b||(_0x1f305b=new n['ShapeModel'](_0x175841,_0x2ab683(0x446)+_0x257551),_0xfefd5f[_0x2ab683(0x36f)](_0x257551,_0x1f305b)),_0x1f305b[_0x2ab683(0x3ee)](),_0x347607&&Object['keys'](_0x347607)[_0x2ab683(0x313)]>0x0&&_0x1f305b[_0x2ab683(0x3a1)]({'adjustValues':_0x347607},!0x0),_0x1f305b['updateContext']({'width':_0x1c4081,'height':_0x4859b0}),_0x1f305b[_0x2ab683(0x1a8)](_0x435bc,{'left':0x0,'top':0x0,'width':_0x1c4081,'height':_0x4859b0});}catch{return!0x1;}});this[_0x311804(0x1c0)](_0x3be0d0),this[_0x311804(0x1c0)]({'dispose':()=>_0xfefd5f[_0x311804(0x3d0)]()});}[_0x5c10b7(0x3c7)](_0x5e693b,_0x1ca537,_0x5587a8,_0x59154a,_0x14f1ba){const _0x752717=_0x5c10b7;let _0x308eb9=this['_drawingManagerService'][_0x752717(0x3e7)](_0x5e693b,_0x1ca537);if(!_0x308eb9[_0x5587a8])return;let _0x6a7088={..._0x308eb9[_0x5587a8],'prstGeom':_0x59154a,'adjustValues':_0x14f1ba};this[_0x752717(0x2ac)][_0x752717(0x234)]([_0x6a7088]);}};B=A([k(0x0,(0x0,a['Inject'])(d['DrawingImageClipService'])),k(0x1,(0x0,a[_0x5c10b7(0x25d)])(s['IDrawingManagerService']))],B);const le='sheet.shape.picker.component',ue='sheet.image-clip.shape-picker.component';function de({onShapeClick:_0x55eca8,excludeGroups:_0x5808ec}){const _0xa5bb81=_0x5c10b7;return(0x0,p[_0xa5bb81(0x1dd)])(e[_0xa5bb81(0x24c)],{'excludeGroups':_0x5808ec,'onShapeClick':_0x55eca8,'scrollContainer':_0xa5bb81(0x26a)});}function fe(){const _0x58b2c1=_0x5c10b7;let _0x108782=(0x0,t[_0x58b2c1(0x38d)])(s[_0x58b2c1(0x335)]),_0x4a207b=(0x0,t['useDependency'])(B);return(0x0,p['jsx'])(e[_0x58b2c1(0x180)],{'buttonLabel':_0x58b2c1(0x474),'excludeGroups':[e[_0x58b2c1(0x232)][_0x58b2c1(0x2d6)]],'onShapeClick':_0x45fd36=>{const _0x1844df=_0x58b2c1;let _0x566092=_0x108782[_0x1844df(0x3ff)]()['find'](_0x129454=>_0x129454['drawingType']===a[_0x1844df(0x2a4)][_0x1844df(0x4ce)]);if(!_0x566092)return;let {unitId:_0x52a426,subUnitId:_0x308146,drawingId:_0x4bccc7}=_0x566092;_0x4a207b[_0x1844df(0x3c7)](_0x52a426,_0x308146,_0x4bccc7,_0x45fd36[_0x1844df(0x211)]);}});}function pe(){const _0x374f0f=_0x5c10b7;let _0x27c3e9=(0x0,t['useDependency'])(s[_0x374f0f(0x335)]),_0x3139b1=(0x0,t[_0x374f0f(0x38d)])(B);return(0x0,p[_0x374f0f(0x1dd)])(e[_0x374f0f(0x180)],{'buttonLabel':_0x374f0f(0x474),'excludeGroups':[e[_0x374f0f(0x232)]['Line']],'DropdownComponent':f['MobileDropdown'],'onShapeClick':_0x294d2f=>{const _0x3d87eb=_0x374f0f;let _0x2ed5f5=_0x27c3e9['getFocusDrawings']()['find'](_0x23a002=>_0x23a002[_0x3d87eb(0x1e3)]===a[_0x3d87eb(0x2a4)][_0x3d87eb(0x4ce)]);if(!_0x2ed5f5)return;let {unitId:_0x42e1fe,subUnitId:_0x3c60a0,drawingId:_0x2142e6}=_0x2ed5f5;_0x3139b1[_0x3d87eb(0x3c7)](_0x42e1fe,_0x3c60a0,_0x2142e6,_0x294d2f[_0x3d87eb(0x211)]);}});}function me(){const _0x111c90=_0x5c10b7;let _0x505b57=(0x0,t['useDependency'])(t[_0x111c90(0x221)]),_0x56f029=(0x0,t[_0x111c90(0x38d)])(s[_0x111c90(0x335)]),_0x5ad735=(0x0,t[_0x111c90(0x38d)])(a['IUniverInstanceService']),_0x5545c4=_0x56f029['getFocusDrawings']()[0x0],_0x1386ef=_0x5545c4?_0x5ad735[_0x111c90(0x22f)](_0x5545c4[_0x111c90(0x2c6)]):void 0x0,_0xfe3abe=_0x1386ef===a[_0x111c90(0x1c5)][_0x111c90(0x2ea)]?'doc.image-clip.shape-picker.component':_0x1386ef===a[_0x111c90(0x1c5)][_0x111c90(0x353)]?ue:void 0x0,_0x14aaac=_0xfe3abe?_0x505b57[_0x111c90(0x410)](_0xfe3abe):void 0x0;return _0x14aaac?(0x0,p[_0x111c90(0x1dd)])(_0x14aaac,{}):null;}function he(){const _0x352128=_0x5c10b7;let _0x827ac9=(0x0,t[_0x352128(0x38d)])(a[_0x352128(0x393)]);return(0x0,p[_0x352128(0x1dd)])(de,{'onShapeClick':_0x4390e0=>{const _0x553200=_0x352128;_0x827ac9[_0x553200(0x4a0)](P['id'],{'value':_0x4390e0[_0x553200(0x211)],'enhanceParams':{'endArrow':_0x4390e0[_0x553200(0x1a7)],'startArrow':_0x4390e0[_0x553200(0x304)],'horizontal':_0x4390e0[_0x553200(0x2ba)],'vertical':_0x4390e0[_0x553200(0x282)]}});}});}function ge(){return(0x0,p['jsx'])(he,{});}function _e(_0x16d513){const _0x14fe0f=_0x5c10b7;let _0x517d15=_0x16d513[_0x14fe0f(0x410)](a[_0x14fe0f(0x1f7)]);return{'id':P['id'],'type':t[_0x14fe0f(0x1e7)][_0x14fe0f(0x4e2)],'selections':[{'label':{'name':le,'hoverable':!0x1,'selectable':!0x1,'props':{'id':P['id']}}}],'icon':_0x14fe0f(0x336),'tooltip':_0x14fe0f(0x4c2),'activated$':(0x0,l[_0x14fe0f(0x1ae)])(_0x517d15,!0x1,()=>new u[(_0x14fe0f(0x496))](_0xbe449e=>{const _0x1e9c22=_0x14fe0f;_0xbe449e[_0x1e9c22(0x295)](!0x1);})),'hidden$':(0x0,t[_0x14fe0f(0x3df)])(_0x16d513,a[_0x14fe0f(0x1c5)][_0x14fe0f(0x353)]),'disabled$':(0x0,l[_0x14fe0f(0x29b)])(_0x16d513)};}function ve(_0x47613f){const _0x575bd7=_0x5c10b7;let _0x399b48=_0x47613f[_0x575bd7(0x410)](a[_0x575bd7(0x1f7)]);return{'id':ae['id'],'type':t[_0x575bd7(0x1e7)][_0x575bd7(0x1e9)],'icon':_0x575bd7(0x1f8),'title':_0x575bd7(0x18e),'tooltip':_0x575bd7(0x18e),'activated$':(0x0,l[_0x575bd7(0x1ae)])(_0x399b48,!0x1,()=>new u[(_0x575bd7(0x496))](_0x506e8c=>{const _0x1f80ff=_0x575bd7;_0x506e8c[_0x1f80ff(0x295)](!0x1);})),'hidden$':(0x0,t['getMenuHiddenObservable'])(_0x47613f,a['UniverInstanceType'][_0x575bd7(0x353)]),'disabled$':(0x0,l[_0x575bd7(0x29b)])(_0x47613f)};}const ye='sheet.menu.shape.flip-horizontal',be=_0x5c10b7(0x1d9);function xe(_0x2299e7){const _0x9b2339=_0x5c10b7;let _0x33b03c=_0x2299e7[_0x9b2339(0x410)](s[_0x9b2339(0x335)])[_0x9b2339(0x3ff)]();return _0x33b03c[_0x9b2339(0x313)]===0x1&&_0x33b03c[0x0][_0x9b2339(0x1e3)]===a[_0x9b2339(0x2a4)]['DRAWING_SHAPE']?_0x33b03c[0x0]:null;}function Se(_0x1fa8f1){const _0x822031=_0x5c10b7;let _0x5e74b4=_0x1fa8f1['get'](s[_0x822031(0x335)]);return _0x5e74b4['focus$'][_0x822031(0x2e5)]((0x0,u[_0x822031(0x1ce)])(_0x5e74b4[_0x822031(0x3ff)]()),(0x0,u[_0x822031(0x4ab)])(_0x12f5d9=>_0x12f5d9[_0x822031(0x313)]!==0x1||_0x12f5d9[0x0][_0x822031(0x1e3)]!==a[_0x822031(0x2a4)]['DRAWING_SHAPE']));}function Ce(_0x13ce07){const _0x188ff2=_0x5c10b7;return{'id':ye,'commandId':i['ToggleSheetsShapeFlipCommand']['id'],'type':t['MenuItemType'][_0x188ff2(0x1e9)],'title':_0x188ff2(0x3c1),'tooltip':'sheets-shape-ui.flipHorizontal','icon':_0x188ff2(0x264),'hidden$':Se(_0x13ce07),'params':()=>{const _0x18ebcf=_0x188ff2;let _0x38004b=xe(_0x13ce07);return _0x38004b?{'unitId':_0x38004b[_0x18ebcf(0x2c6)],'subUnitId':_0x38004b[_0x18ebcf(0x2b9)],'shapeId':_0x38004b['drawingId'],'flipH':!0x0}:void 0x0;}};}function we(_0x5e825e){const _0x3fb456=_0x5c10b7;return{'id':be,'commandId':i[_0x3fb456(0x2cd)]['id'],'type':t[_0x3fb456(0x1e7)][_0x3fb456(0x1e9)],'title':_0x3fb456(0x1ef),'tooltip':'sheets-shape-ui.flipVertical','icon':_0x3fb456(0x3af),'hidden$':Se(_0x5e825e),'params':()=>{const _0x4bb8bd=_0x3fb456;let _0x4f02c7=xe(_0x5e825e);return _0x4f02c7?{'unitId':_0x4f02c7[_0x4bb8bd(0x2c6)],'subUnitId':_0x4f02c7[_0x4bb8bd(0x2b9)],'shapeId':_0x4f02c7['drawingId'],'flipV':!0x0}:void 0x0;}};}const Te='sheets-shape-ui.shape-format.quick-style-gallery',Ee=_0x5c10b7(0x257),De=_0x5c10b7(0x47c),Oe=_0x5c10b7(0x338);function ke(){const _0x320e55=_0x5c10b7;let _0x261743=(0x0,t['useDependency'])(a['ICommandService']),_0x2bc7b8=(0x0,t[_0x320e55(0x38d)])(s[_0x320e55(0x335)]),_0x390d34=(0x0,t[_0x320e55(0x38d)])(i[_0x320e55(0x1bf)]),_0x4e86bb=()=>{const _0x266dda=_0x320e55;var _0x41b0c2;let _0x2f17ec=_0x2bc7b8[_0x266dda(0x3ff)]();if(_0x2f17ec[_0x266dda(0x313)]!==0x1||((_0x41b0c2=_0x2f17ec[0x0])==null?void 0x0:_0x41b0c2['drawingType'])!==a[_0x266dda(0x2a4)]['DRAWING_SHAPE'])return null;let {unitId:_0x5b04f6,subUnitId:_0x46fb37,drawingId:_0x2e3b10}=_0x2f17ec[0x0],_0x209b94=_0x390d34[_0x266dda(0x383)](_0x5b04f6,_0x46fb37,_0x2e3b10),_0x3da3e2=_0x390d34['getShapeDataById'](_0x5b04f6,_0x46fb37,_0x2e3b10);return _0x209b94===void 0x0||!_0x3da3e2?null:{'unitId':_0x5b04f6,'subUnitId':_0x46fb37,'drawingId':_0x2e3b10,'shapeType':_0x209b94,'shapeData':_0x3da3e2};},_0x59e98e=(0x0,t[_0x320e55(0x431)])(()=>new u[(_0x320e55(0x496))](_0x38e8a0=>{const _0x569b0b=_0x320e55;let _0x26439c=()=>_0x38e8a0[_0x569b0b(0x295)](_0x4e86bb()),_0x57b6b2=_0x2bc7b8[_0x569b0b(0x47b)][_0x569b0b(0x45e)](_0x26439c),_0x3d48ac=_0x261743['onCommandExecuted'](_0x1ddb00=>{const _0x4a2026=_0x569b0b;_0x1ddb00['id']===i[_0x4a2026(0x186)]['id']&&_0x26439c();});return _0x26439c(),()=>{const _0x210264=_0x569b0b;_0x57b6b2['unsubscribe'](),_0x3d48ac[_0x210264(0x307)]();};}),_0x4e86bb(),!0x1,[_0x261743,_0x2bc7b8,_0x390d34]);return{'selection':_0x59e98e,'updateShapeData':_0x27ed36=>{const _0x1c4321=_0x320e55;_0x59e98e&&C(_0x261743,_0x59e98e[_0x1c4321(0x2c6)],_0x59e98e[_0x1c4321(0x2b9)],_0x59e98e['drawingId'],{'oldShapeData':_0x59e98e['shapeData']},_0x27ed36);}};}function Ae(){const _0x951c67=_0x5c10b7;let {selection:_0x139c1a,updateShapeData:_0x2467ac}=ke();return _0x139c1a?(0x0,p['jsx'])(e['ShapeStyleRibbonControl'],{'shapeData':_0x139c1a[_0x951c67(0x2a5)],'shapeType':_0x139c1a[_0x951c67(0x17e)],'onUpdateShapeData':_0x2467ac}):null;}function je(){const _0x273ff0=_0x5c10b7;let _0x188ac0=(0x0,t[_0x273ff0(0x38d)])(a[_0x273ff0(0x393)]),_0x8b3614=(0x0,t[_0x273ff0(0x38d)])(a['LocaleService']),{selection:_0x2446cf}=ke();return _0x2446cf?(0x0,p[_0x273ff0(0x1dd)])(e[_0x273ff0(0x49c)],{'type':(0x0,r['getShapeQuickStyleType'])(_0x2446cf['shapeData']),'ariaLabel':_0x8b3614['t'](_0x273ff0(0x2d5)),'activePresetId':(0x0,r[_0x273ff0(0x2d7)])(_0x2446cf[_0x273ff0(0x2a5)]),'onSelect':_0x207caa=>_0x188ac0[_0x273ff0(0x4a0)](se['id'],{'presetId':_0x207caa})}):null;}function _0x1468(){const _0x5d2f50=['_context','updateConnectionDetection','image','REMOVE','getActiveSheet','componentKey','MoveDownIcon','OPERATION','left','ShapeFloatingToolbarService','_addControl','plainShapeTextToDocumentData','_shapeUpdateListener','RENDER_CLASS_TYPE','multiply','toPrimitive','sheets-shape-ui.flipHorizontal','localToWorld','hasDefault','_currentConnectionTarget','RemoveSheetsShapeMutation','setEditing','clipByShape','shapeId','getDrawingOrder','formulaBinding','getContextValue','relation','forEach','_handleConnectedEndpointMove','getCurrentUnitOfType','clear','_initSelection','sheets-shape-format-font-family-menu','_registerComponents','width','IMenuManagerService','_cxtHandlerPointerUp','DEFAULT_PASTE','1294856wBsbKH','_sheetsShapeService','_initEvents','shouldAllowShapeTextEditorHostSizeShrink','getEndConnectInfo','getShapeData','removeLinePoints','getMenuHiddenObservable','keys','getStartConnectInfo','clip-adj-','_shapeId','decorate','_drawShapeText','isHorizontal','getDrawingData','toDisposable','subscribeEvent','FOCUSING_SHAPE_TEXT_EDITOR','VIEW_MAIN_LEFT','_applyFormulaAutoFitSize','_setTransForm','clearAdjustValue','ShapeTypeEnum','_commandService','getMatrix','ancestorTransform','back','presetId','UniverSheetsShapeMobileUIPlugin','_activeAdjustPointList','_drawRichTextLayer','_initSheetChange','_formulaAnimation','_initialize','getImageSourceCache','_baseWidth','_drawingRenderService','_transform','getFocusDrawings','getUnitId','setFormulaPresentation','getOrCreateDrawingCopyPlan','getBasicShapeRotateBound','UniverSheetsDrawingMobileUIPlugin','sheets-shape-ui.ribbon.shape-format.text-control','URL','_registerMoveHandler','_updateAdjustControlPositions','_activeAdjustInfo','_rerouteConnectorLine','_sheetCanvasPopManagerService','viewBound','sheet.operation.close-sheet-shape-format-panel','jsxs','_initEditingParams','get','style','_injector','SheetCanvasPopManagerService','sheets-shape-ui.deleteShape','getShapeDataById','_handleConnectorPointerUp','Image','getTextModel','_registerFeatureMenu','_registerFocusChangeHandler','BottomIcon','IconManager','setAdjustValueByName','_shapes','registerCommand','defineProperty','disableShapeOption','drawing-ui.objectListPanel.moveForward','setCursor','_initCopyPaste','_iconManager','Rect','ISheetDrawingService','_adjName','SetDrawingArrangeCommand','SHAPE_TEXT','normalizeShapeTextModel','draw','save','resetCursor','unregister','hideContextualTab','useObservable','_shapeService','debounceRefreshControls','UpdateConnectorRelationCommand','startConnectionDetection','getAdjustValueByName','getShapeQuickStyleType','computeConnectorResizeLayout','_registerDrawingMoveHandler','SheetShapeTextEditorContainer','string','DocCanvasPopManagerService','vertical-center','_sheetClipboardService','disableObjectsEvent','computeStraightConnectorLayout','permissionPointUpdate$','getVisible','_currentScene','description','getTextStyle','clip-','sheets-shape-ui.formatShape','_renderWithCache','clipHeight','drawing-ui.objectListPanel.close','transform','SetSheetDrawingCommand','sheet.operation.update-shape-type','shape-editor-ui.arrange.backward','resolveShapeTextEditorWrapStrategy','changing$','viewportScrollX','setFillImage','_shapeFormulaService','DocInterceptorService','text','drawing-ui.objectListPanel.dragToReorder','angle','stroke','_cxnIndex','copyType','getViewportByCell','cxnPointFill','getAdjustInfoByName','subscribe','div','stopPropagation','makeDirty','UndoRedoGroupService','_draggingConnectorId','_copyInfo','getSheetCommandTarget','forward','beforeCommandExecuted','IPermissionService','getPermissionPoint','setContextValue','front','selectable','SetDrawingApplyMutation','onStarting','_baseShapeTop','generateRandomId','_imageShapeClipController','cloneShapeDataForType','useState','sheets-shape-ui.imagePanel.crop.shape','getCurrentUnitInfo','PRINTING_COMPONENT_COLLECT','actualHeight','actions','asObservable','insertGroupObject','focus$','sheets-shape-ui.shape-format.text-ribbon-control','clearAdjustControls','delete','_handleBasicShapeUpdateConnectorLineShape','addImageSourceCache','refreshFormulaPresentation','filter','_getOrCreateShapeModel','SolidLine','WorksheetCopyPermission','complete','onPointerUp$','getScene','shape-editor-ui.toolbar.changeShape','_shapeFloatingToolbarService','scene','GROUP','_addShapeAdjustControl','adjHandleSize','CURSOR_TYPE','_activeShapeId','SHEET','DocumentViewModel','_isShouldShowDrawingShapeAdjust','drawing-ui.objectListPanel.filterLocked','drawing-ui.objectListPanel.filterHidden','Observable','drawing-ui.objectListPanel.details','_isStartConnectorPoint','adjustValues','sheets-shape-ui.config','Medium','ShapeQuickStyleGallery','hidden','worldRect','getDrawingOKey','executeCommand','#1a73e8','getCurrentTypeOfUnit$','_sheetBasicShapeConnectionPointController','_clearConnectionSites','transformVector2SceneCoord','_index','_activeShapeModel','create','ToggleShapeFloatingToolbarOperation','useReducer','map','drawing-ui.objectListPanel.descriptionPlaceholder','applyPoint','registerDependencies','_updateImageAdjValues','resolveShapeContextualRibbonHostMode','constructor','clearActiveDrawingObjects','syncExecuteCommand','refreshTransform','beginPath','_adjHandlerPointerMove','_releaseRenderCache','_transformCalculateSrcRect','UniverSheetsDrawingUIPlugin','UUID','drawing-ui.objectListPanel.typeNames.','drawing-ui.objectListPanel.search','getDrawingShapeKeyByDrawingSearch','getPresentation','_drawSimpleText','intercept','editingParams$','sheets-shape-ui.insertShape','getParent','rotation','sheet.operation.open-mobile-shape-editor','isRender','_ribbonService','isMainScene','shape-text-','transformToDrawingPosition','interceptor','transformToAxisAlignPosition','gradientEndColor','DRAWING_IMAGE','shapeModel','changeShapeType','onCommandExecuted','getAutoFitPresentations','_findNearestConnectionSite','_createCopyInfoByRange','_createControls','ArrangeTypeEnum','UniverDrawingPlugin','_isOpenedShapeEditPanel','_groupCopyPasteController','_contextService','_baseShapeLeft','CommandType','call','highlighted','reduce','stringify','setFallbackVisible','SELECTOR','drawing-ui.objectListPanel.title','getValue','changeStart$','getObject','trim','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_activeTargetShapeId','prstGeomAdjValues','ang','buildShapeTextDataUpdate','DRAWING','bindRenderTransformerLifecycle','permissionCheckWithoutRange','sheet.shape.object-list.panel','objects','fontFamily','drawing.operation.set-drawing-active','850434EYHAOC','setPresentation','Transform','UniverRenderEnginePlugin','_getConnectPointInfo','ISidebarService','shapeType','_imageIoService','ShapePickerDropdown','_baseTop','isRichText','top-center','IRenderManagerService','_getDrawingRect','UpdateSheetsShapeDataMutation','_generateCopyPasteMutations','_generateCutPasteMutations','_activeShapeInfo','isHit','clipTop','_init','sheetViewStartRow','sheets-shape-ui.objectListPanel.open','_updateTransform','getConnectionRelation','Circle','onPointerDown$','fromChangeset','sheet.shape.floating-toolbar','DocumentDataModel','getSheetId','HorizontalAlign','ShapeTextFloatMenuRenderControllerBase','getObjectListPanelSectionIdForDrawingType','_currentUniverService','sheet.shape.edit.panel','changeEnd$','_isConnecting','packageName','drawing-ui.objectListPanel.name','_registerOperations','RibbonInsertGroup','InsertShapeCommand','VIEW_MAIN_LEFT_TOP','drawing-ui.objectListPanel.noSelection','computeConnectorRouteLayout','DRAWING_OBJECT_LAYER_INDEX','endArrow','buildClipPath','isEditing','SHAPE_CHANGE_PICKER_COMPONENT','_updateSrcRectByTransform','None','79922MHAZGW','deriveStateFromActiveSheet$','worldPoint','ImageSourceTypeEnum','ShapeArrowTypeEnum','_calculateFreeEndpointAngle','SolidFill','SheetsShapeUIContextualRibbonSchema','add','updateLinePoints','UniverSheetsDrawingPlugin','_commandExecutedListener','touchDependencies','setCanUseShapeClip','top','_shapeTextEditingService','_baseLeft','cancelEditing','SheetsShapeService','disposeWithMe','getInterceptPoints','univer-box-border\x20univer-px-4\x20univer-text-sm','1738665bdvrtW','attachPopupToObject','UniverInstanceType','cxnPointRadius','strokeWidth','Arrow','marginTop','visible','isInGroup','sheets-shape-contextual-ribbon','error','startWith','drawing-ui.objectListPanel.lockAll','ShapeTextEditorContainer','cxnPointStroke','_executeConnectedRouteResizeCommand','_onSavingEditorData$','normal','drawing-ui.objectListPanel.filterAll','routeConnectorLineShape','_hyperLinkRegions','createShapeFormulaDocument','sheet.menu.shape.flip-vertical','_loadAndSetImage','registerShapeFormatPainter','fill','jsx','MEDIA','reverse','setShouldShowAdjust','sectionCanvas','SHEET_VIEWPORT_KEY','drawingType','LEFT','DocumentSkeleton','getConnectionInfo','MenuItemType','localeService','BUTTON','LocaleService','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_hide','value','RemoveSheetDrawingCommand','sheets-shape-ui.flipVertical','_sidebarService','drawing-ui.objectListPanel.locate','_executeConnectedRouteConnectionCommand','custom','remove$','_baseHeight','IContextService','IUniverInstanceService','ObjectLayersIcon','restore','order','ShapeDefaultConfig','update$','FromArray','focusDrawing','36xuUudX','formulaPresentation','_permissionService','oKey','register','UniverShapeEditorPlugin','IImageIoService','_initPrinting','_localeService','parse','ShapeFormatSettingIcon','_attachAdjustEvent','size','setPrstGeom','onReady','render','_sheetPermissionCheckController','redo','type','UniverShapeEditorMobileUIPlugin','_activeShapeAdjustPointList','sheets-shape-ui.permission.editErr','PaintIcon','DependentOn','@univerjs-pro/sheets-shape-ui','attachRangeWithCoord','isStartConnectorPoint','fillImageSource','_clearShapeConnectorHandlerObjects','startY','_isImagePointerDown','unsubscribe','refreshShapeFillImage','_closeShapeEditPanel','ComponentManager','getSheetBySheetId','startX','clip','_baseDrawingRect','getRealBound','_addShapeConnectorHandlerObject','_getZoomRatio','_canEdit','sheets-shape-ui.ribbon.shape-format.arrange-backward','getBatchAddOp','getOwnPropertyDescriptor','getAdjustNames','_sheetSkeletonService','getUnitType','sheet.operation.open-shape-object-list-panel','registerFeaturePasteHook','ShapeGroupEnum','getSelectedObjectMap','featurePluginUpdateNotification','drawing-ui.objectListPanel.description','abs','FOCUSING_COMMON_DRAWINGS','onPointerMove$','_resetState','sheetViewStartColumn','image-clip-adjust-point-','getDrawingVisible','ShapeTextHyperLinkHoverController','IConfigService','shape-editor-ui.toolbar.quickStyles','UPDATE','extraProps','invert','DocSelectionRenderService','ShapeTextHyperLinkInfo','TopmostIcon','shapeKey','_getShapeAdjustInfosById','panel','resize','srcRect','getObjectIncludeInGroup','ShapePickerPanel','_initCommands','isRenderLinePointsMode','_baseShapeHeight','getZoomRatio','drawing-ui.objectListPanel.sectionFloating','drawing-ui.objectListPanel.unlockHint','_sheetDrawingService','EMPTY','_editingParams$','symbol','sheets-shape-ui.shape-format.style-ribbon-control','createControl$','showContextualTab','name','setShapeProps','_insertShapes','Inject','getCurrentSkeleton','extensionGroups','onerror','ObjectListPanelBase','_formulaKey','15svEfKA','FlipHorizontalIcon','undo','sheets-shape-ui','getSkeletonParam','UpdateLineShapeResizeCommand','_executeResizeCommand','parent','CUT','preValue','_insertingShapeKeys','_createShapeAdjustControls','_subUnitId','endConnectionDetection','_visible','createShapeTextBoxShapeData','SheetScrollManagerService','ShapeTextHyperLinkPopupService','WorkbookCopyPermission','useFormulaShapeToolbar','contentHeight','getUnit','adjName','push','start','1392328JTVgWS','TOP','_getShapeAdjustPointListById','DrawingApplyType','clone','getDrawingSearch','vertical','_loadShapePictureFill','close','isCurvedConnectorShape','entries','_univerInstanceService','targetShapeId','popup','MobileShapeEditorService','767660TtTwty','contentVerticalOffset','_menuManagerService','drawing-ui.objectListPanel.unlock','_getShapeInfo','setPrstGeomAdjValues','Documents','sheet.command.update-shape-data','hideInfoPopup','point','next','SetDrawingSelectedOperation','_update','registerClipDelegate','sheets-shape-text-','flatMap','getCurrentRangeDisable$','getSkeleton','calcAdjValues','SheetSkeletonService','_shapeEditPanelVersion','MobileObjectListPanel','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','_unitId','_clipService','DrawingTypeEnum','shapeData','presentation','useMemo','add$','_clearShapeAdjustControls','_sheetPrintInterceptorService','SheetPermissionCheckController','_drawingManagerService','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','bottom','_sidebarDisposable','isConnectorShape','COMMAND','_handleFreeEndpointMove','_lastEditingShapeKey','_isHighlighted','CROSSHAIR','canvas','#FFFFFF','_registerDrawingFocusChangeHandler','subUnitId','horizontal','_generatePasteMutations','updateContext','DRAWING_SHAPE','_sheetShapeAdjustController','_connectionSiteObjects','blockExecuteWithoutPermission','shapeText','canvasElement','height','WorkbookEditablePermission','getBatchUpdateOp','unitId','drawFormulaShapeAnimationLayers','_config','UniverDrawingUIPlugin','presentationChanged$','axisAlignSheetTransform','Shape','ToggleSheetsShapeFlipCommand','isLineShape','_drawingAddListener','_getImageDrawingInfo','IURLImageService','_hasReset','offsetX','_sheetDrawingShapeRenderController','sheets-shape-ui.quickStyles','Line','resolveActiveShapeQuickStylePresetId','copyId','Injector','_clearCompletionFrame','initShapePopupMenu','_drawRichText','sheets-shape-ui.ribbon.shape-format.style-control','drawingId','fillImageSourceType','has','index','color','sheets-shape-ui.objectListPanel.title','sheets-shape-ui.ribbon.shape-format.arrange-front','pipe','DrawingCommonPanel','_completionFrame','_configService','_isStartAdjusting','UNIVER_DOC','DrawingRenderService','MenuManagerPosition','dataModel','_initPermission','_draw','data','DisposableCollection','some','_attachConnectorObjectEvent','_props','refreshAdjustControls','BehaviorSubject','params','_getScrollInfo','isHighlighted','lineType','VerticalAlign','_popupMenuListener','translateWithPrecision','lineShapeId','getShapeQuickStylePreset','with','setConfig','INSERT','drawing-ui.objectListPanel.sectionCanvas','startArrow','getShapeModel','ShapeFormulaRibbonControl','dispose','drawWith','_baseShapeWidth','ShapeFillEnum','open','getEditing','_getImagePrstGeom','resolveShapeTextDocumentRenderLayout','getRenderUnitById','cxnPointStrokeWidth','sheets-shape-ui.ribbon.shape-format.arrange-forward','prstGeom','length','sheets-shape-ui.editShape','_executeConnectionCommand','getDrawingEditable','offsetY','DocEventManagerService','getCurrentScrollState','worldPoints','SetShapeDrawingDataCommand','SheetSkeletonManagerService','getInverseCoord','find','discreteRangeToRange','_addShapeConnectorHandlerObjects','_focusedDrawings','isHitLine','UniverDocsPlugin','UniverSheetsMobileUIPlugin','getTransformerByCreate','title','Vector2','_cxtHandlerPointerMove','_adjHandlerPointerUp','connector-handler-','resolveShapeTextEditorBehaviorShapeData','FormulaShapeAnimationController','getConnectorLinePoints','switchMap','flipX','_urlImageService','WorksheetEditPermission','_drawingType','shape-editor-ui.arrange.forward','UniverDocsUIPlugin','IDrawingManagerService','ShapeIcon','CopySheetCommand','sheets-shape-ui.shape-format.formula-ribbon-control','getConnectionSiteList','getShapeTextRect','_handleConnectedEndpointPointerUp','_openShapeEditPanel','connection-site-','_getSceneAndTransformerByDrawingSearch','_renderManagerService','sheet.operation.open-sheet-shape-format-panel','getDrawingByParam','object','merge','PictureFill','getDrawingPoints','renderDrawingShape','getImage','mergeMenu','run','_getConnectionSiteAngle','addObject','isArray','IRibbonService','_disposePopups','VIEW_MAIN_TOP','SHAPE_EDITOR_TRANSFORMER_CONFIG','_clearControls','_activeImageId','UNIVER_SHEET','UniverShapeEditorUIPlugin','classType','ShapeModel','_formulaShapes','getShapeType','version','sin','_highlightedSiteIndex','engine','_updateShapeAdjustControls','cxnIndex','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','transformByState','onRendered','pluginName','fillType','values','createShapeTextHyperLinkRegions','_reset','ShapeTextFloatToolbar','SheetInterceptorService','getBasicShapeRelation','resolveHyperLinkAt','registerRenderModule','UniverSheetsShapePlugin','prepareShapeTextDocumentData','_shapePopupMenuDisposable','set','activeSheet$','_componentManager','onload','cos','Disposable','pick','viewportScrollY','setSrcRect','ShapeTextRibbonControl','_isDrawingShapePointDown','indexOf','doc','_disposed','_showConnectionSites','addClipboardHook','SheetPrintInterceptorService','completeEditing','ConnectorCoordinateTransform','pushUndoRedo','getShapeTypeById','_connectorObjects','onSteady','ShapeArrowSizeEnum','ShapeFormulaService','updateDocumentStyle','toStringTag','updateShapeFillImage','_targetShapeId','drawing-ui.objectListPanel.moveBackward','useDependency','drawing-ui.objectListPanel.lockHint','drawing-ui.objectListPanel.hideAll','_registerGroupFeaturePasteHook','enableObjectsEvent','145488zVxsVc','ICommandService','InsertSheetsShapeMutation','currentAdjustValues','MoveUpIcon','SheetsShapeUIMenuSchema','flipY','skeleton','function','setOnSavingEditorData','activeAnObject','isDrawingObject','_handleFreeEndpointPointerUp','sheetTransform','Module','setShapeData','_clearPopups','getTransformer','getCanvasElement','includes','UniverLicensePlugin','useEffect','calculate','interceptCommand','StraightConnector1','getBentTypeFromPoints','from','Plugin','animationEnabled','FlipVerticalIcon','backward'];_0x1468=function(){return _0x5d2f50;};return _0x1468();}function Me(){const _0xde9a70=_0x5c10b7;let {selection:_0x1a29bd,updateShapeData:_0xbda752}=ke();return _0x1a29bd?(0x0,p[_0xde9a70(0x1dd)])(e[_0xde9a70(0x378)],{'fontFamilyPopupDataComponent':_0xde9a70(0x3d2),'shapeData':_0x1a29bd[_0xde9a70(0x2a5)],'onUpdateShapeData':_0xbda752}):null;}function Ne(){const _0x4b9860=_0x5c10b7;var _0x1232a8;let {selection:_0x233866,updateShapeData:_0x478a2b}=ke(),_0x53b594=(0x0,e[_0x4b9860(0x276)])({'hostType':a[_0x4b9860(0x1c5)]['UNIVER_SHEET'],'unitId':(_0x233866==null?void 0x0:_0x233866['unitId'])??'','subUnitId':(_0x233866==null?void 0x0:_0x233866[_0x4b9860(0x2b9)])??'','shapeId':(_0x233866==null?void 0x0:_0x233866[_0x4b9860(0x2de)])??'','shapeData':_0x233866==null?void 0x0:_0x233866['shapeData'],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x4b9860(0x2ae),'onUpdateBinding':_0x68d3bb=>_0x478a2b({'formulaBinding':_0x68d3bb})}),_0x42864c=((_0x1232a8=_0x53b594['extensionGroups'])==null?void 0x0:_0x1232a8[_0x4b9860(0x29a)](_0x56842f=>_0x56842f[_0x4b9860(0x478)])[_0x4b9860(0x482)](_0x125413=>_0x125413[_0x4b9860(0x1ca)]!==!0x1))??[];return _0x233866!=null&&_0x233866['shapeData']['formulaBinding']?(0x0,p[_0x4b9860(0x1dd)])(e[_0x4b9860(0x306)],{'actions':_0x42864c,'panel':_0x53b594[_0x4b9860(0x248)]}):null;}const Pe=_0x5c10b7(0x2dd),Fe=_0x5c10b7(0x405),Ie='sheets-shape-ui.ribbon.shape-format.formula-control',Le=_0x5c10b7(0x311),Re=_0x5c10b7(0x22a),ze=_0x5c10b7(0x2e4),Be='sheets-shape-ui.ribbon.shape-format.arrange-back';function Ve(_0x5666e8){const _0x37ae88=_0x5c10b7;let _0x3fb7d1=_0x5666e8['get'](a['ICommandService']),_0x598700=_0x5666e8[_0x37ae88(0x410)](s[_0x37ae88(0x335)]),_0x31ac55=_0x5666e8[_0x37ae88(0x410)](i[_0x37ae88(0x1bf)]);return new u[(_0x37ae88(0x496))](_0x3d55ad=>{const _0x444b44=_0x37ae88;let _0x2d3b83=()=>{const _0x178804=_0x1d07;let _0x51ebb8=V(_0x5666e8),_0x46bbc4=_0x51ebb8?_0x31ac55[_0x178804(0x415)](_0x51ebb8[_0x178804(0x2c6)],_0x51ebb8[_0x178804(0x2b9)],_0x51ebb8[_0x178804(0x2de)]):null;_0x3d55ad[_0x178804(0x295)](_0x46bbc4?(0x0,r[_0x178804(0x2d7)])(_0x46bbc4)??'':'');},_0x15cd50=_0x598700[_0x444b44(0x47b)][_0x444b44(0x45e)](_0x2d3b83),_0x388842=_0x3fb7d1['onCommandExecuted'](_0x47967b=>{const _0x207c5e=_0x444b44;_0x47967b['id']===i[_0x207c5e(0x186)]['id']&&_0x2d3b83();});return _0x2d3b83(),()=>{const _0x3a55d3=_0x444b44;_0x15cd50[_0x3a55d3(0x21e)](),_0x388842['dispose']();};});}function V(_0xacf692){const _0x56bb02=_0x5c10b7;var _0x4aaeed;let _0x4ea7cc=_0xacf692[_0x56bb02(0x410)](s[_0x56bb02(0x335)])[_0x56bb02(0x3ff)]();return _0x4ea7cc[_0x56bb02(0x313)]===0x1&&((_0x4aaeed=_0x4ea7cc[0x0])==null?void 0x0:_0x4aaeed['drawingType'])===a[_0x56bb02(0x2a4)]['DRAWING_SHAPE']?_0x4ea7cc[0x0]:null;}function He(_0x1e8268,_0x30d5e7=!0x1){const _0x55069f=_0x5c10b7;let _0x3827a7=_0x1e8268[_0x55069f(0x410)](a[_0x55069f(0x393)]),_0x39100a=_0x1e8268[_0x55069f(0x410)](s[_0x55069f(0x335)]),_0x507fd8=_0x1e8268[_0x55069f(0x410)](i[_0x55069f(0x1bf)]);return new u[(_0x55069f(0x496))](_0x560270=>{const _0x20e047=_0x55069f;let _0x123d24=()=>{const _0x45f31a=_0x1d07;let _0x5ee3bf=V(_0x1e8268);if(!_0x5ee3bf){_0x560270['next'](!0x0);return;}let _0x8a3c34=_0x507fd8[_0x45f31a(0x415)](_0x5ee3bf[_0x45f31a(0x2c6)],_0x5ee3bf[_0x45f31a(0x2b9)],_0x5ee3bf[_0x45f31a(0x2de)]);_0x560270[_0x45f31a(0x295)](!_0x8a3c34||_0x30d5e7&&_0x8a3c34['formulaBinding']==null);},_0x4d63bd=_0x39100a[_0x20e047(0x47b)]['subscribe'](_0x123d24),_0x6229d3=_0x3827a7[_0x20e047(0x4d1)](_0x5dee9a=>{_0x5dee9a['id']===i['UpdateSheetsShapeDataMutation']['id']&&_0x123d24();});return _0x123d24(),()=>{const _0x2c7a06=_0x20e047;_0x4d63bd['unsubscribe'](),_0x6229d3[_0x2c7a06(0x307)]();};});}function Ue(_0x355004){const _0x347cb9=_0x5c10b7;let _0x4f79eb=_0x355004['get'](s['IDrawingManagerService']),_0x570541=_0x355004['get'](i[_0x347cb9(0x1bf)]);return _0x4f79eb[_0x347cb9(0x47b)][_0x347cb9(0x2e5)]((0x0,u[_0x347cb9(0x1ce)])(_0x4f79eb['getFocusDrawings']()),(0x0,u['map'])(()=>{const _0x417363=_0x347cb9;let _0x331aaf=V(_0x355004),_0x59d8b3=_0x331aaf?_0x570541[_0x417363(0x383)](_0x331aaf['unitId'],_0x331aaf[_0x417363(0x2b9)],_0x331aaf[_0x417363(0x2de)]):void 0x0;return _0x59d8b3===void 0x0||(0x0,n[_0x417363(0x2b0)])(_0x59d8b3);}));}function We(_0x20925d){const _0x135d51=_0x5c10b7;return{'id':se['id'],'type':t['MenuItemType'][_0x135d51(0x4e2)],'icon':_0x135d51(0x215),'title':_0x135d51(0x23f),'tooltip':_0x135d51(0x23f),'selections':[{'label':{'name':Te,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ve(_0x20925d),'hidden$':He(_0x20925d)};}function Ge(_0x312ca3){const _0x495389=_0x5c10b7;return{'id':ce['id'],'type':t[_0x495389(0x1e7)][_0x495389(0x4e2)],'icon':_0x495389(0x336),'title':_0x495389(0x489),'tooltip':_0x495389(0x489),'slot':!0x0,'selections':[{'label':{'name':e[_0x495389(0x1aa)],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Ue(_0x312ca3)};}function Ke(_0xd6a63c,_0x4a0e05,_0x4bf129=!0x1){const _0x8be48f=_0x5c10b7;return _0x1dfd99=>({'id':_0xd6a63c,'type':t[_0x8be48f(0x1e7)][_0x8be48f(0x1e9)],'label':{'name':_0x4a0e05,'hoverable':!0x1,'selectable':!0x1},'hidden$':He(_0x1dfd99,_0x4bf129)});}const qe=Ke(Pe,Ee),Je=Ke(Fe,De),Ye=Ke(Ie,Oe,!0x0);function Xe(_0x15d67e,_0x3b6130,_0x452428,_0x5cd6a3){const _0x15168e=_0x5c10b7;return _0x1d6023=>({'id':_0x15d67e,'commandId':m[_0x15168e(0x429)]['id'],'type':t[_0x15168e(0x1e7)][_0x15168e(0x1e9)],'icon':_0x452428,'title':_0x5cd6a3,'tooltip':_0x5cd6a3,'hidden$':He(_0x1d6023),'params':()=>{const _0x4629dc=_0x15168e;let _0x959b79=V(_0x1d6023);return _0x959b79?{'unitId':_0x959b79[_0x4629dc(0x2c6)],'subUnitId':_0x959b79['subUnitId'],'drawingIds':[_0x959b79[_0x4629dc(0x2de)]],'arrangeType':_0x3b6130}:void 0x0;}});}const Ze=Xe(Le,a[_0x5c10b7(0x4d6)][_0x5c10b7(0x466)],_0x5c10b7(0x396),_0x5c10b7(0x333)),Qe=Xe(Re,a[_0x5c10b7(0x4d6)][_0x5c10b7(0x3b0)],'MoveDownIcon',_0x5c10b7(0x44e)),$e=Xe(ze,a[_0x5c10b7(0x4d6)][_0x5c10b7(0x46b)],_0x5c10b7(0x245),'shape-editor-ui.arrange.front'),et=Xe(Be,a[_0x5c10b7(0x4d6)][_0x5c10b7(0x3f3)],_0x5c10b7(0x41b),'shape-editor-ui.arrange.back');function tt(_0x357078){const _0x2d0b78=_0x5c10b7;return{'id':z['id'],'type':t[_0x2d0b78(0x1e7)][_0x2d0b78(0x1e9)],'icon':_0x2d0b78(0x209),'title':'sheets-shape-ui.formatShape','tooltip':'sheets-shape-ui.formatShape','hidden$':He(_0x357078),'params':()=>{const _0x371711=_0x2d0b78;let _0x27c131=V(_0x357078);return _0x27c131?{'unitId':_0x27c131['unitId'],'subUnitId':_0x27c131['subUnitId'],'drawingId':_0x27c131[_0x371711(0x2de)]}:void 0x0;}};}const nt={[t[_0x5c10b7(0x2ec)]['RIBBON']]:{[R]:{'order':0x64,'title':'sheets-shape-ui.formatShape','contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[se['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':We},[ce['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ge}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[Pe]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':qe}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[Fe]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Je}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ye]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':Ce},[be]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':we},[Le]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Ze},[Re]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Qe},[ze]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':$e},[Be]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':et}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[Ie]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Ye}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[z['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':tt},[e[_0x5c10b7(0x4a9)]['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':e['ShapeFloatingToolbarToggleFactory']}}}}},rt={[t[_0x5c10b7(0x1a1)][_0x5c10b7(0x1de)]]:{[P['id']]:{'order':0x4,'menuItemFactory':_e}}},it={...rt,[t[_0x5c10b7(0x1a1)]['OTHERS']]:{[ae['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ve}},[t['ContextMenuPosition'][_0x5c10b7(0x171)]]:{[t['ContextMenuGroup']['OTHERS']]:{[ye]:{'order':0x4,'menuItemFactory':Ce},[be]:{'order':0x5,'menuItemFactory':we}}}};var at=_0x5c10b7(0x217),ot='1.0.4';const st={'id':_0x5c10b7(0x4c5),'type':a[_0x5c10b7(0x4dc)][_0x5c10b7(0x3b8)],'handler'(_0x7604b5,_0x50d725){const _0x16106b=_0x5c10b7;return _0x50d725?(_0x7604b5['get'](e[_0x16106b(0x28a)])[_0x16106b(0x30b)](_0x50d725['mode'],{'hostType':a[_0x16106b(0x1c5)][_0x16106b(0x353)],'shapeId':_0x50d725['drawingId'],'subUnitId':_0x50d725[_0x16106b(0x2b9)],'unitId':_0x50d725[_0x16106b(0x2c6)]}),!0x0):!0x1;}},ct=_0x5c10b7(0x49a),lt={};let ut=class extends a[_0x5c10b7(0x374)]{constructor(_0x18f1c3,_0x2745ce,_0x4bfa0c,_0x54e922,_0x49ddc8){const _0x589d83=_0x5c10b7;super(),this[_0x589d83(0x3b1)]=_0x18f1c3,this['_drawingManagerService']=_0x2745ce,this[_0x589d83(0x33f)]=_0x4bfa0c,this[_0x589d83(0x287)]=_0x54e922,this[_0x589d83(0x471)]=_0x49ddc8,E(this,_0x589d83(0x352),null),E(this,_0x589d83(0x2a2),null),E(this,_0x589d83(0x26f),null),E(this,_0x589d83(0x3f6),void 0x0),E(this,_0x589d83(0x41e),[]),E(this,_0x589d83(0x1bd),0x0),E(this,'_baseTop',0x0),E(this,'_baseWidth',0x0),E(this,'_baseHeight',0x0),E(this,_0x589d83(0x2e9),!0x1),E(this,_0x589d83(0x409),void 0x0),E(this,_0x589d83(0x4a7),void 0x0),E(this,_0x589d83(0x4b6),void 0x0),E(this,'_adjHandlerPointerUp',void 0x0),E(this,_0x589d83(0x21d),!0x1),this[_0x589d83(0x41a)](),this[_0x589d83(0x407)]();}[_0x5c10b7(0x47d)](){const _0x44215b=_0x5c10b7;this[_0x44215b(0x351)]();}[_0x5c10b7(0x2f5)](){const _0x1ef4b8=_0x5c10b7;this[_0x1ef4b8(0x351)](),this[_0x1ef4b8(0x4d5)](!0x0);}[_0x5c10b7(0x483)](_0x2d095c,_0x21be19,_0x517daf,_0x257a46){const _0x58865b=_0x5c10b7;let _0x2f427d=_0x2d095c;if(_0x2f427d!==n[_0x58865b(0x3ef)][_0x58865b(0x1ac)]&&_0x2d095c!==_0x58865b(0x1f3))try{let _0xe0e8c5=new n[(_0x58865b(0x356))](_0x2f427d,_0x58865b(0x3e2)+_0x2d095c);return _0x257a46&&_0xe0e8c5['setShapeData']({'adjustValues':_0x257a46},!0x0),_0xe0e8c5[_0x58865b(0x2bc)]({'width':_0x21be19,'height':_0x517daf}),_0xe0e8c5;}catch{return;}}[_0x5c10b7(0x2d0)](_0x96ff20,_0x1bc160,_0x19058b){const _0x3210da=_0x5c10b7;let _0x32d9d2={'unitId':_0x96ff20,'subUnitId':_0x1bc160,'drawingId':_0x19058b},_0x26c626=this[_0x3210da(0x2ac)]['getDrawingByParam'](_0x32d9d2);if(_0x26c626&&_0x26c626['drawingType']===a[_0x3210da(0x2a4)][_0x3210da(0x4ce)])return _0x26c626;}[_0x5c10b7(0x30d)](_0xfdea24,_0x5a9224,_0x171251){const _0x12ffb0=_0x5c10b7;let _0x212e6=this[_0x12ffb0(0x33f)][_0x12ffb0(0x30f)](_0xfdea24);if(!_0x212e6)return;let {scene:_0x5bb54a}=_0x212e6,_0x5b6c96=(0x0,s[_0x12ffb0(0x4bd)])({'unitId':_0xfdea24,'subUnitId':_0x5a9224,'drawingId':_0x171251}),_0x11b5af=_0x5bb54a[_0x12ffb0(0x4e6)](_0x5b6c96);if(_0x11b5af instanceof c[_0x12ffb0(0x417)]){let _0xd7254d=_0x11b5af[_0x12ffb0(0x312)];if(_0xd7254d)return{'prstGeom':_0xd7254d,'adjustValues':_0x11b5af[_0x12ffb0(0x16e)]};}}[_0x5c10b7(0x4d5)](_0x3ef087=!0x1){const _0x1e86af=_0x5c10b7;if(!this[_0x1e86af(0x2a2)]||!this[_0x1e86af(0x26f)]||!this[_0x1e86af(0x352)])return;let _0x3b169b=this[_0x1e86af(0x33f)]['getRenderUnitById'](this[_0x1e86af(0x2a2)]);if(!_0x3b169b||!_0x3b169b['with'](l[_0x1e86af(0x31c)])['getCurrentSkeleton']())return;let {scene:_0x31e536}=_0x3b169b,_0x5a6169=this[_0x1e86af(0x2d0)](this['_unitId'],this[_0x1e86af(0x26f)],this[_0x1e86af(0x352)]);if(!_0x5a6169)return;let {transform:_0x4f836d}=_0x5a6169;if(!_0x4f836d)return;let {left:_0x2d1c9d,top:_0x2a1d0f,width:_0xd201e6,height:_0x6b9692,flipX:_0x1f20c2,flipY:_0x1c642c,angle:_0x37e52e=0x0}=_0x4f836d;if(_0x2d1c9d===void 0x0||_0x2a1d0f===void 0x0)return;let _0x598b6b=this[_0x1e86af(0x30d)](this[_0x1e86af(0x2a2)],this['_subUnitId'],this[_0x1e86af(0x352)]);if(!_0x598b6b)return;if(_0x3ef087){let _0x46309c=this[_0x1e86af(0x483)](_0x598b6b[_0x1e86af(0x312)],_0xd201e6||0x0,_0x6b9692||0x0,_0x598b6b['adjustValues']);if(!_0x46309c)return;this[_0x1e86af(0x3f6)]=_0x46309c[_0x1e86af(0x345)]();}let _0x276009=this['_activeAdjustPointList'];if(_0x276009&&_0x276009['length']!==0x0)for(let _0x324b6d=0x0;_0x324b6d<_0x276009['length'];_0x324b6d++){let _0x5d30f4=_0x276009[_0x324b6d],_0x55aad4=_0x5d30f4['x'],_0x13f336=_0x5d30f4['y'];if(_0x1f20c2&&(_0x55aad4=(_0xd201e6||0x0)-_0x55aad4),_0x1c642c&&(_0x13f336=(_0x6b9692||0x0)-_0x13f336),_0x37e52e!==0x0){let _0x35e413=(_0xd201e6||0x0)/0x2,_0x2825cd=(_0x6b9692||0x0)/0x2,_0x52eae0=_0x37e52e*Math['PI']/0xb4,_0x3ecd03=Math['cos'](_0x52eae0),_0x1350c8=Math['sin'](_0x52eae0),_0x49b164=_0x55aad4-_0x35e413,_0x16ce47=_0x13f336-_0x2825cd;_0x55aad4=_0x35e413+(_0x49b164*_0x3ecd03-_0x16ce47*_0x1350c8),_0x13f336=_0x2825cd+(_0x49b164*_0x1350c8+_0x16ce47*_0x3ecd03);}let _0x239c91={'x':_0x55aad4,'y':_0x13f336,'adjName':_0x5d30f4['adjName']};this[_0x1e86af(0x3bb)](_0x31e536,_0x239c91,_0x239c91[_0x1e86af(0x279)],_0x2d1c9d,_0x2a1d0f,this[_0x1e86af(0x2a2)],this[_0x1e86af(0x26f)]);}}[_0x5c10b7(0x3bb)](_0x1f7597,_0x520559,_0x2e5770,_0x2ce8b8,_0x60c04c,_0x3a97e2,_0x265ac2){const _0x456883=_0x5c10b7;if(!this[_0x456883(0x352)])return;let _0x5deccc=_0x456883(0x23b)+this['_activeImageId']+'-'+_0x2e5770,_0x4b217d=_0x1f7597[_0x456883(0x24b)](_0x5deccc);if(_0x4b217d){_0x4b217d[_0x456883(0x360)]({'left':_0x520559['x']+_0x2ce8b8-n['ShapeDefaultConfig']['adjHandleSize'],'top':_0x520559['y']+_0x60c04c-n[_0x456883(0x1fb)][_0x456883(0x48e)]});return;}let _0x25054b=new O(_0x5deccc,{'left':_0x520559['x']+_0x2ce8b8-n[_0x456883(0x1fb)][_0x456883(0x48e)],'top':_0x520559['y']+_0x60c04c-n[_0x456883(0x1fb)]['adjHandleSize'],'adjName':_0x2e5770,'shapeId':this[_0x456883(0x352)],'unitId':_0x3a97e2,'subUnitId':_0x265ac2,'width':n[_0x456883(0x1fb)]['adjHandleSize']+0x8,'height':n[_0x456883(0x1fb)][_0x456883(0x48e)]+0x8,'zIndex':c[_0x456883(0x1a6)]+0x1,'evented':!0x0});this[_0x456883(0x41e)][_0x456883(0x27a)](_0x25054b),this[_0x456883(0x20a)](_0x25054b,_0x1f7597,_0x2e5770),_0x1f7597['addObject'](_0x25054b,c[_0x456883(0x1a6)]+0x1);}[_0x5c10b7(0x351)](){const _0x2a4baf=_0x5c10b7;this['_shapes']['length']!==0x0&&(this['_shapes'][_0x2a4baf(0x3cd)](_0xc62b2a=>_0xc62b2a[_0x2a4baf(0x307)]()),this[_0x2a4baf(0x41e)]=[]);}[_0x5c10b7(0x2f8)](_0x417b7a,_0x5981c1){const _0x29732d=_0x5c10b7;var _0x1dbe8c;let _0x340f18={'x':0x0,'y':0x0},_0x1a4ff5=this[_0x29732d(0x33f)][_0x29732d(0x30f)](_0x417b7a);if(!_0x1a4ff5||!_0x1a4ff5[_0x29732d(0x300)](l['SheetSkeletonManagerService'])['getSkeleton'](_0x5981c1))return _0x340f18;let _0x103a97=_0x1a4ff5[_0x29732d(0x300)](l[_0x29732d(0x273)]),_0x4a294f=_0x103a97==null?void 0x0:_0x103a97[_0x29732d(0x319)]();if(!_0x4a294f)return _0x340f18;let _0x3800f7=(_0x1dbe8c=this[_0x29732d(0x287)][_0x29732d(0x278)](_0x417b7a))==null?void 0x0:_0x1dbe8c[_0x29732d(0x222)](_0x5981c1);if(!_0x3800f7)return _0x340f18;let _0x46a0e3=(0x0,l[_0x29732d(0x45b)])(_0x4a294f[_0x29732d(0x18d)],_0x4a294f[_0x29732d(0x23a)],_0x1a4ff5[_0x29732d(0x48b)],_0x3800f7);return _0x46a0e3?{'x':_0x46a0e3[_0x29732d(0x451)],'y':_0x46a0e3['viewportScrollY']}:_0x340f18;}['_getZoomRatio'](_0x32d5ac,_0xb1eff5){const _0xf999ac=_0x5c10b7;var _0x2d2275;let _0xd9bb5e=(_0x2d2275=this[_0xf999ac(0x287)][_0xf999ac(0x278)](_0x32d5ac))==null?void 0x0:_0x2d2275[_0xf999ac(0x222)](_0xb1eff5);return(_0xd9bb5e==null?void 0x0:_0xd9bb5e[_0xf999ac(0x250)]())??0x1;}[_0x5c10b7(0x20a)](_0xd2014b,_0x163d3c,_0x4c1576){const _0x1e0c78=_0x5c10b7;this[_0x1e0c78(0x1c0)]((0x0,a['toDisposable'])(_0xd2014b[_0x1e0c78(0x192)]['subscribeEvent']((_0x41b607,_0x1e88c3)=>{const _0x5c30d4=_0x1e0c78;var _0x25f379,_0x72908,_0x523f57;let {unitId:_0x1e8967,subUnitId:_0x2df9a3,drawingId:_0x3afe02}=_0xd2014b[_0x5c30d4(0x281)](),_0x703bab=this['_getImageDrawingInfo'](_0x1e8967,_0x2df9a3,_0x3afe02);if(!(_0x703bab!=null&&_0x703bab[_0x5c30d4(0x44b)]))return;let {left:_0x4aed2b,top:_0x4853f9,width:_0x16a391,height:_0x435d9f}=_0x703bab[_0x5c30d4(0x44b)];this[_0x5c30d4(0x1bd)]=_0x4aed2b||0x0,this[_0x5c30d4(0x181)]=_0x4853f9||0x0,this[_0x5c30d4(0x3fc)]=_0x16a391||0x0,this['_baseHeight']=_0x435d9f||0x0;let _0x4bf2c2=!!((_0x25f379=_0x703bab[_0x5c30d4(0x44b)])!=null&&_0x25f379[_0x5c30d4(0x32f)]),_0x317d9b=!!((_0x72908=_0x703bab['transform'])!=null&&_0x72908['flipY']),_0x1ef4ac=((_0x523f57=_0x703bab[_0x5c30d4(0x44b)])==null?void 0x0:_0x523f57[_0x5c30d4(0x457)])||0x0,_0x407b54=this[_0x5c30d4(0x30d)](_0x1e8967,_0x2df9a3,_0x3afe02);if(!_0x407b54)return;let _0x116f7d=this[_0x5c30d4(0x483)](_0x407b54[_0x5c30d4(0x312)],this[_0x5c30d4(0x3fc)],this[_0x5c30d4(0x1f5)],_0x407b54[_0x5c30d4(0x499)]);if(!_0x116f7d||(this[_0x5c30d4(0x4a7)]=_0x116f7d,this[_0x5c30d4(0x409)]=_0x116f7d[_0x5c30d4(0x45d)](_0x4c1576),!this['_activeAdjustInfo']))return;this[_0x5c30d4(0x2e9)]=!0x0,_0x163d3c[_0x5c30d4(0x43f)]();let _0x32ecd5=_0x407b54['prstGeom'];this[_0x5c30d4(0x4b6)]=_0x163d3c[_0x5c30d4(0x238)]['subscribeEvent']((_0x1a80b4,_0x3c5685)=>{const _0x499092=_0x5c30d4;if(!this[_0x499092(0x2e9)])return;let {offsetX:_0x2ff6ea,offsetY:_0x4a66e5}=_0x1a80b4,_0x5b2d36=this[_0x499092(0x409)];if(!this['_activeShapeModel']||!_0x5b2d36)return;_0x163d3c[_0x499092(0x43f)](),_0x163d3c[_0x499092(0x423)](c[_0x499092(0x48f)][_0x499092(0x2b5)]);let _0x5404f7={'left':0x0,'top':0x0,'width':this[_0x499092(0x3fc)],'height':this[_0x499092(0x1f5)]},_0x1e1725=this[_0x499092(0x2f8)](_0x1e8967,_0x2df9a3),_0x4224ba=this[_0x499092(0x228)](_0x1e8967,_0x2df9a3),_0x3f4891=_0x2ff6ea/_0x4224ba+_0x1e1725['x']-this['_baseLeft'],_0x77638d=_0x4a66e5/_0x4224ba+_0x1e1725['y']-this[_0x499092(0x181)];if(_0x1ef4ac!==0x0){let _0x5ab542=this['_baseWidth']/0x2,_0xfdfce8=this[_0x499092(0x1f5)]/0x2,_0x439a6e=_0x1ef4ac*Math['PI']/0xb4,_0x2f6d7e=Math[_0x499092(0x373)](_0x439a6e),_0x1deabd=Math[_0x499092(0x35a)](_0x439a6e),_0x180919=_0x3f4891-_0x5ab542,_0x51cb01=_0x77638d-_0xfdfce8;_0x3f4891=_0x5ab542+(_0x180919*_0x2f6d7e+_0x51cb01*_0x1deabd),_0x77638d=_0xfdfce8+(-_0x180919*_0x1deabd+_0x51cb01*_0x2f6d7e);}_0x4bf2c2&&(_0x3f4891=this[_0x499092(0x3fc)]-_0x3f4891),_0x317d9b&&(_0x77638d=this['_baseHeight']-_0x77638d);let _0x2eb153=this[_0x499092(0x4a7)][_0x499092(0x29d)](_0x5404f7,{'x':_0x3f4891,'y':_0x77638d},_0x5b2d36,_0x4bf2c2,_0x317d9b);if(Object[_0x499092(0x3e0)](_0x2eb153)[_0x499092(0x313)]!==0x0){for(let [_0xc940f4,_0x2d0f29]of Object['entries'](_0x2eb153))this[_0x499092(0x4a7)][_0x499092(0x41d)](_0xc940f4,_0x2d0f29);this[_0x499092(0x4a7)][_0x499092(0x2bc)]({'width':this[_0x499092(0x3fc)],'height':this[_0x499092(0x1f5)]}),this[_0x499092(0x4af)](_0x1e8967,_0x2df9a3,_0x3afe02,_0x2eb153),this[_0x499092(0x3f6)]=this[_0x499092(0x4a7)][_0x499092(0x345)](),this[_0x499092(0x4d5)](),_0x3c5685['stopPropagation']();}}),this[_0x5c30d4(0x329)]=_0x163d3c[_0x5c30d4(0x487)][_0x5c30d4(0x3e9)]((_0x187176,_0x52a1f9)=>{const _0x1a0061=_0x5c30d4;if(this[_0x1a0061(0x4b6)][_0x1a0061(0x21e)](),this[_0x1a0061(0x329)][_0x1a0061(0x21e)](),_0x163d3c[_0x1a0061(0x42e)](),this[_0x1a0061(0x4a7)]){let _0x333684=this[_0x1a0061(0x4a7)][_0x1a0061(0x22d)](),_0x287b5f={};for(let _0x531add of _0x333684){let _0x25642e=this[_0x1a0061(0x4a7)][_0x1a0061(0x436)](_0x531add);_0x25642e!==void 0x0&&(_0x287b5f[_0x531add]=_0x25642e);}this[_0x1a0061(0x471)][_0x1a0061(0x3c7)](_0x1e8967,_0x2df9a3,_0x3afe02,_0x32ecd5,_0x287b5f);}this['_activeAdjustInfo']=void 0x0,this[_0x1a0061(0x4a7)]=void 0x0,this[_0x1a0061(0x2e9)]=!0x1,_0x52a1f9[_0x1a0061(0x460)](),_0x163d3c[_0x1a0061(0x391)]();}),_0x1e88c3['stopPropagation']();})));}[_0x5c10b7(0x4af)](_0x184dac,_0x5d610b,_0x539add,_0x28953f){const _0x2c6300=_0x5c10b7;let _0x126089=this['_renderManagerService'][_0x2c6300(0x30f)](_0x184dac);if(!_0x126089)return;let {scene:_0x3b52c4}=_0x126089,_0xde3c84=(0x0,s[_0x2c6300(0x4bd)])({'unitId':_0x184dac,'subUnitId':_0x5d610b,'drawingId':_0x539add}),_0x4df433=_0x3b52c4['getObject'](_0xde3c84);if(_0x4df433 instanceof c[_0x2c6300(0x417)]){let _0x485b21=_0x4df433[_0x2c6300(0x16e)]??{};_0x4df433[_0x2c6300(0x290)]({..._0x485b21,..._0x28953f}),_0x4df433[_0x2c6300(0x461)](!0x0);}}['_registerMoveHandler'](){const _0xef7539=_0x5c10b7;let _0xece7e3=this[_0xef7539(0x287)][_0xef7539(0x4a2)](a[_0xef7539(0x1c5)][_0xef7539(0x353)]);this[_0xef7539(0x1c0)](_0xece7e3[_0xef7539(0x2e5)]((0x0,u[_0xef7539(0x32e)])(_0x59c875=>_0x59c875?_0x59c875[_0xef7539(0x370)][_0xef7539(0x2e5)]((0x0,u['switchMap'])(_0x54a405=>{const _0x5e0085=_0xef7539;if(!_0x54a405)return u[_0x5e0085(0x254)];let _0x422db5=_0x59c875[_0x5e0085(0x400)](),_0x4df39d=this[_0x5e0085(0x33f)][_0x5e0085(0x30f)](_0x422db5),_0x5614d9=_0x4df39d==null?void 0x0:_0x4df39d[_0x5e0085(0x48b)];return _0x5614d9?(0x0,u['of'])(_0x5614d9):u[_0x5e0085(0x254)];})):u[_0xef7539(0x254)]))['subscribe'](_0x4070ad=>{const _0x52aff4=_0xef7539;let _0x49e125=_0x4070ad[_0x52aff4(0x325)]();this[_0x52aff4(0x1c0)](_0x4070ad[_0x52aff4(0x238)]['subscribeEvent'](()=>{const _0x1674c5=_0x52aff4;this[_0x1674c5(0x21d)]&&this[_0x1674c5(0x351)]();})),this[_0x52aff4(0x1c0)](_0x49e125[_0x52aff4(0x4e5)]['subscribe'](_0x4d5206=>{const _0x26499e=_0x52aff4;let {objects:_0x11c117}=_0x4d5206;if(this[_0x26499e(0x4d5)](),_0x11c117!==null&&_0x11c117[_0x26499e(0x20b)]===0x1){let _0x69dffe=_0x11c117[_0x26499e(0x364)]()['next']()[_0x26499e(0x1ed)];_0x69dffe instanceof c[_0x26499e(0x417)]&&_0x69dffe['prstGeom']&&(this[_0x26499e(0x21d)]=!0x0);}})),this[_0x52aff4(0x1c0)](_0x49e125[_0x52aff4(0x450)][_0x52aff4(0x45e)](()=>{const _0x194e6a=_0x52aff4;this[_0x194e6a(0x21d)]&&this[_0x194e6a(0x351)]();})),this[_0x52aff4(0x1c0)](_0x4070ad[_0x52aff4(0x487)][_0x52aff4(0x3e9)](()=>{const _0x5b219d=_0x52aff4;this[_0x5b219d(0x21d)]&&(this[_0x5b219d(0x21d)]=!0x1,this['_createControls']());})),this[_0x52aff4(0x1c0)](_0x49e125[_0x52aff4(0x19c)][_0x52aff4(0x45e)](()=>{const _0x169d88=_0x52aff4;if(this[_0x169d88(0x2a2)]&&this[_0x169d88(0x26f)]&&this[_0x169d88(0x352)]){let _0x25b1b8=this['_getImagePrstGeom'](this['_unitId'],this['_subUnitId'],this[_0x169d88(0x352)]);if(_0x25b1b8){var _0x2f70dd,_0x251909;let _0x4ef056=this[_0x169d88(0x2d0)](this[_0x169d88(0x2a2)],this[_0x169d88(0x26f)],this[_0x169d88(0x352)]),_0x5bfb53=(_0x4ef056==null||(_0x2f70dd=_0x4ef056['transform'])==null?void 0x0:_0x2f70dd[_0x169d88(0x3d4)])||0x0,_0x4a4e82=(_0x4ef056==null||(_0x251909=_0x4ef056['transform'])==null?void 0x0:_0x251909[_0x169d88(0x2c3)])||0x0,_0x43717b=this[_0x169d88(0x483)](_0x25b1b8['prstGeom'],_0x5bfb53,_0x4a4e82,_0x25b1b8[_0x169d88(0x499)]);_0x43717b&&(this[_0x169d88(0x3f6)]=_0x43717b['getDrawingPoints'](),this[_0x169d88(0x351)](),this[_0x169d88(0x4d5)](!0x0));}}}));}));}[_0x5c10b7(0x41a)](){const _0x2354ab=_0x5c10b7;this[_0x2354ab(0x1c0)](this[_0x2354ab(0x2ac)][_0x2354ab(0x47b)][_0x2354ab(0x45e)](_0x5ac9c6=>{const _0x2a8e41=_0x2354ab;if(_0x5ac9c6[_0x2a8e41(0x313)]===0x1){let _0x4e77bc=_0x5ac9c6[0x0];if(_0x4e77bc['drawingType']===a[_0x2a8e41(0x2a4)]['DRAWING_IMAGE']){let {unitId:_0x4644d8,subUnitId:_0x1995b7,drawingId:_0x44be91}=_0x4e77bc,_0xe0c999=this[_0x2a8e41(0x30d)](_0x4644d8,_0x1995b7,_0x44be91);if(_0xe0c999){var _0x4bd9d5,_0x335758;this[_0x2a8e41(0x352)]=_0x44be91,this['_unitId']=_0x4644d8,this[_0x2a8e41(0x26f)]=_0x1995b7;let _0xea8a57=this[_0x2a8e41(0x2d0)](_0x4644d8,_0x1995b7,_0x44be91),_0x367f91=(_0xea8a57==null||(_0x4bd9d5=_0xea8a57[_0x2a8e41(0x44b)])==null?void 0x0:_0x4bd9d5[_0x2a8e41(0x3d4)])||0x0,_0x473f59=(_0xea8a57==null||(_0x335758=_0xea8a57['transform'])==null?void 0x0:_0x335758['height'])||0x0,_0x3797f8=this[_0x2a8e41(0x483)](_0xe0c999[_0x2a8e41(0x312)],_0x367f91,_0x473f59,_0xe0c999[_0x2a8e41(0x499)]);_0x3797f8&&(this[_0x2a8e41(0x3f6)]=_0x3797f8[_0x2a8e41(0x345)]()),this[_0x2a8e41(0x351)](),this[_0x2a8e41(0x4d5)](!0x0);}else this[_0x2a8e41(0x239)]();}else this['_resetState']();}else this[_0x2a8e41(0x239)]();})),this['disposeWithMe'](this['_drawingManagerService'][_0x2354ab(0x1fc)][_0x2354ab(0x45e)](_0xe9b84a=>{const _0x303793=_0x2354ab;if(_0xe9b84a[_0x303793(0x313)]===0x1){let _0x5719c2=_0xe9b84a[0x0],_0x2fe50a=this[_0x303793(0x2ac)][_0x303793(0x341)](_0x5719c2);(_0x2fe50a==null?void 0x0:_0x2fe50a[_0x303793(0x1e3)])===a[_0x303793(0x2a4)][_0x303793(0x4ce)]&&this[_0x303793(0x352)]===_0x5719c2[_0x303793(0x2de)]&&(this['_clearControls'](),this[_0x303793(0x4d5)](!0x0));}})),this['disposeWithMe'](this[_0x2354ab(0x2ac)][_0x2354ab(0x1f4)][_0x2354ab(0x45e)](_0x528102=>{const _0x21e3cc=_0x2354ab;for(let _0x95a82e of _0x528102)this[_0x21e3cc(0x352)]===_0x95a82e['drawingId']&&this[_0x21e3cc(0x239)]();}));}[_0x5c10b7(0x239)](){const _0x556303=_0x5c10b7;this[_0x556303(0x352)]=null,this['_unitId']=null,this[_0x556303(0x26f)]=null,this[_0x556303(0x3f6)]=void 0x0,this[_0x556303(0x351)]();}};ut=A([k(0x1,s[_0x5c10b7(0x335)]),k(0x2,(0x0,a[_0x5c10b7(0x25d)])(c[_0x5c10b7(0x184)])),k(0x3,a[_0x5c10b7(0x1f7)]),k(0x4,(0x0,a[_0x5c10b7(0x25d)])(B))],ut);function dt(_0x37e147){const _0x4abfab=_0x5c10b7;return _0x37e147[_0x4abfab(0x4e7)]()||void 0x0;}function ft(_0x257f18,_0x2d18fe,_0x257206){const _0x195675=_0x5c10b7;var _0x16c195;return((_0x16c195=_0x257f18[_0x195675(0x25a)])==null?void 0x0:_0x16c195[_0x195675(0x4e7)]())||_0x257206['t'](_0x195675(0x4bb)+(0x0,e['getDrawingTypeNameKey'])(_0x257f18['drawingType']))+'\x20'+(_0x2d18fe+0x1);}function pt({PanelComponent:_0x27a34e=d[_0x5c10b7(0x261)]}){const _0x3975a5=_0x5c10b7;var _0x4d4372;let _0x2fbe59=(0x0,t[_0x3975a5(0x38d)])(a[_0x3975a5(0x1ea)]),_0x275027={'title':_0x2fbe59['t'](_0x3975a5(0x4e3)),'empty':_0x2fbe59['t']('drawing-ui.objectListPanel.empty'),'showAll':_0x2fbe59['t']('drawing-ui.objectListPanel.showAll'),'hideAll':_0x2fbe59['t'](_0x3975a5(0x38f)),'lockAll':_0x2fbe59['t'](_0x3975a5(0x1cf)),'unlockAll':_0x2fbe59['t']('drawing-ui.objectListPanel.unlockAll'),'moveForward':_0x2fbe59['t'](_0x3975a5(0x422)),'moveBackward':_0x2fbe59['t'](_0x3975a5(0x38c)),'close':_0x2fbe59['t'](_0x3975a5(0x44a)),'show':_0x2fbe59['t']('drawing-ui.objectListPanel.show'),'hide':_0x2fbe59['t']('drawing-ui.objectListPanel.hide'),'lock':_0x2fbe59['t']('drawing-ui.objectListPanel.lock'),'unlock':_0x2fbe59['t'](_0x3975a5(0x28e)),'lockHint':_0x2fbe59['t'](_0x3975a5(0x38e)),'unlockHint':_0x2fbe59['t'](_0x3975a5(0x252)),'name':_0x2fbe59['t'](_0x3975a5(0x19f)),'nameInput':_0x2fbe59['t']('drawing-ui.objectListPanel.nameInput'),'description':_0x2fbe59['t'](_0x3975a5(0x235)),'descriptionPlaceholder':_0x2fbe59['t'](_0x3975a5(0x4ac)),'details':_0x2fbe59['t'](_0x3975a5(0x497)),'noSelection':_0x2fbe59['t'](_0x3975a5(0x1a4)),'locate':_0x2fbe59['t'](_0x3975a5(0x1f1)),'expand':_0x2fbe59['t']('drawing-ui.objectListPanel.expand'),'collapse':_0x2fbe59['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0x2fbe59['t'](_0x3975a5(0x456)),'search':_0x2fbe59['t'](_0x3975a5(0x4bc)),'filterAll':_0x2fbe59['t'](_0x3975a5(0x1d5)),'filterHidden':_0x2fbe59['t'](_0x3975a5(0x495)),'filterLocked':_0x2fbe59['t'](_0x3975a5(0x494)),'sectionCanvas':_0x2fbe59['t'](_0x3975a5(0x303)),'sectionFloating':_0x2fbe59['t'](_0x3975a5(0x251))},_0x176d44=(0x0,t[_0x3975a5(0x38d)])(a['ICommandService']),_0x571335=(0x0,t[_0x3975a5(0x38d)])(a['IUniverInstanceService']),_0xb7c490=(0x0,t[_0x3975a5(0x38d)])(m['ISheetDrawingService']),_0x33fc1d=(0x0,t[_0x3975a5(0x38d)])(s[_0x3975a5(0x335)]),_0x9309be=(0x0,t[_0x3975a5(0x38d)])(c[_0x3975a5(0x184)]),[,_0x1f72eb]=(0x0,b[_0x3975a5(0x4aa)])(_0x2914b4=>_0x2914b4+0x1,0x0),_0x53b8e2=_0x571335[_0x3975a5(0x3cf)](a['UniverInstanceType'][_0x3975a5(0x353)]),_0x360367=(_0x53b8e2==null?void 0x0:_0x53b8e2[_0x3975a5(0x400)]())??'',_0xffbc2a=(_0x53b8e2==null||(_0x4d4372=_0x53b8e2[_0x3975a5(0x3b5)]())==null?void 0x0:_0x4d4372[_0x3975a5(0x196)]())??'',_0xb76357=(0x0,t[_0x3975a5(0x431)])(()=>_0x33fc1d[_0x3975a5(0x47b)],_0x33fc1d[_0x3975a5(0x3ff)](),!0x1,[_0x33fc1d]);(0x0,b[_0x3975a5(0x3a7)])(()=>{const _0x1c83ca=_0x3975a5;let _0x5da7dd=_0x176d44[_0x1c83ca(0x4d1)](()=>_0x1f72eb());return()=>_0x5da7dd[_0x1c83ca(0x307)]();},[_0x176d44]);let _0x36bdc8=_0x360367&&_0xffbc2a?_0xb7c490['getDrawingData'](_0x360367,_0xffbc2a):{},_0x1753d6=(_0x360367&&_0xffbc2a?_0xb7c490[_0x3975a5(0x3c9)](_0x360367,_0xffbc2a):[])[_0x3975a5(0x4ab)](_0x1f47ff=>_0x36bdc8[_0x1f47ff])[_0x3975a5(0x482)](_0x37fbad=>!!_0x37fbad)[_0x3975a5(0x1df)](),_0x268cc9=_0x1753d6[_0x3975a5(0x4df)]((_0x413985,_0x506c53)=>(_0x413985[(0x0,d[_0x3975a5(0x199)])(_0x506c53[_0x3975a5(0x1e3)])]+=0x1,_0x413985),{'canvas':0x0,'floating':0x0}),_0x471985={'canvas':0x0,'floating':0x0},_0x5ead93=_0x1753d6[_0x3975a5(0x4ab)]((_0x306ccc,_0x11b058)=>{const _0x170410=_0x3975a5;let _0x96c402=(0x0,d['getObjectListPanelSectionIdForDrawingType'])(_0x306ccc[_0x170410(0x1e3)]),_0x14b447=_0x96c402===d['OBJECT_LIST_FLOATING_SECTION_ID'],_0x3765b0=_0x471985[_0x96c402]++;return{'id':_0x306ccc[_0x170410(0x2de)],'name':ft(_0x306ccc,_0x11b058,_0x2fbe59),'description':_0x306ccc['description'],'visible':_0x306ccc[_0x170410(0x49d)]!==!0x0,'selectable':_0x306ccc[_0x170410(0x46c)]!==!0x1,'sectionId':_0x96c402,'sectionTitle':_0x14b447?_0x275027['sectionFloating']:_0x275027[_0x170410(0x1e1)],'capabilities':_0x14b447?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x14b447&&_0x3765b0>0x0,'canMoveBackward':!_0x14b447&&_0x3765b0<_0x268cc9[_0x170410(0x2b6)]-0x1,'canReorder':!_0x14b447};}),_0x1ee716=(0x0,b[_0x3975a5(0x2a7)])(()=>(_0xb76357??[])['filter'](_0x3a58af=>_0x3a58af[_0x3975a5(0x2c6)]===_0x360367&&_0x3a58af[_0x3975a5(0x2b9)]===_0xffbc2a)[_0x3975a5(0x4ab)](_0x56aa74=>_0x56aa74[_0x3975a5(0x2de)]),[_0xb76357,_0xffbc2a,_0x360367]),_0x3a6245=_0x1ee716[_0x1ee716[_0x3975a5(0x313)]-0x1]??null,_0x2689a0=_0x2de276=>_0xb7c490['getDrawingByParam']({'unitId':_0x360367,'subUnitId':_0xffbc2a,'drawingId':_0x2de276})??null,_0x1a456c=async _0x46618f=>{const _0x3cb7d7=_0x3975a5;_0x360367&&_0x46618f[_0x3cb7d7(0x313)]&&await _0x176d44[_0x3cb7d7(0x4a0)](m[_0x3cb7d7(0x44c)]['id'],{'unitId':_0x360367,'drawings':_0x46618f});},_0x2c7c61=async(_0x27fdd6,_0x17848b)=>{_0x2689a0(_0x27fdd6)&&await _0x1a456c([{'unitId':_0x360367,'subUnitId':_0xffbc2a,'drawingId':_0x27fdd6,..._0x17848b}]);},_0x37f005=(_0x443ff8,_0x2bd4a3)=>{const _0x3677a4=_0x3975a5;if(!_0x360367||!_0xffbc2a)return;let _0x41efc9=_0x2bd4a3?_0x1ee716[_0x3677a4(0x3a5)](_0x443ff8)?_0x1ee716['filter'](_0x5c1730=>_0x5c1730!==_0x443ff8):[..._0x1ee716,_0x443ff8]:[_0x443ff8];_0x176d44[_0x3677a4(0x4b3)](s['SetDrawingSelectedOperation']['id'],_0x41efc9[_0x3677a4(0x4ab)](_0x49894a=>({'unitId':_0x360367,'subUnitId':_0xffbc2a,'drawingId':_0x49894a})));let _0xe4f5e4=_0x41efc9[_0x41efc9[_0x3677a4(0x313)]-0x1];_0xe4f5e4?(0x0,e['activateDrawingObject'])(_0x9309be,{'unitId':_0x360367,'subUnitId':_0xffbc2a,'drawingId':_0xe4f5e4}):(0x0,e[_0x3677a4(0x4b2)])(_0x9309be,_0x360367);},_0x5d7f00=async(_0x4750a8,_0x5bf8d3)=>{const _0x4bacf9=_0x3975a5;await _0x1a456c(_0x4750a8[_0x4bacf9(0x4ab)](_0x862feb=>_0x2689a0(_0x862feb))['filter'](_0x2da533=>!!_0x2da533)[_0x4bacf9(0x482)](_0x40608f=>_0x40608f[_0x4bacf9(0x49d)]!==!0x0!==_0x5bf8d3)[_0x4bacf9(0x4ab)](_0x4a3710=>({'unitId':_0x360367,'subUnitId':_0xffbc2a,'drawingId':_0x4a3710['drawingId'],'hidden':!_0x5bf8d3})));},_0xdb38ae=async(_0x2022b8,_0x4595c6)=>{const _0x3a9f4e=_0x3975a5;await _0x1a456c(_0x2022b8['map'](_0x8b78c8=>_0x2689a0(_0x8b78c8))[_0x3a9f4e(0x482)](_0x3509ee=>!!_0x3509ee)[_0x3a9f4e(0x482)](_0x564607=>_0x564607[_0x3a9f4e(0x46c)]!==!0x1!==_0x4595c6)[_0x3a9f4e(0x4ab)](_0x11e46a=>({'unitId':_0x360367,'subUnitId':_0xffbc2a,'drawingId':_0x11e46a['drawingId'],'selectable':_0x4595c6})));},_0xb3caed=_0xe14d88=>{let _0x1e0cd4=_0x2689a0(_0xe14d88);if(_0x1e0cd4)return _0xdb38ae([_0xe14d88],_0x1e0cd4['selectable']===!0x1);},_0xc96133=async(_0xa83a56,_0x3593fa)=>{const _0x4f6c62=_0x3975a5;var _0x140f04;let _0x4b1758=dt(_0x3593fa);(((_0x140f04=_0x2689a0(_0xa83a56))==null?void 0x0:_0x140f04[_0x4f6c62(0x25a)])??void 0x0)!==_0x4b1758&&await _0x2c7c61(_0xa83a56,{'name':_0x4b1758});},_0x482ad6=async(_0x560d50,_0x3ed283)=>{const _0x290d40=_0x3975a5;var _0x2a9b86;let _0x1a8486=dt(_0x3ed283);(((_0x2a9b86=_0x2689a0(_0x560d50))==null?void 0x0:_0x2a9b86[_0x290d40(0x444)])??void 0x0)!==_0x1a8486&&await _0x2c7c61(_0x560d50,{'description':_0x1a8486});},_0x163661=async(_0x1ea93,_0x5537a0)=>{const _0x4310a2=_0x3975a5;_0x360367&&_0xffbc2a&&await _0x176d44[_0x4310a2(0x4a0)](m[_0x4310a2(0x429)]['id'],{'unitId':_0x360367,'subUnitId':_0xffbc2a,'drawingIds':[_0x1ea93],'arrangeType':_0x5537a0});};return!_0x360367||!_0xffbc2a?(0x0,p['jsx'])('div',{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x275027[_0x3975a5(0x326)]}):(0x0,p['jsx'])(_0x27a34e,{'labels':_0x275027,'items':_0x5ead93,'selectedIds':_0x1ee716,'focusedId':_0x3a6245,'showHeader':!0x1,'onSelect':_0x37f005,'onSetVisible':_0x5d7f00,'onSetSelectable':_0xdb38ae,'onCommitName':_0xc96133,'onCommitDescription':_0x482ad6,'onMoveForward':async _0x58aabb=>_0x163661(_0x58aabb,a['ArrangeTypeEnum'][_0x3975a5(0x466)]),'onMoveBackward':async _0x1baf2f=>_0x163661(_0x1baf2f,a[_0x3975a5(0x4d6)][_0x3975a5(0x3b0)]),'onToggleSelectable':_0xb3caed});}function mt(){const _0x55907a=_0x5c10b7;return(0x0,p[_0x55907a(0x1dd)])(pt,{'PanelComponent':d[_0x55907a(0x2a0)]});}let ht=class extends a['Disposable']{constructor(_0x1bfc9a,_0xb80a8f){const _0x3c215f=_0x5c10b7;super(),this['disposeWithMe'](_0x1bfc9a['register'](I,mt)),this[_0x3c215f(0x1c0)](_0xb80a8f[_0x3c215f(0x203)]({'BottomIcon':y['BottomIcon'],'FlipHorizontalIcon':y[_0x3c215f(0x264)],'FlipVerticalIcon':y[_0x3c215f(0x3af)],'MoveDownIcon':y[_0x3c215f(0x3b7)],'MoveUpIcon':y[_0x3c215f(0x396)],'ObjectLayersIcon':y['ObjectLayersIcon'],'ShapeFormatSettingIcon':y[_0x3c215f(0x209)],'TopmostIcon':y[_0x3c215f(0x245)]})),this[_0x3c215f(0x1c0)](_0x1bfc9a[_0x3c215f(0x203)](le,ge)),this[_0x3c215f(0x1c0)](_0x1bfc9a[_0x3c215f(0x203)](ue,pe)),_0x1bfc9a[_0x3c215f(0x3c3)](d[_0x3c215f(0x2a1)])||this[_0x3c215f(0x1c0)](_0x1bfc9a['register'](d[_0x3c215f(0x2a1)],me));}};ht=A([k(0x0,(0x0,a[_0x5c10b7(0x25d)])(t[_0x5c10b7(0x221)])),k(0x1,(0x0,a[_0x5c10b7(0x25d)])(t[_0x5c10b7(0x41c)]))],ht);let H=class extends a['Disposable']{constructor(_0x483cdf){const _0x4d4d2f=_0x5c10b7;super(),this[_0x4d4d2f(0x201)]=_0x483cdf,E(this,'_editingParams$',new u[(_0x4d4d2f(0x2f6))](null)),E(this,_0x4d4d2f(0x4c1),this['_editingParams$'][_0x4d4d2f(0x479)]()),E(this,_0x4d4d2f(0x1d3),new u[(_0x4d4d2f(0x2f6))](!0x1)),E(this,'onSavingEditorData$',this[_0x4d4d2f(0x1d3)][_0x4d4d2f(0x479)]()),E(this,_0x4d4d2f(0x2e7),void 0x0),this[_0x4d4d2f(0x1c0)](this[_0x4d4d2f(0x201)][_0x4d4d2f(0x441)][_0x4d4d2f(0x45e)](()=>{const _0xb7a119=_0x4d4d2f;let _0xe1b606=this[_0xb7a119(0x30c)]();_0xe1b606!=null&&_0xe1b606[_0xb7a119(0x1ca)]&&!this['_canEdit'](_0xe1b606)&&this[_0xb7a119(0x3c6)](null);}));}[_0x5c10b7(0x307)](){const _0x255ec7=_0x5c10b7;this[_0x255ec7(0x2da)](),this[_0x255ec7(0x255)][_0x255ec7(0x295)](null),this[_0x255ec7(0x255)][_0x255ec7(0x486)](),this[_0x255ec7(0x1d3)][_0x255ec7(0x295)](!0x1),this['_onSavingEditorData$'][_0x255ec7(0x486)](),super['dispose']();}[_0x5c10b7(0x3c6)](_0x256355){const _0x18855c=_0x5c10b7;(_0x256355==null||!_0x256355[_0x18855c(0x1ca)]||this[_0x18855c(0x229)](_0x256355))&&(this[_0x18855c(0x2da)](),this['_editingParams$'][_0x18855c(0x295)](_0x256355),(_0x256355==null||_0x256355[_0x18855c(0x1ca)]&&this[_0x18855c(0x1d3)]['getValue']())&&this['_onSavingEditorData$'][_0x18855c(0x295)](!0x1));}['setOnSavingEditorData'](_0x205748){const _0x1e96c7=_0x5c10b7;this[_0x1e96c7(0x1d3)][_0x1e96c7(0x295)](_0x205748);}[_0x5c10b7(0x30c)](){const _0x4658a1=_0x5c10b7;return this[_0x4658a1(0x255)][_0x4658a1(0x4e4)]();}[_0x5c10b7(0x229)](_0x1c3797){const _0x383ce2=_0x5c10b7;let _0xb80f54=this['_permissionService'][_0x383ce2(0x469)](new o[(_0x383ce2(0x2c4))](_0x1c3797['unitId'])['id']),_0x5a0803=this['_permissionService'][_0x383ce2(0x469)](new o[(_0x383ce2(0x331))](_0x1c3797['unitId'],_0x1c3797[_0x383ce2(0x2b9)])['id']);return((_0xb80f54==null?void 0x0:_0xb80f54['value'])??!0x0)&&((_0x5a0803==null?void 0x0:_0x5a0803['value'])??!0x0);}[_0x5c10b7(0x380)](_0x1af3c3){const _0x28c2fb=_0x5c10b7;let _0x4cf9d6=this[_0x28c2fb(0x30c)]();_0x4cf9d6&&this['_completionFrame']===void 0x0&&(this[_0x28c2fb(0x39b)](!0x0),this[_0x28c2fb(0x2e7)]=requestAnimationFrame(()=>{const _0x1be129=_0x28c2fb;this[_0x1be129(0x2e7)]=void 0x0,this['getEditing']()===_0x4cf9d6&&this[_0x1be129(0x3c6)](null);}));}[_0x5c10b7(0x2da)](){const _0x3513bd=_0x5c10b7;this[_0x3513bd(0x2e7)]!==void 0x0&&(cancelAnimationFrame(this['_completionFrame']),this['_completionFrame']=void 0x0);}[_0x5c10b7(0x1be)](){const _0xc54776=_0x5c10b7;this[_0xc54776(0x30c)]()&&this[_0xc54776(0x3c6)](null);}};H=A([k(0x0,a['IPermissionService'])],H);let gt=class extends a[_0x5c10b7(0x374)]{constructor(_0x2cf2be,_0x491550,_0x299258,_0x2c22ef,_0x35e7ac,_0x1d7eec){const _0x581bf1=_0x5c10b7;super(),this[_0x581bf1(0x3b1)]=_0x2cf2be,this[_0x581bf1(0x412)]=_0x491550,this[_0x581bf1(0x1bc)]=_0x299258,this['_drawingManagerService']=_0x2c22ef,this[_0x581bf1(0x4da)]=_0x35e7ac,this['_sheetsShapeService']=_0x1d7eec,E(this,_0x581bf1(0x2b3),null),this['_initEvents'](),this['_initSelection'](),this[_0x581bf1(0x40f)]();}[_0x5c10b7(0x3da)](){const _0x15ec9e=_0x5c10b7;let {scene:_0xc4b3cc}=this[_0x15ec9e(0x3b1)];this[_0x15ec9e(0x1c0)](_0xc4b3cc['onDblclick$']['subscribeEvent'](_0x275fe9=>{const _0x27e4ae=_0x15ec9e;let {offsetX:_0x55a64e,offsetY:_0x201009}=_0x275fe9,_0x3797ad=_0xc4b3cc[_0x27e4ae(0x375)](c['Vector2'][_0x27e4ae(0x1fd)]([_0x55a64e,_0x201009]));if(_0x3797ad instanceof D){let _0x382bd9=this[_0x27e4ae(0x3d9)][_0x27e4ae(0x305)](_0x3797ad[_0x27e4ae(0x2c6)],_0x3797ad[_0x27e4ae(0x2b9)],_0x3797ad[_0x27e4ae(0x3c8)]);if((0x0,n['isConnectorShape'])(this[_0x27e4ae(0x3d9)]['getShapeType'](_0x3797ad['unitId'],_0x3797ad[_0x27e4ae(0x2b9)],_0x3797ad[_0x27e4ae(0x3c8)]))||_0x382bd9!=null&&_0x382bd9[_0x27e4ae(0x3dd)]()['formulaBinding'])return;this[_0x27e4ae(0x1bc)]['setEditing']({'visible':!0x0,'unitId':_0x3797ad[_0x27e4ae(0x2c6)],'subUnitId':_0x3797ad[_0x27e4ae(0x2b9)],'shapeId':_0x3797ad['shapeId'],'shapeKey':_0x3797ad[_0x27e4ae(0x202)]});}}));}[_0x5c10b7(0x3d1)](){const _0x19b1cb=_0x5c10b7;this[_0x19b1cb(0x1c0)](this['_drawingManagerService'][_0x19b1cb(0x47b)][_0x19b1cb(0x45e)](_0x52bef7=>{const _0xe2d936=_0x19b1cb;if(_0x52bef7[_0xe2d936(0x313)]===0x1){let _0x28df37=_0x52bef7[0x0],_0x2ff793=this['_drawingManagerService'][_0xe2d936(0x341)](_0x28df37);if((_0x2ff793==null?void 0x0:_0x2ff793[_0xe2d936(0x1e3)])===a['DrawingTypeEnum'][_0xe2d936(0x2bd)]){var _0x273122;let _0x589517=this[_0xe2d936(0x1bc)][_0xe2d936(0x30c)]();if((_0x589517==null?void 0x0:_0x589517[_0xe2d936(0x3c8)])===_0x28df37[_0xe2d936(0x2de)]&&_0x589517['visible'])return;let _0x4dc53b=(0x0,n[_0xe2d936(0x2b0)])(this['_sheetsShapeService']['getShapeType'](_0x28df37[_0xe2d936(0x2c6)],_0x28df37[_0xe2d936(0x2b9)],_0x28df37[_0xe2d936(0x2de)])),_0x4e3fac=!!((_0x273122=this[_0xe2d936(0x3d9)]['getShapeModel'](_0x28df37[_0xe2d936(0x2c6)],_0x28df37[_0xe2d936(0x2b9)],_0x28df37[_0xe2d936(0x2de)]))!=null&&_0x273122[_0xe2d936(0x3dd)]()['formulaBinding']);(_0x4dc53b||_0x4e3fac)&&this[_0xe2d936(0x1bc)][_0xe2d936(0x3c6)](null);}else this[_0xe2d936(0x1bc)][_0xe2d936(0x380)]();}else this[_0xe2d936(0x1bc)][_0xe2d936(0x380)]();})),this[_0x19b1cb(0x1c0)](this[_0x19b1cb(0x2ac)][_0x19b1cb(0x1f4)][_0x19b1cb(0x45e)](_0x4e92a7=>{const _0x3d2e17=_0x19b1cb;let _0x54b5ce=this[_0x3d2e17(0x1bc)]['getEditing']();_0x54b5ce&&_0x4e92a7[_0x3d2e17(0x2f2)](_0x5be54b=>_0x5be54b[_0x3d2e17(0x2de)]===_0x54b5ce[_0x3d2e17(0x3c8)])&&this[_0x3d2e17(0x1bc)][_0x3d2e17(0x3c6)](null);}));}['_initEditingParams'](){const _0x131bc2=_0x5c10b7;this[_0x131bc2(0x1c0)](this[_0x131bc2(0x1bc)][_0x131bc2(0x4c1)][_0x131bc2(0x45e)](_0x33c6ef=>{const _0x58fe6f=_0x131bc2;let {scene:_0x185463}=this['_context'];if(this[_0x58fe6f(0x2b3)]){let _0x10b8c2=_0x185463['getObjectIncludeInGroup'](this[_0x58fe6f(0x2b3)]);_0x10b8c2&&_0x10b8c2[_0x58fe6f(0x3c6)](!0x1);}if(_0x33c6ef){let _0x173398=!!_0x33c6ef[_0x58fe6f(0x1ca)],_0x4b4dcf=_0x185463[_0x58fe6f(0x24b)](_0x33c6ef[_0x58fe6f(0x246)]);_0x4b4dcf&&(_0x4b4dcf['setEditing'](_0x173398),this[_0x58fe6f(0x2b3)]=_0x33c6ef[_0x58fe6f(0x246)]),this['_contextService']['setContextValue'](a['FOCUSING_SHAPE_TEXT_EDITOR'],_0x173398);}else this[_0x58fe6f(0x2b3)]=null,this['_contextService']['setContextValue'](a[_0x58fe6f(0x3ea)],!0x1);}));}};gt=A([k(0x1,(0x0,a[_0x5c10b7(0x25d)])(a['Injector'])),k(0x2,(0x0,a[_0x5c10b7(0x25d)])(H)),k(0x3,s['IDrawingManagerService']),k(0x4,a['IContextService']),k(0x5,(0x0,a[_0x5c10b7(0x25d)])(i[_0x5c10b7(0x1bf)]))],gt);var _t=class extends gt{[_0x5c10b7(0x3da)](){const _0x11f2ee=_0x5c10b7;let {scene:_0x27a8ab}=this[_0x11f2ee(0x3b1)],_0x5e808d=this[_0x11f2ee(0x412)][_0x11f2ee(0x410)](e[_0x11f2ee(0x28a)]);this[_0x11f2ee(0x1c0)](_0x27a8ab['onDblclick$'][_0x11f2ee(0x3e9)](_0x23c2ff=>{const _0x579f1c=_0x11f2ee;let {offsetX:_0x2d1715,offsetY:_0x19e454}=_0x23c2ff,_0x5a5c74=_0x27a8ab[_0x579f1c(0x375)](c[_0x579f1c(0x327)][_0x579f1c(0x1fd)]([_0x2d1715,_0x19e454]));if(!(_0x5a5c74 instanceof D))return;let _0x4055da=this['_sheetsShapeService'][_0x579f1c(0x305)](_0x5a5c74[_0x579f1c(0x2c6)],_0x5a5c74[_0x579f1c(0x2b9)],_0x5a5c74['shapeId']);(0x0,n['isConnectorShape'])(this[_0x579f1c(0x3d9)]['getShapeType'](_0x5a5c74[_0x579f1c(0x2c6)],_0x5a5c74['subUnitId'],_0x5a5c74[_0x579f1c(0x3c8)]))||_0x4055da!=null&&_0x4055da[_0x579f1c(0x3dd)]()[_0x579f1c(0x3ca)]||_0x5e808d[_0x579f1c(0x30b)](_0x579f1c(0x455),{'hostType':a['UniverInstanceType']['UNIVER_SHEET'],'unitId':_0x5a5c74['unitId'],'subUnitId':_0x5a5c74['subUnitId'],'shapeId':_0x5a5c74[_0x579f1c(0x3c8)]});}));}};const vt={...rt};let U=class extends a[_0x5c10b7(0x374)]{constructor(_0x356fb2,_0x4555b8,_0x25a32e,_0x506fa9,_0x579842,_0x2ac779,_0x5673b4,_0x223618){const _0x2d2512=_0x5c10b7;super(),this[_0x2d2512(0x28d)]=_0x356fb2,this[_0x2d2512(0x3d9)]=_0x4555b8,this[_0x2d2512(0x3f0)]=_0x25a32e,this[_0x2d2512(0x2ac)]=_0x506fa9,this[_0x2d2512(0x40b)]=_0x579842,this[_0x2d2512(0x4da)]=_0x2ac779,this[_0x2d2512(0x33f)]=_0x5673b4,this[_0x2d2512(0x1bc)]=_0x223618,E(this,_0x2d2512(0x36e),null),this[_0x2d2512(0x28d)][_0x2d2512(0x348)](vt),this[_0x2d2512(0x419)](),this['disposeWithMe'](this[_0x2d2512(0x1bc)][_0x2d2512(0x4c1)][_0x2d2512(0x45e)](_0x142c75=>{_0x142c75&&this['_clearFocusedShape']();}));}[_0x5c10b7(0x2db)](){const _0x54ff88=_0x5c10b7;this['_shapePopupMenuDisposable']||=this[_0x54ff88(0x1c0)]((0x0,e['bindRenderTransformerLifecycle'])(this[_0x54ff88(0x33f)],a[_0x54ff88(0x1c5)][_0x54ff88(0x353)],_0x4cabe9=>this[_0x54ff88(0x2fc)](_0x4cabe9)));}['_registerFeatureMenu'](){const _0x4dc6d7=_0x5c10b7;this[_0x4dc6d7(0x40b)]['registerFeatureMenu'](a[_0x4dc6d7(0x2a4)]['DRAWING_SHAPE'],(_0x5df6f5,_0x2f0575,_0x2a061e,_0x58988b)=>{const _0x33fd71=_0x4dc6d7;let _0x4654a7=this[_0x33fd71(0x3d9)][_0x33fd71(0x383)](_0x5df6f5,_0x2f0575,_0x2a061e),_0x45414d=this[_0x33fd71(0x3d9)][_0x33fd71(0x415)](_0x5df6f5,_0x2f0575,_0x2a061e),_0xe42462=_0x4654a7!==void 0x0&&!(0x0,n[_0x33fd71(0x2b0)])(_0x4654a7)&&!(_0x45414d!=null&&_0x45414d[_0x33fd71(0x3ca)]);return[{'label':_0x33fd71(0x314),'index':0x0,'commandId':st['id'],'commandParams':{'unitId':_0x5df6f5,'subUnitId':_0x2f0575,'drawingId':_0x2a061e,'mode':_0x33fd71(0x411)},'disable':!0x1},..._0xe42462?[{'label':'sheets-shape-ui.editText','index':0x1,'commandId':st['id'],'commandParams':{'unitId':_0x5df6f5,'subUnitId':_0x2f0575,'drawingId':_0x2a061e,'mode':_0x33fd71(0x455)},'disable':!0x1}]:[],{'label':_0x33fd71(0x414),'index':0x2,'commandId':m[_0x33fd71(0x1ee)]['id'],'commandParams':{'unitId':_0x5df6f5,'drawings':[{'unitId':_0x5df6f5,'subUnitId':_0x2f0575,'drawingId':_0x2a061e,'drawingType':_0x58988b}]},'disable':!0x1},{'label':_0x33fd71(0x3c1),'index':0x3,'commandId':i[_0x33fd71(0x2cd)]['id'],'commandParams':{'unitId':_0x5df6f5,'subUnitId':_0x2f0575,'shapeId':_0x2a061e,'flipH':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.flipVertical','index':0x4,'commandId':i[_0x33fd71(0x2cd)]['id'],'commandParams':{'unitId':_0x5df6f5,'subUnitId':_0x2f0575,'shapeId':_0x2a061e,'flipV':!0x0},'disable':!0x1}];},'sheets-shape-ui.title');}[_0x5c10b7(0x2fc)](_0x3f6238){const _0x14a16a=_0x5c10b7;let _0x5ac077=new a['DisposableCollection'](),_0x139b5d=null,_0xb02b7c=()=>{const _0x1c5d3a=_0x1d07;if(!_0x139b5d)return;let _0x48e94e=this[_0x1c5d3a(0x2ac)][_0x1c5d3a(0x3ff)](),_0x1eea5e=_0x48e94e[_0x1c5d3a(0x313)]===0x0||_0x48e94e[_0x1c5d3a(0x313)]===0x1&&_0x48e94e[_0x1c5d3a(0x2f2)](_0x55f69c=>_0x55f69c[_0x1c5d3a(0x2c6)]===(_0x139b5d==null?void 0x0:_0x139b5d[_0x1c5d3a(0x2c6)])&&_0x55f69c[_0x1c5d3a(0x2b9)]===(_0x139b5d==null?void 0x0:_0x139b5d[_0x1c5d3a(0x2b9)])&&_0x55f69c[_0x1c5d3a(0x2de)]===(_0x139b5d==null?void 0x0:_0x139b5d[_0x1c5d3a(0x2de)]));_0x139b5d=null,_0x1eea5e&&(this[_0x1c5d3a(0x4da)][_0x1c5d3a(0x46a)](a['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x1c5d3a(0x2ac)][_0x1c5d3a(0x1fe)](null));};return _0x5ac077[_0x14a16a(0x1b5)](_0x3f6238['createControl$'][_0x14a16a(0x45e)](()=>{const _0x428717=_0x14a16a;let _0x36627d=_0x3f6238[_0x428717(0x233)]();if(_0x36627d['size']>0x1){_0xb02b7c();return;}let _0x45869f=_0x36627d[_0x428717(0x364)]()[_0x428717(0x295)]()[_0x428717(0x1ed)];if(!_0x45869f){_0xb02b7c();return;}let _0x5a25c6=this[_0x428717(0x2ac)][_0x428717(0x49f)](_0x45869f['oKey']);if(!_0x5a25c6||_0x5a25c6[_0x428717(0x1e3)]!==a['DrawingTypeEnum'][_0x428717(0x2bd)]){_0xb02b7c();return;}let {unitId:_0x2b604d,subUnitId:_0x528360,drawingId:_0x44292c}=_0x5a25c6;_0x139b5d={'unitId':_0x2b604d,'subUnitId':_0x528360,'drawingId':_0x44292c},this[_0x428717(0x4da)][_0x428717(0x46a)](a[_0x428717(0x237)],!0x0),this['_drawingManagerService'][_0x428717(0x3ff)]()['find'](_0xf59721=>_0xf59721[_0x428717(0x2c6)]===_0x2b604d&&_0xf59721[_0x428717(0x2b9)]===_0x528360&&_0xf59721[_0x428717(0x2de)]===_0x44292c)||this[_0x428717(0x2ac)][_0x428717(0x1fe)]([{'unitId':_0x2b604d,'subUnitId':_0x528360,'drawingId':_0x44292c}]);})),_0x5ac077['add'](_0x3f6238['clearControl$'][_0x14a16a(0x45e)](()=>{_0xb02b7c();})),(0x0,a[_0x14a16a(0x3e8)])(()=>{_0x5ac077['dispose'](),_0xb02b7c();});}['_clearFocusedShape'](){const _0x278dce=_0x5c10b7;this[_0x278dce(0x4da)][_0x278dce(0x46a)](a[_0x278dce(0x237)],!0x1),this[_0x278dce(0x2ac)]['focusDrawing'](null);}};U=A([k(0x0,t[_0x5c10b7(0x3d5)]),k(0x1,(0x0,a['Inject'])(i[_0x5c10b7(0x1bf)])),k(0x2,a[_0x5c10b7(0x393)]),k(0x3,s[_0x5c10b7(0x335)]),k(0x4,(0x0,a[_0x5c10b7(0x25d)])(l[_0x5c10b7(0x413)])),k(0x5,a[_0x5c10b7(0x1f6)]),k(0x6,c[_0x5c10b7(0x184)]),k(0x7,(0x0,a['Inject'])(H))],U);function yt(_0x338f48,_0x19aff4,_0x2ffddc,_0x1d82a2){const _0x1500bf=_0x5c10b7;let _0x55dfba=(0x0,s[_0x1500bf(0x402)])(_0x338f48,_0x19aff4,_0x2ffddc),_0x5e113a=[];for(let _0x2df35f of _0x19aff4){let _0x552f6e=_0x55dfba['idMap'][_0x1500bf(0x410)](_0x2df35f['drawingId']),_0x3ce21a=_0x1d82a2(_0x2df35f);_0x552f6e&&_0x3ce21a&&_0x5e113a[_0x1500bf(0x27a)]({'targetShapeId':_0x552f6e,'source':_0x3ce21a});}return _0x5e113a;}let W=class extends a[_0x5c10b7(0x374)]{constructor(_0x3dce21,_0x312ea0,_0x49c7e4,_0x124b2e){const _0x79c0ac=_0x5c10b7;super(),this[_0x79c0ac(0x287)]=_0x3dce21,this['_sheetInterceptorService']=_0x312ea0,this[_0x79c0ac(0x253)]=_0x49c7e4,this[_0x79c0ac(0x3d9)]=_0x124b2e,this[_0x79c0ac(0x3f8)]();}[_0x5c10b7(0x3f8)](){const _0x1501c8=_0x5c10b7;this[_0x1501c8(0x1c0)](this['_sheetInterceptorService'][_0x1501c8(0x3a9)]({'getMutations':_0x5584e3=>{const _0x420bff=_0x1501c8;if(_0x5584e3['id']===o['RemoveSheetCommand']['id']){let _0x52ca3a=(0x0,o[_0x420bff(0x465)])(this['_univerInstanceService'],_0x5584e3[_0x420bff(0x2f7)]);if(!_0x52ca3a)return{'redos':[],'undos':[]};let {unitId:_0x2ebda7,subUnitId:_0x44f527}=_0x52ca3a,_0x36112b=this[_0x420bff(0x253)][_0x420bff(0x3e7)](_0x2ebda7,_0x44f527),_0x100017=Object[_0x420bff(0x364)](_0x36112b)['filter'](_0x5da7c8=>_0x5da7c8[_0x420bff(0x1e3)]===a[_0x420bff(0x2a4)][_0x420bff(0x2bd)]);if(_0x100017[_0x420bff(0x313)]===0x0)return{'redos':[],'undos':[]};let _0x43ce66=[],_0x30a79d=[];for(let _0x470f1e=0x0;_0x470f1e<_0x100017[_0x420bff(0x313)];_0x470f1e++){let _0x54583d=_0x100017[_0x470f1e],_0x3c353a=this[_0x420bff(0x3d9)][_0x420bff(0x305)](_0x54583d['unitId'],_0x54583d['subUnitId'],_0x54583d[_0x420bff(0x2de)]);_0x3c353a&&(_0x43ce66[_0x420bff(0x27a)]({'id':i[_0x420bff(0x3c5)]['id'],'params':{'unitId':_0x2ebda7,'subUnitId':_0x44f527,'shapeId':_0x54583d[_0x420bff(0x2de)]}}),_0x30a79d['push']({'id':i[_0x420bff(0x394)]['id'],'params':{'unitId':_0x2ebda7,'subUnitId':_0x44f527,'shapeId':_0x54583d[_0x420bff(0x2de)],'shapeType':_0x3c353a[_0x420bff(0x358)](),'shapeData':JSON[_0x420bff(0x208)](JSON['stringify'](_0x3c353a[_0x420bff(0x3dd)]()))}}));}return{'redos':_0x43ce66,'undos':_0x30a79d};}if(_0x5584e3['id']===o[_0x420bff(0x337)]['id']){let {unitId:_0x1efa36,subUnitId:_0x223056,targetSubUnitId:_0x3c2870,copyContext:_0x2d7452}=_0x5584e3['params'];if(!_0x1efa36||!_0x223056||!_0x3c2870)return{'redos':[],'undos':[]};let _0x507150=this[_0x420bff(0x253)][_0x420bff(0x3e7)](_0x1efa36,_0x223056),_0x5530f4=Object[_0x420bff(0x364)](_0x507150)[_0x420bff(0x482)](_0x56660f=>_0x56660f['drawingType']===a['DrawingTypeEnum'][_0x420bff(0x2bd)]);if(_0x5530f4[_0x420bff(0x313)]===0x0)return{'redos':[],'undos':[]};let _0x2cc32f=yt(_0x2d7452,_0x5530f4,{'unitId':_0x1efa36,'sourceSubUnitId':_0x223056,'targetSubUnitId':_0x3c2870},_0x2fb262=>{const _0x40744d=_0x420bff;let _0x255128=this[_0x40744d(0x3d9)][_0x40744d(0x305)](_0x2fb262[_0x40744d(0x2c6)],_0x2fb262[_0x40744d(0x2b9)],_0x2fb262[_0x40744d(0x2de)]);if(_0x255128)return{'shapeType':_0x255128[_0x40744d(0x358)](),'shapeData':JSON[_0x40744d(0x208)](JSON[_0x40744d(0x4e0)](_0x255128[_0x40744d(0x3dd)]()))};}),_0x158f30=[],_0xd99567=[];for(let {targetShapeId:_0x51f67c,source:_0x4099fd}of _0x2cc32f)_0x158f30[_0x420bff(0x27a)]({'id':i[_0x420bff(0x394)]['id'],'params':{'unitId':_0x1efa36,'subUnitId':_0x3c2870,'shapeId':_0x51f67c,'shapeType':_0x4099fd[_0x420bff(0x17e)],'shapeData':_0x4099fd[_0x420bff(0x2a5)]}}),_0xd99567[_0x420bff(0x27a)]({'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x1efa36,'subUnitId':_0x3c2870,'shapeId':_0x51f67c}});return{'redos':_0x158f30,'undos':_0xd99567};}return{'redos':[],'undos':[]};}}));}};W=A([k(0x0,(0x0,a['Inject'])(a['IUniverInstanceService'])),k(0x1,(0x0,a[_0x5c10b7(0x25d)])(o[_0x5c10b7(0x368)])),k(0x2,(0x0,a[_0x5c10b7(0x25d)])(m[_0x5c10b7(0x427)])),k(0x3,(0x0,a[_0x5c10b7(0x25d)])(i[_0x5c10b7(0x1bf)]))],W);let G=class extends a[_0x5c10b7(0x374)]{constructor(_0xa61a6d,_0x3cae06,_0x5061c2,_0x2a0e53,_0x3a4449,_0x4f97fc){const _0x4a61da=_0x5c10b7;super(),this[_0x4a61da(0x3f0)]=_0xa61a6d,this['_renderManagerService']=_0x3cae06,this[_0x4a61da(0x2ac)]=_0x5061c2,this[_0x4a61da(0x19a)]=_0x2a0e53,this[_0x4a61da(0x3fd)]=_0x3a4449,this[_0x4a61da(0x2d4)]=_0x4f97fc,E(this,'_insertingShapeKeys',new Set()),this[_0x4a61da(0x3fa)]();}[_0x5c10b7(0x3fa)](){const _0x395d95=_0x5c10b7;this[_0x395d95(0x2cf)](),this[_0x395d95(0x1b8)](),this[_0x395d95(0x3bd)]();}['_drawingAddListener'](){const _0x598c46=_0x5c10b7;this[_0x598c46(0x1c0)](this[_0x598c46(0x2ac)][_0x598c46(0x2a8)]['subscribe'](_0xdfbf33=>{this['_insertShapes'](_0xdfbf33);}));}[_0x5c10b7(0x1b8)](){const _0x4c1705=_0x5c10b7;this[_0x4c1705(0x1c0)](this[_0x4c1705(0x3f0)][_0x4c1705(0x4d1)]((_0x99fa3a,_0x2d09d4)=>{const _0x4962f1=_0x4c1705;if(_0x99fa3a['id']===i[_0x4962f1(0x186)]['id']){let {unitId:_0x23d18b,subUnitId:_0x46156a,shapeId:_0x246bc0}=_0x99fa3a[_0x4962f1(0x2f7)],_0x14d3d6=this['_getSceneAndTransformerByDrawingSearch'](_0x23d18b),_0x3e6dbf=(0x0,s[_0x4962f1(0x4bd)])({'unitId':_0x23d18b,'subUnitId':_0x46156a,'drawingId':_0x246bc0}),_0x118a08=_0x14d3d6==null?void 0x0:_0x14d3d6[_0x4962f1(0x48b)][_0x4962f1(0x24b)](_0x3e6dbf);_0x118a08&&(this[_0x4962f1(0x2d4)]['refreshShapeFillImage'](_0x118a08),this['_sheetDrawingShapeRenderController'][_0x4962f1(0x481)](_0x118a08,{'unitId':_0x23d18b,'subUnitId':_0x46156a,'shapeId':_0x246bc0}),_0x118a08[_0x4962f1(0x461)](!0x0));return;}if(_0x99fa3a['id']===i[_0x4962f1(0x394)]['id']){var _0xaa5124;let {unitId:_0x39c575,subUnitId:_0x4d5fe4,shapeId:_0x4d3fe5}=_0x99fa3a[_0x4962f1(0x2f7)],_0xf41111=this['_getSceneAndTransformerByDrawingSearch'](_0x39c575);if(_0xf41111==null)return;let {scene:_0x4eadfa}=_0xf41111,_0x51e556=(0x0,s[_0x4962f1(0x4bd)])({'unitId':_0x39c575,'subUnitId':_0x4d5fe4,'drawingId':_0x4d3fe5}),_0x3b8372=_0x4eadfa[_0x4962f1(0x24b)](_0x51e556);if(!((_0xaa5124=this[_0x4962f1(0x33f)][_0x4962f1(0x30f)](_0x39c575))!=null&&_0xaa5124[_0x4962f1(0x300)](l[_0x4962f1(0x31c)])[_0x4962f1(0x29c)](_0x4d5fe4)))return!0x1;if(_0x3b8372)return;if(_0x2d09d4!=null&&_0x2d09d4[_0x4962f1(0x193)]){queueMicrotask(()=>{const _0x408624=_0x4962f1;this[_0x408624(0x37c)]||this[_0x408624(0x25c)]([{'unitId':_0x39c575,'subUnitId':_0x4d5fe4,'drawingId':_0x4d3fe5}]);});return;}this[_0x4962f1(0x25c)]([{'unitId':_0x39c575,'subUnitId':_0x4d5fe4,'drawingId':_0x4d3fe5}]);}}));}[_0x5c10b7(0x3bd)](){const _0xe2fa8b=_0x5c10b7;this[_0xe2fa8b(0x1c0)](this[_0xe2fa8b(0x2ac)][_0xe2fa8b(0x1fc)][_0xe2fa8b(0x45e)](_0x1e3652=>{const _0x266fd2=_0xe2fa8b;_0x1e3652[_0x266fd2(0x3cd)](_0x537770=>{const _0x34a573=_0x266fd2;let {unitId:_0x4e267d,subUnitId:_0x2f5921,drawingId:_0x578c4a}=_0x537770,_0x498402=this[_0x34a573(0x2ac)][_0x34a573(0x341)](_0x537770);if(_0x498402==null)return;let {transform:_0x18145b,drawingType:_0x583b3a,srcRect:_0x3ba706,prstGeom:_0x4da65d}=_0x498402;if(_0x583b3a!==a['DrawingTypeEnum'][_0x34a573(0x2bd)])return;let _0x24db18=this[_0x34a573(0x33e)](_0x4e267d);if(_0x24db18==null)return;let {scene:_0x38f4e6,transformer:_0xe082c}=_0x24db18;if(_0x18145b==null)return!0x0;let _0x3e0a84=(0x0,s[_0x34a573(0x4bd)])({'unitId':_0x4e267d,'subUnitId':_0x2f5921,'drawingId':_0x578c4a}),_0x50dd21=_0x38f4e6['getObjectIncludeInGroup'](_0x3e0a84);if(_0x50dd21==null)return!0x0;_0x50dd21[_0x34a573(0x377)](_0x3ba706),_0x50dd21[_0x34a573(0x20c)](_0x4da65d);});}));}[_0x5c10b7(0x25c)](_0x1616af){const _0x50dc28=_0x5c10b7;for(let _0x43309f of _0x1616af){var _0xe1e5cc;let {unitId:_0x566b5d,subUnitId:_0x1e9c18,drawingId:_0x4a5c3f}=_0x43309f,_0x5ade75=this['_getSceneAndTransformerByDrawingSearch'](_0x566b5d),_0x32b9fa=(_0xe1e5cc=(0x0,d[_0x50dc28(0x475)])(this[_0x50dc28(0x19a)],_0x566b5d))==null?void 0x0:_0xe1e5cc[_0x50dc28(0x2b9)];if(_0x5ade75==null||_0x32b9fa!==_0x1e9c18)return;let _0x1864f4=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x566b5d,'subUnitId':_0x1e9c18,'drawingId':_0x4a5c3f});if(this['_insertingShapeKeys']['has'](_0x1864f4)||_0x5ade75[_0x50dc28(0x48b)][_0x50dc28(0x24b)](_0x1864f4)!=null)return;let _0xfdacb9=this['_drawingManagerService'][_0x50dc28(0x341)](_0x43309f);if(_0xfdacb9==null||_0xfdacb9[_0x50dc28(0x1e3)]!==a[_0x50dc28(0x2a4)][_0x50dc28(0x2bd)])return;let _0x5dd3c9=_0xfdacb9[_0x50dc28(0x2f0)]||{};if((0x0,n[_0x50dc28(0x2b0)])(_0x5dd3c9['shapeType'])){let _0x266b31=_0xfdacb9['transform'];_0x266b31&&(_0xfdacb9[_0x50dc28(0x44b)]={..._0x266b31,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x50dc28(0x26d)][_0x50dc28(0x1b5)](_0x1864f4);try{this[_0x50dc28(0x2d4)][_0x50dc28(0x346)](_0xfdacb9,_0x5ade75['scene']);}finally{this[_0x50dc28(0x26d)][_0x50dc28(0x47e)](_0x1864f4);}queueMicrotask(()=>{const _0x5b7790=_0x50dc28;if(this['_disposed'])return;let _0x21f757=(0x0,s[_0x5b7790(0x4bd)])(_0x43309f);if(!_0x5ade75[_0x5b7790(0x48b)][_0x5b7790(0x24b)](_0x21f757))return;let _0x444d54=this[_0x5b7790(0x2ac)][_0x5b7790(0x341)](_0x43309f);_0x444d54&&this['_drawingManagerService'][_0x5b7790(0x4b4)]([_0x444d54]);});}}[_0x5c10b7(0x33e)](_0xdd41a5){const _0x143c6e=_0x5c10b7;if(_0xdd41a5==null)return;let _0x4bfe21=this[_0x143c6e(0x33f)][_0x143c6e(0x30f)](_0xdd41a5),_0x616406=_0x4bfe21==null?void 0x0:_0x4bfe21[_0x143c6e(0x48b)];return _0x616406==null?null:{'scene':_0x616406,'transformer':_0x616406[_0x143c6e(0x325)]()};}};G=A([k(0x0,a[_0x5c10b7(0x393)]),k(0x1,c[_0x5c10b7(0x184)]),k(0x2,s[_0x5c10b7(0x335)]),k(0x3,a[_0x5c10b7(0x1f7)]),k(0x4,(0x0,a[_0x5c10b7(0x25d)])(d[_0x5c10b7(0x2eb)])),k(0x5,(0x0,a['Inject'])(j))],G);const bt={'normal':{'fill':n[_0x5c10b7(0x1fb)][_0x5c10b7(0x45c)],'stroke':n[_0x5c10b7(0x1fb)][_0x5c10b7(0x1d1)],'strokeWidth':n[_0x5c10b7(0x1fb)][_0x5c10b7(0x310)]},'highlighted':{'fill':'#4285f4','stroke':_0x5c10b7(0x4a1),'strokeWidth':0x2}};var xt=class extends c[_0x5c10b7(0x2cc)]{constructor(_0x405477,_0x1724b9){const _0x597223=_0x5c10b7;super(_0x405477,_0x1724b9),E(this,_0x597223(0x38b),''),E(this,_0x597223(0x459),-0x1),E(this,'_unitId',''),E(this,_0x597223(0x26f),''),E(this,_0x597223(0x2b4),!0x1),_0x1724b9&&this[_0x597223(0x25b)](_0x1724b9);}[_0x5c10b7(0x1e6)](){const _0x569c7c=_0x5c10b7;return{'unitId':this[_0x569c7c(0x2a2)],'subUnitId':this[_0x569c7c(0x26f)],'shapeId':this[_0x569c7c(0x38b)],'cxnIndex':this[_0x569c7c(0x459)]};}['setHighlighted'](_0x21961c){const _0x509bfe=_0x5c10b7;this[_0x509bfe(0x2b4)]!==_0x21961c&&(this[_0x509bfe(0x2b4)]=_0x21961c,this[_0x509bfe(0x461)](!0x0));}[_0x5c10b7(0x2f9)](){const _0x5e8503=_0x5c10b7;return this[_0x5e8503(0x2b4)];}[_0x5c10b7(0x25b)](_0x38d5cf){const _0x3713ad=_0x5c10b7;_0x38d5cf[_0x3713ad(0x288)]!==void 0x0&&(this[_0x3713ad(0x38b)]=_0x38d5cf[_0x3713ad(0x288)]),_0x38d5cf['cxnIndex']!==void 0x0&&(this[_0x3713ad(0x459)]=_0x38d5cf['cxnIndex']),_0x38d5cf[_0x3713ad(0x2c6)]!==void 0x0&&(this['_unitId']=_0x38d5cf[_0x3713ad(0x2c6)]),_0x38d5cf['subUnitId']!==void 0x0&&(this[_0x3713ad(0x26f)]=_0x38d5cf[_0x3713ad(0x2b9)]),_0x38d5cf[_0x3713ad(0x2f9)]!==void 0x0&&(this['_isHighlighted']=_0x38d5cf[_0x3713ad(0x2f9)]),this[_0x3713ad(0x360)]({'width':_0x38d5cf[_0x3713ad(0x3d4)]??n[_0x3713ad(0x1fb)][_0x3713ad(0x1c6)]*0x2,'height':_0x38d5cf[_0x3713ad(0x2c3)]??n[_0x3713ad(0x1fb)][_0x3713ad(0x1c6)]*0x2});}['_draw'](_0x1a8a97){const _0x566b30=_0x5c10b7;let _0xfb21f2=this[_0x566b30(0x2b4)]?bt[_0x566b30(0x4de)]:bt[_0x566b30(0x1d4)];c[_0x566b30(0x191)][_0x566b30(0x308)](_0x1a8a97,{'radius':n[_0x566b30(0x1fb)][_0x566b30(0x1c6)],'fill':_0xfb21f2[_0x566b30(0x1dc)],'stroke':_0xfb21f2[_0x566b30(0x458)],'strokeWidth':_0xfb21f2[_0x566b30(0x1c7)],'evented':!0x0});}};let K=class extends a['Disposable']{constructor(_0x58d933,_0x2e07e1,_0x309446,_0x3d9b7d){const _0x22ec0e=_0x5c10b7;super(),this[_0x22ec0e(0x3b1)]=_0x58d933,this['_renderManagerService']=_0x2e07e1,this[_0x22ec0e(0x2ac)]=_0x309446,this[_0x22ec0e(0x3d9)]=_0x3d9b7d,E(this,_0x22ec0e(0x2bf),[]),E(this,'_activeTargetShapeId',null),E(this,_0x22ec0e(0x35b),-0x1),E(this,_0x22ec0e(0x443),null),E(this,'_unitId',''),E(this,'_subUnitId',''),E(this,'_draggingConnectorId',null);}[_0x5c10b7(0x435)](_0x2ebee5,_0x4bc903,_0xddd816,_0x38ef32){const _0x52a228=_0x5c10b7;this[_0x52a228(0x443)]=_0x2ebee5,this['_unitId']=_0x4bc903,this[_0x52a228(0x26f)]=_0xddd816,this[_0x52a228(0x463)]=_0x38ef32;}[_0x5c10b7(0x3b2)](_0x26e4b5){const _0x5f5b6a=_0x5c10b7;if(!this[_0x5f5b6a(0x443)])return null;let _0x38c250=this['_findShapeAtPoint'](_0x26e4b5);return _0x38c250?(this[_0x5f5b6a(0x4e9)]!==_0x38c250['shapeId']&&(this[_0x5f5b6a(0x4a4)](),this[_0x5f5b6a(0x37d)](_0x38c250[_0x5f5b6a(0x3c8)],_0x38c250[_0x5f5b6a(0x4cf)]),this[_0x5f5b6a(0x4e9)]=_0x38c250[_0x5f5b6a(0x3c8)]),this[_0x5f5b6a(0x4d3)](_0x26e4b5)):(this['_activeTargetShapeId']!==null&&(this['_clearConnectionSites'](),this[_0x5f5b6a(0x4e9)]=null),null);}['endConnectionDetection'](){const _0x5a9dde=_0x5c10b7;this[_0x5a9dde(0x4a4)](),this[_0x5a9dde(0x443)]=null,this[_0x5a9dde(0x4e9)]=null,this[_0x5a9dde(0x35b)]=-0x1,this[_0x5a9dde(0x463)]=null;}[_0x5c10b7(0x190)](){const _0x359756=_0x5c10b7;return this[_0x359756(0x4e9)]===null||this[_0x359756(0x35b)]<0x0?null:{'shapeId':this[_0x359756(0x4e9)],'cxnIndex':this[_0x359756(0x35b)]};}['_findShapeAtPoint'](_0x410c7c){const _0x345cbe=_0x5c10b7;let _0x379a92=this['_drawingManagerService']['getDrawingData'](this['_unitId'],this[_0x345cbe(0x26f)]);for(let _0x3df04c of Object[_0x345cbe(0x3e0)](_0x379a92)){if(_0x3df04c===this['_draggingConnectorId']||_0x379a92[_0x3df04c][_0x345cbe(0x1e3)]!==a[_0x345cbe(0x2a4)][_0x345cbe(0x2bd)])continue;let _0x1cfef5=this[_0x345cbe(0x3d9)][_0x345cbe(0x305)](this[_0x345cbe(0x2a2)],this[_0x345cbe(0x26f)],_0x3df04c);if(!_0x1cfef5||(0x0,n['isConnectorShape'])(_0x1cfef5['getShapeType']())||_0x1cfef5[_0x345cbe(0x339)]()['length']===0x0||!this[_0x345cbe(0x443)])continue;let _0x553006=(0x0,s[_0x345cbe(0x4bd)])({'unitId':this[_0x345cbe(0x2a2)],'subUnitId':this[_0x345cbe(0x26f)],'drawingId':_0x3df04c}),_0x3e3262=this[_0x345cbe(0x443)][_0x345cbe(0x24b)](_0x553006);if(!_0x3e3262)continue;let {left:_0x4c46cc,top:_0x42e1e7,width:_0x229299,height:_0xaa3f2a}=_0x3e3262[_0x345cbe(0x226)](),_0x1d3c58=_0x4c46cc+_0x229299/0x2,_0xc2922f=_0x42e1e7+_0xaa3f2a/0x2,_0x170a2a=_0x3e3262[_0x345cbe(0x44b)]['getMatrix'](),_0x3ee697=new c['Transform']([_0x170a2a[0x0],_0x170a2a[0x1],_0x170a2a[0x2],_0x170a2a[0x3],_0x1d3c58,_0xc2922f]),_0x333f03=_0x3e3262[_0x345cbe(0x4c3)](),_0x13dbae=(_0x3e3262[_0x345cbe(0x1cb)]&&(_0x333f03==null?void 0x0:_0x333f03['classType'])===c[_0x345cbe(0x3be)][_0x345cbe(0x48c)]?_0x333f03[_0x345cbe(0x3f2)][_0x345cbe(0x3bf)](_0x3ee697):_0x3ee697)[_0x345cbe(0x242)]()['applyPoint'](_0x410c7c),_0x1bd774=_0x229299/0x2,_0x4938a0=_0xaa3f2a/0x2;if(_0x13dbae['x']>=-_0x1bd774-0x5&&_0x13dbae['x']<=_0x1bd774+0x5&&_0x13dbae['y']>=-_0x4938a0-0x5&&_0x13dbae['y']<=_0x4938a0+0x5)return{'shapeId':_0x3df04c,'shapeModel':_0x1cfef5};}return null;}[_0x5c10b7(0x37d)](_0x127d18,_0x5a3408){const _0x4c22fb=_0x5c10b7;if(!this[_0x4c22fb(0x443)])return;let _0x331914=(0x0,s[_0x4c22fb(0x4bd)])({'unitId':this[_0x4c22fb(0x2a2)],'subUnitId':this[_0x4c22fb(0x26f)],'drawingId':_0x127d18}),_0x367d43=this['_currentScene'][_0x4c22fb(0x24b)](_0x331914);if(!_0x367d43)return;let {left:_0xc2a398,top:_0x24c687,width:_0x1b2613,height:_0x307b62}=_0x367d43[_0x4c22fb(0x226)](),_0xe387f4=_0xc2a398+_0x1b2613/0x2,_0x359caa=_0x24c687+_0x307b62/0x2,_0x2875bb=_0x367d43[_0x4c22fb(0x44b)][_0x4c22fb(0x3f1)](),_0x8d05ca=new c[(_0x4c22fb(0x17a))]([_0x2875bb[0x0],_0x2875bb[0x1],_0x2875bb[0x2],_0x2875bb[0x3],_0xe387f4,_0x359caa]),_0xa806dd=_0x367d43[_0x4c22fb(0x4c3)](),_0x20f09d=_0x367d43['isInGroup']&&(_0xa806dd==null?void 0x0:_0xa806dd[_0x4c22fb(0x355)])===c[_0x4c22fb(0x3be)]['GROUP']?_0xa806dd[_0x4c22fb(0x3f2)]['multiply'](_0x8d05ca):_0x8d05ca;_0x5a3408[_0x4c22fb(0x2bc)]({'width':_0x1b2613,'height':_0x307b62});let _0x5cd34=_0x5a3408[_0x4c22fb(0x339)]();for(let _0x11b490 of _0x5cd34){let _0x111c13=_0x11b490['x']-_0x1b2613/0x2,_0x1e893a=_0x11b490['y']-_0x307b62/0x2,_0x109328=_0x20f09d[_0x4c22fb(0x4ad)]({'x':_0x111c13,'y':_0x1e893a}),_0x3992e4=_0x109328['x'],_0x50313d=_0x109328['y'],_0x9e2d06=new xt(_0x4c22fb(0x33d)+_0x127d18+'-'+_0x11b490['index'],{'left':_0x3992e4-n[_0x4c22fb(0x1fb)][_0x4c22fb(0x1c6)],'top':_0x50313d-n[_0x4c22fb(0x1fb)][_0x4c22fb(0x1c6)],'targetShapeId':_0x127d18,'cxnIndex':_0x11b490['index'],'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'width':n[_0x4c22fb(0x1fb)][_0x4c22fb(0x1c6)]*0x2,'height':n[_0x4c22fb(0x1fb)][_0x4c22fb(0x1c6)]*0x2,'zIndex':c[_0x4c22fb(0x1a6)]+0x2,'evented':!0x1});this[_0x4c22fb(0x2bf)][_0x4c22fb(0x27a)](_0x9e2d06),this[_0x4c22fb(0x443)][_0x4c22fb(0x34b)](_0x9e2d06,c['DRAWING_OBJECT_LAYER_INDEX']+0x2);}}['_findNearestConnectionSite'](_0x42d014){const _0x3513d8=_0x5c10b7;let _0x3dac47=null,_0x1c8d97=0x1/0x0,_0x35dd22=null;for(let _0x445ece of this[_0x3513d8(0x2bf)]){let _0x20d226=_0x445ece['left']+n[_0x3513d8(0x1fb)][_0x3513d8(0x1c6)],_0x36d074=_0x445ece['top']+n[_0x3513d8(0x1fb)][_0x3513d8(0x1c6)],_0xf5166c=_0x42d014['x']-_0x20d226,_0xa0007a=_0x42d014['y']-_0x36d074,_0x377b07=Math['sqrt'](_0xf5166c*_0xf5166c+_0xa0007a*_0xa0007a);_0x377b07<_0x1c8d97&&(_0x1c8d97=_0x377b07,_0x3dac47=_0x445ece,_0x35dd22={'x':_0x20d226,'y':_0x36d074});}let _0x451e94=_0x1c8d97<=0xa&&_0x3dac47?_0x3dac47[_0x3513d8(0x1e6)]()[_0x3513d8(0x35e)]:-0x1;if(_0x451e94!==this['_highlightedSiteIndex']){for(let _0x2d06cb of this['_connectionSiteObjects']){let _0x1f5657=_0x2d06cb['getConnectionInfo']();_0x2d06cb['setHighlighted'](_0x1f5657[_0x3513d8(0x35e)]===_0x451e94);}this[_0x3513d8(0x35b)]=_0x451e94;}if(_0x1c8d97<=0xa&&_0x3dac47&&_0x35dd22){let _0x5524d3=_0x3dac47[_0x3513d8(0x1e6)](),_0x5a8299=this[_0x3513d8(0x34a)](_0x5524d3[_0x3513d8(0x3c8)],_0x5524d3[_0x3513d8(0x35e)]);return{'shapeId':_0x5524d3[_0x3513d8(0x3c8)],'cxnIndex':_0x5524d3[_0x3513d8(0x35e)],'unitId':_0x5524d3[_0x3513d8(0x2c6)],'subUnitId':_0x5524d3['subUnitId'],'worldPoint':_0x35dd22,'angle':_0x5a8299};}return null;}[_0x5c10b7(0x34a)](_0x52eed1,_0x27a102){const _0xd3b046=_0x5c10b7;let _0xb76f14=this[_0xd3b046(0x3d9)][_0xd3b046(0x305)](this['_unitId'],this[_0xd3b046(0x26f)],_0x52eed1);if(!_0xb76f14)return 0x0;let _0x127305=this['_drawingManagerService'][_0xd3b046(0x341)]({'unitId':this[_0xd3b046(0x2a2)],'subUnitId':this[_0xd3b046(0x26f)],'drawingId':_0x52eed1});if(!(_0x127305!=null&&_0x127305[_0xd3b046(0x44b)]))return 0x0;let {width:_0xc1c0c7=0x0,height:_0x4bc865=0x0,flipX:_0x5f1b41=!0x1,flipY:_0x36983d=!0x1}=_0x127305[_0xd3b046(0x44b)];_0xb76f14[_0xd3b046(0x2bc)]({'width':_0xc1c0c7,'height':_0x4bc865});let _0x3b14cb=_0xb76f14['getConnectionSiteList']()[_0xd3b046(0x31e)](_0x5a010b=>_0x5a010b[_0xd3b046(0x2e1)]===_0x27a102);if(!_0x3b14cb)return 0x0;let _0x54928c=_0x3b14cb[_0xd3b046(0x16f)]/0xea60;return _0x5f1b41&&(_0x54928c=0xb4-_0x54928c),_0x36983d&&(_0x54928c=-_0x54928c),_0x54928c=(_0x54928c%0x168+0x168)%0x168,_0x54928c;}[_0x5c10b7(0x4a4)](){const _0x112128=_0x5c10b7;for(let _0x5289f5 of this[_0x112128(0x2bf)])_0x5289f5['dispose']();this[_0x112128(0x2bf)]=[],this['_highlightedSiteIndex']=-0x1;}['dispose'](){const _0x164961=_0x5c10b7;this[_0x164961(0x4a4)](),super[_0x164961(0x307)]();}};K=A([k(0x1,(0x0,a[_0x5c10b7(0x25d)])(c[_0x5c10b7(0x184)])),k(0x2,(0x0,a[_0x5c10b7(0x25d)])(s[_0x5c10b7(0x335)])),k(0x3,(0x0,a['Inject'])(i[_0x5c10b7(0x1bf)]))],K);let q=class extends a[_0x5c10b7(0x374)]{constructor(_0x514188,_0x3c0903,_0x318814,_0x410c4e,_0x26f665){const _0x59ecb2=_0x5c10b7;super(),this[_0x59ecb2(0x22e)]=_0x514188,this[_0x59ecb2(0x43e)]=_0x3c0903,this['_sheetDrawingService']=_0x318814,this['_shapeService']=_0x410c4e,this[_0x59ecb2(0x4d9)]=_0x26f665,E(this,_0x59ecb2(0x464),void 0x0),this[_0x59ecb2(0x424)](),this['_registerGroupFeaturePasteHook']();}get[_0x5c10b7(0x321)](){const _0x1fbdf2=_0x5c10b7;return this[_0x1fbdf2(0x253)][_0x1fbdf2(0x3ff)]();}[_0x5c10b7(0x390)](){const _0x11fb0c=_0x5c10b7;this['_groupCopyPasteController'][_0x11fb0c(0x231)](({fromUnitId:_0x2606f8,fromSubUnitId:_0x5152d4,toUnitId:_0x481408,toSubUnitId:_0x415043,idMap:_0x5ee696})=>{const _0x4d6508=_0x11fb0c;let _0x50db48=[],_0x148128=[];for(let [_0x2aca3d,_0x2e73c1]of _0x5ee696['entries']()){let _0xd00ab=this['_shapeService'][_0x4d6508(0x305)](_0x2606f8,_0x5152d4,_0x2aca3d);if(!_0xd00ab)continue;let _0x360d9e=_0xd00ab['getShapeType'](),_0x3674b3=JSON[_0x4d6508(0x208)](JSON[_0x4d6508(0x4e0)](_0xd00ab[_0x4d6508(0x3dd)]()));if(_0x3674b3[_0x4d6508(0x3cc)]){var _0x411163,_0x4a623f;let _0x58fa30=(_0x411163=_0x3674b3[_0x4d6508(0x3cc)][_0x4d6508(0x3ac)])==null?void 0x0:_0x411163['shapeId'],_0x153513=(_0x4a623f=_0x3674b3[_0x4d6508(0x3cc)]['to'])==null?void 0x0:_0x4a623f['shapeId'],_0x2157dd=!_0x58fa30||_0x5ee696['has'](_0x58fa30),_0x20315a=!_0x153513||_0x5ee696[_0x4d6508(0x2e0)](_0x153513);_0x2157dd&&_0x58fa30&&_0x3674b3['relation']['from']?_0x3674b3[_0x4d6508(0x3cc)]['from']={..._0x3674b3[_0x4d6508(0x3cc)][_0x4d6508(0x3ac)],'shapeId':_0x5ee696[_0x4d6508(0x410)](_0x58fa30)}:_0x3674b3[_0x4d6508(0x3cc)][_0x4d6508(0x3ac)]=void 0x0,_0x20315a&&_0x153513&&_0x3674b3[_0x4d6508(0x3cc)]['to']?_0x3674b3['relation']['to']={..._0x3674b3[_0x4d6508(0x3cc)]['to'],'shapeId':_0x5ee696['get'](_0x153513)}:_0x3674b3[_0x4d6508(0x3cc)]['to']=void 0x0;}_0x50db48[_0x4d6508(0x27a)]({'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x481408,'subUnitId':_0x415043,'shapeId':_0x2e73c1,'shapeType':_0x360d9e,'shapeData':_0x3674b3}}),_0x148128['push']({'id':i[_0x4d6508(0x3c5)]['id'],'params':{'unitId':_0x481408,'subUnitId':_0x415043,'shapeId':_0x2e73c1}});}return{'redos':_0x50db48,'undos':_0x148128};});}[_0x5c10b7(0x424)](){const _0x47b10c=_0x5c10b7;this[_0x47b10c(0x1c0)](this[_0x47b10c(0x43e)][_0x47b10c(0x37e)]({'id':_0x47b10c(0x266),'onBeforeCopyFocusedObject':(_0x329cd3,_0x4ac52b,_0x113762)=>{const _0x1a1640=_0x47b10c;this[_0x1a1640(0x464)]=null;let _0x4749ce=this[_0x1a1640(0x321)][_0x1a1640(0x482)](_0x5f02bb=>_0x5f02bb['drawingType']===a['DrawingTypeEnum'][_0x1a1640(0x2bd)]);return _0x4749ce[_0x1a1640(0x313)]!==0x0&&(this[_0x1a1640(0x464)]={'unitId':_0x329cd3,'subUnitId':_0x4ac52b,'copyType':_0x113762,'drawings':_0x4749ce},!0x0);},'onBeforeCopy':(_0x30c9f7,_0x4f8da7,_0x4c7c55,_0x5d3283)=>{const _0x500752=_0x47b10c;this[_0x500752(0x464)]=null,this[_0x500752(0x4d4)](_0x30c9f7,_0x4f8da7,_0x4c7c55,_0x5d3283);},'onPasteCells':(_0x4c9a95,_0xa65e1a,_0x5c24ae,_0x2ee94a)=>{const _0x50114c=_0x47b10c;if(!_0x2ee94a[_0x50114c(0x2d8)]||!_0x4c9a95||!this[_0x50114c(0x464)])return{'redos':[],'undos':[]};let {pasteType:_0x2435b8}=_0x2ee94a;return _0x2435b8===l['PREDEFINED_HOOK_NAME'][_0x50114c(0x3d7)]?this[_0x50114c(0x2bb)](_0xa65e1a,this[_0x50114c(0x464)][_0x50114c(0x45a)]===l['COPY_TYPE'][_0x50114c(0x26b)]):{'redos':[],'undos':[]};}}));}[_0x5c10b7(0x4d4)](_0x5e75ec,_0x2ca41f,_0xafb884,_0x486a51){const _0x5931f7=_0x5c10b7;let _0x12579b=this[_0x5931f7(0x22e)][_0x5931f7(0x29c)](_0x5e75ec,_0x2ca41f);if(!_0x12579b)return;let _0x252588=(0x0,o[_0x5931f7(0x218)])(_0x12579b,_0xafb884);if(!_0x252588)return;let {startX:_0x316902,endX:_0x8ca94c,startY:_0x4efd06,endY:_0x1f1844}=_0x252588,_0x303744=this[_0x5931f7(0x253)][_0x5931f7(0x3e7)](_0x5e75ec,_0x2ca41f),_0x367316=[];for(let [_0xbd8bd6,_0x4a2fb7]of Object[_0x5931f7(0x286)](_0x303744)){if(_0x4a2fb7['drawingType']!==a[_0x5931f7(0x2a4)][_0x5931f7(0x2bd)])continue;let {transform:_0x152107}=_0x4a2fb7;if(!_0x152107)continue;let {left:_0x352193=0x0,top:_0x2d30a2=0x0,width:_0x4117c3=0x0,height:_0x46c0d7=0x0}=_0x152107;_0x316902<=_0x352193&&_0x8ca94c>=_0x352193+_0x4117c3&&_0x4efd06<=_0x2d30a2&&_0x1f1844>=_0x2d30a2+_0x46c0d7&&_0x367316[_0x5931f7(0x27a)](_0x4a2fb7);}_0x367316[_0x5931f7(0x313)]>0x0&&(this['_copyInfo']={'unitId':_0x5e75ec,'subUnitId':_0x2ca41f,'copyType':_0x486a51,'copyRange':_0xafb884,'drawings':_0x367316});}[_0x5c10b7(0x2bb)](_0x40c867,_0x2b5d37){const _0x49a917=_0x5c10b7;let {unitId:_0x5339b1,subUnitId:_0x100a36,range:_0x19940f}=_0x40c867,_0x5a9264=this['_sheetSkeletonService'][_0x49a917(0x29c)](_0x5339b1,_0x100a36);if(!_0x5a9264)return{'redos':[],'undos':[]};let _0x466398=(0x0,o[_0x49a917(0x31f)])(_0x19940f),{unitId:_0x422023,subUnitId:_0x20e918,copyRange:_0x293e9a,drawings:_0x5ba1ec}=this['_copyInfo'],_0x4af53d=this[_0x49a917(0x22e)][_0x49a917(0x29c)](_0x422023,_0x20e918);if(!_0x4af53d)return{'redos':[],'undos':[]};let _0x3ce671;if(!_0x293e9a){let _0x565deb=0x1/0x0,_0x1e0a72=0x1/0x0;for(let _0xae1837 of _0x5ba1ec){let {left:_0x8574b3=0x0,top:_0x4866c4=0x0}=_0xae1837[_0x49a917(0x44b)]??{};_0x8574b3<_0x565deb&&(_0x565deb=_0x8574b3),_0x4866c4<_0x1e0a72&&(_0x1e0a72=_0x4866c4);}_0x565deb!==0x1/0x0&&_0x1e0a72!==0x1/0x0&&(_0x3ce671={'left':_0x565deb,'top':_0x1e0a72});}let _0xbd8f38=new Map();if(!_0x2b5d37){for(let _0x461bba of _0x5ba1ec)_0xbd8f38['set'](_0x461bba['drawingId'],(0x0,a[_0x49a917(0x470)])());}let _0x57fb7f=[],_0x5e1796=[];for(let _0x1b82ae of _0x5ba1ec){let {drawingId:_0x121a50,transform:_0x1eb1e6,sheetTransform:_0x3ba3fa}=_0x1b82ae;if(!_0x1eb1e6||!_0x3ba3fa)continue;let _0x2b16a8=this['_updateTransform']({'transform':_0x1eb1e6,'sheetTransform':_0x3ba3fa},{'skeleton':_0x4af53d,'range':_0x293e9a},{'skeleton':_0x5a9264,'range':_0x466398},_0x3ce671);if(_0x2b5d37){let {redos:_0x411459,undos:_0x9ce088}=this['_generateCutPasteMutations']({'fromUnitId':_0x422023,'fromSubUnitId':_0x20e918,'toUnitId':_0x5339b1,'toSubUnitId':_0x100a36,'drawing':_0x1b82ae,'newTransforms':_0x2b16a8});_0x57fb7f[_0x49a917(0x27a)](..._0x411459),_0x5e1796[_0x49a917(0x27a)](..._0x9ce088);continue;}let {redos:_0x37b3ab,undos:_0x21cce3}=this[_0x49a917(0x187)]({'toUnitId':_0x5339b1,'toSubUnitId':_0x100a36,'drawing':_0x1b82ae,'newTransforms':_0x2b16a8,'newDrawingId':_0xbd8f38[_0x49a917(0x410)](_0x121a50),'idMap':_0xbd8f38});_0x57fb7f[_0x49a917(0x27a)](..._0x37b3ab),_0x5e1796[_0x49a917(0x27a)](..._0x21cce3);}return{'redos':_0x57fb7f,'undos':_0x5e1796};}[_0x5c10b7(0x188)](_0xe9bafe){const _0x2b3042=_0x5c10b7;let {fromUnitId:_0x2da1db,fromSubUnitId:_0x812474,toUnitId:_0x5a7382,toSubUnitId:_0x54117c,drawing:_0x1865c6,newTransforms:_0x56303a}=_0xe9bafe,_0x2efe67={..._0x1865c6,'unitId':_0x5a7382,'subUnitId':_0x54117c,'transform':_0x56303a[_0x2b3042(0x44b)],'sheetTransform':_0x56303a[_0x2b3042(0x39f)]};if(_0x5a7382===_0x2da1db&&_0x54117c===_0x812474){let {redo:_0xc1d024,undo:_0x61d93f,objects:_0x4381ab}=this[_0x2b3042(0x253)][_0x2b3042(0x2c5)]([_0x2efe67]);return{'redos':[{'id':m[_0x2b3042(0x46d)]['id'],'params':{'unitId':_0x5a7382,'subUnitId':_0x54117c,'type':m[_0x2b3042(0x27f)][_0x2b3042(0x240)],'op':_0xc1d024,'objects':_0x4381ab}}],'undos':[{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x5a7382,'subUnitId':_0x54117c,'type':m['DrawingApplyType'][_0x2b3042(0x240)],'op':_0x61d93f,'objects':_0x4381ab}}]};}{let _0x51db8d=this[_0x2b3042(0x253)]['getBatchRemoveOp']([_0x1865c6]),_0x1286ee=this[_0x2b3042(0x253)][_0x2b3042(0x22b)]([_0x2efe67]),_0x111c67=this[_0x2b3042(0x432)][_0x2b3042(0x305)](_0x1865c6[_0x2b3042(0x2c6)],_0x1865c6[_0x2b3042(0x2b9)],_0x1865c6[_0x2b3042(0x2de)]);if(!_0x111c67)return{'redos':[],'undos':[]};let _0x43478f=_0x111c67['getShapeType'](),_0x17bfc9=JSON[_0x2b3042(0x208)](JSON['stringify'](_0x111c67[_0x2b3042(0x3dd)]()));return{'redos':[{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2da1db,'subUnitId':_0x812474,'type':m[_0x2b3042(0x27f)][_0x2b3042(0x3b4)],'op':_0x51db8d['redo'],'objects':_0x51db8d['objects']}},{'id':i[_0x2b3042(0x3c5)]['id'],'params':{'unitId':_0x2da1db,'subUnitId':_0x812474,'shapeId':_0x1865c6[_0x2b3042(0x2de)]}},{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x5a7382,'subUnitId':_0x54117c,'type':m[_0x2b3042(0x27f)][_0x2b3042(0x302)],'op':_0x1286ee[_0x2b3042(0x210)],'objects':_0x1286ee[_0x2b3042(0x175)]}},{'id':i[_0x2b3042(0x394)]['id'],'params':{'unitId':_0x5a7382,'subUnitId':_0x54117c,'shapeId':_0x1865c6[_0x2b3042(0x2de)],'shapeType':_0x43478f,'shapeData':_0x17bfc9}}],'undos':[{'id':m[_0x2b3042(0x46d)]['id'],'params':{'unitId':_0x2da1db,'subUnitId':_0x812474,'type':m[_0x2b3042(0x27f)]['INSERT'],'op':_0x51db8d[_0x2b3042(0x265)],'objects':_0x51db8d[_0x2b3042(0x175)]}},{'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x2da1db,'subUnitId':_0x812474,'shapeId':_0x1865c6[_0x2b3042(0x2de)],'shapeType':_0x43478f,'shapeData':_0x17bfc9}},{'id':m[_0x2b3042(0x46d)]['id'],'params':{'unitId':_0x5a7382,'subUnitId':_0x54117c,'type':m['DrawingApplyType'][_0x2b3042(0x3b4)],'op':_0x1286ee[_0x2b3042(0x265)],'objects':_0x1286ee[_0x2b3042(0x175)]}},{'id':i[_0x2b3042(0x3c5)]['id'],'params':{'unitId':_0x5a7382,'subUnitId':_0x54117c,'shapeId':_0x1865c6[_0x2b3042(0x2de)]}}]};}}[_0x5c10b7(0x187)](_0x38cb27){const _0x52e70c=_0x5c10b7;let {toUnitId:_0x59c388,toSubUnitId:_0x41344e,drawing:_0x2f78b5,newTransforms:_0x277782,newDrawingId:_0x40cb9f,idMap:_0x8cedf4}=_0x38cb27,_0x31a8ab={..._0x2f78b5,'unitId':_0x59c388,'subUnitId':_0x41344e,'drawingId':_0x40cb9f,'transform':_0x277782[_0x52e70c(0x44b)],'sheetTransform':_0x277782[_0x52e70c(0x39f)]},{redo:_0x38cbcc,undo:_0x32cb7c,objects:_0x198e93}=this[_0x52e70c(0x253)][_0x52e70c(0x22b)]([_0x31a8ab]),_0x30d175=this[_0x52e70c(0x432)][_0x52e70c(0x305)](_0x2f78b5[_0x52e70c(0x2c6)],_0x2f78b5['subUnitId'],_0x2f78b5[_0x52e70c(0x2de)]);if(!_0x30d175)return{'redos':[],'undos':[]};let _0x243d45=_0x30d175['getShapeType'](),_0x164cab=JSON[_0x52e70c(0x208)](JSON[_0x52e70c(0x4e0)](_0x30d175['getShapeData']()));if(_0x164cab['relation']){var _0x1ee44e,_0x3f6cf5;let _0xf2d81f=(_0x1ee44e=_0x164cab[_0x52e70c(0x3cc)][_0x52e70c(0x3ac)])==null?void 0x0:_0x1ee44e['shapeId'],_0x1d7860=(_0x3f6cf5=_0x164cab['relation']['to'])==null?void 0x0:_0x3f6cf5[_0x52e70c(0x3c8)],_0x593e97=!_0xf2d81f||_0x8cedf4[_0x52e70c(0x2e0)](_0xf2d81f),_0x140342=!_0x1d7860||_0x8cedf4['has'](_0x1d7860);_0x593e97&&_0xf2d81f&&_0x164cab[_0x52e70c(0x3cc)]['from']?_0x164cab[_0x52e70c(0x3cc)][_0x52e70c(0x3ac)]={..._0x164cab[_0x52e70c(0x3cc)][_0x52e70c(0x3ac)],'shapeId':_0x8cedf4[_0x52e70c(0x410)](_0xf2d81f)}:_0x164cab[_0x52e70c(0x3cc)][_0x52e70c(0x3ac)]=void 0x0,_0x140342&&_0x1d7860&&_0x164cab[_0x52e70c(0x3cc)]['to']?_0x164cab[_0x52e70c(0x3cc)]['to']={..._0x164cab[_0x52e70c(0x3cc)]['to'],'shapeId':_0x8cedf4[_0x52e70c(0x410)](_0x1d7860)}:_0x164cab[_0x52e70c(0x3cc)]['to']=void 0x0;}return{'redos':[{'id':m[_0x52e70c(0x46d)]['id'],'params':{'unitId':_0x59c388,'subUnitId':_0x41344e,'type':m[_0x52e70c(0x27f)][_0x52e70c(0x302)],'op':_0x38cbcc,'objects':_0x198e93}},{'id':i[_0x52e70c(0x394)]['id'],'params':{'unitId':_0x59c388,'subUnitId':_0x41344e,'shapeId':_0x40cb9f,'shapeType':_0x243d45,'shapeData':_0x164cab}}],'undos':[{'id':m[_0x52e70c(0x46d)]['id'],'params':{'unitId':_0x59c388,'subUnitId':_0x41344e,'type':m[_0x52e70c(0x27f)][_0x52e70c(0x3b4)],'op':_0x32cb7c,'objects':_0x198e93}},{'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x59c388,'subUnitId':_0x41344e,'shapeId':_0x40cb9f}}]};}[_0x5c10b7(0x18f)](_0x3b2211,_0x5ecce2,_0xc6e021,_0x13fa87){const _0x2b238a=_0x5c10b7;let {range:_0x2fe6a5,skeleton:_0x13c433}=_0x5ecce2,{range:_0x40680d,skeleton:_0x934fe9}=_0xc6e021,{transform:_0x5080dd,sheetTransform:_0x1511b1}=_0x3b2211,_0x22e906={..._0x5080dd};if(_0x2fe6a5){let _0x5a5d20=(0x0,o[_0x2b238a(0x218)])(_0x13c433,_0x2fe6a5),_0x64e6a1=(0x0,o[_0x2b238a(0x218)])(_0x934fe9,_0x40680d);if(_0x5a5d20&&_0x64e6a1){let _0x3bf01f=_0x64e6a1['startX']-_0x5a5d20[_0x2b238a(0x223)],_0x55c6f7=_0x64e6a1[_0x2b238a(0x21c)]-_0x5a5d20[_0x2b238a(0x21c)];_0x22e906[_0x2b238a(0x3b9)]=(_0x22e906[_0x2b238a(0x3b9)]??0x0)+_0x3bf01f,_0x22e906[_0x2b238a(0x1bb)]=(_0x22e906[_0x2b238a(0x1bb)]??0x0)+_0x55c6f7;}}else{let _0x5253d3=(0x0,o['attachRangeWithCoord'])(_0x934fe9,_0x40680d);if(_0x13fa87&&_0x5253d3){let _0x35d4ba=(_0x22e906[_0x2b238a(0x3b9)]??0x0)-_0x13fa87[_0x2b238a(0x3b9)],_0xc93dd5=(_0x22e906[_0x2b238a(0x1bb)]??0x0)-_0x13fa87['top'];_0x22e906[_0x2b238a(0x3b9)]=_0x5253d3[_0x2b238a(0x223)]+_0x35d4ba,_0x22e906['top']=_0x5253d3['startY']+_0xc93dd5;}else _0x22e906[_0x2b238a(0x3b9)]=_0x5253d3==null?void 0x0:_0x5253d3[_0x2b238a(0x223)],_0x22e906[_0x2b238a(0x1bb)]=_0x5253d3==null?void 0x0:_0x5253d3[_0x2b238a(0x21c)];}return{'transform':_0x22e906,'sheetTransform':(0x0,m['transformToDrawingPosition'])(_0x22e906,_0x934fe9)??_0x1511b1};}};q=A([k(0x0,(0x0,a[_0x5c10b7(0x25d)])(o[_0x5c10b7(0x29e)])),k(0x1,(0x0,a[_0x5c10b7(0x25d)])(l['ISheetClipboardService'])),k(0x2,(0x0,a[_0x5c10b7(0x25d)])(m[_0x5c10b7(0x427)])),k(0x3,(0x0,a[_0x5c10b7(0x25d)])(i['SheetsShapeService'])),k(0x4,(0x0,a[_0x5c10b7(0x25d)])(v['SheetsDrawingGroupCopyPasteController']))],q);var St=class extends c['Shape']{constructor(_0x53757e,_0x1f5d55){const _0x1c4cd0=_0x5c10b7;super(_0x53757e,_0x1f5d55),E(this,_0x1c4cd0(0x3e3),null),E(this,_0x1c4cd0(0x4a6),null),E(this,_0x1c4cd0(0x2a2),null),E(this,_0x1c4cd0(0x26f),null),E(this,_0x1c4cd0(0x498),!0x1),_0x1f5d55&&this[_0x1c4cd0(0x25b)](_0x1f5d55);}['getDrawingSearch'](){const _0x136ba2=_0x5c10b7;return{'unitId':this['_unitId'],'subUnitId':this[_0x136ba2(0x26f)],'drawingId':this[_0x136ba2(0x3e3)]};}[_0x5c10b7(0x25b)](_0x2d7617){const _0x5eb682=_0x5c10b7;_0x2d7617['shapeId']!==void 0x0&&(this[_0x5eb682(0x3e3)]=_0x2d7617['shapeId']),_0x2d7617[_0x5eb682(0x2c6)]!==void 0x0&&(this[_0x5eb682(0x2a2)]=_0x2d7617[_0x5eb682(0x2c6)]),_0x2d7617[_0x5eb682(0x2b9)]!==void 0x0&&(this[_0x5eb682(0x26f)]=_0x2d7617[_0x5eb682(0x2b9)]),_0x2d7617[_0x5eb682(0x219)]!==void 0x0&&(this[_0x5eb682(0x498)]=_0x2d7617[_0x5eb682(0x219)]),this[_0x5eb682(0x360)]({'width':_0x2d7617['width'],'height':_0x2d7617['height']});}[_0x5c10b7(0x2ef)](_0x38715c){const _0x1e7fe3=_0x5c10b7;c[_0x1e7fe3(0x191)][_0x1e7fe3(0x308)](_0x38715c,{'radius':n[_0x1e7fe3(0x1fb)][_0x1e7fe3(0x1c6)],'fill':n[_0x1e7fe3(0x1fb)]['cxnPointFill'],'stroke':n[_0x1e7fe3(0x1fb)][_0x1e7fe3(0x1d1)],'strokeWidth':n[_0x1e7fe3(0x1fb)][_0x1e7fe3(0x310)],'evented':!0x0});}};let Ct=class extends a['Disposable']{constructor(_0x374637,_0x1fc7c5,_0x3a0ce8,_0x48a6b1,_0x2e71d4,_0x4850b5,_0x1aa09b,_0x6f8139){const _0x1ca4d9=_0x5c10b7;super(),this[_0x1ca4d9(0x3b1)]=_0x374637,this[_0x1ca4d9(0x3f0)]=_0x1fc7c5,this[_0x1ca4d9(0x33f)]=_0x3a0ce8,this[_0x1ca4d9(0x2ac)]=_0x48a6b1,this[_0x1ca4d9(0x287)]=_0x2e71d4,this[_0x1ca4d9(0x3d9)]=_0x4850b5,this[_0x1ca4d9(0x2be)]=_0x1aa09b,this[_0x1ca4d9(0x4a3)]=_0x6f8139,E(this,_0x1ca4d9(0x490),void 0x0),E(this,'_unitId',void 0x0),E(this,_0x1ca4d9(0x26f),void 0x0),E(this,'_connectorObjects',[]),E(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),E(this,'_activeShapeModel',void 0x0),E(this,_0x1ca4d9(0x19d),!0x1),E(this,_0x1ca4d9(0x379),!0x1),E(this,'_hasReset',!0x1),E(this,_0x1ca4d9(0x328),void 0x0),E(this,_0x1ca4d9(0x3d6),void 0x0),E(this,_0x1ca4d9(0x3c4),null),this['_initialize']();}[_0x5c10b7(0x3fa)](){const _0x2500b4=_0x5c10b7;this[_0x2500b4(0x2b8)](),this[_0x2500b4(0x439)]();}['_getDrawingRect'](){const _0x27fa34=_0x5c10b7;if(!this[_0x27fa34(0x2a2)]||!this[_0x27fa34(0x26f)]||!this['_activeShapeId'])return;let _0x2d67f9={'unitId':this[_0x27fa34(0x2a2)],'subUnitId':this[_0x27fa34(0x26f)],'drawingId':this[_0x27fa34(0x490)]},{transform:_0x919f56}=this[_0x27fa34(0x2ac)]['getDrawingByParam'](_0x2d67f9);if(_0x919f56)return{'left':_0x919f56[_0x27fa34(0x3b9)]||0x0,'top':_0x919f56['top']||0x0,'width':_0x919f56[_0x27fa34(0x3d4)]||0x0,'height':_0x919f56[_0x27fa34(0x2c3)]||0x0,'flipX':_0x919f56[_0x27fa34(0x32f)]||!0x1,'flipY':_0x919f56[_0x27fa34(0x398)]||!0x1,'angle':_0x919f56['angle']};}['_addShapeConnectorHandlerObjects'](){const _0x34c6fc=_0x5c10b7;if(this[_0x34c6fc(0x2a2)]===void 0x0||this[_0x34c6fc(0x26f)]===void 0x0||this[_0x34c6fc(0x490)]===void 0x0)return;let _0x73cfbe=this['_renderManagerService'][_0x34c6fc(0x30f)](this[_0x34c6fc(0x2a2)]);if(!_0x73cfbe||!_0x73cfbe[_0x34c6fc(0x300)](l[_0x34c6fc(0x31c)])[_0x34c6fc(0x25e)]())return;let {scene:_0x40fffb}=_0x73cfbe,_0x173855=this[_0x34c6fc(0x185)]();if(!_0x173855)return;let _0x16a34a=this[_0x34c6fc(0x3d9)][_0x34c6fc(0x305)](this[_0x34c6fc(0x2a2)],this[_0x34c6fc(0x26f)],this[_0x34c6fc(0x490)]);if(!_0x16a34a||!(0x0,n[_0x34c6fc(0x2b0)])(_0x16a34a[_0x34c6fc(0x358)]()))return;let _0x11804c=_0x16a34a[_0x34c6fc(0x32d)]();if(_0x11804c[_0x34c6fc(0x313)]<0x2)return;let _0x1b9d86=new n[(_0x34c6fc(0x381))](_0x173855),_0x56d45e=_0x11804c[0x0],_0x248192=_0x11804c[_0x11804c[_0x34c6fc(0x313)]-0x1],_0xa3f84f=_0x1b9d86[_0x34c6fc(0x3c2)](_0x56d45e),_0x11a28e=_0x1b9d86[_0x34c6fc(0x3c2)](_0x248192);this['_addShapeConnectorHandlerObject'](_0x40fffb,{..._0xa3f84f},!0x0),this['_addShapeConnectorHandlerObject'](_0x40fffb,{..._0x11a28e},!0x1);}[_0x5c10b7(0x227)](_0x45e51d,_0x1f43a2,_0x3eb65c){const _0x3cb7ef=_0x5c10b7;if(this[_0x3cb7ef(0x490)]===void 0x0||this[_0x3cb7ef(0x2a2)]===void 0x0||this[_0x3cb7ef(0x26f)]===void 0x0)return;let _0x26e40a=_0x3cb7ef(0x32a)+this[_0x3cb7ef(0x2a2)]+'-'+this[_0x3cb7ef(0x26f)]+'-'+this[_0x3cb7ef(0x490)]+'-'+(_0x3eb65c?_0x3cb7ef(0x27b):'end'),_0x398790=_0x45e51d[_0x3cb7ef(0x24b)](_0x26e40a);if(_0x398790){_0x398790['transformByState']({'left':_0x1f43a2['x']-n[_0x3cb7ef(0x1fb)][_0x3cb7ef(0x1c6)],'top':_0x1f43a2['y']-n[_0x3cb7ef(0x1fb)][_0x3cb7ef(0x1c6)]});return;}let _0xbcf4b5=new St(_0x26e40a,{'left':_0x1f43a2['x']-n[_0x3cb7ef(0x1fb)][_0x3cb7ef(0x1c6)],'top':_0x1f43a2['y']-n[_0x3cb7ef(0x1fb)]['cxnPointRadius'],'shapeId':this[_0x3cb7ef(0x490)],'unitId':this[_0x3cb7ef(0x2a2)],'subUnitId':this[_0x3cb7ef(0x26f)],'isStartConnectorPoint':_0x3eb65c,'width':n['ShapeDefaultConfig'][_0x3cb7ef(0x1c6)]*0x2,'height':n[_0x3cb7ef(0x1fb)][_0x3cb7ef(0x1c6)]*0x2,'zIndex':c[_0x3cb7ef(0x1a6)]+0x1,'evented':!0x0});this[_0x3cb7ef(0x384)]['push'](_0xbcf4b5),this[_0x3cb7ef(0x2f3)](_0xbcf4b5,_0x45e51d,_0x3eb65c),_0x45e51d[_0x3cb7ef(0x34b)](_0xbcf4b5,c['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x5c10b7(0x2f8)](_0x590cdf,_0x48b2e6){const _0x24269f=_0x5c10b7;var _0x1fbc75;let _0x181ccb={'x':0x0,'y':0x0};if(!_0x590cdf||!_0x48b2e6)return _0x181ccb;let _0x3f8ca6=this['_renderManagerService'][_0x24269f(0x30f)](_0x590cdf);if(!_0x3f8ca6||!_0x3f8ca6[_0x24269f(0x300)](l['SheetSkeletonManagerService'])[_0x24269f(0x29c)](_0x48b2e6))return _0x181ccb;let _0x264089=_0x3f8ca6[_0x24269f(0x300)](l[_0x24269f(0x273)]),_0x49caee=_0x264089==null?void 0x0:_0x264089[_0x24269f(0x319)]();if(!_0x49caee)return _0x181ccb;let _0x5ea92d=(_0x1fbc75=this['_univerInstanceService'][_0x24269f(0x278)](_0x590cdf))==null?void 0x0:_0x1fbc75[_0x24269f(0x222)](_0x48b2e6);if(!_0x5ea92d)return _0x181ccb;let _0x5b8548=(0x0,l[_0x24269f(0x45b)])(_0x49caee['sheetViewStartRow'],_0x49caee[_0x24269f(0x23a)],_0x3f8ca6[_0x24269f(0x48b)],_0x5ea92d);return _0x5b8548?{'x':_0x5b8548['viewportScrollX'],'y':_0x5b8548[_0x24269f(0x376)]}:_0x181ccb;}[_0x5c10b7(0x228)](_0x49d3b7,_0x37f9b6){const _0x346247=_0x5c10b7;var _0x34c494;let _0x1bc8af=(_0x34c494=this[_0x346247(0x287)][_0x346247(0x278)](_0x49d3b7))==null?void 0x0:_0x34c494['getSheetBySheetId'](_0x37f9b6);return(_0x1bc8af==null?void 0x0:_0x1bc8af[_0x346247(0x250)]())??0x1;}['_handleConnectorPointerUp'](_0x48d6b9,_0x3c38e2,_0x728009,_0x128880,_0x59c294){const _0x4b8f4a=_0x5c10b7;this['_cxtHandlerPointerMove'][_0x4b8f4a(0x21e)](),this['_cxtHandlerPointerUp']['unsubscribe'](),this[_0x4b8f4a(0x2be)][_0x4b8f4a(0x2f5)]();let _0x77138f=this[_0x4b8f4a(0x3c4)];this[_0x4b8f4a(0x4a3)][_0x4b8f4a(0x270)]();let _0x3bb40e=this[_0x4b8f4a(0x2f8)](this[_0x4b8f4a(0x2a2)],this[_0x4b8f4a(0x26f)]),_0x490b0d=this[_0x4b8f4a(0x228)](this[_0x4b8f4a(0x2a2)],this[_0x4b8f4a(0x26f)]),_0x33a291={'x':_0x728009[_0x4b8f4a(0x2d3)]/_0x490b0d+_0x3bb40e['x'],'y':_0x728009['offsetY']/_0x490b0d+_0x3bb40e['y']},_0x25ecca=_0x77138f?_0x77138f[_0x4b8f4a(0x1af)]:_0x33a291,_0x5b48b3=_0x128880?this[_0x4b8f4a(0x4a7)]['getEndConnectInfo']():this[_0x4b8f4a(0x4a7)]['getStartConnectInfo'](),_0x1ea199=this[_0x4b8f4a(0x4a7)][_0x4b8f4a(0x358)]();_0x5b48b3?this[_0x4b8f4a(0x33b)](_0x5b48b3,_0x25ecca,_0x128880,_0x77138f,_0x59c294):this[_0x4b8f4a(0x39e)](_0x3c38e2,_0x25ecca,_0x128880,_0x77138f,_0x59c294,_0x1ea199),this[_0x4b8f4a(0x19d)]=!0x1,this[_0x4b8f4a(0x2d2)]=!0x1,this[_0x4b8f4a(0x3c4)]=null,_0x48d6b9[_0x4b8f4a(0x391)]();}[_0x5c10b7(0x39e)](_0x5b7bc2,_0x5a6461,_0x458699,_0x366f1f,_0x36d906,_0x560b7a){const _0x353617=_0x5c10b7;let _0x2e0a8d=_0x560b7a===n[_0x353617(0x3ef)][_0x353617(0x2d6)]||_0x560b7a===n[_0x353617(0x3ef)][_0x353617(0x3aa)],_0xe97cd4=_0x458699?_0x5a6461:_0x5b7bc2,_0x45ab33=_0x458699?_0x5b7bc2:_0x5a6461,_0x2347b2=this['_activeShapeModel'][_0x353617(0x32d)](),_0x3be4d0=this[_0x353617(0x4a7)][_0x353617(0x358)](),_0x275eed=(0x0,n[_0x353617(0x285)])(_0x3be4d0),_0x13b735=n['ConnectorCoordinateTransform'][_0x353617(0x3ab)](_0x2347b2,_0x275eed),_0x22830a=_0x2e0a8d?n[_0x353617(0x381)][_0x353617(0x440)](_0xe97cd4,_0x45ab33):n[_0x353617(0x381)]['computeConnectorResizeLayout'](_0x5b7bc2,_0x5a6461,_0x458699,_0x13b735);_0x366f1f?this[_0x353617(0x315)](_0x22830a,_0x366f1f,_0x458699,_0x36d906):this[_0x353617(0x269)](_0x22830a,_0x36d906);}[_0x5c10b7(0x33b)](_0x4483cb,_0x2f129e,_0x146b9c,_0x2bab78,_0x2dfc2f){const _0x5fc242=_0x5c10b7;let _0x2ac296=this[_0x5fc242(0x17c)](_0x4483cb);if(!_0x2ac296)return;let _0x5ee39a=_0x2bab78?_0x2bab78[_0x5fc242(0x457)]:this[_0x5fc242(0x1b2)](_0x2ac296[_0x5fc242(0x294)],_0x2f129e),_0x4c38ef;if(_0x2bab78){let _0x27e85b=this[_0x5fc242(0x2ac)][_0x5fc242(0x341)]({'unitId':_0x2bab78[_0x5fc242(0x2c6)],'subUnitId':_0x2bab78['subUnitId'],'drawingId':_0x2bab78[_0x5fc242(0x3c8)]});if(_0x27e85b!=null&&_0x27e85b[_0x5fc242(0x44b)]){let {left:_0x287a5c=0x0,top:_0x52647e=0x0,width:_0x3fca2a=0x0,height:_0x37dd35=0x0,angle:_0x1743f3}=_0x27e85b['transform'];_0x4c38ef=(0x0,n[_0x5fc242(0x403)])({'left':_0x287a5c,'top':_0x52647e,'width':_0x3fca2a,'height':_0x37dd35},_0x1743f3||0x0);}else _0x4c38ef={'left':_0x2f129e['x'],'top':_0x2f129e['y'],'width':0x0,'height':0x0};}else _0x4c38ef={'left':_0x2f129e['x'],'top':_0x2f129e['y'],'width':0x0,'height':0x0};let _0x566379={'point':_0x2f129e,'angle':_0x5ee39a,'bounds':_0x4c38ef},_0x5c820c=_0x146b9c?_0x566379:_0x2ac296,_0x3982cd=_0x146b9c?_0x2ac296:_0x566379,_0x86c9da=this[_0x5fc242(0x4a7)]['getShapeType'](),_0x518331=(0x0,n[_0x5fc242(0x1d6)])(_0x5c820c,_0x3982cd,_0x86c9da);this[_0x5fc242(0x4a7)][_0x5fc242(0x3de)]();let _0x4b5f4d=(0x0,n[_0x5fc242(0x1a5)])(_0x518331,_0x86c9da);_0x2bab78?this[_0x5fc242(0x1f2)](_0x4b5f4d,_0x2bab78,_0x4483cb,_0x146b9c,_0x2dfc2f):this[_0x5fc242(0x1d2)](_0x4b5f4d,_0x4483cb,_0x146b9c,_0x2dfc2f);}[_0x5c10b7(0x315)](_0xf21d80,_0x21a71c,_0x1612fc,_0x437a9c){const _0x8ef77=_0x5c10b7;let _0x28fc07=this[_0x8ef77(0x4a7)]['getShapeData']()[_0x8ef77(0x3cc)],_0x15abae={..._0x28fc07},_0x25f3dd={'shapeId':_0x21a71c[_0x8ef77(0x3c8)],'cxnIndex':_0x21a71c[_0x8ef77(0x35e)]};_0x1612fc?_0x15abae[_0x8ef77(0x3ac)]=_0x25f3dd:_0x15abae['to']=_0x25f3dd;let _0xe3d2a1=this[_0x8ef77(0x4a7)][_0x8ef77(0x358)](),_0x92f4ae=(0x0,n[_0x8ef77(0x1a5)])(_0xf21d80[_0x8ef77(0x31a)],_0xe3d2a1),_0x1b90a8={'unitId':this['_unitId'],'subUnitId':this[_0x8ef77(0x26f)],'connectorShapeId':this[_0x8ef77(0x490)],'width':_0xf21d80[_0x8ef77(0x49e)][_0x8ef77(0x3d4)],'height':_0xf21d80[_0x8ef77(0x49e)]['height'],'left':_0xf21d80[_0x8ef77(0x49e)][_0x8ef77(0x3b9)],'top':_0xf21d80['worldRect'][_0x8ef77(0x1bb)],'flipX':_0xf21d80['worldRect']['flipX']||!0x1,'flipY':_0xf21d80['worldRect'][_0x8ef77(0x398)]||!0x1,'newAdjustValues':_0x92f4ae[_0x8ef77(0x499)],'oldAdjustValues':_0x437a9c,'oldRelation':_0x28fc07,'newRelation':_0x15abae,'newLineType':_0x92f4ae[_0x8ef77(0x2fa)],'oldLineType':_0xe3d2a1};this[_0x8ef77(0x3f0)][_0x8ef77(0x4a0)](i[_0x8ef77(0x434)]['id'],_0x1b90a8);}[_0x5c10b7(0x269)](_0x54f07f,_0x272033){const _0x2da785=_0x5c10b7;let _0x4b697a=this[_0x2da785(0x4a7)][_0x2da785(0x358)](),_0x51e65e=(0x0,n['computeConnectorRouteLayout'])(_0x54f07f[_0x2da785(0x31a)],_0x4b697a),_0x3ae5f0={'unitId':this['_unitId'],'subUnitId':this[_0x2da785(0x26f)],'shapeId':this[_0x2da785(0x490)],'width':_0x54f07f[_0x2da785(0x49e)]['width'],'height':_0x54f07f[_0x2da785(0x49e)]['height'],'left':_0x54f07f[_0x2da785(0x49e)][_0x2da785(0x3b9)],'top':_0x54f07f['worldRect'][_0x2da785(0x1bb)],'flipX':_0x54f07f[_0x2da785(0x49e)]['flipX']||!0x1,'flipY':_0x54f07f['worldRect']['flipY']||!0x1,'angle':_0x54f07f[_0x2da785(0x49e)][_0x2da785(0x457)]||0x0,'newAdjustValues':_0x51e65e[_0x2da785(0x499)],'oldAdjustValues':_0x272033,'newLineType':_0x51e65e[_0x2da785(0x2fa)],'oldLineType':_0x4b697a};this['_commandService']['executeCommand'](i[_0x2da785(0x268)]['id'],_0x3ae5f0);}[_0x5c10b7(0x1f2)](_0x3f93b7,_0x1b283c,_0x219029,_0x5ecedf,_0x4d0444){const _0x5433cd=_0x5c10b7;let _0x2fcfed=this[_0x5433cd(0x4a7)][_0x5433cd(0x3dd)]()['relation'],_0x35acf5={..._0x2fcfed},_0xdea095={'shapeId':_0x1b283c[_0x5433cd(0x3c8)],'cxnIndex':_0x1b283c[_0x5433cd(0x35e)]};_0x5ecedf?(_0x35acf5[_0x5433cd(0x3ac)]=_0xdea095,_0x35acf5['to']=_0x219029):(_0x35acf5[_0x5433cd(0x3ac)]=_0x219029,_0x35acf5['to']=_0xdea095);let _0x12faa0={'unitId':this[_0x5433cd(0x2a2)],'subUnitId':this[_0x5433cd(0x26f)],'connectorShapeId':this[_0x5433cd(0x490)],'width':_0x3f93b7['worldRect'][_0x5433cd(0x3d4)],'height':_0x3f93b7[_0x5433cd(0x49e)][_0x5433cd(0x2c3)],'left':_0x3f93b7[_0x5433cd(0x49e)]['left'],'top':_0x3f93b7[_0x5433cd(0x49e)][_0x5433cd(0x1bb)],'flipX':_0x3f93b7[_0x5433cd(0x49e)][_0x5433cd(0x32f)]||!0x1,'flipY':_0x3f93b7[_0x5433cd(0x49e)][_0x5433cd(0x398)]||!0x1,'oldAdjustValues':_0x4d0444,'newAdjustValues':_0x3f93b7[_0x5433cd(0x499)],'newLineType':_0x3f93b7['lineType'],'rotation':_0x3f93b7['rotation'],'oldRelation':_0x2fcfed,'newRelation':_0x35acf5};this[_0x5433cd(0x3f0)][_0x5433cd(0x4a0)](i[_0x5433cd(0x434)]['id'],_0x12faa0);}['_executeConnectedRouteResizeCommand'](_0xc71534,_0xe75c07,_0x217d7f,_0x349cfa){const _0x3513df=_0x5c10b7;let _0x14b0d4=this[_0x3513df(0x4a7)][_0x3513df(0x3dd)]()['relation'],_0x27202d={};_0x217d7f?(_0x27202d['to']=_0xe75c07,_0x27202d[_0x3513df(0x3ac)]=void 0x0):(_0x27202d[_0x3513df(0x3ac)]=_0xe75c07,_0x27202d['to']=void 0x0);let _0x50a665={'unitId':this[_0x3513df(0x2a2)],'subUnitId':this[_0x3513df(0x26f)],'connectorShapeId':this[_0x3513df(0x490)],'width':_0xc71534[_0x3513df(0x49e)][_0x3513df(0x3d4)],'height':_0xc71534[_0x3513df(0x49e)]['height'],'left':_0xc71534[_0x3513df(0x49e)][_0x3513df(0x3b9)],'top':_0xc71534[_0x3513df(0x49e)][_0x3513df(0x1bb)],'flipX':_0xc71534['worldRect'][_0x3513df(0x32f)]||!0x1,'flipY':_0xc71534[_0x3513df(0x49e)][_0x3513df(0x398)]||!0x1,'oldAdjustValues':_0x349cfa,'newAdjustValues':_0xc71534[_0x3513df(0x499)],'newLineType':_0xc71534[_0x3513df(0x2fa)],'rotation':_0xc71534[_0x3513df(0x4c4)],'oldRelation':_0x14b0d4,'newRelation':_0x27202d};this[_0x3513df(0x3f0)][_0x3513df(0x4a0)](i[_0x3513df(0x434)]['id'],_0x50a665);}['_attachConnectorObjectEvent'](_0xc5d484,_0x2acaa3,_0x20ad43){const _0x4010ea=_0x5c10b7;this[_0x4010ea(0x1c0)]((0x0,a['toDisposable'])(_0xc5d484[_0x4010ea(0x192)][_0x4010ea(0x3e9)]((_0x23d8ea,_0x3f6191)=>{const _0x2499d9=_0x4010ea;let _0x4008eb=_0xc5d484[_0x2499d9(0x281)]();if(this[_0x2499d9(0x4a7)]=this[_0x2499d9(0x3d9)][_0x2499d9(0x305)](_0x4008eb[_0x2499d9(0x2c6)],_0x4008eb['subUnitId'],_0x4008eb[_0x2499d9(0x2de)]),!this[_0x2499d9(0x4a7)])return;let _0x511526={};this[_0x2499d9(0x4a7)][_0x2499d9(0x22d)]()[_0x2499d9(0x3cd)](_0xe7c2f8=>{let _0x274e6e=this['_activeShapeModel']['getAdjustValueByName'](_0xe7c2f8);_0x274e6e!==void 0x0&&(_0x511526[_0xe7c2f8]=_0x274e6e);});let _0x528eba=this[_0x2499d9(0x185)]();if(!_0x528eba)return;this[_0x2499d9(0x225)]={..._0x528eba};let _0xd136c6=new n[(_0x2499d9(0x381))](this[_0x2499d9(0x225)]),_0x59b0a6=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0x2499d9(0x2a2)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x2499d9(0x490)]}),_0x5ccba0=_0x2acaa3['getObjectIncludeInGroup'](_0x59b0a6);this[_0x2499d9(0x19d)]=!0x0,_0x2acaa3[_0x2499d9(0x43f)](),this['_sheetBasicShapeConnectionPointController'][_0x2499d9(0x435)](_0x2acaa3,this[_0x2499d9(0x2a2)],this[_0x2499d9(0x26f)],this[_0x2499d9(0x490)]),this[_0x2499d9(0x3c4)]=null;let _0x2f2c80=this['_activeShapeModel'][_0x2499d9(0x32d)](),_0xd66e58=_0x2f2c80[0x0],_0x4e3904=_0x2f2c80[_0x2f2c80[_0x2499d9(0x313)]-0x1],_0x1c35a1=_0x20ad43?_0xd136c6['localToWorld'](_0x4e3904):_0xd136c6[_0x2499d9(0x3c2)](_0xd66e58);this[_0x2499d9(0x328)]=_0x2acaa3[_0x2499d9(0x238)][_0x2499d9(0x3e9)]((_0x3e77aa,_0x50e888)=>{const _0x1443aa=_0x2499d9;if(!this[_0x1443aa(0x19d)]||!this['_activeShapeModel'])return;this[_0x1443aa(0x2d2)]||=(this[_0x1443aa(0x2be)][_0x1443aa(0x47d)](),this[_0x1443aa(0x4a7)][_0x1443aa(0x3ee)](),!0x0);let _0x1e764a=this['_getScrollInfo'](this['_unitId'],this[_0x1443aa(0x26f)]),_0x27d9c8=this[_0x1443aa(0x228)](this[_0x1443aa(0x2a2)],this[_0x1443aa(0x26f)]),_0xbd97f9={'x':_0x3e77aa['offsetX']/_0x27d9c8+_0x1e764a['x'],'y':_0x3e77aa['offsetY']/_0x27d9c8+_0x1e764a['y']},_0x1e1ab9=this['_sheetBasicShapeConnectionPointController']['updateConnectionDetection'](_0xbd97f9);if(_0x1e1ab9){let {shapeId:_0x831b4,unitId:_0x4472ef,subUnitId:_0x11ac2c}=_0x1e1ab9;if(_0x831b4&&_0x4472ef&&_0x11ac2c){let _0x4a0096=(0x0,s[_0x1443aa(0x4bd)])({'unitId':_0x4472ef,'subUnitId':_0x11ac2c,'drawingId':_0x831b4});_0x1e1ab9[_0x1443aa(0x457)]=(_0x2acaa3[_0x1443aa(0x24b)](_0x4a0096)[_0x1443aa(0x457)]||0x0)+_0x1e1ab9['angle'];}}this['_currentConnectionTarget']=_0x1e1ab9;let _0x256b47=_0x20ad43?this[_0x1443aa(0x4a7)][_0x1443aa(0x3dc)]():this[_0x1443aa(0x4a7)][_0x1443aa(0x3e1)]();if(_0x256b47){this[_0x1443aa(0x3ce)](_0x256b47,_0xbd97f9,_0x20ad43,_0x5ccba0,_0xc5d484);return;}this['_handleFreeEndpointMove'](_0xbd97f9,_0x1c35a1,_0x20ad43,_0x5ccba0,_0xc5d484);}),this[_0x2499d9(0x3d6)]=_0x2acaa3['onPointerUp$'][_0x2499d9(0x3e9)]((_0x2192dd,_0x3ddd3d)=>{const _0x1785a3=_0x2499d9;this[_0x1785a3(0x416)](_0x2acaa3,_0x1c35a1,_0x2192dd,_0x20ad43,_0x511526);}),_0x3f6191['stopPropagation']();})));}[_0x5c10b7(0x47f)](_0x5a6098,_0x1ac9b5,_0x1fd918){const _0x10c95e=_0x5c10b7;let _0x24ee6b=this[_0x10c95e(0x3d9)][_0x10c95e(0x369)](_0x5a6098,_0x1ac9b5,_0x1fd918);if(!_0x24ee6b||_0x24ee6b[_0x10c95e(0x313)]===0x0)return;let _0x26a8e0=this[_0x10c95e(0x33f)][_0x10c95e(0x30f)](_0x5a6098);if(!_0x26a8e0)return;let {scene:_0x36a8d4}=_0x26a8e0;for(let _0x9cdb5b of _0x24ee6b){let _0x41233a=_0x9cdb5b[_0x10c95e(0x2fe)],_0x573452=this[_0x10c95e(0x3d9)][_0x10c95e(0x305)](_0x5a6098,_0x1ac9b5,_0x41233a);if(!_0x573452)continue;let _0x2057bc=_0x573452[_0x10c95e(0x3e1)](),_0x1ca171=_0x573452['getEndConnectInfo'](),_0x3dd2e2=(_0x2057bc==null?void 0x0:_0x2057bc[_0x10c95e(0x3c8)])===_0x1fd918,_0x3f355e=(0x0,s[_0x10c95e(0x4bd)])({'unitId':_0x5a6098,'subUnitId':_0x1ac9b5,'drawingId':_0x41233a}),_0x1ea83f=_0x36a8d4[_0x10c95e(0x24b)](_0x3f355e);if(!_0x1ea83f)continue;let _0x4d088d=this[_0x10c95e(0x2ac)][_0x10c95e(0x341)]({'unitId':_0x5a6098,'subUnitId':_0x1ac9b5,'drawingId':_0x41233a});_0x4d088d!=null&&_0x4d088d['transform']&&(_0x2057bc&&_0x1ca171?this[_0x10c95e(0x40a)](_0x5a6098,_0x1ac9b5,_0x41233a,_0x573452,_0x2057bc,_0x1ca171,_0x1ea83f):this['_moveConnectorWithShape'](_0x5a6098,_0x1ac9b5,_0x41233a,_0x573452,_0x3dd2e2?_0x2057bc:_0x1ca171,_0x3dd2e2,_0x4d088d,_0x1ea83f));}}[_0x5c10b7(0x40a)](_0x3c5b60,_0x5e3400,_0x3314ac,_0x661b52,_0x2ac2f6,_0x534a15,_0xbfa00e){const _0x2075a7=_0x5c10b7;let _0x3cd599=this[_0x2075a7(0x2a2)],_0x2ac610=this[_0x2075a7(0x26f)];this['_unitId']=_0x3c5b60,this[_0x2075a7(0x26f)]=_0x5e3400;let _0x5276d3=this[_0x2075a7(0x17c)](_0x2ac2f6),_0x572bdb=this[_0x2075a7(0x17c)](_0x534a15);if(this[_0x2075a7(0x2a2)]=_0x3cd599,this[_0x2075a7(0x26f)]=_0x2ac610,!_0x5276d3||!_0x572bdb)return;let _0x5c5a10=_0x661b52[_0x2075a7(0x358)](),_0x552995=(0x0,n[_0x2075a7(0x1d6)])(_0x5276d3,_0x572bdb,_0x5c5a10);_0x552995&&_0x661b52[_0x2075a7(0x1b6)](_0x552995);let _0x32c738=(0x0,n[_0x2075a7(0x1a5)])(_0x552995,_0x5c5a10);_0x32c738[_0x2075a7(0x2fa)]!==_0x5c5a10&&_0x661b52[_0x2075a7(0x4d0)](_0x32c738[_0x2075a7(0x2fa)]),_0x661b52['clearAdjustValue']();for(let [_0x5875fd,_0x26e132]of Object['entries'](_0x32c738['adjustValues']))_0x661b52[_0x2075a7(0x41d)](_0x5875fd,_0x26e132);_0x661b52[_0x2075a7(0x2bc)]({'width':_0x32c738[_0x2075a7(0x49e)][_0x2075a7(0x3d4)],'height':_0x32c738['worldRect']['height']}),_0xbfa00e[_0x2075a7(0x360)]({'flipX':_0x32c738[_0x2075a7(0x49e)][_0x2075a7(0x32f)],'flipY':_0x32c738[_0x2075a7(0x49e)][_0x2075a7(0x398)],'left':_0x32c738[_0x2075a7(0x49e)]['left'],'top':_0x32c738[_0x2075a7(0x49e)]['top'],'width':_0x32c738[_0x2075a7(0x49e)][_0x2075a7(0x3d4)],'height':_0x32c738['worldRect'][_0x2075a7(0x2c3)],'angle':_0x32c738[_0x2075a7(0x4c4)]}),_0x661b52['removeLinePoints']();}['_moveConnectorWithShape'](_0x410c94,_0x4db664,_0x912b8a,_0x34a4bd,_0x3b8fef,_0x590725,_0x748469,_0x4d43c2){const _0x325873=_0x5c10b7;let _0x39e7da=this[_0x325873(0x2a2)],_0x226160=this[_0x325873(0x26f)];this[_0x325873(0x2a2)]=_0x410c94,this[_0x325873(0x26f)]=_0x4db664;let _0x4be1d2=this['_getConnectPointInfo'](_0x3b8fef);if(this[_0x325873(0x2a2)]=_0x39e7da,this[_0x325873(0x26f)]=_0x226160,!_0x4be1d2)return;let {left:_0x538113=0x0,top:_0x4d0f04=0x0,width:_0xeb033e=0x0,height:_0x5e5d86=0x0,flipX:_0x1c5ea6=!0x1,flipY:_0x14d595=!0x1}=_0x748469[_0x325873(0x44b)],_0x41f49a=_0x34a4bd[_0x325873(0x32d)]();if(_0x41f49a[_0x325873(0x313)]<0x2)return;let _0x2731da=new n[(_0x325873(0x381))]({'left':_0x538113,'top':_0x4d0f04,'width':_0xeb033e,'height':_0x5e5d86,'flipX':_0x1c5ea6,'flipY':_0x14d595}),_0x5883d2=_0x590725?_0x41f49a[_0x41f49a['length']-0x1]:_0x41f49a[0x0],_0x4fbf33=_0x2731da[_0x325873(0x3c2)](_0x5883d2),_0x4f0d9e=n[_0x325873(0x381)]['computeConnectorResizeLayout'](_0x4fbf33,_0x4be1d2[_0x325873(0x294)],!_0x590725);_0x4d43c2['transformByState']({'flipX':_0x4f0d9e[_0x325873(0x49e)][_0x325873(0x32f)],'flipY':_0x4f0d9e[_0x325873(0x49e)][_0x325873(0x398)],'left':_0x4f0d9e[_0x325873(0x49e)][_0x325873(0x3b9)],'top':_0x4f0d9e[_0x325873(0x49e)]['top'],'width':_0x4f0d9e[_0x325873(0x49e)][_0x325873(0x3d4)],'height':_0x4f0d9e[_0x325873(0x49e)][_0x325873(0x2c3)],'angle':_0x4f0d9e[_0x325873(0x49e)][_0x325873(0x457)]}),_0x4d43c2[_0x325873(0x461)](!0x0);}[_0x5c10b7(0x21b)](){const _0x4e2731=_0x5c10b7;this['_connectorObjects'][_0x4e2731(0x313)]!==0x0&&(this[_0x4e2731(0x384)][_0x4e2731(0x3cd)](_0x38dc1a=>{const _0x111421=_0x4e2731;_0x38dc1a[_0x111421(0x307)]();}),this['_connectorObjects']=[]);}[_0x5c10b7(0x439)](){const _0x29f48c=_0x5c10b7;let _0x1878ab=this[_0x29f48c(0x287)]['getCurrentTypeOfUnit$'](a[_0x29f48c(0x1c5)]['UNIVER_SHEET']);this[_0x29f48c(0x1c0)](_0x1878ab[_0x29f48c(0x2e5)]((0x0,u[_0x29f48c(0x32e)])(_0x47953b=>_0x47953b?_0x47953b['activeSheet$'][_0x29f48c(0x2e5)]((0x0,u['switchMap'])(_0x2f848e=>{const _0x2f73b9=_0x29f48c;if(!_0x2f848e)return u[_0x2f73b9(0x254)];let _0x563dad=_0x47953b[_0x2f73b9(0x400)](),_0x5e9e06=this[_0x2f73b9(0x33f)][_0x2f73b9(0x30f)](_0x563dad),_0x7c08c6=_0x5e9e06==null?void 0x0:_0x5e9e06[_0x2f73b9(0x48b)];return _0x7c08c6?(0x0,u['of'])(_0x7c08c6):u[_0x2f73b9(0x254)];})):u[_0x29f48c(0x254)]))[_0x29f48c(0x45e)](_0x21598b=>{const _0x5ba4a8=_0x29f48c;let _0x53ee75=_0x21598b[_0x5ba4a8(0x325)]();this[_0x5ba4a8(0x1c0)](_0x21598b[_0x5ba4a8(0x238)][_0x5ba4a8(0x3e9)](_0x5da98d=>{const _0x4eed9f=_0x5ba4a8;this[_0x4eed9f(0x379)]&&this[_0x4eed9f(0x490)]&&this[_0x4eed9f(0x21b)]();})),this[_0x5ba4a8(0x1c0)](_0x53ee75[_0x5ba4a8(0x4e5)][_0x5ba4a8(0x45e)](_0x2da9cd=>{const _0x4e969e=_0x5ba4a8;let {objects:_0x32b92b}=_0x2da9cd;this[_0x4e969e(0x21b)](),_0x32b92b!==null&&_0x32b92b[_0x4e969e(0x20b)]===0x1&&_0x32b92b[_0x4e969e(0x364)]()[_0x4e969e(0x295)]()[_0x4e969e(0x1ed)]instanceof D&&(this[_0x4e969e(0x379)]=!0x0);})),this[_0x5ba4a8(0x1c0)](_0x53ee75['changing$'][_0x5ba4a8(0x45e)](_0x54df49=>{const _0x22a31f=_0x5ba4a8;this[_0x22a31f(0x379)]&&this[_0x22a31f(0x21b)]();})),this['disposeWithMe'](_0x21598b['onPointerUp$'][_0x5ba4a8(0x3e9)](()=>{const _0x2e4326=_0x5ba4a8;this[_0x2e4326(0x379)]&&(this[_0x2e4326(0x379)]=!0x1,this['_addShapeConnectorHandlerObjects']());})),this[_0x5ba4a8(0x1c0)](_0x53ee75[_0x5ba4a8(0x19c)][_0x5ba4a8(0x45e)](()=>{const _0x20100e=_0x5ba4a8;this[_0x20100e(0x2a2)]&&this[_0x20100e(0x26f)]&&this[_0x20100e(0x490)]&&this[_0x20100e(0x2ac)][_0x20100e(0x341)]({'unitId':this[_0x20100e(0x2a2)],'subUnitId':this[_0x20100e(0x26f)],'drawingId':this[_0x20100e(0x490)]})&&(this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x5c10b7(0x2b8)](){const _0x36427a=_0x5c10b7;this['disposeWithMe'](this[_0x36427a(0x2ac)][_0x36427a(0x47b)][_0x36427a(0x45e)](_0x27b2d7=>{const _0x28dec8=_0x36427a;if(_0x27b2d7['length']===0x1){let _0x331a85=_0x27b2d7[0x0];if(_0x331a85[_0x28dec8(0x1e3)]===a[_0x28dec8(0x2a4)][_0x28dec8(0x2bd)]){let _0x11fc94=this['_sheetsShapeService'][_0x28dec8(0x305)](_0x331a85[_0x28dec8(0x2c6)],_0x331a85[_0x28dec8(0x2b9)],_0x331a85['drawingId']);if(_0x11fc94&&(0x0,n['isConnectorShape'])(_0x11fc94[_0x28dec8(0x358)]())){this[_0x28dec8(0x490)]=_0x331a85[_0x28dec8(0x2de)],this[_0x28dec8(0x2a2)]=_0x331a85[_0x28dec8(0x2c6)],this[_0x28dec8(0x26f)]=_0x331a85[_0x28dec8(0x2b9)],this['_clearShapeConnectorHandlerObjects'](),this[_0x28dec8(0x320)]();return;}}}this['_activeShapeId']=void 0x0,this[_0x28dec8(0x2a2)]=void 0x0,this[_0x28dec8(0x26f)]=void 0x0,this[_0x28dec8(0x21b)]();})),this[_0x36427a(0x1c0)](this[_0x36427a(0x2ac)]['update$'][_0x36427a(0x45e)](_0x41df86=>{const _0x384a37=_0x36427a;if(_0x41df86[_0x384a37(0x313)]===0x1){var _0x1bffde;let _0x26e008=_0x41df86[0x0],_0x3d9fc0=(_0x1bffde=this[_0x384a37(0x2ac)][_0x384a37(0x341)](_0x26e008))==null?void 0x0:_0x1bffde[_0x384a37(0x1e3)];_0x3d9fc0===a[_0x384a37(0x2a4)]['DRAWING_SHAPE']&&_0x26e008[_0x384a37(0x2de)]===this[_0x384a37(0x490)]?(this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']()):!this['_activeShapeId']&&_0x3d9fc0===a[_0x384a37(0x2a4)]['DRAWING_SHAPE']&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x26e008[_0x384a37(0x2c6)],_0x26e008[_0x384a37(0x2b9)],_0x26e008[_0x384a37(0x2de)]);}})),this[_0x36427a(0x1c0)](this['_drawingManagerService']['remove$'][_0x36427a(0x45e)](_0x4c733b=>{const _0x4bf0a1=_0x36427a;for(let _0x3119b3 of _0x4c733b){let {drawingId:_0x57bb16}=_0x3119b3;if(this[_0x4bf0a1(0x490)]===_0x57bb16){this[_0x4bf0a1(0x366)]();return;}}}));}['_handleConnectedEndpointMove'](_0x84e6f1,_0x522bd9,_0x32e1bd,_0xa44f03,_0x9bec1b){const _0x9c566d=_0x5c10b7;var _0x4043ae;if(!this['_activeShapeModel'])return;let _0x535e5a=this['_getConnectPointInfo'](_0x84e6f1);if(!_0x535e5a)return;let _0x4991ab=this['_currentConnectionTarget']?this[_0x9c566d(0x3c4)][_0x9c566d(0x1af)]:_0x522bd9,_0x17c2bb=this[_0x9c566d(0x3c4)]?this[_0x9c566d(0x3c4)]['angle']:this[_0x9c566d(0x1b2)](_0x535e5a['point'],_0x4991ab),_0x485383;if(this[_0x9c566d(0x3c4)]){let _0x565b76=this['_drawingManagerService'][_0x9c566d(0x341)]({'unitId':this[_0x9c566d(0x3c4)][_0x9c566d(0x2c6)],'subUnitId':this[_0x9c566d(0x3c4)]['subUnitId'],'drawingId':this[_0x9c566d(0x3c4)][_0x9c566d(0x3c8)]});if(_0x565b76!=null&&_0x565b76[_0x9c566d(0x44b)]){let {left:_0x55b100=0x0,top:_0x10b697=0x0,width:_0x22a8d0=0x0,height:_0x328900=0x0,angle:_0x37e309}=_0x565b76[_0x9c566d(0x44b)];_0x485383=(0x0,n[_0x9c566d(0x403)])({'left':_0x55b100,'top':_0x10b697,'width':_0x22a8d0,'height':_0x328900},_0x37e309||0x0);}else _0x485383={'left':_0x4991ab['x'],'top':_0x4991ab['y'],'width':0x0,'height':0x0};}else _0x485383={'left':_0x4991ab['x'],'top':_0x4991ab['y'],'width':0x0,'height':0x0};let _0x259ff6={'point':_0x4991ab,'angle':_0x17c2bb,'bounds':_0x485383},_0x5412c9=_0x32e1bd?_0x259ff6:_0x535e5a,_0x29f4ce=_0x32e1bd?_0x535e5a:_0x259ff6,_0x80f8c1=this[_0x9c566d(0x4a7)][_0x9c566d(0x358)](),_0x3a5220=(0x0,n[_0x9c566d(0x1d6)])(_0x5412c9,_0x29f4ce,_0x80f8c1);_0x3a5220&&this[_0x9c566d(0x4a7)][_0x9c566d(0x1b6)](_0x3a5220);let _0x199772=(0x0,n[_0x9c566d(0x1a5)])(_0x3a5220,_0x80f8c1);_0x199772['lineType']!==_0x80f8c1&&this['_activeShapeModel'][_0x9c566d(0x4d0)](_0x199772['lineType']);for(let [_0xa3ce0c,_0x272d89]of Object[_0x9c566d(0x286)](_0x199772[_0x9c566d(0x499)]))this[_0x9c566d(0x4a7)][_0x9c566d(0x41d)](_0xa3ce0c,_0x272d89);this[_0x9c566d(0x4a7)][_0x9c566d(0x2bc)]({'width':_0x199772[_0x9c566d(0x49e)][_0x9c566d(0x3d4)],'height':_0x199772[_0x9c566d(0x49e)]['height']}),_0xa44f03[_0x9c566d(0x360)]({'flipX':_0x199772[_0x9c566d(0x49e)]['flipX'],'flipY':_0x199772[_0x9c566d(0x49e)]['flipY'],'left':_0x199772[_0x9c566d(0x49e)]['left'],'top':_0x199772['worldRect']['top'],'width':_0x199772[_0x9c566d(0x49e)][_0x9c566d(0x3d4)],'height':_0x199772['worldRect']['height'],'angle':_0x199772[_0x9c566d(0x4c4)]}),_0xa44f03[_0x9c566d(0x461)](!0x0);let _0x11cc72=((_0x4043ae=this[_0x9c566d(0x3c4)])==null?void 0x0:_0x4043ae[_0x9c566d(0x1af)])??_0x522bd9;_0x9bec1b['transformByState']({'left':_0x11cc72['x']-n[_0x9c566d(0x1fb)][_0x9c566d(0x1c6)],'top':_0x11cc72['y']-n['ShapeDefaultConfig'][_0x9c566d(0x1c6)]});}[_0x5c10b7(0x2b2)](_0x17a9d0,_0x5a3ba7,_0x27a9eb,_0x80089,_0xb42b20){const _0x3e3bda=_0x5c10b7;var _0x4494b3,_0xeba95f;let _0xcb84a9=((_0x4494b3=this['_currentConnectionTarget'])==null?void 0x0:_0x4494b3['worldPoint'])??_0x17a9d0,_0x37c0d9=n[_0x3e3bda(0x381)][_0x3e3bda(0x438)](_0x5a3ba7,_0xcb84a9,_0x27a9eb);_0x80089[_0x3e3bda(0x360)]({'flipX':_0x37c0d9[_0x3e3bda(0x49e)][_0x3e3bda(0x32f)],'flipY':_0x37c0d9[_0x3e3bda(0x49e)][_0x3e3bda(0x398)],'left':_0x37c0d9[_0x3e3bda(0x49e)][_0x3e3bda(0x3b9)],'top':_0x37c0d9[_0x3e3bda(0x49e)][_0x3e3bda(0x1bb)],'width':_0x37c0d9[_0x3e3bda(0x49e)][_0x3e3bda(0x3d4)],'height':_0x37c0d9['worldRect']['height'],'angle':_0x37c0d9['worldRect'][_0x3e3bda(0x457)]});let _0xfec610=((_0xeba95f=this[_0x3e3bda(0x3c4)])==null?void 0x0:_0xeba95f[_0x3e3bda(0x1af)])??_0x17a9d0;_0xb42b20[_0x3e3bda(0x360)]({'left':_0xfec610['x']-n['ShapeDefaultConfig'][_0x3e3bda(0x1c6)],'top':_0xfec610['y']-n['ShapeDefaultConfig'][_0x3e3bda(0x1c6)]});}[_0x5c10b7(0x17c)](_0x4ddee3){const _0x95ea35=_0x5c10b7;if(!this[_0x95ea35(0x2a2)]||!this[_0x95ea35(0x26f)])return null;let {shapeId:_0x56737d,cxnIndex:_0x492e64}=_0x4ddee3,_0x307b8c=this[_0x95ea35(0x3d9)]['getShapeModel'](this[_0x95ea35(0x2a2)],this[_0x95ea35(0x26f)],_0x56737d);if(!_0x307b8c)return null;let _0x1c7aef=this[_0x95ea35(0x2ac)][_0x95ea35(0x341)]({'unitId':this[_0x95ea35(0x2a2)],'subUnitId':this[_0x95ea35(0x26f)],'drawingId':_0x56737d});if(!(_0x1c7aef!=null&&_0x1c7aef[_0x95ea35(0x44b)]))return null;let {left:_0x482811=0x0,top:_0x2c828f=0x0,width:_0x54aaa5=0x0,height:_0x1aa9f7=0x0,flipX:_0x518b9e=!0x1,flipY:_0x42b3d1=!0x1,angle:_0xc660bc}=_0x1c7aef['transform'];_0x307b8c[_0x95ea35(0x2bc)]({'width':_0x54aaa5,'height':_0x1aa9f7});let _0x2282cb=_0x307b8c[_0x95ea35(0x339)]()['find'](_0x265b3a=>_0x265b3a[_0x95ea35(0x2e1)]===_0x492e64);if(!_0x2282cb)return null;let _0x41dc0f=_0x518b9e?_0x54aaa5-_0x2282cb['x']:_0x2282cb['x'],_0x433b7e=_0x42b3d1?_0x1aa9f7-_0x2282cb['y']:_0x2282cb['y'];if(_0xc660bc!==0x0&&_0xc660bc!=null){let _0x48102b=_0xc660bc*Math['PI']/0xb4,_0xef9689=Math[_0x95ea35(0x373)](_0x48102b),_0x18fd16=Math[_0x95ea35(0x35a)](_0x48102b),_0x1626ed=_0x54aaa5/0x2,_0x249aa0=_0x1aa9f7/0x2,_0x121645=_0x41dc0f-_0x1626ed,_0x2d41fb=_0x433b7e-_0x249aa0;_0x41dc0f=_0x1626ed+_0x121645*_0xef9689-_0x2d41fb*_0x18fd16,_0x433b7e=_0x249aa0+_0x121645*_0x18fd16+_0x2d41fb*_0xef9689;}_0x41dc0f+=_0x482811,_0x433b7e+=_0x2c828f;let _0x48329a=_0x2282cb[_0x95ea35(0x16f)]/0xea60;_0x518b9e&&(_0x48329a=0xb4-_0x48329a),_0x42b3d1&&(_0x48329a=-_0x48329a),_0x48329a+=_0xc660bc||0x0,_0x48329a=(_0x48329a%0x168+0x168)%0x168;let _0x407e01=(0x0,n['getBasicShapeRotateBound'])({'left':_0x482811,'top':_0x2c828f,'width':_0x54aaa5,'height':_0x1aa9f7},_0xc660bc||0x0);return{'point':{'x':_0x41dc0f,'y':_0x433b7e},'angle':_0x48329a,'bounds':_0x407e01};}[_0x5c10b7(0x1b2)](_0x3014c5,_0x4efa46){const _0x1e7963=_0x5c10b7;let _0x398153=_0x4efa46['x']-_0x3014c5['x'],_0x5b3a1c=_0x4efa46['y']-_0x3014c5['y'];return Math[_0x1e7963(0x236)](_0x398153)>=Math['abs'](_0x5b3a1c)?_0x398153>=0x0?0xb4:0x0:_0x5b3a1c>=0x0?0x10e:0x5a;}[_0x5c10b7(0x366)](){const _0x1233d6=_0x5c10b7;this[_0x1233d6(0x490)]=void 0x0,this['_unitId']=void 0x0,this[_0x1233d6(0x26f)]=void 0x0,this[_0x1233d6(0x21b)]();}[_0x5c10b7(0x307)](){const _0x4275e1=_0x5c10b7;this[_0x4275e1(0x21b)](),super[_0x4275e1(0x307)]();}};Ct=A([k(0x1,a[_0x5c10b7(0x393)]),k(0x2,c[_0x5c10b7(0x184)]),k(0x3,s[_0x5c10b7(0x335)]),k(0x4,a[_0x5c10b7(0x1f7)]),k(0x5,(0x0,a['Inject'])(i[_0x5c10b7(0x1bf)])),k(0x6,(0x0,a[_0x5c10b7(0x25d)])(M)),k(0x7,(0x0,a['Inject'])(K))],Ct);let J=class extends a[_0x5c10b7(0x374)]{constructor(_0x48c592,_0x4e6276,_0x16327a){const _0x419df2=_0x5c10b7;super(),this['_sheetPrintInterceptorService']=_0x48c592,this[_0x419df2(0x2ac)]=_0x4e6276,this['_shapeRenderController']=_0x16327a,this[_0x419df2(0x206)]();}['_initPrinting'](){const _0x2083aa=_0x5c10b7;this[_0x2083aa(0x1c0)](this[_0x2083aa(0x2aa)]['interceptor'][_0x2083aa(0x4c0)](this[_0x2083aa(0x2aa)][_0x2083aa(0x4cb)][_0x2083aa(0x1c1)]()[_0x2083aa(0x476)],{'handler':(_0xced589,_0xcbdc83,_0x20c39c)=>{const _0x16560f=_0x2083aa;var _0xd04b78;let {unitId:_0x201b1a,subUnitId:_0x22caf7,scene:_0x4099c8,resourceCollector:_0x3f836a}=_0xcbdc83,_0x1d0993=(_0xd04b78=this[_0x16560f(0x2ac)]['getDrawingDataForUnit'](_0x201b1a))==null?void 0x0:_0xd04b78[_0x22caf7];return _0x1d0993==null||_0x1d0993[_0x16560f(0x1fa)][_0x16560f(0x3cd)](_0xb18a3e=>{const _0x42a674=_0x16560f;let _0x195346=_0x1d0993[_0x42a674(0x2f0)][_0xb18a3e];_0x195346[_0x42a674(0x1e3)]===a[_0x42a674(0x2a4)][_0x42a674(0x2bd)]&&!_0x195346['hidden']&&this['_shapeRenderController'][_0x42a674(0x346)](_0x195346,_0x4099c8,{'resourceCollector':_0x3f836a});}),_0x20c39c(_0xced589);}}));}};J=A([k(0x0,(0x0,a['Inject'])(l[_0x5c10b7(0x37f)])),k(0x1,s[_0x5c10b7(0x335)]),k(0x2,(0x0,a['Inject'])(j))],J);let Y=class extends a[_0x5c10b7(0x374)]{constructor(_0x219a62,_0x1851a0,_0x532f7e){const _0x55d167=_0x5c10b7;super(),this[_0x55d167(0x3f0)]=_0x219a62,this[_0x55d167(0x207)]=_0x1851a0,this[_0x55d167(0x20f)]=_0x532f7e,this['_initPermission']();}[_0x5c10b7(0x2ee)](){const _0x146f41=_0x5c10b7;this[_0x146f41(0x1c0)](this[_0x146f41(0x3f0)][_0x146f41(0x467)](_0x47aeda=>{const _0x30f756=_0x146f41;let _0x51a94f,_0x499695;if(_0x47aeda['id']===i[_0x30f756(0x1a2)]['id']||_0x47aeda['id']===i[_0x30f756(0x31b)]['id']||_0x47aeda['id']===i['UpdateConnectorRelationCommand']['id']){let _0x376659=_0x47aeda[_0x30f756(0x2f7)];_0x51a94f=_0x376659[_0x30f756(0x2c6)],_0x499695=_0x376659['subUnitId'];}_0x51a94f&&_0x499695&&(this[_0x30f756(0x20f)][_0x30f756(0x173)]({'workbookTypes':[o['WorkbookEditablePermission']],'worksheetTypes':[o[_0x30f756(0x331)]]},_0x51a94f,_0x499695)||this[_0x30f756(0x20f)][_0x30f756(0x2c0)](this[_0x30f756(0x207)]['t'](_0x30f756(0x214))));}));}};Y=A([k(0x0,(0x0,a[_0x5c10b7(0x25d)])(a['ICommandService'])),k(0x1,(0x0,a[_0x5c10b7(0x25d)])(a[_0x5c10b7(0x1ea)])),k(0x2,(0x0,a[_0x5c10b7(0x25d)])(o[_0x5c10b7(0x2ab)]))],Y);let X=class{constructor(_0x3969df){const _0x2ce617=_0x5c10b7;this[_0x2ce617(0x33f)]=_0x3969df;}[_0x5c10b7(0x38a)](_0x1c101d,_0x31eb2c){const _0x3e76e6=_0x5c10b7;let _0x5b8bd6=this[_0x3e76e6(0x33f)][_0x3e76e6(0x30f)](_0x1c101d[_0x3e76e6(0x2c6)]),_0x4f22b1=_0x5b8bd6==null?void 0x0:_0x5b8bd6[_0x3e76e6(0x48b)];if(!_0x4f22b1)return;let _0x200eba=(0x0,s[_0x3e76e6(0x4bd)])(_0x1c101d),_0x57e355=_0x4f22b1['getObjectIncludeInGroup'](_0x200eba);_0x57e355==null||_0x57e355[_0x3e76e6(0x452)](_0x31eb2c);}};X=A([k(0x0,c[_0x5c10b7(0x184)])],X);let Z=class extends a[_0x5c10b7(0x3ad)]{constructor(_0x29639d=lt,_0x2930a6,_0x19a78d,_0x2bb7fd,_0x4a6c95){const _0xda5375=_0x5c10b7;super(),this[_0xda5375(0x2c8)]=_0x29639d,this[_0xda5375(0x412)]=_0x2930a6,this[_0xda5375(0x3f0)]=_0x19a78d,this[_0xda5375(0x2e8)]=_0x2bb7fd,this[_0xda5375(0x33f)]=_0x4a6c95;let {..._0x48256d}=(0x0,a['merge'])({},lt,this[_0xda5375(0x2c8)]);this[_0xda5375(0x2e8)][_0xda5375(0x301)](ct,_0x48256d),this[_0xda5375(0x24d)]();}[_0x5c10b7(0x46e)](){const _0x388b2b=_0x5c10b7;this[_0x388b2b(0x412)][_0x388b2b(0x1b5)]([ht]),this[_0x388b2b(0x412)][_0x388b2b(0x410)](ht),(0x0,a[_0x388b2b(0x4ae)])(this[_0x388b2b(0x412)],[[U],[G],[j],[J],[X],[H],[W],[B],[Y]]);}[_0x5c10b7(0x20d)](){const _0x345eeb=_0x5c10b7;(0x0,a[_0x345eeb(0x4ae)])(this[_0x345eeb(0x412)],[[K],[M],[q]]),(0x0,a[_0x345eeb(0x1b9)])(this[_0x345eeb(0x412)],[[q],[M]]),[[K],[ut],[Ct],[_t]][_0x345eeb(0x3cd)](_0x256ff0=>{const _0x2d094a=_0x345eeb;this['disposeWithMe'](this[_0x2d094a(0x33f)]['registerRenderModule'](a[_0x2d094a(0x1c5)][_0x2d094a(0x353)],_0x256ff0));});}[_0x5c10b7(0x361)](){const _0x3245df=_0x5c10b7;(0x0,a[_0x3245df(0x1b9)])(this[_0x3245df(0x412)],[[U],[G],[j],[J],[X],[H],[W],[B],[Y]]);}['onSteady'](){const _0x299f9a=_0x5c10b7;this[_0x299f9a(0x412)][_0x299f9a(0x410)](U)[_0x299f9a(0x2db)]();}[_0x5c10b7(0x24d)](){const _0x7b72c3=_0x5c10b7;[P,S,N,st][_0x7b72c3(0x3cd)](_0x4b3fe5=>this[_0x7b72c3(0x1c0)](this[_0x7b72c3(0x3f0)]['registerCommand'](_0x4b3fe5)));}};E(Z,_0x5c10b7(0x211),a[_0x5c10b7(0x1c5)][_0x5c10b7(0x353)]),E(Z,'pluginName','SHEET_SHAPE_UI_PLUGIN'),E(Z,_0x5c10b7(0x19e),at),E(Z,_0x5c10b7(0x359),ot),Z=A([(0x0,a['DependentOn'])(h[_0x5c10b7(0x3a6)],g[_0x5c10b7(0x323)],s[_0x5c10b7(0x4d7)],c[_0x5c10b7(0x17b)],o['UniverSheetsPlugin'],_[_0x5c10b7(0x334)],m[_0x5c10b7(0x1b7)],r[_0x5c10b7(0x204)],v[_0x5c10b7(0x404)],i[_0x5c10b7(0x36c)],l[_0x5c10b7(0x324)],e[_0x5c10b7(0x212)],t['UniverMobileUIPlugin']),k(0x1,(0x0,a[_0x5c10b7(0x25d)])(a[_0x5c10b7(0x2d9)])),k(0x2,a[_0x5c10b7(0x393)]),k(0x3,a[_0x5c10b7(0x23e)]),k(0x4,c[_0x5c10b7(0x184)])],Z);const wt={'type':a[_0x5c10b7(0x4dc)][_0x5c10b7(0x3b8)],'id':_0x5c10b7(0x40d),'handler'(){return!0x0;}};function Tt(){const _0x5da614=_0x5c10b7;let _0x138a1d=(0x0,t[_0x5da614(0x38d)])(s[_0x5da614(0x335)]),_0x407b79=(0x0,t[_0x5da614(0x431)])(()=>_0x138a1d[_0x5da614(0x47b)],_0x138a1d[_0x5da614(0x3ff)](),!0x1,[_0x138a1d]);return _0x407b79[_0x5da614(0x313)]===0x0?null:(0x0,p[_0x5da614(0x1dd)])(_0x5da614(0x45f),{'children':(0x0,p['jsxs'])('div',{'className':_0x5da614(0x1c2),'children':[(0x0,p[_0x5da614(0x1dd)])(d[_0x5da614(0x2e6)],{'drawings':_0x407b79,'hasCropper':!0x1}),(0x0,p[_0x5da614(0x1dd)])(v['SheetDrawingAnchor'],{'drawings':_0x407b79})]})});}function Et(_0x161f54){const _0xf4bec=_0x5c10b7;let {unitId:_0x30195f,subUnitId:_0x1a8479,shapeId:_0x478ccd}=_0x161f54,_0x32081a=(0x0,t['useDependency'])(a[_0xf4bec(0x393)]),_0x4832b1=(0x0,t[_0xf4bec(0x38d)])(X);return(0x0,p[_0xf4bec(0x1dd)])(e['ShapeEditPanel'],{..._0x161f54,'positionEditor':(0x0,p[_0xf4bec(0x1dd)])(Tt,{}),'onUpdateShapeData':(_0x317854,_0x50c55f)=>{C(_0x32081a,_0x30195f,_0x1a8479,_0x478ccd,_0x317854,_0x50c55f);},'onUpdateLineShapeData':(_0x52b670,_0x792247)=>{w(_0x32081a,_0x30195f,_0x1a8479,_0x478ccd,_0x52b670,_0x792247);},'onUpdateShapeFillImage':_0x34aaee=>{const _0x2c99c9=_0xf4bec;_0x4832b1[_0x2c99c9(0x38a)]({'unitId':_0x30195f,'subUnitId':_0x1a8479,'drawingId':_0x478ccd},_0x34aaee);}});}function Dt(_0x585bdf){const _0x3bf682=_0x5c10b7;let _0x423fa6=(0x0,t[_0x3bf682(0x38d)])(e[_0x3bf682(0x3ba)]),_0x13aa7e=(0x0,t[_0x3bf682(0x431)])(()=>_0x423fa6['visible$'],_0x423fa6[_0x3bf682(0x442)](),!0x1,[_0x423fa6]),_0xb5260a=_0x585bdf[_0x3bf682(0x289)][_0x3bf682(0x241)];return!_0xb5260a||!_0x13aa7e?null:(0x0,p['jsx'])(Ot,{..._0xb5260a,'canvasElement':_0x585bdf[_0x3bf682(0x289)]['canvasElement']});}function Ot(_0xf6eee8){const _0x3b57a5=_0x5c10b7;let _0xe7650a=(0x0,t[_0x3b57a5(0x38d)])(a[_0x3b57a5(0x393)]),_0x560ffd=(0x0,t[_0x3b57a5(0x38d)])(i['SheetsShapeService']),{unitId:_0x4950f9,subUnitId:_0x542eeb,drawingId:_0x481b28,drawingType:_0x1bc815,shapeType:_0x4f1151}=_0xf6eee8,[_0x10443f,_0x47f78f]=(0x0,b[_0x3b57a5(0x473)])(_0xf6eee8[_0x3b57a5(0x2a5)]),_0x3d006f=(0x0,b[_0x3b57a5(0x2a7)])(()=>(0x0,e[_0x3b57a5(0x445)])(_0x10443f),[_0x10443f]),_0x459d95=(0x0,b[_0x3b57a5(0x2a7)])(()=>(0x0,e[_0x3b57a5(0x418)])(_0x10443f),[_0x10443f]);(0x0,b[_0x3b57a5(0x3a7)])(()=>{const _0xb1e3ff=_0x3b57a5;let _0x820a30=_0xe7650a[_0xb1e3ff(0x4d1)](_0x138953=>{const _0x346aa7=_0xb1e3ff;if(_0x138953['id']!==i[_0x346aa7(0x186)]['id'])return;let _0x143f55=_0x560ffd[_0x346aa7(0x415)](_0x4950f9,_0x542eeb,_0x481b28);_0x143f55&&_0x47f78f(_0x143f55);});return()=>_0x820a30['dispose']();},[_0xe7650a,_0x481b28,_0x560ffd,_0x542eeb,_0x4950f9]);let _0x21308a=_0x22d0d1=>{_0x47f78f(_0x559edb=>({..._0x559edb,..._0x22d0d1}));},_0x226b24=_0x400caf=>{const _0x31e5f9=_0x3b57a5;let _0x53370e=(0x0,e[_0x31e5f9(0x170)])(_0x10443f,_0x400caf);C(_0xe7650a,_0x4950f9,_0x542eeb,_0x481b28,{'oldShapeData':{'shapeText':_0x10443f[_0x31e5f9(0x2c1)]}},_0x53370e),_0x21308a(_0x53370e);},_0x52b5f6=(0x0,e[_0x3b57a5(0x276)])({'hostType':a['UniverInstanceType'][_0x3b57a5(0x353)],'unitId':_0x4950f9,'subUnitId':_0x542eeb,'shapeId':_0x481b28,'shapeData':_0x10443f,'onUpdateBinding':_0x3b8aa1=>{const _0x73bfec=_0x3b57a5;let _0x4876dc={'formulaBinding':_0x3b8aa1};C(_0xe7650a,_0x4950f9,_0x542eeb,_0x481b28,{'oldShapeData':{'formulaBinding':_0x10443f[_0x73bfec(0x3ca)]}},_0x4876dc),_0x21308a(_0x4876dc);}});return(0x0,p[_0x3b57a5(0x40e)])(p['Fragment'],{'children':[(0x0,p['jsx'])(e['ShapeFloatingToolbar'],{'canvasElement':_0xf6eee8[_0x3b57a5(0x2c2)],'shapeData':_0x10443f,'shapeType':_0x4f1151,'textStyle':{'ff':n[_0x3b57a5(0x1fb)][_0x3b57a5(0x2c1)][_0x3b57a5(0x176)],'fs':n[_0x3b57a5(0x1fb)][_0x3b57a5(0x2c1)]['fontSize'],'cl':{'rgb':n[_0x3b57a5(0x1fb)]['shapeText'][_0x3b57a5(0x2e2)]},..._0x3d006f},'textModel':_0x459d95?{'ha':_0x459d95['ha']??a[_0x3b57a5(0x197)][_0x3b57a5(0x1e4)],'va':_0x459d95['va']??a['VerticalAlign'][_0x3b57a5(0x27d)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':n['ShapeDefaultConfig']['fill'],'defaultGradientEndColor':n[_0x3b57a5(0x1fb)][_0x3b57a5(0x4cd)],'defaultStrokeColor':n[_0x3b57a5(0x1fb)]['stroke'],'extensionGroups':_0x52b5f6[_0x3b57a5(0x25f)],'floatingObjectToolbarPosition':t['FloatingObjectToolbarPosition'][_0x3b57a5(0x491)],'onUpdateShapeData':(_0xc829b8,_0x255231)=>{C(_0xe7650a,_0x4950f9,_0x542eeb,_0x481b28,_0xc829b8,_0x255231),_0x255231&&_0x21308a(_0x255231);},'onUpdateText':_0x226b24,'onOpenPanel':()=>{const _0x3270bd=_0x3b57a5;_0xe7650a[_0x3270bd(0x4a0)](z['id'],{'unitId':_0x4950f9,'subUnitId':_0x542eeb,'drawingId':_0x481b28});},'onDelete':()=>{const _0x11709f=_0x3b57a5;_0xe7650a['executeCommand'](m[_0x11709f(0x1ee)]['id'],{'unitId':_0x4950f9,'drawings':[{'unitId':_0x4950f9,'subUnitId':_0x542eeb,'drawingId':_0x481b28,'drawingType':_0x1bc815}]});}}),_0x52b5f6[_0x3b57a5(0x248)]]});}function kt(_0x1358b4){const _0x8df97f=_0x5c10b7;return!!_0x1358b4&&'axisAlignSheetTransform'in _0x1358b4&&_0x8df97f(0x39f)in _0x1358b4;}const At=(0x0,b['memo'])(()=>{const _0x271298=_0x5c10b7;let _0x2a65c8=(0x0,t[_0x271298(0x38d)])(H),_0x234e43=(0x0,t['useDependency'])(i[_0x271298(0x1bf)]),_0x23b938=(0x0,t[_0x271298(0x38d)])(s[_0x271298(0x335)]),_0x49e8ca=(0x0,t[_0x271298(0x38d)])(a[_0x271298(0x393)]),_0x2cd0be=(0x0,t[_0x271298(0x38d)])(t[_0x271298(0x462)]),_0x317076=(0x0,t[_0x271298(0x38d)])(c[_0x271298(0x184)]),_0x469e93=(0x0,b['useMemo'])(()=>({'getShapeModel':(_0x437711,_0x26be00,_0x3e5e4a)=>_0x234e43['getShapeModel'](_0x437711,_0x26be00,_0x3e5e4a),'getShapeData':(_0x3ca025,_0x460f27,_0x3368e4)=>_0x234e43[_0x271298(0x415)](_0x3ca025,_0x460f27,_0x3368e4),'getDrawingTransform':(_0x4bbf10,_0x2fd107,_0x39ea2a)=>{const _0x373a0f=_0x271298;let _0x57ed75=_0x23b938[_0x373a0f(0x341)]({'unitId':_0x4bbf10,'subUnitId':_0x2fd107,'drawingId':_0x39ea2a});return _0x57ed75==null?void 0x0:_0x57ed75[_0x373a0f(0x44b)];},'updateShapeText':({unitId:_0x4121d7,subUnitId:_0x5bfa8e,shapeId:_0x104f06,shapeText:_0xa954bc,oldShapeText:_0x533043,hostSize:_0x1e804c})=>{const _0x32d4d7=_0x271298;_0x2cd0be[_0x32d4d7(0x349)](_0x4121d7,()=>{const _0x3eb8b1=_0x32d4d7;var _0x5a09f2;let _0x58ff40=_0x49e8ca[_0x3eb8b1(0x4b3)](S['id'],{'unitId':_0x4121d7,'subUnitId':_0x5bfa8e,'shapeId':_0x104f06,'shapeData':{'shapeText':_0xa954bc},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x533043}}});if(!_0x58ff40||!_0x1e804c)return _0x58ff40;let _0xf176c7=_0x23b938['getDrawingByParam']({'unitId':_0x4121d7,'subUnitId':_0x5bfa8e,'drawingId':_0x104f06}),_0x5d6fc9=_0xf176c7==null?void 0x0:_0xf176c7[_0x3eb8b1(0x44b)];if(!kt(_0xf176c7)||!_0x5d6fc9)return!0x1;let _0x46a706={..._0x5d6fc9,'width':_0x1e804c[_0x3eb8b1(0x3d4)],'height':_0x1e804c[_0x3eb8b1(0x2c3)]},_0x4483a0=(_0x5a09f2=_0x317076[_0x3eb8b1(0x30f)](_0x4121d7))==null||(_0x5a09f2=_0x5a09f2[_0x3eb8b1(0x300)](l[_0x3eb8b1(0x31c)])[_0x3eb8b1(0x267)](_0x5bfa8e))==null?void 0x0:_0x5a09f2[_0x3eb8b1(0x399)];return _0x49e8ca[_0x3eb8b1(0x4b3)](m[_0x3eb8b1(0x44c)]['id'],{'unitId':_0x4121d7,'drawings':[{..._0xf176c7,'transform':_0x46a706,'sheetTransform':_0x4483a0?(0x0,m[_0x3eb8b1(0x4ca)])(_0x46a706,_0x4483a0)??_0xf176c7[_0x3eb8b1(0x39f)]:_0xf176c7[_0x3eb8b1(0x39f)],'axisAlignSheetTransform':_0x4483a0?(0x0,m['transformToAxisAlignPosition'])(_0x46a706,_0x4483a0)??_0xf176c7[_0x3eb8b1(0x2cb)]:_0xf176c7['axisAlignSheetTransform']}]});});},'updateHostSize':({unitId:_0x3d0f28,subUnitId:_0x4ab38d,shapeId:_0x54e3a2,width:_0x208209,height:_0x17e240})=>{const _0x584eb1=_0x271298;var _0x6d46b8;let _0x1295cb=_0x23b938['getDrawingByParam']({'unitId':_0x3d0f28,'subUnitId':_0x4ab38d,'drawingId':_0x54e3a2}),_0xe8c058=_0x1295cb==null?void 0x0:_0x1295cb[_0x584eb1(0x44b)];if(!kt(_0x1295cb)||!_0xe8c058)return;let _0x3d4d4a={..._0xe8c058,'width':_0x208209,'height':_0x17e240},_0x570eb7=(_0x6d46b8=_0x317076['getRenderUnitById'](_0x3d0f28))==null||(_0x6d46b8=_0x6d46b8[_0x584eb1(0x300)](l[_0x584eb1(0x31c)])[_0x584eb1(0x267)](_0x4ab38d))==null?void 0x0:_0x6d46b8[_0x584eb1(0x399)],_0x3a0cc2=_0x570eb7?(0x0,m[_0x584eb1(0x4ca)])(_0x3d4d4a,_0x570eb7)??_0x1295cb[_0x584eb1(0x39f)]:_0x1295cb['sheetTransform'],_0x47e8c1=_0x570eb7?(0x0,m[_0x584eb1(0x4cc)])(_0x3d4d4a,_0x570eb7)??_0x1295cb['axisAlignSheetTransform']:_0x1295cb[_0x584eb1(0x2cb)];_0x49e8ca[_0x584eb1(0x4a0)](m[_0x584eb1(0x44c)]['id'],{'unitId':_0x3d0f28,'drawings':[{..._0x1295cb,'transform':_0x3d4d4a,'sheetTransform':_0x3a0cc2,'axisAlignSheetTransform':_0x47e8c1}]});},'allowHostSizeShrink':({unitId:_0x11d4ef,subUnitId:_0x2f9837,shapeId:_0x4e4e4f})=>(0x0,e[_0x271298(0x3db)])(_0x234e43[_0x271298(0x415)](_0x11d4ef,_0x2f9837,_0x4e4e4f)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x49e8ca,_0x23b938,_0x317076,_0x234e43,_0x2cd0be]),_0x5e7545=(0x0,b[_0x271298(0x2a7)])(()=>({'viewportKeys':{'main':c[_0x271298(0x1e2)]['VIEW_MAIN'],'leftTop':c[_0x271298(0x1e2)][_0x271298(0x1a3)],'top':c[_0x271298(0x1e2)][_0x271298(0x34f)],'left':c['SHEET_VIEWPORT_KEY'][_0x271298(0x3eb)]},'getSkeleton':(_0x4505ad,_0x3c0426)=>{const _0x4cd237=_0x271298;var _0x3960bc;return((_0x3960bc=_0x4505ad[_0x4cd237(0x300)](l[_0x4cd237(0x31c)])['getSkeletonParam'](_0x3c0426[_0x4cd237(0x2b9)]))==null?void 0x0:_0x3960bc[_0x4cd237(0x399)])??null;}}),[]);return(0x0,p[_0x271298(0x1dd)])(e[_0x271298(0x1d0)],{'adapter':_0x469e93,'editingService':_0x2a65c8,'editorUnitId':re,'positionOptions':_0x5e7545});});let jt=class extends a[_0x5c10b7(0x374)]{constructor(_0x55a47a,_0x1bca1f){const _0x1963d3=_0x5c10b7;super(),this[_0x1963d3(0x371)]=_0x55a47a,this[_0x1963d3(0x425)]=_0x1bca1f,this['_registerIcons'](),this[_0x1963d3(0x3d3)]();}['_registerIcons'](){const _0xcf8d8f=_0x5c10b7;this['_iconManager']['has'](_0xcf8d8f(0x1f8))||this['disposeWithMe'](this['_iconManager'][_0xcf8d8f(0x203)]({'ObjectLayersIcon':y[_0xcf8d8f(0x1f8)]})),this['_iconManager']['has'](_0xcf8d8f(0x264))||this[_0xcf8d8f(0x1c0)](this[_0xcf8d8f(0x425)][_0xcf8d8f(0x203)]({'FlipHorizontalIcon':y[_0xcf8d8f(0x264)]})),this[_0xcf8d8f(0x425)][_0xcf8d8f(0x2e0)](_0xcf8d8f(0x3af))||this[_0xcf8d8f(0x1c0)](this[_0xcf8d8f(0x425)][_0xcf8d8f(0x203)]({'FlipVerticalIcon':y[_0xcf8d8f(0x3af)]})),this[_0xcf8d8f(0x425)][_0xcf8d8f(0x2e0)](_0xcf8d8f(0x41b))||this[_0xcf8d8f(0x1c0)](this['_iconManager']['register']({'BottomIcon':y[_0xcf8d8f(0x41b)]})),this['_iconManager'][_0xcf8d8f(0x2e0)](_0xcf8d8f(0x3b7))||this[_0xcf8d8f(0x1c0)](this[_0xcf8d8f(0x425)][_0xcf8d8f(0x203)]({'MoveDownIcon':y[_0xcf8d8f(0x3b7)]})),this[_0xcf8d8f(0x425)]['has']('MoveUpIcon')||this[_0xcf8d8f(0x1c0)](this[_0xcf8d8f(0x425)][_0xcf8d8f(0x203)]({'MoveUpIcon':y[_0xcf8d8f(0x396)]})),this[_0xcf8d8f(0x425)][_0xcf8d8f(0x2e0)]('ShapeFormatSettingIcon')||this[_0xcf8d8f(0x1c0)](this[_0xcf8d8f(0x425)][_0xcf8d8f(0x203)]({'ShapeFormatSettingIcon':y['ShapeFormatSettingIcon']})),this[_0xcf8d8f(0x425)][_0xcf8d8f(0x2e0)]('TopmostIcon')||this[_0xcf8d8f(0x1c0)](this[_0xcf8d8f(0x425)][_0xcf8d8f(0x203)]({'TopmostIcon':y[_0xcf8d8f(0x245)]}));}[_0x5c10b7(0x3d3)](){const _0x4fc3c0=_0x5c10b7;this[_0x4fc3c0(0x1c0)](this[_0x4fc3c0(0x371)][_0x4fc3c0(0x203)](F,Et)),this[_0x4fc3c0(0x1c0)](this['_componentManager']['register'](I,pt)),this['disposeWithMe'](this[_0x4fc3c0(0x371)][_0x4fc3c0(0x203)](le,he)),this[_0x4fc3c0(0x1c0)](this[_0x4fc3c0(0x371)][_0x4fc3c0(0x203)](ue,fe)),this['_componentManager'][_0x4fc3c0(0x3c3)](d['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'])||this['disposeWithMe'](this[_0x4fc3c0(0x371)][_0x4fc3c0(0x203)](d[_0x4fc3c0(0x2a1)],me)),this[_0x4fc3c0(0x1c0)](this['_componentManager']['register'](L,Dt)),this[_0x4fc3c0(0x1c0)](this[_0x4fc3c0(0x371)][_0x4fc3c0(0x203)](Ee,Ae)),this['disposeWithMe'](this[_0x4fc3c0(0x371)][_0x4fc3c0(0x203)](Te,je)),this['disposeWithMe'](this['_componentManager']['register'](De,Me)),this[_0x4fc3c0(0x1c0)](this[_0x4fc3c0(0x371)][_0x4fc3c0(0x203)](Oe,Ne)),this[_0x4fc3c0(0x1c0)](this[_0x4fc3c0(0x371)][_0x4fc3c0(0x203)](ie,e[_0x4fc3c0(0x367)])),this['disposeWithMe'](this[_0x4fc3c0(0x371)][_0x4fc3c0(0x203)](_0x4fc3c0(0x43a),At));}};jt=A([k(0x0,(0x0,a[_0x5c10b7(0x25d)])(t[_0x5c10b7(0x221)])),k(0x1,(0x0,a[_0x5c10b7(0x25d)])(t['IconManager']))],jt);let Mt=class extends a[_0x5c10b7(0x374)]{constructor(_0x4e9623,_0x3d04e3,_0x567fb5,_0x45f157,_0x504477,_0x12b425,_0x2497e7,_0x4cb8fb,_0x6f4442){const _0x23c735=_0x5c10b7;super();let _0x108c12=_0x42a6fa=>{const _0xd4fa2b=_0x1d07;var _0x2c8d40,_0x32e526;return(((_0x2c8d40=_0x4cb8fb['getPermissionPoint'](new o[(_0xd4fa2b(0x2c4))](_0x42a6fa[_0xd4fa2b(0x2c6)])['id']))==null?void 0x0:_0x2c8d40[_0xd4fa2b(0x1ed)])??!0x0)&&(((_0x32e526=_0x4cb8fb[_0xd4fa2b(0x469)](new o[(_0xd4fa2b(0x331))](_0x42a6fa[_0xd4fa2b(0x2c6)],_0x42a6fa['subUnitId'])['id']))==null?void 0x0:_0x32e526[_0xd4fa2b(0x1ed)])??!0x0);},_0x2a8692=_0x51f713=>_0x51f713[_0x23c735(0x3c8)]&&_0x108c12(_0x51f713)?_0x567fb5[_0x23c735(0x415)](_0x51f713[_0x23c735(0x2c6)],_0x51f713[_0x23c735(0x2b9)],_0x51f713['shapeId'])??null:null,_0x11b35d=()=>{const _0x2d1034=_0x23c735;let _0x195925=_0x504477['getFocusDrawings'](),_0x43b3ed=_0x195925[_0x2d1034(0x313)]===0x1?_0x195925[0x0]:null;return(_0x43b3ed==null?void 0x0:_0x43b3ed['drawingType'])===a[_0x2d1034(0x2a4)][_0x2d1034(0x2bd)]&&_0x43b3ed[_0x2d1034(0x2c6)]===_0x4e9623['unitId']?{'unitId':_0x43b3ed[_0x2d1034(0x2c6)],'subUnitId':_0x43b3ed[_0x2d1034(0x2b9)],'shapeId':_0x43b3ed[_0x2d1034(0x2de)]}:null;};this[_0x23c735(0x1c0)]((0x0,e[_0x23c735(0x1db)])(_0x4e9623,_0x3d04e3,{'changes$':(0x0,u[_0x23c735(0x343)])(_0x504477[_0x23c735(0x47b)],_0x45f157[_0x23c735(0x4c1)],_0x4cb8fb['permissionPointUpdate$']),'isActive':()=>{const _0x1f37bc=_0x23c735;var _0x3eedab;return((_0x3eedab=_0x12b425['getFocusedUnit']())==null?void 0x0:_0x3eedab[_0x1f37bc(0x400)]())===_0x4e9623[_0x1f37bc(0x2c6)]&&!_0x2497e7[_0x1f37bc(0x3cb)](a[_0x1f37bc(0x3ea)])&&_0x504477[_0x1f37bc(0x3ff)]()[_0x1f37bc(0x2f2)](_0x42ed34=>_0x42ed34[_0x1f37bc(0x2c6)]===_0x4e9623[_0x1f37bc(0x2c6)]);},'getSelectedTarget':_0x11b35d,'getSource':()=>{let _0x1d9ece=_0x11b35d();return _0x1d9ece?_0x2a8692(_0x1d9ece):null;},'getTarget':_0x3ca63c=>{const _0x38b60e=_0x23c735;let _0x513554=_0x4e9623['scene'][_0x38b60e(0x375)](new c[(_0x38b60e(0x327))](_0x3ca63c[_0x38b60e(0x2d3)],_0x3ca63c[_0x38b60e(0x317)]));if(!(_0x513554 instanceof D))return null;let _0x3fa8f8={'unitId':_0x4e9623[_0x38b60e(0x2c6)],'subUnitId':_0x513554[_0x38b60e(0x2b9)],'shapeId':_0x513554[_0x38b60e(0x3c8)]};return _0x108c12(_0x3fa8f8)?_0x3fa8f8:null;},'getShape':_0x2a8692,'update':(_0x140649,_0x3d72b7,_0xf72c72)=>_0x6f4442['executeCommand'](S['id'],{..._0x140649,'shapeData':_0xf72c72,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x3d72b7}})}));}};Mt=A([k(0x1,(0x0,a[_0x5c10b7(0x25d)])(t['FormatPainterSessionService'])),k(0x2,(0x0,a['Inject'])(i[_0x5c10b7(0x1bf)])),k(0x3,(0x0,a[_0x5c10b7(0x25d)])(H)),k(0x4,s[_0x5c10b7(0x335)]),k(0x5,a['IUniverInstanceService']),k(0x6,a[_0x5c10b7(0x1f6)]),k(0x7,a['IPermissionService']),k(0x8,a['ICommandService'])],Mt);const Nt=_0x5c10b7(0x1cc);let Pt=class extends a['Disposable']{constructor(_0x53a26f,_0x147a55,_0x3fd37f,_0xd1a2d6,_0x41f595,_0x3ebe2b){const _0x37a0a6=_0x5c10b7;super(),this[_0x37a0a6(0x28d)]=_0x53a26f,this[_0x37a0a6(0x4c7)]=_0x147a55,this[_0x37a0a6(0x2ac)]=_0x3fd37f,this[_0x37a0a6(0x287)]=_0xd1a2d6,this[_0x37a0a6(0x33f)]=_0x41f595,this[_0x37a0a6(0x48a)]=_0x3ebe2b,E(this,_0x37a0a6(0x271),!0x1),this[_0x37a0a6(0x28d)][_0x37a0a6(0x348)](nt),this[_0x37a0a6(0x1c0)]((0x0,a['toDisposable'])(this[_0x37a0a6(0x2ac)][_0x37a0a6(0x47b)]['subscribe'](()=>this[_0x37a0a6(0x297)]()))),this[_0x37a0a6(0x297)]();}[_0x5c10b7(0x307)](){const _0x1f7372=_0x5c10b7;this['_shapeFloatingToolbarService'][_0x1f7372(0x4e1)](!0x1,Nt),this[_0x1f7372(0x1ec)](),super['dispose']();}[_0x5c10b7(0x297)](){const _0x5cca35=_0x5c10b7;var _0x175274;let _0x18b1c3=this[_0x5cca35(0x2ac)][_0x5cca35(0x3ff)](),_0x4caa6e=_0x18b1c3[_0x5cca35(0x313)]===0x1?_0x18b1c3[0x0]:void 0x0;if((_0x4caa6e==null?void 0x0:_0x4caa6e[_0x5cca35(0x1e3)])!==a[_0x5cca35(0x2a4)]['DRAWING_SHAPE']||this[_0x5cca35(0x287)][_0x5cca35(0x22f)](_0x4caa6e[_0x5cca35(0x2c6)])!==a['UniverInstanceType'][_0x5cca35(0x353)]){this[_0x5cca35(0x48a)]['setFallbackVisible'](!0x1,Nt),this[_0x5cca35(0x1ec)]();return;}let _0x1ee8de=(_0x175274=this[_0x5cca35(0x33f)][_0x5cca35(0x30f)](_0x4caa6e[_0x5cca35(0x2c6)]))==null?void 0x0:_0x175274[_0x5cca35(0x35c)][_0x5cca35(0x3a4)](),_0x3622a3=(0x0,e[_0x5cca35(0x4b0)])(_0x1ee8de)==='isolated';if(this[_0x5cca35(0x48a)]['setFallbackVisible'](_0x3622a3,Nt),_0x3622a3){this[_0x5cca35(0x1ec)]();return;}this[_0x5cca35(0x271)]||(this['_visible']=!0x0,this[_0x5cca35(0x4c7)][_0x5cca35(0x259)](R,{'activate':!0x0}));}[_0x5c10b7(0x1ec)](){const _0xef6fcc=_0x5c10b7;this[_0xef6fcc(0x271)]&&(this[_0xef6fcc(0x271)]=!0x1,this['_ribbonService'][_0xef6fcc(0x430)](R),this[_0xef6fcc(0x4c7)]['setCollapsedIds']([]));}};Pt=A([k(0x0,t[_0x5c10b7(0x3d5)]),k(0x1,t[_0x5c10b7(0x34d)]),k(0x2,s[_0x5c10b7(0x335)]),k(0x3,a['IUniverInstanceService']),k(0x4,c['IRenderManagerService']),k(0x5,(0x0,a[_0x5c10b7(0x25d)])(e[_0x5c10b7(0x3ba)]))],Pt);let Ft=class extends e[_0x5c10b7(0x198)]{constructor(_0x569359,_0x1ca24f,_0x7754bc,_0x216535,_0x103251,_0x394c92,_0x4869c3,_0x501dcf,_0x191ccf,_0x5d48be){super(_0x569359,_0x1ca24f,_0x7754bc,_0x216535,_0x103251,_0x394c92,_0x4869c3,_0x501dcf,_0x191ccf,_0x5d48be,{'componentKey':ie,'editorUnitId':re});}};Ft=A([k(0x1,(0x0,a[_0x5c10b7(0x25d)])(g['DocSelectionManagerService'])),k(0x2,(0x0,a[_0x5c10b7(0x25d)])(_[_0x5c10b7(0x43c)])),k(0x3,(0x0,a[_0x5c10b7(0x25d)])(_[_0x5c10b7(0x243)])),k(0x4,a[_0x5c10b7(0x393)]),k(0x5,(0x0,a[_0x5c10b7(0x25d)])(_[_0x5c10b7(0x318)])),k(0x6,(0x0,a[_0x5c10b7(0x25d)])(e['ShapeTextHyperLinkPopupService'])),k(0x7,(0x0,a[_0x5c10b7(0x25d)])(g[_0x5c10b7(0x454)])),k(0x8,(0x0,a['Inject'])(_['DocRenderController'])),k(0x9,(0x0,a[_0x5c10b7(0x25d)])(H))],Ft);let It=class extends e[_0x5c10b7(0x23d)]{constructor(_0xd76cd5,_0x58ed6,_0x254701,_0x18cd3f,_0x36fe83){const _0x2b7ea1=_0x5c10b7;super(_0xd76cd5,_0x58ed6,{'editing$':_0x254701[_0x2b7ea1(0x4c1)],'resolve':_0x26b287=>{const _0x1a071f=_0x2b7ea1;var _0x52494f,_0x5c7511,_0x28d260;let _0x1ce4b7=new c[(_0x1a071f(0x327))](_0x26b287['offsetX'],_0x26b287[_0x1a071f(0x317)]),_0x29d0f5=((_0x52494f=_0xd76cd5[_0x1a071f(0x48b)]['getActiveViewportByCoord'](_0x1ce4b7))==null?void 0x0:_0x52494f[_0x1a071f(0x4a5)](_0x1ce4b7))??_0x1ce4b7,_0x37ed7d=(0x0,e['resolveShapeTextHyperLinkObject'])(_0xd76cd5['scene'][_0x1a071f(0x375)](_0x1ce4b7)??null,_0x29d0f5);if(!(_0x37ed7d instanceof D))return null;let _0x5a2b11=_0x37ed7d[_0x1a071f(0x36a)](_0x29d0f5);if(!_0x5a2b11)return null;let _0x1c63e0=_0x37ed7d,_0x5a2c2b={'componentKey':e[_0x1a071f(0x244)][_0x1a071f(0x3b6)],'direction':_0x1a071f(0x183),'offset':[0x0,0xa],'onClickOutside':()=>_0x58ed6[_0x1a071f(0x293)]()};return{'object':_0x37ed7d,'info':{..._0x5a2b11,'unitId':_0x37ed7d[_0x1a071f(0x2c6)],'subUnitId':_0x37ed7d[_0x1a071f(0x2b9)],'shapeKey':_0x37ed7d[_0x1a071f(0x202)],'readonly':!0x0,'copyable':((_0x5c7511=_0x36fe83[_0x1a071f(0x469)](new o[(_0x1a071f(0x275))](_0x37ed7d[_0x1a071f(0x2c6)])['id']))==null?void 0x0:_0x5c7511[_0x1a071f(0x1ed)])!==!0x1&&((_0x28d260=_0x36fe83[_0x1a071f(0x469)](new o[(_0x1a071f(0x485))](_0x37ed7d[_0x1a071f(0x2c6)],_0x37ed7d[_0x1a071f(0x2b9)])['id']))==null?void 0x0:_0x28d260[_0x1a071f(0x1ed)])!==!0x1},'attachPopup':()=>_0x18cd3f['attachPopupToObject'](_0x1c63e0,_0x5a2c2b)};}}),this['disposeWithMe'](_0xd76cd5['unit'][_0x2b7ea1(0x370)]['subscribe'](()=>this[_0x2b7ea1(0x3d0)]()));}};It=A([k(0x1,(0x0,a[_0x5c10b7(0x25d)])(e[_0x5c10b7(0x274)])),k(0x2,(0x0,a[_0x5c10b7(0x25d)])(H)),k(0x3,(0x0,a[_0x5c10b7(0x25d)])(l[_0x5c10b7(0x413)])),k(0x4,a[_0x5c10b7(0x468)])],It);let Q=class extends a[_0x5c10b7(0x374)]{constructor(_0x221bf0,_0x25b4b6,_0x51b869,_0x4873ea,_0x1717ec,_0x50f1ae,_0x3bc6d6,_0x2d13a4,_0x429fa0,_0x3f2947,_0x37d980){const _0x4ff20a=_0x5c10b7;super(),this['_univerInstanceService']=_0x221bf0,this[_0x4ff20a(0x1f0)]=_0x25b4b6,this[_0x4ff20a(0x28d)]=_0x51b869,this[_0x4ff20a(0x3d9)]=_0x4873ea,this['_localeService']=_0x1717ec,this['_commandService']=_0x50f1ae,this['_drawingManagerService']=_0x3bc6d6,this[_0x4ff20a(0x40b)]=_0x2d13a4,this[_0x4ff20a(0x4da)]=_0x429fa0,this[_0x4ff20a(0x33f)]=_0x3f2947,this['_shapeTextEditingService']=_0x37d980,E(this,_0x4ff20a(0x2af),null),E(this,_0x4ff20a(0x189),null),E(this,'_isOpenedShapeEditPanel',!0x1),E(this,_0x4ff20a(0x29f),0x0),E(this,_0x4ff20a(0x36e),null),E(this,'_disposePopups',[]),this['_initMenu'](),this[_0x4ff20a(0x1c0)](this['_univerInstanceService'][_0x4ff20a(0x4a2)](a[_0x4ff20a(0x1c5)][_0x4ff20a(0x353)])[_0x4ff20a(0x45e)](_0x44c014=>{const _0x1c5bd8=_0x4ff20a;if(!_0x44c014){var _0x3ee94a;(_0x3ee94a=this[_0x1c5bd8(0x2af)])==null||_0x3ee94a[_0x1c5bd8(0x307)]();}})),this[_0x4ff20a(0x1a0)](),this[_0x4ff20a(0x2db)](),this[_0x4ff20a(0x1c0)](this[_0x4ff20a(0x1bc)][_0x4ff20a(0x4c1)][_0x4ff20a(0x45e)](_0x26ae34=>{_0x26ae34&&this['_clearPopups']();}));}['_initMenu'](){const _0x2c37b6=_0x5c10b7;this[_0x2c37b6(0x28d)][_0x2c37b6(0x348)](it);}[_0x5c10b7(0x2db)](){const _0x466000=_0x5c10b7;this[_0x466000(0x36e)]||=this['disposeWithMe']((0x0,e[_0x466000(0x172)])(this[_0x466000(0x33f)],a['UniverInstanceType'][_0x466000(0x353)],_0x429eca=>this[_0x466000(0x2fc)](_0x429eca)));}[_0x5c10b7(0x28f)](_0x4ada64,_0x690450,_0x36c5e4){const _0x2a3c79=_0x5c10b7;let _0x537578=this[_0x2a3c79(0x3d9)][_0x2a3c79(0x383)](_0x4ada64,_0x690450,_0x36c5e4),_0x168d95=this['_sheetsShapeService'][_0x2a3c79(0x415)](_0x4ada64,_0x690450,_0x36c5e4);return _0x537578!==void 0x0&&_0x168d95!==void 0x0?{'shapeData':_0x168d95,'shapeId':_0x36c5e4,'shapeType':_0x537578,'unitId':_0x4ada64,'subUnitId':_0x690450,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}[_0x5c10b7(0x3a2)](){const _0x1a3721=_0x5c10b7;this[_0x1a3721(0x34e)]['forEach'](_0x2d01e9=>_0x2d01e9[_0x1a3721(0x307)]()),this[_0x1a3721(0x34e)][_0x1a3721(0x313)]=0x0;}[_0x5c10b7(0x2fc)](_0x53cb90){const _0x414cc8=_0x5c10b7;let _0x1ab3ef=new a[(_0x414cc8(0x2f1))]();return _0x1ab3ef[_0x414cc8(0x1b5)](_0x53cb90[_0x414cc8(0x258)][_0x414cc8(0x45e)](()=>{const _0x44edd3=_0x414cc8;let _0x12756c=_0x53cb90[_0x44edd3(0x233)]();if(this[_0x44edd3(0x3a2)](),this[_0x44edd3(0x4d8)]||_0x12756c[_0x44edd3(0x20b)]>0x1)return;let _0xc63c1b=_0x12756c[_0x44edd3(0x364)]()['next']()['value'];if(!_0xc63c1b)return;let _0x3aecd6=this[_0x44edd3(0x2ac)][_0x44edd3(0x49f)](_0xc63c1b[_0x44edd3(0x202)]);if(!_0x3aecd6||_0x3aecd6[_0x44edd3(0x1e3)]!==a[_0x44edd3(0x2a4)]['DRAWING_SHAPE'])return;let {unitId:_0x322d98,subUnitId:_0x32b36b,drawingId:_0x2d56ca,drawingType:_0x106b71}=_0x3aecd6,_0x41b855=this[_0x44edd3(0x28f)](_0x322d98,_0x32b36b,_0x2d56ca);if(!_0x41b855)return;this[_0x44edd3(0x4da)][_0x44edd3(0x46a)](a[_0x44edd3(0x237)],!0x0);let _0x3097d8=this[_0x44edd3(0x33f)]['getRenderUnitById'](_0x322d98),_0x38c93d=((_0x3097d8==null?void 0x0:_0x3097d8[_0x44edd3(0x4c8)])===!0x1?_0x3097d8[_0x44edd3(0x300)](l[_0x44edd3(0x413)]):this[_0x44edd3(0x40b)])[_0x44edd3(0x1c4)](_0xc63c1b,{'componentKey':L,'direction':_0x44edd3(0x43d),'offset':[0x0,e[_0x44edd3(0x2ad)]],'extraProps':{'unitId':_0x322d98,'subUnitId':_0x32b36b,'drawingId':_0x2d56ca,'drawingType':_0x106b71,'shapeType':_0x41b855[_0x44edd3(0x17e)],'shapeData':_0x41b855['shapeData']}});this[_0x44edd3(0x34e)]['push'](this[_0x44edd3(0x1c0)](_0x38c93d)),this['_drawingManagerService'][_0x44edd3(0x3ff)]()[_0x44edd3(0x31e)](_0x2e31e5=>_0x2e31e5[_0x44edd3(0x2c6)]===_0x322d98&&_0x2e31e5[_0x44edd3(0x2b9)]===_0x32b36b&&_0x2e31e5[_0x44edd3(0x2de)]===_0x2d56ca)||this[_0x44edd3(0x2ac)][_0x44edd3(0x1fe)]([{'unitId':_0x322d98,'subUnitId':_0x32b36b,'drawingId':_0x2d56ca}]);})),_0x1ab3ef['add'](_0x53cb90['clearControl$'][_0x414cc8(0x45e)](()=>{const _0x595918=_0x414cc8;this[_0x595918(0x3a2)](),this[_0x595918(0x4da)][_0x595918(0x46a)](a['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x595918(0x2ac)][_0x595918(0x1fe)](null);})),_0x1ab3ef[_0x414cc8(0x1b5)](_0x53cb90[_0x414cc8(0x450)]['subscribe'](()=>{const _0x161b6c=_0x414cc8;this[_0x161b6c(0x3a2)]();})),_0x1ab3ef[_0x414cc8(0x1b5)](_0x53cb90[_0x414cc8(0x4e5)][_0x414cc8(0x45e)](()=>{const _0x1098d2=_0x414cc8;this[_0x1098d2(0x3a2)]();})),(0x0,a[_0x414cc8(0x3e8)])(()=>{const _0x263340=_0x414cc8;_0x1ab3ef[_0x263340(0x307)](),this[_0x263340(0x3a2)]();});}['_registerOperations'](){const _0x8edc83=_0x5c10b7;this[_0x8edc83(0x1c0)](this[_0x8edc83(0x3f0)][_0x8edc83(0x4d1)](_0xd83c08=>{const _0x492f7e=_0x8edc83;if(_0xd83c08['id']===z['id']){let {unitId:_0x1f678e,subUnitId:_0x22782d,drawingId:_0xd3d7eb}=_0xd83c08['params'];this['_shapeEditPanelVersion']+=0x1,this[_0x492f7e(0x189)]=this[_0x492f7e(0x28f)](_0x1f678e,_0x22782d,_0xd3d7eb),this[_0x492f7e(0x3a2)](),this[_0x492f7e(0x33c)]();}if(_0xd83c08['id']===wt['id']&&(this[_0x492f7e(0x189)]=null,this[_0x492f7e(0x220)]()),_0xd83c08['id']===i[_0x492f7e(0x186)]['id']){let {unitId:_0x4482cc,subUnitId:_0x9cd550,shapeId:_0x1ad037}=_0xd83c08[_0x492f7e(0x2f7)];if(this[_0x492f7e(0x189)]&&this[_0x492f7e(0x189)][_0x492f7e(0x3c8)]===_0x1ad037){let _0x264f48=this[_0x492f7e(0x28f)](_0x4482cc,_0x9cd550,_0x1ad037);_0x264f48&&(this[_0x492f7e(0x29f)]+=0x1,_0x264f48[_0x492f7e(0x359)]=this[_0x492f7e(0x29f)],this[_0x492f7e(0x189)]=_0x264f48,this[_0x492f7e(0x4d8)]&&this[_0x492f7e(0x33c)]());}}})),this[_0x8edc83(0x1c0)](this['_drawingManagerService']['focus$']['subscribe'](_0x17e0ef=>{const _0x1dc596=_0x8edc83;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x17e0ef[_0x1dc596(0x313)]===0x0){this[_0x1dc596(0x189)]=null,this[_0x1dc596(0x220)]();return;}if(_0x17e0ef[_0x1dc596(0x313)]===0x1&&_0x17e0ef[0x0][_0x1dc596(0x1e3)]===a['DrawingTypeEnum']['DRAWING_SHAPE']&&(this[_0x1dc596(0x29f)]+=0x1,this[_0x1dc596(0x189)]=this[_0x1dc596(0x28f)](_0x17e0ef[0x0][_0x1dc596(0x2c6)],_0x17e0ef[0x0][_0x1dc596(0x2b9)],_0x17e0ef[0x0]['drawingId']),this[_0x1dc596(0x189)])){this['_openShapeEditPanel']();return;}let _0x41de89=_0x17e0ef['filter'](_0x42eb8e=>_0x42eb8e[_0x1dc596(0x1e3)]===a[_0x1dc596(0x2a4)]['DRAWING_SHAPE']);if(_0x17e0ef[_0x1dc596(0x313)]>0x1&&_0x41de89[_0x1dc596(0x313)]===_0x17e0ef[_0x1dc596(0x313)]){if(this[_0x1dc596(0x29f)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x17e0ef[0x0][_0x1dc596(0x2c6)],_0x17e0ef[0x0]['subUnitId'],_0x17e0ef[0x0][_0x1dc596(0x2de)]),this[_0x1dc596(0x189)]){this[_0x1dc596(0x33c)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x17e0ef[0x0]['unitId'],_0x17e0ef[0x0]['subUnitId'],_0x17e0ef[0x0]['drawingId']),this[_0x1dc596(0x189)]){this['_activeShapeInfo'][_0x1dc596(0x421)]=!0x0,this[_0x1dc596(0x33c)]();return;}}this[_0x1dc596(0x220)]();}));}[_0x5c10b7(0x33c)](){const _0x41d4a0=_0x5c10b7;this[_0x41d4a0(0x189)]&&(this[_0x41d4a0(0x2af)]=this[_0x41d4a0(0x1f0)][_0x41d4a0(0x30b)]({'id':F,'header':{'title':this[_0x41d4a0(0x207)]['t'](_0x41d4a0(0x447))},'width':0x184,'children':{'label':F,...this[_0x41d4a0(0x189)]},'onClose':()=>{const _0x2c4f1e=_0x41d4a0;this[_0x2c4f1e(0x2ac)][_0x2c4f1e(0x1fe)](null),this[_0x2c4f1e(0x4da)]['setContextValue'](a['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x2c4f1e(0x2af)]=null;}}),this[_0x41d4a0(0x4d8)]=!0x0);}[_0x5c10b7(0x220)](){const _0xdbd12c=_0x5c10b7;this[_0xdbd12c(0x4d8)]=!0x1,this['_sidebarService'][_0xdbd12c(0x284)](F),this['_sidebarDisposable']=null,this[_0xdbd12c(0x4da)][_0xdbd12c(0x46a)](a[_0xdbd12c(0x237)],!0x1),this[_0xdbd12c(0x2ac)][_0xdbd12c(0x1fe)](null);}};Q=A([k(0x0,a['IUniverInstanceService']),k(0x1,(0x0,a['Inject'])(t[_0x5c10b7(0x17d)])),k(0x2,t['IMenuManagerService']),k(0x3,(0x0,a['Inject'])(i[_0x5c10b7(0x1bf)])),k(0x4,(0x0,a[_0x5c10b7(0x25d)])(a[_0x5c10b7(0x1ea)])),k(0x5,a[_0x5c10b7(0x393)]),k(0x6,s[_0x5c10b7(0x335)]),k(0x7,(0x0,a[_0x5c10b7(0x25d)])(l['SheetCanvasPopManagerService'])),k(0x8,a['IContextService']),k(0x9,c['IRenderManagerService']),k(0xa,(0x0,a['Inject'])(H))],Q);let $=class extends a[_0x5c10b7(0x3ad)]{constructor(_0xe5a4=lt,_0x32e675,_0x1b71f0,_0x5326ff,_0x4b4132){const _0x5799e1=_0x5c10b7;super(),this['_config']=_0xe5a4,this['_injector']=_0x32e675,this['_commandService']=_0x1b71f0,this[_0x5799e1(0x2e8)]=_0x5326ff,this[_0x5799e1(0x33f)]=_0x4b4132;let {..._0x39e84d}=(0x0,a['merge'])({},lt,this['_config']);this[_0x5799e1(0x2e8)][_0x5799e1(0x301)](ct,_0x39e84d),this[_0x5799e1(0x24d)]();}['onRendered'](){const _0x5531f6=_0x5c10b7;this[_0x5531f6(0x33f)]['registerRenderModule'](a[_0x5531f6(0x1c5)][_0x5531f6(0x2ea)],[Ft]),(0x0,a['touchDependencies'])(this[_0x5531f6(0x412)],[[Q],[G],[j],[J]]);}[_0x5c10b7(0x385)](){const _0x2625ff=_0x5c10b7;this[_0x2625ff(0x412)][_0x2625ff(0x410)](Q)[_0x2625ff(0x2db)]();}[_0x5c10b7(0x20d)](){const _0x3cacd0=_0x5c10b7;[[K],[M],[q]][_0x3cacd0(0x3cd)](_0x1f0075=>this[_0x3cacd0(0x412)]['add'](_0x1f0075)),(0x0,a['touchDependencies'])(this['_injector'],[[q],[M]]),this[_0x3cacd0(0x33f)][_0x3cacd0(0x36b)](a[_0x3cacd0(0x1c5)][_0x3cacd0(0x353)],[K]),this[_0x3cacd0(0x33f)][_0x3cacd0(0x36b)](a['UniverInstanceType'][_0x3cacd0(0x353)],[ut]),this['_renderManagerService'][_0x3cacd0(0x36b)](a[_0x3cacd0(0x1c5)][_0x3cacd0(0x353)],[Ct]),this[_0x3cacd0(0x33f)][_0x3cacd0(0x36b)](a['UniverInstanceType'][_0x3cacd0(0x353)],[gt]),this[_0x3cacd0(0x1c0)](this[_0x3cacd0(0x33f)]['registerRenderModule'](a['UniverInstanceType'][_0x3cacd0(0x353)],[It])),this[_0x3cacd0(0x1c0)](this[_0x3cacd0(0x33f)]['registerRenderModule'](a['UniverInstanceType']['UNIVER_SHEET'],[Mt]));}[_0x5c10b7(0x46e)](){const _0xc5be7=_0x5c10b7;this[_0xc5be7(0x412)][_0xc5be7(0x1b5)]([jt]),this[_0xc5be7(0x412)][_0xc5be7(0x410)](jt);let _0x264fc3=this[_0xc5be7(0x412)];[[Q],[G],[j],[J],[X],[H],[W],[B],[Y],[Pt]][_0xc5be7(0x3cd)](_0x472ce9=>_0x264fc3[_0xc5be7(0x1b5)](_0x472ce9)),(0x0,a[_0xc5be7(0x1b9)])(this[_0xc5be7(0x412)],[[Q],[G],[j],[X],[H],[W],[B],[Y],[Pt]]);}['_initCommands'](){const _0x36db0a=_0x5c10b7;[P,S,wt,z,ae,N,se,ce][_0x36db0a(0x3cd)](_0x4e3800=>this[_0x36db0a(0x1c0)](this[_0x36db0a(0x3f0)][_0x36db0a(0x41f)](_0x4e3800)));}};E($,_0x5c10b7(0x211),a['UniverInstanceType'][_0x5c10b7(0x353)]),E($,_0x5c10b7(0x362),'SHEET_SHAPE_UI_PLUGIN'),E($,_0x5c10b7(0x19e),at),E($,_0x5c10b7(0x359),ot),$=A([(0x0,a[_0x5c10b7(0x216)])(h['UniverLicensePlugin'],g[_0x5c10b7(0x323)],s[_0x5c10b7(0x4d7)],d[_0x5c10b7(0x2c9)],c[_0x5c10b7(0x17b)],o['UniverSheetsPlugin'],_['UniverDocsUIPlugin'],m[_0x5c10b7(0x1b7)],r['UniverShapeEditorPlugin'],v[_0x5c10b7(0x4b9)],i[_0x5c10b7(0x36c)],l['UniverSheetsUIPlugin'],e[_0x5c10b7(0x354)]),k(0x1,(0x0,a['Inject'])(a[_0x5c10b7(0x2d9)])),k(0x2,a[_0x5c10b7(0x393)]),k(0x3,a[_0x5c10b7(0x23e)]),k(0x4,c[_0x5c10b7(0x184)])],$),exports[_0x5c10b7(0x1b4)]=nt,exports[_0x5c10b7(0x397)]=it,Object[_0x5c10b7(0x420)](exports,_0x5c10b7(0x3f5),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x5c10b7(0x420)](exports,'UniverSheetsShapeUIPlugin',{'enumerable':!0x0,'get':function(){return $;}});
|