@univerjs-pro/sheets-shape-ui 1.0.0-alpha.6 → 1.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/const.d.ts +1 -1
- package/lib/types/controllers/sheet-shape-render.controller.d.ts +7 -1
- package/lib/types/controllers/ui.controller.d.ts +1 -98
- package/lib/types/locale/en-US.d.ts +2 -10
- package/lib/types/menu/shape-context-menu.d.ts +7 -0
- package/lib/types/view-model/drawing-shape.d.ts +7 -0
- package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbar.d.ts +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 +20 -19
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x49d8a2=_0x208c;(function(_0x2d5ff8,_0x31f2ed){const _0x39c69c=_0x208c,_0x59e235=_0x2d5ff8();while(!![]){try{const _0x41cdb4=-parseInt(_0x39c69c(0x2f0))/0x1+parseInt(_0x39c69c(0x33b))/0x2*(-parseInt(_0x39c69c(0x250))/0x3)+parseInt(_0x39c69c(0x1a7))/0x4*(parseInt(_0x39c69c(0x308))/0x5)+-parseInt(_0x39c69c(0x102))/0x6*(-parseInt(_0x39c69c(0x1b2))/0x7)+-parseInt(_0x39c69c(0x156))/0x8*(parseInt(_0x39c69c(0x1f7))/0x9)+parseInt(_0x39c69c(0x110))/0xa+parseInt(_0x39c69c(0x187))/0xb;if(_0x41cdb4===_0x31f2ed)break;else _0x59e235['push'](_0x59e235['shift']());}catch(_0x101f99){_0x59e235['push'](_0x59e235['shift']());}}}(_0x4806,0xbbc9d));import{ComponentManager as _0x4dd7a3,IMenuManagerService as _0x25cc13,ISidebarService as _0xf1c3ee,IconManager as _0x45bf3a,MenuItemType as _0x2f4b7c,RibbonInsertGroup as _0x4cff09,getMenuHiddenObservable as _0x569198,useDependency as _0x2a5e25,useObservable as _0x57a615}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x20c995,ImageSourceTypeEnum as _0x4ed528,ShapeArrowSizeEnum as _0xd9107d,ShapeArrowTypeEnum as _0x1e506d,ShapeDefaultConfig as _0x2bea1d,ShapeFillEnum as _0x13bf97,ShapeLineTypeEnum as _0x3354c0,ShapeModel as _0x2a67cd,ShapeRenderModeEnum as _0x2d97cd,ShapeTypeEnum as _0x1ca39f,computeConnectorRouteLayout as _0x59ea91,getBasicShapeRotateBound as _0x4d4669,isConnectorShape as _0x5d2a5e,isCurvedConnectorShape as _0x41cad6,routeConnectorLineShape as _0x449797}from'@univerjs-pro/engine-shape';import{SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x370f9f,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x229ba4,ShapeEditPanel as _0x577577,ShapeFloatingToolbar as _0x3381e5,ShapeGroupEnum as _0x57c621,ShapePickerDropdown as _0x55b52d,ShapePickerPanel as _0x71cbe8,ShapeTextEditorContainer as _0x264bf4,ShapeTextFloatMenuRenderControllerBase as _0x596e22,ShapeTextFloatToolbar as _0x2d3b93,UniverShapeEditorUIPlugin as _0x464a71,activateDrawingObject as _0x3928d2,buildShapeTextDataUpdate as _0x1072ef,clearActiveDrawingObjects as _0xeb3392,createShapeTextBoxShapeData as _0x510160,getTextModel as _0xdf5543,getTextStyle as _0x45f466,normalizeShapeTextModel as _0x50ef04,plainShapeTextToDocumentData as _0x36c523,prepareShapeTextDocumentData as _0x55d4b7,resolveShapeTextDocumentRenderLayout as _0x110d01,resolveShapeTextEditorBehaviorShapeData as _0x31773d,resolveShapeTextEditorWrapStrategy as _0x17f1c5,shouldAllowShapeTextEditorHostSizeShrink as _0x7502d3,shouldClipShapeTextDocument as _0x3f71c6}from'@univerjs-pro/shape-editor-ui';import{InsertShapeCommand as _0x5db24c,InsertSheetsShapeMutation as _0x47dbbc,RemoveSheetsShapeMutation as _0x32e37c,SetShapeDrawingDataCommand as _0x357925,SetSheetsShapeRotateCommand as _0x45951d,SetSheetsShapeTextVerticalToggleCommand as _0x3209a5,SheetsShapeService as _0x1a451a,ToggleSheetsShapeFlipCommand as _0x4deace,UniverSheetsShapePlugin as _0x551142,UpdateConnectorRelationCommand as _0x1c01fb,UpdateLineShapeResizeCommand as _0x3b0863,UpdateSheetsShapeDataMutation as _0x22295a}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x5516a4,CommandType as _0xbd62c0,DependentOn as _0x15410a,Disposable as _0x1e0fa2,DocumentDataModel as _0x4de61b,DrawingTypeEnum as _0x336997,FOCUSING_COMMON_DRAWINGS as _0x26ab00,FOCUSING_SHAPE_TEXT_EDITOR as _0x7f228e,HorizontalAlign as _0x30a9f7,ICommandService as _0x3002c9,IConfigService as _0xb443b,IContextService as _0x2d429f,IImageIoService as _0x529318,IURLImageService as _0x225d5a,IUndoRedoService as _0x471f95,IUniverInstanceService as _0x2320a1,Inject as _0x3465f0,Injector as _0xab16b2,LocaleService as _0x9a7c24,Plugin as _0x257c5b,UniverInstanceType as _0x4c1a31,VerticalAlign as _0x2099ff,createInternalEditorID as _0x4f9780,generateRandomId as _0x3893c7,merge as _0x1c7285,toDisposable as _0x4f15f0,touchDependencies as _0x14b49a}from'@univerjs/core';import{CopySheetCommand as _0x54e5a0,RemoveSheetCommand as _0x414783,SheetInterceptorService as _0x85f95e,SheetPermissionCheckController as _0x2cc1a0,SheetSkeletonService as _0x834a52,SheetsSelectionsService as _0x25ed03,WorkbookEditablePermission as _0x3216bb,WorksheetEditPermission as _0x57e1db,attachRangeWithCoord as _0x37168f,discreteRangeToRange as _0x44b7b4,getSheetCommandTarget as _0x20e706}from'@univerjs/sheets';import{IDrawingManagerService as _0x5a9176,SetDrawingSelectedOperation as _0x42475e,getDrawingShapeKeyByDrawingSearch as _0x24e648}from'@univerjs/drawing';import{CURSOR_TYPE as _0x35244f,Circle as _0x1578ae,DRAWING_OBJECT_LAYER_INDEX as _0x529f4c,DocumentSkeleton as _0x3a7e93,DocumentViewModel as _0x3425b8,Documents as _0x5ca0dd,IRenderManagerService as _0x2565d9,Image as _0xd2487b,RENDER_CLASS_TYPE as _0x18ef31,SHEET_VIEWPORT_KEY as _0x42dea8,Shape as _0x176254,Transform as _0x3a4198,Vector2 as _0x1d9584}from'@univerjs/engine-render';import{COPY_TYPE as _0x4538e3,ISheetClipboardService as _0x4d0a59,PREDEFINED_HOOK_NAME as _0x951401,SheetCanvasPopManagerService as _0x57df42,SheetPrintInterceptorService as _0x4f0169,SheetScrollManagerService as _0x5480ae,SheetSkeletonManagerService as _0x4b5a3f,deriveStateFromActiveSheet$ as _0x291355,getCurrentRangeDisable$ as _0x1aaed7,getViewportByCell as _0x356c4d}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x1154b0,EMPTY as _0x4e602d,Observable as _0x17aabe,of as _0x5ba9b9,switchMap as _0x48371d}from'rxjs';import{DrawingCommonPanel as _0x4b0647,DrawingImageClipService as _0x52908b,DrawingRenderService as _0x4d04f3,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x76290b,OBJECT_LIST_FLOATING_SECTION_ID as _0x21b1e9,ObjectListPanelBase as _0x1ea8c0,getCurrentUnitInfo as _0x5b5b76,getObjectListPanelLabels as _0x3137ac,getObjectListPanelSectionIdForDrawingType as _0x68c808,getObjectListPanelTypeName as _0x23c7c2,insertGroupObject as _0x4cf997}from'@univerjs/drawing-ui';import{jsx as _0x4c6044,jsxs as _0x52bc9b}from'react/jsx-runtime';import{UniverLicensePlugin as _0x2da0f1}from'@univerjs-pro/license';import{SheetDrawingAnchor as _0x37e739,SheetsDrawingGroupCopyPasteController as _0x407497,UniverSheetsDrawingUIPlugin as _0x1c2191}from'@univerjs/sheets-drawing-ui';import{CopyDoubleIcon as _0x8cec5a}from'@univerjs/icons';import{DrawingApplyType as _0x20e0af,ISheetDrawingService as _0xc538a1,RemoveSheetDrawingCommand as _0x5f4db7,SetDrawingApplyMutation as _0x2fbd15,SetDrawingArrangeCommand as _0xa10ec9,SetSheetDrawingCommand as _0x577eb5,transformToAxisAlignPosition as _0x14cc4e,transformToDrawingPosition as _0x4ee577}from'@univerjs/sheets-drawing';import{memo as _0x3cdd19,useEffect as _0xecd31c,useMemo as _0x307aa0,useReducer as _0x3962a7,useState as _0x487ae5}from'react';import{DocSelectionManagerService as _0x529093}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x16c1cd,DocSelectionRenderService as _0x3889b2}from'@univerjs/docs-ui';function un(_0x5d612c,_0x46bac1){const _0x325f88=_0x208c;let _0x27cabe={};for(let _0x511249 of Object['keys'](_0x46bac1)){let _0x5d5140=_0x46bac1[_0x511249],_0x13a49e=_0x5d612c[_0x511249];if(_0x5d5140!==void 0x0){if(_0x13a49e===void 0x0){_0x27cabe[_0x511249]=void 0x0;continue;}typeof _0x5d5140==_0x325f88(0x196)&&_0x5d5140&&!Array[_0x325f88(0x154)](_0x5d5140)&&typeof _0x13a49e==_0x325f88(0x196)&&_0x13a49e&&!Array['isArray'](_0x13a49e)?_0x27cabe[_0x511249]=un(_0x13a49e,_0x5d5140):_0x27cabe[_0x511249]=_0x13a49e;}}return _0x27cabe;}const dn={'type':_0xbd62c0[_0x49d8a2(0x140)],'id':_0x49d8a2(0x2e8),'handler':(_0x3c35ad,_0x35bc92)=>{const _0x44be3c=_0x49d8a2;let _0x22aef1=_0x3c35ad[_0x44be3c(0x1bc)](_0x1a451a),{unitId:_0x1e06ac,subUnitId:_0x1a379e,shapeType:_0x34b7a5,shapeId:_0x1a918b,shapeData:_0x4261e8,oldShapeJSON:_0x5f0b9d}=_0x35bc92;if(!_0x22aef1[_0x44be3c(0x296)](_0x1e06ac,_0x1a379e,_0x1a918b))return!0x1;let _0x2486f3=_0x3c35ad[_0x44be3c(0x1bc)](_0x3002c9),_0x5d4a67=_0x3c35ad[_0x44be3c(0x1bc)](_0x471f95),{oldShapeType:_0x35fe00,oldShapeData:_0x152b70={}}=_0x5f0b9d,_0x1c46a5=un(_0x152b70,_0x4261e8||{}),_0x57cdda={'id':_0x22295a['id'],'params':{'unitId':_0x1e06ac,'subUnitId':_0x1a379e,'shapeId':_0x1a918b,'shapeType':_0x34b7a5,'shapeData':_0x4261e8}},_0x33bc57={'id':_0x22295a['id'],'params':{'unitId':_0x1e06ac,'subUnitId':_0x1a379e,'shapeId':_0x1a918b,'shapeType':_0x35fe00,'shapeData':_0x1c46a5}};return _0x2486f3['syncExecuteCommand'](_0x57cdda['id'],_0x57cdda[_0x44be3c(0x2ba)])?(_0x5d4a67[_0x44be3c(0x33c)]({'unitID':_0x1e06ac,'undoMutations':[_0x33bc57],'redoMutations':[_0x57cdda]}),!0x0):!0x1;}};function fn(_0x44e964,_0x533949,_0x16674d,_0x357e1e,_0x390024,_0x317f69){const _0x5ef3aa=_0x49d8a2;let _0x498dfd={'unitId':_0x533949,'subUnitId':_0x16674d,'shapeId':_0x357e1e,'shapeData':_0x317f69,'oldShapeJSON':_0x390024};return _0x44e964[_0x5ef3aa(0x2c5)](dn['id'],_0x498dfd);}function pn(_0x3caec4,_0xf4af9d,_0x4e9c64,_0xb1c7f,_0x5d449e,_0x4d1843){const _0x15303f=_0x49d8a2;let _0x3cc772={'unitId':_0xf4af9d,'subUnitId':_0x4e9c64,'shapeId':_0xb1c7f,'shapeData':_0x4d1843,'oldShapeJSON':_0x5d449e};return _0x3caec4[_0x15303f(0x2c5)](dn['id'],_0x3cc772);}function mn(_0x855a0d){'@babel/helpers - typeof';const _0x1f258f=_0x49d8a2;return mn=typeof Symbol==_0x1f258f(0x1fd)&&typeof Symbol[_0x1f258f(0x2c2)]=='symbol'?function(_0x254e6e){return typeof _0x254e6e;}:function(_0x4943af){const _0x4346df=_0x1f258f;return _0x4943af&&typeof Symbol==_0x4346df(0x1fd)&&_0x4943af[_0x4346df(0xe2)]===Symbol&&_0x4943af!==Symbol[_0x4346df(0xef)]?'symbol':typeof _0x4943af;},mn(_0x855a0d);}function hn(_0x35a624,_0x14d9e3){const _0x4ab4a7=_0x49d8a2;if(mn(_0x35a624)!=_0x4ab4a7(0x196)||!_0x35a624)return _0x35a624;var _0x565585=_0x35a624[Symbol['toPrimitive']];if(_0x565585!==void 0x0){var _0x59fbbe=_0x565585['call'](_0x35a624,_0x14d9e3||_0x4ab4a7(0x271));if(mn(_0x59fbbe)!='object')return _0x59fbbe;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x14d9e3===_0x4ab4a7(0x202)?String:Number)(_0x35a624);}function gn(_0x152aaf){const _0x220dc0=_0x49d8a2;var _0x2bf159=hn(_0x152aaf,_0x220dc0(0x202));return mn(_0x2bf159)==_0x220dc0(0x10c)?_0x2bf159:_0x2bf159+'';}function q(_0x37cb0e,_0x4be070,_0x39d2ed){const _0x1e7906=_0x49d8a2;return(_0x4be070=gn(_0x4be070))in _0x37cb0e?Object[_0x1e7906(0x117)](_0x37cb0e,_0x4be070,{'value':_0x39d2ed,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x37cb0e[_0x4be070]=_0x39d2ed,_0x37cb0e;}function _n(_0x4776ea,_0x2b735f,_0x188fdb){const _0x2f95a3=_0x49d8a2;var _0x1f054e;let _0x288329=_0x31773d(_0x4776ea,{..._0x2b735f,'dataModel':{...(_0x1f054e=_0x2b735f[_0x2f95a3(0x2e0)])==null?{}:_0x1f054e,..._0x188fdb?{'doc':_0x188fdb}:null}}),_0x446e01=_0x17f1c5(_0x288329);return{'clip':_0x3f71c6(_0x288329,_0x446e01),'wrapStrategy':_0x446e01};}var vn=class extends _0x176254{constructor(_0x21ce4e,_0x3fbfdb){const _0x3c83af=_0x49d8a2;super(_0x21ce4e,_0x3fbfdb),q(this,_0x3c83af(0x122),void 0x0),q(this,'_transformCalculateSrcRect',!0x0),q(this,_0x3c83af(0x1a6),_0x336997['DRAWING_SHAPE']),q(this,_0x3c83af(0xdf),!0x0),this[_0x3c83af(0x122)]={..._0x3fbfdb},this['_init']();}[_0x49d8a2(0x2fa)](){const _0x1966a0=_0x49d8a2;this[_0x1966a0(0x135)]['subscribeEvent'](_0x33b45e=>{const _0x67d95e=_0x1966a0;this[_0x67d95e(0x2ff)](_0x33b45e);});}['setPrstGeom'](_0x727b41){const _0x3270bc=_0x49d8a2;this['_props'][_0x3270bc(0x178)]=_0x727b41;}['setEditing'](_0x264ae0){this['_props']['isEditing']=_0x264ae0,this['makeDirty'](!0x0);}get['unitId'](){const _0x27e342=_0x49d8a2;return this[_0x27e342(0x122)][_0x27e342(0x1b7)];}get[_0x49d8a2(0x2b4)](){const _0x375da2=_0x49d8a2;return this[_0x375da2(0x122)][_0x375da2(0x2b4)];}[_0x49d8a2(0x2ff)](_0x1366d0){const _0x506605=_0x49d8a2;if(this[_0x506605(0x122)][_0x506605(0x225)]==null||!this['_transformCalculateSrcRect'])return;let {width:_0x594213,height:_0x3f644b}=this,{width:_0x18f567=0x0,height:_0x38ea7d=0x0}=_0x1366d0['preValue'],{left:_0x3dc584=0x0,top:_0x29bdfb=0x0,right:_0x4c85f4=0x0,bottom:_0x2e9662=0x0}=this['_props'][_0x506605(0x225)],_0x4378df=_0x3dc584,_0x258e38=_0x29bdfb,_0x2f1899=_0x4c85f4,_0x27795c=_0x2e9662,_0x141dc8=!0x1;if(_0x18f567!==0x0&&_0x18f567!==_0x594213){let _0x545720=_0x3dc584/_0x18f567,_0x283d50=_0x4c85f4/_0x18f567;_0x4378df=_0x594213*_0x545720,_0x2f1899=_0x594213*_0x283d50,_0x141dc8=!0x0;}if(_0x38ea7d!==0x0&&_0x38ea7d!==_0x3f644b){let _0xc5f78=_0x29bdfb/_0x38ea7d,_0x20c1d6=_0x2e9662/_0x38ea7d;_0x258e38=_0x3f644b*_0xc5f78,_0x27795c=_0x3f644b*_0x20c1d6,_0x141dc8=!0x0;}_0x141dc8&&this[_0x506605(0x279)]({'left':_0x4378df,'top':_0x258e38,'right':_0x2f1899,'bottom':_0x27795c});}['setSrcRect'](_0xf412cc){const _0xd8a8d2=_0x49d8a2;this[_0xd8a8d2(0x122)][_0xd8a8d2(0x225)]=_0xf412cc,this[_0xd8a8d2(0x165)](!0x0);}['setFillImage'](_0xceef10){const _0x1aaeae=_0x49d8a2;this[_0x1aaeae(0x122)][_0x1aaeae(0x157)]=_0xceef10,this[_0x1aaeae(0x165)](!0x0);}set[_0x49d8a2(0x166)](_0x30bc04){const _0x6db4af=_0x49d8a2;this[_0x6db4af(0x293)]=_0x30bc04;}get[_0x49d8a2(0x166)](){const _0x44ea1d=_0x49d8a2;this[_0x44ea1d(0x293)]||this['_setTransForm']();let _0xfb31fd=this['_transform'][_0x44ea1d(0x148)]();return this[_0x44ea1d(0x1bd)](_0xfb31fd);}get['shapeModel'](){const _0x50103e=_0x49d8a2;return this[_0x50103e(0x122)][_0x50103e(0x11d)];}get[_0x49d8a2(0x142)](){const _0x268624=_0x49d8a2;return this[_0x268624(0x122)]['shapeId'];}get['classType'](){const _0x4aaae4=_0x49d8a2;return _0x18ef31[_0x4aaae4(0x29d)];}['_draw'](_0x131002,_0x73b0e5,_0x1d0c20,_0x56cfeb){const _0x30d5bf=_0x49d8a2;let _0x5b5381=this[_0x30d5bf(0x122)][_0x30d5bf(0x11d)];if(!_0x5b5381||!_0x73b0e5)return;let _0x423b91=_0x1d0c20==null?this[_0x30d5bf(0x2b9)]:_0x1d0c20,_0x3a213f=_0x56cfeb==null?this[_0x30d5bf(0x232)]:_0x56cfeb,_0x755730={'shapeType':_0x5b5381[_0x30d5bf(0x285)](),'width':_0x423b91,'height':_0x3a213f},_0x5b52ca={'renderMode':_0x2d97cd[_0x30d5bf(0x245)],'oKey':this['oKey'],'image':this['_props']['image'],'angle':this[_0x30d5bf(0x1fa)]};_0x5b5381[_0x30d5bf(0x314)](_0x755730),_0x131002[_0x30d5bf(0x30b)]();let _0x2cdcb4={'top':0x0,'left':0x0,'width':_0x423b91,'height':_0x3a213f};_0x5b5381[_0x30d5bf(0x2b5)](_0x131002,_0x2cdcb4,_0x5b52ca),_0x131002[_0x30d5bf(0x13e)]();let _0x970d64=_0x5b5381[_0x30d5bf(0x1cc)](),_0xb358ef=_0x5b5381[_0x30d5bf(0x2fc)](_0x2cdcb4),_0x4ca119=_0x5b5381[_0x30d5bf(0xe0)]();if(_0x970d64&&_0xb358ef&&!_0x4ca119){_0x131002[_0x30d5bf(0x30b)](),this['getState']()['flipX']&&_0x131002[_0x30d5bf(0x32e)](-0x1,0x1);let _0x4c6b9a=_0x423b91/0x2,_0x14a469=_0x3a213f/0x2;_0x131002['translate'](-_0x4c6b9a,-_0x14a469),_0x131002['beginPath'](),this['_drawShapeText'](_0x131002,_0x970d64,_0xb358ef),_0x131002['restore']();}}['getDrawingPoints'](_0x48e7c4){}[_0x49d8a2(0x194)](_0x14ab28,_0x13c102,_0x220252){const _0x13350f=_0x49d8a2;var _0x328dbe;this[_0x13350f(0x122)]['isEditing']||(!((_0x328dbe=_0x13c102[_0x13350f(0x2e0)])!=null&&_0x328dbe[_0x13350f(0x15f)])&&_0x13350f(0xec)in _0x13c102&&_0x13c102[_0x13350f(0xec)]===!0x1?this[_0x13350f(0x24b)](_0x14ab28,_0x13c102,_0x220252):this['_drawRichText'](_0x14ab28,_0x13c102,_0x220252));}[_0x49d8a2(0x24b)](_0x8f43ee,_0x379eed,_0x4e41dc){const _0x4e0cad=_0x49d8a2;var _0x2583c5;this[_0x4e0cad(0x1aa)](_0x8f43ee,{..._0x379eed,'text':(_0x2583c5=_0x379eed['text'])==null?'':_0x2583c5,'dataModel':{'doc':_0x36c523(_0x379eed,'sheets-shape-text-'+this[_0x4e0cad(0x163)])}},_0x4e41dc);}[_0x49d8a2(0x1aa)](_0x482e69,_0x38c752,_0x517a8e){const _0x490034=_0x49d8a2;var _0x331875,_0x2789d0;let _0x213a03=this[_0x490034(0x122)][_0x490034(0x244)];if(!_0x38c752[_0x490034(0x2e0)]||!_0x213a03)return;let _0x5c103f=_0x50ef04(_0x38c752['dataModel']);if(!_0x5c103f)return;let _0x55d496=_0x5c103f[_0x490034(0x15f)];if(!_0x55d496)return;let _0x7dc632=(_0x331875=_0x5c103f['va'])==null?_0x2099ff['TOP']:_0x331875,_0x227ebf=(_0x2789d0=_0x5c103f['ha'])==null?_0x30a9f7[_0x490034(0x204)]:_0x2789d0,_0x130197=_n(this['_props'][_0x490034(0x11d)][_0x490034(0x205)](),_0x38c752,_0x55d496),_0x37d1cf=_0x38c752['isHorizontal'],_0x5a2b37=new _0x4de61b(_0x55d4b7(_0x55d496,{'isHorizontal':_0x37d1cf!==!0x1,'textRect':_0x517a8e,'verticalAlign':_0x7dc632,'horizontalAlign':_0x227ebf,'wrapStrategy':_0x130197[_0x490034(0x253)]})),_0x18a652=new _0x3425b8(_0x5a2b37),_0x325633=_0x3a7e93[_0x490034(0x1cd)](_0x18a652,_0x213a03);_0x325633[_0x490034(0x174)]();let _0x325836=_0x325633['getActualSize']()[_0x490034(0x1dc)],_0x24bf5a=_0x110d01({'contentHeight':_0x325836,'verticalAlign':_0x7dc632,'viewportHeight':_0x517a8e[_0x490034(0x232)]});_0x5a2b37['updateDocumentStyle']({'pageSize':{'width':_0x37d1cf===!0x1?_0x517a8e[_0x490034(0x232)]:_0x517a8e['width'],'height':_0x24bf5a['contentHeight']}}),_0x5a2b37[_0x490034(0x274)]({'t':_0x24bf5a['marginTop']}),_0x325633[_0x490034(0x174)]();let _0x731c4=new _0x5ca0dd(_0x490034(0x192)+this[_0x490034(0x163)],_0x325633,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x490034(0x165)](!0x0)});_0x731c4['resize'](_0x517a8e[_0x490034(0x2b9)],_0x24bf5a[_0x490034(0x255)]),_0x482e69[_0x490034(0x30b)](),_0x482e69[_0x490034(0x27a)](_0x517a8e[_0x490034(0x26f)],_0x517a8e[_0x490034(0x25d)]),_0x130197[_0x490034(0x12b)]&&(_0x482e69['beginPath'](),_0x482e69[_0x490034(0x10b)](0x0,_0x24bf5a[_0x490034(0x11e)],_0x517a8e[_0x490034(0x2b9)],_0x24bf5a[_0x490034(0x14e)]),_0x482e69['clip']()),_0x24bf5a['contentVerticalOffset']&&_0x482e69[_0x490034(0x27a)](0x0,_0x24bf5a[_0x490034(0x226)]),_0x731c4[_0x490034(0x298)](_0x482e69),_0x482e69[_0x490034(0x13e)](),_0x731c4[_0x490034(0x2b0)](),_0x325633['dispose'](),_0x18a652['dispose'](),_0x5a2b37[_0x490034(0x2b0)]();}[_0x49d8a2(0x2b5)](_0xc783ff,_0x51ddd9,_0x513a5e=!0x1){const _0x53cdc8=_0x49d8a2;if(!this[_0x53cdc8(0x316)])return this[_0x53cdc8(0x165)](!0x1),this;let {width:_0x46a8ce,height:_0x1f4b46,left:_0x1bba4d,top:_0x4c174b}=this,_0x4ee6c1=this[_0x53cdc8(0x23d)]();if(_0x46a8ce=_0x4ee6c1['width'],_0x1f4b46=_0x4ee6c1[_0x53cdc8(0x232)],_0x1bba4d=_0x4ee6c1['left'],_0x4c174b=_0x4ee6c1[_0x53cdc8(0x25d)],this[_0x53cdc8(0x1cb)](_0x51ddd9)){let {top:_0x36c3c6,left:_0x4ec051,bottom:_0x2dead7,right:_0x36d197}=_0x51ddd9[_0x53cdc8(0x2f8)];if(_0x46a8ce+this[_0x53cdc8(0x276)]+_0x1bba4d<_0x4ec051||_0x36d197<_0x1bba4d||_0x1f4b46+this[_0x53cdc8(0x276)]+_0x4c174b<_0x36c3c6||_0x2dead7<_0x4c174b)return this;}let _0x392cf9=_0x1bba4d+_0x46a8ce/0x2,_0x26859f=_0x4c174b+_0x1f4b46/0x2,_0x4c5786=this[_0x53cdc8(0x166)][_0x53cdc8(0x1d8)]();if(this['_props'][_0x53cdc8(0x193)]){let _0x3e654e=this['getState'](),_0x435b83=new _0x3a4198();_0x435b83[_0x53cdc8(0xf7)]({..._0x3e654e}),_0x4c5786=_0x435b83[_0x53cdc8(0x1d8)]();}return _0xc783ff[_0x53cdc8(0x30b)](),this[_0x53cdc8(0x122)][_0x53cdc8(0x11d)]['isRenderLinePointsMode']===!0x0||_0xc783ff[_0x53cdc8(0x166)](_0x4c5786[0x0],_0x4c5786[0x1],_0x4c5786[0x2],_0x4c5786[0x3],_0x392cf9,_0x26859f),this[_0x53cdc8(0x15e)](_0xc783ff,_0x51ddd9,_0x46a8ce,_0x1f4b46),_0xc783ff[_0x53cdc8(0x13e)](),this['makeDirty'](!0x1),this;}[_0x49d8a2(0x2be)](_0x58292f){const _0x304271=_0x49d8a2;let {left:_0x2afae3,top:_0xbccd06,width:_0x2f3764,height:_0x23fffd}=this[_0x304271(0x23d)](),_0x37cc46=this[_0x304271(0x166)]['getMatrix'](),_0xf86c3b=_0x2afae3+_0x2f3764/0x2,_0x128968=_0xbccd06+_0x23fffd/0x2,_0x10b4ca=new _0x3a4198([_0x37cc46[0x0],_0x37cc46[0x1],_0x37cc46[0x2],_0x37cc46[0x3],_0xf86c3b,_0x128968]),_0xc8baf2=this['getParent']();return(this['isInGroup']&&(_0xc8baf2==null?void 0x0:_0xc8baf2[_0x304271(0x2e7)])===_0x18ef31[_0x304271(0x237)]?_0xc8baf2[_0x304271(0x22a)][_0x304271(0x1be)](_0x10b4ca):_0x10b4ca)[_0x304271(0x2e4)]()[_0x304271(0x305)](_0x58292f);}['isHit'](_0x15e219){const _0x424868=_0x49d8a2;let {left:_0x59e365,top:_0x444d00,width:_0x447c07,height:_0x56a902}=this[_0x424868(0x23d)](),_0xe955a5=_0x59e365+_0x447c07/0x2,_0x3ddfab=_0x444d00+_0x56a902/0x2,_0x22fb59=this[_0x424868(0x166)][_0x424868(0x1d8)](),_0x517f88=new _0x3a4198([_0x22fb59[0x0],_0x22fb59[0x1],_0x22fb59[0x2],_0x22fb59[0x3],_0xe955a5,_0x3ddfab]),_0x4ebb0e=this[_0x424868(0x2bf)](),_0x36543e=(this[_0x424868(0x234)]&&(_0x4ebb0e==null?void 0x0:_0x4ebb0e[_0x424868(0x2e7)])===_0x18ef31[_0x424868(0x237)]?_0x4ebb0e[_0x424868(0x22a)][_0x424868(0x1be)](_0x517f88):_0x517f88)['invert']()[_0x424868(0x305)](_0x15e219),_0x188c2c=_0x447c07/0x2,_0x4a82a2=_0x56a902/0x2,_0x42b309=this[_0x424868(0x122)][_0x424868(0x11d)];return _0x42b309&&_0x42b309[_0x424868(0xe0)]()?_0x42b309[_0x424868(0x16a)](_0x36543e['x'],_0x36543e['y'],_0x447c07,_0x56a902):_0x36543e['x']>=-_0x188c2c-this[_0x424868(0x276)]/0x2&&_0x36543e['x']<=_0x188c2c+this[_0x424868(0x276)]/0x2&&_0x36543e['y']>=-_0x4a82a2-this['strokeWidth']/0x2&&_0x36543e['y']<=_0x4a82a2+this[_0x424868(0x276)]/0x2;}[_0x49d8a2(0x2b0)](){const _0x50cd92=_0x49d8a2;this[_0x50cd92(0x122)][_0x50cd92(0x11d)]=null,super['dispose']();}},yn=class extends _0x176254{constructor(_0xdd539e,_0x59ed33){const _0x8b44ad=_0x49d8a2;super(_0xdd539e,_0x59ed33),q(this,_0x8b44ad(0x1d0),null),q(this,'_adjName',null),q(this,_0x8b44ad(0x330),null),q(this,_0x8b44ad(0x227),null),_0x59ed33&&this[_0x8b44ad(0x25e)](_0x59ed33);}[_0x49d8a2(0x275)](){const _0x176487=_0x49d8a2;return{'unitId':this['_unitId'],'subUnitId':this[_0x176487(0x227)],'drawingId':this[_0x176487(0x1d0)]};}['setShapeProps'](_0x28da57){const _0x2e94db=_0x49d8a2;_0x28da57[_0x2e94db(0x142)]!==void 0x0&&(this[_0x2e94db(0x1d0)]=_0x28da57[_0x2e94db(0x142)]),_0x28da57[_0x2e94db(0x1a2)]!==void 0x0&&(this[_0x2e94db(0x2ad)]=_0x28da57['adjName']),_0x28da57[_0x2e94db(0x1b7)]!==void 0x0&&(this['_unitId']=_0x28da57[_0x2e94db(0x1b7)]),_0x28da57['subUnitId']!==void 0x0&&(this[_0x2e94db(0x227)]=_0x28da57[_0x2e94db(0x2b4)]),this[_0x2e94db(0x112)]({'width':_0x28da57['width'],'height':_0x28da57[_0x2e94db(0x232)]});}['_draw'](_0x266a27){const _0x3bc03f=_0x49d8a2;_0x1578ae[_0x3bc03f(0x1bf)](_0x266a27,{'radius':_0x2bea1d[_0x3bc03f(0xe1)],'fill':_0x2bea1d[_0x3bc03f(0x256)],'stroke':_0x2bea1d[_0x3bc03f(0xdd)],'strokeWidth':0x1,'evented':!0x0});}};function _0x4806(){const _0x5bd9db=['getRealBound','_initCommands','#bcbcbc','group','onload','onCommandExecuted','_getImageDrawingInfo','localeService','Path','_registerDrawingMoveHandler','isStartConnectorPoint','PictureFill','removeLinePoints','enableObjectsEvent','_drawSimpleText','_disposed','_addShapeConnectorHandlerObject','UUID','startArrow','15837hHqJNk','getImage','1.0.0-alpha.6','wrapStrategy','endConnectionDetection','contentHeight','adjHandleFill','_sidebarDisposable','trim','attachPopupToObject','getEditing','_isImagePointerDown','_calculateFreeEndpointAngle','top','setShapeProps','viewportScrollY','_registerImageShapeClipDelegate','UNIVER_SHEET','DRAWING_GROUP','setOnSavingEditorData','getShapeDataById','sheetTransform','stringify','_shapeRenderController','clip-adj-','_baseWidth','getDrawingByParam','_injector','pipe','skeleton','_sheetShapeAdjustController','left','fill','default','_connectorObjects','_isOpenedShapeEditPanel','updateDocumentDataMargin','getDrawingSearch','strokeWidth','open','getCurrentTypeOfUnit$','setSrcRect','translateWithPrecision','_onSavingEditorData$','_isDrawingShapePointDown','_clearPopups','getAdjustValueByName','gdRefAng','_registerOperations','VIEW_MAIN','DEFAULT_PASTE','targetShapeId','sectionFloating','getShapeType','_disposePopups','_registerFocusChangeHandler','_activeShapeId','length','renderDrawingShape','connector-handler-','_initEditingParams','_getImagePrstGeom','getConnectionInfo','_createControls','changeShapeType','initShapePopupMenu','SheetShapeTextEditorContainer','_transform','_handleBasicShapeUpdateConnectorLineShape','objects','getShapeModel','gdRefY','draw','_addShapeAdjustControl','sheet.shape.edit.panel','DRAWING_TABLE','_imageIoService','SHAPE','_createShapeAdjustControls','_handleConnectedEndpointPointerUp','PRINTING_COMPONENT_COLLECT','getAdjustInfoByName','_updateImageAdjValues','delete','startConnectionDetection','_isStartAdjusting','_reset','indexOf','updateShapeFillImage','_focusedDrawings','_highlightedSiteIndex','fillImageSourceType','CROSSHAIR','_adjName','UNIVER_DOC','_commandService','dispose','_clearShapeAdjustControls','shapeType','_shapes','subUnitId','render','_shapeService','DRAWING_IMAGE','addClipboardHook','width','params','_cxnIndex','_generatePasteMutations','_findShapeAtPoint','getInverseCoord','getParent','sin','keys','iterator','_index','getRenderById','executeCommand','getImageSourceCache','_componentManager','focusDrawing','SHEET_SHAPE_UI_PLUGIN','setPrstGeom','clearAdjustControls','values','registerClipDelegate','Arrow','_activeAdjustPointList','copyType','_registerDrawingFocusChangeHandler','index','from','MEDIA','_editingParams$','canvas','_draggingConnectorId','vertical','_copyInfo','sqrt','ang','remove$','stroke','getConnectorLinePoints','_localeService','dataModel','fillType','forward','unsubscribe','invert','cxnPointStrokeWidth','relation','classType','sheet.command.update-shape-data','_contextService','_executeConnectedRouteConnectionCommand','_getShapeAdjustPointListById','top-center','includes','some','sheets-shape-ui.rotateRight90','1342551ANEJQO','data','_activeShapeAdjustPointList','setEditing','changing$','_isHighlighted','_initialize','_registerIcons','viewBound','completeEditing','_init','sheets-shape-ui.imagePanel.crop.shape','getShapeTextRect','refreshTransform','_handleFreeEndpointPointerUp','_updateSrcRectByTransform','calcAdjValue','onPointerMove$','fillImageSource','_createShapePopupMenu','_baseHeight','applyPoint','getDrawingOrder','getObject','6261055tAmnUR','connection-site-','_targetShapeId','save','redo','offsetX','_getScrollInfo','_resetState','TOP','_clearConnectionSites','_baseShapeWidth','_activeShapeInfo','updateContext','_openShapeEditPanel','visible','fontSize','_executeConnectedRouteResizeCommand','video','_sheetDrawingShapeRenderController','onDblclick$','flipX','interceptCommand','sheets-shape-ui.insertShape','end','onReady','_getConnectionSiteAngle','changeEnd$','prstGeomAdjValues','_shapeUpdateListener','getAdjustNames','_popupMenuListener','_clipService','onRendered','_initCopyPaste','VIEW_MAIN_LEFT','registerFeaturePasteHook','getFocusDrawings','_findNearestConnectionSite','scale','activeAnObject','_unitId','startY','sheets-shape-ui.toggleFlipH','updateLinePoints','_sheetDrawingService','CUT','_attachAdjustEvent','INSERT','sheet.operation.open-shape-object-list-panel','title','_closeShapeEditPanel','252ijoXdU','pushUndoRedo','viewportScrollX','parent','getObjectIncludeInGroup','axisAlignSheetTransform','_hasReset','adjHandleStroke','gradientEndColor','isDrawingObject','isLineShape','adjHandleSize','constructor','_adjHandlerPointerUp','_handleConnectedEndpointMove','_initializedShapePopupMenu','syncExecuteCommand','gdRefX','_updateAdjustControlPositions','shapeText','clearAdjustValue','getShapeTypeById','isRichText','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','sheets-shape-ui','prototype','_currentConnectionTarget','_getShapeInfo','_sheetSkeletonService','setShapeData','selectable','with','description','composeMatrix','_sheetClipboardService','order','editingParams$','REMOVE','sheets-shape-ui.hidePanel','URL','DRAWING_UNIT','_showConnectionSites','getCurrentScrollState','_cxtHandlerPointerUp','6hfHxHr','shapeKey','featurePluginUpdateNotification','size','_urlImageService','_renderManagerService','stopPropagation','cxnPointStroke','getDrawingEditable','rect','symbol','registerRenderModule','sheets-shape-ui.permission.editErr','_baseShapeTop','5109480aUxUOK','forEach','transformByState','close','adjustValues','_executeConnectionCommand','interceptor','defineProperty','_currentUniverService','_getOrCreateShapeModel','_initPrinting','OPERATION','table','shapeModel','clipTop','CopyDoubleIcon','add','setFillImage','_props','localToWorld','_lastEditingShapeKey','getValue','_registerMoveHandler','update$','SELECTOR','_attachConnectorObjectEvent','_context','clip','computeStraightConnectorLayout','getDrawingPoints','drawingType','getUnit','worldPoints','_groupCopyPasteController','flipY','DRAWING_VIDEO','_iconManager','onTransformChange$','reverse','start','find','focus$','_loadShapePictureFill','getDrawingVisible','entries','drawing.operation.set-drawing-active','restore','_initMenu','COMMAND','Image','shapeId','_updateShapeAdjustControls','reduce','sheet.image-clip.shape-picker.component','SHAPE_TEXT','registerCommand','clone','getSelectedObjectMap','updateConnectionDetection','getTransformerByCreate','Rect','_currentScene','clipHeight','setContextValue','_insertShapes','getUnitType','setShouldShowAdjust','refreshShapeFillImage','isArray','_baseLeft','2431176tEtTQo','image','_baseShapeLeft','_drawingManagerService','next','_sheetPrintInterceptorService','hidden','_activeImageId','_draw','doc','_commandExecutedListener','addImageSourceCache','disableObjectsEvent','oKey','setPrstGeomAdjValues','makeDirty','transform','_connectionSiteObjects','univer-box-border\x20univer-px-4\x20univer-text-sm','getSheetBySheetId','isHitLine','_isStartConnectorPoint','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','disposeWithMe','sheets-shape-ui.objectListPanel.open','setCursor','sheets-shape-ui.objectListPanel.title','beforeCommandExecuted','_baseTop','DRAWING_DOM','calculate','_sidebarService','fontFamily','pick','prstGeom','_updateTransform','_adjHandlerPointerMove','cos','VIEW_MAIN_LEFT_TOP','_sheetBasicShapeConnectionPointController','endArrow','permissionCheckWithoutRange','_drawingAddListener','DRAWING_SHAPE','_sheetCanvasPopManagerService','getTransformer','rotation','_shapeTextEditingService','_clearControls','5830946CREyAZ','_generateCutPasteMutations','VIEW_MAIN_TOP','_imageShapeClipController','getDrawingOKey','activeSheet$','resetCursor','offsetY','_config','sheet.shape.text.float-menu','sheet.shape.picker.component','shape-text-','isEditing','_drawShapeText','ShapeIcon','object','_handleConnectorPointerUp','getConnectionSiteList','getCurrentUnitOfType','sheetViewStartColumn','subscribeEvent','_registerGroupFeaturePasteHook','_loadAndSetImage','_moveConnectorWithShape','shape-adjust-point-','registerFeatureMenuOffset','map','adjName','Large','getSkeleton','DRAWING_SMART_ART','_drawingType','4hNKHvo','error','getBatchRemoveOp','_drawRichText','bind','clear','_activeTargetShapeId','DRAWING_CHART','BUTTON','shape','Medium','7640045AsVKzU','_rerouteConnectorLine','getConnectionRelation','div','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','unitId','_univerInstanceService','_getConnectPointInfo','getBasicShapeRelation','_registerComponents','get','transformForAngle','multiply','drawWith','_sheetInterceptorService','_clearShapeConnectorHandlerObjects','_baseShapeHeight','getSkeletonParam','worldPoint','shapeData','refreshAdjustControls','addObject','unit','_getSceneAndTransformerByDrawingSearch','onPointerDown$','isRender','getShapeTextData','create','sheet.operation.open-sheet-shape-format-panel','setAdjustValueByName','_shapeId','_isShouldShowDrawingShapeAdjust','_isConnecting','custom','SolidFill','_executeResizeCommand','_initEvents','extraProps','getMatrix','getStartConnectInfo','filter','_activeShapeModel','actualHeight','name','gdRefR','clip-','getCurrentSkeleton','sheets-shape-ui.toggleTextVertical','version','#4285f4','_initSheetChange','complete','sheet.shape.object-list.panel','computeConnectorResizeLayout','sheet.command.menu-insert-shape','_activeAdjustInfo','abs','cxnPointRadius','isHighlighted','_getDrawingRect','sheet.shape.floating-toolbar','getCurrentLastSelection','normal','blockExecuteWithoutPermission','changeStart$','undo','_generateCopyPasteMutations','startX','sheets-shape-ui.openPanel','18sWnEDp','_baseDrawingRect','doc.image-clip.shape-picker.component','angle','clipByShape','onPointerUp$','function','highlighted','type','smartArt','None','string','_shapeEditPanelVersion','LEFT','getShapeData','sheetViewStartRow','_sheetPermissionCheckController','packageName','onerror','set','getBatchAddOp','_getShapeAdjustInfosById','_insertingShapeKeys','drawingId','setCanUseShapeClip','UPDATE','_addShapeConnectorHandlerObjects','subscribe','sectionCanvas','push','has','SolidLine','cxnIndex','sheets-shape-ui.config','_addControl','getOwnPropertyDescriptor','_drawingRenderService','value','register','_createCopyInfoByRange','_handleFreeEndpointMove','_sheetsShapeService','getZoomRatio','cxnPointFill','getEndConnectInfo','_getZoomRatio','srcRect','contentVerticalOffset','_subUnitId','scene','getUnitId','ancestorTransform','_cxtHandlerPointerMove','point','getDrawingDataForUnit','lineType','getBentTypeFromPoints','parse','_initPermission','height','getDrawingData','isInGroup','lineShapeId','horizontal','GROUP','worldRect','getShapePopupMenus','#FFFFFF','_configService','Line'];_0x4806=function(){return _0x5bd9db;};return _0x4806();}function J(_0xb3a217,_0x1500ed){return function(_0x29141b,_0x3e3e71){_0x1500ed(_0x29141b,_0x3e3e71,_0xb3a217);};}function Y(_0x52d7d5,_0x41dde7,_0x52f893,_0x5d8005){const _0x5b8e51=_0x49d8a2;var _0x3d4c39=arguments[_0x5b8e51(0x289)],_0x29f281=_0x3d4c39<0x3?_0x41dde7:_0x5d8005===null?_0x5d8005=Object[_0x5b8e51(0x21a)](_0x41dde7,_0x52f893):_0x5d8005,_0x5f5b4b;if(typeof Reflect==_0x5b8e51(0x196)&&typeof Reflect['decorate']==_0x5b8e51(0x1fd))_0x29f281=Reflect['decorate'](_0x52d7d5,_0x41dde7,_0x52f893,_0x5d8005);else{for(var _0x1d23d6=_0x52d7d5[_0x5b8e51(0x289)]-0x1;_0x1d23d6>=0x0;_0x1d23d6--)(_0x5f5b4b=_0x52d7d5[_0x1d23d6])&&(_0x29f281=(_0x3d4c39<0x3?_0x5f5b4b(_0x29f281):_0x3d4c39>0x3?_0x5f5b4b(_0x41dde7,_0x52f893,_0x29f281):_0x5f5b4b(_0x41dde7,_0x52f893))||_0x29f281);}return _0x3d4c39>0x3&&_0x29f281&&Object[_0x5b8e51(0x117)](_0x41dde7,_0x52f893,_0x29f281),_0x29f281;}let X=class extends _0x1e0fa2{constructor(_0xc7b7be,_0x282990,_0x3b5f84,_0x4a7dd1,_0x409765){const _0x2a11b4=_0x49d8a2;super(),this[_0x2a11b4(0x159)]=_0xc7b7be,this[_0x2a11b4(0x220)]=_0x282990,this[_0x2a11b4(0x2df)]=_0x3b5f84,this['_imageIoService']=_0x4a7dd1,this[_0x2a11b4(0x106)]=_0x409765;}[_0x49d8a2(0x28a)](_0x183459,_0xa406ea,_0x46fcfc){const _0x161f5f=_0x49d8a2;let {transform:_0x1c95f3,drawingType:_0x44e1d2,srcRect:_0x560d86,prstGeom:_0x5ba077,groupId:_0x10b00d,unitId:_0x399804,subUnitId:_0x42497e,drawingId:_0x2a0ac4,isMultiTransform:_0x3cd3d3,transforms:_0x299ac5,hidden:_0x3cf1a7,selectable:_0x3228ec}=_0x183459;if(_0x44e1d2!==_0x336997[_0x161f5f(0x181)]||!this[_0x161f5f(0x159)][_0x161f5f(0x13b)]()||_0x1c95f3==null)return;let _0x1d2d53=this[_0x161f5f(0x159)][_0x161f5f(0x10a)]();_0x1d2d53&&_0xa406ea['initTransformer'](_0x370f9f);let _0x51e870=_0x3cd3d3&&_0x299ac5?_0x299ac5:[_0x1c95f3],_0x34a08a=[];for(let _0x12314e of _0x51e870){let {left:_0x23478f,top:_0x17f99d,width:_0x183345,height:_0x283433,angle:_0x5873e8,flipX:_0x432d6c,flipY:_0x1c7b82,skewX:_0x4cd3eb,skewY:_0x3d352c}=_0x12314e,_0x445ab2=_0x51e870[_0x161f5f(0x2a7)](_0x12314e),_0x2707a4=_0x24e648({'unitId':_0x399804,'subUnitId':_0x42497e,'drawingId':_0x2a0ac4},_0x3cd3d3?_0x445ab2:void 0x0),_0x2f0354=_0xa406ea[_0x161f5f(0xda)](_0x2707a4);if(_0x2f0354!=null){_0x2f0354[_0x161f5f(0x112)]({'left':_0x23478f,'top':_0x17f99d,'width':_0x183345,'height':_0x283433,'angle':_0x5873e8,'flipX':_0x432d6c,'flipY':_0x1c7b82,'skewX':_0x4cd3eb,'skewY':_0x3d352c});continue;}let _0x19b12a=this[_0x161f5f(0x159)][_0x161f5f(0x306)](_0x399804,_0x42497e),_0x4d1bc9=_0x19b12a[_0x161f5f(0x2a7)](_0x2a0ac4);if(_0xa406ea['getObjectIncludeInGroup'](_0x2707a4)||!this[_0x161f5f(0x159)][_0x161f5f(0x13b)]())continue;let _0x37b3ea=this[_0x161f5f(0x220)]['getShapeModel'](_0x399804,_0x42497e,_0x2a0ac4);if(!_0x37b3ea)continue;let _0x30f654=new vn(_0x2707a4,{..._0x5d2a5e(_0x37b3ea[_0x161f5f(0x285)]())?{..._0x12314e,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x12314e},'zIndex':_0x4d1bc9===-0x1?_0x19b12a[_0x161f5f(0x289)]-0x1:_0x4d1bc9,'shapeModel':_0x37b3ea,'localeService':this[_0x161f5f(0x2df)],'shapeId':_0x2a0ac4,'unitId':_0x399804,'subUnitId':_0x42497e,'visible':_0x3cf1a7!==!0x0,'evented':_0x3228ec!==!0x1});_0xa406ea[_0x161f5f(0x1c7)](_0x30f654,_0x529f4c),_0x1d2d53&&_0xa406ea['attachTransformerTo'](_0x30f654),_0x10b00d&&_0x4cf997({'drawingId':_0x10b00d,'unitId':_0x399804,'subUnitId':_0x42497e},_0x30f654,_0xa406ea,this[_0x161f5f(0x159)]),_0x5ba077!=null&&_0x30f654[_0x161f5f(0x2ca)](_0x5ba077),_0x560d86!=null&&_0x30f654[_0x161f5f(0x279)](_0x560d86);let _0x3e036d=this[_0x161f5f(0x13a)](_0x30f654,_0x37b3ea[_0x161f5f(0x205)]());if(_0x3e036d){var _0x3ecd5c;_0x46fcfc==null||(_0x3ecd5c=_0x46fcfc['resourceCollector'])==null||_0x3ecd5c[_0x161f5f(0x120)](_0x3e036d);}_0x34a08a[_0x161f5f(0x214)](_0x30f654);}return _0x34a08a;}[_0x49d8a2(0x153)](_0x56d730){const _0xddfde5=_0x49d8a2;let _0x3abb37=_0x56d730[_0xddfde5(0x11d)][_0xddfde5(0x205)](),_0x4fa523=_0x3abb37['fill'];if(!_0x4fa523||_0x4fa523['fillType']!==_0x13bf97[_0xddfde5(0x248)]||!_0x4fa523[_0xddfde5(0x302)]){_0x56d730['setFillImage'](void 0x0);return;}this[_0xddfde5(0x13a)](_0x56d730,_0x3abb37);}[_0x49d8a2(0x13a)](_0x5a7c49,_0x562149){const _0x5e027e=_0x49d8a2;var _0x3c7896;let _0x122467=_0x562149[_0x5e027e(0x270)];if(!_0x122467||_0x122467[_0x5e027e(0x2e1)]!==_0x13bf97[_0x5e027e(0x248)]||!_0x122467[_0x5e027e(0x302)])return;let _0x3aa8ea=_0x122467[_0x5e027e(0x302)],_0x36cd84=(_0x3c7896=_0x122467[_0x5e027e(0x2ab)])==null?_0x4ed528[_0x5e027e(0xfd)]:_0x3c7896,_0x5ac8b9=this[_0x5e027e(0x29c)][_0x5e027e(0x2c6)](_0x3aa8ea,_0x36cd84);if(_0x5ac8b9){_0x5a7c49['setFillImage'](_0x5ac8b9);return;}return this[_0x5e027e(0x19d)](_0x5a7c49,_0x3aa8ea,_0x36cd84);}async['_loadAndSetImage'](_0x177cde,_0x4fc87b,_0x1ef0cc){const _0x3ef31f=_0x49d8a2;let _0x38dc1f;try{if(_0x1ef0cc===_0x4ed528[_0x3ef31f(0x24e)])_0x38dc1f=await this[_0x3ef31f(0x29c)][_0x3ef31f(0x251)](_0x4fc87b);else{if(_0x1ef0cc===_0x4ed528['URL'])try{_0x38dc1f=await this[_0x3ef31f(0x106)][_0x3ef31f(0x251)](_0x4fc87b);}catch{_0x38dc1f=_0x4fc87b;}else _0x38dc1f=_0x4fc87b;}}catch(_0x3e4405){console[_0x3ef31f(0x1a8)](_0x3ef31f(0x1b6),_0x3e4405);return;}await new Promise(_0x2d1c56=>{const _0x245545=_0x3ef31f;let _0x50861e=new window[(_0x245545(0x141))]();_0x50861e[_0x245545(0x241)]=()=>{const _0x15b258=_0x245545;this[_0x15b258(0x29c)][_0x15b258(0x161)](_0x4fc87b,_0x1ef0cc,_0x50861e),_0x177cde['setFillImage'](_0x50861e),_0x2d1c56();},_0x50861e[_0x245545(0x209)]=()=>{const _0x16014a=_0x245545;console[_0x16014a(0x1a8)](_0x16014a(0x16c),_0x4fc87b),_0x2d1c56();},_0x50861e['src']=_0x38dc1f;});}};X=Y([J(0x0,_0x5a9176),J(0x1,_0x3465f0(_0x1a451a)),J(0x2,_0x3465f0(_0x9a7c24)),J(0x3,_0x529318),J(0x4,_0x225d5a)],X);let Z=class extends _0x1e0fa2{constructor(_0x3aebbc,_0x4b6fbe,_0xbe75ea,_0x1895b7,_0x8d9146,_0x289c49){const _0x2bde6b=_0x49d8a2;super(),this[_0x2bde6b(0x159)]=_0x3aebbc,this['_sheetsShapeService']=_0x4b6fbe,this[_0x2bde6b(0x107)]=_0xbe75ea,this[_0x2bde6b(0x31a)]=_0x1895b7,this[_0x2bde6b(0x1b8)]=_0x8d9146,this['_commandService']=_0x289c49,q(this,_0x2bde6b(0x288),null),q(this,'_unitId',null),q(this,_0x2bde6b(0x227),null),q(this,_0x2bde6b(0x2f2),void 0x0),q(this,_0x2bde6b(0x2b3),[]),q(this,_0x2bde6b(0x158),0x0),q(this,_0x2bde6b(0x10f),0x0),q(this,'_baseShapeWidth',0x0),q(this,'_baseShapeHeight',0x0),q(this,_0x2bde6b(0x2a5),!0x1),q(this,_0x2bde6b(0x1e9),void 0x0),q(this,'_activeShapeModel',void 0x0),q(this,_0x2bde6b(0x17a),void 0x0),q(this,_0x2bde6b(0xe3),void 0x0),q(this,_0x2bde6b(0x1d1),!0x1),this[_0x2bde6b(0x2d1)](),this[_0x2bde6b(0x246)]();}[_0x49d8a2(0x2eb)](_0xcfd4a4,_0xbb8d88,_0x839645){const _0xcf92de=_0x49d8a2;let _0x377cf1=this[_0xcf92de(0x220)][_0xcf92de(0x296)](_0xcfd4a4,_0xbb8d88,_0x839645);if(_0x377cf1)return _0x377cf1[_0xcf92de(0x12d)]();}[_0x49d8a2(0x2cb)](){const _0x67b11=_0x49d8a2;this[_0x67b11(0x2b1)]();}[_0x49d8a2(0x1c6)](){this['_updateShapeAdjustControls'](!0x0);}[_0x49d8a2(0x152)](_0x408502){const _0x30cb79=_0x49d8a2;this[_0x30cb79(0x1d1)]=_0x408502;}[_0x49d8a2(0x20c)](_0x4f9178,_0x39c783,_0x280608,_0x332d05){const _0x958057=_0x49d8a2;let _0x508315=this['_sheetsShapeService']['getShapeModel'](_0x4f9178,_0x39c783,_0x280608);if(_0x508315)return _0x508315[_0x958057(0x2a1)](_0x332d05);}[_0x49d8a2(0x29e)](_0x10d2cd=!0x1){const _0x2a6f7e=_0x49d8a2;if(this[_0x2a6f7e(0x330)]===null||this[_0x2a6f7e(0x227)]===null||this[_0x2a6f7e(0x288)]===null)return;let _0x30e784=this[_0x2a6f7e(0x107)][_0x2a6f7e(0x2c4)](this['_unitId']);if(!_0x30e784||!_0x30e784[_0x2a6f7e(0xf5)](_0x4b5a3f)[_0x2a6f7e(0x1e0)]())return;let {scene:_0x3cc1f9}=_0x30e784,_0x577b58={'unitId':this[_0x2a6f7e(0x330)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x2a6f7e(0x288)]},_0x484086=this[_0x2a6f7e(0x159)][_0x2a6f7e(0x26a)](_0x577b58),{transform:_0x28044d}=_0x484086;if(!_0x28044d||_0x484086['drawingType']!==_0x336997['DRAWING_SHAPE'])return;let {left:_0x21a817,top:_0x8767e6,width:_0x1fe606,height:_0x35ef5d,flipX:_0x979434,flipY:_0x3927ad,angle:_0x18c912=0x0}=_0x28044d;if(_0x21a817===void 0x0||_0x8767e6===void 0x0)return;_0x10d2cd&&(this[_0x2a6f7e(0x2f2)]=this[_0x2a6f7e(0x2eb)](this['_unitId'],this[_0x2a6f7e(0x227)],this['_activeShapeId']));let _0x25126f=this[_0x2a6f7e(0x2f2)];for(let _0x401736=0x0;_0x401736<_0x25126f[_0x2a6f7e(0x289)];_0x401736++){let _0x9bfae9=_0x25126f[_0x401736],_0x25f64f=_0x9bfae9['x'],_0x5675c2=_0x9bfae9['y'];if(_0x979434&&(_0x25f64f=(_0x1fe606||0x0)-_0x25f64f),_0x3927ad&&(_0x5675c2=(_0x35ef5d||0x0)-_0x5675c2),_0x18c912!==0x0){let _0x46a93f=(_0x1fe606||0x0)/0x2,_0x5446f5=(_0x35ef5d||0x0)/0x2,_0x3cab39=_0x18c912*Math['PI']/0xb4,_0x2fa816=Math[_0x2a6f7e(0x17b)](_0x3cab39),_0x5b6012=Math[_0x2a6f7e(0x2c0)](_0x3cab39),_0x393125=_0x25f64f-_0x46a93f,_0x155f55=_0x5675c2-_0x5446f5;_0x25f64f=_0x46a93f+(_0x393125*_0x2fa816-_0x155f55*_0x5b6012),_0x5675c2=_0x5446f5+(_0x393125*_0x5b6012+_0x155f55*_0x2fa816);}let _0x512737={'x':_0x25f64f,'y':_0x5675c2,'adjName':_0x9bfae9[_0x2a6f7e(0x1a2)]};this[_0x2a6f7e(0x299)](_0x3cc1f9,_0x512737,_0x512737[_0x2a6f7e(0x1a2)],_0x21a817,_0x8767e6,this[_0x2a6f7e(0x330)],this[_0x2a6f7e(0x227)]);}}[_0x49d8a2(0x143)](_0x2dec76=!0x1){const _0x12340f=_0x49d8a2;_0x2dec76&&(this[_0x12340f(0x2b1)](),this[_0x12340f(0x29e)](_0x2dec76));}[_0x49d8a2(0x299)](_0x1b09a7,_0x5165d9,_0x4d8f22,_0x49fd79,_0x327b37,_0x44ad33,_0x13153e){const _0x3a366f=_0x49d8a2;if(!this['_activeShapeId'])return;let _0x5127a0=_0x1b09a7['getObjectIncludeInGroup'](_0x3a366f(0x19f)+this[_0x3a366f(0x288)]+'-'+_0x4d8f22);if(_0x5127a0){_0x5127a0[_0x3a366f(0x112)]({'left':_0x5165d9['x']+_0x49fd79-_0x2bea1d[_0x3a366f(0xe1)],'top':_0x5165d9['y']+_0x327b37-_0x2bea1d[_0x3a366f(0xe1)]});return;}let _0x28ab48={'left':_0x5165d9['x']+_0x49fd79-_0x2bea1d[_0x3a366f(0xe1)],'top':_0x5165d9['y']+_0x327b37-_0x2bea1d[_0x3a366f(0xe1)],'adjName':_0x4d8f22,'shapeId':this['_activeShapeId'],'unitId':_0x44ad33,'subUnitId':_0x13153e,'width':_0x2bea1d[_0x3a366f(0xe1)]+0x8,'height':_0x2bea1d[_0x3a366f(0xe1)]+0x8,'zIndex':_0x529f4c+0x1,'evented':!0x0},_0x493b85=new yn('shape-adjust-point-'+this['_activeShapeId']+'-'+_0x4d8f22,_0x28ab48);this[_0x3a366f(0x2b3)][_0x3a366f(0x214)](_0x493b85),this[_0x3a366f(0x336)](_0x493b85,_0x1b09a7,_0x4d8f22),_0x1b09a7['addObject'](_0x493b85,_0x529f4c+0x1);}['_clearShapeAdjustControls'](){const _0x2d3282=_0x49d8a2;this[_0x2d3282(0x2b3)][_0x2d3282(0x289)]!==0x0&&(this[_0x2d3282(0x2b3)][_0x2d3282(0x111)](_0x168804=>{const _0x3346e5=_0x2d3282;_0x168804[_0x3346e5(0x2b0)]();}),this[_0x2d3282(0x2b3)]=[]);}[_0x49d8a2(0xe8)](){const _0x153462=_0x49d8a2;this[_0x153462(0x29e)]();}[_0x49d8a2(0x30e)](_0x3b3eb2,_0x1d61f9){const _0x253526=_0x49d8a2;var _0x52b773;let _0x5bbf57={'x':0x0,'y':0x0};if(!_0x3b3eb2||!_0x1d61f9)return _0x5bbf57;let _0x293cf6=this[_0x253526(0x107)][_0x253526(0x2c4)](_0x3b3eb2);if(!_0x293cf6||!_0x293cf6[_0x253526(0xf5)](_0x4b5a3f)[_0x253526(0x1a4)](_0x1d61f9))return _0x5bbf57;let _0x438003=_0x293cf6[_0x253526(0xf5)](_0x5480ae),_0x4ab9e5=_0x438003==null?void 0x0:_0x438003[_0x253526(0x100)]();if(!_0x4ab9e5)return _0x5bbf57;let _0x5b02ba=(_0x52b773=this[_0x253526(0x1b8)][_0x253526(0x12f)](_0x3b3eb2))==null?void 0x0:_0x52b773['getSheetBySheetId'](_0x1d61f9);if(!_0x5b02ba)return _0x5bbf57;let _0x257fe7=_0x356c4d(_0x4ab9e5[_0x253526(0x206)],_0x4ab9e5['sheetViewStartColumn'],_0x293cf6[_0x253526(0x228)],_0x5b02ba);return _0x257fe7?{'x':_0x257fe7[_0x253526(0x33d)],'y':_0x257fe7[_0x253526(0x25f)]}:_0x5bbf57;}[_0x49d8a2(0x224)](_0x374235,_0x505d02){const _0x21a3f2=_0x49d8a2;var _0x44c1ea,_0x813016;let _0x3fabc9=(_0x44c1ea=this[_0x21a3f2(0x1b8)][_0x21a3f2(0x12f)](_0x374235))==null?void 0x0:_0x44c1ea['getSheetBySheetId'](_0x505d02);return(_0x813016=_0x3fabc9==null?void 0x0:_0x3fabc9[_0x21a3f2(0x221)]())==null?0x1:_0x813016;}[_0x49d8a2(0x336)](_0x429c62,_0x42e49c,_0x905fa9){const _0x4b5fa0=_0x49d8a2;this['disposeWithMe'](_0x4f15f0(_0x429c62[_0x4b5fa0(0x1ca)][_0x4b5fa0(0x19b)]((_0x4a55a3,_0x153f6b)=>{const _0x183a09=_0x4b5fa0;var _0x4a9623,_0x473957,_0x25031f,_0x440550;let _0x5e968b=_0x429c62['getDrawingSearch']();this[_0x183a09(0x1e9)]=this[_0x183a09(0x20c)](_0x5e968b['unitId'],_0x5e968b['subUnitId'],_0x5e968b[_0x183a09(0x20e)],_0x905fa9),this[_0x183a09(0x1db)]=this[_0x183a09(0x220)][_0x183a09(0x296)](_0x5e968b['unitId'],_0x5e968b[_0x183a09(0x2b4)],_0x5e968b[_0x183a09(0x20e)]);let _0x1da94a=this[_0x183a09(0x159)][_0x183a09(0x26a)]({'unitId':this[_0x183a09(0x330)],'subUnitId':this[_0x183a09(0x227)],'drawingId':this['_activeShapeId']}),{transform:_0x5699a2}=_0x1da94a;if(_0x5699a2){let {left:_0x300435,top:_0x2a827b,width:_0x26733c,height:_0xa2716f}=_0x5699a2;this[_0x183a09(0x158)]=_0x300435||0x0,this[_0x183a09(0x10f)]=_0x2a827b||0x0,this[_0x183a09(0x312)]=_0x26733c||0x0,this['_baseShapeHeight']=_0xa2716f||0x0;}let _0x2507f9=!!((_0x4a9623=_0x1da94a[_0x183a09(0x166)])!=null&&_0x4a9623['flipX']),_0x4351d4=!!((_0x473957=_0x1da94a[_0x183a09(0x166)])!=null&&_0x473957[_0x183a09(0x132)]),_0x50cb41=((_0x25031f=_0x1da94a[_0x183a09(0x166)])==null?void 0x0:_0x25031f[_0x183a09(0x1fa)])||0x0;this[_0x183a09(0x2a5)]=!0x0,_0x42e49c[_0x183a09(0x162)]();let _0x412c8a=(_0x440550=this['_activeShapeModel'])==null?void 0x0:_0x440550['getAdjustValueByName'](_0x905fa9),_0x170901={[_0x905fa9]:_0x412c8a};this[_0x183a09(0x17a)]=_0x42e49c[_0x183a09(0x301)][_0x183a09(0x19b)]((_0x191d91,_0x1a496c)=>{const _0x2857bb=_0x183a09;if(!this[_0x2857bb(0x2a5)])return;let {offsetX:_0x27a99b,offsetY:_0x226e51}=_0x191d91,_0x3ef4dd=this[_0x2857bb(0x1e9)];if(this[_0x2857bb(0x1db)]&&_0x3ef4dd){_0x42e49c[_0x2857bb(0x162)](),_0x42e49c[_0x2857bb(0x16f)](_0x35244f['CROSSHAIR']);let _0xce89c7={'left':0x0,'top':0x0,'width':this[_0x2857bb(0x312)],'height':this[_0x2857bb(0x1c2)]},_0x368aff=this['_getScrollInfo'](this['_unitId'],this[_0x2857bb(0x227)]),_0x249022=this[_0x2857bb(0x224)](this[_0x2857bb(0x330)],this[_0x2857bb(0x227)]),_0x569805=_0x27a99b/_0x249022+_0x368aff['x']-this['_baseShapeLeft'],_0x5badc8=_0x226e51/_0x249022+_0x368aff['y']-this[_0x2857bb(0x10f)];if(_0x50cb41!==0x0){let _0x4dc7f1=this[_0x2857bb(0x312)]/0x2,_0x1fa3f1=this[_0x2857bb(0x1c2)]/0x2,_0x486857=_0x50cb41*Math['PI']/0xb4,_0x15b3a3=Math[_0x2857bb(0x17b)](_0x486857),_0x5ea094=Math[_0x2857bb(0x2c0)](_0x486857),_0x4040d9=_0x569805-_0x4dc7f1,_0x3a901f=_0x5badc8-_0x1fa3f1;_0x569805=_0x4dc7f1+(_0x4040d9*_0x15b3a3+_0x3a901f*_0x5ea094),_0x5badc8=_0x1fa3f1+(-_0x4040d9*_0x5ea094+_0x3a901f*_0x15b3a3);}_0x2507f9&&(_0x569805=this[_0x2857bb(0x312)]-_0x569805),_0x4351d4&&(_0x5badc8=this[_0x2857bb(0x1c2)]-_0x5badc8);let _0x24c362={'x':_0x569805,'y':_0x5badc8},_0x491ea0=this[_0x2857bb(0x1db)][_0x2857bb(0x300)](_0xce89c7,_0x24c362,_0x3ef4dd,_0x2507f9,_0x4351d4),_0x34fd8d=_0x3ef4dd[_0x2857bb(0xe7)]||_0x3ef4dd[_0x2857bb(0x297)]||_0x3ef4dd[_0x2857bb(0x27f)]||_0x3ef4dd[_0x2857bb(0x1de)];if(_0x34fd8d===void 0x0)return;this[_0x2857bb(0x1db)][_0x2857bb(0x1cf)](_0x34fd8d,_0x491ea0);let _0xbc5bc=this[_0x2857bb(0x159)]['getDrawingByParam']({'unitId':_0x5e968b[_0x2857bb(0x1b7)],'subUnitId':_0x5e968b[_0x2857bb(0x2b4)],'drawingId':_0x5e968b['drawingId']});_0xbc5bc&&(this[_0x2857bb(0x31a)][_0x2857bb(0x28a)](_0xbc5bc,_0x42e49c),this[_0x2857bb(0x2f2)]=this[_0x2857bb(0x2eb)](_0x5e968b[_0x2857bb(0x1b7)],_0x5e968b[_0x2857bb(0x2b4)],_0x5e968b[_0x2857bb(0x20e)]),this['_updateAdjustControlPositions']());}_0x1a496c[_0x2857bb(0x108)]();}),this[_0x183a09(0xe3)]=_0x42e49c[_0x183a09(0x1fc)][_0x183a09(0x19b)]((_0x2e36c1,_0x2a5efc)=>{const _0xa2c591=_0x183a09;this[_0xa2c591(0x17a)][_0xa2c591(0x2e3)](),this[_0xa2c591(0xe3)][_0xa2c591(0x2e3)](),_0x42e49c[_0xa2c591(0x18d)]();let _0x17d2b2=this[_0xa2c591(0x1e9)];if(_0x17d2b2){let _0x12e65f=_0x5e968b[_0xa2c591(0x1b7)],_0x5250e7=_0x5e968b[_0xa2c591(0x2b4)],_0x29eda6=_0x5e968b[_0xa2c591(0x20e)],_0x33c541=_0x17d2b2[_0xa2c591(0xe7)]||_0x17d2b2['gdRefY']||_0x17d2b2['gdRefAng']||_0x17d2b2['gdRefR'];if(_0x33c541!==void 0x0){var _0x29896f;let _0x1cfad6=(_0x29896f=this['_activeShapeModel'])==null?void 0x0:_0x29896f['getAdjustValueByName'](_0x33c541);_0x1cfad6!==void 0x0&&fn(this[_0xa2c591(0x2af)],_0x12e65f,_0x5250e7,_0x29eda6,{'oldShapeData':{'adjustValues':_0x170901}},{'adjustValues':{[_0x33c541]:_0x1cfad6}});}}this[_0xa2c591(0x1e9)]=void 0x0,this[_0xa2c591(0x1db)]=void 0x0,this[_0xa2c591(0x2a5)]=!0x1,_0x2a5efc['stopPropagation'](),_0x42e49c['enableObjectsEvent']();}),_0x153f6b['stopPropagation']();})));}[_0x49d8a2(0x246)](){const _0x4ee53e=_0x49d8a2;let _0x587288=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x4c1a31[_0x4ee53e(0x261)]);this[_0x4ee53e(0x16d)](_0x587288[_0x4ee53e(0x26c)](_0x48371d(_0x37bc03=>_0x37bc03?_0x37bc03['activeSheet$'][_0x4ee53e(0x26c)](_0x48371d(_0x35f3dd=>{const _0x2fb329=_0x4ee53e;if(!_0x35f3dd)return _0x4e602d;let _0x4cee81=_0x37bc03[_0x2fb329(0x229)](),_0x199577=this['_renderManagerService'][_0x2fb329(0x2c4)](_0x4cee81),_0x129694=_0x199577==null?void 0x0:_0x199577[_0x2fb329(0x228)];return _0x129694?_0x5ba9b9(_0x129694):_0x4e602d;})):_0x4e602d))[_0x4ee53e(0x212)](_0x3a2c4b=>{const _0x39b755=_0x4ee53e;let _0x29ca3b=_0x3a2c4b[_0x39b755(0x14b)]();this[_0x39b755(0x16d)](_0x3a2c4b[_0x39b755(0x301)][_0x39b755(0x19b)](()=>{const _0x234302=_0x39b755;this[_0x234302(0x1d1)];})),this[_0x39b755(0x16d)](_0x29ca3b[_0x39b755(0x1f2)][_0x39b755(0x212)](_0x552478=>{const _0x552468=_0x39b755;let {objects:_0x4a3f3f}=_0x552478;this['_createShapeAdjustControls'](),_0x4a3f3f!==null&&_0x4a3f3f[_0x552468(0x105)]===0x1&&_0x4a3f3f[_0x552468(0x2cc)]()[_0x552468(0x15a)]()[_0x552468(0x21c)]instanceof vn&&this['setShouldShowAdjust'](!0x0);})),this[_0x39b755(0x16d)](_0x29ca3b[_0x39b755(0x2f4)][_0x39b755(0x212)](()=>{const _0x2a8783=_0x39b755;this[_0x2a8783(0x1d1)]&&this[_0x2a8783(0x2b1)]();})),this[_0x39b755(0x16d)](_0x3a2c4b[_0x39b755(0x1fc)]['subscribeEvent'](()=>{const _0x1237f8=_0x39b755;this[_0x1237f8(0x1d1)]&&(this[_0x1237f8(0x152)](!0x1),this[_0x1237f8(0x29e)]());})),this[_0x39b755(0x16d)](_0x29ca3b[_0x39b755(0x322)][_0x39b755(0x212)](()=>{const _0x4a5d80=_0x39b755;this[_0x4a5d80(0x330)]&&this[_0x4a5d80(0x227)]&&this['_activeShapeId']&&this[_0x4a5d80(0x159)][_0x4a5d80(0x26a)]({'unitId':this[_0x4a5d80(0x330)],'subUnitId':this[_0x4a5d80(0x227)],'drawingId':this[_0x4a5d80(0x288)]})&&(this[_0x4a5d80(0x2f2)]=this[_0x4a5d80(0x2eb)](this[_0x4a5d80(0x330)],this[_0x4a5d80(0x227)],this[_0x4a5d80(0x288)]),this['_updateAdjustControlPositions']());}));}));}[_0x49d8a2(0x2d1)](){const _0x45f74f=_0x49d8a2;this[_0x45f74f(0x16d)](this[_0x45f74f(0x159)][_0x45f74f(0x139)][_0x45f74f(0x212)](_0x166d74=>{const _0x2351a5=_0x45f74f;if(_0x166d74[_0x2351a5(0x289)]===0x1){let _0x2519a5=_0x166d74[0x0];if(_0x2519a5[_0x2351a5(0x12e)]===_0x336997['DRAWING_SHAPE']){this[_0x2351a5(0x288)]=_0x2519a5[_0x2351a5(0x20e)];let {unitId:_0x5bd236,subUnitId:_0x1cb204}=_0x2519a5;this[_0x2351a5(0x2f2)]=this[_0x2351a5(0x2eb)](_0x5bd236,_0x1cb204,this['_activeShapeId']),this[_0x2351a5(0x330)]=_0x5bd236,this['_subUnitId']=_0x1cb204,this[_0x2351a5(0x2b1)](),this['_createShapeAdjustControls']();}else this[_0x2351a5(0x288)]=null,this[_0x2351a5(0x2f2)]=void 0x0,this['_unitId']=null,this[_0x2351a5(0x227)]=null,this[_0x2351a5(0x2b1)]();}(_0x166d74['length']>0x1||_0x166d74[_0x2351a5(0x289)]===0x0)&&(this[_0x2351a5(0x288)]=null,this[_0x2351a5(0x2f2)]=void 0x0,this[_0x2351a5(0x330)]=null,this[_0x2351a5(0x227)]=null,this[_0x2351a5(0x2b1)]());})),this[_0x45f74f(0x16d)](this['_drawingManagerService'][_0x45f74f(0x127)]['subscribe'](_0x2aceb=>{const _0x522799=_0x45f74f;if(_0x2aceb[_0x522799(0x289)]===0x1){var _0x5d2838;let _0x4ac4d2=_0x2aceb[0x0];((_0x5d2838=this[_0x522799(0x159)][_0x522799(0x26a)](_0x4ac4d2))==null?void 0x0:_0x5d2838[_0x522799(0x12e)])===_0x336997['DRAWING_SHAPE']&&this[_0x522799(0x143)](!0x0);}})),this[_0x45f74f(0x16d)](this[_0x45f74f(0x159)]['remove$'][_0x45f74f(0x212)](_0x37ff47=>{const _0x48087c=_0x45f74f;for(let _0x5c55a2 of _0x37ff47)this[_0x48087c(0x288)]===_0x5c55a2[_0x48087c(0x20e)]&&(this[_0x48087c(0x288)]=null,this[_0x48087c(0x2f2)]=void 0x0,this[_0x48087c(0x330)]=null,this[_0x48087c(0x227)]=null,this[_0x48087c(0x2b1)]());}));}};Z=Y([J(0x0,_0x5a9176),J(0x1,_0x3465f0(_0x1a451a)),J(0x2,_0x3465f0(_0x2565d9)),J(0x3,_0x3465f0(X)),J(0x4,_0x2320a1),J(0x5,_0x3002c9)],Z);const bn={'id':_0x49d8a2(0x13d),'type':_0xbd62c0[_0x49d8a2(0x11b)],'handler':(_0x143329,_0x2b724b)=>{const _0xf8d449=_0x49d8a2;let _0x252d18=_0x143329[_0xf8d449(0x1bc)](_0x5a9176),_0x42fd73=_0x143329['get'](_0x2565d9),_0x4b65fd=_0x143329['get'](Z);if(_0x2b724b==null)return!0x0;if(_0x2b724b[_0xf8d449(0x289)]>0x0){var _0x151571;let _0x243061=(_0x151571=_0x42fd73[_0xf8d449(0x2c4)](_0x2b724b[0x0][_0xf8d449(0x1b7)]))==null?void 0x0:_0x151571[_0xf8d449(0x228)];if(_0x243061){let {unitId:_0x1aa4da,subUnitId:_0x11cf1f,drawingId:_0x4851a8}=_0x2b724b[0x0],_0x384b1d=_0x24e648({'unitId':_0x1aa4da,'subUnitId':_0x11cf1f,'drawingId':_0x4851a8},void 0x0),_0x3df695=_0x243061[_0xf8d449(0xda)](_0x384b1d);if(_0x3df695){var _0x1a28bd;(_0x1a28bd=_0x42fd73[_0xf8d449(0x2c4)](_0x2b724b[0x0][_0xf8d449(0x1b7)]))==null||(_0x1a28bd=_0x1a28bd[_0xf8d449(0x228)][_0xf8d449(0x183)]())==null||_0x1a28bd[_0xf8d449(0x32f)](_0x3df695);}}_0x252d18[_0xf8d449(0x2c8)](_0x2b724b),_0x4b65fd['setShouldShowAdjust'](!0x1);}return!0x0;}},xn={'type':_0xbd62c0[_0x49d8a2(0x140)],'id':_0x49d8a2(0x1e8),'handler':async(_0x2f9856,_0x10b0d8)=>{const _0x1b0073=_0x49d8a2;let _0x37ad65=_0x20e706(_0x2f9856['get'](_0x2320a1));if(!_0x37ad65)return!0x1;let _0x4b87f1=_0x2f9856[_0x1b0073(0x1bc)](_0x25ed03)[_0x1b0073(0x1ef)]();if(!_0x4b87f1)return!0x1;let _0x1a8ca6=_0x2f9856['get'](_0x3002c9),{unitId:_0x5bcdcd,subUnitId:_0x4298a8}=_0x37ad65,{value:_0x57fb5c,enhanceParams:_0x5be7ea}=_0x10b0d8,{range:_0x58c794}=_0x4b87f1,_0x3346e6={'unitId':_0x5bcdcd,'subUnitId':_0x4298a8,'shapeType':_0x57fb5c,'range':_0x58c794,'shapeId':_0x3893c7()};if(_0x5be7ea){let _0x482fa9=_0x5d2a5e(_0x57fb5c),_0x1983df=_0x57fb5c===_0x1ca39f[_0x1b0073(0x14c)];_0x482fa9&&(_0x5be7ea[_0x1b0073(0x24f)]||_0x5be7ea['endArrow'])&&(_0x3346e6[_0x1b0073(0x1c5)]={'ln':{'startArrow':_0x5be7ea[_0x1b0073(0x24f)]?{'type':_0x1e506d[_0x1b0073(0x2ce)],'size':_0xd9107d[_0x1b0073(0x1b1)]}:void 0x0,'endArrow':_0x5be7ea[_0x1b0073(0x17e)]?{'type':_0x1e506d['Arrow'],'size':_0xd9107d[_0x1b0073(0x1a3)]}:void 0x0}}),_0x1983df&&(_0x5be7ea[_0x1b0073(0x236)]||_0x5be7ea[_0x1b0073(0x2d8)])&&(_0x3346e6[_0x1b0073(0x1c5)]=_0x510160({'fill':{'fillType':_0x13bf97[_0x1b0073(0x1d4)],'color':_0x1b0073(0x23a)},'isHorizontal':!!_0x5be7ea['horizontal'],'stroke':{'lineStrokeType':_0x3354c0[_0x1b0073(0x216)],'width':0x1,'color':_0x1b0073(0x23f)}}));}let _0x25802b=_0x1a8ca6[_0x1b0073(0xe6)](_0x5db24c['id'],_0x3346e6);return setTimeout(()=>{const _0x5b00d8=_0x1b0073;_0x1a8ca6[_0x5b00d8(0x2c5)](bn['id'],[{'unitId':_0x5bcdcd,'subUnitId':_0x4298a8,'drawingId':_0x3346e6[_0x5b00d8(0x142)]}]);},0xc8),_0x25802b;}},Sn=_0x49d8a2(0x29a),Cn=_0x49d8a2(0x1e6),wn=_0x49d8a2(0x1ee),Tn=_0x4f9780(_0x49d8a2(0x146)),En=_0x49d8a2(0x190),Dn={'id':_0x49d8a2(0x338),'type':_0xbd62c0[_0x49d8a2(0x140)],'handler':(_0x1ab3b3,_0x511580)=>{const _0x3f00ef=_0x49d8a2;let _0x5b826a=_0x1ab3b3['get'](_0xf1c3ee),_0x545c02=_0x1ab3b3[_0x3f00ef(0x1bc)](_0x9a7c24),_0x339cb2=_0x1ab3b3['get'](_0x2320a1),_0xfd056b=_0x1ab3b3['get'](_0x3002c9);return _0x20e706(_0x339cb2)?(_0x511580==null?void 0x0:_0x511580[_0x3f00ef(0x21c)])===_0x3f00ef(0x113)?(_0x5b826a[_0x3f00ef(0x113)](Cn),!0x0):(_0x5b826a['open']({'id':Cn,'header':{'title':_0x545c02['t'](_0x3f00ef(0x170))},'children':{'label':Cn},'onClose':()=>{const _0x16344b=_0x3f00ef;_0xfd056b[_0x16344b(0xe6)](_0x42475e['id'],[]);},'width':0x168}),!0x0):!0x1;}};let Q=class extends _0x1e0fa2{constructor(_0x365349,_0x4817af){const _0x3f1ffb=_0x49d8a2;super(),this['_clipService']=_0x365349,this[_0x3f1ffb(0x159)]=_0x4817af,this['_registerImageShapeClipDelegate'](),this['_clipService'][_0x3f1ffb(0x20f)](!0x0),this['disposeWithMe']({'dispose':()=>this[_0x3f1ffb(0x327)][_0x3f1ffb(0x20f)](!0x1)});}[_0x49d8a2(0x260)](){const _0x2680ca=_0x49d8a2;let _0x3ff126=this[_0x2680ca(0x327)],_0x3eaa67=new Map(),_0xa4757b=_0x3ff126[_0x2680ca(0x2cd)]((_0x34024d,_0x39af9e,_0x1bdc90,_0x553262,_0x31742a)=>{const _0x434ef8=_0x2680ca;let _0x2644ac=_0x39af9e;if(_0x2644ac===_0x1ca39f[_0x434ef8(0x201)]||_0x39af9e===_0x434ef8(0x1d3))return!0x1;try{let _0x409396=_0x3eaa67[_0x434ef8(0x1bc)](_0x39af9e);return _0x409396||(_0x409396=new _0x2a67cd(_0x2644ac,_0x434ef8(0x1df)+_0x39af9e),_0x3eaa67[_0x434ef8(0x20a)](_0x39af9e,_0x409396)),_0x31742a&&_0x409396[_0x434ef8(0xf3)]({'adjustValues':_0x31742a},!0x0),_0x409396['updateContext']({'width':_0x1bdc90,'height':_0x553262}),_0x409396['buildClipPath'](_0x34024d,{'left':0x0,'top':0x0,'width':_0x1bdc90,'height':_0x553262});}catch{return!0x1;}});this[_0x2680ca(0x16d)](_0xa4757b),this[_0x2680ca(0x16d)]({'dispose':()=>_0x3eaa67[_0x2680ca(0x1ac)]()});}[_0x49d8a2(0x1fb)](_0x60f65b,_0x3794bb,_0x42210e,_0x153454,_0xa1d19a){const _0x95af20=_0x49d8a2;let _0x250ece=this['_drawingManagerService']['getDrawingData'](_0x60f65b,_0x3794bb);if(!_0x250ece[_0x42210e])return;let _0x4f1e72={..._0x250ece[_0x42210e],'prstGeom':_0x153454,'adjustValues':_0xa1d19a};this['_drawingManagerService'][_0x95af20(0x104)]([_0x4f1e72]);}};Q=Y([J(0x0,_0x3465f0(_0x52908b)),J(0x1,_0x3465f0(_0x5a9176))],Q);const On=_0x49d8a2(0x191),kn=_0x49d8a2(0x145);function An({onShapeClick:_0x54d015,excludeGroups:_0xf7a90f}){const _0x18c159=_0x49d8a2;return _0x4c6044(_0x71cbe8,{'excludeGroups':_0xf7a90f,'onShapeClick':_0x54d015,'scrollContainer':_0x18c159(0xd9)});}function jn(){const _0xfb24f8=_0x49d8a2;let _0x194496=_0x2a5e25(_0x5a9176),_0x256e55=_0x2a5e25(Q);return _0x4c6044(_0x55b52d,{'buttonLabel':_0xfb24f8(0x2fb),'excludeGroups':[_0x57c621['Line']],'onShapeClick':_0x5d79fe=>{const _0x2b3cf1=_0xfb24f8;let _0x184037=_0x194496[_0x2b3cf1(0x32c)]()[_0x2b3cf1(0x138)](_0x24b029=>_0x24b029['drawingType']===_0x336997[_0x2b3cf1(0x2b7)]);if(!_0x184037)return;let {unitId:_0x8ec8e0,subUnitId:_0xa5ba9,drawingId:_0x24d030}=_0x184037;_0x256e55['clipByShape'](_0x8ec8e0,_0xa5ba9,_0x24d030,_0x5d79fe['type']);}});}function Mn(){const _0x41679c=_0x49d8a2;let _0x1d85e0=_0x2a5e25(_0x4dd7a3),_0x5e77af=_0x2a5e25(_0x5a9176),_0x4f9d74=_0x2a5e25(_0x2320a1),_0x2941f4=_0x5e77af[_0x41679c(0x32c)]()[0x0],_0x12c962=_0x2941f4?_0x4f9d74[_0x41679c(0x151)](_0x2941f4[_0x41679c(0x1b7)]):void 0x0,_0x4ae8d9=_0x12c962===_0x4c1a31[_0x41679c(0x2ae)]?_0x41679c(0x1f9):_0x12c962===_0x4c1a31[_0x41679c(0x261)]?kn:void 0x0,_0x4797ee=_0x4ae8d9?_0x1d85e0[_0x41679c(0x1bc)](_0x4ae8d9):void 0x0;return _0x4797ee?_0x4c6044(_0x4797ee,{}):null;}function Nn(){let _0x179637=_0x2a5e25(_0x3002c9);return _0x4c6044(An,{'onShapeClick':_0x4d0a51=>{const _0x4a01e9=_0x208c;_0x179637[_0x4a01e9(0x2c5)](xn['id'],{'value':_0x4d0a51[_0x4a01e9(0x1ff)],'enhanceParams':{'endArrow':_0x4d0a51[_0x4a01e9(0x17e)],'startArrow':_0x4d0a51[_0x4a01e9(0x24f)],'horizontal':_0x4d0a51['horizontal'],'vertical':_0x4d0a51[_0x4a01e9(0x2d8)]}});}});}function Pn(_0x1e138a){const _0x31e468=_0x49d8a2;let _0x5b829b=_0x1e138a[_0x31e468(0x1bc)](_0x2320a1);return{'id':xn['id'],'type':_0x2f4b7c[_0x31e468(0x128)],'selections':[{'label':{'name':On,'hoverable':!0x1,'selectable':!0x1,'props':{'id':xn['id']}}}],'icon':_0x31e468(0x195),'tooltip':_0x31e468(0x31e),'activated$':_0x291355(_0x5b829b,!0x1,()=>new _0x17aabe(_0x53eef6=>{const _0x3215ca=_0x31e468;_0x53eef6[_0x3215ca(0x15a)](!0x1);})),'hidden$':_0x569198(_0x1e138a,_0x4c1a31[_0x31e468(0x261)]),'disabled$':_0x1aaed7(_0x1e138a)};}function Fn(_0x379afe){const _0x2e1912=_0x49d8a2;let _0x5376f6=_0x379afe[_0x2e1912(0x1bc)](_0x2320a1);return{'id':Dn['id'],'type':_0x2f4b7c[_0x2e1912(0x1af)],'icon':_0x2e1912(0x11f),'title':_0x2e1912(0x16e),'tooltip':_0x2e1912(0x16e),'activated$':_0x291355(_0x5376f6,!0x1,()=>new _0x17aabe(_0x192955=>{const _0x315f67=_0x2e1912;_0x192955[_0x315f67(0x15a)](!0x1);})),'hidden$':_0x569198(_0x379afe,_0x4c1a31[_0x2e1912(0x261)]),'disabled$':_0x1aaed7(_0x379afe)};}const In={[_0x4cff09[_0x49d8a2(0x2d4)]]:{[xn['id']]:{'order':0x4,'menuItemFactory':Pn},[Dn['id']]:{'order':4.1,'menuItemFactory':Fn}}};var Ln='@univerjs-pro/sheets-shape-ui',Rn=_0x49d8a2(0x252);const zn={'type':_0xbd62c0[_0x49d8a2(0x11b)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}},Bn={'type':_0xbd62c0[_0x49d8a2(0x11b)],'id':_0x49d8a2(0x1ce),'handler'(){return!0x0;}},Vn={};function Hn(_0x4b3b1a){const _0x287275=_0x49d8a2;return _0x4b3b1a[_0x287275(0x258)]()||void 0x0;}function Un(_0x2db1ee){const _0x2fd387=_0x49d8a2;switch(_0x2db1ee[_0x2fd387(0x12e)]){case _0x336997[_0x2fd387(0x2b7)]:return _0x2fd387(0x157);case _0x336997[_0x2fd387(0x1ae)]:return'chart';case _0x336997[_0x2fd387(0x29b)]:return _0x2fd387(0x11c);case _0x336997[_0x2fd387(0x1a5)]:return _0x2fd387(0x200);case _0x336997[_0x2fd387(0x133)]:return _0x2fd387(0x319);case _0x336997[_0x2fd387(0x262)]:return _0x2fd387(0x240);case _0x336997[_0x2fd387(0xfe)]:return _0x2fd387(0x1c8);case _0x336997[_0x2fd387(0x173)]:return'dom';case _0x336997['DRAWING_SHAPE']:return _0x2fd387(0x1b0);default:return'object';}}function Wn(_0x2d7bf5,_0x3c5102,_0x681705){const _0x23e279=_0x49d8a2;var _0x42ca8a;return((_0x42ca8a=_0x2d7bf5[_0x23e279(0x1dd)])==null?void 0x0:_0x42ca8a[_0x23e279(0x258)]())||_0x23c7c2(_0x681705,Un(_0x2d7bf5))+'\x20'+(_0x3c5102+0x1);}function Gn(){const _0x461945=_0x49d8a2;var _0x262542,_0x1c99d8,_0x2041d1,_0x34fa38;let _0x4d215b=_0x2a5e25(_0x9a7c24),_0x10f0aa=_0x2a5e25(_0x3002c9),_0x31d076=_0x2a5e25(_0x2320a1),_0x4f6761=_0x2a5e25(_0xc538a1),_0x39dfc0=_0x2a5e25(_0x5a9176),_0x65c50d=_0x2a5e25(_0x2565d9),[,_0x4fef57]=_0x3962a7(_0x559962=>_0x559962+0x1,0x0),_0x430ea8=_0x31d076[_0x461945(0x199)](_0x4c1a31['UNIVER_SHEET']),_0xc18259=(_0x262542=_0x430ea8==null?void 0x0:_0x430ea8['getUnitId']())==null?'':_0x262542,_0xdd93ce=(_0x1c99d8=_0x430ea8==null||(_0x2041d1=_0x430ea8['getActiveSheet']())==null?void 0x0:_0x2041d1['getSheetId']())==null?'':_0x1c99d8,_0x4c1d4e=_0x57a615(()=>_0x39dfc0[_0x461945(0x139)],_0x39dfc0[_0x461945(0x32c)](),!0x1,[_0x39dfc0]);_0xecd31c(()=>{const _0x1b25c4=_0x461945;let _0x2250e6=_0x10f0aa['onCommandExecuted'](()=>_0x4fef57());return()=>_0x2250e6[_0x1b25c4(0x2b0)]();},[_0x10f0aa]);let _0x13e3c5=_0xc18259&&_0xdd93ce?_0x4f6761[_0x461945(0x233)](_0xc18259,_0xdd93ce):{},_0x1d0451=_0xc18259&&_0xdd93ce?_0x4f6761[_0x461945(0x306)](_0xc18259,_0xdd93ce):[],_0x158842=_0x307aa0(()=>_0x3137ac(_0x4d215b),[_0x4d215b]),_0x54ee17=_0x307aa0(()=>{const _0x27799d=_0x461945;let _0x502a26=_0x1d0451[_0x27799d(0x1a1)](_0x4a8e1d=>_0x13e3c5[_0x4a8e1d])[_0x27799d(0x1da)](_0x4610d2=>!!_0x4610d2)[_0x27799d(0x136)](),_0x43e0be=_0x502a26[_0x27799d(0x144)]((_0x57a37f,_0x162990)=>(_0x57a37f[_0x68c808(_0x162990[_0x27799d(0x12e)])]+=0x1,_0x57a37f),{'canvas':0x0,'floating':0x0}),_0x2b0f49={'canvas':0x0,'floating':0x0};return _0x502a26[_0x27799d(0x1a1)]((_0x3f05b1,_0x2d6a4c)=>{const _0x3bccce=_0x27799d;let _0x488e45=_0x68c808(_0x3f05b1[_0x3bccce(0x12e)]),_0x151389=_0x488e45===_0x21b1e9,_0x4f2d83=_0x2b0f49[_0x488e45]++;return{'id':_0x3f05b1[_0x3bccce(0x20e)],'name':Wn(_0x3f05b1,_0x2d6a4c,_0x4d215b),'description':_0x3f05b1['description'],'visible':_0x3f05b1[_0x3bccce(0x15c)]!==!0x0,'selectable':_0x3f05b1[_0x3bccce(0xf4)]!==!0x1,'sectionId':_0x488e45,'sectionTitle':_0x151389?_0x158842[_0x3bccce(0x284)]:_0x158842[_0x3bccce(0x213)],'capabilities':_0x151389?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x151389&&_0x4f2d83>0x0,'canMoveBackward':!_0x151389&&_0x4f2d83<_0x43e0be[_0x3bccce(0x2d6)]-0x1,'canReorder':!_0x151389};});},[_0x13e3c5,_0x1d0451,_0x158842[_0x461945(0x213)],_0x158842['sectionFloating'],_0x4d215b]),_0x5926d8=_0x307aa0(()=>(_0x4c1d4e==null?[]:_0x4c1d4e)['filter'](_0xbf85d1=>_0xbf85d1[_0x461945(0x1b7)]===_0xc18259&&_0xbf85d1['subUnitId']===_0xdd93ce)[_0x461945(0x1a1)](_0x45fd2d=>_0x45fd2d[_0x461945(0x20e)]),[_0x4c1d4e,_0xdd93ce,_0xc18259]),_0x5cde21=(_0x34fa38=_0x5926d8[_0x5926d8['length']-0x1])==null?null:_0x34fa38,_0x4eba86=_0x28514e=>{const _0x5e67c6=_0x461945;var _0x15bc74;return(_0x15bc74=_0x4f6761[_0x5e67c6(0x26a)]({'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingId':_0x28514e}))==null?null:_0x15bc74;},_0x46fc17=_0x76b52f=>{const _0x532457=_0x461945;!_0xc18259||!_0x76b52f['length']||_0x10f0aa[_0x532457(0x2c5)](_0x577eb5['id'],{'unitId':_0xc18259,'drawings':_0x76b52f});},_0x3b2fd5=(_0x4fa2b3,_0x54aaea)=>{_0x4eba86(_0x4fa2b3)&&_0x46fc17([{'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingId':_0x4fa2b3,..._0x54aaea}]);},_0x1b05d7=(_0x55c66a,_0x20876f)=>{const _0x422e16=_0x461945;if(!_0xc18259||!_0xdd93ce)return;let _0xd9ca51=_0x20876f?_0x5926d8[_0x422e16(0x2ed)](_0x55c66a)?_0x5926d8[_0x422e16(0x1da)](_0x12d119=>_0x12d119!==_0x55c66a):[..._0x5926d8,_0x55c66a]:[_0x55c66a];_0x10f0aa[_0x422e16(0xe6)](_0x42475e['id'],_0xd9ca51[_0x422e16(0x1a1)](_0x1193f0=>({'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingId':_0x1193f0})));let _0x2fccfe=_0xd9ca51[_0xd9ca51[_0x422e16(0x289)]-0x1];_0x2fccfe?_0x3928d2(_0x65c50d,{'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingId':_0x2fccfe}):_0xeb3392(_0x65c50d,_0xc18259);},_0xc5db42=(_0x1d8484,_0x21fcb5)=>{const _0xe10097=_0x461945;_0x46fc17(_0x1d8484[_0xe10097(0x1a1)](_0x161565=>_0x4eba86(_0x161565))[_0xe10097(0x1da)](_0x20bc80=>!!_0x20bc80)[_0xe10097(0x1da)](_0x21864b=>_0x21864b['hidden']!==!0x0!==_0x21fcb5)[_0xe10097(0x1a1)](_0x2682a4=>({'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingId':_0x2682a4[_0xe10097(0x20e)],'hidden':!_0x21fcb5})));},_0x22aeba=_0x447497=>{let _0x3f63df=_0x4eba86(_0x447497);_0x3f63df&&_0x3b2fd5(_0x447497,{'selectable':_0x3f63df['selectable']===!0x1?void 0x0:!0x1});},_0x1767e0=(_0x5eb9f4,_0x2717e7)=>{const _0x46638e=_0x461945;var _0x25ba5f,_0x42fee7;let _0x187735=Hn(_0x2717e7);((_0x25ba5f=(_0x42fee7=_0x4eba86(_0x5eb9f4))==null?void 0x0:_0x42fee7[_0x46638e(0x1dd)])==null?void 0x0:_0x25ba5f)!==_0x187735&&_0x3b2fd5(_0x5eb9f4,{'name':_0x187735});},_0x2aa530=(_0x2301bb,_0xf22e05)=>{const _0x3c1f2b=_0x461945;var _0xc3a66d,_0x20d4f8;let _0x424994=Hn(_0xf22e05);((_0xc3a66d=(_0x20d4f8=_0x4eba86(_0x2301bb))==null?void 0x0:_0x20d4f8[_0x3c1f2b(0xf6)])==null?void 0x0:_0xc3a66d)!==_0x424994&&_0x3b2fd5(_0x2301bb,{'description':_0x424994});},_0x2fe5be=(_0x783124,_0x2408b7)=>{!_0xc18259||!_0xdd93ce||_0x10f0aa['executeCommand'](_0xa10ec9['id'],{'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingIds':[_0x783124],'arrangeType':_0x2408b7});};return!_0xc18259||!_0xdd93ce?_0x4c6044(_0x461945(0x1b5),{'className':_0x461945(0xed),'children':_0x158842[_0x461945(0x339)]}):_0x4c6044(_0x1ea8c0,{'items':_0x54ee17,'selectedIds':_0x5926d8,'focusedId':_0x5cde21,'labels':_0x158842,'onSelect':_0x1b05d7,'onSetVisible':_0xc5db42,'onCommitName':_0x1767e0,'onCommitDescription':_0x2aa530,'onMoveForward':_0x2a705a=>_0x2fe5be(_0x2a705a,_0x5516a4[_0x461945(0x2e2)]),'onMoveBackward':_0x522b82=>_0x2fe5be(_0x522b82,_0x5516a4['backward']),'onToggleSelectable':_0x22aeba});}let Kn=class{constructor(_0x216351){this['_renderManagerService']=_0x216351;}['updateShapeFillImage'](_0x4fd8d5,_0x10fed6){const _0x33cea9=_0x49d8a2;let _0x396131=this[_0x33cea9(0x107)][_0x33cea9(0x2c4)](_0x4fd8d5[_0x33cea9(0x1b7)]),_0x4b25d5=_0x396131==null?void 0x0:_0x396131[_0x33cea9(0x228)];if(!_0x4b25d5)return;let _0x7699e3=_0x24e648(_0x4fd8d5),_0x3cdbd7=_0x4b25d5[_0x33cea9(0xda)](_0x7699e3);_0x3cdbd7==null||_0x3cdbd7[_0x33cea9(0x121)](_0x10fed6);}};Kn=Y([J(0x0,_0x2565d9)],Kn);function qn(){const _0x5e832f=_0x49d8a2;let _0x10fd56=_0x2a5e25(_0x5a9176),_0x44946d=_0x57a615(()=>_0x10fd56[_0x5e832f(0x139)],_0x10fd56[_0x5e832f(0x32c)](),!0x1,[_0x10fd56]);return _0x44946d[_0x5e832f(0x289)]===0x0?null:_0x4c6044(_0x5e832f(0x1b5),{'children':_0x52bc9b('div',{'className':_0x5e832f(0x168),'children':[_0x4c6044(_0x4b0647,{'drawings':_0x44946d,'hasCropper':!0x1}),_0x4c6044(_0x37e739,{'drawings':_0x44946d})]})});}function Jn(_0x4349c0){let {unitId:_0xf8b70d,subUnitId:_0x1dbddc,shapeId:_0x2d4a8c}=_0x4349c0,_0x485b16=_0x2a5e25(_0x3002c9),_0x2ebe31=_0x2a5e25(Kn);return _0x4c6044(_0x577577,{..._0x4349c0,'positionEditor':_0x4c6044(qn,{}),'onUpdateShapeData':(_0x238d82,_0x58bfb4)=>{fn(_0x485b16,_0xf8b70d,_0x1dbddc,_0x2d4a8c,_0x238d82,_0x58bfb4);},'onUpdateLineShapeData':(_0x573981,_0x4382a4)=>{pn(_0x485b16,_0xf8b70d,_0x1dbddc,_0x2d4a8c,_0x573981,_0x4382a4);},'onUpdateShapeFillImage':_0xd3e5d5=>{const _0x3bd10c=_0x208c;_0x2ebe31[_0x3bd10c(0x2a8)]({'unitId':_0xf8b70d,'subUnitId':_0x1dbddc,'drawingId':_0x2d4a8c},_0xd3e5d5);}});}function Yn(_0x5e9936){const _0x29c3c3=_0x49d8a2;let _0x536d9d=_0x5e9936['popup'][_0x29c3c3(0x1d7)];return _0x536d9d?_0x4c6044(Xn,{..._0x536d9d}):null;}function Xn(_0x349408){const _0x128a95=_0x49d8a2;var _0x29c052,_0x54b92c;let _0x46fa0a=_0x2a5e25(_0x3002c9),_0x29d2eb=_0x2a5e25(_0x1a451a),{unitId:_0x163573,subUnitId:_0x5f1009,drawingId:_0x21ae43,drawingType:_0x2e08dd,shapeType:_0x33f48f}=_0x349408,[_0x295ae6,_0x5b681a]=_0x487ae5(_0x349408[_0x128a95(0x1c5)]),_0x757b69=_0x307aa0(()=>_0x45f466(_0x295ae6),[_0x295ae6]),_0x20ebaa=_0x307aa0(()=>_0xdf5543(_0x295ae6),[_0x295ae6]);_0xecd31c(()=>{const _0x1b8ccf=_0x128a95;let _0x138e63=_0x46fa0a['onCommandExecuted'](_0x1ffea3=>{const _0x4f783c=_0x208c;if(_0x1ffea3['id']!==_0x22295a['id'])return;let _0x2bc0f4=_0x29d2eb[_0x4f783c(0x264)](_0x163573,_0x5f1009,_0x21ae43);_0x2bc0f4&&_0x5b681a(_0x2bc0f4);});return()=>_0x138e63[_0x1b8ccf(0x2b0)]();},[_0x46fa0a,_0x21ae43,_0x29d2eb,_0x5f1009,_0x163573]);let _0x14bada=_0x3fce78=>{_0x5b681a(_0x134544=>({..._0x134544,..._0x3fce78}));},_0x4ce81f=_0x3083eb=>{const _0x487748=_0x128a95;let _0x444507=_0x1072ef(_0x295ae6,_0x3083eb);fn(_0x46fa0a,_0x163573,_0x5f1009,_0x21ae43,{'oldShapeData':{'shapeText':_0x295ae6[_0x487748(0xe9)]}},_0x444507),_0x14bada(_0x444507);};return _0x4c6044(_0x3381e5,{'shapeData':_0x295ae6,'shapeType':_0x33f48f,'textStyle':{'ff':_0x2bea1d[_0x128a95(0xe9)][_0x128a95(0x176)],'fs':_0x2bea1d[_0x128a95(0xe9)][_0x128a95(0x317)],'cl':{'rgb':_0x2bea1d[_0x128a95(0xe9)]['color']},..._0x757b69},'textModel':_0x20ebaa?{'ha':(_0x29c052=_0x20ebaa['ha'])==null?_0x30a9f7[_0x128a95(0x204)]:_0x29c052,'va':(_0x54b92c=_0x20ebaa['va'])==null?_0x2099ff[_0x128a95(0x310)]:_0x54b92c}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x2bea1d[_0x128a95(0x270)],'defaultGradientEndColor':_0x2bea1d[_0x128a95(0xde)],'defaultStrokeColor':_0x2bea1d[_0x128a95(0x2dd)],'onUpdateShapeData':(_0xda52f7,_0x431d4e)=>{fn(_0x46fa0a,_0x163573,_0x5f1009,_0x21ae43,_0xda52f7,_0x431d4e),_0x431d4e&&_0x14bada(_0x431d4e);},'onUpdateText':_0x4ce81f,'onOpenPanel':()=>{const _0x4e8bf8=_0x128a95;_0x46fa0a[_0x4e8bf8(0x2c5)](Bn['id'],{'unitId':_0x163573,'subUnitId':_0x5f1009,'drawingId':_0x21ae43});},'onDelete':()=>{_0x46fa0a['executeCommand'](_0x5f4db7['id'],{'unitId':_0x163573,'drawings':[{'unitId':_0x163573,'subUnitId':_0x5f1009,'drawingId':_0x21ae43,'drawingType':_0x2e08dd}]});}});}var Zn=class extends _0x1e0fa2{constructor(..._0x5c2b03){const _0x28d072=_0x49d8a2;super(..._0x5c2b03),q(this,'_editingParams$',new _0x1154b0(null)),q(this,_0x28d072(0xfa),this[_0x28d072(0x2d5)]['asObservable']()),q(this,_0x28d072(0x27b),new _0x1154b0(!0x1)),q(this,'onSavingEditorData$',this[_0x28d072(0x27b)]['asObservable']());}[_0x49d8a2(0x2b0)](){const _0xb60ecb=_0x49d8a2;this[_0xb60ecb(0x2d5)]['next'](null),this[_0xb60ecb(0x2d5)][_0xb60ecb(0x1e5)](),this[_0xb60ecb(0x27b)][_0xb60ecb(0x15a)](!0x1),this[_0xb60ecb(0x27b)][_0xb60ecb(0x1e5)](),super[_0xb60ecb(0x2b0)]();}[_0x49d8a2(0x2f3)](_0x5bb556){const _0x21d430=_0x49d8a2;this[_0x21d430(0x2d5)][_0x21d430(0x15a)](_0x5bb556),_0x5bb556==null&&this['_onSavingEditorData$']['next'](!0x1);}[_0x49d8a2(0x263)](_0x4169cc){const _0x3c35ac=_0x49d8a2;this[_0x3c35ac(0x27b)][_0x3c35ac(0x15a)](_0x4169cc);}['getEditing'](){const _0x14f384=_0x49d8a2;return this['_editingParams$'][_0x14f384(0x125)]();}[_0x49d8a2(0x2f9)](_0x3d961a){const _0x200df6=_0x49d8a2;this[_0x200df6(0x25a)]()&&(this[_0x200df6(0x263)](!0x0),requestAnimationFrame(()=>{const _0x53094f=_0x200df6;this[_0x53094f(0x2f3)](null);}));}['cancelEditing'](){const _0x2d9312=_0x49d8a2;this[_0x2d9312(0x25a)]()&&this[_0x2d9312(0x2f3)](null);}};const Qn=_0x3cdd19(()=>{const _0x5b7685=_0x49d8a2;let _0x57a8da=_0x2a5e25(Zn),_0x3121bf=_0x2a5e25(_0x1a451a),_0x452bd6=_0x2a5e25(_0x5a9176),_0x5c19c1=_0x2a5e25(_0x3002c9),_0x20e277=_0x2a5e25(_0x2565d9);return _0x4c6044(_0x264bf4,{'adapter':_0x307aa0(()=>({'getShapeModel':(_0x21e298,_0x3e7328,_0x538d6a)=>_0x3121bf[_0x5b7685(0x296)](_0x21e298,_0x3e7328,_0x538d6a),'getShapeData':(_0x5a4ffb,_0x16dbb1,_0x2bfdde)=>_0x3121bf[_0x5b7685(0x264)](_0x5a4ffb,_0x16dbb1,_0x2bfdde),'getDrawingTransform':(_0x47fea1,_0x4c3491,_0x3abadd)=>{const _0x56cfdb=_0x5b7685;let _0x305cbb=_0x452bd6[_0x56cfdb(0x26a)]({'unitId':_0x47fea1,'subUnitId':_0x4c3491,'drawingId':_0x3abadd});return _0x305cbb==null?void 0x0:_0x305cbb[_0x56cfdb(0x166)];},'updateShapeText':({unitId:_0x4a7733,subUnitId:_0x3fee19,shapeId:_0x1df34f,shapeText:_0x589585,oldShapeText:_0x1fd2e1})=>{const _0x4ed96c=_0x5b7685;_0x5c19c1[_0x4ed96c(0x2c5)](dn['id'],{'unitId':_0x4a7733,'subUnitId':_0x3fee19,'shapeId':_0x1df34f,'shapeData':{'shapeText':_0x589585},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x1fd2e1}}});},'updateHostSize':({unitId:_0x447a8c,subUnitId:_0x20ab8d,shapeId:_0x54693d,width:_0x28a25b,height:_0x5a1d95})=>{const _0x3f4cd0=_0x5b7685;var _0x281f18,_0x3eae22,_0x15bf37;let _0xe0c58e=_0x452bd6['getDrawingByParam']({'unitId':_0x447a8c,'subUnitId':_0x20ab8d,'drawingId':_0x54693d}),_0x50eb13=_0xe0c58e==null?void 0x0:_0xe0c58e[_0x3f4cd0(0x166)];if(!_0xe0c58e||!_0x50eb13)return;let _0x4af162={..._0x50eb13,'width':_0x28a25b,'height':_0x5a1d95},_0x53447a=(_0x281f18=_0x20e277[_0x3f4cd0(0x2c4)](_0x447a8c))==null||(_0x281f18=_0x281f18[_0x3f4cd0(0xf5)](_0x4b5a3f)[_0x3f4cd0(0x1c3)](_0x20ab8d))==null?void 0x0:_0x281f18[_0x3f4cd0(0x26d)],_0xd6b18d=_0x53447a?(_0x3eae22=_0x4ee577(_0x4af162,_0x53447a))==null?_0xe0c58e[_0x3f4cd0(0x265)]:_0x3eae22:_0xe0c58e[_0x3f4cd0(0x265)],_0xec26ea=_0x53447a?(_0x15bf37=_0x14cc4e(_0x4af162,_0x53447a))==null?_0xe0c58e[_0x3f4cd0(0xdb)]:_0x15bf37:_0xe0c58e[_0x3f4cd0(0xdb)];_0x5c19c1[_0x3f4cd0(0x2c5)](_0x577eb5['id'],{'unitId':_0x447a8c,'drawings':[{..._0xe0c58e,'transform':_0x4af162,'sheetTransform':_0xd6b18d,'axisAlignSheetTransform':_0xec26ea}]});},'allowHostSizeShrink':({unitId:_0x51b50f,subUnitId:_0x311079,shapeId:_0x498161})=>_0x7502d3(_0x3121bf[_0x5b7685(0x264)](_0x51b50f,_0x311079,_0x498161))}),[_0x5c19c1,_0x452bd6,_0x20e277,_0x3121bf]),'editingService':_0x57a8da,'editorUnitId':Tn,'positionOptions':_0x307aa0(()=>({'viewportKeys':{'main':_0x42dea8[_0x5b7685(0x281)],'leftTop':_0x42dea8[_0x5b7685(0x17c)],'top':_0x42dea8[_0x5b7685(0x189)],'left':_0x42dea8[_0x5b7685(0x32a)]},'getSkeleton':(_0x1061c5,_0x201d8b)=>{const _0x5a4ed1=_0x5b7685;var _0x44fe8b,_0x5c2b5f;return(_0x44fe8b=(_0x5c2b5f=_0x1061c5[_0x5a4ed1(0xf5)](_0x4b5a3f)['getSkeletonParam'](_0x201d8b['subUnitId']))==null?void 0x0:_0x5c2b5f[_0x5a4ed1(0x26d)])==null?null:_0x44fe8b;}}),[])});});let $n=class extends _0x1e0fa2{constructor(_0x13d118,_0x5d381d){const _0x1e425b=_0x49d8a2;super(),this['_componentManager']=_0x13d118,this[_0x1e425b(0x134)]=_0x5d381d,this['_registerIcons'](),this['_registerComponents']();}[_0x49d8a2(0x2f7)](){const _0x138651=_0x49d8a2;this[_0x138651(0x134)][_0x138651(0x215)](_0x138651(0x11f))||this[_0x138651(0x16d)](this[_0x138651(0x134)][_0x138651(0x21d)]({'CopyDoubleIcon':_0x8cec5a}));}[_0x49d8a2(0x1bb)](){const _0x4099c6=_0x49d8a2;this[_0x4099c6(0x16d)](this['_componentManager'][_0x4099c6(0x21d)](Sn,Jn)),this[_0x4099c6(0x16d)](this[_0x4099c6(0x2c7)]['register'](Cn,Gn)),this[_0x4099c6(0x16d)](this[_0x4099c6(0x2c7)][_0x4099c6(0x21d)](On,Nn)),this['disposeWithMe'](this['_componentManager'][_0x4099c6(0x21d)](kn,jn)),this[_0x4099c6(0x2c7)][_0x4099c6(0x1bc)](_0x76290b)||this[_0x4099c6(0x16d)](this[_0x4099c6(0x2c7)][_0x4099c6(0x21d)](_0x76290b,Mn)),this['disposeWithMe'](this['_componentManager'][_0x4099c6(0x21d)](wn,Yn)),this['disposeWithMe'](this['_componentManager'][_0x4099c6(0x21d)](En,_0x2d3b93)),this[_0x4099c6(0x16d)](this[_0x4099c6(0x2c7)][_0x4099c6(0x21d)](_0x4099c6(0x292),Qn));}};$n=Y([J(0x0,_0x3465f0(_0x4dd7a3)),J(0x1,_0x3465f0(_0x45bf3a))],$n);let er=class extends _0x1e0fa2{constructor(_0x4b70c7,_0x457a7a,_0x213474,_0x548bf5,_0x4ee2f3){const _0x221a1b=_0x49d8a2;super(),this[_0x221a1b(0x12a)]=_0x4b70c7,this[_0x221a1b(0x159)]=_0x457a7a,this[_0x221a1b(0x107)]=_0x213474,this[_0x221a1b(0x1b8)]=_0x548bf5,this[_0x221a1b(0x18a)]=_0x4ee2f3,q(this,_0x221a1b(0x15d),null),q(this,'_unitId',null),q(this,_0x221a1b(0x227),null),q(this,'_activeAdjustPointList',void 0x0),q(this,'_shapes',[]),q(this,_0x221a1b(0x155),0x0),q(this,'_baseTop',0x0),q(this,_0x221a1b(0x269),0x0),q(this,_0x221a1b(0x304),0x0),q(this,_0x221a1b(0x2a5),!0x1),q(this,_0x221a1b(0x1e9),void 0x0),q(this,_0x221a1b(0x1db),void 0x0),q(this,'_adjHandlerPointerMove',void 0x0),q(this,_0x221a1b(0xe3),void 0x0),q(this,'_isImagePointerDown',!0x1),this[_0x221a1b(0x287)](),this['_registerMoveHandler']();}[_0x49d8a2(0x2cb)](){const _0x2879fc=_0x49d8a2;this[_0x2879fc(0x186)]();}[_0x49d8a2(0x1c6)](){const _0x32eb47=_0x49d8a2;this['_clearControls'](),this[_0x32eb47(0x28f)](!0x0);}['_getOrCreateShapeModel'](_0x1728ca,_0x4762cf,_0x48659b,_0x70531){const _0x45baab=_0x49d8a2;let _0x33adb6=_0x1728ca;if(!(_0x33adb6===_0x1ca39f[_0x45baab(0x201)]||_0x1728ca===_0x45baab(0x1d3)))try{let _0xf1eb9a=new _0x2a67cd(_0x33adb6,_0x45baab(0x268)+_0x1728ca);return _0x70531&&_0xf1eb9a['setShapeData']({'adjustValues':_0x70531},!0x0),_0xf1eb9a[_0x45baab(0x314)]({'width':_0x4762cf,'height':_0x48659b}),_0xf1eb9a;}catch{return;}}[_0x49d8a2(0x243)](_0x363dc2,_0x492f6f,_0x29ea3d){const _0x13c3fd=_0x49d8a2;let _0x1b1c98={'unitId':_0x363dc2,'subUnitId':_0x492f6f,'drawingId':_0x29ea3d},_0x57072e=this[_0x13c3fd(0x159)][_0x13c3fd(0x26a)](_0x1b1c98);if(!(!_0x57072e||_0x57072e['drawingType']!==_0x336997[_0x13c3fd(0x2b7)]))return _0x57072e;}['_getImagePrstGeom'](_0x939447,_0x18b1c4,_0x49fa36){const _0xa71d63=_0x49d8a2;let _0x4bb97a=this['_renderManagerService']['getRenderById'](_0x939447);if(!_0x4bb97a)return;let {scene:_0x3611fd}=_0x4bb97a,_0x2d9334=_0x24e648({'unitId':_0x939447,'subUnitId':_0x18b1c4,'drawingId':_0x49fa36}),_0x41649d=_0x3611fd[_0xa71d63(0x307)](_0x2d9334);if(_0x41649d instanceof _0xd2487b){let _0x1baa22=_0x41649d[_0xa71d63(0x178)];if(_0x1baa22)return{'prstGeom':_0x1baa22,'adjustValues':_0x41649d[_0xa71d63(0x323)]};}}[_0x49d8a2(0x28f)](_0x49d47b=!0x1){const _0x3d8c36=_0x49d8a2;if(!this[_0x3d8c36(0x330)]||!this['_subUnitId']||!this[_0x3d8c36(0x15d)])return;let _0x377013=this[_0x3d8c36(0x107)][_0x3d8c36(0x2c4)](this[_0x3d8c36(0x330)]);if(!_0x377013||!_0x377013[_0x3d8c36(0xf5)](_0x4b5a3f)['getCurrentSkeleton']())return;let {scene:_0x5b4377}=_0x377013,_0x545df2=this[_0x3d8c36(0x243)](this['_unitId'],this['_subUnitId'],this[_0x3d8c36(0x15d)]);if(!_0x545df2)return;let {transform:_0x26d342}=_0x545df2;if(!_0x26d342)return;let {left:_0x276386,top:_0x5de7ee,width:_0x56b872,height:_0x5959bd,flipX:_0x2347d7,flipY:_0x2fd6bd,angle:_0x11f2a3=0x0}=_0x26d342;if(_0x276386===void 0x0||_0x5de7ee===void 0x0)return;let _0x36117e=this[_0x3d8c36(0x28d)](this[_0x3d8c36(0x330)],this[_0x3d8c36(0x227)],this['_activeImageId']);if(!_0x36117e)return;if(_0x49d47b){let _0x211d69=this[_0x3d8c36(0x119)](_0x36117e[_0x3d8c36(0x178)],_0x56b872||0x0,_0x5959bd||0x0,_0x36117e[_0x3d8c36(0x114)]);if(!_0x211d69)return;this[_0x3d8c36(0x2cf)]=_0x211d69[_0x3d8c36(0x12d)]();}let _0x431da1=this[_0x3d8c36(0x2cf)];if(!(!_0x431da1||_0x431da1['length']===0x0))for(let _0x577290=0x0;_0x577290<_0x431da1[_0x3d8c36(0x289)];_0x577290++){let _0x295615=_0x431da1[_0x577290],_0x23193d=_0x295615['x'],_0x20da0a=_0x295615['y'];if(_0x2347d7&&(_0x23193d=(_0x56b872||0x0)-_0x23193d),_0x2fd6bd&&(_0x20da0a=(_0x5959bd||0x0)-_0x20da0a),_0x11f2a3!==0x0){let _0x5444db=(_0x56b872||0x0)/0x2,_0x1f2b4e=(_0x5959bd||0x0)/0x2,_0x380ab6=_0x11f2a3*Math['PI']/0xb4,_0x361d36=Math[_0x3d8c36(0x17b)](_0x380ab6),_0x39078d=Math['sin'](_0x380ab6),_0x1c900b=_0x23193d-_0x5444db,_0x33e3b1=_0x20da0a-_0x1f2b4e;_0x23193d=_0x5444db+(_0x1c900b*_0x361d36-_0x33e3b1*_0x39078d),_0x20da0a=_0x1f2b4e+(_0x1c900b*_0x39078d+_0x33e3b1*_0x361d36);}let _0x571219={'x':_0x23193d,'y':_0x20da0a,'adjName':_0x295615[_0x3d8c36(0x1a2)]};this[_0x3d8c36(0x219)](_0x5b4377,_0x571219,_0x571219[_0x3d8c36(0x1a2)],_0x276386,_0x5de7ee,this[_0x3d8c36(0x330)],this[_0x3d8c36(0x227)]);}}['_addControl'](_0xdc775,_0x59ff81,_0x1899a0,_0x5c9ba3,_0x36a414,_0x430aa3,_0x1b2b80){const _0x53d39d=_0x49d8a2;if(!this['_activeImageId'])return;let _0x24f24a='image-clip-adjust-point-'+this[_0x53d39d(0x15d)]+'-'+_0x1899a0,_0x242192=_0xdc775[_0x53d39d(0xda)](_0x24f24a);if(_0x242192){_0x242192[_0x53d39d(0x112)]({'left':_0x59ff81['x']+_0x5c9ba3-_0x2bea1d[_0x53d39d(0xe1)],'top':_0x59ff81['y']+_0x36a414-_0x2bea1d['adjHandleSize']});return;}let _0x29be53=new yn(_0x24f24a,{'left':_0x59ff81['x']+_0x5c9ba3-_0x2bea1d[_0x53d39d(0xe1)],'top':_0x59ff81['y']+_0x36a414-_0x2bea1d[_0x53d39d(0xe1)],'adjName':_0x1899a0,'shapeId':this['_activeImageId'],'unitId':_0x430aa3,'subUnitId':_0x1b2b80,'width':_0x2bea1d[_0x53d39d(0xe1)]+0x8,'height':_0x2bea1d[_0x53d39d(0xe1)]+0x8,'zIndex':_0x529f4c+0x1,'evented':!0x0});this[_0x53d39d(0x2b3)][_0x53d39d(0x214)](_0x29be53),this[_0x53d39d(0x336)](_0x29be53,_0xdc775,_0x1899a0),_0xdc775[_0x53d39d(0x1c7)](_0x29be53,_0x529f4c+0x1);}[_0x49d8a2(0x186)](){const _0x412754=_0x49d8a2;this['_shapes']['length']!==0x0&&(this[_0x412754(0x2b3)][_0x412754(0x111)](_0x229677=>_0x229677[_0x412754(0x2b0)]()),this[_0x412754(0x2b3)]=[]);}[_0x49d8a2(0x30e)](_0x54254f,_0x1cc702){const _0x7b2acc=_0x49d8a2;var _0x55a6ce;let _0x1c8b84={'x':0x0,'y':0x0},_0x2ce962=this[_0x7b2acc(0x107)][_0x7b2acc(0x2c4)](_0x54254f);if(!_0x2ce962||!_0x2ce962['with'](_0x4b5a3f)[_0x7b2acc(0x1a4)](_0x1cc702))return _0x1c8b84;let _0x1da7c3=_0x2ce962['with'](_0x5480ae),_0xd0b61c=_0x1da7c3==null?void 0x0:_0x1da7c3['getCurrentScrollState']();if(!_0xd0b61c)return _0x1c8b84;let _0x542965=(_0x55a6ce=this[_0x7b2acc(0x1b8)][_0x7b2acc(0x12f)](_0x54254f))==null?void 0x0:_0x55a6ce[_0x7b2acc(0x169)](_0x1cc702);if(!_0x542965)return _0x1c8b84;let _0x1f843a=_0x356c4d(_0xd0b61c[_0x7b2acc(0x206)],_0xd0b61c[_0x7b2acc(0x19a)],_0x2ce962[_0x7b2acc(0x228)],_0x542965);return _0x1f843a?{'x':_0x1f843a['viewportScrollX'],'y':_0x1f843a['viewportScrollY']}:_0x1c8b84;}[_0x49d8a2(0x224)](_0x5c1288,_0x23dcad){const _0x3520a4=_0x49d8a2;var _0x1b305e,_0x1e8128;let _0x42cba6=(_0x1b305e=this['_univerInstanceService'][_0x3520a4(0x12f)](_0x5c1288))==null?void 0x0:_0x1b305e['getSheetBySheetId'](_0x23dcad);return(_0x1e8128=_0x42cba6==null?void 0x0:_0x42cba6[_0x3520a4(0x221)]())==null?0x1:_0x1e8128;}[_0x49d8a2(0x336)](_0x369b80,_0x419b75,_0x50f82a){const _0x315bbb=_0x49d8a2;this[_0x315bbb(0x16d)](_0x4f15f0(_0x369b80[_0x315bbb(0x1ca)]['subscribeEvent']((_0x53afc0,_0x47ba57)=>{const _0x3c7e5c=_0x315bbb;var _0x24fe40,_0x5473f7,_0x2a405c;let {unitId:_0x1ca42e,subUnitId:_0x30f81c,drawingId:_0x2b3286}=_0x369b80[_0x3c7e5c(0x275)](),_0x317567=this[_0x3c7e5c(0x243)](_0x1ca42e,_0x30f81c,_0x2b3286);if(!(_0x317567!=null&&_0x317567[_0x3c7e5c(0x166)]))return;let {left:_0x529c2d,top:_0x47e14b,width:_0x32b01b,height:_0x4eca48}=_0x317567[_0x3c7e5c(0x166)];this[_0x3c7e5c(0x155)]=_0x529c2d||0x0,this[_0x3c7e5c(0x172)]=_0x47e14b||0x0,this[_0x3c7e5c(0x269)]=_0x32b01b||0x0,this[_0x3c7e5c(0x304)]=_0x4eca48||0x0;let _0x341558=!!((_0x24fe40=_0x317567[_0x3c7e5c(0x166)])!=null&&_0x24fe40[_0x3c7e5c(0x31c)]),_0x8eb0e7=!!((_0x5473f7=_0x317567[_0x3c7e5c(0x166)])!=null&&_0x5473f7[_0x3c7e5c(0x132)]),_0x5c6c87=((_0x2a405c=_0x317567[_0x3c7e5c(0x166)])==null?void 0x0:_0x2a405c[_0x3c7e5c(0x1fa)])||0x0,_0x5e5353=this[_0x3c7e5c(0x28d)](_0x1ca42e,_0x30f81c,_0x2b3286);if(!_0x5e5353)return;let _0x46a845=this[_0x3c7e5c(0x119)](_0x5e5353[_0x3c7e5c(0x178)],this['_baseWidth'],this[_0x3c7e5c(0x304)],_0x5e5353[_0x3c7e5c(0x114)]);if(!_0x46a845||(this[_0x3c7e5c(0x1db)]=_0x46a845,this[_0x3c7e5c(0x1e9)]=_0x46a845[_0x3c7e5c(0x2a1)](_0x50f82a),!this['_activeAdjustInfo']))return;this['_isStartAdjusting']=!0x0,_0x419b75['disableObjectsEvent']();let _0x52be7c=_0x5e5353[_0x3c7e5c(0x178)];this[_0x3c7e5c(0x17a)]=_0x419b75['onPointerMove$'][_0x3c7e5c(0x19b)]((_0x55aa96,_0x309507)=>{const _0x10c185=_0x3c7e5c;if(!this[_0x10c185(0x2a5)])return;let {offsetX:_0x5e5476,offsetY:_0x496242}=_0x55aa96,_0x4e9290=this[_0x10c185(0x1e9)];if(!this[_0x10c185(0x1db)]||!_0x4e9290)return;_0x419b75[_0x10c185(0x162)](),_0x419b75['setCursor'](_0x35244f[_0x10c185(0x2ac)]);let _0x3bf5b6={'left':0x0,'top':0x0,'width':this[_0x10c185(0x269)],'height':this[_0x10c185(0x304)]},_0x3d39db=this['_getScrollInfo'](_0x1ca42e,_0x30f81c),_0x548fbc=this[_0x10c185(0x224)](_0x1ca42e,_0x30f81c),_0x1ea17d=_0x5e5476/_0x548fbc+_0x3d39db['x']-this[_0x10c185(0x155)],_0x40e053=_0x496242/_0x548fbc+_0x3d39db['y']-this[_0x10c185(0x172)];if(_0x5c6c87!==0x0){let _0x3a98a0=this[_0x10c185(0x269)]/0x2,_0x5d4d79=this[_0x10c185(0x304)]/0x2,_0x530a5b=_0x5c6c87*Math['PI']/0xb4,_0x42b635=Math[_0x10c185(0x17b)](_0x530a5b),_0x44d9b6=Math[_0x10c185(0x2c0)](_0x530a5b),_0x47fe43=_0x1ea17d-_0x3a98a0,_0x1323cb=_0x40e053-_0x5d4d79;_0x1ea17d=_0x3a98a0+(_0x47fe43*_0x42b635+_0x1323cb*_0x44d9b6),_0x40e053=_0x5d4d79+(-_0x47fe43*_0x44d9b6+_0x1323cb*_0x42b635);}_0x341558&&(_0x1ea17d=this['_baseWidth']-_0x1ea17d),_0x8eb0e7&&(_0x40e053=this[_0x10c185(0x304)]-_0x40e053);let _0x473459=this['_activeShapeModel'][_0x10c185(0x300)](_0x3bf5b6,{'x':_0x1ea17d,'y':_0x40e053},_0x4e9290,_0x341558,_0x8eb0e7),_0x208644=_0x4e9290[_0x10c185(0xe7)]||_0x4e9290[_0x10c185(0x297)]||_0x4e9290[_0x10c185(0x27f)]||_0x4e9290['gdRefR'];_0x208644!==void 0x0&&(this[_0x10c185(0x1db)][_0x10c185(0x1cf)](_0x208644,_0x473459),this[_0x10c185(0x1db)]['updateContext']({'width':this[_0x10c185(0x269)],'height':this[_0x10c185(0x304)]}),this[_0x10c185(0x2a2)](_0x1ca42e,_0x30f81c,_0x2b3286,_0x208644,_0x473459),this[_0x10c185(0x2cf)]=this[_0x10c185(0x1db)][_0x10c185(0x12d)](),this[_0x10c185(0x1e9)]=this[_0x10c185(0x1db)][_0x10c185(0x2a1)](_0x50f82a),this['_createControls'](),_0x309507[_0x10c185(0x108)]());}),this[_0x3c7e5c(0xe3)]=_0x419b75[_0x3c7e5c(0x1fc)][_0x3c7e5c(0x19b)]((_0x10bed5,_0x3a0b6b)=>{const _0x592b11=_0x3c7e5c;if(this[_0x592b11(0x17a)]['unsubscribe'](),this['_adjHandlerPointerUp'][_0x592b11(0x2e3)](),_0x419b75[_0x592b11(0x18d)](),this[_0x592b11(0x1db)]){let _0x316704=this[_0x592b11(0x1db)][_0x592b11(0x325)](),_0x3dc849={};for(let _0x567c71 of _0x316704){let _0x87eb15=this[_0x592b11(0x1db)][_0x592b11(0x27e)](_0x567c71);_0x87eb15!==void 0x0&&(_0x3dc849[_0x567c71]=_0x87eb15);}this[_0x592b11(0x18a)][_0x592b11(0x1fb)](_0x1ca42e,_0x30f81c,_0x2b3286,_0x52be7c,_0x3dc849);}this[_0x592b11(0x1e9)]=void 0x0,this[_0x592b11(0x1db)]=void 0x0,this[_0x592b11(0x2a5)]=!0x1,_0x3a0b6b[_0x592b11(0x108)](),_0x419b75[_0x592b11(0x24a)]();}),_0x47ba57['stopPropagation']();})));}['_updateImageAdjValues'](_0x4999d6,_0x37dac4,_0x3de9d4,_0x305312,_0x10ea99){const _0x3a875f=_0x49d8a2;let _0x506399=this[_0x3a875f(0x107)][_0x3a875f(0x2c4)](_0x4999d6);if(!_0x506399)return;let {scene:_0x2af349}=_0x506399,_0x3b76a2=_0x24e648({'unitId':_0x4999d6,'subUnitId':_0x37dac4,'drawingId':_0x3de9d4}),_0xa0ec2f=_0x2af349[_0x3a875f(0x307)](_0x3b76a2);if(_0xa0ec2f instanceof _0xd2487b){var _0x148fb7;let _0x40a4b9=(_0x148fb7=_0xa0ec2f[_0x3a875f(0x323)])==null?{}:_0x148fb7;_0xa0ec2f[_0x3a875f(0x164)]({..._0x40a4b9,[_0x305312]:_0x10ea99}),_0xa0ec2f['makeDirty'](!0x0);}}[_0x49d8a2(0x126)](){const _0x767221=_0x49d8a2;let _0x3a7ac8=this[_0x767221(0x1b8)]['getCurrentTypeOfUnit$'](_0x4c1a31['UNIVER_SHEET']);this['disposeWithMe'](_0x3a7ac8[_0x767221(0x26c)](_0x48371d(_0x39766e=>_0x39766e?_0x39766e[_0x767221(0x18c)][_0x767221(0x26c)](_0x48371d(_0x512ce9=>{const _0x3793fa=_0x767221;if(!_0x512ce9)return _0x4e602d;let _0x3c65ac=_0x39766e[_0x3793fa(0x229)](),_0x50a205=this[_0x3793fa(0x107)][_0x3793fa(0x2c4)](_0x3c65ac),_0x4f664d=_0x50a205==null?void 0x0:_0x50a205[_0x3793fa(0x228)];return _0x4f664d?_0x5ba9b9(_0x4f664d):_0x4e602d;})):_0x4e602d))[_0x767221(0x212)](_0x1acefe=>{const _0x27acf7=_0x767221;let _0x1d2683=_0x1acefe[_0x27acf7(0x14b)]();this['disposeWithMe'](_0x1acefe['onPointerMove$'][_0x27acf7(0x19b)](()=>{const _0x4d97d2=_0x27acf7;this['_isImagePointerDown']&&this[_0x4d97d2(0x186)]();})),this['disposeWithMe'](_0x1d2683['changeStart$'][_0x27acf7(0x212)](_0x519f79=>{const _0x2b565c=_0x27acf7;let {objects:_0x5582d2}=_0x519f79;if(this[_0x2b565c(0x28f)](),_0x5582d2!==null&&_0x5582d2['size']===0x1){let _0x33a3e2=_0x5582d2[_0x2b565c(0x2cc)]()[_0x2b565c(0x15a)]()['value'];_0x33a3e2 instanceof _0xd2487b&&_0x33a3e2[_0x2b565c(0x178)]&&(this[_0x2b565c(0x25b)]=!0x0);}})),this[_0x27acf7(0x16d)](_0x1d2683[_0x27acf7(0x2f4)][_0x27acf7(0x212)](()=>{const _0x5000b1=_0x27acf7;this[_0x5000b1(0x25b)]&&this[_0x5000b1(0x186)]();})),this[_0x27acf7(0x16d)](_0x1acefe[_0x27acf7(0x1fc)]['subscribeEvent'](()=>{const _0xce4466=_0x27acf7;this[_0xce4466(0x25b)]&&(this['_isImagePointerDown']=!0x1,this[_0xce4466(0x28f)]());})),this[_0x27acf7(0x16d)](_0x1d2683[_0x27acf7(0x322)][_0x27acf7(0x212)](()=>{const _0x5c042e=_0x27acf7;if(this[_0x5c042e(0x330)]&&this[_0x5c042e(0x227)]&&this['_activeImageId']){let _0x3ab4c6=this['_getImagePrstGeom'](this[_0x5c042e(0x330)],this[_0x5c042e(0x227)],this[_0x5c042e(0x15d)]);if(_0x3ab4c6){var _0x5e5626,_0x3d7988;let _0x1bac29=this[_0x5c042e(0x243)](this[_0x5c042e(0x330)],this[_0x5c042e(0x227)],this[_0x5c042e(0x15d)]),_0x4315f6=(_0x1bac29==null||(_0x5e5626=_0x1bac29[_0x5c042e(0x166)])==null?void 0x0:_0x5e5626[_0x5c042e(0x2b9)])||0x0,_0x35787e=(_0x1bac29==null||(_0x3d7988=_0x1bac29[_0x5c042e(0x166)])==null?void 0x0:_0x3d7988[_0x5c042e(0x232)])||0x0,_0x1ac35d=this[_0x5c042e(0x119)](_0x3ab4c6[_0x5c042e(0x178)],_0x4315f6,_0x35787e,_0x3ab4c6[_0x5c042e(0x114)]);_0x1ac35d&&(this[_0x5c042e(0x2cf)]=_0x1ac35d[_0x5c042e(0x12d)](),this[_0x5c042e(0x186)](),this['_createControls'](!0x0));}}}));}));}[_0x49d8a2(0x287)](){const _0x3fedab=_0x49d8a2;this['disposeWithMe'](this[_0x3fedab(0x159)]['focus$'][_0x3fedab(0x212)](_0x3eeff3=>{const _0x579926=_0x3fedab;if(_0x3eeff3[_0x579926(0x289)]===0x1){let _0x382f1c=_0x3eeff3[0x0];if(_0x382f1c[_0x579926(0x12e)]===_0x336997[_0x579926(0x2b7)]){let {unitId:_0x558b8b,subUnitId:_0x1a483e,drawingId:_0x45a9d9}=_0x382f1c,_0x1fae29=this[_0x579926(0x28d)](_0x558b8b,_0x1a483e,_0x45a9d9);if(_0x1fae29){var _0xbf5019,_0x4060b4;this['_activeImageId']=_0x45a9d9,this[_0x579926(0x330)]=_0x558b8b,this[_0x579926(0x227)]=_0x1a483e;let _0x2bd36c=this[_0x579926(0x243)](_0x558b8b,_0x1a483e,_0x45a9d9),_0x42662c=(_0x2bd36c==null||(_0xbf5019=_0x2bd36c[_0x579926(0x166)])==null?void 0x0:_0xbf5019['width'])||0x0,_0x21088f=(_0x2bd36c==null||(_0x4060b4=_0x2bd36c[_0x579926(0x166)])==null?void 0x0:_0x4060b4[_0x579926(0x232)])||0x0,_0x4a8446=this['_getOrCreateShapeModel'](_0x1fae29[_0x579926(0x178)],_0x42662c,_0x21088f,_0x1fae29[_0x579926(0x114)]);_0x4a8446&&(this['_activeAdjustPointList']=_0x4a8446[_0x579926(0x12d)]()),this[_0x579926(0x186)](),this['_createControls'](!0x0);}else this[_0x579926(0x30f)]();}else this['_resetState']();}else this[_0x579926(0x30f)]();})),this[_0x3fedab(0x16d)](this[_0x3fedab(0x159)][_0x3fedab(0x127)][_0x3fedab(0x212)](_0x131599=>{const _0x5fca99=_0x3fedab;if(_0x131599['length']===0x1){let _0x3cfac4=_0x131599[0x0],_0x32c830=this[_0x5fca99(0x159)][_0x5fca99(0x26a)](_0x3cfac4);(_0x32c830==null?void 0x0:_0x32c830[_0x5fca99(0x12e)])===_0x336997[_0x5fca99(0x2b7)]&&this['_activeImageId']===_0x3cfac4['drawingId']&&(this[_0x5fca99(0x186)](),this[_0x5fca99(0x28f)](!0x0));}})),this[_0x3fedab(0x16d)](this[_0x3fedab(0x159)][_0x3fedab(0x2dc)][_0x3fedab(0x212)](_0x11b0ce=>{const _0x5d5a69=_0x3fedab;for(let _0x4d7d77 of _0x11b0ce)this[_0x5d5a69(0x15d)]===_0x4d7d77[_0x5d5a69(0x20e)]&&this[_0x5d5a69(0x30f)]();}));}[_0x49d8a2(0x30f)](){const _0x18bc89=_0x49d8a2;this[_0x18bc89(0x15d)]=null,this['_unitId']=null,this[_0x18bc89(0x227)]=null,this[_0x18bc89(0x2cf)]=void 0x0,this['_clearControls']();}};er=Y([J(0x1,_0x5a9176),J(0x2,_0x3465f0(_0x2565d9)),J(0x3,_0x2320a1),J(0x4,_0x3465f0(Q))],er);let tr=class extends _0x1e0fa2{constructor(_0x19fb24,_0x4233bf,_0x92d6be,_0x5d1b63){const _0xafe370=_0x49d8a2;super(),this['_univerInstanceService']=_0x19fb24,this[_0xafe370(0x1c0)]=_0x4233bf,this[_0xafe370(0x334)]=_0x92d6be,this[_0xafe370(0x220)]=_0x5d1b63,this[_0xafe370(0x1e4)]();}['_initSheetChange'](){const _0xf7409e=_0x49d8a2;this[_0xf7409e(0x16d)](this[_0xf7409e(0x1c0)][_0xf7409e(0x31d)]({'getMutations':_0x3befe2=>{const _0x4d273f=_0xf7409e;if(_0x3befe2['id']===_0x414783['id']){let _0xa5df6e=_0x20e706(this[_0x4d273f(0x1b8)],_0x3befe2['params']);if(!_0xa5df6e)return{'redos':[],'undos':[]};let {unitId:_0x3d1519,subUnitId:_0x7316b0}=_0xa5df6e,_0x3c5875=this['_sheetDrawingService'][_0x4d273f(0x233)](_0x3d1519,_0x7316b0),_0x230e44=Object[_0x4d273f(0x2cc)](_0x3c5875)[_0x4d273f(0x1da)](_0x2d5dbc=>_0x2d5dbc[_0x4d273f(0x12e)]===_0x336997[_0x4d273f(0x181)]);if(_0x230e44[_0x4d273f(0x289)]===0x0)return{'redos':[],'undos':[]};let _0x2d49e8=[],_0x3928a9=[];for(let _0x4c231f=0x0;_0x4c231f<_0x230e44[_0x4d273f(0x289)];_0x4c231f++){let _0x5e8c39=_0x230e44[_0x4c231f],_0x2dda63=this[_0x4d273f(0x220)][_0x4d273f(0x296)](_0x5e8c39[_0x4d273f(0x1b7)],_0x5e8c39[_0x4d273f(0x2b4)],_0x5e8c39[_0x4d273f(0x20e)]);if(!_0x2dda63)continue;let {redo:_0x2cef78,undo:_0x1136b0,objects:_0x1e3942}=this[_0x4d273f(0x334)]['getBatchRemoveOp']([_0x5e8c39]);_0x2d49e8['push']({'id':_0x32e37c['id'],'params':{'unitId':_0x3d1519,'subUnitId':_0x7316b0,'shapeId':_0x5e8c39['drawingId']}}),_0x2d49e8[_0x4d273f(0x214)]({'id':_0x2fbd15['id'],'params':{'unitId':_0x3d1519,'subUnitId':_0x7316b0,'type':_0x20e0af[_0x4d273f(0xfb)],'op':_0x2cef78,'objects':_0x1e3942}}),_0x3928a9['push']({'id':_0x2fbd15['id'],'params':{'unitId':_0x3d1519,'subUnitId':_0x7316b0,'type':_0x20e0af[_0x4d273f(0x337)],'op':_0x1136b0,'objects':_0x1e3942}}),_0x3928a9['push']({'id':_0x47dbbc['id'],'params':{'unitId':_0x3d1519,'subUnitId':_0x7316b0,'shapeId':_0x5e8c39['drawingId'],'shapeType':_0x2dda63[_0x4d273f(0x285)](),'shapeData':JSON[_0x4d273f(0x230)](JSON[_0x4d273f(0x266)](_0x2dda63[_0x4d273f(0x205)]()))}});}return{'redos':_0x2d49e8,'undos':_0x3928a9};}else{if(_0x3befe2['id']===_0x54e5a0['id']){let {unitId:_0x3951ee,subUnitId:_0x56fcc5,targetSubUnitId:_0x1970b7}=_0x3befe2[_0x4d273f(0x2ba)];if(!_0x3951ee||!_0x56fcc5||!_0x1970b7)return{'redos':[],'undos':[]};let _0xd37df7=this[_0x4d273f(0x334)][_0x4d273f(0x233)](_0x3951ee,_0x56fcc5),_0x4db82c=Object[_0x4d273f(0x2cc)](_0xd37df7)['filter'](_0x486d3b=>_0x486d3b[_0x4d273f(0x12e)]===_0x336997[_0x4d273f(0x181)]);if(_0x4db82c[_0x4d273f(0x289)]===0x0)return{'redos':[],'undos':[]};let _0x2d7efa=[],_0x278517=[];for(let _0x13e062=0x0;_0x13e062<_0x4db82c[_0x4d273f(0x289)];_0x13e062++){let _0x2f2826=_0x4db82c[_0x13e062],_0x7a75e5=this[_0x4d273f(0x220)]['getShapeModel'](_0x2f2826['unitId'],_0x2f2826[_0x4d273f(0x2b4)],_0x2f2826[_0x4d273f(0x20e)]);if(!_0x7a75e5)continue;let _0x4a58db=_0x3893c7(),_0x4dafd5={..._0x2f2826,'unitId':_0x3951ee,'subUnitId':_0x1970b7,'drawingId':_0x4a58db},{redo:_0xf5d128,undo:_0x561f6a,objects:_0x31fff6}=this[_0x4d273f(0x334)][_0x4d273f(0x20b)]([_0x4dafd5]);_0x2d7efa[_0x4d273f(0x214)]({'id':_0x2fbd15['id'],'params':{'unitId':_0x3951ee,'subUnitId':_0x1970b7,'type':_0x20e0af[_0x4d273f(0x337)],'op':_0xf5d128,'objects':_0x31fff6}}),_0x2d7efa[_0x4d273f(0x214)]({'id':_0x47dbbc['id'],'params':{'unitId':_0x3951ee,'subUnitId':_0x1970b7,'shapeId':_0x4a58db,'shapeType':_0x7a75e5[_0x4d273f(0x285)](),'shapeData':JSON['parse'](JSON[_0x4d273f(0x266)](_0x7a75e5[_0x4d273f(0x205)]()))}}),_0x278517[_0x4d273f(0x214)]({'id':_0x32e37c['id'],'params':{'unitId':_0x3951ee,'subUnitId':_0x1970b7,'shapeId':_0x4a58db}}),_0x278517[_0x4d273f(0x214)]({'id':_0x2fbd15['id'],'params':{'unitId':_0x3951ee,'subUnitId':_0x1970b7,'type':_0x20e0af[_0x4d273f(0xfb)],'op':_0x561f6a,'objects':_0x31fff6}});}return{'redos':_0x2d7efa,'undos':_0x278517};}}return{'redos':[],'undos':[]};}}));}};tr=Y([J(0x0,_0x3465f0(_0x2320a1)),J(0x1,_0x3465f0(_0x85f95e)),J(0x2,_0x3465f0(_0xc538a1)),J(0x3,_0x3465f0(_0x1a451a))],tr);let nr=class extends _0x1e0fa2{constructor(_0x2fd696,_0x3329c4,_0x244be0,_0x59643d,_0x358101){const _0x26d9dd=_0x49d8a2;super(),this['_context']=_0x2fd696,this[_0x26d9dd(0x185)]=_0x3329c4,this[_0x26d9dd(0x159)]=_0x244be0,this['_contextService']=_0x59643d,this['_sheetsShapeService']=_0x358101,q(this,_0x26d9dd(0x124),null),this['_initEvents'](),this['_initSelection'](),this[_0x26d9dd(0x28c)]();}[_0x49d8a2(0x1d6)](){const _0x32b58d=_0x49d8a2;let {scene:_0x12f538}=this[_0x32b58d(0x12a)];this['disposeWithMe'](_0x12f538[_0x32b58d(0x31b)][_0x32b58d(0x19b)](_0x1214e9=>{const _0xebdca7=_0x32b58d;let {offsetX:_0x475872,offsetY:_0xff4328}=_0x1214e9,_0x44c632=_0x12f538[_0xebdca7(0x177)](_0x1d9584['FromArray']([_0x475872,_0xff4328]));if(_0x44c632 instanceof vn){if(_0x5d2a5e(this['_sheetsShapeService'][_0xebdca7(0x285)](_0x44c632[_0xebdca7(0x1b7)],_0x44c632[_0xebdca7(0x2b4)],_0x44c632['shapeId'])))return;this[_0xebdca7(0x185)][_0xebdca7(0x2f3)]({'visible':!0x0,'unitId':_0x44c632[_0xebdca7(0x1b7)],'subUnitId':_0x44c632[_0xebdca7(0x2b4)],'shapeId':_0x44c632[_0xebdca7(0x142)],'shapeKey':_0x44c632[_0xebdca7(0x163)]});}}));}['_initSelection'](){const _0x5cfc71=_0x49d8a2;this[_0x5cfc71(0x16d)](this[_0x5cfc71(0x159)][_0x5cfc71(0x139)]['subscribe'](_0x1e3da6=>{const _0x45370a=_0x5cfc71;if(_0x1e3da6[_0x45370a(0x289)]===0x1){let _0x9664a=_0x1e3da6[0x0],_0x22d218=this['_drawingManagerService'][_0x45370a(0x26a)](_0x9664a);if((_0x22d218==null?void 0x0:_0x22d218['drawingType'])===_0x336997['DRAWING_SHAPE']){let _0x1b2f7e=this[_0x45370a(0x185)][_0x45370a(0x25a)]();if((_0x1b2f7e==null?void 0x0:_0x1b2f7e[_0x45370a(0x142)])===_0x9664a[_0x45370a(0x20e)]&&_0x1b2f7e[_0x45370a(0x316)])return;_0x5d2a5e(this[_0x45370a(0x220)]['getShapeType'](_0x9664a[_0x45370a(0x1b7)],_0x9664a[_0x45370a(0x2b4)],_0x9664a[_0x45370a(0x20e)]))&&this[_0x45370a(0x185)]['setEditing'](null);}else this['_shapeTextEditingService'][_0x45370a(0x25a)]()&&(this[_0x45370a(0x185)][_0x45370a(0x263)](!0x0),requestAnimationFrame(()=>{const _0x5635d4=_0x45370a;this[_0x5635d4(0x185)][_0x5635d4(0x2f3)](null);}));}else this[_0x45370a(0x185)][_0x45370a(0x25a)]()&&(this[_0x45370a(0x185)][_0x45370a(0x263)](!0x0),requestAnimationFrame(()=>{const _0x49817e=_0x45370a;this[_0x49817e(0x185)][_0x49817e(0x2f3)](null);}));})),this[_0x5cfc71(0x16d)](this['_drawingManagerService'][_0x5cfc71(0x2dc)][_0x5cfc71(0x212)](_0x4ba979=>{const _0x405e0f=_0x5cfc71;let _0x1f536b=this[_0x405e0f(0x185)][_0x405e0f(0x25a)]();_0x1f536b&&_0x4ba979[_0x405e0f(0x2ee)](_0x26db51=>_0x26db51[_0x405e0f(0x20e)]===_0x1f536b[_0x405e0f(0x142)])&&this[_0x405e0f(0x185)][_0x405e0f(0x2f3)](null);}));}[_0x49d8a2(0x28c)](){const _0x26d221=_0x49d8a2;this[_0x26d221(0x16d)](this[_0x26d221(0x185)][_0x26d221(0xfa)][_0x26d221(0x212)](_0x2cb3a8=>{const _0x2a2e07=_0x26d221;let {scene:_0x205a49}=this[_0x2a2e07(0x12a)];if(this[_0x2a2e07(0x124)]){let _0x25ec0d=_0x205a49[_0x2a2e07(0xda)](this[_0x2a2e07(0x124)]);_0x25ec0d&&_0x25ec0d[_0x2a2e07(0x2f3)](!0x1);}if(_0x2cb3a8){let _0x436f5a=!!_0x2cb3a8[_0x2a2e07(0x316)],_0x2343f5=_0x205a49['getObjectIncludeInGroup'](_0x2cb3a8[_0x2a2e07(0x103)]);_0x2343f5&&(_0x2343f5[_0x2a2e07(0x2f3)](_0x436f5a),this[_0x2a2e07(0x124)]=_0x2cb3a8[_0x2a2e07(0x103)]),this['_contextService'][_0x2a2e07(0x14f)](_0x7f228e,_0x436f5a);}else this[_0x2a2e07(0x124)]=null,this[_0x2a2e07(0x2e9)][_0x2a2e07(0x14f)](_0x7f228e,!0x1);}));}};nr=Y([J(0x1,_0x3465f0(Zn)),J(0x2,_0x5a9176),J(0x3,_0x2d429f),J(0x4,_0x3465f0(_0x1a451a))],nr);let rr=class extends _0x596e22{constructor(_0x5b6de9,_0x177bf4,_0x44d9c7,_0xce0296){super(_0x5b6de9,_0x177bf4,_0x44d9c7,_0xce0296,{'componentKey':En,'editorUnitId':Tn});}};rr=Y([J(0x1,_0x3465f0(_0x529093)),J(0x2,_0x3465f0(_0x16c1cd)),J(0x3,_0x3465f0(_0x3889b2))],rr);let ir=class extends _0x1e0fa2{constructor(_0x1ceb18,_0x4e55fb,_0x107fe7,_0x3961e7,_0x2c518e,_0x19316a){const _0x16b538=_0x49d8a2;super(),this[_0x16b538(0x2af)]=_0x1ceb18,this[_0x16b538(0x107)]=_0x4e55fb,this['_drawingManagerService']=_0x107fe7,this[_0x16b538(0x118)]=_0x3961e7,this[_0x16b538(0x21b)]=_0x2c518e,this[_0x16b538(0x31a)]=_0x19316a,q(this,_0x16b538(0x20d),new Set()),this[_0x16b538(0x2f6)]();}['_initialize'](){const _0x50d91d=_0x49d8a2;this['_drawingAddListener'](),this[_0x50d91d(0x160)](),this[_0x50d91d(0x324)]();}[_0x49d8a2(0x180)](){const _0x35b84f=_0x49d8a2;this[_0x35b84f(0x16d)](this[_0x35b84f(0x159)]['add$'][_0x35b84f(0x212)](_0x72c374=>{const _0x3ddf8f=_0x35b84f;this[_0x3ddf8f(0x150)](_0x72c374);}));}[_0x49d8a2(0x160)](){const _0x38fdd7=_0x49d8a2;this[_0x38fdd7(0x16d)](this[_0x38fdd7(0x2af)][_0x38fdd7(0x242)](_0x44c316=>{const _0x355c44=_0x38fdd7;if(_0x44c316['id']===_0x22295a['id']){let {unitId:_0x2c12f2,subUnitId:_0x1cf971,shapeId:_0x5f026e}=_0x44c316[_0x355c44(0x2ba)],_0x51fb82=this[_0x355c44(0x1c9)](_0x2c12f2),_0x5a1590=_0x24e648({'unitId':_0x2c12f2,'subUnitId':_0x1cf971,'drawingId':_0x5f026e}),_0x248665=_0x51fb82==null?void 0x0:_0x51fb82[_0x355c44(0x228)][_0x355c44(0xda)](_0x5a1590);_0x248665&&(this[_0x355c44(0x31a)][_0x355c44(0x153)](_0x248665),_0x248665[_0x355c44(0x165)](!0x0));return;}if(_0x44c316['id']===_0x47dbbc['id']){var _0x2f14be;let {unitId:_0x2a3d62,subUnitId:_0x40aea9,shapeId:_0x34b31c}=_0x44c316[_0x355c44(0x2ba)],_0xc618bc=this[_0x355c44(0x1c9)](_0x2a3d62);if(_0xc618bc==null)return;let {scene:_0x733d62}=_0xc618bc,_0x50dda7=_0x24e648({'unitId':_0x2a3d62,'subUnitId':_0x40aea9,'drawingId':_0x34b31c}),_0x59279c=_0x733d62[_0x355c44(0xda)](_0x50dda7);if(!((_0x2f14be=this['_renderManagerService'][_0x355c44(0x2c4)](_0x2a3d62))!=null&&_0x2f14be['with'](_0x4b5a3f)[_0x355c44(0x1a4)](_0x40aea9)))return!0x1;if(_0x59279c)return;this['_insertShapes']([{'unitId':_0x2a3d62,'subUnitId':_0x40aea9,'drawingId':_0x34b31c}]);}}));}[_0x49d8a2(0x324)](){const _0x220787=_0x49d8a2;this['disposeWithMe'](this['_drawingManagerService'][_0x220787(0x127)][_0x220787(0x212)](_0xebe672=>{const _0x1a61c8=_0x220787;_0xebe672[_0x1a61c8(0x111)](_0x4d4fca=>{const _0x394d44=_0x1a61c8;let {unitId:_0x15b528,subUnitId:_0x196a46,drawingId:_0x476f24}=_0x4d4fca,_0x2338bd=this[_0x394d44(0x159)]['getDrawingByParam'](_0x4d4fca);if(_0x2338bd==null)return;let {transform:_0x53169f,drawingType:_0x5dc258,srcRect:_0x1217e3,prstGeom:_0xb27090}=_0x2338bd;if(_0x5dc258!==_0x336997[_0x394d44(0x181)])return;let _0x128d25=this[_0x394d44(0x1c9)](_0x15b528);if(_0x128d25==null)return;let {scene:_0x16f417,transformer:_0x2e32aa}=_0x128d25;if(_0x53169f==null)return!0x0;let _0x235cce=_0x24e648({'unitId':_0x15b528,'subUnitId':_0x196a46,'drawingId':_0x476f24}),_0x1f30e1=_0x16f417[_0x394d44(0xda)](_0x235cce);if(_0x1f30e1==null)return!0x0;_0x1f30e1[_0x394d44(0x279)](_0x1217e3),_0x1f30e1[_0x394d44(0x2ca)](_0xb27090);});}));}['_insertShapes'](_0x1a5140){const _0x3d7182=_0x49d8a2;for(let _0x4f53c2 of _0x1a5140){var _0x3e59ed;let {unitId:_0x533d1e,subUnitId:_0x4c5721,drawingId:_0x3dc0ac}=_0x4f53c2,_0x5606a3=this['_getSceneAndTransformerByDrawingSearch'](_0x533d1e),_0x450b8a=(_0x3e59ed=_0x5b5b76(this[_0x3d7182(0x118)],_0x533d1e))==null?void 0x0:_0x3e59ed[_0x3d7182(0x2b4)];if(_0x5606a3==null||_0x450b8a!==_0x4c5721)return;let _0x3ceb03=_0x24e648({'unitId':_0x533d1e,'subUnitId':_0x4c5721,'drawingId':_0x3dc0ac});if(this[_0x3d7182(0x20d)][_0x3d7182(0x215)](_0x3ceb03)||_0x5606a3[_0x3d7182(0x228)][_0x3d7182(0xda)](_0x3ceb03)!=null)return;let _0x32f3c7=this[_0x3d7182(0x159)][_0x3d7182(0x26a)](_0x4f53c2);if(_0x32f3c7==null||_0x32f3c7['drawingType']!==_0x336997[_0x3d7182(0x181)])return;if(_0x5d2a5e((_0x32f3c7['data']||{})[_0x3d7182(0x2b2)])){let _0x284630=_0x32f3c7[_0x3d7182(0x166)];_0x284630&&(_0x32f3c7[_0x3d7182(0x166)]={..._0x284630,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x3d7182(0x20d)][_0x3d7182(0x120)](_0x3ceb03);try{this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x32f3c7,_0x5606a3[_0x3d7182(0x228)]);}finally{this[_0x3d7182(0x20d)][_0x3d7182(0x2a3)](_0x3ceb03);}queueMicrotask(()=>{const _0x4888dd=_0x3d7182;if(this[_0x4888dd(0x24c)])return;let _0x175a0b=_0x24e648(_0x4f53c2);if(!_0x5606a3['scene'][_0x4888dd(0xda)](_0x175a0b))return;let _0x513f57=this[_0x4888dd(0x159)]['getDrawingByParam'](_0x4f53c2);_0x513f57&&this[_0x4888dd(0x159)][_0x4888dd(0x2fd)]([_0x513f57]);});}}[_0x49d8a2(0x1c9)](_0x46c3c4){const _0x2e8e12=_0x49d8a2;if(_0x46c3c4==null)return;let _0x5e5257=this[_0x2e8e12(0x107)]['getRenderById'](_0x46c3c4),_0x4277c4=_0x5e5257==null?void 0x0:_0x5e5257['scene'];return _0x4277c4==null?null:{'scene':_0x4277c4,'transformer':_0x4277c4[_0x2e8e12(0x14b)]()};}};ir=Y([J(0x0,_0x3002c9),J(0x1,_0x2565d9),J(0x2,_0x5a9176),J(0x3,_0x2320a1),J(0x4,_0x3465f0(_0x4d04f3)),J(0x5,_0x3465f0(X))],ir);function _0x208c(_0x4fe8d9,_0x40ba78){_0x4fe8d9=_0x4fe8d9-0xd9;const _0x480688=_0x4806();let _0x208ca0=_0x480688[_0x4fe8d9];return _0x208ca0;}const ar={'normal':{'fill':_0x2bea1d['cxnPointFill'],'stroke':_0x2bea1d['cxnPointStroke'],'strokeWidth':_0x2bea1d[_0x49d8a2(0x2e5)]},'highlighted':{'fill':_0x49d8a2(0x1e3),'stroke':'#1a73e8','strokeWidth':0x2}};var or=class extends _0x176254{constructor(_0x3d732b,_0xde7c27){const _0x435980=_0x49d8a2;super(_0x3d732b,_0xde7c27),q(this,'_targetShapeId',''),q(this,_0x435980(0x2bb),-0x1),q(this,'_unitId',''),q(this,_0x435980(0x227),''),q(this,_0x435980(0x2f5),!0x1),_0xde7c27&&this[_0x435980(0x25e)](_0xde7c27);}['getConnectionInfo'](){const _0x4efe2e=_0x49d8a2;return{'unitId':this[_0x4efe2e(0x330)],'subUnitId':this[_0x4efe2e(0x227)],'shapeId':this[_0x4efe2e(0x30a)],'cxnIndex':this[_0x4efe2e(0x2bb)]};}['setHighlighted'](_0x46f819){const _0x50cfb7=_0x49d8a2;this['_isHighlighted']!==_0x46f819&&(this[_0x50cfb7(0x2f5)]=_0x46f819,this['makeDirty'](!0x0));}[_0x49d8a2(0x1ec)](){const _0x5448e3=_0x49d8a2;return this[_0x5448e3(0x2f5)];}[_0x49d8a2(0x25e)](_0x212a9e){const _0x5cb698=_0x49d8a2;var _0x49726c,_0x23bd8c;_0x212a9e[_0x5cb698(0x283)]!==void 0x0&&(this[_0x5cb698(0x30a)]=_0x212a9e[_0x5cb698(0x283)]),_0x212a9e['cxnIndex']!==void 0x0&&(this[_0x5cb698(0x2bb)]=_0x212a9e[_0x5cb698(0x217)]),_0x212a9e[_0x5cb698(0x1b7)]!==void 0x0&&(this[_0x5cb698(0x330)]=_0x212a9e[_0x5cb698(0x1b7)]),_0x212a9e['subUnitId']!==void 0x0&&(this[_0x5cb698(0x227)]=_0x212a9e[_0x5cb698(0x2b4)]),_0x212a9e[_0x5cb698(0x1ec)]!==void 0x0&&(this[_0x5cb698(0x2f5)]=_0x212a9e[_0x5cb698(0x1ec)]),this[_0x5cb698(0x112)]({'width':(_0x49726c=_0x212a9e[_0x5cb698(0x2b9)])==null?_0x2bea1d['cxnPointRadius']*0x2:_0x49726c,'height':(_0x23bd8c=_0x212a9e['height'])==null?_0x2bea1d[_0x5cb698(0x1eb)]*0x2:_0x23bd8c});}[_0x49d8a2(0x15e)](_0x84add3){const _0x196618=_0x49d8a2;let _0x1fc8cd=this[_0x196618(0x2f5)]?ar[_0x196618(0x1fe)]:ar[_0x196618(0x1f0)];_0x1578ae[_0x196618(0x1bf)](_0x84add3,{'radius':_0x2bea1d[_0x196618(0x1eb)],'fill':_0x1fc8cd[_0x196618(0x270)],'stroke':_0x1fc8cd[_0x196618(0x2dd)],'strokeWidth':_0x1fc8cd[_0x196618(0x276)],'evented':!0x0});}};let sr=class extends _0x1e0fa2{constructor(_0x15c481,_0x46cb2e,_0x530c98,_0x4bf09c){const _0x5d6328=_0x49d8a2;super(),this[_0x5d6328(0x12a)]=_0x15c481,this['_renderManagerService']=_0x46cb2e,this[_0x5d6328(0x159)]=_0x530c98,this[_0x5d6328(0x220)]=_0x4bf09c,q(this,_0x5d6328(0x167),[]),q(this,'_activeTargetShapeId',null),q(this,'_highlightedSiteIndex',-0x1),q(this,_0x5d6328(0x14d),null),q(this,'_unitId',''),q(this,_0x5d6328(0x227),''),q(this,_0x5d6328(0x2d7),null);}['startConnectionDetection'](_0x59a571,_0x211fef,_0x2c1bf1,_0x385795){const _0x596892=_0x49d8a2;this[_0x596892(0x14d)]=_0x59a571,this[_0x596892(0x330)]=_0x211fef,this['_subUnitId']=_0x2c1bf1,this['_draggingConnectorId']=_0x385795;}[_0x49d8a2(0x14a)](_0x4ce87c){const _0x1156d6=_0x49d8a2;if(!this['_currentScene'])return null;let _0x562364=this[_0x1156d6(0x2bd)](_0x4ce87c);return _0x562364?(this[_0x1156d6(0x1ad)]!==_0x562364[_0x1156d6(0x142)]&&(this[_0x1156d6(0x311)](),this[_0x1156d6(0xff)](_0x562364[_0x1156d6(0x142)],_0x562364[_0x1156d6(0x11d)]),this[_0x1156d6(0x1ad)]=_0x562364[_0x1156d6(0x142)]),this[_0x1156d6(0x32d)](_0x4ce87c)):(this[_0x1156d6(0x1ad)]!==null&&(this[_0x1156d6(0x311)](),this[_0x1156d6(0x1ad)]=null),null);}['endConnectionDetection'](){const _0x29070d=_0x49d8a2;this[_0x29070d(0x311)](),this[_0x29070d(0x14d)]=null,this[_0x29070d(0x1ad)]=null,this[_0x29070d(0x2aa)]=-0x1,this[_0x29070d(0x2d7)]=null;}[_0x49d8a2(0x1b4)](){const _0x39a936=_0x49d8a2;return this['_activeTargetShapeId']===null||this[_0x39a936(0x2aa)]<0x0?null:{'shapeId':this[_0x39a936(0x1ad)],'cxnIndex':this['_highlightedSiteIndex']};}[_0x49d8a2(0x2bd)](_0x1adbaf){const _0x4666fa=_0x49d8a2;let _0x5eb57b=this[_0x4666fa(0x159)][_0x4666fa(0x233)](this[_0x4666fa(0x330)],this[_0x4666fa(0x227)]);for(let _0x8399a0 of Object[_0x4666fa(0x2c1)](_0x5eb57b)){if(_0x8399a0===this[_0x4666fa(0x2d7)]||_0x5eb57b[_0x8399a0][_0x4666fa(0x12e)]!==_0x336997[_0x4666fa(0x181)])continue;let _0x194973=this['_sheetsShapeService'][_0x4666fa(0x296)](this[_0x4666fa(0x330)],this['_subUnitId'],_0x8399a0);if(!_0x194973||_0x5d2a5e(_0x194973[_0x4666fa(0x285)]())||_0x194973[_0x4666fa(0x198)]()[_0x4666fa(0x289)]===0x0||!this[_0x4666fa(0x14d)])continue;let _0x5152da=_0x24e648({'unitId':this[_0x4666fa(0x330)],'subUnitId':this['_subUnitId'],'drawingId':_0x8399a0}),_0x37c545=this['_currentScene'][_0x4666fa(0xda)](_0x5152da);if(!_0x37c545)continue;let {left:_0x304b60,top:_0x25b1fd,width:_0x7ea0be,height:_0x45f99b}=_0x37c545[_0x4666fa(0x23d)](),_0x21e3e1=_0x304b60+_0x7ea0be/0x2,_0x2c5eb0=_0x25b1fd+_0x45f99b/0x2,_0x2602d8=_0x37c545[_0x4666fa(0x166)][_0x4666fa(0x1d8)](),_0x1010d6=new _0x3a4198([_0x2602d8[0x0],_0x2602d8[0x1],_0x2602d8[0x2],_0x2602d8[0x3],_0x21e3e1,_0x2c5eb0]),_0x2d6516=_0x37c545[_0x4666fa(0x2bf)](),_0x5c5849=(_0x37c545['isInGroup']&&(_0x2d6516==null?void 0x0:_0x2d6516[_0x4666fa(0x2e7)])===_0x18ef31[_0x4666fa(0x237)]?_0x2d6516['ancestorTransform'][_0x4666fa(0x1be)](_0x1010d6):_0x1010d6)[_0x4666fa(0x2e4)]()[_0x4666fa(0x305)](_0x1adbaf),_0x409467=_0x7ea0be/0x2,_0x31ddd0=_0x45f99b/0x2;if(_0x5c5849['x']>=-_0x409467-0x5&&_0x5c5849['x']<=_0x409467+0x5&&_0x5c5849['y']>=-_0x31ddd0-0x5&&_0x5c5849['y']<=_0x31ddd0+0x5)return{'shapeId':_0x8399a0,'shapeModel':_0x194973};}return null;}[_0x49d8a2(0xff)](_0x3215fe,_0x9dc25){const _0x144207=_0x49d8a2;if(!this['_currentScene'])return;let _0x26c902=_0x24e648({'unitId':this[_0x144207(0x330)],'subUnitId':this['_subUnitId'],'drawingId':_0x3215fe}),_0x1a0614=this[_0x144207(0x14d)]['getObjectIncludeInGroup'](_0x26c902);if(!_0x1a0614)return;let {left:_0xda7bea,top:_0x1d4cb6,width:_0x383b31,height:_0x38f99d}=_0x1a0614[_0x144207(0x23d)](),_0x45f1a3=_0xda7bea+_0x383b31/0x2,_0x26f03a=_0x1d4cb6+_0x38f99d/0x2,_0x224bcf=_0x1a0614[_0x144207(0x166)][_0x144207(0x1d8)](),_0x4970b0=new _0x3a4198([_0x224bcf[0x0],_0x224bcf[0x1],_0x224bcf[0x2],_0x224bcf[0x3],_0x45f1a3,_0x26f03a]),_0x1a919a=_0x1a0614[_0x144207(0x2bf)](),_0x13b9b4=_0x1a0614[_0x144207(0x234)]&&(_0x1a919a==null?void 0x0:_0x1a919a[_0x144207(0x2e7)])===_0x18ef31[_0x144207(0x237)]?_0x1a919a[_0x144207(0x22a)]['multiply'](_0x4970b0):_0x4970b0;_0x9dc25[_0x144207(0x314)]({'width':_0x383b31,'height':_0x38f99d});let _0x3ed7fb=_0x9dc25[_0x144207(0x198)]();for(let _0x428104 of _0x3ed7fb){let _0x255868=_0x428104['x']-_0x383b31/0x2,_0x526979=_0x428104['y']-_0x38f99d/0x2,_0x2b38c9=_0x13b9b4[_0x144207(0x305)]({'x':_0x255868,'y':_0x526979}),_0xbb3c80=_0x2b38c9['x'],_0x5c1a00=_0x2b38c9['y'],_0xc70b5d=new or(_0x144207(0x309)+_0x3215fe+'-'+_0x428104[_0x144207(0x2d2)],{'left':_0xbb3c80-_0x2bea1d['cxnPointRadius'],'top':_0x5c1a00-_0x2bea1d['cxnPointRadius'],'targetShapeId':_0x3215fe,'cxnIndex':_0x428104[_0x144207(0x2d2)],'unitId':this[_0x144207(0x330)],'subUnitId':this[_0x144207(0x227)],'width':_0x2bea1d['cxnPointRadius']*0x2,'height':_0x2bea1d[_0x144207(0x1eb)]*0x2,'zIndex':_0x529f4c+0x2,'evented':!0x1});this[_0x144207(0x167)][_0x144207(0x214)](_0xc70b5d),this[_0x144207(0x14d)][_0x144207(0x1c7)](_0xc70b5d,_0x529f4c+0x2);}}[_0x49d8a2(0x32d)](_0x2d1b33){const _0xa9c6d1=_0x49d8a2;let _0x8f6036=null,_0x496ecc=0x1/0x0,_0x172d7d=null;for(let _0x4fa693 of this[_0xa9c6d1(0x167)]){let _0x2a7601=_0x4fa693[_0xa9c6d1(0x26f)]+_0x2bea1d['cxnPointRadius'],_0x5dd769=_0x4fa693[_0xa9c6d1(0x25d)]+_0x2bea1d[_0xa9c6d1(0x1eb)],_0x4cdf21=_0x2d1b33['x']-_0x2a7601,_0x539e84=_0x2d1b33['y']-_0x5dd769,_0xe3d2c8=Math[_0xa9c6d1(0x2da)](_0x4cdf21*_0x4cdf21+_0x539e84*_0x539e84);_0xe3d2c8<_0x496ecc&&(_0x496ecc=_0xe3d2c8,_0x8f6036=_0x4fa693,_0x172d7d={'x':_0x2a7601,'y':_0x5dd769});}let _0x39b69d=_0x496ecc<=0xa&&_0x8f6036?_0x8f6036[_0xa9c6d1(0x28e)]()[_0xa9c6d1(0x217)]:-0x1;if(_0x39b69d!==this[_0xa9c6d1(0x2aa)]){for(let _0x577fe1 of this[_0xa9c6d1(0x167)]){let _0x48950e=_0x577fe1[_0xa9c6d1(0x28e)]();_0x577fe1['setHighlighted'](_0x48950e[_0xa9c6d1(0x217)]===_0x39b69d);}this[_0xa9c6d1(0x2aa)]=_0x39b69d;}if(_0x496ecc<=0xa&&_0x8f6036&&_0x172d7d){let _0x11a42a=_0x8f6036[_0xa9c6d1(0x28e)](),_0x44a185=this['_getConnectionSiteAngle'](_0x11a42a[_0xa9c6d1(0x142)],_0x11a42a[_0xa9c6d1(0x217)]);return{'shapeId':_0x11a42a[_0xa9c6d1(0x142)],'cxnIndex':_0x11a42a['cxnIndex'],'unitId':_0x11a42a['unitId'],'subUnitId':_0x11a42a[_0xa9c6d1(0x2b4)],'worldPoint':_0x172d7d,'angle':_0x44a185};}return null;}[_0x49d8a2(0x321)](_0x5087b2,_0x354fbe){const _0x45ede7=_0x49d8a2;let _0x3a2a84=this['_sheetsShapeService'][_0x45ede7(0x296)](this[_0x45ede7(0x330)],this['_subUnitId'],_0x5087b2);if(!_0x3a2a84)return 0x0;let _0x12fb54=this[_0x45ede7(0x159)][_0x45ede7(0x26a)]({'unitId':this['_unitId'],'subUnitId':this[_0x45ede7(0x227)],'drawingId':_0x5087b2});if(!(_0x12fb54!=null&&_0x12fb54[_0x45ede7(0x166)]))return 0x0;let {width:_0x260dd4=0x0,height:_0x4824e7=0x0,flipX:_0x12b818=!0x1,flipY:_0x3e326c=!0x1}=_0x12fb54[_0x45ede7(0x166)];_0x3a2a84[_0x45ede7(0x314)]({'width':_0x260dd4,'height':_0x4824e7});let _0x48a215=_0x3a2a84[_0x45ede7(0x198)]()[_0x45ede7(0x138)](_0x504b5c=>_0x504b5c[_0x45ede7(0x2d2)]===_0x354fbe);if(!_0x48a215)return 0x0;let _0x2271c9=_0x48a215[_0x45ede7(0x2db)]/0xea60;return _0x12b818&&(_0x2271c9=0xb4-_0x2271c9),_0x3e326c&&(_0x2271c9=-_0x2271c9),_0x2271c9=(_0x2271c9%0x168+0x168)%0x168,_0x2271c9;}[_0x49d8a2(0x311)](){const _0x4ee84d=_0x49d8a2;for(let _0x4aac9d of this[_0x4ee84d(0x167)])_0x4aac9d[_0x4ee84d(0x2b0)]();this[_0x4ee84d(0x167)]=[],this[_0x4ee84d(0x2aa)]=-0x1;}[_0x49d8a2(0x2b0)](){const _0x360524=_0x49d8a2;this[_0x360524(0x311)](),super[_0x360524(0x2b0)]();}};sr=Y([J(0x1,_0x3465f0(_0x2565d9)),J(0x2,_0x3465f0(_0x5a9176)),J(0x3,_0x3465f0(_0x1a451a))],sr);let cr=class extends _0x1e0fa2{constructor(_0x3c362b,_0x561ba9,_0x37967a,_0xe41ab5,_0x400500){const _0x327251=_0x49d8a2;super(),this['_sheetSkeletonService']=_0x3c362b,this[_0x327251(0xf8)]=_0x561ba9,this[_0x327251(0x334)]=_0x37967a,this[_0x327251(0x2b6)]=_0xe41ab5,this['_groupCopyPasteController']=_0x400500,q(this,_0x327251(0x2d9),void 0x0),this[_0x327251(0x329)](),this['_registerGroupFeaturePasteHook']();}get[_0x49d8a2(0x2a9)](){const _0x3eee63=_0x49d8a2;return this[_0x3eee63(0x334)]['getFocusDrawings']();}[_0x49d8a2(0x19c)](){const _0x421f36=_0x49d8a2;this[_0x421f36(0x131)][_0x421f36(0x32b)](({fromUnitId:_0x26070b,fromSubUnitId:_0x2317aa,toUnitId:_0x52efd5,toSubUnitId:_0x4fd6a7,idMap:_0x5c1fd3})=>{const _0x35314a=_0x421f36;let _0x53f6fc=[],_0x4c91db=[];for(let [_0xcd7ff4,_0x522ddc]of _0x5c1fd3[_0x35314a(0x13c)]()){let _0x5198ce=this[_0x35314a(0x2b6)]['getShapeModel'](_0x26070b,_0x2317aa,_0xcd7ff4);if(!_0x5198ce)continue;let _0x484586=_0x5198ce[_0x35314a(0x285)](),_0x421c91=JSON[_0x35314a(0x230)](JSON['stringify'](_0x5198ce['getShapeData']()));if(_0x421c91[_0x35314a(0x2e6)]){var _0x4a1390,_0x1051fc;let _0x49d5bd=(_0x4a1390=_0x421c91[_0x35314a(0x2e6)][_0x35314a(0x2d3)])==null?void 0x0:_0x4a1390[_0x35314a(0x142)],_0x583d09=(_0x1051fc=_0x421c91[_0x35314a(0x2e6)]['to'])==null?void 0x0:_0x1051fc[_0x35314a(0x142)],_0x1c1892=_0x49d5bd?_0x5c1fd3[_0x35314a(0x215)](_0x49d5bd):!0x0,_0x300afb=_0x583d09?_0x5c1fd3[_0x35314a(0x215)](_0x583d09):!0x0;_0x1c1892&&_0x49d5bd&&_0x421c91['relation']['from']?_0x421c91['relation'][_0x35314a(0x2d3)]={..._0x421c91[_0x35314a(0x2e6)][_0x35314a(0x2d3)],'shapeId':_0x5c1fd3['get'](_0x49d5bd)}:_0x421c91['relation']['from']=void 0x0,_0x300afb&&_0x583d09&&_0x421c91[_0x35314a(0x2e6)]['to']?_0x421c91[_0x35314a(0x2e6)]['to']={..._0x421c91['relation']['to'],'shapeId':_0x5c1fd3[_0x35314a(0x1bc)](_0x583d09)}:_0x421c91[_0x35314a(0x2e6)]['to']=void 0x0;}_0x53f6fc[_0x35314a(0x214)]({'id':_0x47dbbc['id'],'params':{'unitId':_0x52efd5,'subUnitId':_0x4fd6a7,'shapeId':_0x522ddc,'shapeType':_0x484586,'shapeData':_0x421c91}}),_0x4c91db['push']({'id':_0x32e37c['id'],'params':{'unitId':_0x52efd5,'subUnitId':_0x4fd6a7,'shapeId':_0x522ddc}});}return{'redos':_0x53f6fc,'undos':_0x4c91db};});}[_0x49d8a2(0x329)](){const _0x419195=_0x49d8a2;this[_0x419195(0x16d)](this['_sheetClipboardService'][_0x419195(0x2b8)]({'id':_0x419195(0xee),'onBeforeCopy':(_0x9a602f,_0xd2d914,_0x2fc935,_0xe3cabe)=>{const _0x2ab492=_0x419195;this[_0x2ab492(0x2d9)]=null;let _0x112d41=this[_0x2ab492(0x2a9)];if(_0x112d41['length']){let _0x4beb3e=_0x112d41[_0x2ab492(0x1da)](_0xc45f5=>_0xc45f5[_0x2ab492(0x12e)]===_0x336997[_0x2ab492(0x181)]);if(_0x4beb3e[_0x2ab492(0x289)]===0x0)return;this['_copyInfo']={'unitId':_0x9a602f,'subUnitId':_0xd2d914,'copyType':_0xe3cabe,'drawings':_0x4beb3e};}else this[_0x2ab492(0x21e)](_0x9a602f,_0xd2d914,_0x2fc935,_0xe3cabe);},'onPasteCells':(_0x4d5306,_0x585f25,_0x51cb48,_0x43f2ec)=>{const _0x5e2bb5=_0x419195;if(!this[_0x5e2bb5(0x2d9)])return{'redos':[],'undos':[]};let {pasteType:_0xd4baaf}=_0x43f2ec;return _0xd4baaf===_0x951401[_0x5e2bb5(0x282)]?this[_0x5e2bb5(0x2bc)](_0x585f25,this[_0x5e2bb5(0x2d9)][_0x5e2bb5(0x2d0)]===_0x4538e3[_0x5e2bb5(0x335)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0xfd5b62=>this['_copyInfo']?this[_0x419195(0x2bc)](_0xfd5b62,this[_0x419195(0x2d9)][_0x419195(0x2d0)]===_0x4538e3[_0x419195(0x335)]):{'redos':[],'undos':[]}}));}[_0x49d8a2(0x21e)](_0x2ac6ab,_0x45a2f9,_0x396806,_0x14e9cf){const _0x5b4064=_0x49d8a2;let _0x2c22e1=this[_0x5b4064(0xf2)]['getSkeleton'](_0x2ac6ab,_0x45a2f9);if(!_0x2c22e1)return;let _0x26b694=_0x37168f(_0x2c22e1,_0x396806);if(!_0x26b694)return;let {startX:_0x5b07e3,endX:_0x294e4b,startY:_0x3182b4,endY:_0xe7f2e9}=_0x26b694,_0x36272e=this[_0x5b4064(0x334)][_0x5b4064(0x233)](_0x2ac6ab,_0x45a2f9),_0x24f70f=this[_0x5b4064(0x2a9)]['slice']();for(let [_0x13731f,_0x579171]of Object[_0x5b4064(0x13c)](_0x36272e)){if(_0x579171[_0x5b4064(0x12e)]!==_0x336997['DRAWING_SHAPE'])continue;let {transform:_0x275598}=_0x579171;if(!_0x275598)continue;let {left:_0x50175d=0x0,top:_0x28eb13=0x0,width:_0x1f3457=0x0,height:_0x50e56e=0x0}=_0x275598;_0x5b07e3<=_0x50175d&&_0x294e4b>=_0x50175d+_0x1f3457&&_0x3182b4<=_0x28eb13&&_0xe7f2e9>=_0x28eb13+_0x50e56e&&_0x24f70f['push'](_0x579171);}_0x24f70f[_0x5b4064(0x289)]>0x0&&(this['_copyInfo']={'unitId':_0x2ac6ab,'subUnitId':_0x45a2f9,'copyType':_0x14e9cf,'copyRange':_0x396806,'drawings':_0x24f70f});}[_0x49d8a2(0x2bc)](_0xb9657d,_0x3dc20e){const _0x3eec43=_0x49d8a2;let {unitId:_0x3663e8,subUnitId:_0x406901,range:_0xda15ec}=_0xb9657d,_0x4d42d1=this[_0x3eec43(0xf2)][_0x3eec43(0x1a4)](_0x3663e8,_0x406901);if(!_0x4d42d1)return{'redos':[],'undos':[]};let _0x103fdd=_0x44b7b4(_0xda15ec),{unitId:_0x5db41c,subUnitId:_0x50fca2,copyRange:_0x2301cc,drawings:_0x40afd2}=this['_copyInfo'],_0x47cff1=this[_0x3eec43(0xf2)][_0x3eec43(0x1a4)](_0x5db41c,_0x50fca2);if(!_0x47cff1)return{'redos':[],'undos':[]};let _0x5eb93f;if(!_0x2301cc){let _0x1c4619=0x1/0x0,_0xf54a7f=0x1/0x0;for(let _0x5168d4 of _0x40afd2){var _0x23eedb;let {left:_0xd41d74=0x0,top:_0x2c3537=0x0}=(_0x23eedb=_0x5168d4[_0x3eec43(0x166)])==null?{}:_0x23eedb;_0xd41d74<_0x1c4619&&(_0x1c4619=_0xd41d74),_0x2c3537<_0xf54a7f&&(_0xf54a7f=_0x2c3537);}_0x1c4619!==0x1/0x0&&_0xf54a7f!==0x1/0x0&&(_0x5eb93f={'left':_0x1c4619,'top':_0xf54a7f});}let _0x1cbf24=new Map();if(!_0x3dc20e){for(let _0x5642bc of _0x40afd2)_0x1cbf24[_0x3eec43(0x20a)](_0x5642bc[_0x3eec43(0x20e)],_0x3893c7());}let _0x13a7ad=[],_0x75cf73=[];for(let _0x6e064d of _0x40afd2){let {drawingId:_0x1e9b60,transform:_0x43004e,sheetTransform:_0x42ce91}=_0x6e064d;if(!_0x43004e||!_0x42ce91)continue;let _0x55da36=this[_0x3eec43(0x179)]({'transform':_0x43004e,'sheetTransform':_0x42ce91},{'skeleton':_0x47cff1,'range':_0x2301cc},{'skeleton':_0x4d42d1,'range':_0x103fdd},_0x5eb93f);if(_0x3dc20e){let {redos:_0x1b434b,undos:_0xb9f57c}=this[_0x3eec43(0x188)]({'fromUnitId':_0x5db41c,'fromSubUnitId':_0x50fca2,'toUnitId':_0x3663e8,'toSubUnitId':_0x406901,'drawing':_0x6e064d,'newTransforms':_0x55da36});_0x13a7ad['push'](..._0x1b434b),_0x75cf73[_0x3eec43(0x214)](..._0xb9f57c);continue;}let {redos:_0x1b20aa,undos:_0x1cbdac}=this[_0x3eec43(0x1f4)]({'toUnitId':_0x3663e8,'toSubUnitId':_0x406901,'drawing':_0x6e064d,'newTransforms':_0x55da36,'newDrawingId':_0x1cbf24[_0x3eec43(0x1bc)](_0x1e9b60),'idMap':_0x1cbf24});_0x13a7ad[_0x3eec43(0x214)](..._0x1b20aa),_0x75cf73[_0x3eec43(0x214)](..._0x1cbdac);}return{'redos':_0x13a7ad,'undos':_0x75cf73};}['_generateCutPasteMutations'](_0x538e2d){const _0x4ad12e=_0x49d8a2;let {fromUnitId:_0x2af024,fromSubUnitId:_0x4e4d0b,toUnitId:_0x30addc,toSubUnitId:_0x5d6221,drawing:_0x3159b9,newTransforms:_0x25d993}=_0x538e2d,_0x1579c8={..._0x3159b9,'unitId':_0x30addc,'subUnitId':_0x5d6221,'transform':_0x25d993[_0x4ad12e(0x166)],'sheetTransform':_0x25d993[_0x4ad12e(0x265)]};if(_0x30addc===_0x2af024&&_0x5d6221===_0x4e4d0b){let {redo:_0x328393,undo:_0x1dfdab,objects:_0x580970}=this['_sheetDrawingService']['getBatchUpdateOp']([_0x1579c8]);return{'redos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'type':_0x20e0af[_0x4ad12e(0x210)],'op':_0x328393,'objects':_0x580970}}],'undos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'type':_0x20e0af['UPDATE'],'op':_0x1dfdab,'objects':_0x580970}}]};}else{let _0x4476af=this[_0x4ad12e(0x334)][_0x4ad12e(0x1a9)]([_0x3159b9]),_0x4d8b1c=this['_sheetDrawingService'][_0x4ad12e(0x20b)]([_0x1579c8]),_0x32425a=this[_0x4ad12e(0x2b6)][_0x4ad12e(0x296)](_0x3159b9[_0x4ad12e(0x1b7)],_0x3159b9[_0x4ad12e(0x2b4)],_0x3159b9[_0x4ad12e(0x20e)]);if(!_0x32425a)return{'redos':[],'undos':[]};let _0x5c210d=_0x32425a[_0x4ad12e(0x285)](),_0x3885a6=JSON[_0x4ad12e(0x230)](JSON['stringify'](_0x32425a[_0x4ad12e(0x205)]()));return{'redos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0x2af024,'subUnitId':_0x4e4d0b,'type':_0x20e0af['REMOVE'],'op':_0x4476af[_0x4ad12e(0x30c)],'objects':_0x4476af['objects']}},{'id':_0x32e37c['id'],'params':{'unitId':_0x2af024,'subUnitId':_0x4e4d0b,'shapeId':_0x3159b9['drawingId']}},{'id':_0x2fbd15['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'type':_0x20e0af['INSERT'],'op':_0x4d8b1c[_0x4ad12e(0x30c)],'objects':_0x4d8b1c[_0x4ad12e(0x295)]}},{'id':_0x47dbbc['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'shapeId':_0x3159b9[_0x4ad12e(0x20e)],'shapeType':_0x5c210d,'shapeData':_0x3885a6}}],'undos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0x2af024,'subUnitId':_0x4e4d0b,'type':_0x20e0af[_0x4ad12e(0x337)],'op':_0x4476af[_0x4ad12e(0x1f3)],'objects':_0x4476af[_0x4ad12e(0x295)]}},{'id':_0x47dbbc['id'],'params':{'unitId':_0x2af024,'subUnitId':_0x4e4d0b,'shapeId':_0x3159b9[_0x4ad12e(0x20e)],'shapeType':_0x5c210d,'shapeData':_0x3885a6}},{'id':_0x2fbd15['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'type':_0x20e0af['REMOVE'],'op':_0x4d8b1c[_0x4ad12e(0x1f3)],'objects':_0x4d8b1c[_0x4ad12e(0x295)]}},{'id':_0x32e37c['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'shapeId':_0x3159b9[_0x4ad12e(0x20e)]}}]};}}[_0x49d8a2(0x1f4)](_0x10ed6c){const _0x2d34ef=_0x49d8a2;let {toUnitId:_0xb2185a,toSubUnitId:_0x1cd72a,drawing:_0x350ec5,newTransforms:_0x3af7ae,newDrawingId:_0x582077,idMap:_0x34235c}=_0x10ed6c,_0x57d848={..._0x350ec5,'unitId':_0xb2185a,'subUnitId':_0x1cd72a,'drawingId':_0x582077,'transform':_0x3af7ae[_0x2d34ef(0x166)],'sheetTransform':_0x3af7ae[_0x2d34ef(0x265)]},{redo:_0x355e64,undo:_0x54b62b,objects:_0x4ade7d}=this['_sheetDrawingService']['getBatchAddOp']([_0x57d848]),_0x12dd9a=this[_0x2d34ef(0x2b6)]['getShapeModel'](_0x350ec5[_0x2d34ef(0x1b7)],_0x350ec5[_0x2d34ef(0x2b4)],_0x350ec5[_0x2d34ef(0x20e)]);if(!_0x12dd9a)return{'redos':[],'undos':[]};let _0x45dc8d=_0x12dd9a[_0x2d34ef(0x285)](),_0x4a6ef9=JSON[_0x2d34ef(0x230)](JSON[_0x2d34ef(0x266)](_0x12dd9a['getShapeData']()));if(_0x4a6ef9[_0x2d34ef(0x2e6)]){var _0x2cc814,_0x11718a;let _0x2c5789=(_0x2cc814=_0x4a6ef9[_0x2d34ef(0x2e6)][_0x2d34ef(0x2d3)])==null?void 0x0:_0x2cc814[_0x2d34ef(0x142)],_0x460045=(_0x11718a=_0x4a6ef9[_0x2d34ef(0x2e6)]['to'])==null?void 0x0:_0x11718a[_0x2d34ef(0x142)],_0x3c1bb1=_0x2c5789?_0x34235c['has'](_0x2c5789):!0x0,_0xbe89f6=_0x460045?_0x34235c[_0x2d34ef(0x215)](_0x460045):!0x0;_0x3c1bb1&&_0x2c5789&&_0x4a6ef9['relation'][_0x2d34ef(0x2d3)]?_0x4a6ef9[_0x2d34ef(0x2e6)]['from']={..._0x4a6ef9[_0x2d34ef(0x2e6)][_0x2d34ef(0x2d3)],'shapeId':_0x34235c[_0x2d34ef(0x1bc)](_0x2c5789)}:_0x4a6ef9['relation'][_0x2d34ef(0x2d3)]=void 0x0,_0xbe89f6&&_0x460045&&_0x4a6ef9[_0x2d34ef(0x2e6)]['to']?_0x4a6ef9['relation']['to']={..._0x4a6ef9[_0x2d34ef(0x2e6)]['to'],'shapeId':_0x34235c[_0x2d34ef(0x1bc)](_0x460045)}:_0x4a6ef9['relation']['to']=void 0x0;}return{'redos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0xb2185a,'subUnitId':_0x1cd72a,'type':_0x20e0af['INSERT'],'op':_0x355e64,'objects':_0x4ade7d}},{'id':_0x47dbbc['id'],'params':{'unitId':_0xb2185a,'subUnitId':_0x1cd72a,'shapeId':_0x582077,'shapeType':_0x45dc8d,'shapeData':_0x4a6ef9}}],'undos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0xb2185a,'subUnitId':_0x1cd72a,'type':_0x20e0af[_0x2d34ef(0xfb)],'op':_0x54b62b,'objects':_0x4ade7d}},{'id':_0x32e37c['id'],'params':{'unitId':_0xb2185a,'subUnitId':_0x1cd72a,'shapeId':_0x582077}}]};}[_0x49d8a2(0x179)](_0x2bb2d7,_0x208dfb,_0x2338d2,_0x4a17ab){const _0x39e7c8=_0x49d8a2;var _0x28b437;let {range:_0x2da639,skeleton:_0x20d5e4}=_0x208dfb,{range:_0x502703,skeleton:_0x1f3586}=_0x2338d2,{transform:_0x1dd080,sheetTransform:_0x1db4bc}=_0x2bb2d7,_0x3c2515={..._0x1dd080};if(_0x2da639){let _0x1dbd71=_0x37168f(_0x20d5e4,_0x2da639),_0x3e0c8b=_0x37168f(_0x1f3586,_0x502703);if(_0x1dbd71&&_0x3e0c8b){var _0x346078,_0x4d93d4;let _0x702c8c=_0x3e0c8b['startX']-_0x1dbd71[_0x39e7c8(0x1f5)],_0x48e629=_0x3e0c8b['startY']-_0x1dbd71[_0x39e7c8(0x331)];_0x3c2515[_0x39e7c8(0x26f)]=((_0x346078=_0x3c2515[_0x39e7c8(0x26f)])==null?0x0:_0x346078)+_0x702c8c,_0x3c2515[_0x39e7c8(0x25d)]=((_0x4d93d4=_0x3c2515[_0x39e7c8(0x25d)])==null?0x0:_0x4d93d4)+_0x48e629;}}else{let _0x106544=_0x37168f(_0x1f3586,_0x502703);if(_0x4a17ab&&_0x106544){var _0xe76567,_0x34cc2b;let _0x118689=((_0xe76567=_0x3c2515[_0x39e7c8(0x26f)])==null?0x0:_0xe76567)-_0x4a17ab[_0x39e7c8(0x26f)],_0x2f9c73=((_0x34cc2b=_0x3c2515[_0x39e7c8(0x25d)])==null?0x0:_0x34cc2b)-_0x4a17ab['top'];_0x3c2515[_0x39e7c8(0x26f)]=_0x106544[_0x39e7c8(0x1f5)]+_0x118689,_0x3c2515[_0x39e7c8(0x25d)]=_0x106544['startY']+_0x2f9c73;}else _0x3c2515['left']=_0x106544==null?void 0x0:_0x106544[_0x39e7c8(0x1f5)],_0x3c2515[_0x39e7c8(0x25d)]=_0x106544==null?void 0x0:_0x106544[_0x39e7c8(0x331)];}return{'transform':_0x3c2515,'sheetTransform':(_0x28b437=_0x4ee577(_0x3c2515,_0x1f3586))==null?_0x1db4bc:_0x28b437};}};cr=Y([J(0x0,_0x3465f0(_0x834a52)),J(0x1,_0x3465f0(_0x4d0a59)),J(0x2,_0x3465f0(_0xc538a1)),J(0x3,_0x3465f0(_0x1a451a)),J(0x4,_0x3465f0(_0x407497))],cr);var lr=class extends _0x176254{constructor(_0x16fceb,_0x1e077b){const _0x5bb3a9=_0x49d8a2;super(_0x16fceb,_0x1e077b),q(this,_0x5bb3a9(0x1d0),null),q(this,_0x5bb3a9(0x2c3),null),q(this,_0x5bb3a9(0x330),null),q(this,_0x5bb3a9(0x227),null),q(this,_0x5bb3a9(0x16b),!0x1),_0x1e077b&&this['setShapeProps'](_0x1e077b);}['getDrawingSearch'](){const _0x50dc02=_0x49d8a2;return{'unitId':this[_0x50dc02(0x330)],'subUnitId':this[_0x50dc02(0x227)],'drawingId':this[_0x50dc02(0x1d0)]};}[_0x49d8a2(0x25e)](_0x273494){const _0x219220=_0x49d8a2;_0x273494[_0x219220(0x142)]!==void 0x0&&(this[_0x219220(0x1d0)]=_0x273494['shapeId']),_0x273494[_0x219220(0x1b7)]!==void 0x0&&(this[_0x219220(0x330)]=_0x273494['unitId']),_0x273494[_0x219220(0x2b4)]!==void 0x0&&(this[_0x219220(0x227)]=_0x273494[_0x219220(0x2b4)]),_0x273494[_0x219220(0x247)]!==void 0x0&&(this['_isStartConnectorPoint']=_0x273494[_0x219220(0x247)]),this['transformByState']({'width':_0x273494[_0x219220(0x2b9)],'height':_0x273494[_0x219220(0x232)]});}[_0x49d8a2(0x15e)](_0x4a95a4){const _0x212cc8=_0x49d8a2;_0x1578ae['drawWith'](_0x4a95a4,{'radius':_0x2bea1d[_0x212cc8(0x1eb)],'fill':_0x2bea1d[_0x212cc8(0x222)],'stroke':_0x2bea1d[_0x212cc8(0x109)],'strokeWidth':_0x2bea1d['cxnPointStrokeWidth'],'evented':!0x0});}};let ur=class extends _0x1e0fa2{constructor(_0x1d334a,_0x2f10ca,_0x4ed22d,_0x463b63,_0x5ba0a1,_0x16924e,_0x5d5b1a,_0x26c83a){const _0x6a3796=_0x49d8a2;super(),this[_0x6a3796(0x12a)]=_0x1d334a,this['_commandService']=_0x2f10ca,this[_0x6a3796(0x107)]=_0x4ed22d,this['_drawingManagerService']=_0x463b63,this['_univerInstanceService']=_0x5ba0a1,this[_0x6a3796(0x220)]=_0x16924e,this[_0x6a3796(0x26e)]=_0x5d5b1a,this[_0x6a3796(0x17d)]=_0x26c83a,q(this,_0x6a3796(0x288),void 0x0),q(this,_0x6a3796(0x330),void 0x0),q(this,'_subUnitId',void 0x0),q(this,_0x6a3796(0x272),[]),q(this,_0x6a3796(0x1f8),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x6a3796(0x1db),void 0x0),q(this,'_isConnecting',!0x1),q(this,_0x6a3796(0x27c),!0x1),q(this,_0x6a3796(0xdc),!0x1),q(this,_0x6a3796(0x22b),void 0x0),q(this,_0x6a3796(0x101),void 0x0),q(this,_0x6a3796(0xf0),null),this[_0x6a3796(0x2f6)]();}[_0x49d8a2(0x2f6)](){const _0x3ce769=_0x49d8a2;this[_0x3ce769(0x2d1)](),this[_0x3ce769(0x246)]();}[_0x49d8a2(0x1ed)](){const _0x1d131d=_0x49d8a2;if(!this[_0x1d131d(0x330)]||!this[_0x1d131d(0x227)]||!this[_0x1d131d(0x288)])return;let _0x35f0c8={'unitId':this[_0x1d131d(0x330)],'subUnitId':this[_0x1d131d(0x227)],'drawingId':this[_0x1d131d(0x288)]},{transform:_0x3837d8}=this[_0x1d131d(0x159)][_0x1d131d(0x26a)](_0x35f0c8);if(_0x3837d8)return{'left':_0x3837d8[_0x1d131d(0x26f)]||0x0,'top':_0x3837d8['top']||0x0,'width':_0x3837d8[_0x1d131d(0x2b9)]||0x0,'height':_0x3837d8[_0x1d131d(0x232)]||0x0,'flipX':_0x3837d8['flipX']||!0x1,'flipY':_0x3837d8['flipY']||!0x1,'angle':_0x3837d8[_0x1d131d(0x1fa)]};}['_addShapeConnectorHandlerObjects'](){const _0x4af483=_0x49d8a2;if(this[_0x4af483(0x330)]===void 0x0||this[_0x4af483(0x227)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x4fe720=this[_0x4af483(0x107)][_0x4af483(0x2c4)](this[_0x4af483(0x330)]);if(!_0x4fe720||!_0x4fe720['with'](_0x4b5a3f)['getCurrentSkeleton']())return;let {scene:_0x53ee95}=_0x4fe720,_0x187f45=this[_0x4af483(0x1ed)]();if(!_0x187f45)return;let _0x22aa5f=this[_0x4af483(0x220)]['getShapeModel'](this['_unitId'],this[_0x4af483(0x227)],this[_0x4af483(0x288)]);if(!_0x22aa5f||!_0x5d2a5e(_0x22aa5f[_0x4af483(0x285)]()))return;let _0x4719a3=_0x22aa5f['getConnectorLinePoints']();if(_0x4719a3[_0x4af483(0x289)]<0x2)return;let _0x119741=new _0x20c995(_0x187f45),_0x55a5cd=_0x4719a3[0x0],_0xb75ac2=_0x4719a3[_0x4719a3['length']-0x1],_0x45d7ff=_0x119741[_0x4af483(0x123)](_0x55a5cd),_0x140a2a=_0x119741[_0x4af483(0x123)](_0xb75ac2);this[_0x4af483(0x24d)](_0x53ee95,{..._0x45d7ff},!0x0),this[_0x4af483(0x24d)](_0x53ee95,{..._0x140a2a},!0x1);}[_0x49d8a2(0x24d)](_0x13cabc,_0x33e3e5,_0x1c073c){const _0x4887fd=_0x49d8a2;if(this[_0x4887fd(0x288)]===void 0x0||this['_unitId']===void 0x0||this[_0x4887fd(0x227)]===void 0x0)return;let _0xa53536=_0x4887fd(0x28b)+this[_0x4887fd(0x330)]+'-'+this[_0x4887fd(0x227)]+'-'+this[_0x4887fd(0x288)]+'-'+(_0x1c073c?_0x4887fd(0x137):_0x4887fd(0x31f)),_0x207e1f=_0x13cabc['getObjectIncludeInGroup'](_0xa53536);if(_0x207e1f){_0x207e1f[_0x4887fd(0x112)]({'left':_0x33e3e5['x']-_0x2bea1d[_0x4887fd(0x1eb)],'top':_0x33e3e5['y']-_0x2bea1d[_0x4887fd(0x1eb)]});return;}let _0x21d4eb=new lr(_0xa53536,{'left':_0x33e3e5['x']-_0x2bea1d['cxnPointRadius'],'top':_0x33e3e5['y']-_0x2bea1d[_0x4887fd(0x1eb)],'shapeId':this[_0x4887fd(0x288)],'unitId':this[_0x4887fd(0x330)],'subUnitId':this[_0x4887fd(0x227)],'isStartConnectorPoint':_0x1c073c,'width':_0x2bea1d['cxnPointRadius']*0x2,'height':_0x2bea1d[_0x4887fd(0x1eb)]*0x2,'zIndex':_0x529f4c+0x1,'evented':!0x0});this['_connectorObjects'][_0x4887fd(0x214)](_0x21d4eb),this[_0x4887fd(0x129)](_0x21d4eb,_0x13cabc,_0x1c073c),_0x13cabc[_0x4887fd(0x1c7)](_0x21d4eb,_0x529f4c+0x1);}[_0x49d8a2(0x30e)](_0x3f8082,_0x4a43e1){const _0x54bc76=_0x49d8a2;var _0x3f252f;let _0x9d0b38={'x':0x0,'y':0x0};if(!_0x3f8082||!_0x4a43e1)return _0x9d0b38;let _0x3465c6=this[_0x54bc76(0x107)][_0x54bc76(0x2c4)](_0x3f8082);if(!_0x3465c6||!_0x3465c6[_0x54bc76(0xf5)](_0x4b5a3f)['getSkeleton'](_0x4a43e1))return _0x9d0b38;let _0x29dcb4=_0x3465c6[_0x54bc76(0xf5)](_0x5480ae),_0x4f14bb=_0x29dcb4==null?void 0x0:_0x29dcb4['getCurrentScrollState']();if(!_0x4f14bb)return _0x9d0b38;let _0x5f3d=(_0x3f252f=this[_0x54bc76(0x1b8)]['getUnit'](_0x3f8082))==null?void 0x0:_0x3f252f[_0x54bc76(0x169)](_0x4a43e1);if(!_0x5f3d)return _0x9d0b38;let _0x1555a1=_0x356c4d(_0x4f14bb[_0x54bc76(0x206)],_0x4f14bb['sheetViewStartColumn'],_0x3465c6['scene'],_0x5f3d);return _0x1555a1?{'x':_0x1555a1[_0x54bc76(0x33d)],'y':_0x1555a1[_0x54bc76(0x25f)]}:_0x9d0b38;}[_0x49d8a2(0x224)](_0x2d2be7,_0x1efc7c){const _0x14568a=_0x49d8a2;var _0x10ec49,_0x4f22f9;let _0x443129=(_0x10ec49=this[_0x14568a(0x1b8)][_0x14568a(0x12f)](_0x2d2be7))==null?void 0x0:_0x10ec49[_0x14568a(0x169)](_0x1efc7c);return(_0x4f22f9=_0x443129==null?void 0x0:_0x443129[_0x14568a(0x221)]())==null?0x1:_0x4f22f9;}[_0x49d8a2(0x197)](_0x13e79e,_0xc195bd,_0x4da696,_0x395ed0,_0x19e3f2){const _0x216c1e=_0x49d8a2;this[_0x216c1e(0x22b)][_0x216c1e(0x2e3)](),this[_0x216c1e(0x101)][_0x216c1e(0x2e3)](),this['_sheetShapeAdjustController']['refreshAdjustControls']();let _0x110b99=this['_currentConnectionTarget'];this[_0x216c1e(0x17d)][_0x216c1e(0x254)]();let _0x5382e1=this[_0x216c1e(0x30e)](this[_0x216c1e(0x330)],this[_0x216c1e(0x227)]),_0x430ee4=this[_0x216c1e(0x224)](this[_0x216c1e(0x330)],this[_0x216c1e(0x227)]),_0x2008d5={'x':_0x4da696[_0x216c1e(0x30d)]/_0x430ee4+_0x5382e1['x'],'y':_0x4da696[_0x216c1e(0x18e)]/_0x430ee4+_0x5382e1['y']},_0x423c2c=_0x110b99?_0x110b99[_0x216c1e(0x1c4)]:_0x2008d5,_0x135f0d=_0x395ed0?this[_0x216c1e(0x1db)][_0x216c1e(0x223)]():this['_activeShapeModel'][_0x216c1e(0x1d9)](),_0x5dd056=this[_0x216c1e(0x1db)]['getShapeType']();_0x135f0d?this[_0x216c1e(0x29f)](_0x135f0d,_0x423c2c,_0x395ed0,_0x110b99,_0x19e3f2):this['_handleFreeEndpointPointerUp'](_0xc195bd,_0x423c2c,_0x395ed0,_0x110b99,_0x19e3f2,_0x5dd056),this[_0x216c1e(0x1d2)]=!0x1,this[_0x216c1e(0xdc)]=!0x1,this[_0x216c1e(0xf0)]=null,_0x13e79e[_0x216c1e(0x24a)]();}[_0x49d8a2(0x2fe)](_0x1b433f,_0x5d2dab,_0x99a8ac,_0x257c9f,_0x1d75e7,_0x22495d){const _0x2d6faf=_0x49d8a2;let _0x5c3244=_0x22495d===_0x1ca39f[_0x2d6faf(0x23c)]||_0x22495d===_0x1ca39f['StraightConnector1'],_0x62b818=_0x99a8ac?_0x5d2dab:_0x1b433f,_0x4d7aa6=_0x99a8ac?_0x1b433f:_0x5d2dab,_0x10c74d=this[_0x2d6faf(0x1db)][_0x2d6faf(0x2de)](),_0x237f31=_0x41cad6(this[_0x2d6faf(0x1db)][_0x2d6faf(0x285)]()),_0x6856d0=_0x20c995[_0x2d6faf(0x22f)](_0x10c74d,_0x237f31),_0xc5d135=_0x5c3244?_0x20c995[_0x2d6faf(0x12c)](_0x62b818,_0x4d7aa6):_0x20c995['computeConnectorResizeLayout'](_0x1b433f,_0x5d2dab,_0x99a8ac,_0x6856d0);_0x257c9f?this[_0x2d6faf(0x115)](_0xc5d135,_0x257c9f,_0x99a8ac,_0x1d75e7):this[_0x2d6faf(0x1d5)](_0xc5d135,_0x1d75e7);}['_handleConnectedEndpointPointerUp'](_0x165b34,_0x3c51f0,_0x58706e,_0x3573a0,_0x423790){const _0x2e8b6a=_0x49d8a2;let _0x3b3fdc=this[_0x2e8b6a(0x1b9)](_0x165b34);if(!_0x3b3fdc)return;let _0x20847a=_0x3573a0?_0x3573a0[_0x2e8b6a(0x1fa)]:this[_0x2e8b6a(0x25c)](_0x3b3fdc[_0x2e8b6a(0x22c)],_0x3c51f0),_0x262f6c;if(_0x3573a0){let _0x145cd8=this[_0x2e8b6a(0x159)]['getDrawingByParam']({'unitId':_0x3573a0[_0x2e8b6a(0x1b7)],'subUnitId':_0x3573a0[_0x2e8b6a(0x2b4)],'drawingId':_0x3573a0[_0x2e8b6a(0x142)]});if(_0x145cd8!=null&&_0x145cd8[_0x2e8b6a(0x166)]){let {left:_0x179ee6=0x0,top:_0x3a21f8=0x0,width:_0x3f8482=0x0,height:_0x23abc4=0x0,angle:_0x2ff946}=_0x145cd8[_0x2e8b6a(0x166)];_0x262f6c=_0x4d4669({'left':_0x179ee6,'top':_0x3a21f8,'width':_0x3f8482,'height':_0x23abc4},_0x2ff946||0x0);}else _0x262f6c={'left':_0x3c51f0['x'],'top':_0x3c51f0['y'],'width':0x0,'height':0x0};}else _0x262f6c={'left':_0x3c51f0['x'],'top':_0x3c51f0['y'],'width':0x0,'height':0x0};let _0x1294ac={'point':_0x3c51f0,'angle':_0x20847a,'bounds':_0x262f6c},_0x47740c=_0x58706e?_0x1294ac:_0x3b3fdc,_0x525323=_0x58706e?_0x3b3fdc:_0x1294ac,_0x411521=this[_0x2e8b6a(0x1db)]['getShapeType'](),_0x7ca124=_0x449797(_0x47740c,_0x525323,_0x411521);this[_0x2e8b6a(0x1db)][_0x2e8b6a(0x249)]();let _0x1b2606=_0x59ea91(_0x7ca124,_0x411521);_0x3573a0?this[_0x2e8b6a(0x2ea)](_0x1b2606,_0x3573a0,_0x165b34,_0x58706e,_0x423790):this[_0x2e8b6a(0x318)](_0x1b2606,_0x165b34,_0x58706e,_0x423790);}[_0x49d8a2(0x115)](_0x528b85,_0x308519,_0x5cd55e,_0x471b4c){const _0x1e87a2=_0x49d8a2;let _0x4110fd=this[_0x1e87a2(0x1db)][_0x1e87a2(0x205)]()['relation'],_0x5d0df7={..._0x4110fd},_0x34634d={'shapeId':_0x308519['shapeId'],'cxnIndex':_0x308519['cxnIndex']};_0x5cd55e?_0x5d0df7[_0x1e87a2(0x2d3)]=_0x34634d:_0x5d0df7['to']=_0x34634d;let _0x2c57bb=this[_0x1e87a2(0x1db)]['getShapeType'](),_0x19fca4=_0x59ea91(_0x528b85[_0x1e87a2(0x130)],_0x2c57bb),_0x3a6fbf={'unitId':this[_0x1e87a2(0x330)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x1e87a2(0x288)],'width':_0x528b85[_0x1e87a2(0x238)][_0x1e87a2(0x2b9)],'height':_0x528b85[_0x1e87a2(0x238)][_0x1e87a2(0x232)],'left':_0x528b85[_0x1e87a2(0x238)][_0x1e87a2(0x26f)],'top':_0x528b85[_0x1e87a2(0x238)][_0x1e87a2(0x25d)],'flipX':_0x528b85[_0x1e87a2(0x238)][_0x1e87a2(0x31c)]||!0x1,'flipY':_0x528b85['worldRect']['flipY']||!0x1,'newAdjustValues':_0x19fca4['adjustValues'],'oldAdjustValues':_0x471b4c,'oldRelation':_0x4110fd,'newRelation':_0x5d0df7,'newLineType':_0x19fca4[_0x1e87a2(0x22e)],'oldLineType':_0x2c57bb};this['_commandService'][_0x1e87a2(0x2c5)](_0x1c01fb['id'],_0x3a6fbf);}['_executeResizeCommand'](_0x144d6b,_0x1b95ab){const _0x1815a6=_0x49d8a2;let _0x49d40a=this[_0x1815a6(0x1db)][_0x1815a6(0x285)](),_0xda55b5=_0x59ea91(_0x144d6b['worldPoints'],_0x49d40a),_0x1730f7={'unitId':this[_0x1815a6(0x330)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x1815a6(0x288)],'width':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x2b9)],'height':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x232)],'left':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x26f)],'top':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x25d)],'flipX':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x31c)]||!0x1,'flipY':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x132)]||!0x1,'angle':_0x144d6b['worldRect'][_0x1815a6(0x1fa)]||0x0,'newAdjustValues':_0xda55b5[_0x1815a6(0x114)],'oldAdjustValues':_0x1b95ab,'newLineType':_0xda55b5[_0x1815a6(0x22e)],'oldLineType':_0x49d40a};this['_commandService']['executeCommand'](_0x3b0863['id'],_0x1730f7);}[_0x49d8a2(0x2ea)](_0x11135d,_0xbd6a8e,_0x1a8754,_0x396801,_0x31024d){const _0x878b2=_0x49d8a2;let _0x286e21=this[_0x878b2(0x1db)][_0x878b2(0x205)]()['relation'],_0x1ae491={..._0x286e21},_0x164ca1={'shapeId':_0xbd6a8e[_0x878b2(0x142)],'cxnIndex':_0xbd6a8e[_0x878b2(0x217)]};_0x396801?(_0x1ae491['from']=_0x164ca1,_0x1ae491['to']=_0x1a8754):(_0x1ae491['from']=_0x1a8754,_0x1ae491['to']=_0x164ca1);let _0x42f758={'unitId':this[_0x878b2(0x330)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x878b2(0x288)],'width':_0x11135d[_0x878b2(0x238)][_0x878b2(0x2b9)],'height':_0x11135d[_0x878b2(0x238)]['height'],'left':_0x11135d[_0x878b2(0x238)][_0x878b2(0x26f)],'top':_0x11135d[_0x878b2(0x238)]['top'],'flipX':_0x11135d['worldRect'][_0x878b2(0x31c)]||!0x1,'flipY':_0x11135d['worldRect']['flipY']||!0x1,'oldAdjustValues':_0x31024d,'newAdjustValues':_0x11135d[_0x878b2(0x114)],'newLineType':_0x11135d[_0x878b2(0x22e)],'rotation':_0x11135d[_0x878b2(0x184)],'oldRelation':_0x286e21,'newRelation':_0x1ae491};this[_0x878b2(0x2af)][_0x878b2(0x2c5)](_0x1c01fb['id'],_0x42f758);}[_0x49d8a2(0x318)](_0x272335,_0x180284,_0x5d1191,_0x258a45){const _0x1decfc=_0x49d8a2;let _0x1d7a4a=this[_0x1decfc(0x1db)]['getShapeData']()[_0x1decfc(0x2e6)],_0x66d17={};_0x5d1191?(_0x66d17['to']=_0x180284,_0x66d17[_0x1decfc(0x2d3)]=void 0x0):(_0x66d17[_0x1decfc(0x2d3)]=_0x180284,_0x66d17['to']=void 0x0);let _0x3fb0f2={'unitId':this[_0x1decfc(0x330)],'subUnitId':this[_0x1decfc(0x227)],'connectorShapeId':this[_0x1decfc(0x288)],'width':_0x272335[_0x1decfc(0x238)][_0x1decfc(0x2b9)],'height':_0x272335[_0x1decfc(0x238)][_0x1decfc(0x232)],'left':_0x272335[_0x1decfc(0x238)][_0x1decfc(0x26f)],'top':_0x272335[_0x1decfc(0x238)][_0x1decfc(0x25d)],'flipX':_0x272335[_0x1decfc(0x238)][_0x1decfc(0x31c)]||!0x1,'flipY':_0x272335[_0x1decfc(0x238)]['flipY']||!0x1,'oldAdjustValues':_0x258a45,'newAdjustValues':_0x272335[_0x1decfc(0x114)],'newLineType':_0x272335[_0x1decfc(0x22e)],'rotation':_0x272335[_0x1decfc(0x184)],'oldRelation':_0x1d7a4a,'newRelation':_0x66d17};this['_commandService'][_0x1decfc(0x2c5)](_0x1c01fb['id'],_0x3fb0f2);}[_0x49d8a2(0x129)](_0x433c96,_0x4650a8,_0x2a9435){const _0x5336bc=_0x49d8a2;this['disposeWithMe'](_0x4f15f0(_0x433c96[_0x5336bc(0x1ca)][_0x5336bc(0x19b)]((_0x52f961,_0x1548e2)=>{const _0x2ebb38=_0x5336bc;let _0x1f0ae1=_0x433c96[_0x2ebb38(0x275)]();if(this[_0x2ebb38(0x1db)]=this[_0x2ebb38(0x220)][_0x2ebb38(0x296)](_0x1f0ae1[_0x2ebb38(0x1b7)],_0x1f0ae1[_0x2ebb38(0x2b4)],_0x1f0ae1[_0x2ebb38(0x20e)]),!this[_0x2ebb38(0x1db)])return;let _0x1a13b3={};this[_0x2ebb38(0x1db)][_0x2ebb38(0x325)]()[_0x2ebb38(0x111)](_0x5e526c=>{const _0x519e88=_0x2ebb38;let _0x59a92e=this[_0x519e88(0x1db)][_0x519e88(0x27e)](_0x5e526c);_0x59a92e!==void 0x0&&(_0x1a13b3[_0x5e526c]=_0x59a92e);});let _0x5d45ac=this['_getDrawingRect']();if(!_0x5d45ac)return;this['_baseDrawingRect']={..._0x5d45ac};let _0x529f78=new _0x20c995(this[_0x2ebb38(0x1f8)]),_0x4b24ff=_0x24e648({'unitId':this[_0x2ebb38(0x330)],'subUnitId':this[_0x2ebb38(0x227)],'drawingId':this['_activeShapeId']}),_0x1fac8f=_0x4650a8[_0x2ebb38(0xda)](_0x4b24ff);this[_0x2ebb38(0x1d2)]=!0x0,_0x4650a8[_0x2ebb38(0x162)](),this['_sheetBasicShapeConnectionPointController'][_0x2ebb38(0x2a4)](_0x4650a8,this[_0x2ebb38(0x330)],this['_subUnitId'],this[_0x2ebb38(0x288)]),this['_currentConnectionTarget']=null;let _0x3d2c6d=this[_0x2ebb38(0x1db)][_0x2ebb38(0x2de)](),_0x182d5c=_0x3d2c6d[0x0],_0x47759b=_0x3d2c6d[_0x3d2c6d[_0x2ebb38(0x289)]-0x1],_0x167ef9=_0x2a9435?_0x529f78[_0x2ebb38(0x123)](_0x47759b):_0x529f78['localToWorld'](_0x182d5c);this[_0x2ebb38(0x22b)]=_0x4650a8[_0x2ebb38(0x301)][_0x2ebb38(0x19b)]((_0x5822f5,_0x17460e)=>{const _0x2ca34d=_0x2ebb38;if(!this['_isConnecting']||!this['_activeShapeModel'])return;this[_0x2ca34d(0xdc)]||(this[_0x2ca34d(0x26e)][_0x2ca34d(0x2cb)](),this[_0x2ca34d(0x1db)][_0x2ca34d(0xea)](),this[_0x2ca34d(0xdc)]=!0x0);let _0x3a8154=this[_0x2ca34d(0x30e)](this[_0x2ca34d(0x330)],this[_0x2ca34d(0x227)]),_0x1f489b=this['_getZoomRatio'](this['_unitId'],this[_0x2ca34d(0x227)]),_0x2ba099={'x':_0x5822f5[_0x2ca34d(0x30d)]/_0x1f489b+_0x3a8154['x'],'y':_0x5822f5[_0x2ca34d(0x18e)]/_0x1f489b+_0x3a8154['y']},_0x4f1aa2=this[_0x2ca34d(0x17d)][_0x2ca34d(0x14a)](_0x2ba099);if(_0x4f1aa2){let {shapeId:_0x56c8d3,unitId:_0x48f239,subUnitId:_0x1ea885}=_0x4f1aa2;if(_0x56c8d3&&_0x48f239&&_0x1ea885){let _0x245d47=_0x24e648({'unitId':_0x48f239,'subUnitId':_0x1ea885,'drawingId':_0x56c8d3});_0x4f1aa2[_0x2ca34d(0x1fa)]=(_0x4650a8['getObjectIncludeInGroup'](_0x245d47)[_0x2ca34d(0x1fa)]||0x0)+_0x4f1aa2['angle'];}}this['_currentConnectionTarget']=_0x4f1aa2;let _0x5cedbe=_0x2a9435?this[_0x2ca34d(0x1db)][_0x2ca34d(0x223)]():this[_0x2ca34d(0x1db)][_0x2ca34d(0x1d9)]();if(_0x5cedbe){this[_0x2ca34d(0xe4)](_0x5cedbe,_0x2ba099,_0x2a9435,_0x1fac8f,_0x433c96);return;}this[_0x2ca34d(0x21f)](_0x2ba099,_0x167ef9,_0x2a9435,_0x1fac8f,_0x433c96);}),this[_0x2ebb38(0x101)]=_0x4650a8[_0x2ebb38(0x1fc)][_0x2ebb38(0x19b)]((_0x2173f3,_0x3f4b0f)=>{const _0x1ef1ee=_0x2ebb38;this[_0x1ef1ee(0x197)](_0x4650a8,_0x167ef9,_0x2173f3,_0x2a9435,_0x1a13b3);}),_0x1548e2['stopPropagation']();})));}[_0x49d8a2(0x294)](_0xa537e5,_0x4a8bb8,_0x154192){const _0x2b58d9=_0x49d8a2;let _0x1f3a6f=this['_sheetsShapeService'][_0x2b58d9(0x1ba)](_0xa537e5,_0x4a8bb8,_0x154192);if(!_0x1f3a6f||_0x1f3a6f[_0x2b58d9(0x289)]===0x0)return;let _0x10f285=this[_0x2b58d9(0x107)][_0x2b58d9(0x2c4)](_0xa537e5);if(!_0x10f285)return;let {scene:_0x4d3f58}=_0x10f285;for(let _0x1c4f2b of _0x1f3a6f){let _0xecfcfa=_0x1c4f2b[_0x2b58d9(0x235)],_0x16bfa6=this[_0x2b58d9(0x220)][_0x2b58d9(0x296)](_0xa537e5,_0x4a8bb8,_0xecfcfa);if(!_0x16bfa6)continue;let _0x49c2af=_0x16bfa6[_0x2b58d9(0x1d9)](),_0x434e3c=_0x16bfa6[_0x2b58d9(0x223)](),_0x540d0d=(_0x49c2af==null?void 0x0:_0x49c2af[_0x2b58d9(0x142)])===_0x154192,_0x14db02=_0x24e648({'unitId':_0xa537e5,'subUnitId':_0x4a8bb8,'drawingId':_0xecfcfa}),_0x5c701d=_0x4d3f58['getObjectIncludeInGroup'](_0x14db02);if(!_0x5c701d)continue;let _0x5747cc=this['_drawingManagerService'][_0x2b58d9(0x26a)]({'unitId':_0xa537e5,'subUnitId':_0x4a8bb8,'drawingId':_0xecfcfa});_0x5747cc!=null&&_0x5747cc['transform']&&(_0x49c2af&&_0x434e3c?this['_rerouteConnectorLine'](_0xa537e5,_0x4a8bb8,_0xecfcfa,_0x16bfa6,_0x49c2af,_0x434e3c,_0x5c701d):this[_0x2b58d9(0x19e)](_0xa537e5,_0x4a8bb8,_0xecfcfa,_0x16bfa6,_0x540d0d?_0x49c2af:_0x434e3c,_0x540d0d,_0x5747cc,_0x5c701d));}}[_0x49d8a2(0x1b3)](_0x3562e7,_0x5ccfa1,_0x31dd74,_0x946870,_0x3aaf39,_0x421489,_0x4fa869){const _0xb5bc49=_0x49d8a2;let _0x3929b9=this['_unitId'],_0xa8b4cf=this[_0xb5bc49(0x227)];this[_0xb5bc49(0x330)]=_0x3562e7,this[_0xb5bc49(0x227)]=_0x5ccfa1;let _0x1eac42=this[_0xb5bc49(0x1b9)](_0x3aaf39),_0x2038b3=this[_0xb5bc49(0x1b9)](_0x421489);if(this[_0xb5bc49(0x330)]=_0x3929b9,this[_0xb5bc49(0x227)]=_0xa8b4cf,!_0x1eac42||!_0x2038b3)return;let _0x3148e8=_0x946870[_0xb5bc49(0x285)](),_0xc85d88=_0x449797(_0x1eac42,_0x2038b3,_0x3148e8);_0xc85d88&&_0x946870[_0xb5bc49(0x333)](_0xc85d88);let _0x3d6fae=_0x59ea91(_0xc85d88,_0x3148e8);_0x3d6fae['lineType']!==_0x3148e8&&_0x946870[_0xb5bc49(0x290)](_0x3d6fae['lineType']),_0x946870[_0xb5bc49(0xea)]();for(let [_0x129fe0,_0x4522ca]of Object[_0xb5bc49(0x13c)](_0x3d6fae[_0xb5bc49(0x114)]))_0x946870[_0xb5bc49(0x1cf)](_0x129fe0,_0x4522ca);_0x946870[_0xb5bc49(0x314)]({'width':_0x3d6fae['worldRect'][_0xb5bc49(0x2b9)],'height':_0x3d6fae[_0xb5bc49(0x238)][_0xb5bc49(0x232)]}),_0x4fa869[_0xb5bc49(0x112)]({'flipX':_0x3d6fae[_0xb5bc49(0x238)]['flipX'],'flipY':_0x3d6fae[_0xb5bc49(0x238)][_0xb5bc49(0x132)],'left':_0x3d6fae[_0xb5bc49(0x238)][_0xb5bc49(0x26f)],'top':_0x3d6fae[_0xb5bc49(0x238)][_0xb5bc49(0x25d)],'width':_0x3d6fae[_0xb5bc49(0x238)]['width'],'height':_0x3d6fae[_0xb5bc49(0x238)]['height'],'angle':_0x3d6fae['rotation']}),_0x946870[_0xb5bc49(0x249)]();}['_moveConnectorWithShape'](_0x2475af,_0x36a2d7,_0x12457a,_0x30a804,_0x1d62d8,_0x390662,_0x55a887,_0x7c2153){const _0x1ebee6=_0x49d8a2;let _0x3e77a6=this[_0x1ebee6(0x330)],_0x3b3915=this['_subUnitId'];this['_unitId']=_0x2475af,this[_0x1ebee6(0x227)]=_0x36a2d7;let _0x47f534=this[_0x1ebee6(0x1b9)](_0x1d62d8);if(this[_0x1ebee6(0x330)]=_0x3e77a6,this[_0x1ebee6(0x227)]=_0x3b3915,!_0x47f534)return;let {left:_0x5a43d9=0x0,top:_0x1a5bcf=0x0,width:_0x4f73cc=0x0,height:_0x3ffc48=0x0,flipX:_0x449082=!0x1,flipY:_0x62b658=!0x1}=_0x55a887[_0x1ebee6(0x166)],_0x59dbb2=_0x30a804['getConnectorLinePoints']();if(_0x59dbb2[_0x1ebee6(0x289)]<0x2)return;let _0x4eee31=new _0x20c995({'left':_0x5a43d9,'top':_0x1a5bcf,'width':_0x4f73cc,'height':_0x3ffc48,'flipX':_0x449082,'flipY':_0x62b658}),_0x161c88=_0x390662?_0x59dbb2[_0x59dbb2[_0x1ebee6(0x289)]-0x1]:_0x59dbb2[0x0],_0x4bd10b=_0x4eee31['localToWorld'](_0x161c88),_0x1dc217=_0x20c995[_0x1ebee6(0x1e7)](_0x4bd10b,_0x47f534[_0x1ebee6(0x22c)],!_0x390662);_0x7c2153['transformByState']({'flipX':_0x1dc217[_0x1ebee6(0x238)]['flipX'],'flipY':_0x1dc217[_0x1ebee6(0x238)][_0x1ebee6(0x132)],'left':_0x1dc217[_0x1ebee6(0x238)][_0x1ebee6(0x26f)],'top':_0x1dc217[_0x1ebee6(0x238)][_0x1ebee6(0x25d)],'width':_0x1dc217[_0x1ebee6(0x238)][_0x1ebee6(0x2b9)],'height':_0x1dc217[_0x1ebee6(0x238)][_0x1ebee6(0x232)],'angle':_0x1dc217['worldRect'][_0x1ebee6(0x1fa)]}),_0x7c2153[_0x1ebee6(0x165)](!0x0);}[_0x49d8a2(0x1c1)](){const _0x427b1f=_0x49d8a2;this['_connectorObjects'][_0x427b1f(0x289)]!==0x0&&(this[_0x427b1f(0x272)]['forEach'](_0x1f6438=>{const _0x4afc6f=_0x427b1f;_0x1f6438[_0x4afc6f(0x2b0)]();}),this['_connectorObjects']=[]);}['_registerDrawingMoveHandler'](){const _0x54edf2=_0x49d8a2;let _0x8bbe79=this[_0x54edf2(0x1b8)][_0x54edf2(0x278)](_0x4c1a31[_0x54edf2(0x261)]);this[_0x54edf2(0x16d)](_0x8bbe79[_0x54edf2(0x26c)](_0x48371d(_0x37368c=>_0x37368c?_0x37368c[_0x54edf2(0x18c)][_0x54edf2(0x26c)](_0x48371d(_0x3bc779=>{const _0xa9db16=_0x54edf2;if(!_0x3bc779)return _0x4e602d;let _0x57f444=_0x37368c['getUnitId'](),_0x2f5acf=this[_0xa9db16(0x107)][_0xa9db16(0x2c4)](_0x57f444),_0x3c350e=_0x2f5acf==null?void 0x0:_0x2f5acf['scene'];return _0x3c350e?_0x5ba9b9(_0x3c350e):_0x4e602d;})):_0x4e602d))[_0x54edf2(0x212)](_0x336a5c=>{const _0x5d8973=_0x54edf2;let _0x8586e5=_0x336a5c[_0x5d8973(0x14b)]();this['disposeWithMe'](_0x336a5c[_0x5d8973(0x301)][_0x5d8973(0x19b)](_0x22f7c5=>{const _0xbe9ac0=_0x5d8973;this[_0xbe9ac0(0x27c)]&&this[_0xbe9ac0(0x288)]&&this[_0xbe9ac0(0x1c1)]();})),this['disposeWithMe'](_0x8586e5[_0x5d8973(0x1f2)][_0x5d8973(0x212)](_0x2e2a5d=>{const _0x25094d=_0x5d8973;let {objects:_0x2565bc}=_0x2e2a5d;this[_0x25094d(0x1c1)](),_0x2565bc!==null&&_0x2565bc['size']===0x1&&_0x2565bc[_0x25094d(0x2cc)]()[_0x25094d(0x15a)]()[_0x25094d(0x21c)]instanceof vn&&(this[_0x25094d(0x27c)]=!0x0);})),this['disposeWithMe'](_0x8586e5[_0x5d8973(0x2f4)][_0x5d8973(0x212)](_0x57fddb=>{const _0x4e2dc0=_0x5d8973;this[_0x4e2dc0(0x27c)]&&this[_0x4e2dc0(0x1c1)]();})),this[_0x5d8973(0x16d)](_0x336a5c[_0x5d8973(0x1fc)][_0x5d8973(0x19b)](()=>{const _0x3530eb=_0x5d8973;this[_0x3530eb(0x27c)]&&(this['_isDrawingShapePointDown']=!0x1,this[_0x3530eb(0x211)]());})),this[_0x5d8973(0x16d)](_0x8586e5['changeEnd$']['subscribe'](()=>{const _0x5b6e65=_0x5d8973;this[_0x5b6e65(0x330)]&&this[_0x5b6e65(0x227)]&&this[_0x5b6e65(0x288)]&&this[_0x5b6e65(0x159)]['getDrawingByParam']({'unitId':this[_0x5b6e65(0x330)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x5b6e65(0x288)]})&&(this[_0x5b6e65(0x1c1)](),this[_0x5b6e65(0x211)]());}));}));}[_0x49d8a2(0x2d1)](){const _0x1b46fd=_0x49d8a2;this[_0x1b46fd(0x16d)](this[_0x1b46fd(0x159)][_0x1b46fd(0x139)][_0x1b46fd(0x212)](_0x1b842c=>{const _0x107bfd=_0x1b46fd;if(_0x1b842c[_0x107bfd(0x289)]===0x1){let _0xa18e61=_0x1b842c[0x0];if(_0xa18e61[_0x107bfd(0x12e)]===_0x336997[_0x107bfd(0x181)]){let _0x4ba26d=this[_0x107bfd(0x220)][_0x107bfd(0x296)](_0xa18e61[_0x107bfd(0x1b7)],_0xa18e61['subUnitId'],_0xa18e61[_0x107bfd(0x20e)]);if(_0x4ba26d&&_0x5d2a5e(_0x4ba26d['getShapeType']())){this[_0x107bfd(0x288)]=_0xa18e61[_0x107bfd(0x20e)],this['_unitId']=_0xa18e61[_0x107bfd(0x1b7)],this[_0x107bfd(0x227)]=_0xa18e61[_0x107bfd(0x2b4)],this['_clearShapeConnectorHandlerObjects'](),this[_0x107bfd(0x211)]();return;}}}this[_0x107bfd(0x288)]=void 0x0,this[_0x107bfd(0x330)]=void 0x0,this[_0x107bfd(0x227)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this[_0x1b46fd(0x16d)](this[_0x1b46fd(0x159)][_0x1b46fd(0x127)][_0x1b46fd(0x212)](_0x8dca6e=>{const _0x3efe75=_0x1b46fd;if(_0x8dca6e['length']===0x1){var _0x514981;let _0x28b06f=_0x8dca6e[0x0],_0x279703=(_0x514981=this[_0x3efe75(0x159)][_0x3efe75(0x26a)](_0x28b06f))==null?void 0x0:_0x514981['drawingType'];_0x279703===_0x336997['DRAWING_SHAPE']&&_0x28b06f['drawingId']===this['_activeShapeId']?(this[_0x3efe75(0x1c1)](),this[_0x3efe75(0x211)]()):!this[_0x3efe75(0x288)]&&_0x279703===_0x336997[_0x3efe75(0x181)]&&this[_0x3efe75(0x294)](_0x28b06f[_0x3efe75(0x1b7)],_0x28b06f['subUnitId'],_0x28b06f[_0x3efe75(0x20e)]);}})),this[_0x1b46fd(0x16d)](this[_0x1b46fd(0x159)][_0x1b46fd(0x2dc)]['subscribe'](_0x385460=>{const _0x166a29=_0x1b46fd;for(let _0x392bbe of _0x385460){let {drawingId:_0x25fb77}=_0x392bbe;if(this['_activeShapeId']===_0x25fb77){this[_0x166a29(0x2a6)]();return;}}}));}['_handleConnectedEndpointMove'](_0x5b4f5e,_0x26f6d1,_0x468d8d,_0x424105,_0x14503e){const _0x2dc4d9=_0x49d8a2;var _0x34cce2,_0x2f69a1;if(!this[_0x2dc4d9(0x1db)])return;let _0x278c4a=this[_0x2dc4d9(0x1b9)](_0x5b4f5e);if(!_0x278c4a)return;let _0x2ccc09=this[_0x2dc4d9(0xf0)]?this[_0x2dc4d9(0xf0)][_0x2dc4d9(0x1c4)]:_0x26f6d1,_0x17e52b=this[_0x2dc4d9(0xf0)]?this[_0x2dc4d9(0xf0)][_0x2dc4d9(0x1fa)]:this['_calculateFreeEndpointAngle'](_0x278c4a[_0x2dc4d9(0x22c)],_0x2ccc09),_0x1188cc;if(this['_currentConnectionTarget']){let _0x349883=this[_0x2dc4d9(0x159)]['getDrawingByParam']({'unitId':this['_currentConnectionTarget'][_0x2dc4d9(0x1b7)],'subUnitId':this[_0x2dc4d9(0xf0)][_0x2dc4d9(0x2b4)],'drawingId':this['_currentConnectionTarget']['shapeId']});if(_0x349883!=null&&_0x349883[_0x2dc4d9(0x166)]){let {left:_0x332214=0x0,top:_0x5a2c04=0x0,width:_0x1d7e2d=0x0,height:_0xd2bdf4=0x0,angle:_0x4eeead}=_0x349883['transform'];_0x1188cc=_0x4d4669({'left':_0x332214,'top':_0x5a2c04,'width':_0x1d7e2d,'height':_0xd2bdf4},_0x4eeead||0x0);}else _0x1188cc={'left':_0x2ccc09['x'],'top':_0x2ccc09['y'],'width':0x0,'height':0x0};}else _0x1188cc={'left':_0x2ccc09['x'],'top':_0x2ccc09['y'],'width':0x0,'height':0x0};let _0x52a8ab={'point':_0x2ccc09,'angle':_0x17e52b,'bounds':_0x1188cc},_0x1d918e=_0x468d8d?_0x52a8ab:_0x278c4a,_0x5e68cb=_0x468d8d?_0x278c4a:_0x52a8ab,_0x367295=this['_activeShapeModel']['getShapeType'](),_0x4ff554=_0x449797(_0x1d918e,_0x5e68cb,_0x367295);_0x4ff554&&this[_0x2dc4d9(0x1db)][_0x2dc4d9(0x333)](_0x4ff554);let _0x536a5b=_0x59ea91(_0x4ff554,_0x367295);_0x536a5b['lineType']!==_0x367295&&this[_0x2dc4d9(0x1db)][_0x2dc4d9(0x290)](_0x536a5b[_0x2dc4d9(0x22e)]);for(let [_0x426437,_0x123304]of Object[_0x2dc4d9(0x13c)](_0x536a5b[_0x2dc4d9(0x114)]))this['_activeShapeModel'][_0x2dc4d9(0x1cf)](_0x426437,_0x123304);this['_activeShapeModel'][_0x2dc4d9(0x314)]({'width':_0x536a5b[_0x2dc4d9(0x238)][_0x2dc4d9(0x2b9)],'height':_0x536a5b['worldRect'][_0x2dc4d9(0x232)]}),_0x424105[_0x2dc4d9(0x112)]({'flipX':_0x536a5b['worldRect'][_0x2dc4d9(0x31c)],'flipY':_0x536a5b[_0x2dc4d9(0x238)][_0x2dc4d9(0x132)],'left':_0x536a5b['worldRect'][_0x2dc4d9(0x26f)],'top':_0x536a5b[_0x2dc4d9(0x238)]['top'],'width':_0x536a5b[_0x2dc4d9(0x238)]['width'],'height':_0x536a5b[_0x2dc4d9(0x238)][_0x2dc4d9(0x232)],'angle':_0x536a5b[_0x2dc4d9(0x184)]}),_0x424105['makeDirty'](!0x0);let _0x547ffa=(_0x34cce2=(_0x2f69a1=this[_0x2dc4d9(0xf0)])==null?void 0x0:_0x2f69a1['worldPoint'])==null?_0x26f6d1:_0x34cce2;_0x14503e[_0x2dc4d9(0x112)]({'left':_0x547ffa['x']-_0x2bea1d[_0x2dc4d9(0x1eb)],'top':_0x547ffa['y']-_0x2bea1d['cxnPointRadius']});}[_0x49d8a2(0x21f)](_0x6aff35,_0x8a8f5f,_0x4d86d3,_0x108a14,_0x1c6891){const _0xcb95ac=_0x49d8a2;var _0x332b09,_0x10485f,_0xdd0833,_0x367e69;let _0x313143=(_0x332b09=(_0x10485f=this[_0xcb95ac(0xf0)])==null?void 0x0:_0x10485f['worldPoint'])==null?_0x6aff35:_0x332b09,_0x24311a=_0x20c995[_0xcb95ac(0x1e7)](_0x8a8f5f,_0x313143,_0x4d86d3);_0x108a14['transformByState']({'flipX':_0x24311a[_0xcb95ac(0x238)][_0xcb95ac(0x31c)],'flipY':_0x24311a[_0xcb95ac(0x238)]['flipY'],'left':_0x24311a[_0xcb95ac(0x238)]['left'],'top':_0x24311a[_0xcb95ac(0x238)][_0xcb95ac(0x25d)],'width':_0x24311a['worldRect'][_0xcb95ac(0x2b9)],'height':_0x24311a[_0xcb95ac(0x238)][_0xcb95ac(0x232)],'angle':_0x24311a[_0xcb95ac(0x238)][_0xcb95ac(0x1fa)]});let _0x512170=(_0xdd0833=(_0x367e69=this[_0xcb95ac(0xf0)])==null?void 0x0:_0x367e69[_0xcb95ac(0x1c4)])==null?_0x6aff35:_0xdd0833;_0x1c6891[_0xcb95ac(0x112)]({'left':_0x512170['x']-_0x2bea1d['cxnPointRadius'],'top':_0x512170['y']-_0x2bea1d[_0xcb95ac(0x1eb)]});}[_0x49d8a2(0x1b9)](_0x4474f1){const _0x261b8e=_0x49d8a2;if(!this[_0x261b8e(0x330)]||!this['_subUnitId'])return null;let {shapeId:_0x2908b6,cxnIndex:_0xe075e3}=_0x4474f1,_0x385b19=this[_0x261b8e(0x220)]['getShapeModel'](this[_0x261b8e(0x330)],this[_0x261b8e(0x227)],_0x2908b6);if(!_0x385b19)return null;let _0x1d3b9d=this[_0x261b8e(0x159)][_0x261b8e(0x26a)]({'unitId':this[_0x261b8e(0x330)],'subUnitId':this[_0x261b8e(0x227)],'drawingId':_0x2908b6});if(!(_0x1d3b9d!=null&&_0x1d3b9d['transform']))return null;let {left:_0x559a80=0x0,top:_0x5c8b46=0x0,width:_0x11dea7=0x0,height:_0x35f580=0x0,flipX:_0x3ee292=!0x1,flipY:_0x5c2784=!0x1,angle:_0x344afb}=_0x1d3b9d[_0x261b8e(0x166)];_0x385b19['updateContext']({'width':_0x11dea7,'height':_0x35f580});let _0x3e2efb=_0x385b19[_0x261b8e(0x198)]()[_0x261b8e(0x138)](_0x3c2434=>_0x3c2434[_0x261b8e(0x2d2)]===_0xe075e3);if(!_0x3e2efb)return null;let _0x5b15ab=_0x3ee292?_0x11dea7-_0x3e2efb['x']:_0x3e2efb['x'],_0x337684=_0x5c2784?_0x35f580-_0x3e2efb['y']:_0x3e2efb['y'];if(_0x344afb!==0x0&&_0x344afb!=null){let _0x10d3be=_0x344afb*Math['PI']/0xb4,_0x1a56f4=Math[_0x261b8e(0x17b)](_0x10d3be),_0x343ff5=Math[_0x261b8e(0x2c0)](_0x10d3be),_0x1b659c=_0x11dea7/0x2,_0x2c790f=_0x35f580/0x2,_0x4d72b3=_0x5b15ab-_0x1b659c,_0x48100a=_0x337684-_0x2c790f;_0x5b15ab=_0x1b659c+_0x4d72b3*_0x1a56f4-_0x48100a*_0x343ff5,_0x337684=_0x2c790f+_0x4d72b3*_0x343ff5+_0x48100a*_0x1a56f4;}_0x5b15ab+=_0x559a80,_0x337684+=_0x5c8b46;let _0x4e6e08=_0x3e2efb[_0x261b8e(0x2db)]/0xea60;_0x3ee292&&(_0x4e6e08=0xb4-_0x4e6e08),_0x5c2784&&(_0x4e6e08=-_0x4e6e08),_0x4e6e08+=_0x344afb||0x0,_0x4e6e08=(_0x4e6e08%0x168+0x168)%0x168;let _0x57adb6=_0x4d4669({'left':_0x559a80,'top':_0x5c8b46,'width':_0x11dea7,'height':_0x35f580},_0x344afb||0x0);return{'point':{'x':_0x5b15ab,'y':_0x337684},'angle':_0x4e6e08,'bounds':_0x57adb6};}[_0x49d8a2(0x25c)](_0x84120,_0x4c364e){const _0x4ac14=_0x49d8a2;let _0x10d9af=_0x4c364e['x']-_0x84120['x'],_0xcc06c4=_0x4c364e['y']-_0x84120['y'];return Math[_0x4ac14(0x1ea)](_0x10d9af)>=Math[_0x4ac14(0x1ea)](_0xcc06c4)?_0x10d9af>=0x0?0xb4:0x0:_0xcc06c4>=0x0?0x10e:0x5a;}['_reset'](){const _0x23b993=_0x49d8a2;this[_0x23b993(0x288)]=void 0x0,this['_unitId']=void 0x0,this[_0x23b993(0x227)]=void 0x0,this[_0x23b993(0x1c1)]();}['dispose'](){const _0x34341e=_0x49d8a2;this[_0x34341e(0x1c1)](),super[_0x34341e(0x2b0)]();}};ur=Y([J(0x1,_0x3002c9),J(0x2,_0x2565d9),J(0x3,_0x5a9176),J(0x4,_0x2320a1),J(0x5,_0x3465f0(_0x1a451a)),J(0x6,_0x3465f0(Z)),J(0x7,_0x3465f0(sr))],ur);let dr=class extends _0x1e0fa2{constructor(_0x234c61,_0x57459e,_0x4e71e4){const _0x531236=_0x49d8a2;super(),this[_0x531236(0x15b)]=_0x234c61,this['_drawingManagerService']=_0x57459e,this['_shapeRenderController']=_0x4e71e4,this[_0x531236(0x11a)]();}[_0x49d8a2(0x11a)](){const _0x3ecbb1=_0x49d8a2;this['disposeWithMe'](this[_0x3ecbb1(0x15b)][_0x3ecbb1(0x116)]['intercept'](this[_0x3ecbb1(0x15b)]['interceptor']['getInterceptPoints']()[_0x3ecbb1(0x2a0)],{'handler':(_0xe2b431,_0x303e55,_0xbd23a)=>{const _0x1a1c9a=_0x3ecbb1;var _0xdcd4b4;let {unitId:_0x131d39,subUnitId:_0x40f5e9,scene:_0x5149ef,resourceCollector:_0x219f8a}=_0x303e55,_0x41031c=(_0xdcd4b4=this['_drawingManagerService'][_0x1a1c9a(0x22d)](_0x131d39))==null?void 0x0:_0xdcd4b4[_0x40f5e9];return _0x41031c==null||_0x41031c[_0x1a1c9a(0xf9)][_0x1a1c9a(0x111)](_0xf3030e=>{const _0x5a8563=_0x1a1c9a;let _0x112ae9=_0x41031c[_0x5a8563(0x2f1)][_0xf3030e];_0x112ae9[_0x5a8563(0x12e)]===_0x336997[_0x5a8563(0x181)]&&!_0x112ae9[_0x5a8563(0x15c)]&&this[_0x5a8563(0x267)]['renderDrawingShape'](_0x112ae9,_0x5149ef,{'resourceCollector':_0x219f8a});}),_0xbd23a(_0xe2b431);}}));}};dr=Y([J(0x0,_0x3465f0(_0x4f0169)),J(0x1,_0x5a9176),J(0x2,_0x3465f0(X))],dr);let fr=class extends _0x1e0fa2{constructor(_0x56f396,_0x30409c,_0x377d64){const _0x4cd36f=_0x49d8a2;super(),this[_0x4cd36f(0x2af)]=_0x56f396,this[_0x4cd36f(0x2df)]=_0x30409c,this['_sheetPermissionCheckController']=_0x377d64,this[_0x4cd36f(0x231)]();}[_0x49d8a2(0x231)](){const _0x10c342=_0x49d8a2;this['disposeWithMe'](this[_0x10c342(0x2af)][_0x10c342(0x171)](_0xdc5f95=>{const _0x295723=_0x10c342;let _0x59fe05,_0x43fa45;if(_0xdc5f95['id']===_0x5db24c['id']||_0xdc5f95['id']===_0x357925['id']||_0xdc5f95['id']===_0x1c01fb['id']){let _0x97ca05=_0xdc5f95[_0x295723(0x2ba)];_0x59fe05=_0x97ca05[_0x295723(0x1b7)],_0x43fa45=_0x97ca05[_0x295723(0x2b4)];}!_0x59fe05||!_0x43fa45||this[_0x295723(0x207)][_0x295723(0x17f)]({'workbookTypes':[_0x3216bb],'worksheetTypes':[_0x57e1db]},_0x59fe05,_0x43fa45)||this['_sheetPermissionCheckController'][_0x295723(0x1f1)](this[_0x295723(0x2df)]['t'](_0x295723(0x10e)));}));}};fr=Y([J(0x0,_0x3465f0(_0x3002c9)),J(0x1,_0x3465f0(_0x9a7c24)),J(0x2,_0x3465f0(_0x2cc1a0))],fr);let pr=class extends _0x1e0fa2{constructor(_0x5432ad,_0x2e1647,_0x3637b4,_0x13d889,_0x416c1b,_0x7899bc,_0x242482,_0x131a5e,_0x4ff1da,_0x1e73a0,_0x161bab){const _0x32591b=_0x49d8a2;super(),this[_0x32591b(0x1b8)]=_0x5432ad,this[_0x32591b(0x175)]=_0x2e1647,this['_menuManagerService']=_0x3637b4,this['_sheetsShapeService']=_0x13d889,this['_localeService']=_0x416c1b,this[_0x32591b(0x2af)]=_0x7899bc,this[_0x32591b(0x159)]=_0x242482,this[_0x32591b(0x182)]=_0x131a5e,this[_0x32591b(0x2e9)]=_0x4ff1da,this[_0x32591b(0x107)]=_0x1e73a0,this[_0x32591b(0x185)]=_0x161bab,q(this,'_sidebarDisposable',null),q(this,_0x32591b(0x313),null),q(this,_0x32591b(0x273),!0x1),q(this,_0x32591b(0x203),0x0),q(this,_0x32591b(0xe5),new Set()),q(this,'_disposePopups',[]),this['_initMenu'](),this[_0x32591b(0x16d)](this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x4c1a31[_0x32591b(0x261)])['subscribe'](_0xfc6a06=>{const _0x28c130=_0x32591b;if(!_0xfc6a06){var _0x530735;(_0x530735=this[_0x28c130(0x257)])==null||_0x530735[_0x28c130(0x2b0)]();return;}this[_0x28c130(0x303)](_0xfc6a06);})),this[_0x32591b(0x280)](),this['_registerShapeMenu'](),this[_0x32591b(0x291)](),this[_0x32591b(0x16d)](this[_0x32591b(0x185)][_0x32591b(0xfa)][_0x32591b(0x212)](_0x2af91a=>{const _0x2e696f=_0x32591b;_0x2af91a&&this[_0x2e696f(0x27d)]();}));}[_0x49d8a2(0x13f)](){this['_menuManagerService']['mergeMenu'](In);}['_registerShapeMenu'](){const _0x561c70=_0x49d8a2;this['_sheetCanvasPopManagerService']['registerFeatureMenu'](_0x336997[_0x561c70(0x181)],this[_0x561c70(0x239)][_0x561c70(0x1ab)](this)),this[_0x561c70(0x182)][_0x561c70(0x1a0)](_0x336997[_0x561c70(0x181)],0x6,0x4);}[_0x49d8a2(0x291)](){const _0x3826a2=_0x49d8a2;this[_0x3826a2(0x1b8)]['getAllUnitsForType'](_0x4c1a31[_0x3826a2(0x261)])['forEach'](_0x3057d4=>this[_0x3826a2(0x303)](_0x3057d4));}[_0x49d8a2(0x239)](_0x111a23,_0x387600,_0x4f8651,_0x3962c1){const _0x33ce89=_0x49d8a2;return[{'label':_0x33ce89(0x1f6),'index':0x0,'commandId':Bn['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'drawingId':_0x4f8651},'disable':_0x3962c1===_0x336997[_0x33ce89(0x173)]},{'label':'sheets-shape-ui.deleteShape','index':0x1,'commandId':_0x5f4db7['id'],'commandParams':{'unitId':_0x111a23,'drawings':[{'unitId':_0x111a23,'subUnitId':_0x387600,'drawingId':_0x4f8651,'drawingType':_0x3962c1}]},'disable':!0x1},{'label':_0x33ce89(0xfc),'index':0x2,'commandId':zn['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'drawingId':_0x4f8651},'disable':!0x1},{'label':_0x33ce89(0x332),'index':0x3,'commandId':_0x4deace['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'shapeId':_0x4f8651,'flipH':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.toggleFlipV','index':0x4,'commandId':_0x4deace['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'shapeId':_0x4f8651,'flipV':!0x0},'disable':!0x1},{'label':_0x33ce89(0x2ef),'index':0x4,'commandId':_0x45951d['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'shapeId':_0x4f8651,'rotate':0x5a},'disable':!0x1},{'label':'sheets-shape-ui.rotateLeft90','index':0x4,'commandId':_0x45951d['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'shapeId':_0x4f8651,'rotate':-0x5a},'disable':!0x1},{'label':_0x33ce89(0x1e1),'index':0x4,'commandId':_0x3209a5['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'shapeId':_0x4f8651},'disable':!0x1}];}[_0x49d8a2(0xf1)](_0x5f5098,_0x56177f,_0x320df2){const _0x21abf4=_0x49d8a2;let _0x222d3f=this[_0x21abf4(0x220)][_0x21abf4(0xeb)](_0x5f5098,_0x56177f,_0x320df2),_0x435bae=this['_sheetsShapeService'][_0x21abf4(0x264)](_0x5f5098,_0x56177f,_0x320df2);return _0x222d3f!==void 0x0&&_0x435bae!==void 0x0?{'shapeData':_0x435bae,'shapeId':_0x320df2,'shapeType':_0x222d3f,'unitId':_0x5f5098,'subUnitId':_0x56177f,'version':this[_0x21abf4(0x203)],'disableShapeOption':!0x1}:null;}[_0x49d8a2(0x303)](_0x542536){const _0x66e18c=_0x49d8a2;if(!_0x542536)return;let _0x257f19=_0x542536[_0x66e18c(0x229)]();this[_0x66e18c(0x107)][_0x66e18c(0x215)](_0x257f19)&&!this[_0x66e18c(0xe5)][_0x66e18c(0x215)](_0x257f19)&&(this[_0x66e18c(0x326)](_0x257f19),this[_0x66e18c(0xe5)][_0x66e18c(0x120)](_0x257f19));}['_clearPopups'](){const _0x514ff9=_0x49d8a2;this[_0x514ff9(0x286)][_0x514ff9(0x111)](_0x5e1f38=>_0x5e1f38['dispose']()),this['_disposePopups'][_0x514ff9(0x289)]=0x0;}[_0x49d8a2(0x326)](_0x1a335b){const _0x493db5=_0x49d8a2;var _0x1830a0;let _0x135bee=(_0x1830a0=this[_0x493db5(0x107)][_0x493db5(0x2c4)](_0x1a335b))==null?void 0x0:_0x1830a0[_0x493db5(0x228)],_0x58e87e=_0x135bee==null?void 0x0:_0x135bee[_0x493db5(0x14b)]();!_0x135bee||!_0x58e87e||(this[_0x493db5(0x16d)](_0x58e87e['createControl$'][_0x493db5(0x212)](()=>{const _0x465f5b=_0x493db5;let _0x246d53=_0x58e87e[_0x465f5b(0x149)]();if(this[_0x465f5b(0x27d)](),this['_isOpenedShapeEditPanel']||_0x246d53[_0x465f5b(0x105)]>0x1)return;let _0xa9cbf4=_0x246d53['values']()[_0x465f5b(0x15a)]()[_0x465f5b(0x21c)];if(!_0xa9cbf4)return;let _0x282dd0=this[_0x465f5b(0x159)][_0x465f5b(0x18b)](_0xa9cbf4[_0x465f5b(0x163)]);if(!_0x282dd0||_0x282dd0[_0x465f5b(0x12e)]!==_0x336997[_0x465f5b(0x181)])return;let {unitId:_0x23498d,subUnitId:_0x582e8d,drawingId:_0x1d11a4,drawingType:_0x557e8f}=_0x282dd0,_0x5881b9=this['_getShapeInfo'](_0x23498d,_0x582e8d,_0x1d11a4);if(!_0x5881b9)return;this[_0x465f5b(0x2e9)][_0x465f5b(0x14f)](_0x26ab00,!0x0);let _0x159c90=this[_0x465f5b(0x182)][_0x465f5b(0x259)](_0xa9cbf4,{'componentKey':wn,'direction':_0x465f5b(0x2ec),'offset':[0x0,_0x229ba4],'extraProps':{'unitId':_0x23498d,'subUnitId':_0x582e8d,'drawingId':_0x1d11a4,'drawingType':_0x557e8f,'shapeType':_0x5881b9[_0x465f5b(0x2b2)],'shapeData':_0x5881b9[_0x465f5b(0x1c5)]}});this['_disposePopups'][_0x465f5b(0x214)](this[_0x465f5b(0x16d)](_0x159c90)),this[_0x465f5b(0x159)][_0x465f5b(0x32c)]()[_0x465f5b(0x138)](_0x3909af=>_0x3909af['unitId']===_0x23498d&&_0x3909af[_0x465f5b(0x2b4)]===_0x582e8d&&_0x3909af[_0x465f5b(0x20e)]===_0x1d11a4)||this[_0x465f5b(0x159)]['focusDrawing']([{'unitId':_0x23498d,'subUnitId':_0x582e8d,'drawingId':_0x1d11a4}]);})),this[_0x493db5(0x16d)](_0x58e87e['clearControl$'][_0x493db5(0x212)](()=>{const _0x1bcf37=_0x493db5;this['_clearPopups'](),this['_contextService'][_0x1bcf37(0x14f)](_0x26ab00,!0x1),this[_0x1bcf37(0x159)][_0x1bcf37(0x2c8)](null);})),this[_0x493db5(0x16d)](_0x58e87e[_0x493db5(0x2f4)][_0x493db5(0x212)](()=>{this['_clearPopups']();})),this[_0x493db5(0x16d)](_0x58e87e[_0x493db5(0x1f2)][_0x493db5(0x212)](()=>{const _0x4f1cff=_0x493db5;this[_0x4f1cff(0x27d)]();})));}['_registerOperations'](){const _0x3bd3b2=_0x49d8a2;this[_0x3bd3b2(0x16d)](this[_0x3bd3b2(0x2af)][_0x3bd3b2(0x242)](_0x77c92=>{const _0x3bd0f4=_0x3bd3b2;if(_0x77c92['id']===Bn['id']){let {unitId:_0x330868,subUnitId:_0x2898ee,drawingId:_0x34aa8f}=_0x77c92['params'];this[_0x3bd0f4(0x203)]+=0x1,this[_0x3bd0f4(0x313)]=this['_getShapeInfo'](_0x330868,_0x2898ee,_0x34aa8f),this['_clearPopups'](),this[_0x3bd0f4(0x315)]();}if(_0x77c92['id']===zn['id']&&(this['_activeShapeInfo']=null,this['_closeShapeEditPanel']()),_0x77c92['id']===_0x22295a['id']){let {unitId:_0x5b5137,subUnitId:_0x615b87,shapeId:_0x347c0f}=_0x77c92[_0x3bd0f4(0x2ba)];if(this[_0x3bd0f4(0x313)]&&this[_0x3bd0f4(0x313)][_0x3bd0f4(0x142)]===_0x347c0f){let _0x33a72b=this[_0x3bd0f4(0xf1)](_0x5b5137,_0x615b87,_0x347c0f);_0x33a72b&&(this[_0x3bd0f4(0x203)]+=0x1,_0x33a72b[_0x3bd0f4(0x1e2)]=this[_0x3bd0f4(0x203)],this[_0x3bd0f4(0x313)]=_0x33a72b,this[_0x3bd0f4(0x273)]&&this[_0x3bd0f4(0x315)]());}}})),this[_0x3bd3b2(0x16d)](this[_0x3bd3b2(0x159)]['focus$'][_0x3bd3b2(0x212)](_0x14ff20=>{const _0x4cee72=_0x3bd3b2;if(this[_0x4cee72(0x273)]===!0x1)return;if(_0x14ff20[_0x4cee72(0x289)]===0x0){this['_activeShapeInfo']=null,this['_closeShapeEditPanel']();return;}if(_0x14ff20[_0x4cee72(0x289)]===0x1&&_0x14ff20[0x0][_0x4cee72(0x12e)]===_0x336997[_0x4cee72(0x181)]&&(this[_0x4cee72(0x203)]+=0x1,this['_activeShapeInfo']=this[_0x4cee72(0xf1)](_0x14ff20[0x0][_0x4cee72(0x1b7)],_0x14ff20[0x0][_0x4cee72(0x2b4)],_0x14ff20[0x0][_0x4cee72(0x20e)]),this[_0x4cee72(0x313)])){this[_0x4cee72(0x315)]();return;}let _0x5df85c=_0x14ff20['filter'](_0x18ac1d=>_0x18ac1d[_0x4cee72(0x12e)]===_0x336997['DRAWING_SHAPE']);if(_0x14ff20[_0x4cee72(0x289)]>0x1&&_0x5df85c[_0x4cee72(0x289)]===_0x14ff20[_0x4cee72(0x289)]){if(this[_0x4cee72(0x203)]+=0x1,this[_0x4cee72(0x313)]=this[_0x4cee72(0xf1)](_0x14ff20[0x0][_0x4cee72(0x1b7)],_0x14ff20[0x0][_0x4cee72(0x2b4)],_0x14ff20[0x0]['drawingId']),this[_0x4cee72(0x313)]){this[_0x4cee72(0x315)]();return;}}else{if(this[_0x4cee72(0x203)]+=0x1,this['_activeShapeInfo']=this[_0x4cee72(0xf1)](_0x14ff20[0x0]['unitId'],_0x14ff20[0x0]['subUnitId'],_0x14ff20[0x0][_0x4cee72(0x20e)]),this[_0x4cee72(0x313)]){this[_0x4cee72(0x313)]['disableShapeOption']=!0x0,this[_0x4cee72(0x315)]();return;}}this[_0x4cee72(0x33a)]();}));}[_0x49d8a2(0x315)](){const _0x2ce5f9=_0x49d8a2;this[_0x2ce5f9(0x313)]&&(this[_0x2ce5f9(0x257)]=this[_0x2ce5f9(0x175)][_0x2ce5f9(0x277)]({'id':Sn,'header':{'title':this[_0x2ce5f9(0x2df)]['t']('sheets-shape-ui.formatShape')},'width':0x184,'children':{'label':Sn,...this[_0x2ce5f9(0x313)]},'onClose':()=>{const _0x7ba8b1=_0x2ce5f9;this[_0x7ba8b1(0x159)][_0x7ba8b1(0x2c8)](null),this['_contextService'][_0x7ba8b1(0x14f)](_0x26ab00,!0x1),this[_0x7ba8b1(0x257)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}['_closeShapeEditPanel'](){const _0xd16ec=_0x49d8a2;this[_0xd16ec(0x273)]=!0x1,this[_0xd16ec(0x175)][_0xd16ec(0x113)](Sn),this['_sidebarDisposable']=null,this['_contextService'][_0xd16ec(0x14f)](_0x26ab00,!0x1),this[_0xd16ec(0x159)][_0xd16ec(0x2c8)](null);}};pr=Y([J(0x0,_0x2320a1),J(0x1,_0x3465f0(_0xf1c3ee)),J(0x2,_0x25cc13),J(0x3,_0x3465f0(_0x1a451a)),J(0x4,_0x3465f0(_0x9a7c24)),J(0x5,_0x3002c9),J(0x6,_0x5a9176),J(0x7,_0x3465f0(_0x57df42)),J(0x8,_0x2d429f),J(0x9,_0x2565d9),J(0xa,_0x3465f0(Zn))],pr);let $=class extends _0x257c5b{constructor(_0x50c0ea=Vn,_0x42d6fe,_0x4ceb7b,_0x562450,_0x1b7580){const _0xf6f511=_0x49d8a2;super(),this[_0xf6f511(0x18f)]=_0x50c0ea,this[_0xf6f511(0x26b)]=_0x42d6fe,this[_0xf6f511(0x2af)]=_0x4ceb7b,this[_0xf6f511(0x23b)]=_0x562450,this[_0xf6f511(0x107)]=_0x1b7580;let {..._0xce0423}=_0x1c7285({},Vn,this[_0xf6f511(0x18f)]);this[_0xf6f511(0x23b)]['setConfig'](_0xf6f511(0x218),_0xce0423),this[_0xf6f511(0x23e)]();}[_0x49d8a2(0x328)](){_0x14b49a(this['_injector'],[[pr],[ir],[X],[dr]]);}['onSteady'](){const _0x481086=_0x49d8a2;this[_0x481086(0x26b)]['get'](pr)[_0x481086(0x291)]();}[_0x49d8a2(0x320)](){const _0x4ca7bc=_0x49d8a2;[[sr],[Z],[cr]][_0x4ca7bc(0x111)](_0x49a005=>this[_0x4ca7bc(0x26b)][_0x4ca7bc(0x120)](_0x49a005)),_0x14b49a(this[_0x4ca7bc(0x26b)],[[cr],[Z]]),this[_0x4ca7bc(0x107)][_0x4ca7bc(0x10d)](_0x4c1a31[_0x4ca7bc(0x261)],[sr]),this[_0x4ca7bc(0x107)]['registerRenderModule'](_0x4c1a31['UNIVER_SHEET'],[er]),this[_0x4ca7bc(0x107)][_0x4ca7bc(0x10d)](_0x4c1a31['UNIVER_SHEET'],[ur]),this[_0x4ca7bc(0x107)][_0x4ca7bc(0x10d)](_0x4c1a31[_0x4ca7bc(0x261)],[nr]),this[_0x4ca7bc(0x107)][_0x4ca7bc(0x10d)](_0x4c1a31[_0x4ca7bc(0x2ae)],[rr]);}['onStarting'](){const _0x22f8a0=_0x49d8a2;this['_injector'][_0x22f8a0(0x120)]([$n]),this[_0x22f8a0(0x26b)][_0x22f8a0(0x1bc)]($n);let _0x527ee2=this[_0x22f8a0(0x26b)];[[pr],[ir],[X],[dr],[Kn],[Zn],[tr],[Q],[fr]]['forEach'](_0x2fa7d0=>_0x527ee2['add'](_0x2fa7d0)),_0x14b49a(this[_0x22f8a0(0x26b)],[[pr],[ir],[X],[Kn],[Zn],[tr],[Q],[fr]]);}[_0x49d8a2(0x23e)](){const _0x280c79=_0x49d8a2;[xn,dn,zn,Bn,Dn,bn][_0x280c79(0x111)](_0x443269=>this['disposeWithMe'](this[_0x280c79(0x2af)][_0x280c79(0x147)](_0x443269)));}};q($,_0x49d8a2(0x1ff),_0x4c1a31['UNIVER_SHEET']),q($,'pluginName',_0x49d8a2(0x2c9)),q($,_0x49d8a2(0x208),Ln),q($,_0x49d8a2(0x1e2),Rn),$=Y([_0x15410a(_0x2da0f1,_0x464a71,_0x1c2191,_0x551142),J(0x1,_0x3465f0(_0xab16b2)),J(0x2,_0x3002c9),J(0x3,_0xb443b),J(0x4,_0x2565d9)],$);export{In as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};
|
|
1
|
+
const _0xcb6cbb=_0x5971;(function(_0x593b39,_0x57c682){const _0x432504=_0x5971,_0xcd9ef8=_0x593b39();while(!![]){try{const _0x589a54=parseInt(_0x432504(0x2a3))/0x1+-parseInt(_0x432504(0x100))/0x2*(parseInt(_0x432504(0x21e))/0x3)+-parseInt(_0x432504(0x192))/0x4*(parseInt(_0x432504(0x30a))/0x5)+parseInt(_0x432504(0x2df))/0x6+parseInt(_0x432504(0xbf))/0x7*(parseInt(_0x432504(0x19f))/0x8)+parseInt(_0x432504(0x174))/0x9+-parseInt(_0x432504(0x21b))/0xa*(-parseInt(_0x432504(0x261))/0xb);if(_0x589a54===_0x57c682)break;else _0xcd9ef8['push'](_0xcd9ef8['shift']());}catch(_0xd70729){_0xcd9ef8['push'](_0xcd9ef8['shift']());}}}(_0x10e2,0x41949));import{ComponentManager as _0x3e4916,ContextMenuGroup as _0x5e3670,ContextMenuPosition as _0x19ebdc,IMenuManagerService as _0x1aa6d4,ISidebarService as _0x4770b9,IconManager as _0x302aca,MenuItemType as _0x187ab3,RibbonInsertGroup as _0x99ab95,UniverUIPlugin as _0x2863d5,getMenuHiddenObservable as _0x54d985,useDependency as _0x5ead04,useObservable as _0x3e0fd9}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x4d85c6,ImageSourceTypeEnum as _0x1d28e9,ShapeArrowSizeEnum as _0x483edf,ShapeArrowTypeEnum as _0x443563,ShapeDefaultConfig as _0x3cbe53,ShapeFillEnum as _0x208105,ShapeLineTypeEnum as _0x3e780b,ShapeModel as _0x508f4b,ShapeRenderModeEnum as _0x30553a,ShapeTypeEnum as _0x4c4784,computeConnectorRouteLayout as _0x5d79b3,getBasicShapeRotateBound as _0x202bf2,isConnectorShape as _0x286130,isCurvedConnectorShape as _0x5b9030,routeConnectorLineShape as _0x502b11}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x246f9b,UniverShapeEditorPlugin as _0x4efd70,createShapeFormulaDocument as _0x267ca5,createShapeTextBoxShapeData as _0x38899d}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x5268cc,InsertSheetsShapeMutation as _0x314d59,RemoveSheetsShapeMutation as _0x1fd47e,SetShapeDrawingDataCommand as _0x28ec43,SheetsShapeService as _0x231cef,ToggleSheetsShapeFlipCommand as _0x44c026,UniverSheetsShapePlugin as _0x47b64b,UpdateConnectorRelationCommand as _0x1ae360,UpdateLineShapeResizeCommand as _0x15b46f,UpdateSheetsShapeDataMutation as _0x528850}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x22122b,CommandType as _0xd030d0,DependentOn as _0x4a9068,Disposable as _0x444b76,DocumentDataModel as _0x1c3437,DrawingTypeEnum as _0x55872c,FOCUSING_COMMON_DRAWINGS as _0x5c6846,FOCUSING_SHAPE_TEXT_EDITOR as _0x2bcc42,HorizontalAlign as _0x166f93,ICommandService as _0x3a72b1,IConfigService as _0x7ad4a5,IContextService as _0x34c0f6,IImageIoService as _0x5939d4,IURLImageService as _0x379500,IUndoRedoService as _0x476dff,IUniverInstanceService as _0x1af83c,Inject as _0x25d6be,Injector as _0x3ca189,LocaleService as _0x498c36,Plugin as _0x325a4b,UniverInstanceType as _0x593ef9,VerticalAlign as _0x4874a7,createInternalEditorID as _0x3ca21e,generateRandomId as _0xf6c8c4,merge as _0x5ed21a,toDisposable as _0x452c8c,touchDependencies as _0x1f2515}from'@univerjs/core';import{CopySheetCommand as _0x5249ee,RemoveSheetCommand as _0x130616,SheetInterceptorService as _0x555ec8,SheetPermissionCheckController as _0x4bb7c3,SheetSkeletonService as _0x414a67,SheetsSelectionsService as _0x2c9660,UniverSheetsPlugin as _0x5dd7ab,WorkbookEditablePermission as _0x3a8356,WorksheetEditPermission as _0x521940,attachRangeWithCoord as _0x2cf26d,discreteRangeToRange as _0xe86510,getSheetCommandTarget as _0x5f445e}from'@univerjs/sheets';import{IDrawingManagerService as _0x5a1ed0,SetDrawingSelectedOperation as _0xc56e65,UniverDrawingPlugin as _0x37224d,getDrawingShapeKeyByDrawingSearch as _0x4f98bd}from'@univerjs/drawing';import{CURSOR_TYPE as _0x1bae0e,Circle as _0x38d822,DRAWING_OBJECT_LAYER_INDEX as _0x338629,DocumentSkeleton as _0xd9ea3b,DocumentViewModel as _0x2f24ed,Documents as _0x189c29,IRenderManagerService as _0x297a94,Image as _0x2c6b0b,RENDER_CLASS_TYPE as _0x407a18,SHEET_VIEWPORT_KEY as _0x61ec49,Shape as _0x30d1c4,Transform as _0x3bab71,UniverRenderEnginePlugin as _0x4579a4,Vector2 as _0x304485}from'@univerjs/engine-render';import{COPY_TYPE as _0xf143f2,ISheetClipboardService as _0x165587,PREDEFINED_HOOK_NAME as _0x403204,SheetCanvasPopManagerService as _0x38b394,SheetPrintInterceptorService as _0x1c54e8,SheetScrollManagerService as _0x3e3bbb,SheetSkeletonManagerService as _0x48c126,UniverSheetsUIPlugin as _0x1d8391,deriveStateFromActiveSheet$ as _0x525c18,getCurrentRangeDisable$ as _0x26b975,getViewportByCell as _0x3dd685}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x2c970e,EMPTY as _0x1198ce,Observable as _0x243af9,map as _0x30d3f5,of as _0x9a150f,startWith as _0x3992d1,switchMap as _0x11d4bf}from'rxjs';import{FormulaShapeAnimationController as _0x2acab2,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x2b7ae2,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x2a48ef,ShapeEditPanel as _0x369510,ShapeFloatingToolbar as _0xb6f545,ShapeGroupEnum as _0x176d3f,ShapePickerDropdown as _0x29e80a,ShapePickerPanel as _0x41d5aa,ShapeTextEditorContainer as _0x2189a3,ShapeTextFloatMenuRenderControllerBase as _0x4ab995,ShapeTextFloatToolbar as _0x5181cc,UniverShapeEditorUIPlugin as _0x1ee45e,activateDrawingObject as _0x185eb9,buildShapeTextDataUpdate as _0x25c3c6,clearActiveDrawingObjects as _0x5b4b31,drawFormulaShapeAnimationLayers as _0x2e8049,getTextModel as _0x54d766,getTextStyle as _0x5e4bce,normalizeShapeTextModel as _0x5e40d7,plainShapeTextToDocumentData as _0x420376,prepareShapeTextDocumentData as _0x2e4371,resolveFormulaShapeAutoFitSize as _0x46175e,resolveShapeTextDocumentRenderLayout as _0x189c4a,resolveShapeTextEditorBehaviorShapeData as _0x4d5687,resolveShapeTextEditorWrapStrategy as _0x2ad013,shouldAllowShapeTextEditorHostSizeShrink as _0x4f6d3a,shouldClipShapeTextDocument as _0xf99043,useFormulaShapeToolbar as _0x14e335}from'@univerjs-pro/shape-editor-ui';import{DrawingCommonPanel as _0x5f53ae,DrawingImageClipService as _0x5773e2,DrawingRenderService as _0x56246f,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x3d27a0,OBJECT_LIST_FLOATING_SECTION_ID as _0x5a455a,ObjectListPanelBase as _0x155589,UniverDrawingUIPlugin as _0x1485ee,getCurrentUnitInfo as _0x38af4c,getObjectListPanelLabels as _0x5ac108,getObjectListPanelSectionIdForDrawingType as _0x67bdd6,getObjectListPanelTypeName as _0x2b9a99,insertGroupObject as _0x57d837}from'@univerjs/drawing-ui';import{Fragment as _0x1370ea,jsx as _0x49d3c9,jsxs as _0x568cbe}from'react/jsx-runtime';import{UniverLicensePlugin as _0x573913}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x1d0921,UniverDocsPlugin as _0x449d42}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x2a16ba,DocSelectionRenderService as _0x4b8e76,UniverDocsUIPlugin as _0xd4f97b}from'@univerjs/docs-ui';import{DrawingApplyType as _0x11752e,ISheetDrawingService as _0x2a99b6,RemoveSheetDrawingCommand as _0x535cd6,SetDrawingApplyMutation as _0x555349,SetDrawingArrangeCommand as _0xb4ccfa,SetSheetDrawingCommand as _0x2cc676,UniverSheetsDrawingPlugin as _0x57144b,transformToAxisAlignPosition as _0x5aa2b7,transformToDrawingPosition as _0x43002e}from'@univerjs/sheets-drawing';import{SheetDrawingAnchor as _0xdce9e4,SheetsDrawingGroupCopyPasteController as _0x47dae5,UniverSheetsDrawingUIPlugin as _0x56149f}from'@univerjs/sheets-drawing-ui';import{FlipHorizontalIcon as _0x473587,FlipVerticalIcon as _0x1155bd,ObjectLayersIcon as _0x41a10e}from'@univerjs/icons';import{memo as _0x315608,useEffect as _0x2f51d2,useMemo as _0xfae447,useReducer as _0x10f2b3,useState as _0x115a69}from'react';function kn(_0x1e2ef8,_0x370fe7){const _0x4ff1a6=_0x5971;let _0xf86625={};for(let _0x220cb3 of Object[_0x4ff1a6(0x29e)](_0x370fe7)){let _0x49cc52=_0x370fe7[_0x220cb3],_0x3906d9=_0x1e2ef8[_0x220cb3];if(_0x49cc52!==void 0x0){if(_0x3906d9===void 0x0){_0xf86625[_0x220cb3]=void 0x0;continue;}typeof _0x49cc52==_0x4ff1a6(0x21a)&&_0x49cc52&&!Array[_0x4ff1a6(0x2f0)](_0x49cc52)&&typeof _0x3906d9==_0x4ff1a6(0x21a)&&_0x3906d9&&!Array['isArray'](_0x3906d9)?_0xf86625[_0x220cb3]=kn(_0x3906d9,_0x49cc52):_0xf86625[_0x220cb3]=_0x3906d9;}}return _0xf86625;}const An={'type':_0xd030d0[_0xcb6cbb(0x1fd)],'id':_0xcb6cbb(0x10d),'handler':(_0x4960ed,_0x799bda)=>{const _0x10502c=_0xcb6cbb;let _0x3de65f=_0x4960ed[_0x10502c(0x2da)](_0x231cef),{unitId:_0x1dfe7c,subUnitId:_0x2d64b6,shapeType:_0x570b99,shapeId:_0x4adb29,shapeData:_0x5e2fb8,oldShapeJSON:_0x587b03}=_0x799bda;if(!_0x3de65f[_0x10502c(0x2c4)](_0x1dfe7c,_0x2d64b6,_0x4adb29))return!0x1;let _0x56182b=_0x4960ed['get'](_0x3a72b1),_0x4b8b85=_0x4960ed['get'](_0x476dff),{oldShapeType:_0x45ba37,oldShapeData:_0x631b85={}}=_0x587b03,_0x50a758=kn(_0x631b85,_0x5e2fb8||{}),_0x45a26b={'id':_0x528850['id'],'params':{'unitId':_0x1dfe7c,'subUnitId':_0x2d64b6,'shapeId':_0x4adb29,'shapeType':_0x570b99,'shapeData':_0x5e2fb8}},_0x4b10e3={'id':_0x528850['id'],'params':{'unitId':_0x1dfe7c,'subUnitId':_0x2d64b6,'shapeId':_0x4adb29,'shapeType':_0x45ba37,'shapeData':_0x50a758}};return _0x56182b[_0x10502c(0xdc)](_0x45a26b['id'],_0x45a26b['params'])?(_0x4b8b85[_0x10502c(0x2cc)]({'unitID':_0x1dfe7c,'undoMutations':[_0x4b10e3],'redoMutations':[_0x45a26b]}),!0x0):!0x1;}};function _0x5971(_0x5262b0,_0x763d72){_0x5262b0=_0x5262b0-0xb6;const _0x10e225=_0x10e2();let _0x59718e=_0x10e225[_0x5262b0];return _0x59718e;}function jn(_0x2a3349,_0x285fe6,_0x2d0f82,_0x58809d,_0x47b65e,_0x19eb8a){const _0x1b595d=_0xcb6cbb;let _0x3c350e={'unitId':_0x285fe6,'subUnitId':_0x2d0f82,'shapeId':_0x58809d,'shapeData':_0x19eb8a,'oldShapeJSON':_0x47b65e};return _0x2a3349[_0x1b595d(0x29b)](An['id'],_0x3c350e);}function Mn(_0x3d1ed3,_0x5b2c33,_0x346796,_0x74db9a,_0x5f07eb,_0x490762){let _0x562e11={'unitId':_0x5b2c33,'subUnitId':_0x346796,'shapeId':_0x74db9a,'shapeData':_0x490762,'oldShapeJSON':_0x5f07eb};return _0x3d1ed3['executeCommand'](An['id'],_0x562e11);}function Nn(_0x2aaebc){'@babel/helpers - typeof';const _0x4acd06=_0xcb6cbb;return Nn=typeof Symbol=='function'&&typeof Symbol[_0x4acd06(0x175)]==_0x4acd06(0x2b1)?function(_0x199d48){return typeof _0x199d48;}:function(_0x564792){const _0x4b98bd=_0x4acd06;return _0x564792&&typeof Symbol=='function'&&_0x564792[_0x4b98bd(0xbc)]===Symbol&&_0x564792!==Symbol[_0x4b98bd(0xdb)]?_0x4b98bd(0x2b1):typeof _0x564792;},Nn(_0x2aaebc);}function Pn(_0x386c4d,_0xb4a917){const _0x526c48=_0xcb6cbb;if(Nn(_0x386c4d)!='object'||!_0x386c4d)return _0x386c4d;var _0x37aaed=_0x386c4d[Symbol['toPrimitive']];if(_0x37aaed!==void 0x0){var _0x2c27d5=_0x37aaed[_0x526c48(0x25a)](_0x386c4d,_0xb4a917||_0x526c48(0x14b));if(Nn(_0x2c27d5)!=_0x526c48(0x21a))return _0x2c27d5;throw TypeError(_0x526c48(0x1df));}return(_0xb4a917==='string'?String:Number)(_0x386c4d);}function Fn(_0x392155){const _0x3fb1fe=_0xcb6cbb;var _0x1e3d1d=Pn(_0x392155,_0x3fb1fe(0x2ad));return Nn(_0x1e3d1d)=='symbol'?_0x1e3d1d:_0x1e3d1d+'';}function Y(_0x408bd2,_0x1aac38,_0x218ff0){const _0x5c35bb=_0xcb6cbb;return(_0x1aac38=Fn(_0x1aac38))in _0x408bd2?Object[_0x5c35bb(0x12b)](_0x408bd2,_0x1aac38,{'value':_0x218ff0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x408bd2[_0x1aac38]=_0x218ff0,_0x408bd2;}function In(_0x438dcc,_0x2fddb1,_0x12d4ec){const _0x3ff638=_0xcb6cbb;var _0x1e7862;let _0x303fae=_0x4d5687(_0x438dcc,{..._0x2fddb1,'dataModel':{...(_0x1e7862=_0x2fddb1[_0x3ff638(0x24f)])==null?{}:_0x1e7862,..._0x12d4ec?{'doc':_0x12d4ec}:null}}),_0x5c51d1=_0x2ad013(_0x303fae);return{'clip':_0xf99043(_0x303fae,_0x5c51d1),'wrapStrategy':_0x5c51d1};}var Ln=class extends _0x30d1c4{constructor(_0x114fbc,_0x3787b7){const _0x500017=_0xcb6cbb;super(_0x114fbc,_0x3787b7),Y(this,_0x500017(0x243),void 0x0),Y(this,_0x500017(0x28d),new _0x2acab2(()=>this[_0x500017(0x1dd)](!0x0),()=>this['_applyFormulaAutoFitSize']())),Y(this,'_transformCalculateSrcRect',!0x0),Y(this,_0x500017(0x27d),_0x55872c[_0x500017(0x1ce)]),Y(this,_0x500017(0x202),!0x0),this['_props']={..._0x3787b7},this[_0x500017(0x28d)][_0x500017(0x2c5)](_0x3787b7[_0x500017(0x148)],_0x3787b7['animateFormulaPresentation']!==!0x1),this[_0x500017(0x316)](),this['_applyFormulaAutoFitSize']();}[_0xcb6cbb(0x316)](){const _0x46c468=_0xcb6cbb;this[_0x46c468(0x27c)][_0x46c468(0x2fe)](_0x33d9b9=>{const _0x2db8d9=_0x46c468;this[_0x2db8d9(0x215)](_0x33d9b9);});}[_0xcb6cbb(0x268)](_0x8003f1){const _0x56ab76=_0xcb6cbb;this[_0x56ab76(0x243)][_0x56ab76(0x2db)]=_0x8003f1;}[_0xcb6cbb(0x285)](_0x986cb2){const _0x164fcd=_0xcb6cbb;this[_0x164fcd(0x243)][_0x164fcd(0xfd)]=_0x986cb2,this['makeDirty'](!0x0);}['setFormulaPresentation'](_0x4729b1,_0x16fbc1=!0x0){const _0x3abb0a=_0xcb6cbb;this['_formulaAnimation'][_0x3abb0a(0x2c5)](_0x4729b1,_0x16fbc1),this[_0x3abb0a(0x243)][_0x3abb0a(0x148)]=_0x4729b1,this['_applyFormulaAutoFitSize'](),this[_0x3abb0a(0x1dd)](!0x0);}[_0xcb6cbb(0x210)](){const _0x23b420=_0xcb6cbb;let _0x32a8a5=this[_0x23b420(0x243)][_0x23b420(0x279)],_0x6a7d75=_0x32a8a5[_0x23b420(0x19d)](),_0x3b4c8c=_0x5e40d7(_0x6a7d75==null?void 0x0:_0x6a7d75[_0x23b420(0x24f)]),_0x894940=_0x3b4c8c==null?void 0x0:_0x3b4c8c[_0x23b420(0x185)],_0x1a928f=this[_0x23b420(0x28d)]['getAutoFitPresentations']();if(!_0x894940||_0x1a928f[_0x23b420(0x25d)]===0x0)return;_0x32a8a5['updateContext']({'width':this[_0x23b420(0x1fb)],'height':this[_0x23b420(0x123)]});let _0x34da03=_0x46175e({'documentData':_0x1a928f['map'](_0xf70dbb=>_0x267ca5(_0x894940,_0xf70dbb)),'height':this[_0x23b420(0x123)],'shapeData':_0x32a8a5[_0x23b420(0x113)](),'textRect':_0x32a8a5[_0x23b420(0x26b)]({'left':0x0,'top':0x0,'width':this[_0x23b420(0x1fb)],'height':this[_0x23b420(0x123)]}),'width':this[_0x23b420(0x1fb)]});if(_0x34da03){var _0xc6b3ef;this['resize'](_0x34da03[_0x23b420(0x1fb)],_0x34da03[_0x23b420(0x123)]),(_0xc6b3ef=this[_0x23b420(0xe6)]())==null||(_0xc6b3ef=_0xc6b3ef['getTransformer']())==null||_0xc6b3ef[_0x23b420(0x128)]();}}get['unitId'](){const _0x51683f=_0xcb6cbb;return this[_0x51683f(0x243)][_0x51683f(0x241)];}get[_0xcb6cbb(0x281)](){const _0x12ecc6=_0xcb6cbb;return this['_props'][_0x12ecc6(0x281)];}[_0xcb6cbb(0x215)](_0x3d79f6){const _0x5327ab=_0xcb6cbb;if(this[_0x5327ab(0x243)][_0x5327ab(0x200)]==null||!this[_0x5327ab(0x325)])return;let {width:_0x2de1c5,height:_0x59e524}=this,{width:_0x3ef4ff=0x0,height:_0x440159=0x0}=_0x3d79f6['preValue'],{left:_0x39265d=0x0,top:_0x9ab6aa=0x0,right:_0x9dcd14=0x0,bottom:_0x1b0d71=0x0}=this[_0x5327ab(0x243)][_0x5327ab(0x200)],_0x1553a0=_0x39265d,_0x2823a3=_0x9ab6aa,_0x41e8e5=_0x9dcd14,_0x1a7072=_0x1b0d71,_0x465307=!0x1;if(_0x3ef4ff!==0x0&&_0x3ef4ff!==_0x2de1c5){let _0x337bfd=_0x39265d/_0x3ef4ff,_0x544288=_0x9dcd14/_0x3ef4ff;_0x1553a0=_0x2de1c5*_0x337bfd,_0x41e8e5=_0x2de1c5*_0x544288,_0x465307=!0x0;}if(_0x440159!==0x0&&_0x440159!==_0x59e524){let _0x83074f=_0x9ab6aa/_0x440159,_0x56dc31=_0x1b0d71/_0x440159;_0x2823a3=_0x59e524*_0x83074f,_0x1a7072=_0x59e524*_0x56dc31,_0x465307=!0x0;}_0x465307&&this[_0x5327ab(0xc3)]({'left':_0x1553a0,'top':_0x2823a3,'right':_0x41e8e5,'bottom':_0x1a7072});}['setSrcRect'](_0x2fca13){const _0x202ab1=_0xcb6cbb;this[_0x202ab1(0x243)][_0x202ab1(0x200)]=_0x2fca13,this[_0x202ab1(0x1dd)](!0x0);}[_0xcb6cbb(0x245)](_0x483acd){const _0xe3a2d5=_0xcb6cbb;this[_0xe3a2d5(0x243)][_0xe3a2d5(0xf9)]=_0x483acd,this[_0xe3a2d5(0x1dd)](!0x0);}set['transform'](_0x1b1462){const _0x120435=_0xcb6cbb;this[_0x120435(0x2b5)]=_0x1b1462;}get['transform'](){const _0x861fdb=_0xcb6cbb;this[_0x861fdb(0x2b5)]||this[_0x861fdb(0x2ae)]();let _0x37c486=this['_transform'][_0x861fdb(0x2d1)]();return this[_0x861fdb(0x271)](_0x37c486);}get[_0xcb6cbb(0x279)](){const _0x3497a0=_0xcb6cbb;return this[_0x3497a0(0x243)]['shapeModel'];}get[_0xcb6cbb(0x124)](){const _0x1a795a=_0xcb6cbb;return this[_0x1a795a(0x243)][_0x1a795a(0x124)];}get[_0xcb6cbb(0x213)](){return _0x407a18['SHAPE'];}[_0xcb6cbb(0x2d9)](_0x137e31,_0x2bcf61,_0x395043,_0x12cf09){const _0x6760f8=_0xcb6cbb;let _0x5eee64=this[_0x6760f8(0x243)][_0x6760f8(0x279)];if(!_0x5eee64||!_0x2bcf61)return;let _0x35004b=_0x395043==null?this[_0x6760f8(0x1fb)]:_0x395043,_0xbec58e=_0x12cf09==null?this['height']:_0x12cf09,_0x3c3383={'shapeType':_0x5eee64[_0x6760f8(0xb7)](),'width':_0x35004b,'height':_0xbec58e},_0xda0381={'renderMode':_0x30553a[_0x6760f8(0x282)],'oKey':this['oKey'],'image':this[_0x6760f8(0x243)][_0x6760f8(0xf9)],'angle':this[_0x6760f8(0x31f)]};_0x5eee64['updateContext'](_0x3c3383),_0x137e31[_0x6760f8(0x321)]();let _0x70b2dc={'top':0x0,'left':0x0,'width':_0x35004b,'height':_0xbec58e},_0x31da19=_0x5eee64[_0x6760f8(0x308)](_0x70b2dc);_0x31da19?this['_renderWithCache'](_0x137e31,_0x31da19,_0x263890=>{const _0x468b6b=_0x6760f8;_0x5eee64[_0x468b6b(0x327)](_0x263890,_0x70b2dc,_0xda0381);}):(this[_0x6760f8(0x2dc)](),_0x5eee64[_0x6760f8(0x327)](_0x137e31,_0x70b2dc,_0xda0381)),_0x137e31[_0x6760f8(0x267)]();let _0x2247c9=_0x5eee64[_0x6760f8(0x19d)](),_0x234f56=_0x5eee64['getShapeTextRect'](_0x70b2dc),_0x19c29f=_0x5eee64[_0x6760f8(0x1ef)]();if(_0x2247c9&&_0x234f56&&!_0x19c29f){_0x137e31['save'](),this[_0x6760f8(0x2e0)]()['flipX']&&_0x137e31[_0x6760f8(0x21c)](-0x1,0x1);let _0x45156f=_0x35004b/0x2,_0x36570c=_0xbec58e/0x2;_0x137e31[_0x6760f8(0xfa)](-_0x45156f,-_0x36570c),_0x137e31[_0x6760f8(0xb8)](),this[_0x6760f8(0x18f)](_0x137e31,_0x2247c9,_0x234f56),_0x137e31['restore']();}}[_0xcb6cbb(0x13c)](_0x3a7989){}[_0xcb6cbb(0x18f)](_0x7d94c1,_0x5b4304,_0x48c77f){const _0x3a480d=_0xcb6cbb;var _0x45b084;this['_props'][_0x3a480d(0xfd)]||(!((_0x45b084=_0x5b4304[_0x3a480d(0x24f)])!=null&&_0x45b084['doc'])&&_0x3a480d(0x2fc)in _0x5b4304&&_0x5b4304[_0x3a480d(0x2fc)]===!0x1?this[_0x3a480d(0x1b3)](_0x7d94c1,_0x5b4304,_0x48c77f):this[_0x3a480d(0x159)](_0x7d94c1,_0x5b4304,_0x48c77f));}[_0xcb6cbb(0x1b3)](_0x3b3f81,_0x11a73e,_0x596db2){const _0x15034f=_0xcb6cbb;var _0x5a5ce2;this[_0x15034f(0x159)](_0x3b3f81,{..._0x11a73e,'text':(_0x5a5ce2=_0x11a73e[_0x15034f(0x207)])==null?'':_0x5a5ce2,'dataModel':{'doc':_0x420376(_0x11a73e,_0x15034f(0x1dc)+this['oKey'])}},_0x596db2);}['_drawRichText'](_0xbe77ab,_0x22da18,_0x1ff41b){const _0x318c59=_0xcb6cbb;_0x2e8049(_0xbe77ab,this[_0x318c59(0x28d)],(_0x40b08d,_0x3ad778)=>{const _0x3e70f3=_0x318c59;this[_0x3e70f3(0x197)](_0x40b08d,_0x22da18,_0x1ff41b,_0x3ad778);});}[_0xcb6cbb(0x197)](_0x34dc32,_0x194cf7,_0x40f0c4,_0x2198f7){const _0x20c688=_0xcb6cbb;var _0x550211,_0x24f2b4;let _0x1f00be=this[_0x20c688(0x243)][_0x20c688(0x27f)];if(!_0x194cf7['dataModel']||!_0x1f00be)return;let _0x50f3ef=_0x5e40d7(_0x194cf7[_0x20c688(0x24f)]);if(!_0x50f3ef)return;let _0x261525=_0x50f3ef['doc'];if(!_0x261525)return;let _0x49e00c=_0x267ca5(_0x261525,_0x2198f7),_0x2fea4b=(_0x550211=_0x50f3ef['va'])==null?_0x4874a7[_0x20c688(0x23a)]:_0x550211,_0x4d7341=(_0x24f2b4=_0x50f3ef['ha'])==null?_0x166f93[_0x20c688(0xd2)]:_0x24f2b4,_0x3f7a17=In(this[_0x20c688(0x243)][_0x20c688(0x279)][_0x20c688(0x113)](),_0x194cf7,_0x49e00c),_0x3b4d17=_0x194cf7[_0x20c688(0x195)],_0x21f171=new _0x1c3437(_0x2e4371(_0x49e00c,{'isHorizontal':_0x3b4d17!==!0x1,'textRect':_0x40f0c4,'verticalAlign':_0x2fea4b,'horizontalAlign':_0x4d7341,'wrapStrategy':_0x3f7a17[_0x20c688(0x102)]})),_0x226805=new _0x2f24ed(_0x21f171),_0x88f2e2=_0xd9ea3b[_0x20c688(0x1bb)](_0x226805,_0x1f00be);_0x88f2e2['calculate']();let _0x3a3fd0=_0x88f2e2[_0x20c688(0x2c0)]()['actualHeight'],_0x2b6f31=_0x189c4a({'contentHeight':_0x3a3fd0,'verticalAlign':_0x2fea4b,'viewportHeight':_0x40f0c4['height']});_0x21f171['updateDocumentStyle']({'pageSize':{'width':_0x3b4d17===!0x1?_0x40f0c4[_0x20c688(0x123)]:_0x40f0c4[_0x20c688(0x1fb)],'height':_0x2b6f31[_0x20c688(0x170)]}}),_0x21f171[_0x20c688(0x103)]({'t':_0x2b6f31[_0x20c688(0x22e)]}),_0x88f2e2['calculate']();let _0x4a63c0=new _0x189c29(_0x20c688(0x1cb)+this[_0x20c688(0x303)],_0x88f2e2,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x20c688(0x1dd)](!0x0)});_0x4a63c0[_0x20c688(0x10a)](_0x40f0c4[_0x20c688(0x1fb)],_0x2b6f31[_0x20c688(0x170)]),_0x34dc32[_0x20c688(0x321)](),_0x34dc32[_0x20c688(0x313)](_0x40f0c4[_0x20c688(0x1db)],_0x40f0c4[_0x20c688(0x163)]),_0x3f7a17['clip']&&(_0x34dc32[_0x20c688(0xb8)](),_0x34dc32['rect'](0x0,_0x2b6f31[_0x20c688(0xcb)],_0x40f0c4[_0x20c688(0x1fb)],_0x2b6f31['clipHeight']),_0x34dc32[_0x20c688(0x10b)]()),_0x2b6f31['contentVerticalOffset']&&_0x34dc32[_0x20c688(0x313)](0x0,_0x2b6f31[_0x20c688(0x110)]),_0x4a63c0['draw'](_0x34dc32),_0x34dc32[_0x20c688(0x267)](),_0x4a63c0[_0x20c688(0x20e)](),_0x88f2e2[_0x20c688(0x20e)](),_0x226805['dispose'](),_0x21f171['dispose']();}['render'](_0x14a44f,_0x426efd,_0x83d178=!0x1){const _0xa71962=_0xcb6cbb;if(!this[_0xa71962(0x1f5)])return this[_0xa71962(0x1dd)](!0x1),this;let {width:_0x3d7864,height:_0x11b01d,left:_0xa5d8ab,top:_0x17f6d0}=this,_0x8b1643=this[_0xa71962(0x1f3)]();if(_0x3d7864=_0x8b1643[_0xa71962(0x1fb)],_0x11b01d=_0x8b1643[_0xa71962(0x123)],_0xa5d8ab=_0x8b1643['left'],_0x17f6d0=_0x8b1643[_0xa71962(0x163)],this[_0xa71962(0x324)](_0x426efd)){let {top:_0x56b129,left:_0x3e1da0,bottom:_0xc3248e,right:_0x382fdb}=_0x426efd[_0xa71962(0xf8)];if(_0x3d7864+this['strokeWidth']+_0xa5d8ab<_0x3e1da0||_0x382fdb<_0xa5d8ab||_0x11b01d+this[_0xa71962(0x189)]+_0x17f6d0<_0x56b129||_0xc3248e<_0x17f6d0)return this;}let _0x4ed66b=_0xa5d8ab+_0x3d7864/0x2,_0x36a838=_0x17f6d0+_0x11b01d/0x2,_0x1e84a4=this[_0xa71962(0xce)][_0xa71962(0x1c9)]();if(this[_0xa71962(0x243)][_0xa71962(0xfd)]){let _0x1d9681=this[_0xa71962(0x2e0)](),_0x5f16af=new _0x3bab71();_0x5f16af[_0xa71962(0x1d9)]({..._0x1d9681}),_0x1e84a4=_0x5f16af['getMatrix']();}return _0x14a44f[_0xa71962(0x321)](),this[_0xa71962(0x243)][_0xa71962(0x279)][_0xa71962(0x306)]===!0x0||_0x14a44f['transform'](_0x1e84a4[0x0],_0x1e84a4[0x1],_0x1e84a4[0x2],_0x1e84a4[0x3],_0x4ed66b,_0x36a838),this[_0xa71962(0x2d9)](_0x14a44f,_0x426efd,_0x3d7864,_0x11b01d),_0x14a44f[_0xa71962(0x267)](),this[_0xa71962(0x1dd)](!0x1),this;}[_0xcb6cbb(0x242)](_0x3ab02c){const _0x120a12=_0xcb6cbb;let {left:_0x169c80,top:_0x6f015b,width:_0x3942a0,height:_0x2cafee}=this[_0x120a12(0x1f3)](),_0x37cbdc=this['transform'][_0x120a12(0x1c9)](),_0x5b6692=_0x169c80+_0x3942a0/0x2,_0x15c4d9=_0x6f015b+_0x2cafee/0x2,_0x395448=new _0x3bab71([_0x37cbdc[0x0],_0x37cbdc[0x1],_0x37cbdc[0x2],_0x37cbdc[0x3],_0x5b6692,_0x15c4d9]),_0x150033=this[_0x120a12(0x19c)]();return(this[_0x120a12(0x2a0)]&&(_0x150033==null?void 0x0:_0x150033[_0x120a12(0x213)])===_0x407a18[_0x120a12(0x2c8)]?_0x150033[_0x120a12(0x262)][_0x120a12(0xe1)](_0x395448):_0x395448)['invert']()[_0x120a12(0x235)](_0x3ab02c);}['isHit'](_0x472c85){const _0x1a82bf=_0xcb6cbb;let {left:_0x2f0d3f,top:_0x55dfb7,width:_0x5c1e9d,height:_0x35c913}=this['getRealBound'](),_0x20c2e5=_0x2f0d3f+_0x5c1e9d/0x2,_0x92c4a=_0x55dfb7+_0x35c913/0x2,_0x3cadd2=this['transform'][_0x1a82bf(0x1c9)](),_0x410361=new _0x3bab71([_0x3cadd2[0x0],_0x3cadd2[0x1],_0x3cadd2[0x2],_0x3cadd2[0x3],_0x20c2e5,_0x92c4a]),_0x11555a=this[_0x1a82bf(0x19c)](),_0x291ac1=(this[_0x1a82bf(0x2a0)]&&(_0x11555a==null?void 0x0:_0x11555a[_0x1a82bf(0x213)])===_0x407a18[_0x1a82bf(0x2c8)]?_0x11555a[_0x1a82bf(0x262)][_0x1a82bf(0xe1)](_0x410361):_0x410361)['invert']()['applyPoint'](_0x472c85),_0x49b70f=_0x5c1e9d/0x2,_0x5276de=_0x35c913/0x2,_0x147532=this[_0x1a82bf(0x243)][_0x1a82bf(0x279)];return _0x147532&&_0x147532[_0x1a82bf(0x1ef)]()?_0x147532[_0x1a82bf(0x209)](_0x291ac1['x'],_0x291ac1['y'],_0x5c1e9d,_0x35c913):_0x291ac1['x']>=-_0x49b70f-this['strokeWidth']/0x2&&_0x291ac1['x']<=_0x49b70f+this['strokeWidth']/0x2&&_0x291ac1['y']>=-_0x5276de-this[_0x1a82bf(0x189)]/0x2&&_0x291ac1['y']<=_0x5276de+this['strokeWidth']/0x2;}[_0xcb6cbb(0x20e)](){const _0x4ad48c=_0xcb6cbb;this[_0x4ad48c(0x28d)][_0x4ad48c(0x20e)](),this[_0x4ad48c(0x243)][_0x4ad48c(0x279)]=null,super['dispose']();}},Rn=class extends _0x30d1c4{constructor(_0x5dbefc,_0x359a29){const _0x1a6f6e=_0xcb6cbb;super(_0x5dbefc,_0x359a29),Y(this,_0x1a6f6e(0x252),null),Y(this,_0x1a6f6e(0x275),null),Y(this,'_unitId',null),Y(this,_0x1a6f6e(0x13b),null),_0x359a29&&this[_0x1a6f6e(0x315)](_0x359a29);}[_0xcb6cbb(0x23d)](){const _0x96573e=_0xcb6cbb;return{'unitId':this[_0x96573e(0x2aa)],'subUnitId':this[_0x96573e(0x13b)],'drawingId':this[_0x96573e(0x252)]};}[_0xcb6cbb(0x315)](_0x2d448c){const _0x4b00ab=_0xcb6cbb;_0x2d448c[_0x4b00ab(0x124)]!==void 0x0&&(this[_0x4b00ab(0x252)]=_0x2d448c[_0x4b00ab(0x124)]),_0x2d448c[_0x4b00ab(0x2bc)]!==void 0x0&&(this[_0x4b00ab(0x275)]=_0x2d448c[_0x4b00ab(0x2bc)]),_0x2d448c[_0x4b00ab(0x241)]!==void 0x0&&(this['_unitId']=_0x2d448c[_0x4b00ab(0x241)]),_0x2d448c[_0x4b00ab(0x281)]!==void 0x0&&(this[_0x4b00ab(0x13b)]=_0x2d448c[_0x4b00ab(0x281)]),this[_0x4b00ab(0xdd)]({'width':_0x2d448c[_0x4b00ab(0x1fb)],'height':_0x2d448c[_0x4b00ab(0x123)]});}[_0xcb6cbb(0x2d9)](_0x2cb7a9){const _0x490517=_0xcb6cbb;_0x38d822[_0x490517(0x264)](_0x2cb7a9,{'radius':_0x3cbe53[_0x490517(0xf0)],'fill':_0x3cbe53['adjHandleFill'],'stroke':_0x3cbe53[_0x490517(0x217)],'strokeWidth':0x1,'evented':!0x0});}};function X(_0x3335bd,_0x444e31){return function(_0x5f174e,_0x4072fd){_0x444e31(_0x5f174e,_0x4072fd,_0x3335bd);};}function Z(_0x25adef,_0x16c74f,_0x53b56d,_0x141024){const _0x35550d=_0xcb6cbb;var _0x79103e=arguments[_0x35550d(0x25d)],_0x9a7d94=_0x79103e<0x3?_0x16c74f:_0x141024===null?_0x141024=Object[_0x35550d(0x1fe)](_0x16c74f,_0x53b56d):_0x141024,_0x379af6;if(typeof Reflect==_0x35550d(0x21a)&&typeof Reflect['decorate']=='function')_0x9a7d94=Reflect[_0x35550d(0x218)](_0x25adef,_0x16c74f,_0x53b56d,_0x141024);else{for(var _0x359bf3=_0x25adef[_0x35550d(0x25d)]-0x1;_0x359bf3>=0x0;_0x359bf3--)(_0x379af6=_0x25adef[_0x359bf3])&&(_0x9a7d94=(_0x79103e<0x3?_0x379af6(_0x9a7d94):_0x79103e>0x3?_0x379af6(_0x16c74f,_0x53b56d,_0x9a7d94):_0x379af6(_0x16c74f,_0x53b56d))||_0x9a7d94);}return _0x79103e>0x3&&_0x9a7d94&&Object[_0x35550d(0x12b)](_0x16c74f,_0x53b56d,_0x9a7d94),_0x9a7d94;}let Q=class extends _0x444b76{constructor(_0x4c374d,_0x1dde68,_0x2f8fe2,_0x4ea707,_0x52c811,_0x3fbd68){const _0x32be1c=_0xcb6cbb;super(),this[_0x32be1c(0x1ad)]=_0x4c374d,this['_sheetsShapeService']=_0x1dde68,this['_localeService']=_0x2f8fe2,this[_0x32be1c(0x317)]=_0x4ea707,this[_0x32be1c(0x145)]=_0x52c811,this[_0x32be1c(0x2ce)]=_0x3fbd68,Y(this,_0x32be1c(0x164),new Map()),this[_0x32be1c(0x2d6)](this['_shapeFormulaService'][_0x32be1c(0x18b)][_0x32be1c(0x2f7)](_0x51559e=>{const _0x5e2ad1=_0x32be1c;var _0x6335b;(_0x6335b=this['_formulaShapes'][_0x5e2ad1(0x2da)](this[_0x5e2ad1(0x105)](_0x51559e[_0x5e2ad1(0x241)],_0x51559e[_0x5e2ad1(0x281)],_0x51559e[_0x5e2ad1(0x124)])))==null||_0x6335b[_0x5e2ad1(0x26a)](_0x5e120a=>_0x5e120a['setFormulaPresentation'](_0x51559e[_0x5e2ad1(0xe0)],_0x51559e['animationEnabled']));})),this[_0x32be1c(0x2d6)](this[_0x32be1c(0x1ad)]['remove$'][_0x32be1c(0x2f7)](_0x2bb53d=>{const _0x3c0927=_0x32be1c;_0x2bb53d[_0x3c0927(0x26a)](_0x5351b8=>{const _0x1f9a4c=_0x3c0927;this[_0x1f9a4c(0x2ce)][_0x1f9a4c(0xff)]({'unitId':_0x5351b8[_0x1f9a4c(0x241)],'subUnitId':_0x5351b8[_0x1f9a4c(0x281)],'shapeId':_0x5351b8[_0x1f9a4c(0x10e)]}),this[_0x1f9a4c(0x164)][_0x1f9a4c(0x2a6)](this[_0x1f9a4c(0x105)](_0x5351b8[_0x1f9a4c(0x241)],_0x5351b8[_0x1f9a4c(0x281)],_0x5351b8[_0x1f9a4c(0x10e)]));});}));}[_0xcb6cbb(0x1f9)](_0x294da3,_0x50b2f5,_0x27a4c6){const _0x266e10=_0xcb6cbb;let {transform:_0x543189,drawingType:_0xa63eed,srcRect:_0x59042e,prstGeom:_0x32517b,groupId:_0x1b1643,unitId:_0x51ae52,subUnitId:_0x52f980,drawingId:_0x2a761d,isMultiTransform:_0x54cc99,transforms:_0x1cf848,hidden:_0xc70a49,selectable:_0x5254ba}=_0x294da3;if(_0xa63eed!==_0x55872c[_0x266e10(0x1ce)]||!this['_drawingManagerService'][_0x266e10(0x2ef)]()||_0x543189==null)return;let _0x1f12f3=this[_0x266e10(0x1ad)][_0x266e10(0x1e6)]();_0x1f12f3&&_0x50b2f5[_0x266e10(0x2ee)](_0x2b7ae2);let _0x219575=_0x54cc99&&_0x1cf848?_0x1cf848:[_0x543189],_0x21303e=[];for(let _0x1667b0 of _0x219575){let {left:_0x44372f,top:_0x252a3d,width:_0x284fb2,height:_0x541411,angle:_0x575f32,flipX:_0x314ca2,flipY:_0x3c2e75,skewX:_0x5c88f1,skewY:_0x18dd14}=_0x1667b0,_0x2bc4c2=_0x219575[_0x266e10(0xd1)](_0x1667b0),_0x49050d=_0x4f98bd({'unitId':_0x51ae52,'subUnitId':_0x52f980,'drawingId':_0x2a761d},_0x54cc99?_0x2bc4c2:void 0x0),_0x302e76=_0x50b2f5[_0x266e10(0x114)](_0x49050d);if(_0x302e76!=null){let _0x215e82={'unitId':_0x51ae52,'subUnitId':_0x52f980,'shapeId':_0x2a761d};_0x302e76 instanceof Ln&&this[_0x266e10(0x129)](_0x302e76,_0x215e82),_0x302e76[_0x266e10(0xdd)]({'left':_0x44372f,'top':_0x252a3d,'width':_0x284fb2,'height':_0x541411,'angle':_0x575f32,'flipX':_0x314ca2,'flipY':_0x3c2e75,'skewX':_0x5c88f1,'skewY':_0x18dd14});continue;}let _0x5cdfb4=this[_0x266e10(0x1ad)][_0x266e10(0x14a)](_0x51ae52,_0x52f980),_0x387a5d=_0x5cdfb4[_0x266e10(0xd1)](_0x2a761d);if(_0x50b2f5['getObjectIncludeInGroup'](_0x49050d)||!this[_0x266e10(0x1ad)][_0x266e10(0x2ef)]())continue;let _0x381f5c=this[_0x266e10(0x287)][_0x266e10(0x2c4)](_0x51ae52,_0x52f980,_0x2a761d);if(!_0x381f5c)continue;let _0x40cd98=_0x286130(_0x381f5c[_0x266e10(0xb7)]()),_0x3ca477=_0x381f5c['getShapeData']()[_0x266e10(0x138)],_0x4a111e={'unitId':_0x51ae52,'subUnitId':_0x52f980,'shapeId':_0x2a761d};_0x3ca477&&this[_0x266e10(0x2ce)][_0x266e10(0xfb)](_0x4a111e,_0x3ca477);let _0x5ea9b2=new Ln(_0x49050d,{..._0x40cd98?{..._0x1667b0,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x1667b0},'zIndex':_0x387a5d===-0x1?_0x5cdfb4[_0x266e10(0x25d)]-0x1:_0x387a5d,'shapeModel':_0x381f5c,'localeService':this[_0x266e10(0x158)],'shapeId':_0x2a761d,'unitId':_0x51ae52,'subUnitId':_0x52f980,'visible':_0xc70a49!==!0x0,'evented':_0x5254ba!==!0x1,'formulaPresentation':_0x3ca477?this['_shapeFormulaService'][_0x266e10(0x1f4)](_0x4a111e):void 0x0,'animateFormulaPresentation':(_0x3ca477==null?void 0x0:_0x3ca477[_0x266e10(0x1a3)])!==!0x1});if(_0x3ca477){var _0x540411;let _0x409220=this[_0x266e10(0x105)](_0x51ae52,_0x52f980,_0x2a761d),_0x3f4098=(_0x540411=this[_0x266e10(0x164)][_0x266e10(0x2da)](_0x409220))==null?new Set():_0x540411;_0x3f4098['add'](_0x5ea9b2),this['_formulaShapes'][_0x266e10(0x26e)](_0x409220,_0x3f4098);}_0x50b2f5[_0x266e10(0x212)](_0x5ea9b2,_0x338629),_0x1f12f3&&_0x50b2f5['attachTransformerTo'](_0x5ea9b2),_0x1b1643&&_0x57d837({'drawingId':_0x1b1643,'unitId':_0x51ae52,'subUnitId':_0x52f980},_0x5ea9b2,_0x50b2f5,this['_drawingManagerService']),_0x32517b!=null&&_0x5ea9b2['setPrstGeom'](_0x32517b),_0x59042e!=null&&_0x5ea9b2[_0x266e10(0xc3)](_0x59042e);let _0x184ff5=this[_0x266e10(0x1e5)](_0x5ea9b2,_0x381f5c[_0x266e10(0x113)]());if(_0x184ff5){var _0x12a0cf;_0x27a4c6==null||(_0x12a0cf=_0x27a4c6[_0x266e10(0x1ba)])==null||_0x12a0cf[_0x266e10(0x1b9)](_0x184ff5);}_0x21303e[_0x266e10(0x311)](_0x5ea9b2);}return _0x21303e;}[_0xcb6cbb(0x105)](_0x5a1c04,_0xbb7090,_0x4f9770){return _0x5a1c04+'\x00'+_0xbb7090+'\x00'+_0x4f9770;}[_0xcb6cbb(0x129)](_0x1b0437,_0x1a3097){const _0x1f9746=_0xcb6cbb;let _0x35ef15=this['_sheetsShapeService'][_0x1f9746(0x2c4)](_0x1a3097['unitId'],_0x1a3097[_0x1f9746(0x281)],_0x1a3097[_0x1f9746(0x124)]),_0x4ec5d5=_0x35ef15==null?void 0x0:_0x35ef15[_0x1f9746(0x113)]()[_0x1f9746(0x138)],_0x44f65a=this[_0x1f9746(0x105)](_0x1a3097[_0x1f9746(0x241)],_0x1a3097[_0x1f9746(0x281)],_0x1a3097[_0x1f9746(0x124)]);if(_0x4ec5d5){var _0x5a9aaa;this[_0x1f9746(0x2ce)][_0x1f9746(0xfb)](_0x1a3097,_0x4ec5d5);let _0x5d3d0c=(_0x5a9aaa=this[_0x1f9746(0x164)][_0x1f9746(0x2da)](_0x44f65a))==null?new Set():_0x5a9aaa;_0x5d3d0c['add'](_0x1b0437),this[_0x1f9746(0x164)][_0x1f9746(0x26e)](_0x44f65a,_0x5d3d0c);}else{var _0x2a9a4a;this[_0x1f9746(0x2ce)][_0x1f9746(0xff)](_0x1a3097),(_0x2a9a4a=this[_0x1f9746(0x164)]['get'](_0x44f65a))==null||_0x2a9a4a[_0x1f9746(0x2a6)](_0x1b0437);}_0x1b0437['setFormulaPresentation'](_0x4ec5d5?this[_0x1f9746(0x2ce)][_0x1f9746(0x1f4)](_0x1a3097):void 0x0,(_0x4ec5d5==null?void 0x0:_0x4ec5d5[_0x1f9746(0x1a3)])!==!0x1);}[_0xcb6cbb(0x15c)](_0x55eecc){const _0x2ce339=_0xcb6cbb;let _0x1f9cf2=_0x55eecc['shapeModel'][_0x2ce339(0x113)](),_0x1a359b=_0x1f9cf2[_0x2ce339(0x2e6)];if(!_0x1a359b||_0x1a359b[_0x2ce339(0x22a)]!==_0x208105[_0x2ce339(0x14c)]||!_0x1a359b['fillImageSource']){_0x55eecc['setFillImage'](void 0x0);return;}this[_0x2ce339(0x1e5)](_0x55eecc,_0x1f9cf2);}[_0xcb6cbb(0x1e5)](_0x1ee015,_0x5695ee){const _0x2709cc=_0xcb6cbb;var _0x11cff2;let _0x7f5bc9=_0x5695ee[_0x2709cc(0x2e6)];if(!_0x7f5bc9||_0x7f5bc9[_0x2709cc(0x22a)]!==_0x208105[_0x2709cc(0x14c)]||!_0x7f5bc9[_0x2709cc(0xbd)])return;let _0x5338ee=_0x7f5bc9['fillImageSource'],_0x5ba108=(_0x11cff2=_0x7f5bc9[_0x2709cc(0xcf)])==null?_0x1d28e9[_0x2709cc(0x2af)]:_0x11cff2,_0x4e972d=this['_imageIoService'][_0x2709cc(0x297)](_0x5338ee,_0x5ba108);if(_0x4e972d){_0x1ee015[_0x2709cc(0x245)](_0x4e972d);return;}return this[_0x2709cc(0x223)](_0x1ee015,_0x5338ee,_0x5ba108);}async[_0xcb6cbb(0x223)](_0x319bdf,_0x2d067f,_0x3e5a58){const _0x3be791=_0xcb6cbb;let _0x21f6f1;try{if(_0x3e5a58===_0x1d28e9['UUID'])_0x21f6f1=await this[_0x3be791(0x317)][_0x3be791(0x11e)](_0x2d067f);else{if(_0x3e5a58===_0x1d28e9[_0x3be791(0x2af)])try{_0x21f6f1=await this[_0x3be791(0x145)][_0x3be791(0x11e)](_0x2d067f);}catch{_0x21f6f1=_0x2d067f;}else _0x21f6f1=_0x2d067f;}}catch(_0x123a81){console['error']('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x123a81);return;}await new Promise(_0x3811b8=>{const _0x202f90=_0x3be791;let _0x5dd550=new window[(_0x202f90(0x155))]();_0x5dd550[_0x202f90(0x238)]=()=>{const _0x2d6e8d=_0x202f90;this[_0x2d6e8d(0x317)][_0x2d6e8d(0x2bb)](_0x2d067f,_0x3e5a58,_0x5dd550),_0x319bdf[_0x2d6e8d(0x245)](_0x5dd550),_0x3811b8();},_0x5dd550['onerror']=()=>{const _0x37be4f=_0x202f90;console[_0x37be4f(0x176)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x2d067f),_0x3811b8();},_0x5dd550[_0x202f90(0x2d4)]=_0x21f6f1;});}};Q=Z([X(0x0,_0x5a1ed0),X(0x1,_0x25d6be(_0x231cef)),X(0x2,_0x25d6be(_0x498c36)),X(0x3,_0x5939d4),X(0x4,_0x379500),X(0x5,_0x25d6be(_0x246f9b))],Q);let zn=class extends _0x444b76{constructor(_0x5c0355,_0x39feaa,_0x1ec9f7,_0x43156b,_0x3865ee,_0x470c70){const _0x5d43ba=_0xcb6cbb;super(),this[_0x5d43ba(0x1ad)]=_0x5c0355,this[_0x5d43ba(0x287)]=_0x39feaa,this[_0x5d43ba(0x154)]=_0x1ec9f7,this['_sheetDrawingShapeRenderController']=_0x43156b,this[_0x5d43ba(0x23f)]=_0x3865ee,this[_0x5d43ba(0x300)]=_0x470c70,Y(this,_0x5d43ba(0x2c1),null),Y(this,_0x5d43ba(0x2aa),null),Y(this,_0x5d43ba(0x13b),null),Y(this,_0x5d43ba(0xfe),void 0x0),Y(this,_0x5d43ba(0x1e9),[]),Y(this,'_baseShapeLeft',0x0),Y(this,_0x5d43ba(0x277),0x0),Y(this,_0x5d43ba(0x2a4),0x0),Y(this,_0x5d43ba(0x198),0x0),Y(this,_0x5d43ba(0x2e3),!0x1),Y(this,_0x5d43ba(0x2f5),void 0x0),Y(this,_0x5d43ba(0xf6),void 0x0),Y(this,'_adjHandlerPointerMove',void 0x0),Y(this,_0x5d43ba(0x17a),void 0x0),Y(this,_0x5d43ba(0x1c5),!0x1),this['_registerDrawingFocusChangeHandler'](),this['_registerDrawingMoveHandler']();}[_0xcb6cbb(0xf4)](_0x1c0ee9,_0x3838f0,_0x3dac05){const _0x1bc536=_0xcb6cbb;let _0x481314=this[_0x1bc536(0x287)][_0x1bc536(0x2c4)](_0x1c0ee9,_0x3838f0,_0x3dac05);if(_0x481314)return _0x481314['getDrawingPoints']();}[_0xcb6cbb(0x24b)](){const _0x1b55a9=_0xcb6cbb;this[_0x1b55a9(0x1a5)]();}[_0xcb6cbb(0x2b3)](){const _0x5eaa84=_0xcb6cbb;this[_0x5eaa84(0x151)](!0x0);}[_0xcb6cbb(0x28c)](_0x722a45){const _0x8f011b=_0xcb6cbb;this[_0x8f011b(0x1c5)]=_0x722a45;}[_0xcb6cbb(0x2a9)](_0x82f24c,_0x54ddbd,_0x33da8b,_0x2395ef){const _0x30463e=_0xcb6cbb;let _0x34f0e4=this['_sheetsShapeService'][_0x30463e(0x2c4)](_0x82f24c,_0x54ddbd,_0x33da8b);if(_0x34f0e4)return _0x34f0e4['getAdjustInfoByName'](_0x2395ef);}['_createShapeAdjustControls'](_0x292658=!0x1){const _0x488004=_0xcb6cbb;if(this[_0x488004(0x2aa)]===null||this['_subUnitId']===null||this[_0x488004(0x2c1)]===null)return;let _0xcbc70d=this[_0x488004(0x154)]['getRenderUnitById'](this['_unitId']);if(!_0xcbc70d||!_0xcbc70d[_0x488004(0x2dd)](_0x48c126)[_0x488004(0x146)]())return;let {scene:_0x1fab8d}=_0xcbc70d,_0x16bee6={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x488004(0x2c1)]},_0x5bf21d=this[_0x488004(0x1ad)][_0x488004(0x16d)](_0x16bee6),{transform:_0x504336}=_0x5bf21d;if(!_0x504336||_0x5bf21d[_0x488004(0x1c2)]!==_0x55872c['DRAWING_SHAPE'])return;let {left:_0x524474,top:_0x2ad9c3,width:_0x2df0b9,height:_0x3b8491,flipX:_0x508b1f,flipY:_0x12ab3b,angle:_0x326ec4=0x0}=_0x504336;if(_0x524474===void 0x0||_0x2ad9c3===void 0x0)return;if(_0x292658){let _0x4daf7b=this[_0x488004(0x287)][_0x488004(0x2c4)](this[_0x488004(0x2aa)],this[_0x488004(0x13b)],this[_0x488004(0x2c1)]);_0x4daf7b==null||_0x4daf7b[_0x488004(0x1d6)]({'width':_0x2df0b9==null?0x0:_0x2df0b9,'height':_0x3b8491==null?0x0:_0x3b8491}),this[_0x488004(0xfe)]=_0x4daf7b==null?void 0x0:_0x4daf7b[_0x488004(0x13c)]();}let _0x1f5ba0=this[_0x488004(0xfe)];for(let _0x2ccd61=0x0;_0x2ccd61<_0x1f5ba0[_0x488004(0x25d)];_0x2ccd61++){let _0x367ecf=_0x1f5ba0[_0x2ccd61],_0x4e6d44=_0x367ecf['x'],_0x1ea037=_0x367ecf['y'];if(_0x508b1f&&(_0x4e6d44=(_0x2df0b9||0x0)-_0x4e6d44),_0x12ab3b&&(_0x1ea037=(_0x3b8491||0x0)-_0x1ea037),_0x326ec4!==0x0){let _0x207c3c=(_0x2df0b9||0x0)/0x2,_0x930e35=(_0x3b8491||0x0)/0x2,_0xe38a26=_0x326ec4*Math['PI']/0xb4,_0x425e26=Math[_0x488004(0x20b)](_0xe38a26),_0x3df39d=Math['sin'](_0xe38a26),_0x1944da=_0x4e6d44-_0x207c3c,_0x344faa=_0x1ea037-_0x930e35;_0x4e6d44=_0x207c3c+(_0x1944da*_0x425e26-_0x344faa*_0x3df39d),_0x1ea037=_0x930e35+(_0x1944da*_0x3df39d+_0x344faa*_0x425e26);}let _0x219062={'x':_0x4e6d44,'y':_0x1ea037,'adjName':_0x367ecf['adjName']};this[_0x488004(0x1a8)](_0x1fab8d,_0x219062,_0x219062[_0x488004(0x2bc)],_0x524474,_0x2ad9c3,this['_unitId'],this[_0x488004(0x13b)]);}}[_0xcb6cbb(0x151)](_0x237d30=!0x1){const _0x1f3410=_0xcb6cbb;_0x237d30&&(this[_0x1f3410(0x1a5)](),this[_0x1f3410(0x1d8)](_0x237d30));}['_addShapeAdjustControl'](_0x45ef51,_0x8b708a,_0x1ba220,_0x2b3f46,_0xc115dd,_0xa47f28,_0x4eae92){const _0x59fb99=_0xcb6cbb;if(!this[_0x59fb99(0x2c1)])return;let _0x2bebc0=_0x45ef51[_0x59fb99(0x114)](_0x59fb99(0x1fc)+this[_0x59fb99(0x2c1)]+'-'+_0x1ba220);if(_0x2bebc0){_0x2bebc0[_0x59fb99(0xdd)]({'left':_0x8b708a['x']+_0x2b3f46-_0x3cbe53[_0x59fb99(0xf0)],'top':_0x8b708a['y']+_0xc115dd-_0x3cbe53['adjHandleSize']});return;}let _0x1c2ca2={'left':_0x8b708a['x']+_0x2b3f46-_0x3cbe53[_0x59fb99(0xf0)],'top':_0x8b708a['y']+_0xc115dd-_0x3cbe53[_0x59fb99(0xf0)],'adjName':_0x1ba220,'shapeId':this[_0x59fb99(0x2c1)],'unitId':_0xa47f28,'subUnitId':_0x4eae92,'width':_0x3cbe53[_0x59fb99(0xf0)]+0x8,'height':_0x3cbe53[_0x59fb99(0xf0)]+0x8,'zIndex':_0x338629+0x1,'evented':!0x0},_0x5854b5=new Rn(_0x59fb99(0x1fc)+this[_0x59fb99(0x2c1)]+'-'+_0x1ba220,_0x1c2ca2);this[_0x59fb99(0x1e9)]['push'](_0x5854b5),this['_attachAdjustEvent'](_0x5854b5,_0x45ef51,_0x1ba220),_0x45ef51[_0x59fb99(0x212)](_0x5854b5,_0x338629+0x1);}[_0xcb6cbb(0x1a5)](){const _0x456d5f=_0xcb6cbb;this[_0x456d5f(0x1e9)][_0x456d5f(0x25d)]!==0x0&&(this['_shapes']['forEach'](_0x281c5b=>{const _0x634b0f=_0x456d5f;_0x281c5b[_0x634b0f(0x20e)]();}),this[_0x456d5f(0x1e9)]=[]);}[_0xcb6cbb(0x119)](){this['_createShapeAdjustControls']();}['_getScrollInfo'](_0x4a815d,_0x54e862){const _0x12c73b=_0xcb6cbb;var _0x1ad493;let _0x46134d={'x':0x0,'y':0x0};if(!_0x4a815d||!_0x54e862)return _0x46134d;let _0x2f2e03=this[_0x12c73b(0x154)][_0x12c73b(0x133)](_0x4a815d);if(!_0x2f2e03||!_0x2f2e03[_0x12c73b(0x2dd)](_0x48c126)[_0x12c73b(0x1bf)](_0x54e862))return _0x46134d;let _0x231658=_0x2f2e03['with'](_0x3e3bbb),_0x38cce5=_0x231658==null?void 0x0:_0x231658[_0x12c73b(0x244)]();if(!_0x38cce5)return _0x46134d;let _0x42fa94=(_0x1ad493=this[_0x12c73b(0x23f)][_0x12c73b(0x187)](_0x4a815d))==null?void 0x0:_0x1ad493[_0x12c73b(0x26d)](_0x54e862);if(!_0x42fa94)return _0x46134d;let _0x4e8999=_0x3dd685(_0x38cce5[_0x12c73b(0x2f9)],_0x38cce5[_0x12c73b(0x234)],_0x2f2e03['scene'],_0x42fa94);return _0x4e8999?{'x':_0x4e8999[_0x12c73b(0x1c4)],'y':_0x4e8999[_0x12c73b(0x1e0)]}:_0x46134d;}[_0xcb6cbb(0xc4)](_0x6c55df,_0x338e8a){const _0x15e996=_0xcb6cbb;var _0x38421b,_0x2ee625;let _0x5a58d5=(_0x38421b=this[_0x15e996(0x23f)][_0x15e996(0x187)](_0x6c55df))==null?void 0x0:_0x38421b[_0x15e996(0x26d)](_0x338e8a);return(_0x2ee625=_0x5a58d5==null?void 0x0:_0x5a58d5['getZoomRatio']())==null?0x1:_0x2ee625;}[_0xcb6cbb(0x131)](_0x1c2e95,_0x379a05,_0x450b1b){const _0x57cf75=_0xcb6cbb;this['disposeWithMe'](_0x452c8c(_0x1c2e95[_0x57cf75(0xc9)][_0x57cf75(0x2fe)]((_0x148485,_0x11ead4)=>{const _0xbccabf=_0x57cf75;var _0x38a364,_0x4611ed,_0x39acf0,_0x1b23c2,_0x45802a;let _0x31cc59=_0x1c2e95[_0xbccabf(0x23d)]();this[_0xbccabf(0x2f5)]=this[_0xbccabf(0x2a9)](_0x31cc59[_0xbccabf(0x241)],_0x31cc59['subUnitId'],_0x31cc59[_0xbccabf(0x10e)],_0x450b1b),this[_0xbccabf(0xf6)]=this['_sheetsShapeService'][_0xbccabf(0x2c4)](_0x31cc59[_0xbccabf(0x241)],_0x31cc59['subUnitId'],_0x31cc59[_0xbccabf(0x10e)]);let _0x421d64=this[_0xbccabf(0x1ad)][_0xbccabf(0x16d)]({'unitId':this[_0xbccabf(0x2aa)],'subUnitId':this[_0xbccabf(0x13b)],'drawingId':this['_activeShapeId']}),{transform:_0xaca16b}=_0x421d64;if(_0xaca16b){let {left:_0x48d401,top:_0x12e013,width:_0x48601f,height:_0x5b8bfa}=_0xaca16b;this[_0xbccabf(0x20a)]=_0x48d401||0x0,this[_0xbccabf(0x277)]=_0x12e013||0x0,this['_baseShapeWidth']=_0x48601f||0x0,this[_0xbccabf(0x198)]=_0x5b8bfa||0x0;}let _0x137e57=!!((_0x38a364=_0x421d64['transform'])!=null&&_0x38a364[_0xbccabf(0x16c)]),_0x40158b=!!((_0x4611ed=_0x421d64[_0xbccabf(0xce)])!=null&&_0x4611ed[_0xbccabf(0x1a0)]),_0xf9e414=((_0x39acf0=_0x421d64[_0xbccabf(0xce)])==null?void 0x0:_0x39acf0[_0xbccabf(0x31f)])||0x0;this[_0xbccabf(0x2e3)]=!0x0,_0x379a05[_0xbccabf(0x31c)]();let _0x204d5f={...(_0x1b23c2=(_0x45802a=this[_0xbccabf(0x2f5)])==null?void 0x0:_0x45802a['currentAdjustValues'])==null?{}:_0x1b23c2};this[_0xbccabf(0x191)]=_0x379a05[_0xbccabf(0x291)][_0xbccabf(0x2fe)]((_0x3f9587,_0x1274a)=>{const _0x33abde=_0xbccabf;if(!this[_0x33abde(0x2e3)])return;let {offsetX:_0x3feb78,offsetY:_0x274889}=_0x3f9587,_0x2548e6=this[_0x33abde(0x2f5)];if(this['_activeShapeModel']&&_0x2548e6){_0x379a05['disableObjectsEvent'](),_0x379a05[_0x33abde(0x328)](_0x1bae0e[_0x33abde(0x194)]);let _0x4be1d7={'left':0x0,'top':0x0,'width':this[_0x33abde(0x2a4)],'height':this[_0x33abde(0x198)]},_0x5e9639=this[_0x33abde(0x1ed)](this[_0x33abde(0x2aa)],this[_0x33abde(0x13b)]),_0xfdc66b=this[_0x33abde(0xc4)](this[_0x33abde(0x2aa)],this[_0x33abde(0x13b)]),_0x5796b1=_0x3feb78/_0xfdc66b+_0x5e9639['x']-this['_baseShapeLeft'],_0x1df73e=_0x274889/_0xfdc66b+_0x5e9639['y']-this[_0x33abde(0x277)];if(_0xf9e414!==0x0){let _0x2ae654=this['_baseShapeWidth']/0x2,_0x503ce5=this[_0x33abde(0x198)]/0x2,_0x7d9892=_0xf9e414*Math['PI']/0xb4,_0x4533da=Math['cos'](_0x7d9892),_0xd780f1=Math[_0x33abde(0x2d3)](_0x7d9892),_0x427a79=_0x5796b1-_0x2ae654,_0x53df50=_0x1df73e-_0x503ce5;_0x5796b1=_0x2ae654+(_0x427a79*_0x4533da+_0x53df50*_0xd780f1),_0x1df73e=_0x503ce5+(-_0x427a79*_0xd780f1+_0x53df50*_0x4533da);}_0x137e57&&(_0x5796b1=this[_0x33abde(0x2a4)]-_0x5796b1),_0x40158b&&(_0x1df73e=this[_0x33abde(0x198)]-_0x1df73e);let _0x3ca650={'x':_0x5796b1,'y':_0x1df73e},_0x27dc25=this[_0x33abde(0xf6)][_0x33abde(0xbb)](_0x4be1d7,_0x3ca650,_0x2548e6,_0x137e57,_0x40158b);if(Object[_0x33abde(0x29e)](_0x27dc25)['length']===0x0)return;for(let [_0x2732af,_0x2ac89f]of Object['entries'](_0x27dc25))this['_activeShapeModel']['setAdjustValueByName'](_0x2732af,_0x2ac89f);this['_activeShapeModel'][_0x33abde(0x1d6)]({'width':this[_0x33abde(0x2a4)],'height':this[_0x33abde(0x198)]});let _0x2a773b=this[_0x33abde(0x1ad)][_0x33abde(0x16d)]({'unitId':_0x31cc59[_0x33abde(0x241)],'subUnitId':_0x31cc59[_0x33abde(0x281)],'drawingId':_0x31cc59[_0x33abde(0x10e)]});_0x2a773b&&(this[_0x33abde(0x1b2)]['renderDrawingShape'](_0x2a773b,_0x379a05),this[_0x33abde(0xfe)]=this['_getShapeAdjustPointListById'](_0x31cc59[_0x33abde(0x241)],_0x31cc59[_0x33abde(0x281)],_0x31cc59[_0x33abde(0x10e)]),this[_0x33abde(0x119)]());}_0x1274a[_0x33abde(0x2c3)]();}),this['_adjHandlerPointerUp']=_0x379a05[_0xbccabf(0x24e)][_0xbccabf(0x2fe)]((_0x2636b7,_0x4e0d56)=>{const _0x237ec4=_0xbccabf;this[_0x237ec4(0x191)]['unsubscribe'](),this[_0x237ec4(0x17a)][_0x237ec4(0x22f)](),_0x379a05['resetCursor']();let _0x4ae9ec=this[_0x237ec4(0x2f5)];if(_0x4ae9ec){let _0x53ab13=_0x31cc59['unitId'],_0x2d89cb=_0x31cc59[_0x237ec4(0x281)],_0x55633a=_0x31cc59['drawingId'],_0x13262f={};for(let _0x16d11c of Object['keys'](_0x4ae9ec['currentAdjustValues'])){var _0x5bbc6d;let _0x4bb3b1=(_0x5bbc6d=this[_0x237ec4(0xf6)])==null?void 0x0:_0x5bbc6d['getAdjustValueByName'](_0x16d11c);_0x4bb3b1!==void 0x0&&(_0x13262f[_0x16d11c]=_0x4bb3b1);}Object[_0x237ec4(0x29e)](_0x13262f)['length']>0x0&&jn(this[_0x237ec4(0x300)],_0x53ab13,_0x2d89cb,_0x55633a,{'oldShapeData':{'adjustValues':_0x204d5f}},{'adjustValues':_0x13262f});}this[_0x237ec4(0x2f5)]=void 0x0,this[_0x237ec4(0xf6)]=void 0x0,this[_0x237ec4(0x2e3)]=!0x1,_0x4e0d56[_0x237ec4(0x2c3)](),_0x379a05['enableObjectsEvent']();}),_0x11ead4[_0xbccabf(0x2c3)]();})));}[_0xcb6cbb(0x1ae)](){const _0x1b4d4d=_0xcb6cbb;let _0x2940df=this[_0x1b4d4d(0x23f)]['getCurrentTypeOfUnit$'](_0x593ef9[_0x1b4d4d(0x298)]);this[_0x1b4d4d(0x2d6)](_0x2940df[_0x1b4d4d(0x23e)](_0x11d4bf(_0x49c6e7=>_0x49c6e7?_0x49c6e7[_0x1b4d4d(0x10c)][_0x1b4d4d(0x23e)](_0x11d4bf(_0x444dac=>{const _0x2a4cff=_0x1b4d4d;if(!_0x444dac)return _0x1198ce;let _0x25e8af=_0x49c6e7[_0x2a4cff(0x181)](),_0x2a4739=this['_renderManagerService'][_0x2a4cff(0x133)](_0x25e8af),_0x218080=_0x2a4739==null?void 0x0:_0x2a4739[_0x2a4cff(0x1f6)];return _0x218080?_0x9a150f(_0x218080):_0x1198ce;})):_0x1198ce))[_0x1b4d4d(0x2f7)](_0x1a54be=>{const _0x577a8b=_0x1b4d4d;let _0xa12488=_0x1a54be[_0x577a8b(0x24a)]();this[_0x577a8b(0x2d6)](_0x1a54be[_0x577a8b(0x291)][_0x577a8b(0x2fe)](()=>{this['_isShouldShowDrawingShapeAdjust'];})),this[_0x577a8b(0x2d6)](_0xa12488[_0x577a8b(0x12d)][_0x577a8b(0x2f7)](_0x968e00=>{const _0x5a4b8e=_0x577a8b;let {objects:_0x2004ca}=_0x968e00;this['_createShapeAdjustControls'](),_0x2004ca!==null&&_0x2004ca[_0x5a4b8e(0x1e1)]===0x1&&_0x2004ca[_0x5a4b8e(0x1c7)]()['next']()['value']instanceof Ln&&this[_0x5a4b8e(0x28c)](!0x0);})),this['disposeWithMe'](_0xa12488[_0x577a8b(0x27e)][_0x577a8b(0x2f7)](()=>{const _0x53ac25=_0x577a8b;this[_0x53ac25(0x1c5)]&&this['_clearShapeAdjustControls']();})),this[_0x577a8b(0x2d6)](_0x1a54be[_0x577a8b(0x24e)]['subscribeEvent'](()=>{const _0x30c7a6=_0x577a8b;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x30c7a6(0x28c)](!0x1),this[_0x30c7a6(0x1d8)]());})),this[_0x577a8b(0x2d6)](_0xa12488[_0x577a8b(0xeb)][_0x577a8b(0x2f7)](()=>{const _0x6dd3da=_0x577a8b;this[_0x6dd3da(0x2aa)]&&this[_0x6dd3da(0x13b)]&&this[_0x6dd3da(0x2c1)]&&this['_drawingManagerService'][_0x6dd3da(0x16d)]({'unitId':this[_0x6dd3da(0x2aa)],'subUnitId':this[_0x6dd3da(0x13b)],'drawingId':this['_activeShapeId']})&&(this[_0x6dd3da(0xfe)]=this[_0x6dd3da(0xf4)](this[_0x6dd3da(0x2aa)],this[_0x6dd3da(0x13b)],this[_0x6dd3da(0x2c1)]),this[_0x6dd3da(0x119)]());}));}));}[_0xcb6cbb(0x2a8)](){const _0x197062=_0xcb6cbb;this[_0x197062(0x2d6)](this[_0x197062(0x300)][_0x197062(0x165)](_0x54c3ce=>{const _0x4bfe36=_0x197062;if(_0x54c3ce['id']!==_0x528850['id'])return;let {unitId:_0x6d268,subUnitId:_0x3ee462,shapeId:_0x246793}=_0x54c3ce['params'];_0x6d268===this[_0x4bfe36(0x2aa)]&&_0x3ee462===this[_0x4bfe36(0x13b)]&&_0x246793===this['_activeShapeId']&&this[_0x4bfe36(0x2b3)]();})),this['disposeWithMe'](this[_0x197062(0x1ad)]['focus$'][_0x197062(0x2f7)](_0x582135=>{const _0x3830b4=_0x197062;if(_0x582135[_0x3830b4(0x25d)]===0x1){let _0x4f39d7=_0x582135[0x0];if(_0x4f39d7['drawingType']===_0x55872c[_0x3830b4(0x1ce)]){this[_0x3830b4(0x2c1)]=_0x4f39d7[_0x3830b4(0x10e)];let {unitId:_0x57353d,subUnitId:_0x47e275}=_0x4f39d7;this[_0x3830b4(0xfe)]=this['_getShapeAdjustPointListById'](_0x57353d,_0x47e275,this[_0x3830b4(0x2c1)]),this['_unitId']=_0x57353d,this[_0x3830b4(0x13b)]=_0x47e275,this['_clearShapeAdjustControls'](),this[_0x3830b4(0x1d8)]();}else this[_0x3830b4(0x2c1)]=null,this[_0x3830b4(0xfe)]=void 0x0,this[_0x3830b4(0x2aa)]=null,this[_0x3830b4(0x13b)]=null,this['_clearShapeAdjustControls']();}(_0x582135['length']>0x1||_0x582135['length']===0x0)&&(this[_0x3830b4(0x2c1)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x3830b4(0x2aa)]=null,this[_0x3830b4(0x13b)]=null,this[_0x3830b4(0x1a5)]());})),this[_0x197062(0x2d6)](this['_drawingManagerService'][_0x197062(0x1de)][_0x197062(0x2f7)](_0x1447cd=>{const _0x1ada67=_0x197062;if(_0x1447cd[_0x1ada67(0x25d)]===0x1){var _0x4febec;let _0x4bcf67=_0x1447cd[0x0];((_0x4febec=this['_drawingManagerService'][_0x1ada67(0x16d)](_0x4bcf67))==null?void 0x0:_0x4febec[_0x1ada67(0x1c2)])===_0x55872c['DRAWING_SHAPE']&&this['_updateShapeAdjustControls'](!0x0);}})),this[_0x197062(0x2d6)](this[_0x197062(0x1ad)][_0x197062(0x304)][_0x197062(0x2f7)](_0x234c58=>{const _0x2399e7=_0x197062;for(let _0x6f8669 of _0x234c58)this[_0x2399e7(0x2c1)]===_0x6f8669[_0x2399e7(0x10e)]&&(this[_0x2399e7(0x2c1)]=null,this[_0x2399e7(0xfe)]=void 0x0,this['_unitId']=null,this['_subUnitId']=null,this[_0x2399e7(0x1a5)]());}));}};zn=Z([X(0x0,_0x5a1ed0),X(0x1,_0x25d6be(_0x231cef)),X(0x2,_0x25d6be(_0x297a94)),X(0x3,_0x25d6be(Q)),X(0x4,_0x1af83c),X(0x5,_0x3a72b1)],zn);const Bn={'id':_0xcb6cbb(0x1d5),'type':_0xd030d0[_0xcb6cbb(0xc2)],'handler':(_0x2f189b,_0x1f76e7)=>{const _0xc10afc=_0xcb6cbb;let _0xa3952f=_0x2f189b['get'](_0x5a1ed0),_0x10088d=_0x2f189b[_0xc10afc(0x2da)](_0x297a94),_0x3b5bf2=_0x2f189b['get'](zn);if(_0x1f76e7==null)return!0x0;if(_0x1f76e7[_0xc10afc(0x25d)]>0x0){var _0x152983;let _0x1d0c0f=(_0x152983=_0x10088d[_0xc10afc(0x133)](_0x1f76e7[0x0]['unitId']))==null?void 0x0:_0x152983[_0xc10afc(0x1f6)];if(_0x1d0c0f){let {unitId:_0x1c7dfb,subUnitId:_0x5cf259,drawingId:_0x1be161}=_0x1f76e7[0x0],_0x1d9dc1=_0x4f98bd({'unitId':_0x1c7dfb,'subUnitId':_0x5cf259,'drawingId':_0x1be161},void 0x0),_0x4be1b6=_0x1d0c0f[_0xc10afc(0x114)](_0x1d9dc1);if(_0x4be1b6){var _0x1d1a01;(_0x1d1a01=_0x10088d[_0xc10afc(0x133)](_0x1f76e7[0x0]['unitId']))==null||(_0x1d1a01=_0x1d1a01[_0xc10afc(0x1f6)][_0xc10afc(0xde)]())==null||_0x1d1a01[_0xc10afc(0x201)](_0x4be1b6);}}_0xa3952f[_0xc10afc(0x257)](_0x1f76e7),_0x3b5bf2[_0xc10afc(0x28c)](!0x1);}return!0x0;}},Vn={'type':_0xd030d0[_0xcb6cbb(0x1fd)],'id':_0xcb6cbb(0x20f),'handler':async(_0x4590a0,_0x4340df)=>{const _0x4777e1=_0xcb6cbb;let _0x3c45df=_0x5f445e(_0x4590a0['get'](_0x1af83c));if(!_0x3c45df)return!0x1;let _0x68c966=_0x4590a0[_0x4777e1(0x2da)](_0x2c9660)[_0x4777e1(0x239)]();if(!_0x68c966)return!0x1;let _0x88dc12=_0x4590a0[_0x4777e1(0x2da)](_0x3a72b1),{unitId:_0x1faba2,subUnitId:_0x4f070b}=_0x3c45df,{value:_0xcf4ef7,enhanceParams:_0x17ad4d}=_0x4340df,{range:_0x2eb11e}=_0x68c966,_0x441025={'unitId':_0x1faba2,'subUnitId':_0x4f070b,'shapeType':_0xcf4ef7,'range':_0x2eb11e,'shapeId':_0xf6c8c4()};if(_0x17ad4d){let _0x403cbc=_0x286130(_0xcf4ef7),_0x763fec=_0xcf4ef7===_0x4c4784[_0x4777e1(0x193)];_0x403cbc&&(_0x17ad4d['startArrow']||_0x17ad4d[_0x4777e1(0x2e1)])&&(_0x441025['shapeData']={'ln':{'startArrow':_0x17ad4d['startArrow']?{'type':_0x443563['Arrow'],'size':_0x483edf['Medium']}:void 0x0,'endArrow':_0x17ad4d[_0x4777e1(0x2e1)]?{'type':_0x443563['Arrow'],'size':_0x483edf[_0x4777e1(0x320)]}:void 0x0}}),_0x763fec&&(_0x17ad4d[_0x4777e1(0x21f)]||_0x17ad4d['vertical'])&&(_0x441025[_0x4777e1(0x18a)]=_0x38899d({'fill':{'fillType':_0x208105['SolidFill'],'color':_0x4777e1(0x2f3)},'isHorizontal':!!_0x17ad4d['horizontal'],'stroke':{'lineStrokeType':_0x3e780b[_0x4777e1(0x292)],'width':0x1,'color':_0x4777e1(0xdf)}}));}let _0x593f49=_0x88dc12[_0x4777e1(0xdc)](_0x5268cc['id'],_0x441025);return setTimeout(()=>{const _0x385b5f=_0x4777e1;_0x88dc12[_0x385b5f(0x29b)](Bn['id'],[{'unitId':_0x1faba2,'subUnitId':_0x4f070b,'drawingId':_0x441025[_0x385b5f(0x124)]}]);},0xc8),_0x593f49;}},Hn=_0xcb6cbb(0x171),Un=_0xcb6cbb(0x12c),Wn=_0xcb6cbb(0x177),Gn=_0x3ca21e(_0xcb6cbb(0x227)),Kn=_0xcb6cbb(0x188),qn={'id':'sheet.operation.open-shape-object-list-panel','type':_0xd030d0[_0xcb6cbb(0x1fd)],'handler':(_0x4baf60,_0x45eb6f)=>{const _0x186e00=_0xcb6cbb;let _0x21fea8=_0x4baf60[_0x186e00(0x2da)](_0x4770b9),_0xc2cf82=_0x4baf60[_0x186e00(0x2da)](_0x498c36),_0x25786d=_0x4baf60[_0x186e00(0x2da)](_0x1af83c),_0x11cdd1=_0x4baf60[_0x186e00(0x2da)](_0x3a72b1);return _0x5f445e(_0x25786d)?(_0x45eb6f==null?void 0x0:_0x45eb6f[_0x186e00(0x274)])===_0x186e00(0x233)?(_0x21fea8[_0x186e00(0x233)](Un),!0x0):(_0x21fea8[_0x186e00(0x122)]({'id':Un,'header':{'title':_0xc2cf82['t'](_0x186e00(0x2cf))},'children':{'label':Un},'onClose':()=>{const _0x5205bc=_0x186e00;_0x11cdd1[_0x5205bc(0xdc)](_0xc56e65['id'],[]);},'width':0x168}),!0x0):!0x1;}};let Jn=class extends _0x444b76{constructor(_0xd147dd,_0x38e038){const _0x1072b8=_0xcb6cbb;super(),this['_clipService']=_0xd147dd,this[_0x1072b8(0x1ad)]=_0x38e038,this[_0x1072b8(0xe7)](),this['_clipService'][_0x1072b8(0x2cb)](!0x0),this[_0x1072b8(0x2d6)]({'dispose':()=>this['_clipService'][_0x1072b8(0x2cb)](!0x1)});}[_0xcb6cbb(0xe7)](){const _0x410837=_0xcb6cbb;let _0x5b0a0a=this[_0x410837(0xef)],_0x53335a=new Map(),_0x3a1ba6=_0x5b0a0a[_0x410837(0x246)]((_0x379638,_0x376082,_0x5e76eb,_0x1f9c30,_0xa5857a)=>{const _0x14b382=_0x410837;let _0x1a4167=_0x376082;if(_0x1a4167===_0x4c4784['None']||_0x376082===_0x14b382(0x180))return!0x1;try{let _0x5a907e=_0x53335a[_0x14b382(0x2da)](_0x376082);return _0x5a907e||(_0x5a907e=new _0x508f4b(_0x1a4167,_0x14b382(0x2bd)+_0x376082),_0x53335a[_0x14b382(0x26e)](_0x376082,_0x5a907e)),_0x5a907e['clearAdjustValue'](),_0xa5857a&&Object[_0x14b382(0x29e)](_0xa5857a)['length']>0x0&&_0x5a907e[_0x14b382(0x1fa)]({'adjustValues':_0xa5857a},!0x0),_0x5a907e['updateContext']({'width':_0x5e76eb,'height':_0x1f9c30}),_0x5a907e[_0x14b382(0x26c)](_0x379638,{'left':0x0,'top':0x0,'width':_0x5e76eb,'height':_0x1f9c30});}catch{return!0x1;}});this[_0x410837(0x2d6)](_0x3a1ba6),this[_0x410837(0x2d6)]({'dispose':()=>_0x53335a[_0x410837(0x205)]()});}['clipByShape'](_0x213091,_0x5a70d3,_0x6d6936,_0x4b124f,_0x2d631d){const _0x286ec1=_0xcb6cbb;let _0x3ed4cd=this[_0x286ec1(0x1ad)][_0x286ec1(0x127)](_0x213091,_0x5a70d3);if(!_0x3ed4cd[_0x6d6936])return;let _0x16a7a7={..._0x3ed4cd[_0x6d6936],'prstGeom':_0x4b124f,'adjustValues':_0x2d631d};this[_0x286ec1(0x1ad)]['featurePluginUpdateNotification']([_0x16a7a7]);}};Jn=Z([X(0x0,_0x25d6be(_0x5773e2)),X(0x1,_0x25d6be(_0x5a1ed0))],Jn);const Yn='sheet.shape.picker.component',Xn=_0xcb6cbb(0x204);function Zn({onShapeClick:_0x2df1fd,excludeGroups:_0x4a19c0}){const _0x2fd9ec=_0xcb6cbb;return _0x49d3c9(_0x41d5aa,{'excludeGroups':_0x4a19c0,'onShapeClick':_0x2df1fd,'scrollContainer':_0x2fd9ec(0x135)});}function Qn(){const _0x5ed456=_0xcb6cbb;let _0x1cb978=_0x5ead04(_0x5a1ed0),_0x5c5518=_0x5ead04(Jn);return _0x49d3c9(_0x29e80a,{'buttonLabel':_0x5ed456(0x23b),'excludeGroups':[_0x176d3f[_0x5ed456(0x265)]],'onShapeClick':_0x4f2413=>{const _0x2280b3=_0x5ed456;let _0x124c0b=_0x1cb978[_0x2280b3(0x2e9)]()['find'](_0x44f5de=>_0x44f5de[_0x2280b3(0x1c2)]===_0x55872c[_0x2280b3(0x172)]);if(!_0x124c0b)return;let {unitId:_0x59b06f,subUnitId:_0xf777cd,drawingId:_0x405c20}=_0x124c0b;_0x5c5518[_0x2280b3(0x173)](_0x59b06f,_0xf777cd,_0x405c20,_0x4f2413[_0x2280b3(0x27b)]);}});}function $n(){const _0x5a7b6f=_0xcb6cbb;let _0x1fcb78=_0x5ead04(_0x3e4916),_0x2e58ae=_0x5ead04(_0x5a1ed0),_0xef155b=_0x5ead04(_0x1af83c),_0x45c624=_0x2e58ae[_0x5a7b6f(0x2e9)]()[0x0],_0x5b0068=_0x45c624?_0xef155b[_0x5a7b6f(0x11f)](_0x45c624['unitId']):void 0x0,_0x137d82=_0x5b0068===_0x593ef9[_0x5a7b6f(0xb9)]?_0x5a7b6f(0x156):_0x5b0068===_0x593ef9[_0x5a7b6f(0x298)]?Xn:void 0x0,_0x2de214=_0x137d82?_0x1fcb78[_0x5a7b6f(0x2da)](_0x137d82):void 0x0;return _0x2de214?_0x49d3c9(_0x2de214,{}):null;}function er(){let _0xad461=_0x5ead04(_0x3a72b1);return _0x49d3c9(Zn,{'onShapeClick':_0x475557=>{const _0x2cb0f7=_0x5971;_0xad461['executeCommand'](Vn['id'],{'value':_0x475557[_0x2cb0f7(0x27b)],'enhanceParams':{'endArrow':_0x475557[_0x2cb0f7(0x2e1)],'startArrow':_0x475557['startArrow'],'horizontal':_0x475557[_0x2cb0f7(0x21f)],'vertical':_0x475557['vertical']}});}});}function tr(_0x55380e){const _0x157b4e=_0xcb6cbb;let _0x17f46f=_0x55380e[_0x157b4e(0x2da)](_0x1af83c);return{'id':Vn['id'],'type':_0x187ab3[_0x157b4e(0x11b)],'selections':[{'label':{'name':Yn,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Vn['id']}}}],'icon':_0x157b4e(0xd7),'tooltip':_0x157b4e(0x137),'activated$':_0x525c18(_0x17f46f,!0x1,()=>new _0x243af9(_0x20a53e=>{const _0x3667c9=_0x157b4e;_0x20a53e[_0x3667c9(0x152)](!0x1);})),'hidden$':_0x54d985(_0x55380e,_0x593ef9[_0x157b4e(0x298)]),'disabled$':_0x26b975(_0x55380e)};}function nr(_0x4a73cc){const _0x4fc8ab=_0xcb6cbb;let _0x196abf=_0x4a73cc[_0x4fc8ab(0x2da)](_0x1af83c);return{'id':qn['id'],'type':_0x187ab3[_0x4fc8ab(0x130)],'icon':_0x4fc8ab(0xe8),'title':'sheets-shape-ui.objectListPanel.open','tooltip':_0x4fc8ab(0x302),'activated$':_0x525c18(_0x196abf,!0x1,()=>new _0x243af9(_0x4c6650=>{const _0x345e99=_0x4fc8ab;_0x4c6650[_0x345e99(0x152)](!0x1);})),'hidden$':_0x54d985(_0x4a73cc,_0x593ef9[_0x4fc8ab(0x298)]),'disabled$':_0x26b975(_0x4a73cc)};}const rr=_0xcb6cbb(0x160),ir=_0xcb6cbb(0x259);function ar(_0x4c7b06){const _0x3ce9dc=_0xcb6cbb;let _0x3492d2=_0x4c7b06[_0x3ce9dc(0x2da)](_0x5a1ed0)['getFocusDrawings']();return _0x3492d2['length']===0x1&&_0x3492d2[0x0][_0x3ce9dc(0x1c2)]===_0x55872c[_0x3ce9dc(0x1ce)]?_0x3492d2[0x0]:null;}function or(_0x1af0a1){const _0x3a7b6e=_0xcb6cbb;let _0xcdca3f=_0x1af0a1[_0x3a7b6e(0x2da)](_0x5a1ed0);return _0xcdca3f[_0x3a7b6e(0xed)]['pipe'](_0x3992d1(_0xcdca3f[_0x3a7b6e(0x2e9)]()),_0x30d3f5(_0x40eb1=>_0x40eb1[_0x3a7b6e(0x25d)]!==0x1||_0x40eb1[0x0][_0x3a7b6e(0x1c2)]!==_0x55872c['DRAWING_SHAPE']));}function sr(_0x43011e){const _0x7ed9b4=_0xcb6cbb;return{'id':rr,'commandId':_0x44c026['id'],'type':_0x187ab3['BUTTON'],'title':'sheets-shape-ui.flipHorizontal','tooltip':_0x7ed9b4(0x221),'icon':'FlipHorizontalIcon','hidden$':or(_0x43011e),'params':()=>{const _0x5daea7=_0x7ed9b4;let _0x475e96=ar(_0x43011e);return _0x475e96?{'unitId':_0x475e96[_0x5daea7(0x241)],'subUnitId':_0x475e96[_0x5daea7(0x281)],'shapeId':_0x475e96[_0x5daea7(0x10e)],'flipH':!0x0}:void 0x0;}};}function cr(_0x55d105){const _0x5e370f=_0xcb6cbb;return{'id':ir,'commandId':_0x44c026['id'],'type':_0x187ab3['BUTTON'],'title':_0x5e370f(0xc0),'tooltip':'sheets-shape-ui.flipVertical','icon':_0x5e370f(0x1f8),'hidden$':or(_0x55d105),'params':()=>{const _0x57afe2=_0x5e370f;let _0x42eaee=ar(_0x55d105);return _0x42eaee?{'unitId':_0x42eaee[_0x57afe2(0x241)],'subUnitId':_0x42eaee[_0x57afe2(0x281)],'shapeId':_0x42eaee['drawingId'],'flipV':!0x0}:void 0x0;}};}const lr={[_0x99ab95['MEDIA']]:{[Vn['id']]:{'order':0x4,'menuItemFactory':tr}},[_0x99ab95['OTHERS']]:{[qn['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':nr}},[_0x19ebdc[_0xcb6cbb(0x2c9)]]:{[_0x5e3670[_0xcb6cbb(0x15f)]]:{[rr]:{'order':0x4,'menuItemFactory':sr},[ir]:{'order':0x5,'menuItemFactory':cr}}}};var ur=_0xcb6cbb(0xd8),dr='1.0.0-alpha.8';const fr={'type':_0xd030d0[_0xcb6cbb(0xc2)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}},pr={'type':_0xd030d0[_0xcb6cbb(0xc2)],'id':_0xcb6cbb(0x142),'handler'(){return!0x0;}},mr={};function hr(_0x2562b4){const _0x4a1d77=_0xcb6cbb;return _0x2562b4[_0x4a1d77(0x162)]()||void 0x0;}function gr(_0x48f0c7){const _0x57b71f=_0xcb6cbb;switch(_0x48f0c7[_0x57b71f(0x1c2)]){case _0x55872c[_0x57b71f(0x172)]:return _0x57b71f(0xf9);case _0x55872c['DRAWING_CHART']:return _0x57b71f(0x182);case _0x55872c[_0x57b71f(0x310)]:return _0x57b71f(0xc1);case _0x55872c[_0x57b71f(0xec)]:return _0x57b71f(0x1ca);case _0x55872c[_0x57b71f(0x13f)]:return _0x57b71f(0x1af);case _0x55872c[_0x57b71f(0x2e2)]:return _0x57b71f(0x228);case _0x55872c[_0x57b71f(0x199)]:return _0x57b71f(0x1c3);case _0x55872c[_0x57b71f(0x1be)]:return _0x57b71f(0x1d3);case _0x55872c[_0x57b71f(0x1ce)]:return _0x57b71f(0x186);default:return _0x57b71f(0x21a);}}function _r(_0x1ca6b6,_0x480272,_0x34449c){const _0x22d55f=_0xcb6cbb;var _0x4bcaca;return((_0x4bcaca=_0x1ca6b6[_0x22d55f(0x22d)])==null?void 0x0:_0x4bcaca[_0x22d55f(0x162)]())||_0x2b9a99(_0x34449c,gr(_0x1ca6b6))+'\x20'+(_0x480272+0x1);}function vr(){const _0x16d1da=_0xcb6cbb;var _0x160b9f,_0x5c523d,_0x35179a,_0x5d9ba5;let _0x2685a0=_0x5ead04(_0x498c36),_0x2f65fe=_0x5ead04(_0x3a72b1),_0x5b859a=_0x5ead04(_0x1af83c),_0x348422=_0x5ead04(_0x2a99b6),_0x4d7a74=_0x5ead04(_0x5a1ed0),_0x3d7758=_0x5ead04(_0x297a94),[,_0x2d5a9c]=_0x10f2b3(_0x262b5a=>_0x262b5a+0x1,0x0),_0x50f294=_0x5b859a['getCurrentUnitOfType'](_0x593ef9['UNIVER_SHEET']),_0x508c4a=(_0x160b9f=_0x50f294==null?void 0x0:_0x50f294[_0x16d1da(0x181)]())==null?'':_0x160b9f,_0x1d9049=(_0x5c523d=_0x50f294==null||(_0x35179a=_0x50f294[_0x16d1da(0x284)]())==null?void 0x0:_0x35179a['getSheetId']())==null?'':_0x5c523d,_0x5b7e62=_0x3e0fd9(()=>_0x4d7a74[_0x16d1da(0xed)],_0x4d7a74['getFocusDrawings'](),!0x1,[_0x4d7a74]);_0x2f51d2(()=>{const _0x44fc76=_0x16d1da;let _0x5e2305=_0x2f65fe[_0x44fc76(0x165)](()=>_0x2d5a9c());return()=>_0x5e2305[_0x44fc76(0x20e)]();},[_0x2f65fe]);let _0x26eed7=_0x508c4a&&_0x1d9049?_0x348422[_0x16d1da(0x127)](_0x508c4a,_0x1d9049):{},_0x3a4578=_0x508c4a&&_0x1d9049?_0x348422['getDrawingOrder'](_0x508c4a,_0x1d9049):[],_0x5ced42=_0xfae447(()=>_0x5ac108(_0x2685a0),[_0x2685a0]),_0x1d596c=_0xfae447(()=>{const _0x5612a2=_0x16d1da;let _0x482ef3=_0x3a4578[_0x5612a2(0x1c1)](_0x1caaf9=>_0x26eed7[_0x1caaf9])[_0x5612a2(0x2b4)](_0x5db8da=>!!_0x5db8da)[_0x5612a2(0x263)](),_0x3d84eb=_0x482ef3[_0x5612a2(0x2f8)]((_0x3bd4ca,_0x21fc00)=>(_0x3bd4ca[_0x67bdd6(_0x21fc00[_0x5612a2(0x1c2)])]+=0x1,_0x3bd4ca),{'canvas':0x0,'floating':0x0}),_0x18d9ea={'canvas':0x0,'floating':0x0};return _0x482ef3[_0x5612a2(0x1c1)]((_0x146ffb,_0x4a97c5)=>{const _0x238de2=_0x5612a2;let _0x5b29ba=_0x67bdd6(_0x146ffb[_0x238de2(0x1c2)]),_0x3f4472=_0x5b29ba===_0x5a455a,_0x3be224=_0x18d9ea[_0x5b29ba]++;return{'id':_0x146ffb[_0x238de2(0x10e)],'name':_r(_0x146ffb,_0x4a97c5,_0x2685a0),'description':_0x146ffb[_0x238de2(0x301)],'visible':_0x146ffb[_0x238de2(0x237)]!==!0x0,'selectable':_0x146ffb['selectable']!==!0x1,'sectionId':_0x5b29ba,'sectionTitle':_0x3f4472?_0x5ced42['sectionFloating']:_0x5ced42[_0x238de2(0x167)],'capabilities':_0x3f4472?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x3f4472&&_0x3be224>0x0,'canMoveBackward':!_0x3f4472&&_0x3be224<_0x3d84eb[_0x238de2(0x115)]-0x1,'canReorder':!_0x3f4472};});},[_0x26eed7,_0x3a4578,_0x5ced42[_0x16d1da(0x167)],_0x5ced42[_0x16d1da(0x2d7)],_0x2685a0]),_0x50e24c=_0xfae447(()=>(_0x5b7e62==null?[]:_0x5b7e62)[_0x16d1da(0x2b4)](_0x164a62=>_0x164a62['unitId']===_0x508c4a&&_0x164a62[_0x16d1da(0x281)]===_0x1d9049)[_0x16d1da(0x1c1)](_0x230da9=>_0x230da9['drawingId']),[_0x5b7e62,_0x1d9049,_0x508c4a]),_0x55969c=(_0x5d9ba5=_0x50e24c[_0x50e24c['length']-0x1])==null?null:_0x5d9ba5,_0x5021c7=_0x2c1932=>{const _0x151a18=_0x16d1da;var _0x41281c;return(_0x41281c=_0x348422[_0x151a18(0x16d)]({'unitId':_0x508c4a,'subUnitId':_0x1d9049,'drawingId':_0x2c1932}))==null?null:_0x41281c;},_0x54cbb0=_0x15e6ce=>{const _0x385b41=_0x16d1da;!_0x508c4a||!_0x15e6ce[_0x385b41(0x25d)]||_0x2f65fe[_0x385b41(0x29b)](_0x2cc676['id'],{'unitId':_0x508c4a,'drawings':_0x15e6ce});},_0x455cc8=(_0x4b60df,_0x27e46c)=>{_0x5021c7(_0x4b60df)&&_0x54cbb0([{'unitId':_0x508c4a,'subUnitId':_0x1d9049,'drawingId':_0x4b60df,..._0x27e46c}]);},_0x2716c7=(_0xba14ec,_0xfc2db0)=>{const _0xa8b248=_0x16d1da;if(!_0x508c4a||!_0x1d9049)return;let _0x93c7f0=_0xfc2db0?_0x50e24c[_0xa8b248(0x15b)](_0xba14ec)?_0x50e24c[_0xa8b248(0x2b4)](_0x394683=>_0x394683!==_0xba14ec):[..._0x50e24c,_0xba14ec]:[_0xba14ec];_0x2f65fe[_0xa8b248(0xdc)](_0xc56e65['id'],_0x93c7f0['map'](_0x2ef6a4=>({'unitId':_0x508c4a,'subUnitId':_0x1d9049,'drawingId':_0x2ef6a4})));let _0x444803=_0x93c7f0[_0x93c7f0[_0xa8b248(0x25d)]-0x1];_0x444803?_0x185eb9(_0x3d7758,{'unitId':_0x508c4a,'subUnitId':_0x1d9049,'drawingId':_0x444803}):_0x5b4b31(_0x3d7758,_0x508c4a);},_0x5e00cd=(_0x16d897,_0x44d2a8)=>{const _0x470832=_0x16d1da;_0x54cbb0(_0x16d897[_0x470832(0x1c1)](_0x1fae56=>_0x5021c7(_0x1fae56))[_0x470832(0x2b4)](_0x44bfd9=>!!_0x44bfd9)[_0x470832(0x2b4)](_0x4d8759=>_0x4d8759[_0x470832(0x237)]!==!0x0!==_0x44d2a8)[_0x470832(0x1c1)](_0x3e4cdf=>({'unitId':_0x508c4a,'subUnitId':_0x1d9049,'drawingId':_0x3e4cdf['drawingId'],'hidden':!_0x44d2a8})));},_0x3b8f78=_0x56401b=>{const _0x289176=_0x16d1da;let _0x218ca1=_0x5021c7(_0x56401b);_0x218ca1&&_0x455cc8(_0x56401b,{'selectable':_0x218ca1[_0x289176(0x1e7)]===!0x1&&void 0x0});},_0x586839=(_0x31d215,_0x1791ad)=>{var _0x3ecf44,_0x516598;let _0x376897=hr(_0x1791ad);((_0x3ecf44=(_0x516598=_0x5021c7(_0x31d215))==null?void 0x0:_0x516598['name'])==null?void 0x0:_0x3ecf44)!==_0x376897&&_0x455cc8(_0x31d215,{'name':_0x376897});},_0x3c0c4a=(_0x36cace,_0x18fd79)=>{const _0x7fe1d1=_0x16d1da;var _0x42f18d,_0x17d9b5;let _0x202171=hr(_0x18fd79);((_0x42f18d=(_0x17d9b5=_0x5021c7(_0x36cace))==null?void 0x0:_0x17d9b5[_0x7fe1d1(0x301)])==null?void 0x0:_0x42f18d)!==_0x202171&&_0x455cc8(_0x36cace,{'description':_0x202171});},_0x494d81=(_0x278194,_0x2a759b)=>{!_0x508c4a||!_0x1d9049||_0x2f65fe['executeCommand'](_0xb4ccfa['id'],{'unitId':_0x508c4a,'subUnitId':_0x1d9049,'drawingIds':[_0x278194],'arrangeType':_0x2a759b});};return!_0x508c4a||!_0x1d9049?_0x49d3c9(_0x16d1da(0xca),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x5ced42[_0x16d1da(0x326)]}):_0x49d3c9(_0x155589,{'items':_0x1d596c,'selectedIds':_0x50e24c,'focusedId':_0x55969c,'labels':_0x5ced42,'onSelect':_0x2716c7,'onSetVisible':_0x5e00cd,'onCommitName':_0x586839,'onCommitDescription':_0x3c0c4a,'onMoveForward':_0x4519c4=>_0x494d81(_0x4519c4,_0x22122b['forward']),'onMoveBackward':_0x5561e0=>_0x494d81(_0x5561e0,_0x22122b[_0x16d1da(0x225)]),'onToggleSelectable':_0x3b8f78});}let yr=class{constructor(_0x3e52bd){this['_renderManagerService']=_0x3e52bd;}['updateShapeFillImage'](_0x23b576,_0x1e071c){const _0x489923=_0xcb6cbb;let _0xc53ba9=this[_0x489923(0x154)]['getRenderUnitById'](_0x23b576[_0x489923(0x241)]),_0x39d4ae=_0xc53ba9==null?void 0x0:_0xc53ba9[_0x489923(0x1f6)];if(!_0x39d4ae)return;let _0xbecec0=_0x4f98bd(_0x23b576),_0x53ec7f=_0x39d4ae['getObjectIncludeInGroup'](_0xbecec0);_0x53ec7f==null||_0x53ec7f[_0x489923(0x245)](_0x1e071c);}};yr=Z([X(0x0,_0x297a94)],yr);function br(){const _0x3273bf=_0xcb6cbb;let _0x3a720d=_0x5ead04(_0x5a1ed0),_0x5e01bf=_0x3e0fd9(()=>_0x3a720d[_0x3273bf(0xed)],_0x3a720d[_0x3273bf(0x2e9)](),!0x1,[_0x3a720d]);return _0x5e01bf[_0x3273bf(0x25d)]===0x0?null:_0x49d3c9(_0x3273bf(0xca),{'children':_0x568cbe(_0x3273bf(0xca),{'className':_0x3273bf(0x22b),'children':[_0x49d3c9(_0x5f53ae,{'drawings':_0x5e01bf,'hasCropper':!0x1}),_0x49d3c9(_0xdce9e4,{'drawings':_0x5e01bf})]})});}function xr(_0x14b829){let {unitId:_0x5a0aee,subUnitId:_0x1f136e,shapeId:_0x1dd856}=_0x14b829,_0x1a33df=_0x5ead04(_0x3a72b1),_0x558590=_0x5ead04(yr);return _0x49d3c9(_0x369510,{..._0x14b829,'positionEditor':_0x49d3c9(br,{}),'onUpdateShapeData':(_0x27b6,_0x324c22)=>{jn(_0x1a33df,_0x5a0aee,_0x1f136e,_0x1dd856,_0x27b6,_0x324c22);},'onUpdateLineShapeData':(_0x1e01e1,_0x3f7921)=>{Mn(_0x1a33df,_0x5a0aee,_0x1f136e,_0x1dd856,_0x1e01e1,_0x3f7921);},'onUpdateShapeFillImage':_0x139d63=>{const _0x4b9e79=_0x5971;_0x558590[_0x4b9e79(0x153)]({'unitId':_0x5a0aee,'subUnitId':_0x1f136e,'drawingId':_0x1dd856},_0x139d63);}});}function Sr(_0x571f6f){const _0x586d74=_0xcb6cbb;let _0x16bd5f=_0x571f6f['popup'][_0x586d74(0x2ac)];return _0x16bd5f?_0x49d3c9(Cr,{..._0x16bd5f}):null;}function Cr(_0x4361c0){const _0x25dfb6=_0xcb6cbb;var _0xbe9f66,_0x280ccf;let _0x4cb65d=_0x5ead04(_0x3a72b1),_0x4804ad=_0x5ead04(_0x231cef),{unitId:_0xc4e331,subUnitId:_0x33a4a3,drawingId:_0x37c5a2,drawingType:_0x22c05a,shapeType:_0x15d939}=_0x4361c0,[_0x580167,_0x59ddbd]=_0x115a69(_0x4361c0['shapeData']),_0x44af7d=_0xfae447(()=>_0x5e4bce(_0x580167),[_0x580167]),_0x171df4=_0xfae447(()=>_0x54d766(_0x580167),[_0x580167]);_0x2f51d2(()=>{let _0x1da0d0=_0x4cb65d['onCommandExecuted'](_0x525ec5=>{if(_0x525ec5['id']!==_0x528850['id'])return;let _0x47e1fa=_0x4804ad['getShapeDataById'](_0xc4e331,_0x33a4a3,_0x37c5a2);_0x47e1fa&&_0x59ddbd(_0x47e1fa);});return()=>_0x1da0d0['dispose']();},[_0x4cb65d,_0x37c5a2,_0x4804ad,_0x33a4a3,_0xc4e331]);let _0x20afe4=_0x343c13=>{_0x59ddbd(_0x3ca47c=>({..._0x3ca47c,..._0x343c13}));},_0x176cb7=_0x37a0aa=>{let _0x8db3eb=_0x25c3c6(_0x580167,_0x37a0aa);jn(_0x4cb65d,_0xc4e331,_0x33a4a3,_0x37c5a2,{'oldShapeData':{'shapeText':_0x580167['shapeText']}},_0x8db3eb),_0x20afe4(_0x8db3eb);},_0x45c3a3=_0x14e335({'hostType':_0x593ef9['UNIVER_SHEET'],'unitId':_0xc4e331,'subUnitId':_0x33a4a3,'shapeId':_0x37c5a2,'shapeData':_0x580167,'onUpdateBinding':_0x5113e2=>{const _0x1f717d=_0x5971;let _0x3aff8c={'formulaBinding':_0x5113e2};jn(_0x4cb65d,_0xc4e331,_0x33a4a3,_0x37c5a2,{'oldShapeData':{'formulaBinding':_0x580167[_0x1f717d(0x138)]}},_0x3aff8c),_0x20afe4(_0x3aff8c);}});return _0x568cbe(_0x1370ea,{'children':[_0x49d3c9(_0xb6f545,{'shapeData':_0x580167,'shapeType':_0x15d939,'textStyle':{'ff':_0x3cbe53['shapeText']['fontFamily'],'fs':_0x3cbe53[_0x25dfb6(0x1b0)][_0x25dfb6(0x2fb)],'cl':{'rgb':_0x3cbe53[_0x25dfb6(0x1b0)]['color']},..._0x44af7d},'textModel':_0x171df4?{'ha':(_0xbe9f66=_0x171df4['ha'])==null?_0x166f93[_0x25dfb6(0xd2)]:_0xbe9f66,'va':(_0x280ccf=_0x171df4['va'])==null?_0x4874a7['TOP']:_0x280ccf}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x3cbe53[_0x25dfb6(0x2e6)],'defaultGradientEndColor':_0x3cbe53[_0x25dfb6(0x251)],'defaultStrokeColor':_0x3cbe53['stroke'],'extensionGroups':_0x45c3a3['extensionGroups'],'onUpdateShapeData':(_0x444ded,_0x224e4e)=>{jn(_0x4cb65d,_0xc4e331,_0x33a4a3,_0x37c5a2,_0x444ded,_0x224e4e),_0x224e4e&&_0x20afe4(_0x224e4e);},'onUpdateText':_0x176cb7,'onOpenPanel':()=>{_0x4cb65d['executeCommand'](pr['id'],{'unitId':_0xc4e331,'subUnitId':_0x33a4a3,'drawingId':_0x37c5a2});},'onDelete':()=>{_0x4cb65d['executeCommand'](_0x535cd6['id'],{'unitId':_0xc4e331,'drawings':[{'unitId':_0xc4e331,'subUnitId':_0x33a4a3,'drawingId':_0x37c5a2,'drawingType':_0x22c05a}]});}}),_0x45c3a3[_0x25dfb6(0x2c7)]]});}var wr=class extends _0x444b76{constructor(..._0x5e2c57){const _0x154397=_0xcb6cbb;super(..._0x5e2c57),Y(this,_0x154397(0x2b7),new _0x2c970e(null)),Y(this,_0x154397(0x1ac),this[_0x154397(0x2b7)]['asObservable']()),Y(this,_0x154397(0x1d4),new _0x2c970e(!0x1)),Y(this,'onSavingEditorData$',this[_0x154397(0x1d4)][_0x154397(0x1f0)]());}['dispose'](){const _0x286e31=_0xcb6cbb;this[_0x286e31(0x2b7)][_0x286e31(0x152)](null),this['_editingParams$'][_0x286e31(0x1da)](),this[_0x286e31(0x1d4)]['next'](!0x1),this['_onSavingEditorData$'][_0x286e31(0x1da)](),super[_0x286e31(0x20e)]();}[_0xcb6cbb(0x285)](_0x58d5ef){const _0x4ebad2=_0xcb6cbb;this[_0x4ebad2(0x2b7)][_0x4ebad2(0x152)](_0x58d5ef),_0x58d5ef==null&&this[_0x4ebad2(0x1d4)][_0x4ebad2(0x152)](!0x1);}[_0xcb6cbb(0x247)](_0x48eec0){const _0x1bfbd0=_0xcb6cbb;this[_0x1bfbd0(0x1d4)]['next'](_0x48eec0);}['getEditing'](){const _0x23f72c=_0xcb6cbb;return this['_editingParams$'][_0x23f72c(0x23c)]();}['completeEditing'](_0xc13550){const _0x4da2f3=_0xcb6cbb;this['getEditing']()&&(this[_0x4da2f3(0x247)](!0x0),requestAnimationFrame(()=>{const _0x4302bb=_0x4da2f3;this[_0x4302bb(0x285)](null);}));}['cancelEditing'](){const _0x36c2ae=_0xcb6cbb;this[_0x36c2ae(0x1e8)]()&&this[_0x36c2ae(0x285)](null);}};const Tr=_0x315608(()=>{const _0x4b6b3f=_0xcb6cbb;let _0x265d42=_0x5ead04(wr),_0x3cd1ef=_0x5ead04(_0x231cef),_0x1911e9=_0x5ead04(_0x5a1ed0),_0xb91e75=_0x5ead04(_0x3a72b1),_0x3a399f=_0x5ead04(_0x297a94);return _0x49d3c9(_0x2189a3,{'adapter':_0xfae447(()=>({'getShapeModel':(_0x5b1b1d,_0x1c4522,_0x42c035)=>_0x3cd1ef[_0x4b6b3f(0x2c4)](_0x5b1b1d,_0x1c4522,_0x42c035),'getShapeData':(_0x1e2a3b,_0x34f073,_0x356cc5)=>_0x3cd1ef['getShapeDataById'](_0x1e2a3b,_0x34f073,_0x356cc5),'getDrawingTransform':(_0x2968fc,_0x3a2a5f,_0x34aee9)=>{const _0x57e8c1=_0x4b6b3f;let _0x4591fc=_0x1911e9['getDrawingByParam']({'unitId':_0x2968fc,'subUnitId':_0x3a2a5f,'drawingId':_0x34aee9});return _0x4591fc==null?void 0x0:_0x4591fc[_0x57e8c1(0xce)];},'updateShapeText':({unitId:_0x101f4e,subUnitId:_0x37c4cf,shapeId:_0x49952d,shapeText:_0x228f00,oldShapeText:_0x527152})=>{_0xb91e75['executeCommand'](An['id'],{'unitId':_0x101f4e,'subUnitId':_0x37c4cf,'shapeId':_0x49952d,'shapeData':{'shapeText':_0x228f00},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x527152}}});},'updateHostSize':({unitId:_0x3b9957,subUnitId:_0x132da6,shapeId:_0x52e8ed,width:_0x28c894,height:_0x478b54})=>{const _0x1dc346=_0x4b6b3f;var _0x2a7ebd,_0xf725be,_0x1fa295;let _0x2bdc06=_0x1911e9['getDrawingByParam']({'unitId':_0x3b9957,'subUnitId':_0x132da6,'drawingId':_0x52e8ed}),_0x1a29f2=_0x2bdc06==null?void 0x0:_0x2bdc06[_0x1dc346(0xce)];if(!_0x2bdc06||!_0x1a29f2)return;let _0x77c763={..._0x1a29f2,'width':_0x28c894,'height':_0x478b54},_0x3df686=(_0x2a7ebd=_0x3a399f['getRenderUnitById'](_0x3b9957))==null||(_0x2a7ebd=_0x2a7ebd[_0x1dc346(0x2dd)](_0x48c126)['getSkeletonParam'](_0x132da6))==null?void 0x0:_0x2a7ebd[_0x1dc346(0x11c)],_0x2664bd=_0x3df686?(_0xf725be=_0x43002e(_0x77c763,_0x3df686))==null?_0x2bdc06['sheetTransform']:_0xf725be:_0x2bdc06[_0x1dc346(0x31a)],_0x14cebd=_0x3df686?(_0x1fa295=_0x5aa2b7(_0x77c763,_0x3df686))==null?_0x2bdc06[_0x1dc346(0x2b2)]:_0x1fa295:_0x2bdc06[_0x1dc346(0x2b2)];_0xb91e75['executeCommand'](_0x2cc676['id'],{'unitId':_0x3b9957,'drawings':[{..._0x2bdc06,'transform':_0x77c763,'sheetTransform':_0x2664bd,'axisAlignSheetTransform':_0x14cebd}]});},'allowHostSizeShrink':({unitId:_0x112302,subUnitId:_0x33de3f,shapeId:_0x3ebb8c})=>_0x4f6d3a(_0x3cd1ef[_0x4b6b3f(0xd4)](_0x112302,_0x33de3f,_0x3ebb8c))}),[_0xb91e75,_0x1911e9,_0x3a399f,_0x3cd1ef]),'editingService':_0x265d42,'editorUnitId':Gn,'positionOptions':_0xfae447(()=>({'viewportKeys':{'main':_0x61ec49[_0x4b6b3f(0x19a)],'leftTop':_0x61ec49[_0x4b6b3f(0x29d)],'top':_0x61ec49[_0x4b6b3f(0xc5)],'left':_0x61ec49[_0x4b6b3f(0x2e4)]},'getSkeleton':(_0x21a055,_0x1fbedb)=>{const _0x3596d6=_0x4b6b3f;var _0x5394ec,_0x1f33b4;return(_0x5394ec=(_0x1f33b4=_0x21a055[_0x3596d6(0x2dd)](_0x48c126)[_0x3596d6(0x11d)](_0x1fbedb['subUnitId']))==null?void 0x0:_0x1f33b4['skeleton'])==null?null:_0x5394ec;}}),[])});});let Er=class extends _0x444b76{constructor(_0x159561,_0x218afb){const _0x3b7eaa=_0xcb6cbb;super(),this['_componentManager']=_0x159561,this['_iconManager']=_0x218afb,this[_0x3b7eaa(0xe2)](),this[_0x3b7eaa(0x2a7)]();}['_registerIcons'](){const _0x1e9fc2=_0xcb6cbb;this[_0x1e9fc2(0xea)]['has']('ObjectLayersIcon')||this[_0x1e9fc2(0x2d6)](this['_iconManager']['register']({'ObjectLayersIcon':_0x41a10e})),this[_0x1e9fc2(0xea)][_0x1e9fc2(0x1cf)](_0x1e9fc2(0xcc))||this['disposeWithMe'](this['_iconManager']['register']({'FlipHorizontalIcon':_0x473587})),this[_0x1e9fc2(0xea)]['has'](_0x1e9fc2(0x1f8))||this[_0x1e9fc2(0x2d6)](this[_0x1e9fc2(0xea)][_0x1e9fc2(0xfb)]({'FlipVerticalIcon':_0x1155bd}));}[_0xcb6cbb(0x2a7)](){const _0x17dd4a=_0xcb6cbb;this[_0x17dd4a(0x2d6)](this[_0x17dd4a(0x16a)][_0x17dd4a(0xfb)](Hn,xr)),this[_0x17dd4a(0x2d6)](this[_0x17dd4a(0x16a)]['register'](Un,vr)),this[_0x17dd4a(0x2d6)](this['_componentManager']['register'](Yn,er)),this[_0x17dd4a(0x2d6)](this[_0x17dd4a(0x16a)][_0x17dd4a(0xfb)](Xn,Qn)),this[_0x17dd4a(0x16a)][_0x17dd4a(0x2da)](_0x3d27a0)||this[_0x17dd4a(0x2d6)](this[_0x17dd4a(0x16a)]['register'](_0x3d27a0,$n)),this[_0x17dd4a(0x2d6)](this['_componentManager'][_0x17dd4a(0xfb)](Wn,Sr)),this[_0x17dd4a(0x2d6)](this[_0x17dd4a(0x16a)][_0x17dd4a(0xfb)](Kn,_0x5181cc)),this[_0x17dd4a(0x2d6)](this[_0x17dd4a(0x16a)]['register'](_0x17dd4a(0x2d5),Tr));}};Er=Z([X(0x0,_0x25d6be(_0x3e4916)),X(0x1,_0x25d6be(_0x302aca))],Er);let Dr=class extends _0x444b76{constructor(_0x4cb247,_0x6f5d4a,_0x20b299,_0x1e98de,_0x2dd32b){const _0x3115a1=_0xcb6cbb;super(),this[_0x3115a1(0x2ea)]=_0x4cb247,this['_drawingManagerService']=_0x6f5d4a,this[_0x3115a1(0x154)]=_0x20b299,this[_0x3115a1(0x23f)]=_0x1e98de,this[_0x3115a1(0x104)]=_0x2dd32b,Y(this,'_activeImageId',null),Y(this,_0x3115a1(0x2aa),null),Y(this,_0x3115a1(0x13b),null),Y(this,'_activeAdjustPointList',void 0x0),Y(this,_0x3115a1(0x1e9),[]),Y(this,_0x3115a1(0x1a6),0x0),Y(this,_0x3115a1(0x139),0x0),Y(this,'_baseWidth',0x0),Y(this,_0x3115a1(0x14d),0x0),Y(this,_0x3115a1(0x2e3),!0x1),Y(this,'_activeAdjustInfo',void 0x0),Y(this,'_activeShapeModel',void 0x0),Y(this,_0x3115a1(0x191),void 0x0),Y(this,_0x3115a1(0x17a),void 0x0),Y(this,_0x3115a1(0xe3),!0x1),this['_registerFocusChangeHandler'](),this['_registerMoveHandler']();}['clearAdjustControls'](){const _0x28136f=_0xcb6cbb;this[_0x28136f(0x2f6)]();}[_0xcb6cbb(0x2b3)](){const _0x58e79e=_0xcb6cbb;this[_0x58e79e(0x2f6)](),this[_0x58e79e(0x126)](!0x0);}[_0xcb6cbb(0x272)](_0x41678b,_0x7119a7,_0x4ac725,_0x3a47b7){const _0x1d7f1b=_0xcb6cbb;let _0x23b538=_0x41678b;if(_0x23b538!==_0x4c4784['None']&&_0x41678b!=='custom')try{let _0x2d535e=new _0x508f4b(_0x23b538,_0x1d7f1b(0xe4)+_0x41678b);return _0x3a47b7&&_0x2d535e[_0x1d7f1b(0x1fa)]({'adjustValues':_0x3a47b7},!0x0),_0x2d535e[_0x1d7f1b(0x1d6)]({'width':_0x7119a7,'height':_0x4ac725}),_0x2d535e;}catch{return;}}['_getImageDrawingInfo'](_0x45f7d9,_0x314a84,_0x5c9ac2){const _0x1004f3=_0xcb6cbb;let _0x53d7e3={'unitId':_0x45f7d9,'subUnitId':_0x314a84,'drawingId':_0x5c9ac2},_0x1a893e=this['_drawingManagerService'][_0x1004f3(0x16d)](_0x53d7e3);if(!(!_0x1a893e||_0x1a893e['drawingType']!==_0x55872c[_0x1004f3(0x172)]))return _0x1a893e;}['_getImagePrstGeom'](_0x2b36c6,_0x22ff11,_0x1aa40b){const _0x1e1088=_0xcb6cbb;let _0x1721f8=this['_renderManagerService'][_0x1e1088(0x133)](_0x2b36c6);if(!_0x1721f8)return;let {scene:_0x3b9365}=_0x1721f8,_0xc24149=_0x4f98bd({'unitId':_0x2b36c6,'subUnitId':_0x22ff11,'drawingId':_0x1aa40b}),_0x51d90a=_0x3b9365[_0x1e1088(0x1a2)](_0xc24149);if(_0x51d90a instanceof _0x2c6b0b){let _0x1aac40=_0x51d90a[_0x1e1088(0x2db)];if(_0x1aac40)return{'prstGeom':_0x1aac40,'adjustValues':_0x51d90a[_0x1e1088(0x278)]};}}[_0xcb6cbb(0x126)](_0x52210b=!0x1){const _0x35937d=_0xcb6cbb;if(!this[_0x35937d(0x2aa)]||!this[_0x35937d(0x13b)]||!this[_0x35937d(0x15d)])return;let _0x3c802f=this[_0x35937d(0x154)]['getRenderUnitById'](this[_0x35937d(0x2aa)]);if(!_0x3c802f||!_0x3c802f['with'](_0x48c126)[_0x35937d(0x146)]())return;let {scene:_0x5e631a}=_0x3c802f,_0x1e2dbc=this[_0x35937d(0x31e)](this[_0x35937d(0x2aa)],this['_subUnitId'],this[_0x35937d(0x15d)]);if(!_0x1e2dbc)return;let {transform:_0x192b39}=_0x1e2dbc;if(!_0x192b39)return;let {left:_0x5784ad,top:_0x1eecaf,width:_0x2c712d,height:_0x5804cb,flipX:_0x1cbd26,flipY:_0xaf338e,angle:_0x36dcda=0x0}=_0x192b39;if(_0x5784ad===void 0x0||_0x1eecaf===void 0x0)return;let _0x4f35ec=this['_getImagePrstGeom'](this['_unitId'],this[_0x35937d(0x13b)],this[_0x35937d(0x15d)]);if(!_0x4f35ec)return;if(_0x52210b){let _0x204138=this[_0x35937d(0x272)](_0x4f35ec[_0x35937d(0x2db)],_0x2c712d||0x0,_0x5804cb||0x0,_0x4f35ec[_0x35937d(0x260)]);if(!_0x204138)return;this[_0x35937d(0x143)]=_0x204138['getDrawingPoints']();}let _0x1d5e9e=this[_0x35937d(0x143)];if(!(!_0x1d5e9e||_0x1d5e9e[_0x35937d(0x25d)]===0x0))for(let _0x54e8eb=0x0;_0x54e8eb<_0x1d5e9e[_0x35937d(0x25d)];_0x54e8eb++){let _0x5e8250=_0x1d5e9e[_0x54e8eb],_0x385672=_0x5e8250['x'],_0x1122b7=_0x5e8250['y'];if(_0x1cbd26&&(_0x385672=(_0x2c712d||0x0)-_0x385672),_0xaf338e&&(_0x1122b7=(_0x5804cb||0x0)-_0x1122b7),_0x36dcda!==0x0){let _0x54a947=(_0x2c712d||0x0)/0x2,_0xe75a45=(_0x5804cb||0x0)/0x2,_0xe681b9=_0x36dcda*Math['PI']/0xb4,_0x4797d7=Math[_0x35937d(0x20b)](_0xe681b9),_0x4c87f1=Math[_0x35937d(0x2d3)](_0xe681b9),_0x3139bd=_0x385672-_0x54a947,_0x21b479=_0x1122b7-_0xe75a45;_0x385672=_0x54a947+(_0x3139bd*_0x4797d7-_0x21b479*_0x4c87f1),_0x1122b7=_0xe75a45+(_0x3139bd*_0x4c87f1+_0x21b479*_0x4797d7);}let _0x197f8f={'x':_0x385672,'y':_0x1122b7,'adjName':_0x5e8250[_0x35937d(0x2bc)]};this[_0x35937d(0x18e)](_0x5e631a,_0x197f8f,_0x197f8f['adjName'],_0x5784ad,_0x1eecaf,this[_0x35937d(0x2aa)],this[_0x35937d(0x13b)]);}}[_0xcb6cbb(0x18e)](_0x21f874,_0x37a9d6,_0x41c92f,_0x42f3b7,_0x9b5f6d,_0x5cfd4d,_0x5c32ab){const _0x54cc8a=_0xcb6cbb;if(!this[_0x54cc8a(0x15d)])return;let _0x160e5c='image-clip-adjust-point-'+this[_0x54cc8a(0x15d)]+'-'+_0x41c92f,_0x19b536=_0x21f874[_0x54cc8a(0x114)](_0x160e5c);if(_0x19b536){_0x19b536[_0x54cc8a(0xdd)]({'left':_0x37a9d6['x']+_0x42f3b7-_0x3cbe53[_0x54cc8a(0xf0)],'top':_0x37a9d6['y']+_0x9b5f6d-_0x3cbe53[_0x54cc8a(0xf0)]});return;}let _0x315308=new Rn(_0x160e5c,{'left':_0x37a9d6['x']+_0x42f3b7-_0x3cbe53[_0x54cc8a(0xf0)],'top':_0x37a9d6['y']+_0x9b5f6d-_0x3cbe53[_0x54cc8a(0xf0)],'adjName':_0x41c92f,'shapeId':this[_0x54cc8a(0x15d)],'unitId':_0x5cfd4d,'subUnitId':_0x5c32ab,'width':_0x3cbe53['adjHandleSize']+0x8,'height':_0x3cbe53[_0x54cc8a(0xf0)]+0x8,'zIndex':_0x338629+0x1,'evented':!0x0});this['_shapes'][_0x54cc8a(0x311)](_0x315308),this[_0x54cc8a(0x131)](_0x315308,_0x21f874,_0x41c92f),_0x21f874[_0x54cc8a(0x212)](_0x315308,_0x338629+0x1);}[_0xcb6cbb(0x2f6)](){const _0x211a98=_0xcb6cbb;this[_0x211a98(0x1e9)]['length']!==0x0&&(this['_shapes'][_0x211a98(0x26a)](_0x5e7e8a=>_0x5e7e8a['dispose']()),this[_0x211a98(0x1e9)]=[]);}[_0xcb6cbb(0x1ed)](_0x29f80e,_0x35c7db){const _0x2ff573=_0xcb6cbb;var _0x3730d5;let _0x386cdf={'x':0x0,'y':0x0},_0x1f209c=this[_0x2ff573(0x154)]['getRenderUnitById'](_0x29f80e);if(!_0x1f209c||!_0x1f209c[_0x2ff573(0x2dd)](_0x48c126)['getSkeleton'](_0x35c7db))return _0x386cdf;let _0x47b7a3=_0x1f209c[_0x2ff573(0x2dd)](_0x3e3bbb),_0x13f273=_0x47b7a3==null?void 0x0:_0x47b7a3[_0x2ff573(0x244)]();if(!_0x13f273)return _0x386cdf;let _0x306379=(_0x3730d5=this['_univerInstanceService'][_0x2ff573(0x187)](_0x29f80e))==null?void 0x0:_0x3730d5[_0x2ff573(0x26d)](_0x35c7db);if(!_0x306379)return _0x386cdf;let _0x12f578=_0x3dd685(_0x13f273[_0x2ff573(0x2f9)],_0x13f273[_0x2ff573(0x234)],_0x1f209c['scene'],_0x306379);return _0x12f578?{'x':_0x12f578[_0x2ff573(0x1c4)],'y':_0x12f578['viewportScrollY']}:_0x386cdf;}['_getZoomRatio'](_0xc55ee6,_0x115b7a){const _0x1b987c=_0xcb6cbb;var _0x421f33,_0x45ff6e;let _0x43d94c=(_0x421f33=this[_0x1b987c(0x23f)][_0x1b987c(0x187)](_0xc55ee6))==null?void 0x0:_0x421f33['getSheetBySheetId'](_0x115b7a);return(_0x45ff6e=_0x43d94c==null?void 0x0:_0x43d94c[_0x1b987c(0x2d2)]())==null?0x1:_0x45ff6e;}[_0xcb6cbb(0x131)](_0x1257dd,_0x53b286,_0x386349){const _0xd59c20=_0xcb6cbb;this['disposeWithMe'](_0x452c8c(_0x1257dd[_0xd59c20(0xc9)][_0xd59c20(0x2fe)]((_0x3fcceb,_0x478fa1)=>{const _0x186ff1=_0xd59c20;var _0x5c1c9b,_0x39d006,_0x219e15;let {unitId:_0x255fbe,subUnitId:_0x228d0f,drawingId:_0x2fc253}=_0x1257dd[_0x186ff1(0x23d)](),_0x268f0b=this[_0x186ff1(0x31e)](_0x255fbe,_0x228d0f,_0x2fc253);if(!(_0x268f0b!=null&&_0x268f0b[_0x186ff1(0xce)]))return;let {left:_0x2addeb,top:_0x48e9e4,width:_0x44aa71,height:_0x259712}=_0x268f0b[_0x186ff1(0xce)];this[_0x186ff1(0x1a6)]=_0x2addeb||0x0,this[_0x186ff1(0x139)]=_0x48e9e4||0x0,this[_0x186ff1(0x17c)]=_0x44aa71||0x0,this['_baseHeight']=_0x259712||0x0;let _0x52eba0=!!((_0x5c1c9b=_0x268f0b[_0x186ff1(0xce)])!=null&&_0x5c1c9b[_0x186ff1(0x16c)]),_0x1f8e4a=!!((_0x39d006=_0x268f0b[_0x186ff1(0xce)])!=null&&_0x39d006['flipY']),_0x47226f=((_0x219e15=_0x268f0b[_0x186ff1(0xce)])==null?void 0x0:_0x219e15[_0x186ff1(0x31f)])||0x0,_0x599d21=this[_0x186ff1(0x266)](_0x255fbe,_0x228d0f,_0x2fc253);if(!_0x599d21)return;let _0x2762ec=this[_0x186ff1(0x272)](_0x599d21[_0x186ff1(0x2db)],this[_0x186ff1(0x17c)],this[_0x186ff1(0x14d)],_0x599d21[_0x186ff1(0x260)]);if(!_0x2762ec||(this[_0x186ff1(0xf6)]=_0x2762ec,this[_0x186ff1(0x2f5)]=_0x2762ec[_0x186ff1(0x1a4)](_0x386349),!this['_activeAdjustInfo']))return;this[_0x186ff1(0x2e3)]=!0x0,_0x53b286['disableObjectsEvent']();let _0x592869=_0x599d21[_0x186ff1(0x2db)];this['_adjHandlerPointerMove']=_0x53b286[_0x186ff1(0x291)]['subscribeEvent']((_0x4e3a6f,_0x448a68)=>{const _0x20cd52=_0x186ff1;if(!this[_0x20cd52(0x2e3)])return;let {offsetX:_0x531459,offsetY:_0x1775e1}=_0x4e3a6f,_0x373d2b=this['_activeAdjustInfo'];if(!this[_0x20cd52(0xf6)]||!_0x373d2b)return;_0x53b286[_0x20cd52(0x31c)](),_0x53b286[_0x20cd52(0x328)](_0x1bae0e[_0x20cd52(0x194)]);let _0x292599={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this[_0x20cd52(0x14d)]},_0x214e20=this[_0x20cd52(0x1ed)](_0x255fbe,_0x228d0f),_0x5a5dbc=this[_0x20cd52(0xc4)](_0x255fbe,_0x228d0f),_0x57d4f7=_0x531459/_0x5a5dbc+_0x214e20['x']-this[_0x20cd52(0x1a6)],_0x1ce65b=_0x1775e1/_0x5a5dbc+_0x214e20['y']-this[_0x20cd52(0x139)];if(_0x47226f!==0x0){let _0x2ea799=this[_0x20cd52(0x17c)]/0x2,_0x2d114e=this[_0x20cd52(0x14d)]/0x2,_0x4e4232=_0x47226f*Math['PI']/0xb4,_0x3f2fd5=Math['cos'](_0x4e4232),_0x25ad79=Math[_0x20cd52(0x2d3)](_0x4e4232),_0x4797f9=_0x57d4f7-_0x2ea799,_0x68e255=_0x1ce65b-_0x2d114e;_0x57d4f7=_0x2ea799+(_0x4797f9*_0x3f2fd5+_0x68e255*_0x25ad79),_0x1ce65b=_0x2d114e+(-_0x4797f9*_0x25ad79+_0x68e255*_0x3f2fd5);}_0x52eba0&&(_0x57d4f7=this[_0x20cd52(0x17c)]-_0x57d4f7),_0x1f8e4a&&(_0x1ce65b=this[_0x20cd52(0x14d)]-_0x1ce65b);let _0x37233c=this['_activeShapeModel'][_0x20cd52(0xbb)](_0x292599,{'x':_0x57d4f7,'y':_0x1ce65b},_0x373d2b,_0x52eba0,_0x1f8e4a);if(Object['keys'](_0x37233c)[_0x20cd52(0x25d)]!==0x0){for(let [_0x27c94b,_0x2cd2ce]of Object[_0x20cd52(0x1c8)](_0x37233c))this[_0x20cd52(0xf6)][_0x20cd52(0xda)](_0x27c94b,_0x2cd2ce);this[_0x20cd52(0xf6)][_0x20cd52(0x1d6)]({'width':this[_0x20cd52(0x17c)],'height':this[_0x20cd52(0x14d)]}),this[_0x20cd52(0x2f2)](_0x255fbe,_0x228d0f,_0x2fc253,_0x37233c),this[_0x20cd52(0x143)]=this[_0x20cd52(0xf6)][_0x20cd52(0x13c)](),this[_0x20cd52(0x126)](),_0x448a68[_0x20cd52(0x2c3)]();}}),this[_0x186ff1(0x17a)]=_0x53b286[_0x186ff1(0x24e)][_0x186ff1(0x2fe)]((_0x46a751,_0x204573)=>{const _0x220c97=_0x186ff1;if(this['_adjHandlerPointerMove'][_0x220c97(0x22f)](),this['_adjHandlerPointerUp']['unsubscribe'](),_0x53b286['resetCursor'](),this['_activeShapeModel']){let _0x54bf7e=this[_0x220c97(0xf6)][_0x220c97(0x111)](),_0x4188c3={};for(let _0x11aa58 of _0x54bf7e){let _0x4d1b93=this[_0x220c97(0xf6)]['getAdjustValueByName'](_0x11aa58);_0x4d1b93!==void 0x0&&(_0x4188c3[_0x11aa58]=_0x4d1b93);}this[_0x220c97(0x104)][_0x220c97(0x173)](_0x255fbe,_0x228d0f,_0x2fc253,_0x592869,_0x4188c3);}this['_activeAdjustInfo']=void 0x0,this[_0x220c97(0xf6)]=void 0x0,this[_0x220c97(0x2e3)]=!0x1,_0x204573['stopPropagation'](),_0x53b286['enableObjectsEvent']();}),_0x478fa1[_0x186ff1(0x2c3)]();})));}[_0xcb6cbb(0x2f2)](_0x139748,_0xa65c53,_0x56f2b8,_0x5236c2){const _0x2c4003=_0xcb6cbb;let _0xc9ee7d=this[_0x2c4003(0x154)][_0x2c4003(0x133)](_0x139748);if(!_0xc9ee7d)return;let {scene:_0x26a9d4}=_0xc9ee7d,_0x2c31b9=_0x4f98bd({'unitId':_0x139748,'subUnitId':_0xa65c53,'drawingId':_0x56f2b8}),_0x4b9023=_0x26a9d4['getObject'](_0x2c31b9);if(_0x4b9023 instanceof _0x2c6b0b){var _0x2cc9fb;let _0x2b253d=(_0x2cc9fb=_0x4b9023['prstGeomAdjValues'])==null?{}:_0x2cc9fb;_0x4b9023[_0x2c4003(0xd3)]({..._0x2b253d,..._0x5236c2}),_0x4b9023[_0x2c4003(0x1dd)](!0x0);}}[_0xcb6cbb(0x19b)](){const _0x5b994d=_0xcb6cbb;let _0x580c0e=this['_univerInstanceService'][_0x5b994d(0x1e2)](_0x593ef9[_0x5b994d(0x298)]);this['disposeWithMe'](_0x580c0e[_0x5b994d(0x23e)](_0x11d4bf(_0xab1079=>_0xab1079?_0xab1079[_0x5b994d(0x10c)]['pipe'](_0x11d4bf(_0x3c4906=>{const _0x5c57bc=_0x5b994d;if(!_0x3c4906)return _0x1198ce;let _0x2ab006=_0xab1079['getUnitId'](),_0x422210=this[_0x5c57bc(0x154)][_0x5c57bc(0x133)](_0x2ab006),_0x33b4af=_0x422210==null?void 0x0:_0x422210['scene'];return _0x33b4af?_0x9a150f(_0x33b4af):_0x1198ce;})):_0x1198ce))[_0x5b994d(0x2f7)](_0xa73dd7=>{const _0x209e42=_0x5b994d;let _0x319181=_0xa73dd7['getTransformerByCreate']();this[_0x209e42(0x2d6)](_0xa73dd7['onPointerMove$'][_0x209e42(0x2fe)](()=>{const _0x5d6874=_0x209e42;this['_isImagePointerDown']&&this[_0x5d6874(0x2f6)]();})),this[_0x209e42(0x2d6)](_0x319181['changeStart$'][_0x209e42(0x2f7)](_0x54cd17=>{const _0xa31fb0=_0x209e42;let {objects:_0x21bab1}=_0x54cd17;if(this[_0xa31fb0(0x126)](),_0x21bab1!==null&&_0x21bab1[_0xa31fb0(0x1e1)]===0x1){let _0x2d7f57=_0x21bab1['values']()['next']()['value'];_0x2d7f57 instanceof _0x2c6b0b&&_0x2d7f57[_0xa31fb0(0x2db)]&&(this['_isImagePointerDown']=!0x0);}})),this[_0x209e42(0x2d6)](_0x319181[_0x209e42(0x27e)][_0x209e42(0x2f7)](()=>{const _0x5392e8=_0x209e42;this['_isImagePointerDown']&&this[_0x5392e8(0x2f6)]();})),this[_0x209e42(0x2d6)](_0xa73dd7[_0x209e42(0x24e)][_0x209e42(0x2fe)](()=>{const _0xd6dddc=_0x209e42;this['_isImagePointerDown']&&(this[_0xd6dddc(0xe3)]=!0x1,this[_0xd6dddc(0x126)]());})),this['disposeWithMe'](_0x319181[_0x209e42(0xeb)][_0x209e42(0x2f7)](()=>{const _0x2909e6=_0x209e42;if(this['_unitId']&&this['_subUnitId']&&this[_0x2909e6(0x15d)]){let _0x53e620=this[_0x2909e6(0x266)](this['_unitId'],this[_0x2909e6(0x13b)],this['_activeImageId']);if(_0x53e620){var _0x3da8fd,_0x28c2f3;let _0x113646=this[_0x2909e6(0x31e)](this[_0x2909e6(0x2aa)],this[_0x2909e6(0x13b)],this[_0x2909e6(0x15d)]),_0x2e361d=(_0x113646==null||(_0x3da8fd=_0x113646['transform'])==null?void 0x0:_0x3da8fd['width'])||0x0,_0x564b3c=(_0x113646==null||(_0x28c2f3=_0x113646['transform'])==null?void 0x0:_0x28c2f3['height'])||0x0,_0x1ec05d=this[_0x2909e6(0x272)](_0x53e620[_0x2909e6(0x2db)],_0x2e361d,_0x564b3c,_0x53e620[_0x2909e6(0x260)]);_0x1ec05d&&(this[_0x2909e6(0x143)]=_0x1ec05d['getDrawingPoints'](),this[_0x2909e6(0x2f6)](),this[_0x2909e6(0x126)](!0x0));}}}));}));}[_0xcb6cbb(0x16e)](){const _0x1044af=_0xcb6cbb;this[_0x1044af(0x2d6)](this[_0x1044af(0x1ad)][_0x1044af(0xed)]['subscribe'](_0x50c5c6=>{const _0x3ea417=_0x1044af;if(_0x50c5c6[_0x3ea417(0x25d)]===0x1){let _0x4749a0=_0x50c5c6[0x0];if(_0x4749a0['drawingType']===_0x55872c[_0x3ea417(0x172)]){let {unitId:_0x1e57a9,subUnitId:_0x13223c,drawingId:_0x481de2}=_0x4749a0,_0x244c41=this['_getImagePrstGeom'](_0x1e57a9,_0x13223c,_0x481de2);if(_0x244c41){var _0x298532,_0x2d7ebb;this[_0x3ea417(0x15d)]=_0x481de2,this['_unitId']=_0x1e57a9,this[_0x3ea417(0x13b)]=_0x13223c;let _0xa8f814=this[_0x3ea417(0x31e)](_0x1e57a9,_0x13223c,_0x481de2),_0x133d2d=(_0xa8f814==null||(_0x298532=_0xa8f814[_0x3ea417(0xce)])==null?void 0x0:_0x298532[_0x3ea417(0x1fb)])||0x0,_0x5a9737=(_0xa8f814==null||(_0x2d7ebb=_0xa8f814[_0x3ea417(0xce)])==null?void 0x0:_0x2d7ebb['height'])||0x0,_0x5dc3c7=this[_0x3ea417(0x272)](_0x244c41[_0x3ea417(0x2db)],_0x133d2d,_0x5a9737,_0x244c41[_0x3ea417(0x260)]);_0x5dc3c7&&(this[_0x3ea417(0x143)]=_0x5dc3c7[_0x3ea417(0x13c)]()),this[_0x3ea417(0x2f6)](),this[_0x3ea417(0x126)](!0x0);}else this[_0x3ea417(0x13a)]();}else this[_0x3ea417(0x13a)]();}else this[_0x3ea417(0x13a)]();})),this[_0x1044af(0x2d6)](this['_drawingManagerService'][_0x1044af(0x1de)][_0x1044af(0x2f7)](_0x2f997d=>{const _0x28c496=_0x1044af;if(_0x2f997d[_0x28c496(0x25d)]===0x1){let _0x591dac=_0x2f997d[0x0],_0x14c4ad=this[_0x28c496(0x1ad)]['getDrawingByParam'](_0x591dac);(_0x14c4ad==null?void 0x0:_0x14c4ad[_0x28c496(0x1c2)])===_0x55872c[_0x28c496(0x172)]&&this[_0x28c496(0x15d)]===_0x591dac[_0x28c496(0x10e)]&&(this[_0x28c496(0x2f6)](),this['_createControls'](!0x0));}})),this[_0x1044af(0x2d6)](this[_0x1044af(0x1ad)]['remove$'][_0x1044af(0x2f7)](_0x346400=>{const _0xcff95e=_0x1044af;for(let _0x37bdc9 of _0x346400)this['_activeImageId']===_0x37bdc9[_0xcff95e(0x10e)]&&this['_resetState']();}));}[_0xcb6cbb(0x13a)](){const _0x1e49b0=_0xcb6cbb;this[_0x1e49b0(0x15d)]=null,this[_0x1e49b0(0x2aa)]=null,this['_subUnitId']=null,this[_0x1e49b0(0x143)]=void 0x0,this[_0x1e49b0(0x2f6)]();}};Dr=Z([X(0x1,_0x5a1ed0),X(0x2,_0x25d6be(_0x297a94)),X(0x3,_0x1af83c),X(0x4,_0x25d6be(Jn))],Dr);let Or=class extends _0x444b76{constructor(_0x2cb114,_0xbaef66,_0x4e19f5,_0x53a23b){const _0x359f7b=_0xcb6cbb;super(),this[_0x359f7b(0x23f)]=_0x2cb114,this[_0x359f7b(0x1d7)]=_0xbaef66,this[_0x359f7b(0x1b7)]=_0x4e19f5,this[_0x359f7b(0x287)]=_0x53a23b,this[_0x359f7b(0xb6)]();}[_0xcb6cbb(0xb6)](){const _0xa46382=_0xcb6cbb;this[_0xa46382(0x2d6)](this[_0xa46382(0x1d7)][_0xa46382(0xcd)]({'getMutations':_0x1c6c27=>{const _0x2c5833=_0xa46382;if(_0x1c6c27['id']===_0x130616['id']){let _0x4896a3=_0x5f445e(this['_univerInstanceService'],_0x1c6c27[_0x2c5833(0x24d)]);if(!_0x4896a3)return{'redos':[],'undos':[]};let {unitId:_0x4cd9d4,subUnitId:_0xdb827b}=_0x4896a3,_0x24494b=this[_0x2c5833(0x1b7)]['getDrawingData'](_0x4cd9d4,_0xdb827b),_0xbee42c=Object[_0x2c5833(0x1c7)](_0x24494b)[_0x2c5833(0x2b4)](_0x2f826a=>_0x2f826a[_0x2c5833(0x1c2)]===_0x55872c['DRAWING_SHAPE']);if(_0xbee42c[_0x2c5833(0x25d)]===0x0)return{'redos':[],'undos':[]};let _0xc18a3c=[],_0x464090=[];for(let _0x23a3b1=0x0;_0x23a3b1<_0xbee42c[_0x2c5833(0x25d)];_0x23a3b1++){let _0x4979f1=_0xbee42c[_0x23a3b1],_0x22eabe=this[_0x2c5833(0x287)][_0x2c5833(0x2c4)](_0x4979f1[_0x2c5833(0x241)],_0x4979f1['subUnitId'],_0x4979f1['drawingId']);if(!_0x22eabe)continue;let {redo:_0x6f2326,undo:_0x56c30e,objects:_0x5b5006}=this[_0x2c5833(0x1b7)][_0x2c5833(0x1b1)]([_0x4979f1]);_0xc18a3c[_0x2c5833(0x311)]({'id':_0x1fd47e['id'],'params':{'unitId':_0x4cd9d4,'subUnitId':_0xdb827b,'shapeId':_0x4979f1[_0x2c5833(0x10e)]}}),_0xc18a3c['push']({'id':_0x555349['id'],'params':{'unitId':_0x4cd9d4,'subUnitId':_0xdb827b,'type':_0x11752e['REMOVE'],'op':_0x6f2326,'objects':_0x5b5006}}),_0x464090['push']({'id':_0x555349['id'],'params':{'unitId':_0x4cd9d4,'subUnitId':_0xdb827b,'type':_0x11752e[_0x2c5833(0x101)],'op':_0x56c30e,'objects':_0x5b5006}}),_0x464090[_0x2c5833(0x311)]({'id':_0x314d59['id'],'params':{'unitId':_0x4cd9d4,'subUnitId':_0xdb827b,'shapeId':_0x4979f1['drawingId'],'shapeType':_0x22eabe['getShapeType'](),'shapeData':JSON[_0x2c5833(0x226)](JSON[_0x2c5833(0x276)](_0x22eabe[_0x2c5833(0x113)]()))}});}return{'redos':_0xc18a3c,'undos':_0x464090};}else{if(_0x1c6c27['id']===_0x5249ee['id']){let {unitId:_0x101cc2,subUnitId:_0x2e6fe2,targetSubUnitId:_0x1cd677}=_0x1c6c27[_0x2c5833(0x24d)];if(!_0x101cc2||!_0x2e6fe2||!_0x1cd677)return{'redos':[],'undos':[]};let _0xa6e4ea=this[_0x2c5833(0x1b7)][_0x2c5833(0x127)](_0x101cc2,_0x2e6fe2),_0x4a41a4=Object[_0x2c5833(0x1c7)](_0xa6e4ea)[_0x2c5833(0x2b4)](_0x4bbe29=>_0x4bbe29['drawingType']===_0x55872c[_0x2c5833(0x1ce)]);if(_0x4a41a4[_0x2c5833(0x25d)]===0x0)return{'redos':[],'undos':[]};let _0x16d187=[],_0x5f331b=[];for(let _0xfa56ef=0x0;_0xfa56ef<_0x4a41a4[_0x2c5833(0x25d)];_0xfa56ef++){let _0x1d4306=_0x4a41a4[_0xfa56ef],_0x13f2bb=this['_sheetsShapeService'][_0x2c5833(0x2c4)](_0x1d4306[_0x2c5833(0x241)],_0x1d4306[_0x2c5833(0x281)],_0x1d4306[_0x2c5833(0x10e)]);if(!_0x13f2bb)continue;let _0x3d4581=_0xf6c8c4(),_0x282169={..._0x1d4306,'unitId':_0x101cc2,'subUnitId':_0x1cd677,'drawingId':_0x3d4581},{redo:_0x59c180,undo:_0x34dc03,objects:_0x595757}=this['_sheetDrawingService'][_0x2c5833(0x2bf)]([_0x282169]);_0x16d187[_0x2c5833(0x311)]({'id':_0x555349['id'],'params':{'unitId':_0x101cc2,'subUnitId':_0x1cd677,'type':_0x11752e[_0x2c5833(0x101)],'op':_0x59c180,'objects':_0x595757}}),_0x16d187[_0x2c5833(0x311)]({'id':_0x314d59['id'],'params':{'unitId':_0x101cc2,'subUnitId':_0x1cd677,'shapeId':_0x3d4581,'shapeType':_0x13f2bb[_0x2c5833(0xb7)](),'shapeData':JSON[_0x2c5833(0x226)](JSON[_0x2c5833(0x276)](_0x13f2bb[_0x2c5833(0x113)]()))}}),_0x5f331b[_0x2c5833(0x311)]({'id':_0x1fd47e['id'],'params':{'unitId':_0x101cc2,'subUnitId':_0x1cd677,'shapeId':_0x3d4581}}),_0x5f331b[_0x2c5833(0x311)]({'id':_0x555349['id'],'params':{'unitId':_0x101cc2,'subUnitId':_0x1cd677,'type':_0x11752e[_0x2c5833(0x29c)],'op':_0x34dc03,'objects':_0x595757}});}return{'redos':_0x16d187,'undos':_0x5f331b};}}return{'redos':[],'undos':[]};}}));}};Or=Z([X(0x0,_0x25d6be(_0x1af83c)),X(0x1,_0x25d6be(_0x555ec8)),X(0x2,_0x25d6be(_0x2a99b6)),X(0x3,_0x25d6be(_0x231cef))],Or);let kr=class extends _0x444b76{constructor(_0xe3879f,_0x51a412,_0xc62ff1,_0x10b4f6,_0xf1524d){const _0x4cbd30=_0xcb6cbb;super(),this[_0x4cbd30(0x2ea)]=_0xe3879f,this[_0x4cbd30(0x161)]=_0x51a412,this[_0x4cbd30(0x1ad)]=_0xc62ff1,this[_0x4cbd30(0x14f)]=_0x10b4f6,this[_0x4cbd30(0x287)]=_0xf1524d,Y(this,_0x4cbd30(0x280),null),this['_initEvents'](),this[_0x4cbd30(0x211)](),this[_0x4cbd30(0xd0)]();}[_0xcb6cbb(0xf3)](){const _0x242c33=_0xcb6cbb;let {scene:_0x27f938}=this['_context'];this[_0x242c33(0x2d6)](_0x27f938['onDblclick$'][_0x242c33(0x2fe)](_0x5ed27d=>{const _0x573db7=_0x242c33;let {offsetX:_0x43ebe3,offsetY:_0x1edc92}=_0x5ed27d,_0x2ed5e3=_0x27f938[_0x573db7(0x1eb)](_0x304485[_0x573db7(0x1e3)]([_0x43ebe3,_0x1edc92]));if(_0x2ed5e3 instanceof Ln){let _0x584683=this[_0x573db7(0x287)]['getShapeModel'](_0x2ed5e3[_0x573db7(0x241)],_0x2ed5e3[_0x573db7(0x281)],_0x2ed5e3[_0x573db7(0x124)]);if(_0x584683!=null&&_0x584683[_0x573db7(0x113)]()[_0x573db7(0x138)]||_0x286130(this[_0x573db7(0x287)][_0x573db7(0xb7)](_0x2ed5e3['unitId'],_0x2ed5e3['subUnitId'],_0x2ed5e3[_0x573db7(0x124)])))return;this[_0x573db7(0x161)][_0x573db7(0x285)]({'visible':!0x0,'unitId':_0x2ed5e3[_0x573db7(0x241)],'subUnitId':_0x2ed5e3['subUnitId'],'shapeId':_0x2ed5e3[_0x573db7(0x124)],'shapeKey':_0x2ed5e3[_0x573db7(0x303)]});}}));}[_0xcb6cbb(0x211)](){const _0xc0243d=_0xcb6cbb;this[_0xc0243d(0x2d6)](this[_0xc0243d(0x1ad)][_0xc0243d(0xed)][_0xc0243d(0x2f7)](_0x5cb6a4=>{const _0x541d45=_0xc0243d;if(_0x5cb6a4[_0x541d45(0x25d)]===0x1){let _0x4c3c46=_0x5cb6a4[0x0],_0x45be9f=this[_0x541d45(0x1ad)][_0x541d45(0x16d)](_0x4c3c46);if((_0x45be9f==null?void 0x0:_0x45be9f[_0x541d45(0x1c2)])===_0x55872c[_0x541d45(0x1ce)]){var _0x5e4673;let _0x51e3e6=this['_shapeTextEditingService'][_0x541d45(0x1e8)]();if((_0x51e3e6==null?void 0x0:_0x51e3e6[_0x541d45(0x124)])===_0x4c3c46[_0x541d45(0x10e)]&&_0x51e3e6[_0x541d45(0x1f5)])return;let _0x20e9f9=_0x286130(this[_0x541d45(0x287)][_0x541d45(0xb7)](_0x4c3c46[_0x541d45(0x241)],_0x4c3c46[_0x541d45(0x281)],_0x4c3c46[_0x541d45(0x10e)])),_0x604ab3=!!((_0x5e4673=this[_0x541d45(0x287)]['getShapeModel'](_0x4c3c46[_0x541d45(0x241)],_0x4c3c46[_0x541d45(0x281)],_0x4c3c46[_0x541d45(0x10e)]))!=null&&_0x5e4673[_0x541d45(0x113)]()[_0x541d45(0x138)]);(_0x20e9f9||_0x604ab3)&&this[_0x541d45(0x161)][_0x541d45(0x285)](null);}else this[_0x541d45(0x161)][_0x541d45(0x1e8)]()&&(this['_shapeTextEditingService'][_0x541d45(0x247)](!0x0),requestAnimationFrame(()=>{const _0x385d75=_0x541d45;this[_0x385d75(0x161)][_0x385d75(0x285)](null);}));}else this[_0x541d45(0x161)][_0x541d45(0x1e8)]()&&(this[_0x541d45(0x161)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x1ba355=_0x541d45;this[_0x1ba355(0x161)][_0x1ba355(0x285)](null);}));})),this[_0xc0243d(0x2d6)](this[_0xc0243d(0x1ad)][_0xc0243d(0x304)]['subscribe'](_0x2361d5=>{const _0x1231b0=_0xc0243d;let _0x40be36=this['_shapeTextEditingService'][_0x1231b0(0x1e8)]();_0x40be36&&_0x2361d5[_0x1231b0(0x230)](_0x2a2e47=>_0x2a2e47[_0x1231b0(0x10e)]===_0x40be36[_0x1231b0(0x124)])&&this['_shapeTextEditingService'][_0x1231b0(0x285)](null);}));}[_0xcb6cbb(0xd0)](){const _0x444656=_0xcb6cbb;this[_0x444656(0x2d6)](this[_0x444656(0x161)][_0x444656(0x1ac)][_0x444656(0x2f7)](_0x2000ff=>{const _0x4b493b=_0x444656;let {scene:_0x1c1d5b}=this[_0x4b493b(0x2ea)];if(this['_lastEditingShapeKey']){let _0x349517=_0x1c1d5b[_0x4b493b(0x114)](this[_0x4b493b(0x280)]);_0x349517&&_0x349517['setEditing'](!0x1);}if(_0x2000ff){let _0x3564d1=!!_0x2000ff[_0x4b493b(0x1f5)],_0x56b75d=_0x1c1d5b[_0x4b493b(0x114)](_0x2000ff[_0x4b493b(0x2fd)]);_0x56b75d&&(_0x56b75d[_0x4b493b(0x285)](_0x3564d1),this[_0x4b493b(0x280)]=_0x2000ff[_0x4b493b(0x2fd)]),this[_0x4b493b(0x14f)][_0x4b493b(0x1ea)](_0x2bcc42,_0x3564d1);}else this[_0x4b493b(0x280)]=null,this['_contextService'][_0x4b493b(0x1ea)](_0x2bcc42,!0x1);}));}};kr=Z([X(0x1,_0x25d6be(wr)),X(0x2,_0x5a1ed0),X(0x3,_0x34c0f6),X(0x4,_0x25d6be(_0x231cef))],kr);let Ar=class extends _0x4ab995{constructor(_0x3e94db,_0xdf1a09,_0x2ab819,_0x4b4352){super(_0x3e94db,_0xdf1a09,_0x2ab819,_0x4b4352,{'componentKey':Kn,'editorUnitId':Gn});}};Ar=Z([X(0x1,_0x25d6be(_0x1d0921)),X(0x2,_0x25d6be(_0x2a16ba)),X(0x3,_0x25d6be(_0x4b8e76))],Ar);let jr=class extends _0x444b76{constructor(_0x4f55b3,_0x4744a8,_0x2c27e5,_0x5dd76e,_0x21e1c3,_0x5e71e9){const _0x10a2f1=_0xcb6cbb;super(),this[_0x10a2f1(0x300)]=_0x4f55b3,this['_renderManagerService']=_0x4744a8,this[_0x10a2f1(0x1ad)]=_0x2c27e5,this[_0x10a2f1(0x20c)]=_0x5dd76e,this[_0x10a2f1(0x222)]=_0x21e1c3,this[_0x10a2f1(0x1b2)]=_0x5e71e9,Y(this,_0x10a2f1(0x1c0),new Set()),this[_0x10a2f1(0x318)]();}[_0xcb6cbb(0x318)](){const _0x57d749=_0xcb6cbb;this[_0x57d749(0xee)](),this[_0x57d749(0x2a1)](),this[_0x57d749(0x2ff)]();}[_0xcb6cbb(0xee)](){const _0x3b2ca8=_0xcb6cbb;this[_0x3b2ca8(0x2d6)](this['_drawingManagerService'][_0x3b2ca8(0x253)][_0x3b2ca8(0x2f7)](_0x16763b=>{const _0x41fe24=_0x3b2ca8;this[_0x41fe24(0x29a)](_0x16763b);}));}[_0xcb6cbb(0x2a1)](){const _0x548666=_0xcb6cbb;this[_0x548666(0x2d6)](this[_0x548666(0x300)]['onCommandExecuted'](_0x3d54b3=>{const _0x3f406a=_0x548666;if(_0x3d54b3['id']===_0x528850['id']){let {unitId:_0x25c4d9,subUnitId:_0x1a1749,shapeId:_0x405fba}=_0x3d54b3['params'],_0x130ee9=this['_getSceneAndTransformerByDrawingSearch'](_0x25c4d9),_0x578732=_0x4f98bd({'unitId':_0x25c4d9,'subUnitId':_0x1a1749,'drawingId':_0x405fba}),_0x2048b2=_0x130ee9==null?void 0x0:_0x130ee9[_0x3f406a(0x1f6)]['getObjectIncludeInGroup'](_0x578732);_0x2048b2&&(this[_0x3f406a(0x1b2)]['refreshShapeFillImage'](_0x2048b2),this[_0x3f406a(0x1b2)][_0x3f406a(0x129)](_0x2048b2,{'unitId':_0x25c4d9,'subUnitId':_0x1a1749,'shapeId':_0x405fba}),_0x2048b2[_0x3f406a(0x1dd)](!0x0));return;}if(_0x3d54b3['id']===_0x314d59['id']){var _0x32306a;let {unitId:_0x208c25,subUnitId:_0x2199b2,shapeId:_0x4ee8cb}=_0x3d54b3[_0x3f406a(0x24d)],_0x2e88f6=this[_0x3f406a(0x1aa)](_0x208c25);if(_0x2e88f6==null)return;let {scene:_0x2cfcb6}=_0x2e88f6,_0x16991e=_0x4f98bd({'unitId':_0x208c25,'subUnitId':_0x2199b2,'drawingId':_0x4ee8cb}),_0x5e27cd=_0x2cfcb6['getObjectIncludeInGroup'](_0x16991e);if(!((_0x32306a=this[_0x3f406a(0x154)][_0x3f406a(0x133)](_0x208c25))!=null&&_0x32306a[_0x3f406a(0x2dd)](_0x48c126)[_0x3f406a(0x1bf)](_0x2199b2)))return!0x1;if(_0x5e27cd)return;this[_0x3f406a(0x29a)]([{'unitId':_0x208c25,'subUnitId':_0x2199b2,'drawingId':_0x4ee8cb}]);}}));}[_0xcb6cbb(0x2ff)](){const _0x473ba1=_0xcb6cbb;this[_0x473ba1(0x2d6)](this[_0x473ba1(0x1ad)]['update$'][_0x473ba1(0x2f7)](_0x1e0747=>{const _0x30004c=_0x473ba1;_0x1e0747[_0x30004c(0x26a)](_0x19b652=>{const _0x4dcf05=_0x30004c;let {unitId:_0x544858,subUnitId:_0x39d38c,drawingId:_0x835248}=_0x19b652,_0x336854=this[_0x4dcf05(0x1ad)][_0x4dcf05(0x16d)](_0x19b652);if(_0x336854==null)return;let {transform:_0x38e70e,drawingType:_0x4eb525,srcRect:_0x250bdc,prstGeom:_0x5f0fc1}=_0x336854;if(_0x4eb525!==_0x55872c[_0x4dcf05(0x1ce)])return;let _0x2c9cae=this['_getSceneAndTransformerByDrawingSearch'](_0x544858);if(_0x2c9cae==null)return;let {scene:_0x34d5e0,transformer:_0x347d7a}=_0x2c9cae;if(_0x38e70e==null)return!0x0;let _0x23c0ef=_0x4f98bd({'unitId':_0x544858,'subUnitId':_0x39d38c,'drawingId':_0x835248}),_0x5645ce=_0x34d5e0[_0x4dcf05(0x114)](_0x23c0ef);if(_0x5645ce==null)return!0x0;_0x5645ce[_0x4dcf05(0xc3)](_0x250bdc),_0x5645ce[_0x4dcf05(0x268)](_0x5f0fc1);});}));}[_0xcb6cbb(0x29a)](_0x47ef13){const _0x110251=_0xcb6cbb;for(let _0x2f492c of _0x47ef13){var _0x58eeb8;let {unitId:_0x1817c6,subUnitId:_0x430205,drawingId:_0x35145e}=_0x2f492c,_0x31b6bd=this['_getSceneAndTransformerByDrawingSearch'](_0x1817c6),_0x254bd6=(_0x58eeb8=_0x38af4c(this[_0x110251(0x20c)],_0x1817c6))==null?void 0x0:_0x58eeb8[_0x110251(0x281)];if(_0x31b6bd==null||_0x254bd6!==_0x430205)return;let _0x4a93dd=_0x4f98bd({'unitId':_0x1817c6,'subUnitId':_0x430205,'drawingId':_0x35145e});if(this[_0x110251(0x1c0)]['has'](_0x4a93dd)||_0x31b6bd['scene'][_0x110251(0x114)](_0x4a93dd)!=null)return;let _0x115646=this[_0x110251(0x1ad)][_0x110251(0x16d)](_0x2f492c);if(_0x115646==null||_0x115646[_0x110251(0x1c2)]!==_0x55872c['DRAWING_SHAPE'])return;if(_0x286130((_0x115646['data']||{})['shapeType'])){let _0x5629b3=_0x115646['transform'];_0x5629b3&&(_0x115646[_0x110251(0xce)]={..._0x5629b3,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x110251(0x1c0)][_0x110251(0x1b9)](_0x4a93dd);try{this[_0x110251(0x1b2)][_0x110251(0x1f9)](_0x115646,_0x31b6bd['scene']);}finally{this[_0x110251(0x1c0)][_0x110251(0x2a6)](_0x4a93dd);}queueMicrotask(()=>{const _0x25df83=_0x110251;if(this[_0x25df83(0x1bc)])return;let _0x2f1265=_0x4f98bd(_0x2f492c);if(!_0x31b6bd['scene'][_0x25df83(0x114)](_0x2f1265))return;let _0x546204=this[_0x25df83(0x1ad)][_0x25df83(0x16d)](_0x2f492c);_0x546204&&this[_0x25df83(0x1ad)][_0x25df83(0x134)]([_0x546204]);});}}[_0xcb6cbb(0x1aa)](_0x5766a8){const _0x4ea100=_0xcb6cbb;if(_0x5766a8==null)return;let _0x343012=this[_0x4ea100(0x154)]['getRenderUnitById'](_0x5766a8),_0x8a725b=_0x343012==null?void 0x0:_0x343012[_0x4ea100(0x1f6)];return _0x8a725b==null?null:{'scene':_0x8a725b,'transformer':_0x8a725b[_0x4ea100(0x24a)]()};}};jr=Z([X(0x0,_0x3a72b1),X(0x1,_0x297a94),X(0x2,_0x5a1ed0),X(0x3,_0x1af83c),X(0x4,_0x25d6be(_0x56246f)),X(0x5,_0x25d6be(Q))],jr);const Mr={'normal':{'fill':_0x3cbe53['cxnPointFill'],'stroke':_0x3cbe53[_0xcb6cbb(0x206)],'strokeWidth':_0x3cbe53[_0xcb6cbb(0xe9)]},'highlighted':{'fill':_0xcb6cbb(0x256),'stroke':_0xcb6cbb(0x30e),'strokeWidth':0x2}};var Nr=class extends _0x30d1c4{constructor(_0x235594,_0x34adb1){const _0x38204d=_0xcb6cbb;super(_0x235594,_0x34adb1),Y(this,_0x38204d(0x2f1),''),Y(this,_0x38204d(0x30b),-0x1),Y(this,_0x38204d(0x2aa),''),Y(this,_0x38204d(0x13b),''),Y(this,_0x38204d(0xf1),!0x1),_0x34adb1&&this[_0x38204d(0x315)](_0x34adb1);}[_0xcb6cbb(0x120)](){const _0xa90140=_0xcb6cbb;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0xa90140(0x30b)]};}[_0xcb6cbb(0x1f7)](_0x13e473){const _0x2d5e10=_0xcb6cbb;this[_0x2d5e10(0xf1)]!==_0x13e473&&(this[_0x2d5e10(0xf1)]=_0x13e473,this[_0x2d5e10(0x1dd)](!0x0));}[_0xcb6cbb(0x25b)](){const _0x123790=_0xcb6cbb;return this[_0x123790(0xf1)];}[_0xcb6cbb(0x315)](_0x424fba){const _0x472df4=_0xcb6cbb;var _0x2b4096,_0x3b97ae;_0x424fba[_0x472df4(0x240)]!==void 0x0&&(this[_0x472df4(0x2f1)]=_0x424fba['targetShapeId']),_0x424fba[_0x472df4(0xc7)]!==void 0x0&&(this[_0x472df4(0x30b)]=_0x424fba[_0x472df4(0xc7)]),_0x424fba[_0x472df4(0x241)]!==void 0x0&&(this[_0x472df4(0x2aa)]=_0x424fba[_0x472df4(0x241)]),_0x424fba['subUnitId']!==void 0x0&&(this[_0x472df4(0x13b)]=_0x424fba[_0x472df4(0x281)]),_0x424fba[_0x472df4(0x25b)]!==void 0x0&&(this[_0x472df4(0xf1)]=_0x424fba['isHighlighted']),this[_0x472df4(0xdd)]({'width':(_0x2b4096=_0x424fba['width'])==null?_0x3cbe53[_0x472df4(0x27a)]*0x2:_0x2b4096,'height':(_0x3b97ae=_0x424fba['height'])==null?_0x3cbe53[_0x472df4(0x27a)]*0x2:_0x3b97ae});}[_0xcb6cbb(0x2d9)](_0x15e2f7){const _0x39a129=_0xcb6cbb;let _0x19eba7=this[_0x39a129(0xf1)]?Mr[_0x39a129(0xba)]:Mr['normal'];_0x38d822['drawWith'](_0x15e2f7,{'radius':_0x3cbe53['cxnPointRadius'],'fill':_0x19eba7[_0x39a129(0x2e6)],'stroke':_0x19eba7[_0x39a129(0x1c6)],'strokeWidth':_0x19eba7[_0x39a129(0x189)],'evented':!0x0});}};let Pr=class extends _0x444b76{constructor(_0x48be72,_0x463997,_0x589749,_0x19d866){const _0xbc04a0=_0xcb6cbb;super(),this[_0xbc04a0(0x2ea)]=_0x48be72,this[_0xbc04a0(0x154)]=_0x463997,this[_0xbc04a0(0x1ad)]=_0x589749,this[_0xbc04a0(0x287)]=_0x19d866,Y(this,_0xbc04a0(0x2c2),[]),Y(this,'_activeTargetShapeId',null),Y(this,_0xbc04a0(0x16f),-0x1),Y(this,_0xbc04a0(0x293),null),Y(this,_0xbc04a0(0x2aa),''),Y(this,'_subUnitId',''),Y(this,'_draggingConnectorId',null);}['startConnectionDetection'](_0x15c70e,_0x47e404,_0xdd2ece,_0x5828eb){const _0x2b63f3=_0xcb6cbb;this[_0x2b63f3(0x293)]=_0x15c70e,this[_0x2b63f3(0x2aa)]=_0x47e404,this[_0x2b63f3(0x13b)]=_0xdd2ece,this[_0x2b63f3(0x294)]=_0x5828eb;}[_0xcb6cbb(0x121)](_0x57d103){const _0x15269a=_0xcb6cbb;if(!this[_0x15269a(0x293)])return null;let _0x3a127e=this['_findShapeAtPoint'](_0x57d103);return _0x3a127e?(this[_0x15269a(0x1bd)]!==_0x3a127e[_0x15269a(0x124)]&&(this['_clearConnectionSites'](),this[_0x15269a(0x1b8)](_0x3a127e[_0x15269a(0x124)],_0x3a127e[_0x15269a(0x279)]),this[_0x15269a(0x1bd)]=_0x3a127e['shapeId']),this['_findNearestConnectionSite'](_0x57d103)):(this[_0x15269a(0x1bd)]!==null&&(this[_0x15269a(0x196)](),this[_0x15269a(0x1bd)]=null),null);}[_0xcb6cbb(0x2fa)](){const _0x451ba1=_0xcb6cbb;this[_0x451ba1(0x196)](),this[_0x451ba1(0x293)]=null,this[_0x451ba1(0x1bd)]=null,this[_0x451ba1(0x16f)]=-0x1,this[_0x451ba1(0x294)]=null;}[_0xcb6cbb(0x18c)](){const _0x117154=_0xcb6cbb;return this[_0x117154(0x1bd)]===null||this[_0x117154(0x16f)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x117154(0x16f)]};}[_0xcb6cbb(0x1ec)](_0x39d89e){const _0x202ecd=_0xcb6cbb;let _0x4c08e2=this[_0x202ecd(0x1ad)]['getDrawingData'](this[_0x202ecd(0x2aa)],this[_0x202ecd(0x13b)]);for(let _0x41d463 of Object['keys'](_0x4c08e2)){if(_0x41d463===this[_0x202ecd(0x294)]||_0x4c08e2[_0x41d463]['drawingType']!==_0x55872c['DRAWING_SHAPE'])continue;let _0x52d27c=this[_0x202ecd(0x287)][_0x202ecd(0x2c4)](this[_0x202ecd(0x2aa)],this[_0x202ecd(0x13b)],_0x41d463);if(!_0x52d27c||_0x286130(_0x52d27c[_0x202ecd(0xb7)]())||_0x52d27c[_0x202ecd(0x2cd)]()[_0x202ecd(0x25d)]===0x0||!this[_0x202ecd(0x293)])continue;let _0x3825b2=_0x4f98bd({'unitId':this[_0x202ecd(0x2aa)],'subUnitId':this[_0x202ecd(0x13b)],'drawingId':_0x41d463}),_0x1222a4=this[_0x202ecd(0x293)][_0x202ecd(0x114)](_0x3825b2);if(!_0x1222a4)continue;let {left:_0x310095,top:_0x3fa879,width:_0x2d1cbd,height:_0x22c507}=_0x1222a4['getRealBound'](),_0x413fca=_0x310095+_0x2d1cbd/0x2,_0x266cc6=_0x3fa879+_0x22c507/0x2,_0x2309de=_0x1222a4[_0x202ecd(0xce)][_0x202ecd(0x1c9)](),_0x58cb58=new _0x3bab71([_0x2309de[0x0],_0x2309de[0x1],_0x2309de[0x2],_0x2309de[0x3],_0x413fca,_0x266cc6]),_0x27779b=_0x1222a4[_0x202ecd(0x19c)](),_0x2d26a=(_0x1222a4[_0x202ecd(0x2a0)]&&(_0x27779b==null?void 0x0:_0x27779b[_0x202ecd(0x213)])===_0x407a18['GROUP']?_0x27779b['ancestorTransform'][_0x202ecd(0xe1)](_0x58cb58):_0x58cb58)['invert']()[_0x202ecd(0x235)](_0x39d89e),_0x203d87=_0x2d1cbd/0x2,_0x26b090=_0x22c507/0x2;if(_0x2d26a['x']>=-_0x203d87-0x5&&_0x2d26a['x']<=_0x203d87+0x5&&_0x2d26a['y']>=-_0x26b090-0x5&&_0x2d26a['y']<=_0x26b090+0x5)return{'shapeId':_0x41d463,'shapeModel':_0x52d27c};}return null;}[_0xcb6cbb(0x1b8)](_0x44b739,_0x50fe9b){const _0x21101f=_0xcb6cbb;if(!this[_0x21101f(0x293)])return;let _0x3ea957=_0x4f98bd({'unitId':this[_0x21101f(0x2aa)],'subUnitId':this[_0x21101f(0x13b)],'drawingId':_0x44b739}),_0x53ee07=this[_0x21101f(0x293)][_0x21101f(0x114)](_0x3ea957);if(!_0x53ee07)return;let {left:_0x2e325b,top:_0x2346d1,width:_0x154a8a,height:_0x3a8768}=_0x53ee07['getRealBound'](),_0x36e9c5=_0x2e325b+_0x154a8a/0x2,_0x5d46af=_0x2346d1+_0x3a8768/0x2,_0x347420=_0x53ee07[_0x21101f(0xce)][_0x21101f(0x1c9)](),_0x3e41a4=new _0x3bab71([_0x347420[0x0],_0x347420[0x1],_0x347420[0x2],_0x347420[0x3],_0x36e9c5,_0x5d46af]),_0x5c923b=_0x53ee07[_0x21101f(0x19c)](),_0xc1a149=_0x53ee07[_0x21101f(0x2a0)]&&(_0x5c923b==null?void 0x0:_0x5c923b[_0x21101f(0x213)])===_0x407a18[_0x21101f(0x2c8)]?_0x5c923b[_0x21101f(0x262)]['multiply'](_0x3e41a4):_0x3e41a4;_0x50fe9b['updateContext']({'width':_0x154a8a,'height':_0x3a8768});let _0x2072a0=_0x50fe9b[_0x21101f(0x2cd)]();for(let _0xa8d8d5 of _0x2072a0){let _0x4d4279=_0xa8d8d5['x']-_0x154a8a/0x2,_0x4bff7f=_0xa8d8d5['y']-_0x3a8768/0x2,_0x27d8d9=_0xc1a149[_0x21101f(0x235)]({'x':_0x4d4279,'y':_0x4bff7f}),_0x98180c=_0x27d8d9['x'],_0x10c9dd=_0x27d8d9['y'],_0x518202=new Nr(_0x21101f(0x30f)+_0x44b739+'-'+_0xa8d8d5[_0x21101f(0x1cc)],{'left':_0x98180c-_0x3cbe53['cxnPointRadius'],'top':_0x10c9dd-_0x3cbe53[_0x21101f(0x27a)],'targetShapeId':_0x44b739,'cxnIndex':_0xa8d8d5[_0x21101f(0x1cc)],'unitId':this[_0x21101f(0x2aa)],'subUnitId':this[_0x21101f(0x13b)],'width':_0x3cbe53[_0x21101f(0x27a)]*0x2,'height':_0x3cbe53['cxnPointRadius']*0x2,'zIndex':_0x338629+0x2,'evented':!0x1});this[_0x21101f(0x2c2)][_0x21101f(0x311)](_0x518202),this['_currentScene'][_0x21101f(0x212)](_0x518202,_0x338629+0x2);}}['_findNearestConnectionSite'](_0x55c523){const _0x3717b8=_0xcb6cbb;let _0x109622=null,_0x5a318e=0x1/0x0,_0x4012cf=null;for(let _0x35c329 of this[_0x3717b8(0x2c2)]){let _0xc7cf28=_0x35c329['left']+_0x3cbe53[_0x3717b8(0x27a)],_0x8732b1=_0x35c329['top']+_0x3cbe53[_0x3717b8(0x27a)],_0x40239a=_0x55c523['x']-_0xc7cf28,_0x1668bd=_0x55c523['y']-_0x8732b1,_0x484ebe=Math[_0x3717b8(0x2ca)](_0x40239a*_0x40239a+_0x1668bd*_0x1668bd);_0x484ebe<_0x5a318e&&(_0x5a318e=_0x484ebe,_0x109622=_0x35c329,_0x4012cf={'x':_0xc7cf28,'y':_0x8732b1});}let _0x1cedb0=_0x5a318e<=0xa&&_0x109622?_0x109622['getConnectionInfo']()['cxnIndex']:-0x1;if(_0x1cedb0!==this['_highlightedSiteIndex']){for(let _0x59876d of this[_0x3717b8(0x2c2)]){let _0x17a93c=_0x59876d[_0x3717b8(0x120)]();_0x59876d['setHighlighted'](_0x17a93c['cxnIndex']===_0x1cedb0);}this['_highlightedSiteIndex']=_0x1cedb0;}if(_0x5a318e<=0xa&&_0x109622&&_0x4012cf){let _0xc9207c=_0x109622['getConnectionInfo'](),_0x335cf3=this[_0x3717b8(0x2b8)](_0xc9207c[_0x3717b8(0x124)],_0xc9207c['cxnIndex']);return{'shapeId':_0xc9207c[_0x3717b8(0x124)],'cxnIndex':_0xc9207c[_0x3717b8(0xc7)],'unitId':_0xc9207c[_0x3717b8(0x241)],'subUnitId':_0xc9207c[_0x3717b8(0x281)],'worldPoint':_0x4012cf,'angle':_0x335cf3};}return null;}[_0xcb6cbb(0x2b8)](_0x42b77d,_0x13d159){const _0x2337c2=_0xcb6cbb;let _0x2347e3=this[_0x2337c2(0x287)][_0x2337c2(0x2c4)](this[_0x2337c2(0x2aa)],this[_0x2337c2(0x13b)],_0x42b77d);if(!_0x2347e3)return 0x0;let _0xaf6ee2=this[_0x2337c2(0x1ad)][_0x2337c2(0x16d)]({'unitId':this[_0x2337c2(0x2aa)],'subUnitId':this['_subUnitId'],'drawingId':_0x42b77d});if(!(_0xaf6ee2!=null&&_0xaf6ee2[_0x2337c2(0xce)]))return 0x0;let {width:_0x5dd98c=0x0,height:_0x5be815=0x0,flipX:_0x23184d=!0x1,flipY:_0xc655ca=!0x1}=_0xaf6ee2[_0x2337c2(0xce)];_0x2347e3[_0x2337c2(0x1d6)]({'width':_0x5dd98c,'height':_0x5be815});let _0x4c42bd=_0x2347e3[_0x2337c2(0x2cd)]()[_0x2337c2(0x2e5)](_0x10e55e=>_0x10e55e[_0x2337c2(0x1cc)]===_0x13d159);if(!_0x4c42bd)return 0x0;let _0x3fde12=_0x4c42bd['ang']/0xea60;return _0x23184d&&(_0x3fde12=0xb4-_0x3fde12),_0xc655ca&&(_0x3fde12=-_0x3fde12),_0x3fde12=(_0x3fde12%0x168+0x168)%0x168,_0x3fde12;}[_0xcb6cbb(0x196)](){const _0x1509f0=_0xcb6cbb;for(let _0x14b02e of this[_0x1509f0(0x2c2)])_0x14b02e[_0x1509f0(0x20e)]();this[_0x1509f0(0x2c2)]=[],this[_0x1509f0(0x16f)]=-0x1;}[_0xcb6cbb(0x20e)](){const _0x1fd33b=_0xcb6cbb;this['_clearConnectionSites'](),super[_0x1fd33b(0x20e)]();}};Pr=Z([X(0x1,_0x25d6be(_0x297a94)),X(0x2,_0x25d6be(_0x5a1ed0)),X(0x3,_0x25d6be(_0x231cef))],Pr);let Fr=class extends _0x444b76{constructor(_0x939328,_0x4aafee,_0x4d942f,_0x22c80e,_0x282900){const _0x40ec97=_0xcb6cbb;super(),this['_sheetSkeletonService']=_0x939328,this[_0x40ec97(0x125)]=_0x4aafee,this[_0x40ec97(0x1b7)]=_0x4d942f,this['_shapeService']=_0x22c80e,this[_0x40ec97(0x214)]=_0x282900,Y(this,_0x40ec97(0x25e),void 0x0),this[_0x40ec97(0x314)](),this[_0x40ec97(0x178)]();}get[_0xcb6cbb(0x1f2)](){const _0x3c8778=_0xcb6cbb;return this[_0x3c8778(0x1b7)][_0x3c8778(0x2e9)]();}['_registerGroupFeaturePasteHook'](){const _0x5667ad=_0xcb6cbb;this[_0x5667ad(0x214)]['registerFeaturePasteHook'](({fromUnitId:_0x1dbcb5,fromSubUnitId:_0x1d589f,toUnitId:_0x4bdf9a,toSubUnitId:_0x375f3c,idMap:_0xc01cd8})=>{const _0x27fb65=_0x5667ad;let _0x3240b5=[],_0x19fa65=[];for(let [_0x1df21b,_0x2e59ee]of _0xc01cd8[_0x27fb65(0x1c8)]()){let _0x3980c2=this[_0x27fb65(0x26f)][_0x27fb65(0x2c4)](_0x1dbcb5,_0x1d589f,_0x1df21b);if(!_0x3980c2)continue;let _0xf95a70=_0x3980c2[_0x27fb65(0xb7)](),_0x2d95fb=JSON[_0x27fb65(0x226)](JSON[_0x27fb65(0x276)](_0x3980c2[_0x27fb65(0x113)]()));if(_0x2d95fb[_0x27fb65(0x12f)]){var _0x56b59e,_0x3dd889;let _0x34dddc=(_0x56b59e=_0x2d95fb[_0x27fb65(0x12f)][_0x27fb65(0x30c)])==null?void 0x0:_0x56b59e[_0x27fb65(0x124)],_0x51c96a=(_0x3dd889=_0x2d95fb[_0x27fb65(0x12f)]['to'])==null?void 0x0:_0x3dd889[_0x27fb65(0x124)],_0x5c9bd6=!_0x34dddc||_0xc01cd8[_0x27fb65(0x1cf)](_0x34dddc),_0x5dc614=!_0x51c96a||_0xc01cd8[_0x27fb65(0x1cf)](_0x51c96a);_0x5c9bd6&&_0x34dddc&&_0x2d95fb['relation']['from']?_0x2d95fb['relation'][_0x27fb65(0x30c)]={..._0x2d95fb[_0x27fb65(0x12f)]['from'],'shapeId':_0xc01cd8[_0x27fb65(0x2da)](_0x34dddc)}:_0x2d95fb[_0x27fb65(0x12f)]['from']=void 0x0,_0x5dc614&&_0x51c96a&&_0x2d95fb[_0x27fb65(0x12f)]['to']?_0x2d95fb[_0x27fb65(0x12f)]['to']={..._0x2d95fb['relation']['to'],'shapeId':_0xc01cd8[_0x27fb65(0x2da)](_0x51c96a)}:_0x2d95fb[_0x27fb65(0x12f)]['to']=void 0x0;}_0x3240b5['push']({'id':_0x314d59['id'],'params':{'unitId':_0x4bdf9a,'subUnitId':_0x375f3c,'shapeId':_0x2e59ee,'shapeType':_0xf95a70,'shapeData':_0x2d95fb}}),_0x19fa65[_0x27fb65(0x311)]({'id':_0x1fd47e['id'],'params':{'unitId':_0x4bdf9a,'subUnitId':_0x375f3c,'shapeId':_0x2e59ee}});}return{'redos':_0x3240b5,'undos':_0x19fa65};});}[_0xcb6cbb(0x314)](){const _0x2cbfa4=_0xcb6cbb;this[_0x2cbfa4(0x2d6)](this[_0x2cbfa4(0x125)][_0x2cbfa4(0x13e)]({'id':_0x2cbfa4(0x2ec),'onBeforeCopy':(_0x31e34b,_0x4683a9,_0x53553b,_0xde0465)=>{const _0x20a781=_0x2cbfa4;this['_copyInfo']=null;let _0x31f16b=this[_0x20a781(0x1f2)];if(_0x31f16b[_0x20a781(0x25d)]){let _0x18e7d2=_0x31f16b[_0x20a781(0x2b4)](_0x38a6a9=>_0x38a6a9['drawingType']===_0x55872c[_0x20a781(0x1ce)]);if(_0x18e7d2[_0x20a781(0x25d)]===0x0)return;this[_0x20a781(0x25e)]={'unitId':_0x31e34b,'subUnitId':_0x4683a9,'copyType':_0xde0465,'drawings':_0x18e7d2};}else this[_0x20a781(0x109)](_0x31e34b,_0x4683a9,_0x53553b,_0xde0465);},'onPasteCells':(_0x5476fe,_0x568a89,_0x57a126,_0x1f5cc3)=>{const _0x1a2e2e=_0x2cbfa4;if(!this[_0x1a2e2e(0x25e)])return{'redos':[],'undos':[]};let {pasteType:_0x242531}=_0x1f5cc3;return _0x242531===_0x403204[_0x1a2e2e(0x2d0)]?this[_0x1a2e2e(0x25f)](_0x568a89,this[_0x1a2e2e(0x25e)]['copyType']===_0xf143f2['CUT']):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x494c81=>this[_0x2cbfa4(0x25e)]?this[_0x2cbfa4(0x25f)](_0x494c81,this['_copyInfo'][_0x2cbfa4(0x296)]===_0xf143f2[_0x2cbfa4(0x203)]):{'redos':[],'undos':[]}}));}[_0xcb6cbb(0x109)](_0x400851,_0x27dd16,_0x137774,_0x1b7e5d){const _0x2d7246=_0xcb6cbb;let _0xb838c5=this[_0x2d7246(0x224)]['getSkeleton'](_0x400851,_0x27dd16);if(!_0xb838c5)return;let _0x1d4d27=_0x2cf26d(_0xb838c5,_0x137774);if(!_0x1d4d27)return;let {startX:_0xa25c97,endX:_0x23c167,startY:_0x58d818,endY:_0x44b86c}=_0x1d4d27,_0x169b94=this[_0x2d7246(0x1b7)]['getDrawingData'](_0x400851,_0x27dd16),_0x41de78=this['_focusedDrawings'][_0x2d7246(0x216)]();for(let [_0x2d4b8d,_0xd1cc24]of Object[_0x2d7246(0x1c8)](_0x169b94)){if(_0xd1cc24[_0x2d7246(0x1c2)]!==_0x55872c[_0x2d7246(0x1ce)])continue;let {transform:_0x3b4b76}=_0xd1cc24;if(!_0x3b4b76)continue;let {left:_0x4d7dd9=0x0,top:_0x5aaedb=0x0,width:_0x4fe8d9=0x0,height:_0x4d0974=0x0}=_0x3b4b76;_0xa25c97<=_0x4d7dd9&&_0x23c167>=_0x4d7dd9+_0x4fe8d9&&_0x58d818<=_0x5aaedb&&_0x44b86c>=_0x5aaedb+_0x4d0974&&_0x41de78['push'](_0xd1cc24);}_0x41de78[_0x2d7246(0x25d)]>0x0&&(this['_copyInfo']={'unitId':_0x400851,'subUnitId':_0x27dd16,'copyType':_0x1b7e5d,'copyRange':_0x137774,'drawings':_0x41de78});}[_0xcb6cbb(0x25f)](_0x331f91,_0x1a3c30){const _0x5c4003=_0xcb6cbb;let {unitId:_0x135678,subUnitId:_0x5f1298,range:_0x2337e9}=_0x331f91,_0x1b1742=this[_0x5c4003(0x224)]['getSkeleton'](_0x135678,_0x5f1298);if(!_0x1b1742)return{'redos':[],'undos':[]};let _0x177c68=_0xe86510(_0x2337e9),{unitId:_0x8d289b,subUnitId:_0x18a28f,copyRange:_0x39e841,drawings:_0x395a37}=this[_0x5c4003(0x25e)],_0x4bd039=this[_0x5c4003(0x224)]['getSkeleton'](_0x8d289b,_0x18a28f);if(!_0x4bd039)return{'redos':[],'undos':[]};let _0x37e8f6;if(!_0x39e841){let _0x50b0e5=0x1/0x0,_0x4f83c3=0x1/0x0;for(let _0x55885b of _0x395a37){var _0x4184d5;let {left:_0x49bacc=0x0,top:_0x470575=0x0}=(_0x4184d5=_0x55885b[_0x5c4003(0xce)])==null?{}:_0x4184d5;_0x49bacc<_0x50b0e5&&(_0x50b0e5=_0x49bacc),_0x470575<_0x4f83c3&&(_0x4f83c3=_0x470575);}_0x50b0e5!==0x1/0x0&&_0x4f83c3!==0x1/0x0&&(_0x37e8f6={'left':_0x50b0e5,'top':_0x4f83c3});}let _0x532fbb=new Map();if(!_0x1a3c30){for(let _0x2d5ed3 of _0x395a37)_0x532fbb[_0x5c4003(0x26e)](_0x2d5ed3[_0x5c4003(0x10e)],_0xf6c8c4());}let _0x2d8fe0=[],_0x275ad6=[];for(let _0x2cde14 of _0x395a37){let {drawingId:_0x522667,transform:_0x46ab9e,sheetTransform:_0x54b870}=_0x2cde14;if(!_0x46ab9e||!_0x54b870)continue;let _0x38b2d8=this['_updateTransform']({'transform':_0x46ab9e,'sheetTransform':_0x54b870},{'skeleton':_0x4bd039,'range':_0x39e841},{'skeleton':_0x1b1742,'range':_0x177c68},_0x37e8f6);if(_0x1a3c30){let {redos:_0x2dfa18,undos:_0xbb6c0}=this['_generateCutPasteMutations']({'fromUnitId':_0x8d289b,'fromSubUnitId':_0x18a28f,'toUnitId':_0x135678,'toSubUnitId':_0x5f1298,'drawing':_0x2cde14,'newTransforms':_0x38b2d8});_0x2d8fe0[_0x5c4003(0x311)](..._0x2dfa18),_0x275ad6[_0x5c4003(0x311)](..._0xbb6c0);continue;}let {redos:_0x1f1b41,undos:_0x2fbdbc}=this[_0x5c4003(0xd9)]({'toUnitId':_0x135678,'toSubUnitId':_0x5f1298,'drawing':_0x2cde14,'newTransforms':_0x38b2d8,'newDrawingId':_0x532fbb[_0x5c4003(0x2da)](_0x522667),'idMap':_0x532fbb});_0x2d8fe0[_0x5c4003(0x311)](..._0x1f1b41),_0x275ad6[_0x5c4003(0x311)](..._0x2fbdbc);}return{'redos':_0x2d8fe0,'undos':_0x275ad6};}[_0xcb6cbb(0x15e)](_0x284aa2){const _0x23b4e3=_0xcb6cbb;let {fromUnitId:_0xb87577,fromSubUnitId:_0x322923,toUnitId:_0x5967ca,toSubUnitId:_0x5efa5e,drawing:_0x4c26e9,newTransforms:_0x30ec5a}=_0x284aa2,_0x4119d4={..._0x4c26e9,'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'transform':_0x30ec5a[_0x23b4e3(0xce)],'sheetTransform':_0x30ec5a[_0x23b4e3(0x31a)]};if(_0x5967ca===_0xb87577&&_0x5efa5e===_0x322923){let {redo:_0x42094e,undo:_0x3028b3,objects:_0x544681}=this[_0x23b4e3(0x1b7)][_0x23b4e3(0xf2)]([_0x4119d4]);return{'redos':[{'id':_0x555349['id'],'params':{'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'type':_0x11752e[_0x23b4e3(0x112)],'op':_0x42094e,'objects':_0x544681}}],'undos':[{'id':_0x555349['id'],'params':{'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'type':_0x11752e[_0x23b4e3(0x112)],'op':_0x3028b3,'objects':_0x544681}}]};}else{let _0x54abea=this[_0x23b4e3(0x1b7)][_0x23b4e3(0x1b1)]([_0x4c26e9]),_0x14eef5=this[_0x23b4e3(0x1b7)]['getBatchAddOp']([_0x4119d4]),_0x1da10c=this[_0x23b4e3(0x26f)][_0x23b4e3(0x2c4)](_0x4c26e9[_0x23b4e3(0x241)],_0x4c26e9['subUnitId'],_0x4c26e9[_0x23b4e3(0x10e)]);if(!_0x1da10c)return{'redos':[],'undos':[]};let _0x2cfae5=_0x1da10c[_0x23b4e3(0xb7)](),_0x15d6ab=JSON[_0x23b4e3(0x226)](JSON[_0x23b4e3(0x276)](_0x1da10c[_0x23b4e3(0x113)]()));return{'redos':[{'id':_0x555349['id'],'params':{'unitId':_0xb87577,'subUnitId':_0x322923,'type':_0x11752e[_0x23b4e3(0x29c)],'op':_0x54abea[_0x23b4e3(0x220)],'objects':_0x54abea[_0x23b4e3(0x13d)]}},{'id':_0x1fd47e['id'],'params':{'unitId':_0xb87577,'subUnitId':_0x322923,'shapeId':_0x4c26e9['drawingId']}},{'id':_0x555349['id'],'params':{'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'type':_0x11752e['INSERT'],'op':_0x14eef5[_0x23b4e3(0x220)],'objects':_0x14eef5[_0x23b4e3(0x13d)]}},{'id':_0x314d59['id'],'params':{'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'shapeId':_0x4c26e9['drawingId'],'shapeType':_0x2cfae5,'shapeData':_0x15d6ab}}],'undos':[{'id':_0x555349['id'],'params':{'unitId':_0xb87577,'subUnitId':_0x322923,'type':_0x11752e['INSERT'],'op':_0x54abea[_0x23b4e3(0x1d2)],'objects':_0x54abea[_0x23b4e3(0x13d)]}},{'id':_0x314d59['id'],'params':{'unitId':_0xb87577,'subUnitId':_0x322923,'shapeId':_0x4c26e9[_0x23b4e3(0x10e)],'shapeType':_0x2cfae5,'shapeData':_0x15d6ab}},{'id':_0x555349['id'],'params':{'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'type':_0x11752e[_0x23b4e3(0x29c)],'op':_0x14eef5['undo'],'objects':_0x14eef5['objects']}},{'id':_0x1fd47e['id'],'params':{'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'shapeId':_0x4c26e9[_0x23b4e3(0x10e)]}}]};}}[_0xcb6cbb(0xd9)](_0x3c5a64){const _0x3fd7ef=_0xcb6cbb;let {toUnitId:_0x570305,toSubUnitId:_0x55492a,drawing:_0x4e600e,newTransforms:_0x5e6ad3,newDrawingId:_0x973cb6,idMap:_0x285592}=_0x3c5a64,_0x419fbd={..._0x4e600e,'unitId':_0x570305,'subUnitId':_0x55492a,'drawingId':_0x973cb6,'transform':_0x5e6ad3[_0x3fd7ef(0xce)],'sheetTransform':_0x5e6ad3[_0x3fd7ef(0x31a)]},{redo:_0x1332df,undo:_0x5e99e9,objects:_0x1dbbaa}=this[_0x3fd7ef(0x1b7)][_0x3fd7ef(0x2bf)]([_0x419fbd]),_0x145e03=this[_0x3fd7ef(0x26f)][_0x3fd7ef(0x2c4)](_0x4e600e[_0x3fd7ef(0x241)],_0x4e600e['subUnitId'],_0x4e600e[_0x3fd7ef(0x10e)]);if(!_0x145e03)return{'redos':[],'undos':[]};let _0x214edd=_0x145e03[_0x3fd7ef(0xb7)](),_0x4ad627=JSON['parse'](JSON[_0x3fd7ef(0x276)](_0x145e03['getShapeData']()));if(_0x4ad627[_0x3fd7ef(0x12f)]){var _0x16ad7f,_0x5bf8d4;let _0x275075=(_0x16ad7f=_0x4ad627[_0x3fd7ef(0x12f)]['from'])==null?void 0x0:_0x16ad7f[_0x3fd7ef(0x124)],_0x55d468=(_0x5bf8d4=_0x4ad627[_0x3fd7ef(0x12f)]['to'])==null?void 0x0:_0x5bf8d4['shapeId'],_0x34fb83=!_0x275075||_0x285592[_0x3fd7ef(0x1cf)](_0x275075),_0x412d22=!_0x55d468||_0x285592[_0x3fd7ef(0x1cf)](_0x55d468);_0x34fb83&&_0x275075&&_0x4ad627[_0x3fd7ef(0x12f)]['from']?_0x4ad627[_0x3fd7ef(0x12f)]['from']={..._0x4ad627['relation'][_0x3fd7ef(0x30c)],'shapeId':_0x285592[_0x3fd7ef(0x2da)](_0x275075)}:_0x4ad627['relation'][_0x3fd7ef(0x30c)]=void 0x0,_0x412d22&&_0x55d468&&_0x4ad627['relation']['to']?_0x4ad627[_0x3fd7ef(0x12f)]['to']={..._0x4ad627['relation']['to'],'shapeId':_0x285592[_0x3fd7ef(0x2da)](_0x55d468)}:_0x4ad627[_0x3fd7ef(0x12f)]['to']=void 0x0;}return{'redos':[{'id':_0x555349['id'],'params':{'unitId':_0x570305,'subUnitId':_0x55492a,'type':_0x11752e[_0x3fd7ef(0x101)],'op':_0x1332df,'objects':_0x1dbbaa}},{'id':_0x314d59['id'],'params':{'unitId':_0x570305,'subUnitId':_0x55492a,'shapeId':_0x973cb6,'shapeType':_0x214edd,'shapeData':_0x4ad627}}],'undos':[{'id':_0x555349['id'],'params':{'unitId':_0x570305,'subUnitId':_0x55492a,'type':_0x11752e[_0x3fd7ef(0x29c)],'op':_0x5e99e9,'objects':_0x1dbbaa}},{'id':_0x1fd47e['id'],'params':{'unitId':_0x570305,'subUnitId':_0x55492a,'shapeId':_0x973cb6}}]};}[_0xcb6cbb(0xf7)](_0x1f28e7,_0x3602b9,_0x4232cb,_0x55b693){const _0x300bcb=_0xcb6cbb;var _0x270cb4;let {range:_0x3352d9,skeleton:_0x18a067}=_0x3602b9,{range:_0x5de3f7,skeleton:_0x6f4068}=_0x4232cb,{transform:_0x1b677c,sheetTransform:_0x5790a5}=_0x1f28e7,_0x1bad47={..._0x1b677c};if(_0x3352d9){let _0x4788b1=_0x2cf26d(_0x18a067,_0x3352d9),_0x5c5051=_0x2cf26d(_0x6f4068,_0x5de3f7);if(_0x4788b1&&_0x5c5051){var _0x40f34a,_0x9e936a;let _0x531567=_0x5c5051[_0x300bcb(0x28f)]-_0x4788b1[_0x300bcb(0x28f)],_0x5ce4aa=_0x5c5051[_0x300bcb(0x28b)]-_0x4788b1[_0x300bcb(0x28b)];_0x1bad47[_0x300bcb(0x1db)]=((_0x40f34a=_0x1bad47['left'])==null?0x0:_0x40f34a)+_0x531567,_0x1bad47[_0x300bcb(0x163)]=((_0x9e936a=_0x1bad47[_0x300bcb(0x163)])==null?0x0:_0x9e936a)+_0x5ce4aa;}}else{let _0x521d9a=_0x2cf26d(_0x6f4068,_0x5de3f7);if(_0x55b693&&_0x521d9a){var _0xe91523,_0x36bd09;let _0xea04e3=((_0xe91523=_0x1bad47[_0x300bcb(0x1db)])==null?0x0:_0xe91523)-_0x55b693['left'],_0x391b98=((_0x36bd09=_0x1bad47[_0x300bcb(0x163)])==null?0x0:_0x36bd09)-_0x55b693[_0x300bcb(0x163)];_0x1bad47['left']=_0x521d9a[_0x300bcb(0x28f)]+_0xea04e3,_0x1bad47[_0x300bcb(0x163)]=_0x521d9a[_0x300bcb(0x28b)]+_0x391b98;}else _0x1bad47['left']=_0x521d9a==null?void 0x0:_0x521d9a[_0x300bcb(0x28f)],_0x1bad47[_0x300bcb(0x163)]=_0x521d9a==null?void 0x0:_0x521d9a[_0x300bcb(0x28b)];}return{'transform':_0x1bad47,'sheetTransform':(_0x270cb4=_0x43002e(_0x1bad47,_0x6f4068))==null?_0x5790a5:_0x270cb4};}};Fr=Z([X(0x0,_0x25d6be(_0x414a67)),X(0x1,_0x25d6be(_0x165587)),X(0x2,_0x25d6be(_0x2a99b6)),X(0x3,_0x25d6be(_0x231cef)),X(0x4,_0x25d6be(_0x47dae5))],Fr);var Ir=class extends _0x30d1c4{constructor(_0x16a80c,_0x2651e4){const _0x29efc0=_0xcb6cbb;super(_0x16a80c,_0x2651e4),Y(this,_0x29efc0(0x252),null),Y(this,'_index',null),Y(this,_0x29efc0(0x2aa),null),Y(this,'_subUnitId',null),Y(this,'_isStartConnectorPoint',!0x1),_0x2651e4&&this['setShapeProps'](_0x2651e4);}['getDrawingSearch'](){const _0x36247d=_0xcb6cbb;return{'unitId':this[_0x36247d(0x2aa)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x36247d(0x252)]};}['setShapeProps'](_0x28890a){const _0x250f4b=_0xcb6cbb;_0x28890a[_0x250f4b(0x124)]!==void 0x0&&(this[_0x250f4b(0x252)]=_0x28890a[_0x250f4b(0x124)]),_0x28890a[_0x250f4b(0x241)]!==void 0x0&&(this[_0x250f4b(0x2aa)]=_0x28890a[_0x250f4b(0x241)]),_0x28890a[_0x250f4b(0x281)]!==void 0x0&&(this[_0x250f4b(0x13b)]=_0x28890a[_0x250f4b(0x281)]),_0x28890a[_0x250f4b(0x10f)]!==void 0x0&&(this[_0x250f4b(0x231)]=_0x28890a[_0x250f4b(0x10f)]),this[_0x250f4b(0xdd)]({'width':_0x28890a['width'],'height':_0x28890a[_0x250f4b(0x123)]});}[_0xcb6cbb(0x2d9)](_0x5d1942){const _0x398b11=_0xcb6cbb;_0x38d822[_0x398b11(0x264)](_0x5d1942,{'radius':_0x3cbe53[_0x398b11(0x27a)],'fill':_0x3cbe53[_0x398b11(0x2a5)],'stroke':_0x3cbe53[_0x398b11(0x206)],'strokeWidth':_0x3cbe53[_0x398b11(0xe9)],'evented':!0x0});}};function _0x10e2(){const _0x908c05=['FlipVerticalIcon','renderDrawingShape','setShapeData','width','shape-adjust-point-','COMMAND','getOwnPropertyDescriptor','_shapeEditPanelVersion','srcRect','activeAnObject','isDrawingObject','CUT','sheet.image-clip.shape-picker.component','clear','cxnPointStroke','text','_hasReset','isHitLine','_baseShapeLeft','cos','_currentUniverService','_addShapeConnectorHandlerObject','dispose','sheet.command.menu-insert-shape','_applyFormulaAutoFitSize','_initSelection','addObject','classType','_groupCopyPasteController','_updateSrcRectByTransform','slice','adjHandleStroke','decorate','_executeResizeCommand','object','12690IErqir','scale','_baseDrawingRect','1020432CmkDns','horizontal','redo','sheets-shape-ui.flipHorizontal','_drawingRenderService','_loadAndSetImage','_sheetSkeletonService','backward','parse','SHAPE_TEXT','group','PRINTING_COMPONENT_COLLECT','fillType','univer-box-border\x20univer-px-4\x20univer-text-sm','computeConnectorResizeLayout','name','marginTop','unsubscribe','some','_isStartConnectorPoint','onRendered','close','sheetViewStartColumn','applyPoint','_isConnecting','hidden','onload','getCurrentLastSelection','TOP','sheets-shape-ui.imagePanel.crop.shape','getValue','getDrawingSearch','pipe','_univerInstanceService','targetShapeId','unitId','getInverseCoord','_props','getCurrentScrollState','setFillImage','registerClipDelegate','setOnSavingEditorData','_injector','_config','getTransformerByCreate','clearAdjustControls','getStartConnectInfo','params','onPointerUp$','dataModel','_moveConnectorWithShape','gradientEndColor','_shapeId','add$','_menuManagerService','setConfig','#4285f4','focusDrawing','packageName','sheet.menu.shape.flip-vertical','call','isHighlighted','_getShapeInfo','length','_copyInfo','_generatePasteMutations','adjustValues','2937qQsBKW','ancestorTransform','reverse','drawWith','Line','_getImagePrstGeom','restore','setPrstGeom','disableShapeOption','forEach','getShapeTextRect','buildClipPath','getSheetBySheetId','set','_shapeService','_initMenu','transformForAngle','_getOrCreateShapeModel','order','value','_adjName','stringify','_baseShapeTop','prstGeomAdjValues','shapeModel','cxnPointRadius','type','onTransformChange$','_drawingType','changing$','localeService','_lastEditingShapeKey','subUnitId','Path','getInterceptPoints','getActiveSheet','setEditing','registerRenderModule','_sheetsShapeService','_calculateFreeEndpointAngle','end','version','startY','setShouldShowAdjust','_formulaAnimation','_handleBasicShapeUpdateConnectorLineShape','startX','_handleFreeEndpointPointerUp','onPointerMove$','SolidLine','_currentScene','_draggingConnectorId','_configService','copyType','getImageSourceCache','UNIVER_SHEET','offsetY','_insertShapes','executeCommand','REMOVE','VIEW_MAIN_LEFT_TOP','keys','permissionCheckWithoutRange','isInGroup','_commandExecutedListener','_attachConnectorObjectEvent','73136hQbGTJ','_baseShapeWidth','cxnPointFill','delete','_registerComponents','_registerDrawingFocusChangeHandler','_getShapeAdjustInfosById','_unitId','getDrawingOKey','extraProps','string','_setTransForm','URL','lineType','symbol','axisAlignSheetTransform','refreshAdjustControls','filter','_transform','blockExecuteWithoutPermission','_editingParams$','_getConnectionSiteAngle','_cxtHandlerPointerUp','SHEET_SHAPE_UI_PLUGIN','addImageSourceCache','adjName','clip-','_initPermission','getBatchAddOp','getActualSize','_activeShapeId','_connectionSiteObjects','stopPropagation','getShapeModel','setPresentation','initShapePopupMenu','panel','GROUP','DRAWING','sqrt','setCanUseShapeClip','pushUndoRedo','getConnectionSiteList','_shapeFormulaService','sheets-shape-ui.objectListPanel.title','DEFAULT_PASTE','clone','getZoomRatio','sin','src','SheetShapeTextEditorContainer','disposeWithMe','sectionFloating','getBasicShapeRelation','_draw','get','prstGeom','_releaseRenderCache','with','_getDrawingRect','1402446hTIRfh','getState','endArrow','DRAWING_GROUP','_isStartAdjusting','VIEW_MAIN_LEFT','find','fill','sheets-shape-ui.config','_shapeRenderController','getFocusDrawings','_context','_openShapeEditPanel','sheets-shape-ui','removeLinePoints','initTransformer','getDrawingVisible','isArray','_targetShapeId','_updateImageAdjValues','#FFFFFF','getEndConnectInfo','_activeAdjustInfo','_clearControls','subscribe','reduce','sheetViewStartRow','endConnectionDetection','fontSize','isRichText','shapeKey','subscribeEvent','_shapeUpdateListener','_commandService','description','sheets-shape-ui.objectListPanel.open','oKey','remove$','_activeShapeInfo','isRenderLinePointsMode','offsetX','getDrawingEffectBounds','_disposePopups','20IsWKqU','_cxnIndex','from','lineShapeId','#1a73e8','connection-site-','DRAWING_TABLE','push','shapeType','translateWithPrecision','_initCopyPaste','setShapeProps','_init','_imageIoService','_initialize','_rerouteConnectorLine','sheetTransform','rotation','disableObjectsEvent','enableObjectsEvent','_getImageDrawingInfo','angle','Large','save','sheets-shape-ui.permission.editErr','sheets-shape-ui.formatShape','isRender','_transformCalculateSrcRect','title','render','setCursor','_initSheetChange','getShapeType','beginPath','UNIVER_DOC','highlighted','calcAdjValues','constructor','fillImageSource','_isDrawingShapePointDown','238CAsHEs','sheets-shape-ui.flipVertical','table','OPERATION','setSrcRect','_getZoomRatio','VIEW_MAIN_TOP','getAdjustValueByName','cxnIndex','interceptor','onPointerDown$','div','clipTop','FlipHorizontalIcon','interceptCommand','transform','fillImageSourceType','_initEditingParams','indexOf','LEFT','setPrstGeomAdjValues','getShapeDataById','onStarting','_currentConnectionTarget','ShapeIcon','@univerjs-pro/sheets-shape-ui','_generateCopyPasteMutations','setAdjustValueByName','prototype','syncExecuteCommand','transformByState','getTransformer','#bcbcbc','presentation','multiply','_registerIcons','_isImagePointerDown','clip-adj-','_executeConnectedRouteConnectionCommand','getScene','_registerImageShapeClipDelegate','ObjectLayersIcon','cxnPointStrokeWidth','_iconManager','changeEnd$','DRAWING_SMART_ART','focus$','_drawingAddListener','_clipService','adjHandleSize','_isHighlighted','getBatchUpdateOp','_initEvents','_getShapeAdjustPointListById','_popupMenuListener','_activeShapeModel','_updateTransform','viewBound','image','translate','register','ang','isEditing','_activeShapeAdjustPointList','unregister','2XVbgzd','INSERT','wrapStrategy','updateDocumentDataMargin','_imageShapeClipController','_formulaKey','computeStraightConnectorLayout','_handleFreeEndpointMove','getSelectedObjectMap','_createCopyInfoByRange','resize','clip','activeSheet$','sheet.command.update-shape-data','drawingId','isStartConnectorPoint','contentVerticalOffset','getAdjustNames','UPDATE','getShapeData','getObjectIncludeInGroup','canvas','_initCommands','pluginName','point','_updateAdjustControlPositions','clearControl$','SELECTOR','skeleton','getSkeletonParam','getImage','getUnitType','getConnectionInfo','updateConnectionDetection','open','height','shapeId','_sheetClipboardService','_createControls','getDrawingData','debounceRefreshControls','refreshFormulaPresentation','localToWorld','defineProperty','sheet.shape.object-list.panel','changeStart$','_closeShapeEditPanel','relation','BUTTON','_attachAdjustEvent','_sheetShapeAdjustController','getRenderUnitById','refreshTransform','parent','getBentTypeFromPoints','sheets-shape-ui.insertShape','formulaBinding','_baseTop','_resetState','_subUnitId','getDrawingPoints','objects','addClipboardHook','DRAWING_VIDEO','beforeCommandExecuted','worldPoints','sheet.operation.open-sheet-shape-format-panel','_activeAdjustPointList','_clearShapeConnectorHandlerObjects','_urlImageService','getCurrentSkeleton','_handleConnectorPointerUp','formulaPresentation','_sheetPermissionCheckController','getDrawingOrder','default','PictureFill','_baseHeight','onReady','_contextService','_sheetCanvasPopManagerService','_updateShapeAdjustControls','next','updateShapeFillImage','_renderManagerService','Image','doc.image-clip.shape-picker.component','connector-handler-','_localeService','_drawRichText','getShapeTypeById','includes','refreshShapeFillImage','_activeImageId','_generateCutPasteMutations','OTHERS','sheet.menu.shape.flip-horizontal','_shapeTextEditingService','trim','top','_formulaShapes','onCommandExecuted','_addShapeConnectorHandlerObjects','sectionCanvas','top-center','getConnectorLinePoints','_componentManager','_cxtHandlerPointerMove','flipX','getDrawingByParam','_registerFocusChangeHandler','_highlightedSiteIndex','contentHeight','sheet.shape.edit.panel','DRAWING_IMAGE','clipByShape','859923kJNssL','iterator','error','sheet.shape.floating-toolbar','_registerGroupFeaturePasteHook','_connectorObjects','_adjHandlerPointerUp','_sidebarDisposable','_baseWidth','worldRect','createControl$','_executeConnectionCommand','custom','getUnitId','chart','worldPoint','_sheetPrintInterceptorService','doc','shape','getUnit','sheet.shape.text.float-menu','strokeWidth','shapeData','presentationChanged$','getConnectionRelation','onSteady','_addControl','_drawShapeText','_initializedShapePopupMenu','_adjHandlerPointerMove','205892BIwznn','Rect','CROSSHAIR','isHorizontal','_clearConnectionSites','_drawRichTextLayer','_baseShapeHeight','DRAWING_UNIT','VIEW_MAIN','_registerMoveHandler','getParent','getShapeTextData','_sidebarService','17272LPslNd','flipY','_handleConnectedEndpointPointerUp','getObject','animationEnabled','getAdjustInfoByName','_clearShapeAdjustControls','_baseLeft','_isOpenedShapeEditPanel','_addShapeAdjustControl','changeShapeType','_getSceneAndTransformerByDrawingSearch','abs','editingParams$','_drawingManagerService','_registerDrawingMoveHandler','video','shapeText','getBatchRemoveOp','_sheetDrawingShapeRenderController','_drawSimpleText','_executeConnectedRouteResizeCommand','updateLinePoints','_sheetBasicShapeConnectionPointController','_sheetDrawingService','_showConnectionSites','add','resourceCollector','create','_disposed','_activeTargetShapeId','DRAWING_DOM','getSkeleton','_insertingShapeKeys','map','drawingType','unit','viewportScrollX','_isShouldShowDrawingShapeAdjust','stroke','values','entries','getMatrix','smartArt','shape-text-','index','_reset','DRAWING_SHAPE','has','_createShapePopupMenu','data','undo','dom','_onSavingEditorData$','drawing.operation.set-drawing-active','updateContext','_sheetInterceptorService','_createShapeAdjustControls','composeMatrix','complete','left','sheets-shape-text-','makeDirty','update$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','viewportScrollY','size','getCurrentTypeOfUnit$','FromArray','intercept','_loadShapePictureFill','getDrawingEditable','selectable','getEditing','_shapes','setContextValue','pick','_findShapeAtPoint','_getScrollInfo','_getConnectPointInfo','isLineShape','asObservable','_clearPopups','_focusedDrawings','getRealBound','getPresentation','visible','scene','setHighlighted'];_0x10e2=function(){return _0x908c05;};return _0x10e2();}let Lr=class extends _0x444b76{constructor(_0x1849c3,_0x4245f8,_0x258af3,_0x16eaa8,_0x52e14d,_0x376dfb,_0x157c34,_0x2a7a59){const _0x51ccc3=_0xcb6cbb;super(),this[_0x51ccc3(0x2ea)]=_0x1849c3,this[_0x51ccc3(0x300)]=_0x4245f8,this['_renderManagerService']=_0x258af3,this[_0x51ccc3(0x1ad)]=_0x16eaa8,this[_0x51ccc3(0x23f)]=_0x52e14d,this[_0x51ccc3(0x287)]=_0x376dfb,this[_0x51ccc3(0x132)]=_0x157c34,this[_0x51ccc3(0x1b6)]=_0x2a7a59,Y(this,_0x51ccc3(0x2c1),void 0x0),Y(this,_0x51ccc3(0x2aa),void 0x0),Y(this,'_subUnitId',void 0x0),Y(this,'_connectorObjects',[]),Y(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),Y(this,_0x51ccc3(0xf6),void 0x0),Y(this,_0x51ccc3(0x236),!0x1),Y(this,_0x51ccc3(0xbe),!0x1),Y(this,_0x51ccc3(0x208),!0x1),Y(this,_0x51ccc3(0x16b),void 0x0),Y(this,_0x51ccc3(0x2b9),void 0x0),Y(this,_0x51ccc3(0xd6),null),this[_0x51ccc3(0x318)]();}[_0xcb6cbb(0x318)](){const _0x4e362f=_0xcb6cbb;this[_0x4e362f(0x2a8)](),this[_0x4e362f(0x1ae)]();}['_getDrawingRect'](){const _0x3c0830=_0xcb6cbb;if(!this[_0x3c0830(0x2aa)]||!this['_subUnitId']||!this[_0x3c0830(0x2c1)])return;let _0x546881={'unitId':this[_0x3c0830(0x2aa)],'subUnitId':this[_0x3c0830(0x13b)],'drawingId':this[_0x3c0830(0x2c1)]},{transform:_0x792dd0}=this['_drawingManagerService'][_0x3c0830(0x16d)](_0x546881);if(_0x792dd0)return{'left':_0x792dd0['left']||0x0,'top':_0x792dd0['top']||0x0,'width':_0x792dd0['width']||0x0,'height':_0x792dd0['height']||0x0,'flipX':_0x792dd0['flipX']||!0x1,'flipY':_0x792dd0[_0x3c0830(0x1a0)]||!0x1,'angle':_0x792dd0[_0x3c0830(0x31f)]};}[_0xcb6cbb(0x166)](){const _0x26f78b=_0xcb6cbb;if(this['_unitId']===void 0x0||this['_subUnitId']===void 0x0||this[_0x26f78b(0x2c1)]===void 0x0)return;let _0x1858f9=this[_0x26f78b(0x154)]['getRenderUnitById'](this[_0x26f78b(0x2aa)]);if(!_0x1858f9||!_0x1858f9[_0x26f78b(0x2dd)](_0x48c126)['getCurrentSkeleton']())return;let {scene:_0x191e2b}=_0x1858f9,_0x34559e=this[_0x26f78b(0x2de)]();if(!_0x34559e)return;let _0x28bc32=this['_sheetsShapeService']['getShapeModel'](this[_0x26f78b(0x2aa)],this['_subUnitId'],this[_0x26f78b(0x2c1)]);if(!_0x28bc32||!_0x286130(_0x28bc32[_0x26f78b(0xb7)]()))return;let _0x402553=_0x28bc32['getConnectorLinePoints']();if(_0x402553[_0x26f78b(0x25d)]<0x2)return;let _0x22fadc=new _0x4d85c6(_0x34559e),_0x54d46c=_0x402553[0x0],_0x332b35=_0x402553[_0x402553[_0x26f78b(0x25d)]-0x1],_0xb23eed=_0x22fadc[_0x26f78b(0x12a)](_0x54d46c),_0x3efb80=_0x22fadc[_0x26f78b(0x12a)](_0x332b35);this[_0x26f78b(0x20d)](_0x191e2b,{..._0xb23eed},!0x0),this[_0x26f78b(0x20d)](_0x191e2b,{..._0x3efb80},!0x1);}['_addShapeConnectorHandlerObject'](_0x25a96d,_0x3f120b,_0x22cf74){const _0x26cf11=_0xcb6cbb;if(this[_0x26cf11(0x2c1)]===void 0x0||this[_0x26cf11(0x2aa)]===void 0x0||this[_0x26cf11(0x13b)]===void 0x0)return;let _0x52de05=_0x26cf11(0x157)+this['_unitId']+'-'+this[_0x26cf11(0x13b)]+'-'+this[_0x26cf11(0x2c1)]+'-'+(_0x22cf74?'start':_0x26cf11(0x289)),_0x5abbbd=_0x25a96d['getObjectIncludeInGroup'](_0x52de05);if(_0x5abbbd){_0x5abbbd[_0x26cf11(0xdd)]({'left':_0x3f120b['x']-_0x3cbe53['cxnPointRadius'],'top':_0x3f120b['y']-_0x3cbe53['cxnPointRadius']});return;}let _0x3a5a2d=new Ir(_0x52de05,{'left':_0x3f120b['x']-_0x3cbe53[_0x26cf11(0x27a)],'top':_0x3f120b['y']-_0x3cbe53[_0x26cf11(0x27a)],'shapeId':this[_0x26cf11(0x2c1)],'unitId':this[_0x26cf11(0x2aa)],'subUnitId':this[_0x26cf11(0x13b)],'isStartConnectorPoint':_0x22cf74,'width':_0x3cbe53['cxnPointRadius']*0x2,'height':_0x3cbe53[_0x26cf11(0x27a)]*0x2,'zIndex':_0x338629+0x1,'evented':!0x0});this['_connectorObjects'][_0x26cf11(0x311)](_0x3a5a2d),this[_0x26cf11(0x2a2)](_0x3a5a2d,_0x25a96d,_0x22cf74),_0x25a96d[_0x26cf11(0x212)](_0x3a5a2d,_0x338629+0x1);}[_0xcb6cbb(0x1ed)](_0x511683,_0x26d793){const _0x485a0f=_0xcb6cbb;var _0x5cb1dd;let _0x57eefb={'x':0x0,'y':0x0};if(!_0x511683||!_0x26d793)return _0x57eefb;let _0x3e2be9=this[_0x485a0f(0x154)][_0x485a0f(0x133)](_0x511683);if(!_0x3e2be9||!_0x3e2be9[_0x485a0f(0x2dd)](_0x48c126)[_0x485a0f(0x1bf)](_0x26d793))return _0x57eefb;let _0x425828=_0x3e2be9['with'](_0x3e3bbb),_0x2d4408=_0x425828==null?void 0x0:_0x425828[_0x485a0f(0x244)]();if(!_0x2d4408)return _0x57eefb;let _0x2fa344=(_0x5cb1dd=this[_0x485a0f(0x23f)][_0x485a0f(0x187)](_0x511683))==null?void 0x0:_0x5cb1dd[_0x485a0f(0x26d)](_0x26d793);if(!_0x2fa344)return _0x57eefb;let _0x3b7449=_0x3dd685(_0x2d4408[_0x485a0f(0x2f9)],_0x2d4408[_0x485a0f(0x234)],_0x3e2be9['scene'],_0x2fa344);return _0x3b7449?{'x':_0x3b7449[_0x485a0f(0x1c4)],'y':_0x3b7449[_0x485a0f(0x1e0)]}:_0x57eefb;}[_0xcb6cbb(0xc4)](_0x369166,_0x251817){const _0x4886fb=_0xcb6cbb;var _0x4073fe,_0x37e40f;let _0x13f04f=(_0x4073fe=this[_0x4886fb(0x23f)]['getUnit'](_0x369166))==null?void 0x0:_0x4073fe[_0x4886fb(0x26d)](_0x251817);return(_0x37e40f=_0x13f04f==null?void 0x0:_0x13f04f['getZoomRatio']())==null?0x1:_0x37e40f;}[_0xcb6cbb(0x147)](_0x155f37,_0x2396ed,_0x3aa0da,_0xd4a3d5,_0xc9ce1c){const _0x1a8c91=_0xcb6cbb;this[_0x1a8c91(0x16b)][_0x1a8c91(0x22f)](),this[_0x1a8c91(0x2b9)][_0x1a8c91(0x22f)](),this[_0x1a8c91(0x132)][_0x1a8c91(0x2b3)]();let _0x218290=this[_0x1a8c91(0xd6)];this[_0x1a8c91(0x1b6)][_0x1a8c91(0x2fa)]();let _0x105e1d=this['_getScrollInfo'](this[_0x1a8c91(0x2aa)],this[_0x1a8c91(0x13b)]),_0x5caf14=this[_0x1a8c91(0xc4)](this[_0x1a8c91(0x2aa)],this['_subUnitId']),_0x3f835d={'x':_0x3aa0da[_0x1a8c91(0x307)]/_0x5caf14+_0x105e1d['x'],'y':_0x3aa0da[_0x1a8c91(0x299)]/_0x5caf14+_0x105e1d['y']},_0xd383a1=_0x218290?_0x218290[_0x1a8c91(0x183)]:_0x3f835d,_0x7d6dac=_0xd4a3d5?this[_0x1a8c91(0xf6)][_0x1a8c91(0x2f4)]():this[_0x1a8c91(0xf6)][_0x1a8c91(0x24c)](),_0x395173=this[_0x1a8c91(0xf6)][_0x1a8c91(0xb7)]();_0x7d6dac?this[_0x1a8c91(0x1a1)](_0x7d6dac,_0xd383a1,_0xd4a3d5,_0x218290,_0xc9ce1c):this[_0x1a8c91(0x290)](_0x2396ed,_0xd383a1,_0xd4a3d5,_0x218290,_0xc9ce1c,_0x395173),this[_0x1a8c91(0x236)]=!0x1,this['_hasReset']=!0x1,this[_0x1a8c91(0xd6)]=null,_0x155f37[_0x1a8c91(0x31d)]();}[_0xcb6cbb(0x290)](_0xe23237,_0xec6e33,_0x257783,_0x147834,_0x270ee4,_0x51a86b){const _0x707b40=_0xcb6cbb;let _0x25444a=_0x51a86b===_0x4c4784['Line']||_0x51a86b===_0x4c4784['StraightConnector1'],_0x4d9463=_0x257783?_0xec6e33:_0xe23237,_0x2ba413=_0x257783?_0xe23237:_0xec6e33,_0x23e8b7=this['_activeShapeModel'][_0x707b40(0x169)](),_0x10cfc2=_0x5b9030(this[_0x707b40(0xf6)][_0x707b40(0xb7)]()),_0x4d70ff=_0x4d85c6[_0x707b40(0x136)](_0x23e8b7,_0x10cfc2),_0x404b26=_0x25444a?_0x4d85c6[_0x707b40(0x106)](_0x4d9463,_0x2ba413):_0x4d85c6[_0x707b40(0x22c)](_0xe23237,_0xec6e33,_0x257783,_0x4d70ff);_0x147834?this['_executeConnectionCommand'](_0x404b26,_0x147834,_0x257783,_0x270ee4):this[_0x707b40(0x219)](_0x404b26,_0x270ee4);}[_0xcb6cbb(0x1a1)](_0xb15545,_0xca3800,_0x15b722,_0x4bc3f9,_0x1ec190){const _0xb7614a=_0xcb6cbb;let _0x3db9f9=this[_0xb7614a(0x1ee)](_0xb15545);if(!_0x3db9f9)return;let _0x198265=_0x4bc3f9?_0x4bc3f9['angle']:this[_0xb7614a(0x288)](_0x3db9f9['point'],_0xca3800),_0x95c946;if(_0x4bc3f9){let _0x208958=this[_0xb7614a(0x1ad)][_0xb7614a(0x16d)]({'unitId':_0x4bc3f9[_0xb7614a(0x241)],'subUnitId':_0x4bc3f9[_0xb7614a(0x281)],'drawingId':_0x4bc3f9[_0xb7614a(0x124)]});if(_0x208958!=null&&_0x208958[_0xb7614a(0xce)]){let {left:_0x2368ff=0x0,top:_0x521bac=0x0,width:_0x3ed718=0x0,height:_0x34fbb5=0x0,angle:_0x3c5e31}=_0x208958[_0xb7614a(0xce)];_0x95c946=_0x202bf2({'left':_0x2368ff,'top':_0x521bac,'width':_0x3ed718,'height':_0x34fbb5},_0x3c5e31||0x0);}else _0x95c946={'left':_0xca3800['x'],'top':_0xca3800['y'],'width':0x0,'height':0x0};}else _0x95c946={'left':_0xca3800['x'],'top':_0xca3800['y'],'width':0x0,'height':0x0};let _0x30e5ed={'point':_0xca3800,'angle':_0x198265,'bounds':_0x95c946},_0x2923ef=_0x15b722?_0x30e5ed:_0x3db9f9,_0x58803a=_0x15b722?_0x3db9f9:_0x30e5ed,_0x25dbdb=this['_activeShapeModel'][_0xb7614a(0xb7)](),_0x5c24bb=_0x502b11(_0x2923ef,_0x58803a,_0x25dbdb);this[_0xb7614a(0xf6)]['removeLinePoints']();let _0x19885c=_0x5d79b3(_0x5c24bb,_0x25dbdb);_0x4bc3f9?this[_0xb7614a(0xe5)](_0x19885c,_0x4bc3f9,_0xb15545,_0x15b722,_0x1ec190):this[_0xb7614a(0x1b4)](_0x19885c,_0xb15545,_0x15b722,_0x1ec190);}[_0xcb6cbb(0x17f)](_0x2a3fbc,_0x5f5a3c,_0x328e5a,_0x33c836){const _0x5980e1=_0xcb6cbb;let _0x36822a=this[_0x5980e1(0xf6)]['getShapeData']()[_0x5980e1(0x12f)],_0x41a180={..._0x36822a},_0x10f2bf={'shapeId':_0x5f5a3c['shapeId'],'cxnIndex':_0x5f5a3c[_0x5980e1(0xc7)]};_0x328e5a?_0x41a180[_0x5980e1(0x30c)]=_0x10f2bf:_0x41a180['to']=_0x10f2bf;let _0x200afe=this[_0x5980e1(0xf6)][_0x5980e1(0xb7)](),_0x425bc3=_0x5d79b3(_0x2a3fbc[_0x5980e1(0x141)],_0x200afe),_0x4dd4d6={'unitId':this[_0x5980e1(0x2aa)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x5980e1(0x2c1)],'width':_0x2a3fbc[_0x5980e1(0x17d)][_0x5980e1(0x1fb)],'height':_0x2a3fbc[_0x5980e1(0x17d)][_0x5980e1(0x123)],'left':_0x2a3fbc[_0x5980e1(0x17d)][_0x5980e1(0x1db)],'top':_0x2a3fbc[_0x5980e1(0x17d)][_0x5980e1(0x163)],'flipX':_0x2a3fbc['worldRect']['flipX']||!0x1,'flipY':_0x2a3fbc[_0x5980e1(0x17d)][_0x5980e1(0x1a0)]||!0x1,'newAdjustValues':_0x425bc3[_0x5980e1(0x260)],'oldAdjustValues':_0x33c836,'oldRelation':_0x36822a,'newRelation':_0x41a180,'newLineType':_0x425bc3[_0x5980e1(0x2b0)],'oldLineType':_0x200afe};this[_0x5980e1(0x300)]['executeCommand'](_0x1ae360['id'],_0x4dd4d6);}['_executeResizeCommand'](_0x4cc97d,_0x48d031){const _0x4d55f6=_0xcb6cbb;let _0x5bd869=this[_0x4d55f6(0xf6)][_0x4d55f6(0xb7)](),_0x388bc4=_0x5d79b3(_0x4cc97d[_0x4d55f6(0x141)],_0x5bd869),_0x22bbe5={'unitId':this[_0x4d55f6(0x2aa)],'subUnitId':this[_0x4d55f6(0x13b)],'shapeId':this[_0x4d55f6(0x2c1)],'width':_0x4cc97d['worldRect'][_0x4d55f6(0x1fb)],'height':_0x4cc97d[_0x4d55f6(0x17d)][_0x4d55f6(0x123)],'left':_0x4cc97d['worldRect'][_0x4d55f6(0x1db)],'top':_0x4cc97d[_0x4d55f6(0x17d)][_0x4d55f6(0x163)],'flipX':_0x4cc97d[_0x4d55f6(0x17d)][_0x4d55f6(0x16c)]||!0x1,'flipY':_0x4cc97d[_0x4d55f6(0x17d)][_0x4d55f6(0x1a0)]||!0x1,'angle':_0x4cc97d[_0x4d55f6(0x17d)][_0x4d55f6(0x31f)]||0x0,'newAdjustValues':_0x388bc4['adjustValues'],'oldAdjustValues':_0x48d031,'newLineType':_0x388bc4[_0x4d55f6(0x2b0)],'oldLineType':_0x5bd869};this[_0x4d55f6(0x300)][_0x4d55f6(0x29b)](_0x15b46f['id'],_0x22bbe5);}[_0xcb6cbb(0xe5)](_0x3c38f3,_0x4b4cf7,_0x4f4eab,_0xcb68a8,_0x1cfbf9){const _0x27ea7a=_0xcb6cbb;let _0x414166=this[_0x27ea7a(0xf6)][_0x27ea7a(0x113)]()[_0x27ea7a(0x12f)],_0x3b9d7c={..._0x414166},_0x3aa156={'shapeId':_0x4b4cf7[_0x27ea7a(0x124)],'cxnIndex':_0x4b4cf7[_0x27ea7a(0xc7)]};_0xcb68a8?(_0x3b9d7c[_0x27ea7a(0x30c)]=_0x3aa156,_0x3b9d7c['to']=_0x4f4eab):(_0x3b9d7c[_0x27ea7a(0x30c)]=_0x4f4eab,_0x3b9d7c['to']=_0x3aa156);let _0x452b28={'unitId':this[_0x27ea7a(0x2aa)],'subUnitId':this[_0x27ea7a(0x13b)],'connectorShapeId':this['_activeShapeId'],'width':_0x3c38f3['worldRect'][_0x27ea7a(0x1fb)],'height':_0x3c38f3['worldRect'][_0x27ea7a(0x123)],'left':_0x3c38f3[_0x27ea7a(0x17d)][_0x27ea7a(0x1db)],'top':_0x3c38f3[_0x27ea7a(0x17d)]['top'],'flipX':_0x3c38f3[_0x27ea7a(0x17d)][_0x27ea7a(0x16c)]||!0x1,'flipY':_0x3c38f3[_0x27ea7a(0x17d)]['flipY']||!0x1,'oldAdjustValues':_0x1cfbf9,'newAdjustValues':_0x3c38f3[_0x27ea7a(0x260)],'newLineType':_0x3c38f3[_0x27ea7a(0x2b0)],'rotation':_0x3c38f3[_0x27ea7a(0x31b)],'oldRelation':_0x414166,'newRelation':_0x3b9d7c};this[_0x27ea7a(0x300)][_0x27ea7a(0x29b)](_0x1ae360['id'],_0x452b28);}[_0xcb6cbb(0x1b4)](_0x362d7c,_0x579362,_0x2b8553,_0x2035a7){const _0x4e0118=_0xcb6cbb;let _0x3d5205=this[_0x4e0118(0xf6)]['getShapeData']()['relation'],_0x5ab6e4={};_0x2b8553?(_0x5ab6e4['to']=_0x579362,_0x5ab6e4[_0x4e0118(0x30c)]=void 0x0):(_0x5ab6e4['from']=_0x579362,_0x5ab6e4['to']=void 0x0);let _0xe2c4bb={'unitId':this[_0x4e0118(0x2aa)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x4e0118(0x2c1)],'width':_0x362d7c[_0x4e0118(0x17d)][_0x4e0118(0x1fb)],'height':_0x362d7c[_0x4e0118(0x17d)]['height'],'left':_0x362d7c[_0x4e0118(0x17d)][_0x4e0118(0x1db)],'top':_0x362d7c[_0x4e0118(0x17d)]['top'],'flipX':_0x362d7c[_0x4e0118(0x17d)][_0x4e0118(0x16c)]||!0x1,'flipY':_0x362d7c[_0x4e0118(0x17d)]['flipY']||!0x1,'oldAdjustValues':_0x2035a7,'newAdjustValues':_0x362d7c[_0x4e0118(0x260)],'newLineType':_0x362d7c[_0x4e0118(0x2b0)],'rotation':_0x362d7c[_0x4e0118(0x31b)],'oldRelation':_0x3d5205,'newRelation':_0x5ab6e4};this[_0x4e0118(0x300)][_0x4e0118(0x29b)](_0x1ae360['id'],_0xe2c4bb);}['_attachConnectorObjectEvent'](_0x1d7e1e,_0x1d7164,_0x47bdf9){const _0x423326=_0xcb6cbb;this[_0x423326(0x2d6)](_0x452c8c(_0x1d7e1e[_0x423326(0xc9)][_0x423326(0x2fe)]((_0x390c8c,_0x11136b)=>{const _0x2f9fdd=_0x423326;let _0x15c568=_0x1d7e1e[_0x2f9fdd(0x23d)]();if(this[_0x2f9fdd(0xf6)]=this[_0x2f9fdd(0x287)]['getShapeModel'](_0x15c568['unitId'],_0x15c568['subUnitId'],_0x15c568[_0x2f9fdd(0x10e)]),!this[_0x2f9fdd(0xf6)])return;let _0x4cf1af={};this['_activeShapeModel'][_0x2f9fdd(0x111)]()[_0x2f9fdd(0x26a)](_0x16bbc4=>{const _0x1e779f=_0x2f9fdd;let _0x2ce4e2=this[_0x1e779f(0xf6)][_0x1e779f(0xc6)](_0x16bbc4);_0x2ce4e2!==void 0x0&&(_0x4cf1af[_0x16bbc4]=_0x2ce4e2);});let _0x231be5=this[_0x2f9fdd(0x2de)]();if(!_0x231be5)return;this[_0x2f9fdd(0x21d)]={..._0x231be5};let _0x36ea37=new _0x4d85c6(this[_0x2f9fdd(0x21d)]),_0x3b57d2=_0x4f98bd({'unitId':this[_0x2f9fdd(0x2aa)],'subUnitId':this[_0x2f9fdd(0x13b)],'drawingId':this[_0x2f9fdd(0x2c1)]}),_0x2213e5=_0x1d7164[_0x2f9fdd(0x114)](_0x3b57d2);this[_0x2f9fdd(0x236)]=!0x0,_0x1d7164['disableObjectsEvent'](),this[_0x2f9fdd(0x1b6)]['startConnectionDetection'](_0x1d7164,this['_unitId'],this[_0x2f9fdd(0x13b)],this[_0x2f9fdd(0x2c1)]),this[_0x2f9fdd(0xd6)]=null;let _0xf48e89=this[_0x2f9fdd(0xf6)][_0x2f9fdd(0x169)](),_0x2954c0=_0xf48e89[0x0],_0x405922=_0xf48e89[_0xf48e89[_0x2f9fdd(0x25d)]-0x1],_0x537bad=_0x47bdf9?_0x36ea37['localToWorld'](_0x405922):_0x36ea37['localToWorld'](_0x2954c0);this[_0x2f9fdd(0x16b)]=_0x1d7164['onPointerMove$'][_0x2f9fdd(0x2fe)]((_0x1d4688,_0x183f3b)=>{const _0x5d1262=_0x2f9fdd;if(!this[_0x5d1262(0x236)]||!this[_0x5d1262(0xf6)])return;this[_0x5d1262(0x208)]||(this[_0x5d1262(0x132)][_0x5d1262(0x24b)](),this[_0x5d1262(0xf6)]['clearAdjustValue'](),this[_0x5d1262(0x208)]=!0x0);let _0x41022c=this[_0x5d1262(0x1ed)](this[_0x5d1262(0x2aa)],this[_0x5d1262(0x13b)]),_0x467ac8=this[_0x5d1262(0xc4)](this[_0x5d1262(0x2aa)],this[_0x5d1262(0x13b)]),_0x56716f={'x':_0x1d4688['offsetX']/_0x467ac8+_0x41022c['x'],'y':_0x1d4688[_0x5d1262(0x299)]/_0x467ac8+_0x41022c['y']},_0x3dc7ad=this[_0x5d1262(0x1b6)][_0x5d1262(0x121)](_0x56716f);if(_0x3dc7ad){let {shapeId:_0x399d0c,unitId:_0xabeb09,subUnitId:_0x386235}=_0x3dc7ad;if(_0x399d0c&&_0xabeb09&&_0x386235){let _0x375292=_0x4f98bd({'unitId':_0xabeb09,'subUnitId':_0x386235,'drawingId':_0x399d0c});_0x3dc7ad[_0x5d1262(0x31f)]=(_0x1d7164[_0x5d1262(0x114)](_0x375292)[_0x5d1262(0x31f)]||0x0)+_0x3dc7ad[_0x5d1262(0x31f)];}}this[_0x5d1262(0xd6)]=_0x3dc7ad;let _0xa184af=_0x47bdf9?this[_0x5d1262(0xf6)][_0x5d1262(0x2f4)]():this['_activeShapeModel'][_0x5d1262(0x24c)]();if(_0xa184af){this['_handleConnectedEndpointMove'](_0xa184af,_0x56716f,_0x47bdf9,_0x2213e5,_0x1d7e1e);return;}this[_0x5d1262(0x107)](_0x56716f,_0x537bad,_0x47bdf9,_0x2213e5,_0x1d7e1e);}),this[_0x2f9fdd(0x2b9)]=_0x1d7164[_0x2f9fdd(0x24e)]['subscribeEvent']((_0x596504,_0x5418ba)=>{const _0x29bc61=_0x2f9fdd;this[_0x29bc61(0x147)](_0x1d7164,_0x537bad,_0x596504,_0x47bdf9,_0x4cf1af);}),_0x11136b[_0x2f9fdd(0x2c3)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x2959e3,_0x577cbe,_0x12dea1){const _0x42ee20=_0xcb6cbb;let _0x1b8dc2=this[_0x42ee20(0x287)][_0x42ee20(0x2d8)](_0x2959e3,_0x577cbe,_0x12dea1);if(!_0x1b8dc2||_0x1b8dc2['length']===0x0)return;let _0x104019=this[_0x42ee20(0x154)]['getRenderUnitById'](_0x2959e3);if(!_0x104019)return;let {scene:_0x71ffa2}=_0x104019;for(let _0xdb2ef7 of _0x1b8dc2){let _0x196763=_0xdb2ef7[_0x42ee20(0x30d)],_0x526746=this['_sheetsShapeService'][_0x42ee20(0x2c4)](_0x2959e3,_0x577cbe,_0x196763);if(!_0x526746)continue;let _0x5e01b7=_0x526746[_0x42ee20(0x24c)](),_0xd83fb1=_0x526746[_0x42ee20(0x2f4)](),_0x3ed863=(_0x5e01b7==null?void 0x0:_0x5e01b7[_0x42ee20(0x124)])===_0x12dea1,_0x41209b=_0x4f98bd({'unitId':_0x2959e3,'subUnitId':_0x577cbe,'drawingId':_0x196763}),_0x3f1a4c=_0x71ffa2[_0x42ee20(0x114)](_0x41209b);if(!_0x3f1a4c)continue;let _0x263e8a=this[_0x42ee20(0x1ad)][_0x42ee20(0x16d)]({'unitId':_0x2959e3,'subUnitId':_0x577cbe,'drawingId':_0x196763});_0x263e8a!=null&&_0x263e8a['transform']&&(_0x5e01b7&&_0xd83fb1?this[_0x42ee20(0x319)](_0x2959e3,_0x577cbe,_0x196763,_0x526746,_0x5e01b7,_0xd83fb1,_0x3f1a4c):this[_0x42ee20(0x250)](_0x2959e3,_0x577cbe,_0x196763,_0x526746,_0x3ed863?_0x5e01b7:_0xd83fb1,_0x3ed863,_0x263e8a,_0x3f1a4c));}}['_rerouteConnectorLine'](_0x23eae9,_0x41490d,_0x40a89c,_0x331887,_0x2b034c,_0xb4f7ad,_0x52adf3){const _0x9594df=_0xcb6cbb;let _0x2f78f8=this[_0x9594df(0x2aa)],_0xef3231=this['_subUnitId'];this[_0x9594df(0x2aa)]=_0x23eae9,this[_0x9594df(0x13b)]=_0x41490d;let _0x486210=this[_0x9594df(0x1ee)](_0x2b034c),_0x25a977=this[_0x9594df(0x1ee)](_0xb4f7ad);if(this[_0x9594df(0x2aa)]=_0x2f78f8,this[_0x9594df(0x13b)]=_0xef3231,!_0x486210||!_0x25a977)return;let _0x1ece45=_0x331887[_0x9594df(0xb7)](),_0x12077f=_0x502b11(_0x486210,_0x25a977,_0x1ece45);_0x12077f&&_0x331887[_0x9594df(0x1b5)](_0x12077f);let _0x3c73d1=_0x5d79b3(_0x12077f,_0x1ece45);_0x3c73d1[_0x9594df(0x2b0)]!==_0x1ece45&&_0x331887[_0x9594df(0x1a9)](_0x3c73d1[_0x9594df(0x2b0)]),_0x331887['clearAdjustValue']();for(let [_0x4b5d5d,_0x345581]of Object['entries'](_0x3c73d1[_0x9594df(0x260)]))_0x331887[_0x9594df(0xda)](_0x4b5d5d,_0x345581);_0x331887[_0x9594df(0x1d6)]({'width':_0x3c73d1['worldRect'][_0x9594df(0x1fb)],'height':_0x3c73d1[_0x9594df(0x17d)][_0x9594df(0x123)]}),_0x52adf3[_0x9594df(0xdd)]({'flipX':_0x3c73d1[_0x9594df(0x17d)][_0x9594df(0x16c)],'flipY':_0x3c73d1[_0x9594df(0x17d)][_0x9594df(0x1a0)],'left':_0x3c73d1['worldRect'][_0x9594df(0x1db)],'top':_0x3c73d1[_0x9594df(0x17d)][_0x9594df(0x163)],'width':_0x3c73d1[_0x9594df(0x17d)][_0x9594df(0x1fb)],'height':_0x3c73d1[_0x9594df(0x17d)]['height'],'angle':_0x3c73d1[_0x9594df(0x31b)]}),_0x331887[_0x9594df(0x2ed)]();}[_0xcb6cbb(0x250)](_0x3ff80a,_0x504cfa,_0x347f0d,_0xf3aad1,_0x464fd3,_0x873434,_0x3ba130,_0x4348aa){const _0x57d75b=_0xcb6cbb;let _0x2012ec=this['_unitId'],_0x4a70e1=this[_0x57d75b(0x13b)];this['_unitId']=_0x3ff80a,this['_subUnitId']=_0x504cfa;let _0x37720c=this['_getConnectPointInfo'](_0x464fd3);if(this['_unitId']=_0x2012ec,this[_0x57d75b(0x13b)]=_0x4a70e1,!_0x37720c)return;let {left:_0x2c680b=0x0,top:_0x2dad0b=0x0,width:_0x4669a5=0x0,height:_0x1040ca=0x0,flipX:_0x5071c4=!0x1,flipY:_0x1f3c04=!0x1}=_0x3ba130['transform'],_0xe520fd=_0xf3aad1[_0x57d75b(0x169)]();if(_0xe520fd['length']<0x2)return;let _0x1a5e53=new _0x4d85c6({'left':_0x2c680b,'top':_0x2dad0b,'width':_0x4669a5,'height':_0x1040ca,'flipX':_0x5071c4,'flipY':_0x1f3c04}),_0x418efd=_0x873434?_0xe520fd[_0xe520fd[_0x57d75b(0x25d)]-0x1]:_0xe520fd[0x0],_0x3cc2f1=_0x1a5e53[_0x57d75b(0x12a)](_0x418efd),_0x200e45=_0x4d85c6[_0x57d75b(0x22c)](_0x3cc2f1,_0x37720c[_0x57d75b(0x118)],!_0x873434);_0x4348aa[_0x57d75b(0xdd)]({'flipX':_0x200e45[_0x57d75b(0x17d)][_0x57d75b(0x16c)],'flipY':_0x200e45[_0x57d75b(0x17d)][_0x57d75b(0x1a0)],'left':_0x200e45['worldRect'][_0x57d75b(0x1db)],'top':_0x200e45[_0x57d75b(0x17d)][_0x57d75b(0x163)],'width':_0x200e45[_0x57d75b(0x17d)][_0x57d75b(0x1fb)],'height':_0x200e45[_0x57d75b(0x17d)][_0x57d75b(0x123)],'angle':_0x200e45[_0x57d75b(0x17d)][_0x57d75b(0x31f)]}),_0x4348aa[_0x57d75b(0x1dd)](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0x3bf7ee=_0xcb6cbb;this['_connectorObjects'][_0x3bf7ee(0x25d)]!==0x0&&(this[_0x3bf7ee(0x179)][_0x3bf7ee(0x26a)](_0x11947a=>{const _0xe31895=_0x3bf7ee;_0x11947a[_0xe31895(0x20e)]();}),this[_0x3bf7ee(0x179)]=[]);}['_registerDrawingMoveHandler'](){const _0x482655=_0xcb6cbb;let _0x3323d8=this[_0x482655(0x23f)][_0x482655(0x1e2)](_0x593ef9[_0x482655(0x298)]);this[_0x482655(0x2d6)](_0x3323d8[_0x482655(0x23e)](_0x11d4bf(_0x4e81fa=>_0x4e81fa?_0x4e81fa[_0x482655(0x10c)][_0x482655(0x23e)](_0x11d4bf(_0x5be07e=>{const _0x34ed35=_0x482655;if(!_0x5be07e)return _0x1198ce;let _0x574125=_0x4e81fa[_0x34ed35(0x181)](),_0x54c865=this[_0x34ed35(0x154)][_0x34ed35(0x133)](_0x574125),_0x20f063=_0x54c865==null?void 0x0:_0x54c865[_0x34ed35(0x1f6)];return _0x20f063?_0x9a150f(_0x20f063):_0x1198ce;})):_0x1198ce))[_0x482655(0x2f7)](_0x4eb93d=>{const _0x358f5e=_0x482655;let _0x239303=_0x4eb93d[_0x358f5e(0x24a)]();this[_0x358f5e(0x2d6)](_0x4eb93d[_0x358f5e(0x291)][_0x358f5e(0x2fe)](_0x45b6e9=>{const _0x5eb53f=_0x358f5e;this[_0x5eb53f(0xbe)]&&this[_0x5eb53f(0x2c1)]&&this[_0x5eb53f(0x144)]();})),this[_0x358f5e(0x2d6)](_0x239303['changeStart$'][_0x358f5e(0x2f7)](_0x3cbaf5=>{const _0x35490d=_0x358f5e;let {objects:_0x5462b2}=_0x3cbaf5;this['_clearShapeConnectorHandlerObjects'](),_0x5462b2!==null&&_0x5462b2['size']===0x1&&_0x5462b2['values']()[_0x35490d(0x152)]()[_0x35490d(0x274)]instanceof Ln&&(this['_isDrawingShapePointDown']=!0x0);})),this[_0x358f5e(0x2d6)](_0x239303['changing$'][_0x358f5e(0x2f7)](_0x2fa120=>{const _0x6e560f=_0x358f5e;this[_0x6e560f(0xbe)]&&this[_0x6e560f(0x144)]();})),this[_0x358f5e(0x2d6)](_0x4eb93d[_0x358f5e(0x24e)][_0x358f5e(0x2fe)](()=>{const _0x363d49=_0x358f5e;this[_0x363d49(0xbe)]&&(this[_0x363d49(0xbe)]=!0x1,this['_addShapeConnectorHandlerObjects']());})),this[_0x358f5e(0x2d6)](_0x239303[_0x358f5e(0xeb)][_0x358f5e(0x2f7)](()=>{const _0x1d1cf3=_0x358f5e;this[_0x1d1cf3(0x2aa)]&&this[_0x1d1cf3(0x13b)]&&this['_activeShapeId']&&this[_0x1d1cf3(0x1ad)][_0x1d1cf3(0x16d)]({'unitId':this['_unitId'],'subUnitId':this[_0x1d1cf3(0x13b)],'drawingId':this['_activeShapeId']})&&(this['_clearShapeConnectorHandlerObjects'](),this[_0x1d1cf3(0x166)]());}));}));}[_0xcb6cbb(0x2a8)](){const _0x392ee9=_0xcb6cbb;this['disposeWithMe'](this[_0x392ee9(0x1ad)]['focus$']['subscribe'](_0x566015=>{const _0x36560a=_0x392ee9;if(_0x566015[_0x36560a(0x25d)]===0x1){let _0x556d24=_0x566015[0x0];if(_0x556d24['drawingType']===_0x55872c[_0x36560a(0x1ce)]){let _0x376b1d=this[_0x36560a(0x287)]['getShapeModel'](_0x556d24[_0x36560a(0x241)],_0x556d24[_0x36560a(0x281)],_0x556d24[_0x36560a(0x10e)]);if(_0x376b1d&&_0x286130(_0x376b1d['getShapeType']())){this['_activeShapeId']=_0x556d24[_0x36560a(0x10e)],this[_0x36560a(0x2aa)]=_0x556d24[_0x36560a(0x241)],this[_0x36560a(0x13b)]=_0x556d24[_0x36560a(0x281)],this[_0x36560a(0x144)](),this[_0x36560a(0x166)]();return;}}}this['_activeShapeId']=void 0x0,this['_unitId']=void 0x0,this[_0x36560a(0x13b)]=void 0x0,this[_0x36560a(0x144)]();})),this['disposeWithMe'](this[_0x392ee9(0x1ad)][_0x392ee9(0x1de)]['subscribe'](_0x3530d0=>{const _0x19cbc0=_0x392ee9;if(_0x3530d0[_0x19cbc0(0x25d)]===0x1){var _0x35d8e0;let _0x45de55=_0x3530d0[0x0],_0x425c66=(_0x35d8e0=this[_0x19cbc0(0x1ad)][_0x19cbc0(0x16d)](_0x45de55))==null?void 0x0:_0x35d8e0[_0x19cbc0(0x1c2)];_0x425c66===_0x55872c[_0x19cbc0(0x1ce)]&&_0x45de55['drawingId']===this[_0x19cbc0(0x2c1)]?(this[_0x19cbc0(0x144)](),this[_0x19cbc0(0x166)]()):!this['_activeShapeId']&&_0x425c66===_0x55872c['DRAWING_SHAPE']&&this[_0x19cbc0(0x28e)](_0x45de55[_0x19cbc0(0x241)],_0x45de55['subUnitId'],_0x45de55[_0x19cbc0(0x10e)]);}})),this[_0x392ee9(0x2d6)](this['_drawingManagerService'][_0x392ee9(0x304)][_0x392ee9(0x2f7)](_0x1c868b=>{const _0x5347cc=_0x392ee9;for(let _0x336762 of _0x1c868b){let {drawingId:_0x4e84fd}=_0x336762;if(this[_0x5347cc(0x2c1)]===_0x4e84fd){this[_0x5347cc(0x1cd)]();return;}}}));}['_handleConnectedEndpointMove'](_0x349ba8,_0x1539c3,_0x182ea6,_0x4888cf,_0x8ccec3){const _0x4046b3=_0xcb6cbb;var _0x2e56d0,_0x346a85;if(!this[_0x4046b3(0xf6)])return;let _0x305ce1=this[_0x4046b3(0x1ee)](_0x349ba8);if(!_0x305ce1)return;let _0x43a4e7=this[_0x4046b3(0xd6)]?this[_0x4046b3(0xd6)]['worldPoint']:_0x1539c3,_0x54c3ca=this[_0x4046b3(0xd6)]?this['_currentConnectionTarget']['angle']:this['_calculateFreeEndpointAngle'](_0x305ce1['point'],_0x43a4e7),_0x1406f8;if(this['_currentConnectionTarget']){let _0x4caa54=this[_0x4046b3(0x1ad)]['getDrawingByParam']({'unitId':this[_0x4046b3(0xd6)]['unitId'],'subUnitId':this[_0x4046b3(0xd6)][_0x4046b3(0x281)],'drawingId':this[_0x4046b3(0xd6)][_0x4046b3(0x124)]});if(_0x4caa54!=null&&_0x4caa54[_0x4046b3(0xce)]){let {left:_0x3b2b15=0x0,top:_0x8498af=0x0,width:_0x1c71bb=0x0,height:_0x28bda5=0x0,angle:_0xe4cb0b}=_0x4caa54[_0x4046b3(0xce)];_0x1406f8=_0x202bf2({'left':_0x3b2b15,'top':_0x8498af,'width':_0x1c71bb,'height':_0x28bda5},_0xe4cb0b||0x0);}else _0x1406f8={'left':_0x43a4e7['x'],'top':_0x43a4e7['y'],'width':0x0,'height':0x0};}else _0x1406f8={'left':_0x43a4e7['x'],'top':_0x43a4e7['y'],'width':0x0,'height':0x0};let _0x37aa72={'point':_0x43a4e7,'angle':_0x54c3ca,'bounds':_0x1406f8},_0x168785=_0x182ea6?_0x37aa72:_0x305ce1,_0x556907=_0x182ea6?_0x305ce1:_0x37aa72,_0x31caa6=this['_activeShapeModel'][_0x4046b3(0xb7)](),_0x57db43=_0x502b11(_0x168785,_0x556907,_0x31caa6);_0x57db43&&this[_0x4046b3(0xf6)][_0x4046b3(0x1b5)](_0x57db43);let _0x4c72af=_0x5d79b3(_0x57db43,_0x31caa6);_0x4c72af[_0x4046b3(0x2b0)]!==_0x31caa6&&this[_0x4046b3(0xf6)][_0x4046b3(0x1a9)](_0x4c72af[_0x4046b3(0x2b0)]);for(let [_0x366763,_0xeaf365]of Object['entries'](_0x4c72af[_0x4046b3(0x260)]))this[_0x4046b3(0xf6)][_0x4046b3(0xda)](_0x366763,_0xeaf365);this[_0x4046b3(0xf6)][_0x4046b3(0x1d6)]({'width':_0x4c72af[_0x4046b3(0x17d)][_0x4046b3(0x1fb)],'height':_0x4c72af['worldRect'][_0x4046b3(0x123)]}),_0x4888cf[_0x4046b3(0xdd)]({'flipX':_0x4c72af[_0x4046b3(0x17d)][_0x4046b3(0x16c)],'flipY':_0x4c72af[_0x4046b3(0x17d)][_0x4046b3(0x1a0)],'left':_0x4c72af[_0x4046b3(0x17d)][_0x4046b3(0x1db)],'top':_0x4c72af[_0x4046b3(0x17d)][_0x4046b3(0x163)],'width':_0x4c72af['worldRect'][_0x4046b3(0x1fb)],'height':_0x4c72af['worldRect']['height'],'angle':_0x4c72af[_0x4046b3(0x31b)]}),_0x4888cf['makeDirty'](!0x0);let _0x2f9f20=(_0x2e56d0=(_0x346a85=this[_0x4046b3(0xd6)])==null?void 0x0:_0x346a85[_0x4046b3(0x183)])==null?_0x1539c3:_0x2e56d0;_0x8ccec3[_0x4046b3(0xdd)]({'left':_0x2f9f20['x']-_0x3cbe53[_0x4046b3(0x27a)],'top':_0x2f9f20['y']-_0x3cbe53['cxnPointRadius']});}['_handleFreeEndpointMove'](_0x523cf1,_0x423eb7,_0x3fc83c,_0x1adeea,_0x4a06cf){const _0x254203=_0xcb6cbb;var _0xcc9b70,_0x430b4e,_0x2ee96f,_0x529e76;let _0x1235fe=(_0xcc9b70=(_0x430b4e=this[_0x254203(0xd6)])==null?void 0x0:_0x430b4e[_0x254203(0x183)])==null?_0x523cf1:_0xcc9b70,_0x427702=_0x4d85c6[_0x254203(0x22c)](_0x423eb7,_0x1235fe,_0x3fc83c);_0x1adeea[_0x254203(0xdd)]({'flipX':_0x427702['worldRect'][_0x254203(0x16c)],'flipY':_0x427702['worldRect'][_0x254203(0x1a0)],'left':_0x427702['worldRect']['left'],'top':_0x427702['worldRect'][_0x254203(0x163)],'width':_0x427702[_0x254203(0x17d)][_0x254203(0x1fb)],'height':_0x427702[_0x254203(0x17d)][_0x254203(0x123)],'angle':_0x427702[_0x254203(0x17d)][_0x254203(0x31f)]});let _0xe11dbe=(_0x2ee96f=(_0x529e76=this[_0x254203(0xd6)])==null?void 0x0:_0x529e76['worldPoint'])==null?_0x523cf1:_0x2ee96f;_0x4a06cf[_0x254203(0xdd)]({'left':_0xe11dbe['x']-_0x3cbe53['cxnPointRadius'],'top':_0xe11dbe['y']-_0x3cbe53['cxnPointRadius']});}[_0xcb6cbb(0x1ee)](_0x5343f5){const _0x4b676d=_0xcb6cbb;if(!this['_unitId']||!this[_0x4b676d(0x13b)])return null;let {shapeId:_0x5d0e62,cxnIndex:_0x28b17d}=_0x5343f5,_0x35ff8b=this[_0x4b676d(0x287)][_0x4b676d(0x2c4)](this[_0x4b676d(0x2aa)],this['_subUnitId'],_0x5d0e62);if(!_0x35ff8b)return null;let _0xc82a69=this[_0x4b676d(0x1ad)][_0x4b676d(0x16d)]({'unitId':this[_0x4b676d(0x2aa)],'subUnitId':this[_0x4b676d(0x13b)],'drawingId':_0x5d0e62});if(!(_0xc82a69!=null&&_0xc82a69[_0x4b676d(0xce)]))return null;let {left:_0xe4d350=0x0,top:_0x5477e7=0x0,width:_0x38a9f2=0x0,height:_0x52c11d=0x0,flipX:_0x1162f9=!0x1,flipY:_0x3a78a6=!0x1,angle:_0x21e35d}=_0xc82a69[_0x4b676d(0xce)];_0x35ff8b['updateContext']({'width':_0x38a9f2,'height':_0x52c11d});let _0x204a57=_0x35ff8b[_0x4b676d(0x2cd)]()[_0x4b676d(0x2e5)](_0x29839f=>_0x29839f[_0x4b676d(0x1cc)]===_0x28b17d);if(!_0x204a57)return null;let _0x259b74=_0x1162f9?_0x38a9f2-_0x204a57['x']:_0x204a57['x'],_0x39bb75=_0x3a78a6?_0x52c11d-_0x204a57['y']:_0x204a57['y'];if(_0x21e35d!==0x0&&_0x21e35d!=null){let _0x189c46=_0x21e35d*Math['PI']/0xb4,_0x688171=Math[_0x4b676d(0x20b)](_0x189c46),_0x5e803f=Math[_0x4b676d(0x2d3)](_0x189c46),_0x37a533=_0x38a9f2/0x2,_0x28d355=_0x52c11d/0x2,_0x216f14=_0x259b74-_0x37a533,_0x445032=_0x39bb75-_0x28d355;_0x259b74=_0x37a533+_0x216f14*_0x688171-_0x445032*_0x5e803f,_0x39bb75=_0x28d355+_0x216f14*_0x5e803f+_0x445032*_0x688171;}_0x259b74+=_0xe4d350,_0x39bb75+=_0x5477e7;let _0x57478d=_0x204a57[_0x4b676d(0xfc)]/0xea60;_0x1162f9&&(_0x57478d=0xb4-_0x57478d),_0x3a78a6&&(_0x57478d=-_0x57478d),_0x57478d+=_0x21e35d||0x0,_0x57478d=(_0x57478d%0x168+0x168)%0x168;let _0x3fdf70=_0x202bf2({'left':_0xe4d350,'top':_0x5477e7,'width':_0x38a9f2,'height':_0x52c11d},_0x21e35d||0x0);return{'point':{'x':_0x259b74,'y':_0x39bb75},'angle':_0x57478d,'bounds':_0x3fdf70};}[_0xcb6cbb(0x288)](_0x83e341,_0x5116c1){const _0x1f0bf2=_0xcb6cbb;let _0x19ce13=_0x5116c1['x']-_0x83e341['x'],_0x1f14a8=_0x5116c1['y']-_0x83e341['y'];return Math['abs'](_0x19ce13)>=Math[_0x1f0bf2(0x1ab)](_0x1f14a8)?_0x19ce13>=0x0?0xb4:0x0:_0x1f14a8>=0x0?0x10e:0x5a;}[_0xcb6cbb(0x1cd)](){const _0xc3f090=_0xcb6cbb;this[_0xc3f090(0x2c1)]=void 0x0,this[_0xc3f090(0x2aa)]=void 0x0,this[_0xc3f090(0x13b)]=void 0x0,this[_0xc3f090(0x144)]();}[_0xcb6cbb(0x20e)](){const _0x71a8b5=_0xcb6cbb;this['_clearShapeConnectorHandlerObjects'](),super[_0x71a8b5(0x20e)]();}};Lr=Z([X(0x1,_0x3a72b1),X(0x2,_0x297a94),X(0x3,_0x5a1ed0),X(0x4,_0x1af83c),X(0x5,_0x25d6be(_0x231cef)),X(0x6,_0x25d6be(zn)),X(0x7,_0x25d6be(Pr))],Lr);let Rr=class extends _0x444b76{constructor(_0x5d9179,_0x432d65,_0x49b1f6){const _0x20b0ee=_0xcb6cbb;super(),this[_0x20b0ee(0x184)]=_0x5d9179,this[_0x20b0ee(0x1ad)]=_0x432d65,this[_0x20b0ee(0x2e8)]=_0x49b1f6,this['_initPrinting']();}['_initPrinting'](){const _0x52c93d=_0xcb6cbb;this['disposeWithMe'](this['_sheetPrintInterceptorService'][_0x52c93d(0xc8)][_0x52c93d(0x1e4)](this[_0x52c93d(0x184)]['interceptor'][_0x52c93d(0x283)]()[_0x52c93d(0x229)],{'handler':(_0x4e96e9,_0x1be76a,_0x579b18)=>{const _0x7d23f0=_0x52c93d;var _0x561861;let {unitId:_0x578bf8,subUnitId:_0x1353d0,scene:_0x409fc1,resourceCollector:_0x2d5595}=_0x1be76a,_0x380e50=(_0x561861=this[_0x7d23f0(0x1ad)]['getDrawingDataForUnit'](_0x578bf8))==null?void 0x0:_0x561861[_0x1353d0];return _0x380e50==null||_0x380e50[_0x7d23f0(0x273)][_0x7d23f0(0x26a)](_0x1064ec=>{const _0x270a2b=_0x7d23f0;let _0x25503f=_0x380e50[_0x270a2b(0x1d1)][_0x1064ec];_0x25503f[_0x270a2b(0x1c2)]===_0x55872c[_0x270a2b(0x1ce)]&&!_0x25503f[_0x270a2b(0x237)]&&this[_0x270a2b(0x2e8)][_0x270a2b(0x1f9)](_0x25503f,_0x409fc1,{'resourceCollector':_0x2d5595});}),_0x579b18(_0x4e96e9);}}));}};Rr=Z([X(0x0,_0x25d6be(_0x1c54e8)),X(0x1,_0x5a1ed0),X(0x2,_0x25d6be(Q))],Rr);let zr=class extends _0x444b76{constructor(_0x57f836,_0x4f42ae,_0x54c19a){const _0x5485fe=_0xcb6cbb;super(),this[_0x5485fe(0x300)]=_0x57f836,this[_0x5485fe(0x158)]=_0x4f42ae,this['_sheetPermissionCheckController']=_0x54c19a,this[_0x5485fe(0x2be)]();}[_0xcb6cbb(0x2be)](){const _0x47bc2c=_0xcb6cbb;this[_0x47bc2c(0x2d6)](this[_0x47bc2c(0x300)][_0x47bc2c(0x140)](_0x1e5e86=>{const _0x2f8c69=_0x47bc2c;let _0x15292f,_0x326f8b;if(_0x1e5e86['id']===_0x5268cc['id']||_0x1e5e86['id']===_0x28ec43['id']||_0x1e5e86['id']===_0x1ae360['id']){let _0x7180f=_0x1e5e86[_0x2f8c69(0x24d)];_0x15292f=_0x7180f[_0x2f8c69(0x241)],_0x326f8b=_0x7180f[_0x2f8c69(0x281)];}!_0x15292f||!_0x326f8b||this[_0x2f8c69(0x149)][_0x2f8c69(0x29f)]({'workbookTypes':[_0x3a8356],'worksheetTypes':[_0x521940]},_0x15292f,_0x326f8b)||this[_0x2f8c69(0x149)][_0x2f8c69(0x2b6)](this[_0x2f8c69(0x158)]['t'](_0x2f8c69(0x322)));}));}};zr=Z([X(0x0,_0x25d6be(_0x3a72b1)),X(0x1,_0x25d6be(_0x498c36)),X(0x2,_0x25d6be(_0x4bb7c3))],zr);let Br=class extends _0x444b76{constructor(_0x4f46c5,_0x623522,_0x33d5a6,_0x53e410,_0x53f906,_0x11204a,_0x54ef4b,_0x4de0c6,_0x167cf6,_0x4bb31,_0x201aa7){const _0x21fcbd=_0xcb6cbb;super(),this[_0x21fcbd(0x23f)]=_0x4f46c5,this[_0x21fcbd(0x19e)]=_0x623522,this[_0x21fcbd(0x254)]=_0x33d5a6,this['_sheetsShapeService']=_0x53e410,this[_0x21fcbd(0x158)]=_0x53f906,this[_0x21fcbd(0x300)]=_0x11204a,this['_drawingManagerService']=_0x54ef4b,this[_0x21fcbd(0x150)]=_0x4de0c6,this[_0x21fcbd(0x14f)]=_0x167cf6,this['_renderManagerService']=_0x4bb31,this[_0x21fcbd(0x161)]=_0x201aa7,Y(this,_0x21fcbd(0x17b),null),Y(this,'_activeShapeInfo',null),Y(this,_0x21fcbd(0x1a7),!0x1),Y(this,_0x21fcbd(0x1ff),0x0),Y(this,_0x21fcbd(0x190),new Set()),Y(this,_0x21fcbd(0x309),[]),this[_0x21fcbd(0x270)](),this[_0x21fcbd(0x2d6)](this[_0x21fcbd(0x23f)][_0x21fcbd(0x1e2)](_0x593ef9['UNIVER_SHEET'])['subscribe'](_0x39142e=>{const _0x1e2ad8=_0x21fcbd;if(!_0x39142e){var _0x59551e;(_0x59551e=this[_0x1e2ad8(0x17b)])==null||_0x59551e[_0x1e2ad8(0x20e)]();return;}this[_0x1e2ad8(0x1d0)](_0x39142e);})),this['_registerOperations'](),this['initShapePopupMenu'](),this[_0x21fcbd(0x2d6)](this[_0x21fcbd(0x161)][_0x21fcbd(0x1ac)][_0x21fcbd(0x2f7)](_0xb17033=>{const _0x402800=_0x21fcbd;_0xb17033&&this[_0x402800(0x1f1)]();}));}[_0xcb6cbb(0x270)](){this['_menuManagerService']['mergeMenu'](lr);}[_0xcb6cbb(0x2c6)](){const _0x5ab52=_0xcb6cbb;this['_univerInstanceService']['getAllUnitsForType'](_0x593ef9[_0x5ab52(0x298)])['forEach'](_0x1b3273=>this[_0x5ab52(0x1d0)](_0x1b3273));}[_0xcb6cbb(0x25c)](_0x2a245c,_0x5ba4f1,_0x5dd22d){const _0xf425ae=_0xcb6cbb;let _0x5bb3ed=this['_sheetsShapeService'][_0xf425ae(0x15a)](_0x2a245c,_0x5ba4f1,_0x5dd22d),_0x4f011a=this[_0xf425ae(0x287)][_0xf425ae(0xd4)](_0x2a245c,_0x5ba4f1,_0x5dd22d);return _0x5bb3ed!==void 0x0&&_0x4f011a!==void 0x0?{'shapeData':_0x4f011a,'shapeId':_0x5dd22d,'shapeType':_0x5bb3ed,'unitId':_0x2a245c,'subUnitId':_0x5ba4f1,'version':this[_0xf425ae(0x1ff)],'disableShapeOption':!0x1}:null;}[_0xcb6cbb(0x1d0)](_0x34805a){const _0x1d5847=_0xcb6cbb;if(!_0x34805a)return;let _0x18e705=_0x34805a[_0x1d5847(0x181)]();this[_0x1d5847(0x154)][_0x1d5847(0x1cf)](_0x18e705)&&!this['_initializedShapePopupMenu'][_0x1d5847(0x1cf)](_0x18e705)&&(this[_0x1d5847(0xf5)](_0x18e705),this['_initializedShapePopupMenu'][_0x1d5847(0x1b9)](_0x18e705));}['_clearPopups'](){const _0x276c56=_0xcb6cbb;this[_0x276c56(0x309)][_0x276c56(0x26a)](_0x28b2f5=>_0x28b2f5[_0x276c56(0x20e)]()),this[_0x276c56(0x309)][_0x276c56(0x25d)]=0x0;}[_0xcb6cbb(0xf5)](_0x3cf68e){const _0x13bb86=_0xcb6cbb;var _0x205569;let _0x234b15=(_0x205569=this[_0x13bb86(0x154)][_0x13bb86(0x133)](_0x3cf68e))==null?void 0x0:_0x205569[_0x13bb86(0x1f6)],_0x226c81=_0x234b15==null?void 0x0:_0x234b15['getTransformerByCreate']();!_0x234b15||!_0x226c81||(this[_0x13bb86(0x2d6)](_0x226c81[_0x13bb86(0x17e)][_0x13bb86(0x2f7)](()=>{const _0x4ab151=_0x13bb86;let _0x55a093=_0x226c81[_0x4ab151(0x108)]();if(this[_0x4ab151(0x1f1)](),this['_isOpenedShapeEditPanel']||_0x55a093[_0x4ab151(0x1e1)]>0x1)return;let _0x1a9459=_0x55a093[_0x4ab151(0x1c7)]()[_0x4ab151(0x152)]()[_0x4ab151(0x274)];if(!_0x1a9459)return;let _0xc69b8=this['_drawingManagerService'][_0x4ab151(0x2ab)](_0x1a9459[_0x4ab151(0x303)]);if(!_0xc69b8||_0xc69b8[_0x4ab151(0x1c2)]!==_0x55872c[_0x4ab151(0x1ce)])return;let {unitId:_0x1e3d98,subUnitId:_0x56e97b,drawingId:_0x853caa,drawingType:_0x154b4e}=_0xc69b8,_0x3fb1c2=this[_0x4ab151(0x25c)](_0x1e3d98,_0x56e97b,_0x853caa);if(!_0x3fb1c2)return;this[_0x4ab151(0x14f)]['setContextValue'](_0x5c6846,!0x0);let _0x130f70=this[_0x4ab151(0x150)]['attachPopupToObject'](_0x1a9459,{'componentKey':Wn,'direction':_0x4ab151(0x168),'offset':[0x0,_0x2a48ef],'extraProps':{'unitId':_0x1e3d98,'subUnitId':_0x56e97b,'drawingId':_0x853caa,'drawingType':_0x154b4e,'shapeType':_0x3fb1c2[_0x4ab151(0x312)],'shapeData':_0x3fb1c2[_0x4ab151(0x18a)]}});this[_0x4ab151(0x309)]['push'](this[_0x4ab151(0x2d6)](_0x130f70)),this[_0x4ab151(0x1ad)]['getFocusDrawings']()[_0x4ab151(0x2e5)](_0x157f8f=>_0x157f8f[_0x4ab151(0x241)]===_0x1e3d98&&_0x157f8f['subUnitId']===_0x56e97b&&_0x157f8f[_0x4ab151(0x10e)]===_0x853caa)||this[_0x4ab151(0x1ad)][_0x4ab151(0x257)]([{'unitId':_0x1e3d98,'subUnitId':_0x56e97b,'drawingId':_0x853caa}]);})),this[_0x13bb86(0x2d6)](_0x226c81[_0x13bb86(0x11a)]['subscribe'](()=>{const _0x4548a0=_0x13bb86;this['_clearPopups'](),this[_0x4548a0(0x14f)][_0x4548a0(0x1ea)](_0x5c6846,!0x1),this['_drawingManagerService'][_0x4548a0(0x257)](null);})),this[_0x13bb86(0x2d6)](_0x226c81[_0x13bb86(0x27e)][_0x13bb86(0x2f7)](()=>{const _0x181b93=_0x13bb86;this[_0x181b93(0x1f1)]();})),this[_0x13bb86(0x2d6)](_0x226c81[_0x13bb86(0x12d)][_0x13bb86(0x2f7)](()=>{const _0x296172=_0x13bb86;this[_0x296172(0x1f1)]();})));}['_registerOperations'](){const _0x4e2b36=_0xcb6cbb;this[_0x4e2b36(0x2d6)](this[_0x4e2b36(0x300)]['onCommandExecuted'](_0x5c87c7=>{const _0x291e3e=_0x4e2b36;if(_0x5c87c7['id']===pr['id']){let {unitId:_0x1e33d6,subUnitId:_0x4ff00d,drawingId:_0x5ac332}=_0x5c87c7[_0x291e3e(0x24d)];this['_shapeEditPanelVersion']+=0x1,this[_0x291e3e(0x305)]=this[_0x291e3e(0x25c)](_0x1e33d6,_0x4ff00d,_0x5ac332),this[_0x291e3e(0x1f1)](),this[_0x291e3e(0x2eb)]();}if(_0x5c87c7['id']===fr['id']&&(this[_0x291e3e(0x305)]=null,this[_0x291e3e(0x12e)]()),_0x5c87c7['id']===_0x528850['id']){let {unitId:_0x59fc02,subUnitId:_0x184f47,shapeId:_0x58765}=_0x5c87c7[_0x291e3e(0x24d)];if(this[_0x291e3e(0x305)]&&this[_0x291e3e(0x305)][_0x291e3e(0x124)]===_0x58765){let _0x433ed1=this[_0x291e3e(0x25c)](_0x59fc02,_0x184f47,_0x58765);_0x433ed1&&(this[_0x291e3e(0x1ff)]+=0x1,_0x433ed1[_0x291e3e(0x28a)]=this['_shapeEditPanelVersion'],this[_0x291e3e(0x305)]=_0x433ed1,this[_0x291e3e(0x1a7)]&&this[_0x291e3e(0x2eb)]());}}})),this[_0x4e2b36(0x2d6)](this[_0x4e2b36(0x1ad)][_0x4e2b36(0xed)]['subscribe'](_0x438be8=>{const _0x11db1b=_0x4e2b36;if(this[_0x11db1b(0x1a7)]===!0x1)return;if(_0x438be8[_0x11db1b(0x25d)]===0x0){this['_activeShapeInfo']=null,this['_closeShapeEditPanel']();return;}if(_0x438be8['length']===0x1&&_0x438be8[0x0][_0x11db1b(0x1c2)]===_0x55872c['DRAWING_SHAPE']&&(this['_shapeEditPanelVersion']+=0x1,this[_0x11db1b(0x305)]=this[_0x11db1b(0x25c)](_0x438be8[0x0]['unitId'],_0x438be8[0x0][_0x11db1b(0x281)],_0x438be8[0x0][_0x11db1b(0x10e)]),this[_0x11db1b(0x305)])){this[_0x11db1b(0x2eb)]();return;}let _0xfc87b2=_0x438be8['filter'](_0x5f495c=>_0x5f495c[_0x11db1b(0x1c2)]===_0x55872c[_0x11db1b(0x1ce)]);if(_0x438be8[_0x11db1b(0x25d)]>0x1&&_0xfc87b2[_0x11db1b(0x25d)]===_0x438be8[_0x11db1b(0x25d)]){if(this[_0x11db1b(0x1ff)]+=0x1,this['_activeShapeInfo']=this[_0x11db1b(0x25c)](_0x438be8[0x0][_0x11db1b(0x241)],_0x438be8[0x0][_0x11db1b(0x281)],_0x438be8[0x0][_0x11db1b(0x10e)]),this['_activeShapeInfo']){this[_0x11db1b(0x2eb)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x11db1b(0x25c)](_0x438be8[0x0][_0x11db1b(0x241)],_0x438be8[0x0][_0x11db1b(0x281)],_0x438be8[0x0][_0x11db1b(0x10e)]),this[_0x11db1b(0x305)]){this[_0x11db1b(0x305)][_0x11db1b(0x269)]=!0x0,this['_openShapeEditPanel']();return;}}this[_0x11db1b(0x12e)]();}));}[_0xcb6cbb(0x2eb)](){const _0x69541=_0xcb6cbb;this[_0x69541(0x305)]&&(this['_sidebarDisposable']=this[_0x69541(0x19e)]['open']({'id':Hn,'header':{'title':this[_0x69541(0x158)]['t'](_0x69541(0x323))},'width':0x184,'children':{'label':Hn,...this['_activeShapeInfo']},'onClose':()=>{const _0xeea0f2=_0x69541;this[_0xeea0f2(0x1ad)][_0xeea0f2(0x257)](null),this[_0xeea0f2(0x14f)][_0xeea0f2(0x1ea)](_0x5c6846,!0x1),this[_0xeea0f2(0x17b)]=null;}}),this[_0x69541(0x1a7)]=!0x0);}[_0xcb6cbb(0x12e)](){const _0x4ff757=_0xcb6cbb;this['_isOpenedShapeEditPanel']=!0x1,this[_0x4ff757(0x19e)][_0x4ff757(0x233)](Hn),this['_sidebarDisposable']=null,this['_contextService'][_0x4ff757(0x1ea)](_0x5c6846,!0x1),this[_0x4ff757(0x1ad)][_0x4ff757(0x257)](null);}};Br=Z([X(0x0,_0x1af83c),X(0x1,_0x25d6be(_0x4770b9)),X(0x2,_0x1aa6d4),X(0x3,_0x25d6be(_0x231cef)),X(0x4,_0x25d6be(_0x498c36)),X(0x5,_0x3a72b1),X(0x6,_0x5a1ed0),X(0x7,_0x25d6be(_0x38b394)),X(0x8,_0x34c0f6),X(0x9,_0x297a94),X(0xa,_0x25d6be(wr))],Br);let $=class extends _0x325a4b{constructor(_0x5b1933=mr,_0x37b5b5,_0x44069b,_0x2c0069,_0x42ce62){const _0x21191b=_0xcb6cbb;super(),this[_0x21191b(0x249)]=_0x5b1933,this[_0x21191b(0x248)]=_0x37b5b5,this['_commandService']=_0x44069b,this['_configService']=_0x2c0069,this[_0x21191b(0x154)]=_0x42ce62;let {..._0x48cc8f}=_0x5ed21a({},mr,this[_0x21191b(0x249)]);this[_0x21191b(0x295)][_0x21191b(0x255)](_0x21191b(0x2e7),_0x48cc8f),this[_0x21191b(0x116)]();}[_0xcb6cbb(0x232)](){const _0x785fa7=_0xcb6cbb;_0x1f2515(this[_0x785fa7(0x248)],[[Br],[jr],[Q],[Rr]]);}[_0xcb6cbb(0x18d)](){const _0x53bb23=_0xcb6cbb;this['_injector']['get'](Br)[_0x53bb23(0x2c6)]();}[_0xcb6cbb(0x14e)](){const _0x56f31e=_0xcb6cbb;[[Pr],[zn],[Fr]][_0x56f31e(0x26a)](_0x40404b=>this[_0x56f31e(0x248)][_0x56f31e(0x1b9)](_0x40404b)),_0x1f2515(this['_injector'],[[Fr],[zn]]),this['_renderManagerService'][_0x56f31e(0x286)](_0x593ef9[_0x56f31e(0x298)],[Pr]),this[_0x56f31e(0x154)][_0x56f31e(0x286)](_0x593ef9[_0x56f31e(0x298)],[Dr]),this[_0x56f31e(0x154)]['registerRenderModule'](_0x593ef9['UNIVER_SHEET'],[Lr]),this['_renderManagerService']['registerRenderModule'](_0x593ef9['UNIVER_SHEET'],[kr]),this[_0x56f31e(0x154)]['registerRenderModule'](_0x593ef9[_0x56f31e(0xb9)],[Ar]);}[_0xcb6cbb(0xd5)](){const _0x3ada53=_0xcb6cbb;this[_0x3ada53(0x248)][_0x3ada53(0x1b9)]([Er]),this['_injector']['get'](Er);let _0x4906f1=this[_0x3ada53(0x248)];[[Br],[jr],[Q],[Rr],[yr],[wr],[Or],[Jn],[zr]]['forEach'](_0x4a351b=>_0x4906f1[_0x3ada53(0x1b9)](_0x4a351b)),_0x1f2515(this[_0x3ada53(0x248)],[[Br],[jr],[Q],[yr],[wr],[Or],[Jn],[zr]]);}['_initCommands'](){const _0x2f5ddf=_0xcb6cbb;[Vn,An,fr,pr,qn,Bn][_0x2f5ddf(0x26a)](_0x4623c0=>this['disposeWithMe'](this[_0x2f5ddf(0x300)]['registerCommand'](_0x4623c0)));}};Y($,_0xcb6cbb(0x27b),_0x593ef9[_0xcb6cbb(0x298)]),Y($,_0xcb6cbb(0x117),_0xcb6cbb(0x2ba)),Y($,_0xcb6cbb(0x258),ur),Y($,_0xcb6cbb(0x28a),dr),$=Z([_0x4a9068(_0x573913,_0x449d42,_0x37224d,_0x1485ee,_0x4579a4,_0x5dd7ab,_0xd4f97b,_0x57144b,_0x2863d5,_0x4efd70,_0x56149f,_0x47b64b,_0x1d8391,_0x1ee45e),X(0x1,_0x25d6be(_0x3ca189)),X(0x2,_0x3a72b1),X(0x3,_0x7ad4a5),X(0x4,_0x297a94)],$);export{lr as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};
|