@univerjs-pro/sheets-shape-ui 1.0.0-alpha.4 → 1.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +17 -17
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3721df=_0x3b42;(function(_0x373cc1,_0x3a6646){const _0x40405e=_0x3b42,_0x5280a6=_0x373cc1();while(!![]){try{const _0x6d1023=parseInt(_0x40405e(0x200))/0x1+parseInt(_0x40405e(0x2f8))/0x2*(-parseInt(_0x40405e(0xb9))/0x3)+parseInt(_0x40405e(0xec))/0x4+parseInt(_0x40405e(0x174))/0x5+parseInt(_0x40405e(0x278))/0x6*(-parseInt(_0x40405e(0xf5))/0x7)+-parseInt(_0x40405e(0x2a6))/0x8+-parseInt(_0x40405e(0x102))/0x9*(-parseInt(_0x40405e(0x25b))/0xa);if(_0x6d1023===_0x3a6646)break;else _0x5280a6['push'](_0x5280a6['shift']());}catch(_0x2fcf4d){_0x5280a6['push'](_0x5280a6['shift']());}}}(_0x1222,0x3e7ac));import{ComponentManager as _0xd6eaa9,IMenuManagerService as _0x444ff9,ISidebarService as _0x55dc5d,IconManager as _0x51b1fb,MenuItemType as _0x1c948f,RibbonInsertGroup as _0x3f9387,getMenuHiddenObservable as _0x35acb4,useDependency as _0x25b7f6,useObservable as _0x26444c}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x70c837,ImageSourceTypeEnum as _0x588265,ShapeArrowSizeEnum as _0x82696f,ShapeArrowTypeEnum as _0x2333d6,ShapeDefaultConfig as _0x170bf6,ShapeFillEnum as _0x264689,ShapeLineTypeEnum as _0x21178c,ShapeModel as _0x2bcb3a,ShapeRenderModeEnum as _0x19c6f8,ShapeTypeEnum as _0x56b767,computeConnectorRouteLayout as _0xa851c9,getBasicShapeRotateBound as _0x1218d5,isConnectorShape as _0x51a857,isCurvedConnectorShape as _0x3bc6fd,routeConnectorLineShape as _0x476f7c}from'@univerjs-pro/engine-shape';import{SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x278e4a,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x1d8d74,ShapeEditPanel as _0x5c6639,ShapeFloatingToolbar as _0x1c342a,ShapeGroupEnum as _0x302dfa,ShapePickerDropdown as _0x5317f0,ShapePickerPanel as _0x46042a,ShapeTextEditorContainer as _0x343aa1,ShapeTextFloatMenuRenderControllerBase as _0x260374,ShapeTextFloatToolbar as _0x11982e,UniverShapeEditorUIPlugin as _0x4ca5b4,activateDrawingObject as _0xe8ee4b,buildShapeTextDataUpdate as _0x3ecb17,clearActiveDrawingObjects as _0x40ea7f,createShapeTextBoxShapeData as _0x7ef105,getTextModel as _0x2909fb,getTextStyle as _0x46c9e2,normalizeShapeTextModel as _0x3e26cf,plainShapeTextToDocumentData as _0x552364,prepareShapeTextDocumentData as _0x4f039d,resolveShapeTextDocumentRenderLayout as _0x2e925a,resolveShapeTextEditorBehaviorShapeData as _0x39c773,resolveShapeTextEditorWrapStrategy as _0x52a092,shouldAllowShapeTextEditorHostSizeShrink as _0x3fec91,shouldClipShapeTextDocument as _0x4b2a8f}from'@univerjs-pro/shape-editor-ui';import{InsertShapeCommand as _0x24599f,InsertSheetsShapeMutation as _0x462d48,RemoveSheetsShapeMutation as _0x25666b,SetShapeDrawingDataCommand as _0x11fd9b,SetSheetsShapeRotateCommand as _0x5f6cf0,SetSheetsShapeTextVerticalToggleCommand as _0x177a15,SheetsShapeService as _0x2318dd,ToggleSheetsShapeFlipCommand as _0x2cbec4,UniverSheetsShapePlugin as _0x37e90c,UpdateConnectorRelationCommand as _0x2f3418,UpdateLineShapeResizeCommand as _0x9525c0,UpdateSheetsShapeDataMutation as _0x4ea02e}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x5d76f1,CommandType as _0x518569,DependentOn as _0x32752f,Disposable as _0x3ff889,DocumentDataModel as _0x178901,DrawingTypeEnum as _0x91d30f,FOCUSING_COMMON_DRAWINGS as _0x133140,FOCUSING_SHAPE_TEXT_EDITOR as _0x47dded,HorizontalAlign as _0x2be8d5,ICommandService as _0x27b781,IConfigService as _0x527c54,IContextService as _0x2d72db,IImageIoService as _0x3e0cef,IURLImageService as _0xf3fd29,IUndoRedoService as _0x11ea5d,IUniverInstanceService as _0xeac766,Inject as _0x44ac9c,Injector as _0x12e678,LocaleService as _0x52ec80,Plugin as _0x358c74,UniverInstanceType as _0x2c116a,VerticalAlign as _0xabb9d9,createInternalEditorID as _0x2d12f4,generateRandomId as _0x4b0b19,merge as _0x49cfca,toDisposable as _0x4e35de,touchDependencies as _0x65477a}from'@univerjs/core';import{CopySheetCommand as _0xe13458,RemoveSheetCommand as _0x28140a,SheetInterceptorService as _0x1ad409,SheetPermissionCheckController as _0x2fd853,SheetSkeletonService as _0x534dab,SheetsSelectionsService as _0x518d9a,WorkbookEditablePermission as _0x11551d,WorksheetEditPermission as _0x29539e,attachRangeWithCoord as _0x2a0478,discreteRangeToRange as _0x579c9e,getSheetCommandTarget as _0x458956}from'@univerjs/sheets';import{IDrawingManagerService as _0x30b385,SetDrawingSelectedOperation as _0x549ead,getDrawingShapeKeyByDrawingSearch as _0xc0766c}from'@univerjs/drawing';import{CURSOR_TYPE as _0x5615ac,Circle as _0x2cd80f,DRAWING_OBJECT_LAYER_INDEX as _0x1484b2,DocumentSkeleton as _0x3e4cfa,DocumentViewModel as _0x2f9712,Documents as _0x2de4d3,IRenderManagerService as _0x3ab9c0,Image as _0x6f9047,RENDER_CLASS_TYPE as _0x34cfe5,SHEET_VIEWPORT_KEY as _0x5e7f94,Shape as _0x39ac3d,Transform as _0x3bd327,Vector2 as _0x3e3387}from'@univerjs/engine-render';import{COPY_TYPE as _0x4ef22b,ISheetClipboardService as _0x3bfdf3,PREDEFINED_HOOK_NAME as _0x1bcd5c,SheetCanvasPopManagerService as _0x3d29b8,SheetPrintInterceptorService as _0x4c49ca,SheetScrollManagerService as _0x4f30c1,SheetSkeletonManagerService as _0x39e39b,deriveStateFromActiveSheet$ as _0x2654cc,getCurrentRangeDisable$ as _0x2a9b9c,getViewportByCell as _0x177de7}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x2c89d2,EMPTY as _0x4cf815,Observable as _0x521661,of as _0x232c55,switchMap as _0x319361}from'rxjs';import{DrawingCommonPanel as _0x3efe8e,DrawingImageClipService as _0x305aba,DrawingRenderService as _0x56a023,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0xde8950,OBJECT_LIST_FLOATING_SECTION_ID as _0x1532b7,ObjectListPanelBase as _0x233868,getCurrentUnitInfo as _0x72b568,getObjectListPanelLabels as _0x3450b9,getObjectListPanelSectionIdForDrawingType as _0x32953c,getObjectListPanelTypeName as _0xec3f99,insertGroupObject as _0x2dcd00}from'@univerjs/drawing-ui';import{jsx as _0x25dfce,jsxs as _0x14d810}from'react/jsx-runtime';import{UniverLicensePlugin as _0x2b9340}from'@univerjs-pro/license';import{SheetDrawingAnchor as _0x2f2813,SheetsDrawingGroupCopyPasteController as _0x3495cb,UniverSheetsDrawingUIPlugin as _0x437c52}from'@univerjs/sheets-drawing-ui';import{CopyDoubleIcon as _0x20e1e7}from'@univerjs/icons';import{DrawingApplyType as _0x19dac9,ISheetDrawingService as _0x1769d9,RemoveSheetDrawingCommand as _0xc60b82,SetDrawingApplyMutation as _0x86cf9f,SetDrawingArrangeCommand as _0x16f93c,SetSheetDrawingCommand as _0x23c05b,transformToAxisAlignPosition as _0x2708bd,transformToDrawingPosition as _0x31cd08}from'@univerjs/sheets-drawing';import{memo as _0x480e63,useEffect as _0x34db80,useMemo as _0x46c805,useReducer as _0x3a44d9,useState as _0x2d0567}from'react';import{DocSelectionManagerService as _0x2fc8f4}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x919a37,DocSelectionRenderService as _0x2f3dc8}from'@univerjs/docs-ui';function un(_0x513ee2,_0x164b65){const _0x217137=_0x3b42;let _0x3c7677={};for(let _0x517a27 of Object['keys'](_0x164b65)){let _0x9b0499=_0x164b65[_0x517a27],_0x3ce87e=_0x513ee2[_0x517a27];if(_0x9b0499!==void 0x0){if(_0x3ce87e===void 0x0){_0x3c7677[_0x517a27]=void 0x0;continue;}typeof _0x9b0499=='object'&&_0x9b0499&&!Array['isArray'](_0x9b0499)&&typeof _0x3ce87e==_0x217137(0x249)&&_0x3ce87e&&!Array[_0x217137(0x112)](_0x3ce87e)?_0x3c7677[_0x517a27]=un(_0x3ce87e,_0x9b0499):_0x3c7677[_0x517a27]=_0x3ce87e;}}return _0x3c7677;}const dn={'type':_0x518569[_0x3721df(0x1e9)],'id':'sheet.command.update-shape-data','handler':(_0x22c8a7,_0x3d454a)=>{const _0x9fd638=_0x3721df;let _0x3e806f=_0x22c8a7[_0x9fd638(0x2f5)](_0x2318dd),{unitId:_0x954535,subUnitId:_0x4b5dca,shapeType:_0x1c7066,shapeId:_0x2f3d35,shapeData:_0x22d648,oldShapeJSON:_0x2d2023}=_0x3d454a;if(!_0x3e806f['getShapeModel'](_0x954535,_0x4b5dca,_0x2f3d35))return!0x1;let _0x22d6cb=_0x22c8a7[_0x9fd638(0x2f5)](_0x27b781),_0x4a90da=_0x22c8a7[_0x9fd638(0x2f5)](_0x11ea5d),{oldShapeType:_0x772251,oldShapeData:_0x402f68={}}=_0x2d2023,_0x171dff=un(_0x402f68,_0x22d648||{}),_0xc962fb={'id':_0x4ea02e['id'],'params':{'unitId':_0x954535,'subUnitId':_0x4b5dca,'shapeId':_0x2f3d35,'shapeType':_0x1c7066,'shapeData':_0x22d648}},_0x56c3f1={'id':_0x4ea02e['id'],'params':{'unitId':_0x954535,'subUnitId':_0x4b5dca,'shapeId':_0x2f3d35,'shapeType':_0x772251,'shapeData':_0x171dff}};return _0x22d6cb[_0x9fd638(0x213)](_0xc962fb['id'],_0xc962fb['params'])?(_0x4a90da[_0x9fd638(0x129)]({'unitID':_0x954535,'undoMutations':[_0x56c3f1],'redoMutations':[_0xc962fb]}),!0x0):!0x1;}};function fn(_0x5085d3,_0x1acf42,_0x3369c7,_0x316561,_0x42601e,_0x2eb73f){const _0x2f39da=_0x3721df;let _0x50c2e5={'unitId':_0x1acf42,'subUnitId':_0x3369c7,'shapeId':_0x316561,'shapeData':_0x2eb73f,'oldShapeJSON':_0x42601e};return _0x5085d3[_0x2f39da(0x24b)](dn['id'],_0x50c2e5);}function pn(_0x5e28f0,_0x5ee9bd,_0x136f0d,_0x513674,_0x33ef8c,_0x573b3f){const _0x2c7066=_0x3721df;let _0x44c96c={'unitId':_0x5ee9bd,'subUnitId':_0x136f0d,'shapeId':_0x513674,'shapeData':_0x573b3f,'oldShapeJSON':_0x33ef8c};return _0x5e28f0[_0x2c7066(0x24b)](dn['id'],_0x44c96c);}function mn(_0x56ee72){'@babel/helpers - typeof';const _0x4343da=_0x3721df;return mn=typeof Symbol==_0x4343da(0x109)&&typeof Symbol['iterator']=='symbol'?function(_0x53f04b){return typeof _0x53f04b;}:function(_0x73199f){const _0x4aad1c=_0x4343da;return _0x73199f&&typeof Symbol==_0x4aad1c(0x109)&&_0x73199f[_0x4aad1c(0xf6)]===Symbol&&_0x73199f!==Symbol[_0x4aad1c(0x2a5)]?_0x4aad1c(0x2fd):typeof _0x73199f;},mn(_0x56ee72);}function hn(_0x2c9b09,_0x1a684f){const _0x5eee7d=_0x3721df;if(mn(_0x2c9b09)!=_0x5eee7d(0x249)||!_0x2c9b09)return _0x2c9b09;var _0x183669=_0x2c9b09[Symbol[_0x5eee7d(0x1f6)]];if(_0x183669!==void 0x0){var _0x47e54f=_0x183669[_0x5eee7d(0x182)](_0x2c9b09,_0x1a684f||_0x5eee7d(0x169));if(mn(_0x47e54f)!=_0x5eee7d(0x249))return _0x47e54f;throw TypeError(_0x5eee7d(0x27b));}return(_0x1a684f===_0x5eee7d(0x303)?String:Number)(_0x2c9b09);}function gn(_0x3666b1){const _0x286628=_0x3721df;var _0x333252=hn(_0x3666b1,_0x286628(0x303));return mn(_0x333252)=='symbol'?_0x333252:_0x333252+'';}function q(_0x536d1e,_0x56eeb3,_0x5f3010){const _0x360c67=_0x3721df;return(_0x56eeb3=gn(_0x56eeb3))in _0x536d1e?Object[_0x360c67(0x286)](_0x536d1e,_0x56eeb3,{'value':_0x5f3010,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x536d1e[_0x56eeb3]=_0x5f3010,_0x536d1e;}function _n(_0x1d2097,_0xdb1e5f,_0x1950b6){const _0x4873de=_0x3721df;var _0x36e2a9;let _0x1a6d17=_0x39c773(_0x1d2097,{..._0xdb1e5f,'dataModel':{...(_0x36e2a9=_0xdb1e5f[_0x4873de(0x11a)])==null?{}:_0x36e2a9,..._0x1950b6?{'doc':_0x1950b6}:null}}),_0x4f7654=_0x52a092(_0x1a6d17);return{'clip':_0x4b2a8f(_0x1a6d17,_0x4f7654),'wrapStrategy':_0x4f7654};}var vn=class extends _0x39ac3d{constructor(_0x49c260,_0x2cfe6d){const _0x48076b=_0x3721df;super(_0x49c260,_0x2cfe6d),q(this,_0x48076b(0x20d),void 0x0),q(this,_0x48076b(0x217),!0x0),q(this,'_drawingType',_0x91d30f['DRAWING_SHAPE']),q(this,_0x48076b(0x19a),!0x0),this[_0x48076b(0x20d)]={..._0x2cfe6d},this[_0x48076b(0x269)]();}['_init'](){const _0x334b1e=_0x3721df;this[_0x334b1e(0x190)][_0x334b1e(0x2ce)](_0x2202a5=>{const _0xbcfc32=_0x334b1e;this[_0xbcfc32(0xb6)](_0x2202a5);});}[_0x3721df(0x104)](_0x52f262){const _0x48383d=_0x3721df;this[_0x48383d(0x20d)][_0x48383d(0x253)]=_0x52f262;}[_0x3721df(0x2c4)](_0x5228b7){const _0x41bb42=_0x3721df;this['_props'][_0x41bb42(0x1d5)]=_0x5228b7,this['makeDirty'](!0x0);}get[_0x3721df(0xe5)](){const _0x28621c=_0x3721df;return this[_0x28621c(0x20d)][_0x28621c(0xe5)];}get[_0x3721df(0x183)](){const _0x5e862f=_0x3721df;return this[_0x5e862f(0x20d)][_0x5e862f(0x183)];}['_updateSrcRectByTransform'](_0x5a1170){const _0x417474=_0x3721df;if(this[_0x417474(0x20d)][_0x417474(0x2e8)]==null||!this[_0x417474(0x217)])return;let {width:_0x3b6fb0,height:_0x6b596a}=this,{width:_0x421d30=0x0,height:_0x182fdf=0x0}=_0x5a1170['preValue'],{left:_0x52d3f7=0x0,top:_0x270f31=0x0,right:_0x1949b9=0x0,bottom:_0x597668=0x0}=this[_0x417474(0x20d)][_0x417474(0x2e8)],_0x430efc=_0x52d3f7,_0x3b925f=_0x270f31,_0x4ac163=_0x1949b9,_0x248507=_0x597668,_0x3df327=!0x1;if(_0x421d30!==0x0&&_0x421d30!==_0x3b6fb0){let _0x533c09=_0x52d3f7/_0x421d30,_0x44a37d=_0x1949b9/_0x421d30;_0x430efc=_0x3b6fb0*_0x533c09,_0x4ac163=_0x3b6fb0*_0x44a37d,_0x3df327=!0x0;}if(_0x182fdf!==0x0&&_0x182fdf!==_0x6b596a){let _0x313d94=_0x270f31/_0x182fdf,_0x4a10fe=_0x597668/_0x182fdf;_0x3b925f=_0x6b596a*_0x313d94,_0x248507=_0x6b596a*_0x4a10fe,_0x3df327=!0x0;}_0x3df327&&this[_0x417474(0xfe)]({'left':_0x430efc,'top':_0x3b925f,'right':_0x4ac163,'bottom':_0x248507});}[_0x3721df(0xfe)](_0x85f73a){const _0x3a646a=_0x3721df;this[_0x3a646a(0x20d)][_0x3a646a(0x2e8)]=_0x85f73a,this[_0x3a646a(0x16b)](!0x0);}['setFillImage'](_0xb06353){const _0x594750=_0x3721df;this[_0x594750(0x20d)][_0x594750(0xe2)]=_0xb06353,this[_0x594750(0x16b)](!0x0);}set[_0x3721df(0x288)](_0x32c594){const _0x3350fb=_0x3721df;this[_0x3350fb(0xa6)]=_0x32c594;}get[_0x3721df(0x288)](){const _0x3a8e9d=_0x3721df;this['_transform']||this[_0x3a8e9d(0x14e)]();let _0x712ebe=this[_0x3a8e9d(0xa6)][_0x3a8e9d(0x1a8)]();return this['transformForAngle'](_0x712ebe);}get[_0x3721df(0x1d1)](){const _0x1f0db7=_0x3721df;return this[_0x1f0db7(0x20d)]['shapeModel'];}get[_0x3721df(0x1bf)](){const _0xa43dcf=_0x3721df;return this[_0xa43dcf(0x20d)]['shapeId'];}get['classType'](){const _0x4f6b21=_0x3721df;return _0x34cfe5[_0x4f6b21(0x153)];}[_0x3721df(0x16c)](_0x515a7a,_0x4519c7,_0x457652,_0x4da9fa){const _0x356873=_0x3721df;let _0x3b4937=this[_0x356873(0x20d)][_0x356873(0x1d1)];if(!_0x3b4937||!_0x4519c7)return;let _0x4161c0=_0x457652==null?this[_0x356873(0x19c)]:_0x457652,_0x4ce7a7=_0x4da9fa==null?this[_0x356873(0x193)]:_0x4da9fa,_0x387275={'shapeType':_0x3b4937[_0x356873(0x210)](),'width':_0x4161c0,'height':_0x4ce7a7},_0x50ce80={'renderMode':_0x19c6f8[_0x356873(0x179)],'oKey':this[_0x356873(0x204)],'image':this['_props'][_0x356873(0xe2)],'angle':this[_0x356873(0x300)]};_0x3b4937[_0x356873(0x229)](_0x387275),_0x515a7a[_0x356873(0xc8)]();let _0x1394de={'top':0x0,'left':0x0,'width':_0x4161c0,'height':_0x4ce7a7};_0x3b4937[_0x356873(0x211)](_0x515a7a,_0x1394de,_0x50ce80),_0x515a7a[_0x356873(0x247)]();let _0x208113=_0x3b4937['getShapeTextData'](),_0x3cb5b0=_0x3b4937[_0x356873(0xa7)](_0x1394de),_0x596ae3=_0x3b4937[_0x356873(0x251)]();if(_0x208113&&_0x3cb5b0&&!_0x596ae3){_0x515a7a['save'](),this[_0x356873(0x1a3)]()[_0x356873(0x124)]&&_0x515a7a[_0x356873(0x1d4)](-0x1,0x1);let _0x210504=_0x4161c0/0x2,_0x49819c=_0x4ce7a7/0x2;_0x515a7a['translate'](-_0x210504,-_0x49819c),_0x515a7a['beginPath'](),this[_0x356873(0x230)](_0x515a7a,_0x208113,_0x3cb5b0),_0x515a7a[_0x356873(0x247)]();}}[_0x3721df(0x1c1)](_0x5be830){}[_0x3721df(0x230)](_0x4f02f8,_0x4274f5,_0xc67c31){const _0x3c474d=_0x3721df;var _0x35b388;this[_0x3c474d(0x20d)]['isEditing']||(!((_0x35b388=_0x4274f5[_0x3c474d(0x11a)])!=null&&_0x35b388[_0x3c474d(0x140)])&&'isRichText'in _0x4274f5&&_0x4274f5[_0x3c474d(0x2f6)]===!0x1?this[_0x3c474d(0xf8)](_0x4f02f8,_0x4274f5,_0xc67c31):this[_0x3c474d(0x1c6)](_0x4f02f8,_0x4274f5,_0xc67c31));}['_drawSimpleText'](_0x334e75,_0x389a94,_0x9780b1){const _0x1437f2=_0x3721df;var _0xe3b488;this['_drawRichText'](_0x334e75,{..._0x389a94,'text':(_0xe3b488=_0x389a94[_0x1437f2(0x2b7)])==null?'':_0xe3b488,'dataModel':{'doc':_0x552364(_0x389a94,_0x1437f2(0xc4)+this[_0x1437f2(0x204)])}},_0x9780b1);}[_0x3721df(0x1c6)](_0x1d29fb,_0x4b57eb,_0x45c240){const _0x5de5a5=_0x3721df;var _0x5403d0,_0x577038;let _0x2c8753=this[_0x5de5a5(0x20d)]['localeService'];if(!_0x4b57eb[_0x5de5a5(0x11a)]||!_0x2c8753)return;let _0x395124=_0x3e26cf(_0x4b57eb[_0x5de5a5(0x11a)]);if(!_0x395124)return;let _0x315507=_0x395124[_0x5de5a5(0x140)];if(!_0x315507)return;let _0x5143f5=(_0x5403d0=_0x395124['va'])==null?_0xabb9d9['TOP']:_0x5403d0,_0x29f233=(_0x577038=_0x395124['ha'])==null?_0x2be8d5[_0x5de5a5(0x262)]:_0x577038,_0x1a94bd=_n(this[_0x5de5a5(0x20d)][_0x5de5a5(0x1d1)][_0x5de5a5(0x21d)](),_0x4b57eb,_0x315507),_0x1f69f0=_0x4b57eb[_0x5de5a5(0x14b)],_0x324822=new _0x178901(_0x4f039d(_0x315507,{'isHorizontal':_0x1f69f0!==!0x1,'textRect':_0x45c240,'verticalAlign':_0x5143f5,'horizontalAlign':_0x29f233,'wrapStrategy':_0x1a94bd[_0x5de5a5(0x2a9)]})),_0xadc60=new _0x2f9712(_0x324822),_0x35b8fa=_0x3e4cfa['create'](_0xadc60,_0x2c8753);_0x35b8fa[_0x5de5a5(0x235)]();let _0x4412f1=_0x35b8fa['getActualSize']()['actualHeight'],_0x1e0d4c=_0x2e925a({'contentHeight':_0x4412f1,'verticalAlign':_0x5143f5,'viewportHeight':_0x45c240[_0x5de5a5(0x193)]});_0x324822['updateDocumentStyle']({'pageSize':{'width':_0x1f69f0===!0x1?_0x45c240[_0x5de5a5(0x193)]:_0x45c240[_0x5de5a5(0x19c)],'height':_0x1e0d4c[_0x5de5a5(0x11d)]}}),_0x324822[_0x5de5a5(0xaa)]({'t':_0x1e0d4c[_0x5de5a5(0x130)]}),_0x35b8fa['calculate']();let _0x49fbd1=new _0x2de4d3(_0x5de5a5(0x28a)+this[_0x5de5a5(0x204)],_0x35b8fa,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x5de5a5(0x16b)](!0x0)});_0x49fbd1[_0x5de5a5(0x20e)](_0x45c240[_0x5de5a5(0x19c)],_0x1e0d4c['contentHeight']),_0x1d29fb['save'](),_0x1d29fb[_0x5de5a5(0x18c)](_0x45c240[_0x5de5a5(0x207)],_0x45c240[_0x5de5a5(0x2b8)]),_0x1a94bd['clip']&&(_0x1d29fb[_0x5de5a5(0x284)](),_0x1d29fb['rect'](0x0,_0x1e0d4c[_0x5de5a5(0x100)],_0x45c240[_0x5de5a5(0x19c)],_0x1e0d4c[_0x5de5a5(0xd4)]),_0x1d29fb[_0x5de5a5(0x282)]()),_0x1e0d4c[_0x5de5a5(0x246)]&&_0x1d29fb['translateWithPrecision'](0x0,_0x1e0d4c[_0x5de5a5(0x246)]),_0x49fbd1['draw'](_0x1d29fb),_0x1d29fb[_0x5de5a5(0x247)](),_0x49fbd1[_0x5de5a5(0x250)](),_0x35b8fa[_0x5de5a5(0x250)](),_0xadc60[_0x5de5a5(0x250)](),_0x324822['dispose']();}[_0x3721df(0x211)](_0x40ce8a,_0x5f42f1,_0x4764d0=!0x1){const _0x2732ff=_0x3721df;if(!this[_0x2732ff(0xbf)])return this[_0x2732ff(0x16b)](!0x1),this;let {width:_0x16d60a,height:_0x107f11,left:_0x36c326,top:_0x1c3204}=this,_0x4bd1bd=this['getRealBound']();if(_0x16d60a=_0x4bd1bd['width'],_0x107f11=_0x4bd1bd[_0x2732ff(0x193)],_0x36c326=_0x4bd1bd[_0x2732ff(0x207)],_0x1c3204=_0x4bd1bd[_0x2732ff(0x2b8)],this['isRender'](_0x5f42f1)){let {top:_0x55b93a,left:_0x2719e7,bottom:_0x4c3c5c,right:_0x45360f}=_0x5f42f1['viewBound'];if(_0x16d60a+this[_0x2732ff(0xd3)]+_0x36c326<_0x2719e7||_0x45360f<_0x36c326||_0x107f11+this[_0x2732ff(0xd3)]+_0x1c3204<_0x55b93a||_0x4c3c5c<_0x1c3204)return this;}let _0x308c54=_0x36c326+_0x16d60a/0x2,_0xf8c5b9=_0x1c3204+_0x107f11/0x2,_0xcee75b=this[_0x2732ff(0x288)][_0x2732ff(0x2fa)]();if(this[_0x2732ff(0x20d)][_0x2732ff(0x1d5)]){let _0x2bf4f5=this['getState'](),_0x2f74fd=new _0x3bd327();_0x2f74fd[_0x2732ff(0x146)]({..._0x2bf4f5}),_0xcee75b=_0x2f74fd[_0x2732ff(0x2fa)]();}return _0x40ce8a[_0x2732ff(0xc8)](),this[_0x2732ff(0x20d)][_0x2732ff(0x1d1)][_0x2732ff(0x2f9)]===!0x0||_0x40ce8a[_0x2732ff(0x288)](_0xcee75b[0x0],_0xcee75b[0x1],_0xcee75b[0x2],_0xcee75b[0x3],_0x308c54,_0xf8c5b9),this[_0x2732ff(0x16c)](_0x40ce8a,_0x5f42f1,_0x16d60a,_0x107f11),_0x40ce8a[_0x2732ff(0x247)](),this[_0x2732ff(0x16b)](!0x1),this;}[_0x3721df(0x287)](_0x2c1d49){const _0x56aa89=_0x3721df;let {left:_0x6e85b3,top:_0x134671,width:_0x14ea7a,height:_0x3b5cac}=this[_0x56aa89(0xb0)](),_0x39c5fd=this['transform'][_0x56aa89(0x2fa)](),_0x32843e=_0x6e85b3+_0x14ea7a/0x2,_0x5b887e=_0x134671+_0x3b5cac/0x2,_0xf94d77=new _0x3bd327([_0x39c5fd[0x0],_0x39c5fd[0x1],_0x39c5fd[0x2],_0x39c5fd[0x3],_0x32843e,_0x5b887e]),_0x7f2767=this[_0x56aa89(0x232)]();return(this[_0x56aa89(0x26b)]&&(_0x7f2767==null?void 0x0:_0x7f2767[_0x56aa89(0xe7)])===_0x34cfe5[_0x56aa89(0x137)]?_0x7f2767[_0x56aa89(0x13c)]['multiply'](_0xf94d77):_0xf94d77)[_0x56aa89(0x27c)]()[_0x56aa89(0xfa)](_0x2c1d49);}['isHit'](_0x439331){const _0x55540a=_0x3721df;let {left:_0x39c6df,top:_0x4c197b,width:_0x20e5f0,height:_0x18dde4}=this[_0x55540a(0xb0)](),_0x504e57=_0x39c6df+_0x20e5f0/0x2,_0x45ee60=_0x4c197b+_0x18dde4/0x2,_0x4e1645=this[_0x55540a(0x288)][_0x55540a(0x2fa)](),_0x3ca8f9=new _0x3bd327([_0x4e1645[0x0],_0x4e1645[0x1],_0x4e1645[0x2],_0x4e1645[0x3],_0x504e57,_0x45ee60]),_0x50edf1=this[_0x55540a(0x232)](),_0x41acc1=(this[_0x55540a(0x26b)]&&(_0x50edf1==null?void 0x0:_0x50edf1[_0x55540a(0xe7)])===_0x34cfe5[_0x55540a(0x137)]?_0x50edf1[_0x55540a(0x13c)][_0x55540a(0xfb)](_0x3ca8f9):_0x3ca8f9)[_0x55540a(0x27c)]()['applyPoint'](_0x439331),_0xca663a=_0x20e5f0/0x2,_0x96759d=_0x18dde4/0x2,_0x55aeb4=this[_0x55540a(0x20d)]['shapeModel'];return _0x55aeb4&&_0x55aeb4[_0x55540a(0x251)]()?_0x55aeb4[_0x55540a(0x293)](_0x41acc1['x'],_0x41acc1['y'],_0x20e5f0,_0x18dde4):_0x41acc1['x']>=-_0xca663a-this[_0x55540a(0xd3)]/0x2&&_0x41acc1['x']<=_0xca663a+this[_0x55540a(0xd3)]/0x2&&_0x41acc1['y']>=-_0x96759d-this[_0x55540a(0xd3)]/0x2&&_0x41acc1['y']<=_0x96759d+this['strokeWidth']/0x2;}[_0x3721df(0x250)](){const _0x5946dd=_0x3721df;this[_0x5946dd(0x20d)][_0x5946dd(0x1d1)]=null,super[_0x5946dd(0x250)]();}},yn=class extends _0x39ac3d{constructor(_0x451e2b,_0x1618c7){const _0x3e45c3=_0x3721df;super(_0x451e2b,_0x1618c7),q(this,'_shapeId',null),q(this,_0x3e45c3(0x1ab),null),q(this,'_unitId',null),q(this,'_subUnitId',null),_0x1618c7&&this[_0x3e45c3(0x295)](_0x1618c7);}[_0x3721df(0x245)](){const _0x257729=_0x3721df;return{'unitId':this[_0x257729(0x255)],'subUnitId':this['_subUnitId'],'drawingId':this['_shapeId']};}[_0x3721df(0x295)](_0x250ba9){const _0x2656b9=_0x3721df;_0x250ba9['shapeId']!==void 0x0&&(this[_0x2656b9(0x176)]=_0x250ba9['shapeId']),_0x250ba9[_0x2656b9(0x11c)]!==void 0x0&&(this[_0x2656b9(0x1ab)]=_0x250ba9[_0x2656b9(0x11c)]),_0x250ba9[_0x2656b9(0xe5)]!==void 0x0&&(this['_unitId']=_0x250ba9[_0x2656b9(0xe5)]),_0x250ba9[_0x2656b9(0x183)]!==void 0x0&&(this[_0x2656b9(0x113)]=_0x250ba9[_0x2656b9(0x183)]),this[_0x2656b9(0x2d2)]({'width':_0x250ba9[_0x2656b9(0x19c)],'height':_0x250ba9['height']});}['_draw'](_0x136e67){const _0x3dac48=_0x3721df;_0x2cd80f[_0x3dac48(0x185)](_0x136e67,{'radius':_0x170bf6[_0x3dac48(0x2ab)],'fill':_0x170bf6[_0x3dac48(0x280)],'stroke':_0x170bf6[_0x3dac48(0x101)],'strokeWidth':0x1,'evented':!0x0});}};function J(_0x32079f,_0x49ef70){return function(_0x1ef784,_0x25d009){_0x49ef70(_0x1ef784,_0x25d009,_0x32079f);};}function Y(_0x3db4cf,_0x2c4142,_0x169c91,_0x67863e){const _0x4dab96=_0x3721df;var _0x1fa5f0=arguments['length'],_0x1007af=_0x1fa5f0<0x3?_0x2c4142:_0x67863e===null?_0x67863e=Object[_0x4dab96(0x186)](_0x2c4142,_0x169c91):_0x67863e,_0x4b192b;if(typeof Reflect==_0x4dab96(0x249)&&typeof Reflect[_0x4dab96(0x2db)]==_0x4dab96(0x109))_0x1007af=Reflect[_0x4dab96(0x2db)](_0x3db4cf,_0x2c4142,_0x169c91,_0x67863e);else{for(var _0x559c4a=_0x3db4cf[_0x4dab96(0x19e)]-0x1;_0x559c4a>=0x0;_0x559c4a--)(_0x4b192b=_0x3db4cf[_0x559c4a])&&(_0x1007af=(_0x1fa5f0<0x3?_0x4b192b(_0x1007af):_0x1fa5f0>0x3?_0x4b192b(_0x2c4142,_0x169c91,_0x1007af):_0x4b192b(_0x2c4142,_0x169c91))||_0x1007af);}return _0x1fa5f0>0x3&&_0x1007af&&Object[_0x4dab96(0x286)](_0x2c4142,_0x169c91,_0x1007af),_0x1007af;}let X=class extends _0x3ff889{constructor(_0x370a5d,_0x494408,_0x38a913,_0x5cdd4c,_0x19b31a){const _0x281f1a=_0x3721df;super(),this[_0x281f1a(0x212)]=_0x370a5d,this[_0x281f1a(0x1a7)]=_0x494408,this['_localeService']=_0x38a913,this[_0x281f1a(0x1c9)]=_0x5cdd4c,this[_0x281f1a(0x180)]=_0x19b31a;}[_0x3721df(0x297)](_0xfdfe84,_0x1521b8,_0xba7efe){const _0x3dac8d=_0x3721df;let {transform:_0x34eeae,drawingType:_0x1dd5ea,srcRect:_0x450f00,prstGeom:_0x4dfa86,groupId:_0x44b24c,unitId:_0x471246,subUnitId:_0x242cf4,drawingId:_0x295d4d,isMultiTransform:_0x235aa6,transforms:_0x3bb776,hidden:_0x348409,selectable:_0x4dde10}=_0xfdfe84;if(_0x1dd5ea!==_0x91d30f[_0x3dac8d(0x27a)]||!this['_drawingManagerService'][_0x3dac8d(0xed)]()||_0x34eeae==null)return;let _0x6f086b=this[_0x3dac8d(0x212)]['getDrawingEditable']();_0x6f086b&&_0x1521b8[_0x3dac8d(0x289)](_0x278e4a);let _0x519edb=_0x235aa6&&_0x3bb776?_0x3bb776:[_0x34eeae],_0x15a1f8=[];for(let _0x3263d3 of _0x519edb){let {left:_0xadf3b8,top:_0xb2eeae,width:_0x50a82c,height:_0x4e2139,angle:_0xfd6921,flipX:_0x285367,flipY:_0x591979,skewX:_0x2dcda9,skewY:_0x2de6f9}=_0x3263d3,_0x39f7f5=_0x519edb['indexOf'](_0x3263d3),_0xa75571=_0xc0766c({'unitId':_0x471246,'subUnitId':_0x242cf4,'drawingId':_0x295d4d},_0x235aa6?_0x39f7f5:void 0x0),_0x5d8805=_0x1521b8[_0x3dac8d(0xc2)](_0xa75571);if(_0x5d8805!=null){_0x5d8805[_0x3dac8d(0x2d2)]({'left':_0xadf3b8,'top':_0xb2eeae,'width':_0x50a82c,'height':_0x4e2139,'angle':_0xfd6921,'flipX':_0x285367,'flipY':_0x591979,'skewX':_0x2dcda9,'skewY':_0x2de6f9});continue;}let _0x1a117e=this[_0x3dac8d(0x212)][_0x3dac8d(0x17a)](_0x471246,_0x242cf4),_0x3ac8e0=_0x1a117e['indexOf'](_0x295d4d);if(_0x1521b8[_0x3dac8d(0xc2)](_0xa75571)||!this[_0x3dac8d(0x212)]['getDrawingVisible']())continue;let _0x137cdb=this[_0x3dac8d(0x1a7)][_0x3dac8d(0xef)](_0x471246,_0x242cf4,_0x295d4d);if(!_0x137cdb)continue;let _0x20c7b6=new vn(_0xa75571,{..._0x51a857(_0x137cdb[_0x3dac8d(0x210)]())?{..._0x3263d3,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x3263d3},'zIndex':_0x3ac8e0===-0x1?_0x1a117e[_0x3dac8d(0x19e)]-0x1:_0x3ac8e0,'shapeModel':_0x137cdb,'localeService':this[_0x3dac8d(0x11e)],'shapeId':_0x295d4d,'unitId':_0x471246,'subUnitId':_0x242cf4,'visible':_0x348409!==!0x0,'evented':_0x4dde10!==!0x1});_0x1521b8['addObject'](_0x20c7b6,_0x1484b2),_0x6f086b&&_0x1521b8[_0x3dac8d(0xd6)](_0x20c7b6),_0x44b24c&&_0x2dcd00({'drawingId':_0x44b24c,'unitId':_0x471246,'subUnitId':_0x242cf4},_0x20c7b6,_0x1521b8,this[_0x3dac8d(0x212)]),_0x4dfa86!=null&&_0x20c7b6[_0x3dac8d(0x104)](_0x4dfa86),_0x450f00!=null&&_0x20c7b6[_0x3dac8d(0xfe)](_0x450f00);let _0x2f7f95=this[_0x3dac8d(0x309)](_0x20c7b6,_0x137cdb[_0x3dac8d(0x21d)]());if(_0x2f7f95){var _0x564fbc;_0xba7efe==null||(_0x564fbc=_0xba7efe[_0x3dac8d(0x1c3)])==null||_0x564fbc[_0x3dac8d(0x198)](_0x2f7f95);}_0x15a1f8[_0x3dac8d(0x1d2)](_0x20c7b6);}return _0x15a1f8;}[_0x3721df(0x29e)](_0x2a2418){const _0x1587bd=_0x3721df;let _0x96e54e=_0x2a2418['shapeModel'][_0x1587bd(0x21d)](),_0x3d4394=_0x96e54e[_0x1587bd(0x2b4)];if(!_0x3d4394||_0x3d4394['fillType']!==_0x264689['PictureFill']||!_0x3d4394[_0x1587bd(0x2cd)]){_0x2a2418[_0x1587bd(0x2a3)](void 0x0);return;}this['_loadShapePictureFill'](_0x2a2418,_0x96e54e);}[_0x3721df(0x309)](_0x3e5421,_0x78f5b9){const _0x3dc476=_0x3721df;var _0x2d0c4a;let _0x68c1aa=_0x78f5b9[_0x3dc476(0x2b4)];if(!_0x68c1aa||_0x68c1aa['fillType']!==_0x264689['PictureFill']||!_0x68c1aa[_0x3dc476(0x2cd)])return;let _0x2ff595=_0x68c1aa[_0x3dc476(0x2cd)],_0x440d83=(_0x2d0c4a=_0x68c1aa[_0x3dc476(0x2ff)])==null?_0x588265[_0x3dc476(0x30c)]:_0x2d0c4a,_0x511dbc=this[_0x3dc476(0x1c9)][_0x3dc476(0x1bb)](_0x2ff595,_0x440d83);if(_0x511dbc){_0x3e5421['setFillImage'](_0x511dbc);return;}return this[_0x3dc476(0x128)](_0x3e5421,_0x2ff595,_0x440d83);}async[_0x3721df(0x128)](_0x2b1afd,_0x528f26,_0x58a189){const _0x2cc97e=_0x3721df;let _0x3ee901;try{if(_0x58a189===_0x588265[_0x2cc97e(0x240)])_0x3ee901=await this[_0x2cc97e(0x1c9)][_0x2cc97e(0xf7)](_0x528f26);else{if(_0x58a189===_0x588265[_0x2cc97e(0x30c)])try{_0x3ee901=await this[_0x2cc97e(0x180)][_0x2cc97e(0xf7)](_0x528f26);}catch{_0x3ee901=_0x528f26;}else _0x3ee901=_0x528f26;}}catch(_0x27f0f5){console[_0x2cc97e(0x17e)](_0x2cc97e(0x23b),_0x27f0f5);return;}await new Promise(_0x45b30c=>{const _0x1be2e2=_0x2cc97e;let _0x39267a=new window[(_0x1be2e2(0x279))]();_0x39267a['onload']=()=>{const _0x29a1f4=_0x1be2e2;this[_0x29a1f4(0x1c9)][_0x29a1f4(0xbe)](_0x528f26,_0x58a189,_0x39267a),_0x2b1afd['setFillImage'](_0x39267a),_0x45b30c();},_0x39267a[_0x1be2e2(0x15d)]=()=>{const _0x3722d9=_0x1be2e2;console[_0x3722d9(0x17e)](_0x3722d9(0x175),_0x528f26),_0x45b30c();},_0x39267a[_0x1be2e2(0x239)]=_0x3ee901;});}};X=Y([J(0x0,_0x30b385),J(0x1,_0x44ac9c(_0x2318dd)),J(0x2,_0x44ac9c(_0x52ec80)),J(0x3,_0x3e0cef),J(0x4,_0xf3fd29)],X);let Z=class extends _0x3ff889{constructor(_0x198f67,_0x4c52b4,_0x3520b4,_0x162bd1,_0x1d3ffb,_0x4df7c3){const _0x5c530b=_0x3721df;super(),this['_drawingManagerService']=_0x198f67,this[_0x5c530b(0x1a7)]=_0x4c52b4,this[_0x5c530b(0x28f)]=_0x3520b4,this[_0x5c530b(0x1c5)]=_0x162bd1,this['_univerInstanceService']=_0x1d3ffb,this[_0x5c530b(0x1fc)]=_0x4df7c3,q(this,'_activeShapeId',null),q(this,'_unitId',null),q(this,_0x5c530b(0x113),null),q(this,_0x5c530b(0x208),void 0x0),q(this,_0x5c530b(0x2e5),[]),q(this,_0x5c530b(0xb7),0x0),q(this,_0x5c530b(0x2a8),0x0),q(this,_0x5c530b(0x1e8),0x0),q(this,_0x5c530b(0x2f7),0x0),q(this,'_isStartAdjusting',!0x1),q(this,'_activeAdjustInfo',void 0x0),q(this,_0x5c530b(0x25f),void 0x0),q(this,_0x5c530b(0xb1),void 0x0),q(this,_0x5c530b(0x2bd),void 0x0),q(this,'_isShouldShowDrawingShapeAdjust',!0x1),this[_0x5c530b(0x189)](),this['_registerDrawingMoveHandler']();}[_0x3721df(0x22b)](_0x198b14,_0x5947f0,_0x22c5f8){const _0x40449f=_0x3721df;let _0x20307b=this[_0x40449f(0x1a7)]['getShapeModel'](_0x198b14,_0x5947f0,_0x22c5f8);if(_0x20307b)return _0x20307b[_0x40449f(0x1c1)]();}[_0x3721df(0x161)](){const _0x39933e=_0x3721df;this[_0x39933e(0x21b)]();}[_0x3721df(0x274)](){const _0x189c41=_0x3721df;this[_0x189c41(0x25c)](!0x0);}['setShouldShowAdjust'](_0x2964cf){this['_isShouldShowDrawingShapeAdjust']=_0x2964cf;}[_0x3721df(0x165)](_0x45752c,_0x4b395b,_0x26c775,_0x2f026d){const _0x43a135=_0x3721df;let _0x211135=this[_0x43a135(0x1a7)][_0x43a135(0xef)](_0x45752c,_0x4b395b,_0x26c775);if(_0x211135)return _0x211135[_0x43a135(0xa5)](_0x2f026d);}[_0x3721df(0xb2)](_0x9b49b1=!0x1){const _0x4733d0=_0x3721df;if(this['_unitId']===null||this['_subUnitId']===null||this[_0x4733d0(0x12e)]===null)return;let _0x2f51cd=this[_0x4733d0(0x28f)]['getRenderById'](this[_0x4733d0(0x255)]);if(!_0x2f51cd||!_0x2f51cd[_0x4733d0(0x29b)](_0x39e39b)['getCurrentSkeleton']())return;let {scene:_0x2a2949}=_0x2f51cd,_0xbebef9={'unitId':this[_0x4733d0(0x255)],'subUnitId':this[_0x4733d0(0x113)],'drawingId':this[_0x4733d0(0x12e)]},_0x1ece7d=this[_0x4733d0(0x212)][_0x4733d0(0x22d)](_0xbebef9),{transform:_0x4be5bf}=_0x1ece7d;if(!_0x4be5bf||_0x1ece7d[_0x4733d0(0x132)]!==_0x91d30f[_0x4733d0(0x27a)])return;let {left:_0x2c04e7,top:_0x2a100f,width:_0x50db1f,height:_0x48fe1f,flipX:_0x4e0e20,flipY:_0x288eac,angle:_0x1a665f=0x0}=_0x4be5bf;if(_0x2c04e7===void 0x0||_0x2a100f===void 0x0)return;_0x9b49b1&&(this[_0x4733d0(0x208)]=this[_0x4733d0(0x22b)](this[_0x4733d0(0x255)],this[_0x4733d0(0x113)],this[_0x4733d0(0x12e)]));let _0x268a9d=this[_0x4733d0(0x208)];for(let _0x37fe1d=0x0;_0x37fe1d<_0x268a9d[_0x4733d0(0x19e)];_0x37fe1d++){let _0x4b6302=_0x268a9d[_0x37fe1d],_0x2720d7=_0x4b6302['x'],_0xbccb0d=_0x4b6302['y'];if(_0x4e0e20&&(_0x2720d7=(_0x50db1f||0x0)-_0x2720d7),_0x288eac&&(_0xbccb0d=(_0x48fe1f||0x0)-_0xbccb0d),_0x1a665f!==0x0){let _0x1bdd38=(_0x50db1f||0x0)/0x2,_0x4a8d2b=(_0x48fe1f||0x0)/0x2,_0x2e400f=_0x1a665f*Math['PI']/0xb4,_0x27bbeb=Math['cos'](_0x2e400f),_0x6a9e49=Math[_0x4733d0(0x122)](_0x2e400f),_0x4a000d=_0x2720d7-_0x1bdd38,_0x3ab1a2=_0xbccb0d-_0x4a8d2b;_0x2720d7=_0x1bdd38+(_0x4a000d*_0x27bbeb-_0x3ab1a2*_0x6a9e49),_0xbccb0d=_0x4a8d2b+(_0x4a000d*_0x6a9e49+_0x3ab1a2*_0x27bbeb);}let _0x57f620={'x':_0x2720d7,'y':_0xbccb0d,'adjName':_0x4b6302[_0x4733d0(0x11c)]};this['_addShapeAdjustControl'](_0x2a2949,_0x57f620,_0x57f620[_0x4733d0(0x11c)],_0x2c04e7,_0x2a100f,this[_0x4733d0(0x255)],this[_0x4733d0(0x113)]);}}['_updateShapeAdjustControls'](_0x27394a=!0x1){const _0x4aa4ee=_0x3721df;_0x27394a&&(this[_0x4aa4ee(0x21b)](),this[_0x4aa4ee(0xb2)](_0x27394a));}[_0x3721df(0x173)](_0x29b054,_0x1a5da6,_0x2afd99,_0x437222,_0x3530dc,_0x10f56e,_0x791da1){const _0x7ec71a=_0x3721df;if(!this[_0x7ec71a(0x12e)])return;let _0x4c5090=_0x29b054[_0x7ec71a(0xc2)](_0x7ec71a(0x2af)+this[_0x7ec71a(0x12e)]+'-'+_0x2afd99);if(_0x4c5090){_0x4c5090[_0x7ec71a(0x2d2)]({'left':_0x1a5da6['x']+_0x437222-_0x170bf6['adjHandleSize'],'top':_0x1a5da6['y']+_0x3530dc-_0x170bf6[_0x7ec71a(0x2ab)]});return;}let _0x10315a={'left':_0x1a5da6['x']+_0x437222-_0x170bf6[_0x7ec71a(0x2ab)],'top':_0x1a5da6['y']+_0x3530dc-_0x170bf6['adjHandleSize'],'adjName':_0x2afd99,'shapeId':this['_activeShapeId'],'unitId':_0x10f56e,'subUnitId':_0x791da1,'width':_0x170bf6['adjHandleSize']+0x8,'height':_0x170bf6[_0x7ec71a(0x2ab)]+0x8,'zIndex':_0x1484b2+0x1,'evented':!0x0},_0x149332=new yn(_0x7ec71a(0x2af)+this[_0x7ec71a(0x12e)]+'-'+_0x2afd99,_0x10315a);this['_shapes'][_0x7ec71a(0x1d2)](_0x149332),this[_0x7ec71a(0x1fb)](_0x149332,_0x29b054,_0x2afd99),_0x29b054[_0x7ec71a(0x170)](_0x149332,_0x1484b2+0x1);}[_0x3721df(0x21b)](){const _0x1c94e2=_0x3721df;this[_0x1c94e2(0x2e5)][_0x1c94e2(0x19e)]!==0x0&&(this[_0x1c94e2(0x2e5)][_0x1c94e2(0x1a9)](_0x41b669=>{_0x41b669['dispose']();}),this[_0x1c94e2(0x2e5)]=[]);}[_0x3721df(0x2c6)](){this['_createShapeAdjustControls']();}[_0x3721df(0x18a)](_0x467c35,_0x39616f){const _0x17a54a=_0x3721df;var _0xd4ac23;let _0x3b79d7={'x':0x0,'y':0x0};if(!_0x467c35||!_0x39616f)return _0x3b79d7;let _0x2c8313=this[_0x17a54a(0x28f)][_0x17a54a(0x1f1)](_0x467c35);if(!_0x2c8313||!_0x2c8313[_0x17a54a(0x29b)](_0x39e39b)[_0x17a54a(0xf0)](_0x39616f))return _0x3b79d7;let _0x5e0c81=_0x2c8313[_0x17a54a(0x29b)](_0x4f30c1),_0x5d7d6b=_0x5e0c81==null?void 0x0:_0x5e0c81[_0x17a54a(0xd5)]();if(!_0x5d7d6b)return _0x3b79d7;let _0x267726=(_0xd4ac23=this[_0x17a54a(0x205)]['getUnit'](_0x467c35))==null?void 0x0:_0xd4ac23['getSheetBySheetId'](_0x39616f);if(!_0x267726)return _0x3b79d7;let _0x5ad95f=_0x177de7(_0x5d7d6b[_0x17a54a(0x195)],_0x5d7d6b['sheetViewStartColumn'],_0x2c8313['scene'],_0x267726);return _0x5ad95f?{'x':_0x5ad95f[_0x17a54a(0x1b0)],'y':_0x5ad95f[_0x17a54a(0xad)]}:_0x3b79d7;}[_0x3721df(0x234)](_0x29df6f,_0x3c5181){const _0x4d4660=_0x3721df;var _0x25f5ef,_0x11c83b;let _0x166e05=(_0x25f5ef=this[_0x4d4660(0x205)][_0x4d4660(0x201)](_0x29df6f))==null?void 0x0:_0x25f5ef[_0x4d4660(0x24c)](_0x3c5181);return(_0x11c83b=_0x166e05==null?void 0x0:_0x166e05[_0x4d4660(0x2da)]())==null?0x1:_0x11c83b;}[_0x3721df(0x1fb)](_0x4c86c3,_0x5c3017,_0x2c4db6){const _0x4c7695=_0x3721df;this['disposeWithMe'](_0x4e35de(_0x4c86c3[_0x4c7695(0x2d3)][_0x4c7695(0x2ce)]((_0x4a8fbc,_0xfa682b)=>{const _0x1a2ba6=_0x4c7695;var _0x7e511d,_0x434beb,_0x17f3b0,_0x1a35ee;let _0x109464=_0x4c86c3[_0x1a2ba6(0x245)]();this[_0x1a2ba6(0x256)]=this['_getShapeAdjustInfosById'](_0x109464[_0x1a2ba6(0xe5)],_0x109464['subUnitId'],_0x109464[_0x1a2ba6(0x121)],_0x2c4db6),this[_0x1a2ba6(0x25f)]=this[_0x1a2ba6(0x1a7)][_0x1a2ba6(0xef)](_0x109464['unitId'],_0x109464[_0x1a2ba6(0x183)],_0x109464[_0x1a2ba6(0x121)]);let _0x40ce69=this[_0x1a2ba6(0x212)]['getDrawingByParam']({'unitId':this[_0x1a2ba6(0x255)],'subUnitId':this[_0x1a2ba6(0x113)],'drawingId':this[_0x1a2ba6(0x12e)]}),{transform:_0x433cde}=_0x40ce69;if(_0x433cde){let {left:_0x14e781,top:_0x1246b8,width:_0xe31bf2,height:_0x287743}=_0x433cde;this[_0x1a2ba6(0xb7)]=_0x14e781||0x0,this['_baseShapeTop']=_0x1246b8||0x0,this['_baseShapeWidth']=_0xe31bf2||0x0,this['_baseShapeHeight']=_0x287743||0x0;}let _0x8cd2d2=!!((_0x7e511d=_0x40ce69[_0x1a2ba6(0x288)])!=null&&_0x7e511d[_0x1a2ba6(0x124)]),_0x341da5=!!((_0x434beb=_0x40ce69['transform'])!=null&&_0x434beb['flipY']),_0x89ea35=((_0x17f3b0=_0x40ce69['transform'])==null?void 0x0:_0x17f3b0[_0x1a2ba6(0x300)])||0x0;this[_0x1a2ba6(0x167)]=!0x0,_0x5c3017[_0x1a2ba6(0x1be)]();let _0x1d07a2=(_0x1a35ee=this[_0x1a2ba6(0x25f)])==null?void 0x0:_0x1a35ee[_0x1a2ba6(0x25d)](_0x2c4db6),_0x3933e9={[_0x2c4db6]:_0x1d07a2};this[_0x1a2ba6(0xb1)]=_0x5c3017['onPointerMove$'][_0x1a2ba6(0x2ce)]((_0x208c2d,_0x176a8e)=>{const _0x2bd22f=_0x1a2ba6;if(!this[_0x2bd22f(0x167)])return;let {offsetX:_0x8820bb,offsetY:_0x37c44c}=_0x208c2d,_0x98d737=this['_activeAdjustInfo'];if(this[_0x2bd22f(0x25f)]&&_0x98d737){_0x5c3017[_0x2bd22f(0x1be)](),_0x5c3017[_0x2bd22f(0xce)](_0x5615ac[_0x2bd22f(0xae)]);let _0x1255ca={'left':0x0,'top':0x0,'width':this[_0x2bd22f(0x1e8)],'height':this[_0x2bd22f(0x2f7)]},_0x34fbde=this[_0x2bd22f(0x18a)](this['_unitId'],this[_0x2bd22f(0x113)]),_0x276439=this[_0x2bd22f(0x234)](this[_0x2bd22f(0x255)],this[_0x2bd22f(0x113)]),_0x232fb4=_0x8820bb/_0x276439+_0x34fbde['x']-this['_baseShapeLeft'],_0x5418ca=_0x37c44c/_0x276439+_0x34fbde['y']-this[_0x2bd22f(0x2a8)];if(_0x89ea35!==0x0){let _0x97834c=this['_baseShapeWidth']/0x2,_0x4d1720=this[_0x2bd22f(0x2f7)]/0x2,_0x36a5a6=_0x89ea35*Math['PI']/0xb4,_0x35e23b=Math[_0x2bd22f(0x2ac)](_0x36a5a6),_0x15896d=Math[_0x2bd22f(0x122)](_0x36a5a6),_0x46c72e=_0x232fb4-_0x97834c,_0x4ec104=_0x5418ca-_0x4d1720;_0x232fb4=_0x97834c+(_0x46c72e*_0x35e23b+_0x4ec104*_0x15896d),_0x5418ca=_0x4d1720+(-_0x46c72e*_0x15896d+_0x4ec104*_0x35e23b);}_0x8cd2d2&&(_0x232fb4=this[_0x2bd22f(0x1e8)]-_0x232fb4),_0x341da5&&(_0x5418ca=this[_0x2bd22f(0x2f7)]-_0x5418ca);let _0x2c14a1={'x':_0x232fb4,'y':_0x5418ca},_0x475603=this[_0x2bd22f(0x25f)][_0x2bd22f(0x2ee)](_0x1255ca,_0x2c14a1,_0x98d737,_0x8cd2d2,_0x341da5),_0x356c0e=_0x98d737[_0x2bd22f(0x28d)]||_0x98d737['gdRefY']||_0x98d737['gdRefAng']||_0x98d737[_0x2bd22f(0xf9)];if(_0x356c0e===void 0x0)return;this[_0x2bd22f(0x25f)][_0x2bd22f(0x17f)](_0x356c0e,_0x475603);let _0x850c9=this[_0x2bd22f(0x212)]['getDrawingByParam']({'unitId':_0x109464['unitId'],'subUnitId':_0x109464[_0x2bd22f(0x183)],'drawingId':_0x109464[_0x2bd22f(0x121)]});_0x850c9&&(this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x850c9,_0x5c3017),this[_0x2bd22f(0x208)]=this[_0x2bd22f(0x22b)](_0x109464[_0x2bd22f(0xe5)],_0x109464[_0x2bd22f(0x183)],_0x109464[_0x2bd22f(0x121)]),this['_updateAdjustControlPositions']());}_0x176a8e[_0x2bd22f(0x17b)]();}),this['_adjHandlerPointerUp']=_0x5c3017[_0x1a2ba6(0x163)][_0x1a2ba6(0x2ce)]((_0x5cd5d8,_0x7a6e7d)=>{const _0x2d311e=_0x1a2ba6;this['_adjHandlerPointerMove']['unsubscribe'](),this[_0x2d311e(0x2bd)]['unsubscribe'](),_0x5c3017[_0x2d311e(0xda)]();let _0x1ce3e4=this[_0x2d311e(0x256)];if(_0x1ce3e4){let _0x297a99=_0x109464[_0x2d311e(0xe5)],_0x48b754=_0x109464['subUnitId'],_0x4f6cf5=_0x109464[_0x2d311e(0x121)],_0x483990=_0x1ce3e4[_0x2d311e(0x28d)]||_0x1ce3e4['gdRefY']||_0x1ce3e4['gdRefAng']||_0x1ce3e4[_0x2d311e(0xf9)];if(_0x483990!==void 0x0){var _0xf8c96;let _0x570837=(_0xf8c96=this[_0x2d311e(0x25f)])==null?void 0x0:_0xf8c96[_0x2d311e(0x25d)](_0x483990);_0x570837!==void 0x0&&fn(this[_0x2d311e(0x1fc)],_0x297a99,_0x48b754,_0x4f6cf5,{'oldShapeData':{'adjustValues':_0x3933e9}},{'adjustValues':{[_0x483990]:_0x570837}});}}this['_activeAdjustInfo']=void 0x0,this[_0x2d311e(0x25f)]=void 0x0,this[_0x2d311e(0x167)]=!0x1,_0x7a6e7d['stopPropagation'](),_0x5c3017[_0x2d311e(0x150)]();}),_0xfa682b[_0x1a2ba6(0x17b)]();})));}[_0x3721df(0x2fb)](){const _0x4e8a20=_0x3721df;let _0x34aa1c=this[_0x4e8a20(0x205)][_0x4e8a20(0x1e2)](_0x2c116a[_0x4e8a20(0x1a1)]);this['disposeWithMe'](_0x34aa1c['pipe'](_0x319361(_0x23213b=>_0x23213b?_0x23213b['activeSheet$'][_0x4e8a20(0x27d)](_0x319361(_0x1a9fda=>{const _0x5a0a29=_0x4e8a20;if(!_0x1a9fda)return _0x4cf815;let _0x545ce4=_0x23213b[_0x5a0a29(0x1b5)](),_0x1f3ba8=this[_0x5a0a29(0x28f)]['getRenderById'](_0x545ce4),_0x7c6e9e=_0x1f3ba8==null?void 0x0:_0x1f3ba8[_0x5a0a29(0x223)];return _0x7c6e9e?_0x232c55(_0x7c6e9e):_0x4cf815;})):_0x4cf815))[_0x4e8a20(0x290)](_0x2f8670=>{const _0x15538b=_0x4e8a20;let _0x2e4e0d=_0x2f8670['getTransformerByCreate']();this['disposeWithMe'](_0x2f8670['onPointerMove$'][_0x15538b(0x2ce)](()=>{const _0x29e6f8=_0x15538b;this[_0x29e6f8(0x244)];})),this['disposeWithMe'](_0x2e4e0d['changeStart$']['subscribe'](_0x3d3704=>{const _0x14b4a2=_0x15538b;let {objects:_0x3bb3cf}=_0x3d3704;this[_0x14b4a2(0xb2)](),_0x3bb3cf!==null&&_0x3bb3cf[_0x14b4a2(0x30a)]===0x1&&_0x3bb3cf[_0x14b4a2(0x258)]()[_0x14b4a2(0x11b)]()[_0x14b4a2(0x15c)]instanceof vn&&this[_0x14b4a2(0xc9)](!0x0);})),this[_0x15538b(0x23d)](_0x2e4e0d[_0x15538b(0x1a0)][_0x15538b(0x290)](()=>{const _0x26dd05=_0x15538b;this['_isShouldShowDrawingShapeAdjust']&&this[_0x26dd05(0x21b)]();})),this['disposeWithMe'](_0x2f8670['onPointerUp$'][_0x15538b(0x2ce)](()=>{const _0x525fa9=_0x15538b;this['_isShouldShowDrawingShapeAdjust']&&(this['setShouldShowAdjust'](!0x1),this[_0x525fa9(0xb2)]());})),this[_0x15538b(0x23d)](_0x2e4e0d[_0x15538b(0x2f1)][_0x15538b(0x290)](()=>{const _0x26bb9b=_0x15538b;this[_0x26bb9b(0x255)]&&this[_0x26bb9b(0x113)]&&this['_activeShapeId']&&this[_0x26bb9b(0x212)]['getDrawingByParam']({'unitId':this[_0x26bb9b(0x255)],'subUnitId':this[_0x26bb9b(0x113)],'drawingId':this[_0x26bb9b(0x12e)]})&&(this[_0x26bb9b(0x208)]=this[_0x26bb9b(0x22b)](this['_unitId'],this['_subUnitId'],this[_0x26bb9b(0x12e)]),this[_0x26bb9b(0x2c6)]());}));}));}[_0x3721df(0x189)](){const _0x41567c=_0x3721df;this[_0x41567c(0x23d)](this[_0x41567c(0x212)][_0x41567c(0x225)][_0x41567c(0x290)](_0x4255e3=>{const _0x194a0a=_0x41567c;if(_0x4255e3['length']===0x1){let _0x4e0bb0=_0x4255e3[0x0];if(_0x4e0bb0[_0x194a0a(0x132)]===_0x91d30f['DRAWING_SHAPE']){this[_0x194a0a(0x12e)]=_0x4e0bb0['drawingId'];let {unitId:_0x53a0ab,subUnitId:_0x3d856c}=_0x4e0bb0;this[_0x194a0a(0x208)]=this['_getShapeAdjustPointListById'](_0x53a0ab,_0x3d856c,this[_0x194a0a(0x12e)]),this['_unitId']=_0x53a0ab,this[_0x194a0a(0x113)]=_0x3d856c,this[_0x194a0a(0x21b)](),this['_createShapeAdjustControls']();}else this[_0x194a0a(0x12e)]=null,this[_0x194a0a(0x208)]=void 0x0,this[_0x194a0a(0x255)]=null,this[_0x194a0a(0x113)]=null,this['_clearShapeAdjustControls']();}(_0x4255e3[_0x194a0a(0x19e)]>0x1||_0x4255e3['length']===0x0)&&(this[_0x194a0a(0x12e)]=null,this[_0x194a0a(0x208)]=void 0x0,this[_0x194a0a(0x255)]=null,this['_subUnitId']=null,this[_0x194a0a(0x21b)]());})),this['disposeWithMe'](this[_0x41567c(0x212)][_0x41567c(0xe0)][_0x41567c(0x290)](_0x24cb17=>{const _0x2663c3=_0x41567c;if(_0x24cb17[_0x2663c3(0x19e)]===0x1){var _0x522219;let _0x180f2b=_0x24cb17[0x0];((_0x522219=this[_0x2663c3(0x212)][_0x2663c3(0x22d)](_0x180f2b))==null?void 0x0:_0x522219[_0x2663c3(0x132)])===_0x91d30f[_0x2663c3(0x27a)]&&this[_0x2663c3(0x25c)](!0x0);}})),this[_0x41567c(0x23d)](this[_0x41567c(0x212)]['remove$'][_0x41567c(0x290)](_0x27ec61=>{const _0x579e35=_0x41567c;for(let _0x327b6a of _0x27ec61)this[_0x579e35(0x12e)]===_0x327b6a['drawingId']&&(this[_0x579e35(0x12e)]=null,this[_0x579e35(0x208)]=void 0x0,this[_0x579e35(0x255)]=null,this[_0x579e35(0x113)]=null,this[_0x579e35(0x21b)]());}));}};Z=Y([J(0x0,_0x30b385),J(0x1,_0x44ac9c(_0x2318dd)),J(0x2,_0x44ac9c(_0x3ab9c0)),J(0x3,_0x44ac9c(X)),J(0x4,_0xeac766),J(0x5,_0x27b781)],Z);const bn={'id':_0x3721df(0x2f4),'type':_0x518569[_0x3721df(0x1f0)],'handler':(_0x983adc,_0x47b788)=>{const _0x3bf178=_0x3721df;let _0x2ef256=_0x983adc[_0x3bf178(0x2f5)](_0x30b385),_0x19361b=_0x983adc[_0x3bf178(0x2f5)](_0x3ab9c0),_0x395d95=_0x983adc[_0x3bf178(0x2f5)](Z);if(_0x47b788==null)return!0x0;if(_0x47b788['length']>0x0){var _0x1727fe;let _0x3177a3=(_0x1727fe=_0x19361b[_0x3bf178(0x1f1)](_0x47b788[0x0][_0x3bf178(0xe5)]))==null?void 0x0:_0x1727fe['scene'];if(_0x3177a3){let {unitId:_0x30eaae,subUnitId:_0x48bd2a,drawingId:_0x45f921}=_0x47b788[0x0],_0x1d3f95=_0xc0766c({'unitId':_0x30eaae,'subUnitId':_0x48bd2a,'drawingId':_0x45f921},void 0x0),_0x505bc4=_0x3177a3[_0x3bf178(0xc2)](_0x1d3f95);if(_0x505bc4){var _0x2e5058;(_0x2e5058=_0x19361b['getRenderById'](_0x47b788[0x0]['unitId']))==null||(_0x2e5058=_0x2e5058['scene'][_0x3bf178(0x203)]())==null||_0x2e5058[_0x3bf178(0x21a)](_0x505bc4);}}_0x2ef256[_0x3bf178(0x2d1)](_0x47b788),_0x395d95[_0x3bf178(0xc9)](!0x1);}return!0x0;}},xn={'type':_0x518569[_0x3721df(0x1e9)],'id':_0x3721df(0x22c),'handler':async(_0x24984b,_0x49b9cd)=>{const _0x4dfb75=_0x3721df;let _0x28fdbe=_0x458956(_0x24984b['get'](_0xeac766));if(!_0x28fdbe)return!0x1;let _0x38bb53=_0x24984b['get'](_0x518d9a)[_0x4dfb75(0x1c0)]();if(!_0x38bb53)return!0x1;let _0x4d5684=_0x24984b[_0x4dfb75(0x2f5)](_0x27b781),{unitId:_0x55597c,subUnitId:_0x25be8e}=_0x28fdbe,{value:_0x1ad1f8,enhanceParams:_0x3c021c}=_0x49b9cd,{range:_0x7d0cf}=_0x38bb53,_0xa9d137={'unitId':_0x55597c,'subUnitId':_0x25be8e,'shapeType':_0x1ad1f8,'range':_0x7d0cf,'shapeId':_0x4b0b19()};if(_0x3c021c){let _0x4456bd=_0x51a857(_0x1ad1f8),_0x4b0771=_0x1ad1f8===_0x56b767[_0x4dfb75(0x1b8)];_0x4456bd&&(_0x3c021c[_0x4dfb75(0x2a1)]||_0x3c021c[_0x4dfb75(0x30d)])&&(_0xa9d137['shapeData']={'ln':{'startArrow':_0x3c021c[_0x4dfb75(0x2a1)]?{'type':_0x2333d6[_0x4dfb75(0xc6)],'size':_0x82696f[_0x4dfb75(0x1d3)]}:void 0x0,'endArrow':_0x3c021c['endArrow']?{'type':_0x2333d6[_0x4dfb75(0xc6)],'size':_0x82696f[_0x4dfb75(0x116)]}:void 0x0}}),_0x4b0771&&(_0x3c021c[_0x4dfb75(0x270)]||_0x3c021c[_0x4dfb75(0xe9)])&&(_0xa9d137['shapeData']=_0x7ef105({'fill':{'fillType':_0x264689[_0x4dfb75(0x2b3)],'color':_0x4dfb75(0x226)},'isHorizontal':!!_0x3c021c['horizontal'],'stroke':{'lineStrokeType':_0x21178c[_0x4dfb75(0x26c)],'width':0x1,'color':_0x4dfb75(0x1e6)}}));}let _0x1a8a32=_0x4d5684['syncExecuteCommand'](_0x24599f['id'],_0xa9d137);return setTimeout(()=>{const _0x37abe1=_0x4dfb75;_0x4d5684['executeCommand'](bn['id'],[{'unitId':_0x55597c,'subUnitId':_0x25be8e,'drawingId':_0xa9d137[_0x37abe1(0x1bf)]}]);},0xc8),_0x1a8a32;}},Sn=_0x3721df(0x133),Cn='sheet.shape.object-list.panel',wn=_0x3721df(0x105),Tn=_0x2d12f4(_0x3721df(0x136)),En=_0x3721df(0x25e),Dn={'id':_0x3721df(0x306),'type':_0x518569[_0x3721df(0x1e9)],'handler':(_0x12d434,_0x4f6f97)=>{const _0x38c075=_0x3721df;let _0x168a68=_0x12d434[_0x38c075(0x2f5)](_0x55dc5d),_0x34e4d4=_0x12d434[_0x38c075(0x2f5)](_0x52ec80),_0x2b00fb=_0x12d434[_0x38c075(0x2f5)](_0xeac766),_0x2ed6a0=_0x12d434[_0x38c075(0x2f5)](_0x27b781);return _0x458956(_0x2b00fb)?(_0x4f6f97==null?void 0x0:_0x4f6f97['value'])==='close'?(_0x168a68[_0x38c075(0x115)](Cn),!0x0):(_0x168a68[_0x38c075(0x1b7)]({'id':Cn,'header':{'title':_0x34e4d4['t'](_0x38c075(0x2c7))},'children':{'label':Cn},'onClose':()=>{const _0x4f47f5=_0x38c075;_0x2ed6a0[_0x4f47f5(0x213)](_0x549ead['id'],[]);},'width':0x168}),!0x0):!0x1;}};let Q=class extends _0x3ff889{constructor(_0x5ebbe5,_0x1b3fa1){const _0x2f3e44=_0x3721df;super(),this[_0x2f3e44(0x17c)]=_0x5ebbe5,this['_drawingManagerService']=_0x1b3fa1,this['_registerImageShapeClipDelegate'](),this['_clipService'][_0x2f3e44(0x28b)](!0x0),this[_0x2f3e44(0x23d)]({'dispose':()=>this[_0x2f3e44(0x17c)][_0x2f3e44(0x28b)](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x1f4b49=_0x3721df;let _0x171cad=this[_0x1f4b49(0x17c)],_0x2fcbbf=new Map(),_0x4be220=_0x171cad[_0x1f4b49(0x156)]((_0x3230d4,_0xa6b445,_0x17a08e,_0x55cefd,_0xcb9ed)=>{const _0x4fb76b=_0x1f4b49;let _0x398c33=_0xa6b445;if(_0x398c33===_0x56b767[_0x4fb76b(0x18d)]||_0xa6b445===_0x4fb76b(0x209))return!0x1;try{let _0x3c8aa4=_0x2fcbbf['get'](_0xa6b445);return _0x3c8aa4||(_0x3c8aa4=new _0x2bcb3a(_0x398c33,_0x4fb76b(0x15f)+_0xa6b445),_0x2fcbbf[_0x4fb76b(0x1eb)](_0xa6b445,_0x3c8aa4)),_0xcb9ed&&_0x3c8aa4['setShapeData']({'adjustValues':_0xcb9ed},!0x0),_0x3c8aa4['updateContext']({'width':_0x17a08e,'height':_0x55cefd}),_0x3c8aa4['buildClipPath'](_0x3230d4,{'left':0x0,'top':0x0,'width':_0x17a08e,'height':_0x55cefd});}catch{return!0x1;}});this[_0x1f4b49(0x23d)](_0x4be220),this[_0x1f4b49(0x23d)]({'dispose':()=>_0x2fcbbf[_0x1f4b49(0x298)]()});}[_0x3721df(0x27e)](_0x10b2f7,_0x166f2,_0x21c7bb,_0x23e40a,_0x38d962){const _0x118243=_0x3721df;let _0x18e879=this[_0x118243(0x212)][_0x118243(0x28e)](_0x10b2f7,_0x166f2);if(!_0x18e879[_0x21c7bb])return;let _0x1d9ad={..._0x18e879[_0x21c7bb],'prstGeom':_0x23e40a,'adjustValues':_0x38d962};this[_0x118243(0x212)][_0x118243(0xb4)]([_0x1d9ad]);}};Q=Y([J(0x0,_0x44ac9c(_0x305aba)),J(0x1,_0x44ac9c(_0x30b385))],Q);const On=_0x3721df(0x2e6),kn=_0x3721df(0x2cc);function An({onShapeClick:_0x13a1fd,excludeGroups:_0x3f08ea}){const _0x4c1271=_0x3721df;return _0x25dfce(_0x46042a,{'excludeGroups':_0x3f08ea,'onShapeClick':_0x13a1fd,'scrollContainer':_0x4c1271(0x1dc)});}function jn(){const _0x319e8e=_0x3721df;let _0x33e914=_0x25b7f6(_0x30b385),_0x360424=_0x25b7f6(Q);return _0x25dfce(_0x5317f0,{'buttonLabel':_0x319e8e(0x1ed),'excludeGroups':[_0x302dfa[_0x319e8e(0x241)]],'onShapeClick':_0x21eaaa=>{const _0x536d5d=_0x319e8e;let _0x3c0b56=_0x33e914[_0x536d5d(0x1d9)]()[_0x536d5d(0x2a0)](_0x3e3b8b=>_0x3e3b8b[_0x536d5d(0x132)]===_0x91d30f[_0x536d5d(0x302)]);if(!_0x3c0b56)return;let {unitId:_0x2bfd33,subUnitId:_0x43a456,drawingId:_0x4cf865}=_0x3c0b56;_0x360424['clipByShape'](_0x2bfd33,_0x43a456,_0x4cf865,_0x21eaaa[_0x536d5d(0xca)]);}});}function Mn(){const _0x39df57=_0x3721df;let _0x5e4f96=_0x25b7f6(_0xd6eaa9),_0x2ecbd0=_0x25b7f6(_0x30b385),_0x283400=_0x25b7f6(_0xeac766),_0x51cf5b=_0x2ecbd0['getFocusDrawings']()[0x0],_0x4923ec=_0x51cf5b?_0x283400[_0x39df57(0xd9)](_0x51cf5b['unitId']):void 0x0,_0xe05e31=_0x4923ec===_0x2c116a[_0x39df57(0x1ae)]?_0x39df57(0x2bf):_0x4923ec===_0x2c116a[_0x39df57(0x1a1)]?kn:void 0x0,_0x5a38a8=_0xe05e31?_0x5e4f96[_0x39df57(0x2f5)](_0xe05e31):void 0x0;return _0x5a38a8?_0x25dfce(_0x5a38a8,{}):null;}function Nn(){let _0x5d6612=_0x25b7f6(_0x27b781);return _0x25dfce(An,{'onShapeClick':_0x1b90a4=>{const _0x1f7b2c=_0x3b42;_0x5d6612[_0x1f7b2c(0x24b)](xn['id'],{'value':_0x1b90a4[_0x1f7b2c(0xca)],'enhanceParams':{'endArrow':_0x1b90a4[_0x1f7b2c(0x30d)],'startArrow':_0x1b90a4[_0x1f7b2c(0x2a1)],'horizontal':_0x1b90a4['horizontal'],'vertical':_0x1b90a4[_0x1f7b2c(0xe9)]}});}});}function Pn(_0x520f61){const _0x45016f=_0x3721df;let _0x3980a7=_0x520f61['get'](_0xeac766);return{'id':xn['id'],'type':_0x1c948f[_0x45016f(0x2ae)],'selections':[{'label':{'name':On,'hoverable':!0x1,'selectable':!0x1,'props':{'id':xn['id']}}}],'icon':_0x45016f(0x149),'tooltip':_0x45016f(0x13f),'activated$':_0x2654cc(_0x3980a7,!0x1,()=>new _0x521661(_0x3e5c32=>{_0x3e5c32['next'](!0x1);})),'hidden$':_0x35acb4(_0x520f61,_0x2c116a[_0x45016f(0x1a1)]),'disabled$':_0x2a9b9c(_0x520f61)};}function Fn(_0x253cf6){const _0x193f5a=_0x3721df;let _0x118558=_0x253cf6[_0x193f5a(0x2f5)](_0xeac766);return{'id':Dn['id'],'type':_0x1c948f[_0x193f5a(0xcd)],'icon':_0x193f5a(0x2d6),'title':_0x193f5a(0x307),'tooltip':_0x193f5a(0x307),'activated$':_0x2654cc(_0x118558,!0x1,()=>new _0x521661(_0x22bf2e=>{const _0x345727=_0x193f5a;_0x22bf2e[_0x345727(0x11b)](!0x1);})),'hidden$':_0x35acb4(_0x253cf6,_0x2c116a['UNIVER_SHEET']),'disabled$':_0x2a9b9c(_0x253cf6)};}const In={[_0x3f9387[_0x3721df(0xb3)]]:{[xn['id']]:{'order':0x4,'menuItemFactory':Pn},[Dn['id']]:{'order':4.1,'menuItemFactory':Fn}}};var Ln=_0x3721df(0x281),Rn='1.0.0-alpha.4';const zn={'type':_0x518569[_0x3721df(0x1f0)],'id':_0x3721df(0x1f9),'handler'(){return!0x0;}},Bn={'type':_0x518569['OPERATION'],'id':_0x3721df(0x215),'handler'(){return!0x0;}},Vn={};function Hn(_0x3cb8f8){return _0x3cb8f8['trim']()||void 0x0;}function Un(_0x2b45f1){const _0x1a9de4=_0x3721df;switch(_0x2b45f1['drawingType']){case _0x91d30f['DRAWING_IMAGE']:return'image';case _0x91d30f[_0x1a9de4(0x13b)]:return _0x1a9de4(0x1ca);case _0x91d30f[_0x1a9de4(0x220)]:return _0x1a9de4(0x216);case _0x91d30f[_0x1a9de4(0x261)]:return _0x1a9de4(0x1db);case _0x91d30f['DRAWING_VIDEO']:return _0x1a9de4(0x24e);case _0x91d30f['DRAWING_GROUP']:return _0x1a9de4(0x131);case _0x91d30f[_0x1a9de4(0x2eb)]:return'unit';case _0x91d30f[_0x1a9de4(0x1e3)]:return _0x1a9de4(0x1f2);case _0x91d30f[_0x1a9de4(0x27a)]:return _0x1a9de4(0x16a);default:return _0x1a9de4(0x249);}}function Wn(_0x243f80,_0x1aef28,_0x1f14a4){const _0x4e75ff=_0x3721df;var _0x523f5f;return((_0x523f5f=_0x243f80[_0x4e75ff(0x108)])==null?void 0x0:_0x523f5f[_0x4e75ff(0x292)]())||_0xec3f99(_0x1f14a4,Un(_0x243f80))+'\x20'+(_0x1aef28+0x1);}function Gn(){const _0x42b345=_0x3721df;var _0x2fe7d8,_0x5d23d4,_0x369351,_0x1509fc;let _0x20c19d=_0x25b7f6(_0x52ec80),_0x280a1d=_0x25b7f6(_0x27b781),_0x5036a7=_0x25b7f6(_0xeac766),_0x3e09e1=_0x25b7f6(_0x1769d9),_0x2002f3=_0x25b7f6(_0x30b385),_0x2d9be4=_0x25b7f6(_0x3ab9c0),[,_0x56b53d]=_0x3a44d9(_0x55eb97=>_0x55eb97+0x1,0x0),_0x484cb2=_0x5036a7[_0x42b345(0x26a)](_0x2c116a['UNIVER_SHEET']),_0xa23043=(_0x2fe7d8=_0x484cb2==null?void 0x0:_0x484cb2[_0x42b345(0x1b5)]())==null?'':_0x2fe7d8,_0x223920=(_0x5d23d4=_0x484cb2==null||(_0x369351=_0x484cb2[_0x42b345(0xa9)]())==null?void 0x0:_0x369351[_0x42b345(0x2b9)]())==null?'':_0x5d23d4,_0x3e73ab=_0x26444c(()=>_0x2002f3['focus$'],_0x2002f3[_0x42b345(0x1d9)](),!0x1,[_0x2002f3]);_0x34db80(()=>{const _0x52030f=_0x42b345;let _0x49e8cf=_0x280a1d[_0x52030f(0x2b1)](()=>_0x56b53d());return()=>_0x49e8cf[_0x52030f(0x250)]();},[_0x280a1d]);let _0x3c8724=_0xa23043&&_0x223920?_0x3e09e1['getDrawingData'](_0xa23043,_0x223920):{},_0x27515e=_0xa23043&&_0x223920?_0x3e09e1[_0x42b345(0x17a)](_0xa23043,_0x223920):[],_0x58e4ff=_0x46c805(()=>_0x3450b9(_0x20c19d),[_0x20c19d]),_0x55c4f2=_0x46c805(()=>{const _0x4667cc=_0x42b345;let _0x216890=_0x27515e['map'](_0x315afd=>_0x3c8724[_0x315afd])[_0x4667cc(0x10d)](_0x31d659=>!!_0x31d659)[_0x4667cc(0x24f)](),_0x4f2569=_0x216890[_0x4667cc(0x271)]((_0x304b6f,_0x4ac2e2)=>(_0x304b6f[_0x32953c(_0x4ac2e2[_0x4667cc(0x132)])]+=0x1,_0x304b6f),{'canvas':0x0,'floating':0x0}),_0x222c58={'canvas':0x0,'floating':0x0};return _0x216890['map']((_0x3357c9,_0x38b61c)=>{const _0x5bde4d=_0x4667cc;let _0x706ea4=_0x32953c(_0x3357c9[_0x5bde4d(0x132)]),_0x4faca1=_0x706ea4===_0x1532b7,_0x4a37f3=_0x222c58[_0x706ea4]++;return{'id':_0x3357c9[_0x5bde4d(0x121)],'name':Wn(_0x3357c9,_0x38b61c,_0x20c19d),'description':_0x3357c9[_0x5bde4d(0x1e7)],'visible':_0x3357c9[_0x5bde4d(0x13e)]!==!0x0,'selectable':_0x3357c9[_0x5bde4d(0x2dd)]!==!0x1,'sectionId':_0x706ea4,'sectionTitle':_0x4faca1?_0x58e4ff[_0x5bde4d(0x1ec)]:_0x58e4ff[_0x5bde4d(0x276)],'capabilities':_0x4faca1?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x4faca1&&_0x4a37f3>0x0,'canMoveBackward':!_0x4faca1&&_0x4a37f3<_0x4f2569[_0x5bde4d(0x2dc)]-0x1,'canReorder':!_0x4faca1};});},[_0x3c8724,_0x27515e,_0x58e4ff[_0x42b345(0x276)],_0x58e4ff['sectionFloating'],_0x20c19d]),_0x5995fe=_0x46c805(()=>(_0x3e73ab==null?[]:_0x3e73ab)[_0x42b345(0x10d)](_0x174adb=>_0x174adb[_0x42b345(0xe5)]===_0xa23043&&_0x174adb[_0x42b345(0x183)]===_0x223920)[_0x42b345(0x2bb)](_0x2c4a59=>_0x2c4a59[_0x42b345(0x121)]),[_0x3e73ab,_0x223920,_0xa23043]),_0x2b295f=(_0x1509fc=_0x5995fe[_0x5995fe[_0x42b345(0x19e)]-0x1])==null?null:_0x1509fc,_0x1e5ef8=_0x478693=>{const _0x18cc9d=_0x42b345;var _0x4fe014;return(_0x4fe014=_0x3e09e1[_0x18cc9d(0x22d)]({'unitId':_0xa23043,'subUnitId':_0x223920,'drawingId':_0x478693}))==null?null:_0x4fe014;},_0x47a61a=_0x38758d=>{const _0x52088d=_0x42b345;!_0xa23043||!_0x38758d['length']||_0x280a1d[_0x52088d(0x24b)](_0x23c05b['id'],{'unitId':_0xa23043,'drawings':_0x38758d});},_0x362d67=(_0x2b9553,_0x3e7cde)=>{_0x1e5ef8(_0x2b9553)&&_0x47a61a([{'unitId':_0xa23043,'subUnitId':_0x223920,'drawingId':_0x2b9553,..._0x3e7cde}]);},_0x4ff459=(_0x15a8a0,_0x41934d)=>{const _0x55e1fe=_0x42b345;if(!_0xa23043||!_0x223920)return;let _0x15da46=_0x41934d?_0x5995fe[_0x55e1fe(0x2ba)](_0x15a8a0)?_0x5995fe[_0x55e1fe(0x10d)](_0x310a1c=>_0x310a1c!==_0x15a8a0):[..._0x5995fe,_0x15a8a0]:[_0x15a8a0];_0x280a1d[_0x55e1fe(0x213)](_0x549ead['id'],_0x15da46[_0x55e1fe(0x2bb)](_0xd218f8=>({'unitId':_0xa23043,'subUnitId':_0x223920,'drawingId':_0xd218f8})));let _0x3ecfad=_0x15da46[_0x15da46[_0x55e1fe(0x19e)]-0x1];_0x3ecfad?_0xe8ee4b(_0x2d9be4,{'unitId':_0xa23043,'subUnitId':_0x223920,'drawingId':_0x3ecfad}):_0x40ea7f(_0x2d9be4,_0xa23043);},_0x35a2e9=(_0x2674a3,_0x351d6b)=>{const _0x45e110=_0x42b345;_0x47a61a(_0x2674a3['map'](_0x310f80=>_0x1e5ef8(_0x310f80))[_0x45e110(0x10d)](_0x5452e6=>!!_0x5452e6)[_0x45e110(0x10d)](_0x504053=>_0x504053['hidden']!==!0x0!==_0x351d6b)[_0x45e110(0x2bb)](_0x244649=>({'unitId':_0xa23043,'subUnitId':_0x223920,'drawingId':_0x244649['drawingId'],'hidden':!_0x351d6b})));},_0x28a854=_0x1ce831=>{const _0xe92500=_0x42b345;let _0x1eafc4=_0x1e5ef8(_0x1ce831);_0x1eafc4&&_0x362d67(_0x1ce831,{'selectable':_0x1eafc4[_0xe92500(0x2dd)]===!0x1?void 0x0:!0x1});},_0x3813ef=(_0x19bb66,_0x4dc8d9)=>{const _0x4a0397=_0x42b345;var _0x64e73f,_0x26dfe5;let _0x332db3=Hn(_0x4dc8d9);((_0x64e73f=(_0x26dfe5=_0x1e5ef8(_0x19bb66))==null?void 0x0:_0x26dfe5[_0x4a0397(0x108)])==null?void 0x0:_0x64e73f)!==_0x332db3&&_0x362d67(_0x19bb66,{'name':_0x332db3});},_0x418f51=(_0x59dc12,_0x4c9e67)=>{var _0x1f42d1,_0x1f3bf9;let _0x524afb=Hn(_0x4c9e67);((_0x1f42d1=(_0x1f3bf9=_0x1e5ef8(_0x59dc12))==null?void 0x0:_0x1f3bf9['description'])==null?void 0x0:_0x1f42d1)!==_0x524afb&&_0x362d67(_0x59dc12,{'description':_0x524afb});},_0x2c7687=(_0x33bc37,_0x2fc737)=>{!_0xa23043||!_0x223920||_0x280a1d['executeCommand'](_0x16f93c['id'],{'unitId':_0xa23043,'subUnitId':_0x223920,'drawingIds':[_0x33bc37],'arrangeType':_0x2fc737});};return!_0xa23043||!_0x223920?_0x25dfce(_0x42b345(0x2ed),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x58e4ff[_0x42b345(0x1bc)]}):_0x25dfce(_0x233868,{'items':_0x55c4f2,'selectedIds':_0x5995fe,'focusedId':_0x2b295f,'labels':_0x58e4ff,'onSelect':_0x4ff459,'onSetVisible':_0x35a2e9,'onCommitName':_0x3813ef,'onCommitDescription':_0x418f51,'onMoveForward':_0x5f1b1d=>_0x2c7687(_0x5f1b1d,_0x5d76f1[_0x42b345(0x259)]),'onMoveBackward':_0x4b52d0=>_0x2c7687(_0x4b52d0,_0x5d76f1['backward']),'onToggleSelectable':_0x28a854});}let Kn=class{constructor(_0x2bfcdb){const _0x3c974b=_0x3721df;this[_0x3c974b(0x28f)]=_0x2bfcdb;}[_0x3721df(0x155)](_0x4fa527,_0x11c4e7){const _0x20433b=_0x3721df;let _0x4a9e14=this[_0x20433b(0x28f)][_0x20433b(0x1f1)](_0x4fa527[_0x20433b(0xe5)]),_0x4bf9e5=_0x4a9e14==null?void 0x0:_0x4a9e14[_0x20433b(0x223)];if(!_0x4bf9e5)return;let _0x4bd47d=_0xc0766c(_0x4fa527),_0x22589f=_0x4bf9e5[_0x20433b(0xc2)](_0x4bd47d);_0x22589f==null||_0x22589f[_0x20433b(0x2a3)](_0x11c4e7);}};Kn=Y([J(0x0,_0x3ab9c0)],Kn);function qn(){const _0x29714c=_0x3721df;let _0xc3d545=_0x25b7f6(_0x30b385),_0x57b12c=_0x26444c(()=>_0xc3d545[_0x29714c(0x225)],_0xc3d545[_0x29714c(0x1d9)](),!0x1,[_0xc3d545]);return _0x57b12c['length']===0x0?null:_0x25dfce('div',{'children':_0x14d810('div',{'className':_0x29714c(0x1cc),'children':[_0x25dfce(_0x3efe8e,{'drawings':_0x57b12c,'hasCropper':!0x1}),_0x25dfce(_0x2f2813,{'drawings':_0x57b12c})]})});}function _0x3b42(_0x157055,_0x470a23){_0x157055=_0x157055-0xa5;const _0x12229e=_0x1222();let _0x3b42e9=_0x12229e[_0x157055];return _0x3b42e9;}function Jn(_0x777fbd){let {unitId:_0x185ca9,subUnitId:_0x3bf444,shapeId:_0x241ade}=_0x777fbd,_0x2436fd=_0x25b7f6(_0x27b781),_0xc6517e=_0x25b7f6(Kn);return _0x25dfce(_0x5c6639,{..._0x777fbd,'positionEditor':_0x25dfce(qn,{}),'onUpdateShapeData':(_0x681e79,_0x3644e8)=>{fn(_0x2436fd,_0x185ca9,_0x3bf444,_0x241ade,_0x681e79,_0x3644e8);},'onUpdateLineShapeData':(_0x511f4b,_0x59e17f)=>{pn(_0x2436fd,_0x185ca9,_0x3bf444,_0x241ade,_0x511f4b,_0x59e17f);},'onUpdateShapeFillImage':_0x47d1f7=>{const _0x218f41=_0x3b42;_0xc6517e[_0x218f41(0x155)]({'unitId':_0x185ca9,'subUnitId':_0x3bf444,'drawingId':_0x241ade},_0x47d1f7);}});}function Yn(_0x5ca995){const _0x58e442=_0x3721df;let _0x3c1df3=_0x5ca995[_0x58e442(0x294)]['extraProps'];return _0x3c1df3?_0x25dfce(Xn,{..._0x3c1df3}):null;}function Xn(_0x2e5988){const _0x5dae56=_0x3721df;var _0x5ce154,_0x56f4e4;let _0x400884=_0x25b7f6(_0x27b781),_0x3dcbf2=_0x25b7f6(_0x2318dd),{unitId:_0x203160,subUnitId:_0x1b061f,drawingId:_0x5b67d3,drawingType:_0x29759a,shapeType:_0x8bbac7}=_0x2e5988,[_0x58f885,_0x1d16c1]=_0x2d0567(_0x2e5988[_0x5dae56(0x15a)]),_0x1f7ff9=_0x46c805(()=>_0x46c9e2(_0x58f885),[_0x58f885]),_0x316513=_0x46c805(()=>_0x2909fb(_0x58f885),[_0x58f885]);_0x34db80(()=>{const _0x48fc1a=_0x5dae56;let _0x255b79=_0x400884[_0x48fc1a(0x2b1)](_0x5ea990=>{const _0x4b6a2a=_0x48fc1a;if(_0x5ea990['id']!==_0x4ea02e['id'])return;let _0x217820=_0x3dcbf2[_0x4b6a2a(0x26f)](_0x203160,_0x1b061f,_0x5b67d3);_0x217820&&_0x1d16c1(_0x217820);});return()=>_0x255b79[_0x48fc1a(0x250)]();},[_0x400884,_0x5b67d3,_0x3dcbf2,_0x1b061f,_0x203160]);let _0x5255a6=_0x3c0ee3=>{_0x1d16c1(_0x149161=>({..._0x149161,..._0x3c0ee3}));},_0x5e6595=_0x4f1f16=>{let _0x4a30df=_0x3ecb17(_0x58f885,_0x4f1f16);fn(_0x400884,_0x203160,_0x1b061f,_0x5b67d3,{'oldShapeData':{'shapeText':_0x58f885['shapeText']}},_0x4a30df),_0x5255a6(_0x4a30df);};return _0x25dfce(_0x1c342a,{'shapeData':_0x58f885,'shapeType':_0x8bbac7,'textStyle':{'ff':_0x170bf6['shapeText']['fontFamily'],'fs':_0x170bf6[_0x5dae56(0x2e9)][_0x5dae56(0x16e)],'cl':{'rgb':_0x170bf6['shapeText'][_0x5dae56(0x237)]},..._0x1f7ff9},'textModel':_0x316513?{'ha':(_0x5ce154=_0x316513['ha'])==null?_0x2be8d5[_0x5dae56(0x262)]:_0x5ce154,'va':(_0x56f4e4=_0x316513['va'])==null?_0xabb9d9[_0x5dae56(0x110)]:_0x56f4e4}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x170bf6['fill'],'defaultGradientEndColor':_0x170bf6[_0x5dae56(0x171)],'defaultStrokeColor':_0x170bf6['stroke'],'onUpdateShapeData':(_0x340f30,_0x5c546e)=>{fn(_0x400884,_0x203160,_0x1b061f,_0x5b67d3,_0x340f30,_0x5c546e),_0x5c546e&&_0x5255a6(_0x5c546e);},'onUpdateText':_0x5e6595,'onOpenPanel':()=>{const _0x291d44=_0x5dae56;_0x400884[_0x291d44(0x24b)](Bn['id'],{'unitId':_0x203160,'subUnitId':_0x1b061f,'drawingId':_0x5b67d3});},'onDelete':()=>{const _0xa72b3e=_0x5dae56;_0x400884[_0xa72b3e(0x24b)](_0xc60b82['id'],{'unitId':_0x203160,'drawings':[{'unitId':_0x203160,'subUnitId':_0x1b061f,'drawingId':_0x5b67d3,'drawingType':_0x29759a}]});}});}var Zn=class extends _0x3ff889{constructor(..._0x58cc1d){const _0x44fd72=_0x3721df;super(..._0x58cc1d),q(this,'_editingParams$',new _0x2c89d2(null)),q(this,_0x44fd72(0x22e),this[_0x44fd72(0x1e4)][_0x44fd72(0x1f4)]()),q(this,'_onSavingEditorData$',new _0x2c89d2(!0x1)),q(this,_0x44fd72(0x26e),this[_0x44fd72(0xd0)][_0x44fd72(0x1f4)]());}[_0x3721df(0x250)](){const _0x1dae69=_0x3721df;this[_0x1dae69(0x1e4)][_0x1dae69(0x11b)](null),this[_0x1dae69(0x1e4)]['complete'](),this['_onSavingEditorData$']['next'](!0x1),this[_0x1dae69(0xd0)][_0x1dae69(0x1d7)](),super[_0x1dae69(0x250)]();}[_0x3721df(0x2c4)](_0x23a1f6){const _0x52069a=_0x3721df;this[_0x52069a(0x1e4)]['next'](_0x23a1f6),_0x23a1f6==null&&this[_0x52069a(0xd0)][_0x52069a(0x11b)](!0x1);}['setOnSavingEditorData'](_0x1a200d){const _0x43bd9e=_0x3721df;this[_0x43bd9e(0xd0)][_0x43bd9e(0x11b)](_0x1a200d);}[_0x3721df(0x2d0)](){const _0x59381b=_0x3721df;return this[_0x59381b(0x1e4)][_0x59381b(0xc3)]();}[_0x3721df(0x2ef)](_0x3cf456){const _0x5e2794=_0x3721df;this[_0x5e2794(0x2d0)]()&&(this['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x4b6499=_0x5e2794;this[_0x4b6499(0x2c4)](null);}));}['cancelEditing'](){const _0xea66d7=_0x3721df;this[_0xea66d7(0x2d0)]()&&this[_0xea66d7(0x2c4)](null);}};const Qn=_0x480e63(()=>{const _0x5760d7=_0x3721df;let _0x5e5412=_0x25b7f6(Zn),_0x2c7911=_0x25b7f6(_0x2318dd),_0x149435=_0x25b7f6(_0x30b385),_0x1f358a=_0x25b7f6(_0x27b781),_0x22ebb1=_0x25b7f6(_0x3ab9c0);return _0x25dfce(_0x343aa1,{'adapter':_0x46c805(()=>({'getShapeModel':(_0x4a649a,_0x36471d,_0x1e982e)=>_0x2c7911[_0x5760d7(0xef)](_0x4a649a,_0x36471d,_0x1e982e),'getShapeData':(_0x1157a9,_0x1d8866,_0x264c55)=>_0x2c7911[_0x5760d7(0x26f)](_0x1157a9,_0x1d8866,_0x264c55),'getDrawingTransform':(_0x5a0077,_0x135e5e,_0x8ddad5)=>{const _0x3bc38a=_0x5760d7;let _0x2fa0ac=_0x149435[_0x3bc38a(0x22d)]({'unitId':_0x5a0077,'subUnitId':_0x135e5e,'drawingId':_0x8ddad5});return _0x2fa0ac==null?void 0x0:_0x2fa0ac[_0x3bc38a(0x288)];},'updateShapeText':({unitId:_0x16c096,subUnitId:_0x5559f8,shapeId:_0x3046d1,shapeText:_0x47b8fd,oldShapeText:_0x655dcd})=>{const _0x1042f7=_0x5760d7;_0x1f358a[_0x1042f7(0x24b)](dn['id'],{'unitId':_0x16c096,'subUnitId':_0x5559f8,'shapeId':_0x3046d1,'shapeData':{'shapeText':_0x47b8fd},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x655dcd}}});},'updateHostSize':({unitId:_0x568a9a,subUnitId:_0x3c248a,shapeId:_0x59e1a6,width:_0x1a8bf7,height:_0x1dad19})=>{const _0x4c3f19=_0x5760d7;var _0x4aa637,_0x15003d,_0x5aaee5;let _0x19c1df=_0x149435[_0x4c3f19(0x22d)]({'unitId':_0x568a9a,'subUnitId':_0x3c248a,'drawingId':_0x59e1a6}),_0x1ddea9=_0x19c1df==null?void 0x0:_0x19c1df[_0x4c3f19(0x288)];if(!_0x19c1df||!_0x1ddea9)return;let _0x2add91={..._0x1ddea9,'width':_0x1a8bf7,'height':_0x1dad19},_0x3766f3=(_0x4aa637=_0x22ebb1[_0x4c3f19(0x1f1)](_0x568a9a))==null||(_0x4aa637=_0x4aa637[_0x4c3f19(0x29b)](_0x39e39b)[_0x4c3f19(0x12b)](_0x3c248a))==null?void 0x0:_0x4aa637[_0x4c3f19(0x25a)],_0x3af192=_0x3766f3?(_0x15003d=_0x31cd08(_0x2add91,_0x3766f3))==null?_0x19c1df[_0x4c3f19(0xb8)]:_0x15003d:_0x19c1df[_0x4c3f19(0xb8)],_0x74f1b3=_0x3766f3?(_0x5aaee5=_0x2708bd(_0x2add91,_0x3766f3))==null?_0x19c1df['axisAlignSheetTransform']:_0x5aaee5:_0x19c1df[_0x4c3f19(0xbc)];_0x1f358a[_0x4c3f19(0x24b)](_0x23c05b['id'],{'unitId':_0x568a9a,'drawings':[{..._0x19c1df,'transform':_0x2add91,'sheetTransform':_0x3af192,'axisAlignSheetTransform':_0x74f1b3}]});},'allowHostSizeShrink':({unitId:_0x3b51d5,subUnitId:_0x2e5271,shapeId:_0x4eff06})=>_0x3fec91(_0x2c7911['getShapeDataById'](_0x3b51d5,_0x2e5271,_0x4eff06))}),[_0x1f358a,_0x149435,_0x22ebb1,_0x2c7911]),'editingService':_0x5e5412,'editorUnitId':Tn,'positionOptions':_0x46c805(()=>({'viewportKeys':{'main':_0x5e7f94[_0x5760d7(0x1de)],'leftTop':_0x5e7f94[_0x5760d7(0x1a2)],'top':_0x5e7f94[_0x5760d7(0xc1)],'left':_0x5e7f94['VIEW_MAIN_LEFT']},'getSkeleton':(_0x378b1b,_0x174b3f)=>{const _0x513dbd=_0x5760d7;var _0x39de45,_0x31aa75;return(_0x39de45=(_0x31aa75=_0x378b1b[_0x513dbd(0x29b)](_0x39e39b)['getSkeletonParam'](_0x174b3f[_0x513dbd(0x183)]))==null?void 0x0:_0x31aa75['skeleton'])==null?null:_0x39de45;}}),[])});});let $n=class extends _0x3ff889{constructor(_0x10f95d,_0x30e4a9){const _0x1842f3=_0x3721df;super(),this[_0x1842f3(0x172)]=_0x10f95d,this[_0x1842f3(0x1ea)]=_0x30e4a9,this[_0x1842f3(0x304)](),this[_0x1842f3(0x21f)]();}['_registerIcons'](){const _0x433f1e=_0x3721df;this[_0x433f1e(0x1ea)][_0x433f1e(0x238)](_0x433f1e(0x2d6))||this['disposeWithMe'](this[_0x433f1e(0x1ea)][_0x433f1e(0x221)]({'CopyDoubleIcon':_0x20e1e7}));}[_0x3721df(0x21f)](){const _0x1a05e0=_0x3721df;this[_0x1a05e0(0x23d)](this[_0x1a05e0(0x172)][_0x1a05e0(0x221)](Sn,Jn)),this[_0x1a05e0(0x23d)](this[_0x1a05e0(0x172)]['register'](Cn,Gn)),this[_0x1a05e0(0x23d)](this[_0x1a05e0(0x172)][_0x1a05e0(0x221)](On,Nn)),this[_0x1a05e0(0x23d)](this['_componentManager'][_0x1a05e0(0x221)](kn,jn)),this[_0x1a05e0(0x172)][_0x1a05e0(0x2f5)](_0xde8950)||this[_0x1a05e0(0x23d)](this[_0x1a05e0(0x172)][_0x1a05e0(0x221)](_0xde8950,Mn)),this['disposeWithMe'](this[_0x1a05e0(0x172)][_0x1a05e0(0x221)](wn,Yn)),this[_0x1a05e0(0x23d)](this['_componentManager'][_0x1a05e0(0x221)](En,_0x11982e)),this['disposeWithMe'](this[_0x1a05e0(0x172)][_0x1a05e0(0x221)](_0x1a05e0(0x1ce),Qn));}};$n=Y([J(0x0,_0x44ac9c(_0xd6eaa9)),J(0x1,_0x44ac9c(_0x51b1fb))],$n);let er=class extends _0x3ff889{constructor(_0x587295,_0x1d8933,_0x25e30c,_0x3c50ea,_0x3b81c5){const _0x1c75b2=_0x3721df;super(),this[_0x1c75b2(0x135)]=_0x587295,this[_0x1c75b2(0x212)]=_0x1d8933,this['_renderManagerService']=_0x25e30c,this[_0x1c75b2(0x205)]=_0x3c50ea,this['_imageShapeClipController']=_0x3b81c5,q(this,_0x1c75b2(0xff),null),q(this,_0x1c75b2(0x255),null),q(this,_0x1c75b2(0x113),null),q(this,_0x1c75b2(0x147),void 0x0),q(this,_0x1c75b2(0x2e5),[]),q(this,'_baseLeft',0x0),q(this,'_baseTop',0x0),q(this,_0x1c75b2(0x177),0x0),q(this,'_baseHeight',0x0),q(this,_0x1c75b2(0x167),!0x1),q(this,_0x1c75b2(0x256),void 0x0),q(this,_0x1c75b2(0x25f),void 0x0),q(this,_0x1c75b2(0xb1),void 0x0),q(this,_0x1c75b2(0x2bd),void 0x0),q(this,_0x1c75b2(0x139),!0x1),this[_0x1c75b2(0x19b)](),this['_registerMoveHandler']();}[_0x3721df(0x161)](){const _0x36307a=_0x3721df;this[_0x36307a(0x2bc)]();}[_0x3721df(0x274)](){const _0x340438=_0x3721df;this[_0x340438(0x2bc)](),this['_createControls'](!0x0);}[_0x3721df(0x21e)](_0x39d2ad,_0x4de82f,_0x124dbe,_0x57ddfe){const _0x2defee=_0x3721df;let _0x28524a=_0x39d2ad;if(!(_0x28524a===_0x56b767['None']||_0x39d2ad===_0x2defee(0x209)))try{let _0x553297=new _0x2bcb3a(_0x28524a,_0x2defee(0x2ad)+_0x39d2ad);return _0x57ddfe&&_0x553297[_0x2defee(0x2f0)]({'adjustValues':_0x57ddfe},!0x0),_0x553297[_0x2defee(0x229)]({'width':_0x4de82f,'height':_0x124dbe}),_0x553297;}catch{return;}}[_0x3721df(0x10e)](_0x19e716,_0x25f59e,_0xe015f5){const _0x1147be=_0x3721df;let _0x1a3470={'unitId':_0x19e716,'subUnitId':_0x25f59e,'drawingId':_0xe015f5},_0x35eaa8=this[_0x1147be(0x212)][_0x1147be(0x22d)](_0x1a3470);if(!(!_0x35eaa8||_0x35eaa8[_0x1147be(0x132)]!==_0x91d30f[_0x1147be(0x302)]))return _0x35eaa8;}[_0x3721df(0x1dd)](_0x1ce923,_0x1b1f4f,_0x574703){const _0x550197=_0x3721df;let _0x1e610d=this[_0x550197(0x28f)]['getRenderById'](_0x1ce923);if(!_0x1e610d)return;let {scene:_0x32122c}=_0x1e610d,_0x432cf2=_0xc0766c({'unitId':_0x1ce923,'subUnitId':_0x1b1f4f,'drawingId':_0x574703}),_0x4df932=_0x32122c[_0x550197(0x166)](_0x432cf2);if(_0x4df932 instanceof _0x6f9047){let _0x15f16f=_0x4df932[_0x550197(0x253)];if(_0x15f16f)return{'prstGeom':_0x15f16f,'adjustValues':_0x4df932[_0x550197(0x152)]};}}[_0x3721df(0x151)](_0x250f78=!0x1){const _0xced3ee=_0x3721df;if(!this[_0xced3ee(0x255)]||!this['_subUnitId']||!this[_0xced3ee(0xff)])return;let _0x41d20c=this[_0xced3ee(0x28f)][_0xced3ee(0x1f1)](this[_0xced3ee(0x255)]);if(!_0x41d20c||!_0x41d20c[_0xced3ee(0x29b)](_0x39e39b)[_0xced3ee(0x18f)]())return;let {scene:_0x2a56ec}=_0x41d20c,_0x580744=this['_getImageDrawingInfo'](this['_unitId'],this[_0xced3ee(0x113)],this[_0xced3ee(0xff)]);if(!_0x580744)return;let {transform:_0x10d4b5}=_0x580744;if(!_0x10d4b5)return;let {left:_0x67be9c,top:_0xa9b770,width:_0x242289,height:_0x38cf67,flipX:_0x2224ed,flipY:_0x4b85ec,angle:_0x42da1e=0x0}=_0x10d4b5;if(_0x67be9c===void 0x0||_0xa9b770===void 0x0)return;let _0x4f3d25=this['_getImagePrstGeom'](this[_0xced3ee(0x255)],this[_0xced3ee(0x113)],this[_0xced3ee(0xff)]);if(!_0x4f3d25)return;if(_0x250f78){let _0x48ca1c=this[_0xced3ee(0x21e)](_0x4f3d25[_0xced3ee(0x253)],_0x242289||0x0,_0x38cf67||0x0,_0x4f3d25['adjustValues']);if(!_0x48ca1c)return;this[_0xced3ee(0x147)]=_0x48ca1c[_0xced3ee(0x1c1)]();}let _0x4dbd01=this[_0xced3ee(0x147)];if(!(!_0x4dbd01||_0x4dbd01[_0xced3ee(0x19e)]===0x0))for(let _0xc4c424=0x0;_0xc4c424<_0x4dbd01[_0xced3ee(0x19e)];_0xc4c424++){let _0x189407=_0x4dbd01[_0xc4c424],_0x4d1903=_0x189407['x'],_0x19be58=_0x189407['y'];if(_0x2224ed&&(_0x4d1903=(_0x242289||0x0)-_0x4d1903),_0x4b85ec&&(_0x19be58=(_0x38cf67||0x0)-_0x19be58),_0x42da1e!==0x0){let _0x36e17d=(_0x242289||0x0)/0x2,_0x5bc605=(_0x38cf67||0x0)/0x2,_0xedaf00=_0x42da1e*Math['PI']/0xb4,_0x963678=Math[_0xced3ee(0x2ac)](_0xedaf00),_0x486815=Math['sin'](_0xedaf00),_0x441647=_0x4d1903-_0x36e17d,_0x7b772a=_0x19be58-_0x5bc605;_0x4d1903=_0x36e17d+(_0x441647*_0x963678-_0x7b772a*_0x486815),_0x19be58=_0x5bc605+(_0x441647*_0x486815+_0x7b772a*_0x963678);}let _0x104c9e={'x':_0x4d1903,'y':_0x19be58,'adjName':_0x189407[_0xced3ee(0x11c)]};this[_0xced3ee(0x1cb)](_0x2a56ec,_0x104c9e,_0x104c9e[_0xced3ee(0x11c)],_0x67be9c,_0xa9b770,this[_0xced3ee(0x255)],this[_0xced3ee(0x113)]);}}[_0x3721df(0x1cb)](_0xa7c9af,_0x40ea2d,_0x2b99c4,_0x35a5d8,_0xd2fedb,_0x192dd5,_0x16cfb8){const _0x2700a6=_0x3721df;if(!this['_activeImageId'])return;let _0x45677c=_0x2700a6(0x126)+this[_0x2700a6(0xff)]+'-'+_0x2b99c4,_0x1f2d0c=_0xa7c9af[_0x2700a6(0xc2)](_0x45677c);if(_0x1f2d0c){_0x1f2d0c[_0x2700a6(0x2d2)]({'left':_0x40ea2d['x']+_0x35a5d8-_0x170bf6['adjHandleSize'],'top':_0x40ea2d['y']+_0xd2fedb-_0x170bf6['adjHandleSize']});return;}let _0x5a6092=new yn(_0x45677c,{'left':_0x40ea2d['x']+_0x35a5d8-_0x170bf6[_0x2700a6(0x2ab)],'top':_0x40ea2d['y']+_0xd2fedb-_0x170bf6[_0x2700a6(0x2ab)],'adjName':_0x2b99c4,'shapeId':this[_0x2700a6(0xff)],'unitId':_0x192dd5,'subUnitId':_0x16cfb8,'width':_0x170bf6[_0x2700a6(0x2ab)]+0x8,'height':_0x170bf6[_0x2700a6(0x2ab)]+0x8,'zIndex':_0x1484b2+0x1,'evented':!0x0});this[_0x2700a6(0x2e5)]['push'](_0x5a6092),this['_attachAdjustEvent'](_0x5a6092,_0xa7c9af,_0x2b99c4),_0xa7c9af['addObject'](_0x5a6092,_0x1484b2+0x1);}[_0x3721df(0x2bc)](){const _0x3ec1c2=_0x3721df;this[_0x3ec1c2(0x2e5)][_0x3ec1c2(0x19e)]!==0x0&&(this[_0x3ec1c2(0x2e5)]['forEach'](_0x306d41=>_0x306d41[_0x3ec1c2(0x250)]()),this[_0x3ec1c2(0x2e5)]=[]);}['_getScrollInfo'](_0x420cf5,_0xecaa33){const _0x397afe=_0x3721df;var _0x10038b;let _0x5f022a={'x':0x0,'y':0x0},_0x4e7f7b=this[_0x397afe(0x28f)][_0x397afe(0x1f1)](_0x420cf5);if(!_0x4e7f7b||!_0x4e7f7b['with'](_0x39e39b)[_0x397afe(0xf0)](_0xecaa33))return _0x5f022a;let _0x3e02ce=_0x4e7f7b[_0x397afe(0x29b)](_0x4f30c1),_0x592187=_0x3e02ce==null?void 0x0:_0x3e02ce[_0x397afe(0xd5)]();if(!_0x592187)return _0x5f022a;let _0x375cb5=(_0x10038b=this[_0x397afe(0x205)][_0x397afe(0x201)](_0x420cf5))==null?void 0x0:_0x10038b[_0x397afe(0x24c)](_0xecaa33);if(!_0x375cb5)return _0x5f022a;let _0x4fe9ec=_0x177de7(_0x592187[_0x397afe(0x195)],_0x592187['sheetViewStartColumn'],_0x4e7f7b[_0x397afe(0x223)],_0x375cb5);return _0x4fe9ec?{'x':_0x4fe9ec[_0x397afe(0x1b0)],'y':_0x4fe9ec[_0x397afe(0xad)]}:_0x5f022a;}[_0x3721df(0x234)](_0x290214,_0x50ddee){const _0x34e1a5=_0x3721df;var _0x1376df,_0x56af13;let _0x252f69=(_0x1376df=this[_0x34e1a5(0x205)][_0x34e1a5(0x201)](_0x290214))==null?void 0x0:_0x1376df[_0x34e1a5(0x24c)](_0x50ddee);return(_0x56af13=_0x252f69==null?void 0x0:_0x252f69[_0x34e1a5(0x2da)]())==null?0x1:_0x56af13;}[_0x3721df(0x1fb)](_0x1624c6,_0x271a96,_0x444d78){const _0x591e21=_0x3721df;this[_0x591e21(0x23d)](_0x4e35de(_0x1624c6['onPointerDown$']['subscribeEvent']((_0x1451ed,_0x3e1da3)=>{const _0x3a06d6=_0x591e21;var _0x2e1e5a,_0xf7ac29,_0x2e6ff1;let {unitId:_0x304038,subUnitId:_0x29b53f,drawingId:_0x5e0d25}=_0x1624c6[_0x3a06d6(0x245)](),_0x540446=this[_0x3a06d6(0x10e)](_0x304038,_0x29b53f,_0x5e0d25);if(!(_0x540446!=null&&_0x540446[_0x3a06d6(0x288)]))return;let {left:_0x41d703,top:_0x5d8cb2,width:_0x5c88d9,height:_0x2088da}=_0x540446[_0x3a06d6(0x288)];this[_0x3a06d6(0x296)]=_0x41d703||0x0,this[_0x3a06d6(0x236)]=_0x5d8cb2||0x0,this[_0x3a06d6(0x177)]=_0x5c88d9||0x0,this['_baseHeight']=_0x2088da||0x0;let _0xe09ffa=!!((_0x2e1e5a=_0x540446[_0x3a06d6(0x288)])!=null&&_0x2e1e5a[_0x3a06d6(0x124)]),_0x445f83=!!((_0xf7ac29=_0x540446['transform'])!=null&&_0xf7ac29[_0x3a06d6(0x291)]),_0x115253=((_0x2e6ff1=_0x540446[_0x3a06d6(0x288)])==null?void 0x0:_0x2e6ff1[_0x3a06d6(0x300)])||0x0,_0x120c41=this[_0x3a06d6(0x1dd)](_0x304038,_0x29b53f,_0x5e0d25);if(!_0x120c41)return;let _0x1b0151=this[_0x3a06d6(0x21e)](_0x120c41[_0x3a06d6(0x253)],this['_baseWidth'],this[_0x3a06d6(0x14f)],_0x120c41['adjustValues']);if(!_0x1b0151||(this[_0x3a06d6(0x25f)]=_0x1b0151,this[_0x3a06d6(0x256)]=_0x1b0151['getAdjustInfoByName'](_0x444d78),!this[_0x3a06d6(0x256)]))return;this[_0x3a06d6(0x167)]=!0x0,_0x271a96[_0x3a06d6(0x1be)]();let _0x58f5b3=_0x120c41[_0x3a06d6(0x253)];this[_0x3a06d6(0xb1)]=_0x271a96['onPointerMove$'][_0x3a06d6(0x2ce)]((_0x476e84,_0x33639d)=>{const _0x11deba=_0x3a06d6;if(!this[_0x11deba(0x167)])return;let {offsetX:_0x379a6b,offsetY:_0x929e72}=_0x476e84,_0x593062=this[_0x11deba(0x256)];if(!this[_0x11deba(0x25f)]||!_0x593062)return;_0x271a96[_0x11deba(0x1be)](),_0x271a96[_0x11deba(0xce)](_0x5615ac[_0x11deba(0xae)]);let _0x34be8c={'left':0x0,'top':0x0,'width':this[_0x11deba(0x177)],'height':this[_0x11deba(0x14f)]},_0x4033ce=this[_0x11deba(0x18a)](_0x304038,_0x29b53f),_0x1a8703=this['_getZoomRatio'](_0x304038,_0x29b53f),_0x6f1f63=_0x379a6b/_0x1a8703+_0x4033ce['x']-this['_baseLeft'],_0x18b155=_0x929e72/_0x1a8703+_0x4033ce['y']-this['_baseTop'];if(_0x115253!==0x0){let _0x1f2fad=this['_baseWidth']/0x2,_0xd2e8b0=this[_0x11deba(0x14f)]/0x2,_0x30a993=_0x115253*Math['PI']/0xb4,_0x51ce19=Math[_0x11deba(0x2ac)](_0x30a993),_0x153cdc=Math['sin'](_0x30a993),_0x28e8d7=_0x6f1f63-_0x1f2fad,_0x2617d9=_0x18b155-_0xd2e8b0;_0x6f1f63=_0x1f2fad+(_0x28e8d7*_0x51ce19+_0x2617d9*_0x153cdc),_0x18b155=_0xd2e8b0+(-_0x28e8d7*_0x153cdc+_0x2617d9*_0x51ce19);}_0xe09ffa&&(_0x6f1f63=this[_0x11deba(0x177)]-_0x6f1f63),_0x445f83&&(_0x18b155=this['_baseHeight']-_0x18b155);let _0x3bec5a=this['_activeShapeModel']['calcAdjValue'](_0x34be8c,{'x':_0x6f1f63,'y':_0x18b155},_0x593062,_0xe09ffa,_0x445f83),_0x9b1309=_0x593062[_0x11deba(0x28d)]||_0x593062[_0x11deba(0x273)]||_0x593062[_0x11deba(0x15e)]||_0x593062[_0x11deba(0xf9)];_0x9b1309!==void 0x0&&(this[_0x11deba(0x25f)][_0x11deba(0x17f)](_0x9b1309,_0x3bec5a),this[_0x11deba(0x25f)][_0x11deba(0x229)]({'width':this[_0x11deba(0x177)],'height':this[_0x11deba(0x14f)]}),this['_updateImageAdjValues'](_0x304038,_0x29b53f,_0x5e0d25,_0x9b1309,_0x3bec5a),this['_activeAdjustPointList']=this[_0x11deba(0x25f)][_0x11deba(0x1c1)](),this[_0x11deba(0x256)]=this[_0x11deba(0x25f)][_0x11deba(0xa5)](_0x444d78),this[_0x11deba(0x151)](),_0x33639d[_0x11deba(0x17b)]());}),this[_0x3a06d6(0x2bd)]=_0x271a96['onPointerUp$'][_0x3a06d6(0x2ce)]((_0x449249,_0x86b41a)=>{const _0x23be52=_0x3a06d6;if(this[_0x23be52(0xb1)][_0x23be52(0x1d0)](),this['_adjHandlerPointerUp'][_0x23be52(0x1d0)](),_0x271a96[_0x23be52(0xda)](),this[_0x23be52(0x25f)]){let _0xcc685a=this[_0x23be52(0x25f)][_0x23be52(0x2c8)](),_0x30af43={};for(let _0x5d6bb7 of _0xcc685a){let _0xbd0c7d=this[_0x23be52(0x25f)][_0x23be52(0x25d)](_0x5d6bb7);_0xbd0c7d!==void 0x0&&(_0x30af43[_0x5d6bb7]=_0xbd0c7d);}this[_0x23be52(0x264)][_0x23be52(0x27e)](_0x304038,_0x29b53f,_0x5e0d25,_0x58f5b3,_0x30af43);}this[_0x23be52(0x256)]=void 0x0,this[_0x23be52(0x25f)]=void 0x0,this[_0x23be52(0x167)]=!0x1,_0x86b41a['stopPropagation'](),_0x271a96['enableObjectsEvent']();}),_0x3e1da3['stopPropagation']();})));}[_0x3721df(0x181)](_0x41846c,_0x69d404,_0x492841,_0x317c9c,_0x1a8586){const _0x1b53cc=_0x3721df;let _0x232097=this[_0x1b53cc(0x28f)][_0x1b53cc(0x1f1)](_0x41846c);if(!_0x232097)return;let {scene:_0x24bb56}=_0x232097,_0x37aa5f=_0xc0766c({'unitId':_0x41846c,'subUnitId':_0x69d404,'drawingId':_0x492841}),_0x587947=_0x24bb56[_0x1b53cc(0x166)](_0x37aa5f);if(_0x587947 instanceof _0x6f9047){var _0x4b9fb5;let _0x58cbbe=(_0x4b9fb5=_0x587947[_0x1b53cc(0x152)])==null?{}:_0x4b9fb5;_0x587947[_0x1b53cc(0x1ac)]({..._0x58cbbe,[_0x317c9c]:_0x1a8586}),_0x587947[_0x1b53cc(0x16b)](!0x0);}}['_registerMoveHandler'](){const _0x190d9f=_0x3721df;let _0x548eac=this[_0x190d9f(0x205)][_0x190d9f(0x1e2)](_0x2c116a[_0x190d9f(0x1a1)]);this[_0x190d9f(0x23d)](_0x548eac['pipe'](_0x319361(_0x584c3a=>_0x584c3a?_0x584c3a['activeSheet$'][_0x190d9f(0x27d)](_0x319361(_0x4ff5ce=>{const _0x346e66=_0x190d9f;if(!_0x4ff5ce)return _0x4cf815;let _0x5391b5=_0x584c3a[_0x346e66(0x1b5)](),_0x1484b7=this[_0x346e66(0x28f)]['getRenderById'](_0x5391b5),_0x25a94b=_0x1484b7==null?void 0x0:_0x1484b7[_0x346e66(0x223)];return _0x25a94b?_0x232c55(_0x25a94b):_0x4cf815;})):_0x4cf815))['subscribe'](_0x16effd=>{const _0x4c695d=_0x190d9f;let _0x446d37=_0x16effd[_0x4c695d(0x197)]();this[_0x4c695d(0x23d)](_0x16effd['onPointerMove$'][_0x4c695d(0x2ce)](()=>{const _0x12c191=_0x4c695d;this[_0x12c191(0x139)]&&this['_clearControls']();})),this['disposeWithMe'](_0x446d37[_0x4c695d(0x191)][_0x4c695d(0x290)](_0x35a824=>{const _0x42f7d8=_0x4c695d;let {objects:_0x43f1ea}=_0x35a824;if(this[_0x42f7d8(0x151)](),_0x43f1ea!==null&&_0x43f1ea[_0x42f7d8(0x30a)]===0x1){let _0xee0cc8=_0x43f1ea['values']()[_0x42f7d8(0x11b)]()[_0x42f7d8(0x15c)];_0xee0cc8 instanceof _0x6f9047&&_0xee0cc8[_0x42f7d8(0x253)]&&(this['_isImagePointerDown']=!0x0);}})),this[_0x4c695d(0x23d)](_0x446d37[_0x4c695d(0x1a0)][_0x4c695d(0x290)](()=>{const _0x64240a=_0x4c695d;this[_0x64240a(0x139)]&&this[_0x64240a(0x2bc)]();})),this[_0x4c695d(0x23d)](_0x16effd[_0x4c695d(0x163)]['subscribeEvent'](()=>{const _0x19d68f=_0x4c695d;this[_0x19d68f(0x139)]&&(this[_0x19d68f(0x139)]=!0x1,this[_0x19d68f(0x151)]());})),this['disposeWithMe'](_0x446d37[_0x4c695d(0x2f1)]['subscribe'](()=>{const _0xbf4224=_0x4c695d;if(this[_0xbf4224(0x255)]&&this['_subUnitId']&&this[_0xbf4224(0xff)]){let _0x21b250=this['_getImagePrstGeom'](this[_0xbf4224(0x255)],this['_subUnitId'],this['_activeImageId']);if(_0x21b250){var _0x423472,_0x3d4f4c;let _0x1a5517=this[_0xbf4224(0x10e)](this[_0xbf4224(0x255)],this[_0xbf4224(0x113)],this[_0xbf4224(0xff)]),_0x56e5f9=(_0x1a5517==null||(_0x423472=_0x1a5517['transform'])==null?void 0x0:_0x423472['width'])||0x0,_0x1a0cb7=(_0x1a5517==null||(_0x3d4f4c=_0x1a5517[_0xbf4224(0x288)])==null?void 0x0:_0x3d4f4c[_0xbf4224(0x193)])||0x0,_0x29dcc4=this[_0xbf4224(0x21e)](_0x21b250['prstGeom'],_0x56e5f9,_0x1a0cb7,_0x21b250[_0xbf4224(0x257)]);_0x29dcc4&&(this[_0xbf4224(0x147)]=_0x29dcc4[_0xbf4224(0x1c1)](),this[_0xbf4224(0x2bc)](),this[_0xbf4224(0x151)](!0x0));}}}));}));}[_0x3721df(0x19b)](){const _0x4abe32=_0x3721df;this['disposeWithMe'](this[_0x4abe32(0x212)][_0x4abe32(0x225)][_0x4abe32(0x290)](_0xc9a6f9=>{const _0x2d7c72=_0x4abe32;if(_0xc9a6f9['length']===0x1){let _0x280bf4=_0xc9a6f9[0x0];if(_0x280bf4['drawingType']===_0x91d30f[_0x2d7c72(0x302)]){let {unitId:_0x2de294,subUnitId:_0x56402b,drawingId:_0x484091}=_0x280bf4,_0x237044=this[_0x2d7c72(0x1dd)](_0x2de294,_0x56402b,_0x484091);if(_0x237044){var _0x40ef4e,_0x18d7f3;this[_0x2d7c72(0xff)]=_0x484091,this['_unitId']=_0x2de294,this[_0x2d7c72(0x113)]=_0x56402b;let _0x3711a2=this[_0x2d7c72(0x10e)](_0x2de294,_0x56402b,_0x484091),_0x630885=(_0x3711a2==null||(_0x40ef4e=_0x3711a2[_0x2d7c72(0x288)])==null?void 0x0:_0x40ef4e['width'])||0x0,_0x3f4829=(_0x3711a2==null||(_0x18d7f3=_0x3711a2[_0x2d7c72(0x288)])==null?void 0x0:_0x18d7f3[_0x2d7c72(0x193)])||0x0,_0x35ff7d=this[_0x2d7c72(0x21e)](_0x237044[_0x2d7c72(0x253)],_0x630885,_0x3f4829,_0x237044[_0x2d7c72(0x257)]);_0x35ff7d&&(this['_activeAdjustPointList']=_0x35ff7d[_0x2d7c72(0x1c1)]()),this['_clearControls'](),this[_0x2d7c72(0x151)](!0x0);}else this[_0x2d7c72(0x285)]();}else this[_0x2d7c72(0x285)]();}else this['_resetState']();})),this[_0x4abe32(0x23d)](this['_drawingManagerService'][_0x4abe32(0xe0)][_0x4abe32(0x290)](_0x5c4d55=>{const _0xd328e5=_0x4abe32;if(_0x5c4d55[_0xd328e5(0x19e)]===0x1){let _0x3a563b=_0x5c4d55[0x0],_0x158888=this[_0xd328e5(0x212)][_0xd328e5(0x22d)](_0x3a563b);(_0x158888==null?void 0x0:_0x158888[_0xd328e5(0x132)])===_0x91d30f[_0xd328e5(0x302)]&&this['_activeImageId']===_0x3a563b[_0xd328e5(0x121)]&&(this[_0xd328e5(0x2bc)](),this[_0xd328e5(0x151)](!0x0));}})),this['disposeWithMe'](this[_0x4abe32(0x212)][_0x4abe32(0x2aa)][_0x4abe32(0x290)](_0x19b566=>{const _0x25f024=_0x4abe32;for(let _0x23e78c of _0x19b566)this[_0x25f024(0xff)]===_0x23e78c[_0x25f024(0x121)]&&this['_resetState']();}));}['_resetState'](){const _0x2d2f5a=_0x3721df;this[_0x2d2f5a(0xff)]=null,this[_0x2d2f5a(0x255)]=null,this['_subUnitId']=null,this['_activeAdjustPointList']=void 0x0,this[_0x2d2f5a(0x2bc)]();}};er=Y([J(0x1,_0x30b385),J(0x2,_0x44ac9c(_0x3ab9c0)),J(0x3,_0xeac766),J(0x4,_0x44ac9c(Q))],er);let tr=class extends _0x3ff889{constructor(_0x1aa558,_0x88db49,_0x4fa238,_0x2ffcfe){const _0x18f86b=_0x3721df;super(),this[_0x18f86b(0x205)]=_0x1aa558,this[_0x18f86b(0x120)]=_0x88db49,this[_0x18f86b(0x2de)]=_0x4fa238,this[_0x18f86b(0x1a7)]=_0x2ffcfe,this[_0x18f86b(0x16d)]();}[_0x3721df(0x16d)](){const _0x41b70c=_0x3721df;this['disposeWithMe'](this[_0x41b70c(0x120)]['interceptCommand']({'getMutations':_0x3f6a1c=>{const _0x8380d5=_0x41b70c;if(_0x3f6a1c['id']===_0x28140a['id']){let _0x10cf3f=_0x458956(this[_0x8380d5(0x205)],_0x3f6a1c['params']);if(!_0x10cf3f)return{'redos':[],'undos':[]};let {unitId:_0x3d2653,subUnitId:_0xb3f29d}=_0x10cf3f,_0x59f6fd=this[_0x8380d5(0x2de)][_0x8380d5(0x28e)](_0x3d2653,_0xb3f29d),_0x39c4ed=Object[_0x8380d5(0x258)](_0x59f6fd)[_0x8380d5(0x10d)](_0x19a80d=>_0x19a80d[_0x8380d5(0x132)]===_0x91d30f['DRAWING_SHAPE']);if(_0x39c4ed[_0x8380d5(0x19e)]===0x0)return{'redos':[],'undos':[]};let _0x5e88d6=[],_0x4f1e33=[];for(let _0xc605e=0x0;_0xc605e<_0x39c4ed[_0x8380d5(0x19e)];_0xc605e++){let _0x12612a=_0x39c4ed[_0xc605e],_0x213f4a=this['_sheetsShapeService'][_0x8380d5(0xef)](_0x12612a[_0x8380d5(0xe5)],_0x12612a[_0x8380d5(0x183)],_0x12612a['drawingId']);if(!_0x213f4a)continue;let {redo:_0x332923,undo:_0x3ac232,objects:_0x4eef5d}=this[_0x8380d5(0x2de)][_0x8380d5(0x194)]([_0x12612a]);_0x5e88d6['push']({'id':_0x25666b['id'],'params':{'unitId':_0x3d2653,'subUnitId':_0xb3f29d,'shapeId':_0x12612a[_0x8380d5(0x121)]}}),_0x5e88d6[_0x8380d5(0x1d2)]({'id':_0x86cf9f['id'],'params':{'unitId':_0x3d2653,'subUnitId':_0xb3f29d,'type':_0x19dac9[_0x8380d5(0x16f)],'op':_0x332923,'objects':_0x4eef5d}}),_0x4f1e33[_0x8380d5(0x1d2)]({'id':_0x86cf9f['id'],'params':{'unitId':_0x3d2653,'subUnitId':_0xb3f29d,'type':_0x19dac9['INSERT'],'op':_0x3ac232,'objects':_0x4eef5d}}),_0x4f1e33[_0x8380d5(0x1d2)]({'id':_0x462d48['id'],'params':{'unitId':_0x3d2653,'subUnitId':_0xb3f29d,'shapeId':_0x12612a[_0x8380d5(0x121)],'shapeType':_0x213f4a['getShapeType'](),'shapeData':JSON[_0x8380d5(0x2c5)](JSON[_0x8380d5(0x252)](_0x213f4a[_0x8380d5(0x21d)]()))}});}return{'redos':_0x5e88d6,'undos':_0x4f1e33};}else{if(_0x3f6a1c['id']===_0xe13458['id']){let {unitId:_0x2eb9a9,subUnitId:_0x1ad8d5,targetSubUnitId:_0x2f0bcf}=_0x3f6a1c[_0x8380d5(0x12c)];if(!_0x2eb9a9||!_0x1ad8d5||!_0x2f0bcf)return{'redos':[],'undos':[]};let _0x1cbb2b=this['_sheetDrawingService']['getDrawingData'](_0x2eb9a9,_0x1ad8d5),_0x22faea=Object[_0x8380d5(0x258)](_0x1cbb2b)['filter'](_0x2e09f6=>_0x2e09f6[_0x8380d5(0x132)]===_0x91d30f[_0x8380d5(0x27a)]);if(_0x22faea['length']===0x0)return{'redos':[],'undos':[]};let _0x2c2828=[],_0x10aea6=[];for(let _0x427e51=0x0;_0x427e51<_0x22faea[_0x8380d5(0x19e)];_0x427e51++){let _0x10f59b=_0x22faea[_0x427e51],_0x4ea589=this[_0x8380d5(0x1a7)][_0x8380d5(0xef)](_0x10f59b['unitId'],_0x10f59b[_0x8380d5(0x183)],_0x10f59b[_0x8380d5(0x121)]);if(!_0x4ea589)continue;let _0x45f2b9=_0x4b0b19(),_0x2460c9={..._0x10f59b,'unitId':_0x2eb9a9,'subUnitId':_0x2f0bcf,'drawingId':_0x45f2b9},{redo:_0x2fa312,undo:_0x2e1a30,objects:_0x32fea8}=this[_0x8380d5(0x2de)][_0x8380d5(0x1cf)]([_0x2460c9]);_0x2c2828[_0x8380d5(0x1d2)]({'id':_0x86cf9f['id'],'params':{'unitId':_0x2eb9a9,'subUnitId':_0x2f0bcf,'type':_0x19dac9[_0x8380d5(0x154)],'op':_0x2fa312,'objects':_0x32fea8}}),_0x2c2828[_0x8380d5(0x1d2)]({'id':_0x462d48['id'],'params':{'unitId':_0x2eb9a9,'subUnitId':_0x2f0bcf,'shapeId':_0x45f2b9,'shapeType':_0x4ea589[_0x8380d5(0x210)](),'shapeData':JSON[_0x8380d5(0x2c5)](JSON[_0x8380d5(0x252)](_0x4ea589[_0x8380d5(0x21d)]()))}}),_0x10aea6['push']({'id':_0x25666b['id'],'params':{'unitId':_0x2eb9a9,'subUnitId':_0x2f0bcf,'shapeId':_0x45f2b9}}),_0x10aea6[_0x8380d5(0x1d2)]({'id':_0x86cf9f['id'],'params':{'unitId':_0x2eb9a9,'subUnitId':_0x2f0bcf,'type':_0x19dac9[_0x8380d5(0x16f)],'op':_0x2e1a30,'objects':_0x32fea8}});}return{'redos':_0x2c2828,'undos':_0x10aea6};}}return{'redos':[],'undos':[]};}}));}};tr=Y([J(0x0,_0x44ac9c(_0xeac766)),J(0x1,_0x44ac9c(_0x1ad409)),J(0x2,_0x44ac9c(_0x1769d9)),J(0x3,_0x44ac9c(_0x2318dd))],tr);let nr=class extends _0x3ff889{constructor(_0x509130,_0x4858c6,_0x12c83e,_0x42c99e,_0x141184){const _0x554b5c=_0x3721df;super(),this[_0x554b5c(0x135)]=_0x509130,this[_0x554b5c(0xea)]=_0x4858c6,this[_0x554b5c(0x212)]=_0x12c83e,this[_0x554b5c(0x2e2)]=_0x42c99e,this['_sheetsShapeService']=_0x141184,q(this,_0x554b5c(0xcc),null),this[_0x554b5c(0x2d4)](),this[_0x554b5c(0x1ee)](),this['_initEditingParams']();}[_0x3721df(0x2d4)](){const _0x3bafd1=_0x3721df;let {scene:_0x44a259}=this[_0x3bafd1(0x135)];this[_0x3bafd1(0x23d)](_0x44a259[_0x3bafd1(0x23f)][_0x3bafd1(0x2ce)](_0x3b7aa2=>{const _0x4ffe6e=_0x3bafd1;let {offsetX:_0x1e6e8e,offsetY:_0x1992b1}=_0x3b7aa2,_0x4719e6=_0x44a259[_0x4ffe6e(0xde)](_0x3e3387[_0x4ffe6e(0x1fa)]([_0x1e6e8e,_0x1992b1]));if(_0x4719e6 instanceof vn){if(_0x51a857(this['_sheetsShapeService'][_0x4ffe6e(0x210)](_0x4719e6[_0x4ffe6e(0xe5)],_0x4719e6[_0x4ffe6e(0x183)],_0x4719e6[_0x4ffe6e(0x1bf)])))return;this['_shapeTextEditingService']['setEditing']({'visible':!0x0,'unitId':_0x4719e6[_0x4ffe6e(0xe5)],'subUnitId':_0x4719e6[_0x4ffe6e(0x183)],'shapeId':_0x4719e6['shapeId'],'shapeKey':_0x4719e6[_0x4ffe6e(0x204)]});}}));}[_0x3721df(0x1ee)](){const _0x2c21f8=_0x3721df;this['disposeWithMe'](this[_0x2c21f8(0x212)]['focus$'][_0x2c21f8(0x290)](_0x9e1eff=>{const _0x4a4b77=_0x2c21f8;if(_0x9e1eff[_0x4a4b77(0x19e)]===0x1){let _0x560d88=_0x9e1eff[0x0],_0x59249f=this['_drawingManagerService'][_0x4a4b77(0x22d)](_0x560d88);if((_0x59249f==null?void 0x0:_0x59249f[_0x4a4b77(0x132)])===_0x91d30f[_0x4a4b77(0x27a)]){let _0x241226=this['_shapeTextEditingService'][_0x4a4b77(0x2d0)]();if((_0x241226==null?void 0x0:_0x241226[_0x4a4b77(0x1bf)])===_0x560d88[_0x4a4b77(0x121)]&&_0x241226['visible'])return;_0x51a857(this[_0x4a4b77(0x1a7)]['getShapeType'](_0x560d88['unitId'],_0x560d88['subUnitId'],_0x560d88[_0x4a4b77(0x121)]))&&this['_shapeTextEditingService'][_0x4a4b77(0x2c4)](null);}else this[_0x4a4b77(0xea)][_0x4a4b77(0x2d0)]()&&(this[_0x4a4b77(0xea)][_0x4a4b77(0x243)](!0x0),requestAnimationFrame(()=>{const _0x5764be=_0x4a4b77;this[_0x5764be(0xea)]['setEditing'](null);}));}else this[_0x4a4b77(0xea)]['getEditing']()&&(this['_shapeTextEditingService']['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x382b02=_0x4a4b77;this[_0x382b02(0xea)][_0x382b02(0x2c4)](null);}));})),this[_0x2c21f8(0x23d)](this[_0x2c21f8(0x212)][_0x2c21f8(0x2aa)][_0x2c21f8(0x290)](_0x1a40f5=>{const _0x530df1=_0x2c21f8;let _0x4ec165=this['_shapeTextEditingService']['getEditing']();_0x4ec165&&_0x1a40f5[_0x530df1(0xab)](_0x2b4479=>_0x2b4479[_0x530df1(0x121)]===_0x4ec165[_0x530df1(0x1bf)])&&this['_shapeTextEditingService'][_0x530df1(0x2c4)](null);}));}[_0x3721df(0x22f)](){const _0x42cd34=_0x3721df;this[_0x42cd34(0x23d)](this[_0x42cd34(0xea)]['editingParams$'][_0x42cd34(0x290)](_0x3538bf=>{const _0x45b3c4=_0x42cd34;let {scene:_0x453d71}=this['_context'];if(this[_0x45b3c4(0xcc)]){let _0x4f6828=_0x453d71[_0x45b3c4(0xc2)](this['_lastEditingShapeKey']);_0x4f6828&&_0x4f6828[_0x45b3c4(0x2c4)](!0x1);}if(_0x3538bf){let _0xaa9263=!!_0x3538bf[_0x45b3c4(0xbf)],_0x16d6ed=_0x453d71[_0x45b3c4(0xc2)](_0x3538bf[_0x45b3c4(0x1b2)]);_0x16d6ed&&(_0x16d6ed[_0x45b3c4(0x2c4)](_0xaa9263),this['_lastEditingShapeKey']=_0x3538bf[_0x45b3c4(0x1b2)]),this[_0x45b3c4(0x2e2)]['setContextValue'](_0x47dded,_0xaa9263);}else this[_0x45b3c4(0xcc)]=null,this['_contextService'][_0x45b3c4(0x2b6)](_0x47dded,!0x1);}));}};nr=Y([J(0x1,_0x44ac9c(Zn)),J(0x2,_0x30b385),J(0x3,_0x2d72db),J(0x4,_0x44ac9c(_0x2318dd))],nr);let rr=class extends _0x260374{constructor(_0x3b1cfc,_0x41fc88,_0x3a6ddb,_0xff3a0){super(_0x3b1cfc,_0x41fc88,_0x3a6ddb,_0xff3a0,{'componentKey':En,'editorUnitId':Tn});}};rr=Y([J(0x1,_0x44ac9c(_0x2fc8f4)),J(0x2,_0x44ac9c(_0x919a37)),J(0x3,_0x44ac9c(_0x2f3dc8))],rr);let ir=class extends _0x3ff889{constructor(_0x16121e,_0x301975,_0x4992ac,_0x224b27,_0x102903,_0x1bbd1e){const _0x3800a4=_0x3721df;super(),this[_0x3800a4(0x1fc)]=_0x16121e,this[_0x3800a4(0x28f)]=_0x301975,this['_drawingManagerService']=_0x4992ac,this[_0x3800a4(0x20f)]=_0x224b27,this[_0x3800a4(0x2d8)]=_0x102903,this[_0x3800a4(0x1c5)]=_0x1bbd1e,q(this,_0x3800a4(0x160),new Set()),this[_0x3800a4(0x14a)]();}[_0x3721df(0x14a)](){const _0x33a34b=_0x3721df;this[_0x33a34b(0x277)](),this[_0x33a34b(0x19f)](),this[_0x33a34b(0x263)]();}['_drawingAddListener'](){const _0x27b96f=_0x3721df;this[_0x27b96f(0x23d)](this[_0x27b96f(0x212)][_0x27b96f(0x1e5)][_0x27b96f(0x290)](_0x23fb3a=>{const _0x96c683=_0x27b96f;this[_0x96c683(0x266)](_0x23fb3a);}));}['_commandExecutedListener'](){const _0x4eb917=_0x3721df;this[_0x4eb917(0x23d)](this[_0x4eb917(0x1fc)][_0x4eb917(0x2b1)](_0x27c3ac=>{const _0x503fbe=_0x4eb917;if(_0x27c3ac['id']===_0x4ea02e['id']){let {unitId:_0x35d87f,subUnitId:_0x4a1bab,shapeId:_0x4b8e50}=_0x27c3ac[_0x503fbe(0x12c)],_0xc7ab9c=this[_0x503fbe(0x2a7)](_0x35d87f),_0x71d492=_0xc0766c({'unitId':_0x35d87f,'subUnitId':_0x4a1bab,'drawingId':_0x4b8e50}),_0x422ca0=_0xc7ab9c==null?void 0x0:_0xc7ab9c[_0x503fbe(0x223)][_0x503fbe(0xc2)](_0x71d492);_0x422ca0&&(this['_sheetDrawingShapeRenderController']['refreshShapeFillImage'](_0x422ca0),_0x422ca0[_0x503fbe(0x16b)](!0x0));return;}if(_0x27c3ac['id']===_0x462d48['id']){var _0x351142;let {unitId:_0xafa56c,subUnitId:_0x162e77,shapeId:_0x275e52}=_0x27c3ac[_0x503fbe(0x12c)],_0x11059f=this[_0x503fbe(0x2a7)](_0xafa56c);if(_0x11059f==null)return;let {scene:_0x4e16ec}=_0x11059f,_0x126634=_0xc0766c({'unitId':_0xafa56c,'subUnitId':_0x162e77,'drawingId':_0x275e52}),_0x322efd=_0x4e16ec[_0x503fbe(0xc2)](_0x126634);if(!((_0x351142=this['_renderManagerService'][_0x503fbe(0x1f1)](_0xafa56c))!=null&&_0x351142[_0x503fbe(0x29b)](_0x39e39b)[_0x503fbe(0xf0)](_0x162e77)))return!0x1;if(_0x322efd)return;this['_insertShapes']([{'unitId':_0xafa56c,'subUnitId':_0x162e77,'drawingId':_0x275e52}]);}}));}[_0x3721df(0x263)](){const _0x57227c=_0x3721df;this['disposeWithMe'](this[_0x57227c(0x212)][_0x57227c(0xe0)][_0x57227c(0x290)](_0x400577=>{const _0x419e2f=_0x57227c;_0x400577[_0x419e2f(0x1a9)](_0xf54efc=>{const _0x4a13e7=_0x419e2f;let {unitId:_0x1f88c7,subUnitId:_0x51e24f,drawingId:_0x4e86fb}=_0xf54efc,_0x44bc77=this['_drawingManagerService'][_0x4a13e7(0x22d)](_0xf54efc);if(_0x44bc77==null)return;let {transform:_0x32b8a3,drawingType:_0x512c26,srcRect:_0x49da92,prstGeom:_0x5a9d78}=_0x44bc77;if(_0x512c26!==_0x91d30f[_0x4a13e7(0x27a)])return;let _0x49dc69=this[_0x4a13e7(0x2a7)](_0x1f88c7);if(_0x49dc69==null)return;let {scene:_0x581e4d,transformer:_0x411c1a}=_0x49dc69;if(_0x32b8a3==null)return!0x0;let _0x2146fb=_0xc0766c({'unitId':_0x1f88c7,'subUnitId':_0x51e24f,'drawingId':_0x4e86fb}),_0x4bea3d=_0x581e4d[_0x4a13e7(0xc2)](_0x2146fb);if(_0x4bea3d==null)return!0x0;_0x4bea3d[_0x4a13e7(0xfe)](_0x49da92),_0x4bea3d[_0x4a13e7(0x104)](_0x5a9d78);});}));}[_0x3721df(0x266)](_0x34cf27){const _0x2058dd=_0x3721df;for(let _0x45af37 of _0x34cf27){var _0x4d7cfe;let {unitId:_0x23682c,subUnitId:_0x256bbf,drawingId:_0x22cc4a}=_0x45af37,_0x33013c=this[_0x2058dd(0x2a7)](_0x23682c),_0x1370b7=(_0x4d7cfe=_0x72b568(this['_currentUniverService'],_0x23682c))==null?void 0x0:_0x4d7cfe[_0x2058dd(0x183)];if(_0x33013c==null||_0x1370b7!==_0x256bbf)return;let _0x51090b=_0xc0766c({'unitId':_0x23682c,'subUnitId':_0x256bbf,'drawingId':_0x22cc4a});if(this[_0x2058dd(0x160)][_0x2058dd(0x238)](_0x51090b)||_0x33013c[_0x2058dd(0x223)][_0x2058dd(0xc2)](_0x51090b)!=null)return;let _0x819bcf=this['_drawingManagerService']['getDrawingByParam'](_0x45af37);if(_0x819bcf==null||_0x819bcf[_0x2058dd(0x132)]!==_0x91d30f['DRAWING_SHAPE'])return;if(_0x51a857((_0x819bcf[_0x2058dd(0x1b6)]||{})['shapeType'])){let _0x539244=_0x819bcf[_0x2058dd(0x288)];_0x539244&&(_0x819bcf[_0x2058dd(0x288)]={..._0x539244,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x2058dd(0x160)][_0x2058dd(0x198)](_0x51090b);try{this['_sheetDrawingShapeRenderController'][_0x2058dd(0x297)](_0x819bcf,_0x33013c[_0x2058dd(0x223)]);}finally{this['_insertingShapeKeys'][_0x2058dd(0xba)](_0x51090b);}queueMicrotask(()=>{const _0x52c90f=_0x2058dd;if(this[_0x52c90f(0xe3)])return;let _0x4ebc13=_0xc0766c(_0x45af37);if(!_0x33013c['scene'][_0x52c90f(0xc2)](_0x4ebc13))return;let _0x5e6329=this['_drawingManagerService'][_0x52c90f(0x22d)](_0x45af37);_0x5e6329&&this[_0x52c90f(0x212)][_0x52c90f(0xf3)]([_0x5e6329]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x12e7c5){const _0x47b73f=_0x3721df;if(_0x12e7c5==null)return;let _0x21bba4=this['_renderManagerService'][_0x47b73f(0x1f1)](_0x12e7c5),_0x5aaf41=_0x21bba4==null?void 0x0:_0x21bba4[_0x47b73f(0x223)];return _0x5aaf41==null?null:{'scene':_0x5aaf41,'transformer':_0x5aaf41['getTransformerByCreate']()};}};ir=Y([J(0x0,_0x27b781),J(0x1,_0x3ab9c0),J(0x2,_0x30b385),J(0x3,_0xeac766),J(0x4,_0x44ac9c(_0x56a023)),J(0x5,_0x44ac9c(X))],ir);const ar={'normal':{'fill':_0x170bf6[_0x3721df(0x192)],'stroke':_0x170bf6[_0x3721df(0x106)],'strokeWidth':_0x170bf6[_0x3721df(0x2ca)]},'highlighted':{'fill':'#4285f4','stroke':'#1a73e8','strokeWidth':0x2}};function _0x1222(){const _0x15b45b=['oKey','_univerInstanceService','_sheetSkeletonService','left','_activeShapeAdjustPointList','custom','getConnectionSiteList','getBatchUpdateOp','clearAdjustValue','_props','resize','_currentUniverService','getShapeType','render','_drawingManagerService','syncExecuteCommand','getShapeTypeById','sheet.operation.open-sheet-shape-format-panel','table','_transformCalculateSrcRect','getBentTypeFromPoints','updateLinePoints','activeAnObject','_clearShapeAdjustControls','lineShapeId','getShapeData','_getOrCreateShapeModel','_registerComponents','DRAWING_TABLE','register','sheets-shape-ui.formatShape','scene','ang','focus$','#FFFFFF','_getConnectPointInfo','isStartConnectorPoint','updateContext','sheets-shape-ui.toggleTextVertical','_getShapeAdjustPointListById','sheet.command.menu-insert-shape','getDrawingByParam','editingParams$','_initEditingParams','_drawShapeText','_findShapeAtPoint','getParent','onRendered','_getZoomRatio','calculate','_baseTop','color','has','src','_updateTransform','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_handleFreeEndpointPointerUp','disposeWithMe','computeStraightConnectorLayout','onDblclick$','UUID','Line','_sheetPermissionCheckController','setOnSavingEditorData','_isShouldShowDrawingShapeAdjust','getDrawingSearch','contentVerticalOffset','restore','_copyInfo','object','_handleConnectedEndpointMove','executeCommand','getSheetBySheetId','_rerouteConnectorLine','video','reverse','dispose','isLineShape','stringify','prstGeom','_executeConnectionCommand','_unitId','_activeAdjustInfo','adjustValues','values','forward','skeleton','6410qfJBtB','_updateShapeAdjustControls','getAdjustValueByName','sheet.shape.text.float-menu','_activeShapeModel','worldPoints','DRAWING_SMART_ART','LEFT','_shapeUpdateListener','_imageShapeClipController','clearControl$','_insertShapes','sheets-shape-ui.deleteShape','slice','_init','getCurrentUnitOfType','isInGroup','SolidLine','_targetShapeId','onSavingEditorData$','getShapeDataById','horizontal','reduce','offsetX','gdRefY','refreshAdjustControls','sheets-shape-ui.rotateRight90','sectionCanvas','_drawingAddListener','1200fZEchz','Image','DRAWING_SHAPE','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','invert','pipe','clipByShape','point','adjHandleFill','@univerjs-pro/sheets-shape-ui','clip','_generateCutPasteMutations','beginPath','_resetState','defineProperty','getInverseCoord','transform','initTransformer','shape-text-','setCanUseShapeClip','from','gdRefX','getDrawingData','_renderManagerService','subscribe','flipY','trim','isHitLine','popup','setShapeProps','_baseLeft','renderDrawingShape','clear','_isStartConnectorPoint','_clearShapeConnectorHandlerObjects','with','_initPermission','_handleFreeEndpointMove','refreshShapeFillImage','_highlightedSiteIndex','find','startArrow','_menuManagerService','setFillImage','setHighlighted','prototype','1820768DHvqCN','_getSceneAndTransformerByDrawingSearch','_baseShapeTop','wrapStrategy','remove$','adjHandleSize','cos','clip-adj-','SELECTOR','shape-adjust-point-','connector-handler-','onCommandExecuted','_getConnectionSiteAngle','SolidFill','fill','_initCommands','setContextValue','text','top','getSheetId','includes','map','_clearControls','_adjHandlerPointerUp','_sheetPrintInterceptorService','doc.image-clip.shape-picker.component','_cxnIndex','registerRenderModule','interceptor','sheets-shape-ui.toggleFlipH','setEditing','parse','_updateAdjustControlPositions','sheets-shape-ui.objectListPanel.title','getAdjustNames','_generatePasteMutations','cxnPointStrokeWidth','_activeShapeInfo','sheet.image-clip.shape-picker.component','fillImageSource','subscribeEvent','onStarting','getEditing','focusDrawing','transformByState','onPointerDown$','_initEvents','attachPopupToObject','CopyDoubleIcon','computeConnectorResizeLayout','_drawingRenderService','_findNearestConnectionSite','getZoomRatio','decorate','canvas','selectable','_sheetDrawingService','initShapePopupMenu','keys','_connectorObjects','_contextService','localToWorld','offsetY','_shapes','sheet.shape.picker.component','_executeResizeCommand','srcRect','shapeText','getInterceptPoints','DRAWING_UNIT','_currentConnectionTarget','div','calcAdjValue','completeEditing','setShapeData','changeEnd$','_handleConnectedEndpointPointerUp','start','drawing.operation.set-drawing-active','get','isRichText','_baseShapeHeight','23468OtzzJq','isRenderLinePointsMode','getMatrix','_registerDrawingMoveHandler','startX','symbol','onReady','fillImageSourceType','angle','startY','DRAWING_IMAGE','string','_registerIcons','_connectionSiteObjects','sheet.operation.open-shape-object-list-panel','sheets-shape-ui.objectListPanel.open','_shapeRenderController','_loadShapePictureFill','size','_baseDrawingRect','URL','endArrow','normal','getAdjustInfoByName','_transform','getShapeTextRect','pluginName','getActiveSheet','updateDocumentDataMargin','some','_groupCopyPasteController','viewportScrollY','CROSSHAIR','undo','getRealBound','_adjHandlerPointerMove','_createShapeAdjustControls','MEDIA','featurePluginUpdateNotification','changeShapeType','_updateSrcRectByTransform','_baseShapeLeft','sheetTransform','12kNOYNZ','delete','_registerShapeMenu','axisAlignSheetTransform','_moveConnectorWithShape','addImageSourceCache','visible','UPDATE','VIEW_MAIN_TOP','getObjectIncludeInGroup','getValue','sheets-shape-text-','cxnPointRadius','Arrow','_clearConnectionSites','save','setShouldShowAdjust','type','_reset','_lastEditingShapeKey','BUTTON','setCursor','getBasicShapeRelation','_onSavingEditorData$','_initCopyPaste','_initPrinting','strokeWidth','clipHeight','getCurrentScrollState','attachTransformerTo','sheets-shape-ui.hidePanel','onSteady','getUnitType','resetCursor','PRINTING_COMPONENT_COLLECT','StraightConnector1','registerFeaturePasteHook','pick','_configService','update$','_draggingConnectorId','image','_disposed','sheetViewStartColumn','unitId','onPointerMove$','classType','_addShapeConnectorHandlerObjects','vertical','_shapeTextEditingService','targetShapeId','511556tdsUMk','getDrawingVisible','_generateCopyPasteMutations','getShapeModel','getSkeleton','_activeTargetShapeId','_hasReset','refreshTransform','_openShapeEditPanel','16128YnjMKw','constructor','getImage','_drawSimpleText','gdRefR','applyPoint','multiply','version','connection-site-','setSrcRect','_activeImageId','clipTop','adjHandleStroke','4707gEUwST','cxnIndex','setPrstGeom','sheet.shape.floating-toolbar','cxnPointStroke','_createShapePopupMenu','name','function','_handleBasicShapeUpdateConnectorLineShape','entries','_isOpenedShapeEditPanel','filter','_getImageDrawingInfo','_sheetCanvasPopManagerService','TOP','lineType','isArray','_subUnitId','_config','close','Large','_cxtHandlerPointerUp','copyType','_createCopyInfoByRange','dataModel','next','adjName','contentHeight','_localeService','sheets-shape-ui.openPanel','_sheetInterceptorService','drawingId','sin','_handleConnectorPointerUp','flipX','_sheetShapeAdjustController','image-clip-adjust-point-','_executeConnectedRouteResizeCommand','_loadAndSetImage','pushUndoRedo','getStartConnectInfo','getSkeletonParam','params','bind','_activeShapeId','sheets-shape-ui','marginTop','group','drawingType','sheet.shape.edit.panel','_disposePopups','_context','SHAPE_TEXT','GROUP','_focusedDrawings','_isImagePointerDown','worldRect','DRAWING_CHART','ancestorTransform','_injector','hidden','sheets-shape-ui.insertShape','doc','_attachConnectorObjectEvent','isHighlighted','permissionCheckWithoutRange','_sidebarService','_closeShapeEditPanel','composeMatrix','_activeAdjustPointList','DEFAULT_PASTE','ShapeIcon','_initialize','isHorizontal','_index','getConnectionInfo','_setTransForm','_baseHeight','enableObjectsEvent','_createControls','prstGeomAdjValues','SHAPE','INSERT','updateShapeFillImage','registerClipDelegate','intercept','addClipboardHook','_getDrawingRect','shapeData','endConnectionDetection','value','onerror','gdRefAng','clip-','_insertingShapeKeys','clearAdjustControls','_isDrawingShapePointDown','onPointerUp$','abs','_getShapeAdjustInfosById','getObject','_isStartAdjusting','_sheetClipboardService','default','shape','makeDirty','_draw','_initSheetChange','fontSize','REMOVE','addObject','gradientEndColor','_componentManager','_addShapeAdjustControl','2337855XRGRCJ','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','_shapeId','_baseWidth','rotation','Path','getDrawingOrder','stopPropagation','_clipService','objects','error','setAdjustValueByName','_urlImageService','_updateImageAdjValues','call','subUnitId','relation','drawWith','getOwnPropertyDescriptor','removeLinePoints','_cxtHandlerPointerMove','_registerDrawingFocusChangeHandler','_getScrollInfo','getShapePopupMenus','translateWithPrecision','None','_currentScene','getCurrentSkeleton','onTransformChange$','changeStart$','cxnPointFill','height','getBatchRemoveOp','sheetViewStartRow','stroke','getTransformerByCreate','add','_getShapeInfo','isDrawingObject','_registerFocusChangeHandler','width','_initializedShapePopupMenu','length','_commandExecutedListener','changing$','UNIVER_SHEET','VIEW_MAIN_LEFT_TOP','getState','_addShapeConnectorHandlerObject','registerFeatureMenu','mergeMenu','_sheetsShapeService','clone','forEach','_registerOperations','_adjName','setPrstGeomAdjValues','beforeCommandExecuted','UNIVER_DOC','_initMenu','viewportScrollX','CUT','shapeKey','_popupMenuListener','getAllUnitsForType','getUnitId','data','open','Rect','getConnectorLinePoints','setConfig','getImageSourceCache','title','redo','disableObjectsEvent','shapeId','getCurrentLastSelection','getDrawingPoints','sheets-shape-ui.config','resourceCollector','_registerGroupFeaturePasteHook','_sheetDrawingShapeRenderController','_drawRichText','sheets-shape-ui.toggleFlipV','_calculateFreeEndpointAngle','_imageIoService','chart','_addControl','univer-box-border\x20univer-px-4\x20univer-text-sm','startConnectionDetection','SheetShapeTextEditorContainer','getBatchAddOp','unsubscribe','shapeModel','push','Medium','scale','isEditing','registerFeatureMenuOffset','complete','_showConnectionSites','getFocusDrawings','_sidebarDisposable','smartArt','parent','_getImagePrstGeom','VIEW_MAIN','_isHighlighted','getEndConnectInfo','_clearPopups','getCurrentTypeOfUnit$','DRAWING_DOM','_editingParams$','add$','#bcbcbc','description','_baseShapeWidth','COMMAND','_iconManager','set','sectionFloating','sheets-shape-ui.imagePanel.crop.shape','_initSelection','getConnectionRelation','OPERATION','getRenderById','dom','_sheetBasicShapeConnectionPointController','asObservable','index','toPrimitive','getDrawingOKey','getSelectedObjectMap','sheet.operation.close-sheet-shape-format-panel','FromArray','_attachAdjustEvent','_commandService','worldPoint','_executeConnectedRouteConnectionCommand','_isConnecting','60545REjine','getUnit','_shapeEditPanelVersion','getTransformer'];_0x1222=function(){return _0x15b45b;};return _0x1222();}var or=class extends _0x39ac3d{constructor(_0x2cb0fd,_0x41dc9a){const _0x213c19=_0x3721df;super(_0x2cb0fd,_0x41dc9a),q(this,_0x213c19(0x26d),''),q(this,_0x213c19(0x2c0),-0x1),q(this,_0x213c19(0x255),''),q(this,_0x213c19(0x113),''),q(this,'_isHighlighted',!0x1),_0x41dc9a&&this[_0x213c19(0x295)](_0x41dc9a);}[_0x3721df(0x14d)](){const _0x28ac51=_0x3721df;return{'unitId':this[_0x28ac51(0x255)],'subUnitId':this[_0x28ac51(0x113)],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0x28ac51(0x2c0)]};}[_0x3721df(0x2a4)](_0x33a9a6){const _0x26a193=_0x3721df;this[_0x26a193(0x1df)]!==_0x33a9a6&&(this['_isHighlighted']=_0x33a9a6,this[_0x26a193(0x16b)](!0x0));}[_0x3721df(0x142)](){const _0x2ee3e3=_0x3721df;return this[_0x2ee3e3(0x1df)];}[_0x3721df(0x295)](_0x5bf4df){const _0x51628d=_0x3721df;var _0x17ad00,_0x165d15;_0x5bf4df[_0x51628d(0xeb)]!==void 0x0&&(this[_0x51628d(0x26d)]=_0x5bf4df['targetShapeId']),_0x5bf4df['cxnIndex']!==void 0x0&&(this[_0x51628d(0x2c0)]=_0x5bf4df[_0x51628d(0x103)]),_0x5bf4df['unitId']!==void 0x0&&(this[_0x51628d(0x255)]=_0x5bf4df[_0x51628d(0xe5)]),_0x5bf4df[_0x51628d(0x183)]!==void 0x0&&(this['_subUnitId']=_0x5bf4df[_0x51628d(0x183)]),_0x5bf4df[_0x51628d(0x142)]!==void 0x0&&(this['_isHighlighted']=_0x5bf4df[_0x51628d(0x142)]),this['transformByState']({'width':(_0x17ad00=_0x5bf4df[_0x51628d(0x19c)])==null?_0x170bf6[_0x51628d(0xc5)]*0x2:_0x17ad00,'height':(_0x165d15=_0x5bf4df[_0x51628d(0x193)])==null?_0x170bf6[_0x51628d(0xc5)]*0x2:_0x165d15});}[_0x3721df(0x16c)](_0x1eb94c){const _0x5721d2=_0x3721df;let _0x4e20da=this['_isHighlighted']?ar['highlighted']:ar[_0x5721d2(0x30e)];_0x2cd80f[_0x5721d2(0x185)](_0x1eb94c,{'radius':_0x170bf6[_0x5721d2(0xc5)],'fill':_0x4e20da[_0x5721d2(0x2b4)],'stroke':_0x4e20da[_0x5721d2(0x196)],'strokeWidth':_0x4e20da[_0x5721d2(0xd3)],'evented':!0x0});}};let sr=class extends _0x3ff889{constructor(_0x12b6fd,_0x1a6706,_0x113a71,_0x6b502f){const _0x27ab15=_0x3721df;super(),this[_0x27ab15(0x135)]=_0x12b6fd,this['_renderManagerService']=_0x1a6706,this['_drawingManagerService']=_0x113a71,this[_0x27ab15(0x1a7)]=_0x6b502f,q(this,_0x27ab15(0x305),[]),q(this,'_activeTargetShapeId',null),q(this,_0x27ab15(0x29f),-0x1),q(this,_0x27ab15(0x18e),null),q(this,'_unitId',''),q(this,_0x27ab15(0x113),''),q(this,'_draggingConnectorId',null);}[_0x3721df(0x1cd)](_0x12cc06,_0x1d73d2,_0x3a887d,_0x42cb68){const _0x112e16=_0x3721df;this[_0x112e16(0x18e)]=_0x12cc06,this[_0x112e16(0x255)]=_0x1d73d2,this[_0x112e16(0x113)]=_0x3a887d,this['_draggingConnectorId']=_0x42cb68;}['updateConnectionDetection'](_0x415fcb){const _0x185fe1=_0x3721df;if(!this[_0x185fe1(0x18e)])return null;let _0x16875f=this[_0x185fe1(0x231)](_0x415fcb);return _0x16875f?(this[_0x185fe1(0xf1)]!==_0x16875f[_0x185fe1(0x1bf)]&&(this[_0x185fe1(0xc7)](),this[_0x185fe1(0x1d8)](_0x16875f[_0x185fe1(0x1bf)],_0x16875f['shapeModel']),this[_0x185fe1(0xf1)]=_0x16875f['shapeId']),this[_0x185fe1(0x2d9)](_0x415fcb)):(this[_0x185fe1(0xf1)]!==null&&(this[_0x185fe1(0xc7)](),this[_0x185fe1(0xf1)]=null),null);}[_0x3721df(0x15b)](){const _0x4ff4c4=_0x3721df;this[_0x4ff4c4(0xc7)](),this[_0x4ff4c4(0x18e)]=null,this[_0x4ff4c4(0xf1)]=null,this[_0x4ff4c4(0x29f)]=-0x1,this['_draggingConnectorId']=null;}[_0x3721df(0x1ef)](){const _0x511e83=_0x3721df;return this[_0x511e83(0xf1)]===null||this[_0x511e83(0x29f)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x511e83(0x29f)]};}[_0x3721df(0x231)](_0x1ecb57){const _0xa51d09=_0x3721df;let _0xdc0932=this[_0xa51d09(0x212)][_0xa51d09(0x28e)](this['_unitId'],this[_0xa51d09(0x113)]);for(let _0x45af60 of Object[_0xa51d09(0x2e0)](_0xdc0932)){if(_0x45af60===this[_0xa51d09(0xe1)]||_0xdc0932[_0x45af60][_0xa51d09(0x132)]!==_0x91d30f[_0xa51d09(0x27a)])continue;let _0x46f16c=this[_0xa51d09(0x1a7)][_0xa51d09(0xef)](this['_unitId'],this[_0xa51d09(0x113)],_0x45af60);if(!_0x46f16c||_0x51a857(_0x46f16c[_0xa51d09(0x210)]())||_0x46f16c['getConnectionSiteList']()['length']===0x0||!this[_0xa51d09(0x18e)])continue;let _0x3d0ddc=_0xc0766c({'unitId':this[_0xa51d09(0x255)],'subUnitId':this['_subUnitId'],'drawingId':_0x45af60}),_0x169ab4=this[_0xa51d09(0x18e)][_0xa51d09(0xc2)](_0x3d0ddc);if(!_0x169ab4)continue;let {left:_0x3b5cce,top:_0x443759,width:_0x13aa6c,height:_0x54f6ab}=_0x169ab4[_0xa51d09(0xb0)](),_0x53f45f=_0x3b5cce+_0x13aa6c/0x2,_0x140ec1=_0x443759+_0x54f6ab/0x2,_0x1bb031=_0x169ab4[_0xa51d09(0x288)][_0xa51d09(0x2fa)](),_0xc064cf=new _0x3bd327([_0x1bb031[0x0],_0x1bb031[0x1],_0x1bb031[0x2],_0x1bb031[0x3],_0x53f45f,_0x140ec1]),_0x1c11f9=_0x169ab4[_0xa51d09(0x232)](),_0x23c2fc=(_0x169ab4['isInGroup']&&(_0x1c11f9==null?void 0x0:_0x1c11f9['classType'])===_0x34cfe5[_0xa51d09(0x137)]?_0x1c11f9[_0xa51d09(0x13c)]['multiply'](_0xc064cf):_0xc064cf)['invert']()[_0xa51d09(0xfa)](_0x1ecb57),_0x409b51=_0x13aa6c/0x2,_0x2ccf3d=_0x54f6ab/0x2;if(_0x23c2fc['x']>=-_0x409b51-0x5&&_0x23c2fc['x']<=_0x409b51+0x5&&_0x23c2fc['y']>=-_0x2ccf3d-0x5&&_0x23c2fc['y']<=_0x2ccf3d+0x5)return{'shapeId':_0x45af60,'shapeModel':_0x46f16c};}return null;}[_0x3721df(0x1d8)](_0x2ed362,_0x2d6d4e){const _0x2087e5=_0x3721df;if(!this['_currentScene'])return;let _0x25c747=_0xc0766c({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0x2ed362}),_0x214783=this[_0x2087e5(0x18e)][_0x2087e5(0xc2)](_0x25c747);if(!_0x214783)return;let {left:_0x49fca6,top:_0x36660f,width:_0x3debbf,height:_0x205931}=_0x214783[_0x2087e5(0xb0)](),_0x2e9d85=_0x49fca6+_0x3debbf/0x2,_0x3ab772=_0x36660f+_0x205931/0x2,_0x378061=_0x214783['transform'][_0x2087e5(0x2fa)](),_0x3c4a2e=new _0x3bd327([_0x378061[0x0],_0x378061[0x1],_0x378061[0x2],_0x378061[0x3],_0x2e9d85,_0x3ab772]),_0x5c80a7=_0x214783['getParent'](),_0x3945e6=_0x214783[_0x2087e5(0x26b)]&&(_0x5c80a7==null?void 0x0:_0x5c80a7[_0x2087e5(0xe7)])===_0x34cfe5['GROUP']?_0x5c80a7[_0x2087e5(0x13c)][_0x2087e5(0xfb)](_0x3c4a2e):_0x3c4a2e;_0x2d6d4e[_0x2087e5(0x229)]({'width':_0x3debbf,'height':_0x205931});let _0xad7f1=_0x2d6d4e['getConnectionSiteList']();for(let _0x53f5b6 of _0xad7f1){let _0x44f5fd=_0x53f5b6['x']-_0x3debbf/0x2,_0x172e13=_0x53f5b6['y']-_0x205931/0x2,_0x53fbfc=_0x3945e6[_0x2087e5(0xfa)]({'x':_0x44f5fd,'y':_0x172e13}),_0x267d35=_0x53fbfc['x'],_0x26dbf9=_0x53fbfc['y'],_0x10ff14=new or(_0x2087e5(0xfd)+_0x2ed362+'-'+_0x53f5b6[_0x2087e5(0x1f5)],{'left':_0x267d35-_0x170bf6['cxnPointRadius'],'top':_0x26dbf9-_0x170bf6[_0x2087e5(0xc5)],'targetShapeId':_0x2ed362,'cxnIndex':_0x53f5b6[_0x2087e5(0x1f5)],'unitId':this[_0x2087e5(0x255)],'subUnitId':this['_subUnitId'],'width':_0x170bf6['cxnPointRadius']*0x2,'height':_0x170bf6[_0x2087e5(0xc5)]*0x2,'zIndex':_0x1484b2+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x2087e5(0x1d2)](_0x10ff14),this[_0x2087e5(0x18e)][_0x2087e5(0x170)](_0x10ff14,_0x1484b2+0x2);}}['_findNearestConnectionSite'](_0x1ac533){const _0x4ff94d=_0x3721df;let _0x4e0137=null,_0x431d98=0x1/0x0,_0x7d6604=null;for(let _0x49c642 of this[_0x4ff94d(0x305)]){let _0x295a75=_0x49c642[_0x4ff94d(0x207)]+_0x170bf6[_0x4ff94d(0xc5)],_0xda888=_0x49c642[_0x4ff94d(0x2b8)]+_0x170bf6['cxnPointRadius'],_0x2c50a2=_0x1ac533['x']-_0x295a75,_0x3aa530=_0x1ac533['y']-_0xda888,_0x574ebd=Math['sqrt'](_0x2c50a2*_0x2c50a2+_0x3aa530*_0x3aa530);_0x574ebd<_0x431d98&&(_0x431d98=_0x574ebd,_0x4e0137=_0x49c642,_0x7d6604={'x':_0x295a75,'y':_0xda888});}let _0x26800b=_0x431d98<=0xa&&_0x4e0137?_0x4e0137['getConnectionInfo']()['cxnIndex']:-0x1;if(_0x26800b!==this[_0x4ff94d(0x29f)]){for(let _0x5712eb of this[_0x4ff94d(0x305)]){let _0xc72c4e=_0x5712eb[_0x4ff94d(0x14d)]();_0x5712eb[_0x4ff94d(0x2a4)](_0xc72c4e[_0x4ff94d(0x103)]===_0x26800b);}this[_0x4ff94d(0x29f)]=_0x26800b;}if(_0x431d98<=0xa&&_0x4e0137&&_0x7d6604){let _0x4f7dfb=_0x4e0137['getConnectionInfo'](),_0x43e370=this['_getConnectionSiteAngle'](_0x4f7dfb[_0x4ff94d(0x1bf)],_0x4f7dfb[_0x4ff94d(0x103)]);return{'shapeId':_0x4f7dfb[_0x4ff94d(0x1bf)],'cxnIndex':_0x4f7dfb[_0x4ff94d(0x103)],'unitId':_0x4f7dfb[_0x4ff94d(0xe5)],'subUnitId':_0x4f7dfb[_0x4ff94d(0x183)],'worldPoint':_0x7d6604,'angle':_0x43e370};}return null;}[_0x3721df(0x2b2)](_0x2cc287,_0x1d6a50){const _0x45fc7e=_0x3721df;let _0x157123=this['_sheetsShapeService'][_0x45fc7e(0xef)](this[_0x45fc7e(0x255)],this[_0x45fc7e(0x113)],_0x2cc287);if(!_0x157123)return 0x0;let _0x52d183=this[_0x45fc7e(0x212)][_0x45fc7e(0x22d)]({'unitId':this[_0x45fc7e(0x255)],'subUnitId':this[_0x45fc7e(0x113)],'drawingId':_0x2cc287});if(!(_0x52d183!=null&&_0x52d183[_0x45fc7e(0x288)]))return 0x0;let {width:_0xeb7d8d=0x0,height:_0xe933bc=0x0,flipX:_0x5aa5c8=!0x1,flipY:_0x11cacd=!0x1}=_0x52d183['transform'];_0x157123[_0x45fc7e(0x229)]({'width':_0xeb7d8d,'height':_0xe933bc});let _0x54a424=_0x157123['getConnectionSiteList']()[_0x45fc7e(0x2a0)](_0x299be6=>_0x299be6[_0x45fc7e(0x1f5)]===_0x1d6a50);if(!_0x54a424)return 0x0;let _0x28f54a=_0x54a424[_0x45fc7e(0x224)]/0xea60;return _0x5aa5c8&&(_0x28f54a=0xb4-_0x28f54a),_0x11cacd&&(_0x28f54a=-_0x28f54a),_0x28f54a=(_0x28f54a%0x168+0x168)%0x168,_0x28f54a;}['_clearConnectionSites'](){const _0x5a430d=_0x3721df;for(let _0x1885e3 of this['_connectionSiteObjects'])_0x1885e3[_0x5a430d(0x250)]();this['_connectionSiteObjects']=[],this[_0x5a430d(0x29f)]=-0x1;}[_0x3721df(0x250)](){const _0xf6528e=_0x3721df;this[_0xf6528e(0xc7)](),super['dispose']();}};sr=Y([J(0x1,_0x44ac9c(_0x3ab9c0)),J(0x2,_0x44ac9c(_0x30b385)),J(0x3,_0x44ac9c(_0x2318dd))],sr);let cr=class extends _0x3ff889{constructor(_0x3c46b5,_0x4292d2,_0x1bda53,_0x698926,_0x4b1983){const _0x45b13f=_0x3721df;super(),this['_sheetSkeletonService']=_0x3c46b5,this['_sheetClipboardService']=_0x4292d2,this[_0x45b13f(0x2de)]=_0x1bda53,this['_shapeService']=_0x698926,this[_0x45b13f(0xac)]=_0x4b1983,q(this,_0x45b13f(0x248),void 0x0),this[_0x45b13f(0xd1)](),this[_0x45b13f(0x1c4)]();}get[_0x3721df(0x138)](){const _0x26192f=_0x3721df;return this[_0x26192f(0x2de)]['getFocusDrawings']();}[_0x3721df(0x1c4)](){const _0x55d314=_0x3721df;this['_groupCopyPasteController'][_0x55d314(0xdd)](({fromUnitId:_0x7782a2,fromSubUnitId:_0x4ac19b,toUnitId:_0x3baf68,toSubUnitId:_0x4f8d4e,idMap:_0x3b8ccc})=>{const _0x4e6009=_0x55d314;let _0x9c6a9a=[],_0x3d58a6=[];for(let [_0x3f1286,_0x34f440]of _0x3b8ccc[_0x4e6009(0x10b)]()){let _0x4d1f02=this['_shapeService'][_0x4e6009(0xef)](_0x7782a2,_0x4ac19b,_0x3f1286);if(!_0x4d1f02)continue;let _0x5e21fe=_0x4d1f02[_0x4e6009(0x210)](),_0x5afbec=JSON[_0x4e6009(0x2c5)](JSON[_0x4e6009(0x252)](_0x4d1f02[_0x4e6009(0x21d)]()));if(_0x5afbec[_0x4e6009(0x184)]){var _0x2292a6,_0x5751e5;let _0x323cf6=(_0x2292a6=_0x5afbec[_0x4e6009(0x184)]['from'])==null?void 0x0:_0x2292a6[_0x4e6009(0x1bf)],_0x659997=(_0x5751e5=_0x5afbec[_0x4e6009(0x184)]['to'])==null?void 0x0:_0x5751e5[_0x4e6009(0x1bf)],_0x3a0fa0=_0x323cf6?_0x3b8ccc[_0x4e6009(0x238)](_0x323cf6):!0x0,_0x57e220=_0x659997?_0x3b8ccc[_0x4e6009(0x238)](_0x659997):!0x0;_0x3a0fa0&&_0x323cf6&&_0x5afbec[_0x4e6009(0x184)][_0x4e6009(0x28c)]?_0x5afbec['relation'][_0x4e6009(0x28c)]={..._0x5afbec[_0x4e6009(0x184)][_0x4e6009(0x28c)],'shapeId':_0x3b8ccc[_0x4e6009(0x2f5)](_0x323cf6)}:_0x5afbec[_0x4e6009(0x184)][_0x4e6009(0x28c)]=void 0x0,_0x57e220&&_0x659997&&_0x5afbec['relation']['to']?_0x5afbec['relation']['to']={..._0x5afbec['relation']['to'],'shapeId':_0x3b8ccc['get'](_0x659997)}:_0x5afbec[_0x4e6009(0x184)]['to']=void 0x0;}_0x9c6a9a[_0x4e6009(0x1d2)]({'id':_0x462d48['id'],'params':{'unitId':_0x3baf68,'subUnitId':_0x4f8d4e,'shapeId':_0x34f440,'shapeType':_0x5e21fe,'shapeData':_0x5afbec}}),_0x3d58a6[_0x4e6009(0x1d2)]({'id':_0x25666b['id'],'params':{'unitId':_0x3baf68,'subUnitId':_0x4f8d4e,'shapeId':_0x34f440}});}return{'redos':_0x9c6a9a,'undos':_0x3d58a6};});}['_initCopyPaste'](){const _0x523977=_0x3721df;this[_0x523977(0x23d)](this[_0x523977(0x168)][_0x523977(0x158)]({'id':_0x523977(0x12f),'onBeforeCopy':(_0x2de7d7,_0x3f1612,_0x55a5be,_0x357dbc)=>{const _0x53f2f5=_0x523977;this[_0x53f2f5(0x248)]=null;let _0x3b8475=this['_focusedDrawings'];if(_0x3b8475[_0x53f2f5(0x19e)]){let _0x5afa86=_0x3b8475[_0x53f2f5(0x10d)](_0xe7ab78=>_0xe7ab78[_0x53f2f5(0x132)]===_0x91d30f[_0x53f2f5(0x27a)]);if(_0x5afa86[_0x53f2f5(0x19e)]===0x0)return;this[_0x53f2f5(0x248)]={'unitId':_0x2de7d7,'subUnitId':_0x3f1612,'copyType':_0x357dbc,'drawings':_0x5afa86};}else this[_0x53f2f5(0x119)](_0x2de7d7,_0x3f1612,_0x55a5be,_0x357dbc);},'onPasteCells':(_0x6003e6,_0xbbb405,_0x18afc1,_0x5678a2)=>{const _0xf001e1=_0x523977;if(!this[_0xf001e1(0x248)])return{'redos':[],'undos':[]};let {pasteType:_0x22a366}=_0x5678a2;return _0x22a366===_0x1bcd5c[_0xf001e1(0x148)]?this[_0xf001e1(0x2c9)](_0xbbb405,this[_0xf001e1(0x248)][_0xf001e1(0x118)]===_0x4ef22b[_0xf001e1(0x1b1)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x300451=>this[_0x523977(0x248)]?this[_0x523977(0x2c9)](_0x300451,this[_0x523977(0x248)][_0x523977(0x118)]===_0x4ef22b['CUT']):{'redos':[],'undos':[]}}));}[_0x3721df(0x119)](_0x377338,_0x345c47,_0x27a04a,_0x3829ad){const _0x3bde0b=_0x3721df;let _0x40de61=this[_0x3bde0b(0x206)][_0x3bde0b(0xf0)](_0x377338,_0x345c47);if(!_0x40de61)return;let _0x29c926=_0x2a0478(_0x40de61,_0x27a04a);if(!_0x29c926)return;let {startX:_0x3bb285,endX:_0x5d74b5,startY:_0x2de35a,endY:_0x23cd12}=_0x29c926,_0x388f18=this[_0x3bde0b(0x2de)][_0x3bde0b(0x28e)](_0x377338,_0x345c47),_0x32e94d=this[_0x3bde0b(0x138)][_0x3bde0b(0x268)]();for(let [_0xaac4de,_0x5bec15]of Object[_0x3bde0b(0x10b)](_0x388f18)){if(_0x5bec15[_0x3bde0b(0x132)]!==_0x91d30f['DRAWING_SHAPE'])continue;let {transform:_0x160648}=_0x5bec15;if(!_0x160648)continue;let {left:_0x15784c=0x0,top:_0x22c3e3=0x0,width:_0x493653=0x0,height:_0x36ff09=0x0}=_0x160648;_0x3bb285<=_0x15784c&&_0x5d74b5>=_0x15784c+_0x493653&&_0x2de35a<=_0x22c3e3&&_0x23cd12>=_0x22c3e3+_0x36ff09&&_0x32e94d[_0x3bde0b(0x1d2)](_0x5bec15);}_0x32e94d[_0x3bde0b(0x19e)]>0x0&&(this[_0x3bde0b(0x248)]={'unitId':_0x377338,'subUnitId':_0x345c47,'copyType':_0x3829ad,'copyRange':_0x27a04a,'drawings':_0x32e94d});}[_0x3721df(0x2c9)](_0x4010e0,_0x11fd76){const _0x1c36c6=_0x3721df;let {unitId:_0x2fe737,subUnitId:_0x829893,range:_0x2069c9}=_0x4010e0,_0x199c91=this['_sheetSkeletonService']['getSkeleton'](_0x2fe737,_0x829893);if(!_0x199c91)return{'redos':[],'undos':[]};let _0x265160=_0x579c9e(_0x2069c9),{unitId:_0x324052,subUnitId:_0x41af70,copyRange:_0x598ee4,drawings:_0x48020f}=this[_0x1c36c6(0x248)],_0x546d44=this[_0x1c36c6(0x206)][_0x1c36c6(0xf0)](_0x324052,_0x41af70);if(!_0x546d44)return{'redos':[],'undos':[]};let _0xdb440c;if(!_0x598ee4){let _0x417059=0x1/0x0,_0xd72f80=0x1/0x0;for(let _0x546b7b of _0x48020f){var _0x25c34d;let {left:_0x5530e8=0x0,top:_0x21ea50=0x0}=(_0x25c34d=_0x546b7b[_0x1c36c6(0x288)])==null?{}:_0x25c34d;_0x5530e8<_0x417059&&(_0x417059=_0x5530e8),_0x21ea50<_0xd72f80&&(_0xd72f80=_0x21ea50);}_0x417059!==0x1/0x0&&_0xd72f80!==0x1/0x0&&(_0xdb440c={'left':_0x417059,'top':_0xd72f80});}let _0x20b7b8=new Map();if(!_0x11fd76){for(let _0x2f2dd2 of _0x48020f)_0x20b7b8[_0x1c36c6(0x1eb)](_0x2f2dd2['drawingId'],_0x4b0b19());}let _0x21df5c=[],_0x5891bb=[];for(let _0x280d10 of _0x48020f){let {drawingId:_0x186847,transform:_0x3a1f1c,sheetTransform:_0x40ce71}=_0x280d10;if(!_0x3a1f1c||!_0x40ce71)continue;let _0x5e9ede=this[_0x1c36c6(0x23a)]({'transform':_0x3a1f1c,'sheetTransform':_0x40ce71},{'skeleton':_0x546d44,'range':_0x598ee4},{'skeleton':_0x199c91,'range':_0x265160},_0xdb440c);if(_0x11fd76){let {redos:_0x554e39,undos:_0x78ffe0}=this[_0x1c36c6(0x283)]({'fromUnitId':_0x324052,'fromSubUnitId':_0x41af70,'toUnitId':_0x2fe737,'toSubUnitId':_0x829893,'drawing':_0x280d10,'newTransforms':_0x5e9ede});_0x21df5c['push'](..._0x554e39),_0x5891bb[_0x1c36c6(0x1d2)](..._0x78ffe0);continue;}let {redos:_0x151aab,undos:_0x18071e}=this['_generateCopyPasteMutations']({'toUnitId':_0x2fe737,'toSubUnitId':_0x829893,'drawing':_0x280d10,'newTransforms':_0x5e9ede,'newDrawingId':_0x20b7b8[_0x1c36c6(0x2f5)](_0x186847),'idMap':_0x20b7b8});_0x21df5c['push'](..._0x151aab),_0x5891bb[_0x1c36c6(0x1d2)](..._0x18071e);}return{'redos':_0x21df5c,'undos':_0x5891bb};}[_0x3721df(0x283)](_0x34953b){const _0xd0e46a=_0x3721df;let {fromUnitId:_0x1bf62e,fromSubUnitId:_0x2b77ef,toUnitId:_0x2fac04,toSubUnitId:_0x5579bb,drawing:_0x3f8b9e,newTransforms:_0x392776}=_0x34953b,_0x394cb5={..._0x3f8b9e,'unitId':_0x2fac04,'subUnitId':_0x5579bb,'transform':_0x392776[_0xd0e46a(0x288)],'sheetTransform':_0x392776['sheetTransform']};if(_0x2fac04===_0x1bf62e&&_0x5579bb===_0x2b77ef){let {redo:_0x260958,undo:_0x2293d6,objects:_0x5b6ed4}=this[_0xd0e46a(0x2de)][_0xd0e46a(0x20b)]([_0x394cb5]);return{'redos':[{'id':_0x86cf9f['id'],'params':{'unitId':_0x2fac04,'subUnitId':_0x5579bb,'type':_0x19dac9['UPDATE'],'op':_0x260958,'objects':_0x5b6ed4}}],'undos':[{'id':_0x86cf9f['id'],'params':{'unitId':_0x2fac04,'subUnitId':_0x5579bb,'type':_0x19dac9[_0xd0e46a(0xc0)],'op':_0x2293d6,'objects':_0x5b6ed4}}]};}else{let _0x4796b2=this[_0xd0e46a(0x2de)][_0xd0e46a(0x194)]([_0x3f8b9e]),_0x26f72b=this[_0xd0e46a(0x2de)][_0xd0e46a(0x1cf)]([_0x394cb5]),_0x4171c0=this['_shapeService'][_0xd0e46a(0xef)](_0x3f8b9e['unitId'],_0x3f8b9e[_0xd0e46a(0x183)],_0x3f8b9e[_0xd0e46a(0x121)]);if(!_0x4171c0)return{'redos':[],'undos':[]};let _0x44d564=_0x4171c0['getShapeType'](),_0x1a4a4b=JSON[_0xd0e46a(0x2c5)](JSON[_0xd0e46a(0x252)](_0x4171c0['getShapeData']()));return{'redos':[{'id':_0x86cf9f['id'],'params':{'unitId':_0x1bf62e,'subUnitId':_0x2b77ef,'type':_0x19dac9[_0xd0e46a(0x16f)],'op':_0x4796b2[_0xd0e46a(0x1bd)],'objects':_0x4796b2[_0xd0e46a(0x17d)]}},{'id':_0x25666b['id'],'params':{'unitId':_0x1bf62e,'subUnitId':_0x2b77ef,'shapeId':_0x3f8b9e['drawingId']}},{'id':_0x86cf9f['id'],'params':{'unitId':_0x2fac04,'subUnitId':_0x5579bb,'type':_0x19dac9[_0xd0e46a(0x154)],'op':_0x26f72b[_0xd0e46a(0x1bd)],'objects':_0x26f72b[_0xd0e46a(0x17d)]}},{'id':_0x462d48['id'],'params':{'unitId':_0x2fac04,'subUnitId':_0x5579bb,'shapeId':_0x3f8b9e[_0xd0e46a(0x121)],'shapeType':_0x44d564,'shapeData':_0x1a4a4b}}],'undos':[{'id':_0x86cf9f['id'],'params':{'unitId':_0x1bf62e,'subUnitId':_0x2b77ef,'type':_0x19dac9['INSERT'],'op':_0x4796b2[_0xd0e46a(0xaf)],'objects':_0x4796b2[_0xd0e46a(0x17d)]}},{'id':_0x462d48['id'],'params':{'unitId':_0x1bf62e,'subUnitId':_0x2b77ef,'shapeId':_0x3f8b9e['drawingId'],'shapeType':_0x44d564,'shapeData':_0x1a4a4b}},{'id':_0x86cf9f['id'],'params':{'unitId':_0x2fac04,'subUnitId':_0x5579bb,'type':_0x19dac9[_0xd0e46a(0x16f)],'op':_0x26f72b['undo'],'objects':_0x26f72b[_0xd0e46a(0x17d)]}},{'id':_0x25666b['id'],'params':{'unitId':_0x2fac04,'subUnitId':_0x5579bb,'shapeId':_0x3f8b9e[_0xd0e46a(0x121)]}}]};}}[_0x3721df(0xee)](_0x1fdcdb){const _0x4bfefe=_0x3721df;let {toUnitId:_0x255131,toSubUnitId:_0x5775a6,drawing:_0x416d86,newTransforms:_0x39746d,newDrawingId:_0x17bd2d,idMap:_0xd2bbb1}=_0x1fdcdb,_0x31740d={..._0x416d86,'unitId':_0x255131,'subUnitId':_0x5775a6,'drawingId':_0x17bd2d,'transform':_0x39746d['transform'],'sheetTransform':_0x39746d['sheetTransform']},{redo:_0x232a28,undo:_0x51873a,objects:_0x3aa9b4}=this[_0x4bfefe(0x2de)][_0x4bfefe(0x1cf)]([_0x31740d]),_0x450a6a=this['_shapeService'][_0x4bfefe(0xef)](_0x416d86[_0x4bfefe(0xe5)],_0x416d86[_0x4bfefe(0x183)],_0x416d86[_0x4bfefe(0x121)]);if(!_0x450a6a)return{'redos':[],'undos':[]};let _0x445e80=_0x450a6a[_0x4bfefe(0x210)](),_0x45eb6a=JSON[_0x4bfefe(0x2c5)](JSON[_0x4bfefe(0x252)](_0x450a6a['getShapeData']()));if(_0x45eb6a['relation']){var _0x267cde,_0x36fc84;let _0x268cf2=(_0x267cde=_0x45eb6a[_0x4bfefe(0x184)][_0x4bfefe(0x28c)])==null?void 0x0:_0x267cde[_0x4bfefe(0x1bf)],_0x1221ab=(_0x36fc84=_0x45eb6a['relation']['to'])==null?void 0x0:_0x36fc84['shapeId'],_0x263422=_0x268cf2?_0xd2bbb1[_0x4bfefe(0x238)](_0x268cf2):!0x0,_0x3178ee=_0x1221ab?_0xd2bbb1['has'](_0x1221ab):!0x0;_0x263422&&_0x268cf2&&_0x45eb6a[_0x4bfefe(0x184)][_0x4bfefe(0x28c)]?_0x45eb6a['relation'][_0x4bfefe(0x28c)]={..._0x45eb6a[_0x4bfefe(0x184)][_0x4bfefe(0x28c)],'shapeId':_0xd2bbb1['get'](_0x268cf2)}:_0x45eb6a[_0x4bfefe(0x184)]['from']=void 0x0,_0x3178ee&&_0x1221ab&&_0x45eb6a[_0x4bfefe(0x184)]['to']?_0x45eb6a['relation']['to']={..._0x45eb6a[_0x4bfefe(0x184)]['to'],'shapeId':_0xd2bbb1['get'](_0x1221ab)}:_0x45eb6a[_0x4bfefe(0x184)]['to']=void 0x0;}return{'redos':[{'id':_0x86cf9f['id'],'params':{'unitId':_0x255131,'subUnitId':_0x5775a6,'type':_0x19dac9[_0x4bfefe(0x154)],'op':_0x232a28,'objects':_0x3aa9b4}},{'id':_0x462d48['id'],'params':{'unitId':_0x255131,'subUnitId':_0x5775a6,'shapeId':_0x17bd2d,'shapeType':_0x445e80,'shapeData':_0x45eb6a}}],'undos':[{'id':_0x86cf9f['id'],'params':{'unitId':_0x255131,'subUnitId':_0x5775a6,'type':_0x19dac9[_0x4bfefe(0x16f)],'op':_0x51873a,'objects':_0x3aa9b4}},{'id':_0x25666b['id'],'params':{'unitId':_0x255131,'subUnitId':_0x5775a6,'shapeId':_0x17bd2d}}]};}['_updateTransform'](_0x1e1d93,_0x3118cf,_0x340e48,_0x290d83){const _0x4b0426=_0x3721df;var _0x4d6b58;let {range:_0x37e5a1,skeleton:_0x355cc3}=_0x3118cf,{range:_0x525d0c,skeleton:_0x1e829a}=_0x340e48,{transform:_0x2c4f52,sheetTransform:_0x553c2c}=_0x1e1d93,_0x3ce39c={..._0x2c4f52};if(_0x37e5a1){let _0x19ccbd=_0x2a0478(_0x355cc3,_0x37e5a1),_0x47468e=_0x2a0478(_0x1e829a,_0x525d0c);if(_0x19ccbd&&_0x47468e){var _0x31af8f,_0x82368;let _0x4694a3=_0x47468e['startX']-_0x19ccbd[_0x4b0426(0x2fc)],_0x3417f1=_0x47468e[_0x4b0426(0x301)]-_0x19ccbd[_0x4b0426(0x301)];_0x3ce39c[_0x4b0426(0x207)]=((_0x31af8f=_0x3ce39c[_0x4b0426(0x207)])==null?0x0:_0x31af8f)+_0x4694a3,_0x3ce39c[_0x4b0426(0x2b8)]=((_0x82368=_0x3ce39c[_0x4b0426(0x2b8)])==null?0x0:_0x82368)+_0x3417f1;}}else{let _0x4fe8da=_0x2a0478(_0x1e829a,_0x525d0c);if(_0x290d83&&_0x4fe8da){var _0x506f6c,_0x2755a3;let _0x5c8c9b=((_0x506f6c=_0x3ce39c['left'])==null?0x0:_0x506f6c)-_0x290d83[_0x4b0426(0x207)],_0xad4388=((_0x2755a3=_0x3ce39c[_0x4b0426(0x2b8)])==null?0x0:_0x2755a3)-_0x290d83[_0x4b0426(0x2b8)];_0x3ce39c[_0x4b0426(0x207)]=_0x4fe8da[_0x4b0426(0x2fc)]+_0x5c8c9b,_0x3ce39c[_0x4b0426(0x2b8)]=_0x4fe8da['startY']+_0xad4388;}else _0x3ce39c[_0x4b0426(0x207)]=_0x4fe8da==null?void 0x0:_0x4fe8da[_0x4b0426(0x2fc)],_0x3ce39c[_0x4b0426(0x2b8)]=_0x4fe8da==null?void 0x0:_0x4fe8da[_0x4b0426(0x301)];}return{'transform':_0x3ce39c,'sheetTransform':(_0x4d6b58=_0x31cd08(_0x3ce39c,_0x1e829a))==null?_0x553c2c:_0x4d6b58};}};cr=Y([J(0x0,_0x44ac9c(_0x534dab)),J(0x1,_0x44ac9c(_0x3bfdf3)),J(0x2,_0x44ac9c(_0x1769d9)),J(0x3,_0x44ac9c(_0x2318dd)),J(0x4,_0x44ac9c(_0x3495cb))],cr);var lr=class extends _0x39ac3d{constructor(_0x37613b,_0x46aa3a){const _0x3491af=_0x3721df;super(_0x37613b,_0x46aa3a),q(this,_0x3491af(0x176),null),q(this,_0x3491af(0x14c),null),q(this,_0x3491af(0x255),null),q(this,'_subUnitId',null),q(this,_0x3491af(0x299),!0x1),_0x46aa3a&&this[_0x3491af(0x295)](_0x46aa3a);}[_0x3721df(0x245)](){const _0x10c971=_0x3721df;return{'unitId':this[_0x10c971(0x255)],'subUnitId':this[_0x10c971(0x113)],'drawingId':this[_0x10c971(0x176)]};}[_0x3721df(0x295)](_0x3f6353){const _0x55cc1a=_0x3721df;_0x3f6353[_0x55cc1a(0x1bf)]!==void 0x0&&(this['_shapeId']=_0x3f6353[_0x55cc1a(0x1bf)]),_0x3f6353[_0x55cc1a(0xe5)]!==void 0x0&&(this['_unitId']=_0x3f6353[_0x55cc1a(0xe5)]),_0x3f6353['subUnitId']!==void 0x0&&(this[_0x55cc1a(0x113)]=_0x3f6353[_0x55cc1a(0x183)]),_0x3f6353[_0x55cc1a(0x228)]!==void 0x0&&(this[_0x55cc1a(0x299)]=_0x3f6353[_0x55cc1a(0x228)]),this[_0x55cc1a(0x2d2)]({'width':_0x3f6353['width'],'height':_0x3f6353[_0x55cc1a(0x193)]});}[_0x3721df(0x16c)](_0x115c6b){const _0x7fec50=_0x3721df;_0x2cd80f[_0x7fec50(0x185)](_0x115c6b,{'radius':_0x170bf6[_0x7fec50(0xc5)],'fill':_0x170bf6[_0x7fec50(0x192)],'stroke':_0x170bf6[_0x7fec50(0x106)],'strokeWidth':_0x170bf6[_0x7fec50(0x2ca)],'evented':!0x0});}};let ur=class extends _0x3ff889{constructor(_0x2946cf,_0x1855ce,_0x3e2939,_0x434063,_0x124653,_0x186120,_0x1717df,_0x32b83e){const _0xe72ba5=_0x3721df;super(),this['_context']=_0x2946cf,this[_0xe72ba5(0x1fc)]=_0x1855ce,this[_0xe72ba5(0x28f)]=_0x3e2939,this[_0xe72ba5(0x212)]=_0x434063,this[_0xe72ba5(0x205)]=_0x124653,this['_sheetsShapeService']=_0x186120,this[_0xe72ba5(0x125)]=_0x1717df,this[_0xe72ba5(0x1f3)]=_0x32b83e,q(this,_0xe72ba5(0x12e),void 0x0),q(this,'_unitId',void 0x0),q(this,_0xe72ba5(0x113),void 0x0),q(this,_0xe72ba5(0x2e1),[]),q(this,_0xe72ba5(0x30b),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0xe72ba5(0x25f),void 0x0),q(this,_0xe72ba5(0x1ff),!0x1),q(this,_0xe72ba5(0x162),!0x1),q(this,'_hasReset',!0x1),q(this,_0xe72ba5(0x188),void 0x0),q(this,_0xe72ba5(0x117),void 0x0),q(this,_0xe72ba5(0x2ec),null),this['_initialize']();}[_0x3721df(0x14a)](){const _0x22a1d7=_0x3721df;this[_0x22a1d7(0x189)](),this[_0x22a1d7(0x2fb)]();}[_0x3721df(0x159)](){const _0xcfb109=_0x3721df;if(!this[_0xcfb109(0x255)]||!this[_0xcfb109(0x113)]||!this[_0xcfb109(0x12e)])return;let _0xa7f673={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']},{transform:_0x47955a}=this[_0xcfb109(0x212)][_0xcfb109(0x22d)](_0xa7f673);if(_0x47955a)return{'left':_0x47955a['left']||0x0,'top':_0x47955a[_0xcfb109(0x2b8)]||0x0,'width':_0x47955a[_0xcfb109(0x19c)]||0x0,'height':_0x47955a[_0xcfb109(0x193)]||0x0,'flipX':_0x47955a[_0xcfb109(0x124)]||!0x1,'flipY':_0x47955a['flipY']||!0x1,'angle':_0x47955a[_0xcfb109(0x300)]};}[_0x3721df(0xe8)](){const _0xeaf0aa=_0x3721df;if(this[_0xeaf0aa(0x255)]===void 0x0||this[_0xeaf0aa(0x113)]===void 0x0||this[_0xeaf0aa(0x12e)]===void 0x0)return;let _0x29e176=this[_0xeaf0aa(0x28f)]['getRenderById'](this['_unitId']);if(!_0x29e176||!_0x29e176['with'](_0x39e39b)[_0xeaf0aa(0x18f)]())return;let {scene:_0x2bbc00}=_0x29e176,_0x419107=this[_0xeaf0aa(0x159)]();if(!_0x419107)return;let _0x56f564=this[_0xeaf0aa(0x1a7)][_0xeaf0aa(0xef)](this['_unitId'],this[_0xeaf0aa(0x113)],this[_0xeaf0aa(0x12e)]);if(!_0x56f564||!_0x51a857(_0x56f564[_0xeaf0aa(0x210)]()))return;let _0x31e34d=_0x56f564[_0xeaf0aa(0x1b9)]();if(_0x31e34d[_0xeaf0aa(0x19e)]<0x2)return;let _0x324da2=new _0x70c837(_0x419107),_0x2e9459=_0x31e34d[0x0],_0x41ec86=_0x31e34d[_0x31e34d[_0xeaf0aa(0x19e)]-0x1],_0x30c8d0=_0x324da2[_0xeaf0aa(0x2e3)](_0x2e9459),_0x322c97=_0x324da2[_0xeaf0aa(0x2e3)](_0x41ec86);this['_addShapeConnectorHandlerObject'](_0x2bbc00,{..._0x30c8d0},!0x0),this[_0xeaf0aa(0x1a4)](_0x2bbc00,{..._0x322c97},!0x1);}[_0x3721df(0x1a4)](_0x166d01,_0x422365,_0x12de25){const _0x49bd60=_0x3721df;if(this['_activeShapeId']===void 0x0||this[_0x49bd60(0x255)]===void 0x0||this[_0x49bd60(0x113)]===void 0x0)return;let _0x1959fd=_0x49bd60(0x2b0)+this[_0x49bd60(0x255)]+'-'+this['_subUnitId']+'-'+this['_activeShapeId']+'-'+(_0x12de25?_0x49bd60(0x2f3):'end'),_0x1b3399=_0x166d01[_0x49bd60(0xc2)](_0x1959fd);if(_0x1b3399){_0x1b3399[_0x49bd60(0x2d2)]({'left':_0x422365['x']-_0x170bf6['cxnPointRadius'],'top':_0x422365['y']-_0x170bf6['cxnPointRadius']});return;}let _0x499d94=new lr(_0x1959fd,{'left':_0x422365['x']-_0x170bf6[_0x49bd60(0xc5)],'top':_0x422365['y']-_0x170bf6[_0x49bd60(0xc5)],'shapeId':this['_activeShapeId'],'unitId':this[_0x49bd60(0x255)],'subUnitId':this[_0x49bd60(0x113)],'isStartConnectorPoint':_0x12de25,'width':_0x170bf6[_0x49bd60(0xc5)]*0x2,'height':_0x170bf6[_0x49bd60(0xc5)]*0x2,'zIndex':_0x1484b2+0x1,'evented':!0x0});this['_connectorObjects'][_0x49bd60(0x1d2)](_0x499d94),this['_attachConnectorObjectEvent'](_0x499d94,_0x166d01,_0x12de25),_0x166d01[_0x49bd60(0x170)](_0x499d94,_0x1484b2+0x1);}['_getScrollInfo'](_0x2d2b1e,_0x18e082){const _0x27a588=_0x3721df;var _0x387b04;let _0x560ab3={'x':0x0,'y':0x0};if(!_0x2d2b1e||!_0x18e082)return _0x560ab3;let _0x4d7ed8=this[_0x27a588(0x28f)][_0x27a588(0x1f1)](_0x2d2b1e);if(!_0x4d7ed8||!_0x4d7ed8[_0x27a588(0x29b)](_0x39e39b)[_0x27a588(0xf0)](_0x18e082))return _0x560ab3;let _0x47c49b=_0x4d7ed8['with'](_0x4f30c1),_0x4b1f15=_0x47c49b==null?void 0x0:_0x47c49b[_0x27a588(0xd5)]();if(!_0x4b1f15)return _0x560ab3;let _0x3b4819=(_0x387b04=this['_univerInstanceService'][_0x27a588(0x201)](_0x2d2b1e))==null?void 0x0:_0x387b04[_0x27a588(0x24c)](_0x18e082);if(!_0x3b4819)return _0x560ab3;let _0x1148cf=_0x177de7(_0x4b1f15['sheetViewStartRow'],_0x4b1f15[_0x27a588(0xe4)],_0x4d7ed8[_0x27a588(0x223)],_0x3b4819);return _0x1148cf?{'x':_0x1148cf[_0x27a588(0x1b0)],'y':_0x1148cf[_0x27a588(0xad)]}:_0x560ab3;}['_getZoomRatio'](_0x57f387,_0x2f3425){const _0x1f50b8=_0x3721df;var _0x205be5,_0x1ae83b;let _0x10a09e=(_0x205be5=this[_0x1f50b8(0x205)][_0x1f50b8(0x201)](_0x57f387))==null?void 0x0:_0x205be5[_0x1f50b8(0x24c)](_0x2f3425);return(_0x1ae83b=_0x10a09e==null?void 0x0:_0x10a09e[_0x1f50b8(0x2da)]())==null?0x1:_0x1ae83b;}['_handleConnectorPointerUp'](_0x107c56,_0x49cbc3,_0x239f6b,_0x4c5461,_0x23ed09){const _0x1a0877=_0x3721df;this[_0x1a0877(0x188)]['unsubscribe'](),this[_0x1a0877(0x117)][_0x1a0877(0x1d0)](),this[_0x1a0877(0x125)][_0x1a0877(0x274)]();let _0x16b32f=this[_0x1a0877(0x2ec)];this[_0x1a0877(0x1f3)][_0x1a0877(0x15b)]();let _0x2591ab=this[_0x1a0877(0x18a)](this[_0x1a0877(0x255)],this[_0x1a0877(0x113)]),_0x181872=this[_0x1a0877(0x234)](this[_0x1a0877(0x255)],this[_0x1a0877(0x113)]),_0x41e314={'x':_0x239f6b['offsetX']/_0x181872+_0x2591ab['x'],'y':_0x239f6b[_0x1a0877(0x2e4)]/_0x181872+_0x2591ab['y']},_0x350fbf=_0x16b32f?_0x16b32f[_0x1a0877(0x1fd)]:_0x41e314,_0x15df73=_0x4c5461?this[_0x1a0877(0x25f)][_0x1a0877(0x1e0)]():this['_activeShapeModel'][_0x1a0877(0x12a)](),_0x438ffd=this['_activeShapeModel'][_0x1a0877(0x210)]();_0x15df73?this[_0x1a0877(0x2f2)](_0x15df73,_0x350fbf,_0x4c5461,_0x16b32f,_0x23ed09):this[_0x1a0877(0x23c)](_0x49cbc3,_0x350fbf,_0x4c5461,_0x16b32f,_0x23ed09,_0x438ffd),this['_isConnecting']=!0x1,this[_0x1a0877(0xf2)]=!0x1,this[_0x1a0877(0x2ec)]=null,_0x107c56['enableObjectsEvent']();}[_0x3721df(0x23c)](_0x29d057,_0x35913b,_0x2d4154,_0x2ab144,_0x16dfec,_0x396280){const _0x16374d=_0x3721df;let _0x13b52c=_0x396280===_0x56b767[_0x16374d(0x241)]||_0x396280===_0x56b767[_0x16374d(0xdc)],_0x1d25b5=_0x2d4154?_0x35913b:_0x29d057,_0x5f0e8b=_0x2d4154?_0x29d057:_0x35913b,_0x3263e2=this[_0x16374d(0x25f)][_0x16374d(0x1b9)](),_0x3e1fe3=_0x3bc6fd(this[_0x16374d(0x25f)][_0x16374d(0x210)]()),_0x32d248=_0x70c837[_0x16374d(0x218)](_0x3263e2,_0x3e1fe3),_0x4447de=_0x13b52c?_0x70c837[_0x16374d(0x23e)](_0x1d25b5,_0x5f0e8b):_0x70c837[_0x16374d(0x2d7)](_0x29d057,_0x35913b,_0x2d4154,_0x32d248);_0x2ab144?this[_0x16374d(0x254)](_0x4447de,_0x2ab144,_0x2d4154,_0x16dfec):this[_0x16374d(0x2e7)](_0x4447de,_0x16dfec);}[_0x3721df(0x2f2)](_0x404a9f,_0x49f3cc,_0x17f261,_0x416c00,_0x1efd85){const _0x21c8f5=_0x3721df;let _0x106d42=this[_0x21c8f5(0x227)](_0x404a9f);if(!_0x106d42)return;let _0x2f06e1=_0x416c00?_0x416c00['angle']:this[_0x21c8f5(0x1c8)](_0x106d42[_0x21c8f5(0x27f)],_0x49f3cc),_0x151fb7;if(_0x416c00){let _0x45561d=this[_0x21c8f5(0x212)][_0x21c8f5(0x22d)]({'unitId':_0x416c00[_0x21c8f5(0xe5)],'subUnitId':_0x416c00['subUnitId'],'drawingId':_0x416c00[_0x21c8f5(0x1bf)]});if(_0x45561d!=null&&_0x45561d['transform']){let {left:_0x124d5a=0x0,top:_0x2bb229=0x0,width:_0x396121=0x0,height:_0x277be6=0x0,angle:_0x5c38d7}=_0x45561d[_0x21c8f5(0x288)];_0x151fb7=_0x1218d5({'left':_0x124d5a,'top':_0x2bb229,'width':_0x396121,'height':_0x277be6},_0x5c38d7||0x0);}else _0x151fb7={'left':_0x49f3cc['x'],'top':_0x49f3cc['y'],'width':0x0,'height':0x0};}else _0x151fb7={'left':_0x49f3cc['x'],'top':_0x49f3cc['y'],'width':0x0,'height':0x0};let _0x35d60d={'point':_0x49f3cc,'angle':_0x2f06e1,'bounds':_0x151fb7},_0x2667aa=_0x17f261?_0x35d60d:_0x106d42,_0x4327da=_0x17f261?_0x106d42:_0x35d60d,_0x3d236a=this['_activeShapeModel'][_0x21c8f5(0x210)](),_0x1cc02f=_0x476f7c(_0x2667aa,_0x4327da,_0x3d236a);this[_0x21c8f5(0x25f)]['removeLinePoints']();let _0x1b772b=_0xa851c9(_0x1cc02f,_0x3d236a);_0x416c00?this[_0x21c8f5(0x1fe)](_0x1b772b,_0x416c00,_0x404a9f,_0x17f261,_0x1efd85):this[_0x21c8f5(0x127)](_0x1b772b,_0x404a9f,_0x17f261,_0x1efd85);}['_executeConnectionCommand'](_0x491f86,_0x35bee3,_0x574679,_0x5b45c8){const _0x87426d=_0x3721df;let _0x58d49d=this[_0x87426d(0x25f)]['getShapeData']()[_0x87426d(0x184)],_0x364d5d={..._0x58d49d},_0x49e6b9={'shapeId':_0x35bee3[_0x87426d(0x1bf)],'cxnIndex':_0x35bee3[_0x87426d(0x103)]};_0x574679?_0x364d5d[_0x87426d(0x28c)]=_0x49e6b9:_0x364d5d['to']=_0x49e6b9;let _0x16e3cb=this[_0x87426d(0x25f)][_0x87426d(0x210)](),_0x49139e=_0xa851c9(_0x491f86['worldPoints'],_0x16e3cb),_0x2411a8={'unitId':this[_0x87426d(0x255)],'subUnitId':this[_0x87426d(0x113)],'connectorShapeId':this['_activeShapeId'],'width':_0x491f86[_0x87426d(0x13a)]['width'],'height':_0x491f86[_0x87426d(0x13a)][_0x87426d(0x193)],'left':_0x491f86['worldRect'][_0x87426d(0x207)],'top':_0x491f86[_0x87426d(0x13a)][_0x87426d(0x2b8)],'flipX':_0x491f86['worldRect'][_0x87426d(0x124)]||!0x1,'flipY':_0x491f86[_0x87426d(0x13a)][_0x87426d(0x291)]||!0x1,'newAdjustValues':_0x49139e[_0x87426d(0x257)],'oldAdjustValues':_0x5b45c8,'oldRelation':_0x58d49d,'newRelation':_0x364d5d,'newLineType':_0x49139e[_0x87426d(0x111)],'oldLineType':_0x16e3cb};this[_0x87426d(0x1fc)][_0x87426d(0x24b)](_0x2f3418['id'],_0x2411a8);}['_executeResizeCommand'](_0x4261ed,_0x5e48ec){const _0x2bafbe=_0x3721df;let _0x56b2eb=this['_activeShapeModel'][_0x2bafbe(0x210)](),_0x234d6e=_0xa851c9(_0x4261ed[_0x2bafbe(0x260)],_0x56b2eb),_0x3d0b75={'unitId':this[_0x2bafbe(0x255)],'subUnitId':this[_0x2bafbe(0x113)],'shapeId':this[_0x2bafbe(0x12e)],'width':_0x4261ed[_0x2bafbe(0x13a)]['width'],'height':_0x4261ed[_0x2bafbe(0x13a)]['height'],'left':_0x4261ed[_0x2bafbe(0x13a)][_0x2bafbe(0x207)],'top':_0x4261ed[_0x2bafbe(0x13a)][_0x2bafbe(0x2b8)],'flipX':_0x4261ed[_0x2bafbe(0x13a)]['flipX']||!0x1,'flipY':_0x4261ed[_0x2bafbe(0x13a)]['flipY']||!0x1,'angle':_0x4261ed[_0x2bafbe(0x13a)][_0x2bafbe(0x300)]||0x0,'newAdjustValues':_0x234d6e[_0x2bafbe(0x257)],'oldAdjustValues':_0x5e48ec,'newLineType':_0x234d6e[_0x2bafbe(0x111)],'oldLineType':_0x56b2eb};this['_commandService'][_0x2bafbe(0x24b)](_0x9525c0['id'],_0x3d0b75);}[_0x3721df(0x1fe)](_0x3af716,_0x50ebda,_0x108883,_0x5733d8,_0x32ff17){const _0x2a7c28=_0x3721df;let _0x4b857b=this[_0x2a7c28(0x25f)]['getShapeData']()[_0x2a7c28(0x184)],_0xcdf056={..._0x4b857b},_0x355531={'shapeId':_0x50ebda['shapeId'],'cxnIndex':_0x50ebda['cxnIndex']};_0x5733d8?(_0xcdf056[_0x2a7c28(0x28c)]=_0x355531,_0xcdf056['to']=_0x108883):(_0xcdf056[_0x2a7c28(0x28c)]=_0x108883,_0xcdf056['to']=_0x355531);let _0xe43201={'unitId':this[_0x2a7c28(0x255)],'subUnitId':this[_0x2a7c28(0x113)],'connectorShapeId':this[_0x2a7c28(0x12e)],'width':_0x3af716['worldRect'][_0x2a7c28(0x19c)],'height':_0x3af716['worldRect'][_0x2a7c28(0x193)],'left':_0x3af716[_0x2a7c28(0x13a)][_0x2a7c28(0x207)],'top':_0x3af716['worldRect']['top'],'flipX':_0x3af716['worldRect']['flipX']||!0x1,'flipY':_0x3af716[_0x2a7c28(0x13a)][_0x2a7c28(0x291)]||!0x1,'oldAdjustValues':_0x32ff17,'newAdjustValues':_0x3af716[_0x2a7c28(0x257)],'newLineType':_0x3af716[_0x2a7c28(0x111)],'rotation':_0x3af716['rotation'],'oldRelation':_0x4b857b,'newRelation':_0xcdf056};this[_0x2a7c28(0x1fc)][_0x2a7c28(0x24b)](_0x2f3418['id'],_0xe43201);}[_0x3721df(0x127)](_0x85f6d6,_0x5ac099,_0x3889aa,_0x5f0fb6){const _0x3704ae=_0x3721df;let _0x55ca41=this['_activeShapeModel']['getShapeData']()[_0x3704ae(0x184)],_0x2b85a1={};_0x3889aa?(_0x2b85a1['to']=_0x5ac099,_0x2b85a1[_0x3704ae(0x28c)]=void 0x0):(_0x2b85a1['from']=_0x5ac099,_0x2b85a1['to']=void 0x0);let _0x20aa68={'unitId':this[_0x3704ae(0x255)],'subUnitId':this[_0x3704ae(0x113)],'connectorShapeId':this['_activeShapeId'],'width':_0x85f6d6[_0x3704ae(0x13a)][_0x3704ae(0x19c)],'height':_0x85f6d6[_0x3704ae(0x13a)]['height'],'left':_0x85f6d6[_0x3704ae(0x13a)]['left'],'top':_0x85f6d6[_0x3704ae(0x13a)][_0x3704ae(0x2b8)],'flipX':_0x85f6d6[_0x3704ae(0x13a)][_0x3704ae(0x124)]||!0x1,'flipY':_0x85f6d6[_0x3704ae(0x13a)][_0x3704ae(0x291)]||!0x1,'oldAdjustValues':_0x5f0fb6,'newAdjustValues':_0x85f6d6[_0x3704ae(0x257)],'newLineType':_0x85f6d6[_0x3704ae(0x111)],'rotation':_0x85f6d6['rotation'],'oldRelation':_0x55ca41,'newRelation':_0x2b85a1};this[_0x3704ae(0x1fc)][_0x3704ae(0x24b)](_0x2f3418['id'],_0x20aa68);}[_0x3721df(0x141)](_0x129949,_0x16bf82,_0x88c34a){const _0xa30757=_0x3721df;this[_0xa30757(0x23d)](_0x4e35de(_0x129949['onPointerDown$']['subscribeEvent']((_0x11b66b,_0x2c8b77)=>{const _0x1a8f8e=_0xa30757;let _0x2d0b71=_0x129949[_0x1a8f8e(0x245)]();if(this[_0x1a8f8e(0x25f)]=this[_0x1a8f8e(0x1a7)][_0x1a8f8e(0xef)](_0x2d0b71[_0x1a8f8e(0xe5)],_0x2d0b71['subUnitId'],_0x2d0b71['drawingId']),!this[_0x1a8f8e(0x25f)])return;let _0x2cb38e={};this['_activeShapeModel']['getAdjustNames']()['forEach'](_0x251e51=>{const _0x471257=_0x1a8f8e;let _0x2cd823=this[_0x471257(0x25f)][_0x471257(0x25d)](_0x251e51);_0x2cd823!==void 0x0&&(_0x2cb38e[_0x251e51]=_0x2cd823);});let _0x34fdd9=this[_0x1a8f8e(0x159)]();if(!_0x34fdd9)return;this[_0x1a8f8e(0x30b)]={..._0x34fdd9};let _0x586a91=new _0x70c837(this['_baseDrawingRect']),_0x1ab54e=_0xc0766c({'unitId':this[_0x1a8f8e(0x255)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x1a8f8e(0x12e)]}),_0xfe2d72=_0x16bf82['getObjectIncludeInGroup'](_0x1ab54e);this[_0x1a8f8e(0x1ff)]=!0x0,_0x16bf82[_0x1a8f8e(0x1be)](),this[_0x1a8f8e(0x1f3)][_0x1a8f8e(0x1cd)](_0x16bf82,this[_0x1a8f8e(0x255)],this[_0x1a8f8e(0x113)],this[_0x1a8f8e(0x12e)]),this[_0x1a8f8e(0x2ec)]=null;let _0x391ff6=this['_activeShapeModel']['getConnectorLinePoints'](),_0x5def14=_0x391ff6[0x0],_0xac81fe=_0x391ff6[_0x391ff6[_0x1a8f8e(0x19e)]-0x1],_0x24108a=_0x88c34a?_0x586a91[_0x1a8f8e(0x2e3)](_0xac81fe):_0x586a91[_0x1a8f8e(0x2e3)](_0x5def14);this['_cxtHandlerPointerMove']=_0x16bf82[_0x1a8f8e(0xe6)][_0x1a8f8e(0x2ce)]((_0x449d4c,_0x3c2234)=>{const _0x13cc84=_0x1a8f8e;if(!this[_0x13cc84(0x1ff)]||!this[_0x13cc84(0x25f)])return;this[_0x13cc84(0xf2)]||(this[_0x13cc84(0x125)][_0x13cc84(0x161)](),this[_0x13cc84(0x25f)][_0x13cc84(0x20c)](),this['_hasReset']=!0x0);let _0x2bf552=this[_0x13cc84(0x18a)](this[_0x13cc84(0x255)],this[_0x13cc84(0x113)]),_0x5486e1=this[_0x13cc84(0x234)](this[_0x13cc84(0x255)],this[_0x13cc84(0x113)]),_0x5c1177={'x':_0x449d4c[_0x13cc84(0x272)]/_0x5486e1+_0x2bf552['x'],'y':_0x449d4c['offsetY']/_0x5486e1+_0x2bf552['y']},_0x21fe3d=this[_0x13cc84(0x1f3)]['updateConnectionDetection'](_0x5c1177);if(_0x21fe3d){let {shapeId:_0x2c549b,unitId:_0x16343b,subUnitId:_0x4a6616}=_0x21fe3d;if(_0x2c549b&&_0x16343b&&_0x4a6616){let _0x597a17=_0xc0766c({'unitId':_0x16343b,'subUnitId':_0x4a6616,'drawingId':_0x2c549b});_0x21fe3d[_0x13cc84(0x300)]=(_0x16bf82['getObjectIncludeInGroup'](_0x597a17)['angle']||0x0)+_0x21fe3d[_0x13cc84(0x300)];}}this[_0x13cc84(0x2ec)]=_0x21fe3d;let _0x417af8=_0x88c34a?this[_0x13cc84(0x25f)][_0x13cc84(0x1e0)]():this[_0x13cc84(0x25f)][_0x13cc84(0x12a)]();if(_0x417af8){this[_0x13cc84(0x24a)](_0x417af8,_0x5c1177,_0x88c34a,_0xfe2d72,_0x129949);return;}this['_handleFreeEndpointMove'](_0x5c1177,_0x24108a,_0x88c34a,_0xfe2d72,_0x129949);}),this[_0x1a8f8e(0x117)]=_0x16bf82[_0x1a8f8e(0x163)][_0x1a8f8e(0x2ce)]((_0x49ac9b,_0x302096)=>{const _0x33aae1=_0x1a8f8e;this[_0x33aae1(0x123)](_0x16bf82,_0x24108a,_0x49ac9b,_0x88c34a,_0x2cb38e);}),_0x2c8b77[_0x1a8f8e(0x17b)]();})));}[_0x3721df(0x10a)](_0x1a9f89,_0x103cd4,_0x32b4a2){const _0x1669d8=_0x3721df;let _0x22e00c=this[_0x1669d8(0x1a7)][_0x1669d8(0xcf)](_0x1a9f89,_0x103cd4,_0x32b4a2);if(!_0x22e00c||_0x22e00c[_0x1669d8(0x19e)]===0x0)return;let _0x1a3111=this['_renderManagerService'][_0x1669d8(0x1f1)](_0x1a9f89);if(!_0x1a3111)return;let {scene:_0x346664}=_0x1a3111;for(let _0x50c3cc of _0x22e00c){let _0x571337=_0x50c3cc[_0x1669d8(0x21c)],_0x1c2a58=this[_0x1669d8(0x1a7)]['getShapeModel'](_0x1a9f89,_0x103cd4,_0x571337);if(!_0x1c2a58)continue;let _0x5f1edc=_0x1c2a58[_0x1669d8(0x12a)](),_0x46baaa=_0x1c2a58[_0x1669d8(0x1e0)](),_0x3fe8d3=(_0x5f1edc==null?void 0x0:_0x5f1edc['shapeId'])===_0x32b4a2,_0x3d7149=_0xc0766c({'unitId':_0x1a9f89,'subUnitId':_0x103cd4,'drawingId':_0x571337}),_0xef31d4=_0x346664[_0x1669d8(0xc2)](_0x3d7149);if(!_0xef31d4)continue;let _0x1dc567=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x1a9f89,'subUnitId':_0x103cd4,'drawingId':_0x571337});_0x1dc567!=null&&_0x1dc567['transform']&&(_0x5f1edc&&_0x46baaa?this['_rerouteConnectorLine'](_0x1a9f89,_0x103cd4,_0x571337,_0x1c2a58,_0x5f1edc,_0x46baaa,_0xef31d4):this[_0x1669d8(0xbd)](_0x1a9f89,_0x103cd4,_0x571337,_0x1c2a58,_0x3fe8d3?_0x5f1edc:_0x46baaa,_0x3fe8d3,_0x1dc567,_0xef31d4));}}[_0x3721df(0x24d)](_0x31df73,_0x3ec678,_0x5c81a1,_0x203ddf,_0x2f7082,_0x138e1b,_0x21368a){const _0x3a4546=_0x3721df;let _0x1a74c2=this['_unitId'],_0x3476a0=this['_subUnitId'];this[_0x3a4546(0x255)]=_0x31df73,this[_0x3a4546(0x113)]=_0x3ec678;let _0x50bcdb=this['_getConnectPointInfo'](_0x2f7082),_0x3d26c3=this[_0x3a4546(0x227)](_0x138e1b);if(this[_0x3a4546(0x255)]=_0x1a74c2,this['_subUnitId']=_0x3476a0,!_0x50bcdb||!_0x3d26c3)return;let _0x4a5b61=_0x203ddf[_0x3a4546(0x210)](),_0x3250f1=_0x476f7c(_0x50bcdb,_0x3d26c3,_0x4a5b61);_0x3250f1&&_0x203ddf[_0x3a4546(0x219)](_0x3250f1);let _0x1bd824=_0xa851c9(_0x3250f1,_0x4a5b61);_0x1bd824[_0x3a4546(0x111)]!==_0x4a5b61&&_0x203ddf[_0x3a4546(0xb5)](_0x1bd824[_0x3a4546(0x111)]),_0x203ddf[_0x3a4546(0x20c)]();for(let [_0x23da98,_0x1cbc22]of Object['entries'](_0x1bd824[_0x3a4546(0x257)]))_0x203ddf[_0x3a4546(0x17f)](_0x23da98,_0x1cbc22);_0x203ddf['updateContext']({'width':_0x1bd824['worldRect'][_0x3a4546(0x19c)],'height':_0x1bd824[_0x3a4546(0x13a)]['height']}),_0x21368a[_0x3a4546(0x2d2)]({'flipX':_0x1bd824[_0x3a4546(0x13a)][_0x3a4546(0x124)],'flipY':_0x1bd824[_0x3a4546(0x13a)][_0x3a4546(0x291)],'left':_0x1bd824[_0x3a4546(0x13a)][_0x3a4546(0x207)],'top':_0x1bd824[_0x3a4546(0x13a)][_0x3a4546(0x2b8)],'width':_0x1bd824[_0x3a4546(0x13a)][_0x3a4546(0x19c)],'height':_0x1bd824['worldRect'][_0x3a4546(0x193)],'angle':_0x1bd824[_0x3a4546(0x178)]}),_0x203ddf[_0x3a4546(0x187)]();}['_moveConnectorWithShape'](_0x5c591e,_0x260c47,_0xdffda1,_0x2b4a33,_0x27f5e3,_0x4a1140,_0x53c556,_0x9eb8b0){const _0x47f910=_0x3721df;let _0x1c5286=this[_0x47f910(0x255)],_0x280888=this[_0x47f910(0x113)];this[_0x47f910(0x255)]=_0x5c591e,this[_0x47f910(0x113)]=_0x260c47;let _0x10d4cc=this[_0x47f910(0x227)](_0x27f5e3);if(this[_0x47f910(0x255)]=_0x1c5286,this[_0x47f910(0x113)]=_0x280888,!_0x10d4cc)return;let {left:_0x10fe05=0x0,top:_0x10ce30=0x0,width:_0x54ac1e=0x0,height:_0x500ee7=0x0,flipX:_0x8ebf9a=!0x1,flipY:_0x667df9=!0x1}=_0x53c556[_0x47f910(0x288)],_0x1c2636=_0x2b4a33[_0x47f910(0x1b9)]();if(_0x1c2636[_0x47f910(0x19e)]<0x2)return;let _0x5badff=new _0x70c837({'left':_0x10fe05,'top':_0x10ce30,'width':_0x54ac1e,'height':_0x500ee7,'flipX':_0x8ebf9a,'flipY':_0x667df9}),_0x109aa3=_0x4a1140?_0x1c2636[_0x1c2636[_0x47f910(0x19e)]-0x1]:_0x1c2636[0x0],_0x175494=_0x5badff[_0x47f910(0x2e3)](_0x109aa3),_0x2fef8c=_0x70c837[_0x47f910(0x2d7)](_0x175494,_0x10d4cc['point'],!_0x4a1140);_0x9eb8b0[_0x47f910(0x2d2)]({'flipX':_0x2fef8c[_0x47f910(0x13a)][_0x47f910(0x124)],'flipY':_0x2fef8c[_0x47f910(0x13a)][_0x47f910(0x291)],'left':_0x2fef8c[_0x47f910(0x13a)]['left'],'top':_0x2fef8c[_0x47f910(0x13a)][_0x47f910(0x2b8)],'width':_0x2fef8c['worldRect'][_0x47f910(0x19c)],'height':_0x2fef8c[_0x47f910(0x13a)]['height'],'angle':_0x2fef8c['worldRect']['angle']}),_0x9eb8b0[_0x47f910(0x16b)](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0x464df7=_0x3721df;this[_0x464df7(0x2e1)][_0x464df7(0x19e)]!==0x0&&(this[_0x464df7(0x2e1)][_0x464df7(0x1a9)](_0x390546=>{const _0x45b2fb=_0x464df7;_0x390546[_0x45b2fb(0x250)]();}),this[_0x464df7(0x2e1)]=[]);}['_registerDrawingMoveHandler'](){const _0x51c2e7=_0x3721df;let _0x20e71b=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x2c116a[_0x51c2e7(0x1a1)]);this[_0x51c2e7(0x23d)](_0x20e71b[_0x51c2e7(0x27d)](_0x319361(_0x30c564=>_0x30c564?_0x30c564['activeSheet$']['pipe'](_0x319361(_0x373dc2=>{const _0x3b502b=_0x51c2e7;if(!_0x373dc2)return _0x4cf815;let _0x4f84de=_0x30c564[_0x3b502b(0x1b5)](),_0x582d9d=this['_renderManagerService'][_0x3b502b(0x1f1)](_0x4f84de),_0x3e0f9c=_0x582d9d==null?void 0x0:_0x582d9d[_0x3b502b(0x223)];return _0x3e0f9c?_0x232c55(_0x3e0f9c):_0x4cf815;})):_0x4cf815))[_0x51c2e7(0x290)](_0x3f81db=>{const _0x150eb3=_0x51c2e7;let _0x2d3b37=_0x3f81db[_0x150eb3(0x197)]();this[_0x150eb3(0x23d)](_0x3f81db[_0x150eb3(0xe6)][_0x150eb3(0x2ce)](_0x1054d0=>{const _0x5c1eeb=_0x150eb3;this[_0x5c1eeb(0x162)]&&this[_0x5c1eeb(0x12e)]&&this[_0x5c1eeb(0x29a)]();})),this[_0x150eb3(0x23d)](_0x2d3b37[_0x150eb3(0x191)]['subscribe'](_0x485f96=>{const _0x42cbf4=_0x150eb3;let {objects:_0x4b0aa8}=_0x485f96;this['_clearShapeConnectorHandlerObjects'](),_0x4b0aa8!==null&&_0x4b0aa8[_0x42cbf4(0x30a)]===0x1&&_0x4b0aa8['values']()[_0x42cbf4(0x11b)]()[_0x42cbf4(0x15c)]instanceof vn&&(this['_isDrawingShapePointDown']=!0x0);})),this[_0x150eb3(0x23d)](_0x2d3b37[_0x150eb3(0x1a0)][_0x150eb3(0x290)](_0x3f86c1=>{const _0xad9f1b=_0x150eb3;this[_0xad9f1b(0x162)]&&this[_0xad9f1b(0x29a)]();})),this[_0x150eb3(0x23d)](_0x3f81db[_0x150eb3(0x163)][_0x150eb3(0x2ce)](()=>{const _0x1396bb=_0x150eb3;this[_0x1396bb(0x162)]&&(this[_0x1396bb(0x162)]=!0x1,this[_0x1396bb(0xe8)]());})),this[_0x150eb3(0x23d)](_0x2d3b37[_0x150eb3(0x2f1)][_0x150eb3(0x290)](()=>{const _0x495e41=_0x150eb3;this[_0x495e41(0x255)]&&this[_0x495e41(0x113)]&&this[_0x495e41(0x12e)]&&this[_0x495e41(0x212)][_0x495e41(0x22d)]({'unitId':this[_0x495e41(0x255)],'subUnitId':this[_0x495e41(0x113)],'drawingId':this[_0x495e41(0x12e)]})&&(this[_0x495e41(0x29a)](),this[_0x495e41(0xe8)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x28be26=_0x3721df;this['disposeWithMe'](this[_0x28be26(0x212)]['focus$'][_0x28be26(0x290)](_0x5ad6b5=>{const _0x1c123c=_0x28be26;if(_0x5ad6b5[_0x1c123c(0x19e)]===0x1){let _0x3b00ed=_0x5ad6b5[0x0];if(_0x3b00ed[_0x1c123c(0x132)]===_0x91d30f[_0x1c123c(0x27a)]){let _0x2c8f39=this[_0x1c123c(0x1a7)][_0x1c123c(0xef)](_0x3b00ed[_0x1c123c(0xe5)],_0x3b00ed[_0x1c123c(0x183)],_0x3b00ed[_0x1c123c(0x121)]);if(_0x2c8f39&&_0x51a857(_0x2c8f39[_0x1c123c(0x210)]())){this[_0x1c123c(0x12e)]=_0x3b00ed[_0x1c123c(0x121)],this['_unitId']=_0x3b00ed[_0x1c123c(0xe5)],this[_0x1c123c(0x113)]=_0x3b00ed[_0x1c123c(0x183)],this[_0x1c123c(0x29a)](),this[_0x1c123c(0xe8)]();return;}}}this[_0x1c123c(0x12e)]=void 0x0,this['_unitId']=void 0x0,this[_0x1c123c(0x113)]=void 0x0,this[_0x1c123c(0x29a)]();})),this[_0x28be26(0x23d)](this[_0x28be26(0x212)]['update$'][_0x28be26(0x290)](_0x171bd5=>{const _0x24d650=_0x28be26;if(_0x171bd5[_0x24d650(0x19e)]===0x1){var _0x2d8067;let _0x435fe2=_0x171bd5[0x0],_0x329873=(_0x2d8067=this['_drawingManagerService'][_0x24d650(0x22d)](_0x435fe2))==null?void 0x0:_0x2d8067[_0x24d650(0x132)];_0x329873===_0x91d30f[_0x24d650(0x27a)]&&_0x435fe2[_0x24d650(0x121)]===this[_0x24d650(0x12e)]?(this[_0x24d650(0x29a)](),this[_0x24d650(0xe8)]()):!this[_0x24d650(0x12e)]&&_0x329873===_0x91d30f[_0x24d650(0x27a)]&&this[_0x24d650(0x10a)](_0x435fe2[_0x24d650(0xe5)],_0x435fe2[_0x24d650(0x183)],_0x435fe2[_0x24d650(0x121)]);}})),this[_0x28be26(0x23d)](this['_drawingManagerService'][_0x28be26(0x2aa)][_0x28be26(0x290)](_0x5eb07a=>{const _0x4f6082=_0x28be26;for(let _0x1e175d of _0x5eb07a){let {drawingId:_0x1001fd}=_0x1e175d;if(this[_0x4f6082(0x12e)]===_0x1001fd){this['_reset']();return;}}}));}['_handleConnectedEndpointMove'](_0x218b60,_0x39bf95,_0x46b183,_0x53c126,_0x3cba57){const _0x392a61=_0x3721df;var _0x537738,_0xdf71b1;if(!this[_0x392a61(0x25f)])return;let _0x1f2dd6=this[_0x392a61(0x227)](_0x218b60);if(!_0x1f2dd6)return;let _0x19a9f9=this[_0x392a61(0x2ec)]?this[_0x392a61(0x2ec)]['worldPoint']:_0x39bf95,_0x59990d=this[_0x392a61(0x2ec)]?this[_0x392a61(0x2ec)][_0x392a61(0x300)]:this[_0x392a61(0x1c8)](_0x1f2dd6[_0x392a61(0x27f)],_0x19a9f9),_0x25e8d6;if(this['_currentConnectionTarget']){let _0x3f6aeb=this[_0x392a61(0x212)]['getDrawingByParam']({'unitId':this[_0x392a61(0x2ec)][_0x392a61(0xe5)],'subUnitId':this[_0x392a61(0x2ec)][_0x392a61(0x183)],'drawingId':this[_0x392a61(0x2ec)][_0x392a61(0x1bf)]});if(_0x3f6aeb!=null&&_0x3f6aeb['transform']){let {left:_0x252e05=0x0,top:_0x43f8e3=0x0,width:_0x414ea8=0x0,height:_0x28880b=0x0,angle:_0x2db2a5}=_0x3f6aeb[_0x392a61(0x288)];_0x25e8d6=_0x1218d5({'left':_0x252e05,'top':_0x43f8e3,'width':_0x414ea8,'height':_0x28880b},_0x2db2a5||0x0);}else _0x25e8d6={'left':_0x19a9f9['x'],'top':_0x19a9f9['y'],'width':0x0,'height':0x0};}else _0x25e8d6={'left':_0x19a9f9['x'],'top':_0x19a9f9['y'],'width':0x0,'height':0x0};let _0x196177={'point':_0x19a9f9,'angle':_0x59990d,'bounds':_0x25e8d6},_0x311355=_0x46b183?_0x196177:_0x1f2dd6,_0x3089ef=_0x46b183?_0x1f2dd6:_0x196177,_0x2b58cd=this[_0x392a61(0x25f)][_0x392a61(0x210)](),_0x63e06b=_0x476f7c(_0x311355,_0x3089ef,_0x2b58cd);_0x63e06b&&this['_activeShapeModel'][_0x392a61(0x219)](_0x63e06b);let _0x257003=_0xa851c9(_0x63e06b,_0x2b58cd);_0x257003[_0x392a61(0x111)]!==_0x2b58cd&&this[_0x392a61(0x25f)][_0x392a61(0xb5)](_0x257003[_0x392a61(0x111)]);for(let [_0x3994cf,_0x33ba45]of Object[_0x392a61(0x10b)](_0x257003[_0x392a61(0x257)]))this[_0x392a61(0x25f)][_0x392a61(0x17f)](_0x3994cf,_0x33ba45);this[_0x392a61(0x25f)][_0x392a61(0x229)]({'width':_0x257003[_0x392a61(0x13a)][_0x392a61(0x19c)],'height':_0x257003[_0x392a61(0x13a)]['height']}),_0x53c126['transformByState']({'flipX':_0x257003[_0x392a61(0x13a)][_0x392a61(0x124)],'flipY':_0x257003[_0x392a61(0x13a)][_0x392a61(0x291)],'left':_0x257003[_0x392a61(0x13a)][_0x392a61(0x207)],'top':_0x257003[_0x392a61(0x13a)][_0x392a61(0x2b8)],'width':_0x257003['worldRect'][_0x392a61(0x19c)],'height':_0x257003['worldRect'][_0x392a61(0x193)],'angle':_0x257003[_0x392a61(0x178)]}),_0x53c126[_0x392a61(0x16b)](!0x0);let _0x258993=(_0x537738=(_0xdf71b1=this['_currentConnectionTarget'])==null?void 0x0:_0xdf71b1[_0x392a61(0x1fd)])==null?_0x39bf95:_0x537738;_0x3cba57[_0x392a61(0x2d2)]({'left':_0x258993['x']-_0x170bf6[_0x392a61(0xc5)],'top':_0x258993['y']-_0x170bf6['cxnPointRadius']});}[_0x3721df(0x29d)](_0x3827aa,_0x95019,_0x2c8017,_0x4b3b0b,_0x591288){const _0x22ef71=_0x3721df;var _0x1536a6,_0x50c819,_0x178d24,_0xc68b5a;let _0x3ccbbf=(_0x1536a6=(_0x50c819=this['_currentConnectionTarget'])==null?void 0x0:_0x50c819[_0x22ef71(0x1fd)])==null?_0x3827aa:_0x1536a6,_0x11206b=_0x70c837[_0x22ef71(0x2d7)](_0x95019,_0x3ccbbf,_0x2c8017);_0x4b3b0b[_0x22ef71(0x2d2)]({'flipX':_0x11206b['worldRect'][_0x22ef71(0x124)],'flipY':_0x11206b[_0x22ef71(0x13a)][_0x22ef71(0x291)],'left':_0x11206b[_0x22ef71(0x13a)][_0x22ef71(0x207)],'top':_0x11206b[_0x22ef71(0x13a)][_0x22ef71(0x2b8)],'width':_0x11206b[_0x22ef71(0x13a)][_0x22ef71(0x19c)],'height':_0x11206b[_0x22ef71(0x13a)][_0x22ef71(0x193)],'angle':_0x11206b[_0x22ef71(0x13a)]['angle']});let _0x535462=(_0x178d24=(_0xc68b5a=this[_0x22ef71(0x2ec)])==null?void 0x0:_0xc68b5a[_0x22ef71(0x1fd)])==null?_0x3827aa:_0x178d24;_0x591288['transformByState']({'left':_0x535462['x']-_0x170bf6[_0x22ef71(0xc5)],'top':_0x535462['y']-_0x170bf6['cxnPointRadius']});}[_0x3721df(0x227)](_0x4e04b4){const _0x140978=_0x3721df;if(!this['_unitId']||!this[_0x140978(0x113)])return null;let {shapeId:_0x1d5405,cxnIndex:_0x8c815f}=_0x4e04b4,_0x3be583=this[_0x140978(0x1a7)]['getShapeModel'](this[_0x140978(0x255)],this[_0x140978(0x113)],_0x1d5405);if(!_0x3be583)return null;let _0x2c39ea=this[_0x140978(0x212)][_0x140978(0x22d)]({'unitId':this[_0x140978(0x255)],'subUnitId':this[_0x140978(0x113)],'drawingId':_0x1d5405});if(!(_0x2c39ea!=null&&_0x2c39ea[_0x140978(0x288)]))return null;let {left:_0x190481=0x0,top:_0x16d5aa=0x0,width:_0x2014c7=0x0,height:_0x3782c1=0x0,flipX:_0x1a9e95=!0x1,flipY:_0x1f7381=!0x1,angle:_0x2d3bf0}=_0x2c39ea['transform'];_0x3be583[_0x140978(0x229)]({'width':_0x2014c7,'height':_0x3782c1});let _0x4b347b=_0x3be583[_0x140978(0x20a)]()[_0x140978(0x2a0)](_0x29c486=>_0x29c486['index']===_0x8c815f);if(!_0x4b347b)return null;let _0x127e55=_0x1a9e95?_0x2014c7-_0x4b347b['x']:_0x4b347b['x'],_0x208ddb=_0x1f7381?_0x3782c1-_0x4b347b['y']:_0x4b347b['y'];if(_0x2d3bf0!==0x0&&_0x2d3bf0!=null){let _0x5e0146=_0x2d3bf0*Math['PI']/0xb4,_0x17add3=Math['cos'](_0x5e0146),_0xeafdda=Math[_0x140978(0x122)](_0x5e0146),_0x25c843=_0x2014c7/0x2,_0x31bd7a=_0x3782c1/0x2,_0x1e0c23=_0x127e55-_0x25c843,_0x52e2ed=_0x208ddb-_0x31bd7a;_0x127e55=_0x25c843+_0x1e0c23*_0x17add3-_0x52e2ed*_0xeafdda,_0x208ddb=_0x31bd7a+_0x1e0c23*_0xeafdda+_0x52e2ed*_0x17add3;}_0x127e55+=_0x190481,_0x208ddb+=_0x16d5aa;let _0x448140=_0x4b347b[_0x140978(0x224)]/0xea60;_0x1a9e95&&(_0x448140=0xb4-_0x448140),_0x1f7381&&(_0x448140=-_0x448140),_0x448140+=_0x2d3bf0||0x0,_0x448140=(_0x448140%0x168+0x168)%0x168;let _0x311ee7=_0x1218d5({'left':_0x190481,'top':_0x16d5aa,'width':_0x2014c7,'height':_0x3782c1},_0x2d3bf0||0x0);return{'point':{'x':_0x127e55,'y':_0x208ddb},'angle':_0x448140,'bounds':_0x311ee7};}[_0x3721df(0x1c8)](_0xadd0b4,_0x27f89d){const _0x3ac5cb=_0x3721df;let _0x36fa3a=_0x27f89d['x']-_0xadd0b4['x'],_0x224882=_0x27f89d['y']-_0xadd0b4['y'];return Math[_0x3ac5cb(0x164)](_0x36fa3a)>=Math[_0x3ac5cb(0x164)](_0x224882)?_0x36fa3a>=0x0?0xb4:0x0:_0x224882>=0x0?0x10e:0x5a;}[_0x3721df(0xcb)](){const _0x3094a3=_0x3721df;this[_0x3094a3(0x12e)]=void 0x0,this[_0x3094a3(0x255)]=void 0x0,this[_0x3094a3(0x113)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();}[_0x3721df(0x250)](){const _0x3eed68=_0x3721df;this['_clearShapeConnectorHandlerObjects'](),super[_0x3eed68(0x250)]();}};ur=Y([J(0x1,_0x27b781),J(0x2,_0x3ab9c0),J(0x3,_0x30b385),J(0x4,_0xeac766),J(0x5,_0x44ac9c(_0x2318dd)),J(0x6,_0x44ac9c(Z)),J(0x7,_0x44ac9c(sr))],ur);let dr=class extends _0x3ff889{constructor(_0xb01fd5,_0x4f7164,_0x4f6678){const _0x27bb20=_0x3721df;super(),this[_0x27bb20(0x2be)]=_0xb01fd5,this[_0x27bb20(0x212)]=_0x4f7164,this[_0x27bb20(0x308)]=_0x4f6678,this[_0x27bb20(0xd2)]();}[_0x3721df(0xd2)](){const _0x3bd704=_0x3721df;this[_0x3bd704(0x23d)](this[_0x3bd704(0x2be)][_0x3bd704(0x2c2)][_0x3bd704(0x157)](this[_0x3bd704(0x2be)][_0x3bd704(0x2c2)][_0x3bd704(0x2ea)]()[_0x3bd704(0xdb)],{'handler':(_0x3937da,_0x512adf,_0x3eaf0b)=>{const _0x1d5687=_0x3bd704;var _0x20fca6;let {unitId:_0x1d1c39,subUnitId:_0x1c1a3a,scene:_0x26566d,resourceCollector:_0x822e6b}=_0x512adf,_0x42df0f=(_0x20fca6=this['_drawingManagerService']['getDrawingDataForUnit'](_0x1d1c39))==null?void 0x0:_0x20fca6[_0x1c1a3a];return _0x42df0f==null||_0x42df0f['order'][_0x1d5687(0x1a9)](_0xe799a2=>{const _0x143a02=_0x1d5687;let _0x13dda5=_0x42df0f[_0x143a02(0x1b6)][_0xe799a2];_0x13dda5[_0x143a02(0x132)]===_0x91d30f[_0x143a02(0x27a)]&&!_0x13dda5[_0x143a02(0x13e)]&&this[_0x143a02(0x308)][_0x143a02(0x297)](_0x13dda5,_0x26566d,{'resourceCollector':_0x822e6b});}),_0x3eaf0b(_0x3937da);}}));}};dr=Y([J(0x0,_0x44ac9c(_0x4c49ca)),J(0x1,_0x30b385),J(0x2,_0x44ac9c(X))],dr);let fr=class extends _0x3ff889{constructor(_0x4ebba4,_0x4e1d8a,_0x456edd){const _0x28d250=_0x3721df;super(),this[_0x28d250(0x1fc)]=_0x4ebba4,this['_localeService']=_0x4e1d8a,this[_0x28d250(0x242)]=_0x456edd,this[_0x28d250(0x29c)]();}[_0x3721df(0x29c)](){const _0x5d4414=_0x3721df;this[_0x5d4414(0x23d)](this[_0x5d4414(0x1fc)][_0x5d4414(0x1ad)](_0x450ab3=>{const _0x53606b=_0x5d4414;let _0x59482e,_0x162b2d;if(_0x450ab3['id']===_0x24599f['id']||_0x450ab3['id']===_0x11fd9b['id']||_0x450ab3['id']===_0x2f3418['id']){let _0x31e6b3=_0x450ab3[_0x53606b(0x12c)];_0x59482e=_0x31e6b3[_0x53606b(0xe5)],_0x162b2d=_0x31e6b3['subUnitId'];}!_0x59482e||!_0x162b2d||this[_0x53606b(0x242)][_0x53606b(0x143)]({'workbookTypes':[_0x11551d],'worksheetTypes':[_0x29539e]},_0x59482e,_0x162b2d)||this[_0x53606b(0x242)]['blockExecuteWithoutPermission'](this[_0x53606b(0x11e)]['t']('sheets-shape-ui.permission.editErr'));}));}};fr=Y([J(0x0,_0x44ac9c(_0x27b781)),J(0x1,_0x44ac9c(_0x52ec80)),J(0x2,_0x44ac9c(_0x2fd853))],fr);let pr=class extends _0x3ff889{constructor(_0x4afd7,_0x294b6d,_0x4cdf35,_0x6a102a,_0x2ddc2f,_0x5d3887,_0x38cb43,_0x520ed1,_0x24d1f8,_0x2e0ed9,_0x276854){const _0x1709a5=_0x3721df;super(),this[_0x1709a5(0x205)]=_0x4afd7,this['_sidebarService']=_0x294b6d,this[_0x1709a5(0x2a2)]=_0x4cdf35,this[_0x1709a5(0x1a7)]=_0x6a102a,this[_0x1709a5(0x11e)]=_0x2ddc2f,this[_0x1709a5(0x1fc)]=_0x5d3887,this[_0x1709a5(0x212)]=_0x38cb43,this[_0x1709a5(0x10f)]=_0x520ed1,this[_0x1709a5(0x2e2)]=_0x24d1f8,this[_0x1709a5(0x28f)]=_0x2e0ed9,this[_0x1709a5(0xea)]=_0x276854,q(this,_0x1709a5(0x1da),null),q(this,'_activeShapeInfo',null),q(this,_0x1709a5(0x10c),!0x1),q(this,'_shapeEditPanelVersion',0x0),q(this,'_initializedShapePopupMenu',new Set()),q(this,_0x1709a5(0x134),[]),this[_0x1709a5(0x1af)](),this[_0x1709a5(0x23d)](this[_0x1709a5(0x205)][_0x1709a5(0x1e2)](_0x2c116a[_0x1709a5(0x1a1)])['subscribe'](_0x3ae899=>{const _0xd34bc9=_0x1709a5;if(!_0x3ae899){var _0x3c7886;(_0x3c7886=this[_0xd34bc9(0x1da)])==null||_0x3c7886[_0xd34bc9(0x250)]();return;}this[_0xd34bc9(0x107)](_0x3ae899);})),this[_0x1709a5(0x1aa)](),this[_0x1709a5(0xbb)](),this[_0x1709a5(0x2df)](),this[_0x1709a5(0x23d)](this[_0x1709a5(0xea)]['editingParams$'][_0x1709a5(0x290)](_0x1143d4=>{const _0x5edcc9=_0x1709a5;_0x1143d4&&this[_0x5edcc9(0x1e1)]();}));}[_0x3721df(0x1af)](){const _0x292351=_0x3721df;this[_0x292351(0x2a2)][_0x292351(0x1a6)](In);}[_0x3721df(0xbb)](){const _0x469910=_0x3721df;this['_sheetCanvasPopManagerService'][_0x469910(0x1a5)](_0x91d30f[_0x469910(0x27a)],this[_0x469910(0x18b)][_0x469910(0x12d)](this)),this['_sheetCanvasPopManagerService'][_0x469910(0x1d6)](_0x91d30f['DRAWING_SHAPE'],0x6,0x4);}[_0x3721df(0x2df)](){const _0x3b1cf7=_0x3721df;this[_0x3b1cf7(0x205)][_0x3b1cf7(0x1b4)](_0x2c116a[_0x3b1cf7(0x1a1)])[_0x3b1cf7(0x1a9)](_0x4c0ef1=>this[_0x3b1cf7(0x107)](_0x4c0ef1));}[_0x3721df(0x18b)](_0x2a9a28,_0x1d1589,_0x510283,_0x576b56){const _0x27a4f2=_0x3721df;return[{'label':_0x27a4f2(0x11f),'index':0x0,'commandId':Bn['id'],'commandParams':{'unitId':_0x2a9a28,'subUnitId':_0x1d1589,'drawingId':_0x510283},'disable':_0x576b56===_0x91d30f[_0x27a4f2(0x1e3)]},{'label':_0x27a4f2(0x267),'index':0x1,'commandId':_0xc60b82['id'],'commandParams':{'unitId':_0x2a9a28,'drawings':[{'unitId':_0x2a9a28,'subUnitId':_0x1d1589,'drawingId':_0x510283,'drawingType':_0x576b56}]},'disable':!0x1},{'label':_0x27a4f2(0xd7),'index':0x2,'commandId':zn['id'],'commandParams':{'unitId':_0x2a9a28,'subUnitId':_0x1d1589,'drawingId':_0x510283},'disable':!0x1},{'label':_0x27a4f2(0x2c3),'index':0x3,'commandId':_0x2cbec4['id'],'commandParams':{'unitId':_0x2a9a28,'subUnitId':_0x1d1589,'shapeId':_0x510283,'flipH':!0x0},'disable':!0x1},{'label':_0x27a4f2(0x1c7),'index':0x4,'commandId':_0x2cbec4['id'],'commandParams':{'unitId':_0x2a9a28,'subUnitId':_0x1d1589,'shapeId':_0x510283,'flipV':!0x0},'disable':!0x1},{'label':_0x27a4f2(0x275),'index':0x4,'commandId':_0x5f6cf0['id'],'commandParams':{'unitId':_0x2a9a28,'subUnitId':_0x1d1589,'shapeId':_0x510283,'rotate':0x5a},'disable':!0x1},{'label':'sheets-shape-ui.rotateLeft90','index':0x4,'commandId':_0x5f6cf0['id'],'commandParams':{'unitId':_0x2a9a28,'subUnitId':_0x1d1589,'shapeId':_0x510283,'rotate':-0x5a},'disable':!0x1},{'label':_0x27a4f2(0x22a),'index':0x4,'commandId':_0x177a15['id'],'commandParams':{'unitId':_0x2a9a28,'subUnitId':_0x1d1589,'shapeId':_0x510283},'disable':!0x1}];}[_0x3721df(0x199)](_0x20e6ed,_0xe1a34f,_0x40dc43){const _0x22f20f=_0x3721df;let _0x705145=this[_0x22f20f(0x1a7)][_0x22f20f(0x214)](_0x20e6ed,_0xe1a34f,_0x40dc43),_0x384019=this[_0x22f20f(0x1a7)][_0x22f20f(0x26f)](_0x20e6ed,_0xe1a34f,_0x40dc43);return _0x705145!==void 0x0&&_0x384019!==void 0x0?{'shapeData':_0x384019,'shapeId':_0x40dc43,'shapeType':_0x705145,'unitId':_0x20e6ed,'subUnitId':_0xe1a34f,'version':this[_0x22f20f(0x202)],'disableShapeOption':!0x1}:null;}[_0x3721df(0x107)](_0x484f79){const _0x246396=_0x3721df;if(!_0x484f79)return;let _0x5d25fe=_0x484f79['getUnitId']();this['_renderManagerService'][_0x246396(0x238)](_0x5d25fe)&&!this[_0x246396(0x19d)]['has'](_0x5d25fe)&&(this[_0x246396(0x1b3)](_0x5d25fe),this[_0x246396(0x19d)]['add'](_0x5d25fe));}[_0x3721df(0x1e1)](){const _0x1da9cb=_0x3721df;this[_0x1da9cb(0x134)][_0x1da9cb(0x1a9)](_0x50f176=>_0x50f176[_0x1da9cb(0x250)]()),this[_0x1da9cb(0x134)][_0x1da9cb(0x19e)]=0x0;}['_popupMenuListener'](_0x5e3e9e){const _0x54b3be=_0x3721df;var _0x32da18;let _0x5b6652=(_0x32da18=this['_renderManagerService'][_0x54b3be(0x1f1)](_0x5e3e9e))==null?void 0x0:_0x32da18[_0x54b3be(0x223)],_0x2334df=_0x5b6652==null?void 0x0:_0x5b6652['getTransformerByCreate']();!_0x5b6652||!_0x2334df||(this[_0x54b3be(0x23d)](_0x2334df['createControl$'][_0x54b3be(0x290)](()=>{const _0x5069f2=_0x54b3be;let _0x110002=_0x2334df[_0x5069f2(0x1f8)]();if(this[_0x5069f2(0x1e1)](),this[_0x5069f2(0x10c)]||_0x110002[_0x5069f2(0x30a)]>0x1)return;let _0x1c38f5=_0x110002[_0x5069f2(0x258)]()[_0x5069f2(0x11b)]()[_0x5069f2(0x15c)];if(!_0x1c38f5)return;let _0x281d51=this[_0x5069f2(0x212)][_0x5069f2(0x1f7)](_0x1c38f5['oKey']);if(!_0x281d51||_0x281d51[_0x5069f2(0x132)]!==_0x91d30f[_0x5069f2(0x27a)])return;let {unitId:_0x31bbdf,subUnitId:_0xdbfdcb,drawingId:_0x89d8c8,drawingType:_0x54fe7c}=_0x281d51,_0xea93c9=this[_0x5069f2(0x199)](_0x31bbdf,_0xdbfdcb,_0x89d8c8);if(!_0xea93c9)return;this[_0x5069f2(0x2e2)][_0x5069f2(0x2b6)](_0x133140,!0x0);let _0x2475db=this[_0x5069f2(0x10f)][_0x5069f2(0x2d5)](_0x1c38f5,{'componentKey':wn,'direction':'top-center','offset':[0x0,_0x1d8d74],'extraProps':{'unitId':_0x31bbdf,'subUnitId':_0xdbfdcb,'drawingId':_0x89d8c8,'drawingType':_0x54fe7c,'shapeType':_0xea93c9['shapeType'],'shapeData':_0xea93c9[_0x5069f2(0x15a)]}});this['_disposePopups'][_0x5069f2(0x1d2)](this[_0x5069f2(0x23d)](_0x2475db)),this[_0x5069f2(0x212)][_0x5069f2(0x1d9)]()['find'](_0x2c7fb0=>_0x2c7fb0[_0x5069f2(0xe5)]===_0x31bbdf&&_0x2c7fb0[_0x5069f2(0x183)]===_0xdbfdcb&&_0x2c7fb0[_0x5069f2(0x121)]===_0x89d8c8)||this[_0x5069f2(0x212)][_0x5069f2(0x2d1)]([{'unitId':_0x31bbdf,'subUnitId':_0xdbfdcb,'drawingId':_0x89d8c8}]);})),this[_0x54b3be(0x23d)](_0x2334df[_0x54b3be(0x265)][_0x54b3be(0x290)](()=>{const _0x433ee2=_0x54b3be;this[_0x433ee2(0x1e1)](),this[_0x433ee2(0x2e2)][_0x433ee2(0x2b6)](_0x133140,!0x1),this[_0x433ee2(0x212)][_0x433ee2(0x2d1)](null);})),this[_0x54b3be(0x23d)](_0x2334df['changing$']['subscribe'](()=>{const _0x86d09f=_0x54b3be;this[_0x86d09f(0x1e1)]();})),this[_0x54b3be(0x23d)](_0x2334df['changeStart$']['subscribe'](()=>{const _0x391aaa=_0x54b3be;this[_0x391aaa(0x1e1)]();})));}['_registerOperations'](){const _0x219139=_0x3721df;this[_0x219139(0x23d)](this[_0x219139(0x1fc)]['onCommandExecuted'](_0x5eefef=>{const _0x3345f5=_0x219139;if(_0x5eefef['id']===Bn['id']){let {unitId:_0x158434,subUnitId:_0x49d313,drawingId:_0x134db5}=_0x5eefef[_0x3345f5(0x12c)];this[_0x3345f5(0x202)]+=0x1,this[_0x3345f5(0x2cb)]=this['_getShapeInfo'](_0x158434,_0x49d313,_0x134db5),this['_clearPopups'](),this[_0x3345f5(0xf4)]();}if(_0x5eefef['id']===zn['id']&&(this[_0x3345f5(0x2cb)]=null,this[_0x3345f5(0x145)]()),_0x5eefef['id']===_0x4ea02e['id']){let {unitId:_0x58fd65,subUnitId:_0x409ae9,shapeId:_0x3dee42}=_0x5eefef[_0x3345f5(0x12c)];if(this[_0x3345f5(0x2cb)]&&this[_0x3345f5(0x2cb)]['shapeId']===_0x3dee42){let _0x4180cf=this['_getShapeInfo'](_0x58fd65,_0x409ae9,_0x3dee42);_0x4180cf&&(this[_0x3345f5(0x202)]+=0x1,_0x4180cf[_0x3345f5(0xfc)]=this[_0x3345f5(0x202)],this['_activeShapeInfo']=_0x4180cf,this[_0x3345f5(0x10c)]&&this['_openShapeEditPanel']());}}})),this[_0x219139(0x23d)](this['_drawingManagerService'][_0x219139(0x225)][_0x219139(0x290)](_0x23b771=>{const _0x4547fa=_0x219139;if(this[_0x4547fa(0x10c)]===!0x1)return;if(_0x23b771[_0x4547fa(0x19e)]===0x0){this[_0x4547fa(0x2cb)]=null,this[_0x4547fa(0x145)]();return;}if(_0x23b771[_0x4547fa(0x19e)]===0x1&&_0x23b771[0x0][_0x4547fa(0x132)]===_0x91d30f[_0x4547fa(0x27a)]&&(this[_0x4547fa(0x202)]+=0x1,this[_0x4547fa(0x2cb)]=this[_0x4547fa(0x199)](_0x23b771[0x0][_0x4547fa(0xe5)],_0x23b771[0x0][_0x4547fa(0x183)],_0x23b771[0x0][_0x4547fa(0x121)]),this[_0x4547fa(0x2cb)])){this[_0x4547fa(0xf4)]();return;}let _0x5654ea=_0x23b771[_0x4547fa(0x10d)](_0x33f35f=>_0x33f35f[_0x4547fa(0x132)]===_0x91d30f['DRAWING_SHAPE']);if(_0x23b771[_0x4547fa(0x19e)]>0x1&&_0x5654ea['length']===_0x23b771['length']){if(this[_0x4547fa(0x202)]+=0x1,this[_0x4547fa(0x2cb)]=this[_0x4547fa(0x199)](_0x23b771[0x0][_0x4547fa(0xe5)],_0x23b771[0x0][_0x4547fa(0x183)],_0x23b771[0x0][_0x4547fa(0x121)]),this[_0x4547fa(0x2cb)]){this[_0x4547fa(0xf4)]();return;}}else{if(this[_0x4547fa(0x202)]+=0x1,this[_0x4547fa(0x2cb)]=this[_0x4547fa(0x199)](_0x23b771[0x0][_0x4547fa(0xe5)],_0x23b771[0x0][_0x4547fa(0x183)],_0x23b771[0x0]['drawingId']),this[_0x4547fa(0x2cb)]){this['_activeShapeInfo']['disableShapeOption']=!0x0,this[_0x4547fa(0xf4)]();return;}}this[_0x4547fa(0x145)]();}));}[_0x3721df(0xf4)](){const _0x31f20b=_0x3721df;this[_0x31f20b(0x2cb)]&&(this[_0x31f20b(0x1da)]=this[_0x31f20b(0x144)][_0x31f20b(0x1b7)]({'id':Sn,'header':{'title':this[_0x31f20b(0x11e)]['t'](_0x31f20b(0x222))},'width':0x184,'children':{'label':Sn,...this[_0x31f20b(0x2cb)]},'onClose':()=>{const _0x106e10=_0x31f20b;this['_drawingManagerService'][_0x106e10(0x2d1)](null),this[_0x106e10(0x2e2)]['setContextValue'](_0x133140,!0x1),this[_0x106e10(0x1da)]=null;}}),this[_0x31f20b(0x10c)]=!0x0);}[_0x3721df(0x145)](){const _0x5bdda8=_0x3721df;this[_0x5bdda8(0x10c)]=!0x1,this[_0x5bdda8(0x144)][_0x5bdda8(0x115)](Sn),this[_0x5bdda8(0x1da)]=null,this['_contextService'][_0x5bdda8(0x2b6)](_0x133140,!0x1),this[_0x5bdda8(0x212)][_0x5bdda8(0x2d1)](null);}};pr=Y([J(0x0,_0xeac766),J(0x1,_0x44ac9c(_0x55dc5d)),J(0x2,_0x444ff9),J(0x3,_0x44ac9c(_0x2318dd)),J(0x4,_0x44ac9c(_0x52ec80)),J(0x5,_0x27b781),J(0x6,_0x30b385),J(0x7,_0x44ac9c(_0x3d29b8)),J(0x8,_0x2d72db),J(0x9,_0x3ab9c0),J(0xa,_0x44ac9c(Zn))],pr);let $=class extends _0x358c74{constructor(_0x58c0e5=Vn,_0x232fd3,_0x4262c9,_0x45ebcd,_0x26b19e){const _0x23ddde=_0x3721df;super(),this[_0x23ddde(0x114)]=_0x58c0e5,this['_injector']=_0x232fd3,this[_0x23ddde(0x1fc)]=_0x4262c9,this['_configService']=_0x45ebcd,this[_0x23ddde(0x28f)]=_0x26b19e;let {..._0x350da8}=_0x49cfca({},Vn,this[_0x23ddde(0x114)]);this[_0x23ddde(0xdf)][_0x23ddde(0x1ba)](_0x23ddde(0x1c2),_0x350da8),this[_0x23ddde(0x2b5)]();}[_0x3721df(0x233)](){const _0x4aee9b=_0x3721df;_0x65477a(this[_0x4aee9b(0x13d)],[[pr],[ir],[X],[dr]]);}[_0x3721df(0xd8)](){const _0x198352=_0x3721df;this[_0x198352(0x13d)][_0x198352(0x2f5)](pr)[_0x198352(0x2df)]();}[_0x3721df(0x2fe)](){const _0x2f6b63=_0x3721df;[[sr],[Z],[cr]]['forEach'](_0x2ddaac=>this['_injector'][_0x2f6b63(0x198)](_0x2ddaac)),_0x65477a(this['_injector'],[[cr],[Z]]),this[_0x2f6b63(0x28f)][_0x2f6b63(0x2c1)](_0x2c116a[_0x2f6b63(0x1a1)],[sr]),this[_0x2f6b63(0x28f)][_0x2f6b63(0x2c1)](_0x2c116a[_0x2f6b63(0x1a1)],[er]),this[_0x2f6b63(0x28f)]['registerRenderModule'](_0x2c116a[_0x2f6b63(0x1a1)],[ur]),this[_0x2f6b63(0x28f)][_0x2f6b63(0x2c1)](_0x2c116a['UNIVER_SHEET'],[nr]),this[_0x2f6b63(0x28f)][_0x2f6b63(0x2c1)](_0x2c116a[_0x2f6b63(0x1ae)],[rr]);}[_0x3721df(0x2cf)](){const _0x3841c8=_0x3721df;this[_0x3841c8(0x13d)][_0x3841c8(0x198)]([$n]),this[_0x3841c8(0x13d)]['get']($n);let _0x26d672=this[_0x3841c8(0x13d)];[[pr],[ir],[X],[dr],[Kn],[Zn],[tr],[Q],[fr]][_0x3841c8(0x1a9)](_0x46021e=>_0x26d672[_0x3841c8(0x198)](_0x46021e)),_0x65477a(this[_0x3841c8(0x13d)],[[pr],[ir],[X],[Kn],[Zn],[tr],[Q],[fr]]);}[_0x3721df(0x2b5)](){const _0x2cbecc=_0x3721df;[xn,dn,zn,Bn,Dn,bn][_0x2cbecc(0x1a9)](_0x274da0=>this[_0x2cbecc(0x23d)](this[_0x2cbecc(0x1fc)]['registerCommand'](_0x274da0)));}};q($,_0x3721df(0xca),_0x2c116a[_0x3721df(0x1a1)]),q($,_0x3721df(0xa8),'SHEET_SHAPE_UI_PLUGIN'),q($,'packageName',Ln),q($,_0x3721df(0xfc),Rn),$=Y([_0x32752f(_0x2b9340,_0x4ca5b4,_0x437c52,_0x37e90c),J(0x1,_0x44ac9c(_0x12e678)),J(0x2,_0x27b781),J(0x3,_0x527c54),J(0x4,_0x3ab9c0)],$);export{In as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};
|
|
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};
|