@univerjs-pro/sheets-shape-ui 1.0.0-alpha.5 → 1.0.0-alpha.7
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/controllers/sheet-shape-render.controller.d.ts +7 -1
- package/lib/types/view-model/drawing-shape.d.ts +7 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +19 -18
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1ed313=_0x2c6b;(function(_0x2bf277,_0xd8f8df){const _0x2ce914=_0x2c6b,_0x3f16a4=_0x2bf277();while(!![]){try{const _0x3f8fb9=-parseInt(_0x2ce914(0x1a9))/0x1+-parseInt(_0x2ce914(0x2de))/0x2*(parseInt(_0x2ce914(0x1e3))/0x3)+parseInt(_0x2ce914(0x212))/0x4+-parseInt(_0x2ce914(0x25b))/0x5*(parseInt(_0x2ce914(0x18a))/0x6)+parseInt(_0x2ce914(0x2fa))/0x7*(-parseInt(_0x2ce914(0xb9))/0x8)+parseInt(_0x2ce914(0x17f))/0x9*(-parseInt(_0x2ce914(0x9b))/0xa)+parseInt(_0x2ce914(0x144))/0xb*(parseInt(_0x2ce914(0x26c))/0xc);if(_0x3f8fb9===_0xd8f8df)break;else _0x3f16a4['push'](_0x3f16a4['shift']());}catch(_0x4df951){_0x3f16a4['push'](_0x3f16a4['shift']());}}}(_0x3808,0xed7d0));import{ComponentManager as _0x4540cf,IMenuManagerService as _0x496115,ISidebarService as _0x37253d,IconManager as _0x4df38c,MenuItemType as _0x235f66,RibbonInsertGroup as _0xb4efea,getMenuHiddenObservable as _0x53fb5c,useDependency as _0x19c54a,useObservable as _0x46233d}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x397de9,ImageSourceTypeEnum as _0x22d668,ShapeArrowSizeEnum as _0x56f02b,ShapeArrowTypeEnum as _0x374401,ShapeDefaultConfig as _0x42c7e9,ShapeFillEnum as _0x5c4d97,ShapeLineTypeEnum as _0x143b14,ShapeModel as _0x5ebb51,ShapeRenderModeEnum as _0x29001e,ShapeTypeEnum as _0x54d8d8,computeConnectorRouteLayout as _0x9e1c6d,getBasicShapeRotateBound as _0x3313a8,isConnectorShape as _0x5cb95b,isCurvedConnectorShape as _0x10e5ba,routeConnectorLineShape as _0x36ebbb}from'@univerjs-pro/engine-shape';import{SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x1fb431,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x4cb7b4,ShapeEditPanel as _0x4eff46,ShapeFloatingToolbar as _0x49830f,ShapeGroupEnum as _0x4cc531,ShapePickerDropdown as _0xa19501,ShapePickerPanel as _0x1afc0d,ShapeTextEditorContainer as _0x25c457,ShapeTextFloatMenuRenderControllerBase as _0x3bceb9,ShapeTextFloatToolbar as _0x2933dd,UniverShapeEditorUIPlugin as _0x343243,activateDrawingObject as _0x195857,buildShapeTextDataUpdate as _0x5d5024,clearActiveDrawingObjects as _0x1fa821,createShapeTextBoxShapeData as _0x4ccb02,getTextModel as _0x490101,getTextStyle as _0x1b3033,normalizeShapeTextModel as _0x20928e,plainShapeTextToDocumentData as _0x51a1a1,prepareShapeTextDocumentData as _0x40bc75,resolveShapeTextDocumentRenderLayout as _0xb1c89f,resolveShapeTextEditorBehaviorShapeData as _0x3841e9,resolveShapeTextEditorWrapStrategy as _0x384428,shouldAllowShapeTextEditorHostSizeShrink as _0x51d9f6,shouldClipShapeTextDocument as _0x17d6c9}from'@univerjs-pro/shape-editor-ui';import{InsertShapeCommand as _0x387a51,InsertSheetsShapeMutation as _0x32d1ef,RemoveSheetsShapeMutation as _0x1e03c8,SetShapeDrawingDataCommand as _0x5b49f8,SetSheetsShapeRotateCommand as _0x59e11d,SetSheetsShapeTextVerticalToggleCommand as _0x1b4149,SheetsShapeService as _0x5486d2,ToggleSheetsShapeFlipCommand as _0x1b9f94,UniverSheetsShapePlugin as _0x4dccc5,UpdateConnectorRelationCommand as _0x31e98d,UpdateLineShapeResizeCommand as _0x6953a0,UpdateSheetsShapeDataMutation as _0x44e25c}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x512ac4,CommandType as _0x5da788,DependentOn as _0x1f5803,Disposable as _0x17a082,DocumentDataModel as _0x208f5e,DrawingTypeEnum as _0x14c67a,FOCUSING_COMMON_DRAWINGS as _0x550431,FOCUSING_SHAPE_TEXT_EDITOR as _0x2d4bac,HorizontalAlign as _0x228a64,ICommandService as _0x2eaf9c,IConfigService as _0x111a3e,IContextService as _0x3bb4e2,IImageIoService as _0x698ad9,IURLImageService as _0x3a8a4e,IUndoRedoService as _0x4eb0bd,IUniverInstanceService as _0x57a3de,Inject as _0x697169,Injector as _0x264e1a,LocaleService as _0x3f505b,Plugin as _0xff4adf,UniverInstanceType as _0x35009f,VerticalAlign as _0x1167e7,createInternalEditorID as _0x483105,generateRandomId as _0x436dba,merge as _0x29cd84,toDisposable as _0x11cfa6,touchDependencies as _0x324bcf}from'@univerjs/core';import{CopySheetCommand as _0x4f0029,RemoveSheetCommand as _0x3a7e8b,SheetInterceptorService as _0x25edee,SheetPermissionCheckController as _0x383125,SheetSkeletonService as _0x567ef5,SheetsSelectionsService as _0x41bd2d,WorkbookEditablePermission as _0x5d5530,WorksheetEditPermission as _0x566e04,attachRangeWithCoord as _0x1144ca,discreteRangeToRange as _0x2500aa,getSheetCommandTarget as _0x50e622}from'@univerjs/sheets';import{IDrawingManagerService as _0x431f44,SetDrawingSelectedOperation as _0x1aab4d,getDrawingShapeKeyByDrawingSearch as _0x45a0e1}from'@univerjs/drawing';import{CURSOR_TYPE as _0x13f6e1,Circle as _0x103453,DRAWING_OBJECT_LAYER_INDEX as _0x72823c,DocumentSkeleton as _0x332624,DocumentViewModel as _0x410904,Documents as _0x3dba94,IRenderManagerService as _0x134053,Image as _0x1e018e,RENDER_CLASS_TYPE as _0x5b90d5,SHEET_VIEWPORT_KEY as _0x105d9a,Shape as _0x647470,Transform as _0x3c22dd,Vector2 as _0x38bc49}from'@univerjs/engine-render';import{COPY_TYPE as _0x2ec4f6,ISheetClipboardService as _0x3bf064,PREDEFINED_HOOK_NAME as _0x17c841,SheetCanvasPopManagerService as _0x55f451,SheetPrintInterceptorService as _0x3dd8e2,SheetScrollManagerService as _0x55a101,SheetSkeletonManagerService as _0x48e10a,deriveStateFromActiveSheet$ as _0x4019f7,getCurrentRangeDisable$ as _0x43fa83,getViewportByCell as _0x4b381d}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x4d090d,EMPTY as _0x269514,Observable as _0x339469,of as _0x3e45e3,switchMap as _0x324807}from'rxjs';import{DrawingCommonPanel as _0x409263,DrawingImageClipService as _0x388dc6,DrawingRenderService as _0x5dd75f,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x7090d9,OBJECT_LIST_FLOATING_SECTION_ID as _0x17ce12,ObjectListPanelBase as _0x429e7a,getCurrentUnitInfo as _0x4ca02b,getObjectListPanelLabels as _0xca058a,getObjectListPanelSectionIdForDrawingType as _0x5de67b,getObjectListPanelTypeName as _0x1831b0,insertGroupObject as _0x264793}from'@univerjs/drawing-ui';import{jsx as _0x1f4f7e,jsxs as _0x59f102}from'react/jsx-runtime';import{UniverLicensePlugin as _0x29e05d}from'@univerjs-pro/license';import{SheetDrawingAnchor as _0x343f35,SheetsDrawingGroupCopyPasteController as _0x590913,UniverSheetsDrawingUIPlugin as _0x3a7159}from'@univerjs/sheets-drawing-ui';import{CopyDoubleIcon as _0x2c6d5a}from'@univerjs/icons';import{DrawingApplyType as _0x12be8f,ISheetDrawingService as _0x513fd6,RemoveSheetDrawingCommand as _0x2f5460,SetDrawingApplyMutation as _0x39b433,SetDrawingArrangeCommand as _0x57e602,SetSheetDrawingCommand as _0x13c603,transformToAxisAlignPosition as _0x3bba80,transformToDrawingPosition as _0x2d6891}from'@univerjs/sheets-drawing';import{memo as _0x24849,useEffect as _0x4dc124,useMemo as _0x17b529,useReducer as _0xef9b53,useState as _0x10a6f0}from'react';import{DocSelectionManagerService as _0x43ba14}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x1a3594,DocSelectionRenderService as _0x4e140b}from'@univerjs/docs-ui';function un(_0x7ae852,_0x3b36e5){const _0xd91b9=_0x2c6b;let _0x5f35f7={};for(let _0x1dcf3f of Object[_0xd91b9(0xf4)](_0x3b36e5)){let _0x39ef7e=_0x3b36e5[_0x1dcf3f],_0x52e3bd=_0x7ae852[_0x1dcf3f];if(_0x39ef7e!==void 0x0){if(_0x52e3bd===void 0x0){_0x5f35f7[_0x1dcf3f]=void 0x0;continue;}typeof _0x39ef7e=='object'&&_0x39ef7e&&!Array['isArray'](_0x39ef7e)&&typeof _0x52e3bd==_0xd91b9(0x15a)&&_0x52e3bd&&!Array[_0xd91b9(0x20e)](_0x52e3bd)?_0x5f35f7[_0x1dcf3f]=un(_0x52e3bd,_0x39ef7e):_0x5f35f7[_0x1dcf3f]=_0x52e3bd;}}return _0x5f35f7;}const dn={'type':_0x5da788[_0x1ed313(0x2cb)],'id':_0x1ed313(0xf3),'handler':(_0x186f55,_0x26d4e9)=>{const _0x3091dc=_0x1ed313;let _0x3082e8=_0x186f55[_0x3091dc(0xbe)](_0x5486d2),{unitId:_0x5e2384,subUnitId:_0x373bf1,shapeType:_0x17180e,shapeId:_0x473e7d,shapeData:_0x483268,oldShapeJSON:_0x2e0e0f}=_0x26d4e9;if(!_0x3082e8[_0x3091dc(0x16c)](_0x5e2384,_0x373bf1,_0x473e7d))return!0x1;let _0x11602b=_0x186f55[_0x3091dc(0xbe)](_0x2eaf9c),_0x33206a=_0x186f55[_0x3091dc(0xbe)](_0x4eb0bd),{oldShapeType:_0x4256c1,oldShapeData:_0x28cbc3={}}=_0x2e0e0f,_0x1c9113=un(_0x28cbc3,_0x483268||{}),_0x1c6d53={'id':_0x44e25c['id'],'params':{'unitId':_0x5e2384,'subUnitId':_0x373bf1,'shapeId':_0x473e7d,'shapeType':_0x17180e,'shapeData':_0x483268}},_0x45baff={'id':_0x44e25c['id'],'params':{'unitId':_0x5e2384,'subUnitId':_0x373bf1,'shapeId':_0x473e7d,'shapeType':_0x4256c1,'shapeData':_0x1c9113}};return _0x11602b[_0x3091dc(0x218)](_0x1c6d53['id'],_0x1c6d53['params'])?(_0x33206a[_0x3091dc(0x2ee)]({'unitID':_0x5e2384,'undoMutations':[_0x45baff],'redoMutations':[_0x1c6d53]}),!0x0):!0x1;}};function fn(_0x1189ea,_0x4bea65,_0x399552,_0x1d4241,_0xd68144,_0x408b68){const _0x97d3dd=_0x1ed313;let _0x40eb86={'unitId':_0x4bea65,'subUnitId':_0x399552,'shapeId':_0x1d4241,'shapeData':_0x408b68,'oldShapeJSON':_0xd68144};return _0x1189ea[_0x97d3dd(0x12c)](dn['id'],_0x40eb86);}function pn(_0x441d24,_0xff591b,_0x36fc51,_0x3c9cbe,_0x42f392,_0x37db1c){const _0x382330=_0x1ed313;let _0x2421bd={'unitId':_0xff591b,'subUnitId':_0x36fc51,'shapeId':_0x3c9cbe,'shapeData':_0x37db1c,'oldShapeJSON':_0x42f392};return _0x441d24[_0x382330(0x12c)](dn['id'],_0x2421bd);}function mn(_0x38e634){'@babel/helpers - typeof';const _0x3d297f=_0x1ed313;return mn=typeof Symbol==_0x3d297f(0x100)&&typeof Symbol[_0x3d297f(0x2f3)]==_0x3d297f(0x266)?function(_0xa7c075){return typeof _0xa7c075;}:function(_0x21ffd2){const _0x2fc0e8=_0x3d297f;return _0x21ffd2&&typeof Symbol==_0x2fc0e8(0x100)&&_0x21ffd2[_0x2fc0e8(0x27a)]===Symbol&&_0x21ffd2!==Symbol[_0x2fc0e8(0x1c1)]?_0x2fc0e8(0x266):typeof _0x21ffd2;},mn(_0x38e634);}function hn(_0x59a796,_0x45ee22){const _0x1e62df=_0x1ed313;if(mn(_0x59a796)!=_0x1e62df(0x15a)||!_0x59a796)return _0x59a796;var _0x22185a=_0x59a796[Symbol[_0x1e62df(0x203)]];if(_0x22185a!==void 0x0){var _0x5679cd=_0x22185a[_0x1e62df(0x26a)](_0x59a796,_0x45ee22||'default');if(mn(_0x5679cd)!=_0x1e62df(0x15a))return _0x5679cd;throw TypeError(_0x1e62df(0x224));}return(_0x45ee22===_0x1e62df(0x273)?String:Number)(_0x59a796);}function _0x2c6b(_0x437d05,_0x19f129){_0x437d05=_0x437d05-0x9b;const _0x380833=_0x3808();let _0x2c6b0c=_0x380833[_0x437d05];return _0x2c6b0c;}function gn(_0xcd2c65){const _0x1e3839=_0x1ed313;var _0x2733f8=hn(_0xcd2c65,_0x1e3839(0x273));return mn(_0x2733f8)=='symbol'?_0x2733f8:_0x2733f8+'';}function q(_0x46f39b,_0x1a40b5,_0x4b207f){const _0x5852e8=_0x1ed313;return(_0x1a40b5=gn(_0x1a40b5))in _0x46f39b?Object[_0x5852e8(0xd7)](_0x46f39b,_0x1a40b5,{'value':_0x4b207f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46f39b[_0x1a40b5]=_0x4b207f,_0x46f39b;}function _n(_0x4db481,_0x14a1d7,_0x300e45){const _0x2d0263=_0x1ed313;var _0x23c54b;let _0x112e84=_0x3841e9(_0x4db481,{..._0x14a1d7,'dataModel':{...(_0x23c54b=_0x14a1d7[_0x2d0263(0x24d)])==null?{}:_0x23c54b,..._0x300e45?{'doc':_0x300e45}:null}}),_0x181fe4=_0x384428(_0x112e84);return{'clip':_0x17d6c9(_0x112e84,_0x181fe4),'wrapStrategy':_0x181fe4};}var vn=class extends _0x647470{constructor(_0x1c5faf,_0x2d09b1){const _0x5d03e4=_0x1ed313;super(_0x1c5faf,_0x2d09b1),q(this,_0x5d03e4(0x15c),void 0x0),q(this,_0x5d03e4(0x2d7),!0x0),q(this,_0x5d03e4(0x18f),_0x14c67a[_0x5d03e4(0x141)]),q(this,'isDrawingObject',!0x0),this['_props']={..._0x2d09b1},this[_0x5d03e4(0x215)]();}[_0x1ed313(0x215)](){const _0x5cda08=_0x1ed313;this[_0x5cda08(0x238)][_0x5cda08(0x226)](_0x1f3251=>{const _0xeef2a9=_0x5cda08;this[_0xeef2a9(0x1d7)](_0x1f3251);});}[_0x1ed313(0x27f)](_0x6ccef6){const _0x4012ed=_0x1ed313;this[_0x4012ed(0x15c)][_0x4012ed(0x13f)]=_0x6ccef6;}[_0x1ed313(0x148)](_0x9c18b9){const _0x14f291=_0x1ed313;this['_props'][_0x14f291(0x139)]=_0x9c18b9,this['makeDirty'](!0x0);}get[_0x1ed313(0xae)](){const _0x47e0ec=_0x1ed313;return this[_0x47e0ec(0x15c)][_0x47e0ec(0xae)];}get[_0x1ed313(0x210)](){const _0x35512a=_0x1ed313;return this[_0x35512a(0x15c)][_0x35512a(0x210)];}[_0x1ed313(0x1d7)](_0xd2f3bb){const _0x27270d=_0x1ed313;if(this[_0x27270d(0x15c)][_0x27270d(0x22d)]==null||!this['_transformCalculateSrcRect'])return;let {width:_0x26c919,height:_0x3e3d2b}=this,{width:_0x5c8646=0x0,height:_0x1493ea=0x0}=_0xd2f3bb[_0x27270d(0x105)],{left:_0x6f2795=0x0,top:_0x473215=0x0,right:_0x340a64=0x0,bottom:_0x2a023b=0x0}=this['_props'][_0x27270d(0x22d)],_0x331f27=_0x6f2795,_0x2ad028=_0x473215,_0x7d341=_0x340a64,_0x2a1686=_0x2a023b,_0x839000=!0x1;if(_0x5c8646!==0x0&&_0x5c8646!==_0x26c919){let _0x1e489a=_0x6f2795/_0x5c8646,_0x4105fa=_0x340a64/_0x5c8646;_0x331f27=_0x26c919*_0x1e489a,_0x7d341=_0x26c919*_0x4105fa,_0x839000=!0x0;}if(_0x1493ea!==0x0&&_0x1493ea!==_0x3e3d2b){let _0x32253d=_0x473215/_0x1493ea,_0x517ce5=_0x2a023b/_0x1493ea;_0x2ad028=_0x3e3d2b*_0x32253d,_0x2a1686=_0x3e3d2b*_0x517ce5,_0x839000=!0x0;}_0x839000&&this[_0x27270d(0x1c8)]({'left':_0x331f27,'top':_0x2ad028,'right':_0x7d341,'bottom':_0x2a1686});}[_0x1ed313(0x1c8)](_0x291925){const _0x85dcb5=_0x1ed313;this[_0x85dcb5(0x15c)]['srcRect']=_0x291925,this['makeDirty'](!0x0);}[_0x1ed313(0x1b2)](_0x417882){const _0x5cb4b7=_0x1ed313;this['_props']['image']=_0x417882,this[_0x5cb4b7(0x1b9)](!0x0);}set['transform'](_0x2ed863){const _0xc6fcba=_0x1ed313;this[_0xc6fcba(0x116)]=_0x2ed863;}get[_0x1ed313(0x131)](){const _0x5b3973=_0x1ed313;this[_0x5b3973(0x116)]||this['_setTransForm']();let _0x1f43fe=this[_0x5b3973(0x116)]['clone']();return this['transformForAngle'](_0x1f43fe);}get[_0x1ed313(0x1bf)](){const _0x3d454b=_0x1ed313;return this[_0x3d454b(0x15c)]['shapeModel'];}get[_0x1ed313(0x2ce)](){const _0x318943=_0x1ed313;return this['_props'][_0x318943(0x2ce)];}get[_0x1ed313(0xea)](){const _0x70e533=_0x1ed313;return _0x5b90d5[_0x70e533(0x2d3)];}[_0x1ed313(0x223)](_0x41d573,_0x3d204c,_0x560397,_0x5af0cb){const _0x17e7f5=_0x1ed313;let _0x18d8db=this['_props']['shapeModel'];if(!_0x18d8db||!_0x3d204c)return;let _0x5c1622=_0x560397==null?this[_0x17e7f5(0x2ed)]:_0x560397,_0x2eb969=_0x5af0cb==null?this[_0x17e7f5(0x24e)]:_0x5af0cb,_0x24df40={'shapeType':_0x18d8db['getShapeType'](),'width':_0x5c1622,'height':_0x2eb969},_0x4159d2={'renderMode':_0x29001e[_0x17e7f5(0x2ab)],'oKey':this[_0x17e7f5(0x183)],'image':this[_0x17e7f5(0x15c)]['image'],'angle':this['angle']};_0x18d8db[_0x17e7f5(0x127)](_0x24df40),_0x41d573[_0x17e7f5(0x10f)]();let _0x26d037={'top':0x0,'left':0x0,'width':_0x5c1622,'height':_0x2eb969};_0x18d8db['render'](_0x41d573,_0x26d037,_0x4159d2),_0x41d573[_0x17e7f5(0x277)]();let _0x8d2ecb=_0x18d8db['getShapeTextData'](),_0x3e681b=_0x18d8db['getShapeTextRect'](_0x26d037),_0x48804a=_0x18d8db[_0x17e7f5(0x1bc)]();if(_0x8d2ecb&&_0x3e681b&&!_0x48804a){_0x41d573[_0x17e7f5(0x10f)](),this[_0x17e7f5(0x2c4)]()[_0x17e7f5(0x14c)]&&_0x41d573['scale'](-0x1,0x1);let _0x57968f=_0x5c1622/0x2,_0x129237=_0x2eb969/0x2;_0x41d573[_0x17e7f5(0xaf)](-_0x57968f,-_0x129237),_0x41d573['beginPath'](),this['_drawShapeText'](_0x41d573,_0x8d2ecb,_0x3e681b),_0x41d573[_0x17e7f5(0x277)]();}}['getDrawingPoints'](_0x26a429){}[_0x1ed313(0x2b5)](_0x434412,_0x3cfa77,_0x170da3){const _0x7240f2=_0x1ed313;var _0x3ff04f;this[_0x7240f2(0x15c)][_0x7240f2(0x139)]||(!((_0x3ff04f=_0x3cfa77[_0x7240f2(0x24d)])!=null&&_0x3ff04f[_0x7240f2(0x9f)])&&_0x7240f2(0x2e3)in _0x3cfa77&&_0x3cfa77[_0x7240f2(0x2e3)]===!0x1?this['_drawSimpleText'](_0x434412,_0x3cfa77,_0x170da3):this[_0x7240f2(0x2b6)](_0x434412,_0x3cfa77,_0x170da3));}[_0x1ed313(0x9c)](_0x3d3d4b,_0x2ed9e1,_0x224b45){const _0x3af90f=_0x1ed313;var _0xadf0d4;this[_0x3af90f(0x2b6)](_0x3d3d4b,{..._0x2ed9e1,'text':(_0xadf0d4=_0x2ed9e1[_0x3af90f(0xe5)])==null?'':_0xadf0d4,'dataModel':{'doc':_0x51a1a1(_0x2ed9e1,_0x3af90f(0x115)+this[_0x3af90f(0x183)])}},_0x224b45);}['_drawRichText'](_0x399763,_0x5def65,_0x2974b4){const _0x55f1da=_0x1ed313;var _0x2dfb60,_0x847b6e;let _0x31f4db=this[_0x55f1da(0x15c)][_0x55f1da(0x11a)];if(!_0x5def65[_0x55f1da(0x24d)]||!_0x31f4db)return;let _0x1cb93e=_0x20928e(_0x5def65[_0x55f1da(0x24d)]);if(!_0x1cb93e)return;let _0x39b347=_0x1cb93e['doc'];if(!_0x39b347)return;let _0x296527=(_0x2dfb60=_0x1cb93e['va'])==null?_0x1167e7[_0x55f1da(0x186)]:_0x2dfb60,_0x2adff3=(_0x847b6e=_0x1cb93e['ha'])==null?_0x228a64[_0x55f1da(0x169)]:_0x847b6e,_0x296d77=_n(this['_props'][_0x55f1da(0x1bf)][_0x55f1da(0x11c)](),_0x5def65,_0x39b347),_0x17aaa7=_0x5def65[_0x55f1da(0x287)],_0x428453=new _0x208f5e(_0x40bc75(_0x39b347,{'isHorizontal':_0x17aaa7!==!0x1,'textRect':_0x2974b4,'verticalAlign':_0x296527,'horizontalAlign':_0x2adff3,'wrapStrategy':_0x296d77[_0x55f1da(0x23f)]})),_0x207512=new _0x410904(_0x428453),_0x285e9f=_0x332624['create'](_0x207512,_0x31f4db);_0x285e9f[_0x55f1da(0xe1)]();let _0x8e4399=_0x285e9f[_0x55f1da(0xcd)]()[_0x55f1da(0x196)],_0x22cd3d=_0xb1c89f({'contentHeight':_0x8e4399,'verticalAlign':_0x296527,'viewportHeight':_0x2974b4[_0x55f1da(0x24e)]});_0x428453[_0x55f1da(0xc7)]({'pageSize':{'width':_0x17aaa7===!0x1?_0x2974b4[_0x55f1da(0x24e)]:_0x2974b4[_0x55f1da(0x2ed)],'height':_0x22cd3d[_0x55f1da(0x1fb)]}}),_0x428453['updateDocumentDataMargin']({'t':_0x22cd3d[_0x55f1da(0x221)]}),_0x285e9f[_0x55f1da(0xe1)]();let _0x355ef3=new _0x3dba94(_0x55f1da(0x2d4)+this[_0x55f1da(0x183)],_0x285e9f,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x55f1da(0x1b9)](!0x0)});_0x355ef3[_0x55f1da(0xc2)](_0x2974b4[_0x55f1da(0x2ed)],_0x22cd3d[_0x55f1da(0x1fb)]),_0x399763[_0x55f1da(0x10f)](),_0x399763[_0x55f1da(0x216)](_0x2974b4[_0x55f1da(0x2a8)],_0x2974b4['top']),_0x296d77['clip']&&(_0x399763['beginPath'](),_0x399763[_0x55f1da(0x135)](0x0,_0x22cd3d[_0x55f1da(0xdd)],_0x2974b4[_0x55f1da(0x2ed)],_0x22cd3d[_0x55f1da(0x2cf)]),_0x399763[_0x55f1da(0x1a7)]()),_0x22cd3d['contentVerticalOffset']&&_0x399763['translateWithPrecision'](0x0,_0x22cd3d['contentVerticalOffset']),_0x355ef3[_0x55f1da(0xfe)](_0x399763),_0x399763[_0x55f1da(0x277)](),_0x355ef3[_0x55f1da(0x230)](),_0x285e9f[_0x55f1da(0x230)](),_0x207512['dispose'](),_0x428453[_0x55f1da(0x230)]();}[_0x1ed313(0xa8)](_0x32a62f,_0x43a235,_0x342fa5=!0x1){const _0xcb4313=_0x1ed313;if(!this[_0xcb4313(0x10b)])return this[_0xcb4313(0x1b9)](!0x1),this;let {width:_0x59aafa,height:_0x34a22c,left:_0x389c2d,top:_0x19a64d}=this,_0x29d4e2=this[_0xcb4313(0xa4)]();if(_0x59aafa=_0x29d4e2[_0xcb4313(0x2ed)],_0x34a22c=_0x29d4e2[_0xcb4313(0x24e)],_0x389c2d=_0x29d4e2[_0xcb4313(0x2a8)],_0x19a64d=_0x29d4e2[_0xcb4313(0x180)],this['isRender'](_0x43a235)){let {top:_0x38ed60,left:_0xcd3b81,bottom:_0x10f501,right:_0x18ece5}=_0x43a235['viewBound'];if(_0x59aafa+this['strokeWidth']+_0x389c2d<_0xcd3b81||_0x18ece5<_0x389c2d||_0x34a22c+this[_0xcb4313(0x2c9)]+_0x19a64d<_0x38ed60||_0x10f501<_0x19a64d)return this;}let _0x236610=_0x389c2d+_0x59aafa/0x2,_0x4228f5=_0x19a64d+_0x34a22c/0x2,_0x4824b6=this['transform'][_0xcb4313(0x21c)]();if(this[_0xcb4313(0x15c)][_0xcb4313(0x139)]){let _0x7b844=this[_0xcb4313(0x2c4)](),_0x2648c7=new _0x3c22dd();_0x2648c7[_0xcb4313(0x1e8)]({..._0x7b844}),_0x4824b6=_0x2648c7[_0xcb4313(0x21c)]();}return _0x32a62f[_0xcb4313(0x10f)](),this[_0xcb4313(0x15c)][_0xcb4313(0x1bf)]['isRenderLinePointsMode']===!0x0||_0x32a62f[_0xcb4313(0x131)](_0x4824b6[0x0],_0x4824b6[0x1],_0x4824b6[0x2],_0x4824b6[0x3],_0x236610,_0x4228f5),this[_0xcb4313(0x223)](_0x32a62f,_0x43a235,_0x59aafa,_0x34a22c),_0x32a62f[_0xcb4313(0x277)](),this[_0xcb4313(0x1b9)](!0x1),this;}[_0x1ed313(0x2c3)](_0x3b535d){const _0x5dc193=_0x1ed313;let {left:_0x442bab,top:_0x59691f,width:_0x1dad0c,height:_0x1596b2}=this[_0x5dc193(0xa4)](),_0x27a50b=this[_0x5dc193(0x131)][_0x5dc193(0x21c)](),_0x1c30de=_0x442bab+_0x1dad0c/0x2,_0x2c5433=_0x59691f+_0x1596b2/0x2,_0x970cee=new _0x3c22dd([_0x27a50b[0x0],_0x27a50b[0x1],_0x27a50b[0x2],_0x27a50b[0x3],_0x1c30de,_0x2c5433]),_0x2ea779=this[_0x5dc193(0x166)]();return(this['isInGroup']&&(_0x2ea779==null?void 0x0:_0x2ea779[_0x5dc193(0xea)])===_0x5b90d5['GROUP']?_0x2ea779[_0x5dc193(0x1a4)][_0x5dc193(0x18b)](_0x970cee):_0x970cee)[_0x5dc193(0x167)]()['applyPoint'](_0x3b535d);}[_0x1ed313(0xcb)](_0x2de181){const _0x5c889b=_0x1ed313;let {left:_0x505dd3,top:_0x5c06f9,width:_0x34091f,height:_0x35d609}=this[_0x5c889b(0xa4)](),_0x501239=_0x505dd3+_0x34091f/0x2,_0xa7ee35=_0x5c06f9+_0x35d609/0x2,_0x470ff6=this[_0x5c889b(0x131)][_0x5c889b(0x21c)](),_0x302ba7=new _0x3c22dd([_0x470ff6[0x0],_0x470ff6[0x1],_0x470ff6[0x2],_0x470ff6[0x3],_0x501239,_0xa7ee35]),_0xd76319=this[_0x5c889b(0x166)](),_0x1ddadc=(this[_0x5c889b(0x17a)]&&(_0xd76319==null?void 0x0:_0xd76319['classType'])===_0x5b90d5[_0x5c889b(0x2bb)]?_0xd76319[_0x5c889b(0x1a4)][_0x5c889b(0x18b)](_0x302ba7):_0x302ba7)[_0x5c889b(0x167)]()[_0x5c889b(0xc1)](_0x2de181),_0x24dcc7=_0x34091f/0x2,_0x2cbdda=_0x35d609/0x2,_0x49dca9=this[_0x5c889b(0x15c)][_0x5c889b(0x1bf)];return _0x49dca9&&_0x49dca9['isLineShape']()?_0x49dca9[_0x5c889b(0xef)](_0x1ddadc['x'],_0x1ddadc['y'],_0x34091f,_0x35d609):_0x1ddadc['x']>=-_0x24dcc7-this['strokeWidth']/0x2&&_0x1ddadc['x']<=_0x24dcc7+this[_0x5c889b(0x2c9)]/0x2&&_0x1ddadc['y']>=-_0x2cbdda-this[_0x5c889b(0x2c9)]/0x2&&_0x1ddadc['y']<=_0x2cbdda+this[_0x5c889b(0x2c9)]/0x2;}[_0x1ed313(0x230)](){const _0x4e4e7b=_0x1ed313;this[_0x4e4e7b(0x15c)]['shapeModel']=null,super['dispose']();}},yn=class extends _0x647470{constructor(_0x5edb00,_0x59bd77){const _0x343120=_0x1ed313;super(_0x5edb00,_0x59bd77),q(this,'_shapeId',null),q(this,_0x343120(0xf8),null),q(this,_0x343120(0x2a6),null),q(this,_0x343120(0x1ce),null),_0x59bd77&&this[_0x343120(0x27b)](_0x59bd77);}['getDrawingSearch'](){const _0x276728=_0x1ed313;return{'unitId':this[_0x276728(0x2a6)],'subUnitId':this['_subUnitId'],'drawingId':this['_shapeId']};}['setShapeProps'](_0x89a774){const _0x902ba5=_0x1ed313;_0x89a774[_0x902ba5(0x2ce)]!==void 0x0&&(this[_0x902ba5(0x13c)]=_0x89a774[_0x902ba5(0x2ce)]),_0x89a774['adjName']!==void 0x0&&(this[_0x902ba5(0xf8)]=_0x89a774[_0x902ba5(0x253)]),_0x89a774[_0x902ba5(0xae)]!==void 0x0&&(this[_0x902ba5(0x2a6)]=_0x89a774[_0x902ba5(0xae)]),_0x89a774['subUnitId']!==void 0x0&&(this[_0x902ba5(0x1ce)]=_0x89a774['subUnitId']),this[_0x902ba5(0x10e)]({'width':_0x89a774[_0x902ba5(0x2ed)],'height':_0x89a774['height']});}[_0x1ed313(0x223)](_0x2418b8){const _0x33152e=_0x1ed313;_0x103453[_0x33152e(0x2fb)](_0x2418b8,{'radius':_0x42c7e9[_0x33152e(0x204)],'fill':_0x42c7e9['adjHandleFill'],'stroke':_0x42c7e9[_0x33152e(0x1de)],'strokeWidth':0x1,'evented':!0x0});}};function J(_0x79e875,_0x52492f){return function(_0x8753f9,_0x287e6b){_0x52492f(_0x8753f9,_0x287e6b,_0x79e875);};}function Y(_0x47d619,_0x32336c,_0x1d9026,_0x158527){const _0x234b4e=_0x1ed313;var _0x19bc47=arguments[_0x234b4e(0x2b4)],_0x3c8a51=_0x19bc47<0x3?_0x32336c:_0x158527===null?_0x158527=Object[_0x234b4e(0x25d)](_0x32336c,_0x1d9026):_0x158527,_0x25645a;if(typeof Reflect==_0x234b4e(0x15a)&&typeof Reflect[_0x234b4e(0x269)]==_0x234b4e(0x100))_0x3c8a51=Reflect[_0x234b4e(0x269)](_0x47d619,_0x32336c,_0x1d9026,_0x158527);else{for(var _0x4ad8d8=_0x47d619[_0x234b4e(0x2b4)]-0x1;_0x4ad8d8>=0x0;_0x4ad8d8--)(_0x25645a=_0x47d619[_0x4ad8d8])&&(_0x3c8a51=(_0x19bc47<0x3?_0x25645a(_0x3c8a51):_0x19bc47>0x3?_0x25645a(_0x32336c,_0x1d9026,_0x3c8a51):_0x25645a(_0x32336c,_0x1d9026))||_0x3c8a51);}return _0x19bc47>0x3&&_0x3c8a51&&Object['defineProperty'](_0x32336c,_0x1d9026,_0x3c8a51),_0x3c8a51;}let X=class extends _0x17a082{constructor(_0x4bbc1c,_0x2434b9,_0x544dc0,_0x32dcec,_0x57d692){const _0x4c97a0=_0x1ed313;super(),this[_0x4c97a0(0x1b5)]=_0x4bbc1c,this[_0x4c97a0(0x219)]=_0x2434b9,this[_0x4c97a0(0x252)]=_0x544dc0,this[_0x4c97a0(0x2af)]=_0x32dcec,this[_0x4c97a0(0x15d)]=_0x57d692;}[_0x1ed313(0x2ec)](_0x2f6b3f,_0x218e3c,_0x43b3d3){const _0xdc899e=_0x1ed313;let {transform:_0x55211d,drawingType:_0x2e5c7a,srcRect:_0x408778,prstGeom:_0x2febe0,groupId:_0x138a10,unitId:_0x1f0020,subUnitId:_0x40ed32,drawingId:_0x29eb34,isMultiTransform:_0x4d4efe,transforms:_0x4af42f,hidden:_0x54e6d4,selectable:_0xb0f052}=_0x2f6b3f;if(_0x2e5c7a!==_0x14c67a[_0xdc899e(0x141)]||!this[_0xdc899e(0x1b5)][_0xdc899e(0x19d)]()||_0x55211d==null)return;let _0x2a95a6=this['_drawingManagerService']['getDrawingEditable']();_0x2a95a6&&_0x218e3c[_0xdc899e(0x15f)](_0x1fb431);let _0x135f7b=_0x4d4efe&&_0x4af42f?_0x4af42f:[_0x55211d],_0x3e3d4e=[];for(let _0xc6683b of _0x135f7b){let {left:_0x4c3634,top:_0x5b9f18,width:_0x170bca,height:_0x2f40d6,angle:_0x4387d9,flipX:_0x5eaf47,flipY:_0x42d233,skewX:_0x320fca,skewY:_0x9bdcfa}=_0xc6683b,_0x544f75=_0x135f7b['indexOf'](_0xc6683b),_0x12f43a=_0x45a0e1({'unitId':_0x1f0020,'subUnitId':_0x40ed32,'drawingId':_0x29eb34},_0x4d4efe?_0x544f75:void 0x0),_0x577cfd=_0x218e3c['getObjectIncludeInGroup'](_0x12f43a);if(_0x577cfd!=null){_0x577cfd[_0xdc899e(0x10e)]({'left':_0x4c3634,'top':_0x5b9f18,'width':_0x170bca,'height':_0x2f40d6,'angle':_0x4387d9,'flipX':_0x5eaf47,'flipY':_0x42d233,'skewX':_0x320fca,'skewY':_0x9bdcfa});continue;}let _0x396985=this[_0xdc899e(0x1b5)][_0xdc899e(0x1ee)](_0x1f0020,_0x40ed32),_0x581f2d=_0x396985[_0xdc899e(0x240)](_0x29eb34);if(_0x218e3c[_0xdc899e(0x2aa)](_0x12f43a)||!this[_0xdc899e(0x1b5)]['getDrawingVisible']())continue;let _0x1c9185=this[_0xdc899e(0x219)][_0xdc899e(0x16c)](_0x1f0020,_0x40ed32,_0x29eb34);if(!_0x1c9185)continue;let _0xf85cac=new vn(_0x12f43a,{..._0x5cb95b(_0x1c9185[_0xdc899e(0x1f1)]())?{..._0xc6683b,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0xc6683b},'zIndex':_0x581f2d===-0x1?_0x396985['length']-0x1:_0x581f2d,'shapeModel':_0x1c9185,'localeService':this[_0xdc899e(0x252)],'shapeId':_0x29eb34,'unitId':_0x1f0020,'subUnitId':_0x40ed32,'visible':_0x54e6d4!==!0x0,'evented':_0xb0f052!==!0x1});_0x218e3c[_0xdc899e(0x14d)](_0xf85cac,_0x72823c),_0x2a95a6&&_0x218e3c['attachTransformerTo'](_0xf85cac),_0x138a10&&_0x264793({'drawingId':_0x138a10,'unitId':_0x1f0020,'subUnitId':_0x40ed32},_0xf85cac,_0x218e3c,this[_0xdc899e(0x1b5)]),_0x2febe0!=null&&_0xf85cac[_0xdc899e(0x27f)](_0x2febe0),_0x408778!=null&&_0xf85cac['setSrcRect'](_0x408778);let _0x2f1026=this[_0xdc899e(0x1eb)](_0xf85cac,_0x1c9185[_0xdc899e(0x11c)]());if(_0x2f1026){var _0x544dd3;_0x43b3d3==null||(_0x544dd3=_0x43b3d3[_0xdc899e(0x110)])==null||_0x544dd3[_0xdc899e(0x12d)](_0x2f1026);}_0x3e3d4e[_0xdc899e(0x2b9)](_0xf85cac);}return _0x3e3d4e;}[_0x1ed313(0x1fc)](_0x5d30fb){const _0x267d09=_0x1ed313;let _0x22f41b=_0x5d30fb[_0x267d09(0x1bf)][_0x267d09(0x11c)](),_0xeee4ad=_0x22f41b[_0x267d09(0x16a)];if(!_0xeee4ad||_0xeee4ad[_0x267d09(0x228)]!==_0x5c4d97[_0x267d09(0x27c)]||!_0xeee4ad[_0x267d09(0x2da)]){_0x5d30fb[_0x267d09(0x1b2)](void 0x0);return;}this['_loadShapePictureFill'](_0x5d30fb,_0x22f41b);}[_0x1ed313(0x1eb)](_0x1988e5,_0x10a688){const _0x2392f5=_0x1ed313;var _0x3a8e87;let _0x3d5c57=_0x10a688['fill'];if(!_0x3d5c57||_0x3d5c57[_0x2392f5(0x228)]!==_0x5c4d97[_0x2392f5(0x27c)]||!_0x3d5c57[_0x2392f5(0x2da)])return;let _0x28bea0=_0x3d5c57['fillImageSource'],_0x260f22=(_0x3a8e87=_0x3d5c57[_0x2392f5(0x1cd)])==null?_0x22d668[_0x2392f5(0x1d1)]:_0x3a8e87,_0x1f9b21=this['_imageIoService'][_0x2392f5(0x200)](_0x28bea0,_0x260f22);if(_0x1f9b21){_0x1988e5['setFillImage'](_0x1f9b21);return;}return this[_0x2392f5(0xe4)](_0x1988e5,_0x28bea0,_0x260f22);}async['_loadAndSetImage'](_0x249c60,_0x5b5959,_0x31f01c){const _0x1c3b7e=_0x1ed313;let _0xd86b25;try{if(_0x31f01c===_0x22d668[_0x1c3b7e(0x2d1)])_0xd86b25=await this[_0x1c3b7e(0x2af)]['getImage'](_0x5b5959);else{if(_0x31f01c===_0x22d668[_0x1c3b7e(0x1d1)])try{_0xd86b25=await this[_0x1c3b7e(0x15d)][_0x1c3b7e(0x2df)](_0x5b5959);}catch{_0xd86b25=_0x5b5959;}else _0xd86b25=_0x5b5959;}}catch(_0x4dce52){console[_0x1c3b7e(0x140)](_0x1c3b7e(0x2ea),_0x4dce52);return;}await new Promise(_0x48b935=>{const _0xdc395d=_0x1c3b7e;let _0x5d8ee3=new window[(_0xdc395d(0x296))]();_0x5d8ee3[_0xdc395d(0x2dc)]=()=>{const _0x5c6411=_0xdc395d;this[_0x5c6411(0x2af)][_0x5c6411(0x289)](_0x5b5959,_0x31f01c,_0x5d8ee3),_0x249c60['setFillImage'](_0x5d8ee3),_0x48b935();},_0x5d8ee3[_0xdc395d(0x207)]=()=>{const _0x97a62f=_0xdc395d;console[_0x97a62f(0x140)](_0x97a62f(0x27e),_0x5b5959),_0x48b935();},_0x5d8ee3[_0xdc395d(0x1fd)]=_0xd86b25;});}};X=Y([J(0x0,_0x431f44),J(0x1,_0x697169(_0x5486d2)),J(0x2,_0x697169(_0x3f505b)),J(0x3,_0x698ad9),J(0x4,_0x3a8a4e)],X);let Z=class extends _0x17a082{constructor(_0x3243df,_0x134624,_0xd2aeee,_0x54e144,_0x276178,_0x4c12ec){const _0x46e5c8=_0x1ed313;super(),this[_0x46e5c8(0x1b5)]=_0x3243df,this[_0x46e5c8(0x219)]=_0x134624,this['_renderManagerService']=_0xd2aeee,this['_sheetDrawingShapeRenderController']=_0x54e144,this[_0x46e5c8(0x2a5)]=_0x276178,this[_0x46e5c8(0x1df)]=_0x4c12ec,q(this,_0x46e5c8(0x136),null),q(this,'_unitId',null),q(this,_0x46e5c8(0x1ce),null),q(this,'_activeShapeAdjustPointList',void 0x0),q(this,_0x46e5c8(0x121),[]),q(this,_0x46e5c8(0x250),0x0),q(this,_0x46e5c8(0x120),0x0),q(this,_0x46e5c8(0x179),0x0),q(this,_0x46e5c8(0x2e9),0x0),q(this,_0x46e5c8(0x1f6),!0x1),q(this,_0x46e5c8(0x14e),void 0x0),q(this,_0x46e5c8(0x25a),void 0x0),q(this,_0x46e5c8(0x236),void 0x0),q(this,_0x46e5c8(0x189),void 0x0),q(this,'_isShouldShowDrawingShapeAdjust',!0x1),this['_registerDrawingFocusChangeHandler'](),this[_0x46e5c8(0x2c1)]();}[_0x1ed313(0x162)](_0x58919d,_0x2c8ba7,_0x55a8d5){const _0x511050=_0x1ed313;let _0x2d2041=this[_0x511050(0x219)][_0x511050(0x16c)](_0x58919d,_0x2c8ba7,_0x55a8d5);if(_0x2d2041)return _0x2d2041['getDrawingPoints']();}[_0x1ed313(0x1f0)](){const _0x5a6492=_0x1ed313;this[_0x5a6492(0x28a)]();}[_0x1ed313(0x2e8)](){const _0x5599f0=_0x1ed313;this[_0x5599f0(0x1e2)](!0x0);}['setShouldShowAdjust'](_0x5b5516){const _0x489739=_0x1ed313;this[_0x489739(0xd6)]=_0x5b5516;}[_0x1ed313(0x1a6)](_0x1e0c06,_0x385f50,_0x2f409a,_0x3334e9){const _0x480c2f=_0x1ed313;let _0x5107b4=this['_sheetsShapeService'][_0x480c2f(0x16c)](_0x1e0c06,_0x385f50,_0x2f409a);if(_0x5107b4)return _0x5107b4[_0x480c2f(0x285)](_0x3334e9);}[_0x1ed313(0x14b)](_0x1b06bb=!0x1){const _0x389533=_0x1ed313;if(this[_0x389533(0x2a6)]===null||this[_0x389533(0x1ce)]===null||this['_activeShapeId']===null)return;let _0x12a7dd=this['_renderManagerService'][_0x389533(0x187)](this[_0x389533(0x2a6)]);if(!_0x12a7dd||!_0x12a7dd[_0x389533(0x1e4)](_0x48e10a)['getCurrentSkeleton']())return;let {scene:_0x1e1f63}=_0x12a7dd,_0x5b579e={'unitId':this[_0x389533(0x2a6)],'subUnitId':this[_0x389533(0x1ce)],'drawingId':this[_0x389533(0x136)]},_0x212199=this[_0x389533(0x1b5)][_0x389533(0x2fc)](_0x5b579e),{transform:_0x1e847a}=_0x212199;if(!_0x1e847a||_0x212199[_0x389533(0x1b7)]!==_0x14c67a['DRAWING_SHAPE'])return;let {left:_0x6c7ad3,top:_0x2d2214,width:_0xeb4fd4,height:_0x2b8ddf,flipX:_0x471369,flipY:_0x455e97,angle:_0x28e0d6=0x0}=_0x1e847a;if(_0x6c7ad3===void 0x0||_0x2d2214===void 0x0)return;_0x1b06bb&&(this['_activeShapeAdjustPointList']=this[_0x389533(0x162)](this[_0x389533(0x2a6)],this[_0x389533(0x1ce)],this[_0x389533(0x136)]));let _0x353f2b=this[_0x389533(0x1b8)];for(let _0x1b35e3=0x0;_0x1b35e3<_0x353f2b['length'];_0x1b35e3++){let _0x23ab72=_0x353f2b[_0x1b35e3],_0x3c0ae7=_0x23ab72['x'],_0x570fee=_0x23ab72['y'];if(_0x471369&&(_0x3c0ae7=(_0xeb4fd4||0x0)-_0x3c0ae7),_0x455e97&&(_0x570fee=(_0x2b8ddf||0x0)-_0x570fee),_0x28e0d6!==0x0){let _0xfa4168=(_0xeb4fd4||0x0)/0x2,_0x106459=(_0x2b8ddf||0x0)/0x2,_0x57e35a=_0x28e0d6*Math['PI']/0xb4,_0x9abc33=Math[_0x389533(0x23b)](_0x57e35a),_0x279647=Math[_0x389533(0x156)](_0x57e35a),_0x1d5fea=_0x3c0ae7-_0xfa4168,_0x46fece=_0x570fee-_0x106459;_0x3c0ae7=_0xfa4168+(_0x1d5fea*_0x9abc33-_0x46fece*_0x279647),_0x570fee=_0x106459+(_0x1d5fea*_0x279647+_0x46fece*_0x9abc33);}let _0x5c0a5a={'x':_0x3c0ae7,'y':_0x570fee,'adjName':_0x23ab72[_0x389533(0x253)]};this[_0x389533(0x2e1)](_0x1e1f63,_0x5c0a5a,_0x5c0a5a[_0x389533(0x253)],_0x6c7ad3,_0x2d2214,this[_0x389533(0x2a6)],this[_0x389533(0x1ce)]);}}[_0x1ed313(0x1e2)](_0x538684=!0x1){const _0x352b97=_0x1ed313;_0x538684&&(this[_0x352b97(0x28a)](),this['_createShapeAdjustControls'](_0x538684));}[_0x1ed313(0x2e1)](_0x209a4d,_0x26a3ae,_0x5326d7,_0x59647e,_0x1d31e1,_0x491226,_0x20e834){const _0x1326db=_0x1ed313;if(!this['_activeShapeId'])return;let _0x11b3ee=_0x209a4d['getObjectIncludeInGroup'](_0x1326db(0x2eb)+this[_0x1326db(0x136)]+'-'+_0x5326d7);if(_0x11b3ee){_0x11b3ee['transformByState']({'left':_0x26a3ae['x']+_0x59647e-_0x42c7e9[_0x1326db(0x204)],'top':_0x26a3ae['y']+_0x1d31e1-_0x42c7e9[_0x1326db(0x204)]});return;}let _0x53fb30={'left':_0x26a3ae['x']+_0x59647e-_0x42c7e9[_0x1326db(0x204)],'top':_0x26a3ae['y']+_0x1d31e1-_0x42c7e9['adjHandleSize'],'adjName':_0x5326d7,'shapeId':this['_activeShapeId'],'unitId':_0x491226,'subUnitId':_0x20e834,'width':_0x42c7e9[_0x1326db(0x204)]+0x8,'height':_0x42c7e9[_0x1326db(0x204)]+0x8,'zIndex':_0x72823c+0x1,'evented':!0x0},_0x2d0229=new yn(_0x1326db(0x2eb)+this[_0x1326db(0x136)]+'-'+_0x5326d7,_0x53fb30);this[_0x1326db(0x121)][_0x1326db(0x2b9)](_0x2d0229),this['_attachAdjustEvent'](_0x2d0229,_0x209a4d,_0x5326d7),_0x209a4d['addObject'](_0x2d0229,_0x72823c+0x1);}[_0x1ed313(0x28a)](){const _0x4720a4=_0x1ed313;this['_shapes'][_0x4720a4(0x2b4)]!==0x0&&(this[_0x4720a4(0x121)][_0x4720a4(0x190)](_0x5458dd=>{_0x5458dd['dispose']();}),this[_0x4720a4(0x121)]=[]);}[_0x1ed313(0x10c)](){this['_createShapeAdjustControls']();}[_0x1ed313(0x2d2)](_0x3bdcd5,_0x35b023){const _0xfd8318=_0x1ed313;var _0xef8831;let _0x548aed={'x':0x0,'y':0x0};if(!_0x3bdcd5||!_0x35b023)return _0x548aed;let _0x1de85a=this[_0xfd8318(0x15b)][_0xfd8318(0x187)](_0x3bdcd5);if(!_0x1de85a||!_0x1de85a[_0xfd8318(0x1e4)](_0x48e10a)[_0xfd8318(0xa9)](_0x35b023))return _0x548aed;let _0x4badf3=_0x1de85a['with'](_0x55a101),_0x358eaf=_0x4badf3==null?void 0x0:_0x4badf3[_0xfd8318(0x21a)]();if(!_0x358eaf)return _0x548aed;let _0x2a0e06=(_0xef8831=this[_0xfd8318(0x2a5)][_0xfd8318(0x25f)](_0x3bdcd5))==null?void 0x0:_0xef8831[_0xfd8318(0x129)](_0x35b023);if(!_0x2a0e06)return _0x548aed;let _0x45877f=_0x4b381d(_0x358eaf[_0xfd8318(0xf0)],_0x358eaf[_0xfd8318(0x103)],_0x1de85a['scene'],_0x2a0e06);return _0x45877f?{'x':_0x45877f['viewportScrollX'],'y':_0x45877f['viewportScrollY']}:_0x548aed;}[_0x1ed313(0x2e5)](_0x520a8b,_0xc23b1e){const _0x31db35=_0x1ed313;var _0x59213e,_0x5c6d9e;let _0x48f2a6=(_0x59213e=this[_0x31db35(0x2a5)][_0x31db35(0x25f)](_0x520a8b))==null?void 0x0:_0x59213e[_0x31db35(0x129)](_0xc23b1e);return(_0x5c6d9e=_0x48f2a6==null?void 0x0:_0x48f2a6[_0x31db35(0x138)]())==null?0x1:_0x5c6d9e;}['_attachAdjustEvent'](_0x36312c,_0x38f31a,_0x3fbae8){const _0x165982=_0x1ed313;this[_0x165982(0xf6)](_0x11cfa6(_0x36312c[_0x165982(0x1bb)]['subscribeEvent']((_0x3129f1,_0x372602)=>{const _0x1dd371=_0x165982;var _0x45d746,_0x4ad632,_0xe9c04f,_0x66d1e0;let _0x27e3df=_0x36312c['getDrawingSearch']();this['_activeAdjustInfo']=this[_0x1dd371(0x1a6)](_0x27e3df[_0x1dd371(0xae)],_0x27e3df[_0x1dd371(0x210)],_0x27e3df[_0x1dd371(0xb2)],_0x3fbae8),this[_0x1dd371(0x25a)]=this[_0x1dd371(0x219)][_0x1dd371(0x16c)](_0x27e3df[_0x1dd371(0xae)],_0x27e3df['subUnitId'],_0x27e3df[_0x1dd371(0xb2)]);let _0x24eba6=this[_0x1dd371(0x1b5)][_0x1dd371(0x2fc)]({'unitId':this[_0x1dd371(0x2a6)],'subUnitId':this[_0x1dd371(0x1ce)],'drawingId':this[_0x1dd371(0x136)]}),{transform:_0x233742}=_0x24eba6;if(_0x233742){let {left:_0x1f79cf,top:_0x31b598,width:_0x238b4b,height:_0x39b89b}=_0x233742;this['_baseShapeLeft']=_0x1f79cf||0x0,this[_0x1dd371(0x120)]=_0x31b598||0x0,this[_0x1dd371(0x179)]=_0x238b4b||0x0,this[_0x1dd371(0x2e9)]=_0x39b89b||0x0;}let _0x42c2da=!!((_0x45d746=_0x24eba6[_0x1dd371(0x131)])!=null&&_0x45d746[_0x1dd371(0x14c)]),_0x2d882f=!!((_0x4ad632=_0x24eba6['transform'])!=null&&_0x4ad632['flipY']),_0x104dd8=((_0xe9c04f=_0x24eba6[_0x1dd371(0x131)])==null?void 0x0:_0xe9c04f[_0x1dd371(0x2f1)])||0x0;this[_0x1dd371(0x1f6)]=!0x0,_0x38f31a[_0x1dd371(0x255)]();let _0x3bc4d2=(_0x66d1e0=this['_activeShapeModel'])==null?void 0x0:_0x66d1e0[_0x1dd371(0x202)](_0x3fbae8),_0x36dfce={[_0x3fbae8]:_0x3bc4d2};this[_0x1dd371(0x236)]=_0x38f31a[_0x1dd371(0xc6)][_0x1dd371(0x226)]((_0x596cdd,_0x4e79e0)=>{const _0x2612de=_0x1dd371;if(!this[_0x2612de(0x1f6)])return;let {offsetX:_0x3c5e6d,offsetY:_0xbb1095}=_0x596cdd,_0x5e9d14=this[_0x2612de(0x14e)];if(this[_0x2612de(0x25a)]&&_0x5e9d14){_0x38f31a[_0x2612de(0x255)](),_0x38f31a[_0x2612de(0xf7)](_0x13f6e1['CROSSHAIR']);let _0x2afed7={'left':0x0,'top':0x0,'width':this[_0x2612de(0x179)],'height':this[_0x2612de(0x2e9)]},_0x100ba0=this[_0x2612de(0x2d2)](this[_0x2612de(0x2a6)],this[_0x2612de(0x1ce)]),_0x34958f=this[_0x2612de(0x2e5)](this['_unitId'],this['_subUnitId']),_0x144a79=_0x3c5e6d/_0x34958f+_0x100ba0['x']-this[_0x2612de(0x250)],_0x1ca600=_0xbb1095/_0x34958f+_0x100ba0['y']-this[_0x2612de(0x120)];if(_0x104dd8!==0x0){let _0x5a645a=this[_0x2612de(0x179)]/0x2,_0x57a32b=this[_0x2612de(0x2e9)]/0x2,_0x2910a8=_0x104dd8*Math['PI']/0xb4,_0x11873a=Math[_0x2612de(0x23b)](_0x2910a8),_0x30a9ff=Math['sin'](_0x2910a8),_0x41d95a=_0x144a79-_0x5a645a,_0x32334b=_0x1ca600-_0x57a32b;_0x144a79=_0x5a645a+(_0x41d95a*_0x11873a+_0x32334b*_0x30a9ff),_0x1ca600=_0x57a32b+(-_0x41d95a*_0x30a9ff+_0x32334b*_0x11873a);}_0x42c2da&&(_0x144a79=this[_0x2612de(0x179)]-_0x144a79),_0x2d882f&&(_0x1ca600=this[_0x2612de(0x2e9)]-_0x1ca600);let _0x147a7f={'x':_0x144a79,'y':_0x1ca600},_0x2e09be=this[_0x2612de(0x25a)][_0x2612de(0x1ef)](_0x2afed7,_0x147a7f,_0x5e9d14,_0x42c2da,_0x2d882f),_0x1e8c8a=_0x5e9d14[_0x2612de(0xb4)]||_0x5e9d14[_0x2612de(0x293)]||_0x5e9d14['gdRefAng']||_0x5e9d14[_0x2612de(0x20f)];if(_0x1e8c8a===void 0x0)return;this[_0x2612de(0x25a)][_0x2612de(0x130)](_0x1e8c8a,_0x2e09be);let _0x14bfc7=this[_0x2612de(0x1b5)][_0x2612de(0x2fc)]({'unitId':_0x27e3df['unitId'],'subUnitId':_0x27e3df[_0x2612de(0x210)],'drawingId':_0x27e3df['drawingId']});_0x14bfc7&&(this[_0x2612de(0x1c4)][_0x2612de(0x2ec)](_0x14bfc7,_0x38f31a),this[_0x2612de(0x1b8)]=this[_0x2612de(0x162)](_0x27e3df[_0x2612de(0xae)],_0x27e3df[_0x2612de(0x210)],_0x27e3df['drawingId']),this[_0x2612de(0x10c)]());}_0x4e79e0['stopPropagation']();}),this[_0x1dd371(0x189)]=_0x38f31a[_0x1dd371(0x151)][_0x1dd371(0x226)]((_0x478937,_0x340dd8)=>{const _0x15386f=_0x1dd371;this[_0x15386f(0x236)][_0x15386f(0xcf)](),this['_adjHandlerPointerUp'][_0x15386f(0xcf)](),_0x38f31a[_0x15386f(0x17d)]();let _0x1f301d=this[_0x15386f(0x14e)];if(_0x1f301d){let _0x5729cc=_0x27e3df['unitId'],_0xcb23e1=_0x27e3df[_0x15386f(0x210)],_0x3cd85a=_0x27e3df['drawingId'],_0x192fda=_0x1f301d[_0x15386f(0xb4)]||_0x1f301d[_0x15386f(0x293)]||_0x1f301d[_0x15386f(0x2a1)]||_0x1f301d[_0x15386f(0x20f)];if(_0x192fda!==void 0x0){var _0x42552a;let _0x46d8ee=(_0x42552a=this['_activeShapeModel'])==null?void 0x0:_0x42552a['getAdjustValueByName'](_0x192fda);_0x46d8ee!==void 0x0&&fn(this[_0x15386f(0x1df)],_0x5729cc,_0xcb23e1,_0x3cd85a,{'oldShapeData':{'adjustValues':_0x36dfce}},{'adjustValues':{[_0x192fda]:_0x46d8ee}});}}this[_0x15386f(0x14e)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x15386f(0x1f6)]=!0x1,_0x340dd8[_0x15386f(0x1f3)](),_0x38f31a['enableObjectsEvent']();}),_0x372602[_0x1dd371(0x1f3)]();})));}[_0x1ed313(0x2c1)](){const _0x3ba931=_0x1ed313;let _0x51f435=this[_0x3ba931(0x2a5)][_0x3ba931(0xbd)](_0x35009f['UNIVER_SHEET']);this[_0x3ba931(0xf6)](_0x51f435[_0x3ba931(0x235)](_0x324807(_0x2b5328=>_0x2b5328?_0x2b5328[_0x3ba931(0xbb)]['pipe'](_0x324807(_0x70eeb3=>{const _0x8cf0a3=_0x3ba931;if(!_0x70eeb3)return _0x269514;let _0x2e4cd5=_0x2b5328[_0x8cf0a3(0x2e7)](),_0x1eb858=this[_0x8cf0a3(0x15b)][_0x8cf0a3(0x187)](_0x2e4cd5),_0x564d2f=_0x1eb858==null?void 0x0:_0x1eb858[_0x8cf0a3(0xdb)];return _0x564d2f?_0x3e45e3(_0x564d2f):_0x269514;})):_0x269514))['subscribe'](_0x34f02e=>{const _0x5672a3=_0x3ba931;let _0x11ec4f=_0x34f02e[_0x5672a3(0xdf)]();this[_0x5672a3(0xf6)](_0x34f02e[_0x5672a3(0xc6)][_0x5672a3(0x226)](()=>{const _0x1663f2=_0x5672a3;this[_0x1663f2(0xd6)];})),this[_0x5672a3(0xf6)](_0x11ec4f['changeStart$'][_0x5672a3(0x1f9)](_0xf6d486=>{const _0x2aeca7=_0x5672a3;let {objects:_0xdd1db4}=_0xf6d486;this['_createShapeAdjustControls'](),_0xdd1db4!==null&&_0xdd1db4[_0x2aeca7(0x134)]===0x1&&_0xdd1db4[_0x2aeca7(0x1ad)]()['next']()[_0x2aeca7(0xcc)]instanceof vn&&this[_0x2aeca7(0x280)](!0x0);})),this['disposeWithMe'](_0x11ec4f[_0x5672a3(0x194)][_0x5672a3(0x1f9)](()=>{const _0x1fb710=_0x5672a3;this[_0x1fb710(0xd6)]&&this[_0x1fb710(0x28a)]();})),this[_0x5672a3(0xf6)](_0x34f02e[_0x5672a3(0x151)][_0x5672a3(0x226)](()=>{const _0x28cab5=_0x5672a3;this[_0x28cab5(0xd6)]&&(this[_0x28cab5(0x280)](!0x1),this[_0x28cab5(0x14b)]());})),this['disposeWithMe'](_0x11ec4f['changeEnd$'][_0x5672a3(0x1f9)](()=>{const _0x2b91be=_0x5672a3;this[_0x2b91be(0x2a6)]&&this[_0x2b91be(0x1ce)]&&this['_activeShapeId']&&this[_0x2b91be(0x1b5)][_0x2b91be(0x2fc)]({'unitId':this['_unitId'],'subUnitId':this[_0x2b91be(0x1ce)],'drawingId':this['_activeShapeId']})&&(this[_0x2b91be(0x1b8)]=this[_0x2b91be(0x162)](this[_0x2b91be(0x2a6)],this['_subUnitId'],this[_0x2b91be(0x136)]),this[_0x2b91be(0x10c)]());}));}));}[_0x1ed313(0x17e)](){const _0x22b88c=_0x1ed313;this['disposeWithMe'](this[_0x22b88c(0x1b5)][_0x22b88c(0x243)][_0x22b88c(0x1f9)](_0x5d8411=>{const _0x25c4b7=_0x22b88c;if(_0x5d8411[_0x25c4b7(0x2b4)]===0x1){let _0x341f37=_0x5d8411[0x0];if(_0x341f37['drawingType']===_0x14c67a[_0x25c4b7(0x141)]){this[_0x25c4b7(0x136)]=_0x341f37['drawingId'];let {unitId:_0x4c3562,subUnitId:_0x2935cf}=_0x341f37;this['_activeShapeAdjustPointList']=this[_0x25c4b7(0x162)](_0x4c3562,_0x2935cf,this['_activeShapeId']),this[_0x25c4b7(0x2a6)]=_0x4c3562,this[_0x25c4b7(0x1ce)]=_0x2935cf,this[_0x25c4b7(0x28a)](),this[_0x25c4b7(0x14b)]();}else this[_0x25c4b7(0x136)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x25c4b7(0x2a6)]=null,this[_0x25c4b7(0x1ce)]=null,this['_clearShapeAdjustControls']();}(_0x5d8411[_0x25c4b7(0x2b4)]>0x1||_0x5d8411['length']===0x0)&&(this[_0x25c4b7(0x136)]=null,this[_0x25c4b7(0x1b8)]=void 0x0,this[_0x25c4b7(0x2a6)]=null,this[_0x25c4b7(0x1ce)]=null,this[_0x25c4b7(0x28a)]());})),this[_0x22b88c(0xf6)](this['_drawingManagerService']['update$']['subscribe'](_0x13af8f=>{const _0x2cdba5=_0x22b88c;if(_0x13af8f[_0x2cdba5(0x2b4)]===0x1){var _0xc04077;let _0x56ffe8=_0x13af8f[0x0];((_0xc04077=this[_0x2cdba5(0x1b5)][_0x2cdba5(0x2fc)](_0x56ffe8))==null?void 0x0:_0xc04077[_0x2cdba5(0x1b7)])===_0x14c67a[_0x2cdba5(0x141)]&&this[_0x2cdba5(0x1e2)](!0x0);}})),this[_0x22b88c(0xf6)](this[_0x22b88c(0x1b5)][_0x22b88c(0xd4)][_0x22b88c(0x1f9)](_0x5629af=>{const _0x3e062e=_0x22b88c;for(let _0x547518 of _0x5629af)this[_0x3e062e(0x136)]===_0x547518[_0x3e062e(0xb2)]&&(this[_0x3e062e(0x136)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x3e062e(0x2a6)]=null,this[_0x3e062e(0x1ce)]=null,this[_0x3e062e(0x28a)]());}));}};Z=Y([J(0x0,_0x431f44),J(0x1,_0x697169(_0x5486d2)),J(0x2,_0x697169(_0x134053)),J(0x3,_0x697169(X)),J(0x4,_0x57a3de),J(0x5,_0x2eaf9c)],Z);const bn={'id':_0x1ed313(0x281),'type':_0x5da788['OPERATION'],'handler':(_0x2e527d,_0x138656)=>{const _0x4f2231=_0x1ed313;let _0x349719=_0x2e527d[_0x4f2231(0xbe)](_0x431f44),_0x3cc704=_0x2e527d['get'](_0x134053),_0x3760e1=_0x2e527d[_0x4f2231(0xbe)](Z);if(_0x138656==null)return!0x0;if(_0x138656[_0x4f2231(0x2b4)]>0x0){var _0x100d8e;let _0x4e7ee1=(_0x100d8e=_0x3cc704['getRenderById'](_0x138656[0x0][_0x4f2231(0xae)]))==null?void 0x0:_0x100d8e[_0x4f2231(0xdb)];if(_0x4e7ee1){let {unitId:_0x3b9fdf,subUnitId:_0x5ac573,drawingId:_0x5e841a}=_0x138656[0x0],_0x59e802=_0x45a0e1({'unitId':_0x3b9fdf,'subUnitId':_0x5ac573,'drawingId':_0x5e841a},void 0x0),_0x140fa5=_0x4e7ee1[_0x4f2231(0x2aa)](_0x59e802);if(_0x140fa5){var _0x29ea90;(_0x29ea90=_0x3cc704[_0x4f2231(0x187)](_0x138656[0x0]['unitId']))==null||(_0x29ea90=_0x29ea90[_0x4f2231(0xdb)][_0x4f2231(0xfc)]())==null||_0x29ea90[_0x4f2231(0xe6)](_0x140fa5);}}_0x349719[_0x4f2231(0x1c6)](_0x138656),_0x3760e1['setShouldShowAdjust'](!0x1);}return!0x0;}},xn={'type':_0x5da788[_0x1ed313(0x2cb)],'id':_0x1ed313(0x297),'handler':async(_0x115016,_0xd38867)=>{const _0x57956b=_0x1ed313;let _0x5b90ba=_0x50e622(_0x115016['get'](_0x57a3de));if(!_0x5b90ba)return!0x1;let _0xf5e6d4=_0x115016[_0x57956b(0xbe)](_0x41bd2d)[_0x57956b(0x1dd)]();if(!_0xf5e6d4)return!0x1;let _0x21813c=_0x115016[_0x57956b(0xbe)](_0x2eaf9c),{unitId:_0x4e7f37,subUnitId:_0x5b00d0}=_0x5b90ba,{value:_0x5c9d60,enhanceParams:_0x2aa93d}=_0xd38867,{range:_0x80cff8}=_0xf5e6d4,_0x28ca00={'unitId':_0x4e7f37,'subUnitId':_0x5b00d0,'shapeType':_0x5c9d60,'range':_0x80cff8,'shapeId':_0x436dba()};if(_0x2aa93d){let _0x182225=_0x5cb95b(_0x5c9d60),_0x5dd755=_0x5c9d60===_0x54d8d8[_0x57956b(0x23d)];_0x182225&&(_0x2aa93d[_0x57956b(0x21f)]||_0x2aa93d[_0x57956b(0x123)])&&(_0x28ca00[_0x57956b(0x1c9)]={'ln':{'startArrow':_0x2aa93d[_0x57956b(0x21f)]?{'type':_0x374401[_0x57956b(0x28d)],'size':_0x56f02b['Medium']}:void 0x0,'endArrow':_0x2aa93d[_0x57956b(0x123)]?{'type':_0x374401[_0x57956b(0x28d)],'size':_0x56f02b[_0x57956b(0x193)]}:void 0x0}}),_0x5dd755&&(_0x2aa93d['horizontal']||_0x2aa93d['vertical'])&&(_0x28ca00[_0x57956b(0x1c9)]=_0x4ccb02({'fill':{'fillType':_0x5c4d97['SolidFill'],'color':'#FFFFFF'},'isHorizontal':!!_0x2aa93d[_0x57956b(0x239)],'stroke':{'lineStrokeType':_0x143b14[_0x57956b(0x245)],'width':0x1,'color':'#bcbcbc'}}));}let _0x1b259b=_0x21813c[_0x57956b(0x218)](_0x387a51['id'],_0x28ca00);return setTimeout(()=>{const _0x2f99aa=_0x57956b;_0x21813c[_0x2f99aa(0x12c)](bn['id'],[{'unitId':_0x4e7f37,'subUnitId':_0x5b00d0,'drawingId':_0x28ca00[_0x2f99aa(0x2ce)]}]);},0xc8),_0x1b259b;}},Sn=_0x1ed313(0xde),Cn='sheet.shape.object-list.panel',wn='sheet.shape.floating-toolbar',Tn=_0x483105(_0x1ed313(0x168)),En=_0x1ed313(0x12a),Dn={'id':'sheet.operation.open-shape-object-list-panel','type':_0x5da788[_0x1ed313(0x2cb)],'handler':(_0x11cf5f,_0x517830)=>{const _0x4e264d=_0x1ed313;let _0x3bd6c3=_0x11cf5f[_0x4e264d(0xbe)](_0x37253d),_0xa6502d=_0x11cf5f[_0x4e264d(0xbe)](_0x3f505b),_0xf727f8=_0x11cf5f[_0x4e264d(0xbe)](_0x57a3de),_0x51829f=_0x11cf5f[_0x4e264d(0xbe)](_0x2eaf9c);return _0x50e622(_0xf727f8)?(_0x517830==null?void 0x0:_0x517830[_0x4e264d(0xcc)])===_0x4e264d(0x234)?(_0x3bd6c3[_0x4e264d(0x234)](Cn),!0x0):(_0x3bd6c3[_0x4e264d(0x251)]({'id':Cn,'header':{'title':_0xa6502d['t'](_0x4e264d(0xb6))},'children':{'label':Cn},'onClose':()=>{const _0x3dd58c=_0x4e264d;_0x51829f[_0x3dd58c(0x218)](_0x1aab4d['id'],[]);},'width':0x168}),!0x0):!0x1;}};let Q=class extends _0x17a082{constructor(_0xf943ec,_0x291d3){const _0x483280=_0x1ed313;super(),this[_0x483280(0x1ca)]=_0xf943ec,this[_0x483280(0x1b5)]=_0x291d3,this[_0x483280(0x12f)](),this[_0x483280(0x1ca)][_0x483280(0x1a5)](!0x0),this[_0x483280(0xf6)]({'dispose':()=>this[_0x483280(0x1ca)][_0x483280(0x1a5)](!0x1)});}[_0x1ed313(0x12f)](){const _0x60512d=_0x1ed313;let _0x3efc03=this[_0x60512d(0x1ca)],_0x56f283=new Map(),_0x2ecddb=_0x3efc03[_0x60512d(0x118)]((_0x340988,_0x2b3218,_0xe8970,_0xd2ea00,_0xa94489)=>{const _0x20fc1d=_0x60512d;let _0x45ccf7=_0x2b3218;if(_0x45ccf7===_0x54d8d8['None']||_0x2b3218==='custom')return!0x1;try{let _0x4dfbd1=_0x56f283[_0x20fc1d(0xbe)](_0x2b3218);return _0x4dfbd1||(_0x4dfbd1=new _0x5ebb51(_0x45ccf7,_0x20fc1d(0x16d)+_0x2b3218),_0x56f283[_0x20fc1d(0x182)](_0x2b3218,_0x4dfbd1)),_0xa94489&&_0x4dfbd1[_0x20fc1d(0x2c8)]({'adjustValues':_0xa94489},!0x0),_0x4dfbd1[_0x20fc1d(0x127)]({'width':_0xe8970,'height':_0xd2ea00}),_0x4dfbd1[_0x20fc1d(0x23c)](_0x340988,{'left':0x0,'top':0x0,'width':_0xe8970,'height':_0xd2ea00});}catch{return!0x1;}});this[_0x60512d(0xf6)](_0x2ecddb),this['disposeWithMe']({'dispose':()=>_0x56f283['clear']()});}[_0x1ed313(0x119)](_0xc96ff2,_0x3c3e08,_0x10f83e,_0x23a830,_0x4d4bf0){const _0x305329=_0x1ed313;let _0x541a07=this[_0x305329(0x1b5)][_0x305329(0xed)](_0xc96ff2,_0x3c3e08);if(!_0x541a07[_0x10f83e])return;let _0x31d209={..._0x541a07[_0x10f83e],'prstGeom':_0x23a830,'adjustValues':_0x4d4bf0};this[_0x305329(0x1b5)][_0x305329(0x20b)]([_0x31d209]);}};Q=Y([J(0x0,_0x697169(_0x388dc6)),J(0x1,_0x697169(_0x431f44))],Q);const On=_0x1ed313(0xa5),kn=_0x1ed313(0x126);function An({onShapeClick:_0x5f60a6,excludeGroups:_0x14a9df}){const _0x3b3800=_0x1ed313;return _0x1f4f7e(_0x1afc0d,{'excludeGroups':_0x14a9df,'onShapeClick':_0x5f60a6,'scrollContainer':_0x3b3800(0xeb)});}function jn(){const _0x198dac=_0x1ed313;let _0x3f44ca=_0x19c54a(_0x431f44),_0x206efe=_0x19c54a(Q);return _0x1f4f7e(_0xa19501,{'buttonLabel':_0x198dac(0x27d),'excludeGroups':[_0x4cc531[_0x198dac(0x248)]],'onShapeClick':_0x2ebbf3=>{const _0x1bc8cd=_0x198dac;let _0x43b639=_0x3f44ca['getFocusDrawings']()[_0x1bc8cd(0xd8)](_0x461b49=>_0x461b49[_0x1bc8cd(0x1b7)]===_0x14c67a['DRAWING_IMAGE']);if(!_0x43b639)return;let {unitId:_0x34cbdc,subUnitId:_0x383a29,drawingId:_0x272602}=_0x43b639;_0x206efe['clipByShape'](_0x34cbdc,_0x383a29,_0x272602,_0x2ebbf3[_0x1bc8cd(0x2ef)]);}});}function Mn(){const _0x4b6e63=_0x1ed313;let _0x18ca68=_0x19c54a(_0x4540cf),_0x35ba4f=_0x19c54a(_0x431f44),_0x398b72=_0x19c54a(_0x57a3de),_0x2326cc=_0x35ba4f[_0x4b6e63(0x149)]()[0x0],_0x56e6b7=_0x2326cc?_0x398b72[_0x4b6e63(0x16b)](_0x2326cc[_0x4b6e63(0xae)]):void 0x0,_0x249ab7=_0x56e6b7===_0x35009f[_0x4b6e63(0x1ae)]?_0x4b6e63(0x227):_0x56e6b7===_0x35009f['UNIVER_SHEET']?kn:void 0x0,_0x32078f=_0x249ab7?_0x18ca68[_0x4b6e63(0xbe)](_0x249ab7):void 0x0;return _0x32078f?_0x1f4f7e(_0x32078f,{}):null;}function Nn(){let _0x5b2c5f=_0x19c54a(_0x2eaf9c);return _0x1f4f7e(An,{'onShapeClick':_0x35e521=>{const _0x300b1=_0x2c6b;_0x5b2c5f[_0x300b1(0x12c)](xn['id'],{'value':_0x35e521[_0x300b1(0x2ef)],'enhanceParams':{'endArrow':_0x35e521['endArrow'],'startArrow':_0x35e521[_0x300b1(0x21f)],'horizontal':_0x35e521[_0x300b1(0x239)],'vertical':_0x35e521[_0x300b1(0x2bc)]}});}});}function Pn(_0x113099){const _0x3ed8a5=_0x1ed313;let _0x14b82d=_0x113099[_0x3ed8a5(0xbe)](_0x57a3de);return{'id':xn['id'],'type':_0x235f66[_0x3ed8a5(0xdc)],'selections':[{'label':{'name':On,'hoverable':!0x1,'selectable':!0x1,'props':{'id':xn['id']}}}],'icon':_0x3ed8a5(0x231),'tooltip':_0x3ed8a5(0x278),'activated$':_0x4019f7(_0x14b82d,!0x1,()=>new _0x339469(_0x41802b=>{const _0x394c7e=_0x3ed8a5;_0x41802b[_0x394c7e(0x23e)](!0x1);})),'hidden$':_0x53fb5c(_0x113099,_0x35009f[_0x3ed8a5(0x26b)]),'disabled$':_0x43fa83(_0x113099)};}function Fn(_0x2f5a00){const _0x229492=_0x1ed313;let _0x250def=_0x2f5a00[_0x229492(0xbe)](_0x57a3de);return{'id':Dn['id'],'type':_0x235f66[_0x229492(0x241)],'icon':_0x229492(0x20a),'title':_0x229492(0x275),'tooltip':_0x229492(0x275),'activated$':_0x4019f7(_0x250def,!0x1,()=>new _0x339469(_0x54ff8e=>{_0x54ff8e['next'](!0x1);})),'hidden$':_0x53fb5c(_0x2f5a00,_0x35009f[_0x229492(0x26b)]),'disabled$':_0x43fa83(_0x2f5a00)};}const In={[_0xb4efea[_0x1ed313(0x155)]]:{[xn['id']]:{'order':0x4,'menuItemFactory':Pn},[Dn['id']]:{'order':4.1,'menuItemFactory':Fn}}};var Ln=_0x1ed313(0xbc),Rn=_0x1ed313(0x272);const zn={'type':_0x5da788['OPERATION'],'id':_0x1ed313(0x2c2),'handler'(){return!0x0;}},Bn={'type':_0x5da788['OPERATION'],'id':_0x1ed313(0x197),'handler'(){return!0x0;}},Vn={};function Hn(_0x43f6f8){const _0x1b4afa=_0x1ed313;return _0x43f6f8[_0x1b4afa(0x11d)]()||void 0x0;}function Un(_0x1cfa0e){const _0x5d7060=_0x1ed313;switch(_0x1cfa0e['drawingType']){case _0x14c67a['DRAWING_IMAGE']:return'image';case _0x14c67a[_0x5d7060(0x2f6)]:return _0x5d7060(0xe2);case _0x14c67a['DRAWING_TABLE']:return _0x5d7060(0x147);case _0x14c67a['DRAWING_SMART_ART']:return _0x5d7060(0x26d);case _0x14c67a['DRAWING_VIDEO']:return _0x5d7060(0x290);case _0x14c67a[_0x5d7060(0x201)]:return _0x5d7060(0x14f);case _0x14c67a[_0x5d7060(0x124)]:return'unit';case _0x14c67a[_0x5d7060(0x298)]:return'dom';case _0x14c67a[_0x5d7060(0x141)]:return _0x5d7060(0x178);default:return _0x5d7060(0x15a);}}function Wn(_0x5c2c0f,_0x36615d,_0x5decc8){const _0x5f58ca=_0x1ed313;var _0x1ca9a9;return((_0x1ca9a9=_0x5c2c0f[_0x5f58ca(0xda)])==null?void 0x0:_0x1ca9a9[_0x5f58ca(0x11d)]())||_0x1831b0(_0x5decc8,Un(_0x5c2c0f))+'\x20'+(_0x36615d+0x1);}function Gn(){const _0x1f9119=_0x1ed313;var _0x5d1aba,_0x1e0171,_0x47b67f,_0x3e0ce8;let _0x489aaf=_0x19c54a(_0x3f505b),_0x38c1a5=_0x19c54a(_0x2eaf9c),_0x13a966=_0x19c54a(_0x57a3de),_0x167b42=_0x19c54a(_0x513fd6),_0x57fa74=_0x19c54a(_0x431f44),_0x45e45a=_0x19c54a(_0x134053),[,_0x5ff737]=_0xef9b53(_0x40705b=>_0x40705b+0x1,0x0),_0x4ca1f4=_0x13a966[_0x1f9119(0x2b0)](_0x35009f[_0x1f9119(0x26b)]),_0x5f04cb=(_0x5d1aba=_0x4ca1f4==null?void 0x0:_0x4ca1f4['getUnitId']())==null?'':_0x5d1aba,_0xe618d5=(_0x1e0171=_0x4ca1f4==null||(_0x47b67f=_0x4ca1f4['getActiveSheet']())==null?void 0x0:_0x47b67f[_0x1f9119(0x1d0)]())==null?'':_0x1e0171,_0x1d4e83=_0x46233d(()=>_0x57fa74[_0x1f9119(0x243)],_0x57fa74[_0x1f9119(0x149)](),!0x1,[_0x57fa74]);_0x4dc124(()=>{const _0xfe3e79=_0x1f9119;let _0x506197=_0x38c1a5[_0xfe3e79(0x24c)](()=>_0x5ff737());return()=>_0x506197[_0xfe3e79(0x230)]();},[_0x38c1a5]);let _0x2f8ec0=_0x5f04cb&&_0xe618d5?_0x167b42[_0x1f9119(0xed)](_0x5f04cb,_0xe618d5):{},_0x5ad320=_0x5f04cb&&_0xe618d5?_0x167b42[_0x1f9119(0x1ee)](_0x5f04cb,_0xe618d5):[],_0x3cd10b=_0x17b529(()=>_0xca058a(_0x489aaf),[_0x489aaf]),_0x2c57ea=_0x17b529(()=>{const _0x2457ea=_0x1f9119;let _0x3920c0=_0x5ad320[_0x2457ea(0x1a2)](_0x555166=>_0x2f8ec0[_0x555166])['filter'](_0x176550=>!!_0x176550)[_0x2457ea(0x19b)](),_0x14e9b0=_0x3920c0['reduce']((_0x3177db,_0x58095d)=>(_0x3177db[_0x5de67b(_0x58095d[_0x2457ea(0x1b7)])]+=0x1,_0x3177db),{'canvas':0x0,'floating':0x0}),_0x3c3497={'canvas':0x0,'floating':0x0};return _0x3920c0[_0x2457ea(0x1a2)]((_0x1ee197,_0x5c8914)=>{const _0x367511=_0x2457ea;let _0x10ffd7=_0x5de67b(_0x1ee197[_0x367511(0x1b7)]),_0x335252=_0x10ffd7===_0x17ce12,_0x227bc7=_0x3c3497[_0x10ffd7]++;return{'id':_0x1ee197[_0x367511(0xb2)],'name':Wn(_0x1ee197,_0x5c8914,_0x489aaf),'description':_0x1ee197[_0x367511(0xb1)],'visible':_0x1ee197[_0x367511(0x220)]!==!0x0,'selectable':_0x1ee197[_0x367511(0x2f9)]!==!0x1,'sectionId':_0x10ffd7,'sectionTitle':_0x335252?_0x3cd10b[_0x367511(0x12b)]:_0x3cd10b['sectionCanvas'],'capabilities':_0x335252?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x335252&&_0x227bc7>0x0,'canMoveBackward':!_0x335252&&_0x227bc7<_0x14e9b0[_0x367511(0x246)]-0x1,'canReorder':!_0x335252};});},[_0x2f8ec0,_0x5ad320,_0x3cd10b[_0x1f9119(0xaa)],_0x3cd10b[_0x1f9119(0x12b)],_0x489aaf]),_0x243e50=_0x17b529(()=>(_0x1d4e83==null?[]:_0x1d4e83)['filter'](_0x483f25=>_0x483f25[_0x1f9119(0xae)]===_0x5f04cb&&_0x483f25[_0x1f9119(0x210)]===_0xe618d5)[_0x1f9119(0x1a2)](_0x2aee04=>_0x2aee04['drawingId']),[_0x1d4e83,_0xe618d5,_0x5f04cb]),_0x527a5a=(_0x3e0ce8=_0x243e50[_0x243e50['length']-0x1])==null?null:_0x3e0ce8,_0x1e9fb5=_0x2a5e66=>{const _0x2243dc=_0x1f9119;var _0x44a2c0;return(_0x44a2c0=_0x167b42[_0x2243dc(0x2fc)]({'unitId':_0x5f04cb,'subUnitId':_0xe618d5,'drawingId':_0x2a5e66}))==null?null:_0x44a2c0;},_0x346895=_0x196b3a=>{const _0x221617=_0x1f9119;!_0x5f04cb||!_0x196b3a[_0x221617(0x2b4)]||_0x38c1a5[_0x221617(0x12c)](_0x13c603['id'],{'unitId':_0x5f04cb,'drawings':_0x196b3a});},_0x31e274=(_0x13943c,_0x4fd897)=>{_0x1e9fb5(_0x13943c)&&_0x346895([{'unitId':_0x5f04cb,'subUnitId':_0xe618d5,'drawingId':_0x13943c,..._0x4fd897}]);},_0xf1ebfa=(_0x8db4a2,_0x42d4b0)=>{const _0xc72d08=_0x1f9119;if(!_0x5f04cb||!_0xe618d5)return;let _0x184c3a=_0x42d4b0?_0x243e50[_0xc72d08(0x152)](_0x8db4a2)?_0x243e50[_0xc72d08(0x205)](_0x36c8a0=>_0x36c8a0!==_0x8db4a2):[..._0x243e50,_0x8db4a2]:[_0x8db4a2];_0x38c1a5[_0xc72d08(0x218)](_0x1aab4d['id'],_0x184c3a[_0xc72d08(0x1a2)](_0x2f0ded=>({'unitId':_0x5f04cb,'subUnitId':_0xe618d5,'drawingId':_0x2f0ded})));let _0x461168=_0x184c3a[_0x184c3a[_0xc72d08(0x2b4)]-0x1];_0x461168?_0x195857(_0x45e45a,{'unitId':_0x5f04cb,'subUnitId':_0xe618d5,'drawingId':_0x461168}):_0x1fa821(_0x45e45a,_0x5f04cb);},_0x3d4aa2=(_0x333f4a,_0x7ad851)=>{const _0x2daecf=_0x1f9119;_0x346895(_0x333f4a[_0x2daecf(0x1a2)](_0x3d8539=>_0x1e9fb5(_0x3d8539))[_0x2daecf(0x205)](_0x40baaf=>!!_0x40baaf)['filter'](_0x3fb8eb=>_0x3fb8eb['hidden']!==!0x0!==_0x7ad851)[_0x2daecf(0x1a2)](_0xdad07b=>({'unitId':_0x5f04cb,'subUnitId':_0xe618d5,'drawingId':_0xdad07b[_0x2daecf(0xb2)],'hidden':!_0x7ad851})));},_0x528048=_0x44fad4=>{const _0x3b9a1e=_0x1f9119;let _0x351270=_0x1e9fb5(_0x44fad4);_0x351270&&_0x31e274(_0x44fad4,{'selectable':_0x351270[_0x3b9a1e(0x2f9)]===!0x1?void 0x0:!0x1});},_0xc606a=(_0x2df58e,_0x1f533b)=>{const _0x1c2e23=_0x1f9119;var _0x5adfc1,_0x4c207b;let _0x4b57a6=Hn(_0x1f533b);((_0x5adfc1=(_0x4c207b=_0x1e9fb5(_0x2df58e))==null?void 0x0:_0x4c207b[_0x1c2e23(0xda)])==null?void 0x0:_0x5adfc1)!==_0x4b57a6&&_0x31e274(_0x2df58e,{'name':_0x4b57a6});},_0x4dcb5f=(_0x890269,_0x37805a)=>{const _0x5acc21=_0x1f9119;var _0x2e4ef5,_0x275576;let _0x11d9f3=Hn(_0x37805a);((_0x2e4ef5=(_0x275576=_0x1e9fb5(_0x890269))==null?void 0x0:_0x275576[_0x5acc21(0xb1)])==null?void 0x0:_0x2e4ef5)!==_0x11d9f3&&_0x31e274(_0x890269,{'description':_0x11d9f3});},_0x188724=(_0x32c064,_0x4e7c8f)=>{const _0x1285f5=_0x1f9119;!_0x5f04cb||!_0xe618d5||_0x38c1a5[_0x1285f5(0x12c)](_0x57e602['id'],{'unitId':_0x5f04cb,'subUnitId':_0xe618d5,'drawingIds':[_0x32c064],'arrangeType':_0x4e7c8f});};return!_0x5f04cb||!_0xe618d5?_0x1f4f7e('div',{'className':_0x1f9119(0xba),'children':_0x3cd10b['title']}):_0x1f4f7e(_0x429e7a,{'items':_0x2c57ea,'selectedIds':_0x243e50,'focusedId':_0x527a5a,'labels':_0x3cd10b,'onSelect':_0xf1ebfa,'onSetVisible':_0x3d4aa2,'onCommitName':_0xc606a,'onCommitDescription':_0x4dcb5f,'onMoveForward':_0x2d41f0=>_0x188724(_0x2d41f0,_0x512ac4['forward']),'onMoveBackward':_0x55eb9d=>_0x188724(_0x55eb9d,_0x512ac4[_0x1f9119(0x125)]),'onToggleSelectable':_0x528048});}let Kn=class{constructor(_0x523568){const _0x86f128=_0x1ed313;this[_0x86f128(0x15b)]=_0x523568;}[_0x1ed313(0x19a)](_0x4151cd,_0x36bfc1){const _0x2dd117=_0x1ed313;let _0x2a9379=this[_0x2dd117(0x15b)][_0x2dd117(0x187)](_0x4151cd[_0x2dd117(0xae)]),_0x53590f=_0x2a9379==null?void 0x0:_0x2a9379[_0x2dd117(0xdb)];if(!_0x53590f)return;let _0x43e106=_0x45a0e1(_0x4151cd),_0x5a0dad=_0x53590f[_0x2dd117(0x2aa)](_0x43e106);_0x5a0dad==null||_0x5a0dad[_0x2dd117(0x1b2)](_0x36bfc1);}};Kn=Y([J(0x0,_0x134053)],Kn);function qn(){const _0x58f924=_0x1ed313;let _0x50d6fe=_0x19c54a(_0x431f44),_0x6a7531=_0x46233d(()=>_0x50d6fe['focus$'],_0x50d6fe[_0x58f924(0x149)](),!0x1,[_0x50d6fe]);return _0x6a7531[_0x58f924(0x2b4)]===0x0?null:_0x1f4f7e('div',{'children':_0x59f102(_0x58f924(0x1ff),{'className':_0x58f924(0xf2),'children':[_0x1f4f7e(_0x409263,{'drawings':_0x6a7531,'hasCropper':!0x1}),_0x1f4f7e(_0x343f35,{'drawings':_0x6a7531})]})});}function Jn(_0x1eaaa3){let {unitId:_0x52d4e8,subUnitId:_0x2b5788,shapeId:_0x5a355e}=_0x1eaaa3,_0x3e2539=_0x19c54a(_0x2eaf9c),_0x48a6be=_0x19c54a(Kn);return _0x1f4f7e(_0x4eff46,{..._0x1eaaa3,'positionEditor':_0x1f4f7e(qn,{}),'onUpdateShapeData':(_0x2eab2a,_0x210e82)=>{fn(_0x3e2539,_0x52d4e8,_0x2b5788,_0x5a355e,_0x2eab2a,_0x210e82);},'onUpdateLineShapeData':(_0xb9ba8b,_0x2ebea9)=>{pn(_0x3e2539,_0x52d4e8,_0x2b5788,_0x5a355e,_0xb9ba8b,_0x2ebea9);},'onUpdateShapeFillImage':_0x31ed6a=>{_0x48a6be['updateShapeFillImage']({'unitId':_0x52d4e8,'subUnitId':_0x2b5788,'drawingId':_0x5a355e},_0x31ed6a);}});}function Yn(_0x30c567){let _0x5d6601=_0x30c567['popup']['extraProps'];return _0x5d6601?_0x1f4f7e(Xn,{..._0x5d6601}):null;}function Xn(_0x1e9275){const _0x50135e=_0x1ed313;var _0x39f66c,_0x2d10df;let _0x3ae45b=_0x19c54a(_0x2eaf9c),_0x5977f0=_0x19c54a(_0x5486d2),{unitId:_0x211173,subUnitId:_0xc83696,drawingId:_0x4fd8d4,drawingType:_0x2c7ef7,shapeType:_0x33e0a2}=_0x1e9275,[_0x5e7863,_0x1d9c61]=_0x10a6f0(_0x1e9275[_0x50135e(0x1c9)]),_0x49802d=_0x17b529(()=>_0x1b3033(_0x5e7863),[_0x5e7863]),_0x10ebb5=_0x17b529(()=>_0x490101(_0x5e7863),[_0x5e7863]);_0x4dc124(()=>{const _0x31dd97=_0x50135e;let _0x538306=_0x3ae45b['onCommandExecuted'](_0x18051f=>{const _0x198f2f=_0x2c6b;if(_0x18051f['id']!==_0x44e25c['id'])return;let _0x44562b=_0x5977f0[_0x198f2f(0xc5)](_0x211173,_0xc83696,_0x4fd8d4);_0x44562b&&_0x1d9c61(_0x44562b);});return()=>_0x538306[_0x31dd97(0x230)]();},[_0x3ae45b,_0x4fd8d4,_0x5977f0,_0xc83696,_0x211173]);let _0x5cc0f=_0x2f8337=>{_0x1d9c61(_0x58d53b=>({..._0x58d53b,..._0x2f8337}));},_0x4c38d0=_0x407667=>{let _0x582e51=_0x5d5024(_0x5e7863,_0x407667);fn(_0x3ae45b,_0x211173,_0xc83696,_0x4fd8d4,{'oldShapeData':{'shapeText':_0x5e7863['shapeText']}},_0x582e51),_0x5cc0f(_0x582e51);};return _0x1f4f7e(_0x49830f,{'shapeData':_0x5e7863,'shapeType':_0x33e0a2,'textStyle':{'ff':_0x42c7e9[_0x50135e(0x176)][_0x50135e(0x28c)],'fs':_0x42c7e9['shapeText']['fontSize'],'cl':{'rgb':_0x42c7e9[_0x50135e(0x176)][_0x50135e(0x1ed)]},..._0x49802d},'textModel':_0x10ebb5?{'ha':(_0x39f66c=_0x10ebb5['ha'])==null?_0x228a64['LEFT']:_0x39f66c,'va':(_0x2d10df=_0x10ebb5['va'])==null?_0x1167e7['TOP']:_0x2d10df}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x42c7e9[_0x50135e(0x16a)],'defaultGradientEndColor':_0x42c7e9['gradientEndColor'],'defaultStrokeColor':_0x42c7e9[_0x50135e(0xd5)],'onUpdateShapeData':(_0x2cc252,_0x1d9afc)=>{fn(_0x3ae45b,_0x211173,_0xc83696,_0x4fd8d4,_0x2cc252,_0x1d9afc),_0x1d9afc&&_0x5cc0f(_0x1d9afc);},'onUpdateText':_0x4c38d0,'onOpenPanel':()=>{_0x3ae45b['executeCommand'](Bn['id'],{'unitId':_0x211173,'subUnitId':_0xc83696,'drawingId':_0x4fd8d4});},'onDelete':()=>{const _0x349ad3=_0x50135e;_0x3ae45b[_0x349ad3(0x12c)](_0x2f5460['id'],{'unitId':_0x211173,'drawings':[{'unitId':_0x211173,'subUnitId':_0xc83696,'drawingId':_0x4fd8d4,'drawingType':_0x2c7ef7}]});}});}var Zn=class extends _0x17a082{constructor(..._0x5d3080){const _0xe689f4=_0x1ed313;super(..._0x5d3080),q(this,_0xe689f4(0x104),new _0x4d090d(null)),q(this,_0xe689f4(0x1d6),this[_0xe689f4(0x104)][_0xe689f4(0x276)]()),q(this,_0xe689f4(0x2b3),new _0x4d090d(!0x1)),q(this,_0xe689f4(0x261),this[_0xe689f4(0x2b3)][_0xe689f4(0x276)]());}['dispose'](){const _0x3a373c=_0x1ed313;this['_editingParams$'][_0x3a373c(0x23e)](null),this[_0x3a373c(0x104)][_0x3a373c(0xee)](),this[_0x3a373c(0x2b3)]['next'](!0x1),this[_0x3a373c(0x2b3)][_0x3a373c(0xee)](),super[_0x3a373c(0x230)]();}[_0x1ed313(0x148)](_0x367cf9){const _0xcfe627=_0x1ed313;this['_editingParams$'][_0xcfe627(0x23e)](_0x367cf9),_0x367cf9==null&&this['_onSavingEditorData$']['next'](!0x1);}[_0x1ed313(0x213)](_0x24ef39){const _0x1db6da=_0x1ed313;this[_0x1db6da(0x2b3)][_0x1db6da(0x23e)](_0x24ef39);}[_0x1ed313(0x1bd)](){const _0x153590=_0x1ed313;return this[_0x153590(0x104)]['getValue']();}[_0x1ed313(0xce)](_0x313938){const _0x2b70e0=_0x1ed313;this[_0x2b70e0(0x1bd)]()&&(this[_0x2b70e0(0x213)](!0x0),requestAnimationFrame(()=>{const _0x468082=_0x2b70e0;this[_0x468082(0x148)](null);}));}['cancelEditing'](){const _0x4cbc65=_0x1ed313;this[_0x4cbc65(0x1bd)]()&&this[_0x4cbc65(0x148)](null);}};const Qn=_0x24849(()=>{const _0x378de5=_0x1ed313;let _0x512cc3=_0x19c54a(Zn),_0x235a2b=_0x19c54a(_0x5486d2),_0x5db045=_0x19c54a(_0x431f44),_0x5181af=_0x19c54a(_0x2eaf9c),_0x364934=_0x19c54a(_0x134053);return _0x1f4f7e(_0x25c457,{'adapter':_0x17b529(()=>({'getShapeModel':(_0x32044e,_0x5be0e5,_0x28b929)=>_0x235a2b[_0x378de5(0x16c)](_0x32044e,_0x5be0e5,_0x28b929),'getShapeData':(_0x227f22,_0xfab8d2,_0x4d0bff)=>_0x235a2b[_0x378de5(0xc5)](_0x227f22,_0xfab8d2,_0x4d0bff),'getDrawingTransform':(_0x1b5395,_0x420517,_0x50a204)=>{const _0x2778a5=_0x378de5;let _0x3fb175=_0x5db045['getDrawingByParam']({'unitId':_0x1b5395,'subUnitId':_0x420517,'drawingId':_0x50a204});return _0x3fb175==null?void 0x0:_0x3fb175[_0x2778a5(0x131)];},'updateShapeText':({unitId:_0x270e23,subUnitId:_0x101cb3,shapeId:_0x4b5514,shapeText:_0x509a24,oldShapeText:_0x4bc5c5})=>{const _0x14aa14=_0x378de5;_0x5181af[_0x14aa14(0x12c)](dn['id'],{'unitId':_0x270e23,'subUnitId':_0x101cb3,'shapeId':_0x4b5514,'shapeData':{'shapeText':_0x509a24},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x4bc5c5}}});},'updateHostSize':({unitId:_0x588fe5,subUnitId:_0x2dcbf8,shapeId:_0x3fcc0e,width:_0x1f1750,height:_0x275182})=>{const _0x332936=_0x378de5;var _0x33fa69,_0x164232,_0x33cc87;let _0x485cfa=_0x5db045[_0x332936(0x2fc)]({'unitId':_0x588fe5,'subUnitId':_0x2dcbf8,'drawingId':_0x3fcc0e}),_0x372b27=_0x485cfa==null?void 0x0:_0x485cfa[_0x332936(0x131)];if(!_0x485cfa||!_0x372b27)return;let _0x531487={..._0x372b27,'width':_0x1f1750,'height':_0x275182},_0x4207ec=(_0x33fa69=_0x364934[_0x332936(0x187)](_0x588fe5))==null||(_0x33fa69=_0x33fa69[_0x332936(0x1e4)](_0x48e10a)[_0x332936(0x242)](_0x2dcbf8))==null?void 0x0:_0x33fa69[_0x332936(0x184)],_0x562f62=_0x4207ec?(_0x164232=_0x2d6891(_0x531487,_0x4207ec))==null?_0x485cfa[_0x332936(0x270)]:_0x164232:_0x485cfa[_0x332936(0x270)],_0x3294d9=_0x4207ec?(_0x33cc87=_0x3bba80(_0x531487,_0x4207ec))==null?_0x485cfa[_0x332936(0x106)]:_0x33cc87:_0x485cfa[_0x332936(0x106)];_0x5181af[_0x332936(0x12c)](_0x13c603['id'],{'unitId':_0x588fe5,'drawings':[{..._0x485cfa,'transform':_0x531487,'sheetTransform':_0x562f62,'axisAlignSheetTransform':_0x3294d9}]});},'allowHostSizeShrink':({unitId:_0x3661a8,subUnitId:_0x4cafcd,shapeId:_0x146356})=>_0x51d9f6(_0x235a2b['getShapeDataById'](_0x3661a8,_0x4cafcd,_0x146356))}),[_0x5181af,_0x5db045,_0x364934,_0x235a2b]),'editingService':_0x512cc3,'editorUnitId':Tn,'positionOptions':_0x17b529(()=>({'viewportKeys':{'main':_0x105d9a[_0x378de5(0x274)],'leftTop':_0x105d9a['VIEW_MAIN_LEFT_TOP'],'top':_0x105d9a['VIEW_MAIN_TOP'],'left':_0x105d9a[_0x378de5(0x21e)]},'getSkeleton':(_0x308e97,_0x5eb02f)=>{const _0x1b7c3f=_0x378de5;var _0x25abeb,_0x1c6cfd;return(_0x25abeb=(_0x1c6cfd=_0x308e97[_0x1b7c3f(0x1e4)](_0x48e10a)[_0x1b7c3f(0x242)](_0x5eb02f['subUnitId']))==null?void 0x0:_0x1c6cfd['skeleton'])==null?null:_0x25abeb;}}),[])});});let $n=class extends _0x17a082{constructor(_0x4852f9,_0x43bd9c){const _0x509081=_0x1ed313;super(),this[_0x509081(0x2d9)]=_0x4852f9,this['_iconManager']=_0x43bd9c,this[_0x509081(0x233)](),this[_0x509081(0x2f2)]();}[_0x1ed313(0x233)](){const _0x54ab67=_0x1ed313;this['_iconManager'][_0x54ab67(0x122)](_0x54ab67(0x20a))||this[_0x54ab67(0xf6)](this[_0x54ab67(0xfb)][_0x54ab67(0x2ac)]({'CopyDoubleIcon':_0x2c6d5a}));}[_0x1ed313(0x2f2)](){const _0x22d516=_0x1ed313;this[_0x22d516(0xf6)](this[_0x22d516(0x2d9)]['register'](Sn,Jn)),this[_0x22d516(0xf6)](this['_componentManager']['register'](Cn,Gn)),this['disposeWithMe'](this[_0x22d516(0x2d9)][_0x22d516(0x2ac)](On,Nn)),this[_0x22d516(0xf6)](this['_componentManager'][_0x22d516(0x2ac)](kn,jn)),this['_componentManager'][_0x22d516(0xbe)](_0x7090d9)||this['disposeWithMe'](this[_0x22d516(0x2d9)][_0x22d516(0x2ac)](_0x7090d9,Mn)),this['disposeWithMe'](this[_0x22d516(0x2d9)][_0x22d516(0x2ac)](wn,Yn)),this[_0x22d516(0xf6)](this['_componentManager'][_0x22d516(0x2ac)](En,_0x2933dd)),this[_0x22d516(0xf6)](this[_0x22d516(0x2d9)][_0x22d516(0x2ac)](_0x22d516(0xa0),Qn));}};$n=Y([J(0x0,_0x697169(_0x4540cf)),J(0x1,_0x697169(_0x4df38c))],$n);let er=class extends _0x17a082{constructor(_0x4aeea1,_0x5b422f,_0x4ef9e4,_0x42b168,_0x278a21){const _0x360c4e=_0x1ed313;super(),this['_context']=_0x4aeea1,this[_0x360c4e(0x1b5)]=_0x5b422f,this[_0x360c4e(0x15b)]=_0x4ef9e4,this[_0x360c4e(0x2a5)]=_0x42b168,this[_0x360c4e(0x2f5)]=_0x278a21,q(this,_0x360c4e(0x195),null),q(this,_0x360c4e(0x2a6),null),q(this,_0x360c4e(0x1ce),null),q(this,_0x360c4e(0x108),void 0x0),q(this,_0x360c4e(0x121),[]),q(this,'_baseLeft',0x0),q(this,'_baseTop',0x0),q(this,_0x360c4e(0x1b4),0x0),q(this,'_baseHeight',0x0),q(this,_0x360c4e(0x1f6),!0x1),q(this,_0x360c4e(0x14e),void 0x0),q(this,_0x360c4e(0x25a),void 0x0),q(this,_0x360c4e(0x236),void 0x0),q(this,_0x360c4e(0x189),void 0x0),q(this,_0x360c4e(0x1b6),!0x1),this[_0x360c4e(0x188)](),this[_0x360c4e(0x150)]();}[_0x1ed313(0x1f0)](){const _0x3cee1a=_0x1ed313;this[_0x3cee1a(0x2bd)]();}[_0x1ed313(0x2e8)](){const _0x345568=_0x1ed313;this[_0x345568(0x2bd)](),this[_0x345568(0x1af)](!0x0);}[_0x1ed313(0x11f)](_0x931b5e,_0x490e12,_0x48cdb5,_0x23b4af){const _0xe1517b=_0x1ed313;let _0x14aa28=_0x931b5e;if(!(_0x14aa28===_0x54d8d8[_0xe1517b(0x13a)]||_0x931b5e==='custom'))try{let _0x4dc450=new _0x5ebb51(_0x14aa28,_0xe1517b(0x2a7)+_0x931b5e);return _0x23b4af&&_0x4dc450['setShapeData']({'adjustValues':_0x23b4af},!0x0),_0x4dc450[_0xe1517b(0x127)]({'width':_0x490e12,'height':_0x48cdb5}),_0x4dc450;}catch{return;}}['_getImageDrawingInfo'](_0x566ec0,_0x5a0c43,_0x1690e9){const _0x1aac5a=_0x1ed313;let _0x6c30b5={'unitId':_0x566ec0,'subUnitId':_0x5a0c43,'drawingId':_0x1690e9},_0x53f68a=this[_0x1aac5a(0x1b5)][_0x1aac5a(0x2fc)](_0x6c30b5);if(!(!_0x53f68a||_0x53f68a[_0x1aac5a(0x1b7)]!==_0x14c67a[_0x1aac5a(0xd9)]))return _0x53f68a;}[_0x1ed313(0x11e)](_0x371b9e,_0x13439b,_0x28a5e8){const _0x23773b=_0x1ed313;let _0x10b149=this[_0x23773b(0x15b)]['getRenderById'](_0x371b9e);if(!_0x10b149)return;let {scene:_0x4ce573}=_0x10b149,_0x378e03=_0x45a0e1({'unitId':_0x371b9e,'subUnitId':_0x13439b,'drawingId':_0x28a5e8}),_0x4ac1f1=_0x4ce573['getObject'](_0x378e03);if(_0x4ac1f1 instanceof _0x1e018e){let _0x22b580=_0x4ac1f1[_0x23773b(0x13f)];if(_0x22b580)return{'prstGeom':_0x22b580,'adjustValues':_0x4ac1f1[_0x23773b(0x1c3)]};}}[_0x1ed313(0x1af)](_0x13038a=!0x1){const _0x5b9a2a=_0x1ed313;if(!this[_0x5b9a2a(0x2a6)]||!this['_subUnitId']||!this[_0x5b9a2a(0x195)])return;let _0x10eec8=this[_0x5b9a2a(0x15b)][_0x5b9a2a(0x187)](this[_0x5b9a2a(0x2a6)]);if(!_0x10eec8||!_0x10eec8['with'](_0x48e10a)[_0x5b9a2a(0x13e)]())return;let {scene:_0xa731}=_0x10eec8,_0x1afa61=this['_getImageDrawingInfo'](this[_0x5b9a2a(0x2a6)],this['_subUnitId'],this['_activeImageId']);if(!_0x1afa61)return;let {transform:_0x365603}=_0x1afa61;if(!_0x365603)return;let {left:_0x2b3659,top:_0x670129,width:_0x4bc899,height:_0x27594b,flipX:_0x3ab1f7,flipY:_0x23139f,angle:_0x13ebfd=0x0}=_0x365603;if(_0x2b3659===void 0x0||_0x670129===void 0x0)return;let _0x5ddca8=this['_getImagePrstGeom'](this['_unitId'],this[_0x5b9a2a(0x1ce)],this[_0x5b9a2a(0x195)]);if(!_0x5ddca8)return;if(_0x13038a){let _0x42f953=this['_getOrCreateShapeModel'](_0x5ddca8['prstGeom'],_0x4bc899||0x0,_0x27594b||0x0,_0x5ddca8[_0x5b9a2a(0x206)]);if(!_0x42f953)return;this[_0x5b9a2a(0x108)]=_0x42f953['getDrawingPoints']();}let _0x16c850=this['_activeAdjustPointList'];if(!(!_0x16c850||_0x16c850[_0x5b9a2a(0x2b4)]===0x0))for(let _0x1b72a6=0x0;_0x1b72a6<_0x16c850[_0x5b9a2a(0x2b4)];_0x1b72a6++){let _0x18ee72=_0x16c850[_0x1b72a6],_0x49399c=_0x18ee72['x'],_0x58d15f=_0x18ee72['y'];if(_0x3ab1f7&&(_0x49399c=(_0x4bc899||0x0)-_0x49399c),_0x23139f&&(_0x58d15f=(_0x27594b||0x0)-_0x58d15f),_0x13ebfd!==0x0){let _0x451412=(_0x4bc899||0x0)/0x2,_0x223830=(_0x27594b||0x0)/0x2,_0x5d8221=_0x13ebfd*Math['PI']/0xb4,_0x229969=Math[_0x5b9a2a(0x23b)](_0x5d8221),_0x421ed3=Math[_0x5b9a2a(0x156)](_0x5d8221),_0x4ab8ee=_0x49399c-_0x451412,_0x2e66d4=_0x58d15f-_0x223830;_0x49399c=_0x451412+(_0x4ab8ee*_0x229969-_0x2e66d4*_0x421ed3),_0x58d15f=_0x223830+(_0x4ab8ee*_0x421ed3+_0x2e66d4*_0x229969);}let _0xb14329={'x':_0x49399c,'y':_0x58d15f,'adjName':_0x18ee72[_0x5b9a2a(0x253)]};this[_0x5b9a2a(0x19f)](_0xa731,_0xb14329,_0xb14329[_0x5b9a2a(0x253)],_0x2b3659,_0x670129,this[_0x5b9a2a(0x2a6)],this[_0x5b9a2a(0x1ce)]);}}[_0x1ed313(0x19f)](_0x53af57,_0x44ff84,_0x21239c,_0x443bfa,_0x550c69,_0x4ab133,_0x4831e5){const _0x4cf2f4=_0x1ed313;if(!this[_0x4cf2f4(0x195)])return;let _0x321a20='image-clip-adjust-point-'+this[_0x4cf2f4(0x195)]+'-'+_0x21239c,_0x25d0b6=_0x53af57['getObjectIncludeInGroup'](_0x321a20);if(_0x25d0b6){_0x25d0b6[_0x4cf2f4(0x10e)]({'left':_0x44ff84['x']+_0x443bfa-_0x42c7e9['adjHandleSize'],'top':_0x44ff84['y']+_0x550c69-_0x42c7e9['adjHandleSize']});return;}let _0x400e81=new yn(_0x321a20,{'left':_0x44ff84['x']+_0x443bfa-_0x42c7e9['adjHandleSize'],'top':_0x44ff84['y']+_0x550c69-_0x42c7e9[_0x4cf2f4(0x204)],'adjName':_0x21239c,'shapeId':this['_activeImageId'],'unitId':_0x4ab133,'subUnitId':_0x4831e5,'width':_0x42c7e9[_0x4cf2f4(0x204)]+0x8,'height':_0x42c7e9[_0x4cf2f4(0x204)]+0x8,'zIndex':_0x72823c+0x1,'evented':!0x0});this[_0x4cf2f4(0x121)]['push'](_0x400e81),this[_0x4cf2f4(0x217)](_0x400e81,_0x53af57,_0x21239c),_0x53af57[_0x4cf2f4(0x14d)](_0x400e81,_0x72823c+0x1);}[_0x1ed313(0x2bd)](){const _0x310b13=_0x1ed313;this[_0x310b13(0x121)]['length']!==0x0&&(this[_0x310b13(0x121)][_0x310b13(0x190)](_0x417ed8=>_0x417ed8[_0x310b13(0x230)]()),this['_shapes']=[]);}[_0x1ed313(0x2d2)](_0x414fdb,_0x3f2083){const _0x55f15a=_0x1ed313;var _0x196ce1;let _0x4db9ab={'x':0x0,'y':0x0},_0x292ad5=this['_renderManagerService'][_0x55f15a(0x187)](_0x414fdb);if(!_0x292ad5||!_0x292ad5[_0x55f15a(0x1e4)](_0x48e10a)[_0x55f15a(0xa9)](_0x3f2083))return _0x4db9ab;let _0x52f3ef=_0x292ad5[_0x55f15a(0x1e4)](_0x55a101),_0x10ad92=_0x52f3ef==null?void 0x0:_0x52f3ef[_0x55f15a(0x21a)]();if(!_0x10ad92)return _0x4db9ab;let _0x5c8a6a=(_0x196ce1=this[_0x55f15a(0x2a5)][_0x55f15a(0x25f)](_0x414fdb))==null?void 0x0:_0x196ce1[_0x55f15a(0x129)](_0x3f2083);if(!_0x5c8a6a)return _0x4db9ab;let _0x51a982=_0x4b381d(_0x10ad92[_0x55f15a(0xf0)],_0x10ad92[_0x55f15a(0x103)],_0x292ad5['scene'],_0x5c8a6a);return _0x51a982?{'x':_0x51a982['viewportScrollX'],'y':_0x51a982[_0x55f15a(0x1f2)]}:_0x4db9ab;}[_0x1ed313(0x2e5)](_0x6a39cd,_0x212d8a){const _0x1f5238=_0x1ed313;var _0x175bad,_0xbc33ee;let _0x883984=(_0x175bad=this['_univerInstanceService'][_0x1f5238(0x25f)](_0x6a39cd))==null?void 0x0:_0x175bad[_0x1f5238(0x129)](_0x212d8a);return(_0xbc33ee=_0x883984==null?void 0x0:_0x883984[_0x1f5238(0x138)]())==null?0x1:_0xbc33ee;}[_0x1ed313(0x217)](_0x2fc0e9,_0x16cf72,_0x2e47de){const _0x1769ab=_0x1ed313;this[_0x1769ab(0xf6)](_0x11cfa6(_0x2fc0e9[_0x1769ab(0x1bb)][_0x1769ab(0x226)]((_0x5f5c13,_0x51b258)=>{const _0x6407ef=_0x1769ab;var _0x310d69,_0x45ac3a,_0x2226d7;let {unitId:_0x5f5278,subUnitId:_0x172608,drawingId:_0x299c59}=_0x2fc0e9[_0x6407ef(0x249)](),_0x10d45f=this[_0x6407ef(0x29d)](_0x5f5278,_0x172608,_0x299c59);if(!(_0x10d45f!=null&&_0x10d45f['transform']))return;let {left:_0x1b10bd,top:_0x21fe6f,width:_0x36893f,height:_0x14ce63}=_0x10d45f['transform'];this[_0x6407ef(0x295)]=_0x1b10bd||0x0,this[_0x6407ef(0xc3)]=_0x21fe6f||0x0,this[_0x6407ef(0x1b4)]=_0x36893f||0x0,this[_0x6407ef(0x1b0)]=_0x14ce63||0x0;let _0x4b2f89=!!((_0x310d69=_0x10d45f[_0x6407ef(0x131)])!=null&&_0x310d69['flipX']),_0x1aa668=!!((_0x45ac3a=_0x10d45f[_0x6407ef(0x131)])!=null&&_0x45ac3a[_0x6407ef(0x209)]),_0x18e157=((_0x2226d7=_0x10d45f[_0x6407ef(0x131)])==null?void 0x0:_0x2226d7[_0x6407ef(0x2f1)])||0x0,_0x41e7bf=this['_getImagePrstGeom'](_0x5f5278,_0x172608,_0x299c59);if(!_0x41e7bf)return;let _0x2ce600=this[_0x6407ef(0x11f)](_0x41e7bf['prstGeom'],this[_0x6407ef(0x1b4)],this[_0x6407ef(0x1b0)],_0x41e7bf[_0x6407ef(0x206)]);if(!_0x2ce600||(this[_0x6407ef(0x25a)]=_0x2ce600,this['_activeAdjustInfo']=_0x2ce600[_0x6407ef(0x285)](_0x2e47de),!this[_0x6407ef(0x14e)]))return;this[_0x6407ef(0x1f6)]=!0x0,_0x16cf72[_0x6407ef(0x255)]();let _0x1696f3=_0x41e7bf['prstGeom'];this[_0x6407ef(0x236)]=_0x16cf72[_0x6407ef(0xc6)][_0x6407ef(0x226)]((_0x34041a,_0x5cf29c)=>{const _0x3b03cb=_0x6407ef;if(!this[_0x3b03cb(0x1f6)])return;let {offsetX:_0x5358af,offsetY:_0x394e03}=_0x34041a,_0x5ea536=this[_0x3b03cb(0x14e)];if(!this['_activeShapeModel']||!_0x5ea536)return;_0x16cf72[_0x3b03cb(0x255)](),_0x16cf72[_0x3b03cb(0xf7)](_0x13f6e1[_0x3b03cb(0x163)]);let _0x1dcf4b={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this['_baseHeight']},_0x3ded43=this[_0x3b03cb(0x2d2)](_0x5f5278,_0x172608),_0x38c70f=this[_0x3b03cb(0x2e5)](_0x5f5278,_0x172608),_0x30537f=_0x5358af/_0x38c70f+_0x3ded43['x']-this['_baseLeft'],_0x93c04a=_0x394e03/_0x38c70f+_0x3ded43['y']-this[_0x3b03cb(0xc3)];if(_0x18e157!==0x0){let _0x1b12ec=this['_baseWidth']/0x2,_0x57f192=this[_0x3b03cb(0x1b0)]/0x2,_0x1f9a62=_0x18e157*Math['PI']/0xb4,_0x56a661=Math['cos'](_0x1f9a62),_0x4c778f=Math['sin'](_0x1f9a62),_0x4257b6=_0x30537f-_0x1b12ec,_0x58d0b0=_0x93c04a-_0x57f192;_0x30537f=_0x1b12ec+(_0x4257b6*_0x56a661+_0x58d0b0*_0x4c778f),_0x93c04a=_0x57f192+(-_0x4257b6*_0x4c778f+_0x58d0b0*_0x56a661);}_0x4b2f89&&(_0x30537f=this[_0x3b03cb(0x1b4)]-_0x30537f),_0x1aa668&&(_0x93c04a=this[_0x3b03cb(0x1b0)]-_0x93c04a);let _0x2e6454=this[_0x3b03cb(0x25a)][_0x3b03cb(0x1ef)](_0x1dcf4b,{'x':_0x30537f,'y':_0x93c04a},_0x5ea536,_0x4b2f89,_0x1aa668),_0x2f2fe3=_0x5ea536[_0x3b03cb(0xb4)]||_0x5ea536[_0x3b03cb(0x293)]||_0x5ea536[_0x3b03cb(0x2a1)]||_0x5ea536[_0x3b03cb(0x20f)];_0x2f2fe3!==void 0x0&&(this[_0x3b03cb(0x25a)]['setAdjustValueByName'](_0x2f2fe3,_0x2e6454),this[_0x3b03cb(0x25a)]['updateContext']({'width':this['_baseWidth'],'height':this['_baseHeight']}),this['_updateImageAdjValues'](_0x5f5278,_0x172608,_0x299c59,_0x2f2fe3,_0x2e6454),this[_0x3b03cb(0x108)]=this[_0x3b03cb(0x25a)][_0x3b03cb(0x16e)](),this[_0x3b03cb(0x14e)]=this[_0x3b03cb(0x25a)]['getAdjustInfoByName'](_0x2e47de),this[_0x3b03cb(0x1af)](),_0x5cf29c[_0x3b03cb(0x1f3)]());}),this[_0x6407ef(0x189)]=_0x16cf72[_0x6407ef(0x151)][_0x6407ef(0x226)]((_0x43b4c7,_0x297a81)=>{const _0x398887=_0x6407ef;if(this[_0x398887(0x236)][_0x398887(0xcf)](),this['_adjHandlerPointerUp'][_0x398887(0xcf)](),_0x16cf72[_0x398887(0x17d)](),this[_0x398887(0x25a)]){let _0x342040=this[_0x398887(0x25a)][_0x398887(0x29e)](),_0x12e1d4={};for(let _0x303ae4 of _0x342040){let _0x4d4731=this['_activeShapeModel'][_0x398887(0x202)](_0x303ae4);_0x4d4731!==void 0x0&&(_0x12e1d4[_0x303ae4]=_0x4d4731);}this[_0x398887(0x2f5)]['clipByShape'](_0x5f5278,_0x172608,_0x299c59,_0x1696f3,_0x12e1d4);}this['_activeAdjustInfo']=void 0x0,this[_0x398887(0x25a)]=void 0x0,this[_0x398887(0x1f6)]=!0x1,_0x297a81[_0x398887(0x1f3)](),_0x16cf72[_0x398887(0x17c)]();}),_0x51b258[_0x6407ef(0x1f3)]();})));}[_0x1ed313(0x191)](_0x45288b,_0x18b1f8,_0x1f3803,_0xfbb3f7,_0x2faa2d){const _0x18c317=_0x1ed313;let _0x25cac1=this[_0x18c317(0x15b)][_0x18c317(0x187)](_0x45288b);if(!_0x25cac1)return;let {scene:_0x32e8cd}=_0x25cac1,_0x205925=_0x45a0e1({'unitId':_0x45288b,'subUnitId':_0x18b1f8,'drawingId':_0x1f3803}),_0xfaea16=_0x32e8cd[_0x18c317(0xb3)](_0x205925);if(_0xfaea16 instanceof _0x1e018e){var _0x5ec9c0;let _0x5be5ed=(_0x5ec9c0=_0xfaea16[_0x18c317(0x1c3)])==null?{}:_0x5ec9c0;_0xfaea16[_0x18c317(0x2e6)]({..._0x5be5ed,[_0xfbb3f7]:_0x2faa2d}),_0xfaea16[_0x18c317(0x1b9)](!0x0);}}['_registerMoveHandler'](){const _0x3fd9be=_0x1ed313;let _0x3efcc4=this[_0x3fd9be(0x2a5)]['getCurrentTypeOfUnit$'](_0x35009f[_0x3fd9be(0x26b)]);this['disposeWithMe'](_0x3efcc4['pipe'](_0x324807(_0x4ddd50=>_0x4ddd50?_0x4ddd50[_0x3fd9be(0xbb)][_0x3fd9be(0x235)](_0x324807(_0xa871a6=>{const _0x4e625d=_0x3fd9be;if(!_0xa871a6)return _0x269514;let _0x2a79e8=_0x4ddd50['getUnitId'](),_0xf47b10=this[_0x4e625d(0x15b)]['getRenderById'](_0x2a79e8),_0x187942=_0xf47b10==null?void 0x0:_0xf47b10[_0x4e625d(0xdb)];return _0x187942?_0x3e45e3(_0x187942):_0x269514;})):_0x269514))[_0x3fd9be(0x1f9)](_0xaaac8f=>{const _0x58162b=_0x3fd9be;let _0x5a87cd=_0xaaac8f[_0x58162b(0xdf)]();this[_0x58162b(0xf6)](_0xaaac8f[_0x58162b(0xc6)][_0x58162b(0x226)](()=>{const _0x3ac68c=_0x58162b;this['_isImagePointerDown']&&this[_0x3ac68c(0x2bd)]();})),this[_0x58162b(0xf6)](_0x5a87cd[_0x58162b(0x286)]['subscribe'](_0x85e2d5=>{const _0xacd75c=_0x58162b;let {objects:_0x5c8762}=_0x85e2d5;if(this['_createControls'](),_0x5c8762!==null&&_0x5c8762[_0xacd75c(0x134)]===0x1){let _0x343a81=_0x5c8762[_0xacd75c(0x1ad)]()[_0xacd75c(0x23e)]()['value'];_0x343a81 instanceof _0x1e018e&&_0x343a81['prstGeom']&&(this[_0xacd75c(0x1b6)]=!0x0);}})),this['disposeWithMe'](_0x5a87cd[_0x58162b(0x194)][_0x58162b(0x1f9)](()=>{const _0x4f8e9d=_0x58162b;this[_0x4f8e9d(0x1b6)]&&this[_0x4f8e9d(0x2bd)]();})),this[_0x58162b(0xf6)](_0xaaac8f[_0x58162b(0x151)]['subscribeEvent'](()=>{const _0xe2b27=_0x58162b;this[_0xe2b27(0x1b6)]&&(this[_0xe2b27(0x1b6)]=!0x1,this[_0xe2b27(0x1af)]());})),this[_0x58162b(0xf6)](_0x5a87cd[_0x58162b(0x1d4)][_0x58162b(0x1f9)](()=>{const _0x55044b=_0x58162b;if(this[_0x55044b(0x2a6)]&&this[_0x55044b(0x1ce)]&&this[_0x55044b(0x195)]){let _0x558263=this[_0x55044b(0x11e)](this[_0x55044b(0x2a6)],this[_0x55044b(0x1ce)],this[_0x55044b(0x195)]);if(_0x558263){var _0x2ee453,_0x30f603;let _0x17fc53=this[_0x55044b(0x29d)](this[_0x55044b(0x2a6)],this[_0x55044b(0x1ce)],this['_activeImageId']),_0x4ac912=(_0x17fc53==null||(_0x2ee453=_0x17fc53['transform'])==null?void 0x0:_0x2ee453[_0x55044b(0x2ed)])||0x0,_0x5e06ca=(_0x17fc53==null||(_0x30f603=_0x17fc53[_0x55044b(0x131)])==null?void 0x0:_0x30f603[_0x55044b(0x24e)])||0x0,_0x29fbb5=this['_getOrCreateShapeModel'](_0x558263['prstGeom'],_0x4ac912,_0x5e06ca,_0x558263['adjustValues']);_0x29fbb5&&(this[_0x55044b(0x108)]=_0x29fbb5[_0x55044b(0x16e)](),this[_0x55044b(0x2bd)](),this[_0x55044b(0x1af)](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x39731c=_0x1ed313;this[_0x39731c(0xf6)](this['_drawingManagerService']['focus$'][_0x39731c(0x1f9)](_0x294697=>{const _0x530b73=_0x39731c;if(_0x294697[_0x530b73(0x2b4)]===0x1){let _0x4fbb7d=_0x294697[0x0];if(_0x4fbb7d[_0x530b73(0x1b7)]===_0x14c67a['DRAWING_IMAGE']){let {unitId:_0x14cc54,subUnitId:_0x96cb2e,drawingId:_0x57d89e}=_0x4fbb7d,_0x378a6=this['_getImagePrstGeom'](_0x14cc54,_0x96cb2e,_0x57d89e);if(_0x378a6){var _0x25f13d,_0xc6bde8;this[_0x530b73(0x195)]=_0x57d89e,this[_0x530b73(0x2a6)]=_0x14cc54,this[_0x530b73(0x1ce)]=_0x96cb2e;let _0x322463=this['_getImageDrawingInfo'](_0x14cc54,_0x96cb2e,_0x57d89e),_0x512104=(_0x322463==null||(_0x25f13d=_0x322463[_0x530b73(0x131)])==null?void 0x0:_0x25f13d[_0x530b73(0x2ed)])||0x0,_0x249d4b=(_0x322463==null||(_0xc6bde8=_0x322463['transform'])==null?void 0x0:_0xc6bde8[_0x530b73(0x24e)])||0x0,_0x1ac719=this[_0x530b73(0x11f)](_0x378a6[_0x530b73(0x13f)],_0x512104,_0x249d4b,_0x378a6[_0x530b73(0x206)]);_0x1ac719&&(this[_0x530b73(0x108)]=_0x1ac719[_0x530b73(0x16e)]()),this['_clearControls'](),this[_0x530b73(0x1af)](!0x0);}else this[_0x530b73(0x1e1)]();}else this[_0x530b73(0x1e1)]();}else this['_resetState']();})),this[_0x39731c(0xf6)](this[_0x39731c(0x1b5)][_0x39731c(0x164)]['subscribe'](_0x24cc19=>{const _0x2404b1=_0x39731c;if(_0x24cc19['length']===0x1){let _0xbb4385=_0x24cc19[0x0],_0x28cb7c=this[_0x2404b1(0x1b5)][_0x2404b1(0x2fc)](_0xbb4385);(_0x28cb7c==null?void 0x0:_0x28cb7c[_0x2404b1(0x1b7)])===_0x14c67a['DRAWING_IMAGE']&&this['_activeImageId']===_0xbb4385[_0x2404b1(0xb2)]&&(this[_0x2404b1(0x2bd)](),this['_createControls'](!0x0));}})),this[_0x39731c(0xf6)](this['_drawingManagerService'][_0x39731c(0xd4)][_0x39731c(0x1f9)](_0x43c16b=>{const _0xc27d76=_0x39731c;for(let _0x15ed99 of _0x43c16b)this[_0xc27d76(0x195)]===_0x15ed99[_0xc27d76(0xb2)]&&this[_0xc27d76(0x1e1)]();}));}[_0x1ed313(0x1e1)](){const _0xa2b7e7=_0x1ed313;this[_0xa2b7e7(0x195)]=null,this[_0xa2b7e7(0x2a6)]=null,this[_0xa2b7e7(0x1ce)]=null,this[_0xa2b7e7(0x108)]=void 0x0,this['_clearControls']();}};er=Y([J(0x1,_0x431f44),J(0x2,_0x697169(_0x134053)),J(0x3,_0x57a3de),J(0x4,_0x697169(Q))],er);function _0x3808(){const _0x4b30bc=['_isDrawingShapePointDown','start','composeMatrix','_getConnectPointInfo','shapeKey','_loadShapePictureFill','registerRenderModule','color','getDrawingOrder','calcAdjValue','clearAdjustControls','getShapeType','viewportScrollY','stopPropagation','#1a73e8','_reset','_isStartAdjusting','getEndConnectInfo','_initPermission','subscribe','_commandExecutedListener','contentHeight','refreshShapeFillImage','src','StraightConnector1','div','getImageSourceCache','DRAWING_GROUP','getAdjustValueByName','toPrimitive','adjHandleSize','filter','adjustValues','onerror','disableShapeOption','flipY','CopyDoubleIcon','featurePluginUpdateNotification','startY','_sidebarDisposable','isArray','gdRefR','subUnitId','delete','5525888pyXBSv','setOnSavingEditorData','_executeConnectedRouteConnectionCommand','_init','translateWithPrecision','_attachAdjustEvent','syncExecuteCommand','_sheetsShapeService','getCurrentScrollState','connection-site-','getMatrix','interceptor','VIEW_MAIN_LEFT','startArrow','hidden','marginTop','_contextService','_draw','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','cxnPointStrokeWidth','subscribeEvent','doc.image-clip.shape-picker.component','fillType','getSelectedObjectMap','from','offsetX','_initEditingParams','srcRect','pluginName','setContextValue','dispose','ShapeIcon','_initializedShapePopupMenu','_registerIcons','close','pipe','_adjHandlerPointerMove','sheets-shape-ui.hidePanel','onTransformChange$','horizontal','_drawingRenderService','cos','buildClipPath','Rect','next','wrapStrategy','indexOf','BUTTON','getSkeletonParam','focus$','_generatePasteMutations','SolidLine','canvas','_draggingConnectorId','Line','getDrawingSearch','some','intercept','onCommandExecuted','dataModel','height','getConnectionInfo','_baseShapeLeft','open','_localeService','adjName','_hasReset','disableObjectsEvent','_insertShapes','_injector','_index','_clearConnectionSites','_activeShapeModel','780wnUwri','_activeShapeInfo','getOwnPropertyDescriptor','_generateCutPasteMutations','getUnit','INSERT','onSavingEditorData$','rotation','updateLinePoints','_initEvents','_copyInfo','symbol','_findShapeAtPoint','_groupCopyPasteController','decorate','call','UNIVER_SHEET','28284hzriNg','smartArt','getStartConnectInfo','createControl$','sheetTransform','_lastEditingShapeKey','1.0.0-alpha.5','string','VIEW_MAIN','sheets-shape-ui.objectListPanel.open','asObservable','restore','sheets-shape-ui.insertShape','worldPoints','constructor','setShapeProps','PictureFill','sheets-shape-ui.imagePanel.crop.shape','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','setPrstGeom','setShouldShowAdjust','drawing.operation.set-drawing-active','_isConnecting','_addShapeConnectorHandlerObject','bind','getAdjustInfoByName','changeStart$','isHorizontal','_executeResizeCommand','addImageSourceCache','_clearShapeAdjustControls','_connectorObjects','fontFamily','Arrow','onDblclick$','version','video','_clearShapeConnectorHandlerObjects','_initialize','gdRefY','_disposePopups','_baseLeft','Image','sheet.command.menu-insert-shape','DRAWING_DOM','_sheetShapeAdjustController','getBatchAddOp','index','ang','_getImageDrawingInfo','getAdjustNames','add$','worldRect','gdRefAng','_context','_initSelection','CUT','_univerInstanceService','_unitId','clip-adj-','left','getBentTypeFromPoints','getObjectIncludeInGroup','Path','register','_initSheetChange','_showConnectionSites','_imageIoService','getCurrentUnitOfType','sheets-shape-ui','_handleConnectedEndpointPointerUp','_onSavingEditorData$','length','_drawShapeText','_drawRichText','onStarting','_addShapeConnectorHandlerObjects','push','_highlightedSiteIndex','GROUP','vertical','_clearControls','mergeMenu','cxnIndex','_getShapeInfo','_registerDrawingMoveHandler','sheet.operation.close-sheet-shape-format-panel','getInverseCoord','getState','getAllUnitsForType','_openShapeEditPanel','copyType','setShapeData','strokeWidth','highlighted','COMMAND','initShapePopupMenu','addClipboardHook','shapeId','clipHeight','isHighlighted','UUID','_getScrollInfo','SHAPE','shape-text-','sheets-shape-ui.formatShape','onSteady','_transformCalculateSrcRect','getBatchRemoveOp','_componentManager','fillImageSource','end','onload','_rerouteConnectorLine','2038270eQLUGP','getImage','_cxnIndex','_addShapeAdjustControl','_cxtHandlerPointerUp','isRichText','_popupMenuListener','_getZoomRatio','setPrstGeomAdjValues','getUnitId','refreshAdjustControls','_baseShapeHeight','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','shape-adjust-point-','renderDrawingShape','width','pushUndoRedo','type','parse','angle','_registerComponents','iterator','params','_imageShapeClipController','DRAWING_CHART','_config','_registerGroupFeaturePasteHook','selectable','6120989LjOwoK','drawWith','getDrawingByParam','10NxMjrs','_drawSimpleText','FromArray','permissionCheckWithoutRange','doc','SheetShapeTextEditorContainer','registerFeatureMenuOffset','setHighlighted','targetShapeId','getRealBound','sheet.shape.picker.component','getBasicShapeRelation','sheets-shape-ui.toggleFlipH','render','getSkeleton','sectionCanvas','DEFAULT_PASTE','getConnectorLinePoints','_configService','unitId','translate','_activeTargetShapeId','description','drawingId','getObject','gdRefX','REMOVE','sheets-shape-ui.objectListPanel.title','sheets-shape-ui.permission.editErr','_drawingAddListener','8errrqD','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','activeSheet$','@univerjs-pro/sheets-shape-ui','getCurrentTypeOfUnit$','get','_disposed','_getConnectionSiteAngle','applyPoint','resize','_baseTop','sheets-shape-ui.toggleTextVertical','getShapeDataById','onPointerMove$','updateDocumentStyle','_currentConnectionTarget','_sheetClipboardService','getConnectionSiteList','isHit','value','getActualSize','completeEditing','unsubscribe','_isOpenedShapeEditPanel','_getSceneAndTransformerByDrawingSearch','_executeConnectionCommand','_sheetDrawingService','remove$','stroke','_isShouldShowDrawingShapeAdjust','defineProperty','find','DRAWING_IMAGE','name','scene','SELECTOR','clipTop','sheet.shape.edit.panel','getTransformerByCreate','getDrawingOKey','calculate','chart','_registerOperations','_loadAndSetImage','text','activeAnObject','normal','_currentUniverService','_shapeRenderController','classType','parent','_handleConnectorPointerUp','getDrawingData','complete','isHitLine','sheetViewStartRow','_sheetInterceptorService','univer-box-border\x20univer-px-4\x20univer-text-sm','sheet.command.update-shape-data','keys','removeLinePoints','disposeWithMe','setCursor','_adjName','point','_cxtHandlerPointerMove','_iconManager','getTransformer','_sheetBasicShapeConnectionPointController','draw','_isHighlighted','function','_shapeService','_registerShapeMenu','sheetViewStartColumn','_editingParams$','preValue','axisAlignSheetTransform','objects','_activeAdjustPointList','_executeConnectedRouteResizeCommand','sheets-shape-ui.rotateRight90','visible','_updateAdjustControlPositions','_sheetSkeletonService','transformByState','save','resourceCollector','_baseDrawingRect','_findNearestConnectionSite','cxnPointFill','_handleFreeEndpointMove','sheets-shape-text-','_transform','_closeShapeEditPanel','registerClipDelegate','clipByShape','localeService','data','getShapeData','trim','_getImagePrstGeom','_getOrCreateShapeModel','_baseShapeTop','_shapes','has','endArrow','DRAWING_UNIT','backward','sheet.image-clip.shape-picker.component','updateContext','_handleFreeEndpointPointerUp','getSheetBySheetId','sheet.shape.text.float-menu','sectionFloating','executeCommand','add','connector-handler-','_registerImageShapeClipDelegate','setAdjustValueByName','transform','lineType','offsetY','size','rect','_activeShapeId','interceptCommand','getZoomRatio','isEditing','None','_handleConnectedEndpointMove','_shapeId','_attachConnectorObjectEvent','getCurrentSkeleton','prstGeom','error','DRAWING_SHAPE','_clearPopups','sheets-shape-ui.toggleFlipV','15499xxULsV','_sheetPrintInterceptorService','_createCopyInfoByRange','table','setEditing','getFocusDrawings','UPDATE','_createShapeAdjustControls','flipX','addObject','_activeAdjustInfo','group','_registerMoveHandler','onPointerUp$','includes','viewportScrollX','_focusedDrawings','MEDIA','sin','_initPrinting','relation','_moveConnectorWithShape','object','_renderManagerService','_props','_urlImageService','_connectionSiteObjects','initTransformer','computeConnectorResizeLayout','worldPoint','_getShapeAdjustPointListById','CROSSHAIR','update$','localToWorld','getParent','invert','SHAPE_TEXT','LEFT','fill','getUnitType','getShapeModel','clip-','getDrawingPoints','registerFeaturePasteHook','_updateTransform','_isStartConnectorPoint','_sheetCanvasPopManagerService','_currentScene','sheets-shape-ui.openPanel','_createShapePopupMenu','shapeText','stringify','shape','_baseShapeWidth','isInGroup','_shapeEditPanelVersion','enableObjectsEvent','resetCursor','_registerDrawingFocusChangeHandler','6307281FwIYHW','top','abs','set','oKey','skeleton','order','TOP','getRenderById','_registerFocusChangeHandler','_adjHandlerPointerUp','34920ajyqUu','multiply','_shapeUpdateListener','_shapeTextEditingService','_getDrawingRect','_drawingType','forEach','_updateImageAdjValues','onReady','Large','changing$','_activeImageId','actualHeight','sheet.operation.open-sheet-shape-format-panel','packageName','updateConnectionDetection','updateShapeFillImage','reverse','registerFeatureMenu','getDrawingVisible','isStartConnectorPoint','_addControl','blockExecuteWithoutPermission','_calculateFreeEndpointAngle','map','lineShapeId','ancestorTransform','setCanUseShapeClip','_getShapeAdjustInfosById','clip','_targetShapeId','227442rnuPYl','startX','clearControl$','_initMenu','values','UNIVER_DOC','_createControls','_baseHeight','getShapePopupMenus','setFillImage','_sheetPermissionCheckController','_baseWidth','_drawingManagerService','_isImagePointerDown','drawingType','_activeShapeAdjustPointList','makeDirty','sheets-shape-ui.rotateLeft90','onPointerDown$','isLineShape','getEditing','changeShapeType','shapeModel','registerCommand','prototype','_initCommands','prstGeomAdjValues','_sheetDrawingShapeRenderController','SHEET_SHAPE_UI_PLUGIN','focusDrawing','cxnPointRadius','setSrcRect','shapeData','_clipService','_initCopyPaste','entries','fillImageSourceType','_subUnitId','cxnPointStroke','getSheetId','URL','setConfig','clearAdjustValue','changeEnd$','sqrt','editingParams$','_updateSrcRectByTransform','attachPopupToObject','undo','_generateCopyPasteMutations','refreshTransform','_sidebarService','getCurrentLastSelection','adjHandleStroke','_commandService','startConnectionDetection','_resetState','_updateShapeAdjustControls','3eDwaYk','with','_insertingShapeKeys'];_0x3808=function(){return _0x4b30bc;};return _0x3808();}let tr=class extends _0x17a082{constructor(_0x570d93,_0x3e86c2,_0x15d3e4,_0x5be2bc){const _0x50486c=_0x1ed313;super(),this[_0x50486c(0x2a5)]=_0x570d93,this[_0x50486c(0xf1)]=_0x3e86c2,this[_0x50486c(0xd3)]=_0x15d3e4,this[_0x50486c(0x219)]=_0x5be2bc,this[_0x50486c(0x2ad)]();}[_0x1ed313(0x2ad)](){const _0x5c1e45=_0x1ed313;this[_0x5c1e45(0xf6)](this[_0x5c1e45(0xf1)][_0x5c1e45(0x137)]({'getMutations':_0x370576=>{const _0x555ff2=_0x5c1e45;if(_0x370576['id']===_0x3a7e8b['id']){let _0x205eb6=_0x50e622(this[_0x555ff2(0x2a5)],_0x370576[_0x555ff2(0x2f4)]);if(!_0x205eb6)return{'redos':[],'undos':[]};let {unitId:_0x38758f,subUnitId:_0x409876}=_0x205eb6,_0x2b3f13=this[_0x555ff2(0xd3)][_0x555ff2(0xed)](_0x38758f,_0x409876),_0x50cd8b=Object[_0x555ff2(0x1ad)](_0x2b3f13)['filter'](_0x168346=>_0x168346[_0x555ff2(0x1b7)]===_0x14c67a[_0x555ff2(0x141)]);if(_0x50cd8b[_0x555ff2(0x2b4)]===0x0)return{'redos':[],'undos':[]};let _0x3d8d19=[],_0x5b084d=[];for(let _0x5a4274=0x0;_0x5a4274<_0x50cd8b['length'];_0x5a4274++){let _0x91f5a2=_0x50cd8b[_0x5a4274],_0x1de9ff=this[_0x555ff2(0x219)][_0x555ff2(0x16c)](_0x91f5a2[_0x555ff2(0xae)],_0x91f5a2[_0x555ff2(0x210)],_0x91f5a2['drawingId']);if(!_0x1de9ff)continue;let {redo:_0x52897e,undo:_0xdbe690,objects:_0xb75a68}=this['_sheetDrawingService'][_0x555ff2(0x2d8)]([_0x91f5a2]);_0x3d8d19['push']({'id':_0x1e03c8['id'],'params':{'unitId':_0x38758f,'subUnitId':_0x409876,'shapeId':_0x91f5a2['drawingId']}}),_0x3d8d19[_0x555ff2(0x2b9)]({'id':_0x39b433['id'],'params':{'unitId':_0x38758f,'subUnitId':_0x409876,'type':_0x12be8f[_0x555ff2(0xb5)],'op':_0x52897e,'objects':_0xb75a68}}),_0x5b084d[_0x555ff2(0x2b9)]({'id':_0x39b433['id'],'params':{'unitId':_0x38758f,'subUnitId':_0x409876,'type':_0x12be8f[_0x555ff2(0x260)],'op':_0xdbe690,'objects':_0xb75a68}}),_0x5b084d[_0x555ff2(0x2b9)]({'id':_0x32d1ef['id'],'params':{'unitId':_0x38758f,'subUnitId':_0x409876,'shapeId':_0x91f5a2[_0x555ff2(0xb2)],'shapeType':_0x1de9ff[_0x555ff2(0x1f1)](),'shapeData':JSON[_0x555ff2(0x2f0)](JSON[_0x555ff2(0x177)](_0x1de9ff[_0x555ff2(0x11c)]()))}});}return{'redos':_0x3d8d19,'undos':_0x5b084d};}else{if(_0x370576['id']===_0x4f0029['id']){let {unitId:_0x13462e,subUnitId:_0x1d2ccc,targetSubUnitId:_0x1360dd}=_0x370576[_0x555ff2(0x2f4)];if(!_0x13462e||!_0x1d2ccc||!_0x1360dd)return{'redos':[],'undos':[]};let _0x59ac40=this[_0x555ff2(0xd3)]['getDrawingData'](_0x13462e,_0x1d2ccc),_0x8c00aa=Object[_0x555ff2(0x1ad)](_0x59ac40)['filter'](_0x13de41=>_0x13de41[_0x555ff2(0x1b7)]===_0x14c67a[_0x555ff2(0x141)]);if(_0x8c00aa[_0x555ff2(0x2b4)]===0x0)return{'redos':[],'undos':[]};let _0x1d04d0=[],_0x805d5e=[];for(let _0x2d9044=0x0;_0x2d9044<_0x8c00aa[_0x555ff2(0x2b4)];_0x2d9044++){let _0x3f7f40=_0x8c00aa[_0x2d9044],_0x5c207f=this[_0x555ff2(0x219)][_0x555ff2(0x16c)](_0x3f7f40[_0x555ff2(0xae)],_0x3f7f40[_0x555ff2(0x210)],_0x3f7f40[_0x555ff2(0xb2)]);if(!_0x5c207f)continue;let _0xcd82b4=_0x436dba(),_0x40a4ba={..._0x3f7f40,'unitId':_0x13462e,'subUnitId':_0x1360dd,'drawingId':_0xcd82b4},{redo:_0x279387,undo:_0x8ddbb3,objects:_0xc0a5fa}=this[_0x555ff2(0xd3)][_0x555ff2(0x29a)]([_0x40a4ba]);_0x1d04d0['push']({'id':_0x39b433['id'],'params':{'unitId':_0x13462e,'subUnitId':_0x1360dd,'type':_0x12be8f[_0x555ff2(0x260)],'op':_0x279387,'objects':_0xc0a5fa}}),_0x1d04d0[_0x555ff2(0x2b9)]({'id':_0x32d1ef['id'],'params':{'unitId':_0x13462e,'subUnitId':_0x1360dd,'shapeId':_0xcd82b4,'shapeType':_0x5c207f['getShapeType'](),'shapeData':JSON[_0x555ff2(0x2f0)](JSON['stringify'](_0x5c207f[_0x555ff2(0x11c)]()))}}),_0x805d5e[_0x555ff2(0x2b9)]({'id':_0x1e03c8['id'],'params':{'unitId':_0x13462e,'subUnitId':_0x1360dd,'shapeId':_0xcd82b4}}),_0x805d5e[_0x555ff2(0x2b9)]({'id':_0x39b433['id'],'params':{'unitId':_0x13462e,'subUnitId':_0x1360dd,'type':_0x12be8f[_0x555ff2(0xb5)],'op':_0x8ddbb3,'objects':_0xc0a5fa}});}return{'redos':_0x1d04d0,'undos':_0x805d5e};}}return{'redos':[],'undos':[]};}}));}};tr=Y([J(0x0,_0x697169(_0x57a3de)),J(0x1,_0x697169(_0x25edee)),J(0x2,_0x697169(_0x513fd6)),J(0x3,_0x697169(_0x5486d2))],tr);let nr=class extends _0x17a082{constructor(_0x1dafac,_0x9d5a2b,_0x2318f4,_0x1d9671,_0x538203){const _0x32be5a=_0x1ed313;super(),this['_context']=_0x1dafac,this[_0x32be5a(0x18d)]=_0x9d5a2b,this[_0x32be5a(0x1b5)]=_0x2318f4,this['_contextService']=_0x1d9671,this['_sheetsShapeService']=_0x538203,q(this,_0x32be5a(0x271),null),this[_0x32be5a(0x264)](),this[_0x32be5a(0x2a3)](),this[_0x32be5a(0x22c)]();}[_0x1ed313(0x264)](){const _0x5896ad=_0x1ed313;let {scene:_0x9dc1fc}=this[_0x5896ad(0x2a2)];this[_0x5896ad(0xf6)](_0x9dc1fc[_0x5896ad(0x28e)][_0x5896ad(0x226)](_0x1ffe8d=>{const _0x222cdc=_0x5896ad;let {offsetX:_0x31f38d,offsetY:_0x47af85}=_0x1ffe8d,_0x459af5=_0x9dc1fc['pick'](_0x38bc49[_0x222cdc(0x9d)]([_0x31f38d,_0x47af85]));if(_0x459af5 instanceof vn){if(_0x5cb95b(this[_0x222cdc(0x219)][_0x222cdc(0x1f1)](_0x459af5[_0x222cdc(0xae)],_0x459af5[_0x222cdc(0x210)],_0x459af5['shapeId'])))return;this[_0x222cdc(0x18d)][_0x222cdc(0x148)]({'visible':!0x0,'unitId':_0x459af5['unitId'],'subUnitId':_0x459af5[_0x222cdc(0x210)],'shapeId':_0x459af5[_0x222cdc(0x2ce)],'shapeKey':_0x459af5[_0x222cdc(0x183)]});}}));}[_0x1ed313(0x2a3)](){const _0x54dc6b=_0x1ed313;this[_0x54dc6b(0xf6)](this[_0x54dc6b(0x1b5)][_0x54dc6b(0x243)]['subscribe'](_0xb2b2c2=>{const _0x420b53=_0x54dc6b;if(_0xb2b2c2[_0x420b53(0x2b4)]===0x1){let _0x1dff97=_0xb2b2c2[0x0],_0x3dcdab=this['_drawingManagerService'][_0x420b53(0x2fc)](_0x1dff97);if((_0x3dcdab==null?void 0x0:_0x3dcdab[_0x420b53(0x1b7)])===_0x14c67a[_0x420b53(0x141)]){let _0x11174d=this[_0x420b53(0x18d)][_0x420b53(0x1bd)]();if((_0x11174d==null?void 0x0:_0x11174d[_0x420b53(0x2ce)])===_0x1dff97[_0x420b53(0xb2)]&&_0x11174d['visible'])return;_0x5cb95b(this[_0x420b53(0x219)][_0x420b53(0x1f1)](_0x1dff97[_0x420b53(0xae)],_0x1dff97[_0x420b53(0x210)],_0x1dff97[_0x420b53(0xb2)]))&&this['_shapeTextEditingService'][_0x420b53(0x148)](null);}else this[_0x420b53(0x18d)][_0x420b53(0x1bd)]()&&(this[_0x420b53(0x18d)][_0x420b53(0x213)](!0x0),requestAnimationFrame(()=>{const _0x2eff7e=_0x420b53;this[_0x2eff7e(0x18d)][_0x2eff7e(0x148)](null);}));}else this[_0x420b53(0x18d)][_0x420b53(0x1bd)]()&&(this[_0x420b53(0x18d)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x2e3345=_0x420b53;this[_0x2e3345(0x18d)][_0x2e3345(0x148)](null);}));})),this[_0x54dc6b(0xf6)](this[_0x54dc6b(0x1b5)][_0x54dc6b(0xd4)]['subscribe'](_0x5bc36b=>{const _0x1e15ea=_0x54dc6b;let _0x3fb989=this[_0x1e15ea(0x18d)][_0x1e15ea(0x1bd)]();_0x3fb989&&_0x5bc36b[_0x1e15ea(0x24a)](_0x737820=>_0x737820[_0x1e15ea(0xb2)]===_0x3fb989['shapeId'])&&this[_0x1e15ea(0x18d)][_0x1e15ea(0x148)](null);}));}[_0x1ed313(0x22c)](){const _0x3c1560=_0x1ed313;this[_0x3c1560(0xf6)](this[_0x3c1560(0x18d)][_0x3c1560(0x1d6)][_0x3c1560(0x1f9)](_0x1fb144=>{const _0xb1c7f2=_0x3c1560;let {scene:_0x3cefd4}=this[_0xb1c7f2(0x2a2)];if(this[_0xb1c7f2(0x271)]){let _0x31b4ec=_0x3cefd4[_0xb1c7f2(0x2aa)](this[_0xb1c7f2(0x271)]);_0x31b4ec&&_0x31b4ec[_0xb1c7f2(0x148)](!0x1);}if(_0x1fb144){let _0x174506=!!_0x1fb144[_0xb1c7f2(0x10b)],_0x3e0b05=_0x3cefd4['getObjectIncludeInGroup'](_0x1fb144[_0xb1c7f2(0x1ea)]);_0x3e0b05&&(_0x3e0b05[_0xb1c7f2(0x148)](_0x174506),this['_lastEditingShapeKey']=_0x1fb144[_0xb1c7f2(0x1ea)]),this[_0xb1c7f2(0x222)][_0xb1c7f2(0x22f)](_0x2d4bac,_0x174506);}else this[_0xb1c7f2(0x271)]=null,this[_0xb1c7f2(0x222)][_0xb1c7f2(0x22f)](_0x2d4bac,!0x1);}));}};nr=Y([J(0x1,_0x697169(Zn)),J(0x2,_0x431f44),J(0x3,_0x3bb4e2),J(0x4,_0x697169(_0x5486d2))],nr);let rr=class extends _0x3bceb9{constructor(_0x237660,_0xd9af01,_0x28923b,_0x49a41b){super(_0x237660,_0xd9af01,_0x28923b,_0x49a41b,{'componentKey':En,'editorUnitId':Tn});}};rr=Y([J(0x1,_0x697169(_0x43ba14)),J(0x2,_0x697169(_0x1a3594)),J(0x3,_0x697169(_0x4e140b))],rr);let ir=class extends _0x17a082{constructor(_0x464222,_0x4414ee,_0x44c71b,_0x5e6ff7,_0x3ed414,_0x1f8055){const _0x202ba3=_0x1ed313;super(),this[_0x202ba3(0x1df)]=_0x464222,this[_0x202ba3(0x15b)]=_0x4414ee,this['_drawingManagerService']=_0x44c71b,this[_0x202ba3(0xe8)]=_0x5e6ff7,this[_0x202ba3(0x23a)]=_0x3ed414,this[_0x202ba3(0x1c4)]=_0x1f8055,q(this,_0x202ba3(0x1e5),new Set()),this['_initialize']();}[_0x1ed313(0x292)](){const _0xd31117=_0x1ed313;this[_0xd31117(0xb8)](),this['_commandExecutedListener'](),this[_0xd31117(0x18c)]();}[_0x1ed313(0xb8)](){const _0x58c78e=_0x1ed313;this[_0x58c78e(0xf6)](this[_0x58c78e(0x1b5)][_0x58c78e(0x29f)][_0x58c78e(0x1f9)](_0x2e841e=>{this['_insertShapes'](_0x2e841e);}));}[_0x1ed313(0x1fa)](){const _0x726620=_0x1ed313;this['disposeWithMe'](this[_0x726620(0x1df)]['onCommandExecuted'](_0x656203=>{const _0x56be35=_0x726620;if(_0x656203['id']===_0x44e25c['id']){let {unitId:_0x536442,subUnitId:_0x333b19,shapeId:_0x15818c}=_0x656203[_0x56be35(0x2f4)],_0x2f6f98=this[_0x56be35(0xd1)](_0x536442),_0x424089=_0x45a0e1({'unitId':_0x536442,'subUnitId':_0x333b19,'drawingId':_0x15818c}),_0x3cb6f9=_0x2f6f98==null?void 0x0:_0x2f6f98[_0x56be35(0xdb)][_0x56be35(0x2aa)](_0x424089);_0x3cb6f9&&(this[_0x56be35(0x1c4)][_0x56be35(0x1fc)](_0x3cb6f9),_0x3cb6f9[_0x56be35(0x1b9)](!0x0));return;}if(_0x656203['id']===_0x32d1ef['id']){var _0x266d12;let {unitId:_0x12f5ba,subUnitId:_0xcf806c,shapeId:_0x33d659}=_0x656203[_0x56be35(0x2f4)],_0x516574=this[_0x56be35(0xd1)](_0x12f5ba);if(_0x516574==null)return;let {scene:_0x16896e}=_0x516574,_0x187561=_0x45a0e1({'unitId':_0x12f5ba,'subUnitId':_0xcf806c,'drawingId':_0x33d659}),_0x46ac7f=_0x16896e[_0x56be35(0x2aa)](_0x187561);if(!((_0x266d12=this['_renderManagerService'][_0x56be35(0x187)](_0x12f5ba))!=null&&_0x266d12[_0x56be35(0x1e4)](_0x48e10a)[_0x56be35(0xa9)](_0xcf806c)))return!0x1;if(_0x46ac7f)return;this['_insertShapes']([{'unitId':_0x12f5ba,'subUnitId':_0xcf806c,'drawingId':_0x33d659}]);}}));}['_shapeUpdateListener'](){const _0x10f718=_0x1ed313;this[_0x10f718(0xf6)](this['_drawingManagerService'][_0x10f718(0x164)]['subscribe'](_0x134c75=>{const _0x17c1a3=_0x10f718;_0x134c75[_0x17c1a3(0x190)](_0x47c486=>{const _0x1ff9a9=_0x17c1a3;let {unitId:_0x5cefdf,subUnitId:_0x4a9bea,drawingId:_0x2d96e5}=_0x47c486,_0x1e76a4=this[_0x1ff9a9(0x1b5)][_0x1ff9a9(0x2fc)](_0x47c486);if(_0x1e76a4==null)return;let {transform:_0x1bafea,drawingType:_0x3c83fe,srcRect:_0x21fe8b,prstGeom:_0x2ededb}=_0x1e76a4;if(_0x3c83fe!==_0x14c67a[_0x1ff9a9(0x141)])return;let _0x2edfdf=this[_0x1ff9a9(0xd1)](_0x5cefdf);if(_0x2edfdf==null)return;let {scene:_0x4a01a1,transformer:_0xec1ff5}=_0x2edfdf;if(_0x1bafea==null)return!0x0;let _0x1a2366=_0x45a0e1({'unitId':_0x5cefdf,'subUnitId':_0x4a9bea,'drawingId':_0x2d96e5}),_0x93ae44=_0x4a01a1[_0x1ff9a9(0x2aa)](_0x1a2366);if(_0x93ae44==null)return!0x0;_0x93ae44[_0x1ff9a9(0x1c8)](_0x21fe8b),_0x93ae44[_0x1ff9a9(0x27f)](_0x2ededb);});}));}[_0x1ed313(0x256)](_0x55efbc){const _0x532dbe=_0x1ed313;for(let _0x553710 of _0x55efbc){var _0x50ec8a;let {unitId:_0x4118ce,subUnitId:_0x3074f8,drawingId:_0x3f7dfa}=_0x553710,_0x1812ca=this[_0x532dbe(0xd1)](_0x4118ce),_0x22d8a1=(_0x50ec8a=_0x4ca02b(this[_0x532dbe(0xe8)],_0x4118ce))==null?void 0x0:_0x50ec8a[_0x532dbe(0x210)];if(_0x1812ca==null||_0x22d8a1!==_0x3074f8)return;let _0x32d63c=_0x45a0e1({'unitId':_0x4118ce,'subUnitId':_0x3074f8,'drawingId':_0x3f7dfa});if(this['_insertingShapeKeys'][_0x532dbe(0x122)](_0x32d63c)||_0x1812ca[_0x532dbe(0xdb)]['getObjectIncludeInGroup'](_0x32d63c)!=null)return;let _0x4648e7=this[_0x532dbe(0x1b5)]['getDrawingByParam'](_0x553710);if(_0x4648e7==null||_0x4648e7[_0x532dbe(0x1b7)]!==_0x14c67a[_0x532dbe(0x141)])return;if(_0x5cb95b((_0x4648e7[_0x532dbe(0x11b)]||{})['shapeType'])){let _0x1c63e4=_0x4648e7[_0x532dbe(0x131)];_0x1c63e4&&(_0x4648e7[_0x532dbe(0x131)]={..._0x1c63e4,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x532dbe(0x1e5)][_0x532dbe(0x12d)](_0x32d63c);try{this[_0x532dbe(0x1c4)][_0x532dbe(0x2ec)](_0x4648e7,_0x1812ca[_0x532dbe(0xdb)]);}finally{this[_0x532dbe(0x1e5)][_0x532dbe(0x211)](_0x32d63c);}queueMicrotask(()=>{const _0xd2404c=_0x532dbe;if(this[_0xd2404c(0xbf)])return;let _0x3ae91a=_0x45a0e1(_0x553710);if(!_0x1812ca['scene'][_0xd2404c(0x2aa)](_0x3ae91a))return;let _0x4103f6=this[_0xd2404c(0x1b5)][_0xd2404c(0x2fc)](_0x553710);_0x4103f6&&this[_0xd2404c(0x1b5)][_0xd2404c(0x1db)]([_0x4103f6]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x20c7e3){const _0x1a865d=_0x1ed313;if(_0x20c7e3==null)return;let _0x5cb64a=this[_0x1a865d(0x15b)][_0x1a865d(0x187)](_0x20c7e3),_0x394e7b=_0x5cb64a==null?void 0x0:_0x5cb64a['scene'];return _0x394e7b==null?null:{'scene':_0x394e7b,'transformer':_0x394e7b[_0x1a865d(0xdf)]()};}};ir=Y([J(0x0,_0x2eaf9c),J(0x1,_0x134053),J(0x2,_0x431f44),J(0x3,_0x57a3de),J(0x4,_0x697169(_0x5dd75f)),J(0x5,_0x697169(X))],ir);const ar={'normal':{'fill':_0x42c7e9[_0x1ed313(0x113)],'stroke':_0x42c7e9['cxnPointStroke'],'strokeWidth':_0x42c7e9[_0x1ed313(0x225)]},'highlighted':{'fill':'#4285f4','stroke':_0x1ed313(0x1f4),'strokeWidth':0x2}};var or=class extends _0x647470{constructor(_0x4a5d14,_0x30466f){const _0x2fd307=_0x1ed313;super(_0x4a5d14,_0x30466f),q(this,_0x2fd307(0x1a8),''),q(this,_0x2fd307(0x2e0),-0x1),q(this,_0x2fd307(0x2a6),''),q(this,'_subUnitId',''),q(this,_0x2fd307(0xff),!0x1),_0x30466f&&this[_0x2fd307(0x27b)](_0x30466f);}[_0x1ed313(0x24f)](){const _0x96aba8=_0x1ed313;return{'unitId':this[_0x96aba8(0x2a6)],'subUnitId':this[_0x96aba8(0x1ce)],'shapeId':this[_0x96aba8(0x1a8)],'cxnIndex':this[_0x96aba8(0x2e0)]};}[_0x1ed313(0xa2)](_0x3254cc){this['_isHighlighted']!==_0x3254cc&&(this['_isHighlighted']=_0x3254cc,this['makeDirty'](!0x0));}[_0x1ed313(0x2d0)](){const _0x5c9f98=_0x1ed313;return this[_0x5c9f98(0xff)];}[_0x1ed313(0x27b)](_0x1828cb){const _0x359ab7=_0x1ed313;var _0x3a7516,_0x560d8c;_0x1828cb['targetShapeId']!==void 0x0&&(this[_0x359ab7(0x1a8)]=_0x1828cb[_0x359ab7(0xa3)]),_0x1828cb[_0x359ab7(0x2bf)]!==void 0x0&&(this['_cxnIndex']=_0x1828cb[_0x359ab7(0x2bf)]),_0x1828cb[_0x359ab7(0xae)]!==void 0x0&&(this[_0x359ab7(0x2a6)]=_0x1828cb['unitId']),_0x1828cb[_0x359ab7(0x210)]!==void 0x0&&(this[_0x359ab7(0x1ce)]=_0x1828cb[_0x359ab7(0x210)]),_0x1828cb[_0x359ab7(0x2d0)]!==void 0x0&&(this[_0x359ab7(0xff)]=_0x1828cb[_0x359ab7(0x2d0)]),this[_0x359ab7(0x10e)]({'width':(_0x3a7516=_0x1828cb['width'])==null?_0x42c7e9[_0x359ab7(0x1c7)]*0x2:_0x3a7516,'height':(_0x560d8c=_0x1828cb[_0x359ab7(0x24e)])==null?_0x42c7e9[_0x359ab7(0x1c7)]*0x2:_0x560d8c});}[_0x1ed313(0x223)](_0x133238){const _0x488afb=_0x1ed313;let _0x25e7dc=this[_0x488afb(0xff)]?ar[_0x488afb(0x2ca)]:ar[_0x488afb(0xe7)];_0x103453[_0x488afb(0x2fb)](_0x133238,{'radius':_0x42c7e9[_0x488afb(0x1c7)],'fill':_0x25e7dc[_0x488afb(0x16a)],'stroke':_0x25e7dc[_0x488afb(0xd5)],'strokeWidth':_0x25e7dc['strokeWidth'],'evented':!0x0});}};let sr=class extends _0x17a082{constructor(_0x8a5882,_0x4467ae,_0x3e27d8,_0x593b8c){const _0x30febd=_0x1ed313;super(),this[_0x30febd(0x2a2)]=_0x8a5882,this[_0x30febd(0x15b)]=_0x4467ae,this['_drawingManagerService']=_0x3e27d8,this[_0x30febd(0x219)]=_0x593b8c,q(this,_0x30febd(0x15e),[]),q(this,_0x30febd(0xb0),null),q(this,_0x30febd(0x2ba),-0x1),q(this,_0x30febd(0x173),null),q(this,_0x30febd(0x2a6),''),q(this,_0x30febd(0x1ce),''),q(this,_0x30febd(0x247),null);}[_0x1ed313(0x1e0)](_0x443b86,_0x1a1c0f,_0x3de175,_0x12c676){const _0x5c1f81=_0x1ed313;this[_0x5c1f81(0x173)]=_0x443b86,this['_unitId']=_0x1a1c0f,this[_0x5c1f81(0x1ce)]=_0x3de175,this['_draggingConnectorId']=_0x12c676;}[_0x1ed313(0x199)](_0x581f85){const _0x43f1c5=_0x1ed313;if(!this[_0x43f1c5(0x173)])return null;let _0x340c17=this[_0x43f1c5(0x267)](_0x581f85);return _0x340c17?(this[_0x43f1c5(0xb0)]!==_0x340c17[_0x43f1c5(0x2ce)]&&(this[_0x43f1c5(0x259)](),this[_0x43f1c5(0x2ae)](_0x340c17[_0x43f1c5(0x2ce)],_0x340c17[_0x43f1c5(0x1bf)]),this[_0x43f1c5(0xb0)]=_0x340c17[_0x43f1c5(0x2ce)]),this[_0x43f1c5(0x112)](_0x581f85)):(this[_0x43f1c5(0xb0)]!==null&&(this['_clearConnectionSites'](),this[_0x43f1c5(0xb0)]=null),null);}['endConnectionDetection'](){const _0x26ddb6=_0x1ed313;this['_clearConnectionSites'](),this[_0x26ddb6(0x173)]=null,this[_0x26ddb6(0xb0)]=null,this[_0x26ddb6(0x2ba)]=-0x1,this[_0x26ddb6(0x247)]=null;}['getConnectionRelation'](){const _0x11f5d9=_0x1ed313;return this[_0x11f5d9(0xb0)]===null||this[_0x11f5d9(0x2ba)]<0x0?null:{'shapeId':this[_0x11f5d9(0xb0)],'cxnIndex':this[_0x11f5d9(0x2ba)]};}[_0x1ed313(0x267)](_0x536909){const _0x3bb260=_0x1ed313;let _0x1416fb=this[_0x3bb260(0x1b5)][_0x3bb260(0xed)](this[_0x3bb260(0x2a6)],this['_subUnitId']);for(let _0x45d7be of Object['keys'](_0x1416fb)){if(_0x45d7be===this[_0x3bb260(0x247)]||_0x1416fb[_0x45d7be]['drawingType']!==_0x14c67a[_0x3bb260(0x141)])continue;let _0x36a427=this['_sheetsShapeService'][_0x3bb260(0x16c)](this[_0x3bb260(0x2a6)],this[_0x3bb260(0x1ce)],_0x45d7be);if(!_0x36a427||_0x5cb95b(_0x36a427['getShapeType']())||_0x36a427[_0x3bb260(0xca)]()[_0x3bb260(0x2b4)]===0x0||!this['_currentScene'])continue;let _0x5da207=_0x45a0e1({'unitId':this[_0x3bb260(0x2a6)],'subUnitId':this[_0x3bb260(0x1ce)],'drawingId':_0x45d7be}),_0xe8a7ce=this['_currentScene']['getObjectIncludeInGroup'](_0x5da207);if(!_0xe8a7ce)continue;let {left:_0x5bf2dc,top:_0x48939b,width:_0x34ce3b,height:_0x23cda6}=_0xe8a7ce['getRealBound'](),_0x411bf3=_0x5bf2dc+_0x34ce3b/0x2,_0x33882f=_0x48939b+_0x23cda6/0x2,_0x2289f4=_0xe8a7ce[_0x3bb260(0x131)][_0x3bb260(0x21c)](),_0x5e4e9e=new _0x3c22dd([_0x2289f4[0x0],_0x2289f4[0x1],_0x2289f4[0x2],_0x2289f4[0x3],_0x411bf3,_0x33882f]),_0xb2d23b=_0xe8a7ce[_0x3bb260(0x166)](),_0x1d9f4b=(_0xe8a7ce[_0x3bb260(0x17a)]&&(_0xb2d23b==null?void 0x0:_0xb2d23b[_0x3bb260(0xea)])===_0x5b90d5[_0x3bb260(0x2bb)]?_0xb2d23b['ancestorTransform'][_0x3bb260(0x18b)](_0x5e4e9e):_0x5e4e9e)[_0x3bb260(0x167)]()[_0x3bb260(0xc1)](_0x536909),_0x11d442=_0x34ce3b/0x2,_0x47f533=_0x23cda6/0x2;if(_0x1d9f4b['x']>=-_0x11d442-0x5&&_0x1d9f4b['x']<=_0x11d442+0x5&&_0x1d9f4b['y']>=-_0x47f533-0x5&&_0x1d9f4b['y']<=_0x47f533+0x5)return{'shapeId':_0x45d7be,'shapeModel':_0x36a427};}return null;}[_0x1ed313(0x2ae)](_0x53ebdc,_0x49513b){const _0x39adfd=_0x1ed313;if(!this[_0x39adfd(0x173)])return;let _0x192cc7=_0x45a0e1({'unitId':this['_unitId'],'subUnitId':this[_0x39adfd(0x1ce)],'drawingId':_0x53ebdc}),_0x5ba03a=this['_currentScene'][_0x39adfd(0x2aa)](_0x192cc7);if(!_0x5ba03a)return;let {left:_0x5cab4d,top:_0x1e554f,width:_0x56e279,height:_0x356dcc}=_0x5ba03a[_0x39adfd(0xa4)](),_0x49ed11=_0x5cab4d+_0x56e279/0x2,_0x56dcff=_0x1e554f+_0x356dcc/0x2,_0x4cefb6=_0x5ba03a['transform']['getMatrix'](),_0xed5010=new _0x3c22dd([_0x4cefb6[0x0],_0x4cefb6[0x1],_0x4cefb6[0x2],_0x4cefb6[0x3],_0x49ed11,_0x56dcff]),_0x5a7998=_0x5ba03a['getParent'](),_0x2a4d11=_0x5ba03a[_0x39adfd(0x17a)]&&(_0x5a7998==null?void 0x0:_0x5a7998[_0x39adfd(0xea)])===_0x5b90d5[_0x39adfd(0x2bb)]?_0x5a7998[_0x39adfd(0x1a4)][_0x39adfd(0x18b)](_0xed5010):_0xed5010;_0x49513b[_0x39adfd(0x127)]({'width':_0x56e279,'height':_0x356dcc});let _0x48a2e1=_0x49513b['getConnectionSiteList']();for(let _0x5af9ea of _0x48a2e1){let _0xcf5ad8=_0x5af9ea['x']-_0x56e279/0x2,_0x30f7af=_0x5af9ea['y']-_0x356dcc/0x2,_0x31cb8e=_0x2a4d11['applyPoint']({'x':_0xcf5ad8,'y':_0x30f7af}),_0x42db3d=_0x31cb8e['x'],_0x27310d=_0x31cb8e['y'],_0x4d58c6=new or(_0x39adfd(0x21b)+_0x53ebdc+'-'+_0x5af9ea[_0x39adfd(0x29b)],{'left':_0x42db3d-_0x42c7e9[_0x39adfd(0x1c7)],'top':_0x27310d-_0x42c7e9[_0x39adfd(0x1c7)],'targetShapeId':_0x53ebdc,'cxnIndex':_0x5af9ea[_0x39adfd(0x29b)],'unitId':this[_0x39adfd(0x2a6)],'subUnitId':this['_subUnitId'],'width':_0x42c7e9[_0x39adfd(0x1c7)]*0x2,'height':_0x42c7e9[_0x39adfd(0x1c7)]*0x2,'zIndex':_0x72823c+0x2,'evented':!0x1});this[_0x39adfd(0x15e)][_0x39adfd(0x2b9)](_0x4d58c6),this['_currentScene'][_0x39adfd(0x14d)](_0x4d58c6,_0x72823c+0x2);}}[_0x1ed313(0x112)](_0x383075){const _0x4b7517=_0x1ed313;let _0x176e97=null,_0x5cd694=0x1/0x0,_0x36ccde=null;for(let _0x311822 of this[_0x4b7517(0x15e)]){let _0x2b92a4=_0x311822['left']+_0x42c7e9['cxnPointRadius'],_0x6f5032=_0x311822['top']+_0x42c7e9[_0x4b7517(0x1c7)],_0x8ff077=_0x383075['x']-_0x2b92a4,_0x1c3440=_0x383075['y']-_0x6f5032,_0x23dbaf=Math[_0x4b7517(0x1d5)](_0x8ff077*_0x8ff077+_0x1c3440*_0x1c3440);_0x23dbaf<_0x5cd694&&(_0x5cd694=_0x23dbaf,_0x176e97=_0x311822,_0x36ccde={'x':_0x2b92a4,'y':_0x6f5032});}let _0x4f63de=_0x5cd694<=0xa&&_0x176e97?_0x176e97[_0x4b7517(0x24f)]()['cxnIndex']:-0x1;if(_0x4f63de!==this[_0x4b7517(0x2ba)]){for(let _0x369b8a of this[_0x4b7517(0x15e)]){let _0x3a2a99=_0x369b8a[_0x4b7517(0x24f)]();_0x369b8a[_0x4b7517(0xa2)](_0x3a2a99['cxnIndex']===_0x4f63de);}this[_0x4b7517(0x2ba)]=_0x4f63de;}if(_0x5cd694<=0xa&&_0x176e97&&_0x36ccde){let _0x412f04=_0x176e97[_0x4b7517(0x24f)](),_0x49bd26=this[_0x4b7517(0xc0)](_0x412f04[_0x4b7517(0x2ce)],_0x412f04['cxnIndex']);return{'shapeId':_0x412f04['shapeId'],'cxnIndex':_0x412f04['cxnIndex'],'unitId':_0x412f04[_0x4b7517(0xae)],'subUnitId':_0x412f04[_0x4b7517(0x210)],'worldPoint':_0x36ccde,'angle':_0x49bd26};}return null;}[_0x1ed313(0xc0)](_0x379ae3,_0x3a4153){const _0x2b8cca=_0x1ed313;let _0x128df0=this[_0x2b8cca(0x219)][_0x2b8cca(0x16c)](this[_0x2b8cca(0x2a6)],this['_subUnitId'],_0x379ae3);if(!_0x128df0)return 0x0;let _0x4aa2d8=this[_0x2b8cca(0x1b5)][_0x2b8cca(0x2fc)]({'unitId':this['_unitId'],'subUnitId':this[_0x2b8cca(0x1ce)],'drawingId':_0x379ae3});if(!(_0x4aa2d8!=null&&_0x4aa2d8[_0x2b8cca(0x131)]))return 0x0;let {width:_0x333c61=0x0,height:_0x1e2792=0x0,flipX:_0x30be84=!0x1,flipY:_0x4a59e3=!0x1}=_0x4aa2d8[_0x2b8cca(0x131)];_0x128df0['updateContext']({'width':_0x333c61,'height':_0x1e2792});let _0x1d621a=_0x128df0[_0x2b8cca(0xca)]()['find'](_0x162589=>_0x162589[_0x2b8cca(0x29b)]===_0x3a4153);if(!_0x1d621a)return 0x0;let _0x3fa7e1=_0x1d621a[_0x2b8cca(0x29c)]/0xea60;return _0x30be84&&(_0x3fa7e1=0xb4-_0x3fa7e1),_0x4a59e3&&(_0x3fa7e1=-_0x3fa7e1),_0x3fa7e1=(_0x3fa7e1%0x168+0x168)%0x168,_0x3fa7e1;}[_0x1ed313(0x259)](){const _0x271617=_0x1ed313;for(let _0x12ac47 of this[_0x271617(0x15e)])_0x12ac47[_0x271617(0x230)]();this[_0x271617(0x15e)]=[],this[_0x271617(0x2ba)]=-0x1;}[_0x1ed313(0x230)](){this['_clearConnectionSites'](),super['dispose']();}};sr=Y([J(0x1,_0x697169(_0x134053)),J(0x2,_0x697169(_0x431f44)),J(0x3,_0x697169(_0x5486d2))],sr);let cr=class extends _0x17a082{constructor(_0x3428d4,_0x481a52,_0x53f319,_0x7933ee,_0x16e462){const _0xa9c0cc=_0x1ed313;super(),this[_0xa9c0cc(0x10d)]=_0x3428d4,this[_0xa9c0cc(0xc9)]=_0x481a52,this[_0xa9c0cc(0xd3)]=_0x53f319,this['_shapeService']=_0x7933ee,this[_0xa9c0cc(0x268)]=_0x16e462,q(this,'_copyInfo',void 0x0),this[_0xa9c0cc(0x1cb)](),this[_0xa9c0cc(0x2f8)]();}get['_focusedDrawings'](){const _0x499855=_0x1ed313;return this[_0x499855(0xd3)][_0x499855(0x149)]();}[_0x1ed313(0x2f8)](){const _0x20f2db=_0x1ed313;this[_0x20f2db(0x268)][_0x20f2db(0x16f)](({fromUnitId:_0x1273e9,fromSubUnitId:_0x46ff32,toUnitId:_0xa8c47f,toSubUnitId:_0x182ea3,idMap:_0x3dfbb7})=>{const _0x16ec5f=_0x20f2db;let _0x9434ea=[],_0x5e4c8a=[];for(let [_0x4b26b0,_0x373ede]of _0x3dfbb7['entries']()){let _0x1eff85=this[_0x16ec5f(0x101)][_0x16ec5f(0x16c)](_0x1273e9,_0x46ff32,_0x4b26b0);if(!_0x1eff85)continue;let _0x94082b=_0x1eff85[_0x16ec5f(0x1f1)](),_0x583c6b=JSON['parse'](JSON[_0x16ec5f(0x177)](_0x1eff85[_0x16ec5f(0x11c)]()));if(_0x583c6b[_0x16ec5f(0x158)]){var _0x3059a7,_0x52a7a0;let _0x707c9a=(_0x3059a7=_0x583c6b[_0x16ec5f(0x158)][_0x16ec5f(0x22a)])==null?void 0x0:_0x3059a7['shapeId'],_0x1950b7=(_0x52a7a0=_0x583c6b[_0x16ec5f(0x158)]['to'])==null?void 0x0:_0x52a7a0[_0x16ec5f(0x2ce)],_0x2d7166=_0x707c9a?_0x3dfbb7[_0x16ec5f(0x122)](_0x707c9a):!0x0,_0x352417=_0x1950b7?_0x3dfbb7[_0x16ec5f(0x122)](_0x1950b7):!0x0;_0x2d7166&&_0x707c9a&&_0x583c6b[_0x16ec5f(0x158)][_0x16ec5f(0x22a)]?_0x583c6b[_0x16ec5f(0x158)][_0x16ec5f(0x22a)]={..._0x583c6b['relation'][_0x16ec5f(0x22a)],'shapeId':_0x3dfbb7['get'](_0x707c9a)}:_0x583c6b[_0x16ec5f(0x158)][_0x16ec5f(0x22a)]=void 0x0,_0x352417&&_0x1950b7&&_0x583c6b['relation']['to']?_0x583c6b[_0x16ec5f(0x158)]['to']={..._0x583c6b[_0x16ec5f(0x158)]['to'],'shapeId':_0x3dfbb7[_0x16ec5f(0xbe)](_0x1950b7)}:_0x583c6b[_0x16ec5f(0x158)]['to']=void 0x0;}_0x9434ea[_0x16ec5f(0x2b9)]({'id':_0x32d1ef['id'],'params':{'unitId':_0xa8c47f,'subUnitId':_0x182ea3,'shapeId':_0x373ede,'shapeType':_0x94082b,'shapeData':_0x583c6b}}),_0x5e4c8a['push']({'id':_0x1e03c8['id'],'params':{'unitId':_0xa8c47f,'subUnitId':_0x182ea3,'shapeId':_0x373ede}});}return{'redos':_0x9434ea,'undos':_0x5e4c8a};});}[_0x1ed313(0x1cb)](){const _0x337f3a=_0x1ed313;this[_0x337f3a(0xf6)](this[_0x337f3a(0xc9)][_0x337f3a(0x2cd)]({'id':_0x337f3a(0x2b1),'onBeforeCopy':(_0x5efbe2,_0x469a74,_0x4b2733,_0x13a99f)=>{const _0x55c0f3=_0x337f3a;this[_0x55c0f3(0x265)]=null;let _0x4cb25e=this[_0x55c0f3(0x154)];if(_0x4cb25e['length']){let _0x1c99a6=_0x4cb25e[_0x55c0f3(0x205)](_0x4c0ed8=>_0x4c0ed8['drawingType']===_0x14c67a[_0x55c0f3(0x141)]);if(_0x1c99a6[_0x55c0f3(0x2b4)]===0x0)return;this[_0x55c0f3(0x265)]={'unitId':_0x5efbe2,'subUnitId':_0x469a74,'copyType':_0x13a99f,'drawings':_0x1c99a6};}else this[_0x55c0f3(0x146)](_0x5efbe2,_0x469a74,_0x4b2733,_0x13a99f);},'onPasteCells':(_0x582f75,_0x19b787,_0x56d73d,_0x3a4ddc)=>{const _0x57ee3f=_0x337f3a;if(!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x493444}=_0x3a4ddc;return _0x493444===_0x17c841[_0x57ee3f(0xab)]?this['_generatePasteMutations'](_0x19b787,this[_0x57ee3f(0x265)]['copyType']===_0x2ec4f6[_0x57ee3f(0x2a4)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x230b89=>this[_0x337f3a(0x265)]?this[_0x337f3a(0x244)](_0x230b89,this[_0x337f3a(0x265)][_0x337f3a(0x2c7)]===_0x2ec4f6[_0x337f3a(0x2a4)]):{'redos':[],'undos':[]}}));}[_0x1ed313(0x146)](_0x286f24,_0x5a0810,_0x5d34bc,_0x2a154b){const _0x13aa27=_0x1ed313;let _0x5b8068=this[_0x13aa27(0x10d)]['getSkeleton'](_0x286f24,_0x5a0810);if(!_0x5b8068)return;let _0x2bf296=_0x1144ca(_0x5b8068,_0x5d34bc);if(!_0x2bf296)return;let {startX:_0x5b7ab9,endX:_0x56b90,startY:_0x2a07b3,endY:_0x5f5182}=_0x2bf296,_0x40a1ac=this[_0x13aa27(0xd3)][_0x13aa27(0xed)](_0x286f24,_0x5a0810),_0x4eb60c=this[_0x13aa27(0x154)]['slice']();for(let [_0x2ce1fb,_0x46fdb9]of Object[_0x13aa27(0x1cc)](_0x40a1ac)){if(_0x46fdb9[_0x13aa27(0x1b7)]!==_0x14c67a[_0x13aa27(0x141)])continue;let {transform:_0x1a5b39}=_0x46fdb9;if(!_0x1a5b39)continue;let {left:_0xf7672d=0x0,top:_0x4e3383=0x0,width:_0x5cb1ae=0x0,height:_0x9d2196=0x0}=_0x1a5b39;_0x5b7ab9<=_0xf7672d&&_0x56b90>=_0xf7672d+_0x5cb1ae&&_0x2a07b3<=_0x4e3383&&_0x5f5182>=_0x4e3383+_0x9d2196&&_0x4eb60c[_0x13aa27(0x2b9)](_0x46fdb9);}_0x4eb60c[_0x13aa27(0x2b4)]>0x0&&(this[_0x13aa27(0x265)]={'unitId':_0x286f24,'subUnitId':_0x5a0810,'copyType':_0x2a154b,'copyRange':_0x5d34bc,'drawings':_0x4eb60c});}['_generatePasteMutations'](_0x2fe97b,_0x31100b){const _0x3867b6=_0x1ed313;let {unitId:_0x310a01,subUnitId:_0x153c8d,range:_0xe0c24a}=_0x2fe97b,_0xab50df=this[_0x3867b6(0x10d)][_0x3867b6(0xa9)](_0x310a01,_0x153c8d);if(!_0xab50df)return{'redos':[],'undos':[]};let _0x175cd8=_0x2500aa(_0xe0c24a),{unitId:_0x3c63f7,subUnitId:_0x57115f,copyRange:_0x14fc8a,drawings:_0x5e61c2}=this[_0x3867b6(0x265)],_0x4d2327=this[_0x3867b6(0x10d)][_0x3867b6(0xa9)](_0x3c63f7,_0x57115f);if(!_0x4d2327)return{'redos':[],'undos':[]};let _0x234b54;if(!_0x14fc8a){let _0x333254=0x1/0x0,_0x13fb1f=0x1/0x0;for(let _0x1a2014 of _0x5e61c2){var _0x3cbaf3;let {left:_0x2a4edb=0x0,top:_0x39c456=0x0}=(_0x3cbaf3=_0x1a2014[_0x3867b6(0x131)])==null?{}:_0x3cbaf3;_0x2a4edb<_0x333254&&(_0x333254=_0x2a4edb),_0x39c456<_0x13fb1f&&(_0x13fb1f=_0x39c456);}_0x333254!==0x1/0x0&&_0x13fb1f!==0x1/0x0&&(_0x234b54={'left':_0x333254,'top':_0x13fb1f});}let _0x26b909=new Map();if(!_0x31100b){for(let _0xabaf87 of _0x5e61c2)_0x26b909[_0x3867b6(0x182)](_0xabaf87['drawingId'],_0x436dba());}let _0x46e9b2=[],_0x7d92fc=[];for(let _0x36e58a of _0x5e61c2){let {drawingId:_0x2af679,transform:_0x4e1fb3,sheetTransform:_0x2897ca}=_0x36e58a;if(!_0x4e1fb3||!_0x2897ca)continue;let _0x3a8044=this[_0x3867b6(0x170)]({'transform':_0x4e1fb3,'sheetTransform':_0x2897ca},{'skeleton':_0x4d2327,'range':_0x14fc8a},{'skeleton':_0xab50df,'range':_0x175cd8},_0x234b54);if(_0x31100b){let {redos:_0x43b4be,undos:_0x3e6f96}=this[_0x3867b6(0x25e)]({'fromUnitId':_0x3c63f7,'fromSubUnitId':_0x57115f,'toUnitId':_0x310a01,'toSubUnitId':_0x153c8d,'drawing':_0x36e58a,'newTransforms':_0x3a8044});_0x46e9b2[_0x3867b6(0x2b9)](..._0x43b4be),_0x7d92fc[_0x3867b6(0x2b9)](..._0x3e6f96);continue;}let {redos:_0x5d3ca2,undos:_0x21b2b8}=this['_generateCopyPasteMutations']({'toUnitId':_0x310a01,'toSubUnitId':_0x153c8d,'drawing':_0x36e58a,'newTransforms':_0x3a8044,'newDrawingId':_0x26b909[_0x3867b6(0xbe)](_0x2af679),'idMap':_0x26b909});_0x46e9b2[_0x3867b6(0x2b9)](..._0x5d3ca2),_0x7d92fc[_0x3867b6(0x2b9)](..._0x21b2b8);}return{'redos':_0x46e9b2,'undos':_0x7d92fc};}[_0x1ed313(0x25e)](_0x52ee49){const _0x512029=_0x1ed313;let {fromUnitId:_0x56529d,fromSubUnitId:_0x18e946,toUnitId:_0xcdbaf,toSubUnitId:_0xa7efe,drawing:_0x2ec875,newTransforms:_0x1452be}=_0x52ee49,_0x18c5ff={..._0x2ec875,'unitId':_0xcdbaf,'subUnitId':_0xa7efe,'transform':_0x1452be[_0x512029(0x131)],'sheetTransform':_0x1452be[_0x512029(0x270)]};if(_0xcdbaf===_0x56529d&&_0xa7efe===_0x18e946){let {redo:_0x82ae06,undo:_0x1310c7,objects:_0x3753ce}=this[_0x512029(0xd3)]['getBatchUpdateOp']([_0x18c5ff]);return{'redos':[{'id':_0x39b433['id'],'params':{'unitId':_0xcdbaf,'subUnitId':_0xa7efe,'type':_0x12be8f['UPDATE'],'op':_0x82ae06,'objects':_0x3753ce}}],'undos':[{'id':_0x39b433['id'],'params':{'unitId':_0xcdbaf,'subUnitId':_0xa7efe,'type':_0x12be8f[_0x512029(0x14a)],'op':_0x1310c7,'objects':_0x3753ce}}]};}else{let _0xa7c326=this[_0x512029(0xd3)][_0x512029(0x2d8)]([_0x2ec875]),_0x1173d9=this['_sheetDrawingService']['getBatchAddOp']([_0x18c5ff]),_0x4ef3fa=this[_0x512029(0x101)][_0x512029(0x16c)](_0x2ec875[_0x512029(0xae)],_0x2ec875['subUnitId'],_0x2ec875[_0x512029(0xb2)]);if(!_0x4ef3fa)return{'redos':[],'undos':[]};let _0xe66a20=_0x4ef3fa['getShapeType'](),_0xcb3219=JSON['parse'](JSON['stringify'](_0x4ef3fa[_0x512029(0x11c)]()));return{'redos':[{'id':_0x39b433['id'],'params':{'unitId':_0x56529d,'subUnitId':_0x18e946,'type':_0x12be8f[_0x512029(0xb5)],'op':_0xa7c326['redo'],'objects':_0xa7c326[_0x512029(0x107)]}},{'id':_0x1e03c8['id'],'params':{'unitId':_0x56529d,'subUnitId':_0x18e946,'shapeId':_0x2ec875['drawingId']}},{'id':_0x39b433['id'],'params':{'unitId':_0xcdbaf,'subUnitId':_0xa7efe,'type':_0x12be8f[_0x512029(0x260)],'op':_0x1173d9['redo'],'objects':_0x1173d9['objects']}},{'id':_0x32d1ef['id'],'params':{'unitId':_0xcdbaf,'subUnitId':_0xa7efe,'shapeId':_0x2ec875[_0x512029(0xb2)],'shapeType':_0xe66a20,'shapeData':_0xcb3219}}],'undos':[{'id':_0x39b433['id'],'params':{'unitId':_0x56529d,'subUnitId':_0x18e946,'type':_0x12be8f[_0x512029(0x260)],'op':_0xa7c326[_0x512029(0x1d9)],'objects':_0xa7c326[_0x512029(0x107)]}},{'id':_0x32d1ef['id'],'params':{'unitId':_0x56529d,'subUnitId':_0x18e946,'shapeId':_0x2ec875['drawingId'],'shapeType':_0xe66a20,'shapeData':_0xcb3219}},{'id':_0x39b433['id'],'params':{'unitId':_0xcdbaf,'subUnitId':_0xa7efe,'type':_0x12be8f[_0x512029(0xb5)],'op':_0x1173d9[_0x512029(0x1d9)],'objects':_0x1173d9[_0x512029(0x107)]}},{'id':_0x1e03c8['id'],'params':{'unitId':_0xcdbaf,'subUnitId':_0xa7efe,'shapeId':_0x2ec875[_0x512029(0xb2)]}}]};}}[_0x1ed313(0x1da)](_0x5ddefc){const _0x427bd3=_0x1ed313;let {toUnitId:_0x26ada3,toSubUnitId:_0x3a9973,drawing:_0x5b3b5e,newTransforms:_0x12c440,newDrawingId:_0x5e06cb,idMap:_0x106a7d}=_0x5ddefc,_0x5fa49f={..._0x5b3b5e,'unitId':_0x26ada3,'subUnitId':_0x3a9973,'drawingId':_0x5e06cb,'transform':_0x12c440[_0x427bd3(0x131)],'sheetTransform':_0x12c440[_0x427bd3(0x270)]},{redo:_0x1e1445,undo:_0x2b8268,objects:_0x2a3f81}=this[_0x427bd3(0xd3)]['getBatchAddOp']([_0x5fa49f]),_0x250c5e=this[_0x427bd3(0x101)][_0x427bd3(0x16c)](_0x5b3b5e[_0x427bd3(0xae)],_0x5b3b5e[_0x427bd3(0x210)],_0x5b3b5e['drawingId']);if(!_0x250c5e)return{'redos':[],'undos':[]};let _0x4d453a=_0x250c5e[_0x427bd3(0x1f1)](),_0x3012b2=JSON[_0x427bd3(0x2f0)](JSON[_0x427bd3(0x177)](_0x250c5e[_0x427bd3(0x11c)]()));if(_0x3012b2[_0x427bd3(0x158)]){var _0x3e6f94,_0x48d693;let _0xb0f3b4=(_0x3e6f94=_0x3012b2[_0x427bd3(0x158)][_0x427bd3(0x22a)])==null?void 0x0:_0x3e6f94[_0x427bd3(0x2ce)],_0x23d873=(_0x48d693=_0x3012b2['relation']['to'])==null?void 0x0:_0x48d693[_0x427bd3(0x2ce)],_0x55cfff=_0xb0f3b4?_0x106a7d[_0x427bd3(0x122)](_0xb0f3b4):!0x0,_0x4c4392=_0x23d873?_0x106a7d[_0x427bd3(0x122)](_0x23d873):!0x0;_0x55cfff&&_0xb0f3b4&&_0x3012b2['relation'][_0x427bd3(0x22a)]?_0x3012b2[_0x427bd3(0x158)][_0x427bd3(0x22a)]={..._0x3012b2[_0x427bd3(0x158)]['from'],'shapeId':_0x106a7d[_0x427bd3(0xbe)](_0xb0f3b4)}:_0x3012b2[_0x427bd3(0x158)]['from']=void 0x0,_0x4c4392&&_0x23d873&&_0x3012b2[_0x427bd3(0x158)]['to']?_0x3012b2[_0x427bd3(0x158)]['to']={..._0x3012b2[_0x427bd3(0x158)]['to'],'shapeId':_0x106a7d[_0x427bd3(0xbe)](_0x23d873)}:_0x3012b2[_0x427bd3(0x158)]['to']=void 0x0;}return{'redos':[{'id':_0x39b433['id'],'params':{'unitId':_0x26ada3,'subUnitId':_0x3a9973,'type':_0x12be8f[_0x427bd3(0x260)],'op':_0x1e1445,'objects':_0x2a3f81}},{'id':_0x32d1ef['id'],'params':{'unitId':_0x26ada3,'subUnitId':_0x3a9973,'shapeId':_0x5e06cb,'shapeType':_0x4d453a,'shapeData':_0x3012b2}}],'undos':[{'id':_0x39b433['id'],'params':{'unitId':_0x26ada3,'subUnitId':_0x3a9973,'type':_0x12be8f[_0x427bd3(0xb5)],'op':_0x2b8268,'objects':_0x2a3f81}},{'id':_0x1e03c8['id'],'params':{'unitId':_0x26ada3,'subUnitId':_0x3a9973,'shapeId':_0x5e06cb}}]};}['_updateTransform'](_0x3530b1,_0x39a8a3,_0x6602f3,_0x58853b){const _0xbfadba=_0x1ed313;var _0x1cc4a2;let {range:_0x2d75d4,skeleton:_0x37f92d}=_0x39a8a3,{range:_0x2b3750,skeleton:_0x4c1191}=_0x6602f3,{transform:_0x2fb6da,sheetTransform:_0x451c27}=_0x3530b1,_0x169780={..._0x2fb6da};if(_0x2d75d4){let _0x406f76=_0x1144ca(_0x37f92d,_0x2d75d4),_0xbae603=_0x1144ca(_0x4c1191,_0x2b3750);if(_0x406f76&&_0xbae603){var _0x33e01f,_0xda070f;let _0xff44fb=_0xbae603[_0xbfadba(0x1aa)]-_0x406f76[_0xbfadba(0x1aa)],_0x32d881=_0xbae603[_0xbfadba(0x20c)]-_0x406f76[_0xbfadba(0x20c)];_0x169780[_0xbfadba(0x2a8)]=((_0x33e01f=_0x169780['left'])==null?0x0:_0x33e01f)+_0xff44fb,_0x169780[_0xbfadba(0x180)]=((_0xda070f=_0x169780[_0xbfadba(0x180)])==null?0x0:_0xda070f)+_0x32d881;}}else{let _0x34af90=_0x1144ca(_0x4c1191,_0x2b3750);if(_0x58853b&&_0x34af90){var _0x3edc95,_0x3f502f;let _0xabcc4e=((_0x3edc95=_0x169780[_0xbfadba(0x2a8)])==null?0x0:_0x3edc95)-_0x58853b['left'],_0x2fb1ce=((_0x3f502f=_0x169780[_0xbfadba(0x180)])==null?0x0:_0x3f502f)-_0x58853b[_0xbfadba(0x180)];_0x169780[_0xbfadba(0x2a8)]=_0x34af90[_0xbfadba(0x1aa)]+_0xabcc4e,_0x169780['top']=_0x34af90['startY']+_0x2fb1ce;}else _0x169780[_0xbfadba(0x2a8)]=_0x34af90==null?void 0x0:_0x34af90['startX'],_0x169780[_0xbfadba(0x180)]=_0x34af90==null?void 0x0:_0x34af90[_0xbfadba(0x20c)];}return{'transform':_0x169780,'sheetTransform':(_0x1cc4a2=_0x2d6891(_0x169780,_0x4c1191))==null?_0x451c27:_0x1cc4a2};}};cr=Y([J(0x0,_0x697169(_0x567ef5)),J(0x1,_0x697169(_0x3bf064)),J(0x2,_0x697169(_0x513fd6)),J(0x3,_0x697169(_0x5486d2)),J(0x4,_0x697169(_0x590913))],cr);var lr=class extends _0x647470{constructor(_0x18148d,_0x11f00c){const _0xf53b14=_0x1ed313;super(_0x18148d,_0x11f00c),q(this,_0xf53b14(0x13c),null),q(this,_0xf53b14(0x258),null),q(this,_0xf53b14(0x2a6),null),q(this,'_subUnitId',null),q(this,_0xf53b14(0x171),!0x1),_0x11f00c&&this[_0xf53b14(0x27b)](_0x11f00c);}[_0x1ed313(0x249)](){const _0x25f587=_0x1ed313;return{'unitId':this[_0x25f587(0x2a6)],'subUnitId':this[_0x25f587(0x1ce)],'drawingId':this['_shapeId']};}['setShapeProps'](_0x5380d5){const _0x418402=_0x1ed313;_0x5380d5['shapeId']!==void 0x0&&(this[_0x418402(0x13c)]=_0x5380d5['shapeId']),_0x5380d5[_0x418402(0xae)]!==void 0x0&&(this[_0x418402(0x2a6)]=_0x5380d5['unitId']),_0x5380d5[_0x418402(0x210)]!==void 0x0&&(this[_0x418402(0x1ce)]=_0x5380d5[_0x418402(0x210)]),_0x5380d5[_0x418402(0x19e)]!==void 0x0&&(this[_0x418402(0x171)]=_0x5380d5[_0x418402(0x19e)]),this[_0x418402(0x10e)]({'width':_0x5380d5['width'],'height':_0x5380d5['height']});}['_draw'](_0x116d40){const _0x27edfd=_0x1ed313;_0x103453[_0x27edfd(0x2fb)](_0x116d40,{'radius':_0x42c7e9[_0x27edfd(0x1c7)],'fill':_0x42c7e9['cxnPointFill'],'stroke':_0x42c7e9[_0x27edfd(0x1cf)],'strokeWidth':_0x42c7e9[_0x27edfd(0x225)],'evented':!0x0});}};let ur=class extends _0x17a082{constructor(_0x3fc23f,_0x5367fa,_0x1427ed,_0x4e4c46,_0x5d9f28,_0x256c64,_0x1d85e4,_0x32c6bf){const _0x10000b=_0x1ed313;super(),this[_0x10000b(0x2a2)]=_0x3fc23f,this[_0x10000b(0x1df)]=_0x5367fa,this['_renderManagerService']=_0x1427ed,this[_0x10000b(0x1b5)]=_0x4e4c46,this['_univerInstanceService']=_0x5d9f28,this[_0x10000b(0x219)]=_0x256c64,this[_0x10000b(0x299)]=_0x1d85e4,this[_0x10000b(0xfd)]=_0x32c6bf,q(this,_0x10000b(0x136),void 0x0),q(this,_0x10000b(0x2a6),void 0x0),q(this,_0x10000b(0x1ce),void 0x0),q(this,_0x10000b(0x28b),[]),q(this,_0x10000b(0x111),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x10000b(0x25a),void 0x0),q(this,_0x10000b(0x282),!0x1),q(this,'_isDrawingShapePointDown',!0x1),q(this,_0x10000b(0x254),!0x1),q(this,_0x10000b(0xfa),void 0x0),q(this,'_cxtHandlerPointerUp',void 0x0),q(this,_0x10000b(0xc8),null),this['_initialize']();}[_0x1ed313(0x292)](){const _0x6852f2=_0x1ed313;this['_registerDrawingFocusChangeHandler'](),this[_0x6852f2(0x2c1)]();}[_0x1ed313(0x18e)](){const _0x41af8e=_0x1ed313;if(!this[_0x41af8e(0x2a6)]||!this[_0x41af8e(0x1ce)]||!this['_activeShapeId'])return;let _0x214260={'unitId':this['_unitId'],'subUnitId':this[_0x41af8e(0x1ce)],'drawingId':this['_activeShapeId']},{transform:_0xf5b7c2}=this['_drawingManagerService'][_0x41af8e(0x2fc)](_0x214260);if(_0xf5b7c2)return{'left':_0xf5b7c2[_0x41af8e(0x2a8)]||0x0,'top':_0xf5b7c2['top']||0x0,'width':_0xf5b7c2[_0x41af8e(0x2ed)]||0x0,'height':_0xf5b7c2[_0x41af8e(0x24e)]||0x0,'flipX':_0xf5b7c2[_0x41af8e(0x14c)]||!0x1,'flipY':_0xf5b7c2['flipY']||!0x1,'angle':_0xf5b7c2[_0x41af8e(0x2f1)]};}['_addShapeConnectorHandlerObjects'](){const _0xb0387e=_0x1ed313;if(this[_0xb0387e(0x2a6)]===void 0x0||this['_subUnitId']===void 0x0||this[_0xb0387e(0x136)]===void 0x0)return;let _0x342f16=this['_renderManagerService'][_0xb0387e(0x187)](this[_0xb0387e(0x2a6)]);if(!_0x342f16||!_0x342f16[_0xb0387e(0x1e4)](_0x48e10a)[_0xb0387e(0x13e)]())return;let {scene:_0x2ce48d}=_0x342f16,_0x33275e=this[_0xb0387e(0x18e)]();if(!_0x33275e)return;let _0x3857ce=this[_0xb0387e(0x219)][_0xb0387e(0x16c)](this[_0xb0387e(0x2a6)],this[_0xb0387e(0x1ce)],this[_0xb0387e(0x136)]);if(!_0x3857ce||!_0x5cb95b(_0x3857ce['getShapeType']()))return;let _0x2340db=_0x3857ce['getConnectorLinePoints']();if(_0x2340db[_0xb0387e(0x2b4)]<0x2)return;let _0x25b684=new _0x397de9(_0x33275e),_0x391ea2=_0x2340db[0x0],_0x224c00=_0x2340db[_0x2340db[_0xb0387e(0x2b4)]-0x1],_0x1270cf=_0x25b684[_0xb0387e(0x165)](_0x391ea2),_0x24477b=_0x25b684[_0xb0387e(0x165)](_0x224c00);this[_0xb0387e(0x283)](_0x2ce48d,{..._0x1270cf},!0x0),this['_addShapeConnectorHandlerObject'](_0x2ce48d,{..._0x24477b},!0x1);}[_0x1ed313(0x283)](_0x2915d5,_0x3820fb,_0x51843c){const _0x837f49=_0x1ed313;if(this[_0x837f49(0x136)]===void 0x0||this['_unitId']===void 0x0||this[_0x837f49(0x1ce)]===void 0x0)return;let _0xc76db5=_0x837f49(0x12e)+this['_unitId']+'-'+this[_0x837f49(0x1ce)]+'-'+this[_0x837f49(0x136)]+'-'+(_0x51843c?_0x837f49(0x1e7):_0x837f49(0x2db)),_0x1becac=_0x2915d5['getObjectIncludeInGroup'](_0xc76db5);if(_0x1becac){_0x1becac[_0x837f49(0x10e)]({'left':_0x3820fb['x']-_0x42c7e9[_0x837f49(0x1c7)],'top':_0x3820fb['y']-_0x42c7e9['cxnPointRadius']});return;}let _0xc53fce=new lr(_0xc76db5,{'left':_0x3820fb['x']-_0x42c7e9[_0x837f49(0x1c7)],'top':_0x3820fb['y']-_0x42c7e9[_0x837f49(0x1c7)],'shapeId':this[_0x837f49(0x136)],'unitId':this[_0x837f49(0x2a6)],'subUnitId':this[_0x837f49(0x1ce)],'isStartConnectorPoint':_0x51843c,'width':_0x42c7e9[_0x837f49(0x1c7)]*0x2,'height':_0x42c7e9['cxnPointRadius']*0x2,'zIndex':_0x72823c+0x1,'evented':!0x0});this[_0x837f49(0x28b)][_0x837f49(0x2b9)](_0xc53fce),this[_0x837f49(0x13d)](_0xc53fce,_0x2915d5,_0x51843c),_0x2915d5[_0x837f49(0x14d)](_0xc53fce,_0x72823c+0x1);}[_0x1ed313(0x2d2)](_0x1ffdf0,_0x13dd3c){const _0x5ae844=_0x1ed313;var _0xf4ce23;let _0x5801f5={'x':0x0,'y':0x0};if(!_0x1ffdf0||!_0x13dd3c)return _0x5801f5;let _0x1e4dc4=this[_0x5ae844(0x15b)][_0x5ae844(0x187)](_0x1ffdf0);if(!_0x1e4dc4||!_0x1e4dc4['with'](_0x48e10a)['getSkeleton'](_0x13dd3c))return _0x5801f5;let _0x562786=_0x1e4dc4[_0x5ae844(0x1e4)](_0x55a101),_0x240257=_0x562786==null?void 0x0:_0x562786[_0x5ae844(0x21a)]();if(!_0x240257)return _0x5801f5;let _0x444f9a=(_0xf4ce23=this[_0x5ae844(0x2a5)][_0x5ae844(0x25f)](_0x1ffdf0))==null?void 0x0:_0xf4ce23[_0x5ae844(0x129)](_0x13dd3c);if(!_0x444f9a)return _0x5801f5;let _0x3ba453=_0x4b381d(_0x240257[_0x5ae844(0xf0)],_0x240257['sheetViewStartColumn'],_0x1e4dc4[_0x5ae844(0xdb)],_0x444f9a);return _0x3ba453?{'x':_0x3ba453[_0x5ae844(0x153)],'y':_0x3ba453[_0x5ae844(0x1f2)]}:_0x5801f5;}[_0x1ed313(0x2e5)](_0x5d22f1,_0x2ff10b){const _0x1a741f=_0x1ed313;var _0x441f48,_0x3ec632;let _0x9e43d1=(_0x441f48=this['_univerInstanceService'][_0x1a741f(0x25f)](_0x5d22f1))==null?void 0x0:_0x441f48[_0x1a741f(0x129)](_0x2ff10b);return(_0x3ec632=_0x9e43d1==null?void 0x0:_0x9e43d1[_0x1a741f(0x138)]())==null?0x1:_0x3ec632;}[_0x1ed313(0xec)](_0x30c11f,_0x5f1337,_0x2e4695,_0xf4012d,_0x43c1e6){const _0x268fbf=_0x1ed313;this[_0x268fbf(0xfa)]['unsubscribe'](),this[_0x268fbf(0x2e2)][_0x268fbf(0xcf)](),this[_0x268fbf(0x299)][_0x268fbf(0x2e8)]();let _0x1f935e=this[_0x268fbf(0xc8)];this[_0x268fbf(0xfd)]['endConnectionDetection']();let _0x4ae47b=this[_0x268fbf(0x2d2)](this[_0x268fbf(0x2a6)],this[_0x268fbf(0x1ce)]),_0x121541=this['_getZoomRatio'](this[_0x268fbf(0x2a6)],this[_0x268fbf(0x1ce)]),_0x38cc0a={'x':_0x2e4695[_0x268fbf(0x22b)]/_0x121541+_0x4ae47b['x'],'y':_0x2e4695[_0x268fbf(0x133)]/_0x121541+_0x4ae47b['y']},_0x5417b1=_0x1f935e?_0x1f935e[_0x268fbf(0x161)]:_0x38cc0a,_0x2d34d6=_0xf4012d?this[_0x268fbf(0x25a)][_0x268fbf(0x1f7)]():this[_0x268fbf(0x25a)][_0x268fbf(0x26e)](),_0x458e15=this[_0x268fbf(0x25a)][_0x268fbf(0x1f1)]();_0x2d34d6?this[_0x268fbf(0x2b2)](_0x2d34d6,_0x5417b1,_0xf4012d,_0x1f935e,_0x43c1e6):this['_handleFreeEndpointPointerUp'](_0x5f1337,_0x5417b1,_0xf4012d,_0x1f935e,_0x43c1e6,_0x458e15),this[_0x268fbf(0x282)]=!0x1,this['_hasReset']=!0x1,this[_0x268fbf(0xc8)]=null,_0x30c11f[_0x268fbf(0x17c)]();}[_0x1ed313(0x128)](_0x5dbf53,_0x2b4682,_0x511dfe,_0x2ea100,_0x3192a9,_0x3be1d4){const _0x1663da=_0x1ed313;let _0x398fa4=_0x3be1d4===_0x54d8d8[_0x1663da(0x248)]||_0x3be1d4===_0x54d8d8[_0x1663da(0x1fe)],_0x24b066=_0x511dfe?_0x2b4682:_0x5dbf53,_0x31775b=_0x511dfe?_0x5dbf53:_0x2b4682,_0x20af73=this[_0x1663da(0x25a)][_0x1663da(0xac)](),_0x2302a1=_0x10e5ba(this[_0x1663da(0x25a)]['getShapeType']()),_0x54641f=_0x397de9[_0x1663da(0x2a9)](_0x20af73,_0x2302a1),_0x55de87=_0x398fa4?_0x397de9['computeStraightConnectorLayout'](_0x24b066,_0x31775b):_0x397de9['computeConnectorResizeLayout'](_0x5dbf53,_0x2b4682,_0x511dfe,_0x54641f);_0x2ea100?this[_0x1663da(0xd2)](_0x55de87,_0x2ea100,_0x511dfe,_0x3192a9):this[_0x1663da(0x288)](_0x55de87,_0x3192a9);}[_0x1ed313(0x2b2)](_0x516ffa,_0x80664e,_0x14b477,_0x51cdd5,_0x29a899){const _0x5e04df=_0x1ed313;let _0x404e99=this[_0x5e04df(0x1e9)](_0x516ffa);if(!_0x404e99)return;let _0x48bca6=_0x51cdd5?_0x51cdd5['angle']:this[_0x5e04df(0x1a1)](_0x404e99['point'],_0x80664e),_0x1bbdb3;if(_0x51cdd5){let _0x346bcf=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x51cdd5[_0x5e04df(0xae)],'subUnitId':_0x51cdd5[_0x5e04df(0x210)],'drawingId':_0x51cdd5[_0x5e04df(0x2ce)]});if(_0x346bcf!=null&&_0x346bcf[_0x5e04df(0x131)]){let {left:_0x439534=0x0,top:_0x3bf5ce=0x0,width:_0x5fccf2=0x0,height:_0xd8c59d=0x0,angle:_0x42e4cd}=_0x346bcf[_0x5e04df(0x131)];_0x1bbdb3=_0x3313a8({'left':_0x439534,'top':_0x3bf5ce,'width':_0x5fccf2,'height':_0xd8c59d},_0x42e4cd||0x0);}else _0x1bbdb3={'left':_0x80664e['x'],'top':_0x80664e['y'],'width':0x0,'height':0x0};}else _0x1bbdb3={'left':_0x80664e['x'],'top':_0x80664e['y'],'width':0x0,'height':0x0};let _0x3c79ec={'point':_0x80664e,'angle':_0x48bca6,'bounds':_0x1bbdb3},_0x4e38cf=_0x14b477?_0x3c79ec:_0x404e99,_0x21e2e0=_0x14b477?_0x404e99:_0x3c79ec,_0xbd91d=this[_0x5e04df(0x25a)][_0x5e04df(0x1f1)](),_0x576275=_0x36ebbb(_0x4e38cf,_0x21e2e0,_0xbd91d);this[_0x5e04df(0x25a)][_0x5e04df(0xf5)]();let _0x41d071=_0x9e1c6d(_0x576275,_0xbd91d);_0x51cdd5?this['_executeConnectedRouteConnectionCommand'](_0x41d071,_0x51cdd5,_0x516ffa,_0x14b477,_0x29a899):this[_0x5e04df(0x109)](_0x41d071,_0x516ffa,_0x14b477,_0x29a899);}[_0x1ed313(0xd2)](_0x3517e4,_0x258e5b,_0x2ed506,_0x2450cc){const _0x19ccb0=_0x1ed313;let _0x13d140=this[_0x19ccb0(0x25a)][_0x19ccb0(0x11c)]()['relation'],_0x487b7b={..._0x13d140},_0x2bade4={'shapeId':_0x258e5b[_0x19ccb0(0x2ce)],'cxnIndex':_0x258e5b[_0x19ccb0(0x2bf)]};_0x2ed506?_0x487b7b[_0x19ccb0(0x22a)]=_0x2bade4:_0x487b7b['to']=_0x2bade4;let _0x3618ef=this[_0x19ccb0(0x25a)][_0x19ccb0(0x1f1)](),_0x411c48=_0x9e1c6d(_0x3517e4[_0x19ccb0(0x279)],_0x3618ef),_0x20ce65={'unitId':this[_0x19ccb0(0x2a6)],'subUnitId':this[_0x19ccb0(0x1ce)],'connectorShapeId':this[_0x19ccb0(0x136)],'width':_0x3517e4[_0x19ccb0(0x2a0)][_0x19ccb0(0x2ed)],'height':_0x3517e4[_0x19ccb0(0x2a0)][_0x19ccb0(0x24e)],'left':_0x3517e4[_0x19ccb0(0x2a0)]['left'],'top':_0x3517e4[_0x19ccb0(0x2a0)][_0x19ccb0(0x180)],'flipX':_0x3517e4[_0x19ccb0(0x2a0)]['flipX']||!0x1,'flipY':_0x3517e4['worldRect'][_0x19ccb0(0x209)]||!0x1,'newAdjustValues':_0x411c48['adjustValues'],'oldAdjustValues':_0x2450cc,'oldRelation':_0x13d140,'newRelation':_0x487b7b,'newLineType':_0x411c48[_0x19ccb0(0x132)],'oldLineType':_0x3618ef};this[_0x19ccb0(0x1df)][_0x19ccb0(0x12c)](_0x31e98d['id'],_0x20ce65);}[_0x1ed313(0x288)](_0x5a4395,_0x5b717d){const _0x35e32f=_0x1ed313;let _0x236102=this[_0x35e32f(0x25a)][_0x35e32f(0x1f1)](),_0xc227a2=_0x9e1c6d(_0x5a4395[_0x35e32f(0x279)],_0x236102),_0x52dd80={'unitId':this[_0x35e32f(0x2a6)],'subUnitId':this[_0x35e32f(0x1ce)],'shapeId':this[_0x35e32f(0x136)],'width':_0x5a4395[_0x35e32f(0x2a0)][_0x35e32f(0x2ed)],'height':_0x5a4395[_0x35e32f(0x2a0)]['height'],'left':_0x5a4395[_0x35e32f(0x2a0)][_0x35e32f(0x2a8)],'top':_0x5a4395[_0x35e32f(0x2a0)][_0x35e32f(0x180)],'flipX':_0x5a4395[_0x35e32f(0x2a0)]['flipX']||!0x1,'flipY':_0x5a4395['worldRect'][_0x35e32f(0x209)]||!0x1,'angle':_0x5a4395[_0x35e32f(0x2a0)]['angle']||0x0,'newAdjustValues':_0xc227a2[_0x35e32f(0x206)],'oldAdjustValues':_0x5b717d,'newLineType':_0xc227a2[_0x35e32f(0x132)],'oldLineType':_0x236102};this[_0x35e32f(0x1df)]['executeCommand'](_0x6953a0['id'],_0x52dd80);}[_0x1ed313(0x214)](_0x20e129,_0x41f667,_0x3215d6,_0xb6f295,_0x43d4a9){const _0x5a5ac6=_0x1ed313;let _0xd65938=this[_0x5a5ac6(0x25a)]['getShapeData']()[_0x5a5ac6(0x158)],_0x542677={..._0xd65938},_0xc8399={'shapeId':_0x41f667[_0x5a5ac6(0x2ce)],'cxnIndex':_0x41f667[_0x5a5ac6(0x2bf)]};_0xb6f295?(_0x542677[_0x5a5ac6(0x22a)]=_0xc8399,_0x542677['to']=_0x3215d6):(_0x542677[_0x5a5ac6(0x22a)]=_0x3215d6,_0x542677['to']=_0xc8399);let _0x1875d7={'unitId':this[_0x5a5ac6(0x2a6)],'subUnitId':this[_0x5a5ac6(0x1ce)],'connectorShapeId':this['_activeShapeId'],'width':_0x20e129[_0x5a5ac6(0x2a0)]['width'],'height':_0x20e129['worldRect']['height'],'left':_0x20e129['worldRect'][_0x5a5ac6(0x2a8)],'top':_0x20e129[_0x5a5ac6(0x2a0)][_0x5a5ac6(0x180)],'flipX':_0x20e129[_0x5a5ac6(0x2a0)][_0x5a5ac6(0x14c)]||!0x1,'flipY':_0x20e129[_0x5a5ac6(0x2a0)][_0x5a5ac6(0x209)]||!0x1,'oldAdjustValues':_0x43d4a9,'newAdjustValues':_0x20e129['adjustValues'],'newLineType':_0x20e129['lineType'],'rotation':_0x20e129['rotation'],'oldRelation':_0xd65938,'newRelation':_0x542677};this['_commandService'][_0x5a5ac6(0x12c)](_0x31e98d['id'],_0x1875d7);}[_0x1ed313(0x109)](_0x2b3efd,_0x1e71a6,_0x3e9e4,_0x4bb382){const _0x5e80bf=_0x1ed313;let _0x19de06=this[_0x5e80bf(0x25a)][_0x5e80bf(0x11c)]()[_0x5e80bf(0x158)],_0x55892c={};_0x3e9e4?(_0x55892c['to']=_0x1e71a6,_0x55892c[_0x5e80bf(0x22a)]=void 0x0):(_0x55892c['from']=_0x1e71a6,_0x55892c['to']=void 0x0);let _0x262d85={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x5e80bf(0x136)],'width':_0x2b3efd[_0x5e80bf(0x2a0)][_0x5e80bf(0x2ed)],'height':_0x2b3efd[_0x5e80bf(0x2a0)][_0x5e80bf(0x24e)],'left':_0x2b3efd['worldRect']['left'],'top':_0x2b3efd[_0x5e80bf(0x2a0)]['top'],'flipX':_0x2b3efd[_0x5e80bf(0x2a0)][_0x5e80bf(0x14c)]||!0x1,'flipY':_0x2b3efd[_0x5e80bf(0x2a0)][_0x5e80bf(0x209)]||!0x1,'oldAdjustValues':_0x4bb382,'newAdjustValues':_0x2b3efd[_0x5e80bf(0x206)],'newLineType':_0x2b3efd['lineType'],'rotation':_0x2b3efd['rotation'],'oldRelation':_0x19de06,'newRelation':_0x55892c};this[_0x5e80bf(0x1df)][_0x5e80bf(0x12c)](_0x31e98d['id'],_0x262d85);}[_0x1ed313(0x13d)](_0x3d79a1,_0x35664e,_0xb811fc){const _0x5c4b41=_0x1ed313;this['disposeWithMe'](_0x11cfa6(_0x3d79a1[_0x5c4b41(0x1bb)]['subscribeEvent']((_0x2986cf,_0x264cba)=>{const _0x390957=_0x5c4b41;let _0x5974d0=_0x3d79a1[_0x390957(0x249)]();if(this[_0x390957(0x25a)]=this['_sheetsShapeService']['getShapeModel'](_0x5974d0[_0x390957(0xae)],_0x5974d0[_0x390957(0x210)],_0x5974d0[_0x390957(0xb2)]),!this[_0x390957(0x25a)])return;let _0x32130e={};this[_0x390957(0x25a)]['getAdjustNames']()[_0x390957(0x190)](_0x5b6fa9=>{const _0x41353b=_0x390957;let _0x1a05fa=this[_0x41353b(0x25a)]['getAdjustValueByName'](_0x5b6fa9);_0x1a05fa!==void 0x0&&(_0x32130e[_0x5b6fa9]=_0x1a05fa);});let _0x8c0da8=this[_0x390957(0x18e)]();if(!_0x8c0da8)return;this[_0x390957(0x111)]={..._0x8c0da8};let _0x38a8c8=new _0x397de9(this[_0x390957(0x111)]),_0x2b9d0e=_0x45a0e1({'unitId':this[_0x390957(0x2a6)],'subUnitId':this[_0x390957(0x1ce)],'drawingId':this[_0x390957(0x136)]}),_0x3b279a=_0x35664e['getObjectIncludeInGroup'](_0x2b9d0e);this[_0x390957(0x282)]=!0x0,_0x35664e[_0x390957(0x255)](),this['_sheetBasicShapeConnectionPointController']['startConnectionDetection'](_0x35664e,this[_0x390957(0x2a6)],this[_0x390957(0x1ce)],this['_activeShapeId']),this[_0x390957(0xc8)]=null;let _0x15d59e=this[_0x390957(0x25a)][_0x390957(0xac)](),_0x5184b1=_0x15d59e[0x0],_0x5d5fb4=_0x15d59e[_0x15d59e['length']-0x1],_0x4713d0=_0xb811fc?_0x38a8c8[_0x390957(0x165)](_0x5d5fb4):_0x38a8c8['localToWorld'](_0x5184b1);this[_0x390957(0xfa)]=_0x35664e[_0x390957(0xc6)][_0x390957(0x226)]((_0x2b63e5,_0x5cf2e4)=>{const _0x2bf01e=_0x390957;if(!this[_0x2bf01e(0x282)]||!this[_0x2bf01e(0x25a)])return;this[_0x2bf01e(0x254)]||(this['_sheetShapeAdjustController'][_0x2bf01e(0x1f0)](),this[_0x2bf01e(0x25a)][_0x2bf01e(0x1d3)](),this[_0x2bf01e(0x254)]=!0x0);let _0x2f1e59=this[_0x2bf01e(0x2d2)](this[_0x2bf01e(0x2a6)],this[_0x2bf01e(0x1ce)]),_0x649231=this[_0x2bf01e(0x2e5)](this[_0x2bf01e(0x2a6)],this[_0x2bf01e(0x1ce)]),_0x324bbe={'x':_0x2b63e5[_0x2bf01e(0x22b)]/_0x649231+_0x2f1e59['x'],'y':_0x2b63e5['offsetY']/_0x649231+_0x2f1e59['y']},_0x1e36ee=this[_0x2bf01e(0xfd)]['updateConnectionDetection'](_0x324bbe);if(_0x1e36ee){let {shapeId:_0x5af43,unitId:_0x1a0feb,subUnitId:_0xfc84fb}=_0x1e36ee;if(_0x5af43&&_0x1a0feb&&_0xfc84fb){let _0xb39ff=_0x45a0e1({'unitId':_0x1a0feb,'subUnitId':_0xfc84fb,'drawingId':_0x5af43});_0x1e36ee[_0x2bf01e(0x2f1)]=(_0x35664e['getObjectIncludeInGroup'](_0xb39ff)[_0x2bf01e(0x2f1)]||0x0)+_0x1e36ee[_0x2bf01e(0x2f1)];}}this['_currentConnectionTarget']=_0x1e36ee;let _0x5116d6=_0xb811fc?this[_0x2bf01e(0x25a)]['getEndConnectInfo']():this[_0x2bf01e(0x25a)][_0x2bf01e(0x26e)]();if(_0x5116d6){this[_0x2bf01e(0x13b)](_0x5116d6,_0x324bbe,_0xb811fc,_0x3b279a,_0x3d79a1);return;}this[_0x2bf01e(0x114)](_0x324bbe,_0x4713d0,_0xb811fc,_0x3b279a,_0x3d79a1);}),this[_0x390957(0x2e2)]=_0x35664e['onPointerUp$'][_0x390957(0x226)]((_0x448d2a,_0x4a4b0f)=>{const _0x550ce2=_0x390957;this[_0x550ce2(0xec)](_0x35664e,_0x4713d0,_0x448d2a,_0xb811fc,_0x32130e);}),_0x264cba[_0x390957(0x1f3)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x779228,_0x3065b0,_0x295799){const _0x502e66=_0x1ed313;let _0x2e6e18=this[_0x502e66(0x219)][_0x502e66(0xa6)](_0x779228,_0x3065b0,_0x295799);if(!_0x2e6e18||_0x2e6e18[_0x502e66(0x2b4)]===0x0)return;let _0x83c634=this[_0x502e66(0x15b)][_0x502e66(0x187)](_0x779228);if(!_0x83c634)return;let {scene:_0x1335cf}=_0x83c634;for(let _0x555c63 of _0x2e6e18){let _0x4745a3=_0x555c63[_0x502e66(0x1a3)],_0x550db3=this[_0x502e66(0x219)][_0x502e66(0x16c)](_0x779228,_0x3065b0,_0x4745a3);if(!_0x550db3)continue;let _0x54f4c2=_0x550db3[_0x502e66(0x26e)](),_0x537fd2=_0x550db3[_0x502e66(0x1f7)](),_0xfa0dcc=(_0x54f4c2==null?void 0x0:_0x54f4c2[_0x502e66(0x2ce)])===_0x295799,_0x2f457e=_0x45a0e1({'unitId':_0x779228,'subUnitId':_0x3065b0,'drawingId':_0x4745a3}),_0x9438a8=_0x1335cf[_0x502e66(0x2aa)](_0x2f457e);if(!_0x9438a8)continue;let _0x62227d=this[_0x502e66(0x1b5)][_0x502e66(0x2fc)]({'unitId':_0x779228,'subUnitId':_0x3065b0,'drawingId':_0x4745a3});_0x62227d!=null&&_0x62227d['transform']&&(_0x54f4c2&&_0x537fd2?this[_0x502e66(0x2dd)](_0x779228,_0x3065b0,_0x4745a3,_0x550db3,_0x54f4c2,_0x537fd2,_0x9438a8):this[_0x502e66(0x159)](_0x779228,_0x3065b0,_0x4745a3,_0x550db3,_0xfa0dcc?_0x54f4c2:_0x537fd2,_0xfa0dcc,_0x62227d,_0x9438a8));}}[_0x1ed313(0x2dd)](_0x13f354,_0x252294,_0x402f90,_0x1eb449,_0x219209,_0x5d5336,_0xd536a5){const _0x4bdcf5=_0x1ed313;let _0x15b425=this[_0x4bdcf5(0x2a6)],_0x272814=this['_subUnitId'];this[_0x4bdcf5(0x2a6)]=_0x13f354,this[_0x4bdcf5(0x1ce)]=_0x252294;let _0x1ac3ce=this[_0x4bdcf5(0x1e9)](_0x219209),_0x3a3d13=this['_getConnectPointInfo'](_0x5d5336);if(this[_0x4bdcf5(0x2a6)]=_0x15b425,this['_subUnitId']=_0x272814,!_0x1ac3ce||!_0x3a3d13)return;let _0x3cd7b4=_0x1eb449[_0x4bdcf5(0x1f1)](),_0x4fd515=_0x36ebbb(_0x1ac3ce,_0x3a3d13,_0x3cd7b4);_0x4fd515&&_0x1eb449[_0x4bdcf5(0x263)](_0x4fd515);let _0x3170cd=_0x9e1c6d(_0x4fd515,_0x3cd7b4);_0x3170cd['lineType']!==_0x3cd7b4&&_0x1eb449[_0x4bdcf5(0x1be)](_0x3170cd[_0x4bdcf5(0x132)]),_0x1eb449[_0x4bdcf5(0x1d3)]();for(let [_0x3bd861,_0x3f2e5a]of Object['entries'](_0x3170cd['adjustValues']))_0x1eb449['setAdjustValueByName'](_0x3bd861,_0x3f2e5a);_0x1eb449[_0x4bdcf5(0x127)]({'width':_0x3170cd[_0x4bdcf5(0x2a0)][_0x4bdcf5(0x2ed)],'height':_0x3170cd['worldRect'][_0x4bdcf5(0x24e)]}),_0xd536a5['transformByState']({'flipX':_0x3170cd[_0x4bdcf5(0x2a0)][_0x4bdcf5(0x14c)],'flipY':_0x3170cd['worldRect'][_0x4bdcf5(0x209)],'left':_0x3170cd['worldRect'][_0x4bdcf5(0x2a8)],'top':_0x3170cd[_0x4bdcf5(0x2a0)]['top'],'width':_0x3170cd[_0x4bdcf5(0x2a0)][_0x4bdcf5(0x2ed)],'height':_0x3170cd[_0x4bdcf5(0x2a0)]['height'],'angle':_0x3170cd[_0x4bdcf5(0x262)]}),_0x1eb449[_0x4bdcf5(0xf5)]();}[_0x1ed313(0x159)](_0x42c1c1,_0x36c067,_0x164b42,_0x31df2f,_0x1eaabf,_0x34ea6e,_0x15e3c4,_0x47f93e){const _0x2c9202=_0x1ed313;let _0x54c91f=this[_0x2c9202(0x2a6)],_0x4e1a3c=this[_0x2c9202(0x1ce)];this[_0x2c9202(0x2a6)]=_0x42c1c1,this[_0x2c9202(0x1ce)]=_0x36c067;let _0x26f7be=this['_getConnectPointInfo'](_0x1eaabf);if(this['_unitId']=_0x54c91f,this[_0x2c9202(0x1ce)]=_0x4e1a3c,!_0x26f7be)return;let {left:_0x1be4fa=0x0,top:_0x5d2e2c=0x0,width:_0x11908d=0x0,height:_0x483ddf=0x0,flipX:_0x9008dc=!0x1,flipY:_0x488894=!0x1}=_0x15e3c4['transform'],_0x1d4b9d=_0x31df2f[_0x2c9202(0xac)]();if(_0x1d4b9d[_0x2c9202(0x2b4)]<0x2)return;let _0x15ac88=new _0x397de9({'left':_0x1be4fa,'top':_0x5d2e2c,'width':_0x11908d,'height':_0x483ddf,'flipX':_0x9008dc,'flipY':_0x488894}),_0x2d0b46=_0x34ea6e?_0x1d4b9d[_0x1d4b9d[_0x2c9202(0x2b4)]-0x1]:_0x1d4b9d[0x0],_0x343b86=_0x15ac88['localToWorld'](_0x2d0b46),_0x3de4a8=_0x397de9[_0x2c9202(0x160)](_0x343b86,_0x26f7be[_0x2c9202(0xf9)],!_0x34ea6e);_0x47f93e[_0x2c9202(0x10e)]({'flipX':_0x3de4a8['worldRect'][_0x2c9202(0x14c)],'flipY':_0x3de4a8['worldRect'][_0x2c9202(0x209)],'left':_0x3de4a8[_0x2c9202(0x2a0)][_0x2c9202(0x2a8)],'top':_0x3de4a8['worldRect'][_0x2c9202(0x180)],'width':_0x3de4a8[_0x2c9202(0x2a0)][_0x2c9202(0x2ed)],'height':_0x3de4a8[_0x2c9202(0x2a0)][_0x2c9202(0x24e)],'angle':_0x3de4a8['worldRect'][_0x2c9202(0x2f1)]}),_0x47f93e[_0x2c9202(0x1b9)](!0x0);}[_0x1ed313(0x291)](){const _0x256386=_0x1ed313;this[_0x256386(0x28b)][_0x256386(0x2b4)]!==0x0&&(this[_0x256386(0x28b)][_0x256386(0x190)](_0x172098=>{const _0x25b8f5=_0x256386;_0x172098[_0x25b8f5(0x230)]();}),this[_0x256386(0x28b)]=[]);}[_0x1ed313(0x2c1)](){const _0x5a2c28=_0x1ed313;let _0x4682ac=this[_0x5a2c28(0x2a5)]['getCurrentTypeOfUnit$'](_0x35009f[_0x5a2c28(0x26b)]);this[_0x5a2c28(0xf6)](_0x4682ac['pipe'](_0x324807(_0x4de7cf=>_0x4de7cf?_0x4de7cf[_0x5a2c28(0xbb)]['pipe'](_0x324807(_0x41c5bc=>{const _0x16af36=_0x5a2c28;if(!_0x41c5bc)return _0x269514;let _0x17b973=_0x4de7cf['getUnitId'](),_0x1a2225=this[_0x16af36(0x15b)]['getRenderById'](_0x17b973),_0x5d6a4c=_0x1a2225==null?void 0x0:_0x1a2225[_0x16af36(0xdb)];return _0x5d6a4c?_0x3e45e3(_0x5d6a4c):_0x269514;})):_0x269514))[_0x5a2c28(0x1f9)](_0x44e668=>{const _0x361974=_0x5a2c28;let _0x432e1e=_0x44e668['getTransformerByCreate']();this[_0x361974(0xf6)](_0x44e668['onPointerMove$']['subscribeEvent'](_0x1d652c=>{const _0x5bd0b8=_0x361974;this[_0x5bd0b8(0x1e6)]&&this[_0x5bd0b8(0x136)]&&this[_0x5bd0b8(0x291)]();})),this[_0x361974(0xf6)](_0x432e1e[_0x361974(0x286)][_0x361974(0x1f9)](_0x299e28=>{const _0x521851=_0x361974;let {objects:_0x5d1533}=_0x299e28;this[_0x521851(0x291)](),_0x5d1533!==null&&_0x5d1533[_0x521851(0x134)]===0x1&&_0x5d1533['values']()[_0x521851(0x23e)]()[_0x521851(0xcc)]instanceof vn&&(this['_isDrawingShapePointDown']=!0x0);})),this[_0x361974(0xf6)](_0x432e1e['changing$'][_0x361974(0x1f9)](_0x377d0a=>{const _0x3fe19f=_0x361974;this[_0x3fe19f(0x1e6)]&&this[_0x3fe19f(0x291)]();})),this['disposeWithMe'](_0x44e668[_0x361974(0x151)][_0x361974(0x226)](()=>{const _0x5cff3d=_0x361974;this['_isDrawingShapePointDown']&&(this[_0x5cff3d(0x1e6)]=!0x1,this[_0x5cff3d(0x2b8)]());})),this[_0x361974(0xf6)](_0x432e1e[_0x361974(0x1d4)][_0x361974(0x1f9)](()=>{const _0x43ea96=_0x361974;this[_0x43ea96(0x2a6)]&&this[_0x43ea96(0x1ce)]&&this[_0x43ea96(0x136)]&&this[_0x43ea96(0x1b5)][_0x43ea96(0x2fc)]({'unitId':this[_0x43ea96(0x2a6)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x43ea96(0x136)]})&&(this[_0x43ea96(0x291)](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x1ed313(0x17e)](){const _0x5ca26d=_0x1ed313;this['disposeWithMe'](this[_0x5ca26d(0x1b5)][_0x5ca26d(0x243)][_0x5ca26d(0x1f9)](_0x44d9c9=>{const _0x483c7e=_0x5ca26d;if(_0x44d9c9[_0x483c7e(0x2b4)]===0x1){let _0x3f76e2=_0x44d9c9[0x0];if(_0x3f76e2[_0x483c7e(0x1b7)]===_0x14c67a[_0x483c7e(0x141)]){let _0x35f9b9=this['_sheetsShapeService'][_0x483c7e(0x16c)](_0x3f76e2['unitId'],_0x3f76e2[_0x483c7e(0x210)],_0x3f76e2[_0x483c7e(0xb2)]);if(_0x35f9b9&&_0x5cb95b(_0x35f9b9[_0x483c7e(0x1f1)]())){this['_activeShapeId']=_0x3f76e2['drawingId'],this['_unitId']=_0x3f76e2[_0x483c7e(0xae)],this[_0x483c7e(0x1ce)]=_0x3f76e2[_0x483c7e(0x210)],this[_0x483c7e(0x291)](),this[_0x483c7e(0x2b8)]();return;}}}this['_activeShapeId']=void 0x0,this[_0x483c7e(0x2a6)]=void 0x0,this[_0x483c7e(0x1ce)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this['disposeWithMe'](this[_0x5ca26d(0x1b5)][_0x5ca26d(0x164)][_0x5ca26d(0x1f9)](_0x345378=>{const _0x295b3e=_0x5ca26d;if(_0x345378[_0x295b3e(0x2b4)]===0x1){var _0x4f5ff7;let _0x4364a7=_0x345378[0x0],_0x431d53=(_0x4f5ff7=this[_0x295b3e(0x1b5)][_0x295b3e(0x2fc)](_0x4364a7))==null?void 0x0:_0x4f5ff7['drawingType'];_0x431d53===_0x14c67a[_0x295b3e(0x141)]&&_0x4364a7['drawingId']===this[_0x295b3e(0x136)]?(this['_clearShapeConnectorHandlerObjects'](),this[_0x295b3e(0x2b8)]()):!this['_activeShapeId']&&_0x431d53===_0x14c67a[_0x295b3e(0x141)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x4364a7[_0x295b3e(0xae)],_0x4364a7[_0x295b3e(0x210)],_0x4364a7[_0x295b3e(0xb2)]);}})),this[_0x5ca26d(0xf6)](this[_0x5ca26d(0x1b5)][_0x5ca26d(0xd4)][_0x5ca26d(0x1f9)](_0x577082=>{const _0x1e26ca=_0x5ca26d;for(let _0x2d79e4 of _0x577082){let {drawingId:_0x5d7949}=_0x2d79e4;if(this[_0x1e26ca(0x136)]===_0x5d7949){this[_0x1e26ca(0x1f5)]();return;}}}));}[_0x1ed313(0x13b)](_0x58373c,_0x26daa3,_0x2fcdea,_0x319764,_0x34ec49){const _0x20ec72=_0x1ed313;var _0x5de52c,_0x176f76;if(!this['_activeShapeModel'])return;let _0x3c40ac=this['_getConnectPointInfo'](_0x58373c);if(!_0x3c40ac)return;let _0xf37341=this[_0x20ec72(0xc8)]?this[_0x20ec72(0xc8)]['worldPoint']:_0x26daa3,_0x70a152=this[_0x20ec72(0xc8)]?this['_currentConnectionTarget'][_0x20ec72(0x2f1)]:this[_0x20ec72(0x1a1)](_0x3c40ac[_0x20ec72(0xf9)],_0xf37341),_0x477f04;if(this[_0x20ec72(0xc8)]){let _0x3f3311=this[_0x20ec72(0x1b5)][_0x20ec72(0x2fc)]({'unitId':this['_currentConnectionTarget'][_0x20ec72(0xae)],'subUnitId':this[_0x20ec72(0xc8)]['subUnitId'],'drawingId':this[_0x20ec72(0xc8)][_0x20ec72(0x2ce)]});if(_0x3f3311!=null&&_0x3f3311[_0x20ec72(0x131)]){let {left:_0x53b1e6=0x0,top:_0x45dcb3=0x0,width:_0x58b58c=0x0,height:_0x166792=0x0,angle:_0x1a883d}=_0x3f3311[_0x20ec72(0x131)];_0x477f04=_0x3313a8({'left':_0x53b1e6,'top':_0x45dcb3,'width':_0x58b58c,'height':_0x166792},_0x1a883d||0x0);}else _0x477f04={'left':_0xf37341['x'],'top':_0xf37341['y'],'width':0x0,'height':0x0};}else _0x477f04={'left':_0xf37341['x'],'top':_0xf37341['y'],'width':0x0,'height':0x0};let _0x2121e5={'point':_0xf37341,'angle':_0x70a152,'bounds':_0x477f04},_0x5e3484=_0x2fcdea?_0x2121e5:_0x3c40ac,_0x44731c=_0x2fcdea?_0x3c40ac:_0x2121e5,_0x15fe10=this['_activeShapeModel']['getShapeType'](),_0x1b45fa=_0x36ebbb(_0x5e3484,_0x44731c,_0x15fe10);_0x1b45fa&&this[_0x20ec72(0x25a)][_0x20ec72(0x263)](_0x1b45fa);let _0x173d20=_0x9e1c6d(_0x1b45fa,_0x15fe10);_0x173d20[_0x20ec72(0x132)]!==_0x15fe10&&this[_0x20ec72(0x25a)]['changeShapeType'](_0x173d20[_0x20ec72(0x132)]);for(let [_0x2aed30,_0xe196b7]of Object[_0x20ec72(0x1cc)](_0x173d20[_0x20ec72(0x206)]))this[_0x20ec72(0x25a)][_0x20ec72(0x130)](_0x2aed30,_0xe196b7);this['_activeShapeModel']['updateContext']({'width':_0x173d20[_0x20ec72(0x2a0)][_0x20ec72(0x2ed)],'height':_0x173d20[_0x20ec72(0x2a0)][_0x20ec72(0x24e)]}),_0x319764[_0x20ec72(0x10e)]({'flipX':_0x173d20[_0x20ec72(0x2a0)][_0x20ec72(0x14c)],'flipY':_0x173d20['worldRect'][_0x20ec72(0x209)],'left':_0x173d20['worldRect'][_0x20ec72(0x2a8)],'top':_0x173d20[_0x20ec72(0x2a0)][_0x20ec72(0x180)],'width':_0x173d20[_0x20ec72(0x2a0)][_0x20ec72(0x2ed)],'height':_0x173d20[_0x20ec72(0x2a0)][_0x20ec72(0x24e)],'angle':_0x173d20[_0x20ec72(0x262)]}),_0x319764[_0x20ec72(0x1b9)](!0x0);let _0x4a4534=(_0x5de52c=(_0x176f76=this['_currentConnectionTarget'])==null?void 0x0:_0x176f76[_0x20ec72(0x161)])==null?_0x26daa3:_0x5de52c;_0x34ec49['transformByState']({'left':_0x4a4534['x']-_0x42c7e9[_0x20ec72(0x1c7)],'top':_0x4a4534['y']-_0x42c7e9[_0x20ec72(0x1c7)]});}[_0x1ed313(0x114)](_0x2156fc,_0x100d29,_0x47f0b4,_0xc7e06b,_0x5b749f){const _0x1c409f=_0x1ed313;var _0x23a0f4,_0x4cefc4,_0x3e57d2,_0x556644;let _0x469d84=(_0x23a0f4=(_0x4cefc4=this['_currentConnectionTarget'])==null?void 0x0:_0x4cefc4[_0x1c409f(0x161)])==null?_0x2156fc:_0x23a0f4,_0x26a39e=_0x397de9[_0x1c409f(0x160)](_0x100d29,_0x469d84,_0x47f0b4);_0xc7e06b[_0x1c409f(0x10e)]({'flipX':_0x26a39e['worldRect'][_0x1c409f(0x14c)],'flipY':_0x26a39e[_0x1c409f(0x2a0)][_0x1c409f(0x209)],'left':_0x26a39e[_0x1c409f(0x2a0)][_0x1c409f(0x2a8)],'top':_0x26a39e[_0x1c409f(0x2a0)][_0x1c409f(0x180)],'width':_0x26a39e[_0x1c409f(0x2a0)][_0x1c409f(0x2ed)],'height':_0x26a39e[_0x1c409f(0x2a0)][_0x1c409f(0x24e)],'angle':_0x26a39e[_0x1c409f(0x2a0)][_0x1c409f(0x2f1)]});let _0x258c72=(_0x3e57d2=(_0x556644=this[_0x1c409f(0xc8)])==null?void 0x0:_0x556644[_0x1c409f(0x161)])==null?_0x2156fc:_0x3e57d2;_0x5b749f[_0x1c409f(0x10e)]({'left':_0x258c72['x']-_0x42c7e9[_0x1c409f(0x1c7)],'top':_0x258c72['y']-_0x42c7e9['cxnPointRadius']});}[_0x1ed313(0x1e9)](_0x4bc9b8){const _0x27e776=_0x1ed313;if(!this[_0x27e776(0x2a6)]||!this[_0x27e776(0x1ce)])return null;let {shapeId:_0xd8726b,cxnIndex:_0x532759}=_0x4bc9b8,_0x51d404=this[_0x27e776(0x219)][_0x27e776(0x16c)](this['_unitId'],this['_subUnitId'],_0xd8726b);if(!_0x51d404)return null;let _0x596118=this[_0x27e776(0x1b5)][_0x27e776(0x2fc)]({'unitId':this[_0x27e776(0x2a6)],'subUnitId':this[_0x27e776(0x1ce)],'drawingId':_0xd8726b});if(!(_0x596118!=null&&_0x596118[_0x27e776(0x131)]))return null;let {left:_0x1b67fa=0x0,top:_0x487f8a=0x0,width:_0x3a6623=0x0,height:_0x14609e=0x0,flipX:_0x139a0b=!0x1,flipY:_0x238438=!0x1,angle:_0x3c463a}=_0x596118[_0x27e776(0x131)];_0x51d404[_0x27e776(0x127)]({'width':_0x3a6623,'height':_0x14609e});let _0x487244=_0x51d404[_0x27e776(0xca)]()['find'](_0xa3073d=>_0xa3073d[_0x27e776(0x29b)]===_0x532759);if(!_0x487244)return null;let _0x55ac83=_0x139a0b?_0x3a6623-_0x487244['x']:_0x487244['x'],_0x4f704a=_0x238438?_0x14609e-_0x487244['y']:_0x487244['y'];if(_0x3c463a!==0x0&&_0x3c463a!=null){let _0x35e057=_0x3c463a*Math['PI']/0xb4,_0x296bb5=Math[_0x27e776(0x23b)](_0x35e057),_0x388d21=Math['sin'](_0x35e057),_0x5a836a=_0x3a6623/0x2,_0x16804c=_0x14609e/0x2,_0x23354f=_0x55ac83-_0x5a836a,_0x39aa45=_0x4f704a-_0x16804c;_0x55ac83=_0x5a836a+_0x23354f*_0x296bb5-_0x39aa45*_0x388d21,_0x4f704a=_0x16804c+_0x23354f*_0x388d21+_0x39aa45*_0x296bb5;}_0x55ac83+=_0x1b67fa,_0x4f704a+=_0x487f8a;let _0x499407=_0x487244[_0x27e776(0x29c)]/0xea60;_0x139a0b&&(_0x499407=0xb4-_0x499407),_0x238438&&(_0x499407=-_0x499407),_0x499407+=_0x3c463a||0x0,_0x499407=(_0x499407%0x168+0x168)%0x168;let _0x42e557=_0x3313a8({'left':_0x1b67fa,'top':_0x487f8a,'width':_0x3a6623,'height':_0x14609e},_0x3c463a||0x0);return{'point':{'x':_0x55ac83,'y':_0x4f704a},'angle':_0x499407,'bounds':_0x42e557};}[_0x1ed313(0x1a1)](_0x519dc9,_0x44d3cf){const _0x307cae=_0x1ed313;let _0x5b2280=_0x44d3cf['x']-_0x519dc9['x'],_0x259e0a=_0x44d3cf['y']-_0x519dc9['y'];return Math[_0x307cae(0x181)](_0x5b2280)>=Math['abs'](_0x259e0a)?_0x5b2280>=0x0?0xb4:0x0:_0x259e0a>=0x0?0x10e:0x5a;}[_0x1ed313(0x1f5)](){const _0x3858b6=_0x1ed313;this[_0x3858b6(0x136)]=void 0x0,this[_0x3858b6(0x2a6)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x3858b6(0x291)]();}[_0x1ed313(0x230)](){const _0xcf7cb1=_0x1ed313;this[_0xcf7cb1(0x291)](),super['dispose']();}};ur=Y([J(0x1,_0x2eaf9c),J(0x2,_0x134053),J(0x3,_0x431f44),J(0x4,_0x57a3de),J(0x5,_0x697169(_0x5486d2)),J(0x6,_0x697169(Z)),J(0x7,_0x697169(sr))],ur);let dr=class extends _0x17a082{constructor(_0x51855a,_0x505bf4,_0x94df8b){const _0x286f8f=_0x1ed313;super(),this[_0x286f8f(0x145)]=_0x51855a,this['_drawingManagerService']=_0x505bf4,this[_0x286f8f(0xe9)]=_0x94df8b,this[_0x286f8f(0x157)]();}['_initPrinting'](){const _0x3a01af=_0x1ed313;this['disposeWithMe'](this[_0x3a01af(0x145)][_0x3a01af(0x21d)][_0x3a01af(0x24b)](this[_0x3a01af(0x145)][_0x3a01af(0x21d)]['getInterceptPoints']()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x2bbf3b,_0x19be04,_0x1d4b3d)=>{const _0x5e62ac=_0x3a01af;var _0x3aea33;let {unitId:_0xef48e6,subUnitId:_0x284a40,scene:_0x5f353c,resourceCollector:_0x1f2ea3}=_0x19be04,_0x3e16ac=(_0x3aea33=this[_0x5e62ac(0x1b5)]['getDrawingDataForUnit'](_0xef48e6))==null?void 0x0:_0x3aea33[_0x284a40];return _0x3e16ac==null||_0x3e16ac[_0x5e62ac(0x185)][_0x5e62ac(0x190)](_0x578524=>{const _0x1f8f97=_0x5e62ac;let _0x535797=_0x3e16ac['data'][_0x578524];_0x535797[_0x1f8f97(0x1b7)]===_0x14c67a[_0x1f8f97(0x141)]&&!_0x535797[_0x1f8f97(0x220)]&&this['_shapeRenderController'][_0x1f8f97(0x2ec)](_0x535797,_0x5f353c,{'resourceCollector':_0x1f2ea3});}),_0x1d4b3d(_0x2bbf3b);}}));}};dr=Y([J(0x0,_0x697169(_0x3dd8e2)),J(0x1,_0x431f44),J(0x2,_0x697169(X))],dr);let fr=class extends _0x17a082{constructor(_0x1c1508,_0x55b5ef,_0x2196d3){const _0x6931c8=_0x1ed313;super(),this[_0x6931c8(0x1df)]=_0x1c1508,this['_localeService']=_0x55b5ef,this[_0x6931c8(0x1b3)]=_0x2196d3,this[_0x6931c8(0x1f8)]();}['_initPermission'](){const _0x46672e=_0x1ed313;this['disposeWithMe'](this[_0x46672e(0x1df)]['beforeCommandExecuted'](_0x299414=>{const _0x304e1b=_0x46672e;let _0x2c1bd6,_0x50e6d1;if(_0x299414['id']===_0x387a51['id']||_0x299414['id']===_0x5b49f8['id']||_0x299414['id']===_0x31e98d['id']){let _0x5af7da=_0x299414['params'];_0x2c1bd6=_0x5af7da[_0x304e1b(0xae)],_0x50e6d1=_0x5af7da[_0x304e1b(0x210)];}!_0x2c1bd6||!_0x50e6d1||this[_0x304e1b(0x1b3)][_0x304e1b(0x9e)]({'workbookTypes':[_0x5d5530],'worksheetTypes':[_0x566e04]},_0x2c1bd6,_0x50e6d1)||this[_0x304e1b(0x1b3)][_0x304e1b(0x1a0)](this[_0x304e1b(0x252)]['t'](_0x304e1b(0xb7)));}));}};fr=Y([J(0x0,_0x697169(_0x2eaf9c)),J(0x1,_0x697169(_0x3f505b)),J(0x2,_0x697169(_0x383125))],fr);let pr=class extends _0x17a082{constructor(_0x5645a2,_0x4e62e4,_0x4423c9,_0x460161,_0x2aba50,_0x4e6d85,_0xaaf7d5,_0x1b2d7f,_0xb2de05,_0x36b691,_0x48dba5){const _0x40c705=_0x1ed313;super(),this['_univerInstanceService']=_0x5645a2,this[_0x40c705(0x1dc)]=_0x4e62e4,this['_menuManagerService']=_0x4423c9,this[_0x40c705(0x219)]=_0x460161,this['_localeService']=_0x2aba50,this[_0x40c705(0x1df)]=_0x4e6d85,this['_drawingManagerService']=_0xaaf7d5,this['_sheetCanvasPopManagerService']=_0x1b2d7f,this[_0x40c705(0x222)]=_0xb2de05,this[_0x40c705(0x15b)]=_0x36b691,this[_0x40c705(0x18d)]=_0x48dba5,q(this,_0x40c705(0x20d),null),q(this,'_activeShapeInfo',null),q(this,'_isOpenedShapeEditPanel',!0x1),q(this,_0x40c705(0x17b),0x0),q(this,'_initializedShapePopupMenu',new Set()),q(this,_0x40c705(0x294),[]),this[_0x40c705(0x1ac)](),this[_0x40c705(0xf6)](this[_0x40c705(0x2a5)]['getCurrentTypeOfUnit$'](_0x35009f[_0x40c705(0x26b)])[_0x40c705(0x1f9)](_0x44fb67=>{const _0x4ffcd4=_0x40c705;if(!_0x44fb67){var _0x28014a;(_0x28014a=this[_0x4ffcd4(0x20d)])==null||_0x28014a['dispose']();return;}this['_createShapePopupMenu'](_0x44fb67);})),this[_0x40c705(0xe3)](),this[_0x40c705(0x102)](),this[_0x40c705(0x2cc)](),this[_0x40c705(0xf6)](this[_0x40c705(0x18d)]['editingParams$']['subscribe'](_0x197386=>{const _0x439562=_0x40c705;_0x197386&&this[_0x439562(0x142)]();}));}['_initMenu'](){const _0x96565c=_0x1ed313;this['_menuManagerService'][_0x96565c(0x2be)](In);}[_0x1ed313(0x102)](){const _0x580fda=_0x1ed313;this[_0x580fda(0x172)][_0x580fda(0x19c)](_0x14c67a['DRAWING_SHAPE'],this[_0x580fda(0x1b1)][_0x580fda(0x284)](this)),this[_0x580fda(0x172)][_0x580fda(0xa1)](_0x14c67a['DRAWING_SHAPE'],0x6,0x4);}[_0x1ed313(0x2cc)](){const _0x1970aa=_0x1ed313;this[_0x1970aa(0x2a5)][_0x1970aa(0x2c5)](_0x35009f[_0x1970aa(0x26b)])[_0x1970aa(0x190)](_0x59e031=>this[_0x1970aa(0x175)](_0x59e031));}[_0x1ed313(0x1b1)](_0x4ef7ce,_0xf7a963,_0x2bbebb,_0x2634dd){const _0x20284a=_0x1ed313;return[{'label':_0x20284a(0x174),'index':0x0,'commandId':Bn['id'],'commandParams':{'unitId':_0x4ef7ce,'subUnitId':_0xf7a963,'drawingId':_0x2bbebb},'disable':_0x2634dd===_0x14c67a[_0x20284a(0x298)]},{'label':'sheets-shape-ui.deleteShape','index':0x1,'commandId':_0x2f5460['id'],'commandParams':{'unitId':_0x4ef7ce,'drawings':[{'unitId':_0x4ef7ce,'subUnitId':_0xf7a963,'drawingId':_0x2bbebb,'drawingType':_0x2634dd}]},'disable':!0x1},{'label':_0x20284a(0x237),'index':0x2,'commandId':zn['id'],'commandParams':{'unitId':_0x4ef7ce,'subUnitId':_0xf7a963,'drawingId':_0x2bbebb},'disable':!0x1},{'label':_0x20284a(0xa7),'index':0x3,'commandId':_0x1b9f94['id'],'commandParams':{'unitId':_0x4ef7ce,'subUnitId':_0xf7a963,'shapeId':_0x2bbebb,'flipH':!0x0},'disable':!0x1},{'label':_0x20284a(0x143),'index':0x4,'commandId':_0x1b9f94['id'],'commandParams':{'unitId':_0x4ef7ce,'subUnitId':_0xf7a963,'shapeId':_0x2bbebb,'flipV':!0x0},'disable':!0x1},{'label':_0x20284a(0x10a),'index':0x4,'commandId':_0x59e11d['id'],'commandParams':{'unitId':_0x4ef7ce,'subUnitId':_0xf7a963,'shapeId':_0x2bbebb,'rotate':0x5a},'disable':!0x1},{'label':_0x20284a(0x1ba),'index':0x4,'commandId':_0x59e11d['id'],'commandParams':{'unitId':_0x4ef7ce,'subUnitId':_0xf7a963,'shapeId':_0x2bbebb,'rotate':-0x5a},'disable':!0x1},{'label':_0x20284a(0xc4),'index':0x4,'commandId':_0x1b4149['id'],'commandParams':{'unitId':_0x4ef7ce,'subUnitId':_0xf7a963,'shapeId':_0x2bbebb},'disable':!0x1}];}[_0x1ed313(0x2c0)](_0x443de7,_0x120380,_0x23c268){const _0x3e693b=_0x1ed313;let _0x2080fc=this[_0x3e693b(0x219)]['getShapeTypeById'](_0x443de7,_0x120380,_0x23c268),_0x43e0d1=this[_0x3e693b(0x219)][_0x3e693b(0xc5)](_0x443de7,_0x120380,_0x23c268);return _0x2080fc!==void 0x0&&_0x43e0d1!==void 0x0?{'shapeData':_0x43e0d1,'shapeId':_0x23c268,'shapeType':_0x2080fc,'unitId':_0x443de7,'subUnitId':_0x120380,'version':this[_0x3e693b(0x17b)],'disableShapeOption':!0x1}:null;}[_0x1ed313(0x175)](_0x27b86e){const _0x55f9f0=_0x1ed313;if(!_0x27b86e)return;let _0x1b7c34=_0x27b86e['getUnitId']();this[_0x55f9f0(0x15b)][_0x55f9f0(0x122)](_0x1b7c34)&&!this[_0x55f9f0(0x232)][_0x55f9f0(0x122)](_0x1b7c34)&&(this[_0x55f9f0(0x2e4)](_0x1b7c34),this['_initializedShapePopupMenu'][_0x55f9f0(0x12d)](_0x1b7c34));}[_0x1ed313(0x142)](){const _0x2e46ae=_0x1ed313;this[_0x2e46ae(0x294)][_0x2e46ae(0x190)](_0x1621a6=>_0x1621a6[_0x2e46ae(0x230)]()),this['_disposePopups'][_0x2e46ae(0x2b4)]=0x0;}[_0x1ed313(0x2e4)](_0x59b79b){const _0x499aff=_0x1ed313;var _0x2e8603;let _0xc6ebf3=(_0x2e8603=this[_0x499aff(0x15b)][_0x499aff(0x187)](_0x59b79b))==null?void 0x0:_0x2e8603[_0x499aff(0xdb)],_0x36d198=_0xc6ebf3==null?void 0x0:_0xc6ebf3[_0x499aff(0xdf)]();!_0xc6ebf3||!_0x36d198||(this[_0x499aff(0xf6)](_0x36d198[_0x499aff(0x26f)][_0x499aff(0x1f9)](()=>{const _0x3326f1=_0x499aff;let _0x12b03c=_0x36d198[_0x3326f1(0x229)]();if(this[_0x3326f1(0x142)](),this[_0x3326f1(0xd0)]||_0x12b03c[_0x3326f1(0x134)]>0x1)return;let _0x35539b=_0x12b03c[_0x3326f1(0x1ad)]()['next']()[_0x3326f1(0xcc)];if(!_0x35539b)return;let _0x28bd43=this[_0x3326f1(0x1b5)][_0x3326f1(0xe0)](_0x35539b[_0x3326f1(0x183)]);if(!_0x28bd43||_0x28bd43[_0x3326f1(0x1b7)]!==_0x14c67a[_0x3326f1(0x141)])return;let {unitId:_0x18f790,subUnitId:_0x44b48e,drawingId:_0x549f5f,drawingType:_0x1c1659}=_0x28bd43,_0x357c81=this[_0x3326f1(0x2c0)](_0x18f790,_0x44b48e,_0x549f5f);if(!_0x357c81)return;this[_0x3326f1(0x222)][_0x3326f1(0x22f)](_0x550431,!0x0);let _0x8fbf3a=this[_0x3326f1(0x172)][_0x3326f1(0x1d8)](_0x35539b,{'componentKey':wn,'direction':'top-center','offset':[0x0,_0x4cb7b4],'extraProps':{'unitId':_0x18f790,'subUnitId':_0x44b48e,'drawingId':_0x549f5f,'drawingType':_0x1c1659,'shapeType':_0x357c81['shapeType'],'shapeData':_0x357c81[_0x3326f1(0x1c9)]}});this[_0x3326f1(0x294)][_0x3326f1(0x2b9)](this['disposeWithMe'](_0x8fbf3a)),this['_drawingManagerService'][_0x3326f1(0x149)]()[_0x3326f1(0xd8)](_0x261a01=>_0x261a01[_0x3326f1(0xae)]===_0x18f790&&_0x261a01[_0x3326f1(0x210)]===_0x44b48e&&_0x261a01[_0x3326f1(0xb2)]===_0x549f5f)||this['_drawingManagerService']['focusDrawing']([{'unitId':_0x18f790,'subUnitId':_0x44b48e,'drawingId':_0x549f5f}]);})),this[_0x499aff(0xf6)](_0x36d198[_0x499aff(0x1ab)][_0x499aff(0x1f9)](()=>{const _0x5ba99d=_0x499aff;this[_0x5ba99d(0x142)](),this[_0x5ba99d(0x222)]['setContextValue'](_0x550431,!0x1),this['_drawingManagerService'][_0x5ba99d(0x1c6)](null);})),this[_0x499aff(0xf6)](_0x36d198[_0x499aff(0x194)]['subscribe'](()=>{const _0x54747e=_0x499aff;this[_0x54747e(0x142)]();})),this[_0x499aff(0xf6)](_0x36d198[_0x499aff(0x286)][_0x499aff(0x1f9)](()=>{const _0x375377=_0x499aff;this[_0x375377(0x142)]();})));}[_0x1ed313(0xe3)](){const _0x4d3440=_0x1ed313;this[_0x4d3440(0xf6)](this[_0x4d3440(0x1df)][_0x4d3440(0x24c)](_0x4a8726=>{const _0x5de504=_0x4d3440;if(_0x4a8726['id']===Bn['id']){let {unitId:_0x308b2a,subUnitId:_0x4f75ad,drawingId:_0xa3962f}=_0x4a8726[_0x5de504(0x2f4)];this[_0x5de504(0x17b)]+=0x1,this[_0x5de504(0x25c)]=this[_0x5de504(0x2c0)](_0x308b2a,_0x4f75ad,_0xa3962f),this[_0x5de504(0x142)](),this[_0x5de504(0x2c6)]();}if(_0x4a8726['id']===zn['id']&&(this[_0x5de504(0x25c)]=null,this[_0x5de504(0x117)]()),_0x4a8726['id']===_0x44e25c['id']){let {unitId:_0x285d19,subUnitId:_0x2c1458,shapeId:_0x4c8f55}=_0x4a8726[_0x5de504(0x2f4)];if(this[_0x5de504(0x25c)]&&this['_activeShapeInfo'][_0x5de504(0x2ce)]===_0x4c8f55){let _0x54ec93=this[_0x5de504(0x2c0)](_0x285d19,_0x2c1458,_0x4c8f55);_0x54ec93&&(this[_0x5de504(0x17b)]+=0x1,_0x54ec93[_0x5de504(0x28f)]=this[_0x5de504(0x17b)],this['_activeShapeInfo']=_0x54ec93,this[_0x5de504(0xd0)]&&this[_0x5de504(0x2c6)]());}}})),this[_0x4d3440(0xf6)](this[_0x4d3440(0x1b5)][_0x4d3440(0x243)][_0x4d3440(0x1f9)](_0x53c72f=>{const _0x226968=_0x4d3440;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x53c72f[_0x226968(0x2b4)]===0x0){this['_activeShapeInfo']=null,this[_0x226968(0x117)]();return;}if(_0x53c72f[_0x226968(0x2b4)]===0x1&&_0x53c72f[0x0][_0x226968(0x1b7)]===_0x14c67a[_0x226968(0x141)]&&(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x53c72f[0x0][_0x226968(0xae)],_0x53c72f[0x0][_0x226968(0x210)],_0x53c72f[0x0][_0x226968(0xb2)]),this[_0x226968(0x25c)])){this[_0x226968(0x2c6)]();return;}let _0x4043a4=_0x53c72f[_0x226968(0x205)](_0x35ba66=>_0x35ba66[_0x226968(0x1b7)]===_0x14c67a['DRAWING_SHAPE']);if(_0x53c72f[_0x226968(0x2b4)]>0x1&&_0x4043a4[_0x226968(0x2b4)]===_0x53c72f[_0x226968(0x2b4)]){if(this[_0x226968(0x17b)]+=0x1,this[_0x226968(0x25c)]=this[_0x226968(0x2c0)](_0x53c72f[0x0][_0x226968(0xae)],_0x53c72f[0x0][_0x226968(0x210)],_0x53c72f[0x0]['drawingId']),this[_0x226968(0x25c)]){this[_0x226968(0x2c6)]();return;}}else{if(this[_0x226968(0x17b)]+=0x1,this[_0x226968(0x25c)]=this[_0x226968(0x2c0)](_0x53c72f[0x0][_0x226968(0xae)],_0x53c72f[0x0][_0x226968(0x210)],_0x53c72f[0x0][_0x226968(0xb2)]),this[_0x226968(0x25c)]){this[_0x226968(0x25c)][_0x226968(0x208)]=!0x0,this[_0x226968(0x2c6)]();return;}}this[_0x226968(0x117)]();}));}[_0x1ed313(0x2c6)](){const _0x3f4601=_0x1ed313;this['_activeShapeInfo']&&(this[_0x3f4601(0x20d)]=this[_0x3f4601(0x1dc)][_0x3f4601(0x251)]({'id':Sn,'header':{'title':this['_localeService']['t'](_0x3f4601(0x2d5))},'width':0x184,'children':{'label':Sn,...this['_activeShapeInfo']},'onClose':()=>{const _0x3ea550=_0x3f4601;this[_0x3ea550(0x1b5)]['focusDrawing'](null),this[_0x3ea550(0x222)][_0x3ea550(0x22f)](_0x550431,!0x1),this['_sidebarDisposable']=null;}}),this[_0x3f4601(0xd0)]=!0x0);}[_0x1ed313(0x117)](){const _0x57c4af=_0x1ed313;this[_0x57c4af(0xd0)]=!0x1,this['_sidebarService']['close'](Sn),this[_0x57c4af(0x20d)]=null,this[_0x57c4af(0x222)]['setContextValue'](_0x550431,!0x1),this['_drawingManagerService']['focusDrawing'](null);}};pr=Y([J(0x0,_0x57a3de),J(0x1,_0x697169(_0x37253d)),J(0x2,_0x496115),J(0x3,_0x697169(_0x5486d2)),J(0x4,_0x697169(_0x3f505b)),J(0x5,_0x2eaf9c),J(0x6,_0x431f44),J(0x7,_0x697169(_0x55f451)),J(0x8,_0x3bb4e2),J(0x9,_0x134053),J(0xa,_0x697169(Zn))],pr);let $=class extends _0xff4adf{constructor(_0x3c1f5d=Vn,_0x1d0ed2,_0x507e1b,_0x78e5bc,_0x556019){const _0x509131=_0x1ed313;super(),this[_0x509131(0x2f7)]=_0x3c1f5d,this[_0x509131(0x257)]=_0x1d0ed2,this[_0x509131(0x1df)]=_0x507e1b,this[_0x509131(0xad)]=_0x78e5bc,this[_0x509131(0x15b)]=_0x556019;let {..._0x3a74ba}=_0x29cd84({},Vn,this[_0x509131(0x2f7)]);this['_configService'][_0x509131(0x1d2)]('sheets-shape-ui.config',_0x3a74ba),this[_0x509131(0x1c2)]();}['onRendered'](){_0x324bcf(this['_injector'],[[pr],[ir],[X],[dr]]);}[_0x1ed313(0x2d6)](){const _0x32f0fe=_0x1ed313;this[_0x32f0fe(0x257)][_0x32f0fe(0xbe)](pr)[_0x32f0fe(0x2cc)]();}[_0x1ed313(0x192)](){const _0x5a7a9e=_0x1ed313;[[sr],[Z],[cr]][_0x5a7a9e(0x190)](_0x385646=>this[_0x5a7a9e(0x257)][_0x5a7a9e(0x12d)](_0x385646)),_0x324bcf(this[_0x5a7a9e(0x257)],[[cr],[Z]]),this[_0x5a7a9e(0x15b)][_0x5a7a9e(0x1ec)](_0x35009f[_0x5a7a9e(0x26b)],[sr]),this['_renderManagerService'][_0x5a7a9e(0x1ec)](_0x35009f['UNIVER_SHEET'],[er]),this[_0x5a7a9e(0x15b)]['registerRenderModule'](_0x35009f[_0x5a7a9e(0x26b)],[ur]),this[_0x5a7a9e(0x15b)]['registerRenderModule'](_0x35009f[_0x5a7a9e(0x26b)],[nr]),this['_renderManagerService'][_0x5a7a9e(0x1ec)](_0x35009f['UNIVER_DOC'],[rr]);}[_0x1ed313(0x2b7)](){const _0x3b32e3=_0x1ed313;this[_0x3b32e3(0x257)][_0x3b32e3(0x12d)]([$n]),this[_0x3b32e3(0x257)][_0x3b32e3(0xbe)]($n);let _0xd80ede=this['_injector'];[[pr],[ir],[X],[dr],[Kn],[Zn],[tr],[Q],[fr]][_0x3b32e3(0x190)](_0x5d3935=>_0xd80ede['add'](_0x5d3935)),_0x324bcf(this['_injector'],[[pr],[ir],[X],[Kn],[Zn],[tr],[Q],[fr]]);}[_0x1ed313(0x1c2)](){const _0x575481=_0x1ed313;[xn,dn,zn,Bn,Dn,bn][_0x575481(0x190)](_0x4de731=>this[_0x575481(0xf6)](this[_0x575481(0x1df)][_0x575481(0x1c0)](_0x4de731)));}};q($,_0x1ed313(0x2ef),_0x35009f[_0x1ed313(0x26b)]),q($,_0x1ed313(0x22e),_0x1ed313(0x1c5)),q($,_0x1ed313(0x198),Ln),q($,_0x1ed313(0x28f),Rn),$=Y([_0x1f5803(_0x29e05d,_0x343243,_0x3a7159,_0x4dccc5),J(0x1,_0x697169(_0x264e1a)),J(0x2,_0x2eaf9c),J(0x3,_0x111a3e),J(0x4,_0x134053)],$);export{In as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};
|
|
1
|
+
const _0x43dbb9=_0x449a;(function(_0x4e70a5,_0xdf7fd3){const _0x5a991a=_0x449a,_0x23ff02=_0x4e70a5();while(!![]){try{const _0x14f7e7=parseInt(_0x5a991a(0x202))/0x1+parseInt(_0x5a991a(0x1d6))/0x2+-parseInt(_0x5a991a(0x2b7))/0x3*(-parseInt(_0x5a991a(0x1e1))/0x4)+parseInt(_0x5a991a(0x2a0))/0x5+-parseInt(_0x5a991a(0x88))/0x6+-parseInt(_0x5a991a(0x1af))/0x7*(parseInt(_0x5a991a(0x1ef))/0x8)+-parseInt(_0x5a991a(0x262))/0x9;if(_0x14f7e7===_0xdf7fd3)break;else _0x23ff02['push'](_0x23ff02['shift']());}catch(_0xaf2a7c){_0x23ff02['push'](_0x23ff02['shift']());}}}(_0x1d5d,0xef7b5));import{ComponentManager as _0x1953f8,IMenuManagerService as _0x44a75b,ISidebarService as _0x10b5ac,IconManager as _0x200e2a,MenuItemType as _0x142b74,RibbonInsertGroup as _0x24939b,getMenuHiddenObservable as _0x227618,useDependency as _0x597c42,useObservable as _0x31d745}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x427c58,ImageSourceTypeEnum as _0x283528,ShapeArrowSizeEnum as _0x421194,ShapeArrowTypeEnum as _0x454053,ShapeDefaultConfig as _0x2bc8ec,ShapeFillEnum as _0x27d461,ShapeLineTypeEnum as _0x517d31,ShapeModel as _0xf0c0c,ShapeRenderModeEnum as _0x33d52f,ShapeTypeEnum as _0x250922,computeConnectorRouteLayout as _0x3de713,getBasicShapeRotateBound as _0x15c292,isConnectorShape as _0x1f7f23,isCurvedConnectorShape as _0x2e1471,routeConnectorLineShape as _0xde601c}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0xe57842,createShapeFormulaDocument as _0x50262d,createShapeTextBoxShapeData as _0x25f061}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x28064d,InsertSheetsShapeMutation as _0x5addb7,RemoveSheetsShapeMutation as _0x35cadb,SetShapeDrawingDataCommand as _0xedfea5,SetSheetsShapeRotateCommand as _0x59af59,SetSheetsShapeTextVerticalToggleCommand as _0x1e9400,SheetsShapeService as _0x26a217,ToggleSheetsShapeFlipCommand as _0x494ee9,UniverSheetsShapePlugin as _0x249942,UpdateConnectorRelationCommand as _0x551591,UpdateLineShapeResizeCommand as _0x5760d5,UpdateSheetsShapeDataMutation as _0x19b81c}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x202737,CommandType as _0x8e0e3c,DependentOn as _0x8fb429,Disposable as _0x4760b3,DocumentDataModel as _0x10f73c,DrawingTypeEnum as _0x5d03f6,FOCUSING_COMMON_DRAWINGS as _0x596494,FOCUSING_SHAPE_TEXT_EDITOR as _0x4d1a78,HorizontalAlign as _0x1bf681,ICommandService as _0x4d9cac,IConfigService as _0x1e0ba7,IContextService as _0x21d773,IImageIoService as _0x5dd91b,IURLImageService as _0x488e09,IUndoRedoService as _0x4830b5,IUniverInstanceService as _0x7113c7,Inject as _0x450bf3,Injector as _0x183eff,LocaleService as _0xa3717a,Plugin as _0x33cfb9,UniverInstanceType as _0x2a1b28,VerticalAlign as _0x3d0a33,createInternalEditorID as _0x1a4a4b,generateRandomId as _0x2bfd17,merge as _0x2f8dd2,toDisposable as _0x43b296,touchDependencies as _0xdf78a}from'@univerjs/core';import{CopySheetCommand as _0x16ae42,RemoveSheetCommand as _0x299032,SheetInterceptorService as _0x9d40d,SheetPermissionCheckController as _0xf21f2,SheetSkeletonService as _0x1fc54d,SheetsSelectionsService as _0x412710,WorkbookEditablePermission as _0x1b5cb2,WorksheetEditPermission as _0x194b28,attachRangeWithCoord as _0x403c80,discreteRangeToRange as _0x25d2bc,getSheetCommandTarget as _0x59589e}from'@univerjs/sheets';import{IDrawingManagerService as _0x324617,SetDrawingSelectedOperation as _0xd68623,getDrawingShapeKeyByDrawingSearch as _0x7f2912}from'@univerjs/drawing';import{CURSOR_TYPE as _0x110f16,Circle as _0x536c54,DRAWING_OBJECT_LAYER_INDEX as _0x11332b,DocumentSkeleton as _0x475752,DocumentViewModel as _0x36f5ae,Documents as _0x1a519e,IRenderManagerService as _0x263af6,Image as _0x3100f0,RENDER_CLASS_TYPE as _0x842655,SHEET_VIEWPORT_KEY as _0x4ce309,Shape as _0x300c3f,Transform as _0x112a4b,Vector2 as _0xf6e38e}from'@univerjs/engine-render';import{COPY_TYPE as _0x202be0,ISheetClipboardService as _0x5dfcb1,PREDEFINED_HOOK_NAME as _0x32e6c9,SheetCanvasPopManagerService as _0x15ebbe,SheetPrintInterceptorService as _0x11a3e2,SheetScrollManagerService as _0xdbee74,SheetSkeletonManagerService as _0x392ff0,deriveStateFromActiveSheet$ as _0x4f53b0,getCurrentRangeDisable$ as _0x3b91cb,getViewportByCell as _0x1b930d}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x502f7b,EMPTY as _0x3149ab,Observable as _0x573c9d,of as _0x236700,switchMap as _0x46afa7}from'rxjs';import{FormulaShapeAnimationController as _0xeb6567,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x37ad89,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x9bdae2,ShapeEditPanel as _0x30898f,ShapeFloatingToolbar as _0xf7955b,ShapeGroupEnum as _0x2cca23,ShapePickerDropdown as _0x106929,ShapePickerPanel as _0x43451f,ShapeTextEditorContainer as _0x1ef440,ShapeTextFloatMenuRenderControllerBase as _0xd3a510,ShapeTextFloatToolbar as _0x312819,UniverShapeEditorUIPlugin as _0x5337ae,activateDrawingObject as _0x4df6a5,buildShapeTextDataUpdate as _0x299119,clearActiveDrawingObjects as _0xbdee17,drawFormulaShapeAnimationLayers as _0xe06053,getTextModel as _0x4d64d0,getTextStyle as _0x32374d,normalizeShapeTextModel as _0x5cbbbf,plainShapeTextToDocumentData as _0x12e116,prepareShapeTextDocumentData as _0x18b9c3,resolveFormulaShapeAutoFitSize as _0x3a11fc,resolveShapeTextDocumentRenderLayout as _0x2feb6a,resolveShapeTextEditorBehaviorShapeData as _0x11ab34,resolveShapeTextEditorWrapStrategy as _0x432797,shouldAllowShapeTextEditorHostSizeShrink as _0x7ce441,shouldClipShapeTextDocument as _0x25e48c,useFormulaShapeToolbar as _0x1d16dd}from'@univerjs-pro/shape-editor-ui';import{DrawingCommonPanel as _0xd5003,DrawingImageClipService as _0xe0e719,DrawingRenderService as _0x4d43e7,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x1f5a6b,OBJECT_LIST_FLOATING_SECTION_ID as _0x34974e,ObjectListPanelBase as _0x313482,getCurrentUnitInfo as _0x4a469b,getObjectListPanelLabels as _0x11da8e,getObjectListPanelSectionIdForDrawingType as _0x450da7,getObjectListPanelTypeName as _0x4a9bd6,insertGroupObject as _0x435a76}from'@univerjs/drawing-ui';import{Fragment as _0xf1e5d2,jsx as _0x2b677f,jsxs as _0x27f2a4}from'react/jsx-runtime';import{UniverLicensePlugin as _0x2cef26}from'@univerjs-pro/license';import{SheetDrawingAnchor as _0x1fbaec,SheetsDrawingGroupCopyPasteController as _0x12c68f,UniverSheetsDrawingUIPlugin as _0x56b5ca}from'@univerjs/sheets-drawing-ui';import{ObjectLayersIcon as _0x347bf2}from'@univerjs/icons';import{DrawingApplyType as _0x2640be,ISheetDrawingService as _0x57e4c3,RemoveSheetDrawingCommand as _0x10723d,SetDrawingApplyMutation as _0x6d6f97,SetDrawingArrangeCommand as _0x390f9f,SetSheetDrawingCommand as _0x1fd507,transformToAxisAlignPosition as _0x38f007,transformToDrawingPosition as _0x556f36}from'@univerjs/sheets-drawing';import{memo as _0x3adf0a,useEffect as _0x15fc40,useMemo as _0x293422,useReducer as _0x97793a,useState as _0x5a0562}from'react';import{DocSelectionManagerService as _0x1263d4}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x86b0a2,DocSelectionRenderService as _0x7b1fa8}from'@univerjs/docs-ui';function hn(_0xf21082,_0x240fd8){const _0x5eb3c1=_0x449a;let _0x2fe8ba={};for(let _0x5f1b45 of Object[_0x5eb3c1(0x293)](_0x240fd8)){let _0x11debf=_0x240fd8[_0x5f1b45],_0x45311d=_0xf21082[_0x5f1b45];if(_0x11debf!==void 0x0){if(_0x45311d===void 0x0){_0x2fe8ba[_0x5f1b45]=void 0x0;continue;}typeof _0x11debf==_0x5eb3c1(0x2cf)&&_0x11debf&&!Array[_0x5eb3c1(0x271)](_0x11debf)&&typeof _0x45311d==_0x5eb3c1(0x2cf)&&_0x45311d&&!Array[_0x5eb3c1(0x271)](_0x45311d)?_0x2fe8ba[_0x5f1b45]=hn(_0x45311d,_0x11debf):_0x2fe8ba[_0x5f1b45]=_0x45311d;}}return _0x2fe8ba;}const gn={'type':_0x8e0e3c[_0x43dbb9(0x82)],'id':_0x43dbb9(0xf3),'handler':(_0x2e3fb6,_0xa7a62d)=>{const _0x221cad=_0x43dbb9;let _0x4b73c4=_0x2e3fb6[_0x221cad(0x1bd)](_0x26a217),{unitId:_0x53a325,subUnitId:_0xc66f0c,shapeType:_0x3c2935,shapeId:_0x5d6e50,shapeData:_0x32d918,oldShapeJSON:_0x3903dc}=_0xa7a62d;if(!_0x4b73c4[_0x221cad(0x251)](_0x53a325,_0xc66f0c,_0x5d6e50))return!0x1;let _0x3e99f2=_0x2e3fb6[_0x221cad(0x1bd)](_0x4d9cac),_0x369666=_0x2e3fb6[_0x221cad(0x1bd)](_0x4830b5),{oldShapeType:_0x421706,oldShapeData:_0x422654={}}=_0x3903dc,_0xd32860=hn(_0x422654,_0x32d918||{}),_0x21966d={'id':_0x19b81c['id'],'params':{'unitId':_0x53a325,'subUnitId':_0xc66f0c,'shapeId':_0x5d6e50,'shapeType':_0x3c2935,'shapeData':_0x32d918}},_0x48a4c4={'id':_0x19b81c['id'],'params':{'unitId':_0x53a325,'subUnitId':_0xc66f0c,'shapeId':_0x5d6e50,'shapeType':_0x421706,'shapeData':_0xd32860}};return _0x3e99f2[_0x221cad(0x193)](_0x21966d['id'],_0x21966d[_0x221cad(0x118)])?(_0x369666[_0x221cad(0x278)]({'unitID':_0x53a325,'undoMutations':[_0x48a4c4],'redoMutations':[_0x21966d]}),!0x0):!0x1;}};function _n(_0x3790d7,_0x2e21ab,_0x3c111d,_0x106f77,_0x29067f,_0x210dda){const _0x302695=_0x43dbb9;let _0x160d51={'unitId':_0x2e21ab,'subUnitId':_0x3c111d,'shapeId':_0x106f77,'shapeData':_0x210dda,'oldShapeJSON':_0x29067f};return _0x3790d7[_0x302695(0x2d0)](gn['id'],_0x160d51);}function vn(_0x5bab22,_0x5e48b2,_0xab0945,_0x48f5ca,_0x36d2ce,_0x508021){const _0x48c629=_0x43dbb9;let _0x1bf7fa={'unitId':_0x5e48b2,'subUnitId':_0xab0945,'shapeId':_0x48f5ca,'shapeData':_0x508021,'oldShapeJSON':_0x36d2ce};return _0x5bab22[_0x48c629(0x2d0)](gn['id'],_0x1bf7fa);}function yn(_0x4d922d){'@babel/helpers - typeof';const _0x42cc13=_0x43dbb9;return yn=typeof Symbol==_0x42cc13(0x1ac)&&typeof Symbol['iterator']==_0x42cc13(0x136)?function(_0x39a3f){return typeof _0x39a3f;}:function(_0xfba3ca){const _0x4ee0f2=_0x42cc13;return _0xfba3ca&&typeof Symbol==_0x4ee0f2(0x1ac)&&_0xfba3ca[_0x4ee0f2(0x8c)]===Symbol&&_0xfba3ca!==Symbol[_0x4ee0f2(0x2a9)]?_0x4ee0f2(0x136):typeof _0xfba3ca;},yn(_0x4d922d);}function bn(_0x5ed4d1,_0x2554b2){const _0x14f895=_0x43dbb9;if(yn(_0x5ed4d1)!=_0x14f895(0x2cf)||!_0x5ed4d1)return _0x5ed4d1;var _0xfeb47=_0x5ed4d1[Symbol[_0x14f895(0x1cc)]];if(_0xfeb47!==void 0x0){var _0x794ace=_0xfeb47[_0x14f895(0x210)](_0x5ed4d1,_0x2554b2||_0x14f895(0x2ce));if(yn(_0x794ace)!='object')return _0x794ace;throw TypeError(_0x14f895(0x108));}return(_0x2554b2===_0x14f895(0x16a)?String:Number)(_0x5ed4d1);}function xn(_0x535207){const _0x438d83=_0x43dbb9;var _0x27a401=bn(_0x535207,_0x438d83(0x16a));return yn(_0x27a401)==_0x438d83(0x136)?_0x27a401:_0x27a401+'';}function Y(_0x45e9e2,_0x5ee48a,_0x33fd40){const _0x2dc04b=_0x43dbb9;return(_0x5ee48a=xn(_0x5ee48a))in _0x45e9e2?Object[_0x2dc04b(0xd4)](_0x45e9e2,_0x5ee48a,{'value':_0x33fd40,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x45e9e2[_0x5ee48a]=_0x33fd40,_0x45e9e2;}function Sn(_0x15c52d,_0x5b4e88,_0x2881d8){var _0x1cf808;let _0x56007d=_0x11ab34(_0x15c52d,{..._0x5b4e88,'dataModel':{...(_0x1cf808=_0x5b4e88['dataModel'])==null?{}:_0x1cf808,..._0x2881d8?{'doc':_0x2881d8}:null}}),_0x45581d=_0x432797(_0x56007d);return{'clip':_0x25e48c(_0x56007d,_0x45581d),'wrapStrategy':_0x45581d};}var Cn=class extends _0x300c3f{constructor(_0x560cbe,_0x1768aa){const _0xda73e=_0x43dbb9;super(_0x560cbe,_0x1768aa),Y(this,'_props',void 0x0),Y(this,_0xda73e(0x17d),new _0xeb6567(()=>this[_0xda73e(0x15d)](!0x0),()=>this['_applyFormulaAutoFitSize']())),Y(this,_0xda73e(0xaa),!0x0),Y(this,'_drawingType',_0x5d03f6[_0xda73e(0x23a)]),Y(this,_0xda73e(0x2aa),!0x0),this[_0xda73e(0x1b4)]={..._0x1768aa},this['_formulaAnimation']['setPresentation'](_0x1768aa[_0xda73e(0x1c2)],_0x1768aa[_0xda73e(0x2dc)]!==!0x1),this[_0xda73e(0x284)](),this[_0xda73e(0x10d)]();}['_init'](){const _0x289520=_0x43dbb9;this[_0x289520(0x184)][_0x289520(0x17c)](_0x4105ab=>{const _0x1459fd=_0x289520;this[_0x1459fd(0x2bf)](_0x4105ab);});}['setPrstGeom'](_0x1943fa){const _0x1a80ba=_0x43dbb9;this['_props'][_0x1a80ba(0x132)]=_0x1943fa;}[_0x43dbb9(0xc7)](_0xc8c20b){const _0x2ccd13=_0x43dbb9;this[_0x2ccd13(0x1b4)][_0x2ccd13(0x206)]=_0xc8c20b,this[_0x2ccd13(0x15d)](!0x0);}[_0x43dbb9(0xdc)](_0x99f1e5,_0x3e9e8a=!0x0){const _0x1a6ffe=_0x43dbb9;this[_0x1a6ffe(0x17d)][_0x1a6ffe(0x142)](_0x99f1e5,_0x3e9e8a),this[_0x1a6ffe(0x1b4)]['formulaPresentation']=_0x99f1e5,this[_0x1a6ffe(0x10d)](),this['makeDirty'](!0x0);}[_0x43dbb9(0x10d)](){const _0x246453=_0x43dbb9;let _0x311cd3=this[_0x246453(0x1b4)][_0x246453(0xc0)],_0x1eaf59=_0x311cd3[_0x246453(0xc1)](),_0x3f0d67=_0x5cbbbf(_0x1eaf59==null?void 0x0:_0x1eaf59[_0x246453(0x29c)]),_0x585098=_0x3f0d67==null?void 0x0:_0x3f0d67[_0x246453(0xe5)],_0x3af3e3=this['_formulaAnimation'][_0x246453(0xca)]();if(!_0x585098||_0x3af3e3[_0x246453(0x15f)]===0x0)return;_0x311cd3[_0x246453(0x104)]({'width':this[_0x246453(0xf7)],'height':this[_0x246453(0x1dc)]});let _0x5b85eb=_0x3a11fc({'documentData':_0x3af3e3[_0x246453(0x29a)](_0x267f6e=>_0x50262d(_0x585098,_0x267f6e)),'height':this[_0x246453(0x1dc)],'shapeData':_0x311cd3['getShapeData'](),'textRect':_0x311cd3[_0x246453(0x11a)]({'left':0x0,'top':0x0,'width':this[_0x246453(0xf7)],'height':this[_0x246453(0x1dc)]}),'width':this[_0x246453(0xf7)]});if(_0x5b85eb){var _0x18ac78;this[_0x246453(0x90)](_0x5b85eb[_0x246453(0xf7)],_0x5b85eb['height']),(_0x18ac78=this[_0x246453(0x17f)]())==null||(_0x18ac78=_0x18ac78[_0x246453(0x279)]())==null||_0x18ac78['debounceRefreshControls']();}}get[_0x43dbb9(0x25d)](){const _0x4dc28a=_0x43dbb9;return this[_0x4dc28a(0x1b4)]['unitId'];}get[_0x43dbb9(0x212)](){const _0x59f6fa=_0x43dbb9;return this['_props'][_0x59f6fa(0x212)];}[_0x43dbb9(0x2bf)](_0x1a6f3b){const _0x59f64e=_0x43dbb9;if(this[_0x59f64e(0x1b4)]['srcRect']==null||!this['_transformCalculateSrcRect'])return;let {width:_0x391dfe,height:_0x3d75fc}=this,{width:_0x5b3329=0x0,height:_0x34cd16=0x0}=_0x1a6f3b[_0x59f64e(0x1b6)],{left:_0x452af3=0x0,top:_0x4e3e08=0x0,right:_0x27db71=0x0,bottom:_0x4f79d8=0x0}=this[_0x59f64e(0x1b4)]['srcRect'],_0x59577c=_0x452af3,_0x1c2fb3=_0x4e3e08,_0x2e94b5=_0x27db71,_0x39664e=_0x4f79d8,_0x27f803=!0x1;if(_0x5b3329!==0x0&&_0x5b3329!==_0x391dfe){let _0x1491bb=_0x452af3/_0x5b3329,_0x1e145d=_0x27db71/_0x5b3329;_0x59577c=_0x391dfe*_0x1491bb,_0x2e94b5=_0x391dfe*_0x1e145d,_0x27f803=!0x0;}if(_0x34cd16!==0x0&&_0x34cd16!==_0x3d75fc){let _0x5d3af6=_0x4e3e08/_0x34cd16,_0x40cea9=_0x4f79d8/_0x34cd16;_0x1c2fb3=_0x3d75fc*_0x5d3af6,_0x39664e=_0x3d75fc*_0x40cea9,_0x27f803=!0x0;}_0x27f803&&this[_0x59f64e(0x20f)]({'left':_0x59577c,'top':_0x1c2fb3,'right':_0x2e94b5,'bottom':_0x39664e});}['setSrcRect'](_0x5b8dd8){const _0x1d73d2=_0x43dbb9;this[_0x1d73d2(0x1b4)][_0x1d73d2(0x2e8)]=_0x5b8dd8,this['makeDirty'](!0x0);}[_0x43dbb9(0x1a2)](_0x261c58){const _0x536903=_0x43dbb9;this[_0x536903(0x1b4)][_0x536903(0x1a5)]=_0x261c58,this['makeDirty'](!0x0);}set[_0x43dbb9(0x10c)](_0x3fb161){this['_transform']=_0x3fb161;}get[_0x43dbb9(0x10c)](){const _0x29edd9=_0x43dbb9;this[_0x29edd9(0x125)]||this['_setTransForm']();let _0x1882f9=this[_0x29edd9(0x125)]['clone']();return this[_0x29edd9(0x14e)](_0x1882f9);}get['shapeModel'](){const _0x592fc8=_0x43dbb9;return this[_0x592fc8(0x1b4)][_0x592fc8(0xc0)];}get['shapeId'](){const _0x1128b1=_0x43dbb9;return this['_props'][_0x1128b1(0xfc)];}get[_0x43dbb9(0x19d)](){return _0x842655['SHAPE'];}['_draw'](_0x34ee13,_0xbce4a9,_0x440648,_0x3e6f61){const _0x141f03=_0x43dbb9;let _0x51de90=this[_0x141f03(0x1b4)][_0x141f03(0xc0)];if(!_0x51de90||!_0xbce4a9)return;let _0x5dd801=_0x440648==null?this['width']:_0x440648,_0x2409d3=_0x3e6f61==null?this['height']:_0x3e6f61,_0x308d91={'shapeType':_0x51de90[_0x141f03(0x2ad)](),'width':_0x5dd801,'height':_0x2409d3},_0x52b487={'renderMode':_0x33d52f['Path'],'oKey':this[_0x141f03(0xe8)],'image':this[_0x141f03(0x1b4)][_0x141f03(0x1a5)],'angle':this[_0x141f03(0x2e1)]};_0x51de90['updateContext'](_0x308d91),_0x34ee13['save']();let _0x5de896={'top':0x0,'left':0x0,'width':_0x5dd801,'height':_0x2409d3};_0x51de90['render'](_0x34ee13,_0x5de896,_0x52b487),_0x34ee13[_0x141f03(0x22f)]();let _0x5056b4=_0x51de90[_0x141f03(0xc1)](),_0x483950=_0x51de90[_0x141f03(0x11a)](_0x5de896),_0x2895b3=_0x51de90[_0x141f03(0xed)]();if(_0x5056b4&&_0x483950&&!_0x2895b3){_0x34ee13[_0x141f03(0x1fd)](),this[_0x141f03(0xde)]()['flipX']&&_0x34ee13[_0x141f03(0x20b)](-0x1,0x1);let _0x4bafcb=_0x5dd801/0x2,_0x2822d0=_0x2409d3/0x2;_0x34ee13[_0x141f03(0x167)](-_0x4bafcb,-_0x2822d0),_0x34ee13[_0x141f03(0xd8)](),this['_drawShapeText'](_0x34ee13,_0x5056b4,_0x483950),_0x34ee13[_0x141f03(0x22f)]();}}['getDrawingPoints'](_0x5d47e8){}['_drawShapeText'](_0x2f9156,_0x128f56,_0x481377){const _0x5079ba=_0x43dbb9;var _0x15c167;this[_0x5079ba(0x1b4)][_0x5079ba(0x206)]||(!((_0x15c167=_0x128f56[_0x5079ba(0x29c)])!=null&&_0x15c167[_0x5079ba(0xe5)])&&_0x5079ba(0x1ed)in _0x128f56&&_0x128f56[_0x5079ba(0x1ed)]===!0x1?this['_drawSimpleText'](_0x2f9156,_0x128f56,_0x481377):this[_0x5079ba(0xc4)](_0x2f9156,_0x128f56,_0x481377));}['_drawSimpleText'](_0x47de01,_0x4e878d,_0x5cfaa1){const _0x47591a=_0x43dbb9;var _0x1d8187;this[_0x47591a(0xc4)](_0x47de01,{..._0x4e878d,'text':(_0x1d8187=_0x4e878d[_0x47591a(0x199)])==null?'':_0x1d8187,'dataModel':{'doc':_0x12e116(_0x4e878d,_0x47591a(0x24e)+this[_0x47591a(0xe8)])}},_0x5cfaa1);}[_0x43dbb9(0xc4)](_0x5efc12,_0x5a884c,_0x3f6287){const _0x330a02=_0x43dbb9;_0xe06053(_0x5efc12,this[_0x330a02(0x17d)],(_0x33cbab,_0x21b403)=>{const _0x35136a=_0x330a02;this[_0x35136a(0x2b4)](_0x33cbab,_0x5a884c,_0x3f6287,_0x21b403);});}['_drawRichTextLayer'](_0x3074c3,_0x2476d5,_0x92c6ed,_0xd97716){const _0x1f90e3=_0x43dbb9;var _0x4da2d9,_0xa2abcc;let _0x1e1392=this[_0x1f90e3(0x1b4)][_0x1f90e3(0x183)];if(!_0x2476d5[_0x1f90e3(0x29c)]||!_0x1e1392)return;let _0x7cd7a2=_0x5cbbbf(_0x2476d5[_0x1f90e3(0x29c)]);if(!_0x7cd7a2)return;let _0x1e5228=_0x7cd7a2['doc'];if(!_0x1e5228)return;let _0x16fdd0=_0x50262d(_0x1e5228,_0xd97716),_0x452eee=(_0x4da2d9=_0x7cd7a2['va'])==null?_0x3d0a33[_0x1f90e3(0x116)]:_0x4da2d9,_0x204ca4=(_0xa2abcc=_0x7cd7a2['ha'])==null?_0x1bf681['LEFT']:_0xa2abcc,_0x53d39c=Sn(this[_0x1f90e3(0x1b4)]['shapeModel']['getShapeData'](),_0x2476d5,_0x16fdd0),_0x5852b0=_0x2476d5[_0x1f90e3(0xd1)],_0x5574d6=new _0x10f73c(_0x18b9c3(_0x16fdd0,{'isHorizontal':_0x5852b0!==!0x1,'textRect':_0x92c6ed,'verticalAlign':_0x452eee,'horizontalAlign':_0x204ca4,'wrapStrategy':_0x53d39c['wrapStrategy']})),_0x37ffac=new _0x36f5ae(_0x5574d6),_0x5a23e2=_0x475752[_0x1f90e3(0x9c)](_0x37ffac,_0x1e1392);_0x5a23e2[_0x1f90e3(0x264)]();let _0x10a7c1=_0x5a23e2[_0x1f90e3(0x175)]()[_0x1f90e3(0x1d1)],_0x470bf3=_0x2feb6a({'contentHeight':_0x10a7c1,'verticalAlign':_0x452eee,'viewportHeight':_0x92c6ed[_0x1f90e3(0x1dc)]});_0x5574d6['updateDocumentStyle']({'pageSize':{'width':_0x5852b0===!0x1?_0x92c6ed[_0x1f90e3(0x1dc)]:_0x92c6ed[_0x1f90e3(0xf7)],'height':_0x470bf3[_0x1f90e3(0x232)]}}),_0x5574d6['updateDocumentDataMargin']({'t':_0x470bf3[_0x1f90e3(0x85)]}),_0x5a23e2[_0x1f90e3(0x264)]();let _0x3bc687=new _0x1a519e(_0x1f90e3(0x192)+this[_0x1f90e3(0xe8)],_0x5a23e2,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x1f90e3(0x15d)](!0x0)});_0x3bc687['resize'](_0x92c6ed[_0x1f90e3(0xf7)],_0x470bf3[_0x1f90e3(0x232)]),_0x3074c3[_0x1f90e3(0x1fd)](),_0x3074c3[_0x1f90e3(0xd5)](_0x92c6ed[_0x1f90e3(0x11f)],_0x92c6ed['top']),_0x53d39c[_0x1f90e3(0x2db)]&&(_0x3074c3[_0x1f90e3(0xd8)](),_0x3074c3[_0x1f90e3(0x16c)](0x0,_0x470bf3[_0x1f90e3(0xd3)],_0x92c6ed[_0x1f90e3(0xf7)],_0x470bf3[_0x1f90e3(0x21c)]),_0x3074c3[_0x1f90e3(0x2db)]()),_0x470bf3[_0x1f90e3(0x9b)]&&_0x3074c3[_0x1f90e3(0xd5)](0x0,_0x470bf3[_0x1f90e3(0x9b)]),_0x3bc687[_0x1f90e3(0x1f3)](_0x3074c3),_0x3074c3[_0x1f90e3(0x22f)](),_0x3bc687[_0x1f90e3(0x2dd)](),_0x5a23e2['dispose'](),_0x37ffac[_0x1f90e3(0x2dd)](),_0x5574d6[_0x1f90e3(0x2dd)]();}[_0x43dbb9(0x2b6)](_0xc0213a,_0x38751c,_0x1bc156=!0x1){const _0x5cd1ec=_0x43dbb9;if(!this[_0x5cd1ec(0x2cc)])return this[_0x5cd1ec(0x15d)](!0x1),this;let {width:_0x1c77f6,height:_0x383abb,left:_0x24cdb8,top:_0x548d5f}=this,_0x247496=this[_0x5cd1ec(0x272)]();if(_0x1c77f6=_0x247496[_0x5cd1ec(0xf7)],_0x383abb=_0x247496[_0x5cd1ec(0x1dc)],_0x24cdb8=_0x247496['left'],_0x548d5f=_0x247496[_0x5cd1ec(0x16e)],this['isRender'](_0x38751c)){let {top:_0x17832c,left:_0x8f72ec,bottom:_0x5ef7a4,right:_0x2e885c}=_0x38751c[_0x5cd1ec(0xc6)];if(_0x1c77f6+this[_0x5cd1ec(0x185)]+_0x24cdb8<_0x8f72ec||_0x2e885c<_0x24cdb8||_0x383abb+this[_0x5cd1ec(0x185)]+_0x548d5f<_0x17832c||_0x5ef7a4<_0x548d5f)return this;}let _0x218577=_0x24cdb8+_0x1c77f6/0x2,_0x3e5f64=_0x548d5f+_0x383abb/0x2,_0x51ad4e=this[_0x5cd1ec(0x10c)]['getMatrix']();if(this['_props']['isEditing']){let _0x113146=this[_0x5cd1ec(0xde)](),_0x3c6d0e=new _0x112a4b();_0x3c6d0e[_0x5cd1ec(0x91)]({..._0x113146}),_0x51ad4e=_0x3c6d0e['getMatrix']();}return _0xc0213a[_0x5cd1ec(0x1fd)](),this[_0x5cd1ec(0x1b4)][_0x5cd1ec(0xc0)]['isRenderLinePointsMode']===!0x0||_0xc0213a[_0x5cd1ec(0x10c)](_0x51ad4e[0x0],_0x51ad4e[0x1],_0x51ad4e[0x2],_0x51ad4e[0x3],_0x218577,_0x3e5f64),this[_0x5cd1ec(0xd0)](_0xc0213a,_0x38751c,_0x1c77f6,_0x383abb),_0xc0213a[_0x5cd1ec(0x22f)](),this[_0x5cd1ec(0x15d)](!0x1),this;}['getInverseCoord'](_0x3d42e1){const _0x470cdd=_0x43dbb9;let {left:_0x4300dd,top:_0x575b99,width:_0xb606b1,height:_0x52a059}=this[_0x470cdd(0x272)](),_0x81ff63=this[_0x470cdd(0x10c)][_0x470cdd(0x1b9)](),_0x2ef11f=_0x4300dd+_0xb606b1/0x2,_0x16f7bf=_0x575b99+_0x52a059/0x2,_0x5c647e=new _0x112a4b([_0x81ff63[0x0],_0x81ff63[0x1],_0x81ff63[0x2],_0x81ff63[0x3],_0x2ef11f,_0x16f7bf]),_0x29f1c7=this[_0x470cdd(0x1d9)]();return(this[_0x470cdd(0xa8)]&&(_0x29f1c7==null?void 0x0:_0x29f1c7[_0x470cdd(0x19d)])===_0x842655[_0x470cdd(0xf6)]?_0x29f1c7[_0x470cdd(0x8b)]['multiply'](_0x5c647e):_0x5c647e)['invert']()[_0x470cdd(0x22c)](_0x3d42e1);}[_0x43dbb9(0x102)](_0x36a92d){const _0x308236=_0x43dbb9;let {left:_0x5c6adf,top:_0x37063e,width:_0x209179,height:_0x4b4dc5}=this[_0x308236(0x272)](),_0x4171bd=_0x5c6adf+_0x209179/0x2,_0x401f2a=_0x37063e+_0x4b4dc5/0x2,_0x2804f2=this['transform'][_0x308236(0x1b9)](),_0xfda5d6=new _0x112a4b([_0x2804f2[0x0],_0x2804f2[0x1],_0x2804f2[0x2],_0x2804f2[0x3],_0x4171bd,_0x401f2a]),_0x2c8438=this['getParent'](),_0x286431=(this[_0x308236(0xa8)]&&(_0x2c8438==null?void 0x0:_0x2c8438[_0x308236(0x19d)])===_0x842655[_0x308236(0xf6)]?_0x2c8438[_0x308236(0x8b)]['multiply'](_0xfda5d6):_0xfda5d6)[_0x308236(0x23b)]()[_0x308236(0x22c)](_0x36a92d),_0x3917cd=_0x209179/0x2,_0x4a550d=_0x4b4dc5/0x2,_0x281148=this[_0x308236(0x1b4)]['shapeModel'];return _0x281148&&_0x281148[_0x308236(0xed)]()?_0x281148[_0x308236(0x29d)](_0x286431['x'],_0x286431['y'],_0x209179,_0x4b4dc5):_0x286431['x']>=-_0x3917cd-this[_0x308236(0x185)]/0x2&&_0x286431['x']<=_0x3917cd+this[_0x308236(0x185)]/0x2&&_0x286431['y']>=-_0x4a550d-this[_0x308236(0x185)]/0x2&&_0x286431['y']<=_0x4a550d+this[_0x308236(0x185)]/0x2;}[_0x43dbb9(0x2dd)](){const _0x2c6f94=_0x43dbb9;this[_0x2c6f94(0x17d)][_0x2c6f94(0x2dd)](),this[_0x2c6f94(0x1b4)][_0x2c6f94(0xc0)]=null,super[_0x2c6f94(0x2dd)]();}},wn=class extends _0x300c3f{constructor(_0x50d5ce,_0x1564b0){const _0x59cfbb=_0x43dbb9;super(_0x50d5ce,_0x1564b0),Y(this,_0x59cfbb(0x249),null),Y(this,_0x59cfbb(0x1eb),null),Y(this,_0x59cfbb(0x238),null),Y(this,_0x59cfbb(0x250),null),_0x1564b0&&this[_0x59cfbb(0x152)](_0x1564b0);}[_0x43dbb9(0x1f1)](){const _0x18621e=_0x43dbb9;return{'unitId':this[_0x18621e(0x238)],'subUnitId':this[_0x18621e(0x250)],'drawingId':this[_0x18621e(0x249)]};}[_0x43dbb9(0x152)](_0x202d4b){const _0x5b4190=_0x43dbb9;_0x202d4b[_0x5b4190(0xfc)]!==void 0x0&&(this['_shapeId']=_0x202d4b[_0x5b4190(0xfc)]),_0x202d4b[_0x5b4190(0x18a)]!==void 0x0&&(this[_0x5b4190(0x1eb)]=_0x202d4b['adjName']),_0x202d4b['unitId']!==void 0x0&&(this[_0x5b4190(0x238)]=_0x202d4b[_0x5b4190(0x25d)]),_0x202d4b[_0x5b4190(0x212)]!==void 0x0&&(this[_0x5b4190(0x250)]=_0x202d4b['subUnitId']),this[_0x5b4190(0x1c7)]({'width':_0x202d4b['width'],'height':_0x202d4b[_0x5b4190(0x1dc)]});}[_0x43dbb9(0xd0)](_0x5f54dc){const _0x4d0c43=_0x43dbb9;_0x536c54['drawWith'](_0x5f54dc,{'radius':_0x2bc8ec[_0x4d0c43(0x86)],'fill':_0x2bc8ec['adjHandleFill'],'stroke':_0x2bc8ec[_0x4d0c43(0x140)],'strokeWidth':0x1,'evented':!0x0});}};function X(_0x35d0eb,_0x29a260){return function(_0x4cce1a,_0x467a77){_0x29a260(_0x4cce1a,_0x467a77,_0x35d0eb);};}function Z(_0x6efa4b,_0x28b08d,_0x6606dd,_0x312ae5){const _0x46ed12=_0x43dbb9;var _0xb94b9d=arguments[_0x46ed12(0x15f)],_0xbf3293=_0xb94b9d<0x3?_0x28b08d:_0x312ae5===null?_0x312ae5=Object[_0x46ed12(0x297)](_0x28b08d,_0x6606dd):_0x312ae5,_0x583a33;if(typeof Reflect=='object'&&typeof Reflect[_0x46ed12(0x280)]==_0x46ed12(0x1ac))_0xbf3293=Reflect[_0x46ed12(0x280)](_0x6efa4b,_0x28b08d,_0x6606dd,_0x312ae5);else{for(var _0x1c2001=_0x6efa4b[_0x46ed12(0x15f)]-0x1;_0x1c2001>=0x0;_0x1c2001--)(_0x583a33=_0x6efa4b[_0x1c2001])&&(_0xbf3293=(_0xb94b9d<0x3?_0x583a33(_0xbf3293):_0xb94b9d>0x3?_0x583a33(_0x28b08d,_0x6606dd,_0xbf3293):_0x583a33(_0x28b08d,_0x6606dd))||_0xbf3293);}return _0xb94b9d>0x3&&_0xbf3293&&Object[_0x46ed12(0xd4)](_0x28b08d,_0x6606dd,_0xbf3293),_0xbf3293;}let Q=class extends _0x4760b3{constructor(_0x55d103,_0x51ba7f,_0xed3145,_0x153aee,_0x81a4d1,_0x3ce517){const _0x36956c=_0x43dbb9;super(),this['_drawingManagerService']=_0x55d103,this[_0x36956c(0x1ff)]=_0x51ba7f,this[_0x36956c(0x1ca)]=_0xed3145,this[_0x36956c(0x12a)]=_0x153aee,this[_0x36956c(0xa7)]=_0x81a4d1,this[_0x36956c(0x221)]=_0x3ce517,Y(this,_0x36956c(0x27e),new Map()),this[_0x36956c(0x11b)](this[_0x36956c(0x221)][_0x36956c(0x8e)][_0x36956c(0x28f)](_0x38558c=>{const _0x16f57c=_0x36956c;var _0x1fab09;(_0x1fab09=this[_0x16f57c(0x27e)][_0x16f57c(0x1bd)](this[_0x16f57c(0x159)](_0x38558c[_0x16f57c(0x25d)],_0x38558c['subUnitId'],_0x38558c[_0x16f57c(0xfc)])))==null||_0x1fab09[_0x16f57c(0x200)](_0x243466=>_0x243466['setFormulaPresentation'](_0x38558c['presentation'],_0x38558c['animationEnabled']));})),this[_0x36956c(0x11b)](this[_0x36956c(0xcc)][_0x36956c(0xd6)][_0x36956c(0x28f)](_0xb98716=>{const _0x295166=_0x36956c;_0xb98716[_0x295166(0x200)](_0x3a05e9=>{const _0x58a801=_0x295166;this[_0x58a801(0x221)][_0x58a801(0x252)]({'unitId':_0x3a05e9[_0x58a801(0x25d)],'subUnitId':_0x3a05e9[_0x58a801(0x212)],'shapeId':_0x3a05e9[_0x58a801(0x1a9)]}),this[_0x58a801(0x27e)]['delete'](this[_0x58a801(0x159)](_0x3a05e9['unitId'],_0x3a05e9[_0x58a801(0x212)],_0x3a05e9['drawingId']));});}));}['renderDrawingShape'](_0x4ce5c5,_0x3b0918,_0x3235e4){const _0x2cbb1d=_0x43dbb9;let {transform:_0xe63bd1,drawingType:_0x4fc7d6,srcRect:_0x1bfa8b,prstGeom:_0x371562,groupId:_0x2c12ed,unitId:_0x43f1d5,subUnitId:_0x864554,drawingId:_0x345888,isMultiTransform:_0x5443a3,transforms:_0xcb0612,hidden:_0x31ed12,selectable:_0x256c48}=_0x4ce5c5;if(_0x4fc7d6!==_0x5d03f6['DRAWING_SHAPE']||!this[_0x2cbb1d(0xcc)][_0x2cbb1d(0x230)]()||_0xe63bd1==null)return;let _0x31823e=this[_0x2cbb1d(0xcc)][_0x2cbb1d(0x2d3)]();_0x31823e&&_0x3b0918[_0x2cbb1d(0x129)](_0x37ad89);let _0x29de37=_0x5443a3&&_0xcb0612?_0xcb0612:[_0xe63bd1],_0x582364=[];for(let _0x4c9d3e of _0x29de37){let {left:_0x3c121a,top:_0x463343,width:_0x13112a,height:_0x5e5f59,angle:_0x5ede6b,flipX:_0x43698c,flipY:_0x5de83a,skewX:_0xd8bfa7,skewY:_0x4d9803}=_0x4c9d3e,_0x466da9=_0x29de37[_0x2cbb1d(0x253)](_0x4c9d3e),_0x47e263=_0x7f2912({'unitId':_0x43f1d5,'subUnitId':_0x864554,'drawingId':_0x345888},_0x5443a3?_0x466da9:void 0x0),_0x3bd7d5=_0x3b0918[_0x2cbb1d(0x1de)](_0x47e263);if(_0x3bd7d5!=null){let _0x206f75={'unitId':_0x43f1d5,'subUnitId':_0x864554,'shapeId':_0x345888};_0x3bd7d5 instanceof Cn&&this['refreshFormulaPresentation'](_0x3bd7d5,_0x206f75),_0x3bd7d5[_0x2cbb1d(0x1c7)]({'left':_0x3c121a,'top':_0x463343,'width':_0x13112a,'height':_0x5e5f59,'angle':_0x5ede6b,'flipX':_0x43698c,'flipY':_0x5de83a,'skewX':_0xd8bfa7,'skewY':_0x4d9803});continue;}let _0x48ef02=this['_drawingManagerService']['getDrawingOrder'](_0x43f1d5,_0x864554),_0x3f6db4=_0x48ef02[_0x2cbb1d(0x253)](_0x345888);if(_0x3b0918[_0x2cbb1d(0x1de)](_0x47e263)||!this['_drawingManagerService'][_0x2cbb1d(0x230)]())continue;let _0x5d2210=this['_sheetsShapeService']['getShapeModel'](_0x43f1d5,_0x864554,_0x345888);if(!_0x5d2210)continue;let _0x1f249e=_0x1f7f23(_0x5d2210[_0x2cbb1d(0x2ad)]()),_0x27a77c=_0x5d2210['getShapeData']()[_0x2cbb1d(0x17a)],_0x33af18={'unitId':_0x43f1d5,'subUnitId':_0x864554,'shapeId':_0x345888};_0x27a77c&&this[_0x2cbb1d(0x221)][_0x2cbb1d(0x21e)](_0x33af18,_0x27a77c);let _0x37bf9e=new Cn(_0x47e263,{..._0x1f249e?{..._0x4c9d3e,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x4c9d3e},'zIndex':_0x3f6db4===-0x1?_0x48ef02['length']-0x1:_0x3f6db4,'shapeModel':_0x5d2210,'localeService':this['_localeService'],'shapeId':_0x345888,'unitId':_0x43f1d5,'subUnitId':_0x864554,'visible':_0x31ed12!==!0x0,'evented':_0x256c48!==!0x1,'formulaPresentation':_0x27a77c?this['_shapeFormulaService'][_0x2cbb1d(0x198)](_0x33af18):void 0x0,'animateFormulaPresentation':(_0x27a77c==null?void 0x0:_0x27a77c[_0x2cbb1d(0x229)])!==!0x1});if(_0x27a77c){var _0x1ae52a;let _0x5b2d0f=this[_0x2cbb1d(0x159)](_0x43f1d5,_0x864554,_0x345888),_0x46f6ec=(_0x1ae52a=this[_0x2cbb1d(0x27e)][_0x2cbb1d(0x1bd)](_0x5b2d0f))==null?new Set():_0x1ae52a;_0x46f6ec[_0x2cbb1d(0x10b)](_0x37bf9e),this[_0x2cbb1d(0x27e)][_0x2cbb1d(0xd9)](_0x5b2d0f,_0x46f6ec);}_0x3b0918[_0x2cbb1d(0xe9)](_0x37bf9e,_0x11332b),_0x31823e&&_0x3b0918[_0x2cbb1d(0x2bb)](_0x37bf9e),_0x2c12ed&&_0x435a76({'drawingId':_0x2c12ed,'unitId':_0x43f1d5,'subUnitId':_0x864554},_0x37bf9e,_0x3b0918,this[_0x2cbb1d(0xcc)]),_0x371562!=null&&_0x37bf9e['setPrstGeom'](_0x371562),_0x1bfa8b!=null&&_0x37bf9e[_0x2cbb1d(0x20f)](_0x1bfa8b);let _0x574063=this[_0x2cbb1d(0xaf)](_0x37bf9e,_0x5d2210[_0x2cbb1d(0x282)]());if(_0x574063){var _0x3c0255;_0x3235e4==null||(_0x3c0255=_0x3235e4['resourceCollector'])==null||_0x3c0255[_0x2cbb1d(0x10b)](_0x574063);}_0x582364[_0x2cbb1d(0x241)](_0x37bf9e);}return _0x582364;}[_0x43dbb9(0x159)](_0x83f3d6,_0x139342,_0x40ef3f){return _0x83f3d6+'\x00'+_0x139342+'\x00'+_0x40ef3f;}[_0x43dbb9(0xac)](_0x789d4e,_0x35d0e2){const _0x43ba6e=_0x43dbb9;let _0x4abe64=this[_0x43ba6e(0x1ff)][_0x43ba6e(0x251)](_0x35d0e2[_0x43ba6e(0x25d)],_0x35d0e2['subUnitId'],_0x35d0e2[_0x43ba6e(0xfc)]),_0x496639=_0x4abe64==null?void 0x0:_0x4abe64['getShapeData']()[_0x43ba6e(0x17a)],_0x402aed=this[_0x43ba6e(0x159)](_0x35d0e2[_0x43ba6e(0x25d)],_0x35d0e2[_0x43ba6e(0x212)],_0x35d0e2[_0x43ba6e(0xfc)]);if(_0x496639){var _0x322f8e;this[_0x43ba6e(0x221)]['register'](_0x35d0e2,_0x496639);let _0xc0bef5=(_0x322f8e=this[_0x43ba6e(0x27e)][_0x43ba6e(0x1bd)](_0x402aed))==null?new Set():_0x322f8e;_0xc0bef5[_0x43ba6e(0x10b)](_0x789d4e),this[_0x43ba6e(0x27e)]['set'](_0x402aed,_0xc0bef5);}else{var _0x2f1b39;this[_0x43ba6e(0x221)]['unregister'](_0x35d0e2),(_0x2f1b39=this[_0x43ba6e(0x27e)]['get'](_0x402aed))==null||_0x2f1b39[_0x43ba6e(0x2b1)](_0x789d4e);}_0x789d4e['setFormulaPresentation'](_0x496639?this[_0x43ba6e(0x221)][_0x43ba6e(0x198)](_0x35d0e2):void 0x0,(_0x496639==null?void 0x0:_0x496639[_0x43ba6e(0x229)])!==!0x1);}[_0x43dbb9(0x204)](_0x474d62){const _0x13b43e=_0x43dbb9;let _0x161fbe=_0x474d62['shapeModel'][_0x13b43e(0x282)](),_0x2ad637=_0x161fbe[_0x13b43e(0x1ee)];if(!_0x2ad637||_0x2ad637['fillType']!==_0x27d461['PictureFill']||!_0x2ad637[_0x13b43e(0x2e2)]){_0x474d62[_0x13b43e(0x1a2)](void 0x0);return;}this[_0x13b43e(0xaf)](_0x474d62,_0x161fbe);}[_0x43dbb9(0xaf)](_0x2dec07,_0x183dbc){const _0x49b914=_0x43dbb9;var _0x40df7b;let _0x3eab9a=_0x183dbc['fill'];if(!_0x3eab9a||_0x3eab9a[_0x49b914(0x242)]!==_0x27d461['PictureFill']||!_0x3eab9a[_0x49b914(0x2e2)])return;let _0x5c212c=_0x3eab9a[_0x49b914(0x2e2)],_0x22e368=(_0x40df7b=_0x3eab9a['fillImageSourceType'])==null?_0x283528[_0x49b914(0x277)]:_0x40df7b,_0x46d619=this[_0x49b914(0x12a)][_0x49b914(0x1b7)](_0x5c212c,_0x22e368);if(_0x46d619){_0x2dec07[_0x49b914(0x1a2)](_0x46d619);return;}return this['_loadAndSetImage'](_0x2dec07,_0x5c212c,_0x22e368);}async[_0x43dbb9(0x13b)](_0x3af8da,_0x4b503b,_0x9e9e80){const _0x48a7fa=_0x43dbb9;let _0x5c922f;try{if(_0x9e9e80===_0x283528['UUID'])_0x5c922f=await this[_0x48a7fa(0x12a)][_0x48a7fa(0x13a)](_0x4b503b);else{if(_0x9e9e80===_0x283528['URL'])try{_0x5c922f=await this[_0x48a7fa(0xa7)][_0x48a7fa(0x13a)](_0x4b503b);}catch{_0x5c922f=_0x4b503b;}else _0x5c922f=_0x4b503b;}}catch(_0x45633a){console[_0x48a7fa(0x2be)](_0x48a7fa(0x156),_0x45633a);return;}await new Promise(_0x1f3695=>{const _0x2cd3c3=_0x48a7fa;let _0x4caeab=new window['Image']();_0x4caeab['onload']=()=>{const _0x4158ba=_0x449a;this['_imageIoService'][_0x4158ba(0x93)](_0x4b503b,_0x9e9e80,_0x4caeab),_0x3af8da[_0x4158ba(0x1a2)](_0x4caeab),_0x1f3695();},_0x4caeab[_0x2cd3c3(0x2a6)]=()=>{const _0x747182=_0x2cd3c3;console[_0x747182(0x2be)](_0x747182(0x2a7),_0x4b503b),_0x1f3695();},_0x4caeab['src']=_0x5c922f;});}};Q=Z([X(0x0,_0x324617),X(0x1,_0x450bf3(_0x26a217)),X(0x2,_0x450bf3(_0xa3717a)),X(0x3,_0x5dd91b),X(0x4,_0x488e09),X(0x5,_0x450bf3(_0xe57842))],Q);let Tn=class extends _0x4760b3{constructor(_0x476c97,_0x3a3d0e,_0x2761bb,_0x483416,_0x28ea5,_0x1b9e75){const _0x56bbd0=_0x43dbb9;super(),this[_0x56bbd0(0xcc)]=_0x476c97,this['_sheetsShapeService']=_0x3a3d0e,this[_0x56bbd0(0x87)]=_0x2761bb,this[_0x56bbd0(0x2d9)]=_0x483416,this['_univerInstanceService']=_0x28ea5,this[_0x56bbd0(0x285)]=_0x1b9e75,Y(this,_0x56bbd0(0x14f),null),Y(this,_0x56bbd0(0x238),null),Y(this,'_subUnitId',null),Y(this,_0x56bbd0(0x20c),void 0x0),Y(this,_0x56bbd0(0x176),[]),Y(this,_0x56bbd0(0x260),0x0),Y(this,'_baseShapeTop',0x0),Y(this,_0x56bbd0(0x2b2),0x0),Y(this,'_baseShapeHeight',0x0),Y(this,_0x56bbd0(0x258),!0x1),Y(this,_0x56bbd0(0x257),void 0x0),Y(this,_0x56bbd0(0x22b),void 0x0),Y(this,'_adjHandlerPointerMove',void 0x0),Y(this,'_adjHandlerPointerUp',void 0x0),Y(this,_0x56bbd0(0x157),!0x1),this[_0x56bbd0(0x254)](),this[_0x56bbd0(0x235)]();}[_0x43dbb9(0x1ec)](_0x20f947,_0x3a311b,_0x1c2948){const _0x54841e=_0x43dbb9;let _0x4a3a14=this[_0x54841e(0x1ff)][_0x54841e(0x251)](_0x20f947,_0x3a311b,_0x1c2948);if(_0x4a3a14)return _0x4a3a14[_0x54841e(0x275)]();}[_0x43dbb9(0x2e3)](){const _0x54b137=_0x43dbb9;this[_0x54b137(0x1e5)]();}['refreshAdjustControls'](){const _0x188c33=_0x43dbb9;this[_0x188c33(0x246)](!0x0);}[_0x43dbb9(0x18b)](_0x8842cf){this['_isShouldShowDrawingShapeAdjust']=_0x8842cf;}['_getShapeAdjustInfosById'](_0xf99ed0,_0x40b1e0,_0x1320b2,_0x1bae36){const _0x2a12d5=_0x43dbb9;let _0x34a455=this[_0x2a12d5(0x1ff)]['getShapeModel'](_0xf99ed0,_0x40b1e0,_0x1320b2);if(_0x34a455)return _0x34a455[_0x2a12d5(0x2ae)](_0x1bae36);}[_0x43dbb9(0x21b)](_0x1da428=!0x1){const _0x303d30=_0x43dbb9;if(this[_0x303d30(0x238)]===null||this[_0x303d30(0x250)]===null||this['_activeShapeId']===null)return;let _0x439efd=this[_0x303d30(0x87)]['getRenderById'](this[_0x303d30(0x238)]);if(!_0x439efd||!_0x439efd[_0x303d30(0x2ea)](_0x392ff0)[_0x303d30(0xa4)]())return;let {scene:_0x4d76be}=_0x439efd,_0x45cc11={'unitId':this[_0x303d30(0x238)],'subUnitId':this[_0x303d30(0x250)],'drawingId':this[_0x303d30(0x14f)]},_0x13788b=this[_0x303d30(0xcc)][_0x303d30(0x171)](_0x45cc11),{transform:_0x5104fe}=_0x13788b;if(!_0x5104fe||_0x13788b[_0x303d30(0x2cb)]!==_0x5d03f6[_0x303d30(0x23a)])return;let {left:_0xc88240,top:_0x33867d,width:_0xfd214f,height:_0x27d4bb,flipX:_0x12463b,flipY:_0x5456ea,angle:_0x599c85=0x0}=_0x5104fe;if(_0xc88240===void 0x0||_0x33867d===void 0x0)return;_0x1da428&&(this[_0x303d30(0x20c)]=this[_0x303d30(0x1ec)](this[_0x303d30(0x238)],this['_subUnitId'],this[_0x303d30(0x14f)]));let _0x418380=this[_0x303d30(0x20c)];for(let _0x376a77=0x0;_0x376a77<_0x418380[_0x303d30(0x15f)];_0x376a77++){let _0x2e808f=_0x418380[_0x376a77],_0x5b29d6=_0x2e808f['x'],_0x200390=_0x2e808f['y'];if(_0x12463b&&(_0x5b29d6=(_0xfd214f||0x0)-_0x5b29d6),_0x5456ea&&(_0x200390=(_0x27d4bb||0x0)-_0x200390),_0x599c85!==0x0){let _0x386428=(_0xfd214f||0x0)/0x2,_0x1aa337=(_0x27d4bb||0x0)/0x2,_0x5249fd=_0x599c85*Math['PI']/0xb4,_0x1294f7=Math['cos'](_0x5249fd),_0x1ab3da=Math[_0x303d30(0x1e6)](_0x5249fd),_0x7856c8=_0x5b29d6-_0x386428,_0x5e1e83=_0x200390-_0x1aa337;_0x5b29d6=_0x386428+(_0x7856c8*_0x1294f7-_0x5e1e83*_0x1ab3da),_0x200390=_0x1aa337+(_0x7856c8*_0x1ab3da+_0x5e1e83*_0x1294f7);}let _0x3ebbb5={'x':_0x5b29d6,'y':_0x200390,'adjName':_0x2e808f[_0x303d30(0x18a)]};this[_0x303d30(0xcb)](_0x4d76be,_0x3ebbb5,_0x3ebbb5[_0x303d30(0x18a)],_0xc88240,_0x33867d,this['_unitId'],this[_0x303d30(0x250)]);}}['_updateShapeAdjustControls'](_0x246aa4=!0x1){const _0x590979=_0x43dbb9;_0x246aa4&&(this[_0x590979(0x1e5)](),this[_0x590979(0x21b)](_0x246aa4));}['_addShapeAdjustControl'](_0x154565,_0x4cd779,_0x1fd94f,_0x5387d3,_0x3e6523,_0x4312ea,_0x8646d0){const _0x50c1c8=_0x43dbb9;if(!this[_0x50c1c8(0x14f)])return;let _0x315b8d=_0x154565[_0x50c1c8(0x1de)]('shape-adjust-point-'+this[_0x50c1c8(0x14f)]+'-'+_0x1fd94f);if(_0x315b8d){_0x315b8d[_0x50c1c8(0x1c7)]({'left':_0x4cd779['x']+_0x5387d3-_0x2bc8ec[_0x50c1c8(0x86)],'top':_0x4cd779['y']+_0x3e6523-_0x2bc8ec[_0x50c1c8(0x86)]});return;}let _0x1bba71={'left':_0x4cd779['x']+_0x5387d3-_0x2bc8ec[_0x50c1c8(0x86)],'top':_0x4cd779['y']+_0x3e6523-_0x2bc8ec[_0x50c1c8(0x86)],'adjName':_0x1fd94f,'shapeId':this[_0x50c1c8(0x14f)],'unitId':_0x4312ea,'subUnitId':_0x8646d0,'width':_0x2bc8ec[_0x50c1c8(0x86)]+0x8,'height':_0x2bc8ec['adjHandleSize']+0x8,'zIndex':_0x11332b+0x1,'evented':!0x0},_0x35f048=new wn(_0x50c1c8(0xe3)+this[_0x50c1c8(0x14f)]+'-'+_0x1fd94f,_0x1bba71);this[_0x50c1c8(0x176)][_0x50c1c8(0x241)](_0x35f048),this[_0x50c1c8(0x2e0)](_0x35f048,_0x154565,_0x1fd94f),_0x154565[_0x50c1c8(0xe9)](_0x35f048,_0x11332b+0x1);}[_0x43dbb9(0x1e5)](){const _0x1b00d2=_0x43dbb9;this['_shapes'][_0x1b00d2(0x15f)]!==0x0&&(this[_0x1b00d2(0x176)][_0x1b00d2(0x200)](_0xed133b=>{const _0x48b8b4=_0x1b00d2;_0xed133b[_0x48b8b4(0x2dd)]();}),this['_shapes']=[]);}[_0x43dbb9(0x21a)](){this['_createShapeAdjustControls']();}[_0x43dbb9(0x15c)](_0x1ff72f,_0x2c5bbf){const _0xd664f0=_0x43dbb9;var _0x2fa970;let _0x29d2ba={'x':0x0,'y':0x0};if(!_0x1ff72f||!_0x2c5bbf)return _0x29d2ba;let _0x2b9dcb=this['_renderManagerService'][_0xd664f0(0x19c)](_0x1ff72f);if(!_0x2b9dcb||!_0x2b9dcb[_0xd664f0(0x2ea)](_0x392ff0)[_0xd664f0(0x188)](_0x2c5bbf))return _0x29d2ba;let _0x58fc10=_0x2b9dcb[_0xd664f0(0x2ea)](_0xdbee74),_0xc13026=_0x58fc10==null?void 0x0:_0x58fc10['getCurrentScrollState']();if(!_0xc13026)return _0x29d2ba;let _0x3b6e3d=(_0x2fa970=this[_0xd664f0(0xcd)]['getUnit'](_0x1ff72f))==null?void 0x0:_0x2fa970['getSheetBySheetId'](_0x2c5bbf);if(!_0x3b6e3d)return _0x29d2ba;let _0x2b0c7b=_0x1b930d(_0xc13026[_0xd664f0(0x296)],_0xc13026[_0xd664f0(0x286)],_0x2b9dcb[_0xd664f0(0x128)],_0x3b6e3d);return _0x2b0c7b?{'x':_0x2b0c7b['viewportScrollX'],'y':_0x2b0c7b[_0xd664f0(0x23f)]}:_0x29d2ba;}[_0x43dbb9(0x155)](_0x38c0cf,_0x227ffe){const _0x220b28=_0x43dbb9;var _0x85068b,_0x426761;let _0x474fe7=(_0x85068b=this['_univerInstanceService'][_0x220b28(0x150)](_0x38c0cf))==null?void 0x0:_0x85068b[_0x220b28(0x148)](_0x227ffe);return(_0x426761=_0x474fe7==null?void 0x0:_0x474fe7['getZoomRatio']())==null?0x1:_0x426761;}[_0x43dbb9(0x2e0)](_0x573e60,_0x59f196,_0x5b846b){const _0x527a9c=_0x43dbb9;this['disposeWithMe'](_0x43b296(_0x573e60[_0x527a9c(0x12f)]['subscribeEvent']((_0x2952d5,_0x5a5460)=>{const _0x124779=_0x527a9c;var _0x3819ca,_0x2e51b3,_0x322ba5,_0x2eb792;let _0x10b4cd=_0x573e60[_0x124779(0x1f1)]();this['_activeAdjustInfo']=this[_0x124779(0x14c)](_0x10b4cd[_0x124779(0x25d)],_0x10b4cd[_0x124779(0x212)],_0x10b4cd[_0x124779(0x1a9)],_0x5b846b),this[_0x124779(0x22b)]=this[_0x124779(0x1ff)][_0x124779(0x251)](_0x10b4cd['unitId'],_0x10b4cd[_0x124779(0x212)],_0x10b4cd[_0x124779(0x1a9)]);let _0x168e6d=this[_0x124779(0xcc)][_0x124779(0x171)]({'unitId':this[_0x124779(0x238)],'subUnitId':this[_0x124779(0x250)],'drawingId':this[_0x124779(0x14f)]}),{transform:_0x184873}=_0x168e6d;if(_0x184873){let {left:_0x121ab6,top:_0x4476e9,width:_0x4cacac,height:_0x297f07}=_0x184873;this[_0x124779(0x260)]=_0x121ab6||0x0,this['_baseShapeTop']=_0x4476e9||0x0,this['_baseShapeWidth']=_0x4cacac||0x0,this[_0x124779(0x8f)]=_0x297f07||0x0;}let _0x447162=!!((_0x3819ca=_0x168e6d[_0x124779(0x10c)])!=null&&_0x3819ca[_0x124779(0x2d5)]),_0x495c71=!!((_0x2e51b3=_0x168e6d[_0x124779(0x10c)])!=null&&_0x2e51b3['flipY']),_0x306d84=((_0x322ba5=_0x168e6d[_0x124779(0x10c)])==null?void 0x0:_0x322ba5[_0x124779(0x2e1)])||0x0;this[_0x124779(0x258)]=!0x0,_0x59f196['disableObjectsEvent']();let _0x1be4dc=(_0x2eb792=this[_0x124779(0x22b)])==null?void 0x0:_0x2eb792[_0x124779(0x29f)](_0x5b846b),_0x1ceb85={[_0x5b846b]:_0x1be4dc};this[_0x124779(0x1fa)]=_0x59f196[_0x124779(0x24b)][_0x124779(0x17c)]((_0x11c49c,_0x1ea7b7)=>{const _0x688629=_0x124779;if(!this[_0x688629(0x258)])return;let {offsetX:_0x2e77d6,offsetY:_0x277a53}=_0x11c49c,_0x2e8262=this[_0x688629(0x257)];if(this['_activeShapeModel']&&_0x2e8262){_0x59f196[_0x688629(0x1b8)](),_0x59f196['setCursor'](_0x110f16['CROSSHAIR']);let _0x221ffb={'left':0x0,'top':0x0,'width':this[_0x688629(0x2b2)],'height':this[_0x688629(0x8f)]},_0xb0b7aa=this['_getScrollInfo'](this[_0x688629(0x238)],this['_subUnitId']),_0x7d2cc8=this[_0x688629(0x155)](this[_0x688629(0x238)],this['_subUnitId']),_0x412d9d=_0x2e77d6/_0x7d2cc8+_0xb0b7aa['x']-this[_0x688629(0x260)],_0x5ac00c=_0x277a53/_0x7d2cc8+_0xb0b7aa['y']-this[_0x688629(0x12d)];if(_0x306d84!==0x0){let _0x1f3979=this[_0x688629(0x2b2)]/0x2,_0x197793=this['_baseShapeHeight']/0x2,_0x589779=_0x306d84*Math['PI']/0xb4,_0x2f5772=Math[_0x688629(0x109)](_0x589779),_0xa8f382=Math[_0x688629(0x1e6)](_0x589779),_0x4225ef=_0x412d9d-_0x1f3979,_0x381e55=_0x5ac00c-_0x197793;_0x412d9d=_0x1f3979+(_0x4225ef*_0x2f5772+_0x381e55*_0xa8f382),_0x5ac00c=_0x197793+(-_0x4225ef*_0xa8f382+_0x381e55*_0x2f5772);}_0x447162&&(_0x412d9d=this['_baseShapeWidth']-_0x412d9d),_0x495c71&&(_0x5ac00c=this['_baseShapeHeight']-_0x5ac00c);let _0x7fbb53={'x':_0x412d9d,'y':_0x5ac00c},_0x529988=this[_0x688629(0x22b)]['calcAdjValue'](_0x221ffb,_0x7fbb53,_0x2e8262,_0x447162,_0x495c71),_0x45e10d=_0x2e8262['gdRefX']||_0x2e8262[_0x688629(0x247)]||_0x2e8262[_0x688629(0x2de)]||_0x2e8262[_0x688629(0x2e5)];if(_0x45e10d===void 0x0)return;this[_0x688629(0x22b)][_0x688629(0x12b)](_0x45e10d,_0x529988);let _0x26e18a=this['_drawingManagerService'][_0x688629(0x171)]({'unitId':_0x10b4cd[_0x688629(0x25d)],'subUnitId':_0x10b4cd['subUnitId'],'drawingId':_0x10b4cd[_0x688629(0x1a9)]});_0x26e18a&&(this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x26e18a,_0x59f196),this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](_0x10b4cd[_0x688629(0x25d)],_0x10b4cd[_0x688629(0x212)],_0x10b4cd[_0x688629(0x1a9)]),this['_updateAdjustControlPositions']());}_0x1ea7b7['stopPropagation']();}),this[_0x124779(0x276)]=_0x59f196[_0x124779(0x1bf)][_0x124779(0x17c)]((_0x556af9,_0x4f3c18)=>{const _0x29b855=_0x124779;this[_0x29b855(0x1fa)][_0x29b855(0x1dd)](),this[_0x29b855(0x276)][_0x29b855(0x1dd)](),_0x59f196[_0x29b855(0x15a)]();let _0x5c56d7=this[_0x29b855(0x257)];if(_0x5c56d7){let _0x34a66e=_0x10b4cd[_0x29b855(0x25d)],_0x42b29f=_0x10b4cd[_0x29b855(0x212)],_0x4cf5de=_0x10b4cd[_0x29b855(0x1a9)],_0x503f62=_0x5c56d7[_0x29b855(0xc3)]||_0x5c56d7[_0x29b855(0x247)]||_0x5c56d7[_0x29b855(0x2de)]||_0x5c56d7[_0x29b855(0x2e5)];if(_0x503f62!==void 0x0){var _0x4a32fc;let _0xc1748b=(_0x4a32fc=this[_0x29b855(0x22b)])==null?void 0x0:_0x4a32fc[_0x29b855(0x29f)](_0x503f62);_0xc1748b!==void 0x0&&_n(this['_commandService'],_0x34a66e,_0x42b29f,_0x4cf5de,{'oldShapeData':{'adjustValues':_0x1ceb85}},{'adjustValues':{[_0x503f62]:_0xc1748b}});}}this[_0x29b855(0x257)]=void 0x0,this[_0x29b855(0x22b)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x4f3c18[_0x29b855(0x26a)](),_0x59f196[_0x29b855(0x25c)]();}),_0x5a5460[_0x124779(0x26a)]();})));}[_0x43dbb9(0x235)](){const _0x2a89e1=_0x43dbb9;let _0xebc779=this[_0x2a89e1(0xcd)][_0x2a89e1(0x240)](_0x2a1b28[_0x2a89e1(0x1e0)]);this[_0x2a89e1(0x11b)](_0xebc779[_0x2a89e1(0x24d)](_0x46afa7(_0x3ea8b4=>_0x3ea8b4?_0x3ea8b4[_0x2a89e1(0x117)][_0x2a89e1(0x24d)](_0x46afa7(_0x2f68c3=>{const _0x3bb24a=_0x2a89e1;if(!_0x2f68c3)return _0x3149ab;let _0xa8b632=_0x3ea8b4[_0x3bb24a(0xb8)](),_0x1ef009=this[_0x3bb24a(0x87)][_0x3bb24a(0x19c)](_0xa8b632),_0x5c2497=_0x1ef009==null?void 0x0:_0x1ef009[_0x3bb24a(0x128)];return _0x5c2497?_0x236700(_0x5c2497):_0x3149ab;})):_0x3149ab))[_0x2a89e1(0x28f)](_0x5358ea=>{const _0x1e41fa=_0x2a89e1;let _0x256c62=_0x5358ea[_0x1e41fa(0x84)]();this['disposeWithMe'](_0x5358ea[_0x1e41fa(0x24b)][_0x1e41fa(0x17c)](()=>{const _0x429953=_0x1e41fa;this[_0x429953(0x157)];})),this['disposeWithMe'](_0x256c62[_0x1e41fa(0x89)][_0x1e41fa(0x28f)](_0x163ff0=>{const _0xdf6042=_0x1e41fa;let {objects:_0x19d7c8}=_0x163ff0;this[_0xdf6042(0x21b)](),_0x19d7c8!==null&&_0x19d7c8[_0xdf6042(0xb4)]===0x1&&_0x19d7c8['values']()[_0xdf6042(0x166)]()['value']instanceof Cn&&this['setShouldShowAdjust'](!0x0);})),this[_0x1e41fa(0x11b)](_0x256c62[_0x1e41fa(0x18c)][_0x1e41fa(0x28f)](()=>{const _0x45e339=_0x1e41fa;this[_0x45e339(0x157)]&&this[_0x45e339(0x1e5)]();})),this['disposeWithMe'](_0x5358ea['onPointerUp$'][_0x1e41fa(0x17c)](()=>{const _0x1b52f4=_0x1e41fa;this[_0x1b52f4(0x157)]&&(this[_0x1b52f4(0x18b)](!0x1),this[_0x1b52f4(0x21b)]());})),this[_0x1e41fa(0x11b)](_0x256c62[_0x1e41fa(0x174)][_0x1e41fa(0x28f)](()=>{const _0x2e8de4=_0x1e41fa;this[_0x2e8de4(0x238)]&&this[_0x2e8de4(0x250)]&&this[_0x2e8de4(0x14f)]&&this[_0x2e8de4(0xcc)][_0x2e8de4(0x171)]({'unitId':this[_0x2e8de4(0x238)],'subUnitId':this[_0x2e8de4(0x250)],'drawingId':this[_0x2e8de4(0x14f)]})&&(this[_0x2e8de4(0x20c)]=this[_0x2e8de4(0x1ec)](this['_unitId'],this[_0x2e8de4(0x250)],this[_0x2e8de4(0x14f)]),this[_0x2e8de4(0x21a)]());}));}));}[_0x43dbb9(0x254)](){const _0x41c5fb=_0x43dbb9;this[_0x41c5fb(0x11b)](this['_drawingManagerService'][_0x41c5fb(0x231)][_0x41c5fb(0x28f)](_0x3a14dc=>{const _0x1d5c4a=_0x41c5fb;if(_0x3a14dc[_0x1d5c4a(0x15f)]===0x1){let _0xcd9f50=_0x3a14dc[0x0];if(_0xcd9f50[_0x1d5c4a(0x2cb)]===_0x5d03f6[_0x1d5c4a(0x23a)]){this[_0x1d5c4a(0x14f)]=_0xcd9f50[_0x1d5c4a(0x1a9)];let {unitId:_0x32e396,subUnitId:_0xd0c0a3}=_0xcd9f50;this[_0x1d5c4a(0x20c)]=this[_0x1d5c4a(0x1ec)](_0x32e396,_0xd0c0a3,this[_0x1d5c4a(0x14f)]),this[_0x1d5c4a(0x238)]=_0x32e396,this['_subUnitId']=_0xd0c0a3,this[_0x1d5c4a(0x1e5)](),this[_0x1d5c4a(0x21b)]();}else this[_0x1d5c4a(0x14f)]=null,this[_0x1d5c4a(0x20c)]=void 0x0,this[_0x1d5c4a(0x238)]=null,this[_0x1d5c4a(0x250)]=null,this[_0x1d5c4a(0x1e5)]();}(_0x3a14dc[_0x1d5c4a(0x15f)]>0x1||_0x3a14dc[_0x1d5c4a(0x15f)]===0x0)&&(this[_0x1d5c4a(0x14f)]=null,this[_0x1d5c4a(0x20c)]=void 0x0,this[_0x1d5c4a(0x238)]=null,this[_0x1d5c4a(0x250)]=null,this['_clearShapeAdjustControls']());})),this['disposeWithMe'](this[_0x41c5fb(0xcc)]['update$'][_0x41c5fb(0x28f)](_0x216fca=>{const _0x28f7e6=_0x41c5fb;if(_0x216fca[_0x28f7e6(0x15f)]===0x1){var _0x528f9e;let _0x574d67=_0x216fca[0x0];((_0x528f9e=this[_0x28f7e6(0xcc)]['getDrawingByParam'](_0x574d67))==null?void 0x0:_0x528f9e[_0x28f7e6(0x2cb)])===_0x5d03f6['DRAWING_SHAPE']&&this['_updateShapeAdjustControls'](!0x0);}})),this[_0x41c5fb(0x11b)](this[_0x41c5fb(0xcc)][_0x41c5fb(0xd6)][_0x41c5fb(0x28f)](_0x4de7ee=>{const _0x1f30ff=_0x41c5fb;for(let _0x41529d of _0x4de7ee)this[_0x1f30ff(0x14f)]===_0x41529d[_0x1f30ff(0x1a9)]&&(this['_activeShapeId']=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x1f30ff(0x238)]=null,this[_0x1f30ff(0x250)]=null,this['_clearShapeAdjustControls']());}));}};Tn=Z([X(0x0,_0x324617),X(0x1,_0x450bf3(_0x26a217)),X(0x2,_0x450bf3(_0x263af6)),X(0x3,_0x450bf3(Q)),X(0x4,_0x7113c7),X(0x5,_0x4d9cac)],Tn);const En={'id':'drawing.operation.set-drawing-active','type':_0x8e0e3c[_0x43dbb9(0x269)],'handler':(_0x1ae211,_0x280be8)=>{const _0xf4969c=_0x43dbb9;let _0x2e042c=_0x1ae211[_0xf4969c(0x1bd)](_0x324617),_0x3bf523=_0x1ae211[_0xf4969c(0x1bd)](_0x263af6),_0x37f0a0=_0x1ae211[_0xf4969c(0x1bd)](Tn);if(_0x280be8==null)return!0x0;if(_0x280be8[_0xf4969c(0x15f)]>0x0){var _0x2eabd4;let _0x3c02fb=(_0x2eabd4=_0x3bf523['getRenderById'](_0x280be8[0x0][_0xf4969c(0x25d)]))==null?void 0x0:_0x2eabd4[_0xf4969c(0x128)];if(_0x3c02fb){let {unitId:_0x5469a1,subUnitId:_0x52798c,drawingId:_0x2e7d93}=_0x280be8[0x0],_0xcf1c9e=_0x7f2912({'unitId':_0x5469a1,'subUnitId':_0x52798c,'drawingId':_0x2e7d93},void 0x0),_0x19aff9=_0x3c02fb[_0xf4969c(0x1de)](_0xcf1c9e);if(_0x19aff9){var _0x4aec92;(_0x4aec92=_0x3bf523[_0xf4969c(0x19c)](_0x280be8[0x0][_0xf4969c(0x25d)]))==null||(_0x4aec92=_0x4aec92['scene']['getTransformer']())==null||_0x4aec92[_0xf4969c(0x28d)](_0x19aff9);}}_0x2e042c[_0xf4969c(0x141)](_0x280be8),_0x37f0a0['setShouldShowAdjust'](!0x1);}return!0x0;}},Dn={'type':_0x8e0e3c['COMMAND'],'id':_0x43dbb9(0x10a),'handler':async(_0x194427,_0x55cc22)=>{const _0x4b49f3=_0x43dbb9;let _0x311906=_0x59589e(_0x194427[_0x4b49f3(0x1bd)](_0x7113c7));if(!_0x311906)return!0x1;let _0x20f1bf=_0x194427[_0x4b49f3(0x1bd)](_0x412710)[_0x4b49f3(0x187)]();if(!_0x20f1bf)return!0x1;let _0x2249a7=_0x194427[_0x4b49f3(0x1bd)](_0x4d9cac),{unitId:_0x17a009,subUnitId:_0x56100a}=_0x311906,{value:_0x1c9c02,enhanceParams:_0x26a5aa}=_0x55cc22,{range:_0x3a0c3d}=_0x20f1bf,_0x2d4147={'unitId':_0x17a009,'subUnitId':_0x56100a,'shapeType':_0x1c9c02,'range':_0x3a0c3d,'shapeId':_0x2bfd17()};if(_0x26a5aa){let _0x59c765=_0x1f7f23(_0x1c9c02),_0x465420=_0x1c9c02===_0x250922[_0x4b49f3(0x1f5)];_0x59c765&&(_0x26a5aa[_0x4b49f3(0x28b)]||_0x26a5aa['endArrow'])&&(_0x2d4147[_0x4b49f3(0x106)]={'ln':{'startArrow':_0x26a5aa[_0x4b49f3(0x28b)]?{'type':_0x454053[_0x4b49f3(0x94)],'size':_0x421194[_0x4b49f3(0x1da)]}:void 0x0,'endArrow':_0x26a5aa[_0x4b49f3(0x1a3)]?{'type':_0x454053[_0x4b49f3(0x94)],'size':_0x421194[_0x4b49f3(0xf0)]}:void 0x0}}),_0x465420&&(_0x26a5aa[_0x4b49f3(0xc5)]||_0x26a5aa[_0x4b49f3(0x115)])&&(_0x2d4147[_0x4b49f3(0x106)]=_0x25f061({'fill':{'fillType':_0x27d461['SolidFill'],'color':_0x4b49f3(0x1aa)},'isHorizontal':!!_0x26a5aa[_0x4b49f3(0xc5)],'stroke':{'lineStrokeType':_0x517d31[_0x4b49f3(0x1fb)],'width':0x1,'color':_0x4b49f3(0x110)}}));}let _0x2806f1=_0x2249a7['syncExecuteCommand'](_0x28064d['id'],_0x2d4147);return setTimeout(()=>{const _0x4584de=_0x4b49f3;_0x2249a7[_0x4584de(0x2d0)](En['id'],[{'unitId':_0x17a009,'subUnitId':_0x56100a,'drawingId':_0x2d4147[_0x4584de(0xfc)]}]);},0xc8),_0x2806f1;}},On=_0x43dbb9(0x2e7),kn=_0x43dbb9(0x24c),An=_0x43dbb9(0x227),jn=_0x1a4a4b(_0x43dbb9(0x97)),Mn='sheet.shape.text.float-menu',Nn={'id':'sheet.operation.open-shape-object-list-panel','type':_0x8e0e3c[_0x43dbb9(0x82)],'handler':(_0x56dda7,_0x20d3e0)=>{const _0x467ab3=_0x43dbb9;let _0x54f413=_0x56dda7[_0x467ab3(0x1bd)](_0x10b5ac),_0x1596ce=_0x56dda7[_0x467ab3(0x1bd)](_0xa3717a),_0x1395b5=_0x56dda7[_0x467ab3(0x1bd)](_0x7113c7),_0x3b1b1d=_0x56dda7[_0x467ab3(0x1bd)](_0x4d9cac);return _0x59589e(_0x1395b5)?(_0x20d3e0==null?void 0x0:_0x20d3e0[_0x467ab3(0x26b)])===_0x467ab3(0x25f)?(_0x54f413['close'](kn),!0x0):(_0x54f413[_0x467ab3(0x291)]({'id':kn,'header':{'title':_0x1596ce['t'](_0x467ab3(0xab))},'children':{'label':kn},'onClose':()=>{const _0x268e8a=_0x467ab3;_0x3b1b1d[_0x268e8a(0x193)](_0xd68623['id'],[]);},'width':0x168}),!0x0):!0x1;}};let Pn=class extends _0x4760b3{constructor(_0x595d76,_0x3c460c){const _0x155721=_0x43dbb9;super(),this[_0x155721(0x1b1)]=_0x595d76,this['_drawingManagerService']=_0x3c460c,this['_registerImageShapeClipDelegate'](),this['_clipService'][_0x155721(0x27c)](!0x0),this[_0x155721(0x11b)]({'dispose':()=>this[_0x155721(0x1b1)][_0x155721(0x27c)](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x3e4efc=_0x43dbb9;let _0x314042=this['_clipService'],_0x17ace9=new Map(),_0x3daa60=_0x314042['registerClipDelegate']((_0x45792d,_0x48fc15,_0x318b90,_0x2db91e,_0x4ae177)=>{const _0x2ebfb4=_0x449a;let _0x40d915=_0x48fc15;if(_0x40d915===_0x250922['None']||_0x48fc15===_0x2ebfb4(0x1c3))return!0x1;try{let _0x2d0aa6=_0x17ace9[_0x2ebfb4(0x1bd)](_0x48fc15);return _0x2d0aa6||(_0x2d0aa6=new _0xf0c0c(_0x40d915,_0x2ebfb4(0x261)+_0x48fc15),_0x17ace9[_0x2ebfb4(0xd9)](_0x48fc15,_0x2d0aa6)),_0x4ae177&&_0x2d0aa6['setShapeData']({'adjustValues':_0x4ae177},!0x0),_0x2d0aa6[_0x2ebfb4(0x104)]({'width':_0x318b90,'height':_0x2db91e}),_0x2d0aa6[_0x2ebfb4(0x2c2)](_0x45792d,{'left':0x0,'top':0x0,'width':_0x318b90,'height':_0x2db91e});}catch{return!0x1;}});this['disposeWithMe'](_0x3daa60),this['disposeWithMe']({'dispose':()=>_0x17ace9[_0x3e4efc(0x2a5)]()});}[_0x43dbb9(0x124)](_0x54fb46,_0x3296f2,_0x11e57b,_0x197668,_0x2efd94){const _0x4767b6=_0x43dbb9;let _0x5a76d9=this['_drawingManagerService']['getDrawingData'](_0x54fb46,_0x3296f2);if(!_0x5a76d9[_0x11e57b])return;let _0x3ae8b4={..._0x5a76d9[_0x11e57b],'prstGeom':_0x197668,'adjustValues':_0x2efd94};this[_0x4767b6(0xcc)]['featurePluginUpdateNotification']([_0x3ae8b4]);}};Pn=Z([X(0x0,_0x450bf3(_0xe0e719)),X(0x1,_0x450bf3(_0x324617))],Pn);const Fn=_0x43dbb9(0x281),In=_0x43dbb9(0x220);function Ln({onShapeClick:_0xc27fa8,excludeGroups:_0xe54ac2}){const _0x28c5a2=_0x43dbb9;return _0x2b677f(_0x43451f,{'excludeGroups':_0xe54ac2,'onShapeClick':_0xc27fa8,'scrollContainer':_0x28c5a2(0xf4)});}function Rn(){const _0x5923d8=_0x43dbb9;let _0x1f42a8=_0x597c42(_0x324617),_0x2e3d48=_0x597c42(Pn);return _0x2b677f(_0x106929,{'buttonLabel':_0x5923d8(0xfe),'excludeGroups':[_0x2cca23['Line']],'onShapeClick':_0x23c122=>{const _0x3faa4b=_0x5923d8;let _0x5496a7=_0x1f42a8['getFocusDrawings']()['find'](_0x28e4c0=>_0x28e4c0[_0x3faa4b(0x2cb)]===_0x5d03f6[_0x3faa4b(0x20a)]);if(!_0x5496a7)return;let {unitId:_0x49b6ba,subUnitId:_0x231248,drawingId:_0x5d59c5}=_0x5496a7;_0x2e3d48['clipByShape'](_0x49b6ba,_0x231248,_0x5d59c5,_0x23c122['type']);}});}function zn(){const _0xbea791=_0x43dbb9;let _0x7c519c=_0x597c42(_0x1953f8),_0x5c5936=_0x597c42(_0x324617),_0x569cac=_0x597c42(_0x7113c7),_0x1c420c=_0x5c5936[_0xbea791(0x27f)]()[0x0],_0x386510=_0x1c420c?_0x569cac[_0xbea791(0x172)](_0x1c420c[_0xbea791(0x25d)]):void 0x0,_0x23da56=_0x386510===_0x2a1b28[_0xbea791(0x26f)]?_0xbea791(0x18e):_0x386510===_0x2a1b28[_0xbea791(0x1e0)]?In:void 0x0,_0x226ab4=_0x23da56?_0x7c519c[_0xbea791(0x1bd)](_0x23da56):void 0x0;return _0x226ab4?_0x2b677f(_0x226ab4,{}):null;}function Bn(){let _0x51d206=_0x597c42(_0x4d9cac);return _0x2b677f(Ln,{'onShapeClick':_0x4fc891=>{const _0x409914=_0x449a;_0x51d206[_0x409914(0x2d0)](Dn['id'],{'value':_0x4fc891[_0x409914(0x178)],'enhanceParams':{'endArrow':_0x4fc891[_0x409914(0x1a3)],'startArrow':_0x4fc891[_0x409914(0x28b)],'horizontal':_0x4fc891[_0x409914(0xc5)],'vertical':_0x4fc891[_0x409914(0x115)]}});}});}function Vn(_0x277f99){const _0x22e7cb=_0x43dbb9;let _0xc42db7=_0x277f99['get'](_0x7113c7);return{'id':Dn['id'],'type':_0x142b74[_0x22e7cb(0x26d)],'selections':[{'label':{'name':Fn,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Dn['id']}}}],'icon':_0x22e7cb(0x181),'tooltip':'sheets-shape-ui.insertShape','activated$':_0x4f53b0(_0xc42db7,!0x1,()=>new _0x573c9d(_0x3dd579=>{const _0x491bfd=_0x22e7cb;_0x3dd579[_0x491bfd(0x166)](!0x1);})),'hidden$':_0x227618(_0x277f99,_0x2a1b28[_0x22e7cb(0x1e0)]),'disabled$':_0x3b91cb(_0x277f99)};}function Hn(_0x5c8858){const _0x5ad8d1=_0x43dbb9;let _0x293653=_0x5c8858['get'](_0x7113c7);return{'id':Nn['id'],'type':_0x142b74[_0x5ad8d1(0xf5)],'icon':_0x5ad8d1(0x134),'title':_0x5ad8d1(0x205),'tooltip':'sheets-shape-ui.objectListPanel.open','activated$':_0x4f53b0(_0x293653,!0x1,()=>new _0x573c9d(_0x2d620c=>{const _0x370a93=_0x5ad8d1;_0x2d620c[_0x370a93(0x166)](!0x1);})),'hidden$':_0x227618(_0x5c8858,_0x2a1b28[_0x5ad8d1(0x1e0)]),'disabled$':_0x3b91cb(_0x5c8858)};}const Un={[_0x24939b[_0x43dbb9(0xec)]]:{[Dn['id']]:{'order':0x4,'menuItemFactory':Vn}},[_0x24939b['OTHERS']]:{[Nn['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Hn}}};var Wn=_0x43dbb9(0xfa),Gn=_0x43dbb9(0xf1);const Kn={'type':_0x8e0e3c[_0x43dbb9(0x269)],'id':_0x43dbb9(0x145),'handler'(){return!0x0;}},qn={'type':_0x8e0e3c[_0x43dbb9(0x269)],'id':_0x43dbb9(0xfd),'handler'(){return!0x0;}},Jn={};function Yn(_0x3b9c3d){const _0x41be41=_0x43dbb9;return _0x3b9c3d[_0x41be41(0x2c6)]()||void 0x0;}function Xn(_0x4cf919){const _0x5e43e0=_0x43dbb9;switch(_0x4cf919['drawingType']){case _0x5d03f6[_0x5e43e0(0x20a)]:return _0x5e43e0(0x1a5);case _0x5d03f6[_0x5e43e0(0x8d)]:return'chart';case _0x5d03f6[_0x5e43e0(0xda)]:return'table';case _0x5d03f6[_0x5e43e0(0x1bc)]:return _0x5e43e0(0x131);case _0x5d03f6[_0x5e43e0(0x23e)]:return _0x5e43e0(0x1fe);case _0x5d03f6['DRAWING_GROUP']:return'group';case _0x5d03f6[_0x5e43e0(0x83)]:return'unit';case _0x5d03f6['DRAWING_DOM']:return _0x5e43e0(0x1c1);case _0x5d03f6[_0x5e43e0(0x23a)]:return'shape';default:return'object';}}function Zn(_0xfd5afd,_0xcc88cb,_0x1fa735){var _0x56c78b;return((_0x56c78b=_0xfd5afd['name'])==null?void 0x0:_0x56c78b['trim']())||_0x4a9bd6(_0x1fa735,Xn(_0xfd5afd))+'\x20'+(_0xcc88cb+0x1);}function Qn(){const _0x3264d5=_0x43dbb9;var _0x368122,_0x8a8a4a,_0x30a222,_0x21cd2b;let _0x1f729b=_0x597c42(_0xa3717a),_0x186399=_0x597c42(_0x4d9cac),_0x77d78=_0x597c42(_0x7113c7),_0x164823=_0x597c42(_0x57e4c3),_0x159c35=_0x597c42(_0x324617),_0x206d62=_0x597c42(_0x263af6),[,_0x44ccf5]=_0x97793a(_0x2d9be3=>_0x2d9be3+0x1,0x0),_0x3cf7a6=_0x77d78[_0x3264d5(0x165)](_0x2a1b28['UNIVER_SHEET']),_0xa2bcce=(_0x368122=_0x3cf7a6==null?void 0x0:_0x3cf7a6[_0x3264d5(0xb8)]())==null?'':_0x368122,_0x2972b5=(_0x8a8a4a=_0x3cf7a6==null||(_0x30a222=_0x3cf7a6[_0x3264d5(0x144)]())==null?void 0x0:_0x30a222[_0x3264d5(0xa3)]())==null?'':_0x8a8a4a,_0x28d297=_0x31d745(()=>_0x159c35[_0x3264d5(0x231)],_0x159c35[_0x3264d5(0x27f)](),!0x1,[_0x159c35]);_0x15fc40(()=>{const _0xe383bd=_0x3264d5;let _0x953e53=_0x186399[_0xe383bd(0x1f7)](()=>_0x44ccf5());return()=>_0x953e53[_0xe383bd(0x2dd)]();},[_0x186399]);let _0x1de9f3=_0xa2bcce&&_0x2972b5?_0x164823[_0x3264d5(0x295)](_0xa2bcce,_0x2972b5):{},_0x1360ee=_0xa2bcce&&_0x2972b5?_0x164823[_0x3264d5(0x1a0)](_0xa2bcce,_0x2972b5):[],_0x48ffdf=_0x293422(()=>_0x11da8e(_0x1f729b),[_0x1f729b]),_0x4cdead=_0x293422(()=>{const _0x3851d=_0x3264d5;let _0x24203c=_0x1360ee['map'](_0x2f5d99=>_0x1de9f3[_0x2f5d99])[_0x3851d(0xb6)](_0x255b23=>!!_0x255b23)['reverse'](),_0x3ef791=_0x24203c[_0x3851d(0x2a8)]((_0x57ad18,_0x339373)=>(_0x57ad18[_0x450da7(_0x339373[_0x3851d(0x2cb)])]+=0x1,_0x57ad18),{'canvas':0x0,'floating':0x0}),_0x47aa98={'canvas':0x0,'floating':0x0};return _0x24203c[_0x3851d(0x29a)]((_0x28aff5,_0x58e9e5)=>{const _0xe20625=_0x3851d;let _0x522053=_0x450da7(_0x28aff5[_0xe20625(0x2cb)]),_0xe35e22=_0x522053===_0x34974e,_0x141d7a=_0x47aa98[_0x522053]++;return{'id':_0x28aff5['drawingId'],'name':Zn(_0x28aff5,_0x58e9e5,_0x1f729b),'description':_0x28aff5[_0xe20625(0x197)],'visible':_0x28aff5['hidden']!==!0x0,'selectable':_0x28aff5[_0xe20625(0x207)]!==!0x1,'sectionId':_0x522053,'sectionTitle':_0xe35e22?_0x48ffdf[_0xe20625(0x11c)]:_0x48ffdf[_0xe20625(0x135)],'capabilities':_0xe35e22?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0xe35e22&&_0x141d7a>0x0,'canMoveBackward':!_0xe35e22&&_0x141d7a<_0x3ef791[_0xe20625(0xa6)]-0x1,'canReorder':!_0xe35e22};});},[_0x1de9f3,_0x1360ee,_0x48ffdf['sectionCanvas'],_0x48ffdf['sectionFloating'],_0x1f729b]),_0xd4f05d=_0x293422(()=>(_0x28d297==null?[]:_0x28d297)[_0x3264d5(0xb6)](_0x233cda=>_0x233cda['unitId']===_0xa2bcce&&_0x233cda[_0x3264d5(0x212)]===_0x2972b5)[_0x3264d5(0x29a)](_0xd3880e=>_0xd3880e[_0x3264d5(0x1a9)]),[_0x28d297,_0x2972b5,_0xa2bcce]),_0x30a1bc=(_0x21cd2b=_0xd4f05d[_0xd4f05d[_0x3264d5(0x15f)]-0x1])==null?null:_0x21cd2b,_0x4db5ee=_0x277b9d=>{const _0x231827=_0x3264d5;var _0x2a3590;return(_0x2a3590=_0x164823[_0x231827(0x171)]({'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingId':_0x277b9d}))==null?null:_0x2a3590;},_0x58bbd6=_0x5b6ae9=>{!_0xa2bcce||!_0x5b6ae9['length']||_0x186399['executeCommand'](_0x1fd507['id'],{'unitId':_0xa2bcce,'drawings':_0x5b6ae9});},_0x4dbe62=(_0x5c9dad,_0x195a2e)=>{_0x4db5ee(_0x5c9dad)&&_0x58bbd6([{'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingId':_0x5c9dad,..._0x195a2e}]);},_0x403880=(_0x1a6093,_0x16d66e)=>{const _0x1a1827=_0x3264d5;if(!_0xa2bcce||!_0x2972b5)return;let _0x17b273=_0x16d66e?_0xd4f05d[_0x1a1827(0x1b0)](_0x1a6093)?_0xd4f05d['filter'](_0xfba0b3=>_0xfba0b3!==_0x1a6093):[..._0xd4f05d,_0x1a6093]:[_0x1a6093];_0x186399[_0x1a1827(0x193)](_0xd68623['id'],_0x17b273['map'](_0xc442dd=>({'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingId':_0xc442dd})));let _0x5053ab=_0x17b273[_0x17b273[_0x1a1827(0x15f)]-0x1];_0x5053ab?_0x4df6a5(_0x206d62,{'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingId':_0x5053ab}):_0xbdee17(_0x206d62,_0xa2bcce);},_0x409d1d=(_0x5264d5,_0x3d74f0)=>{const _0x5817e8=_0x3264d5;_0x58bbd6(_0x5264d5['map'](_0x2e6a03=>_0x4db5ee(_0x2e6a03))[_0x5817e8(0xb6)](_0x473b67=>!!_0x473b67)[_0x5817e8(0xb6)](_0x2e892c=>_0x2e892c[_0x5817e8(0x237)]!==!0x0!==_0x3d74f0)[_0x5817e8(0x29a)](_0x2e8678=>({'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingId':_0x2e8678['drawingId'],'hidden':!_0x3d74f0})));},_0x499beb=_0x159c04=>{const _0x4a7fe7=_0x3264d5;let _0x4c496d=_0x4db5ee(_0x159c04);_0x4c496d&&_0x4dbe62(_0x159c04,{'selectable':_0x4c496d[_0x4a7fe7(0x207)]===!0x1?void 0x0:!0x1});},_0xb435c9=(_0x437298,_0x281235)=>{const _0x234951=_0x3264d5;var _0x2f16b9,_0x1d22a2;let _0x297a55=Yn(_0x281235);((_0x2f16b9=(_0x1d22a2=_0x4db5ee(_0x437298))==null?void 0x0:_0x1d22a2[_0x234951(0x1c4)])==null?void 0x0:_0x2f16b9)!==_0x297a55&&_0x4dbe62(_0x437298,{'name':_0x297a55});},_0x122734=(_0x459130,_0x186aeb)=>{const _0x3f8691=_0x3264d5;var _0x326430,_0x3f249b;let _0x1a9add=Yn(_0x186aeb);((_0x326430=(_0x3f249b=_0x4db5ee(_0x459130))==null?void 0x0:_0x3f249b[_0x3f8691(0x197)])==null?void 0x0:_0x326430)!==_0x1a9add&&_0x4dbe62(_0x459130,{'description':_0x1a9add});},_0x3fd0a5=(_0x474b69,_0x4c15b3)=>{!_0xa2bcce||!_0x2972b5||_0x186399['executeCommand'](_0x390f9f['id'],{'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingIds':[_0x474b69],'arrangeType':_0x4c15b3});};return!_0xa2bcce||!_0x2972b5?_0x2b677f(_0x3264d5(0x223),{'className':_0x3264d5(0x211),'children':_0x48ffdf[_0x3264d5(0x1bb)]}):_0x2b677f(_0x313482,{'items':_0x4cdead,'selectedIds':_0xd4f05d,'focusedId':_0x30a1bc,'labels':_0x48ffdf,'onSelect':_0x403880,'onSetVisible':_0x409d1d,'onCommitName':_0xb435c9,'onCommitDescription':_0x122734,'onMoveForward':_0x12149c=>_0x3fd0a5(_0x12149c,_0x202737[_0x3264d5(0xdf)]),'onMoveBackward':_0x5084c2=>_0x3fd0a5(_0x5084c2,_0x202737['backward']),'onToggleSelectable':_0x499beb});}let $n=class{constructor(_0x33260a){this['_renderManagerService']=_0x33260a;}[_0x43dbb9(0x1e9)](_0x4aaab1,_0x3b5fa0){const _0x331a9c=_0x43dbb9;let _0x3cdedc=this[_0x331a9c(0x87)][_0x331a9c(0x19c)](_0x4aaab1[_0x331a9c(0x25d)]),_0xa3862d=_0x3cdedc==null?void 0x0:_0x3cdedc['scene'];if(!_0xa3862d)return;let _0x656370=_0x7f2912(_0x4aaab1),_0x314db4=_0xa3862d['getObjectIncludeInGroup'](_0x656370);_0x314db4==null||_0x314db4['setFillImage'](_0x3b5fa0);}};$n=Z([X(0x0,_0x263af6)],$n);function _0x449a(_0x375ae1,_0x5ceeea){_0x375ae1=_0x375ae1-0x82;const _0x1d5daa=_0x1d5d();let _0x449ae4=_0x1d5daa[_0x375ae1];return _0x449ae4;}function er(){const _0x14e8d2=_0x43dbb9;let _0xd8d6d2=_0x597c42(_0x324617),_0x2e2b5f=_0x31d745(()=>_0xd8d6d2[_0x14e8d2(0x231)],_0xd8d6d2[_0x14e8d2(0x27f)](),!0x1,[_0xd8d6d2]);return _0x2e2b5f[_0x14e8d2(0x15f)]===0x0?null:_0x2b677f('div',{'children':_0x27f2a4(_0x14e8d2(0x223),{'className':_0x14e8d2(0xd7),'children':[_0x2b677f(_0xd5003,{'drawings':_0x2e2b5f,'hasCropper':!0x1}),_0x2b677f(_0x1fbaec,{'drawings':_0x2e2b5f})]})});}function tr(_0x4a4486){let {unitId:_0x3daae7,subUnitId:_0xd493eb,shapeId:_0x3ddc6f}=_0x4a4486,_0x4eca3b=_0x597c42(_0x4d9cac),_0x3a1900=_0x597c42($n);return _0x2b677f(_0x30898f,{..._0x4a4486,'positionEditor':_0x2b677f(er,{}),'onUpdateShapeData':(_0x3c2142,_0x2a9ff5)=>{_n(_0x4eca3b,_0x3daae7,_0xd493eb,_0x3ddc6f,_0x3c2142,_0x2a9ff5);},'onUpdateLineShapeData':(_0x5a5f8e,_0x25cc88)=>{vn(_0x4eca3b,_0x3daae7,_0xd493eb,_0x3ddc6f,_0x5a5f8e,_0x25cc88);},'onUpdateShapeFillImage':_0xc4652d=>{const _0xfae5c9=_0x449a;_0x3a1900[_0xfae5c9(0x1e9)]({'unitId':_0x3daae7,'subUnitId':_0xd493eb,'drawingId':_0x3ddc6f},_0xc4652d);}});}function nr(_0xdb3d5f){const _0x5846de=_0x43dbb9;let _0x59f4d1=_0xdb3d5f[_0x5846de(0x1ce)][_0x5846de(0x1be)];return _0x59f4d1?_0x2b677f(rr,{..._0x59f4d1}):null;}function rr(_0x24c783){const _0x156b75=_0x43dbb9;var _0x430f3e,_0x505c2b;let _0x1a14d2=_0x597c42(_0x4d9cac),_0x4f5cc8=_0x597c42(_0x26a217),{unitId:_0x4feab7,subUnitId:_0x22cf67,drawingId:_0x522b38,drawingType:_0x453101,shapeType:_0x1cafc0}=_0x24c783,[_0x2c6782,_0x9182d7]=_0x5a0562(_0x24c783['shapeData']),_0x5eb587=_0x293422(()=>_0x32374d(_0x2c6782),[_0x2c6782]),_0x19658d=_0x293422(()=>_0x4d64d0(_0x2c6782),[_0x2c6782]);_0x15fc40(()=>{const _0x248e1d=_0x449a;let _0x3139a4=_0x1a14d2[_0x248e1d(0x1f7)](_0x3ba9f2=>{const _0x5622a3=_0x248e1d;if(_0x3ba9f2['id']!==_0x19b81c['id'])return;let _0x65f0ba=_0x4f5cc8[_0x5622a3(0xeb)](_0x4feab7,_0x22cf67,_0x522b38);_0x65f0ba&&_0x9182d7(_0x65f0ba);});return()=>_0x3139a4[_0x248e1d(0x2dd)]();},[_0x1a14d2,_0x522b38,_0x4f5cc8,_0x22cf67,_0x4feab7]);let _0x257412=_0x4dca13=>{_0x9182d7(_0x43234f=>({..._0x43234f,..._0x4dca13}));},_0x427e76=_0x3e9b15=>{const _0x11ba60=_0x449a;let _0x4fda54=_0x299119(_0x2c6782,_0x3e9b15);_n(_0x1a14d2,_0x4feab7,_0x22cf67,_0x522b38,{'oldShapeData':{'shapeText':_0x2c6782[_0x11ba60(0x1cf)]}},_0x4fda54),_0x257412(_0x4fda54);},_0x1dcd06=_0x1d16dd({'unitId':_0x4feab7,'subUnitId':_0x22cf67,'shapeId':_0x522b38,'shapeData':_0x2c6782,'onUpdateBinding':_0x128bde=>{const _0x31f808=_0x449a;let _0xdc2d9={'formulaBinding':_0x128bde};_n(_0x1a14d2,_0x4feab7,_0x22cf67,_0x522b38,{'oldShapeData':{'formulaBinding':_0x2c6782[_0x31f808(0x17a)]}},_0xdc2d9),_0x257412(_0xdc2d9);}});return _0x27f2a4(_0xf1e5d2,{'children':[_0x2b677f(_0xf7955b,{'shapeData':_0x2c6782,'shapeType':_0x1cafc0,'textStyle':{'ff':_0x2bc8ec[_0x156b75(0x1cf)][_0x156b75(0x8a)],'fs':_0x2bc8ec[_0x156b75(0x1cf)][_0x156b75(0x1c5)],'cl':{'rgb':_0x2bc8ec[_0x156b75(0x1cf)][_0x156b75(0x222)]},..._0x5eb587},'textModel':_0x19658d?{'ha':(_0x430f3e=_0x19658d['ha'])==null?_0x1bf681['LEFT']:_0x430f3e,'va':(_0x505c2b=_0x19658d['va'])==null?_0x3d0a33[_0x156b75(0x116)]:_0x505c2b}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x2bc8ec[_0x156b75(0x1ee)],'defaultGradientEndColor':_0x2bc8ec[_0x156b75(0xb9)],'defaultStrokeColor':_0x2bc8ec[_0x156b75(0x294)],'extensionGroups':_0x1dcd06[_0x156b75(0x13f)],'onUpdateShapeData':(_0x4cfd09,_0x5b10d4)=>{_n(_0x1a14d2,_0x4feab7,_0x22cf67,_0x522b38,_0x4cfd09,_0x5b10d4),_0x5b10d4&&_0x257412(_0x5b10d4);},'onUpdateText':_0x427e76,'onOpenPanel':()=>{_0x1a14d2['executeCommand'](qn['id'],{'unitId':_0x4feab7,'subUnitId':_0x22cf67,'drawingId':_0x522b38});},'onDelete':()=>{_0x1a14d2['executeCommand'](_0x10723d['id'],{'unitId':_0x4feab7,'drawings':[{'unitId':_0x4feab7,'subUnitId':_0x22cf67,'drawingId':_0x522b38,'drawingType':_0x453101}]});}}),_0x1dcd06[_0x156b75(0x12e)]]});}var ir=class extends _0x4760b3{constructor(..._0x43665a){const _0x3fd954=_0x43dbb9;super(..._0x43665a),Y(this,_0x3fd954(0x1ae),new _0x502f7b(null)),Y(this,_0x3fd954(0x17b),this['_editingParams$'][_0x3fd954(0x10e)]()),Y(this,_0x3fd954(0x138),new _0x502f7b(!0x1)),Y(this,'onSavingEditorData$',this[_0x3fd954(0x138)][_0x3fd954(0x10e)]());}[_0x43dbb9(0x2dd)](){const _0x397bb4=_0x43dbb9;this[_0x397bb4(0x1ae)]['next'](null),this['_editingParams$'][_0x397bb4(0x151)](),this[_0x397bb4(0x138)][_0x397bb4(0x166)](!0x1),this[_0x397bb4(0x138)][_0x397bb4(0x151)](),super[_0x397bb4(0x2dd)]();}['setEditing'](_0x34fe7f){const _0x41568a=_0x43dbb9;this['_editingParams$'][_0x41568a(0x166)](_0x34fe7f),_0x34fe7f==null&&this[_0x41568a(0x138)][_0x41568a(0x166)](!0x1);}[_0x43dbb9(0xe2)](_0x2d9900){const _0x479c88=_0x43dbb9;this['_onSavingEditorData$'][_0x479c88(0x166)](_0x2d9900);}[_0x43dbb9(0x1f9)](){const _0x5b35bc=_0x43dbb9;return this[_0x5b35bc(0x1ae)][_0x5b35bc(0x170)]();}[_0x43dbb9(0x182)](_0x5760e3){const _0x188bbd=_0x43dbb9;this['getEditing']()&&(this[_0x188bbd(0xe2)](!0x0),requestAnimationFrame(()=>{const _0x3a1216=_0x188bbd;this[_0x3a1216(0xc7)](null);}));}['cancelEditing'](){const _0x2fd8c3=_0x43dbb9;this[_0x2fd8c3(0x1f9)]()&&this[_0x2fd8c3(0xc7)](null);}};const ar=_0x3adf0a(()=>{const _0x39c086=_0x43dbb9;let _0x24814a=_0x597c42(ir),_0x39d8ce=_0x597c42(_0x26a217),_0x555180=_0x597c42(_0x324617),_0x18ebe5=_0x597c42(_0x4d9cac),_0x5c5061=_0x597c42(_0x263af6);return _0x2b677f(_0x1ef440,{'adapter':_0x293422(()=>({'getShapeModel':(_0x323d56,_0x55d689,_0x168b6e)=>_0x39d8ce[_0x39c086(0x251)](_0x323d56,_0x55d689,_0x168b6e),'getShapeData':(_0x2a42ce,_0x1ed7be,_0x181fe9)=>_0x39d8ce[_0x39c086(0xeb)](_0x2a42ce,_0x1ed7be,_0x181fe9),'getDrawingTransform':(_0x3d5b46,_0x1ec96e,_0x3f2737)=>{const _0xf33ee7=_0x39c086;let _0x50cb45=_0x555180['getDrawingByParam']({'unitId':_0x3d5b46,'subUnitId':_0x1ec96e,'drawingId':_0x3f2737});return _0x50cb45==null?void 0x0:_0x50cb45[_0xf33ee7(0x10c)];},'updateShapeText':({unitId:_0x3ff824,subUnitId:_0xdfe53c,shapeId:_0x5cd977,shapeText:_0x28c205,oldShapeText:_0x48bba0})=>{const _0x3d3000=_0x39c086;_0x18ebe5[_0x3d3000(0x2d0)](gn['id'],{'unitId':_0x3ff824,'subUnitId':_0xdfe53c,'shapeId':_0x5cd977,'shapeData':{'shapeText':_0x28c205},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x48bba0}}});},'updateHostSize':({unitId:_0x1ea1b3,subUnitId:_0x10ca5d,shapeId:_0x538887,width:_0x4801d0,height:_0x122cc8})=>{const _0x3471bf=_0x39c086;var _0x341e09,_0x16d517,_0x338e19;let _0x40b0bb=_0x555180[_0x3471bf(0x171)]({'unitId':_0x1ea1b3,'subUnitId':_0x10ca5d,'drawingId':_0x538887}),_0x2834f8=_0x40b0bb==null?void 0x0:_0x40b0bb['transform'];if(!_0x40b0bb||!_0x2834f8)return;let _0x1d89c5={..._0x2834f8,'width':_0x4801d0,'height':_0x122cc8},_0x3080ef=(_0x341e09=_0x5c5061[_0x3471bf(0x19c)](_0x1ea1b3))==null||(_0x341e09=_0x341e09[_0x3471bf(0x2ea)](_0x392ff0)[_0x3471bf(0x255)](_0x10ca5d))==null?void 0x0:_0x341e09['skeleton'],_0x2a2762=_0x3080ef?(_0x16d517=_0x556f36(_0x1d89c5,_0x3080ef))==null?_0x40b0bb[_0x3471bf(0x195)]:_0x16d517:_0x40b0bb[_0x3471bf(0x195)],_0x42f231=_0x3080ef?(_0x338e19=_0x38f007(_0x1d89c5,_0x3080ef))==null?_0x40b0bb[_0x3471bf(0x268)]:_0x338e19:_0x40b0bb[_0x3471bf(0x268)];_0x18ebe5[_0x3471bf(0x2d0)](_0x1fd507['id'],{'unitId':_0x1ea1b3,'drawings':[{..._0x40b0bb,'transform':_0x1d89c5,'sheetTransform':_0x2a2762,'axisAlignSheetTransform':_0x42f231}]});},'allowHostSizeShrink':({unitId:_0x43a7bf,subUnitId:_0x5c9d20,shapeId:_0x525970})=>_0x7ce441(_0x39d8ce[_0x39c086(0xeb)](_0x43a7bf,_0x5c9d20,_0x525970))}),[_0x18ebe5,_0x555180,_0x5c5061,_0x39d8ce]),'editingService':_0x24814a,'editorUnitId':jn,'positionOptions':_0x293422(()=>({'viewportKeys':{'main':_0x4ce309[_0x39c086(0x27d)],'leftTop':_0x4ce309[_0x39c086(0x1db)],'top':_0x4ce309[_0x39c086(0x1e8)],'left':_0x4ce309[_0x39c086(0x1f6)]},'getSkeleton':(_0x28263b,_0x320743)=>{const _0x599119=_0x39c086;var _0x2e2dc1,_0x36f2d3;return(_0x2e2dc1=(_0x36f2d3=_0x28263b[_0x599119(0x2ea)](_0x392ff0)[_0x599119(0x255)](_0x320743['subUnitId']))==null?void 0x0:_0x36f2d3[_0x599119(0x287)])==null?null:_0x2e2dc1;}}),[])});});let or=class extends _0x4760b3{constructor(_0x56f394,_0x1f6017){const _0x4a8ccd=_0x43dbb9;super(),this[_0x4a8ccd(0x103)]=_0x56f394,this[_0x4a8ccd(0x239)]=_0x1f6017,this[_0x4a8ccd(0x28c)](),this[_0x4a8ccd(0x265)]();}[_0x43dbb9(0x28c)](){const _0x2c2a87=_0x43dbb9;this[_0x2c2a87(0x239)][_0x2c2a87(0x2b0)](_0x2c2a87(0x134))||this[_0x2c2a87(0x11b)](this[_0x2c2a87(0x239)][_0x2c2a87(0x21e)]({'ObjectLayersIcon':_0x347bf2}));}['_registerComponents'](){const _0xb119ee=_0x43dbb9;this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)]['register'](On,tr)),this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)][_0xb119ee(0x21e)](kn,Qn)),this['disposeWithMe'](this['_componentManager'][_0xb119ee(0x21e)](Fn,Bn)),this['disposeWithMe'](this[_0xb119ee(0x103)][_0xb119ee(0x21e)](In,Rn)),this['_componentManager']['get'](_0x1f5a6b)||this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)][_0xb119ee(0x21e)](_0x1f5a6b,zn)),this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)]['register'](An,nr)),this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)][_0xb119ee(0x21e)](Mn,_0x312819)),this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)]['register'](_0xb119ee(0x143),ar));}};or=Z([X(0x0,_0x450bf3(_0x1953f8)),X(0x1,_0x450bf3(_0x200e2a))],or);let sr=class extends _0x4760b3{constructor(_0x3f6628,_0xa9b068,_0x40f357,_0x9ab23e,_0x16257b){const _0x29ee3c=_0x43dbb9;super(),this[_0x29ee3c(0xfb)]=_0x3f6628,this[_0x29ee3c(0xcc)]=_0xa9b068,this[_0x29ee3c(0x87)]=_0x40f357,this['_univerInstanceService']=_0x9ab23e,this['_imageShapeClipController']=_0x16257b,Y(this,_0x29ee3c(0x169),null),Y(this,_0x29ee3c(0x238),null),Y(this,_0x29ee3c(0x250),null),Y(this,_0x29ee3c(0x2cd),void 0x0),Y(this,_0x29ee3c(0x176),[]),Y(this,_0x29ee3c(0x283),0x0),Y(this,_0x29ee3c(0x92),0x0),Y(this,_0x29ee3c(0x127),0x0),Y(this,_0x29ee3c(0x233),0x0),Y(this,'_isStartAdjusting',!0x1),Y(this,'_activeAdjustInfo',void 0x0),Y(this,_0x29ee3c(0x22b),void 0x0),Y(this,'_adjHandlerPointerMove',void 0x0),Y(this,'_adjHandlerPointerUp',void 0x0),Y(this,_0x29ee3c(0x292),!0x1),this[_0x29ee3c(0x2d8)](),this[_0x29ee3c(0x1ad)]();}[_0x43dbb9(0x2e3)](){const _0x82c8d2=_0x43dbb9;this[_0x82c8d2(0x186)]();}[_0x43dbb9(0x14d)](){const _0x11763d=_0x43dbb9;this[_0x11763d(0x186)](),this[_0x11763d(0x1c8)](!0x0);}[_0x43dbb9(0x15e)](_0x2275ba,_0x272634,_0x223dcf,_0x4611ed){const _0x312609=_0x43dbb9;let _0x323004=_0x2275ba;if(!(_0x323004===_0x250922[_0x312609(0x1cd)]||_0x2275ba===_0x312609(0x1c3)))try{let _0x48c5de=new _0xf0c0c(_0x323004,_0x312609(0x259)+_0x2275ba);return _0x4611ed&&_0x48c5de[_0x312609(0x1a4)]({'adjustValues':_0x4611ed},!0x0),_0x48c5de[_0x312609(0x104)]({'width':_0x272634,'height':_0x223dcf}),_0x48c5de;}catch{return;}}[_0x43dbb9(0x1a6)](_0x56326f,_0x5d2afc,_0x5a0771){const _0x4a2c67=_0x43dbb9;let _0xad96f={'unitId':_0x56326f,'subUnitId':_0x5d2afc,'drawingId':_0x5a0771},_0x382d2b=this[_0x4a2c67(0xcc)][_0x4a2c67(0x171)](_0xad96f);if(!(!_0x382d2b||_0x382d2b['drawingType']!==_0x5d03f6[_0x4a2c67(0x20a)]))return _0x382d2b;}[_0x43dbb9(0x190)](_0x2a657d,_0x509f76,_0x3a3299){const _0x1807ef=_0x43dbb9;let _0x1f3076=this[_0x1807ef(0x87)][_0x1807ef(0x19c)](_0x2a657d);if(!_0x1f3076)return;let {scene:_0x5759b4}=_0x1f3076,_0x532d26=_0x7f2912({'unitId':_0x2a657d,'subUnitId':_0x509f76,'drawingId':_0x3a3299}),_0x36520c=_0x5759b4[_0x1807ef(0xad)](_0x532d26);if(_0x36520c instanceof _0x3100f0){let _0x4cdadf=_0x36520c[_0x1807ef(0x132)];if(_0x4cdadf)return{'prstGeom':_0x4cdadf,'adjustValues':_0x36520c[_0x1807ef(0x224)]};}}[_0x43dbb9(0x1c8)](_0x1dc7ff=!0x1){const _0x201aa2=_0x43dbb9;if(!this[_0x201aa2(0x238)]||!this[_0x201aa2(0x250)]||!this[_0x201aa2(0x169)])return;let _0x3b9702=this[_0x201aa2(0x87)][_0x201aa2(0x19c)](this[_0x201aa2(0x238)]);if(!_0x3b9702||!_0x3b9702['with'](_0x392ff0)['getCurrentSkeleton']())return;let {scene:_0x4a7af7}=_0x3b9702,_0x8faf29=this[_0x201aa2(0x1a6)](this[_0x201aa2(0x238)],this[_0x201aa2(0x250)],this['_activeImageId']);if(!_0x8faf29)return;let {transform:_0x10dd7c}=_0x8faf29;if(!_0x10dd7c)return;let {left:_0x2cb364,top:_0xbe4c4a,width:_0x46eb08,height:_0x427252,flipX:_0x362db1,flipY:_0x573adc,angle:_0xc01ef8=0x0}=_0x10dd7c;if(_0x2cb364===void 0x0||_0xbe4c4a===void 0x0)return;let _0x4d8198=this[_0x201aa2(0x190)](this['_unitId'],this[_0x201aa2(0x250)],this[_0x201aa2(0x169)]);if(!_0x4d8198)return;if(_0x1dc7ff){let _0x46f1e5=this[_0x201aa2(0x15e)](_0x4d8198[_0x201aa2(0x132)],_0x46eb08||0x0,_0x427252||0x0,_0x4d8198[_0x201aa2(0xef)]);if(!_0x46f1e5)return;this[_0x201aa2(0x2cd)]=_0x46f1e5[_0x201aa2(0x275)]();}let _0x4988b6=this['_activeAdjustPointList'];if(!(!_0x4988b6||_0x4988b6[_0x201aa2(0x15f)]===0x0))for(let _0x261092=0x0;_0x261092<_0x4988b6[_0x201aa2(0x15f)];_0x261092++){let _0x2558dd=_0x4988b6[_0x261092],_0x4c26c1=_0x2558dd['x'],_0x407e31=_0x2558dd['y'];if(_0x362db1&&(_0x4c26c1=(_0x46eb08||0x0)-_0x4c26c1),_0x573adc&&(_0x407e31=(_0x427252||0x0)-_0x407e31),_0xc01ef8!==0x0){let _0x593eab=(_0x46eb08||0x0)/0x2,_0x32dc9f=(_0x427252||0x0)/0x2,_0x5bfcf9=_0xc01ef8*Math['PI']/0xb4,_0x41fd72=Math[_0x201aa2(0x109)](_0x5bfcf9),_0xc88062=Math[_0x201aa2(0x1e6)](_0x5bfcf9),_0x461d70=_0x4c26c1-_0x593eab,_0x58288f=_0x407e31-_0x32dc9f;_0x4c26c1=_0x593eab+(_0x461d70*_0x41fd72-_0x58288f*_0xc88062),_0x407e31=_0x32dc9f+(_0x461d70*_0xc88062+_0x58288f*_0x41fd72);}let _0x37f031={'x':_0x4c26c1,'y':_0x407e31,'adjName':_0x2558dd['adjName']};this[_0x201aa2(0x2d2)](_0x4a7af7,_0x37f031,_0x37f031['adjName'],_0x2cb364,_0xbe4c4a,this[_0x201aa2(0x238)],this[_0x201aa2(0x250)]);}}[_0x43dbb9(0x2d2)](_0x3df7af,_0xd34090,_0x3fdd98,_0x283fcd,_0x19f9ac,_0x146883,_0xdb8dab){const _0x13b400=_0x43dbb9;if(!this[_0x13b400(0x169)])return;let _0x188549=_0x13b400(0x2a2)+this[_0x13b400(0x169)]+'-'+_0x3fdd98,_0x257a33=_0x3df7af[_0x13b400(0x1de)](_0x188549);if(_0x257a33){_0x257a33[_0x13b400(0x1c7)]({'left':_0xd34090['x']+_0x283fcd-_0x2bc8ec[_0x13b400(0x86)],'top':_0xd34090['y']+_0x19f9ac-_0x2bc8ec[_0x13b400(0x86)]});return;}let _0x2cf20a=new wn(_0x188549,{'left':_0xd34090['x']+_0x283fcd-_0x2bc8ec['adjHandleSize'],'top':_0xd34090['y']+_0x19f9ac-_0x2bc8ec[_0x13b400(0x86)],'adjName':_0x3fdd98,'shapeId':this[_0x13b400(0x169)],'unitId':_0x146883,'subUnitId':_0xdb8dab,'width':_0x2bc8ec[_0x13b400(0x86)]+0x8,'height':_0x2bc8ec[_0x13b400(0x86)]+0x8,'zIndex':_0x11332b+0x1,'evented':!0x0});this['_shapes'][_0x13b400(0x241)](_0x2cf20a),this[_0x13b400(0x2e0)](_0x2cf20a,_0x3df7af,_0x3fdd98),_0x3df7af[_0x13b400(0xe9)](_0x2cf20a,_0x11332b+0x1);}[_0x43dbb9(0x186)](){const _0x1301b5=_0x43dbb9;this[_0x1301b5(0x176)]['length']!==0x0&&(this['_shapes'][_0x1301b5(0x200)](_0x52e184=>_0x52e184[_0x1301b5(0x2dd)]()),this[_0x1301b5(0x176)]=[]);}['_getScrollInfo'](_0x1ad32b,_0x104b0c){const _0x53f7e8=_0x43dbb9;var _0x2032b6;let _0x5ad3e9={'x':0x0,'y':0x0},_0x39bb25=this[_0x53f7e8(0x87)][_0x53f7e8(0x19c)](_0x1ad32b);if(!_0x39bb25||!_0x39bb25['with'](_0x392ff0)[_0x53f7e8(0x188)](_0x104b0c))return _0x5ad3e9;let _0x1a8320=_0x39bb25[_0x53f7e8(0x2ea)](_0xdbee74),_0x14643b=_0x1a8320==null?void 0x0:_0x1a8320['getCurrentScrollState']();if(!_0x14643b)return _0x5ad3e9;let _0x5f5ac4=(_0x2032b6=this[_0x53f7e8(0xcd)]['getUnit'](_0x1ad32b))==null?void 0x0:_0x2032b6[_0x53f7e8(0x148)](_0x104b0c);if(!_0x5f5ac4)return _0x5ad3e9;let _0x30d711=_0x1b930d(_0x14643b[_0x53f7e8(0x296)],_0x14643b[_0x53f7e8(0x286)],_0x39bb25[_0x53f7e8(0x128)],_0x5f5ac4);return _0x30d711?{'x':_0x30d711[_0x53f7e8(0x121)],'y':_0x30d711[_0x53f7e8(0x23f)]}:_0x5ad3e9;}[_0x43dbb9(0x155)](_0x5e10ae,_0x4d8847){const _0xec6b09=_0x43dbb9;var _0x397227,_0x2ef821;let _0x3bcb75=(_0x397227=this[_0xec6b09(0xcd)][_0xec6b09(0x150)](_0x5e10ae))==null?void 0x0:_0x397227[_0xec6b09(0x148)](_0x4d8847);return(_0x2ef821=_0x3bcb75==null?void 0x0:_0x3bcb75['getZoomRatio']())==null?0x1:_0x2ef821;}[_0x43dbb9(0x2e0)](_0x5bd7fd,_0x32d0b0,_0x3273ec){const _0x4e2590=_0x43dbb9;this[_0x4e2590(0x11b)](_0x43b296(_0x5bd7fd[_0x4e2590(0x12f)][_0x4e2590(0x17c)]((_0x476c0f,_0x31c873)=>{const _0x2c0b8c=_0x4e2590;var _0x516b0f,_0xd41a7d,_0x2023d1;let {unitId:_0x48de44,subUnitId:_0x434606,drawingId:_0x4658c2}=_0x5bd7fd['getDrawingSearch'](),_0x431862=this[_0x2c0b8c(0x1a6)](_0x48de44,_0x434606,_0x4658c2);if(!(_0x431862!=null&&_0x431862['transform']))return;let {left:_0x270a62,top:_0x13f657,width:_0x3eaa27,height:_0x306409}=_0x431862[_0x2c0b8c(0x10c)];this[_0x2c0b8c(0x283)]=_0x270a62||0x0,this['_baseTop']=_0x13f657||0x0,this[_0x2c0b8c(0x127)]=_0x3eaa27||0x0,this[_0x2c0b8c(0x233)]=_0x306409||0x0;let _0x320b89=!!((_0x516b0f=_0x431862[_0x2c0b8c(0x10c)])!=null&&_0x516b0f[_0x2c0b8c(0x2d5)]),_0x263c29=!!((_0xd41a7d=_0x431862[_0x2c0b8c(0x10c)])!=null&&_0xd41a7d[_0x2c0b8c(0x219)]),_0x134e72=((_0x2023d1=_0x431862[_0x2c0b8c(0x10c)])==null?void 0x0:_0x2023d1[_0x2c0b8c(0x2e1)])||0x0,_0x1966c6=this[_0x2c0b8c(0x190)](_0x48de44,_0x434606,_0x4658c2);if(!_0x1966c6)return;let _0xfbbbef=this[_0x2c0b8c(0x15e)](_0x1966c6[_0x2c0b8c(0x132)],this[_0x2c0b8c(0x127)],this[_0x2c0b8c(0x233)],_0x1966c6[_0x2c0b8c(0xef)]);if(!_0xfbbbef||(this[_0x2c0b8c(0x22b)]=_0xfbbbef,this['_activeAdjustInfo']=_0xfbbbef[_0x2c0b8c(0x2ae)](_0x3273ec),!this['_activeAdjustInfo']))return;this[_0x2c0b8c(0x258)]=!0x0,_0x32d0b0[_0x2c0b8c(0x1b8)]();let _0x4f565b=_0x1966c6[_0x2c0b8c(0x132)];this[_0x2c0b8c(0x1fa)]=_0x32d0b0[_0x2c0b8c(0x24b)][_0x2c0b8c(0x17c)]((_0x38ecb7,_0x2def4b)=>{const _0x221de2=_0x2c0b8c;if(!this['_isStartAdjusting'])return;let {offsetX:_0x2e98cb,offsetY:_0x65777c}=_0x38ecb7,_0x699e4a=this[_0x221de2(0x257)];if(!this[_0x221de2(0x22b)]||!_0x699e4a)return;_0x32d0b0[_0x221de2(0x1b8)](),_0x32d0b0[_0x221de2(0xa2)](_0x110f16['CROSSHAIR']);let _0x16f103={'left':0x0,'top':0x0,'width':this[_0x221de2(0x127)],'height':this[_0x221de2(0x233)]},_0x5e69bb=this['_getScrollInfo'](_0x48de44,_0x434606),_0x56d905=this[_0x221de2(0x155)](_0x48de44,_0x434606),_0x5e23cb=_0x2e98cb/_0x56d905+_0x5e69bb['x']-this['_baseLeft'],_0x422e49=_0x65777c/_0x56d905+_0x5e69bb['y']-this[_0x221de2(0x92)];if(_0x134e72!==0x0){let _0x2fbbc0=this[_0x221de2(0x127)]/0x2,_0x5d9f07=this[_0x221de2(0x233)]/0x2,_0x47baea=_0x134e72*Math['PI']/0xb4,_0x221ea3=Math[_0x221de2(0x109)](_0x47baea),_0x36035d=Math[_0x221de2(0x1e6)](_0x47baea),_0x2126f8=_0x5e23cb-_0x2fbbc0,_0x1bb8f1=_0x422e49-_0x5d9f07;_0x5e23cb=_0x2fbbc0+(_0x2126f8*_0x221ea3+_0x1bb8f1*_0x36035d),_0x422e49=_0x5d9f07+(-_0x2126f8*_0x36035d+_0x1bb8f1*_0x221ea3);}_0x320b89&&(_0x5e23cb=this[_0x221de2(0x127)]-_0x5e23cb),_0x263c29&&(_0x422e49=this[_0x221de2(0x233)]-_0x422e49);let _0x2da3ad=this[_0x221de2(0x22b)][_0x221de2(0x180)](_0x16f103,{'x':_0x5e23cb,'y':_0x422e49},_0x699e4a,_0x320b89,_0x263c29),_0x359261=_0x699e4a[_0x221de2(0xc3)]||_0x699e4a[_0x221de2(0x247)]||_0x699e4a[_0x221de2(0x2de)]||_0x699e4a[_0x221de2(0x2e5)];_0x359261!==void 0x0&&(this[_0x221de2(0x22b)][_0x221de2(0x12b)](_0x359261,_0x2da3ad),this[_0x221de2(0x22b)][_0x221de2(0x104)]({'width':this[_0x221de2(0x127)],'height':this[_0x221de2(0x233)]}),this[_0x221de2(0x15b)](_0x48de44,_0x434606,_0x4658c2,_0x359261,_0x2da3ad),this[_0x221de2(0x2cd)]=this[_0x221de2(0x22b)]['getDrawingPoints'](),this['_activeAdjustInfo']=this[_0x221de2(0x22b)]['getAdjustInfoByName'](_0x3273ec),this[_0x221de2(0x1c8)](),_0x2def4b[_0x221de2(0x26a)]());}),this[_0x2c0b8c(0x276)]=_0x32d0b0['onPointerUp$'][_0x2c0b8c(0x17c)]((_0x56f091,_0x551942)=>{const _0x11fafa=_0x2c0b8c;if(this[_0x11fafa(0x1fa)][_0x11fafa(0x1dd)](),this['_adjHandlerPointerUp'][_0x11fafa(0x1dd)](),_0x32d0b0[_0x11fafa(0x15a)](),this[_0x11fafa(0x22b)]){let _0x1a929c=this[_0x11fafa(0x22b)]['getAdjustNames'](),_0x4026ed={};for(let _0x2c4c66 of _0x1a929c){let _0x2e7487=this[_0x11fafa(0x22b)][_0x11fafa(0x29f)](_0x2c4c66);_0x2e7487!==void 0x0&&(_0x4026ed[_0x2c4c66]=_0x2e7487);}this[_0x11fafa(0xf9)]['clipByShape'](_0x48de44,_0x434606,_0x4658c2,_0x4f565b,_0x4026ed);}this['_activeAdjustInfo']=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x11fafa(0x258)]=!0x1,_0x551942[_0x11fafa(0x26a)](),_0x32d0b0['enableObjectsEvent']();}),_0x31c873[_0x2c0b8c(0x26a)]();})));}[_0x43dbb9(0x15b)](_0x19a038,_0x408ed9,_0x3b74bb,_0x41473e,_0x1f23ee){const _0x161c3c=_0x43dbb9;let _0x2f37a4=this[_0x161c3c(0x87)][_0x161c3c(0x19c)](_0x19a038);if(!_0x2f37a4)return;let {scene:_0x3d98e3}=_0x2f37a4,_0x43214e=_0x7f2912({'unitId':_0x19a038,'subUnitId':_0x408ed9,'drawingId':_0x3b74bb}),_0x39dddb=_0x3d98e3[_0x161c3c(0xad)](_0x43214e);if(_0x39dddb instanceof _0x3100f0){var _0x5ed587;let _0x1dadd6=(_0x5ed587=_0x39dddb['prstGeomAdjValues'])==null?{}:_0x5ed587;_0x39dddb['setPrstGeomAdjValues']({..._0x1dadd6,[_0x41473e]:_0x1f23ee}),_0x39dddb[_0x161c3c(0x15d)](!0x0);}}[_0x43dbb9(0x1ad)](){const _0x4865ae=_0x43dbb9;let _0xa9c7c3=this[_0x4865ae(0xcd)][_0x4865ae(0x240)](_0x2a1b28[_0x4865ae(0x1e0)]);this[_0x4865ae(0x11b)](_0xa9c7c3[_0x4865ae(0x24d)](_0x46afa7(_0x2b21a6=>_0x2b21a6?_0x2b21a6[_0x4865ae(0x117)][_0x4865ae(0x24d)](_0x46afa7(_0xf4c77e=>{const _0x20f6af=_0x4865ae;if(!_0xf4c77e)return _0x3149ab;let _0x53b246=_0x2b21a6['getUnitId'](),_0x4b126d=this[_0x20f6af(0x87)][_0x20f6af(0x19c)](_0x53b246),_0x59f98b=_0x4b126d==null?void 0x0:_0x4b126d['scene'];return _0x59f98b?_0x236700(_0x59f98b):_0x3149ab;})):_0x3149ab))[_0x4865ae(0x28f)](_0x197026=>{const _0x2c2bed=_0x4865ae;let _0x2b3eb4=_0x197026[_0x2c2bed(0x84)]();this[_0x2c2bed(0x11b)](_0x197026['onPointerMove$'][_0x2c2bed(0x17c)](()=>{const _0x188094=_0x2c2bed;this[_0x188094(0x292)]&&this[_0x188094(0x186)]();})),this['disposeWithMe'](_0x2b3eb4[_0x2c2bed(0x89)][_0x2c2bed(0x28f)](_0x24ae84=>{const _0x506320=_0x2c2bed;let {objects:_0x43a265}=_0x24ae84;if(this[_0x506320(0x1c8)](),_0x43a265!==null&&_0x43a265['size']===0x1){let _0x361a99=_0x43a265['values']()[_0x506320(0x166)]()[_0x506320(0x26b)];_0x361a99 instanceof _0x3100f0&&_0x361a99[_0x506320(0x132)]&&(this[_0x506320(0x292)]=!0x0);}})),this[_0x2c2bed(0x11b)](_0x2b3eb4[_0x2c2bed(0x18c)][_0x2c2bed(0x28f)](()=>{const _0x26289e=_0x2c2bed;this[_0x26289e(0x292)]&&this['_clearControls']();})),this[_0x2c2bed(0x11b)](_0x197026[_0x2c2bed(0x1bf)]['subscribeEvent'](()=>{const _0xbd47d4=_0x2c2bed;this[_0xbd47d4(0x292)]&&(this[_0xbd47d4(0x292)]=!0x1,this['_createControls']());})),this[_0x2c2bed(0x11b)](_0x2b3eb4['changeEnd$'][_0x2c2bed(0x28f)](()=>{const _0x3c57d4=_0x2c2bed;if(this['_unitId']&&this[_0x3c57d4(0x250)]&&this[_0x3c57d4(0x169)]){let _0x594c42=this[_0x3c57d4(0x190)](this[_0x3c57d4(0x238)],this['_subUnitId'],this['_activeImageId']);if(_0x594c42){var _0x5cfe43,_0x400363;let _0x5d1265=this[_0x3c57d4(0x1a6)](this[_0x3c57d4(0x238)],this['_subUnitId'],this[_0x3c57d4(0x169)]),_0x4292e8=(_0x5d1265==null||(_0x5cfe43=_0x5d1265[_0x3c57d4(0x10c)])==null?void 0x0:_0x5cfe43[_0x3c57d4(0xf7)])||0x0,_0x1c7a99=(_0x5d1265==null||(_0x400363=_0x5d1265[_0x3c57d4(0x10c)])==null?void 0x0:_0x400363[_0x3c57d4(0x1dc)])||0x0,_0x405239=this[_0x3c57d4(0x15e)](_0x594c42['prstGeom'],_0x4292e8,_0x1c7a99,_0x594c42['adjustValues']);_0x405239&&(this[_0x3c57d4(0x2cd)]=_0x405239[_0x3c57d4(0x275)](),this['_clearControls'](),this[_0x3c57d4(0x1c8)](!0x0));}}}));}));}[_0x43dbb9(0x2d8)](){const _0x30a934=_0x43dbb9;this['disposeWithMe'](this[_0x30a934(0xcc)]['focus$']['subscribe'](_0x462754=>{const _0x23aed7=_0x30a934;if(_0x462754[_0x23aed7(0x15f)]===0x1){let _0x435d09=_0x462754[0x0];if(_0x435d09[_0x23aed7(0x2cb)]===_0x5d03f6[_0x23aed7(0x20a)]){let {unitId:_0x13171f,subUnitId:_0x33cd56,drawingId:_0x4fa6ca}=_0x435d09,_0x376ff4=this['_getImagePrstGeom'](_0x13171f,_0x33cd56,_0x4fa6ca);if(_0x376ff4){var _0x1ed7ca,_0x145f9f;this[_0x23aed7(0x169)]=_0x4fa6ca,this[_0x23aed7(0x238)]=_0x13171f,this[_0x23aed7(0x250)]=_0x33cd56;let _0xfe433d=this[_0x23aed7(0x1a6)](_0x13171f,_0x33cd56,_0x4fa6ca),_0x391274=(_0xfe433d==null||(_0x1ed7ca=_0xfe433d[_0x23aed7(0x10c)])==null?void 0x0:_0x1ed7ca['width'])||0x0,_0x4d208f=(_0xfe433d==null||(_0x145f9f=_0xfe433d[_0x23aed7(0x10c)])==null?void 0x0:_0x145f9f[_0x23aed7(0x1dc)])||0x0,_0x5346d7=this[_0x23aed7(0x15e)](_0x376ff4[_0x23aed7(0x132)],_0x391274,_0x4d208f,_0x376ff4[_0x23aed7(0xef)]);_0x5346d7&&(this[_0x23aed7(0x2cd)]=_0x5346d7[_0x23aed7(0x275)]()),this[_0x23aed7(0x186)](),this[_0x23aed7(0x1c8)](!0x0);}else this[_0x23aed7(0x25b)]();}else this['_resetState']();}else this['_resetState']();})),this[_0x30a934(0x11b)](this[_0x30a934(0xcc)]['update$'][_0x30a934(0x28f)](_0x4735bf=>{const _0x2d15bd=_0x30a934;if(_0x4735bf['length']===0x1){let _0x1b9041=_0x4735bf[0x0],_0x58224c=this[_0x2d15bd(0xcc)][_0x2d15bd(0x171)](_0x1b9041);(_0x58224c==null?void 0x0:_0x58224c[_0x2d15bd(0x2cb)])===_0x5d03f6[_0x2d15bd(0x20a)]&&this[_0x2d15bd(0x169)]===_0x1b9041[_0x2d15bd(0x1a9)]&&(this[_0x2d15bd(0x186)](),this[_0x2d15bd(0x1c8)](!0x0));}})),this[_0x30a934(0x11b)](this[_0x30a934(0xcc)][_0x30a934(0xd6)]['subscribe'](_0x2d297e=>{const _0x396164=_0x30a934;for(let _0x4c519a of _0x2d297e)this[_0x396164(0x169)]===_0x4c519a[_0x396164(0x1a9)]&&this['_resetState']();}));}[_0x43dbb9(0x25b)](){const _0x2a79a9=_0x43dbb9;this[_0x2a79a9(0x169)]=null,this['_unitId']=null,this[_0x2a79a9(0x250)]=null,this[_0x2a79a9(0x2cd)]=void 0x0,this[_0x2a79a9(0x186)]();}};sr=Z([X(0x1,_0x324617),X(0x2,_0x450bf3(_0x263af6)),X(0x3,_0x7113c7),X(0x4,_0x450bf3(Pn))],sr);let cr=class extends _0x4760b3{constructor(_0x4d135b,_0x5af0a8,_0x101cfc,_0x5dc4a9){const _0x3a993e=_0x43dbb9;super(),this['_univerInstanceService']=_0x4d135b,this['_sheetInterceptorService']=_0x5af0a8,this[_0x3a993e(0x1e4)]=_0x101cfc,this['_sheetsShapeService']=_0x5dc4a9,this[_0x3a993e(0x29e)]();}[_0x43dbb9(0x29e)](){const _0x1d9a5c=_0x43dbb9;this[_0x1d9a5c(0x11b)](this['_sheetInterceptorService'][_0x1d9a5c(0xc8)]({'getMutations':_0x55cb7b=>{const _0x47c182=_0x1d9a5c;if(_0x55cb7b['id']===_0x299032['id']){let _0x41400d=_0x59589e(this[_0x47c182(0xcd)],_0x55cb7b[_0x47c182(0x118)]);if(!_0x41400d)return{'redos':[],'undos':[]};let {unitId:_0x42d43e,subUnitId:_0x5081d9}=_0x41400d,_0x1ed26e=this['_sheetDrawingService'][_0x47c182(0x295)](_0x42d43e,_0x5081d9),_0x477213=Object[_0x47c182(0x133)](_0x1ed26e)[_0x47c182(0xb6)](_0x32bdd2=>_0x32bdd2[_0x47c182(0x2cb)]===_0x5d03f6[_0x47c182(0x23a)]);if(_0x477213[_0x47c182(0x15f)]===0x0)return{'redos':[],'undos':[]};let _0x2dc126=[],_0x13ab7b=[];for(let _0x1289b5=0x0;_0x1289b5<_0x477213[_0x47c182(0x15f)];_0x1289b5++){let _0x585798=_0x477213[_0x1289b5],_0x58336a=this[_0x47c182(0x1ff)]['getShapeModel'](_0x585798[_0x47c182(0x25d)],_0x585798[_0x47c182(0x212)],_0x585798['drawingId']);if(!_0x58336a)continue;let {redo:_0x25b128,undo:_0x387542,objects:_0x2c8c80}=this[_0x47c182(0x1e4)]['getBatchRemoveOp']([_0x585798]);_0x2dc126['push']({'id':_0x35cadb['id'],'params':{'unitId':_0x42d43e,'subUnitId':_0x5081d9,'shapeId':_0x585798['drawingId']}}),_0x2dc126[_0x47c182(0x241)]({'id':_0x6d6f97['id'],'params':{'unitId':_0x42d43e,'subUnitId':_0x5081d9,'type':_0x2640be['REMOVE'],'op':_0x25b128,'objects':_0x2c8c80}}),_0x13ab7b[_0x47c182(0x241)]({'id':_0x6d6f97['id'],'params':{'unitId':_0x42d43e,'subUnitId':_0x5081d9,'type':_0x2640be[_0x47c182(0x27b)],'op':_0x387542,'objects':_0x2c8c80}}),_0x13ab7b['push']({'id':_0x5addb7['id'],'params':{'unitId':_0x42d43e,'subUnitId':_0x5081d9,'shapeId':_0x585798[_0x47c182(0x1a9)],'shapeType':_0x58336a[_0x47c182(0x2ad)](),'shapeData':JSON[_0x47c182(0x154)](JSON[_0x47c182(0x2d1)](_0x58336a['getShapeData']()))}});}return{'redos':_0x2dc126,'undos':_0x13ab7b};}else{if(_0x55cb7b['id']===_0x16ae42['id']){let {unitId:_0x39e449,subUnitId:_0x547fa6,targetSubUnitId:_0x1b28a4}=_0x55cb7b['params'];if(!_0x39e449||!_0x547fa6||!_0x1b28a4)return{'redos':[],'undos':[]};let _0x776654=this[_0x47c182(0x1e4)][_0x47c182(0x295)](_0x39e449,_0x547fa6),_0xea449d=Object[_0x47c182(0x133)](_0x776654)[_0x47c182(0xb6)](_0x29a545=>_0x29a545[_0x47c182(0x2cb)]===_0x5d03f6['DRAWING_SHAPE']);if(_0xea449d[_0x47c182(0x15f)]===0x0)return{'redos':[],'undos':[]};let _0xef1e5b=[],_0x37ef29=[];for(let _0x3cfc7e=0x0;_0x3cfc7e<_0xea449d[_0x47c182(0x15f)];_0x3cfc7e++){let _0x2b4d60=_0xea449d[_0x3cfc7e],_0x2c3064=this[_0x47c182(0x1ff)][_0x47c182(0x251)](_0x2b4d60[_0x47c182(0x25d)],_0x2b4d60[_0x47c182(0x212)],_0x2b4d60[_0x47c182(0x1a9)]);if(!_0x2c3064)continue;let _0x3cafb3=_0x2bfd17(),_0x1e8ce4={..._0x2b4d60,'unitId':_0x39e449,'subUnitId':_0x1b28a4,'drawingId':_0x3cafb3},{redo:_0x3cc142,undo:_0x183d08,objects:_0x2e62ed}=this[_0x47c182(0x1e4)][_0x47c182(0x2e4)]([_0x1e8ce4]);_0xef1e5b[_0x47c182(0x241)]({'id':_0x6d6f97['id'],'params':{'unitId':_0x39e449,'subUnitId':_0x1b28a4,'type':_0x2640be[_0x47c182(0x27b)],'op':_0x3cc142,'objects':_0x2e62ed}}),_0xef1e5b['push']({'id':_0x5addb7['id'],'params':{'unitId':_0x39e449,'subUnitId':_0x1b28a4,'shapeId':_0x3cafb3,'shapeType':_0x2c3064[_0x47c182(0x2ad)](),'shapeData':JSON[_0x47c182(0x154)](JSON[_0x47c182(0x2d1)](_0x2c3064[_0x47c182(0x282)]()))}}),_0x37ef29[_0x47c182(0x241)]({'id':_0x35cadb['id'],'params':{'unitId':_0x39e449,'subUnitId':_0x1b28a4,'shapeId':_0x3cafb3}}),_0x37ef29['push']({'id':_0x6d6f97['id'],'params':{'unitId':_0x39e449,'subUnitId':_0x1b28a4,'type':_0x2640be[_0x47c182(0xa9)],'op':_0x183d08,'objects':_0x2e62ed}});}return{'redos':_0xef1e5b,'undos':_0x37ef29};}}return{'redos':[],'undos':[]};}}));}};cr=Z([X(0x0,_0x450bf3(_0x7113c7)),X(0x1,_0x450bf3(_0x9d40d)),X(0x2,_0x450bf3(_0x57e4c3)),X(0x3,_0x450bf3(_0x26a217))],cr);let lr=class extends _0x4760b3{constructor(_0x447758,_0x4b8422,_0x248797,_0x4c076d,_0x5defc4){const _0x1ddc34=_0x43dbb9;super(),this[_0x1ddc34(0xfb)]=_0x447758,this['_shapeTextEditingService']=_0x4b8422,this[_0x1ddc34(0xcc)]=_0x248797,this[_0x1ddc34(0x216)]=_0x4c076d,this[_0x1ddc34(0x1ff)]=_0x5defc4,Y(this,'_lastEditingShapeKey',null),this[_0x1ddc34(0x163)](),this[_0x1ddc34(0x1f0)](),this[_0x1ddc34(0x2c3)]();}[_0x43dbb9(0x163)](){const _0x8aa2da=_0x43dbb9;let {scene:_0x369e7c}=this[_0x8aa2da(0xfb)];this[_0x8aa2da(0x11b)](_0x369e7c[_0x8aa2da(0x20d)][_0x8aa2da(0x17c)](_0x36102d=>{const _0x33c4d6=_0x8aa2da;let {offsetX:_0x3e5b99,offsetY:_0x1fd83a}=_0x36102d,_0x27831e=_0x369e7c[_0x33c4d6(0x214)](_0xf6e38e[_0x33c4d6(0x101)]([_0x3e5b99,_0x1fd83a]));if(_0x27831e instanceof Cn){let _0x545b1b=this[_0x33c4d6(0x1ff)]['getShapeModel'](_0x27831e[_0x33c4d6(0x25d)],_0x27831e[_0x33c4d6(0x212)],_0x27831e['shapeId']);if(_0x545b1b!=null&&_0x545b1b[_0x33c4d6(0x282)]()[_0x33c4d6(0x17a)]||_0x1f7f23(this[_0x33c4d6(0x1ff)][_0x33c4d6(0x2ad)](_0x27831e['unitId'],_0x27831e[_0x33c4d6(0x212)],_0x27831e[_0x33c4d6(0xfc)])))return;this['_shapeTextEditingService'][_0x33c4d6(0xc7)]({'visible':!0x0,'unitId':_0x27831e[_0x33c4d6(0x25d)],'subUnitId':_0x27831e[_0x33c4d6(0x212)],'shapeId':_0x27831e[_0x33c4d6(0xfc)],'shapeKey':_0x27831e[_0x33c4d6(0xe8)]});}}));}['_initSelection'](){const _0x2bfde6=_0x43dbb9;this[_0x2bfde6(0x11b)](this['_drawingManagerService'][_0x2bfde6(0x231)]['subscribe'](_0x4fb40e=>{const _0x490d6a=_0x2bfde6;if(_0x4fb40e[_0x490d6a(0x15f)]===0x1){let _0x4f99d7=_0x4fb40e[0x0],_0x307003=this[_0x490d6a(0xcc)][_0x490d6a(0x171)](_0x4f99d7);if((_0x307003==null?void 0x0:_0x307003[_0x490d6a(0x2cb)])===_0x5d03f6[_0x490d6a(0x23a)]){var _0x38cb74;let _0x5d3d17=this[_0x490d6a(0x1a8)][_0x490d6a(0x1f9)]();if((_0x5d3d17==null?void 0x0:_0x5d3d17[_0x490d6a(0xfc)])===_0x4f99d7['drawingId']&&_0x5d3d17[_0x490d6a(0x2cc)])return;let _0x4ac6cf=_0x1f7f23(this[_0x490d6a(0x1ff)][_0x490d6a(0x2ad)](_0x4f99d7[_0x490d6a(0x25d)],_0x4f99d7[_0x490d6a(0x212)],_0x4f99d7[_0x490d6a(0x1a9)])),_0xf6824a=!!((_0x38cb74=this[_0x490d6a(0x1ff)]['getShapeModel'](_0x4f99d7[_0x490d6a(0x25d)],_0x4f99d7[_0x490d6a(0x212)],_0x4f99d7[_0x490d6a(0x1a9)]))!=null&&_0x38cb74[_0x490d6a(0x282)]()[_0x490d6a(0x17a)]);(_0x4ac6cf||_0xf6824a)&&this[_0x490d6a(0x1a8)][_0x490d6a(0xc7)](null);}else this[_0x490d6a(0x1a8)][_0x490d6a(0x1f9)]()&&(this['_shapeTextEditingService']['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{this['_shapeTextEditingService']['setEditing'](null);}));}else this[_0x490d6a(0x1a8)][_0x490d6a(0x1f9)]()&&(this[_0x490d6a(0x1a8)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0xf1a67=_0x490d6a;this['_shapeTextEditingService'][_0xf1a67(0xc7)](null);}));})),this[_0x2bfde6(0x11b)](this[_0x2bfde6(0xcc)][_0x2bfde6(0xd6)][_0x2bfde6(0x28f)](_0x74f032=>{const _0x3927e5=_0x2bfde6;let _0x265c8b=this[_0x3927e5(0x1a8)]['getEditing']();_0x265c8b&&_0x74f032['some'](_0x2292ba=>_0x2292ba[_0x3927e5(0x1a9)]===_0x265c8b[_0x3927e5(0xfc)])&&this[_0x3927e5(0x1a8)][_0x3927e5(0xc7)](null);}));}[_0x43dbb9(0x2c3)](){const _0x534fc6=_0x43dbb9;this['disposeWithMe'](this[_0x534fc6(0x1a8)][_0x534fc6(0x17b)][_0x534fc6(0x28f)](_0x46fd54=>{const _0x170417=_0x534fc6;let {scene:_0x3c4455}=this[_0x170417(0xfb)];if(this[_0x170417(0x263)]){let _0x5dec60=_0x3c4455[_0x170417(0x1de)](this['_lastEditingShapeKey']);_0x5dec60&&_0x5dec60[_0x170417(0xc7)](!0x1);}if(_0x46fd54){let _0x55828a=!!_0x46fd54['visible'],_0x1e7ced=_0x3c4455[_0x170417(0x1de)](_0x46fd54[_0x170417(0x16b)]);_0x1e7ced&&(_0x1e7ced[_0x170417(0xc7)](_0x55828a),this['_lastEditingShapeKey']=_0x46fd54[_0x170417(0x16b)]),this[_0x170417(0x216)]['setContextValue'](_0x4d1a78,_0x55828a);}else this[_0x170417(0x263)]=null,this[_0x170417(0x216)][_0x170417(0x1c9)](_0x4d1a78,!0x1);}));}};lr=Z([X(0x1,_0x450bf3(ir)),X(0x2,_0x324617),X(0x3,_0x21d773),X(0x4,_0x450bf3(_0x26a217))],lr);let ur=class extends _0xd3a510{constructor(_0x1fff68,_0x1d84f6,_0x4c6e85,_0x21bb3e){super(_0x1fff68,_0x1d84f6,_0x4c6e85,_0x21bb3e,{'componentKey':Mn,'editorUnitId':jn});}};ur=Z([X(0x1,_0x450bf3(_0x1263d4)),X(0x2,_0x450bf3(_0x86b0a2)),X(0x3,_0x450bf3(_0x7b1fa8))],ur);let dr=class extends _0x4760b3{constructor(_0x4e6e39,_0xf7cd6b,_0x9de519,_0x1b7ab4,_0x4bbaa2,_0x426fcb){const _0xd77912=_0x43dbb9;super(),this[_0xd77912(0x285)]=_0x4e6e39,this[_0xd77912(0x87)]=_0xf7cd6b,this['_drawingManagerService']=_0x9de519,this['_currentUniverService']=_0x1b7ab4,this['_drawingRenderService']=_0x4bbaa2,this[_0xd77912(0x2d9)]=_0x426fcb,Y(this,_0xd77912(0x107),new Set()),this[_0xd77912(0xc2)]();}['_initialize'](){const _0x422ce0=_0x43dbb9;this[_0x422ce0(0x114)](),this[_0x422ce0(0x11d)](),this[_0x422ce0(0xbe)]();}[_0x43dbb9(0x114)](){const _0x42ed87=_0x43dbb9;this['disposeWithMe'](this[_0x42ed87(0xcc)][_0x42ed87(0x17e)][_0x42ed87(0x28f)](_0x1f2977=>{const _0x16af51=_0x42ed87;this[_0x16af51(0x2af)](_0x1f2977);}));}[_0x43dbb9(0x11d)](){const _0x43aa82=_0x43dbb9;this['disposeWithMe'](this[_0x43aa82(0x285)][_0x43aa82(0x1f7)](_0x1319f9=>{const _0x115f82=_0x43aa82;if(_0x1319f9['id']===_0x19b81c['id']){let {unitId:_0x18d03a,subUnitId:_0x2d2e92,shapeId:_0x23920b}=_0x1319f9[_0x115f82(0x118)],_0xefc99a=this[_0x115f82(0x122)](_0x18d03a),_0x16b572=_0x7f2912({'unitId':_0x18d03a,'subUnitId':_0x2d2e92,'drawingId':_0x23920b}),_0x5c9369=_0xefc99a==null?void 0x0:_0xefc99a['scene'][_0x115f82(0x1de)](_0x16b572);_0x5c9369&&(this[_0x115f82(0x2d9)]['refreshShapeFillImage'](_0x5c9369),this[_0x115f82(0x2d9)][_0x115f82(0xac)](_0x5c9369,{'unitId':_0x18d03a,'subUnitId':_0x2d2e92,'shapeId':_0x23920b}),_0x5c9369[_0x115f82(0x15d)](!0x0));return;}if(_0x1319f9['id']===_0x5addb7['id']){var _0x5cc455;let {unitId:_0x131187,subUnitId:_0x13fd38,shapeId:_0xbf195e}=_0x1319f9[_0x115f82(0x118)],_0xdd4784=this[_0x115f82(0x122)](_0x131187);if(_0xdd4784==null)return;let {scene:_0x11eebd}=_0xdd4784,_0x582c10=_0x7f2912({'unitId':_0x131187,'subUnitId':_0x13fd38,'drawingId':_0xbf195e}),_0x52eda1=_0x11eebd[_0x115f82(0x1de)](_0x582c10);if(!((_0x5cc455=this[_0x115f82(0x87)][_0x115f82(0x19c)](_0x131187))!=null&&_0x5cc455[_0x115f82(0x2ea)](_0x392ff0)[_0x115f82(0x188)](_0x13fd38)))return!0x1;if(_0x52eda1)return;this[_0x115f82(0x2af)]([{'unitId':_0x131187,'subUnitId':_0x13fd38,'drawingId':_0xbf195e}]);}}));}['_shapeUpdateListener'](){const _0x219ebd=_0x43dbb9;this[_0x219ebd(0x11b)](this[_0x219ebd(0xcc)][_0x219ebd(0x105)]['subscribe'](_0x4518c9=>{const _0x2883f0=_0x219ebd;_0x4518c9[_0x2883f0(0x200)](_0x16d760=>{const _0x332fea=_0x2883f0;let {unitId:_0x5686fa,subUnitId:_0x10a6fc,drawingId:_0x3b3c2c}=_0x16d760,_0xea9eff=this[_0x332fea(0xcc)][_0x332fea(0x171)](_0x16d760);if(_0xea9eff==null)return;let {transform:_0x14e06c,drawingType:_0x19b546,srcRect:_0x1ade6a,prstGeom:_0x2e5400}=_0xea9eff;if(_0x19b546!==_0x5d03f6[_0x332fea(0x23a)])return;let _0x3afcb6=this[_0x332fea(0x122)](_0x5686fa);if(_0x3afcb6==null)return;let {scene:_0x2412e8,transformer:_0x3909dd}=_0x3afcb6;if(_0x14e06c==null)return!0x0;let _0x50cd98=_0x7f2912({'unitId':_0x5686fa,'subUnitId':_0x10a6fc,'drawingId':_0x3b3c2c}),_0x25d604=_0x2412e8[_0x332fea(0x1de)](_0x50cd98);if(_0x25d604==null)return!0x0;_0x25d604[_0x332fea(0x20f)](_0x1ade6a),_0x25d604[_0x332fea(0x234)](_0x2e5400);});}));}[_0x43dbb9(0x2af)](_0x57ffc3){const _0x30f431=_0x43dbb9;for(let _0x3f2109 of _0x57ffc3){var _0x2390d3;let {unitId:_0x2cd993,subUnitId:_0x125d00,drawingId:_0x4391f4}=_0x3f2109,_0x163a93=this['_getSceneAndTransformerByDrawingSearch'](_0x2cd993),_0x4fed68=(_0x2390d3=_0x4a469b(this[_0x30f431(0x112)],_0x2cd993))==null?void 0x0:_0x2390d3[_0x30f431(0x212)];if(_0x163a93==null||_0x4fed68!==_0x125d00)return;let _0x547f79=_0x7f2912({'unitId':_0x2cd993,'subUnitId':_0x125d00,'drawingId':_0x4391f4});if(this[_0x30f431(0x107)]['has'](_0x547f79)||_0x163a93[_0x30f431(0x128)][_0x30f431(0x1de)](_0x547f79)!=null)return;let _0x2abd0c=this[_0x30f431(0xcc)]['getDrawingByParam'](_0x3f2109);if(_0x2abd0c==null||_0x2abd0c[_0x30f431(0x2cb)]!==_0x5d03f6[_0x30f431(0x23a)])return;if(_0x1f7f23((_0x2abd0c[_0x30f431(0x1f8)]||{})['shapeType'])){let _0x6c97cb=_0x2abd0c['transform'];_0x6c97cb&&(_0x2abd0c[_0x30f431(0x10c)]={..._0x6c97cb,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x30f431(0x10b)](_0x547f79);try{this[_0x30f431(0x2d9)][_0x30f431(0x1e7)](_0x2abd0c,_0x163a93['scene']);}finally{this[_0x30f431(0x107)]['delete'](_0x547f79);}queueMicrotask(()=>{const _0x3c0c93=_0x30f431;if(this['_disposed'])return;let _0x229d2e=_0x7f2912(_0x3f2109);if(!_0x163a93[_0x3c0c93(0x128)]['getObjectIncludeInGroup'](_0x229d2e))return;let _0x72fd8b=this[_0x3c0c93(0xcc)][_0x3c0c93(0x171)](_0x3f2109);_0x72fd8b&&this[_0x3c0c93(0xcc)]['refreshTransform']([_0x72fd8b]);});}}[_0x43dbb9(0x122)](_0x2a462c){const _0x13f766=_0x43dbb9;if(_0x2a462c==null)return;let _0x48d00d=this[_0x13f766(0x87)][_0x13f766(0x19c)](_0x2a462c),_0x3ed34c=_0x48d00d==null?void 0x0:_0x48d00d[_0x13f766(0x128)];return _0x3ed34c==null?null:{'scene':_0x3ed34c,'transformer':_0x3ed34c[_0x13f766(0x84)]()};}};dr=Z([X(0x0,_0x4d9cac),X(0x1,_0x263af6),X(0x2,_0x324617),X(0x3,_0x7113c7),X(0x4,_0x450bf3(_0x4d43e7)),X(0x5,_0x450bf3(Q))],dr);const fr={'normal':{'fill':_0x2bc8ec[_0x43dbb9(0x2ac)],'stroke':_0x2bc8ec['cxnPointStroke'],'strokeWidth':_0x2bc8ec[_0x43dbb9(0x19b)]},'highlighted':{'fill':'#4285f4','stroke':_0x43dbb9(0x126),'strokeWidth':0x2}};var pr=class extends _0x300c3f{constructor(_0x44422d,_0x201cfc){const _0x494407=_0x43dbb9;super(_0x44422d,_0x201cfc),Y(this,_0x494407(0x22e),''),Y(this,'_cxnIndex',-0x1),Y(this,_0x494407(0x238),''),Y(this,_0x494407(0x250),''),Y(this,_0x494407(0x2b3),!0x1),_0x201cfc&&this[_0x494407(0x152)](_0x201cfc);}[_0x43dbb9(0x18f)](){const _0x5a1892=_0x43dbb9;return{'unitId':this[_0x5a1892(0x238)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x5a1892(0x22e)],'cxnIndex':this[_0x5a1892(0x1d7)]};}[_0x43dbb9(0x14b)](_0x1edf57){const _0x20b792=_0x43dbb9;this[_0x20b792(0x2b3)]!==_0x1edf57&&(this[_0x20b792(0x2b3)]=_0x1edf57,this[_0x20b792(0x15d)](!0x0));}[_0x43dbb9(0x9d)](){const _0x123f13=_0x43dbb9;return this[_0x123f13(0x2b3)];}[_0x43dbb9(0x152)](_0x5abfe4){const _0x2e2ff9=_0x43dbb9;var _0x3b5383,_0x51b7e6;_0x5abfe4[_0x2e2ff9(0x215)]!==void 0x0&&(this['_targetShapeId']=_0x5abfe4[_0x2e2ff9(0x215)]),_0x5abfe4[_0x2e2ff9(0x162)]!==void 0x0&&(this[_0x2e2ff9(0x1d7)]=_0x5abfe4[_0x2e2ff9(0x162)]),_0x5abfe4['unitId']!==void 0x0&&(this[_0x2e2ff9(0x238)]=_0x5abfe4['unitId']),_0x5abfe4[_0x2e2ff9(0x212)]!==void 0x0&&(this['_subUnitId']=_0x5abfe4[_0x2e2ff9(0x212)]),_0x5abfe4[_0x2e2ff9(0x9d)]!==void 0x0&&(this['_isHighlighted']=_0x5abfe4[_0x2e2ff9(0x9d)]),this[_0x2e2ff9(0x1c7)]({'width':(_0x3b5383=_0x5abfe4[_0x2e2ff9(0xf7)])==null?_0x2bc8ec['cxnPointRadius']*0x2:_0x3b5383,'height':(_0x51b7e6=_0x5abfe4[_0x2e2ff9(0x1dc)])==null?_0x2bc8ec[_0x2e2ff9(0xa5)]*0x2:_0x51b7e6});}[_0x43dbb9(0xd0)](_0x1a29d5){const _0x85164e=_0x43dbb9;let _0x566bd2=this[_0x85164e(0x2b3)]?fr[_0x85164e(0x139)]:fr[_0x85164e(0x28a)];_0x536c54['drawWith'](_0x1a29d5,{'radius':_0x2bc8ec[_0x85164e(0xa5)],'fill':_0x566bd2['fill'],'stroke':_0x566bd2['stroke'],'strokeWidth':_0x566bd2['strokeWidth'],'evented':!0x0});}};let mr=class extends _0x4760b3{constructor(_0x2799db,_0x236471,_0x22648d,_0x5c36fd){const _0x100416=_0x43dbb9;super(),this[_0x100416(0xfb)]=_0x2799db,this[_0x100416(0x87)]=_0x236471,this[_0x100416(0xcc)]=_0x22648d,this[_0x100416(0x1ff)]=_0x5c36fd,Y(this,_0x100416(0x19a),[]),Y(this,_0x100416(0x16f),null),Y(this,_0x100416(0xf8),-0x1),Y(this,_0x100416(0x113),null),Y(this,_0x100416(0x238),''),Y(this,_0x100416(0x250),''),Y(this,_0x100416(0x24f),null);}['startConnectionDetection'](_0x46b321,_0x44f986,_0x399bc4,_0x1caa7e){const _0x50083d=_0x43dbb9;this[_0x50083d(0x113)]=_0x46b321,this[_0x50083d(0x238)]=_0x44f986,this[_0x50083d(0x250)]=_0x399bc4,this['_draggingConnectorId']=_0x1caa7e;}['updateConnectionDetection'](_0x5c5346){const _0x1e7c0a=_0x43dbb9;if(!this['_currentScene'])return null;let _0x5e130b=this[_0x1e7c0a(0xbb)](_0x5c5346);return _0x5e130b?(this[_0x1e7c0a(0x16f)]!==_0x5e130b[_0x1e7c0a(0xfc)]&&(this[_0x1e7c0a(0x14a)](),this['_showConnectionSites'](_0x5e130b[_0x1e7c0a(0xfc)],_0x5e130b[_0x1e7c0a(0xc0)]),this[_0x1e7c0a(0x16f)]=_0x5e130b[_0x1e7c0a(0xfc)]),this[_0x1e7c0a(0xa1)](_0x5c5346)):(this[_0x1e7c0a(0x16f)]!==null&&(this[_0x1e7c0a(0x14a)](),this[_0x1e7c0a(0x16f)]=null),null);}['endConnectionDetection'](){const _0x1354df=_0x43dbb9;this[_0x1354df(0x14a)](),this[_0x1354df(0x113)]=null,this[_0x1354df(0x16f)]=null,this[_0x1354df(0xf8)]=-0x1,this['_draggingConnectorId']=null;}['getConnectionRelation'](){const _0x3c79db=_0x43dbb9;return this[_0x3c79db(0x16f)]===null||this[_0x3c79db(0xf8)]<0x0?null:{'shapeId':this[_0x3c79db(0x16f)],'cxnIndex':this[_0x3c79db(0xf8)]};}[_0x43dbb9(0xbb)](_0x1c2e53){const _0x2af299=_0x43dbb9;let _0x4fe051=this[_0x2af299(0xcc)]['getDrawingData'](this[_0x2af299(0x238)],this['_subUnitId']);for(let _0x19158c of Object[_0x2af299(0x293)](_0x4fe051)){if(_0x19158c===this[_0x2af299(0x24f)]||_0x4fe051[_0x19158c][_0x2af299(0x2cb)]!==_0x5d03f6[_0x2af299(0x23a)])continue;let _0x52d226=this[_0x2af299(0x1ff)][_0x2af299(0x251)](this['_unitId'],this[_0x2af299(0x250)],_0x19158c);if(!_0x52d226||_0x1f7f23(_0x52d226[_0x2af299(0x2ad)]())||_0x52d226[_0x2af299(0x201)]()[_0x2af299(0x15f)]===0x0||!this[_0x2af299(0x113)])continue;let _0xafb65d=_0x7f2912({'unitId':this[_0x2af299(0x238)],'subUnitId':this[_0x2af299(0x250)],'drawingId':_0x19158c}),_0x3f13c7=this[_0x2af299(0x113)][_0x2af299(0x1de)](_0xafb65d);if(!_0x3f13c7)continue;let {left:_0x45cc75,top:_0x31cdec,width:_0x4b24da,height:_0x24ebf5}=_0x3f13c7[_0x2af299(0x272)](),_0x2a7fe0=_0x45cc75+_0x4b24da/0x2,_0x5b0797=_0x31cdec+_0x24ebf5/0x2,_0x7788b4=_0x3f13c7[_0x2af299(0x10c)][_0x2af299(0x1b9)](),_0x51e80c=new _0x112a4b([_0x7788b4[0x0],_0x7788b4[0x1],_0x7788b4[0x2],_0x7788b4[0x3],_0x2a7fe0,_0x5b0797]),_0x5d8d5a=_0x3f13c7[_0x2af299(0x1d9)](),_0x251a80=(_0x3f13c7[_0x2af299(0xa8)]&&(_0x5d8d5a==null?void 0x0:_0x5d8d5a[_0x2af299(0x19d)])===_0x842655[_0x2af299(0xf6)]?_0x5d8d5a['ancestorTransform'][_0x2af299(0xcf)](_0x51e80c):_0x51e80c)[_0x2af299(0x23b)]()[_0x2af299(0x22c)](_0x1c2e53),_0x4b1526=_0x4b24da/0x2,_0x4dea20=_0x24ebf5/0x2;if(_0x251a80['x']>=-_0x4b1526-0x5&&_0x251a80['x']<=_0x4b1526+0x5&&_0x251a80['y']>=-_0x4dea20-0x5&&_0x251a80['y']<=_0x4dea20+0x5)return{'shapeId':_0x19158c,'shapeModel':_0x52d226};}return null;}[_0x43dbb9(0x158)](_0x524814,_0x436922){const _0x12115c=_0x43dbb9;if(!this[_0x12115c(0x113)])return;let _0x73096b=_0x7f2912({'unitId':this[_0x12115c(0x238)],'subUnitId':this['_subUnitId'],'drawingId':_0x524814}),_0x53afdd=this[_0x12115c(0x113)][_0x12115c(0x1de)](_0x73096b);if(!_0x53afdd)return;let {left:_0x3c8c9e,top:_0x4f51a0,width:_0x13aa22,height:_0x4dcb40}=_0x53afdd['getRealBound'](),_0x624c3d=_0x3c8c9e+_0x13aa22/0x2,_0x31480c=_0x4f51a0+_0x4dcb40/0x2,_0x492a61=_0x53afdd[_0x12115c(0x10c)][_0x12115c(0x1b9)](),_0x47bafa=new _0x112a4b([_0x492a61[0x0],_0x492a61[0x1],_0x492a61[0x2],_0x492a61[0x3],_0x624c3d,_0x31480c]),_0x2eeabe=_0x53afdd[_0x12115c(0x1d9)](),_0x59dd43=_0x53afdd[_0x12115c(0xa8)]&&(_0x2eeabe==null?void 0x0:_0x2eeabe[_0x12115c(0x19d)])===_0x842655[_0x12115c(0xf6)]?_0x2eeabe[_0x12115c(0x8b)][_0x12115c(0xcf)](_0x47bafa):_0x47bafa;_0x436922[_0x12115c(0x104)]({'width':_0x13aa22,'height':_0x4dcb40});let _0x29ff66=_0x436922[_0x12115c(0x201)]();for(let _0x3be0ca of _0x29ff66){let _0x81174a=_0x3be0ca['x']-_0x13aa22/0x2,_0x3f2367=_0x3be0ca['y']-_0x4dcb40/0x2,_0x54e7a5=_0x59dd43[_0x12115c(0x22c)]({'x':_0x81174a,'y':_0x3f2367}),_0xf3020d=_0x54e7a5['x'],_0x33f3da=_0x54e7a5['y'],_0x7abb02=new pr(_0x12115c(0x243)+_0x524814+'-'+_0x3be0ca[_0x12115c(0x2b9)],{'left':_0xf3020d-_0x2bc8ec[_0x12115c(0xa5)],'top':_0x33f3da-_0x2bc8ec[_0x12115c(0xa5)],'targetShapeId':_0x524814,'cxnIndex':_0x3be0ca['index'],'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'width':_0x2bc8ec[_0x12115c(0xa5)]*0x2,'height':_0x2bc8ec[_0x12115c(0xa5)]*0x2,'zIndex':_0x11332b+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x12115c(0x241)](_0x7abb02),this['_currentScene'][_0x12115c(0xe9)](_0x7abb02,_0x11332b+0x2);}}[_0x43dbb9(0xa1)](_0x8987eb){const _0x32d4be=_0x43dbb9;let _0x3fccce=null,_0x250448=0x1/0x0,_0x1130b8=null;for(let _0x45db1b of this[_0x32d4be(0x19a)]){let _0x118da8=_0x45db1b[_0x32d4be(0x11f)]+_0x2bc8ec['cxnPointRadius'],_0x442b66=_0x45db1b['top']+_0x2bc8ec['cxnPointRadius'],_0x22a14e=_0x8987eb['x']-_0x118da8,_0x1fab3f=_0x8987eb['y']-_0x442b66,_0x5b65f5=Math['sqrt'](_0x22a14e*_0x22a14e+_0x1fab3f*_0x1fab3f);_0x5b65f5<_0x250448&&(_0x250448=_0x5b65f5,_0x3fccce=_0x45db1b,_0x1130b8={'x':_0x118da8,'y':_0x442b66});}let _0x2bd6ed=_0x250448<=0xa&&_0x3fccce?_0x3fccce[_0x32d4be(0x18f)]()[_0x32d4be(0x162)]:-0x1;if(_0x2bd6ed!==this[_0x32d4be(0xf8)]){for(let _0x2b104e of this[_0x32d4be(0x19a)]){let _0x49c445=_0x2b104e['getConnectionInfo']();_0x2b104e[_0x32d4be(0x14b)](_0x49c445[_0x32d4be(0x162)]===_0x2bd6ed);}this[_0x32d4be(0xf8)]=_0x2bd6ed;}if(_0x250448<=0xa&&_0x3fccce&&_0x1130b8){let _0x583290=_0x3fccce['getConnectionInfo'](),_0x413cb9=this[_0x32d4be(0x29b)](_0x583290[_0x32d4be(0xfc)],_0x583290[_0x32d4be(0x162)]);return{'shapeId':_0x583290[_0x32d4be(0xfc)],'cxnIndex':_0x583290[_0x32d4be(0x162)],'unitId':_0x583290[_0x32d4be(0x25d)],'subUnitId':_0x583290[_0x32d4be(0x212)],'worldPoint':_0x1130b8,'angle':_0x413cb9};}return null;}['_getConnectionSiteAngle'](_0x77d2aa,_0x4b6a70){const _0x1b772c=_0x43dbb9;let _0x50393c=this[_0x1b772c(0x1ff)][_0x1b772c(0x251)](this['_unitId'],this[_0x1b772c(0x250)],_0x77d2aa);if(!_0x50393c)return 0x0;let _0x294f3e=this[_0x1b772c(0xcc)][_0x1b772c(0x171)]({'unitId':this[_0x1b772c(0x238)],'subUnitId':this[_0x1b772c(0x250)],'drawingId':_0x77d2aa});if(!(_0x294f3e!=null&&_0x294f3e[_0x1b772c(0x10c)]))return 0x0;let {width:_0x12ce91=0x0,height:_0x325196=0x0,flipX:_0x4ed780=!0x1,flipY:_0x55324f=!0x1}=_0x294f3e['transform'];_0x50393c['updateContext']({'width':_0x12ce91,'height':_0x325196});let _0x3f94c4=_0x50393c[_0x1b772c(0x201)]()[_0x1b772c(0x218)](_0x28be57=>_0x28be57[_0x1b772c(0x2b9)]===_0x4b6a70);if(!_0x3f94c4)return 0x0;let _0x5efa5b=_0x3f94c4[_0x1b772c(0x26c)]/0xea60;return _0x4ed780&&(_0x5efa5b=0xb4-_0x5efa5b),_0x55324f&&(_0x5efa5b=-_0x5efa5b),_0x5efa5b=(_0x5efa5b%0x168+0x168)%0x168,_0x5efa5b;}[_0x43dbb9(0x14a)](){const _0x1bd162=_0x43dbb9;for(let _0x1c4009 of this[_0x1bd162(0x19a)])_0x1c4009[_0x1bd162(0x2dd)]();this[_0x1bd162(0x19a)]=[],this[_0x1bd162(0xf8)]=-0x1;}[_0x43dbb9(0x2dd)](){const _0x12cc18=_0x43dbb9;this[_0x12cc18(0x14a)](),super[_0x12cc18(0x2dd)]();}};mr=Z([X(0x1,_0x450bf3(_0x263af6)),X(0x2,_0x450bf3(_0x324617)),X(0x3,_0x450bf3(_0x26a217))],mr);let hr=class extends _0x4760b3{constructor(_0x33b1e7,_0x12b974,_0x43212c,_0x2c86b1,_0x4e1897){const _0x175a72=_0x43dbb9;super(),this[_0x175a72(0x209)]=_0x33b1e7,this[_0x175a72(0xe4)]=_0x12b974,this[_0x175a72(0x1e4)]=_0x43212c,this['_shapeService']=_0x2c86b1,this[_0x175a72(0x1e2)]=_0x4e1897,Y(this,'_copyInfo',void 0x0),this[_0x175a72(0x13e)](),this[_0x175a72(0x1d2)]();}get[_0x43dbb9(0x2ba)](){const _0x55536a=_0x43dbb9;return this[_0x55536a(0x1e4)][_0x55536a(0x27f)]();}[_0x43dbb9(0x1d2)](){this['_groupCopyPasteController']['registerFeaturePasteHook'](({fromUnitId:_0x2e47bf,fromSubUnitId:_0x50e800,toUnitId:_0x3c6749,toSubUnitId:_0x124be4,idMap:_0x28da81})=>{const _0x789b09=_0x449a;let _0x2c5a43=[],_0x356624=[];for(let [_0x23da29,_0x229113]of _0x28da81[_0x789b09(0xb5)]()){let _0x4cc6d0=this[_0x789b09(0x1ba)][_0x789b09(0x251)](_0x2e47bf,_0x50e800,_0x23da29);if(!_0x4cc6d0)continue;let _0x35d20f=_0x4cc6d0[_0x789b09(0x2ad)](),_0x14c4e4=JSON[_0x789b09(0x154)](JSON[_0x789b09(0x2d1)](_0x4cc6d0[_0x789b09(0x282)]()));if(_0x14c4e4[_0x789b09(0x270)]){var _0x64648c,_0x76cc93;let _0x5a9bad=(_0x64648c=_0x14c4e4['relation'][_0x789b09(0x23c)])==null?void 0x0:_0x64648c['shapeId'],_0x5279b1=(_0x76cc93=_0x14c4e4[_0x789b09(0x270)]['to'])==null?void 0x0:_0x76cc93[_0x789b09(0xfc)],_0x315e5e=_0x5a9bad?_0x28da81['has'](_0x5a9bad):!0x0,_0x5b04ad=_0x5279b1?_0x28da81[_0x789b09(0x2b0)](_0x5279b1):!0x0;_0x315e5e&&_0x5a9bad&&_0x14c4e4[_0x789b09(0x270)][_0x789b09(0x23c)]?_0x14c4e4[_0x789b09(0x270)][_0x789b09(0x23c)]={..._0x14c4e4['relation']['from'],'shapeId':_0x28da81['get'](_0x5a9bad)}:_0x14c4e4[_0x789b09(0x270)][_0x789b09(0x23c)]=void 0x0,_0x5b04ad&&_0x5279b1&&_0x14c4e4[_0x789b09(0x270)]['to']?_0x14c4e4[_0x789b09(0x270)]['to']={..._0x14c4e4['relation']['to'],'shapeId':_0x28da81['get'](_0x5279b1)}:_0x14c4e4[_0x789b09(0x270)]['to']=void 0x0;}_0x2c5a43[_0x789b09(0x241)]({'id':_0x5addb7['id'],'params':{'unitId':_0x3c6749,'subUnitId':_0x124be4,'shapeId':_0x229113,'shapeType':_0x35d20f,'shapeData':_0x14c4e4}}),_0x356624['push']({'id':_0x35cadb['id'],'params':{'unitId':_0x3c6749,'subUnitId':_0x124be4,'shapeId':_0x229113}});}return{'redos':_0x2c5a43,'undos':_0x356624};});}[_0x43dbb9(0x13e)](){const _0x100c04=_0x43dbb9;this[_0x100c04(0x11b)](this[_0x100c04(0xe4)][_0x100c04(0x1c0)]({'id':_0x100c04(0x149),'onBeforeCopy':(_0x38f690,_0x2242ab,_0x3307d9,_0x276aa0)=>{const _0x5a978a=_0x100c04;this[_0x5a978a(0x189)]=null;let _0x2e4ae5=this[_0x5a978a(0x2ba)];if(_0x2e4ae5[_0x5a978a(0x15f)]){let _0x2183d9=_0x2e4ae5[_0x5a978a(0xb6)](_0x30e0cd=>_0x30e0cd[_0x5a978a(0x2cb)]===_0x5d03f6[_0x5a978a(0x23a)]);if(_0x2183d9[_0x5a978a(0x15f)]===0x0)return;this[_0x5a978a(0x189)]={'unitId':_0x38f690,'subUnitId':_0x2242ab,'copyType':_0x276aa0,'drawings':_0x2183d9};}else this[_0x5a978a(0x12c)](_0x38f690,_0x2242ab,_0x3307d9,_0x276aa0);},'onPasteCells':(_0xf735ca,_0x277317,_0xc17230,_0x4517a1)=>{const _0x482fd5=_0x100c04;if(!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x42d083}=_0x4517a1;return _0x42d083===_0x32e6c9[_0x482fd5(0x27a)]?this[_0x482fd5(0x2ab)](_0x277317,this[_0x482fd5(0x189)][_0x482fd5(0x1fc)]===_0x202be0[_0x482fd5(0xd2)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x4ce6ff=>this[_0x100c04(0x189)]?this[_0x100c04(0x2ab)](_0x4ce6ff,this['_copyInfo'][_0x100c04(0x1fc)]===_0x202be0[_0x100c04(0xd2)]):{'redos':[],'undos':[]}}));}[_0x43dbb9(0x12c)](_0x421ce1,_0x165958,_0x9ea7d5,_0x1c713e){const _0x4307df=_0x43dbb9;let _0x11d473=this[_0x4307df(0x209)][_0x4307df(0x188)](_0x421ce1,_0x165958);if(!_0x11d473)return;let _0x44bbbc=_0x403c80(_0x11d473,_0x9ea7d5);if(!_0x44bbbc)return;let {startX:_0x54e704,endX:_0x58f0a8,startY:_0x32149e,endY:_0x1796fe}=_0x44bbbc,_0x56a0e0=this[_0x4307df(0x1e4)][_0x4307df(0x295)](_0x421ce1,_0x165958),_0xa53a75=this[_0x4307df(0x2ba)][_0x4307df(0x21f)]();for(let [_0x5f0fcd,_0x2a6592]of Object[_0x4307df(0xb5)](_0x56a0e0)){if(_0x2a6592[_0x4307df(0x2cb)]!==_0x5d03f6[_0x4307df(0x23a)])continue;let {transform:_0x1fa163}=_0x2a6592;if(!_0x1fa163)continue;let {left:_0x2e6c34=0x0,top:_0x48e3b8=0x0,width:_0x315367=0x0,height:_0x34c20f=0x0}=_0x1fa163;_0x54e704<=_0x2e6c34&&_0x58f0a8>=_0x2e6c34+_0x315367&&_0x32149e<=_0x48e3b8&&_0x1796fe>=_0x48e3b8+_0x34c20f&&_0xa53a75[_0x4307df(0x241)](_0x2a6592);}_0xa53a75[_0x4307df(0x15f)]>0x0&&(this[_0x4307df(0x189)]={'unitId':_0x421ce1,'subUnitId':_0x165958,'copyType':_0x1c713e,'copyRange':_0x9ea7d5,'drawings':_0xa53a75});}['_generatePasteMutations'](_0x3f2541,_0xbe21ed){const _0x2f3fec=_0x43dbb9;let {unitId:_0x15517c,subUnitId:_0x3bef1f,range:_0x2e39d0}=_0x3f2541,_0x4c4fa9=this[_0x2f3fec(0x209)][_0x2f3fec(0x188)](_0x15517c,_0x3bef1f);if(!_0x4c4fa9)return{'redos':[],'undos':[]};let _0x518814=_0x25d2bc(_0x2e39d0),{unitId:_0x51b27d,subUnitId:_0x698b76,copyRange:_0x35eae8,drawings:_0x5b1d25}=this['_copyInfo'],_0x116274=this[_0x2f3fec(0x209)][_0x2f3fec(0x188)](_0x51b27d,_0x698b76);if(!_0x116274)return{'redos':[],'undos':[]};let _0x33ce89;if(!_0x35eae8){let _0x153669=0x1/0x0,_0x334bcd=0x1/0x0;for(let _0x330753 of _0x5b1d25){var _0x21ed7a;let {left:_0x593bf5=0x0,top:_0x1d664a=0x0}=(_0x21ed7a=_0x330753['transform'])==null?{}:_0x21ed7a;_0x593bf5<_0x153669&&(_0x153669=_0x593bf5),_0x1d664a<_0x334bcd&&(_0x334bcd=_0x1d664a);}_0x153669!==0x1/0x0&&_0x334bcd!==0x1/0x0&&(_0x33ce89={'left':_0x153669,'top':_0x334bcd});}let _0x32fa2d=new Map();if(!_0xbe21ed){for(let _0x426e5e of _0x5b1d25)_0x32fa2d[_0x2f3fec(0xd9)](_0x426e5e[_0x2f3fec(0x1a9)],_0x2bfd17());}let _0x1cac56=[],_0x5054a8=[];for(let _0x53cb9b of _0x5b1d25){let {drawingId:_0xdceec2,transform:_0x7b08fc,sheetTransform:_0x2fe2ad}=_0x53cb9b;if(!_0x7b08fc||!_0x2fe2ad)continue;let _0xb54ffd=this[_0x2f3fec(0x2c1)]({'transform':_0x7b08fc,'sheetTransform':_0x2fe2ad},{'skeleton':_0x116274,'range':_0x35eae8},{'skeleton':_0x4c4fa9,'range':_0x518814},_0x33ce89);if(_0xbe21ed){let {redos:_0x1ab04f,undos:_0x156576}=this['_generateCutPasteMutations']({'fromUnitId':_0x51b27d,'fromSubUnitId':_0x698b76,'toUnitId':_0x15517c,'toSubUnitId':_0x3bef1f,'drawing':_0x53cb9b,'newTransforms':_0xb54ffd});_0x1cac56[_0x2f3fec(0x241)](..._0x1ab04f),_0x5054a8[_0x2f3fec(0x241)](..._0x156576);continue;}let {redos:_0x14b42c,undos:_0x1b6199}=this[_0x2f3fec(0x164)]({'toUnitId':_0x15517c,'toSubUnitId':_0x3bef1f,'drawing':_0x53cb9b,'newTransforms':_0xb54ffd,'newDrawingId':_0x32fa2d[_0x2f3fec(0x1bd)](_0xdceec2),'idMap':_0x32fa2d});_0x1cac56['push'](..._0x14b42c),_0x5054a8[_0x2f3fec(0x241)](..._0x1b6199);}return{'redos':_0x1cac56,'undos':_0x5054a8};}[_0x43dbb9(0xe0)](_0xe47af6){const _0x5d9bc0=_0x43dbb9;let {fromUnitId:_0x586faf,fromSubUnitId:_0x4c16f1,toUnitId:_0x856385,toSubUnitId:_0x29a909,drawing:_0x454535,newTransforms:_0x33cbe5}=_0xe47af6,_0x33dd5f={..._0x454535,'unitId':_0x856385,'subUnitId':_0x29a909,'transform':_0x33cbe5[_0x5d9bc0(0x10c)],'sheetTransform':_0x33cbe5[_0x5d9bc0(0x195)]};if(_0x856385===_0x586faf&&_0x29a909===_0x4c16f1){let {redo:_0x419f49,undo:_0x3c2099,objects:_0x30c683}=this[_0x5d9bc0(0x1e4)][_0x5d9bc0(0x256)]([_0x33dd5f]);return{'redos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'type':_0x2640be[_0x5d9bc0(0x298)],'op':_0x419f49,'objects':_0x30c683}}],'undos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'type':_0x2640be['UPDATE'],'op':_0x3c2099,'objects':_0x30c683}}]};}else{let _0x4e2414=this['_sheetDrawingService'][_0x5d9bc0(0xb2)]([_0x454535]),_0x183ef6=this[_0x5d9bc0(0x1e4)][_0x5d9bc0(0x2e4)]([_0x33dd5f]),_0x32336f=this[_0x5d9bc0(0x1ba)][_0x5d9bc0(0x251)](_0x454535[_0x5d9bc0(0x25d)],_0x454535['subUnitId'],_0x454535['drawingId']);if(!_0x32336f)return{'redos':[],'undos':[]};let _0x2400f6=_0x32336f[_0x5d9bc0(0x2ad)](),_0x3d370d=JSON[_0x5d9bc0(0x154)](JSON[_0x5d9bc0(0x2d1)](_0x32336f[_0x5d9bc0(0x282)]()));return{'redos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x586faf,'subUnitId':_0x4c16f1,'type':_0x2640be[_0x5d9bc0(0xa9)],'op':_0x4e2414[_0x5d9bc0(0x1f2)],'objects':_0x4e2414[_0x5d9bc0(0x1d4)]}},{'id':_0x35cadb['id'],'params':{'unitId':_0x586faf,'subUnitId':_0x4c16f1,'shapeId':_0x454535[_0x5d9bc0(0x1a9)]}},{'id':_0x6d6f97['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'type':_0x2640be['INSERT'],'op':_0x183ef6[_0x5d9bc0(0x1f2)],'objects':_0x183ef6[_0x5d9bc0(0x1d4)]}},{'id':_0x5addb7['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'shapeId':_0x454535[_0x5d9bc0(0x1a9)],'shapeType':_0x2400f6,'shapeData':_0x3d370d}}],'undos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x586faf,'subUnitId':_0x4c16f1,'type':_0x2640be[_0x5d9bc0(0x27b)],'op':_0x4e2414[_0x5d9bc0(0x245)],'objects':_0x4e2414['objects']}},{'id':_0x5addb7['id'],'params':{'unitId':_0x586faf,'subUnitId':_0x4c16f1,'shapeId':_0x454535['drawingId'],'shapeType':_0x2400f6,'shapeData':_0x3d370d}},{'id':_0x6d6f97['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'type':_0x2640be['REMOVE'],'op':_0x183ef6[_0x5d9bc0(0x245)],'objects':_0x183ef6[_0x5d9bc0(0x1d4)]}},{'id':_0x35cadb['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'shapeId':_0x454535['drawingId']}}]};}}[_0x43dbb9(0x164)](_0x3c9c56){const _0x2191a7=_0x43dbb9;let {toUnitId:_0x4ea69f,toSubUnitId:_0x2b7b57,drawing:_0x34f738,newTransforms:_0x3f53eb,newDrawingId:_0x1d6826,idMap:_0x4e41ad}=_0x3c9c56,_0x3fe9e4={..._0x34f738,'unitId':_0x4ea69f,'subUnitId':_0x2b7b57,'drawingId':_0x1d6826,'transform':_0x3f53eb[_0x2191a7(0x10c)],'sheetTransform':_0x3f53eb[_0x2191a7(0x195)]},{redo:_0x55aa5a,undo:_0x2b8ea2,objects:_0x330836}=this[_0x2191a7(0x1e4)][_0x2191a7(0x2e4)]([_0x3fe9e4]),_0x339e7b=this[_0x2191a7(0x1ba)][_0x2191a7(0x251)](_0x34f738[_0x2191a7(0x25d)],_0x34f738['subUnitId'],_0x34f738['drawingId']);if(!_0x339e7b)return{'redos':[],'undos':[]};let _0x1e3228=_0x339e7b[_0x2191a7(0x2ad)](),_0x2d19bf=JSON[_0x2191a7(0x154)](JSON[_0x2191a7(0x2d1)](_0x339e7b[_0x2191a7(0x282)]()));if(_0x2d19bf['relation']){var _0xeb7bcb,_0x47ddbc;let _0x86c2e=(_0xeb7bcb=_0x2d19bf[_0x2191a7(0x270)][_0x2191a7(0x23c)])==null?void 0x0:_0xeb7bcb[_0x2191a7(0xfc)],_0x51b910=(_0x47ddbc=_0x2d19bf[_0x2191a7(0x270)]['to'])==null?void 0x0:_0x47ddbc[_0x2191a7(0xfc)],_0x1f5a86=_0x86c2e?_0x4e41ad[_0x2191a7(0x2b0)](_0x86c2e):!0x0,_0x34bdc0=_0x51b910?_0x4e41ad['has'](_0x51b910):!0x0;_0x1f5a86&&_0x86c2e&&_0x2d19bf[_0x2191a7(0x270)]['from']?_0x2d19bf[_0x2191a7(0x270)][_0x2191a7(0x23c)]={..._0x2d19bf[_0x2191a7(0x270)][_0x2191a7(0x23c)],'shapeId':_0x4e41ad[_0x2191a7(0x1bd)](_0x86c2e)}:_0x2d19bf[_0x2191a7(0x270)][_0x2191a7(0x23c)]=void 0x0,_0x34bdc0&&_0x51b910&&_0x2d19bf[_0x2191a7(0x270)]['to']?_0x2d19bf[_0x2191a7(0x270)]['to']={..._0x2d19bf[_0x2191a7(0x270)]['to'],'shapeId':_0x4e41ad[_0x2191a7(0x1bd)](_0x51b910)}:_0x2d19bf[_0x2191a7(0x270)]['to']=void 0x0;}return{'redos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x4ea69f,'subUnitId':_0x2b7b57,'type':_0x2640be['INSERT'],'op':_0x55aa5a,'objects':_0x330836}},{'id':_0x5addb7['id'],'params':{'unitId':_0x4ea69f,'subUnitId':_0x2b7b57,'shapeId':_0x1d6826,'shapeType':_0x1e3228,'shapeData':_0x2d19bf}}],'undos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x4ea69f,'subUnitId':_0x2b7b57,'type':_0x2640be['REMOVE'],'op':_0x2b8ea2,'objects':_0x330836}},{'id':_0x35cadb['id'],'params':{'unitId':_0x4ea69f,'subUnitId':_0x2b7b57,'shapeId':_0x1d6826}}]};}['_updateTransform'](_0x50ecfb,_0x2be6a1,_0x31c015,_0x4f82aa){const _0x3f0b90=_0x43dbb9;var _0x2c008b;let {range:_0x2c6ec6,skeleton:_0x254352}=_0x2be6a1,{range:_0x451faa,skeleton:_0x287cd5}=_0x31c015,{transform:_0x5d85dc,sheetTransform:_0x2d0e2f}=_0x50ecfb,_0x47ce3f={..._0x5d85dc};if(_0x2c6ec6){let _0x2ca90d=_0x403c80(_0x254352,_0x2c6ec6),_0x507672=_0x403c80(_0x287cd5,_0x451faa);if(_0x2ca90d&&_0x507672){var _0x30d9e2,_0x381965;let _0xa01cba=_0x507672['startX']-_0x2ca90d[_0x3f0b90(0x267)],_0x408285=_0x507672[_0x3f0b90(0x179)]-_0x2ca90d[_0x3f0b90(0x179)];_0x47ce3f[_0x3f0b90(0x11f)]=((_0x30d9e2=_0x47ce3f[_0x3f0b90(0x11f)])==null?0x0:_0x30d9e2)+_0xa01cba,_0x47ce3f[_0x3f0b90(0x16e)]=((_0x381965=_0x47ce3f[_0x3f0b90(0x16e)])==null?0x0:_0x381965)+_0x408285;}}else{let _0x446333=_0x403c80(_0x287cd5,_0x451faa);if(_0x4f82aa&&_0x446333){var _0x598a1b,_0x163d36;let _0x112585=((_0x598a1b=_0x47ce3f[_0x3f0b90(0x11f)])==null?0x0:_0x598a1b)-_0x4f82aa[_0x3f0b90(0x11f)],_0xd241f1=((_0x163d36=_0x47ce3f[_0x3f0b90(0x16e)])==null?0x0:_0x163d36)-_0x4f82aa[_0x3f0b90(0x16e)];_0x47ce3f['left']=_0x446333[_0x3f0b90(0x267)]+_0x112585,_0x47ce3f['top']=_0x446333['startY']+_0xd241f1;}else _0x47ce3f[_0x3f0b90(0x11f)]=_0x446333==null?void 0x0:_0x446333[_0x3f0b90(0x267)],_0x47ce3f['top']=_0x446333==null?void 0x0:_0x446333[_0x3f0b90(0x179)];}return{'transform':_0x47ce3f,'sheetTransform':(_0x2c008b=_0x556f36(_0x47ce3f,_0x287cd5))==null?_0x2d0e2f:_0x2c008b};}};hr=Z([X(0x0,_0x450bf3(_0x1fc54d)),X(0x1,_0x450bf3(_0x5dfcb1)),X(0x2,_0x450bf3(_0x57e4c3)),X(0x3,_0x450bf3(_0x26a217)),X(0x4,_0x450bf3(_0x12c68f))],hr);var gr=class extends _0x300c3f{constructor(_0x23b32a,_0xc759e5){const _0x1ae9f3=_0x43dbb9;super(_0x23b32a,_0xc759e5),Y(this,_0x1ae9f3(0x249),null),Y(this,_0x1ae9f3(0x2ca),null),Y(this,'_unitId',null),Y(this,'_subUnitId',null),Y(this,_0x1ae9f3(0x168),!0x1),_0xc759e5&&this[_0x1ae9f3(0x152)](_0xc759e5);}[_0x43dbb9(0x1f1)](){const _0x174628=_0x43dbb9;return{'unitId':this[_0x174628(0x238)],'subUnitId':this[_0x174628(0x250)],'drawingId':this['_shapeId']};}['setShapeProps'](_0x3edc58){const _0x5890ca=_0x43dbb9;_0x3edc58[_0x5890ca(0xfc)]!==void 0x0&&(this[_0x5890ca(0x249)]=_0x3edc58[_0x5890ca(0xfc)]),_0x3edc58['unitId']!==void 0x0&&(this[_0x5890ca(0x238)]=_0x3edc58[_0x5890ca(0x25d)]),_0x3edc58[_0x5890ca(0x212)]!==void 0x0&&(this[_0x5890ca(0x250)]=_0x3edc58[_0x5890ca(0x212)]),_0x3edc58[_0x5890ca(0xbd)]!==void 0x0&&(this[_0x5890ca(0x168)]=_0x3edc58[_0x5890ca(0xbd)]),this[_0x5890ca(0x1c7)]({'width':_0x3edc58[_0x5890ca(0xf7)],'height':_0x3edc58[_0x5890ca(0x1dc)]});}['_draw'](_0x5804c2){const _0x39f554=_0x43dbb9;_0x536c54['drawWith'](_0x5804c2,{'radius':_0x2bc8ec['cxnPointRadius'],'fill':_0x2bc8ec[_0x39f554(0x2ac)],'stroke':_0x2bc8ec[_0x39f554(0x194)],'strokeWidth':_0x2bc8ec[_0x39f554(0x19b)],'evented':!0x0});}};function _0x1d5d(){const _0x1dcde7=['TOP','activeSheet$','params','_menuManagerService','getShapeTextRect','disposeWithMe','sectionFloating','_commandExecutedListener','packageName','left','_addShapeConnectorHandlerObjects','viewportScrollX','_getSceneAndTransformerByDrawingSearch','registerCommand','clipByShape','_transform','#1a73e8','_baseWidth','scene','initTransformer','_imageIoService','setAdjustValueByName','_createCopyInfoByRange','_baseShapeTop','panel','onPointerDown$','removeLinePoints','smartArt','prstGeom','values','ObjectLayersIcon','sectionCanvas','symbol','StraightConnector1','_onSavingEditorData$','highlighted','getImage','_loadAndSetImage','_reset','sheets-shape-ui.toggleFlipV','_initCopyPaste','extensionGroups','adjHandleStroke','focusDrawing','setPresentation','SheetShapeTextEditorContainer','getActiveSheet','sheet.operation.close-sheet-shape-format-panel','_moveConnectorWithShape','registerFeatureMenu','getSheetBySheetId','sheets-shape-ui','_clearConnectionSites','setHighlighted','_getShapeAdjustInfosById','refreshAdjustControls','transformForAngle','_activeShapeId','getUnit','complete','setShapeProps','lineType','parse','_getZoomRatio','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_isShouldShowDrawingShapeAdjust','_showConnectionSites','_formulaKey','resetCursor','_updateImageAdjValues','_getScrollInfo','makeDirty','_getOrCreateShapeModel','length','getInterceptPoints','getConnectorLinePoints','cxnIndex','_initEvents','_generateCopyPasteMutations','getCurrentUnitOfType','next','translate','_isStartConnectorPoint','_activeImageId','string','shapeKey','rect','_currentConnectionTarget','top','_activeTargetShapeId','getValue','getDrawingByParam','getUnitType','updateConnectionDetection','changeEnd$','getActualSize','_shapes','point','type','startY','formulaBinding','editingParams$','subscribeEvent','_formulaAnimation','add$','getScene','calcAdjValue','ShapeIcon','completeEditing','localeService','onTransformChange$','strokeWidth','_clearControls','getCurrentLastSelection','getSkeleton','_copyInfo','adjName','setShouldShowAdjust','changing$','getShapePopupMenus','doc.image-clip.shape-picker.component','getConnectionInfo','_getImagePrstGeom','_isOpenedShapeEditPanel','shape-text-','syncExecuteCommand','cxnPointStroke','sheetTransform','order','description','getPresentation','text','_connectionSiteObjects','cxnPointStrokeWidth','getRenderById','classType','_addShapeConnectorHandlerObject','_handleConnectedEndpointPointerUp','getDrawingOrder','_cxtHandlerPointerMove','setFillImage','endArrow','setShapeData','image','_getImageDrawingInfo','getAllUnitsForType','_shapeTextEditingService','drawingId','#FFFFFF','connector-handler-','function','_registerMoveHandler','_editingParams$','973cllLEH','includes','_clipService','getBentTypeFromPoints','disableShapeOption','_props','_executeResizeCommand','preValue','getImageSourceCache','disableObjectsEvent','getMatrix','_shapeService','title','DRAWING_SMART_ART','get','extraProps','onPointerUp$','addClipboardHook','dom','formulaPresentation','custom','name','fontSize','getZoomRatio','transformByState','_createControls','setContextValue','_localeService','Line','toPrimitive','None','popup','shapeText','_configService','actualHeight','_registerGroupFeaturePasteHook','_disposePopups','objects','_sidebarService','3219324WeaEuO','_cxnIndex','sheets-shape-ui.openPanel','getParent','Medium','VIEW_MAIN_LEFT_TOP','height','unsubscribe','getObjectIncludeInGroup','_rerouteConnectorLine','UNIVER_SHEET','38524EuhNNl','_groupCopyPasteController','_getConnectPointInfo','_sheetDrawingService','_clearShapeAdjustControls','sin','renderDrawingShape','VIEW_MAIN_TOP','updateShapeFillImage','_activeShapeInfo','_adjName','_getShapeAdjustPointListById','isRichText','fill','56840dKLBpW','_initSelection','getDrawingSearch','redo','draw','_injector','Rect','VIEW_MAIN_LEFT','onCommandExecuted','data','getEditing','_adjHandlerPointerMove','SolidLine','copyType','save','video','_sheetsShapeService','forEach','getConnectionSiteList','887381TuLBac','_initPrinting','refreshShapeFillImage','sheets-shape-ui.objectListPanel.open','isEditing','selectable','_initMenu','_sheetSkeletonService','DRAWING_IMAGE','scale','_activeShapeAdjustPointList','onDblclick$','top-center','setSrcRect','call','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','subUnitId','_clearPopups','pick','targetShapeId','_contextService','startConnectionDetection','find','flipY','_updateAdjustControlPositions','_createShapeAdjustControls','clipHeight','bind','register','slice','sheet.image-clip.shape-picker.component','_shapeFormulaService','color','div','prstGeomAdjValues','_createShapePopupMenu','_popupMenuListener','sheet.shape.floating-toolbar','rotation','animationEnabled','_handleConnectedEndpointMove','_activeShapeModel','applyPoint','_getDrawingRect','_targetShapeId','restore','getDrawingVisible','focus$','contentHeight','_baseHeight','setPrstGeom','_registerDrawingMoveHandler','end','hidden','_unitId','_iconManager','DRAWING_SHAPE','invert','from','_closeShapeEditPanel','DRAWING_VIDEO','viewportScrollY','getCurrentTypeOfUnit$','push','fillType','connection-site-','_calculateFreeEndpointAngle','undo','_updateShapeAdjustControls','gdRefY','onRendered','_shapeId','sheets-shape-ui.deleteShape','onPointerMove$','sheet.shape.object-list.panel','pipe','sheets-shape-text-','_draggingConnectorId','_subUnitId','getShapeModel','unregister','indexOf','_registerDrawingFocusChangeHandler','getSkeletonParam','getBatchUpdateOp','_activeAdjustInfo','_isStartAdjusting','clip-adj-','_cxtHandlerPointerUp','_resetState','enableObjectsEvent','unitId','_handleConnectorPointerUp','close','_baseShapeLeft','clip-','10966311OoZOuw','_lastEditingShapeKey','calculate','_registerComponents','getDrawingDataForUnit','startX','axisAlignSheetTransform','OPERATION','stopPropagation','value','ang','SELECTOR','_sheetShapeAdjustController','UNIVER_DOC','relation','isArray','getRealBound','localToWorld','_sheetPrintInterceptorService','getDrawingPoints','_adjHandlerPointerUp','URL','pushUndoRedo','getTransformer','DEFAULT_PASTE','INSERT','setCanUseShapeClip','VIEW_MAIN','_formulaShapes','getFocusDrawings','decorate','sheet.shape.picker.component','getShapeData','_baseLeft','_init','_commandService','sheetViewStartColumn','skeleton','offsetX','beforeCommandExecuted','normal','startArrow','_registerIcons','activeAnObject','_openShapeEditPanel','subscribe','registerFeatureMenuOffset','open','_isImagePointerDown','keys','stroke','getDrawingData','sheetViewStartRow','getOwnPropertyDescriptor','UPDATE','updateLinePoints','map','_getConnectionSiteAngle','dataModel','isHitLine','_initSheetChange','getAdjustValueByName','9648175LVZHZH','intercept','image-clip-adjust-point-','_initPermission','getEndConnectInfo','clear','onerror','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','reduce','prototype','isDrawingObject','_generatePasteMutations','cxnPointFill','getShapeType','getAdjustInfoByName','_insertShapes','has','delete','_baseShapeWidth','_isHighlighted','_drawRichTextLayer','_baseDrawingRect','render','111VBDsRH','abs','index','_focusedDrawings','attachTransformerTo','initShapePopupMenu','_connectorObjects','error','_updateSrcRectByTransform','worldPoints','_updateTransform','buildClipPath','_initEditingParams','_executeConnectedRouteConnectionCommand','_getShapeInfo','trim','worldPoint','interceptor','getSelectedObjectMap','_index','drawingType','visible','_activeAdjustPointList','default','object','executeCommand','stringify','_addControl','getDrawingEditable','_clearShapeConnectorHandlerObjects','flipX','sheets-shape-ui.rotateRight90','getCurrentScrollState','_registerFocusChangeHandler','_sheetDrawingShapeRenderController','_sidebarDisposable','clip','animateFormulaPresentation','dispose','gdRefAng','setConfig','_attachAdjustEvent','angle','fillImageSource','clearAdjustControls','getBatchAddOp','gdRefR','permissionCheckWithoutRange','sheet.shape.edit.panel','srcRect','_executeConnectionCommand','with','_registerShapeMenu','COMMAND','DRAWING_UNIT','getTransformerByCreate','marginTop','adjHandleSize','_renderManagerService','9576204dWNJTb','changeStart$','fontFamily','ancestorTransform','constructor','DRAWING_CHART','presentationChanged$','_baseShapeHeight','resize','composeMatrix','_baseTop','addImageSourceCache','Arrow','_isConnecting','onSteady','SHAPE_TEXT','worldRect','createControl$','sheets-shape-ui.rotateLeft90','contentVerticalOffset','create','isHighlighted','_config','getDrawingOKey','_isDrawingShapePointDown','_findNearestConnectionSite','setCursor','getSheetId','getCurrentSkeleton','cxnPointRadius','canvas','_urlImageService','isInGroup','REMOVE','_transformCalculateSrcRect','sheets-shape-ui.objectListPanel.title','refreshFormulaPresentation','getObject','changeShapeType','_loadShapePictureFill','_sheetPermissionCheckController','_hasReset','getBatchRemoveOp','DRAWING_DOM','size','entries','filter','mergeMenu','getUnitId','gradientEndColor','offsetY','_findShapeAtPoint','computeConnectorResizeLayout','isStartConnectorPoint','_shapeUpdateListener','_sheetCanvasPopManagerService','shapeModel','getShapeTextData','_initialize','gdRefX','_drawRichText','horizontal','viewBound','setEditing','interceptCommand','_shapeEditPanelVersion','getAutoFitPresentations','_addShapeAdjustControl','_drawingManagerService','_univerInstanceService','onReady','multiply','_draw','isHorizontal','CUT','clipTop','defineProperty','translateWithPrecision','remove$','univer-box-border\x20univer-px-4\x20univer-text-sm','beginPath','set','DRAWING_TABLE','_handleFreeEndpointPointerUp','setFormulaPresentation','_initCommands','getState','forward','_generateCutPasteMutations','registerRenderModule','setOnSavingEditorData','shape-adjust-point-','_sheetClipboardService','doc','sheets-shape-ui.config','_registerOperations','oKey','addObject','_sheetBasicShapeConnectionPointController','getShapeDataById','MEDIA','isLineShape','clearControl$','adjustValues','Large','1.0.0-alpha.7','_shapeRenderController','sheet.command.update-shape-data','parent','BUTTON','GROUP','width','_highlightedSiteIndex','_imageShapeClipController','@univerjs-pro/sheets-shape-ui','_context','shapeId','sheet.operation.open-sheet-shape-format-panel','sheets-shape-ui.imagePanel.crop.shape','sheets-shape-ui.formatShape','_attachConnectorObjectEvent','FromArray','isHit','_componentManager','updateContext','update$','shapeData','_insertingShapeKeys','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','cos','sheet.command.menu-insert-shape','add','transform','_applyFormulaAutoFitSize','asObservable','version','#bcbcbc','pluginName','_currentUniverService','_currentScene','_drawingAddListener','vertical'];_0x1d5d=function(){return _0x1dcde7;};return _0x1d5d();}let _r=class extends _0x4760b3{constructor(_0x2dc4ca,_0x57da97,_0x38f069,_0x1c42f7,_0x380ed9,_0x1ebd7f,_0x44b618,_0x469ce5){const _0xe63181=_0x43dbb9;super(),this[_0xe63181(0xfb)]=_0x2dc4ca,this['_commandService']=_0x57da97,this['_renderManagerService']=_0x38f069,this[_0xe63181(0xcc)]=_0x1c42f7,this[_0xe63181(0xcd)]=_0x380ed9,this[_0xe63181(0x1ff)]=_0x1ebd7f,this[_0xe63181(0x26e)]=_0x44b618,this[_0xe63181(0xea)]=_0x469ce5,Y(this,_0xe63181(0x14f),void 0x0),Y(this,_0xe63181(0x238),void 0x0),Y(this,_0xe63181(0x250),void 0x0),Y(this,_0xe63181(0x2bd),[]),Y(this,_0xe63181(0x2b5),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),Y(this,_0xe63181(0x22b),void 0x0),Y(this,'_isConnecting',!0x1),Y(this,'_isDrawingShapePointDown',!0x1),Y(this,_0xe63181(0xb1),!0x1),Y(this,_0xe63181(0x1a1),void 0x0),Y(this,_0xe63181(0x25a),void 0x0),Y(this,_0xe63181(0x16d),null),this['_initialize']();}[_0x43dbb9(0xc2)](){const _0x40d2da=_0x43dbb9;this[_0x40d2da(0x254)](),this[_0x40d2da(0x235)]();}[_0x43dbb9(0x22d)](){const _0x35f9d1=_0x43dbb9;if(!this[_0x35f9d1(0x238)]||!this[_0x35f9d1(0x250)]||!this[_0x35f9d1(0x14f)])return;let _0x5ccec3={'unitId':this[_0x35f9d1(0x238)],'subUnitId':this[_0x35f9d1(0x250)],'drawingId':this[_0x35f9d1(0x14f)]},{transform:_0x3f6480}=this[_0x35f9d1(0xcc)][_0x35f9d1(0x171)](_0x5ccec3);if(_0x3f6480)return{'left':_0x3f6480['left']||0x0,'top':_0x3f6480[_0x35f9d1(0x16e)]||0x0,'width':_0x3f6480['width']||0x0,'height':_0x3f6480[_0x35f9d1(0x1dc)]||0x0,'flipX':_0x3f6480[_0x35f9d1(0x2d5)]||!0x1,'flipY':_0x3f6480['flipY']||!0x1,'angle':_0x3f6480['angle']};}[_0x43dbb9(0x120)](){const _0x5e183a=_0x43dbb9;if(this[_0x5e183a(0x238)]===void 0x0||this[_0x5e183a(0x250)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x37794a=this['_renderManagerService'][_0x5e183a(0x19c)](this[_0x5e183a(0x238)]);if(!_0x37794a||!_0x37794a['with'](_0x392ff0)[_0x5e183a(0xa4)]())return;let {scene:_0x2ed470}=_0x37794a,_0x1c6d37=this[_0x5e183a(0x22d)]();if(!_0x1c6d37)return;let _0x40bfd3=this[_0x5e183a(0x1ff)][_0x5e183a(0x251)](this['_unitId'],this[_0x5e183a(0x250)],this[_0x5e183a(0x14f)]);if(!_0x40bfd3||!_0x1f7f23(_0x40bfd3['getShapeType']()))return;let _0x37b10c=_0x40bfd3['getConnectorLinePoints']();if(_0x37b10c[_0x5e183a(0x15f)]<0x2)return;let _0x101e36=new _0x427c58(_0x1c6d37),_0x2db088=_0x37b10c[0x0],_0x34058c=_0x37b10c[_0x37b10c['length']-0x1],_0x21fe47=_0x101e36['localToWorld'](_0x2db088),_0x3eb886=_0x101e36['localToWorld'](_0x34058c);this[_0x5e183a(0x19e)](_0x2ed470,{..._0x21fe47},!0x0),this[_0x5e183a(0x19e)](_0x2ed470,{..._0x3eb886},!0x1);}['_addShapeConnectorHandlerObject'](_0x1d9dba,_0x3349df,_0x5a0e15){const _0x4d2d24=_0x43dbb9;if(this[_0x4d2d24(0x14f)]===void 0x0||this[_0x4d2d24(0x238)]===void 0x0||this[_0x4d2d24(0x250)]===void 0x0)return;let _0x144bf7=_0x4d2d24(0x1ab)+this[_0x4d2d24(0x238)]+'-'+this[_0x4d2d24(0x250)]+'-'+this[_0x4d2d24(0x14f)]+'-'+(_0x5a0e15?'start':_0x4d2d24(0x236)),_0x236cd1=_0x1d9dba[_0x4d2d24(0x1de)](_0x144bf7);if(_0x236cd1){_0x236cd1[_0x4d2d24(0x1c7)]({'left':_0x3349df['x']-_0x2bc8ec[_0x4d2d24(0xa5)],'top':_0x3349df['y']-_0x2bc8ec[_0x4d2d24(0xa5)]});return;}let _0x18835b=new gr(_0x144bf7,{'left':_0x3349df['x']-_0x2bc8ec[_0x4d2d24(0xa5)],'top':_0x3349df['y']-_0x2bc8ec[_0x4d2d24(0xa5)],'shapeId':this[_0x4d2d24(0x14f)],'unitId':this[_0x4d2d24(0x238)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x5a0e15,'width':_0x2bc8ec[_0x4d2d24(0xa5)]*0x2,'height':_0x2bc8ec[_0x4d2d24(0xa5)]*0x2,'zIndex':_0x11332b+0x1,'evented':!0x0});this['_connectorObjects']['push'](_0x18835b),this[_0x4d2d24(0x100)](_0x18835b,_0x1d9dba,_0x5a0e15),_0x1d9dba[_0x4d2d24(0xe9)](_0x18835b,_0x11332b+0x1);}[_0x43dbb9(0x15c)](_0x3ff9ef,_0x169f08){const _0x38d5d8=_0x43dbb9;var _0x1eeb30;let _0x155e7f={'x':0x0,'y':0x0};if(!_0x3ff9ef||!_0x169f08)return _0x155e7f;let _0x58341b=this[_0x38d5d8(0x87)][_0x38d5d8(0x19c)](_0x3ff9ef);if(!_0x58341b||!_0x58341b['with'](_0x392ff0)[_0x38d5d8(0x188)](_0x169f08))return _0x155e7f;let _0x2a3c8c=_0x58341b[_0x38d5d8(0x2ea)](_0xdbee74),_0x1c4a2e=_0x2a3c8c==null?void 0x0:_0x2a3c8c[_0x38d5d8(0x2d7)]();if(!_0x1c4a2e)return _0x155e7f;let _0x186e30=(_0x1eeb30=this['_univerInstanceService'][_0x38d5d8(0x150)](_0x3ff9ef))==null?void 0x0:_0x1eeb30['getSheetBySheetId'](_0x169f08);if(!_0x186e30)return _0x155e7f;let _0x5ce9ca=_0x1b930d(_0x1c4a2e[_0x38d5d8(0x296)],_0x1c4a2e[_0x38d5d8(0x286)],_0x58341b['scene'],_0x186e30);return _0x5ce9ca?{'x':_0x5ce9ca[_0x38d5d8(0x121)],'y':_0x5ce9ca['viewportScrollY']}:_0x155e7f;}[_0x43dbb9(0x155)](_0x3335a7,_0x1560ce){const _0x37808b=_0x43dbb9;var _0x25290a,_0x183f8f;let _0x267c2b=(_0x25290a=this[_0x37808b(0xcd)]['getUnit'](_0x3335a7))==null?void 0x0:_0x25290a[_0x37808b(0x148)](_0x1560ce);return(_0x183f8f=_0x267c2b==null?void 0x0:_0x267c2b[_0x37808b(0x1c6)]())==null?0x1:_0x183f8f;}[_0x43dbb9(0x25e)](_0x2a0be4,_0x5964c4,_0x254167,_0x50b301,_0x2b7f54){const _0x944662=_0x43dbb9;this[_0x944662(0x1a1)]['unsubscribe'](),this[_0x944662(0x25a)][_0x944662(0x1dd)](),this[_0x944662(0x26e)][_0x944662(0x14d)]();let _0x39ee8d=this[_0x944662(0x16d)];this[_0x944662(0xea)]['endConnectionDetection']();let _0x1d210d=this[_0x944662(0x15c)](this[_0x944662(0x238)],this[_0x944662(0x250)]),_0x590e90=this['_getZoomRatio'](this[_0x944662(0x238)],this[_0x944662(0x250)]),_0x35cabf={'x':_0x254167[_0x944662(0x288)]/_0x590e90+_0x1d210d['x'],'y':_0x254167[_0x944662(0xba)]/_0x590e90+_0x1d210d['y']},_0x462d33=_0x39ee8d?_0x39ee8d[_0x944662(0x2c7)]:_0x35cabf,_0x275384=_0x50b301?this[_0x944662(0x22b)][_0x944662(0x2a4)]():this[_0x944662(0x22b)]['getStartConnectInfo'](),_0x171e8c=this[_0x944662(0x22b)]['getShapeType']();_0x275384?this[_0x944662(0x19f)](_0x275384,_0x462d33,_0x50b301,_0x39ee8d,_0x2b7f54):this[_0x944662(0xdb)](_0x5964c4,_0x462d33,_0x50b301,_0x39ee8d,_0x2b7f54,_0x171e8c),this[_0x944662(0x95)]=!0x1,this[_0x944662(0xb1)]=!0x1,this[_0x944662(0x16d)]=null,_0x2a0be4['enableObjectsEvent']();}[_0x43dbb9(0xdb)](_0x29f455,_0x20aff4,_0x3298a3,_0x1fdc5d,_0x534298,_0x520e14){const _0x4c0735=_0x43dbb9;let _0x250123=_0x520e14===_0x250922[_0x4c0735(0x1cb)]||_0x520e14===_0x250922[_0x4c0735(0x137)],_0x506d03=_0x3298a3?_0x20aff4:_0x29f455,_0xe7dbdf=_0x3298a3?_0x29f455:_0x20aff4,_0x4db2e5=this['_activeShapeModel'][_0x4c0735(0x161)](),_0x2bd35a=_0x2e1471(this['_activeShapeModel'][_0x4c0735(0x2ad)]()),_0x1db243=_0x427c58[_0x4c0735(0x1b2)](_0x4db2e5,_0x2bd35a),_0x471611=_0x250123?_0x427c58['computeStraightConnectorLayout'](_0x506d03,_0xe7dbdf):_0x427c58[_0x4c0735(0xbc)](_0x29f455,_0x20aff4,_0x3298a3,_0x1db243);_0x1fdc5d?this[_0x4c0735(0x2e9)](_0x471611,_0x1fdc5d,_0x3298a3,_0x534298):this[_0x4c0735(0x1b5)](_0x471611,_0x534298);}[_0x43dbb9(0x19f)](_0x55b29a,_0x481dd1,_0x532a62,_0xa13e98,_0x2aa2bc){const _0x4980d8=_0x43dbb9;let _0x560e50=this[_0x4980d8(0x1e3)](_0x55b29a);if(!_0x560e50)return;let _0x5da971=_0xa13e98?_0xa13e98['angle']:this[_0x4980d8(0x244)](_0x560e50[_0x4980d8(0x177)],_0x481dd1),_0x2fb355;if(_0xa13e98){let _0x2f291a=this[_0x4980d8(0xcc)][_0x4980d8(0x171)]({'unitId':_0xa13e98[_0x4980d8(0x25d)],'subUnitId':_0xa13e98[_0x4980d8(0x212)],'drawingId':_0xa13e98[_0x4980d8(0xfc)]});if(_0x2f291a!=null&&_0x2f291a[_0x4980d8(0x10c)]){let {left:_0x1dcd57=0x0,top:_0x56477a=0x0,width:_0x185b55=0x0,height:_0x4655cf=0x0,angle:_0x59fe82}=_0x2f291a['transform'];_0x2fb355=_0x15c292({'left':_0x1dcd57,'top':_0x56477a,'width':_0x185b55,'height':_0x4655cf},_0x59fe82||0x0);}else _0x2fb355={'left':_0x481dd1['x'],'top':_0x481dd1['y'],'width':0x0,'height':0x0};}else _0x2fb355={'left':_0x481dd1['x'],'top':_0x481dd1['y'],'width':0x0,'height':0x0};let _0x235461={'point':_0x481dd1,'angle':_0x5da971,'bounds':_0x2fb355},_0x28c1f6=_0x532a62?_0x235461:_0x560e50,_0x5703e4=_0x532a62?_0x560e50:_0x235461,_0x4dd0c1=this[_0x4980d8(0x22b)]['getShapeType'](),_0x5431d3=_0xde601c(_0x28c1f6,_0x5703e4,_0x4dd0c1);this['_activeShapeModel'][_0x4980d8(0x130)]();let _0x5250e6=_0x3de713(_0x5431d3,_0x4dd0c1);_0xa13e98?this[_0x4980d8(0x2c4)](_0x5250e6,_0xa13e98,_0x55b29a,_0x532a62,_0x2aa2bc):this['_executeConnectedRouteResizeCommand'](_0x5250e6,_0x55b29a,_0x532a62,_0x2aa2bc);}[_0x43dbb9(0x2e9)](_0x630a6f,_0x143431,_0x4aa354,_0x1ef7c9){const _0x544360=_0x43dbb9;let _0x24836c=this[_0x544360(0x22b)][_0x544360(0x282)]()['relation'],_0x17bbea={..._0x24836c},_0xee2ec6={'shapeId':_0x143431[_0x544360(0xfc)],'cxnIndex':_0x143431['cxnIndex']};_0x4aa354?_0x17bbea[_0x544360(0x23c)]=_0xee2ec6:_0x17bbea['to']=_0xee2ec6;let _0x4db0f2=this[_0x544360(0x22b)][_0x544360(0x2ad)](),_0x5150f5=_0x3de713(_0x630a6f[_0x544360(0x2c0)],_0x4db0f2),_0x344cb6={'unitId':this['_unitId'],'subUnitId':this[_0x544360(0x250)],'connectorShapeId':this[_0x544360(0x14f)],'width':_0x630a6f[_0x544360(0x98)][_0x544360(0xf7)],'height':_0x630a6f['worldRect'][_0x544360(0x1dc)],'left':_0x630a6f[_0x544360(0x98)][_0x544360(0x11f)],'top':_0x630a6f[_0x544360(0x98)][_0x544360(0x16e)],'flipX':_0x630a6f['worldRect'][_0x544360(0x2d5)]||!0x1,'flipY':_0x630a6f[_0x544360(0x98)]['flipY']||!0x1,'newAdjustValues':_0x5150f5[_0x544360(0xef)],'oldAdjustValues':_0x1ef7c9,'oldRelation':_0x24836c,'newRelation':_0x17bbea,'newLineType':_0x5150f5[_0x544360(0x153)],'oldLineType':_0x4db0f2};this[_0x544360(0x285)][_0x544360(0x2d0)](_0x551591['id'],_0x344cb6);}[_0x43dbb9(0x1b5)](_0x25ca84,_0x44c709){const _0x225afe=_0x43dbb9;let _0x2e1f3f=this[_0x225afe(0x22b)][_0x225afe(0x2ad)](),_0x47b3a3=_0x3de713(_0x25ca84[_0x225afe(0x2c0)],_0x2e1f3f),_0x192a65={'unitId':this['_unitId'],'subUnitId':this[_0x225afe(0x250)],'shapeId':this[_0x225afe(0x14f)],'width':_0x25ca84['worldRect'][_0x225afe(0xf7)],'height':_0x25ca84[_0x225afe(0x98)][_0x225afe(0x1dc)],'left':_0x25ca84[_0x225afe(0x98)][_0x225afe(0x11f)],'top':_0x25ca84[_0x225afe(0x98)][_0x225afe(0x16e)],'flipX':_0x25ca84[_0x225afe(0x98)][_0x225afe(0x2d5)]||!0x1,'flipY':_0x25ca84['worldRect'][_0x225afe(0x219)]||!0x1,'angle':_0x25ca84[_0x225afe(0x98)]['angle']||0x0,'newAdjustValues':_0x47b3a3[_0x225afe(0xef)],'oldAdjustValues':_0x44c709,'newLineType':_0x47b3a3['lineType'],'oldLineType':_0x2e1f3f};this[_0x225afe(0x285)][_0x225afe(0x2d0)](_0x5760d5['id'],_0x192a65);}['_executeConnectedRouteConnectionCommand'](_0x490d02,_0x2934ff,_0x3a6b1a,_0x3547d6,_0x3688af){const _0x15c893=_0x43dbb9;let _0x350bc0=this[_0x15c893(0x22b)][_0x15c893(0x282)]()[_0x15c893(0x270)],_0x2278a4={..._0x350bc0},_0x3fe59f={'shapeId':_0x2934ff['shapeId'],'cxnIndex':_0x2934ff[_0x15c893(0x162)]};_0x3547d6?(_0x2278a4['from']=_0x3fe59f,_0x2278a4['to']=_0x3a6b1a):(_0x2278a4[_0x15c893(0x23c)]=_0x3a6b1a,_0x2278a4['to']=_0x3fe59f);let _0x4c741b={'unitId':this[_0x15c893(0x238)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x15c893(0x14f)],'width':_0x490d02[_0x15c893(0x98)]['width'],'height':_0x490d02['worldRect']['height'],'left':_0x490d02['worldRect']['left'],'top':_0x490d02['worldRect'][_0x15c893(0x16e)],'flipX':_0x490d02[_0x15c893(0x98)]['flipX']||!0x1,'flipY':_0x490d02[_0x15c893(0x98)][_0x15c893(0x219)]||!0x1,'oldAdjustValues':_0x3688af,'newAdjustValues':_0x490d02[_0x15c893(0xef)],'newLineType':_0x490d02[_0x15c893(0x153)],'rotation':_0x490d02[_0x15c893(0x228)],'oldRelation':_0x350bc0,'newRelation':_0x2278a4};this[_0x15c893(0x285)]['executeCommand'](_0x551591['id'],_0x4c741b);}['_executeConnectedRouteResizeCommand'](_0x75bd26,_0xd41554,_0x259a64,_0x2e5eb6){const _0x166830=_0x43dbb9;let _0x2234b6=this[_0x166830(0x22b)][_0x166830(0x282)]()[_0x166830(0x270)],_0x24a345={};_0x259a64?(_0x24a345['to']=_0xd41554,_0x24a345['from']=void 0x0):(_0x24a345[_0x166830(0x23c)]=_0xd41554,_0x24a345['to']=void 0x0);let _0x3bc165={'unitId':this[_0x166830(0x238)],'subUnitId':this[_0x166830(0x250)],'connectorShapeId':this[_0x166830(0x14f)],'width':_0x75bd26[_0x166830(0x98)][_0x166830(0xf7)],'height':_0x75bd26[_0x166830(0x98)][_0x166830(0x1dc)],'left':_0x75bd26[_0x166830(0x98)]['left'],'top':_0x75bd26['worldRect'][_0x166830(0x16e)],'flipX':_0x75bd26[_0x166830(0x98)][_0x166830(0x2d5)]||!0x1,'flipY':_0x75bd26[_0x166830(0x98)][_0x166830(0x219)]||!0x1,'oldAdjustValues':_0x2e5eb6,'newAdjustValues':_0x75bd26[_0x166830(0xef)],'newLineType':_0x75bd26[_0x166830(0x153)],'rotation':_0x75bd26['rotation'],'oldRelation':_0x2234b6,'newRelation':_0x24a345};this[_0x166830(0x285)][_0x166830(0x2d0)](_0x551591['id'],_0x3bc165);}[_0x43dbb9(0x100)](_0x163b2e,_0x5db01e,_0x22b813){const _0x40ee20=_0x43dbb9;this[_0x40ee20(0x11b)](_0x43b296(_0x163b2e[_0x40ee20(0x12f)][_0x40ee20(0x17c)]((_0x554bc0,_0x542cf1)=>{const _0x124da5=_0x40ee20;let _0x40c5a4=_0x163b2e[_0x124da5(0x1f1)]();if(this['_activeShapeModel']=this[_0x124da5(0x1ff)]['getShapeModel'](_0x40c5a4[_0x124da5(0x25d)],_0x40c5a4['subUnitId'],_0x40c5a4['drawingId']),!this[_0x124da5(0x22b)])return;let _0x1a886b={};this[_0x124da5(0x22b)]['getAdjustNames']()['forEach'](_0x40d238=>{let _0x34cbf8=this['_activeShapeModel']['getAdjustValueByName'](_0x40d238);_0x34cbf8!==void 0x0&&(_0x1a886b[_0x40d238]=_0x34cbf8);});let _0x504362=this[_0x124da5(0x22d)]();if(!_0x504362)return;this[_0x124da5(0x2b5)]={..._0x504362};let _0x58f9bb=new _0x427c58(this[_0x124da5(0x2b5)]),_0x28d1c6=_0x7f2912({'unitId':this[_0x124da5(0x238)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x124da5(0x14f)]}),_0x46d1ce=_0x5db01e[_0x124da5(0x1de)](_0x28d1c6);this[_0x124da5(0x95)]=!0x0,_0x5db01e[_0x124da5(0x1b8)](),this[_0x124da5(0xea)][_0x124da5(0x217)](_0x5db01e,this[_0x124da5(0x238)],this[_0x124da5(0x250)],this[_0x124da5(0x14f)]),this[_0x124da5(0x16d)]=null;let _0x1d6bd7=this['_activeShapeModel'][_0x124da5(0x161)](),_0x2dc9ac=_0x1d6bd7[0x0],_0x5ab85e=_0x1d6bd7[_0x1d6bd7[_0x124da5(0x15f)]-0x1],_0x2d2498=_0x22b813?_0x58f9bb['localToWorld'](_0x5ab85e):_0x58f9bb[_0x124da5(0x273)](_0x2dc9ac);this['_cxtHandlerPointerMove']=_0x5db01e[_0x124da5(0x24b)][_0x124da5(0x17c)]((_0x393999,_0x5ec391)=>{const _0xaaf38c=_0x124da5;if(!this[_0xaaf38c(0x95)]||!this['_activeShapeModel'])return;this['_hasReset']||(this['_sheetShapeAdjustController'][_0xaaf38c(0x2e3)](),this[_0xaaf38c(0x22b)]['clearAdjustValue'](),this['_hasReset']=!0x0);let _0x35b7a9=this[_0xaaf38c(0x15c)](this[_0xaaf38c(0x238)],this[_0xaaf38c(0x250)]),_0x47a98c=this[_0xaaf38c(0x155)](this[_0xaaf38c(0x238)],this[_0xaaf38c(0x250)]),_0x3d067b={'x':_0x393999[_0xaaf38c(0x288)]/_0x47a98c+_0x35b7a9['x'],'y':_0x393999[_0xaaf38c(0xba)]/_0x47a98c+_0x35b7a9['y']},_0xaef58a=this[_0xaaf38c(0xea)][_0xaaf38c(0x173)](_0x3d067b);if(_0xaef58a){let {shapeId:_0x500729,unitId:_0x31e3d5,subUnitId:_0x4a703e}=_0xaef58a;if(_0x500729&&_0x31e3d5&&_0x4a703e){let _0x329009=_0x7f2912({'unitId':_0x31e3d5,'subUnitId':_0x4a703e,'drawingId':_0x500729});_0xaef58a[_0xaaf38c(0x2e1)]=(_0x5db01e[_0xaaf38c(0x1de)](_0x329009)[_0xaaf38c(0x2e1)]||0x0)+_0xaef58a[_0xaaf38c(0x2e1)];}}this[_0xaaf38c(0x16d)]=_0xaef58a;let _0x5967a7=_0x22b813?this[_0xaaf38c(0x22b)][_0xaaf38c(0x2a4)]():this[_0xaaf38c(0x22b)]['getStartConnectInfo']();if(_0x5967a7){this['_handleConnectedEndpointMove'](_0x5967a7,_0x3d067b,_0x22b813,_0x46d1ce,_0x163b2e);return;}this['_handleFreeEndpointMove'](_0x3d067b,_0x2d2498,_0x22b813,_0x46d1ce,_0x163b2e);}),this[_0x124da5(0x25a)]=_0x5db01e['onPointerUp$'][_0x124da5(0x17c)]((_0x19ce8b,_0x30ee31)=>{const _0x2a97aa=_0x124da5;this[_0x2a97aa(0x25e)](_0x5db01e,_0x2d2498,_0x19ce8b,_0x22b813,_0x1a886b);}),_0x542cf1[_0x124da5(0x26a)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0xe1bae3,_0x3d1aac,_0x37fd62){const _0xce7687=_0x43dbb9;let _0x5addae=this[_0xce7687(0x1ff)]['getBasicShapeRelation'](_0xe1bae3,_0x3d1aac,_0x37fd62);if(!_0x5addae||_0x5addae[_0xce7687(0x15f)]===0x0)return;let _0x237e3a=this[_0xce7687(0x87)][_0xce7687(0x19c)](_0xe1bae3);if(!_0x237e3a)return;let {scene:_0x54783e}=_0x237e3a;for(let _0x37c5e6 of _0x5addae){let _0x2baa83=_0x37c5e6['lineShapeId'],_0x1be106=this['_sheetsShapeService'][_0xce7687(0x251)](_0xe1bae3,_0x3d1aac,_0x2baa83);if(!_0x1be106)continue;let _0x301e50=_0x1be106['getStartConnectInfo'](),_0x3e936a=_0x1be106['getEndConnectInfo'](),_0xa78f0b=(_0x301e50==null?void 0x0:_0x301e50[_0xce7687(0xfc)])===_0x37fd62,_0x484753=_0x7f2912({'unitId':_0xe1bae3,'subUnitId':_0x3d1aac,'drawingId':_0x2baa83}),_0x2b7ff3=_0x54783e[_0xce7687(0x1de)](_0x484753);if(!_0x2b7ff3)continue;let _0x274ee4=this[_0xce7687(0xcc)][_0xce7687(0x171)]({'unitId':_0xe1bae3,'subUnitId':_0x3d1aac,'drawingId':_0x2baa83});_0x274ee4!=null&&_0x274ee4[_0xce7687(0x10c)]&&(_0x301e50&&_0x3e936a?this[_0xce7687(0x1df)](_0xe1bae3,_0x3d1aac,_0x2baa83,_0x1be106,_0x301e50,_0x3e936a,_0x2b7ff3):this[_0xce7687(0x146)](_0xe1bae3,_0x3d1aac,_0x2baa83,_0x1be106,_0xa78f0b?_0x301e50:_0x3e936a,_0xa78f0b,_0x274ee4,_0x2b7ff3));}}[_0x43dbb9(0x1df)](_0x5e3764,_0x4f008f,_0x16bc0b,_0xe99822,_0x35d622,_0x5818f5,_0x5e972e){const _0x2f67cb=_0x43dbb9;let _0x430abd=this['_unitId'],_0xd3f2a8=this[_0x2f67cb(0x250)];this[_0x2f67cb(0x238)]=_0x5e3764,this[_0x2f67cb(0x250)]=_0x4f008f;let _0x5e3ea8=this['_getConnectPointInfo'](_0x35d622),_0x4a0838=this['_getConnectPointInfo'](_0x5818f5);if(this[_0x2f67cb(0x238)]=_0x430abd,this['_subUnitId']=_0xd3f2a8,!_0x5e3ea8||!_0x4a0838)return;let _0x335de5=_0xe99822[_0x2f67cb(0x2ad)](),_0x3a6071=_0xde601c(_0x5e3ea8,_0x4a0838,_0x335de5);_0x3a6071&&_0xe99822[_0x2f67cb(0x299)](_0x3a6071);let _0x1270d3=_0x3de713(_0x3a6071,_0x335de5);_0x1270d3['lineType']!==_0x335de5&&_0xe99822[_0x2f67cb(0xae)](_0x1270d3[_0x2f67cb(0x153)]),_0xe99822['clearAdjustValue']();for(let [_0x433da3,_0x2566f8]of Object[_0x2f67cb(0xb5)](_0x1270d3['adjustValues']))_0xe99822[_0x2f67cb(0x12b)](_0x433da3,_0x2566f8);_0xe99822[_0x2f67cb(0x104)]({'width':_0x1270d3['worldRect'][_0x2f67cb(0xf7)],'height':_0x1270d3[_0x2f67cb(0x98)][_0x2f67cb(0x1dc)]}),_0x5e972e['transformByState']({'flipX':_0x1270d3['worldRect']['flipX'],'flipY':_0x1270d3[_0x2f67cb(0x98)][_0x2f67cb(0x219)],'left':_0x1270d3['worldRect'][_0x2f67cb(0x11f)],'top':_0x1270d3['worldRect']['top'],'width':_0x1270d3[_0x2f67cb(0x98)][_0x2f67cb(0xf7)],'height':_0x1270d3[_0x2f67cb(0x98)]['height'],'angle':_0x1270d3[_0x2f67cb(0x228)]}),_0xe99822[_0x2f67cb(0x130)]();}[_0x43dbb9(0x146)](_0x1307db,_0x203e1d,_0x164531,_0x2c7fba,_0x386c3c,_0x4c2afe,_0x4740ac,_0x44e8e7){const _0x245452=_0x43dbb9;let _0x1c7bdd=this[_0x245452(0x238)],_0x27a17a=this[_0x245452(0x250)];this[_0x245452(0x238)]=_0x1307db,this[_0x245452(0x250)]=_0x203e1d;let _0x325408=this[_0x245452(0x1e3)](_0x386c3c);if(this[_0x245452(0x238)]=_0x1c7bdd,this[_0x245452(0x250)]=_0x27a17a,!_0x325408)return;let {left:_0x1e7b6f=0x0,top:_0x7a0e81=0x0,width:_0x1b938d=0x0,height:_0x51721e=0x0,flipX:_0x22d041=!0x1,flipY:_0x55739e=!0x1}=_0x4740ac[_0x245452(0x10c)],_0x1f8dbc=_0x2c7fba[_0x245452(0x161)]();if(_0x1f8dbc['length']<0x2)return;let _0x3e87dd=new _0x427c58({'left':_0x1e7b6f,'top':_0x7a0e81,'width':_0x1b938d,'height':_0x51721e,'flipX':_0x22d041,'flipY':_0x55739e}),_0x5bece3=_0x4c2afe?_0x1f8dbc[_0x1f8dbc[_0x245452(0x15f)]-0x1]:_0x1f8dbc[0x0],_0x217bd5=_0x3e87dd[_0x245452(0x273)](_0x5bece3),_0x424c0e=_0x427c58['computeConnectorResizeLayout'](_0x217bd5,_0x325408[_0x245452(0x177)],!_0x4c2afe);_0x44e8e7[_0x245452(0x1c7)]({'flipX':_0x424c0e[_0x245452(0x98)]['flipX'],'flipY':_0x424c0e[_0x245452(0x98)][_0x245452(0x219)],'left':_0x424c0e['worldRect'][_0x245452(0x11f)],'top':_0x424c0e[_0x245452(0x98)]['top'],'width':_0x424c0e[_0x245452(0x98)][_0x245452(0xf7)],'height':_0x424c0e['worldRect'][_0x245452(0x1dc)],'angle':_0x424c0e[_0x245452(0x98)][_0x245452(0x2e1)]}),_0x44e8e7['makeDirty'](!0x0);}[_0x43dbb9(0x2d4)](){const _0x979bef=_0x43dbb9;this[_0x979bef(0x2bd)][_0x979bef(0x15f)]!==0x0&&(this[_0x979bef(0x2bd)][_0x979bef(0x200)](_0x33400c=>{const _0x24c956=_0x979bef;_0x33400c[_0x24c956(0x2dd)]();}),this['_connectorObjects']=[]);}[_0x43dbb9(0x235)](){const _0x77de82=_0x43dbb9;let _0x578143=this[_0x77de82(0xcd)][_0x77de82(0x240)](_0x2a1b28[_0x77de82(0x1e0)]);this[_0x77de82(0x11b)](_0x578143[_0x77de82(0x24d)](_0x46afa7(_0x2e016d=>_0x2e016d?_0x2e016d[_0x77de82(0x117)]['pipe'](_0x46afa7(_0x29ea3e=>{const _0x242736=_0x77de82;if(!_0x29ea3e)return _0x3149ab;let _0x3987dc=_0x2e016d[_0x242736(0xb8)](),_0x1aac9f=this['_renderManagerService'][_0x242736(0x19c)](_0x3987dc),_0x4f7d0e=_0x1aac9f==null?void 0x0:_0x1aac9f['scene'];return _0x4f7d0e?_0x236700(_0x4f7d0e):_0x3149ab;})):_0x3149ab))['subscribe'](_0x1b0adb=>{const _0x8e3659=_0x77de82;let _0x40b605=_0x1b0adb[_0x8e3659(0x84)]();this[_0x8e3659(0x11b)](_0x1b0adb['onPointerMove$'][_0x8e3659(0x17c)](_0x31cfd1=>{const _0x4f216f=_0x8e3659;this[_0x4f216f(0xa0)]&&this[_0x4f216f(0x14f)]&&this[_0x4f216f(0x2d4)]();})),this[_0x8e3659(0x11b)](_0x40b605['changeStart$'][_0x8e3659(0x28f)](_0x59b67f=>{const _0x9768db=_0x8e3659;let {objects:_0x2a27cc}=_0x59b67f;this[_0x9768db(0x2d4)](),_0x2a27cc!==null&&_0x2a27cc['size']===0x1&&_0x2a27cc['values']()[_0x9768db(0x166)]()[_0x9768db(0x26b)]instanceof Cn&&(this['_isDrawingShapePointDown']=!0x0);})),this['disposeWithMe'](_0x40b605[_0x8e3659(0x18c)][_0x8e3659(0x28f)](_0x95adc7=>{const _0x254757=_0x8e3659;this[_0x254757(0xa0)]&&this[_0x254757(0x2d4)]();})),this[_0x8e3659(0x11b)](_0x1b0adb[_0x8e3659(0x1bf)][_0x8e3659(0x17c)](()=>{const _0x5825d3=_0x8e3659;this[_0x5825d3(0xa0)]&&(this[_0x5825d3(0xa0)]=!0x1,this[_0x5825d3(0x120)]());})),this[_0x8e3659(0x11b)](_0x40b605[_0x8e3659(0x174)][_0x8e3659(0x28f)](()=>{const _0x2d1306=_0x8e3659;this[_0x2d1306(0x238)]&&this[_0x2d1306(0x250)]&&this[_0x2d1306(0x14f)]&&this['_drawingManagerService'][_0x2d1306(0x171)]({'unitId':this[_0x2d1306(0x238)],'subUnitId':this[_0x2d1306(0x250)],'drawingId':this[_0x2d1306(0x14f)]})&&(this[_0x2d1306(0x2d4)](),this[_0x2d1306(0x120)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x41f434=_0x43dbb9;this[_0x41f434(0x11b)](this['_drawingManagerService']['focus$']['subscribe'](_0x47af45=>{const _0x33c046=_0x41f434;if(_0x47af45[_0x33c046(0x15f)]===0x1){let _0x672dc2=_0x47af45[0x0];if(_0x672dc2['drawingType']===_0x5d03f6['DRAWING_SHAPE']){let _0xc0f9fd=this[_0x33c046(0x1ff)][_0x33c046(0x251)](_0x672dc2[_0x33c046(0x25d)],_0x672dc2['subUnitId'],_0x672dc2[_0x33c046(0x1a9)]);if(_0xc0f9fd&&_0x1f7f23(_0xc0f9fd[_0x33c046(0x2ad)]())){this[_0x33c046(0x14f)]=_0x672dc2[_0x33c046(0x1a9)],this[_0x33c046(0x238)]=_0x672dc2[_0x33c046(0x25d)],this[_0x33c046(0x250)]=_0x672dc2[_0x33c046(0x212)],this['_clearShapeConnectorHandlerObjects'](),this[_0x33c046(0x120)]();return;}}}this['_activeShapeId']=void 0x0,this[_0x33c046(0x238)]=void 0x0,this[_0x33c046(0x250)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this[_0x41f434(0x11b)](this[_0x41f434(0xcc)][_0x41f434(0x105)][_0x41f434(0x28f)](_0x32f7e7=>{const _0x5e2831=_0x41f434;if(_0x32f7e7['length']===0x1){var _0x20f2bb;let _0x2951e5=_0x32f7e7[0x0],_0x4acad4=(_0x20f2bb=this[_0x5e2831(0xcc)][_0x5e2831(0x171)](_0x2951e5))==null?void 0x0:_0x20f2bb['drawingType'];_0x4acad4===_0x5d03f6[_0x5e2831(0x23a)]&&_0x2951e5['drawingId']===this[_0x5e2831(0x14f)]?(this[_0x5e2831(0x2d4)](),this['_addShapeConnectorHandlerObjects']()):!this[_0x5e2831(0x14f)]&&_0x4acad4===_0x5d03f6[_0x5e2831(0x23a)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x2951e5[_0x5e2831(0x25d)],_0x2951e5[_0x5e2831(0x212)],_0x2951e5[_0x5e2831(0x1a9)]);}})),this[_0x41f434(0x11b)](this[_0x41f434(0xcc)][_0x41f434(0xd6)][_0x41f434(0x28f)](_0x4332b0=>{const _0x5bbd79=_0x41f434;for(let _0x1fe2bd of _0x4332b0){let {drawingId:_0x53632e}=_0x1fe2bd;if(this[_0x5bbd79(0x14f)]===_0x53632e){this[_0x5bbd79(0x13c)]();return;}}}));}[_0x43dbb9(0x22a)](_0x4d000d,_0x38c521,_0x44e553,_0x1f9a7a,_0x1f6fc5){const _0x1ff7a8=_0x43dbb9;var _0x3df2aa,_0x1d9a99;if(!this[_0x1ff7a8(0x22b)])return;let _0x1d617f=this[_0x1ff7a8(0x1e3)](_0x4d000d);if(!_0x1d617f)return;let _0x263ea4=this[_0x1ff7a8(0x16d)]?this[_0x1ff7a8(0x16d)]['worldPoint']:_0x38c521,_0x39ad2c=this[_0x1ff7a8(0x16d)]?this['_currentConnectionTarget'][_0x1ff7a8(0x2e1)]:this[_0x1ff7a8(0x244)](_0x1d617f[_0x1ff7a8(0x177)],_0x263ea4),_0x307919;if(this[_0x1ff7a8(0x16d)]){let _0x32b35d=this['_drawingManagerService']['getDrawingByParam']({'unitId':this['_currentConnectionTarget'][_0x1ff7a8(0x25d)],'subUnitId':this['_currentConnectionTarget'][_0x1ff7a8(0x212)],'drawingId':this[_0x1ff7a8(0x16d)][_0x1ff7a8(0xfc)]});if(_0x32b35d!=null&&_0x32b35d[_0x1ff7a8(0x10c)]){let {left:_0x83cd72=0x0,top:_0x1260d8=0x0,width:_0x2bc035=0x0,height:_0x1e6753=0x0,angle:_0x5516fb}=_0x32b35d[_0x1ff7a8(0x10c)];_0x307919=_0x15c292({'left':_0x83cd72,'top':_0x1260d8,'width':_0x2bc035,'height':_0x1e6753},_0x5516fb||0x0);}else _0x307919={'left':_0x263ea4['x'],'top':_0x263ea4['y'],'width':0x0,'height':0x0};}else _0x307919={'left':_0x263ea4['x'],'top':_0x263ea4['y'],'width':0x0,'height':0x0};let _0x1f8904={'point':_0x263ea4,'angle':_0x39ad2c,'bounds':_0x307919},_0x963e1e=_0x44e553?_0x1f8904:_0x1d617f,_0x232806=_0x44e553?_0x1d617f:_0x1f8904,_0x502051=this[_0x1ff7a8(0x22b)][_0x1ff7a8(0x2ad)](),_0x3c1640=_0xde601c(_0x963e1e,_0x232806,_0x502051);_0x3c1640&&this[_0x1ff7a8(0x22b)][_0x1ff7a8(0x299)](_0x3c1640);let _0x4122ec=_0x3de713(_0x3c1640,_0x502051);_0x4122ec[_0x1ff7a8(0x153)]!==_0x502051&&this[_0x1ff7a8(0x22b)][_0x1ff7a8(0xae)](_0x4122ec[_0x1ff7a8(0x153)]);for(let [_0x5ce22d,_0x491db9]of Object['entries'](_0x4122ec['adjustValues']))this['_activeShapeModel'][_0x1ff7a8(0x12b)](_0x5ce22d,_0x491db9);this[_0x1ff7a8(0x22b)][_0x1ff7a8(0x104)]({'width':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0xf7)],'height':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0x1dc)]}),_0x1f9a7a[_0x1ff7a8(0x1c7)]({'flipX':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0x2d5)],'flipY':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0x219)],'left':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0x11f)],'top':_0x4122ec[_0x1ff7a8(0x98)]['top'],'width':_0x4122ec[_0x1ff7a8(0x98)]['width'],'height':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0x1dc)],'angle':_0x4122ec[_0x1ff7a8(0x228)]}),_0x1f9a7a[_0x1ff7a8(0x15d)](!0x0);let _0x5421db=(_0x3df2aa=(_0x1d9a99=this[_0x1ff7a8(0x16d)])==null?void 0x0:_0x1d9a99[_0x1ff7a8(0x2c7)])==null?_0x38c521:_0x3df2aa;_0x1f6fc5[_0x1ff7a8(0x1c7)]({'left':_0x5421db['x']-_0x2bc8ec[_0x1ff7a8(0xa5)],'top':_0x5421db['y']-_0x2bc8ec[_0x1ff7a8(0xa5)]});}['_handleFreeEndpointMove'](_0x3780bb,_0x10fa4e,_0x2a2602,_0x5cb7f1,_0x5ce154){const _0x57c9ca=_0x43dbb9;var _0x4434f6,_0x5e82f0,_0xbdf99a,_0x484c9d;let _0x258126=(_0x4434f6=(_0x5e82f0=this[_0x57c9ca(0x16d)])==null?void 0x0:_0x5e82f0[_0x57c9ca(0x2c7)])==null?_0x3780bb:_0x4434f6,_0x2696bf=_0x427c58['computeConnectorResizeLayout'](_0x10fa4e,_0x258126,_0x2a2602);_0x5cb7f1[_0x57c9ca(0x1c7)]({'flipX':_0x2696bf[_0x57c9ca(0x98)]['flipX'],'flipY':_0x2696bf[_0x57c9ca(0x98)]['flipY'],'left':_0x2696bf[_0x57c9ca(0x98)][_0x57c9ca(0x11f)],'top':_0x2696bf[_0x57c9ca(0x98)][_0x57c9ca(0x16e)],'width':_0x2696bf[_0x57c9ca(0x98)][_0x57c9ca(0xf7)],'height':_0x2696bf[_0x57c9ca(0x98)][_0x57c9ca(0x1dc)],'angle':_0x2696bf[_0x57c9ca(0x98)][_0x57c9ca(0x2e1)]});let _0x4f42fe=(_0xbdf99a=(_0x484c9d=this[_0x57c9ca(0x16d)])==null?void 0x0:_0x484c9d[_0x57c9ca(0x2c7)])==null?_0x3780bb:_0xbdf99a;_0x5ce154[_0x57c9ca(0x1c7)]({'left':_0x4f42fe['x']-_0x2bc8ec[_0x57c9ca(0xa5)],'top':_0x4f42fe['y']-_0x2bc8ec[_0x57c9ca(0xa5)]});}[_0x43dbb9(0x1e3)](_0x354fce){const _0x52766c=_0x43dbb9;if(!this['_unitId']||!this[_0x52766c(0x250)])return null;let {shapeId:_0x3efe46,cxnIndex:_0x318ed0}=_0x354fce,_0x2f20e6=this[_0x52766c(0x1ff)]['getShapeModel'](this[_0x52766c(0x238)],this[_0x52766c(0x250)],_0x3efe46);if(!_0x2f20e6)return null;let _0x3fc848=this[_0x52766c(0xcc)][_0x52766c(0x171)]({'unitId':this['_unitId'],'subUnitId':this[_0x52766c(0x250)],'drawingId':_0x3efe46});if(!(_0x3fc848!=null&&_0x3fc848['transform']))return null;let {left:_0x5a1f72=0x0,top:_0x19d462=0x0,width:_0x361e87=0x0,height:_0x146e59=0x0,flipX:_0x293225=!0x1,flipY:_0x3766eb=!0x1,angle:_0x1d94c4}=_0x3fc848[_0x52766c(0x10c)];_0x2f20e6[_0x52766c(0x104)]({'width':_0x361e87,'height':_0x146e59});let _0x513808=_0x2f20e6['getConnectionSiteList']()[_0x52766c(0x218)](_0x11873f=>_0x11873f[_0x52766c(0x2b9)]===_0x318ed0);if(!_0x513808)return null;let _0x34b1f=_0x293225?_0x361e87-_0x513808['x']:_0x513808['x'],_0x2c0188=_0x3766eb?_0x146e59-_0x513808['y']:_0x513808['y'];if(_0x1d94c4!==0x0&&_0x1d94c4!=null){let _0x270696=_0x1d94c4*Math['PI']/0xb4,_0x5127de=Math[_0x52766c(0x109)](_0x270696),_0x3862d7=Math['sin'](_0x270696),_0x5c60bf=_0x361e87/0x2,_0x1f2e3a=_0x146e59/0x2,_0x44faa1=_0x34b1f-_0x5c60bf,_0x568920=_0x2c0188-_0x1f2e3a;_0x34b1f=_0x5c60bf+_0x44faa1*_0x5127de-_0x568920*_0x3862d7,_0x2c0188=_0x1f2e3a+_0x44faa1*_0x3862d7+_0x568920*_0x5127de;}_0x34b1f+=_0x5a1f72,_0x2c0188+=_0x19d462;let _0x367fde=_0x513808['ang']/0xea60;_0x293225&&(_0x367fde=0xb4-_0x367fde),_0x3766eb&&(_0x367fde=-_0x367fde),_0x367fde+=_0x1d94c4||0x0,_0x367fde=(_0x367fde%0x168+0x168)%0x168;let _0x220241=_0x15c292({'left':_0x5a1f72,'top':_0x19d462,'width':_0x361e87,'height':_0x146e59},_0x1d94c4||0x0);return{'point':{'x':_0x34b1f,'y':_0x2c0188},'angle':_0x367fde,'bounds':_0x220241};}['_calculateFreeEndpointAngle'](_0x10f73f,_0x22c2ef){const _0x34820e=_0x43dbb9;let _0x4e4797=_0x22c2ef['x']-_0x10f73f['x'],_0x31a2fd=_0x22c2ef['y']-_0x10f73f['y'];return Math[_0x34820e(0x2b8)](_0x4e4797)>=Math[_0x34820e(0x2b8)](_0x31a2fd)?_0x4e4797>=0x0?0xb4:0x0:_0x31a2fd>=0x0?0x10e:0x5a;}['_reset'](){const _0x4eba4b=_0x43dbb9;this[_0x4eba4b(0x14f)]=void 0x0,this[_0x4eba4b(0x238)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x4eba4b(0x2d4)]();}[_0x43dbb9(0x2dd)](){const _0x42e451=_0x43dbb9;this['_clearShapeConnectorHandlerObjects'](),super[_0x42e451(0x2dd)]();}};_r=Z([X(0x1,_0x4d9cac),X(0x2,_0x263af6),X(0x3,_0x324617),X(0x4,_0x7113c7),X(0x5,_0x450bf3(_0x26a217)),X(0x6,_0x450bf3(Tn)),X(0x7,_0x450bf3(mr))],_r);let vr=class extends _0x4760b3{constructor(_0x4a1300,_0x5ba818,_0x290008){const _0x15ef3e=_0x43dbb9;super(),this[_0x15ef3e(0x274)]=_0x4a1300,this['_drawingManagerService']=_0x5ba818,this[_0x15ef3e(0xf2)]=_0x290008,this['_initPrinting']();}[_0x43dbb9(0x203)](){const _0x4fffbe=_0x43dbb9;this[_0x4fffbe(0x11b)](this[_0x4fffbe(0x274)][_0x4fffbe(0x2c8)][_0x4fffbe(0x2a1)](this[_0x4fffbe(0x274)][_0x4fffbe(0x2c8)][_0x4fffbe(0x160)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x2027ba,_0x4ccd29,_0x305303)=>{const _0xa4779c=_0x4fffbe;var _0x2a6d10;let {unitId:_0x129e37,subUnitId:_0x1948e7,scene:_0x232bb7,resourceCollector:_0x1729bb}=_0x4ccd29,_0x5335d6=(_0x2a6d10=this['_drawingManagerService'][_0xa4779c(0x266)](_0x129e37))==null?void 0x0:_0x2a6d10[_0x1948e7];return _0x5335d6==null||_0x5335d6[_0xa4779c(0x196)][_0xa4779c(0x200)](_0x2ba199=>{const _0x3bae4f=_0xa4779c;let _0x6b80fa=_0x5335d6[_0x3bae4f(0x1f8)][_0x2ba199];_0x6b80fa[_0x3bae4f(0x2cb)]===_0x5d03f6[_0x3bae4f(0x23a)]&&!_0x6b80fa[_0x3bae4f(0x237)]&&this[_0x3bae4f(0xf2)][_0x3bae4f(0x1e7)](_0x6b80fa,_0x232bb7,{'resourceCollector':_0x1729bb});}),_0x305303(_0x2027ba);}}));}};vr=Z([X(0x0,_0x450bf3(_0x11a3e2)),X(0x1,_0x324617),X(0x2,_0x450bf3(Q))],vr);let yr=class extends _0x4760b3{constructor(_0x46ff1f,_0x763a4,_0x474ea1){const _0x4c3d69=_0x43dbb9;super(),this[_0x4c3d69(0x285)]=_0x46ff1f,this[_0x4c3d69(0x1ca)]=_0x763a4,this[_0x4c3d69(0xb0)]=_0x474ea1,this[_0x4c3d69(0x2a3)]();}['_initPermission'](){const _0x714f25=_0x43dbb9;this[_0x714f25(0x11b)](this[_0x714f25(0x285)][_0x714f25(0x289)](_0x6c3cb4=>{const _0x56f836=_0x714f25;let _0x346b81,_0x2a8e94;if(_0x6c3cb4['id']===_0x28064d['id']||_0x6c3cb4['id']===_0xedfea5['id']||_0x6c3cb4['id']===_0x551591['id']){let _0x582dfc=_0x6c3cb4['params'];_0x346b81=_0x582dfc['unitId'],_0x2a8e94=_0x582dfc[_0x56f836(0x212)];}!_0x346b81||!_0x2a8e94||this[_0x56f836(0xb0)][_0x56f836(0x2e6)]({'workbookTypes':[_0x1b5cb2],'worksheetTypes':[_0x194b28]},_0x346b81,_0x2a8e94)||this[_0x56f836(0xb0)]['blockExecuteWithoutPermission'](this['_localeService']['t']('sheets-shape-ui.permission.editErr'));}));}};yr=Z([X(0x0,_0x450bf3(_0x4d9cac)),X(0x1,_0x450bf3(_0xa3717a)),X(0x2,_0x450bf3(_0xf21f2))],yr);let br=class extends _0x4760b3{constructor(_0x12fb19,_0x2381b7,_0x3221ff,_0x4e0c3b,_0x15906e,_0x3856a4,_0x1cffd9,_0x343686,_0x195da9,_0x43c76b,_0x55aaa4){const _0x23b6d6=_0x43dbb9;super(),this[_0x23b6d6(0xcd)]=_0x12fb19,this[_0x23b6d6(0x1d5)]=_0x2381b7,this[_0x23b6d6(0x119)]=_0x3221ff,this[_0x23b6d6(0x1ff)]=_0x4e0c3b,this[_0x23b6d6(0x1ca)]=_0x15906e,this['_commandService']=_0x3856a4,this[_0x23b6d6(0xcc)]=_0x1cffd9,this['_sheetCanvasPopManagerService']=_0x343686,this['_contextService']=_0x195da9,this[_0x23b6d6(0x87)]=_0x43c76b,this[_0x23b6d6(0x1a8)]=_0x55aaa4,Y(this,_0x23b6d6(0x2da),null),Y(this,'_activeShapeInfo',null),Y(this,'_isOpenedShapeEditPanel',!0x1),Y(this,_0x23b6d6(0xc9),0x0),Y(this,'_initializedShapePopupMenu',new Set()),Y(this,_0x23b6d6(0x1d3),[]),this[_0x23b6d6(0x208)](),this[_0x23b6d6(0x11b)](this[_0x23b6d6(0xcd)][_0x23b6d6(0x240)](_0x2a1b28[_0x23b6d6(0x1e0)])[_0x23b6d6(0x28f)](_0x528467=>{const _0x183fd1=_0x23b6d6;if(!_0x528467){var _0x46e082;(_0x46e082=this[_0x183fd1(0x2da)])==null||_0x46e082[_0x183fd1(0x2dd)]();return;}this[_0x183fd1(0x225)](_0x528467);})),this[_0x23b6d6(0xe7)](),this[_0x23b6d6(0x2eb)](),this['initShapePopupMenu'](),this[_0x23b6d6(0x11b)](this['_shapeTextEditingService'][_0x23b6d6(0x17b)][_0x23b6d6(0x28f)](_0x233d62=>{const _0x47f149=_0x23b6d6;_0x233d62&&this[_0x47f149(0x213)]();}));}[_0x43dbb9(0x208)](){const _0x1db833=_0x43dbb9;this[_0x1db833(0x119)][_0x1db833(0xb7)](Un);}['_registerShapeMenu'](){const _0x2cae90=_0x43dbb9;this[_0x2cae90(0xbf)][_0x2cae90(0x147)](_0x5d03f6[_0x2cae90(0x23a)],this[_0x2cae90(0x18d)][_0x2cae90(0x21d)](this)),this['_sheetCanvasPopManagerService'][_0x2cae90(0x290)](_0x5d03f6['DRAWING_SHAPE'],0x6,0x4);}[_0x43dbb9(0x2bc)](){const _0x12ae2e=_0x43dbb9;this[_0x12ae2e(0xcd)][_0x12ae2e(0x1a7)](_0x2a1b28['UNIVER_SHEET'])['forEach'](_0x26f5a6=>this[_0x12ae2e(0x225)](_0x26f5a6));}[_0x43dbb9(0x18d)](_0x5e2315,_0x18b7ed,_0x3b2177,_0x2f1c07){const _0x531022=_0x43dbb9;return[{'label':_0x531022(0x1d8),'index':0x0,'commandId':qn['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'drawingId':_0x3b2177},'disable':_0x2f1c07===_0x5d03f6[_0x531022(0xb3)]},{'label':_0x531022(0x24a),'index':0x1,'commandId':_0x10723d['id'],'commandParams':{'unitId':_0x5e2315,'drawings':[{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'drawingId':_0x3b2177,'drawingType':_0x2f1c07}]},'disable':!0x1},{'label':'sheets-shape-ui.hidePanel','index':0x2,'commandId':Kn['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'drawingId':_0x3b2177},'disable':!0x1},{'label':'sheets-shape-ui.toggleFlipH','index':0x3,'commandId':_0x494ee9['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'shapeId':_0x3b2177,'flipH':!0x0},'disable':!0x1},{'label':_0x531022(0x13d),'index':0x4,'commandId':_0x494ee9['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'shapeId':_0x3b2177,'flipV':!0x0},'disable':!0x1},{'label':_0x531022(0x2d6),'index':0x4,'commandId':_0x59af59['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'shapeId':_0x3b2177,'rotate':0x5a},'disable':!0x1},{'label':_0x531022(0x9a),'index':0x4,'commandId':_0x59af59['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'shapeId':_0x3b2177,'rotate':-0x5a},'disable':!0x1},{'label':'sheets-shape-ui.toggleTextVertical','index':0x4,'commandId':_0x1e9400['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'shapeId':_0x3b2177},'disable':!0x1}];}['_getShapeInfo'](_0x24b19d,_0x5751d1,_0x7453ac){const _0x34e9a6=_0x43dbb9;let _0xca66c2=this[_0x34e9a6(0x1ff)]['getShapeTypeById'](_0x24b19d,_0x5751d1,_0x7453ac),_0x40afd6=this[_0x34e9a6(0x1ff)]['getShapeDataById'](_0x24b19d,_0x5751d1,_0x7453ac);return _0xca66c2!==void 0x0&&_0x40afd6!==void 0x0?{'shapeData':_0x40afd6,'shapeId':_0x7453ac,'shapeType':_0xca66c2,'unitId':_0x24b19d,'subUnitId':_0x5751d1,'version':this[_0x34e9a6(0xc9)],'disableShapeOption':!0x1}:null;}['_createShapePopupMenu'](_0x106ebe){const _0x4291ec=_0x43dbb9;if(!_0x106ebe)return;let _0x10df5d=_0x106ebe[_0x4291ec(0xb8)]();this[_0x4291ec(0x87)]['has'](_0x10df5d)&&!this['_initializedShapePopupMenu']['has'](_0x10df5d)&&(this['_popupMenuListener'](_0x10df5d),this['_initializedShapePopupMenu']['add'](_0x10df5d));}['_clearPopups'](){const _0xa246b4=_0x43dbb9;this[_0xa246b4(0x1d3)][_0xa246b4(0x200)](_0x58c970=>_0x58c970['dispose']()),this['_disposePopups']['length']=0x0;}[_0x43dbb9(0x226)](_0x1d615c){const _0x5d516f=_0x43dbb9;var _0x4ce03a;let _0x5736b5=(_0x4ce03a=this[_0x5d516f(0x87)]['getRenderById'](_0x1d615c))==null?void 0x0:_0x4ce03a['scene'],_0x3610e9=_0x5736b5==null?void 0x0:_0x5736b5[_0x5d516f(0x84)]();!_0x5736b5||!_0x3610e9||(this[_0x5d516f(0x11b)](_0x3610e9[_0x5d516f(0x99)][_0x5d516f(0x28f)](()=>{const _0x3711b2=_0x5d516f;let _0x4ef2c2=_0x3610e9[_0x3711b2(0x2c9)]();if(this[_0x3711b2(0x213)](),this[_0x3711b2(0x191)]||_0x4ef2c2[_0x3711b2(0xb4)]>0x1)return;let _0x4423e2=_0x4ef2c2[_0x3711b2(0x133)]()[_0x3711b2(0x166)]()['value'];if(!_0x4423e2)return;let _0x7f16be=this[_0x3711b2(0xcc)][_0x3711b2(0x9f)](_0x4423e2[_0x3711b2(0xe8)]);if(!_0x7f16be||_0x7f16be['drawingType']!==_0x5d03f6['DRAWING_SHAPE'])return;let {unitId:_0x9b0a2,subUnitId:_0x4d4973,drawingId:_0x40f857,drawingType:_0x1d6596}=_0x7f16be,_0x133d97=this[_0x3711b2(0x2c5)](_0x9b0a2,_0x4d4973,_0x40f857);if(!_0x133d97)return;this['_contextService'][_0x3711b2(0x1c9)](_0x596494,!0x0);let _0x4817ad=this[_0x3711b2(0xbf)]['attachPopupToObject'](_0x4423e2,{'componentKey':An,'direction':_0x3711b2(0x20e),'offset':[0x0,_0x9bdae2],'extraProps':{'unitId':_0x9b0a2,'subUnitId':_0x4d4973,'drawingId':_0x40f857,'drawingType':_0x1d6596,'shapeType':_0x133d97['shapeType'],'shapeData':_0x133d97[_0x3711b2(0x106)]}});this[_0x3711b2(0x1d3)][_0x3711b2(0x241)](this[_0x3711b2(0x11b)](_0x4817ad)),this['_drawingManagerService'][_0x3711b2(0x27f)]()['find'](_0x4d8f2b=>_0x4d8f2b[_0x3711b2(0x25d)]===_0x9b0a2&&_0x4d8f2b['subUnitId']===_0x4d4973&&_0x4d8f2b['drawingId']===_0x40f857)||this[_0x3711b2(0xcc)][_0x3711b2(0x141)]([{'unitId':_0x9b0a2,'subUnitId':_0x4d4973,'drawingId':_0x40f857}]);})),this['disposeWithMe'](_0x3610e9[_0x5d516f(0xee)][_0x5d516f(0x28f)](()=>{const _0x1348cc=_0x5d516f;this[_0x1348cc(0x213)](),this[_0x1348cc(0x216)]['setContextValue'](_0x596494,!0x1),this[_0x1348cc(0xcc)][_0x1348cc(0x141)](null);})),this[_0x5d516f(0x11b)](_0x3610e9[_0x5d516f(0x18c)][_0x5d516f(0x28f)](()=>{const _0x42a488=_0x5d516f;this[_0x42a488(0x213)]();})),this[_0x5d516f(0x11b)](_0x3610e9['changeStart$'][_0x5d516f(0x28f)](()=>{const _0x370b36=_0x5d516f;this[_0x370b36(0x213)]();})));}[_0x43dbb9(0xe7)](){const _0x5a3b7b=_0x43dbb9;this[_0x5a3b7b(0x11b)](this['_commandService'][_0x5a3b7b(0x1f7)](_0x351bb8=>{const _0x111fcb=_0x5a3b7b;if(_0x351bb8['id']===qn['id']){let {unitId:_0x455d02,subUnitId:_0x55dc45,drawingId:_0x286405}=_0x351bb8[_0x111fcb(0x118)];this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x455d02,_0x55dc45,_0x286405),this[_0x111fcb(0x213)](),this[_0x111fcb(0x28e)]();}if(_0x351bb8['id']===Kn['id']&&(this[_0x111fcb(0x1ea)]=null,this['_closeShapeEditPanel']()),_0x351bb8['id']===_0x19b81c['id']){let {unitId:_0x4b0819,subUnitId:_0x4c282c,shapeId:_0x4363ca}=_0x351bb8[_0x111fcb(0x118)];if(this[_0x111fcb(0x1ea)]&&this[_0x111fcb(0x1ea)][_0x111fcb(0xfc)]===_0x4363ca){let _0xb9b86a=this[_0x111fcb(0x2c5)](_0x4b0819,_0x4c282c,_0x4363ca);_0xb9b86a&&(this['_shapeEditPanelVersion']+=0x1,_0xb9b86a[_0x111fcb(0x10f)]=this[_0x111fcb(0xc9)],this[_0x111fcb(0x1ea)]=_0xb9b86a,this[_0x111fcb(0x191)]&&this[_0x111fcb(0x28e)]());}}})),this['disposeWithMe'](this['_drawingManagerService'][_0x5a3b7b(0x231)][_0x5a3b7b(0x28f)](_0x1de67b=>{const _0x1ffb26=_0x5a3b7b;if(this[_0x1ffb26(0x191)]===!0x1)return;if(_0x1de67b[_0x1ffb26(0x15f)]===0x0){this[_0x1ffb26(0x1ea)]=null,this[_0x1ffb26(0x23d)]();return;}if(_0x1de67b['length']===0x1&&_0x1de67b[0x0]['drawingType']===_0x5d03f6[_0x1ffb26(0x23a)]&&(this[_0x1ffb26(0xc9)]+=0x1,this[_0x1ffb26(0x1ea)]=this[_0x1ffb26(0x2c5)](_0x1de67b[0x0][_0x1ffb26(0x25d)],_0x1de67b[0x0][_0x1ffb26(0x212)],_0x1de67b[0x0]['drawingId']),this[_0x1ffb26(0x1ea)])){this['_openShapeEditPanel']();return;}let _0x345947=_0x1de67b[_0x1ffb26(0xb6)](_0x1e7c20=>_0x1e7c20[_0x1ffb26(0x2cb)]===_0x5d03f6[_0x1ffb26(0x23a)]);if(_0x1de67b[_0x1ffb26(0x15f)]>0x1&&_0x345947['length']===_0x1de67b[_0x1ffb26(0x15f)]){if(this[_0x1ffb26(0xc9)]+=0x1,this[_0x1ffb26(0x1ea)]=this[_0x1ffb26(0x2c5)](_0x1de67b[0x0][_0x1ffb26(0x25d)],_0x1de67b[0x0]['subUnitId'],_0x1de67b[0x0][_0x1ffb26(0x1a9)]),this['_activeShapeInfo']){this[_0x1ffb26(0x28e)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x1ffb26(0x1ea)]=this[_0x1ffb26(0x2c5)](_0x1de67b[0x0][_0x1ffb26(0x25d)],_0x1de67b[0x0]['subUnitId'],_0x1de67b[0x0]['drawingId']),this[_0x1ffb26(0x1ea)]){this[_0x1ffb26(0x1ea)][_0x1ffb26(0x1b3)]=!0x0,this[_0x1ffb26(0x28e)]();return;}}this['_closeShapeEditPanel']();}));}[_0x43dbb9(0x28e)](){const _0x26cfaf=_0x43dbb9;this['_activeShapeInfo']&&(this[_0x26cfaf(0x2da)]=this[_0x26cfaf(0x1d5)][_0x26cfaf(0x291)]({'id':On,'header':{'title':this[_0x26cfaf(0x1ca)]['t'](_0x26cfaf(0xff))},'width':0x184,'children':{'label':On,...this[_0x26cfaf(0x1ea)]},'onClose':()=>{const _0x5338ce=_0x26cfaf;this[_0x5338ce(0xcc)]['focusDrawing'](null),this['_contextService'][_0x5338ce(0x1c9)](_0x596494,!0x1),this[_0x5338ce(0x2da)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}['_closeShapeEditPanel'](){const _0x10c496=_0x43dbb9;this['_isOpenedShapeEditPanel']=!0x1,this[_0x10c496(0x1d5)][_0x10c496(0x25f)](On),this[_0x10c496(0x2da)]=null,this[_0x10c496(0x216)][_0x10c496(0x1c9)](_0x596494,!0x1),this['_drawingManagerService']['focusDrawing'](null);}};br=Z([X(0x0,_0x7113c7),X(0x1,_0x450bf3(_0x10b5ac)),X(0x2,_0x44a75b),X(0x3,_0x450bf3(_0x26a217)),X(0x4,_0x450bf3(_0xa3717a)),X(0x5,_0x4d9cac),X(0x6,_0x324617),X(0x7,_0x450bf3(_0x15ebbe)),X(0x8,_0x21d773),X(0x9,_0x263af6),X(0xa,_0x450bf3(ir))],br);let $=class extends _0x33cfb9{constructor(_0x455ba2=Jn,_0x321202,_0x56aa4a,_0x42a527,_0x204e79){const _0x43179f=_0x43dbb9;super(),this[_0x43179f(0x9e)]=_0x455ba2,this['_injector']=_0x321202,this[_0x43179f(0x285)]=_0x56aa4a,this['_configService']=_0x42a527,this[_0x43179f(0x87)]=_0x204e79;let {..._0x2e6d11}=_0x2f8dd2({},Jn,this[_0x43179f(0x9e)]);this[_0x43179f(0x1d0)][_0x43179f(0x2df)](_0x43179f(0xe6),_0x2e6d11),this[_0x43179f(0xdd)]();}[_0x43dbb9(0x248)](){const _0x1a9e30=_0x43dbb9;_0xdf78a(this[_0x1a9e30(0x1f4)],[[br],[dr],[Q],[vr]]);}[_0x43dbb9(0x96)](){const _0x17b486=_0x43dbb9;this[_0x17b486(0x1f4)][_0x17b486(0x1bd)](br)[_0x17b486(0x2bc)]();}[_0x43dbb9(0xce)](){const _0x3c9b05=_0x43dbb9;[[mr],[Tn],[hr]]['forEach'](_0x3cb23d=>this['_injector'][_0x3c9b05(0x10b)](_0x3cb23d)),_0xdf78a(this[_0x3c9b05(0x1f4)],[[hr],[Tn]]),this['_renderManagerService'][_0x3c9b05(0xe1)](_0x2a1b28[_0x3c9b05(0x1e0)],[mr]),this[_0x3c9b05(0x87)][_0x3c9b05(0xe1)](_0x2a1b28[_0x3c9b05(0x1e0)],[sr]),this[_0x3c9b05(0x87)]['registerRenderModule'](_0x2a1b28[_0x3c9b05(0x1e0)],[_r]),this[_0x3c9b05(0x87)]['registerRenderModule'](_0x2a1b28['UNIVER_SHEET'],[lr]),this[_0x3c9b05(0x87)][_0x3c9b05(0xe1)](_0x2a1b28['UNIVER_DOC'],[ur]);}['onStarting'](){const _0x433500=_0x43dbb9;this[_0x433500(0x1f4)][_0x433500(0x10b)]([or]),this[_0x433500(0x1f4)][_0x433500(0x1bd)](or);let _0x1f1598=this['_injector'];[[br],[dr],[Q],[vr],[$n],[ir],[cr],[Pn],[yr]][_0x433500(0x200)](_0x3b15cc=>_0x1f1598[_0x433500(0x10b)](_0x3b15cc)),_0xdf78a(this[_0x433500(0x1f4)],[[br],[dr],[Q],[$n],[ir],[cr],[Pn],[yr]]);}[_0x43dbb9(0xdd)](){const _0x27dedb=_0x43dbb9;[Dn,gn,Kn,qn,Nn,En]['forEach'](_0xaeab53=>this[_0x27dedb(0x11b)](this[_0x27dedb(0x285)][_0x27dedb(0x123)](_0xaeab53)));}};Y($,_0x43dbb9(0x178),_0x2a1b28['UNIVER_SHEET']),Y($,_0x43dbb9(0x111),'SHEET_SHAPE_UI_PLUGIN'),Y($,_0x43dbb9(0x11e),Wn),Y($,_0x43dbb9(0x10f),Gn),$=Z([_0x8fb429(_0x2cef26,_0x5337ae,_0x56b5ca,_0x249942),X(0x1,_0x450bf3(_0x183eff)),X(0x2,_0x4d9cac),X(0x3,_0x1e0ba7),X(0x4,_0x263af6)],$);export{Un as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};
|