@univerjs-pro/sheets-shape-ui 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.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/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/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x231f(_0x595c21,_0x3afc3b){_0x595c21=_0x595c21-0x1d4;const _0x376c4f=_0x376c();let _0x231f0a=_0x376c4f[_0x595c21];return _0x231f0a;}(function(_0x1880e0,_0xf85e1b){const _0x1281fc=_0x231f,_0xc83540=_0x1880e0();while(!![]){try{const _0xc1a28b=-parseInt(_0x1281fc(0x2de))/0x1*(parseInt(_0x1281fc(0x2ae))/0x2)+parseInt(_0x1281fc(0x28d))/0x3+parseInt(_0x1281fc(0x57c))/0x4+-parseInt(_0x1281fc(0x273))/0x5+-parseInt(_0x1281fc(0x5de))/0x6+parseInt(_0x1281fc(0x3f7))/0x7*(parseInt(_0x1281fc(0x441))/0x8)+parseInt(_0x1281fc(0x42b))/0x9*(parseInt(_0x1281fc(0x321))/0xa);if(_0xc1a28b===_0xf85e1b)break;else _0xc83540['push'](_0xc83540['shift']());}catch(_0x26654e){_0xc83540['push'](_0xc83540['shift']());}}}(_0x376c,0x1fcbe),function(_0x548ff0,_0xbf3f51){const _0x274024=_0x231f;typeof exports==_0x274024(0x30d)&&typeof module<'u'?_0xbf3f51(exports,require('@univerjs-pro/shape-editor-ui'),require('@univerjs/ui'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/shape-editor'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets-ui'),require('@univerjs/drawing'),require('rxjs'),require('@univerjs/drawing-ui'),require('@univerjs/design'),require('react/jsx-runtime'),require('@univerjs-pro/license'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('@univerjs/sheets-drawing-ui'),require('react')):typeof define==_0x274024(0x53d)&&define[_0x274024(0x56c)]?define([_0x274024(0x499),_0x274024(0x50e),'@univerjs/ui',_0x274024(0x5e4),_0x274024(0x420),_0x274024(0x4ad),_0x274024(0x286),'@univerjs/engine-render',_0x274024(0x287),_0x274024(0x3e8),_0x274024(0x3d8),'@univerjs/drawing',_0x274024(0x5e2),_0x274024(0x2c1),_0x274024(0x360),'react/jsx-runtime',_0x274024(0x24c),_0x274024(0x580),_0x274024(0x353),_0x274024(0x42e),_0x274024(0x53b)],_0xbf3f51):(_0x548ff0=typeof globalThis<'u'?globalThis:_0x548ff0||self,_0xbf3f51(_0x548ff0[_0x274024(0x4ef)]={},_0x548ff0[_0x274024(0x2e3)],_0x548ff0[_0x274024(0x4b2)],_0x548ff0['UniverProEngineShape'],_0x548ff0['UniverProShapeEditor'],_0x548ff0['UniverProSheetsShape'],_0x548ff0[_0x274024(0x235)],_0x548ff0[_0x274024(0x27d)],_0x548ff0[_0x274024(0x551)],_0x548ff0['UniverSheetsDrawing'],_0x548ff0[_0x274024(0x37c)],_0x548ff0[_0x274024(0x2b4)],_0x548ff0[_0x274024(0x5e2)],_0x548ff0[_0x274024(0x2d6)],_0x548ff0[_0x274024(0x4a4)],_0x548ff0[_0x274024(0x47f)],_0x548ff0[_0x274024(0x3f1)],_0x548ff0[_0x274024(0x38f)],_0x548ff0[_0x274024(0x5a6)],_0x548ff0[_0x274024(0x236)],_0x548ff0[_0x274024(0x47f)]));}(this,function(_0x3f2738,_0x197fcc,_0x23e778,_0x1f2a15,_0x1ad5b7,_0x565640,_0x35d996,_0x580d8a,_0x2a684c,_0x47830d,_0x590c15,_0x2ed59f,_0x4737d9,_0x2c4f7e,_0x36db41,_0x121104,_0x64ee3d,_0x156373,_0x3a1af6,_0x353806,_0x3d354c){const _0x2766d8=_0x231f;Object[_0x2766d8(0x54e)](_0x3f2738,Symbol['toStringTag'],{'value':_0x2766d8(0x2db)});function _0x5b6e6e(_0xc28b8b,_0x423167){const _0x2dbc81=_0x2766d8;let _0x329734={};for(let _0x2c4875 of Object[_0x2dbc81(0x38e)](_0x423167)){let _0x54fa9a=_0x423167[_0x2c4875],_0x45a7e5=_0xc28b8b[_0x2c4875];_0x329734[_0x2c4875]=_0x45a7e5===void 0x0?void 0x0:typeof _0x54fa9a==_0x2dbc81(0x30d)&&_0x54fa9a&&!Array[_0x2dbc81(0x5ea)](_0x54fa9a)&&typeof _0x45a7e5==_0x2dbc81(0x30d)&&_0x45a7e5&&!Array[_0x2dbc81(0x5ea)](_0x45a7e5)?_0x5b6e6e(_0x45a7e5,_0x54fa9a):_0x45a7e5;}return _0x329734;}let _0x33bf3b={'type':_0x35d996['CommandType'][_0x2766d8(0x56b)],'id':_0x2766d8(0x469),'handler':(_0x32e778,_0x275a14)=>{const _0x11ec2c=_0x2766d8;let _0x120c1e=_0x32e778['get'](_0x565640[_0x11ec2c(0x248)]),{unitId:_0xbfb842,subUnitId:_0x3f1f46,shapeType:_0xea5c78,shapeId:_0x333bad,shapeData:_0x20299d,replaceShapeData:_0x56ab7a,oldShapeJSON:_0x1aebaa}=_0x275a14;if(!_0x120c1e[_0x11ec2c(0x338)](_0xbfb842,_0x3f1f46,_0x333bad))return!0x1;let _0x244f12=_0x32e778['get'](_0x35d996[_0x11ec2c(0x3c6)]),_0x3a8e68=_0x32e778[_0x11ec2c(0x340)](_0x35d996[_0x11ec2c(0x25f)]),{oldShapeType:_0x467699,oldShapeData:_0x4fbe55={}}=_0x1aebaa,_0x45c7b7=_0x56ab7a?_0x4fbe55:_0x5b6e6e(_0x4fbe55,_0x20299d||{}),_0x573734={'id':_0x565640[_0x11ec2c(0x229)]['id'],'params':{'unitId':_0xbfb842,'subUnitId':_0x3f1f46,'shapeId':_0x333bad,'shapeType':_0xea5c78,'shapeData':_0x20299d,'replace':_0x56ab7a}},_0x57b198={'id':_0x565640[_0x11ec2c(0x229)]['id'],'params':{'unitId':_0xbfb842,'subUnitId':_0x3f1f46,'shapeId':_0x333bad,'shapeType':_0x467699,'shapeData':_0x45c7b7,'replace':_0x56ab7a}};return _0x244f12['syncExecuteCommand'](_0x573734['id'],_0x573734[_0x11ec2c(0x1db)])?(_0x3a8e68['pushUndoRedo']({'unitID':_0xbfb842,'undoMutations':[_0x57b198],'redoMutations':[_0x573734]}),!0x0):!0x1;}};function _0x5b243b(_0x1d5ead,_0x383b9a,_0x20cb3,_0x414d2f,_0x33d6f1,_0x556a42){const _0x1b6d8b=_0x2766d8;let _0x317a8b={'unitId':_0x383b9a,'subUnitId':_0x20cb3,'shapeId':_0x414d2f,'shapeData':_0x556a42,'oldShapeJSON':_0x33d6f1};return _0x1d5ead[_0x1b6d8b(0x3d1)](_0x33bf3b['id'],_0x317a8b);}function _0x1d5713(_0x3cf595,_0x58e8c9,_0x3e53fe,_0xc4cace,_0x197c95,_0x114510){const _0x18a45d=_0x2766d8;let _0x49e1cc={'unitId':_0x58e8c9,'subUnitId':_0x3e53fe,'shapeId':_0xc4cace,'shapeData':_0x114510,'oldShapeJSON':_0x197c95};return _0x3cf595[_0x18a45d(0x3d1)](_0x33bf3b['id'],_0x49e1cc);}function _0x364a03(_0x382ee4){'@babel/helpers - typeof';const _0x1c8c60=_0x2766d8;return _0x364a03=typeof Symbol==_0x1c8c60(0x53d)&&typeof Symbol[_0x1c8c60(0x4f0)]==_0x1c8c60(0x1d8)?function(_0x26dadd){return typeof _0x26dadd;}:function(_0x468102){const _0x26ffbc=_0x1c8c60;return _0x468102&&typeof Symbol==_0x26ffbc(0x53d)&&_0x468102[_0x26ffbc(0x423)]===Symbol&&_0x468102!==Symbol['prototype']?_0x26ffbc(0x1d8):typeof _0x468102;},_0x364a03(_0x382ee4);}function _0x32d5a7(_0x3fe510,_0x2f149f){const _0x3513c2=_0x2766d8;if(_0x364a03(_0x3fe510)!=_0x3513c2(0x30d)||!_0x3fe510)return _0x3fe510;var _0x415f93;if(typeof Symbol<'u'&&(_0x415f93=_0x3fe510[Symbol[_0x3513c2(0x5e7)]])!==void 0x0){var _0x22aa9b=_0x415f93[_0x3513c2(0x222)](_0x3fe510,_0x2f149f||_0x3513c2(0x1df));if(_0x364a03(_0x22aa9b)!=_0x3513c2(0x30d))return _0x22aa9b;throw TypeError(_0x3513c2(0x2a0));}return(_0x2f149f===_0x3513c2(0x212)?String:Number)(_0x3fe510);}function _0x58c375(_0x42742a){const _0x1ff8d1=_0x2766d8;var _0x3cd669=_0x32d5a7(_0x42742a,'string');return _0x364a03(_0x3cd669)==_0x1ff8d1(0x1d8)?_0x3cd669:_0x3cd669+'';}function _0x2a4a7a(_0x56d789,_0x51e92c,_0x5188e7){const _0x372c92=_0x2766d8;return(_0x51e92c=_0x58c375(_0x51e92c))in _0x56d789?Object[_0x372c92(0x54e)](_0x56d789,_0x51e92c,{'value':_0x5188e7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x56d789[_0x51e92c]=_0x5188e7,_0x56d789;}function _0x402546(_0x5e2852,_0x75487,_0x2712dc){const _0x3ab1be=_0x2766d8;let _0x46ba6e={..._0x75487,'dataModel':{..._0x75487[_0x3ab1be(0x272)]??{},..._0x2712dc?{'doc':_0x2712dc}:null}},_0xba6639=(0x0,_0x197fcc[_0x3ab1be(0x419)])(_0x5e2852,_0x46ba6e),_0x159240=(0x0,_0x197fcc[_0x3ab1be(0x52a)])(_0xba6639);return{'clip':(0x0,_0x197fcc[_0x3ab1be(0x2d8)])(_0xba6639,_0x159240),'wrapStrategy':_0x159240};}var _0x423ac6=class extends _0x580d8a[_0x2766d8(0x5e1)]{constructor(_0x39094c,_0x4d3958){const _0x363077=_0x2766d8;super(_0x39094c,_0x4d3958),_0x2a4a7a(this,_0x363077(0x244),[]),_0x2a4a7a(this,_0x363077(0x5df),void 0x0),_0x2a4a7a(this,_0x363077(0x426),new _0x197fcc['FormulaShapeAnimationController'](()=>this[_0x363077(0x3b2)](!0x0),()=>this[_0x363077(0x55d)]())),_0x2a4a7a(this,_0x363077(0x2b8),!0x0),_0x2a4a7a(this,_0x363077(0x592),_0x35d996[_0x363077(0x44f)][_0x363077(0x4ba)]),_0x2a4a7a(this,_0x363077(0x28c),!0x0),this[_0x363077(0x5df)]={..._0x4d3958},this[_0x363077(0x426)][_0x363077(0x5c3)](_0x4d3958['formulaPresentation'],_0x4d3958[_0x363077(0x2e5)]!==!0x1),this['_init'](),this[_0x363077(0x55d)]();}['_init'](){const _0x444c63=_0x2766d8;this[_0x444c63(0x33a)][_0x444c63(0x1dd)](_0x45fe7f=>{const _0x113572=_0x444c63;this[_0x113572(0x4fb)](_0x45fe7f);});}[_0x2766d8(0x596)](_0x232524){const _0x1fa606=_0x2766d8;this[_0x1fa606(0x5df)]['prstGeom']=_0x232524;}[_0x2766d8(0x3f9)](_0x490209){const _0x361a4a=_0x2766d8;if(this['_props'][_0x361a4a(0x23a)])return null;let _0x325998=this['getInverseCoord'](_0x490209),{width:_0x2b6740,height:_0x26b1af}=this[_0x361a4a(0x2ea)]();return(0x0,_0x197fcc[_0x361a4a(0x241)])(this[_0x361a4a(0x244)],{'x':(this[_0x361a4a(0x4f7)]?-_0x325998['x']:_0x325998['x'])+_0x2b6740/0x2,'y':_0x325998['y']+_0x26b1af/0x2});}['setEditing'](_0x11bfad){const _0x2bb400=_0x2766d8;this[_0x2bb400(0x5df)][_0x2bb400(0x23a)]=_0x11bfad,this[_0x2bb400(0x3b2)](!0x0);}['setFormulaPresentation'](_0x379af9,_0x45d20b=!0x0){const _0x52d591=_0x2766d8;this[_0x52d591(0x426)][_0x52d591(0x5c3)](_0x379af9,_0x45d20b),this[_0x52d591(0x5df)][_0x52d591(0x31c)]=_0x379af9,this[_0x52d591(0x55d)](),this['makeDirty'](!0x0);}[_0x2766d8(0x55d)](){const _0x4a0a22=_0x2766d8;let _0x359e14=this[_0x4a0a22(0x5df)]['shapeModel'],_0x1183bb=_0x359e14[_0x4a0a22(0x264)](),_0x4c6ef9=(0x0,_0x197fcc[_0x4a0a22(0x4e4)])(_0x1183bb==null?void 0x0:_0x1183bb[_0x4a0a22(0x272)]),_0x41c80c=_0x4c6ef9==null?void 0x0:_0x4c6ef9['doc'],_0x3578bc=this['_formulaAnimation'][_0x4a0a22(0x282)]();if(!_0x41c80c||_0x3578bc['length']===0x0)return;_0x359e14[_0x4a0a22(0x240)]({'width':this[_0x4a0a22(0x49e)],'height':this['height']});let _0x232292=(0x0,_0x197fcc[_0x4a0a22(0x4d7)])({'documentData':_0x3578bc[_0x4a0a22(0x4d8)](_0x469b29=>(0x0,_0x1ad5b7[_0x4a0a22(0x223)])(_0x41c80c,_0x469b29)),'height':this[_0x4a0a22(0x3f8)],'shapeData':_0x359e14['getShapeData'](),'textRect':_0x359e14[_0x4a0a22(0x315)]({'left':0x0,'top':0x0,'width':this[_0x4a0a22(0x49e)],'height':this[_0x4a0a22(0x3f8)]}),'width':this[_0x4a0a22(0x49e)]});if(_0x232292){var _0x54eaa2;this[_0x4a0a22(0x301)](_0x232292['width'],_0x232292['height']),(_0x54eaa2=this[_0x4a0a22(0x32c)]())==null||(_0x54eaa2=_0x54eaa2[_0x4a0a22(0x4e5)]())==null||_0x54eaa2[_0x4a0a22(0x2be)]();}}get[_0x2766d8(0x280)](){const _0x382ed3=_0x2766d8;return this[_0x382ed3(0x5df)][_0x382ed3(0x280)];}get[_0x2766d8(0x35e)](){return this['_props']['subUnitId'];}[_0x2766d8(0x4fb)](_0x2a2fe7){const _0x29c8bf=_0x2766d8;if(this[_0x29c8bf(0x5df)]['srcRect']==null||!this[_0x29c8bf(0x2b8)])return;let {width:_0x13fe9e,height:_0x297515}=this,{width:_0x3365f3=0x0,height:_0x5a47e8=0x0}=_0x2a2fe7['preValue'],{left:_0x148648=0x0,top:_0x387adc=0x0,right:_0x581611=0x0,bottom:_0x297ec7=0x0}=this[_0x29c8bf(0x5df)]['srcRect'],_0x23f2e7=_0x148648,_0x3df0f3=_0x387adc,_0x131869=_0x581611,_0x47bb6a=_0x297ec7,_0x3bcb24=!0x1;if(_0x3365f3!==0x0&&_0x3365f3!==_0x13fe9e){let _0x12e031=_0x148648/_0x3365f3,_0x2a2230=_0x581611/_0x3365f3;_0x23f2e7=_0x13fe9e*_0x12e031,_0x131869=_0x13fe9e*_0x2a2230,_0x3bcb24=!0x0;}if(_0x5a47e8!==0x0&&_0x5a47e8!==_0x297515){let _0x1e2c5a=_0x387adc/_0x5a47e8,_0x24ebef=_0x297ec7/_0x5a47e8;_0x3df0f3=_0x297515*_0x1e2c5a,_0x47bb6a=_0x297515*_0x24ebef,_0x3bcb24=!0x0;}_0x3bcb24&&this[_0x29c8bf(0x209)]({'left':_0x23f2e7,'top':_0x3df0f3,'right':_0x131869,'bottom':_0x47bb6a});}['setSrcRect'](_0x507326){const _0x727edf=_0x2766d8;this[_0x727edf(0x5df)][_0x727edf(0x402)]=_0x507326,this[_0x727edf(0x3b2)](!0x0);}[_0x2766d8(0x23c)](_0x29122b){const _0x4e2ab0=_0x2766d8;this[_0x4e2ab0(0x5df)][_0x4e2ab0(0x4c5)]=_0x29122b,this[_0x4e2ab0(0x3b2)](!0x0);}set['transform'](_0x1f00b3){this['_transform']=_0x1f00b3;}get['transform'](){const _0x25a1f7=_0x2766d8;this[_0x25a1f7(0x324)]||this[_0x25a1f7(0x243)]();let _0x2d9946=this[_0x25a1f7(0x324)][_0x25a1f7(0x3b7)]();return this[_0x25a1f7(0x379)](_0x2d9946);}get[_0x2766d8(0x513)](){const _0x1eae20=_0x2766d8;return this[_0x1eae20(0x5df)][_0x1eae20(0x513)];}get[_0x2766d8(0x2a8)](){const _0x143fdc=_0x2766d8;return this[_0x143fdc(0x5df)]['shapeId'];}get[_0x2766d8(0x3d2)](){const _0x4c4623=_0x2766d8;return _0x580d8a[_0x4c4623(0x5db)][_0x4c4623(0x465)];}[_0x2766d8(0x55f)](_0x53cba1,_0x4943d5,_0x38c020,_0x2df399){const _0xf1c935=_0x2766d8;let _0x471c76=this[_0xf1c935(0x5df)][_0xf1c935(0x513)];if(!_0x471c76||!_0x4943d5)return;let _0x206cc4=_0x38c020??this[_0xf1c935(0x49e)],_0x10dc56=_0x2df399??this[_0xf1c935(0x3f8)],_0x3ac528={'shapeType':_0x471c76[_0xf1c935(0x200)](),'width':_0x206cc4,'height':_0x10dc56},_0x238477={'renderMode':_0x1f2a15[_0xf1c935(0x3d5)][_0xf1c935(0x57f)],'oKey':this[_0xf1c935(0x5ca)],'image':this[_0xf1c935(0x5df)][_0xf1c935(0x4c5)],'angle':this[_0xf1c935(0x55b)]};_0x471c76['updateContext'](_0x3ac528),_0x53cba1[_0xf1c935(0x421)]();let _0x4e545b={'top':0x0,'left':0x0,'width':_0x206cc4,'height':_0x10dc56},_0x184124=_0x471c76[_0xf1c935(0x455)](_0x4e545b);_0x184124?this[_0xf1c935(0x59a)](_0x53cba1,_0x184124,_0x418500=>{_0x471c76['render'](_0x418500,_0x4e545b,_0x238477);}):(this['_releaseRenderCache'](),_0x471c76[_0xf1c935(0x477)](_0x53cba1,_0x4e545b,_0x238477)),_0x53cba1['restore']();let _0x3d60ea=_0x471c76[_0xf1c935(0x264)](),_0x35cc1e=_0x471c76['getShapeTextRect'](_0x4e545b),_0x2ee3ba=_0x471c76[_0xf1c935(0x329)]();if(_0x3d60ea&&_0x35cc1e&&!_0x2ee3ba){_0x53cba1[_0xf1c935(0x421)](),this[_0xf1c935(0x36b)]()[_0xf1c935(0x4f7)]&&_0x53cba1[_0xf1c935(0x327)](-0x1,0x1);let _0x4d3db5=_0x206cc4/0x2,_0x2fee93=_0x10dc56/0x2;_0x53cba1['translate'](-_0x4d3db5,-_0x2fee93),_0x53cba1[_0xf1c935(0x217)](),this[_0xf1c935(0x408)](_0x53cba1,_0x3d60ea,_0x35cc1e),_0x53cba1[_0xf1c935(0x37f)]();}}[_0x2766d8(0x34d)](_0x38c7df){}[_0x2766d8(0x408)](_0x4bf556,_0x3332af,_0x5d2751){const _0x253734=_0x2766d8;var _0x6c18d8;this['_hyperLinkRegions']=[],this[_0x253734(0x5df)][_0x253734(0x23a)]||(!((_0x6c18d8=_0x3332af[_0x253734(0x272)])!=null&&_0x6c18d8[_0x253734(0x55e)])&&_0x253734(0x51b)in _0x3332af&&_0x3332af[_0x253734(0x51b)]===!0x1?this[_0x253734(0x5e5)](_0x4bf556,_0x3332af,_0x5d2751):this['_drawRichText'](_0x4bf556,_0x3332af,_0x5d2751));}[_0x2766d8(0x5e5)](_0x4e0fa7,_0x476b25,_0x199cf7){const _0x115e4c=_0x2766d8;this['_drawRichText'](_0x4e0fa7,{..._0x476b25,'text':_0x476b25[_0x115e4c(0x23d)]??'','dataModel':{'doc':(0x0,_0x197fcc[_0x115e4c(0x24a)])(_0x476b25,_0x115e4c(0x3a2)+this[_0x115e4c(0x5ca)])}},_0x199cf7);}['_drawRichText'](_0x154128,_0xc6f233,_0x5ad4d5){const _0x5cd19f=_0x2766d8;(0x0,_0x197fcc[_0x5cd19f(0x305)])(_0x154128,this[_0x5cd19f(0x426)],(_0x3fb2b3,_0x56b97d,_0xe5ed3c)=>{const _0x23a6ff=_0x5cd19f;this[_0x23a6ff(0x1fd)](_0x3fb2b3,_0xc6f233,_0x5ad4d5,_0x56b97d,_0xe5ed3c==='current');});}[_0x2766d8(0x1fd)](_0x5091e5,_0x630531,_0x43091d,_0x2781fe,_0x65e860){const _0x277f98=_0x2766d8;let _0x5dee4c=this[_0x277f98(0x5df)]['localeService'];if(!_0x630531[_0x277f98(0x272)]||!_0x5dee4c)return;let _0x393fe2=(0x0,_0x197fcc[_0x277f98(0x4e4)])(_0x630531[_0x277f98(0x272)]);if(!_0x393fe2)return;let _0xbf1924=_0x393fe2[_0x277f98(0x55e)];if(!_0xbf1924)return;let _0x4197fd=(0x0,_0x1ad5b7['createShapeFormulaDocument'])(_0xbf1924,_0x2781fe),_0x390d6a=_0x393fe2['va']??_0x35d996['VerticalAlign']['TOP'],_0x1f5fab=_0x393fe2['ha']??_0x35d996[_0x277f98(0x57e)][_0x277f98(0x5a2)],_0x1683bc=_0x402546(this[_0x277f98(0x5df)]['shapeModel'][_0x277f98(0x583)](),_0x630531,_0x4197fd),_0x1b4b2f=_0x630531[_0x277f98(0x4f4)],_0x136dab=(0x0,_0x197fcc[_0x277f98(0x399)])(_0x4197fd,{'isHorizontal':_0x1b4b2f!==!0x1,'textRect':_0x43091d,'verticalAlign':_0x390d6a,'horizontalAlign':_0x1f5fab,'wrapStrategy':_0x1683bc[_0x277f98(0x3c3)]}),_0x2838b5=new _0x35d996[(_0x277f98(0x341))](_0x136dab),_0x5304a8=new _0x580d8a[(_0x277f98(0x2fe))](_0x2838b5),_0xf79db9=_0x580d8a['DocumentSkeleton'][_0x277f98(0x20f)](_0x5304a8,_0x5dee4c);_0xf79db9[_0x277f98(0x3dc)]();let _0xba85a7=_0xf79db9[_0x277f98(0x4ab)]()[_0x277f98(0x377)],_0x4d4c47=(0x0,_0x197fcc[_0x277f98(0x5cb)])({'contentHeight':_0xba85a7,'verticalAlign':_0x390d6a,'viewportHeight':_0x43091d[_0x277f98(0x3f8)]});_0x2838b5[_0x277f98(0x3ef)]({'pageSize':{'width':_0x1b4b2f===!0x1?_0x43091d['height']:_0x43091d['width'],'height':(0x0,_0x197fcc[_0x277f98(0x4ae)])(_0x4197fd,_0x4d4c47[_0x277f98(0x37e)])}}),_0x2838b5[_0x277f98(0x2c2)]({'t':_0x4d4c47['marginTop']}),_0xf79db9[_0x277f98(0x3dc)]();let _0x4631f9=new _0x580d8a[(_0x277f98(0x412))]('shape-text-'+this['oKey'],_0xf79db9,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x277f98(0x3b2)](!0x0)});_0x4631f9[_0x277f98(0x301)](_0x43091d[_0x277f98(0x49e)],_0x4d4c47['contentHeight']),_0x5091e5[_0x277f98(0x421)](),_0x5091e5[_0x277f98(0x4fd)](_0x43091d[_0x277f98(0x204)],_0x43091d[_0x277f98(0x414)]),_0x1683bc[_0x277f98(0x33e)]&&(_0x5091e5['beginPath'](),_0x5091e5[_0x277f98(0x249)](0x0,_0x4d4c47[_0x277f98(0x3c7)],_0x43091d[_0x277f98(0x49e)],_0x4d4c47[_0x277f98(0x48c)]),_0x5091e5[_0x277f98(0x33e)]()),_0x4d4c47['contentVerticalOffset']&&_0x5091e5['translateWithPrecision'](0x0,_0x4d4c47[_0x277f98(0x366)]),_0x4631f9['draw'](_0x5091e5),_0x65e860&&(this[_0x277f98(0x244)]=(0x0,_0x197fcc[_0x277f98(0x256)])(_0x4631f9,{'left':_0x43091d[_0x277f98(0x204)],'top':_0x43091d[_0x277f98(0x414)]+_0x4d4c47[_0x277f98(0x366)]},_0x1683bc[_0x277f98(0x33e)]?{'left':_0x43091d['left'],'right':_0x43091d[_0x277f98(0x204)]+_0x43091d[_0x277f98(0x49e)],'top':_0x43091d['top']+_0x4d4c47[_0x277f98(0x3c7)],'bottom':_0x43091d[_0x277f98(0x414)]+_0x4d4c47['clipTop']+_0x4d4c47[_0x277f98(0x48c)]}:void 0x0)),_0x5091e5[_0x277f98(0x37f)](),_0x4631f9[_0x277f98(0x2a4)](),_0xf79db9[_0x277f98(0x2a4)](),_0x5304a8['dispose'](),_0x2838b5['dispose']();}['render'](_0x4278d9,_0x5e2d8e,_0x27bb3b=!0x1){const _0x3c72db=_0x2766d8;if(!this[_0x3c72db(0x416)])return this[_0x3c72db(0x3b2)](!0x1),this;let {width:_0x2dabd0,height:_0x1581c0,left:_0x1deabf,top:_0x58f6d0}=this,_0x38da7a=this[_0x3c72db(0x2ea)]();if(_0x2dabd0=_0x38da7a['width'],_0x1581c0=_0x38da7a[_0x3c72db(0x3f8)],_0x1deabf=_0x38da7a['left'],_0x58f6d0=_0x38da7a[_0x3c72db(0x414)],this[_0x3c72db(0x5f0)](_0x5e2d8e)){let {top:_0x5acf58,left:_0x155a89,bottom:_0x1ec241,right:_0x399f8f}=_0x5e2d8e[_0x3c72db(0x428)];if(_0x2dabd0+this[_0x3c72db(0x46f)]+_0x1deabf<_0x155a89||_0x399f8f<_0x1deabf||_0x1581c0+this[_0x3c72db(0x46f)]+_0x58f6d0<_0x5acf58||_0x1ec241<_0x58f6d0)return this;}let _0x6d7377=_0x1deabf+_0x2dabd0/0x2,_0x547568=_0x58f6d0+_0x1581c0/0x2,_0x4a6e8d=this[_0x3c72db(0x339)][_0x3c72db(0x2ce)]();if(this[_0x3c72db(0x5df)]['isEditing']){let _0x4018ce=this[_0x3c72db(0x36b)](),_0x3dab58=new _0x580d8a[(_0x3c72db(0x1e4))]();_0x3dab58['composeMatrix']({..._0x4018ce}),_0x4a6e8d=_0x3dab58[_0x3c72db(0x2ce)]();}return _0x4278d9['save'](),this[_0x3c72db(0x5df)][_0x3c72db(0x513)][_0x3c72db(0x3e3)]===!0x0||_0x4278d9[_0x3c72db(0x339)](_0x4a6e8d[0x0],_0x4a6e8d[0x1],_0x4a6e8d[0x2],_0x4a6e8d[0x3],_0x6d7377,_0x547568),this[_0x3c72db(0x55f)](_0x4278d9,_0x5e2d8e,_0x2dabd0,_0x1581c0),_0x4278d9[_0x3c72db(0x37f)](),this[_0x3c72db(0x3b2)](!0x1),this;}[_0x2766d8(0x4bc)](_0x479ce2){const _0x105c52=_0x2766d8;let {left:_0x3ae51d,top:_0x1080dd,width:_0x555c9f,height:_0xa1b613}=this[_0x105c52(0x2ea)](),_0x4d99a0=this[_0x105c52(0x339)][_0x105c52(0x2ce)](),_0x3711c1=_0x3ae51d+_0x555c9f/0x2,_0x42f719=_0x1080dd+_0xa1b613/0x2,_0x19bb4a=new _0x580d8a[(_0x105c52(0x1e4))]([_0x4d99a0[0x0],_0x4d99a0[0x1],_0x4d99a0[0x2],_0x4d99a0[0x3],_0x3711c1,_0x42f719]),_0x1bd408=this['getParent']();return(this[_0x105c52(0x5aa)]&&(_0x1bd408==null?void 0x0:_0x1bd408[_0x105c52(0x3d2)])===_0x580d8a[_0x105c52(0x5db)][_0x105c52(0x552)]?_0x1bd408[_0x105c52(0x415)][_0x105c52(0x497)](_0x19bb4a):_0x19bb4a)[_0x105c52(0x535)]()[_0x105c52(0x3f0)](_0x479ce2);}[_0x2766d8(0x59e)](_0x2622ba){const _0x118b55=_0x2766d8;let {left:_0x4da7bf,top:_0x1f99e6,width:_0x1645c3,height:_0x4f5c79}=this[_0x118b55(0x2ea)](),_0x1d8569=_0x4da7bf+_0x1645c3/0x2,_0x3230f9=_0x1f99e6+_0x4f5c79/0x2,_0x1dd0c1=this['transform'][_0x118b55(0x2ce)](),_0x4dc1e6=new _0x580d8a[(_0x118b55(0x1e4))]([_0x1dd0c1[0x0],_0x1dd0c1[0x1],_0x1dd0c1[0x2],_0x1dd0c1[0x3],_0x1d8569,_0x3230f9]),_0x21eefc=this[_0x118b55(0x358)](),_0x510c43=(this[_0x118b55(0x5aa)]&&(_0x21eefc==null?void 0x0:_0x21eefc['classType'])===_0x580d8a[_0x118b55(0x5db)][_0x118b55(0x552)]?_0x21eefc[_0x118b55(0x415)]['multiply'](_0x4dc1e6):_0x4dc1e6)['invert']()[_0x118b55(0x3f0)](_0x2622ba),_0x5ec967=_0x1645c3/0x2,_0x7df90e=_0x4f5c79/0x2,_0x2c898b=this['_props'][_0x118b55(0x513)];return _0x2c898b&&_0x2c898b[_0x118b55(0x329)]()?_0x2c898b[_0x118b55(0x54c)](_0x510c43['x'],_0x510c43['y'],_0x1645c3,_0x4f5c79):_0x510c43['x']>=-_0x5ec967-this['strokeWidth']/0x2&&_0x510c43['x']<=_0x5ec967+this[_0x118b55(0x46f)]/0x2&&_0x510c43['y']>=-_0x7df90e-this['strokeWidth']/0x2&&_0x510c43['y']<=_0x7df90e+this[_0x118b55(0x46f)]/0x2;}[_0x2766d8(0x2a4)](){const _0x5871d5=_0x2766d8;this[_0x5871d5(0x426)][_0x5871d5(0x2a4)](),this[_0x5871d5(0x5df)][_0x5871d5(0x513)]=null,super[_0x5871d5(0x2a4)]();}},_0x56f3e0=class extends _0x580d8a[_0x2766d8(0x5e1)]{constructor(_0x1d4688,_0x3a8e9f){const _0x391830=_0x2766d8;super(_0x1d4688,_0x3a8e9f),_0x2a4a7a(this,_0x391830(0x2a9),null),_0x2a4a7a(this,_0x391830(0x433),null),_0x2a4a7a(this,_0x391830(0x370),null),_0x2a4a7a(this,_0x391830(0x3f6),null),_0x3a8e9f&&this[_0x391830(0x3ce)](_0x3a8e9f);}[_0x2766d8(0x4ce)](){const _0x94ed6c=_0x2766d8;return{'unitId':this[_0x94ed6c(0x370)],'subUnitId':this[_0x94ed6c(0x3f6)],'drawingId':this[_0x94ed6c(0x2a9)]};}[_0x2766d8(0x3ce)](_0x175aac){const _0x2bb987=_0x2766d8;_0x175aac[_0x2bb987(0x2a8)]!==void 0x0&&(this[_0x2bb987(0x2a9)]=_0x175aac['shapeId']),_0x175aac[_0x2bb987(0x4b1)]!==void 0x0&&(this[_0x2bb987(0x433)]=_0x175aac[_0x2bb987(0x4b1)]),_0x175aac[_0x2bb987(0x280)]!==void 0x0&&(this[_0x2bb987(0x370)]=_0x175aac[_0x2bb987(0x280)]),_0x175aac['subUnitId']!==void 0x0&&(this[_0x2bb987(0x3f6)]=_0x175aac['subUnitId']),this[_0x2bb987(0x3c4)]({'width':_0x175aac[_0x2bb987(0x49e)],'height':_0x175aac[_0x2bb987(0x3f8)]});}[_0x2766d8(0x55f)](_0xf1d155){const _0x15fa9c=_0x2766d8;_0x580d8a[_0x15fa9c(0x473)]['drawWith'](_0xf1d155,{'radius':_0x1f2a15[_0x15fa9c(0x540)][_0x15fa9c(0x259)],'fill':_0x1f2a15['ShapeDefaultConfig']['adjHandleFill'],'stroke':_0x1f2a15[_0x15fa9c(0x540)][_0x15fa9c(0x29f)],'strokeWidth':0x1,'evented':!0x0});}};function _0x400e7c(_0x37d405,_0x21ba7f){return function(_0x54e1af,_0x15824f){_0x21ba7f(_0x54e1af,_0x15824f,_0x37d405);};}function _0x39c461(_0x26b20b,_0x25d978,_0x5e1d94,_0x450172){const _0xe1e696=_0x2766d8;var _0x1168b5=arguments[_0xe1e696(0x2f1)],_0x46f38d=_0x1168b5<0x3?_0x25d978:_0x450172===null?_0x450172=Object[_0xe1e696(0x561)](_0x25d978,_0x5e1d94):_0x450172,_0x4fb26c;if(typeof Reflect=='object'&&typeof Reflect[_0xe1e696(0x417)]==_0xe1e696(0x53d))_0x46f38d=Reflect['decorate'](_0x26b20b,_0x25d978,_0x5e1d94,_0x450172);else{for(var _0x9f73d5=_0x26b20b[_0xe1e696(0x2f1)]-0x1;_0x9f73d5>=0x0;_0x9f73d5--)(_0x4fb26c=_0x26b20b[_0x9f73d5])&&(_0x46f38d=(_0x1168b5<0x3?_0x4fb26c(_0x46f38d):_0x1168b5>0x3?_0x4fb26c(_0x25d978,_0x5e1d94,_0x46f38d):_0x4fb26c(_0x25d978,_0x5e1d94))||_0x46f38d);}return _0x1168b5>0x3&&_0x46f38d&&Object[_0xe1e696(0x54e)](_0x25d978,_0x5e1d94,_0x46f38d),_0x46f38d;}let _0x319285=class extends _0x35d996['Disposable']{constructor(_0x3d264f,_0x259831,_0x4b9fb4,_0x21ed42,_0xf7a96d,_0x499855){const _0xe7a07a=_0x2766d8;super(),this[_0xe7a07a(0x482)]=_0x3d264f,this['_sheetsShapeService']=_0x259831,this[_0xe7a07a(0x2d4)]=_0x4b9fb4,this[_0xe7a07a(0x1fc)]=_0x21ed42,this[_0xe7a07a(0x521)]=_0xf7a96d,this[_0xe7a07a(0x538)]=_0x499855,_0x2a4a7a(this,_0xe7a07a(0x409),new Map()),this[_0xe7a07a(0x271)](this[_0xe7a07a(0x538)][_0xe7a07a(0x31a)][_0xe7a07a(0x56a)](_0x1e0500=>{const _0x465c56=_0xe7a07a;var _0x47173a;(_0x47173a=this['_formulaShapes'][_0x465c56(0x340)](this[_0x465c56(0x226)](_0x1e0500[_0x465c56(0x280)],_0x1e0500['subUnitId'],_0x1e0500[_0x465c56(0x2a8)])))==null||_0x47173a['forEach'](_0x206f15=>_0x206f15[_0x465c56(0x5e8)](_0x1e0500[_0x465c56(0x52e)],_0x1e0500[_0x465c56(0x4f3)]));})),this[_0xe7a07a(0x271)](this[_0xe7a07a(0x482)][_0xe7a07a(0x210)][_0xe7a07a(0x56a)](_0xdb2a54=>{const _0x14149f=_0xe7a07a;_0xdb2a54[_0x14149f(0x528)](_0x413122=>{const _0xbda9d1=_0x14149f;this[_0xbda9d1(0x409)]['delete'](this[_0xbda9d1(0x226)](_0x413122[_0xbda9d1(0x280)],_0x413122[_0xbda9d1(0x35e)],_0x413122[_0xbda9d1(0x314)]));});}));}[_0x2766d8(0x34a)](_0x55bfd5,_0x526c99,_0xedf193){const _0x6bf6cd=_0x2766d8;let {transform:_0x3dc3d5,drawingType:_0x379b25,isMultiTransform:_0x4122c6,transforms:_0x509323}=_0x55bfd5;if(_0x379b25===_0x35d996[_0x6bf6cd(0x44f)][_0x6bf6cd(0x4ba)]&&this[_0x6bf6cd(0x482)][_0x6bf6cd(0x42a)]()&&_0x3dc3d5)return(_0x4122c6&&_0x509323?_0x509323:[_0x3dc3d5])[_0x6bf6cd(0x29e)]((_0x1c9c09,_0x5c7307)=>{const _0xe159=_0x6bf6cd;var _0x349ff1;let _0x1b9249=(0x0,_0x2ed59f[_0xe159(0x2f2)])(_0x55bfd5,_0x4122c6?_0x5c7307:void 0x0),_0x5b9d2a=_0x526c99['getObjectIncludeInGroup'](_0x1b9249);if(_0x5b9d2a)return _0x5b9d2a instanceof _0x423ac6&&this[_0xe159(0x25d)](_0x5b9d2a,{'unitId':_0x55bfd5[_0xe159(0x280)],'subUnitId':_0x55bfd5[_0xe159(0x35e)],'shapeId':_0x55bfd5[_0xe159(0x314)]}),_0x5b9d2a[_0xe159(0x3c4)](_0x1c9c09),[];let _0x1fe3e3=this[_0xe159(0x50a)](_0x55bfd5,_0x1c9c09,_0x1b9249,_0x526c99);if(!_0x1fe3e3)return[];let _0x2283c0=this[_0xe159(0x1f2)](_0x1fe3e3,_0x1fe3e3[_0xe159(0x513)][_0xe159(0x583)]());return _0x2283c0&&(_0xedf193==null||(_0x349ff1=_0xedf193[_0xe159(0x347)])==null||_0x349ff1[_0xe159(0x294)](_0x2283c0)),[_0x1fe3e3];});}[_0x2766d8(0x50a)](_0x556c7e,_0x113b2c,_0x282b60,_0x590c18){const _0x51a1f7=_0x2766d8;let {unitId:_0x25e558,subUnitId:_0x438449,drawingId:_0x1029e6,groupId:_0x2e0585,hidden:_0x35ecf4,selectable:_0x3cd095,prstGeom:_0xedd07f,srcRect:_0x5f32a7}=_0x556c7e,_0x28aef5=this[_0x51a1f7(0x218)]['getShapeModel'](_0x25e558,_0x438449,_0x1029e6);if(!_0x28aef5)return;let _0x18ef41=this['_drawingManagerService'][_0x51a1f7(0x593)](_0x25e558,_0x438449),_0x4cae3c=_0x18ef41[_0x51a1f7(0x572)](_0x1029e6),_0x2bac21=(0x0,_0x1f2a15[_0x51a1f7(0x493)])(_0x28aef5['getShapeType']()),_0x4ecee9=_0x28aef5[_0x51a1f7(0x583)]()[_0x51a1f7(0x405)],_0x46ac47={'unitId':_0x25e558,'subUnitId':_0x438449,'shapeId':_0x1029e6};_0x4ecee9&&this[_0x51a1f7(0x538)]['register'](_0x46ac47,_0x4ecee9);let _0x3c4aca=new _0x423ac6(_0x282b60,{..._0x113b2c,'zIndex':_0x4cae3c===-0x1?_0x18ef41['length']-0x1:_0x4cae3c,'shapeModel':_0x28aef5,'drawingType':_0x35d996[_0x51a1f7(0x44f)][_0x51a1f7(0x4ba)],'localeService':this[_0x51a1f7(0x2d4)],'shapeId':_0x1029e6,'unitId':_0x25e558,'subUnitId':_0x438449,'visible':_0x35ecf4!==!0x0,'evented':_0x3cd095!==!0x1,'formulaPresentation':_0x4ecee9?this[_0x51a1f7(0x538)]['getPresentation'](_0x46ac47):void 0x0,'animateFormulaPresentation':(_0x4ecee9==null?void 0x0:_0x4ecee9[_0x51a1f7(0x4f3)])!==!0x1,'transformerConfig':{..._0x197fcc[_0x51a1f7(0x32e)],..._0x2bac21?{'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{},'moveBoundaryEnabled':!0x0}});if(_0x4ecee9){let _0x1ead49=this[_0x51a1f7(0x226)](_0x25e558,_0x438449,_0x1029e6),_0x551af4=this[_0x51a1f7(0x409)][_0x51a1f7(0x340)](_0x1ead49)??new Set();_0x551af4[_0x51a1f7(0x294)](_0x3c4aca),this[_0x51a1f7(0x409)][_0x51a1f7(0x39d)](_0x1ead49,_0x551af4);}return _0x590c18[_0x51a1f7(0x476)](_0x3c4aca,_0x580d8a['DRAWING_OBJECT_LAYER_INDEX']),this[_0x51a1f7(0x482)]['getDrawingEditable']()&&_0x590c18['attachTransformerTo'](_0x3c4aca),_0x2e0585&&(0x0,_0x2c4f7e[_0x51a1f7(0x446)])({'drawingId':_0x2e0585,'unitId':_0x25e558,'subUnitId':_0x438449},_0x3c4aca,_0x590c18,this[_0x51a1f7(0x482)]),_0xedd07f!=null&&_0x3c4aca[_0x51a1f7(0x596)](_0xedd07f),_0x5f32a7!=null&&_0x3c4aca['setSrcRect'](_0x5f32a7),_0x3c4aca;}[_0x2766d8(0x226)](_0xe46409,_0x3decba,_0x75f634){return _0xe46409+'\x00'+_0x3decba+'\x00'+_0x75f634;}['refreshFormulaPresentation'](_0x51470e,_0x43870c){const _0x1aee09=_0x2766d8;let _0x25015e=this['_sheetsShapeService'][_0x1aee09(0x338)](_0x43870c[_0x1aee09(0x280)],_0x43870c[_0x1aee09(0x35e)],_0x43870c[_0x1aee09(0x2a8)]),_0x1e800b=_0x25015e==null?void 0x0:_0x25015e[_0x1aee09(0x583)]()[_0x1aee09(0x405)],_0x1aebf7=this[_0x1aee09(0x226)](_0x43870c[_0x1aee09(0x280)],_0x43870c[_0x1aee09(0x35e)],_0x43870c[_0x1aee09(0x2a8)]);if(_0x1e800b){this[_0x1aee09(0x538)][_0x1aee09(0x495)](_0x43870c,_0x1e800b);let _0x3729e8=this['_formulaShapes'][_0x1aee09(0x340)](_0x1aebf7)??new Set();_0x3729e8[_0x1aee09(0x294)](_0x51470e),this[_0x1aee09(0x409)][_0x1aee09(0x39d)](_0x1aebf7,_0x3729e8);}else{var _0xdb4b21;this[_0x1aee09(0x538)][_0x1aee09(0x351)](_0x43870c),(_0xdb4b21=this[_0x1aee09(0x409)][_0x1aee09(0x340)](_0x1aebf7))==null||_0xdb4b21[_0x1aee09(0x292)](_0x51470e);}_0x51470e[_0x1aee09(0x5e8)](_0x1e800b?this['_shapeFormulaService'][_0x1aee09(0x1f6)](_0x43870c):void 0x0,(_0x1e800b==null?void 0x0:_0x1e800b[_0x1aee09(0x4f3)])!==!0x1);}['refreshShapeFillImage'](_0x24115f){const _0x186d63=_0x2766d8;let _0x38cc36=_0x24115f[_0x186d63(0x513)]['getShapeData'](),_0x46c905=_0x38cc36[_0x186d63(0x5ed)];!_0x46c905||_0x46c905[_0x186d63(0x1e7)]!==_0x1f2a15[_0x186d63(0x308)][_0x186d63(0x406)]||!_0x46c905['fillImageSource']?_0x24115f[_0x186d63(0x23c)](void 0x0):this[_0x186d63(0x1f2)](_0x24115f,_0x38cc36);}['_loadShapePictureFill'](_0x2016dd,_0x12ddbf){const _0x148d6d=_0x2766d8;let _0x1ee034=_0x12ddbf['fill'];if(!_0x1ee034||_0x1ee034['fillType']!==_0x1f2a15[_0x148d6d(0x308)][_0x148d6d(0x406)]||!_0x1ee034[_0x148d6d(0x4cd)])return;let _0x45bc5a=_0x1ee034[_0x148d6d(0x4cd)],_0x553a76=_0x1ee034[_0x148d6d(0x1e1)]??_0x1f2a15[_0x148d6d(0x22e)][_0x148d6d(0x568)],_0x5cba5a=this[_0x148d6d(0x1fc)][_0x148d6d(0x275)](_0x45bc5a,_0x553a76);if(_0x5cba5a)_0x2016dd['setFillImage'](_0x5cba5a);else return this['_loadAndSetImage'](_0x2016dd,_0x45bc5a,_0x553a76);}async[_0x2766d8(0x4d4)](_0x24876a,_0x14f977,_0x50ac8c){const _0x49e1c9=_0x2766d8;let _0x58cffd;try{if(_0x50ac8c===_0x1f2a15[_0x49e1c9(0x22e)][_0x49e1c9(0x393)])_0x58cffd=await this[_0x49e1c9(0x1fc)][_0x49e1c9(0x1ed)](_0x14f977);else{if(_0x50ac8c===_0x1f2a15[_0x49e1c9(0x22e)][_0x49e1c9(0x568)])try{_0x58cffd=await this[_0x49e1c9(0x521)][_0x49e1c9(0x1ed)](_0x14f977);}catch{_0x58cffd=_0x14f977;}else _0x58cffd=_0x14f977;}}catch(_0x221ba3){console['error'](_0x49e1c9(0x43f),_0x221ba3);return;}await new Promise(_0x4385ec=>{const _0x1fa87b=_0x49e1c9;let _0x24113f=new window[(_0x1fa87b(0x53a))]();_0x24113f[_0x1fa87b(0x32a)]=()=>{const _0x76a3f9=_0x1fa87b;this[_0x76a3f9(0x1fc)][_0x76a3f9(0x55a)](_0x14f977,_0x50ac8c,_0x24113f),_0x24876a[_0x76a3f9(0x23c)](_0x24113f),_0x4385ec();},_0x24113f[_0x1fa87b(0x3af)]=()=>{const _0x2d935c=_0x1fa87b;console[_0x2d935c(0x522)](_0x2d935c(0x588),_0x14f977),_0x4385ec();},_0x24113f[_0x1fa87b(0x4ed)]=_0x58cffd;});}};_0x319285=_0x39c461([_0x400e7c(0x0,_0x2ed59f[_0x2766d8(0x554)]),_0x400e7c(0x1,(0x0,_0x35d996['Inject'])(_0x565640[_0x2766d8(0x248)])),_0x400e7c(0x2,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x35d996[_0x2766d8(0x5d0)])),_0x400e7c(0x3,_0x35d996[_0x2766d8(0x27e)]),_0x400e7c(0x4,_0x35d996['IURLImageService']),_0x400e7c(0x5,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x1ad5b7[_0x2766d8(0x47c)]))],_0x319285);let _0x36f6fd=class extends _0x35d996['Disposable']{constructor(_0x4980b5,_0x594a13,_0x380290,_0x145922,_0x455268,_0x137c7e){const _0x7db71c=_0x2766d8;super(),this[_0x7db71c(0x482)]=_0x4980b5,this['_sheetsShapeService']=_0x594a13,this[_0x7db71c(0x4bb)]=_0x380290,this[_0x7db71c(0x316)]=_0x145922,this[_0x7db71c(0x251)]=_0x455268,this['_commandService']=_0x137c7e,_0x2a4a7a(this,_0x7db71c(0x2bb),null),_0x2a4a7a(this,_0x7db71c(0x370),null),_0x2a4a7a(this,'_subUnitId',null),_0x2a4a7a(this,_0x7db71c(0x384),void 0x0),_0x2a4a7a(this,_0x7db71c(0x298),[]),_0x2a4a7a(this,_0x7db71c(0x5eb),0x0),_0x2a4a7a(this,_0x7db71c(0x5b8),0x0),_0x2a4a7a(this,'_baseShapeWidth',0x0),_0x2a4a7a(this,_0x7db71c(0x44a),0x0),_0x2a4a7a(this,_0x7db71c(0x52c),!0x1),_0x2a4a7a(this,'_activeAdjustInfo',void 0x0),_0x2a4a7a(this,_0x7db71c(0x5a7),void 0x0),_0x2a4a7a(this,_0x7db71c(0x22c),void 0x0),_0x2a4a7a(this,_0x7db71c(0x376),void 0x0),_0x2a4a7a(this,_0x7db71c(0x2dc),!0x1),this['_registerDrawingFocusChangeHandler'](),this['_registerDrawingMoveHandler']();}['_getShapeAdjustPointListById'](_0x53616f,_0x431374,_0x5a067c){const _0x41e419=_0x2766d8;let _0x4e25d5=this[_0x41e419(0x218)]['getShapeModel'](_0x53616f,_0x431374,_0x5a067c);if(_0x4e25d5)return _0x4e25d5[_0x41e419(0x34d)]();}[_0x2766d8(0x4b7)](){this['_clearShapeAdjustControls']();}['refreshAdjustControls'](){const _0x1c134c=_0x2766d8;this[_0x1c134c(0x432)](!0x0);}['setShouldShowAdjust'](_0x2865ca){const _0x2fb729=_0x2766d8;this[_0x2fb729(0x2dc)]=_0x2865ca;}[_0x2766d8(0x1d4)](_0xc41dbb,_0x337c9d,_0x340413,_0x4e21aa){const _0x450af8=_0x2766d8;let _0x42e7bf=this[_0x450af8(0x218)][_0x450af8(0x338)](_0xc41dbb,_0x337c9d,_0x340413);if(_0x42e7bf)return _0x42e7bf[_0x450af8(0x5a4)](_0x4e21aa);}[_0x2766d8(0x343)](_0x590869=!0x1){const _0xef3b37=_0x2766d8;if(this[_0xef3b37(0x370)]===null||this[_0xef3b37(0x3f6)]===null||this[_0xef3b37(0x2bb)]===null)return;let _0x785c45=this[_0xef3b37(0x4bb)][_0xef3b37(0x4ee)](this[_0xef3b37(0x370)]);if(!_0x785c45||!_0x785c45['with'](_0x590c15['SheetSkeletonManagerService'])['getCurrentSkeleton']())return;let {scene:_0x11aab1}=_0x785c45,_0xa50679={'unitId':this[_0xef3b37(0x370)],'subUnitId':this[_0xef3b37(0x3f6)],'drawingId':this[_0xef3b37(0x2bb)]},_0x4e5496=this[_0xef3b37(0x482)][_0xef3b37(0x26d)](_0xa50679),{transform:_0x9f4e71}=_0x4e5496;if(!_0x9f4e71||_0x4e5496[_0xef3b37(0x313)]!==_0x35d996[_0xef3b37(0x44f)][_0xef3b37(0x4ba)])return;let {left:_0x56c393,top:_0x7658d5,width:_0xd25c0b,height:_0x47c907,flipX:_0x2efe5a,flipY:_0x1e3aa9,angle:_0x4302a6=0x0}=_0x9f4e71;if(_0x56c393===void 0x0||_0x7658d5===void 0x0)return;if(_0x590869){let _0x342b5d=this[_0xef3b37(0x218)][_0xef3b37(0x338)](this['_unitId'],this[_0xef3b37(0x3f6)],this[_0xef3b37(0x2bb)]);_0x342b5d==null||_0x342b5d['updateContext']({'width':_0xd25c0b??0x0,'height':_0x47c907??0x0}),this[_0xef3b37(0x384)]=_0x342b5d==null?void 0x0:_0x342b5d[_0xef3b37(0x34d)]();}let _0x924a3d=this[_0xef3b37(0x384)];for(let _0x4d8671=0x0;_0x4d8671<_0x924a3d[_0xef3b37(0x2f1)];_0x4d8671++){let _0x43a76b=_0x924a3d[_0x4d8671],_0x3024ec=_0x43a76b['x'],_0x3dc532=_0x43a76b['y'];if(_0x2efe5a&&(_0x3024ec=(_0xd25c0b||0x0)-_0x3024ec),_0x1e3aa9&&(_0x3dc532=(_0x47c907||0x0)-_0x3dc532),_0x4302a6!==0x0){let _0xa57821=(_0xd25c0b||0x0)/0x2,_0x26a9a7=(_0x47c907||0x0)/0x2,_0x8e1a5d=_0x4302a6*Math['PI']/0xb4,_0x33ec52=Math[_0xef3b37(0x448)](_0x8e1a5d),_0x3acd0d=Math['sin'](_0x8e1a5d),_0x3498c5=_0x3024ec-_0xa57821,_0x3736a3=_0x3dc532-_0x26a9a7;_0x3024ec=_0xa57821+(_0x3498c5*_0x33ec52-_0x3736a3*_0x3acd0d),_0x3dc532=_0x26a9a7+(_0x3498c5*_0x3acd0d+_0x3736a3*_0x33ec52);}let _0x4c6964={'x':_0x3024ec,'y':_0x3dc532,'adjName':_0x43a76b[_0xef3b37(0x4b1)]};this[_0xef3b37(0x1e5)](_0x11aab1,_0x4c6964,_0x4c6964[_0xef3b37(0x4b1)],_0x56c393,_0x7658d5,this['_unitId'],this[_0xef3b37(0x3f6)]);}}[_0x2766d8(0x432)](_0x49365a=!0x1){_0x49365a&&(this['_clearShapeAdjustControls'](),this['_createShapeAdjustControls'](_0x49365a));}[_0x2766d8(0x1e5)](_0x48711d,_0x4e671f,_0x2f2c1b,_0x866fea,_0x4cba24,_0xf04a7b,_0x8f247f){const _0xcf6c89=_0x2766d8;if(!this['_activeShapeId'])return;let _0x4400b6=_0x48711d[_0xcf6c89(0x1e9)](_0xcf6c89(0x5b2)+this[_0xcf6c89(0x2bb)]+'-'+_0x2f2c1b);if(_0x4400b6){_0x4400b6['transformByState']({'left':_0x4e671f['x']+_0x866fea-_0x1f2a15[_0xcf6c89(0x540)][_0xcf6c89(0x259)],'top':_0x4e671f['y']+_0x4cba24-_0x1f2a15[_0xcf6c89(0x540)][_0xcf6c89(0x259)]});return;}let _0x35445a={'left':_0x4e671f['x']+_0x866fea-_0x1f2a15[_0xcf6c89(0x540)]['adjHandleSize'],'top':_0x4e671f['y']+_0x4cba24-_0x1f2a15[_0xcf6c89(0x540)][_0xcf6c89(0x259)],'adjName':_0x2f2c1b,'shapeId':this[_0xcf6c89(0x2bb)],'unitId':_0xf04a7b,'subUnitId':_0x8f247f,'width':_0x1f2a15[_0xcf6c89(0x540)]['adjHandleSize']+0x8,'height':_0x1f2a15[_0xcf6c89(0x540)][_0xcf6c89(0x259)]+0x8,'zIndex':_0x580d8a['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0},_0x18a3dd=new _0x56f3e0(_0xcf6c89(0x5b2)+this['_activeShapeId']+'-'+_0x2f2c1b,_0x35445a);this[_0xcf6c89(0x298)][_0xcf6c89(0x373)](_0x18a3dd),this[_0xcf6c89(0x4ac)](_0x18a3dd,_0x48711d,_0x2f2c1b),_0x48711d[_0xcf6c89(0x476)](_0x18a3dd,_0x580d8a[_0xcf6c89(0x424)]+0x1);}[_0x2766d8(0x506)](){const _0x432409=_0x2766d8;this[_0x432409(0x298)][_0x432409(0x2f1)]!==0x0&&(this[_0x432409(0x298)]['forEach'](_0x1aae83=>{const _0x318b68=_0x432409;_0x1aae83[_0x318b68(0x2a4)]();}),this['_shapes']=[]);}[_0x2766d8(0x569)](){const _0x365ee4=_0x2766d8;this[_0x365ee4(0x343)]();}[_0x2766d8(0x3fe)](_0x578b12,_0x4b5da9){const _0xcc5be3=_0x2766d8;var _0x384729;let _0x57e067={'x':0x0,'y':0x0};if(!_0x578b12||!_0x4b5da9)return _0x57e067;let _0x48d475=this[_0xcc5be3(0x4bb)][_0xcc5be3(0x4ee)](_0x578b12);if(!_0x48d475||!_0x48d475[_0xcc5be3(0x28f)](_0x590c15[_0xcc5be3(0x599)])[_0xcc5be3(0x4d9)](_0x4b5da9))return _0x57e067;let _0x1c312=_0x48d475['with'](_0x590c15[_0xcc5be3(0x258)]),_0x3d2607=_0x1c312==null?void 0x0:_0x1c312['getCurrentScrollState']();if(!_0x3d2607)return _0x57e067;let _0x1949b8=(_0x384729=this[_0xcc5be3(0x251)][_0xcc5be3(0x438)](_0x578b12))==null?void 0x0:_0x384729[_0xcc5be3(0x456)](_0x4b5da9);if(!_0x1949b8)return _0x57e067;let _0x764770=(0x0,_0x590c15[_0xcc5be3(0x2a6)])(_0x3d2607[_0xcc5be3(0x474)],_0x3d2607[_0xcc5be3(0x527)],_0x48d475[_0xcc5be3(0x394)],_0x1949b8);return _0x764770?{'x':_0x764770['viewportScrollX'],'y':_0x764770['viewportScrollY']}:_0x57e067;}[_0x2766d8(0x4fe)](_0x18bc1d,_0x2d0013){const _0x14cd60=_0x2766d8;var _0x46eba9;let _0x52bd1d=(_0x46eba9=this['_univerInstanceService'][_0x14cd60(0x438)](_0x18bc1d))==null?void 0x0:_0x46eba9[_0x14cd60(0x456)](_0x2d0013);return(_0x52bd1d==null?void 0x0:_0x52bd1d['getZoomRatio']())??0x1;}[_0x2766d8(0x4ac)](_0xb2ea18,_0x397e91,_0x160fb3){const _0x11b05b=_0x2766d8;this[_0x11b05b(0x271)]((0x0,_0x35d996[_0x11b05b(0x306)])(_0xb2ea18[_0x11b05b(0x46c)][_0x11b05b(0x1dd)]((_0x2a6bf7,_0x3e9ae5)=>{const _0x2615ec=_0x11b05b;var _0x3f711c,_0x15627c,_0x266a19,_0x392025;let _0x4c4292=_0xb2ea18[_0x2615ec(0x4ce)]();this[_0x2615ec(0x261)]=this[_0x2615ec(0x1d4)](_0x4c4292['unitId'],_0x4c4292[_0x2615ec(0x35e)],_0x4c4292[_0x2615ec(0x314)],_0x160fb3),this[_0x2615ec(0x5a7)]=this[_0x2615ec(0x218)][_0x2615ec(0x338)](_0x4c4292[_0x2615ec(0x280)],_0x4c4292[_0x2615ec(0x35e)],_0x4c4292[_0x2615ec(0x314)]);let _0x3da19a=this[_0x2615ec(0x482)][_0x2615ec(0x26d)]({'unitId':this[_0x2615ec(0x370)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x2615ec(0x2bb)]}),{transform:_0x5d1de7}=_0x3da19a;if(_0x5d1de7){let {left:_0x23d748,top:_0x4b5005,width:_0x570122,height:_0x16d394}=_0x5d1de7;this[_0x2615ec(0x5eb)]=_0x23d748||0x0,this[_0x2615ec(0x5b8)]=_0x4b5005||0x0,this[_0x2615ec(0x5ee)]=_0x570122||0x0,this['_baseShapeHeight']=_0x16d394||0x0;}let _0xfef936=!!((_0x3f711c=_0x3da19a[_0x2615ec(0x339)])!=null&&_0x3f711c[_0x2615ec(0x4f7)]),_0x4a28ea=!!((_0x15627c=_0x3da19a[_0x2615ec(0x339)])!=null&&_0x15627c[_0x2615ec(0x21d)]),_0x19bf70=((_0x266a19=_0x3da19a['transform'])==null?void 0x0:_0x266a19['angle'])||0x0;this[_0x2615ec(0x52c)]=!0x0,_0x397e91[_0x2615ec(0x4fa)]();let _0x4fd673={...((_0x392025=this['_activeAdjustInfo'])==null?void 0x0:_0x392025[_0x2615ec(0x299)])??{}};this[_0x2615ec(0x22c)]=_0x397e91[_0x2615ec(0x5dc)][_0x2615ec(0x1dd)]((_0x377482,_0x299391)=>{const _0x39d62c=_0x2615ec;if(!this[_0x39d62c(0x52c)])return;let {offsetX:_0x9cd24,offsetY:_0x5be82a}=_0x377482,_0x55417d=this[_0x39d62c(0x261)];if(this['_activeShapeModel']&&_0x55417d){_0x397e91[_0x39d62c(0x4fa)](),_0x397e91[_0x39d62c(0x589)](_0x580d8a[_0x39d62c(0x5ac)][_0x39d62c(0x1ea)]);let _0x6946ff={'left':0x0,'top':0x0,'width':this[_0x39d62c(0x5ee)],'height':this[_0x39d62c(0x44a)]},_0x58de51=this[_0x39d62c(0x3fe)](this[_0x39d62c(0x370)],this[_0x39d62c(0x3f6)]),_0x4684e3=this[_0x39d62c(0x4fe)](this[_0x39d62c(0x370)],this['_subUnitId']),_0x571b51=_0x9cd24/_0x4684e3+_0x58de51['x']-this[_0x39d62c(0x5eb)],_0x1d03ec=_0x5be82a/_0x4684e3+_0x58de51['y']-this[_0x39d62c(0x5b8)];if(_0x19bf70!==0x0){let _0x3cbc4b=this[_0x39d62c(0x5ee)]/0x2,_0x3980b7=this[_0x39d62c(0x44a)]/0x2,_0x34355b=_0x19bf70*Math['PI']/0xb4,_0x30e738=Math[_0x39d62c(0x448)](_0x34355b),_0x4cd8c1=Math[_0x39d62c(0x570)](_0x34355b),_0xdfc212=_0x571b51-_0x3cbc4b,_0x234d69=_0x1d03ec-_0x3980b7;_0x571b51=_0x3cbc4b+(_0xdfc212*_0x30e738+_0x234d69*_0x4cd8c1),_0x1d03ec=_0x3980b7+(-_0xdfc212*_0x4cd8c1+_0x234d69*_0x30e738);}_0xfef936&&(_0x571b51=this[_0x39d62c(0x5ee)]-_0x571b51),_0x4a28ea&&(_0x1d03ec=this[_0x39d62c(0x44a)]-_0x1d03ec);let _0x152c1b={'x':_0x571b51,'y':_0x1d03ec},_0x122ef3=this[_0x39d62c(0x5a7)][_0x39d62c(0x38c)](_0x6946ff,_0x152c1b,_0x55417d,_0xfef936,_0x4a28ea);if(Object[_0x39d62c(0x38e)](_0x122ef3)[_0x39d62c(0x2f1)]===0x0)return;for(let [_0x4078b2,_0xa42885]of Object['entries'](_0x122ef3))this['_activeShapeModel'][_0x39d62c(0x3ae)](_0x4078b2,_0xa42885);this['_activeShapeModel']['updateContext']({'width':this['_baseShapeWidth'],'height':this[_0x39d62c(0x44a)]});let _0x5d8458=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x4c4292[_0x39d62c(0x280)],'subUnitId':_0x4c4292[_0x39d62c(0x35e)],'drawingId':_0x4c4292['drawingId']});_0x5d8458&&(this['_sheetDrawingShapeRenderController'][_0x39d62c(0x34a)](_0x5d8458,_0x397e91),this[_0x39d62c(0x384)]=this[_0x39d62c(0x594)](_0x4c4292[_0x39d62c(0x280)],_0x4c4292[_0x39d62c(0x35e)],_0x4c4292[_0x39d62c(0x314)]),this[_0x39d62c(0x569)]());}_0x299391[_0x39d62c(0x5c7)]();}),this[_0x2615ec(0x376)]=_0x397e91['onPointerUp$']['subscribeEvent']((_0x1d4b28,_0xa4953d)=>{const _0x38600b=_0x2615ec;this[_0x38600b(0x22c)]['unsubscribe'](),this[_0x38600b(0x376)][_0x38600b(0x2c9)](),_0x397e91[_0x38600b(0x4af)]();let _0x3d5c4d=this[_0x38600b(0x261)];if(_0x3d5c4d){let _0x2a8903=_0x4c4292[_0x38600b(0x280)],_0x497aea=_0x4c4292[_0x38600b(0x35e)],_0xf18924=_0x4c4292[_0x38600b(0x314)],_0x3c2d37={};for(let _0x449b48 of Object['keys'](_0x3d5c4d['currentAdjustValues'])){var _0x1fd3a5;let _0x74380c=(_0x1fd3a5=this[_0x38600b(0x5a7)])==null?void 0x0:_0x1fd3a5[_0x38600b(0x28b)](_0x449b48);_0x74380c!==void 0x0&&(_0x3c2d37[_0x449b48]=_0x74380c);}Object[_0x38600b(0x38e)](_0x3c2d37)[_0x38600b(0x2f1)]>0x0&&_0x5b243b(this['_commandService'],_0x2a8903,_0x497aea,_0xf18924,{'oldShapeData':{'adjustValues':_0x4fd673}},{'adjustValues':_0x3c2d37});}this[_0x38600b(0x261)]=void 0x0,this[_0x38600b(0x5a7)]=void 0x0,this['_isStartAdjusting']=!0x1,_0xa4953d[_0x38600b(0x5c7)](),_0x397e91[_0x38600b(0x3eb)]();}),_0x3e9ae5[_0x2615ec(0x5c7)]();})));}[_0x2766d8(0x2a5)](){const _0x1e8c33=_0x2766d8;let _0x5da78f=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x35d996[_0x1e8c33(0x31d)][_0x1e8c33(0x3de)]);this['disposeWithMe'](_0x5da78f[_0x1e8c33(0x21c)]((0x0,_0x4737d9['switchMap'])(_0x375188=>_0x375188?_0x375188[_0x1e8c33(0x435)][_0x1e8c33(0x21c)]((0x0,_0x4737d9['switchMap'])(_0x3364ee=>{const _0x5b2b98=_0x1e8c33;if(!_0x3364ee)return _0x4737d9['EMPTY'];let _0x17a837=_0x375188[_0x5b2b98(0x331)](),_0x39bfd4=this[_0x5b2b98(0x4bb)][_0x5b2b98(0x4ee)](_0x17a837),_0x339b67=_0x39bfd4==null?void 0x0:_0x39bfd4[_0x5b2b98(0x394)];return _0x339b67?(0x0,_0x4737d9['of'])(_0x339b67):_0x4737d9[_0x5b2b98(0x486)];})):_0x4737d9[_0x1e8c33(0x486)]))[_0x1e8c33(0x56a)](_0x1c67f6=>{const _0x488904=_0x1e8c33;let _0x30c6cc=_0x1c67f6[_0x488904(0x40c)]();this[_0x488904(0x271)](_0x1c67f6[_0x488904(0x5dc)]['subscribeEvent'](()=>{const _0x24402d=_0x488904;this[_0x24402d(0x2dc)];})),this[_0x488904(0x271)](_0x30c6cc['changeStart$'][_0x488904(0x56a)](_0x38bca0=>{const _0x2fcf31=_0x488904;let {objects:_0x55db48}=_0x38bca0;this[_0x2fcf31(0x343)](),_0x55db48!==null&&_0x55db48[_0x2fcf31(0x22b)]===0x1&&_0x55db48[_0x2fcf31(0x3bf)]()[_0x2fcf31(0x439)]()[_0x2fcf31(0x58f)]instanceof _0x423ac6&&this['setShouldShowAdjust'](!0x0);})),this[_0x488904(0x271)](_0x30c6cc[_0x488904(0x5b0)][_0x488904(0x56a)](()=>{const _0x38557f=_0x488904;this['_isShouldShowDrawingShapeAdjust']&&this[_0x38557f(0x506)]();})),this[_0x488904(0x271)](_0x1c67f6['onPointerUp$']['subscribeEvent'](()=>{const _0x2ea54e=_0x488904;this[_0x2ea54e(0x2dc)]&&(this[_0x2ea54e(0x230)](!0x1),this[_0x2ea54e(0x343)]());})),this['disposeWithMe'](_0x30c6cc[_0x488904(0x34e)][_0x488904(0x56a)](()=>{const _0x3e2275=_0x488904;this['_unitId']&&this[_0x3e2275(0x3f6)]&&this['_activeShapeId']&&this[_0x3e2275(0x482)][_0x3e2275(0x26d)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x3e2275(0x2bb)]})&&(this[_0x3e2275(0x384)]=this['_getShapeAdjustPointListById'](this['_unitId'],this[_0x3e2275(0x3f6)],this['_activeShapeId']),this[_0x3e2275(0x569)]());}));}));}[_0x2766d8(0x425)](){const _0x55499d=_0x2766d8;this[_0x55499d(0x271)](this[_0x55499d(0x54f)][_0x55499d(0x3f5)](_0x14aaea=>{const _0x471e81=_0x55499d;if(_0x14aaea['id']!==_0x565640[_0x471e81(0x229)]['id'])return;let {unitId:_0x2b6aa3,subUnitId:_0x4a0aa3,shapeId:_0x293adf}=_0x14aaea[_0x471e81(0x1db)];_0x2b6aa3===this['_unitId']&&_0x4a0aa3===this[_0x471e81(0x3f6)]&&_0x293adf===this[_0x471e81(0x2bb)]&&this[_0x471e81(0x2b2)]();})),this[_0x55499d(0x271)](this[_0x55499d(0x482)]['focus$'][_0x55499d(0x56a)](_0x9a63ed=>{const _0x289bad=_0x55499d;if(_0x9a63ed[_0x289bad(0x2f1)]===0x1){let _0x51ae6b=_0x9a63ed[0x0];if(_0x51ae6b[_0x289bad(0x313)]===_0x35d996[_0x289bad(0x44f)][_0x289bad(0x4ba)]&&this['_univerInstanceService'][_0x289bad(0x29d)](_0x51ae6b[_0x289bad(0x280)])===_0x35d996[_0x289bad(0x31d)][_0x289bad(0x3de)]){this[_0x289bad(0x2bb)]=_0x51ae6b[_0x289bad(0x314)];let {unitId:_0x1152e2,subUnitId:_0x564b98}=_0x51ae6b;this[_0x289bad(0x384)]=this[_0x289bad(0x594)](_0x1152e2,_0x564b98,this[_0x289bad(0x2bb)]),this[_0x289bad(0x370)]=_0x1152e2,this[_0x289bad(0x3f6)]=_0x564b98,this[_0x289bad(0x506)](),this['_createShapeAdjustControls']();return;}}this[_0x289bad(0x2bb)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x289bad(0x370)]=null,this[_0x289bad(0x3f6)]=null,this[_0x289bad(0x506)]();})),this[_0x55499d(0x271)](this[_0x55499d(0x482)][_0x55499d(0x59c)][_0x55499d(0x56a)](_0x242a2b=>{const _0x465786=_0x55499d;if(_0x242a2b['length']===0x1){var _0x514fda;let _0x122699=_0x242a2b[0x0];((_0x514fda=this['_drawingManagerService'][_0x465786(0x26d)](_0x122699))==null?void 0x0:_0x514fda[_0x465786(0x313)])===_0x35d996['DrawingTypeEnum'][_0x465786(0x4ba)]&&this[_0x465786(0x432)](!0x0);}})),this[_0x55499d(0x271)](this[_0x55499d(0x482)][_0x55499d(0x210)][_0x55499d(0x56a)](_0x40e8c9=>{const _0x1f5529=_0x55499d;for(let _0x476813 of _0x40e8c9)this[_0x1f5529(0x2bb)]===_0x476813[_0x1f5529(0x314)]&&(this[_0x1f5529(0x2bb)]=null,this[_0x1f5529(0x384)]=void 0x0,this['_unitId']=null,this[_0x1f5529(0x3f6)]=null,this[_0x1f5529(0x506)]());}));}};_0x36f6fd=_0x39c461([_0x400e7c(0x0,_0x2ed59f[_0x2766d8(0x554)]),_0x400e7c(0x1,(0x0,_0x35d996['Inject'])(_0x565640['SheetsShapeService'])),_0x400e7c(0x2,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x580d8a['IRenderManagerService'])),_0x400e7c(0x3,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x319285)),_0x400e7c(0x4,_0x35d996['IUniverInstanceService']),_0x400e7c(0x5,_0x35d996[_0x2766d8(0x3c6)])],_0x36f6fd);let _0x482521={'id':_0x2766d8(0x3bb),'type':_0x35d996['CommandType'][_0x2766d8(0x225)],'handler':(_0x4cbaef,_0x39170b)=>{const _0x22c91e=_0x2766d8;let _0x5c4f22=_0x4cbaef[_0x22c91e(0x340)](_0x2ed59f[_0x22c91e(0x554)]),_0x44d219=_0x4cbaef[_0x22c91e(0x340)](_0x580d8a[_0x22c91e(0x266)]),_0x376da0=_0x4cbaef[_0x22c91e(0x340)](_0x36f6fd);if(_0x39170b==null)return!0x0;if(_0x39170b[_0x22c91e(0x2f1)]>0x0){var _0x5aa57a;let _0x440eb3=(_0x5aa57a=_0x44d219[_0x22c91e(0x4ee)](_0x39170b[0x0][_0x22c91e(0x280)]))==null?void 0x0:_0x5aa57a[_0x22c91e(0x394)];if(_0x440eb3){let {unitId:_0x3b54ea,subUnitId:_0x5f16e9,drawingId:_0x31c684}=_0x39170b[0x0],_0xf79a9c=(0x0,_0x2ed59f[_0x22c91e(0x2f2)])({'unitId':_0x3b54ea,'subUnitId':_0x5f16e9,'drawingId':_0x31c684},void 0x0),_0x2d993a=_0x440eb3[_0x22c91e(0x1e9)](_0xf79a9c);if(_0x2d993a){var _0x5da862;(_0x5da862=_0x44d219[_0x22c91e(0x4ee)](_0x39170b[0x0][_0x22c91e(0x280)]))==null||(_0x5da862=_0x5da862[_0x22c91e(0x394)]['getTransformer']())==null||_0x5da862[_0x22c91e(0x3b8)](_0x2d993a);}}_0x5c4f22[_0x22c91e(0x2f5)](_0x39170b),_0x376da0['setShouldShowAdjust'](!0x1);}return!0x0;}},_0x3a6254={'type':_0x35d996[_0x2766d8(0x309)][_0x2766d8(0x56b)],'id':_0x2766d8(0x34c),'handler':async(_0x4f9223,_0x25fd07)=>{const _0x52eaed=_0x2766d8;var _0x1b0801,_0x3dc479;let _0x3bb4d4=(0x0,_0x2a684c[_0x52eaed(0x231)])(_0x4f9223['get'](_0x35d996['IUniverInstanceService']));if(!_0x3bb4d4)return!0x1;let {unitId:_0xf5b17a,subUnitId:_0x41c108,worksheet:_0x502bbe}=_0x3bb4d4,_0x3b5b56=_0x502bbe['getConfig'](),_0x2939b3=_0x3b5b56['type']??_0x35d996[_0x52eaed(0x45d)]['GRID'];if(_0x2939b3!==_0x35d996['SheetTypes'][_0x52eaed(0x45a)]&&_0x2939b3!==_0x35d996['SheetTypes']['CHART'])return!0x1;let _0x3f3d28=_0x4f9223[_0x52eaed(0x340)](_0x35d996[_0x52eaed(0x359)]);if(((_0x1b0801=_0x3f3d28['getPermissionPoint'](new _0x2a684c[(_0x52eaed(0x4c0))](_0xf5b17a)['id']))==null?void 0x0:_0x1b0801[_0x52eaed(0x58f)])!==!0x0||((_0x3dc479=_0x3f3d28[_0x52eaed(0x5ec)](new _0x2a684c['WorksheetEditPermission'](_0xf5b17a,_0x41c108)['id']))==null?void 0x0:_0x3dc479[_0x52eaed(0x58f)])!==!0x0)return!0x1;let _0x31f7be=_0x4f9223[_0x52eaed(0x340)](_0x35d996[_0x52eaed(0x3c6)]),{value:_0x1d946c,enhanceParams:_0x155cf6}=_0x25fd07,_0x5b356d={'unitId':_0xf5b17a,'subUnitId':_0x41c108,'shapeType':_0x1d946c,'shapeId':(0x0,_0x35d996[_0x52eaed(0x2f3)])()};if(_0x2939b3===_0x35d996['SheetTypes'][_0x52eaed(0x367)]){let _0x4a3248=_0x4f9223[_0x52eaed(0x340)](_0x580d8a[_0x52eaed(0x266)])[_0x52eaed(0x4ee)](_0xf5b17a),_0x34beb7=_0x4a3248==null?void 0x0:_0x4a3248[_0x52eaed(0x48a)][_0x52eaed(0x340)](_0x590c15['SHEET_VIEW_KEY'][_0x52eaed(0x4a7)]);if(!_0x4a3248||!_0x34beb7||![_0x34beb7[_0x52eaed(0x204)],_0x34beb7[_0x52eaed(0x414)],_0x34beb7[_0x52eaed(0x49e)],_0x34beb7['height']][_0x52eaed(0x30a)](Number[_0x52eaed(0x205)])||_0x34beb7[_0x52eaed(0x49e)]<=0x0||_0x34beb7['height']<=0x0)return!0x1;let _0x592b7d={'row':0x0,'column':0x0,'rowOffset':0x0,'columnOffset':0x0},_0x4af352=(0x0,_0x47830d[_0x52eaed(0x348)])([{'unitId':_0xf5b17a,'subUnitId':_0x41c108,'drawingId':_0x5b356d['shapeId'],'drawingType':_0x35d996[_0x52eaed(0x44f)][_0x52eaed(0x4ba)],'transform':{'left':0x0,'top':0x0,'width':_0x565640[_0x52eaed(0x1de)],'height':_0x565640[_0x52eaed(0x41d)]},'sheetTransform':{'from':_0x592b7d,'to':_0x592b7d},'axisAlignSheetTransform':{'from':_0x592b7d,'to':_0x592b7d}}],{'left':_0x34beb7[_0x52eaed(0x204)],'top':_0x34beb7['top'],'width':_0x34beb7[_0x52eaed(0x49e)],'height':_0x34beb7[_0x52eaed(0x3f8)]},_0x3b5b56[_0x52eaed(0x4f5)]===_0x35d996[_0x52eaed(0x1d7)]['TRUE']);if(!(_0x4af352!=null&&_0x4af352[_0x52eaed(0x2f1)]))return!0x1;let _0x4947ab=_0x4af352[0x0][_0x52eaed(0x339)];_0x5b356d[_0x52eaed(0x2c7)]={'x':_0x4947ab[_0x52eaed(0x204)],'y':_0x4947ab['top']},_0x5b356d[_0x52eaed(0x49e)]=_0x4947ab['width'],_0x5b356d[_0x52eaed(0x3f8)]=_0x4947ab[_0x52eaed(0x3f8)];}else{let _0x5f449d=_0x4f9223['get'](_0x2a684c[_0x52eaed(0x53e)])['getCurrentLastSelection']();if(!_0x5f449d)return!0x1;_0x5b356d['range']=_0x5f449d['range'];}if(_0x155cf6){let {startArrow:_0x4a8915,endArrow:_0x157134,horizontal:_0x5291ae,vertical:_0x32ae02}=_0x155cf6,_0x10cd29=(0x0,_0x1f2a15['isConnectorShape'])(_0x1d946c),_0x5c9e47=_0x1d946c===_0x1f2a15['ShapeTypeEnum']['Rect'];if(_0x10cd29&&(_0x4a8915||_0x157134)&&(_0x5b356d[_0x52eaed(0x23b)]={'ln':{'startArrow':_0x4a8915?{'type':_0x1f2a15[_0x52eaed(0x202)][_0x52eaed(0x392)],'size':_0x1f2a15[_0x52eaed(0x265)][_0x52eaed(0x434)]}:void 0x0,'endArrow':_0x157134?{'type':_0x1f2a15[_0x52eaed(0x202)][_0x52eaed(0x392)],'size':_0x1f2a15['ShapeArrowSizeEnum'][_0x52eaed(0x319)]}:void 0x0}}),_0x5c9e47&&(_0x5291ae||_0x32ae02)){let _0x479383=_0x4f9223['get'](_0x35d996[_0x52eaed(0x1dc)]);_0x5b356d[_0x52eaed(0x23b)]=(0x0,_0x1ad5b7['createShapeTextBoxShapeData'])({'fill':{'fillType':_0x1f2a15[_0x52eaed(0x308)][_0x52eaed(0x462)],'color':_0x479383[_0x52eaed(0x447)](_0x52eaed(0x5bd))},'isHorizontal':!!_0x5291ae,'stroke':{'lineStrokeType':_0x1f2a15[_0x52eaed(0x4e2)][_0x52eaed(0x238)],'width':0x1,'color':_0x479383[_0x52eaed(0x447)]('gray.300')}});}}let _0x11a010=_0x31f7be[_0x52eaed(0x478)](_0x565640[_0x52eaed(0x242)]['id'],_0x5b356d);return _0x11a010&&await _0x31f7be[_0x52eaed(0x3d1)](_0x482521['id'],[{'unitId':_0xf5b17a,'subUnitId':_0x41c108,'drawingId':_0x5b356d[_0x52eaed(0x2a8)]}]),_0x11a010;}},_0x462378=_0x2766d8(0x5e9),_0x5bd6d7=_0x2766d8(0x400),_0x26c51d=_0x2766d8(0x2ef),_0x274130=_0x2766d8(0x5cd),_0xde4401=(0x0,_0x35d996[_0x2766d8(0x332)])(_0x2766d8(0x49f)),_0x26dfdd=_0x2766d8(0x260),_0x1af41a={'id':_0x2766d8(0x5b4),'type':_0x35d996['CommandType'][_0x2766d8(0x56b)],'handler':(_0x1c3268,_0x1feed2)=>{const _0x924fef=_0x2766d8;let _0x1e7604=_0x1c3268[_0x924fef(0x340)](_0x23e778[_0x924fef(0x1f7)]),_0x5ed909=_0x1c3268[_0x924fef(0x340)](_0x35d996[_0x924fef(0x5d0)]),_0x307585=_0x1c3268[_0x924fef(0x340)](_0x35d996[_0x924fef(0x403)]),_0xae3f22=_0x1c3268[_0x924fef(0x340)](_0x35d996[_0x924fef(0x3c6)]);return(0x0,_0x2a684c['getSheetCommandTarget'])(_0x307585)?(_0x1feed2==null?void 0x0:_0x1feed2[_0x924fef(0x58f)])===_0x924fef(0x3e2)?(_0x1e7604['close'](_0x5bd6d7),!0x0):(_0x1e7604[_0x924fef(0x4de)]({'id':_0x5bd6d7,'header':{'title':_0x5ed909['t']('sheets-shape-ui.objectListPanel.title')},'children':{'label':_0x5bd6d7},'onClose':()=>{const _0x17ad88=_0x924fef;_0xae3f22[_0x17ad88(0x478)](_0x2ed59f[_0x17ad88(0x2f6)]['id'],[]);},'width':0x168}),!0x0):!0x1;}},_0x236e1f={'type':_0x35d996['CommandType'][_0x2766d8(0x225)],'id':_0x2766d8(0x252),'handler'(){return!0x0;}};function _0x428c26(_0x4df963){const _0x138b25=_0x2766d8;let _0x1576be=_0x4df963[_0x138b25(0x340)](_0x2ed59f[_0x138b25(0x554)])[_0x138b25(0x5bb)](),_0x29c2b1=_0x1576be[_0x138b25(0x2f1)]===0x1?_0x1576be[0x0]:null;if(!_0x29c2b1||_0x29c2b1[_0x138b25(0x313)]!==_0x35d996[_0x138b25(0x44f)][_0x138b25(0x4ba)])return null;let _0x3a42e3=_0x4df963[_0x138b25(0x340)](_0x565640['SheetsShapeService']),_0x3b6485=_0x3a42e3['getShapeTypeById'](_0x29c2b1[_0x138b25(0x280)],_0x29c2b1[_0x138b25(0x35e)],_0x29c2b1[_0x138b25(0x314)]),_0x1538e0=_0x3a42e3[_0x138b25(0x3ec)](_0x29c2b1['unitId'],_0x29c2b1[_0x138b25(0x35e)],_0x29c2b1['drawingId']);return _0x3b6485===void 0x0||!_0x1538e0?null:{'drawing':_0x29c2b1,'shapeData':_0x1538e0,'shapeType':_0x3b6485};}let _0x325b7a={'id':_0x2766d8(0x3e6),'type':_0x35d996[_0x2766d8(0x309)][_0x2766d8(0x225)],'handler':(_0x5c0810,_0x3f3146)=>{const _0x499e2a=_0x2766d8;let _0x385355=_0x428c26(_0x5c0810),_0x2d779c=(0x0,_0x1ad5b7['getShapeQuickStylePreset'])((_0x3f3146==null?void 0x0:_0x3f3146['presetId'])??(_0x3f3146==null?void 0x0:_0x3f3146['value'])??'');if(!_0x385355||!_0x2d779c||_0x2d779c[_0x499e2a(0x1f3)]!==(0x0,_0x1ad5b7[_0x499e2a(0x365)])(_0x385355[_0x499e2a(0x23b)]))return!0x1;let _0x545b11=(0x0,_0x1ad5b7[_0x499e2a(0x2fc)])(_0x385355[_0x499e2a(0x23b)],_0x2d779c);if(!_0x545b11)return!0x1;let {drawing:_0x48f65b}=_0x385355;return _0x5c0810[_0x499e2a(0x340)](_0x35d996[_0x499e2a(0x3c6)])['executeCommand'](_0x33bf3b['id'],{'unitId':_0x48f65b[_0x499e2a(0x280)],'subUnitId':_0x48f65b[_0x499e2a(0x35e)],'shapeId':_0x48f65b[_0x499e2a(0x314)],'shapeData':_0x545b11,'oldShapeJSON':{'oldShapeData':_0x385355['shapeData']}});}},_0x263ab1={'id':'sheet.operation.update-shape-type','type':_0x35d996[_0x2766d8(0x309)]['OPERATION'],'handler':(_0x42dcf9,_0xde8fb8)=>{const _0xa8af89=_0x2766d8;let _0x518200=_0x428c26(_0x42dcf9),_0x316f87=(_0xde8fb8==null?void 0x0:_0xde8fb8['shapeType'])??(_0xde8fb8==null?void 0x0:_0xde8fb8['value']);if(!_0x518200||!_0x316f87||(0x0,_0x1f2a15[_0xa8af89(0x493)])(_0x518200[_0xa8af89(0x3fc)])||(0x0,_0x1f2a15[_0xa8af89(0x493)])(_0x316f87))return!0x1;let _0x426774=(0x0,_0x1ad5b7[_0xa8af89(0x4b0)])(_0x518200[_0xa8af89(0x23b)],_0x316f87);if(!_0x426774)return!0x1;let {drawing:_0x463d68}=_0x518200;return _0x42dcf9[_0xa8af89(0x340)](_0x35d996[_0xa8af89(0x3c6)])[_0xa8af89(0x3d1)](_0x33bf3b['id'],{'unitId':_0x463d68[_0xa8af89(0x280)],'subUnitId':_0x463d68[_0xa8af89(0x35e)],'shapeId':_0x463d68[_0xa8af89(0x314)],'shapeType':_0x316f87,'shapeData':_0x426774,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x518200[_0xa8af89(0x3fc)],'oldShapeData':_0x518200[_0xa8af89(0x23b)]}});}},_0x538cf9=class extends _0x35d996[_0x2766d8(0x491)]{constructor(_0x5c573e,_0x4a5b01){const _0x207e83=_0x2766d8;super(),this['_clipService']=_0x5c573e,this[_0x207e83(0x482)]=_0x4a5b01,this[_0x207e83(0x20d)](),this[_0x207e83(0x430)][_0x207e83(0x50c)](!0x0),this[_0x207e83(0x271)]({'dispose':()=>this[_0x207e83(0x430)]['setCanUseShapeClip'](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x524267=_0x2766d8;let _0x41b365=this[_0x524267(0x430)],_0x383871=new Map(),_0x3698eb=_0x41b365[_0x524267(0x39c)]((_0x1fec04,_0x5d0810,_0x11887d,_0x365d43,_0x188b05)=>{const _0x10d673=_0x524267;let _0xcb2cb7=_0x5d0810;if(_0xcb2cb7===_0x1f2a15[_0x10d673(0x224)][_0x10d673(0x255)]||_0x5d0810===_0x10d673(0x382))return!0x1;try{let _0x475df1=_0x383871[_0x10d673(0x340)](_0x5d0810);return _0x475df1||(_0x475df1=new _0x1f2a15[(_0x10d673(0x5c0))](_0xcb2cb7,'clip-'+_0x5d0810),_0x383871[_0x10d673(0x39d)](_0x5d0810,_0x475df1)),_0x475df1[_0x10d673(0x352)](),_0x188b05&&Object[_0x10d673(0x38e)](_0x188b05)['length']>0x0&&_0x475df1[_0x10d673(0x203)]({'adjustValues':_0x188b05},!0x0),_0x475df1[_0x10d673(0x240)]({'width':_0x11887d,'height':_0x365d43}),_0x475df1[_0x10d673(0x2c3)](_0x1fec04,{'left':0x0,'top':0x0,'width':_0x11887d,'height':_0x365d43});}catch{return!0x1;}});this[_0x524267(0x271)](_0x3698eb),this[_0x524267(0x271)]({'dispose':()=>_0x383871['clear']()});}['clipByShape'](_0x1a32d7,_0x432cfd,_0x5c4b72,_0xe98eb7,_0x46c673){const _0x178399=_0x2766d8;let _0x2b43b7=this[_0x178399(0x482)]['getDrawingData'](_0x1a32d7,_0x432cfd);if(!_0x2b43b7[_0x5c4b72])return;let _0x2a6862={..._0x2b43b7[_0x5c4b72],'prstGeom':_0xe98eb7,'adjustValues':_0x46c673};this['_drawingManagerService'][_0x178399(0x233)]([_0x2a6862]);}};_0x538cf9=_0x39c461([_0x400e7c(0x0,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x2c4f7e['DrawingImageClipService'])),_0x400e7c(0x1,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x2ed59f[_0x2766d8(0x554)]))],_0x538cf9);let _0x2ae931=_0x2766d8(0x5d1),_0x4aafa5=_0x2766d8(0x470);function _0x2d1fc2({onShapeClick:_0xcb6975,excludeGroups:_0x268561}){const _0x413e48=_0x2766d8;return(0x0,_0x121104[_0x413e48(0x4f2)])(_0x197fcc[_0x413e48(0x516)],{'excludeGroups':_0x268561,'onShapeClick':_0xcb6975,'scrollContainer':_0x413e48(0x3d6)});}function _0x58ceb1(){const _0x2447b3=_0x2766d8;let _0x3b7300=(0x0,_0x23e778[_0x2447b3(0x4e0)])(_0x2ed59f[_0x2447b3(0x554)]),_0x58c63b=(0x0,_0x23e778[_0x2447b3(0x4e0)])(_0x538cf9);return(0x0,_0x121104['jsx'])(_0x197fcc[_0x2447b3(0x24e)],{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0x197fcc[_0x2447b3(0x45e)][_0x2447b3(0x389)]],'onShapeClick':_0x74ea66=>{const _0x397fe9=_0x2447b3;let _0x48cdfd=_0x3b7300[_0x397fe9(0x5bb)]()['find'](_0x48eebb=>_0x48eebb[_0x397fe9(0x313)]===_0x35d996['DrawingTypeEnum'][_0x397fe9(0x2ed)]);if(!_0x48cdfd)return;let {unitId:_0x2ebedb,subUnitId:_0x32ff48,drawingId:_0x331684}=_0x48cdfd;_0x58c63b[_0x397fe9(0x246)](_0x2ebedb,_0x32ff48,_0x331684,_0x74ea66['type']);}});}function _0x2dbee2(){const _0x5eceb4=_0x2766d8;let _0x35d467=(0x0,_0x23e778['useDependency'])(_0x2ed59f[_0x5eceb4(0x554)]),_0x353510=(0x0,_0x23e778[_0x5eceb4(0x4e0)])(_0x538cf9);return(0x0,_0x121104[_0x5eceb4(0x4f2)])(_0x197fcc[_0x5eceb4(0x24e)],{'buttonLabel':_0x5eceb4(0x545),'excludeGroups':[_0x197fcc[_0x5eceb4(0x45e)][_0x5eceb4(0x389)]],'DropdownComponent':_0x36db41[_0x5eceb4(0x440)],'onShapeClick':_0x40aa4f=>{const _0x3853e5=_0x5eceb4;let _0x5a7f65=_0x35d467[_0x3853e5(0x5bb)]()['find'](_0x44e7fe=>_0x44e7fe[_0x3853e5(0x313)]===_0x35d996[_0x3853e5(0x44f)][_0x3853e5(0x2ed)]);if(!_0x5a7f65)return;let {unitId:_0x48cf1d,subUnitId:_0x4c57d9,drawingId:_0x53c60d}=_0x5a7f65;_0x353510[_0x3853e5(0x246)](_0x48cf1d,_0x4c57d9,_0x53c60d,_0x40aa4f['type']);}});}function _0x275f06(){const _0x206588=_0x2766d8;let _0x21f224=(0x0,_0x23e778[_0x206588(0x4e0)])(_0x23e778[_0x206588(0x36a)]),_0xfe9d88=(0x0,_0x23e778[_0x206588(0x4e0)])(_0x2ed59f['IDrawingManagerService']),_0x94196b=(0x0,_0x23e778[_0x206588(0x4e0)])(_0x35d996[_0x206588(0x403)]),_0x1dc298=_0xfe9d88['getFocusDrawings']()[0x0],_0x538293=_0x1dc298?_0x94196b['getUnitType'](_0x1dc298[_0x206588(0x280)]):void 0x0,_0x3def54=_0x538293===_0x35d996[_0x206588(0x31d)]['UNIVER_DOC']?'doc.image-clip.shape-picker.component':_0x538293===_0x35d996[_0x206588(0x31d)][_0x206588(0x3de)]?_0x4aafa5:void 0x0,_0x42e713=_0x3def54?_0x21f224[_0x206588(0x340)](_0x3def54):void 0x0;return _0x42e713?(0x0,_0x121104['jsx'])(_0x42e713,{}):null;}function _0x10d6b6(){const _0x4cfd3f=_0x2766d8;let _0x5a2d9e=(0x0,_0x23e778[_0x4cfd3f(0x4e0)])(_0x35d996[_0x4cfd3f(0x3c6)]);return(0x0,_0x121104['jsx'])(_0x2d1fc2,{'onShapeClick':_0x11bbd3=>{const _0x5ee8d6=_0x4cfd3f;_0x5a2d9e['executeCommand'](_0x3a6254['id'],{'value':_0x11bbd3[_0x5ee8d6(0x1f3)],'enhanceParams':{'endArrow':_0x11bbd3[_0x5ee8d6(0x46b)],'startArrow':_0x11bbd3[_0x5ee8d6(0x54a)],'horizontal':_0x11bbd3[_0x5ee8d6(0x544)],'vertical':_0x11bbd3[_0x5ee8d6(0x22f)]}});}});}function _0x25a995(){return(0x0,_0x121104['jsx'])(_0x10d6b6,{});}function _0xd1e35f(_0x4e2ca8){const _0x717602=_0x2766d8;return(0x0,_0x590c15['deriveStateFromActiveSheet$'])(_0x4e2ca8[_0x717602(0x340)](_0x35d996[_0x717602(0x403)]),!0x0,({workbook:_0x3a319d,worksheet:_0x17a487})=>{const _0x193f68=_0x717602;let _0x31548b=_0x17a487[_0x193f68(0x5cf)]()[_0x193f68(0x1f3)]??_0x35d996[_0x193f68(0x45d)][_0x193f68(0x45a)];if(_0x31548b===_0x35d996[_0x193f68(0x45d)][_0x193f68(0x45a)])return(0x0,_0x590c15['getCurrentRangeDisable$'])(_0x4e2ca8);if(_0x31548b!==_0x35d996[_0x193f68(0x45d)][_0x193f68(0x367)])return(0x0,_0x4737d9['of'])(!0x0);let _0x33f129=_0x4e2ca8[_0x193f68(0x340)](_0x35d996[_0x193f68(0x359)]),_0x2f6292=[new _0x2a684c[(_0x193f68(0x4c0))](_0x3a319d[_0x193f68(0x331)]())['id'],new _0x2a684c[(_0x193f68(0x59b))](_0x3a319d[_0x193f68(0x331)](),_0x17a487[_0x193f68(0x21f)]())['id']];return _0x33f129[_0x193f68(0x2bd)][_0x193f68(0x21c)]((0x0,_0x4737d9[_0x193f68(0x5d6)])(null),(0x0,_0x4737d9[_0x193f68(0x4d8)])(()=>_0x2f6292[_0x193f68(0x5c8)](_0x5bc918=>{const _0x148147=_0x193f68;var _0x168616;return((_0x168616=_0x33f129[_0x148147(0x5ec)](_0x5bc918))==null?void 0x0:_0x168616[_0x148147(0x58f)])!==!0x0;})),(0x0,_0x4737d9[_0x193f68(0x5ce)])());});}function _0x115039(_0x3c0ffc){const _0x28f5ec=_0x2766d8;let _0x38bb05=_0x3c0ffc[_0x28f5ec(0x340)](_0x35d996['IUniverInstanceService']);return{'id':_0x3a6254['id'],'type':_0x23e778[_0x28f5ec(0x43e)]['SELECTOR'],'selections':[{'label':{'name':_0x2ae931,'hoverable':!0x1,'selectable':!0x1,'props':{'id':_0x3a6254['id']}}}],'icon':_0x28f5ec(0x1f4),'tooltip':'sheets-shape-ui.insertShape','activated$':(0x0,_0x590c15[_0x28f5ec(0x2f0)])(_0x38bb05,!0x1,()=>new _0x4737d9['Observable'](_0x19a848=>{const _0x50a4b6=_0x28f5ec;_0x19a848[_0x50a4b6(0x439)](!0x1);})),'hidden$':(0x0,_0x23e778[_0x28f5ec(0x577)])(_0x3c0ffc,_0x35d996[_0x28f5ec(0x31d)][_0x28f5ec(0x3de)]),'disabled$':_0xd1e35f(_0x3c0ffc)};}function _0x2206e1(_0x51183d){const _0x4eb708=_0x2766d8;return(0x0,_0x590c15[_0x4eb708(0x2f0)])(_0x51183d['get'](_0x35d996[_0x4eb708(0x403)]),!0x0,({workbook:_0xf89f05,worksheet:_0x2127fd})=>{const _0xb2391c=_0x4eb708;let _0xcfc977=_0x2127fd[_0xb2391c(0x5cf)]()['type']??_0x35d996[_0xb2391c(0x45d)][_0xb2391c(0x45a)];if(_0xcfc977===_0x35d996[_0xb2391c(0x45d)][_0xb2391c(0x45a)])return(0x0,_0x590c15[_0xb2391c(0x2c4)])(_0x51183d);if(_0xcfc977!==_0x35d996[_0xb2391c(0x45d)]['CHART'])return(0x0,_0x4737d9['of'])(!0x0);let _0x51cc03=_0x51183d[_0xb2391c(0x340)](_0x35d996[_0xb2391c(0x359)]),_0x30a37d=[new _0x2a684c[(_0xb2391c(0x4c0))](_0xf89f05[_0xb2391c(0x331)]())['id'],new _0x2a684c[(_0xb2391c(0x59b))](_0xf89f05[_0xb2391c(0x331)](),_0x2127fd[_0xb2391c(0x21f)]())['id']];return _0x51cc03[_0xb2391c(0x2bd)][_0xb2391c(0x21c)]((0x0,_0x4737d9['startWith'])(null),(0x0,_0x4737d9[_0xb2391c(0x4d8)])(()=>_0x30a37d[_0xb2391c(0x5c8)](_0x5ee8fa=>{const _0x53dd52=_0xb2391c;var _0x1d7d93;return((_0x1d7d93=_0x51cc03[_0x53dd52(0x5ec)](_0x5ee8fa))==null?void 0x0:_0x1d7d93[_0x53dd52(0x58f)])!==!0x0;})),(0x0,_0x4737d9['distinctUntilChanged'])());});}function _0x477814(_0x14faf9){const _0x1d59a5=_0x2766d8;let _0x5de406=_0x14faf9['get'](_0x23e778[_0x1d59a5(0x1f7)]);return{'id':_0x1af41a['id'],'type':_0x23e778['MenuItemType'][_0x1d59a5(0x5e6)],'icon':_0x1d59a5(0x3a5),'title':_0x1d59a5(0x1e6),'tooltip':_0x1d59a5(0x1e6),'activated$':(0x0,_0x4737d9['defer'])(()=>_0x5de406[_0x1d59a5(0x53f)][_0x1d59a5(0x21c)]((0x0,_0x4737d9[_0x1d59a5(0x5d6)])(_0x5de406[_0x1d59a5(0x3e4)]),(0x0,_0x4737d9[_0x1d59a5(0x4d8)])(_0x57bca5=>_0x57bca5['visible']===!0x0&&_0x57bca5['id']===_0x1d59a5(0x400)),(0x0,_0x4737d9['distinctUntilChanged'])())),'hidden$':(0x0,_0x23e778[_0x1d59a5(0x577)])(_0x14faf9,_0x35d996[_0x1d59a5(0x31d)][_0x1d59a5(0x3de)]),'disabled$':_0x2206e1(_0x14faf9)};}let _0x56de37=_0x2766d8(0x3da),_0x2b4b62=_0x2766d8(0x25b);function _0x4e4a3e(_0x433da0){const _0xf8b6af=_0x2766d8;let _0x5afe0a=_0x433da0[_0xf8b6af(0x340)](_0x2ed59f[_0xf8b6af(0x554)])['getFocusDrawings']();return _0x5afe0a[_0xf8b6af(0x2f1)]===0x1&&_0x5afe0a[0x0]['drawingType']===_0x35d996[_0xf8b6af(0x44f)][_0xf8b6af(0x4ba)]?_0x5afe0a[0x0]:null;}function _0x4ff412(_0x36536f){const _0x1b7ff7=_0x2766d8;let _0x34e9a0=_0x36536f[_0x1b7ff7(0x340)](_0x2ed59f['IDrawingManagerService']);return _0x34e9a0[_0x1b7ff7(0x2a3)][_0x1b7ff7(0x21c)]((0x0,_0x4737d9[_0x1b7ff7(0x5d6)])(_0x34e9a0[_0x1b7ff7(0x5bb)]()),(0x0,_0x4737d9[_0x1b7ff7(0x4d8)])(_0x34c7a8=>_0x34c7a8[_0x1b7ff7(0x2f1)]!==0x1||_0x34c7a8[0x0][_0x1b7ff7(0x313)]!==_0x35d996['DrawingTypeEnum'][_0x1b7ff7(0x4ba)]));}function _0x52eb3d(_0x49940e){const _0x1d87bf=_0x2766d8;return{'id':_0x56de37,'commandId':_0x565640['ToggleSheetsShapeFlipCommand']['id'],'type':_0x23e778[_0x1d87bf(0x43e)][_0x1d87bf(0x5e6)],'title':_0x1d87bf(0x517),'tooltip':_0x1d87bf(0x517),'icon':_0x1d87bf(0x2cb),'hidden$':_0x4ff412(_0x49940e),'params':()=>{const _0x1e010f=_0x1d87bf;let _0x4e346c=_0x4e4a3e(_0x49940e);return _0x4e346c?{'unitId':_0x4e346c[_0x1e010f(0x280)],'subUnitId':_0x4e346c[_0x1e010f(0x35e)],'shapeId':_0x4e346c[_0x1e010f(0x314)],'flipH':!0x0}:void 0x0;}};}function _0x25914b(_0x575a48){const _0x265301=_0x2766d8;return{'id':_0x2b4b62,'commandId':_0x565640[_0x265301(0x5d8)]['id'],'type':_0x23e778[_0x265301(0x43e)][_0x265301(0x5e6)],'title':_0x265301(0x523),'tooltip':_0x265301(0x523),'icon':_0x265301(0x1d5),'hidden$':_0x4ff412(_0x575a48),'params':()=>{const _0x4154bf=_0x265301;let _0x585e3c=_0x4e4a3e(_0x575a48);return _0x585e3c?{'unitId':_0x585e3c[_0x4154bf(0x280)],'subUnitId':_0x585e3c['subUnitId'],'shapeId':_0x585e3c[_0x4154bf(0x314)],'flipV':!0x0}:void 0x0;}};}let _0x361901='sheets-shape-ui.shape-format.quick-style-gallery',_0x1ede14=_0x2766d8(0x4dd),_0x4d4286=_0x2766d8(0x5a0),_0x20dc16=_0x2766d8(0x346);function _0x1f92be(){const _0x287f87=_0x2766d8;let _0x462116=(0x0,_0x23e778[_0x287f87(0x4e0)])(_0x35d996[_0x287f87(0x3c6)]),_0x163184=(0x0,_0x23e778[_0x287f87(0x4e0)])(_0x2ed59f[_0x287f87(0x554)]),_0x37b26d=(0x0,_0x23e778[_0x287f87(0x4e0)])(_0x565640[_0x287f87(0x248)]),_0xb69aa3=()=>{const _0x294bfb=_0x287f87;var _0x27b833;let _0x584251=_0x163184['getFocusDrawings']();if(_0x584251[_0x294bfb(0x2f1)]!==0x1||((_0x27b833=_0x584251[0x0])==null?void 0x0:_0x27b833[_0x294bfb(0x313)])!==_0x35d996[_0x294bfb(0x44f)][_0x294bfb(0x4ba)])return null;let {unitId:_0x13c368,subUnitId:_0x4466bc,drawingId:_0x51ae10}=_0x584251[0x0],_0x1d8a17=_0x37b26d[_0x294bfb(0x374)](_0x13c368,_0x4466bc,_0x51ae10),_0x5b6ed2=_0x37b26d[_0x294bfb(0x3ec)](_0x13c368,_0x4466bc,_0x51ae10);return _0x1d8a17===void 0x0||!_0x5b6ed2?null:{'unitId':_0x13c368,'subUnitId':_0x4466bc,'drawingId':_0x51ae10,'shapeType':_0x1d8a17,'shapeData':_0x5b6ed2};},_0x217360=(0x0,_0x23e778['useObservable'])(()=>new _0x4737d9['Observable'](_0x573d8e=>{const _0x54df78=_0x287f87;let _0xbc8c1e=()=>_0x573d8e[_0x54df78(0x439)](_0xb69aa3()),_0x18bca1=_0x163184[_0x54df78(0x2a3)][_0x54df78(0x56a)](_0xbc8c1e),_0x113148=_0x462116[_0x54df78(0x3f5)](_0x354e03=>{const _0x2c5664=_0x54df78;_0x354e03['id']===_0x565640[_0x2c5664(0x229)]['id']&&_0xbc8c1e();});return _0xbc8c1e(),()=>{const _0x39dd5d=_0x54df78;_0x18bca1[_0x39dd5d(0x2c9)](),_0x113148[_0x39dd5d(0x2a4)]();};}),_0xb69aa3(),!0x1,[_0x462116,_0x163184,_0x37b26d]);return{'selection':_0x217360,'updateShapeData':_0x7bb4f8=>{const _0x3f69db=_0x287f87;_0x217360&&_0x5b243b(_0x462116,_0x217360['unitId'],_0x217360[_0x3f69db(0x35e)],_0x217360[_0x3f69db(0x314)],{'oldShapeData':_0x217360['shapeData']},_0x7bb4f8);}};}function _0x162bf7(){const _0x194c5b=_0x2766d8;let {selection:_0xaa1d23,updateShapeData:_0x337dc3}=_0x1f92be();return _0xaa1d23?(0x0,_0x121104[_0x194c5b(0x4f2)])(_0x197fcc['ShapeStyleRibbonControl'],{'shapeData':_0xaa1d23[_0x194c5b(0x23b)],'shapeType':_0xaa1d23[_0x194c5b(0x3fc)],'onUpdateShapeData':_0x337dc3}):null;}function _0x13902d(){const _0x34d11c=_0x2766d8;let _0x5de16d=(0x0,_0x23e778[_0x34d11c(0x4e0)])(_0x35d996['ICommandService']),_0x48324b=(0x0,_0x23e778[_0x34d11c(0x4e0)])(_0x35d996[_0x34d11c(0x5d0)]),{selection:_0x2a3d1b}=_0x1f92be();return _0x2a3d1b?(0x0,_0x121104[_0x34d11c(0x4f2)])(_0x197fcc[_0x34d11c(0x254)],{'type':(0x0,_0x1ad5b7[_0x34d11c(0x365)])(_0x2a3d1b['shapeData']),'ariaLabel':_0x48324b['t'](_0x34d11c(0x207)),'activePresetId':(0x0,_0x1ad5b7['resolveActiveShapeQuickStylePresetId'])(_0x2a3d1b[_0x34d11c(0x23b)]),'onSelect':_0x1761c6=>_0x5de16d[_0x34d11c(0x3d1)](_0x325b7a['id'],{'presetId':_0x1761c6})}):null;}function _0x5ce8e4(){const _0x479ed8=_0x2766d8;let {selection:_0x499d91,updateShapeData:_0x1bb1f5}=_0x1f92be();return _0x499d91?(0x0,_0x121104[_0x479ed8(0x4f2)])(_0x197fcc[_0x479ed8(0x234)],{'fontFamilyPopupDataComponent':_0x479ed8(0x4c7),'shapeData':_0x499d91[_0x479ed8(0x23b)],'onUpdateShapeData':_0x1bb1f5}):null;}function _0xd69ed3(){const _0x151f25=_0x2766d8;var _0x2eb168;let {selection:_0x24d56a,updateShapeData:_0x3485a7}=_0x1f92be(),_0x468787=(0x0,_0x197fcc[_0x151f25(0x3d3)])({'hostType':_0x35d996[_0x151f25(0x31d)][_0x151f25(0x3de)],'unitId':(_0x24d56a==null?void 0x0:_0x24d56a[_0x151f25(0x280)])??'','subUnitId':(_0x24d56a==null?void 0x0:_0x24d56a[_0x151f25(0x35e)])??'','shapeId':(_0x24d56a==null?void 0x0:_0x24d56a['drawingId'])??'','shapeData':_0x24d56a==null?void 0x0:_0x24d56a[_0x151f25(0x23b)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x151f25(0x270),'onUpdateBinding':_0x122c1a=>_0x3485a7({'formulaBinding':_0x122c1a})}),_0x3b401c=((_0x2eb168=_0x468787['extensionGroups'])==null?void 0x0:_0x2eb168[_0x151f25(0x29e)](_0x20e26a=>_0x20e26a[_0x151f25(0x481)])[_0x151f25(0x35b)](_0x28a1e7=>_0x28a1e7['visible']!==!0x1))??[];return _0x24d56a!=null&&_0x24d56a[_0x151f25(0x23b)]['formulaBinding']?(0x0,_0x121104[_0x151f25(0x4f2)])(_0x197fcc[_0x151f25(0x1da)],{'actions':_0x3b401c,'panel':_0x468787['panel']}):null;}let _0x10db6c=_0x2766d8(0x45b),_0x28c476=_0x2766d8(0x52f),_0x258612=_0x2766d8(0x41f),_0x12a9db=_0x2766d8(0x575),_0x3bb6d4='sheets-shape-ui.ribbon.shape-format.arrange-backward',_0x35f38d=_0x2766d8(0x284),_0x1a214e='sheets-shape-ui.ribbon.shape-format.arrange-back';function _0x12aed7(_0x59416a){const _0x19e735=_0x2766d8;let _0x15868b=_0x59416a[_0x19e735(0x340)](_0x35d996[_0x19e735(0x3c6)]),_0x2575c4=_0x59416a[_0x19e735(0x340)](_0x2ed59f['IDrawingManagerService']),_0x4de898=_0x59416a['get'](_0x565640[_0x19e735(0x248)]);return new _0x4737d9['Observable'](_0xc8201b=>{const _0x535ffb=_0x19e735;let _0x3a74dc=()=>{const _0x596368=_0x231f;let _0x1920a1=_0x3fc8f1(_0x59416a),_0x126a0c=_0x1920a1?_0x4de898[_0x596368(0x3ec)](_0x1920a1['unitId'],_0x1920a1[_0x596368(0x35e)],_0x1920a1[_0x596368(0x314)]):null;_0xc8201b[_0x596368(0x439)](_0x126a0c?(0x0,_0x1ad5b7[_0x596368(0x2ab)])(_0x126a0c)??'':'');},_0x5cde09=_0x2575c4[_0x535ffb(0x2a3)][_0x535ffb(0x56a)](_0x3a74dc),_0x53a924=_0x15868b[_0x535ffb(0x3f5)](_0x109104=>{const _0x5b892c=_0x535ffb;_0x109104['id']===_0x565640[_0x5b892c(0x229)]['id']&&_0x3a74dc();});return _0x3a74dc(),()=>{_0x5cde09['unsubscribe'](),_0x53a924['dispose']();};});}function _0x3fc8f1(_0x5d07d6){const _0x49fef2=_0x2766d8;var _0x516856;let _0x44ff48=_0x5d07d6[_0x49fef2(0x340)](_0x2ed59f[_0x49fef2(0x554)])[_0x49fef2(0x5bb)]();return _0x44ff48[_0x49fef2(0x2f1)]===0x1&&((_0x516856=_0x44ff48[0x0])==null?void 0x0:_0x516856[_0x49fef2(0x313)])===_0x35d996[_0x49fef2(0x44f)][_0x49fef2(0x4ba)]?_0x44ff48[0x0]:null;}function _0xc19f32(_0x487e9a,_0x3dbec2=!0x1){const _0x2e620a=_0x2766d8;let _0x35b4fb=_0x487e9a[_0x2e620a(0x340)](_0x35d996[_0x2e620a(0x3c6)]),_0x13778f=_0x487e9a[_0x2e620a(0x340)](_0x2ed59f[_0x2e620a(0x554)]),_0x93a938=_0x487e9a['get'](_0x565640[_0x2e620a(0x248)]);return new _0x4737d9[(_0x2e620a(0x2b3))](_0x3e9763=>{const _0x2fea14=_0x2e620a;let _0x5ddd21=()=>{const _0x33967a=_0x231f;let _0x3fc308=_0x3fc8f1(_0x487e9a);if(!_0x3fc308){_0x3e9763[_0x33967a(0x439)](!0x0);return;}let _0x2e5138=_0x93a938[_0x33967a(0x3ec)](_0x3fc308[_0x33967a(0x280)],_0x3fc308[_0x33967a(0x35e)],_0x3fc308[_0x33967a(0x314)]);_0x3e9763['next'](!_0x2e5138||_0x3dbec2&&_0x2e5138[_0x33967a(0x405)]==null);},_0x3d14a3=_0x13778f[_0x2fea14(0x2a3)][_0x2fea14(0x56a)](_0x5ddd21),_0x4d518b=_0x35b4fb[_0x2fea14(0x3f5)](_0x2e1cf1=>{const _0x2f17d1=_0x2fea14;_0x2e1cf1['id']===_0x565640[_0x2f17d1(0x229)]['id']&&_0x5ddd21();});return _0x5ddd21(),()=>{const _0xe29cd2=_0x2fea14;_0x3d14a3[_0xe29cd2(0x2c9)](),_0x4d518b[_0xe29cd2(0x2a4)]();};});}function _0x59c796(_0x2525e5){const _0x486423=_0x2766d8;let _0x34c372=_0x2525e5[_0x486423(0x340)](_0x2ed59f['IDrawingManagerService']),_0x35a6ae=_0x2525e5['get'](_0x565640['SheetsShapeService']);return _0x34c372[_0x486423(0x2a3)][_0x486423(0x21c)]((0x0,_0x4737d9[_0x486423(0x5d6)])(_0x34c372[_0x486423(0x5bb)]()),(0x0,_0x4737d9[_0x486423(0x4d8)])(()=>{const _0x5f5c0c=_0x486423;let _0x3b5df6=_0x3fc8f1(_0x2525e5),_0xaacc6d=_0x3b5df6?_0x35a6ae[_0x5f5c0c(0x374)](_0x3b5df6['unitId'],_0x3b5df6['subUnitId'],_0x3b5df6['drawingId']):void 0x0;return _0xaacc6d===void 0x0||(0x0,_0x1f2a15['isConnectorShape'])(_0xaacc6d);}));}function _0x320b38(_0x2672ba){const _0x19628e=_0x2766d8;return{'id':_0x325b7a['id'],'type':_0x23e778[_0x19628e(0x43e)][_0x19628e(0x536)],'icon':_0x19628e(0x585),'title':_0x19628e(0x239),'tooltip':_0x19628e(0x239),'selections':[{'label':{'name':_0x361901,'hoverable':!0x1,'selectable':!0x1}}],'value$':_0x12aed7(_0x2672ba),'hidden$':_0xc19f32(_0x2672ba)};}function _0x5a6bb6(_0x672e79){const _0x262ba5=_0x2766d8;return{'id':_0x263ab1['id'],'type':_0x23e778[_0x262ba5(0x43e)][_0x262ba5(0x536)],'icon':'ShapeIcon','title':_0x262ba5(0x4f8),'tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':_0x197fcc['SHAPE_CHANGE_PICKER_COMPONENT'],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':_0x59c796(_0x672e79)};}function _0x4d6694(_0x2ea53a,_0x4c9ab2,_0x36bc5c=!0x1){const _0x3cdd57=_0x2766d8;return _0x4b4ea2=>({'id':_0x2ea53a,'type':_0x23e778[_0x3cdd57(0x43e)][_0x3cdd57(0x5e6)],'label':{'name':_0x4c9ab2,'hoverable':!0x1,'selectable':!0x1},'hidden$':_0xc19f32(_0x4b4ea2,_0x36bc5c)});}let _0x2b36a5=_0x4d6694(_0x10db6c,_0x1ede14),_0x4af08a=_0x4d6694(_0x28c476,_0x4d4286),_0xd7dc08=_0x4d6694(_0x258612,_0x20dc16,!0x0);function _0x48aaeb(_0x367cb4,_0x503f47,_0x2ee745,_0x247010){const _0x125681=_0x2766d8;return _0x5c5720=>({'id':_0x367cb4,'commandId':_0x47830d[_0x125681(0x2df)]['id'],'type':_0x23e778[_0x125681(0x43e)][_0x125681(0x5e6)],'icon':_0x2ee745,'title':_0x247010,'tooltip':_0x247010,'hidden$':_0xc19f32(_0x5c5720),'params':()=>{const _0x4750b7=_0x125681;let _0x39a902=_0x3fc8f1(_0x5c5720);return _0x39a902?{'unitId':_0x39a902[_0x4750b7(0x280)],'subUnitId':_0x39a902[_0x4750b7(0x35e)],'drawingIds':[_0x39a902[_0x4750b7(0x314)]],'arrangeType':_0x503f47}:void 0x0;}});}let _0x116fc9=_0x48aaeb(_0x12a9db,_0x35d996[_0x2766d8(0x55c)][_0x2766d8(0x214)],'MoveUpIcon','shape-editor-ui.arrange.forward'),_0xd871d7=_0x48aaeb(_0x3bb6d4,_0x35d996[_0x2766d8(0x55c)][_0x2766d8(0x2bf)],_0x2766d8(0x2b9),_0x2766d8(0x498)),_0x2b004b=_0x48aaeb(_0x35f38d,_0x35d996[_0x2766d8(0x55c)][_0x2766d8(0x335)],_0x2766d8(0x2ad),_0x2766d8(0x3a8)),_0x41d9a8=_0x48aaeb(_0x1a214e,_0x35d996[_0x2766d8(0x55c)]['back'],_0x2766d8(0x44e),_0x2766d8(0x297));function _0x16d1dd(_0x354a4c){const _0x27f63d=_0x2766d8;let _0x271094=_0x354a4c[_0x27f63d(0x340)](_0x23e778[_0x27f63d(0x1f7)]);return{'activated$':(0x0,_0x4737d9[_0x27f63d(0x4a1)])(()=>_0x271094[_0x27f63d(0x53f)]['pipe']((0x0,_0x4737d9[_0x27f63d(0x5d6)])(_0x271094['options']),(0x0,_0x4737d9[_0x27f63d(0x4d8)])(_0xa19488=>_0xa19488[_0x27f63d(0x416)]===!0x0&&_0xa19488['id']==='sheet.shape.edit.panel'),(0x0,_0x4737d9[_0x27f63d(0x5ce)])())),'id':_0x236e1f['id'],'type':_0x23e778[_0x27f63d(0x43e)][_0x27f63d(0x5e6)],'icon':_0x27f63d(0x3c2),'title':'sheets-shape-ui.formatShape','tooltip':_0x27f63d(0x371),'hidden$':_0xc19f32(_0x354a4c),'params':()=>{const _0x19927f=_0x27f63d;let _0x4229d2=_0x3fc8f1(_0x354a4c);return _0x4229d2?{'unitId':_0x4229d2[_0x19927f(0x280)],'subUnitId':_0x4229d2[_0x19927f(0x35e)],'drawingId':_0x4229d2[_0x19927f(0x314)]}:void 0x0;}};}let _0x4320ab={[_0x23e778[_0x2766d8(0x2d0)][_0x2766d8(0x28a)]]:{[_0x274130]:{'order':0x64,'title':_0x2766d8(0x371),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[_0x325b7a['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x320b38},[_0x263ab1['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x5a6bb6}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[_0x10db6c]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':_0x2b36a5}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[_0x28c476]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':_0x4af08a}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[_0x56de37]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':_0x52eb3d},[_0x2b4b62]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':_0x25914b},[_0x12a9db]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':_0x116fc9},[_0x3bb6d4]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0xd871d7},[_0x35f38d]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':_0x2b004b},[_0x1a214e]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':_0x41d9a8}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[_0x258612]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':_0xd7dc08}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[_0x236e1f['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x16d1dd},[_0x197fcc['ToggleShapeFloatingToolbarOperation']['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x197fcc['ShapeFloatingToolbarToggleFactory']}}}}},_0x296796={[_0x23e778[_0x2766d8(0x47a)]['MEDIA']]:{[_0x3a6254['id']]:{'order':0x3,'menuItemFactory':_0x115039}}},_0x243f1d={..._0x296796,[_0x23e778[_0x2766d8(0x47a)][_0x2766d8(0x2af)]]:{[_0x1af41a['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':_0x477814}},[_0x23e778[_0x2766d8(0x20c)][_0x2766d8(0x3e0)]]:{[_0x23e778[_0x2766d8(0x547)][_0x2766d8(0x2af)]]:{[_0x56de37]:{'order':0x4,'menuItemFactory':_0x52eb3d},[_0x2b4b62]:{'order':0x5,'menuItemFactory':_0x25914b}}}};var _0x5bde27=_0x2766d8(0x58c),_0x48a452=_0x2766d8(0x334);let _0x279e80={'id':_0x2766d8(0x283),'type':_0x35d996['CommandType'][_0x2766d8(0x225)],'handler'(_0x4884c7,_0x2db4b8){const _0x3bb223=_0x2766d8;return _0x2db4b8?(_0x4884c7['get'](_0x197fcc['MobileShapeEditorService'])['open'](_0x2db4b8['mode'],{'hostType':_0x35d996['UniverInstanceType'][_0x3bb223(0x3de)],'shapeId':_0x2db4b8[_0x3bb223(0x314)],'subUnitId':_0x2db4b8['subUnitId'],'unitId':_0x2db4b8[_0x3bb223(0x280)]}),!0x0):!0x1;}},_0xedbf59=_0x2766d8(0x216),_0x5a65ec={},_0x22d196=class extends _0x35d996[_0x2766d8(0x491)]{constructor(_0x34a67f,_0x480511,_0x4408aa,_0x163fd9,_0x4eff36){const _0x180055=_0x2766d8;super(),this[_0x180055(0x587)]=_0x34a67f,this[_0x180055(0x482)]=_0x480511,this[_0x180055(0x4bb)]=_0x4408aa,this['_univerInstanceService']=_0x163fd9,this['_imageShapeClipController']=_0x4eff36,_0x2a4a7a(this,_0x180055(0x549),null),_0x2a4a7a(this,_0x180055(0x370),null),_0x2a4a7a(this,_0x180055(0x3f6),null),_0x2a4a7a(this,_0x180055(0x369),void 0x0),_0x2a4a7a(this,_0x180055(0x298),[]),_0x2a4a7a(this,'_baseLeft',0x0),_0x2a4a7a(this,_0x180055(0x4cc),0x0),_0x2a4a7a(this,_0x180055(0x3a1),0x0),_0x2a4a7a(this,'_baseHeight',0x0),_0x2a4a7a(this,_0x180055(0x52c),!0x1),_0x2a4a7a(this,_0x180055(0x261),void 0x0),_0x2a4a7a(this,_0x180055(0x5a7),void 0x0),_0x2a4a7a(this,_0x180055(0x22c),void 0x0),_0x2a4a7a(this,_0x180055(0x376),void 0x0),_0x2a4a7a(this,_0x180055(0x2b1),!0x1),this['_registerFocusChangeHandler'](),this[_0x180055(0x288)]();}['clearAdjustControls'](){const _0x8988e=_0x2766d8;this[_0x8988e(0x5ae)]();}[_0x2766d8(0x2b2)](){const _0x548f57=_0x2766d8;this[_0x548f57(0x5ae)](),this[_0x548f57(0x475)](!0x0);}[_0x2766d8(0x215)](_0xcd719f,_0x44149a,_0x291a9b,_0x2f80d8){const _0x4fe43b=_0x2766d8;let _0x507a76=_0xcd719f;if(_0x507a76!==_0x1f2a15['ShapeTypeEnum'][_0x4fe43b(0x255)]&&_0xcd719f!=='custom')try{let _0x2c4925=new _0x1f2a15[(_0x4fe43b(0x5c0))](_0x507a76,_0x4fe43b(0x2a1)+_0xcd719f);return _0x2f80d8&&_0x2c4925[_0x4fe43b(0x203)]({'adjustValues':_0x2f80d8},!0x0),_0x2c4925[_0x4fe43b(0x240)]({'width':_0x44149a,'height':_0x291a9b}),_0x2c4925;}catch{return;}}[_0x2766d8(0x3c5)](_0x254956,_0x42782d,_0x13c848){const _0x4ca188=_0x2766d8;let _0x13cee4={'unitId':_0x254956,'subUnitId':_0x42782d,'drawingId':_0x13c848},_0x204712=this['_drawingManagerService']['getDrawingByParam'](_0x13cee4);if(_0x204712&&_0x204712[_0x4ca188(0x313)]===_0x35d996[_0x4ca188(0x44f)][_0x4ca188(0x2ed)])return _0x204712;}[_0x2766d8(0x484)](_0x9855d5,_0x32d7a9,_0x5c7880){const _0xe52659=_0x2766d8;let _0x3db0f5=this[_0xe52659(0x4bb)][_0xe52659(0x4ee)](_0x9855d5);if(!_0x3db0f5)return;let {scene:_0x40ff07}=_0x3db0f5,_0x3fa39b=(0x0,_0x2ed59f['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x9855d5,'subUnitId':_0x32d7a9,'drawingId':_0x5c7880}),_0x5cddd2=_0x40ff07[_0xe52659(0x3c9)](_0x3fa39b);if(_0x5cddd2 instanceof _0x580d8a[_0xe52659(0x53a)]){let _0x1f5cfa=_0x5cddd2[_0xe52659(0x51f)];if(_0x1f5cfa)return{'prstGeom':_0x1f5cfa,'adjustValues':_0x5cddd2[_0xe52659(0x48b)]};}}[_0x2766d8(0x475)](_0x5b87a6=!0x1){const _0x56f6f1=_0x2766d8;if(!this[_0x56f6f1(0x370)]||!this[_0x56f6f1(0x3f6)]||!this['_activeImageId'])return;let _0x40ce03=this[_0x56f6f1(0x4bb)][_0x56f6f1(0x4ee)](this['_unitId']);if(!_0x40ce03||!_0x40ce03[_0x56f6f1(0x28f)](_0x590c15[_0x56f6f1(0x599)])[_0x56f6f1(0x328)]())return;let {scene:_0x2f3a10}=_0x40ce03,_0x512e53=this[_0x56f6f1(0x3c5)](this[_0x56f6f1(0x370)],this[_0x56f6f1(0x3f6)],this[_0x56f6f1(0x549)]);if(!_0x512e53)return;let {transform:_0xe2c3db}=_0x512e53;if(!_0xe2c3db)return;let {left:_0x1c2681,top:_0x588472,width:_0x2fb821,height:_0x15d885,flipX:_0x31579f,flipY:_0x485982,angle:_0x57f93e=0x0}=_0xe2c3db;if(_0x1c2681===void 0x0||_0x588472===void 0x0)return;let _0x594e6c=this[_0x56f6f1(0x484)](this[_0x56f6f1(0x370)],this['_subUnitId'],this[_0x56f6f1(0x549)]);if(!_0x594e6c)return;if(_0x5b87a6){let _0x20216a=this[_0x56f6f1(0x215)](_0x594e6c[_0x56f6f1(0x51f)],_0x2fb821||0x0,_0x15d885||0x0,_0x594e6c['adjustValues']);if(!_0x20216a)return;this[_0x56f6f1(0x369)]=_0x20216a[_0x56f6f1(0x34d)]();}let _0x42a788=this[_0x56f6f1(0x369)];if(_0x42a788&&_0x42a788[_0x56f6f1(0x2f1)]!==0x0)for(let _0x31132a=0x0;_0x31132a<_0x42a788[_0x56f6f1(0x2f1)];_0x31132a++){let _0x3936f2=_0x42a788[_0x31132a],_0x1bf40a=_0x3936f2['x'],_0x4cbaeb=_0x3936f2['y'];if(_0x31579f&&(_0x1bf40a=(_0x2fb821||0x0)-_0x1bf40a),_0x485982&&(_0x4cbaeb=(_0x15d885||0x0)-_0x4cbaeb),_0x57f93e!==0x0){let _0xe1bdf0=(_0x2fb821||0x0)/0x2,_0x161dc3=(_0x15d885||0x0)/0x2,_0x5bff0a=_0x57f93e*Math['PI']/0xb4,_0x39b598=Math[_0x56f6f1(0x448)](_0x5bff0a),_0x501ab7=Math[_0x56f6f1(0x570)](_0x5bff0a),_0x486484=_0x1bf40a-_0xe1bdf0,_0x2cba46=_0x4cbaeb-_0x161dc3;_0x1bf40a=_0xe1bdf0+(_0x486484*_0x39b598-_0x2cba46*_0x501ab7),_0x4cbaeb=_0x161dc3+(_0x486484*_0x501ab7+_0x2cba46*_0x39b598);}let _0x59a1b7={'x':_0x1bf40a,'y':_0x4cbaeb,'adjName':_0x3936f2['adjName']};this[_0x56f6f1(0x5da)](_0x2f3a10,_0x59a1b7,_0x59a1b7[_0x56f6f1(0x4b1)],_0x1c2681,_0x588472,this[_0x56f6f1(0x370)],this['_subUnitId']);}}[_0x2766d8(0x5da)](_0x5a6e60,_0x331b1c,_0x30f5fa,_0x4e09a9,_0x211f88,_0x34c98f,_0xffabf8){const _0xbd5e94=_0x2766d8;if(!this[_0xbd5e94(0x549)])return;let _0x11bf15=_0xbd5e94(0x460)+this[_0xbd5e94(0x549)]+'-'+_0x30f5fa,_0x5a8915=_0x5a6e60['getObjectIncludeInGroup'](_0x11bf15);if(_0x5a8915){_0x5a8915[_0xbd5e94(0x3c4)]({'left':_0x331b1c['x']+_0x4e09a9-_0x1f2a15['ShapeDefaultConfig'][_0xbd5e94(0x259)],'top':_0x331b1c['y']+_0x211f88-_0x1f2a15['ShapeDefaultConfig'][_0xbd5e94(0x259)]});return;}let _0x34786a=new _0x56f3e0(_0x11bf15,{'left':_0x331b1c['x']+_0x4e09a9-_0x1f2a15[_0xbd5e94(0x540)][_0xbd5e94(0x259)],'top':_0x331b1c['y']+_0x211f88-_0x1f2a15[_0xbd5e94(0x540)]['adjHandleSize'],'adjName':_0x30f5fa,'shapeId':this[_0xbd5e94(0x549)],'unitId':_0x34c98f,'subUnitId':_0xffabf8,'width':_0x1f2a15[_0xbd5e94(0x540)][_0xbd5e94(0x259)]+0x8,'height':_0x1f2a15['ShapeDefaultConfig'][_0xbd5e94(0x259)]+0x8,'zIndex':_0x580d8a[_0xbd5e94(0x424)]+0x1,'evented':!0x0});this['_shapes'][_0xbd5e94(0x373)](_0x34786a),this[_0xbd5e94(0x4ac)](_0x34786a,_0x5a6e60,_0x30f5fa),_0x5a6e60[_0xbd5e94(0x476)](_0x34786a,_0x580d8a[_0xbd5e94(0x424)]+0x1);}['_clearControls'](){const _0x24697f=_0x2766d8;this[_0x24697f(0x298)][_0x24697f(0x2f1)]!==0x0&&(this['_shapes'][_0x24697f(0x528)](_0x2058fe=>_0x2058fe[_0x24697f(0x2a4)]()),this[_0x24697f(0x298)]=[]);}['_getScrollInfo'](_0x530d21,_0x59f899){const _0x6290dd=_0x2766d8;var _0x441265;let _0x466e8c={'x':0x0,'y':0x0},_0x47dabe=this[_0x6290dd(0x4bb)][_0x6290dd(0x4ee)](_0x530d21);if(!_0x47dabe||!_0x47dabe['with'](_0x590c15['SheetSkeletonManagerService'])[_0x6290dd(0x4d9)](_0x59f899))return _0x466e8c;let _0x4bbd4e=_0x47dabe[_0x6290dd(0x28f)](_0x590c15[_0x6290dd(0x258)]),_0x1f0e55=_0x4bbd4e==null?void 0x0:_0x4bbd4e[_0x6290dd(0x492)]();if(!_0x1f0e55)return _0x466e8c;let _0x11454f=(_0x441265=this[_0x6290dd(0x251)]['getUnit'](_0x530d21))==null?void 0x0:_0x441265[_0x6290dd(0x456)](_0x59f899);if(!_0x11454f)return _0x466e8c;let _0x231bef=(0x0,_0x590c15[_0x6290dd(0x2a6)])(_0x1f0e55[_0x6290dd(0x474)],_0x1f0e55['sheetViewStartColumn'],_0x47dabe[_0x6290dd(0x394)],_0x11454f);return _0x231bef?{'x':_0x231bef['viewportScrollX'],'y':_0x231bef[_0x6290dd(0x2e4)]}:_0x466e8c;}[_0x2766d8(0x4fe)](_0xc76d34,_0xb769c6){const _0x12175b=_0x2766d8;var _0x1a4a51;let _0xece0d3=(_0x1a4a51=this['_univerInstanceService']['getUnit'](_0xc76d34))==null?void 0x0:_0x1a4a51[_0x12175b(0x456)](_0xb769c6);return(_0xece0d3==null?void 0x0:_0xece0d3[_0x12175b(0x4f1)]())??0x1;}[_0x2766d8(0x4ac)](_0x40e4c6,_0x39e3da,_0x40174a){const _0x3690d2=_0x2766d8;this['disposeWithMe']((0x0,_0x35d996[_0x3690d2(0x306)])(_0x40e4c6[_0x3690d2(0x46c)][_0x3690d2(0x1dd)]((_0x9008be,_0x204ff0)=>{const _0x26a7b2=_0x3690d2;var _0x27aee5,_0xa6ee67,_0x50a3ca;let {unitId:_0x2e6fa6,subUnitId:_0x4033ec,drawingId:_0x19f9d0}=_0x40e4c6[_0x26a7b2(0x4ce)](),_0x295f71=this[_0x26a7b2(0x3c5)](_0x2e6fa6,_0x4033ec,_0x19f9d0);if(!(_0x295f71!=null&&_0x295f71[_0x26a7b2(0x339)]))return;let {left:_0x183ba1,top:_0x151696,width:_0x84da20,height:_0x59ff9d}=_0x295f71[_0x26a7b2(0x339)];this[_0x26a7b2(0x3ff)]=_0x183ba1||0x0,this['_baseTop']=_0x151696||0x0,this['_baseWidth']=_0x84da20||0x0,this[_0x26a7b2(0x357)]=_0x59ff9d||0x0;let _0x16fa88=!!((_0x27aee5=_0x295f71[_0x26a7b2(0x339)])!=null&&_0x27aee5[_0x26a7b2(0x4f7)]),_0xd5bffe=!!((_0xa6ee67=_0x295f71['transform'])!=null&&_0xa6ee67[_0x26a7b2(0x21d)]),_0x3d9755=((_0x50a3ca=_0x295f71['transform'])==null?void 0x0:_0x50a3ca[_0x26a7b2(0x55b)])||0x0,_0x46ffa3=this['_getImagePrstGeom'](_0x2e6fa6,_0x4033ec,_0x19f9d0);if(!_0x46ffa3)return;let _0x2d22d5=this[_0x26a7b2(0x215)](_0x46ffa3[_0x26a7b2(0x51f)],this['_baseWidth'],this[_0x26a7b2(0x357)],_0x46ffa3[_0x26a7b2(0x5d5)]);if(!_0x2d22d5||(this[_0x26a7b2(0x5a7)]=_0x2d22d5,this['_activeAdjustInfo']=_0x2d22d5[_0x26a7b2(0x5a4)](_0x40174a),!this[_0x26a7b2(0x261)]))return;this[_0x26a7b2(0x52c)]=!0x0,_0x39e3da[_0x26a7b2(0x4fa)]();let _0x203a15=_0x46ffa3[_0x26a7b2(0x51f)];this[_0x26a7b2(0x22c)]=_0x39e3da[_0x26a7b2(0x5dc)][_0x26a7b2(0x1dd)]((_0x3b43a9,_0x322bf3)=>{const _0x27cc6e=_0x26a7b2;if(!this[_0x27cc6e(0x52c)])return;let {offsetX:_0x1aa4cd,offsetY:_0x3a9113}=_0x3b43a9,_0x237b69=this[_0x27cc6e(0x261)];if(!this['_activeShapeModel']||!_0x237b69)return;_0x39e3da['disableObjectsEvent'](),_0x39e3da['setCursor'](_0x580d8a[_0x27cc6e(0x5ac)][_0x27cc6e(0x1ea)]);let _0x51ce56={'left':0x0,'top':0x0,'width':this[_0x27cc6e(0x3a1)],'height':this[_0x27cc6e(0x357)]},_0x48ec70=this[_0x27cc6e(0x3fe)](_0x2e6fa6,_0x4033ec),_0x13b7ed=this[_0x27cc6e(0x4fe)](_0x2e6fa6,_0x4033ec),_0x391cf5=_0x1aa4cd/_0x13b7ed+_0x48ec70['x']-this['_baseLeft'],_0x11d18d=_0x3a9113/_0x13b7ed+_0x48ec70['y']-this[_0x27cc6e(0x4cc)];if(_0x3d9755!==0x0){let _0x3b7edf=this[_0x27cc6e(0x3a1)]/0x2,_0x3db0ba=this[_0x27cc6e(0x357)]/0x2,_0x25e697=_0x3d9755*Math['PI']/0xb4,_0x526d5b=Math['cos'](_0x25e697),_0x1878f8=Math['sin'](_0x25e697),_0x4b2893=_0x391cf5-_0x3b7edf,_0x1cc17b=_0x11d18d-_0x3db0ba;_0x391cf5=_0x3b7edf+(_0x4b2893*_0x526d5b+_0x1cc17b*_0x1878f8),_0x11d18d=_0x3db0ba+(-_0x4b2893*_0x1878f8+_0x1cc17b*_0x526d5b);}_0x16fa88&&(_0x391cf5=this[_0x27cc6e(0x3a1)]-_0x391cf5),_0xd5bffe&&(_0x11d18d=this[_0x27cc6e(0x357)]-_0x11d18d);let _0x599d9b=this[_0x27cc6e(0x5a7)]['calcAdjValues'](_0x51ce56,{'x':_0x391cf5,'y':_0x11d18d},_0x237b69,_0x16fa88,_0xd5bffe);if(Object['keys'](_0x599d9b)[_0x27cc6e(0x2f1)]!==0x0){for(let [_0x1bb3c6,_0x545862]of Object[_0x27cc6e(0x23f)](_0x599d9b))this['_activeShapeModel'][_0x27cc6e(0x3ae)](_0x1bb3c6,_0x545862);this[_0x27cc6e(0x5a7)][_0x27cc6e(0x240)]({'width':this['_baseWidth'],'height':this['_baseHeight']}),this[_0x27cc6e(0x257)](_0x2e6fa6,_0x4033ec,_0x19f9d0,_0x599d9b),this[_0x27cc6e(0x369)]=this[_0x27cc6e(0x5a7)]['getDrawingPoints'](),this['_createControls'](),_0x322bf3[_0x27cc6e(0x5c7)]();}}),this[_0x26a7b2(0x376)]=_0x39e3da['onPointerUp$']['subscribeEvent']((_0x13d4e1,_0x38a881)=>{const _0x4a7866=_0x26a7b2;if(this['_adjHandlerPointerMove'][_0x4a7866(0x2c9)](),this[_0x4a7866(0x376)]['unsubscribe'](),_0x39e3da[_0x4a7866(0x4af)](),this[_0x4a7866(0x5a7)]){let _0x59b341=this[_0x4a7866(0x5a7)][_0x4a7866(0x30f)](),_0x5f39fd={};for(let _0x1b534a of _0x59b341){let _0x4c9a5d=this[_0x4a7866(0x5a7)]['getAdjustValueByName'](_0x1b534a);_0x4c9a5d!==void 0x0&&(_0x5f39fd[_0x1b534a]=_0x4c9a5d);}this['_imageShapeClipController'][_0x4a7866(0x246)](_0x2e6fa6,_0x4033ec,_0x19f9d0,_0x203a15,_0x5f39fd);}this[_0x4a7866(0x261)]=void 0x0,this[_0x4a7866(0x5a7)]=void 0x0,this[_0x4a7866(0x52c)]=!0x1,_0x38a881[_0x4a7866(0x5c7)](),_0x39e3da[_0x4a7866(0x3eb)]();}),_0x204ff0[_0x26a7b2(0x5c7)]();})));}[_0x2766d8(0x257)](_0x4ebdb1,_0x219755,_0x111f54,_0xa04dcb){const _0x3f29b2=_0x2766d8;let _0x541432=this[_0x3f29b2(0x4bb)][_0x3f29b2(0x4ee)](_0x4ebdb1);if(!_0x541432)return;let {scene:_0x5e10e2}=_0x541432,_0x492a69=(0x0,_0x2ed59f[_0x3f29b2(0x2f2)])({'unitId':_0x4ebdb1,'subUnitId':_0x219755,'drawingId':_0x111f54}),_0x3cb8d7=_0x5e10e2[_0x3f29b2(0x3c9)](_0x492a69);if(_0x3cb8d7 instanceof _0x580d8a[_0x3f29b2(0x53a)]){let _0x4b93cb=_0x3cb8d7[_0x3f29b2(0x48b)]??{};_0x3cb8d7['setPrstGeomAdjValues']({..._0x4b93cb,..._0xa04dcb}),_0x3cb8d7[_0x3f29b2(0x3b2)](!0x0);}}[_0x2766d8(0x288)](){const _0x4c9f21=_0x2766d8;let _0x46b04b=this[_0x4c9f21(0x251)]['getCurrentTypeOfUnit$'](_0x35d996[_0x4c9f21(0x31d)][_0x4c9f21(0x3de)]);this[_0x4c9f21(0x271)](_0x46b04b[_0x4c9f21(0x21c)]((0x0,_0x4737d9[_0x4c9f21(0x3cb)])(_0x2b054b=>_0x2b054b?_0x2b054b['activeSheet$'][_0x4c9f21(0x21c)]((0x0,_0x4737d9[_0x4c9f21(0x3cb)])(_0x4d3809=>{const _0x26bf16=_0x4c9f21;if(!_0x4d3809)return _0x4737d9[_0x26bf16(0x486)];let _0x1074e3=_0x2b054b[_0x26bf16(0x331)](),_0x531cda=this['_renderManagerService'][_0x26bf16(0x4ee)](_0x1074e3),_0x56665c=_0x531cda==null?void 0x0:_0x531cda[_0x26bf16(0x394)];return _0x56665c?(0x0,_0x4737d9['of'])(_0x56665c):_0x4737d9[_0x26bf16(0x486)];})):_0x4737d9['EMPTY']))[_0x4c9f21(0x56a)](_0x29899c=>{const _0x588321=_0x4c9f21;let _0x104fe1=_0x29899c[_0x588321(0x40c)]();this[_0x588321(0x271)](_0x29899c[_0x588321(0x5dc)]['subscribeEvent'](()=>{const _0x56398c=_0x588321;this[_0x56398c(0x2b1)]&&this[_0x56398c(0x5ae)]();})),this[_0x588321(0x271)](_0x104fe1[_0x588321(0x330)][_0x588321(0x56a)](_0x2a6b25=>{const _0x1a7c36=_0x588321;let {objects:_0x24c57c}=_0x2a6b25;if(this['_createControls'](),_0x24c57c!==null&&_0x24c57c[_0x1a7c36(0x22b)]===0x1){let _0xd5d885=_0x24c57c[_0x1a7c36(0x3bf)]()[_0x1a7c36(0x439)]()[_0x1a7c36(0x58f)];_0xd5d885 instanceof _0x580d8a[_0x1a7c36(0x53a)]&&_0xd5d885[_0x1a7c36(0x51f)]&&(this[_0x1a7c36(0x2b1)]=!0x0);}})),this[_0x588321(0x271)](_0x104fe1[_0x588321(0x5b0)][_0x588321(0x56a)](()=>{const _0x259605=_0x588321;this[_0x259605(0x2b1)]&&this['_clearControls']();})),this[_0x588321(0x271)](_0x29899c[_0x588321(0x542)]['subscribeEvent'](()=>{const _0x189881=_0x588321;this[_0x189881(0x2b1)]&&(this[_0x189881(0x2b1)]=!0x1,this[_0x189881(0x475)]());})),this[_0x588321(0x271)](_0x104fe1[_0x588321(0x34e)]['subscribe'](()=>{const _0xede1a3=_0x588321;if(this[_0xede1a3(0x370)]&&this['_subUnitId']&&this[_0xede1a3(0x549)]){let _0x2f8541=this[_0xede1a3(0x484)](this[_0xede1a3(0x370)],this[_0xede1a3(0x3f6)],this[_0xede1a3(0x549)]);if(_0x2f8541){var _0x39b695,_0x5dd82a;let _0x4a71db=this['_getImageDrawingInfo'](this[_0xede1a3(0x370)],this[_0xede1a3(0x3f6)],this['_activeImageId']),_0x340aca=(_0x4a71db==null||(_0x39b695=_0x4a71db[_0xede1a3(0x339)])==null?void 0x0:_0x39b695['width'])||0x0,_0x3157d9=(_0x4a71db==null||(_0x5dd82a=_0x4a71db[_0xede1a3(0x339)])==null?void 0x0:_0x5dd82a['height'])||0x0,_0x2b55d4=this['_getOrCreateShapeModel'](_0x2f8541['prstGeom'],_0x340aca,_0x3157d9,_0x2f8541[_0xede1a3(0x5d5)]);_0x2b55d4&&(this[_0xede1a3(0x369)]=_0x2b55d4[_0xede1a3(0x34d)](),this['_clearControls'](),this[_0xede1a3(0x475)](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x5014fc=_0x2766d8;this[_0x5014fc(0x271)](this[_0x5014fc(0x482)][_0x5014fc(0x2a3)][_0x5014fc(0x56a)](_0x509903=>{const _0x16b64e=_0x5014fc;if(_0x509903[_0x16b64e(0x2f1)]===0x1){let _0x2461d9=_0x509903[0x0];if(_0x2461d9[_0x16b64e(0x313)]===_0x35d996[_0x16b64e(0x44f)]['DRAWING_IMAGE']){let {unitId:_0x54d8a0,subUnitId:_0x384cb0,drawingId:_0x199b4d}=_0x2461d9,_0x557eab=this[_0x16b64e(0x484)](_0x54d8a0,_0x384cb0,_0x199b4d);if(_0x557eab){var _0x84088,_0x11d619;this[_0x16b64e(0x549)]=_0x199b4d,this[_0x16b64e(0x370)]=_0x54d8a0,this[_0x16b64e(0x3f6)]=_0x384cb0;let _0x2caaed=this[_0x16b64e(0x3c5)](_0x54d8a0,_0x384cb0,_0x199b4d),_0x517141=(_0x2caaed==null||(_0x84088=_0x2caaed['transform'])==null?void 0x0:_0x84088['width'])||0x0,_0x1d4160=(_0x2caaed==null||(_0x11d619=_0x2caaed[_0x16b64e(0x339)])==null?void 0x0:_0x11d619[_0x16b64e(0x3f8)])||0x0,_0x131096=this[_0x16b64e(0x215)](_0x557eab[_0x16b64e(0x51f)],_0x517141,_0x1d4160,_0x557eab[_0x16b64e(0x5d5)]);_0x131096&&(this[_0x16b64e(0x369)]=_0x131096[_0x16b64e(0x34d)]()),this[_0x16b64e(0x5ae)](),this[_0x16b64e(0x475)](!0x0);}else this[_0x16b64e(0x3ed)]();}else this[_0x16b64e(0x3ed)]();}else this[_0x16b64e(0x3ed)]();})),this[_0x5014fc(0x271)](this[_0x5014fc(0x482)][_0x5014fc(0x59c)][_0x5014fc(0x56a)](_0x5197b4=>{const _0x58c589=_0x5014fc;if(_0x5197b4[_0x58c589(0x2f1)]===0x1){let _0x4a7d97=_0x5197b4[0x0],_0x52700a=this[_0x58c589(0x482)]['getDrawingByParam'](_0x4a7d97);(_0x52700a==null?void 0x0:_0x52700a[_0x58c589(0x313)])===_0x35d996['DrawingTypeEnum'][_0x58c589(0x2ed)]&&this['_activeImageId']===_0x4a7d97['drawingId']&&(this[_0x58c589(0x5ae)](),this[_0x58c589(0x475)](!0x0));}})),this[_0x5014fc(0x271)](this[_0x5014fc(0x482)][_0x5014fc(0x210)][_0x5014fc(0x56a)](_0x5c0216=>{const _0x4059b5=_0x5014fc;for(let _0x529d6d of _0x5c0216)this[_0x4059b5(0x549)]===_0x529d6d[_0x4059b5(0x314)]&&this[_0x4059b5(0x3ed)]();}));}['_resetState'](){const _0x51946f=_0x2766d8;this[_0x51946f(0x549)]=null,this[_0x51946f(0x370)]=null,this[_0x51946f(0x3f6)]=null,this[_0x51946f(0x369)]=void 0x0,this[_0x51946f(0x5ae)]();}};_0x22d196=_0x39c461([_0x400e7c(0x1,_0x2ed59f[_0x2766d8(0x554)]),_0x400e7c(0x2,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x580d8a[_0x2766d8(0x266)])),_0x400e7c(0x3,_0x35d996[_0x2766d8(0x403)]),_0x400e7c(0x4,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x538cf9))],_0x22d196);function _0x4ddfda({ref:_0x214c6f,..._0x1cfa29}){const _0x4d5bb7=_0x2766d8;let {preserveStrokeWidth:_0x2d38f3,icon:_0x3380d1,id:_0x756afe,className:_0x159610,extend:_0x3a2bbe,..._0x3ed056}=_0x1cfa29,_0x21f15c=('univerjs-icon\x20univerjs-icon-'+_0x756afe+'\x20'+(_0x159610||''))['trim'](),_0x1fc094='_'+(0x0,_0x3d354c[_0x4d5bb7(0x471)])(),_0x10c931=(0x0,_0x3d354c[_0x4d5bb7(0x43c)])(null);return(0x0,_0x3d354c['useImperativeHandle'])(_0x214c6f,()=>_0x10c931[_0x4d5bb7(0x534)]),(0x0,_0x3d354c[_0x4d5bb7(0x5b3)])(()=>{const _0x5792e8=_0x4d5bb7;if(_0x2d38f3&&_0x10c931['current']&&_0x10c931['current'][_0x5792e8(0x53c)]===_0x3380d1[_0x5792e8(0x564)])return _0x49a49e(_0x10c931[_0x5792e8(0x534)]);},[_0x2d38f3,_0x3380d1]),_0x9ef6a2(_0x3380d1,''+_0x756afe,{'defIds':_0x3380d1[_0x4d5bb7(0x2d7)],'idSuffix':_0x1fc094},{'ref':_0x10c931,'className':_0x21f15c,..._0x3ed056},_0x3a2bbe);}function _0x9ef6a2(_0x275633,_0x422fd8,_0x31f369,_0x330dd2,_0x3b89c5){const _0x5c7990=_0x2766d8;return(0x0,_0x3d354c['createElement'])(_0x275633['tag'],{'key':_0x422fd8,..._0x286517(_0x275633,_0x31f369,_0x3b89c5),..._0x330dd2},(_0xe34254(_0x275633,_0x31f369)[_0x5c7990(0x507)]||[])[_0x5c7990(0x4d8)]((_0x4421fc,_0x345377)=>_0x9ef6a2(_0x4421fc,_0x422fd8+'-'+_0x275633[_0x5c7990(0x564)]+'-'+_0x345377,_0x31f369,void 0x0,_0x3b89c5)));}function _0x286517(_0x41e899,_0x1a4e74,_0x29e2e0){const _0x557484=_0x2766d8;let _0x49f6e6={..._0x41e899[_0x557484(0x4e7)]};_0x29e2e0!=null&&_0x29e2e0[_0x557484(0x3bc)]&&_0x49f6e6['fill']===_0x557484(0x3bc)&&(_0x49f6e6['fill']=_0x29e2e0['colorChannel1']),_0x29e2e0!=null&&_0x29e2e0[_0x557484(0x3bc)]&&_0x49f6e6[_0x557484(0x3b4)]==='colorChannel1'&&(_0x49f6e6[_0x557484(0x3b4)]=_0x29e2e0[_0x557484(0x3bc)]),_0x41e899[_0x557484(0x564)]==='mask'&&_0x49f6e6['id']&&(_0x49f6e6['id']+=_0x1a4e74[_0x557484(0x49a)]),Object[_0x557484(0x23f)](_0x49f6e6)['forEach'](([_0x2797b2,_0xd40204])=>{const _0x4a57aa=_0x557484;_0x2797b2===_0x4a57aa(0x586)&&typeof _0xd40204=='string'&&(_0x49f6e6[_0x2797b2]=_0xd40204[_0x4a57aa(0x38b)](/url\(#(.*)\)/,'url(#$1'+_0x1a4e74[_0x4a57aa(0x49a)]+')'));});let {defIds:_0x478f85}=_0x1a4e74;return!_0x478f85||_0x478f85['length']===0x0||(_0x41e899[_0x557484(0x564)]==='use'&&_0x49f6e6['xlink:href']&&(_0x49f6e6[_0x557484(0x27a)]+=_0x1a4e74['idSuffix']),Object['entries'](_0x49f6e6)['forEach'](([_0x334007,_0x3ab968])=>{const _0x344d6c=_0x557484;typeof _0x3ab968==_0x344d6c(0x212)&&(_0x49f6e6[_0x334007]=_0x3ab968[_0x344d6c(0x38b)](/url\(#(.*)\)/,_0x344d6c(0x510)+_0x1a4e74[_0x344d6c(0x49a)]+')'));})),_0x49f6e6;}function _0xe34254(_0x2053a0,_0x3f0059){const _0x31525e=_0x2766d8;var _0x18f543;let {defIds:_0x3ac818}=_0x3f0059;return!_0x3ac818||_0x3ac818[_0x31525e(0x2f1)]===0x0?_0x2053a0:_0x2053a0[_0x31525e(0x564)]===_0x31525e(0x2a2)&&(_0x18f543=_0x2053a0['children'])!=null&&_0x18f543[_0x31525e(0x2f1)]?{..._0x2053a0,'children':_0x2053a0['children']['map'](_0x1427f1=>typeof _0x1427f1[_0x31525e(0x4e7)]['id']==_0x31525e(0x212)&&_0x3ac818&&_0x3ac818['includes'](_0x1427f1[_0x31525e(0x4e7)]['id'])?{..._0x1427f1,'attrs':{..._0x1427f1['attrs'],'id':_0x1427f1[_0x31525e(0x4e7)]['id']+_0x3f0059['idSuffix']}}:_0x1427f1)}:_0x2053a0;}function _0x49a49e(_0x167fa5){const _0x295fc5=_0x2766d8;let _0x4b8d4b=_0x167fa5[_0x295fc5(0x386)]['baseVal'],_0x47dd0c=Math['max'](_0x4b8d4b[_0x295fc5(0x49e)],_0x4b8d4b['height']);if(!Number['isFinite'](_0x47dd0c)||_0x47dd0c<=0x0||_0x4b8d4b[_0x295fc5(0x49e)]<=0x0||_0x4b8d4b['height']<=0x0)return()=>void 0x0;let _0x4932c8=0x10/_0x47dd0c,_0x4b6711=Array[_0x295fc5(0x5d4)](_0x167fa5[_0x295fc5(0x26e)](_0x295fc5(0x1fa)))[_0x295fc5(0x29e)](_0xea3263=>{const _0x2d1196=_0x295fc5;let _0x594cf1=getComputedStyle(_0xea3263),_0x81d52a=Number[_0x2d1196(0x3ba)](_0x594cf1[_0x2d1196(0x46f)]);return _0x594cf1[_0x2d1196(0x3b4)]===_0x2d1196(0x508)||Number[_0x2d1196(0x3ba)](_0x594cf1['strokeOpacity'])===0x0||_0x594cf1[_0x2d1196(0x57d)]===_0x2d1196(0x25e)||!Number[_0x2d1196(0x205)](_0x81d52a)||_0x81d52a<=0x0?[]:[{'element':_0xea3263,'hadStyleAttribute':_0xea3263[_0x2d1196(0x391)](_0x2d1196(0x3b0)),'originalStrokeWidth':_0x81d52a,'strokeWidth':_0x2aef41(_0xea3263[_0x2d1196(0x3b0)],'stroke-width')}];})[_0x295fc5(0x4d8)](_0x9c4de0=>({'appliedStrokeWidth':null,'element':_0x9c4de0[_0x295fc5(0x4a6)],'hadStyleAttribute':_0x9c4de0[_0x295fc5(0x2fb)],'isReleased':!0x1,'originalStrokeWidth':_0x9c4de0[_0x295fc5(0x345)],'strokeWidth':_0x9c4de0[_0x295fc5(0x46f)]}));if(_0x4b6711[_0x295fc5(0x2f1)]===0x0)return()=>void 0x0;let _0x1d35f1=(_0x391125,_0x2d933f)=>{const _0x9c3e24=_0x295fc5;if(_0x4b8d4b[_0x9c3e24(0x49e)]<=0x0||_0x4b8d4b[_0x9c3e24(0x3f8)]<=0x0||_0x391125<=0x0||_0x2d933f<=0x0)return;let _0x4a031c=Math[_0x9c3e24(0x295)](_0x391125/_0x4b8d4b[_0x9c3e24(0x49e)],_0x2d933f/_0x4b8d4b[_0x9c3e24(0x3f8)]);!Number['isFinite'](_0x4a031c)||_0x4a031c<=0x0||_0x4b6711['forEach'](_0x509b80=>{const _0x171291=_0x9c3e24;if(_0x509b80['isReleased'])return;if(_0x509b80[_0x171291(0x533)]!==null&&(_0x509b80['element'][_0x171291(0x3b0)]['getPropertyValue'](_0x171291(0x1e3))!==_0x509b80[_0x171291(0x533)]||_0x509b80[_0x171291(0x4a6)][_0x171291(0x3b0)][_0x171291(0x3ca)]('stroke-width')!==_0x509b80[_0x171291(0x46f)][_0x171291(0x4b6)])){_0x509b80[_0x171291(0x533)]=null,_0x509b80[_0x171291(0x431)]=!0x0;return;}let _0x349263=_0x509b80[_0x171291(0x345)]*_0x4932c8/_0x4a031c,_0x54408d=Number(_0x349263[_0x171291(0x56e)](0xc))+'px';_0x509b80[_0x171291(0x4a6)][_0x171291(0x3b0)][_0x171291(0x5c6)](_0x171291(0x1e3),_0x54408d,_0x509b80[_0x171291(0x46f)]['priority']),_0x509b80[_0x171291(0x533)]=_0x54408d;});},_0x3c3dd7=_0x167fa5[_0x295fc5(0x3db)]();_0x1d35f1(_0x3c3dd7[_0x295fc5(0x49e)],_0x3c3dd7[_0x295fc5(0x3f8)]);let _0xc42ccf=typeof ResizeObserver>'u'?null:new ResizeObserver(_0x25acd3=>{const _0x277938=_0x295fc5;if(_0x25acd3['some'](_0x2a5e24=>_0x2a5e24['target']===_0x167fa5)){let _0x54c39b=_0x167fa5[_0x277938(0x3db)]();_0x1d35f1(_0x54c39b[_0x277938(0x49e)],_0x54c39b['height']);}});return _0xc42ccf==null||_0xc42ccf[_0x295fc5(0x529)](_0x167fa5),()=>{const _0x3b2c67=_0x295fc5;_0xc42ccf==null||_0xc42ccf[_0x3b2c67(0x4e3)](),_0x4b6711['forEach'](_0x325b62=>{const _0x11d7a3=_0x3b2c67;_0x325b62[_0x11d7a3(0x533)]!==null&&(_0xcc8f15(_0x325b62['element'][_0x11d7a3(0x3b0)],_0x11d7a3(0x1e3),_0x325b62[_0x11d7a3(0x533)],_0x325b62[_0x11d7a3(0x46f)][_0x11d7a3(0x4b6)],_0x325b62[_0x11d7a3(0x46f)]),!_0x325b62[_0x11d7a3(0x2fb)]&&_0x325b62['element'][_0x11d7a3(0x3b0)][_0x11d7a3(0x2f1)]===0x0&&_0x325b62[_0x11d7a3(0x4a6)][_0x11d7a3(0x3cd)]('style'));});};}function _0x2aef41(_0x567d71,_0xfb06c0){const _0x2fc00f=_0x2766d8;return{'priority':_0x567d71['getPropertyPriority'](_0xfb06c0),'value':_0x567d71[_0x2fc00f(0x51c)](_0xfb06c0)};}function _0xcc8f15(_0x53ea1e,_0x2b90d6,_0x1d25b4,_0x25a848,_0x5187b1){const _0xafde96=_0x2766d8;_0x53ea1e[_0xafde96(0x51c)](_0x2b90d6)===_0x1d25b4&&_0x53ea1e[_0xafde96(0x3ca)](_0x2b90d6)===_0x25a848&&(_0x5187b1[_0xafde96(0x58f)]?_0x53ea1e[_0xafde96(0x5c6)](_0x2b90d6,_0x5187b1[_0xafde96(0x58f)],_0x5187b1[_0xafde96(0x4b6)]):_0x53ea1e[_0xafde96(0x461)](_0x2b90d6));}_0x4ddfda[_0x2766d8(0x573)]=_0x2766d8(0x3dd);let _0x5495d3={'tag':_0x2766d8(0x3e7),'attrs':{'xmlns':_0x2766d8(0x4a3),'fill':_0x2766d8(0x508),'viewBox':_0x2766d8(0x5a9),'width':'1em','height':_0x2766d8(0x4a0)},'children':[{'tag':_0x2766d8(0x56d),'attrs':{'fill':_0x2766d8(0x50f),'d':_0x2766d8(0x41e),'fillRule':'evenodd','clipRule':_0x2766d8(0x2c0)}},{'tag':'path','attrs':{'fill':'currentColor','d':'M14.1544\x208.5999C15.038\x208.5999\x2015.7544\x207.88356\x2015.7544\x206.9999C15.7544\x206.11625\x2015.038\x205.3999\x2014.1544\x205.3999H3.85439C2.97074\x205.3999\x202.25439\x206.11625\x202.25439\x206.9999C2.25439\x207.88356\x202.97074\x208.5999\x203.85439\x208.5999H14.1544ZM14.5544\x206.9999C14.5544\x207.22082\x2014.3753\x207.3999\x2014.1544\x207.3999H3.85439C3.63348\x207.3999\x203.45439\x207.22082\x203.45439\x206.9999C3.45439\x206.77899\x203.63348\x206.5999\x203.85439\x206.5999H14.1544C14.3753\x206.5999\x2014.5544\x206.77899\x2014.5544\x206.9999Z','fillRule':_0x2766d8(0x2c0),'clipRule':_0x2766d8(0x2c0)}},{'tag':_0x2766d8(0x56d),'attrs':{'fill':'currentColor','d':_0x2766d8(0x296)}},{'tag':_0x2766d8(0x56d),'attrs':{'fill':_0x2766d8(0x50f),'d':'M8.57975\x2014.5902C8.58121\x2014.5917\x208.58268\x2014.5931\x208.58416\x2014.5946C8.64077\x2014.6502\x208.70566\x2014.6923\x208.77482\x2014.7209C8.84557\x2014.7502\x208.92314\x2014.7664\x209.00449\x2014.7664C9.08585\x2014.7664\x209.16342\x2014.7502\x209.23416\x2014.7209C9.30332\x2014.6923\x209.36821\x2014.6502\x209.42482\x2014.5946'}}]},_0x460267=(0x0,_0x3d354c[_0x2766d8(0x3fd)])(function(_0x4a9288,_0x1ee68b){const _0xe4173e=_0x2766d8;return(0x0,_0x3d354c[_0xe4173e(0x58b)])(_0x4ddfda,Object[_0xe4173e(0x380)]({},_0x4a9288,{'id':_0xe4173e(0x2a7),'ref':_0x1ee68b,'icon':_0x5495d3}));});_0x460267[_0x2766d8(0x573)]='BottomIcon';let _0x45b220={'tag':_0x2766d8(0x3e7),'attrs':{'xmlns':_0x2766d8(0x4a3),'fill':_0x2766d8(0x508),'viewBox':'0\x200\x2016\x2016','width':_0x2766d8(0x4a0),'height':_0x2766d8(0x4a0)},'children':[{'tag':_0x2766d8(0x56d),'attrs':{'stroke':_0x2766d8(0x50f),'d':'M2.6\x203.3L6.2\x208L2.6\x2012.7V3.3Z','strokeLinecap':'round','strokeLinejoin':_0x2766d8(0x2fd),'strokeWidth':1.3}},{'tag':_0x2766d8(0x56d),'attrs':{'stroke':_0x2766d8(0x50f),'d':'M13.4\x203.3L9.8\x208L13.4\x2012.7V3.3Z','strokeLinecap':_0x2766d8(0x2fd),'strokeLinejoin':'round','strokeWidth':1.3}},{'tag':_0x2766d8(0x56d),'attrs':{'stroke':_0x2766d8(0x50f),'d':_0x2766d8(0x3a3),'strokeLinecap':_0x2766d8(0x2fd),'strokeWidth':1.2}},{'tag':_0x2766d8(0x56d),'attrs':{'stroke':_0x2766d8(0x50f),'d':_0x2766d8(0x454),'strokeLinecap':_0x2766d8(0x2fd),'strokeWidth':1.2}},{'tag':_0x2766d8(0x56d),'attrs':{'stroke':_0x2766d8(0x50f),'d':_0x2766d8(0x3be),'strokeLinecap':_0x2766d8(0x2fd),'strokeWidth':1.2}},{'tag':'path','attrs':{'stroke':_0x2766d8(0x50f),'d':'M8\x2014V14.2','strokeLinecap':_0x2766d8(0x2fd),'strokeWidth':1.2}}]},_0x3e9cd9=(0x0,_0x3d354c['forwardRef'])(function(_0x34130f,_0x483df4){const _0x16691a=_0x2766d8;return(0x0,_0x3d354c[_0x16691a(0x58b)])(_0x4ddfda,Object['assign']({},_0x34130f,{'id':'flip-horizontal-icon','ref':_0x483df4,'icon':_0x45b220}));});_0x3e9cd9[_0x2766d8(0x573)]=_0x2766d8(0x2cb);let _0x381488={'tag':_0x2766d8(0x3e7),'attrs':{'xmlns':_0x2766d8(0x4a3),'fill':_0x2766d8(0x508),'viewBox':_0x2766d8(0x1f5),'width':_0x2766d8(0x4a0),'height':'1em'},'children':[{'tag':_0x2766d8(0x56d),'attrs':{'stroke':'currentColor','d':_0x2766d8(0x364),'strokeLinecap':_0x2766d8(0x2fd),'strokeLinejoin':_0x2766d8(0x2fd),'strokeWidth':1.3}},{'tag':'path','attrs':{'stroke':_0x2766d8(0x50f),'d':_0x2766d8(0x4b9),'strokeLinecap':'round','strokeLinejoin':_0x2766d8(0x2fd),'strokeWidth':1.3}},{'tag':'path','attrs':{'stroke':_0x2766d8(0x50f),'d':_0x2766d8(0x25a),'strokeLinecap':_0x2766d8(0x2fd),'strokeWidth':1.2}},{'tag':_0x2766d8(0x56d),'attrs':{'stroke':_0x2766d8(0x50f),'d':_0x2766d8(0x2ff),'strokeLinecap':'round','strokeWidth':1.2}},{'tag':'path','attrs':{'stroke':_0x2766d8(0x50f),'d':_0x2766d8(0x530),'strokeLinecap':_0x2766d8(0x2fd),'strokeWidth':1.2}},{'tag':_0x2766d8(0x56d),'attrs':{'stroke':_0x2766d8(0x50f),'d':_0x2766d8(0x489),'strokeLinecap':'round','strokeWidth':1.2}}]},_0x4ae031=(0x0,_0x3d354c[_0x2766d8(0x3fd)])(function(_0x5b858e,_0xbe5712){const _0x4e9a40=_0x2766d8;return(0x0,_0x3d354c[_0x4e9a40(0x58b)])(_0x4ddfda,Object[_0x4e9a40(0x380)]({},_0x5b858e,{'id':'flip-vertical-icon','ref':_0xbe5712,'icon':_0x381488}));});_0x4ae031[_0x2766d8(0x573)]=_0x2766d8(0x1d5);let _0x54216e={'tag':_0x2766d8(0x3e7),'attrs':{'xmlns':_0x2766d8(0x4a3),'fill':_0x2766d8(0x508),'viewBox':_0x2766d8(0x1f5),'width':_0x2766d8(0x4a0),'height':_0x2766d8(0x4a0)},'children':[{'tag':_0x2766d8(0x56d),'attrs':{'fill':_0x2766d8(0x50f),'d':_0x2766d8(0x563),'fillRule':_0x2766d8(0x2c0),'clipRule':_0x2766d8(0x2c0)}},{'tag':_0x2766d8(0x56d),'attrs':{'fill':_0x2766d8(0x50f),'d':'M5.57564\x2011.6118C5.80995\x2011.3774\x206.18985\x2011.3774\x206.42417\x2011.6118L7.3999\x2012.5875V6.36951C7.3999\x206.03814\x207.66853\x205.76951\x207.9999\x205.76951C8.33127\x205.76951\x208.5999\x206.03814\x208.5999\x206.36951V12.5875L9.57564\x2011.6118C9.80995\x2011.3774\x2010.1899\x2011.3774\x2010.4242\x2011.6118C10.6585\x2011.8461\x2010.6585\x2012.226\x2010.4242\x2012.4603L8.4324\x2014.452C8.32324\x2014.5655\x208.16982\x2014.6362\x207.9999\x2014.6362C7.82998\x2014.6362\x207.67655\x2014.5655\x207.56739\x2014.452L5.57564\x2012.4603C5.34132\x2012.226\x205.34132\x2011.8461\x205.57564\x2011.6118Z'}}]},_0x5e159d=(0x0,_0x3d354c[_0x2766d8(0x3fd)])(function(_0x1eff72,_0x5a07f6){const _0x217df4=_0x2766d8;return(0x0,_0x3d354c[_0x217df4(0x58b)])(_0x4ddfda,Object[_0x217df4(0x380)]({},_0x1eff72,{'id':'move-down-icon','ref':_0x5a07f6,'icon':_0x54216e}));});_0x5e159d[_0x2766d8(0x573)]='MoveDownIcon';let _0x2fa6b1={'tag':_0x2766d8(0x3e7),'attrs':{'xmlns':_0x2766d8(0x4a3),'fill':'none','viewBox':_0x2766d8(0x1f5),'width':_0x2766d8(0x4a0),'height':_0x2766d8(0x4a0)},'children':[{'tag':_0x2766d8(0x56d),'attrs':{'fill':'currentColor','d':_0x2766d8(0x2d2),'fillRule':'evenodd','clipRule':_0x2766d8(0x2c0)}},{'tag':_0x2766d8(0x56d),'attrs':{'fill':_0x2766d8(0x50f),'d':_0x2766d8(0x245)}}]},_0xf77df5=(0x0,_0x3d354c[_0x2766d8(0x3fd)])(function(_0x2a3dd0,_0x46ce25){const _0x3c34be=_0x2766d8;return(0x0,_0x3d354c['createElement'])(_0x4ddfda,Object[_0x3c34be(0x380)]({},_0x2a3dd0,{'id':'move-up-icon','ref':_0x46ce25,'icon':_0x2fa6b1}));});_0xf77df5[_0x2766d8(0x573)]=_0x2766d8(0x4a5);let _0x28ae3c={'tag':_0x2766d8(0x3e7),'attrs':{'xmlns':_0x2766d8(0x4a3),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x2766d8(0x4a0),'height':_0x2766d8(0x4a0)},'children':[{'tag':_0x2766d8(0x56d),'attrs':{'stroke':_0x2766d8(0x50f),'d':_0x2766d8(0x268),'strokeLinecap':_0x2766d8(0x2fd),'strokeLinejoin':_0x2766d8(0x2fd),'strokeWidth':1.3}},{'tag':'path','attrs':{'stroke':_0x2766d8(0x50f),'d':_0x2766d8(0x2e9),'strokeLinecap':_0x2766d8(0x2fd),'strokeLinejoin':_0x2766d8(0x2fd),'strokeWidth':1.3}}]},_0x5f2102=(0x0,_0x3d354c[_0x2766d8(0x3fd)])(function(_0x5cb0ae,_0x50d216){const _0x3f52f4=_0x2766d8;return(0x0,_0x3d354c[_0x3f52f4(0x58b)])(_0x4ddfda,Object['assign']({},_0x5cb0ae,{'id':_0x3f52f4(0x52b),'ref':_0x50d216,'icon':_0x28ae3c}));});_0x5f2102[_0x2766d8(0x573)]=_0x2766d8(0x3a5);let _0x483a2c={'tag':_0x2766d8(0x3e7),'attrs':{'xmlns':_0x2766d8(0x4a3),'fill':_0x2766d8(0x508),'viewBox':'0\x200\x2016\x2016','width':_0x2766d8(0x4a0),'height':_0x2766d8(0x4a0)},'children':[{'tag':_0x2766d8(0x56d),'attrs':{'stroke':_0x2766d8(0x50f),'d':_0x2766d8(0x4b5),'strokeLinecap':'round','strokeLinejoin':_0x2766d8(0x2fd),'strokeWidth':1.2}},{'tag':_0x2766d8(0x56d),'attrs':{'stroke':_0x2766d8(0x50f),'d':'M4.2\x205.5H10.5','strokeLinecap':'round','strokeWidth':1.2}},{'tag':_0x2766d8(0x56d),'attrs':{'stroke':_0x2766d8(0x50f),'d':_0x2766d8(0x267),'strokeLinecap':_0x2766d8(0x2fd),'strokeWidth':1.2}},{'tag':_0x2766d8(0x56d),'attrs':{'stroke':_0x2766d8(0x50f),'d':'M11.5565\x208H12.4435L12.913\x208.78261L13.8\x208.57391L14.4261\x209.2L14.2174\x2010.087L15\x2010.5565V11.4435L14.2174\x2011.913L14.4261\x2012.8L13.8\x2013.4261L12.913\x2013.2174L12.4435\x2014H11.5565L11.087\x2013.2174L10.2\x2013.4261L9.57391\x2012.8L9.78261\x2011.913L9\x2011.4435V10.5565L9.78261\x2010.087L9.57391\x209.2L10.2\x208.57391L11.087\x208.78261L11.5565\x208Z','strokeLinejoin':_0x2766d8(0x2fd)}},{'tag':'path','attrs':{'stroke':_0x2766d8(0x50f),'d':'M12.05\x2012.1C12.6299\x2012.1\x2013.1\x2011.6299\x2013.1\x2011.05C13.1\x2010.4701\x2012.6299\x2010\x2012.05\x2010C11.4701\x2010\x2011\x2010.4701\x2011\x2011.05C11\x2011.6299\x2011.4701\x2012.1\x2012.05\x2012.1Z'}}]},_0x26b4c5=(0x0,_0x3d354c[_0x2766d8(0x3fd)])(function(_0x30c09e,_0x438469){const _0x37debb=_0x2766d8;return(0x0,_0x3d354c[_0x37debb(0x58b)])(_0x4ddfda,Object[_0x37debb(0x380)]({},_0x30c09e,{'id':_0x37debb(0x206),'ref':_0x438469,'icon':_0x483a2c}));});_0x26b4c5[_0x2766d8(0x573)]=_0x2766d8(0x3c2);let _0x4a20f3={'tag':_0x2766d8(0x3e7),'attrs':{'xmlns':_0x2766d8(0x4a3),'fill':_0x2766d8(0x508),'viewBox':_0x2766d8(0x5a9),'width':_0x2766d8(0x4a0),'height':_0x2766d8(0x4a0)},'children':[{'tag':_0x2766d8(0x56d),'attrs':{'fill':'currentColor','d':_0x2766d8(0x557)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x2766d8(0x39a),'fillRule':_0x2766d8(0x2c0),'clipRule':_0x2766d8(0x2c0)}},{'tag':_0x2766d8(0x56d),'attrs':{'fill':_0x2766d8(0x50f),'d':'M1.6543\x2013.1665C1.6543\x2012.2828\x202.37064\x2011.5665\x203.2543\x2011.5665H13.5543C14.438\x2011.5665\x2015.1543\x2012.2828\x2015.1543\x2013.1665C15.1543\x2014.0502\x2014.438\x2014.7665\x2013.5543\x2014.7665H3.2543C2.37064\x2014.7665\x201.6543\x2014.0502\x201.6543\x2013.1665ZM3.2543\x2012.7665C3.03338\x2012.7665\x202.8543\x2012.9456\x202.8543\x2013.1665C2.8543\x2013.3874\x203.03338\x2013.5665\x203.2543\x2013.5665H13.5543C13.7752\x2013.5665\x2013.9543\x2013.3874\x2013.9543\x2013.1665C13.9543\x2012.9456\x2013.7752\x2012.7665\x2013.5543\x2012.7665H3.2543Z','fillRule':'evenodd','clipRule':_0x2766d8(0x2c0)}}]},_0x222f4e=(0x0,_0x3d354c[_0x2766d8(0x3fd)])(function(_0x584794,_0x28642f){const _0xa2cff9=_0x2766d8;return(0x0,_0x3d354c[_0xa2cff9(0x58b)])(_0x4ddfda,Object[_0xa2cff9(0x380)]({},_0x584794,{'id':'topmost-icon','ref':_0x28642f,'icon':_0x4a20f3}));});_0x222f4e[_0x2766d8(0x573)]=_0x2766d8(0x2ad);function _0x1ba86f({PanelComponent:_0x158c5a=_0x2c4f7e[_0x2766d8(0x4ff)]}){const _0x5dd2b0=_0x2766d8;var _0xb1fd4b;function _0x4a79f6(_0x175778){const _0xe0f60c=_0x231f;return _0x175778[_0xe0f60c(0x290)]()||void 0x0;}function _0x18d641(_0x94fd6d,_0x5b17cc,_0x3f2023){const _0x2a9495=_0x231f;var _0x1d294e;return((_0x1d294e=_0x94fd6d[_0x2a9495(0x24b)])==null?void 0x0:_0x1d294e[_0x2a9495(0x290)]())||_0x3f2023['t'](_0x2a9495(0x350)+(0x0,_0x197fcc['getDrawingTypeNameKey'])(_0x94fd6d[_0x2a9495(0x313)]))+'\x20'+(_0x5b17cc+0x1);}let _0x3acd58=(0x0,_0x23e778[_0x5dd2b0(0x4e0)])(_0x35d996[_0x5dd2b0(0x5d0)]),_0x36605d={'title':_0x3acd58['t'](_0x5dd2b0(0x35f)),'empty':_0x3acd58['t']('drawing-ui.objectListPanel.empty'),'showAll':_0x3acd58['t'](_0x5dd2b0(0x35a)),'hideAll':_0x3acd58['t'](_0x5dd2b0(0x2d9)),'lockAll':_0x3acd58['t'](_0x5dd2b0(0x279)),'unlockAll':_0x3acd58['t'](_0x5dd2b0(0x2c8)),'moveForward':_0x3acd58['t']('drawing-ui.objectListPanel.moveForward'),'moveBackward':_0x3acd58['t']('drawing-ui.objectListPanel.moveBackward'),'close':_0x3acd58['t'](_0x5dd2b0(0x5ab)),'show':_0x3acd58['t']('drawing-ui.objectListPanel.show'),'hide':_0x3acd58['t']('drawing-ui.objectListPanel.hide'),'lock':_0x3acd58['t'](_0x5dd2b0(0x57a)),'unlock':_0x3acd58['t'](_0x5dd2b0(0x36e)),'lockHint':_0x3acd58['t'](_0x5dd2b0(0x5dd)),'unlockHint':_0x3acd58['t'](_0x5dd2b0(0x450)),'name':_0x3acd58['t'](_0x5dd2b0(0x531)),'nameInput':_0x3acd58['t'](_0x5dd2b0(0x488)),'description':_0x3acd58['t'](_0x5dd2b0(0x342)),'descriptionPlaceholder':_0x3acd58['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0x3acd58['t'](_0x5dd2b0(0x2fa)),'noSelection':_0x3acd58['t']('drawing-ui.objectListPanel.noSelection'),'locate':_0x3acd58['t'](_0x5dd2b0(0x539)),'expand':_0x3acd58['t'](_0x5dd2b0(0x2b6)),'collapse':_0x3acd58['t'](_0x5dd2b0(0x487)),'dragToReorder':_0x3acd58['t'](_0x5dd2b0(0x4a8)),'search':_0x3acd58['t'](_0x5dd2b0(0x27b)),'filterAll':_0x3acd58['t'](_0x5dd2b0(0x5b5)),'filterHidden':_0x3acd58['t'](_0x5dd2b0(0x2ba)),'filterLocked':_0x3acd58['t'](_0x5dd2b0(0x5bf)),'sectionCanvas':_0x3acd58['t'](_0x5dd2b0(0x413)),'sectionFloating':_0x3acd58['t'](_0x5dd2b0(0x46e))},_0x4e2c87=(0x0,_0x23e778[_0x5dd2b0(0x4e0)])(_0x35d996['ICommandService']),_0x412add=(0x0,_0x23e778[_0x5dd2b0(0x4e0)])(_0x35d996[_0x5dd2b0(0x403)]),_0x4d7972=(0x0,_0x23e778[_0x5dd2b0(0x4e0)])(_0x47830d[_0x5dd2b0(0x312)]),_0x2f9414=(0x0,_0x23e778[_0x5dd2b0(0x4e0)])(_0x2ed59f[_0x5dd2b0(0x554)]),_0x473ebf=(0x0,_0x23e778['useDependency'])(_0x580d8a[_0x5dd2b0(0x266)]),_0x1daa93=(0x0,_0x23e778[_0x5dd2b0(0x4e0)])(_0x23e778[_0x5dd2b0(0x3ea)]),[,_0x2a088b]=(0x0,_0x3d354c[_0x5dd2b0(0x452)])(_0x30c734=>_0x30c734+0x1,0x0),_0x13c60e=_0x412add[_0x5dd2b0(0x5ef)](_0x35d996[_0x5dd2b0(0x31d)][_0x5dd2b0(0x3de)]),_0x548556=(_0x13c60e==null?void 0x0:_0x13c60e[_0x5dd2b0(0x331)]())??'',_0x18313e=(_0x13c60e==null||(_0xb1fd4b=_0x13c60e[_0x5dd2b0(0x565)]())==null?void 0x0:_0xb1fd4b['getSheetId']())??'',_0x242fa4=(0x0,_0x23e778[_0x5dd2b0(0x4c4)])(()=>_0x2f9414['focus$'],_0x2f9414['getFocusDrawings'](),!0x1,[_0x2f9414]);(0x0,_0x3d354c['useEffect'])(()=>{const _0x13f20b=_0x5dd2b0;let _0xd36308=_0x4e2c87[_0x13f20b(0x3f5)](()=>_0x2a088b());return()=>_0xd36308['dispose']();},[_0x4e2c87]);let _0x3a4126=_0x548556&&_0x18313e?_0x4d7972[_0x5dd2b0(0x2aa)](_0x548556,_0x18313e):{},_0x33bdaa=(_0x548556&&_0x18313e?_0x4d7972[_0x5dd2b0(0x593)](_0x548556,_0x18313e):[])[_0x5dd2b0(0x4d8)](_0xb7bf20=>_0x3a4126[_0xb7bf20])[_0x5dd2b0(0x35b)](_0x590dec=>!!_0x590dec)[_0x5dd2b0(0x590)](),_0x23af3c=_0x33bdaa[_0x5dd2b0(0x566)]((_0x490213,_0x6a5478)=>(_0x490213[(0x0,_0x2c4f7e['getObjectListPanelSectionIdForDrawingType'])(_0x6a5478['drawingType'])]+=0x1,_0x490213),{'canvas':0x0,'floating':0x0}),_0x448c97={'canvas':0x0,'floating':0x0},_0x5df06c=_0x33bdaa['map']((_0x442e48,_0x2266e8)=>{const _0x2ab2df=_0x5dd2b0;let _0x1b0cd9=(0x0,_0x2c4f7e[_0x2ab2df(0x52d)])(_0x442e48['drawingType']),_0x40bd8d=_0x1b0cd9===_0x2c4f7e[_0x2ab2df(0x304)],_0x34744d=_0x448c97[_0x1b0cd9]++;return{'id':_0x442e48['drawingId'],'name':_0x18d641(_0x442e48,_0x2266e8,_0x3acd58),'description':_0x442e48[_0x2ab2df(0x274)],'visible':_0x442e48[_0x2ab2df(0x263)]!==!0x0,'selectable':_0x442e48[_0x2ab2df(0x356)]!==!0x1,'sectionId':_0x1b0cd9,'sectionTitle':_0x40bd8d?_0x36605d[_0x2ab2df(0x42f)]:_0x36605d[_0x2ab2df(0x2ee)],'capabilities':_0x40bd8d?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x40bd8d&&_0x34744d>0x0,'canMoveBackward':!_0x40bd8d&&_0x34744d<_0x23af3c['canvas']-0x1,'canReorder':!_0x40bd8d};}),_0x172c68=(0x0,_0x3d354c[_0x5dd2b0(0x21e)])(()=>(_0x242fa4??[])[_0x5dd2b0(0x35b)](_0x3be797=>_0x3be797['unitId']===_0x548556&&_0x3be797[_0x5dd2b0(0x35e)]===_0x18313e)['map'](_0x194a64=>_0x194a64[_0x5dd2b0(0x314)]),[_0x242fa4,_0x18313e,_0x548556]),_0x518740=_0x172c68[_0x172c68[_0x5dd2b0(0x2f1)]-0x1]??null,_0x3578a6=_0x1cafa0=>_0x4d7972['getDrawingByParam']({'unitId':_0x548556,'subUnitId':_0x18313e,'drawingId':_0x1cafa0})??null,_0x47f65a=async _0x22c3c8=>{const _0xfbad4f=_0x5dd2b0;_0x548556&&_0x22c3c8[_0xfbad4f(0x2f1)]&&await _0x4e2c87[_0xfbad4f(0x3d1)](_0x47830d[_0xfbad4f(0x395)]['id'],{'unitId':_0x548556,'drawings':_0x22c3c8});},_0x41ae3f=async(_0x51d6b9,_0x531ad8)=>{_0x3578a6(_0x51d6b9)&&await _0x47f65a([{'unitId':_0x548556,'subUnitId':_0x18313e,'drawingId':_0x51d6b9,..._0x531ad8}]);},_0x2cd3ac=(_0x119f6c,_0x4ece60)=>{const _0x52ae9e=_0x5dd2b0;if(!_0x548556||!_0x18313e)return;let _0x4808f6=_0x4ece60?_0x172c68[_0x52ae9e(0x41c)](_0x119f6c)?_0x172c68[_0x52ae9e(0x35b)](_0x16bc43=>_0x16bc43!==_0x119f6c):[..._0x172c68,_0x119f6c]:[_0x119f6c];_0x4e2c87[_0x52ae9e(0x478)](_0x2ed59f[_0x52ae9e(0x2f6)]['id'],_0x4808f6[_0x52ae9e(0x4d8)](_0x407e62=>({'unitId':_0x548556,'subUnitId':_0x18313e,'drawingId':_0x407e62})));let _0x85f789=_0x4808f6[_0x4808f6[_0x52ae9e(0x2f1)]-0x1];_0x85f789?((0x0,_0x197fcc['activateDrawingObject'])(_0x473ebf,{'unitId':_0x548556,'subUnitId':_0x18313e,'drawingId':_0x85f789}),_0x1daa93['focus'](_0x548556)):(0x0,_0x197fcc[_0x52ae9e(0x354)])(_0x473ebf,_0x548556);},_0x5592a2=async(_0x31b6c8,_0x43b4c2)=>{const _0x107d5c=_0x5dd2b0;await _0x47f65a(_0x31b6c8[_0x107d5c(0x4d8)](_0x323bbd=>_0x3578a6(_0x323bbd))['filter'](_0x582583=>!!_0x582583)[_0x107d5c(0x35b)](_0x10a87c=>_0x10a87c[_0x107d5c(0x263)]!==!0x0!==_0x43b4c2)[_0x107d5c(0x4d8)](_0x10bf6b=>({'unitId':_0x548556,'subUnitId':_0x18313e,'drawingId':_0x10bf6b[_0x107d5c(0x314)],'hidden':!_0x43b4c2})));},_0x2f9b24=async(_0x598e7f,_0x54f447)=>{const _0x3f3965=_0x5dd2b0;await _0x47f65a(_0x598e7f[_0x3f3965(0x4d8)](_0x1f9fe4=>_0x3578a6(_0x1f9fe4))[_0x3f3965(0x35b)](_0x3bc08e=>!!_0x3bc08e)[_0x3f3965(0x35b)](_0x3bb7b9=>_0x3bb7b9[_0x3f3965(0x356)]!==!0x1!==_0x54f447)[_0x3f3965(0x4d8)](_0x317567=>({'unitId':_0x548556,'subUnitId':_0x18313e,'drawingId':_0x317567[_0x3f3965(0x314)],'selectable':_0x54f447})));},_0x51253b=_0x2d0ce0=>{const _0x388bf4=_0x5dd2b0;let _0x1441cd=_0x3578a6(_0x2d0ce0);if(_0x1441cd)return _0x2f9b24([_0x2d0ce0],_0x1441cd[_0x388bf4(0x356)]===!0x1);},_0x55b6fe=async(_0x16af8a,_0x40c853)=>{var _0x2a7c1d;let _0x2fd38c=_0x4a79f6(_0x40c853);(((_0x2a7c1d=_0x3578a6(_0x16af8a))==null?void 0x0:_0x2a7c1d['name'])??void 0x0)!==_0x2fd38c&&await _0x41ae3f(_0x16af8a,{'name':_0x2fd38c});},_0x2be9ef=async(_0x165c09,_0x563216)=>{const _0x5c5ae5=_0x5dd2b0;var _0x8dc9a3;let _0x324b2c=_0x4a79f6(_0x563216);(((_0x8dc9a3=_0x3578a6(_0x165c09))==null?void 0x0:_0x8dc9a3[_0x5c5ae5(0x274)])??void 0x0)!==_0x324b2c&&await _0x41ae3f(_0x165c09,{'description':_0x324b2c});},_0x4cb9b4=async(_0x2b5cbd,_0x340aa8)=>{const _0x1b90dc=_0x5dd2b0;_0x548556&&_0x18313e&&await _0x4e2c87[_0x1b90dc(0x3d1)](_0x47830d[_0x1b90dc(0x2df)]['id'],{'unitId':_0x548556,'subUnitId':_0x18313e,'drawingIds':[_0x2b5cbd],'arrangeType':_0x340aa8});};return!_0x548556||!_0x18313e?(0x0,_0x121104[_0x5dd2b0(0x4f2)])(_0x5dd2b0(0x3b3),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x36605d['title']}):(0x0,_0x121104[_0x5dd2b0(0x4f2)])(_0x158c5a,{'labels':_0x36605d,'items':_0x5df06c,'selectedIds':_0x172c68,'focusedId':_0x518740,'showHeader':!0x1,'onSelect':_0x2cd3ac,'onSetVisible':_0x5592a2,'onSetSelectable':_0x2f9b24,'onCommitName':_0x55b6fe,'onCommitDescription':_0x2be9ef,'onMoveForward':async _0x4725f9=>_0x4cb9b4(_0x4725f9,_0x35d996['ArrangeTypeEnum'][_0x5dd2b0(0x214)]),'onMoveBackward':async _0x4e95bf=>_0x4cb9b4(_0x4e95bf,_0x35d996[_0x5dd2b0(0x55c)][_0x5dd2b0(0x2bf)]),'onToggleSelectable':_0x51253b});}function _0x4f4b73(){const _0x29c752=_0x2766d8;return(0x0,_0x121104[_0x29c752(0x4f2)])(_0x1ba86f,{'PanelComponent':_0x2c4f7e[_0x29c752(0x3d9)]});}let _0x46a7ae=class extends _0x35d996[_0x2766d8(0x491)]{constructor(_0x7733f0,_0x4d3b8f){const _0xe25fc8=_0x2766d8;super(),this[_0xe25fc8(0x271)](_0x7733f0[_0xe25fc8(0x495)](_0x5bd6d7,_0x4f4b73)),this[_0xe25fc8(0x271)](_0x4d3b8f[_0xe25fc8(0x495)]({'BottomIcon':_0x460267,'FlipHorizontalIcon':_0x3e9cd9,'FlipVerticalIcon':_0x4ae031,'MoveDownIcon':_0x5e159d,'MoveUpIcon':_0xf77df5,'ObjectLayersIcon':_0x5f2102,'ShapeFormatSettingIcon':_0x26b4c5,'TopmostIcon':_0x222f4e})),this['disposeWithMe'](_0x7733f0[_0xe25fc8(0x495)](_0x2ae931,_0x25a995)),this[_0xe25fc8(0x271)](_0x7733f0['register'](_0x4aafa5,_0x2dbee2)),_0x7733f0['hasDefault'](_0x2c4f7e[_0xe25fc8(0x368)])||this[_0xe25fc8(0x271)](_0x7733f0[_0xe25fc8(0x495)](_0x2c4f7e[_0xe25fc8(0x368)],_0x275f06));}};_0x46a7ae=_0x39c461([_0x400e7c(0x0,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x23e778['ComponentManager'])),_0x400e7c(0x1,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x23e778[_0x2766d8(0x211)]))],_0x46a7ae);let _0x4a54d8=class extends _0x35d996[_0x2766d8(0x491)]{constructor(_0x1fdda8){const _0x45dc01=_0x2766d8;super(),this[_0x45dc01(0x30c)]=_0x1fdda8,_0x2a4a7a(this,_0x45dc01(0x5b1),new _0x4737d9['BehaviorSubject'](null)),_0x2a4a7a(this,_0x45dc01(0x4b4),this['_editingParams$'][_0x45dc01(0x5bc)]()),_0x2a4a7a(this,_0x45dc01(0x4c6),new _0x4737d9[(_0x45dc01(0x3b1))](!0x1)),_0x2a4a7a(this,_0x45dc01(0x3a0),this[_0x45dc01(0x4c6)][_0x45dc01(0x5bc)]()),_0x2a4a7a(this,'_completionFrame',void 0x0),this[_0x45dc01(0x271)](this['_permissionService'][_0x45dc01(0x2bd)][_0x45dc01(0x56a)](()=>{const _0x1673cf=_0x45dc01;let _0x56b345=this[_0x1673cf(0x2cd)]();_0x56b345!=null&&_0x56b345['visible']&&!this[_0x1673cf(0x3d0)](_0x56b345)&&this[_0x1673cf(0x5c4)](null);}));}[_0x2766d8(0x2a4)](){const _0x4a5a05=_0x2766d8;this['_clearCompletionFrame'](),this[_0x4a5a05(0x5b1)][_0x4a5a05(0x439)](null),this[_0x4a5a05(0x5b1)][_0x4a5a05(0x44d)](),this[_0x4a5a05(0x4c6)][_0x4a5a05(0x439)](!0x1),this['_onSavingEditorData$']['complete'](),super[_0x4a5a05(0x2a4)]();}[_0x2766d8(0x5c4)](_0x3a1022){const _0x2d7f7c=_0x2766d8;(_0x3a1022==null||!_0x3a1022[_0x2d7f7c(0x416)]||this[_0x2d7f7c(0x3d0)](_0x3a1022))&&(this[_0x2d7f7c(0x221)](),this[_0x2d7f7c(0x5b1)][_0x2d7f7c(0x439)](_0x3a1022),(_0x3a1022==null||_0x3a1022[_0x2d7f7c(0x416)]&&this[_0x2d7f7c(0x4c6)][_0x2d7f7c(0x3a4)]())&&this['_onSavingEditorData$'][_0x2d7f7c(0x439)](!0x1));}[_0x2766d8(0x3e1)](_0x221c8c){const _0x56d7dd=_0x2766d8;this[_0x56d7dd(0x4c6)][_0x56d7dd(0x439)](_0x221c8c);}[_0x2766d8(0x2cd)](){const _0x3a6aa9=_0x2766d8;return this[_0x3a6aa9(0x5b1)]['getValue']();}[_0x2766d8(0x3d0)](_0x23ed92){const _0x5a7ac4=_0x2766d8;let _0x81dc1b=this[_0x5a7ac4(0x30c)][_0x5a7ac4(0x5ec)](new _0x2a684c[(_0x5a7ac4(0x4c0))](_0x23ed92[_0x5a7ac4(0x280)])['id']),_0x485545=this['_permissionService']['getPermissionPoint'](new _0x2a684c[(_0x5a7ac4(0x59b))](_0x23ed92[_0x5a7ac4(0x280)],_0x23ed92[_0x5a7ac4(0x35e)])['id']);return((_0x81dc1b==null?void 0x0:_0x81dc1b[_0x5a7ac4(0x58f)])??!0x0)&&((_0x485545==null?void 0x0:_0x485545[_0x5a7ac4(0x58f)])??!0x0);}[_0x2766d8(0x387)](_0x46418d){const _0x50f3cc=_0x2766d8;let _0x1667b8=this[_0x50f3cc(0x2cd)]();_0x1667b8&&this[_0x50f3cc(0x32d)]===void 0x0&&(this[_0x50f3cc(0x3e1)](!0x0),this[_0x50f3cc(0x32d)]=requestAnimationFrame(()=>{const _0x3dbf7a=_0x50f3cc;this[_0x3dbf7a(0x32d)]=void 0x0,this['getEditing']()===_0x1667b8&&this[_0x3dbf7a(0x5c4)](null);}));}['_clearCompletionFrame'](){const _0x12745a=_0x2766d8;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this[_0x12745a(0x32d)]),this[_0x12745a(0x32d)]=void 0x0);}[_0x2766d8(0x2ec)](){const _0x27ea9d=_0x2766d8;this[_0x27ea9d(0x2cd)]()&&this[_0x27ea9d(0x5c4)](null);}};_0x4a54d8=_0x39c461([_0x400e7c(0x0,_0x35d996[_0x2766d8(0x359)])],_0x4a54d8);let _0x37b743=class extends _0x35d996[_0x2766d8(0x491)]{constructor(_0x3d50d3,_0x55f77c,_0xbd1753,_0x303449,_0x2f6c6a,_0x379026){const _0x28d026=_0x2766d8;super(),this[_0x28d026(0x587)]=_0x3d50d3,this[_0x28d026(0x451)]=_0x55f77c,this[_0x28d026(0x21a)]=_0xbd1753,this[_0x28d026(0x482)]=_0x303449,this[_0x28d026(0x269)]=_0x2f6c6a,this['_sheetsShapeService']=_0x379026,_0x2a4a7a(this,_0x28d026(0x3b6),null),this['_initEvents'](),this[_0x28d026(0x5d2)](),this[_0x28d026(0x3cc)]();}[_0x2766d8(0x444)](){const _0x10184c=_0x2766d8;let {scene:_0x2abf92}=this[_0x10184c(0x587)];this['disposeWithMe'](_0x2abf92[_0x10184c(0x2f8)]['subscribeEvent'](_0x2df6f0=>{const _0x5702b3=_0x10184c;let {offsetX:_0x4b729c,offsetY:_0x2e3eee}=_0x2df6f0,_0x4abdd0=_0x2abf92[_0x5702b3(0x54d)](_0x580d8a[_0x5702b3(0x48d)][_0x5702b3(0x5a1)]([_0x4b729c,_0x2e3eee]));if(_0x4abdd0 instanceof _0x423ac6){let _0x31e8d5=this['_sheetsShapeService']['getShapeModel'](_0x4abdd0['unitId'],_0x4abdd0[_0x5702b3(0x35e)],_0x4abdd0[_0x5702b3(0x2a8)]);if((0x0,_0x1f2a15[_0x5702b3(0x493)])(this[_0x5702b3(0x218)][_0x5702b3(0x200)](_0x4abdd0[_0x5702b3(0x280)],_0x4abdd0[_0x5702b3(0x35e)],_0x4abdd0[_0x5702b3(0x2a8)]))||_0x31e8d5!=null&&_0x31e8d5['getShapeData']()['formulaBinding'])return;this[_0x5702b3(0x21a)][_0x5702b3(0x5c4)]({'visible':!0x0,'unitId':_0x4abdd0['unitId'],'subUnitId':_0x4abdd0[_0x5702b3(0x35e)],'shapeId':_0x4abdd0[_0x5702b3(0x2a8)],'shapeKey':_0x4abdd0[_0x5702b3(0x5ca)]});}}));}[_0x2766d8(0x5d2)](){const _0x5e49f7=_0x2766d8;this[_0x5e49f7(0x271)](this[_0x5e49f7(0x482)]['focus$'][_0x5e49f7(0x56a)](_0x11aac4=>{const _0x2dc3ef=_0x5e49f7;if(_0x11aac4[_0x2dc3ef(0x2f1)]===0x1){let _0x3a6e3a=_0x11aac4[0x0],_0x408851=this['_drawingManagerService'][_0x2dc3ef(0x26d)](_0x3a6e3a);if((_0x408851==null?void 0x0:_0x408851[_0x2dc3ef(0x313)])===_0x35d996[_0x2dc3ef(0x44f)][_0x2dc3ef(0x4ba)]){var _0x389bd5;let _0xaea25a=this[_0x2dc3ef(0x21a)][_0x2dc3ef(0x2cd)]();if((_0xaea25a==null?void 0x0:_0xaea25a[_0x2dc3ef(0x2a8)])===_0x3a6e3a[_0x2dc3ef(0x314)]&&_0xaea25a['visible'])return;let _0x29264c=(0x0,_0x1f2a15[_0x2dc3ef(0x493)])(this['_sheetsShapeService']['getShapeType'](_0x3a6e3a[_0x2dc3ef(0x280)],_0x3a6e3a[_0x2dc3ef(0x35e)],_0x3a6e3a[_0x2dc3ef(0x314)])),_0xbdee6c=!!((_0x389bd5=this[_0x2dc3ef(0x218)][_0x2dc3ef(0x338)](_0x3a6e3a[_0x2dc3ef(0x280)],_0x3a6e3a[_0x2dc3ef(0x35e)],_0x3a6e3a['drawingId']))!=null&&_0x389bd5[_0x2dc3ef(0x583)]()[_0x2dc3ef(0x405)]);(_0x29264c||_0xbdee6c)&&this[_0x2dc3ef(0x21a)][_0x2dc3ef(0x5c4)](null);}else this[_0x2dc3ef(0x21a)]['completeEditing']();}else this[_0x2dc3ef(0x21a)]['completeEditing']();})),this[_0x5e49f7(0x271)](this[_0x5e49f7(0x482)]['remove$'][_0x5e49f7(0x56a)](_0x3a81c5=>{const _0x58d25e=_0x5e49f7;let _0x67eb60=this[_0x58d25e(0x21a)][_0x58d25e(0x2cd)]();_0x67eb60&&_0x3a81c5[_0x58d25e(0x5c8)](_0x5dcdcf=>_0x5dcdcf[_0x58d25e(0x314)]===_0x67eb60['shapeId'])&&this['_shapeTextEditingService'][_0x58d25e(0x5c4)](null);}));}['_initEditingParams'](){const _0x5c076b=_0x2766d8;this[_0x5c076b(0x271)](this[_0x5c076b(0x21a)][_0x5c076b(0x4b4)][_0x5c076b(0x56a)](_0x521331=>{const _0x36e23b=_0x5c076b;let {scene:_0x11529f}=this[_0x36e23b(0x587)];if(this[_0x36e23b(0x3b6)]){let _0x2a6a5d=_0x11529f[_0x36e23b(0x1e9)](this[_0x36e23b(0x3b6)]);_0x2a6a5d&&_0x2a6a5d[_0x36e23b(0x5c4)](!0x1);}if(_0x521331){let _0x135879=!!_0x521331['visible'],_0x192eca=_0x11529f[_0x36e23b(0x1e9)](_0x521331[_0x36e23b(0x24f)]);_0x192eca&&(_0x192eca['setEditing'](_0x135879),this[_0x36e23b(0x3b6)]=_0x521331[_0x36e23b(0x24f)]),this['_contextService'][_0x36e23b(0x458)](_0x35d996[_0x36e23b(0x595)],_0x135879);}else this['_lastEditingShapeKey']=null,this[_0x36e23b(0x269)][_0x36e23b(0x458)](_0x35d996[_0x36e23b(0x595)],!0x1);}));}};_0x37b743=_0x39c461([_0x400e7c(0x1,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x35d996[_0x2766d8(0x4c2)])),_0x400e7c(0x2,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x4a54d8)),_0x400e7c(0x3,_0x2ed59f[_0x2766d8(0x554)]),_0x400e7c(0x4,_0x35d996[_0x2766d8(0x58d)]),_0x400e7c(0x5,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x565640['SheetsShapeService']))],_0x37b743);var _0x187142=class extends _0x37b743{[_0x2766d8(0x444)](){const _0x563e8b=_0x2766d8;let {scene:_0x1ac76b}=this[_0x563e8b(0x587)],_0x4ea672=this[_0x563e8b(0x451)][_0x563e8b(0x340)](_0x197fcc['MobileShapeEditorService']);this[_0x563e8b(0x271)](_0x1ac76b['onDblclick$']['subscribeEvent'](_0x4005be=>{const _0x173ec3=_0x563e8b;let {offsetX:_0x4ea40b,offsetY:_0x313a18}=_0x4005be,_0x2be3e7=_0x1ac76b['pick'](_0x580d8a['Vector2']['FromArray']([_0x4ea40b,_0x313a18]));if(!(_0x2be3e7 instanceof _0x423ac6))return;let _0x36274c=this['_sheetsShapeService']['getShapeModel'](_0x2be3e7[_0x173ec3(0x280)],_0x2be3e7[_0x173ec3(0x35e)],_0x2be3e7['shapeId']);(0x0,_0x1f2a15['isConnectorShape'])(this['_sheetsShapeService'][_0x173ec3(0x200)](_0x2be3e7[_0x173ec3(0x280)],_0x2be3e7['subUnitId'],_0x2be3e7['shapeId']))||_0x36274c!=null&&_0x36274c[_0x173ec3(0x583)]()['formulaBinding']||_0x4ea672['open'](_0x173ec3(0x23d),{'hostType':_0x35d996['UniverInstanceType'][_0x173ec3(0x3de)],'unitId':_0x2be3e7[_0x173ec3(0x280)],'subUnitId':_0x2be3e7[_0x173ec3(0x35e)],'shapeId':_0x2be3e7[_0x173ec3(0x2a8)]});}));}};let _0x48285e={..._0x296796},_0x224297=class extends _0x35d996[_0x2766d8(0x491)]{constructor(_0x372b8e,_0x1795bd,_0x23a787,_0x4ef981,_0x45f207,_0x236a9d,_0x206da7,_0x26d99c){const _0x100674=_0x2766d8;super(),this[_0x100674(0x344)]=_0x372b8e,this[_0x100674(0x218)]=_0x1795bd,this[_0x100674(0x54f)]=_0x23a787,this[_0x100674(0x482)]=_0x4ef981,this['_sheetCanvasPopManagerService']=_0x45f207,this[_0x100674(0x269)]=_0x236a9d,this[_0x100674(0x4bb)]=_0x206da7,this['_shapeTextEditingService']=_0x26d99c,_0x2a4a7a(this,'_shapePopupMenuDisposable',null),this['_menuManagerService']['mergeMenu'](_0x48285e),this[_0x100674(0x3d7)](),this[_0x100674(0x271)](this['_shapeTextEditingService'][_0x100674(0x4b4)][_0x100674(0x56a)](_0xe43c2d=>{const _0x36107b=_0x100674;_0xe43c2d&&this[_0x36107b(0x40a)]();}));}['initShapePopupMenu'](){const _0x4d7db7=_0x2766d8;this[_0x4d7db7(0x5c1)]||=this[_0x4d7db7(0x271)]((0x0,_0x197fcc['bindRenderTransformerLifecycle'])(this[_0x4d7db7(0x4bb)],_0x35d996[_0x4d7db7(0x31d)][_0x4d7db7(0x3de)],_0x97a682=>this[_0x4d7db7(0x4bd)](_0x97a682)));}[_0x2766d8(0x3d7)](){const _0x112fdc=_0x2766d8;this[_0x112fdc(0x5be)][_0x112fdc(0x4d2)](_0x35d996[_0x112fdc(0x44f)][_0x112fdc(0x4ba)],(_0x3d65e7,_0x286839,_0x46820c,_0x2dba49)=>{const _0x534379=_0x112fdc;let _0x4aba4c=this[_0x534379(0x218)]['getShapeTypeById'](_0x3d65e7,_0x286839,_0x46820c),_0x3e33a6=this['_sheetsShapeService']['getShapeDataById'](_0x3d65e7,_0x286839,_0x46820c),_0x2f155a=_0x4aba4c!==void 0x0&&!(0x0,_0x1f2a15['isConnectorShape'])(_0x4aba4c)&&!(_0x3e33a6!=null&&_0x3e33a6['formulaBinding']);return[{'label':'sheets-shape-ui.editShape','index':0x0,'commandId':_0x279e80['id'],'commandParams':{'unitId':_0x3d65e7,'subUnitId':_0x286839,'drawingId':_0x46820c,'mode':_0x534379(0x3b0)},'disable':!0x1},..._0x2f155a?[{'label':_0x534379(0x5a3),'index':0x1,'commandId':_0x279e80['id'],'commandParams':{'unitId':_0x3d65e7,'subUnitId':_0x286839,'drawingId':_0x46820c,'mode':_0x534379(0x23d)},'disable':!0x1}]:[],{'label':_0x534379(0x537),'index':0x2,'commandId':_0x47830d[_0x534379(0x5ba)]['id'],'commandParams':{'unitId':_0x3d65e7,'drawings':[{'unitId':_0x3d65e7,'subUnitId':_0x286839,'drawingId':_0x46820c,'drawingType':_0x2dba49}]},'disable':!0x1},{'label':_0x534379(0x517),'index':0x3,'commandId':_0x565640[_0x534379(0x5d8)]['id'],'commandParams':{'unitId':_0x3d65e7,'subUnitId':_0x286839,'shapeId':_0x46820c,'flipH':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.flipVertical','index':0x4,'commandId':_0x565640[_0x534379(0x5d8)]['id'],'commandParams':{'unitId':_0x3d65e7,'subUnitId':_0x286839,'shapeId':_0x46820c,'flipV':!0x0},'disable':!0x1}];},'sheets-shape-ui.title');}[_0x2766d8(0x4bd)](_0x463085){const _0x4ce6f0=_0x2766d8;let _0x1b3f72=new _0x35d996[(_0x4ce6f0(0x502))](),_0x3d119f=null,_0x4e60a5=()=>{const _0x3d875c=_0x4ce6f0;if(!_0x3d119f)return;let _0x366a21=this['_drawingManagerService']['getFocusDrawings'](),_0x3fccdf=_0x366a21['length']===0x0||_0x366a21['length']===0x1&&_0x366a21[_0x3d875c(0x5c8)](_0x49560d=>_0x49560d[_0x3d875c(0x280)]===(_0x3d119f==null?void 0x0:_0x3d119f[_0x3d875c(0x280)])&&_0x49560d[_0x3d875c(0x35e)]===(_0x3d119f==null?void 0x0:_0x3d119f['subUnitId'])&&_0x49560d['drawingId']===(_0x3d119f==null?void 0x0:_0x3d119f['drawingId']));_0x3d119f=null,_0x3fccdf&&(this[_0x3d875c(0x269)][_0x3d875c(0x458)](_0x35d996['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x3d875c(0x482)][_0x3d875c(0x2f5)](null));};return _0x1b3f72[_0x4ce6f0(0x294)](_0x463085[_0x4ce6f0(0x31e)][_0x4ce6f0(0x56a)](()=>{const _0x354cbd=_0x4ce6f0;let _0x24e9d0=_0x463085[_0x354cbd(0x524)]();if(_0x24e9d0[_0x354cbd(0x22b)]>0x1){_0x4e60a5();return;}let _0xe1dcd1=_0x24e9d0[_0x354cbd(0x3bf)]()['next']()[_0x354cbd(0x58f)];if(!_0xe1dcd1){_0x4e60a5();return;}let _0x16a849=this[_0x354cbd(0x482)][_0x354cbd(0x20b)](_0xe1dcd1['oKey']);if(!_0x16a849||_0x16a849[_0x354cbd(0x313)]!==_0x35d996[_0x354cbd(0x44f)][_0x354cbd(0x4ba)]){_0x4e60a5();return;}let {unitId:_0xd06356,subUnitId:_0x386b6a,drawingId:_0x488fde}=_0x16a849;_0x3d119f={'unitId':_0xd06356,'subUnitId':_0x386b6a,'drawingId':_0x488fde},this[_0x354cbd(0x269)][_0x354cbd(0x458)](_0x35d996[_0x354cbd(0x4d1)],!0x0),this[_0x354cbd(0x482)][_0x354cbd(0x5bb)]()['find'](_0x33a3b9=>_0x33a3b9[_0x354cbd(0x280)]===_0xd06356&&_0x33a3b9[_0x354cbd(0x35e)]===_0x386b6a&&_0x33a3b9[_0x354cbd(0x314)]===_0x488fde)||this['_drawingManagerService'][_0x354cbd(0x2f5)]([{'unitId':_0xd06356,'subUnitId':_0x386b6a,'drawingId':_0x488fde}]);})),_0x1b3f72[_0x4ce6f0(0x294)](_0x463085[_0x4ce6f0(0x58a)][_0x4ce6f0(0x56a)](()=>{_0x4e60a5();})),(0x0,_0x35d996['toDisposable'])(()=>{const _0x1b3d77=_0x4ce6f0;_0x1b3f72[_0x1b3d77(0x2a4)](),_0x4e60a5();});}[_0x2766d8(0x40a)](){const _0x138174=_0x2766d8;this[_0x138174(0x269)]['setContextValue'](_0x35d996[_0x138174(0x4d1)],!0x1),this['_drawingManagerService'][_0x138174(0x2f5)](null);}};_0x224297=_0x39c461([_0x400e7c(0x0,_0x23e778['IMenuManagerService']),_0x400e7c(0x1,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x565640[_0x2766d8(0x248)])),_0x400e7c(0x2,_0x35d996[_0x2766d8(0x3c6)]),_0x400e7c(0x3,_0x2ed59f['IDrawingManagerService']),_0x400e7c(0x4,(0x0,_0x35d996['Inject'])(_0x590c15[_0x2766d8(0x3f4)])),_0x400e7c(0x5,_0x35d996[_0x2766d8(0x58d)]),_0x400e7c(0x6,_0x580d8a[_0x2766d8(0x266)]),_0x400e7c(0x7,(0x0,_0x35d996['Inject'])(_0x4a54d8))],_0x224297);function _0xb8d8a9(_0x189247,_0x2ca9b6,_0x549330,_0x4a8636){const _0x5f48d7=_0x2766d8;let _0xf478c3=(0x0,_0x2ed59f[_0x5f48d7(0x27c)])(_0x189247,_0x2ca9b6,_0x549330),_0x5a53b6=[];for(let _0x8be5c of _0x2ca9b6){let _0x2387f=_0xf478c3['idMap'][_0x5f48d7(0x340)](_0x8be5c[_0x5f48d7(0x314)]),_0x516b41=_0x4a8636(_0x8be5c);_0x2387f&&_0x516b41&&_0x5a53b6[_0x5f48d7(0x373)]({'targetShapeId':_0x2387f,'source':_0x516b41});}return _0x5a53b6;}let _0x563547=class extends _0x35d996[_0x2766d8(0x491)]{constructor(_0x2170b0,_0xf788b,_0x3f45c9,_0x1121c8){const _0x554fe7=_0x2766d8;super(),this['_univerInstanceService']=_0x2170b0,this['_sheetInterceptorService']=_0xf788b,this[_0x554fe7(0x47d)]=_0x3f45c9,this['_sheetsShapeService']=_0x1121c8,this['_initSheetChange']();}['_initSheetChange'](){const _0x28c6c7=_0x2766d8;this['disposeWithMe'](this[_0x28c6c7(0x49b)][_0x28c6c7(0x237)]({'getMutations':_0x371471=>{const _0x4c066d=_0x28c6c7;if(_0x371471['id']===_0x2a684c[_0x4c066d(0x598)]['id']){let _0x55f3aa=(0x0,_0x2a684c[_0x4c066d(0x231)])(this[_0x4c066d(0x251)],_0x371471[_0x4c066d(0x1db)]);if(!_0x55f3aa)return{'redos':[],'undos':[]};let {unitId:_0x33c9aa,subUnitId:_0xb6c65a}=_0x55f3aa,_0x5c6a81=this[_0x4c066d(0x47d)][_0x4c066d(0x2aa)](_0x33c9aa,_0xb6c65a),_0x599f41=Object[_0x4c066d(0x3bf)](_0x5c6a81)[_0x4c066d(0x35b)](_0x8e2650=>_0x8e2650[_0x4c066d(0x313)]===_0x35d996[_0x4c066d(0x44f)][_0x4c066d(0x4ba)]);if(_0x599f41['length']===0x0)return{'redos':[],'undos':[]};let _0x234695=[],_0x8704e5=[];for(let _0x43d737=0x0;_0x43d737<_0x599f41[_0x4c066d(0x2f1)];_0x43d737++){let _0x10f42b=_0x599f41[_0x43d737],_0x4abf59=this[_0x4c066d(0x218)]['getShapeModel'](_0x10f42b[_0x4c066d(0x280)],_0x10f42b['subUnitId'],_0x10f42b[_0x4c066d(0x314)]);_0x4abf59&&(_0x234695['push']({'id':_0x565640[_0x4c066d(0x3a9)]['id'],'params':{'unitId':_0x33c9aa,'subUnitId':_0xb6c65a,'shapeId':_0x10f42b['drawingId']}}),_0x8704e5[_0x4c066d(0x373)]({'id':_0x565640[_0x4c066d(0x4bf)]['id'],'params':{'unitId':_0x33c9aa,'subUnitId':_0xb6c65a,'shapeId':_0x10f42b[_0x4c066d(0x314)],'shapeType':_0x4abf59[_0x4c066d(0x200)](),'shapeData':JSON[_0x4c066d(0x541)](JSON[_0x4c066d(0x54b)](_0x4abf59[_0x4c066d(0x583)]()))}}));}return{'redos':_0x234695,'undos':_0x8704e5};}if(_0x371471['id']===_0x2a684c[_0x4c066d(0x2eb)]['id']){let {unitId:_0x5e15c6,subUnitId:_0x26ac68,targetSubUnitId:_0x524ce6,copyContext:_0x46e17b}=_0x371471['params'];if(!_0x5e15c6||!_0x26ac68||!_0x524ce6)return{'redos':[],'undos':[]};let _0x1537e2=this[_0x4c066d(0x47d)][_0x4c066d(0x2aa)](_0x5e15c6,_0x26ac68),_0x3f4e61=Object[_0x4c066d(0x3bf)](_0x1537e2)[_0x4c066d(0x35b)](_0x49e5ca=>_0x49e5ca[_0x4c066d(0x313)]===_0x35d996[_0x4c066d(0x44f)][_0x4c066d(0x4ba)]);if(_0x3f4e61['length']===0x0)return{'redos':[],'undos':[]};let _0x1c47ce=_0xb8d8a9(_0x46e17b,_0x3f4e61,{'unitId':_0x5e15c6,'sourceSubUnitId':_0x26ac68,'targetSubUnitId':_0x524ce6},_0x4dc414=>{const _0x43b54c=_0x4c066d;let _0x13cde0=this[_0x43b54c(0x218)][_0x43b54c(0x338)](_0x4dc414[_0x43b54c(0x280)],_0x4dc414[_0x43b54c(0x35e)],_0x4dc414[_0x43b54c(0x314)]);if(_0x13cde0)return{'shapeType':_0x13cde0[_0x43b54c(0x200)](),'shapeData':JSON[_0x43b54c(0x541)](JSON[_0x43b54c(0x54b)](_0x13cde0['getShapeData']()))};}),_0x57cb1e=[],_0xbd49c=[];for(let {targetShapeId:_0x4f19d9,source:_0x192b9e}of _0x1c47ce)_0x57cb1e[_0x4c066d(0x373)]({'id':_0x565640['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x5e15c6,'subUnitId':_0x524ce6,'shapeId':_0x4f19d9,'shapeType':_0x192b9e[_0x4c066d(0x3fc)],'shapeData':_0x192b9e[_0x4c066d(0x23b)]}}),_0xbd49c[_0x4c066d(0x373)]({'id':_0x565640[_0x4c066d(0x3a9)]['id'],'params':{'unitId':_0x5e15c6,'subUnitId':_0x524ce6,'shapeId':_0x4f19d9}});return{'redos':_0x57cb1e,'undos':_0xbd49c};}return{'redos':[],'undos':[]};}}));}};_0x563547=_0x39c461([_0x400e7c(0x0,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x35d996[_0x2766d8(0x403)])),_0x400e7c(0x1,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x2a684c[_0x2766d8(0x24d)])),_0x400e7c(0x2,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x47830d['ISheetDrawingService'])),_0x400e7c(0x3,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x565640[_0x2766d8(0x248)]))],_0x563547);let _0xc945f6=class extends _0x35d996[_0x2766d8(0x491)]{constructor(_0x4dab07,_0x54f2d3,_0x4585a9,_0x9a91a2,_0x2cb6df,_0x4b90f6){const _0x40a5d7=_0x2766d8;super(),this[_0x40a5d7(0x54f)]=_0x4dab07,this[_0x40a5d7(0x4bb)]=_0x54f2d3,this[_0x40a5d7(0x482)]=_0x4585a9,this['_currentUniverService']=_0x9a91a2,this[_0x40a5d7(0x501)]=_0x2cb6df,this[_0x40a5d7(0x316)]=_0x4b90f6,_0x2a4a7a(this,_0x40a5d7(0x38d),new Set()),this[_0x40a5d7(0x5d9)]();}[_0x2766d8(0x5d9)](){const _0x374206=_0x2766d8;this[_0x374206(0x1f9)](),this[_0x374206(0x2d5)](),this['_shapeUpdateListener']();}[_0x2766d8(0x1f9)](){const _0x2c8446=_0x2766d8;this[_0x2c8446(0x271)](this[_0x2c8446(0x482)][_0x2c8446(0x494)][_0x2c8446(0x56a)](_0x441977=>{const _0x25a103=_0x2c8446;this[_0x25a103(0x2d3)](_0x441977);}));}[_0x2766d8(0x2d5)](){const _0x21dcff=_0x2766d8;this[_0x21dcff(0x271)](this[_0x21dcff(0x54f)]['onCommandExecuted']((_0x4c6066,_0x17af96)=>{const _0x60b1be=_0x21dcff;if(_0x4c6066['id']===_0x565640[_0x60b1be(0x229)]['id']){let {unitId:_0x4560da,subUnitId:_0x5767c3,shapeId:_0x2c461c}=_0x4c6066['params'],_0x4251a2=this[_0x60b1be(0x4a9)](_0x4560da),_0xdfa3d1=(0x0,_0x2ed59f[_0x60b1be(0x2f2)])({'unitId':_0x4560da,'subUnitId':_0x5767c3,'drawingId':_0x2c461c}),_0x85a2e6=_0x4251a2==null?void 0x0:_0x4251a2[_0x60b1be(0x394)]['getObjectIncludeInGroup'](_0xdfa3d1);_0x85a2e6&&(this[_0x60b1be(0x316)][_0x60b1be(0x4b8)](_0x85a2e6),this[_0x60b1be(0x316)][_0x60b1be(0x25d)](_0x85a2e6,{'unitId':_0x4560da,'subUnitId':_0x5767c3,'shapeId':_0x2c461c}),_0x85a2e6['makeDirty'](!0x0));}else{if(_0x4c6066['id']===_0x565640[_0x60b1be(0x4bf)]['id']){var _0x4c41ec;let {unitId:_0x55e53b,subUnitId:_0x172d19,shapeId:_0xd28de1}=_0x4c6066[_0x60b1be(0x1db)],_0x3ce149=this[_0x60b1be(0x4a9)](_0x55e53b);if(_0x3ce149==null)return;let {scene:_0x205028}=_0x3ce149,_0x1bccde=(0x0,_0x2ed59f[_0x60b1be(0x2f2)])({'unitId':_0x55e53b,'subUnitId':_0x172d19,'drawingId':_0xd28de1}),_0x49453c=_0x205028[_0x60b1be(0x1e9)](_0x1bccde);if(!((_0x4c41ec=this[_0x60b1be(0x4bb)]['getRenderUnitById'](_0x55e53b))!=null&&_0x4c41ec['with'](_0x590c15['SheetSkeletonManagerService'])[_0x60b1be(0x4d9)](_0x172d19)))return!0x1;if(_0x49453c)return;if(_0x17af96!=null&&_0x17af96[_0x60b1be(0x558)]){queueMicrotask(()=>{const _0x352a75=_0x60b1be;this[_0x352a75(0x31b)]||this[_0x352a75(0x2d3)]([{'unitId':_0x55e53b,'subUnitId':_0x172d19,'drawingId':_0xd28de1}]);});return;}this['_insertShapes']([{'unitId':_0x55e53b,'subUnitId':_0x172d19,'drawingId':_0xd28de1}]);}}}));}[_0x2766d8(0x35d)](){const _0xfeb7af=_0x2766d8;this[_0xfeb7af(0x271)](this[_0xfeb7af(0x482)][_0xfeb7af(0x59c)][_0xfeb7af(0x56a)](_0x245fb6=>{_0x245fb6['forEach'](_0x524a7a=>{const _0x588d98=_0x231f;let {unitId:_0x17cf4f,subUnitId:_0x58644b,drawingId:_0x43c9b4}=_0x524a7a,_0x5d3392=this[_0x588d98(0x482)][_0x588d98(0x26d)](_0x524a7a);if(_0x5d3392==null)return;let {transform:_0x537354,drawingType:_0x13e776,srcRect:_0x3c95f6,prstGeom:_0x3bdebd}=_0x5d3392;if(_0x13e776!==_0x35d996['DrawingTypeEnum'][_0x588d98(0x4ba)])return;let _0x336a0c=this[_0x588d98(0x4a9)](_0x17cf4f);if(_0x336a0c==null)return;let {scene:_0x5bb104,transformer:_0x39fc5c}=_0x336a0c;if(_0x537354==null)return!0x0;let _0xc4797f=(0x0,_0x2ed59f[_0x588d98(0x2f2)])({'unitId':_0x17cf4f,'subUnitId':_0x58644b,'drawingId':_0x43c9b4}),_0x3e9faa=_0x5bb104[_0x588d98(0x1e9)](_0xc4797f);if(_0x3e9faa==null)return!0x0;_0x3e9faa[_0x588d98(0x209)](_0x3c95f6),_0x3e9faa[_0x588d98(0x596)](_0x3bdebd);});}));}[_0x2766d8(0x2d3)](_0x231052){const _0x305afd=_0x2766d8;for(let _0x15c8a1 of _0x231052){var _0x5ca2f0;let {unitId:_0x28a2f1,subUnitId:_0x5678b7,drawingId:_0x33494e}=_0x15c8a1,_0x165d9a=this[_0x305afd(0x4a9)](_0x28a2f1),_0x240d42=(_0x5ca2f0=(0x0,_0x2c4f7e[_0x305afd(0x479)])(this[_0x305afd(0x33f)],_0x28a2f1))==null?void 0x0:_0x5ca2f0[_0x305afd(0x35e)];if(_0x165d9a==null||_0x240d42!==_0x5678b7)continue;let _0x4a4239=(0x0,_0x2ed59f[_0x305afd(0x2f2)])({'unitId':_0x28a2f1,'subUnitId':_0x5678b7,'drawingId':_0x33494e});if(this[_0x305afd(0x38d)][_0x305afd(0x51e)](_0x4a4239)||_0x165d9a[_0x305afd(0x394)][_0x305afd(0x1e9)](_0x4a4239)!=null)continue;let _0x34c7a2=this[_0x305afd(0x482)][_0x305afd(0x26d)](_0x15c8a1);if(_0x34c7a2==null||_0x34c7a2['drawingType']!==_0x35d996['DrawingTypeEnum'][_0x305afd(0x4ba)])continue;let _0x504cc5=_0x34c7a2[_0x305afd(0x3ee)]||{};if((0x0,_0x1f2a15[_0x305afd(0x493)])(_0x504cc5['shapeType'])){let _0x424ffe=_0x34c7a2['transform'];_0x424ffe&&(_0x34c7a2[_0x305afd(0x339)]={..._0x424ffe,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x305afd(0x38d)]['add'](_0x4a4239);try{this[_0x305afd(0x316)][_0x305afd(0x34a)](_0x34c7a2,_0x165d9a[_0x305afd(0x394)]);}finally{this[_0x305afd(0x38d)][_0x305afd(0x292)](_0x4a4239);}queueMicrotask(()=>{const _0xfca8c0=_0x305afd;if(this[_0xfca8c0(0x31b)])return;let _0x10008e=(0x0,_0x2ed59f[_0xfca8c0(0x2f2)])(_0x15c8a1);if(!_0x165d9a[_0xfca8c0(0x394)]['getObjectIncludeInGroup'](_0x10008e))return;let _0xa1f626=this[_0xfca8c0(0x482)][_0xfca8c0(0x26d)](_0x15c8a1);_0xa1f626&&this[_0xfca8c0(0x482)][_0xfca8c0(0x37b)]([_0xa1f626]);});}}[_0x2766d8(0x4a9)](_0x2ec032){const _0x22df2a=_0x2766d8;if(_0x2ec032==null)return;let _0x4f7d90=this['_renderManagerService'][_0x22df2a(0x4ee)](_0x2ec032),_0xaba43a=_0x4f7d90==null?void 0x0:_0x4f7d90[_0x22df2a(0x394)];return _0xaba43a==null?null:{'scene':_0xaba43a,'transformer':_0xaba43a[_0x22df2a(0x40c)]()};}};_0xc945f6=_0x39c461([_0x400e7c(0x0,_0x35d996[_0x2766d8(0x3c6)]),_0x400e7c(0x1,_0x580d8a['IRenderManagerService']),_0x400e7c(0x2,_0x2ed59f[_0x2766d8(0x554)]),_0x400e7c(0x3,_0x35d996[_0x2766d8(0x403)]),_0x400e7c(0x4,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x2c4f7e['DrawingRenderService'])),_0x400e7c(0x5,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x319285))],_0xc945f6);let _0x14a565={'normal':{'fill':_0x1f2a15[_0x2766d8(0x540)]['cxnPointFill'],'stroke':_0x1f2a15[_0x2766d8(0x540)][_0x2766d8(0x40e)],'strokeWidth':_0x1f2a15[_0x2766d8(0x540)][_0x2766d8(0x4a2)]},'highlighted':{'fill':_0x2766d8(0x532),'stroke':_0x2766d8(0x1f1),'strokeWidth':0x2}};var _0x574a07=class extends _0x580d8a[_0x2766d8(0x5e1)]{constructor(_0x5371e5,_0x171441){const _0x3ab853=_0x2766d8;super(_0x5371e5,_0x171441),_0x2a4a7a(this,_0x3ab853(0x571),''),_0x2a4a7a(this,_0x3ab853(0x33b),-0x1),_0x2a4a7a(this,'_unitId',''),_0x2a4a7a(this,_0x3ab853(0x3f6),''),_0x2a4a7a(this,_0x3ab853(0x597),!0x1),_0x171441&&this[_0x3ab853(0x3ce)](_0x171441);}['getConnectionInfo'](){const _0x4e157a=_0x2766d8;return{'unitId':this[_0x4e157a(0x370)],'subUnitId':this[_0x4e157a(0x3f6)],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0x4e157a(0x33b)]};}[_0x2766d8(0x4cf)](_0x306a54){const _0x341d73=_0x2766d8;this[_0x341d73(0x597)]!==_0x306a54&&(this[_0x341d73(0x597)]=_0x306a54,this[_0x341d73(0x3b2)](!0x0));}[_0x2766d8(0x317)](){const _0x2341af=_0x2766d8;return this[_0x2341af(0x597)];}['setShapeProps'](_0x3c9516){const _0x243dfb=_0x2766d8;_0x3c9516[_0x243dfb(0x5c5)]!==void 0x0&&(this[_0x243dfb(0x571)]=_0x3c9516[_0x243dfb(0x5c5)]),_0x3c9516[_0x243dfb(0x378)]!==void 0x0&&(this[_0x243dfb(0x33b)]=_0x3c9516[_0x243dfb(0x378)]),_0x3c9516['unitId']!==void 0x0&&(this[_0x243dfb(0x370)]=_0x3c9516[_0x243dfb(0x280)]),_0x3c9516['subUnitId']!==void 0x0&&(this[_0x243dfb(0x3f6)]=_0x3c9516[_0x243dfb(0x35e)]),_0x3c9516[_0x243dfb(0x317)]!==void 0x0&&(this[_0x243dfb(0x597)]=_0x3c9516[_0x243dfb(0x317)]),this[_0x243dfb(0x3c4)]({'width':_0x3c9516['width']??_0x1f2a15[_0x243dfb(0x540)][_0x243dfb(0x307)]*0x2,'height':_0x3c9516[_0x243dfb(0x3f8)]??_0x1f2a15[_0x243dfb(0x540)][_0x243dfb(0x307)]*0x2});}[_0x2766d8(0x55f)](_0x12d03f){const _0xaaac6=_0x2766d8;let _0x42c23f=this[_0xaaac6(0x597)]?_0x14a565[_0xaaac6(0x2cf)]:_0x14a565['normal'];_0x580d8a[_0xaaac6(0x473)][_0xaaac6(0x505)](_0x12d03f,{'radius':_0x1f2a15['ShapeDefaultConfig']['cxnPointRadius'],'fill':_0x42c23f['fill'],'stroke':_0x42c23f[_0xaaac6(0x3b4)],'strokeWidth':_0x42c23f['strokeWidth'],'evented':!0x0});}};let _0x517ad0=class extends _0x35d996['Disposable']{constructor(_0x27ad61,_0x15d86b,_0x19831d,_0x97b685){const _0xe4a9b0=_0x2766d8;super(),this[_0xe4a9b0(0x587)]=_0x27ad61,this[_0xe4a9b0(0x4bb)]=_0x15d86b,this[_0xe4a9b0(0x482)]=_0x19831d,this[_0xe4a9b0(0x218)]=_0x97b685,_0x2a4a7a(this,'_connectionSiteObjects',[]),_0x2a4a7a(this,_0xe4a9b0(0x512),null),_0x2a4a7a(this,'_highlightedSiteIndex',-0x1),_0x2a4a7a(this,_0xe4a9b0(0x33d),null),_0x2a4a7a(this,'_unitId',''),_0x2a4a7a(this,_0xe4a9b0(0x3f6),''),_0x2a4a7a(this,_0xe4a9b0(0x40b),null);}[_0x2766d8(0x410)](_0x6d6cb8,_0x1c021d,_0x2bfc6a,_0x216a36){const _0x3d2759=_0x2766d8;this[_0x3d2759(0x33d)]=_0x6d6cb8,this[_0x3d2759(0x370)]=_0x1c021d,this[_0x3d2759(0x3f6)]=_0x2bfc6a,this[_0x3d2759(0x40b)]=_0x216a36;}[_0x2766d8(0x398)](_0x42e801){const _0x20413e=_0x2766d8;if(!this[_0x20413e(0x33d)])return null;let _0x3af5aa=this[_0x20413e(0x559)](_0x42e801);return _0x3af5aa?(this[_0x20413e(0x512)]!==_0x3af5aa[_0x20413e(0x2a8)]&&(this[_0x20413e(0x437)](),this['_showConnectionSites'](_0x3af5aa[_0x20413e(0x2a8)],_0x3af5aa[_0x20413e(0x513)]),this[_0x20413e(0x512)]=_0x3af5aa['shapeId']),this[_0x20413e(0x5b9)](_0x42e801)):(this[_0x20413e(0x512)]!==null&&(this['_clearConnectionSites'](),this[_0x20413e(0x512)]=null),null);}[_0x2766d8(0x3ab)](){const _0x26332f=_0x2766d8;this['_clearConnectionSites'](),this[_0x26332f(0x33d)]=null,this[_0x26332f(0x512)]=null,this[_0x26332f(0x520)]=-0x1,this['_draggingConnectorId']=null;}[_0x2766d8(0x411)](){const _0x4bfaf2=_0x2766d8;return this[_0x4bfaf2(0x512)]===null||this['_highlightedSiteIndex']<0x0?null:{'shapeId':this[_0x4bfaf2(0x512)],'cxnIndex':this[_0x4bfaf2(0x520)]};}[_0x2766d8(0x559)](_0x1a62ce){const _0x95bb87=_0x2766d8;let _0x2ee3f1=this[_0x95bb87(0x482)]['getDrawingData'](this[_0x95bb87(0x370)],this['_subUnitId']);for(let _0x4f7828 of Object[_0x95bb87(0x38e)](_0x2ee3f1)){if(_0x4f7828===this[_0x95bb87(0x40b)]||_0x2ee3f1[_0x4f7828][_0x95bb87(0x313)]!==_0x35d996[_0x95bb87(0x44f)][_0x95bb87(0x4ba)])continue;let _0x44fad8=this[_0x95bb87(0x218)]['getShapeModel'](this[_0x95bb87(0x370)],this['_subUnitId'],_0x4f7828);if(!_0x44fad8||(0x0,_0x1f2a15[_0x95bb87(0x493)])(_0x44fad8['getShapeType']())||_0x44fad8['getConnectionSiteList']()[_0x95bb87(0x2f1)]===0x0||!this[_0x95bb87(0x33d)])continue;let _0x5e199a=(0x0,_0x2ed59f[_0x95bb87(0x2f2)])({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0x4f7828}),_0x1a7d16=this[_0x95bb87(0x33d)][_0x95bb87(0x1e9)](_0x5e199a);if(!_0x1a7d16)continue;let {left:_0x338fef,top:_0x37fe18,width:_0x217e57,height:_0x11afac}=_0x1a7d16[_0x95bb87(0x2ea)](),_0x31edc3=_0x338fef+_0x217e57/0x2,_0x251cc3=_0x37fe18+_0x11afac/0x2,_0xe3966e=_0x1a7d16['transform'][_0x95bb87(0x2ce)](),_0x34011c=new _0x580d8a[(_0x95bb87(0x1e4))]([_0xe3966e[0x0],_0xe3966e[0x1],_0xe3966e[0x2],_0xe3966e[0x3],_0x31edc3,_0x251cc3]),_0x12f8c0=_0x1a7d16['getParent'](),_0x230daa=(_0x1a7d16[_0x95bb87(0x5aa)]&&(_0x12f8c0==null?void 0x0:_0x12f8c0['classType'])===_0x580d8a[_0x95bb87(0x5db)][_0x95bb87(0x552)]?_0x12f8c0['ancestorTransform'][_0x95bb87(0x497)](_0x34011c):_0x34011c)['invert']()[_0x95bb87(0x3f0)](_0x1a62ce),_0x15a347=_0x217e57/0x2,_0x1d5afe=_0x11afac/0x2;if(_0x230daa['x']>=-_0x15a347-0x5&&_0x230daa['x']<=_0x15a347+0x5&&_0x230daa['y']>=-_0x1d5afe-0x5&&_0x230daa['y']<=_0x1d5afe+0x5)return{'shapeId':_0x4f7828,'shapeModel':_0x44fad8};}return null;}[_0x2766d8(0x5a5)](_0x300432,_0x33e5af){const _0x366d88=_0x2766d8;if(!this['_currentScene'])return;let _0x4ca9ad=(0x0,_0x2ed59f[_0x366d88(0x2f2)])({'unitId':this[_0x366d88(0x370)],'subUnitId':this[_0x366d88(0x3f6)],'drawingId':_0x300432}),_0x20101b=this[_0x366d88(0x33d)]['getObjectIncludeInGroup'](_0x4ca9ad);if(!_0x20101b)return;let {left:_0x2f3377,top:_0x2dba5a,width:_0x3fcb6b,height:_0xe2eb3d}=_0x20101b['getRealBound'](),_0x35a944=_0x2f3377+_0x3fcb6b/0x2,_0x1e8409=_0x2dba5a+_0xe2eb3d/0x2,_0x3856e9=_0x20101b[_0x366d88(0x339)][_0x366d88(0x2ce)](),_0x266cce=new _0x580d8a[(_0x366d88(0x1e4))]([_0x3856e9[0x0],_0x3856e9[0x1],_0x3856e9[0x2],_0x3856e9[0x3],_0x35a944,_0x1e8409]),_0x4c87f6=_0x20101b[_0x366d88(0x358)](),_0x3b51c4=_0x20101b[_0x366d88(0x5aa)]&&(_0x4c87f6==null?void 0x0:_0x4c87f6[_0x366d88(0x3d2)])===_0x580d8a[_0x366d88(0x5db)][_0x366d88(0x552)]?_0x4c87f6[_0x366d88(0x415)][_0x366d88(0x497)](_0x266cce):_0x266cce;_0x33e5af[_0x366d88(0x240)]({'width':_0x3fcb6b,'height':_0xe2eb3d});let _0x18b156=_0x33e5af[_0x366d88(0x31f)]();for(let _0x167cdb of _0x18b156){let _0x293798=_0x167cdb['x']-_0x3fcb6b/0x2,_0x25395b=_0x167cdb['y']-_0xe2eb3d/0x2,_0x5c437b=_0x3b51c4[_0x366d88(0x3f0)]({'x':_0x293798,'y':_0x25395b}),_0x134de7=_0x5c437b['x'],_0x220d1a=_0x5c437b['y'],_0xca3b53=new _0x574a07(_0x366d88(0x29c)+_0x300432+'-'+_0x167cdb[_0x366d88(0x213)],{'left':_0x134de7-_0x1f2a15[_0x366d88(0x540)][_0x366d88(0x307)],'top':_0x220d1a-_0x1f2a15[_0x366d88(0x540)][_0x366d88(0x307)],'targetShapeId':_0x300432,'cxnIndex':_0x167cdb[_0x366d88(0x213)],'unitId':this['_unitId'],'subUnitId':this[_0x366d88(0x3f6)],'width':_0x1f2a15[_0x366d88(0x540)][_0x366d88(0x307)]*0x2,'height':_0x1f2a15[_0x366d88(0x540)][_0x366d88(0x307)]*0x2,'zIndex':_0x580d8a['DRAWING_OBJECT_LAYER_INDEX']+0x2,'evented':!0x1});this[_0x366d88(0x322)]['push'](_0xca3b53),this[_0x366d88(0x33d)][_0x366d88(0x476)](_0xca3b53,_0x580d8a['DRAWING_OBJECT_LAYER_INDEX']+0x2);}}[_0x2766d8(0x5b9)](_0x2c2de3){const _0x5aa110=_0x2766d8;let _0x55a875=null,_0x20b689=0x1/0x0,_0x3093d6=null;for(let _0x145adb of this[_0x5aa110(0x322)]){let _0x53307e=_0x145adb[_0x5aa110(0x204)]+_0x1f2a15[_0x5aa110(0x540)]['cxnPointRadius'],_0x3a73e4=_0x145adb['top']+_0x1f2a15[_0x5aa110(0x540)][_0x5aa110(0x307)],_0x2aae60=_0x2c2de3['x']-_0x53307e,_0x263ae9=_0x2c2de3['y']-_0x3a73e4,_0x3f4966=Math[_0x5aa110(0x3c8)](_0x2aae60*_0x2aae60+_0x263ae9*_0x263ae9);_0x3f4966<_0x20b689&&(_0x20b689=_0x3f4966,_0x55a875=_0x145adb,_0x3093d6={'x':_0x53307e,'y':_0x3a73e4});}let _0x57a658=_0x20b689<=0xa&&_0x55a875?_0x55a875[_0x5aa110(0x5d7)]()[_0x5aa110(0x378)]:-0x1;if(_0x57a658!==this[_0x5aa110(0x520)]){for(let _0x5bd86b of this['_connectionSiteObjects']){let _0x20c388=_0x5bd86b[_0x5aa110(0x5d7)]();_0x5bd86b[_0x5aa110(0x4cf)](_0x20c388['cxnIndex']===_0x57a658);}this['_highlightedSiteIndex']=_0x57a658;}if(_0x20b689<=0xa&&_0x55a875&&_0x3093d6){let _0x234ea4=_0x55a875['getConnectionInfo'](),_0x45f9d7=this[_0x5aa110(0x57b)](_0x234ea4[_0x5aa110(0x2a8)],_0x234ea4[_0x5aa110(0x378)]);return{'shapeId':_0x234ea4[_0x5aa110(0x2a8)],'cxnIndex':_0x234ea4[_0x5aa110(0x378)],'unitId':_0x234ea4[_0x5aa110(0x280)],'subUnitId':_0x234ea4[_0x5aa110(0x35e)],'worldPoint':_0x3093d6,'angle':_0x45f9d7};}return null;}[_0x2766d8(0x57b)](_0x595a16,_0x431676){const _0x309fa3=_0x2766d8;let _0x4f9d6c=this['_sheetsShapeService'][_0x309fa3(0x338)](this[_0x309fa3(0x370)],this[_0x309fa3(0x3f6)],_0x595a16);if(!_0x4f9d6c)return 0x0;let _0x2856b2=this[_0x309fa3(0x482)]['getDrawingByParam']({'unitId':this[_0x309fa3(0x370)],'subUnitId':this[_0x309fa3(0x3f6)],'drawingId':_0x595a16});if(!(_0x2856b2!=null&&_0x2856b2[_0x309fa3(0x339)]))return 0x0;let {width:_0x4e0df9=0x0,height:_0x79f5f1=0x0,flipX:_0x1c5404=!0x1,flipY:_0x44955b=!0x1}=_0x2856b2[_0x309fa3(0x339)];_0x4f9d6c[_0x309fa3(0x240)]({'width':_0x4e0df9,'height':_0x79f5f1});let _0x271136=_0x4f9d6c[_0x309fa3(0x31f)]()['find'](_0x893183=>_0x893183[_0x309fa3(0x213)]===_0x431676);if(!_0x271136)return 0x0;let _0x578293=_0x271136[_0x309fa3(0x21b)]/0xea60;return _0x1c5404&&(_0x578293=0xb4-_0x578293),_0x44955b&&(_0x578293=-_0x578293),_0x578293=(_0x578293%0x168+0x168)%0x168,_0x578293;}[_0x2766d8(0x437)](){const _0x337309=_0x2766d8;for(let _0x347d95 of this[_0x337309(0x322)])_0x347d95[_0x337309(0x2a4)]();this[_0x337309(0x322)]=[],this[_0x337309(0x520)]=-0x1;}['dispose'](){this['_clearConnectionSites'](),super['dispose']();}};_0x517ad0=_0x39c461([_0x400e7c(0x1,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x580d8a[_0x2766d8(0x266)])),_0x400e7c(0x2,(0x0,_0x35d996['Inject'])(_0x2ed59f[_0x2766d8(0x554)])),_0x400e7c(0x3,(0x0,_0x35d996['Inject'])(_0x565640[_0x2766d8(0x248)]))],_0x517ad0);let _0x3d86f3=class extends _0x35d996[_0x2766d8(0x491)]{constructor(_0x27f559,_0x29dd4b,_0x233064,_0x3daffa,_0x574497,_0x3bc415,_0x1ddcb3,_0x4d807f){const _0x137ded=_0x2766d8;super(),this[_0x137ded(0x407)]=_0x27f559,this['_sheetClipboardService']=_0x29dd4b,this[_0x137ded(0x47d)]=_0x233064,this[_0x137ded(0x553)]=_0x3daffa,this[_0x137ded(0x22a)]=_0x574497,this[_0x137ded(0x4f6)]=_0x3bc415,this[_0x137ded(0x511)]=_0x1ddcb3,this['_permissions']=_0x4d807f,_0x2a4a7a(this,'_copyInfo',void 0x0),this[_0x137ded(0x4c8)](),this[_0x137ded(0x468)]();}get['_focusedDrawings'](){const _0x2748fb=_0x2766d8;return this[_0x2748fb(0x47d)]['getFocusDrawings']();}[_0x2766d8(0x468)](){const _0x3bd596=_0x2766d8;this[_0x3bd596(0x22a)][_0x3bd596(0x1fb)](({fromUnitId:_0x4e1a0e,fromSubUnitId:_0x553439,toUnitId:_0xe6d2a4,toSubUnitId:_0xdec85a,idMap:_0x5be824})=>{const _0x566f36=_0x3bd596;let _0x365a93=[],_0x5346eb=[];for(let [_0x39d3a7,_0x31441f]of _0x5be824[_0x566f36(0x23f)]()){let _0x280f91=this['_shapeService']['getShapeModel'](_0x4e1a0e,_0x553439,_0x39d3a7);if(!_0x280f91)continue;let _0x36698b=_0x280f91[_0x566f36(0x200)](),_0x269261=JSON[_0x566f36(0x541)](JSON[_0x566f36(0x54b)](_0x280f91[_0x566f36(0x583)]()));if(_0x269261[_0x566f36(0x46d)]){var _0x13b2a9,_0x96a7bd;let _0x3a36fc=(_0x13b2a9=_0x269261[_0x566f36(0x46d)]['from'])==null?void 0x0:_0x13b2a9[_0x566f36(0x2a8)],_0x38bc0b=(_0x96a7bd=_0x269261[_0x566f36(0x46d)]['to'])==null?void 0x0:_0x96a7bd[_0x566f36(0x2a8)],_0x2ff8ae=!_0x3a36fc||_0x5be824[_0x566f36(0x51e)](_0x3a36fc),_0x1a2960=!_0x38bc0b||_0x5be824[_0x566f36(0x51e)](_0x38bc0b);_0x2ff8ae&&_0x3a36fc&&_0x269261[_0x566f36(0x46d)][_0x566f36(0x5d4)]?_0x269261['relation'][_0x566f36(0x5d4)]={..._0x269261[_0x566f36(0x46d)][_0x566f36(0x5d4)],'shapeId':_0x5be824['get'](_0x3a36fc)}:_0x269261['relation']['from']=void 0x0,_0x1a2960&&_0x38bc0b&&_0x269261['relation']['to']?_0x269261[_0x566f36(0x46d)]['to']={..._0x269261[_0x566f36(0x46d)]['to'],'shapeId':_0x5be824[_0x566f36(0x340)](_0x38bc0b)}:_0x269261[_0x566f36(0x46d)]['to']=void 0x0;}_0x365a93[_0x566f36(0x373)]({'id':_0x565640[_0x566f36(0x4bf)]['id'],'params':{'unitId':_0xe6d2a4,'subUnitId':_0xdec85a,'shapeId':_0x31441f,'shapeType':_0x36698b,'shapeData':_0x269261}}),_0x5346eb[_0x566f36(0x373)]({'id':_0x565640[_0x566f36(0x3a9)]['id'],'params':{'unitId':_0xe6d2a4,'subUnitId':_0xdec85a,'shapeId':_0x31441f}});}return{'redos':_0x365a93,'undos':_0x5346eb};});}[_0x2766d8(0x4c8)](){const _0x3e6887=_0x2766d8;this[_0x3e6887(0x271)](this[_0x3e6887(0x467)][_0x3e6887(0x3a6)]({'id':_0x3e6887(0x333),'onBeforeCopyFocusedObject':(_0x5c5b6f,_0x549988,_0x2a7e15)=>{const _0x51f1ac=_0x3e6887;this[_0x51f1ac(0x3fb)]=null;let _0x16ef4a=this['_focusedDrawings'][_0x51f1ac(0x35b)](_0x3b54a=>_0x3b54a[_0x51f1ac(0x313)]===_0x35d996[_0x51f1ac(0x44f)][_0x51f1ac(0x4ba)]);return _0x16ef4a[_0x51f1ac(0x2f1)]!==0x0&&(this['_copyInfo']={'unitId':_0x5c5b6f,'subUnitId':_0x549988,'copyType':_0x2a7e15,'drawings':_0x16ef4a},!0x0);},'onBeforeCopy':(_0x250cd0,_0x118e37,_0x5c0cb4,_0x211cdd)=>{const _0x2de878=_0x3e6887;this[_0x2de878(0x3fb)]=null,this[_0x2de878(0x2dd)](_0x250cd0,_0x118e37,_0x5c0cb4,_0x211cdd);},'onPasteCells':(_0x57ef17,_0x1fcfc6,_0x409447,_0x17e705)=>{const _0x5de46a=_0x3e6887;if(!_0x17e705[_0x5de46a(0x291)]||!_0x57ef17||!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x271b39}=_0x17e705;return _0x271b39===_0x590c15[_0x5de46a(0x466)]['DEFAULT_PASTE']?this[_0x5de46a(0x463)](_0x1fcfc6,this['_copyInfo'][_0x5de46a(0x247)]===_0x590c15[_0x5de46a(0x576)]['CUT']):{'redos':[],'undos':[]};}}));}[_0x2766d8(0x2dd)](_0x427690,_0x1eabcc,_0x6fbea0,_0x7e39ec){const _0x252e2d=_0x2766d8;let _0x5eeabc=this['_sheetSkeletonService']['getSkeleton'](_0x427690,_0x1eabcc);if(!_0x5eeabc)return;let _0x3d0cbb=(0x0,_0x2a684c[_0x252e2d(0x5af)])(_0x5eeabc,_0x6fbea0);if(!_0x3d0cbb)return;let {startX:_0x36abf5,endX:_0x4f0f27,startY:_0x2e38a9,endY:_0x44498c}=_0x3d0cbb,_0x57bde7=this[_0x252e2d(0x47d)][_0x252e2d(0x2aa)](_0x427690,_0x1eabcc),_0x4bf017=[];for(let [_0x5d8bb3,_0x1a85b8]of Object[_0x252e2d(0x23f)](_0x57bde7)){if(_0x1a85b8[_0x252e2d(0x313)]!==_0x35d996[_0x252e2d(0x44f)]['DRAWING_SHAPE'])continue;let {transform:_0x47f882}=_0x1a85b8;if(!_0x47f882)continue;let {left:_0x35453d=0x0,top:_0x432510=0x0,width:_0x504d87=0x0,height:_0xef303e=0x0}=_0x47f882;_0x36abf5<=_0x35453d&&_0x4f0f27>=_0x35453d+_0x504d87&&_0x2e38a9<=_0x432510&&_0x44498c>=_0x432510+_0xef303e&&_0x4bf017[_0x252e2d(0x373)](_0x1a85b8);}_0x4bf017['length']>0x0&&(this[_0x252e2d(0x3fb)]={'unitId':_0x427690,'subUnitId':_0x1eabcc,'copyType':_0x7e39ec,'copyRange':_0x6fbea0,'drawings':_0x4bf017});}['_generatePasteMutations'](_0x2841d9,_0x54a6c7){const _0x395cb3=_0x2766d8;var _0x4a7c06,_0x22dd16;let {unitId:_0x406dd3,subUnitId:_0x2c5d06,range:_0x413a62}=_0x2841d9,_0x51c61e=this['_copyInfo'],_0x1750f8=(_0x4a7c06=this[_0x395cb3(0x4f6)]['getUnit'](_0x51c61e[_0x395cb3(0x280)],_0x35d996[_0x395cb3(0x31d)][_0x395cb3(0x3de)]))==null?void 0x0:_0x4a7c06[_0x395cb3(0x456)](_0x51c61e['subUnitId']),_0x56e86c=(_0x22dd16=this[_0x395cb3(0x4f6)][_0x395cb3(0x438)](_0x406dd3,_0x35d996[_0x395cb3(0x31d)][_0x395cb3(0x3de)]))==null?void 0x0:_0x22dd16['getSheetBySheetId'](_0x2c5d06),_0x3ec92d=(_0x1750f8==null?void 0x0:_0x1750f8[_0x395cb3(0x5cf)]()[_0x395cb3(0x1f3)])??_0x35d996[_0x395cb3(0x45d)]['GRID'],_0x26dca7=(_0x56e86c==null?void 0x0:_0x56e86c[_0x395cb3(0x5cf)]()[_0x395cb3(0x1f3)])??_0x35d996['SheetTypes'][_0x395cb3(0x45a)];if(_0x3ec92d===_0x35d996[_0x395cb3(0x45d)][_0x395cb3(0x367)]||_0x26dca7===_0x35d996[_0x395cb3(0x45d)][_0x395cb3(0x367)])return this[_0x395cb3(0x445)](_0x2841d9,_0x54a6c7);let _0x1bff98=this[_0x395cb3(0x407)][_0x395cb3(0x4d9)](_0x406dd3,_0x2c5d06);if(!_0x1bff98)return{'redos':[],'undos':[]};let _0x516afd=(0x0,_0x2a684c[_0x395cb3(0x36c)])(_0x413a62),{unitId:_0x1b8f3c,subUnitId:_0x3701ae,copyRange:_0x13de35,drawings:_0x5e9a39}=this[_0x395cb3(0x3fb)],_0x43623f=this[_0x395cb3(0x407)]['getSkeleton'](_0x1b8f3c,_0x3701ae);if(!_0x43623f)return{'redos':[],'undos':[]};let _0x541eff;if(!_0x13de35){let _0x354387=0x1/0x0,_0x311074=0x1/0x0;for(let _0x452336 of _0x5e9a39){let {left:_0x2480bf=0x0,top:_0x5460c5=0x0}=_0x452336[_0x395cb3(0x339)]??{};_0x2480bf<_0x354387&&(_0x354387=_0x2480bf),_0x5460c5<_0x311074&&(_0x311074=_0x5460c5);}_0x354387!==0x1/0x0&&_0x311074!==0x1/0x0&&(_0x541eff={'left':_0x354387,'top':_0x311074});}let _0x553e16=new Map();if(!_0x54a6c7){for(let _0x2a81dc of _0x5e9a39)_0x553e16[_0x395cb3(0x39d)](_0x2a81dc[_0x395cb3(0x314)],(0x0,_0x35d996[_0x395cb3(0x2f3)])());}let _0x477d51=[],_0x352836=[];for(let _0x90091d of _0x5e9a39){let {drawingId:_0x358121,transform:_0x10dc38,sheetTransform:_0x1ce40b}=_0x90091d;if(!_0x10dc38||!_0x1ce40b)continue;let _0x1e4965=this[_0x395cb3(0x459)]({'transform':_0x10dc38,'sheetTransform':_0x1ce40b},{'skeleton':_0x43623f,'range':_0x13de35},{'skeleton':_0x1bff98,'range':_0x516afd},_0x541eff);if(_0x54a6c7){let {redos:_0x38c082,undos:_0x467b77}=this[_0x395cb3(0x220)]({'fromUnitId':_0x1b8f3c,'fromSubUnitId':_0x3701ae,'toUnitId':_0x406dd3,'toSubUnitId':_0x2c5d06,'drawing':_0x90091d,'newTransforms':_0x1e4965});_0x477d51[_0x395cb3(0x373)](..._0x38c082),_0x352836[_0x395cb3(0x373)](..._0x467b77);continue;}let {redos:_0x481849,undos:_0x49f2c2}=this[_0x395cb3(0x1e8)]({'toUnitId':_0x406dd3,'toSubUnitId':_0x2c5d06,'drawing':_0x90091d,'newTransforms':_0x1e4965,'newDrawingId':_0x553e16['get'](_0x358121),'idMap':_0x553e16});_0x477d51[_0x395cb3(0x373)](..._0x481849),_0x352836['push'](..._0x49f2c2);}return{'redos':_0x477d51,'undos':_0x352836};}['_generateChartSheetCopy'](_0x1802a1,_0x328fab){const _0x32f2ed=_0x2766d8;var _0xc46f0b;if(_0x328fab)throw new _0x35d996['CustomCommandExecutionError'](_0x590c15['SheetPasteCommand']['id']);let {unitId:_0x2a774a,subUnitId:_0x50a932}=_0x1802a1;if(!this[_0x32f2ed(0x40f)][_0x32f2ed(0x5b6)]({'workbookTypes':[_0x2a684c['WorkbookEditablePermission']],'worksheetTypes':[_0x2a684c[_0x32f2ed(0x59b)]]},_0x2a774a,_0x50a932))throw new _0x35d996['CustomCommandExecutionError'](_0x590c15[_0x32f2ed(0x349)]['id']);let _0x20859=(_0xc46f0b=this[_0x32f2ed(0x4f6)][_0x32f2ed(0x438)](_0x2a774a,_0x35d996[_0x32f2ed(0x31d)][_0x32f2ed(0x3de)]))==null?void 0x0:_0xc46f0b[_0x32f2ed(0x456)](_0x50a932),_0x4555bb=_0x20859==null?void 0x0:_0x20859[_0x32f2ed(0x5cf)](),_0xc63d5b=(_0x4555bb==null?void 0x0:_0x4555bb['type'])??_0x35d996['SheetTypes'][_0x32f2ed(0x45a)],_0x51beba=this[_0x32f2ed(0x3fb)],_0x37ecc4=_0x51beba[_0x32f2ed(0x302)];if(!this[_0x32f2ed(0x40f)]['permissionCheckWithoutRange']({'workbookTypes':[_0x2a684c[_0x32f2ed(0x3e5)]],'worksheetTypes':[_0x2a684c['WorksheetCopyPermission']]},_0x51beba[_0x32f2ed(0x280)],_0x51beba[_0x32f2ed(0x35e)])||_0x37ecc4[_0x32f2ed(0x5c8)](_0xba6341=>_0xba6341[_0x32f2ed(0x385)]||!this[_0x32f2ed(0x553)][_0x32f2ed(0x338)](_0x51beba['unitId'],_0x51beba[_0x32f2ed(0x35e)],_0xba6341[_0x32f2ed(0x314)])||!_0x35d996[_0x32f2ed(0x29b)]['diffValue'](_0xba6341,this['_sheetDrawingService'][_0x32f2ed(0x26d)](_0xba6341))))throw new _0x35d996[(_0x32f2ed(0x2cc))](_0x590c15[_0x32f2ed(0x349)]['id']);let _0x2e5722=null;if(_0xc63d5b===_0x35d996[_0x32f2ed(0x45d)][_0x32f2ed(0x367)]){var _0x5478ee;let _0x792e62=(_0x5478ee=this[_0x32f2ed(0x511)][_0x32f2ed(0x4ee)](_0x2a774a))==null?void 0x0:_0x5478ee[_0x32f2ed(0x48a)][_0x32f2ed(0x340)](_0x590c15['SHEET_VIEW_KEY'][_0x32f2ed(0x4a7)]);_0x792e62&&(_0x2e5722=(0x0,_0x47830d[_0x32f2ed(0x348)])(_0x37ecc4,{'left':_0x792e62['left'],'top':_0x792e62[_0x32f2ed(0x414)],'width':_0x792e62[_0x32f2ed(0x49e)],'height':_0x792e62[_0x32f2ed(0x3f8)]},(_0x4555bb==null?void 0x0:_0x4555bb[_0x32f2ed(0x4f5)])===_0x35d996['BooleanNumber'][_0x32f2ed(0x1eb)]));}else{let _0x343f08=this[_0x32f2ed(0x407)]['getSkeleton'](_0x2a774a,_0x50a932),_0x1c26f5=_0x343f08&&(0x0,_0x2a684c[_0x32f2ed(0x5af)])(_0x343f08,(0x0,_0x2a684c[_0x32f2ed(0x36c)])(_0x1802a1[_0x32f2ed(0x2f7)]));if(_0x1c26f5&&_0x37ecc4[_0x32f2ed(0x2f1)]){let _0x31ad95=Math[_0x32f2ed(0x295)](..._0x37ecc4[_0x32f2ed(0x4d8)](_0x192b7d=>_0x192b7d[_0x32f2ed(0x339)]['left'])),_0x22afc8=Math[_0x32f2ed(0x295)](..._0x37ecc4[_0x32f2ed(0x4d8)](_0x4fea8e=>_0x4fea8e[_0x32f2ed(0x339)][_0x32f2ed(0x414)]));_0x2e5722=_0x37ecc4[_0x32f2ed(0x4d8)](_0x17622f=>(0x0,_0x47830d[_0x32f2ed(0x480)])(_0x17622f,{'kind':_0x47830d[_0x32f2ed(0x4d6)][_0x32f2ed(0x1e0)],'bounds':{'left':_0x1c26f5[_0x32f2ed(0x2bc)]+_0x17622f[_0x32f2ed(0x339)][_0x32f2ed(0x204)]-_0x31ad95,'top':_0x1c26f5['startY']+_0x17622f[_0x32f2ed(0x339)][_0x32f2ed(0x414)]-_0x22afc8,'width':_0x17622f['transform']['width'],'height':_0x17622f[_0x32f2ed(0x339)]['height']}},_0x343f08));}}if(!_0x2e5722)throw new _0x35d996['CustomCommandExecutionError'](_0x590c15[_0x32f2ed(0x349)]['id']);let _0x20d35c=new Map(_0x37ecc4[_0x32f2ed(0x4d8)](_0x45b178=>[_0x45b178[_0x32f2ed(0x314)],(0x0,_0x35d996['generateRandomId'])()])),_0x12b209=[],_0x20a5d2=[];for(let [_0x1fbb33,_0x4a804c]of _0x37ecc4[_0x32f2ed(0x23f)]()){let _0xa315cd=_0x2e5722[_0x1fbb33],_0x40b871=this[_0x32f2ed(0x1e8)]({'toUnitId':_0x2a774a,'toSubUnitId':_0x50a932,'drawing':_0x4a804c,'idMap':_0x20d35c,'newDrawingId':_0x20d35c['get'](_0x4a804c['drawingId']),'newTransforms':{'transform':_0xa315cd['transform'],'sheetTransform':_0xa315cd[_0x32f2ed(0x45f)],'axisAlignSheetTransform':_0xa315cd[_0x32f2ed(0x4d5)],'anchorType':_0xa315cd['anchorType']}});_0x12b209[_0x32f2ed(0x373)](..._0x40b871['redos']),_0x20a5d2['unshift'](..._0x40b871['undos']);}return{'redos':_0x12b209,'undos':_0x20a5d2};}[_0x2766d8(0x220)](_0xdbcec7){const _0x55764a=_0x2766d8;let {fromUnitId:_0x368933,fromSubUnitId:_0x1390e4,toUnitId:_0x4738d7,toSubUnitId:_0x173c39,drawing:_0x327942,newTransforms:_0x125df3}=_0xdbcec7,_0x1fedeb={..._0x327942,'unitId':_0x4738d7,'subUnitId':_0x173c39,..._0x125df3};if(_0x4738d7===_0x368933&&_0x173c39===_0x1390e4){let {redo:_0x56d900,undo:_0x2f5741,objects:_0x431b34}=this['_sheetDrawingService'][_0x55764a(0x41b)]([_0x1fedeb]);return{'redos':[{'id':_0x47830d[_0x55764a(0x2e7)]['id'],'params':{'unitId':_0x4738d7,'subUnitId':_0x173c39,'type':_0x47830d[_0x55764a(0x43b)][_0x55764a(0x2f4)],'op':_0x56d900,'objects':_0x431b34}}],'undos':[{'id':_0x47830d[_0x55764a(0x2e7)]['id'],'params':{'unitId':_0x4738d7,'subUnitId':_0x173c39,'type':_0x47830d[_0x55764a(0x43b)][_0x55764a(0x2f4)],'op':_0x2f5741,'objects':_0x431b34}}]};}{let _0x340b2d=this[_0x55764a(0x47d)][_0x55764a(0x401)]([_0x327942]),_0x589ede=this[_0x55764a(0x47d)][_0x55764a(0x483)]([_0x1fedeb]),_0x191941=this['_shapeService'][_0x55764a(0x338)](_0x327942[_0x55764a(0x280)],_0x327942['subUnitId'],_0x327942[_0x55764a(0x314)]);if(!_0x191941)return{'redos':[],'undos':[]};let _0x29c17b=_0x191941[_0x55764a(0x200)](),_0x4ce18f=JSON['parse'](JSON[_0x55764a(0x54b)](_0x191941[_0x55764a(0x583)]()));return{'redos':[{'id':_0x47830d[_0x55764a(0x2e7)]['id'],'params':{'unitId':_0x368933,'subUnitId':_0x1390e4,'type':_0x47830d[_0x55764a(0x43b)][_0x55764a(0x281)],'op':_0x340b2d[_0x55764a(0x2b7)],'objects':_0x340b2d[_0x55764a(0x23e)]}},{'id':_0x565640['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x368933,'subUnitId':_0x1390e4,'shapeId':_0x327942['drawingId']}},{'id':_0x47830d['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4738d7,'subUnitId':_0x173c39,'type':_0x47830d[_0x55764a(0x43b)]['INSERT'],'op':_0x589ede[_0x55764a(0x2b7)],'objects':_0x589ede[_0x55764a(0x23e)]}},{'id':_0x565640[_0x55764a(0x4bf)]['id'],'params':{'unitId':_0x4738d7,'subUnitId':_0x173c39,'shapeId':_0x327942[_0x55764a(0x314)],'shapeType':_0x29c17b,'shapeData':_0x4ce18f}}],'undos':[{'id':_0x47830d[_0x55764a(0x2e7)]['id'],'params':{'unitId':_0x368933,'subUnitId':_0x1390e4,'type':_0x47830d[_0x55764a(0x43b)][_0x55764a(0x25c)],'op':_0x340b2d[_0x55764a(0x2c5)],'objects':_0x340b2d[_0x55764a(0x23e)]}},{'id':_0x565640[_0x55764a(0x4bf)]['id'],'params':{'unitId':_0x368933,'subUnitId':_0x1390e4,'shapeId':_0x327942[_0x55764a(0x314)],'shapeType':_0x29c17b,'shapeData':_0x4ce18f}},{'id':_0x47830d[_0x55764a(0x2e7)]['id'],'params':{'unitId':_0x4738d7,'subUnitId':_0x173c39,'type':_0x47830d['DrawingApplyType']['REMOVE'],'op':_0x589ede[_0x55764a(0x2c5)],'objects':_0x589ede['objects']}},{'id':_0x565640['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x4738d7,'subUnitId':_0x173c39,'shapeId':_0x327942['drawingId']}}]};}}[_0x2766d8(0x1e8)](_0x1f417d){const _0x38b8df=_0x2766d8;let {toUnitId:_0x3a27da,toSubUnitId:_0x2c7688,drawing:_0x52b463,newTransforms:_0x241575,newDrawingId:_0x488cc5,idMap:_0x4896de}=_0x1f417d,_0x2b9b28={..._0x52b463,'unitId':_0x3a27da,'subUnitId':_0x2c7688,'drawingId':_0x488cc5,..._0x241575},{redo:_0x2532a1,undo:_0x3fb0b8,objects:_0x45caa7}=this[_0x38b8df(0x47d)][_0x38b8df(0x483)]([_0x2b9b28]),_0x500b54=this[_0x38b8df(0x553)][_0x38b8df(0x338)](_0x52b463[_0x38b8df(0x280)],_0x52b463[_0x38b8df(0x35e)],_0x52b463[_0x38b8df(0x314)]);if(!_0x500b54)return{'redos':[],'undos':[]};let _0x43f49c=_0x500b54['getShapeType'](),_0xc91e1e=JSON['parse'](JSON[_0x38b8df(0x54b)](_0x500b54[_0x38b8df(0x583)]()));if(_0xc91e1e[_0x38b8df(0x46d)]){var _0x13a984,_0x7ad40;let _0xba161a=(_0x13a984=_0xc91e1e['relation'][_0x38b8df(0x5d4)])==null?void 0x0:_0x13a984[_0x38b8df(0x2a8)],_0x40cacc=(_0x7ad40=_0xc91e1e[_0x38b8df(0x46d)]['to'])==null?void 0x0:_0x7ad40['shapeId'],_0x4bb2fe=!_0xba161a||_0x4896de[_0x38b8df(0x51e)](_0xba161a),_0x2a0def=!_0x40cacc||_0x4896de['has'](_0x40cacc);_0x4bb2fe&&_0xba161a&&_0xc91e1e['relation'][_0x38b8df(0x5d4)]?_0xc91e1e['relation'][_0x38b8df(0x5d4)]={..._0xc91e1e[_0x38b8df(0x46d)]['from'],'shapeId':_0x4896de[_0x38b8df(0x340)](_0xba161a)}:_0xc91e1e[_0x38b8df(0x46d)]['from']=void 0x0,_0x2a0def&&_0x40cacc&&_0xc91e1e[_0x38b8df(0x46d)]['to']?_0xc91e1e['relation']['to']={..._0xc91e1e[_0x38b8df(0x46d)]['to'],'shapeId':_0x4896de[_0x38b8df(0x340)](_0x40cacc)}:_0xc91e1e['relation']['to']=void 0x0;}return{'redos':[{'id':_0x47830d[_0x38b8df(0x2e7)]['id'],'params':{'unitId':_0x3a27da,'subUnitId':_0x2c7688,'type':_0x47830d['DrawingApplyType']['INSERT'],'op':_0x2532a1,'objects':_0x45caa7}},{'id':_0x565640[_0x38b8df(0x4bf)]['id'],'params':{'unitId':_0x3a27da,'subUnitId':_0x2c7688,'shapeId':_0x488cc5,'shapeType':_0x43f49c,'shapeData':_0xc91e1e}}],'undos':[{'id':_0x47830d[_0x38b8df(0x2e7)]['id'],'params':{'unitId':_0x3a27da,'subUnitId':_0x2c7688,'type':_0x47830d[_0x38b8df(0x43b)][_0x38b8df(0x281)],'op':_0x3fb0b8,'objects':_0x45caa7}},{'id':_0x565640[_0x38b8df(0x3a9)]['id'],'params':{'unitId':_0x3a27da,'subUnitId':_0x2c7688,'shapeId':_0x488cc5}}]};}[_0x2766d8(0x459)](_0x5ba76f,_0x4eb1ed,_0x4a5716,_0x57c129){const _0x44e2f0=_0x2766d8;let {range:_0x4eb5b7,skeleton:_0x5362ac}=_0x4eb1ed,{range:_0x5ca8be,skeleton:_0x269e05}=_0x4a5716,{transform:_0x4aaece,sheetTransform:_0x93f471}=_0x5ba76f,_0x549e64={..._0x4aaece};if(_0x4eb5b7){let _0x495020=(0x0,_0x2a684c['attachRangeWithCoord'])(_0x5362ac,_0x4eb5b7),_0x201b76=(0x0,_0x2a684c[_0x44e2f0(0x5af)])(_0x269e05,_0x5ca8be);if(_0x495020&&_0x201b76){let _0x2d7136=_0x201b76[_0x44e2f0(0x2bc)]-_0x495020[_0x44e2f0(0x2bc)],_0x2bcf5e=_0x201b76[_0x44e2f0(0x27f)]-_0x495020[_0x44e2f0(0x27f)];_0x549e64[_0x44e2f0(0x204)]=(_0x549e64[_0x44e2f0(0x204)]??0x0)+_0x2d7136,_0x549e64[_0x44e2f0(0x414)]=(_0x549e64[_0x44e2f0(0x414)]??0x0)+_0x2bcf5e;}}else{let _0x16bbd=(0x0,_0x2a684c[_0x44e2f0(0x5af)])(_0x269e05,_0x5ca8be);if(_0x57c129&&_0x16bbd){let _0x377ce0=(_0x549e64[_0x44e2f0(0x204)]??0x0)-_0x57c129[_0x44e2f0(0x204)],_0x3885a2=(_0x549e64[_0x44e2f0(0x414)]??0x0)-_0x57c129[_0x44e2f0(0x414)];_0x549e64[_0x44e2f0(0x204)]=_0x16bbd[_0x44e2f0(0x2bc)]+_0x377ce0,_0x549e64['top']=_0x16bbd[_0x44e2f0(0x27f)]+_0x3885a2;}else _0x549e64['left']=_0x16bbd==null?void 0x0:_0x16bbd[_0x44e2f0(0x2bc)],_0x549e64[_0x44e2f0(0x414)]=_0x16bbd==null?void 0x0:_0x16bbd['startY'];}return{'transform':_0x549e64,'sheetTransform':(0x0,_0x47830d[_0x44e2f0(0x4aa)])(_0x549e64,_0x269e05)??_0x93f471};}};_0x3d86f3=_0x39c461([_0x400e7c(0x0,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x2a684c[_0x2766d8(0x4e6)])),_0x400e7c(0x1,(0x0,_0x35d996['Inject'])(_0x590c15[_0x2766d8(0x32f)])),_0x400e7c(0x2,(0x0,_0x35d996['Inject'])(_0x47830d[_0x2766d8(0x312)])),_0x400e7c(0x3,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x565640[_0x2766d8(0x248)])),_0x400e7c(0x4,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x353806[_0x2766d8(0x562)])),_0x400e7c(0x5,_0x35d996[_0x2766d8(0x403)]),_0x400e7c(0x6,_0x580d8a[_0x2766d8(0x266)]),_0x400e7c(0x7,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x2a684c[_0x2766d8(0x518)]))],_0x3d86f3);var _0x364053=class extends _0x580d8a[_0x2766d8(0x5e1)]{constructor(_0x510a69,_0x3807b0){const _0x3d5df7=_0x2766d8;super(_0x510a69,_0x3807b0),_0x2a4a7a(this,_0x3d5df7(0x2a9),null),_0x2a4a7a(this,_0x3d5df7(0x2e0),null),_0x2a4a7a(this,_0x3d5df7(0x370),null),_0x2a4a7a(this,'_subUnitId',null),_0x2a4a7a(this,_0x3d5df7(0x362),!0x1),_0x3807b0&&this[_0x3d5df7(0x3ce)](_0x3807b0);}['getDrawingSearch'](){const _0x17176f=_0x2766d8;return{'unitId':this[_0x17176f(0x370)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x17176f(0x2a9)]};}[_0x2766d8(0x3ce)](_0x1eb880){const _0x55a170=_0x2766d8;_0x1eb880[_0x55a170(0x2a8)]!==void 0x0&&(this[_0x55a170(0x2a9)]=_0x1eb880['shapeId']),_0x1eb880[_0x55a170(0x280)]!==void 0x0&&(this[_0x55a170(0x370)]=_0x1eb880[_0x55a170(0x280)]),_0x1eb880['subUnitId']!==void 0x0&&(this[_0x55a170(0x3f6)]=_0x1eb880[_0x55a170(0x35e)]),_0x1eb880['isStartConnectorPoint']!==void 0x0&&(this[_0x55a170(0x362)]=_0x1eb880[_0x55a170(0x46a)]),this[_0x55a170(0x3c4)]({'width':_0x1eb880[_0x55a170(0x49e)],'height':_0x1eb880[_0x55a170(0x3f8)]});}[_0x2766d8(0x55f)](_0x47e8af){const _0x3423a4=_0x2766d8;_0x580d8a[_0x3423a4(0x473)]['drawWith'](_0x47e8af,{'radius':_0x1f2a15[_0x3423a4(0x540)][_0x3423a4(0x307)],'fill':_0x1f2a15[_0x3423a4(0x540)][_0x3423a4(0x37d)],'stroke':_0x1f2a15['ShapeDefaultConfig'][_0x3423a4(0x40e)],'strokeWidth':_0x1f2a15[_0x3423a4(0x540)]['cxnPointStrokeWidth'],'evented':!0x0});}};let _0x243495=class extends _0x35d996['Disposable']{constructor(_0xa305d4,_0xf5042c,_0x1c180b,_0x314a67,_0xf103e1,_0x3f2a06,_0x125ffb,_0x4ed74d){const _0x392d2d=_0x2766d8;super(),this[_0x392d2d(0x587)]=_0xa305d4,this['_commandService']=_0xf5042c,this['_renderManagerService']=_0x1c180b,this['_drawingManagerService']=_0x314a67,this['_univerInstanceService']=_0xf103e1,this[_0x392d2d(0x218)]=_0x3f2a06,this[_0x392d2d(0x1ef)]=_0x125ffb,this['_sheetBasicShapeConnectionPointController']=_0x4ed74d,_0x2a4a7a(this,_0x392d2d(0x2bb),void 0x0),_0x2a4a7a(this,'_unitId',void 0x0),_0x2a4a7a(this,_0x392d2d(0x3f6),void 0x0),_0x2a4a7a(this,_0x392d2d(0x303),[]),_0x2a4a7a(this,_0x392d2d(0x472),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),_0x2a4a7a(this,'_activeShapeModel',void 0x0),_0x2a4a7a(this,'_isConnecting',!0x1),_0x2a4a7a(this,_0x392d2d(0x5e3),!0x1),_0x2a4a7a(this,'_hasReset',!0x1),_0x2a4a7a(this,_0x392d2d(0x4ca),void 0x0),_0x2a4a7a(this,_0x392d2d(0x1f0),void 0x0),_0x2a4a7a(this,'_currentConnectionTarget',null),this[_0x392d2d(0x5d9)]();}[_0x2766d8(0x5d9)](){const _0x8ba931=_0x2766d8;this[_0x8ba931(0x425)](),this[_0x8ba931(0x2a5)]();}[_0x2766d8(0x578)](){const _0x50d753=_0x2766d8;if(!this[_0x50d753(0x370)]||!this[_0x50d753(0x3f6)]||!this['_activeShapeId'])return;let _0x5e72ce={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x50d753(0x2bb)]},{transform:_0x106049}=this['_drawingManagerService'][_0x50d753(0x26d)](_0x5e72ce);if(_0x106049)return{'left':_0x106049[_0x50d753(0x204)]||0x0,'top':_0x106049[_0x50d753(0x414)]||0x0,'width':_0x106049[_0x50d753(0x49e)]||0x0,'height':_0x106049[_0x50d753(0x3f8)]||0x0,'flipX':_0x106049['flipX']||!0x1,'flipY':_0x106049[_0x50d753(0x21d)]||!0x1,'angle':_0x106049[_0x50d753(0x55b)]};}[_0x2766d8(0x514)](){const _0x5e6288=_0x2766d8;if(this['_unitId']===void 0x0||this[_0x5e6288(0x3f6)]===void 0x0||this[_0x5e6288(0x2bb)]===void 0x0)return;let _0x462d63=this[_0x5e6288(0x4bb)][_0x5e6288(0x4ee)](this['_unitId']);if(!_0x462d63||!_0x462d63[_0x5e6288(0x28f)](_0x590c15[_0x5e6288(0x599)])['getCurrentSkeleton']())return;let {scene:_0x481952}=_0x462d63,_0x137815=this[_0x5e6288(0x578)]();if(!_0x137815)return;let _0x1f09d5=this['_sheetsShapeService'][_0x5e6288(0x338)](this['_unitId'],this[_0x5e6288(0x3f6)],this[_0x5e6288(0x2bb)]);if(!_0x1f09d5||!(0x0,_0x1f2a15[_0x5e6288(0x493)])(_0x1f09d5[_0x5e6288(0x200)]()))return;let _0x204267=_0x1f09d5[_0x5e6288(0x443)]();if(_0x204267[_0x5e6288(0x2f1)]<0x2)return;let _0x48b2b8=new _0x1f2a15['ConnectorCoordinateTransform'](_0x137815),_0x56f56b=_0x204267[0x0],_0x5825ba=_0x204267[_0x204267['length']-0x1],_0x14d620=_0x48b2b8[_0x5e6288(0x5d3)](_0x56f56b),_0x80245e=_0x48b2b8[_0x5e6288(0x5d3)](_0x5825ba);this[_0x5e6288(0x3df)](_0x481952,{..._0x14d620},!0x0),this['_addShapeConnectorHandlerObject'](_0x481952,{..._0x80245e},!0x1);}[_0x2766d8(0x3df)](_0x575840,_0x44f461,_0x18c253){const _0x395975=_0x2766d8;if(this[_0x395975(0x2bb)]===void 0x0||this[_0x395975(0x370)]===void 0x0||this[_0x395975(0x3f6)]===void 0x0)return;let _0x30fa4e='connector-handler-'+this[_0x395975(0x370)]+'-'+this[_0x395975(0x3f6)]+'-'+this[_0x395975(0x2bb)]+'-'+(_0x18c253?'start':_0x395975(0x250)),_0x3a0259=_0x575840['getObjectIncludeInGroup'](_0x30fa4e);if(_0x3a0259){_0x3a0259[_0x395975(0x3c4)]({'left':_0x44f461['x']-_0x1f2a15[_0x395975(0x540)]['cxnPointRadius'],'top':_0x44f461['y']-_0x1f2a15['ShapeDefaultConfig'][_0x395975(0x307)]});return;}let _0x6656cd=new _0x364053(_0x30fa4e,{'left':_0x44f461['x']-_0x1f2a15[_0x395975(0x540)][_0x395975(0x307)],'top':_0x44f461['y']-_0x1f2a15[_0x395975(0x540)][_0x395975(0x307)],'shapeId':this[_0x395975(0x2bb)],'unitId':this['_unitId'],'subUnitId':this[_0x395975(0x3f6)],'isStartConnectorPoint':_0x18c253,'width':_0x1f2a15['ShapeDefaultConfig'][_0x395975(0x307)]*0x2,'height':_0x1f2a15[_0x395975(0x540)][_0x395975(0x307)]*0x2,'zIndex':_0x580d8a['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0x395975(0x303)][_0x395975(0x373)](_0x6656cd),this[_0x395975(0x47e)](_0x6656cd,_0x575840,_0x18c253),_0x575840[_0x395975(0x476)](_0x6656cd,_0x580d8a['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x2766d8(0x3fe)](_0x151118,_0x2de304){const _0x575d14=_0x2766d8;var _0x5d2966;let _0x2cc35f={'x':0x0,'y':0x0};if(!_0x151118||!_0x2de304)return _0x2cc35f;let _0x54084f=this[_0x575d14(0x4bb)][_0x575d14(0x4ee)](_0x151118);if(!_0x54084f||!_0x54084f[_0x575d14(0x28f)](_0x590c15[_0x575d14(0x599)])[_0x575d14(0x4d9)](_0x2de304))return _0x2cc35f;let _0x4bc443=_0x54084f[_0x575d14(0x28f)](_0x590c15[_0x575d14(0x258)]),_0x145bcc=_0x4bc443==null?void 0x0:_0x4bc443[_0x575d14(0x492)]();if(!_0x145bcc)return _0x2cc35f;let _0x522700=(_0x5d2966=this['_univerInstanceService'][_0x575d14(0x438)](_0x151118))==null?void 0x0:_0x5d2966[_0x575d14(0x456)](_0x2de304);if(!_0x522700)return _0x2cc35f;let _0x323efb=(0x0,_0x590c15['getViewportByCell'])(_0x145bcc[_0x575d14(0x474)],_0x145bcc[_0x575d14(0x527)],_0x54084f[_0x575d14(0x394)],_0x522700);return _0x323efb?{'x':_0x323efb['viewportScrollX'],'y':_0x323efb['viewportScrollY']}:_0x2cc35f;}[_0x2766d8(0x4fe)](_0x1ba931,_0x3cba0c){const _0x4d4980=_0x2766d8;var _0x124357;let _0x5f229a=(_0x124357=this[_0x4d4980(0x251)][_0x4d4980(0x438)](_0x1ba931))==null?void 0x0:_0x124357[_0x4d4980(0x456)](_0x3cba0c);return(_0x5f229a==null?void 0x0:_0x5f229a['getZoomRatio']())??0x1;}[_0x2766d8(0x2e8)](_0x292fb5,_0x136e3a,_0x13a6d1,_0x560638,_0x1051bc){const _0x2ec278=_0x2766d8;this[_0x2ec278(0x4ca)][_0x2ec278(0x2c9)](),this[_0x2ec278(0x1f0)][_0x2ec278(0x2c9)](),this[_0x2ec278(0x1ef)][_0x2ec278(0x2b2)]();let _0x1b888b=this[_0x2ec278(0x390)];this[_0x2ec278(0x355)][_0x2ec278(0x3ab)]();let _0x462e61=this[_0x2ec278(0x3fe)](this['_unitId'],this[_0x2ec278(0x3f6)]),_0x14e1a9=this['_getZoomRatio'](this['_unitId'],this[_0x2ec278(0x3f6)]),_0x449fba={'x':_0x13a6d1[_0x2ec278(0x300)]/_0x14e1a9+_0x462e61['x'],'y':_0x13a6d1[_0x2ec278(0x4e8)]/_0x14e1a9+_0x462e61['y']},_0xf5d05=_0x1b888b?_0x1b888b[_0x2ec278(0x591)]:_0x449fba,_0x1026b4=_0x560638?this[_0x2ec278(0x5a7)][_0x2ec278(0x361)]():this[_0x2ec278(0x5a7)][_0x2ec278(0x42c)](),_0x10a686=this[_0x2ec278(0x5a7)][_0x2ec278(0x200)]();_0x1026b4?this[_0x2ec278(0x3bd)](_0x1026b4,_0xf5d05,_0x560638,_0x1b888b,_0x1051bc):this['_handleFreeEndpointPointerUp'](_0x136e3a,_0xf5d05,_0x560638,_0x1b888b,_0x1051bc,_0x10a686),this['_isConnecting']=!0x1,this[_0x2ec278(0x26b)]=!0x1,this['_currentConnectionTarget']=null,_0x292fb5['enableObjectsEvent']();}[_0x2766d8(0x496)](_0x2dd287,_0x93a139,_0x596760,_0x993644,_0x3a4019,_0x5dc273){const _0x1c50ff=_0x2766d8;let _0x383a7f=_0x5dc273===_0x1f2a15[_0x1c50ff(0x224)][_0x1c50ff(0x389)]||_0x5dc273===_0x1f2a15[_0x1c50ff(0x224)]['StraightConnector1'],_0x2ff080=_0x596760?_0x93a139:_0x2dd287,_0x218530=_0x596760?_0x2dd287:_0x93a139,_0x3b0b23=this[_0x1c50ff(0x5a7)][_0x1c50ff(0x443)](),_0x583d97=this[_0x1c50ff(0x5a7)][_0x1c50ff(0x200)](),_0x360136=(0x0,_0x1f2a15['isCurvedConnectorShape'])(_0x583d97),_0x51f41c=_0x1f2a15['ConnectorCoordinateTransform'][_0x1c50ff(0x550)](_0x3b0b23,_0x360136),_0x4b2a67=_0x383a7f?_0x1f2a15[_0x1c50ff(0x396)][_0x1c50ff(0x4b3)](_0x2ff080,_0x218530):_0x1f2a15['ConnectorCoordinateTransform'][_0x1c50ff(0x40d)](_0x2dd287,_0x93a139,_0x596760,_0x51f41c);_0x993644?this[_0x1c50ff(0x4e1)](_0x4b2a67,_0x993644,_0x596760,_0x3a4019):this['_executeResizeCommand'](_0x4b2a67,_0x3a4019);}[_0x2766d8(0x3bd)](_0x668db4,_0x453afd,_0x270e6c,_0x13cb88,_0x50e7ab){const _0x310af8=_0x2766d8;let _0x4dbfff=this['_getConnectPointInfo'](_0x668db4);if(!_0x4dbfff)return;let _0x1f7f4d=_0x13cb88?_0x13cb88[_0x310af8(0x55b)]:this['_calculateFreeEndpointAngle'](_0x4dbfff[_0x310af8(0x515)],_0x453afd),_0x1346c3;if(_0x13cb88){let _0x84cc11=this['_drawingManagerService'][_0x310af8(0x26d)]({'unitId':_0x13cb88['unitId'],'subUnitId':_0x13cb88[_0x310af8(0x35e)],'drawingId':_0x13cb88[_0x310af8(0x2a8)]});if(_0x84cc11!=null&&_0x84cc11[_0x310af8(0x339)]){let {left:_0x2b4695=0x0,top:_0x5e77c4=0x0,width:_0x49b751=0x0,height:_0x29629d=0x0,angle:_0x8cb3da}=_0x84cc11[_0x310af8(0x339)];_0x1346c3=(0x0,_0x1f2a15[_0x310af8(0x525)])({'left':_0x2b4695,'top':_0x5e77c4,'width':_0x49b751,'height':_0x29629d},_0x8cb3da||0x0);}else _0x1346c3={'left':_0x453afd['x'],'top':_0x453afd['y'],'width':0x0,'height':0x0};}else _0x1346c3={'left':_0x453afd['x'],'top':_0x453afd['y'],'width':0x0,'height':0x0};let _0x355447={'point':_0x453afd,'angle':_0x1f7f4d,'bounds':_0x1346c3},_0xbf4164=_0x270e6c?_0x355447:_0x4dbfff,_0x160ee1=_0x270e6c?_0x4dbfff:_0x355447,_0x2eff44=this['_activeShapeModel'][_0x310af8(0x200)](),_0x50c47c=(0x0,_0x1f2a15[_0x310af8(0x449)])(_0xbf4164,_0x160ee1,_0x2eff44);this[_0x310af8(0x5a7)][_0x310af8(0x232)]();let _0x553c71=(0x0,_0x1f2a15[_0x310af8(0x500)])(_0x50c47c,_0x2eff44);_0x13cb88?this['_executeConnectedRouteConnectionCommand'](_0x553c71,_0x13cb88,_0x668db4,_0x270e6c,_0x50e7ab):this[_0x310af8(0x457)](_0x553c71,_0x668db4,_0x270e6c,_0x50e7ab);}[_0x2766d8(0x4e1)](_0x166c8f,_0xd27bc2,_0x1ebfb8,_0x10e19c){const _0x1210db=_0x2766d8;let _0x5e08df=this[_0x1210db(0x5a7)][_0x1210db(0x583)]()[_0x1210db(0x46d)],_0x4149ae={..._0x5e08df},_0x1fd1c9={'shapeId':_0xd27bc2[_0x1210db(0x2a8)],'cxnIndex':_0xd27bc2[_0x1210db(0x378)]};_0x1ebfb8?_0x4149ae[_0x1210db(0x5d4)]=_0x1fd1c9:_0x4149ae['to']=_0x1fd1c9;let _0xbb363d=this[_0x1210db(0x5a7)][_0x1210db(0x200)](),_0x245cad=(0x0,_0x1f2a15['computeConnectorRouteLayout'])(_0x166c8f[_0x1210db(0x4df)],_0xbb363d),_0x2f79e3={'unitId':this[_0x1210db(0x370)],'subUnitId':this[_0x1210db(0x3f6)],'connectorShapeId':this['_activeShapeId'],'width':_0x166c8f[_0x1210db(0x45c)][_0x1210db(0x49e)],'height':_0x166c8f['worldRect'][_0x1210db(0x3f8)],'left':_0x166c8f[_0x1210db(0x45c)]['left'],'top':_0x166c8f[_0x1210db(0x45c)]['top'],'flipX':_0x166c8f[_0x1210db(0x45c)][_0x1210db(0x4f7)]||!0x1,'flipY':_0x166c8f[_0x1210db(0x45c)]['flipY']||!0x1,'newAdjustValues':_0x245cad['adjustValues'],'oldAdjustValues':_0x10e19c,'oldRelation':_0x5e08df,'newRelation':_0x4149ae,'newLineType':_0x245cad[_0x1210db(0x574)],'oldLineType':_0xbb363d};this[_0x1210db(0x54f)][_0x1210db(0x3d1)](_0x565640[_0x1210db(0x50b)]['id'],_0x2f79e3);}[_0x2766d8(0x503)](_0x1176b1,_0x276197){const _0x4b6127=_0x2766d8;let _0x40ce6e=this[_0x4b6127(0x5a7)][_0x4b6127(0x200)](),_0x26a911=(0x0,_0x1f2a15[_0x4b6127(0x500)])(_0x1176b1[_0x4b6127(0x4df)],_0x40ce6e),_0x3cf758={'unitId':this[_0x4b6127(0x370)],'subUnitId':this[_0x4b6127(0x3f6)],'shapeId':this['_activeShapeId'],'width':_0x1176b1[_0x4b6127(0x45c)][_0x4b6127(0x49e)],'height':_0x1176b1[_0x4b6127(0x45c)][_0x4b6127(0x3f8)],'left':_0x1176b1['worldRect'][_0x4b6127(0x204)],'top':_0x1176b1[_0x4b6127(0x45c)]['top'],'flipX':_0x1176b1[_0x4b6127(0x45c)][_0x4b6127(0x4f7)]||!0x1,'flipY':_0x1176b1[_0x4b6127(0x45c)]['flipY']||!0x1,'angle':_0x1176b1[_0x4b6127(0x45c)]['angle']||0x0,'newAdjustValues':_0x26a911['adjustValues'],'oldAdjustValues':_0x276197,'newLineType':_0x26a911[_0x4b6127(0x574)],'oldLineType':_0x40ce6e};this[_0x4b6127(0x54f)][_0x4b6127(0x3d1)](_0x565640['UpdateLineShapeResizeCommand']['id'],_0x3cf758);}['_executeConnectedRouteConnectionCommand'](_0xc1e370,_0x1547ea,_0x52a056,_0xb48573,_0x457b52){const _0x3e679e=_0x2766d8;let _0x1ab40b=this['_activeShapeModel']['getShapeData']()[_0x3e679e(0x46d)],_0x4f4612={..._0x1ab40b},_0x401dc1={'shapeId':_0x1547ea[_0x3e679e(0x2a8)],'cxnIndex':_0x1547ea[_0x3e679e(0x378)]};_0xb48573?(_0x4f4612['from']=_0x401dc1,_0x4f4612['to']=_0x52a056):(_0x4f4612[_0x3e679e(0x5d4)]=_0x52a056,_0x4f4612['to']=_0x401dc1);let _0x21c677={'unitId':this[_0x3e679e(0x370)],'subUnitId':this[_0x3e679e(0x3f6)],'connectorShapeId':this[_0x3e679e(0x2bb)],'width':_0xc1e370['worldRect'][_0x3e679e(0x49e)],'height':_0xc1e370['worldRect'][_0x3e679e(0x3f8)],'left':_0xc1e370['worldRect'][_0x3e679e(0x204)],'top':_0xc1e370[_0x3e679e(0x45c)][_0x3e679e(0x414)],'flipX':_0xc1e370['worldRect'][_0x3e679e(0x4f7)]||!0x1,'flipY':_0xc1e370['worldRect'][_0x3e679e(0x21d)]||!0x1,'oldAdjustValues':_0x457b52,'newAdjustValues':_0xc1e370[_0x3e679e(0x5d5)],'newLineType':_0xc1e370[_0x3e679e(0x574)],'rotation':_0xc1e370[_0x3e679e(0x44b)],'oldRelation':_0x1ab40b,'newRelation':_0x4f4612};this['_commandService'][_0x3e679e(0x3d1)](_0x565640['UpdateConnectorRelationCommand']['id'],_0x21c677);}['_executeConnectedRouteResizeCommand'](_0x243384,_0x3bb718,_0x377b16,_0x5057c9){const _0x5708e9=_0x2766d8;let _0x184b91=this[_0x5708e9(0x5a7)][_0x5708e9(0x583)]()[_0x5708e9(0x46d)],_0x584d2d={};_0x377b16?(_0x584d2d['to']=_0x3bb718,_0x584d2d[_0x5708e9(0x5d4)]=void 0x0):(_0x584d2d[_0x5708e9(0x5d4)]=_0x3bb718,_0x584d2d['to']=void 0x0);let _0x583ae5={'unitId':this[_0x5708e9(0x370)],'subUnitId':this[_0x5708e9(0x3f6)],'connectorShapeId':this[_0x5708e9(0x2bb)],'width':_0x243384[_0x5708e9(0x45c)][_0x5708e9(0x49e)],'height':_0x243384[_0x5708e9(0x45c)][_0x5708e9(0x3f8)],'left':_0x243384['worldRect']['left'],'top':_0x243384[_0x5708e9(0x45c)][_0x5708e9(0x414)],'flipX':_0x243384['worldRect'][_0x5708e9(0x4f7)]||!0x1,'flipY':_0x243384[_0x5708e9(0x45c)][_0x5708e9(0x21d)]||!0x1,'oldAdjustValues':_0x5057c9,'newAdjustValues':_0x243384['adjustValues'],'newLineType':_0x243384['lineType'],'rotation':_0x243384[_0x5708e9(0x44b)],'oldRelation':_0x184b91,'newRelation':_0x584d2d};this[_0x5708e9(0x54f)][_0x5708e9(0x3d1)](_0x565640[_0x5708e9(0x50b)]['id'],_0x583ae5);}['_attachConnectorObjectEvent'](_0x3cd7c0,_0x523826,_0x3375be){const _0x418d34=_0x2766d8;this['disposeWithMe']((0x0,_0x35d996['toDisposable'])(_0x3cd7c0['onPointerDown$'][_0x418d34(0x1dd)]((_0x4d5d37,_0x40a5e7)=>{const _0x38b21a=_0x418d34;let _0x3fc296=_0x3cd7c0[_0x38b21a(0x4ce)]();if(this['_activeShapeModel']=this[_0x38b21a(0x218)]['getShapeModel'](_0x3fc296[_0x38b21a(0x280)],_0x3fc296[_0x38b21a(0x35e)],_0x3fc296[_0x38b21a(0x314)]),!this[_0x38b21a(0x5a7)])return;let _0x48262c={};this['_activeShapeModel'][_0x38b21a(0x30f)]()[_0x38b21a(0x528)](_0x360891=>{const _0x2fd4fd=_0x38b21a;let _0x36f6c8=this[_0x2fd4fd(0x5a7)][_0x2fd4fd(0x28b)](_0x360891);_0x36f6c8!==void 0x0&&(_0x48262c[_0x360891]=_0x36f6c8);});let _0x9fff48=this[_0x38b21a(0x578)]();if(!_0x9fff48)return;this[_0x38b21a(0x472)]={..._0x9fff48};let _0x5bb2b1=new _0x1f2a15[(_0x38b21a(0x396))](this['_baseDrawingRect']),_0x13f850=(0x0,_0x2ed59f[_0x38b21a(0x2f2)])({'unitId':this[_0x38b21a(0x370)],'subUnitId':this[_0x38b21a(0x3f6)],'drawingId':this['_activeShapeId']}),_0x136bc7=_0x523826['getObjectIncludeInGroup'](_0x13f850);this[_0x38b21a(0x579)]=!0x0,_0x523826[_0x38b21a(0x4fa)](),this['_sheetBasicShapeConnectionPointController'][_0x38b21a(0x410)](_0x523826,this['_unitId'],this['_subUnitId'],this[_0x38b21a(0x2bb)]),this[_0x38b21a(0x390)]=null;let _0x290122=this['_activeShapeModel']['getConnectorLinePoints'](),_0x36ef0e=_0x290122[0x0],_0x101a11=_0x290122[_0x290122['length']-0x1],_0x178593=_0x3375be?_0x5bb2b1[_0x38b21a(0x5d3)](_0x101a11):_0x5bb2b1[_0x38b21a(0x5d3)](_0x36ef0e);this[_0x38b21a(0x4ca)]=_0x523826[_0x38b21a(0x5dc)][_0x38b21a(0x1dd)]((_0x4bcd32,_0x4c02fa)=>{const _0x578f25=_0x38b21a;if(!this[_0x578f25(0x579)]||!this['_activeShapeModel'])return;this[_0x578f25(0x26b)]||=(this['_sheetShapeAdjustController']['clearAdjustControls'](),this[_0x578f25(0x5a7)][_0x578f25(0x352)](),!0x0);let _0x42fec2=this[_0x578f25(0x3fe)](this[_0x578f25(0x370)],this[_0x578f25(0x3f6)]),_0x17524d=this[_0x578f25(0x4fe)](this[_0x578f25(0x370)],this[_0x578f25(0x3f6)]),_0x253051={'x':_0x4bcd32[_0x578f25(0x300)]/_0x17524d+_0x42fec2['x'],'y':_0x4bcd32[_0x578f25(0x4e8)]/_0x17524d+_0x42fec2['y']},_0x3bf26f=this['_sheetBasicShapeConnectionPointController'][_0x578f25(0x398)](_0x253051);if(_0x3bf26f){let {shapeId:_0x5ad233,unitId:_0x6fe72b,subUnitId:_0x58fe1f}=_0x3bf26f;if(_0x5ad233&&_0x6fe72b&&_0x58fe1f){let _0x1b8243=(0x0,_0x2ed59f[_0x578f25(0x2f2)])({'unitId':_0x6fe72b,'subUnitId':_0x58fe1f,'drawingId':_0x5ad233});_0x3bf26f['angle']=(_0x523826['getObjectIncludeInGroup'](_0x1b8243)[_0x578f25(0x55b)]||0x0)+_0x3bf26f[_0x578f25(0x55b)];}}this['_currentConnectionTarget']=_0x3bf26f;let _0x5e367a=_0x3375be?this['_activeShapeModel'][_0x578f25(0x361)]():this[_0x578f25(0x5a7)][_0x578f25(0x42c)]();_0x5e367a?this[_0x578f25(0x436)](_0x5e367a,_0x253051,_0x3375be,_0x136bc7,_0x3cd7c0):this['_handleFreeEndpointMove'](_0x253051,_0x178593,_0x3375be,_0x136bc7,_0x3cd7c0);}),this[_0x38b21a(0x1f0)]=_0x523826[_0x38b21a(0x542)][_0x38b21a(0x1dd)]((_0x4c289a,_0x17a0b7)=>{const _0x4b9473=_0x38b21a;this[_0x4b9473(0x2e8)](_0x523826,_0x178593,_0x4c289a,_0x3375be,_0x48262c);}),_0x40a5e7[_0x38b21a(0x5c7)]();})));}[_0x2766d8(0x293)](_0x380bdf,_0x22430d,_0x308231){const _0x3da6f0=_0x2766d8;let _0x21630f=this[_0x3da6f0(0x218)]['getBasicShapeRelation'](_0x380bdf,_0x22430d,_0x308231);if(!_0x21630f||_0x21630f[_0x3da6f0(0x2f1)]===0x0)return;let _0x5ebded=this[_0x3da6f0(0x4bb)]['getRenderUnitById'](_0x380bdf);if(!_0x5ebded)return;let {scene:_0x214a49}=_0x5ebded;for(let _0x41edcc of _0x21630f){let _0x42778b=_0x41edcc['lineShapeId'],_0x3e9131=this[_0x3da6f0(0x218)][_0x3da6f0(0x338)](_0x380bdf,_0x22430d,_0x42778b);if(!_0x3e9131)continue;let _0x3ef624=_0x3e9131[_0x3da6f0(0x42c)](),_0x491b71=_0x3e9131['getEndConnectInfo'](),_0x2e6190=(_0x3ef624==null?void 0x0:_0x3ef624[_0x3da6f0(0x2a8)])===_0x308231,_0x4c9063=(0x0,_0x2ed59f[_0x3da6f0(0x2f2)])({'unitId':_0x380bdf,'subUnitId':_0x22430d,'drawingId':_0x42778b}),_0x65d2cc=_0x214a49[_0x3da6f0(0x1e9)](_0x4c9063);if(!_0x65d2cc)continue;let _0x1669f2=this['_drawingManagerService'][_0x3da6f0(0x26d)]({'unitId':_0x380bdf,'subUnitId':_0x22430d,'drawingId':_0x42778b});_0x1669f2!=null&&_0x1669f2[_0x3da6f0(0x339)]&&(_0x3ef624&&_0x491b71?this['_rerouteConnectorLine'](_0x380bdf,_0x22430d,_0x42778b,_0x3e9131,_0x3ef624,_0x491b71,_0x65d2cc):this['_moveConnectorWithShape'](_0x380bdf,_0x22430d,_0x42778b,_0x3e9131,_0x2e6190?_0x3ef624:_0x491b71,_0x2e6190,_0x1669f2,_0x65d2cc));}}['_rerouteConnectorLine'](_0x3a70e5,_0x1cad24,_0x234ba5,_0x25e3b0,_0x26e3f1,_0x16b77f,_0x23e519){const _0x30e644=_0x2766d8;let _0x4b8971=this[_0x30e644(0x370)],_0x41060f=this[_0x30e644(0x3f6)];this[_0x30e644(0x370)]=_0x3a70e5,this['_subUnitId']=_0x1cad24;let _0x41910b=this[_0x30e644(0x5ad)](_0x26e3f1),_0x1bcf9b=this[_0x30e644(0x5ad)](_0x16b77f);if(this[_0x30e644(0x370)]=_0x4b8971,this[_0x30e644(0x3f6)]=_0x41060f,!_0x41910b||!_0x1bcf9b)return;let _0x3dd7f5=_0x25e3b0['getShapeType'](),_0x3a08a4=(0x0,_0x1f2a15['routeConnectorLineShape'])(_0x41910b,_0x1bcf9b,_0x3dd7f5);_0x3a08a4&&_0x25e3b0['updateLinePoints'](_0x3a08a4);let _0x4b7356=(0x0,_0x1f2a15[_0x30e644(0x500)])(_0x3a08a4,_0x3dd7f5);_0x4b7356[_0x30e644(0x574)]!==_0x3dd7f5&&_0x25e3b0['changeShapeType'](_0x4b7356[_0x30e644(0x574)]),_0x25e3b0[_0x30e644(0x352)]();for(let [_0x44f071,_0x38c9bd]of Object['entries'](_0x4b7356[_0x30e644(0x5d5)]))_0x25e3b0[_0x30e644(0x3ae)](_0x44f071,_0x38c9bd);_0x25e3b0['updateContext']({'width':_0x4b7356[_0x30e644(0x45c)][_0x30e644(0x49e)],'height':_0x4b7356[_0x30e644(0x45c)][_0x30e644(0x3f8)]}),_0x23e519[_0x30e644(0x3c4)]({'flipX':_0x4b7356[_0x30e644(0x45c)][_0x30e644(0x4f7)],'flipY':_0x4b7356['worldRect'][_0x30e644(0x21d)],'left':_0x4b7356['worldRect'][_0x30e644(0x204)],'top':_0x4b7356['worldRect'][_0x30e644(0x414)],'width':_0x4b7356[_0x30e644(0x45c)][_0x30e644(0x49e)],'height':_0x4b7356['worldRect']['height'],'angle':_0x4b7356[_0x30e644(0x44b)]}),_0x25e3b0['removeLinePoints']();}[_0x2766d8(0x4f9)](_0x1a526f,_0x51b483,_0x2268da,_0x1d6958,_0x523ee8,_0x5764a8,_0x97090b,_0x9c6a93){const _0x59adbf=_0x2766d8;let _0x29ec0c=this[_0x59adbf(0x370)],_0x5c0705=this[_0x59adbf(0x3f6)];this[_0x59adbf(0x370)]=_0x1a526f,this['_subUnitId']=_0x51b483;let _0xc37d12=this['_getConnectPointInfo'](_0x523ee8);if(this[_0x59adbf(0x370)]=_0x29ec0c,this[_0x59adbf(0x3f6)]=_0x5c0705,!_0xc37d12)return;let {left:_0x2a3514=0x0,top:_0x2f1629=0x0,width:_0x4e0a05=0x0,height:_0x261df5=0x0,flipX:_0x3ca4fc=!0x1,flipY:_0x5d354e=!0x1}=_0x97090b[_0x59adbf(0x339)],_0x563906=_0x1d6958[_0x59adbf(0x443)]();if(_0x563906[_0x59adbf(0x2f1)]<0x2)return;let _0x4d36de=new _0x1f2a15[(_0x59adbf(0x396))]({'left':_0x2a3514,'top':_0x2f1629,'width':_0x4e0a05,'height':_0x261df5,'flipX':_0x3ca4fc,'flipY':_0x5d354e}),_0x448fbf=_0x5764a8?_0x563906[_0x563906[_0x59adbf(0x2f1)]-0x1]:_0x563906[0x0],_0x330712=_0x4d36de['localToWorld'](_0x448fbf),_0x177b67=_0x1f2a15[_0x59adbf(0x396)][_0x59adbf(0x40d)](_0x330712,_0xc37d12[_0x59adbf(0x515)],!_0x5764a8);_0x9c6a93[_0x59adbf(0x3c4)]({'flipX':_0x177b67['worldRect'][_0x59adbf(0x4f7)],'flipY':_0x177b67['worldRect'][_0x59adbf(0x21d)],'left':_0x177b67[_0x59adbf(0x45c)][_0x59adbf(0x204)],'top':_0x177b67['worldRect']['top'],'width':_0x177b67[_0x59adbf(0x45c)][_0x59adbf(0x49e)],'height':_0x177b67['worldRect'][_0x59adbf(0x3f8)],'angle':_0x177b67[_0x59adbf(0x45c)][_0x59adbf(0x55b)]}),_0x9c6a93[_0x59adbf(0x3b2)](!0x0);}[_0x2766d8(0x38a)](){const _0x4ac538=_0x2766d8;this[_0x4ac538(0x303)][_0x4ac538(0x2f1)]!==0x0&&(this[_0x4ac538(0x303)][_0x4ac538(0x528)](_0x2864e2=>{_0x2864e2['dispose']();}),this[_0x4ac538(0x303)]=[]);}[_0x2766d8(0x2a5)](){const _0x3c7194=_0x2766d8;let _0x155e04=this['_univerInstanceService'][_0x3c7194(0x3e9)](_0x35d996['UniverInstanceType']['UNIVER_SHEET']);this[_0x3c7194(0x271)](_0x155e04['pipe']((0x0,_0x4737d9[_0x3c7194(0x3cb)])(_0x57253c=>_0x57253c?_0x57253c[_0x3c7194(0x435)][_0x3c7194(0x21c)]((0x0,_0x4737d9[_0x3c7194(0x3cb)])(_0x277be4=>{const _0x77670d=_0x3c7194;if(!_0x277be4)return _0x4737d9[_0x77670d(0x486)];let _0x4fe655=_0x57253c['getUnitId'](),_0x585a78=this['_renderManagerService']['getRenderUnitById'](_0x4fe655),_0x25d9bf=_0x585a78==null?void 0x0:_0x585a78[_0x77670d(0x394)];return _0x25d9bf?(0x0,_0x4737d9['of'])(_0x25d9bf):_0x4737d9[_0x77670d(0x486)];})):_0x4737d9[_0x3c7194(0x486)]))['subscribe'](_0x4bc0af=>{const _0x46bc92=_0x3c7194;let _0xe85376=_0x4bc0af[_0x46bc92(0x40c)]();this['disposeWithMe'](_0x4bc0af[_0x46bc92(0x5dc)][_0x46bc92(0x1dd)](_0x58fbde=>{const _0x2ec065=_0x46bc92;this[_0x2ec065(0x5e3)]&&this[_0x2ec065(0x2bb)]&&this[_0x2ec065(0x38a)]();})),this[_0x46bc92(0x271)](_0xe85376[_0x46bc92(0x330)][_0x46bc92(0x56a)](_0x1700c5=>{const _0x1da821=_0x46bc92;let {objects:_0x3c668a}=_0x1700c5;this[_0x1da821(0x38a)](),_0x3c668a!==null&&_0x3c668a[_0x1da821(0x22b)]===0x1&&_0x3c668a[_0x1da821(0x3bf)]()['next']()[_0x1da821(0x58f)]instanceof _0x423ac6&&(this[_0x1da821(0x5e3)]=!0x0);})),this[_0x46bc92(0x271)](_0xe85376['changing$'][_0x46bc92(0x56a)](_0x32dd1d=>{const _0x587661=_0x46bc92;this[_0x587661(0x5e3)]&&this[_0x587661(0x38a)]();})),this[_0x46bc92(0x271)](_0x4bc0af['onPointerUp$']['subscribeEvent'](()=>{const _0x191d1d=_0x46bc92;this[_0x191d1d(0x5e3)]&&(this['_isDrawingShapePointDown']=!0x1,this[_0x191d1d(0x514)]());})),this[_0x46bc92(0x271)](_0xe85376['changeEnd$'][_0x46bc92(0x56a)](()=>{const _0x4b511e=_0x46bc92;this['_unitId']&&this[_0x4b511e(0x3f6)]&&this[_0x4b511e(0x2bb)]&&this[_0x4b511e(0x482)][_0x4b511e(0x26d)]({'unitId':this[_0x4b511e(0x370)],'subUnitId':this[_0x4b511e(0x3f6)],'drawingId':this[_0x4b511e(0x2bb)]})&&(this['_clearShapeConnectorHandlerObjects'](),this[_0x4b511e(0x514)]());}));}));}[_0x2766d8(0x425)](){const _0x41cbbe=_0x2766d8;this[_0x41cbbe(0x271)](this[_0x41cbbe(0x482)][_0x41cbbe(0x2a3)][_0x41cbbe(0x56a)](_0x5ea9a3=>{const _0x4820aa=_0x41cbbe;if(_0x5ea9a3[_0x4820aa(0x2f1)]===0x1){let _0x3aaa7f=_0x5ea9a3[0x0];if(_0x3aaa7f[_0x4820aa(0x313)]===_0x35d996['DrawingTypeEnum'][_0x4820aa(0x4ba)]){let _0x443df1=this[_0x4820aa(0x218)]['getShapeModel'](_0x3aaa7f['unitId'],_0x3aaa7f[_0x4820aa(0x35e)],_0x3aaa7f['drawingId']);if(_0x443df1&&(0x0,_0x1f2a15[_0x4820aa(0x493)])(_0x443df1['getShapeType']())){this[_0x4820aa(0x2bb)]=_0x3aaa7f['drawingId'],this[_0x4820aa(0x370)]=_0x3aaa7f['unitId'],this[_0x4820aa(0x3f6)]=_0x3aaa7f['subUnitId'],this[_0x4820aa(0x38a)](),this[_0x4820aa(0x514)]();return;}}}this[_0x4820aa(0x2bb)]=void 0x0,this[_0x4820aa(0x370)]=void 0x0,this[_0x4820aa(0x3f6)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this[_0x41cbbe(0x271)](this[_0x41cbbe(0x482)][_0x41cbbe(0x59c)]['subscribe'](_0x4e40f1=>{const _0x337e7a=_0x41cbbe;if(_0x4e40f1['length']===0x1){var _0x18f26d;let _0x449359=_0x4e40f1[0x0],_0x46f395=(_0x18f26d=this['_drawingManagerService'][_0x337e7a(0x26d)](_0x449359))==null?void 0x0:_0x18f26d[_0x337e7a(0x313)];_0x46f395===_0x35d996[_0x337e7a(0x44f)]['DRAWING_SHAPE']&&_0x449359[_0x337e7a(0x314)]===this[_0x337e7a(0x2bb)]?(this[_0x337e7a(0x38a)](),this[_0x337e7a(0x514)]()):!this['_activeShapeId']&&_0x46f395===_0x35d996[_0x337e7a(0x44f)][_0x337e7a(0x4ba)]&&this[_0x337e7a(0x293)](_0x449359[_0x337e7a(0x280)],_0x449359[_0x337e7a(0x35e)],_0x449359[_0x337e7a(0x314)]);}})),this[_0x41cbbe(0x271)](this['_drawingManagerService'][_0x41cbbe(0x210)][_0x41cbbe(0x56a)](_0x2bafdf=>{const _0x1dcdd5=_0x41cbbe;for(let _0x1b2e64 of _0x2bafdf){let {drawingId:_0x507f02}=_0x1b2e64;if(this[_0x1dcdd5(0x2bb)]===_0x507f02){this[_0x1dcdd5(0x311)]();return;}}}));}[_0x2766d8(0x436)](_0x204748,_0x287d57,_0x5f0c02,_0x275be3,_0x1e2cf9){const _0x2fae04=_0x2766d8;var _0x7ee58a;if(!this[_0x2fae04(0x5a7)])return;let _0x5562e4=this[_0x2fae04(0x5ad)](_0x204748);if(!_0x5562e4)return;let _0x331514=this[_0x2fae04(0x390)]?this[_0x2fae04(0x390)][_0x2fae04(0x591)]:_0x287d57,_0x5aae92=this[_0x2fae04(0x390)]?this[_0x2fae04(0x390)][_0x2fae04(0x55b)]:this[_0x2fae04(0x4d3)](_0x5562e4[_0x2fae04(0x515)],_0x331514),_0x1fa186;if(this['_currentConnectionTarget']){let _0x1ae156=this[_0x2fae04(0x482)][_0x2fae04(0x26d)]({'unitId':this[_0x2fae04(0x390)][_0x2fae04(0x280)],'subUnitId':this[_0x2fae04(0x390)][_0x2fae04(0x35e)],'drawingId':this[_0x2fae04(0x390)][_0x2fae04(0x2a8)]});if(_0x1ae156!=null&&_0x1ae156[_0x2fae04(0x339)]){let {left:_0x174acd=0x0,top:_0x11f4e2=0x0,width:_0x2cf79b=0x0,height:_0x535f72=0x0,angle:_0x389dce}=_0x1ae156[_0x2fae04(0x339)];_0x1fa186=(0x0,_0x1f2a15[_0x2fae04(0x525)])({'left':_0x174acd,'top':_0x11f4e2,'width':_0x2cf79b,'height':_0x535f72},_0x389dce||0x0);}else _0x1fa186={'left':_0x331514['x'],'top':_0x331514['y'],'width':0x0,'height':0x0};}else _0x1fa186={'left':_0x331514['x'],'top':_0x331514['y'],'width':0x0,'height':0x0};let _0x1fafb1={'point':_0x331514,'angle':_0x5aae92,'bounds':_0x1fa186},_0x2535fb=_0x5f0c02?_0x1fafb1:_0x5562e4,_0x2eca87=_0x5f0c02?_0x5562e4:_0x1fafb1,_0x2ddab6=this['_activeShapeModel'][_0x2fae04(0x200)](),_0x108aec=(0x0,_0x1f2a15[_0x2fae04(0x449)])(_0x2535fb,_0x2eca87,_0x2ddab6);_0x108aec&&this[_0x2fae04(0x5a7)][_0x2fae04(0x1d9)](_0x108aec);let _0x12f6e0=(0x0,_0x1f2a15[_0x2fae04(0x500)])(_0x108aec,_0x2ddab6);_0x12f6e0[_0x2fae04(0x574)]!==_0x2ddab6&&this[_0x2fae04(0x5a7)]['changeShapeType'](_0x12f6e0[_0x2fae04(0x574)]);for(let [_0x3585c9,_0x169a11]of Object['entries'](_0x12f6e0[_0x2fae04(0x5d5)]))this[_0x2fae04(0x5a7)]['setAdjustValueByName'](_0x3585c9,_0x169a11);this['_activeShapeModel'][_0x2fae04(0x240)]({'width':_0x12f6e0[_0x2fae04(0x45c)][_0x2fae04(0x49e)],'height':_0x12f6e0[_0x2fae04(0x45c)][_0x2fae04(0x3f8)]}),_0x275be3['transformByState']({'flipX':_0x12f6e0[_0x2fae04(0x45c)][_0x2fae04(0x4f7)],'flipY':_0x12f6e0[_0x2fae04(0x45c)][_0x2fae04(0x21d)],'left':_0x12f6e0[_0x2fae04(0x45c)][_0x2fae04(0x204)],'top':_0x12f6e0[_0x2fae04(0x45c)][_0x2fae04(0x414)],'width':_0x12f6e0['worldRect'][_0x2fae04(0x49e)],'height':_0x12f6e0[_0x2fae04(0x45c)]['height'],'angle':_0x12f6e0['rotation']}),_0x275be3[_0x2fae04(0x3b2)](!0x0);let _0x43ee6e=((_0x7ee58a=this['_currentConnectionTarget'])==null?void 0x0:_0x7ee58a[_0x2fae04(0x591)])??_0x287d57;_0x1e2cf9[_0x2fae04(0x3c4)]({'left':_0x43ee6e['x']-_0x1f2a15[_0x2fae04(0x540)][_0x2fae04(0x307)],'top':_0x43ee6e['y']-_0x1f2a15[_0x2fae04(0x540)][_0x2fae04(0x307)]});}[_0x2766d8(0x5e0)](_0x5db258,_0x51e024,_0x2c968b,_0x2332e9,_0x3c815c){const _0x160db4=_0x2766d8;var _0x11c237,_0x58461b;let _0xe34348=((_0x11c237=this[_0x160db4(0x390)])==null?void 0x0:_0x11c237[_0x160db4(0x591)])??_0x5db258,_0x3c6c01=_0x1f2a15[_0x160db4(0x396)]['computeConnectorResizeLayout'](_0x51e024,_0xe34348,_0x2c968b);_0x2332e9[_0x160db4(0x3c4)]({'flipX':_0x3c6c01[_0x160db4(0x45c)][_0x160db4(0x4f7)],'flipY':_0x3c6c01[_0x160db4(0x45c)][_0x160db4(0x21d)],'left':_0x3c6c01[_0x160db4(0x45c)]['left'],'top':_0x3c6c01[_0x160db4(0x45c)][_0x160db4(0x414)],'width':_0x3c6c01['worldRect'][_0x160db4(0x49e)],'height':_0x3c6c01[_0x160db4(0x45c)]['height'],'angle':_0x3c6c01[_0x160db4(0x45c)][_0x160db4(0x55b)]});let _0x4174e8=((_0x58461b=this[_0x160db4(0x390)])==null?void 0x0:_0x58461b[_0x160db4(0x591)])??_0x5db258;_0x3c815c[_0x160db4(0x3c4)]({'left':_0x4174e8['x']-_0x1f2a15[_0x160db4(0x540)][_0x160db4(0x307)],'top':_0x4174e8['y']-_0x1f2a15[_0x160db4(0x540)][_0x160db4(0x307)]});}[_0x2766d8(0x5ad)](_0x6c9c16){const _0x351b20=_0x2766d8;if(!this[_0x351b20(0x370)]||!this[_0x351b20(0x3f6)])return null;let {shapeId:_0x511541,cxnIndex:_0x4c47ee}=_0x6c9c16,_0x1049f4=this[_0x351b20(0x218)][_0x351b20(0x338)](this[_0x351b20(0x370)],this['_subUnitId'],_0x511541);if(!_0x1049f4)return null;let _0x654cfd=this[_0x351b20(0x482)][_0x351b20(0x26d)]({'unitId':this[_0x351b20(0x370)],'subUnitId':this[_0x351b20(0x3f6)],'drawingId':_0x511541});if(!(_0x654cfd!=null&&_0x654cfd[_0x351b20(0x339)]))return null;let {left:_0xe1bdd0=0x0,top:_0x65bb9a=0x0,width:_0x45a314=0x0,height:_0x31eb35=0x0,flipX:_0x59436b=!0x1,flipY:_0x267cc2=!0x1,angle:_0x160f89}=_0x654cfd[_0x351b20(0x339)];_0x1049f4[_0x351b20(0x240)]({'width':_0x45a314,'height':_0x31eb35});let _0x2b4562=_0x1049f4[_0x351b20(0x31f)]()[_0x351b20(0x584)](_0x91f3d4=>_0x91f3d4['index']===_0x4c47ee);if(!_0x2b4562)return null;let _0x55cd5c=_0x59436b?_0x45a314-_0x2b4562['x']:_0x2b4562['x'],_0x2141f5=_0x267cc2?_0x31eb35-_0x2b4562['y']:_0x2b4562['y'];if(_0x160f89!==0x0&&_0x160f89!=null){let _0x1f2d0f=_0x160f89*Math['PI']/0xb4,_0x3f0807=Math[_0x351b20(0x448)](_0x1f2d0f),_0x24c90f=Math['sin'](_0x1f2d0f),_0x5eeb6e=_0x45a314/0x2,_0x40cef4=_0x31eb35/0x2,_0x3b940a=_0x55cd5c-_0x5eeb6e,_0x166098=_0x2141f5-_0x40cef4;_0x55cd5c=_0x5eeb6e+_0x3b940a*_0x3f0807-_0x166098*_0x24c90f,_0x2141f5=_0x40cef4+_0x3b940a*_0x24c90f+_0x166098*_0x3f0807;}_0x55cd5c+=_0xe1bdd0,_0x2141f5+=_0x65bb9a;let _0x1f720a=_0x2b4562['ang']/0xea60;_0x59436b&&(_0x1f720a=0xb4-_0x1f720a),_0x267cc2&&(_0x1f720a=-_0x1f720a),_0x1f720a+=_0x160f89||0x0,_0x1f720a=(_0x1f720a%0x168+0x168)%0x168;let _0x5193c4=(0x0,_0x1f2a15[_0x351b20(0x525)])({'left':_0xe1bdd0,'top':_0x65bb9a,'width':_0x45a314,'height':_0x31eb35},_0x160f89||0x0);return{'point':{'x':_0x55cd5c,'y':_0x2141f5},'angle':_0x1f720a,'bounds':_0x5193c4};}[_0x2766d8(0x4d3)](_0x2755a8,_0x249bb8){const _0x45081b=_0x2766d8;let _0x595dc6=_0x249bb8['x']-_0x2755a8['x'],_0x17f2a6=_0x249bb8['y']-_0x2755a8['y'];return Math[_0x45081b(0x2c6)](_0x595dc6)>=Math[_0x45081b(0x2c6)](_0x17f2a6)?_0x595dc6>=0x0?0xb4:0x0:_0x17f2a6>=0x0?0x10e:0x5a;}[_0x2766d8(0x311)](){const _0x4efa6c=_0x2766d8;this['_activeShapeId']=void 0x0,this[_0x4efa6c(0x370)]=void 0x0,this[_0x4efa6c(0x3f6)]=void 0x0,this[_0x4efa6c(0x38a)]();}[_0x2766d8(0x2a4)](){const _0x1feaa2=_0x2766d8;this[_0x1feaa2(0x38a)](),super[_0x1feaa2(0x2a4)]();}};_0x243495=_0x39c461([_0x400e7c(0x1,_0x35d996[_0x2766d8(0x3c6)]),_0x400e7c(0x2,_0x580d8a[_0x2766d8(0x266)]),_0x400e7c(0x3,_0x2ed59f['IDrawingManagerService']),_0x400e7c(0x4,_0x35d996[_0x2766d8(0x403)]),_0x400e7c(0x5,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x565640[_0x2766d8(0x248)])),_0x400e7c(0x6,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x36f6fd)),_0x400e7c(0x7,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x517ad0))],_0x243495);let _0x1ffec1=class extends _0x35d996[_0x2766d8(0x491)]{constructor(_0x53e638,_0x53e61b,_0x1494f3){const _0x1b6018=_0x2766d8;super(),this[_0x1b6018(0x429)]=_0x53e638,this[_0x1b6018(0x482)]=_0x53e61b,this['_shapeRenderController']=_0x1494f3,this['_initPrinting']();}[_0x2766d8(0x326)](){const _0x580397=_0x2766d8;this[_0x580397(0x271)](this[_0x580397(0x429)][_0x580397(0x41a)]['intercept'](this[_0x580397(0x429)]['interceptor']['getInterceptPoints']()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x138022,_0x1d1c88,_0x1449ca)=>{const _0xf7e19a=_0x580397;var _0x501a27;let {unitId:_0x10a75e,subUnitId:_0x305c5f,scene:_0x32225c,resourceCollector:_0x48d445}=_0x1d1c88,_0x474f8c=(_0x501a27=this[_0xf7e19a(0x482)][_0xf7e19a(0x1f8)](_0x10a75e))==null?void 0x0:_0x501a27[_0x305c5f];return _0x474f8c==null||_0x474f8c['order'][_0xf7e19a(0x528)](_0x497f3d=>{const _0x55f9f8=_0xf7e19a;let _0x40d77c=_0x474f8c[_0x55f9f8(0x3ee)][_0x497f3d];_0x40d77c[_0x55f9f8(0x313)]===_0x35d996['DrawingTypeEnum'][_0x55f9f8(0x4ba)]&&!_0x40d77c[_0x55f9f8(0x263)]&&this['_shapeRenderController'][_0x55f9f8(0x34a)](_0x40d77c,_0x32225c,{'resourceCollector':_0x48d445});}),_0x1449ca(_0x138022);}}));}};_0x1ffec1=_0x39c461([_0x400e7c(0x0,(0x0,_0x35d996['Inject'])(_0x590c15[_0x2766d8(0x49d)])),_0x400e7c(0x1,_0x2ed59f['IDrawingManagerService']),_0x400e7c(0x2,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x319285))],_0x1ffec1);let _0x126f61=class extends _0x35d996[_0x2766d8(0x491)]{constructor(_0x182302,_0x5b2459,_0x427424,_0x166b51){const _0x359da9=_0x2766d8;super(),this[_0x359da9(0x54f)]=_0x182302,this[_0x359da9(0x251)]=_0x5b2459,this[_0x359da9(0x2d4)]=_0x427424,this[_0x359da9(0x2f9)]=_0x166b51,this[_0x359da9(0x320)]();}[_0x2766d8(0x320)](){const _0x6b3bec=_0x2766d8;let _0x5d3eac=new Set([_0x33bf3b['id'],_0x565640[_0x6b3bec(0x5d8)]['id'],_0x565640[_0x6b3bec(0x1ee)]['id'],_0x565640[_0x6b3bec(0x47b)]['id'],_0x565640['UpdateLineShapeResizeCommand']['id']]);this[_0x6b3bec(0x271)](this[_0x6b3bec(0x54f)][_0x6b3bec(0x20e)](_0xadae73=>{const _0x3e5517=_0x6b3bec;let _0x81b8b2,_0xa56bce;if(_0xadae73['id']===_0x565640[_0x3e5517(0x242)]['id']||_0xadae73['id']===_0x565640[_0x3e5517(0x44c)]['id']||_0xadae73['id']===_0x565640[_0x3e5517(0x50b)]['id']){let _0xb40ecd=_0xadae73[_0x3e5517(0x1db)];_0x81b8b2=_0xb40ecd[_0x3e5517(0x280)],_0xa56bce=_0xb40ecd[_0x3e5517(0x35e)];}else{if(_0x5d3eac[_0x3e5517(0x51e)](_0xadae73['id'])){let _0x432179=(0x0,_0x2a684c[_0x3e5517(0x231)])(this['_univerInstanceService'],_0xadae73[_0x3e5517(0x1db)]);if((_0x432179==null?void 0x0:_0x432179[_0x3e5517(0x4ec)][_0x3e5517(0x5cf)]()['type'])!==_0x35d996['SheetTypes'][_0x3e5517(0x367)])return;_0x81b8b2=_0x432179[_0x3e5517(0x280)],_0xa56bce=_0x432179[_0x3e5517(0x35e)];}}_0x81b8b2&&_0xa56bce&&(this['_sheetPermissionCheckController'][_0x3e5517(0x5b6)]({'workbookTypes':[_0x2a684c[_0x3e5517(0x4c0)]],'worksheetTypes':[_0x2a684c['WorksheetEditPermission']]},_0x81b8b2,_0xa56bce)||this['_sheetPermissionCheckController'][_0x3e5517(0x58e)](this[_0x3e5517(0x2d4)]['t']('sheets-shape-ui.permission.editErr')));}));}};_0x126f61=_0x39c461([_0x400e7c(0x0,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x35d996[_0x2766d8(0x3c6)])),_0x400e7c(0x1,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x35d996[_0x2766d8(0x403)])),_0x400e7c(0x2,(0x0,_0x35d996['Inject'])(_0x35d996[_0x2766d8(0x5d0)])),_0x400e7c(0x3,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x2a684c[_0x2766d8(0x518)]))],_0x126f61);let _0x9476a3=class{constructor(_0x4a8cf4){const _0x323030=_0x2766d8;this[_0x323030(0x4bb)]=_0x4a8cf4;}[_0x2766d8(0x36f)](_0x573ee6,_0x27c233){const _0x31606a=_0x2766d8;let _0x5e1010=this['_renderManagerService'][_0x31606a(0x4ee)](_0x573ee6['unitId']),_0x191b2b=_0x5e1010==null?void 0x0:_0x5e1010['scene'];if(!_0x191b2b)return;let _0x4f8237=(0x0,_0x2ed59f['getDrawingShapeKeyByDrawingSearch'])(_0x573ee6),_0xc14347=_0x191b2b[_0x31606a(0x1e9)](_0x4f8237);_0xc14347==null||_0xc14347[_0x31606a(0x23c)](_0x27c233);}};_0x9476a3=_0x39c461([_0x400e7c(0x0,_0x580d8a[_0x2766d8(0x266)])],_0x9476a3);let _0x318337=class extends _0x35d996[_0x2766d8(0x39f)]{constructor(_0x4b5f98=_0x5a65ec,_0x509ca4,_0x5d0259,_0xf27987,_0x3583ff){const _0x2ccb18=_0x2766d8;super(),this['_config']=_0x4b5f98,this[_0x2ccb18(0x451)]=_0x509ca4,this[_0x2ccb18(0x54f)]=_0x5d0259,this[_0x2ccb18(0x285)]=_0xf27987,this[_0x2ccb18(0x4bb)]=_0x3583ff;let {..._0x5adada}=(0x0,_0x35d996[_0x2ccb18(0x30b)])({},_0x5a65ec,this['_config']);this[_0x2ccb18(0x285)]['setConfig'](_0xedbf59,_0x5adada),this[_0x2ccb18(0x28e)]();}['onStarting'](){const _0x20fc1e=_0x2766d8;this[_0x20fc1e(0x451)]['add']([_0x46a7ae]),this[_0x20fc1e(0x451)]['get'](_0x46a7ae),(0x0,_0x35d996['registerDependencies'])(this[_0x20fc1e(0x451)],[[_0x224297],[_0xc945f6],[_0x319285],[_0x1ffec1],[_0x9476a3],[_0x4a54d8],[_0x563547],[_0x538cf9],[_0x126f61]]);}[_0x2766d8(0x219)](){const _0x41ff6f=_0x2766d8;(0x0,_0x35d996[_0x41ff6f(0x59f)])(this[_0x41ff6f(0x451)],[[_0x517ad0],[_0x36f6fd],[_0x3d86f3]]),(0x0,_0x35d996[_0x41ff6f(0x51a)])(this['_injector'],[[_0x3d86f3],[_0x36f6fd]]),[[_0x517ad0],[_0x22d196],[_0x243495],[_0x187142]][_0x41ff6f(0x528)](_0x1485bb=>{const _0x247a73=_0x41ff6f;this['disposeWithMe'](this[_0x247a73(0x4bb)]['registerRenderModule'](_0x35d996[_0x247a73(0x31d)][_0x247a73(0x3de)],_0x1485bb));});}[_0x2766d8(0x526)](){const _0x454af9=_0x2766d8;(0x0,_0x35d996[_0x454af9(0x51a)])(this[_0x454af9(0x451)],[[_0x224297],[_0xc945f6],[_0x319285],[_0x1ffec1],[_0x9476a3],[_0x4a54d8],[_0x563547],[_0x538cf9],[_0x126f61]]);}[_0x2766d8(0x560)](){const _0x4f93d8=_0x2766d8;this[_0x4f93d8(0x451)][_0x4f93d8(0x340)](_0x224297)[_0x4f93d8(0x34f)]();}[_0x2766d8(0x28e)](){[_0x3a6254,_0x33bf3b,_0x482521,_0x279e80]['forEach'](_0x582095=>this['disposeWithMe'](this['_commandService']['registerCommand'](_0x582095)));}};_0x2a4a7a(_0x318337,'type',_0x35d996[_0x2766d8(0x31d)][_0x2766d8(0x3de)]),_0x2a4a7a(_0x318337,_0x2766d8(0x4be),_0x2766d8(0x26a)),_0x2a4a7a(_0x318337,_0x2766d8(0x4db),_0x5bde27),_0x2a4a7a(_0x318337,_0x2766d8(0x4da),_0x48a452),_0x318337=_0x39c461([(0x0,_0x35d996['DependentOn'])(_0x64ee3d[_0x2766d8(0x323)],_0x156373['UniverDocsPlugin'],_0x2ed59f[_0x2766d8(0x3b5)],_0x580d8a['UniverRenderEnginePlugin'],_0x2a684c[_0x2766d8(0x3d4)],_0x3a1af6['UniverDocsUIPlugin'],_0x47830d[_0x2766d8(0x310)],_0x1ad5b7['UniverShapeEditorPlugin'],_0x353806[_0x2766d8(0x29a)],_0x565640[_0x2766d8(0x2e6)],_0x590c15[_0x2766d8(0x555)],_0x197fcc['UniverShapeEditorMobileUIPlugin'],_0x23e778['UniverMobileUIPlugin']),_0x400e7c(0x1,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x35d996[_0x2766d8(0x4c2)])),_0x400e7c(0x2,_0x35d996[_0x2766d8(0x3c6)]),_0x400e7c(0x3,_0x35d996[_0x2766d8(0x51d)]),_0x400e7c(0x4,_0x580d8a[_0x2766d8(0x266)])],_0x318337);let _0x13ccc7={'type':_0x35d996[_0x2766d8(0x309)][_0x2766d8(0x225)],'id':_0x2766d8(0x381),'handler'(){return!0x0;}};function _0x2b8071(){const _0x301cce=_0x2766d8;let _0x12f905=(0x0,_0x23e778[_0x301cce(0x4e0)])(_0x2ed59f[_0x301cce(0x554)]),_0x272074=(0x0,_0x23e778[_0x301cce(0x4c4)])(()=>_0x12f905[_0x301cce(0x2a3)],_0x12f905[_0x301cce(0x5bb)](),!0x1,[_0x12f905]);return _0x272074[_0x301cce(0x2f1)]===0x0?null:(0x0,_0x121104[_0x301cce(0x4f2)])(_0x301cce(0x3b3),{'children':(0x0,_0x121104[_0x301cce(0x34b)])(_0x301cce(0x3b3),{'className':_0x301cce(0x422),'children':[(0x0,_0x121104[_0x301cce(0x4f2)])(_0x2c4f7e[_0x301cce(0x363)],{'drawings':_0x272074,'hasCropper':!0x1}),(0x0,_0x121104[_0x301cce(0x4f2)])(_0x353806['SheetDrawingAnchor'],{'drawings':_0x272074})]})});}function _0x2460bd(_0x147a8d){const _0xd661bb=_0x2766d8;let {unitId:_0x13d4a1,subUnitId:_0x201273,shapeId:_0x46ba43}=_0x147a8d,_0x18b66d=(0x0,_0x23e778[_0xd661bb(0x4e0)])(_0x35d996[_0xd661bb(0x3c6)]),_0x4f6e4d=(0x0,_0x23e778[_0xd661bb(0x4e0)])(_0x9476a3);return(0x0,_0x121104[_0xd661bb(0x4f2)])(_0x197fcc[_0xd661bb(0x253)],{..._0x147a8d,'positionEditor':(0x0,_0x121104['jsx'])(_0x2b8071,{}),'onUpdateShapeData':(_0x1951ff,_0x2cf7a7)=>{_0x5b243b(_0x18b66d,_0x13d4a1,_0x201273,_0x46ba43,_0x1951ff,_0x2cf7a7);},'onUpdateLineShapeData':(_0x3472d6,_0x29bcbb)=>{_0x1d5713(_0x18b66d,_0x13d4a1,_0x201273,_0x46ba43,_0x3472d6,_0x29bcbb);},'onUpdateShapeFillImage':_0x3cf04e=>{const _0x4e6b70=_0xd661bb;_0x4f6e4d[_0x4e6b70(0x36f)]({'unitId':_0x13d4a1,'subUnitId':_0x201273,'drawingId':_0x46ba43},_0x3cf04e);}});}function _0x193f73(_0x3da6ec){const _0x617bc5=_0x2766d8;let _0x37e457=(0x0,_0x23e778[_0x617bc5(0x4e0)])(_0x197fcc[_0x617bc5(0x2d1)]),_0x11328b=(0x0,_0x23e778[_0x617bc5(0x4c4)])(()=>_0x37e457[_0x617bc5(0x30e)],_0x37e457[_0x617bc5(0x56f)](),!0x1,[_0x37e457]),_0x348034=_0x3da6ec[_0x617bc5(0x32b)]['extraProps'];return!_0x348034||!_0x11328b?null:(0x0,_0x121104[_0x617bc5(0x4f2)])(_0x3ee576,{..._0x348034,'canvasElement':_0x3da6ec[_0x617bc5(0x32b)][_0x617bc5(0x4d0)]});}function _0x3ee576(_0x47dfb1){const _0x7797cf=_0x2766d8;let _0x3374ec=(0x0,_0x23e778['useDependency'])(_0x35d996[_0x7797cf(0x3c6)]),_0x4421a5=(0x0,_0x23e778[_0x7797cf(0x4e0)])(_0x565640[_0x7797cf(0x248)]),{unitId:_0x4f078b,subUnitId:_0x23e8c2,drawingId:_0x519865,drawingType:_0x5a4830,shapeType:_0x2f7213}=_0x47dfb1,[_0x4c55e8,_0x2f22f7]=(0x0,_0x3d354c[_0x7797cf(0x397)])(_0x47dfb1[_0x7797cf(0x23b)]),_0x2a22ab=(0x0,_0x3d354c[_0x7797cf(0x21e)])(()=>(0x0,_0x197fcc[_0x7797cf(0x22d)])(_0x4c55e8),[_0x4c55e8]),_0x232752=(0x0,_0x3d354c[_0x7797cf(0x21e)])(()=>(0x0,_0x197fcc[_0x7797cf(0x1ec)])(_0x4c55e8),[_0x4c55e8]);(0x0,_0x3d354c[_0x7797cf(0x4fc)])(()=>{const _0x4e8092=_0x7797cf;let _0x6ee3ca=_0x3374ec[_0x4e8092(0x3f5)](_0x5e31a5=>{const _0x47092f=_0x4e8092;if(_0x5e31a5['id']!==_0x565640['UpdateSheetsShapeDataMutation']['id'])return;let _0x1fe561=_0x4421a5[_0x47092f(0x3ec)](_0x4f078b,_0x23e8c2,_0x519865);_0x1fe561&&_0x2f22f7(_0x1fe561);});return()=>_0x6ee3ca[_0x4e8092(0x2a4)]();},[_0x3374ec,_0x519865,_0x4421a5,_0x23e8c2,_0x4f078b]);let _0x2a289d=_0x135f0c=>{_0x2f22f7(_0x4642f1=>({..._0x4642f1,..._0x135f0c}));},_0x43d189=_0x1a1015=>{const _0x5a7b6=_0x7797cf;let _0x384dec=(0x0,_0x197fcc[_0x5a7b6(0x485)])(_0x4c55e8,_0x1a1015);_0x5b243b(_0x3374ec,_0x4f078b,_0x23e8c2,_0x519865,{'oldShapeData':{'shapeText':_0x4c55e8['shapeText']}},_0x384dec),_0x2a289d(_0x384dec);},_0x147a11=(0x0,_0x197fcc[_0x7797cf(0x3d3)])({'hostType':_0x35d996[_0x7797cf(0x31d)][_0x7797cf(0x3de)],'unitId':_0x4f078b,'subUnitId':_0x23e8c2,'shapeId':_0x519865,'shapeData':_0x4c55e8,'onUpdateBinding':_0x534754=>{const _0x1caf00=_0x7797cf;let _0x53cf4c={'formulaBinding':_0x534754};_0x5b243b(_0x3374ec,_0x4f078b,_0x23e8c2,_0x519865,{'oldShapeData':{'formulaBinding':_0x4c55e8[_0x1caf00(0x405)]}},_0x53cf4c),_0x2a289d(_0x53cf4c);}});return(0x0,_0x121104[_0x7797cf(0x34b)])(_0x121104['Fragment'],{'children':[(0x0,_0x121104[_0x7797cf(0x4f2)])(_0x197fcc[_0x7797cf(0x3c1)],{'canvasElement':_0x47dfb1['canvasElement'],'shapeData':_0x4c55e8,'shapeType':_0x2f7213,'textStyle':{'ff':_0x1f2a15[_0x7797cf(0x540)][_0x7797cf(0x3c0)]['fontFamily'],'fs':_0x1f2a15[_0x7797cf(0x540)][_0x7797cf(0x3c0)][_0x7797cf(0x2da)],'cl':{'rgb':_0x1f2a15[_0x7797cf(0x540)][_0x7797cf(0x3c0)][_0x7797cf(0x4cb)]},..._0x2a22ab},'textModel':_0x232752?{'ha':_0x232752['ha']??_0x35d996['HorizontalAlign'][_0x7797cf(0x5a2)],'va':_0x232752['va']??_0x35d996[_0x7797cf(0x504)][_0x7797cf(0x464)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x1f2a15[_0x7797cf(0x540)][_0x7797cf(0x5ed)],'defaultGradientEndColor':_0x1f2a15['ShapeDefaultConfig'][_0x7797cf(0x453)],'defaultStrokeColor':_0x1f2a15['ShapeDefaultConfig'][_0x7797cf(0x3b4)],'extensionGroups':_0x147a11[_0x7797cf(0x388)],'floatingObjectToolbarPosition':_0x23e778[_0x7797cf(0x50d)][_0x7797cf(0x3f2)],'onUpdateShapeData':(_0x14a64c,_0x21e629)=>{_0x5b243b(_0x3374ec,_0x4f078b,_0x23e8c2,_0x519865,_0x14a64c,_0x21e629),_0x21e629&&_0x2a289d(_0x21e629);},'onUpdateText':_0x43d189,'onOpenPanel':()=>{const _0x39b1df=_0x7797cf;_0x3374ec[_0x39b1df(0x3d1)](_0x236e1f['id'],{'unitId':_0x4f078b,'subUnitId':_0x23e8c2,'drawingId':_0x519865});},'onDelete':()=>{_0x3374ec['executeCommand'](_0x47830d['RemoveSheetDrawingCommand']['id'],{'unitId':_0x4f078b,'drawings':[{'unitId':_0x4f078b,'subUnitId':_0x23e8c2,'drawingId':_0x519865,'drawingType':_0x5a4830}]});}}),_0x147a11[_0x7797cf(0x37a)]]});}function _0x1ecf10(_0x442a04){const _0x435cd9=_0x2766d8;return!!_0x442a04&&_0x435cd9(0x4d5)in _0x442a04&&_0x435cd9(0x45f)in _0x442a04;}let _0x7f7270=(0x0,_0x3d354c[_0x2766d8(0x4eb)])(()=>{const _0x15e7a1=_0x2766d8;let _0x41b128=(0x0,_0x23e778[_0x15e7a1(0x4e0)])(_0x4a54d8),_0x40c601=(0x0,_0x23e778[_0x15e7a1(0x4e0)])(_0x565640[_0x15e7a1(0x248)]),_0x3df27e=(0x0,_0x23e778[_0x15e7a1(0x4e0)])(_0x2ed59f[_0x15e7a1(0x554)]),_0x4ae617=(0x0,_0x23e778['useDependency'])(_0x35d996['ICommandService']),_0x163251=(0x0,_0x23e778[_0x15e7a1(0x4e0)])(_0x23e778[_0x15e7a1(0x26f)]),_0x3bfac4=(0x0,_0x23e778[_0x15e7a1(0x4e0)])(_0x580d8a['IRenderManagerService']),_0x52d7b1=(0x0,_0x3d354c['useMemo'])(()=>({'getShapeModel':(_0x55520d,_0x290eed,_0x4dc62b)=>_0x40c601[_0x15e7a1(0x338)](_0x55520d,_0x290eed,_0x4dc62b),'getShapeData':(_0x5c752b,_0x1f105c,_0x300c51)=>_0x40c601[_0x15e7a1(0x3ec)](_0x5c752b,_0x1f105c,_0x300c51),'getDrawingTransform':(_0xa4de83,_0x2aef99,_0x2f0b8f)=>{const _0x52d7ce=_0x15e7a1;let _0x3aa12b=_0x3df27e[_0x52d7ce(0x26d)]({'unitId':_0xa4de83,'subUnitId':_0x2aef99,'drawingId':_0x2f0b8f});return _0x3aa12b==null?void 0x0:_0x3aa12b[_0x52d7ce(0x339)];},'updateShapeText':({unitId:_0x1de90d,subUnitId:_0x2f7c23,shapeId:_0x49af8a,shapeText:_0x2cb72d,oldShapeText:_0x5b523d,hostSize:_0x1644f3})=>{_0x163251['run'](_0x1de90d,()=>{const _0x4b0925=_0x231f;var _0x3d6586;let _0x194761=_0x4ae617[_0x4b0925(0x478)](_0x33bf3b['id'],{'unitId':_0x1de90d,'subUnitId':_0x2f7c23,'shapeId':_0x49af8a,'shapeData':{'shapeText':_0x2cb72d},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x5b523d}}});if(!_0x194761||!_0x1644f3)return _0x194761;let _0x41d67b=_0x3df27e[_0x4b0925(0x26d)]({'unitId':_0x1de90d,'subUnitId':_0x2f7c23,'drawingId':_0x49af8a}),_0x223dec=_0x41d67b==null?void 0x0:_0x41d67b[_0x4b0925(0x339)];if(!_0x1ecf10(_0x41d67b)||!_0x223dec)return!0x1;let _0x564c8c={..._0x223dec,'width':_0x1644f3[_0x4b0925(0x49e)],'height':_0x1644f3['height']},_0x38b318=(_0x3d6586=_0x3bfac4[_0x4b0925(0x4ee)](_0x1de90d))==null||(_0x3d6586=_0x3d6586['with'](_0x590c15['SheetSkeletonManagerService'])[_0x4b0925(0x1e2)](_0x2f7c23))==null?void 0x0:_0x3d6586[_0x4b0925(0x4c3)];return _0x4ae617['syncExecuteCommand'](_0x47830d['SetSheetDrawingCommand']['id'],{'unitId':_0x1de90d,'drawings':[{..._0x41d67b,'transform':_0x564c8c,'sheetTransform':_0x38b318?(0x0,_0x47830d[_0x4b0925(0x4aa)])(_0x564c8c,_0x38b318)??_0x41d67b['sheetTransform']:_0x41d67b[_0x4b0925(0x45f)],'axisAlignSheetTransform':_0x38b318?(0x0,_0x47830d[_0x4b0925(0x3ac)])(_0x564c8c,_0x38b318)??_0x41d67b[_0x4b0925(0x4d5)]:_0x41d67b['axisAlignSheetTransform']}]});});},'updateHostSize':({unitId:_0x3adb54,subUnitId:_0x599537,shapeId:_0x4e01a5,width:_0x358614,height:_0x5513cb})=>{const _0xaf1f09=_0x15e7a1;var _0x502339;let _0x3b5069=_0x3df27e[_0xaf1f09(0x26d)]({'unitId':_0x3adb54,'subUnitId':_0x599537,'drawingId':_0x4e01a5}),_0x3e71b2=_0x3b5069==null?void 0x0:_0x3b5069[_0xaf1f09(0x339)];if(!_0x1ecf10(_0x3b5069)||!_0x3e71b2)return;let _0x5c113a={..._0x3e71b2,'width':_0x358614,'height':_0x5513cb},_0x108ab1=(_0x502339=_0x3bfac4['getRenderUnitById'](_0x3adb54))==null||(_0x502339=_0x502339[_0xaf1f09(0x28f)](_0x590c15['SheetSkeletonManagerService'])[_0xaf1f09(0x1e2)](_0x599537))==null?void 0x0:_0x502339[_0xaf1f09(0x4c3)],_0x3f4a09=_0x108ab1?(0x0,_0x47830d[_0xaf1f09(0x4aa)])(_0x5c113a,_0x108ab1)??_0x3b5069['sheetTransform']:_0x3b5069['sheetTransform'],_0x4a225c=_0x108ab1?(0x0,_0x47830d['transformToAxisAlignPosition'])(_0x5c113a,_0x108ab1)??_0x3b5069[_0xaf1f09(0x4d5)]:_0x3b5069[_0xaf1f09(0x4d5)];_0x4ae617['executeCommand'](_0x47830d['SetSheetDrawingCommand']['id'],{'unitId':_0x3adb54,'drawings':[{..._0x3b5069,'transform':_0x5c113a,'sheetTransform':_0x3f4a09,'axisAlignSheetTransform':_0x4a225c}]});},'allowHostSizeShrink':({unitId:_0x567956,subUnitId:_0x303687,shapeId:_0x4d2560})=>(0x0,_0x197fcc[_0x15e7a1(0x372)])(_0x40c601['getShapeDataById'](_0x567956,_0x303687,_0x4d2560)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x4ae617,_0x3df27e,_0x3bfac4,_0x40c601,_0x163251]),_0x1f8f93=(0x0,_0x3d354c['useMemo'])(()=>({'viewportKeys':{'main':_0x580d8a['SHEET_VIEWPORT_KEY']['VIEW_MAIN'],'leftTop':_0x580d8a[_0x15e7a1(0x48f)]['VIEW_MAIN_LEFT_TOP'],'top':_0x580d8a[_0x15e7a1(0x48f)][_0x15e7a1(0x48e)],'left':_0x580d8a['SHEET_VIEWPORT_KEY'][_0x15e7a1(0x3b9)]},'getSkeleton':(_0x38e30c,_0x55a708)=>{const _0x5650f5=_0x15e7a1;var _0x3f6832;return((_0x3f6832=_0x38e30c['with'](_0x590c15[_0x5650f5(0x599)])[_0x5650f5(0x1e2)](_0x55a708[_0x5650f5(0x35e)]))==null?void 0x0:_0x3f6832[_0x5650f5(0x4c3)])??null;}}),[]);return(0x0,_0x121104[_0x15e7a1(0x4f2)])(_0x197fcc[_0x15e7a1(0x277)],{'adapter':_0x52d7b1,'editingService':_0x41b128,'editorUnitId':_0xde4401,'positionOptions':_0x1f8f93});}),_0x5b452d=class extends _0x35d996[_0x2766d8(0x491)]{constructor(_0xe98c74,_0xcfa9c6){const _0x1a6abc=_0x2766d8;super(),this[_0x1a6abc(0x442)]=_0xe98c74,this[_0x1a6abc(0x2ca)]=_0xcfa9c6,this['_registerIcons'](),this[_0x1a6abc(0x383)]();}['_registerIcons'](){const _0x2f4c7f=_0x2766d8;this['_iconManager'][_0x2f4c7f(0x51e)](_0x2f4c7f(0x3a5))||this['disposeWithMe'](this[_0x2f4c7f(0x2ca)][_0x2f4c7f(0x495)]({'ObjectLayersIcon':_0x5f2102})),this[_0x2f4c7f(0x2ca)][_0x2f4c7f(0x51e)](_0x2f4c7f(0x2cb))||this[_0x2f4c7f(0x271)](this[_0x2f4c7f(0x2ca)][_0x2f4c7f(0x495)]({'FlipHorizontalIcon':_0x3e9cd9})),this[_0x2f4c7f(0x2ca)][_0x2f4c7f(0x51e)](_0x2f4c7f(0x1d5))||this[_0x2f4c7f(0x271)](this[_0x2f4c7f(0x2ca)][_0x2f4c7f(0x495)]({'FlipVerticalIcon':_0x4ae031})),this[_0x2f4c7f(0x2ca)][_0x2f4c7f(0x51e)](_0x2f4c7f(0x44e))||this['disposeWithMe'](this[_0x2f4c7f(0x2ca)][_0x2f4c7f(0x495)]({'BottomIcon':_0x460267})),this[_0x2f4c7f(0x2ca)][_0x2f4c7f(0x51e)](_0x2f4c7f(0x2b9))||this[_0x2f4c7f(0x271)](this['_iconManager'][_0x2f4c7f(0x495)]({'MoveDownIcon':_0x5e159d})),this['_iconManager'][_0x2f4c7f(0x51e)](_0x2f4c7f(0x4a5))||this['disposeWithMe'](this['_iconManager'][_0x2f4c7f(0x495)]({'MoveUpIcon':_0xf77df5})),this['_iconManager']['has'](_0x2f4c7f(0x3c2))||this[_0x2f4c7f(0x271)](this[_0x2f4c7f(0x2ca)][_0x2f4c7f(0x495)]({'ShapeFormatSettingIcon':_0x26b4c5})),this[_0x2f4c7f(0x2ca)]['has'](_0x2f4c7f(0x2ad))||this['disposeWithMe'](this['_iconManager'][_0x2f4c7f(0x495)]({'TopmostIcon':_0x222f4e}));}['_registerComponents'](){const _0x3c63f6=_0x2766d8;this['disposeWithMe'](this['_componentManager']['register'](_0x462378,_0x2460bd)),this[_0x3c63f6(0x271)](this[_0x3c63f6(0x442)][_0x3c63f6(0x495)](_0x5bd6d7,_0x1ba86f)),this[_0x3c63f6(0x271)](this[_0x3c63f6(0x442)][_0x3c63f6(0x495)](_0x2ae931,_0x10d6b6)),this['disposeWithMe'](this[_0x3c63f6(0x442)]['register'](_0x4aafa5,_0x58ceb1)),this[_0x3c63f6(0x442)]['hasDefault'](_0x2c4f7e[_0x3c63f6(0x368)])||this[_0x3c63f6(0x271)](this[_0x3c63f6(0x442)][_0x3c63f6(0x495)](_0x2c4f7e[_0x3c63f6(0x368)],_0x275f06)),this['disposeWithMe'](this['_componentManager'][_0x3c63f6(0x495)](_0x26c51d,_0x193f73)),this['disposeWithMe'](this[_0x3c63f6(0x442)][_0x3c63f6(0x495)](_0x1ede14,_0x162bf7)),this[_0x3c63f6(0x271)](this[_0x3c63f6(0x442)][_0x3c63f6(0x495)](_0x361901,_0x13902d)),this[_0x3c63f6(0x271)](this[_0x3c63f6(0x442)][_0x3c63f6(0x495)](_0x4d4286,_0x5ce8e4)),this['disposeWithMe'](this[_0x3c63f6(0x442)][_0x3c63f6(0x495)](_0x20dc16,_0xd69ed3)),this[_0x3c63f6(0x271)](this[_0x3c63f6(0x442)][_0x3c63f6(0x495)](_0x26dfdd,_0x197fcc[_0x3c63f6(0x325)])),this[_0x3c63f6(0x271)](this['_componentManager']['register'](_0x3c63f6(0x43d),_0x7f7270));}};_0x5b452d=_0x39c461([_0x400e7c(0x0,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x23e778[_0x2766d8(0x36a)])),_0x400e7c(0x1,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x23e778[_0x2766d8(0x211)]))],_0x5b452d);let _0x21f1ca=class extends _0x35d996[_0x2766d8(0x491)]{constructor(_0x301e39,_0x5e35fd,_0x7fed45,_0x313317,_0xa869a9,_0x1c7299,_0x45d7fa,_0x1f1664,_0x23adeb){const _0x3b12a9=_0x2766d8;super();let _0x242dd1=_0x57b09d=>{const _0x255867=_0x231f;var _0x3c0ef,_0x1d07b6;return(((_0x3c0ef=_0x1f1664[_0x255867(0x5ec)](new _0x2a684c['WorkbookEditablePermission'](_0x57b09d['unitId'])['id']))==null?void 0x0:_0x3c0ef[_0x255867(0x58f)])??!0x0)&&(((_0x1d07b6=_0x1f1664[_0x255867(0x5ec)](new _0x2a684c[(_0x255867(0x59b))](_0x57b09d[_0x255867(0x280)],_0x57b09d[_0x255867(0x35e)])['id']))==null?void 0x0:_0x1d07b6['value'])??!0x0);},_0x2cfa0a=_0xb1e403=>_0xb1e403['shapeId']&&_0x242dd1(_0xb1e403)?_0x7fed45[_0x3b12a9(0x3ec)](_0xb1e403['unitId'],_0xb1e403[_0x3b12a9(0x35e)],_0xb1e403[_0x3b12a9(0x2a8)])??null:null,_0x3b4dc1=()=>{const _0x2b6b04=_0x3b12a9;let _0x18d527=_0xa869a9[_0x2b6b04(0x5bb)](),_0x1964ad=_0x18d527[_0x2b6b04(0x2f1)]===0x1?_0x18d527[0x0]:null;return(_0x1964ad==null?void 0x0:_0x1964ad[_0x2b6b04(0x313)])===_0x35d996[_0x2b6b04(0x44f)][_0x2b6b04(0x4ba)]&&_0x1964ad['unitId']===_0x301e39[_0x2b6b04(0x280)]?{'unitId':_0x1964ad[_0x2b6b04(0x280)],'subUnitId':_0x1964ad[_0x2b6b04(0x35e)],'shapeId':_0x1964ad[_0x2b6b04(0x314)]}:null;};this[_0x3b12a9(0x271)]((0x0,_0x197fcc[_0x3b12a9(0x20a)])(_0x301e39,_0x5e35fd,{'changes$':(0x0,_0x4737d9[_0x3b12a9(0x30b)])(_0xa869a9[_0x3b12a9(0x2a3)],_0x313317[_0x3b12a9(0x4b4)],_0x1f1664[_0x3b12a9(0x2bd)]),'isActive':()=>{const _0x1c3a31=_0x3b12a9;var _0x499a9e;return((_0x499a9e=_0x1c7299['getFocusedUnit']())==null?void 0x0:_0x499a9e[_0x1c3a31(0x331)]())===_0x301e39[_0x1c3a31(0x280)]&&!_0x45d7fa['getContextValue'](_0x35d996[_0x1c3a31(0x595)])&&_0xa869a9[_0x1c3a31(0x5bb)]()[_0x1c3a31(0x5c8)](_0x5949e5=>_0x5949e5[_0x1c3a31(0x280)]===_0x301e39[_0x1c3a31(0x280)]);},'getSelectedTarget':_0x3b4dc1,'getSource':()=>{let _0x3f264d=_0x3b4dc1();return _0x3f264d?_0x2cfa0a(_0x3f264d):null;},'getTarget':_0x4e47ba=>{const _0x3569c4=_0x3b12a9;let _0x36baba=_0x301e39[_0x3569c4(0x394)][_0x3569c4(0x54d)](new _0x580d8a['Vector2'](_0x4e47ba[_0x3569c4(0x300)],_0x4e47ba[_0x3569c4(0x4e8)]));if(!(_0x36baba instanceof _0x423ac6))return null;let _0x47d44d={'unitId':_0x301e39[_0x3569c4(0x280)],'subUnitId':_0x36baba[_0x3569c4(0x35e)],'shapeId':_0x36baba[_0x3569c4(0x2a8)]};return _0x242dd1(_0x47d44d)?_0x47d44d:null;},'getShape':_0x2cfa0a,'update':(_0x34f12d,_0x364a4e,_0xa12d6a)=>_0x23adeb[_0x3b12a9(0x3d1)](_0x33bf3b['id'],{..._0x34f12d,'shapeData':_0xa12d6a,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x364a4e}})}));}};_0x21f1ca=_0x39c461([_0x400e7c(0x1,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x23e778[_0x2766d8(0x375)])),_0x400e7c(0x2,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x565640['SheetsShapeService'])),_0x400e7c(0x3,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x4a54d8)),_0x400e7c(0x4,_0x2ed59f[_0x2766d8(0x554)]),_0x400e7c(0x5,_0x35d996[_0x2766d8(0x403)]),_0x400e7c(0x6,_0x35d996[_0x2766d8(0x58d)]),_0x400e7c(0x7,_0x35d996[_0x2766d8(0x359)]),_0x400e7c(0x8,_0x35d996[_0x2766d8(0x3c6)])],_0x21f1ca);let _0x1d7f3f=_0x2766d8(0x262),_0x4fbfb1=class extends _0x35d996[_0x2766d8(0x491)]{constructor(_0x4512e4,_0x2df373,_0x3ce342,_0x138a5f,_0x1eb0c1,_0x20f9e7){const _0x5f24df=_0x2766d8;super(),this[_0x5f24df(0x344)]=_0x4512e4,this['_ribbonService']=_0x2df373,this[_0x5f24df(0x482)]=_0x3ce342,this[_0x5f24df(0x251)]=_0x138a5f,this[_0x5f24df(0x4bb)]=_0x1eb0c1,this['_shapeFloatingToolbarService']=_0x20f9e7,_0x2a4a7a(this,_0x5f24df(0x427),!0x1),this['_menuManagerService'][_0x5f24df(0x228)](_0x4320ab),this[_0x5f24df(0x271)]((0x0,_0x35d996[_0x5f24df(0x306)])(this[_0x5f24df(0x482)][_0x5f24df(0x2a3)][_0x5f24df(0x56a)](()=>this[_0x5f24df(0x2e2)]()))),this[_0x5f24df(0x2e2)]();}[_0x2766d8(0x2a4)](){const _0x3fb18b=_0x2766d8;this[_0x3fb18b(0x418)][_0x3fb18b(0x278)](!0x1,_0x1d7f3f),this[_0x3fb18b(0x3aa)](),super['dispose']();}[_0x2766d8(0x2e2)](){const _0x113efc=_0x2766d8;var _0x23c1c0;let _0x319872=this[_0x113efc(0x482)][_0x113efc(0x5bb)](),_0x96a3fb=_0x319872[_0x113efc(0x2f1)]===0x1?_0x319872[0x0]:void 0x0;if((_0x96a3fb==null?void 0x0:_0x96a3fb[_0x113efc(0x313)])!==_0x35d996['DrawingTypeEnum'][_0x113efc(0x4ba)]||this[_0x113efc(0x251)][_0x113efc(0x29d)](_0x96a3fb['unitId'])!==_0x35d996[_0x113efc(0x31d)][_0x113efc(0x3de)]){this[_0x113efc(0x418)][_0x113efc(0x278)](!0x1,_0x1d7f3f),this[_0x113efc(0x3aa)]();return;}let _0x33456f=(_0x23c1c0=this[_0x113efc(0x4bb)][_0x113efc(0x4ee)](_0x96a3fb[_0x113efc(0x280)]))==null?void 0x0:_0x23c1c0['engine'][_0x113efc(0x201)](),_0x3c2578=(0x0,_0x197fcc['resolveShapeContextualRibbonHostMode'])(_0x33456f)===_0x113efc(0x2b0);this[_0x113efc(0x418)][_0x113efc(0x278)](_0x3c2578,_0x1d7f3f),_0x3c2578?this[_0x113efc(0x3aa)]():this['_visible']||(this[_0x113efc(0x427)]=!0x0,this[_0x113efc(0x59d)][_0x113efc(0x5c9)](_0x274130,{'activate':!0x0}));}[_0x2766d8(0x3aa)](){const _0x1861a6=_0x2766d8;this[_0x1861a6(0x427)]&&(this[_0x1861a6(0x427)]=!0x1,this[_0x1861a6(0x59d)]['hideContextualTab'](_0x274130),this[_0x1861a6(0x59d)][_0x1861a6(0x546)]([]));}};_0x4fbfb1=_0x39c461([_0x400e7c(0x0,_0x23e778[_0x2766d8(0x4e9)]),_0x400e7c(0x1,_0x23e778['IRibbonService']),_0x400e7c(0x2,_0x2ed59f[_0x2766d8(0x554)]),_0x400e7c(0x3,_0x35d996[_0x2766d8(0x403)]),_0x400e7c(0x4,_0x580d8a['IRenderManagerService']),_0x400e7c(0x5,(0x0,_0x35d996['Inject'])(_0x197fcc[_0x2766d8(0x2d1)]))],_0x4fbfb1);let _0x238545=class extends _0x197fcc[_0x2766d8(0x39e)]{constructor(_0x5acf8b,_0x5e59f9,_0x168a43,_0x305725,_0x52c241,_0x3c6cf3,_0x319de8,_0x48253f,_0x228120,_0x39aa7b){super(_0x5acf8b,_0x5e59f9,_0x168a43,_0x305725,_0x52c241,_0x3c6cf3,_0x319de8,_0x48253f,_0x228120,_0x39aa7b,{'componentKey':_0x26dfdd,'editorUnitId':_0xde4401});}};_0x238545=_0x39c461([_0x400e7c(0x1,(0x0,_0x35d996['Inject'])(_0x156373[_0x2766d8(0x43a)])),_0x400e7c(0x2,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x3a1af6[_0x2766d8(0x543)])),_0x400e7c(0x3,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x3a1af6[_0x2766d8(0x581)])),_0x400e7c(0x4,_0x35d996[_0x2766d8(0x3c6)]),_0x400e7c(0x5,(0x0,_0x35d996['Inject'])(_0x3a1af6[_0x2766d8(0x3fa)])),_0x400e7c(0x6,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x197fcc[_0x2766d8(0x36d)])),_0x400e7c(0x7,(0x0,_0x35d996['Inject'])(_0x156373['DocInterceptorService'])),_0x400e7c(0x8,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x3a1af6[_0x2766d8(0x208)])),_0x400e7c(0x9,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x4a54d8))],_0x238545);let _0x126fbb=class extends _0x197fcc[_0x2766d8(0x4c9)]{constructor(_0x499140,_0x10ab81,_0x33489d,_0x10d1c7,_0x2245c6){const _0x4f8e9e=_0x2766d8;super(_0x499140,_0x10ab81,{'editing$':_0x33489d['editingParams$'],'resolve':_0x4c523c=>{const _0x4618f9=_0x231f;var _0x5542e3,_0x3b0b66,_0x258081;let _0x3edccf=new _0x580d8a[(_0x4618f9(0x48d))](_0x4c523c[_0x4618f9(0x300)],_0x4c523c[_0x4618f9(0x4e8)]),_0x22e30c=((_0x5542e3=_0x499140['scene'][_0x4618f9(0x4ea)](_0x3edccf))==null?void 0x0:_0x5542e3['transformVector2SceneCoord'](_0x3edccf))??_0x3edccf,_0x168675=(0x0,_0x197fcc[_0x4618f9(0x289)])(_0x499140[_0x4618f9(0x394)][_0x4618f9(0x54d)](_0x3edccf)??null,_0x22e30c);if(!(_0x168675 instanceof _0x423ac6))return null;let _0x1896a1=_0x168675[_0x4618f9(0x3f9)](_0x22e30c);if(!_0x1896a1)return null;let _0x24b3df=_0x168675,_0x1f486d={'componentKey':_0x197fcc['ShapeTextHyperLinkInfo'][_0x4618f9(0x548)],'direction':_0x4618f9(0x3a7),'offset':[0x0,0xa],'onClickOutside':()=>_0x10ab81['hideInfoPopup']()};return{'object':_0x168675,'info':{..._0x1896a1,'unitId':_0x168675[_0x4618f9(0x280)],'subUnitId':_0x168675[_0x4618f9(0x35e)],'shapeKey':_0x168675[_0x4618f9(0x5ca)],'readonly':!0x0,'copyable':((_0x3b0b66=_0x2245c6[_0x4618f9(0x5ec)](new _0x2a684c['WorkbookCopyPermission'](_0x168675[_0x4618f9(0x280)])['id']))==null?void 0x0:_0x3b0b66['value'])!==!0x1&&((_0x258081=_0x2245c6['getPermissionPoint'](new _0x2a684c[(_0x4618f9(0x33c))](_0x168675[_0x4618f9(0x280)],_0x168675[_0x4618f9(0x35e)])['id']))==null?void 0x0:_0x258081[_0x4618f9(0x58f)])!==!0x1},'attachPopup':()=>_0x10d1c7[_0x4618f9(0x4dc)](_0x24b3df,_0x1f486d)};}}),this[_0x4f8e9e(0x271)](_0x499140['unit'][_0x4f8e9e(0x435)][_0x4f8e9e(0x56a)](()=>this['clear']()));}};_0x126fbb=_0x39c461([_0x400e7c(0x1,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x197fcc[_0x2766d8(0x36d)])),_0x400e7c(0x2,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x4a54d8)),_0x400e7c(0x3,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x590c15[_0x2766d8(0x3f4)])),_0x400e7c(0x4,_0x35d996[_0x2766d8(0x359)])],_0x126fbb);let _0x4c901c=class extends _0x35d996[_0x2766d8(0x491)]{constructor(_0x4a8105,_0x3ee3ee,_0x1748b5,_0x36df07,_0x3068d2,_0xa92501,_0x55bb51,_0x353cbc,_0x45c6c3,_0xdd2fab,_0x238c3c){const _0x537629=_0x2766d8;super(),this['_univerInstanceService']=_0x4a8105,this[_0x537629(0x2b5)]=_0x3ee3ee,this['_menuManagerService']=_0x1748b5,this['_sheetsShapeService']=_0x36df07,this['_localeService']=_0x3068d2,this['_commandService']=_0xa92501,this[_0x537629(0x482)]=_0x55bb51,this[_0x537629(0x5be)]=_0x353cbc,this['_contextService']=_0x45c6c3,this['_renderManagerService']=_0xdd2fab,this[_0x537629(0x21a)]=_0x238c3c,_0x2a4a7a(this,_0x537629(0x1fe),null),_0x2a4a7a(this,'_activeShapeInfo',null),_0x2a4a7a(this,'_isOpenedShapeEditPanel',!0x1),_0x2a4a7a(this,_0x537629(0x49c),0x0),_0x2a4a7a(this,'_shapePopupMenuDisposable',null),_0x2a4a7a(this,'_disposePopups',[]),this[_0x537629(0x5a8)](),this[_0x537629(0x271)](this[_0x537629(0x251)][_0x537629(0x3e9)](_0x35d996[_0x537629(0x31d)]['UNIVER_SHEET'])[_0x537629(0x56a)](_0x3502c1=>{const _0x515be3=_0x537629;if(!_0x3502c1){var _0x3e0043;(_0x3e0043=this[_0x515be3(0x1fe)])==null||_0x3e0043[_0x515be3(0x2a4)]();}})),this[_0x537629(0x556)](),this[_0x537629(0x34f)](),this[_0x537629(0x271)](this[_0x537629(0x21a)][_0x537629(0x4b4)]['subscribe'](_0x2c569a=>{_0x2c569a&&this['_clearPopups']();}));}[_0x2766d8(0x5a8)](){this['_menuManagerService']['mergeMenu'](_0x243f1d);}[_0x2766d8(0x34f)](){const _0x1ab41b=_0x2766d8;this[_0x1ab41b(0x5c1)]||=this[_0x1ab41b(0x271)]((0x0,_0x197fcc[_0x1ab41b(0x337)])(this[_0x1ab41b(0x4bb)],_0x35d996[_0x1ab41b(0x31d)][_0x1ab41b(0x3de)],_0x1e14aa=>this[_0x1ab41b(0x4bd)](_0x1e14aa)));}['_getShapeInfo'](_0x4d4a42,_0x2ae5c6,_0x423f5d){const _0x2c0e56=_0x2766d8;let _0x41f958=this[_0x2c0e56(0x218)][_0x2c0e56(0x374)](_0x4d4a42,_0x2ae5c6,_0x423f5d),_0x14f70c=this[_0x2c0e56(0x218)][_0x2c0e56(0x3ec)](_0x4d4a42,_0x2ae5c6,_0x423f5d);return _0x41f958!==void 0x0&&_0x14f70c!==void 0x0?{'shapeData':_0x14f70c,'shapeId':_0x423f5d,'shapeType':_0x41f958,'unitId':_0x4d4a42,'subUnitId':_0x2ae5c6,'version':this[_0x2c0e56(0x49c)],'disableShapeOption':!0x1}:null;}[_0x2766d8(0x336)](){const _0x51322b=_0x2766d8;this[_0x51322b(0x3cf)][_0x51322b(0x528)](_0x11a92b=>_0x11a92b['dispose']()),this['_disposePopups'][_0x51322b(0x2f1)]=0x0;}['_popupMenuListener'](_0x2fd0f6){const _0x510327=_0x2766d8;let _0x13980b=new _0x35d996[(_0x510327(0x502))]();return _0x13980b[_0x510327(0x294)](_0x2fd0f6[_0x510327(0x31e)][_0x510327(0x56a)](()=>{const _0x5f382e=_0x510327;let _0x24a5bc=_0x2fd0f6[_0x5f382e(0x524)]();if(this['_clearPopups'](),this['_isOpenedShapeEditPanel']||_0x24a5bc[_0x5f382e(0x22b)]>0x1)return;let _0x357400=_0x24a5bc[_0x5f382e(0x3bf)]()['next']()[_0x5f382e(0x58f)];if(!_0x357400)return;let _0x4b383d=this[_0x5f382e(0x482)][_0x5f382e(0x20b)](_0x357400[_0x5f382e(0x5ca)]);if(!_0x4b383d||_0x4b383d['drawingType']!==_0x35d996[_0x5f382e(0x44f)][_0x5f382e(0x4ba)])return;let {unitId:_0x3cd078,subUnitId:_0x150759,drawingId:_0x5232d5,drawingType:_0x445639}=_0x4b383d,_0x189577=this[_0x5f382e(0x582)](_0x3cd078,_0x150759,_0x5232d5);if(!_0x189577)return;this[_0x5f382e(0x269)][_0x5f382e(0x458)](_0x35d996[_0x5f382e(0x4d1)],!0x0);let _0x5c6267=this[_0x5f382e(0x4bb)]['getRenderUnitById'](_0x3cd078),_0x3015ca=((_0x5c6267==null?void 0x0:_0x5c6267[_0x5f382e(0x5cc)])===!0x1?_0x5c6267['with'](_0x590c15[_0x5f382e(0x3f4)]):this['_sheetCanvasPopManagerService'])[_0x5f382e(0x4dc)](_0x357400,{'componentKey':_0x26c51d,'direction':_0x5f382e(0x35c),'offset':[0x0,_0x197fcc['SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET']],'extraProps':{'unitId':_0x3cd078,'subUnitId':_0x150759,'drawingId':_0x5232d5,'drawingType':_0x445639,'shapeType':_0x189577[_0x5f382e(0x3fc)],'shapeData':_0x189577[_0x5f382e(0x23b)]}});this[_0x5f382e(0x3cf)]['push'](this['disposeWithMe'](_0x3015ca)),this[_0x5f382e(0x482)]['getFocusDrawings']()[_0x5f382e(0x584)](_0x1c1232=>_0x1c1232[_0x5f382e(0x280)]===_0x3cd078&&_0x1c1232['subUnitId']===_0x150759&&_0x1c1232[_0x5f382e(0x314)]===_0x5232d5)||this[_0x5f382e(0x482)][_0x5f382e(0x2f5)]([{'unitId':_0x3cd078,'subUnitId':_0x150759,'drawingId':_0x5232d5}]);})),_0x13980b[_0x510327(0x294)](_0x2fd0f6[_0x510327(0x58a)][_0x510327(0x56a)](()=>{const _0xb7e6e=_0x510327;this[_0xb7e6e(0x336)](),this[_0xb7e6e(0x269)][_0xb7e6e(0x458)](_0x35d996[_0xb7e6e(0x4d1)],!0x1),this[_0xb7e6e(0x482)]['focusDrawing'](null);})),_0x13980b['add'](_0x2fd0f6[_0x510327(0x5b0)]['subscribe'](()=>{const _0x29ee16=_0x510327;this[_0x29ee16(0x336)]();})),_0x13980b[_0x510327(0x294)](_0x2fd0f6[_0x510327(0x330)]['subscribe'](()=>{const _0x5ab5b7=_0x510327;this[_0x5ab5b7(0x336)]();})),(0x0,_0x35d996['toDisposable'])(()=>{_0x13980b['dispose'](),this['_clearPopups']();});}['_registerOperations'](){const _0x2202fa=_0x2766d8;this[_0x2202fa(0x271)](this[_0x2202fa(0x54f)][_0x2202fa(0x3f5)](_0x1ecfb7=>{const _0x1a4d6e=_0x2202fa;if(_0x1ecfb7['id']===_0x236e1f['id']){let {unitId:_0x249e4a,subUnitId:_0x13ee5a,drawingId:_0x471954}=_0x1ecfb7[_0x1a4d6e(0x1db)];this['_shapeEditPanelVersion']+=0x1,this[_0x1a4d6e(0x39b)]=this[_0x1a4d6e(0x582)](_0x249e4a,_0x13ee5a,_0x471954),this[_0x1a4d6e(0x336)](),this['_openShapeEditPanel']();}if(_0x1ecfb7['id']===_0x13ccc7['id']&&(this[_0x1a4d6e(0x39b)]=null,this[_0x1a4d6e(0x42d)]()),_0x1ecfb7['id']===_0x565640[_0x1a4d6e(0x229)]['id']){let {unitId:_0x1ec4f0,subUnitId:_0x57b2ec,shapeId:_0x44808d}=_0x1ecfb7[_0x1a4d6e(0x1db)];if(this[_0x1a4d6e(0x39b)]&&this[_0x1a4d6e(0x39b)][_0x1a4d6e(0x2a8)]===_0x44808d){let _0x32da96=this[_0x1a4d6e(0x582)](_0x1ec4f0,_0x57b2ec,_0x44808d);_0x32da96&&(this[_0x1a4d6e(0x49c)]+=0x1,_0x32da96[_0x1a4d6e(0x4da)]=this[_0x1a4d6e(0x49c)],this[_0x1a4d6e(0x39b)]=_0x32da96,this[_0x1a4d6e(0x490)]&&this[_0x1a4d6e(0x3f3)]());}}})),this['disposeWithMe'](this[_0x2202fa(0x482)][_0x2202fa(0x2a3)][_0x2202fa(0x56a)](_0x53ff72=>{const _0x314d19=_0x2202fa;if(this[_0x314d19(0x490)]===!0x1)return;if(_0x53ff72['length']===0x0){this[_0x314d19(0x39b)]=null,this['_closeShapeEditPanel']();return;}if(_0x53ff72[_0x314d19(0x2f1)]===0x1&&_0x53ff72[0x0][_0x314d19(0x313)]===_0x35d996[_0x314d19(0x44f)][_0x314d19(0x4ba)]&&(this[_0x314d19(0x49c)]+=0x1,this[_0x314d19(0x39b)]=this['_getShapeInfo'](_0x53ff72[0x0][_0x314d19(0x280)],_0x53ff72[0x0]['subUnitId'],_0x53ff72[0x0]['drawingId']),this[_0x314d19(0x39b)])){this['_openShapeEditPanel']();return;}let _0x5a03a2=_0x53ff72[_0x314d19(0x35b)](_0x5b7329=>_0x5b7329[_0x314d19(0x313)]===_0x35d996[_0x314d19(0x44f)]['DRAWING_SHAPE']);if(_0x53ff72[_0x314d19(0x2f1)]>0x1&&_0x5a03a2[_0x314d19(0x2f1)]===_0x53ff72[_0x314d19(0x2f1)]){if(this[_0x314d19(0x49c)]+=0x1,this[_0x314d19(0x39b)]=this[_0x314d19(0x582)](_0x53ff72[0x0][_0x314d19(0x280)],_0x53ff72[0x0][_0x314d19(0x35e)],_0x53ff72[0x0][_0x314d19(0x314)]),this[_0x314d19(0x39b)]){this['_openShapeEditPanel']();return;}}else{if(this[_0x314d19(0x49c)]+=0x1,this[_0x314d19(0x39b)]=this[_0x314d19(0x582)](_0x53ff72[0x0]['unitId'],_0x53ff72[0x0][_0x314d19(0x35e)],_0x53ff72[0x0][_0x314d19(0x314)]),this['_activeShapeInfo']){this['_activeShapeInfo'][_0x314d19(0x4c1)]=!0x0,this[_0x314d19(0x3f3)]();return;}}this[_0x314d19(0x42d)]();}));}['_openShapeEditPanel'](){const _0x929a2b=_0x2766d8;this[_0x929a2b(0x39b)]&&(this[_0x929a2b(0x1fe)]=this[_0x929a2b(0x2b5)][_0x929a2b(0x4de)]({'id':_0x462378,'header':{'title':this[_0x929a2b(0x2d4)]['t'](_0x929a2b(0x371))},'width':0x184,'children':{'label':_0x462378,...this[_0x929a2b(0x39b)]},'onClose':()=>{const _0x35bdc6=_0x929a2b;this[_0x35bdc6(0x482)][_0x35bdc6(0x2f5)](null),this[_0x35bdc6(0x269)]['setContextValue'](_0x35d996[_0x35bdc6(0x4d1)],!0x1),this[_0x35bdc6(0x1fe)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0x2766d8(0x42d)](){const _0x3e99b5=_0x2766d8;this[_0x3e99b5(0x490)]=!0x1,this[_0x3e99b5(0x2b5)][_0x3e99b5(0x3e2)](_0x462378),this['_sidebarDisposable']=null,this[_0x3e99b5(0x269)][_0x3e99b5(0x458)](_0x35d996[_0x3e99b5(0x4d1)],!0x1),this['_drawingManagerService'][_0x3e99b5(0x2f5)](null);}};_0x4c901c=_0x39c461([_0x400e7c(0x0,_0x35d996[_0x2766d8(0x403)]),_0x400e7c(0x1,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x23e778[_0x2766d8(0x1f7)])),_0x400e7c(0x2,_0x23e778[_0x2766d8(0x4e9)]),_0x400e7c(0x3,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x565640[_0x2766d8(0x248)])),_0x400e7c(0x4,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x35d996['LocaleService'])),_0x400e7c(0x5,_0x35d996['ICommandService']),_0x400e7c(0x6,_0x2ed59f['IDrawingManagerService']),_0x400e7c(0x7,(0x0,_0x35d996['Inject'])(_0x590c15[_0x2766d8(0x3f4)])),_0x400e7c(0x8,_0x35d996[_0x2766d8(0x58d)]),_0x400e7c(0x9,_0x580d8a[_0x2766d8(0x266)]),_0x400e7c(0xa,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x4a54d8))],_0x4c901c);let _0x508d9b=class extends _0x35d996['Plugin']{constructor(_0x2dff77=_0x5a65ec,_0x4e488f,_0x562681,_0x2b57a9,_0x35dc58){const _0xb3fc7c=_0x2766d8;super(),this[_0xb3fc7c(0x5b7)]=_0x2dff77,this[_0xb3fc7c(0x451)]=_0x4e488f,this['_commandService']=_0x562681,this['_configService']=_0x2b57a9,this[_0xb3fc7c(0x4bb)]=_0x35dc58;let {..._0x7eddb5}=(0x0,_0x35d996[_0xb3fc7c(0x30b)])({},_0x5a65ec,this[_0xb3fc7c(0x5b7)]);this[_0xb3fc7c(0x285)][_0xb3fc7c(0x26c)](_0xedbf59,_0x7eddb5),this[_0xb3fc7c(0x28e)]();}[_0x2766d8(0x526)](){const _0x2add7c=_0x2766d8;this[_0x2add7c(0x4bb)]['registerRenderModule'](_0x35d996[_0x2add7c(0x31d)][_0x2add7c(0x276)],[_0x238545]),(0x0,_0x35d996[_0x2add7c(0x51a)])(this[_0x2add7c(0x451)],[[_0x4c901c],[_0xc945f6],[_0x319285],[_0x1ffec1]]);}[_0x2766d8(0x560)](){const _0x5ec30c=_0x2766d8;this[_0x5ec30c(0x451)][_0x5ec30c(0x340)](_0x4c901c)[_0x5ec30c(0x34f)]();}[_0x2766d8(0x219)](){const _0x423de4=_0x2766d8;[[_0x517ad0],[_0x36f6fd],[_0x3d86f3]]['forEach'](_0x36427e=>this[_0x423de4(0x451)][_0x423de4(0x294)](_0x36427e)),(0x0,_0x35d996[_0x423de4(0x51a)])(this['_injector'],[[_0x3d86f3],[_0x36f6fd]]),this[_0x423de4(0x4bb)][_0x423de4(0x318)](_0x35d996[_0x423de4(0x31d)][_0x423de4(0x3de)],[_0x517ad0]),this[_0x423de4(0x4bb)][_0x423de4(0x318)](_0x35d996['UniverInstanceType'][_0x423de4(0x3de)],[_0x22d196]),this[_0x423de4(0x4bb)][_0x423de4(0x318)](_0x35d996[_0x423de4(0x31d)][_0x423de4(0x3de)],[_0x243495]),this[_0x423de4(0x4bb)][_0x423de4(0x318)](_0x35d996[_0x423de4(0x31d)][_0x423de4(0x3de)],[_0x37b743]),this[_0x423de4(0x271)](this[_0x423de4(0x4bb)][_0x423de4(0x318)](_0x35d996[_0x423de4(0x31d)][_0x423de4(0x3de)],[_0x126fbb])),this[_0x423de4(0x271)](this[_0x423de4(0x4bb)][_0x423de4(0x318)](_0x35d996[_0x423de4(0x31d)][_0x423de4(0x3de)],[_0x21f1ca]));}[_0x2766d8(0x404)](){const _0xcef93c=_0x2766d8;this['_injector'][_0xcef93c(0x294)]([_0x5b452d]),this[_0xcef93c(0x451)]['get'](_0x5b452d);let _0x454dcf=this[_0xcef93c(0x451)];[[_0x4c901c],[_0xc945f6],[_0x319285],[_0x1ffec1],[_0x9476a3],[_0x4a54d8],[_0x563547],[_0x538cf9],[_0x126f61],[_0x4fbfb1]]['forEach'](_0x290813=>_0x454dcf[_0xcef93c(0x294)](_0x290813)),(0x0,_0x35d996[_0xcef93c(0x51a)])(this['_injector'],[[_0x4c901c],[_0xc945f6],[_0x319285],[_0x9476a3],[_0x4a54d8],[_0x563547],[_0x538cf9],[_0x126f61],[_0x4fbfb1]]);}[_0x2766d8(0x28e)](){const _0x1c7311=_0x2766d8;[_0x3a6254,_0x33bf3b,_0x13ccc7,_0x236e1f,_0x1af41a,_0x482521,_0x325b7a,_0x263ab1][_0x1c7311(0x528)](_0x5574c0=>this[_0x1c7311(0x271)](this[_0x1c7311(0x54f)][_0x1c7311(0x567)](_0x5574c0)));}};_0x2a4a7a(_0x508d9b,_0x2766d8(0x1f3),_0x35d996[_0x2766d8(0x31d)][_0x2766d8(0x3de)]),_0x2a4a7a(_0x508d9b,_0x2766d8(0x4be),_0x2766d8(0x26a)),_0x2a4a7a(_0x508d9b,_0x2766d8(0x4db),_0x5bde27),_0x2a4a7a(_0x508d9b,_0x2766d8(0x4da),_0x48a452),_0x508d9b=_0x39c461([(0x0,_0x35d996[_0x2766d8(0x1ff)])(_0x64ee3d[_0x2766d8(0x323)],_0x156373['UniverDocsPlugin'],_0x2ed59f[_0x2766d8(0x3b5)],_0x2c4f7e['UniverDrawingUIPlugin'],_0x580d8a['UniverRenderEnginePlugin'],_0x2a684c[_0x2766d8(0x3d4)],_0x3a1af6['UniverDocsUIPlugin'],_0x47830d[_0x2766d8(0x310)],_0x1ad5b7[_0x2766d8(0x5c2)],_0x353806[_0x2766d8(0x1d6)],_0x565640[_0x2766d8(0x2e6)],_0x590c15[_0x2766d8(0x2e1)],_0x197fcc['UniverShapeEditorUIPlugin']),_0x400e7c(0x1,(0x0,_0x35d996[_0x2766d8(0x3ad)])(_0x35d996[_0x2766d8(0x4c2)])),_0x400e7c(0x2,_0x35d996[_0x2766d8(0x3c6)]),_0x400e7c(0x3,_0x35d996[_0x2766d8(0x51d)]),_0x400e7c(0x4,_0x580d8a[_0x2766d8(0x266)])],_0x508d9b),_0x3f2738[_0x2766d8(0x227)]=_0x4320ab,_0x3f2738[_0x2766d8(0x2ac)]=_0x243f1d,Object[_0x2766d8(0x54e)](_0x3f2738,_0x2766d8(0x519),{'enumerable':!0x0,'get':function(){return _0x318337;}}),Object[_0x2766d8(0x54e)](_0x3f2738,_0x2766d8(0x509),{'enumerable':!0x0,'get':function(){return _0x508d9b;}});}));function _0x376c(){const _0x5a2347=['SheetSkeletonService','attrs','offsetY','IMenuManagerService','getActiveViewportByCoord','memo','worksheet','src','getRenderUnitById','UniverProSheetsShapeUi','iterator','getZoomRatio','jsx','animationEnabled','isHorizontal','rightToLeft','_instances','flipX','shape-editor-ui.toolbar.changeShape','_moveConnectorWithShape','disableObjectsEvent','_updateSrcRectByTransform','useEffect','translateWithPrecision','_getZoomRatio','ObjectListPanelBase','computeConnectorRouteLayout','_drawingRenderService','DisposableCollection','_executeResizeCommand','VerticalAlign','drawWith','_clearShapeAdjustControls','children','none','UniverSheetsShapeUIPlugin','_createShape','UpdateConnectorRelationCommand','setCanUseShapeClip','FloatingObjectToolbarPosition','@univerjs-pro/shape-editor-ui','currentColor','url(#$1','_renders','_activeTargetShapeId','shapeModel','_addShapeConnectorHandlerObjects','point','ShapePickerPanel','sheets-shape-ui.flipHorizontal','SheetPermissionCheckController','UniverSheetsShapeMobileUIPlugin','touchDependencies','isRichText','getPropertyValue','IConfigService','has','prstGeom','_highlightedSiteIndex','_urlImageService','error','sheets-shape-ui.flipVertical','getSelectedObjectMap','getBasicShapeRotateBound','onRendered','sheetViewStartColumn','forEach','observe','resolveShapeTextEditorWrapStrategy','object-layers-icon','_isStartAdjusting','getObjectListPanelSectionIdForDrawingType','presentation','sheets-shape-ui.ribbon.shape-format.text-control','M10.2\x208H11.8','drawing-ui.objectListPanel.name','#4285f4','appliedStrokeWidth','current','invert','SELECTOR','sheets-shape-ui.deleteShape','_shapeFormulaService','drawing-ui.objectListPanel.locate','Image','react','localName','function','SheetsSelectionsService','sidebarOptions$','ShapeDefaultConfig','parse','onPointerUp$','DocCanvasPopManagerService','horizontal','sheets-shape-ui.imagePanel.crop.shape','setCollapsedIds','ContextMenuGroup','componentKey','_activeImageId','startArrow','stringify','isHitLine','pick','defineProperty','_commandService','getBentTypeFromPoints','UniverSheets','GROUP','_shapeService','IDrawingManagerService','UniverSheetsMobileUIPlugin','_registerOperations','M7.82994\x201.40913C7.88746\x201.35161\x207.95376\x201.30821\x208.02453\x201.27893C8.09527\x201.24959\x208.17285\x201.2334\x208.2542\x201.2334C8.33555\x201.2334\x208.41313\x201.24959\x208.48387\x201.27893C8.55464\x201.30821\x208.62094\x201.35161\x208.67846\x201.40913L10.6785\x203.40913C10.9128\x203.64345\x2010.9128\x204.02335\x2010.6785\x204.25766C10.4441\x204.49198\x2010.0642\x204.49198\x209.82994\x204.25766L8.8542\x203.28193V5.8334C8.8542\x206.16477\x208.58557\x206.4334\x208.2542\x206.4334C7.92283\x206.4334\x207.6542\x206.16477\x207.6542\x205.8334V3.28193L6.67846\x204.25766C6.44415\x204.49198\x206.06425\x204.49198\x205.82994\x204.25766C5.59562\x204.02335\x205.59562\x203.64345\x205.82994\x203.40913L7.82994\x201.40913Z','fromChangeset','_findShapeAtPoint','addImageSourceCache','angle','ArrangeTypeEnum','_applyFormulaAutoFitSize','doc','_draw','onSteady','getOwnPropertyDescriptor','SheetsDrawingGroupCopyPasteController','M1.25\x202.96401C1.25\x203.84767\x201.96634\x204.56401\x202.85\x204.56401H13.15C14.0337\x204.56401\x2014.75\x203.84767\x2014.75\x202.96401C14.75\x202.08036\x2014.0337\x201.36401\x2013.15\x201.36401H2.85C1.96635\x201.36401\x201.25\x202.08036\x201.25\x202.96401ZM2.85\x203.36401C2.62909\x203.36401\x202.45\x203.18493\x202.45\x202.96401C2.45\x202.7431\x202.62909\x202.56401\x202.85\x202.56401H13.15C13.3709\x202.56401\x2013.55\x202.7431\x2013.55\x202.96401C13.55\x203.18493\x2013.3709\x203.36401\x2013.15\x203.36401H2.85Z','tag','getActiveSheet','reduce','registerCommand','URL','_updateAdjustControlPositions','subscribe','COMMAND','amd','path','toFixed','getVisible','sin','_targetShapeId','indexOf','displayName','lineType','sheets-shape-ui.ribbon.shape-format.arrange-forward','COPY_TYPE','getMenuHiddenObservable','_getDrawingRect','_isConnecting','drawing-ui.objectListPanel.lock','_getConnectionSiteAngle','384624TEHLpp','vectorEffect','HorizontalAlign','Path','@univerjs/docs','DocSelectionRenderService','_getShapeInfo','getShapeData','find','PaintIcon','mask','_context','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','setCursor','clearControl$','createElement','@univerjs-pro/sheets-shape-ui','IContextService','blockExecuteWithoutPermission','value','reverse','worldPoint','_drawingType','getDrawingOrder','_getShapeAdjustPointListById','FOCUSING_SHAPE_TEXT_EDITOR','setPrstGeom','_isHighlighted','RemoveSheetCommand','SheetSkeletonManagerService','_renderWithCache','WorksheetEditPermission','update$','_ribbonService','isHit','registerDependencies','sheets-shape-ui.shape-format.text-ribbon-control','FromArray','LEFT','sheets-shape-ui.editText','getAdjustInfoByName','_showConnectionSites','UniverDocsUi','_activeShapeModel','_initMenu','0\x200\x2017\x2016','isInGroup','drawing-ui.objectListPanel.close','CURSOR_TYPE','_getConnectPointInfo','_clearControls','attachRangeWithCoord','changing$','_editingParams$','shape-adjust-point-','useLayoutEffect','sheet.operation.open-shape-object-list-panel','drawing-ui.objectListPanel.filterAll','permissionCheckWithoutRange','_config','_baseShapeTop','_findNearestConnectionSite','RemoveSheetDrawingCommand','getFocusDrawings','asObservable','gray.0','_sheetCanvasPopManagerService','drawing-ui.objectListPanel.filterLocked','ShapeModel','_shapePopupMenuDisposable','UniverShapeEditorPlugin','setPresentation','setEditing','targetShapeId','setProperty','stopPropagation','some','showContextualTab','oKey','resolveShapeTextDocumentRenderLayout','isMainScene','sheets-shape-ui.ribbon.shape-format','distinctUntilChanged','getConfig','LocaleService','sheet.shape.picker.component','_initSelection','localToWorld','from','adjustValues','startWith','getConnectionInfo','ToggleSheetsShapeFlipCommand','_initialize','_addControl','RENDER_CLASS_TYPE','onPointerMove$','drawing-ui.objectListPanel.lockHint','1002858XaTuHP','_props','_handleFreeEndpointMove','Shape','rxjs','_isDrawingShapePointDown','@univerjs-pro/engine-shape','_drawSimpleText','BUTTON','toPrimitive','setFormulaPresentation','sheet.shape.edit.panel','isArray','_baseShapeLeft','getPermissionPoint','fill','_baseShapeWidth','getCurrentUnitOfType','isRender','_getShapeAdjustInfosById','FlipVerticalIcon','UniverSheetsDrawingUIPlugin','BooleanNumber','symbol','updateLinePoints','ShapeFormulaRibbonControl','params','ThemeService','subscribeEvent','DEFAULT_SHAPE_WIDTH','default','Position','fillImageSourceType','getSkeletonParam','stroke-width','Transform','_addShapeAdjustControl','sheets-shape-ui.objectListPanel.open','fillType','_generateCopyPasteMutations','getObjectIncludeInGroup','CROSSHAIR','TRUE','getTextModel','getImage','SetSheetsShapeRotateCommand','_sheetShapeAdjustController','_cxtHandlerPointerUp','#1a73e8','_loadShapePictureFill','type','ShapeIcon','0\x200\x2016\x2016','getPresentation','ISidebarService','getDrawingDataForUnit','_drawingAddListener','circle,\x20ellipse,\x20line,\x20path,\x20polygon,\x20polyline,\x20rect,\x20text,\x20textPath,\x20tspan,\x20use','registerFeaturePasteHook','_imageIoService','_drawRichTextLayer','_sidebarDisposable','DependentOn','getShapeType','getCanvasElement','ShapeArrowTypeEnum','setShapeData','left','isFinite','shape-format-setting-icon','sheets-shape-ui.quickStyles','DocRenderController','setSrcRect','registerShapeFormatPainter','getDrawingOKey','ContextMenuPosition','_registerImageShapeClipDelegate','beforeCommandExecuted','create','remove$','IconManager','string','index','forward','_getOrCreateShapeModel','sheets-shape-ui.config','beginPath','_sheetsShapeService','onReady','_shapeTextEditingService','ang','pipe','flipY','useMemo','getSheetId','_generateCutPasteMutations','_clearCompletionFrame','call','createShapeFormulaDocument','ShapeTypeEnum','OPERATION','_formulaKey','SheetsShapeUIContextualRibbonSchema','mergeMenu','UpdateSheetsShapeDataMutation','_groupCopyPasteController','size','_adjHandlerPointerMove','getTextStyle','ImageSourceTypeEnum','vertical','setShouldShowAdjust','getSheetCommandTarget','removeLinePoints','featurePluginUpdateNotification','ShapeTextRibbonControl','UniverCore','UniverSheetsDrawingUi','interceptCommand','SolidLine','shape-editor-ui.toolbar.quickStyles','isEditing','shapeData','setFillImage','text','objects','entries','updateContext','resolveShapeTextHyperLinkAt','InsertShapeCommand','_setTransForm','_hyperLinkRegions','M5.57564\x204.38825C5.80995\x204.62256\x206.18985\x204.62256\x206.42417\x204.38825L7.3999\x203.41251V9.63049C7.3999\x209.96186\x207.66853\x2010.2305\x207.9999\x2010.2305C8.33127\x2010.2305\x208.5999\x209.96186\x208.5999\x209.63049V3.41251L9.57564\x204.38825C9.80995\x204.62256\x2010.1899\x204.62256\x2010.4242\x204.38825C10.6585\x204.15393\x2010.6585\x203.77403\x2010.4242\x203.53972L8.4324\x201.54796C8.32324\x201.43445\x208.16982\x201.36382\x207.9999\x201.36382C7.82998\x201.36382\x207.67655\x201.43446\x207.56739\x201.54797L5.57564\x203.53972C5.34132\x203.77403\x205.34132\x204.15393\x205.57564\x204.38825Z','clipByShape','copyType','SheetsShapeService','rect','plainShapeTextToDocumentData','name','@univerjs-pro/license','SheetInterceptorService','ShapePickerDropdown','shapeKey','end','_univerInstanceService','sheet.operation.open-sheet-shape-format-panel','ShapeEditPanel','ShapeQuickStyleGallery','None','createShapeTextHyperLinkRegions','_updateImageAdjValues','SheetScrollManagerService','adjHandleSize','M2.2\x208H3.8','sheet.menu.shape.flip-vertical','INSERT','refreshFormulaPresentation','non-scaling-stroke','IUndoRedoService','sheet.shape.text.float-menu','_activeAdjustInfo','sheets-shape-contextual-ribbon','hidden','getShapeTextData','ShapeArrowSizeEnum','IRenderManagerService','M4.2\x208.3H6.8','M2\x204.75\x208\x201.8l6\x202.95L8\x207.7\x202\x204.75Z','_contextService','SHEET_SHAPE_UI_PLUGIN','_hasReset','setConfig','getDrawingByParam','querySelectorAll','UndoRedoGroupService','bottom','disposeWithMe','dataModel','972975UUmOKZ','description','getImageSourceCache','UNIVER_DOC','ShapeTextEditorContainer','setFallbackVisible','drawing-ui.objectListPanel.lockAll','xlink:href','drawing-ui.objectListPanel.search','getOrCreateDrawingCopyPlan','UniverEngineRender','IImageIoService','startY','unitId','REMOVE','getAutoFitPresentations','sheet.operation.open-mobile-shape-editor','sheets-shape-ui.ribbon.shape-format.arrange-front','_configService','@univerjs/core','@univerjs/sheets','_registerMoveHandler','resolveShapeTextHyperLinkObject','RIBBON','getAdjustValueByName','isDrawingObject','716535lIMvXU','_initCommands','with','trim','copyId','delete','_handleBasicShapeUpdateConnectorLineShape','add','min','M8.57975\x2014.5902L6.58023\x2012.5907C6.34591\x2012.3564\x206.34591\x2011.9765\x206.58023\x2011.7421C6.81454\x2011.5078\x207.19444\x2011.5078\x207.42876\x2011.7421L8.40449\x2012.7179V10.1664C8.40449\x209.83504\x208.67312\x209.56641\x209.00449\x209.56641C9.33586\x209.56641\x209.60449\x209.83504\x209.60449\x2010.1664V12.7179L10.5802\x2011.7421C10.8145\x2011.5078\x2011.1944\x2011.5078\x2011.4288\x2011.7421C11.6631\x2011.9765\x2011.6631\x2012.3564\x2011.4288\x2012.5907L9.42923\x2014.5902','shape-editor-ui.arrange.back','_shapes','currentAdjustValues','UniverSheetsDrawingMobileUIPlugin','Tools','connection-site-','getUnitType','flatMap','adjHandleStroke','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','clip-adj-','defs','focus$','dispose','_registerDrawingMoveHandler','getViewportByCell','bottom-icon','shapeId','_shapeId','getDrawingData','resolveActiveShapeQuickStylePresetId','SheetsShapeUIMenuSchema','TopmostIcon','2sFOpFj','OTHERS','isolated','_isImagePointerDown','refreshAdjustControls','Observable','UniverDrawing','_sidebarService','drawing-ui.objectListPanel.expand','redo','_transformCalculateSrcRect','MoveDownIcon','drawing-ui.objectListPanel.filterHidden','_activeShapeId','startX','permissionPointUpdate$','debounceRefreshControls','backward','evenodd','@univerjs/drawing-ui','updateDocumentDataMargin','buildClipPath','getCurrentRangeDisable$','undo','abs','position','drawing-ui.objectListPanel.unlockAll','unsubscribe','_iconManager','FlipHorizontalIcon','CustomCommandExecutionError','getEditing','getMatrix','highlighted','MenuManagerPosition','ShapeFloatingToolbarService','M1.25\x2013.036C1.25\x2012.1523\x201.96634\x2011.436\x202.85\x2011.436H13.15C14.0337\x2011.436\x2014.75\x2012.1523\x2014.75\x2013.036C14.75\x2013.9196\x2014.0337\x2014.636\x2013.15\x2014.636H2.85C1.96635\x2014.636\x201.25\x2013.9196\x201.25\x2013.036ZM2.85\x2012.636C2.62909\x2012.636\x202.45\x2012.8151\x202.45\x2013.036C2.45\x2013.2569\x202.62909\x2013.436\x202.85\x2013.436H13.15C13.3709\x2013.436\x2013.55\x2013.2569\x2013.55\x2013.036C13.55\x2012.8151\x2013.3709\x2012.636\x2013.15\x2012.636H2.85Z','_insertShapes','_localeService','_commandExecutedListener','UniverDrawingUi','defIds','shouldClipShapeTextDocument','drawing-ui.objectListPanel.hideAll','fontSize','Module','_isShouldShowDrawingShapeAdjust','_createCopyInfoByRange','90856qjiVmi','SetDrawingArrangeCommand','_index','UniverSheetsUIPlugin','_update','UniverProShapeEditorUi','viewportScrollY','animateFormulaPresentation','UniverSheetsShapePlugin','SetDrawingApplyMutation','_handleConnectorPointerUp','m2\x207.75\x206\x202.95\x206-2.95M2\x2010.75l6\x202.95\x206-2.95','getRealBound','CopySheetCommand','cancelEditing','DRAWING_IMAGE','sectionCanvas','sheet.shape.floating-toolbar','deriveStateFromActiveSheet$','length','getDrawingShapeKeyByDrawingSearch','generateRandomId','UPDATE','focusDrawing','SetDrawingSelectedOperation','range','onDblclick$','_sheetPermissionCheckController','drawing-ui.objectListPanel.details','hadStyleAttribute','applyQuickStyleToShapeData','round','DocumentViewModel','M6.2\x208H7.8','offsetX','resize','drawings','_connectorObjects','OBJECT_LIST_FLOATING_SECTION_ID','drawFormulaShapeAnimationLayers','toDisposable','cxnPointRadius','ShapeFillEnum','CommandType','every','merge','_permissionService','object','visible$','getAdjustNames','UniverSheetsDrawingPlugin','_reset','ISheetDrawingService','drawingType','drawingId','getShapeTextRect','_sheetDrawingShapeRenderController','isHighlighted','registerRenderModule','Large','presentationChanged$','_disposed','formulaPresentation','UniverInstanceType','createControl$','getConnectionSiteList','_initPermission','670phyNMK','_connectionSiteObjects','UniverLicensePlugin','_transform','ShapeTextFloatToolbar','_initPrinting','scale','getCurrentSkeleton','isLineShape','onload','popup','getScene','_completionFrame','SHAPE_EDITOR_TRANSFORMER_CONFIG','ISheetClipboardService','changeStart$','getUnitId','createInternalEditorID','sheets-shape-ui','1.5.0','front','_clearPopups','bindRenderTransformerLifecycle','getShapeModel','transform','onTransformChange$','_cxnIndex','WorksheetCopyPermission','_currentScene','clip','_currentUniverService','get','DocumentDataModel','drawing-ui.objectListPanel.description','_createShapeAdjustControls','_menuManagerService','originalStrokeWidth','sheets-shape-ui.shape-format.formula-ribbon-control','resourceCollector','transformDrawingsToChartSheet','SheetPasteCommand','renderDrawingShape','jsxs','sheet.command.menu-insert-shape','getDrawingPoints','changeEnd$','initShapePopupMenu','drawing-ui.objectListPanel.typeNames.','unregister','clearAdjustValue','@univerjs/docs-ui','clearActiveDrawingObjects','_sheetBasicShapeConnectionPointController','selectable','_baseHeight','getParent','IPermissionService','drawing-ui.objectListPanel.showAll','filter','vertical-center','_shapeUpdateListener','subUnitId','drawing-ui.objectListPanel.title','@univerjs/design','getEndConnectInfo','_isStartConnectorPoint','DrawingCommonPanel','M3.3\x202.6L8\x206.2L12.7\x202.6H3.3Z','getShapeQuickStyleType','contentVerticalOffset','CHART','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','_activeAdjustPointList','ComponentManager','getState','discreteRangeToRange','ShapeTextHyperLinkPopupService','drawing-ui.objectListPanel.unlock','updateShapeFillImage','_unitId','sheets-shape-ui.formatShape','shouldAllowShapeTextEditorHostSizeShrink','push','getShapeTypeById','FormatPainterSessionService','_adjHandlerPointerUp','actualHeight','cxnIndex','transformForAngle','panel','refreshTransform','UniverSheetsUi','cxnPointFill','contentHeight','restore','assign','sheet.operation.close-sheet-shape-format-panel','custom','_registerComponents','_activeShapeAdjustPointList','groupId','viewBox','completeEditing','extensionGroups','Line','_clearShapeConnectorHandlerObjects','replace','calcAdjValues','_insertingShapeKeys','keys','UniverDocs','_currentConnectionTarget','hasAttribute','Arrow','UUID','scene','SetSheetDrawingCommand','ConnectorCoordinateTransform','useState','updateConnectionDetection','prepareShapeTextDocumentData','M1.50439\x209C1.50439\x208.11634\x202.22074\x207.4\x203.10439\x207.4H13.4044C14.288\x207.4\x2015.0044\x208.11634\x2015.0044\x209C15.0044\x209.88366\x2014.2881\x2010.6\x2013.4044\x2010.6H3.1044C2.22074\x2010.6\x201.50439\x209.88366\x201.50439\x209ZM3.10439\x208.6C2.88348\x208.6\x202.70439\x208.77909\x202.70439\x209C2.70439\x209.22091\x202.88348\x209.4\x203.1044\x209.4H13.4044C13.6253\x209.4\x2013.8044\x209.22091\x2013.8044\x209C13.8044\x208.77909\x2013.6253\x208.6\x2013.4044\x208.6H3.10439Z','_activeShapeInfo','registerClipDelegate','set','ShapeTextFloatMenuRenderControllerBase','Plugin','onSavingEditorData$','_baseWidth','sheets-shape-text-','M8\x202.2V3.8','getValue','ObjectLayersIcon','addClipboardHook','top-center','shape-editor-ui.arrange.front','RemoveSheetsShapeMutation','_hide','endConnectionDetection','transformToAxisAlignPosition','Inject','setAdjustValueByName','onerror','style','BehaviorSubject','makeDirty','div','stroke','UniverDrawingPlugin','_lastEditingShapeKey','clone','activeAnObject','VIEW_MAIN_LEFT','parseFloat','drawing.operation.set-drawing-active','colorChannel1','_handleConnectedEndpointPointerUp','M8\x2010.2V11.8','values','shapeText','ShapeFloatingToolbar','ShapeFormatSettingIcon','wrapStrategy','transformByState','_getImageDrawingInfo','ICommandService','clipTop','sqrt','getObject','getPropertyPriority','switchMap','_initEditingParams','removeAttribute','setShapeProps','_disposePopups','_canEdit','executeCommand','classType','useFormulaShapeToolbar','UniverSheetsPlugin','ShapeRenderModeEnum','parent','_registerFeatureMenu','@univerjs/sheets-ui','MobileObjectListPanel','sheet.menu.shape.flip-horizontal','getBoundingClientRect','calculate','UniverIcon','UNIVER_SHEET','_addShapeConnectorHandlerObject','DRAWING','setOnSavingEditorData','close','isRenderLinePointsMode','options','WorkbookCopyPermission','sheet.operation.apply-shape-quick-style','svg','@univerjs/sheets-drawing','getCurrentTypeOfUnit$','ILayoutService','enableObjectsEvent','getShapeDataById','_resetState','data','updateDocumentStyle','applyPoint','UniverProLicense','SHEET','_openShapeEditPanel','SheetCanvasPopManagerService','onCommandExecuted','_subUnitId','30786MbyIGt','height','resolveHyperLinkAt','DocEventManagerService','_copyInfo','shapeType','forwardRef','_getScrollInfo','_baseLeft','sheet.shape.object-list.panel','getBatchRemoveOp','srcRect','IUniverInstanceService','onStarting','formulaBinding','PictureFill','_sheetSkeletonService','_drawShapeText','_formulaShapes','_clearFocusedShape','_draggingConnectorId','getTransformerByCreate','computeConnectorResizeLayout','cxnPointStroke','_permissions','startConnectionDetection','getConnectionRelation','Documents','drawing-ui.objectListPanel.sectionCanvas','top','ancestorTransform','visible','decorate','_shapeFloatingToolbarService','resolveShapeTextEditorBehaviorShapeData','interceptor','getBatchUpdateOp','includes','DEFAULT_SHAPE_HEIGHT','M14.0045\x204.4334C14.8881\x204.4334\x2015.6045\x203.71705\x2015.6045\x202.8334C15.6045\x201.94974\x2014.8881\x201.2334\x2014.0045\x201.2334H3.70449C2.82084\x201.2334\x202.10449\x201.94974\x202.10449\x202.8334C2.10449\x203.71705\x202.82084\x204.4334\x203.70449\x204.4334H14.0045ZM14.4045\x202.8334C14.4045\x203.05431\x2014.2254\x203.2334\x2014.0045\x203.2334H3.70449C3.48358\x203.2334\x203.30449\x203.05431\x203.30449\x202.8334C3.30449\x202.61248\x203.48358\x202.4334\x203.70449\x202.4334H14.0045C14.2254\x202.4334\x2014.4045\x202.61249\x2014.4045\x202.8334Z','sheets-shape-ui.ribbon.shape-format.formula-control','@univerjs-pro/shape-editor','save','univer-box-border\x20univer-px-4\x20univer-text-sm','constructor','DRAWING_OBJECT_LAYER_INDEX','_registerDrawingFocusChangeHandler','_formulaAnimation','_visible','viewBound','_sheetPrintInterceptorService','getDrawingVisible','16749GQSDuh','getStartConnectInfo','_closeShapeEditPanel','@univerjs/sheets-drawing-ui','sectionFloating','_clipService','isReleased','_updateShapeAdjustControls','_adjName','Medium','activeSheet$','_handleConnectedEndpointMove','_clearConnectionSites','getUnit','next','DocSelectionManagerService','DrawingApplyType','useRef','SheetShapeTextEditorContainer','MenuItemType','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','MobileDropdown','224dDVqnT','_componentManager','getConnectorLinePoints','_initEvents','_generateChartSheetCopy','insertGroupObject','getColorFromTheme','cos','routeConnectorLineShape','_baseShapeHeight','rotation','SetShapeDrawingDataCommand','complete','BottomIcon','DrawingTypeEnum','drawing-ui.objectListPanel.unlockHint','_injector','useReducer','gradientEndColor','M8\x206.2V7.8','getDrawingEffectBounds','getSheetBySheetId','_executeConnectedRouteResizeCommand','setContextValue','_updateTransform','GRID','sheets-shape-ui.ribbon.shape-format.style-control','worldRect','SheetTypes','ShapeGroupEnum','sheetTransform','image-clip-adjust-point-','removeProperty','SolidFill','_generatePasteMutations','TOP','SHAPE','PREDEFINED_HOOK_NAME','_sheetClipboardService','_registerGroupFeaturePasteHook','sheet.command.update-shape-data','isStartConnectorPoint','endArrow','onPointerDown$','relation','drawing-ui.objectListPanel.sectionFloating','strokeWidth','sheet.image-clip.shape-picker.component','useId','_baseDrawingRect','Circle','sheetViewStartRow','_createControls','addObject','render','syncExecuteCommand','getCurrentUnitInfo','RibbonInsertGroup','SetSheetsShapeTextVerticalToggleCommand','ShapeFormulaService','_sheetDrawingService','_attachConnectorObjectEvent','React','applySheetDrawingPlacement','actions','_drawingManagerService','getBatchAddOp','_getImagePrstGeom','buildShapeTextDataUpdate','EMPTY','drawing-ui.objectListPanel.collapse','drawing-ui.objectListPanel.nameInput','M14\x208H14.2','components','prstGeomAdjValues','clipHeight','Vector2','VIEW_MAIN_TOP','SHEET_VIEWPORT_KEY','_isOpenedShapeEditPanel','Disposable','getCurrentScrollState','isConnectorShape','add$','register','_handleFreeEndpointPointerUp','multiply','shape-editor-ui.arrange.backward','exports','idSuffix','_sheetInterceptorService','_shapeEditPanelVersion','SheetPrintInterceptorService','width','SHAPE_TEXT','1em','defer','cxnPointStrokeWidth','http://www.w3.org/2000/svg','UniverDesign','MoveUpIcon','element','CHART_PAGE','drawing-ui.objectListPanel.dragToReorder','_getSceneAndTransformerByDrawingSearch','transformToDrawingPosition','getActualSize','_attachAdjustEvent','@univerjs-pro/sheets-shape','resolveShapeTextDocumentPageHeight','resetCursor','cloneShapeDataForType','adjName','UniverUi','computeStraightConnectorLayout','editingParams$','M13.5\x207V4.29412C13.5\x203.5794\x2012.8679\x203\x2012\x203H2.57143C1.70356\x203\x201.5\x203.5794\x201.5\x204.29412V7V10C1.5\x2010.7147\x201.70356\x2011\x202.57143\x2011H7.71429','priority','clearAdjustControls','refreshShapeFillImage','M3.3\x2013.4L8\x209.8L12.7\x2013.4H3.3Z','DRAWING_SHAPE','_renderManagerService','getInverseCoord','_popupMenuListener','pluginName','InsertSheetsShapeMutation','WorkbookEditablePermission','disableShapeOption','Injector','skeleton','useObservable','image','_onSavingEditorData$','sheets-shape-format-font-family-menu','_initCopyPaste','ShapeTextHyperLinkHoverController','_cxtHandlerPointerMove','color','_baseTop','fillImageSource','getDrawingSearch','setHighlighted','canvasElement','FOCUSING_COMMON_DRAWINGS','registerFeatureMenu','_calculateFreeEndpointAngle','_loadAndSetImage','axisAlignSheetTransform','SheetDrawingAnchorType','resolveFormulaShapeAutoFitSize','map','getSkeleton','version','packageName','attachPopupToObject','sheets-shape-ui.shape-format.style-ribbon-control','open','worldPoints','useDependency','_executeConnectionCommand','ShapeLineTypeEnum','disconnect','normalizeShapeTextModel','getTransformer'];_0x376c=function(){return _0x5a2347;};return _0x376c();}
|
|
1
|
+
function _0x286e(_0x5983fa,_0x390054){_0x5983fa=_0x5983fa-0x108;const _0x3e4d12=_0x3e4d();let _0x286ea4=_0x3e4d12[_0x5983fa];return _0x286ea4;}function _0x3e4d(){const _0xb4d93e=['adjName','hidden','height','gray.0','makeDirty','copyId','shape-editor-ui.toolbar.changeShape','none','SheetDrawingAnchorType','idMap','_registerGroupFeaturePasteHook','circle,\x20ellipse,\x20line,\x20path,\x20polygon,\x20polyline,\x20rect,\x20text,\x20textPath,\x20tspan,\x20use','_moveConnectorWithShape','getObjectIncludeInGroup','_commandService','@univerjs/sheets-drawing-ui','isEditing','react/jsx-runtime','interceptCommand','_executeConnectedRouteConnectionCommand','onPointerMove$','addImageSourceCache','add','shapeText','_baseShapeWidth','VIEW_MAIN_LEFT_TOP','sheets-shape-ui.title','values','lineType','version','onSavingEditorData$','SheetShapeTextEditorContainer','resolveShapeTextEditorWrapStrategy','options','resolveShapeTextHyperLinkAt','animationEnabled','value','_registerDrawingMoveHandler','targetShapeId','refreshTransform','image-clip-adjust-point-','getColorFromTheme','_activeShapeInfo','HorizontalAlign','string','toStringTag','_shapePopupMenuDisposable','sheets-shape-ui.shape-format.quick-style-gallery','TOP','_executeConnectedRouteResizeCommand','_cxtHandlerPointerMove','svg','useEffect','syncExecuteCommand','getEndConnectInfo','cxnIndex','getConnectorLinePoints','_onSavingEditorData$','sheet.shape.edit.panel','SheetSkeletonService','UniverRenderEnginePlugin','backward','_baseDrawingRect','_iconManager','UniverProShapeEditor','currentColor','TopmostIcon','memo','_registerOperations','_shapeRenderController','sidebarOptions$','_shapeService','_completionFrame','ShapeDefaultConfig','highlighted','_sidebarService','getState','onTransformChange$','_clearFocusedShape','getInterceptPoints','transformDrawingsToChartSheet','shapeData','ShapeArrowSizeEnum','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','_initCommands','sheets-shape-ui','sectionCanvas','gradientEndColor','getScene','TRUE','_getShapeAdjustPointListById','univerjs-icon\x20univerjs-icon-','merge','_draw','disableShapeOption','_getShapeAdjustInfosById','resolveShapeTextEditorBehaviorShapeData','WorkbookCopyPermission','drawings','getImage','React','ancestorTransform','_sheetClipboardService','calcAdjValues','InsertSheetsShapeMutation','_renders','default','changeStart$','text','shape-editor-ui.arrange.front','SetDrawingApplyMutation','jsx','getShapeType','BottomIcon','@univerjs-pro/engine-shape','mergeMenu','_registerIcons','sheet.operation.apply-shape-quick-style','_isDrawingShapePointDown','DRAWING_SHAPE','run','cancelEditing','redo','registerCommand','InsertShapeCommand','_closeShapeEditPanel','getConnectionInfo','refreshShapeFillImage','undo','Medium','isCurvedConnectorShape','top','getSheetCommandTarget','getSheetBySheetId','M8\x2010.2V11.8','open','_handleConnectorPointerUp','SetSheetsShapeTextVerticalToggleCommand','M8.57975\x2014.5902C8.58121\x2014.5917\x208.58268\x2014.5931\x208.58416\x2014.5946C8.64077\x2014.6502\x208.70566\x2014.6923\x208.77482\x2014.7209C8.84557\x2014.7502\x208.92314\x2014.7664\x209.00449\x2014.7664C9.08585\x2014.7664\x209.16342\x2014.7502\x209.23416\x2014.7209C9.30332\x2014.6923\x209.36821\x2014.6502\x209.42482\x2014.5946','interceptor','flipY','flipX','StraightConnector1','_shapes','drawing-ui.objectListPanel.name','UniverCore','_shapeUpdateListener','transformForAngle','ShapeTextFloatMenuRenderControllerBase','UniverDesign','getDrawingTypeNameKey','ShapeEditPanel','BUTTON','RemoveSheetDrawingCommand','mask','_activeAdjustInfo','getContextValue','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','hasDefault','max','shape-editor-ui.toolbar.quickStyles','drawing-ui.objectListPanel.unlockHint','skeleton','UniverSheetsUi','_registerMoveHandler','removeLinePoints','_createControls','UniverSheetsShapeMobileUIPlugin','insertGroupObject','drawing-ui.objectListPanel.lockHint','observe','_handleConnectedEndpointMove','_applyFormulaAutoFitSize','drawing-ui.objectListPanel.filterAll','Vector2','useObservable','connection-site-','clip-adj-','_sheetsShapeService','_index','SetShapeDrawingDataCommand','current','disconnect','getConnectionRelation','drawing.operation.set-drawing-active','_sheetCanvasPopManagerService','parseFloat','_sheetPermissionCheckController','_registerFeatureMenu','UniverInstanceType','drawing-ui.objectListPanel.show','_loadAndSetImage','function','UniverProLicense','changing$','drawing-ui.objectListPanel.moveForward','UniverSheetsShapePlugin','selectable','VerticalAlign','plainShapeTextToDocumentData','Shape','@univerjs/engine-render','beginPath','ArrangeTypeEnum','updateConnectionDetection','useImperativeHandle','clipTop','getDrawingDataForUnit','IUndoRedoService','dispose','DisposableCollection','touchDependencies','_connectorObjects','visible$','ShapePickerDropdown','UniverSheetsMobileUIPlugin','#4285f4','ILayoutService','UNIVER_SHEET','cxnPointRadius','lineShapeId','popup','SheetsShapeUIContextualRibbonSchema','extensionGroups','gray.300','_focusedDrawings','trim','amd','params','RemoveSheetCommand','point','executeCommand','_contextService','register','UniverEngineRender','DrawingTypeEnum','MenuManagerPosition','rxjs','_updateShapeAdjustControls','keys','DependentOn','setEditing','size','restore','contentVerticalOffset','@univerjs-pro/license','_drawRichText','sheets-shape-text-','getBasicShapeRelation','WorksheetCopyPermission','ThemeService','RENDER_CLASS_TYPE','sin','_baseHeight','dataModel','switchMap','UUID','resolveActiveShapeQuickStylePresetId','refreshAdjustControls','getUnit','bindRenderTransformerLifecycle','classType','map','PaintIcon','MobileShapeEditorService','drawFormulaShapeAnimationLayers','SHAPE_TEXT','drawing-ui.objectListPanel.expand','next','_localeService','_drawShapeText','call','setSrcRect','presentation','sheet.menu.shape.flip-vertical','discreteRangeToRange','_highlightedSiteIndex','IMenuManagerService','sheets-shape-ui.editShape','CURSOR_TYPE','@univerjs-pro/shape-editor','defs','FOCUSING_COMMON_DRAWINGS','drawing-ui.objectListPanel.typeNames.','getShapeData','topmost-icon','drawing-ui.objectListPanel.showAll','Observable','sheets-shape-ui.ribbon.shape-format.arrange-backward','appliedStrokeWidth','ISidebarService','UNIVER_DOC','@univerjs/docs','_imageIoService','horizontal','UniverSheetsPlugin','ShapeGroupEnum','fontSize','_addShapeAdjustControl','sheetTransform','useRef','DRAWING_OBJECT_LAYER_INDEX','Large','resize','set','rect','focus$','CommandType','clip','M8\x206.2V7.8','sheets-shape-ui.formatShape','translateWithPrecision','_hasReset','getViewportByCell','viewBox','getAdjustValueByName','SheetPasteCommand','getDrawingSearch','displayName','getSelectedObjectMap','adjustValues','M5.57564\x204.38825C5.80995\x204.62256\x206.18985\x204.62256\x206.42417\x204.38825L7.3999\x203.41251V9.63049C7.3999\x209.96186\x207.66853\x2010.2305\x207.9999\x2010.2305C8.33127\x2010.2305\x208.5999\x209.96186\x208.5999\x209.63049V3.41251L9.57564\x204.38825C9.80995\x204.62256\x2010.1899\x204.62256\x2010.4242\x204.38825C10.6585\x204.15393\x2010.6585\x203.77403\x2010.4242\x203.53972L8.4324\x201.54796C8.32324\x201.43445\x208.16982\x201.36382\x207.9999\x201.36382C7.82998\x201.36382\x207.67655\x201.43446\x207.56739\x201.54797L5.57564\x203.53972C5.34132\x203.77403\x205.34132\x204.15393\x205.57564\x204.38825Z','_draggingConnectorId','indexOf','sheetViewStartColumn','FlipVerticalIcon','SheetInterceptorService','back','IConfigService','drawing-ui.objectListPanel.hide','583887HyscjM','from','_sheetShapeAdjustController','_adjHandlerPointerUp','abs','sheet.operation.open-shape-object-list-panel','priority','getDrawingData','M2.6\x203.3L6.2\x208L2.6\x2012.7V3.3Z','@univerjs/design','_addControl','attachRangeWithCoord','move-up-icon','SHEET','M8\x202.2V3.8','attachPopupToObject','getMatrix','DrawingImageClipService','DrawingApplyType','worldPoint','sheets-shape-ui.shape-format.style-ribbon-control','_isConnecting','update$','delete','getUnitType','add$','isStartConnectorPoint','sheets-shape-ui.ribbon.shape-format.style-control','ObjectLayersIcon','_hide','_shapeEditPanelVersion','IURLImageService','UniverShapeEditorPlugin','_resetState','getPropertyValue','UniverSheetsDrawingUi','panel','createControl$','sheets-shape-ui.quickStyles','_generateCopyPasteMutations','getActiveViewportByCoord','getShapeQuickStyleType','fill','children','getDrawingOKey','_clearShapeConnectorHandlerObjects','SheetTypes','DrawingRenderService','0\x200\x2016\x2016','_cxtHandlerPointerUp','MoveDownIcon','unregister','worldPoints','UniverSheetsUIPlugin','Circle','M13.5\x207V4.29412C13.5\x203.5794\x2012.8679\x203\x2012\x203H2.57143C1.70356\x203\x201.5\x203.5794\x201.5\x204.29412V7V10C1.5\x2010.7147\x201.70356\x2011\x202.57143\x2011H7.71429','@univerjs-pro/shape-editor-ui','_getZoomRatio','REMOVE','getShapeTypeById','createElement','_handleFreeEndpointPointerUp','remove$','addObject','109487dOGsth','1787140QTJoiF','DocRenderController','featurePluginUpdateNotification','_registerDrawingFocusChangeHandler','forwardRef','_commandExecutedListener','setPresentation','M3.3\x202.6L8\x206.2L12.7\x202.6H3.3Z','M7.82994\x201.40913C7.88746\x201.35161\x207.95376\x201.30821\x208.02453\x201.27893C8.09527\x201.24959\x208.17285\x201.2334\x208.2542\x201.2334C8.33555\x201.2334\x208.41313\x201.24959\x208.48387\x201.27893C8.55464\x201.30821\x208.62094\x201.35161\x208.67846\x201.40913L10.6785\x203.40913C10.9128\x203.64345\x2010.9128\x204.02335\x2010.6785\x204.25766C10.4441\x204.49198\x2010.0642\x204.49198\x209.82994\x204.25766L8.8542\x203.28193V5.8334C8.8542\x206.16477\x208.58557\x206.4334\x208.2542\x206.4334C7.92283\x206.4334\x207.6542\x206.16477\x207.6542\x205.8334V3.28193L6.67846\x204.25766C6.44415\x204.49198\x206.06425\x204.49198\x205.82994\x204.25766C5.59562\x204.02335\x205.59562\x203.64345\x205.82994\x203.40913L7.82994\x201.40913Z','@univerjs/drawing','components','drawing-ui.objectListPanel.unlockAll','ShapeTextRibbonControl','isHorizontal','_drawingRenderService','changeEnd$','_univerInstanceService','isRichText','_findShapeAtPoint','UniverDrawing','drawing-ui.objectListPanel.dragToReorder','_activeShapeId','shapeType','subscribeEvent','drawing-ui.objectListPanel.lock','_findNearestConnectionSite','_currentUniverService','_reset','ShapeFloatingToolbarService','packageName','_ribbonService','setPrstGeom','sheets-shape-ui.ribbon.shape-format.arrange-forward','drawing-ui.objectListPanel.locate','getValue','sheets-shape-ui.ribbon.shape-format','clip-','VIEW_MAIN_TOP','startConnectionDetection','OTHERS','_clipService','reduce','invert','toFixed','sheet.operation.update-shape-type','_visible','useFormulaShapeToolbar','UniverShapeEditorMobileUIPlugin','ShapeArrowTypeEnum','_disposePopups','_getDrawingRect','get','localToWorld','name','Fragment','RibbonInsertGroup','INSERT','_insertShapes','getPropertyPriority','adjHandleSize','vertical','setProperty','DocumentViewModel','_baseTop','Module','setShouldShowAdjust','M11.5565\x208H12.4435L12.913\x208.78261L13.8\x208.57391L14.4261\x209.2L14.2174\x2010.087L15\x2010.5565V11.4435L14.2174\x2011.913L14.4261\x2012.8L13.8\x2013.4261L12.913\x2013.2174L12.4435\x2014H11.5565L11.087\x2013.2174L10.2\x2013.4261L9.57391\x2012.8L9.78261\x2011.913L9\x2011.4435V10.5565L9.78261\x2010.087L9.57391\x209.2L10.2\x208.57391L11.087\x208.78261L11.5565\x208Z','UniverProSheetsShapeUi','_injector','_getShapeInfo','sheet.shape.floating-toolbar','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','getOwnPropertyDescriptor','clear','changeShapeType','sheet.shape.picker.component','_adjName','length','subUnitId','6223149sKbVuT','_generatePasteMutations','start','sheets-shape-ui.flipVertical','CHART_PAGE','reverse','forward','@univerjs/docs-ui','ShapeRenderModeEnum','Path','_copyInfo','onReady','sheets-shape-ui.objectListPanel.title','target','http://www.w3.org/2000/svg','getRenderUnitById','stroke','_hyperLinkRegions','close','SheetSkeletonManagerService','startWith','animateFormulaPresentation','_renderManagerService','sheets-shape-ui.config','CHART','_activeShapeModel','replace','useMemo','UniverDrawingUIPlugin','getUnitId','M14.0045\x204.4334C14.8881\x204.4334\x2015.6045\x203.71705\x2015.6045\x202.8334C15.6045\x201.94974\x2014.8881\x201.2334\x2014.0045\x201.2334H3.70449C2.82084\x201.2334\x202.10449\x201.94974\x202.10449\x202.8334C2.10449\x203.71705\x202.82084\x204.4334\x203.70449\x204.4334H14.0045ZM14.4045\x202.8334C14.4045\x203.05431\x2014.2254\x203.2334\x2014.0045\x203.2334H3.70449C3.48358\x203.2334\x203.30449\x203.05431\x203.30449\x202.8334C3.30449\x202.61248\x203.48358\x202.4334\x203.70449\x202.4334H14.0045C14.2254\x202.4334\x2014.4045\x202.61249\x2014.4045\x202.8334Z','prepareShapeTextDocumentData','ShapeQuickStyleGallery','UniverSheetsShapeUIPlugin','drawing-ui.objectListPanel.lockAll','getActiveSheet','DRAWING_IMAGE','visible','relation','canvas','clearControl$','getBatchAddOp','generateRandomId','fillImageSource','getObjectListPanelSectionIdForDrawingType','drawing-ui.objectListPanel.filterLocked','buildShapeTextDataUpdate','fillType','getShapeDataById','getSheetId','top-center','drawing-ui.objectListPanel.sectionCanvas','hasAttribute','currentAdjustValues','ShapeLineTypeEnum','@univerjs/drawing-ui','Image','adjHandleFill','_baseLeft','None','4135yiRvhG','focusDrawing','_initPrinting','sheetViewStartRow','getTransformer','viewBound','ShapeTextFloatToolbar','_addShapeConnectorHandlerObject','31215sGGZMQ','cos','oKey','M4.2\x205.5H10.5','createShapeFormulaDocument','_activeAdjustPointList','getBoundingClientRect','UniverProShapeEditorUi','offsetX','_activeImageId','UniverDrawingPlugin','PREDEFINED_HOOK_NAME','_isStartConnectorPoint','shapeModel','shouldClipShapeTextDocument','_executeResizeCommand','DocSelectionManagerService','setFormulaPresentation','transformByState','M1.25\x202.96401C1.25\x203.84767\x201.96634\x204.56401\x202.85\x204.56401H13.15C14.0337\x204.56401\x2014.75\x203.84767\x2014.75\x202.96401C14.75\x202.08036\x2014.0337\x201.36401\x2013.15\x201.36401H2.85C1.96635\x201.36401\x201.25\x202.08036\x201.25\x202.96401ZM2.85\x203.36401C2.62909\x203.36401\x202.45\x203.18493\x202.45\x202.96401C2.45\x202.7431\x202.62909\x202.56401\x202.85\x202.56401H13.15C13.3709\x202.56401\x2013.55\x202.7431\x2013.55\x202.96401C13.55\x203.18493\x2013.3709\x203.36401\x2013.15\x203.36401H2.85Z','UniverUi','getDrawingShapeKeyByDrawingSearch','_getConnectionSiteAngle','_baseWidth','editingParams$','unitId','isInGroup','_rerouteConnectorLine','getInverseCoord','pipe','prototype','50fpOFQd','_shapeFloatingToolbarService','@univerjs-pro/sheets-shape','CUT','_sheetSkeletonService','clone','UniverMobileUIPlugin','non-scaling-stroke','connector-handler-','index','drawing-ui.objectListPanel.hideAll','_updateTransform','BooleanNumber','type','drawing-ui.objectListPanel.moveBackward','removeProperty','getZoomRatio','_attachConnectorObjectEvent','showContextualTab','FromArray','querySelectorAll','SHEET_SHAPE_UI_PLUGIN','_getOrCreateShapeModel','@univerjs/ui','_menuManagerService','_transformCalculateSrcRect','IContextService','SHAPE','symbol','resolveFormulaShapeAutoFitSize','Disposable','_getImageDrawingInfo','permissionPointUpdate$','UniverSheets','worldRect','_sidebarDisposable','decorate','useDependency','_initPermission','2468fJDgMi','ImageSourceTypeEnum','endArrow','RemoveSheetsShapeMutation','drawingId','ShapeFormulaService','224NjAKLb','shape-format-setting-icon','asObservable','GROUP','onerror','render','getCurrentTypeOfUnit$','M14.1544\x208.5999C15.038\x208.5999\x2015.7544\x207.88356\x2015.7544\x206.9999C15.7544\x206.11625\x2015.038\x205.3999\x2014.1544\x205.3999H3.85439C2.97074\x205.3999\x202.25439\x206.11625\x202.25439\x206.9999C2.25439\x207.88356\x202.97074\x208.5999\x203.85439\x208.5999H14.1544ZM14.5544\x206.9999C14.5544\x207.22082\x2014.3753\x207.3999\x2014.1544\x207.3999H3.85439C3.63348\x207.3999\x203.45439\x207.22082\x203.45439\x206.9999C3.45439\x206.77899\x203.63348\x206.5999\x203.85439\x206.5999H14.1544C14.3753\x206.5999\x2014.5544\x206.77899\x2014.5544\x206.9999Z','drawing-ui.objectListPanel.title','COPY_TYPE','ObjectListPanelBase','exports','sheets-shape-ui.ribbon.shape-format.arrange-back','setAdjustValueByName','GRID','isArray','fontFamily','VIEW_MAIN','getDrawingVisible','_update','_handleBasicShapeUpdateConnectorLineShape','object','_drawingType','forEach','getAutoFitPresentations','ICommandService','setCanUseShapeClip','registerDependencies','intercept','title','ToggleShapeFloatingToolbarOperation','ShapeTextHyperLinkPopupService','SetDrawingSelectedOperation','M2\x204.75\x208\x201.8l6\x202.95L8\x207.7\x202\x204.75Z','xlink:href','RIBBON','_isOpenedShapeEditPanel','redos','distinctUntilChanged','activeSheet$','pushUndoRedo','getBasicShapeRotateBound','_calculateFreeEndpointAngle','presentationChanged$','_unitId','updateShapeFillImage','has','save','_activeShapeAdjustPointList','localeService','drawing-ui.objectListPanel.sectionFloating','resourceCollector','vectorEffect','_isShouldShowDrawingShapeAdjust','drawWith','MenuItemType','setShapeData','_getConnectPointInfo','activateDrawingObject','permissionCheckWithoutRange','initShapePopupMenu','getAdjustNames','_subUnitId','_formulaAnimation','_sheetDrawingShapeRenderController','removeAttribute','DocumentSkeleton','univer-box-border\x20univer-px-4\x20univer-text-sm','WorksheetEditPermission','sheets-shape-contextual-ribbon','_popupMenuListener','ISheetDrawingService','_transform','round','formulaBinding','width','element','_cxnIndex','getFocusDrawings','IRenderManagerService','DocSelectionRenderService','ComponentManager','UpdateLineShapeResizeCommand','ShapeTypeEnum','_getSceneAndTransformerByDrawingSearch','updateContext','SheetPermissionCheckController','getDrawingPoints','iterator','FloatingObjectToolbarPosition','_canEdit','_isImagePointerDown','push','startX','SheetsDrawingGroupCopyPasteController','transformVector2SceneCoord','jsxs','SheetsSelectionsService','debounceRefreshControls','shape-editor-ui.arrange.backward','transform','FormulaShapeAnimationController','M2.2\x208H3.8','getDrawingOrder','@univerjs/sheets-drawing','Arrow','_registerFocusChangeHandler','disposeWithMe','createShapeTextBoxShapeData','onStarting','_drawRichTextLayer','colorChannel1','setHighlighted','clearActiveDrawingObjects','stringify','_generateCutPasteMutations','multiply','WorkbookEditablePermission','offsetY','groupId','UniverIcon','Injector','Transform','shape-adjust-point-','completeEditing','IDrawingManagerService','getShapeModel','refreshFormulaPresentation','getCanvasElement','addClipboardHook','sheets-shape-ui.ribbon.shape-format.text-control','SheetCanvasPopManagerService','ShapeTextHyperLinkHoverController','ShapeIcon','viewportScrollY','_baseShapeLeft','getMenuHiddenObservable','SHAPE_EDITOR_TRANSFORMER_CONFIG','every','cxnPointFill','flatMap','onPointerDown$','getEditing','SolidFill','_initMenu','contentHeight','FOCUSING_SHAPE_TEXT_EDITOR','calculate','defineProperty','_shapeId','getSkeleton','_disposed','_lastEditingShapeKey','_releaseRenderCache','drawingType','_formulaKey','getPermissionPoint','drawing-ui.objectListPanel.nameInput','getOrCreateDrawingCopyPlan','isHitLine','setOnSavingEditorData','_formulaShapes','_openShapeEditPanel','M1.50439\x209C1.50439\x208.11634\x202.22074\x207.4\x203.10439\x207.4H13.4044C14.288\x207.4\x2015.0044\x208.11634\x2015.0044\x209C15.0044\x209.88366\x2014.2881\x2010.6\x2013.4044\x2010.6H3.1044C2.22074\x2010.6\x201.50439\x209.88366\x201.50439\x209ZM3.10439\x208.6C2.88348\x208.6\x202.70439\x208.77909\x202.70439\x209C2.70439\x209.22091\x202.88348\x209.4\x203.1044\x209.4H13.4044C13.6253\x209.4\x2013.8044\x209.22091\x2013.8044\x209C13.8044\x208.77909\x2013.6253\x208.6\x2013.4044\x208.6H3.10439Z','_createCopyInfoByRange','SheetPrintInterceptorService','UpdateSheetsShapeDataMutation','getConnectionSiteList','UniverDocsPlugin','createShapeTextHyperLinkRegions','cxnPointStroke','onSteady','startY','setFillImage','Plugin','_instances','computeStraightConnectorLayout','Rect','SheetScrollManagerService','MoveUpIcon','_addShapeConnectorHandlerObjects','IconManager','isFinite','_config','attrs','Line','left','defer','_drawSimpleText','object-layers-icon','cxnPointStrokeWidth','subscribe','@univerjs-pro/sheets-shape-ui','position','URL','range','UniverSheetsDrawingPlugin','setConfig','_shapeTextEditingService','sheet.command.menu-insert-shape','registerFeatureMenu','onCommandExecuted','sheet.shape.object-list.panel','_permissionService','parse','use','isLineShape','_isStartAdjusting','routeConnectorLineShape','axisAlignSheetTransform','OBJECT_LIST_FLOATING_SECTION_ID','_permissions','isHit','some','ShapeFillEnum','LocaleService','ShapePickerPanel','_drawingAddListener','rightToLeft','1em','getObject','normalizeShapeTextModel','computeConnectorResizeLayout','_init','idSuffix','hideContextualTab','isHighlighted','IUniverInstanceService','MEDIA','M1.25\x2013.036C1.25\x2012.1523\x201.96634\x2011.436\x202.85\x2011.436H13.15C14.0337\x2011.436\x2014.75\x2012.1523\x2014.75\x2013.036C14.75\x2013.9196\x2014.0337\x2014.636\x2013.15\x2014.636H2.85C1.96635\x2014.636\x201.25\x2013.9196\x201.25\x2013.036ZM2.85\x2012.636C2.62909\x2012.636\x202.45\x2012.8151\x202.45\x2013.036C2.45\x2013.2569\x202.62909\x2013.436\x202.85\x2013.436H13.15C13.3709\x2013.436\x2013.55\x2013.2569\x2013.55\x2013.036C13.55\x2012.8151\x2013.3709\x2012.636\x2013.15\x2012.636H2.85Z','pick','ContextMenuPosition','unsubscribe','UniverDrawingUi','getConfig','adjHandleStroke','setFallbackVisible','getTransformerByCreate','UniverDocsUIPlugin','_imageShapeClipController','_updateAdjustControlPositions','react','computeConnectorRouteLayout','ISheetClipboardService','_baseShapeHeight','sheet.command.update-shape-data','_clearControls','shape-text-','applyPoint','custom','M1.6543\x2013.1665C1.6543\x2012.2828\x202.37064\x2011.5665\x203.2543\x2011.5665H13.5543C14.438\x2011.5665\x2015.1543\x2012.2828\x2015.1543\x2013.1665C15.1543\x2014.0502\x2014.438\x2014.7665\x2013.5543\x2014.7665H3.2543C2.37064\x2014.7665\x201.6543\x2014.0502\x201.6543\x2013.1665ZM3.2543\x2012.7665C3.03338\x2012.7665\x202.8543\x2012.9456\x202.8543\x2013.1665C2.8543\x2013.3874\x203.03338\x2013.5665\x203.2543\x2013.5665H13.5543C13.7752\x2013.5665\x2013.9543\x2013.3874\x2013.9543\x2013.1665C13.9543\x2012.9456\x2013.7752\x2012.7665\x2013.5543\x2012.7665H3.2543Z','entries','_updateImageAdjValues','_isHighlighted','M13.4\x203.3L9.8\x208L13.4\x2012.7V3.3Z','M10.2\x208H11.8','UniverSheetsDrawing','attachTransformerTo','angle','actualHeight','_currentConnectionTarget','_initEvents','isMainScene','EMPTY','SHEET_VIEWPORT_KEY','translate','tag','ShapeModel','UniverProSheetsShape','0\x200\x2017\x2016','_props','getStartConnectInfo','find','VIEW_MAIN_LEFT','prstGeom','viewportScrollX','FlipHorizontalIcon','canvasElement','PictureFill','_activeTargetShapeId','with','OPERATION','rotation','_sheetPrintInterceptorService','SetSheetDrawingCommand','doc','shapeId','data','_drawingManagerService','useReducer','_currentScene','getCurrentScrollState','_sheetBasicShapeConnectionPointController','drawing-ui.objectListPanel.noSelection','enableObjectsEvent','renderDrawingShape','setPrstGeomAdjValues','_urlImageService','_registerComponents','_connectionSiteObjects','description','SheetsShapeUIMenuSchema','pluginName','_clearPopups','_getImagePrstGeom','_registerImageShapeClipDelegate','parent','getSkeletonParam','flip-vertical-icon','getPresentation','getDrawingEffectBounds','prstGeomAdjValues','_clearCompletionFrame','ConnectorCoordinateTransform','actions','_editingParams$','M8\x2014V14.2','ShapeTextEditorContainer','@univerjs/sheets-ui','min','_clearConnectionSites','Inject','_createShapeAdjustControls','_targetShapeId','transformToAxisAlignPosition','_initSheetChange','isReleased','5080188XZKrZo','_showConnectionSites','UniverLicensePlugin','_sheetDrawingService','setCursor','clipByShape','bottom','style','undos','CustomCommandExecutionError','_executeConnectionCommand','stroke-width','_handleConnectedEndpointPointerUp','_initSelection','getRealBound','disableObjectsEvent','deriveStateFromActiveSheet$','SHAPE_CHANGE_PICKER_COMPONENT','sheets-shape-ui.shape-format.formula-ribbon-control','DocInterceptorService','_getScrollInfo','_context','sheets-shape-ui.insertShape','originalStrokeWidth','resolveHyperLinkAt','formulaPresentation','objects','scene','filter','clearAdjustValue','getShapeQuickStylePreset','PRINTING_COMPONENT_COLLECT','M5.57564\x2011.6118C5.80995\x2011.3774\x206.18985\x2011.3774\x206.42417\x2011.6118L7.3999\x2012.5875V6.36951C7.3999\x206.03814\x207.66853\x205.76951\x207.9999\x205.76951C8.33127\x205.76951\x208.5999\x206.03814\x208.5999\x206.36951V12.5875L9.57564\x2011.6118C9.80995\x2011.3774\x2010.1899\x2011.3774\x2010.4242\x2011.6118C10.6585\x2011.8461\x2010.6585\x2012.226\x2010.4242\x2012.4603L8.4324\x2014.452C8.32324\x2014.5655\x208.16982\x2014.6362\x207.9999\x2014.6362C7.82998\x2014.6362\x207.67655\x2014.5655\x207.56739\x2014.452L5.57564\x2012.4603C5.34132\x2012.226\x205.34132\x2011.8461\x205.57564\x2011.6118Z','onDblclick$','includes','registerRenderModule','copyType','LEFT','ang','UniverDocs','setShapeProps','vertical-center','FormatPainterSessionService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','isConnectorShape','create','evenodd','_loadShapePictureFill','_handleFreeEndpointMove','m2\x207.75\x206\x202.95\x206-2.95M2\x2010.75l6\x202.95\x206-2.95','UniverSheetsDrawingMobileUIPlugin','sheet.menu.shape.flip-horizontal','IPermissionService','_sheetInterceptorService','composeMatrix','onPointerUp$','SetDrawingArrangeCommand','onRendered','CROSSHAIR','SheetsShapeService','sheets-shape-ui.imagePanel.crop.shape','_componentManager','getParent','div','UPDATE','SELECTOR','strokeWidth','UpdateConnectorRelationCommand','_shapeFormulaService','hadStyleAttribute','sheet.operation.open-sheet-shape-format-panel','_attachAdjustEvent','beforeCommandExecuted','shape-editor-ui.arrange.back','getCurrentRangeDisable$','sheets-shape-ui.flipHorizontal','assign','ToggleSheetsShapeFlipCommand','_createShape','getActualSize','DocumentDataModel','_configService','path','_initialize','sectionFloating','_baseShapeTop','ShapeFormatSettingIcon','stopPropagation','endConnectionDetection','url(#$1','setCollapsedIds','move-down-icon','toDisposable','_insertingShapeKeys','anchorType','_initEditingParams','DocEventManagerService','_initCopyPaste','getShapeTextRect','COMMAND','getDrawingByParam','image','getAdjustInfoByName','ContextMenuGroup','getShapeTextData','error','shapeKey','bottom-icon','SHEET_VIEW_KEY','_clearShapeAdjustControls','marginTop','srcRect','_adjHandlerPointerMove','hideInfoPopup','clipHeight','setContextValue'];_0x3e4d=function(){return _0xb4d93e;};return _0x3e4d();}(function(_0x2fc8e5,_0x69940b){const _0x477b1b=_0x286e,_0x1fbf7b=_0x2fc8e5();while(!![]){try{const _0x106c2f=-parseInt(_0x477b1b(0x197))/0x1+-parseInt(_0x477b1b(0x28a))/0x2*(parseInt(_0x477b1b(0x26b))/0x3)+parseInt(_0x477b1b(0x2b1))/0x4*(parseInt(_0x477b1b(0x263))/0x5)+parseInt(_0x477b1b(0x3fe))/0x6+-parseInt(_0x477b1b(0x1d7))/0x7*(-parseInt(_0x477b1b(0x2b7))/0x8)+-parseInt(_0x477b1b(0x227))/0x9+parseInt(_0x477b1b(0x1d8))/0xa;if(_0x106c2f===_0x69940b)break;else _0x1fbf7b['push'](_0x1fbf7b['shift']());}catch(_0x454c90){_0x1fbf7b['push'](_0x1fbf7b['shift']());}}}(_0x3e4d,0x6af82),function(_0xaa2a79,_0x56cde7){const _0x5a7d70=_0x286e;typeof exports=='object'&&typeof module<'u'?_0x56cde7(exports,require('@univerjs-pro/shape-editor-ui'),require('@univerjs/ui'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/shape-editor'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets-ui'),require('@univerjs/drawing'),require('rxjs'),require('@univerjs/drawing-ui'),require('@univerjs/design'),require('react/jsx-runtime'),require('@univerjs-pro/license'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('@univerjs/sheets-drawing-ui'),require('react')):typeof define==_0x5a7d70(0x10d)&&define[_0x5a7d70(0x130)]?define([_0x5a7d70(0x2c2),_0x5a7d70(0x1cf),_0x5a7d70(0x2a1),_0x5a7d70(0x4e4),_0x5a7d70(0x165),_0x5a7d70(0x28c),'@univerjs/core',_0x5a7d70(0x116),'@univerjs/sheets',_0x5a7d70(0x31f),_0x5a7d70(0x3f5),_0x5a7d70(0x1e1),'rxjs',_0x5a7d70(0x25e),_0x5a7d70(0x1a0),_0x5a7d70(0x483),_0x5a7d70(0x142),_0x5a7d70(0x171),_0x5a7d70(0x22e),_0x5a7d70(0x481),_0x5a7d70(0x3a8)],_0x56cde7):(_0xaa2a79=typeof globalThis<'u'?globalThis:_0xaa2a79||self,_0x56cde7(_0xaa2a79[_0x5a7d70(0x21b)]={},_0xaa2a79[_0x5a7d70(0x272)],_0xaa2a79[_0x5a7d70(0x27f)],_0xaa2a79['UniverProEngineShape'],_0xaa2a79[_0x5a7d70(0x4b2)],_0xaa2a79[_0x5a7d70(0x3c3)],_0xaa2a79[_0x5a7d70(0x503)],_0xaa2a79[_0x5a7d70(0x137)],_0xaa2a79[_0x5a7d70(0x2ab)],_0xaa2a79[_0x5a7d70(0x3b7)],_0xaa2a79[_0x5a7d70(0x515)],_0xaa2a79[_0x5a7d70(0x1eb)],_0xaa2a79[_0x5a7d70(0x13a)],_0xaa2a79[_0x5a7d70(0x3a0)],_0xaa2a79[_0x5a7d70(0x507)],_0xaa2a79[_0x5a7d70(0x4d6)],_0xaa2a79[_0x5a7d70(0x10e)],_0xaa2a79[_0x5a7d70(0x425)],_0xaa2a79['UniverDocsUi'],_0xaa2a79[_0x5a7d70(0x1ba)],_0xaa2a79[_0x5a7d70(0x4d6)]));}(this,function(_0x3d809c,_0x354392,_0x36a73f,_0x11e0df,_0x4e6980,_0xb19349,_0x244243,_0x559311,_0x126f61,_0x29aa40,_0x180b4c,_0x43c769,_0x38f817,_0x4cdb25,_0x275c79,_0x1edb74,_0x3cffa1,_0x5defe7,_0x3f2843,_0x37d78b,_0x2ba528){const _0xa608a8=_0x286e;Object[_0xa608a8(0x34b)](_0x3d809c,Symbol[_0xa608a8(0x49f)],{'value':_0xa608a8(0x218)});function _0x9c07c9(_0x5e2c96,_0x253c39){const _0x582f7b=_0xa608a8;let _0x4ca7ea={};for(let _0x29d661 of Object[_0x582f7b(0x13c)](_0x253c39)){let _0x32d645=_0x253c39[_0x29d661],_0x2a7c02=_0x5e2c96[_0x29d661];_0x4ca7ea[_0x29d661]=_0x2a7c02===void 0x0?void 0x0:typeof _0x32d645==_0x582f7b(0x2cc)&&_0x32d645&&!Array[_0x582f7b(0x2c6)](_0x32d645)&&typeof _0x2a7c02==_0x582f7b(0x2cc)&&_0x2a7c02&&!Array[_0x582f7b(0x2c6)](_0x2a7c02)?_0x9c07c9(_0x2a7c02,_0x32d645):_0x2a7c02;}return _0x4ca7ea;}let _0x4a2843={'type':_0x244243['CommandType'][_0xa608a8(0x461)],'id':_0xa608a8(0x3ac),'handler':(_0x59c30a,_0x39ddbc)=>{const _0x4a5cd8=_0xa608a8;let _0x3fd0d2=_0x59c30a[_0x4a5cd8(0x20b)](_0xb19349['SheetsShapeService']),{unitId:_0x22082d,subUnitId:_0x436bbe,shapeType:_0x503e7f,shapeId:_0x3549e5,shapeData:_0x255ac3,replaceShapeData:_0x4ab353,oldShapeJSON:_0x1ba4a6}=_0x39ddbc;if(!_0x3fd0d2[_0x4a5cd8(0x335)](_0x22082d,_0x436bbe,_0x3549e5))return!0x1;let _0x4f1643=_0x59c30a[_0x4a5cd8(0x20b)](_0x244243[_0x4a5cd8(0x2d0)]),_0x3af44a=_0x59c30a['get'](_0x244243[_0x4a5cd8(0x11d)]),{oldShapeType:_0x3844a3,oldShapeData:_0x14c846={}}=_0x1ba4a6,_0xfaf15=_0x4ab353?_0x14c846:_0x9c07c9(_0x14c846,_0x255ac3||{}),_0x1307d7={'id':_0xb19349['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x22082d,'subUnitId':_0x436bbe,'shapeId':_0x3549e5,'shapeType':_0x503e7f,'shapeData':_0x255ac3,'replace':_0x4ab353}},_0x55aecf={'id':_0xb19349['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x22082d,'subUnitId':_0x436bbe,'shapeId':_0x3549e5,'shapeType':_0x3844a3,'shapeData':_0xfaf15,'replace':_0x4ab353}};return _0x4f1643['syncExecuteCommand'](_0x1307d7['id'],_0x1307d7[_0x4a5cd8(0x131)])?(_0x3af44a[_0x4a5cd8(0x2df)]({'unitID':_0x22082d,'undoMutations':[_0x55aecf],'redoMutations':[_0x1307d7]}),!0x0):!0x1;}};function _0x1f80f7(_0x50ca2a,_0x622347,_0x489a76,_0x2d1ee7,_0x3eb60a,_0x2f1f01){let _0x284852={'unitId':_0x622347,'subUnitId':_0x489a76,'shapeId':_0x2d1ee7,'shapeData':_0x2f1f01,'oldShapeJSON':_0x3eb60a};return _0x50ca2a['executeCommand'](_0x4a2843['id'],_0x284852);}function _0x1dee54(_0x3b33f5,_0x58146d,_0x25c56f,_0x2bf010,_0x283c21,_0x4e582a){let _0xf39a4b={'unitId':_0x58146d,'subUnitId':_0x25c56f,'shapeId':_0x2bf010,'shapeData':_0x4e582a,'oldShapeJSON':_0x283c21};return _0x3b33f5['executeCommand'](_0x4a2843['id'],_0xf39a4b);}function _0x2e9017(_0x255e77){'@babel/helpers - typeof';const _0x3f6039=_0xa608a8;return _0x2e9017=typeof Symbol==_0x3f6039(0x10d)&&typeof Symbol[_0x3f6039(0x30f)]==_0x3f6039(0x2a6)?function(_0x269954){return typeof _0x269954;}:function(_0x316267){const _0x168455=_0x3f6039;return _0x316267&&typeof Symbol==_0x168455(0x10d)&&_0x316267['constructor']===Symbol&&_0x316267!==Symbol[_0x168455(0x289)]?_0x168455(0x2a6):typeof _0x316267;},_0x2e9017(_0x255e77);}function _0x3bb289(_0x32b435,_0x2594c0){const _0x364826=_0xa608a8;if(_0x2e9017(_0x32b435)!=_0x364826(0x2cc)||!_0x32b435)return _0x32b435;var _0x195b40;if(typeof Symbol<'u'&&(_0x195b40=_0x32b435[Symbol['toPrimitive']])!==void 0x0){var _0x28d7f9=_0x195b40[_0x364826(0x15c)](_0x32b435,_0x2594c0||_0x364826(0x4dc));if(_0x2e9017(_0x28d7f9)!=_0x364826(0x2cc))return _0x28d7f9;throw TypeError(_0x364826(0x429));}return(_0x2594c0==='string'?String:Number)(_0x32b435);}function _0x12ded2(_0x3b2753){const _0xf2d04e=_0xa608a8;var _0x366312=_0x3bb289(_0x3b2753,'string');return _0x2e9017(_0x366312)==_0xf2d04e(0x2a6)?_0x366312:_0x366312+'';}function _0x5b48d0(_0x132f52,_0x2852fe,_0x44f223){const _0x488f6e=_0xa608a8;return(_0x2852fe=_0x12ded2(_0x2852fe))in _0x132f52?Object[_0x488f6e(0x34b)](_0x132f52,_0x2852fe,{'value':_0x44f223,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x132f52[_0x2852fe]=_0x44f223,_0x132f52;}function _0x357908(_0x2d9157,_0x5e5c77,_0x31609c){const _0x153b9a=_0xa608a8;let _0x1a8a49={..._0x5e5c77,'dataModel':{..._0x5e5c77[_0x153b9a(0x14b)]??{},..._0x31609c?{'doc':_0x31609c}:null}},_0x42ac15=(0x0,_0x354392[_0x153b9a(0x4d2)])(_0x2d9157,_0x1a8a49),_0xa1c7c8=(0x0,_0x354392[_0x153b9a(0x492)])(_0x42ac15);return{'clip':(0x0,_0x354392[_0x153b9a(0x279)])(_0x42ac15,_0xa1c7c8),'wrapStrategy':_0xa1c7c8};}var _0x5ee4ee=class extends _0x559311['Shape']{constructor(_0x1d2969,_0x7ab2f3){const _0x50e3e3=_0xa608a8;super(_0x1d2969,_0x7ab2f3),_0x5b48d0(this,_0x50e3e3(0x238),[]),_0x5b48d0(this,'_props',void 0x0),_0x5b48d0(this,_0x50e3e3(0x2f6),new _0x354392[(_0x50e3e3(0x31c))](()=>this[_0x50e3e3(0x476)](!0x0),()=>this[_0x50e3e3(0x51e)]())),_0x5b48d0(this,_0x50e3e3(0x2a3),!0x0),_0x5b48d0(this,_0x50e3e3(0x2cd),_0x244243[_0x50e3e3(0x138)][_0x50e3e3(0x4e9)]),_0x5b48d0(this,'isDrawingObject',!0x0),this['_props']={..._0x7ab2f3},this[_0x50e3e3(0x2f6)][_0x50e3e3(0x1de)](_0x7ab2f3['formulaPresentation'],_0x7ab2f3[_0x50e3e3(0x23c)]!==!0x1),this['_init'](),this[_0x50e3e3(0x51e)]();}[_0xa608a8(0x396)](){const _0x49cc0e=_0xa608a8;this[_0x49cc0e(0x4bf)][_0x49cc0e(0x1ef)](_0x479ebb=>{this['_updateSrcRectByTransform'](_0x479ebb);});}[_0xa608a8(0x1f7)](_0x2b9d32){const _0x4796e1=_0xa608a8;this['_props'][_0x4796e1(0x3c9)]=_0x2b9d32;}['resolveHyperLinkAt'](_0x5b6b28){const _0x467c02=_0xa608a8;if(this[_0x467c02(0x3c5)][_0x467c02(0x482)])return null;let _0x49d065=this[_0x467c02(0x287)](_0x5b6b28),{width:_0x1e65c7,height:_0x30810f}=this[_0x467c02(0x40c)]();return(0x0,_0x354392[_0x467c02(0x494)])(this[_0x467c02(0x238)],{'x':(this[_0x467c02(0x4ff)]?-_0x49d065['x']:_0x49d065['x'])+_0x1e65c7/0x2,'y':_0x49d065['y']+_0x30810f/0x2});}['setEditing'](_0x47076b){const _0x5bb06d=_0xa608a8;this['_props'][_0x5bb06d(0x482)]=_0x47076b,this[_0x5bb06d(0x476)](!0x0);}[_0xa608a8(0x27c)](_0x53efdb,_0x1ccf1a=!0x0){const _0xe6838c=_0xa608a8;this[_0xe6838c(0x2f6)][_0xe6838c(0x1de)](_0x53efdb,_0x1ccf1a),this[_0xe6838c(0x3c5)][_0xe6838c(0x417)]=_0x53efdb,this[_0xe6838c(0x51e)](),this[_0xe6838c(0x476)](!0x0);}[_0xa608a8(0x51e)](){const _0x13e2ef=_0xa608a8;let _0x41c6bd=this['_props'][_0x13e2ef(0x278)],_0xca78d8=_0x41c6bd['getShapeTextData'](),_0x682594=(0x0,_0x354392[_0x13e2ef(0x394)])(_0xca78d8==null?void 0x0:_0xca78d8['dataModel']),_0x15a659=_0x682594==null?void 0x0:_0x682594[_0x13e2ef(0x3d4)],_0x12b06e=this[_0x13e2ef(0x2f6)][_0x13e2ef(0x2cf)]();if(!_0x15a659||_0x12b06e[_0x13e2ef(0x225)]===0x0)return;_0x41c6bd[_0x13e2ef(0x30c)]({'width':this['width'],'height':this[_0x13e2ef(0x474)]});let _0xd872a=(0x0,_0x354392[_0x13e2ef(0x2a7)])({'documentData':_0x12b06e['map'](_0x4edfae=>(0x0,_0x4e6980[_0x13e2ef(0x26f)])(_0x15a659,_0x4edfae)),'height':this[_0x13e2ef(0x474)],'shapeData':_0x41c6bd[_0x13e2ef(0x169)](),'textRect':_0x41c6bd[_0x13e2ef(0x460)]({'left':0x0,'top':0x0,'width':this[_0x13e2ef(0x302)],'height':this[_0x13e2ef(0x474)]}),'width':this[_0x13e2ef(0x302)]});if(_0xd872a){var _0x4671c6;this[_0x13e2ef(0x17c)](_0xd872a[_0x13e2ef(0x302)],_0xd872a[_0x13e2ef(0x474)]),(_0x4671c6=this[_0x13e2ef(0x4ca)]())==null||(_0x4671c6=_0x4671c6[_0x13e2ef(0x267)]())==null||_0x4671c6[_0x13e2ef(0x319)]();}}get[_0xa608a8(0x284)](){const _0x4065f3=_0xa608a8;return this[_0x4065f3(0x3c5)][_0x4065f3(0x284)];}get[_0xa608a8(0x226)](){const _0x38a903=_0xa608a8;return this['_props'][_0x38a903(0x226)];}['_updateSrcRectByTransform'](_0x50e8f3){const _0x1a2e9b=_0xa608a8;if(this[_0x1a2e9b(0x3c5)][_0x1a2e9b(0x46d)]==null||!this[_0x1a2e9b(0x2a3)])return;let {width:_0x2608e6,height:_0x3ecfc5}=this,{width:_0x387222=0x0,height:_0x42caf2=0x0}=_0x50e8f3['preValue'],{left:_0x2f0e76=0x0,top:_0x5307b5=0x0,right:_0x438837=0x0,bottom:_0x4b9f3a=0x0}=this['_props'][_0x1a2e9b(0x46d)],_0x5b4f95=_0x2f0e76,_0x843b34=_0x5307b5,_0x1a95cc=_0x438837,_0x2f4678=_0x4b9f3a,_0x46287e=!0x1;if(_0x387222!==0x0&&_0x387222!==_0x2608e6){let _0x44e99a=_0x2f0e76/_0x387222,_0x3382a6=_0x438837/_0x387222;_0x5b4f95=_0x2608e6*_0x44e99a,_0x1a95cc=_0x2608e6*_0x3382a6,_0x46287e=!0x0;}if(_0x42caf2!==0x0&&_0x42caf2!==_0x3ecfc5){let _0x51bdf3=_0x5307b5/_0x42caf2,_0x241bb3=_0x4b9f3a/_0x42caf2;_0x843b34=_0x3ecfc5*_0x51bdf3,_0x2f4678=_0x3ecfc5*_0x241bb3,_0x46287e=!0x0;}_0x46287e&&this[_0x1a2e9b(0x15d)]({'left':_0x5b4f95,'top':_0x843b34,'right':_0x1a95cc,'bottom':_0x2f4678});}[_0xa608a8(0x15d)](_0x408b6b){const _0x213efd=_0xa608a8;this[_0x213efd(0x3c5)][_0x213efd(0x46d)]=_0x408b6b,this[_0x213efd(0x476)](!0x0);}[_0xa608a8(0x364)](_0x40acfb){const _0x2ea331=_0xa608a8;this[_0x2ea331(0x3c5)][_0x2ea331(0x463)]=_0x40acfb,this[_0x2ea331(0x476)](!0x0);}set[_0xa608a8(0x31b)](_0x49aa44){const _0x58613c=_0xa608a8;this[_0x58613c(0x2ff)]=_0x49aa44;}get['transform'](){const _0xe07f23=_0xa608a8;this[_0xe07f23(0x2ff)]||this['_setTransForm']();let _0xa3e4ec=this[_0xe07f23(0x2ff)][_0xe07f23(0x28f)]();return this[_0xe07f23(0x505)](_0xa3e4ec);}get[_0xa608a8(0x278)](){const _0x4d6713=_0xa608a8;return this[_0x4d6713(0x3c5)][_0x4d6713(0x278)];}get[_0xa608a8(0x3d5)](){const _0x1e14c1=_0xa608a8;return this[_0x1e14c1(0x3c5)][_0x1e14c1(0x3d5)];}get[_0xa608a8(0x152)](){const _0x9769c3=_0xa608a8;return _0x559311['RENDER_CLASS_TYPE'][_0x9769c3(0x2a5)];}[_0xa608a8(0x4cf)](_0x4605f6,_0x4d2642,_0x303d4a,_0x1d7288){const _0x2b7308=_0xa608a8;let _0x542d05=this[_0x2b7308(0x3c5)][_0x2b7308(0x278)];if(!_0x542d05||!_0x4d2642)return;let _0x344cae=_0x303d4a??this[_0x2b7308(0x302)],_0x3dc43d=_0x1d7288??this[_0x2b7308(0x474)],_0x537a00={'shapeType':_0x542d05[_0x2b7308(0x4e2)](),'width':_0x344cae,'height':_0x3dc43d},_0x3a5f32={'renderMode':_0x11e0df[_0x2b7308(0x22f)][_0x2b7308(0x230)],'oKey':this[_0x2b7308(0x26d)],'image':this[_0x2b7308(0x3c5)][_0x2b7308(0x463)],'angle':this[_0x2b7308(0x3b9)]};_0x542d05['updateContext'](_0x537a00),_0x4605f6[_0x2b7308(0x2e6)]();let _0xf1f372={'top':0x0,'left':0x0,'width':_0x344cae,'height':_0x3dc43d},_0x259664=_0x542d05[_0x2b7308(0x3ed)](_0xf1f372);_0x259664?this['_renderWithCache'](_0x4605f6,_0x259664,_0x302412=>{_0x542d05['render'](_0x302412,_0xf1f372,_0x3a5f32);}):(this[_0x2b7308(0x350)](),_0x542d05[_0x2b7308(0x2bc)](_0x4605f6,_0xf1f372,_0x3a5f32)),_0x4605f6[_0x2b7308(0x140)]();let _0x4d8533=_0x542d05[_0x2b7308(0x466)](),_0x4ec047=_0x542d05[_0x2b7308(0x460)](_0xf1f372),_0x1baa79=_0x542d05['isLineShape']();if(_0x4d8533&&_0x4ec047&&!_0x1baa79){_0x4605f6['save'](),this[_0x2b7308(0x4be)]()['flipX']&&_0x4605f6['scale'](-0x1,0x1);let _0x3041bd=_0x344cae/0x2,_0x1ce603=_0x3dc43d/0x2;_0x4605f6[_0x2b7308(0x3c0)](-_0x3041bd,-_0x1ce603),_0x4605f6[_0x2b7308(0x117)](),this[_0x2b7308(0x15b)](_0x4605f6,_0x4d8533,_0x4ec047),_0x4605f6[_0x2b7308(0x140)]();}}['getDrawingPoints'](_0x29e249){}[_0xa608a8(0x15b)](_0x4adc6b,_0x9d3119,_0x83db6f){const _0x48150c=_0xa608a8;var _0x3b46b2;this[_0x48150c(0x238)]=[],this[_0x48150c(0x3c5)][_0x48150c(0x482)]||(!((_0x3b46b2=_0x9d3119[_0x48150c(0x14b)])!=null&&_0x3b46b2[_0x48150c(0x3d4)])&&_0x48150c(0x1e9)in _0x9d3119&&_0x9d3119[_0x48150c(0x1e9)]===!0x1?this['_drawSimpleText'](_0x4adc6b,_0x9d3119,_0x83db6f):this[_0x48150c(0x143)](_0x4adc6b,_0x9d3119,_0x83db6f));}[_0xa608a8(0x373)](_0x1242c4,_0x1ddb59,_0x4c1db8){const _0x435bd8=_0xa608a8;this[_0x435bd8(0x143)](_0x1242c4,{..._0x1ddb59,'text':_0x1ddb59[_0x435bd8(0x4de)]??'','dataModel':{'doc':(0x0,_0x354392[_0x435bd8(0x114)])(_0x1ddb59,_0x435bd8(0x144)+this[_0x435bd8(0x26d)])}},_0x4c1db8);}[_0xa608a8(0x143)](_0x38cafd,_0x110d72,_0x1f54d4){const _0x508abf=_0xa608a8;(0x0,_0x354392[_0x508abf(0x156)])(_0x38cafd,this[_0x508abf(0x2f6)],(_0x503c50,_0xdf7f31,_0x12c9fd)=>{this['_drawRichTextLayer'](_0x503c50,_0x110d72,_0x1f54d4,_0xdf7f31,_0x12c9fd==='current');});}[_0xa608a8(0x325)](_0x34e75a,_0x402f09,_0x28f7f0,_0xd83257,_0x63ce52){const _0x22ac97=_0xa608a8;let _0x4ef842=this[_0x22ac97(0x3c5)][_0x22ac97(0x2e8)];if(!_0x402f09[_0x22ac97(0x14b)]||!_0x4ef842)return;let _0x567ecd=(0x0,_0x354392[_0x22ac97(0x394)])(_0x402f09['dataModel']);if(!_0x567ecd)return;let _0x43f43b=_0x567ecd['doc'];if(!_0x43f43b)return;let _0x534e8d=(0x0,_0x4e6980[_0x22ac97(0x26f)])(_0x43f43b,_0xd83257),_0x444aa8=_0x567ecd['va']??_0x244243[_0x22ac97(0x113)][_0x22ac97(0x4a2)],_0xf5ca19=_0x567ecd['ha']??_0x244243[_0x22ac97(0x49d)]['LEFT'],_0x53c362=_0x357908(this['_props'][_0x22ac97(0x278)][_0x22ac97(0x169)](),_0x402f09,_0x534e8d),_0x1bcb8d=_0x402f09[_0x22ac97(0x1e5)],_0x5daa07=(0x0,_0x354392[_0x22ac97(0x246)])(_0x534e8d,{'isHorizontal':_0x1bcb8d!==!0x1,'textRect':_0x28f7f0,'verticalAlign':_0x444aa8,'horizontalAlign':_0xf5ca19,'wrapStrategy':_0x53c362['wrapStrategy']}),_0x2e0293=new _0x244243[(_0x22ac97(0x44e))](_0x5daa07),_0x5ae5ff=new _0x559311[(_0x22ac97(0x216))](_0x2e0293),_0xe43ec5=_0x559311[_0x22ac97(0x2f9)][_0x22ac97(0x42b)](_0x5ae5ff,_0x4ef842);_0xe43ec5['calculate']();let _0x4d213a=_0xe43ec5[_0x22ac97(0x44d)]()[_0x22ac97(0x3ba)],_0x2c86eb=(0x0,_0x354392['resolveShapeTextDocumentRenderLayout'])({'contentHeight':_0x4d213a,'verticalAlign':_0x444aa8,'viewportHeight':_0x28f7f0[_0x22ac97(0x474)]});_0x2e0293['updateDocumentStyle']({'pageSize':{'width':_0x1bcb8d===!0x1?_0x28f7f0[_0x22ac97(0x474)]:_0x28f7f0[_0x22ac97(0x302)],'height':(0x0,_0x354392['resolveShapeTextDocumentPageHeight'])(_0x534e8d,_0x2c86eb[_0x22ac97(0x348)])}}),_0x2e0293['updateDocumentDataMargin']({'t':_0x2c86eb[_0x22ac97(0x46c)]}),_0xe43ec5[_0x22ac97(0x34a)]();let _0x3a3a64=new _0x559311['Documents'](_0x22ac97(0x3ae)+this['oKey'],_0xe43ec5,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x22ac97(0x476)](!0x0)});_0x3a3a64[_0x22ac97(0x17c)](_0x28f7f0['width'],_0x2c86eb[_0x22ac97(0x348)]),_0x34e75a[_0x22ac97(0x2e6)](),_0x34e75a[_0x22ac97(0x184)](_0x28f7f0[_0x22ac97(0x371)],_0x28f7f0[_0x22ac97(0x4f5)]),_0x53c362['clip']&&(_0x34e75a[_0x22ac97(0x117)](),_0x34e75a[_0x22ac97(0x17e)](0x0,_0x2c86eb[_0x22ac97(0x11b)],_0x28f7f0[_0x22ac97(0x302)],_0x2c86eb[_0x22ac97(0x470)]),_0x34e75a[_0x22ac97(0x181)]()),_0x2c86eb['contentVerticalOffset']&&_0x34e75a['translateWithPrecision'](0x0,_0x2c86eb[_0x22ac97(0x141)]),_0x3a3a64['draw'](_0x34e75a),_0x63ce52&&(this[_0x22ac97(0x238)]=(0x0,_0x354392[_0x22ac97(0x360)])(_0x3a3a64,{'left':_0x28f7f0[_0x22ac97(0x371)],'top':_0x28f7f0[_0x22ac97(0x4f5)]+_0x2c86eb['contentVerticalOffset']},_0x53c362[_0x22ac97(0x181)]?{'left':_0x28f7f0[_0x22ac97(0x371)],'right':_0x28f7f0['left']+_0x28f7f0['width'],'top':_0x28f7f0['top']+_0x2c86eb[_0x22ac97(0x11b)],'bottom':_0x28f7f0[_0x22ac97(0x4f5)]+_0x2c86eb[_0x22ac97(0x11b)]+_0x2c86eb[_0x22ac97(0x470)]}:void 0x0)),_0x34e75a[_0x22ac97(0x140)](),_0x3a3a64['dispose'](),_0xe43ec5[_0x22ac97(0x11e)](),_0x5ae5ff[_0x22ac97(0x11e)](),_0x2e0293[_0x22ac97(0x11e)]();}[_0xa608a8(0x2bc)](_0x306a7f,_0x142aae,_0x42e7fa=!0x1){const _0x5c5c72=_0xa608a8;if(!this[_0x5c5c72(0x24c)])return this['makeDirty'](!0x1),this;let {width:_0x407268,height:_0x16917e,left:_0x226e42,top:_0x10e6a8}=this,_0x20bb30=this[_0x5c5c72(0x40c)]();if(_0x407268=_0x20bb30[_0x5c5c72(0x302)],_0x16917e=_0x20bb30[_0x5c5c72(0x474)],_0x226e42=_0x20bb30[_0x5c5c72(0x371)],_0x10e6a8=_0x20bb30[_0x5c5c72(0x4f5)],this['isRender'](_0x142aae)){let {top:_0x32d981,left:_0xc6d266,bottom:_0x2897bd,right:_0x400256}=_0x142aae[_0x5c5c72(0x268)];if(_0x407268+this[_0x5c5c72(0x440)]+_0x226e42<_0xc6d266||_0x400256<_0x226e42||_0x16917e+this[_0x5c5c72(0x440)]+_0x10e6a8<_0x32d981||_0x2897bd<_0x10e6a8)return this;}let _0x52306f=_0x226e42+_0x407268/0x2,_0x599c66=_0x10e6a8+_0x16917e/0x2,_0x508b8b=this[_0x5c5c72(0x31b)][_0x5c5c72(0x1a7)]();if(this['_props'][_0x5c5c72(0x482)]){let _0x1b527b=this[_0x5c5c72(0x4be)](),_0x53f10a=new _0x559311[(_0x5c5c72(0x331))]();_0x53f10a[_0x5c5c72(0x434)]({..._0x1b527b}),_0x508b8b=_0x53f10a[_0x5c5c72(0x1a7)]();}return _0x306a7f['save'](),this[_0x5c5c72(0x3c5)]['shapeModel']['isRenderLinePointsMode']===!0x0||_0x306a7f[_0x5c5c72(0x31b)](_0x508b8b[0x0],_0x508b8b[0x1],_0x508b8b[0x2],_0x508b8b[0x3],_0x52306f,_0x599c66),this[_0x5c5c72(0x4cf)](_0x306a7f,_0x142aae,_0x407268,_0x16917e),_0x306a7f[_0x5c5c72(0x140)](),this[_0x5c5c72(0x476)](!0x1),this;}[_0xa608a8(0x287)](_0x42c260){const _0x18fbf4=_0xa608a8;let {left:_0x367b2e,top:_0x2aeb17,width:_0x422754,height:_0x1e6e77}=this[_0x18fbf4(0x40c)](),_0x5eb163=this[_0x18fbf4(0x31b)][_0x18fbf4(0x1a7)](),_0x2dafdc=_0x367b2e+_0x422754/0x2,_0x3ad2f6=_0x2aeb17+_0x1e6e77/0x2,_0xee0ae8=new _0x559311[(_0x18fbf4(0x331))]([_0x5eb163[0x0],_0x5eb163[0x1],_0x5eb163[0x2],_0x5eb163[0x3],_0x2dafdc,_0x3ad2f6]),_0x355827=this[_0x18fbf4(0x43c)]();return(this['isInGroup']&&(_0x355827==null?void 0x0:_0x355827[_0x18fbf4(0x152)])===_0x559311[_0x18fbf4(0x148)]['GROUP']?_0x355827[_0x18fbf4(0x4d7)][_0x18fbf4(0x32b)](_0xee0ae8):_0xee0ae8)[_0x18fbf4(0x202)]()[_0x18fbf4(0x3af)](_0x42c260);}[_0xa608a8(0x38b)](_0x525160){const _0xb9162c=_0xa608a8;let {left:_0x1a3c36,top:_0x53689e,width:_0x161e8a,height:_0x9fb0de}=this['getRealBound'](),_0x178c8a=_0x1a3c36+_0x161e8a/0x2,_0xc3ce2e=_0x53689e+_0x9fb0de/0x2,_0xcbb1bf=this[_0xb9162c(0x31b)][_0xb9162c(0x1a7)](),_0x15d3c0=new _0x559311[(_0xb9162c(0x331))]([_0xcbb1bf[0x0],_0xcbb1bf[0x1],_0xcbb1bf[0x2],_0xcbb1bf[0x3],_0x178c8a,_0xc3ce2e]),_0x3595f0=this[_0xb9162c(0x43c)](),_0x12fddd=(this['isInGroup']&&(_0x3595f0==null?void 0x0:_0x3595f0[_0xb9162c(0x152)])===_0x559311['RENDER_CLASS_TYPE']['GROUP']?_0x3595f0[_0xb9162c(0x4d7)][_0xb9162c(0x32b)](_0x15d3c0):_0x15d3c0)[_0xb9162c(0x202)]()[_0xb9162c(0x3af)](_0x525160),_0x29b067=_0x161e8a/0x2,_0x33f4f3=_0x9fb0de/0x2,_0x44c583=this[_0xb9162c(0x3c5)]['shapeModel'];return _0x44c583&&_0x44c583[_0xb9162c(0x385)]()?_0x44c583[_0xb9162c(0x356)](_0x12fddd['x'],_0x12fddd['y'],_0x161e8a,_0x9fb0de):_0x12fddd['x']>=-_0x29b067-this[_0xb9162c(0x440)]/0x2&&_0x12fddd['x']<=_0x29b067+this[_0xb9162c(0x440)]/0x2&&_0x12fddd['y']>=-_0x33f4f3-this[_0xb9162c(0x440)]/0x2&&_0x12fddd['y']<=_0x33f4f3+this[_0xb9162c(0x440)]/0x2;}[_0xa608a8(0x11e)](){const _0x4f0e32=_0xa608a8;this['_formulaAnimation'][_0x4f0e32(0x11e)](),this[_0x4f0e32(0x3c5)]['shapeModel']=null,super['dispose']();}},_0x40f42f=class extends _0x559311[_0xa608a8(0x115)]{constructor(_0xf253b4,_0x524a60){const _0x43e7b5=_0xa608a8;super(_0xf253b4,_0x524a60),_0x5b48d0(this,_0x43e7b5(0x34c),null),_0x5b48d0(this,'_adjName',null),_0x5b48d0(this,_0x43e7b5(0x2e3),null),_0x5b48d0(this,_0x43e7b5(0x2f5),null),_0x524a60&&this[_0x43e7b5(0x426)](_0x524a60);}[_0xa608a8(0x18a)](){const _0x552f6c=_0xa608a8;return{'unitId':this[_0x552f6c(0x2e3)],'subUnitId':this[_0x552f6c(0x2f5)],'drawingId':this['_shapeId']};}[_0xa608a8(0x426)](_0x29e12c){const _0x38f54a=_0xa608a8;_0x29e12c[_0x38f54a(0x3d5)]!==void 0x0&&(this[_0x38f54a(0x34c)]=_0x29e12c['shapeId']),_0x29e12c[_0x38f54a(0x472)]!==void 0x0&&(this[_0x38f54a(0x224)]=_0x29e12c[_0x38f54a(0x472)]),_0x29e12c[_0x38f54a(0x284)]!==void 0x0&&(this['_unitId']=_0x29e12c[_0x38f54a(0x284)]),_0x29e12c[_0x38f54a(0x226)]!==void 0x0&&(this[_0x38f54a(0x2f5)]=_0x29e12c[_0x38f54a(0x226)]),this[_0x38f54a(0x27d)]({'width':_0x29e12c[_0x38f54a(0x302)],'height':_0x29e12c['height']});}[_0xa608a8(0x4cf)](_0xf6286b){const _0x303d32=_0xa608a8;_0x559311['Circle'][_0x303d32(0x2ed)](_0xf6286b,{'radius':_0x11e0df[_0x303d32(0x4bb)]['adjHandleSize'],'fill':_0x11e0df[_0x303d32(0x4bb)][_0x303d32(0x260)],'stroke':_0x11e0df['ShapeDefaultConfig'][_0x303d32(0x3a2)],'strokeWidth':0x1,'evented':!0x0});}};function _0x542dc8(_0x4e32d1,_0x5fa40e){return function(_0x1c17ae,_0xac6321){_0x5fa40e(_0x1c17ae,_0xac6321,_0x4e32d1);};}function _0x4cddfe(_0x1717e5,_0x303dfe,_0x4ca442,_0x1dca82){const _0x3d5917=_0xa608a8;var _0x408d3f=arguments[_0x3d5917(0x225)],_0x43fe78=_0x408d3f<0x3?_0x303dfe:_0x1dca82===null?_0x1dca82=Object[_0x3d5917(0x220)](_0x303dfe,_0x4ca442):_0x1dca82,_0x455cf6;if(typeof Reflect==_0x3d5917(0x2cc)&&typeof Reflect[_0x3d5917(0x2ae)]==_0x3d5917(0x10d))_0x43fe78=Reflect[_0x3d5917(0x2ae)](_0x1717e5,_0x303dfe,_0x4ca442,_0x1dca82);else{for(var _0x365d92=_0x1717e5[_0x3d5917(0x225)]-0x1;_0x365d92>=0x0;_0x365d92--)(_0x455cf6=_0x1717e5[_0x365d92])&&(_0x43fe78=(_0x408d3f<0x3?_0x455cf6(_0x43fe78):_0x408d3f>0x3?_0x455cf6(_0x303dfe,_0x4ca442,_0x43fe78):_0x455cf6(_0x303dfe,_0x4ca442))||_0x43fe78);}return _0x408d3f>0x3&&_0x43fe78&&Object[_0x3d5917(0x34b)](_0x303dfe,_0x4ca442,_0x43fe78),_0x43fe78;}let _0x4f6784=class extends _0x244243[_0xa608a8(0x2a8)]{constructor(_0x3ae051,_0x59c55c,_0x25ba83,_0x35203e,_0x5db006,_0x11fc5a){const _0x1f6d5a=_0xa608a8;super(),this['_drawingManagerService']=_0x3ae051,this[_0x1f6d5a(0x524)]=_0x59c55c,this['_localeService']=_0x25ba83,this[_0x1f6d5a(0x172)]=_0x35203e,this[_0x1f6d5a(0x3e0)]=_0x5db006,this['_shapeFormulaService']=_0x11fc5a,_0x5b48d0(this,'_formulaShapes',new Map()),this[_0x1f6d5a(0x322)](this[_0x1f6d5a(0x442)][_0x1f6d5a(0x2e2)]['subscribe'](_0x36f1d1=>{const _0x107f7b=_0x1f6d5a;var _0x501d27;(_0x501d27=this[_0x107f7b(0x358)][_0x107f7b(0x20b)](this[_0x107f7b(0x352)](_0x36f1d1[_0x107f7b(0x284)],_0x36f1d1[_0x107f7b(0x226)],_0x36f1d1[_0x107f7b(0x3d5)])))==null||_0x501d27[_0x107f7b(0x2ce)](_0x46ae62=>_0x46ae62['setFormulaPresentation'](_0x36f1d1[_0x107f7b(0x15e)],_0x36f1d1[_0x107f7b(0x495)]));})),this[_0x1f6d5a(0x322)](this[_0x1f6d5a(0x3d7)]['remove$'][_0x1f6d5a(0x376)](_0x1dd4c6=>{_0x1dd4c6['forEach'](_0x4a7974=>{const _0x2ee589=_0x286e;this['_formulaShapes']['delete'](this['_formulaKey'](_0x4a7974[_0x2ee589(0x284)],_0x4a7974[_0x2ee589(0x226)],_0x4a7974[_0x2ee589(0x2b5)]));});}));}['renderDrawingShape'](_0x2894ed,_0x5c5329,_0x568b9f){const _0x3676fd=_0xa608a8;let {transform:_0x115d86,drawingType:_0x1d0de6,isMultiTransform:_0x55f45b,transforms:_0x42f99b}=_0x2894ed;if(_0x1d0de6===_0x244243[_0x3676fd(0x138)]['DRAWING_SHAPE']&&this[_0x3676fd(0x3d7)][_0x3676fd(0x2c9)]()&&_0x115d86)return(_0x55f45b&&_0x42f99b?_0x42f99b:[_0x115d86])[_0x3676fd(0x343)]((_0x379c19,_0x413f46)=>{const _0x2db05f=_0x3676fd;var _0x2c1279;let _0x4e34f8=(0x0,_0x43c769[_0x2db05f(0x280)])(_0x2894ed,_0x55f45b?_0x413f46:void 0x0),_0x24ba80=_0x5c5329[_0x2db05f(0x47f)](_0x4e34f8);if(_0x24ba80)return _0x24ba80 instanceof _0x5ee4ee&&this[_0x2db05f(0x336)](_0x24ba80,{'unitId':_0x2894ed['unitId'],'subUnitId':_0x2894ed[_0x2db05f(0x226)],'shapeId':_0x2894ed[_0x2db05f(0x2b5)]}),_0x24ba80[_0x2db05f(0x27d)](_0x379c19),[];let _0xfcfe5d=this[_0x2db05f(0x44c)](_0x2894ed,_0x379c19,_0x4e34f8,_0x5c5329);if(!_0xfcfe5d)return[];let _0x5df2d2=this[_0x2db05f(0x42d)](_0xfcfe5d,_0xfcfe5d['shapeModel']['getShapeData']());return _0x5df2d2&&(_0x568b9f==null||(_0x2c1279=_0x568b9f[_0x2db05f(0x2ea)])==null||_0x2c1279[_0x2db05f(0x488)](_0x5df2d2)),[_0xfcfe5d];});}[_0xa608a8(0x44c)](_0x3c3ad1,_0x398e91,_0x50c3e0,_0xe94ab1){const _0x2d4973=_0xa608a8;let {unitId:_0x5e32ea,subUnitId:_0x44aa5a,drawingId:_0x6d3e9d,groupId:_0x1a23eb,hidden:_0x4ec5d1,selectable:_0x253985,prstGeom:_0x40eca1,srcRect:_0x94c5ac}=_0x3c3ad1,_0x3d4f6e=this[_0x2d4973(0x524)][_0x2d4973(0x335)](_0x5e32ea,_0x44aa5a,_0x6d3e9d);if(!_0x3d4f6e)return;let _0x18cd22=this[_0x2d4973(0x3d7)][_0x2d4973(0x31e)](_0x5e32ea,_0x44aa5a),_0x3f4242=_0x18cd22[_0x2d4973(0x190)](_0x6d3e9d),_0x56f6e6=(0x0,_0x11e0df[_0x2d4973(0x42a)])(_0x3d4f6e[_0x2d4973(0x4e2)]()),_0x1e84a8=_0x3d4f6e[_0x2d4973(0x169)]()[_0x2d4973(0x301)],_0x2f2804={'unitId':_0x5e32ea,'subUnitId':_0x44aa5a,'shapeId':_0x6d3e9d};_0x1e84a8&&this[_0x2d4973(0x442)][_0x2d4973(0x136)](_0x2f2804,_0x1e84a8);let _0x135e13=new _0x5ee4ee(_0x50c3e0,{..._0x398e91,'zIndex':_0x3f4242===-0x1?_0x18cd22[_0x2d4973(0x225)]-0x1:_0x3f4242,'shapeModel':_0x3d4f6e,'drawingType':_0x244243[_0x2d4973(0x138)][_0x2d4973(0x4e9)],'localeService':this['_localeService'],'shapeId':_0x6d3e9d,'unitId':_0x5e32ea,'subUnitId':_0x44aa5a,'visible':_0x4ec5d1!==!0x0,'evented':_0x253985!==!0x1,'formulaPresentation':_0x1e84a8?this['_shapeFormulaService']['getPresentation'](_0x2f2804):void 0x0,'animateFormulaPresentation':(_0x1e84a8==null?void 0x0:_0x1e84a8[_0x2d4973(0x495)])!==!0x1,'transformerConfig':{..._0x354392[_0x2d4973(0x340)],..._0x56f6e6?{'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{},'moveBoundaryEnabled':!0x0}});if(_0x1e84a8){let _0x5c6678=this[_0x2d4973(0x352)](_0x5e32ea,_0x44aa5a,_0x6d3e9d),_0x1235ee=this['_formulaShapes'][_0x2d4973(0x20b)](_0x5c6678)??new Set();_0x1235ee[_0x2d4973(0x488)](_0x135e13),this[_0x2d4973(0x358)][_0x2d4973(0x17d)](_0x5c6678,_0x1235ee);}return _0xe94ab1[_0x2d4973(0x1d6)](_0x135e13,_0x559311[_0x2d4973(0x17a)]),this[_0x2d4973(0x3d7)]['getDrawingEditable']()&&_0xe94ab1[_0x2d4973(0x3b8)](_0x135e13),_0x1a23eb&&(0x0,_0x4cdb25[_0x2d4973(0x51a)])({'drawingId':_0x1a23eb,'unitId':_0x5e32ea,'subUnitId':_0x44aa5a},_0x135e13,_0xe94ab1,this[_0x2d4973(0x3d7)]),_0x40eca1!=null&&_0x135e13[_0x2d4973(0x1f7)](_0x40eca1),_0x94c5ac!=null&&_0x135e13[_0x2d4973(0x15d)](_0x94c5ac),_0x135e13;}['_formulaKey'](_0xbb2fe2,_0xe02b26,_0x15b87d){return _0xbb2fe2+'\x00'+_0xe02b26+'\x00'+_0x15b87d;}[_0xa608a8(0x336)](_0x346d69,_0x58a1eb){const _0x115310=_0xa608a8;let _0x2b2c9e=this['_sheetsShapeService'][_0x115310(0x335)](_0x58a1eb[_0x115310(0x284)],_0x58a1eb[_0x115310(0x226)],_0x58a1eb[_0x115310(0x3d5)]),_0x2d0e3b=_0x2b2c9e==null?void 0x0:_0x2b2c9e[_0x115310(0x169)]()[_0x115310(0x301)],_0x5d9046=this['_formulaKey'](_0x58a1eb[_0x115310(0x284)],_0x58a1eb['subUnitId'],_0x58a1eb[_0x115310(0x3d5)]);if(_0x2d0e3b){this[_0x115310(0x442)][_0x115310(0x136)](_0x58a1eb,_0x2d0e3b);let _0x110dd4=this[_0x115310(0x358)][_0x115310(0x20b)](_0x5d9046)??new Set();_0x110dd4[_0x115310(0x488)](_0x346d69),this['_formulaShapes']['set'](_0x5d9046,_0x110dd4);}else{var _0x2074ed;this[_0x115310(0x442)][_0x115310(0x1ca)](_0x58a1eb),(_0x2074ed=this[_0x115310(0x358)][_0x115310(0x20b)](_0x5d9046))==null||_0x2074ed[_0x115310(0x1ae)](_0x346d69);}_0x346d69[_0x115310(0x27c)](_0x2d0e3b?this['_shapeFormulaService'][_0x115310(0x3ec)](_0x58a1eb):void 0x0,(_0x2d0e3b==null?void 0x0:_0x2d0e3b['animationEnabled'])!==!0x1);}[_0xa608a8(0x4f1)](_0x1c7f28){const _0x53e4d1=_0xa608a8;let _0xaabd62=_0x1c7f28['shapeModel']['getShapeData'](),_0x4861dc=_0xaabd62[_0x53e4d1(0x1c1)];!_0x4861dc||_0x4861dc['fillType']!==_0x11e0df[_0x53e4d1(0x38d)][_0x53e4d1(0x3cd)]||!_0x4861dc[_0x53e4d1(0x252)]?_0x1c7f28[_0x53e4d1(0x364)](void 0x0):this['_loadShapePictureFill'](_0x1c7f28,_0xaabd62);}[_0xa608a8(0x42d)](_0x2257ad,_0x3d9139){const _0x406ad5=_0xa608a8;let _0x541092=_0x3d9139[_0x406ad5(0x1c1)];if(!_0x541092||_0x541092[_0x406ad5(0x256)]!==_0x11e0df['ShapeFillEnum'][_0x406ad5(0x3cd)]||!_0x541092[_0x406ad5(0x252)])return;let _0x4ab7c2=_0x541092['fillImageSource'],_0x2bdad9=_0x541092['fillImageSourceType']??_0x11e0df[_0x406ad5(0x2b2)][_0x406ad5(0x379)],_0x3439e9=this[_0x406ad5(0x172)]['getImageSourceCache'](_0x4ab7c2,_0x2bdad9);if(_0x3439e9)_0x2257ad[_0x406ad5(0x364)](_0x3439e9);else return this[_0x406ad5(0x10c)](_0x2257ad,_0x4ab7c2,_0x2bdad9);}async[_0xa608a8(0x10c)](_0x1e18b9,_0x24a832,_0x791d2f){const _0x94aa24=_0xa608a8;let _0x343436;try{if(_0x791d2f===_0x11e0df['ImageSourceTypeEnum'][_0x94aa24(0x14d)])_0x343436=await this[_0x94aa24(0x172)][_0x94aa24(0x4d5)](_0x24a832);else{if(_0x791d2f===_0x11e0df['ImageSourceTypeEnum']['URL'])try{_0x343436=await this[_0x94aa24(0x3e0)][_0x94aa24(0x4d5)](_0x24a832);}catch{_0x343436=_0x24a832;}else _0x343436=_0x24a832;}}catch(_0x1d150b){console[_0x94aa24(0x467)]('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x1d150b);return;}await new Promise(_0x4f2a78=>{const _0x4a1e7c=_0x94aa24;let _0x42d704=new window[(_0x4a1e7c(0x25f))]();_0x42d704['onload']=()=>{const _0x5ed2c=_0x4a1e7c;this[_0x5ed2c(0x172)][_0x5ed2c(0x487)](_0x24a832,_0x791d2f,_0x42d704),_0x1e18b9['setFillImage'](_0x42d704),_0x4f2a78();},_0x42d704[_0x4a1e7c(0x2bb)]=()=>{const _0x1e9edf=_0x4a1e7c;console[_0x1e9edf(0x467)](_0x1e9edf(0x21f),_0x24a832),_0x4f2a78();},_0x42d704['src']=_0x343436;});}};_0x4f6784=_0x4cddfe([_0x542dc8(0x0,_0x43c769['IDrawingManagerService']),_0x542dc8(0x1,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0xb19349[_0xa608a8(0x439)])),_0x542dc8(0x2,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x244243[_0xa608a8(0x38e)])),_0x542dc8(0x3,_0x244243['IImageIoService']),_0x542dc8(0x4,_0x244243[_0xa608a8(0x1b6)]),_0x542dc8(0x5,(0x0,_0x244243['Inject'])(_0x4e6980[_0xa608a8(0x2b6)]))],_0x4f6784);let _0x35cd7c=class extends _0x244243[_0xa608a8(0x2a8)]{constructor(_0x26ba63,_0x14b179,_0x50be68,_0x1491c4,_0x409152,_0x43823f){const _0x2d2235=_0xa608a8;super(),this['_drawingManagerService']=_0x26ba63,this[_0x2d2235(0x524)]=_0x14b179,this[_0x2d2235(0x23d)]=_0x50be68,this[_0x2d2235(0x2f7)]=_0x1491c4,this[_0x2d2235(0x1e8)]=_0x409152,this[_0x2d2235(0x480)]=_0x43823f,_0x5b48d0(this,_0x2d2235(0x1ed),null),_0x5b48d0(this,_0x2d2235(0x2e3),null),_0x5b48d0(this,_0x2d2235(0x2f5),null),_0x5b48d0(this,_0x2d2235(0x2e7),void 0x0),_0x5b48d0(this,'_shapes',[]),_0x5b48d0(this,_0x2d2235(0x33e),0x0),_0x5b48d0(this,_0x2d2235(0x453),0x0),_0x5b48d0(this,_0x2d2235(0x48a),0x0),_0x5b48d0(this,_0x2d2235(0x3ab),0x0),_0x5b48d0(this,_0x2d2235(0x386),!0x1),_0x5b48d0(this,_0x2d2235(0x50d),void 0x0),_0x5b48d0(this,_0x2d2235(0x240),void 0x0),_0x5b48d0(this,'_adjHandlerPointerMove',void 0x0),_0x5b48d0(this,_0x2d2235(0x19a),void 0x0),_0x5b48d0(this,_0x2d2235(0x2ec),!0x1),this[_0x2d2235(0x1db)](),this[_0x2d2235(0x497)]();}[_0xa608a8(0x4cc)](_0x35906d,_0x275ed1,_0x3f5d46){const _0x326890=_0xa608a8;let _0x581374=this[_0x326890(0x524)]['getShapeModel'](_0x35906d,_0x275ed1,_0x3f5d46);if(_0x581374)return _0x581374['getDrawingPoints']();}['clearAdjustControls'](){const _0x519d24=_0xa608a8;this[_0x519d24(0x46b)]();}[_0xa608a8(0x14f)](){this['_updateShapeAdjustControls'](!0x0);}[_0xa608a8(0x219)](_0x51823f){const _0x538cfc=_0xa608a8;this[_0x538cfc(0x2ec)]=_0x51823f;}[_0xa608a8(0x4d1)](_0x1f3980,_0x5a803f,_0x1c249d,_0x1b30cd){const _0x334bd6=_0xa608a8;let _0x550aaf=this[_0x334bd6(0x524)]['getShapeModel'](_0x1f3980,_0x5a803f,_0x1c249d);if(_0x550aaf)return _0x550aaf['getAdjustInfoByName'](_0x1b30cd);}[_0xa608a8(0x3f9)](_0x40c322=!0x1){const _0x3564a8=_0xa608a8;if(this[_0x3564a8(0x2e3)]===null||this[_0x3564a8(0x2f5)]===null||this[_0x3564a8(0x1ed)]===null)return;let _0x57fb74=this[_0x3564a8(0x23d)][_0x3564a8(0x236)](this['_unitId']);if(!_0x57fb74||!_0x57fb74[_0x3564a8(0x3cf)](_0x180b4c[_0x3564a8(0x23a)])['getCurrentSkeleton']())return;let {scene:_0x319c69}=_0x57fb74,_0x167081={'unitId':this['_unitId'],'subUnitId':this[_0x3564a8(0x2f5)],'drawingId':this[_0x3564a8(0x1ed)]},_0x4842e0=this[_0x3564a8(0x3d7)]['getDrawingByParam'](_0x167081),{transform:_0x140c96}=_0x4842e0;if(!_0x140c96||_0x4842e0[_0x3564a8(0x351)]!==_0x244243[_0x3564a8(0x138)]['DRAWING_SHAPE'])return;let {left:_0x49ac91,top:_0x3e310a,width:_0x1c2d90,height:_0x2d15bb,flipX:_0x1de3b0,flipY:_0x27da1f,angle:_0x306fda=0x0}=_0x140c96;if(_0x49ac91===void 0x0||_0x3e310a===void 0x0)return;if(_0x40c322){let _0x1ec6b1=this[_0x3564a8(0x524)][_0x3564a8(0x335)](this[_0x3564a8(0x2e3)],this[_0x3564a8(0x2f5)],this[_0x3564a8(0x1ed)]);_0x1ec6b1==null||_0x1ec6b1[_0x3564a8(0x30c)]({'width':_0x1c2d90??0x0,'height':_0x2d15bb??0x0}),this['_activeShapeAdjustPointList']=_0x1ec6b1==null?void 0x0:_0x1ec6b1['getDrawingPoints']();}let _0x7ca000=this[_0x3564a8(0x2e7)];for(let _0x32f6f5=0x0;_0x32f6f5<_0x7ca000[_0x3564a8(0x225)];_0x32f6f5++){let _0x4fce3d=_0x7ca000[_0x32f6f5],_0x4ad77e=_0x4fce3d['x'],_0x1bbd20=_0x4fce3d['y'];if(_0x1de3b0&&(_0x4ad77e=(_0x1c2d90||0x0)-_0x4ad77e),_0x27da1f&&(_0x1bbd20=(_0x2d15bb||0x0)-_0x1bbd20),_0x306fda!==0x0){let _0x5aa25a=(_0x1c2d90||0x0)/0x2,_0x352154=(_0x2d15bb||0x0)/0x2,_0x50dffd=_0x306fda*Math['PI']/0xb4,_0x163dfc=Math['cos'](_0x50dffd),_0xc26b2c=Math[_0x3564a8(0x149)](_0x50dffd),_0x38b56d=_0x4ad77e-_0x5aa25a,_0xeec084=_0x1bbd20-_0x352154;_0x4ad77e=_0x5aa25a+(_0x38b56d*_0x163dfc-_0xeec084*_0xc26b2c),_0x1bbd20=_0x352154+(_0x38b56d*_0xc26b2c+_0xeec084*_0x163dfc);}let _0xd31f41={'x':_0x4ad77e,'y':_0x1bbd20,'adjName':_0x4fce3d[_0x3564a8(0x472)]};this[_0x3564a8(0x177)](_0x319c69,_0xd31f41,_0xd31f41[_0x3564a8(0x472)],_0x49ac91,_0x3e310a,this[_0x3564a8(0x2e3)],this[_0x3564a8(0x2f5)]);}}[_0xa608a8(0x13b)](_0x32647d=!0x1){const _0x33469b=_0xa608a8;_0x32647d&&(this[_0x33469b(0x46b)](),this[_0x33469b(0x3f9)](_0x32647d));}[_0xa608a8(0x177)](_0x88a725,_0x1d94cb,_0x33f920,_0x590eb1,_0x1bd563,_0x5e9125,_0x17f826){const _0x133249=_0xa608a8;if(!this[_0x133249(0x1ed)])return;let _0x5de1ae=_0x88a725[_0x133249(0x47f)]('shape-adjust-point-'+this['_activeShapeId']+'-'+_0x33f920);if(_0x5de1ae){_0x5de1ae['transformByState']({'left':_0x1d94cb['x']+_0x590eb1-_0x11e0df[_0x133249(0x4bb)][_0x133249(0x213)],'top':_0x1d94cb['y']+_0x1bd563-_0x11e0df['ShapeDefaultConfig'][_0x133249(0x213)]});return;}let _0x503d64={'left':_0x1d94cb['x']+_0x590eb1-_0x11e0df[_0x133249(0x4bb)][_0x133249(0x213)],'top':_0x1d94cb['y']+_0x1bd563-_0x11e0df[_0x133249(0x4bb)][_0x133249(0x213)],'adjName':_0x33f920,'shapeId':this[_0x133249(0x1ed)],'unitId':_0x5e9125,'subUnitId':_0x17f826,'width':_0x11e0df[_0x133249(0x4bb)][_0x133249(0x213)]+0x8,'height':_0x11e0df[_0x133249(0x4bb)][_0x133249(0x213)]+0x8,'zIndex':_0x559311[_0x133249(0x17a)]+0x1,'evented':!0x0},_0x3817e7=new _0x40f42f(_0x133249(0x332)+this['_activeShapeId']+'-'+_0x33f920,_0x503d64);this['_shapes'][_0x133249(0x313)](_0x3817e7),this['_attachAdjustEvent'](_0x3817e7,_0x88a725,_0x33f920),_0x88a725[_0x133249(0x1d6)](_0x3817e7,_0x559311[_0x133249(0x17a)]+0x1);}[_0xa608a8(0x46b)](){const _0x378072=_0xa608a8;this[_0x378072(0x501)]['length']!==0x0&&(this[_0x378072(0x501)]['forEach'](_0x23ee13=>{const _0x1da407=_0x378072;_0x23ee13[_0x1da407(0x11e)]();}),this[_0x378072(0x501)]=[]);}[_0xa608a8(0x3a7)](){const _0x587efc=_0xa608a8;this[_0x587efc(0x3f9)]();}[_0xa608a8(0x412)](_0x25a10f,_0x281116){const _0x4ab11f=_0xa608a8;var _0x373bca;let _0x297a92={'x':0x0,'y':0x0};if(!_0x25a10f||!_0x281116)return _0x297a92;let _0x17c180=this['_renderManagerService']['getRenderUnitById'](_0x25a10f);if(!_0x17c180||!_0x17c180['with'](_0x180b4c['SheetSkeletonManagerService'])['getSkeleton'](_0x281116))return _0x297a92;let _0x10f9dd=_0x17c180[_0x4ab11f(0x3cf)](_0x180b4c[_0x4ab11f(0x369)]),_0xca976b=_0x10f9dd==null?void 0x0:_0x10f9dd[_0x4ab11f(0x3da)]();if(!_0xca976b)return _0x297a92;let _0x5ed276=(_0x373bca=this[_0x4ab11f(0x1e8)][_0x4ab11f(0x150)](_0x25a10f))==null?void 0x0:_0x373bca[_0x4ab11f(0x4f7)](_0x281116);if(!_0x5ed276)return _0x297a92;let _0x2f7ce6=(0x0,_0x180b4c[_0x4ab11f(0x186)])(_0xca976b[_0x4ab11f(0x266)],_0xca976b[_0x4ab11f(0x191)],_0x17c180[_0x4ab11f(0x419)],_0x5ed276);return _0x2f7ce6?{'x':_0x2f7ce6[_0x4ab11f(0x3ca)],'y':_0x2f7ce6[_0x4ab11f(0x33d)]}:_0x297a92;}[_0xa608a8(0x1d0)](_0x33012f,_0x2a359d){const _0x5cddde=_0xa608a8;var _0xa908e4;let _0x2e05bd=(_0xa908e4=this['_univerInstanceService']['getUnit'](_0x33012f))==null?void 0x0:_0xa908e4[_0x5cddde(0x4f7)](_0x2a359d);return(_0x2e05bd==null?void 0x0:_0x2e05bd[_0x5cddde(0x29a)]())??0x1;}[_0xa608a8(0x445)](_0x2e9ee5,_0x58e718,_0x66482a){const _0x309712=_0xa608a8;this['disposeWithMe']((0x0,_0x244243[_0x309712(0x45a)])(_0x2e9ee5[_0x309712(0x344)][_0x309712(0x1ef)]((_0x54bbca,_0x1e55a3)=>{const _0x4db3bd=_0x309712;var _0x4eb01d,_0x4a0b01,_0x1743b1,_0x257659;let _0x40e01e=_0x2e9ee5[_0x4db3bd(0x18a)]();this[_0x4db3bd(0x50d)]=this['_getShapeAdjustInfosById'](_0x40e01e[_0x4db3bd(0x284)],_0x40e01e[_0x4db3bd(0x226)],_0x40e01e[_0x4db3bd(0x2b5)],_0x66482a),this[_0x4db3bd(0x240)]=this[_0x4db3bd(0x524)]['getShapeModel'](_0x40e01e[_0x4db3bd(0x284)],_0x40e01e[_0x4db3bd(0x226)],_0x40e01e[_0x4db3bd(0x2b5)]);let _0x20d89f=this['_drawingManagerService'][_0x4db3bd(0x462)]({'unitId':this['_unitId'],'subUnitId':this[_0x4db3bd(0x2f5)],'drawingId':this[_0x4db3bd(0x1ed)]}),{transform:_0x182e99}=_0x20d89f;if(_0x182e99){let {left:_0x51b7b2,top:_0xa529da,width:_0x5e4ef6,height:_0x2ff546}=_0x182e99;this['_baseShapeLeft']=_0x51b7b2||0x0,this[_0x4db3bd(0x453)]=_0xa529da||0x0,this[_0x4db3bd(0x48a)]=_0x5e4ef6||0x0,this[_0x4db3bd(0x3ab)]=_0x2ff546||0x0;}let _0x5d5118=!!((_0x4eb01d=_0x20d89f[_0x4db3bd(0x31b)])!=null&&_0x4eb01d[_0x4db3bd(0x4ff)]),_0x560cab=!!((_0x4a0b01=_0x20d89f[_0x4db3bd(0x31b)])!=null&&_0x4a0b01[_0x4db3bd(0x4fe)]),_0xa21412=((_0x1743b1=_0x20d89f[_0x4db3bd(0x31b)])==null?void 0x0:_0x1743b1['angle'])||0x0;this[_0x4db3bd(0x386)]=!0x0,_0x58e718[_0x4db3bd(0x40d)]();let _0x290e0b={...((_0x257659=this[_0x4db3bd(0x50d)])==null?void 0x0:_0x257659[_0x4db3bd(0x25c)])??{}};this[_0x4db3bd(0x46e)]=_0x58e718[_0x4db3bd(0x486)][_0x4db3bd(0x1ef)]((_0xf7c954,_0x55a268)=>{const _0x266257=_0x4db3bd;if(!this[_0x266257(0x386)])return;let {offsetX:_0x71194f,offsetY:_0x2b8115}=_0xf7c954,_0x1d71d3=this[_0x266257(0x50d)];if(this[_0x266257(0x240)]&&_0x1d71d3){_0x58e718['disableObjectsEvent'](),_0x58e718['setCursor'](_0x559311['CURSOR_TYPE'][_0x266257(0x438)]);let _0x47e7d7={'left':0x0,'top':0x0,'width':this[_0x266257(0x48a)],'height':this['_baseShapeHeight']},_0x5227a7=this[_0x266257(0x412)](this[_0x266257(0x2e3)],this[_0x266257(0x2f5)]),_0xea05e6=this['_getZoomRatio'](this['_unitId'],this['_subUnitId']),_0x1115ca=_0x71194f/_0xea05e6+_0x5227a7['x']-this['_baseShapeLeft'],_0x157bbc=_0x2b8115/_0xea05e6+_0x5227a7['y']-this[_0x266257(0x453)];if(_0xa21412!==0x0){let _0x352746=this[_0x266257(0x48a)]/0x2,_0x5b0bf1=this[_0x266257(0x3ab)]/0x2,_0x2c26a2=_0xa21412*Math['PI']/0xb4,_0x13bfe4=Math[_0x266257(0x26c)](_0x2c26a2),_0x2b9cdd=Math['sin'](_0x2c26a2),_0x3c4bcd=_0x1115ca-_0x352746,_0x290cf5=_0x157bbc-_0x5b0bf1;_0x1115ca=_0x352746+(_0x3c4bcd*_0x13bfe4+_0x290cf5*_0x2b9cdd),_0x157bbc=_0x5b0bf1+(-_0x3c4bcd*_0x2b9cdd+_0x290cf5*_0x13bfe4);}_0x5d5118&&(_0x1115ca=this[_0x266257(0x48a)]-_0x1115ca),_0x560cab&&(_0x157bbc=this[_0x266257(0x3ab)]-_0x157bbc);let _0x1ff94e={'x':_0x1115ca,'y':_0x157bbc},_0x4f9a73=this[_0x266257(0x240)]['calcAdjValues'](_0x47e7d7,_0x1ff94e,_0x1d71d3,_0x5d5118,_0x560cab);if(Object[_0x266257(0x13c)](_0x4f9a73)[_0x266257(0x225)]===0x0)return;for(let [_0x52ad65,_0x260fba]of Object[_0x266257(0x3b2)](_0x4f9a73))this['_activeShapeModel'][_0x266257(0x2c4)](_0x52ad65,_0x260fba);this['_activeShapeModel'][_0x266257(0x30c)]({'width':this['_baseShapeWidth'],'height':this[_0x266257(0x3ab)]});let _0x3f4ca7=this['_drawingManagerService'][_0x266257(0x462)]({'unitId':_0x40e01e[_0x266257(0x284)],'subUnitId':_0x40e01e['subUnitId'],'drawingId':_0x40e01e['drawingId']});_0x3f4ca7&&(this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x3f4ca7,_0x58e718),this[_0x266257(0x2e7)]=this[_0x266257(0x4cc)](_0x40e01e[_0x266257(0x284)],_0x40e01e[_0x266257(0x226)],_0x40e01e[_0x266257(0x2b5)]),this[_0x266257(0x3a7)]());}_0x55a268['stopPropagation']();}),this[_0x4db3bd(0x19a)]=_0x58e718[_0x4db3bd(0x435)][_0x4db3bd(0x1ef)]((_0x230ce3,_0x383325)=>{const _0x410bc2=_0x4db3bd;this['_adjHandlerPointerMove'][_0x410bc2(0x39f)](),this['_adjHandlerPointerUp'][_0x410bc2(0x39f)](),_0x58e718['resetCursor']();let _0x453dda=this[_0x410bc2(0x50d)];if(_0x453dda){let _0x5990d5=_0x40e01e['unitId'],_0x163eb4=_0x40e01e[_0x410bc2(0x226)],_0x393ed2=_0x40e01e[_0x410bc2(0x2b5)],_0x4d3a25={};for(let _0xa43c3a of Object[_0x410bc2(0x13c)](_0x453dda[_0x410bc2(0x25c)])){var _0x151cf8;let _0x3aca4f=(_0x151cf8=this[_0x410bc2(0x240)])==null?void 0x0:_0x151cf8['getAdjustValueByName'](_0xa43c3a);_0x3aca4f!==void 0x0&&(_0x4d3a25[_0xa43c3a]=_0x3aca4f);}Object[_0x410bc2(0x13c)](_0x4d3a25)[_0x410bc2(0x225)]>0x0&&_0x1f80f7(this[_0x410bc2(0x480)],_0x5990d5,_0x163eb4,_0x393ed2,{'oldShapeData':{'adjustValues':_0x290e0b}},{'adjustValues':_0x4d3a25});}this[_0x410bc2(0x50d)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x410bc2(0x386)]=!0x1,_0x383325['stopPropagation'](),_0x58e718[_0x410bc2(0x3dd)]();}),_0x1e55a3[_0x4db3bd(0x455)]();})));}[_0xa608a8(0x497)](){const _0x593f6f=_0xa608a8;let _0x3ada36=this[_0x593f6f(0x1e8)][_0x593f6f(0x2bd)](_0x244243[_0x593f6f(0x10a)][_0x593f6f(0x127)]);this[_0x593f6f(0x322)](_0x3ada36[_0x593f6f(0x288)]((0x0,_0x38f817[_0x593f6f(0x14c)])(_0x4de0dc=>_0x4de0dc?_0x4de0dc[_0x593f6f(0x2de)]['pipe']((0x0,_0x38f817[_0x593f6f(0x14c)])(_0x2244b9=>{const _0x2acec8=_0x593f6f;if(!_0x2244b9)return _0x38f817[_0x2acec8(0x3be)];let _0x1740ed=_0x4de0dc[_0x2acec8(0x244)](),_0x919d40=this['_renderManagerService'][_0x2acec8(0x236)](_0x1740ed),_0x1d86ca=_0x919d40==null?void 0x0:_0x919d40['scene'];return _0x1d86ca?(0x0,_0x38f817['of'])(_0x1d86ca):_0x38f817['EMPTY'];})):_0x38f817[_0x593f6f(0x3be)]))[_0x593f6f(0x376)](_0x1eee5a=>{const _0xff5941=_0x593f6f;let _0x1f1d8a=_0x1eee5a[_0xff5941(0x3a4)]();this[_0xff5941(0x322)](_0x1eee5a[_0xff5941(0x486)][_0xff5941(0x1ef)](()=>{const _0x2930d5=_0xff5941;this[_0x2930d5(0x2ec)];})),this['disposeWithMe'](_0x1f1d8a[_0xff5941(0x4dd)][_0xff5941(0x376)](_0x202916=>{const _0x5e189e=_0xff5941;let {objects:_0x3e9730}=_0x202916;this['_createShapeAdjustControls'](),_0x3e9730!==null&&_0x3e9730[_0x5e189e(0x13f)]===0x1&&_0x3e9730['values']()[_0x5e189e(0x159)]()[_0x5e189e(0x496)]instanceof _0x5ee4ee&&this[_0x5e189e(0x219)](!0x0);})),this[_0xff5941(0x322)](_0x1f1d8a[_0xff5941(0x10f)]['subscribe'](()=>{const _0x29706b=_0xff5941;this['_isShouldShowDrawingShapeAdjust']&&this[_0x29706b(0x46b)]();})),this['disposeWithMe'](_0x1eee5a['onPointerUp$'][_0xff5941(0x1ef)](()=>{const _0x3cc892=_0xff5941;this[_0x3cc892(0x2ec)]&&(this[_0x3cc892(0x219)](!0x1),this['_createShapeAdjustControls']());})),this[_0xff5941(0x322)](_0x1f1d8a['changeEnd$']['subscribe'](()=>{const _0x582b69=_0xff5941;this[_0x582b69(0x2e3)]&&this['_subUnitId']&&this[_0x582b69(0x1ed)]&&this[_0x582b69(0x3d7)][_0x582b69(0x462)]({'unitId':this[_0x582b69(0x2e3)],'subUnitId':this[_0x582b69(0x2f5)],'drawingId':this[_0x582b69(0x1ed)]})&&(this['_activeShapeAdjustPointList']=this[_0x582b69(0x4cc)](this[_0x582b69(0x2e3)],this['_subUnitId'],this[_0x582b69(0x1ed)]),this[_0x582b69(0x3a7)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x12244c=_0xa608a8;this['disposeWithMe'](this['_commandService'][_0x12244c(0x380)](_0x10908d=>{const _0x434b5c=_0x12244c;if(_0x10908d['id']!==_0xb19349[_0x434b5c(0x35d)]['id'])return;let {unitId:_0x2d4966,subUnitId:_0x1ae6b4,shapeId:_0x129353}=_0x10908d[_0x434b5c(0x131)];_0x2d4966===this['_unitId']&&_0x1ae6b4===this[_0x434b5c(0x2f5)]&&_0x129353===this[_0x434b5c(0x1ed)]&&this[_0x434b5c(0x14f)]();})),this['disposeWithMe'](this[_0x12244c(0x3d7)][_0x12244c(0x17f)]['subscribe'](_0x186574=>{const _0x3db0de=_0x12244c;if(_0x186574['length']===0x1){let _0x22d144=_0x186574[0x0];if(_0x22d144[_0x3db0de(0x351)]===_0x244243[_0x3db0de(0x138)][_0x3db0de(0x4e9)]&&this[_0x3db0de(0x1e8)][_0x3db0de(0x1af)](_0x22d144[_0x3db0de(0x284)])===_0x244243[_0x3db0de(0x10a)][_0x3db0de(0x127)]){this['_activeShapeId']=_0x22d144[_0x3db0de(0x2b5)];let {unitId:_0x5c727f,subUnitId:_0xef75fc}=_0x22d144;this[_0x3db0de(0x2e7)]=this[_0x3db0de(0x4cc)](_0x5c727f,_0xef75fc,this[_0x3db0de(0x1ed)]),this['_unitId']=_0x5c727f,this[_0x3db0de(0x2f5)]=_0xef75fc,this[_0x3db0de(0x46b)](),this[_0x3db0de(0x3f9)]();return;}}this['_activeShapeId']=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x3db0de(0x2e3)]=null,this['_subUnitId']=null,this[_0x3db0de(0x46b)]();})),this[_0x12244c(0x322)](this[_0x12244c(0x3d7)][_0x12244c(0x1ad)][_0x12244c(0x376)](_0x5eefa5=>{const _0x12dcfe=_0x12244c;if(_0x5eefa5[_0x12dcfe(0x225)]===0x1){var _0x5b465d;let _0x316482=_0x5eefa5[0x0];((_0x5b465d=this[_0x12dcfe(0x3d7)][_0x12dcfe(0x462)](_0x316482))==null?void 0x0:_0x5b465d[_0x12dcfe(0x351)])===_0x244243[_0x12dcfe(0x138)]['DRAWING_SHAPE']&&this[_0x12dcfe(0x13b)](!0x0);}})),this['disposeWithMe'](this[_0x12244c(0x3d7)]['remove$'][_0x12244c(0x376)](_0x31d1ec=>{const _0x1b278c=_0x12244c;for(let _0x41d720 of _0x31d1ec)this[_0x1b278c(0x1ed)]===_0x41d720[_0x1b278c(0x2b5)]&&(this[_0x1b278c(0x1ed)]=null,this[_0x1b278c(0x2e7)]=void 0x0,this[_0x1b278c(0x2e3)]=null,this[_0x1b278c(0x2f5)]=null,this['_clearShapeAdjustControls']());}));}};_0x35cd7c=_0x4cddfe([_0x542dc8(0x0,_0x43c769['IDrawingManagerService']),_0x542dc8(0x1,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0xb19349[_0xa608a8(0x439)])),_0x542dc8(0x2,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x559311[_0xa608a8(0x306)])),_0x542dc8(0x3,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x4f6784)),_0x542dc8(0x4,_0x244243[_0xa608a8(0x39a)]),_0x542dc8(0x5,_0x244243[_0xa608a8(0x2d0)])],_0x35cd7c);let _0x5c23b1={'id':_0xa608a8(0x52a),'type':_0x244243[_0xa608a8(0x180)][_0xa608a8(0x3d0)],'handler':(_0x3ebfde,_0x4962b4)=>{const _0x4375ac=_0xa608a8;let _0x4c9e16=_0x3ebfde[_0x4375ac(0x20b)](_0x43c769[_0x4375ac(0x334)]),_0xe5ec39=_0x3ebfde[_0x4375ac(0x20b)](_0x559311[_0x4375ac(0x306)]),_0x4880ea=_0x3ebfde[_0x4375ac(0x20b)](_0x35cd7c);if(_0x4962b4==null)return!0x0;if(_0x4962b4[_0x4375ac(0x225)]>0x0){var _0x543693;let _0x2d1b4f=(_0x543693=_0xe5ec39[_0x4375ac(0x236)](_0x4962b4[0x0][_0x4375ac(0x284)]))==null?void 0x0:_0x543693[_0x4375ac(0x419)];if(_0x2d1b4f){let {unitId:_0x34e140,subUnitId:_0x1f8faa,drawingId:_0x27e89d}=_0x4962b4[0x0],_0x149da7=(0x0,_0x43c769[_0x4375ac(0x280)])({'unitId':_0x34e140,'subUnitId':_0x1f8faa,'drawingId':_0x27e89d},void 0x0),_0x510411=_0x2d1b4f[_0x4375ac(0x47f)](_0x149da7);if(_0x510411){var _0x5e7bc6;(_0x5e7bc6=_0xe5ec39[_0x4375ac(0x236)](_0x4962b4[0x0]['unitId']))==null||(_0x5e7bc6=_0x5e7bc6[_0x4375ac(0x419)]['getTransformer']())==null||_0x5e7bc6['activeAnObject'](_0x510411);}}_0x4c9e16[_0x4375ac(0x264)](_0x4962b4),_0x4880ea[_0x4375ac(0x219)](!0x1);}return!0x0;}},_0x2aee67={'type':_0x244243['CommandType'][_0xa608a8(0x461)],'id':_0xa608a8(0x37e),'handler':async(_0x99c555,_0x7f6665)=>{const _0x47c9d3=_0xa608a8;var _0x1f54bf,_0x4e91ab;let _0x829122=(0x0,_0x126f61['getSheetCommandTarget'])(_0x99c555[_0x47c9d3(0x20b)](_0x244243['IUniverInstanceService']));if(!_0x829122)return!0x1;let {unitId:_0x1e9e64,subUnitId:_0x311db0,worksheet:_0x138433}=_0x829122,_0x30e8be=_0x138433[_0x47c9d3(0x3a1)](),_0x4f803c=_0x30e8be[_0x47c9d3(0x297)]??_0x244243[_0x47c9d3(0x1c5)][_0x47c9d3(0x2c5)];if(_0x4f803c!==_0x244243[_0x47c9d3(0x1c5)][_0x47c9d3(0x2c5)]&&_0x4f803c!==_0x244243[_0x47c9d3(0x1c5)][_0x47c9d3(0x23f)])return!0x1;let _0x53b679=_0x99c555[_0x47c9d3(0x20b)](_0x244243[_0x47c9d3(0x432)]);if(((_0x1f54bf=_0x53b679[_0x47c9d3(0x353)](new _0x126f61[(_0x47c9d3(0x32c))](_0x1e9e64)['id']))==null?void 0x0:_0x1f54bf[_0x47c9d3(0x496)])!==!0x0||((_0x4e91ab=_0x53b679[_0x47c9d3(0x353)](new _0x126f61[(_0x47c9d3(0x2fb))](_0x1e9e64,_0x311db0)['id']))==null?void 0x0:_0x4e91ab[_0x47c9d3(0x496)])!==!0x0)return!0x1;let _0x306924=_0x99c555[_0x47c9d3(0x20b)](_0x244243[_0x47c9d3(0x2d0)]),{value:_0x287fb0,enhanceParams:_0x1cead1}=_0x7f6665,_0x151be3={'unitId':_0x1e9e64,'subUnitId':_0x311db0,'shapeType':_0x287fb0,'shapeId':(0x0,_0x244243[_0x47c9d3(0x251)])()};if(_0x4f803c===_0x244243[_0x47c9d3(0x1c5)][_0x47c9d3(0x23f)]){let _0x5b4cf8=_0x99c555[_0x47c9d3(0x20b)](_0x559311[_0x47c9d3(0x306)])[_0x47c9d3(0x236)](_0x1e9e64),_0x574089=_0x5b4cf8==null?void 0x0:_0x5b4cf8[_0x47c9d3(0x1e2)][_0x47c9d3(0x20b)](_0x180b4c[_0x47c9d3(0x46a)][_0x47c9d3(0x22b)]);if(!_0x5b4cf8||!_0x574089||![_0x574089[_0x47c9d3(0x371)],_0x574089[_0x47c9d3(0x4f5)],_0x574089[_0x47c9d3(0x302)],_0x574089['height']][_0x47c9d3(0x341)](Number[_0x47c9d3(0x36d)])||_0x574089['width']<=0x0||_0x574089[_0x47c9d3(0x474)]<=0x0)return!0x1;let _0x55d933={'row':0x0,'column':0x0,'rowOffset':0x0,'columnOffset':0x0},_0x2bb2a0=(0x0,_0x29aa40['transformDrawingsToChartSheet'])([{'unitId':_0x1e9e64,'subUnitId':_0x311db0,'drawingId':_0x151be3[_0x47c9d3(0x3d5)],'drawingType':_0x244243['DrawingTypeEnum']['DRAWING_SHAPE'],'transform':{'left':0x0,'top':0x0,'width':_0xb19349['DEFAULT_SHAPE_WIDTH'],'height':_0xb19349['DEFAULT_SHAPE_HEIGHT']},'sheetTransform':{'from':_0x55d933,'to':_0x55d933},'axisAlignSheetTransform':{'from':_0x55d933,'to':_0x55d933}}],{'left':_0x574089['left'],'top':_0x574089[_0x47c9d3(0x4f5)],'width':_0x574089['width'],'height':_0x574089['height']},_0x30e8be[_0x47c9d3(0x391)]===_0x244243[_0x47c9d3(0x296)][_0x47c9d3(0x4cb)]);if(!(_0x2bb2a0!=null&&_0x2bb2a0[_0x47c9d3(0x225)]))return!0x1;let _0x468702=_0x2bb2a0[0x0][_0x47c9d3(0x31b)];_0x151be3[_0x47c9d3(0x378)]={'x':_0x468702[_0x47c9d3(0x371)],'y':_0x468702[_0x47c9d3(0x4f5)]},_0x151be3[_0x47c9d3(0x302)]=_0x468702[_0x47c9d3(0x302)],_0x151be3['height']=_0x468702[_0x47c9d3(0x474)];}else{let _0x76b918=_0x99c555[_0x47c9d3(0x20b)](_0x126f61[_0x47c9d3(0x318)])['getCurrentLastSelection']();if(!_0x76b918)return!0x1;_0x151be3['range']=_0x76b918['range'];}if(_0x1cead1){let {startArrow:_0x5261f0,endArrow:_0x4710c2,horizontal:_0x244a84,vertical:_0x7457bc}=_0x1cead1,_0x2d7de4=(0x0,_0x11e0df['isConnectorShape'])(_0x287fb0),_0x1fec38=_0x287fb0===_0x11e0df['ShapeTypeEnum'][_0x47c9d3(0x368)];if(_0x2d7de4&&(_0x5261f0||_0x4710c2)&&(_0x151be3[_0x47c9d3(0x4c3)]={'ln':{'startArrow':_0x5261f0?{'type':_0x11e0df[_0x47c9d3(0x208)][_0x47c9d3(0x320)],'size':_0x11e0df[_0x47c9d3(0x4c4)][_0x47c9d3(0x4f3)]}:void 0x0,'endArrow':_0x4710c2?{'type':_0x11e0df[_0x47c9d3(0x208)][_0x47c9d3(0x320)],'size':_0x11e0df[_0x47c9d3(0x4c4)][_0x47c9d3(0x17b)]}:void 0x0}}),_0x1fec38&&(_0x244a84||_0x7457bc)){let _0x2084b8=_0x99c555[_0x47c9d3(0x20b)](_0x244243[_0x47c9d3(0x147)]);_0x151be3[_0x47c9d3(0x4c3)]=(0x0,_0x4e6980[_0x47c9d3(0x323)])({'fill':{'fillType':_0x11e0df['ShapeFillEnum'][_0x47c9d3(0x346)],'color':_0x2084b8[_0x47c9d3(0x49b)](_0x47c9d3(0x475))},'isHorizontal':!!_0x244a84,'stroke':{'lineStrokeType':_0x11e0df[_0x47c9d3(0x25d)]['SolidLine'],'width':0x1,'color':_0x2084b8[_0x47c9d3(0x49b)](_0x47c9d3(0x12d))}});}}let _0xb42dc9=_0x306924['syncExecuteCommand'](_0xb19349[_0x47c9d3(0x4ee)]['id'],_0x151be3);return _0xb42dc9&&await _0x306924[_0x47c9d3(0x134)](_0x5c23b1['id'],[{'unitId':_0x1e9e64,'subUnitId':_0x311db0,'drawingId':_0x151be3['shapeId']}]),_0xb42dc9;}},_0x2948fa='sheet.shape.edit.panel',_0x45b5fb='sheet.shape.object-list.panel',_0x9806a9=_0xa608a8(0x21e),_0x4eb377=_0xa608a8(0x1fb),_0x26ff4b=(0x0,_0x244243['createInternalEditorID'])(_0xa608a8(0x157)),_0x2205e6='sheet.shape.text.float-menu',_0xd39a54={'id':_0xa608a8(0x19c),'type':_0x244243['CommandType'][_0xa608a8(0x461)],'handler':(_0x110e70,_0x5bb99a)=>{const _0xee8561=_0xa608a8;let _0x325759=_0x110e70[_0xee8561(0x20b)](_0x36a73f[_0xee8561(0x16f)]),_0x44127d=_0x110e70['get'](_0x244243[_0xee8561(0x38e)]),_0x4dc2a1=_0x110e70[_0xee8561(0x20b)](_0x244243['IUniverInstanceService']),_0x40305b=_0x110e70[_0xee8561(0x20b)](_0x244243[_0xee8561(0x2d0)]);return(0x0,_0x126f61['getSheetCommandTarget'])(_0x4dc2a1)?(_0x5bb99a==null?void 0x0:_0x5bb99a[_0xee8561(0x496)])===_0xee8561(0x239)?(_0x325759[_0xee8561(0x239)](_0x45b5fb),!0x0):(_0x325759['open']({'id':_0x45b5fb,'header':{'title':_0x44127d['t'](_0xee8561(0x233))},'children':{'label':_0x45b5fb},'onClose':()=>{const _0x47dee8=_0xee8561;_0x40305b['syncExecuteCommand'](_0x43c769[_0x47dee8(0x2d7)]['id'],[]);},'width':0x168}),!0x0):!0x1;}},_0x59c8cc={'type':_0x244243[_0xa608a8(0x180)][_0xa608a8(0x3d0)],'id':_0xa608a8(0x444),'handler'(){return!0x0;}};function _0x5457a3(_0x2e0a44){const _0x4437c0=_0xa608a8;let _0x3fe959=_0x2e0a44['get'](_0x43c769[_0x4437c0(0x334)])['getFocusDrawings'](),_0x5f5375=_0x3fe959[_0x4437c0(0x225)]===0x1?_0x3fe959[0x0]:null;if(!_0x5f5375||_0x5f5375[_0x4437c0(0x351)]!==_0x244243[_0x4437c0(0x138)][_0x4437c0(0x4e9)])return null;let _0x1eac9c=_0x2e0a44[_0x4437c0(0x20b)](_0xb19349[_0x4437c0(0x439)]),_0x6c1930=_0x1eac9c[_0x4437c0(0x1d2)](_0x5f5375['unitId'],_0x5f5375[_0x4437c0(0x226)],_0x5f5375[_0x4437c0(0x2b5)]),_0x1c45f0=_0x1eac9c[_0x4437c0(0x257)](_0x5f5375[_0x4437c0(0x284)],_0x5f5375[_0x4437c0(0x226)],_0x5f5375[_0x4437c0(0x2b5)]);return _0x6c1930===void 0x0||!_0x1c45f0?null:{'drawing':_0x5f5375,'shapeData':_0x1c45f0,'shapeType':_0x6c1930};}let _0xb30908={'id':_0xa608a8(0x4e7),'type':_0x244243[_0xa608a8(0x180)][_0xa608a8(0x3d0)],'handler':(_0x5317c5,_0x464004)=>{const _0x448850=_0xa608a8;let _0x276d53=_0x5457a3(_0x5317c5),_0x3bb4a9=(0x0,_0x4e6980[_0x448850(0x41c)])((_0x464004==null?void 0x0:_0x464004['presetId'])??(_0x464004==null?void 0x0:_0x464004['value'])??'');if(!_0x276d53||!_0x3bb4a9||_0x3bb4a9[_0x448850(0x297)]!==(0x0,_0x4e6980[_0x448850(0x1c0)])(_0x276d53[_0x448850(0x4c3)]))return!0x1;let _0x17c5a1=(0x0,_0x4e6980['applyQuickStyleToShapeData'])(_0x276d53[_0x448850(0x4c3)],_0x3bb4a9);if(!_0x17c5a1)return!0x1;let {drawing:_0x3ea3f8}=_0x276d53;return _0x5317c5['get'](_0x244243[_0x448850(0x2d0)])[_0x448850(0x134)](_0x4a2843['id'],{'unitId':_0x3ea3f8[_0x448850(0x284)],'subUnitId':_0x3ea3f8[_0x448850(0x226)],'shapeId':_0x3ea3f8['drawingId'],'shapeData':_0x17c5a1,'oldShapeJSON':{'oldShapeData':_0x276d53[_0x448850(0x4c3)]}});}},_0x14afcc={'id':_0xa608a8(0x204),'type':_0x244243[_0xa608a8(0x180)][_0xa608a8(0x3d0)],'handler':(_0x170e51,_0x3b7dfc)=>{const _0x3b9ac8=_0xa608a8;let _0x2d3b4b=_0x5457a3(_0x170e51),_0x4b3c66=(_0x3b7dfc==null?void 0x0:_0x3b7dfc[_0x3b9ac8(0x1ee)])??(_0x3b7dfc==null?void 0x0:_0x3b7dfc[_0x3b9ac8(0x496)]);if(!_0x2d3b4b||!_0x4b3c66||(0x0,_0x11e0df['isConnectorShape'])(_0x2d3b4b[_0x3b9ac8(0x1ee)])||(0x0,_0x11e0df[_0x3b9ac8(0x42a)])(_0x4b3c66))return!0x1;let _0x41f784=(0x0,_0x4e6980['cloneShapeDataForType'])(_0x2d3b4b['shapeData'],_0x4b3c66);if(!_0x41f784)return!0x1;let {drawing:_0x81b686}=_0x2d3b4b;return _0x170e51[_0x3b9ac8(0x20b)](_0x244243[_0x3b9ac8(0x2d0)])[_0x3b9ac8(0x134)](_0x4a2843['id'],{'unitId':_0x81b686[_0x3b9ac8(0x284)],'subUnitId':_0x81b686[_0x3b9ac8(0x226)],'shapeId':_0x81b686['drawingId'],'shapeType':_0x4b3c66,'shapeData':_0x41f784,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x2d3b4b['shapeType'],'oldShapeData':_0x2d3b4b[_0x3b9ac8(0x4c3)]}});}},_0x3b876d=class extends _0x244243[_0xa608a8(0x2a8)]{constructor(_0x3d47c3,_0x3a039a){const _0x26be12=_0xa608a8;super(),this[_0x26be12(0x200)]=_0x3d47c3,this[_0x26be12(0x3d7)]=_0x3a039a,this['_registerImageShapeClipDelegate'](),this['_clipService'][_0x26be12(0x2d1)](!0x0),this[_0x26be12(0x322)]({'dispose':()=>this['_clipService']['setCanUseShapeClip'](!0x1)});}[_0xa608a8(0x3e8)](){const _0x4dedf3=_0xa608a8;let _0xb49052=this[_0x4dedf3(0x200)],_0x1ae093=new Map(),_0x4c4afc=_0xb49052['registerClipDelegate']((_0x755ecd,_0x59be57,_0x3eb9d4,_0x2b12b3,_0x213cb6)=>{const _0x13d4ce=_0x4dedf3;let _0x44fd36=_0x59be57;if(_0x44fd36===_0x11e0df[_0x13d4ce(0x30a)][_0x13d4ce(0x262)]||_0x59be57===_0x13d4ce(0x3b0))return!0x1;try{let _0x2c9849=_0x1ae093[_0x13d4ce(0x20b)](_0x59be57);return _0x2c9849||(_0x2c9849=new _0x11e0df[(_0x13d4ce(0x3c2))](_0x44fd36,_0x13d4ce(0x1fc)+_0x59be57),_0x1ae093[_0x13d4ce(0x17d)](_0x59be57,_0x2c9849)),_0x2c9849['clearAdjustValue'](),_0x213cb6&&Object[_0x13d4ce(0x13c)](_0x213cb6)[_0x13d4ce(0x225)]>0x0&&_0x2c9849[_0x13d4ce(0x2ef)]({'adjustValues':_0x213cb6},!0x0),_0x2c9849[_0x13d4ce(0x30c)]({'width':_0x3eb9d4,'height':_0x2b12b3}),_0x2c9849['buildClipPath'](_0x755ecd,{'left':0x0,'top':0x0,'width':_0x3eb9d4,'height':_0x2b12b3});}catch{return!0x1;}});this[_0x4dedf3(0x322)](_0x4c4afc),this[_0x4dedf3(0x322)]({'dispose':()=>_0x1ae093['clear']()});}[_0xa608a8(0x403)](_0x218fec,_0x8a4e25,_0x1b4ed3,_0x466c0c,_0x8f9a6f){const _0x24784a=_0xa608a8;let _0x20bd1e=this[_0x24784a(0x3d7)]['getDrawingData'](_0x218fec,_0x8a4e25);if(!_0x20bd1e[_0x1b4ed3])return;let _0x248ebd={..._0x20bd1e[_0x1b4ed3],'prstGeom':_0x466c0c,'adjustValues':_0x8f9a6f};this[_0x24784a(0x3d7)][_0x24784a(0x1da)]([_0x248ebd]);}};_0x3b876d=_0x4cddfe([_0x542dc8(0x0,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x4cdb25[_0xa608a8(0x1a8)])),_0x542dc8(0x1,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x43c769['IDrawingManagerService']))],_0x3b876d);let _0x129fde=_0xa608a8(0x223),_0x42b380='sheet.image-clip.shape-picker.component';function _0xd9bfc9({onShapeClick:_0x11a4f4,excludeGroups:_0x528588}){const _0xdc324=_0xa608a8;return(0x0,_0x1edb74[_0xdc324(0x4e1)])(_0x354392[_0xdc324(0x38f)],{'excludeGroups':_0x528588,'onShapeClick':_0x11a4f4,'scrollContainer':_0xdc324(0x3e9)});}function _0x25b0a2(){const _0x46e224=_0xa608a8;let _0x3af189=(0x0,_0x36a73f[_0x46e224(0x2af)])(_0x43c769['IDrawingManagerService']),_0x33f9bf=(0x0,_0x36a73f[_0x46e224(0x2af)])(_0x3b876d);return(0x0,_0x1edb74[_0x46e224(0x4e1)])(_0x354392[_0x46e224(0x123)],{'buttonLabel':_0x46e224(0x43a),'excludeGroups':[_0x354392['ShapeGroupEnum'][_0x46e224(0x370)]],'onShapeClick':_0x518b4d=>{const _0x49de67=_0x46e224;let _0x406b8c=_0x3af189[_0x49de67(0x305)]()[_0x49de67(0x3c7)](_0x4a2f4a=>_0x4a2f4a[_0x49de67(0x351)]===_0x244243[_0x49de67(0x138)]['DRAWING_IMAGE']);if(!_0x406b8c)return;let {unitId:_0x5463f4,subUnitId:_0x548b17,drawingId:_0x429f71}=_0x406b8c;_0x33f9bf['clipByShape'](_0x5463f4,_0x548b17,_0x429f71,_0x518b4d[_0x49de67(0x297)]);}});}function _0x38cad8(){const _0x341f4d=_0xa608a8;let _0x393dec=(0x0,_0x36a73f[_0x341f4d(0x2af)])(_0x43c769['IDrawingManagerService']),_0x445d95=(0x0,_0x36a73f['useDependency'])(_0x3b876d);return(0x0,_0x1edb74['jsx'])(_0x354392[_0x341f4d(0x123)],{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0x354392[_0x341f4d(0x175)][_0x341f4d(0x370)]],'DropdownComponent':_0x275c79['MobileDropdown'],'onShapeClick':_0x240c08=>{const _0x1b0197=_0x341f4d;let _0x544fc5=_0x393dec[_0x1b0197(0x305)]()[_0x1b0197(0x3c7)](_0x3ccc8a=>_0x3ccc8a['drawingType']===_0x244243[_0x1b0197(0x138)][_0x1b0197(0x24b)]);if(!_0x544fc5)return;let {unitId:_0x193fbd,subUnitId:_0xf32df8,drawingId:_0x1a0bb0}=_0x544fc5;_0x445d95['clipByShape'](_0x193fbd,_0xf32df8,_0x1a0bb0,_0x240c08[_0x1b0197(0x297)]);}});}function _0x314f7e(){const _0x1a98cf=_0xa608a8;let _0x452f3a=(0x0,_0x36a73f[_0x1a98cf(0x2af)])(_0x36a73f[_0x1a98cf(0x308)]),_0x589c7f=(0x0,_0x36a73f[_0x1a98cf(0x2af)])(_0x43c769[_0x1a98cf(0x334)]),_0x1adef3=(0x0,_0x36a73f[_0x1a98cf(0x2af)])(_0x244243[_0x1a98cf(0x39a)]),_0x1d3d72=_0x589c7f[_0x1a98cf(0x305)]()[0x0],_0x3d07d0=_0x1d3d72?_0x1adef3['getUnitType'](_0x1d3d72[_0x1a98cf(0x284)]):void 0x0,_0x18a771=_0x3d07d0===_0x244243[_0x1a98cf(0x10a)][_0x1a98cf(0x170)]?'doc.image-clip.shape-picker.component':_0x3d07d0===_0x244243[_0x1a98cf(0x10a)][_0x1a98cf(0x127)]?_0x42b380:void 0x0,_0x469d7d=_0x18a771?_0x452f3a[_0x1a98cf(0x20b)](_0x18a771):void 0x0;return _0x469d7d?(0x0,_0x1edb74[_0x1a98cf(0x4e1)])(_0x469d7d,{}):null;}function _0x18b8b2(){const _0x1c60f8=_0xa608a8;let _0xe6dc71=(0x0,_0x36a73f['useDependency'])(_0x244243[_0x1c60f8(0x2d0)]);return(0x0,_0x1edb74[_0x1c60f8(0x4e1)])(_0xd9bfc9,{'onShapeClick':_0x478853=>{const _0x54c3f1=_0x1c60f8;_0xe6dc71['executeCommand'](_0x2aee67['id'],{'value':_0x478853[_0x54c3f1(0x297)],'enhanceParams':{'endArrow':_0x478853[_0x54c3f1(0x2b3)],'startArrow':_0x478853['startArrow'],'horizontal':_0x478853[_0x54c3f1(0x173)],'vertical':_0x478853[_0x54c3f1(0x214)]}});}});}function _0x75c06f(){return(0x0,_0x1edb74['jsx'])(_0x18b8b2,{});}function _0x32f9c5(_0x2d3811){const _0x28c67c=_0xa608a8;return(0x0,_0x180b4c[_0x28c67c(0x40e)])(_0x2d3811[_0x28c67c(0x20b)](_0x244243[_0x28c67c(0x39a)]),!0x0,({workbook:_0x2cc145,worksheet:_0x146e7b})=>{const _0x2943ee=_0x28c67c;let _0x542d71=_0x146e7b[_0x2943ee(0x3a1)]()['type']??_0x244243[_0x2943ee(0x1c5)]['GRID'];if(_0x542d71===_0x244243[_0x2943ee(0x1c5)]['GRID'])return(0x0,_0x180b4c[_0x2943ee(0x448)])(_0x2d3811);if(_0x542d71!==_0x244243[_0x2943ee(0x1c5)]['CHART'])return(0x0,_0x38f817['of'])(!0x0);let _0x56e1b5=_0x2d3811['get'](_0x244243[_0x2943ee(0x432)]),_0x4af3a9=[new _0x126f61[(_0x2943ee(0x32c))](_0x2cc145[_0x2943ee(0x244)]())['id'],new _0x126f61['WorksheetEditPermission'](_0x2cc145['getUnitId'](),_0x146e7b[_0x2943ee(0x258)]())['id']];return _0x56e1b5[_0x2943ee(0x2aa)][_0x2943ee(0x288)]((0x0,_0x38f817[_0x2943ee(0x23b)])(null),(0x0,_0x38f817[_0x2943ee(0x153)])(()=>_0x4af3a9[_0x2943ee(0x38c)](_0x5bb0df=>{const _0xf1faf3=_0x2943ee;var _0x392729;return((_0x392729=_0x56e1b5[_0xf1faf3(0x353)](_0x5bb0df))==null?void 0x0:_0x392729[_0xf1faf3(0x496)])!==!0x0;})),(0x0,_0x38f817[_0x2943ee(0x2dd)])());});}function _0x54653f(_0x1f1f24){const _0x3180ce=_0xa608a8;let _0x4a3349=_0x1f1f24[_0x3180ce(0x20b)](_0x244243[_0x3180ce(0x39a)]);return{'id':_0x2aee67['id'],'type':_0x36a73f[_0x3180ce(0x2ee)][_0x3180ce(0x43f)],'selections':[{'label':{'name':_0x129fde,'hoverable':!0x1,'selectable':!0x1,'props':{'id':_0x2aee67['id']}}}],'icon':'ShapeIcon','tooltip':_0x3180ce(0x414),'activated$':(0x0,_0x180b4c[_0x3180ce(0x40e)])(_0x4a3349,!0x1,()=>new _0x38f817['Observable'](_0x38fa64=>{_0x38fa64['next'](!0x1);})),'hidden$':(0x0,_0x36a73f[_0x3180ce(0x33f)])(_0x1f1f24,_0x244243['UniverInstanceType'][_0x3180ce(0x127)]),'disabled$':_0x32f9c5(_0x1f1f24)};}function _0x4573eb(_0x2c3324){const _0x33fe68=_0xa608a8;return(0x0,_0x180b4c[_0x33fe68(0x40e)])(_0x2c3324[_0x33fe68(0x20b)](_0x244243[_0x33fe68(0x39a)]),!0x0,({workbook:_0x4c94d8,worksheet:_0x2f37bc})=>{const _0x19b216=_0x33fe68;let _0x41e334=_0x2f37bc[_0x19b216(0x3a1)]()[_0x19b216(0x297)]??_0x244243[_0x19b216(0x1c5)][_0x19b216(0x2c5)];if(_0x41e334===_0x244243[_0x19b216(0x1c5)]['GRID'])return(0x0,_0x180b4c[_0x19b216(0x448)])(_0x2c3324);if(_0x41e334!==_0x244243['SheetTypes'][_0x19b216(0x23f)])return(0x0,_0x38f817['of'])(!0x0);let _0x488f61=_0x2c3324[_0x19b216(0x20b)](_0x244243[_0x19b216(0x432)]),_0x10b356=[new _0x126f61['WorkbookEditablePermission'](_0x4c94d8['getUnitId']())['id'],new _0x126f61[(_0x19b216(0x2fb))](_0x4c94d8[_0x19b216(0x244)](),_0x2f37bc[_0x19b216(0x258)]())['id']];return _0x488f61[_0x19b216(0x2aa)]['pipe']((0x0,_0x38f817[_0x19b216(0x23b)])(null),(0x0,_0x38f817[_0x19b216(0x153)])(()=>_0x10b356[_0x19b216(0x38c)](_0x5d1179=>{const _0x4e695d=_0x19b216;var _0x1d504b;return((_0x1d504b=_0x488f61['getPermissionPoint'](_0x5d1179))==null?void 0x0:_0x1d504b[_0x4e695d(0x496)])!==!0x0;})),(0x0,_0x38f817['distinctUntilChanged'])());});}function _0x5ad7ac(_0x1b03fc){const _0x3cbaba=_0xa608a8;let _0x7f61cc=_0x1b03fc[_0x3cbaba(0x20b)](_0x36a73f[_0x3cbaba(0x16f)]);return{'id':_0xd39a54['id'],'type':_0x36a73f[_0x3cbaba(0x2ee)][_0x3cbaba(0x50a)],'icon':_0x3cbaba(0x1b3),'title':'sheets-shape-ui.objectListPanel.open','tooltip':'sheets-shape-ui.objectListPanel.open','activated$':(0x0,_0x38f817[_0x3cbaba(0x372)])(()=>_0x7f61cc[_0x3cbaba(0x4b8)][_0x3cbaba(0x288)]((0x0,_0x38f817[_0x3cbaba(0x23b)])(_0x7f61cc[_0x3cbaba(0x493)]),(0x0,_0x38f817['map'])(_0x2c0549=>_0x2c0549[_0x3cbaba(0x24c)]===!0x0&&_0x2c0549['id']===_0x3cbaba(0x381)),(0x0,_0x38f817[_0x3cbaba(0x2dd)])())),'hidden$':(0x0,_0x36a73f[_0x3cbaba(0x33f)])(_0x1b03fc,_0x244243[_0x3cbaba(0x10a)]['UNIVER_SHEET']),'disabled$':_0x4573eb(_0x1b03fc)};}let _0x3ac6e4=_0xa608a8(0x431),_0x4c6a7a=_0xa608a8(0x15f);function _0x64f87c(_0x33e09d){const _0x401711=_0xa608a8;let _0x39fff8=_0x33e09d[_0x401711(0x20b)](_0x43c769['IDrawingManagerService'])[_0x401711(0x305)]();return _0x39fff8[_0x401711(0x225)]===0x1&&_0x39fff8[0x0]['drawingType']===_0x244243[_0x401711(0x138)][_0x401711(0x4e9)]?_0x39fff8[0x0]:null;}function _0x89787f(_0x3f0062){const _0x1d9f8a=_0xa608a8;let _0x32415a=_0x3f0062['get'](_0x43c769[_0x1d9f8a(0x334)]);return _0x32415a[_0x1d9f8a(0x17f)][_0x1d9f8a(0x288)]((0x0,_0x38f817['startWith'])(_0x32415a['getFocusDrawings']()),(0x0,_0x38f817['map'])(_0x2e26cf=>_0x2e26cf[_0x1d9f8a(0x225)]!==0x1||_0x2e26cf[0x0][_0x1d9f8a(0x351)]!==_0x244243[_0x1d9f8a(0x138)]['DRAWING_SHAPE']));}function _0x37c268(_0x2e8c00){const _0xeccd0d=_0xa608a8;return{'id':_0x3ac6e4,'commandId':_0xb19349[_0xeccd0d(0x44b)]['id'],'type':_0x36a73f['MenuItemType'][_0xeccd0d(0x50a)],'title':_0xeccd0d(0x449),'tooltip':_0xeccd0d(0x449),'icon':_0xeccd0d(0x3cb),'hidden$':_0x89787f(_0x2e8c00),'params':()=>{const _0x1aa49a=_0xeccd0d;let _0x388d9b=_0x64f87c(_0x2e8c00);return _0x388d9b?{'unitId':_0x388d9b[_0x1aa49a(0x284)],'subUnitId':_0x388d9b[_0x1aa49a(0x226)],'shapeId':_0x388d9b[_0x1aa49a(0x2b5)],'flipH':!0x0}:void 0x0;}};}function _0x47ab8d(_0x1ec1b5){const _0x2fca47=_0xa608a8;return{'id':_0x4c6a7a,'commandId':_0xb19349[_0x2fca47(0x44b)]['id'],'type':_0x36a73f['MenuItemType'][_0x2fca47(0x50a)],'title':_0x2fca47(0x22a),'tooltip':_0x2fca47(0x22a),'icon':_0x2fca47(0x192),'hidden$':_0x89787f(_0x1ec1b5),'params':()=>{const _0x558c41=_0x2fca47;let _0xc5644b=_0x64f87c(_0x1ec1b5);return _0xc5644b?{'unitId':_0xc5644b['unitId'],'subUnitId':_0xc5644b[_0x558c41(0x226)],'shapeId':_0xc5644b[_0x558c41(0x2b5)],'flipV':!0x0}:void 0x0;}};}let _0x3dcb02=_0xa608a8(0x4a1),_0x4f8817=_0xa608a8(0x1ab),_0x305fa3='sheets-shape-ui.shape-format.text-ribbon-control',_0x2e3f19=_0xa608a8(0x410);function _0x456ce2(){const _0x50eacb=_0xa608a8;let _0x342d33=(0x0,_0x36a73f[_0x50eacb(0x2af)])(_0x244243[_0x50eacb(0x2d0)]),_0xf0a9a8=(0x0,_0x36a73f[_0x50eacb(0x2af)])(_0x43c769[_0x50eacb(0x334)]),_0x297abb=(0x0,_0x36a73f['useDependency'])(_0xb19349[_0x50eacb(0x439)]),_0x4419eb=()=>{const _0x47b848=_0x50eacb;var _0x1957a2;let _0x12629b=_0xf0a9a8[_0x47b848(0x305)]();if(_0x12629b[_0x47b848(0x225)]!==0x1||((_0x1957a2=_0x12629b[0x0])==null?void 0x0:_0x1957a2[_0x47b848(0x351)])!==_0x244243[_0x47b848(0x138)][_0x47b848(0x4e9)])return null;let {unitId:_0x1f7ba1,subUnitId:_0x2ed30e,drawingId:_0x2cdfd4}=_0x12629b[0x0],_0x1298c3=_0x297abb['getShapeTypeById'](_0x1f7ba1,_0x2ed30e,_0x2cdfd4),_0x390e20=_0x297abb['getShapeDataById'](_0x1f7ba1,_0x2ed30e,_0x2cdfd4);return _0x1298c3===void 0x0||!_0x390e20?null:{'unitId':_0x1f7ba1,'subUnitId':_0x2ed30e,'drawingId':_0x2cdfd4,'shapeType':_0x1298c3,'shapeData':_0x390e20};},_0x5341fd=(0x0,_0x36a73f[_0x50eacb(0x521)])(()=>new _0x38f817['Observable'](_0x538b26=>{const _0x174f11=_0x50eacb;let _0x5c9b6e=()=>_0x538b26[_0x174f11(0x159)](_0x4419eb()),_0x40a5ac=_0xf0a9a8[_0x174f11(0x17f)][_0x174f11(0x376)](_0x5c9b6e),_0x521908=_0x342d33[_0x174f11(0x380)](_0x13e82b=>{_0x13e82b['id']===_0xb19349['UpdateSheetsShapeDataMutation']['id']&&_0x5c9b6e();});return _0x5c9b6e(),()=>{_0x40a5ac['unsubscribe'](),_0x521908['dispose']();};}),_0x4419eb(),!0x1,[_0x342d33,_0xf0a9a8,_0x297abb]);return{'selection':_0x5341fd,'updateShapeData':_0x591e9c=>{const _0x46b3c2=_0x50eacb;_0x5341fd&&_0x1f80f7(_0x342d33,_0x5341fd[_0x46b3c2(0x284)],_0x5341fd['subUnitId'],_0x5341fd[_0x46b3c2(0x2b5)],{'oldShapeData':_0x5341fd[_0x46b3c2(0x4c3)]},_0x591e9c);}};}function _0x346e2a(){const _0x490ecd=_0xa608a8;let {selection:_0xd33ac9,updateShapeData:_0x3af3e8}=_0x456ce2();return _0xd33ac9?(0x0,_0x1edb74[_0x490ecd(0x4e1)])(_0x354392['ShapeStyleRibbonControl'],{'shapeData':_0xd33ac9['shapeData'],'shapeType':_0xd33ac9[_0x490ecd(0x1ee)],'onUpdateShapeData':_0x3af3e8}):null;}function _0x35abce(){const _0x1b4c02=_0xa608a8;let _0x3f2062=(0x0,_0x36a73f[_0x1b4c02(0x2af)])(_0x244243['ICommandService']),_0x4a89aa=(0x0,_0x36a73f[_0x1b4c02(0x2af)])(_0x244243[_0x1b4c02(0x38e)]),{selection:_0x2ce318}=_0x456ce2();return _0x2ce318?(0x0,_0x1edb74[_0x1b4c02(0x4e1)])(_0x354392[_0x1b4c02(0x247)],{'type':(0x0,_0x4e6980[_0x1b4c02(0x1c0)])(_0x2ce318[_0x1b4c02(0x4c3)]),'ariaLabel':_0x4a89aa['t'](_0x1b4c02(0x1bd)),'activePresetId':(0x0,_0x4e6980[_0x1b4c02(0x14e)])(_0x2ce318['shapeData']),'onSelect':_0x12508a=>_0x3f2062[_0x1b4c02(0x134)](_0xb30908['id'],{'presetId':_0x12508a})}):null;}function _0x216516(){const _0x13a3ce=_0xa608a8;let {selection:_0x2544e8,updateShapeData:_0x3381af}=_0x456ce2();return _0x2544e8?(0x0,_0x1edb74[_0x13a3ce(0x4e1)])(_0x354392[_0x13a3ce(0x1e4)],{'fontFamilyPopupDataComponent':'sheets-shape-format-font-family-menu','shapeData':_0x2544e8['shapeData'],'onUpdateShapeData':_0x3381af}):null;}function _0x5f064a(){const _0x4b91f9=_0xa608a8;var _0x15a56b;let {selection:_0x389f80,updateShapeData:_0x53dfa9}=_0x456ce2(),_0x2b5b5a=(0x0,_0x354392[_0x4b91f9(0x206)])({'hostType':_0x244243[_0x4b91f9(0x10a)][_0x4b91f9(0x127)],'unitId':(_0x389f80==null?void 0x0:_0x389f80[_0x4b91f9(0x284)])??'','subUnitId':(_0x389f80==null?void 0x0:_0x389f80['subUnitId'])??'','shapeId':(_0x389f80==null?void 0x0:_0x389f80[_0x4b91f9(0x2b5)])??'','shapeData':_0x389f80==null?void 0x0:_0x389f80[_0x4b91f9(0x4c3)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x4b91f9(0x404),'onUpdateBinding':_0x16cda=>_0x53dfa9({'formulaBinding':_0x16cda})}),_0x57f3dc=((_0x15a56b=_0x2b5b5a['extensionGroups'])==null?void 0x0:_0x15a56b[_0x4b91f9(0x343)](_0x115fb8=>_0x115fb8[_0x4b91f9(0x3f1)])['filter'](_0x1eadaa=>_0x1eadaa[_0x4b91f9(0x24c)]!==!0x1))??[];return _0x389f80!=null&&_0x389f80[_0x4b91f9(0x4c3)][_0x4b91f9(0x301)]?(0x0,_0x1edb74[_0x4b91f9(0x4e1)])(_0x354392['ShapeFormulaRibbonControl'],{'actions':_0x57f3dc,'panel':_0x2b5b5a[_0x4b91f9(0x1bb)]}):null;}let _0x6c0bde=_0xa608a8(0x1b2),_0x411556=_0xa608a8(0x339),_0x1d8afc='sheets-shape-ui.ribbon.shape-format.formula-control',_0x2da93e=_0xa608a8(0x1f8),_0x27db2f=_0xa608a8(0x16d),_0x15718a='sheets-shape-ui.ribbon.shape-format.arrange-front',_0x52a17f=_0xa608a8(0x2c3);function _0x5ba12c(_0x3c202c){const _0x6ea1e5=_0xa608a8;let _0x2f6667=_0x3c202c[_0x6ea1e5(0x20b)](_0x244243['ICommandService']),_0x5dfd29=_0x3c202c['get'](_0x43c769[_0x6ea1e5(0x334)]),_0x2811c5=_0x3c202c[_0x6ea1e5(0x20b)](_0xb19349[_0x6ea1e5(0x439)]);return new _0x38f817[(_0x6ea1e5(0x16c))](_0x38afe1=>{const _0xe7eb13=_0x6ea1e5;let _0x2d26bb=()=>{const _0x3be396=_0x286e;let _0x14ab2=_0x19db88(_0x3c202c),_0x16da1a=_0x14ab2?_0x2811c5[_0x3be396(0x257)](_0x14ab2[_0x3be396(0x284)],_0x14ab2[_0x3be396(0x226)],_0x14ab2[_0x3be396(0x2b5)]):null;_0x38afe1[_0x3be396(0x159)](_0x16da1a?(0x0,_0x4e6980[_0x3be396(0x14e)])(_0x16da1a)??'':'');},_0x47f2dd=_0x5dfd29[_0xe7eb13(0x17f)]['subscribe'](_0x2d26bb),_0x152e44=_0x2f6667[_0xe7eb13(0x380)](_0x46bb0b=>{const _0x1736ae=_0xe7eb13;_0x46bb0b['id']===_0xb19349[_0x1736ae(0x35d)]['id']&&_0x2d26bb();});return _0x2d26bb(),()=>{const _0x2ad042=_0xe7eb13;_0x47f2dd['unsubscribe'](),_0x152e44[_0x2ad042(0x11e)]();};});}function _0x19db88(_0x57be9a){const _0x435c9f=_0xa608a8;var _0x3a4c84;let _0xcba1d=_0x57be9a['get'](_0x43c769[_0x435c9f(0x334)])[_0x435c9f(0x305)]();return _0xcba1d[_0x435c9f(0x225)]===0x1&&((_0x3a4c84=_0xcba1d[0x0])==null?void 0x0:_0x3a4c84['drawingType'])===_0x244243[_0x435c9f(0x138)][_0x435c9f(0x4e9)]?_0xcba1d[0x0]:null;}function _0x40a1f6(_0x6d98c0,_0x63cb7c=!0x1){const _0x3c1d48=_0xa608a8;let _0x14b048=_0x6d98c0[_0x3c1d48(0x20b)](_0x244243[_0x3c1d48(0x2d0)]),_0x82ec5c=_0x6d98c0['get'](_0x43c769['IDrawingManagerService']),_0x5b72ca=_0x6d98c0[_0x3c1d48(0x20b)](_0xb19349[_0x3c1d48(0x439)]);return new _0x38f817[(_0x3c1d48(0x16c))](_0x540e00=>{const _0x17eaf7=_0x3c1d48;let _0x140870=()=>{const _0xad73b3=_0x286e;let _0x423328=_0x19db88(_0x6d98c0);if(!_0x423328){_0x540e00['next'](!0x0);return;}let _0x27e742=_0x5b72ca[_0xad73b3(0x257)](_0x423328['unitId'],_0x423328[_0xad73b3(0x226)],_0x423328[_0xad73b3(0x2b5)]);_0x540e00[_0xad73b3(0x159)](!_0x27e742||_0x63cb7c&&_0x27e742['formulaBinding']==null);},_0xffdf6b=_0x82ec5c[_0x17eaf7(0x17f)][_0x17eaf7(0x376)](_0x140870),_0x4390fa=_0x14b048['onCommandExecuted'](_0x3c6d06=>{_0x3c6d06['id']===_0xb19349['UpdateSheetsShapeDataMutation']['id']&&_0x140870();});return _0x140870(),()=>{const _0x472f36=_0x17eaf7;_0xffdf6b[_0x472f36(0x39f)](),_0x4390fa[_0x472f36(0x11e)]();};});}function _0x22747c(_0x2688da){const _0x2eaf56=_0xa608a8;let _0x26facc=_0x2688da[_0x2eaf56(0x20b)](_0x43c769['IDrawingManagerService']),_0x447bed=_0x2688da['get'](_0xb19349[_0x2eaf56(0x439)]);return _0x26facc['focus$'][_0x2eaf56(0x288)]((0x0,_0x38f817['startWith'])(_0x26facc[_0x2eaf56(0x305)]()),(0x0,_0x38f817[_0x2eaf56(0x153)])(()=>{const _0x1ae995=_0x2eaf56;let _0x2731fc=_0x19db88(_0x2688da),_0x3b0da6=_0x2731fc?_0x447bed['getShapeTypeById'](_0x2731fc[_0x1ae995(0x284)],_0x2731fc[_0x1ae995(0x226)],_0x2731fc[_0x1ae995(0x2b5)]):void 0x0;return _0x3b0da6===void 0x0||(0x0,_0x11e0df['isConnectorShape'])(_0x3b0da6);}));}function _0x2765b7(_0x1ce636){const _0x5c02c9=_0xa608a8;return{'id':_0xb30908['id'],'type':_0x36a73f['MenuItemType'][_0x5c02c9(0x43f)],'icon':_0x5c02c9(0x154),'title':_0x5c02c9(0x512),'tooltip':_0x5c02c9(0x512),'selections':[{'label':{'name':_0x3dcb02,'hoverable':!0x1,'selectable':!0x1}}],'value$':_0x5ba12c(_0x1ce636),'hidden$':_0x40a1f6(_0x1ce636)};}function _0x192898(_0x29296d){const _0xbd0ddc=_0xa608a8;return{'id':_0x14afcc['id'],'type':_0x36a73f[_0xbd0ddc(0x2ee)][_0xbd0ddc(0x43f)],'icon':_0xbd0ddc(0x33c),'title':_0xbd0ddc(0x478),'tooltip':_0xbd0ddc(0x478),'slot':!0x0,'selections':[{'label':{'name':_0x354392[_0xbd0ddc(0x40f)],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':_0x22747c(_0x29296d)};}function _0x5a1f5d(_0x541a61,_0x2e9249,_0x589b2d=!0x1){const _0xb11885=_0xa608a8;return _0xffaabc=>({'id':_0x541a61,'type':_0x36a73f['MenuItemType'][_0xb11885(0x50a)],'label':{'name':_0x2e9249,'hoverable':!0x1,'selectable':!0x1},'hidden$':_0x40a1f6(_0xffaabc,_0x589b2d)});}let _0x347385=_0x5a1f5d(_0x6c0bde,_0x4f8817),_0x95a6d3=_0x5a1f5d(_0x411556,_0x305fa3),_0x5ca26f=_0x5a1f5d(_0x1d8afc,_0x2e3f19,!0x0);function _0x131bfc(_0x47b84d,_0x10b240,_0x4b2756,_0x40e6b0){const _0x210e59=_0xa608a8;return _0x12f2a6=>({'id':_0x47b84d,'commandId':_0x29aa40[_0x210e59(0x436)]['id'],'type':_0x36a73f[_0x210e59(0x2ee)][_0x210e59(0x50a)],'icon':_0x4b2756,'title':_0x40e6b0,'tooltip':_0x40e6b0,'hidden$':_0x40a1f6(_0x12f2a6),'params':()=>{const _0x502369=_0x210e59;let _0x3ed2d6=_0x19db88(_0x12f2a6);return _0x3ed2d6?{'unitId':_0x3ed2d6['unitId'],'subUnitId':_0x3ed2d6[_0x502369(0x226)],'drawingIds':[_0x3ed2d6['drawingId']],'arrangeType':_0x10b240}:void 0x0;}});}let _0x5b29ad=_0x131bfc(_0x2da93e,_0x244243[_0xa608a8(0x118)][_0xa608a8(0x22d)],_0xa608a8(0x36a),'shape-editor-ui.arrange.forward'),_0x1b97f2=_0x131bfc(_0x27db2f,_0x244243['ArrangeTypeEnum'][_0xa608a8(0x4af)],_0xa608a8(0x1c9),_0xa608a8(0x31a)),_0x4deba4=_0x131bfc(_0x15718a,_0x244243[_0xa608a8(0x118)]['front'],_0xa608a8(0x4b4),_0xa608a8(0x4df)),_0x1298fa=_0x131bfc(_0x52a17f,_0x244243['ArrangeTypeEnum'][_0xa608a8(0x194)],_0xa608a8(0x4e3),_0xa608a8(0x447));function _0x283f39(_0x5ba627){const _0x45d5d6=_0xa608a8;let _0x520f1a=_0x5ba627['get'](_0x36a73f[_0x45d5d6(0x16f)]);return{'activated$':(0x0,_0x38f817['defer'])(()=>_0x520f1a[_0x45d5d6(0x4b8)][_0x45d5d6(0x288)]((0x0,_0x38f817[_0x45d5d6(0x23b)])(_0x520f1a[_0x45d5d6(0x493)]),(0x0,_0x38f817[_0x45d5d6(0x153)])(_0x3b291a=>_0x3b291a[_0x45d5d6(0x24c)]===!0x0&&_0x3b291a['id']===_0x45d5d6(0x4ac)),(0x0,_0x38f817[_0x45d5d6(0x2dd)])())),'id':_0x59c8cc['id'],'type':_0x36a73f['MenuItemType']['BUTTON'],'icon':_0x45d5d6(0x454),'title':_0x45d5d6(0x183),'tooltip':_0x45d5d6(0x183),'hidden$':_0x40a1f6(_0x5ba627),'params':()=>{const _0x8d51c=_0x45d5d6;let _0x50419b=_0x19db88(_0x5ba627);return _0x50419b?{'unitId':_0x50419b[_0x8d51c(0x284)],'subUnitId':_0x50419b[_0x8d51c(0x226)],'drawingId':_0x50419b['drawingId']}:void 0x0;}};}let _0x343ee7={[_0x36a73f[_0xa608a8(0x139)][_0xa608a8(0x2da)]]:{[_0x4eb377]:{'order':0x64,'title':_0xa608a8(0x183),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[_0xb30908['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x2765b7},[_0x14afcc['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x192898}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[_0x6c0bde]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':_0x347385}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[_0x411556]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':_0x95a6d3}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[_0x3ac6e4]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':_0x37c268},[_0x4c6a7a]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':_0x47ab8d},[_0x2da93e]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':_0x5b29ad},[_0x27db2f]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x1b97f2},[_0x15718a]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':_0x4deba4},[_0x52a17f]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':_0x1298fa}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[_0x1d8afc]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':_0x5ca26f}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[_0x59c8cc['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x283f39},[_0x354392[_0xa608a8(0x2d5)]['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x354392['ShapeFloatingToolbarToggleFactory']}}}}},_0x234d9b={[_0x36a73f[_0xa608a8(0x20f)][_0xa608a8(0x39b)]]:{[_0x2aee67['id']]:{'order':0x3,'menuItemFactory':_0x54653f}}},_0x417544={..._0x234d9b,[_0x36a73f[_0xa608a8(0x20f)][_0xa608a8(0x1ff)]]:{[_0xd39a54['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':_0x5ad7ac}},[_0x36a73f[_0xa608a8(0x39e)]['DRAWING']]:{[_0x36a73f[_0xa608a8(0x465)][_0xa608a8(0x1ff)]]:{[_0x3ac6e4]:{'order':0x4,'menuItemFactory':_0x37c268},[_0x4c6a7a]:{'order':0x5,'menuItemFactory':_0x47ab8d}}}};var _0x28e822=_0xa608a8(0x377),_0x4887ee='1.5.1';let _0x6fb12a={'id':'sheet.operation.open-mobile-shape-editor','type':_0x244243[_0xa608a8(0x180)][_0xa608a8(0x3d0)],'handler'(_0x6bb6f6,_0x48c9ed){const _0x28d995=_0xa608a8;return _0x48c9ed?(_0x6bb6f6[_0x28d995(0x20b)](_0x354392[_0x28d995(0x155)])[_0x28d995(0x4f9)](_0x48c9ed['mode'],{'hostType':_0x244243[_0x28d995(0x10a)][_0x28d995(0x127)],'shapeId':_0x48c9ed[_0x28d995(0x2b5)],'subUnitId':_0x48c9ed[_0x28d995(0x226)],'unitId':_0x48c9ed[_0x28d995(0x284)]}),!0x0):!0x1;}},_0xb25cac=_0xa608a8(0x23e),_0x22bbe8={},_0x282d54=class extends _0x244243[_0xa608a8(0x2a8)]{constructor(_0x51ca6d,_0x663ebf,_0x3c7b9e,_0xd9d86a,_0xbccbf9){const _0x118128=_0xa608a8;super(),this[_0x118128(0x413)]=_0x51ca6d,this[_0x118128(0x3d7)]=_0x663ebf,this['_renderManagerService']=_0x3c7b9e,this['_univerInstanceService']=_0xd9d86a,this[_0x118128(0x3a6)]=_0xbccbf9,_0x5b48d0(this,_0x118128(0x274),null),_0x5b48d0(this,_0x118128(0x2e3),null),_0x5b48d0(this,'_subUnitId',null),_0x5b48d0(this,_0x118128(0x270),void 0x0),_0x5b48d0(this,'_shapes',[]),_0x5b48d0(this,_0x118128(0x261),0x0),_0x5b48d0(this,_0x118128(0x217),0x0),_0x5b48d0(this,_0x118128(0x282),0x0),_0x5b48d0(this,'_baseHeight',0x0),_0x5b48d0(this,_0x118128(0x386),!0x1),_0x5b48d0(this,_0x118128(0x50d),void 0x0),_0x5b48d0(this,_0x118128(0x240),void 0x0),_0x5b48d0(this,_0x118128(0x46e),void 0x0),_0x5b48d0(this,_0x118128(0x19a),void 0x0),_0x5b48d0(this,_0x118128(0x312),!0x1),this['_registerFocusChangeHandler'](),this[_0x118128(0x516)]();}['clearAdjustControls'](){const _0x430c86=_0xa608a8;this[_0x430c86(0x3ad)]();}[_0xa608a8(0x14f)](){const _0x2c4879=_0xa608a8;this[_0x2c4879(0x3ad)](),this[_0x2c4879(0x518)](!0x0);}[_0xa608a8(0x2a0)](_0x423309,_0x116b72,_0xd7879b,_0x307a41){const _0xa8c93a=_0xa608a8;let _0x2d5bd1=_0x423309;if(_0x2d5bd1!==_0x11e0df[_0xa8c93a(0x30a)][_0xa8c93a(0x262)]&&_0x423309!=='custom')try{let _0x1cec10=new _0x11e0df[(_0xa8c93a(0x3c2))](_0x2d5bd1,_0xa8c93a(0x523)+_0x423309);return _0x307a41&&_0x1cec10[_0xa8c93a(0x2ef)]({'adjustValues':_0x307a41},!0x0),_0x1cec10[_0xa8c93a(0x30c)]({'width':_0x116b72,'height':_0xd7879b}),_0x1cec10;}catch{return;}}['_getImageDrawingInfo'](_0x52a4d3,_0x44fb2b,_0x1c3d2c){const _0x1f32cb=_0xa608a8;let _0x2981e4={'unitId':_0x52a4d3,'subUnitId':_0x44fb2b,'drawingId':_0x1c3d2c},_0x56fad7=this[_0x1f32cb(0x3d7)]['getDrawingByParam'](_0x2981e4);if(_0x56fad7&&_0x56fad7[_0x1f32cb(0x351)]===_0x244243[_0x1f32cb(0x138)][_0x1f32cb(0x24b)])return _0x56fad7;}[_0xa608a8(0x3e7)](_0x372920,_0x18dda6,_0x5427df){const _0x2e5d2b=_0xa608a8;let _0x313641=this[_0x2e5d2b(0x23d)][_0x2e5d2b(0x236)](_0x372920);if(!_0x313641)return;let {scene:_0x3cac01}=_0x313641,_0x564f75=(0x0,_0x43c769[_0x2e5d2b(0x280)])({'unitId':_0x372920,'subUnitId':_0x18dda6,'drawingId':_0x5427df}),_0x9688ef=_0x3cac01[_0x2e5d2b(0x393)](_0x564f75);if(_0x9688ef instanceof _0x559311[_0x2e5d2b(0x25f)]){let _0x1d4061=_0x9688ef[_0x2e5d2b(0x3c9)];if(_0x1d4061)return{'prstGeom':_0x1d4061,'adjustValues':_0x9688ef[_0x2e5d2b(0x3ee)]};}}[_0xa608a8(0x518)](_0x2313d9=!0x1){const _0x3fa8cc=_0xa608a8;if(!this['_unitId']||!this[_0x3fa8cc(0x2f5)]||!this[_0x3fa8cc(0x274)])return;let _0x5de546=this['_renderManagerService'][_0x3fa8cc(0x236)](this[_0x3fa8cc(0x2e3)]);if(!_0x5de546||!_0x5de546[_0x3fa8cc(0x3cf)](_0x180b4c[_0x3fa8cc(0x23a)])['getCurrentSkeleton']())return;let {scene:_0x32f2e2}=_0x5de546,_0x29cc7a=this[_0x3fa8cc(0x2a9)](this[_0x3fa8cc(0x2e3)],this[_0x3fa8cc(0x2f5)],this[_0x3fa8cc(0x274)]);if(!_0x29cc7a)return;let {transform:_0x560d6f}=_0x29cc7a;if(!_0x560d6f)return;let {left:_0x4427d5,top:_0x24be91,width:_0x404f27,height:_0x318208,flipX:_0x37fb31,flipY:_0x54d74a,angle:_0x46f0df=0x0}=_0x560d6f;if(_0x4427d5===void 0x0||_0x24be91===void 0x0)return;let _0x27344f=this[_0x3fa8cc(0x3e7)](this[_0x3fa8cc(0x2e3)],this[_0x3fa8cc(0x2f5)],this[_0x3fa8cc(0x274)]);if(!_0x27344f)return;if(_0x2313d9){let _0x1a976d=this['_getOrCreateShapeModel'](_0x27344f[_0x3fa8cc(0x3c9)],_0x404f27||0x0,_0x318208||0x0,_0x27344f[_0x3fa8cc(0x18d)]);if(!_0x1a976d)return;this[_0x3fa8cc(0x270)]=_0x1a976d['getDrawingPoints']();}let _0x24341b=this[_0x3fa8cc(0x270)];if(_0x24341b&&_0x24341b[_0x3fa8cc(0x225)]!==0x0)for(let _0x500740=0x0;_0x500740<_0x24341b['length'];_0x500740++){let _0x2e1d17=_0x24341b[_0x500740],_0xd485db=_0x2e1d17['x'],_0x5bfeaf=_0x2e1d17['y'];if(_0x37fb31&&(_0xd485db=(_0x404f27||0x0)-_0xd485db),_0x54d74a&&(_0x5bfeaf=(_0x318208||0x0)-_0x5bfeaf),_0x46f0df!==0x0){let _0x3691b7=(_0x404f27||0x0)/0x2,_0x5d51f6=(_0x318208||0x0)/0x2,_0x37411c=_0x46f0df*Math['PI']/0xb4,_0x5cdec2=Math[_0x3fa8cc(0x26c)](_0x37411c),_0xa537f4=Math[_0x3fa8cc(0x149)](_0x37411c),_0x439390=_0xd485db-_0x3691b7,_0x2c91ec=_0x5bfeaf-_0x5d51f6;_0xd485db=_0x3691b7+(_0x439390*_0x5cdec2-_0x2c91ec*_0xa537f4),_0x5bfeaf=_0x5d51f6+(_0x439390*_0xa537f4+_0x2c91ec*_0x5cdec2);}let _0x809968={'x':_0xd485db,'y':_0x5bfeaf,'adjName':_0x2e1d17[_0x3fa8cc(0x472)]};this[_0x3fa8cc(0x1a1)](_0x32f2e2,_0x809968,_0x809968[_0x3fa8cc(0x472)],_0x4427d5,_0x24be91,this[_0x3fa8cc(0x2e3)],this['_subUnitId']);}}['_addControl'](_0x2065bd,_0x34013b,_0x55fee0,_0x43fc68,_0x15eddb,_0x4ef0f2,_0x1c23bf){const _0x493699=_0xa608a8;if(!this[_0x493699(0x274)])return;let _0x13ad35=_0x493699(0x49a)+this[_0x493699(0x274)]+'-'+_0x55fee0,_0x27e599=_0x2065bd[_0x493699(0x47f)](_0x13ad35);if(_0x27e599){_0x27e599['transformByState']({'left':_0x34013b['x']+_0x43fc68-_0x11e0df['ShapeDefaultConfig'][_0x493699(0x213)],'top':_0x34013b['y']+_0x15eddb-_0x11e0df[_0x493699(0x4bb)]['adjHandleSize']});return;}let _0x2f3f58=new _0x40f42f(_0x13ad35,{'left':_0x34013b['x']+_0x43fc68-_0x11e0df[_0x493699(0x4bb)][_0x493699(0x213)],'top':_0x34013b['y']+_0x15eddb-_0x11e0df[_0x493699(0x4bb)][_0x493699(0x213)],'adjName':_0x55fee0,'shapeId':this[_0x493699(0x274)],'unitId':_0x4ef0f2,'subUnitId':_0x1c23bf,'width':_0x11e0df['ShapeDefaultConfig'][_0x493699(0x213)]+0x8,'height':_0x11e0df['ShapeDefaultConfig'][_0x493699(0x213)]+0x8,'zIndex':_0x559311[_0x493699(0x17a)]+0x1,'evented':!0x0});this['_shapes'][_0x493699(0x313)](_0x2f3f58),this[_0x493699(0x445)](_0x2f3f58,_0x2065bd,_0x55fee0),_0x2065bd[_0x493699(0x1d6)](_0x2f3f58,_0x559311[_0x493699(0x17a)]+0x1);}[_0xa608a8(0x3ad)](){const _0x1a1990=_0xa608a8;this['_shapes'][_0x1a1990(0x225)]!==0x0&&(this[_0x1a1990(0x501)]['forEach'](_0x22773a=>_0x22773a[_0x1a1990(0x11e)]()),this[_0x1a1990(0x501)]=[]);}[_0xa608a8(0x412)](_0x5974bd,_0x54914b){const _0x2c090c=_0xa608a8;var _0x2d9172;let _0x2f55fe={'x':0x0,'y':0x0},_0x36114b=this[_0x2c090c(0x23d)][_0x2c090c(0x236)](_0x5974bd);if(!_0x36114b||!_0x36114b[_0x2c090c(0x3cf)](_0x180b4c[_0x2c090c(0x23a)])[_0x2c090c(0x34d)](_0x54914b))return _0x2f55fe;let _0x358e2a=_0x36114b[_0x2c090c(0x3cf)](_0x180b4c['SheetScrollManagerService']),_0x440197=_0x358e2a==null?void 0x0:_0x358e2a['getCurrentScrollState']();if(!_0x440197)return _0x2f55fe;let _0x5ba3e3=(_0x2d9172=this['_univerInstanceService'][_0x2c090c(0x150)](_0x5974bd))==null?void 0x0:_0x2d9172[_0x2c090c(0x4f7)](_0x54914b);if(!_0x5ba3e3)return _0x2f55fe;let _0x40f2f2=(0x0,_0x180b4c[_0x2c090c(0x186)])(_0x440197[_0x2c090c(0x266)],_0x440197[_0x2c090c(0x191)],_0x36114b[_0x2c090c(0x419)],_0x5ba3e3);return _0x40f2f2?{'x':_0x40f2f2[_0x2c090c(0x3ca)],'y':_0x40f2f2[_0x2c090c(0x33d)]}:_0x2f55fe;}[_0xa608a8(0x1d0)](_0x13a467,_0x316fc8){const _0x163e1b=_0xa608a8;var _0x4c301c;let _0x46421a=(_0x4c301c=this[_0x163e1b(0x1e8)][_0x163e1b(0x150)](_0x13a467))==null?void 0x0:_0x4c301c[_0x163e1b(0x4f7)](_0x316fc8);return(_0x46421a==null?void 0x0:_0x46421a[_0x163e1b(0x29a)]())??0x1;}[_0xa608a8(0x445)](_0x165e69,_0x2d3624,_0x8ab59){const _0x3999f0=_0xa608a8;this[_0x3999f0(0x322)]((0x0,_0x244243[_0x3999f0(0x45a)])(_0x165e69[_0x3999f0(0x344)][_0x3999f0(0x1ef)]((_0x577180,_0x52ba9e)=>{const _0x31f37e=_0x3999f0;var _0x4b9545,_0x5c54aa,_0x4b31b8;let {unitId:_0x3e24cf,subUnitId:_0x294a8e,drawingId:_0xc8c4e0}=_0x165e69['getDrawingSearch'](),_0x3f089f=this[_0x31f37e(0x2a9)](_0x3e24cf,_0x294a8e,_0xc8c4e0);if(!(_0x3f089f!=null&&_0x3f089f[_0x31f37e(0x31b)]))return;let {left:_0x38e8ed,top:_0x4c01da,width:_0x1a2eae,height:_0x47aa95}=_0x3f089f[_0x31f37e(0x31b)];this[_0x31f37e(0x261)]=_0x38e8ed||0x0,this['_baseTop']=_0x4c01da||0x0,this[_0x31f37e(0x282)]=_0x1a2eae||0x0,this[_0x31f37e(0x14a)]=_0x47aa95||0x0;let _0x1b7b6b=!!((_0x4b9545=_0x3f089f[_0x31f37e(0x31b)])!=null&&_0x4b9545[_0x31f37e(0x4ff)]),_0x1159e3=!!((_0x5c54aa=_0x3f089f[_0x31f37e(0x31b)])!=null&&_0x5c54aa[_0x31f37e(0x4fe)]),_0x8d6c26=((_0x4b31b8=_0x3f089f[_0x31f37e(0x31b)])==null?void 0x0:_0x4b31b8[_0x31f37e(0x3b9)])||0x0,_0x47c3df=this['_getImagePrstGeom'](_0x3e24cf,_0x294a8e,_0xc8c4e0);if(!_0x47c3df)return;let _0x5235d3=this[_0x31f37e(0x2a0)](_0x47c3df[_0x31f37e(0x3c9)],this[_0x31f37e(0x282)],this[_0x31f37e(0x14a)],_0x47c3df[_0x31f37e(0x18d)]);if(!_0x5235d3||(this[_0x31f37e(0x240)]=_0x5235d3,this['_activeAdjustInfo']=_0x5235d3[_0x31f37e(0x464)](_0x8ab59),!this[_0x31f37e(0x50d)]))return;this[_0x31f37e(0x386)]=!0x0,_0x2d3624['disableObjectsEvent']();let _0x500a97=_0x47c3df[_0x31f37e(0x3c9)];this['_adjHandlerPointerMove']=_0x2d3624[_0x31f37e(0x486)][_0x31f37e(0x1ef)]((_0x47e706,_0x14fbb6)=>{const _0x14b696=_0x31f37e;if(!this[_0x14b696(0x386)])return;let {offsetX:_0x21d0cc,offsetY:_0x4d4bd9}=_0x47e706,_0x11d0a5=this[_0x14b696(0x50d)];if(!this[_0x14b696(0x240)]||!_0x11d0a5)return;_0x2d3624[_0x14b696(0x40d)](),_0x2d3624[_0x14b696(0x402)](_0x559311[_0x14b696(0x164)]['CROSSHAIR']);let _0x3197c1={'left':0x0,'top':0x0,'width':this[_0x14b696(0x282)],'height':this['_baseHeight']},_0x30155f=this[_0x14b696(0x412)](_0x3e24cf,_0x294a8e),_0x2f9f0b=this['_getZoomRatio'](_0x3e24cf,_0x294a8e),_0x59c952=_0x21d0cc/_0x2f9f0b+_0x30155f['x']-this[_0x14b696(0x261)],_0x48054a=_0x4d4bd9/_0x2f9f0b+_0x30155f['y']-this[_0x14b696(0x217)];if(_0x8d6c26!==0x0){let _0x290aed=this[_0x14b696(0x282)]/0x2,_0x1c4fa8=this[_0x14b696(0x14a)]/0x2,_0x56f240=_0x8d6c26*Math['PI']/0xb4,_0x21cf74=Math[_0x14b696(0x26c)](_0x56f240),_0x1d2ba6=Math[_0x14b696(0x149)](_0x56f240),_0x294ebd=_0x59c952-_0x290aed,_0x1233ee=_0x48054a-_0x1c4fa8;_0x59c952=_0x290aed+(_0x294ebd*_0x21cf74+_0x1233ee*_0x1d2ba6),_0x48054a=_0x1c4fa8+(-_0x294ebd*_0x1d2ba6+_0x1233ee*_0x21cf74);}_0x1b7b6b&&(_0x59c952=this[_0x14b696(0x282)]-_0x59c952),_0x1159e3&&(_0x48054a=this['_baseHeight']-_0x48054a);let _0x52df88=this['_activeShapeModel'][_0x14b696(0x4d9)](_0x3197c1,{'x':_0x59c952,'y':_0x48054a},_0x11d0a5,_0x1b7b6b,_0x1159e3);if(Object['keys'](_0x52df88)['length']!==0x0){for(let [_0x400802,_0x527ee7]of Object[_0x14b696(0x3b2)](_0x52df88))this[_0x14b696(0x240)]['setAdjustValueByName'](_0x400802,_0x527ee7);this['_activeShapeModel']['updateContext']({'width':this[_0x14b696(0x282)],'height':this[_0x14b696(0x14a)]}),this[_0x14b696(0x3b3)](_0x3e24cf,_0x294a8e,_0xc8c4e0,_0x52df88),this['_activeAdjustPointList']=this['_activeShapeModel'][_0x14b696(0x30e)](),this[_0x14b696(0x518)](),_0x14fbb6[_0x14b696(0x455)]();}}),this[_0x31f37e(0x19a)]=_0x2d3624[_0x31f37e(0x435)][_0x31f37e(0x1ef)]((_0x4a07bb,_0x29e14f)=>{const _0x539446=_0x31f37e;if(this[_0x539446(0x46e)]['unsubscribe'](),this[_0x539446(0x19a)][_0x539446(0x39f)](),_0x2d3624['resetCursor'](),this['_activeShapeModel']){let _0x5bf6b4=this[_0x539446(0x240)][_0x539446(0x2f4)](),_0x431f90={};for(let _0x1daeea of _0x5bf6b4){let _0x20b81c=this['_activeShapeModel'][_0x539446(0x188)](_0x1daeea);_0x20b81c!==void 0x0&&(_0x431f90[_0x1daeea]=_0x20b81c);}this[_0x539446(0x3a6)][_0x539446(0x403)](_0x3e24cf,_0x294a8e,_0xc8c4e0,_0x500a97,_0x431f90);}this[_0x539446(0x50d)]=void 0x0,this[_0x539446(0x240)]=void 0x0,this[_0x539446(0x386)]=!0x1,_0x29e14f['stopPropagation'](),_0x2d3624['enableObjectsEvent']();}),_0x52ba9e[_0x31f37e(0x455)]();})));}[_0xa608a8(0x3b3)](_0xcbf011,_0x56c0b8,_0x33756e,_0x3173aa){const _0x39058c=_0xa608a8;let _0x391491=this[_0x39058c(0x23d)][_0x39058c(0x236)](_0xcbf011);if(!_0x391491)return;let {scene:_0x5be05b}=_0x391491,_0x20cb44=(0x0,_0x43c769[_0x39058c(0x280)])({'unitId':_0xcbf011,'subUnitId':_0x56c0b8,'drawingId':_0x33756e}),_0x338195=_0x5be05b[_0x39058c(0x393)](_0x20cb44);if(_0x338195 instanceof _0x559311[_0x39058c(0x25f)]){let _0x547703=_0x338195['prstGeomAdjValues']??{};_0x338195[_0x39058c(0x3df)]({..._0x547703,..._0x3173aa}),_0x338195[_0x39058c(0x476)](!0x0);}}[_0xa608a8(0x516)](){const _0x568fff=_0xa608a8;let _0x2bf57a=this[_0x568fff(0x1e8)][_0x568fff(0x2bd)](_0x244243['UniverInstanceType'][_0x568fff(0x127)]);this[_0x568fff(0x322)](_0x2bf57a['pipe']((0x0,_0x38f817[_0x568fff(0x14c)])(_0x5f0007=>_0x5f0007?_0x5f0007[_0x568fff(0x2de)]['pipe']((0x0,_0x38f817[_0x568fff(0x14c)])(_0x50a93b=>{const _0xa37302=_0x568fff;if(!_0x50a93b)return _0x38f817[_0xa37302(0x3be)];let _0x3b93bb=_0x5f0007[_0xa37302(0x244)](),_0x2dac93=this[_0xa37302(0x23d)][_0xa37302(0x236)](_0x3b93bb),_0x25daf0=_0x2dac93==null?void 0x0:_0x2dac93[_0xa37302(0x419)];return _0x25daf0?(0x0,_0x38f817['of'])(_0x25daf0):_0x38f817['EMPTY'];})):_0x38f817[_0x568fff(0x3be)]))['subscribe'](_0x2c198e=>{const _0x52ce86=_0x568fff;let _0x393999=_0x2c198e[_0x52ce86(0x3a4)]();this['disposeWithMe'](_0x2c198e[_0x52ce86(0x486)][_0x52ce86(0x1ef)](()=>{const _0x47943c=_0x52ce86;this['_isImagePointerDown']&&this[_0x47943c(0x3ad)]();})),this[_0x52ce86(0x322)](_0x393999[_0x52ce86(0x4dd)][_0x52ce86(0x376)](_0x569a19=>{const _0x52fe1d=_0x52ce86;let {objects:_0x56027e}=_0x569a19;if(this[_0x52fe1d(0x518)](),_0x56027e!==null&&_0x56027e[_0x52fe1d(0x13f)]===0x1){let _0x15a3c9=_0x56027e[_0x52fe1d(0x48d)]()[_0x52fe1d(0x159)]()[_0x52fe1d(0x496)];_0x15a3c9 instanceof _0x559311[_0x52fe1d(0x25f)]&&_0x15a3c9[_0x52fe1d(0x3c9)]&&(this[_0x52fe1d(0x312)]=!0x0);}})),this[_0x52ce86(0x322)](_0x393999[_0x52ce86(0x10f)][_0x52ce86(0x376)](()=>{const _0x26727d=_0x52ce86;this[_0x26727d(0x312)]&&this[_0x26727d(0x3ad)]();})),this[_0x52ce86(0x322)](_0x2c198e[_0x52ce86(0x435)][_0x52ce86(0x1ef)](()=>{const _0x18b70a=_0x52ce86;this[_0x18b70a(0x312)]&&(this[_0x18b70a(0x312)]=!0x1,this['_createControls']());})),this[_0x52ce86(0x322)](_0x393999[_0x52ce86(0x1e7)]['subscribe'](()=>{const _0x44295f=_0x52ce86;if(this[_0x44295f(0x2e3)]&&this[_0x44295f(0x2f5)]&&this[_0x44295f(0x274)]){let _0x5108bc=this[_0x44295f(0x3e7)](this[_0x44295f(0x2e3)],this[_0x44295f(0x2f5)],this['_activeImageId']);if(_0x5108bc){var _0x417c16,_0x5836a9;let _0x24605a=this['_getImageDrawingInfo'](this[_0x44295f(0x2e3)],this[_0x44295f(0x2f5)],this[_0x44295f(0x274)]),_0x34ed5c=(_0x24605a==null||(_0x417c16=_0x24605a[_0x44295f(0x31b)])==null?void 0x0:_0x417c16[_0x44295f(0x302)])||0x0,_0x1897e8=(_0x24605a==null||(_0x5836a9=_0x24605a[_0x44295f(0x31b)])==null?void 0x0:_0x5836a9[_0x44295f(0x474)])||0x0,_0xd405f5=this[_0x44295f(0x2a0)](_0x5108bc[_0x44295f(0x3c9)],_0x34ed5c,_0x1897e8,_0x5108bc[_0x44295f(0x18d)]);_0xd405f5&&(this[_0x44295f(0x270)]=_0xd405f5[_0x44295f(0x30e)](),this['_clearControls'](),this['_createControls'](!0x0));}}}));}));}[_0xa608a8(0x321)](){const _0x160ce7=_0xa608a8;this[_0x160ce7(0x322)](this[_0x160ce7(0x3d7)][_0x160ce7(0x17f)][_0x160ce7(0x376)](_0x3b44cc=>{const _0x5781e3=_0x160ce7;if(_0x3b44cc[_0x5781e3(0x225)]===0x1){let _0x3669cd=_0x3b44cc[0x0];if(_0x3669cd['drawingType']===_0x244243[_0x5781e3(0x138)]['DRAWING_IMAGE']){let {unitId:_0x59b74f,subUnitId:_0x339856,drawingId:_0x121a61}=_0x3669cd,_0x106e77=this['_getImagePrstGeom'](_0x59b74f,_0x339856,_0x121a61);if(_0x106e77){var _0x116856,_0xc5ffb4;this['_activeImageId']=_0x121a61,this['_unitId']=_0x59b74f,this['_subUnitId']=_0x339856;let _0xa7cafc=this[_0x5781e3(0x2a9)](_0x59b74f,_0x339856,_0x121a61),_0x3b9d79=(_0xa7cafc==null||(_0x116856=_0xa7cafc[_0x5781e3(0x31b)])==null?void 0x0:_0x116856[_0x5781e3(0x302)])||0x0,_0x89622=(_0xa7cafc==null||(_0xc5ffb4=_0xa7cafc[_0x5781e3(0x31b)])==null?void 0x0:_0xc5ffb4[_0x5781e3(0x474)])||0x0,_0x57adcf=this['_getOrCreateShapeModel'](_0x106e77[_0x5781e3(0x3c9)],_0x3b9d79,_0x89622,_0x106e77['adjustValues']);_0x57adcf&&(this[_0x5781e3(0x270)]=_0x57adcf[_0x5781e3(0x30e)]()),this[_0x5781e3(0x3ad)](),this['_createControls'](!0x0);}else this[_0x5781e3(0x1b8)]();}else this[_0x5781e3(0x1b8)]();}else this[_0x5781e3(0x1b8)]();})),this[_0x160ce7(0x322)](this[_0x160ce7(0x3d7)][_0x160ce7(0x1ad)][_0x160ce7(0x376)](_0xf4c05=>{const _0x387f48=_0x160ce7;if(_0xf4c05['length']===0x1){let _0x453df0=_0xf4c05[0x0],_0x25b6dc=this[_0x387f48(0x3d7)][_0x387f48(0x462)](_0x453df0);(_0x25b6dc==null?void 0x0:_0x25b6dc['drawingType'])===_0x244243[_0x387f48(0x138)]['DRAWING_IMAGE']&&this[_0x387f48(0x274)]===_0x453df0[_0x387f48(0x2b5)]&&(this[_0x387f48(0x3ad)](),this[_0x387f48(0x518)](!0x0));}})),this['disposeWithMe'](this[_0x160ce7(0x3d7)][_0x160ce7(0x1d5)][_0x160ce7(0x376)](_0x29432b=>{const _0x24eb5c=_0x160ce7;for(let _0x311d46 of _0x29432b)this[_0x24eb5c(0x274)]===_0x311d46[_0x24eb5c(0x2b5)]&&this[_0x24eb5c(0x1b8)]();}));}[_0xa608a8(0x1b8)](){const _0x456b8c=_0xa608a8;this[_0x456b8c(0x274)]=null,this[_0x456b8c(0x2e3)]=null,this[_0x456b8c(0x2f5)]=null,this[_0x456b8c(0x270)]=void 0x0,this[_0x456b8c(0x3ad)]();}};_0x282d54=_0x4cddfe([_0x542dc8(0x1,_0x43c769[_0xa608a8(0x334)]),_0x542dc8(0x2,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x559311['IRenderManagerService'])),_0x542dc8(0x3,_0x244243['IUniverInstanceService']),_0x542dc8(0x4,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x3b876d))],_0x282d54);function _0x37597e({ref:_0x5e9d79,..._0x396ef0}){const _0x12120b=_0xa608a8;let {preserveStrokeWidth:_0x1d6366,icon:_0x2e3cd0,id:_0x208f19,className:_0x4d0cb7,extend:_0x4ec3df,..._0x41602f}=_0x396ef0,_0x129e6c=(_0x12120b(0x4cd)+_0x208f19+'\x20'+(_0x4d0cb7||''))[_0x12120b(0x12f)](),_0x3b1473='_'+(0x0,_0x2ba528['useId'])(),_0x5897aa=(0x0,_0x2ba528[_0x12120b(0x179)])(null);return(0x0,_0x2ba528[_0x12120b(0x11a)])(_0x5e9d79,()=>_0x5897aa[_0x12120b(0x527)]),(0x0,_0x2ba528['useLayoutEffect'])(()=>{const _0x86d149=_0x12120b;if(_0x1d6366&&_0x5897aa[_0x86d149(0x527)]&&_0x5897aa[_0x86d149(0x527)]['localName']===_0x2e3cd0[_0x86d149(0x3c1)])return _0x24277f(_0x5897aa['current']);},[_0x1d6366,_0x2e3cd0]),_0x54334e(_0x2e3cd0,''+_0x208f19,{'defIds':_0x2e3cd0['defIds'],'idSuffix':_0x3b1473},{'ref':_0x5897aa,'className':_0x129e6c,..._0x41602f},_0x4ec3df);}function _0x54334e(_0x40d365,_0x10f2d8,_0x1c0d06,_0x35a2b3,_0x1ad7f4){const _0x411ae7=_0xa608a8;return(0x0,_0x2ba528[_0x411ae7(0x1d3)])(_0x40d365['tag'],{'key':_0x10f2d8,..._0x113d59(_0x40d365,_0x1c0d06,_0x1ad7f4),..._0x35a2b3},(_0x3606c1(_0x40d365,_0x1c0d06)[_0x411ae7(0x1c2)]||[])['map']((_0x5dafc7,_0x14a5ff)=>_0x54334e(_0x5dafc7,_0x10f2d8+'-'+_0x40d365[_0x411ae7(0x3c1)]+'-'+_0x14a5ff,_0x1c0d06,void 0x0,_0x1ad7f4)));}function _0x113d59(_0x4b9a22,_0x488371,_0x45207e){const _0x11a1ab=_0xa608a8;let _0xa02fab={..._0x4b9a22['attrs']};_0x45207e!=null&&_0x45207e['colorChannel1']&&_0xa02fab['fill']==='colorChannel1'&&(_0xa02fab[_0x11a1ab(0x1c1)]=_0x45207e['colorChannel1']),_0x45207e!=null&&_0x45207e[_0x11a1ab(0x326)]&&_0xa02fab[_0x11a1ab(0x237)]===_0x11a1ab(0x326)&&(_0xa02fab['stroke']=_0x45207e[_0x11a1ab(0x326)]),_0x4b9a22['tag']===_0x11a1ab(0x50c)&&_0xa02fab['id']&&(_0xa02fab['id']+=_0x488371[_0x11a1ab(0x397)]),Object[_0x11a1ab(0x3b2)](_0xa02fab)[_0x11a1ab(0x2ce)](([_0xa74f84,_0x4a7cc9])=>{const _0x4f6330=_0x11a1ab;_0xa74f84==='mask'&&typeof _0x4a7cc9==_0x4f6330(0x49e)&&(_0xa02fab[_0xa74f84]=_0x4a7cc9['replace'](/url\(#(.*)\)/,_0x4f6330(0x457)+_0x488371[_0x4f6330(0x397)]+')'));});let {defIds:_0x24d433}=_0x488371;return!_0x24d433||_0x24d433[_0x11a1ab(0x225)]===0x0||(_0x4b9a22[_0x11a1ab(0x3c1)]===_0x11a1ab(0x384)&&_0xa02fab[_0x11a1ab(0x2d9)]&&(_0xa02fab[_0x11a1ab(0x2d9)]+=_0x488371[_0x11a1ab(0x397)]),Object[_0x11a1ab(0x3b2)](_0xa02fab)['forEach'](([_0x189ee6,_0x55846c])=>{const _0x4420f6=_0x11a1ab;typeof _0x55846c==_0x4420f6(0x49e)&&(_0xa02fab[_0x189ee6]=_0x55846c[_0x4420f6(0x241)](/url\(#(.*)\)/,_0x4420f6(0x457)+_0x488371[_0x4420f6(0x397)]+')'));})),_0xa02fab;}function _0x3606c1(_0x3e93af,_0x4c5820){const _0x319abd=_0xa608a8;var _0x25165d;let {defIds:_0x2acaf8}=_0x4c5820;return!_0x2acaf8||_0x2acaf8[_0x319abd(0x225)]===0x0?_0x3e93af:_0x3e93af[_0x319abd(0x3c1)]===_0x319abd(0x166)&&(_0x25165d=_0x3e93af[_0x319abd(0x1c2)])!=null&&_0x25165d[_0x319abd(0x225)]?{..._0x3e93af,'children':_0x3e93af[_0x319abd(0x1c2)]['map'](_0x388be3=>typeof _0x388be3['attrs']['id']=='string'&&_0x2acaf8&&_0x2acaf8[_0x319abd(0x420)](_0x388be3[_0x319abd(0x36f)]['id'])?{..._0x388be3,'attrs':{..._0x388be3[_0x319abd(0x36f)],'id':_0x388be3['attrs']['id']+_0x4c5820[_0x319abd(0x397)]}}:_0x388be3)}:_0x3e93af;}function _0x24277f(_0x5b9c67){const _0x5629b1=_0xa608a8;let _0x1c8e63=_0x5b9c67[_0x5629b1(0x187)]['baseVal'],_0x9a7a11=Math[_0x5629b1(0x511)](_0x1c8e63[_0x5629b1(0x302)],_0x1c8e63[_0x5629b1(0x474)]);if(!Number[_0x5629b1(0x36d)](_0x9a7a11)||_0x9a7a11<=0x0||_0x1c8e63['width']<=0x0||_0x1c8e63['height']<=0x0)return()=>void 0x0;let _0x1dda09=0x10/_0x9a7a11,_0x21cbcc=Array[_0x5629b1(0x198)](_0x5b9c67[_0x5629b1(0x29e)](_0x5629b1(0x47d)))[_0x5629b1(0x343)](_0x49208e=>{const _0x37953e=_0x5629b1;let _0x4a33b1=getComputedStyle(_0x49208e),_0x53aa6a=Number[_0x37953e(0x52c)](_0x4a33b1['strokeWidth']);return _0x4a33b1[_0x37953e(0x237)]==='none'||Number[_0x37953e(0x52c)](_0x4a33b1['strokeOpacity'])===0x0||_0x4a33b1[_0x37953e(0x2eb)]===_0x37953e(0x291)||!Number[_0x37953e(0x36d)](_0x53aa6a)||_0x53aa6a<=0x0?[]:[{'element':_0x49208e,'hadStyleAttribute':_0x49208e[_0x37953e(0x25b)]('style'),'originalStrokeWidth':_0x53aa6a,'strokeWidth':_0x10cea0(_0x49208e[_0x37953e(0x405)],_0x37953e(0x409))}];})['map'](_0x32b2b9=>({'appliedStrokeWidth':null,'element':_0x32b2b9['element'],'hadStyleAttribute':_0x32b2b9[_0x5629b1(0x443)],'isReleased':!0x1,'originalStrokeWidth':_0x32b2b9['originalStrokeWidth'],'strokeWidth':_0x32b2b9['strokeWidth']}));if(_0x21cbcc[_0x5629b1(0x225)]===0x0)return()=>void 0x0;let _0x1179f6=(_0x331a88,_0x1b40b8)=>{const _0x4d5a07=_0x5629b1;if(_0x1c8e63['width']<=0x0||_0x1c8e63[_0x4d5a07(0x474)]<=0x0||_0x331a88<=0x0||_0x1b40b8<=0x0)return;let _0x40e408=Math[_0x4d5a07(0x3f6)](_0x331a88/_0x1c8e63['width'],_0x1b40b8/_0x1c8e63[_0x4d5a07(0x474)]);!Number[_0x4d5a07(0x36d)](_0x40e408)||_0x40e408<=0x0||_0x21cbcc['forEach'](_0x30e5cf=>{const _0x5239d9=_0x4d5a07;if(_0x30e5cf[_0x5239d9(0x3fd)])return;if(_0x30e5cf['appliedStrokeWidth']!==null&&(_0x30e5cf[_0x5239d9(0x303)][_0x5239d9(0x405)][_0x5239d9(0x1b9)](_0x5239d9(0x409))!==_0x30e5cf[_0x5239d9(0x16e)]||_0x30e5cf[_0x5239d9(0x303)][_0x5239d9(0x405)][_0x5239d9(0x212)](_0x5239d9(0x409))!==_0x30e5cf[_0x5239d9(0x440)][_0x5239d9(0x19d)])){_0x30e5cf[_0x5239d9(0x16e)]=null,_0x30e5cf[_0x5239d9(0x3fd)]=!0x0;return;}let _0x5fb58a=_0x30e5cf[_0x5239d9(0x415)]*_0x1dda09/_0x40e408,_0x5eeca6=Number(_0x5fb58a[_0x5239d9(0x203)](0xc))+'px';_0x30e5cf[_0x5239d9(0x303)][_0x5239d9(0x405)][_0x5239d9(0x215)](_0x5239d9(0x409),_0x5eeca6,_0x30e5cf['strokeWidth']['priority']),_0x30e5cf[_0x5239d9(0x16e)]=_0x5eeca6;});},_0x440ca6=_0x5b9c67[_0x5629b1(0x271)]();_0x1179f6(_0x440ca6[_0x5629b1(0x302)],_0x440ca6[_0x5629b1(0x474)]);let _0x44ebec=typeof ResizeObserver>'u'?null:new ResizeObserver(_0x5869e3=>{const _0xd8a90f=_0x5629b1;if(_0x5869e3[_0xd8a90f(0x38c)](_0x2e836b=>_0x2e836b[_0xd8a90f(0x234)]===_0x5b9c67)){let _0x3bd47c=_0x5b9c67['getBoundingClientRect']();_0x1179f6(_0x3bd47c[_0xd8a90f(0x302)],_0x3bd47c[_0xd8a90f(0x474)]);}});return _0x44ebec==null||_0x44ebec[_0x5629b1(0x51c)](_0x5b9c67),()=>{const _0x5031bb=_0x5629b1;_0x44ebec==null||_0x44ebec[_0x5031bb(0x528)](),_0x21cbcc['forEach'](_0x4d1288=>{const _0x5840c1=_0x5031bb;_0x4d1288[_0x5840c1(0x16e)]!==null&&(_0x480563(_0x4d1288[_0x5840c1(0x303)]['style'],'stroke-width',_0x4d1288['appliedStrokeWidth'],_0x4d1288[_0x5840c1(0x440)]['priority'],_0x4d1288[_0x5840c1(0x440)]),!_0x4d1288['hadStyleAttribute']&&_0x4d1288[_0x5840c1(0x303)][_0x5840c1(0x405)][_0x5840c1(0x225)]===0x0&&_0x4d1288[_0x5840c1(0x303)][_0x5840c1(0x2f8)](_0x5840c1(0x405)));});};}function _0x10cea0(_0x410395,_0x1c3a4c){const _0x25e3e2=_0xa608a8;return{'priority':_0x410395[_0x25e3e2(0x212)](_0x1c3a4c),'value':_0x410395['getPropertyValue'](_0x1c3a4c)};}function _0x480563(_0x2882fd,_0x92246,_0x15459b,_0x24049e,_0x3234cd){const _0x3e1a77=_0xa608a8;_0x2882fd[_0x3e1a77(0x1b9)](_0x92246)===_0x15459b&&_0x2882fd[_0x3e1a77(0x212)](_0x92246)===_0x24049e&&(_0x3234cd['value']?_0x2882fd['setProperty'](_0x92246,_0x3234cd[_0x3e1a77(0x496)],_0x3234cd[_0x3e1a77(0x19d)]):_0x2882fd[_0x3e1a77(0x299)](_0x92246));}_0x37597e['displayName']=_0xa608a8(0x32f);let _0x269f07={'tag':_0xa608a8(0x4a5),'attrs':{'xmlns':_0xa608a8(0x235),'fill':'none','viewBox':_0xa608a8(0x3c4),'width':_0xa608a8(0x392),'height':_0xa608a8(0x392)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0xa608a8(0x245),'fillRule':'evenodd','clipRule':_0xa608a8(0x42c)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0xa608a8(0x2be),'fillRule':_0xa608a8(0x42c),'clipRule':_0xa608a8(0x42c)}},{'tag':_0xa608a8(0x450),'attrs':{'fill':'currentColor','d':'M8.57975\x2014.5902L6.58023\x2012.5907C6.34591\x2012.3564\x206.34591\x2011.9765\x206.58023\x2011.7421C6.81454\x2011.5078\x207.19444\x2011.5078\x207.42876\x2011.7421L8.40449\x2012.7179V10.1664C8.40449\x209.83504\x208.67312\x209.56641\x209.00449\x209.56641C9.33586\x209.56641\x209.60449\x209.83504\x209.60449\x2010.1664V12.7179L10.5802\x2011.7421C10.8145\x2011.5078\x2011.1944\x2011.5078\x2011.4288\x2011.7421C11.6631\x2011.9765\x2011.6631\x2012.3564\x2011.4288\x2012.5907L9.42923\x2014.5902'}},{'tag':'path','attrs':{'fill':_0xa608a8(0x4b3),'d':_0xa608a8(0x4fc)}}]},_0x3142c5=(0x0,_0x2ba528[_0xa608a8(0x1dc)])(function(_0x4c8fd5,_0x43f515){const _0x5e56c9=_0xa608a8;return(0x0,_0x2ba528[_0x5e56c9(0x1d3)])(_0x37597e,Object[_0x5e56c9(0x44a)]({},_0x4c8fd5,{'id':_0x5e56c9(0x469),'ref':_0x43f515,'icon':_0x269f07}));});_0x3142c5[_0xa608a8(0x18b)]=_0xa608a8(0x4e3);let _0x3407df={'tag':_0xa608a8(0x4a5),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0xa608a8(0x1c7),'width':'1em','height':_0xa608a8(0x392)},'children':[{'tag':_0xa608a8(0x450),'attrs':{'stroke':'currentColor','d':_0xa608a8(0x19f),'strokeLinecap':_0xa608a8(0x300),'strokeLinejoin':_0xa608a8(0x300),'strokeWidth':1.3}},{'tag':_0xa608a8(0x450),'attrs':{'stroke':_0xa608a8(0x4b3),'d':_0xa608a8(0x3b5),'strokeLinecap':_0xa608a8(0x300),'strokeLinejoin':_0xa608a8(0x300),'strokeWidth':1.3}},{'tag':_0xa608a8(0x450),'attrs':{'stroke':_0xa608a8(0x4b3),'d':_0xa608a8(0x1a5),'strokeLinecap':_0xa608a8(0x300),'strokeWidth':1.2}},{'tag':_0xa608a8(0x450),'attrs':{'stroke':_0xa608a8(0x4b3),'d':_0xa608a8(0x182),'strokeLinecap':_0xa608a8(0x300),'strokeWidth':1.2}},{'tag':_0xa608a8(0x450),'attrs':{'stroke':_0xa608a8(0x4b3),'d':_0xa608a8(0x4f8),'strokeLinecap':'round','strokeWidth':1.2}},{'tag':_0xa608a8(0x450),'attrs':{'stroke':_0xa608a8(0x4b3),'d':_0xa608a8(0x3f3),'strokeLinecap':_0xa608a8(0x300),'strokeWidth':1.2}}]},_0x392827=(0x0,_0x2ba528[_0xa608a8(0x1dc)])(function(_0x28ca36,_0x4fbadc){const _0x64888e=_0xa608a8;return(0x0,_0x2ba528[_0x64888e(0x1d3)])(_0x37597e,Object[_0x64888e(0x44a)]({},_0x28ca36,{'id':'flip-horizontal-icon','ref':_0x4fbadc,'icon':_0x3407df}));});_0x392827[_0xa608a8(0x18b)]=_0xa608a8(0x3cb);let _0x3308d5={'tag':_0xa608a8(0x4a5),'attrs':{'xmlns':_0xa608a8(0x235),'fill':_0xa608a8(0x479),'viewBox':'0\x200\x2016\x2016','width':_0xa608a8(0x392),'height':_0xa608a8(0x392)},'children':[{'tag':_0xa608a8(0x450),'attrs':{'stroke':_0xa608a8(0x4b3),'d':_0xa608a8(0x1df),'strokeLinecap':'round','strokeLinejoin':_0xa608a8(0x300),'strokeWidth':1.3}},{'tag':_0xa608a8(0x450),'attrs':{'stroke':_0xa608a8(0x4b3),'d':'M3.3\x2013.4L8\x209.8L12.7\x2013.4H3.3Z','strokeLinecap':_0xa608a8(0x300),'strokeLinejoin':'round','strokeWidth':1.3}},{'tag':_0xa608a8(0x450),'attrs':{'stroke':_0xa608a8(0x4b3),'d':_0xa608a8(0x31d),'strokeLinecap':'round','strokeWidth':1.2}},{'tag':_0xa608a8(0x450),'attrs':{'stroke':_0xa608a8(0x4b3),'d':'M6.2\x208H7.8','strokeLinecap':_0xa608a8(0x300),'strokeWidth':1.2}},{'tag':_0xa608a8(0x450),'attrs':{'stroke':_0xa608a8(0x4b3),'d':_0xa608a8(0x3b6),'strokeLinecap':_0xa608a8(0x300),'strokeWidth':1.2}},{'tag':_0xa608a8(0x450),'attrs':{'stroke':_0xa608a8(0x4b3),'d':'M14\x208H14.2','strokeLinecap':_0xa608a8(0x300),'strokeWidth':1.2}}]},_0x5a9a67=(0x0,_0x2ba528[_0xa608a8(0x1dc)])(function(_0x238873,_0x27909){const _0x4c6ce9=_0xa608a8;return(0x0,_0x2ba528[_0x4c6ce9(0x1d3)])(_0x37597e,Object['assign']({},_0x238873,{'id':_0x4c6ce9(0x3eb),'ref':_0x27909,'icon':_0x3308d5}));});_0x5a9a67[_0xa608a8(0x18b)]=_0xa608a8(0x192);let _0xf09e92={'tag':_0xa608a8(0x4a5),'attrs':{'xmlns':_0xa608a8(0x235),'fill':'none','viewBox':_0xa608a8(0x1c7),'width':_0xa608a8(0x392),'height':_0xa608a8(0x392)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0xa608a8(0x27e),'fillRule':_0xa608a8(0x42c),'clipRule':_0xa608a8(0x42c)}},{'tag':_0xa608a8(0x450),'attrs':{'fill':_0xa608a8(0x4b3),'d':_0xa608a8(0x41e)}}]},_0x452406=(0x0,_0x2ba528['forwardRef'])(function(_0x41e32f,_0x1453b5){const _0x415172=_0xa608a8;return(0x0,_0x2ba528[_0x415172(0x1d3)])(_0x37597e,Object['assign']({},_0x41e32f,{'id':_0x415172(0x459),'ref':_0x1453b5,'icon':_0xf09e92}));});_0x452406['displayName']=_0xa608a8(0x1c9);let _0x48bf4f={'tag':_0xa608a8(0x4a5),'attrs':{'xmlns':_0xa608a8(0x235),'fill':_0xa608a8(0x479),'viewBox':'0\x200\x2016\x2016','width':_0xa608a8(0x392),'height':_0xa608a8(0x392)},'children':[{'tag':'path','attrs':{'fill':_0xa608a8(0x4b3),'d':_0xa608a8(0x39c),'fillRule':'evenodd','clipRule':_0xa608a8(0x42c)}},{'tag':_0xa608a8(0x450),'attrs':{'fill':_0xa608a8(0x4b3),'d':_0xa608a8(0x18e)}}]},_0x6834cf=(0x0,_0x2ba528[_0xa608a8(0x1dc)])(function(_0x2cb281,_0x402d78){const _0x4eaf13=_0xa608a8;return(0x0,_0x2ba528[_0x4eaf13(0x1d3)])(_0x37597e,Object['assign']({},_0x2cb281,{'id':_0x4eaf13(0x1a3),'ref':_0x402d78,'icon':_0x48bf4f}));});_0x6834cf[_0xa608a8(0x18b)]=_0xa608a8(0x36a);let _0x2a0fef={'tag':_0xa608a8(0x4a5),'attrs':{'xmlns':_0xa608a8(0x235),'fill':_0xa608a8(0x479),'viewBox':'0\x200\x2016\x2016','width':_0xa608a8(0x392),'height':_0xa608a8(0x392)},'children':[{'tag':_0xa608a8(0x450),'attrs':{'stroke':_0xa608a8(0x4b3),'d':_0xa608a8(0x2d8),'strokeLinecap':_0xa608a8(0x300),'strokeLinejoin':'round','strokeWidth':1.3}},{'tag':_0xa608a8(0x450),'attrs':{'stroke':_0xa608a8(0x4b3),'d':_0xa608a8(0x42f),'strokeLinecap':_0xa608a8(0x300),'strokeLinejoin':_0xa608a8(0x300),'strokeWidth':1.3}}]},_0xb13c02=(0x0,_0x2ba528['forwardRef'])(function(_0x5645a4,_0x49e650){const _0x267cb9=_0xa608a8;return(0x0,_0x2ba528[_0x267cb9(0x1d3)])(_0x37597e,Object[_0x267cb9(0x44a)]({},_0x5645a4,{'id':_0x267cb9(0x374),'ref':_0x49e650,'icon':_0x2a0fef}));});_0xb13c02[_0xa608a8(0x18b)]=_0xa608a8(0x1b3);let _0x1a8484={'tag':_0xa608a8(0x4a5),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0xa608a8(0x392)},'children':[{'tag':'path','attrs':{'stroke':_0xa608a8(0x4b3),'d':_0xa608a8(0x1ce),'strokeLinecap':_0xa608a8(0x300),'strokeLinejoin':'round','strokeWidth':1.2}},{'tag':_0xa608a8(0x450),'attrs':{'stroke':'currentColor','d':_0xa608a8(0x26e),'strokeLinecap':_0xa608a8(0x300),'strokeWidth':1.2}},{'tag':_0xa608a8(0x450),'attrs':{'stroke':_0xa608a8(0x4b3),'d':'M4.2\x208.3H6.8','strokeLinecap':_0xa608a8(0x300),'strokeWidth':1.2}},{'tag':_0xa608a8(0x450),'attrs':{'stroke':'currentColor','d':_0xa608a8(0x21a),'strokeLinejoin':'round'}},{'tag':_0xa608a8(0x450),'attrs':{'stroke':_0xa608a8(0x4b3),'d':'M12.05\x2012.1C12.6299\x2012.1\x2013.1\x2011.6299\x2013.1\x2011.05C13.1\x2010.4701\x2012.6299\x2010\x2012.05\x2010C11.4701\x2010\x2011\x2010.4701\x2011\x2011.05C11\x2011.6299\x2011.4701\x2012.1\x2012.05\x2012.1Z'}}]},_0x3ad4d1=(0x0,_0x2ba528[_0xa608a8(0x1dc)])(function(_0x267fde,_0x4d3e2c){const _0x2556a8=_0xa608a8;return(0x0,_0x2ba528[_0x2556a8(0x1d3)])(_0x37597e,Object['assign']({},_0x267fde,{'id':_0x2556a8(0x2b8),'ref':_0x4d3e2c,'icon':_0x1a8484}));});_0x3ad4d1[_0xa608a8(0x18b)]='ShapeFormatSettingIcon';let _0x58f9ba={'tag':_0xa608a8(0x4a5),'attrs':{'xmlns':_0xa608a8(0x235),'fill':_0xa608a8(0x479),'viewBox':_0xa608a8(0x3c4),'width':_0xa608a8(0x392),'height':'1em'},'children':[{'tag':_0xa608a8(0x450),'attrs':{'fill':_0xa608a8(0x4b3),'d':_0xa608a8(0x1e0)}},{'tag':_0xa608a8(0x450),'attrs':{'fill':_0xa608a8(0x4b3),'d':_0xa608a8(0x35a),'fillRule':'evenodd','clipRule':_0xa608a8(0x42c)}},{'tag':_0xa608a8(0x450),'attrs':{'fill':'currentColor','d':_0xa608a8(0x3b1),'fillRule':_0xa608a8(0x42c),'clipRule':_0xa608a8(0x42c)}}]},_0x369e65=(0x0,_0x2ba528[_0xa608a8(0x1dc)])(function(_0x38e049,_0x4795e4){const _0x1eb6e5=_0xa608a8;return(0x0,_0x2ba528[_0x1eb6e5(0x1d3)])(_0x37597e,Object[_0x1eb6e5(0x44a)]({},_0x38e049,{'id':_0x1eb6e5(0x16a),'ref':_0x4795e4,'icon':_0x58f9ba}));});_0x369e65[_0xa608a8(0x18b)]=_0xa608a8(0x4b4);function _0x587718({PanelComponent:_0x1558c9=_0x4cdb25[_0xa608a8(0x2c1)]}){const _0x381b8e=_0xa608a8;var _0x165f6f;function _0x58b145(_0x44ad8d){const _0x53cfaa=_0x286e;return _0x44ad8d[_0x53cfaa(0x12f)]()||void 0x0;}function _0x5ecd9f(_0x545cbe,_0x366f83,_0x2e7ec2){const _0x2f0fa6=_0x286e;var _0x1c46f6;return((_0x1c46f6=_0x545cbe[_0x2f0fa6(0x20d)])==null?void 0x0:_0x1c46f6[_0x2f0fa6(0x12f)]())||_0x2e7ec2['t'](_0x2f0fa6(0x168)+(0x0,_0x354392[_0x2f0fa6(0x508)])(_0x545cbe['drawingType']))+'\x20'+(_0x366f83+0x1);}let _0x268ca6=(0x0,_0x36a73f['useDependency'])(_0x244243['LocaleService']),_0x4cb02c={'title':_0x268ca6['t'](_0x381b8e(0x2bf)),'empty':_0x268ca6['t']('drawing-ui.objectListPanel.empty'),'showAll':_0x268ca6['t'](_0x381b8e(0x16b)),'hideAll':_0x268ca6['t'](_0x381b8e(0x294)),'lockAll':_0x268ca6['t'](_0x381b8e(0x249)),'unlockAll':_0x268ca6['t'](_0x381b8e(0x1e3)),'moveForward':_0x268ca6['t'](_0x381b8e(0x110)),'moveBackward':_0x268ca6['t'](_0x381b8e(0x298)),'close':_0x268ca6['t']('drawing-ui.objectListPanel.close'),'show':_0x268ca6['t'](_0x381b8e(0x10b)),'hide':_0x268ca6['t'](_0x381b8e(0x196)),'lock':_0x268ca6['t'](_0x381b8e(0x1f0)),'unlock':_0x268ca6['t']('drawing-ui.objectListPanel.unlock'),'lockHint':_0x268ca6['t'](_0x381b8e(0x51b)),'unlockHint':_0x268ca6['t'](_0x381b8e(0x513)),'name':_0x268ca6['t'](_0x381b8e(0x502)),'nameInput':_0x268ca6['t'](_0x381b8e(0x354)),'description':_0x268ca6['t']('drawing-ui.objectListPanel.description'),'descriptionPlaceholder':_0x268ca6['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0x268ca6['t']('drawing-ui.objectListPanel.details'),'noSelection':_0x268ca6['t'](_0x381b8e(0x3dc)),'locate':_0x268ca6['t'](_0x381b8e(0x1f9)),'expand':_0x268ca6['t'](_0x381b8e(0x158)),'collapse':_0x268ca6['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0x268ca6['t'](_0x381b8e(0x1ec)),'search':_0x268ca6['t']('drawing-ui.objectListPanel.search'),'filterAll':_0x268ca6['t'](_0x381b8e(0x51f)),'filterHidden':_0x268ca6['t']('drawing-ui.objectListPanel.filterHidden'),'filterLocked':_0x268ca6['t'](_0x381b8e(0x254)),'sectionCanvas':_0x268ca6['t'](_0x381b8e(0x25a)),'sectionFloating':_0x268ca6['t'](_0x381b8e(0x2e9))},_0x3099f1=(0x0,_0x36a73f[_0x381b8e(0x2af)])(_0x244243[_0x381b8e(0x2d0)]),_0x1f520e=(0x0,_0x36a73f[_0x381b8e(0x2af)])(_0x244243[_0x381b8e(0x39a)]),_0x399435=(0x0,_0x36a73f['useDependency'])(_0x29aa40['ISheetDrawingService']),_0x2ba9bb=(0x0,_0x36a73f['useDependency'])(_0x43c769[_0x381b8e(0x334)]),_0x1ffd60=(0x0,_0x36a73f['useDependency'])(_0x559311[_0x381b8e(0x306)]),_0x425bb1=(0x0,_0x36a73f[_0x381b8e(0x2af)])(_0x36a73f[_0x381b8e(0x126)]),[,_0x51683c]=(0x0,_0x2ba528[_0x381b8e(0x3d8)])(_0x3a996f=>_0x3a996f+0x1,0x0),_0x4ec230=_0x1f520e['getCurrentUnitOfType'](_0x244243[_0x381b8e(0x10a)][_0x381b8e(0x127)]),_0x3c7717=(_0x4ec230==null?void 0x0:_0x4ec230[_0x381b8e(0x244)]())??'',_0x314df4=(_0x4ec230==null||(_0x165f6f=_0x4ec230[_0x381b8e(0x24a)]())==null?void 0x0:_0x165f6f[_0x381b8e(0x258)]())??'',_0x6e5b9c=(0x0,_0x36a73f[_0x381b8e(0x521)])(()=>_0x2ba9bb[_0x381b8e(0x17f)],_0x2ba9bb['getFocusDrawings'](),!0x1,[_0x2ba9bb]);(0x0,_0x2ba528[_0x381b8e(0x4a6)])(()=>{const _0x1d2837=_0x381b8e;let _0x167ef1=_0x3099f1['onCommandExecuted'](()=>_0x51683c());return()=>_0x167ef1[_0x1d2837(0x11e)]();},[_0x3099f1]);let _0x53d6c5=_0x3c7717&&_0x314df4?_0x399435['getDrawingData'](_0x3c7717,_0x314df4):{},_0x44161a=(_0x3c7717&&_0x314df4?_0x399435[_0x381b8e(0x31e)](_0x3c7717,_0x314df4):[])[_0x381b8e(0x153)](_0xd04ee6=>_0x53d6c5[_0xd04ee6])['filter'](_0x564ec6=>!!_0x564ec6)[_0x381b8e(0x22c)](),_0x4e013f=_0x44161a[_0x381b8e(0x201)]((_0x224185,_0x59a97f)=>(_0x224185[(0x0,_0x4cdb25[_0x381b8e(0x253)])(_0x59a97f['drawingType'])]+=0x1,_0x224185),{'canvas':0x0,'floating':0x0}),_0x250741={'canvas':0x0,'floating':0x0},_0x448217=_0x44161a[_0x381b8e(0x153)]((_0xdf75a,_0x26ad06)=>{const _0xf078e=_0x381b8e;let _0x242bd2=(0x0,_0x4cdb25['getObjectListPanelSectionIdForDrawingType'])(_0xdf75a['drawingType']),_0x70db4=_0x242bd2===_0x4cdb25[_0xf078e(0x389)],_0x371145=_0x250741[_0x242bd2]++;return{'id':_0xdf75a[_0xf078e(0x2b5)],'name':_0x5ecd9f(_0xdf75a,_0x26ad06,_0x268ca6),'description':_0xdf75a[_0xf078e(0x3e3)],'visible':_0xdf75a[_0xf078e(0x473)]!==!0x0,'selectable':_0xdf75a[_0xf078e(0x112)]!==!0x1,'sectionId':_0x242bd2,'sectionTitle':_0x70db4?_0x4cb02c[_0xf078e(0x452)]:_0x4cb02c[_0xf078e(0x4c8)],'capabilities':_0x70db4?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x70db4&&_0x371145>0x0,'canMoveBackward':!_0x70db4&&_0x371145<_0x4e013f[_0xf078e(0x24e)]-0x1,'canReorder':!_0x70db4};}),_0x3c34ca=(0x0,_0x2ba528[_0x381b8e(0x242)])(()=>(_0x6e5b9c??[])[_0x381b8e(0x41a)](_0x42f197=>_0x42f197[_0x381b8e(0x284)]===_0x3c7717&&_0x42f197[_0x381b8e(0x226)]===_0x314df4)['map'](_0x36f9ad=>_0x36f9ad[_0x381b8e(0x2b5)]),[_0x6e5b9c,_0x314df4,_0x3c7717]),_0x5d4e2b=_0x3c34ca[_0x3c34ca[_0x381b8e(0x225)]-0x1]??null,_0x1de745=_0x58899f=>_0x399435['getDrawingByParam']({'unitId':_0x3c7717,'subUnitId':_0x314df4,'drawingId':_0x58899f})??null,_0x1b3d8e=async _0x5074ed=>{const _0x55c4d2=_0x381b8e;_0x3c7717&&_0x5074ed[_0x55c4d2(0x225)]&&await _0x3099f1['executeCommand'](_0x29aa40[_0x55c4d2(0x3d3)]['id'],{'unitId':_0x3c7717,'drawings':_0x5074ed});},_0x3eabaf=async(_0x13e44e,_0x251559)=>{_0x1de745(_0x13e44e)&&await _0x1b3d8e([{'unitId':_0x3c7717,'subUnitId':_0x314df4,'drawingId':_0x13e44e,..._0x251559}]);},_0x1db5d4=(_0x151d46,_0x172c8a)=>{const _0x43b5fc=_0x381b8e;if(!_0x3c7717||!_0x314df4)return;let _0x517b94=_0x172c8a?_0x3c34ca[_0x43b5fc(0x420)](_0x151d46)?_0x3c34ca[_0x43b5fc(0x41a)](_0x5a2148=>_0x5a2148!==_0x151d46):[..._0x3c34ca,_0x151d46]:[_0x151d46];_0x3099f1[_0x43b5fc(0x4a7)](_0x43c769[_0x43b5fc(0x2d7)]['id'],_0x517b94[_0x43b5fc(0x153)](_0x3bf676=>({'unitId':_0x3c7717,'subUnitId':_0x314df4,'drawingId':_0x3bf676})));let _0x710d4c=_0x517b94[_0x517b94[_0x43b5fc(0x225)]-0x1];_0x710d4c?((0x0,_0x354392[_0x43b5fc(0x2f1)])(_0x1ffd60,{'unitId':_0x3c7717,'subUnitId':_0x314df4,'drawingId':_0x710d4c}),_0x425bb1['focus'](_0x3c7717)):(0x0,_0x354392[_0x43b5fc(0x328)])(_0x1ffd60,_0x3c7717);},_0x4e0d46=async(_0x1dc4c7,_0x560137)=>{const _0x378f43=_0x381b8e;await _0x1b3d8e(_0x1dc4c7[_0x378f43(0x153)](_0x23ccfc=>_0x1de745(_0x23ccfc))[_0x378f43(0x41a)](_0x1b7418=>!!_0x1b7418)[_0x378f43(0x41a)](_0x7f4006=>_0x7f4006[_0x378f43(0x473)]!==!0x0!==_0x560137)[_0x378f43(0x153)](_0x4323f9=>({'unitId':_0x3c7717,'subUnitId':_0x314df4,'drawingId':_0x4323f9[_0x378f43(0x2b5)],'hidden':!_0x560137})));},_0x174f52=async(_0x43c358,_0x2ecbac)=>{const _0x48758f=_0x381b8e;await _0x1b3d8e(_0x43c358['map'](_0x3850ad=>_0x1de745(_0x3850ad))[_0x48758f(0x41a)](_0x18d5e9=>!!_0x18d5e9)[_0x48758f(0x41a)](_0x5e5ba1=>_0x5e5ba1['selectable']!==!0x1!==_0x2ecbac)['map'](_0x2a966c=>({'unitId':_0x3c7717,'subUnitId':_0x314df4,'drawingId':_0x2a966c[_0x48758f(0x2b5)],'selectable':_0x2ecbac})));},_0x53ac29=_0x4bddd5=>{let _0x499e1f=_0x1de745(_0x4bddd5);if(_0x499e1f)return _0x174f52([_0x4bddd5],_0x499e1f['selectable']===!0x1);},_0x3c9c3f=async(_0x13140a,_0x5aca02)=>{var _0x180fde;let _0x5aa354=_0x58b145(_0x5aca02);(((_0x180fde=_0x1de745(_0x13140a))==null?void 0x0:_0x180fde['name'])??void 0x0)!==_0x5aa354&&await _0x3eabaf(_0x13140a,{'name':_0x5aa354});},_0x1c0ea8=async(_0x57377d,_0x553e11)=>{const _0x127862=_0x381b8e;var _0x1257fa;let _0x608d75=_0x58b145(_0x553e11);(((_0x1257fa=_0x1de745(_0x57377d))==null?void 0x0:_0x1257fa[_0x127862(0x3e3)])??void 0x0)!==_0x608d75&&await _0x3eabaf(_0x57377d,{'description':_0x608d75});},_0x4f4b57=async(_0x51636b,_0x7b0c63)=>{const _0x295dc5=_0x381b8e;_0x3c7717&&_0x314df4&&await _0x3099f1['executeCommand'](_0x29aa40[_0x295dc5(0x436)]['id'],{'unitId':_0x3c7717,'subUnitId':_0x314df4,'drawingIds':[_0x51636b],'arrangeType':_0x7b0c63});};return!_0x3c7717||!_0x314df4?(0x0,_0x1edb74[_0x381b8e(0x4e1)])(_0x381b8e(0x43d),{'className':_0x381b8e(0x4c5),'children':_0x4cb02c[_0x381b8e(0x2d4)]}):(0x0,_0x1edb74[_0x381b8e(0x4e1)])(_0x1558c9,{'labels':_0x4cb02c,'items':_0x448217,'selectedIds':_0x3c34ca,'focusedId':_0x5d4e2b,'showHeader':!0x1,'onSelect':_0x1db5d4,'onSetVisible':_0x4e0d46,'onSetSelectable':_0x174f52,'onCommitName':_0x3c9c3f,'onCommitDescription':_0x1c0ea8,'onMoveForward':async _0x22bbb9=>_0x4f4b57(_0x22bbb9,_0x244243['ArrangeTypeEnum'][_0x381b8e(0x22d)]),'onMoveBackward':async _0x27da38=>_0x4f4b57(_0x27da38,_0x244243[_0x381b8e(0x118)][_0x381b8e(0x4af)]),'onToggleSelectable':_0x53ac29});}function _0x1b6ebc(){const _0x3488ac=_0xa608a8;return(0x0,_0x1edb74[_0x3488ac(0x4e1)])(_0x587718,{'PanelComponent':_0x4cdb25['MobileObjectListPanel']});}let _0xb9a86c=class extends _0x244243[_0xa608a8(0x2a8)]{constructor(_0x3c4d3d,_0x382be7){const _0x180460=_0xa608a8;super(),this[_0x180460(0x322)](_0x3c4d3d[_0x180460(0x136)](_0x45b5fb,_0x1b6ebc)),this[_0x180460(0x322)](_0x382be7[_0x180460(0x136)]({'BottomIcon':_0x3142c5,'FlipHorizontalIcon':_0x392827,'FlipVerticalIcon':_0x5a9a67,'MoveDownIcon':_0x452406,'MoveUpIcon':_0x6834cf,'ObjectLayersIcon':_0xb13c02,'ShapeFormatSettingIcon':_0x3ad4d1,'TopmostIcon':_0x369e65})),this['disposeWithMe'](_0x3c4d3d[_0x180460(0x136)](_0x129fde,_0x75c06f)),this[_0x180460(0x322)](_0x3c4d3d['register'](_0x42b380,_0x38cad8)),_0x3c4d3d[_0x180460(0x510)](_0x4cdb25[_0x180460(0x50f)])||this[_0x180460(0x322)](_0x3c4d3d[_0x180460(0x136)](_0x4cdb25[_0x180460(0x50f)],_0x314f7e));}};_0xb9a86c=_0x4cddfe([_0x542dc8(0x0,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x36a73f['ComponentManager'])),_0x542dc8(0x1,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x36a73f[_0xa608a8(0x36c)]))],_0xb9a86c);let _0x4351c9=class extends _0x244243['Disposable']{constructor(_0x2ffee4){const _0x225466=_0xa608a8;super(),this[_0x225466(0x382)]=_0x2ffee4,_0x5b48d0(this,_0x225466(0x3f2),new _0x38f817['BehaviorSubject'](null)),_0x5b48d0(this,_0x225466(0x283),this[_0x225466(0x3f2)][_0x225466(0x2b9)]()),_0x5b48d0(this,'_onSavingEditorData$',new _0x38f817['BehaviorSubject'](!0x1)),_0x5b48d0(this,_0x225466(0x490),this[_0x225466(0x4ab)][_0x225466(0x2b9)]()),_0x5b48d0(this,_0x225466(0x4ba),void 0x0),this[_0x225466(0x322)](this['_permissionService'][_0x225466(0x2aa)][_0x225466(0x376)](()=>{const _0x441c75=_0x225466;let _0x5edc2a=this[_0x441c75(0x345)]();_0x5edc2a!=null&&_0x5edc2a[_0x441c75(0x24c)]&&!this[_0x441c75(0x311)](_0x5edc2a)&&this[_0x441c75(0x13e)](null);}));}[_0xa608a8(0x11e)](){const _0x4ddf32=_0xa608a8;this[_0x4ddf32(0x3ef)](),this[_0x4ddf32(0x3f2)][_0x4ddf32(0x159)](null),this[_0x4ddf32(0x3f2)]['complete'](),this['_onSavingEditorData$'][_0x4ddf32(0x159)](!0x1),this[_0x4ddf32(0x4ab)]['complete'](),super[_0x4ddf32(0x11e)]();}['setEditing'](_0x240c79){const _0x3afe4d=_0xa608a8;(_0x240c79==null||!_0x240c79[_0x3afe4d(0x24c)]||this[_0x3afe4d(0x311)](_0x240c79))&&(this[_0x3afe4d(0x3ef)](),this[_0x3afe4d(0x3f2)][_0x3afe4d(0x159)](_0x240c79),(_0x240c79==null||_0x240c79[_0x3afe4d(0x24c)]&&this[_0x3afe4d(0x4ab)][_0x3afe4d(0x1fa)]())&&this[_0x3afe4d(0x4ab)][_0x3afe4d(0x159)](!0x1));}[_0xa608a8(0x357)](_0x1694dd){const _0x4d6724=_0xa608a8;this[_0x4d6724(0x4ab)][_0x4d6724(0x159)](_0x1694dd);}[_0xa608a8(0x345)](){const _0x4e5583=_0xa608a8;return this[_0x4e5583(0x3f2)][_0x4e5583(0x1fa)]();}[_0xa608a8(0x311)](_0x171a01){const _0x29925e=_0xa608a8;let _0x4948c2=this['_permissionService'][_0x29925e(0x353)](new _0x126f61[(_0x29925e(0x32c))](_0x171a01[_0x29925e(0x284)])['id']),_0x3a9d2c=this[_0x29925e(0x382)][_0x29925e(0x353)](new _0x126f61[(_0x29925e(0x2fb))](_0x171a01['unitId'],_0x171a01[_0x29925e(0x226)])['id']);return((_0x4948c2==null?void 0x0:_0x4948c2['value'])??!0x0)&&((_0x3a9d2c==null?void 0x0:_0x3a9d2c[_0x29925e(0x496)])??!0x0);}['completeEditing'](_0x34f911){const _0x3c46cd=_0xa608a8;let _0x4ccdcf=this['getEditing']();_0x4ccdcf&&this[_0x3c46cd(0x4ba)]===void 0x0&&(this['setOnSavingEditorData'](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x47d6aa=_0x3c46cd;this['_completionFrame']=void 0x0,this[_0x47d6aa(0x345)]()===_0x4ccdcf&&this[_0x47d6aa(0x13e)](null);}));}['_clearCompletionFrame'](){const _0x125fcc=_0xa608a8;this[_0x125fcc(0x4ba)]!==void 0x0&&(cancelAnimationFrame(this[_0x125fcc(0x4ba)]),this[_0x125fcc(0x4ba)]=void 0x0);}[_0xa608a8(0x4eb)](){const _0x14c6b6=_0xa608a8;this[_0x14c6b6(0x345)]()&&this[_0x14c6b6(0x13e)](null);}};_0x4351c9=_0x4cddfe([_0x542dc8(0x0,_0x244243[_0xa608a8(0x432)])],_0x4351c9);let _0x43a94f=class extends _0x244243[_0xa608a8(0x2a8)]{constructor(_0x53cd56,_0x417c63,_0x2c2f35,_0x319082,_0x6744cc,_0x21710a){const _0x2b12d4=_0xa608a8;super(),this['_context']=_0x53cd56,this[_0x2b12d4(0x21c)]=_0x417c63,this[_0x2b12d4(0x37d)]=_0x2c2f35,this[_0x2b12d4(0x3d7)]=_0x319082,this[_0x2b12d4(0x135)]=_0x6744cc,this[_0x2b12d4(0x524)]=_0x21710a,_0x5b48d0(this,'_lastEditingShapeKey',null),this[_0x2b12d4(0x3bc)](),this[_0x2b12d4(0x40b)](),this[_0x2b12d4(0x45d)]();}['_initEvents'](){const _0x4fafd9=_0xa608a8;let {scene:_0x41ad37}=this[_0x4fafd9(0x413)];this[_0x4fafd9(0x322)](_0x41ad37[_0x4fafd9(0x41f)][_0x4fafd9(0x1ef)](_0x2c97ba=>{const _0x501e3b=_0x4fafd9;let {offsetX:_0xc8951a,offsetY:_0xc57d2}=_0x2c97ba,_0x464ca1=_0x41ad37[_0x501e3b(0x39d)](_0x559311['Vector2'][_0x501e3b(0x29d)]([_0xc8951a,_0xc57d2]));if(_0x464ca1 instanceof _0x5ee4ee){let _0x33ecb7=this[_0x501e3b(0x524)][_0x501e3b(0x335)](_0x464ca1[_0x501e3b(0x284)],_0x464ca1[_0x501e3b(0x226)],_0x464ca1[_0x501e3b(0x3d5)]);if((0x0,_0x11e0df['isConnectorShape'])(this[_0x501e3b(0x524)][_0x501e3b(0x4e2)](_0x464ca1[_0x501e3b(0x284)],_0x464ca1['subUnitId'],_0x464ca1[_0x501e3b(0x3d5)]))||_0x33ecb7!=null&&_0x33ecb7[_0x501e3b(0x169)]()[_0x501e3b(0x301)])return;this[_0x501e3b(0x37d)][_0x501e3b(0x13e)]({'visible':!0x0,'unitId':_0x464ca1[_0x501e3b(0x284)],'subUnitId':_0x464ca1['subUnitId'],'shapeId':_0x464ca1['shapeId'],'shapeKey':_0x464ca1[_0x501e3b(0x26d)]});}}));}[_0xa608a8(0x40b)](){const _0x235cf5=_0xa608a8;this[_0x235cf5(0x322)](this[_0x235cf5(0x3d7)][_0x235cf5(0x17f)][_0x235cf5(0x376)](_0x480580=>{const _0x3f981c=_0x235cf5;if(_0x480580['length']===0x1){let _0x37ac9b=_0x480580[0x0],_0x24f953=this[_0x3f981c(0x3d7)][_0x3f981c(0x462)](_0x37ac9b);if((_0x24f953==null?void 0x0:_0x24f953['drawingType'])===_0x244243[_0x3f981c(0x138)]['DRAWING_SHAPE']){var _0x3fbe5c;let _0x5165c5=this['_shapeTextEditingService'][_0x3f981c(0x345)]();if((_0x5165c5==null?void 0x0:_0x5165c5[_0x3f981c(0x3d5)])===_0x37ac9b['drawingId']&&_0x5165c5[_0x3f981c(0x24c)])return;let _0x3572fe=(0x0,_0x11e0df['isConnectorShape'])(this[_0x3f981c(0x524)][_0x3f981c(0x4e2)](_0x37ac9b['unitId'],_0x37ac9b[_0x3f981c(0x226)],_0x37ac9b[_0x3f981c(0x2b5)])),_0x1621bb=!!((_0x3fbe5c=this['_sheetsShapeService'][_0x3f981c(0x335)](_0x37ac9b[_0x3f981c(0x284)],_0x37ac9b[_0x3f981c(0x226)],_0x37ac9b[_0x3f981c(0x2b5)]))!=null&&_0x3fbe5c[_0x3f981c(0x169)]()[_0x3f981c(0x301)]);(_0x3572fe||_0x1621bb)&&this[_0x3f981c(0x37d)][_0x3f981c(0x13e)](null);}else this[_0x3f981c(0x37d)][_0x3f981c(0x333)]();}else this[_0x3f981c(0x37d)][_0x3f981c(0x333)]();})),this[_0x235cf5(0x322)](this['_drawingManagerService'][_0x235cf5(0x1d5)][_0x235cf5(0x376)](_0x1d1b33=>{const _0x4c2b56=_0x235cf5;let _0x29bc67=this[_0x4c2b56(0x37d)]['getEditing']();_0x29bc67&&_0x1d1b33[_0x4c2b56(0x38c)](_0x5643a5=>_0x5643a5[_0x4c2b56(0x2b5)]===_0x29bc67[_0x4c2b56(0x3d5)])&&this[_0x4c2b56(0x37d)]['setEditing'](null);}));}[_0xa608a8(0x45d)](){const _0x29aaca=_0xa608a8;this[_0x29aaca(0x322)](this[_0x29aaca(0x37d)]['editingParams$'][_0x29aaca(0x376)](_0x48fc9d=>{const _0x314695=_0x29aaca;let {scene:_0x1e60f4}=this[_0x314695(0x413)];if(this[_0x314695(0x34f)]){let _0x36c8e4=_0x1e60f4['getObjectIncludeInGroup'](this[_0x314695(0x34f)]);_0x36c8e4&&_0x36c8e4[_0x314695(0x13e)](!0x1);}if(_0x48fc9d){let _0x36ecab=!!_0x48fc9d['visible'],_0x4ec542=_0x1e60f4['getObjectIncludeInGroup'](_0x48fc9d[_0x314695(0x468)]);_0x4ec542&&(_0x4ec542[_0x314695(0x13e)](_0x36ecab),this[_0x314695(0x34f)]=_0x48fc9d[_0x314695(0x468)]),this[_0x314695(0x135)][_0x314695(0x471)](_0x244243[_0x314695(0x349)],_0x36ecab);}else this[_0x314695(0x34f)]=null,this['_contextService'][_0x314695(0x471)](_0x244243['FOCUSING_SHAPE_TEXT_EDITOR'],!0x1);}));}};_0x43a94f=_0x4cddfe([_0x542dc8(0x1,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x244243['Injector'])),_0x542dc8(0x2,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x4351c9)),_0x542dc8(0x3,_0x43c769['IDrawingManagerService']),_0x542dc8(0x4,_0x244243[_0xa608a8(0x2a4)]),_0x542dc8(0x5,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0xb19349['SheetsShapeService']))],_0x43a94f);var _0x25d7c4=class extends _0x43a94f{[_0xa608a8(0x3bc)](){const _0x3da7a1=_0xa608a8;let {scene:_0x31ecb5}=this[_0x3da7a1(0x413)],_0x2c3f49=this[_0x3da7a1(0x21c)][_0x3da7a1(0x20b)](_0x354392[_0x3da7a1(0x155)]);this[_0x3da7a1(0x322)](_0x31ecb5['onDblclick$'][_0x3da7a1(0x1ef)](_0x23f891=>{const _0x1fa743=_0x3da7a1;let {offsetX:_0x18116a,offsetY:_0x362c58}=_0x23f891,_0x328845=_0x31ecb5[_0x1fa743(0x39d)](_0x559311[_0x1fa743(0x520)][_0x1fa743(0x29d)]([_0x18116a,_0x362c58]));if(!(_0x328845 instanceof _0x5ee4ee))return;let _0x7af74f=this[_0x1fa743(0x524)][_0x1fa743(0x335)](_0x328845['unitId'],_0x328845[_0x1fa743(0x226)],_0x328845[_0x1fa743(0x3d5)]);(0x0,_0x11e0df[_0x1fa743(0x42a)])(this[_0x1fa743(0x524)][_0x1fa743(0x4e2)](_0x328845['unitId'],_0x328845[_0x1fa743(0x226)],_0x328845['shapeId']))||_0x7af74f!=null&&_0x7af74f[_0x1fa743(0x169)]()[_0x1fa743(0x301)]||_0x2c3f49[_0x1fa743(0x4f9)]('text',{'hostType':_0x244243[_0x1fa743(0x10a)][_0x1fa743(0x127)],'unitId':_0x328845['unitId'],'subUnitId':_0x328845['subUnitId'],'shapeId':_0x328845[_0x1fa743(0x3d5)]});}));}};let _0x59cb0f={..._0x234d9b},_0x5de74d=class extends _0x244243[_0xa608a8(0x2a8)]{constructor(_0x1faa56,_0x5c9263,_0x3dcf49,_0x3e0f3c,_0x89db2d,_0x349f94,_0x2c0a68,_0x7e7c60){const _0x3c3879=_0xa608a8;super(),this['_menuManagerService']=_0x1faa56,this['_sheetsShapeService']=_0x5c9263,this[_0x3c3879(0x480)]=_0x3dcf49,this[_0x3c3879(0x3d7)]=_0x3e0f3c,this[_0x3c3879(0x52b)]=_0x89db2d,this['_contextService']=_0x349f94,this[_0x3c3879(0x23d)]=_0x2c0a68,this[_0x3c3879(0x37d)]=_0x7e7c60,_0x5b48d0(this,_0x3c3879(0x4a0),null),this[_0x3c3879(0x2a2)][_0x3c3879(0x4e5)](_0x59cb0f),this[_0x3c3879(0x109)](),this[_0x3c3879(0x322)](this[_0x3c3879(0x37d)]['editingParams$']['subscribe'](_0x10b66c=>{const _0x3314e0=_0x3c3879;_0x10b66c&&this[_0x3314e0(0x4c0)]();}));}['initShapePopupMenu'](){const _0x30f727=_0xa608a8;this['_shapePopupMenuDisposable']||=this[_0x30f727(0x322)]((0x0,_0x354392[_0x30f727(0x151)])(this[_0x30f727(0x23d)],_0x244243[_0x30f727(0x10a)]['UNIVER_SHEET'],_0x19efb8=>this[_0x30f727(0x2fd)](_0x19efb8)));}['_registerFeatureMenu'](){const _0x5d4d9a=_0xa608a8;this[_0x5d4d9a(0x52b)][_0x5d4d9a(0x37f)](_0x244243[_0x5d4d9a(0x138)][_0x5d4d9a(0x4e9)],(_0x5870fd,_0xbebfd1,_0x19e9de,_0x585cc0)=>{const _0xaa76d3=_0x5d4d9a;let _0x1d428d=this[_0xaa76d3(0x524)][_0xaa76d3(0x1d2)](_0x5870fd,_0xbebfd1,_0x19e9de),_0x3dc62c=this[_0xaa76d3(0x524)][_0xaa76d3(0x257)](_0x5870fd,_0xbebfd1,_0x19e9de),_0x2b1f21=_0x1d428d!==void 0x0&&!(0x0,_0x11e0df[_0xaa76d3(0x42a)])(_0x1d428d)&&!(_0x3dc62c!=null&&_0x3dc62c[_0xaa76d3(0x301)]);return[{'label':_0xaa76d3(0x163),'index':0x0,'commandId':_0x6fb12a['id'],'commandParams':{'unitId':_0x5870fd,'subUnitId':_0xbebfd1,'drawingId':_0x19e9de,'mode':_0xaa76d3(0x405)},'disable':!0x1},..._0x2b1f21?[{'label':'sheets-shape-ui.editText','index':0x1,'commandId':_0x6fb12a['id'],'commandParams':{'unitId':_0x5870fd,'subUnitId':_0xbebfd1,'drawingId':_0x19e9de,'mode':_0xaa76d3(0x4de)},'disable':!0x1}]:[],{'label':'sheets-shape-ui.deleteShape','index':0x2,'commandId':_0x29aa40[_0xaa76d3(0x50b)]['id'],'commandParams':{'unitId':_0x5870fd,'drawings':[{'unitId':_0x5870fd,'subUnitId':_0xbebfd1,'drawingId':_0x19e9de,'drawingType':_0x585cc0}]},'disable':!0x1},{'label':_0xaa76d3(0x449),'index':0x3,'commandId':_0xb19349[_0xaa76d3(0x44b)]['id'],'commandParams':{'unitId':_0x5870fd,'subUnitId':_0xbebfd1,'shapeId':_0x19e9de,'flipH':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.flipVertical','index':0x4,'commandId':_0xb19349['ToggleSheetsShapeFlipCommand']['id'],'commandParams':{'unitId':_0x5870fd,'subUnitId':_0xbebfd1,'shapeId':_0x19e9de,'flipV':!0x0},'disable':!0x1}];},_0x5d4d9a(0x48c));}[_0xa608a8(0x2fd)](_0x4db3d5){const _0x2f2e1f=_0xa608a8;let _0xeb4ebd=new _0x244243['DisposableCollection'](),_0x45a094=null,_0x1aae8b=()=>{const _0x2ed04c=_0x286e;if(!_0x45a094)return;let _0x40651c=this[_0x2ed04c(0x3d7)][_0x2ed04c(0x305)](),_0x205967=_0x40651c[_0x2ed04c(0x225)]===0x0||_0x40651c[_0x2ed04c(0x225)]===0x1&&_0x40651c[_0x2ed04c(0x38c)](_0x19aace=>_0x19aace['unitId']===(_0x45a094==null?void 0x0:_0x45a094['unitId'])&&_0x19aace[_0x2ed04c(0x226)]===(_0x45a094==null?void 0x0:_0x45a094[_0x2ed04c(0x226)])&&_0x19aace[_0x2ed04c(0x2b5)]===(_0x45a094==null?void 0x0:_0x45a094[_0x2ed04c(0x2b5)]));_0x45a094=null,_0x205967&&(this[_0x2ed04c(0x135)][_0x2ed04c(0x471)](_0x244243[_0x2ed04c(0x167)],!0x1),this[_0x2ed04c(0x3d7)][_0x2ed04c(0x264)](null));};return _0xeb4ebd[_0x2f2e1f(0x488)](_0x4db3d5[_0x2f2e1f(0x1bc)][_0x2f2e1f(0x376)](()=>{const _0x3958bf=_0x2f2e1f;let _0x438cf0=_0x4db3d5[_0x3958bf(0x18c)]();if(_0x438cf0[_0x3958bf(0x13f)]>0x1){_0x1aae8b();return;}let _0x2a74f0=_0x438cf0[_0x3958bf(0x48d)]()['next']()['value'];if(!_0x2a74f0){_0x1aae8b();return;}let _0x2f5ad5=this[_0x3958bf(0x3d7)][_0x3958bf(0x1c3)](_0x2a74f0['oKey']);if(!_0x2f5ad5||_0x2f5ad5['drawingType']!==_0x244243[_0x3958bf(0x138)][_0x3958bf(0x4e9)]){_0x1aae8b();return;}let {unitId:_0x5d9157,subUnitId:_0x5863a7,drawingId:_0x471545}=_0x2f5ad5;_0x45a094={'unitId':_0x5d9157,'subUnitId':_0x5863a7,'drawingId':_0x471545},this['_contextService'][_0x3958bf(0x471)](_0x244243['FOCUSING_COMMON_DRAWINGS'],!0x0),this['_drawingManagerService'][_0x3958bf(0x305)]()[_0x3958bf(0x3c7)](_0x4629b6=>_0x4629b6[_0x3958bf(0x284)]===_0x5d9157&&_0x4629b6['subUnitId']===_0x5863a7&&_0x4629b6[_0x3958bf(0x2b5)]===_0x471545)||this['_drawingManagerService'][_0x3958bf(0x264)]([{'unitId':_0x5d9157,'subUnitId':_0x5863a7,'drawingId':_0x471545}]);})),_0xeb4ebd[_0x2f2e1f(0x488)](_0x4db3d5[_0x2f2e1f(0x24f)][_0x2f2e1f(0x376)](()=>{_0x1aae8b();})),(0x0,_0x244243[_0x2f2e1f(0x45a)])(()=>{const _0x10561b=_0x2f2e1f;_0xeb4ebd[_0x10561b(0x11e)](),_0x1aae8b();});}['_clearFocusedShape'](){const _0x385327=_0xa608a8;this[_0x385327(0x135)]['setContextValue'](_0x244243['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x385327(0x3d7)][_0x385327(0x264)](null);}};_0x5de74d=_0x4cddfe([_0x542dc8(0x0,_0x36a73f[_0xa608a8(0x162)]),_0x542dc8(0x1,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0xb19349['SheetsShapeService'])),_0x542dc8(0x2,_0x244243[_0xa608a8(0x2d0)]),_0x542dc8(0x3,_0x43c769[_0xa608a8(0x334)]),_0x542dc8(0x4,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x180b4c[_0xa608a8(0x33a)])),_0x542dc8(0x5,_0x244243[_0xa608a8(0x2a4)]),_0x542dc8(0x6,_0x559311[_0xa608a8(0x306)]),_0x542dc8(0x7,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x4351c9))],_0x5de74d);function _0x3e65ee(_0x258075,_0x586454,_0x307dd4,_0x56fe9c){const _0x110844=_0xa608a8;let _0xc28382=(0x0,_0x43c769[_0x110844(0x355)])(_0x258075,_0x586454,_0x307dd4),_0x20865b=[];for(let _0x6d6b76 of _0x586454){let _0x31016e=_0xc28382[_0x110844(0x47b)][_0x110844(0x20b)](_0x6d6b76[_0x110844(0x2b5)]),_0x34a7bc=_0x56fe9c(_0x6d6b76);_0x31016e&&_0x34a7bc&&_0x20865b[_0x110844(0x313)]({'targetShapeId':_0x31016e,'source':_0x34a7bc});}return _0x20865b;}let _0x1a879a=class extends _0x244243[_0xa608a8(0x2a8)]{constructor(_0x5ed052,_0x54a9d2,_0xc805c9,_0x3979cf){const _0x5aa6e0=_0xa608a8;super(),this[_0x5aa6e0(0x1e8)]=_0x5ed052,this['_sheetInterceptorService']=_0x54a9d2,this[_0x5aa6e0(0x401)]=_0xc805c9,this[_0x5aa6e0(0x524)]=_0x3979cf,this[_0x5aa6e0(0x3fc)]();}[_0xa608a8(0x3fc)](){const _0x1b88bc=_0xa608a8;this[_0x1b88bc(0x322)](this[_0x1b88bc(0x433)][_0x1b88bc(0x484)]({'getMutations':_0x42e56d=>{const _0x5238cc=_0x1b88bc;if(_0x42e56d['id']===_0x126f61[_0x5238cc(0x132)]['id']){let _0x224b9b=(0x0,_0x126f61[_0x5238cc(0x4f6)])(this[_0x5238cc(0x1e8)],_0x42e56d[_0x5238cc(0x131)]);if(!_0x224b9b)return{'redos':[],'undos':[]};let {unitId:_0x4b2f78,subUnitId:_0x5ba07a}=_0x224b9b,_0x1311b6=this['_sheetDrawingService'][_0x5238cc(0x19e)](_0x4b2f78,_0x5ba07a),_0x5f16c0=Object['values'](_0x1311b6)[_0x5238cc(0x41a)](_0x23c4f4=>_0x23c4f4['drawingType']===_0x244243[_0x5238cc(0x138)]['DRAWING_SHAPE']);if(_0x5f16c0[_0x5238cc(0x225)]===0x0)return{'redos':[],'undos':[]};let _0x45e6ac=[],_0x538ab8=[];for(let _0x11880c=0x0;_0x11880c<_0x5f16c0[_0x5238cc(0x225)];_0x11880c++){let _0x25c96b=_0x5f16c0[_0x11880c],_0x360c5d=this[_0x5238cc(0x524)][_0x5238cc(0x335)](_0x25c96b[_0x5238cc(0x284)],_0x25c96b['subUnitId'],_0x25c96b[_0x5238cc(0x2b5)]);_0x360c5d&&(_0x45e6ac['push']({'id':_0xb19349['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x4b2f78,'subUnitId':_0x5ba07a,'shapeId':_0x25c96b['drawingId']}}),_0x538ab8['push']({'id':_0xb19349[_0x5238cc(0x4da)]['id'],'params':{'unitId':_0x4b2f78,'subUnitId':_0x5ba07a,'shapeId':_0x25c96b[_0x5238cc(0x2b5)],'shapeType':_0x360c5d['getShapeType'](),'shapeData':JSON[_0x5238cc(0x383)](JSON[_0x5238cc(0x329)](_0x360c5d[_0x5238cc(0x169)]()))}}));}return{'redos':_0x45e6ac,'undos':_0x538ab8};}if(_0x42e56d['id']===_0x126f61['CopySheetCommand']['id']){let {unitId:_0x4ff614,subUnitId:_0x2e30de,targetSubUnitId:_0x3bb1e6,copyContext:_0x18e433}=_0x42e56d[_0x5238cc(0x131)];if(!_0x4ff614||!_0x2e30de||!_0x3bb1e6)return{'redos':[],'undos':[]};let _0x4150ef=this['_sheetDrawingService'][_0x5238cc(0x19e)](_0x4ff614,_0x2e30de),_0x5c5904=Object[_0x5238cc(0x48d)](_0x4150ef)[_0x5238cc(0x41a)](_0x57227b=>_0x57227b[_0x5238cc(0x351)]===_0x244243['DrawingTypeEnum'][_0x5238cc(0x4e9)]);if(_0x5c5904['length']===0x0)return{'redos':[],'undos':[]};let _0x4e1a16=_0x3e65ee(_0x18e433,_0x5c5904,{'unitId':_0x4ff614,'sourceSubUnitId':_0x2e30de,'targetSubUnitId':_0x3bb1e6},_0x2286f4=>{const _0x2ede85=_0x5238cc;let _0x1e742c=this[_0x2ede85(0x524)][_0x2ede85(0x335)](_0x2286f4[_0x2ede85(0x284)],_0x2286f4[_0x2ede85(0x226)],_0x2286f4[_0x2ede85(0x2b5)]);if(_0x1e742c)return{'shapeType':_0x1e742c['getShapeType'](),'shapeData':JSON[_0x2ede85(0x383)](JSON['stringify'](_0x1e742c['getShapeData']()))};}),_0x2d2d21=[],_0x4a3f00=[];for(let {targetShapeId:_0x35e784,source:_0x1b4fc7}of _0x4e1a16)_0x2d2d21[_0x5238cc(0x313)]({'id':_0xb19349['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x4ff614,'subUnitId':_0x3bb1e6,'shapeId':_0x35e784,'shapeType':_0x1b4fc7[_0x5238cc(0x1ee)],'shapeData':_0x1b4fc7['shapeData']}}),_0x4a3f00[_0x5238cc(0x313)]({'id':_0xb19349[_0x5238cc(0x2b4)]['id'],'params':{'unitId':_0x4ff614,'subUnitId':_0x3bb1e6,'shapeId':_0x35e784}});return{'redos':_0x2d2d21,'undos':_0x4a3f00};}return{'redos':[],'undos':[]};}}));}};_0x1a879a=_0x4cddfe([_0x542dc8(0x0,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x244243[_0xa608a8(0x39a)])),_0x542dc8(0x1,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x126f61[_0xa608a8(0x193)])),_0x542dc8(0x2,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x29aa40[_0xa608a8(0x2fe)])),_0x542dc8(0x3,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0xb19349[_0xa608a8(0x439)]))],_0x1a879a);let _0x4304cd=class extends _0x244243['Disposable']{constructor(_0x1a7853,_0xcd6015,_0x5998ed,_0x360a07,_0x4c04ef,_0x4aeb3c){const _0x5c532d=_0xa608a8;super(),this['_commandService']=_0x1a7853,this[_0x5c532d(0x23d)]=_0xcd6015,this[_0x5c532d(0x3d7)]=_0x5998ed,this['_currentUniverService']=_0x360a07,this[_0x5c532d(0x1e6)]=_0x4c04ef,this[_0x5c532d(0x2f7)]=_0x4aeb3c,_0x5b48d0(this,_0x5c532d(0x45b),new Set()),this[_0x5c532d(0x451)]();}[_0xa608a8(0x451)](){const _0x252e43=_0xa608a8;this['_drawingAddListener'](),this[_0x252e43(0x1dd)](),this[_0x252e43(0x504)]();}[_0xa608a8(0x390)](){const _0x33c03b=_0xa608a8;this[_0x33c03b(0x322)](this[_0x33c03b(0x3d7)][_0x33c03b(0x1b0)][_0x33c03b(0x376)](_0x3768cc=>{this['_insertShapes'](_0x3768cc);}));}['_commandExecutedListener'](){const _0x3295a9=_0xa608a8;this[_0x3295a9(0x322)](this['_commandService'][_0x3295a9(0x380)]((_0x2dca34,_0x15af19)=>{const _0x27da6c=_0x3295a9;if(_0x2dca34['id']===_0xb19349[_0x27da6c(0x35d)]['id']){let {unitId:_0x556cae,subUnitId:_0x2763c2,shapeId:_0x378561}=_0x2dca34[_0x27da6c(0x131)],_0x1cd7e5=this[_0x27da6c(0x30b)](_0x556cae),_0x52aaf7=(0x0,_0x43c769[_0x27da6c(0x280)])({'unitId':_0x556cae,'subUnitId':_0x2763c2,'drawingId':_0x378561}),_0x4f11a3=_0x1cd7e5==null?void 0x0:_0x1cd7e5['scene'][_0x27da6c(0x47f)](_0x52aaf7);_0x4f11a3&&(this[_0x27da6c(0x2f7)][_0x27da6c(0x4f1)](_0x4f11a3),this[_0x27da6c(0x2f7)][_0x27da6c(0x336)](_0x4f11a3,{'unitId':_0x556cae,'subUnitId':_0x2763c2,'shapeId':_0x378561}),_0x4f11a3[_0x27da6c(0x476)](!0x0));}else{if(_0x2dca34['id']===_0xb19349[_0x27da6c(0x4da)]['id']){var _0x1cb28c;let {unitId:_0x139ca4,subUnitId:_0x27c2a7,shapeId:_0x7c5aec}=_0x2dca34[_0x27da6c(0x131)],_0x2f6161=this['_getSceneAndTransformerByDrawingSearch'](_0x139ca4);if(_0x2f6161==null)return;let {scene:_0x433070}=_0x2f6161,_0x29d0bf=(0x0,_0x43c769[_0x27da6c(0x280)])({'unitId':_0x139ca4,'subUnitId':_0x27c2a7,'drawingId':_0x7c5aec}),_0x4e9d7c=_0x433070['getObjectIncludeInGroup'](_0x29d0bf);if(!((_0x1cb28c=this[_0x27da6c(0x23d)][_0x27da6c(0x236)](_0x139ca4))!=null&&_0x1cb28c[_0x27da6c(0x3cf)](_0x180b4c[_0x27da6c(0x23a)])[_0x27da6c(0x34d)](_0x27c2a7)))return!0x1;if(_0x4e9d7c)return;if(_0x15af19!=null&&_0x15af19['fromChangeset']){queueMicrotask(()=>{const _0x1d0c00=_0x27da6c;this[_0x1d0c00(0x34e)]||this[_0x1d0c00(0x211)]([{'unitId':_0x139ca4,'subUnitId':_0x27c2a7,'drawingId':_0x7c5aec}]);});return;}this['_insertShapes']([{'unitId':_0x139ca4,'subUnitId':_0x27c2a7,'drawingId':_0x7c5aec}]);}}}));}['_shapeUpdateListener'](){const _0x40e2ce=_0xa608a8;this[_0x40e2ce(0x322)](this['_drawingManagerService'][_0x40e2ce(0x1ad)]['subscribe'](_0x495eb1=>{const _0x1b788b=_0x40e2ce;_0x495eb1[_0x1b788b(0x2ce)](_0x127007=>{const _0x29b03e=_0x1b788b;let {unitId:_0x380f8c,subUnitId:_0x1ef512,drawingId:_0x28dc57}=_0x127007,_0x43eebc=this['_drawingManagerService'][_0x29b03e(0x462)](_0x127007);if(_0x43eebc==null)return;let {transform:_0xd9b0b3,drawingType:_0x3a6d7f,srcRect:_0x257e25,prstGeom:_0x363d19}=_0x43eebc;if(_0x3a6d7f!==_0x244243[_0x29b03e(0x138)][_0x29b03e(0x4e9)])return;let _0x59a13f=this[_0x29b03e(0x30b)](_0x380f8c);if(_0x59a13f==null)return;let {scene:_0x4fe8cc,transformer:_0x32e89c}=_0x59a13f;if(_0xd9b0b3==null)return!0x0;let _0x29115e=(0x0,_0x43c769['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x380f8c,'subUnitId':_0x1ef512,'drawingId':_0x28dc57}),_0x18a65d=_0x4fe8cc[_0x29b03e(0x47f)](_0x29115e);if(_0x18a65d==null)return!0x0;_0x18a65d[_0x29b03e(0x15d)](_0x257e25),_0x18a65d['setPrstGeom'](_0x363d19);});}));}[_0xa608a8(0x211)](_0x44f131){const _0x5148c7=_0xa608a8;for(let _0x237bb3 of _0x44f131){var _0x99219d;let {unitId:_0x5ad9cf,subUnitId:_0x370b2e,drawingId:_0x94cae2}=_0x237bb3,_0x48e0fd=this[_0x5148c7(0x30b)](_0x5ad9cf),_0x21108b=(_0x99219d=(0x0,_0x4cdb25['getCurrentUnitInfo'])(this[_0x5148c7(0x1f2)],_0x5ad9cf))==null?void 0x0:_0x99219d[_0x5148c7(0x226)];if(_0x48e0fd==null||_0x21108b!==_0x370b2e)continue;let _0x26d379=(0x0,_0x43c769['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x5ad9cf,'subUnitId':_0x370b2e,'drawingId':_0x94cae2});if(this[_0x5148c7(0x45b)][_0x5148c7(0x2e5)](_0x26d379)||_0x48e0fd[_0x5148c7(0x419)][_0x5148c7(0x47f)](_0x26d379)!=null)continue;let _0x3c9788=this[_0x5148c7(0x3d7)][_0x5148c7(0x462)](_0x237bb3);if(_0x3c9788==null||_0x3c9788[_0x5148c7(0x351)]!==_0x244243[_0x5148c7(0x138)]['DRAWING_SHAPE'])continue;let _0x3f679b=_0x3c9788[_0x5148c7(0x3d6)]||{};if((0x0,_0x11e0df[_0x5148c7(0x42a)])(_0x3f679b[_0x5148c7(0x1ee)])){let _0x348936=_0x3c9788[_0x5148c7(0x31b)];_0x348936&&(_0x3c9788[_0x5148c7(0x31b)]={..._0x348936,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x5148c7(0x45b)][_0x5148c7(0x488)](_0x26d379);try{this[_0x5148c7(0x2f7)][_0x5148c7(0x3de)](_0x3c9788,_0x48e0fd[_0x5148c7(0x419)]);}finally{this['_insertingShapeKeys']['delete'](_0x26d379);}queueMicrotask(()=>{const _0x2dd5b0=_0x5148c7;if(this[_0x2dd5b0(0x34e)])return;let _0xefcae9=(0x0,_0x43c769['getDrawingShapeKeyByDrawingSearch'])(_0x237bb3);if(!_0x48e0fd[_0x2dd5b0(0x419)][_0x2dd5b0(0x47f)](_0xefcae9))return;let _0x4c1780=this[_0x2dd5b0(0x3d7)][_0x2dd5b0(0x462)](_0x237bb3);_0x4c1780&&this[_0x2dd5b0(0x3d7)][_0x2dd5b0(0x499)]([_0x4c1780]);});}}[_0xa608a8(0x30b)](_0x44bede){const _0x32b122=_0xa608a8;if(_0x44bede==null)return;let _0x18dfa2=this['_renderManagerService'][_0x32b122(0x236)](_0x44bede),_0x1f40be=_0x18dfa2==null?void 0x0:_0x18dfa2[_0x32b122(0x419)];return _0x1f40be==null?null:{'scene':_0x1f40be,'transformer':_0x1f40be[_0x32b122(0x3a4)]()};}};_0x4304cd=_0x4cddfe([_0x542dc8(0x0,_0x244243[_0xa608a8(0x2d0)]),_0x542dc8(0x1,_0x559311[_0xa608a8(0x306)]),_0x542dc8(0x2,_0x43c769['IDrawingManagerService']),_0x542dc8(0x3,_0x244243['IUniverInstanceService']),_0x542dc8(0x4,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x4cdb25[_0xa608a8(0x1c6)])),_0x542dc8(0x5,(0x0,_0x244243['Inject'])(_0x4f6784))],_0x4304cd);let _0x4f6e22={'normal':{'fill':_0x11e0df[_0xa608a8(0x4bb)]['cxnPointFill'],'stroke':_0x11e0df['ShapeDefaultConfig'][_0xa608a8(0x361)],'strokeWidth':_0x11e0df[_0xa608a8(0x4bb)][_0xa608a8(0x375)]},'highlighted':{'fill':_0xa608a8(0x125),'stroke':'#1a73e8','strokeWidth':0x2}};var _0xd942a4=class extends _0x559311[_0xa608a8(0x115)]{constructor(_0x4f7f71,_0xb1f4a5){const _0x31a8b2=_0xa608a8;super(_0x4f7f71,_0xb1f4a5),_0x5b48d0(this,_0x31a8b2(0x3fa),''),_0x5b48d0(this,_0x31a8b2(0x304),-0x1),_0x5b48d0(this,'_unitId',''),_0x5b48d0(this,_0x31a8b2(0x2f5),''),_0x5b48d0(this,_0x31a8b2(0x3b4),!0x1),_0xb1f4a5&&this['setShapeProps'](_0xb1f4a5);}[_0xa608a8(0x4f0)](){const _0x2de2ee=_0xa608a8;return{'unitId':this[_0x2de2ee(0x2e3)],'subUnitId':this[_0x2de2ee(0x2f5)],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0x2de2ee(0x304)]};}[_0xa608a8(0x327)](_0x20709a){const _0x35531b=_0xa608a8;this[_0x35531b(0x3b4)]!==_0x20709a&&(this[_0x35531b(0x3b4)]=_0x20709a,this['makeDirty'](!0x0));}[_0xa608a8(0x399)](){const _0x57216e=_0xa608a8;return this[_0x57216e(0x3b4)];}[_0xa608a8(0x426)](_0x79b1b6){const _0x451473=_0xa608a8;_0x79b1b6[_0x451473(0x498)]!==void 0x0&&(this[_0x451473(0x3fa)]=_0x79b1b6[_0x451473(0x498)]),_0x79b1b6[_0x451473(0x4a9)]!==void 0x0&&(this[_0x451473(0x304)]=_0x79b1b6['cxnIndex']),_0x79b1b6['unitId']!==void 0x0&&(this[_0x451473(0x2e3)]=_0x79b1b6[_0x451473(0x284)]),_0x79b1b6[_0x451473(0x226)]!==void 0x0&&(this['_subUnitId']=_0x79b1b6['subUnitId']),_0x79b1b6[_0x451473(0x399)]!==void 0x0&&(this['_isHighlighted']=_0x79b1b6['isHighlighted']),this['transformByState']({'width':_0x79b1b6[_0x451473(0x302)]??_0x11e0df['ShapeDefaultConfig']['cxnPointRadius']*0x2,'height':_0x79b1b6[_0x451473(0x474)]??_0x11e0df[_0x451473(0x4bb)][_0x451473(0x128)]*0x2});}[_0xa608a8(0x4cf)](_0x3c5ea4){const _0x2b9dca=_0xa608a8;let _0x1ad1c8=this[_0x2b9dca(0x3b4)]?_0x4f6e22[_0x2b9dca(0x4bc)]:_0x4f6e22['normal'];_0x559311['Circle'][_0x2b9dca(0x2ed)](_0x3c5ea4,{'radius':_0x11e0df[_0x2b9dca(0x4bb)][_0x2b9dca(0x128)],'fill':_0x1ad1c8[_0x2b9dca(0x1c1)],'stroke':_0x1ad1c8['stroke'],'strokeWidth':_0x1ad1c8[_0x2b9dca(0x440)],'evented':!0x0});}};let _0x582783=class extends _0x244243[_0xa608a8(0x2a8)]{constructor(_0x17c33d,_0x366e55,_0x42b444,_0x4dc991){const _0x2156f9=_0xa608a8;super(),this[_0x2156f9(0x413)]=_0x17c33d,this[_0x2156f9(0x23d)]=_0x366e55,this[_0x2156f9(0x3d7)]=_0x42b444,this['_sheetsShapeService']=_0x4dc991,_0x5b48d0(this,'_connectionSiteObjects',[]),_0x5b48d0(this,_0x2156f9(0x3ce),null),_0x5b48d0(this,_0x2156f9(0x161),-0x1),_0x5b48d0(this,_0x2156f9(0x3d9),null),_0x5b48d0(this,'_unitId',''),_0x5b48d0(this,_0x2156f9(0x2f5),''),_0x5b48d0(this,'_draggingConnectorId',null);}[_0xa608a8(0x1fe)](_0x53560f,_0x1ea347,_0x4ad7b6,_0x359741){const _0x3addd0=_0xa608a8;this[_0x3addd0(0x3d9)]=_0x53560f,this[_0x3addd0(0x2e3)]=_0x1ea347,this[_0x3addd0(0x2f5)]=_0x4ad7b6,this[_0x3addd0(0x18f)]=_0x359741;}[_0xa608a8(0x119)](_0x2bc959){const _0x555b6a=_0xa608a8;if(!this[_0x555b6a(0x3d9)])return null;let _0x1aae23=this[_0x555b6a(0x1ea)](_0x2bc959);return _0x1aae23?(this[_0x555b6a(0x3ce)]!==_0x1aae23[_0x555b6a(0x3d5)]&&(this[_0x555b6a(0x3f7)](),this[_0x555b6a(0x3ff)](_0x1aae23[_0x555b6a(0x3d5)],_0x1aae23[_0x555b6a(0x278)]),this[_0x555b6a(0x3ce)]=_0x1aae23[_0x555b6a(0x3d5)]),this[_0x555b6a(0x1f1)](_0x2bc959)):(this[_0x555b6a(0x3ce)]!==null&&(this[_0x555b6a(0x3f7)](),this[_0x555b6a(0x3ce)]=null),null);}[_0xa608a8(0x456)](){const _0x5935bf=_0xa608a8;this[_0x5935bf(0x3f7)](),this[_0x5935bf(0x3d9)]=null,this[_0x5935bf(0x3ce)]=null,this[_0x5935bf(0x161)]=-0x1,this[_0x5935bf(0x18f)]=null;}[_0xa608a8(0x529)](){const _0x1e2378=_0xa608a8;return this[_0x1e2378(0x3ce)]===null||this[_0x1e2378(0x161)]<0x0?null:{'shapeId':this[_0x1e2378(0x3ce)],'cxnIndex':this[_0x1e2378(0x161)]};}[_0xa608a8(0x1ea)](_0x34818d){const _0x35052b=_0xa608a8;let _0x199493=this['_drawingManagerService'][_0x35052b(0x19e)](this[_0x35052b(0x2e3)],this[_0x35052b(0x2f5)]);for(let _0x351575 of Object['keys'](_0x199493)){if(_0x351575===this[_0x35052b(0x18f)]||_0x199493[_0x351575][_0x35052b(0x351)]!==_0x244243[_0x35052b(0x138)][_0x35052b(0x4e9)])continue;let _0x291cc8=this[_0x35052b(0x524)][_0x35052b(0x335)](this[_0x35052b(0x2e3)],this[_0x35052b(0x2f5)],_0x351575);if(!_0x291cc8||(0x0,_0x11e0df[_0x35052b(0x42a)])(_0x291cc8[_0x35052b(0x4e2)]())||_0x291cc8[_0x35052b(0x35e)]()[_0x35052b(0x225)]===0x0||!this['_currentScene'])continue;let _0x1c9485=(0x0,_0x43c769[_0x35052b(0x280)])({'unitId':this[_0x35052b(0x2e3)],'subUnitId':this[_0x35052b(0x2f5)],'drawingId':_0x351575}),_0x462a7d=this[_0x35052b(0x3d9)]['getObjectIncludeInGroup'](_0x1c9485);if(!_0x462a7d)continue;let {left:_0x407de4,top:_0x19b487,width:_0x13ce71,height:_0x245c12}=_0x462a7d[_0x35052b(0x40c)](),_0x3ebf4b=_0x407de4+_0x13ce71/0x2,_0x3ac618=_0x19b487+_0x245c12/0x2,_0x4373bc=_0x462a7d[_0x35052b(0x31b)][_0x35052b(0x1a7)](),_0x5bac67=new _0x559311[(_0x35052b(0x331))]([_0x4373bc[0x0],_0x4373bc[0x1],_0x4373bc[0x2],_0x4373bc[0x3],_0x3ebf4b,_0x3ac618]),_0x3f0bf3=_0x462a7d['getParent'](),_0x45173f=(_0x462a7d[_0x35052b(0x285)]&&(_0x3f0bf3==null?void 0x0:_0x3f0bf3[_0x35052b(0x152)])===_0x559311[_0x35052b(0x148)][_0x35052b(0x2ba)]?_0x3f0bf3[_0x35052b(0x4d7)][_0x35052b(0x32b)](_0x5bac67):_0x5bac67)[_0x35052b(0x202)]()[_0x35052b(0x3af)](_0x34818d),_0x6fe0bf=_0x13ce71/0x2,_0x32103c=_0x245c12/0x2;if(_0x45173f['x']>=-_0x6fe0bf-0x5&&_0x45173f['x']<=_0x6fe0bf+0x5&&_0x45173f['y']>=-_0x32103c-0x5&&_0x45173f['y']<=_0x32103c+0x5)return{'shapeId':_0x351575,'shapeModel':_0x291cc8};}return null;}['_showConnectionSites'](_0x14da63,_0x481771){const _0x4c7aa4=_0xa608a8;if(!this['_currentScene'])return;let _0x2a6664=(0x0,_0x43c769[_0x4c7aa4(0x280)])({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0x14da63}),_0x35949b=this[_0x4c7aa4(0x3d9)][_0x4c7aa4(0x47f)](_0x2a6664);if(!_0x35949b)return;let {left:_0x586074,top:_0x1eb256,width:_0x311d33,height:_0x127c45}=_0x35949b['getRealBound'](),_0x49ea93=_0x586074+_0x311d33/0x2,_0x4c57c9=_0x1eb256+_0x127c45/0x2,_0x4ceaa4=_0x35949b['transform'][_0x4c7aa4(0x1a7)](),_0x156ad4=new _0x559311[(_0x4c7aa4(0x331))]([_0x4ceaa4[0x0],_0x4ceaa4[0x1],_0x4ceaa4[0x2],_0x4ceaa4[0x3],_0x49ea93,_0x4c57c9]),_0x50bdb2=_0x35949b[_0x4c7aa4(0x43c)](),_0x16ae7c=_0x35949b[_0x4c7aa4(0x285)]&&(_0x50bdb2==null?void 0x0:_0x50bdb2[_0x4c7aa4(0x152)])===_0x559311[_0x4c7aa4(0x148)]['GROUP']?_0x50bdb2[_0x4c7aa4(0x4d7)]['multiply'](_0x156ad4):_0x156ad4;_0x481771[_0x4c7aa4(0x30c)]({'width':_0x311d33,'height':_0x127c45});let _0x20116f=_0x481771['getConnectionSiteList']();for(let _0x213ef6 of _0x20116f){let _0x3935ad=_0x213ef6['x']-_0x311d33/0x2,_0x356a43=_0x213ef6['y']-_0x127c45/0x2,_0x52d1c=_0x16ae7c[_0x4c7aa4(0x3af)]({'x':_0x3935ad,'y':_0x356a43}),_0x539b77=_0x52d1c['x'],_0x5cb215=_0x52d1c['y'],_0x529ad6=new _0xd942a4(_0x4c7aa4(0x522)+_0x14da63+'-'+_0x213ef6['index'],{'left':_0x539b77-_0x11e0df[_0x4c7aa4(0x4bb)][_0x4c7aa4(0x128)],'top':_0x5cb215-_0x11e0df['ShapeDefaultConfig'][_0x4c7aa4(0x128)],'targetShapeId':_0x14da63,'cxnIndex':_0x213ef6[_0x4c7aa4(0x293)],'unitId':this[_0x4c7aa4(0x2e3)],'subUnitId':this['_subUnitId'],'width':_0x11e0df[_0x4c7aa4(0x4bb)]['cxnPointRadius']*0x2,'height':_0x11e0df[_0x4c7aa4(0x4bb)][_0x4c7aa4(0x128)]*0x2,'zIndex':_0x559311['DRAWING_OBJECT_LAYER_INDEX']+0x2,'evented':!0x1});this[_0x4c7aa4(0x3e2)][_0x4c7aa4(0x313)](_0x529ad6),this[_0x4c7aa4(0x3d9)]['addObject'](_0x529ad6,_0x559311[_0x4c7aa4(0x17a)]+0x2);}}[_0xa608a8(0x1f1)](_0x400f18){const _0x2ea653=_0xa608a8;let _0x399166=null,_0x2ea20c=0x1/0x0,_0x909353=null;for(let _0x517d35 of this[_0x2ea653(0x3e2)]){let _0x221d41=_0x517d35['left']+_0x11e0df['ShapeDefaultConfig']['cxnPointRadius'],_0x3cac85=_0x517d35[_0x2ea653(0x4f5)]+_0x11e0df[_0x2ea653(0x4bb)][_0x2ea653(0x128)],_0x4bf59a=_0x400f18['x']-_0x221d41,_0x1a2476=_0x400f18['y']-_0x3cac85,_0x38e846=Math['sqrt'](_0x4bf59a*_0x4bf59a+_0x1a2476*_0x1a2476);_0x38e846<_0x2ea20c&&(_0x2ea20c=_0x38e846,_0x399166=_0x517d35,_0x909353={'x':_0x221d41,'y':_0x3cac85});}let _0x36e426=_0x2ea20c<=0xa&&_0x399166?_0x399166[_0x2ea653(0x4f0)]()[_0x2ea653(0x4a9)]:-0x1;if(_0x36e426!==this[_0x2ea653(0x161)]){for(let _0x5e96ec of this[_0x2ea653(0x3e2)]){let _0x5c49cd=_0x5e96ec[_0x2ea653(0x4f0)]();_0x5e96ec[_0x2ea653(0x327)](_0x5c49cd[_0x2ea653(0x4a9)]===_0x36e426);}this[_0x2ea653(0x161)]=_0x36e426;}if(_0x2ea20c<=0xa&&_0x399166&&_0x909353){let _0x55153e=_0x399166[_0x2ea653(0x4f0)](),_0x31a237=this[_0x2ea653(0x281)](_0x55153e['shapeId'],_0x55153e[_0x2ea653(0x4a9)]);return{'shapeId':_0x55153e[_0x2ea653(0x3d5)],'cxnIndex':_0x55153e[_0x2ea653(0x4a9)],'unitId':_0x55153e[_0x2ea653(0x284)],'subUnitId':_0x55153e[_0x2ea653(0x226)],'worldPoint':_0x909353,'angle':_0x31a237};}return null;}[_0xa608a8(0x281)](_0x4c12d1,_0x1c2076){const _0x2c6c96=_0xa608a8;let _0x3453d6=this['_sheetsShapeService'][_0x2c6c96(0x335)](this['_unitId'],this[_0x2c6c96(0x2f5)],_0x4c12d1);if(!_0x3453d6)return 0x0;let _0x2fdf26=this[_0x2c6c96(0x3d7)][_0x2c6c96(0x462)]({'unitId':this[_0x2c6c96(0x2e3)],'subUnitId':this[_0x2c6c96(0x2f5)],'drawingId':_0x4c12d1});if(!(_0x2fdf26!=null&&_0x2fdf26['transform']))return 0x0;let {width:_0x148297=0x0,height:_0x21dc29=0x0,flipX:_0x529612=!0x1,flipY:_0x261a11=!0x1}=_0x2fdf26[_0x2c6c96(0x31b)];_0x3453d6[_0x2c6c96(0x30c)]({'width':_0x148297,'height':_0x21dc29});let _0x250448=_0x3453d6[_0x2c6c96(0x35e)]()['find'](_0x327c69=>_0x327c69['index']===_0x1c2076);if(!_0x250448)return 0x0;let _0x1912c0=_0x250448[_0x2c6c96(0x424)]/0xea60;return _0x529612&&(_0x1912c0=0xb4-_0x1912c0),_0x261a11&&(_0x1912c0=-_0x1912c0),_0x1912c0=(_0x1912c0%0x168+0x168)%0x168,_0x1912c0;}[_0xa608a8(0x3f7)](){const _0x155485=_0xa608a8;for(let _0x37954c of this[_0x155485(0x3e2)])_0x37954c[_0x155485(0x11e)]();this['_connectionSiteObjects']=[],this[_0x155485(0x161)]=-0x1;}[_0xa608a8(0x11e)](){const _0x4cf685=_0xa608a8;this[_0x4cf685(0x3f7)](),super[_0x4cf685(0x11e)]();}};_0x582783=_0x4cddfe([_0x542dc8(0x1,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x559311[_0xa608a8(0x306)])),_0x542dc8(0x2,(0x0,_0x244243['Inject'])(_0x43c769[_0xa608a8(0x334)])),_0x542dc8(0x3,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0xb19349[_0xa608a8(0x439)]))],_0x582783);let _0x59ce19=class extends _0x244243['Disposable']{constructor(_0x4b2d13,_0x29e457,_0x166142,_0x409206,_0x1787e3,_0xfa5bf4,_0x42a1ef,_0x55ed4b){const _0x596bdb=_0xa608a8;super(),this['_sheetSkeletonService']=_0x4b2d13,this[_0x596bdb(0x4d8)]=_0x29e457,this[_0x596bdb(0x401)]=_0x166142,this[_0x596bdb(0x4b9)]=_0x409206,this['_groupCopyPasteController']=_0x1787e3,this[_0x596bdb(0x366)]=_0xfa5bf4,this['_renders']=_0x42a1ef,this[_0x596bdb(0x38a)]=_0x55ed4b,_0x5b48d0(this,_0x596bdb(0x231),void 0x0),this[_0x596bdb(0x45f)](),this[_0x596bdb(0x47c)]();}get['_focusedDrawings'](){const _0x9342dc=_0xa608a8;return this[_0x9342dc(0x401)][_0x9342dc(0x305)]();}[_0xa608a8(0x47c)](){this['_groupCopyPasteController']['registerFeaturePasteHook'](({fromUnitId:_0x19d830,fromSubUnitId:_0x4a008f,toUnitId:_0x52ca1c,toSubUnitId:_0x33413b,idMap:_0x4e1eb8})=>{const _0x1d1e93=_0x286e;let _0x21efd7=[],_0x4c7f2f=[];for(let [_0xdac024,_0xb89d8b]of _0x4e1eb8[_0x1d1e93(0x3b2)]()){let _0x42b800=this[_0x1d1e93(0x4b9)][_0x1d1e93(0x335)](_0x19d830,_0x4a008f,_0xdac024);if(!_0x42b800)continue;let _0x45e485=_0x42b800[_0x1d1e93(0x4e2)](),_0x487c88=JSON[_0x1d1e93(0x383)](JSON['stringify'](_0x42b800[_0x1d1e93(0x169)]()));if(_0x487c88[_0x1d1e93(0x24d)]){var _0x4f7341,_0x162fe2;let _0x31eb62=(_0x4f7341=_0x487c88[_0x1d1e93(0x24d)][_0x1d1e93(0x198)])==null?void 0x0:_0x4f7341[_0x1d1e93(0x3d5)],_0x56c67d=(_0x162fe2=_0x487c88[_0x1d1e93(0x24d)]['to'])==null?void 0x0:_0x162fe2[_0x1d1e93(0x3d5)],_0x3ad3d3=!_0x31eb62||_0x4e1eb8[_0x1d1e93(0x2e5)](_0x31eb62),_0x5400b6=!_0x56c67d||_0x4e1eb8[_0x1d1e93(0x2e5)](_0x56c67d);_0x3ad3d3&&_0x31eb62&&_0x487c88[_0x1d1e93(0x24d)][_0x1d1e93(0x198)]?_0x487c88[_0x1d1e93(0x24d)][_0x1d1e93(0x198)]={..._0x487c88[_0x1d1e93(0x24d)][_0x1d1e93(0x198)],'shapeId':_0x4e1eb8['get'](_0x31eb62)}:_0x487c88[_0x1d1e93(0x24d)][_0x1d1e93(0x198)]=void 0x0,_0x5400b6&&_0x56c67d&&_0x487c88[_0x1d1e93(0x24d)]['to']?_0x487c88['relation']['to']={..._0x487c88[_0x1d1e93(0x24d)]['to'],'shapeId':_0x4e1eb8[_0x1d1e93(0x20b)](_0x56c67d)}:_0x487c88['relation']['to']=void 0x0;}_0x21efd7[_0x1d1e93(0x313)]({'id':_0xb19349[_0x1d1e93(0x4da)]['id'],'params':{'unitId':_0x52ca1c,'subUnitId':_0x33413b,'shapeId':_0xb89d8b,'shapeType':_0x45e485,'shapeData':_0x487c88}}),_0x4c7f2f['push']({'id':_0xb19349['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x52ca1c,'subUnitId':_0x33413b,'shapeId':_0xb89d8b}});}return{'redos':_0x21efd7,'undos':_0x4c7f2f};});}[_0xa608a8(0x45f)](){const _0x3fdb43=_0xa608a8;this[_0x3fdb43(0x322)](this[_0x3fdb43(0x4d8)][_0x3fdb43(0x338)]({'id':_0x3fdb43(0x4c7),'onBeforeCopyFocusedObject':(_0x3d2c0d,_0x266869,_0x182144)=>{const _0x59239e=_0x3fdb43;this[_0x59239e(0x231)]=null;let _0x32d2b6=this[_0x59239e(0x12e)][_0x59239e(0x41a)](_0x1ddce3=>_0x1ddce3[_0x59239e(0x351)]===_0x244243[_0x59239e(0x138)][_0x59239e(0x4e9)]);return _0x32d2b6['length']!==0x0&&(this[_0x59239e(0x231)]={'unitId':_0x3d2c0d,'subUnitId':_0x266869,'copyType':_0x182144,'drawings':_0x32d2b6},!0x0);},'onBeforeCopy':(_0x1f15fb,_0x23f7f0,_0x4d20cf,_0x4cc4ab)=>{const _0x5910e2=_0x3fdb43;this['_copyInfo']=null,this[_0x5910e2(0x35b)](_0x1f15fb,_0x23f7f0,_0x4d20cf,_0x4cc4ab);},'onPasteCells':(_0x28bd8a,_0x304c90,_0x2719ed,_0x23aac)=>{const _0x49fec0=_0x3fdb43;if(!_0x23aac[_0x49fec0(0x477)]||!_0x28bd8a||!this[_0x49fec0(0x231)])return{'redos':[],'undos':[]};let {pasteType:_0x462d31}=_0x23aac;return _0x462d31===_0x180b4c[_0x49fec0(0x276)]['DEFAULT_PASTE']?this[_0x49fec0(0x228)](_0x304c90,this[_0x49fec0(0x231)][_0x49fec0(0x422)]===_0x180b4c[_0x49fec0(0x2c0)][_0x49fec0(0x28d)]):{'redos':[],'undos':[]};}}));}[_0xa608a8(0x35b)](_0x52ed4a,_0xf4fe47,_0xc8e01,_0x3bd722){const _0x1d2018=_0xa608a8;let _0x5b4903=this[_0x1d2018(0x28e)][_0x1d2018(0x34d)](_0x52ed4a,_0xf4fe47);if(!_0x5b4903)return;let _0x55af76=(0x0,_0x126f61[_0x1d2018(0x1a2)])(_0x5b4903,_0xc8e01);if(!_0x55af76)return;let {startX:_0x3f921b,endX:_0x551909,startY:_0x224bad,endY:_0x4c7122}=_0x55af76,_0x11ec1e=this[_0x1d2018(0x401)][_0x1d2018(0x19e)](_0x52ed4a,_0xf4fe47),_0x27448c=[];for(let [_0x572d53,_0x438db2]of Object[_0x1d2018(0x3b2)](_0x11ec1e)){if(_0x438db2[_0x1d2018(0x351)]!==_0x244243[_0x1d2018(0x138)]['DRAWING_SHAPE'])continue;let {transform:_0x554175}=_0x438db2;if(!_0x554175)continue;let {left:_0x37ab0c=0x0,top:_0x274637=0x0,width:_0x411343=0x0,height:_0x4eece3=0x0}=_0x554175;_0x3f921b<=_0x37ab0c&&_0x551909>=_0x37ab0c+_0x411343&&_0x224bad<=_0x274637&&_0x4c7122>=_0x274637+_0x4eece3&&_0x27448c[_0x1d2018(0x313)](_0x438db2);}_0x27448c[_0x1d2018(0x225)]>0x0&&(this[_0x1d2018(0x231)]={'unitId':_0x52ed4a,'subUnitId':_0xf4fe47,'copyType':_0x3bd722,'copyRange':_0xc8e01,'drawings':_0x27448c});}[_0xa608a8(0x228)](_0x25810e,_0x4e22bc){const _0x21cf14=_0xa608a8;var _0x115741,_0x3f7d87;let {unitId:_0x23e833,subUnitId:_0x107ab9,range:_0x4f4a53}=_0x25810e,_0x1c68ce=this[_0x21cf14(0x231)],_0x2d9527=(_0x115741=this[_0x21cf14(0x366)]['getUnit'](_0x1c68ce[_0x21cf14(0x284)],_0x244243[_0x21cf14(0x10a)][_0x21cf14(0x127)]))==null?void 0x0:_0x115741[_0x21cf14(0x4f7)](_0x1c68ce[_0x21cf14(0x226)]),_0x4396e4=(_0x3f7d87=this[_0x21cf14(0x366)]['getUnit'](_0x23e833,_0x244243[_0x21cf14(0x10a)]['UNIVER_SHEET']))==null?void 0x0:_0x3f7d87[_0x21cf14(0x4f7)](_0x107ab9),_0x8fd6d5=(_0x2d9527==null?void 0x0:_0x2d9527['getConfig']()[_0x21cf14(0x297)])??_0x244243['SheetTypes']['GRID'],_0x550e9c=(_0x4396e4==null?void 0x0:_0x4396e4[_0x21cf14(0x3a1)]()[_0x21cf14(0x297)])??_0x244243[_0x21cf14(0x1c5)][_0x21cf14(0x2c5)];if(_0x8fd6d5===_0x244243[_0x21cf14(0x1c5)][_0x21cf14(0x23f)]||_0x550e9c===_0x244243[_0x21cf14(0x1c5)][_0x21cf14(0x23f)])return this['_generateChartSheetCopy'](_0x25810e,_0x4e22bc);let _0x8a71bb=this[_0x21cf14(0x28e)]['getSkeleton'](_0x23e833,_0x107ab9);if(!_0x8a71bb)return{'redos':[],'undos':[]};let _0x2244be=(0x0,_0x126f61[_0x21cf14(0x160)])(_0x4f4a53),{unitId:_0x3f4313,subUnitId:_0x1e307c,copyRange:_0x35b760,drawings:_0xfa5c73}=this[_0x21cf14(0x231)],_0x11a9ec=this['_sheetSkeletonService']['getSkeleton'](_0x3f4313,_0x1e307c);if(!_0x11a9ec)return{'redos':[],'undos':[]};let _0x185c0a;if(!_0x35b760){let _0x4e9c3f=0x1/0x0,_0x14f646=0x1/0x0;for(let _0x4a7c01 of _0xfa5c73){let {left:_0x2c2a71=0x0,top:_0x374408=0x0}=_0x4a7c01['transform']??{};_0x2c2a71<_0x4e9c3f&&(_0x4e9c3f=_0x2c2a71),_0x374408<_0x14f646&&(_0x14f646=_0x374408);}_0x4e9c3f!==0x1/0x0&&_0x14f646!==0x1/0x0&&(_0x185c0a={'left':_0x4e9c3f,'top':_0x14f646});}let _0x5660ee=new Map();if(!_0x4e22bc){for(let _0x3757b8 of _0xfa5c73)_0x5660ee['set'](_0x3757b8[_0x21cf14(0x2b5)],(0x0,_0x244243[_0x21cf14(0x251)])());}let _0x197e28=[],_0x356bba=[];for(let _0x53b24d of _0xfa5c73){let {drawingId:_0x2d18f9,transform:_0xc33cb3,sheetTransform:_0x2c2859}=_0x53b24d;if(!_0xc33cb3||!_0x2c2859)continue;let _0x48583e=this[_0x21cf14(0x295)]({'transform':_0xc33cb3,'sheetTransform':_0x2c2859},{'skeleton':_0x11a9ec,'range':_0x35b760},{'skeleton':_0x8a71bb,'range':_0x2244be},_0x185c0a);if(_0x4e22bc){let {redos:_0x2a4cb1,undos:_0x39a6d9}=this[_0x21cf14(0x32a)]({'fromUnitId':_0x3f4313,'fromSubUnitId':_0x1e307c,'toUnitId':_0x23e833,'toSubUnitId':_0x107ab9,'drawing':_0x53b24d,'newTransforms':_0x48583e});_0x197e28[_0x21cf14(0x313)](..._0x2a4cb1),_0x356bba['push'](..._0x39a6d9);continue;}let {redos:_0x4c821f,undos:_0xc58db6}=this[_0x21cf14(0x1be)]({'toUnitId':_0x23e833,'toSubUnitId':_0x107ab9,'drawing':_0x53b24d,'newTransforms':_0x48583e,'newDrawingId':_0x5660ee[_0x21cf14(0x20b)](_0x2d18f9),'idMap':_0x5660ee});_0x197e28[_0x21cf14(0x313)](..._0x4c821f),_0x356bba[_0x21cf14(0x313)](..._0xc58db6);}return{'redos':_0x197e28,'undos':_0x356bba};}['_generateChartSheetCopy'](_0xb68bc4,_0x3908d5){const _0x35b4de=_0xa608a8;var _0x2e6faa;if(_0x3908d5)throw new _0x244243['CustomCommandExecutionError'](_0x180b4c['SheetPasteCommand']['id']);let {unitId:_0xf0797b,subUnitId:_0x219cd3}=_0xb68bc4;if(!this[_0x35b4de(0x38a)][_0x35b4de(0x2f2)]({'workbookTypes':[_0x126f61[_0x35b4de(0x32c)]],'worksheetTypes':[_0x126f61[_0x35b4de(0x2fb)]]},_0xf0797b,_0x219cd3))throw new _0x244243[(_0x35b4de(0x407))](_0x180b4c[_0x35b4de(0x189)]['id']);let _0x5aa528=(_0x2e6faa=this[_0x35b4de(0x366)][_0x35b4de(0x150)](_0xf0797b,_0x244243[_0x35b4de(0x10a)][_0x35b4de(0x127)]))==null?void 0x0:_0x2e6faa[_0x35b4de(0x4f7)](_0x219cd3),_0x3d3bc6=_0x5aa528==null?void 0x0:_0x5aa528[_0x35b4de(0x3a1)](),_0x3c346b=(_0x3d3bc6==null?void 0x0:_0x3d3bc6['type'])??_0x244243[_0x35b4de(0x1c5)][_0x35b4de(0x2c5)],_0x575f56=this[_0x35b4de(0x231)],_0x4bc8a3=_0x575f56[_0x35b4de(0x4d4)];if(!this[_0x35b4de(0x38a)][_0x35b4de(0x2f2)]({'workbookTypes':[_0x126f61[_0x35b4de(0x4d3)]],'worksheetTypes':[_0x126f61[_0x35b4de(0x146)]]},_0x575f56[_0x35b4de(0x284)],_0x575f56[_0x35b4de(0x226)])||_0x4bc8a3[_0x35b4de(0x38c)](_0x175850=>_0x175850[_0x35b4de(0x32e)]||!this[_0x35b4de(0x4b9)][_0x35b4de(0x335)](_0x575f56['unitId'],_0x575f56['subUnitId'],_0x175850['drawingId'])||!_0x244243['Tools']['diffValue'](_0x175850,this[_0x35b4de(0x401)][_0x35b4de(0x462)](_0x175850))))throw new _0x244243[(_0x35b4de(0x407))](_0x180b4c[_0x35b4de(0x189)]['id']);let _0x26e215=null;if(_0x3c346b===_0x244243[_0x35b4de(0x1c5)]['CHART']){var _0x309425;let _0x4b2c93=(_0x309425=this[_0x35b4de(0x4db)][_0x35b4de(0x236)](_0xf0797b))==null?void 0x0:_0x309425[_0x35b4de(0x1e2)][_0x35b4de(0x20b)](_0x180b4c[_0x35b4de(0x46a)][_0x35b4de(0x22b)]);_0x4b2c93&&(_0x26e215=(0x0,_0x29aa40[_0x35b4de(0x4c2)])(_0x4bc8a3,{'left':_0x4b2c93[_0x35b4de(0x371)],'top':_0x4b2c93[_0x35b4de(0x4f5)],'width':_0x4b2c93[_0x35b4de(0x302)],'height':_0x4b2c93[_0x35b4de(0x474)]},(_0x3d3bc6==null?void 0x0:_0x3d3bc6[_0x35b4de(0x391)])===_0x244243[_0x35b4de(0x296)][_0x35b4de(0x4cb)]));}else{let _0x1ac4b2=this['_sheetSkeletonService']['getSkeleton'](_0xf0797b,_0x219cd3),_0x25f66f=_0x1ac4b2&&(0x0,_0x126f61[_0x35b4de(0x1a2)])(_0x1ac4b2,(0x0,_0x126f61[_0x35b4de(0x160)])(_0xb68bc4[_0x35b4de(0x37a)]));if(_0x25f66f&&_0x4bc8a3[_0x35b4de(0x225)]){let _0x4b96d7=Math[_0x35b4de(0x3f6)](..._0x4bc8a3['map'](_0x46cd84=>_0x46cd84[_0x35b4de(0x31b)][_0x35b4de(0x371)])),_0x39918a=Math['min'](..._0x4bc8a3[_0x35b4de(0x153)](_0x5ed8d4=>_0x5ed8d4['transform'][_0x35b4de(0x4f5)]));_0x26e215=_0x4bc8a3[_0x35b4de(0x153)](_0x32e366=>(0x0,_0x29aa40['applySheetDrawingPlacement'])(_0x32e366,{'kind':_0x29aa40[_0x35b4de(0x47a)]['Position'],'bounds':{'left':_0x25f66f[_0x35b4de(0x314)]+_0x32e366['transform'][_0x35b4de(0x371)]-_0x4b96d7,'top':_0x25f66f[_0x35b4de(0x363)]+_0x32e366['transform'][_0x35b4de(0x4f5)]-_0x39918a,'width':_0x32e366[_0x35b4de(0x31b)][_0x35b4de(0x302)],'height':_0x32e366[_0x35b4de(0x31b)][_0x35b4de(0x474)]}},_0x1ac4b2));}}if(!_0x26e215)throw new _0x244243[(_0x35b4de(0x407))](_0x180b4c['SheetPasteCommand']['id']);let _0x399aa6=new Map(_0x4bc8a3[_0x35b4de(0x153)](_0x208857=>[_0x208857[_0x35b4de(0x2b5)],(0x0,_0x244243[_0x35b4de(0x251)])()])),_0x4d6e4b=[],_0x40fb82=[];for(let [_0x53e32b,_0x23dc34]of _0x4bc8a3['entries']()){let _0x59170e=_0x26e215[_0x53e32b],_0xfa81aa=this[_0x35b4de(0x1be)]({'toUnitId':_0xf0797b,'toSubUnitId':_0x219cd3,'drawing':_0x23dc34,'idMap':_0x399aa6,'newDrawingId':_0x399aa6[_0x35b4de(0x20b)](_0x23dc34[_0x35b4de(0x2b5)]),'newTransforms':{'transform':_0x59170e[_0x35b4de(0x31b)],'sheetTransform':_0x59170e[_0x35b4de(0x178)],'axisAlignSheetTransform':_0x59170e[_0x35b4de(0x388)],'anchorType':_0x59170e[_0x35b4de(0x45c)]}});_0x4d6e4b[_0x35b4de(0x313)](..._0xfa81aa[_0x35b4de(0x2dc)]),_0x40fb82['unshift'](..._0xfa81aa[_0x35b4de(0x406)]);}return{'redos':_0x4d6e4b,'undos':_0x40fb82};}[_0xa608a8(0x32a)](_0x16590d){const _0x707a77=_0xa608a8;let {fromUnitId:_0x2c0be,fromSubUnitId:_0x579164,toUnitId:_0x414758,toSubUnitId:_0x4b866e,drawing:_0x21195f,newTransforms:_0x5af391}=_0x16590d,_0x7784f5={..._0x21195f,'unitId':_0x414758,'subUnitId':_0x4b866e,..._0x5af391};if(_0x414758===_0x2c0be&&_0x4b866e===_0x579164){let {redo:_0x1cd200,undo:_0x253472,objects:_0x513c9a}=this[_0x707a77(0x401)]['getBatchUpdateOp']([_0x7784f5]);return{'redos':[{'id':_0x29aa40[_0x707a77(0x4e0)]['id'],'params':{'unitId':_0x414758,'subUnitId':_0x4b866e,'type':_0x29aa40[_0x707a77(0x1a9)][_0x707a77(0x43e)],'op':_0x1cd200,'objects':_0x513c9a}}],'undos':[{'id':_0x29aa40[_0x707a77(0x4e0)]['id'],'params':{'unitId':_0x414758,'subUnitId':_0x4b866e,'type':_0x29aa40[_0x707a77(0x1a9)][_0x707a77(0x43e)],'op':_0x253472,'objects':_0x513c9a}}]};}{let _0x52a5f2=this[_0x707a77(0x401)]['getBatchRemoveOp']([_0x21195f]),_0x49068d=this[_0x707a77(0x401)]['getBatchAddOp']([_0x7784f5]),_0x25ea8b=this[_0x707a77(0x4b9)][_0x707a77(0x335)](_0x21195f[_0x707a77(0x284)],_0x21195f['subUnitId'],_0x21195f['drawingId']);if(!_0x25ea8b)return{'redos':[],'undos':[]};let _0x8fc202=_0x25ea8b[_0x707a77(0x4e2)](),_0xfdb071=JSON[_0x707a77(0x383)](JSON[_0x707a77(0x329)](_0x25ea8b[_0x707a77(0x169)]()));return{'redos':[{'id':_0x29aa40['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2c0be,'subUnitId':_0x579164,'type':_0x29aa40[_0x707a77(0x1a9)][_0x707a77(0x1d1)],'op':_0x52a5f2[_0x707a77(0x4ec)],'objects':_0x52a5f2[_0x707a77(0x418)]}},{'id':_0xb19349[_0x707a77(0x2b4)]['id'],'params':{'unitId':_0x2c0be,'subUnitId':_0x579164,'shapeId':_0x21195f['drawingId']}},{'id':_0x29aa40[_0x707a77(0x4e0)]['id'],'params':{'unitId':_0x414758,'subUnitId':_0x4b866e,'type':_0x29aa40[_0x707a77(0x1a9)][_0x707a77(0x210)],'op':_0x49068d[_0x707a77(0x4ec)],'objects':_0x49068d['objects']}},{'id':_0xb19349[_0x707a77(0x4da)]['id'],'params':{'unitId':_0x414758,'subUnitId':_0x4b866e,'shapeId':_0x21195f[_0x707a77(0x2b5)],'shapeType':_0x8fc202,'shapeData':_0xfdb071}}],'undos':[{'id':_0x29aa40[_0x707a77(0x4e0)]['id'],'params':{'unitId':_0x2c0be,'subUnitId':_0x579164,'type':_0x29aa40['DrawingApplyType'][_0x707a77(0x210)],'op':_0x52a5f2[_0x707a77(0x4f2)],'objects':_0x52a5f2['objects']}},{'id':_0xb19349[_0x707a77(0x4da)]['id'],'params':{'unitId':_0x2c0be,'subUnitId':_0x579164,'shapeId':_0x21195f[_0x707a77(0x2b5)],'shapeType':_0x8fc202,'shapeData':_0xfdb071}},{'id':_0x29aa40[_0x707a77(0x4e0)]['id'],'params':{'unitId':_0x414758,'subUnitId':_0x4b866e,'type':_0x29aa40[_0x707a77(0x1a9)][_0x707a77(0x1d1)],'op':_0x49068d[_0x707a77(0x4f2)],'objects':_0x49068d[_0x707a77(0x418)]}},{'id':_0xb19349[_0x707a77(0x2b4)]['id'],'params':{'unitId':_0x414758,'subUnitId':_0x4b866e,'shapeId':_0x21195f[_0x707a77(0x2b5)]}}]};}}[_0xa608a8(0x1be)](_0x372815){const _0x1480ff=_0xa608a8;let {toUnitId:_0x14b697,toSubUnitId:_0x119aa9,drawing:_0x31ca63,newTransforms:_0x1d277e,newDrawingId:_0x3f1a8c,idMap:_0x3316ad}=_0x372815,_0xae043={..._0x31ca63,'unitId':_0x14b697,'subUnitId':_0x119aa9,'drawingId':_0x3f1a8c,..._0x1d277e},{redo:_0x465f1e,undo:_0x2bd203,objects:_0x2d26e7}=this[_0x1480ff(0x401)][_0x1480ff(0x250)]([_0xae043]),_0x5a96a7=this[_0x1480ff(0x4b9)][_0x1480ff(0x335)](_0x31ca63[_0x1480ff(0x284)],_0x31ca63['subUnitId'],_0x31ca63['drawingId']);if(!_0x5a96a7)return{'redos':[],'undos':[]};let _0x3c65b6=_0x5a96a7['getShapeType'](),_0x44477f=JSON[_0x1480ff(0x383)](JSON[_0x1480ff(0x329)](_0x5a96a7[_0x1480ff(0x169)]()));if(_0x44477f[_0x1480ff(0x24d)]){var _0x353128,_0x15a0c0;let _0x44af22=(_0x353128=_0x44477f[_0x1480ff(0x24d)][_0x1480ff(0x198)])==null?void 0x0:_0x353128[_0x1480ff(0x3d5)],_0xd2324b=(_0x15a0c0=_0x44477f['relation']['to'])==null?void 0x0:_0x15a0c0[_0x1480ff(0x3d5)],_0x4e5ab6=!_0x44af22||_0x3316ad[_0x1480ff(0x2e5)](_0x44af22),_0x3ca01e=!_0xd2324b||_0x3316ad[_0x1480ff(0x2e5)](_0xd2324b);_0x4e5ab6&&_0x44af22&&_0x44477f[_0x1480ff(0x24d)][_0x1480ff(0x198)]?_0x44477f[_0x1480ff(0x24d)][_0x1480ff(0x198)]={..._0x44477f['relation'][_0x1480ff(0x198)],'shapeId':_0x3316ad[_0x1480ff(0x20b)](_0x44af22)}:_0x44477f[_0x1480ff(0x24d)][_0x1480ff(0x198)]=void 0x0,_0x3ca01e&&_0xd2324b&&_0x44477f[_0x1480ff(0x24d)]['to']?_0x44477f['relation']['to']={..._0x44477f[_0x1480ff(0x24d)]['to'],'shapeId':_0x3316ad[_0x1480ff(0x20b)](_0xd2324b)}:_0x44477f[_0x1480ff(0x24d)]['to']=void 0x0;}return{'redos':[{'id':_0x29aa40[_0x1480ff(0x4e0)]['id'],'params':{'unitId':_0x14b697,'subUnitId':_0x119aa9,'type':_0x29aa40[_0x1480ff(0x1a9)]['INSERT'],'op':_0x465f1e,'objects':_0x2d26e7}},{'id':_0xb19349[_0x1480ff(0x4da)]['id'],'params':{'unitId':_0x14b697,'subUnitId':_0x119aa9,'shapeId':_0x3f1a8c,'shapeType':_0x3c65b6,'shapeData':_0x44477f}}],'undos':[{'id':_0x29aa40['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x14b697,'subUnitId':_0x119aa9,'type':_0x29aa40[_0x1480ff(0x1a9)][_0x1480ff(0x1d1)],'op':_0x2bd203,'objects':_0x2d26e7}},{'id':_0xb19349[_0x1480ff(0x2b4)]['id'],'params':{'unitId':_0x14b697,'subUnitId':_0x119aa9,'shapeId':_0x3f1a8c}}]};}[_0xa608a8(0x295)](_0xf2b507,_0x182932,_0x3cedbf,_0x2102ae){const _0x2c4d7e=_0xa608a8;let {range:_0x1ec2e7,skeleton:_0x3c7914}=_0x182932,{range:_0x34f164,skeleton:_0x44879a}=_0x3cedbf,{transform:_0x3b5ede,sheetTransform:_0x3d9286}=_0xf2b507,_0x812121={..._0x3b5ede};if(_0x1ec2e7){let _0x9dae34=(0x0,_0x126f61[_0x2c4d7e(0x1a2)])(_0x3c7914,_0x1ec2e7),_0x53437f=(0x0,_0x126f61[_0x2c4d7e(0x1a2)])(_0x44879a,_0x34f164);if(_0x9dae34&&_0x53437f){let _0x49ddd9=_0x53437f[_0x2c4d7e(0x314)]-_0x9dae34[_0x2c4d7e(0x314)],_0x2d1ae3=_0x53437f['startY']-_0x9dae34[_0x2c4d7e(0x363)];_0x812121[_0x2c4d7e(0x371)]=(_0x812121[_0x2c4d7e(0x371)]??0x0)+_0x49ddd9,_0x812121[_0x2c4d7e(0x4f5)]=(_0x812121['top']??0x0)+_0x2d1ae3;}}else{let _0x497ea3=(0x0,_0x126f61['attachRangeWithCoord'])(_0x44879a,_0x34f164);if(_0x2102ae&&_0x497ea3){let _0x532e09=(_0x812121[_0x2c4d7e(0x371)]??0x0)-_0x2102ae[_0x2c4d7e(0x371)],_0x3a33dd=(_0x812121['top']??0x0)-_0x2102ae[_0x2c4d7e(0x4f5)];_0x812121[_0x2c4d7e(0x371)]=_0x497ea3[_0x2c4d7e(0x314)]+_0x532e09,_0x812121[_0x2c4d7e(0x4f5)]=_0x497ea3['startY']+_0x3a33dd;}else _0x812121['left']=_0x497ea3==null?void 0x0:_0x497ea3['startX'],_0x812121['top']=_0x497ea3==null?void 0x0:_0x497ea3[_0x2c4d7e(0x363)];}return{'transform':_0x812121,'sheetTransform':(0x0,_0x29aa40['transformToDrawingPosition'])(_0x812121,_0x44879a)??_0x3d9286};}};_0x59ce19=_0x4cddfe([_0x542dc8(0x0,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x126f61[_0xa608a8(0x4ad)])),_0x542dc8(0x1,(0x0,_0x244243['Inject'])(_0x180b4c[_0xa608a8(0x3aa)])),_0x542dc8(0x2,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x29aa40[_0xa608a8(0x2fe)])),_0x542dc8(0x3,(0x0,_0x244243['Inject'])(_0xb19349[_0xa608a8(0x439)])),_0x542dc8(0x4,(0x0,_0x244243['Inject'])(_0x37d78b[_0xa608a8(0x315)])),_0x542dc8(0x5,_0x244243[_0xa608a8(0x39a)]),_0x542dc8(0x6,_0x559311[_0xa608a8(0x306)]),_0x542dc8(0x7,(0x0,_0x244243['Inject'])(_0x126f61[_0xa608a8(0x30d)]))],_0x59ce19);var _0x25afec=class extends _0x559311[_0xa608a8(0x115)]{constructor(_0x214de4,_0x21861c){const _0x3a8480=_0xa608a8;super(_0x214de4,_0x21861c),_0x5b48d0(this,'_shapeId',null),_0x5b48d0(this,_0x3a8480(0x525),null),_0x5b48d0(this,_0x3a8480(0x2e3),null),_0x5b48d0(this,_0x3a8480(0x2f5),null),_0x5b48d0(this,_0x3a8480(0x277),!0x1),_0x21861c&&this['setShapeProps'](_0x21861c);}[_0xa608a8(0x18a)](){const _0x289652=_0xa608a8;return{'unitId':this['_unitId'],'subUnitId':this[_0x289652(0x2f5)],'drawingId':this[_0x289652(0x34c)]};}[_0xa608a8(0x426)](_0x5146b5){const _0x4a5d51=_0xa608a8;_0x5146b5[_0x4a5d51(0x3d5)]!==void 0x0&&(this[_0x4a5d51(0x34c)]=_0x5146b5['shapeId']),_0x5146b5[_0x4a5d51(0x284)]!==void 0x0&&(this[_0x4a5d51(0x2e3)]=_0x5146b5[_0x4a5d51(0x284)]),_0x5146b5[_0x4a5d51(0x226)]!==void 0x0&&(this[_0x4a5d51(0x2f5)]=_0x5146b5[_0x4a5d51(0x226)]),_0x5146b5[_0x4a5d51(0x1b1)]!==void 0x0&&(this[_0x4a5d51(0x277)]=_0x5146b5['isStartConnectorPoint']),this[_0x4a5d51(0x27d)]({'width':_0x5146b5[_0x4a5d51(0x302)],'height':_0x5146b5[_0x4a5d51(0x474)]});}['_draw'](_0x382995){const _0x101c3e=_0xa608a8;_0x559311[_0x101c3e(0x1cd)][_0x101c3e(0x2ed)](_0x382995,{'radius':_0x11e0df[_0x101c3e(0x4bb)][_0x101c3e(0x128)],'fill':_0x11e0df[_0x101c3e(0x4bb)][_0x101c3e(0x342)],'stroke':_0x11e0df[_0x101c3e(0x4bb)]['cxnPointStroke'],'strokeWidth':_0x11e0df['ShapeDefaultConfig'][_0x101c3e(0x375)],'evented':!0x0});}};let _0x3e8676=class extends _0x244243[_0xa608a8(0x2a8)]{constructor(_0x5bd4d1,_0x282f9d,_0x3a6a6a,_0x521fbf,_0x4c7d11,_0x3e068b,_0x3e4af4,_0x2b7d68){const _0x406cee=_0xa608a8;super(),this['_context']=_0x5bd4d1,this[_0x406cee(0x480)]=_0x282f9d,this[_0x406cee(0x23d)]=_0x3a6a6a,this[_0x406cee(0x3d7)]=_0x521fbf,this[_0x406cee(0x1e8)]=_0x4c7d11,this[_0x406cee(0x524)]=_0x3e068b,this[_0x406cee(0x199)]=_0x3e4af4,this[_0x406cee(0x3db)]=_0x2b7d68,_0x5b48d0(this,'_activeShapeId',void 0x0),_0x5b48d0(this,_0x406cee(0x2e3),void 0x0),_0x5b48d0(this,'_subUnitId',void 0x0),_0x5b48d0(this,_0x406cee(0x121),[]),_0x5b48d0(this,_0x406cee(0x4b0),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),_0x5b48d0(this,'_activeShapeModel',void 0x0),_0x5b48d0(this,'_isConnecting',!0x1),_0x5b48d0(this,_0x406cee(0x4e8),!0x1),_0x5b48d0(this,_0x406cee(0x185),!0x1),_0x5b48d0(this,_0x406cee(0x4a4),void 0x0),_0x5b48d0(this,'_cxtHandlerPointerUp',void 0x0),_0x5b48d0(this,_0x406cee(0x3bb),null),this[_0x406cee(0x451)]();}[_0xa608a8(0x451)](){const _0x4bf485=_0xa608a8;this[_0x4bf485(0x1db)](),this[_0x4bf485(0x497)]();}['_getDrawingRect'](){const _0x2b4662=_0xa608a8;if(!this['_unitId']||!this[_0x2b4662(0x2f5)]||!this[_0x2b4662(0x1ed)])return;let _0x1979c8={'unitId':this[_0x2b4662(0x2e3)],'subUnitId':this[_0x2b4662(0x2f5)],'drawingId':this[_0x2b4662(0x1ed)]},{transform:_0x4a6487}=this['_drawingManagerService']['getDrawingByParam'](_0x1979c8);if(_0x4a6487)return{'left':_0x4a6487['left']||0x0,'top':_0x4a6487[_0x2b4662(0x4f5)]||0x0,'width':_0x4a6487[_0x2b4662(0x302)]||0x0,'height':_0x4a6487[_0x2b4662(0x474)]||0x0,'flipX':_0x4a6487['flipX']||!0x1,'flipY':_0x4a6487[_0x2b4662(0x4fe)]||!0x1,'angle':_0x4a6487['angle']};}['_addShapeConnectorHandlerObjects'](){const _0x12b063=_0xa608a8;if(this[_0x12b063(0x2e3)]===void 0x0||this[_0x12b063(0x2f5)]===void 0x0||this[_0x12b063(0x1ed)]===void 0x0)return;let _0x318987=this[_0x12b063(0x23d)][_0x12b063(0x236)](this[_0x12b063(0x2e3)]);if(!_0x318987||!_0x318987[_0x12b063(0x3cf)](_0x180b4c[_0x12b063(0x23a)])['getCurrentSkeleton']())return;let {scene:_0xb7fd7f}=_0x318987,_0x251128=this[_0x12b063(0x20a)]();if(!_0x251128)return;let _0x5e8bb8=this[_0x12b063(0x524)]['getShapeModel'](this[_0x12b063(0x2e3)],this['_subUnitId'],this[_0x12b063(0x1ed)]);if(!_0x5e8bb8||!(0x0,_0x11e0df['isConnectorShape'])(_0x5e8bb8[_0x12b063(0x4e2)]()))return;let _0x83632f=_0x5e8bb8[_0x12b063(0x4aa)]();if(_0x83632f[_0x12b063(0x225)]<0x2)return;let _0x26c6bd=new _0x11e0df['ConnectorCoordinateTransform'](_0x251128),_0x3d3840=_0x83632f[0x0],_0x241c89=_0x83632f[_0x83632f['length']-0x1],_0x4cdf28=_0x26c6bd[_0x12b063(0x20c)](_0x3d3840),_0x1b4729=_0x26c6bd[_0x12b063(0x20c)](_0x241c89);this[_0x12b063(0x26a)](_0xb7fd7f,{..._0x4cdf28},!0x0),this[_0x12b063(0x26a)](_0xb7fd7f,{..._0x1b4729},!0x1);}[_0xa608a8(0x26a)](_0x36ffa7,_0x5ec2e6,_0x25b7c9){const _0x326fe0=_0xa608a8;if(this[_0x326fe0(0x1ed)]===void 0x0||this[_0x326fe0(0x2e3)]===void 0x0||this['_subUnitId']===void 0x0)return;let _0x443f2=_0x326fe0(0x292)+this[_0x326fe0(0x2e3)]+'-'+this[_0x326fe0(0x2f5)]+'-'+this[_0x326fe0(0x1ed)]+'-'+(_0x25b7c9?_0x326fe0(0x229):'end'),_0x515b92=_0x36ffa7[_0x326fe0(0x47f)](_0x443f2);if(_0x515b92){_0x515b92[_0x326fe0(0x27d)]({'left':_0x5ec2e6['x']-_0x11e0df['ShapeDefaultConfig']['cxnPointRadius'],'top':_0x5ec2e6['y']-_0x11e0df[_0x326fe0(0x4bb)][_0x326fe0(0x128)]});return;}let _0x3398dc=new _0x25afec(_0x443f2,{'left':_0x5ec2e6['x']-_0x11e0df[_0x326fe0(0x4bb)][_0x326fe0(0x128)],'top':_0x5ec2e6['y']-_0x11e0df[_0x326fe0(0x4bb)][_0x326fe0(0x128)],'shapeId':this[_0x326fe0(0x1ed)],'unitId':this[_0x326fe0(0x2e3)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x25b7c9,'width':_0x11e0df[_0x326fe0(0x4bb)][_0x326fe0(0x128)]*0x2,'height':_0x11e0df[_0x326fe0(0x4bb)][_0x326fe0(0x128)]*0x2,'zIndex':_0x559311[_0x326fe0(0x17a)]+0x1,'evented':!0x0});this[_0x326fe0(0x121)][_0x326fe0(0x313)](_0x3398dc),this[_0x326fe0(0x29b)](_0x3398dc,_0x36ffa7,_0x25b7c9),_0x36ffa7[_0x326fe0(0x1d6)](_0x3398dc,_0x559311[_0x326fe0(0x17a)]+0x1);}[_0xa608a8(0x412)](_0x105f8c,_0x1044c2){const _0x51175c=_0xa608a8;var _0xcc6229;let _0x3d74d4={'x':0x0,'y':0x0};if(!_0x105f8c||!_0x1044c2)return _0x3d74d4;let _0x26cf98=this[_0x51175c(0x23d)][_0x51175c(0x236)](_0x105f8c);if(!_0x26cf98||!_0x26cf98[_0x51175c(0x3cf)](_0x180b4c[_0x51175c(0x23a)])[_0x51175c(0x34d)](_0x1044c2))return _0x3d74d4;let _0x34467d=_0x26cf98[_0x51175c(0x3cf)](_0x180b4c[_0x51175c(0x369)]),_0x317042=_0x34467d==null?void 0x0:_0x34467d[_0x51175c(0x3da)]();if(!_0x317042)return _0x3d74d4;let _0x4b6448=(_0xcc6229=this[_0x51175c(0x1e8)][_0x51175c(0x150)](_0x105f8c))==null?void 0x0:_0xcc6229[_0x51175c(0x4f7)](_0x1044c2);if(!_0x4b6448)return _0x3d74d4;let _0x32bb9f=(0x0,_0x180b4c[_0x51175c(0x186)])(_0x317042[_0x51175c(0x266)],_0x317042[_0x51175c(0x191)],_0x26cf98[_0x51175c(0x419)],_0x4b6448);return _0x32bb9f?{'x':_0x32bb9f[_0x51175c(0x3ca)],'y':_0x32bb9f['viewportScrollY']}:_0x3d74d4;}[_0xa608a8(0x1d0)](_0x10eee0,_0x110ab3){const _0x241d11=_0xa608a8;var _0x3d2d1f;let _0x325f66=(_0x3d2d1f=this['_univerInstanceService'][_0x241d11(0x150)](_0x10eee0))==null?void 0x0:_0x3d2d1f[_0x241d11(0x4f7)](_0x110ab3);return(_0x325f66==null?void 0x0:_0x325f66[_0x241d11(0x29a)]())??0x1;}[_0xa608a8(0x4fa)](_0xa04836,_0x595aa5,_0x489765,_0x1871fe,_0x2b35df){const _0x3d6ada=_0xa608a8;this[_0x3d6ada(0x4a4)][_0x3d6ada(0x39f)](),this[_0x3d6ada(0x1c8)][_0x3d6ada(0x39f)](),this['_sheetShapeAdjustController'][_0x3d6ada(0x14f)]();let _0x11286e=this['_currentConnectionTarget'];this[_0x3d6ada(0x3db)][_0x3d6ada(0x456)]();let _0x16cf2e=this['_getScrollInfo'](this[_0x3d6ada(0x2e3)],this[_0x3d6ada(0x2f5)]),_0x1a1f7c=this[_0x3d6ada(0x1d0)](this['_unitId'],this[_0x3d6ada(0x2f5)]),_0xc575fc={'x':_0x489765[_0x3d6ada(0x273)]/_0x1a1f7c+_0x16cf2e['x'],'y':_0x489765[_0x3d6ada(0x32d)]/_0x1a1f7c+_0x16cf2e['y']},_0x7ddf57=_0x11286e?_0x11286e[_0x3d6ada(0x1aa)]:_0xc575fc,_0x1ee97c=_0x1871fe?this[_0x3d6ada(0x240)][_0x3d6ada(0x4a8)]():this[_0x3d6ada(0x240)][_0x3d6ada(0x3c6)](),_0x3a9a68=this[_0x3d6ada(0x240)][_0x3d6ada(0x4e2)]();_0x1ee97c?this['_handleConnectedEndpointPointerUp'](_0x1ee97c,_0x7ddf57,_0x1871fe,_0x11286e,_0x2b35df):this[_0x3d6ada(0x1d4)](_0x595aa5,_0x7ddf57,_0x1871fe,_0x11286e,_0x2b35df,_0x3a9a68),this[_0x3d6ada(0x1ac)]=!0x1,this['_hasReset']=!0x1,this['_currentConnectionTarget']=null,_0xa04836[_0x3d6ada(0x3dd)]();}[_0xa608a8(0x1d4)](_0x9aea8c,_0x40e452,_0x34b969,_0x4ba2a6,_0x16a95e,_0x99b80c){const _0x2fa700=_0xa608a8;let _0x113a19=_0x99b80c===_0x11e0df[_0x2fa700(0x30a)][_0x2fa700(0x370)]||_0x99b80c===_0x11e0df[_0x2fa700(0x30a)][_0x2fa700(0x500)],_0x50be2d=_0x34b969?_0x40e452:_0x9aea8c,_0x1f9b86=_0x34b969?_0x9aea8c:_0x40e452,_0xad0106=this['_activeShapeModel'][_0x2fa700(0x4aa)](),_0x668df2=this[_0x2fa700(0x240)]['getShapeType'](),_0x3e33dd=(0x0,_0x11e0df[_0x2fa700(0x4f4)])(_0x668df2),_0x479789=_0x11e0df[_0x2fa700(0x3f0)]['getBentTypeFromPoints'](_0xad0106,_0x3e33dd),_0x25c22a=_0x113a19?_0x11e0df[_0x2fa700(0x3f0)][_0x2fa700(0x367)](_0x50be2d,_0x1f9b86):_0x11e0df[_0x2fa700(0x3f0)][_0x2fa700(0x395)](_0x9aea8c,_0x40e452,_0x34b969,_0x479789);_0x4ba2a6?this[_0x2fa700(0x408)](_0x25c22a,_0x4ba2a6,_0x34b969,_0x16a95e):this[_0x2fa700(0x27a)](_0x25c22a,_0x16a95e);}[_0xa608a8(0x40a)](_0x1c1099,_0xdf2031,_0x371009,_0x4a14f3,_0x44fb2d){const _0xf6377b=_0xa608a8;let _0x96acfd=this[_0xf6377b(0x2f0)](_0x1c1099);if(!_0x96acfd)return;let _0x2f6eda=_0x4a14f3?_0x4a14f3['angle']:this['_calculateFreeEndpointAngle'](_0x96acfd['point'],_0xdf2031),_0x69b92e;if(_0x4a14f3){let _0x5929f8=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x4a14f3['unitId'],'subUnitId':_0x4a14f3[_0xf6377b(0x226)],'drawingId':_0x4a14f3[_0xf6377b(0x3d5)]});if(_0x5929f8!=null&&_0x5929f8[_0xf6377b(0x31b)]){let {left:_0x35e570=0x0,top:_0xaa925c=0x0,width:_0x353d1a=0x0,height:_0xcab722=0x0,angle:_0x23e8e3}=_0x5929f8[_0xf6377b(0x31b)];_0x69b92e=(0x0,_0x11e0df[_0xf6377b(0x2e0)])({'left':_0x35e570,'top':_0xaa925c,'width':_0x353d1a,'height':_0xcab722},_0x23e8e3||0x0);}else _0x69b92e={'left':_0xdf2031['x'],'top':_0xdf2031['y'],'width':0x0,'height':0x0};}else _0x69b92e={'left':_0xdf2031['x'],'top':_0xdf2031['y'],'width':0x0,'height':0x0};let _0x50e6cf={'point':_0xdf2031,'angle':_0x2f6eda,'bounds':_0x69b92e},_0x35ce55=_0x371009?_0x50e6cf:_0x96acfd,_0x7dee9d=_0x371009?_0x96acfd:_0x50e6cf,_0x405133=this['_activeShapeModel'][_0xf6377b(0x4e2)](),_0x4d42a1=(0x0,_0x11e0df['routeConnectorLineShape'])(_0x35ce55,_0x7dee9d,_0x405133);this[_0xf6377b(0x240)][_0xf6377b(0x517)]();let _0x5d219f=(0x0,_0x11e0df['computeConnectorRouteLayout'])(_0x4d42a1,_0x405133);_0x4a14f3?this[_0xf6377b(0x485)](_0x5d219f,_0x4a14f3,_0x1c1099,_0x371009,_0x44fb2d):this[_0xf6377b(0x4a3)](_0x5d219f,_0x1c1099,_0x371009,_0x44fb2d);}[_0xa608a8(0x408)](_0x112b36,_0x1a16b7,_0x52f749,_0x29c16e){const _0x451617=_0xa608a8;let _0x54da7d=this['_activeShapeModel'][_0x451617(0x169)]()['relation'],_0x56717d={..._0x54da7d},_0x2ddde3={'shapeId':_0x1a16b7['shapeId'],'cxnIndex':_0x1a16b7['cxnIndex']};_0x52f749?_0x56717d[_0x451617(0x198)]=_0x2ddde3:_0x56717d['to']=_0x2ddde3;let _0x814451=this[_0x451617(0x240)][_0x451617(0x4e2)](),_0x2694c4=(0x0,_0x11e0df[_0x451617(0x3a9)])(_0x112b36[_0x451617(0x1cb)],_0x814451),_0x3e7ea1={'unitId':this['_unitId'],'subUnitId':this[_0x451617(0x2f5)],'connectorShapeId':this[_0x451617(0x1ed)],'width':_0x112b36[_0x451617(0x2ac)][_0x451617(0x302)],'height':_0x112b36[_0x451617(0x2ac)]['height'],'left':_0x112b36[_0x451617(0x2ac)]['left'],'top':_0x112b36['worldRect'][_0x451617(0x4f5)],'flipX':_0x112b36[_0x451617(0x2ac)][_0x451617(0x4ff)]||!0x1,'flipY':_0x112b36['worldRect'][_0x451617(0x4fe)]||!0x1,'newAdjustValues':_0x2694c4[_0x451617(0x18d)],'oldAdjustValues':_0x29c16e,'oldRelation':_0x54da7d,'newRelation':_0x56717d,'newLineType':_0x2694c4['lineType'],'oldLineType':_0x814451};this[_0x451617(0x480)]['executeCommand'](_0xb19349['UpdateConnectorRelationCommand']['id'],_0x3e7ea1);}['_executeResizeCommand'](_0x4b7a95,_0x45914a){const _0x17b1dc=_0xa608a8;let _0xbb1b05=this[_0x17b1dc(0x240)]['getShapeType'](),_0x415c21=(0x0,_0x11e0df[_0x17b1dc(0x3a9)])(_0x4b7a95[_0x17b1dc(0x1cb)],_0xbb1b05),_0xc1424e={'unitId':this['_unitId'],'subUnitId':this[_0x17b1dc(0x2f5)],'shapeId':this[_0x17b1dc(0x1ed)],'width':_0x4b7a95[_0x17b1dc(0x2ac)][_0x17b1dc(0x302)],'height':_0x4b7a95[_0x17b1dc(0x2ac)][_0x17b1dc(0x474)],'left':_0x4b7a95['worldRect'][_0x17b1dc(0x371)],'top':_0x4b7a95[_0x17b1dc(0x2ac)][_0x17b1dc(0x4f5)],'flipX':_0x4b7a95[_0x17b1dc(0x2ac)][_0x17b1dc(0x4ff)]||!0x1,'flipY':_0x4b7a95[_0x17b1dc(0x2ac)][_0x17b1dc(0x4fe)]||!0x1,'angle':_0x4b7a95[_0x17b1dc(0x2ac)][_0x17b1dc(0x3b9)]||0x0,'newAdjustValues':_0x415c21[_0x17b1dc(0x18d)],'oldAdjustValues':_0x45914a,'newLineType':_0x415c21[_0x17b1dc(0x48e)],'oldLineType':_0xbb1b05};this[_0x17b1dc(0x480)][_0x17b1dc(0x134)](_0xb19349['UpdateLineShapeResizeCommand']['id'],_0xc1424e);}['_executeConnectedRouteConnectionCommand'](_0x17525c,_0x15235c,_0x8722ff,_0x8a1b6e,_0x58784d){const _0x2a1f19=_0xa608a8;let _0x4fe490=this['_activeShapeModel'][_0x2a1f19(0x169)]()[_0x2a1f19(0x24d)],_0x24d2ed={..._0x4fe490},_0x2fb5e4={'shapeId':_0x15235c['shapeId'],'cxnIndex':_0x15235c[_0x2a1f19(0x4a9)]};_0x8a1b6e?(_0x24d2ed['from']=_0x2fb5e4,_0x24d2ed['to']=_0x8722ff):(_0x24d2ed[_0x2a1f19(0x198)]=_0x8722ff,_0x24d2ed['to']=_0x2fb5e4);let _0x1456c6={'unitId':this[_0x2a1f19(0x2e3)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x2a1f19(0x1ed)],'width':_0x17525c[_0x2a1f19(0x2ac)][_0x2a1f19(0x302)],'height':_0x17525c['worldRect'][_0x2a1f19(0x474)],'left':_0x17525c[_0x2a1f19(0x2ac)][_0x2a1f19(0x371)],'top':_0x17525c[_0x2a1f19(0x2ac)][_0x2a1f19(0x4f5)],'flipX':_0x17525c[_0x2a1f19(0x2ac)]['flipX']||!0x1,'flipY':_0x17525c[_0x2a1f19(0x2ac)][_0x2a1f19(0x4fe)]||!0x1,'oldAdjustValues':_0x58784d,'newAdjustValues':_0x17525c[_0x2a1f19(0x18d)],'newLineType':_0x17525c[_0x2a1f19(0x48e)],'rotation':_0x17525c[_0x2a1f19(0x3d1)],'oldRelation':_0x4fe490,'newRelation':_0x24d2ed};this[_0x2a1f19(0x480)][_0x2a1f19(0x134)](_0xb19349[_0x2a1f19(0x441)]['id'],_0x1456c6);}[_0xa608a8(0x4a3)](_0x37783b,_0xd653c2,_0x392e09,_0xf45f99){const _0x99a802=_0xa608a8;let _0x5d31d9=this[_0x99a802(0x240)][_0x99a802(0x169)]()['relation'],_0x7263e9={};_0x392e09?(_0x7263e9['to']=_0xd653c2,_0x7263e9[_0x99a802(0x198)]=void 0x0):(_0x7263e9[_0x99a802(0x198)]=_0xd653c2,_0x7263e9['to']=void 0x0);let _0xefe3a8={'unitId':this[_0x99a802(0x2e3)],'subUnitId':this[_0x99a802(0x2f5)],'connectorShapeId':this[_0x99a802(0x1ed)],'width':_0x37783b[_0x99a802(0x2ac)][_0x99a802(0x302)],'height':_0x37783b[_0x99a802(0x2ac)][_0x99a802(0x474)],'left':_0x37783b[_0x99a802(0x2ac)][_0x99a802(0x371)],'top':_0x37783b[_0x99a802(0x2ac)]['top'],'flipX':_0x37783b[_0x99a802(0x2ac)]['flipX']||!0x1,'flipY':_0x37783b[_0x99a802(0x2ac)]['flipY']||!0x1,'oldAdjustValues':_0xf45f99,'newAdjustValues':_0x37783b[_0x99a802(0x18d)],'newLineType':_0x37783b[_0x99a802(0x48e)],'rotation':_0x37783b[_0x99a802(0x3d1)],'oldRelation':_0x5d31d9,'newRelation':_0x7263e9};this[_0x99a802(0x480)]['executeCommand'](_0xb19349[_0x99a802(0x441)]['id'],_0xefe3a8);}[_0xa608a8(0x29b)](_0x58c1f4,_0x2b0882,_0x1dbfc0){const _0xfe233d=_0xa608a8;this[_0xfe233d(0x322)]((0x0,_0x244243[_0xfe233d(0x45a)])(_0x58c1f4[_0xfe233d(0x344)]['subscribeEvent']((_0x351fcc,_0x527e41)=>{const _0x46716d=_0xfe233d;let _0x4274ae=_0x58c1f4[_0x46716d(0x18a)]();if(this[_0x46716d(0x240)]=this[_0x46716d(0x524)][_0x46716d(0x335)](_0x4274ae[_0x46716d(0x284)],_0x4274ae[_0x46716d(0x226)],_0x4274ae['drawingId']),!this[_0x46716d(0x240)])return;let _0x4b6c39={};this[_0x46716d(0x240)][_0x46716d(0x2f4)]()[_0x46716d(0x2ce)](_0x452f8e=>{const _0x3c6204=_0x46716d;let _0x3e8c50=this[_0x3c6204(0x240)]['getAdjustValueByName'](_0x452f8e);_0x3e8c50!==void 0x0&&(_0x4b6c39[_0x452f8e]=_0x3e8c50);});let _0x47d867=this[_0x46716d(0x20a)]();if(!_0x47d867)return;this['_baseDrawingRect']={..._0x47d867};let _0x5f3b6c=new _0x11e0df[(_0x46716d(0x3f0))](this[_0x46716d(0x4b0)]),_0x294b12=(0x0,_0x43c769[_0x46716d(0x280)])({'unitId':this['_unitId'],'subUnitId':this[_0x46716d(0x2f5)],'drawingId':this['_activeShapeId']}),_0x4e989f=_0x2b0882[_0x46716d(0x47f)](_0x294b12);this[_0x46716d(0x1ac)]=!0x0,_0x2b0882[_0x46716d(0x40d)](),this['_sheetBasicShapeConnectionPointController'][_0x46716d(0x1fe)](_0x2b0882,this[_0x46716d(0x2e3)],this[_0x46716d(0x2f5)],this[_0x46716d(0x1ed)]),this[_0x46716d(0x3bb)]=null;let _0x120976=this['_activeShapeModel'][_0x46716d(0x4aa)](),_0x2454f2=_0x120976[0x0],_0x129852=_0x120976[_0x120976['length']-0x1],_0x19ff09=_0x1dbfc0?_0x5f3b6c[_0x46716d(0x20c)](_0x129852):_0x5f3b6c[_0x46716d(0x20c)](_0x2454f2);this[_0x46716d(0x4a4)]=_0x2b0882['onPointerMove$']['subscribeEvent']((_0x2feebf,_0x337272)=>{const _0x3fb148=_0x46716d;if(!this[_0x3fb148(0x1ac)]||!this[_0x3fb148(0x240)])return;this[_0x3fb148(0x185)]||=(this[_0x3fb148(0x199)]['clearAdjustControls'](),this[_0x3fb148(0x240)][_0x3fb148(0x41b)](),!0x0);let _0x439c83=this[_0x3fb148(0x412)](this[_0x3fb148(0x2e3)],this['_subUnitId']),_0x518e9b=this[_0x3fb148(0x1d0)](this[_0x3fb148(0x2e3)],this[_0x3fb148(0x2f5)]),_0x2c9552={'x':_0x2feebf['offsetX']/_0x518e9b+_0x439c83['x'],'y':_0x2feebf[_0x3fb148(0x32d)]/_0x518e9b+_0x439c83['y']},_0xa45b9f=this[_0x3fb148(0x3db)][_0x3fb148(0x119)](_0x2c9552);if(_0xa45b9f){let {shapeId:_0x20d237,unitId:_0xd4389d,subUnitId:_0x309439}=_0xa45b9f;if(_0x20d237&&_0xd4389d&&_0x309439){let _0x4410c5=(0x0,_0x43c769[_0x3fb148(0x280)])({'unitId':_0xd4389d,'subUnitId':_0x309439,'drawingId':_0x20d237});_0xa45b9f[_0x3fb148(0x3b9)]=(_0x2b0882['getObjectIncludeInGroup'](_0x4410c5)[_0x3fb148(0x3b9)]||0x0)+_0xa45b9f['angle'];}}this['_currentConnectionTarget']=_0xa45b9f;let _0x4442fd=_0x1dbfc0?this['_activeShapeModel'][_0x3fb148(0x4a8)]():this['_activeShapeModel'][_0x3fb148(0x3c6)]();_0x4442fd?this['_handleConnectedEndpointMove'](_0x4442fd,_0x2c9552,_0x1dbfc0,_0x4e989f,_0x58c1f4):this[_0x3fb148(0x42e)](_0x2c9552,_0x19ff09,_0x1dbfc0,_0x4e989f,_0x58c1f4);}),this['_cxtHandlerPointerUp']=_0x2b0882['onPointerUp$'][_0x46716d(0x1ef)]((_0x3893a0,_0x29af93)=>{this['_handleConnectorPointerUp'](_0x2b0882,_0x19ff09,_0x3893a0,_0x1dbfc0,_0x4b6c39);}),_0x527e41['stopPropagation']();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x2cfdf7,_0x29c95c,_0x4475ac){const _0x322519=_0xa608a8;let _0x57a1ad=this[_0x322519(0x524)][_0x322519(0x145)](_0x2cfdf7,_0x29c95c,_0x4475ac);if(!_0x57a1ad||_0x57a1ad['length']===0x0)return;let _0x18e3a0=this[_0x322519(0x23d)][_0x322519(0x236)](_0x2cfdf7);if(!_0x18e3a0)return;let {scene:_0x3356b2}=_0x18e3a0;for(let _0xb4b53b of _0x57a1ad){let _0x4c3d8e=_0xb4b53b[_0x322519(0x129)],_0x3804e7=this[_0x322519(0x524)][_0x322519(0x335)](_0x2cfdf7,_0x29c95c,_0x4c3d8e);if(!_0x3804e7)continue;let _0x504121=_0x3804e7[_0x322519(0x3c6)](),_0x151253=_0x3804e7['getEndConnectInfo'](),_0x116b2d=(_0x504121==null?void 0x0:_0x504121[_0x322519(0x3d5)])===_0x4475ac,_0x24d1e9=(0x0,_0x43c769[_0x322519(0x280)])({'unitId':_0x2cfdf7,'subUnitId':_0x29c95c,'drawingId':_0x4c3d8e}),_0x412570=_0x3356b2['getObjectIncludeInGroup'](_0x24d1e9);if(!_0x412570)continue;let _0x572ff0=this[_0x322519(0x3d7)][_0x322519(0x462)]({'unitId':_0x2cfdf7,'subUnitId':_0x29c95c,'drawingId':_0x4c3d8e});_0x572ff0!=null&&_0x572ff0[_0x322519(0x31b)]&&(_0x504121&&_0x151253?this[_0x322519(0x286)](_0x2cfdf7,_0x29c95c,_0x4c3d8e,_0x3804e7,_0x504121,_0x151253,_0x412570):this[_0x322519(0x47e)](_0x2cfdf7,_0x29c95c,_0x4c3d8e,_0x3804e7,_0x116b2d?_0x504121:_0x151253,_0x116b2d,_0x572ff0,_0x412570));}}[_0xa608a8(0x286)](_0x1deaa3,_0x1c61bc,_0xc33fad,_0x2a231b,_0x3d8cbf,_0x116174,_0x339562){const _0x1be08b=_0xa608a8;let _0x3cf07a=this[_0x1be08b(0x2e3)],_0x324b60=this[_0x1be08b(0x2f5)];this[_0x1be08b(0x2e3)]=_0x1deaa3,this[_0x1be08b(0x2f5)]=_0x1c61bc;let _0x42f7d1=this[_0x1be08b(0x2f0)](_0x3d8cbf),_0x35ac00=this[_0x1be08b(0x2f0)](_0x116174);if(this[_0x1be08b(0x2e3)]=_0x3cf07a,this['_subUnitId']=_0x324b60,!_0x42f7d1||!_0x35ac00)return;let _0x419d32=_0x2a231b[_0x1be08b(0x4e2)](),_0x29bd25=(0x0,_0x11e0df[_0x1be08b(0x387)])(_0x42f7d1,_0x35ac00,_0x419d32);_0x29bd25&&_0x2a231b['updateLinePoints'](_0x29bd25);let _0xaec0d6=(0x0,_0x11e0df[_0x1be08b(0x3a9)])(_0x29bd25,_0x419d32);_0xaec0d6[_0x1be08b(0x48e)]!==_0x419d32&&_0x2a231b['changeShapeType'](_0xaec0d6[_0x1be08b(0x48e)]),_0x2a231b[_0x1be08b(0x41b)]();for(let [_0x103792,_0x31f99f]of Object['entries'](_0xaec0d6[_0x1be08b(0x18d)]))_0x2a231b[_0x1be08b(0x2c4)](_0x103792,_0x31f99f);_0x2a231b[_0x1be08b(0x30c)]({'width':_0xaec0d6[_0x1be08b(0x2ac)]['width'],'height':_0xaec0d6['worldRect'][_0x1be08b(0x474)]}),_0x339562[_0x1be08b(0x27d)]({'flipX':_0xaec0d6[_0x1be08b(0x2ac)][_0x1be08b(0x4ff)],'flipY':_0xaec0d6[_0x1be08b(0x2ac)][_0x1be08b(0x4fe)],'left':_0xaec0d6['worldRect'][_0x1be08b(0x371)],'top':_0xaec0d6[_0x1be08b(0x2ac)][_0x1be08b(0x4f5)],'width':_0xaec0d6[_0x1be08b(0x2ac)][_0x1be08b(0x302)],'height':_0xaec0d6[_0x1be08b(0x2ac)][_0x1be08b(0x474)],'angle':_0xaec0d6[_0x1be08b(0x3d1)]}),_0x2a231b[_0x1be08b(0x517)]();}[_0xa608a8(0x47e)](_0x230724,_0x475de5,_0x2a96a1,_0x198738,_0x2cded9,_0x37705e,_0x5e3013,_0x3a1b4a){const _0x102c2f=_0xa608a8;let _0x1c900b=this[_0x102c2f(0x2e3)],_0x43c1ac=this['_subUnitId'];this[_0x102c2f(0x2e3)]=_0x230724,this[_0x102c2f(0x2f5)]=_0x475de5;let _0x85ce06=this['_getConnectPointInfo'](_0x2cded9);if(this['_unitId']=_0x1c900b,this[_0x102c2f(0x2f5)]=_0x43c1ac,!_0x85ce06)return;let {left:_0x3a146a=0x0,top:_0x142f04=0x0,width:_0x591bd4=0x0,height:_0x576952=0x0,flipX:_0x548051=!0x1,flipY:_0x5c3ce6=!0x1}=_0x5e3013['transform'],_0x56901d=_0x198738['getConnectorLinePoints']();if(_0x56901d[_0x102c2f(0x225)]<0x2)return;let _0x1ec972=new _0x11e0df[(_0x102c2f(0x3f0))]({'left':_0x3a146a,'top':_0x142f04,'width':_0x591bd4,'height':_0x576952,'flipX':_0x548051,'flipY':_0x5c3ce6}),_0x4d840c=_0x37705e?_0x56901d[_0x56901d[_0x102c2f(0x225)]-0x1]:_0x56901d[0x0],_0x236697=_0x1ec972[_0x102c2f(0x20c)](_0x4d840c),_0x2cb6be=_0x11e0df['ConnectorCoordinateTransform'][_0x102c2f(0x395)](_0x236697,_0x85ce06[_0x102c2f(0x133)],!_0x37705e);_0x3a1b4a[_0x102c2f(0x27d)]({'flipX':_0x2cb6be[_0x102c2f(0x2ac)][_0x102c2f(0x4ff)],'flipY':_0x2cb6be[_0x102c2f(0x2ac)][_0x102c2f(0x4fe)],'left':_0x2cb6be[_0x102c2f(0x2ac)][_0x102c2f(0x371)],'top':_0x2cb6be[_0x102c2f(0x2ac)][_0x102c2f(0x4f5)],'width':_0x2cb6be[_0x102c2f(0x2ac)][_0x102c2f(0x302)],'height':_0x2cb6be[_0x102c2f(0x2ac)][_0x102c2f(0x474)],'angle':_0x2cb6be['worldRect'][_0x102c2f(0x3b9)]}),_0x3a1b4a[_0x102c2f(0x476)](!0x0);}[_0xa608a8(0x1c4)](){const _0x20ca4f=_0xa608a8;this[_0x20ca4f(0x121)][_0x20ca4f(0x225)]!==0x0&&(this['_connectorObjects']['forEach'](_0x1ec98f=>{const _0x249d76=_0x20ca4f;_0x1ec98f[_0x249d76(0x11e)]();}),this[_0x20ca4f(0x121)]=[]);}[_0xa608a8(0x497)](){const _0x1cdbfb=_0xa608a8;let _0x203586=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x244243[_0x1cdbfb(0x10a)][_0x1cdbfb(0x127)]);this[_0x1cdbfb(0x322)](_0x203586['pipe']((0x0,_0x38f817['switchMap'])(_0x1db16a=>_0x1db16a?_0x1db16a[_0x1cdbfb(0x2de)][_0x1cdbfb(0x288)]((0x0,_0x38f817[_0x1cdbfb(0x14c)])(_0x7d2220=>{const _0x434d83=_0x1cdbfb;if(!_0x7d2220)return _0x38f817[_0x434d83(0x3be)];let _0x11f46f=_0x1db16a[_0x434d83(0x244)](),_0x5c4737=this[_0x434d83(0x23d)][_0x434d83(0x236)](_0x11f46f),_0x50dc14=_0x5c4737==null?void 0x0:_0x5c4737[_0x434d83(0x419)];return _0x50dc14?(0x0,_0x38f817['of'])(_0x50dc14):_0x38f817['EMPTY'];})):_0x38f817['EMPTY']))[_0x1cdbfb(0x376)](_0x1582ee=>{const _0x1818ae=_0x1cdbfb;let _0x3b0acf=_0x1582ee['getTransformerByCreate']();this[_0x1818ae(0x322)](_0x1582ee[_0x1818ae(0x486)]['subscribeEvent'](_0x3e60f5=>{const _0x332fae=_0x1818ae;this[_0x332fae(0x4e8)]&&this[_0x332fae(0x1ed)]&&this[_0x332fae(0x1c4)]();})),this['disposeWithMe'](_0x3b0acf[_0x1818ae(0x4dd)][_0x1818ae(0x376)](_0xbbb8c3=>{const _0xfef3b6=_0x1818ae;let {objects:_0x3f0a8c}=_0xbbb8c3;this[_0xfef3b6(0x1c4)](),_0x3f0a8c!==null&&_0x3f0a8c[_0xfef3b6(0x13f)]===0x1&&_0x3f0a8c[_0xfef3b6(0x48d)]()[_0xfef3b6(0x159)]()[_0xfef3b6(0x496)]instanceof _0x5ee4ee&&(this[_0xfef3b6(0x4e8)]=!0x0);})),this[_0x1818ae(0x322)](_0x3b0acf['changing$'][_0x1818ae(0x376)](_0x34e09f=>{const _0x133d40=_0x1818ae;this[_0x133d40(0x4e8)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x1818ae(0x322)](_0x1582ee[_0x1818ae(0x435)]['subscribeEvent'](()=>{const _0x2ead31=_0x1818ae;this[_0x2ead31(0x4e8)]&&(this[_0x2ead31(0x4e8)]=!0x1,this[_0x2ead31(0x36b)]());})),this[_0x1818ae(0x322)](_0x3b0acf[_0x1818ae(0x1e7)][_0x1818ae(0x376)](()=>{const _0x558f70=_0x1818ae;this[_0x558f70(0x2e3)]&&this['_subUnitId']&&this['_activeShapeId']&&this[_0x558f70(0x3d7)][_0x558f70(0x462)]({'unitId':this[_0x558f70(0x2e3)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x558f70(0x1ed)]})&&(this[_0x558f70(0x1c4)](),this[_0x558f70(0x36b)]());}));}));}[_0xa608a8(0x1db)](){const _0x15bbd1=_0xa608a8;this[_0x15bbd1(0x322)](this[_0x15bbd1(0x3d7)][_0x15bbd1(0x17f)][_0x15bbd1(0x376)](_0x54855e=>{const _0x3c4e81=_0x15bbd1;if(_0x54855e[_0x3c4e81(0x225)]===0x1){let _0x20f74e=_0x54855e[0x0];if(_0x20f74e[_0x3c4e81(0x351)]===_0x244243[_0x3c4e81(0x138)][_0x3c4e81(0x4e9)]){let _0xf512cd=this[_0x3c4e81(0x524)][_0x3c4e81(0x335)](_0x20f74e[_0x3c4e81(0x284)],_0x20f74e[_0x3c4e81(0x226)],_0x20f74e[_0x3c4e81(0x2b5)]);if(_0xf512cd&&(0x0,_0x11e0df[_0x3c4e81(0x42a)])(_0xf512cd[_0x3c4e81(0x4e2)]())){this[_0x3c4e81(0x1ed)]=_0x20f74e[_0x3c4e81(0x2b5)],this['_unitId']=_0x20f74e[_0x3c4e81(0x284)],this[_0x3c4e81(0x2f5)]=_0x20f74e[_0x3c4e81(0x226)],this['_clearShapeConnectorHandlerObjects'](),this[_0x3c4e81(0x36b)]();return;}}}this['_activeShapeId']=void 0x0,this[_0x3c4e81(0x2e3)]=void 0x0,this[_0x3c4e81(0x2f5)]=void 0x0,this[_0x3c4e81(0x1c4)]();})),this[_0x15bbd1(0x322)](this['_drawingManagerService'][_0x15bbd1(0x1ad)][_0x15bbd1(0x376)](_0x488d3a=>{const _0x447ff3=_0x15bbd1;if(_0x488d3a[_0x447ff3(0x225)]===0x1){var _0x242b8a;let _0x3dadce=_0x488d3a[0x0],_0x1adb3d=(_0x242b8a=this[_0x447ff3(0x3d7)]['getDrawingByParam'](_0x3dadce))==null?void 0x0:_0x242b8a[_0x447ff3(0x351)];_0x1adb3d===_0x244243[_0x447ff3(0x138)]['DRAWING_SHAPE']&&_0x3dadce[_0x447ff3(0x2b5)]===this[_0x447ff3(0x1ed)]?(this[_0x447ff3(0x1c4)](),this[_0x447ff3(0x36b)]()):!this[_0x447ff3(0x1ed)]&&_0x1adb3d===_0x244243[_0x447ff3(0x138)]['DRAWING_SHAPE']&&this[_0x447ff3(0x2cb)](_0x3dadce[_0x447ff3(0x284)],_0x3dadce['subUnitId'],_0x3dadce[_0x447ff3(0x2b5)]);}})),this[_0x15bbd1(0x322)](this[_0x15bbd1(0x3d7)][_0x15bbd1(0x1d5)][_0x15bbd1(0x376)](_0x5b4ce2=>{const _0x4a002c=_0x15bbd1;for(let _0x32debe of _0x5b4ce2){let {drawingId:_0x48a53c}=_0x32debe;if(this['_activeShapeId']===_0x48a53c){this[_0x4a002c(0x1f3)]();return;}}}));}[_0xa608a8(0x51d)](_0x11cd4a,_0x154cc1,_0x8969c8,_0x22df8b,_0x47af58){const _0x1768c2=_0xa608a8;var _0x515e2b;if(!this['_activeShapeModel'])return;let _0x1653c7=this[_0x1768c2(0x2f0)](_0x11cd4a);if(!_0x1653c7)return;let _0x5bbd51=this[_0x1768c2(0x3bb)]?this[_0x1768c2(0x3bb)]['worldPoint']:_0x154cc1,_0x53c403=this[_0x1768c2(0x3bb)]?this[_0x1768c2(0x3bb)]['angle']:this[_0x1768c2(0x2e1)](_0x1653c7[_0x1768c2(0x133)],_0x5bbd51),_0x1f8f72;if(this[_0x1768c2(0x3bb)]){let _0x2619ff=this[_0x1768c2(0x3d7)][_0x1768c2(0x462)]({'unitId':this[_0x1768c2(0x3bb)][_0x1768c2(0x284)],'subUnitId':this[_0x1768c2(0x3bb)][_0x1768c2(0x226)],'drawingId':this['_currentConnectionTarget'][_0x1768c2(0x3d5)]});if(_0x2619ff!=null&&_0x2619ff[_0x1768c2(0x31b)]){let {left:_0x3d03a1=0x0,top:_0x4d769b=0x0,width:_0xce8396=0x0,height:_0x1f80d3=0x0,angle:_0x31b564}=_0x2619ff[_0x1768c2(0x31b)];_0x1f8f72=(0x0,_0x11e0df[_0x1768c2(0x2e0)])({'left':_0x3d03a1,'top':_0x4d769b,'width':_0xce8396,'height':_0x1f80d3},_0x31b564||0x0);}else _0x1f8f72={'left':_0x5bbd51['x'],'top':_0x5bbd51['y'],'width':0x0,'height':0x0};}else _0x1f8f72={'left':_0x5bbd51['x'],'top':_0x5bbd51['y'],'width':0x0,'height':0x0};let _0x576f02={'point':_0x5bbd51,'angle':_0x53c403,'bounds':_0x1f8f72},_0x1801b4=_0x8969c8?_0x576f02:_0x1653c7,_0x44e619=_0x8969c8?_0x1653c7:_0x576f02,_0x1ffe31=this[_0x1768c2(0x240)][_0x1768c2(0x4e2)](),_0x9d5058=(0x0,_0x11e0df[_0x1768c2(0x387)])(_0x1801b4,_0x44e619,_0x1ffe31);_0x9d5058&&this[_0x1768c2(0x240)]['updateLinePoints'](_0x9d5058);let _0x33a313=(0x0,_0x11e0df[_0x1768c2(0x3a9)])(_0x9d5058,_0x1ffe31);_0x33a313[_0x1768c2(0x48e)]!==_0x1ffe31&&this[_0x1768c2(0x240)][_0x1768c2(0x222)](_0x33a313['lineType']);for(let [_0x123c94,_0x3b29a5]of Object[_0x1768c2(0x3b2)](_0x33a313[_0x1768c2(0x18d)]))this['_activeShapeModel'][_0x1768c2(0x2c4)](_0x123c94,_0x3b29a5);this[_0x1768c2(0x240)][_0x1768c2(0x30c)]({'width':_0x33a313['worldRect'][_0x1768c2(0x302)],'height':_0x33a313[_0x1768c2(0x2ac)][_0x1768c2(0x474)]}),_0x22df8b[_0x1768c2(0x27d)]({'flipX':_0x33a313[_0x1768c2(0x2ac)][_0x1768c2(0x4ff)],'flipY':_0x33a313[_0x1768c2(0x2ac)][_0x1768c2(0x4fe)],'left':_0x33a313[_0x1768c2(0x2ac)]['left'],'top':_0x33a313[_0x1768c2(0x2ac)][_0x1768c2(0x4f5)],'width':_0x33a313[_0x1768c2(0x2ac)][_0x1768c2(0x302)],'height':_0x33a313[_0x1768c2(0x2ac)]['height'],'angle':_0x33a313['rotation']}),_0x22df8b['makeDirty'](!0x0);let _0x155b59=((_0x515e2b=this['_currentConnectionTarget'])==null?void 0x0:_0x515e2b['worldPoint'])??_0x154cc1;_0x47af58[_0x1768c2(0x27d)]({'left':_0x155b59['x']-_0x11e0df[_0x1768c2(0x4bb)][_0x1768c2(0x128)],'top':_0x155b59['y']-_0x11e0df['ShapeDefaultConfig'][_0x1768c2(0x128)]});}[_0xa608a8(0x42e)](_0x96a0c6,_0x4a4cc7,_0x4f0357,_0x28230d,_0x344758){const _0x4afaf4=_0xa608a8;var _0x3d3155,_0x31f108;let _0x2c4d0f=((_0x3d3155=this[_0x4afaf4(0x3bb)])==null?void 0x0:_0x3d3155[_0x4afaf4(0x1aa)])??_0x96a0c6,_0x496000=_0x11e0df['ConnectorCoordinateTransform'][_0x4afaf4(0x395)](_0x4a4cc7,_0x2c4d0f,_0x4f0357);_0x28230d['transformByState']({'flipX':_0x496000[_0x4afaf4(0x2ac)][_0x4afaf4(0x4ff)],'flipY':_0x496000[_0x4afaf4(0x2ac)][_0x4afaf4(0x4fe)],'left':_0x496000['worldRect'][_0x4afaf4(0x371)],'top':_0x496000[_0x4afaf4(0x2ac)]['top'],'width':_0x496000[_0x4afaf4(0x2ac)][_0x4afaf4(0x302)],'height':_0x496000[_0x4afaf4(0x2ac)]['height'],'angle':_0x496000[_0x4afaf4(0x2ac)][_0x4afaf4(0x3b9)]});let _0x3cf43f=((_0x31f108=this[_0x4afaf4(0x3bb)])==null?void 0x0:_0x31f108[_0x4afaf4(0x1aa)])??_0x96a0c6;_0x344758['transformByState']({'left':_0x3cf43f['x']-_0x11e0df[_0x4afaf4(0x4bb)][_0x4afaf4(0x128)],'top':_0x3cf43f['y']-_0x11e0df['ShapeDefaultConfig']['cxnPointRadius']});}['_getConnectPointInfo'](_0x1f094a){const _0x456308=_0xa608a8;if(!this[_0x456308(0x2e3)]||!this['_subUnitId'])return null;let {shapeId:_0x35dd21,cxnIndex:_0x47de77}=_0x1f094a,_0x24941d=this['_sheetsShapeService'][_0x456308(0x335)](this['_unitId'],this[_0x456308(0x2f5)],_0x35dd21);if(!_0x24941d)return null;let _0x1844f2=this[_0x456308(0x3d7)][_0x456308(0x462)]({'unitId':this[_0x456308(0x2e3)],'subUnitId':this['_subUnitId'],'drawingId':_0x35dd21});if(!(_0x1844f2!=null&&_0x1844f2[_0x456308(0x31b)]))return null;let {left:_0x317fbb=0x0,top:_0x18f1c2=0x0,width:_0x26a2cb=0x0,height:_0x362a7c=0x0,flipX:_0x56e955=!0x1,flipY:_0xc2ed60=!0x1,angle:_0x398db7}=_0x1844f2[_0x456308(0x31b)];_0x24941d[_0x456308(0x30c)]({'width':_0x26a2cb,'height':_0x362a7c});let _0x4f0dd4=_0x24941d[_0x456308(0x35e)]()[_0x456308(0x3c7)](_0x59f9a8=>_0x59f9a8[_0x456308(0x293)]===_0x47de77);if(!_0x4f0dd4)return null;let _0x4dda12=_0x56e955?_0x26a2cb-_0x4f0dd4['x']:_0x4f0dd4['x'],_0x357e16=_0xc2ed60?_0x362a7c-_0x4f0dd4['y']:_0x4f0dd4['y'];if(_0x398db7!==0x0&&_0x398db7!=null){let _0x5ccaa7=_0x398db7*Math['PI']/0xb4,_0x55cbaf=Math[_0x456308(0x26c)](_0x5ccaa7),_0x44d291=Math['sin'](_0x5ccaa7),_0x5755fc=_0x26a2cb/0x2,_0x1ec2c3=_0x362a7c/0x2,_0x7ac17d=_0x4dda12-_0x5755fc,_0x4a2e7a=_0x357e16-_0x1ec2c3;_0x4dda12=_0x5755fc+_0x7ac17d*_0x55cbaf-_0x4a2e7a*_0x44d291,_0x357e16=_0x1ec2c3+_0x7ac17d*_0x44d291+_0x4a2e7a*_0x55cbaf;}_0x4dda12+=_0x317fbb,_0x357e16+=_0x18f1c2;let _0x2aa693=_0x4f0dd4[_0x456308(0x424)]/0xea60;_0x56e955&&(_0x2aa693=0xb4-_0x2aa693),_0xc2ed60&&(_0x2aa693=-_0x2aa693),_0x2aa693+=_0x398db7||0x0,_0x2aa693=(_0x2aa693%0x168+0x168)%0x168;let _0x35cad3=(0x0,_0x11e0df['getBasicShapeRotateBound'])({'left':_0x317fbb,'top':_0x18f1c2,'width':_0x26a2cb,'height':_0x362a7c},_0x398db7||0x0);return{'point':{'x':_0x4dda12,'y':_0x357e16},'angle':_0x2aa693,'bounds':_0x35cad3};}[_0xa608a8(0x2e1)](_0x59f32c,_0x1ea39a){const _0x971b2f=_0xa608a8;let _0x4a67fe=_0x1ea39a['x']-_0x59f32c['x'],_0x478c9f=_0x1ea39a['y']-_0x59f32c['y'];return Math[_0x971b2f(0x19b)](_0x4a67fe)>=Math[_0x971b2f(0x19b)](_0x478c9f)?_0x4a67fe>=0x0?0xb4:0x0:_0x478c9f>=0x0?0x10e:0x5a;}[_0xa608a8(0x1f3)](){const _0x370dcf=_0xa608a8;this['_activeShapeId']=void 0x0,this['_unitId']=void 0x0,this[_0x370dcf(0x2f5)]=void 0x0,this[_0x370dcf(0x1c4)]();}[_0xa608a8(0x11e)](){const _0x570db=_0xa608a8;this[_0x570db(0x1c4)](),super['dispose']();}};_0x3e8676=_0x4cddfe([_0x542dc8(0x1,_0x244243[_0xa608a8(0x2d0)]),_0x542dc8(0x2,_0x559311[_0xa608a8(0x306)]),_0x542dc8(0x3,_0x43c769['IDrawingManagerService']),_0x542dc8(0x4,_0x244243[_0xa608a8(0x39a)]),_0x542dc8(0x5,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0xb19349[_0xa608a8(0x439)])),_0x542dc8(0x6,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x35cd7c)),_0x542dc8(0x7,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x582783))],_0x3e8676);let _0x344863=class extends _0x244243[_0xa608a8(0x2a8)]{constructor(_0x2b26e8,_0x3aa558,_0xac7aaf){const _0x54cc2e=_0xa608a8;super(),this['_sheetPrintInterceptorService']=_0x2b26e8,this[_0x54cc2e(0x3d7)]=_0x3aa558,this[_0x54cc2e(0x4b7)]=_0xac7aaf,this[_0x54cc2e(0x265)]();}['_initPrinting'](){const _0x5761d3=_0xa608a8;this[_0x5761d3(0x322)](this['_sheetPrintInterceptorService'][_0x5761d3(0x4fd)][_0x5761d3(0x2d3)](this[_0x5761d3(0x3d2)]['interceptor'][_0x5761d3(0x4c1)]()[_0x5761d3(0x41d)],{'handler':(_0x56205b,_0xfa0f1c,_0x320219)=>{const _0x2a27c7=_0x5761d3;var _0x8c3e3;let {unitId:_0x21e279,subUnitId:_0x20cff1,scene:_0x5cdfa8,resourceCollector:_0x5c5039}=_0xfa0f1c,_0xd5a232=(_0x8c3e3=this['_drawingManagerService'][_0x2a27c7(0x11c)](_0x21e279))==null?void 0x0:_0x8c3e3[_0x20cff1];return _0xd5a232==null||_0xd5a232['order'][_0x2a27c7(0x2ce)](_0x1a8c3f=>{const _0x1f0f66=_0x2a27c7;let _0x534f07=_0xd5a232['data'][_0x1a8c3f];_0x534f07[_0x1f0f66(0x351)]===_0x244243['DrawingTypeEnum'][_0x1f0f66(0x4e9)]&&!_0x534f07[_0x1f0f66(0x473)]&&this[_0x1f0f66(0x4b7)][_0x1f0f66(0x3de)](_0x534f07,_0x5cdfa8,{'resourceCollector':_0x5c5039});}),_0x320219(_0x56205b);}}));}};_0x344863=_0x4cddfe([_0x542dc8(0x0,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x180b4c[_0xa608a8(0x35c)])),_0x542dc8(0x1,_0x43c769[_0xa608a8(0x334)]),_0x542dc8(0x2,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x4f6784))],_0x344863);let _0x29ce99=class extends _0x244243[_0xa608a8(0x2a8)]{constructor(_0x39bf8b,_0x205abf,_0x185d0b,_0x177026){const _0x5039c6=_0xa608a8;super(),this['_commandService']=_0x39bf8b,this[_0x5039c6(0x1e8)]=_0x205abf,this[_0x5039c6(0x15a)]=_0x185d0b,this[_0x5039c6(0x108)]=_0x177026,this[_0x5039c6(0x2b0)]();}['_initPermission'](){const _0x335b92=_0xa608a8;let _0x5d2c5d=new Set([_0x4a2843['id'],_0xb19349[_0x335b92(0x44b)]['id'],_0xb19349['SetSheetsShapeRotateCommand']['id'],_0xb19349[_0x335b92(0x4fb)]['id'],_0xb19349[_0x335b92(0x309)]['id']]);this[_0x335b92(0x322)](this[_0x335b92(0x480)][_0x335b92(0x446)](_0x5b3e49=>{const _0x23a45c=_0x335b92;let _0x298bc3,_0xdb9bf3;if(_0x5b3e49['id']===_0xb19349[_0x23a45c(0x4ee)]['id']||_0x5b3e49['id']===_0xb19349[_0x23a45c(0x526)]['id']||_0x5b3e49['id']===_0xb19349[_0x23a45c(0x441)]['id']){let _0x555418=_0x5b3e49[_0x23a45c(0x131)];_0x298bc3=_0x555418['unitId'],_0xdb9bf3=_0x555418[_0x23a45c(0x226)];}else{if(_0x5d2c5d['has'](_0x5b3e49['id'])){let _0x9d2dde=(0x0,_0x126f61[_0x23a45c(0x4f6)])(this[_0x23a45c(0x1e8)],_0x5b3e49[_0x23a45c(0x131)]);if((_0x9d2dde==null?void 0x0:_0x9d2dde['worksheet'][_0x23a45c(0x3a1)]()[_0x23a45c(0x297)])!==_0x244243[_0x23a45c(0x1c5)][_0x23a45c(0x23f)])return;_0x298bc3=_0x9d2dde['unitId'],_0xdb9bf3=_0x9d2dde['subUnitId'];}}_0x298bc3&&_0xdb9bf3&&(this[_0x23a45c(0x108)][_0x23a45c(0x2f2)]({'workbookTypes':[_0x126f61['WorkbookEditablePermission']],'worksheetTypes':[_0x126f61[_0x23a45c(0x2fb)]]},_0x298bc3,_0xdb9bf3)||this[_0x23a45c(0x108)]['blockExecuteWithoutPermission'](this[_0x23a45c(0x15a)]['t']('sheets-shape-ui.permission.editErr')));}));}};_0x29ce99=_0x4cddfe([_0x542dc8(0x0,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x244243['ICommandService'])),_0x542dc8(0x1,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x244243[_0xa608a8(0x39a)])),_0x542dc8(0x2,(0x0,_0x244243['Inject'])(_0x244243[_0xa608a8(0x38e)])),_0x542dc8(0x3,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x126f61[_0xa608a8(0x30d)]))],_0x29ce99);let _0x3dc45c=class{constructor(_0x3c33bc){const _0x26f519=_0xa608a8;this[_0x26f519(0x23d)]=_0x3c33bc;}[_0xa608a8(0x2e4)](_0x551dd4,_0x58439a){const _0xa212ab=_0xa608a8;let _0x4f42b6=this['_renderManagerService'][_0xa212ab(0x236)](_0x551dd4[_0xa212ab(0x284)]),_0x593f21=_0x4f42b6==null?void 0x0:_0x4f42b6[_0xa212ab(0x419)];if(!_0x593f21)return;let _0x4a1e08=(0x0,_0x43c769['getDrawingShapeKeyByDrawingSearch'])(_0x551dd4),_0xf700ea=_0x593f21[_0xa212ab(0x47f)](_0x4a1e08);_0xf700ea==null||_0xf700ea[_0xa212ab(0x364)](_0x58439a);}};_0x3dc45c=_0x4cddfe([_0x542dc8(0x0,_0x559311[_0xa608a8(0x306)])],_0x3dc45c);let _0x4d508d=class extends _0x244243[_0xa608a8(0x365)]{constructor(_0x549af2=_0x22bbe8,_0xc90589,_0x174508,_0x121088,_0x5bce7a){const _0x232da9=_0xa608a8;super(),this[_0x232da9(0x36e)]=_0x549af2,this[_0x232da9(0x21c)]=_0xc90589,this[_0x232da9(0x480)]=_0x174508,this[_0x232da9(0x44f)]=_0x121088,this['_renderManagerService']=_0x5bce7a;let {..._0x176288}=(0x0,_0x244243[_0x232da9(0x4ce)])({},_0x22bbe8,this[_0x232da9(0x36e)]);this[_0x232da9(0x44f)][_0x232da9(0x37c)](_0xb25cac,_0x176288),this[_0x232da9(0x4c6)]();}[_0xa608a8(0x324)](){const _0x389543=_0xa608a8;this['_injector'][_0x389543(0x488)]([_0xb9a86c]),this[_0x389543(0x21c)][_0x389543(0x20b)](_0xb9a86c),(0x0,_0x244243[_0x389543(0x2d2)])(this[_0x389543(0x21c)],[[_0x5de74d],[_0x4304cd],[_0x4f6784],[_0x344863],[_0x3dc45c],[_0x4351c9],[_0x1a879a],[_0x3b876d],[_0x29ce99]]);}[_0xa608a8(0x232)](){const _0x48618a=_0xa608a8;(0x0,_0x244243[_0x48618a(0x2d2)])(this[_0x48618a(0x21c)],[[_0x582783],[_0x35cd7c],[_0x59ce19]]),(0x0,_0x244243[_0x48618a(0x120)])(this['_injector'],[[_0x59ce19],[_0x35cd7c]]),[[_0x582783],[_0x282d54],[_0x3e8676],[_0x25d7c4]][_0x48618a(0x2ce)](_0x1d92dd=>{const _0x256c81=_0x48618a;this[_0x256c81(0x322)](this['_renderManagerService'][_0x256c81(0x421)](_0x244243[_0x256c81(0x10a)][_0x256c81(0x127)],_0x1d92dd));});}[_0xa608a8(0x437)](){const _0x4a80fa=_0xa608a8;(0x0,_0x244243[_0x4a80fa(0x120)])(this[_0x4a80fa(0x21c)],[[_0x5de74d],[_0x4304cd],[_0x4f6784],[_0x344863],[_0x3dc45c],[_0x4351c9],[_0x1a879a],[_0x3b876d],[_0x29ce99]]);}[_0xa608a8(0x362)](){const _0x521434=_0xa608a8;this['_injector'][_0x521434(0x20b)](_0x5de74d)[_0x521434(0x2f3)]();}[_0xa608a8(0x4c6)](){const _0x32f1a3=_0xa608a8;[_0x2aee67,_0x4a2843,_0x5c23b1,_0x6fb12a][_0x32f1a3(0x2ce)](_0x4f17bd=>this['disposeWithMe'](this[_0x32f1a3(0x480)][_0x32f1a3(0x4ed)](_0x4f17bd)));}};_0x5b48d0(_0x4d508d,'type',_0x244243[_0xa608a8(0x10a)]['UNIVER_SHEET']),_0x5b48d0(_0x4d508d,_0xa608a8(0x3e5),_0xa608a8(0x29f)),_0x5b48d0(_0x4d508d,_0xa608a8(0x1f5),_0x28e822),_0x5b48d0(_0x4d508d,_0xa608a8(0x48f),_0x4887ee),_0x4d508d=_0x4cddfe([(0x0,_0x244243[_0xa608a8(0x13d)])(_0x3cffa1[_0xa608a8(0x400)],_0x5defe7[_0xa608a8(0x35f)],_0x43c769['UniverDrawingPlugin'],_0x559311[_0xa608a8(0x4ae)],_0x126f61['UniverSheetsPlugin'],_0x3f2843[_0xa608a8(0x3a5)],_0x29aa40[_0xa608a8(0x37b)],_0x4e6980['UniverShapeEditorPlugin'],_0x37d78b[_0xa608a8(0x430)],_0xb19349[_0xa608a8(0x111)],_0x180b4c[_0xa608a8(0x124)],_0x354392[_0xa608a8(0x207)],_0x36a73f[_0xa608a8(0x290)]),_0x542dc8(0x1,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x244243[_0xa608a8(0x330)])),_0x542dc8(0x2,_0x244243['ICommandService']),_0x542dc8(0x3,_0x244243[_0xa608a8(0x195)]),_0x542dc8(0x4,_0x559311[_0xa608a8(0x306)])],_0x4d508d);let _0x47cc56={'type':_0x244243[_0xa608a8(0x180)]['OPERATION'],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}};function _0x1ecad0(){const _0x2c46d2=_0xa608a8;let _0x23fe6b=(0x0,_0x36a73f[_0x2c46d2(0x2af)])(_0x43c769[_0x2c46d2(0x334)]),_0x184b61=(0x0,_0x36a73f[_0x2c46d2(0x521)])(()=>_0x23fe6b[_0x2c46d2(0x17f)],_0x23fe6b[_0x2c46d2(0x305)](),!0x1,[_0x23fe6b]);return _0x184b61['length']===0x0?null:(0x0,_0x1edb74['jsx'])(_0x2c46d2(0x43d),{'children':(0x0,_0x1edb74[_0x2c46d2(0x317)])(_0x2c46d2(0x43d),{'className':_0x2c46d2(0x2fa),'children':[(0x0,_0x1edb74['jsx'])(_0x4cdb25['DrawingCommonPanel'],{'drawings':_0x184b61,'hasCropper':!0x1}),(0x0,_0x1edb74[_0x2c46d2(0x4e1)])(_0x37d78b['SheetDrawingAnchor'],{'drawings':_0x184b61})]})});}function _0x55f76d(_0x57d139){const _0x41113f=_0xa608a8;let {unitId:_0x4d48f5,subUnitId:_0x187960,shapeId:_0x5d9de3}=_0x57d139,_0x3b0ef1=(0x0,_0x36a73f['useDependency'])(_0x244243['ICommandService']),_0x4b55f0=(0x0,_0x36a73f[_0x41113f(0x2af)])(_0x3dc45c);return(0x0,_0x1edb74['jsx'])(_0x354392[_0x41113f(0x509)],{..._0x57d139,'positionEditor':(0x0,_0x1edb74[_0x41113f(0x4e1)])(_0x1ecad0,{}),'onUpdateShapeData':(_0x49ee56,_0x1bcaa6)=>{_0x1f80f7(_0x3b0ef1,_0x4d48f5,_0x187960,_0x5d9de3,_0x49ee56,_0x1bcaa6);},'onUpdateLineShapeData':(_0x13e691,_0x592ef6)=>{_0x1dee54(_0x3b0ef1,_0x4d48f5,_0x187960,_0x5d9de3,_0x13e691,_0x592ef6);},'onUpdateShapeFillImage':_0x3a25b4=>{const _0x2ff9ca=_0x41113f;_0x4b55f0[_0x2ff9ca(0x2e4)]({'unitId':_0x4d48f5,'subUnitId':_0x187960,'drawingId':_0x5d9de3},_0x3a25b4);}});}function _0x48b11b(_0x51d07a){const _0x52e413=_0xa608a8;let _0x1bbd58=(0x0,_0x36a73f[_0x52e413(0x2af)])(_0x354392['ShapeFloatingToolbarService']),_0x50e674=(0x0,_0x36a73f[_0x52e413(0x521)])(()=>_0x1bbd58[_0x52e413(0x122)],_0x1bbd58['getVisible'](),!0x1,[_0x1bbd58]),_0x4a0293=_0x51d07a[_0x52e413(0x12a)]['extraProps'];return!_0x4a0293||!_0x50e674?null:(0x0,_0x1edb74[_0x52e413(0x4e1)])(_0x4d64cb,{..._0x4a0293,'canvasElement':_0x51d07a[_0x52e413(0x12a)]['canvasElement']});}function _0x4d64cb(_0x100d0c){const _0x445241=_0xa608a8;let _0x6dd58b=(0x0,_0x36a73f[_0x445241(0x2af)])(_0x244243[_0x445241(0x2d0)]),_0x2c93e3=(0x0,_0x36a73f['useDependency'])(_0xb19349[_0x445241(0x439)]),{unitId:_0x31da2c,subUnitId:_0x158c1b,drawingId:_0x733a0a,drawingType:_0x45a9de,shapeType:_0x40b89b}=_0x100d0c,[_0x295b0a,_0x26ef0d]=(0x0,_0x2ba528['useState'])(_0x100d0c[_0x445241(0x4c3)]),_0x1cdb55=(0x0,_0x2ba528['useMemo'])(()=>(0x0,_0x354392['getTextStyle'])(_0x295b0a),[_0x295b0a]),_0x329c25=(0x0,_0x2ba528['useMemo'])(()=>(0x0,_0x354392['getTextModel'])(_0x295b0a),[_0x295b0a]);(0x0,_0x2ba528['useEffect'])(()=>{let _0x5ec16c=_0x6dd58b['onCommandExecuted'](_0x2efef7=>{const _0x35aa52=_0x286e;if(_0x2efef7['id']!==_0xb19349[_0x35aa52(0x35d)]['id'])return;let _0x38bae6=_0x2c93e3[_0x35aa52(0x257)](_0x31da2c,_0x158c1b,_0x733a0a);_0x38bae6&&_0x26ef0d(_0x38bae6);});return()=>_0x5ec16c['dispose']();},[_0x6dd58b,_0x733a0a,_0x2c93e3,_0x158c1b,_0x31da2c]);let _0x2560bf=_0x3c3094=>{_0x26ef0d(_0x5bdc2d=>({..._0x5bdc2d,..._0x3c3094}));},_0x69230c=_0x278e22=>{const _0x4b31a1=_0x445241;let _0x3140a9=(0x0,_0x354392[_0x4b31a1(0x255)])(_0x295b0a,_0x278e22);_0x1f80f7(_0x6dd58b,_0x31da2c,_0x158c1b,_0x733a0a,{'oldShapeData':{'shapeText':_0x295b0a['shapeText']}},_0x3140a9),_0x2560bf(_0x3140a9);},_0x4fc2fc=(0x0,_0x354392['useFormulaShapeToolbar'])({'hostType':_0x244243[_0x445241(0x10a)][_0x445241(0x127)],'unitId':_0x31da2c,'subUnitId':_0x158c1b,'shapeId':_0x733a0a,'shapeData':_0x295b0a,'onUpdateBinding':_0x101b89=>{const _0x3ec1ce=_0x445241;let _0x4d7d79={'formulaBinding':_0x101b89};_0x1f80f7(_0x6dd58b,_0x31da2c,_0x158c1b,_0x733a0a,{'oldShapeData':{'formulaBinding':_0x295b0a[_0x3ec1ce(0x301)]}},_0x4d7d79),_0x2560bf(_0x4d7d79);}});return(0x0,_0x1edb74[_0x445241(0x317)])(_0x1edb74[_0x445241(0x20e)],{'children':[(0x0,_0x1edb74[_0x445241(0x4e1)])(_0x354392['ShapeFloatingToolbar'],{'canvasElement':_0x100d0c[_0x445241(0x3cc)],'shapeData':_0x295b0a,'shapeType':_0x40b89b,'textStyle':{'ff':_0x11e0df['ShapeDefaultConfig'][_0x445241(0x489)][_0x445241(0x2c7)],'fs':_0x11e0df[_0x445241(0x4bb)][_0x445241(0x489)][_0x445241(0x176)],'cl':{'rgb':_0x11e0df[_0x445241(0x4bb)][_0x445241(0x489)]['color']},..._0x1cdb55},'textModel':_0x329c25?{'ha':_0x329c25['ha']??_0x244243['HorizontalAlign'][_0x445241(0x423)],'va':_0x329c25['va']??_0x244243['VerticalAlign'][_0x445241(0x4a2)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x11e0df[_0x445241(0x4bb)][_0x445241(0x1c1)],'defaultGradientEndColor':_0x11e0df[_0x445241(0x4bb)][_0x445241(0x4c9)],'defaultStrokeColor':_0x11e0df['ShapeDefaultConfig'][_0x445241(0x237)],'extensionGroups':_0x4fc2fc[_0x445241(0x12c)],'floatingObjectToolbarPosition':_0x36a73f[_0x445241(0x310)][_0x445241(0x1a4)],'onUpdateShapeData':(_0x46bf43,_0x152a98)=>{_0x1f80f7(_0x6dd58b,_0x31da2c,_0x158c1b,_0x733a0a,_0x46bf43,_0x152a98),_0x152a98&&_0x2560bf(_0x152a98);},'onUpdateText':_0x69230c,'onOpenPanel':()=>{const _0x171c05=_0x445241;_0x6dd58b[_0x171c05(0x134)](_0x59c8cc['id'],{'unitId':_0x31da2c,'subUnitId':_0x158c1b,'drawingId':_0x733a0a});},'onDelete':()=>{const _0x3c85cb=_0x445241;_0x6dd58b[_0x3c85cb(0x134)](_0x29aa40[_0x3c85cb(0x50b)]['id'],{'unitId':_0x31da2c,'drawings':[{'unitId':_0x31da2c,'subUnitId':_0x158c1b,'drawingId':_0x733a0a,'drawingType':_0x45a9de}]});}}),_0x4fc2fc[_0x445241(0x1bb)]]});}function _0x486e80(_0x2ac4c9){return!!_0x2ac4c9&&'axisAlignSheetTransform'in _0x2ac4c9&&'sheetTransform'in _0x2ac4c9;}let _0x11659a=(0x0,_0x2ba528[_0xa608a8(0x4b5)])(()=>{const _0x26a8e1=_0xa608a8;let _0x3ecd7e=(0x0,_0x36a73f['useDependency'])(_0x4351c9),_0x486e9c=(0x0,_0x36a73f[_0x26a8e1(0x2af)])(_0xb19349[_0x26a8e1(0x439)]),_0x5da04b=(0x0,_0x36a73f[_0x26a8e1(0x2af)])(_0x43c769[_0x26a8e1(0x334)]),_0x1ef7c4=(0x0,_0x36a73f['useDependency'])(_0x244243['ICommandService']),_0x17874f=(0x0,_0x36a73f[_0x26a8e1(0x2af)])(_0x36a73f['UndoRedoGroupService']),_0x64547a=(0x0,_0x36a73f[_0x26a8e1(0x2af)])(_0x559311[_0x26a8e1(0x306)]),_0x570d62=(0x0,_0x2ba528['useMemo'])(()=>({'getShapeModel':(_0x30a9b8,_0x2479f8,_0x377d3a)=>_0x486e9c[_0x26a8e1(0x335)](_0x30a9b8,_0x2479f8,_0x377d3a),'getShapeData':(_0x5c1bab,_0x554d21,_0x3b5cc8)=>_0x486e9c[_0x26a8e1(0x257)](_0x5c1bab,_0x554d21,_0x3b5cc8),'getDrawingTransform':(_0x1b5b42,_0x2b16c0,_0x51f51f)=>{const _0x3dbcbd=_0x26a8e1;let _0x38accd=_0x5da04b[_0x3dbcbd(0x462)]({'unitId':_0x1b5b42,'subUnitId':_0x2b16c0,'drawingId':_0x51f51f});return _0x38accd==null?void 0x0:_0x38accd[_0x3dbcbd(0x31b)];},'updateShapeText':({unitId:_0x1ab240,subUnitId:_0x4c5f3c,shapeId:_0x5de485,shapeText:_0x4c0321,oldShapeText:_0x3cc77a,hostSize:_0x1a9027})=>{const _0x5d3f13=_0x26a8e1;_0x17874f[_0x5d3f13(0x4ea)](_0x1ab240,()=>{const _0x4ad53c=_0x5d3f13;var _0x2cf075;let _0x774caf=_0x1ef7c4[_0x4ad53c(0x4a7)](_0x4a2843['id'],{'unitId':_0x1ab240,'subUnitId':_0x4c5f3c,'shapeId':_0x5de485,'shapeData':{'shapeText':_0x4c0321},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x3cc77a}}});if(!_0x774caf||!_0x1a9027)return _0x774caf;let _0x1277e3=_0x5da04b[_0x4ad53c(0x462)]({'unitId':_0x1ab240,'subUnitId':_0x4c5f3c,'drawingId':_0x5de485}),_0x7356d0=_0x1277e3==null?void 0x0:_0x1277e3[_0x4ad53c(0x31b)];if(!_0x486e80(_0x1277e3)||!_0x7356d0)return!0x1;let _0x121b3d={..._0x7356d0,'width':_0x1a9027[_0x4ad53c(0x302)],'height':_0x1a9027[_0x4ad53c(0x474)]},_0x18de94=(_0x2cf075=_0x64547a[_0x4ad53c(0x236)](_0x1ab240))==null||(_0x2cf075=_0x2cf075[_0x4ad53c(0x3cf)](_0x180b4c[_0x4ad53c(0x23a)])[_0x4ad53c(0x3ea)](_0x4c5f3c))==null?void 0x0:_0x2cf075[_0x4ad53c(0x514)];return _0x1ef7c4['syncExecuteCommand'](_0x29aa40['SetSheetDrawingCommand']['id'],{'unitId':_0x1ab240,'drawings':[{..._0x1277e3,'transform':_0x121b3d,'sheetTransform':_0x18de94?(0x0,_0x29aa40['transformToDrawingPosition'])(_0x121b3d,_0x18de94)??_0x1277e3[_0x4ad53c(0x178)]:_0x1277e3[_0x4ad53c(0x178)],'axisAlignSheetTransform':_0x18de94?(0x0,_0x29aa40[_0x4ad53c(0x3fb)])(_0x121b3d,_0x18de94)??_0x1277e3[_0x4ad53c(0x388)]:_0x1277e3['axisAlignSheetTransform']}]});});},'updateHostSize':({unitId:_0x5d5807,subUnitId:_0x4f3c1e,shapeId:_0x440dee,width:_0x46f54c,height:_0x129f40})=>{const _0x368d8b=_0x26a8e1;var _0x32305a;let _0x369cfb=_0x5da04b['getDrawingByParam']({'unitId':_0x5d5807,'subUnitId':_0x4f3c1e,'drawingId':_0x440dee}),_0xb9f79a=_0x369cfb==null?void 0x0:_0x369cfb[_0x368d8b(0x31b)];if(!_0x486e80(_0x369cfb)||!_0xb9f79a)return;let _0x1d517b={..._0xb9f79a,'width':_0x46f54c,'height':_0x129f40},_0x5647b3=(_0x32305a=_0x64547a[_0x368d8b(0x236)](_0x5d5807))==null||(_0x32305a=_0x32305a[_0x368d8b(0x3cf)](_0x180b4c[_0x368d8b(0x23a)])['getSkeletonParam'](_0x4f3c1e))==null?void 0x0:_0x32305a[_0x368d8b(0x514)],_0x348f9a=_0x5647b3?(0x0,_0x29aa40['transformToDrawingPosition'])(_0x1d517b,_0x5647b3)??_0x369cfb[_0x368d8b(0x178)]:_0x369cfb[_0x368d8b(0x178)],_0x21362d=_0x5647b3?(0x0,_0x29aa40[_0x368d8b(0x3fb)])(_0x1d517b,_0x5647b3)??_0x369cfb[_0x368d8b(0x388)]:_0x369cfb['axisAlignSheetTransform'];_0x1ef7c4[_0x368d8b(0x134)](_0x29aa40[_0x368d8b(0x3d3)]['id'],{'unitId':_0x5d5807,'drawings':[{..._0x369cfb,'transform':_0x1d517b,'sheetTransform':_0x348f9a,'axisAlignSheetTransform':_0x21362d}]});},'allowHostSizeShrink':({unitId:_0x274b9a,subUnitId:_0x17369a,shapeId:_0x43d7de})=>(0x0,_0x354392['shouldAllowShapeTextEditorHostSizeShrink'])(_0x486e9c['getShapeDataById'](_0x274b9a,_0x17369a,_0x43d7de)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x1ef7c4,_0x5da04b,_0x64547a,_0x486e9c,_0x17874f]),_0x5d7d1a=(0x0,_0x2ba528[_0x26a8e1(0x242)])(()=>({'viewportKeys':{'main':_0x559311['SHEET_VIEWPORT_KEY'][_0x26a8e1(0x2c8)],'leftTop':_0x559311[_0x26a8e1(0x3bf)][_0x26a8e1(0x48b)],'top':_0x559311[_0x26a8e1(0x3bf)][_0x26a8e1(0x1fd)],'left':_0x559311[_0x26a8e1(0x3bf)][_0x26a8e1(0x3c8)]},'getSkeleton':(_0x403479,_0x19eb03)=>{const _0x392170=_0x26a8e1;var _0x4c6259;return((_0x4c6259=_0x403479['with'](_0x180b4c['SheetSkeletonManagerService'])['getSkeletonParam'](_0x19eb03[_0x392170(0x226)]))==null?void 0x0:_0x4c6259[_0x392170(0x514)])??null;}}),[]);return(0x0,_0x1edb74[_0x26a8e1(0x4e1)])(_0x354392[_0x26a8e1(0x3f4)],{'adapter':_0x570d62,'editingService':_0x3ecd7e,'editorUnitId':_0x26ff4b,'positionOptions':_0x5d7d1a});}),_0x3d1fd9=class extends _0x244243[_0xa608a8(0x2a8)]{constructor(_0x140632,_0x4761a4){const _0x28c8ed=_0xa608a8;super(),this[_0x28c8ed(0x43b)]=_0x140632,this[_0x28c8ed(0x4b1)]=_0x4761a4,this[_0x28c8ed(0x4e6)](),this[_0x28c8ed(0x3e1)]();}[_0xa608a8(0x4e6)](){const _0x100d9d=_0xa608a8;this[_0x100d9d(0x4b1)]['has'](_0x100d9d(0x1b3))||this[_0x100d9d(0x322)](this['_iconManager'][_0x100d9d(0x136)]({'ObjectLayersIcon':_0xb13c02})),this[_0x100d9d(0x4b1)][_0x100d9d(0x2e5)]('FlipHorizontalIcon')||this[_0x100d9d(0x322)](this[_0x100d9d(0x4b1)]['register']({'FlipHorizontalIcon':_0x392827})),this[_0x100d9d(0x4b1)][_0x100d9d(0x2e5)]('FlipVerticalIcon')||this['disposeWithMe'](this[_0x100d9d(0x4b1)][_0x100d9d(0x136)]({'FlipVerticalIcon':_0x5a9a67})),this[_0x100d9d(0x4b1)][_0x100d9d(0x2e5)](_0x100d9d(0x4e3))||this[_0x100d9d(0x322)](this[_0x100d9d(0x4b1)][_0x100d9d(0x136)]({'BottomIcon':_0x3142c5})),this['_iconManager'][_0x100d9d(0x2e5)]('MoveDownIcon')||this[_0x100d9d(0x322)](this[_0x100d9d(0x4b1)]['register']({'MoveDownIcon':_0x452406})),this[_0x100d9d(0x4b1)][_0x100d9d(0x2e5)]('MoveUpIcon')||this[_0x100d9d(0x322)](this[_0x100d9d(0x4b1)][_0x100d9d(0x136)]({'MoveUpIcon':_0x6834cf})),this[_0x100d9d(0x4b1)]['has']('ShapeFormatSettingIcon')||this[_0x100d9d(0x322)](this[_0x100d9d(0x4b1)]['register']({'ShapeFormatSettingIcon':_0x3ad4d1})),this[_0x100d9d(0x4b1)]['has'](_0x100d9d(0x4b4))||this['disposeWithMe'](this[_0x100d9d(0x4b1)][_0x100d9d(0x136)]({'TopmostIcon':_0x369e65}));}[_0xa608a8(0x3e1)](){const _0xc84b82=_0xa608a8;this[_0xc84b82(0x322)](this[_0xc84b82(0x43b)][_0xc84b82(0x136)](_0x2948fa,_0x55f76d)),this['disposeWithMe'](this[_0xc84b82(0x43b)][_0xc84b82(0x136)](_0x45b5fb,_0x587718)),this[_0xc84b82(0x322)](this[_0xc84b82(0x43b)][_0xc84b82(0x136)](_0x129fde,_0x18b8b2)),this[_0xc84b82(0x322)](this['_componentManager'][_0xc84b82(0x136)](_0x42b380,_0x25b0a2)),this[_0xc84b82(0x43b)][_0xc84b82(0x510)](_0x4cdb25[_0xc84b82(0x50f)])||this[_0xc84b82(0x322)](this[_0xc84b82(0x43b)][_0xc84b82(0x136)](_0x4cdb25[_0xc84b82(0x50f)],_0x314f7e)),this['disposeWithMe'](this[_0xc84b82(0x43b)][_0xc84b82(0x136)](_0x9806a9,_0x48b11b)),this['disposeWithMe'](this[_0xc84b82(0x43b)][_0xc84b82(0x136)](_0x4f8817,_0x346e2a)),this[_0xc84b82(0x322)](this[_0xc84b82(0x43b)][_0xc84b82(0x136)](_0x3dcb02,_0x35abce)),this[_0xc84b82(0x322)](this[_0xc84b82(0x43b)][_0xc84b82(0x136)](_0x305fa3,_0x216516)),this[_0xc84b82(0x322)](this[_0xc84b82(0x43b)][_0xc84b82(0x136)](_0x2e3f19,_0x5f064a)),this['disposeWithMe'](this['_componentManager']['register'](_0x2205e6,_0x354392[_0xc84b82(0x269)])),this[_0xc84b82(0x322)](this[_0xc84b82(0x43b)]['register'](_0xc84b82(0x491),_0x11659a));}};_0x3d1fd9=_0x4cddfe([_0x542dc8(0x0,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x36a73f['ComponentManager'])),_0x542dc8(0x1,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x36a73f[_0xa608a8(0x36c)]))],_0x3d1fd9);let _0x1890f9=class extends _0x244243[_0xa608a8(0x2a8)]{constructor(_0x438815,_0xc43a62,_0x174311,_0x375913,_0x59143d,_0x116c3b,_0x2ffc64,_0x252170,_0x3818a3){const _0x399617=_0xa608a8;super();let _0xa6411=_0x12385e=>{const _0x115d00=_0x286e;var _0x25ea37,_0x16439c;return(((_0x25ea37=_0x252170['getPermissionPoint'](new _0x126f61['WorkbookEditablePermission'](_0x12385e[_0x115d00(0x284)])['id']))==null?void 0x0:_0x25ea37[_0x115d00(0x496)])??!0x0)&&(((_0x16439c=_0x252170['getPermissionPoint'](new _0x126f61[(_0x115d00(0x2fb))](_0x12385e['unitId'],_0x12385e[_0x115d00(0x226)])['id']))==null?void 0x0:_0x16439c[_0x115d00(0x496)])??!0x0);},_0x551530=_0x4f73da=>_0x4f73da[_0x399617(0x3d5)]&&_0xa6411(_0x4f73da)?_0x174311[_0x399617(0x257)](_0x4f73da[_0x399617(0x284)],_0x4f73da[_0x399617(0x226)],_0x4f73da['shapeId'])??null:null,_0x393648=()=>{const _0x4b2cb5=_0x399617;let _0x53db58=_0x59143d[_0x4b2cb5(0x305)](),_0x4fecd7=_0x53db58[_0x4b2cb5(0x225)]===0x1?_0x53db58[0x0]:null;return(_0x4fecd7==null?void 0x0:_0x4fecd7[_0x4b2cb5(0x351)])===_0x244243[_0x4b2cb5(0x138)]['DRAWING_SHAPE']&&_0x4fecd7[_0x4b2cb5(0x284)]===_0x438815[_0x4b2cb5(0x284)]?{'unitId':_0x4fecd7[_0x4b2cb5(0x284)],'subUnitId':_0x4fecd7['subUnitId'],'shapeId':_0x4fecd7[_0x4b2cb5(0x2b5)]}:null;};this[_0x399617(0x322)]((0x0,_0x354392['registerShapeFormatPainter'])(_0x438815,_0xc43a62,{'changes$':(0x0,_0x38f817[_0x399617(0x4ce)])(_0x59143d[_0x399617(0x17f)],_0x375913[_0x399617(0x283)],_0x252170[_0x399617(0x2aa)]),'isActive':()=>{const _0x582e13=_0x399617;var _0x443946;return((_0x443946=_0x116c3b['getFocusedUnit']())==null?void 0x0:_0x443946[_0x582e13(0x244)]())===_0x438815[_0x582e13(0x284)]&&!_0x2ffc64[_0x582e13(0x50e)](_0x244243[_0x582e13(0x349)])&&_0x59143d[_0x582e13(0x305)]()[_0x582e13(0x38c)](_0x280306=>_0x280306[_0x582e13(0x284)]===_0x438815[_0x582e13(0x284)]);},'getSelectedTarget':_0x393648,'getSource':()=>{let _0x246634=_0x393648();return _0x246634?_0x551530(_0x246634):null;},'getTarget':_0x27c18b=>{const _0x226af4=_0x399617;let _0x2fbdee=_0x438815['scene'][_0x226af4(0x39d)](new _0x559311['Vector2'](_0x27c18b[_0x226af4(0x273)],_0x27c18b[_0x226af4(0x32d)]));if(!(_0x2fbdee instanceof _0x5ee4ee))return null;let _0x199470={'unitId':_0x438815['unitId'],'subUnitId':_0x2fbdee['subUnitId'],'shapeId':_0x2fbdee[_0x226af4(0x3d5)]};return _0xa6411(_0x199470)?_0x199470:null;},'getShape':_0x551530,'update':(_0x415a98,_0x155d86,_0x2d7ca1)=>_0x3818a3['executeCommand'](_0x4a2843['id'],{..._0x415a98,'shapeData':_0x2d7ca1,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x155d86}})}));}};_0x1890f9=_0x4cddfe([_0x542dc8(0x1,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x36a73f[_0xa608a8(0x428)])),_0x542dc8(0x2,(0x0,_0x244243['Inject'])(_0xb19349[_0xa608a8(0x439)])),_0x542dc8(0x3,(0x0,_0x244243['Inject'])(_0x4351c9)),_0x542dc8(0x4,_0x43c769[_0xa608a8(0x334)]),_0x542dc8(0x5,_0x244243[_0xa608a8(0x39a)]),_0x542dc8(0x6,_0x244243['IContextService']),_0x542dc8(0x7,_0x244243['IPermissionService']),_0x542dc8(0x8,_0x244243[_0xa608a8(0x2d0)])],_0x1890f9);let _0x1c54fe=_0xa608a8(0x2fc),_0x1a259b=class extends _0x244243['Disposable']{constructor(_0x8722,_0x30b524,_0x43118b,_0x499b1f,_0x53d70b,_0xc53941){const _0x35a5aa=_0xa608a8;super(),this[_0x35a5aa(0x2a2)]=_0x8722,this[_0x35a5aa(0x1f6)]=_0x30b524,this[_0x35a5aa(0x3d7)]=_0x43118b,this[_0x35a5aa(0x1e8)]=_0x499b1f,this[_0x35a5aa(0x23d)]=_0x53d70b,this[_0x35a5aa(0x28b)]=_0xc53941,_0x5b48d0(this,_0x35a5aa(0x205),!0x1),this[_0x35a5aa(0x2a2)][_0x35a5aa(0x4e5)](_0x343ee7),this[_0x35a5aa(0x322)]((0x0,_0x244243[_0x35a5aa(0x45a)])(this[_0x35a5aa(0x3d7)]['focus$'][_0x35a5aa(0x376)](()=>this['_update']()))),this[_0x35a5aa(0x2ca)]();}[_0xa608a8(0x11e)](){const _0x3abafe=_0xa608a8;this['_shapeFloatingToolbarService'][_0x3abafe(0x3a3)](!0x1,_0x1c54fe),this[_0x3abafe(0x1b4)](),super[_0x3abafe(0x11e)]();}[_0xa608a8(0x2ca)](){const _0x393412=_0xa608a8;var _0x230ec9;let _0x51d96c=this[_0x393412(0x3d7)][_0x393412(0x305)](),_0x5e048a=_0x51d96c[_0x393412(0x225)]===0x1?_0x51d96c[0x0]:void 0x0;if((_0x5e048a==null?void 0x0:_0x5e048a[_0x393412(0x351)])!==_0x244243[_0x393412(0x138)][_0x393412(0x4e9)]||this['_univerInstanceService'][_0x393412(0x1af)](_0x5e048a[_0x393412(0x284)])!==_0x244243['UniverInstanceType'][_0x393412(0x127)]){this[_0x393412(0x28b)][_0x393412(0x3a3)](!0x1,_0x1c54fe),this[_0x393412(0x1b4)]();return;}let _0x42952b=(_0x230ec9=this['_renderManagerService'][_0x393412(0x236)](_0x5e048a[_0x393412(0x284)]))==null?void 0x0:_0x230ec9['engine'][_0x393412(0x337)](),_0x55f9f5=(0x0,_0x354392['resolveShapeContextualRibbonHostMode'])(_0x42952b)==='isolated';this['_shapeFloatingToolbarService'][_0x393412(0x3a3)](_0x55f9f5,_0x1c54fe),_0x55f9f5?this[_0x393412(0x1b4)]():this[_0x393412(0x205)]||(this['_visible']=!0x0,this['_ribbonService'][_0x393412(0x29c)](_0x4eb377,{'activate':!0x0}));}['_hide'](){const _0x9c1f4c=_0xa608a8;this[_0x9c1f4c(0x205)]&&(this[_0x9c1f4c(0x205)]=!0x1,this[_0x9c1f4c(0x1f6)][_0x9c1f4c(0x398)](_0x4eb377),this[_0x9c1f4c(0x1f6)][_0x9c1f4c(0x458)]([]));}};_0x1a259b=_0x4cddfe([_0x542dc8(0x0,_0x36a73f[_0xa608a8(0x162)]),_0x542dc8(0x1,_0x36a73f['IRibbonService']),_0x542dc8(0x2,_0x43c769[_0xa608a8(0x334)]),_0x542dc8(0x3,_0x244243[_0xa608a8(0x39a)]),_0x542dc8(0x4,_0x559311[_0xa608a8(0x306)]),_0x542dc8(0x5,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x354392[_0xa608a8(0x1f4)]))],_0x1a259b);let _0x1da91f=class extends _0x354392[_0xa608a8(0x506)]{constructor(_0x42dc21,_0x19b888,_0x1377e5,_0x513337,_0x214412,_0x43ff0d,_0x3c14e6,_0x37cc18,_0x4e5524,_0x2ca072){super(_0x42dc21,_0x19b888,_0x1377e5,_0x513337,_0x214412,_0x43ff0d,_0x3c14e6,_0x37cc18,_0x4e5524,_0x2ca072,{'componentKey':_0x2205e6,'editorUnitId':_0x26ff4b});}};_0x1da91f=_0x4cddfe([_0x542dc8(0x1,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x5defe7[_0xa608a8(0x27b)])),_0x542dc8(0x2,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x3f2843['DocCanvasPopManagerService'])),_0x542dc8(0x3,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x3f2843[_0xa608a8(0x307)])),_0x542dc8(0x4,_0x244243['ICommandService']),_0x542dc8(0x5,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x3f2843[_0xa608a8(0x45e)])),_0x542dc8(0x6,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x354392[_0xa608a8(0x2d6)])),_0x542dc8(0x7,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x5defe7[_0xa608a8(0x411)])),_0x542dc8(0x8,(0x0,_0x244243['Inject'])(_0x3f2843[_0xa608a8(0x1d9)])),_0x542dc8(0x9,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x4351c9))],_0x1da91f);let _0xefd484=class extends _0x354392[_0xa608a8(0x33b)]{constructor(_0x2b954a,_0x32c777,_0x5a181f,_0x3192fc,_0x420ef2){const _0x2eacb4=_0xa608a8;super(_0x2b954a,_0x32c777,{'editing$':_0x5a181f[_0x2eacb4(0x283)],'resolve':_0x2353f5=>{const _0x36c118=_0x2eacb4;var _0x537016,_0x203ca1,_0x370cd5;let _0x8830fb=new _0x559311[(_0x36c118(0x520))](_0x2353f5['offsetX'],_0x2353f5[_0x36c118(0x32d)]),_0x57856c=((_0x537016=_0x2b954a[_0x36c118(0x419)][_0x36c118(0x1bf)](_0x8830fb))==null?void 0x0:_0x537016[_0x36c118(0x316)](_0x8830fb))??_0x8830fb,_0x11dad8=(0x0,_0x354392['resolveShapeTextHyperLinkObject'])(_0x2b954a[_0x36c118(0x419)][_0x36c118(0x39d)](_0x8830fb)??null,_0x57856c);if(!(_0x11dad8 instanceof _0x5ee4ee))return null;let _0x11957c=_0x11dad8[_0x36c118(0x416)](_0x57856c);if(!_0x11957c)return null;let _0x3db8b7=_0x11dad8,_0x25e712={'componentKey':_0x354392['ShapeTextHyperLinkInfo']['componentKey'],'direction':_0x36c118(0x259),'offset':[0x0,0xa],'onClickOutside':()=>_0x32c777[_0x36c118(0x46f)]()};return{'object':_0x11dad8,'info':{..._0x11957c,'unitId':_0x11dad8[_0x36c118(0x284)],'subUnitId':_0x11dad8[_0x36c118(0x226)],'shapeKey':_0x11dad8[_0x36c118(0x26d)],'readonly':!0x0,'copyable':((_0x203ca1=_0x420ef2[_0x36c118(0x353)](new _0x126f61['WorkbookCopyPermission'](_0x11dad8[_0x36c118(0x284)])['id']))==null?void 0x0:_0x203ca1[_0x36c118(0x496)])!==!0x1&&((_0x370cd5=_0x420ef2[_0x36c118(0x353)](new _0x126f61[(_0x36c118(0x146))](_0x11dad8['unitId'],_0x11dad8[_0x36c118(0x226)])['id']))==null?void 0x0:_0x370cd5[_0x36c118(0x496)])!==!0x1},'attachPopup':()=>_0x3192fc[_0x36c118(0x1a6)](_0x3db8b7,_0x25e712)};}}),this[_0x2eacb4(0x322)](_0x2b954a['unit'][_0x2eacb4(0x2de)][_0x2eacb4(0x376)](()=>this[_0x2eacb4(0x221)]()));}};_0xefd484=_0x4cddfe([_0x542dc8(0x1,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x354392[_0xa608a8(0x2d6)])),_0x542dc8(0x2,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x4351c9)),_0x542dc8(0x3,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x180b4c[_0xa608a8(0x33a)])),_0x542dc8(0x4,_0x244243[_0xa608a8(0x432)])],_0xefd484);let _0x4041f8=class extends _0x244243[_0xa608a8(0x2a8)]{constructor(_0x22d275,_0x5f5df0,_0x46081d,_0x40e849,_0x13271b,_0x3ce177,_0x4f483d,_0x43eacc,_0x44962e,_0x1d30bb,_0x2492dd){const _0x187c45=_0xa608a8;super(),this[_0x187c45(0x1e8)]=_0x22d275,this[_0x187c45(0x4bd)]=_0x5f5df0,this['_menuManagerService']=_0x46081d,this[_0x187c45(0x524)]=_0x40e849,this[_0x187c45(0x15a)]=_0x13271b,this[_0x187c45(0x480)]=_0x3ce177,this[_0x187c45(0x3d7)]=_0x4f483d,this[_0x187c45(0x52b)]=_0x43eacc,this[_0x187c45(0x135)]=_0x44962e,this[_0x187c45(0x23d)]=_0x1d30bb,this[_0x187c45(0x37d)]=_0x2492dd,_0x5b48d0(this,_0x187c45(0x2ad),null),_0x5b48d0(this,_0x187c45(0x49c),null),_0x5b48d0(this,_0x187c45(0x2db),!0x1),_0x5b48d0(this,_0x187c45(0x1b5),0x0),_0x5b48d0(this,_0x187c45(0x4a0),null),_0x5b48d0(this,_0x187c45(0x209),[]),this[_0x187c45(0x347)](),this['disposeWithMe'](this[_0x187c45(0x1e8)][_0x187c45(0x2bd)](_0x244243[_0x187c45(0x10a)][_0x187c45(0x127)])['subscribe'](_0x365b4a=>{const _0x187ee5=_0x187c45;if(!_0x365b4a){var _0x4a6fa9;(_0x4a6fa9=this[_0x187ee5(0x2ad)])==null||_0x4a6fa9[_0x187ee5(0x11e)]();}})),this['_registerOperations'](),this[_0x187c45(0x2f3)](),this['disposeWithMe'](this['_shapeTextEditingService'][_0x187c45(0x283)][_0x187c45(0x376)](_0x3b51d3=>{_0x3b51d3&&this['_clearPopups']();}));}[_0xa608a8(0x347)](){const _0x2e420f=_0xa608a8;this[_0x2e420f(0x2a2)][_0x2e420f(0x4e5)](_0x417544);}[_0xa608a8(0x2f3)](){const _0x335589=_0xa608a8;this[_0x335589(0x4a0)]||=this['disposeWithMe']((0x0,_0x354392[_0x335589(0x151)])(this[_0x335589(0x23d)],_0x244243[_0x335589(0x10a)][_0x335589(0x127)],_0x127d1e=>this['_popupMenuListener'](_0x127d1e)));}[_0xa608a8(0x21d)](_0x333615,_0x11276,_0xfa5595){const _0x2be02d=_0xa608a8;let _0x342b1a=this[_0x2be02d(0x524)][_0x2be02d(0x1d2)](_0x333615,_0x11276,_0xfa5595),_0x224a4c=this[_0x2be02d(0x524)][_0x2be02d(0x257)](_0x333615,_0x11276,_0xfa5595);return _0x342b1a!==void 0x0&&_0x224a4c!==void 0x0?{'shapeData':_0x224a4c,'shapeId':_0xfa5595,'shapeType':_0x342b1a,'unitId':_0x333615,'subUnitId':_0x11276,'version':this[_0x2be02d(0x1b5)],'disableShapeOption':!0x1}:null;}[_0xa608a8(0x3e6)](){const _0x373581=_0xa608a8;this['_disposePopups']['forEach'](_0x436805=>_0x436805['dispose']()),this['_disposePopups'][_0x373581(0x225)]=0x0;}[_0xa608a8(0x2fd)](_0x22b82a){const _0x4d1c56=_0xa608a8;let _0x6c61f1=new _0x244243[(_0x4d1c56(0x11f))]();return _0x6c61f1[_0x4d1c56(0x488)](_0x22b82a['createControl$'][_0x4d1c56(0x376)](()=>{const _0x4961cb=_0x4d1c56;let _0x4ed3f3=_0x22b82a[_0x4961cb(0x18c)]();if(this[_0x4961cb(0x3e6)](),this[_0x4961cb(0x2db)]||_0x4ed3f3[_0x4961cb(0x13f)]>0x1)return;let _0x28ba9b=_0x4ed3f3[_0x4961cb(0x48d)]()[_0x4961cb(0x159)]()['value'];if(!_0x28ba9b)return;let _0x4c8044=this[_0x4961cb(0x3d7)]['getDrawingOKey'](_0x28ba9b['oKey']);if(!_0x4c8044||_0x4c8044[_0x4961cb(0x351)]!==_0x244243[_0x4961cb(0x138)]['DRAWING_SHAPE'])return;let {unitId:_0x4c9916,subUnitId:_0x195216,drawingId:_0x2bb896,drawingType:_0x33f0c0}=_0x4c8044,_0x372053=this[_0x4961cb(0x21d)](_0x4c9916,_0x195216,_0x2bb896);if(!_0x372053)return;this[_0x4961cb(0x135)][_0x4961cb(0x471)](_0x244243[_0x4961cb(0x167)],!0x0);let _0x580acc=this['_renderManagerService']['getRenderUnitById'](_0x4c9916),_0xf8bf1f=((_0x580acc==null?void 0x0:_0x580acc[_0x4961cb(0x3bd)])===!0x1?_0x580acc[_0x4961cb(0x3cf)](_0x180b4c['SheetCanvasPopManagerService']):this[_0x4961cb(0x52b)])[_0x4961cb(0x1a6)](_0x28ba9b,{'componentKey':_0x9806a9,'direction':_0x4961cb(0x427),'offset':[0x0,_0x354392['SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET']],'extraProps':{'unitId':_0x4c9916,'subUnitId':_0x195216,'drawingId':_0x2bb896,'drawingType':_0x33f0c0,'shapeType':_0x372053[_0x4961cb(0x1ee)],'shapeData':_0x372053[_0x4961cb(0x4c3)]}});this[_0x4961cb(0x209)][_0x4961cb(0x313)](this['disposeWithMe'](_0xf8bf1f)),this[_0x4961cb(0x3d7)]['getFocusDrawings']()[_0x4961cb(0x3c7)](_0x3dabcf=>_0x3dabcf[_0x4961cb(0x284)]===_0x4c9916&&_0x3dabcf[_0x4961cb(0x226)]===_0x195216&&_0x3dabcf[_0x4961cb(0x2b5)]===_0x2bb896)||this[_0x4961cb(0x3d7)][_0x4961cb(0x264)]([{'unitId':_0x4c9916,'subUnitId':_0x195216,'drawingId':_0x2bb896}]);})),_0x6c61f1[_0x4d1c56(0x488)](_0x22b82a[_0x4d1c56(0x24f)]['subscribe'](()=>{const _0x3c53d4=_0x4d1c56;this[_0x3c53d4(0x3e6)](),this[_0x3c53d4(0x135)]['setContextValue'](_0x244243[_0x3c53d4(0x167)],!0x1),this['_drawingManagerService']['focusDrawing'](null);})),_0x6c61f1[_0x4d1c56(0x488)](_0x22b82a['changing$']['subscribe'](()=>{const _0x5f15c1=_0x4d1c56;this[_0x5f15c1(0x3e6)]();})),_0x6c61f1[_0x4d1c56(0x488)](_0x22b82a[_0x4d1c56(0x4dd)][_0x4d1c56(0x376)](()=>{const _0x48c5c4=_0x4d1c56;this[_0x48c5c4(0x3e6)]();})),(0x0,_0x244243[_0x4d1c56(0x45a)])(()=>{const _0x6125c3=_0x4d1c56;_0x6c61f1[_0x6125c3(0x11e)](),this[_0x6125c3(0x3e6)]();});}[_0xa608a8(0x4b6)](){const _0x3ec106=_0xa608a8;this[_0x3ec106(0x322)](this[_0x3ec106(0x480)][_0x3ec106(0x380)](_0x427142=>{const _0x4fe7b2=_0x3ec106;if(_0x427142['id']===_0x59c8cc['id']){let {unitId:_0x18b97a,subUnitId:_0x3820e9,drawingId:_0x47347b}=_0x427142[_0x4fe7b2(0x131)];this[_0x4fe7b2(0x1b5)]+=0x1,this[_0x4fe7b2(0x49c)]=this[_0x4fe7b2(0x21d)](_0x18b97a,_0x3820e9,_0x47347b),this['_clearPopups'](),this[_0x4fe7b2(0x359)]();}if(_0x427142['id']===_0x47cc56['id']&&(this['_activeShapeInfo']=null,this[_0x4fe7b2(0x4ef)]()),_0x427142['id']===_0xb19349[_0x4fe7b2(0x35d)]['id']){let {unitId:_0x1df7ce,subUnitId:_0x1a6bae,shapeId:_0x4cd4eb}=_0x427142['params'];if(this['_activeShapeInfo']&&this['_activeShapeInfo'][_0x4fe7b2(0x3d5)]===_0x4cd4eb){let _0x2de50b=this[_0x4fe7b2(0x21d)](_0x1df7ce,_0x1a6bae,_0x4cd4eb);_0x2de50b&&(this['_shapeEditPanelVersion']+=0x1,_0x2de50b[_0x4fe7b2(0x48f)]=this[_0x4fe7b2(0x1b5)],this[_0x4fe7b2(0x49c)]=_0x2de50b,this['_isOpenedShapeEditPanel']&&this[_0x4fe7b2(0x359)]());}}})),this[_0x3ec106(0x322)](this[_0x3ec106(0x3d7)]['focus$'][_0x3ec106(0x376)](_0xd6fdef=>{const _0x161636=_0x3ec106;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0xd6fdef[_0x161636(0x225)]===0x0){this[_0x161636(0x49c)]=null,this[_0x161636(0x4ef)]();return;}if(_0xd6fdef[_0x161636(0x225)]===0x1&&_0xd6fdef[0x0][_0x161636(0x351)]===_0x244243[_0x161636(0x138)][_0x161636(0x4e9)]&&(this[_0x161636(0x1b5)]+=0x1,this['_activeShapeInfo']=this[_0x161636(0x21d)](_0xd6fdef[0x0][_0x161636(0x284)],_0xd6fdef[0x0][_0x161636(0x226)],_0xd6fdef[0x0]['drawingId']),this[_0x161636(0x49c)])){this[_0x161636(0x359)]();return;}let _0x36a229=_0xd6fdef['filter'](_0x517a8d=>_0x517a8d['drawingType']===_0x244243[_0x161636(0x138)][_0x161636(0x4e9)]);if(_0xd6fdef['length']>0x1&&_0x36a229['length']===_0xd6fdef[_0x161636(0x225)]){if(this[_0x161636(0x1b5)]+=0x1,this[_0x161636(0x49c)]=this[_0x161636(0x21d)](_0xd6fdef[0x0][_0x161636(0x284)],_0xd6fdef[0x0]['subUnitId'],_0xd6fdef[0x0][_0x161636(0x2b5)]),this[_0x161636(0x49c)]){this[_0x161636(0x359)]();return;}}else{if(this[_0x161636(0x1b5)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0xd6fdef[0x0][_0x161636(0x284)],_0xd6fdef[0x0][_0x161636(0x226)],_0xd6fdef[0x0]['drawingId']),this[_0x161636(0x49c)]){this[_0x161636(0x49c)][_0x161636(0x4d0)]=!0x0,this[_0x161636(0x359)]();return;}}this[_0x161636(0x4ef)]();}));}['_openShapeEditPanel'](){const _0x51649f=_0xa608a8;this['_activeShapeInfo']&&(this['_sidebarDisposable']=this[_0x51649f(0x4bd)]['open']({'id':_0x2948fa,'header':{'title':this[_0x51649f(0x15a)]['t'](_0x51649f(0x183))},'width':0x184,'children':{'label':_0x2948fa,...this['_activeShapeInfo']},'onClose':()=>{const _0x1c4786=_0x51649f;this[_0x1c4786(0x3d7)]['focusDrawing'](null),this[_0x1c4786(0x135)][_0x1c4786(0x471)](_0x244243[_0x1c4786(0x167)],!0x1),this[_0x1c4786(0x2ad)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0xa608a8(0x4ef)](){const _0x41a2b4=_0xa608a8;this[_0x41a2b4(0x2db)]=!0x1,this[_0x41a2b4(0x4bd)][_0x41a2b4(0x239)](_0x2948fa),this[_0x41a2b4(0x2ad)]=null,this[_0x41a2b4(0x135)][_0x41a2b4(0x471)](_0x244243[_0x41a2b4(0x167)],!0x1),this[_0x41a2b4(0x3d7)]['focusDrawing'](null);}};_0x4041f8=_0x4cddfe([_0x542dc8(0x0,_0x244243['IUniverInstanceService']),_0x542dc8(0x1,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x36a73f[_0xa608a8(0x16f)])),_0x542dc8(0x2,_0x36a73f[_0xa608a8(0x162)]),_0x542dc8(0x3,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0xb19349['SheetsShapeService'])),_0x542dc8(0x4,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x244243[_0xa608a8(0x38e)])),_0x542dc8(0x5,_0x244243[_0xa608a8(0x2d0)]),_0x542dc8(0x6,_0x43c769[_0xa608a8(0x334)]),_0x542dc8(0x7,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x180b4c['SheetCanvasPopManagerService'])),_0x542dc8(0x8,_0x244243[_0xa608a8(0x2a4)]),_0x542dc8(0x9,_0x559311[_0xa608a8(0x306)]),_0x542dc8(0xa,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x4351c9))],_0x4041f8);let _0x1b9369=class extends _0x244243['Plugin']{constructor(_0x53a592=_0x22bbe8,_0x2f18bf,_0x41274a,_0x554039,_0x3c2353){const _0x50e947=_0xa608a8;super(),this[_0x50e947(0x36e)]=_0x53a592,this[_0x50e947(0x21c)]=_0x2f18bf,this['_commandService']=_0x41274a,this[_0x50e947(0x44f)]=_0x554039,this[_0x50e947(0x23d)]=_0x3c2353;let {..._0x3cab19}=(0x0,_0x244243[_0x50e947(0x4ce)])({},_0x22bbe8,this[_0x50e947(0x36e)]);this[_0x50e947(0x44f)]['setConfig'](_0xb25cac,_0x3cab19),this[_0x50e947(0x4c6)]();}['onRendered'](){const _0x4eebed=_0xa608a8;this[_0x4eebed(0x23d)][_0x4eebed(0x421)](_0x244243[_0x4eebed(0x10a)][_0x4eebed(0x170)],[_0x1da91f]),(0x0,_0x244243[_0x4eebed(0x120)])(this[_0x4eebed(0x21c)],[[_0x4041f8],[_0x4304cd],[_0x4f6784],[_0x344863]]);}[_0xa608a8(0x362)](){this['_injector']['get'](_0x4041f8)['initShapePopupMenu']();}[_0xa608a8(0x232)](){const _0x22cf7c=_0xa608a8;[[_0x582783],[_0x35cd7c],[_0x59ce19]][_0x22cf7c(0x2ce)](_0x4adc6d=>this['_injector']['add'](_0x4adc6d)),(0x0,_0x244243[_0x22cf7c(0x120)])(this[_0x22cf7c(0x21c)],[[_0x59ce19],[_0x35cd7c]]),this[_0x22cf7c(0x23d)][_0x22cf7c(0x421)](_0x244243[_0x22cf7c(0x10a)][_0x22cf7c(0x127)],[_0x582783]),this[_0x22cf7c(0x23d)]['registerRenderModule'](_0x244243[_0x22cf7c(0x10a)][_0x22cf7c(0x127)],[_0x282d54]),this[_0x22cf7c(0x23d)][_0x22cf7c(0x421)](_0x244243[_0x22cf7c(0x10a)]['UNIVER_SHEET'],[_0x3e8676]),this[_0x22cf7c(0x23d)][_0x22cf7c(0x421)](_0x244243[_0x22cf7c(0x10a)][_0x22cf7c(0x127)],[_0x43a94f]),this['disposeWithMe'](this['_renderManagerService'][_0x22cf7c(0x421)](_0x244243[_0x22cf7c(0x10a)][_0x22cf7c(0x127)],[_0xefd484])),this[_0x22cf7c(0x322)](this[_0x22cf7c(0x23d)][_0x22cf7c(0x421)](_0x244243['UniverInstanceType']['UNIVER_SHEET'],[_0x1890f9]));}[_0xa608a8(0x324)](){const _0x220159=_0xa608a8;this['_injector'][_0x220159(0x488)]([_0x3d1fd9]),this['_injector'][_0x220159(0x20b)](_0x3d1fd9);let _0x368d13=this[_0x220159(0x21c)];[[_0x4041f8],[_0x4304cd],[_0x4f6784],[_0x344863],[_0x3dc45c],[_0x4351c9],[_0x1a879a],[_0x3b876d],[_0x29ce99],[_0x1a259b]][_0x220159(0x2ce)](_0x572fc3=>_0x368d13[_0x220159(0x488)](_0x572fc3)),(0x0,_0x244243['touchDependencies'])(this[_0x220159(0x21c)],[[_0x4041f8],[_0x4304cd],[_0x4f6784],[_0x3dc45c],[_0x4351c9],[_0x1a879a],[_0x3b876d],[_0x29ce99],[_0x1a259b]]);}[_0xa608a8(0x4c6)](){const _0x59edd5=_0xa608a8;[_0x2aee67,_0x4a2843,_0x47cc56,_0x59c8cc,_0xd39a54,_0x5c23b1,_0xb30908,_0x14afcc][_0x59edd5(0x2ce)](_0x1721d8=>this['disposeWithMe'](this['_commandService'][_0x59edd5(0x4ed)](_0x1721d8)));}};_0x5b48d0(_0x1b9369,'type',_0x244243[_0xa608a8(0x10a)]['UNIVER_SHEET']),_0x5b48d0(_0x1b9369,'pluginName',_0xa608a8(0x29f)),_0x5b48d0(_0x1b9369,_0xa608a8(0x1f5),_0x28e822),_0x5b48d0(_0x1b9369,'version',_0x4887ee),_0x1b9369=_0x4cddfe([(0x0,_0x244243[_0xa608a8(0x13d)])(_0x3cffa1[_0xa608a8(0x400)],_0x5defe7[_0xa608a8(0x35f)],_0x43c769[_0xa608a8(0x275)],_0x4cdb25[_0xa608a8(0x243)],_0x559311[_0xa608a8(0x4ae)],_0x126f61[_0xa608a8(0x174)],_0x3f2843[_0xa608a8(0x3a5)],_0x29aa40['UniverSheetsDrawingPlugin'],_0x4e6980[_0xa608a8(0x1b7)],_0x37d78b['UniverSheetsDrawingUIPlugin'],_0xb19349[_0xa608a8(0x111)],_0x180b4c[_0xa608a8(0x1cc)],_0x354392['UniverShapeEditorUIPlugin']),_0x542dc8(0x1,(0x0,_0x244243[_0xa608a8(0x3f8)])(_0x244243[_0xa608a8(0x330)])),_0x542dc8(0x2,_0x244243['ICommandService']),_0x542dc8(0x3,_0x244243[_0xa608a8(0x195)]),_0x542dc8(0x4,_0x559311[_0xa608a8(0x306)])],_0x1b9369),_0x3d809c[_0xa608a8(0x12b)]=_0x343ee7,_0x3d809c[_0xa608a8(0x3e4)]=_0x417544,Object[_0xa608a8(0x34b)](_0x3d809c,_0xa608a8(0x519),{'enumerable':!0x0,'get':function(){return _0x4d508d;}}),Object[_0xa608a8(0x34b)](_0x3d809c,_0xa608a8(0x248),{'enumerable':!0x0,'get':function(){return _0x1b9369;}});}));
|