@univerjs-pro/collaboration-client-ui 0.10.3 → 0.10.4
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 +16 -16
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x52f55b=_0x260f;(function(_0x462468,_0x543ef3){const _0x5b0c37=_0x260f,_0x1e535c=_0x462468();while(!![]){try{const _0x16e698=-parseInt(_0x5b0c37(0x17d))/0x1+parseInt(_0x5b0c37(0x172))/0x2+parseInt(_0x5b0c37(0x173))/0x3+-parseInt(_0x5b0c37(0x176))/0x4*(parseInt(_0x5b0c37(0x170))/0x5)+-parseInt(_0x5b0c37(0x17c))/0x6+parseInt(_0x5b0c37(0x17b))/0x7*(-parseInt(_0x5b0c37(0x17a))/0x8)+-parseInt(_0x5b0c37(0x179))/0x9*(-parseInt(_0x5b0c37(0x177))/0xa);if(_0x16e698===_0x543ef3)break;else _0x1e535c['push'](_0x1e535c['shift']());}catch(_0x1ba524){_0x1e535c['push'](_0x1e535c['shift']());}}}(_0x1875,0x3fbb7));const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');function _0x260f(_0x16fad1,_0x212926){const _0x1875e5=_0x1875();return _0x260f=function(_0x260f88,_0x5c82a5){_0x260f88=_0x260f88-0x170;let _0x2ad5ac=_0x1875e5[_0x260f88];return _0x2ad5ac;},_0x260f(_0x16fad1,_0x212926);}function _0x1875(){const _0x209194=['10XkqNBP','get','8957439glTdCW','232KsEStC','49798WdBfue','557700zPqVtp','352619FdWZKV','5cYmoEA','RemoteUniscriptService','327860glVrWc','155499ypKTDK','_injector','FUniver','1192448gwMMRK'];_0x1875=function(){return _0x209194;};return _0x1875();}class c extends e[_0x52f55b(0x175)]{['runOnServer'](_0x19e5bc,_0x22bac0,..._0x36815e){const _0x4ffc40=_0x52f55b;return this[_0x4ffc40(0x174)][_0x4ffc40(0x178)](t[_0x4ffc40(0x171)])['runOnServer'](_0x19e5bc,_0x22bac0,{},..._0x36815e);}}e[_0x52f55b(0x175)]['extend'](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 _0x4729ad=_0x46c6;(function(_0x48a485,_0xd9d164){const _0x434124=_0x46c6,_0x571681=_0x48a485();while(!![]){try{const _0x24391c=-parseInt(_0x434124(0x14d))/0x1*(parseInt(_0x434124(0x2be))/0x2)+parseInt(_0x434124(0x2c5))/0x3+parseInt(_0x434124(0x2b9))/0x4+parseInt(_0x434124(0x2d0))/0x5+-parseInt(_0x434124(0x272))/0x6*(-parseInt(_0x434124(0x13b))/0x7)+-parseInt(_0x434124(0x15c))/0x8*(-parseInt(_0x434124(0xca))/0x9)+parseInt(_0x434124(0x92))/0xa*(-parseInt(_0x434124(0x2c7))/0xb);if(_0x24391c===_0xd9d164)break;else _0x571681['push'](_0x571681['shift']());}catch(_0xe6b428){_0x571681['push'](_0x571681['shift']());}}}(_0x3e65,0x4012c));var We=Object[_0x4729ad(0x238)],Ve=(_0x15c4cc,_0x4997a4,_0x2ad072)=>_0x4997a4 in _0x15c4cc?We(_0x15c4cc,_0x4997a4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ad072}):_0x15c4cc[_0x4997a4]=_0x2ad072,h=(_0xafac54,_0x4270f8,_0x4cb3d6)=>Ve(_0xafac54,typeof _0x4270f8!=_0x4729ad(0x1a4)?_0x4270f8+'':_0x4270f8,_0x4cb3d6);Object[_0x4729ad(0x238)](exports,Symbol[_0x4729ad(0x96)],{'value':_0x4729ad(0xe0)});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 _0x1c7977=_0x4729ad;return b=Object[_0x1c7977(0x243)]||function(_0x40921f){const _0x230eb9=_0x1c7977;for(var _0x43616e,_0x2bc2a2=0x1,_0x439548=arguments[_0x230eb9(0x116)];_0x2bc2a2<_0x439548;_0x2bc2a2++){_0x43616e=arguments[_0x2bc2a2];for(var _0x5c61a in _0x43616e)Object[_0x230eb9(0x153)][_0x230eb9(0x13d)][_0x230eb9(0x145)](_0x43616e,_0x5c61a)&&(_0x40921f[_0x5c61a]=_0x43616e[_0x5c61a]);}return _0x40921f;},b[_0x1c7977(0x1c1)](this,arguments);},Ke=function(_0x4adb17,_0x356bed){const _0x17272c=_0x4729ad;var _0x19f0a5={};for(var _0x365256 in _0x4adb17)Object[_0x17272c(0x153)][_0x17272c(0x13d)][_0x17272c(0x145)](_0x4adb17,_0x365256)&&_0x356bed[_0x17272c(0x2a6)](_0x365256)<0x0&&(_0x19f0a5[_0x365256]=_0x4adb17[_0x365256]);if(_0x4adb17!=null&&typeof Object[_0x17272c(0x127)]==_0x17272c(0x2aa)){for(var _0x357f6b=0x0,_0x365256=Object['getOwnPropertySymbols'](_0x4adb17);_0x357f6b<_0x365256[_0x17272c(0x116)];_0x357f6b++)_0x356bed['indexOf'](_0x365256[_0x357f6b])<0x0&&Object[_0x17272c(0x153)][_0x17272c(0xa8)][_0x17272c(0x145)](_0x4adb17,_0x365256[_0x357f6b])&&(_0x19f0a5[_0x365256[_0x357f6b]]=_0x4adb17[_0x365256[_0x357f6b]]);}return _0x19f0a5;},ge=M[_0x4729ad(0x128)](function(_0xf8f5fe,_0x626d59){const _0x549df4=_0x4729ad;var _0x3190c5=_0xf8f5fe[_0x549df4(0x14e)],_0xeabf59=_0xf8f5fe['id'],_0x38b8f9=_0xf8f5fe[_0x549df4(0x100)],_0x42afc3=_0xf8f5fe[_0x549df4(0x1dd)],_0x2e7c34=Ke(_0xf8f5fe,[_0x549df4(0x14e),'id',_0x549df4(0x100),'extend']),_0x310f32=_0x549df4(0x7c)[_0x549df4(0x126)](_0xeabf59,'\x20')[_0x549df4(0x126)](_0x38b8f9||'')[_0x549df4(0x2b6)](),_0x42d976=M['useRef']('_'[_0x549df4(0x126)](Je()));return Pe(_0x3190c5,''[_0x549df4(0x126)](_0xeabf59),{'defIds':_0x3190c5[_0x549df4(0x80)],'idSuffix':_0x42d976[_0x549df4(0xc5)]},b({'ref':_0x626d59,'className':_0x310f32},_0x2e7c34),_0x42afc3);});function Pe(_0x27dd30,_0xa99194,_0x52a006,_0x309d3e,_0x57a702){const _0x536fde=_0x4729ad;return M[_0x536fde(0x219)](_0x27dd30['tag'],b(b({'key':_0xa99194},qe(_0x27dd30,_0x52a006,_0x57a702)),_0x309d3e),(ze(_0x27dd30,_0x52a006)[_0x536fde(0x1d7)]||[])[_0x536fde(0x29f)](function(_0x4c74dc,_0x10ac12){const _0x4be41f=_0x536fde;return Pe(_0x4c74dc,''[_0x4be41f(0x126)](_0xa99194,'-')['concat'](_0x27dd30[_0x4be41f(0x161)],'-')[_0x4be41f(0x126)](_0x10ac12),_0x52a006,void 0x0,_0x57a702);}));}function qe(_0x4b4f29,_0x24839d,_0x6792fd){const _0x4af60f=_0x4729ad;var _0x59eae4=b({},_0x4b4f29['attrs']);_0x6792fd!=null&&_0x6792fd[_0x4af60f(0x1c4)]&&_0x59eae4[_0x4af60f(0x213)]===_0x4af60f(0x1c4)&&(_0x59eae4[_0x4af60f(0x213)]=_0x6792fd[_0x4af60f(0x1c4)]),_0x4b4f29[_0x4af60f(0x161)]===_0x4af60f(0x11f)&&_0x59eae4['id']&&(_0x59eae4['id']=_0x59eae4['id']+_0x24839d[_0x4af60f(0x2bc)]),Object[_0x4af60f(0x28b)](_0x59eae4)['forEach'](function(_0x584b9b){const _0x2ee642=_0x4af60f;var _0x1e8ade=_0x584b9b[0x0],_0x1b55b5=_0x584b9b[0x1];_0x1e8ade===_0x2ee642(0x11f)&&typeof _0x1b55b5==_0x2ee642(0x2e7)&&(_0x59eae4[_0x1e8ade]=_0x1b55b5[_0x2ee642(0xa0)](/url\(#(.*)\)/,_0x2ee642(0x242)[_0x2ee642(0x126)](_0x24839d[_0x2ee642(0x2bc)],')')));});var _0x3b8af7=_0x24839d['defIds'];return!_0x3b8af7||_0x3b8af7[_0x4af60f(0x116)]===0x0||(_0x4b4f29[_0x4af60f(0x161)]===_0x4af60f(0x286)&&_0x59eae4[_0x4af60f(0x14b)]&&(_0x59eae4[_0x4af60f(0x14b)]=_0x59eae4[_0x4af60f(0x14b)]+_0x24839d[_0x4af60f(0x2bc)]),Object[_0x4af60f(0x28b)](_0x59eae4)[_0x4af60f(0x176)](function(_0x413949){const _0x3617ff=_0x4af60f;var _0x312394=_0x413949[0x0],_0x2068bc=_0x413949[0x1];typeof _0x2068bc==_0x3617ff(0x2e7)&&(_0x59eae4[_0x312394]=_0x2068bc[_0x3617ff(0xa0)](/url\(#(.*)\)/,_0x3617ff(0x242)[_0x3617ff(0x126)](_0x24839d[_0x3617ff(0x2bc)],')')));})),_0x59eae4;}function ze(_0x4d96e8,_0x3a7931){const _0x1e635d=_0x4729ad;var _0x5591b7,_0x5b5754=_0x3a7931[_0x1e635d(0x80)];return!_0x5b5754||_0x5b5754[_0x1e635d(0x116)]===0x0?_0x4d96e8:_0x4d96e8['tag']===_0x1e635d(0x2c4)&&(!((_0x5591b7=_0x4d96e8[_0x1e635d(0x1d7)])===null||_0x5591b7===void 0x0)&&_0x5591b7['length'])?b(b({},_0x4d96e8),{'children':_0x4d96e8['children'][_0x1e635d(0x29f)](function(_0x537b67){const _0x49de27=_0x1e635d;return typeof _0x537b67[_0x49de27(0x29a)]['id']=='string'&&_0x5b5754&&_0x5b5754[_0x49de27(0x1f2)](_0x537b67[_0x49de27(0x29a)]['id'])?b(b({},_0x537b67),{'attrs':b(b({},_0x537b67[_0x49de27(0x29a)]),{'id':_0x537b67['attrs']['id']+_0x3a7931[_0x49de27(0x2bc)]})}):_0x537b67;})}):_0x4d96e8;}function Je(){const _0x4b707b=_0x4729ad;return Math[_0x4b707b(0x14f)]()[_0x4b707b(0x1f4)](0x24)[_0x4b707b(0x1a7)](0x2,0x8);}ge[_0x4729ad(0x189)]=_0x4729ad(0xb3);var Ze={'tag':_0x4729ad(0x25f),'attrs':{'xmlns':_0x4729ad(0x1db),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x4729ad(0x2a4),'height':_0x4729ad(0x2a4)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x4729ad(0xee),'attrs':{'stroke':'currentColor','d':_0x4729ad(0x200),'strokeLinecap':_0x4729ad(0x283),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4729ad(0x2c4),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x4729ad(0x2d4)}}]}]}],'defIds':[_0x4729ad(0x2dd)]},we=M[_0x4729ad(0x128)](function(_0x11bf49,_0x3eb8ff){const _0x347232=_0x4729ad;return M[_0x347232(0x219)](ge,Object[_0x347232(0x243)]({},_0x11bf49,{'id':_0x347232(0x222),'ref':_0x3eb8ff,'icon':Ze}));});we[_0x4729ad(0x189)]=_0x4729ad(0xb1);var Qe={'tag':_0x4729ad(0x25f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4729ad(0x1cf),'viewBox':_0x4729ad(0x16b),'width':_0x4729ad(0x2a4),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4729ad(0xa1)},'children':[{'tag':_0x4729ad(0xee),'attrs':{'stroke':_0x4729ad(0x2e1),'d':_0x4729ad(0x24c),'strokeLinecap':_0x4729ad(0x283),'strokeLinejoin':_0x4729ad(0x283),'strokeWidth':1.2}}]},{'tag':_0x4729ad(0x2c4),'attrs':{},'children':[{'tag':_0x4729ad(0xfa),'attrs':{'id':_0x4729ad(0xac)},'children':[{'tag':'path','attrs':{'fill':_0x4729ad(0x267),'d':_0x4729ad(0x2d4),'transform':_0x4729ad(0x1fd)}}]}]}],'defIds':[_0x4729ad(0xac)]},Ae=M[_0x4729ad(0x128)](function(_0x118d0a,_0x341f5f){const _0x5f0958=_0x4729ad;return M[_0x5f0958(0x219)](ge,Object['assign']({},_0x118d0a,{'id':'on-line-icon','ref':_0x341f5f,'icon':Qe}));});Ae[_0x4729ad(0x189)]=_0x4729ad(0x1d5);function _0x3e65(){const _0x4202b7=['ticket','isTransformMutationFailure','_collabCursorState$','transformStateCache','findNodePositionByCharIndex','onTransformChange$','COLORS','font','_drawTextRange','_status$','_colorAssignService','apply','replaceState','ILogService','colorChannel1','_send','asObservable','_memberService','AWAITING_WITH_PENDING','_heartbeatTimer','getCollabEntity$','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','ONLINE','Warning','application/json','none','_lastPointer','startsWith','color','FromArray','NodePositionConvertToRectRange','OnLineIcon','_initDependencies','children','_collaborationController','min','uni.network.url-service','http://www.w3.org/2000/svg','isArray','extend','cursorInfo$','_initCommandExecutedListener','SHEET_VIEWPORT_KEY','APPLY_REVISION_CONFILICT','shareReplay','collabCursorState$','_notificationService','debug','_handleJoinEvent','TEXT','_anchorDot','INVALID_ARGUMENT','fillStyle','urlChange$','DependentOn','_initStatusListener','setActiveRange','push','getParam','_onCursorUpdate','includes','removeParam','toString','handleInsertRangeMoveRight','type','Workbook','BuiltInUIPart','isTransformMutationsWithChangesetSuccess','eventID','LICENSE_DISTRO_REJECTED','next','translate(.97)','jsxs','ALREADY_EXISTS','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','IImageIoService','replaceDocRanges','onPointerMove$','_draw','key','_initStatusComponent','_syncEditingCollabCursorService','arc','UNAUTHENTICATED','_hover','result','getAncestorScale','_id','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','measureText','_transformHistoryAndStateStack','fromEventSubject','INVALID_INVITE_CODE','fill','_ensureSubject','ColorKit','AWAITING','error','pushState','createElement','INotificationService','TEXT_RANGE_LAYER_INDEX','invokeId','setConfig','getSkeleton','setShapeProps','VIEW_MAIN','getActiveSheet','off-line-icon','getCurrentRevOfUnit','black','roomMembers$','NOT_FOUND','CollaborationUIEventId','_onCursorDelete','mergeOverrideWithDependencies','div','deepClone','_renderManagerService','saveTaskMap','restore','_urlService','newValue','getSheetObject','endColumn','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','APPLY_DUPLICATED','_toggleOffline','currentTheme$','setUndoRedoMutationParamsCache','defineProperty','column','toDisposable','transform','_hovered','saveOfflineData','_removeCollabCursors','_unitOnClients','_logService','CONNECTOR_DATA_TOO_LARGE','url(#$1','assign','ISocketService','UNDEFINED','_registerRenderDependencies','_revisionService','getLocalCacheKey','/run/','throttleTime','unshift','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','UPDATE_CURSOR','LocaleService','_configService','_imageIoService','_updateLocalCursor','DocCollaborationEntity','collaboration.single-unit.warning','getCollabCursors$','_collabCursorController','text','event$','fillText','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','setAlpha','UniverCollaborationClientPlugin','getColor','Plugin','_anchor','svg','_removeClearOtherTimer','CollaborationController','PENDING','InsertRangeMoveRightCommandId','code','disposeUnit','_drawAnchor','white','_eventUnsubscribe','requireSession','_saveTaskMap','ENSURE_SNAPSHOT_EXECUTION','YUUMI_CONNECTOR_URL_NOT_FOUND','_scene','getConfig','#FFF','session.connection-failed','univer-flex\x20univer-items-center','9978AtYenj','IMessageService','setItem','YUUMI_NO_CUBOID_FOR_QUESTION','toRgbString','_handleEvent','session.will-retry','getCellPositionByOffset','APPLY_PERMISSION_DENIED','getUnitId','startColumn','runOnServer','_toggleOnline','touchDependencies','_createSocketURL','doc.mutation.rich-text-editing','isEditing','round','setInterval','data','use','LOGIN_FAILED','_docSyncEditingCollabCursorService','addEventListener','useCallback','entries','_httpService','deserializeRangeWithSheet','getSheetBySheetId','skeleton','transformMutationsWithChangeset','m2Prime','distinctUntilChanged','COMPLETION_FINISHED','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_sheetSkeletonManagerService','clsx','collabStatus.conflict','delete','UniverCollaborationClientUIPlugin','attrs','MessageType','ITransformService','_getSessionTicket','USERS_LEAVE','map','DOC_RANGE_TYPE','YUUMI_RATE_OVER_LIMIT','getCoordByCell','onMouseMove','1em','LICENSE_EXPORT_SIZE_EXCEEDED','indexOf','moveTo','yellow.400','_onRefRangeChange','function','getRangePointData','CollaborationEvent','_color','popstate','dispose$','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','stringify','DocSelectionManagerService','SOCKET_FAILED_RETRY','getOwnPropertyDescriptor','OTHER_CLIENTS_EDITING','trim','INVITE_CODE_ALREADY_BOUND','SOCKET_FAILED','1743596IBHqPl','unsubscribe','IUniverInstanceService','idSuffix','LOCAL_CACHE_INTERVAL_KEY','95954lQybwH','InsertRangeMoveDownCommandId','onStarting','_range','redoState','_unitStatus','defs','1284366YeeGAI','dispose','44wDMwEr','jiqing.500','BehaviorSubject','IRenderManagerService','_clearOtherTimers','YUUMI_AI_RUN_FAILED','then','red.300','PY_RUNTIME_SCRIPT_ERROR','640675FNJlpg','getItem','entityInit$','_session','M0\x200H16V16H0z','WebBrowserSingleActiveUnitService','origin','connectInjector','YUUMI_ALL_TABLES_IS_INVALID','YUUMI_TABLE_NOT_FOUND_IN_UNIT','ranges','permission.content','_instanceService','off-line-icon_clip0_910_343','textRanges','_localStorageService','collabStatus.offline','currentColor','onCommandExecuted','addObject','sheetID','collaboration-client.offline-data-not-saved','complete','string','getMemberID','assignAColorForMemberID','CommandType','_startSheetCollabCursor','purple.300','pluginName','_scheduleSaving','transformByState','getVpScrollXYInfoByPosToVp','collab-rect-range-','DocIMEInputManagerService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','combineLatest','_getSaveTimeout','BrowserCollaborationSocketService','_handleHover','OTHER_CLIENT_EDITING','univerjs-icon\x20univerjs-icon-','Subject','location','_getScale','defIds','Error','_beforeCloseService','saveImage','_document','switchMap','DataLoaderService','takeUntil','_transformPreviousActiveRange','startRow','_getAnchorBounding','syncEditingCollabCursor','_name','_localeService','_entities','loadUnit','getActiveRange','IBeforeCloseService','3339040ivAdqH','DesktopCollaborationStatusDisplayController','params','reconnect','toStringTag','merge','Injector','_updateSubUnitFromURLParams','wsSessionTicketUrl','Optional','getRenderById','href','_initEntityListener','transformIMECache','replace','url(#on-line-icon_clip0_910_349)','m1Prime','IConfigService','sessionStatus$','TOO_MANY_REQUESTS','_scheduleClearOtherTimer','_docStateChangeManagerService','propertyIsEnumerable','_startDocCollabCursor','_online','updateOfflineData','on-line-icon_clip0_910_349','NodePositionConvertToCursor','Unknown\x20user','Inject','source','OffLineIcon','lineTo','UniverIcon','session.collaboration-timeout','row','Rect','CollaborationStatus','collaboration.closeRoom','add','range','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','LICENSE_IMPORT_SIZE_EXCEEDED','transformRemoteChangeset','IUIPartsService','_handleLeaveEvent','collab-text-anchor-','subscribeEvent','getCurrentSelections','all','_uiPartsService','current','permission.title','IURLService','find','getTypeOfUnitAdded$','27zPJiPO','split','APPLY_NON_SEQUENTIAL_REVISION','INVITE_CODE_HAS_BEEN_UES','UnitStatus','_commandService','NO_OTHER_CLIENTS_EDITING','size','onPointerEnter$','univer-mr-2\x20univer-flex\x20univer-text-xl','Rectangle','getMergeData','SUBMIT_CHANGESET_TIMEOUT','_render','_docTransformStateCacheService','YUUMI_SUBSCRIPTION_NOT_FOUND','RemoteUniscriptService','APPLY_REJECT','EffectRefRangId','getColorFromTheme','_cursorShapes','collab-client.tooltip.reconnect','Module','registerRenderModule','ICommandService','YUUMI_UNABLE_LOAD_URL','isActive','mutations','_localCacheService','editingUnit','Shape','undoState','exhaustSavingTask','currentSkeleton$','_univerInstanceService','RECT','path','storage','show','collabStatus.notCollab','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','IDocClipboardService','addObjects','_roomMembers$','_transformUndoRedoStack','from','width','green.600','clipPath','beginPath','handleIRemoveRow','INTERNAL_ERROR','name','subUnitId','className','CLOSE_ROOM','MOBILE_HAS_BEEN_BOUND','SNAPSHOT_INVALID_SNAPSHOT','_cursors','handleInsertRow','jsx','get','PERMISSION_DENIED','ThemeService','USER_NOT_INVITED_CODE','unitId','getStateCache','SNAPSHOT_HAS_BEEN_REMOVED','ISnapshotServerService','runRefRangeMutations','_handleHeartbeatEvent','_backgroundColor','_updateCollabCursors','SetSelectionsOperation','_cursor','override','length','flatMap','handleDeleteRangeMoveUp','_docSkeleton','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_transformService','CHANGESET_REVISION_CONFILICT','has','unitID','mask','blue.400','Vector2','init','debounceTime','clearInterval','save','concat','getOwnPropertySymbols','forwardRef','_setupSubUnitSync','top','setParam','handleInsertCol','Tools','_docSkeletonManagerService','history','INVITE_CODE_REQUIRED','RegularPolygon','addHandlerCallback','height','_context','handleDeleteRangeMoveLeft','subunit','collabStatus.fetchMiss','pipe','_scheduleHeartbeat','post','1939ypcNNA','_docTransformSelectionsService','hasOwnProperty','_messageService','loadOfflineData','bottom','registerDependencies','searchParams','getValue','CollaborationDataLoaderController','call','_refreshCollabCursors','...','getUndoRedoMutationParamsCache','_init','MOBILE_VERIFY_CODE_MISMATCH','xlink:href','OFFLINE','1oAVdwJ','icon','random','DocStateChangeManagerService','setStateCache','_saveCache','prototype','hide','_getSheetObject','getMember','collaboration-client-ui.config','_textBubble','clearTimeout','activeSheet$','with','515280mEsWdy','useObservable','_drawRectRange','_cursorInfo$','transformSelections','tag','_selfUnitIDs','_shapes','_disabled','EMAIL_HAS_BEEN_BOUND','SetWorksheetActivateCommand','search','getTypeOfUnitDisposed$','collabStatus.synced','getUnitStatus$','0\x200\x2017\x2016','_themeService','disposeWithMe','Disposable','RxDisposable','_injector','_getMergeRange','roomMembers','createInstance','_hideTimer','TRANSFORM_CHANGE_OBSERVABLE_TYPE','forEach','handleMoveRange','NOT_COLLAB','transformMutation','CONFLICT','UNIVER_SHEET','useDependency','RemoveColCommandId','evenodd','DisposableCollection','_updateURLWithCurrentState','MUTATION','_docClipboardService','HTTPService','_refRangeService','hovered','cursorInfo','YUUMI_URL_COL_OUT_OF_RANGE','DeleteRangeMoveLeftCommandId','displayName','CollaborationSessionService','selection','values','_entityInit$','UNIVER_DOC','generateRandomId','YUUMI_ASYNCIO_CANCELLED','UNRECOGNIZED','getDocRanges','_labelPosition','subscribe','runId','_setupBeforeClosingHandler','InsertColCommandId','_dataLoaderService','_initEvent','debounce','SessionStatus','_collabSessionService','fromEvent','getSheetId','handleInsertRangeMoveDown','SheetCollabCursorShape','_config','UniverInstanceType','set','symbol','body','getCurrentUnitForType','substring','_registerDependencies','_docTransformIMECacheService','_cachedData','_colorIndex','status$','getFocusedUnit','drawWith','serializeRangeWithSheet','registerRefRange','_collaborationUIEventService','_assignedColors','registerBeforeClose','getRelativeToViewportCoord','setTimeout'];_0x3e65=function(){return _0x4202b7;};return _0x3e65();}function et(_0x1292c3){const _0x169bc4=_0x4729ad;switch(_0x1292c3){case u['CollaborationStatus']['OFFLINE']:return _0x169bc4(0x2e0);case u[_0x169bc4(0xb7)][_0x169bc4(0x17a)]:return _0x169bc4(0x297);case u['CollaborationStatus']['FETCH_MISS']:return _0x169bc4(0x137);case u[_0x169bc4(0xb7)][_0x169bc4(0x178)]:return _0x169bc4(0xf1);case u[_0x169bc4(0xb7)][_0x169bc4(0x216)]:case u[_0x169bc4(0xb7)][_0x169bc4(0x1c8)]:return'collabStatus.syncing';case u[_0x169bc4(0xb7)]['SYNCED']:case u[_0x169bc4(0xb7)][_0x169bc4(0x262)]:return _0x169bc4(0x169);}}function tt(_0x407416){const _0x4469d5=_0x4729ad,{status$:_0x494de0}=_0x407416,_0x53860a=O[_0x4469d5(0x15d)](_0x494de0,u[_0x4469d5(0xb7)][_0x4469d5(0x178)]),_0x10389b=O[_0x4469d5(0x17c)](a[_0x4469d5(0x24e)]),_0x545d36=O[_0x4469d5(0x17c)](u[_0x4469d5(0x18a)]),_0x2abb80=_0x53860a!==u['CollaborationStatus'][_0x4469d5(0x14c)],_0x44bb2a=_0x10389b['t'](et(_0x53860a)),_0x304574=_0x2abb80?P[_0x4469d5(0x106)](Ae,{}):P[_0x4469d5(0x106)](we,{}),_0x268d4e=M[_0x4469d5(0x28a)](()=>{const _0x5e46d2=_0x4469d5;_0x2abb80||_0x545d36[_0x5e46d2(0x95)]();},[_0x2abb80,_0x545d36]);function _0x4a233d(){const _0x48f7a3=_0x4469d5;return P[_0x48f7a3(0x1fe)](_0x48f7a3(0x22a),{'className':_0x48f7a3(0x271),'onClick':_0x268d4e,'children':[P[_0x48f7a3(0x106)](_0x48f7a3(0x22a),{'className':D[_0x48f7a3(0x296)](_0x48f7a3(0xd3),{'univer-text-green-500':_0x2abb80,'univer-text-red-500':!_0x2abb80}),'children':_0x304574}),P['jsx'](_0x48f7a3(0x22a),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x44bb2a})]});}return _0x2abb80?_0x4a233d():P[_0x4469d5(0x106)](D['Tooltip'],{'title':_0x10389b['t'](_0x4469d5(0xdf)),'children':_0x4a233d()});}var st=Object[_0x4729ad(0x2b4)],it=(_0x3faa86,_0x260148,_0x5af644,_0x477823)=>{const _0x4c0f06=_0x4729ad;for(var _0x4d053e=_0x477823>0x1?void 0x0:_0x477823?st(_0x260148,_0x5af644):_0x260148,_0x494b6c=_0x3faa86[_0x4c0f06(0x116)]-0x1,_0x1e3a00;_0x494b6c>=0x0;_0x494b6c--)(_0x1e3a00=_0x3faa86[_0x494b6c])&&(_0x4d053e=_0x1e3a00(_0x4d053e)||_0x4d053e);return _0x4d053e;},V=(_0x25313d,_0x4b9b34)=>(_0x24a4b5,_0x34ffa1)=>_0x4b9b34(_0x24a4b5,_0x34ffa1,_0x25313d);exports[_0x4729ad(0x93)]=class extends a[_0x4729ad(0x16e)]{constructor(_0x22fde3,_0x22be8a,_0x68a042,_0x386dbe){const _0x482f70=_0x4729ad;super(),h(this,_0x482f70(0x1bf),new d[(_0x482f70(0x2c9))](u[_0x482f70(0xb7)][_0x482f70(0x178)])),(this[_0x482f70(0xec)]=_0x22fde3,this[_0x482f70(0x170)]=_0x22be8a,this['_collaborationController']=_0x68a042,this[_0x482f70(0xc4)]=_0x386dbe,this[_0x482f70(0x206)](),this[_0x482f70(0x1ed)]());}[_0x4729ad(0x1ed)](){const _0x2f7be2=_0x4729ad;this[_0x2f7be2(0x16d)](this['_univerInstanceService']['focused$']['pipe'](d[_0x2f7be2(0x85)](()=>{const _0x267c4d=_0x2f7be2,_0x46a335=this[_0x267c4d(0xec)][_0x267c4d(0x1ad)]();return _0x46a335?this[_0x267c4d(0x1d8)][_0x267c4d(0x1ca)](_0x46a335[_0x267c4d(0x27b)]()):d['of'](null);}),d[_0x2f7be2(0x85)](_0x97daa9=>_0x97daa9?_0x97daa9[_0x2f7be2(0x1ac)]:d['of'](u[_0x2f7be2(0xb7)][_0x2f7be2(0x178)])))[_0x2f7be2(0x194)](_0x55567c=>{const _0x1a7a0f=_0x2f7be2;this['_status$'][_0x1a7a0f(0x1fc)](_0x55567c);}));}[_0x4729ad(0x206)](){const _0x7318f4=_0x4729ad;this[_0x7318f4(0x16d)](this[_0x7318f4(0xc4)]['registerComponent'](O[_0x7318f4(0x1f8)]['HEADER_MENU'],()=>O[_0x7318f4(0x2d7)](nt({'status$':this[_0x7318f4(0x1bf)]['asObservable']()}),this[_0x7318f4(0x170)])));}},exports['DesktopCollaborationStatusDisplayController']=it([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0x4729ad(0xaf)](a['Injector'])),V(0x2,a[_0x4729ad(0xaf)](u[_0x4729ad(0x261)])),V(0x3,O[_0x4729ad(0xbe)])],exports[_0x4729ad(0x93)]);function nt(_0x3b5b05){const {status$:_0x4efdb0}=_0x3b5b05;return function(){const _0x100e26=_0x46c6;return P[_0x100e26(0x106)](tt,{'status$':_0x4efdb0});};}const me=a['createIdentifier'](_0x4729ad(0x1da));var rt=Object[_0x4729ad(0x2b4)],ot=(_0xd2473b,_0x58047b,_0x344a71,_0x49d7c2)=>{for(var _0xb1587c=_0x49d7c2>0x1?void 0x0:_0x49d7c2?rt(_0x58047b,_0x344a71):_0x58047b,_0x431d30=_0xd2473b['length']-0x1,_0x2d1601;_0x431d30>=0x0;_0x431d30--)(_0x2d1601=_0xd2473b[_0x431d30])&&(_0xb1587c=_0x2d1601(_0xb1587c)||_0xb1587c);return _0xb1587c;},k=(_0x13b7e3,_0x3a0869)=>(_0x453cf0,_0x9e9bd)=>_0x3a0869(_0x453cf0,_0x9e9bd,_0x13b7e3);exports[_0x4729ad(0x144)]=class extends a[_0x4729ad(0x16f)]{constructor(_0x4371b8,_0x40cee8,_0x2b45ac,_0x52a815,_0x270f4b){const _0x28f4cf=_0x4729ad;super(),this[_0x28f4cf(0x22f)]=_0x4371b8,this[_0x28f4cf(0x240)]=_0x40cee8,this[_0x28f4cf(0xcf)]=_0x2b45ac,this['_dataLoaderService']=_0x52a815,_0x270f4b?_0x270f4b==null||_0x270f4b['whenReady']()[_0x28f4cf(0x2cd)](()=>this[_0x28f4cf(0x149)]()):(this[_0x28f4cf(0x240)][_0x28f4cf(0x1e5)]('[CollaborationDataLoaderController]',_0x28f4cf(0x259)),this['_init']());}async[_0x4729ad(0x149)](){const _0x17cac9=_0x4729ad,_0x49e6e2=this['_urlService']['getParam']('unit'),_0x352880=this[_0x17cac9(0x22f)][_0x17cac9(0x1f0)](_0x17cac9(0x1f6)),_0x118d78=this[_0x17cac9(0x22f)][_0x17cac9(0x1f0)](_0x17cac9(0x136));if(!_0x49e6e2||!_0x352880){this[_0x17cac9(0x240)]['debug']('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x3cfe2a=await this[_0x17cac9(0x198)][_0x17cac9(0x8f)](_0x49e6e2,Number(_0x352880),_0x118d78);_0x3cfe2a&&_0x3cfe2a instanceof a[_0x17cac9(0x1f7)]&&this['_setupSubUnitSync'](_0x3cfe2a);}async[_0x4729ad(0x129)](_0x41dd09){const _0x4a2c15=_0x4729ad;await this[_0x4a2c15(0x99)](_0x41dd09),_0x41dd09[_0x4a2c15(0x15a)][_0x4a2c15(0x138)](d['takeUntil'](this[_0x4a2c15(0x2af)]))[_0x4a2c15(0x194)](_0x244d19=>{const _0x34d577=_0x4a2c15;_0x244d19&&this[_0x34d577(0x180)](_0x244d19);}),this[_0x4a2c15(0x22f)][_0x4a2c15(0x1eb)]['pipe'](d[_0x4a2c15(0x87)](this[_0x4a2c15(0x2af)]))[_0x4a2c15(0x194)](()=>this[_0x4a2c15(0x99)](_0x41dd09));}['_updateURLWithCurrentState'](_0x5878b4,_0x57ec0f=!0x1){const _0x44ad7f=_0x4729ad,_0x56a9dd=this[_0x44ad7f(0x22f)][_0x44ad7f(0x1f0)](_0x44ad7f(0x136));_0x5878b4[_0x44ad7f(0x19e)]()!==_0x56a9dd&&this[_0x44ad7f(0x22f)][_0x44ad7f(0x12b)](_0x44ad7f(0x136),_0x5878b4[_0x44ad7f(0x19e)](),_0x57ec0f);}async[_0x4729ad(0x99)](_0x2d356d){const _0xe32ac3=_0x4729ad;var _0x3d61fd;const _0x56d97e=this[_0xe32ac3(0x22f)]['getParam'](_0xe32ac3(0x136));if(!_0x56d97e||!_0x2d356d['getSheetBySheetId'](_0x56d97e)){const _0x19f690=_0x2d356d['getUnhiddenWorksheets']()[0x0],_0x498c6b=_0x2d356d[_0xe32ac3(0x28e)](_0x19f690);if(!_0x498c6b)return;this[_0xe32ac3(0x180)](_0x498c6b,!0x0),await this[_0xe32ac3(0xcf)]['executeCommand'](g[_0xe32ac3(0x166)]['id'],{'unitId':_0x2d356d[_0xe32ac3(0x27b)](),'subUnitId':_0x19f690});return;}((_0x3d61fd=_0x2d356d[_0xe32ac3(0x221)]())==null?void 0x0:_0x3d61fd[_0xe32ac3(0x19e)]())!==_0x56d97e&&await this[_0xe32ac3(0xcf)]['executeCommand'](g[_0xe32ac3(0x166)]['id'],{'unitId':_0x2d356d[_0xe32ac3(0x27b)](),'subUnitId':_0x56d97e});}},exports[_0x4729ad(0x144)]=ot([k(0x0,me),k(0x1,a[_0x4729ad(0x1c3)]),k(0x2,a[_0x4729ad(0xe2)]),k(0x3,a[_0x4729ad(0xaf)](u[_0x4729ad(0x86)])),k(0x4,a[_0x4729ad(0x9b)](Xe['IRemoteInstanceService']))],exports[_0x4729ad(0x144)]);function _0x46c6(_0x4aaa2a,_0x1462a8){const _0x3e650c=_0x3e65();return _0x46c6=function(_0x46c6a3,_0x2ed988){_0x46c6a3=_0x46c6a3-0x72;let _0x47a103=_0x3e650c[_0x46c6a3];return _0x47a103;},_0x46c6(_0x4aaa2a,_0x1462a8);}var at=Object['getOwnPropertyDescriptor'],ct=(_0x21f383,_0xb6e628,_0x376a91,_0x12dee1)=>{for(var _0x4b3b4b=_0x12dee1>0x1?void 0x0:_0x12dee1?at(_0xb6e628,_0x376a91):_0xb6e628,_0x28dcf0=_0x21f383['length']-0x1,_0x56236c;_0x28dcf0>=0x0;_0x28dcf0--)(_0x56236c=_0x21f383[_0x28dcf0])&&(_0x4b3b4b=_0x56236c(_0x4b3b4b)||_0x4b3b4b);return _0x4b3b4b;},be=(_0x5085c9,_0x372420)=>(_0x46c6c9,_0x19fca7)=>_0x372420(_0x46c6c9,_0x19fca7,_0x5085c9);let ue=class extends a[_0x4729ad(0x16f)]{constructor(_0x142392,_0x2e97be){const _0x3a35b2=_0x4729ad;super(),this[_0x3a35b2(0x182)]=_0x142392,this['_imageIoService']=_0x2e97be,this[_0x3a35b2(0x149)]();}[_0x4729ad(0x149)](){const _0x2e87f=_0x4729ad,_0x5762a0=this;this[_0x2e87f(0x16d)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x3a93a4=>{const _0xaefeba=_0x2e87f,_0x44112e=await _0x5762a0[_0xaefeba(0x250)][_0xaefeba(0x83)](_0x3a93a4);return _0x44112e?{'source':_0x44112e[_0xaefeba(0xb0)],'imageSourceType':_0x44112e['imageSourceType']}:null;}}));}};ue=ct([be(0x0,E[_0x4729ad(0xf3)]),be(0x1,Ge[_0x4729ad(0x201)])],ue);const Oe=[_0x4729ad(0x2ec),_0x4729ad(0x2c8),_0x4729ad(0xf9),_0x4729ad(0x2ce),_0x4729ad(0x120),_0x4729ad(0x2a8)];class Ce extends a['Disposable']{constructor(){const _0x52da42=_0x4729ad;super(...arguments),h(this,_0x52da42(0x1b2),new Map()),h(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x806153){const _0x20126e=_0x4729ad;if(this[_0x20126e(0x1b2)][_0x20126e(0x11d)](_0x806153))return this[_0x20126e(0x1b2)][_0x20126e(0x107)](_0x806153);const _0xa554c=Oe[this[_0x20126e(0x1ab)]];return this['_colorIndex']=(this[_0x20126e(0x1ab)]+0x1)%Oe[_0x20126e(0x116)],this[_0x20126e(0x1b2)][_0x20126e(0x1a3)](_0x806153,_0xa554c),_0xa554c;}}function ye(_0x531013){const _0xdb0633=_0x4729ad;let _0x143b92='';for(const _0x405f9e of _0x531013){const {startOffset:_0x3d855f,endOffset:_0x1756f6,isActive:_0x1fc4d2,rangeType:_0xd03356,segmentId:_0x22ea6a,segmentPage:_0xbe3564}=_0x405f9e;_0x143b92[_0xdb0633(0x116)]&&(_0x143b92+=','),_0x143b92+=_0x3d855f+':'+_0x1756f6+':'+(_0x1fc4d2?'1':'0')+':'+_0xd03356+':'+_0x22ea6a+':'+_0xbe3564;}return _0x143b92;}function lt(_0x34b14f){const _0x38b3f7=_0x4729ad,_0x72fb0b=_0x34b14f[_0x38b3f7(0xcb)](','),_0x294638=[];for(const _0x2ec9b2 of _0x72fb0b){const [_0x40decb,_0x14cbd4,_0x3733d3,_0xa9c834,_0x52f8cc,_0x417156]=_0x2ec9b2[_0x38b3f7(0xcb)](':');_0x294638['push']({'startOffset':Number(_0x40decb),'endOffset':Number(_0x14cbd4),'collapsed':_0x40decb===_0x14cbd4,'isActive':_0x3733d3==='1','rangeType':_0xa9c834===a[_0x38b3f7(0x2a0)][_0x38b3f7(0x1e7)]?a['DOC_RANGE_TYPE'][_0x38b3f7(0x1e7)]:a[_0x38b3f7(0x2a0)][_0x38b3f7(0xed)],'segmentId':typeof _0x52f8cc==_0x38b3f7(0x2e7)?String(_0x52f8cc):'','segmentPage':Number(_0x417156!=null?_0x417156:-0x1)});}return _0x294638['some'](_0x30c978=>_0x30c978[_0x38b3f7(0xe4)])||(_0x294638[0x0][_0x38b3f7(0xe4)]=!0x0),_0x294638;}class pe extends a[_0x4729ad(0x16f)]{constructor(){const _0x5a5dc3=_0x4729ad;super(...arguments),h(this,_0x5a5dc3(0x1b8),new d[(_0x5a5dc3(0x2c9))](null)),h(this,'collabCursorState$',this[_0x5a5dc3(0x1b8)][_0x5a5dc3(0x1c6)]());}[_0x4729ad(0x8b)](_0xf2904f){const {unitID:_0x506ac3,memberID:_0x131145,textRanges:_0x4509fd}=_0xf2904f,_0x1acbd4=ye(_0x4509fd);if(_0x1acbd4==='')return;const _0x12ee80={'unitID':_0x506ac3,'memberID':_0x131145,'selection':_0x1acbd4};this['_collabCursorState$']['next'](_0x12ee80);}}var _t=Object[_0x4729ad(0x2b4)],ht=(_0x761f46,_0x131838,_0x46525c,_0x23e55a)=>{for(var _0x3b7f12=_0x23e55a>0x1?void 0x0:_0x23e55a?_t(_0x131838,_0x46525c):_0x131838,_0xd109b=_0x761f46['length']-0x1,_0x4db12b;_0xd109b>=0x0;_0xd109b--)(_0x4db12b=_0x761f46[_0xd109b])&&(_0x3b7f12=_0x4db12b(_0x3b7f12)||_0x3b7f12);return _0x3b7f12;},L=(_0x2f1d00,_0x489f2e)=>(_0xf7df5e,_0x3de26a)=>_0x489f2e(_0xf7df5e,_0x3de26a,_0x2f1d00);const ut=0x12c,dt=0x64;let de=class extends a[_0x4729ad(0x16f)]{constructor(_0xc3c197,_0x1f563c,_0x96d25,_0x147251,_0x183f57,_0x41cf17,_0x361c0c,_0x3b572b,_0x4a5d84){const _0x48758a=_0x4729ad;super(),h(this,'_online',!0x1),h(this,'_init',!0x1),h(this,_0x48758a(0x15f),new d['BehaviorSubject'](new Map())),h(this,_0x48758a(0x1de),this[_0x48758a(0x15f)][_0x48758a(0x1c6)]()),h(this,_0x48758a(0xf5),new d[(_0x48758a(0x2c9))]([])),h(this,_0x48758a(0x225),this[_0x48758a(0xf5)]['pipe'](d[_0x48758a(0x123)](ut))),h(this,'_updateLocalCursor',a[_0x48758a(0x19a)](_0x5e4c27=>{const _0x54c237=_0x48758a,_0x3a070e={'eventID':m['CollaborationEvent'][_0x54c237(0x24d)],'data':{'unitID':this['unitID'],'memberID':this[_0x54c237(0x2d3)][_0x54c237(0x2e8)](),'selection':ye(_0x5e4c27)}};this['_session']['send'](_0x3a070e,this['unitID']);},dt)),(this['unitID']=_0xc3c197,this[_0x48758a(0x2d3)]=_0x1f563c,this[_0x48758a(0x170)]=_0x96d25,this[_0x48758a(0x1c0)]=_0x147251,this[_0x48758a(0x1c7)]=_0x183f57,this[_0x48758a(0x207)]=_0x41cf17,this['_transformService']=_0x361c0c,this['_univerInstanceService']=_0x3b572b,this[_0x48758a(0xcf)]=_0x4a5d84);}get[_0x4729ad(0x186)](){const _0xe81953=_0x4729ad;return this[_0xe81953(0x15f)][_0xe81953(0x143)]();}get[_0x4729ad(0x172)](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x322982=_0x4729ad;super[_0x322982(0x2c6)](),this[_0x322982(0x15f)][_0x322982(0x1fc)](new Map()),this[_0x322982(0x15f)][_0x322982(0x2e6)](),this[_0x322982(0xf5)][_0x322982(0x1fc)]([]),this['_roomMembers$'][_0x322982(0x2e6)]();}[_0x4729ad(0x122)](){const _0x32e725=_0x4729ad;this[_0x32e725(0x149)]||(this[_0x32e725(0x149)]=!0x0,this[_0x32e725(0x2d3)][_0x32e725(0xa4)][_0x32e725(0x138)](d[_0x32e725(0x87)](this[_0x32e725(0x2af)]))[_0x32e725(0x194)](_0x5dd75f=>{const _0x1e1b08=_0x32e725;_0x5dd75f===u[_0x1e1b08(0x19b)][_0x1e1b08(0x1cc)]?this[_0x1e1b08(0x27e)]():this[_0x1e1b08(0x235)]();}),this[_0x32e725(0x2d3)][_0x32e725(0x257)]['pipe'](d[_0x32e725(0x87)](this[_0x32e725(0x2af)]))[_0x32e725(0x194)](_0x278310=>{const _0x24d187=_0x32e725,_0x5385ad=_0x278310['eventID'];_0x5385ad===m[_0x24d187(0x2ac)]['UPDATE_CURSOR']&&this[_0x24d187(0x1f1)](_0x278310),_0x5385ad===m[_0x24d187(0x2ac)][_0x24d187(0x29e)]&&this['_onCursorDelete'](_0x278310);}),this[_0x32e725(0x16d)](this[_0x32e725(0xcf)]['onCommandExecuted'](_0x2f0d2e=>{const _0x241045=_0x32e725,_0x2d4f99=_0x2f0d2e[_0x241045(0x94)];_0x2d4f99!=null&&this['_online']&&_0x2f0d2e['id']===Y['SetTextSelectionsOperation']['id']&&_0x2d4f99[_0x241045(0x10b)]===this[_0x241045(0x11e)]&&_0x2d4f99[_0x241045(0x282)]===!0x1&&_0x2d4f99[_0x241045(0x2da)][_0x241045(0x116)]>0x0&&this[_0x241045(0x251)](_0x2d4f99[_0x241045(0x2da)]);})),this[_0x32e725(0x207)][_0x32e725(0x1e3)]['pipe'](d[_0x32e725(0x87)](this['dispose$']))[_0x32e725(0x194)](_0x350633=>{const _0x5a19c5=_0x32e725;if((_0x350633==null?void 0x0:_0x350633[_0x5a19c5(0x11e)])!==this[_0x5a19c5(0x11e)])return;const _0x29b53c={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x350633};this[_0x5a19c5(0x1f1)](_0x29b53c);}),this['disposeWithMe'](this[_0x32e725(0xcf)][_0x32e725(0x2e2)](_0x3dd0b9=>{const _0x5a837b=_0x32e725;if(_0x3dd0b9[_0x5a837b(0x94)]==null)return;const _0x2662a7=_0x3dd0b9[_0x5a837b(0x94)];if(_0x3dd0b9['id']!==Y['RichTextEditingMutation']['id']||_0x2662a7[_0x5a837b(0x10b)]!==this[_0x5a837b(0x11e)])return;const _0x1136e0={'id':_0x5a837b(0x281),'params':_0x2662a7},_0x182131=this[_0x5a837b(0x186)];for(const [_0x40138a,_0x141472]of _0x182131){const _0x1c706d={'id':_0x5a837b(0x281),'params':{'unitId':this[_0x5a837b(0x11e)],'actions':null,'textRanges':_0x141472[_0x5a837b(0x2da)]}},_0x312006=this[_0x5a837b(0x11b)][_0x5a837b(0x179)](_0x1136e0,_0x1c706d,!0x1);if(m[_0x5a837b(0x1b7)](_0x312006))throw _0x312006[_0x5a837b(0x217)];_0x182131[_0x5a837b(0x1a3)](_0x40138a,{..._0x141472,'ranges':_0x312006[_0x5a837b(0x291)][_0x5a837b(0x94)]['textRanges']});}queueMicrotask(()=>{const _0x5b9e33=_0x5a837b;this[_0x5b9e33(0x15f)][_0x5b9e33(0x1fc)](_0x182131);});})));}['_onCursorUpdate'](_0x31eb0f){const _0x229636=_0x4729ad;var _0xd4da99,_0x53be0e;const {memberID:_0x33cffe,selection:_0x163b76}=_0x31eb0f['data'],_0x80da0c=lt(_0x163b76),_0x1a89a6=(_0x53be0e=(_0xd4da99=this[_0x229636(0x1c7)][_0x229636(0x156)](this[_0x229636(0x11e)],_0x33cffe))==null?void 0x0:_0xd4da99[_0x229636(0xfe)])!=null?_0x53be0e:_0x229636(0xae),_0x5977fb={'color':this[_0x229636(0x1c0)][_0x229636(0x2e9)](_0x33cffe),'name':_0x1a89a6,'ranges':_0x80da0c},_0x4ab435=this['cursorInfo'];_0x4ab435[_0x229636(0x1a3)](_0x33cffe,_0x5977fb),this[_0x229636(0x15f)][_0x229636(0x1fc)](_0x4ab435);}[_0x4729ad(0x228)](_0xd68b94){const _0x1037e5=_0x4729ad,{memberID:_0x24f1d4}=_0xd68b94[_0x1037e5(0x285)],_0x322a4b=this[_0x1037e5(0x186)];_0x322a4b['delete'](_0x24f1d4),this[_0x1037e5(0x15f)]['next'](_0x322a4b);}[_0x4729ad(0x27e)](){const _0xabbe77=_0x4729ad;var _0x50e4ee;if(this['_online']=!0x0,((_0x50e4ee=this['_univerInstanceService'][_0xabbe77(0x1ad)]())==null?void 0x0:_0x50e4ee[_0xabbe77(0x27b)]())!==this['unitID'])return;const _0x3f1355=this['_injector'][_0xabbe77(0x107)](Y[_0xabbe77(0x2b2)])[_0xabbe77(0x192)]();Array[_0xabbe77(0x1dc)](_0x3f1355)&&_0x3f1355[_0xabbe77(0x116)]>0x0&&this[_0xabbe77(0x251)](_0x3f1355);}[_0x4729ad(0x235)](){const _0x5172e9=_0x4729ad;this[_0x5172e9(0xaa)]=!0x1;}};de=ht([L(0x2,a[_0x4729ad(0xaf)](a[_0x4729ad(0x98)])),L(0x3,a[_0x4729ad(0xaf)](Ce)),L(0x4,a[_0x4729ad(0xaf)](u['MemberService'])),L(0x5,a[_0x4729ad(0xaf)](pe)),L(0x6,m[_0x4729ad(0x29c)]),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x4729ad(0xe2)])],de);var St=Object['getOwnPropertyDescriptor'],ft=(_0x33861f,_0xfd2188,_0x530a1c,_0x4fa0ad)=>{const _0x5bd113=_0x4729ad;for(var _0x36105e=_0x4fa0ad>0x1?void 0x0:_0x4fa0ad?St(_0xfd2188,_0x530a1c):_0xfd2188,_0x5a7682=_0x33861f[_0x5bd113(0x116)]-0x1,_0x269cb3;_0x5a7682>=0x0;_0x5a7682--)(_0x269cb3=_0x33861f[_0x5a7682])&&(_0x36105e=_0x269cb3(_0x36105e)||_0x36105e);return _0x36105e;},A=(_0x31e558,_0x3f8987)=>(_0xb2a9c0,_0x452a10)=>_0x3f8987(_0xb2a9c0,_0x452a10,_0x31e558);const It=0x12c,vt=0x64,gt=()=>{let _0x9e02d1=[],_0x505b07=!0x1;return _0x1c28ca=>{const _0x62de4f=_0x46c6;_0x9e02d1[_0x62de4f(0x1ef)](_0x1c28ca),_0x505b07||(_0x505b07=!0x0,setTimeout(()=>{const _0x54425f=_0x62de4f;_0x9e02d1[_0x54425f(0x176)](_0x2f0450=>_0x2f0450()),_0x9e02d1=[],_0x505b07=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x2622b5,_0x4745f8,_0x19ef63,_0x24db2b,_0xd89646,_0x55a732,_0x2f27e0,_0x368e0f){const _0x3594e8=_0x4729ad;super(),h(this,'_online',!0x1),h(this,_0x3594e8(0x149),!0x1),h(this,'_cursorInfo$',new d[(_0x3594e8(0x2c9))](new Map())),h(this,_0x3594e8(0x1de),this[_0x3594e8(0x15f)][_0x3594e8(0x1c6)]()),h(this,'_roomMembers$',new d[(_0x3594e8(0x2c9))]([])),h(this,_0x3594e8(0x225),this[_0x3594e8(0xf5)]['pipe'](d[_0x3594e8(0x123)](It))),h(this,_0x3594e8(0x251),a[_0x3594e8(0x19a)]((_0x1ee891,_0x2c2d0d)=>{const _0x1963b4=_0x3594e8,_0x450719={'eventID':m[_0x1963b4(0x2ac)][_0x1963b4(0x24d)],'data':{'unitID':this[_0x1963b4(0x11e)],'memberID':this[_0x1963b4(0x2d3)]['getMemberID'](),'selection':Ee[_0x1963b4(0x1af)](_0x1ee891,_0x2c2d0d['range'])}};this['_session']['send'](_0x450719,this['unitID']);},vt)),(this[_0x3594e8(0x11e)]=_0x2622b5,this[_0x3594e8(0x2d3)]=_0x4745f8,this[_0x3594e8(0x170)]=_0x19ef63,this[_0x3594e8(0x1c0)]=_0x24db2b,this['_memberService']=_0xd89646,this[_0x3594e8(0xec)]=_0x55a732,this[_0x3594e8(0xcf)]=_0x2f27e0,this[_0x3594e8(0x184)]=_0x368e0f);}get['cursorInfo'](){const _0x610986=_0x4729ad;return this['_cursorInfo$'][_0x610986(0x143)]();}get['roomMembers'](){const _0x9e8b7b=_0x4729ad;return this[_0x9e8b7b(0xf5)][_0x9e8b7b(0x143)]();}[_0x4729ad(0x2c6)](){const _0x13a4f5=_0x4729ad;super[_0x13a4f5(0x2c6)](),this[_0x13a4f5(0x15f)][_0x13a4f5(0x1fc)](new Map()),this[_0x13a4f5(0x15f)][_0x13a4f5(0x2e6)](),this['_roomMembers$'][_0x13a4f5(0x1fc)]([]),this[_0x13a4f5(0xf5)][_0x13a4f5(0x2e6)]();}[_0x4729ad(0x122)](){const _0x26ae15=_0x4729ad;this[_0x26ae15(0x149)]||(this[_0x26ae15(0x149)]=!0x0,this[_0x26ae15(0x2d3)][_0x26ae15(0xa4)]['pipe'](d['takeUntil'](this[_0x26ae15(0x2af)]))[_0x26ae15(0x194)](_0x487efa=>{const _0x2407ee=_0x26ae15;_0x487efa===u[_0x2407ee(0x19b)][_0x2407ee(0x1cc)]?this['_toggleOnline']():this[_0x2407ee(0x235)]();}),this[_0x26ae15(0x2d3)]['event$'][_0x26ae15(0x138)](d['takeUntil'](this[_0x26ae15(0x2af)]))[_0x26ae15(0x194)](_0x4c0fa6=>{const _0x51864a=_0x26ae15,_0x445fac=_0x4c0fa6[_0x51864a(0x1fa)];_0x445fac===m[_0x51864a(0x2ac)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x4c0fa6),_0x445fac===m['CollaborationEvent'][_0x51864a(0x29e)]&&this[_0x51864a(0x228)](_0x4c0fa6);}),this[_0x26ae15(0x2a9)](),this['disposeWithMe'](this[_0x26ae15(0xcf)]['onCommandExecuted'](_0x2028cb=>{const _0x3dec23=_0x26ae15;if(this['_online']&&_0x2028cb['id']===g[_0x3dec23(0x113)]['id']&&_0x2028cb['params'][_0x3dec23(0x10b)]===this[_0x3dec23(0x11e)]){const _0x37701b=_0x2028cb[_0x3dec23(0x94)];this[_0x3dec23(0x251)](_0x37701b[_0x3dec23(0xff)],_0x37701b['selections'][0x0]);}})));}[_0x4729ad(0x1f1)](_0x306041){const _0x401ebf=_0x4729ad;var _0x1132b9,_0x584e4b;const {memberID:_0x46cc38,selection:_0x532225}=_0x306041['data'],{sheetName:_0x2ce776,range:_0x271335}=Ee[_0x401ebf(0x28d)](_0x532225),_0x4c7750={'name':(_0x584e4b=(_0x1132b9=this[_0x401ebf(0x1c7)][_0x401ebf(0x156)](this[_0x401ebf(0x11e)],_0x46cc38))==null?void 0x0:_0x1132b9[_0x401ebf(0xfe)])!=null?_0x584e4b:_0x401ebf(0xae),'range':this['_getMergeRange'](_0x2ce776,_0x271335),'sheetID':_0x2ce776,'color':this[_0x401ebf(0x1c0)][_0x401ebf(0x2e9)](_0x46cc38),'selection':_0x532225},_0xa8bcaf=this['cursorInfo'];_0xa8bcaf[_0x401ebf(0x1a3)](_0x46cc38,_0x4c7750),this['_cursorInfo$'][_0x401ebf(0x1fc)](_0xa8bcaf);}['_onCursorDelete'](_0x362874){const _0x37f5f7=_0x4729ad,{memberID:_0x3e4683}=_0x362874[_0x37f5f7(0x285)],_0x554c54=this[_0x37f5f7(0x186)];_0x554c54[_0x37f5f7(0x298)](_0x3e4683),this[_0x37f5f7(0x15f)][_0x37f5f7(0x1fc)](_0x554c54);}[_0x4729ad(0x171)](_0x49ca0c,_0x166e5a){const _0x497b4f=_0x4729ad;var _0x39215e,_0x362e15;const _0xe6a4da=(_0x362e15=(_0x39215e=this[_0x497b4f(0xec)]['getUniverSheetInstance'](this[_0x497b4f(0x11e)]))==null?void 0x0:_0x39215e[_0x497b4f(0x28e)](_0x49ca0c))==null?void 0x0:_0x362e15[_0x497b4f(0xd5)]();return(_0xe6a4da==null?void 0x0:_0xe6a4da[_0x497b4f(0xc8)](_0x688406=>a[_0x497b4f(0xd4)]['contains'](_0x688406,_0x166e5a)))||_0x166e5a;}[_0x4729ad(0x2a9)](){const _0x220ccc=_0x4729ad,_0x2a169d=new a[(_0x220ccc(0x17f))](),_0x18ae6b=gt(),_0x54015e=()=>{const _0x146b84=_0x220ccc;_0x2a169d[_0x146b84(0x2c6)]();const _0x1a4146=(_0x5e6453,_0x5970a7,_0x579102,_0x1af6b9)=>{const _0x1bb97c=_0x146b84;let _0x59b5b7=[];switch(_0x5e6453['id']){case g[_0x1bb97c(0xdc)][_0x1bb97c(0x188)]:{_0x59b5b7=g[_0x1bb97c(0x135)](_0x5e6453,_0x1af6b9);break;}case g[_0x1bb97c(0xdc)]['DeleteRangeMoveUpCommandId']:{_0x59b5b7=g[_0x1bb97c(0x118)](_0x5e6453,_0x1af6b9);break;}case g[_0x1bb97c(0xdc)][_0x1bb97c(0x197)]:{_0x59b5b7=g[_0x1bb97c(0x12c)](_0x5e6453,_0x1af6b9);break;}case g[_0x1bb97c(0xdc)][_0x1bb97c(0x2bf)]:{_0x59b5b7=g[_0x1bb97c(0x19f)](_0x5e6453,_0x1af6b9);break;}case g[_0x1bb97c(0xdc)][_0x1bb97c(0x263)]:{_0x59b5b7=g[_0x1bb97c(0x1f5)](_0x5e6453,_0x1af6b9);break;}case g[_0x1bb97c(0xdc)]['InsertRowCommandId']:{_0x59b5b7=g[_0x1bb97c(0x105)](_0x5e6453,_0x1af6b9);break;}case g[_0x1bb97c(0xdc)]['MoveRangeCommandId']:{_0x59b5b7=g[_0x1bb97c(0x177)](_0x5e6453,_0x1af6b9);break;}case g[_0x1bb97c(0xdc)][_0x1bb97c(0x17d)]:{_0x59b5b7=g['handleIRemoveCol'](_0x5e6453,_0x1af6b9);break;}case g[_0x1bb97c(0xdc)]['RemoveRowCommandId']:{_0x59b5b7=g[_0x1bb97c(0xfc)](_0x5e6453,_0x1af6b9);break;}}const _0x3a246a=g[_0x1bb97c(0x10f)](_0x59b5b7,_0x1af6b9),_0x2daa6f=this['cursorInfo'][_0x1bb97c(0x107)](_0x5970a7);if(_0x2daa6f&&_0x3a246a){const _0x513eac={..._0x2daa6f,'range':_0x3a246a};this[_0x1bb97c(0x186)]['set'](_0x5970a7,_0x513eac),_0x18ae6b(()=>{const _0x3da496=_0x1bb97c,_0xcad1db=this['_refRangeService'][_0x3da496(0x1b0)](_0x3a246a,_0x3e49de=>(_0xcad1db[_0x3da496(0x2c6)](),_0x1a4146(_0x3e49de,_0x5970a7,_0x579102,_0x3a246a)));_0x2a169d[_0x3da496(0xb9)](_0xcad1db);});}return{'redos':[],'undos':[]};};this[_0x146b84(0x186)][_0x146b84(0x176)]((_0x489390,_0x3c2852)=>{const _0x220936=_0x146b84,{range:_0x35c051,sheetID:_0x531976}=_0x489390,_0x233cff=this[_0x220936(0x184)][_0x220936(0x1b0)](_0x35c051,_0x3c378c=>(_0x233cff[_0x220936(0x2c6)](),_0x1a4146(_0x3c378c,_0x3c2852,_0x531976,_0x35c051)));_0x2a169d[_0x220936(0xb9)](_0x233cff);});};this[_0x220ccc(0x16d)](a[_0x220ccc(0x23a)](this[_0x220ccc(0x15f)][_0x220ccc(0x194)](()=>{_0x54015e();})));}['_toggleOnline'](){const _0x111eb9=_0x4729ad;var _0x420b12,_0x3306b9;if(this[_0x111eb9(0xaa)]=!0x0,((_0x420b12=this[_0x111eb9(0xec)][_0x111eb9(0x1ad)]())==null?void 0x0:_0x420b12[_0x111eb9(0x27b)]())!==this[_0x111eb9(0x11e)])return;const _0x1c7b6f=(_0x3306b9=this[_0x111eb9(0x170)][_0x111eb9(0x107)](g['SheetsSelectionsService'])[_0x111eb9(0xc2)]())==null?void 0x0:_0x3306b9[0x0],_0x5c62dc=this['_univerInstanceService'][_0x111eb9(0x1a6)](a[_0x111eb9(0x1a2)][_0x111eb9(0x17b)])['getActiveSheet']();_0x1c7b6f&&_0x5c62dc&&this[_0x111eb9(0x251)](_0x5c62dc['getSheetId'](),_0x1c7b6f);}[_0x4729ad(0x235)](){this['_online']=!0x1;}};Se=ft([A(0x2,a[_0x4729ad(0xaf)](a['Injector'])),A(0x3,a[_0x4729ad(0xaf)](Ce)),A(0x4,a['Inject'](u['MemberService'])),A(0x5,a[_0x4729ad(0x2bb)]),A(0x6,a[_0x4729ad(0xe2)]),A(0x7,a['Inject'](g['RefRangeService']))],Se);var mt=Object[_0x4729ad(0x2b4)],Ct=(_0x1a8571,_0x455bda,_0x5dcf84,_0x3a162f)=>{const _0x2cf4f5=_0x4729ad;for(var _0x6f8edc=_0x3a162f>0x1?void 0x0:_0x3a162f?mt(_0x455bda,_0x5dcf84):_0x455bda,_0x33ef1b=_0x1a8571[_0x2cf4f5(0x116)]-0x1,_0x2c96c2;_0x33ef1b>=0x0;_0x33ef1b--)(_0x2c96c2=_0x1a8571[_0x33ef1b])&&(_0x6f8edc=_0x2c96c2(_0x6f8edc)||_0x6f8edc);return _0x6f8edc;},ie=(_0x49c372,_0x238970)=>(_0x53c1a6,_0x2a85d0)=>_0x238970(_0x53c1a6,_0x2a85d0,_0x49c372);let x=class extends a[_0x4729ad(0x16f)]{constructor(_0x12726f,_0x335a65,_0x417af1){const _0x3716e5=_0x4729ad;super(),h(this,_0x3716e5(0x8e),new Map()),h(this,_0x3716e5(0x18d),new d[(_0x3716e5(0x7d))]()),(this[_0x3716e5(0xec)]=_0x12726f,this[_0x3716e5(0x170)]=_0x335a65,this[_0x3716e5(0x19c)]=_0x417af1,this[_0x3716e5(0x149)]());}[_0x4729ad(0x2c6)](){const _0x252f16=_0x4729ad;super[_0x252f16(0x2c6)](),this[_0x252f16(0x18d)][_0x252f16(0x2e6)](),this[_0x252f16(0x8e)][_0x252f16(0x176)](_0x26f63a=>_0x26f63a[_0x252f16(0x2c6)]());}[_0x4729ad(0x254)](_0xf26570){const _0x44fab6=_0x4729ad;return this['_entities'][_0x44fab6(0x11d)](_0xf26570)?this[_0x44fab6(0x8e)][_0x44fab6(0x107)](_0xf26570)[_0x44fab6(0x1de)]:this[_0x44fab6(0x18d)][_0x44fab6(0x138)](d['filter'](_0x18cf78=>_0x18cf78[_0x44fab6(0x11e)]===_0xf26570),d[_0x44fab6(0x85)](_0x31b4c5=>_0x31b4c5[_0x44fab6(0x1de)]));}[_0x4729ad(0x149)](){const _0x1085b7=_0x4729ad;this[_0x1085b7(0xec)][_0x1085b7(0xc9)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x1085b7(0x138)](d['takeUntil'](this[_0x1085b7(0x2af)]))['subscribe'](async _0x184111=>{const _0x1dca66=_0x1085b7,_0x1b9487=_0x184111['getUnitId'](),_0x1cf466=await this['_startSheetCollabCursor'](_0x1b9487);this[_0x1dca66(0x18d)][_0x1dca66(0x1fc)](_0x1cf466),this[_0x1dca66(0x8e)][_0x1dca66(0x1a3)](_0x1b9487,_0x1cf466);}),this[_0x1085b7(0xec)][_0x1085b7(0xc9)](a[_0x1085b7(0x1a2)]['UNIVER_DOC'])['pipe'](d[_0x1085b7(0x87)](this[_0x1085b7(0x2af)]))[_0x1085b7(0x138)](d['filter'](_0x20057c=>!_0x20057c[_0x1085b7(0x27b)]()[_0x1085b7(0x1d1)]('__')))[_0x1085b7(0x194)](async _0x47c965=>{const _0x3d27bd=_0x1085b7,_0x2bd787=_0x47c965[_0x3d27bd(0x27b)](),_0x20fc0a=await this[_0x3d27bd(0xa9)](_0x2bd787);this[_0x3d27bd(0x18d)][_0x3d27bd(0x1fc)](_0x20fc0a),this['_entities'][_0x3d27bd(0x1a3)](_0x2bd787,_0x20fc0a);}),d[_0x1085b7(0x97)](this['_univerInstanceService'][_0x1085b7(0x168)](a[_0x1085b7(0x1a2)][_0x1085b7(0x18e)]),this[_0x1085b7(0xec)][_0x1085b7(0x168)](a['UniverInstanceType'][_0x1085b7(0x17b)]))['pipe'](d['takeUntil'](this['dispose$']))[_0x1085b7(0x194)](_0x1118cc=>{const _0x46c14d=_0x1085b7,_0x5affbe=_0x1118cc['getUnitId'](),_0x1d4b5d=this[_0x46c14d(0x8e)][_0x46c14d(0x107)](_0x5affbe);_0x1d4b5d&&(_0x1d4b5d[_0x46c14d(0x2c6)](),this['_entities'][_0x46c14d(0x298)](_0x5affbe));});}async[_0x4729ad(0x2eb)](_0x160e60){const _0x45d9a5=_0x4729ad,_0x519537=await this['_collabSessionService'][_0x45d9a5(0x269)](_0x160e60),_0x4db4fc=this[_0x45d9a5(0x170)][_0x45d9a5(0x173)](Se,_0x160e60,_0x519537);return _0x4db4fc['init'](),_0x4db4fc;}async[_0x4729ad(0xa9)](_0x563053){const _0x24252a=_0x4729ad,_0xfdb8f0=await this['_collabSessionService'][_0x24252a(0x269)](_0x563053),_0x4de10c=this[_0x24252a(0x170)][_0x24252a(0x173)](de,_0x563053,_0xfdb8f0);return _0x4de10c['init'](),_0x4de10c;}};x=Ct([ie(0x0,a[_0x4729ad(0x2bb)]),ie(0x1,a['Inject'](a[_0x4729ad(0x98)])),ie(0x2,a[_0x4729ad(0xaf)](u[_0x4729ad(0x18a)]))],x);const W=0x14,Te=0xc8,ne=0x4,pt=0x5;function Et(_0x20a337,_0x446fe7){const _0x23976c=_0x4729ad;let {radius:_0x1d88e3,width:_0x2b649d,height:_0x948eda}=_0x446fe7;_0x1d88e3=_0x1d88e3!=null?_0x1d88e3:0x0,_0x2b649d=_0x2b649d!=null?_0x2b649d:0x1e,_0x948eda=_0x948eda!=null?_0x948eda:0x1e;let _0x358072=0x0,_0x5aaa9c=0x0,_0x16c98d=0x0;_0x358072=_0x5aaa9c=_0x16c98d=Math[_0x23976c(0x1d9)](_0x1d88e3,_0x2b649d/0x2,_0x948eda/0x2),_0x20a337[_0x23976c(0xfb)](),_0x20a337[_0x23976c(0x2a7)](_0x358072,0x0),_0x20a337[_0x23976c(0xb2)](_0x2b649d-_0x5aaa9c,0x0),_0x20a337[_0x23976c(0x208)](_0x2b649d-_0x5aaa9c,_0x5aaa9c,_0x5aaa9c,Math['PI']*0x3/0x2,0x0,!0x1),_0x20a337[_0x23976c(0xb2)](_0x2b649d,_0x948eda-_0x16c98d),_0x20a337[_0x23976c(0x208)](_0x2b649d-_0x16c98d,_0x948eda-_0x16c98d,_0x16c98d,0x0,Math['PI']/0x2,!0x1),_0x20a337[_0x23976c(0xb2)](0x0,_0x948eda),_0x20a337[_0x23976c(0xb2)](0x0,_0x358072),_0x20a337[_0x23976c(0x208)](_0x358072,_0x358072,_0x358072,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x20a337['closePath'](),_0x446fe7[_0x23976c(0x213)]&&(_0x20a337[_0x23976c(0x125)](),_0x20a337[_0x23976c(0x1ea)]=_0x446fe7['fill'],_0x446fe7['fillRule']==='evenodd'?_0x20a337[_0x23976c(0x213)](_0x23976c(0x17e)):_0x20a337['fill'](),_0x20a337['restore']());}class ee extends p[_0x4729ad(0xe8)]{constructor(_0x98f758,_0x18ec25){const _0x19c609=_0x4729ad;super(_0x98f758,_0x18ec25),h(this,_0x19c609(0x1d2)),h(this,_0x19c609(0x256)),(this[_0x19c609(0x1d2)]=_0x18ec25==null?void 0x0:_0x18ec25[_0x19c609(0x1d2)],this[_0x19c609(0x256)]=_0x18ec25==null?void 0x0:_0x18ec25[_0x19c609(0x256)]);}static[_0x4729ad(0x1ae)](_0x1fef83,_0x3ee243){const _0x5976a8=_0x4729ad,{text:_0xa24f19,color:_0x4e8f2a}=_0x3ee243;_0x1fef83[_0x5976a8(0x125)](),_0x1fef83[_0x5976a8(0x1bd)]=_0x5976a8(0x11a);const _0x869839=_0x1fef83['measureText'](_0xa24f19)[_0x5976a8(0xf8)],_0x3abca6=Math[_0x5976a8(0x1d9)](_0x869839+0x2*ne,Te);Et(_0x1fef83,{'height':W,'radius':0x4,'width':_0x3abca6,'fill':_0x4e8f2a}),_0x1fef83[_0x5976a8(0x1ea)]=_0x5976a8(0x26f);const _0x12c9f2=ne,_0x37f840=W-pt,_0xa36f97=Te-0x2*ne;if(_0x869839>_0xa36f97){let _0x49efdc='',_0x243bc7=0x0;for(const _0x5219c3 of _0xa24f19){const _0x278b45=_0x1fef83[_0x5976a8(0x20f)](_0x5219c3)[_0x5976a8(0xf8)];if(_0x243bc7+_0x278b45<=_0xa36f97-_0x1fef83[_0x5976a8(0x20f)](_0x5976a8(0x147))[_0x5976a8(0xf8)])_0x49efdc+=_0x5219c3,_0x243bc7+=_0x278b45;else{_0x49efdc+=_0x5976a8(0x147);break;}}_0x1fef83[_0x5976a8(0x258)](_0x49efdc,_0x12c9f2,_0x37f840);}else _0x1fef83[_0x5976a8(0x258)](_0xa24f19,_0x12c9f2,_0x37f840);_0x1fef83[_0x5976a8(0x22e)]();}[_0x4729ad(0x204)](_0x1f8d0f){const _0x29d540=_0x4729ad;ee[_0x29d540(0x1ae)](_0x1f8d0f,this);}}const re=_0x4729ad(0xc0),bt='collab-text-range-',Ot=_0x4729ad(0x74),F=0x6,Tt=1.5,oe=0x4,Rt=1.5,Dt='rgba(255,\x20255,\x20255,\x200.01)';class Re{constructor(_0x504d11,_0x440707,_0x418d4d,_0x3682af){const _0x4fed3b=_0x4729ad;h(this,'_shapes',[]),h(this,_0x4fed3b(0x25e),null),h(this,'_textBubble',null),h(this,'_anchorDot',null),h(this,_0x4fed3b(0x174),null),h(this,_0x4fed3b(0x268),null),(this[_0x4fed3b(0x114)]=_0x504d11,this['_scene']=_0x440707,this[_0x4fed3b(0x119)]=_0x418d4d,this[_0x4fed3b(0x84)]=_0x3682af,this[_0x4fed3b(0xd7)]());}set[_0x4729ad(0x20a)](_0x1b7e36){const _0x5d6701=_0x4729ad;_0x1b7e36?(this['_anchorDot']&&this[_0x5d6701(0x1e8)]['hide'](),this['_textBubble']&&this[_0x5d6701(0x158)]['show']()):(this[_0x5d6701(0x1e8)]&&this[_0x5d6701(0x1e8)]['show'](),this[_0x5d6701(0x158)]&&this[_0x5d6701(0x158)][_0x5d6701(0x154)]());}[_0x4729ad(0x2c6)](){const _0x1f5eef=_0x4729ad;for(const _0x1cd5e6 of this[_0x1f5eef(0x163)])_0x1cd5e6[_0x1f5eef(0x2c6)]();this['_textBubble']&&this[_0x1f5eef(0x158)][_0x1f5eef(0x2c6)](),this['_anchorDot']&&this[_0x1f5eef(0x1e8)][_0x1f5eef(0x2c6)](),this[_0x1f5eef(0x25e)]&&this['_anchor'][_0x1f5eef(0x2c6)](),this[_0x1f5eef(0x268)]&&this[_0x1f5eef(0x268)]();}['_render'](){const _0x51e630=_0x4729ad;var _0x5d002c;const {_docSkeleton:_0x536f2a,_document:_0x4aa8bf}=this,{color:_0x4a0e43,name:_0x192b6d,ranges:_0x41c3c0}=this[_0x51e630(0x114)],_0x1e177e=_0x4aa8bf['getOffsetConfig'](),{docsLeft:_0x3abad3,docsTop:_0x502fc1}=_0x1e177e,_0x23886d=new E[(_0x51e630(0xad))](_0x1e177e,_0x536f2a);for(const {startOffset:_0x4a15b1,endOffset:_0x3f6687,rangeType:_0xc8755d,segmentId:_0x197255,segmentPage:_0x56f1e2,collapsed:_0x391ec3,isActive:_0x324ab4}of _0x41c3c0){const _0xbf7c16=_0x536f2a[_0x51e630(0x1ba)](_0x4a15b1,!0x0,_0x197255,_0x56f1e2);let _0x56bd41=_0x536f2a['findNodePositionByCharIndex'](_0x3f6687,!0x0,_0x197255,_0x56f1e2);if(_0x56bd41==null&&(_0x56bd41=_0x536f2a['findNodePositionByCharIndex'](_0x3f6687-0x1,!0x1,_0x197255,_0x56f1e2)),_0x324ab4){const {contentBoxPointGroup:_0x31e985}=_0x23886d[_0x51e630(0x2ab)](_0x56bd41,_0x56bd41);if(_0x31e985[_0x51e630(0x116)]===0x0)continue;this[_0x51e630(0x266)](_0x4a0e43,_0x31e985,_0x3abad3,_0x502fc1,_0x192b6d),this['_eventUnsubscribe']=this[_0x51e630(0x7a)]();}if(_0xbf7c16&&_0x56bd41){if(_0xc8755d===a[_0x51e630(0x2a0)][_0x51e630(0xed)]){const _0x5781af=new E[(_0x51e630(0x1d4))](_0x1e177e,_0x536f2a),{pointGroup:_0x13de69}=(_0x5d002c=_0x5781af[_0x51e630(0x2ab)](_0xbf7c16,_0x56bd41))!=null?_0x5d002c:{};if(_0x13de69==null||_0x13de69[_0x51e630(0x116)]===0x0)continue;this['_drawRectRange'](_0x4a0e43,_0x13de69,_0x3abad3,_0x502fc1);}else{if(!_0x391ec3){const {borderBoxPointGroup:_0x310be0}=_0x23886d[_0x51e630(0x2ab)](_0xbf7c16,_0x56bd41);if(_0x310be0[_0x51e630(0x116)]===0x0)continue;this[_0x51e630(0x1be)](_0x4a0e43,_0x310be0,_0x3abad3,_0x502fc1);}}}}}[_0x4729ad(0x266)](_0x1ea35b,_0x3dd676,_0xd230a4,_0x2fb2c5,_0x383b10){const _0x51266e=_0x4729ad,_0xc2ad52=this[_0x51266e(0x8a)](_0x3dd676),{left:_0x56ef93,top:_0x53f480,height:_0x410b61}=_0xc2ad52,_0x5b93a7=this['_getScale'](),_0x500c59=Rt/_0x5b93a7,_0x1f3402=new p['Rect'](re+a[_0x51266e(0x18f)](F),{'left':_0x56ef93+_0xd230a4-_0x500c59,'top':_0x53f480+_0x2fb2c5,'height':_0x410b61,'width':Tt,'fill':_0x1ea35b||p[_0x51266e(0x25c)](a[_0x51266e(0x1bc)][_0x51266e(0x224)],0x0),'strokeWidth':_0x500c59,'stroke':Dt,'evented':!0x0});this[_0x51266e(0x25e)]=_0x1f3402,this['_scene'][_0x51266e(0x2e3)](_0x1f3402,E['TEXT_RANGE_LAYER_INDEX']);const _0x34178f=new p[(_0x51266e(0xb6))](re+a[_0x51266e(0x18f)](F),{'left':_0x56ef93+_0xd230a4-_0x500c59,'top':_0x53f480+_0x2fb2c5-oe/0x2,'height':oe,'width':oe,'fill':_0x1ea35b||p[_0x51266e(0x25c)](a['COLORS'][_0x51266e(0x224)],0x0),'strokeWidth':0x0,'stroke':_0x1ea35b||p[_0x51266e(0x25c)](a[_0x51266e(0x1bc)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x34178f,this[_0x51266e(0x26d)]['addObject'](_0x34178f,E[_0x51266e(0x21b)]);const _0x549637=new ee(re+a[_0x51266e(0x18f)](F),{'left':_0x56ef93+_0xd230a4-_0x500c59,'top':_0x53f480+_0x2fb2c5-W,'text':_0x383b10,'color':_0x1ea35b});this['_textBubble']=_0x549637,this['_scene'][_0x51266e(0x2e3)](_0x549637,E['TEXT_RANGE_LAYER_INDEX']),this[_0x51266e(0x20a)]=!0x1;}[_0x4729ad(0x7a)](){const _0x5334b5=_0x4729ad,_0x4d0e72=this[_0x5334b5(0x25e)][_0x5334b5(0xd2)]['subscribeEvent'](()=>{const _0x482fd8=_0x5334b5;this[_0x482fd8(0x20a)]=!0x0;}),_0x5a4f1d=this[_0x5334b5(0x25e)]['onPointerLeave$'][_0x5334b5(0xc1)](()=>{const _0x5eb718=_0x5334b5;this[_0x5eb718(0x174)]&&clearTimeout(this[_0x5eb718(0x174)]),this[_0x5eb718(0x174)]=setTimeout(()=>{const _0x1a3c82=_0x5eb718;this[_0x1a3c82(0x20a)]=!0x1;},0x7d0);});return()=>{const _0x3d5e44=_0x5334b5;_0x4d0e72[_0x3d5e44(0x2ba)](),_0x5a4f1d[_0x3d5e44(0x2ba)]();};}[_0x4729ad(0x1be)](_0x3a01a3,_0xe17c14,_0xb20bbf,_0x2b5ce0){const _0x3f45a6=_0x4729ad,_0xd159fa=new a[(_0x3f45a6(0x215))](_0x3a01a3)[_0x3f45a6(0x25a)](0.2)[_0x3f45a6(0x276)](),_0x419b5d=new p[(_0x3f45a6(0x131))](bt+a[_0x3f45a6(0x18f)](F),{'pointsGroup':_0xe17c14,'fill':_0xd159fa||p[_0x3f45a6(0x25c)](a[_0x3f45a6(0x1bc)][_0x3f45a6(0x224)],0.2),'left':_0xb20bbf,'top':_0x2b5ce0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3f45a6(0x163)][_0x3f45a6(0x1ef)](_0x419b5d),this[_0x3f45a6(0x26d)][_0x3f45a6(0x2e3)](_0x419b5d,E[_0x3f45a6(0x21b)]);}[_0x4729ad(0x15e)](_0x4cade0,_0x2fd5a7,_0x1f81e6,_0x264884){const _0x3f4db4=_0x4729ad,_0x3c3070=new a[(_0x3f4db4(0x215))](_0x4cade0)[_0x3f4db4(0x25a)](0.2)['toRgbString'](),_0x23c170=new p['RegularPolygon'](Ot+a[_0x3f4db4(0x18f)](F),{'pointsGroup':_0x2fd5a7,'fill':_0x3c3070||p['getColor'](a[_0x3f4db4(0x1bc)][_0x3f4db4(0x224)],0.2),'left':_0x1f81e6,'top':_0x264884,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3f4db4(0x163)]['push'](_0x23c170),this[_0x3f4db4(0x26d)][_0x3f4db4(0x2e3)](_0x23c170,E[_0x3f4db4(0x21b)]);}['_getAnchorBounding'](_0x46eb16){const _0x31b1b0=_0x46eb16[0x0],_0xe75966=_0x31b1b0[0x0],_0x2de5b5=_0x31b1b0[0x2],{x:_0x1ee180,y:_0x4eba92}=_0xe75966,{x:_0x131de6,y:_0xb7b0d8}=_0x2de5b5;return{'left':_0x1ee180,'top':_0x4eba92,'width':_0x131de6-_0x1ee180,'height':_0xb7b0d8-_0x4eba92};}[_0x4729ad(0x7f)](){const _0x1b8a40=_0x4729ad,{scaleX:_0x18114b,scaleY:_0x53a2c0}=this[_0x1b8a40(0x26d)][_0x1b8a40(0x20c)]();return Math['max'](_0x18114b,_0x53a2c0);}}var Ut=Object[_0x4729ad(0x2b4)],Nt=(_0x3b321c,_0x23a655,_0x130633,_0x598573)=>{const _0x11b2bc=_0x4729ad;for(var _0x24c9ff=_0x598573>0x1?void 0x0:_0x598573?Ut(_0x23a655,_0x130633):_0x23a655,_0xeded71=_0x3b321c[_0x11b2bc(0x116)]-0x1,_0x10befd;_0xeded71>=0x0;_0xeded71--)(_0x10befd=_0x3b321c[_0xeded71])&&(_0x24c9ff=_0x10befd(_0x24c9ff)||_0x24c9ff);return _0x24c9ff;},X=(_0x3f9c78,_0x3a7ab6)=>(_0x42fcd7,_0x289936)=>_0x3a7ab6(_0x42fcd7,_0x289936,_0x3f9c78);let fe=class extends a[_0x4729ad(0x16f)]{constructor(_0x143ca8,_0x52541c,_0x2fc99d,_0x57bab5,_0x2af81d){const _0x4d9eab=_0x4729ad;super(),h(this,'_cursorShapes',[]),h(this,'_cursors',[]),(this['_context']=_0x143ca8,this[_0x4d9eab(0x12e)]=_0x52541c,this[_0x4d9eab(0x255)]=_0x2fc99d,this[_0x4d9eab(0xcf)]=_0x57bab5,this[_0x4d9eab(0x16c)]=_0x2af81d,this['_init']());}[_0x4729ad(0x149)](){const _0x2da7ee=_0x4729ad,_0x24cf4e=this['_context']['unitId'],_0x356c2d=this[_0x2da7ee(0x12e)];this[_0x2da7ee(0x16d)](d[_0x2da7ee(0x77)]([this[_0x2da7ee(0x255)][_0x2da7ee(0x254)](_0x24cf4e),this['_themeService'][_0x2da7ee(0x236)]])[_0x2da7ee(0x138)]($[_0x2da7ee(0x29f)](([_0x344cfd,_0x3df683])=>({'skeleton':_0x356c2d['getSkeleton'](),'cursors':[..._0x344cfd['values']()][_0x2da7ee(0x117)](_0x52b147=>({..._0x52b147,'color':this['_themeService']['getColorFromTheme'](_0x52b147[_0x2da7ee(0x1d2)])}))})))[_0x2da7ee(0x194)](_0x4fffd8=>{const _0x2086e9=_0x2da7ee;if(this[_0x2086e9(0x23e)](),_0x4fffd8){const {skeleton:_0x44ae90,cursors:_0x1d42b}=_0x4fffd8;this[_0x2086e9(0x112)](_0x44ae90,_0x1d42b);}})),this['_initResize'](),this[_0x2da7ee(0x1df)]();}[_0x4729ad(0x112)](_0x7453ef,_0x53c839){const _0x42e10e=_0x4729ad,{scene:_0x19c864,mainComponent:_0x27f7df}=this[_0x42e10e(0x134)],_0x1ceebf=_0x53c839[_0x42e10e(0x29f)](_0x9abfe=>new Re(_0x9abfe,_0x19c864,_0x7453ef,_0x27f7df));this['_cursorShapes']=_0x1ceebf,this[_0x42e10e(0x104)]=_0x53c839;}[_0x4729ad(0x146)](){const _0x18c23d=_0x4729ad;this['_removeCollabCursors']();const {scene:_0x18c87c,mainComponent:_0x5d0b24}=this['_context'],_0x39fc3d=this[_0x18c23d(0x12e)][_0x18c23d(0x21e)](),_0x2c55e7=this[_0x18c23d(0x104)][_0x18c23d(0x29f)](_0x3c6a2e=>new Re(_0x3c6a2e,_0x18c87c,_0x39fc3d,_0x5d0b24));this['_cursorShapes']=_0x2c55e7;}[_0x4729ad(0x23e)](){const _0x58296a=_0x4729ad;this[_0x58296a(0xde)][_0x58296a(0x176)](_0x22957a=>_0x22957a[_0x58296a(0x2c6)]()),this[_0x58296a(0xde)]=[];}['_initCommandExecutedListener'](){const _0x4cd7d3=_0x4729ad,_0x1d6f30=[E['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this['_commandService'][_0x4cd7d3(0x2e2)](_0x5941a4=>{const _0x5bcef9=_0x4cd7d3;_0x1d6f30[_0x5bcef9(0x1f2)](_0x5941a4['id'])&&_0x5941a4[_0x5bcef9(0x94)][_0x5bcef9(0x10b)]===this['_context'][_0x5bcef9(0x10b)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x345105=_0x4729ad;this['disposeWithMe'](a[_0x345105(0x211)](this['_context']['engine'][_0x345105(0x1bb)])[_0x345105(0x138)]($['filter'](_0x13e990=>_0x13e990['type']===p[_0x345105(0x175)]['resize']),$[_0x345105(0x24a)](0x10))[_0x345105(0x194)](()=>{const _0x1d0e32=_0x345105;this[_0x1d0e32(0x146)]();}));}};fe=Nt([X(0x1,a['Inject'](Y['DocSkeletonManagerService'])),X(0x2,a['Inject'](x)),X(0x3,a[_0x4729ad(0xe2)]),X(0x4,a['Inject'](a[_0x4729ad(0x109)]))],fe);const Mt=0x1,Lt=1.5;class $e extends p[_0x4729ad(0xe8)]{constructor(_0x2e07c8,_0xda2974){const _0x48016b=_0x4729ad;super(_0x2e07c8,_0xda2974),h(this,'_color'),h(this,_0x48016b(0x23c),!0x1),h(this,'_range'),h(this,'_name',''),h(this,_0x48016b(0x193),'top'),h(this,_0x48016b(0x111)),(_0xda2974&&this[_0x48016b(0x21f)](_0xda2974),this[_0x48016b(0xd2)][_0x48016b(0xc1)](()=>this[_0x48016b(0x21f)]({'hovered':!0x0})),this['onPointerLeave$'][_0x48016b(0xc1)](()=>this[_0x48016b(0x21f)]({'hovered':!0x1})));}[_0x4729ad(0x21f)](_0x506142){const _0x3d8f63=_0x4729ad;var _0x598f76,_0x27eda1,_0x166a4e,_0x54e844,_0x2aa73a,_0x597c88;this[_0x3d8f63(0x2ad)]=(_0x598f76=_0x506142[_0x3d8f63(0x1d2)])!=null?_0x598f76:this[_0x3d8f63(0x2ad)],this['_hovered']=(_0x27eda1=_0x506142[_0x3d8f63(0x185)])!=null?_0x27eda1:this[_0x3d8f63(0x23c)],this[_0x3d8f63(0x2c1)]=(_0x166a4e=_0x506142[_0x3d8f63(0xba)])!=null?_0x166a4e:this['_range'],this[_0x3d8f63(0x8c)]=(_0x54e844=_0x506142[_0x3d8f63(0xfe)])!=null?_0x54e844:this[_0x3d8f63(0x8c)],this[_0x3d8f63(0x193)]=(_0x2aa73a=_0x506142['labelPosition'])!=null?_0x2aa73a:this[_0x3d8f63(0x193)],this[_0x3d8f63(0x111)]=(_0x597c88=_0x506142['backgroundColor'])!=null?_0x597c88:this[_0x3d8f63(0x111)],this[_0x3d8f63(0x72)]({'width':_0x506142[_0x3d8f63(0xf8)],'height':_0x506142['height']});}[_0x4729ad(0x2a3)](_0x3c8c3c){const _0x242be3=_0x4729ad,{row:_0x503638,column:_0x5bf8dd}=_0x3c8c3c;if(_0x503638>=this[_0x242be3(0x2c1)][_0x242be3(0x89)]&&_0x503638<=this['_range']['endRow']&&_0x5bf8dd>=this[_0x242be3(0x2c1)][_0x242be3(0x27c)]&&_0x5bf8dd<=this[_0x242be3(0x2c1)][_0x242be3(0x232)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x242be3(0x21f)]({'hovered':!0x1});}['triggerDblclick'](_0x4e67b3){return!0x1;}[_0x4729ad(0x204)](_0x32198c){const _0x44307e=_0x4729ad;p['Rect'][_0x44307e(0x1ae)](_0x32198c,{'width':this['width'],'height':this[_0x44307e(0x133)],'strokeWidth':Lt,'stroke':this[_0x44307e(0x2ad)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x44307e(0x23c)]&&(_0x32198c[_0x44307e(0x125)](),_0x32198c[_0x44307e(0x23b)](0x1,0x0,0x0,0x1,this['width'],this[_0x44307e(0x193)]===_0x44307e(0x140)?0x0:-W),ee[_0x44307e(0x1ae)](_0x32198c,{'text':this[_0x44307e(0x8c)],'color':this[_0x44307e(0x2ad)]}),_0x32198c[_0x44307e(0x22e)]());}}var Pt=Object[_0x4729ad(0x2b4)],wt=(_0x16d3c2,_0x418aed,_0x153465,_0xad63f0)=>{const _0x2c702b=_0x4729ad;for(var _0x54a58f=_0xad63f0>0x1?void 0x0:_0xad63f0?Pt(_0x418aed,_0x153465):_0x418aed,_0x4bc7d0=_0x16d3c2[_0x2c702b(0x116)]-0x1,_0x8849c3;_0x4bc7d0>=0x0;_0x4bc7d0--)(_0x8849c3=_0x16d3c2[_0x4bc7d0])&&(_0x54a58f=_0x8849c3(_0x54a58f)||_0x54a58f);return _0x54a58f;},ae=(_0x49343f,_0x2785b4)=>(_0x31bef6,_0x10503b)=>_0x2785b4(_0x31bef6,_0x10503b,_0x49343f);const At=0x1389;let Ie=class extends a['RxDisposable']{constructor(_0x4e357b,_0x40633f,_0xd567cd,_0x26417c){const _0xf880a2=_0x4729ad;super(),h(this,_0xf880a2(0x104),new Set()),h(this,_0xf880a2(0x1d0),null),(this['_context']=_0x4e357b,this[_0xf880a2(0x295)]=_0x40633f,this[_0xf880a2(0x255)]=_0xd567cd,this[_0xf880a2(0x16c)]=_0x26417c,this[_0xf880a2(0x149)]());}[_0x4729ad(0x149)](){const _0x51c11d=_0x4729ad;this['_sheetSkeletonManagerService'][_0x51c11d(0xeb)]['pipe']($[_0x51c11d(0x87)](this[_0x51c11d(0x2af)]),$[_0x51c11d(0x85)](_0x552421=>{const _0x349fdc=_0x51c11d;if(_0x552421){const _0x37ac46=_0x552421['sheetId'];return d[_0x349fdc(0x77)](this[_0x349fdc(0x255)][_0x349fdc(0x254)](this[_0x349fdc(0x134)][_0x349fdc(0x10b)]),this[_0x349fdc(0x16c)][_0x349fdc(0x236)])[_0x349fdc(0x138)]($[_0x349fdc(0x29f)](([_0x2e6280,_0x4a87f2])=>{const _0x386a3d=_0x349fdc,_0x4107a9=new Map();return _0x2e6280[_0x386a3d(0x176)]((_0x503344,_0x468077)=>{const _0x171c95=_0x386a3d;if(_0x503344[_0x171c95(0x2e4)]===_0x37ac46){const _0x360c48={..._0x503344};_0x360c48['color']=this[_0x171c95(0x16c)][_0x171c95(0xdd)](_0x503344['color']),_0x4107a9[_0x171c95(0x1a3)](_0x468077,_0x360c48);}}),{'skeleton':_0x552421,'cursors':_0x4107a9};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x51c11d(0x194)](({skeleton:_0x59f6f7,cursors:_0x4f0523})=>{const _0x3f4aa1=_0x51c11d;this['_removeCollabCursors'](),_0x59f6f7&&this[_0x3f4aa1(0x112)](_0x59f6f7,_0x4f0523);}),this[_0x51c11d(0x295)][_0x51c11d(0xeb)][_0x51c11d(0x194)](_0x3a4ea9=>{const _0x4d3662=_0x51c11d;if(_0x3a4ea9==null)return;const {skeleton:_0x4db598}=_0x3a4ea9,{scene:_0x11b450}=this[_0x4d3662(0x134)];_0x11b450[_0x4d3662(0x203)]['subscribeEvent'](a['debounce'](_0x3c8f8f=>{const _0x1f1b19=_0x4d3662;var _0xe756af,_0x56dbf3;const {offsetX:_0x2b90a0,offsetY:_0x3b8ea2}=_0x3c8f8f,{x:_0x2cf9d9,y:_0x4adcfc}=_0x11b450[_0x1f1b19(0x1b4)](p[_0x1f1b19(0x121)][_0x1f1b19(0x1d3)]([_0x2b90a0,_0x3b8ea2])),{scaleX:_0x2a4bdb,scaleY:_0x3c9723}=_0x11b450[_0x1f1b19(0x20c)](),_0x4b690d=_0x11b450['getViewport'](p[_0x1f1b19(0x1e0)][_0x1f1b19(0x220)]),_0xa45809=_0x11b450[_0x1f1b19(0x73)](p[_0x1f1b19(0x121)]['FromArray']([_0x2cf9d9,_0x4adcfc]),_0x4b690d),_0x3f48ab=_0x4db598[_0x1f1b19(0x279)](_0x2b90a0,_0x3b8ea2,_0x2a4bdb,_0x3c9723,_0xa45809);((_0xe756af=this[_0x1f1b19(0x1d0)])==null?void 0x0:_0xe756af[_0x1f1b19(0x239)])===_0x3f48ab['column']&&((_0x56dbf3=this['_lastPointer'])==null?void 0x0:_0x56dbf3[_0x1f1b19(0xb5)])===_0x3f48ab[_0x1f1b19(0xb5)]||this[_0x1f1b19(0x104)][_0x1f1b19(0x176)](_0x2b695e=>{_0x2b695e['onMouseMove'](_0x3f48ab);});},0x64));});}['_updateCollabCursors'](_0x4b1be9,_0x3d7e03){const _0x4f0f8a=_0x4729ad;var _0xb30f3b;const _0x2f0c11=(_0xb30f3b=this[_0x4f0f8a(0x295)]['getCurrent']())==null?void 0x0:_0xb30f3b[_0x4f0f8a(0x28f)];if(!_0x2f0c11)return;const _0x17ea4a=this['_getSheetObject']();if(!_0x17ea4a)return;this[_0x4f0f8a(0x104)][_0x4f0f8a(0x176)](_0x31423a=>{_0x31423a['makeDirty']();});const {scene:_0x309c0d}=_0x17ea4a,_0x261373=yt(Array[_0x4f0f8a(0xf7)](_0x3d7e03[_0x4f0f8a(0x18c)]()))[_0x4f0f8a(0x29f)](_0x112260=>{const _0x6bcf87=_0x4f0f8a,{color:_0x5d2073,range:_0x494af5,name:_0x2412b7,selection:_0x57e5e4,sheetID:_0x1739e0}=_0x112260,{startColumn:_0x3c4834,startRow:_0x3871db,endColumn:_0x5c1abf,endRow:_0x357ba0}=_0x494af5,_0x2f39bb=G[_0x6bcf87(0x2a2)](_0x3871db,_0x3c4834,_0x309c0d,_0x2f0c11),_0x53e2f4=G[_0x6bcf87(0x2a2)](_0x357ba0,_0x5c1abf,_0x309c0d,_0x2f0c11),{columnHeaderHeightAndMarginTop:_0x3105f2}=_0x2f0c11,{startX:_0x410546,startY:_0x1034db}=_0x2f39bb,{endX:_0x181559,endY:_0x433353}=_0x53e2f4,_0x22af29=_0x181559-_0x410546,_0x59c8e4=_0x433353-_0x1034db,_0x3f24df={'labelPosition':_0x1034db-_0x3105f2>=W?_0x6bcf87(0x12a):'bottom','sheetID':_0x1739e0,'range':_0x494af5,'color':_0x5d2073,'name':_0x2412b7,'selection':_0x57e5e4,'left':_0x410546,'top':_0x1034db,'width':_0x22af29,'height':_0x59c8e4,'evented':!0x1,'zIndex':At};return new $e(_0x2412b7,_0x3f24df);});_0x309c0d[_0x4f0f8a(0xf4)](_0x261373,Mt),this['_cursors']=new Set(_0x261373);}['_removeCollabCursors'](){const _0x3e7895=_0x4729ad;var _0xbf630f;(_0xbf630f=this[_0x3e7895(0x104)])==null||_0xbf630f[_0x3e7895(0x176)](_0x1cda50=>_0x1cda50[_0x3e7895(0x2c6)]());}[_0x4729ad(0x155)](){const _0x17baa5=_0x4729ad;return G[_0x17baa5(0x231)](this[_0x17baa5(0x134)]['unit'],this[_0x17baa5(0x134)]);}};Ie=wt([ae(0x1,a[_0x4729ad(0xaf)](G['SheetSkeletonManagerService'])),ae(0x2,a[_0x4729ad(0xaf)](x)),ae(0x3,a[_0x4729ad(0xaf)](a['ThemeService']))],Ie);function yt(_0x59d6c9){const _0x8ce49e=new Map();return _0x59d6c9['forEach'](_0x13d35e=>{const _0x5d6694=_0x46c6;if(_0x8ce49e[_0x5d6694(0x11d)](_0x13d35e[_0x5d6694(0x18b)])){const _0x32b782=_0x8ce49e[_0x5d6694(0x107)](_0x13d35e['selection']);_0x32b782['name']+=',\x20'+_0x13d35e[_0x5d6694(0xfe)];}else _0x8ce49e['set'](_0x13d35e[_0x5d6694(0x18b)],_0x13d35e);}),Array['from'](_0x8ce49e['values']());}var $t=Object[_0x4729ad(0x2b4)],xt=(_0x3765fb,_0x51fe69,_0x2e3ad3,_0x1262a3)=>{const _0x36c031=_0x4729ad;for(var _0x51c406=_0x1262a3>0x1?void 0x0:_0x1262a3?$t(_0x51fe69,_0x2e3ad3):_0x51fe69,_0x300efe=_0x3765fb[_0x36c031(0x116)]-0x1,_0x421279;_0x300efe>=0x0;_0x300efe--)(_0x421279=_0x3765fb[_0x300efe])&&(_0x51c406=_0x421279(_0x51c406)||_0x51c406);return _0x51c406;},y=(_0xcbaad6,_0x30efbd)=>(_0x100d99,_0x2e985b)=>_0x30efbd(_0x100d99,_0x2e985b,_0xcbaad6);let q=class extends a[_0x4729ad(0x16e)]{constructor(_0x47f6a3,_0x5bb680,_0x3059cf,_0x5ee348,_0x5c2925,_0x1855dd){const _0x505005=_0x4729ad;super(),this[_0x505005(0x82)]=_0x47f6a3,this[_0x505005(0xe6)]=_0x5bb680,this[_0x505005(0x1b1)]=_0x3059cf,this['_messageService']=_0x5ee348,this[_0x505005(0x1e4)]=_0x5c2925,this[_0x505005(0x8d)]=_0x1855dd,this[_0x505005(0x196)](),this[_0x505005(0x199)]();}['_setupBeforeClosingHandler'](){const _0x167a62=_0x4729ad;this['disposeWithMe'](this['_beforeCloseService'][_0x167a62(0x1b3)](()=>{const _0x3fffd2=_0x167a62;if(this[_0x3fffd2(0xe6)]['saveTaskMap'][_0x3fffd2(0xd1)])return this[_0x3fffd2(0x8d)]['t'](_0x3fffd2(0x2e5));}));}[_0x4729ad(0x199)](){const _0x52a5e2=_0x4729ad;this[_0x52a5e2(0x16d)](this[_0x52a5e2(0x1b1)][_0x52a5e2(0x257)][_0x52a5e2(0x194)](_0x103bb0=>{const _0x208673=_0x52a5e2;_0x103bb0['id']===u[_0x208673(0x227)][_0x208673(0x7b)]&&this[_0x208673(0x13e)][_0x208673(0xf0)]({'type':D[_0x208673(0x29b)][_0x208673(0x1cd)],'content':this['_localeService']['t'](_0x208673(0x253))}),_0x103bb0['id']===u[_0x208673(0x227)][_0x208673(0x101)]&&this[_0x208673(0x13e)][_0x208673(0xf0)]({'type':D[_0x208673(0x29b)][_0x208673(0x1cd)],'content':this[_0x208673(0x8d)]['t'](_0x208673(0xb8))}),_0x103bb0['id']===u['CollaborationUIEventId'][_0x208673(0x108)]&&this[_0x208673(0x1e4)][_0x208673(0xf0)]({'title':this['_localeService']['t'](_0x208673(0xc6)),'content':this[_0x208673(0x8d)]['t'](_0x208673(0x2db)),'type':'error','duration':0x0}),_0x103bb0['id']===u['CollaborationUIEventId'][_0x208673(0x17a)]&&this[_0x208673(0x13e)][_0x208673(0xf0)]({'type':D[_0x208673(0x29b)]['Error'],'content':this[_0x208673(0x8d)]['t'](_0x208673(0xb8))+'('+_0x103bb0[_0x208673(0x285)]+')'}),_0x103bb0['id']===u[_0x208673(0x227)]['JOIN_ROOM_FAILED']&&this['_messageService'][_0x208673(0xf0)]({'type':D[_0x208673(0x29b)][_0x208673(0x1cd)],'content':this[_0x208673(0x8d)]['t'](_0x103bb0[_0x208673(0x285)]||'')}),_0x103bb0['id']===u[_0x208673(0x227)][_0x208673(0x2b3)]&&this[_0x208673(0x13e)][_0x208673(0xf0)]({'type':D[_0x208673(0x29b)][_0x208673(0x1cd)],'content':this['_localeService']['t'](_0x208673(0x278))}),_0x103bb0['id']===u[_0x208673(0x227)][_0x208673(0x2b8)]&&this[_0x208673(0x13e)]['show']({'type':D[_0x208673(0x29b)][_0x208673(0x81)],'content':this[_0x208673(0x8d)]['t'](_0x208673(0x270))}),_0x103bb0['id']===u['CollaborationUIEventId'][_0x208673(0xd6)]&&this[_0x208673(0x13e)][_0x208673(0xf0)]({'type':D['MessageType'][_0x208673(0x81)],'content':this[_0x208673(0x8d)]['t'](_0x208673(0xb4))});}));}};q=xt([y(0x0,O[_0x4729ad(0x91)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x4729ad(0xaf)](u['CollaborationUIEventService'])),y(0x3,O[_0x4729ad(0x273)]),y(0x4,O[_0x4729ad(0x21a)]),y(0x5,a['Inject'](a[_0x4729ad(0x24e)]))],q);const Bt=_0x4729ad(0x157),De={};var jt=Object[_0x4729ad(0x2b4)],kt=(_0x35900f,_0x511c03,_0x1eac80,_0x1ec540)=>{const _0x5a1743=_0x4729ad;for(var _0x56aeeb=_0x1ec540>0x1?void 0x0:_0x1ec540?jt(_0x511c03,_0x1eac80):_0x511c03,_0x61bc82=_0x35900f[_0x5a1743(0x116)]-0x1,_0x5aa2f0;_0x61bc82>=0x0;_0x61bc82--)(_0x5aa2f0=_0x35900f[_0x61bc82])&&(_0x56aeeb=_0x5aa2f0(_0x56aeeb)||_0x56aeeb);return _0x56aeeb;},Ue=(_0x43464f,_0x3ca993)=>(_0x4abf02,_0x2efaef)=>_0x3ca993(_0x4abf02,_0x2efaef,_0x43464f);let z=class{constructor(_0x132c15,_0x3e84df){const _0x4d2ab7=_0x4729ad;this[_0x4d2ab7(0x11b)]=_0x132c15,this[_0x4d2ab7(0x22c)]=_0x3e84df;}['transformIMECache'](_0x23f9ec){const _0x26609e=_0x4729ad;this[_0x26609e(0xf6)](_0x23f9ec),this[_0x26609e(0x88)](_0x23f9ec);}['transformRemoteChangeset'](_0x4ed300){const _0x37be8f=_0x4729ad,{unitID:_0x2bd115}=_0x4ed300,_0x5f247d=this['_renderManagerService'][_0x37be8f(0x9c)](_0x2bd115)[_0x37be8f(0x15b)](E[_0x37be8f(0x75)]),{redoCache:_0x42d2e9}=_0x5f247d[_0x37be8f(0x148)]();if(_0x42d2e9[_0x37be8f(0x116)]===0x0)return _0x4ed300;let _0x17c114=a['Tools'][_0x37be8f(0x22b)](_0x4ed300[_0x37be8f(0xe5)][0x0]);for(let _0x55bf41=0x0;_0x55bf41<_0x42d2e9[_0x37be8f(0x116)];_0x55bf41++){const _0x327f5c={'id':_0x37be8f(0x281),'params':{..._0x42d2e9[_0x55bf41]}},_0x5cd4ea=this['_transformService'][_0x37be8f(0x179)](_0x17c114,_0x327f5c,!0x1);if(m[_0x37be8f(0x1b7)](_0x5cd4ea))throw _0x5cd4ea[_0x37be8f(0x217)];_0x17c114=_0x5cd4ea[_0x37be8f(0xa2)];}return{...a[_0x37be8f(0x12d)][_0x37be8f(0x22b)](_0x4ed300),'mutations':[_0x17c114]};}['_transformUndoRedoStack'](_0x2dbc7e){const _0x53a14f=_0x4729ad,{unitID:_0x153105}=_0x2dbc7e,_0x55dd42=this['_renderManagerService'][_0x53a14f(0x9c)](_0x153105)[_0x53a14f(0x15b)](E['DocIMEInputManagerService']),{undoCache:_0x41f3d6,redoCache:_0x237e63}=_0x55dd42[_0x53a14f(0x148)]();if(_0x41f3d6[_0x53a14f(0x116)]===0x0||_0x237e63[_0x53a14f(0x116)]===0x0)return;const _0x16e08e=[],_0x4eb719=[];let _0x3c75b9=a['Tools']['deepClone'](_0x2dbc7e[_0x53a14f(0xe5)][0x0]),_0x10d27e=a[_0x53a14f(0x12d)]['deepClone'](_0x2dbc7e[_0x53a14f(0xe5)][0x0]);for(let _0x5353dd=_0x41f3d6[_0x53a14f(0x116)]-0x1;_0x5353dd>=0x0;_0x5353dd--){const _0x5c62c7={'id':_0x53a14f(0x281),'params':{..._0x41f3d6[_0x5353dd]}},_0x1975ed={'id':_0x53a14f(0x281),'params':{..._0x237e63[_0x5353dd]}},_0x7459d2=this[_0x53a14f(0x11b)][_0x53a14f(0x179)](_0x3c75b9,_0x5c62c7,!0x1),_0x495af4=this[_0x53a14f(0x11b)][_0x53a14f(0x179)](_0x10d27e,_0x1975ed,!0x1);if(m[_0x53a14f(0x1b7)](_0x7459d2))throw _0x7459d2['error'];if(m['isTransformMutationFailure'](_0x495af4))throw _0x495af4[_0x53a14f(0x217)];_0x16e08e[_0x53a14f(0x24b)](_0x7459d2[_0x53a14f(0x291)][_0x53a14f(0x94)]),_0x4eb719[_0x53a14f(0x24b)](_0x495af4[_0x53a14f(0x291)][_0x53a14f(0x94)]),_0x3c75b9=_0x7459d2['m1Prime'],_0x10d27e=_0x495af4[_0x53a14f(0xa2)];}_0x55dd42[_0x53a14f(0x237)]({'undoCache':_0x16e08e,'redoCache':_0x4eb719});}[_0x4729ad(0x88)](_0x2ccfae){const _0x5b492a=_0x4729ad,{unitID:_0x473970}=_0x2ccfae,_0x17fa54=this[_0x5b492a(0x22c)]['getRenderById'](_0x473970)['with'](E[_0x5b492a(0x75)]),_0x4bfd82=_0x17fa54[_0x5b492a(0x90)]();if(_0x4bfd82==null)return;const _0xaf486b=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2ccfae[_0x5b492a(0x11e)],'actions':null,'textRanges':[_0x4bfd82]}}],_0x3f069c=this[_0x5b492a(0x11b)]['transformMutationsWithChangeset'](_0x2ccfae,_0xaf486b);if(!m[_0x5b492a(0x1f9)](_0x3f069c))throw _0x3f069c['error'];const _0x2739ad=_0x3f069c[_0x5b492a(0x291)][0x0][_0x5b492a(0x94)][_0x5b492a(0x2de)];Array[_0x5b492a(0x1dc)](_0x2739ad)&&_0x2739ad[_0x5b492a(0x116)]&&_0x17fa54[_0x5b492a(0x1ee)](_0x2739ad[0x0]);}};z=kt([Ue(0x0,m['ITransformService']),Ue(0x1,p['IRenderManagerService'])],z);var Ft=Object['getOwnPropertyDescriptor'],Ht=(_0x138224,_0x53fc09,_0xd85746,_0x585cc6)=>{const _0x3ca1e1=_0x4729ad;for(var _0x7dd1a6=_0x585cc6>0x1?void 0x0:_0x585cc6?Ft(_0x53fc09,_0xd85746):_0x53fc09,_0x357fcd=_0x138224[_0x3ca1e1(0x116)]-0x1,_0x4847e0;_0x357fcd>=0x0;_0x357fcd--)(_0x4847e0=_0x138224[_0x357fcd])&&(_0x7dd1a6=_0x4847e0(_0x7dd1a6)||_0x7dd1a6);return _0x7dd1a6;},ce=(_0x101a82,_0x38ffa6)=>(_0x2a7f8c,_0x4937ae)=>_0x38ffa6(_0x2a7f8c,_0x4937ae,_0x101a82);let J=class{constructor(_0x26335c,_0x55a316,_0x2383d9){const _0x1c0cc9=_0x4729ad;this[_0x1c0cc9(0x170)]=_0x26335c,this[_0x1c0cc9(0x11b)]=_0x55a316,this[_0x1c0cc9(0xa7)]=_0x2383d9;}[_0x4729ad(0x1b9)](_0x37d92d){const _0x2e402d=_0x4729ad;this[_0x2e402d(0x210)](_0x37d92d);}['transformRemoteChangeset'](_0x406c5f){const _0x1702b7=_0x4729ad,{unitID:_0xc0981a}=_0x406c5f,{collaboration:_0x2352e9}=this[_0x1702b7(0xa7)][_0x1702b7(0x10c)](_0xc0981a);if(_0x2352e9[_0x1702b7(0x116)]===0x0)return _0x406c5f;let _0x399f55=a[_0x1702b7(0x12d)][_0x1702b7(0x22b)](_0x406c5f[_0x1702b7(0xe5)][0x0]);for(let _0x4b8bd2=0x0;_0x4b8bd2<_0x2352e9[_0x1702b7(0x116)];_0x4b8bd2++){const _0x2ed82e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2352e9[_0x4b8bd2]['unitId'],..._0x2352e9[_0x4b8bd2]['redoState']}},_0x2a94d5=this['_transformService'][_0x1702b7(0x179)](_0x399f55,_0x2ed82e,!0x1);if(m['isTransformMutationFailure'](_0x2a94d5))throw _0x2a94d5[_0x1702b7(0x217)];_0x399f55=_0x2a94d5[_0x1702b7(0xa2)];}return{...a['Tools'][_0x1702b7(0x22b)](_0x406c5f),'mutations':[_0x399f55]};}[_0x4729ad(0x210)](_0x1416b8){const _0x2fcd97=_0x4729ad,{unitID:_0x308ff2}=_0x1416b8,{history:_0x184fe7,collaboration:_0x116934}=this['_docStateChangeManagerService'][_0x2fcd97(0x10c)](_0x308ff2);if(_0x184fe7[_0x2fcd97(0x116)]===0x0&&_0x116934[_0x2fcd97(0x116)]===0x0)return;const _0x3cc788=[],_0x360bcd=[];let _0x3f330e=a['Tools']['deepClone'](_0x1416b8[_0x2fcd97(0xe5)][0x0]),_0x3fa23b=a[_0x2fcd97(0x12d)][_0x2fcd97(0x22b)](_0x1416b8[_0x2fcd97(0xe5)][0x0]);for(let _0x12f7a8=_0x184fe7['length']-0x1;_0x12f7a8>=0x0;_0x12f7a8--){const _0x38bfd4={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x184fe7[_0x12f7a8][_0x2fcd97(0x10b)],..._0x184fe7[_0x12f7a8][_0x2fcd97(0xe9)]}},_0x1cd478={'id':_0x2fcd97(0x281),'params':{'unitId':_0x184fe7[_0x12f7a8]['unitId'],..._0x184fe7[_0x12f7a8][_0x2fcd97(0x2c2)]}},_0x4a3017=this[_0x2fcd97(0x11b)]['transformMutation'](_0x3f330e,_0x38bfd4,!0x1),_0x47bccd=this[_0x2fcd97(0x11b)][_0x2fcd97(0x179)](_0x3fa23b,_0x1cd478,!0x1);if(m['isTransformMutationFailure'](_0x4a3017))throw _0x4a3017['error'];if(m[_0x2fcd97(0x1b7)](_0x47bccd))throw _0x47bccd[_0x2fcd97(0x217)];_0x3cc788['unshift']({..._0x184fe7[_0x12f7a8],'undoState':_0x4a3017[_0x2fcd97(0x291)][_0x2fcd97(0x94)],'redoState':_0x47bccd[_0x2fcd97(0x291)][_0x2fcd97(0x94)]}),_0x3f330e=_0x4a3017[_0x2fcd97(0xa2)],_0x3fa23b=_0x47bccd[_0x2fcd97(0xa2)];}_0x3f330e=a['Tools']['deepClone'](_0x1416b8[_0x2fcd97(0xe5)][0x0]),_0x3fa23b=a[_0x2fcd97(0x12d)][_0x2fcd97(0x22b)](_0x1416b8['mutations'][0x0]);for(let _0xb7fc07=_0x116934[_0x2fcd97(0x116)]-0x1;_0xb7fc07>=0x0;_0xb7fc07--){const _0x146b39={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x116934[_0xb7fc07][_0x2fcd97(0x10b)],..._0x116934[_0xb7fc07]['undoState']}},_0x2dde03={'id':_0x2fcd97(0x281),'params':{'unitId':_0x116934[_0xb7fc07][_0x2fcd97(0x10b)],..._0x116934[_0xb7fc07][_0x2fcd97(0x2c2)]}},_0x45c22e=this[_0x2fcd97(0x11b)][_0x2fcd97(0x179)](_0x3f330e,_0x146b39,!0x1),_0x5ddd57=this[_0x2fcd97(0x11b)]['transformMutation'](_0x3fa23b,_0x2dde03,!0x1);if(m[_0x2fcd97(0x1b7)](_0x45c22e))throw _0x45c22e[_0x2fcd97(0x217)];if(m[_0x2fcd97(0x1b7)](_0x5ddd57))throw _0x5ddd57[_0x2fcd97(0x217)];_0x360bcd[_0x2fcd97(0x24b)]({..._0x116934[_0xb7fc07],'undoState':_0x45c22e[_0x2fcd97(0x291)][_0x2fcd97(0x94)],'redoState':_0x5ddd57[_0x2fcd97(0x291)][_0x2fcd97(0x94)]}),_0x3f330e=_0x45c22e['m1Prime'],_0x3fa23b=_0x5ddd57['m1Prime'];}this[_0x2fcd97(0xa7)][_0x2fcd97(0x151)](_0x308ff2,{'history':_0x3cc788,'collaboration':_0x360bcd});}};J=Ht([ce(0x0,a['Inject'](a['Injector'])),ce(0x1,m[_0x4729ad(0x29c)]),ce(0x2,a['Inject'](E[_0x4729ad(0x150)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x14b826,_0x12d3d4,_0x43164e,_0x41ddc1)=>{const _0x5d413c=_0x4729ad;for(var _0xedf04e=_0x41ddc1>0x1?void 0x0:_0x41ddc1?Yt(_0x12d3d4,_0x43164e):_0x12d3d4,_0x10571d=_0x14b826[_0x5d413c(0x116)]-0x1,_0x402b62;_0x10571d>=0x0;_0x10571d--)(_0x402b62=_0x14b826[_0x10571d])&&(_0xedf04e=_0x402b62(_0xedf04e)||_0xedf04e);return _0xedf04e;},Ne=(_0x3c1bd4,_0x126aac)=>(_0xa4c91c,_0x3e1aa4)=>_0x126aac(_0xa4c91c,_0x3e1aa4,_0x3c1bd4);let Z=class{constructor(_0xc426df,_0x5f1598){const _0x2dd34c=_0x4729ad;this['_injector']=_0xc426df,this[_0x2dd34c(0x11b)]=_0x5f1598;}[_0x4729ad(0x160)](_0x34ecfa){const _0x248a36=_0x4729ad;var _0x3dad03;const _0xb587eb=this[_0x248a36(0x170)]['get'](Y['DocSelectionManagerService']),_0xa0f00b=(_0x3dad03=_0xb587eb[_0x248a36(0x192)]())!=null?_0x3dad03:[];if(_0xa0f00b['length']===0x0)return;const _0x23d554=_0x34ecfa[_0x248a36(0x11e)],_0x35e4a2=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x23d554,'actions':null,'textRanges':_0xa0f00b}}],_0x14b0ae=this[_0x248a36(0x11b)][_0x248a36(0x290)](_0x34ecfa,_0x35e4a2);if(!m[_0x248a36(0x1f9)](_0x14b0ae))throw _0x14b0ae[_0x248a36(0x217)];const _0x44508d=_0x14b0ae[_0x248a36(0x291)][0x0][_0x248a36(0x94)]['textRanges'];Array[_0x248a36(0x1dc)](_0x44508d)&&_0x44508d[_0x248a36(0x116)]&&_0xb587eb[_0x248a36(0x202)](_0x44508d,{'unitId':_0x23d554,'subUnitId':_0x23d554},!0x1);}};Z=Wt([Ne(0x0,a[_0x4729ad(0xaf)](a[_0x4729ad(0x98)])),Ne(0x1,m[_0x4729ad(0x29c)])],Z);var Vt=Object[_0x4729ad(0x2b4)],Xt=(_0xab91a2,_0x405fee,_0x14ebe8,_0x1a2688)=>{const _0x15cd56=_0x4729ad;for(var _0x558cf3=_0x1a2688>0x1?void 0x0:_0x1a2688?Vt(_0x405fee,_0x14ebe8):_0x405fee,_0x3920d7=_0xab91a2[_0x15cd56(0x116)]-0x1,_0x514c09;_0x3920d7>=0x0;_0x3920d7--)(_0x514c09=_0xab91a2[_0x3920d7])&&(_0x558cf3=_0x514c09(_0x558cf3)||_0x558cf3);return _0x558cf3;},N=(_0x23c450,_0x1b4564)=>(_0x213f02,_0x38f14a)=>_0x1b4564(_0x213f02,_0x38f14a,_0x23c450);let Q=class extends a[_0x4729ad(0x16e)]{constructor(_0x356127,_0x38805d,_0x2ebcf9,_0x571c8b,_0x105f09,_0x1e52c4,_0x5573f8,_0x1ea752){const _0x204d00=_0x4729ad;super(),h(this,_0x204d00(0x1bf),new d[(_0x204d00(0x2c9))](u[_0x204d00(0xb7)][_0x204d00(0x178)])),(this[_0x204d00(0xa7)]=_0x356127,this[_0x204d00(0x1d8)]=_0x38805d,this['_docTransformIMECacheService']=_0x2ebcf9,this[_0x204d00(0xd8)]=_0x571c8b,this[_0x204d00(0x13c)]=_0x105f09,this[_0x204d00(0x288)]=_0x1e52c4,this[_0x204d00(0x13e)]=_0x5573f8,this[_0x204d00(0x8d)]=_0x1ea752,this[_0x204d00(0x9e)]());}[_0x4729ad(0x9e)](){const _0xce1381=_0x4729ad;this['disposeWithMe'](this[_0xce1381(0x1d8)][_0xce1381(0x2d2)][_0xce1381(0x194)](_0x409a22=>{const _0x38fd53=_0xce1381,_0x587e83=this[_0x38fd53(0xa7)]['docStateChange$'][_0x38fd53(0x194)](_0x5cbca5=>{const _0x3d2742=_0x38fd53;if(_0x5cbca5==null)return;const {unitId:_0x566099,redoState:_0x33d59e,commandId:_0x1ae8ab}=_0x5cbca5;if(_0x566099!==_0x409a22[_0x3d2742(0x11e)])return;const _0x1c7144={'id':_0x1ae8ab,'type':a[_0x3d2742(0x2ea)][_0x3d2742(0x181)],'params':{'unitId':_0x566099,'actions':_0x33d59e['actions'],'textRanges':null}};_0x409a22['onLocalMutation'](_0x1c7144);});if(_0x409a22[_0x38fd53(0x16d)](_0x587e83),_0x409a22 instanceof u[_0x38fd53(0x252)]){const _0x237c7a={'onTransformIME':_0x59ce5d=>this[_0x38fd53(0x1a9)][_0x38fd53(0x9f)](_0x59ce5d),'onTransformState':_0x53b1fb=>this[_0x38fd53(0xd8)]['transformStateCache'](_0x53b1fb),'onTransformSelections':_0x5a6709=>this[_0x38fd53(0x13c)][_0x38fd53(0x160)](_0x5a6709),'onSyncEditingCollabCursor':_0xedf991=>this[_0x38fd53(0x288)][_0x38fd53(0x8b)](_0xedf991),'onTransformRemoteChangesetByIMECache':_0x14c323=>this[_0x38fd53(0x1a9)][_0x38fd53(0xbd)](_0x14c323),'onTransformRemoteChangesetByStateCache':_0x442630=>this['_docTransformStateCacheService'][_0x38fd53(0xbd)](_0x442630)};_0x409a22[_0x38fd53(0x132)](_0x237c7a);}}));}};Q=Xt([N(0x0,a['Inject'](E[_0x4729ad(0x150)])),N(0x1,a['Inject'](u[_0x4729ad(0x261)])),N(0x2,a[_0x4729ad(0xaf)](z)),N(0x3,a[_0x4729ad(0xaf)](J)),N(0x4,a[_0x4729ad(0xaf)](Z)),N(0x5,a[_0x4729ad(0xaf)](pe)),N(0x6,O[_0x4729ad(0x273)]),N(0x7,a[_0x4729ad(0xaf)](a['LocaleService']))],Q);var Gt=Object[_0x4729ad(0x2b4)],Kt=(_0x49e866,_0x306625,_0x3bf191,_0x38d703)=>{const _0x16e34c=_0x4729ad;for(var _0x218c3e=_0x38d703>0x1?void 0x0:_0x38d703?Gt(_0x306625,_0x3bf191):_0x306625,_0x2c9011=_0x49e866[_0x16e34c(0x116)]-0x1,_0xd8b0c8;_0x2c9011>=0x0;_0x2c9011--)(_0xd8b0c8=_0x49e866[_0x2c9011])&&(_0x218c3e=_0xd8b0c8(_0x218c3e)||_0x218c3e);return _0x218c3e;},le=(_0x50a37f,_0x286449)=>(_0x519c59,_0x1f639a)=>_0x286449(_0x519c59,_0x1f639a,_0x50a37f);let ve=class extends a[_0x4729ad(0x16e)]{constructor(_0x2a45ba,_0x5eff05,_0x588415){const _0x5edf0f=_0x4729ad;super(),h(this,'_cachedData',new Map()),h(this,_0x5edf0f(0x26a),new Map()),h(this,_0x5edf0f(0x164),!0x1),(this[_0x5edf0f(0x24f)]=_0x2a45ba,this[_0x5edf0f(0x2df)]=_0x5eff05,this[_0x5edf0f(0x247)]=_0x588415);}['disableLocalCache'](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x1ed132=_0x4729ad;this[_0x1ed132(0x164)]=!0x1;}get[_0x4729ad(0x22d)](){const _0x36d2e9=_0x4729ad;return this[_0x36d2e9(0x26a)];}[_0x4729ad(0x2c6)](){const _0x2ab250=_0x4729ad;this[_0x2ab250(0xea)]()[_0x2ab250(0x2cd)](()=>super[_0x2ab250(0x2c6)]());}async[_0x4729ad(0x13f)](_0x4612d9){const _0x285bd6=_0x4729ad;return this['_disabled']?null:this[_0x285bd6(0x2df)][_0x285bd6(0x2d1)](u['getLocalCacheKey'](_0x4612d9));}async[_0x4729ad(0x23d)](_0x419f6d,_0x4eb7ab){const _0x57cf7e=_0x4729ad;return!!this[_0x57cf7e(0x2df)]['setItem'](_0x419f6d,_0x4eb7ab);}[_0x4729ad(0xab)](_0xe28d43,_0x20770f,_0xdc0826,_0x2a3656){const _0x484d20=_0x4729ad,_0x3a9612=this[_0x484d20(0x247)][_0x484d20(0x223)](_0xe28d43);this[_0x484d20(0x1aa)]['set'](_0xe28d43,{'unitID':_0xe28d43,'type':_0x20770f,'awaitingChangeset':_0xdc0826,'mutations':_0x2a3656,'rev':_0x3a9612}),this[_0x484d20(0x26a)]['has'](_0xe28d43)||this[_0x484d20(0x2ee)](_0xe28d43);}['_scheduleSaving'](_0x53881d){const _0x309155=_0x4729ad,_0x54fb04=this[_0x309155(0x78)]();_0x54fb04===0x0?this[_0x309155(0x152)](_0x53881d):this[_0x309155(0x26a)]['set'](_0x53881d,setTimeout(()=>this[_0x309155(0x152)](_0x53881d),_0x54fb04));}['_getSaveTimeout'](){const _0x4ae93a=_0x4729ad;var _0x8e0618;return(_0x8e0618=this[_0x4ae93a(0x24f)][_0x4ae93a(0x26e)](u[_0x4ae93a(0x2bd)]))!=null?_0x8e0618:u['LOCAL_CACHE_INTERVAL'];}[_0x4729ad(0x152)](_0x243318){const _0x2efc08=_0x4729ad,_0x929df9=this[_0x2efc08(0x26a)][_0x2efc08(0x107)](_0x243318);return _0x929df9!==void 0x0&&window[_0x2efc08(0x159)](_0x929df9),this[_0x2efc08(0x2df)][_0x2efc08(0x274)](u[_0x2efc08(0x248)](_0x243318),this[_0x2efc08(0x1aa)][_0x2efc08(0x107)](_0x243318))[_0x2efc08(0x2cd)](()=>this[_0x2efc08(0x26a)][_0x2efc08(0x298)](_0x243318));}async['exhaustSavingTask'](){const _0x37fd05=_0x4729ad,_0x1bead1=[];this[_0x37fd05(0x26a)]['forEach']((_0x59b27d,_0x23af14)=>{const _0x1e8c80=_0x37fd05;window['clearTimeout'](_0x59b27d),_0x1bead1['push'](this[_0x1e8c80(0x152)](_0x23af14)[_0x1e8c80(0x2cd)](()=>{const _0x48bd01=_0x1e8c80;this[_0x48bd01(0x26a)]['delete'](_0x23af14);}));}),await Promise[_0x37fd05(0xc3)](_0x1bead1);}};ve=Kt([le(0x0,a[_0x4729ad(0xa3)]),le(0x1,a['ILocalStorageService']),le(0x2,a[_0x4729ad(0xaf)](m['RevisionService']))],ve);class xe extends a[_0x4729ad(0x16f)]{constructor(){const _0x8bf47c=_0x4729ad;super(),h(this,'urlChange$'),this['urlChange$']=d[_0x8bf47c(0x19d)](window,_0x8bf47c(0x2ae))[_0x8bf47c(0x138)](d[_0x8bf47c(0x87)](this[_0x8bf47c(0x2af)]),d[_0x8bf47c(0x1e2)](0x1),d['mapTo'](void 0x0));}['setParam'](_0x301182,_0x527f78,_0x5c6070=!0x1){const _0x78e373=_0x4729ad,_0x4141ab=new URL(window['location']['href']);_0x4141ab['searchParams'][_0x78e373(0x1a3)](_0x301182,_0x527f78),_0x5c6070?window[_0x78e373(0x12f)][_0x78e373(0x1c2)]('','',_0x4141ab[_0x78e373(0x1f4)]()):window[_0x78e373(0x12f)]['pushState']('','',_0x4141ab[_0x78e373(0x1f4)]());}[_0x4729ad(0x1f3)](_0x4f4da0,_0x5c1bde=!0x1){const _0x5ea123=_0x4729ad,_0x47c0b6=new URL(window[_0x5ea123(0x7e)]['href']);_0x47c0b6['searchParams']['delete'](_0x4f4da0),_0x5c1bde?window[_0x5ea123(0x12f)]['replaceState']('','',_0x47c0b6[_0x5ea123(0x1f4)]()):window['history'][_0x5ea123(0x218)]('','',_0x47c0b6[_0x5ea123(0x1f4)]());}[_0x4729ad(0x1f0)](_0x21d750){const _0x148b84=_0x4729ad;var _0x581f88;return(_0x581f88=new URL(window['location'][_0x148b84(0x9d)])['searchParams'][_0x148b84(0x107)](_0x21d750))!=null?_0x581f88:void 0x0;}}var qt=Object[_0x4729ad(0x238)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x5a057f,_0x141577,_0x2a5772)=>_0x141577 in _0x5a057f?qt(_0x5a057f,_0x141577,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a5772}):_0x5a057f[_0x141577]=_0x2a5772,Zt=(_0x3afedc,_0x41381f,_0x3602e7,_0x51290d)=>{const _0x57c889=_0x4729ad;for(var _0x5cf1e9=_0x51290d>0x1?void 0x0:_0x51290d?zt(_0x41381f,_0x3602e7):_0x41381f,_0x8d07f4=_0x3afedc[_0x57c889(0x116)]-0x1,_0x1c62de;_0x8d07f4>=0x0;_0x8d07f4--)(_0x1c62de=_0x3afedc[_0x8d07f4])&&(_0x5cf1e9=_0x1c62de(_0x5cf1e9)||_0x5cf1e9);return _0x5cf1e9;},_e=(_0x12b414,_0x3a3b84)=>(_0x355342,_0x242be5)=>_0x3a3b84(_0x355342,_0x242be5,_0x12b414),Qt=(_0x39f3a3,_0x16dcbd,_0x4fb1cf)=>Jt(_0x39f3a3,_0x16dcbd+'',_0x4fb1cf);const es=_0x4729ad(0x2b0);exports[_0x4729ad(0x299)]=class extends a[_0x4729ad(0x25d)]{constructor(_0x112adc=De,_0x261a89,_0x41e98b,_0x20fb0e){const _0xf27307=_0x4729ad;super(),this['_config']=_0x112adc,this[_0xf27307(0x22c)]=_0x261a89,this[_0xf27307(0x170)]=_0x41e98b,this[_0xf27307(0x24f)]=_0x20fb0e;const {..._0x555db7}=a[_0xf27307(0x97)]({},De,this[_0xf27307(0x1a1)]);this['_configService'][_0xf27307(0x21d)](Bt,_0x555db7);}[_0x4729ad(0x2c0)](){const _0x4f1692=_0x4729ad;this[_0x4f1692(0x1a8)](),this[_0x4f1692(0x1d6)]();}['onRendered'](){const _0x334d19=_0x4729ad;this[_0x334d19(0x246)]();}[_0x4729ad(0x1a8)](){const _0x48e71a=_0x4729ad;var _0x799a3e;const _0x42224e=[[Ce],[Z],[z],[J],[pe],[me,{'useClass':xe}],[K[_0x48e71a(0x244)],{'useClass':K['WebSocketService']}],[u['ILocalCacheService'],{'useClass':ve}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[ue],[exports['CollaborationDataLoaderController']]];a[_0x48e71a(0x141)](this[_0x48e71a(0x170)],a[_0x48e71a(0x229)](_0x42224e,(_0x799a3e=this['_config'])==null?void 0x0:_0x799a3e[_0x48e71a(0x115)]));}[_0x4729ad(0x246)](){const _0x5835e4=_0x4729ad;this[_0x5835e4(0x16d)](this[_0x5835e4(0x22c)]['registerRenderModule'](a[_0x5835e4(0x1a2)][_0x5835e4(0x18e)],[fe])),this['disposeWithMe'](this[_0x5835e4(0x22c)][_0x5835e4(0xe1)](a[_0x5835e4(0x1a2)][_0x5835e4(0x17b)],[Ie]));}[_0x4729ad(0x1d6)](){const _0x4e3a9e=_0x4729ad;a[_0x4e3a9e(0x27f)](this[_0x4e3a9e(0x170)],[[x],[exports[_0x4e3a9e(0x93)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x4729ad(0x299)],_0x4729ad(0x2ed),es),exports[_0x4729ad(0x299)]=Zt([a[_0x4729ad(0x1ec)](u[_0x4729ad(0x25b)]),_e(0x1,p[_0x4729ad(0x2ca)]),_e(0x2,a[_0x4729ad(0xaf)](a[_0x4729ad(0x98)])),_e(0x3,a[_0x4729ad(0xa3)])],exports['UniverCollaborationClientUIPlugin']);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x57b31b,_0x275775,_0xf5f026,_0x3ea961)=>{const _0x2c54bc=_0x4729ad;for(var _0x3b1d91=_0x3ea961>0x1?void 0x0:_0x3ea961?ts(_0x275775,_0xf5f026):_0x275775,_0x10230e=_0x57b31b[_0x2c54bc(0x116)]-0x1,_0x1e6afd;_0x10230e>=0x0;_0x10230e--)(_0x1e6afd=_0x57b31b[_0x10230e])&&(_0x3b1d91=_0x1e6afd(_0x3b1d91)||_0x3b1d91);return _0x3b1d91;},H=(_0x36ae02,_0x2f4ee0)=>(_0x470f34,_0xa42d54)=>_0x2f4ee0(_0x470f34,_0xa42d54,_0x36ae02);exports['BrowserCollaborationSocketService']=class extends u['CollaborationSocketService']{constructor(_0x5751c1,_0xb36abf,_0x9c119c,_0x496d1d,_0xf36e98){super(_0x5751c1,_0xb36abf,_0x9c119c,_0x496d1d,_0xf36e98);}async['createSocket'](_0x4edacd){const _0x23c16f=_0x4729ad,_0x102019=await this[_0x23c16f(0x29d)](),_0x5d2ed1=this[_0x23c16f(0x280)](_0x4edacd,_0x102019);return this['_doCreateSocket'](_0x5d2ed1);}['_createSocketURL'](_0x8b1624,_0x2fc0ad){const _0x3de8a=_0x4729ad,_0x269070=typeof window>'u'?new URL(_0x8b1624):new URL(_0x8b1624,window[_0x3de8a(0x7e)][_0x3de8a(0x2d6)]);_0x269070[_0x3de8a(0x142)][_0x3de8a(0x1a3)]('sessionTicket',_0x2fc0ad);const _0x34942a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x3de8a(0x167)]);return _0x34942a[_0x3de8a(0x107)](_0x3de8a(0x195))&&_0x269070[_0x3de8a(0x142)][_0x3de8a(0x1a3)](_0x3de8a(0x195),_0x34942a[_0x3de8a(0x107)]('runId')),_0x269070[_0x3de8a(0x1f4)]();}async[_0x4729ad(0x29d)](){const _0x3d7155=_0x4729ad;var _0x1a1a4b,_0x409148,_0x48f306;const _0x49afc4=this[_0x3d7155(0x24f)][_0x3d7155(0x26e)](u[_0x3d7155(0x233)]),_0x5e3556=(_0x1a1a4b=_0x49afc4==null?void 0x0:_0x49afc4[_0x3d7155(0x9a)])!=null?_0x1a1a4b:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x48f306=(_0x409148=(await this['_httpService'][_0x3d7155(0x107)](_0x5e3556,{'headers':{'Content-Type':_0x3d7155(0x1ce)}}))[_0x3d7155(0x1a5)])==null?void 0x0:_0x409148[_0x3d7155(0x1b6)])!=null?_0x48f306:'';}},exports[_0x4729ad(0x79)]=ss([H(0x0,a[_0x4729ad(0xaf)](a[_0x4729ad(0x98)])),H(0x1,a['Inject'](K[_0x4729ad(0x183)])),H(0x2,a[_0x4729ad(0xa3)]),H(0x3,a[_0x4729ad(0x1c3)]),H(0x4,m[_0x4729ad(0x10e)])],exports[_0x4729ad(0x79)]);var Be=(_0x768ad5=>(_0x768ad5[_0x768ad5[_0x4729ad(0x245)]=0x0]=_0x4729ad(0x245),_0x768ad5[_0x768ad5['OK']=0x1]='OK',_0x768ad5[_0x768ad5[_0x4729ad(0xfd)]=0x2]=_0x4729ad(0xfd),_0x768ad5[_0x768ad5['PERMISSION_DENIED']=0x3]=_0x4729ad(0x108),_0x768ad5[_0x768ad5['NOT_FOUND']=0x4]=_0x4729ad(0x226),_0x768ad5[_0x768ad5[_0x4729ad(0x209)]=0x5]='UNAUTHENTICATED',_0x768ad5[_0x768ad5[_0x4729ad(0x1ff)]=0x6]=_0x4729ad(0x1ff),_0x768ad5[_0x768ad5[_0x4729ad(0x1e9)]=0x7]='INVALID_ARGUMENT',_0x768ad5[_0x768ad5[_0x4729ad(0xa5)]=0x8]=_0x4729ad(0xa5),_0x768ad5[_0x768ad5[_0x4729ad(0x293)]=0x9]=_0x4729ad(0x293),_0x768ad5[_0x768ad5[_0x4729ad(0x287)]=0xa]=_0x4729ad(0x287),_0x768ad5[_0x768ad5[_0x4729ad(0x14a)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x768ad5[_0x768ad5[_0x4729ad(0x294)]=0xc]=_0x4729ad(0x294),_0x768ad5[_0x768ad5['EMAIL_VERIFY_CODE_MISMATCH']=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x768ad5[_0x768ad5[_0x4729ad(0x1cb)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x768ad5[_0x768ad5[_0x4729ad(0x11c)]=0x1389]=_0x4729ad(0x11c),_0x768ad5[_0x768ad5['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x4729ad(0x103),_0x768ad5[_0x768ad5[_0x4729ad(0x10d)]=0x1772]=_0x4729ad(0x10d),_0x768ad5[_0x768ad5[_0x4729ad(0x26b)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x768ad5[_0x768ad5[_0x4729ad(0xdb)]=0x1b59]='APPLY_REJECT',_0x768ad5[_0x768ad5['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4729ad(0xcc),_0x768ad5[_0x768ad5[_0x4729ad(0x1e1)]=0x1b5b]=_0x4729ad(0x1e1),_0x768ad5[_0x768ad5['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x4729ad(0x27a),_0x768ad5[_0x768ad5[_0x4729ad(0x234)]=0x1b5d]=_0x4729ad(0x234),_0x768ad5[_0x768ad5[_0x4729ad(0x241)]=0x1f41]=_0x4729ad(0x241),_0x768ad5[_0x768ad5['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x768ad5[_0x768ad5[_0x4729ad(0xbb)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x768ad5[_0x768ad5[_0x4729ad(0xbc)]=0x232b]=_0x4729ad(0xbc),_0x768ad5[_0x768ad5['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x4729ad(0x2a5),_0x768ad5[_0x768ad5[_0x4729ad(0x1fb)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x768ad5[_0x768ad5[_0x4729ad(0xe3)]=0x2711]=_0x4729ad(0xe3),_0x768ad5[_0x768ad5[_0x4729ad(0x187)]=0x2712]=_0x4729ad(0x187),_0x768ad5[_0x768ad5[_0x4729ad(0x2a1)]=0x2713]=_0x4729ad(0x2a1),_0x768ad5[_0x768ad5[_0x4729ad(0xd9)]=0x2714]=_0x4729ad(0xd9),_0x768ad5[_0x768ad5[_0x4729ad(0x275)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x768ad5[_0x768ad5['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x4729ad(0x190),_0x768ad5[_0x768ad5[_0x4729ad(0x2d9)]=0x271c]=_0x4729ad(0x2d9),_0x768ad5[_0x768ad5[_0x4729ad(0x2d8)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x768ad5[_0x768ad5[_0x4729ad(0xf2)]=0x271e]=_0x4729ad(0xf2),_0x768ad5[_0x768ad5[_0x4729ad(0x2cc)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x768ad5[_0x768ad5['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x4729ad(0x26c),_0x768ad5[_0x768ad5[_0x4729ad(0x2cf)]=0x2af9]=_0x4729ad(0x2cf),_0x768ad5[_0x768ad5['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x4729ad(0xcd),_0x768ad5[_0x768ad5[_0x4729ad(0x212)]=0x2ee2]=_0x4729ad(0x212),_0x768ad5[_0x768ad5['INVITE_CODE_REQUIRED']=0x2ee3]=_0x4729ad(0x130),_0x768ad5[_0x768ad5[_0x4729ad(0x10a)]=0x2ee4]=_0x4729ad(0x10a),_0x768ad5[_0x768ad5[_0x4729ad(0x2b7)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x768ad5[_0x768ad5['WECHAT_HAS_BEEN_BOUND']=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x768ad5[_0x768ad5[_0x4729ad(0x102)]=0x32ca]=_0x4729ad(0x102),_0x768ad5[_0x768ad5[_0x4729ad(0x165)]=0x32cb]=_0x4729ad(0x165),_0x768ad5[_0x768ad5['UNRECOGNIZED']=-0x1]=_0x4729ad(0x191),_0x768ad5))(Be||{}),is=Object[_0x4729ad(0x2b4)],ns=(_0x1f25dc,_0x568f00,_0x5de778,_0x519b1a)=>{const _0x19ee69=_0x4729ad;for(var _0x5333b7=_0x519b1a>0x1?void 0x0:_0x519b1a?is(_0x568f00,_0x5de778):_0x568f00,_0x14fd6d=_0x1f25dc[_0x19ee69(0x116)]-0x1,_0x5503c8;_0x14fd6d>=0x0;_0x14fd6d--)(_0x5503c8=_0x1f25dc[_0x14fd6d])&&(_0x5333b7=_0x5503c8(_0x5333b7)||_0x5333b7);return _0x5333b7;},he=(_0x26515e,_0x92a35f)=>(_0xb63bb0,_0x4c53f3)=>_0x92a35f(_0xb63bb0,_0x4c53f3,_0x26515e);exports[_0x4729ad(0xda)]=class extends a[_0x4729ad(0x16e)]{constructor(_0x146acd,_0x48e03f,_0x4016bf){const _0x12b26a=_0x4729ad;super(),this[_0x12b26a(0x2dc)]=_0x146acd,this[_0x12b26a(0x28c)]=_0x48e03f,this['_configService']=_0x4016bf;}async[_0x4729ad(0x27d)](_0x16c68d,_0x20593f,_0x1d11cb,..._0x3543b7){const _0x131919=_0x4729ad;var _0x28631a,_0x12de7c,_0x11c408,_0x13622b;const _0x397c21=this[_0x131919(0x2dc)][_0x131919(0x1ad)]();if(!_0x397c21)throw new Error(_0x131919(0x76));const _0x202e4d=((_0x28631a=this[_0x131919(0x24f)][_0x131919(0x26e)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x28631a:u[_0x131919(0x20e)])+'/'+_0x16c68d+_0x131919(0x249)+_0x20593f,_0x3961e1=new URL(window[_0x131919(0x7e)]['href']),_0x3ff781={'scriptId':_0x16c68d,'runId':(_0x12de7c=_0x3961e1['searchParams'][_0x131919(0x107)]('runId'))!=null?_0x12de7c:'','function':_0x20593f,'unitId':_0x397c21[_0x131919(0x27b)](),'argsOfFunction':JSON[_0x131919(0x2b1)](_0x3543b7),'invokeId':(_0x11c408=_0x1d11cb[_0x131919(0x21c)])!=null?_0x11c408:'','executionId':(_0x13622b=_0x1d11cb['executionId'])!=null?_0x13622b:''};try{const _0x31f005=await this[_0x131919(0x28c)][_0x131919(0x13a)](_0x202e4d,{'body':_0x3ff781});return _0x31f005['body'][_0x131919(0x217)]&&_0x31f005[_0x131919(0x1a5)][_0x131919(0x217)][_0x131919(0x264)]!==Be['OK']?'Failed':_0x31f005['body'][_0x131919(0x20b)];}catch{return'Failed';}}},exports[_0x4729ad(0xda)]=ns([he(0x0,a[_0x4729ad(0x2bb)]),he(0x1,a[_0x4729ad(0xaf)](K[_0x4729ad(0x183)])),he(0x2,a['IConfigService'])],exports[_0x4729ad(0xda)]);const Me=0x7530,Le='ACTIVE_UNIT_EVENT_CHANNEL';class rs extends a[_0x4729ad(0x16e)]{constructor(){const _0x247cfc=_0x4729ad;super(),h(this,'_id',a['generateRandomId']()),h(this,_0x247cfc(0x162),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x247cfc(0x1c9),null),h(this,_0x247cfc(0x2cb),new Map()),h(this,_0x247cfc(0x2c3),new Map()),this['_init']();}[_0x4729ad(0x2c6)](){const _0x23ed0f=_0x4729ad;super[_0x23ed0f(0x2c6)](),this[_0x23ed0f(0x2cb)]['forEach']((_0x2ac894,_0x256d22)=>this[_0x23ed0f(0x260)](_0x256d22)),this[_0x23ed0f(0x1c9)]&&window[_0x23ed0f(0x124)](this['_heartbeatTimer']);}[_0x4729ad(0x16a)](_0x45a71d){const _0x36ec5e=_0x4729ad;return this[_0x36ec5e(0x214)](_0x45a71d)[_0x36ec5e(0x138)](d[_0x36ec5e(0x292)]());}[_0x4729ad(0xe7)](_0x57e47b){const _0x54d452=_0x4729ad;this[_0x54d452(0x162)]['size']===0x0&&this[_0x54d452(0x139)](),this[_0x54d452(0x162)]['add'](_0x57e47b),this['_send']({'type':0x0,'memberID':this[_0x54d452(0x20d)],'unitIDs':[_0x57e47b],'isForwarded':!0x1});}[_0x4729ad(0x265)](_0x35a486){const _0x42f59d=_0x4729ad;this['_selfUnitIDs'][_0x42f59d(0x298)](_0x35a486),this['_selfUnitIDs']['size']===0x0&&this[_0x42f59d(0x1c9)]&&window['clearInterval'](this['_heartbeatTimer']);}['_init'](){const _0x5d4ce7=_0x4729ad;this['disposeWithMe'](a[_0x5d4ce7(0x23a)](d[_0x5d4ce7(0x19d)](window,_0x5d4ce7(0xef))[_0x5d4ce7(0x194)](_0x4b8e7f=>{const _0x734850=_0x5d4ce7;if(_0x4b8e7f[_0x734850(0x205)]!==Le||!_0x4b8e7f[_0x734850(0x230)])return;const _0xac939=JSON['parse'](_0x4b8e7f[_0x734850(0x230)]);this[_0x734850(0x277)](_0xac939);}))),window[_0x5d4ce7(0x289)]('unload',()=>this[_0x5d4ce7(0x1c5)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x5d4ce7(0xf7)](this[_0x5d4ce7(0x162)])}));}[_0x4729ad(0x277)](_0x89ba12){const _0x403484=_0x4729ad;switch(_0x89ba12[_0x403484(0x1f6)]){case 0x0:this['_handleJoinEvent'](_0x89ba12);break;case 0x1:this[_0x403484(0xbf)](_0x89ba12);break;case 0x2:this['_handleHeartbeatEvent'](_0x89ba12);break;}}[_0x4729ad(0x1e6)](_0x1c1b80){const _0x507064=_0x4729ad,{unitIDs:_0xb46482,memberID:_0x536fbe,isForwarded:_0xf81cf7}=_0x1c1b80;_0xb46482[_0x507064(0x176)](_0x57719b=>{const _0x3ea276=_0x507064;if(!_0xf81cf7&&this[_0x3ea276(0x23f)][_0x3ea276(0x11d)](_0x57719b)&&this[_0x3ea276(0x214)](_0x57719b)['next'](u[_0x3ea276(0xce)][_0x3ea276(0x2b5)]),!this[_0x3ea276(0x23f)][_0x3ea276(0x11d)](_0x57719b)||!this[_0x3ea276(0x23f)]['get'](_0x57719b)[_0x3ea276(0x11d)](_0x536fbe)){const _0x1dc5a0=this[_0x3ea276(0x23f)][_0x3ea276(0x107)](_0x57719b)||new Set();_0x1dc5a0['add'](_0x536fbe),this[_0x3ea276(0x23f)][_0x3ea276(0x1a3)](_0x57719b,_0x1dc5a0),this[_0x3ea276(0xa6)](_0x536fbe);}}),_0xf81cf7||this[_0x507064(0x1c5)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x507064(0x162)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x3c3ff1){const _0x16e9f8=_0x4729ad;this[_0x16e9f8(0x260)](_0x3c3ff1);const _0x2db65a=window[_0x16e9f8(0x1b5)](()=>{const _0x3e36bd=_0x16e9f8;this[_0x3e36bd(0x23f)][_0x3e36bd(0x176)](_0x235277=>{const _0x5dcfbe=_0x3e36bd;_0x235277[_0x5dcfbe(0x298)](_0x3c3ff1);});},Me*0x2);this[_0x16e9f8(0x2cb)][_0x16e9f8(0x1a3)](_0x3c3ff1,_0x2db65a);}[_0x4729ad(0x260)](_0x44213e){const _0x23bd34=_0x4729ad;if(this[_0x23bd34(0x2cb)]['has'](_0x44213e)){const _0x4b66a9=this['_clearOtherTimers'][_0x23bd34(0x107)](_0x44213e);_0x4b66a9&&window[_0x23bd34(0x159)](_0x4b66a9),this[_0x23bd34(0x2cb)][_0x23bd34(0x1a3)](_0x44213e,null);}}[_0x4729ad(0xbf)](_0x43ee3e){const _0xd4a007=_0x4729ad,{memberID:_0x474516,unitIDs:_0x1c4986}=_0x43ee3e;_0x1c4986[_0xd4a007(0x176)](_0x560331=>{const _0x23d206=_0xd4a007;var _0x2a2cb3;const _0x383569=this['_unitOnClients'][_0x23d206(0x107)](_0x560331);_0x383569&&(_0x383569[_0x23d206(0x298)](_0x474516),(_0x2a2cb3=this[_0x23d206(0x214)](_0x560331))==null||_0x2a2cb3[_0x23d206(0x1fc)](_0x383569['size']===0x0?u[_0x23d206(0xce)][_0x23d206(0xd0)]:u[_0x23d206(0xce)]['OTHER_CLIENTS_EDITING']));}),this[_0xd4a007(0x260)](_0x474516);}[_0x4729ad(0x110)](_0x3ce421){const _0x27136f=_0x4729ad;this[_0x27136f(0xa6)](_0x3ce421['memberID']);}['_send'](_0x83883d){const _0x58d66b=_0x4729ad;localStorage[_0x58d66b(0x274)](Le,JSON[_0x58d66b(0x2b1)](_0x83883d));}[_0x4729ad(0x139)](){const _0x2d2844=_0x4729ad;this[_0x2d2844(0x1c9)]=window[_0x2d2844(0x284)](()=>{const _0x5240e2=_0x2d2844;this[_0x5240e2(0x1c5)]({'type':0x2,'memberID':this[_0x5240e2(0x20d)]});},Me);}[_0x4729ad(0x214)](_0xa68b05){const _0x2d12cc=_0x4729ad;return this[_0x2d12cc(0x2c3)][_0x2d12cc(0x11d)](_0xa68b05)||this[_0x2d12cc(0x2c3)]['set'](_0xa68b05,new d[(_0x2d12cc(0x2c9))](u[_0x2d12cc(0xce)][_0x2d12cc(0xd0)])),this['_unitStatus'][_0x2d12cc(0x107)](_0xa68b05);}}exports[_0x4729ad(0xc7)]=me,exports[_0x4729ad(0x1a0)]=$e,exports[_0x4729ad(0x2d5)]=rs,exports['WebURLService']=xe;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5c118f=_0x19cb;(function(_0x4a69d1,_0x477eab){const _0x584b0c=_0x19cb,_0x37e963=_0x4a69d1();while(!![]){try{const _0x3a267d=-parseInt(_0x584b0c(0x130))/0x1+-parseInt(_0x584b0c(0x132))/0x2+parseInt(_0x584b0c(0x128))/0x3*(parseInt(_0x584b0c(0x12e))/0x4)+parseInt(_0x584b0c(0x11e))/0x5*(parseInt(_0x584b0c(0x11f))/0x6)+-parseInt(_0x584b0c(0x12b))/0x7*(parseInt(_0x584b0c(0x126))/0x8)+parseInt(_0x584b0c(0x12f))/0x9+parseInt(_0x584b0c(0x127))/0xa;if(_0x3a267d===_0x477eab)break;else _0x37e963['push'](_0x37e963['shift']());}catch(_0x52e559){_0x37e963['push'](_0x37e963['shift']());}}}(_0x1eba,0xefa0f));const e={'collab-client':{'tooltip':{'reconnect':_0x5c118f(0x11c)}},'collabStatus':{'fetchMiss':_0x5c118f(0x131),'conflict':_0x5c118f(0x121),'notCollab':_0x5c118f(0x11d),'synced':_0x5c118f(0x12c),'syncing':_0x5c118f(0x123),'offline':_0x5c118f(0x120)},'session':{'connection-failed':_0x5c118f(0x124),'will-retry':_0x5c118f(0x12a),'room-full':_0x5c118f(0x122),'collaboration-timeout':_0x5c118f(0x12d)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x5c118f(0x125)},'permission':{'title':'Authentication\x20Error','content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x5c118f(0x129)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}},o=e;function _0x19cb(_0x212ef2,_0xce134d){const _0x1eba6c=_0x1eba();return _0x19cb=function(_0x19cb36,_0x55b1d1){_0x19cb36=_0x19cb36-0x11c;let _0x509136=_0x1eba6c[_0x19cb36];return _0x509136;},_0x19cb(_0x212ef2,_0xce134d);}function _0x1eba(){const _0x5c4bf8=['177845RSbcKk','246JoIwKH','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Edit\x20conflicts','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Syncing...','Connection\x20failed,\x20please\x20check\x20your\x20network.','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.','80LBeXFI','21564120xOusjS','2497188TlMLEk','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','549962DEEueJ','Synced','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','4SqIFgY','838413ITfaWw','1359213bTIMqa','Syncing\x20server\x20data...','2827804GPRGqk','Click\x20to\x20Reconnect','Local\x20file'];_0x1eba=function(){return _0x5c4bf8;};return _0x1eba();}module['exports']=o;
|