@univerjs-pro/collaboration-client-ui 0.10.3 → 0.10.4-nightly.202508220605
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/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.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/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.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-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.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/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.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-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.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/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.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/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.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-TW.js +1 -1
- package/package.json +18 -18
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3eb26a=_0xf77f;function _0x19ca(){const _0x51c1ee=['610ayVixG','extend','2036456qRYCId','164131ZRafVG','24armqyl','6wWEFbf','5255ScXfNa','7567191HPgnAs','219684FausZb','runOnServer','1012998vaeJLU','5658TcaOwT','3ctTHZu','get','45493740xtvjzK'];_0x19ca=function(){return _0x51c1ee;};return _0x19ca();}(function(_0x38fcec,_0x1efa11){const _0x41fb56=_0xf77f,_0x2d93c3=_0x38fcec();while(!![]){try{const _0x8ce157=-parseInt(_0x41fb56(0x7f))/0x1*(-parseInt(_0x41fb56(0x82))/0x2)+-parseInt(_0x41fb56(0x77))/0x3*(-parseInt(_0x41fb56(0x7c))/0x4)+parseInt(_0x41fb56(0x80))/0x5*(parseInt(_0x41fb56(0x76))/0x6)+-parseInt(_0x41fb56(0x84))/0x7*(-parseInt(_0x41fb56(0x7e))/0x8)+parseInt(_0x41fb56(0x81))/0x9+parseInt(_0x41fb56(0x7a))/0xa*(parseInt(_0x41fb56(0x7d))/0xb)+-parseInt(_0x41fb56(0x79))/0xc;if(_0x8ce157===_0x1efa11)break;else _0x2d93c3['push'](_0x2d93c3['shift']());}catch(_0x538e47){_0x2d93c3['push'](_0x2d93c3['shift']());}}}(_0x19ca,0x87114));const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e['FUniver']{['runOnServer'](_0x59b56e,_0x3212d3,..._0x44c743){const _0x514e8c=_0xf77f;return this['_injector'][_0x514e8c(0x78)](t['RemoteUniscriptService'])[_0x514e8c(0x83)](_0x59b56e,_0x3212d3,{},..._0x44c743);}}function _0xf77f(_0x38876b,_0x4c1862){const _0x19ca56=_0x19ca();return _0xf77f=function(_0xf77f6e,_0x4d0549){_0xf77f6e=_0xf77f6e-0x76;let _0x5811f5=_0x19ca56[_0xf77f6e];return _0x5811f5;},_0xf77f(_0x38876b,_0x4c1862);}e['FUniver'][_0x3eb26a(0x7b)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x3d45(_0x4a5148,_0x273aef){const _0x15ff94=_0x15ff();return _0x3d45=function(_0x3d455f,_0x384791){_0x3d455f=_0x3d455f-0x193;let _0x23b80a=_0x15ff94[_0x3d455f];return _0x23b80a;},_0x3d45(_0x4a5148,_0x273aef);}const _0x3570f5=_0x3d45;(function(_0x5c786b,_0x26d697){const _0x105bb8=_0x3d45,_0x2e0938=_0x5c786b();while(!![]){try{const _0x4f66bf=parseInt(_0x105bb8(0x3be))/0x1*(-parseInt(_0x105bb8(0x2dd))/0x2)+parseInt(_0x105bb8(0x339))/0x3*(parseInt(_0x105bb8(0x281))/0x4)+-parseInt(_0x105bb8(0x35a))/0x5+parseInt(_0x105bb8(0x3f6))/0x6+parseInt(_0x105bb8(0x378))/0x7+parseInt(_0x105bb8(0x392))/0x8+parseInt(_0x105bb8(0x2c2))/0x9*(-parseInt(_0x105bb8(0x1ce))/0xa);if(_0x4f66bf===_0x26d697)break;else _0x2e0938['push'](_0x2e0938['shift']());}catch(_0x299fb0){_0x2e0938['push'](_0x2e0938['shift']());}}}(_0x15ff,0xb6f4c));var We=Object[_0x3570f5(0x2bb)],Ve=(_0x50efbf,_0x1e1a0a,_0x2961f6)=>_0x1e1a0a in _0x50efbf?We(_0x50efbf,_0x1e1a0a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2961f6}):_0x50efbf[_0x1e1a0a]=_0x2961f6,h=(_0x5df8d5,_0x1b5ac7,_0x302943)=>Ve(_0x5df8d5,typeof _0x1b5ac7!=_0x3570f5(0x28a)?_0x1b5ac7+'':_0x1b5ac7,_0x302943);Object['defineProperty'](exports,Symbol[_0x3570f5(0x21f)],{'value':_0x3570f5(0x1a9)});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),d=require('rxjs'),D=require('@univerjs/design'),M=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),p=require('@univerjs/engine-render'),K=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),Ee=require('@univerjs/engine-formula'),$=require('rxjs/operators'),G=require('@univerjs/sheets-ui');var b=function(){return b=Object['assign']||function(_0x45e25d){const _0x1d7213=_0x3d45;for(var _0x5d9347,_0x36c025=0x1,_0x2df5e8=arguments[_0x1d7213(0x367)];_0x36c025<_0x2df5e8;_0x36c025++){_0x5d9347=arguments[_0x36c025];for(var _0x3b5875 in _0x5d9347)Object[_0x1d7213(0x19f)][_0x1d7213(0x249)]['call'](_0x5d9347,_0x3b5875)&&(_0x45e25d[_0x3b5875]=_0x5d9347[_0x3b5875]);}return _0x45e25d;},b['apply'](this,arguments);},Ke=function(_0x3e3d8e,_0x271c5b){const _0x56a982=_0x3570f5;var _0x5f3cfd={};for(var _0x5cab97 in _0x3e3d8e)Object['prototype'][_0x56a982(0x249)]['call'](_0x3e3d8e,_0x5cab97)&&_0x271c5b['indexOf'](_0x5cab97)<0x0&&(_0x5f3cfd[_0x5cab97]=_0x3e3d8e[_0x5cab97]);if(_0x3e3d8e!=null&&typeof Object[_0x56a982(0x1a1)]==_0x56a982(0x2d8)){for(var _0x166640=0x0,_0x5cab97=Object[_0x56a982(0x1a1)](_0x3e3d8e);_0x166640<_0x5cab97[_0x56a982(0x367)];_0x166640++)_0x271c5b['indexOf'](_0x5cab97[_0x166640])<0x0&&Object[_0x56a982(0x19f)][_0x56a982(0x3a4)][_0x56a982(0x342)](_0x3e3d8e,_0x5cab97[_0x166640])&&(_0x5f3cfd[_0x5cab97[_0x166640]]=_0x3e3d8e[_0x5cab97[_0x166640]]);}return _0x5f3cfd;},ge=M[_0x3570f5(0x292)](function(_0x54e7c7,_0x5dfcac){const _0x19ab5c=_0x3570f5;var _0x24947e=_0x54e7c7[_0x19ab5c(0x303)],_0x414192=_0x54e7c7['id'],_0x27abf1=_0x54e7c7[_0x19ab5c(0x354)],_0x34cdf7=_0x54e7c7[_0x19ab5c(0x1ef)],_0x41ddc8=Ke(_0x54e7c7,[_0x19ab5c(0x303),'id',_0x19ab5c(0x354),'extend']),_0x551c3d=_0x19ab5c(0x336)['concat'](_0x414192,'\x20')['concat'](_0x27abf1||'')[_0x19ab5c(0x1d2)](),_0x10c854=M['useRef']('_'[_0x19ab5c(0x2ca)](Je()));return Pe(_0x24947e,''[_0x19ab5c(0x2ca)](_0x414192),{'defIds':_0x24947e[_0x19ab5c(0x240)],'idSuffix':_0x10c854[_0x19ab5c(0x2fc)]},b({'ref':_0x5dfcac,'className':_0x551c3d},_0x41ddc8),_0x34cdf7);});function Pe(_0x470b64,_0x20f3f7,_0x57eb64,_0x19575d,_0x238668){const _0x3cbc9e=_0x3570f5;return M['createElement'](_0x470b64[_0x3cbc9e(0x27a)],b(b({'key':_0x20f3f7},qe(_0x470b64,_0x57eb64,_0x238668)),_0x19575d),(ze(_0x470b64,_0x57eb64)['children']||[])['map'](function(_0x5d4fd3,_0x41b8e9){const _0x4da7c6=_0x3cbc9e;return Pe(_0x5d4fd3,''[_0x4da7c6(0x2ca)](_0x20f3f7,'-')['concat'](_0x470b64[_0x4da7c6(0x27a)],'-')[_0x4da7c6(0x2ca)](_0x41b8e9),_0x57eb64,void 0x0,_0x238668);}));}function qe(_0x5c5862,_0x1e5835,_0x1d79ba){const _0x3cd4dc=_0x3570f5;var _0x2253ff=b({},_0x5c5862[_0x3cd4dc(0x2af)]);_0x1d79ba!=null&&_0x1d79ba[_0x3cd4dc(0x3a5)]&&_0x2253ff['fill']===_0x3cd4dc(0x3a5)&&(_0x2253ff[_0x3cd4dc(0x256)]=_0x1d79ba[_0x3cd4dc(0x3a5)]),_0x5c5862[_0x3cd4dc(0x27a)]===_0x3cd4dc(0x1f3)&&_0x2253ff['id']&&(_0x2253ff['id']=_0x2253ff['id']+_0x1e5835[_0x3cd4dc(0x29b)]),Object[_0x3cd4dc(0x2fd)](_0x2253ff)['forEach'](function(_0x37f5a4){const _0x347ce4=_0x3cd4dc;var _0x565bf9=_0x37f5a4[0x0],_0x3f3764=_0x37f5a4[0x1];_0x565bf9===_0x347ce4(0x1f3)&&typeof _0x3f3764==_0x347ce4(0x39e)&&(_0x2253ff[_0x565bf9]=_0x3f3764[_0x347ce4(0x3b5)](/url\(#(.*)\)/,'url(#$1'[_0x347ce4(0x2ca)](_0x1e5835[_0x347ce4(0x29b)],')')));});var _0x3b8768=_0x1e5835[_0x3cd4dc(0x240)];return!_0x3b8768||_0x3b8768['length']===0x0||(_0x5c5862[_0x3cd4dc(0x27a)]===_0x3cd4dc(0x1b4)&&_0x2253ff[_0x3cd4dc(0x1b2)]&&(_0x2253ff['xlink:href']=_0x2253ff[_0x3cd4dc(0x1b2)]+_0x1e5835[_0x3cd4dc(0x29b)]),Object[_0x3cd4dc(0x2fd)](_0x2253ff)[_0x3cd4dc(0x2b3)](function(_0x1215d){const _0x55c089=_0x3cd4dc;var _0x2a6c14=_0x1215d[0x0],_0x290a6f=_0x1215d[0x1];typeof _0x290a6f=='string'&&(_0x2253ff[_0x2a6c14]=_0x290a6f[_0x55c089(0x3b5)](/url\(#(.*)\)/,_0x55c089(0x250)[_0x55c089(0x2ca)](_0x1e5835[_0x55c089(0x29b)],')')));})),_0x2253ff;}function ze(_0x5b6058,_0x370f86){const _0x471705=_0x3570f5;var _0x5de049,_0x4a2241=_0x370f86[_0x471705(0x240)];return!_0x4a2241||_0x4a2241[_0x471705(0x367)]===0x0?_0x5b6058:_0x5b6058[_0x471705(0x27a)]===_0x471705(0x3da)&&(!((_0x5de049=_0x5b6058[_0x471705(0x1b1)])===null||_0x5de049===void 0x0)&&_0x5de049[_0x471705(0x367)])?b(b({},_0x5b6058),{'children':_0x5b6058[_0x471705(0x1b1)][_0x471705(0x28e)](function(_0x365f0a){const _0x4c40ff=_0x471705;return typeof _0x365f0a[_0x4c40ff(0x2af)]['id']==_0x4c40ff(0x39e)&&_0x4a2241&&_0x4a2241[_0x4c40ff(0x2bd)](_0x365f0a['attrs']['id'])?b(b({},_0x365f0a),{'attrs':b(b({},_0x365f0a[_0x4c40ff(0x2af)]),{'id':_0x365f0a[_0x4c40ff(0x2af)]['id']+_0x370f86[_0x4c40ff(0x29b)]})}):_0x365f0a;})}):_0x5b6058;}function Je(){const _0x5156c3=_0x3570f5;return Math[_0x5156c3(0x406)]()[_0x5156c3(0x3c3)](0x24)[_0x5156c3(0x389)](0x2,0x8);}ge['displayName']='UniverIcon';var Ze={'tag':_0x3570f5(0x2ef),'attrs':{'xmlns':_0x3570f5(0x2c0),'fill':'none','viewBox':_0x3570f5(0x19d),'width':_0x3570f5(0x1e5),'height':_0x3570f5(0x1e5)},'children':[{'tag':'g','attrs':{'clipPath':_0x3570f5(0x302)},'children':[{'tag':_0x3570f5(0x2ea),'attrs':{'stroke':_0x3570f5(0x3b0),'d':_0x3570f5(0x298),'strokeLinecap':'round','strokeLinejoin':_0x3570f5(0x1bd),'strokeWidth':1.2}}]},{'tag':_0x3570f5(0x3da),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3570f5(0x416)},'children':[{'tag':_0x3570f5(0x2ea),'attrs':{'fill':_0x3570f5(0x1c6),'d':_0x3570f5(0x1de)}}]}]}],'defIds':[_0x3570f5(0x416)]},we=M['forwardRef'](function(_0xe727f7,_0x3b45d8){const _0xd4dced=_0x3570f5;return M[_0xd4dced(0x371)](ge,Object[_0xd4dced(0x21a)]({},_0xe727f7,{'id':'off-line-icon','ref':_0x3b45d8,'icon':Ze}));});we['displayName']=_0x3570f5(0x259);var Qe={'tag':'svg','attrs':{'xmlns':_0x3570f5(0x2c0),'fill':_0x3570f5(0x351),'viewBox':'0\x200\x2017\x2016','width':_0x3570f5(0x1e5),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3570f5(0x1fa)},'children':[{'tag':_0x3570f5(0x2ea),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x3570f5(0x1bd),'strokeLinejoin':_0x3570f5(0x1bd),'strokeWidth':1.2}}]},{'tag':_0x3570f5(0x3da),'attrs':{},'children':[{'tag':_0x3570f5(0x1fd),'attrs':{'id':_0x3570f5(0x35f)},'children':[{'tag':_0x3570f5(0x2ea),'attrs':{'fill':'white','d':_0x3570f5(0x1de),'transform':_0x3570f5(0x1dd)}}]}]}],'defIds':[_0x3570f5(0x35f)]},Ae=M['forwardRef'](function(_0x202c67,_0x3dac92){const _0x2413a2=_0x3570f5;return M[_0x2413a2(0x371)](ge,Object['assign']({},_0x202c67,{'id':'on-line-icon','ref':_0x3dac92,'icon':Qe}));});Ae[_0x3570f5(0x3dd)]=_0x3570f5(0x369);function et(_0x590a39){const _0x2cc803=_0x3570f5;switch(_0x590a39){case u[_0x2cc803(0x290)]['OFFLINE']:return'collabStatus.offline';case u[_0x2cc803(0x290)][_0x2cc803(0x418)]:return _0x2cc803(0x417);case u[_0x2cc803(0x290)]['FETCH_MISS']:return _0x2cc803(0x2db);case u[_0x2cc803(0x290)][_0x2cc803(0x1bc)]:return'collabStatus.notCollab';case u['CollaborationStatus'][_0x2cc803(0x1f2)]:case u['CollaborationStatus'][_0x2cc803(0x251)]:return _0x2cc803(0x3f3);case u['CollaborationStatus'][_0x2cc803(0x1a7)]:case u[_0x2cc803(0x290)]['PENDING']:return _0x2cc803(0x2a4);}}function _0x15ff(){const _0xc43db9=['measureText','IDocClipboardService','attrs','_onCursorDelete','pipe','fillText','forEach','_toggleOnline','_transformUndoRedoStack','SheetsSelectionsService','_logService','jsx','mergeOverrideWithDependencies','clearInterval','defineProperty','ILogService','includes','purple.300','getMember','http://www.w3.org/2000/svg','_assignedColors','45sAMGXX','blue.400','loadOfflineData','_setupBeforeClosingHandler','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_registerDependencies','WebSocketService','startRow','concat','CollaborationUIEventId','_createSocketURL','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_unitOnClients','endColumn','href','RegularPolygon','handleInsertCol','_entities','CollaborationSessionService','_handleHover','arc','_notificationService','function','CommandType','disableLocalCache','collabStatus.fetchMiss','debounceTime','4YzoeJk','IUIPartsService','permission.content','LICENSE_EXPORT_SIZE_EXCEEDED','roomMembers','YUUMI_CONNECTOR_URL_NOT_FOUND','TEXT','name','APPLY_REVISION_CONFILICT','deserializeRangeWithSheet','_cursors','getUnitId','getDocRanges','path','ISocketService','univer-flex\x20univer-items-center','transformRemoteChangeset','then','svg','runId','_color','skeleton','getParam','_scene','Injector','entityInit$','getRangePointData','_online','CollaborationEvent','RichTextEditingMutation','_configService','current','entries','labelPosition','_draw','OTHER_CLIENTS_EDITING','eventID','url(#off-line-icon_clip0_910_343)','icon','LOCAL_CACHE_INTERVAL','height','toRgbString','setAlpha','ColorKit','_transformHistoryAndStateStack','find','getColor','_localStorageService','_commandService','InsertRangeMoveRightCommandId','IURLService','Plugin','registerBeforeClose','selections','sessionStatus$','_syncEditingCollabCursorService','debounce','delete','unsubscribe','jsxs','_renderManagerService','SetSelectionsOperation','DisposableCollection','_colorAssignService','params','getStateCache','transformByState','SessionStatus','CLOSE_ROOM','_initResize','WebURLService','_scheduleHeartbeat','useDependency','ITransformService','LICENSE_IMPORT_SIZE_EXCEEDED','_onCursorUpdate','black','session.connection-failed','DataLoaderService','SOCKET_FAILED_RETRY','_config','_localeService','_session','search','generateRandomId','_registerRenderDependencies','setActiveRange','setParam','_revisionService','univerjs-icon\x20univerjs-icon-','handleMoveRange','onPointerLeave$','849MeIMJW','get','_labelPosition','width','_getSaveTimeout','transform','data','range','INVALID_ARGUMENT','call','EMAIL_HAS_BEEN_BOUND','Failed','Shape','switchMap','LocaleService','searchParams','key','_docTransformSelectionsService','some','RemoteUniscriptService','disposeWithMe','registerRefRange','ISnapshotServerService','_cursorShapes','none','cursorInfo','InsertColCommandId','className','flatMap','_disabled','getUniverSheetInstance','sessionTicket','_univerInstanceService','1980055oPJPWa','BehaviorSubject','unshift','throttleTime','getCoordByCell','on-line-icon_clip0_910_349','getTypeOfUnitDisposed$','getConfig','_handleHeartbeatEvent','MoveRangeCommandId','sheetID','getMergeData','_hovered','length','IRemoteInstanceService','OnLineIcon','_cursor','[RemoteUniscriptService]:\x20no\x20focused\x20unit','TOO_MANY_REQUESTS','getColorFromTheme','DOC_RANGE_TYPE','collab-text-anchor-','OFFLINE','createElement','rgba(255,\x20255,\x20255,\x200.01)','ENSURE_SNAPSHOT_EXECUTION','_range','DocSkeletonManagerService','_injector','getTypeOfUnitAdded$','6860182ZpugCH','_drawAnchor','_drawRectRange','onRendered','getAncestorScale','deepClone','registerDependencies','HTTPService','merge','status$','restore','_updateSubUnitFromURLParams','event$','UNDEFINED','IUniverInstanceService','_updateCollabCursors','beginPath','substring','_uiPartsService','drawWith','_anchor','isEditing','ticket','CHANGESET_REVISION_CONFILICT','pushState','executeCommand','1640168lKZEpu','executionId','CollaborationDataLoaderController','hovered','yellow.400','UniverCollaborationClientUIPlugin','color','_setupSubUnitSync','SheetSkeletonManagerService','serializeRangeWithSheet','_refRangeService','APPLY_NON_SEQUENTIAL_REVISION','string','lineTo','handleIRemoveRow','_cachedData','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','YUUMI_TABLE_NOT_FOUND_IN_UNIT','propertyIsEnumerable','colorChannel1','LOCAL_CACHE_INTERVAL_KEY','_roomMembers$','_saveCache','_colorIndex','handleDeleteRangeMoveLeft','_beforeCloseService','MessageType','getSkeleton','_document','handleInsertRangeMoveRight','currentColor','EMAIL_VERIFY_CODE_MISMATCH','body','uni.network.url-service','UNAUTHENTICATED','replace','IMessageService','getVpScrollXYInfoByPosToVp','getUnitStatus$','connectInjector','fillStyle','_initEntityListener','BrowserCollaborationSocketService','init','214759GVsKcA','PY_RUNTIME_SCRIPT_ERROR','urlChange$','_anchorDot','_initCommandExecutedListener','toString','INVITE_CODE_ALREADY_BOUND','JOIN_ROOM_FAILED','setShapeProps','show','Rect','_handleEvent','DeleteRangeMoveUpCommandId','startColumn','getActiveRange','Disposable','add','getRelativeToViewportCoord','_eventUnsubscribe','[CollaborationDataLoaderController]','Workbook','collab-client.tooltip.reconnect','YUUMI_SUBSCRIPTION_NOT_FOUND','getViewport','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_instanceService','_docTransformIMECacheService','application/json','defs','COLORS','DocCollaborationEntity','displayName','_sheetSkeletonManagerService','INVITE_CODE_REQUIRED','CollaborationUIEventService','getItem','NOT_FOUND','#FFF','subscribe','MemberService','YUUMI_URL_COL_OUT_OF_RANGE','saveOfflineData','addObject','_cursorInfo$','updateOfflineData','_docSyncEditingCollabCursorService','SNAPSHOT_INVALID_SNAPSHOT','getFocusedUnit','m1Prime','backgroundColor','getLocalCacheKey','_removeCollabCursors','_render','collabStatus.syncing','LOGIN_FAILED','_updateLocalCursor','2494584JqTVbA','getCollabEntity$','collaboration.single-unit.warning','top','setUndoRedoMutationParamsCache','SUBMIT_CHANGESET_TIMEOUT','PERMISSION_DENIED','isActive','setInterval','createInstance','runRefRangeMutations','WECHAT_HAS_BEEN_BOUND','_docStateChangeManagerService','_init','saveTaskMap','MOBILE_HAS_BEEN_BOUND','random','getCollabCursors$','_hover','_handleLeaveEvent','UniverInstanceType','code','column','evenodd','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_collabCursorController','unitId','_startDocCollabCursor','_onRefRangeChange','wsSessionTicketUrl','RevisionService','_initDependencies','off-line-icon_clip0_910_343','collabStatus.conflict','CONFLICT','currentTheme$','getSheetId','set','sheetId','isTransformMutationsWithChangesetSuccess','_themeService','_shapes','_ensureSubject','textRanges','Tools','transformSelections','_httpService','session.collaboration-timeout','cursorInfo$','LICENSE_MAX_UNITS_EXCEEDED','0\x200\x2016\x2016','_handleJoinEvent','prototype','CONNECTOR_DATA_TOO_LARGE','getOwnPropertySymbols','IBeforeCloseService','redoState','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','touchDependencies','session.will-retry','SYNCED','DocSelectionManagerService','Module','transformMutationsWithChangeset','collaboration-client.offline-data-not-saved','ThemeService','_collaborationUIEventService','IConfigService','LICENSE_DISTRO_REJECTED','getMemberID','children','xlink:href','_messageService','use','unload','_docSkeletonManagerService','onTransformChange$','doc.mutation.rich-text-editing','Inject','fromEvent','subscribeEvent','NOT_COLLAB','round','VIEW_MAIN','engine','YUUMI_ALL_TABLES_IS_INVALID','_doCreateSocket','getValue','ALREADY_EXISTS','getCurrentUnitForType','_scheduleClearOtherTimer','white','getOffsetConfig','_entityInit$','UniverCollaborationClientPlugin','ONLINE','location','dispose','USER_NOT_INVITED_CODE','1012290GYsnQZ','contains','roomMembers$','InsertRowCommandId','trim','registerComponent','setItem','DesktopCollaborationStatusDisplayController','NodePositionConvertToCursor','transformStateCache','getCurrent','handleDeleteRangeMoveUp','getRenderById','TEXT_RANGE_LAYER_INDEX','DEFAULT_WS_SESSION_TICKET_URL','translate(.97)','M0\x200H16V16H0z','_initEvent','APPLY_DUPLICATED','row','_saveTaskMap','RefRangeService','moveTo','1em','m2Prime','setConfig','subunit','result','min','_collaborationController','getSheetBySheetId','RemoveRowCommandId','has','extend','ILocalCacheService','currentSkeleton$','AWAITING','mask','history','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','EffectRefRangId','NodePositionConvertToRectRange','MOBILE_VERIFY_CODE_MISMATCH','requireSession','url(#on-line-icon_clip0_910_349)','UNIVER_SHEET','getActiveSheet','clipPath','addEventListener','INVITE_CODE_HAS_BEEN_UES','SHEET_VIEWPORT_KEY','getCurrentSelections','USERS_LEAVE','_heartbeatTimer','Warning','_docClipboardService','createSocket','NO_OTHER_CLIENTS_EDITING','editingUnit','YUUMI_RATE_OVER_LIMIT','findNodePositionByCharIndex','_memberService','_getScale','asObservable','IRenderManagerService','InsertRangeMoveDownCommandId','RxDisposable','isTransformMutationFailure','useCallback','memberID','handleInsertRangeMoveDown','_localCacheService','getOwnPropertyDescriptor','save','useObservable','triggerDblclick','assign','RemoveColCommandId','with','_id','takeUntil','toStringTag','permission.title','INTERNAL_ERROR','text','red.300','Rectangle','mutations','DocStateChangeManagerService','UNRECOGNIZED','fromEventSubject','split','size','isArray','values','_clearOtherTimers','_initStatusComponent','_drawTextRange','YUUMI_UNABLE_LOAD_URL','addObjects','registerRenderModule','getSheetObject','SNAPSHOT_HAS_BEEN_REMOVED','loadUnit','storage','font','ranges','_collabSessionService','onPointerEnter$','clearTimeout','setStateCache','removeParam','activeSheet$','onCommandExecuted','defIds','_urlService','UPDATE_CURSOR','_lastPointer','selection','CollaborationSocketService','exhaustSavingTask','onPointerMove$','replaceDocRanges','hasOwnProperty','send','TRANSFORM_CHANGE_OBSERVABLE_TYPE','Unknown\x20user','Subject','newValue','UNIVER_DOC','url(#$1','AWAITING_WITH_PENDING','collab-text-range-','mapTo','CollaborationController','YUUMI_ASYNCIO_CANCELLED','fill','undoState','shareReplay','OffLineIcon','handleIRemoveCol','ICommandService','_hideTimer','APPLY_REJECT','_refreshCollabCursors','_getSheetObject','unitID','_getAnchorBounding','_initStatusListener','transformMutation','_docTransformStateCacheService','hide','...','YUUMI_NO_CUBOID_FOR_QUESTION','UnitStatus','onMouseMove','_updateURLWithCurrentState','handleInsertRow','error','source','getUndoRedoMutationParamsCache','Vector2','_name','_unitStatus','push','collaboration-client-ui.config','_send','disposeUnit','transformIMECache','_toggleOffline','reconnect','closePath','tag','collaboration.closeRoom','div','ILocalStorageService','addHandlerCallback','createIdentifier','Error','6788dTSKYb','next','_textBubble','debug','_dataLoaderService','_backgroundColor','bottom','_status$','replaceState','symbol','setTimeout','_transformService','_removeClearOtherTimer','map','focused$','CollaborationStatus','_startSheetCollabCursor','forwardRef','dispose$','_selfUnitIDs','_transformPreviousActiveRange','docStateChange$','type','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','DocIMEInputManagerService','complete','idSuffix','collab-rect-range-','APPLY_PERMISSION_DENIED','stringify','_collabCursorState$','INotificationService','makeDirty','_context','toDisposable','collabStatus.synced','assignAColorForMemberID','actions','_scheduleSaving','collabCursorState$','from','syncEditingCollabCursor','COMPLETION_FINISHED','fillRule'];_0x15ff=function(){return _0xc43db9;};return _0x15ff();}function tt(_0x4d390b){const _0x454b2c=_0x3570f5,{status$:_0x14e489}=_0x4d390b,_0x4a009e=O[_0x454b2c(0x218)](_0x14e489,u['CollaborationStatus'][_0x454b2c(0x1bc)]),_0x3dbc44=O[_0x454b2c(0x325)](a[_0x454b2c(0x347)]),_0x33608d=O[_0x454b2c(0x325)](u['CollaborationSessionService']),_0x129d85=_0x4a009e!==u[_0x454b2c(0x290)][_0x454b2c(0x370)],_0x166406=_0x3dbc44['t'](et(_0x4a009e)),_0x41e685=_0x129d85?P[_0x454b2c(0x2b8)](Ae,{}):P[_0x454b2c(0x2b8)](we,{}),_0x26f25d=M[_0x454b2c(0x212)](()=>{const _0x3df01b=_0x454b2c;_0x129d85||_0x33608d[_0x3df01b(0x278)]();},[_0x129d85,_0x33608d]);function _0x2097de(){const _0x5b3043=_0x454b2c;return P[_0x5b3043(0x318)](_0x5b3043(0x27c),{'className':_0x5b3043(0x2ec),'onClick':_0x26f25d,'children':[P[_0x5b3043(0x2b8)](_0x5b3043(0x27c),{'className':D['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x129d85,'univer-text-red-500':!_0x129d85}),'children':_0x41e685}),P['jsx'](_0x5b3043(0x27c),{'className':_0x5b3043(0x3a2),'children':_0x166406})]});}return _0x129d85?_0x2097de():P[_0x454b2c(0x2b8)](D['Tooltip'],{'title':_0x3dbc44['t'](_0x454b2c(0x3d3)),'children':_0x2097de()});}var st=Object[_0x3570f5(0x216)],it=(_0x2a6b8a,_0x266997,_0x43e929,_0x1d29a0)=>{for(var _0x56bb87=_0x1d29a0>0x1?void 0x0:_0x1d29a0?st(_0x266997,_0x43e929):_0x266997,_0xd92142=_0x2a6b8a['length']-0x1,_0x240ace;_0xd92142>=0x0;_0xd92142--)(_0x240ace=_0x2a6b8a[_0xd92142])&&(_0x56bb87=_0x240ace(_0x56bb87)||_0x56bb87);return _0x56bb87;},V=(_0x3d69dc,_0x4bb75e)=>(_0x923ebe,_0x4f6a72)=>_0x4bb75e(_0x923ebe,_0x4f6a72,_0x3d69dc);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x3570f5(0x3cd)]{constructor(_0x10d1bd,_0x14a214,_0x101ce0,_0x1bc10e){const _0x4190e0=_0x3570f5;super(),h(this,_0x4190e0(0x288),new d[(_0x4190e0(0x35b))](u[_0x4190e0(0x290)][_0x4190e0(0x1bc)])),(this[_0x4190e0(0x359)]=_0x10d1bd,this[_0x4190e0(0x376)]=_0x14a214,this['_collaborationController']=_0x101ce0,this[_0x4190e0(0x38a)]=_0x1bc10e,this[_0x4190e0(0x22e)](),this[_0x4190e0(0x262)]());}[_0x3570f5(0x262)](){const _0x3d9b13=_0x3570f5;this[_0x3d9b13(0x34d)](this['_univerInstanceService'][_0x3d9b13(0x28f)][_0x3d9b13(0x2b1)](d['switchMap'](()=>{const _0x3cd8d7=_0x3d9b13,_0x5c0faa=this[_0x3cd8d7(0x359)][_0x3cd8d7(0x3ed)]();return _0x5c0faa?this[_0x3cd8d7(0x1eb)][_0x3cd8d7(0x3f7)](_0x5c0faa[_0x3cd8d7(0x2e8)]()):d['of'](null);}),d[_0x3d9b13(0x346)](_0x50a954=>_0x50a954?_0x50a954[_0x3d9b13(0x381)]:d['of'](u[_0x3d9b13(0x290)][_0x3d9b13(0x1bc)])))['subscribe'](_0xe43647=>{const _0x5335cc=_0x3d9b13;this[_0x5335cc(0x288)][_0x5335cc(0x282)](_0xe43647);}));}[_0x3570f5(0x22e)](){const _0x4436d6=_0x3570f5;this[_0x4436d6(0x34d)](this[_0x4436d6(0x38a)][_0x4436d6(0x1d3)](O['BuiltInUIPart']['HEADER_MENU'],()=>O[_0x4436d6(0x3b9)](nt({'status$':this['_status$'][_0x4436d6(0x20d)]()}),this[_0x4436d6(0x376)])));}},exports[_0x3570f5(0x1d5)]=it([V(0x0,a[_0x3570f5(0x386)]),V(0x1,a[_0x3570f5(0x1b9)](a['Injector'])),V(0x2,a['Inject'](u[_0x3570f5(0x254)])),V(0x3,O[_0x3570f5(0x2de)])],exports[_0x3570f5(0x1d5)]);function nt(_0x2cf911){const {status$:_0x456c2e}=_0x2cf911;return function(){const _0x2c7c81=_0x3d45;return P[_0x2c7c81(0x2b8)](tt,{'status$':_0x456c2e});};}const me=a[_0x3570f5(0x27f)](_0x3570f5(0x3b3));var rt=Object[_0x3570f5(0x216)],ot=(_0x3d8d7a,_0x7ee834,_0x46799f,_0x3e1fdd)=>{for(var _0x2e4075=_0x3e1fdd>0x1?void 0x0:_0x3e1fdd?rt(_0x7ee834,_0x46799f):_0x7ee834,_0x310848=_0x3d8d7a['length']-0x1,_0x19c388;_0x310848>=0x0;_0x310848--)(_0x19c388=_0x3d8d7a[_0x310848])&&(_0x2e4075=_0x19c388(_0x2e4075)||_0x2e4075);return _0x2e4075;},k=(_0x2eee0e,_0x25f01d)=>(_0x26c4c7,_0x5208ef)=>_0x25f01d(_0x26c4c7,_0x5208ef,_0x2eee0e);exports[_0x3570f5(0x394)]=class extends a[_0x3570f5(0x210)]{constructor(_0xf3815f,_0x8ad884,_0x3264b7,_0xeaec21,_0x3252f3){const _0x41247f=_0x3570f5;super(),this[_0x41247f(0x241)]=_0xf3815f,this[_0x41247f(0x2b7)]=_0x8ad884,this[_0x41247f(0x30d)]=_0x3264b7,this[_0x41247f(0x285)]=_0xeaec21,_0x3252f3?_0x3252f3==null||_0x3252f3['whenReady']()[_0x41247f(0x2ee)](()=>this['_init']()):(this[_0x41247f(0x2b7)][_0x41247f(0x284)]('[CollaborationDataLoaderController]',_0x41247f(0x40e)),this[_0x41247f(0x403)]());}async[_0x3570f5(0x403)](){const _0x136b35=_0x3570f5,_0x5b354a=this[_0x136b35(0x241)][_0x136b35(0x2f3)]('unit'),_0x26f0b3=this[_0x136b35(0x241)][_0x136b35(0x2f3)](_0x136b35(0x297)),_0x21d6d5=this['_urlService'][_0x136b35(0x2f3)]('subunit');if(!_0x5b354a||!_0x26f0b3){this[_0x136b35(0x2b7)][_0x136b35(0x284)](_0x136b35(0x3d1),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x2772b7=await this['_dataLoaderService'][_0x136b35(0x235)](_0x5b354a,Number(_0x26f0b3),_0x21d6d5);_0x2772b7&&_0x2772b7 instanceof a[_0x136b35(0x3d2)]&&this[_0x136b35(0x399)](_0x2772b7);}async[_0x3570f5(0x399)](_0x3e2170){const _0x3ec57a=_0x3570f5;await this['_updateSubUnitFromURLParams'](_0x3e2170),_0x3e2170[_0x3ec57a(0x23e)][_0x3ec57a(0x2b1)](d['takeUntil'](this['dispose$']))[_0x3ec57a(0x3e4)](_0x232b8b=>{const _0x5eb67c=_0x3ec57a;_0x232b8b&&this[_0x5eb67c(0x26a)](_0x232b8b);}),this['_urlService'][_0x3ec57a(0x3c0)][_0x3ec57a(0x2b1)](d[_0x3ec57a(0x21e)](this[_0x3ec57a(0x293)]))[_0x3ec57a(0x3e4)](()=>this['_updateSubUnitFromURLParams'](_0x3e2170));}['_updateURLWithCurrentState'](_0x3b931d,_0x538eb8=!0x1){const _0x4eaa5c=_0x3570f5,_0x2e1809=this[_0x4eaa5c(0x241)]['getParam'](_0x4eaa5c(0x1e8));_0x3b931d['getSheetId']()!==_0x2e1809&&this['_urlService'][_0x4eaa5c(0x334)](_0x4eaa5c(0x1e8),_0x3b931d[_0x4eaa5c(0x41a)](),_0x538eb8);}async[_0x3570f5(0x383)](_0x5ed426){const _0x57760d=_0x3570f5;var _0x1591aa;const _0x3669d6=this[_0x57760d(0x241)][_0x57760d(0x2f3)]('subunit');if(!_0x3669d6||!_0x5ed426[_0x57760d(0x1ec)](_0x3669d6)){const _0x455895=_0x5ed426['getUnhiddenWorksheets']()[0x0],_0x5a6415=_0x5ed426[_0x57760d(0x1ec)](_0x455895);if(!_0x5a6415)return;this[_0x57760d(0x26a)](_0x5a6415,!0x0),await this[_0x57760d(0x30d)][_0x57760d(0x391)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x5ed426[_0x57760d(0x2e8)](),'subUnitId':_0x455895});return;}((_0x1591aa=_0x5ed426[_0x57760d(0x1fc)]())==null?void 0x0:_0x1591aa[_0x57760d(0x41a)]())!==_0x3669d6&&await this[_0x57760d(0x30d)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x5ed426[_0x57760d(0x2e8)](),'subUnitId':_0x3669d6});}},exports['CollaborationDataLoaderController']=ot([k(0x0,me),k(0x1,a[_0x3570f5(0x2bc)]),k(0x2,a[_0x3570f5(0x25b)]),k(0x3,a['Inject'](u[_0x3570f5(0x32b)])),k(0x4,a['Optional'](Xe[_0x3570f5(0x368)]))],exports[_0x3570f5(0x394)]);var at=Object['getOwnPropertyDescriptor'],ct=(_0x45475d,_0x2fb5b7,_0x292116,_0x4fa988)=>{const _0x18297a=_0x3570f5;for(var _0x1d397d=_0x4fa988>0x1?void 0x0:_0x4fa988?at(_0x2fb5b7,_0x292116):_0x2fb5b7,_0x72728a=_0x45475d[_0x18297a(0x367)]-0x1,_0x2f346c;_0x72728a>=0x0;_0x72728a--)(_0x2f346c=_0x45475d[_0x72728a])&&(_0x1d397d=_0x2f346c(_0x1d397d)||_0x1d397d);return _0x1d397d;},be=(_0x476e46,_0x43f80b)=>(_0x1ea66a,_0x14073c)=>_0x43f80b(_0x1ea66a,_0x14073c,_0x476e46);let ue=class extends a[_0x3570f5(0x210)]{constructor(_0x425e0b,_0x3104a2){const _0x50dbc2=_0x3570f5;super(),this[_0x50dbc2(0x205)]=_0x425e0b,this['_imageIoService']=_0x3104a2,this['_init']();}['_init'](){const _0x1fb2a7=_0x3570f5,_0x5a4f35=this;this[_0x1fb2a7(0x34d)](this[_0x1fb2a7(0x205)]['addClipboardHook']({'onBeforePasteImage':async _0x33a921=>{const _0xed1e07=_0x1fb2a7,_0x3ef2bc=await _0x5a4f35['_imageIoService']['saveImage'](_0x33a921);return _0x3ef2bc?{'source':_0x3ef2bc[_0xed1e07(0x26d)],'imageSourceType':_0x3ef2bc['imageSourceType']}:null;}}));}};ue=ct([be(0x0,E[_0x3570f5(0x2ae)]),be(0x1,Ge['IImageIoService'])],ue);const Oe=[_0x3570f5(0x2be),'jiqing.500','green.600',_0x3570f5(0x223),_0x3570f5(0x2c3),_0x3570f5(0x396)];class Ce extends a[_0x3570f5(0x3cd)]{constructor(){const _0x352305=_0x3570f5;super(...arguments),h(this,_0x352305(0x2c1),new Map()),h(this,_0x352305(0x3a9),0x0);}['assignAColorForMemberID'](_0x22a737){const _0x4d6063=_0x3570f5;if(this[_0x4d6063(0x2c1)][_0x4d6063(0x1ee)](_0x22a737))return this['_assignedColors'][_0x4d6063(0x33a)](_0x22a737);const _0x229046=Oe[this[_0x4d6063(0x3a9)]];return this[_0x4d6063(0x3a9)]=(this[_0x4d6063(0x3a9)]+0x1)%Oe[_0x4d6063(0x367)],this[_0x4d6063(0x2c1)][_0x4d6063(0x41b)](_0x22a737,_0x229046),_0x229046;}}function ye(_0x2dd09e){const _0x4e3bd9=_0x3570f5;let _0x5a71d1='';for(const _0x424178 of _0x2dd09e){const {startOffset:_0x25da7e,endOffset:_0x2e6600,isActive:_0x451dea,rangeType:_0x4d203e,segmentId:_0x376545,segmentPage:_0x3322cc}=_0x424178;_0x5a71d1[_0x4e3bd9(0x367)]&&(_0x5a71d1+=','),_0x5a71d1+=_0x25da7e+':'+_0x2e6600+':'+(_0x451dea?'1':'0')+':'+_0x4d203e+':'+_0x376545+':'+_0x3322cc;}return _0x5a71d1;}function lt(_0x2509b7){const _0x12df70=_0x3570f5,_0x171865=_0x2509b7[_0x12df70(0x229)](','),_0x2dfb5a=[];for(const _0x28e3fc of _0x171865){const [_0x348dfb,_0x2746c7,_0x407965,_0x265171,_0x5305dc,_0x261df5]=_0x28e3fc[_0x12df70(0x229)](':');_0x2dfb5a[_0x12df70(0x272)]({'startOffset':Number(_0x348dfb),'endOffset':Number(_0x2746c7),'collapsed':_0x348dfb===_0x2746c7,'isActive':_0x407965==='1','rangeType':_0x265171===a[_0x12df70(0x36e)]['TEXT']?a[_0x12df70(0x36e)][_0x12df70(0x2e3)]:a[_0x12df70(0x36e)]['RECT'],'segmentId':typeof _0x5305dc==_0x12df70(0x39e)?String(_0x5305dc):'','segmentPage':Number(_0x261df5!=null?_0x261df5:-0x1)});}return _0x2dfb5a[_0x12df70(0x34b)](_0xf5fcfa=>_0xf5fcfa[_0x12df70(0x3fd)])||(_0x2dfb5a[0x0]['isActive']=!0x0),_0x2dfb5a;}class pe extends a[_0x3570f5(0x210)]{constructor(){const _0x52ec70=_0x3570f5;super(...arguments),h(this,_0x52ec70(0x29f),new d[(_0x52ec70(0x35b))](null)),h(this,_0x52ec70(0x2a8),this[_0x52ec70(0x29f)][_0x52ec70(0x20d)]());}[_0x3570f5(0x2aa)](_0x1a8b19){const _0x1fa4f3=_0x3570f5,{unitID:_0x5612c5,memberID:_0x285d68,textRanges:_0x813301}=_0x1a8b19,_0x58a197=ye(_0x813301);if(_0x58a197==='')return;const _0x68aaeb={'unitID':_0x5612c5,'memberID':_0x285d68,'selection':_0x58a197};this[_0x1fa4f3(0x29f)][_0x1fa4f3(0x282)](_0x68aaeb);}}var _t=Object['getOwnPropertyDescriptor'],ht=(_0x1152a8,_0x35213f,_0x530c2e,_0xecb165)=>{const _0x19f89c=_0x3570f5;for(var _0x4bce90=_0xecb165>0x1?void 0x0:_0xecb165?_t(_0x35213f,_0x530c2e):_0x35213f,_0x26753f=_0x1152a8[_0x19f89c(0x367)]-0x1,_0x321efc;_0x26753f>=0x0;_0x26753f--)(_0x321efc=_0x1152a8[_0x26753f])&&(_0x4bce90=_0x321efc(_0x4bce90)||_0x4bce90);return _0x4bce90;},L=(_0x3d5a15,_0x1eaf09)=>(_0x4e6744,_0x4fa906)=>_0x1eaf09(_0x4e6744,_0x4fa906,_0x3d5a15);const ut=0x12c,dt=0x64;let de=class extends a[_0x3570f5(0x210)]{constructor(_0x27d9ac,_0x68a212,_0x1aa9f4,_0x586294,_0x423ec9,_0x334f82,_0x45bec3,_0x3ffc45,_0x405045){const _0x3152e2=_0x3570f5;super(),h(this,_0x3152e2(0x2f8),!0x1),h(this,_0x3152e2(0x403),!0x1),h(this,'_cursorInfo$',new d[(_0x3152e2(0x35b))](new Map())),h(this,_0x3152e2(0x19b),this['_cursorInfo$'][_0x3152e2(0x20d)]()),h(this,'_roomMembers$',new d[(_0x3152e2(0x35b))]([])),h(this,_0x3152e2(0x1d0),this[_0x3152e2(0x3a7)][_0x3152e2(0x2b1)](d[_0x3152e2(0x2dc)](ut))),h(this,_0x3152e2(0x3f5),a[_0x3152e2(0x315)](_0x2d7dff=>{const _0x1cce6f=_0x3152e2,_0x1ee668={'eventID':m[_0x1cce6f(0x2f9)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x1cce6f(0x260)],'memberID':this[_0x1cce6f(0x32f)][_0x1cce6f(0x1b0)](),'selection':ye(_0x2d7dff)}};this[_0x1cce6f(0x32f)][_0x1cce6f(0x24a)](_0x1ee668,this[_0x1cce6f(0x260)]);},dt)),(this[_0x3152e2(0x260)]=_0x27d9ac,this[_0x3152e2(0x32f)]=_0x68a212,this[_0x3152e2(0x376)]=_0x1aa9f4,this[_0x3152e2(0x31c)]=_0x586294,this['_memberService']=_0x423ec9,this['_syncEditingCollabCursorService']=_0x334f82,this['_transformService']=_0x45bec3,this[_0x3152e2(0x359)]=_0x3ffc45,this['_commandService']=_0x405045);}get[_0x3570f5(0x352)](){const _0x56de77=_0x3570f5;return this[_0x56de77(0x3e9)][_0x56de77(0x1c2)]();}get[_0x3570f5(0x2e1)](){const _0x5afd9d=_0x3570f5;return this[_0x5afd9d(0x3a7)]['getValue']();}[_0x3570f5(0x1cc)](){const _0xb55dec=_0x3570f5;super[_0xb55dec(0x1cc)](),this['_cursorInfo$'][_0xb55dec(0x282)](new Map()),this[_0xb55dec(0x3e9)][_0xb55dec(0x29a)](),this['_roomMembers$'][_0xb55dec(0x282)]([]),this[_0xb55dec(0x3a7)][_0xb55dec(0x29a)]();}[_0x3570f5(0x3bd)](){const _0x38097e=_0x3570f5;this[_0x38097e(0x403)]||(this[_0x38097e(0x403)]=!0x0,this[_0x38097e(0x32f)][_0x38097e(0x313)][_0x38097e(0x2b1)](d[_0x38097e(0x21e)](this[_0x38097e(0x293)]))[_0x38097e(0x3e4)](_0x414196=>{const _0x4bcede=_0x38097e;_0x414196===u[_0x4bcede(0x320)][_0x4bcede(0x1ca)]?this[_0x4bcede(0x2b4)]():this['_toggleOffline']();}),this['_session']['event$']['pipe'](d[_0x38097e(0x21e)](this['dispose$']))['subscribe'](_0xb788df=>{const _0x140ed3=_0x38097e,_0xe46fd8=_0xb788df[_0x140ed3(0x301)];_0xe46fd8===m[_0x140ed3(0x2f9)]['UPDATE_CURSOR']&&this[_0x140ed3(0x328)](_0xb788df),_0xe46fd8===m[_0x140ed3(0x2f9)][_0x140ed3(0x202)]&&this['_onCursorDelete'](_0xb788df);}),this[_0x38097e(0x34d)](this[_0x38097e(0x30d)]['onCommandExecuted'](_0x52996a=>{const _0x484149=_0x38097e,_0x4bb22a=_0x52996a[_0x484149(0x31d)];_0x4bb22a!=null&&this[_0x484149(0x2f8)]&&_0x52996a['id']===Y['SetTextSelectionsOperation']['id']&&_0x4bb22a[_0x484149(0x410)]===this[_0x484149(0x260)]&&_0x4bb22a[_0x484149(0x38d)]===!0x1&&_0x4bb22a[_0x484149(0x238)][_0x484149(0x367)]>0x0&&this[_0x484149(0x3f5)](_0x4bb22a[_0x484149(0x238)]);})),this[_0x38097e(0x314)][_0x38097e(0x2a8)]['pipe'](d[_0x38097e(0x21e)](this[_0x38097e(0x293)]))[_0x38097e(0x3e4)](_0x3ce76b=>{const _0x15fc69=_0x38097e;if((_0x3ce76b==null?void 0x0:_0x3ce76b[_0x15fc69(0x260)])!==this[_0x15fc69(0x260)])return;const _0x508c9e={'eventID':m['CollaborationEvent'][_0x15fc69(0x242)],'data':_0x3ce76b};this['_onCursorUpdate'](_0x508c9e);}),this[_0x38097e(0x34d)](this['_commandService']['onCommandExecuted'](_0x3a3555=>{const _0x2f1876=_0x38097e;if(_0x3a3555['params']==null)return;const _0x52727b=_0x3a3555[_0x2f1876(0x31d)];if(_0x3a3555['id']!==Y[_0x2f1876(0x2fa)]['id']||_0x52727b[_0x2f1876(0x410)]!==this['unitID'])return;const _0x2c2e8b={'id':_0x2f1876(0x1b8),'params':_0x52727b},_0x6692d6=this[_0x2f1876(0x352)];for(const [_0x5ab886,_0x35ccb6]of _0x6692d6){const _0x30dd97={'id':_0x2f1876(0x1b8),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x35ccb6[_0x2f1876(0x238)]}},_0xad5bcf=this[_0x2f1876(0x28c)][_0x2f1876(0x263)](_0x2c2e8b,_0x30dd97,!0x1);if(m[_0x2f1876(0x211)](_0xad5bcf))throw _0xad5bcf[_0x2f1876(0x26c)];_0x6692d6[_0x2f1876(0x41b)](_0x5ab886,{..._0x35ccb6,'ranges':_0xad5bcf[_0x2f1876(0x1e6)][_0x2f1876(0x31d)]['textRanges']});}queueMicrotask(()=>{const _0x2a55d1=_0x2f1876;this[_0x2a55d1(0x3e9)][_0x2a55d1(0x282)](_0x6692d6);});})));}['_onCursorUpdate'](_0x2b23ca){const _0x36019b=_0x3570f5;var _0x166b7b,_0x1c684d;const {memberID:_0xa5b590,selection:_0x1042b0}=_0x2b23ca[_0x36019b(0x33f)],_0x2060c6=lt(_0x1042b0),_0x15a519=(_0x1c684d=(_0x166b7b=this[_0x36019b(0x20b)]['getMember'](this['unitID'],_0xa5b590))==null?void 0x0:_0x166b7b[_0x36019b(0x2e4)])!=null?_0x1c684d:_0x36019b(0x24c),_0x4f2331={'color':this[_0x36019b(0x31c)][_0x36019b(0x2a5)](_0xa5b590),'name':_0x15a519,'ranges':_0x2060c6},_0x1735aa=this[_0x36019b(0x352)];_0x1735aa[_0x36019b(0x41b)](_0xa5b590,_0x4f2331),this[_0x36019b(0x3e9)][_0x36019b(0x282)](_0x1735aa);}[_0x3570f5(0x2b0)](_0x52b97d){const _0xb4464=_0x3570f5,{memberID:_0x387ef6}=_0x52b97d['data'],_0x365f37=this['cursorInfo'];_0x365f37[_0xb4464(0x316)](_0x387ef6),this[_0xb4464(0x3e9)][_0xb4464(0x282)](_0x365f37);}[_0x3570f5(0x2b4)](){const _0x2ef14=_0x3570f5;var _0x19131a;if(this[_0x2ef14(0x2f8)]=!0x0,((_0x19131a=this[_0x2ef14(0x359)]['getFocusedUnit']())==null?void 0x0:_0x19131a[_0x2ef14(0x2e8)]())!==this[_0x2ef14(0x260)])return;const _0x205cba=this[_0x2ef14(0x376)]['get'](Y[_0x2ef14(0x1a8)])['getDocRanges']();Array['isArray'](_0x205cba)&&_0x205cba[_0x2ef14(0x367)]>0x0&&this[_0x2ef14(0x3f5)](_0x205cba);}[_0x3570f5(0x277)](){const _0x2c4107=_0x3570f5;this[_0x2c4107(0x2f8)]=!0x1;}};de=ht([L(0x2,a[_0x3570f5(0x1b9)](a[_0x3570f5(0x2f5)])),L(0x3,a[_0x3570f5(0x1b9)](Ce)),L(0x4,a[_0x3570f5(0x1b9)](u[_0x3570f5(0x3e5)])),L(0x5,a['Inject'](pe)),L(0x6,m[_0x3570f5(0x326)]),L(0x7,a[_0x3570f5(0x386)]),L(0x8,a['ICommandService'])],de);var St=Object[_0x3570f5(0x216)],ft=(_0x1e3e8b,_0x5297e6,_0x58dcbd,_0x309b8d)=>{const _0x220b34=_0x3570f5;for(var _0x3ba268=_0x309b8d>0x1?void 0x0:_0x309b8d?St(_0x5297e6,_0x58dcbd):_0x5297e6,_0x307952=_0x1e3e8b[_0x220b34(0x367)]-0x1,_0x3b1a38;_0x307952>=0x0;_0x307952--)(_0x3b1a38=_0x1e3e8b[_0x307952])&&(_0x3ba268=_0x3b1a38(_0x3ba268)||_0x3ba268);return _0x3ba268;},A=(_0xcd606c,_0x50bac8)=>(_0x27bcac,_0x4c2a7d)=>_0x50bac8(_0x27bcac,_0x4c2a7d,_0xcd606c);const It=0x12c,vt=0x64,gt=()=>{let _0x5cfd42=[],_0x59806f=!0x1;return _0x55abd3=>{const _0x3f119c=_0x3d45;_0x5cfd42[_0x3f119c(0x272)](_0x55abd3),_0x59806f||(_0x59806f=!0x0,setTimeout(()=>{const _0x22baa1=_0x3f119c;_0x5cfd42[_0x22baa1(0x2b3)](_0x16b4fa=>_0x16b4fa()),_0x5cfd42=[],_0x59806f=!0x1;}));};};let Se=class extends a[_0x3570f5(0x210)]{constructor(_0x14267a,_0x364e1a,_0x226982,_0x5713ea,_0x399bd6,_0x4e6019,_0xf37bdc,_0x95cbbd){const _0xf29226=_0x3570f5;super(),h(this,'_online',!0x1),h(this,_0xf29226(0x403),!0x1),h(this,_0xf29226(0x3e9),new d[(_0xf29226(0x35b))](new Map())),h(this,_0xf29226(0x19b),this[_0xf29226(0x3e9)][_0xf29226(0x20d)]()),h(this,'_roomMembers$',new d[(_0xf29226(0x35b))]([])),h(this,_0xf29226(0x1d0),this['_roomMembers$'][_0xf29226(0x2b1)](d[_0xf29226(0x2dc)](It))),h(this,_0xf29226(0x3f5),a[_0xf29226(0x315)]((_0x57add5,_0x4dec49)=>{const _0x4d9567=_0xf29226,_0x5d2a57={'eventID':m['CollaborationEvent'][_0x4d9567(0x242)],'data':{'unitID':this[_0x4d9567(0x260)],'memberID':this['_session'][_0x4d9567(0x1b0)](),'selection':Ee[_0x4d9567(0x39b)](_0x57add5,_0x4dec49['range'])}};this[_0x4d9567(0x32f)]['send'](_0x5d2a57,this[_0x4d9567(0x260)]);},vt)),(this[_0xf29226(0x260)]=_0x14267a,this['_session']=_0x364e1a,this['_injector']=_0x226982,this[_0xf29226(0x31c)]=_0x5713ea,this[_0xf29226(0x20b)]=_0x399bd6,this['_univerInstanceService']=_0x4e6019,this[_0xf29226(0x30d)]=_0xf37bdc,this[_0xf29226(0x39c)]=_0x95cbbd);}get['cursorInfo'](){const _0x5d3702=_0x3570f5;return this['_cursorInfo$'][_0x5d3702(0x1c2)]();}get[_0x3570f5(0x2e1)](){const _0x589262=_0x3570f5;return this[_0x589262(0x3a7)][_0x589262(0x1c2)]();}[_0x3570f5(0x1cc)](){const _0x1420cd=_0x3570f5;super['dispose'](),this['_cursorInfo$'][_0x1420cd(0x282)](new Map()),this[_0x1420cd(0x3e9)][_0x1420cd(0x29a)](),this[_0x1420cd(0x3a7)][_0x1420cd(0x282)]([]),this[_0x1420cd(0x3a7)][_0x1420cd(0x29a)]();}[_0x3570f5(0x3bd)](){const _0x3a0790=_0x3570f5;this[_0x3a0790(0x403)]||(this[_0x3a0790(0x403)]=!0x0,this[_0x3a0790(0x32f)]['sessionStatus$'][_0x3a0790(0x2b1)](d[_0x3a0790(0x21e)](this[_0x3a0790(0x293)]))[_0x3a0790(0x3e4)](_0x54b594=>{const _0x337aa4=_0x3a0790;_0x54b594===u[_0x337aa4(0x320)]['ONLINE']?this[_0x337aa4(0x2b4)]():this[_0x337aa4(0x277)]();}),this['_session'][_0x3a0790(0x384)]['pipe'](d[_0x3a0790(0x21e)](this['dispose$']))[_0x3a0790(0x3e4)](_0x12b24e=>{const _0x1b423b=_0x3a0790,_0x5b8bc0=_0x12b24e[_0x1b423b(0x301)];_0x5b8bc0===m[_0x1b423b(0x2f9)][_0x1b423b(0x242)]&&this['_onCursorUpdate'](_0x12b24e),_0x5b8bc0===m[_0x1b423b(0x2f9)][_0x1b423b(0x202)]&&this[_0x1b423b(0x2b0)](_0x12b24e);}),this[_0x3a0790(0x412)](),this[_0x3a0790(0x34d)](this['_commandService'][_0x3a0790(0x23f)](_0x401a84=>{const _0x1297a8=_0x3a0790;if(this['_online']&&_0x401a84['id']===g[_0x1297a8(0x31a)]['id']&&_0x401a84[_0x1297a8(0x31d)]['unitId']===this[_0x1297a8(0x260)]){const _0x493358=_0x401a84['params'];this[_0x1297a8(0x3f5)](_0x493358['subUnitId'],_0x493358[_0x1297a8(0x312)][0x0]);}})));}[_0x3570f5(0x328)](_0x5cc6c6){const _0x519f4b=_0x3570f5;var _0x707d76,_0x1d0b31;const {memberID:_0x3677ab,selection:_0x168267}=_0x5cc6c6[_0x519f4b(0x33f)],{sheetName:_0x7bb795,range:_0x419f81}=Ee[_0x519f4b(0x2e6)](_0x168267),_0x19431c={'name':(_0x1d0b31=(_0x707d76=this[_0x519f4b(0x20b)][_0x519f4b(0x2bf)](this[_0x519f4b(0x260)],_0x3677ab))==null?void 0x0:_0x707d76[_0x519f4b(0x2e4)])!=null?_0x1d0b31:_0x519f4b(0x24c),'range':this['_getMergeRange'](_0x7bb795,_0x419f81),'sheetID':_0x7bb795,'color':this['_colorAssignService'][_0x519f4b(0x2a5)](_0x3677ab),'selection':_0x168267},_0x168b5d=this[_0x519f4b(0x352)];_0x168b5d[_0x519f4b(0x41b)](_0x3677ab,_0x19431c),this[_0x519f4b(0x3e9)][_0x519f4b(0x282)](_0x168b5d);}['_onCursorDelete'](_0x2a6fc3){const _0x2f83bd=_0x3570f5,{memberID:_0x3971ca}=_0x2a6fc3[_0x2f83bd(0x33f)],_0x44d7ed=this[_0x2f83bd(0x352)];_0x44d7ed[_0x2f83bd(0x316)](_0x3971ca),this[_0x2f83bd(0x3e9)][_0x2f83bd(0x282)](_0x44d7ed);}['_getMergeRange'](_0x2667e3,_0x451448){const _0x69c130=_0x3570f5;var _0x21f303,_0x3a54ca;const _0x1c97a0=(_0x3a54ca=(_0x21f303=this[_0x69c130(0x359)][_0x69c130(0x357)](this[_0x69c130(0x260)]))==null?void 0x0:_0x21f303['getSheetBySheetId'](_0x2667e3))==null?void 0x0:_0x3a54ca[_0x69c130(0x365)]();return(_0x1c97a0==null?void 0x0:_0x1c97a0[_0x69c130(0x30a)](_0x442103=>a[_0x69c130(0x224)][_0x69c130(0x1cf)](_0x442103,_0x451448)))||_0x451448;}['_onRefRangeChange'](){const _0x3dbd85=_0x3570f5,_0x18ed10=new a[(_0x3dbd85(0x31b))](),_0x1be676=gt(),_0x11ed6a=()=>{const _0x14a73f=_0x3dbd85;_0x18ed10[_0x14a73f(0x1cc)]();const _0x6d4823=(_0x56254c,_0x35ab01,_0x387cf1,_0x6df6)=>{const _0x163d29=_0x14a73f;let _0x27d9bb=[];switch(_0x56254c['id']){case g[_0x163d29(0x1f6)]['DeleteRangeMoveLeftCommandId']:{_0x27d9bb=g[_0x163d29(0x3aa)](_0x56254c,_0x6df6);break;}case g['EffectRefRangId'][_0x163d29(0x3ca)]:{_0x27d9bb=g[_0x163d29(0x1d9)](_0x56254c,_0x6df6);break;}case g[_0x163d29(0x1f6)][_0x163d29(0x353)]:{_0x27d9bb=g[_0x163d29(0x2d2)](_0x56254c,_0x6df6);break;}case g[_0x163d29(0x1f6)][_0x163d29(0x20f)]:{_0x27d9bb=g[_0x163d29(0x214)](_0x56254c,_0x6df6);break;}case g[_0x163d29(0x1f6)][_0x163d29(0x30e)]:{_0x27d9bb=g[_0x163d29(0x3af)](_0x56254c,_0x6df6);break;}case g[_0x163d29(0x1f6)][_0x163d29(0x1d1)]:{_0x27d9bb=g[_0x163d29(0x26b)](_0x56254c,_0x6df6);break;}case g['EffectRefRangId'][_0x163d29(0x363)]:{_0x27d9bb=g[_0x163d29(0x337)](_0x56254c,_0x6df6);break;}case g['EffectRefRangId'][_0x163d29(0x21b)]:{_0x27d9bb=g[_0x163d29(0x25a)](_0x56254c,_0x6df6);break;}case g['EffectRefRangId'][_0x163d29(0x1ed)]:{_0x27d9bb=g[_0x163d29(0x3a0)](_0x56254c,_0x6df6);break;}}const _0x85f4ea=g[_0x163d29(0x400)](_0x27d9bb,_0x6df6),_0x3d009d=this[_0x163d29(0x352)][_0x163d29(0x33a)](_0x35ab01);if(_0x3d009d&&_0x85f4ea){const _0x4d59db={..._0x3d009d,'range':_0x85f4ea};this['cursorInfo']['set'](_0x35ab01,_0x4d59db),_0x1be676(()=>{const _0x2b8356=_0x163d29,_0x113584=this[_0x2b8356(0x39c)][_0x2b8356(0x34e)](_0x85f4ea,_0x2a320c=>(_0x113584[_0x2b8356(0x1cc)](),_0x6d4823(_0x2a320c,_0x35ab01,_0x387cf1,_0x85f4ea)));_0x18ed10['add'](_0x113584);});}return{'redos':[],'undos':[]};};this[_0x14a73f(0x352)]['forEach']((_0x13b3f9,_0x1ff345)=>{const _0x73a65c=_0x14a73f,{range:_0x4b387c,sheetID:_0x1a1451}=_0x13b3f9,_0x5c731f=this[_0x73a65c(0x39c)]['registerRefRange'](_0x4b387c,_0xeca946=>(_0x5c731f[_0x73a65c(0x1cc)](),_0x6d4823(_0xeca946,_0x1ff345,_0x1a1451,_0x4b387c)));_0x18ed10[_0x73a65c(0x3ce)](_0x5c731f);});};this['disposeWithMe'](a['toDisposable'](this['_cursorInfo$'][_0x3dbd85(0x3e4)](()=>{_0x11ed6a();})));}[_0x3570f5(0x2b4)](){const _0x1464ec=_0x3570f5;var _0x36e507,_0x4d16b2;if(this[_0x1464ec(0x2f8)]=!0x0,((_0x36e507=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x36e507['getUnitId']())!==this[_0x1464ec(0x260)])return;const _0x205b43=(_0x4d16b2=this[_0x1464ec(0x376)][_0x1464ec(0x33a)](g[_0x1464ec(0x2b6)])[_0x1464ec(0x201)]())==null?void 0x0:_0x4d16b2[0x0],_0x4eeea5=this[_0x1464ec(0x359)][_0x1464ec(0x1c4)](a[_0x1464ec(0x40a)][_0x1464ec(0x1fb)])[_0x1464ec(0x1fc)]();_0x205b43&&_0x4eeea5&&this[_0x1464ec(0x3f5)](_0x4eeea5[_0x1464ec(0x41a)](),_0x205b43);}[_0x3570f5(0x277)](){const _0x57d07b=_0x3570f5;this[_0x57d07b(0x2f8)]=!0x1;}};Se=ft([A(0x2,a[_0x3570f5(0x1b9)](a['Injector'])),A(0x3,a[_0x3570f5(0x1b9)](Ce)),A(0x4,a[_0x3570f5(0x1b9)](u[_0x3570f5(0x3e5)])),A(0x5,a['IUniverInstanceService']),A(0x6,a['ICommandService']),A(0x7,a[_0x3570f5(0x1b9)](g[_0x3570f5(0x1e3)]))],Se);var mt=Object[_0x3570f5(0x216)],Ct=(_0x5a1bc8,_0x377a4c,_0x3336bc,_0x272b6b)=>{for(var _0x30feef=_0x272b6b>0x1?void 0x0:_0x272b6b?mt(_0x377a4c,_0x3336bc):_0x377a4c,_0x2d5edb=_0x5a1bc8['length']-0x1,_0x4a5ddc;_0x2d5edb>=0x0;_0x2d5edb--)(_0x4a5ddc=_0x5a1bc8[_0x2d5edb])&&(_0x30feef=_0x4a5ddc(_0x30feef)||_0x30feef);return _0x30feef;},ie=(_0x4cb760,_0x4b05b1)=>(_0x477664,_0x529a5b)=>_0x4b05b1(_0x477664,_0x529a5b,_0x4cb760);let x=class extends a[_0x3570f5(0x210)]{constructor(_0x4af673,_0x3c0606,_0x549fea){const _0x28936d=_0x3570f5;super(),h(this,_0x28936d(0x2d3),new Map()),h(this,_0x28936d(0x1c8),new d[(_0x28936d(0x24d))]()),(this['_univerInstanceService']=_0x4af673,this[_0x28936d(0x376)]=_0x3c0606,this[_0x28936d(0x239)]=_0x549fea,this[_0x28936d(0x403)]());}[_0x3570f5(0x1cc)](){const _0x53e2be=_0x3570f5;super['dispose'](),this['_entityInit$'][_0x53e2be(0x29a)](),this['_entities'][_0x53e2be(0x2b3)](_0x27cce0=>_0x27cce0[_0x53e2be(0x1cc)]());}[_0x3570f5(0x407)](_0x69cfbc){const _0x441fbf=_0x3570f5;return this[_0x441fbf(0x2d3)][_0x441fbf(0x1ee)](_0x69cfbc)?this[_0x441fbf(0x2d3)]['get'](_0x69cfbc)[_0x441fbf(0x19b)]:this[_0x441fbf(0x1c8)][_0x441fbf(0x2b1)](d['filter'](_0x3cba9e=>_0x3cba9e[_0x441fbf(0x260)]===_0x69cfbc),d[_0x441fbf(0x346)](_0x2d66d6=>_0x2d66d6['cursorInfo$']));}[_0x3570f5(0x403)](){const _0x4913e8=_0x3570f5;this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x4913e8(0x40a)]['UNIVER_SHEET'])['pipe'](d[_0x4913e8(0x21e)](this['dispose$']))['subscribe'](async _0x8b196c=>{const _0x498739=_0x4913e8,_0x44ab41=_0x8b196c[_0x498739(0x2e8)](),_0x4030b9=await this[_0x498739(0x291)](_0x44ab41);this['_entityInit$'][_0x498739(0x282)](_0x4030b9),this['_entities'][_0x498739(0x41b)](_0x44ab41,_0x4030b9);}),this[_0x4913e8(0x359)][_0x4913e8(0x377)](a['UniverInstanceType'][_0x4913e8(0x24f)])['pipe'](d[_0x4913e8(0x21e)](this['dispose$']))['pipe'](d['filter'](_0x23a407=>!_0x23a407['getUnitId']()['startsWith']('__')))[_0x4913e8(0x3e4)](async _0x2f2b4e=>{const _0xf0ae93=_0x4913e8,_0x19df4a=_0x2f2b4e[_0xf0ae93(0x2e8)](),_0x2bbc9b=await this[_0xf0ae93(0x411)](_0x19df4a);this['_entityInit$'][_0xf0ae93(0x282)](_0x2bbc9b),this[_0xf0ae93(0x2d3)]['set'](_0x19df4a,_0x2bbc9b);}),d[_0x4913e8(0x380)](this[_0x4913e8(0x359)][_0x4913e8(0x360)](a[_0x4913e8(0x40a)][_0x4913e8(0x24f)]),this['_univerInstanceService'][_0x4913e8(0x360)](a[_0x4913e8(0x40a)]['UNIVER_SHEET']))[_0x4913e8(0x2b1)](d['takeUntil'](this[_0x4913e8(0x293)]))[_0x4913e8(0x3e4)](_0x41df2e=>{const _0x4ae3e1=_0x4913e8,_0x22fb6f=_0x41df2e[_0x4ae3e1(0x2e8)](),_0x4d032a=this[_0x4ae3e1(0x2d3)][_0x4ae3e1(0x33a)](_0x22fb6f);_0x4d032a&&(_0x4d032a[_0x4ae3e1(0x1cc)](),this[_0x4ae3e1(0x2d3)][_0x4ae3e1(0x316)](_0x22fb6f));});}async[_0x3570f5(0x291)](_0x1f4d50){const _0x2aa4c6=_0x3570f5,_0x4dec48=await this['_collabSessionService'][_0x2aa4c6(0x1f9)](_0x1f4d50),_0x599015=this[_0x2aa4c6(0x376)][_0x2aa4c6(0x3ff)](Se,_0x1f4d50,_0x4dec48);return _0x599015[_0x2aa4c6(0x3bd)](),_0x599015;}async[_0x3570f5(0x411)](_0x5f4c10){const _0x5d4887=_0x3570f5,_0x43cd40=await this[_0x5d4887(0x239)][_0x5d4887(0x1f9)](_0x5f4c10),_0x1bcb0c=this[_0x5d4887(0x376)][_0x5d4887(0x3ff)](de,_0x5f4c10,_0x43cd40);return _0x1bcb0c[_0x5d4887(0x3bd)](),_0x1bcb0c;}};x=Ct([ie(0x0,a[_0x3570f5(0x386)]),ie(0x1,a[_0x3570f5(0x1b9)](a['Injector'])),ie(0x2,a[_0x3570f5(0x1b9)](u[_0x3570f5(0x2d4)]))],x);const W=0x14,Te=0xc8,ne=0x4,pt=0x5;function Et(_0x268ca2,_0x4ad69e){const _0x297c87=_0x3570f5;let {radius:_0x12bc7f,width:_0x36f910,height:_0x3521bd}=_0x4ad69e;_0x12bc7f=_0x12bc7f!=null?_0x12bc7f:0x0,_0x36f910=_0x36f910!=null?_0x36f910:0x1e,_0x3521bd=_0x3521bd!=null?_0x3521bd:0x1e;let _0x1c76bd=0x0,_0x1d5ed8=0x0,_0x14bea9=0x0;_0x1c76bd=_0x1d5ed8=_0x14bea9=Math[_0x297c87(0x1ea)](_0x12bc7f,_0x36f910/0x2,_0x3521bd/0x2),_0x268ca2[_0x297c87(0x388)](),_0x268ca2[_0x297c87(0x1e4)](_0x1c76bd,0x0),_0x268ca2[_0x297c87(0x39f)](_0x36f910-_0x1d5ed8,0x0),_0x268ca2[_0x297c87(0x2d6)](_0x36f910-_0x1d5ed8,_0x1d5ed8,_0x1d5ed8,Math['PI']*0x3/0x2,0x0,!0x1),_0x268ca2[_0x297c87(0x39f)](_0x36f910,_0x3521bd-_0x14bea9),_0x268ca2[_0x297c87(0x2d6)](_0x36f910-_0x14bea9,_0x3521bd-_0x14bea9,_0x14bea9,0x0,Math['PI']/0x2,!0x1),_0x268ca2[_0x297c87(0x39f)](0x0,_0x3521bd),_0x268ca2[_0x297c87(0x39f)](0x0,_0x1c76bd),_0x268ca2['arc'](_0x1c76bd,_0x1c76bd,_0x1c76bd,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x268ca2[_0x297c87(0x279)](),_0x4ad69e[_0x297c87(0x256)]&&(_0x268ca2[_0x297c87(0x217)](),_0x268ca2[_0x297c87(0x3ba)]=_0x4ad69e['fill'],_0x4ad69e[_0x297c87(0x2ac)]===_0x297c87(0x40d)?_0x268ca2['fill'](_0x297c87(0x40d)):_0x268ca2[_0x297c87(0x256)](),_0x268ca2['restore']());}class ee extends p[_0x3570f5(0x345)]{constructor(_0x4a7d76,_0x41ea18){const _0x5b6945=_0x3570f5;super(_0x4a7d76,_0x41ea18),h(this,_0x5b6945(0x398)),h(this,_0x5b6945(0x222)),(this[_0x5b6945(0x398)]=_0x41ea18==null?void 0x0:_0x41ea18[_0x5b6945(0x398)],this[_0x5b6945(0x222)]=_0x41ea18==null?void 0x0:_0x41ea18[_0x5b6945(0x222)]);}static[_0x3570f5(0x38b)](_0x126084,_0x46c08b){const _0x38c974=_0x3570f5,{text:_0x5cdf6b,color:_0x1193c2}=_0x46c08b;_0x126084[_0x38c974(0x217)](),_0x126084[_0x38c974(0x237)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x5e91f3=_0x126084['measureText'](_0x5cdf6b)[_0x38c974(0x33c)],_0xac9260=Math['min'](_0x5e91f3+0x2*ne,Te);Et(_0x126084,{'height':W,'radius':0x4,'width':_0xac9260,'fill':_0x1193c2}),_0x126084[_0x38c974(0x3ba)]=_0x38c974(0x3e3);const _0x3b83fa=ne,_0xe03709=W-pt,_0x15b174=Te-0x2*ne;if(_0x5e91f3>_0x15b174){let _0x2bee64='',_0x3e9e5b=0x0;for(const _0xfb4432 of _0x5cdf6b){const _0x34a9b5=_0x126084[_0x38c974(0x2ad)](_0xfb4432)[_0x38c974(0x33c)];if(_0x3e9e5b+_0x34a9b5<=_0x15b174-_0x126084['measureText'](_0x38c974(0x266))[_0x38c974(0x33c)])_0x2bee64+=_0xfb4432,_0x3e9e5b+=_0x34a9b5;else{_0x2bee64+='...';break;}}_0x126084[_0x38c974(0x2b2)](_0x2bee64,_0x3b83fa,_0xe03709);}else _0x126084['fillText'](_0x5cdf6b,_0x3b83fa,_0xe03709);_0x126084[_0x38c974(0x382)]();}[_0x3570f5(0x2ff)](_0x3ca2fe){ee['drawWith'](_0x3ca2fe,this);}}const re=_0x3570f5(0x36f),bt=_0x3570f5(0x252),Ot=_0x3570f5(0x29c),F=0x6,Tt=1.5,oe=0x4,Rt=1.5,Dt=_0x3570f5(0x372);class Re{constructor(_0x58e404,_0x4771fd,_0x3ddf47,_0x1e703d){const _0x4bd5b5=_0x3570f5;h(this,_0x4bd5b5(0x194),[]),h(this,_0x4bd5b5(0x38c),null),h(this,_0x4bd5b5(0x283),null),h(this,'_anchorDot',null),h(this,'_hideTimer',null),h(this,_0x4bd5b5(0x3d0),null),(this[_0x4bd5b5(0x36a)]=_0x58e404,this[_0x4bd5b5(0x2f4)]=_0x4771fd,this['_docSkeleton']=_0x3ddf47,this[_0x4bd5b5(0x3ae)]=_0x1e703d,this[_0x4bd5b5(0x3f2)]());}set[_0x3570f5(0x408)](_0x5b01d5){const _0x40cc97=_0x3570f5;_0x5b01d5?(this[_0x40cc97(0x3c1)]&&this[_0x40cc97(0x3c1)]['hide'](),this[_0x40cc97(0x283)]&&this[_0x40cc97(0x283)][_0x40cc97(0x3c7)]()):(this['_anchorDot']&&this['_anchorDot'][_0x40cc97(0x3c7)](),this[_0x40cc97(0x283)]&&this[_0x40cc97(0x283)][_0x40cc97(0x265)]());}['dispose'](){const _0x98063f=_0x3570f5;for(const _0xb374d9 of this['_shapes'])_0xb374d9[_0x98063f(0x1cc)]();this['_textBubble']&&this[_0x98063f(0x283)][_0x98063f(0x1cc)](),this[_0x98063f(0x3c1)]&&this['_anchorDot']['dispose'](),this[_0x98063f(0x38c)]&&this[_0x98063f(0x38c)]['dispose'](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x3570f5(0x3f2)](){const _0x43cec6=_0x3570f5;var _0x4f1624;const {_docSkeleton:_0xa9ce60,_document:_0x474de5}=this,{color:_0x4e6e34,name:_0x36071c,ranges:_0x107636}=this[_0x43cec6(0x36a)],_0x46e293=_0x474de5[_0x43cec6(0x1c7)](),{docsLeft:_0x5a42af,docsTop:_0x299003}=_0x46e293,_0x38935f=new E[(_0x43cec6(0x1d6))](_0x46e293,_0xa9ce60);for(const {startOffset:_0x46d86b,endOffset:_0x7555c1,rangeType:_0x2948e7,segmentId:_0x56a323,segmentPage:_0x4f53aa,collapsed:_0x18d644,isActive:_0x5b544c}of _0x107636){const _0x155c83=_0xa9ce60[_0x43cec6(0x20a)](_0x46d86b,!0x0,_0x56a323,_0x4f53aa);let _0x39d9e2=_0xa9ce60[_0x43cec6(0x20a)](_0x7555c1,!0x0,_0x56a323,_0x4f53aa);if(_0x39d9e2==null&&(_0x39d9e2=_0xa9ce60[_0x43cec6(0x20a)](_0x7555c1-0x1,!0x1,_0x56a323,_0x4f53aa)),_0x5b544c){const {contentBoxPointGroup:_0x4b5a20}=_0x38935f[_0x43cec6(0x2f7)](_0x39d9e2,_0x39d9e2);if(_0x4b5a20[_0x43cec6(0x367)]===0x0)continue;this[_0x43cec6(0x379)](_0x4e6e34,_0x4b5a20,_0x5a42af,_0x299003,_0x36071c),this[_0x43cec6(0x3d0)]=this[_0x43cec6(0x2d5)]();}if(_0x155c83&&_0x39d9e2){if(_0x2948e7===a['DOC_RANGE_TYPE']['RECT']){const _0x455a1f=new E[(_0x43cec6(0x1f7))](_0x46e293,_0xa9ce60),{pointGroup:_0xce9256}=(_0x4f1624=_0x455a1f[_0x43cec6(0x2f7)](_0x155c83,_0x39d9e2))!=null?_0x4f1624:{};if(_0xce9256==null||_0xce9256[_0x43cec6(0x367)]===0x0)continue;this[_0x43cec6(0x37a)](_0x4e6e34,_0xce9256,_0x5a42af,_0x299003);}else{if(!_0x18d644){const {borderBoxPointGroup:_0x468805}=_0x38935f['getRangePointData'](_0x155c83,_0x39d9e2);if(_0x468805[_0x43cec6(0x367)]===0x0)continue;this[_0x43cec6(0x22f)](_0x4e6e34,_0x468805,_0x5a42af,_0x299003);}}}}}[_0x3570f5(0x379)](_0x14258e,_0x1aa815,_0x4acd35,_0x505a90,_0x2bf80c){const _0x58c797=_0x3570f5,_0x58f0c8=this[_0x58c797(0x261)](_0x1aa815),{left:_0x503f66,top:_0x36d172,height:_0x5703fa}=_0x58f0c8,_0xc2fdfd=this[_0x58c797(0x20c)](),_0x4baf12=Rt/_0xc2fdfd,_0x58963c=new p['Rect'](re+a[_0x58c797(0x331)](F),{'left':_0x503f66+_0x4acd35-_0x4baf12,'top':_0x36d172+_0x505a90,'height':_0x5703fa,'width':Tt,'fill':_0x14258e||p[_0x58c797(0x30b)](a[_0x58c797(0x3db)][_0x58c797(0x329)],0x0),'strokeWidth':_0x4baf12,'stroke':Dt,'evented':!0x0});this[_0x58c797(0x38c)]=_0x58963c,this[_0x58c797(0x2f4)]['addObject'](_0x58963c,E[_0x58c797(0x1db)]);const _0x473f2a=new p[(_0x58c797(0x3c8))](re+a[_0x58c797(0x331)](F),{'left':_0x503f66+_0x4acd35-_0x4baf12,'top':_0x36d172+_0x505a90-oe/0x2,'height':oe,'width':oe,'fill':_0x14258e||p['getColor'](a['COLORS'][_0x58c797(0x329)],0x0),'strokeWidth':0x0,'stroke':_0x14258e||p[_0x58c797(0x30b)](a[_0x58c797(0x3db)]['black'],0x0),'evented':!0x1});this[_0x58c797(0x3c1)]=_0x473f2a,this[_0x58c797(0x2f4)][_0x58c797(0x3e8)](_0x473f2a,E[_0x58c797(0x1db)]);const _0x499e6a=new ee(re+a[_0x58c797(0x331)](F),{'left':_0x503f66+_0x4acd35-_0x4baf12,'top':_0x36d172+_0x505a90-W,'text':_0x2bf80c,'color':_0x14258e});this[_0x58c797(0x283)]=_0x499e6a,this[_0x58c797(0x2f4)][_0x58c797(0x3e8)](_0x499e6a,E['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}['_handleHover'](){const _0x4f97e8=_0x3570f5,_0x7b1f5=this[_0x4f97e8(0x38c)][_0x4f97e8(0x23a)][_0x4f97e8(0x1bb)](()=>{const _0x270300=_0x4f97e8;this[_0x270300(0x408)]=!0x0;}),_0x4bf040=this[_0x4f97e8(0x38c)][_0x4f97e8(0x338)][_0x4f97e8(0x1bb)](()=>{const _0x36b6b6=_0x4f97e8;this['_hideTimer']&&clearTimeout(this[_0x36b6b6(0x25c)]),this[_0x36b6b6(0x25c)]=setTimeout(()=>{const _0x31d73b=_0x36b6b6;this[_0x31d73b(0x408)]=!0x1;},0x7d0);});return()=>{const _0x5a6d39=_0x4f97e8;_0x7b1f5[_0x5a6d39(0x317)](),_0x4bf040[_0x5a6d39(0x317)]();};}[_0x3570f5(0x22f)](_0x2ddd92,_0x53bf09,_0x4a2ccd,_0x1f750b){const _0x4d549b=_0x3570f5,_0x3ce9b5=new a[(_0x4d549b(0x308))](_0x2ddd92)['setAlpha'](0.2)[_0x4d549b(0x306)](),_0x929ab4=new p[(_0x4d549b(0x2d1))](bt+a[_0x4d549b(0x331)](F),{'pointsGroup':_0x53bf09,'fill':_0x3ce9b5||p[_0x4d549b(0x30b)](a[_0x4d549b(0x3db)][_0x4d549b(0x329)],0.2),'left':_0x4a2ccd,'top':_0x1f750b,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x4d549b(0x272)](_0x929ab4),this[_0x4d549b(0x2f4)][_0x4d549b(0x3e8)](_0x929ab4,E[_0x4d549b(0x1db)]);}[_0x3570f5(0x37a)](_0x57ded6,_0x1c7525,_0x5a86ac,_0x4dac79){const _0x3b597f=_0x3570f5,_0x3f799c=new a['ColorKit'](_0x57ded6)[_0x3b597f(0x307)](0.2)['toRgbString'](),_0x4dbf2c=new p[(_0x3b597f(0x2d1))](Ot+a['generateRandomId'](F),{'pointsGroup':_0x1c7525,'fill':_0x3f799c||p[_0x3b597f(0x30b)](a[_0x3b597f(0x3db)][_0x3b597f(0x329)],0.2),'left':_0x5a86ac,'top':_0x4dac79,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3b597f(0x194)][_0x3b597f(0x272)](_0x4dbf2c),this[_0x3b597f(0x2f4)][_0x3b597f(0x3e8)](_0x4dbf2c,E[_0x3b597f(0x1db)]);}[_0x3570f5(0x261)](_0x466773){const _0x3d8936=_0x466773[0x0],_0x1eaa54=_0x3d8936[0x0],_0x4914ae=_0x3d8936[0x2],{x:_0x159304,y:_0xdcef84}=_0x1eaa54,{x:_0x2dcfac,y:_0x4641a3}=_0x4914ae;return{'left':_0x159304,'top':_0xdcef84,'width':_0x2dcfac-_0x159304,'height':_0x4641a3-_0xdcef84};}[_0x3570f5(0x20c)](){const _0x1b8f67=_0x3570f5,{scaleX:_0x53ba49,scaleY:_0x55e34f}=this[_0x1b8f67(0x2f4)][_0x1b8f67(0x37c)]();return Math['max'](_0x53ba49,_0x55e34f);}}var Ut=Object['getOwnPropertyDescriptor'],Nt=(_0x334ec5,_0x48f616,_0x10188e,_0x111766)=>{for(var _0x161ded=_0x111766>0x1?void 0x0:_0x111766?Ut(_0x48f616,_0x10188e):_0x48f616,_0x35f497=_0x334ec5['length']-0x1,_0xf81be9;_0x35f497>=0x0;_0x35f497--)(_0xf81be9=_0x334ec5[_0x35f497])&&(_0x161ded=_0xf81be9(_0x161ded)||_0x161ded);return _0x161ded;},X=(_0x25a2f0,_0x1584d1)=>(_0x8c6495,_0x18b89a)=>_0x1584d1(_0x8c6495,_0x18b89a,_0x25a2f0);let fe=class extends a[_0x3570f5(0x210)]{constructor(_0x2be616,_0x39fd90,_0x3812f4,_0x8bb8e9,_0x3f413c){const _0x217da=_0x3570f5;super(),h(this,_0x217da(0x350),[]),h(this,_0x217da(0x2e7),[]),(this['_context']=_0x2be616,this[_0x217da(0x1b6)]=_0x39fd90,this['_collabCursorController']=_0x3812f4,this['_commandService']=_0x8bb8e9,this[_0x217da(0x193)]=_0x3f413c,this['_init']());}[_0x3570f5(0x403)](){const _0x23f9d6=_0x3570f5,_0x87415d=this[_0x23f9d6(0x2a2)][_0x23f9d6(0x410)],_0x2d55c4=this[_0x23f9d6(0x1b6)];this[_0x23f9d6(0x34d)](d['combineLatest']([this['_collabCursorController'][_0x23f9d6(0x407)](_0x87415d),this[_0x23f9d6(0x193)]['currentTheme$']])['pipe']($[_0x23f9d6(0x28e)](([_0x5b3df6,_0x399a29])=>({'skeleton':_0x2d55c4['getSkeleton'](),'cursors':[..._0x5b3df6[_0x23f9d6(0x22c)]()][_0x23f9d6(0x355)](_0x3b0e82=>({..._0x3b0e82,'color':this[_0x23f9d6(0x193)][_0x23f9d6(0x36d)](_0x3b0e82[_0x23f9d6(0x398)])}))})))[_0x23f9d6(0x3e4)](_0x65a4dd=>{const _0x5227a4=_0x23f9d6;if(this['_removeCollabCursors'](),_0x65a4dd){const {skeleton:_0x2c1163,cursors:_0x539e2b}=_0x65a4dd;this[_0x5227a4(0x387)](_0x2c1163,_0x539e2b);}})),this[_0x23f9d6(0x322)](),this[_0x23f9d6(0x3c2)]();}[_0x3570f5(0x387)](_0x30d5c8,_0x583bc8){const _0x120739=_0x3570f5,{scene:_0x9d2cb7,mainComponent:_0x4e5c7b}=this[_0x120739(0x2a2)],_0x188bd4=_0x583bc8['map'](_0x7276ac=>new Re(_0x7276ac,_0x9d2cb7,_0x30d5c8,_0x4e5c7b));this[_0x120739(0x350)]=_0x188bd4,this[_0x120739(0x2e7)]=_0x583bc8;}[_0x3570f5(0x25e)](){const _0x59c849=_0x3570f5;this[_0x59c849(0x3f1)]();const {scene:_0x5c3709,mainComponent:_0x4407b3}=this['_context'],_0x5255cd=this[_0x59c849(0x1b6)][_0x59c849(0x3ad)](),_0x38c76d=this[_0x59c849(0x2e7)][_0x59c849(0x28e)](_0xc1b344=>new Re(_0xc1b344,_0x5c3709,_0x5255cd,_0x4407b3));this[_0x59c849(0x350)]=_0x38c76d;}[_0x3570f5(0x3f1)](){const _0x37c07a=_0x3570f5;this[_0x37c07a(0x350)]['forEach'](_0x318cf8=>_0x318cf8[_0x37c07a(0x1cc)]()),this[_0x37c07a(0x350)]=[];}[_0x3570f5(0x3c2)](){const _0x50368e=_0x3570f5,_0x5440af=[E['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this[_0x50368e(0x30d)][_0x50368e(0x23f)](_0x525d41=>{const _0x2764dd=_0x50368e;_0x5440af[_0x2764dd(0x2bd)](_0x525d41['id'])&&_0x525d41[_0x2764dd(0x31d)][_0x2764dd(0x410)]===this[_0x2764dd(0x2a2)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x3570f5(0x322)](){const _0x431f8e=_0x3570f5;this[_0x431f8e(0x34d)](a[_0x431f8e(0x228)](this[_0x431f8e(0x2a2)][_0x431f8e(0x1bf)][_0x431f8e(0x1b7)])[_0x431f8e(0x2b1)]($['filter'](_0xdfee6b=>_0xdfee6b[_0x431f8e(0x297)]===p[_0x431f8e(0x24b)]['resize']),$[_0x431f8e(0x35d)](0x10))[_0x431f8e(0x3e4)](()=>{const _0x4618af=_0x431f8e;this[_0x4618af(0x25e)]();}));}};fe=Nt([X(0x1,a[_0x3570f5(0x1b9)](Y[_0x3570f5(0x375)])),X(0x2,a[_0x3570f5(0x1b9)](x)),X(0x3,a[_0x3570f5(0x25b)]),X(0x4,a[_0x3570f5(0x1b9)](a[_0x3570f5(0x1ac)]))],fe);const Mt=0x1,Lt=1.5;class $e extends p[_0x3570f5(0x345)]{constructor(_0x3497a3,_0x21bf74){const _0x3564ee=_0x3570f5;super(_0x3497a3,_0x21bf74),h(this,_0x3564ee(0x2f1)),h(this,'_hovered',!0x1),h(this,'_range'),h(this,_0x3564ee(0x270),''),h(this,_0x3564ee(0x33b),_0x3564ee(0x3f9)),h(this,'_backgroundColor'),(_0x21bf74&&this['setShapeProps'](_0x21bf74),this['onPointerEnter$'][_0x3564ee(0x1bb)](()=>this[_0x3564ee(0x3c6)]({'hovered':!0x0})),this[_0x3564ee(0x338)][_0x3564ee(0x1bb)](()=>this[_0x3564ee(0x3c6)]({'hovered':!0x1})));}['setShapeProps'](_0x5ad7e4){const _0x746aba=_0x3570f5;var _0x4a916c,_0x576d41,_0x27bb78,_0x441b99,_0x31aff5,_0x42ebc8;this[_0x746aba(0x2f1)]=(_0x4a916c=_0x5ad7e4['color'])!=null?_0x4a916c:this[_0x746aba(0x2f1)],this['_hovered']=(_0x576d41=_0x5ad7e4[_0x746aba(0x395)])!=null?_0x576d41:this[_0x746aba(0x366)],this[_0x746aba(0x374)]=(_0x27bb78=_0x5ad7e4[_0x746aba(0x340)])!=null?_0x27bb78:this['_range'],this[_0x746aba(0x270)]=(_0x441b99=_0x5ad7e4[_0x746aba(0x2e4)])!=null?_0x441b99:this['_name'],this[_0x746aba(0x33b)]=(_0x31aff5=_0x5ad7e4[_0x746aba(0x2fe)])!=null?_0x31aff5:this[_0x746aba(0x33b)],this[_0x746aba(0x286)]=(_0x42ebc8=_0x5ad7e4[_0x746aba(0x3ef)])!=null?_0x42ebc8:this[_0x746aba(0x286)],this[_0x746aba(0x31f)]({'width':_0x5ad7e4['width'],'height':_0x5ad7e4[_0x746aba(0x305)]});}['onMouseMove'](_0x5616fe){const _0x19949a=_0x3570f5,{row:_0x2358f6,column:_0x1bb821}=_0x5616fe;if(_0x2358f6>=this[_0x19949a(0x374)][_0x19949a(0x2c9)]&&_0x2358f6<=this[_0x19949a(0x374)]['endRow']&&_0x1bb821>=this[_0x19949a(0x374)][_0x19949a(0x3cb)]&&_0x1bb821<=this[_0x19949a(0x374)][_0x19949a(0x2cf)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x19949a(0x3c6)]({'hovered':!0x1});}[_0x3570f5(0x219)](_0xbaf620){return!0x1;}[_0x3570f5(0x2ff)](_0x545110){const _0x1b0790=_0x3570f5;p[_0x1b0790(0x3c8)][_0x1b0790(0x38b)](_0x545110,{'width':this[_0x1b0790(0x33c)],'height':this['height'],'strokeWidth':Lt,'stroke':this[_0x1b0790(0x2f1)],'evented':!0x1,'fill':this[_0x1b0790(0x286)]}),this[_0x1b0790(0x366)]&&(_0x545110[_0x1b0790(0x217)](),_0x545110[_0x1b0790(0x33e)](0x1,0x0,0x0,0x1,this[_0x1b0790(0x33c)],this[_0x1b0790(0x33b)]===_0x1b0790(0x287)?0x0:-W),ee[_0x1b0790(0x38b)](_0x545110,{'text':this[_0x1b0790(0x270)],'color':this[_0x1b0790(0x2f1)]}),_0x545110[_0x1b0790(0x382)]());}}var Pt=Object[_0x3570f5(0x216)],wt=(_0x356715,_0x5ef3b9,_0xa62025,_0x44b14d)=>{const _0x1610e5=_0x3570f5;for(var _0x37a7b8=_0x44b14d>0x1?void 0x0:_0x44b14d?Pt(_0x5ef3b9,_0xa62025):_0x5ef3b9,_0x13cea1=_0x356715[_0x1610e5(0x367)]-0x1,_0xdfdaa2;_0x13cea1>=0x0;_0x13cea1--)(_0xdfdaa2=_0x356715[_0x13cea1])&&(_0x37a7b8=_0xdfdaa2(_0x37a7b8)||_0x37a7b8);return _0x37a7b8;},ae=(_0x171f18,_0x5c37f0)=>(_0x5115cf,_0x2df9b8)=>_0x5c37f0(_0x5115cf,_0x2df9b8,_0x171f18);const At=0x1389;let Ie=class extends a[_0x3570f5(0x210)]{constructor(_0x1fb010,_0x11c61c,_0x54eca1,_0xc9d3f3){const _0x1f0e9a=_0x3570f5;super(),h(this,'_cursors',new Set()),h(this,_0x1f0e9a(0x243),null),(this[_0x1f0e9a(0x2a2)]=_0x1fb010,this['_sheetSkeletonManagerService']=_0x11c61c,this['_collabCursorController']=_0x54eca1,this[_0x1f0e9a(0x193)]=_0xc9d3f3,this[_0x1f0e9a(0x403)]());}[_0x3570f5(0x403)](){const _0x474dcb=_0x3570f5;this[_0x474dcb(0x3de)][_0x474dcb(0x1f1)][_0x474dcb(0x2b1)]($[_0x474dcb(0x21e)](this[_0x474dcb(0x293)]),$['switchMap'](_0x24b4c6=>{const _0x59e0c1=_0x474dcb;if(_0x24b4c6){const _0x5510ef=_0x24b4c6[_0x59e0c1(0x41c)];return d['combineLatest'](this[_0x59e0c1(0x40f)][_0x59e0c1(0x407)](this[_0x59e0c1(0x2a2)][_0x59e0c1(0x410)]),this[_0x59e0c1(0x193)][_0x59e0c1(0x419)])['pipe']($[_0x59e0c1(0x28e)](([_0x735890,_0x31acb8])=>{const _0x49aa04=_0x59e0c1,_0x1581fa=new Map();return _0x735890[_0x49aa04(0x2b3)]((_0x992a9c,_0xa0dfb8)=>{const _0x5171b9=_0x49aa04;if(_0x992a9c[_0x5171b9(0x364)]===_0x5510ef){const _0x614db9={..._0x992a9c};_0x614db9[_0x5171b9(0x398)]=this['_themeService'][_0x5171b9(0x36d)](_0x992a9c[_0x5171b9(0x398)]),_0x1581fa['set'](_0xa0dfb8,_0x614db9);}}),{'skeleton':_0x24b4c6,'cursors':_0x1581fa};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x35e20c,cursors:_0x112373})=>{const _0x3e536c=_0x474dcb;this['_removeCollabCursors'](),_0x35e20c&&this[_0x3e536c(0x387)](_0x35e20c,_0x112373);}),this[_0x474dcb(0x3de)][_0x474dcb(0x1f1)][_0x474dcb(0x3e4)](_0x2f6874=>{const _0x1e338d=_0x474dcb;if(_0x2f6874==null)return;const {skeleton:_0x1fec33}=_0x2f6874,{scene:_0x409258}=this[_0x1e338d(0x2a2)];_0x409258[_0x1e338d(0x247)][_0x1e338d(0x1bb)](a['debounce'](_0x140a4d=>{const _0x451ae3=_0x1e338d;var _0x27d21a,_0x36af8f;const {offsetX:_0x2da098,offsetY:_0x1582f9}=_0x140a4d,{x:_0x56cf39,y:_0x267b25}=_0x409258[_0x451ae3(0x3cf)](p[_0x451ae3(0x26f)]['FromArray']([_0x2da098,_0x1582f9])),{scaleX:_0x43f696,scaleY:_0x1c1283}=_0x409258[_0x451ae3(0x37c)](),_0xf9f0d3=_0x409258[_0x451ae3(0x3d5)](p[_0x451ae3(0x200)][_0x451ae3(0x1be)]),_0x2144f2=_0x409258[_0x451ae3(0x3b7)](p[_0x451ae3(0x26f)]['FromArray']([_0x56cf39,_0x267b25]),_0xf9f0d3),_0x39e7b9=_0x1fec33['getCellPositionByOffset'](_0x2da098,_0x1582f9,_0x43f696,_0x1c1283,_0x2144f2);((_0x27d21a=this[_0x451ae3(0x243)])==null?void 0x0:_0x27d21a['column'])===_0x39e7b9[_0x451ae3(0x40c)]&&((_0x36af8f=this['_lastPointer'])==null?void 0x0:_0x36af8f['row'])===_0x39e7b9[_0x451ae3(0x1e1)]||this[_0x451ae3(0x2e7)][_0x451ae3(0x2b3)](_0x58f8dd=>{const _0x88f15d=_0x451ae3;_0x58f8dd[_0x88f15d(0x269)](_0x39e7b9);});},0x64));});}[_0x3570f5(0x387)](_0x2562e1,_0x36d26f){const _0x4c8338=_0x3570f5;var _0x1907b5;const _0x36f417=(_0x1907b5=this[_0x4c8338(0x3de)][_0x4c8338(0x1d8)]())==null?void 0x0:_0x1907b5[_0x4c8338(0x2f2)];if(!_0x36f417)return;const _0x31d9d6=this[_0x4c8338(0x25f)]();if(!_0x31d9d6)return;this[_0x4c8338(0x2e7)]['forEach'](_0x48bbf4=>{const _0x5a4b6a=_0x4c8338;_0x48bbf4[_0x5a4b6a(0x2a1)]();});const {scene:_0x576919}=_0x31d9d6,_0x2ee9ba=yt(Array[_0x4c8338(0x2a9)](_0x36d26f[_0x4c8338(0x22c)]()))[_0x4c8338(0x28e)](_0x222946=>{const _0xbe3db3=_0x4c8338,{color:_0x121dce,range:_0xa76299,name:_0x2e9d7d,selection:_0x42301c,sheetID:_0x53634}=_0x222946,{startColumn:_0x34db60,startRow:_0x23b93b,endColumn:_0xbd64e8,endRow:_0xcd3336}=_0xa76299,_0x47bc42=G[_0xbe3db3(0x35e)](_0x23b93b,_0x34db60,_0x576919,_0x36f417),_0x5316f2=G[_0xbe3db3(0x35e)](_0xcd3336,_0xbd64e8,_0x576919,_0x36f417),{columnHeaderHeightAndMarginTop:_0x57d885}=_0x36f417,{startX:_0x2b3a4e,startY:_0x2a48fd}=_0x47bc42,{endX:_0x46828e,endY:_0x438f77}=_0x5316f2,_0x6c8b68=_0x46828e-_0x2b3a4e,_0x35d759=_0x438f77-_0x2a48fd,_0x5792ee={'labelPosition':_0x2a48fd-_0x57d885>=W?_0xbe3db3(0x3f9):_0xbe3db3(0x287),'sheetID':_0x53634,'range':_0xa76299,'color':_0x121dce,'name':_0x2e9d7d,'selection':_0x42301c,'left':_0x2b3a4e,'top':_0x2a48fd,'width':_0x6c8b68,'height':_0x35d759,'evented':!0x1,'zIndex':At};return new $e(_0x2e9d7d,_0x5792ee);});_0x576919[_0x4c8338(0x231)](_0x2ee9ba,Mt),this[_0x4c8338(0x2e7)]=new Set(_0x2ee9ba);}[_0x3570f5(0x3f1)](){const _0x3f5a2b=_0x3570f5;var _0x4805bd;(_0x4805bd=this[_0x3f5a2b(0x2e7)])==null||_0x4805bd['forEach'](_0xaa0d52=>_0xaa0d52[_0x3f5a2b(0x1cc)]());}[_0x3570f5(0x25f)](){const _0x4eea07=_0x3570f5;return G[_0x4eea07(0x233)](this[_0x4eea07(0x2a2)]['unit'],this['_context']);}};Ie=wt([ae(0x1,a[_0x3570f5(0x1b9)](G[_0x3570f5(0x39a)])),ae(0x2,a[_0x3570f5(0x1b9)](x)),ae(0x3,a[_0x3570f5(0x1b9)](a[_0x3570f5(0x1ac)]))],Ie);function yt(_0x28e8e6){const _0x489186=_0x3570f5,_0xbe8aff=new Map();return _0x28e8e6['forEach'](_0x4b5092=>{const _0x152fcf=_0x3d45;if(_0xbe8aff['has'](_0x4b5092[_0x152fcf(0x244)])){const _0x3aaa3a=_0xbe8aff[_0x152fcf(0x33a)](_0x4b5092['selection']);_0x3aaa3a[_0x152fcf(0x2e4)]+=',\x20'+_0x4b5092['name'];}else _0xbe8aff[_0x152fcf(0x41b)](_0x4b5092[_0x152fcf(0x244)],_0x4b5092);}),Array[_0x489186(0x2a9)](_0xbe8aff[_0x489186(0x22c)]());}var $t=Object['getOwnPropertyDescriptor'],xt=(_0x52b990,_0x238789,_0x34256f,_0x459d7f)=>{const _0x716675=_0x3570f5;for(var _0x73327d=_0x459d7f>0x1?void 0x0:_0x459d7f?$t(_0x238789,_0x34256f):_0x238789,_0x4c78e7=_0x52b990[_0x716675(0x367)]-0x1,_0x4ebf4e;_0x4c78e7>=0x0;_0x4c78e7--)(_0x4ebf4e=_0x52b990[_0x4c78e7])&&(_0x73327d=_0x4ebf4e(_0x73327d)||_0x73327d);return _0x73327d;},y=(_0x4fb3e1,_0x51b43b)=>(_0x151baf,_0x5b9644)=>_0x51b43b(_0x151baf,_0x5b9644,_0x4fb3e1);let q=class extends a['Disposable']{constructor(_0x1c0683,_0xd347d6,_0x1f8d78,_0xdf8bf2,_0x3a1dd3,_0x5ce3a5){const _0x398509=_0x3570f5;super(),this[_0x398509(0x3ab)]=_0x1c0683,this[_0x398509(0x215)]=_0xd347d6,this[_0x398509(0x1ad)]=_0x1f8d78,this['_messageService']=_0xdf8bf2,this['_notificationService']=_0x3a1dd3,this[_0x398509(0x32e)]=_0x5ce3a5,this[_0x398509(0x2c5)](),this[_0x398509(0x1df)]();}[_0x3570f5(0x2c5)](){const _0x19d7d4=_0x3570f5;this[_0x19d7d4(0x34d)](this[_0x19d7d4(0x3ab)][_0x19d7d4(0x311)](()=>{const _0x3e493e=_0x19d7d4;if(this[_0x3e493e(0x215)][_0x3e493e(0x404)][_0x3e493e(0x22a)])return this[_0x3e493e(0x32e)]['t'](_0x3e493e(0x1ab));}));}[_0x3570f5(0x1df)](){const _0x32f0de=_0x3570f5;this[_0x32f0de(0x34d)](this['_collaborationUIEventService'][_0x32f0de(0x384)][_0x32f0de(0x3e4)](_0x5da3f6=>{const _0x43c696=_0x32f0de;_0x5da3f6['id']===u[_0x43c696(0x2cb)]['OTHER_CLIENT_EDITING']&&this[_0x43c696(0x1b3)][_0x43c696(0x3c7)]({'type':D[_0x43c696(0x3ac)][_0x43c696(0x204)],'content':this['_localeService']['t'](_0x43c696(0x3f8))}),_0x5da3f6['id']===u[_0x43c696(0x2cb)][_0x43c696(0x321)]&&this[_0x43c696(0x1b3)][_0x43c696(0x3c7)]({'type':D[_0x43c696(0x3ac)]['Warning'],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x5da3f6['id']===u['CollaborationUIEventId']['PERMISSION_DENIED']&&this[_0x43c696(0x2d7)]['show']({'title':this[_0x43c696(0x32e)]['t'](_0x43c696(0x220)),'content':this[_0x43c696(0x32e)]['t'](_0x43c696(0x2df)),'type':_0x43c696(0x26c),'duration':0x0}),_0x5da3f6['id']===u[_0x43c696(0x2cb)]['CONFLICT']&&this[_0x43c696(0x1b3)]['show']({'type':D['MessageType'][_0x43c696(0x280)],'content':this[_0x43c696(0x32e)]['t'](_0x43c696(0x27b))+'('+_0x5da3f6[_0x43c696(0x33f)]+')'}),_0x5da3f6['id']===u[_0x43c696(0x2cb)][_0x43c696(0x3c5)]&&this[_0x43c696(0x1b3)][_0x43c696(0x3c7)]({'type':D[_0x43c696(0x3ac)][_0x43c696(0x204)],'content':this[_0x43c696(0x32e)]['t'](_0x5da3f6['data']||'')}),_0x5da3f6['id']===u[_0x43c696(0x2cb)][_0x43c696(0x32c)]&&this[_0x43c696(0x1b3)][_0x43c696(0x3c7)]({'type':D[_0x43c696(0x3ac)][_0x43c696(0x204)],'content':this[_0x43c696(0x32e)]['t'](_0x43c696(0x1a6))}),_0x5da3f6['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0x43c696(0x1b3)][_0x43c696(0x3c7)]({'type':D[_0x43c696(0x3ac)][_0x43c696(0x280)],'content':this['_localeService']['t'](_0x43c696(0x32a))}),_0x5da3f6['id']===u[_0x43c696(0x2cb)][_0x43c696(0x3fb)]&&this[_0x43c696(0x1b3)]['show']({'type':D['MessageType']['Error'],'content':this[_0x43c696(0x32e)]['t'](_0x43c696(0x19a))});}));}};q=xt([y(0x0,O[_0x3570f5(0x1a2)]),y(0x1,u[_0x3570f5(0x1f0)]),y(0x2,a[_0x3570f5(0x1b9)](u[_0x3570f5(0x3e0)])),y(0x3,O[_0x3570f5(0x3b6)]),y(0x4,O[_0x3570f5(0x2a0)]),y(0x5,a['Inject'](a[_0x3570f5(0x347)]))],q);const Bt=_0x3570f5(0x273),De={};var jt=Object[_0x3570f5(0x216)],kt=(_0x153844,_0x4e66af,_0x46aa18,_0x15c0ae)=>{const _0x3636a9=_0x3570f5;for(var _0xc8fa72=_0x15c0ae>0x1?void 0x0:_0x15c0ae?jt(_0x4e66af,_0x46aa18):_0x4e66af,_0x3e6be6=_0x153844[_0x3636a9(0x367)]-0x1,_0x417e21;_0x3e6be6>=0x0;_0x3e6be6--)(_0x417e21=_0x153844[_0x3e6be6])&&(_0xc8fa72=_0x417e21(_0xc8fa72)||_0xc8fa72);return _0xc8fa72;},Ue=(_0x5e9448,_0x3afc25)=>(_0x4f614d,_0x4b10e9)=>_0x3afc25(_0x4f614d,_0x4b10e9,_0x5e9448);let z=class{constructor(_0x4a8912,_0x5eeaaf){const _0x380b98=_0x3570f5;this['_transformService']=_0x4a8912,this[_0x380b98(0x319)]=_0x5eeaaf;}['transformIMECache'](_0x19b994){const _0x463986=_0x3570f5;this[_0x463986(0x2b5)](_0x19b994),this['_transformPreviousActiveRange'](_0x19b994);}[_0x3570f5(0x2ed)](_0x37c966){const _0x2f3f4b=_0x3570f5,{unitID:_0x24b533}=_0x37c966,_0x2e9e9c=this[_0x2f3f4b(0x319)]['getRenderById'](_0x24b533)['with'](E[_0x2f3f4b(0x299)]),{redoCache:_0x4acb34}=_0x2e9e9c[_0x2f3f4b(0x26e)]();if(_0x4acb34[_0x2f3f4b(0x367)]===0x0)return _0x37c966;let _0xd7ceaf=a[_0x2f3f4b(0x197)]['deepClone'](_0x37c966[_0x2f3f4b(0x225)][0x0]);for(let _0x4921f6=0x0;_0x4921f6<_0x4acb34[_0x2f3f4b(0x367)];_0x4921f6++){const _0x2ba3e5={'id':'doc.mutation.rich-text-editing','params':{..._0x4acb34[_0x4921f6]}},_0x2ce974=this[_0x2f3f4b(0x28c)]['transformMutation'](_0xd7ceaf,_0x2ba3e5,!0x1);if(m[_0x2f3f4b(0x211)](_0x2ce974))throw _0x2ce974['error'];_0xd7ceaf=_0x2ce974['m1Prime'];}return{...a[_0x2f3f4b(0x197)]['deepClone'](_0x37c966),'mutations':[_0xd7ceaf]};}[_0x3570f5(0x2b5)](_0x154404){const _0x270e0a=_0x3570f5,{unitID:_0x5b54cb}=_0x154404,_0xad9f1d=this[_0x270e0a(0x319)][_0x270e0a(0x1da)](_0x5b54cb)['with'](E[_0x270e0a(0x299)]),{undoCache:_0xede0c0,redoCache:_0x1b13f5}=_0xad9f1d[_0x270e0a(0x26e)]();if(_0xede0c0[_0x270e0a(0x367)]===0x0||_0x1b13f5[_0x270e0a(0x367)]===0x0)return;const _0x46d3e2=[],_0x1545ca=[];let _0xb5ee2d=a[_0x270e0a(0x197)][_0x270e0a(0x37d)](_0x154404[_0x270e0a(0x225)][0x0]),_0x361aa6=a[_0x270e0a(0x197)]['deepClone'](_0x154404[_0x270e0a(0x225)][0x0]);for(let _0x2dcab2=_0xede0c0[_0x270e0a(0x367)]-0x1;_0x2dcab2>=0x0;_0x2dcab2--){const _0x12d6a9={'id':'doc.mutation.rich-text-editing','params':{..._0xede0c0[_0x2dcab2]}},_0x51655e={'id':'doc.mutation.rich-text-editing','params':{..._0x1b13f5[_0x2dcab2]}},_0x3668eb=this[_0x270e0a(0x28c)][_0x270e0a(0x263)](_0xb5ee2d,_0x12d6a9,!0x1),_0x30ca6b=this[_0x270e0a(0x28c)][_0x270e0a(0x263)](_0x361aa6,_0x51655e,!0x1);if(m[_0x270e0a(0x211)](_0x3668eb))throw _0x3668eb[_0x270e0a(0x26c)];if(m[_0x270e0a(0x211)](_0x30ca6b))throw _0x30ca6b[_0x270e0a(0x26c)];_0x46d3e2[_0x270e0a(0x35c)](_0x3668eb['m2Prime']['params']),_0x1545ca['unshift'](_0x30ca6b[_0x270e0a(0x1e6)]['params']),_0xb5ee2d=_0x3668eb[_0x270e0a(0x3ee)],_0x361aa6=_0x30ca6b[_0x270e0a(0x3ee)];}_0xad9f1d[_0x270e0a(0x3fa)]({'undoCache':_0x46d3e2,'redoCache':_0x1545ca});}[_0x3570f5(0x295)](_0x32247a){const _0x214f05=_0x3570f5,{unitID:_0x8c728b}=_0x32247a,_0x103395=this['_renderManagerService']['getRenderById'](_0x8c728b)[_0x214f05(0x21c)](E['DocIMEInputManagerService']),_0x361ef7=_0x103395[_0x214f05(0x3cc)]();if(_0x361ef7==null)return;const _0x392296=[{'id':_0x214f05(0x1b8),'params':{'unitId':_0x32247a[_0x214f05(0x260)],'actions':null,'textRanges':[_0x361ef7]}}],_0xdfee6a=this[_0x214f05(0x28c)][_0x214f05(0x1aa)](_0x32247a,_0x392296);if(!m[_0x214f05(0x41d)](_0xdfee6a))throw _0xdfee6a['error'];const _0x471047=_0xdfee6a['m2Prime'][0x0][_0x214f05(0x31d)][_0x214f05(0x196)];Array['isArray'](_0x471047)&&_0x471047[_0x214f05(0x367)]&&_0x103395[_0x214f05(0x333)](_0x471047[0x0]);}};z=kt([Ue(0x0,m[_0x3570f5(0x326)]),Ue(0x1,p[_0x3570f5(0x20e)])],z);var Ft=Object[_0x3570f5(0x216)],Ht=(_0x4189b0,_0x2d9cad,_0x33d070,_0x37cca9)=>{for(var _0x2c047f=_0x37cca9>0x1?void 0x0:_0x37cca9?Ft(_0x2d9cad,_0x33d070):_0x2d9cad,_0x1c407e=_0x4189b0['length']-0x1,_0x194fcf;_0x1c407e>=0x0;_0x1c407e--)(_0x194fcf=_0x4189b0[_0x1c407e])&&(_0x2c047f=_0x194fcf(_0x2c047f)||_0x2c047f);return _0x2c047f;},ce=(_0x3e1b4c,_0xd9775a)=>(_0x44e9d6,_0x2db009)=>_0xd9775a(_0x44e9d6,_0x2db009,_0x3e1b4c);let J=class{constructor(_0x5e2f4d,_0x2b6fd8,_0xb570d0){const _0x4f7090=_0x3570f5;this[_0x4f7090(0x376)]=_0x5e2f4d,this[_0x4f7090(0x28c)]=_0x2b6fd8,this[_0x4f7090(0x402)]=_0xb570d0;}[_0x3570f5(0x1d7)](_0x44c7a9){const _0xf498d7=_0x3570f5;this[_0xf498d7(0x309)](_0x44c7a9);}[_0x3570f5(0x2ed)](_0x548c69){const _0x2198bc=_0x3570f5,{unitID:_0x121f00}=_0x548c69,{collaboration:_0x5dc574}=this[_0x2198bc(0x402)][_0x2198bc(0x31e)](_0x121f00);if(_0x5dc574[_0x2198bc(0x367)]===0x0)return _0x548c69;let _0x3b4518=a['Tools']['deepClone'](_0x548c69['mutations'][0x0]);for(let _0x23f72d=0x0;_0x23f72d<_0x5dc574['length'];_0x23f72d++){const _0x5a8b7d={'id':_0x2198bc(0x1b8),'params':{'unitId':_0x5dc574[_0x23f72d][_0x2198bc(0x410)],..._0x5dc574[_0x23f72d][_0x2198bc(0x1a3)]}},_0x5821c7=this['_transformService'][_0x2198bc(0x263)](_0x3b4518,_0x5a8b7d,!0x1);if(m[_0x2198bc(0x211)](_0x5821c7))throw _0x5821c7[_0x2198bc(0x26c)];_0x3b4518=_0x5821c7[_0x2198bc(0x3ee)];}return{...a[_0x2198bc(0x197)]['deepClone'](_0x548c69),'mutations':[_0x3b4518]};}[_0x3570f5(0x309)](_0x200f9f){const _0x3b6cb0=_0x3570f5,{unitID:_0x938411}=_0x200f9f,{history:_0x483e8b,collaboration:_0x4cd8a0}=this[_0x3b6cb0(0x402)]['getStateCache'](_0x938411);if(_0x483e8b[_0x3b6cb0(0x367)]===0x0&&_0x4cd8a0[_0x3b6cb0(0x367)]===0x0)return;const _0x5e5f2a=[],_0x5db268=[];let _0x4ab7e0=a[_0x3b6cb0(0x197)][_0x3b6cb0(0x37d)](_0x200f9f[_0x3b6cb0(0x225)][0x0]),_0x4c60db=a[_0x3b6cb0(0x197)]['deepClone'](_0x200f9f[_0x3b6cb0(0x225)][0x0]);for(let _0x4c9d2f=_0x483e8b['length']-0x1;_0x4c9d2f>=0x0;_0x4c9d2f--){const _0x4bc278={'id':_0x3b6cb0(0x1b8),'params':{'unitId':_0x483e8b[_0x4c9d2f][_0x3b6cb0(0x410)],..._0x483e8b[_0x4c9d2f]['undoState']}},_0x1dd6f3={'id':_0x3b6cb0(0x1b8),'params':{'unitId':_0x483e8b[_0x4c9d2f][_0x3b6cb0(0x410)],..._0x483e8b[_0x4c9d2f][_0x3b6cb0(0x1a3)]}},_0x3062de=this[_0x3b6cb0(0x28c)][_0x3b6cb0(0x263)](_0x4ab7e0,_0x4bc278,!0x1),_0xc9b036=this['_transformService'][_0x3b6cb0(0x263)](_0x4c60db,_0x1dd6f3,!0x1);if(m[_0x3b6cb0(0x211)](_0x3062de))throw _0x3062de['error'];if(m['isTransformMutationFailure'](_0xc9b036))throw _0xc9b036[_0x3b6cb0(0x26c)];_0x5e5f2a[_0x3b6cb0(0x35c)]({..._0x483e8b[_0x4c9d2f],'undoState':_0x3062de[_0x3b6cb0(0x1e6)][_0x3b6cb0(0x31d)],'redoState':_0xc9b036[_0x3b6cb0(0x1e6)][_0x3b6cb0(0x31d)]}),_0x4ab7e0=_0x3062de['m1Prime'],_0x4c60db=_0xc9b036[_0x3b6cb0(0x3ee)];}_0x4ab7e0=a[_0x3b6cb0(0x197)][_0x3b6cb0(0x37d)](_0x200f9f['mutations'][0x0]),_0x4c60db=a[_0x3b6cb0(0x197)]['deepClone'](_0x200f9f[_0x3b6cb0(0x225)][0x0]);for(let _0x49ef53=_0x4cd8a0[_0x3b6cb0(0x367)]-0x1;_0x49ef53>=0x0;_0x49ef53--){const _0x330dfe={'id':_0x3b6cb0(0x1b8),'params':{'unitId':_0x4cd8a0[_0x49ef53][_0x3b6cb0(0x410)],..._0x4cd8a0[_0x49ef53][_0x3b6cb0(0x257)]}},_0xbdabad={'id':_0x3b6cb0(0x1b8),'params':{'unitId':_0x4cd8a0[_0x49ef53][_0x3b6cb0(0x410)],..._0x4cd8a0[_0x49ef53][_0x3b6cb0(0x1a3)]}},_0x3f6bb0=this[_0x3b6cb0(0x28c)]['transformMutation'](_0x4ab7e0,_0x330dfe,!0x1),_0x492e85=this[_0x3b6cb0(0x28c)][_0x3b6cb0(0x263)](_0x4c60db,_0xbdabad,!0x1);if(m[_0x3b6cb0(0x211)](_0x3f6bb0))throw _0x3f6bb0[_0x3b6cb0(0x26c)];if(m[_0x3b6cb0(0x211)](_0x492e85))throw _0x492e85['error'];_0x5db268[_0x3b6cb0(0x35c)]({..._0x4cd8a0[_0x49ef53],'undoState':_0x3f6bb0[_0x3b6cb0(0x1e6)][_0x3b6cb0(0x31d)],'redoState':_0x492e85['m2Prime'][_0x3b6cb0(0x31d)]}),_0x4ab7e0=_0x3f6bb0[_0x3b6cb0(0x3ee)],_0x4c60db=_0x492e85['m1Prime'];}this[_0x3b6cb0(0x402)][_0x3b6cb0(0x23c)](_0x938411,{'history':_0x5e5f2a,'collaboration':_0x5db268});}};J=Ht([ce(0x0,a[_0x3570f5(0x1b9)](a[_0x3570f5(0x2f5)])),ce(0x1,m[_0x3570f5(0x326)]),ce(0x2,a[_0x3570f5(0x1b9)](E[_0x3570f5(0x226)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x48724b,_0x21d867,_0x496193,_0x4fc361)=>{for(var _0x37a234=_0x4fc361>0x1?void 0x0:_0x4fc361?Yt(_0x21d867,_0x496193):_0x21d867,_0x4e7bf4=_0x48724b['length']-0x1,_0x192f74;_0x4e7bf4>=0x0;_0x4e7bf4--)(_0x192f74=_0x48724b[_0x4e7bf4])&&(_0x37a234=_0x192f74(_0x37a234)||_0x37a234);return _0x37a234;},Ne=(_0x32c123,_0x4b0f11)=>(_0x380370,_0x1a5370)=>_0x4b0f11(_0x380370,_0x1a5370,_0x32c123);let Z=class{constructor(_0x4c4b47,_0x10aa72){const _0x23d9db=_0x3570f5;this[_0x23d9db(0x376)]=_0x4c4b47,this[_0x23d9db(0x28c)]=_0x10aa72;}[_0x3570f5(0x198)](_0x12d99c){const _0x388436=_0x3570f5;var _0x551d19;const _0x390189=this[_0x388436(0x376)][_0x388436(0x33a)](Y[_0x388436(0x1a8)]),_0x4839f8=(_0x551d19=_0x390189[_0x388436(0x2e9)]())!=null?_0x551d19:[];if(_0x4839f8['length']===0x0)return;const _0x25dfac=_0x12d99c[_0x388436(0x260)],_0x3db88e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x25dfac,'actions':null,'textRanges':_0x4839f8}}],_0x32475a=this[_0x388436(0x28c)][_0x388436(0x1aa)](_0x12d99c,_0x3db88e);if(!m['isTransformMutationsWithChangesetSuccess'](_0x32475a))throw _0x32475a['error'];const _0x3e7571=_0x32475a[_0x388436(0x1e6)][0x0][_0x388436(0x31d)][_0x388436(0x196)];Array[_0x388436(0x22b)](_0x3e7571)&&_0x3e7571['length']&&_0x390189[_0x388436(0x248)](_0x3e7571,{'unitId':_0x25dfac,'subUnitId':_0x25dfac},!0x1);}};Z=Wt([Ne(0x0,a[_0x3570f5(0x1b9)](a['Injector'])),Ne(0x1,m[_0x3570f5(0x326)])],Z);var Vt=Object[_0x3570f5(0x216)],Xt=(_0x3cbeaa,_0x561024,_0x27c9e7,_0x2c5b7b)=>{const _0x2a104e=_0x3570f5;for(var _0x4b614c=_0x2c5b7b>0x1?void 0x0:_0x2c5b7b?Vt(_0x561024,_0x27c9e7):_0x561024,_0x500b12=_0x3cbeaa[_0x2a104e(0x367)]-0x1,_0xfd698e;_0x500b12>=0x0;_0x500b12--)(_0xfd698e=_0x3cbeaa[_0x500b12])&&(_0x4b614c=_0xfd698e(_0x4b614c)||_0x4b614c);return _0x4b614c;},N=(_0x3951c0,_0x42ed32)=>(_0x55722b,_0x55c795)=>_0x42ed32(_0x55722b,_0x55c795,_0x3951c0);let Q=class extends a[_0x3570f5(0x3cd)]{constructor(_0x18b502,_0x197f97,_0x21f853,_0x356320,_0x46fa5a,_0x4504fc,_0x1785f6,_0x1cb6e7){const _0x59b428=_0x3570f5;super(),h(this,_0x59b428(0x288),new d[(_0x59b428(0x35b))](u[_0x59b428(0x290)][_0x59b428(0x1bc)])),(this[_0x59b428(0x402)]=_0x18b502,this['_collaborationController']=_0x197f97,this[_0x59b428(0x3d8)]=_0x21f853,this['_docTransformStateCacheService']=_0x356320,this[_0x59b428(0x34a)]=_0x46fa5a,this[_0x59b428(0x3eb)]=_0x4504fc,this[_0x59b428(0x1b3)]=_0x1785f6,this[_0x59b428(0x32e)]=_0x1cb6e7,this[_0x59b428(0x3bb)]());}[_0x3570f5(0x3bb)](){const _0x3dd134=_0x3570f5;this[_0x3dd134(0x34d)](this[_0x3dd134(0x1eb)][_0x3dd134(0x2f6)][_0x3dd134(0x3e4)](_0x1e72ff=>{const _0x24a269=_0x3dd134,_0x5aa130=this[_0x24a269(0x402)][_0x24a269(0x296)][_0x24a269(0x3e4)](_0x1b8cb7=>{const _0x2763f9=_0x24a269;if(_0x1b8cb7==null)return;const {unitId:_0x274ba9,redoState:_0x30ac9b,commandId:_0x9d127c}=_0x1b8cb7;if(_0x274ba9!==_0x1e72ff[_0x2763f9(0x260)])return;const _0x58da69={'id':_0x9d127c,'type':a[_0x2763f9(0x2d9)]['MUTATION'],'params':{'unitId':_0x274ba9,'actions':_0x30ac9b[_0x2763f9(0x2a6)],'textRanges':null}};_0x1e72ff['onLocalMutation'](_0x58da69);});if(_0x1e72ff[_0x24a269(0x34d)](_0x5aa130),_0x1e72ff instanceof u[_0x24a269(0x3dc)]){const _0x3f828f={'onTransformIME':_0x16b96b=>this[_0x24a269(0x3d8)][_0x24a269(0x276)](_0x16b96b),'onTransformState':_0x35a294=>this[_0x24a269(0x264)][_0x24a269(0x1d7)](_0x35a294),'onTransformSelections':_0x5c908=>this[_0x24a269(0x34a)]['transformSelections'](_0x5c908),'onSyncEditingCollabCursor':_0x57dd24=>this[_0x24a269(0x3eb)][_0x24a269(0x2aa)](_0x57dd24),'onTransformRemoteChangesetByIMECache':_0x409617=>this[_0x24a269(0x3d8)]['transformRemoteChangeset'](_0x409617),'onTransformRemoteChangesetByStateCache':_0x431e50=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x431e50)};_0x1e72ff[_0x24a269(0x27e)](_0x3f828f);}}));}};Q=Xt([N(0x0,a[_0x3570f5(0x1b9)](E[_0x3570f5(0x226)])),N(0x1,a[_0x3570f5(0x1b9)](u[_0x3570f5(0x254)])),N(0x2,a[_0x3570f5(0x1b9)](z)),N(0x3,a[_0x3570f5(0x1b9)](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0x3570f5(0x1b9)](pe)),N(0x6,O[_0x3570f5(0x3b6)]),N(0x7,a[_0x3570f5(0x1b9)](a[_0x3570f5(0x347)]))],Q);var Gt=Object[_0x3570f5(0x216)],Kt=(_0x5039f1,_0x2312a2,_0x518c0b,_0x169dd1)=>{const _0x58446f=_0x3570f5;for(var _0x43afcb=_0x169dd1>0x1?void 0x0:_0x169dd1?Gt(_0x2312a2,_0x518c0b):_0x2312a2,_0x14c891=_0x5039f1[_0x58446f(0x367)]-0x1,_0x1c0357;_0x14c891>=0x0;_0x14c891--)(_0x1c0357=_0x5039f1[_0x14c891])&&(_0x43afcb=_0x1c0357(_0x43afcb)||_0x43afcb);return _0x43afcb;},le=(_0x3d26d4,_0x27068d)=>(_0x330d91,_0xdf214c)=>_0x27068d(_0x330d91,_0xdf214c,_0x3d26d4);let ve=class extends a[_0x3570f5(0x3cd)]{constructor(_0x4da99b,_0x404799,_0x1549fd){const _0x284499=_0x3570f5;super(),h(this,_0x284499(0x3a1),new Map()),h(this,_0x284499(0x1e2),new Map()),h(this,_0x284499(0x356),!0x1),(this['_configService']=_0x4da99b,this['_localStorageService']=_0x404799,this[_0x284499(0x335)]=_0x1549fd);}[_0x3570f5(0x2da)](){const _0x555e50=_0x3570f5;this[_0x555e50(0x356)]=!0x0;}['enableLocalCache'](){const _0x2b0086=_0x3570f5;this[_0x2b0086(0x356)]=!0x1;}get[_0x3570f5(0x404)](){return this['_saveTaskMap'];}[_0x3570f5(0x1cc)](){const _0x198c23=_0x3570f5;this['exhaustSavingTask']()['then'](()=>super[_0x198c23(0x1cc)]());}async[_0x3570f5(0x2c4)](_0x168511){const _0x4a964b=_0x3570f5;return this[_0x4a964b(0x356)]?null:this[_0x4a964b(0x30c)][_0x4a964b(0x3e1)](u[_0x4a964b(0x3f0)](_0x168511));}async[_0x3570f5(0x3e7)](_0x1a5cb0,_0x2aa92c){const _0x1710f9=_0x3570f5;return!!this[_0x1710f9(0x30c)][_0x1710f9(0x1d4)](_0x1a5cb0,_0x2aa92c);}[_0x3570f5(0x3ea)](_0x174a39,_0x2d1059,_0x5b1086,_0x146541){const _0x5b6a73=_0x3570f5,_0x15aadc=this[_0x5b6a73(0x335)]['getCurrentRevOfUnit'](_0x174a39);this[_0x5b6a73(0x3a1)][_0x5b6a73(0x41b)](_0x174a39,{'unitID':_0x174a39,'type':_0x2d1059,'awaitingChangeset':_0x5b1086,'mutations':_0x146541,'rev':_0x15aadc}),this[_0x5b6a73(0x1e2)]['has'](_0x174a39)||this[_0x5b6a73(0x2a7)](_0x174a39);}[_0x3570f5(0x2a7)](_0x7e0cae){const _0x50b5c6=_0x3570f5,_0x276857=this['_getSaveTimeout']();_0x276857===0x0?this[_0x50b5c6(0x3a8)](_0x7e0cae):this[_0x50b5c6(0x1e2)]['set'](_0x7e0cae,setTimeout(()=>this[_0x50b5c6(0x3a8)](_0x7e0cae),_0x276857));}[_0x3570f5(0x33d)](){const _0x36251c=_0x3570f5;var _0x11b41a;return(_0x11b41a=this[_0x36251c(0x2fb)][_0x36251c(0x361)](u[_0x36251c(0x3a6)]))!=null?_0x11b41a:u[_0x36251c(0x304)];}['_saveCache'](_0x4674f4){const _0x3b85ca=_0x3570f5,_0x5cad77=this['_saveTaskMap'][_0x3b85ca(0x33a)](_0x4674f4);return _0x5cad77!==void 0x0&&window[_0x3b85ca(0x23b)](_0x5cad77),this[_0x3b85ca(0x30c)][_0x3b85ca(0x1d4)](u[_0x3b85ca(0x3f0)](_0x4674f4),this[_0x3b85ca(0x3a1)][_0x3b85ca(0x33a)](_0x4674f4))[_0x3b85ca(0x2ee)](()=>this['_saveTaskMap']['delete'](_0x4674f4));}async[_0x3570f5(0x246)](){const _0x5bcffa=_0x3570f5,_0x2b9a3e=[];this[_0x5bcffa(0x1e2)][_0x5bcffa(0x2b3)]((_0x1f08ce,_0x5bf94b)=>{const _0x2af146=_0x5bcffa;window[_0x2af146(0x23b)](_0x1f08ce),_0x2b9a3e[_0x2af146(0x272)](this[_0x2af146(0x3a8)](_0x5bf94b)[_0x2af146(0x2ee)](()=>{const _0x5a761a=_0x2af146;this[_0x5a761a(0x1e2)][_0x5a761a(0x316)](_0x5bf94b);}));}),await Promise['all'](_0x2b9a3e);}};ve=Kt([le(0x0,a[_0x3570f5(0x1ae)]),le(0x1,a[_0x3570f5(0x27d)]),le(0x2,a['Inject'](m[_0x3570f5(0x414)]))],ve);class xe extends a[_0x3570f5(0x210)]{constructor(){const _0x404eef=_0x3570f5;super(),h(this,_0x404eef(0x3c0)),this[_0x404eef(0x3c0)]=d[_0x404eef(0x1ba)](window,'popstate')[_0x404eef(0x2b1)](d[_0x404eef(0x21e)](this[_0x404eef(0x293)]),d[_0x404eef(0x258)](0x1),d[_0x404eef(0x253)](void 0x0));}['setParam'](_0x110a37,_0x21eead,_0x3da4e6=!0x1){const _0x175e8b=_0x3570f5,_0x4da722=new URL(window[_0x175e8b(0x1cb)][_0x175e8b(0x2d0)]);_0x4da722[_0x175e8b(0x348)]['set'](_0x110a37,_0x21eead),_0x3da4e6?window[_0x175e8b(0x1f4)][_0x175e8b(0x289)]('','',_0x4da722['toString']()):window[_0x175e8b(0x1f4)]['pushState']('','',_0x4da722['toString']());}[_0x3570f5(0x23d)](_0x23141a,_0x210c7a=!0x1){const _0xaeb699=_0x3570f5,_0x32843b=new URL(window[_0xaeb699(0x1cb)][_0xaeb699(0x2d0)]);_0x32843b['searchParams'][_0xaeb699(0x316)](_0x23141a),_0x210c7a?window[_0xaeb699(0x1f4)][_0xaeb699(0x289)]('','',_0x32843b['toString']()):window['history'][_0xaeb699(0x390)]('','',_0x32843b['toString']());}[_0x3570f5(0x2f3)](_0x503078){const _0x197a38=_0x3570f5;var _0x4dda25;return(_0x4dda25=new URL(window[_0x197a38(0x1cb)][_0x197a38(0x2d0)])[_0x197a38(0x348)][_0x197a38(0x33a)](_0x503078))!=null?_0x4dda25:void 0x0;}}var qt=Object[_0x3570f5(0x2bb)],zt=Object[_0x3570f5(0x216)],Jt=(_0x20e835,_0x153075,_0x1270c6)=>_0x153075 in _0x20e835?qt(_0x20e835,_0x153075,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1270c6}):_0x20e835[_0x153075]=_0x1270c6,Zt=(_0x42f821,_0x220095,_0x290c61,_0x1422e6)=>{const _0x3fde40=_0x3570f5;for(var _0x1cc135=_0x1422e6>0x1?void 0x0:_0x1422e6?zt(_0x220095,_0x290c61):_0x220095,_0x9ed872=_0x42f821[_0x3fde40(0x367)]-0x1,_0x5ea14f;_0x9ed872>=0x0;_0x9ed872--)(_0x5ea14f=_0x42f821[_0x9ed872])&&(_0x1cc135=_0x5ea14f(_0x1cc135)||_0x1cc135);return _0x1cc135;},_e=(_0x2b4504,_0xe8dcea)=>(_0x19a716,_0x417780)=>_0xe8dcea(_0x19a716,_0x417780,_0x2b4504),Qt=(_0x281c8c,_0x7ab1a7,_0x430927)=>Jt(_0x281c8c,_0x7ab1a7+'',_0x430927);const es=_0x3570f5(0x3d6);exports[_0x3570f5(0x397)]=class extends a[_0x3570f5(0x310)]{constructor(_0x25a354=De,_0x46788b,_0x298aee,_0xe45b14){const _0x45d121=_0x3570f5;super(),this[_0x45d121(0x32d)]=_0x25a354,this[_0x45d121(0x319)]=_0x46788b,this[_0x45d121(0x376)]=_0x298aee,this[_0x45d121(0x2fb)]=_0xe45b14;const {..._0x40b17b}=a['merge']({},De,this['_config']);this['_configService'][_0x45d121(0x1e7)](Bt,_0x40b17b);}['onStarting'](){const _0x48ef3b=_0x3570f5;this[_0x48ef3b(0x2c7)](),this[_0x48ef3b(0x415)]();}[_0x3570f5(0x37b)](){const _0x4c4efd=_0x3570f5;this[_0x4c4efd(0x332)]();}[_0x3570f5(0x2c7)](){const _0x5f03af=_0x3570f5;var _0x37df45;const _0x18ffb4=[[Ce],[Z],[z],[J],[pe],[me,{'useClass':xe}],[K[_0x5f03af(0x2eb)],{'useClass':K[_0x5f03af(0x2c8)]}],[u['ILocalCacheService'],{'useClass':ve}],[exports[_0x5f03af(0x1d5)]],[Q],[q],[x],[ue],[exports[_0x5f03af(0x394)]]];a[_0x5f03af(0x37e)](this[_0x5f03af(0x376)],a[_0x5f03af(0x2b9)](_0x18ffb4,(_0x37df45=this[_0x5f03af(0x32d)])==null?void 0x0:_0x37df45['override']));}['_registerRenderDependencies'](){const _0x367f0d=_0x3570f5;this['disposeWithMe'](this[_0x367f0d(0x319)][_0x367f0d(0x232)](a[_0x367f0d(0x40a)][_0x367f0d(0x24f)],[fe])),this[_0x367f0d(0x34d)](this['_renderManagerService'][_0x367f0d(0x232)](a['UniverInstanceType'][_0x367f0d(0x1fb)],[Ie]));}[_0x3570f5(0x415)](){const _0x452bc3=_0x3570f5;a[_0x452bc3(0x1a5)](this[_0x452bc3(0x376)],[[x],[exports[_0x452bc3(0x1d5)]],[Q],[q],[exports[_0x452bc3(0x394)]]]);}},Qt(exports[_0x3570f5(0x397)],'pluginName',es),exports['UniverCollaborationClientUIPlugin']=Zt([a['DependentOn'](u[_0x3570f5(0x1c9)]),_e(0x1,p[_0x3570f5(0x20e)]),_e(0x2,a[_0x3570f5(0x1b9)](a[_0x3570f5(0x2f5)])),_e(0x3,a['IConfigService'])],exports[_0x3570f5(0x397)]);var ts=Object[_0x3570f5(0x216)],ss=(_0x127b00,_0x4a401a,_0x44c083,_0x51223c)=>{for(var _0x4bcbe7=_0x51223c>0x1?void 0x0:_0x51223c?ts(_0x4a401a,_0x44c083):_0x4a401a,_0x3553c5=_0x127b00['length']-0x1,_0x3a14e6;_0x3553c5>=0x0;_0x3553c5--)(_0x3a14e6=_0x127b00[_0x3553c5])&&(_0x4bcbe7=_0x3a14e6(_0x4bcbe7)||_0x4bcbe7);return _0x4bcbe7;},H=(_0x27deb4,_0x4956d8)=>(_0x5f5de5,_0x483169)=>_0x4956d8(_0x5f5de5,_0x483169,_0x27deb4);exports[_0x3570f5(0x3bc)]=class extends u[_0x3570f5(0x245)]{constructor(_0x6c1aa7,_0x1f8c35,_0x2c212d,_0x167676,_0x861d41){super(_0x6c1aa7,_0x1f8c35,_0x2c212d,_0x167676,_0x861d41);}async[_0x3570f5(0x206)](_0x574048){const _0x2172b3=_0x3570f5,_0xcd2563=await this['_getSessionTicket'](),_0x1db34e=this[_0x2172b3(0x2cc)](_0x574048,_0xcd2563);return this[_0x2172b3(0x1c1)](_0x1db34e);}[_0x3570f5(0x2cc)](_0x10869a,_0x139298){const _0x432dc0=_0x3570f5,_0x1e4d79=typeof window>'u'?new URL(_0x10869a):new URL(_0x10869a,window[_0x432dc0(0x1cb)]['origin']);_0x1e4d79['searchParams'][_0x432dc0(0x41b)](_0x432dc0(0x358),_0x139298);const _0x27f6c7=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x432dc0(0x1cb)][_0x432dc0(0x330)]);return _0x27f6c7['get']('runId')&&_0x1e4d79[_0x432dc0(0x348)][_0x432dc0(0x41b)](_0x432dc0(0x2f0),_0x27f6c7[_0x432dc0(0x33a)](_0x432dc0(0x2f0))),_0x1e4d79[_0x432dc0(0x3c3)]();}async['_getSessionTicket'](){const _0x4fa5ce=_0x3570f5;var _0x45d1fa,_0x405e84,_0x2f8cc8;const _0x3b5e4a=this['_configService'][_0x4fa5ce(0x361)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x1e283b=(_0x45d1fa=_0x3b5e4a==null?void 0x0:_0x3b5e4a[_0x4fa5ce(0x413)])!=null?_0x45d1fa:u[_0x4fa5ce(0x1dc)];return(_0x2f8cc8=(_0x405e84=(await this[_0x4fa5ce(0x199)][_0x4fa5ce(0x33a)](_0x1e283b,{'headers':{'Content-Type':_0x4fa5ce(0x3d9)}}))[_0x4fa5ce(0x3b2)])==null?void 0x0:_0x405e84[_0x4fa5ce(0x38e)])!=null?_0x2f8cc8:'';}},exports[_0x3570f5(0x3bc)]=ss([H(0x0,a[_0x3570f5(0x1b9)](a[_0x3570f5(0x2f5)])),H(0x1,a[_0x3570f5(0x1b9)](K['HTTPService'])),H(0x2,a[_0x3570f5(0x1ae)]),H(0x3,a[_0x3570f5(0x2bc)]),H(0x4,m[_0x3570f5(0x34f)])],exports[_0x3570f5(0x3bc)]);var Be=(_0xc97da=>(_0xc97da[_0xc97da[_0x3570f5(0x385)]=0x0]=_0x3570f5(0x385),_0xc97da[_0xc97da['OK']=0x1]='OK',_0xc97da[_0xc97da['INTERNAL_ERROR']=0x2]=_0x3570f5(0x221),_0xc97da[_0xc97da[_0x3570f5(0x3fc)]=0x3]=_0x3570f5(0x3fc),_0xc97da[_0xc97da[_0x3570f5(0x3e2)]=0x4]='NOT_FOUND',_0xc97da[_0xc97da[_0x3570f5(0x3b4)]=0x5]='UNAUTHENTICATED',_0xc97da[_0xc97da[_0x3570f5(0x1c3)]=0x6]=_0x3570f5(0x1c3),_0xc97da[_0xc97da[_0x3570f5(0x341)]=0x7]='INVALID_ARGUMENT',_0xc97da[_0xc97da[_0x3570f5(0x36c)]=0x8]=_0x3570f5(0x36c),_0xc97da[_0xc97da[_0x3570f5(0x2ab)]=0x9]=_0x3570f5(0x2ab),_0xc97da[_0xc97da[_0x3570f5(0x3f4)]=0xa]=_0x3570f5(0x3f4),_0xc97da[_0xc97da[_0x3570f5(0x1f8)]=0xb]=_0x3570f5(0x1f8),_0xc97da[_0xc97da['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x3570f5(0x1f5),_0xc97da[_0xc97da['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x3570f5(0x3b1),_0xc97da[_0xc97da[_0x3570f5(0x1a4)]=0xe]=_0x3570f5(0x1a4),_0xc97da[_0xc97da['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x3570f5(0x38f),_0xc97da[_0xc97da[_0x3570f5(0x3ec)]=0x1771]=_0x3570f5(0x3ec),_0xc97da[_0xc97da['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x3570f5(0x234),_0xc97da[_0xc97da[_0x3570f5(0x373)]=0x1773]=_0x3570f5(0x373),_0xc97da[_0xc97da[_0x3570f5(0x25d)]=0x1b59]='APPLY_REJECT',_0xc97da[_0xc97da[_0x3570f5(0x39d)]=0x1b5a]=_0x3570f5(0x39d),_0xc97da[_0xc97da[_0x3570f5(0x2e5)]=0x1b5b]=_0x3570f5(0x2e5),_0xc97da[_0xc97da[_0x3570f5(0x29d)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0xc97da[_0xc97da[_0x3570f5(0x1e0)]=0x1b5d]=_0x3570f5(0x1e0),_0xc97da[_0xc97da['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3570f5(0x1a0),_0xc97da[_0xc97da[_0x3570f5(0x19c)]=0x2329]=_0x3570f5(0x19c),_0xc97da[_0xc97da[_0x3570f5(0x2cd)]=0x232a]=_0x3570f5(0x2cd),_0xc97da[_0xc97da[_0x3570f5(0x327)]=0x232b]=_0x3570f5(0x327),_0xc97da[_0xc97da[_0x3570f5(0x2e0)]=0x232c]=_0x3570f5(0x2e0),_0xc97da[_0xc97da[_0x3570f5(0x1af)]=0x232d]=_0x3570f5(0x1af),_0xc97da[_0xc97da[_0x3570f5(0x230)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0xc97da[_0xc97da['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x3570f5(0x3e6),_0xc97da[_0xc97da['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x3570f5(0x209),_0xc97da[_0xc97da[_0x3570f5(0x3d4)]=0x2714]=_0x3570f5(0x3d4),_0xc97da[_0xc97da[_0x3570f5(0x267)]=0x271a]=_0x3570f5(0x267),_0xc97da[_0xc97da[_0x3570f5(0x255)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0xc97da[_0xc97da[_0x3570f5(0x3a3)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0xc97da[_0xc97da[_0x3570f5(0x1c0)]=0x271d]=_0x3570f5(0x1c0),_0xc97da[_0xc97da['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0xc97da[_0xc97da['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0xc97da[_0xc97da[_0x3570f5(0x2e2)]=0x2720]=_0x3570f5(0x2e2),_0xc97da[_0xc97da[_0x3570f5(0x3bf)]=0x2af9]=_0x3570f5(0x3bf),_0xc97da[_0xc97da[_0x3570f5(0x1ff)]=0x2ee1]=_0x3570f5(0x1ff),_0xc97da[_0xc97da['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0xc97da[_0xc97da[_0x3570f5(0x3df)]=0x2ee3]='INVITE_CODE_REQUIRED',_0xc97da[_0xc97da[_0x3570f5(0x1cd)]=0x2ee4]=_0x3570f5(0x1cd),_0xc97da[_0xc97da[_0x3570f5(0x3c4)]=0x2ee5]=_0x3570f5(0x3c4),_0xc97da[_0xc97da[_0x3570f5(0x401)]=0x32c9]=_0x3570f5(0x401),_0xc97da[_0xc97da['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x3570f5(0x405),_0xc97da[_0xc97da['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x3570f5(0x343),_0xc97da[_0xc97da[_0x3570f5(0x227)]=-0x1]=_0x3570f5(0x227),_0xc97da))(Be||{}),is=Object[_0x3570f5(0x216)],ns=(_0x2414da,_0x16c5f7,_0xf0856,_0x802cf5)=>{const _0x45dbdb=_0x3570f5;for(var _0x2bdb76=_0x802cf5>0x1?void 0x0:_0x802cf5?is(_0x16c5f7,_0xf0856):_0x16c5f7,_0x3faa49=_0x2414da[_0x45dbdb(0x367)]-0x1,_0x22bcba;_0x3faa49>=0x0;_0x3faa49--)(_0x22bcba=_0x2414da[_0x3faa49])&&(_0x2bdb76=_0x22bcba(_0x2bdb76)||_0x2bdb76);return _0x2bdb76;},he=(_0x29b75a,_0x5137b1)=>(_0x124763,_0x40609e)=>_0x5137b1(_0x124763,_0x40609e,_0x29b75a);exports['RemoteUniscriptService']=class extends a[_0x3570f5(0x3cd)]{constructor(_0x105e02,_0x31a907,_0x3caeae){const _0x3399fc=_0x3570f5;super(),this[_0x3399fc(0x3d7)]=_0x105e02,this[_0x3399fc(0x199)]=_0x31a907,this['_configService']=_0x3caeae;}async['runOnServer'](_0x51288c,_0x779eda,_0x15b1da,..._0x5ec9ea){const _0x1b9dcf=_0x3570f5;var _0x7b6ba6,_0x384aa4,_0x1d2267,_0x20be94;const _0x13da7d=this[_0x1b9dcf(0x3d7)][_0x1b9dcf(0x3ed)]();if(!_0x13da7d)throw new Error(_0x1b9dcf(0x36b));const _0x57e00a=((_0x7b6ba6=this[_0x1b9dcf(0x2fb)][_0x1b9dcf(0x361)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x7b6ba6:u[_0x1b9dcf(0x2c6)])+'/'+_0x51288c+'/run/'+_0x779eda,_0x11eb40=new URL(window[_0x1b9dcf(0x1cb)]['href']),_0x24501a={'scriptId':_0x51288c,'runId':(_0x384aa4=_0x11eb40[_0x1b9dcf(0x348)]['get'](_0x1b9dcf(0x2f0)))!=null?_0x384aa4:'','function':_0x779eda,'unitId':_0x13da7d[_0x1b9dcf(0x2e8)](),'argsOfFunction':JSON[_0x1b9dcf(0x29e)](_0x5ec9ea),'invokeId':(_0x1d2267=_0x15b1da['invokeId'])!=null?_0x1d2267:'','executionId':(_0x20be94=_0x15b1da[_0x1b9dcf(0x393)])!=null?_0x20be94:''};try{const _0x1159b2=await this[_0x1b9dcf(0x199)]['post'](_0x57e00a,{'body':_0x24501a});return _0x1159b2['body'][_0x1b9dcf(0x26c)]&&_0x1159b2[_0x1b9dcf(0x3b2)]['error'][_0x1b9dcf(0x40b)]!==Be['OK']?_0x1b9dcf(0x344):_0x1159b2[_0x1b9dcf(0x3b2)][_0x1b9dcf(0x1e9)];}catch{return _0x1b9dcf(0x344);}}},exports[_0x3570f5(0x34c)]=ns([he(0x0,a[_0x3570f5(0x386)]),he(0x1,a[_0x3570f5(0x1b9)](K[_0x3570f5(0x37f)])),he(0x2,a[_0x3570f5(0x1ae)])],exports[_0x3570f5(0x34c)]);const Me=0x7530,Le='ACTIVE_UNIT_EVENT_CHANNEL';class rs extends a[_0x3570f5(0x3cd)]{constructor(){const _0x5995aa=_0x3570f5;super(),h(this,_0x5995aa(0x21d),a[_0x5995aa(0x331)]()),h(this,_0x5995aa(0x294),new Set()),h(this,_0x5995aa(0x2ce),new Map()),h(this,_0x5995aa(0x203),null),h(this,_0x5995aa(0x22d),new Map()),h(this,_0x5995aa(0x271),new Map()),this[_0x5995aa(0x403)]();}[_0x3570f5(0x1cc)](){const _0x355c42=_0x3570f5;super['dispose'](),this[_0x355c42(0x22d)][_0x355c42(0x2b3)]((_0x2e5d8d,_0x3753f2)=>this[_0x355c42(0x28d)](_0x3753f2)),this[_0x355c42(0x203)]&&window[_0x355c42(0x2ba)](this[_0x355c42(0x203)]);}[_0x3570f5(0x3b8)](_0x4c7da){const _0x3622d0=_0x3570f5;return this[_0x3622d0(0x195)](_0x4c7da)[_0x3622d0(0x2b1)](d['distinctUntilChanged']());}[_0x3570f5(0x208)](_0x18d089){const _0x572533=_0x3570f5;this[_0x572533(0x294)]['size']===0x0&&this[_0x572533(0x324)](),this['_selfUnitIDs']['add'](_0x18d089),this['_send']({'type':0x0,'memberID':this[_0x572533(0x21d)],'unitIDs':[_0x18d089],'isForwarded':!0x1});}[_0x3570f5(0x275)](_0x3705f8){const _0x283d7e=_0x3570f5;this[_0x283d7e(0x294)]['delete'](_0x3705f8),this['_selfUnitIDs']['size']===0x0&&this[_0x283d7e(0x203)]&&window[_0x283d7e(0x2ba)](this[_0x283d7e(0x203)]);}[_0x3570f5(0x403)](){const _0x31cbdb=_0x3570f5;this[_0x31cbdb(0x34d)](a[_0x31cbdb(0x2a3)](d[_0x31cbdb(0x1ba)](window,_0x31cbdb(0x236))['subscribe'](_0x40c0b8=>{const _0xa3e11f=_0x31cbdb;if(_0x40c0b8[_0xa3e11f(0x349)]!==Le||!_0x40c0b8['newValue'])return;const _0x3d5319=JSON['parse'](_0x40c0b8[_0xa3e11f(0x24e)]);this[_0xa3e11f(0x3c9)](_0x3d5319);}))),window[_0x31cbdb(0x1fe)](_0x31cbdb(0x1b5),()=>this[_0x31cbdb(0x274)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x31cbdb(0x2a9)](this[_0x31cbdb(0x294)])}));}[_0x3570f5(0x3c9)](_0x152a21){const _0x3c349f=_0x3570f5;switch(_0x152a21[_0x3c349f(0x297)]){case 0x0:this[_0x3c349f(0x19e)](_0x152a21);break;case 0x1:this[_0x3c349f(0x409)](_0x152a21);break;case 0x2:this[_0x3c349f(0x362)](_0x152a21);break;}}[_0x3570f5(0x19e)](_0x420667){const _0x322d1b=_0x3570f5,{unitIDs:_0x3f2bcb,memberID:_0x2aa190,isForwarded:_0x5566f1}=_0x420667;_0x3f2bcb[_0x322d1b(0x2b3)](_0x396d7e=>{const _0x21b2b4=_0x322d1b;if(!_0x5566f1&&this[_0x21b2b4(0x2ce)][_0x21b2b4(0x1ee)](_0x396d7e)&&this[_0x21b2b4(0x195)](_0x396d7e)[_0x21b2b4(0x282)](u[_0x21b2b4(0x268)][_0x21b2b4(0x300)]),!this[_0x21b2b4(0x2ce)][_0x21b2b4(0x1ee)](_0x396d7e)||!this[_0x21b2b4(0x2ce)][_0x21b2b4(0x33a)](_0x396d7e)[_0x21b2b4(0x1ee)](_0x2aa190)){const _0x15da5c=this[_0x21b2b4(0x2ce)][_0x21b2b4(0x33a)](_0x396d7e)||new Set();_0x15da5c[_0x21b2b4(0x3ce)](_0x2aa190),this[_0x21b2b4(0x2ce)][_0x21b2b4(0x41b)](_0x396d7e,_0x15da5c),this[_0x21b2b4(0x1c5)](_0x2aa190);}}),_0x5566f1||this[_0x322d1b(0x274)]({'type':0x0,'memberID':this[_0x322d1b(0x21d)],'unitIDs':[...this[_0x322d1b(0x294)]],'isForwarded':!0x0});}[_0x3570f5(0x1c5)](_0x5dc6d0){const _0x25b60b=_0x3570f5;this[_0x25b60b(0x28d)](_0x5dc6d0);const _0x2853f0=window[_0x25b60b(0x28b)](()=>{const _0x1ab472=_0x25b60b;this[_0x1ab472(0x2ce)][_0x1ab472(0x2b3)](_0x3db235=>{const _0x149b80=_0x1ab472;_0x3db235[_0x149b80(0x316)](_0x5dc6d0);});},Me*0x2);this[_0x25b60b(0x22d)][_0x25b60b(0x41b)](_0x5dc6d0,_0x2853f0);}[_0x3570f5(0x28d)](_0x38073a){const _0x36e0c1=_0x3570f5;if(this['_clearOtherTimers']['has'](_0x38073a)){const _0x454cf8=this[_0x36e0c1(0x22d)]['get'](_0x38073a);_0x454cf8&&window['clearTimeout'](_0x454cf8),this[_0x36e0c1(0x22d)][_0x36e0c1(0x41b)](_0x38073a,null);}}['_handleLeaveEvent'](_0x5b7eb8){const _0x3eb61c=_0x3570f5,{memberID:_0x227a22,unitIDs:_0x5e74dd}=_0x5b7eb8;_0x5e74dd[_0x3eb61c(0x2b3)](_0x4e1780=>{const _0x2adabd=_0x3eb61c;var _0x49864a;const _0x2016be=this[_0x2adabd(0x2ce)][_0x2adabd(0x33a)](_0x4e1780);_0x2016be&&(_0x2016be[_0x2adabd(0x316)](_0x227a22),(_0x49864a=this[_0x2adabd(0x195)](_0x4e1780))==null||_0x49864a[_0x2adabd(0x282)](_0x2016be[_0x2adabd(0x22a)]===0x0?u[_0x2adabd(0x268)][_0x2adabd(0x207)]:u['UnitStatus'][_0x2adabd(0x300)]));}),this['_removeClearOtherTimer'](_0x227a22);}[_0x3570f5(0x362)](_0x1222b0){const _0x2329e2=_0x3570f5;this[_0x2329e2(0x1c5)](_0x1222b0[_0x2329e2(0x213)]);}[_0x3570f5(0x274)](_0x187e60){const _0x26ced5=_0x3570f5;localStorage[_0x26ced5(0x1d4)](Le,JSON[_0x26ced5(0x29e)](_0x187e60));}['_scheduleHeartbeat'](){const _0x2f4402=_0x3570f5;this[_0x2f4402(0x203)]=window[_0x2f4402(0x3fe)](()=>{const _0x12745e=_0x2f4402;this['_send']({'type':0x2,'memberID':this[_0x12745e(0x21d)]});},Me);}[_0x3570f5(0x195)](_0x30b506){const _0x5d29f8=_0x3570f5;return this['_unitStatus']['has'](_0x30b506)||this[_0x5d29f8(0x271)][_0x5d29f8(0x41b)](_0x30b506,new d[(_0x5d29f8(0x35b))](u[_0x5d29f8(0x268)][_0x5d29f8(0x207)])),this[_0x5d29f8(0x271)][_0x5d29f8(0x33a)](_0x30b506);}}exports[_0x3570f5(0x30f)]=me,exports['SheetCollabCursorShape']=$e,exports['WebBrowserSingleActiveUnitService']=rs,exports[_0x3570f5(0x323)]=xe;
|
|
1
|
+
'use strict';const _0x3dfb2c=_0x3c41;(function(_0x221c71,_0x1143bb){const _0x42bcb3=_0x3c41,_0x2db3fd=_0x221c71();while(!![]){try{const _0x1b4e0b=parseInt(_0x42bcb3(0x403))/0x1*(parseInt(_0x42bcb3(0x1d6))/0x2)+parseInt(_0x42bcb3(0x2f4))/0x3+parseInt(_0x42bcb3(0x25f))/0x4+-parseInt(_0x42bcb3(0x347))/0x5+-parseInt(_0x42bcb3(0x36f))/0x6+-parseInt(_0x42bcb3(0x31a))/0x7*(-parseInt(_0x42bcb3(0x3be))/0x8)+parseInt(_0x42bcb3(0x425))/0x9;if(_0x1b4e0b===_0x1143bb)break;else _0x2db3fd['push'](_0x2db3fd['shift']());}catch(_0x1bd950){_0x2db3fd['push'](_0x2db3fd['shift']());}}}(_0x4ae9,0x42df9));var We=Object['defineProperty'],Ve=(_0x3feefd,_0x86c2c7,_0x22ee32)=>_0x86c2c7 in _0x3feefd?We(_0x3feefd,_0x86c2c7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22ee32}):_0x3feefd[_0x86c2c7]=_0x22ee32,h=(_0x569317,_0xd7c16,_0x24e16f)=>Ve(_0x569317,typeof _0xd7c16!=_0x3dfb2c(0x35d)?_0xd7c16+'':_0xd7c16,_0x24e16f);Object[_0x3dfb2c(0x21e)](exports,Symbol[_0x3dfb2c(0x314)],{'value':'Module'});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),d=require('rxjs'),D=require('@univerjs/design'),M=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),p=require('@univerjs/engine-render'),K=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),Ee=require('@univerjs/engine-formula'),$=require('rxjs/operators'),G=require('@univerjs/sheets-ui');var b=function(){const _0x3565a4=_0x3dfb2c;return b=Object[_0x3565a4(0x1cf)]||function(_0x1c970d){const _0x491a4f=_0x3565a4;for(var _0x2e0776,_0x503189=0x1,_0x1c91c2=arguments[_0x491a4f(0x2ad)];_0x503189<_0x1c91c2;_0x503189++){_0x2e0776=arguments[_0x503189];for(var _0x390fbc in _0x2e0776)Object[_0x491a4f(0x393)][_0x491a4f(0x396)][_0x491a4f(0x333)](_0x2e0776,_0x390fbc)&&(_0x1c970d[_0x390fbc]=_0x2e0776[_0x390fbc]);}return _0x1c970d;},b[_0x3565a4(0x424)](this,arguments);},Ke=function(_0x1d04e0,_0x2ec8f7){const _0x5aab36=_0x3dfb2c;var _0x4b7755={};for(var _0x443c81 in _0x1d04e0)Object[_0x5aab36(0x393)]['hasOwnProperty'][_0x5aab36(0x333)](_0x1d04e0,_0x443c81)&&_0x2ec8f7[_0x5aab36(0x32b)](_0x443c81)<0x0&&(_0x4b7755[_0x443c81]=_0x1d04e0[_0x443c81]);if(_0x1d04e0!=null&&typeof Object[_0x5aab36(0x36c)]==_0x5aab36(0x3f3)){for(var _0x1f1f9d=0x0,_0x443c81=Object[_0x5aab36(0x36c)](_0x1d04e0);_0x1f1f9d<_0x443c81[_0x5aab36(0x2ad)];_0x1f1f9d++)_0x2ec8f7[_0x5aab36(0x32b)](_0x443c81[_0x1f1f9d])<0x0&&Object[_0x5aab36(0x393)][_0x5aab36(0x2b5)]['call'](_0x1d04e0,_0x443c81[_0x1f1f9d])&&(_0x4b7755[_0x443c81[_0x1f1f9d]]=_0x1d04e0[_0x443c81[_0x1f1f9d]]);}return _0x4b7755;},ge=M[_0x3dfb2c(0x239)](function(_0x5be1d8,_0x52963d){const _0x3fff62=_0x3dfb2c;var _0x352390=_0x5be1d8[_0x3fff62(0x232)],_0x3ab503=_0x5be1d8['id'],_0x3be282=_0x5be1d8[_0x3fff62(0x229)],_0x910ee5=_0x5be1d8[_0x3fff62(0x35a)],_0x11bcd4=Ke(_0x5be1d8,[_0x3fff62(0x232),'id',_0x3fff62(0x229),_0x3fff62(0x35a)]),_0x420133='univerjs-icon\x20univerjs-icon-'['concat'](_0x3ab503,'\x20')[_0x3fff62(0x25a)](_0x3be282||'')[_0x3fff62(0x25e)](),_0x59ae57=M[_0x3fff62(0x28d)]('_'[_0x3fff62(0x25a)](Je()));return Pe(_0x352390,''[_0x3fff62(0x25a)](_0x3ab503),{'defIds':_0x352390[_0x3fff62(0x397)],'idSuffix':_0x59ae57['current']},b({'ref':_0x52963d,'className':_0x420133},_0x11bcd4),_0x910ee5);});function Pe(_0x4542a0,_0xabd7be,_0x1f584b,_0x2c53f1,_0x3a8c8f){const _0x2e8cf9=_0x3dfb2c;return M[_0x2e8cf9(0x28c)](_0x4542a0[_0x2e8cf9(0x213)],b(b({'key':_0xabd7be},qe(_0x4542a0,_0x1f584b,_0x3a8c8f)),_0x2c53f1),(ze(_0x4542a0,_0x1f584b)[_0x2e8cf9(0x344)]||[])[_0x2e8cf9(0x412)](function(_0x486051,_0x54ea60){const _0x28ce61=_0x2e8cf9;return Pe(_0x486051,''[_0x28ce61(0x25a)](_0xabd7be,'-')[_0x28ce61(0x25a)](_0x4542a0[_0x28ce61(0x213)],'-')[_0x28ce61(0x25a)](_0x54ea60),_0x1f584b,void 0x0,_0x3a8c8f);}));}function qe(_0x28cdde,_0x43663a,_0x17ef7d){const _0x247972=_0x3dfb2c;var _0x47ecca=b({},_0x28cdde['attrs']);_0x17ef7d!=null&&_0x17ef7d[_0x247972(0x2f0)]&&_0x47ecca[_0x247972(0x1e9)]===_0x247972(0x2f0)&&(_0x47ecca[_0x247972(0x1e9)]=_0x17ef7d[_0x247972(0x2f0)]),_0x28cdde[_0x247972(0x213)]===_0x247972(0x3ca)&&_0x47ecca['id']&&(_0x47ecca['id']=_0x47ecca['id']+_0x43663a[_0x247972(0x2dd)]),Object[_0x247972(0x3c8)](_0x47ecca)[_0x247972(0x1c9)](function(_0x345c32){const _0x28960b=_0x247972;var _0x31bd58=_0x345c32[0x0],_0x543d84=_0x345c32[0x1];_0x31bd58===_0x28960b(0x3ca)&&typeof _0x543d84==_0x28960b(0x34a)&&(_0x47ecca[_0x31bd58]=_0x543d84[_0x28960b(0x22e)](/url\(#(.*)\)/,_0x28960b(0x251)[_0x28960b(0x25a)](_0x43663a[_0x28960b(0x2dd)],')')));});var _0x2f6995=_0x43663a['defIds'];return!_0x2f6995||_0x2f6995[_0x247972(0x2ad)]===0x0||(_0x28cdde[_0x247972(0x213)]==='use'&&_0x47ecca[_0x247972(0x299)]&&(_0x47ecca['xlink:href']=_0x47ecca[_0x247972(0x299)]+_0x43663a['idSuffix']),Object['entries'](_0x47ecca)['forEach'](function(_0x1718a1){const _0x3a127b=_0x247972;var _0x32b0a2=_0x1718a1[0x0],_0x233883=_0x1718a1[0x1];typeof _0x233883==_0x3a127b(0x34a)&&(_0x47ecca[_0x32b0a2]=_0x233883[_0x3a127b(0x22e)](/url\(#(.*)\)/,_0x3a127b(0x251)[_0x3a127b(0x25a)](_0x43663a[_0x3a127b(0x2dd)],')')));})),_0x47ecca;}function ze(_0x258f26,_0x3b74f9){const _0x5d9eca=_0x3dfb2c;var _0x2912fa,_0x5de648=_0x3b74f9['defIds'];return!_0x5de648||_0x5de648[_0x5d9eca(0x2ad)]===0x0?_0x258f26:_0x258f26[_0x5d9eca(0x213)]==='defs'&&(!((_0x2912fa=_0x258f26[_0x5d9eca(0x344)])===null||_0x2912fa===void 0x0)&&_0x2912fa[_0x5d9eca(0x2ad)])?b(b({},_0x258f26),{'children':_0x258f26[_0x5d9eca(0x344)][_0x5d9eca(0x412)](function(_0x5a8b9c){const _0x56686e=_0x5d9eca;return typeof _0x5a8b9c['attrs']['id']==_0x56686e(0x34a)&&_0x5de648&&_0x5de648[_0x56686e(0x3d9)](_0x5a8b9c[_0x56686e(0x3d0)]['id'])?b(b({},_0x5a8b9c),{'attrs':b(b({},_0x5a8b9c[_0x56686e(0x3d0)]),{'id':_0x5a8b9c[_0x56686e(0x3d0)]['id']+_0x3b74f9[_0x56686e(0x2dd)]})}):_0x5a8b9c;})}):_0x258f26;}function Je(){const _0x1d95b9=_0x3dfb2c;return Math[_0x1d95b9(0x262)]()[_0x1d95b9(0x1c7)](0x24)['substring'](0x2,0x8);}ge[_0x3dfb2c(0x2fd)]=_0x3dfb2c(0x315);var Ze={'tag':_0x3dfb2c(0x390),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x3dfb2c(0x1e0),'height':_0x3dfb2c(0x1e0)},'children':[{'tag':'g','attrs':{'clipPath':_0x3dfb2c(0x1f4)},'children':[{'tag':'path','attrs':{'stroke':_0x3dfb2c(0x263),'d':_0x3dfb2c(0x258),'strokeLinecap':_0x3dfb2c(0x30b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3dfb2c(0x250),'attrs':{},'children':[{'tag':_0x3dfb2c(0x375),'attrs':{'id':_0x3dfb2c(0x27c)},'children':[{'tag':_0x3dfb2c(0x3a8),'attrs':{'fill':_0x3dfb2c(0x304),'d':_0x3dfb2c(0x401)}}]}]}],'defIds':[_0x3dfb2c(0x27c)]},we=M[_0x3dfb2c(0x239)](function(_0x5c5cd1,_0x3d8a0e){const _0x5eb3fb=_0x3dfb2c;return M['createElement'](ge,Object[_0x5eb3fb(0x1cf)]({},_0x5c5cd1,{'id':_0x5eb3fb(0x2b7),'ref':_0x3d8a0e,'icon':Ze}));});we[_0x3dfb2c(0x2fd)]=_0x3dfb2c(0x3fb);var Qe={'tag':_0x3dfb2c(0x390),'attrs':{'xmlns':_0x3dfb2c(0x1f3),'fill':_0x3dfb2c(0x3dd),'viewBox':_0x3dfb2c(0x272),'width':'1em','height':_0x3dfb2c(0x1e0)},'children':[{'tag':'g','attrs':{'clipPath':_0x3dfb2c(0x1d2)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x3dfb2c(0x1e1),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3dfb2c(0x250),'attrs':{},'children':[{'tag':_0x3dfb2c(0x375),'attrs':{'id':_0x3dfb2c(0x3ce)},'children':[{'tag':_0x3dfb2c(0x3a8),'attrs':{'fill':_0x3dfb2c(0x304),'d':_0x3dfb2c(0x401),'transform':_0x3dfb2c(0x1eb)}}]}]}],'defIds':[_0x3dfb2c(0x3ce)]},Ae=M[_0x3dfb2c(0x239)](function(_0xaba246,_0x411a82){const _0x1511b2=_0x3dfb2c;return M[_0x1511b2(0x28c)](ge,Object[_0x1511b2(0x1cf)]({},_0xaba246,{'id':_0x1511b2(0x399),'ref':_0x411a82,'icon':Qe}));});Ae[_0x3dfb2c(0x2fd)]=_0x3dfb2c(0x1b0);function et(_0x43d07e){const _0x33d120=_0x3dfb2c;switch(_0x43d07e){case u[_0x33d120(0x2bc)]['OFFLINE']:return _0x33d120(0x2fb);case u[_0x33d120(0x2bc)][_0x33d120(0x392)]:return _0x33d120(0x402);case u[_0x33d120(0x2bc)][_0x33d120(0x3f7)]:return _0x33d120(0x3af);case u['CollaborationStatus'][_0x33d120(0x259)]:return _0x33d120(0x381);case u['CollaborationStatus']['AWAITING']:case u[_0x33d120(0x2bc)][_0x33d120(0x1fe)]:return'collabStatus.syncing';case u[_0x33d120(0x2bc)]['SYNCED']:case u[_0x33d120(0x2bc)][_0x33d120(0x3b2)]:return _0x33d120(0x2e4);}}function tt(_0xbee4f4){const _0x33207c=_0x3dfb2c,{status$:_0x4f25e7}=_0xbee4f4,_0x18d861=O['useObservable'](_0x4f25e7,u[_0x33207c(0x2bc)][_0x33207c(0x259)]),_0x5c0d89=O[_0x33207c(0x3f1)](a[_0x33207c(0x407)]),_0x5dc126=O['useDependency'](u[_0x33207c(0x3b8)]),_0xaae4a7=_0x18d861!==u[_0x33207c(0x2bc)][_0x33207c(0x1b3)],_0x3aba77=_0x5c0d89['t'](et(_0x18d861)),_0x1a1827=_0xaae4a7?P[_0x33207c(0x265)](Ae,{}):P[_0x33207c(0x265)](we,{}),_0x1d1679=M[_0x33207c(0x236)](()=>{const _0x4cab0e=_0x33207c;_0xaae4a7||_0x5dc126[_0x4cab0e(0x323)]();},[_0xaae4a7,_0x5dc126]);function _0x778289(){const _0x41d4f4=_0x33207c;return P[_0x41d4f4(0x313)](_0x41d4f4(0x394),{'className':_0x41d4f4(0x1bc),'onClick':_0x1d1679,'children':[P['jsx'](_0x41d4f4(0x394),{'className':D[_0x41d4f4(0x28b)](_0x41d4f4(0x310),{'univer-text-green-500':_0xaae4a7,'univer-text-red-500':!_0xaae4a7}),'children':_0x1a1827}),P[_0x41d4f4(0x265)]('div',{'className':_0x41d4f4(0x2eb),'children':_0x3aba77})]});}return _0xaae4a7?_0x778289():P[_0x33207c(0x265)](D[_0x33207c(0x3f6)],{'title':_0x5c0d89['t'](_0x33207c(0x2b1)),'children':_0x778289()});}var st=Object['getOwnPropertyDescriptor'],it=(_0x3bcfb8,_0x443d10,_0x391b38,_0x324fac)=>{const _0x562918=_0x3dfb2c;for(var _0x45475b=_0x324fac>0x1?void 0x0:_0x324fac?st(_0x443d10,_0x391b38):_0x443d10,_0x43046b=_0x3bcfb8[_0x562918(0x2ad)]-0x1,_0x2a3a40;_0x43046b>=0x0;_0x43046b--)(_0x2a3a40=_0x3bcfb8[_0x43046b])&&(_0x45475b=_0x2a3a40(_0x45475b)||_0x45475b);return _0x45475b;},V=(_0xca542e,_0x4894d9)=>(_0xa815b2,_0x3ef17a)=>_0x4894d9(_0xa815b2,_0x3ef17a,_0xca542e);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x3dfb2c(0x2db)]{constructor(_0x4bfede,_0x129e73,_0x1dc254,_0x1e3567){const _0x4439bd=_0x3dfb2c;super(),h(this,_0x4439bd(0x283),new d[(_0x4439bd(0x3bd))](u[_0x4439bd(0x2bc)][_0x4439bd(0x259)])),(this[_0x4439bd(0x2ce)]=_0x4bfede,this[_0x4439bd(0x21a)]=_0x129e73,this[_0x4439bd(0x27a)]=_0x1dc254,this[_0x4439bd(0x39f)]=_0x1e3567,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x3dfb2c(0x318)](){const _0x27cba0=_0x3dfb2c;this[_0x27cba0(0x238)](this['_univerInstanceService']['focused$']['pipe'](d['switchMap'](()=>{const _0x5f533f=_0x27cba0,_0x2297e9=this[_0x5f533f(0x2ce)][_0x5f533f(0x241)]();return _0x2297e9?this[_0x5f533f(0x27a)][_0x5f533f(0x35e)](_0x2297e9['getUnitId']()):d['of'](null);}),d[_0x27cba0(0x329)](_0x4e98e0=>_0x4e98e0?_0x4e98e0[_0x27cba0(0x2ff)]:d['of'](u['CollaborationStatus']['NOT_COLLAB'])))['subscribe'](_0x5b9bd5=>{const _0x4dca80=_0x27cba0;this[_0x4dca80(0x283)][_0x4dca80(0x246)](_0x5b9bd5);}));}['_initStatusComponent'](){const _0x2b6298=_0x3dfb2c;this[_0x2b6298(0x238)](this[_0x2b6298(0x39f)]['registerComponent'](O[_0x2b6298(0x292)]['HEADER_MENU'],()=>O[_0x2b6298(0x41b)](nt({'status$':this[_0x2b6298(0x283)][_0x2b6298(0x1ea)]()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=it([V(0x0,a[_0x3dfb2c(0x353)]),V(0x1,a[_0x3dfb2c(0x247)](a[_0x3dfb2c(0x3e2)])),V(0x2,a[_0x3dfb2c(0x247)](u[_0x3dfb2c(0x334)])),V(0x3,O[_0x3dfb2c(0x357)])],exports[_0x3dfb2c(0x301)]);function nt(_0x3d02de){const {status$:_0x142b7b}=_0x3d02de;return function(){const _0x203445=_0x3c41;return P[_0x203445(0x265)](tt,{'status$':_0x142b7b});};}const me=a[_0x3dfb2c(0x274)](_0x3dfb2c(0x290));var rt=Object['getOwnPropertyDescriptor'],ot=(_0x3a6cf0,_0x4ab33e,_0x587e02,_0x5cefd2)=>{for(var _0x203196=_0x5cefd2>0x1?void 0x0:_0x5cefd2?rt(_0x4ab33e,_0x587e02):_0x4ab33e,_0x46367f=_0x3a6cf0['length']-0x1,_0xb4cd0c;_0x46367f>=0x0;_0x46367f--)(_0xb4cd0c=_0x3a6cf0[_0x46367f])&&(_0x203196=_0xb4cd0c(_0x203196)||_0x203196);return _0x203196;},k=(_0x3394ff,_0x55e0b2)=>(_0x52579a,_0x3dfad9)=>_0x55e0b2(_0x52579a,_0x3dfad9,_0x3394ff);exports[_0x3dfb2c(0x3d5)]=class extends a['RxDisposable']{constructor(_0x4c514d,_0x105e1d,_0x12b11a,_0x1540ed,_0x4b721e){const _0x3e6564=_0x3dfb2c;super(),this[_0x3e6564(0x2ed)]=_0x4c514d,this[_0x3e6564(0x1ae)]=_0x105e1d,this[_0x3e6564(0x27d)]=_0x12b11a,this['_dataLoaderService']=_0x1540ed,_0x4b721e?_0x4b721e==null||_0x4b721e[_0x3e6564(0x332)]()[_0x3e6564(0x3b1)](()=>this[_0x3e6564(0x254)]()):(this[_0x3e6564(0x1ae)][_0x3e6564(0x406)](_0x3e6564(0x356),_0x3e6564(0x1d1)),this[_0x3e6564(0x254)]());}async[_0x3dfb2c(0x254)](){const _0x12896d=_0x3dfb2c,_0x25bcad=this[_0x12896d(0x2ed)][_0x12896d(0x210)](_0x12896d(0x346)),_0x578be0=this['_urlService']['getParam']('type'),_0x2ed996=this[_0x12896d(0x2ed)][_0x12896d(0x210)](_0x12896d(0x327));if(!_0x25bcad||!_0x578be0){this['_logService'][_0x12896d(0x406)](_0x12896d(0x356),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x4cbfcb=await this[_0x12896d(0x37c)]['loadUnit'](_0x25bcad,Number(_0x578be0),_0x2ed996);_0x4cbfcb&&_0x4cbfcb instanceof a[_0x12896d(0x40a)]&&this[_0x12896d(0x380)](_0x4cbfcb);}async[_0x3dfb2c(0x380)](_0x5ad20b){const _0x2cf405=_0x3dfb2c;await this['_updateSubUnitFromURLParams'](_0x5ad20b),_0x5ad20b[_0x2cf405(0x1ca)][_0x2cf405(0x2d9)](d['takeUntil'](this[_0x2cf405(0x319)]))[_0x2cf405(0x30e)](_0x3e3df4=>{const _0x2453be=_0x2cf405;_0x3e3df4&&this[_0x2453be(0x2b0)](_0x3e3df4);}),this[_0x2cf405(0x2ed)][_0x2cf405(0x28a)]['pipe'](d[_0x2cf405(0x3c6)](this[_0x2cf405(0x319)]))['subscribe'](()=>this[_0x2cf405(0x1e6)](_0x5ad20b));}[_0x3dfb2c(0x2b0)](_0x29513c,_0x2690f4=!0x1){const _0x5a03ed=_0x3dfb2c,_0x2dd9dd=this[_0x5a03ed(0x2ed)][_0x5a03ed(0x210)](_0x5a03ed(0x327));_0x29513c['getSheetId']()!==_0x2dd9dd&&this[_0x5a03ed(0x2ed)]['setParam'](_0x5a03ed(0x327),_0x29513c[_0x5a03ed(0x207)](),_0x2690f4);}async[_0x3dfb2c(0x1e6)](_0x30c9c5){const _0x3bd072=_0x3dfb2c;var _0x35db1c;const _0x1db14a=this[_0x3bd072(0x2ed)][_0x3bd072(0x210)]('subunit');if(!_0x1db14a||!_0x30c9c5[_0x3bd072(0x234)](_0x1db14a)){const _0x4dc7a4=_0x30c9c5[_0x3bd072(0x3b7)]()[0x0],_0x4e71e9=_0x30c9c5[_0x3bd072(0x234)](_0x4dc7a4);if(!_0x4e71e9)return;this[_0x3bd072(0x2b0)](_0x4e71e9,!0x0),await this['_commandService'][_0x3bd072(0x1f6)](g[_0x3bd072(0x38e)]['id'],{'unitId':_0x30c9c5[_0x3bd072(0x40c)](),'subUnitId':_0x4dc7a4});return;}((_0x35db1c=_0x30c9c5[_0x3bd072(0x398)]())==null?void 0x0:_0x35db1c[_0x3bd072(0x207)]())!==_0x1db14a&&await this[_0x3bd072(0x27d)][_0x3bd072(0x1f6)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x30c9c5[_0x3bd072(0x40c)](),'subUnitId':_0x1db14a});}},exports[_0x3dfb2c(0x3d5)]=ot([k(0x0,me),k(0x1,a[_0x3dfb2c(0x37d)]),k(0x2,a[_0x3dfb2c(0x33f)]),k(0x3,a[_0x3dfb2c(0x247)](u['DataLoaderService'])),k(0x4,a[_0x3dfb2c(0x33e)](Xe['IRemoteInstanceService']))],exports['CollaborationDataLoaderController']);var at=Object[_0x3dfb2c(0x276)],ct=(_0x2c94a3,_0x8a4b0c,_0x29067d,_0x598c07)=>{for(var _0x24a10e=_0x598c07>0x1?void 0x0:_0x598c07?at(_0x8a4b0c,_0x29067d):_0x8a4b0c,_0x4a7523=_0x2c94a3['length']-0x1,_0x2bae0b;_0x4a7523>=0x0;_0x4a7523--)(_0x2bae0b=_0x2c94a3[_0x4a7523])&&(_0x24a10e=_0x2bae0b(_0x24a10e)||_0x24a10e);return _0x24a10e;},be=(_0x52f747,_0x4e4a6a)=>(_0x2b7abd,_0x21a27f)=>_0x4e4a6a(_0x2b7abd,_0x21a27f,_0x52f747);let ue=class extends a[_0x3dfb2c(0x366)]{constructor(_0x54e137,_0x3cd947){const _0x5d0cfd=_0x3dfb2c;super(),this[_0x5d0cfd(0x382)]=_0x54e137,this['_imageIoService']=_0x3cd947,this[_0x5d0cfd(0x254)]();}[_0x3dfb2c(0x254)](){const _0x2bd4c4=_0x3dfb2c,_0x176920=this;this['disposeWithMe'](this[_0x2bd4c4(0x382)]['addClipboardHook']({'onBeforePasteImage':async _0x38a5b6=>{const _0x337fe9=_0x2bd4c4,_0x57d64c=await _0x176920[_0x337fe9(0x2f7)]['saveImage'](_0x38a5b6);return _0x57d64c?{'source':_0x57d64c[_0x337fe9(0x20d)],'imageSourceType':_0x57d64c[_0x337fe9(0x27b)]}:null;}}));}};ue=ct([be(0x0,E['IDocClipboardService']),be(0x1,Ge['IImageIoService'])],ue);const Oe=[_0x3dfb2c(0x24f),_0x3dfb2c(0x291),_0x3dfb2c(0x295),'red.300',_0x3dfb2c(0x243),'yellow.400'];class Ce extends a[_0x3dfb2c(0x2db)]{constructor(){const _0x1de4e3=_0x3dfb2c;super(...arguments),h(this,_0x1de4e3(0x3e5),new Map()),h(this,_0x1de4e3(0x2af),0x0);}['assignAColorForMemberID'](_0x54b042){const _0x39d24c=_0x3dfb2c;if(this[_0x39d24c(0x3e5)][_0x39d24c(0x377)](_0x54b042))return this['_assignedColors']['get'](_0x54b042);const _0x4399fc=Oe[this[_0x39d24c(0x2af)]];return this[_0x39d24c(0x2af)]=(this['_colorIndex']+0x1)%Oe['length'],this[_0x39d24c(0x3e5)]['set'](_0x54b042,_0x4399fc),_0x4399fc;}}function ye(_0x380bb6){let _0x5c71ee='';for(const _0x467939 of _0x380bb6){const {startOffset:_0x4b2a4e,endOffset:_0x3a942d,isActive:_0x196df3,rangeType:_0x5e18c8,segmentId:_0x1c876a,segmentPage:_0xdefc00}=_0x467939;_0x5c71ee['length']&&(_0x5c71ee+=','),_0x5c71ee+=_0x4b2a4e+':'+_0x3a942d+':'+(_0x196df3?'1':'0')+':'+_0x5e18c8+':'+_0x1c876a+':'+_0xdefc00;}return _0x5c71ee;}function lt(_0x1f9968){const _0x224c46=_0x3dfb2c,_0x429330=_0x1f9968['split'](','),_0x5ee8ad=[];for(const _0x520d38 of _0x429330){const [_0x1ae401,_0x773ad,_0x520746,_0x4d1630,_0x53cdb7,_0x2860a5]=_0x520d38[_0x224c46(0x355)](':');_0x5ee8ad[_0x224c46(0x280)]({'startOffset':Number(_0x1ae401),'endOffset':Number(_0x773ad),'collapsed':_0x1ae401===_0x773ad,'isActive':_0x520746==='1','rangeType':_0x4d1630===a['DOC_RANGE_TYPE']['TEXT']?a[_0x224c46(0x2ba)][_0x224c46(0x2fa)]:a[_0x224c46(0x2ba)]['RECT'],'segmentId':typeof _0x53cdb7==_0x224c46(0x34a)?String(_0x53cdb7):'','segmentPage':Number(_0x2860a5!=null?_0x2860a5:-0x1)});}return _0x5ee8ad[_0x224c46(0x34e)](_0x105564=>_0x105564[_0x224c46(0x289)])||(_0x5ee8ad[0x0][_0x224c46(0x289)]=!0x0),_0x5ee8ad;}class pe extends a['RxDisposable']{constructor(){const _0x4397f7=_0x3dfb2c;super(...arguments),h(this,'_collabCursorState$',new d[(_0x4397f7(0x3bd))](null)),h(this,_0x4397f7(0x3ae),this[_0x4397f7(0x325)][_0x4397f7(0x1ea)]());}[_0x3dfb2c(0x20e)](_0x401fce){const _0x37684e=_0x3dfb2c,{unitID:_0x45ea15,memberID:_0xd4581f,textRanges:_0x5b94e7}=_0x401fce,_0x88967b=ye(_0x5b94e7);if(_0x88967b==='')return;const _0xf1ab6c={'unitID':_0x45ea15,'memberID':_0xd4581f,'selection':_0x88967b};this[_0x37684e(0x325)][_0x37684e(0x246)](_0xf1ab6c);}}var _t=Object['getOwnPropertyDescriptor'],ht=(_0x2bb376,_0x3b28d9,_0x86cd90,_0x5d03f3)=>{const _0x308a9f=_0x3dfb2c;for(var _0x9805d0=_0x5d03f3>0x1?void 0x0:_0x5d03f3?_t(_0x3b28d9,_0x86cd90):_0x3b28d9,_0x23e802=_0x2bb376[_0x308a9f(0x2ad)]-0x1,_0x35700a;_0x23e802>=0x0;_0x23e802--)(_0x35700a=_0x2bb376[_0x23e802])&&(_0x9805d0=_0x35700a(_0x9805d0)||_0x9805d0);return _0x9805d0;},L=(_0x4f9625,_0x5cf278)=>(_0x57914e,_0x755474)=>_0x5cf278(_0x57914e,_0x755474,_0x4f9625);const ut=0x12c,dt=0x64;let de=class extends a[_0x3dfb2c(0x366)]{constructor(_0x3ecc3f,_0x109067,_0x58a94e,_0xf98b65,_0x1612cf,_0x1c8e82,_0x263789,_0x129ebf,_0x2e45f1){const _0x1aecbb=_0x3dfb2c;super(),h(this,'_online',!0x1),h(this,_0x1aecbb(0x254),!0x1),h(this,_0x1aecbb(0x3e3),new d[(_0x1aecbb(0x3bd))](new Map())),h(this,_0x1aecbb(0x385),this[_0x1aecbb(0x3e3)][_0x1aecbb(0x1ea)]()),h(this,_0x1aecbb(0x3fa),new d['BehaviorSubject']([])),h(this,_0x1aecbb(0x39c),this[_0x1aecbb(0x3fa)][_0x1aecbb(0x2d9)](d[_0x1aecbb(0x39b)](ut))),h(this,_0x1aecbb(0x253),a[_0x1aecbb(0x335)](_0x2d6ed1=>{const _0x1bdc12=_0x1aecbb,_0x173241={'eventID':m['CollaborationEvent'][_0x1bdc12(0x1d4)],'data':{'unitID':this[_0x1bdc12(0x328)],'memberID':this[_0x1bdc12(0x338)][_0x1bdc12(0x378)](),'selection':ye(_0x2d6ed1)}};this[_0x1bdc12(0x338)][_0x1bdc12(0x3a5)](_0x173241,this[_0x1bdc12(0x328)]);},dt)),(this[_0x1aecbb(0x328)]=_0x3ecc3f,this[_0x1aecbb(0x338)]=_0x109067,this[_0x1aecbb(0x21a)]=_0x58a94e,this[_0x1aecbb(0x204)]=_0xf98b65,this['_memberService']=_0x1612cf,this['_syncEditingCollabCursorService']=_0x1c8e82,this[_0x1aecbb(0x2a4)]=_0x263789,this[_0x1aecbb(0x2ce)]=_0x129ebf,this[_0x1aecbb(0x27d)]=_0x2e45f1);}get[_0x3dfb2c(0x2cc)](){const _0x5703c5=_0x3dfb2c;return this['_cursorInfo$'][_0x5703c5(0x1b7)]();}get[_0x3dfb2c(0x306)](){const _0x3a46a2=_0x3dfb2c;return this[_0x3a46a2(0x3fa)][_0x3a46a2(0x1b7)]();}[_0x3dfb2c(0x279)](){const _0x1d0b15=_0x3dfb2c;super[_0x1d0b15(0x279)](),this[_0x1d0b15(0x3e3)][_0x1d0b15(0x246)](new Map()),this[_0x1d0b15(0x3e3)]['complete'](),this[_0x1d0b15(0x3fa)][_0x1d0b15(0x246)]([]),this[_0x1d0b15(0x3fa)][_0x1d0b15(0x379)]();}[_0x3dfb2c(0x41a)](){const _0x2e71bb=_0x3dfb2c;this[_0x2e71bb(0x254)]||(this['_init']=!0x0,this['_session'][_0x2e71bb(0x3b0)][_0x2e71bb(0x2d9)](d['takeUntil'](this[_0x2e71bb(0x319)]))[_0x2e71bb(0x30e)](_0x151d69=>{const _0x5e66e6=_0x2e71bb;_0x151d69===u[_0x5e66e6(0x1b2)][_0x5e66e6(0x2e1)]?this[_0x5e66e6(0x286)]():this[_0x5e66e6(0x2d1)]();}),this[_0x2e71bb(0x338)]['event$'][_0x2e71bb(0x2d9)](d[_0x2e71bb(0x3c6)](this[_0x2e71bb(0x319)]))[_0x2e71bb(0x30e)](_0x46b343=>{const _0x4e89f9=_0x2e71bb,_0x5541b2=_0x46b343[_0x4e89f9(0x331)];_0x5541b2===m[_0x4e89f9(0x24d)]['UPDATE_CURSOR']&&this[_0x4e89f9(0x1f2)](_0x46b343),_0x5541b2===m['CollaborationEvent'][_0x4e89f9(0x217)]&&this['_onCursorDelete'](_0x46b343);}),this[_0x2e71bb(0x238)](this[_0x2e71bb(0x27d)]['onCommandExecuted'](_0x314a11=>{const _0x2bc1e8=_0x2e71bb,_0x4d9650=_0x314a11['params'];_0x4d9650!=null&&this['_online']&&_0x314a11['id']===Y['SetTextSelectionsOperation']['id']&&_0x4d9650['unitId']===this[_0x2bc1e8(0x328)]&&_0x4d9650['isEditing']===!0x1&&_0x4d9650['ranges']['length']>0x0&&this[_0x2bc1e8(0x253)](_0x4d9650['ranges']);})),this[_0x2e71bb(0x2b3)]['collabCursorState$'][_0x2e71bb(0x2d9)](d[_0x2e71bb(0x3c6)](this[_0x2e71bb(0x319)]))[_0x2e71bb(0x30e)](_0x22a40b=>{const _0x14bbd9=_0x2e71bb;if((_0x22a40b==null?void 0x0:_0x22a40b['unitID'])!==this[_0x14bbd9(0x328)])return;const _0x557a6e={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x22a40b};this[_0x14bbd9(0x1f2)](_0x557a6e);}),this['disposeWithMe'](this[_0x2e71bb(0x27d)][_0x2e71bb(0x26c)](_0xa0fc68=>{const _0x3ec415=_0x2e71bb;if(_0xa0fc68[_0x3ec415(0x2c2)]==null)return;const _0x896395=_0xa0fc68[_0x3ec415(0x2c2)];if(_0xa0fc68['id']!==Y['RichTextEditingMutation']['id']||_0x896395[_0x3ec415(0x1d3)]!==this[_0x3ec415(0x328)])return;const _0x1ad230={'id':'doc.mutation.rich-text-editing','params':_0x896395},_0x2a4926=this[_0x3ec415(0x2cc)];for(const [_0x265c08,_0xe553e0]of _0x2a4926){const _0xce006a={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x3ec415(0x328)],'actions':null,'textRanges':_0xe553e0[_0x3ec415(0x302)]}},_0x421ecd=this[_0x3ec415(0x2a4)][_0x3ec415(0x383)](_0x1ad230,_0xce006a,!0x1);if(m['isTransformMutationFailure'](_0x421ecd))throw _0x421ecd[_0x3ec415(0x3dc)];_0x2a4926['set'](_0x265c08,{..._0xe553e0,'ranges':_0x421ecd[_0x3ec415(0x1f0)]['params'][_0x3ec415(0x3a1)]});}queueMicrotask(()=>{const _0x387278=_0x3ec415;this['_cursorInfo$'][_0x387278(0x246)](_0x2a4926);});})));}[_0x3dfb2c(0x1f2)](_0x1cd37c){const _0x19b2a4=_0x3dfb2c;var _0x497805,_0x47c20d;const {memberID:_0x1064db,selection:_0x4614ba}=_0x1cd37c[_0x19b2a4(0x38b)],_0x21df01=lt(_0x4614ba),_0x2ce7c4=(_0x47c20d=(_0x497805=this[_0x19b2a4(0x2b6)][_0x19b2a4(0x3a2)](this[_0x19b2a4(0x328)],_0x1064db))==null?void 0x0:_0x497805[_0x19b2a4(0x27f)])!=null?_0x47c20d:_0x19b2a4(0x3db),_0x1cc616={'color':this[_0x19b2a4(0x204)][_0x19b2a4(0x367)](_0x1064db),'name':_0x2ce7c4,'ranges':_0x21df01},_0x41900c=this[_0x19b2a4(0x2cc)];_0x41900c[_0x19b2a4(0x34b)](_0x1064db,_0x1cc616),this[_0x19b2a4(0x3e3)]['next'](_0x41900c);}[_0x3dfb2c(0x2c4)](_0x3a96c6){const _0x555429=_0x3dfb2c,{memberID:_0x39cba4}=_0x3a96c6[_0x555429(0x38b)],_0x918159=this[_0x555429(0x2cc)];_0x918159[_0x555429(0x35c)](_0x39cba4),this['_cursorInfo$'][_0x555429(0x246)](_0x918159);}[_0x3dfb2c(0x286)](){const _0x45e78f=_0x3dfb2c;var _0x41653c;if(this[_0x45e78f(0x34d)]=!0x0,((_0x41653c=this['_univerInstanceService'][_0x45e78f(0x241)]())==null?void 0x0:_0x41653c[_0x45e78f(0x40c)]())!==this[_0x45e78f(0x328)])return;const _0x8b865f=this[_0x45e78f(0x21a)][_0x45e78f(0x38c)](Y['DocSelectionManagerService'])[_0x45e78f(0x1bf)]();Array[_0x45e78f(0x3ba)](_0x8b865f)&&_0x8b865f[_0x45e78f(0x2ad)]>0x0&&this[_0x45e78f(0x253)](_0x8b865f);}[_0x3dfb2c(0x2d1)](){const _0x26774d=_0x3dfb2c;this[_0x26774d(0x34d)]=!0x1;}};de=ht([L(0x2,a['Inject'](a[_0x3dfb2c(0x3e2)])),L(0x3,a[_0x3dfb2c(0x247)](Ce)),L(0x4,a[_0x3dfb2c(0x247)](u[_0x3dfb2c(0x270)])),L(0x5,a[_0x3dfb2c(0x247)](pe)),L(0x6,m[_0x3dfb2c(0x211)]),L(0x7,a[_0x3dfb2c(0x353)]),L(0x8,a[_0x3dfb2c(0x33f)])],de);var St=Object['getOwnPropertyDescriptor'],ft=(_0x447c20,_0x25dfa1,_0x5c1d1d,_0x24ba53)=>{const _0x178203=_0x3dfb2c;for(var _0x5cc646=_0x24ba53>0x1?void 0x0:_0x24ba53?St(_0x25dfa1,_0x5c1d1d):_0x25dfa1,_0x30dcff=_0x447c20[_0x178203(0x2ad)]-0x1,_0x45ebda;_0x30dcff>=0x0;_0x30dcff--)(_0x45ebda=_0x447c20[_0x30dcff])&&(_0x5cc646=_0x45ebda(_0x5cc646)||_0x5cc646);return _0x5cc646;},A=(_0x36d712,_0x3c6d42)=>(_0x44eb90,_0x4a0f94)=>_0x3c6d42(_0x44eb90,_0x4a0f94,_0x36d712);const It=0x12c,vt=0x64,gt=()=>{let _0x8a702c=[],_0x1dcb77=!0x1;return _0x58ad6d=>{const _0x24f633=_0x3c41;_0x8a702c[_0x24f633(0x280)](_0x58ad6d),_0x1dcb77||(_0x1dcb77=!0x0,setTimeout(()=>{_0x8a702c['forEach'](_0x13ef46=>_0x13ef46()),_0x8a702c=[],_0x1dcb77=!0x1;}));};};let Se=class extends a[_0x3dfb2c(0x366)]{constructor(_0xd2f5fa,_0x36f098,_0x315d15,_0xc64228,_0x14aaac,_0x14f38a,_0x27ac3f,_0x2f6eb7){const _0x5eb5c2=_0x3dfb2c;super(),h(this,_0x5eb5c2(0x34d),!0x1),h(this,_0x5eb5c2(0x254),!0x1),h(this,_0x5eb5c2(0x3e3),new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this[_0x5eb5c2(0x3e3)]['asObservable']()),h(this,_0x5eb5c2(0x3fa),new d[(_0x5eb5c2(0x3bd))]([])),h(this,'roomMembers$',this[_0x5eb5c2(0x3fa)][_0x5eb5c2(0x2d9)](d[_0x5eb5c2(0x39b)](It))),h(this,_0x5eb5c2(0x253),a[_0x5eb5c2(0x335)]((_0xbc0bdd,_0x13e040)=>{const _0x2c7d8a=_0x5eb5c2,_0x2c8d56={'eventID':m['CollaborationEvent'][_0x2c7d8a(0x1d4)],'data':{'unitID':this['unitID'],'memberID':this[_0x2c7d8a(0x338)][_0x2c7d8a(0x378)](),'selection':Ee[_0x2c7d8a(0x261)](_0xbc0bdd,_0x13e040[_0x2c7d8a(0x2b4)])}};this[_0x2c7d8a(0x338)]['send'](_0x2c8d56,this[_0x2c7d8a(0x328)]);},vt)),(this[_0x5eb5c2(0x328)]=_0xd2f5fa,this['_session']=_0x36f098,this[_0x5eb5c2(0x21a)]=_0x315d15,this[_0x5eb5c2(0x204)]=_0xc64228,this[_0x5eb5c2(0x2b6)]=_0x14aaac,this[_0x5eb5c2(0x2ce)]=_0x14f38a,this[_0x5eb5c2(0x27d)]=_0x27ac3f,this[_0x5eb5c2(0x411)]=_0x2f6eb7);}get[_0x3dfb2c(0x2cc)](){const _0x52a047=_0x3dfb2c;return this[_0x52a047(0x3e3)][_0x52a047(0x1b7)]();}get[_0x3dfb2c(0x306)](){const _0x286c17=_0x3dfb2c;return this[_0x286c17(0x3fa)][_0x286c17(0x1b7)]();}[_0x3dfb2c(0x279)](){const _0x369c9c=_0x3dfb2c;super['dispose'](),this[_0x369c9c(0x3e3)][_0x369c9c(0x246)](new Map()),this[_0x369c9c(0x3e3)][_0x369c9c(0x379)](),this[_0x369c9c(0x3fa)][_0x369c9c(0x246)]([]),this[_0x369c9c(0x3fa)]['complete']();}[_0x3dfb2c(0x41a)](){const _0x2c31cc=_0x3dfb2c;this[_0x2c31cc(0x254)]||(this['_init']=!0x0,this[_0x2c31cc(0x338)]['sessionStatus$']['pipe'](d[_0x2c31cc(0x3c6)](this[_0x2c31cc(0x319)]))[_0x2c31cc(0x30e)](_0x5008d8=>{const _0x3b3add=_0x2c31cc;_0x5008d8===u[_0x3b3add(0x1b2)][_0x3b3add(0x2e1)]?this[_0x3b3add(0x286)]():this[_0x3b3add(0x2d1)]();}),this[_0x2c31cc(0x338)][_0x2c31cc(0x20a)]['pipe'](d['takeUntil'](this['dispose$']))[_0x2c31cc(0x30e)](_0x1dd795=>{const _0x5a6859=_0x2c31cc,_0x633b64=_0x1dd795[_0x5a6859(0x331)];_0x633b64===m['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x5a6859(0x1f2)](_0x1dd795),_0x633b64===m[_0x5a6859(0x24d)][_0x5a6859(0x217)]&&this[_0x5a6859(0x2c4)](_0x1dd795);}),this['_onRefRangeChange'](),this[_0x2c31cc(0x238)](this[_0x2c31cc(0x27d)][_0x2c31cc(0x26c)](_0x16e222=>{const _0x2cddd7=_0x2c31cc;if(this[_0x2cddd7(0x34d)]&&_0x16e222['id']===g[_0x2cddd7(0x363)]['id']&&_0x16e222[_0x2cddd7(0x2c2)][_0x2cddd7(0x1d3)]===this[_0x2cddd7(0x328)]){const _0x2867eb=_0x16e222['params'];this[_0x2cddd7(0x253)](_0x2867eb['subUnitId'],_0x2867eb['selections'][0x0]);}})));}[_0x3dfb2c(0x1f2)](_0x1fff36){const _0x34571a=_0x3dfb2c;var _0x49cc26,_0x5f259c;const {memberID:_0x39e670,selection:_0x49239b}=_0x1fff36[_0x34571a(0x38b)],{sheetName:_0x506f18,range:_0x571f85}=Ee[_0x34571a(0x37e)](_0x49239b),_0x398ca9={'name':(_0x5f259c=(_0x49cc26=this[_0x34571a(0x2b6)][_0x34571a(0x3a2)](this[_0x34571a(0x328)],_0x39e670))==null?void 0x0:_0x49cc26[_0x34571a(0x27f)])!=null?_0x5f259c:_0x34571a(0x3db),'range':this['_getMergeRange'](_0x506f18,_0x571f85),'sheetID':_0x506f18,'color':this[_0x34571a(0x204)][_0x34571a(0x367)](_0x39e670),'selection':_0x49239b},_0x35914e=this[_0x34571a(0x2cc)];_0x35914e[_0x34571a(0x34b)](_0x39e670,_0x398ca9),this[_0x34571a(0x3e3)][_0x34571a(0x246)](_0x35914e);}[_0x3dfb2c(0x2c4)](_0x4f96d4){const _0x2ee7f5=_0x3dfb2c,{memberID:_0xab4485}=_0x4f96d4[_0x2ee7f5(0x38b)],_0x150904=this['cursorInfo'];_0x150904[_0x2ee7f5(0x35c)](_0xab4485),this[_0x2ee7f5(0x3e3)][_0x2ee7f5(0x246)](_0x150904);}[_0x3dfb2c(0x1da)](_0x12d121,_0x38916a){const _0x1d3d7e=_0x3dfb2c;var _0x10cfbd,_0x5a0b6e;const _0xf637d5=(_0x5a0b6e=(_0x10cfbd=this[_0x1d3d7e(0x2ce)][_0x1d3d7e(0x2cb)](this[_0x1d3d7e(0x328)]))==null?void 0x0:_0x10cfbd[_0x1d3d7e(0x234)](_0x12d121))==null?void 0x0:_0x5a0b6e['getMergeData']();return(_0xf637d5==null?void 0x0:_0xf637d5[_0x1d3d7e(0x293)](_0x257da2=>a[_0x1d3d7e(0x1c8)][_0x1d3d7e(0x3e4)](_0x257da2,_0x38916a)))||_0x38916a;}['_onRefRangeChange'](){const _0x2c1a0a=_0x3dfb2c,_0x241d3e=new a[(_0x2c1a0a(0x3b3))](),_0x235252=gt(),_0x1a0f61=()=>{const _0x32aacd=_0x2c1a0a;_0x241d3e[_0x32aacd(0x279)]();const _0x460f4e=(_0x5cfbbe,_0x46de86,_0x37daa5,_0x2d7e01)=>{const _0x4c9818=_0x32aacd;let _0x328cbf=[];switch(_0x5cfbbe['id']){case g[_0x4c9818(0x2dc)][_0x4c9818(0x237)]:{_0x328cbf=g['handleDeleteRangeMoveLeft'](_0x5cfbbe,_0x2d7e01);break;}case g[_0x4c9818(0x2dc)][_0x4c9818(0x37a)]:{_0x328cbf=g[_0x4c9818(0x205)](_0x5cfbbe,_0x2d7e01);break;}case g[_0x4c9818(0x2dc)][_0x4c9818(0x2de)]:{_0x328cbf=g[_0x4c9818(0x2d7)](_0x5cfbbe,_0x2d7e01);break;}case g[_0x4c9818(0x2dc)][_0x4c9818(0x32f)]:{_0x328cbf=g[_0x4c9818(0x321)](_0x5cfbbe,_0x2d7e01);break;}case g['EffectRefRangId'][_0x4c9818(0x218)]:{_0x328cbf=g['handleInsertRangeMoveRight'](_0x5cfbbe,_0x2d7e01);break;}case g[_0x4c9818(0x2dc)][_0x4c9818(0x215)]:{_0x328cbf=g['handleInsertRow'](_0x5cfbbe,_0x2d7e01);break;}case g[_0x4c9818(0x2dc)][_0x4c9818(0x3b5)]:{_0x328cbf=g[_0x4c9818(0x341)](_0x5cfbbe,_0x2d7e01);break;}case g['EffectRefRangId']['RemoveColCommandId']:{_0x328cbf=g[_0x4c9818(0x1fa)](_0x5cfbbe,_0x2d7e01);break;}case g[_0x4c9818(0x2dc)][_0x4c9818(0x38a)]:{_0x328cbf=g[_0x4c9818(0x1e4)](_0x5cfbbe,_0x2d7e01);break;}}const _0x4b70cc=g['runRefRangeMutations'](_0x328cbf,_0x2d7e01),_0x57f145=this[_0x4c9818(0x2cc)][_0x4c9818(0x38c)](_0x46de86);if(_0x57f145&&_0x4b70cc){const _0x50bae3={..._0x57f145,'range':_0x4b70cc};this[_0x4c9818(0x2cc)][_0x4c9818(0x34b)](_0x46de86,_0x50bae3),_0x235252(()=>{const _0x9fb180=_0x4c9818,_0x898eb3=this[_0x9fb180(0x411)]['registerRefRange'](_0x4b70cc,_0x4eb834=>(_0x898eb3[_0x9fb180(0x279)](),_0x460f4e(_0x4eb834,_0x46de86,_0x37daa5,_0x4b70cc)));_0x241d3e[_0x9fb180(0x3c4)](_0x898eb3);});}return{'redos':[],'undos':[]};};this[_0x32aacd(0x2cc)][_0x32aacd(0x1c9)]((_0x3b2789,_0x53fe2a)=>{const {range:_0x4fe9e4,sheetID:_0x35881d}=_0x3b2789,_0x1b5dec=this['_refRangeService']['registerRefRange'](_0x4fe9e4,_0x45598e=>(_0x1b5dec['dispose'](),_0x460f4e(_0x45598e,_0x53fe2a,_0x35881d,_0x4fe9e4)));_0x241d3e['add'](_0x1b5dec);});};this[_0x2c1a0a(0x238)](a[_0x2c1a0a(0x214)](this['_cursorInfo$'][_0x2c1a0a(0x30e)](()=>{_0x1a0f61();})));}[_0x3dfb2c(0x286)](){const _0xba6f4c=_0x3dfb2c;var _0x53c291,_0x3bbcd1;if(this[_0xba6f4c(0x34d)]=!0x0,((_0x53c291=this[_0xba6f4c(0x2ce)][_0xba6f4c(0x241)]())==null?void 0x0:_0x53c291[_0xba6f4c(0x40c)]())!==this[_0xba6f4c(0x328)])return;const _0x4b40fa=(_0x3bbcd1=this[_0xba6f4c(0x21a)]['get'](g['SheetsSelectionsService'])[_0xba6f4c(0x41f)]())==null?void 0x0:_0x3bbcd1[0x0],_0x5733df=this[_0xba6f4c(0x2ce)]['getCurrentUnitForType'](a[_0xba6f4c(0x25c)][_0xba6f4c(0x255)])['getActiveSheet']();_0x4b40fa&&_0x5733df&&this[_0xba6f4c(0x253)](_0x5733df['getSheetId'](),_0x4b40fa);}[_0x3dfb2c(0x2d1)](){const _0x509542=_0x3dfb2c;this[_0x509542(0x34d)]=!0x1;}};Se=ft([A(0x2,a[_0x3dfb2c(0x247)](a[_0x3dfb2c(0x3e2)])),A(0x3,a[_0x3dfb2c(0x247)](Ce)),A(0x4,a['Inject'](u[_0x3dfb2c(0x270)])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x3dfb2c(0x33f)]),A(0x7,a[_0x3dfb2c(0x247)](g[_0x3dfb2c(0x2f3)]))],Se);var mt=Object[_0x3dfb2c(0x276)],Ct=(_0xaaaf99,_0x4a4b19,_0x382651,_0x15f6ad)=>{for(var _0x264913=_0x15f6ad>0x1?void 0x0:_0x15f6ad?mt(_0x4a4b19,_0x382651):_0x4a4b19,_0x7a1c79=_0xaaaf99['length']-0x1,_0x2ac90b;_0x7a1c79>=0x0;_0x7a1c79--)(_0x2ac90b=_0xaaaf99[_0x7a1c79])&&(_0x264913=_0x2ac90b(_0x264913)||_0x264913);return _0x264913;},ie=(_0x10be39,_0x286de7)=>(_0x3b2cef,_0x4c5dd1)=>_0x286de7(_0x3b2cef,_0x4c5dd1,_0x10be39);let x=class extends a[_0x3dfb2c(0x366)]{constructor(_0x3997f7,_0x3159c1,_0x433dbd){const _0x3a1dd3=_0x3dfb2c;super(),h(this,_0x3a1dd3(0x296),new Map()),h(this,'_entityInit$',new d[(_0x3a1dd3(0x21f))]()),(this[_0x3a1dd3(0x2ce)]=_0x3997f7,this[_0x3a1dd3(0x21a)]=_0x3159c1,this[_0x3a1dd3(0x244)]=_0x433dbd,this[_0x3a1dd3(0x254)]());}[_0x3dfb2c(0x279)](){const _0x346a92=_0x3dfb2c;super[_0x346a92(0x279)](),this[_0x346a92(0x2ee)]['complete'](),this[_0x346a92(0x296)][_0x346a92(0x1c9)](_0x18fa10=>_0x18fa10[_0x346a92(0x279)]());}['getCollabCursors$'](_0x484846){const _0x33580a=_0x3dfb2c;return this[_0x33580a(0x296)][_0x33580a(0x377)](_0x484846)?this[_0x33580a(0x296)][_0x33580a(0x38c)](_0x484846)['cursorInfo$']:this[_0x33580a(0x2ee)][_0x33580a(0x2d9)](d['filter'](_0x1b884e=>_0x1b884e[_0x33580a(0x328)]===_0x484846),d['switchMap'](_0x2ac374=>_0x2ac374[_0x33580a(0x385)]));}[_0x3dfb2c(0x254)](){const _0x2652d7=_0x3dfb2c;this[_0x2652d7(0x2ce)][_0x2652d7(0x200)](a[_0x2652d7(0x25c)][_0x2652d7(0x255)])[_0x2652d7(0x2d9)](d[_0x2652d7(0x3c6)](this[_0x2652d7(0x319)]))['subscribe'](async _0x6a4598=>{const _0x5d9ae9=_0x2652d7,_0x430a33=_0x6a4598[_0x5d9ae9(0x40c)](),_0x15f965=await this[_0x5d9ae9(0x40f)](_0x430a33);this[_0x5d9ae9(0x2ee)]['next'](_0x15f965),this[_0x5d9ae9(0x296)]['set'](_0x430a33,_0x15f965);}),this[_0x2652d7(0x2ce)]['getTypeOfUnitAdded$'](a[_0x2652d7(0x25c)][_0x2652d7(0x1c4)])[_0x2652d7(0x2d9)](d[_0x2652d7(0x3c6)](this[_0x2652d7(0x319)]))['pipe'](d[_0x2652d7(0x3c3)](_0x208a7e=>!_0x208a7e['getUnitId']()['startsWith']('__')))[_0x2652d7(0x30e)](async _0x1bcf1f=>{const _0x59c099=_0x2652d7,_0x926c75=_0x1bcf1f[_0x59c099(0x40c)](),_0x4cf6a3=await this[_0x59c099(0x317)](_0x926c75);this[_0x59c099(0x2ee)][_0x59c099(0x246)](_0x4cf6a3),this[_0x59c099(0x296)]['set'](_0x926c75,_0x4cf6a3);}),d[_0x2652d7(0x22b)](this[_0x2652d7(0x2ce)][_0x2652d7(0x40b)](a['UniverInstanceType'][_0x2652d7(0x1c4)]),this[_0x2652d7(0x2ce)][_0x2652d7(0x40b)](a[_0x2652d7(0x25c)][_0x2652d7(0x255)]))[_0x2652d7(0x2d9)](d[_0x2652d7(0x3c6)](this['dispose$']))[_0x2652d7(0x30e)](_0xe41669=>{const _0x3ff9be=_0x2652d7,_0x382f53=_0xe41669[_0x3ff9be(0x40c)](),_0x1ab8f7=this[_0x3ff9be(0x296)][_0x3ff9be(0x38c)](_0x382f53);_0x1ab8f7&&(_0x1ab8f7[_0x3ff9be(0x279)](),this['_entities']['delete'](_0x382f53));});}async[_0x3dfb2c(0x40f)](_0x5f7773){const _0xde0fcc=_0x3dfb2c,_0x4bf593=await this[_0xde0fcc(0x244)]['requireSession'](_0x5f7773),_0x634746=this[_0xde0fcc(0x21a)]['createInstance'](Se,_0x5f7773,_0x4bf593);return _0x634746[_0xde0fcc(0x41a)](),_0x634746;}async[_0x3dfb2c(0x317)](_0x11170c){const _0x143182=_0x3dfb2c,_0x2afbe8=await this[_0x143182(0x244)][_0x143182(0x35b)](_0x11170c),_0x45fbd3=this[_0x143182(0x21a)][_0x143182(0x2bd)](de,_0x11170c,_0x2afbe8);return _0x45fbd3[_0x143182(0x41a)](),_0x45fbd3;}};x=Ct([ie(0x0,a[_0x3dfb2c(0x353)]),ie(0x1,a[_0x3dfb2c(0x247)](a['Injector'])),ie(0x2,a[_0x3dfb2c(0x247)](u[_0x3dfb2c(0x3b8)]))],x);const W=0x14,Te=0xc8,ne=0x4,pt=0x5;function Et(_0x557f98,_0x180666){const _0x17c968=_0x3dfb2c;let {radius:_0x23f39c,width:_0x528d01,height:_0x4991cc}=_0x180666;_0x23f39c=_0x23f39c!=null?_0x23f39c:0x0,_0x528d01=_0x528d01!=null?_0x528d01:0x1e,_0x4991cc=_0x4991cc!=null?_0x4991cc:0x1e;let _0x2be829=0x0,_0x5e77ed=0x0,_0xebfa3d=0x0;_0x2be829=_0x5e77ed=_0xebfa3d=Math[_0x17c968(0x3df)](_0x23f39c,_0x528d01/0x2,_0x4991cc/0x2),_0x557f98[_0x17c968(0x358)](),_0x557f98[_0x17c968(0x3bb)](_0x2be829,0x0),_0x557f98[_0x17c968(0x3da)](_0x528d01-_0x5e77ed,0x0),_0x557f98[_0x17c968(0x3ef)](_0x528d01-_0x5e77ed,_0x5e77ed,_0x5e77ed,Math['PI']*0x3/0x2,0x0,!0x1),_0x557f98[_0x17c968(0x3da)](_0x528d01,_0x4991cc-_0xebfa3d),_0x557f98['arc'](_0x528d01-_0xebfa3d,_0x4991cc-_0xebfa3d,_0xebfa3d,0x0,Math['PI']/0x2,!0x1),_0x557f98[_0x17c968(0x3da)](0x0,_0x4991cc),_0x557f98[_0x17c968(0x3da)](0x0,_0x2be829),_0x557f98[_0x17c968(0x3ef)](_0x2be829,_0x2be829,_0x2be829,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x557f98[_0x17c968(0x282)](),_0x180666[_0x17c968(0x1e9)]&&(_0x557f98[_0x17c968(0x1de)](),_0x557f98[_0x17c968(0x271)]=_0x180666['fill'],_0x180666['fillRule']==='evenodd'?_0x557f98[_0x17c968(0x1e9)](_0x17c968(0x2a2)):_0x557f98['fill'](),_0x557f98[_0x17c968(0x1dd)]());}class ee extends p[_0x3dfb2c(0x2b2)]{constructor(_0x59e787,_0x1850f9){const _0x97a87c=_0x3dfb2c;super(_0x59e787,_0x1850f9),h(this,_0x97a87c(0x2f8)),h(this,_0x97a87c(0x24a)),(this[_0x97a87c(0x2f8)]=_0x1850f9==null?void 0x0:_0x1850f9[_0x97a87c(0x2f8)],this['text']=_0x1850f9==null?void 0x0:_0x1850f9[_0x97a87c(0x24a)]);}static[_0x3dfb2c(0x3a3)](_0x182579,_0x1233d0){const _0x59e372=_0x3dfb2c,{text:_0x41cf1a,color:_0x189d5c}=_0x1233d0;_0x182579[_0x59e372(0x1de)](),_0x182579['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x5667e4=_0x182579['measureText'](_0x41cf1a)[_0x59e372(0x308)],_0x447066=Math[_0x59e372(0x3df)](_0x5667e4+0x2*ne,Te);Et(_0x182579,{'height':W,'radius':0x4,'width':_0x447066,'fill':_0x189d5c}),_0x182579['fillStyle']=_0x59e372(0x1ee);const _0x20b586=ne,_0x1df175=W-pt,_0x530f61=Te-0x2*ne;if(_0x5667e4>_0x530f61){let _0x5a3c25='',_0x565f43=0x0;for(const _0x48eaef of _0x41cf1a){const _0x1e8180=_0x182579[_0x59e372(0x1e8)](_0x48eaef)['width'];if(_0x565f43+_0x1e8180<=_0x530f61-_0x182579[_0x59e372(0x1e8)]('...')[_0x59e372(0x308)])_0x5a3c25+=_0x48eaef,_0x565f43+=_0x1e8180;else{_0x5a3c25+='...';break;}}_0x182579[_0x59e372(0x29e)](_0x5a3c25,_0x20b586,_0x1df175);}else _0x182579['fillText'](_0x41cf1a,_0x20b586,_0x1df175);_0x182579[_0x59e372(0x1dd)]();}['_draw'](_0x51b21c){const _0x24c39a=_0x3dfb2c;ee[_0x24c39a(0x3a3)](_0x51b21c,this);}}const re=_0x3dfb2c(0x240),bt=_0x3dfb2c(0x404),Ot=_0x3dfb2c(0x3ed),F=0x6,Tt=1.5,oe=0x4,Rt=1.5,Dt=_0x3dfb2c(0x36a);class Re{constructor(_0x189729,_0x26c414,_0x429578,_0x2fafc2){const _0x360bcd=_0x3dfb2c;h(this,_0x360bcd(0x372),[]),h(this,_0x360bcd(0x1c6),null),h(this,_0x360bcd(0x3b9),null),h(this,_0x360bcd(0x3de),null),h(this,_0x360bcd(0x22d),null),h(this,'_eventUnsubscribe',null),(this[_0x360bcd(0x2f5)]=_0x189729,this[_0x360bcd(0x202)]=_0x26c414,this[_0x360bcd(0x298)]=_0x429578,this['_document']=_0x2fafc2,this['_render']());}set['_hover'](_0x4cfd9e){const _0x28513c=_0x3dfb2c;_0x4cfd9e?(this[_0x28513c(0x3de)]&&this[_0x28513c(0x3de)]['hide'](),this['_textBubble']&&this[_0x28513c(0x3b9)][_0x28513c(0x3f8)]()):(this['_anchorDot']&&this['_anchorDot'][_0x28513c(0x3f8)](),this[_0x28513c(0x3b9)]&&this[_0x28513c(0x3b9)][_0x28513c(0x3f0)]());}['dispose'](){const _0x509f41=_0x3dfb2c;for(const _0x3c2ff2 of this['_shapes'])_0x3c2ff2['dispose']();this[_0x509f41(0x3b9)]&&this[_0x509f41(0x3b9)]['dispose'](),this[_0x509f41(0x3de)]&&this[_0x509f41(0x3de)]['dispose'](),this[_0x509f41(0x1c6)]&&this[_0x509f41(0x1c6)]['dispose'](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x3dfb2c(0x3cd)](){const _0x56a944=_0x3dfb2c;var _0x39816f;const {_docSkeleton:_0x331c88,_document:_0xe465ec}=this,{color:_0x4740e6,name:_0x5b93da,ranges:_0x3440c6}=this['_cursor'],_0x409e66=_0xe465ec[_0x56a944(0x3ab)](),{docsLeft:_0x347168,docsTop:_0x16ef0b}=_0x409e66,_0x114c58=new E[(_0x56a944(0x226))](_0x409e66,_0x331c88);for(const {startOffset:_0x435985,endOffset:_0x2df360,rangeType:_0x494991,segmentId:_0x53854b,segmentPage:_0x5032df,collapsed:_0x3f9bde,isActive:_0x24bbef}of _0x3440c6){const _0x1d1409=_0x331c88[_0x56a944(0x31c)](_0x435985,!0x0,_0x53854b,_0x5032df);let _0x4bda7b=_0x331c88[_0x56a944(0x31c)](_0x2df360,!0x0,_0x53854b,_0x5032df);if(_0x4bda7b==null&&(_0x4bda7b=_0x331c88[_0x56a944(0x31c)](_0x2df360-0x1,!0x1,_0x53854b,_0x5032df)),_0x24bbef){const {contentBoxPointGroup:_0xc5f21}=_0x114c58[_0x56a944(0x40e)](_0x4bda7b,_0x4bda7b);if(_0xc5f21['length']===0x0)continue;this['_drawAnchor'](_0x4740e6,_0xc5f21,_0x347168,_0x16ef0b,_0x5b93da),this[_0x56a944(0x1f7)]=this[_0x56a944(0x278)]();}if(_0x1d1409&&_0x4bda7b){if(_0x494991===a[_0x56a944(0x2ba)][_0x56a944(0x2da)]){const _0x57aa1d=new E[(_0x56a944(0x297))](_0x409e66,_0x331c88),{pointGroup:_0x3e7953}=(_0x39816f=_0x57aa1d['getRangePointData'](_0x1d1409,_0x4bda7b))!=null?_0x39816f:{};if(_0x3e7953==null||_0x3e7953[_0x56a944(0x2ad)]===0x0)continue;this[_0x56a944(0x22a)](_0x4740e6,_0x3e7953,_0x347168,_0x16ef0b);}else{if(!_0x3f9bde){const {borderBoxPointGroup:_0x5ae950}=_0x114c58[_0x56a944(0x40e)](_0x1d1409,_0x4bda7b);if(_0x5ae950[_0x56a944(0x2ad)]===0x0)continue;this[_0x56a944(0x34c)](_0x4740e6,_0x5ae950,_0x347168,_0x16ef0b);}}}}}[_0x3dfb2c(0x23e)](_0x1a36f1,_0x506896,_0x5afae3,_0x20499b,_0x5bf3a0){const _0x5a820c=_0x3dfb2c,_0x5b6731=this['_getAnchorBounding'](_0x506896),{left:_0xdf186b,top:_0xd64843,height:_0x13e669}=_0x5b6731,_0x502ef9=this['_getScale'](),_0x45e6e0=Rt/_0x502ef9,_0x1e6da7=new p[(_0x5a820c(0x2c9))](re+a[_0x5a820c(0x368)](F),{'left':_0xdf186b+_0x5afae3-_0x45e6e0,'top':_0xd64843+_0x20499b,'height':_0x13e669,'width':Tt,'fill':_0x1a36f1||p['getColor'](a[_0x5a820c(0x1ff)][_0x5a820c(0x235)],0x0),'strokeWidth':_0x45e6e0,'stroke':Dt,'evented':!0x0});this[_0x5a820c(0x1c6)]=_0x1e6da7,this[_0x5a820c(0x202)][_0x5a820c(0x225)](_0x1e6da7,E['TEXT_RANGE_LAYER_INDEX']);const _0x227ba5=new p['Rect'](re+a[_0x5a820c(0x368)](F),{'left':_0xdf186b+_0x5afae3-_0x45e6e0,'top':_0xd64843+_0x20499b-oe/0x2,'height':oe,'width':oe,'fill':_0x1a36f1||p[_0x5a820c(0x350)](a[_0x5a820c(0x1ff)][_0x5a820c(0x235)],0x0),'strokeWidth':0x0,'stroke':_0x1a36f1||p[_0x5a820c(0x350)](a[_0x5a820c(0x1ff)][_0x5a820c(0x235)],0x0),'evented':!0x1});this['_anchorDot']=_0x227ba5,this['_scene'][_0x5a820c(0x225)](_0x227ba5,E[_0x5a820c(0x352)]);const _0x4e2de3=new ee(re+a['generateRandomId'](F),{'left':_0xdf186b+_0x5afae3-_0x45e6e0,'top':_0xd64843+_0x20499b-W,'text':_0x5bf3a0,'color':_0x1a36f1});this[_0x5a820c(0x3b9)]=_0x4e2de3,this[_0x5a820c(0x202)]['addObject'](_0x4e2de3,E[_0x5a820c(0x352)]),this[_0x5a820c(0x419)]=!0x1;}['_handleHover'](){const _0x1e417d=_0x3dfb2c,_0x4ff297=this[_0x1e417d(0x1c6)][_0x1e417d(0x416)][_0x1e417d(0x268)](()=>{const _0x22dc3f=_0x1e417d;this[_0x22dc3f(0x419)]=!0x0;}),_0xfe09c4=this[_0x1e417d(0x1c6)][_0x1e417d(0x2bb)][_0x1e417d(0x268)](()=>{const _0x5c090a=_0x1e417d;this[_0x5c090a(0x22d)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x2acc9d=_0x5c090a;this[_0x2acc9d(0x419)]=!0x1;},0x7d0);});return()=>{const _0x238497=_0x1e417d;_0x4ff297[_0x238497(0x307)](),_0xfe09c4[_0x238497(0x307)]();};}[_0x3dfb2c(0x34c)](_0x2a9dbb,_0x430c18,_0x3e2f88,_0x3de39a){const _0x385c69=_0x3dfb2c,_0x35f398=new a[(_0x385c69(0x3ac))](_0x2a9dbb)[_0x385c69(0x414)](0.2)[_0x385c69(0x26b)](),_0x509cb1=new p[(_0x385c69(0x33c))](bt+a[_0x385c69(0x368)](F),{'pointsGroup':_0x430c18,'fill':_0x35f398||p[_0x385c69(0x350)](a['COLORS']['black'],0.2),'left':_0x3e2f88,'top':_0x3de39a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x385c69(0x372)][_0x385c69(0x280)](_0x509cb1),this[_0x385c69(0x202)][_0x385c69(0x225)](_0x509cb1,E[_0x385c69(0x352)]);}[_0x3dfb2c(0x22a)](_0x1d8836,_0x5c6b14,_0x5c06cf,_0x23bc7f){const _0x333b4c=_0x3dfb2c,_0x4a38db=new a[(_0x333b4c(0x3ac))](_0x1d8836)[_0x333b4c(0x414)](0.2)[_0x333b4c(0x26b)](),_0x3af80f=new p['RegularPolygon'](Ot+a[_0x333b4c(0x368)](F),{'pointsGroup':_0x5c6b14,'fill':_0x4a38db||p['getColor'](a[_0x333b4c(0x1ff)][_0x333b4c(0x235)],0.2),'left':_0x5c06cf,'top':_0x23bc7f,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x333b4c(0x280)](_0x3af80f),this['_scene']['addObject'](_0x3af80f,E['TEXT_RANGE_LAYER_INDEX']);}[_0x3dfb2c(0x3a4)](_0x40aef9){const _0x13d897=_0x40aef9[0x0],_0x335e17=_0x13d897[0x0],_0xfa6fdf=_0x13d897[0x2],{x:_0x5b231c,y:_0x3630a9}=_0x335e17,{x:_0x1ba2a0,y:_0x28dc56}=_0xfa6fdf;return{'left':_0x5b231c,'top':_0x3630a9,'width':_0x1ba2a0-_0x5b231c,'height':_0x28dc56-_0x3630a9};}['_getScale'](){const _0x1194e9=_0x3dfb2c,{scaleX:_0xe36f8,scaleY:_0x1b2a0d}=this[_0x1194e9(0x202)][_0x1194e9(0x29d)]();return Math[_0x1194e9(0x2e5)](_0xe36f8,_0x1b2a0d);}}var Ut=Object[_0x3dfb2c(0x276)],Nt=(_0x43c9e7,_0xf84eee,_0x1db6f9,_0x220d96)=>{for(var _0x24b8d4=_0x220d96>0x1?void 0x0:_0x220d96?Ut(_0xf84eee,_0x1db6f9):_0xf84eee,_0x17abbc=_0x43c9e7['length']-0x1,_0x112b59;_0x17abbc>=0x0;_0x17abbc--)(_0x112b59=_0x43c9e7[_0x17abbc])&&(_0x24b8d4=_0x112b59(_0x24b8d4)||_0x24b8d4);return _0x24b8d4;},X=(_0x345e98,_0x3cafbb)=>(_0x30ab74,_0x2f68bf)=>_0x3cafbb(_0x30ab74,_0x2f68bf,_0x345e98);let fe=class extends a[_0x3dfb2c(0x366)]{constructor(_0x4a4a5f,_0x330a10,_0x4dbe69,_0x45f1d8,_0x5a1836){const _0x34475d=_0x3dfb2c;super(),h(this,_0x34475d(0x1b8),[]),h(this,'_cursors',[]),(this[_0x34475d(0x23b)]=_0x4a4a5f,this[_0x34475d(0x1c0)]=_0x330a10,this[_0x34475d(0x209)]=_0x4dbe69,this[_0x34475d(0x27d)]=_0x45f1d8,this[_0x34475d(0x418)]=_0x5a1836,this[_0x34475d(0x254)]());}['_init'](){const _0x1611e2=_0x3dfb2c,_0x284834=this[_0x1611e2(0x23b)][_0x1611e2(0x1d3)],_0x115e60=this[_0x1611e2(0x1c0)];this[_0x1611e2(0x238)](d[_0x1611e2(0x31b)]([this[_0x1611e2(0x209)]['getCollabCursors$'](_0x284834),this[_0x1611e2(0x418)][_0x1611e2(0x3fe)]])['pipe']($[_0x1611e2(0x412)](([_0x903d7d,_0x2a076d])=>({'skeleton':_0x115e60[_0x1611e2(0x21d)](),'cursors':[..._0x903d7d[_0x1611e2(0x39e)]()][_0x1611e2(0x23a)](_0x2149ec=>({..._0x2149ec,'color':this[_0x1611e2(0x418)][_0x1611e2(0x395)](_0x2149ec[_0x1611e2(0x2f8)])}))})))[_0x1611e2(0x30e)](_0x3820fd=>{const _0x137462=_0x1611e2;if(this[_0x137462(0x2a1)](),_0x3820fd){const {skeleton:_0x118c31,cursors:_0x5273e8}=_0x3820fd;this[_0x137462(0x311)](_0x118c31,_0x5273e8);}})),this[_0x1611e2(0x2d0)](),this['_initCommandExecutedListener']();}[_0x3dfb2c(0x311)](_0x1d283e,_0x41bfa5){const _0x32c15d=_0x3dfb2c,{scene:_0x2c17e8,mainComponent:_0x141251}=this['_context'],_0x28de03=_0x41bfa5[_0x32c15d(0x412)](_0x5b9d1c=>new Re(_0x5b9d1c,_0x2c17e8,_0x1d283e,_0x141251));this['_cursorShapes']=_0x28de03,this[_0x32c15d(0x348)]=_0x41bfa5;}[_0x3dfb2c(0x23c)](){const _0x2bf412=_0x3dfb2c;this['_removeCollabCursors']();const {scene:_0x48fb98,mainComponent:_0x35fd9f}=this[_0x2bf412(0x23b)],_0x2c99ea=this[_0x2bf412(0x1c0)][_0x2bf412(0x21d)](),_0x261dbd=this[_0x2bf412(0x348)][_0x2bf412(0x412)](_0x5cc3b1=>new Re(_0x5cc3b1,_0x48fb98,_0x2c99ea,_0x35fd9f));this['_cursorShapes']=_0x261dbd;}[_0x3dfb2c(0x2a1)](){const _0x2a6510=_0x3dfb2c;this[_0x2a6510(0x1b8)][_0x2a6510(0x1c9)](_0x246770=>_0x246770['dispose']()),this['_cursorShapes']=[];}[_0x3dfb2c(0x248)](){const _0x253ba2=_0x3dfb2c,_0x976d7a=[E[_0x253ba2(0x2a8)]['id']];this['disposeWithMe'](this['_commandService'][_0x253ba2(0x26c)](_0x5e6cac=>{const _0xdb35f9=_0x253ba2;_0x976d7a[_0xdb35f9(0x3d9)](_0x5e6cac['id'])&&_0x5e6cac[_0xdb35f9(0x2c2)][_0xdb35f9(0x1d3)]===this['_context'][_0xdb35f9(0x1d3)]&&this[_0xdb35f9(0x23c)]();}));}['_initResize'](){const _0x3df0db=_0x3dfb2c;this[_0x3df0db(0x238)](a[_0x3df0db(0x32d)](this[_0x3df0db(0x23b)]['engine']['onTransformChange$'])[_0x3df0db(0x2d9)]($[_0x3df0db(0x3c3)](_0x203204=>_0x203204[_0x3df0db(0x330)]===p[_0x3df0db(0x2c7)][_0x3df0db(0x2a5)]),$[_0x3df0db(0x3c2)](0x10))[_0x3df0db(0x30e)](()=>{const _0x48ff08=_0x3df0db;this[_0x48ff08(0x23c)]();}));}};fe=Nt([X(0x1,a[_0x3dfb2c(0x247)](Y[_0x3dfb2c(0x2c3)])),X(0x2,a[_0x3dfb2c(0x247)](x)),X(0x3,a[_0x3dfb2c(0x33f)]),X(0x4,a[_0x3dfb2c(0x247)](a[_0x3dfb2c(0x223)]))],fe);const Mt=0x1,Lt=1.5;class $e extends p[_0x3dfb2c(0x2b2)]{constructor(_0x5cc805,_0x42f25d){const _0x249499=_0x3dfb2c;super(_0x5cc805,_0x42f25d),h(this,'_color'),h(this,_0x249499(0x26e),!0x1),h(this,_0x249499(0x2c1)),h(this,_0x249499(0x1b6),''),h(this,_0x249499(0x22f),_0x249499(0x1c1)),h(this,_0x249499(0x273)),(_0x42f25d&&this[_0x249499(0x3e6)](_0x42f25d),this[_0x249499(0x416)][_0x249499(0x268)](()=>this[_0x249499(0x3e6)]({'hovered':!0x0})),this[_0x249499(0x2bb)][_0x249499(0x268)](()=>this[_0x249499(0x3e6)]({'hovered':!0x1})));}[_0x3dfb2c(0x3e6)](_0x569e88){const _0x2f6d01=_0x3dfb2c;var _0x179f2e,_0x212b2,_0x3f73f5,_0x10dc96,_0xecc1a8,_0x3bd193;this['_color']=(_0x179f2e=_0x569e88[_0x2f6d01(0x2f8)])!=null?_0x179f2e:this[_0x2f6d01(0x3f4)],this[_0x2f6d01(0x26e)]=(_0x212b2=_0x569e88[_0x2f6d01(0x386)])!=null?_0x212b2:this['_hovered'],this[_0x2f6d01(0x2c1)]=(_0x3f73f5=_0x569e88['range'])!=null?_0x3f73f5:this[_0x2f6d01(0x2c1)],this[_0x2f6d01(0x1b6)]=(_0x10dc96=_0x569e88[_0x2f6d01(0x27f)])!=null?_0x10dc96:this[_0x2f6d01(0x1b6)],this[_0x2f6d01(0x22f)]=(_0xecc1a8=_0x569e88['labelPosition'])!=null?_0xecc1a8:this['_labelPosition'],this['_backgroundColor']=(_0x3bd193=_0x569e88[_0x2f6d01(0x38f)])!=null?_0x3bd193:this[_0x2f6d01(0x273)],this[_0x2f6d01(0x2ea)]({'width':_0x569e88[_0x2f6d01(0x308)],'height':_0x569e88[_0x2f6d01(0x222)]});}['onMouseMove'](_0x3cdfd0){const _0x3a06ea=_0x3dfb2c,{row:_0x3eab7b,column:_0x4425ed}=_0x3cdfd0;if(_0x3eab7b>=this['_range']['startRow']&&_0x3eab7b<=this['_range'][_0x3a06ea(0x2ac)]&&_0x4425ed>=this[_0x3a06ea(0x2c1)]['startColumn']&&_0x4425ed<=this[_0x3a06ea(0x2c1)][_0x3a06ea(0x30c)]){this[_0x3a06ea(0x3e6)]({'hovered':!0x0});return;}this[_0x3a06ea(0x3e6)]({'hovered':!0x1});}[_0x3dfb2c(0x36d)](_0x44cc7c){return!0x1;}['_draw'](_0x5814dd){const _0x4e9ac0=_0x3dfb2c;p[_0x4e9ac0(0x2c9)][_0x4e9ac0(0x3a3)](_0x5814dd,{'width':this[_0x4e9ac0(0x308)],'height':this[_0x4e9ac0(0x222)],'strokeWidth':Lt,'stroke':this[_0x4e9ac0(0x3f4)],'evented':!0x1,'fill':this[_0x4e9ac0(0x273)]}),this[_0x4e9ac0(0x26e)]&&(_0x5814dd[_0x4e9ac0(0x1de)](),_0x5814dd[_0x4e9ac0(0x32a)](0x1,0x0,0x0,0x1,this[_0x4e9ac0(0x308)],this[_0x4e9ac0(0x22f)]===_0x4e9ac0(0x29a)?0x0:-W),ee[_0x4e9ac0(0x3a3)](_0x5814dd,{'text':this[_0x4e9ac0(0x1b6)],'color':this[_0x4e9ac0(0x3f4)]}),_0x5814dd[_0x4e9ac0(0x1dd)]());}}var Pt=Object['getOwnPropertyDescriptor'],wt=(_0xea8466,_0x14cc40,_0x9991f4,_0x518834)=>{for(var _0x3796b1=_0x518834>0x1?void 0x0:_0x518834?Pt(_0x14cc40,_0x9991f4):_0x14cc40,_0x27f52f=_0xea8466['length']-0x1,_0x5bd593;_0x27f52f>=0x0;_0x27f52f--)(_0x5bd593=_0xea8466[_0x27f52f])&&(_0x3796b1=_0x5bd593(_0x3796b1)||_0x3796b1);return _0x3796b1;},ae=(_0x1b572b,_0x25df3a)=>(_0x4e5317,_0x4c5f2d)=>_0x25df3a(_0x4e5317,_0x4c5f2d,_0x1b572b);const At=0x1389;let Ie=class extends a[_0x3dfb2c(0x366)]{constructor(_0x50d9c4,_0x56c7ff,_0x535126,_0x21f3d9){const _0x5c44b0=_0x3dfb2c;super(),h(this,_0x5c44b0(0x348),new Set()),h(this,_0x5c44b0(0x3cf),null),(this['_context']=_0x50d9c4,this['_sheetSkeletonManagerService']=_0x56c7ff,this[_0x5c44b0(0x209)]=_0x535126,this[_0x5c44b0(0x418)]=_0x21f3d9,this[_0x5c44b0(0x254)]());}[_0x3dfb2c(0x254)](){const _0x2a16f5=_0x3dfb2c;this['_sheetSkeletonManagerService'][_0x2a16f5(0x2b9)][_0x2a16f5(0x2d9)]($[_0x2a16f5(0x3c6)](this['dispose$']),$[_0x2a16f5(0x329)](_0x446443=>{const _0x192bf0=_0x2a16f5;if(_0x446443){const _0x48f23c=_0x446443[_0x192bf0(0x24e)];return d['combineLatest'](this[_0x192bf0(0x209)][_0x192bf0(0x3bc)](this[_0x192bf0(0x23b)][_0x192bf0(0x1d3)]),this[_0x192bf0(0x418)][_0x192bf0(0x3fe)])[_0x192bf0(0x2d9)]($[_0x192bf0(0x412)](([_0x3bbf8e,_0x16fc55])=>{const _0x3c7a03=_0x192bf0,_0x313f24=new Map();return _0x3bbf8e[_0x3c7a03(0x1c9)]((_0x3d7c8a,_0xa14077)=>{const _0x2d86ce=_0x3c7a03;if(_0x3d7c8a[_0x2d86ce(0x31e)]===_0x48f23c){const _0x55c78b={..._0x3d7c8a};_0x55c78b[_0x2d86ce(0x2f8)]=this[_0x2d86ce(0x418)][_0x2d86ce(0x395)](_0x3d7c8a[_0x2d86ce(0x2f8)]),_0x313f24['set'](_0xa14077,_0x55c78b);}}),{'skeleton':_0x446443,'cursors':_0x313f24};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x2a16f5(0x30e)](({skeleton:_0x5e7f26,cursors:_0x2f3733})=>{const _0x10866d=_0x2a16f5;this[_0x10866d(0x2a1)](),_0x5e7f26&&this[_0x10866d(0x311)](_0x5e7f26,_0x2f3733);}),this['_sheetSkeletonManagerService'][_0x2a16f5(0x2b9)]['subscribe'](_0x18a7ba=>{const _0x4f7aa8=_0x2a16f5;if(_0x18a7ba==null)return;const {skeleton:_0x15e52c}=_0x18a7ba,{scene:_0x24a62a}=this[_0x4f7aa8(0x23b)];_0x24a62a[_0x4f7aa8(0x417)][_0x4f7aa8(0x268)](a[_0x4f7aa8(0x335)](_0x32dcd5=>{const _0x300c59=_0x4f7aa8;var _0x3c3ede,_0x329001;const {offsetX:_0x2f036a,offsetY:_0x1700b5}=_0x32dcd5,{x:_0x3911d8,y:_0x5c52a6}=_0x24a62a[_0x300c59(0x362)](p[_0x300c59(0x3d6)][_0x300c59(0x3ad)]([_0x2f036a,_0x1700b5])),{scaleX:_0x30be4c,scaleY:_0x6211f7}=_0x24a62a['getAncestorScale'](),_0x29fd76=_0x24a62a[_0x300c59(0x1e7)](p[_0x300c59(0x3b4)][_0x300c59(0x1cd)]),_0x48ed70=_0x24a62a[_0x300c59(0x260)](p[_0x300c59(0x3d6)][_0x300c59(0x3ad)]([_0x3911d8,_0x5c52a6]),_0x29fd76),_0x25b04b=_0x15e52c[_0x300c59(0x337)](_0x2f036a,_0x1700b5,_0x30be4c,_0x6211f7,_0x48ed70);((_0x3c3ede=this[_0x300c59(0x3cf)])==null?void 0x0:_0x3c3ede['column'])===_0x25b04b[_0x300c59(0x3f2)]&&((_0x329001=this[_0x300c59(0x3cf)])==null?void 0x0:_0x329001[_0x300c59(0x2d2)])===_0x25b04b[_0x300c59(0x2d2)]||this['_cursors'][_0x300c59(0x1c9)](_0x225a17=>{_0x225a17['onMouseMove'](_0x25b04b);});},0x64));});}['_updateCollabCursors'](_0xdaecc6,_0x2298d3){const _0x4e288a=_0x3dfb2c;var _0x591adc;const _0x531f91=(_0x591adc=this[_0x4e288a(0x3a9)][_0x4e288a(0x285)]())==null?void 0x0:_0x591adc[_0x4e288a(0x2e9)];if(!_0x531f91)return;const _0x261a96=this['_getSheetObject']();if(!_0x261a96)return;this[_0x4e288a(0x348)]['forEach'](_0x27a2ed=>{const _0x3364c0=_0x4e288a;_0x27a2ed[_0x3364c0(0x32c)]();});const {scene:_0x1e79a1}=_0x261a96,_0x453738=yt(Array[_0x4e288a(0x266)](_0x2298d3[_0x4e288a(0x39e)]()))[_0x4e288a(0x412)](_0x17f366=>{const _0x104bce=_0x4e288a,{color:_0x42e780,range:_0x5a078b,name:_0x1862d9,selection:_0x266884,sheetID:_0x5ab143}=_0x17f366,{startColumn:_0x7965b7,startRow:_0x555a61,endColumn:_0x4db8dc,endRow:_0x291d19}=_0x5a078b,_0xa764eb=G[_0x104bce(0x3e0)](_0x555a61,_0x7965b7,_0x1e79a1,_0x531f91),_0x33e5c5=G[_0x104bce(0x3e0)](_0x291d19,_0x4db8dc,_0x1e79a1,_0x531f91),{columnHeaderHeightAndMarginTop:_0x2beaf1}=_0x531f91,{startX:_0x1faef2,startY:_0x438615}=_0xa764eb,{endX:_0x2b349c,endY:_0x1b3675}=_0x33e5c5,_0x514da8=_0x2b349c-_0x1faef2,_0x31eb63=_0x1b3675-_0x438615,_0x2b1825={'labelPosition':_0x438615-_0x2beaf1>=W?'top':'bottom','sheetID':_0x5ab143,'range':_0x5a078b,'color':_0x42e780,'name':_0x1862d9,'selection':_0x266884,'left':_0x1faef2,'top':_0x438615,'width':_0x514da8,'height':_0x31eb63,'evented':!0x1,'zIndex':At};return new $e(_0x1862d9,_0x2b1825);});_0x1e79a1[_0x4e288a(0x30d)](_0x453738,Mt),this[_0x4e288a(0x348)]=new Set(_0x453738);}[_0x3dfb2c(0x2a1)](){const _0x5c46a3=_0x3dfb2c;var _0x16e005;(_0x16e005=this[_0x5c46a3(0x348)])==null||_0x16e005[_0x5c46a3(0x1c9)](_0x64c60e=>_0x64c60e['dispose']());}[_0x3dfb2c(0x326)](){const _0x556470=_0x3dfb2c;return G['getSheetObject'](this['_context'][_0x556470(0x346)],this['_context']);}};Ie=wt([ae(0x1,a['Inject'](G[_0x3dfb2c(0x1bd)])),ae(0x2,a[_0x3dfb2c(0x247)](x)),ae(0x3,a[_0x3dfb2c(0x247)](a[_0x3dfb2c(0x223)]))],Ie);function _0x4ae9(){const _0x1f8bed=['isActive','urlChange$','clsx','createElement','useRef','DocIMEInputManagerService','JOIN_ROOM_FAILED','uni.network.url-service','jiqing.500','BuiltInUIPart','find','location','green.600','_entities','NodePositionConvertToRectRange','_docSkeleton','xlink:href','bottom','setItem','PERMISSION_DENIED','getAncestorScale','fillText','addEventListener','LOGIN_FAILED','_removeCollabCursors','evenodd','mapTo','_transformService','resize','all','UNAUTHENTICATED','SetDocZoomRatioOperation','mutations','_initEntityListener','_scheduleClearOtherTimer','endRow','length','pluginName','_colorIndex','_updateURLWithCurrentState','collab-client.tooltip.reconnect','Shape','_syncEditingCollabCursorService','range','propertyIsEnumerable','_memberService','off-line-icon','BrowserCollaborationSocketService','currentSkeleton$','DOC_RANGE_TYPE','onPointerLeave$','CollaborationStatus','createInstance','_selfUnitIDs','SOCKET_FAILED_RETRY','code','_range','params','DocSkeletonManagerService','_onCursorDelete','DependentOn','OTHER_CLIENT_EDITING','TRANSFORM_CHANGE_OBSERVABLE_TYPE','doc.mutation.rich-text-editing','Rect','_unitOnClients','getUniverSheetInstance','cursorInfo','getLocalCacheKey','_univerInstanceService','getUnitStatus$','_initResize','_toggleOffline','row','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_instanceService','redoState','href','handleInsertCol','ACTIVE_UNIT_EVENT_CHANNEL','pipe','RECT','Disposable','EffectRefRangId','idSuffix','InsertColCommandId','transformMutationsWithChangeset','mergeOverrideWithDependencies','ONLINE','IBeforeCloseService','setTimeout','collabStatus.synced','max','saveTaskMap','WECHAT_HAS_BEEN_BOUND','runId','skeleton','transformByState','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','APPLY_PERMISSION_DENIED','_urlService','_entityInit$','YUUMI_CONNECTOR_URL_NOT_FOUND','colorChannel1','_docTransformStateCacheService','UNDEFINED','RefRangeService','77961jcGdWa','_cursor','UNRECOGNIZED','_imageIoService','color','getRenderById','TEXT','collabStatus.offline','executionId','displayName','permission.title','status$','IConfigService','DesktopCollaborationStatusDisplayController','ranges','NOT_FOUND','white','_handleLeaveEvent','roomMembers','unsubscribe','width','entityInit$','CommandType','round','endColumn','addObjects','subscribe','setUndoRedoMutationParamsCache','univer-mr-2\x20univer-flex\x20univer-text-xl','_updateCollabCursors','saveOfflineData','jsxs','toStringTag','UniverIcon','stringify','_startDocCollabCursor','_initStatusListener','dispose$','413sVtXFh','combineLatest','findNodePositionByCharIndex','session.will-retry','sheetID','selection','RemoteUniscriptService','handleInsertRangeMoveDown','getUndoRedoMutationParamsCache','reconnect','_localeService','_collabCursorState$','_getSheetObject','subunit','unitID','switchMap','transform','indexOf','makeDirty','fromEventSubject','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','InsertRangeMoveDownCommandId','type','eventID','whenReady','call','CollaborationController','debounce','_configService','getCellPositionByOffset','_session','_clearOtherTimers','isTransformMutationFailure','Warning','RegularPolygon','_localCacheService','Optional','ICommandService','APPLY_DUPLICATED','handleMoveRange','key','EMAIL_VERIFY_CODE_MISMATCH','children','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','unit','649880fZUUxz','_cursors','_registerRenderDependencies','string','set','_drawTextRange','_online','some','unload','getColor','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','TEXT_RANGE_LAYER_INDEX','IUniverInstanceService','deepClone','split','[CollaborationDataLoaderController]','IUIPartsService','beginPath','setActiveRange','extend','requireSession','delete','symbol','getCollabEntity$','_transformUndoRedoStack','YUUMI_SUBSCRIPTION_NOT_FOUND','CONNECTOR_DATA_TOO_LARGE','getRelativeToViewportCoord','SetSelectionsOperation','_getSessionTicket','SOCKET_FAILED','RxDisposable','assignAColorForMemberID','generateRandomId','MOBILE_VERIFY_CODE_MISMATCH','rgba(255,\x20255,\x20255,\x200.01)','EMAIL_HAS_BEEN_BOUND','getOwnPropertySymbols','triggerDblclick','YUUMI_ALL_TABLES_IS_INVALID','1436016akAZlE','CollaborationSocketService','_initEvent','_shapes','clearInterval','actions','clipPath','UniverCollaborationClientUIPlugin','has','getMemberID','complete','DeleteRangeMoveUpCommandId','m1Prime','_dataLoaderService','ILogService','deserializeRangeWithSheet','LICENSE_EXPORT_SIZE_EXCEEDED','_setupSubUnitSync','collabStatus.notCollab','_docClipboardService','transformMutation','collaboration.closeRoom','cursorInfo$','hovered','replaceState','Failed','_transformHistoryAndStateStack','RemoveRowCommandId','data','get','session.collaboration-timeout','SetWorksheetActivateCommand','backgroundColor','svg','/run/','CONFLICT','prototype','div','getColorFromTheme','hasOwnProperty','defIds','getActiveSheet','on-line-icon','distinctUntilChanged','debounceTime','roomMembers$','CLOSE_ROOM','values','_uiPartsService','addHandlerCallback','textRanges','getMember','drawWith','_getAnchorBounding','send','_ensureSubject','CollaborationUIEventId','path','_sheetSkeletonManagerService','exhaustSavingTask','getOffsetConfig','ColorKit','FromArray','collabCursorState$','collabStatus.fetchMiss','sessionStatus$','then','PENDING','DisposableCollection','SHEET_VIEWPORT_KEY','MoveRangeCommandId','DEFAULT_WS_SESSION_TICKET_URL','getUnhiddenWorksheets','CollaborationSessionService','_textBubble','isArray','moveTo','getCollabCursors$','BehaviorSubject','6792KtfMAY','ALREADY_EXISTS','body','IRenderManagerService','throttleTime','filter','add','_revisionService','takeUntil','MOBILE_HAS_BEEN_BOUND','entries','OTHER_CLIENTS_EDITING','mask','SUBMIT_CHANGESET_TIMEOUT','INVALID_INVITE_CODE','_render','on-line-icon_clip0_910_349','_lastPointer','attrs','isTransformMutationsWithChangesetSuccess','_docTransformIMECacheService','replaceDocRanges','_scheduleHeartbeat','CollaborationDataLoaderController','Vector2','ILocalCacheService','with','includes','lineTo','Unknown\x20user','error','none','_anchorDot','min','getCoordByCell','INVALID_ARGUMENT','Injector','_cursorInfo$','contains','_assignedColors','setShapeProps','PY_RUNTIME_SCRIPT_ERROR','INVITE_CODE_ALREADY_BOUND','ticket','invokeId','Error','DocStateChangeManagerService','collab-rect-range-','LICENSE_MAX_UNITS_EXCEEDED','arc','hide','useDependency','column','function','_color','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','Tooltip','FETCH_MISS','show','_transformPreviousActiveRange','_roomMembers$','OffLineIcon','_renderManagerService','newValue','currentTheme$','runOnServer','APPLY_REJECT','M0\x200H16V16H0z','collabStatus.conflict','6819ErGNUq','collab-text-range-','_createSocketURL','debug','LocaleService','SheetCollabCursorShape','pushState','Workbook','getTypeOfUnitDisposed$','getUnitId','disposeUnit','getRangePointData','_startSheetCollabCursor','_docSyncEditingCollabCursorService','_refRangeService','map','transformStateCache','setAlpha','USER_NOT_INVITED_CODE','onPointerEnter$','onPointerMove$','_themeService','_hover','init','connectInjector','_handleJoinEvent','transformIMECache','INVITE_CODE_REQUIRED','getCurrentSelections','onRendered','ISocketService','override','_messageService','apply','564525uWaCFL','_logService','YUUMI_UNABLE_LOAD_URL','OnLineIcon','COMPLETION_FINISHED','SessionStatus','OFFLINE','setInterval','TOO_MANY_REQUESTS','_name','getValue','_cursorShapes','_disabled','_localStorageService','_initDependencies','univer-flex\x20univer-items-center','SheetSkeletonManagerService','_notificationService','getDocRanges','_docSkeletonManagerService','top','_unitStatus','YUUMI_URL_COL_OUT_OF_RANGE','UNIVER_DOC','parse','_anchor','toString','Rectangle','forEach','activeSheet$','UnitStatus','_config','VIEW_MAIN','_httpService','assign','updateOfflineData','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','url(#on-line-icon_clip0_910_349)','unitId','UPDATE_CURSOR','loadOfflineData','50MvrBAf','undoState','INVITE_CODE_HAS_BEEN_UES','collaboration-client.offline-data-not-saved','_getMergeRange','_heartbeatTimer','onStarting','restore','save','DocCollaborationEntity','1em','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','SNAPSHOT_INVALID_SNAPSHOT','collaboration.single-unit.warning','handleIRemoveRow','unshift','_updateSubUnitFromURLParams','getViewport','measureText','fill','asObservable','translate(.97)','history','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','#FFF','_registerDependencies','m2Prime','_scheduleSaving','_onCursorUpdate','http://www.w3.org/2000/svg','url(#off-line-icon_clip0_910_343)','transformSelections','executeCommand','_eventUnsubscribe','INotificationService','INTERNAL_ERROR','handleIRemoveCol','_saveTaskMap','_id','docStateChange$','AWAITING_WITH_PENDING','COLORS','getTypeOfUnitAdded$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_scene','_getSaveTimeout','_colorAssignService','handleDeleteRangeMoveUp','MUTATION','getSheetId','_beforeCloseService','_collabCursorController','event$','WebBrowserSingleActiveUnitService','collaboration-client-ui.config','source','syncEditingCollabCursor','shareReplay','getParam','ITransformService','YUUMI_ASYNCIO_CANCELLED','tag','toDisposable','InsertRowCommandId','getConfig','USERS_LEAVE','InsertRangeMoveRightCommandId','YUUMI_AI_RUN_FAILED','_injector','UniverCollaborationClientPlugin','transformRemoteChangeset','getSkeleton','defineProperty','Subject','_collaborationUIEventService','searchParams','height','ThemeService','session.connection-failed','addObject','NodePositionConvertToCursor','IURLService','_docStateChangeManagerService','className','_drawRectRange','merge','clearTimeout','_hideTimer','replace','_labelPosition','_send','_handleHeartbeatEvent','icon','memberID','getSheetBySheetId','black','useCallback','DeleteRangeMoveLeftCommandId','disposeWithMe','forwardRef','flatMap','_context','_refreshCollabCursors','_handleEvent','_drawAnchor','getStateCache','collab-text-anchor-','getFocusedUnit','YUUMI_NO_CUBOID_FOR_QUESTION','blue.400','_collabSessionService','Tools','next','Inject','_initCommandExecutedListener','MessageType','text','NO_OTHER_CLIENTS_EDITING','wsSessionTicketUrl','CollaborationEvent','sheetId','purple.300','defs','url(#$1','_removeClearOtherTimer','_updateLocalCursor','_init','UNIVER_SHEET','SNAPSHOT_HAS_BEEN_REMOVED','_cachedData','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','NOT_COLLAB','concat','_saveCache','UniverInstanceType','YUUMI_RATE_OVER_LIMIT','trim','1335788MjoiQQ','getVpScrollXYInfoByPosToVp','serializeRangeWithSheet','random','currentColor','storage','jsx','from','ENSURE_SNAPSHOT_EXECUTION','subscribeEvent','RevisionService','APPLY_REVISION_CONFILICT','toRgbString','onCommandExecuted','setStateCache','_hovered','WebSocketService','MemberService','fillStyle','0\x200\x2017\x2016','_backgroundColor','createIdentifier','size','getOwnPropertyDescriptor','LICENSE_DISTRO_REJECTED','_handleHover','dispose','_collaborationController','imageSourceType','off-line-icon_clip0_910_343','_commandService','editingUnit','name','push','CollaborationUIEventService','closePath','_status$','setParam','getCurrent','_toggleOnline','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED'];_0x4ae9=function(){return _0x1f8bed;};return _0x4ae9();}function yt(_0x284399){const _0xd43f86=_0x3dfb2c,_0xa42e50=new Map();return _0x284399[_0xd43f86(0x1c9)](_0xe8affc=>{const _0x410133=_0xd43f86;if(_0xa42e50[_0x410133(0x377)](_0xe8affc[_0x410133(0x31f)])){const _0x2eb5e6=_0xa42e50[_0x410133(0x38c)](_0xe8affc['selection']);_0x2eb5e6[_0x410133(0x27f)]+=',\x20'+_0xe8affc[_0x410133(0x27f)];}else _0xa42e50[_0x410133(0x34b)](_0xe8affc['selection'],_0xe8affc);}),Array['from'](_0xa42e50[_0xd43f86(0x39e)]());}var $t=Object['getOwnPropertyDescriptor'],xt=(_0x4bb378,_0x1c138a,_0x58eb06,_0x18184d)=>{for(var _0x3e729=_0x18184d>0x1?void 0x0:_0x18184d?$t(_0x1c138a,_0x58eb06):_0x1c138a,_0x363c1f=_0x4bb378['length']-0x1,_0x5d139a;_0x363c1f>=0x0;_0x363c1f--)(_0x5d139a=_0x4bb378[_0x363c1f])&&(_0x3e729=_0x5d139a(_0x3e729)||_0x3e729);return _0x3e729;},y=(_0x4c7e77,_0x52b53e)=>(_0x5af702,_0x513020)=>_0x52b53e(_0x5af702,_0x513020,_0x4c7e77);let q=class extends a['Disposable']{constructor(_0x4082a9,_0x8fc313,_0x1a346f,_0x9472aa,_0x4d7127,_0x1762dc){const _0x35c7c0=_0x3dfb2c;super(),this['_beforeCloseService']=_0x4082a9,this[_0x35c7c0(0x33d)]=_0x8fc313,this[_0x35c7c0(0x220)]=_0x1a346f,this[_0x35c7c0(0x423)]=_0x9472aa,this[_0x35c7c0(0x1be)]=_0x4d7127,this['_localeService']=_0x1762dc,this['_setupBeforeClosingHandler'](),this[_0x35c7c0(0x371)]();}['_setupBeforeClosingHandler'](){const _0x39baba=_0x3dfb2c;this[_0x39baba(0x238)](this[_0x39baba(0x208)]['registerBeforeClose'](()=>{const _0x36c34e=_0x39baba;if(this[_0x36c34e(0x33d)][_0x36c34e(0x2e6)][_0x36c34e(0x275)])return this[_0x36c34e(0x324)]['t'](_0x36c34e(0x1d9));}));}['_initEvent'](){const _0x3d6db7=_0x3dfb2c;this[_0x3d6db7(0x238)](this[_0x3d6db7(0x220)][_0x3d6db7(0x20a)][_0x3d6db7(0x30e)](_0x56da4a=>{const _0x335ee5=_0x3d6db7;_0x56da4a['id']===u[_0x335ee5(0x3a7)][_0x335ee5(0x2c6)]&&this[_0x335ee5(0x423)][_0x335ee5(0x3f8)]({'type':D['MessageType']['Warning'],'content':this[_0x335ee5(0x324)]['t'](_0x335ee5(0x1e3))}),_0x56da4a['id']===u['CollaborationUIEventId'][_0x335ee5(0x39d)]&&this['_messageService'][_0x335ee5(0x3f8)]({'type':D[_0x335ee5(0x249)][_0x335ee5(0x33b)],'content':this[_0x335ee5(0x324)]['t']('collaboration.closeRoom')}),_0x56da4a['id']===u[_0x335ee5(0x3a7)]['PERMISSION_DENIED']&&this['_notificationService'][_0x335ee5(0x3f8)]({'title':this[_0x335ee5(0x324)]['t'](_0x335ee5(0x2fe)),'content':this[_0x335ee5(0x324)]['t']('permission.content'),'type':_0x335ee5(0x3dc),'duration':0x0}),_0x56da4a['id']===u['CollaborationUIEventId'][_0x335ee5(0x392)]&&this[_0x335ee5(0x423)][_0x335ee5(0x3f8)]({'type':D['MessageType'][_0x335ee5(0x3eb)],'content':this[_0x335ee5(0x324)]['t'](_0x335ee5(0x384))+'('+_0x56da4a['data']+')'}),_0x56da4a['id']===u['CollaborationUIEventId'][_0x335ee5(0x28f)]&&this[_0x335ee5(0x423)]['show']({'type':D[_0x335ee5(0x249)][_0x335ee5(0x33b)],'content':this[_0x335ee5(0x324)]['t'](_0x56da4a[_0x335ee5(0x38b)]||'')}),_0x56da4a['id']===u['CollaborationUIEventId'][_0x335ee5(0x2bf)]&&this[_0x335ee5(0x423)][_0x335ee5(0x3f8)]({'type':D['MessageType'][_0x335ee5(0x33b)],'content':this[_0x335ee5(0x324)]['t'](_0x335ee5(0x31d))}),_0x56da4a['id']===u[_0x335ee5(0x3a7)][_0x335ee5(0x365)]&&this[_0x335ee5(0x423)][_0x335ee5(0x3f8)]({'type':D[_0x335ee5(0x249)][_0x335ee5(0x3eb)],'content':this[_0x335ee5(0x324)]['t'](_0x335ee5(0x224))}),_0x56da4a['id']===u[_0x335ee5(0x3a7)][_0x335ee5(0x3cb)]&&this['_messageService'][_0x335ee5(0x3f8)]({'type':D[_0x335ee5(0x249)]['Error'],'content':this[_0x335ee5(0x324)]['t'](_0x335ee5(0x38d))});}));}};q=xt([y(0x0,O[_0x3dfb2c(0x2e2)]),y(0x1,u[_0x3dfb2c(0x3d7)]),y(0x2,a['Inject'](u[_0x3dfb2c(0x281)])),y(0x3,O['IMessageService']),y(0x4,O[_0x3dfb2c(0x1f8)]),y(0x5,a[_0x3dfb2c(0x247)](a['LocaleService']))],q);const Bt=_0x3dfb2c(0x20c),De={};var jt=Object[_0x3dfb2c(0x276)],kt=(_0x4a43c5,_0xde89cd,_0x496dd4,_0x39bc91)=>{const _0x1ad663=_0x3dfb2c;for(var _0xf3a74b=_0x39bc91>0x1?void 0x0:_0x39bc91?jt(_0xde89cd,_0x496dd4):_0xde89cd,_0x4e0c9e=_0x4a43c5[_0x1ad663(0x2ad)]-0x1,_0x16d841;_0x4e0c9e>=0x0;_0x4e0c9e--)(_0x16d841=_0x4a43c5[_0x4e0c9e])&&(_0xf3a74b=_0x16d841(_0xf3a74b)||_0xf3a74b);return _0xf3a74b;},Ue=(_0x2000f3,_0x37bd24)=>(_0xfa65fc,_0x31096d)=>_0x37bd24(_0xfa65fc,_0x31096d,_0x2000f3);let z=class{constructor(_0x26dfeb,_0x3b136e){const _0x35d208=_0x3dfb2c;this[_0x35d208(0x2a4)]=_0x26dfeb,this['_renderManagerService']=_0x3b136e;}[_0x3dfb2c(0x41d)](_0x2981e0){const _0x378b0b=_0x3dfb2c;this[_0x378b0b(0x35f)](_0x2981e0),this[_0x378b0b(0x3f9)](_0x2981e0);}[_0x3dfb2c(0x21c)](_0x2ccada){const _0x4cc7a9=_0x3dfb2c,{unitID:_0x4d73c8}=_0x2ccada,_0x237d15=this[_0x4cc7a9(0x3fc)]['getRenderById'](_0x4d73c8)[_0x4cc7a9(0x3d8)](E[_0x4cc7a9(0x28e)]),{redoCache:_0x550905}=_0x237d15[_0x4cc7a9(0x322)]();if(_0x550905[_0x4cc7a9(0x2ad)]===0x0)return _0x2ccada;let _0x3906eb=a[_0x4cc7a9(0x245)][_0x4cc7a9(0x354)](_0x2ccada['mutations'][0x0]);for(let _0x348d0a=0x0;_0x348d0a<_0x550905[_0x4cc7a9(0x2ad)];_0x348d0a++){const _0x416d9f={'id':_0x4cc7a9(0x2c8),'params':{..._0x550905[_0x348d0a]}},_0x5287d6=this[_0x4cc7a9(0x2a4)]['transformMutation'](_0x3906eb,_0x416d9f,!0x1);if(m['isTransformMutationFailure'](_0x5287d6))throw _0x5287d6['error'];_0x3906eb=_0x5287d6[_0x4cc7a9(0x37b)];}return{...a[_0x4cc7a9(0x245)]['deepClone'](_0x2ccada),'mutations':[_0x3906eb]};}[_0x3dfb2c(0x35f)](_0xbd27f4){const _0x1d28a3=_0x3dfb2c,{unitID:_0x8aeef8}=_0xbd27f4,_0x4a3b41=this[_0x1d28a3(0x3fc)][_0x1d28a3(0x2f9)](_0x8aeef8)[_0x1d28a3(0x3d8)](E['DocIMEInputManagerService']),{undoCache:_0x3a49a2,redoCache:_0x1d41fc}=_0x4a3b41[_0x1d28a3(0x322)]();if(_0x3a49a2['length']===0x0||_0x1d41fc[_0x1d28a3(0x2ad)]===0x0)return;const _0x31c9f3=[],_0x11c86c=[];let _0x4eb768=a[_0x1d28a3(0x245)][_0x1d28a3(0x354)](_0xbd27f4[_0x1d28a3(0x2a9)][0x0]),_0x38985a=a[_0x1d28a3(0x245)]['deepClone'](_0xbd27f4[_0x1d28a3(0x2a9)][0x0]);for(let _0x1580d0=_0x3a49a2['length']-0x1;_0x1580d0>=0x0;_0x1580d0--){const _0x30b5ea={'id':'doc.mutation.rich-text-editing','params':{..._0x3a49a2[_0x1580d0]}},_0x159a7a={'id':'doc.mutation.rich-text-editing','params':{..._0x1d41fc[_0x1580d0]}},_0x5cd7c4=this[_0x1d28a3(0x2a4)][_0x1d28a3(0x383)](_0x4eb768,_0x30b5ea,!0x1),_0x535f92=this[_0x1d28a3(0x2a4)]['transformMutation'](_0x38985a,_0x159a7a,!0x1);if(m[_0x1d28a3(0x33a)](_0x5cd7c4))throw _0x5cd7c4[_0x1d28a3(0x3dc)];if(m[_0x1d28a3(0x33a)](_0x535f92))throw _0x535f92[_0x1d28a3(0x3dc)];_0x31c9f3[_0x1d28a3(0x1e5)](_0x5cd7c4[_0x1d28a3(0x1f0)][_0x1d28a3(0x2c2)]),_0x11c86c[_0x1d28a3(0x1e5)](_0x535f92[_0x1d28a3(0x1f0)][_0x1d28a3(0x2c2)]),_0x4eb768=_0x5cd7c4[_0x1d28a3(0x37b)],_0x38985a=_0x535f92['m1Prime'];}_0x4a3b41[_0x1d28a3(0x30f)]({'undoCache':_0x31c9f3,'redoCache':_0x11c86c});}[_0x3dfb2c(0x3f9)](_0x23b6d9){const _0xc848fd=_0x3dfb2c,{unitID:_0x59bfd6}=_0x23b6d9,_0x294f90=this[_0xc848fd(0x3fc)]['getRenderById'](_0x59bfd6)[_0xc848fd(0x3d8)](E[_0xc848fd(0x28e)]),_0x1a59af=_0x294f90['getActiveRange']();if(_0x1a59af==null)return;const _0x49fe76=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x23b6d9['unitID'],'actions':null,'textRanges':[_0x1a59af]}}],_0x43daa0=this[_0xc848fd(0x2a4)][_0xc848fd(0x2df)](_0x23b6d9,_0x49fe76);if(!m[_0xc848fd(0x3d1)](_0x43daa0))throw _0x43daa0['error'];const _0x53244d=_0x43daa0['m2Prime'][0x0]['params']['textRanges'];Array['isArray'](_0x53244d)&&_0x53244d[_0xc848fd(0x2ad)]&&_0x294f90[_0xc848fd(0x359)](_0x53244d[0x0]);}};function _0x3c41(_0x40ce55,_0x4336ae){const _0x4ae918=_0x4ae9();return _0x3c41=function(_0x3c41a5,_0x540bd9){_0x3c41a5=_0x3c41a5-0x1ae;let _0x4a1dc7=_0x4ae918[_0x3c41a5];return _0x4a1dc7;},_0x3c41(_0x40ce55,_0x4336ae);}z=kt([Ue(0x0,m[_0x3dfb2c(0x211)]),Ue(0x1,p[_0x3dfb2c(0x3c1)])],z);var Ft=Object[_0x3dfb2c(0x276)],Ht=(_0x248641,_0x46be23,_0x11cdd3,_0x5114f0)=>{const _0x35b3d1=_0x3dfb2c;for(var _0x30475f=_0x5114f0>0x1?void 0x0:_0x5114f0?Ft(_0x46be23,_0x11cdd3):_0x46be23,_0xf1a797=_0x248641[_0x35b3d1(0x2ad)]-0x1,_0xc0cf3b;_0xf1a797>=0x0;_0xf1a797--)(_0xc0cf3b=_0x248641[_0xf1a797])&&(_0x30475f=_0xc0cf3b(_0x30475f)||_0x30475f);return _0x30475f;},ce=(_0x3166f6,_0x586c73)=>(_0x30b68d,_0x15896d)=>_0x586c73(_0x30b68d,_0x15896d,_0x3166f6);let J=class{constructor(_0x4bdbe6,_0x357cde,_0x172d1f){const _0x3aa8cc=_0x3dfb2c;this[_0x3aa8cc(0x21a)]=_0x4bdbe6,this[_0x3aa8cc(0x2a4)]=_0x357cde,this[_0x3aa8cc(0x228)]=_0x172d1f;}[_0x3dfb2c(0x413)](_0x5dddb5){this['_transformHistoryAndStateStack'](_0x5dddb5);}[_0x3dfb2c(0x21c)](_0x35f7b0){const _0x17a1b1=_0x3dfb2c,{unitID:_0x558e10}=_0x35f7b0,{collaboration:_0x119408}=this[_0x17a1b1(0x228)][_0x17a1b1(0x23f)](_0x558e10);if(_0x119408[_0x17a1b1(0x2ad)]===0x0)return _0x35f7b0;let _0x23dead=a[_0x17a1b1(0x245)][_0x17a1b1(0x354)](_0x35f7b0[_0x17a1b1(0x2a9)][0x0]);for(let _0x554e9f=0x0;_0x554e9f<_0x119408['length'];_0x554e9f++){const _0x21ae6a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x119408[_0x554e9f][_0x17a1b1(0x1d3)],..._0x119408[_0x554e9f][_0x17a1b1(0x2d5)]}},_0x5de18f=this['_transformService']['transformMutation'](_0x23dead,_0x21ae6a,!0x1);if(m[_0x17a1b1(0x33a)](_0x5de18f))throw _0x5de18f[_0x17a1b1(0x3dc)];_0x23dead=_0x5de18f[_0x17a1b1(0x37b)];}return{...a[_0x17a1b1(0x245)][_0x17a1b1(0x354)](_0x35f7b0),'mutations':[_0x23dead]};}[_0x3dfb2c(0x389)](_0x38ea6e){const _0x3beb64=_0x3dfb2c,{unitID:_0x457495}=_0x38ea6e,{history:_0x4b4d4c,collaboration:_0xc059cc}=this[_0x3beb64(0x228)][_0x3beb64(0x23f)](_0x457495);if(_0x4b4d4c[_0x3beb64(0x2ad)]===0x0&&_0xc059cc[_0x3beb64(0x2ad)]===0x0)return;const _0x183066=[],_0x4982eb=[];let _0x161f50=a[_0x3beb64(0x245)]['deepClone'](_0x38ea6e['mutations'][0x0]),_0x551f09=a[_0x3beb64(0x245)][_0x3beb64(0x354)](_0x38ea6e[_0x3beb64(0x2a9)][0x0]);for(let _0x55c704=_0x4b4d4c[_0x3beb64(0x2ad)]-0x1;_0x55c704>=0x0;_0x55c704--){const _0x7ef826={'id':_0x3beb64(0x2c8),'params':{'unitId':_0x4b4d4c[_0x55c704]['unitId'],..._0x4b4d4c[_0x55c704][_0x3beb64(0x1d7)]}},_0x125145={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4b4d4c[_0x55c704][_0x3beb64(0x1d3)],..._0x4b4d4c[_0x55c704][_0x3beb64(0x2d5)]}},_0x3af536=this[_0x3beb64(0x2a4)][_0x3beb64(0x383)](_0x161f50,_0x7ef826,!0x1),_0x11971a=this['_transformService'][_0x3beb64(0x383)](_0x551f09,_0x125145,!0x1);if(m['isTransformMutationFailure'](_0x3af536))throw _0x3af536[_0x3beb64(0x3dc)];if(m[_0x3beb64(0x33a)](_0x11971a))throw _0x11971a[_0x3beb64(0x3dc)];_0x183066[_0x3beb64(0x1e5)]({..._0x4b4d4c[_0x55c704],'undoState':_0x3af536['m2Prime'][_0x3beb64(0x2c2)],'redoState':_0x11971a[_0x3beb64(0x1f0)]['params']}),_0x161f50=_0x3af536[_0x3beb64(0x37b)],_0x551f09=_0x11971a[_0x3beb64(0x37b)];}_0x161f50=a[_0x3beb64(0x245)][_0x3beb64(0x354)](_0x38ea6e['mutations'][0x0]),_0x551f09=a[_0x3beb64(0x245)]['deepClone'](_0x38ea6e[_0x3beb64(0x2a9)][0x0]);for(let _0x435baf=_0xc059cc[_0x3beb64(0x2ad)]-0x1;_0x435baf>=0x0;_0x435baf--){const _0x145f9a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xc059cc[_0x435baf][_0x3beb64(0x1d3)],..._0xc059cc[_0x435baf][_0x3beb64(0x1d7)]}},_0x27e7ba={'id':_0x3beb64(0x2c8),'params':{'unitId':_0xc059cc[_0x435baf][_0x3beb64(0x1d3)],..._0xc059cc[_0x435baf][_0x3beb64(0x2d5)]}},_0x5d179b=this['_transformService'][_0x3beb64(0x383)](_0x161f50,_0x145f9a,!0x1),_0x4088d5=this[_0x3beb64(0x2a4)][_0x3beb64(0x383)](_0x551f09,_0x27e7ba,!0x1);if(m[_0x3beb64(0x33a)](_0x5d179b))throw _0x5d179b[_0x3beb64(0x3dc)];if(m[_0x3beb64(0x33a)](_0x4088d5))throw _0x4088d5[_0x3beb64(0x3dc)];_0x4982eb[_0x3beb64(0x1e5)]({..._0xc059cc[_0x435baf],'undoState':_0x5d179b[_0x3beb64(0x1f0)][_0x3beb64(0x2c2)],'redoState':_0x4088d5[_0x3beb64(0x1f0)][_0x3beb64(0x2c2)]}),_0x161f50=_0x5d179b[_0x3beb64(0x37b)],_0x551f09=_0x4088d5[_0x3beb64(0x37b)];}this[_0x3beb64(0x228)][_0x3beb64(0x26d)](_0x457495,{'history':_0x183066,'collaboration':_0x4982eb});}};J=Ht([ce(0x0,a[_0x3dfb2c(0x247)](a[_0x3dfb2c(0x3e2)])),ce(0x1,m[_0x3dfb2c(0x211)]),ce(0x2,a[_0x3dfb2c(0x247)](E[_0x3dfb2c(0x3ec)]))],J);var Yt=Object[_0x3dfb2c(0x276)],Wt=(_0x45c613,_0x384ead,_0x1b4a76,_0x5c0840)=>{const _0x33d296=_0x3dfb2c;for(var _0x1bf7df=_0x5c0840>0x1?void 0x0:_0x5c0840?Yt(_0x384ead,_0x1b4a76):_0x384ead,_0x55976e=_0x45c613[_0x33d296(0x2ad)]-0x1,_0x1fe8bc;_0x55976e>=0x0;_0x55976e--)(_0x1fe8bc=_0x45c613[_0x55976e])&&(_0x1bf7df=_0x1fe8bc(_0x1bf7df)||_0x1bf7df);return _0x1bf7df;},Ne=(_0x36daed,_0x4088ec)=>(_0x8c8393,_0x56f4ae)=>_0x4088ec(_0x8c8393,_0x56f4ae,_0x36daed);let Z=class{constructor(_0x4d2ef0,_0x1ac89f){const _0x5c0ebf=_0x3dfb2c;this['_injector']=_0x4d2ef0,this[_0x5c0ebf(0x2a4)]=_0x1ac89f;}['transformSelections'](_0x34f7c1){const _0x2733a9=_0x3dfb2c;var _0x2d1f9c;const _0x410025=this['_injector']['get'](Y['DocSelectionManagerService']),_0x308004=(_0x2d1f9c=_0x410025[_0x2733a9(0x1bf)]())!=null?_0x2d1f9c:[];if(_0x308004[_0x2733a9(0x2ad)]===0x0)return;const _0x1bd51a=_0x34f7c1[_0x2733a9(0x328)],_0x3546b0=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1bd51a,'actions':null,'textRanges':_0x308004}}],_0x11ae40=this[_0x2733a9(0x2a4)][_0x2733a9(0x2df)](_0x34f7c1,_0x3546b0);if(!m['isTransformMutationsWithChangesetSuccess'](_0x11ae40))throw _0x11ae40[_0x2733a9(0x3dc)];const _0x456c15=_0x11ae40[_0x2733a9(0x1f0)][0x0][_0x2733a9(0x2c2)][_0x2733a9(0x3a1)];Array['isArray'](_0x456c15)&&_0x456c15[_0x2733a9(0x2ad)]&&_0x410025[_0x2733a9(0x3d3)](_0x456c15,{'unitId':_0x1bd51a,'subUnitId':_0x1bd51a},!0x1);}};Z=Wt([Ne(0x0,a[_0x3dfb2c(0x247)](a[_0x3dfb2c(0x3e2)])),Ne(0x1,m[_0x3dfb2c(0x211)])],Z);var Vt=Object[_0x3dfb2c(0x276)],Xt=(_0x232375,_0x2ea357,_0x24bd4e,_0x1ac6a2)=>{const _0x33ff0c=_0x3dfb2c;for(var _0x28f203=_0x1ac6a2>0x1?void 0x0:_0x1ac6a2?Vt(_0x2ea357,_0x24bd4e):_0x2ea357,_0x16a866=_0x232375[_0x33ff0c(0x2ad)]-0x1,_0x4d552a;_0x16a866>=0x0;_0x16a866--)(_0x4d552a=_0x232375[_0x16a866])&&(_0x28f203=_0x4d552a(_0x28f203)||_0x28f203);return _0x28f203;},N=(_0x5b60d9,_0x4925d3)=>(_0x5f4004,_0x286f0b)=>_0x4925d3(_0x5f4004,_0x286f0b,_0x5b60d9);let Q=class extends a[_0x3dfb2c(0x2db)]{constructor(_0x302aca,_0x295ae8,_0x7244a5,_0x5bd004,_0x10b757,_0x5027a0,_0x133e46,_0x10b4c2){const _0x159690=_0x3dfb2c;super(),h(this,'_status$',new d[(_0x159690(0x3bd))](u[_0x159690(0x2bc)]['NOT_COLLAB'])),(this[_0x159690(0x228)]=_0x302aca,this[_0x159690(0x27a)]=_0x295ae8,this[_0x159690(0x3d2)]=_0x7244a5,this[_0x159690(0x2f1)]=_0x5bd004,this['_docTransformSelectionsService']=_0x10b757,this['_docSyncEditingCollabCursorService']=_0x5027a0,this[_0x159690(0x423)]=_0x133e46,this[_0x159690(0x324)]=_0x10b4c2,this['_initEntityListener']());}[_0x3dfb2c(0x2aa)](){const _0x3d7506=_0x3dfb2c;this['disposeWithMe'](this[_0x3d7506(0x27a)][_0x3d7506(0x309)][_0x3d7506(0x30e)](_0x3637cd=>{const _0x2d5d94=_0x3d7506,_0x38e28d=this['_docStateChangeManagerService'][_0x2d5d94(0x1fd)][_0x2d5d94(0x30e)](_0xb200f5=>{const _0xebdf58=_0x2d5d94;if(_0xb200f5==null)return;const {unitId:_0x1e5719,redoState:_0x5d092e,commandId:_0x124e7b}=_0xb200f5;if(_0x1e5719!==_0x3637cd['unitID'])return;const _0x25785d={'id':_0x124e7b,'type':a[_0xebdf58(0x30a)][_0xebdf58(0x206)],'params':{'unitId':_0x1e5719,'actions':_0x5d092e[_0xebdf58(0x374)],'textRanges':null}};_0x3637cd['onLocalMutation'](_0x25785d);});if(_0x3637cd[_0x2d5d94(0x238)](_0x38e28d),_0x3637cd instanceof u[_0x2d5d94(0x1df)]){const _0x2f06a1={'onTransformIME':_0x28da10=>this[_0x2d5d94(0x3d2)][_0x2d5d94(0x41d)](_0x28da10),'onTransformState':_0x5b5d0c=>this[_0x2d5d94(0x2f1)][_0x2d5d94(0x413)](_0x5b5d0c),'onTransformSelections':_0x2bc3c8=>this['_docTransformSelectionsService'][_0x2d5d94(0x1f5)](_0x2bc3c8),'onSyncEditingCollabCursor':_0x32966=>this[_0x2d5d94(0x410)][_0x2d5d94(0x20e)](_0x32966),'onTransformRemoteChangesetByIMECache':_0x3cb04f=>this[_0x2d5d94(0x3d2)][_0x2d5d94(0x21c)](_0x3cb04f),'onTransformRemoteChangesetByStateCache':_0x1b9fb6=>this[_0x2d5d94(0x2f1)][_0x2d5d94(0x21c)](_0x1b9fb6)};_0x3637cd[_0x2d5d94(0x3a0)](_0x2f06a1);}}));}};Q=Xt([N(0x0,a[_0x3dfb2c(0x247)](E['DocStateChangeManagerService'])),N(0x1,a[_0x3dfb2c(0x247)](u[_0x3dfb2c(0x334)])),N(0x2,a[_0x3dfb2c(0x247)](z)),N(0x3,a['Inject'](J)),N(0x4,a['Inject'](Z)),N(0x5,a['Inject'](pe)),N(0x6,O['IMessageService']),N(0x7,a[_0x3dfb2c(0x247)](a[_0x3dfb2c(0x407)]))],Q);var Gt=Object[_0x3dfb2c(0x276)],Kt=(_0x41fa6d,_0x480bf2,_0x149164,_0x394621)=>{const _0x1c7d06=_0x3dfb2c;for(var _0x55406d=_0x394621>0x1?void 0x0:_0x394621?Gt(_0x480bf2,_0x149164):_0x480bf2,_0x2a443b=_0x41fa6d[_0x1c7d06(0x2ad)]-0x1,_0xac44a8;_0x2a443b>=0x0;_0x2a443b--)(_0xac44a8=_0x41fa6d[_0x2a443b])&&(_0x55406d=_0xac44a8(_0x55406d)||_0x55406d);return _0x55406d;},le=(_0x43673a,_0x516b53)=>(_0x2e4f1d,_0x40ceca)=>_0x516b53(_0x2e4f1d,_0x40ceca,_0x43673a);let ve=class extends a[_0x3dfb2c(0x2db)]{constructor(_0x2aa1b6,_0x53791a,_0x1cd580){const _0x928ae2=_0x3dfb2c;super(),h(this,_0x928ae2(0x257),new Map()),h(this,_0x928ae2(0x1fb),new Map()),h(this,_0x928ae2(0x1b9),!0x1),(this[_0x928ae2(0x336)]=_0x2aa1b6,this[_0x928ae2(0x1ba)]=_0x53791a,this[_0x928ae2(0x3c5)]=_0x1cd580);}['disableLocalCache'](){const _0x4294d8=_0x3dfb2c;this[_0x4294d8(0x1b9)]=!0x0;}['enableLocalCache'](){const _0x598e99=_0x3dfb2c;this[_0x598e99(0x1b9)]=!0x1;}get[_0x3dfb2c(0x2e6)](){const _0x2d33d7=_0x3dfb2c;return this[_0x2d33d7(0x1fb)];}['dispose'](){const _0x561f59=_0x3dfb2c;this[_0x561f59(0x3aa)]()['then'](()=>super[_0x561f59(0x279)]());}async[_0x3dfb2c(0x1d5)](_0x272bad){const _0x1d6d97=_0x3dfb2c;return this[_0x1d6d97(0x1b9)]?null:this[_0x1d6d97(0x1ba)]['getItem'](u['getLocalCacheKey'](_0x272bad));}async[_0x3dfb2c(0x312)](_0x434bff,_0x38a4f0){return!!this['_localStorageService']['setItem'](_0x434bff,_0x38a4f0);}[_0x3dfb2c(0x1d0)](_0x13c6b3,_0x4328e8,_0x135d0c,_0x2be97e){const _0x13788b=_0x3dfb2c,_0x5e18af=this[_0x13788b(0x3c5)]['getCurrentRevOfUnit'](_0x13c6b3);this[_0x13788b(0x257)][_0x13788b(0x34b)](_0x13c6b3,{'unitID':_0x13c6b3,'type':_0x4328e8,'awaitingChangeset':_0x135d0c,'mutations':_0x2be97e,'rev':_0x5e18af}),this[_0x13788b(0x1fb)][_0x13788b(0x377)](_0x13c6b3)||this[_0x13788b(0x1f1)](_0x13c6b3);}[_0x3dfb2c(0x1f1)](_0x2ec943){const _0x5ced36=_0x3dfb2c,_0x5e920e=this[_0x5ced36(0x203)]();_0x5e920e===0x0?this[_0x5ced36(0x25b)](_0x2ec943):this[_0x5ced36(0x1fb)]['set'](_0x2ec943,setTimeout(()=>this[_0x5ced36(0x25b)](_0x2ec943),_0x5e920e));}['_getSaveTimeout'](){const _0x45229a=_0x3dfb2c;var _0x424673;return(_0x424673=this[_0x45229a(0x336)][_0x45229a(0x216)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x424673:u['LOCAL_CACHE_INTERVAL'];}['_saveCache'](_0x366e84){const _0x1ec9f4=_0x3dfb2c,_0x307fd1=this[_0x1ec9f4(0x1fb)][_0x1ec9f4(0x38c)](_0x366e84);return _0x307fd1!==void 0x0&&window[_0x1ec9f4(0x22c)](_0x307fd1),this[_0x1ec9f4(0x1ba)]['setItem'](u[_0x1ec9f4(0x2cd)](_0x366e84),this[_0x1ec9f4(0x257)][_0x1ec9f4(0x38c)](_0x366e84))[_0x1ec9f4(0x3b1)](()=>this['_saveTaskMap']['delete'](_0x366e84));}async[_0x3dfb2c(0x3aa)](){const _0x525efc=_0x3dfb2c,_0x5a8b52=[];this[_0x525efc(0x1fb)][_0x525efc(0x1c9)]((_0x37918f,_0x4e8033)=>{const _0x58aa83=_0x525efc;window['clearTimeout'](_0x37918f),_0x5a8b52[_0x58aa83(0x280)](this[_0x58aa83(0x25b)](_0x4e8033)[_0x58aa83(0x3b1)](()=>{const _0x40385d=_0x58aa83;this[_0x40385d(0x1fb)]['delete'](_0x4e8033);}));}),await Promise[_0x525efc(0x2a6)](_0x5a8b52);}};ve=Kt([le(0x0,a[_0x3dfb2c(0x300)]),le(0x1,a['ILocalStorageService']),le(0x2,a[_0x3dfb2c(0x247)](m[_0x3dfb2c(0x269)]))],ve);class xe extends a[_0x3dfb2c(0x366)]{constructor(){const _0x41daab=_0x3dfb2c;super(),h(this,_0x41daab(0x28a)),this[_0x41daab(0x28a)]=d['fromEvent'](window,'popstate')[_0x41daab(0x2d9)](d['takeUntil'](this[_0x41daab(0x319)]),d[_0x41daab(0x20f)](0x1),d[_0x41daab(0x2a3)](void 0x0));}[_0x3dfb2c(0x284)](_0x5db8d5,_0x61469c,_0x20f6d0=!0x1){const _0x2a22ce=_0x3dfb2c,_0x170062=new URL(window[_0x2a22ce(0x294)][_0x2a22ce(0x2d6)]);_0x170062[_0x2a22ce(0x221)][_0x2a22ce(0x34b)](_0x5db8d5,_0x61469c),_0x20f6d0?window[_0x2a22ce(0x1ec)]['replaceState']('','',_0x170062['toString']()):window[_0x2a22ce(0x1ec)][_0x2a22ce(0x409)]('','',_0x170062[_0x2a22ce(0x1c7)]());}['removeParam'](_0x194a40,_0x110d10=!0x1){const _0x23f6e1=_0x3dfb2c,_0x2deac7=new URL(window[_0x23f6e1(0x294)][_0x23f6e1(0x2d6)]);_0x2deac7[_0x23f6e1(0x221)][_0x23f6e1(0x35c)](_0x194a40),_0x110d10?window[_0x23f6e1(0x1ec)][_0x23f6e1(0x387)]('','',_0x2deac7[_0x23f6e1(0x1c7)]()):window[_0x23f6e1(0x1ec)]['pushState']('','',_0x2deac7[_0x23f6e1(0x1c7)]());}[_0x3dfb2c(0x210)](_0x1db7a6){const _0x3eb259=_0x3dfb2c;var _0x2854a8;return(_0x2854a8=new URL(window['location'][_0x3eb259(0x2d6)])['searchParams'][_0x3eb259(0x38c)](_0x1db7a6))!=null?_0x2854a8:void 0x0;}}var qt=Object[_0x3dfb2c(0x21e)],zt=Object[_0x3dfb2c(0x276)],Jt=(_0x3dea2d,_0x136b8b,_0x57ab37)=>_0x136b8b in _0x3dea2d?qt(_0x3dea2d,_0x136b8b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57ab37}):_0x3dea2d[_0x136b8b]=_0x57ab37,Zt=(_0xf21672,_0x41ff39,_0x2ad21a,_0x1bd81e)=>{const _0x12ea21=_0x3dfb2c;for(var _0x6dd0e1=_0x1bd81e>0x1?void 0x0:_0x1bd81e?zt(_0x41ff39,_0x2ad21a):_0x41ff39,_0x2ca437=_0xf21672[_0x12ea21(0x2ad)]-0x1,_0x2d2f72;_0x2ca437>=0x0;_0x2ca437--)(_0x2d2f72=_0xf21672[_0x2ca437])&&(_0x6dd0e1=_0x2d2f72(_0x6dd0e1)||_0x6dd0e1);return _0x6dd0e1;},_e=(_0x3c2901,_0x517295)=>(_0xcfd6e1,_0x41e925)=>_0x517295(_0xcfd6e1,_0x41e925,_0x3c2901),Qt=(_0x2760da,_0x4cb476,_0x29acb7)=>Jt(_0x2760da,_0x4cb476+'',_0x29acb7);const es=_0x3dfb2c(0x1ed);exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0x584286=De,_0x41f19b,_0x577437,_0x4b055c){const _0x3f9d8f=_0x3dfb2c;super(),this[_0x3f9d8f(0x1cc)]=_0x584286,this[_0x3f9d8f(0x3fc)]=_0x41f19b,this[_0x3f9d8f(0x21a)]=_0x577437,this[_0x3f9d8f(0x336)]=_0x4b055c;const {..._0x3cc124}=a[_0x3f9d8f(0x22b)]({},De,this[_0x3f9d8f(0x1cc)]);this[_0x3f9d8f(0x336)]['setConfig'](Bt,_0x3cc124);}[_0x3dfb2c(0x1dc)](){const _0x449e6b=_0x3dfb2c;this[_0x449e6b(0x1ef)](),this[_0x449e6b(0x1bb)]();}[_0x3dfb2c(0x420)](){const _0x51ac8f=_0x3dfb2c;this[_0x51ac8f(0x349)]();}['_registerDependencies'](){const _0x1bb1fd=_0x3dfb2c;var _0x3e8e2f;const _0x113ba8=[[Ce],[Z],[z],[J],[pe],[me,{'useClass':xe}],[K[_0x1bb1fd(0x421)],{'useClass':K[_0x1bb1fd(0x26f)]}],[u[_0x1bb1fd(0x3d7)],{'useClass':ve}],[exports[_0x1bb1fd(0x301)]],[Q],[q],[x],[ue],[exports[_0x1bb1fd(0x3d5)]]];a['registerDependencies'](this[_0x1bb1fd(0x21a)],a[_0x1bb1fd(0x2e0)](_0x113ba8,(_0x3e8e2f=this[_0x1bb1fd(0x1cc)])==null?void 0x0:_0x3e8e2f[_0x1bb1fd(0x422)]));}[_0x3dfb2c(0x349)](){const _0x345455=_0x3dfb2c;this['disposeWithMe'](this[_0x345455(0x3fc)]['registerRenderModule'](a[_0x345455(0x25c)][_0x345455(0x1c4)],[fe])),this[_0x345455(0x238)](this['_renderManagerService']['registerRenderModule'](a[_0x345455(0x25c)]['UNIVER_SHEET'],[Ie]));}[_0x3dfb2c(0x1bb)](){const _0x10710d=_0x3dfb2c;a['touchDependencies'](this['_injector'],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[exports[_0x10710d(0x3d5)]]]);}},Qt(exports[_0x3dfb2c(0x376)],_0x3dfb2c(0x2ae),es),exports[_0x3dfb2c(0x376)]=Zt([a[_0x3dfb2c(0x2c5)](u[_0x3dfb2c(0x21b)]),_e(0x1,p[_0x3dfb2c(0x3c1)]),_e(0x2,a[_0x3dfb2c(0x247)](a[_0x3dfb2c(0x3e2)])),_e(0x3,a[_0x3dfb2c(0x300)])],exports['UniverCollaborationClientUIPlugin']);var ts=Object[_0x3dfb2c(0x276)],ss=(_0x12bb4f,_0x38ba18,_0x3b35e0,_0x12ff27)=>{for(var _0x190e9a=_0x12ff27>0x1?void 0x0:_0x12ff27?ts(_0x38ba18,_0x3b35e0):_0x38ba18,_0x1c52c0=_0x12bb4f['length']-0x1,_0x11c7b9;_0x1c52c0>=0x0;_0x1c52c0--)(_0x11c7b9=_0x12bb4f[_0x1c52c0])&&(_0x190e9a=_0x11c7b9(_0x190e9a)||_0x190e9a);return _0x190e9a;},H=(_0x5e83d8,_0x486479)=>(_0x5b36db,_0x36397e)=>_0x486479(_0x5b36db,_0x36397e,_0x5e83d8);exports['BrowserCollaborationSocketService']=class extends u[_0x3dfb2c(0x370)]{constructor(_0xf056b1,_0x24d93b,_0x4c84a3,_0x5ef8d9,_0x44bdfc){super(_0xf056b1,_0x24d93b,_0x4c84a3,_0x5ef8d9,_0x44bdfc);}async['createSocket'](_0x764ebb){const _0x21c1fc=_0x3dfb2c,_0x299e64=await this['_getSessionTicket'](),_0x3d3dba=this[_0x21c1fc(0x405)](_0x764ebb,_0x299e64);return this['_doCreateSocket'](_0x3d3dba);}[_0x3dfb2c(0x405)](_0x88ec85,_0x422c22){const _0x874165=_0x3dfb2c,_0x253e4e=typeof window>'u'?new URL(_0x88ec85):new URL(_0x88ec85,window['location']['origin']);_0x253e4e['searchParams'][_0x874165(0x34b)]('sessionTicket',_0x422c22);const _0x115a73=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x874165(0x294)]['search']);return _0x115a73[_0x874165(0x38c)]('runId')&&_0x253e4e[_0x874165(0x221)]['set']('runId',_0x115a73['get'](_0x874165(0x2e8))),_0x253e4e['toString']();}async[_0x3dfb2c(0x364)](){const _0x4be502=_0x3dfb2c;var _0x354f7b,_0x19bfe8,_0x15c067;const _0x2a9d11=this['_configService'][_0x4be502(0x216)](u[_0x4be502(0x201)]),_0x50a66d=(_0x354f7b=_0x2a9d11==null?void 0x0:_0x2a9d11[_0x4be502(0x24c)])!=null?_0x354f7b:u[_0x4be502(0x3b6)];return(_0x15c067=(_0x19bfe8=(await this[_0x4be502(0x1ce)][_0x4be502(0x38c)](_0x50a66d,{'headers':{'Content-Type':'application/json'}}))[_0x4be502(0x3c0)])==null?void 0x0:_0x19bfe8[_0x4be502(0x3e9)])!=null?_0x15c067:'';}},exports[_0x3dfb2c(0x2b8)]=ss([H(0x0,a['Inject'](a[_0x3dfb2c(0x3e2)])),H(0x1,a[_0x3dfb2c(0x247)](K['HTTPService'])),H(0x2,a['IConfigService']),H(0x3,a[_0x3dfb2c(0x37d)]),H(0x4,m['ISnapshotServerService'])],exports[_0x3dfb2c(0x2b8)]);var Be=(_0x21d68e=>(_0x21d68e[_0x21d68e[_0x3dfb2c(0x2f2)]=0x0]='UNDEFINED',_0x21d68e[_0x21d68e['OK']=0x1]='OK',_0x21d68e[_0x21d68e['INTERNAL_ERROR']=0x2]=_0x3dfb2c(0x1f9),_0x21d68e[_0x21d68e['PERMISSION_DENIED']=0x3]=_0x3dfb2c(0x29c),_0x21d68e[_0x21d68e[_0x3dfb2c(0x303)]=0x4]=_0x3dfb2c(0x303),_0x21d68e[_0x21d68e[_0x3dfb2c(0x2a7)]=0x5]=_0x3dfb2c(0x2a7),_0x21d68e[_0x21d68e['ALREADY_EXISTS']=0x6]=_0x3dfb2c(0x3bf),_0x21d68e[_0x21d68e[_0x3dfb2c(0x3e1)]=0x7]='INVALID_ARGUMENT',_0x21d68e[_0x21d68e['TOO_MANY_REQUESTS']=0x8]=_0x3dfb2c(0x1b5),_0x21d68e[_0x21d68e[_0x3dfb2c(0x1b1)]=0x9]=_0x3dfb2c(0x1b1),_0x21d68e[_0x21d68e['LOGIN_FAILED']=0xa]=_0x3dfb2c(0x2a0),_0x21d68e[_0x21d68e[_0x3dfb2c(0x369)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x21d68e[_0x21d68e[_0x3dfb2c(0x288)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x21d68e[_0x21d68e['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x3dfb2c(0x343),_0x21d68e[_0x21d68e[_0x3dfb2c(0x3f5)]=0xe]=_0x3dfb2c(0x3f5),_0x21d68e[_0x21d68e['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x21d68e[_0x21d68e[_0x3dfb2c(0x1e2)]=0x1771]=_0x3dfb2c(0x1e2),_0x21d68e[_0x21d68e['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x3dfb2c(0x256),_0x21d68e[_0x21d68e[_0x3dfb2c(0x267)]=0x1773]=_0x3dfb2c(0x267),_0x21d68e[_0x21d68e[_0x3dfb2c(0x400)]=0x1b59]=_0x3dfb2c(0x400),_0x21d68e[_0x21d68e['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x21d68e[_0x21d68e[_0x3dfb2c(0x26a)]=0x1b5b]=_0x3dfb2c(0x26a),_0x21d68e[_0x21d68e[_0x3dfb2c(0x2ec)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x21d68e[_0x21d68e[_0x3dfb2c(0x340)]=0x1b5d]='APPLY_DUPLICATED',_0x21d68e[_0x21d68e['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3dfb2c(0x361),_0x21d68e[_0x21d68e[_0x3dfb2c(0x3ee)]=0x2329]=_0x3dfb2c(0x3ee),_0x21d68e[_0x21d68e[_0x3dfb2c(0x287)]=0x232a]=_0x3dfb2c(0x287),_0x21d68e[_0x21d68e['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x21d68e[_0x21d68e['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3dfb2c(0x37f),_0x21d68e[_0x21d68e[_0x3dfb2c(0x277)]=0x232d]=_0x3dfb2c(0x277),_0x21d68e[_0x21d68e[_0x3dfb2c(0x1af)]=0x2711]=_0x3dfb2c(0x1af),_0x21d68e[_0x21d68e[_0x3dfb2c(0x1c3)]=0x2712]=_0x3dfb2c(0x1c3),_0x21d68e[_0x21d68e[_0x3dfb2c(0x25d)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x21d68e[_0x21d68e[_0x3dfb2c(0x360)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x21d68e[_0x21d68e[_0x3dfb2c(0x242)]=0x271a]=_0x3dfb2c(0x242),_0x21d68e[_0x21d68e[_0x3dfb2c(0x212)]=0x271b]=_0x3dfb2c(0x212),_0x21d68e[_0x21d68e[_0x3dfb2c(0x2d3)]=0x271c]=_0x3dfb2c(0x2d3),_0x21d68e[_0x21d68e[_0x3dfb2c(0x36e)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x21d68e[_0x21d68e[_0x3dfb2c(0x32e)]=0x271e]=_0x3dfb2c(0x32e),_0x21d68e[_0x21d68e[_0x3dfb2c(0x219)]=0x271f]=_0x3dfb2c(0x219),_0x21d68e[_0x21d68e['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x3dfb2c(0x2ef),_0x21d68e[_0x21d68e[_0x3dfb2c(0x3e7)]=0x2af9]=_0x3dfb2c(0x3e7),_0x21d68e[_0x21d68e[_0x3dfb2c(0x1d8)]=0x2ee1]=_0x3dfb2c(0x1d8),_0x21d68e[_0x21d68e[_0x3dfb2c(0x3cc)]=0x2ee2]=_0x3dfb2c(0x3cc),_0x21d68e[_0x21d68e['INVITE_CODE_REQUIRED']=0x2ee3]=_0x3dfb2c(0x41e),_0x21d68e[_0x21d68e[_0x3dfb2c(0x415)]=0x2ee4]=_0x3dfb2c(0x415),_0x21d68e[_0x21d68e[_0x3dfb2c(0x3e8)]=0x2ee5]=_0x3dfb2c(0x3e8),_0x21d68e[_0x21d68e[_0x3dfb2c(0x2e7)]=0x32c9]=_0x3dfb2c(0x2e7),_0x21d68e[_0x21d68e[_0x3dfb2c(0x3c7)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x21d68e[_0x21d68e[_0x3dfb2c(0x36b)]=0x32cb]=_0x3dfb2c(0x36b),_0x21d68e[_0x21d68e['UNRECOGNIZED']=-0x1]=_0x3dfb2c(0x2f6),_0x21d68e))(Be||{}),is=Object['getOwnPropertyDescriptor'],ns=(_0x5bb45b,_0x11856f,_0x5a3fc0,_0x4be8d8)=>{const _0x3d6cc9=_0x3dfb2c;for(var _0x2657aa=_0x4be8d8>0x1?void 0x0:_0x4be8d8?is(_0x11856f,_0x5a3fc0):_0x11856f,_0x3c8f94=_0x5bb45b[_0x3d6cc9(0x2ad)]-0x1,_0x472cae;_0x3c8f94>=0x0;_0x3c8f94--)(_0x472cae=_0x5bb45b[_0x3c8f94])&&(_0x2657aa=_0x472cae(_0x2657aa)||_0x2657aa);return _0x2657aa;},he=(_0x5657c1,_0xd5c0dc)=>(_0x3fa7a1,_0x31677e)=>_0xd5c0dc(_0x3fa7a1,_0x31677e,_0x5657c1);exports[_0x3dfb2c(0x320)]=class extends a[_0x3dfb2c(0x2db)]{constructor(_0x4a8fdb,_0x270cc3,_0x22fa91){const _0x515f41=_0x3dfb2c;super(),this[_0x515f41(0x2d4)]=_0x4a8fdb,this[_0x515f41(0x1ce)]=_0x270cc3,this['_configService']=_0x22fa91;}async[_0x3dfb2c(0x3ff)](_0x394ae6,_0x2aee51,_0x5dacda,..._0x3a0fec){const _0x53ba84=_0x3dfb2c;var _0x2f6ea6,_0x4cdf60,_0x49cb78,_0x22e11e;const _0x2612d2=this[_0x53ba84(0x2d4)][_0x53ba84(0x241)]();if(!_0x2612d2)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x12b088=((_0x2f6ea6=this[_0x53ba84(0x336)][_0x53ba84(0x216)](u[_0x53ba84(0x345)]))!=null?_0x2f6ea6:u[_0x53ba84(0x351)])+'/'+_0x394ae6+_0x53ba84(0x391)+_0x2aee51,_0x53ac81=new URL(window[_0x53ba84(0x294)][_0x53ba84(0x2d6)]),_0x3ca464={'scriptId':_0x394ae6,'runId':(_0x4cdf60=_0x53ac81[_0x53ba84(0x221)][_0x53ba84(0x38c)](_0x53ba84(0x2e8)))!=null?_0x4cdf60:'','function':_0x2aee51,'unitId':_0x2612d2[_0x53ba84(0x40c)](),'argsOfFunction':JSON[_0x53ba84(0x316)](_0x3a0fec),'invokeId':(_0x49cb78=_0x5dacda[_0x53ba84(0x3ea)])!=null?_0x49cb78:'','executionId':(_0x22e11e=_0x5dacda[_0x53ba84(0x2fc)])!=null?_0x22e11e:''};try{const _0x1b5234=await this[_0x53ba84(0x1ce)]['post'](_0x12b088,{'body':_0x3ca464});return _0x1b5234['body']['error']&&_0x1b5234[_0x53ba84(0x3c0)][_0x53ba84(0x3dc)][_0x53ba84(0x2c0)]!==Be['OK']?'Failed':_0x1b5234['body']['result'];}catch{return _0x53ba84(0x388);}}},exports['RemoteUniscriptService']=ns([he(0x0,a['IUniverInstanceService']),he(0x1,a[_0x3dfb2c(0x247)](K['HTTPService'])),he(0x2,a[_0x3dfb2c(0x300)])],exports[_0x3dfb2c(0x320)]);const Me=0x7530,Le=_0x3dfb2c(0x2d8);class rs extends a[_0x3dfb2c(0x2db)]{constructor(){const _0x54b798=_0x3dfb2c;super(),h(this,_0x54b798(0x1fc),a[_0x54b798(0x368)]()),h(this,_0x54b798(0x2be),new Set()),h(this,_0x54b798(0x2ca),new Map()),h(this,_0x54b798(0x1db),null),h(this,'_clearOtherTimers',new Map()),h(this,'_unitStatus',new Map()),this['_init']();}[_0x3dfb2c(0x279)](){const _0x55c00f=_0x3dfb2c;super[_0x55c00f(0x279)](),this[_0x55c00f(0x339)]['forEach']((_0x2511ff,_0xf4c845)=>this[_0x55c00f(0x252)](_0xf4c845)),this['_heartbeatTimer']&&window[_0x55c00f(0x373)](this[_0x55c00f(0x1db)]);}[_0x3dfb2c(0x2cf)](_0x35129b){const _0x3d80e9=_0x3dfb2c;return this[_0x3d80e9(0x3a6)](_0x35129b)[_0x3d80e9(0x2d9)](d[_0x3d80e9(0x39a)]());}[_0x3dfb2c(0x27e)](_0x2c9b5e){const _0x11ee25=_0x3dfb2c;this['_selfUnitIDs'][_0x11ee25(0x275)]===0x0&&this[_0x11ee25(0x3d4)](),this[_0x11ee25(0x2be)][_0x11ee25(0x3c4)](_0x2c9b5e),this[_0x11ee25(0x230)]({'type':0x0,'memberID':this[_0x11ee25(0x1fc)],'unitIDs':[_0x2c9b5e],'isForwarded':!0x1});}[_0x3dfb2c(0x40d)](_0x4ec5e3){const _0x9ae830=_0x3dfb2c;this[_0x9ae830(0x2be)][_0x9ae830(0x35c)](_0x4ec5e3),this[_0x9ae830(0x2be)][_0x9ae830(0x275)]===0x0&&this[_0x9ae830(0x1db)]&&window[_0x9ae830(0x373)](this[_0x9ae830(0x1db)]);}[_0x3dfb2c(0x254)](){const _0x4b5a0a=_0x3dfb2c;this[_0x4b5a0a(0x238)](a[_0x4b5a0a(0x214)](d['fromEvent'](window,_0x4b5a0a(0x264))[_0x4b5a0a(0x30e)](_0x2ec328=>{const _0x4dbead=_0x4b5a0a;if(_0x2ec328[_0x4dbead(0x342)]!==Le||!_0x2ec328[_0x4dbead(0x3fd)])return;const _0x30b1d6=JSON[_0x4dbead(0x1c5)](_0x2ec328['newValue']);this[_0x4dbead(0x23d)](_0x30b1d6);}))),window[_0x4b5a0a(0x29f)](_0x4b5a0a(0x34f),()=>this[_0x4b5a0a(0x230)]({'type':0x1,'memberID':this[_0x4b5a0a(0x1fc)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x3dfb2c(0x23d)](_0x406f01){const _0x5f491e=_0x3dfb2c;switch(_0x406f01[_0x5f491e(0x330)]){case 0x0:this[_0x5f491e(0x41c)](_0x406f01);break;case 0x1:this[_0x5f491e(0x305)](_0x406f01);break;case 0x2:this[_0x5f491e(0x231)](_0x406f01);break;}}[_0x3dfb2c(0x41c)](_0x6c353f){const _0x1d3c64=_0x3dfb2c,{unitIDs:_0x57b67a,memberID:_0x83393d,isForwarded:_0x681139}=_0x6c353f;_0x57b67a[_0x1d3c64(0x1c9)](_0x1ce6ca=>{const _0x50adb0=_0x1d3c64;if(!_0x681139&&this[_0x50adb0(0x2ca)][_0x50adb0(0x377)](_0x1ce6ca)&&this[_0x50adb0(0x3a6)](_0x1ce6ca)['next'](u[_0x50adb0(0x1cb)][_0x50adb0(0x3c9)]),!this[_0x50adb0(0x2ca)][_0x50adb0(0x377)](_0x1ce6ca)||!this['_unitOnClients'][_0x50adb0(0x38c)](_0x1ce6ca)[_0x50adb0(0x377)](_0x83393d)){const _0x2b5e7a=this[_0x50adb0(0x2ca)][_0x50adb0(0x38c)](_0x1ce6ca)||new Set();_0x2b5e7a[_0x50adb0(0x3c4)](_0x83393d),this[_0x50adb0(0x2ca)]['set'](_0x1ce6ca,_0x2b5e7a),this[_0x50adb0(0x2ab)](_0x83393d);}}),_0x681139||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x1d3c64(0x2be)]],'isForwarded':!0x0});}[_0x3dfb2c(0x2ab)](_0x75c7d3){const _0x509946=_0x3dfb2c;this[_0x509946(0x252)](_0x75c7d3);const _0x19a33e=window[_0x509946(0x2e3)](()=>{const _0xd0c77a=_0x509946;this['_unitOnClients'][_0xd0c77a(0x1c9)](_0x45e407=>{_0x45e407['delete'](_0x75c7d3);});},Me*0x2);this[_0x509946(0x339)]['set'](_0x75c7d3,_0x19a33e);}[_0x3dfb2c(0x252)](_0x3fbb18){const _0x5f3a51=_0x3dfb2c;if(this[_0x5f3a51(0x339)][_0x5f3a51(0x377)](_0x3fbb18)){const _0xbd69b0=this[_0x5f3a51(0x339)][_0x5f3a51(0x38c)](_0x3fbb18);_0xbd69b0&&window[_0x5f3a51(0x22c)](_0xbd69b0),this['_clearOtherTimers'][_0x5f3a51(0x34b)](_0x3fbb18,null);}}[_0x3dfb2c(0x305)](_0x49d0eb){const _0x11702e=_0x3dfb2c,{memberID:_0x4be6c3,unitIDs:_0x342229}=_0x49d0eb;_0x342229[_0x11702e(0x1c9)](_0x2a710c=>{const _0xb01d46=_0x11702e;var _0x475daf;const _0x301adc=this[_0xb01d46(0x2ca)][_0xb01d46(0x38c)](_0x2a710c);_0x301adc&&(_0x301adc[_0xb01d46(0x35c)](_0x4be6c3),(_0x475daf=this['_ensureSubject'](_0x2a710c))==null||_0x475daf[_0xb01d46(0x246)](_0x301adc[_0xb01d46(0x275)]===0x0?u['UnitStatus'][_0xb01d46(0x24b)]:u[_0xb01d46(0x1cb)][_0xb01d46(0x3c9)]));}),this[_0x11702e(0x252)](_0x4be6c3);}[_0x3dfb2c(0x231)](_0x4caad2){const _0x31a771=_0x3dfb2c;this[_0x31a771(0x2ab)](_0x4caad2[_0x31a771(0x233)]);}[_0x3dfb2c(0x230)](_0x589565){const _0x4ae41b=_0x3dfb2c;localStorage[_0x4ae41b(0x29b)](Le,JSON['stringify'](_0x589565));}[_0x3dfb2c(0x3d4)](){const _0x2aa53d=_0x3dfb2c;this['_heartbeatTimer']=window[_0x2aa53d(0x1b4)](()=>{const _0x242f72=_0x2aa53d;this[_0x242f72(0x230)]({'type':0x2,'memberID':this[_0x242f72(0x1fc)]});},Me);}['_ensureSubject'](_0xdd113){const _0x2f4be2=_0x3dfb2c;return this['_unitStatus']['has'](_0xdd113)||this['_unitStatus'][_0x2f4be2(0x34b)](_0xdd113,new d[(_0x2f4be2(0x3bd))](u[_0x2f4be2(0x1cb)][_0x2f4be2(0x24b)])),this[_0x2f4be2(0x1c2)]['get'](_0xdd113);}}exports[_0x3dfb2c(0x227)]=me,exports[_0x3dfb2c(0x408)]=$e,exports[_0x3dfb2c(0x20b)]=rs,exports['WebURLService']=xe;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x185323=_0x5f4c;(function(_0x40d1bb,_0x585ef2){const _0x5bf164=_0x5f4c,_0x2ee8e0=_0x40d1bb();while(!![]){try{const _0xa946d5=parseInt(_0x5bf164(0x177))/0x1*(-parseInt(_0x5bf164(0x16b))/0x2)+parseInt(_0x5bf164(0x178))/0x3+parseInt(_0x5bf164(0x16f))/0x4+parseInt(_0x5bf164(0x16e))/0x5+parseInt(_0x5bf164(0x166))/0x6+parseInt(_0x5bf164(0x17d))/0x7+parseInt(_0x5bf164(0x175))/0x8*(-parseInt(_0x5bf164(0x16c))/0x9);if(_0xa946d5===_0x585ef2)break;else _0x2ee8e0['push'](_0x2ee8e0['shift']());}catch(_0x112723){_0x2ee8e0['push'](_0x2ee8e0['shift']());}}}(_0x370d,0x8e5f5));function _0x5f4c(_0x378d6c,_0x2c0209){const _0x370d7f=_0x370d();return _0x5f4c=function(_0x5f4cd4,_0x587594){_0x5f4cd4=_0x5f4cd4-0x164;let _0x4275f5=_0x370d7f[_0x5f4cd4];return _0x4275f5;},_0x5f4c(_0x378d6c,_0x2c0209);}function _0x370d(){const _0x1c68cd=['2ULtCEl','9xADPPx','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','1639985hCsozu','1919880fZJKXu','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Click\x20to\x20Reconnect','Synced','exports','Syncing\x20server\x20data...','3992776EWoiTv','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','300598PwtMjo','941673vCgOTF','Collaboration\x20Conflict','Edit\x20conflicts','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','714448vrlrVD','Syncing...','Local\x20file','953580VEnhBE','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'];_0x370d=function(){return _0x1c68cd;};return _0x370d();}const e={'collab-client':{'tooltip':{'reconnect':_0x185323(0x171)}},'collabStatus':{'fetchMiss':_0x185323(0x174),'conflict':_0x185323(0x17a),'notCollab':_0x185323(0x165),'synced':_0x185323(0x172),'syncing':_0x185323(0x164),'offline':_0x185323(0x168)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x185323(0x176),'room-full':_0x185323(0x17b),'collaboration-timeout':_0x185323(0x16d)},'conflict':{'title':_0x185323(0x179),'content':_0x185323(0x169)},'permission':{'title':'Authentication\x20Error','content':_0x185323(0x17c)},'collaboration':{'single-unit':{'warning':_0x185323(0x16a)},'closeRoom':_0x185323(0x167)},'auth':{'needGotoLoginAlert':_0x185323(0x170)}},o=e;module[_0x185323(0x173)]=o;
|